diff --git a/src/api/05_placement/api.placement.ts b/src/api/05_placement/api.placement.ts index c2159003a..2b02d64f9 100644 --- a/src/api/05_placement/api.placement.ts +++ b/src/api/05_placement/api.placement.ts @@ -2,6 +2,7 @@ import env from "../index"; const placement = `${env.API_PLACEMENT_URI}/placement`; const orgTree = `${env.API_URI_ORG_TREE}`; const order = `${env.API_PLACEMENT_URI}`; +const receive = `${env.API_PLACEMENT_URI}/placement/Receive`; export default { MainDetail: (year: number) => `${placement}/exam/${year}`, @@ -54,8 +55,14 @@ export default { // order yearOptionsOrder: () => `${order}/order/fiscal-year`, + createOrder: () => `${order}/order/detail`, listOrder: () => `${order}/order`, - detailOrder:(orderId:string) => `${order}/order/${orderId}`, + detailOrder:(orderId:string) => `${order}/order/detail/${orderId}`, + deleteOrder:(orderId:string) => `${order}/order/${orderId}`, typeOrder: () => `${order}/order/order-type`, examroundOrder: () => `${order}/order/detail/exam-round`, + + receiveData: () => `${receive}`, + receiveDataId: (id: string) => `${receive}/${id}`, + receivePosition: (id: string) => `${receive}/position/${id}`, }; diff --git a/src/api/05_placement/api.probation.ts b/src/api/05_placement/api.probation.ts new file mode 100644 index 000000000..351a6685a --- /dev/null +++ b/src/api/05_placement/api.probation.ts @@ -0,0 +1,14 @@ +import env from "../index"; +const dataOptions = `${env.API_PROBATION_URI}/data-options`; +const personal = `${env.API_PROBATION_URI}/personal`; + +export default { + competencyOptions: () => `${dataOptions}/competency`, + competencyGroupOptions: () => `${dataOptions}/competency-group`, + knowledgeOptions: () => `${dataOptions}/knowledge`, + skillOptions: () => `${dataOptions}/skill`, + lawOptions: () => `${dataOptions}/law`, + + personalAdd: () => `${personal}/add`, + // clearPosition: (personalId:string) => `${placement}/position/clear/${personalId}` +}; diff --git a/src/api/index.ts b/src/api/index.ts index 4ca191632..660556e1d 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -26,6 +26,7 @@ const config = ref({ "https://s3cluster.frappet.com/bma-ehr-fpt/organization/strueture/tree_20230712_172702.json", MEET_URI: "meet.frappet.com", API_RETIREMENT_URI: "https://bma-ehr.frappet.synology.me/api/v1", + API_PROBATION_URI: "http://192.168.1.151:7776/v1", }, test: { API_URI: "http://localhost:5010/api/v1", @@ -70,6 +71,7 @@ const API_RETIREMENT_URI = ref( config.value[env.value].API_RETIREMENT_URI ); const API_URI_ORG_TREE = ref(config.value[env.value].API_URI_ORG_TREE); +const API_PROBATION_URI = ref(config.value[env.value].API_PROBATION_URI); export default { env: env.value, @@ -84,4 +86,5 @@ export default { API_URI_ORG_TREE: API_URI_ORG_TREE.value, MEET_URI: MEET_URI.value, API_RETIREMENT_URI:API_RETIREMENT_URI.value, + API_PROBATION_URI: API_PROBATION_URI.value }; diff --git a/src/app.config.ts b/src/app.config.ts index 5fe96eab7..ef0aa5f39 100644 --- a/src/app.config.ts +++ b/src/app.config.ts @@ -29,6 +29,7 @@ import report2 from "./api/recruiting/api.report2"; /** API ระบบการบรรจุ แต่งตั้ง ย้าย โอน List */ import placement from "./api/05_placement/api.placement"; +import probation from "./api/05_placement/api.probation"; /** API ระบบการพ้นจากราชการ List */ import retirement from "./api/06_retirement/api.retirement"; @@ -70,6 +71,7 @@ const API = { ...report2, ...placement, + ...probation, ...retirement, ...insignia, }; diff --git a/src/modules/05_placement/components/OrderPlacement/MainOrderPlacement.vue b/src/modules/05_placement/components/OrderPlacement/MainOrderPlacement.vue index 8d0e90c74..0b8339982 100644 --- a/src/modules/05_placement/components/OrderPlacement/MainOrderPlacement.vue +++ b/src/modules/05_placement/components/OrderPlacement/MainOrderPlacement.vue @@ -381,7 +381,7 @@ const OriginalDataFetch = async () => { fiscalYear: Number(e.fiscalYear), OrderDate: date2Thai(e.orderDate), OrderBy: e.orderBy, - Signer: "นาม สมคิด ยอดใจ ", + Signer: e.signatoryBy, OrderStatus: e.orderStatusName, orderStatusValue: e.orderStatusValue, OrderType: e.orderTypeName, @@ -423,7 +423,7 @@ const clickDelete = (id: string) => { const deleteData = async (id: string) => { showLoader(); await http - .delete(config.API.detailOrder(id)) + .delete(config.API.deleteOrder(id)) .then((res) => { success($q, "ลบข้อมูลสำเร็จ"); }) diff --git a/src/modules/05_placement/components/OrderPlacement/step/step01.vue b/src/modules/05_placement/components/OrderPlacement/step/step01.vue index 526d9a895..eeddc482b 100644 --- a/src/modules/05_placement/components/OrderPlacement/step/step01.vue +++ b/src/modules/05_placement/components/OrderPlacement/step/step01.vue @@ -3,24 +3,10 @@
- + @@ -29,73 +15,36 @@
- +
- +
- +
- +
- + @@ -103,24 +52,12 @@ {{ parseInt(value + 543) }} - @@ -439,7 +456,7 @@ - +