From 18733051d653373978c71d882f164fa069b664fb Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Tue, 10 Oct 2023 13:47:11 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=20ui=20?= =?UTF-8?q?=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=A5=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/ExitInterview/exitRegistry.vue | 59 ++--- .../components/1_Work/DialogDetail.vue | 216 ++++++++++-------- .../components/2_Leave/DetailLeave.vue | 153 ++++++------- 3 files changed, 223 insertions(+), 205 deletions(-) diff --git a/src/modules/06_retirement/components/ExitInterview/exitRegistry.vue b/src/modules/06_retirement/components/ExitInterview/exitRegistry.vue index 265e4ae66..9ff9a61df 100644 --- a/src/modules/06_retirement/components/ExitInterview/exitRegistry.vue +++ b/src/modules/06_retirement/components/ExitInterview/exitRegistry.vue @@ -62,7 +62,7 @@ const score = reactive([ { no: 9, score: "" }, { no: 10, score: "" }, ]); -const scoreTotal = ref(''); +const scoreTotal = ref(""); const reasonWorkOther = ref(""); // const reasonWork_option = ref([ @@ -218,7 +218,6 @@ async function fecthquestion() { .get(config.API.questionnaireList()) .then((result) => { const data = result.data.result; - console.log(data); // คำถามแบบสอบถามหลัก for (let i = 1; i <= 10; i++) { questionDesc[`question${i}Desc`] = @@ -249,18 +248,24 @@ async function fecthquestion() { value: index, }) ); - question7Answer.value = data.question7Answer.map((e: any) => ({ - label: e, - value: e == "ไม่มี" ? false : true, - })); - question8Answer.value = data.question8Answer.map((e: any) => ({ - label: e, - value: e == "แนะนำ" ? true : false, - })); - question9Answer.value = data.question9Answer.map((e: any) => ({ - label: e, - value: e == "อยาก" ? true : false, - })); + question7Answer.value = data.question7Answer.map( + (e: any, index: number) => ({ + label: e, + value: index, + }) + ); + question8Answer.value = data.question8Answer.map( + (e: any, index: number) => ({ + label: e, + value: index, + }) + ); + question9Answer.value = data.question9Answer.map( + (e: any, index: number) => ({ + label: e, + value: index, + }) + ); }) .catch((err) => { messageError($q, err); @@ -273,18 +278,20 @@ watch(score, () => { }, 0); }); const saveClick = () => { - if (comment.value === "" || - score[0].score === "" || - score[1].score === "" || - score[2].score === "" || - score[3].score === "" || - score[4].score === "" || - score[5].score === "" || - score[6].score === "" || - score[7].score === "" || - score[8].score === "" || - score[9].score === "" || - scoreTotal.value === "") { + if ( + comment.value === "" || + score[0].score === "" || + score[1].score === "" || + score[2].score === "" || + score[3].score === "" || + score[4].score === "" || + score[5].score === "" || + score[6].score === "" || + score[7].score === "" || + score[8].score === "" || + score[9].score === "" || + scoreTotal.value === "" + ) { dialogMessageNotify($q, "กรุณากรอกคะแนน เเละ ความคิดเห็น"); } else { dialogConfirm($q, () => putData()); diff --git a/src/modules/09_leave/components/1_Work/DialogDetail.vue b/src/modules/09_leave/components/1_Work/DialogDetail.vue index f7b561a0b..31baf30ac 100644 --- a/src/modules/09_leave/components/1_Work/DialogDetail.vue +++ b/src/modules/09_leave/components/1_Work/DialogDetail.vue @@ -11,7 +11,8 @@ const props = defineProps({ type: Function, }, }); -// รายละเอียดข้อมูง +const statusEdit = ref(false); +// รายละเอียดข้อมูล const titlename = ref(""); const timeIn = ref(""); const timeOut = ref(""); @@ -52,7 +53,7 @@ function colsePopup() { unelevated round dense - style="color: #ff8080; background-color: #ffdede" + style="color: #eb0505; background-color: #ffdede" @click="colsePopup" /> @@ -64,52 +65,77 @@ function colsePopup() { inline-actions rounded class="bg-grey-2" - style="border: 2px solid rgb(215, 212, 212)" + style="border: 2px solid rgb(239, 236, 236)" > -
-
-
- - - - ชื่อ-นามสกุล - {{ titlename }} - - - -
-
+
+
+ - วันที่เข้างาน - 05 ต.ค. 56 - - -
-
- - - สถานะ - {{ status }} - - -
-
- - - - แก้ไข - ชื่อ-นามสกุล + {{ titlename }} + +
+
+ + + + วันที่เข้างาน + 05 ต.ค. 56 + + +
+
+ + + สถานะ + {{ status }} + + +
+
+ + แก้ไข + +
+ + ยกเลิก + + + บันทึกข้อมูล +
@@ -118,64 +144,66 @@ function colsePopup() {
- - - เวลาเข้างาน - {{ timeIn }} - - - พิกัด - {{ coordinatesIn }} - - - รูปภาพ - - - - - - หมายเหตุ - - - - +
+
+
เวลาเข้างาน
+
{{ timeIn }}
+
+
+
พิกัด
+
{{ coordinatesIn }}
+
+
+
รูปภาพ
+
+ +
+
+
+
หมายเหตุ
+
-
+
+
- - - เวลาออกงาน - {{ timeOut }} - - - พิกัด - {{ coordinatesOut }} - - - รูปภาพ - - - - - - หมายเหตุ - - - - +
+
+
เวลาออกงาน
+
{{ timeOut }}
+
+
+
พิกัด
+
{{ coordinatesOut }}
+
+
+
รูปภาพ
+
+ +
+
+
+
หมายเหตุ
+
-
+
+
diff --git a/src/modules/09_leave/components/2_Leave/DetailLeave.vue b/src/modules/09_leave/components/2_Leave/DetailLeave.vue index d47aaca20..92921248b 100644 --- a/src/modules/09_leave/components/2_Leave/DetailLeave.vue +++ b/src/modules/09_leave/components/2_Leave/DetailLeave.vue @@ -20,7 +20,7 @@ const paramsId = route.params.id; /> รายละเอียดการลาของ {{ paramsId }}
-
+
- - - ประเภทการลา - ลาป่วย - - - - ชื่อ - นามสกุล - - {{ paramsId }} - - +
+
+
+
ประเภทการลา
+
ลาป่วย
+
+
+
+
+
ชื่อ - นามสกุล
+
{{ paramsId }}
+
+
+
@@ -100,80 +99,60 @@ const paramsId = route.params.id;
- - - เขียนที่ - บ้าน - - - รับเงินเดือน - รับเงินเดือน - - - เขียนที่ - บ้าน - - - รับเงินเดือน - รับเงินเดือน - - - - วัน เดือน ปีเริ่มต้น - 14 ก.ค. 2556 - - - - วัน เดือน ปีเริ่มสิ้นสุด - 15 ก.ค. 2556 - - +
+
+
เขียนที่
+
บ้าน
+
+
+
รับเงินเดือน
+
รับเงินเดือน
+
+
+
เขียนที่
+
บ้าน
+
+
+
รับเงินเดือน
+
รับเงินเดือน
+
+
+
วัน เดือน ปีเริ่มต้น
+
14 ก.ค. 2556
+
+
+
วัน เดือน ปีเริ่มสิ้นสุด
+
15 ก.ค. 2556
+
+
- - - จำนวนวันที่ลา - 1 - - - สถานที่ติดต่อขณะลา - สถานที่ติดต่อขณะลา - - - หมายเลขที่ติดต่อขณะลา - หมายเลขที่ติดต่อขณะลา - - - สถานะการพิจารณา - ขอยกเลิก - - - เอกสารแบบ - - - - ไม่พบเอกสาร - - +
+
+
จำนวนวันที่ลา
+
1
+
+
+
สถานที่ติดต่อขณะลา
+
สถานที่ติดต่อขณะลา
+
+
+
หมายเลขที่ติดต่อขณะลา
+
095-123467
+
+
+
สถานะการพิจารณา
+
ขอยกเลิก
+
+
+
เอกสารแบบ
+
ไม่พบเอกสาร
+
+
@@ -191,4 +170,8 @@ const paramsId = route.params.id; - +