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) { }); } +