From 960f996ebc2ae6d4496a38835e207405f7d5c2ea Mon Sep 17 00:00:00 2001 From: Tanyalak Date: Tue, 7 Nov 2023 12:13:42 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=20Layout?= =?UTF-8?q?=20=E0=B8=AA=E0=B8=B7=E0=B8=9A=E0=B8=AA=E0=B8=A7=E0=B8=99?= =?UTF-8?q?=E0=B8=82=E0=B9=89=E0=B8=AD=E0=B9=80=E0=B8=97=E0=B9=87=E0=B8=88?= =?UTF-8?q?=E0=B8=88=E0=B8=A3=E0=B8=B4=E0=B8=87,=E0=B8=AA=E0=B8=AD?= =?UTF-8?q?=E0=B8=9A=E0=B8=AA=E0=B8=A7=E0=B8=99=E0=B8=84=E0=B8=A7=E0=B8=B2?= =?UTF-8?q?=E0=B8=A1=E0=B8=9C=E0=B8=B4=E0=B8=94=E0=B8=97=E0=B8=B2=E0=B8=87?= =?UTF-8?q?=E0=B8=A7=E0=B8=B4=E0=B8=99=E0=B8=B1=E0=B8=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/2_InvestigateFacts/Form.vue | 654 +++++++++--------- .../3_InvestigateDisciplinary/Dialogbody.vue | 65 +- .../3_InvestigateDisciplinary/Form.vue | 345 +++++---- .../6_BasicInformation/Director/Form.vue | 4 + .../11_discipline/interface/index/Main.ts | 1 + .../interface/request/director.ts | 2 + .../store/InvestigateDisStore.ts | 11 + 7 files changed, 577 insertions(+), 505 deletions(-) diff --git a/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue b/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue index e45ff916e..2bdc487aa 100644 --- a/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue +++ b/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue @@ -117,341 +117,340 @@ watch(props.data, async () => { diff --git a/src/modules/11_discipline/components/3_InvestigateDisciplinary/Dialogbody.vue b/src/modules/11_discipline/components/3_InvestigateDisciplinary/Dialogbody.vue index 38349b77b..4e030bfd1 100644 --- a/src/modules/11_discipline/components/3_InvestigateDisciplinary/Dialogbody.vue +++ b/src/modules/11_discipline/components/3_InvestigateDisciplinary/Dialogbody.vue @@ -22,6 +22,7 @@ const visibleColumns2 = ref([ "duty", "email", "telephone", + "role" ]); const columns2 = ref([ { @@ -90,6 +91,17 @@ const columns2 = ref([ sort: (a: string, b: string) => a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), }, + { + name: "role", + align: "left", + label: "จำนวนเรื่องสืบสวน", + sortable: true, + field: "role", + headerStyle: "font-size: 14px", + style: "font-size: 14px", + sort: (a: string, b: string) => + a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), + }, ]); const props = defineProps({ @@ -138,35 +150,28 @@ watchEffect(() => { - -
-
- - - - - -
-
- + + + + { + + { duty: "ประธาน", email: "e@email.com", telephone: "0800808080", + role: "4", }, { nameDirector: "นาย สรวิชญ์ พลสิทธิ์", @@ -37,6 +38,7 @@ onMounted(async () => { duty: "เลขานุการ", email: "g@gmail.com", telephone: "0614565145", + role: "6", }, ]); await hideLoader(); @@ -213,10 +215,8 @@ watch(props.data, async () => {
-
-
- -
+
+
{ for="#Complaint" ref="complaintRef" label="เรื่องร้องเรียน" + hide-bottom-space type="textarea" :rules="[(val:string) => !!val || `${'กรุณากรอกเรื่องร้องเรียน'}`]" /> @@ -251,6 +252,7 @@ watch(props.data, async () => { outlined dense class="full-width datepicker" + hide-bottom-space :model-value=" dateInvestigate != null ? date2Thai(dateInvestigate) @@ -293,6 +295,7 @@ watch(props.data, async () => { outlined dense class="col-xs-12 col-sm-4" + hide-bottom-space :model-value=" dateAllegation != null ? date2Thai(dateAllegation) @@ -338,6 +341,7 @@ watch(props.data, async () => { outlined dense class="full-width datepicker" + hide-bottom-space :model-value=" dateEvident != null ? date2Thai(dateEvident) : null " @@ -358,65 +362,70 @@ watch(props.data, async () => { -
- กรรมการ - - เพิ่มกรรมการ - +
+ +
+ กรรมการ + + เพิ่มกรรมการ + +
+
+
+ + +
+
+
-
- - -
-
- { v-model="formData.casefault" for="#casefault" label="กรณีมีความผิด" + hide-bottom-space :rules="[(val) => !!val || `${'กรุณากรอกกรณีมีความผิด'}`]" lazy-rules /> { option-value="id" emit-value map-options + hide-bottom-space :options="investigateDis.optionsTypefault" label="ลักษณะความผิด" /> @@ -464,13 +476,15 @@ watch(props.data, async () => { option-value="id" emit-value map-options + hide-bottom-space :options="investigateDis.optionsfaultLevel" label="ระดับโทษความผิด" /> { class="col-12" dense outlined + hide-bottom-space for="#detailComplaint" ref="detailComplaintRef" v-model="formData.detailComplaint" @@ -495,6 +510,7 @@ watch(props.data, async () => { class="col-12" dense outlined + hide-bottom-space for="#trueDetail" ref="trueDetailRef" v-model="formData.trueDetail" @@ -502,90 +518,123 @@ watch(props.data, async () => { type="textarea" :rules="[(val:string) => !!val || `${'กรุณากรอกรายละเอียดสืบสวนข้อเท็จจริง'}`]" /> - - - - - - - - - - - - +
+ +
+ หลักฐานสนับสนุนข้อกล่าวหา +
+
+
+ + + + +
+
+
+
+ +
+ บันทึกถ้อยคำของผู้กล่าวหา +
+
+
+ + + + +
+
+
+
+ +
+ พยานและการบันทึกถ้อยคำ +
+
+
+ + + + +
+
+
{ ref="InvestResultsRef" v-model="formData.InvestResults" label="ผลการสอบสวน" + hide-bottom-space type="textarea" :rules="[(val:string) => !!val || `${'กรุณากรอกผลการสอบสวน'}`]" /> @@ -615,7 +665,6 @@ watch(props.data, async () => {
-
diff --git a/src/modules/11_discipline/components/6_BasicInformation/Director/Form.vue b/src/modules/11_discipline/components/6_BasicInformation/Director/Form.vue index ac2e3b1e5..cc2a953ca 100644 --- a/src/modules/11_discipline/components/6_BasicInformation/Director/Form.vue +++ b/src/modules/11_discipline/components/6_BasicInformation/Director/Form.vue @@ -29,6 +29,7 @@ const formData = reactive({ position: "", phone: "", email: "", + role: "", }); watch(props.data, async () => { @@ -39,6 +40,7 @@ watch(props.data, async () => { formData.position = props.data.position; formData.phone = props.data.phone; formData.email = props.data.email; + formData.role = props.data.role; }); // เพิ่มบุคลากร @@ -55,6 +57,7 @@ const lastnameRef = ref(null); const positionRef = ref(null); const phoneRef = ref(null); const emailRef = ref(null); +const roleRef = ref(null); const formRef: FormRef = { prefix: prefixRef, firstname: firstnameRef, @@ -62,6 +65,7 @@ const formRef: FormRef = { position: positionRef, phone: phoneRef, email: emailRef, + role: roleRef, }; function onValidate() { diff --git a/src/modules/11_discipline/interface/index/Main.ts b/src/modules/11_discipline/interface/index/Main.ts index 7ea6a448f..6ecb18bd3 100644 --- a/src/modules/11_discipline/interface/index/Main.ts +++ b/src/modules/11_discipline/interface/index/Main.ts @@ -29,6 +29,7 @@ interface directorType { duty: string; email: string; telephone: string; + role: string; } export type { diff --git a/src/modules/11_discipline/interface/request/director.ts b/src/modules/11_discipline/interface/request/director.ts index ef4ffc25f..2dc5e971a 100644 --- a/src/modules/11_discipline/interface/request/director.ts +++ b/src/modules/11_discipline/interface/request/director.ts @@ -5,6 +5,7 @@ interface FormData { position: string; phone: string; email: string; + role: string; responsibilities:string } interface FormRef { @@ -14,6 +15,7 @@ interface FormRef { position: object | null; phone: object | null; email: object | null; + role: object | null; [key: string]: any; } diff --git a/src/modules/11_discipline/store/InvestigateDisStore.ts b/src/modules/11_discipline/store/InvestigateDisStore.ts index 7fa168358..182bd5a0d 100644 --- a/src/modules/11_discipline/store/InvestigateDisStore.ts +++ b/src/modules/11_discipline/store/InvestigateDisStore.ts @@ -51,6 +51,7 @@ export const useInvestigateDisStore = defineStore( duty: e.duty, email: e.email, telephone: e.telephone, + role: e.role, })); rows2.value = datalistDirector; selected.value = rows2.value; @@ -204,6 +205,7 @@ export const useInvestigateDisStore = defineStore( "duty", "email", "telephone", + "role", ]); const columnsDirector = ref([ { @@ -260,6 +262,15 @@ export const useInvestigateDisStore = defineStore( headerStyle: "font-size: 14px", style: "font-size: 14px", }, + { + name: "role", + align: "left", + label: "จำนวนเรื่องสืบสวน", + sortable: true, + field: "role", + headerStyle: "font-size: 14px", + style: "font-size: 14px", + }, ]); return { fecthList,