diff --git a/src/modules/03_recruiting/components/Table.vue b/src/modules/03_recruiting/components/Table.vue index 6ff82cda4..b5f2877f6 100644 --- a/src/modules/03_recruiting/components/Table.vue +++ b/src/modules/03_recruiting/components/Table.vue @@ -56,7 +56,6 @@ const optionsStatus = ref([ { label: "ขาดสอบ", value: "missed_exam" }, { label: "ผ่าน", value: "pass" }, { label: "ไม่ผ่าน", value: "notpass" }, - { label: "อื่น ๆ", value: "other" }, ]); const emit = defineEmits([ diff --git a/src/modules/03_recruiting/interface/request/Period.ts b/src/modules/03_recruiting/interface/request/Period.ts index ce31cae5d..420d0f7b8 100644 --- a/src/modules/03_recruiting/interface/request/Period.ts +++ b/src/modules/03_recruiting/interface/request/Period.ts @@ -46,7 +46,6 @@ interface RequestPeriodCompete { year: number; announcementDate: string | null; rootDnaId: string; - scoreExpireDate: string | null; } interface RequestPeriodDisable { @@ -66,7 +65,6 @@ interface RequestPeriodDisable { year: number; announcementDate: string | null; rootDnaId: string; - scoreExpireDate: string | null; } interface RequestPosition { diff --git a/src/modules/03_recruiting/views/01_compete/PeriodAdd.vue b/src/modules/03_recruiting/views/01_compete/PeriodAdd.vue index 68d8df9ae..4a3b9fcea 100644 --- a/src/modules/03_recruiting/views/01_compete/PeriodAdd.vue +++ b/src/modules/03_recruiting/views/01_compete/PeriodAdd.vue @@ -56,7 +56,6 @@ const fileImgDataUpload = ref([]); const fileImgs = ref([]); const id = ref(""); const edit = ref(false); -const scoreExpireDate = ref(null); //วันหมดอายุบัญชี /** กลับไปหน้าหลัก */ function clickBack() { @@ -102,7 +101,6 @@ async function fetchData() { fileDocs.value = files; fileImgs.value = images; - scoreExpireDate.value = data.scoreExpireDate; }) .catch((e) => { messageError($q, e); @@ -258,11 +256,7 @@ function sendData() { year: yearly.value, announcementDate: dateAnnounce.value !== null ? convertDateToAPI(dateAnnounce.value) : null, - scoreExpireDate: - scoreExpireDate.value !== null - ? convertDateToAPI(scoreExpireDate.value) - : null, - rootDnaId: !edit.value ? dataPositionKeycloak.value.rootDnaId : undefined, + rootDnaId: !edit.value ? dataPositionKeycloak.value.rootDnaId : undefined, }; return valueData; } @@ -365,13 +359,6 @@ function dateThaiRange(val: [Date, Date]) { return `${date2Thai(val[0], true)} - ${date2Thai(val[1], true)}`; } } -function onUpdateScoreExpireDate(val: Date | null) { - if (val) { - const newDate = new Date(val); - newDate.setFullYear(newDate.getFullYear() + 2); - scoreExpireDate.value = newDate; - } -} watch(organizationShortName, (count: DataOption2, prevCount: DataOption2) => { organizationNameOptions.value = []; @@ -468,7 +455,6 @@ onMounted(async () => { -
{ input-class="text-right" >
-
{
-
{
-
{ dateRegister != null ? dateThaiRange(dateRegister) : null " :label="`${'วันที่สมัคร'}`" - hide-bottom-space >
-
{ " :label="`${'วันที่ชำระเงิน'}`" :rules="[(val:string) => !!val || `${'กรุณาเลือกวันที่ชำระเงิน'}`]" - hide-bottom-space >