diff --git a/src/components/form/AddressForm.vue b/src/components/form/AddressForm.vue index d4f104b7..7b3835fd 100644 --- a/src/components/form/AddressForm.vue +++ b/src/components/form/AddressForm.vue @@ -23,6 +23,7 @@ defineProps<{ prefixId: string; hideTitle?: boolean; + useEmployment?: boolean; useWorkPlace?: boolean; }>(); @@ -43,6 +44,14 @@ const subDistrictId = defineModel('subDistrictId'); const zipCode = defineModel('zipCode'); const sameWithEmployer = defineModel('sameWithEmployer'); +const homeCode = defineModel('homeCode'); +const employmentOffice = defineModel( + 'employmentOffice', +); +const employmentOfficeEN = defineModel( + 'employmentOfficeEN', +); + const addrOptions = reactive<{ provinceOps: Province[]; districtOps: District[]; @@ -274,6 +283,43 @@ watch(districtId, fetchSubDistrict);
+
+ + + +
{{ addressTitle || $t('form.address') }} diff --git a/src/pages/03_customer-management/MainPage.vue b/src/pages/03_customer-management/MainPage.vue index 0375e36f..76c44c51 100644 --- a/src/pages/03_customer-management/MainPage.vue +++ b/src/pages/03_customer-management/MainPage.vue @@ -563,7 +563,7 @@ function customerFormUndo(close = true) { customerFormState.value.readonly = true; } -function createCustomerForm(customerType: 'CORP' | 'PERS') { +async function createCustomerForm(customerType: 'CORP' | 'PERS') { customerFormState.value.dialogModal = true; customerFormState.value.dialogType = 'create'; customerFormData.value.customerType = customerType; @@ -1765,6 +1765,7 @@ const emptyCreateDialog = ref(false); customerFormStore.resetForm(customerFormState.dialogType === 'create'); onCreateImageList = { selectedImage: '', list: [] }; await fetchListOfOptionBranch(); + await customerFormStore.addCurrentCustomerBranch(); } " :on-close=" @@ -1777,23 +1778,22 @@ const emptyCreateDialog = ref(false);