diff --git a/src/interface/request/main/main.ts b/src/interface/request/main/main.ts index fc1d1f2cf..78f2ecd9b 100644 --- a/src/interface/request/main/main.ts +++ b/src/interface/request/main/main.ts @@ -337,7 +337,7 @@ const menuList = readonly([ role: "insignia", children: [ { - label: "รายการเสนอขอ", + label: "รอบการเสนอขอ", path: "insigniaProposals", role: "insignia", }, @@ -370,7 +370,7 @@ const menuList = readonly([ role: "coin", children: [ { - label: "รายการเสนอขอ", + label: "รอบการเสนอขอ", path: "coinProposals", role: "coin", }, diff --git a/src/modules/05_placement/components/Relocation/RelocationMain.vue b/src/modules/05_placement/components/Relocation/RelocationMain.vue index 03122f023..ed978cbbc 100644 --- a/src/modules/05_placement/components/Relocation/RelocationMain.vue +++ b/src/modules/05_placement/components/Relocation/RelocationMain.vue @@ -166,7 +166,7 @@ const columns = ref([ { name: "organization", align: "left", - label: "หน่วยงานที่ขอโอนไป", + label: "หน่วยงานที่ขอย้ายไป", sortable: true, field: "organization", headerStyle: "font-size: 14px", @@ -240,7 +240,7 @@ const columns2 = ref([ { name: "organization", align: "left", - label: "หน่วยงานที่ขอโอนไป", + label: "หน่วยงานที่ขอย้ายไป", sortable: true, field: "organization", headerStyle: "font-size: 14px", diff --git a/src/modules/05_placement/components/Relocation/RelocationbyId.vue b/src/modules/05_placement/components/Relocation/RelocationbyId.vue index 4e1825af8..6ee4a91a8 100644 --- a/src/modules/05_placement/components/Relocation/RelocationbyId.vue +++ b/src/modules/05_placement/components/Relocation/RelocationbyId.vue @@ -50,8 +50,8 @@ const organization = ref(""); const reason = ref(""); const status = ref(""); const date = ref(null); -const salary = ref(""); -const salaryNew = ref(""); +const amount = ref(); +const amountOld = ref(); const positionTypeOld = ref(""); const positionLevelOld = ref(""); const dateOfBirth = ref() @@ -131,7 +131,8 @@ const getData = async () => { reason.value = data.reason; status.value = data.status; date.value = data.date; - salary.value = data.salary; + amount.value = data.amount; + amountOld.value = data.amountOld; positionTypeOld.value = data.positionTypeOld; positionLevelOld.value = data.positionLevelOld; positionNumberOld.value = data.positionNumberOld; @@ -178,6 +179,10 @@ const conditionSave = async () => { }); } }; +const cancelBtn = () => { + edit.value=!edit + getData() +} const saveData = async () => { const body = { educationOld: educationOld.value, @@ -190,7 +195,8 @@ const saveData = async () => { positionTypeOld: positionTypeOld.value, positionLevelOld: positionLevelOld.value, positionNumberOld: positionNumberOld.value, - amountOld: salary.value, + amount: amount.value, + amountOld: amountOld.value, dateOfBirth:dateOfBirth.value , genderId:genderId.value , nationality:nationality.value , @@ -348,7 +354,7 @@ onMounted(async () => { class="q-px-sm" label="ยกเลิก" style="width: 80px" - @click="edit = !edit" + @click="cancelBtn" /> @@ -454,7 +460,7 @@ onMounted(async () => { lazy-rules :readonly="!edit" :borderless="!edit" - v-model="salary" + v-model="amountOld" :rules="[(val) => !!val || `${'กรุณากรอกเงินเดือน'}`]" hide-bottom-space :label="`${'เงินเดือน'}`" @@ -492,7 +498,7 @@ onMounted(async () => { lazy-rules :readonly="!edit" :borderless="!edit" - v-model="salaryNew" + v-model="amount" :rules="[(val) => !!val || `${'กรุณากรอกเงินเดือน'}`]" hide-bottom-space :label="`${'เงินเดือน'}`" diff --git a/src/modules/05_placement/components/Repatriate/RepatriatebyId.vue b/src/modules/05_placement/components/Repatriate/RepatriatebyId.vue index 0d7bf023a..3bc30c5bf 100644 --- a/src/modules/05_placement/components/Repatriate/RepatriatebyId.vue +++ b/src/modules/05_placement/components/Repatriate/RepatriatebyId.vue @@ -95,7 +95,7 @@ class="q-px-sm" label="ยกเลิก" style="width: 80px" - @click="edit = !edit" + @click="cancelBtn" /> @@ -429,6 +429,10 @@ }); } }; + const cancelBtn = () => { + edit.value=!edit + getData() +} const saveData = async () => { const body = { organization: organization.value, diff --git a/src/modules/05_placement/components/helpgovernment/governmentDetail.vue b/src/modules/05_placement/components/helpgovernment/governmentDetail.vue index 944de9a45..99c741fd9 100644 --- a/src/modules/05_placement/components/helpgovernment/governmentDetail.vue +++ b/src/modules/05_placement/components/helpgovernment/governmentDetail.vue @@ -95,7 +95,7 @@ class="q-px-sm" label="ยกเลิก" style="width: 80px" - @click="edit = !edit" + @click="cancelBtn" /> @@ -429,6 +429,10 @@ const conditionSave = async () => { }); } }; +const cancelBtn = () => { + edit.value=!edit + getData() +} const saveData = async () => { const body = { organization: organization.value, diff --git a/src/modules/07_insignia/components/1_Proposals/addProposals.vue b/src/modules/07_insignia/components/1_Proposals/addProposals.vue index f4b3205ef..bb59267c9 100644 --- a/src/modules/07_insignia/components/1_Proposals/addProposals.vue +++ b/src/modules/07_insignia/components/1_Proposals/addProposals.vue @@ -24,12 +24,16 @@
- (new Date()); const yearly = ref(new Date().getFullYear()); const files = ref(); const fileDocDataUpload = ref([]); -const roundInsig = ref(""); +const roundInsig = ref(); const datelast = ref(1); - +const options = ref([ + {label:"ครั้งที่ 1",value:1}, + {label:"ครั้งที่ 2",value:2} +]) onMounted(async () => { await fetchData(); }); @@ -312,6 +319,18 @@ const checkSave = async () => { // }; // return valueData; // }; +const updateDateRange = () => { +// console.log("test") + if (roundInsig.value.value == 1) { + dateStart.value = new Date(new Date().getFullYear(), 9, 1); + dateEnd.value = new Date(new Date().getFullYear() + 1, 3, 29); + console.log(1) + } else if (roundInsig.value.value == 2) { + dateStart.value = new Date(new Date().getFullYear(), 3, 29); + dateEnd.value = new Date(new Date().getFullYear() + 1, 6, 28); + console.log(2) + } +}; const addData = async () => { const formData = new FormData(); diff --git a/src/modules/07_insignia/components/1_Proposals/listProposals.vue b/src/modules/07_insignia/components/1_Proposals/listProposals.vue index 8702e4e49..c558d3d48 100644 --- a/src/modules/07_insignia/components/1_Proposals/listProposals.vue +++ b/src/modules/07_insignia/components/1_Proposals/listProposals.vue @@ -1,183 +1,3 @@ - - + + +