From 92edcfb5338b39c1c0347f09908c3a92ad2cd44a Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Fri, 4 Aug 2023 12:07:24 +0700 Subject: [PATCH] list Order --- src/api/05_placement/api.placement.ts | 11 +- .../OrderPlacement/MainOrderPlacement.vue | 187 ++-- .../OrderPlacement/detailOrderPlacement.vue | 15 +- .../components/OrderPlacement/step/step01.vue | 943 ++++++++++-------- src/modules/05_placement/router.ts | 12 +- src/modules/05_placement/store.ts | 2 + 6 files changed, 658 insertions(+), 512 deletions(-) diff --git a/src/api/05_placement/api.placement.ts b/src/api/05_placement/api.placement.ts index 6be4c2dde..5ca86af6d 100644 --- a/src/api/05_placement/api.placement.ts +++ b/src/api/05_placement/api.placement.ts @@ -1,6 +1,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}`; export default { MainDetail: (year: number) => `${placement}/exam/${year}`, @@ -47,7 +48,13 @@ export default { // position placementPosition: () => `${placement}/position/use`, // putPositiom - putPosition: (id:any) => `${placement}/position/${id}`, + putPosition: (id: any) => `${placement}/position/${id}`, // clear Position - clearPosition: (personalId:string) => `${placement}/position/clear/${personalId}` + clearPosition: (personalId: string) => `${placement}/position/clear/${personalId}`, + + // order + yearOptionsOrder: () => `${order}/order/fiscal-year`, + listOrder: () => `${order}/order`, + typeOrder: () => `${order}/order/order-type`, + examroundOrder: () => `${order}/order/detail/exam-round`, }; diff --git a/src/modules/05_placement/components/OrderPlacement/MainOrderPlacement.vue b/src/modules/05_placement/components/OrderPlacement/MainOrderPlacement.vue index 6894b70cd..efc769971 100644 --- a/src/modules/05_placement/components/OrderPlacement/MainOrderPlacement.vue +++ b/src/modules/05_placement/components/OrderPlacement/MainOrderPlacement.vue @@ -97,7 +97,7 @@ map-options option-label="name" :options="OrderTypeOption" - option-value="id" + option-value="name" lazy-rules hide-bottom-space :readonly="false" @@ -115,7 +115,7 @@ map-options option-label="name" :options="OrderStatusOption" - option-value="id" + option-value="name" lazy-rules hide-bottom-space :readonly="false" @@ -153,54 +153,30 @@