diff --git a/src/components/03_customer-management/FormEmployeeHealthCheck.vue b/src/components/03_customer-management/FormEmployeeHealthCheck.vue index a4bbb55d..1eb0ab13 100644 --- a/src/components/03_customer-management/FormEmployeeHealthCheck.vue +++ b/src/components/03_customer-management/FormEmployeeHealthCheck.vue @@ -40,16 +40,21 @@ const insuranceCompanyOption = defineModel<{ label: string; value: string }[]>( const tab = ref(); -defineProps<{ - title?: string; - dense?: boolean; - outlined?: boolean; - readonly?: boolean; - separator?: boolean; - typeCustomer?: string; - prefixId: string; -}>(); - +withDefaults( + defineProps<{ + title?: string; + dense?: boolean; + outlined?: boolean; + readonly?: boolean; + separator?: boolean; + typeCustomer?: string; + prefixId: string; + showBtnSave?: boolean; + }>(), + { + showBtnSave: false, + }, +); async function fetchProvince() { const result = await adrressStore.fetchProvince(); @@ -483,6 +488,19 @@ const insuranceCompanyFilter = selectFilterOptionRefMod( + +
+ +
import { EmployeeOtherCreate } from 'stores/employee/types'; -defineProps<{ - dense?: boolean; - outlined?: boolean; - readonly?: boolean; - separator?: boolean; - employee?: boolean; - prefixId: string; -}>(); +withDefaults( + defineProps<{ + dense?: boolean; + outlined?: boolean; + readonly?: boolean; + separator?: boolean; + employee?: boolean; + prefixId: string; + showBtnSave: boolean; + }>(), + { + showBtnSave: false, + }, +); const employeeOther = defineModel('employeeOther'); + +
+ +
( const tab = ref(); -defineProps<{ - title?: string; - dense?: boolean; - outlined?: boolean; - readonly?: boolean; - separator?: boolean; - prefixId: string; -}>(); +withDefaults( + defineProps<{ + title?: string; + dense?: boolean; + outlined?: boolean; + readonly?: boolean; + separator?: boolean; + prefixId: string; + showBtnSave: boolean; + }>(), + { + showBtnSave: false, + }, +); function addData() { const canAdd = checkTabBeforeAdd(employeeWork.value || []); @@ -470,6 +476,19 @@ const workplaceFilter = selectFilterOptionRefMod( + +
+ +
{ formDataEmployeeTab === 'healthCheck' && formDataEmployee.employeeCheckup " + show-btn-save dense outlined v-model:employee-checkup="formDataEmployee.employeeCheckup" @@ -3412,6 +3413,7 @@ watch(isMainPage, () => { v-model:position-name-option="optionStore.globalOption.position" v-model:job-type-option="optionStore.globalOption.businessType" v-model:workplace-option="optionStore.globalOption.area" + show-btn-save /> { dense outlined v-model:employee-other="formDataEmployee.employeeOtherInfo" + show-btn-save />