fix: product node not updated
This commit is contained in:
parent
33a3a929e1
commit
bead74e0b7
2 changed files with 25 additions and 11 deletions
|
|
@ -673,6 +673,7 @@ async function triggerSelectEmployeeDialog() {
|
|||
}
|
||||
|
||||
function triggerProductServiceDialog() {
|
||||
covertToNode();
|
||||
pageState.productServiceModal = true;
|
||||
}
|
||||
|
||||
|
|
@ -1067,11 +1068,7 @@ const productServiceNodes = ref<ProductTree>([]);
|
|||
watch(
|
||||
() => productServiceList.value,
|
||||
() => {
|
||||
productServiceNodes.value = quotationProductTree(
|
||||
productServiceList.value,
|
||||
agentPrice.value,
|
||||
config.value?.vat,
|
||||
);
|
||||
covertToNode();
|
||||
},
|
||||
);
|
||||
|
||||
|
|
@ -1302,6 +1299,14 @@ async function formDownload() {
|
|||
a.click();
|
||||
a.remove();
|
||||
}
|
||||
|
||||
function covertToNode() {
|
||||
productServiceNodes.value = quotationProductTree(
|
||||
productServiceList.value,
|
||||
agentPrice.value,
|
||||
config.value?.vat,
|
||||
);
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue