remove popup confirm send dialog create command
This commit is contained in:
parent
5fb8c24263
commit
ed25bc39c0
16 changed files with 136 additions and 143 deletions
|
|
@ -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;
|
||||
// });
|
||||
}
|
||||
|
||||
/** ฟังก์ชันเลือกประเภทคำสั่ง */
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
// });
|
||||
}
|
||||
|
||||
/** ฟังก์ชันเลือกประเภทคำสั่ง */
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
// },
|
||||
// "ยืนยันส่งไปออกคำสั่ง",
|
||||
// "ต้องการยืนยันส่งไปออกคำสั่งใช่หรือไม่?"
|
||||
// );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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 รายการข้อมูลคนตามประเภทคำสั่งที่เลือก */
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
// },
|
||||
// "ยืนยันส่งไปออกคำสั่ง",
|
||||
// "ต้องการยืนยันส่งไปออกคำสั่งใช่หรือไม่?"
|
||||
// );
|
||||
}
|
||||
|
||||
/** ฟังก์ชันอัปเดทค่าในช่องค้นหา*/
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"]);
|
||||
|
|
|
|||
|
|
@ -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"]);
|
||||
|
|
|
|||
|
|
@ -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"]);
|
||||
|
|
|
|||
|
|
@ -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"]);
|
||||
|
|
|
|||
|
|
@ -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"]);
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
// },
|
||||
// "ยืนยันส่งไปออกคำสั่ง",
|
||||
// "ต้องการยืนยันส่งไปออกคำสั่งใช่หรือไม่?"
|
||||
// );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue