Commit c816ef8f authored by 孙海亮's avatar 孙海亮

Merge branch 'func-eccs-2045' into 'master'

余额修改保留两位

See merge request !34
parents 0112ae82 0364f0ce
...@@ -195,7 +195,8 @@ export default { ...@@ -195,7 +195,8 @@ export default {
return <a-input-number v-model={row.backAmount} allow-clear disabled={!this.isEdit} onBlur={() => {changeAmount(row)}} /> return <a-input-number v-model={row.backAmount} allow-clear disabled={!this.isEdit} onBlur={() => {changeAmount(row)}} />
} } } }
base[7] = { title: "未清余额", dataIndex: "residueBackAmount", ellipsis: true, width: 150, customRender: (val, row) => { base[7] = { title: "未清余额", dataIndex: "residueBackAmount", ellipsis: true, width: 150, customRender: (val, row) => {
return Number(row.currentReceiptAmount || 0) - Number(row.backAmount || 0) const residueBackAmount = Number(row.currentReceiptAmount || 0) - Number(row.backAmount || 0)
return Number(residueBackAmount.toFixed(2))
} } } }
base.splice(6, 0, { title: "余末金额", dataIndex: "currentReceiptAmount", ellipsis: true, width: 150,}) base.splice(6, 0, { title: "余末金额", dataIndex: "currentReceiptAmount", ellipsis: true, width: 150,})
base.push({ title: "回款日期", dataIndex: "backDate", ellipsis: true, width: 150,}) base.push({ title: "回款日期", dataIndex: "backDate", ellipsis: true, width: 150,})
...@@ -210,7 +211,7 @@ export default { ...@@ -210,7 +211,7 @@ export default {
this.selectedRows.forEach(item => { this.selectedRows.forEach(item => {
totalMoney -= Number(item.backAmount) totalMoney -= Number(item.backAmount)
}) })
return totalMoney return Number(totalMoney.toFixed(2))
} }
}, },
created(){ created(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment