Commit b1965321 authored by wangyongyu's avatar wangyongyu

提示:可核销余额不足问题

parent 9dd7880f
...@@ -503,9 +503,6 @@ export default { ...@@ -503,9 +503,6 @@ export default {
this.selectedRows.forEach((item) => { this.selectedRows.forEach((item) => {
totalMoney -= Number(item.backAmount); totalMoney -= Number(item.backAmount);
}); });
if(totalMoney < 0){
this.$message.error('可核销余额不足')
}
return Number(totalMoney.toFixed(2)); return Number(totalMoney.toFixed(2));
}, },
}, },
...@@ -548,6 +545,13 @@ export default { ...@@ -548,6 +545,13 @@ export default {
this.panes[Number(this.activeKey)].show = true; this.panes[Number(this.activeKey)].show = true;
}, },
changeAmount(row) { changeAmount(row) {
let totalMoney = Number(this.form.backAmountCny || 0);
this.selectedRows.forEach((item) => {
totalMoney -= Number(item.backAmount);
});
if(totalMoney < 0){
this.$message.error('可核销余额不足')
}
if (Number(row.actualAmount || 0) - Number(row.backAmount || 0) < 0) { if (Number(row.actualAmount || 0) - Number(row.backAmount || 0) < 0) {
this.$message.warning("录入账单回款金额大于账单金额"); this.$message.warning("录入账单回款金额大于账单金额");
} }
......
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