diff --git a/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue b/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue index 58d81888c..55f4aaf49 100644 --- a/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue +++ b/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue @@ -469,7 +469,7 @@
- เลือกวีธีการชำระเงิน + เลือกวิธีการชำระเงิน
@@ -479,6 +479,7 @@ val="payment1" color="blue" class="q-mr-md" + :disable="fee <= 0" /> @@ -500,6 +501,7 @@ val="payment2" color="blue" class="q-mr-md" + :disable="fee <= 0" /> @@ -1129,14 +1131,20 @@ const columnsPosition = ref([ }, ]); -watch(organizationShortName, (count: DataOption, prevCount: DataOption) => { +watch(organizationShortName, (count: any, prevCount: any) => { organizationNameOptions.value = []; }); -watch(organizationName, (count: DataOption, prevCount: DataOption) => { +watch(organizationName, (count: any, prevCount: any) => { positionPathOptions.value = []; }); +watch(fee, (count: any, prevCount: any) => { + if (fee.value <= 0) { + pay.value = ""; + } +}); + onMounted(async () => { hideLoader(); if (route.params.id != undefined) { diff --git a/src/modules/07_insignia/components/2_Manage/Tab1.vue b/src/modules/07_insignia/components/2_Manage/Tab1.vue index 17b215ea9..2c1c66a72 100644 --- a/src/modules/07_insignia/components/2_Manage/Tab1.vue +++ b/src/modules/07_insignia/components/2_Manage/Tab1.vue @@ -830,6 +830,7 @@ const closeModalEdit = () => { + { }) .then(async (res) => { if (download) { - downloadFile(res, `ประวัติสำหรับการเสนอขอพระราชทานเหรียญจักรพรรดิมาลา.${type}`); + downloadFile( + res, + `ประวัติสำหรับการเสนอขอพระราชทานเหรียญจักรพรรดิมาลา.${type}` + ); } }) .catch((e) => { @@ -91,4 +94,4 @@ const downloadFile = (response: any, filename: string) => { - \ No newline at end of file + diff --git a/src/modules/07_insignia/components/5_Borrow/DialogForm.vue b/src/modules/07_insignia/components/5_Borrow/DialogForm.vue index ba1e40563..0e27b7b63 100644 --- a/src/modules/07_insignia/components/5_Borrow/DialogForm.vue +++ b/src/modules/07_insignia/components/5_Borrow/DialogForm.vue @@ -126,18 +126,17 @@ const fetchOrgList = async () => { id: e.organizationId, name: e.organizationName, })); - - if (props.action == "editData") { - OrgList.value = [ - { - id: "00000000-0000-0000-0000-000000000000", - name: "สำนักนายกรัฐมนตรี", - }, - ...orgArr, - ]; - } else { - OrgList.value = orgArr; - } + // if (props.action == "editData") { + // OrgList.value = [ + // { + // id: "00000000-0000-0000-0000-000000000000", + // name: "สำนักนายกรัฐมนตรี", + // }, + // ...orgArr, + // ]; + // } else { + OrgList.value = orgArr; + // } }) .catch((err) => { messageError($q, err); @@ -160,7 +159,6 @@ const fetchOrgList = async () => { // }); // }; - // บันทึกข้อมูลการยืม-คืน const clickSave = async () => { await myForm.value!.validate().then((result: boolean) => { @@ -236,12 +234,12 @@ const closeDialog = () => { // reset วันที่ยืม const clearReceiveDate = () => { receivedate.value = null; -} +}; // reset วันที่คืน const clearReturnDate = () => { returndate.value = null; -} +}; + + \ No newline at end of file