diff --git a/src/pages/03_customer-management/MainPage.vue b/src/pages/03_customer-management/MainPage.vue index 6e0ea200..0b48bda9 100644 --- a/src/pages/03_customer-management/MainPage.vue +++ b/src/pages/03_customer-management/MainPage.vue @@ -341,8 +341,8 @@ const formDataEmployeeOwner = ref<{ subDistrictId: string; zipCode: string; }>(); -const formDataEmployee = ref({ - code:'', +const formDataEmployee = ref({ + code: '', image: null, customerBranchId: '', nrcNo: '', @@ -724,7 +724,7 @@ function clearFormEmployee() { formDataEmployeeOwner.value = undefined; formDataEmployee.value = { - code:'', + code: '', image: null, customerBranchId: '', nrcNo: '', @@ -1223,8 +1223,6 @@ async function assignFormDataEmployee(id: string) { zipCode: foundBranch.zipCode, }; - - formDataEmployee.value = { code: foundEmployee.code, image: null, @@ -2379,24 +2377,20 @@ watch([inputSearch, currentStatus], async () => { - -
-
+
- {{ props.row.customerBranch.code }} + {{ props.row.customerBranch.code }}
- {{ - - $i18n.locale === 'en-US' ? `${props.row.customerBranch.nameEN}` : `${props.row.customerBranch.name}` - + {{ + $i18n.locale === 'en-US' + ? `${props.row.customerBranch.nameEN}` + : `${props.row.customerBranch.name}` }}
- - { flat @click.stop=" () => { - openDialogInputForm('INFO', props.row.id) } + openDialogInputForm('INFO', props.row.id); + } " /> @@ -2544,7 +2539,7 @@ watch([inputSearch, currentStatus], async () => { name: $i18n.locale === 'en-US' ? `${props.row.firstNameEN} ${props.row.lastNameEN} `.trim() - : `${props.row.firstName} ${props.row.lastName} `.trim() , + : `${props.row.firstName} ${props.row.lastName} `.trim(), img: props.row.profileImageUrl, male: props.row.gender === 'male', female: props.row.gender === 'female', @@ -3339,16 +3334,8 @@ watch([inputSearch, currentStatus], async () => { :isEdit="infoDrawerEdit" :close="() => onClose()" :editData="() => (infoDrawerEdit = true)" - :submit=" - () => () => { - onSubmitEdit(currentCustomerId); - } - " - :deleteData=" - () => { - deleteCustomerById(currentCustomerId); - } - " + :submit="() => onSubmitEdit(currentCustomerId)" + :deleteData="() => deleteCustomerById(currentCustomerId)" >