diff --git a/src/api/probation/api.probation.ts b/src/api/probation/api.probation.ts index 003d1eb..0d4be07 100644 --- a/src/api/probation/api.probation.ts +++ b/src/api/probation/api.probation.ts @@ -21,6 +21,7 @@ export default { `${probation}/data-options/knowledge?personal_id=${personalId}`, probationsGetAssign: (assignId: string) => `${probation}/assign/probation-assign?assign_id=${assignId}`, + probationsGetAssignNew: (assignId: string) => `${probation}/assign?assign_id=${assignId}`, summarySurveyDetail: (id: string) => `${probation}/survey?assign_id=${id}`, summaryDetail: () => `${probation}/survey`, saveEditAssign: (personalId: string) => diff --git a/src/modules/03_retire/views/addRetire.vue b/src/modules/03_retire/views/addRetire.vue index 30e535c..c5ee0bc 100644 --- a/src/modules/03_retire/views/addRetire.vue +++ b/src/modules/03_retire/views/addRetire.vue @@ -219,13 +219,17 @@ onMounted(async () => { style="padding-bottom: 0px" >
- เหตุผลการขอยกเลิก: + เหตุผลการขอยกเลิก : {{ dataDetail.cancelReason }}
{ ([]); const $q = useQuasar(); const mode = ref($q.screen.gt.xs); const mixin = useCounterMixin(); -const { showLoader, hideLoader, messageError, date2Thai,onSearchDataTable } = mixin; +const { showLoader, hideLoader, messageError, date2Thai, onSearchDataTable } = + mixin; const modalHistory = ref(false); /** ตัวแปรข้อมูล */ @@ -78,6 +79,9 @@ const columns = ref([ field: "insigniaId", headerStyle: "font-size: 14px", style: "font-size: 14px", + format: (val, row) => { + return `${row.insignia.name} (${row.insignia.shortName})`; + }, sort: (a: string, b: string) => a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), }, @@ -87,6 +91,9 @@ const columns = ref([ label: "ลำดับชั้น", sortable: true, field: (v) => v.insignia.insigniaType.name, + format: (val, row) => { + return `${row.insignia.insigniaType.name}`; + }, headerStyle: "font-size: 14px", style: "font-size: 14px", sort: (a: string, b: string) => @@ -278,6 +285,9 @@ const columnsHistory = ref([ field: "insigniaId", headerStyle: "font-size: 14px", style: "font-size: 14px", + format: (val, row) => { + return `${row.insignia.name} (${row.insignia.shortName})`; + }, sort: (a: string, b: string) => a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), }, @@ -287,6 +297,9 @@ const columnsHistory = ref([ label: "ลำดับชั้น", sortable: true, field: (v) => v.insignia.insigniaType.name, + format: (val, row) => { + return `${row.insignia.insigniaType.name}`; + }, headerStyle: "font-size: 14px", style: "font-size: 14px", sort: (a: string, b: string) => diff --git a/src/modules/10_registry/Dialog/DialogHistory.vue b/src/modules/10_registry/Dialog/DialogHistory.vue index 79d3222..f7e76fe 100644 --- a/src/modules/10_registry/Dialog/DialogHistory.vue +++ b/src/modules/10_registry/Dialog/DialogHistory.vue @@ -24,6 +24,7 @@ const props = defineProps({ }); function close() { modal.value = false; + filter.value = '' } function dateThaiRange(val: [Date, Date]) { diff --git a/src/modules/15_probationReport/components/03_AssignPage.vue b/src/modules/15_probationReport/components/03_AssignPage.vue index 47c6631..bacc4b0 100644 --- a/src/modules/15_probationReport/components/03_AssignPage.vue +++ b/src/modules/15_probationReport/components/03_AssignPage.vue @@ -763,7 +763,7 @@ async function DataSave(id: string) { /** get ข้อมูลรายการมอบหมาย */ async function getAssign() { await http - .get(config.API.probationsGetAssign(probationStore.assignId)) + .get(config.API.probationsGetAssignNew(probationStore.assignId)) .then((res) => { isEdit.value = false; const data = res.data.result; @@ -1094,42 +1094,12 @@ onMounted(async () => {