优化收款单

This commit is contained in:
季圣华
2021-06-30 00:54:07 +08:00
parent 4e66aeb98b
commit 344f35b60e
6 changed files with 587 additions and 457 deletions

View File

@@ -152,8 +152,14 @@
return (record.discountMoney + record.discountLastMoney).toFixed(2);
}
},
{ title: '优惠后金额', dataIndex: 'discountLastMoney',width:100},
{ title: '收款', dataIndex: 'changeAmount',width:50},
{ title: '优惠后金额', dataIndex: 'discountLastMoney',width:80},
{ title: '收款', dataIndex: 'changeAmount',width:60},
{ title: '欠款', dataIndex: 'debt',width:60,
customRender:function (text,record,index) {
let debt = record.discountLastMoney - record.changeAmount
return debt? debt.toFixed(2):''
}
},
{
title: '操作',
dataIndex: 'action',