Commit f7dba8f9 authored by alwayOnlie's avatar alwayOnlie

合同bug修复

parent 15c28662
......@@ -108,10 +108,12 @@ const Add: React.FC<{}> = (props: any) => {
}
/* 选择物料 */
const purchaseMaterielList = await purchaseMate.current.length != 0 ? await purchaseMate.current.get() : [];
if (purchaseMaterielList.length != 0) {
purchaseMaterielList.data.list.map(item => {
totalAmount += item.bidAmount
totalAmount += Number(item.bidAmount)
})
console.log(purchaseMaterielList, totalAmount)
basicsVO.data.totalAmount = basicsVO.data.totalAmount ? basicsVO.data.totalAmount : totalAmount;
}
/* 付款方式 */
......
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