优化财务单据
This commit is contained in:
@@ -117,13 +117,13 @@
|
||||
{ title: '操作员', dataIndex: 'userName',width:60},
|
||||
{ title: '欠款', dataIndex: 'needDebt',width:70,
|
||||
customRender:function (text,record,index) {
|
||||
return (record.discountLastMoney - record.changeAmount).toFixed(2);
|
||||
return (record.discountLastMoney + record.otherMoney - record.changeAmount).toFixed(2);
|
||||
}
|
||||
},
|
||||
{ title: '已收欠款', dataIndex: 'finishDebt',width:70 },
|
||||
{ title: '待收欠款', dataIndex: 'debt',width:70,
|
||||
customRender:function (text,record,index) {
|
||||
return (record.discountLastMoney - record.changeAmount - record.finishDebt).toFixed(2);
|
||||
return (record.discountLastMoney + record.otherMoney - record.changeAmount - record.finishDebt).toFixed(2);
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
@@ -183,8 +183,8 @@ export const FinancialModalMixin = {
|
||||
for(let i=0; i<selectBillRows.length; i++){
|
||||
let info = selectBillRows[i]
|
||||
info.billNumber = info.number
|
||||
info.needDebt = (info.discountLastMoney - info.changeAmount).toFixed(2)
|
||||
info.eachAmount = (info.discountLastMoney - info.changeAmount - info.finishDebt).toFixed(2);
|
||||
info.needDebt = (info.discountLastMoney + info.otherMoney - info.changeAmount).toFixed(2)
|
||||
info.eachAmount = (info.discountLastMoney + info.otherMoney - info.changeAmount - info.finishDebt).toFixed(2);
|
||||
if(info.eachAmount != 0) {
|
||||
changeAmount += info.eachAmount-0
|
||||
listEx.push(info)
|
||||
|
||||
Reference in New Issue
Block a user