updated file & format

This commit is contained in:
Warunee Tamkoo 2024-09-27 09:17:58 +07:00
parent e3665bb444
commit 055a5c35b7
2 changed files with 13 additions and 49 deletions

View file

@ -16,16 +16,8 @@ import DialogCreateCommand from "@/modules/18_command/components/DialogCreateCom
const $q = useQuasar();
const mixin = useCounterMixin();
const stroeCommand = useCommandMainStore();
const { statusText } = useTransferDataStore();
const {
showLoader,
success,
messageError,
dialogConfirm,
hideLoader,
date2Thai,
} = mixin;
const { dialogConfirm, date2Thai } = mixin;
const modal = defineModel<boolean>("modal", { required: true });
/**
@ -127,7 +119,7 @@ const columns2 = ref<QTableProps["columns"]>([
]);
/**
* งกนยนยการออกคำส
* งกนยนยและสงคนไปสรางคำส
*/
function saveOrder() {
dialogConfirm(
@ -140,20 +132,6 @@ function saveOrder() {
modalCommand.value = true;
modal.value = false;
// showLoader();
// await http
// .post(config.API.transferReport, body)
// .then(async () => {
// await props.fetchData?.();
// await success($q, "");
// props.closeModal?.();
// })
// .catch((e) => {
// messageError($q, e);
// })
// .finally(() => {
// hideLoader();
// });
},
"ยืนยันส่งไปออกคำสั่ง",
"ต้องการยืนยันส่งไปออกคำสั่งใช่หรือไม่?"
@ -162,7 +140,6 @@ function saveOrder() {
/**
* เม props.modal เป true
*
* กำหนดให selected เปนคาวาง
*/
watch(
@ -174,6 +151,7 @@ watch(
}
);
</script>
<template>
<q-dialog v-model="modal">
<q-card style="width: 1200px; max-width: 80vw">
@ -283,11 +261,10 @@ watch(
</q-card>
</q-dialog>
<!-- dialog สรางคำส -->
<DialogCreateCommand
v-model:modal="modalCommand"
:command-type-code="'C-PM-13'"
command-type-code="C-PM-13"
:persons-id="selected.map((r) => r.id)"
/>
</template>
<style scoped></style>