From c340f445bc37e1cbfac89afc663fa29062acf391 Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Fri, 11 Apr 2025 11:44:48 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=80=E0=B8=9B=E0=B8=A5=E0=B8=B5=E0=B9=88?= =?UTF-8?q?=E0=B8=A2=E0=B8=99=E0=B8=88=E0=B8=B2=E0=B8=81=20=E0=B8=95?= =?UTF-8?q?=E0=B8=B4=E0=B9=89=E0=B8=81=20=E0=B9=80=E0=B8=9B=E0=B9=87?= =?UTF-8?q?=E0=B8=99=20=E0=B9=84=E0=B8=AD=E0=B8=84=E0=B8=AD=E0=B8=99?= =?UTF-8?q?=E0=B8=9A=E0=B8=A7=E0=B8=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/2_InvestigateFacts/Form.vue | 89 +++++------- .../3_InvestigateDisciplinary/EditPage.vue | 1 - .../3_InvestigateDisciplinary/Form.vue | 81 ++++------- .../components/DialogAddDate.vue | 137 ++++++++++++++++++ 4 files changed, 200 insertions(+), 108 deletions(-) create mode 100644 src/modules/11_discipline/components/DialogAddDate.vue diff --git a/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue b/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue index 9b397616a..ce0a6e06f 100644 --- a/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue +++ b/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue @@ -21,10 +21,11 @@ import Table from "@/modules/11_discipline/components/DirectorTable.vue"; import DialogDirector from "@/modules/11_discipline/components/DialogDirector.vue"; import PopupSendToNext from "@/modules/11_discipline/components/PopupSendToNext.vue"; import DialogAddPersonal from "@/components/Dialogs/AddPersonal.vue"; +import DialogAddDate from "@/modules/11_discipline/components/DialogAddDate.vue"; const modalPersonal = ref(false); const personId = ref(""); - +const modalAddDate = ref(false); const $q = useQuasar(); const route = useRoute(); const checkRoutePermisson = ref( @@ -189,8 +190,9 @@ function onSubmit() { * ฟังชั้นคำนวณเวลาวันที่สิ้นสุดจาก วันที่สิ้นสุดการสืบสวน * @param val จำนวนวันที่ต้องการขยาย */ -async function calEndDate(val: string) { +async function calEndDate(val: any) { changeFormData(); + formData.investigationDaysExtend = val; const date = await new Date(props.data.investigationDateEnd); formData.investigationDateEnd = await new Date( date.setDate(date.getDate() + Number(val)) @@ -993,7 +995,11 @@ onMounted(async () => { {{ props.row.organization }}
- {{ props.row.salary?props.row.salary.toLocaleString():'0' }} + {{ + props.row.salary + ? props.row.salary.toLocaleString() + : "0" + }}
{{ @@ -1043,26 +1049,24 @@ onMounted(async () => { >
วันที่สืบสวน - + color="primary" + class="q-ml-sm" + @click="modalAddDate = true" + icon="mdi-plus" + > + ขยายเวลา +
@@ -1086,35 +1090,7 @@ onMounted(async () => {
-
- - -
- -
+
+
+ +