From 62b06973e29b7ff92ff1ba99d381bd166bae6279 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Tue, 12 Mar 2024 18:04:47 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=9C=E0=B8=B1=E0=B8=87=E0=B8=9A=E0=B8=B1?= =?UTF-8?q?=E0=B8=8D=E0=B8=8A=E0=B8=B5=E0=B8=84=E0=B9=88=E0=B8=B2=E0=B8=88?= =?UTF-8?q?=E0=B9=89=E0=B8=B2=E0=B8=87=E0=B8=A5=E0=B8=B9=E0=B8=81=E0=B8=88?= =?UTF-8?q?=E0=B9=89=E0=B8=B2=E0=B8=87=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=88?= =?UTF-8?q?=E0=B8=B3=20=3D>=20=E0=B8=AD=E0=B8=B1=E0=B8=95=E0=B8=A3?= =?UTF-8?q?=E0=B8=B2=E0=B8=84=E0=B9=88=E0=B8=B2=E0=B8=88=E0=B9=89=E0=B8=B2?= =?UTF-8?q?=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DialogEmployeeRate.vue | 190 ++++++++++++++++++ .../salaryEmployeeChart/TabStructure.vue | 2 +- .../13_salary/views/salaryEmployeeRate.vue | 93 ++++++++- 3 files changed, 283 insertions(+), 2 deletions(-) create mode 100644 src/modules/13_salary/components/salaryEmployeeChart/DialogEmployeeRate.vue diff --git a/src/modules/13_salary/components/salaryEmployeeChart/DialogEmployeeRate.vue b/src/modules/13_salary/components/salaryEmployeeChart/DialogEmployeeRate.vue new file mode 100644 index 000000000..c26eb4779 --- /dev/null +++ b/src/modules/13_salary/components/salaryEmployeeChart/DialogEmployeeRate.vue @@ -0,0 +1,190 @@ + + + + + diff --git a/src/modules/13_salary/components/salaryEmployeeChart/TabStructure.vue b/src/modules/13_salary/components/salaryEmployeeChart/TabStructure.vue index 3f57da830..b2e146bf3 100644 --- a/src/modules/13_salary/components/salaryEmployeeChart/TabStructure.vue +++ b/src/modules/13_salary/components/salaryEmployeeChart/TabStructure.vue @@ -128,7 +128,7 @@ function onClickAction(type: string, data: any) { onUpload(); break; case "salaryRate": - onSalaryRate(data); + onSalaryRate(data.id); break; case "coppy": onCoppy(data.id); diff --git a/src/modules/13_salary/views/salaryEmployeeRate.vue b/src/modules/13_salary/views/salaryEmployeeRate.vue index 8e81fac1c..288726d0c 100644 --- a/src/modules/13_salary/views/salaryEmployeeRate.vue +++ b/src/modules/13_salary/views/salaryEmployeeRate.vue @@ -5,6 +5,10 @@ import { useRouter } from "vue-router"; /** importType*/ import type { QTableProps } from "quasar"; +import type { ItemsMenu } from "@/modules/13_salary/interface/index/Main"; + +/** importComponts*/ +import DialogEmployeeRate from "@/modules/13_salary/components/salaryEmployeeChart/DialogEmployeeRate.vue"; /** importStore*/ import { useCounterMixin } from "@/stores/mixin"; @@ -54,6 +58,23 @@ const rows = ref([ ]); const visibleColumns = ref(["no", "month", "day"]); +/** List Mune*/ +const itemMenu = ref([ + { + label: "แก้ไข", + icon: "edit", + color: "edit", + type: "edit", + }, + + { + label: "ลบ", + icon: "delete", + color: "red", + type: "delete", + }, +]); + const formFilter = reactive({ page: 1, pageSize: 10, @@ -63,6 +84,37 @@ const pagination = ref({ page: formFilter.page, rowsPerPage: formFilter.pageSize, }); + +const modalDialogEmployeeRate = ref(false); +const isStatusEdit = ref(false); + +function onClickAction(type: string, data: any) { + switch (type) { + case "edit": + onEdit(); + break; + case "delete": + onDelete(); + break; + + default: + break; + } +} + +function onEdit() { + modalDialogEmployeeRate.value = true; + isStatusEdit.value = true; +} + +function onDelete() { + dialogRemove($q, () => {}); +} + +function onClickAdd() { + modalDialogEmployeeRate.value = true; + isStatusEdit.value = false; +} @@ -146,6 +199,39 @@ const pagination = ref({
{{ col.value ? col.value : "-" }}
+ + + + + + +
+ +
{{ item.label }}
+
+
+
+
+
+
+