fix: แก้ taxNo ของนายจ้างไม่แสดง

This commit is contained in:
Net 2024-07-18 09:27:43 +07:00
parent 8c7f467579
commit 035d3b0dcf

View file

@ -1157,6 +1157,8 @@ async function assignFormData(customerId: string, branch?: CustomerBranch) {
}; };
data.branch.forEach((v) => { data.branch.forEach((v) => {
console.log(v.taxNo);
prevCustomer.value.customerBranch?.push({ prevCustomer.value.customerBranch?.push({
code: v.code, code: v.code,
branchNo: v.branchNo, branchNo: v.branchNo,
@ -1190,6 +1192,8 @@ async function assignFormData(customerId: string, branch?: CustomerBranch) {
}); });
cloneData(); cloneData();
console.log(formData.value);
} }
function cloneData() { function cloneData() {
@ -3560,6 +3564,10 @@ watch([inputSearch, currentStatus], async () => {
formData.customerBranch?.[indexTab] formData.customerBranch?.[indexTab]
" "
:type-customer="customerType" :type-customer="customerType"
v-model:legal-entity-code="
formData.customerBranch[indexTab].legalPersonNo
"
v-model:tax-no="formData.customerBranch[indexTab].taxNo"
v-model:branch-code="formData.customerBranch[indexTab].code" v-model:branch-code="formData.customerBranch[indexTab].code"
v-model:branch-no="formData.customerBranch[indexTab].branchNo" v-model:branch-no="formData.customerBranch[indexTab].branchNo"
v-model:customer-name="formData.customerBranch[indexTab].name" v-model:customer-name="formData.customerBranch[indexTab].name"