|
|
@@ -315,8 +315,8 @@ export default {
|
|
|
const end = start + this.page.pageSize;
|
|
|
this.pageData = this.tableData.slice(start, end);
|
|
|
},
|
|
|
- armbChange(row) {
|
|
|
- if (Number(row.amount - row.reconciliationAmount) > 0) {
|
|
|
+ armbChange(row) {
|
|
|
+ if (Number(row.amount - row.reconciliationAmount) > 0) {
|
|
|
if (Number(row.currentStlAmountRMB) < 0) {
|
|
|
row.currentStlAmountRMB = 0;
|
|
|
return this.$message.error("本次金额不能输入负数");
|
|
|
@@ -338,24 +338,20 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
ausdChange(row) {
|
|
|
- if (Number(row.amount - row.reconciliationAmount) > 0) {
|
|
|
- if (Number(row.currentStlAmountUSD) < 0) {
|
|
|
- row.currentStlAmountUSD = 0;
|
|
|
+ if (Number(row.amount - row.reconciliationAmountUsd) > 0) {
|
|
|
+ if (Number(row.currentAmountUSD) < 0) {
|
|
|
return this.$message.error("本次金额不能输入负数");
|
|
|
}
|
|
|
- if (Number(row.currentStlAmountUSD) > Number(row.amount - row.reconciliationAmount)) {
|
|
|
- row.currentStlAmountUSD = 0;
|
|
|
- return this.$message.error("本次金额不能超过未签收金额:" + Number(row.amount - row.reconciliationAmount));
|
|
|
+ if (Number(row.currentAmountUSD) > Number(row.amount - row.reconciliationAmountUsd)) {
|
|
|
+ return this.$message.error("本次金额不能超过未签收金额:" + Number(row.amount - row.reconciliationAmountUsd));
|
|
|
}
|
|
|
}
|
|
|
- if (Number(row.amount - row.reconciliationAmount) < 0) {
|
|
|
- if (row.currentStlAmountUSD >= 0) {
|
|
|
- row.currentStlAmountUSD = Number(row.amount - row.reconciliationAmount);
|
|
|
+ if (Number(row.amount - row.reconciliationAmountUsd) < 0) {
|
|
|
+ if (row.currentAmountUSD >= 0) {
|
|
|
return this.$message.error("本次金额不能输入非负数");
|
|
|
}
|
|
|
- if (Number(row.currentStlAmountUSD) < Number(row.amount - row.reconciliationAmount)) {
|
|
|
- row.currentStlAmountUSD = Number(row.amount - row.reconciliationAmount);
|
|
|
- return this.$message.error("本次金额不能超过未签收金额:" + Number(row.amount - row.reconciliationAmount));
|
|
|
+ if (Number(row.currentAmountUSD) < Number(row.amount - row.reconciliationAmountUsd)) {
|
|
|
+ return this.$message.error("本次金额不能超过未签收金额:" + Number(row.amount - row.reconciliationAmountUsd));
|
|
|
}
|
|
|
}
|
|
|
},
|