refactor: handle field only lagelPersonNo , registerName
This commit is contained in:
parent
dac32c8eae
commit
2e941af305
1 changed files with 1 additions and 12 deletions
|
|
@ -379,12 +379,6 @@ async function fetchListCustomer(fetchStats = false) {
|
|||
maxPageCustomer.value = Math.ceil(resultList.total / pageSize.value);
|
||||
listCustomer.value = resultList.result;
|
||||
}
|
||||
|
||||
if (fetchStats) {
|
||||
statsCustomerType.value = await customerStore
|
||||
.getStatsCustomer()
|
||||
.then((value) => (value ? value : { CORP: 0, PERS: 0 }));
|
||||
}
|
||||
}
|
||||
|
||||
async function fetchListEmployee(fetchStats = false) {
|
||||
|
|
@ -2132,12 +2126,7 @@ const emptyCreateDialog = ref(false);
|
|||
];
|
||||
}
|
||||
if (customerFormData.customerType === 'CORP') {
|
||||
tabFieldRequired.main = [
|
||||
'legalPersonNo',
|
||||
'registerName',
|
||||
'registerNameEN',
|
||||
'customerName',
|
||||
];
|
||||
tabFieldRequired.main = ['legalPersonNo', 'registerName'];
|
||||
}
|
||||
let tapIsUndefined = validateTabField(
|
||||
customerFormData.customerBranch?.[idx],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue