fix: by ค่าของสาขา

This commit is contained in:
Net 2024-06-12 16:21:55 +07:00
parent 7def527426
commit cd153aa3e4

View file

@ -56,9 +56,10 @@ onMounted(async () => {
customerId: prop.customerId,
page: 1,
pageSize: pageSizeBranch.value,
includeCustomer: true,
});
if (result) {
currentCustomerName.value = 'dasd';
currentCustomerName.value = result.result[0].customer?.customerName;
maxPageBranch.value = Math.ceil(result.total / pageSizeBranch.value);
branch.value = result.result;
}
@ -192,7 +193,7 @@ watch(currentPageBranch, async () => {
telephone: br.telephoneNo,
businessTypePure: br.bussinessType,
status: 'ดำเนินการอยู่',
totalEmployee: 0,
totalEmployee: br._count?.employee,
}"
@view-detail="emit('viewDetail', [br])"
/>