diff --git a/src/modules/05_placement/components/AppointEmployee/Dialogbody.vue b/src/modules/05_placement/components/AppointEmployee/Dialogbody.vue index 6034e5f87..ab3cc028b 100644 --- a/src/modules/05_placement/components/AppointEmployee/Dialogbody.vue +++ b/src/modules/05_placement/components/AppointEmployee/Dialogbody.vue @@ -86,9 +86,9 @@ const columns2 = ref([ style: "font-size: 14px", }, ]); -const pageNext = (item: object) => { - props.nextPage?.(item); -}; +// const pageNext = (item: object) => { +// props.nextPage?.(item); +// }; const emit = defineEmits([ "update:filterKeyword2", "update:type", @@ -122,7 +122,7 @@ const createdAppoint = async () => { }; showLoader(); await http - .put(config.API.appointEmployeeOrder(), data) + .post(config.API.appointEmployeeOrder(), data) .then(() => { success($q, "บันทึกสำเร็จ"); }) @@ -240,18 +240,20 @@ watchEffect(() => { {{ props.rowIndex + 1 }} - + {{ props.row.citizenId }} - + {{ props.row.fullname }} - -
+ {{ props.row.orgName !== null ? props.row.orgName : "-" }} + {{ + props.row.organizationShortName !== null + ? `(${props.row.organizationShortName})` + : "" + }} + - + {{ props.row.birthday }} diff --git a/src/modules/05_placement/components/AppointEmployee/Main.vue b/src/modules/05_placement/components/AppointEmployee/Main.vue index 9595da53c..8a8ec2312 100644 --- a/src/modules/05_placement/components/AppointEmployee/Main.vue +++ b/src/modules/05_placement/components/AppointEmployee/Main.vue @@ -256,10 +256,7 @@ const fecthlistappointment = async () => { personalId: e.id, citizenId: e.citizenId, fullname: e.prefix + e.firstname + " " + e.lastname, - organizationName: - e.organizationName + - " " + - e.organizationShortName, + organizationName: e.organizationName + " " + e.organizationShortName, orgName: e.organizationName, organizationShortName: e.organizationShortName, status: statusText(e.status), @@ -313,7 +310,6 @@ const fecthTypeOption = async () => { // เปิดโครงสร้าง const openModalEmployee = async (id: string) => { personalId.value = id; - await getPosition(id); }; const getPosition = async (id: string) => { @@ -353,16 +349,16 @@ const getPosition = async (id: string) => { organizationGovernmentAgencyId: r.organizationGovernmentAgencyId, organizationShortNameId: r.organizationShortNameId, organizationFaxName: r.organizationFaxName, - organizationLevelName: r.organizationLevelName, - organizationOrganizationName: r.organizationOrganizationName, - organizationTelExternalName: r.organizationTelExternalName, - organizationTelInternalName: r.organizationTelInternalName, - organizationTypeName: r.organizationTypeName, - positionEmployeeStatusName: r.positionEmployeeStatusName, - positionEmployeeLineName: r.positionEmployeeLineName, - positionEmployeePositionName: r.positionEmployeePositionName, - organizationAgencyName: r.organizationAgencyName, - organizationGovernmentAgencyName: r.organizationGovernmentAgencyName, + organizationLevelName: r.organizationLevel, + organizationOrganizationName: r.organizationOrganization, + organizationTelExternalName: r.organizationTelExternal, + organizationTelInternalName: r.organizationTelInternal, + organizationTypeName: r.organizationType, + positionEmployeeStatusName: r.positionEmployeeStatus, + positionEmployeeLineName: r.positionEmployeeLine, + positionEmployeePositionName: r.positionEmployeePosition, + organizationAgencyName: r.organizationAgencyCode, + organizationGovernmentAgencyName: r.organizationGovernmentAgencyCode, organizationShortName: r.organizationShortName, positionEmployeeLevels: r.positionEmployeeLevels, positionEmployeePositionSides: r.positionEmployeePositionSides, @@ -374,8 +370,7 @@ const getPosition = async (id: string) => { if (index >= 0) { selectedPosition.value = [data[index]]; } - - rowsPosition.value = data; + rowsPosition.value = data; ModalEmployee.value = true; }) .catch((e) => { @@ -488,27 +483,65 @@ const savePosition = async () => {
- + ส่งไปออกคำสั่ง - + - +
- +