From 8f5f11159aff4b220784c51a66d08cc6635e16b9 Mon Sep 17 00:00:00 2001 From: xxssyyyyssxx Date: Tue, 30 Nov 2021 16:01:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=88=E4=BB=BD=E6=9C=89=E9=87=8D=E5=A4=8D?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../static/assets/js/project_budget_plan.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/main/resources/static/assets/js/project_budget_plan.js b/src/main/resources/static/assets/js/project_budget_plan.js index e822340..e6b6ac5 100644 --- a/src/main/resources/static/assets/js/project_budget_plan.js +++ b/src/main/resources/static/assets/js/project_budget_plan.js @@ -61,7 +61,7 @@ function verifyBudgetPlan(){ var input_total_earnest_money_income_budget_plan = classVal("input-total-earnest-money-income-budget-plan"); - //从采购成本明细中取“设备”大类下的总计---设备支出 + /*//从采购成本明细中取“设备”大类下的总计---设备支出 if(costPurchaseDeviceTaxExclude != input_total_device_cost_budget_plan){ return "采购成本明细中取“设备”大类下的总计["+costPurchaseDeviceTaxExclude+"]与设备支出["+input_total_device_cost_budget_plan+"]不等"; } @@ -81,6 +81,17 @@ function verifyBudgetPlan(){ //保证金支出和收入一致 if(input_total_earnest_money_cost_budget_plan != input_total_earnest_money_income_budget_plan){ return "保证金支出["+input_total_earnest_money_cost_budget_plan+"]与保证金收款["+input_total_earnest_money_income_budget_plan+"]不等"; + }*/ + + var months = []; + $(".input-changeable-month-budget-plan").each(function () { + months.push($(this).val()); + }); + var ms = months.sort(); + for(var i = 0; i < ms.length - 1; i++) { + if(ms[i] == ms[i + 1]) { + return "选择的月份有重复,["+ms[i]+"]"; + } } return "";