fix: value not reflect real amount
This commit is contained in:
parent
6c299b8c1b
commit
c1c814ade2
1 changed files with 5 additions and 6 deletions
|
|
@ -174,12 +174,11 @@ onMounted(async () => {
|
||||||
product.value = [];
|
product.value = [];
|
||||||
summaryPrice.value = taskListGroup
|
summaryPrice.value = taskListGroup
|
||||||
.flatMap((v) => {
|
.flatMap((v) => {
|
||||||
const list = v.list.filter(
|
const list =
|
||||||
(item) => item._status === TaskStatus.Complete,
|
(viewType.value === 'docReceive'
|
||||||
);
|
? v.list.filter((item) => item._status === TaskStatus.Complete)
|
||||||
if (viewType.value === 'docReceive' && list.length === 0) {
|
: v.list) || [];
|
||||||
return [];
|
|
||||||
}
|
|
||||||
return {
|
return {
|
||||||
product: v.product,
|
product: v.product,
|
||||||
pricePerUnit: v.product.serviceCharge,
|
pricePerUnit: v.product.serviceCharge,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue