diff --git a/src/pages/05_quotation/QuotationForm.vue b/src/pages/05_quotation/QuotationForm.vue index 4811ea9b..6740f0ad 100644 --- a/src/pages/05_quotation/QuotationForm.vue +++ b/src/pages/05_quotation/QuotationForm.vue @@ -923,6 +923,7 @@ async function searchEmployee(text: string) { { query: query, pageSize: pageSize, + passport: true, }, ); if (retEmp) workerList.value = retEmp.data.result; @@ -1947,7 +1948,7 @@ async function getWorkerFromCriteria( $i18n.locale === 'eng' ? `${item.firstNameEN} ${item.lastNameEN}` : `${item.firstName} ${item.lastName}`, - code: item.employeePassport.at(0)?.number, + code: item.employeePassport?.at(0)?.number, female: item.gender === 'female', male: item.gender === 'male', img: `${baseUrl}/customer/${item.id}/image/${item.selectedImage}`,