diff --git a/src/api/05_placement/api.placement.ts b/src/api/05_placement/api.placement.ts index 6be4c2dde..c2159003a 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,14 @@ 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`, + detailOrder:(orderId:string) => `${order}/order/${orderId}`, + typeOrder: () => `${order}/order/order-type`, + examroundOrder: () => `${order}/order/detail/exam-round`, }; diff --git a/src/interface/request/main/main.ts b/src/interface/request/main/main.ts index fe7b5080c..8b9fda266 100644 --- a/src/interface/request/main/main.ts +++ b/src/interface/request/main/main.ts @@ -291,20 +291,20 @@ const menuList = readonly([ role: "insignia", }, { - label: "จัดทำรายชื่อข้าราชการสามัญ", - path: "insigniaNameList", + label: "จัดการคำขอ", + path: "insigniaManage", role: "insignia", }, { - label: "อนุมัติรายชื่อข้าราชการสามัญ", - path: "insigniaNameApprove", - role: "insignia", - }, - { - label: "บันทึกผลการได้รับพระราชทานเครื่องราชย์อิสริยสภรณ์", + label: "บันทึกผลการได้รับพระราช...", path: "insigniaRecord", role: "insignia", }, + { + label: "จัดสรรเครื่องราชฯ", + path: "insigniaAllocate", + role: "insignia", + }, { label: "รายงาน", path: "insigniaReport", diff --git a/src/modules/05_placement/components/OrderPlacement/MainOrderPlacement.vue b/src/modules/05_placement/components/OrderPlacement/MainOrderPlacement.vue index b9b5f9197..8d0e90c74 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 @@ diff --git a/src/modules/07_insignia/components/4_Allocate/addDetail.vue b/src/modules/07_insignia/components/4_Allocate/addDetail.vue new file mode 100644 index 000000000..7095a5a26 --- /dev/null +++ b/src/modules/07_insignia/components/4_Allocate/addDetail.vue @@ -0,0 +1,678 @@ + + + + + diff --git a/src/modules/07_insignia/components/4_Allocate/allocateAdd.vue b/src/modules/07_insignia/components/4_Allocate/allocateAdd.vue new file mode 100644 index 000000000..9b3597e6a --- /dev/null +++ b/src/modules/07_insignia/components/4_Allocate/allocateAdd.vue @@ -0,0 +1,77 @@ + + diff --git a/src/modules/07_insignia/components/4_Allocate/detail.vue b/src/modules/07_insignia/components/4_Allocate/detail.vue new file mode 100644 index 000000000..514c8d7b9 --- /dev/null +++ b/src/modules/07_insignia/components/4_Allocate/detail.vue @@ -0,0 +1,353 @@ + + + + + diff --git a/src/modules/07_insignia/components/4_Allocate/listAllocate.vue b/src/modules/07_insignia/components/4_Allocate/listAllocate.vue new file mode 100644 index 000000000..d7834ae25 --- /dev/null +++ b/src/modules/07_insignia/components/4_Allocate/listAllocate.vue @@ -0,0 +1,359 @@ + + + + + diff --git a/src/modules/07_insignia/components/DialogHeader.vue b/src/modules/07_insignia/components/DialogHeader.vue new file mode 100644 index 000000000..8aa03351d --- /dev/null +++ b/src/modules/07_insignia/components/DialogHeader.vue @@ -0,0 +1,27 @@ + + diff --git a/src/modules/07_insignia/components/RecordInsignia.vue b/src/modules/07_insignia/components/RecordInsignia.vue index 5cae3b3c6..25d261701 100644 --- a/src/modules/07_insignia/components/RecordInsignia.vue +++ b/src/modules/07_insignia/components/RecordInsignia.vue @@ -22,10 +22,11 @@ > +
-
+
+ +
+ + + +
+
+ + + +
-
- -
-
- -
-
- -
-
- -
-
- - - -
-
- - - +
+
diff --git a/src/modules/07_insignia/router.ts b/src/modules/07_insignia/router.ts index 81ae5c6da..5eb982863 100644 --- a/src/modules/07_insignia/router.ts +++ b/src/modules/07_insignia/router.ts @@ -14,7 +14,16 @@ const insigniaProposals = () => import("@/modules/07_insignia/components/1_Proposals/listProposals.vue"); const roundAdd = () => import("@/modules/07_insignia/components/1_Proposals/addProposals.vue"); - +const listMange = () => + import("@/modules/07_insignia/components/2_Manage/listManage.vue"); +const listAllocate = () => + import("@/modules/07_insignia/components/4_Allocate/listAllocate.vue"); +const allocateAdd = () => + import("@/modules/07_insignia/components/4_Allocate/allocateAdd.vue"); +const allocateDetail = () => + import("@/modules/07_insignia/components/4_Allocate/detail.vue"); +const allocateDetailAdd = () => + import("@/modules/07_insignia/components/4_Allocate/addDetail.vue"); export default [ { path: "/insignia", @@ -87,4 +96,54 @@ export default [ Role: "insignia", }, }, + { + path: "/insignia/manage/list-manage", + name: "insigniaManage", + component: listMange, + meta: { + Auth: true, + Key: [8.6], + Role: "insignia", + }, + }, + { + path: "/insignia/allocate/list-allocate", + name: "insigniaAllocate", + component: listAllocate, + meta: { + Auth: true, + Key: [8.7], + Role: "insignia", + }, + }, + { + path: "/insignia/allocate/allocate-add", + name: "allocateAdd", + component: allocateAdd, + meta: { + Auth: true, + Key: [8.8], + Role: "insignia", + }, + }, + { + path: "/insignia/allocate/detail", + name: "allocateDetail", + component: allocateDetail, + meta: { + Auth: true, + Key: [8.9], + Role: "insignia", + }, + }, + { + path: "/insignia/allocate/detail-add", + name: "allocateDetailAdd", + component: allocateDetailAdd, + meta: { + Auth: true, + Key: [8.9], + Role: "insignia", + }, + }, ];