diff --git a/src/app.config.ts b/src/app.config.ts index b169f9a9a..e973145ce 100644 --- a/src/app.config.ts +++ b/src/app.config.ts @@ -137,7 +137,7 @@ const API = { ...file, }; -const path = "http://chamomind.ddns.net:20006"; +const path = "https://bma-ehr-manual.frappet.synology.me"; const generatePopupPath = (routeName: any) => { if (routeName.includes("metadata")) { @@ -147,19 +147,19 @@ const generatePopupPath = (routeName: any) => { // return `${path}/manual/chapter-3-admin-evaluate`; // } if (routeName.includes("compete")) { - return `${path}/manual/chapter-10-admin-recruit`; + return `${path}/manual/chapter-9-admin-recruit`; } if (routeName.includes("registryNew")) { - return `${path}/manual/chapter-7-admin-registry`; + return `${path}/manual/chapter-6-admin-registry`; } if (routeName.includes("registry-employee")) { - return `${path}/manual/chapter-8-admin-registry-employee`; + return `${path}/manual/chapter-7-admin-registry-employee`; } if (routeName.includes("qualify")) { - return `${path}/manual/chapter-10-admin-recruit`; + return `${path}/manual/chapter-9-admin-recruit`; } if (routeName.includes("insignia")) { - return `${path}/manual/chapter-14-admin-insignia`; + return `${path}/manual/chapter-13-admin-insignia`; } if (routeName.includes("acting")) { return `${path}/manual/chapter-5-admin-acting`; @@ -168,37 +168,37 @@ const generatePopupPath = (routeName: any) => { return `${path}/manual/chapter-6-admin-position-employee`; } if (routeName.includes("resign")) { - return `${path}/manual/chapter-13-admin-retirement`; + return `${path}/manual/chapter-12-admin-retirement`; } if (routeName.includes("retirement")) { - return `${path}/manual/chapter-13-admin-retirement`; + return `${path}/manual/chapter-12-admin-retirement`; } if (routeName.includes("deceased")) { - return `${path}/manual/chapter-13-admin-retirement`; + return `${path}/manual/chapter-12-admin-retirement`; } if (routeName.includes("exit-Interview")) { - return `${path}/manual/chapter-13-admin-retirement`; + return `${path}/manual/chapter-12-admin-retirement`; } if (routeName.includes("expulsion")) { - return `${path}/manual/chapter-13-admin-retirement`; + return `${path}/manual/chapter-12-admin-retirement`; } if (routeName.includes("discharged")) { - return `${path}/manual/chapter-13-admin-retirement`; + return `${path}/manual/chapter-12-admin-retirement`; } if (routeName.includes("discipline")) { - return `${path}/manual/chapter-16-admin-discipline`; + return `${path}/manual/chapter-15-admin-discipline`; } if (routeName.includes("appeal")) { - return `${path}/manual/chapter-16-admin-discipline`; + return `${path}/manual/chapter-15-admin-discipline`; } if (routeName.includes("evaluate")) { - return `${path}/manual/chapter-17-admin-KPI`; + return `${path}/manual/chapter-16-admin-KPI`; } if (routeName.includes("salary")) { - return `${path}/manual/chapter-18-admin-salary`; + return `${path}/manual/chapter-17-admin-salary`; } if (routeName.includes("development")) { - return `${path}/manual/chapter-20-admin-development`; + return `${path}/manual/chapter-19-admin-development`; } else { return manualConfig[routeName as keyof typeof manualConfig]; } @@ -206,53 +206,61 @@ const generatePopupPath = (routeName: any) => { const manualConfig = { dashboard: `${path}/`, - strategic: `${path}/manual/chapter-3-admin-evaluate`, - KPIIndicatorByRoleAdd: `${path}/manual/chapter-3-admin-evaluate`, - KPIIndicatorByPlan: `${path}/manual/chapter-3-admin-evaluate`, - "KPIIndicatorByPlan/Add": `${path}/manual/chapter-3-admin-evaluate`, - KPIIndicatorByPlanByid: `${path}/manual/chapter-3-admin-evaluate`, - KPIIndicatorByRoleByid: `${path}/manual/chapter-3-admin-evaluate`, - KPICompetency: `${path}/manual/chapter-3-admin-evaluate`, - KPIAssignment: `${path}/manual/chapter-3-admin-evaluate`, - KPIAssignmentById: `${path}/manual/chapter-3-admin-evaluate`, - KPIIndicatorByRole: `${path}/manual/chapter-3-admin-evaluate`, - KPICompetencyAdd: `${path}/manual/chapter-3-admin-evaluate`, - KPICompetencyByid: `${path}/manual/chapter-3-admin-evaluate`, - organizationalNew: `${path}/manual/chapter-4-admin-organization`, - organization: `${path}/manual/chapter-7-admin-registry`, - registry: `${path}/manual/chapter-7-admin-registry`, - registryDetail: `${path}/manual/chapter-7-admin-registry`, - verified: `${path}/manual/chapter-7-admin-registry`, - order: `${path}/manual/chapter-9-admin-order`, - OrderDetail: `${path}/manual/chapter-9-admin-order`, - OrderAdd: `${path}/manual/chapter-9-admin-order`, - disableperiod: `${path}/manual/chapter-10-admin-recruit`, - manage: `${path}/manual/chapter-10-admin-recruit`, - editorweb: `${path}/manual/chapter-10-admin-recruit`, - manageDetaill: `${path}/manual/chapter-10-admin-recruit`, - ExamForm: `${path}/manual/chapter-10-admin-recruit`, - Payment: `${path}/manual/chapter-10-admin-recruit`, - placement: `${path}/manual/chapter-11-admin-appointment`, - transfer: `${path}/manual/chapter-11-admin-appointment`, - receive: `${path}/manual/chapter-11-admin-appointment`, - "help-government": `${path}/manual/chapter-11-admin-appointment`, - repatriate: `${path}/manual/chapter-11-admin-appointment`, - "appoint-promote": `${path}/manual/chapter-11-admin-appointment`, - "appoint-employee": `${path}/manual/chapter-11-admin-appointment`, - other: `${path}/manual/chapter-11-admin-appointment`, - probation: `${path}/manual/chapter-12-admin-probation`, - retirement: `${path}/manual/chapter-13-admin-retirement`, - resign: `${path}/manual/chapter-13-admin-retirement`, - ExitInterviewEditQuestion: `${path}/manual/chapter-13-admin-retirement`, - "dismiss-order": `${path}/manual/chapter-13-admin-retirement`, - "report-report": `${path}/manual/chapter-14-admin-insignia`, - "report-report-01": `${path}/manual/chapter-14-admin-insignia`, - appealComplain: `${path}/manual/chapter-16-admin-discipline`, - KPIRound: `${path}/manual/chapter-19-admin-perf-evaluation`, - "KPI​List": `${path}/manual/chapter-19-admin-perf-evaluation`, - KPIDetail: `${path}/manual/chapter-19-admin-perf-evaluation`, - KPIReport: `${path}/manual/chapter-19-admin-perf-evaluation`, - KPIDetailnew: `${path}/manual/chapter-19-admin-perf-evaluation`, + strategic: `${path}/manual/chapter-2-admin-evaluate`, + KPIIndicatorByRoleAdd: `${path}/manual/chapter-2-admin-evaluate`, + KPIIndicatorByPlan: `${path}/manual/chapter-2-admin-evaluate`, + "KPIIndicatorByPlan/Add": `${path}/manual/chapter-2-admin-evaluate`, + KPIIndicatorByPlanByid: `${path}/manual/chapter-2-admin-evaluate`, + KPIIndicatorByRoleByid: `${path}/manual/chapter-2-admin-evaluate`, + KPICompetency: `${path}/manual/chapter-2-admin-evaluate`, + KPIAssignment: `${path}/manual/chapter-2-admin-evaluate`, + KPIAssignmentById: `${path}/manual/chapter-2-admin-evaluate`, + KPIIndicatorByRole: `${path}/manual/chapter-2-admin-evaluate`, + KPICompetencyAdd: `${path}/manual/chapter-2-admin-evaluate`, + KPICompetencyByid: `${path}/manual/chapter-2-admin-evaluate`, + organizationalNew: `${path}/manual/chapter-3-admin-organization`, + organization: `${path}/manual/chapter-6-admin-registry`, + registry: `${path}/manual/chapter-6-admin-registry`, + registryDetail: `${path}/manual/chapter-6-admin-registry`, + verified: `${path}/manual/chapter-6-admin-registry`, + order: `${path}/manual/chapter-8-admin-order`, + OrderDetail: `${path}/manual/chapter-8-admin-order`, + OrderAdd: `${path}/manual/chapter-8-admin-order`, + disableperiod: `${path}/manual/chapter-9-admin-recruit`, + manage: `${path}/manual/chapter-9-admin-recruit`, + editorweb: `${path}/manual/chapter-9-admin-recruit`, + manageDetaill: `${path}/manual/chapter-9-admin-recruit`, + ExamForm: `${path}/manual/chapter-9-admin-recruit`, + Payment: `${path}/manual/chapter-9-admin-recruit`, + placement: `${path}/manual/chapter-10-admin-appointment`, + transfer: `${path}/manual/chapter-10-admin-appointment`, + receive: `${path}/manual/chapter-10-admin-appointment`, + "help-government": `${path}/manual/chapter-10-admin-appointment`, + repatriate: `${path}/manual/chapter-10-admin-appointment`, + "appoint-promote": `${path}/manual/chapter-10-admin-appointment`, + "appoint-employee": `${path}/manual/chapter-10-admin-appointment`, + other: `${path}/manual/chapter-10-admin-appointment`, + probation: `${path}/manual/chapter-11-admin-probation`, + retirement: `${path}/manual/chapter-12-admin-retirement`, + resign: `${path}/manual/chapter-12-admin-retirement`, + ExitInterviewEditQuestion: `${path}/manual/chapter-12-admin-retirement`, + "dismiss-order": `${path}/manual/chapter-12-admin-retirement`, + "report-report": `${path}/manual/chapter-13-admin-insignia`, + "report-report-01": `${path}/manual/chapter-13-admin-insignia`, + roundTime: `${path}/manual/chapter-14-admin-leave`, + changeRound: `${path}/manual/chapter-14-admin-leave`, + workList: `${path}/manual/chapter-14-admin-leave`, + timestampSpecial: `${path}/manual/chapter-14-admin-leave`, + leave: `${path}/manual/chapter-14-admin-leave`, + leaveDetail: `${path}/manual/chapter-14-admin-leave`, + leaveRejectDetail: `${path}/manual/chapter-14-admin-leave`, + leaveReport: `${path}/manual/chapter-14-admin-leave`, + appealComplain: `${path}/manual/chapter-15-admin-discipline`, + KPIRound: `${path}/manual/chapter-18-admin-perf-evaluation`, + "KPI​List": `${path}/manual/chapter-18-admin-perf-evaluation`, + KPIDetail: `${path}/manual/chapter-18-admin-perf-evaluation`, + KPIReport: `${path}/manual/chapter-18-admin-perf-evaluation`, + KPIDetailnew: `${path}/manual/chapter-18-admin-perf-evaluation`, }; export default { diff --git a/src/modules/04_registryNew/components/detail/PersonalInformation/01_Profile.vue b/src/modules/04_registryNew/components/detail/PersonalInformation/01_Profile.vue index 6ca2aaab9..03579f3ab 100644 --- a/src/modules/04_registryNew/components/detail/PersonalInformation/01_Profile.vue +++ b/src/modules/04_registryNew/components/detail/PersonalInformation/01_Profile.vue @@ -137,7 +137,9 @@ const columnsHistory = ref([ field: "birthDate", headerStyle: "font-size: 14px", style: "font-size: 14px", - format: (v) => date2Thai(v), + format: (v) => { + return v ? date2Thai(v) : ""; + }, sort: (a: string, b: string) => a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), }, @@ -265,17 +267,15 @@ async function getData() { showLoader(); http .get(config.API.registryNewByProfileId(profileId.value, empType.value)) - .then(async (res) => { - informaData.value = await res.data.result; - if (informaData.value) { - id.value = informaData.value.id; + .then((res) => { + informaData.value = res.data.result; + id.value = res.data.result.id; - if (informaData.value.birthDate) { - console.log("birthDate===>", informaData.value.birthDate); + if (res.data.result.birthDate) { + console.log("birthDate===>", res.data.result.birthDate); - age.value = calculateAge(informaData.value.birthDate); - console.log("age===>", age.value); - } + age.value = calculateAge(res.data.result.birthDate); + console.log("age===>", age.value); } }) .catch((e) => { diff --git a/src/modules/05_placement/components/PersonalDetail/Information/Information.vue b/src/modules/05_placement/components/PersonalDetail/Information/Information.vue index f9bfe39ca..289f776b4 100644 --- a/src/modules/05_placement/components/PersonalDetail/Information/Information.vue +++ b/src/modules/05_placement/components/PersonalDetail/Information/Information.vue @@ -87,8 +87,6 @@ const onCancel = async () => { `ข้อมูลมีการแก้ไข`, `ยืนยันยกเลิกการแก้ไขใช่หรือไม่?` ); - - } else { edit.value = false; } @@ -252,7 +250,6 @@ const getClass = (val: boolean) => { }; }; - function checkEdit() { onEdit.value = true; } @@ -470,7 +467,6 @@ function checkEdit() { :class="getClass(edit)" :readonly="!edit" :borderless="!edit" - :rules="[(val:string) => !!val || `${'กรุณาเลือก หมู่เลือด'}`]" :outlined="edit" dense lazy-rules @@ -556,10 +552,6 @@ function checkEdit() { :readonly="!edit" :borderless="!edit" v-model="informaData.telephone" - :rules="[ - (val:string) => !!val || `${'กรุณากรอก เบอร์โทร'}`, - (val:string) => val.length >= 10 || `${'กรุณากรอกข้อมูลเบอร์โทรให้ครบ'}`, - ]" :label="`${'เบอร์โทร'}`" mask="##########" /> diff --git a/src/modules/06_retirement/components/ListRetirement/AddList.vue b/src/modules/06_retirement/components/ListRetirement/AddList.vue index 1754ea456..711f97a60 100644 --- a/src/modules/06_retirement/components/ListRetirement/AddList.vue +++ b/src/modules/06_retirement/components/ListRetirement/AddList.vue @@ -135,8 +135,8 @@ const totalList = ref(0); // fecth profile const fecthProfile = async () => { + showLoader(); if (props?.dataProfile?.type === "OFFICER") { - showLoader(); formPagePersonList.keyword = formPagePersonList.keyword === null ? "" : formPagePersonList.keyword; await http @@ -154,7 +154,9 @@ const fecthProfile = async () => { fullname: e.prefix + e.firstName + " " + e.lastName, position: e.position, level: - e.posTypeName && e.posLevelName ? e.posTypeName + " (" + e.posLevelName + ")" : "-", + e.posTypeName && e.posLevelName + ? e.posTypeName + " (" + e.posLevelName + ")" + : "-", organizationOrganization: findOrgChildName(e), })); }) @@ -187,9 +189,7 @@ const fecthProfile = async () => { fullname: e.prefix + e.firstName + " " + e.lastName, position: e.position, level: - e.posType && e.posLevel - ? e.posType + " (" + e.posLevel + ")" - : "-", + e.posType && e.posLevel ? e.posType + " (" + e.posLevel + ")" : "-", organizationOrganization: findOrgName(e), })); }) diff --git a/src/modules/06_retirement/components/ListRetirement/TableList.vue b/src/modules/06_retirement/components/ListRetirement/TableList.vue index f1db1babe..92ff9044a 100644 --- a/src/modules/06_retirement/components/ListRetirement/TableList.vue +++ b/src/modules/06_retirement/components/ListRetirement/TableList.vue @@ -636,12 +636,7 @@ function updatemodalPersonal(modal: boolean) { }}{{ props.row.firstName ? props.row.firstName : "" }} {{ props.row.lastName ? props.row.lastName : "" }} - + {{ props.row.position ? props.row.position : "-" }} @@ -697,7 +692,7 @@ function updatemodalPersonal(modal: boolean) { flat round color="primary" - icon="mdi-pencil" + :icon="props.row.remove === 'EDIT' ? 'info' : 'mdi-pencil'" dense @click.stop=" (modalNote = true), @@ -724,7 +719,7 @@ function updatemodalPersonal(modal: boolean) { flat round class="text-red-14" - icon="mdi-delete" + :icon="props.row.remove === 'REMOVE' ? 'info' : 'mdi-delete'" dense @click.stop=" (modalNote = true), diff --git a/src/modules/10_order/store.ts b/src/modules/10_order/store.ts index 2fea55def..d0b84ed8e 100644 --- a/src/modules/10_order/store.ts +++ b/src/modules/10_order/store.ts @@ -39,7 +39,7 @@ export const useOrderPlacementDataStore = defineStore("placementOrder", () => { (DataMainOrigOrder.value = val); const DataUpdateOrder = ( - filter_1: string, + filter_1: string | null, filter_2: string, filterYear: number | null ) => { diff --git a/src/modules/10_order/views/Main.vue b/src/modules/10_order/views/Main.vue index 58b4d9ed0..7a4dc48ae 100644 --- a/src/modules/10_order/views/Main.vue +++ b/src/modules/10_order/views/Main.vue @@ -204,7 +204,7 @@ const fiscalYearFilter = async () => { }; // รายการข้อมูลประเภทคำสั่ง -const OrderType = ref(""); +const OrderType = ref(""); const OrderTypeFilter1 = ref([]); const OrderTypeOption = ref([{ id: "", name: "ทั้งหมด" }]); @@ -278,6 +278,7 @@ const filterSelector = (val: any, update: Function, refData: string) => { switch (refData) { case "fiscalyearOP": update(() => { + fiscalyear.value = null; fiscalyearOP.value = fiscalyearFilter1.value.filter( (v: any) => v.name.indexOf(val) > -1 ); @@ -285,6 +286,7 @@ const filterSelector = (val: any, update: Function, refData: string) => { break; case "OrderTypeOption": update(() => { + OrderType.value = null; OrderTypeOption.value = OrderTypeFilter1.value.filter( (v: any) => v.name.indexOf(val) > -1 ); @@ -292,6 +294,7 @@ const filterSelector = (val: any, update: Function, refData: string) => { break; case "OrderStatusOption": update(() => { + OrderStatus.value = ""; OrderStatusOption.value = OrderStatusFilter1.value.filter( (v: any) => v.name.indexOf(val) > -1 ); @@ -342,6 +345,17 @@ const paginationLabel = (start: string, end: string, total: string) => { ไม่มีข้อมูล +
@@ -427,6 +441,17 @@ const paginationLabel = (start: string, end: string, total: string) => { +
@@ -458,6 +483,17 @@ const paginationLabel = (start: string, end: string, total: string) => { +
diff --git a/src/modules/11_discipline/store/OrderStore.ts b/src/modules/11_discipline/store/OrderStore.ts index 82c9f5272..8b6090986 100644 --- a/src/modules/11_discipline/store/OrderStore.ts +++ b/src/modules/11_discipline/store/OrderStore.ts @@ -45,7 +45,7 @@ export const useOrderStore = defineStore("DisciplineOrder", () => { } function filterListOrder( - filter_1: string, + filter_1: string | null, filter_2: string, filterYear: number | null ) { diff --git a/src/modules/13_salary/components/Command/step01.vue b/src/modules/13_salary/components/Command/step01.vue index f8f4e351e..cef9a4ab2 100644 --- a/src/modules/13_salary/components/Command/step01.vue +++ b/src/modules/13_salary/components/Command/step01.vue @@ -131,14 +131,14 @@ const fecthTypeOption = async (actions: string) => { name: e.name, category: e.category, commandCode: e.commandCode, - fullname: e.commandCode + " " + e.name, + fullname: e.name, })); typeOrderFilter.value = data.map((e: OrederResult) => ({ id: e.id, name: e.name, category: e.category, commandCode: e.commandCode, - fullname: e.commandCode + " " + e.name, + fullname: e.name, })); }) .catch((e) => { @@ -455,7 +455,6 @@ function fetchSalaryRound() { v-model="command" hide-bottom-space :label="`${'คำสั่งเลขที่'}`" - />