diff --git a/src/modules/07_insignia/components/5_Borrow/DialogForm.vue b/src/modules/07_insignia/components/5_Borrow/DialogForm.vue index 3d6069993..53989b675 100644 --- a/src/modules/07_insignia/components/5_Borrow/DialogForm.vue +++ b/src/modules/07_insignia/components/5_Borrow/DialogForm.vue @@ -223,8 +223,8 @@ const clickSave = async () => { // ค้นหาคนจากเลขประจำตัวประชาชน const searchcardid = async () => { - showLoader(); if (cardid.value.length === 13) { + showLoader(); const node = await listPerson.value.find( (e: any) => e.citizenId === cardid.value ); diff --git a/src/modules/09_leave/components/4_specialTime/DialogApprove.vue b/src/modules/09_leave/components/4_specialTime/DialogApprove.vue index ab93f817b..c2f4f249a 100644 --- a/src/modules/09_leave/components/4_specialTime/DialogApprove.vue +++ b/src/modules/09_leave/components/4_specialTime/DialogApprove.vue @@ -14,24 +14,22 @@ const $q = useQuasar(); const mixin = useCounterMixin(); const { dialogConfirm, date2Thai } = mixin; const currentDate = ref(new Date()); -const startTimeMorningRef = ref(null); -const endTimeMorningRef = ref(null); +const checkInRef = ref(null); +const checkOutRef = ref(null); const checkInStatusRef = ref(null); const checkOutStatusRef = ref(null); const formData = reactive({ - startTimeMorning: "", - endTimeMorning: "", - startTimeAfternoon: "", - endTimeAfternoon: "", + checkIn: "", + checkOut: "", note: "", checkInStatus: "", checkOutStatus: "", }); const objectRound: MyObjectRoundRef = { - startTimeMorning: startTimeMorningRef, - endTimeMorning: endTimeMorningRef, + checkIn: checkInRef, + checkOut: checkOutRef, checkInStatus: checkInStatusRef, checkOutStatus: checkOutStatusRef, }; @@ -81,17 +79,13 @@ watch( () => props.modal, (newDetailData, oldDetailData) => { if (props.editCheck === "APPROVE") { - formData.startTimeMorning = ""; - formData.endTimeMorning = ""; - formData.startTimeAfternoon = ""; - formData.endTimeAfternoon = ""; + formData.checkIn = ""; + formData.checkOut = ""; formData.note = ""; } else if (props.editCheck === "PENDING") { if (props.detailData) { - formData.startTimeMorning = props.detailData.startTimeMorning; - formData.endTimeMorning = props.detailData.endTimeMorning; - formData.startTimeAfternoon = props.detailData.startTimeAfternoon; - formData.endTimeAfternoon = props.detailData.endTimeAfternoon; + formData.checkIn = props.detailData.checkIn; + formData.checkOut = props.detailData.checkOut; formData.note = props.detailData.note; } } @@ -174,27 +168,21 @@ watch(

เวลาเข้างาน

เวลาออกงาน

{ endTimeMorning: e.endTimeMorning, startTimeAfternoon: e.startTimeAfternoon, endTimeAfternoon: e.endTimeAfternoon, + checkIn: e.checkOut, + checkOut: e.checkOut, status: e.status, checkInStatus: convertStatus(e.checkInStatus), checkOutStatus: convertStatus(e.checkOutStatus), diff --git a/src/modules/09_leave/views/SpecialTimeMain.vue b/src/modules/09_leave/views/SpecialTimeMain.vue index c64a61901..93b42e65c 100644 --- a/src/modules/09_leave/views/SpecialTimeMain.vue +++ b/src/modules/09_leave/views/SpecialTimeMain.vue @@ -76,6 +76,8 @@ onMounted(async () => { status: "PENDING", checkInStatus: "normal", checkOutStatus: "late", + checkIn: "08:00", + checkOut: "12.00", }, { id: "00000000-0000-0000-0000-000000000000", @@ -89,6 +91,8 @@ onMounted(async () => { status: "APPROVE", checkInStatus: "normal", checkOutStatus: "late", + checkIn: "08:00", + checkOut: "12.00", }, { id: "00000000-0000-0000-0000-000000000000", @@ -102,6 +106,8 @@ onMounted(async () => { status: "REJECT", checkInStatus: "normal", checkOutStatus: "late", + checkIn: "08:00", + checkOut: "12.00", }, ]); }); diff --git a/src/modules/11_discipline/components/1_Complaint/Form.vue b/src/modules/11_discipline/components/1_Complaint/Form.vue index d995f64a3..cb7c6b941 100644 --- a/src/modules/11_discipline/components/1_Complaint/Form.vue +++ b/src/modules/11_discipline/components/1_Complaint/Form.vue @@ -228,7 +228,7 @@ watch(props.data, async () => {
{ option-label="name" emit-value map-options + hide-bottom-space :rules="[(val) => !!val || `${'กรุณาเลือกผู้ร้องเรียน'}`]" lazy-rules @update:model-value=" @@ -278,6 +279,7 @@ watch(props.data, async () => { label="รายชื่อจากทะเบียรประวัติ" option-value="id" option-label="name" + hide-bottom-space emit-value map-options :rules="[(val) => !!val || `${'กรุณาเลือกรายชื่อ'}`]" @@ -305,6 +307,7 @@ watch(props.data, async () => { name="office" ref="officeRef" dense + hide-bottom-space outlined v-model="formData.office" label="เลือกสำนักงาน" @@ -323,6 +326,7 @@ watch(props.data, async () => { label="หน่วยงานที่พิจารณา" option-value="id" option-label="name" + hide-bottom-space emit-value map-options :rules="[(val) => !!val || `${'กรุณาเลือกหน่วยงาน'}`]" @@ -347,6 +351,7 @@ watch(props.data, async () => { ref="topicComplaintRef" dense outlined + hide-bottom-space v-model="formData.topicComplaint" :rules="[(val) => !!val || 'กรุณาการข้อมูล']" lazy-rules @@ -361,6 +366,7 @@ watch(props.data, async () => { ref="detailRef" dense outlined + hide-bottom-space v-model="formData.detail" :rules="[(val) => !!val || 'กรุณาการข้อมูล']" lazy-rules @@ -391,6 +397,7 @@ watch(props.data, async () => { ref="datereceiveRef" outlined dense + hide-bottom-space class="full-width datepicker" :model-value=" formData.datereceive != null @@ -428,6 +435,7 @@ watch(props.data, async () => { option-value="id" option-label="name" emit-value + hide-bottom-space map-options :rules="[(val) => !!val || `${'กรุณาเลือกระดับการพิจารณา'}`]" lazy-rules @@ -464,6 +472,7 @@ watch(props.data, async () => { : null " label="วันที่กำหนดวันพิจารณา" + hide-bottom-space :rules="[ (val) => !!val || `${'กรุณาเลือกวันที่กำหนดวันพิจารณา'}`, ]" @@ -493,6 +502,7 @@ watch(props.data, async () => { option-value="id" option-label="name" emit-value + hide-bottom-space map-options :rules="[(val) => !!val || `${'กรุณาเลือกลักษณะความผิด'}`]" lazy-rules @@ -521,6 +531,7 @@ watch(props.data, async () => { ref="datewarnRef" outlined dense + hide-bottom-space class="full-width datepicker" :model-value=" formData.datewarn != null @@ -557,6 +568,7 @@ watch(props.data, async () => { label="รับเรื่องร้องเรียน" option-value="id" option-label="name" + hide-bottom-space emit-value map-options :rules="[(val) => !!val || `${'กรุณาเลือกรับเรื่องร้องเรียน'}`]" @@ -573,16 +585,18 @@ watch(props.data, async () => { label="ผู้ร้องเรียน" :rules="[(val) => !!val || `${'กรุณากรอกข้อมูล'}`]" lazy-rules + hide-bottom-space type="textarea" rows="5" />
-
+
{ 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,72 @@ 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 +478,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 +512,7 @@ watch(props.data, async () => { class="col-12" dense outlined + hide-bottom-space for="#trueDetail" ref="trueDetailRef" v-model="formData.trueDetail" @@ -502,90 +520,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 +667,6 @@ watch(props.data, async () => {
-
diff --git a/src/modules/11_discipline/components/6_BasicInformation/Channel/AddPage.vue b/src/modules/11_discipline/components/6_BasicInformation/Channel/AddPage.vue index 9e6ef04f0..deb9e7fff 100644 --- a/src/modules/11_discipline/components/6_BasicInformation/Channel/AddPage.vue +++ b/src/modules/11_discipline/components/6_BasicInformation/Channel/AddPage.vue @@ -71,6 +71,7 @@ const clickBack = () => { outlined v-model="channel" for="channel" + hide-bottom-space label="กรอกชื่อช่องทาง" :rules="[(val:string) => !!val || `${'กรุณากรอกชื่อช่องทาง'}`]" /> @@ -78,17 +79,13 @@ const clickBack = () => {
-
- {{ edit ? "แก้ไขข้อมูล" : "บันทึกข้อมูล" }}
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..f670ac922 100644 --- a/src/modules/11_discipline/components/6_BasicInformation/Director/Form.vue +++ b/src/modules/11_discipline/components/6_BasicInformation/Director/Form.vue @@ -81,117 +81,129 @@ 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/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,