From 2852ac8026b2fc9edd2dd937661d7434b1b53870 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Thu, 14 Mar 2024 11:23:51 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=84=E0=B8=82?= =?UTF-8?q?=E0=B8=8A=E0=B8=B7=E0=B9=88=E0=B8=AD=E0=B8=9C=E0=B8=B1=E0=B8=87?= =?UTF-8?q?=E0=B8=9A=E0=B8=B1=E0=B8=8D=E0=B8=8A=E0=B8=B5=E0=B8=A5=E0=B8=B9?= =?UTF-8?q?=E0=B8=81=E0=B8=88=E0=B9=89=E0=B8=B2=E0=B8=87=E0=B8=9B=E0=B8=A3?= =?UTF-8?q?=E0=B8=B0=E0=B8=88=E0=B8=B3=20=E0=B9=81=E0=B8=A5=E0=B8=B0?= =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88=E0=B8=A1=E0=B8=9F=E0=B8=AD?= =?UTF-8?q?=E0=B8=A3=E0=B9=8C=E0=B8=A1=E0=B8=AB=E0=B8=A5=E0=B8=B1=E0=B8=81?= =?UTF-8?q?=E0=B9=80=E0=B8=81=E0=B8=93=E0=B8=91=E0=B9=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DialogEmployeeChart.vue | 16 +- .../DialogFormCriteria.vue | 304 ++++++++++++++++++ .../salaryEmployeeChart/TabCriteria.vue | 155 ++++++--- .../salaryEmployeeChart/TabStructure.vue | 6 +- .../13_salary/views/salaryEmployeeChart.vue | 2 +- 5 files changed, 430 insertions(+), 53 deletions(-) create mode 100644 src/modules/13_salary/components/salaryEmployeeChart/DialogFormCriteria.vue diff --git a/src/modules/13_salary/components/salaryEmployeeChart/DialogEmployeeChart.vue b/src/modules/13_salary/components/salaryEmployeeChart/DialogEmployeeChart.vue index 0ccf1fb82..75fee022d 100644 --- a/src/modules/13_salary/components/salaryEmployeeChart/DialogEmployeeChart.vue +++ b/src/modules/13_salary/components/salaryEmployeeChart/DialogEmployeeChart.vue @@ -32,8 +32,8 @@ const props = defineProps({ }, }); const formData = reactive({ - name: "", //ชื่อผังบัญชีโครงสร้างอัตราค่าจ้างลูกจ้าง - group: "", //*กลุ่มบัญชีค่าจ้าง + name: "", //ชื่อผังบัญชีอัตราค่าจ้าง + group: "", //*กลุ่มของผังบัญชีอัตราค่าจ้าง isActive: false, //*สถานะการใช้งาน date: null, //ให้ไว้ ณ วันที่ startDate: null, //วันที่มีผลบังคับใช้ @@ -166,11 +166,9 @@ watch( hide-bottom-space outlined v-model="formData.name" - label="ชื่อผังบัญชีโครงสร้างอัตราค่าจ้างลูกจ้าง" + label="ชื่อผังบัญชีอัตราค่าจ้าง" :rules="[ - (val) => - !!val || - 'กรุณากรอกชื่อผังบัญชีโครงสร้างอัตราค่าจ้างลูกจ้าง', + (val) => !!val || 'กรุณากรอกชื่อผังบัญชีอัตราค่าจ้าง', ]" lazy-rules /> @@ -184,10 +182,12 @@ watch( dense outlined v-model="formData.group" - label="กลุ่มบัญชีค่าจ้าง" + label="กลุ่มของผังบัญชีอัตราค่าจ้าง" hide-bottom-space mask="########" - :rules="[(val) => !!val || 'กรุณากรอกกลุ่มบัญชีค่าจ้าง']" + :rules="[ + (val) => !!val || 'กรุณากรอกกลุ่มของผังบัญชีอัตราค่าจ้าง', + ]" /> diff --git a/src/modules/13_salary/components/salaryEmployeeChart/DialogFormCriteria.vue b/src/modules/13_salary/components/salaryEmployeeChart/DialogFormCriteria.vue new file mode 100644 index 000000000..db62795d3 --- /dev/null +++ b/src/modules/13_salary/components/salaryEmployeeChart/DialogFormCriteria.vue @@ -0,0 +1,304 @@ + + + + + diff --git a/src/modules/13_salary/components/salaryEmployeeChart/TabCriteria.vue b/src/modules/13_salary/components/salaryEmployeeChart/TabCriteria.vue index 8f46b898a..8b82e75f6 100644 --- a/src/modules/13_salary/components/salaryEmployeeChart/TabCriteria.vue +++ b/src/modules/13_salary/components/salaryEmployeeChart/TabCriteria.vue @@ -1,12 +1,16 @@ + + + diff --git a/src/modules/13_salary/components/salaryEmployeeChart/TabStructure.vue b/src/modules/13_salary/components/salaryEmployeeChart/TabStructure.vue index a8acc6c20..d2c45c331 100644 --- a/src/modules/13_salary/components/salaryEmployeeChart/TabStructure.vue +++ b/src/modules/13_salary/components/salaryEmployeeChart/TabStructure.vue @@ -45,7 +45,7 @@ const columns = ref([ { name: "name", align: "left", - label: "ชื่อผังบัญชีโครงสร้างอัตราค่าจ้างลูกจ้าง", + label: "ชื่อผังบัญชีอัตราค่าจ้าง", sortable: true, field: "name", headerStyle: "font-size: 14px", @@ -54,7 +54,7 @@ const columns = ref([ { name: "group", align: "left", - label: "กลุ่มบัญชีค่าจ้าง", + label: "กลุ่มของผังบัญชีอัตราค่าจ้าง", sortable: true, field: "group", headerStyle: "font-size: 14px", @@ -289,7 +289,7 @@ onMounted(() => { {{ col.value ? date2Thai(col.value) : "-" }}
- {{ col.value ? `กลุ่มที่ (${col.value})` : "-" }} + {{ col.value ? `กลุ่มที่ ${col.value}` : "-" }}
- +