From d5aadbdd86fca4b291c6184a4ee0b52deffac99b Mon Sep 17 00:00:00 2001 From: Net Date: Wed, 21 Aug 2024 15:41:09 +0700 Subject: [PATCH] refactor: edit field table --- src/pages/03_customer-management/MainPage.vue | 56 +++++++++++-------- 1 file changed, 33 insertions(+), 23 deletions(-) diff --git a/src/pages/03_customer-management/MainPage.vue b/src/pages/03_customer-management/MainPage.vue index df592675..6e3051d3 100644 --- a/src/pages/03_customer-management/MainPage.vue +++ b/src/pages/03_customer-management/MainPage.vue @@ -642,8 +642,8 @@ const emptyCreateDialog = ref(false); ? customerStats.map((v) => ({ count: v.name === 'CORP' - ? statsCustomerType?.CORP ?? 0 - : statsCustomerType?.PERS ?? 0, + ? (statsCustomerType?.CORP ?? 0) + : (statsCustomerType?.PERS ?? 0), label: v.name === 'CORP' ? 'customerLegalEntity' @@ -969,6 +969,17 @@ const emptyCreateDialog = ref(false); : '' " > + + {{ + (currentPageCustomer - 1) * pageSize + + props.rowIndex + + 1 + }} + +
- {{ props.row.customerName || '-' }} + {{ props.row.firstName || '-' }} + {{ props.row.lastName || '-' }}
- {{ props.row.customerNameEN || '-' }} + {{ props.row.firstNameEN || '-' }} + {{ props.row.lastNameEN || '-' }}
- - - {{ - props.row.customerType === 'CORP' - ? $t('customerLegalEntity') - : $t('customerNaturalPerson') - }} - + + {{ props.row.businessTypePure || '-' }} - - {{ props.row.personName }} + + + {{ props.row.branch?.[0].address || '-' }} - - {{ props.row.branch[0]?.telephoneNo || '-' }} + + + {{ props.row.branch?.[0].workplace || '-' }} - - {{ props.row.branch[0]?.email || '-' }} + + + {{ props.row.branch?.[0].contactName || '-' }} + + + {{ props.row.branch?.[0].telephoneNo || '-' }} + +