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

@ -16,13 +16,7 @@ import DialogCreateCommand from "@/modules/18_command/components/DialogCreateCom
const $q = useQuasar();
const storeCommand = useCommandMainStore();
const mixin = useCounterMixin();
const {
dialogConfirm,
date2Thai,
onSearchDataTable,
findOrgNameHtml,
findOrgName,
} = mixin;
const { date2Thai, onSearchDataTable, findOrgNameHtml, findOrgName } = mixin;
const { statusText } = useTransferDataStore();
const props = defineProps({
@ -251,10 +245,10 @@ function Reset() {
* งกนยนยนสงไปออกคำส
*/
function clickAddlist() {
dialogConfirm($q, async () => {
modalCommand.value = true;
await props.clickClose?.();
});
// dialogConfirm($q, async () => {
props.clickClose?.();
modalCommand.value = true;
// });
}
/** ฟังก์ชันเลือกประเภทคำสั่ง */

View file

@ -267,11 +267,11 @@ function Reset() {
}
/** ยืนยันส่งไปออกคำสั่ง*/
function sendToCommand() {
dialogConfirm($q, async () => {
modalCommand.value = true;
await props.clickClose?.();
});
async function sendToCommand() {
// dialogConfirm($q, async () => {
props.clickClose?.();
modalCommand.value = true;
// });
}
/** ฟังก์ชันเลือกประเภทคำสั่ง */

View file

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

View file

@ -176,15 +176,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;
// },
// "",
// "?"
// );
}
/** ฟังก์ชั่นสำหรับ filter รายการข้อมูลคนตามประเภทคำสั่งที่เลือก */

View file

@ -214,15 +214,15 @@ const modalCommand = ref<boolean>(false); //สร้าง/เลือกค
/** ฟังก์ชันยืนยันการส่งออกคำสั่ง*/
function saveOrder() {
dialogConfirm(
$q,
async () => {
props?.clickClose?.();
modalCommand.value = true;
},
"ยืนยันส่งไปออกคำสั่ง",
"ต้องการยืนยันส่งไปออกคำสั่งใช่หรือไม่?"
);
// dialogConfirm(
// $q,
// async () => {
props?.clickClose?.();
modalCommand.value = true;
// },
// "",
// "?"
// );
}
/** ฟังก์ชันอัปเดทค่าในช่องค้นหา*/

View file

@ -166,15 +166,15 @@ const checkSelected = computed(() => {
/** ยืนยันการส่งออกคำสั่งส่งตัวกลับ*/
function saveOrder() {
dialogConfirm(
$q,
async () => {
props.closeModal?.();
modalCommand.value = true;
},
"ยืนยันส่งไปออกคำสั่ง",
"ต้องการยืนยันส่งไปออกคำสั่งใช่หรือไม่?"
);
// dialogConfirm(
// $q,
// async () => {
props.closeModal?.();
modalCommand.value = true;
// },
// "",
// "?"
// );
}
function onSearch() {

View file

@ -149,15 +149,15 @@ const columns2 = ref<QTableProps["columns"]>([
* งกนยนยนและสงคนไปสรางคำส
*/
function saveOrder() {
dialogConfirm(
$q,
async () => {
modalCommand.value = true;
modal.value = false;
},
"ยืนยันส่งไปออกคำสั่ง",
"ต้องการยืนยันส่งไปออกคำสั่งใช่หรือไม่?"
);
// dialogConfirm(
// $q,
// async () => {
modalCommand.value = true;
modal.value = false;
// },
// "",
// "?"
// );
}
function onSearch() {

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"]);

View file

@ -171,15 +171,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"]);

View file

@ -169,15 +169,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"]);

View file

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

View file

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

View file

@ -80,15 +80,15 @@ const props = defineProps({
//popup
function saveOrder() {
dialogConfirm(
$q,
async () => {
modalCommand.value = true;
modal.value = false;
},
"ยืนยันส่งไปออกคำสั่ง",
"ต้องการยืนยันส่งไปออกคำสั่งใช่หรือไม่?"
);
// dialogConfirm(
// $q,
// async () => {
modalCommand.value = true;
modal.value = false;
// },
// "",
// "?"
// );
}
//
async function Ordersave() {

View file

@ -148,15 +148,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;
// },
// "",
// "?"
// );
}
function serchDataTable() {

View file

@ -98,15 +98,15 @@ function onclickSend() {
if (selected.value.length === 0) {
dialogMessageNotify($q, "กรุณาเลือกอย่างน้อย 1 บุคคล");
} else {
dialogConfirm(
$q,
async () => {
modalCommand.value = true;
modal.value = false;
},
"ยืนยันส่งไปออกคำสั่ง",
"ต้องการยืนยันส่งไปออกคำสั่งใช่หรือไม่?"
);
// dialogConfirm(
// $q,
// async () => {
modalCommand.value = true;
modal.value = false;
// },
// "",
// "?"
// );
}
}
}