From 1c83867fb7849466b66968a90055679f05c6daf1 Mon Sep 17 00:00:00 2001 From: waruneeta Date: Tue, 19 Sep 2023 14:58:54 +0700 Subject: [PATCH] =?UTF-8?q?-=20=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A?= =?UTF-8?q?=E0=B8=AB=E0=B8=99=E0=B9=89=E0=B8=B2=E0=B9=80=E0=B8=9E=E0=B8=B4?= =?UTF-8?q?=E0=B9=88=E0=B8=A1=E0=B8=82=E0=B8=A3=E0=B8=81.=E0=B8=82?= =?UTF-8?q?=E0=B8=AD=E0=B8=87=E0=B8=A3=E0=B8=B1=E0=B8=9A=E0=B9=82=E0=B8=AD?= =?UTF-8?q?=E0=B8=99=20-=20=E0=B9=81=E0=B8=81=E0=B9=89=20error=20=E0=B8=AA?= =?UTF-8?q?=E0=B9=88=E0=B8=A7=E0=B8=99=E0=B8=82=E0=B8=AD=E0=B8=87=E0=B8=97?= =?UTF-8?q?=E0=B8=B0=E0=B9=80=E0=B8=9A=E0=B8=B5=E0=B8=A2=E0=B8=99=E0=B8=9B?= =?UTF-8?q?=E0=B8=A3=E0=B8=B0=E0=B8=A7=E0=B8=B1=E0=B8=95=E0=B8=B4=20-=20?= =?UTF-8?q?=E0=B8=A5=E0=B8=9A=E0=B9=80=E0=B8=A1=E0=B8=99=E0=B8=B9=E0=B9=83?= =?UTF-8?q?=E0=B8=99=E0=B8=AA=E0=B9=88=E0=B8=A7=E0=B8=99=E0=B8=82=E0=B8=AD?= =?UTF-8?q?=E0=B8=87=E0=B9=80=E0=B8=AB=E0=B8=A3=E0=B8=B5=E0=B8=A2=E0=B8=8D?= =?UTF-8?q?=E0=B8=88=E0=B8=B1=E0=B8=81=E0=B8=A3=E0=B8=9E=E0=B8=A3=E0=B8=A3?= =?UTF-8?q?=E0=B8=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/information/Information.vue | 4 +- .../information/interface/index/Main.ts | 2 +- .../interface/index/profileType.ts | 210 +++++ .../04_registry/components/SalaryEmployee.vue | 2 + .../components/SalaryEmployeeTemp.vue | 2 + .../04_registry/components/profileType.ts | 2 + .../components/Receive/AddEmployee/Main.vue | 505 +++++++++++ .../components/Receive/FormAdd.vue | 2 +- .../components/Receive/information.vue | 857 ------------------ .../components/1_Proposals/addProposals.vue | 391 -------- .../components/1_Proposals/listProposals.vue | 471 ---------- .../09_coin/components/2_Manage/Main.vue | 154 ---- .../09_coin/components/2_Manage/StatCard.vue | 43 - .../09_coin/components/2_Manage/Tab1.vue | 465 ---------- .../09_coin/components/2_Manage/Tab2.vue | 340 ------- .../09_coin/components/2_Manage/Tab3.vue | 339 ------- .../09_coin/components/2_Manage/Tab4.vue | 315 ------- .../09_coin/components/3_Receive/Main.vue | 495 ---------- .../09_coin/components/4_Payment/Main.vue | 298 ------ src/modules/09_coin/components/Coin.vue | 516 ----------- .../CoinRequest/coinRequestMain.vue | 335 ------- .../coinAllocate/coinAllocateAdd.vue | 78 -- .../coinAllocate/coinAllocateDetail.vue | 419 --------- .../coinAllocate/coinAllocateDetailAdd.vue | 690 -------------- .../coinAllocate/coinAllocateMain.vue | 363 -------- .../coinReport/coinReportDetail.vue | 275 ------ .../components/coinReport/coinReportMain.vue | 37 - .../components/dialog/DialogHeader.vue | 28 - src/modules/09_coin/interface/index/Main.ts | 1 - src/modules/09_coin/interface/request/Main.ts | 1 - .../09_coin/interface/response/Main.ts | 1 - src/modules/09_coin/router.ts | 171 ---- src/modules/09_coin/store.ts | 5 - src/modules/09_coin/views/Main.vue | 12 - 34 files changed, 725 insertions(+), 7104 deletions(-) create mode 100644 src/components/information/interface/index/profileType.ts create mode 100644 src/modules/05_placement/components/Receive/AddEmployee/Main.vue delete mode 100644 src/modules/05_placement/components/Receive/information.vue delete mode 100644 src/modules/09_coin/components/1_Proposals/addProposals.vue delete mode 100644 src/modules/09_coin/components/1_Proposals/listProposals.vue delete mode 100644 src/modules/09_coin/components/2_Manage/Main.vue delete mode 100644 src/modules/09_coin/components/2_Manage/StatCard.vue delete mode 100644 src/modules/09_coin/components/2_Manage/Tab1.vue delete mode 100644 src/modules/09_coin/components/2_Manage/Tab2.vue delete mode 100644 src/modules/09_coin/components/2_Manage/Tab3.vue delete mode 100644 src/modules/09_coin/components/2_Manage/Tab4.vue delete mode 100644 src/modules/09_coin/components/3_Receive/Main.vue delete mode 100644 src/modules/09_coin/components/4_Payment/Main.vue delete mode 100644 src/modules/09_coin/components/Coin.vue delete mode 100644 src/modules/09_coin/components/CoinRequest/coinRequestMain.vue delete mode 100644 src/modules/09_coin/components/coinAllocate/coinAllocateAdd.vue delete mode 100644 src/modules/09_coin/components/coinAllocate/coinAllocateDetail.vue delete mode 100644 src/modules/09_coin/components/coinAllocate/coinAllocateDetailAdd.vue delete mode 100644 src/modules/09_coin/components/coinAllocate/coinAllocateMain.vue delete mode 100644 src/modules/09_coin/components/coinReport/coinReportDetail.vue delete mode 100644 src/modules/09_coin/components/coinReport/coinReportMain.vue delete mode 100644 src/modules/09_coin/components/dialog/DialogHeader.vue delete mode 100644 src/modules/09_coin/interface/index/Main.ts delete mode 100644 src/modules/09_coin/interface/request/Main.ts delete mode 100644 src/modules/09_coin/interface/response/Main.ts delete mode 100644 src/modules/09_coin/router.ts delete mode 100644 src/modules/09_coin/store.ts delete mode 100644 src/modules/09_coin/views/Main.vue diff --git a/src/components/information/Information.vue b/src/components/information/Information.vue index 70a7b9d68..8446b07d1 100644 --- a/src/components/information/Information.vue +++ b/src/components/information/Information.vue @@ -116,7 +116,7 @@ lazy-rules :readonly="!edit" :borderless="!edit" - :model-value="date2Thai(informaData.birthDate)" + :model-value="informaData.birthDate ? date2Thai(informaData.birthDate) : null" :rules="[(val:string) => !!val || `${'กรุณาเลือก วัน/เดือน/ปี เกิด'}`]" :label="`${'วัน/เดือน/ปี เกิด'}`" > @@ -1054,7 +1054,7 @@ const editData = async () => { nationality: informaData.value.nationality, race: informaData.value.ethnicity, religionId: informaData.value.religionId, - birthDate: dateToISO(informaData.value.birthDate) ?? dateToISO(new Date()), + birthDate: informaData.value.birthDate ? dateToISO(informaData.value.birthDate) : dateToISO(new Date()), bloodGroupId: informaData.value.bloodId, relationshipId: informaData.value.statusId, telephoneNumber: informaData.value.tel, diff --git a/src/components/information/interface/index/Main.ts b/src/components/information/interface/index/Main.ts index fe165e2b9..25c5cfe8e 100644 --- a/src/components/information/interface/index/Main.ts +++ b/src/components/information/interface/index/Main.ts @@ -1,4 +1,4 @@ -import type { zipCodeOption } from "../../components/profileType"; +import type { zipCodeOption } from "@/components/information/interface/index/profileType"; interface Pagination { rowsPerPage: number; } diff --git a/src/components/information/interface/index/profileType.ts b/src/components/information/interface/index/profileType.ts new file mode 100644 index 000000000..a3e94f836 --- /dev/null +++ b/src/components/information/interface/index/profileType.ts @@ -0,0 +1,210 @@ +//interface class array object {name string ,id number} + +import type { childrenFamily } from "@/modules/04_registry/interface/response/Family"; +interface ChangeActive { + name: string; + id: number; +} + +//ข้อมูลส่วนตัว +interface Information { + cardid: string | null; + prefix: string | null; + age: string | null; + prefixId: string | null; + firstname: string | null; + lastname: string | null; + birthDate: Date | null; + genderId: string | null; + bloodId: string | null; + nationality: string | null; + ethnicity: string | null; + statusId: string | null; + religionId: string | null; + tel: string | null; + employeeType: string | null; + employeeClass: string | null; + profileType: string | null; +} + +interface Family { + prefixC: string | null; // couple + prefixIdC: string | null; + firstnameC: string | null; + lastnameC: string | null; + lastnameCOld: string | null; + occupationC: string | null; + citizenIdC: string | null; + liveC: string | null; + prefixM: string | null; // male + prefixIdM: string | null; + firstnameM: string | null; + lastnameM: string | null; + occupationM: string | null; + citizenIdM: string | null; + liveM: string | null; + prefixF: string | null; // female + prefixIdF: string | null; + firstnameF: string | null; + lastnameF: string | null; + occupationF: string | null; + citizenIdF: string | null; + liveF: string | null; + same: string | null; + childrens: childrenFamily[]; +} + +interface Address { + address: string | null; + provinceId: string | null; + districtId: string | null; + subdistrictId: string | null; + addressC: string | null; + provinceIdC: string | null; + districtIdC: string | null; + subdistrictIdC: string | null; + same: string | null; + codec: string | null; + codep: string | null; +} + +interface Goverment { + ocId: string | null; + positionId: string | null; + positionPathSide: string | null; + positionLine: string | null; + positionType: string | null; + positionLevel: string | null; + numberId: string | null; + positionExecutive: string | null; + positionExecutiveSide: string | null; + containDate: Date; + workDate: Date; + retireDate: string | null; + absent: number | null; + age: number | null; + ageAll: string | null; + reasonSameDate: string | null; +} + +interface DataOption { + id: string; + name: string; + zipCode?: string; +} + +interface zipCodeOption { + id: string; + name: string; + zipCode: string; +} + +const defaultGoverment: Goverment = { + ocId: null, + positionId: null, + positionPathSide: null, + positionLine: null, + positionType: null, + positionLevel: null, + numberId: null, + positionExecutive: null, + positionExecutiveSide: null, + containDate: new Date(), + workDate: new Date(), + retireDate: null, + absent: 0, + age: 0, + ageAll: null, + reasonSameDate: null, +}; + +const defaultAddress: Address = { + address: null, + provinceId: null, + districtId: null, + subdistrictId: null, + addressC: null, + provinceIdC: null, + districtIdC: null, + subdistrictIdC: null, + codec: null, + codep: null, + same: "0", +}; + +const defaultInformation: Information = { + cardid: null, + age: null, + prefix: null, + prefixId: null, + firstname: null, + lastname: null, + birthDate: null, + genderId: null, + bloodId: null, + nationality: null, + ethnicity: null, + statusId: null, + religionId: null, + tel: null, + employeeType: null, + employeeClass: null, + profileType: null, +}; + +const defaultTempInformation: any = { + employeeMoneyIncrease: null, + employeeMoneyAllowance: null, + employeeMoneyEmployee: null, + employeeMoneyEmployer: null, + positionEmployeeGroupId: null, + positionEmployeePositionId: null, + positionEmployeeLineId: null, + employeeTypeIndividual: null, + employeeOc: null, + employeeWage: null, +}; + +const defaultFamily: Family = { + prefixC: null, + prefixIdC: null, + firstnameC: null, + lastnameC: null, + lastnameCOld: null, + occupationC: null, + citizenIdC: null, + liveC: "1", + prefixM: null, + prefixIdM: null, + firstnameM: null, + lastnameM: null, + occupationM: null, + citizenIdM: null, + liveM: "1", + prefixF: null, + prefixIdF: null, + firstnameF: null, + lastnameF: null, + occupationF: null, + citizenIdF: null, + liveF: "1", + same: "0", + childrens: [], +}; + +export { + defaultInformation, + defaultFamily, + defaultAddress, + defaultGoverment, + defaultTempInformation, +}; +export type { + ChangeActive, + Information, + Family, + Address, + Goverment, + DataOption, + zipCodeOption, +}; diff --git a/src/modules/04_registry/components/SalaryEmployee.vue b/src/modules/04_registry/components/SalaryEmployee.vue index da2d034b7..f500e4f60 100644 --- a/src/modules/04_registry/components/SalaryEmployee.vue +++ b/src/modules/04_registry/components/SalaryEmployee.vue @@ -1540,6 +1540,7 @@ const fetchData = async () => { // refCommandDate: new Date(e.refCommandDate), createdFullName: e.createdFullName, createdAt: new Date(e.createdAt), + salaryStatus: null }); }); }) @@ -2022,6 +2023,7 @@ const clickHistory = async (row: RequestItemsEmployee) => { refCommandNo: e.refCommandNo, createdFullName: e.createdFullName, createdAt: new Date(e.createdAt), + salaryStatus: null }); }); }) diff --git a/src/modules/04_registry/components/SalaryEmployeeTemp.vue b/src/modules/04_registry/components/SalaryEmployeeTemp.vue index e569bec38..82f140634 100644 --- a/src/modules/04_registry/components/SalaryEmployeeTemp.vue +++ b/src/modules/04_registry/components/SalaryEmployeeTemp.vue @@ -1568,6 +1568,7 @@ const fetchData = async () => { refCommandNo: e.refCommandNo, createdFullName: e.createdFullName, createdAt: new Date(e.createdAt), + salaryStatus: null }); }); }) @@ -2068,6 +2069,7 @@ const clickHistory = async (row: RequestItemsEmployee) => { refCommandNo: e.refCommandNo, createdFullName: e.createdFullName, createdAt: new Date(e.createdAt), + salaryStatus: null }); }); }) diff --git a/src/modules/04_registry/components/profileType.ts b/src/modules/04_registry/components/profileType.ts index caf829f0e..a3e94f836 100644 --- a/src/modules/04_registry/components/profileType.ts +++ b/src/modules/04_registry/components/profileType.ts @@ -127,6 +127,8 @@ const defaultAddress: Address = { provinceIdC: null, districtIdC: null, subdistrictIdC: null, + codec: null, + codep: null, same: "0", }; diff --git a/src/modules/05_placement/components/Receive/AddEmployee/Main.vue b/src/modules/05_placement/components/Receive/AddEmployee/Main.vue new file mode 100644 index 000000000..c8f8d6a3d --- /dev/null +++ b/src/modules/05_placement/components/Receive/AddEmployee/Main.vue @@ -0,0 +1,505 @@ + + + \ No newline at end of file diff --git a/src/modules/05_placement/components/Receive/FormAdd.vue b/src/modules/05_placement/components/Receive/FormAdd.vue index 074e3b82a..04015992f 100644 --- a/src/modules/05_placement/components/Receive/FormAdd.vue +++ b/src/modules/05_placement/components/Receive/FormAdd.vue @@ -1,5 +1,5 @@