优化单据列表的待收待付金额

This commit is contained in:
季圣华
2023-05-24 01:10:36 +08:00
parent 54b952dd4c
commit 1fe3446854
4 changed files with 4 additions and 4 deletions

View File

@@ -231,7 +231,7 @@
{ title: '待退金额', dataIndex: 'needBackMoney',width:80,
customRender:function (text,record,index) {
let needBackMoney = record.discountLastMoney + record.otherMoney
return needBackMoney? needBackMoney.toFixed(2):''
return needBackMoney? needBackMoney.toFixed(2):0
}
},
{ title: '退款', dataIndex: 'changeAmount',width:50},

View File

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

View File

@@ -231,7 +231,7 @@
{ title: '待退金额', dataIndex: 'needBackMoney',width:80,
customRender:function (text,record,index) {
let needBackMoney = record.discountLastMoney + record.otherMoney
return needBackMoney? needBackMoney.toFixed(2):''
return needBackMoney? needBackMoney.toFixed(2):0
}
},
{ title: '退款', dataIndex: 'changeAmount',width:50},

View File

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