diff --git a/src/pages/03_customer-management/MainPage.vue b/src/pages/03_customer-management/MainPage.vue index 57387cc1..6e0ea200 100644 --- a/src/pages/03_customer-management/MainPage.vue +++ b/src/pages/03_customer-management/MainPage.vue @@ -341,7 +341,8 @@ const formDataEmployeeOwner = ref<{ subDistrictId: string; zipCode: string; }>(); -const formDataEmployee = ref({ +const formDataEmployee = ref({ + code:'', image: null, customerBranchId: '', nrcNo: '', @@ -723,6 +724,7 @@ function clearFormEmployee() { formDataEmployeeOwner.value = undefined; formDataEmployee.value = { + code:'', image: null, customerBranchId: '', nrcNo: '', @@ -1221,7 +1223,10 @@ async function assignFormDataEmployee(id: string) { zipCode: foundBranch.zipCode, }; + + formDataEmployee.value = { + code: foundEmployee.code, image: null, customerBranchId: foundEmployee.customerBranchId, nrcNo: foundEmployee.nrcNo, @@ -2169,86 +2174,6 @@ watch([inputSearch, currentStatus], async () => { - - @@ -2618,9 +2543,9 @@ watch([inputSearch, currentStatus], async () => { code: props.row.code, name: $i18n.locale === 'en-US' - ? `${props.row.firstName} ${props.row.lastName} `.trim() - : `${props.row.firstNameEN} ${props.row.lastNameEN} `.trim(), - img: props.row.imageUrl, + ? `${props.row.firstNameEN} ${props.row.lastNameEN} `.trim() + : `${props.row.firstName} ${props.row.lastName} `.trim() , + img: props.row.profileImageUrl, male: props.row.gender === 'male', female: props.row.gender === 'female', detail: [ @@ -3879,20 +3804,29 @@ watch([inputSearch, currentStatus], async () => {