剩余发货数量计算不准确问题解决

This commit is contained in:
Ledo 2025-02-20 22:10:21 +08:00
parent 2ab727e6e2
commit 2a3ae07fb7
2 changed files with 2 additions and 1 deletions

View File

@ -452,6 +452,7 @@ public class ProjectOrderServiceImpl implements ProjectOrderService {
deliverAmount = deliverOrderSubDOList.stream().mapToInt(DeliverOrderSubDO::getAmount).sum();
}
projectOrderSubDO.setDeliverAmount(deliverAmount);
});
}

View File

@ -922,7 +922,7 @@ const queryData = async (type: string, id?: number) => {
sub.saleOrderSubId = sub.id
sub.id = ''
sub.saleOrderCode = sub.projectOrderCode
sub.amounts = sub.amount - sub.deliverAmount
sub.amount = sub.amount - sub.deliverAmount
})
formData.value.deliverOrderSubs = formData.value.deliverOrderSubs.concat(
subList