diff --git a/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue b/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue index 58d81888c..55f4aaf49 100644 --- a/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue +++ b/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue @@ -469,7 +469,7 @@
- เลือกวีธีการชำระเงิน + เลือกวิธีการชำระเงิน
@@ -479,6 +479,7 @@ val="payment1" color="blue" class="q-mr-md" + :disable="fee <= 0" /> @@ -500,6 +501,7 @@ val="payment2" color="blue" class="q-mr-md" + :disable="fee <= 0" /> @@ -1129,14 +1131,20 @@ const columnsPosition = ref([ }, ]); -watch(organizationShortName, (count: DataOption, prevCount: DataOption) => { +watch(organizationShortName, (count: any, prevCount: any) => { organizationNameOptions.value = []; }); -watch(organizationName, (count: DataOption, prevCount: DataOption) => { +watch(organizationName, (count: any, prevCount: any) => { positionPathOptions.value = []; }); +watch(fee, (count: any, prevCount: any) => { + if (fee.value <= 0) { + pay.value = ""; + } +}); + onMounted(async () => { hideLoader(); if (route.params.id != undefined) { diff --git a/src/modules/05_placement/components/Other/Detail.vue b/src/modules/05_placement/components/Other/Detail.vue index 63ea51135..7f3eab35d 100644 --- a/src/modules/05_placement/components/Other/Detail.vue +++ b/src/modules/05_placement/components/Other/Detail.vue @@ -77,7 +77,6 @@ const fecthOther = async () => { title.value.organizationPositionOld = data.organizationPositionOld ?? "-"; title.value.positionLevelOld = data.positionLevelOld ?? "-"; title.value.positionTypeOld = data.positionTypeOld ?? "-"; - responseData.value.profileId = data.profileId; responseData.value.createdAt = data.createdAt; responseData.value.date = data.date !== null ? new Date(data.date) : new Date(); @@ -141,7 +140,6 @@ const saveOther = async () => { }) .catch((e) => { messageError($q, e); - console.log(e); }) .finally(async () => { await fecthOther(); @@ -156,7 +154,6 @@ const getClass = (val: boolean) => { onMounted(async () => { if (keycloak.tokenParsed != null) { roleAdmin.value = await keycloak.tokenParsed.role.includes("placement1"); - console.log("roleAdmin===>", roleAdmin.value); } await fecthOther(); }); diff --git a/src/modules/05_placement/components/Other/Main.vue b/src/modules/05_placement/components/Other/Main.vue index 2daf16387..708960ee9 100644 --- a/src/modules/05_placement/components/Other/Main.vue +++ b/src/modules/05_placement/components/Other/Main.vue @@ -5,6 +5,7 @@ import { useRouter } from "vue-router"; import { useCounterMixin } from "@/stores/mixin"; import { useTransferDataStore } from "@/modules/05_placement/store" import type { QTableProps } from "quasar"; +import type { listMain,listMainAPI,OpType } from "@/modules/05_placement/interface/response/OhterMain" import http from "@/plugins/http"; import config from "@/app.config"; @@ -18,11 +19,11 @@ const { showLoader, hideLoader, success, messageError, date2Thai, dialogRemove } const $q = useQuasar(); const router = useRouter(); -const optionsType = ref([]); +const optionsType = ref([]); const type = ref(""); const modal = ref(false); -const rows = ref([]); -const rows2 = ref([]); +const rows = ref([]); +const rows2 = ref([]); const filterKeyword = ref(""); const filterKeyword2 = ref(""); @@ -108,31 +109,31 @@ const fecthlistOthet = async () => { .get(config.API.otherMain()) .then((res) => { let response = res.data.result; - rows.value = response.map((r: any) => ({ + rows.value = response.map((r: listMainAPI) => ({ createdAt: date2Thai(r.createdAt), date: new Date(), - firstName: r.firstname ?? "", - personalId: r.id ?? "", + firstName: r.firstname ?? "-", + personalId: r.id ?? "-", isActive: r.isActive ? r.isActive : false, - lastName: r.lastname ?? "", - organization: r.organization ?? "", - organizationPositionOld: r.organizationPositionOld ?? "", - posNo: r.posNo ?? "", - position: r.position ?? "", - positionLevel: r.positionLevel ?? "", - positionLevelOld: r.positionLevelOld ?? "", - positionNumberOld: r.positionNumberOld ?? "", - positionTypeOld: r.positionTypeOld ?? "", - prefix: r.prefix ?? "", - reason: r.reason ?? "", + lastName: r.lastname ?? "-", + organization: r.organization ?? "-", + organizationPositionOld: r.organizationPositionOld ?? "-", + posNo: r.posNo ?? "-", + position: r.position ?? "-", + positionLevel: r.positionLevel ?? "-", + positionLevelOld: r.positionLevelOld ?? "-", + positionNumberOld: r.positionNumberOld ?? "-", + positionTypeOld: r.positionTypeOld ?? "-", + prefix: r.prefix ?? "-", + reason: r.reason ?? "-", salary: r.salary ? r.salary : 0, - status: r.status ?? "", + status: r.status ?? "-", statustext: statusText(r.status ?? ""), fullname: `${r.prefix ?? ""}${r.firstname ?? ""} ${r.lastname ?? ""}`, })); rows2.value = rows.value.filter( - (e: any) => - e.orgName !== null && e.status !== "REPORT" && e.status !== "DONE" + (e: listMain) => + e.status !== "REPORT" && e.status !== "DONE" ); }) .catch((e) => { @@ -150,7 +151,7 @@ const fecthTypeOption = async () => { .get(config.API.typeOrder()) .then((res) => { optionsType.value = res.data.result.filter( - (e: any) => e.commandCode === "C-PM-08" || e.commandCode === "C-PM-09" + (e: OpType) => e.commandCode === "C-PM-08" || e.commandCode === "C-PM-09" ); }) .catch((e) => { @@ -203,9 +204,9 @@ const clickDelete = (id: string) => { dialogRemove($q, () => deleteOther(id)); }; //----(เปิดหน้าถัดไป)------// -const nextPage = (row: any) => { +const nextPage = (id: string) => { router.push({ - path: `/other/detail/${row.personalId}`, + path: `/other/detail/${id}`, }); }; @@ -276,7 +277,7 @@ onMounted(() => { {{ props.rowIndex + 1 }} diff --git a/src/modules/05_placement/interface/response/OhterMain.ts b/src/modules/05_placement/interface/response/OhterMain.ts new file mode 100644 index 000000000..118176efe --- /dev/null +++ b/src/modules/05_placement/interface/response/OhterMain.ts @@ -0,0 +1,54 @@ +// ข้อมูลที่เก็บ +interface listMain { + personalId:string + fullname:string + prefix:string + firstName:string + lastName:string + date:Date + isActive:boolean + organization:string + organizationPositionOld:string + posNo:string + position:string + positionLevel:string + positionLevelOld:string + positionNumberOld:string + positionTypeOld:string + reason:string + salary:number + status:string + statustext:string + createdAt:Date +} +//ข้อมูลจาก api +interface listMainAPI { + id:string + firstname:string + prefix:string + firstName:string + lastname:string + date:Date + isActive:boolean + organization:string + organizationPositionOld:string + posNo:string + position:string + positionLevel:string + positionLevelOld:string + positionNumberOld:string + positionTypeOld:string + reason:string + salary:number + status:string + statustext:string + createdAt:Date +} +interface OpType { + commandCode:string +} +export type { + listMain, + listMainAPI, + OpType +} \ No newline at end of file diff --git a/src/modules/10_order/components/step/step04.vue b/src/modules/10_order/components/step/step04.vue index afed45b97..fa0395655 100644 --- a/src/modules/10_order/components/step/step04.vue +++ b/src/modules/10_order/components/step/step04.vue @@ -469,6 +469,9 @@ const viewFileUpload = async (url: string) => { v-close-popup @click="downloadCover('pdf')" > + @@ -479,6 +482,9 @@ const viewFileUpload = async (url: string) => { v-close-popup @click="downloadCover('docx')" > + @@ -520,6 +526,9 @@ const viewFileUpload = async (url: string) => { v-close-popup @click="downloadAttachment('pdf')" > + @@ -530,6 +539,9 @@ const viewFileUpload = async (url: string) => { v-close-popup @click="downloadAttachment('xlsx')" > + @@ -576,6 +588,7 @@ const viewFileUpload = async (url: string) => {
+
{ fit-parent :scale="0.1" /> +
{ fit-parent :scale="0.1" /> +
import("@/modules/10_order/components/Main.vue"); +const MainOrder = () => import("@/modules/10_order/views/Main.vue"); const DetailPage = () => import("@/modules/10_order/components/Detail.vue"); export default [ diff --git a/src/modules/10_order/views/Main.vue b/src/modules/10_order/views/Main.vue index dc47857b9..51c527d70 100644 --- a/src/modules/10_order/views/Main.vue +++ b/src/modules/10_order/views/Main.vue @@ -1,7 +1,520 @@ + \ No newline at end of file + + + \ No newline at end of file