Commit d4e7f1b7 authored by alwayOnlie's avatar alwayOnlie

合同请款bug修复

parent 88d77bd0
......@@ -44,12 +44,14 @@ const Materials = (props: any) => {
totalunPayApplyAmount: 0,
totalapplyAmount: 0,
}
res.data.data.map(item => {
totals.totalorderAmount += item.orderAmount;
totals.totalpayAmount += item.payAmount;
totals.totalunPayApplyAmount += item.PayApplyAmount;
totals.totalapplyAmount += item.applyAmount;
})
if (res.data) {
res.data.data.map(item => {
totals.totalorderAmount += item.orderAmount;
totals.totalpayAmount += item.payAmount;
totals.totalunPayApplyAmount += item.PayApplyAmount;
totals.totalapplyAmount += item.applyAmount;
})
}
setTotal(totals)
})
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment