refactor: remove unused workerList and reset selectedWorker on branch change
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 7s
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 7s
This commit is contained in:
parent
4d8eebdd04
commit
9a57056ffa
1 changed files with 6 additions and 12 deletions
|
|
@ -198,7 +198,6 @@ const selectedWorkerItem = computed(() => {
|
||||||
})),
|
})),
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
const workerList = ref<Employee[]>([]);
|
|
||||||
const firstCodePayment = ref('');
|
const firstCodePayment = ref('');
|
||||||
const selectedProductGroup = ref('');
|
const selectedProductGroup = ref('');
|
||||||
const selectedInstallmentNo = ref<number[]>([]);
|
const selectedInstallmentNo = ref<number[]>([]);
|
||||||
|
|
@ -1059,12 +1058,7 @@ watch(
|
||||||
() => quotationFormData.value.customerBranchId,
|
() => quotationFormData.value.customerBranchId,
|
||||||
async (v) => {
|
async (v) => {
|
||||||
if (!v) return;
|
if (!v) return;
|
||||||
|
selectedWorker.value = [];
|
||||||
const retEmp = await customerStore.fetchBranchEmployee(v, {
|
|
||||||
passport: true,
|
|
||||||
});
|
|
||||||
|
|
||||||
if (retEmp) workerList.value = retEmp.data.result;
|
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue