diff --git a/src/modules/04_registryNew/components/detail/Achievement/01_ProfessionalLicense.vue b/src/modules/04_registryNew/components/detail/Achievement/01_ProfessionalLicense.vue index 2195d1b9d..c7d10d1c8 100644 --- a/src/modules/04_registryNew/components/detail/Achievement/01_ProfessionalLicense.vue +++ b/src/modules/04_registryNew/components/detail/Achievement/01_ProfessionalLicense.vue @@ -9,6 +9,7 @@ import type { RequestItemsObject } from "@/modules/04_registryNew/interface/requ import type { ResponseObject } from "@/modules/04_registryNew/interface/response/ProfesLicense"; import http from "@/plugins/http"; import config from "@/app.config"; +import { log } from "console"; const mixin = useCounterMixin(); const $q = useQuasar(); const { @@ -179,7 +180,7 @@ const profesLicenseData = reactive({ issuer: "", certificateNo: "", issueDate: new Date(), - expireDate: new Date(), + expireDate: null, profileId: id.value, }); @@ -244,7 +245,7 @@ async function fetchData(id: string) { } function clearForm() { - profesLicenseData.expireDate = new Date(); + profesLicenseData.expireDate = null; profesLicenseData.issueDate = new Date(); profesLicenseData.certificateNo = ""; profesLicenseData.certificateType = ""; @@ -642,6 +643,8 @@ onMounted(async () => { dense outlined bg-color="white" + clearable + @clear="() => (profesLicenseData.expireDate = null)" hide-bottom-space :model-value=" profesLicenseData.expireDate @@ -649,6 +652,7 @@ onMounted(async () => { : '' " :label="`${'วันที่หมดอายุ'}`" + @update:modelValue="profesLicenseData.expireDate" >