diff --git a/src/modules/07_insignia/components/2_Manage/listManage.vue b/src/modules/07_insignia/components/2_Manage/listManage.vue index 4e7b2976c..c37427978 100644 --- a/src/modules/07_insignia/components/2_Manage/listManage.vue +++ b/src/modules/07_insignia/components/2_Manage/listManage.vue @@ -138,9 +138,8 @@ const changround = async () => { const roundFilter = await optionRound.value.find( (x: any) => round.value === x.id ); - roundName.value = `รอบการเสนอขอพระราชทานเครื่องราชปี ${ - roundFilter.year + 543 - }`; + roundName.value = `รอบการเสนอขอพระราชทานเครื่องราชปี ${roundFilter.year + 543 + }`; }; const requestNote = ref(""); const requestStatus = ref(""); @@ -292,174 +291,78 @@ const requestSendNote = async () => { รายชื่อข้าราชการสามัญฯ ที่มีสิทธิ์ยื่นขอพระราชทานเครื่องราชอิสริยาภรณ์ -
+
รอบ
- + + + + + + ล็อกข้อมูล + +
- - - - + + + +
-
- +
+ หมายเหตุ ตีกลับ {{ requestNote }}
- + - +
- + - + - + - + - - - - - - - ล็อกข้อมูล - + + + - + diff --git a/src/modules/10_order/components/Detail.vue b/src/modules/10_order/components/Detail.vue index 603bdfbe2..57a149cc5 100644 --- a/src/modules/10_order/components/Detail.vue +++ b/src/modules/10_order/components/Detail.vue @@ -10,20 +10,16 @@ const route = useRoute(); const orderId_params = route.params.orderid; const step01 = defineAsyncComponent( - () => - import("@/modules/10_order/components/step/step01.vue") + () => import("@/modules/10_order/components/step/step01.vue") ); const step02 = defineAsyncComponent( - () => - import("@/modules/10_order/components/step/step02.vue") + () => import("@/modules/10_order/components/step/step02.vue") ); const step03 = defineAsyncComponent( - () => - import("@/modules/10_order/components/step/step03.vue") + () => import("@/modules/10_order/components/step/step03.vue") ); const step04 = defineAsyncComponent( - () => - import("@/modules/10_order/components/step/step04.vue") + () => import("@/modules/10_order/components/step/step04.vue") ); const router = useRouter(); @@ -37,12 +33,12 @@ onUnmounted(() => { const nextStep = async () => { stepper.value!.next(); - localStorage.setItem("currentStep", (step.value + 1).toString()); + localStorage.setItem("currentStep", step.value.toString()); if (orderId.value) { await http .put(config.API.nextStep(orderId.value)) - .then((res) => { - console.log(res); + .then(() => { + router.push(`/order/detail/${orderId.value}?step=${step.value}`); }) .catch((e) => { console.log(e); @@ -51,12 +47,12 @@ const nextStep = async () => { }; const previousStep = async () => { stepper.value!.previous(); - localStorage.setItem("currentStep", (step.value - 1).toString()); + localStorage.setItem("currentStep", step.value.toString()); if (orderId.value) { await http .put(config.API.prevStep(orderId.value)) - .then((res) => { - console.log(res); + .then(() => { + router.push(`/order/detail/${orderId.value}?step=${step.value}`); }) .catch((e) => { console.log(e); @@ -70,7 +66,7 @@ const destroyLocalStorage = () => { onMounted(() => { // console.log("route query===>", route.query) if (route.query.step) { - step.value = Number(route.query.step) + step.value = Number(route.query.step); localStorage.setItem("currentStep", step.value.toString()); } else { const currentStep = localStorage.getItem("currentStep"); @@ -90,16 +86,55 @@ onMounted(() => {