remove popup confirm send dialog create command

This commit is contained in:
Warunee Tamkoo 2025-07-18 16:08:08 +07:00
parent 5fb8c24263
commit ed25bc39c0
16 changed files with 136 additions and 143 deletions

View file

@ -177,15 +177,15 @@ function filterSelector(val: string, update: Function) {
/** ฟังก์ชั่นยืนยันและส่งคนไปสร้างคำสั่ง */
function saveOrder() {
dialogConfirm(
$q,
async () => {
modalCommand.value = true;
modal.value = false;
},
"ยืนยันส่งไปออกคำสั่ง",
"ต้องการยืนยันส่งไปออกคำสั่งใช่หรือไม่?"
);
// dialogConfirm(
// $q,
// async () => {
modalCommand.value = true;
modal.value = false;
// },
// "",
// "?"
// );
}
/** ปิด Modal และล้างค่าที่เลือก */
@ -298,7 +298,6 @@ watch(
borderless
outlined
dense
v-model="filter"
placeholder="ค้นหา"
style="width: 200px; max-width: auto"

View file

@ -106,15 +106,15 @@ const modalCommand = ref<boolean>(false);
/** popup ยืนยันส่งไปออกคำสั่ง */
function saveOrder() {
dialogConfirm(
$q,
() => {
props.closeModal?.();
modalCommand.value = true;
},
"ยืนยันส่งไปออกคำสั่ง",
"ต้องการยืนยันส่งไปออกคำสั่งใช่หรือไม่?"
);
// dialogConfirm(
// $q,
// () => {
props.closeModal?.();
modalCommand.value = true;
// },
// "",
// "?"
// );
}
const emit = defineEmits(["update:filterKeyword2", "update:selected"]);