diff --git a/src/modules/05_placement/components/AppointMent/Main.vue b/src/modules/05_placement/components/AppointMent/Main.vue index 8995fd4f2..98c6ff0a2 100644 --- a/src/modules/05_placement/components/AppointMent/Main.vue +++ b/src/modules/05_placement/components/AppointMent/Main.vue @@ -182,8 +182,8 @@ const fecthlistappointment = async () => { rows2.value = rows.value.filter( (e: orgFilter) => e.orgName !== null && - e.status !== "ส่งรายชื่อไปออกคำสั่ง" && - e.status !== "ออกคำสั่งเสร็จแล้ว" && + e.status !== "REPORT" && + e.status !== "DONE" && e.educationOld && e.organizationPositionOld && e.positionTypeOld && @@ -460,7 +460,43 @@ onMounted(() => { name="mdi-bookmark-outline" /> - เลือกหน่วยงาน/ตำแหน่ง + เลือกหน่วยงานที่รับแต่งตั้ง + + + + + + เลือกหน่วยงานที่รับเลื่อน + + + + + + เลือกหน่วยงานที่รับย้าย { }); }; -function onSave(data:any) { - console.log('not save',data) +function onSave(data: any) { + console.log("not save", data); const dataAppoint = { - recruitDate: data.reportingDate, - posNoId: data.posNoId, - positionId: data.positionId, - positionLevelId: data.posLevelId, - positionTypeId: data.posTypeId, - // positionLineId: data.positionLineId, - // positionPathSideId: data.positionPathSideId, - - }; - showLoader(); - http - .put(config.API.receivePosition(personalId.value), dataAppoint) - .then((res) => { - modalTree.value = false - success($q, "บันทึกสำเร็จ"); - }) - .catch((e) => { - messageError($q, e); - }) - .finally(async () => { - fecthlistRecevice() - hideLoader(); - }); + // personalId: data.personalId, + node: data.node, + nodeId: data.nodeId, + orgRevisionId: data.orgRevisionId, + positionId: data.positionId, + posMasterNo: data.posMasterNo, + positionName: data.positionName, + posTypeId: data.posTypeId, + posTypeName: data.posTypeName, + posLevelId: data.posLevelId, + posLevelName: data.posLevelName, + reportingDate: data.reportingDate, + posmasterId: data.posmasterId, + typeCommand: data.typeCommand, + }; + showLoader(); + http + .put(config.API.receivePosition(personalId.value), dataAppoint) + .then((res) => { + modalTree.value = false; + success($q, "บันทึกสำเร็จ"); + }) + .catch((e) => { + messageError($q, e); + }) + .finally(async () => { + fecthlistRecevice(); + hideLoader(); + }); } onMounted(() => { fecthlistRecevice(); }); - รายการรับโอน @@ -427,7 +432,12 @@ onMounted(() => { - + {{ props.rowIndex + 1 }} @@ -453,11 +463,6 @@ onMounted(() => { }} - {{ props.row.root !== null ? props.row.root : "-" }} @@ -479,13 +484,6 @@ onMounted(() => { - - - - - - - - {{ props.row.status ? statusText(props.row.status) : "-" }} @@ -510,9 +508,7 @@ onMounted(() => {