หน้า ส่งหนังสือเวียน btn popup confirm
This commit is contained in:
parent
1f5a96f604
commit
feab1a811f
2 changed files with 5 additions and 6 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue