解决待付金额和待收金额计算的bug

This commit is contained in:
季圣华
2022-06-07 00:32:46 +08:00
parent aac42f8de2
commit ab715fa84f
2 changed files with 2 additions and 2 deletions

View File

@@ -225,7 +225,7 @@
}, },
{ title: '待付金额', dataIndex: 'needInMoney',width:80, { title: '待付金额', dataIndex: 'needInMoney',width:80,
customRender:function (text,record,index) { customRender:function (text,record,index) {
let needInMoney = record.discountLastMoney + record.otherMoney let needInMoney = record.discountLastMoney + record.otherMoney - record.deposit
return needInMoney? needInMoney.toFixed(2):'' return needInMoney? needInMoney.toFixed(2):''
} }
}, },

View File

@@ -225,7 +225,7 @@
}, },
{ title: '待收金额', dataIndex: 'needOutMoney',width:80, { title: '待收金额', dataIndex: 'needOutMoney',width:80,
customRender:function (text,record,index) { customRender:function (text,record,index) {
let needOutMoney = record.discountLastMoney + record.otherMoney let needOutMoney = record.discountLastMoney + record.otherMoney - record.deposit
return needOutMoney? needOutMoney.toFixed(2):'' return needOutMoney? needOutMoney.toFixed(2):''
} }
}, },