This commit is contained in:
2026-07-02 23:58:11 +08:00
parent 33b6e1fd47
commit aa8e9b9195
15 changed files with 5 additions and 3 deletions

View File

@@ -140,8 +140,8 @@
return; return;
} }
// 当缴费方式为年缴费时年缴费类型必填 // 当缴费方式为年缴费时年缴费类型必填(前缀匹配:年、年缴、年付等)
if (jiaofeifs == '年') { if (jiaofeifs && jiaofeifs.indexOf('年') === 0) {
if (isEmpty(njiaofeifs)) { if (isEmpty(njiaofeifs)) {
$.alert("请选择年缴费方式选项"); $.alert("请选择年缴费方式选项");
return; return;

View File

@@ -269,7 +269,7 @@ public class LeaseBillUtil {
*/ */
private String calculateRent(int months, JSONObject params, String chargeType) { private String calculateRent(int months, JSONObject params, String chargeType) {
BigDecimal rent = BigDecimal.ZERO; BigDecimal rent = BigDecimal.ZERO;
boolean isAreaCharge = "面积计费".equals(chargeType); boolean isAreaCharge = "面积计费".equals(chargeType) || "面积计租".equals(chargeType);
boolean isFixedRent = "固定租金".equals(chargeType); boolean isFixedRent = "固定租金".equals(chargeType);
if (isAreaCharge) { if (isAreaCharge) {
@@ -280,6 +280,8 @@ public class LeaseBillUtil {
} else if (isFixedRent) { } else if (isFixedRent) {
// 固定租金:直接取固定金额 // 固定租金:直接取固定金额
rent = parseBigDecimal(params.getString("gdzj")); rent = parseBigDecimal(params.getString("gdzj"));
}else {
throw new RuntimeException("未匹配到正确的计费方式");
} }
// 固定租金不乘月数,其他计费方式 × 月数 // 固定租金不乘月数,其他计费方式 × 月数