หน้า ส่งหนังสือเวียน btn popup confirm

This commit is contained in:
setthawutttty 2023-10-06 10:10:50 +07:00
parent 1f5a96f604
commit feab1a811f
2 changed files with 5 additions and 6 deletions

View file

@ -33,7 +33,7 @@ const next = () => props.next();
const $q = useQuasar();
const mixin = useCounterMixin(); //
const { dialogRemove, messageError, showLoader, hideLoader, success } = mixin;
const { dialogRemove, messageError, showLoader, hideLoader, success,dialogConfirm } = mixin;
const myForm = ref<QForm | null>(null);
const filterRef = ref<QInput>();
@ -327,7 +327,7 @@ const saveDataCopyOrder = async () => {
if (myForm.value !== null) {
myForm.value.validate().then(async (result: boolean) => {
if (result) {
await fetchSaveCopyOrder();
dialogConfirm($q,() => fetchSaveCopyOrder(),'ยืนยันการส่งหนังสือเวียน','ต้องการยืนยันการส่งหนังสือเวียนหรือไม่')
}
});
}
@ -511,7 +511,7 @@ const updateData = (row: DataCopyOrder) => {
<q-btn
dense
unelevated
label="บันทึก"
label="ส่งหนังสือเวียน"
color="public"
@click="saveDataCopyOrder"
class="q-px-md"

View file

@ -96,13 +96,12 @@ const fileDownload = async (type: string) => {
class="q-mr-sm"
@click="router.push(`/deceased`)"
/>
รายละเอยดบนทกเวยนแจงการถงแกกรรม {{ detail.firstName }}
{{ detail.lastName }}
รายละเอยดบนทกเวยนแจงการถงแกกรรม {{ fullName }}
</div>
<q-card bordered class="row col-12 text-dark">
<div class="bg-grey-1 q-pa-sm col-12 row items-center text-primary">
<div class="q-pl-sm text-weight-bold text-subtitle2">
{{ detail.firstName + " " + detail.lastName }}
{{ fullName }}
</div>
<q-space />
<q-btn