fix worker double data

This commit is contained in:
Thanaphon Frappet 2024-11-01 11:18:25 +07:00
parent 57f1d6665f
commit 30edcda058

View file

@ -334,7 +334,6 @@ async function fetchQuotation() {
const id = currentQuotationId.value || quotationFormData.value.id || '';
await quotationForm.assignFormData(id, quotationFormState.value.mode);
await assignWorkerToSelectedWorker();
}
await assignToProductServiceList();
@ -759,6 +758,7 @@ onMounted(async () => {
currentQuotationId.value = parsed.quotationId;
agentPrice.value = parsed.agentPrice;
await fetchQuotation();
await assignWorkerToSelectedWorker();
sessionData.value = parsed;
}