diff --git a/src/components/Dialogs/AddPersonal.vue b/src/components/Dialogs/AddPersonal.vue index 5ce74adf9..98d3a3353 100644 --- a/src/components/Dialogs/AddPersonal.vue +++ b/src/components/Dialogs/AddPersonal.vue @@ -189,6 +189,12 @@ async function getSearch() { posTypeName: e.posTypeName, posLevelId: e.posLevelId, posLevelName: e.posLevelName, + + rootDnaId: e.rootDnaId, + child1DnaId: e.child1DnaId, + child2DnaId: e.child2DnaId, + child3DnaId: e.child3DnaId, + child4DnaId: e.child4DnaId, })); rows.value = list; diff --git a/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue b/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue index 30e68ccce..9dc1675c5 100644 --- a/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue +++ b/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue @@ -838,7 +838,7 @@ watch( () => ({ datePayment: datePayment.value, pay: pay.value }), ({ datePayment, pay }) => { if (datePayment) { - reason.value = `โปรดนำแบบฟอร์มการชำระเงินฺฉบับนี้ พร้อมเงินสดไปยื่นขำระเงินที่เคาน์เตอร์ บมจ.ธนาคารกรุงไทย + reason.value = `โปรดนำแบบฟอร์มการชำระเงินฉบับนี้ พร้อมเงินสดไปยื่นขำระเงินที่เคาน์เตอร์ บมจ.ธนาคารกรุงไทย ได้ทุกสาขาทั่วประเทศ ตั้งแต่วันที่ ${dateThaiRange( datePayment )} ภายในวันเวลาทำการของธนาคาร @@ -851,7 +851,7 @@ watch( `; } if (pay == "payment1" && datePayment == null) { - reason.value = `โปรดนำแบบฟอร์มการชำระเงินฺฉบับนี้ พร้อมเงินสดไปยื่นขำระเงินที่เคาน์เตอร์ บมจ.ธนาคารกรุงไทย + reason.value = `โปรดนำแบบฟอร์มการชำระเงินฉบับนี้ พร้อมเงินสดไปยื่นขำระเงินที่เคาน์เตอร์ บมจ.ธนาคารกรุงไทย ได้ทุกสาขาทั่วประเทศ ตั้งแต่วันที่ ... – ... ภายในวันเวลาทำการของธนาคาร หรือผ่านระบบ Internet payment (Krungthai NEXT/เป๋าตัง) ตลอด 24 ชั่วโมง ตั้งแต่วันที่ ... เปิดชำระเงิน เวลา ... น. – ... ปิดชำระเงินเวลา ... น. diff --git a/src/modules/06_retirement/views/07_report.vue b/src/modules/06_retirement/views/07_report.vue index 9ba7f40fb..b583a3a5b 100644 --- a/src/modules/06_retirement/views/07_report.vue +++ b/src/modules/06_retirement/views/07_report.vue @@ -219,16 +219,45 @@ onMounted(() => { :loading="isLoadPDF" flat round + :disable="!reportType || !nodeId" color="primary" icon="download" - :disable="!reportType || !nodeId" - @click.stop.pervent=" - genReportXLSX( - detailReport, - `${optionReport.find((e) => e.id === reportType)?.name}` - ) - " > + + + + + ไฟล์ .pdf + + + + ไฟล์ .xlsx + + + diff --git a/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue b/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue index e0ca4571c..4b9d9d43c 100644 --- a/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue +++ b/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue @@ -683,6 +683,12 @@ watch(props.data, async () => { posTypeName: person.posTypeName, posLevelId: person.posLevelId, posLevelName: person.posLevelName, + + rootDnaId: person.rootDnaId, + child1DnaId: person.child1DnaId, + child2DnaId: person.child2DnaId, + child3DnaId: person.child3DnaId, + child4DnaId: person.child4DnaId, citizenId: person.idcard, })); mainStore.rowsAdd = listDataMain; diff --git a/src/modules/11_discipline/components/3_InvestigateDisciplinary/Form.vue b/src/modules/11_discipline/components/3_InvestigateDisciplinary/Form.vue index 7a67f4330..06e091a6c 100644 --- a/src/modules/11_discipline/components/3_InvestigateDisciplinary/Form.vue +++ b/src/modules/11_discipline/components/3_InvestigateDisciplinary/Form.vue @@ -375,6 +375,12 @@ async function fetchDatadetail() { posTypeName: person.posTypeName, posLevelId: person.posLevelId, citizenId: person.idcard, + + rootDnaId: person.rootDnaId, + child1DnaId: person.child1DnaId, + child2DnaId: person.child2DnaId, + child3DnaId: person.child3DnaId, + child4DnaId: person.child4DnaId, })); mainStore.rowsAdd = listDataMain; mainStore.rowsAddCheck = listDataMain; diff --git a/src/modules/11_discipline/components/9_DisciplineReport/Main.vue b/src/modules/11_discipline/components/9_DisciplineReport/Main.vue index 6e5b08400..29c105fea 100644 --- a/src/modules/11_discipline/components/9_DisciplineReport/Main.vue +++ b/src/modules/11_discipline/components/9_DisciplineReport/Main.vue @@ -58,16 +58,17 @@ const posLevel = ref(""); const posLevelMainOp = ref([]); const posLevelOp = ref(posLevelMainOp.value); -const offenseDetail = ref(""); +const offenseDetail = ref("ALL"); const offenseDetailOp = ref([ - { id: "", name: "ทั้งหมด" }, + { id: "ALL", name: "ทั้งหมด" }, { id: "NOT_SPECIFIED", name: "ยังไม่ระบุ" }, { id: "NOT_DEADLY", name: "ไม่ร้ายแรง" }, { id: "DEADLY", name: "ร้ายแรง" }, ]); -const disciplinaryFaultLevel = ref(""); +const disciplinaryFaultLevel = ref("ALL"); const disciplinaryFaultLevelOp = ref([ + { id: "ALL", name: "ทั้งหมด", disable: false }, { id: "0", name: "ไม่ร้ายแรง", disable: true }, { id: "ภาคทัณฑ์", name: "ภาคทัณฑ์", disable: false }, { @@ -86,9 +87,9 @@ const disciplinaryFaultLevelOp = ref([ { id: "อื่นๆ", name: "อื่นๆ", disable: false }, ]); -const status = ref(""); +const status = ref("ALL"); const statusOp = ref([ - { id: "", name: "ทั้งหมด" }, + { id: "ALL", name: "ทั้งหมด" }, { id: "NEW", name: "ใหม่" }, { id: "SEND_INVESTIGATE", name: "มีมูลส่งไปสืบสวนแล้ว" }, { id: "INVESTIGATE", name: "กำลังสืบสวน" }, @@ -128,8 +129,8 @@ async function onUpdateFilter() { offenseDetail: offenseDetail.value, disciplinaryFaultLevel: disciplinaryFaultLevel.value, status: status.value, - posType: posType.value, - posLevel: posLevel.value, + posType: posType.value ? posType.value : null, + posLevel: posLevel.value ? posLevel.value : null, }; await http .post(config.API.disciplineReportByType(employeeClass.value), body) @@ -297,26 +298,6 @@ onMounted(async () => { /> ไฟล์ .pdf - - - ไฟล์ .docx - { * @param data ข้อมูลรายการบุคคล */ async function fetchData(data: ArrayPersonAdd[], type?: string) { + console.log("🚀 ~ fetchData ~ data:", data) const dataList: any = data.map((item: any) => ({ profileType: item.profileType ? item.profileType @@ -468,6 +469,12 @@ export const useDisciplineMainStore = defineStore("disciplineMainStore", () => { posTypeName: item.posTypeName, posLevelId: item.posLevelId, posLevelName: item.posLevelName, + + rootDnaId:item.rootDnaId, + child1DnaId:item.child1DnaId, + child2DnaId:item.child2DnaId, + child3DnaId:item.child3DnaId, + child4DnaId:item.child4DnaId, })); const newItems = dataList.filter(