|
@@ -664,7 +664,7 @@
|
|
}
|
|
}
|
|
|
|
|
|
amount = amount.toFixed(2)
|
|
amount = amount.toFixed(2)
|
|
- if (amount >= 0) {
|
|
|
|
|
|
+ if (Number(amount) >= 0) {
|
|
z.ui.input("[name='createReqVO$totalBoatCarCost']").setValue(amount);
|
|
z.ui.input("[name='createReqVO$totalBoatCarCost']").setValue(amount);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -683,7 +683,7 @@
|
|
|
|
|
|
amount = amount.toFixed(2)
|
|
amount = amount.toFixed(2)
|
|
carAmount = carAmount.toFixed(2)
|
|
carAmount = carAmount.toFixed(2)
|
|
- if (amount >= 0) {
|
|
|
|
|
|
+ if (Number(amount) >= 0) {
|
|
z.ui.input("[name='createReqVO$totalOtherCost']").setValue(amount);
|
|
z.ui.input("[name='createReqVO$totalOtherCost']").setValue(amount);
|
|
z.ui.input("[name='createReqVO$totalCityCarCost']").setValue(carAmount);
|
|
z.ui.input("[name='createReqVO$totalCityCarCost']").setValue(carAmount);
|
|
}
|
|
}
|
|
@@ -703,7 +703,7 @@
|
|
|
|
|
|
amount += Number(subsidyAmount);
|
|
amount += Number(subsidyAmount);
|
|
amount = amount.toFixed(2)
|
|
amount = amount.toFixed(2)
|
|
- if (amount >= 0) {
|
|
|
|
|
|
+ if (Number(amount) >= 0) {
|
|
z.ui.input("[name='createReqVO$totalAmount']").setValue(amount);
|
|
z.ui.input("[name='createReqVO$totalAmount']").setValue(amount);
|
|
z.ui.input("[name='createReqVO$totalAmountCn']").setValue(convertCurrency(amount));
|
|
z.ui.input("[name='createReqVO$totalAmountCn']").setValue(convertCurrency(amount));
|
|
}
|
|
}
|
|
@@ -939,12 +939,12 @@
|
|
bz2 = 0;
|
|
bz2 = 0;
|
|
}
|
|
}
|
|
let amount = Number(previousAmount) + Number(bz2);
|
|
let amount = Number(previousAmount) + Number(bz2);
|
|
- if (Number(postData.createReqVO.totalAmount).toFixed(2) > Number(amount).toFixed(2)) {
|
|
|
|
|
|
+ if (Number(Number(postData.createReqVO.totalAmount).toFixed(2)) > Number(Number(amount).toFixed(2))) {
|
|
all({success: false, errorMsg: "核减后金额不能大于原来金额!"});
|
|
all({success: false, errorMsg: "核减后金额不能大于原来金额!"});
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
//发生金额变化
|
|
//发生金额变化
|
|
- if (Number(postData.createReqVO.totalAmount).toFixed(2) != Number(previousAmount).toFixed(2)) {
|
|
|
|
|
|
+ if (Number(Number(postData.createReqVO.totalAmount).toFixed(2)) != Number(Number(previousAmount).toFixed(2))) {
|
|
let num = Number(amount) - Number(postData.createReqVO.totalAmount);
|
|
let num = Number(amount) - Number(postData.createReqVO.totalAmount);
|
|
postData.createReqVO.bz3 = '发生了核减:' + '核减' + num + '(元)';
|
|
postData.createReqVO.bz3 = '发生了核减:' + '核减' + num + '(元)';
|
|
postData.createReqVO.bz2 = num;
|
|
postData.createReqVO.bz2 = num;
|