diff --git a/src/api/13_salary/api.salary.ts b/src/api/13_salary/api.salary.ts index f835154f9..9af69c3c1 100644 --- a/src/api/13_salary/api.salary.ts +++ b/src/api/13_salary/api.salary.ts @@ -26,4 +26,6 @@ export default { salaryListPeriodQuota: (id: string) => `${salaryPeriod}/quota/${id}`, salaryListPeriodORG: (id: string) => `${salaryPeriod}/org/${id}`, salaryListPeriodProfileById: (id: string) => `${salaryPeriod}/profile/${id}`, + salaryListPerson: `${env.API_URI}/org/profile/salary/gen`, + salaryPeriodProfile: `${salary}/period/org/profile`, }; diff --git a/src/modules/13_salary/components/SalaryLists/DialogAddPerson.vue b/src/modules/13_salary/components/SalaryLists/DialogAddPerson.vue new file mode 100644 index 000000000..ce110f65f --- /dev/null +++ b/src/modules/13_salary/components/SalaryLists/DialogAddPerson.vue @@ -0,0 +1,309 @@ + + + + diff --git a/src/modules/13_salary/components/SalaryLists/DialogFormEdit.vue b/src/modules/13_salary/components/SalaryLists/DialogFormEdit.vue index b81c553c1..342b1f64d 100644 --- a/src/modules/13_salary/components/SalaryLists/DialogFormEdit.vue +++ b/src/modules/13_salary/components/SalaryLists/DialogFormEdit.vue @@ -34,7 +34,7 @@ function close() { function onSubmit() { dialogConfirm($q, () => { - if (amount.value) { + if (amount.value !== null) { const amountString: string = amount.value.toString(); const body = { profileId: profileId.value, @@ -58,13 +58,6 @@ function onSubmit() { } }); } - -function inputEdit(val: boolean) { - return { - "full-width cursor-pointer inputgreen ": val, - "full-width cursor-pointer inputgreen": !val, - }; -} diff --git a/src/modules/13_salary/interface/index/SalaryList.ts b/src/modules/13_salary/interface/index/SalaryList.ts index 0f8d7fa16..4a2767dfd 100644 --- a/src/modules/13_salary/interface/index/SalaryList.ts +++ b/src/modules/13_salary/interface/index/SalaryList.ts @@ -5,4 +5,10 @@ interface DataFilter { type: string; } -export type { DataFilter }; +interface DataFilterPerson { + page: number; + pageSize: number; + keyword: string; +} + +export type { DataFilter, DataFilterPerson }; diff --git a/src/modules/13_salary/interface/request/SalaryList.ts b/src/modules/13_salary/interface/request/SalaryList.ts new file mode 100644 index 000000000..11938e9a5 --- /dev/null +++ b/src/modules/13_salary/interface/request/SalaryList.ts @@ -0,0 +1,33 @@ +interface DataPersonReq { + id: string; + type: string; + amount: number; + child1: string; + child1Id: string; + child2: string; + child2Id: string; + child3: string | null; + child3Id: string | null; + child4: string | null; + child4Id: string | null; + citizenId: string; + firstName: string; + isDuration: boolean; + isPunish: boolean; + isResult: boolean; + isRetired: boolean; + isRetired2: boolean; + lastName: string; + orgShortName: string; + posExecutive: string | null; + posLevel: string; + posMasterNo: number; + posMasterNoPrefix: string; + posMasterNoSuffix: string; + posType: string; + position: string; + prefix: string; + root: string; + rootId: string; +} +export type { DataPersonReq }; diff --git a/src/modules/13_salary/interface/response/SalaryList.ts b/src/modules/13_salary/interface/response/SalaryList.ts index 4f9848b6f..7c8ea0350 100644 --- a/src/modules/13_salary/interface/response/SalaryList.ts +++ b/src/modules/13_salary/interface/response/SalaryList.ts @@ -11,4 +11,73 @@ interface DataPeriodQuota { chosen: number; //เลือกไปแล้ว remaining: number; //คงเหลือโควตาnumber } -export type { DataPeriodLatest, DataPeriodQuota }; + +interface DataRound { + effectiveDate: string; + id: string; + isActive: boolean; + period: string; + revisionId: string; + status: string; + year: number; +} + +interface DataAgency { + ancestorDNA: string; + createdAt: string; + createdFullName: string; + createdUserId: string; + id: string; + lastUpdateFullName: string; + lastUpdateUserId: string; + lastUpdatedAt: string; + orgChild1s: any[]; + orgRevision: any[]; + orgRevisionId: string; + orgRootCode: string; + orgRootFax: string; + orgRootName: string; + orgRootOrder: number; + orgRootPhoneEx: string; + orgRootPhoneIn: string; + orgRootRank: string; + orgRootShortName: string; +} + +interface DataPerson { + amount: number; + child1: string; + child1Id: string; + child2: string; + child2Id: string; + child3: string | null; + child3Id: string | null; + child4: string | null; + child4Id: string | null; + citizenId: string; + firstName: string; + isDuration: boolean; + isPunish: boolean; + isResult: boolean; + isRetired: boolean; + isRetired2: boolean; + lastName: string; + orgShortName: string; + posExecutive: string | null; + posLevel: string; + posMasterNo: number; + posMasterNoPrefix: string; + posMasterNoSuffix: string; + posType: string; + position: string; + prefix: string; + root: string; + rootId: string; +} +export type { + DataPeriodLatest, + DataPeriodQuota, + DataRound, + DataAgency, + DataPerson, +}; diff --git a/src/modules/13_salary/views/salaryLists.vue b/src/modules/13_salary/views/salaryLists.vue index 809ed54b7..2546c3be7 100644 --- a/src/modules/13_salary/views/salaryLists.vue +++ b/src/modules/13_salary/views/salaryLists.vue @@ -1,42 +1,51 @@