From ba728ea0006f319188d08edf16d71cd23a00bd3f Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Tue, 28 May 2024 15:41:15 +0700 Subject: [PATCH] =?UTF-8?q?fixing=20=E0=B8=A3=E0=B8=B0=E0=B8=9A=E0=B8=9A?= =?UTF-8?q?=E0=B8=A7=E0=B8=B4=E0=B8=99=E0=B8=B1=E0=B8=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Dialogs/AddPersonal.vue | 20 ++ .../05_placement/interface/index/Main.ts | 2 + .../1_Complaint/AddComplaintPage.vue | 42 +---- .../components/1_Complaint/EditPage.vue | 49 +---- .../components/1_Complaint/Form.vue | 153 ++++++++------- .../2_InvestigateFacts/EditPage.vue | 45 +---- .../components/2_InvestigateFacts/Form.vue | 58 +++--- .../3_InvestigateDisciplinary/EditPage.vue | 44 +---- .../3_InvestigateDisciplinary/Form.vue | 85 +++------ .../components/4_Result/Form.vue | 6 +- .../components/7_ListSuspend/DetailPage.vue | 175 +++++++++++------- .../interface/request/complaint.ts | 111 +++++------ .../interface/response/suspend.ts | 17 ++ src/modules/11_discipline/store/main.ts | 22 ++- .../13_salary/interface/request/SalaryList.ts | 3 + .../interface/response/SalaryList.ts | 1 + 16 files changed, 391 insertions(+), 442 deletions(-) diff --git a/src/components/Dialogs/AddPersonal.vue b/src/components/Dialogs/AddPersonal.vue index fb39e19e3..1613ddf08 100644 --- a/src/components/Dialogs/AddPersonal.vue +++ b/src/components/Dialogs/AddPersonal.vue @@ -135,6 +135,26 @@ async function searchInput() { organization: e.organization ?? "-", phone: e.phone ?? "-", email: e.email ?? "-", + root: e.root, + rootId: e.rootId, + rootShortName: e.rootShortName, + child1: e.child1, + child1Id: e.child1Id, + child1ShortName: e.child1ShortName, + child2: e.child2, + child2Id: e.child2Id, + child2ShortName: e.child2ShortName, + child3: e.child3, + child3Id: e.child3Id, + child3ShortName: e.child3ShortName, + child4: e.child4, + child4Id: e.child4Id, + child4ShortName: e.child4ShortName, + posMasterNo: e.posMasterNo, + posTypeId: e.posTypeId, + posTypeName: e.posTypeName, + posLevelId: e.posLevelId, + posLevelName: e.posLevelName, })); rows.value = list; diff --git a/src/modules/05_placement/interface/index/Main.ts b/src/modules/05_placement/interface/index/Main.ts index 4a1fe4697..28b96fd29 100644 --- a/src/modules/05_placement/interface/index/Main.ts +++ b/src/modules/05_placement/interface/index/Main.ts @@ -255,6 +255,8 @@ interface DataProfile { rootOld?: string; rootShortNameOld?: string | null; status: string; + positionType?: string; + positionLevel?: string; } export type { DataOption, diff --git a/src/modules/11_discipline/components/1_Complaint/AddComplaintPage.vue b/src/modules/11_discipline/components/1_Complaint/AddComplaintPage.vue index 3c49bc768..2c367efc3 100644 --- a/src/modules/11_discipline/components/1_Complaint/AddComplaintPage.vue +++ b/src/modules/11_discipline/components/1_Complaint/AddComplaintPage.vue @@ -18,46 +18,7 @@ async function onSubmit(data: any) { /** post */ showLoader(); http - .post(config.API.complaintAdd(), { - id: data.id, - respondentType: data.respondentType, - organizationId: data.organizationId, - consideredAgency: data.consideredAgency, - title: data.title, - description: data.description, - dateReceived: data.dateReceived, - dateConsideration: data.dateConsideration, - offenseDetails: data.offenseDetails, - levelConsideration: data.levelConsideration, - dateNotification: data.dateNotification, - complaintFrom: data.complaintFrom, - appellant: data.appellant, - documentFile: data.documentFile, - status: data.status, - result: data.result, - persons: data.persons.map((item: any) => ({ - personId: item.personId, - idcard: item.idcard, - prefix: item.prefix, - firstName: item.firstName, - lastName: item.lastName, - name: item.name, - posNo: item.posNo === "-" ? null : item.posNo, - position: item.position, - positionLevel: item.positionLevel, - salary: item.salary === "-" ? null : item.salary, - organization: item.organization, - phone: item.phone === "-" ? null : item.phone, - email: item.email, - })), - disciplineComplaintDocs: data.disciplineComplaintDocs.map( - (file: any) => ({ - id: file.id, - fileName: file.fileName, - pathName: file.pathName, - }) - ), - }) + .post(config.API.complaintAdd(), data) .then((res) => { success($q, "บันทึกข้อมูลสำเร็จ"); router.push(`/discipline/complaints/${res.data.result}`); @@ -70,6 +31,7 @@ async function onSubmit(data: any) { }); } +