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 = [];
|
||||
summaryPrice.value = taskListGroup
|
||||
.flatMap((v) => {
|
||||
const list = v.list.filter(
|
||||
(item) => item._status === TaskStatus.Complete,
|
||||
);
|
||||
if (viewType.value === 'docReceive' && list.length === 0) {
|
||||
return [];
|
||||
}
|
||||
const list =
|
||||
(viewType.value === 'docReceive'
|
||||
? v.list.filter((item) => item._status === TaskStatus.Complete)
|
||||
: v.list) || [];
|
||||
|
||||
return {
|
||||
product: v.product,
|
||||
pricePerUnit: v.product.serviceCharge,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue