给零售增加找零字段

This commit is contained in:
季圣华
2021-12-12 23:19:03 +08:00
parent 19ba6d50fa
commit c2c9a465b6
5 changed files with 45 additions and 15 deletions

View File

@@ -191,7 +191,16 @@
{ title: '单据日期', dataIndex: 'operTimeStr',width:145},
{ title: '操作员', dataIndex: 'userName',width:80},
{ title: '金额合计', dataIndex: 'totalPrice',width:80},
{ title: '付款', dataIndex: 'changeAmount',width:50},
{ title: '付款金额', dataIndex: 'getAmount',width:80,
customRender:function (text,record,index) {
if(record.backAmount) {
return record.changeAmount + record.backAmount
} else {
return record.changeAmount
}
}
},
{ title: '找零', dataIndex: 'backAmount',width:50},
{ title: '状态', dataIndex: 'status', width: 80, align: "center",
scopedSlots: { customRender: 'customRenderStatus' }
},