หน้า ส่งหนังสือเวียน 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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue