เพิ่มเเจ้งเตือนเมื่อไม่ได้เลือกประเภท
This commit is contained in:
parent
01b70ab7a0
commit
19296e5543
1 changed files with 16 additions and 12 deletions
|
|
@ -14,7 +14,7 @@ import config from "@/app.config";
|
|||
const $q = useQuasar();
|
||||
const selected = ref<any>([]);
|
||||
const mixin = useCounterMixin();
|
||||
const { showLoader, success, messageError, dialogConfirm, hideLoader } = mixin;
|
||||
const { showLoader, success, messageError, dialogConfirm, hideLoader,dialogMessageNotify } = mixin;
|
||||
const emit = defineEmits([
|
||||
"update:filterKeyword2",
|
||||
"update:selected",
|
||||
|
|
@ -110,17 +110,21 @@ const optionsType = ref<[]>([]);
|
|||
|
||||
//popup ยืนยันส่งัว
|
||||
function saveOrder() {
|
||||
dialogConfirm(
|
||||
$q,
|
||||
async () => {
|
||||
await emit("returnPerson", selected.value, type.value);
|
||||
props.closeModal?.();
|
||||
type.value = "";
|
||||
selected.value = [];
|
||||
},
|
||||
`ยืนยันการส่งไปออกคำสั่ง`,
|
||||
`ต้องการยืนยันการส่งไปออกคำสั่งหรือไม่`
|
||||
);
|
||||
if (type.value === "") {
|
||||
dialogMessageNotify($q,'กรุณาเลือกประเภทคำสั่ง')
|
||||
} else {
|
||||
dialogConfirm(
|
||||
$q,
|
||||
async () => {
|
||||
await emit("returnPerson", selected.value, type.value);
|
||||
props.closeModal?.();
|
||||
type.value = "";
|
||||
selected.value = [];
|
||||
},
|
||||
`ยืนยันการส่งไปออกคำสั่ง`,
|
||||
`ต้องการยืนยันการส่งไปออกคำสั่งหรือไม่`
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue