月份有重复提示
parent
a30bb69a48
commit
8f5f11159a
|
@ -61,7 +61,7 @@ function verifyBudgetPlan(){
|
||||||
var input_total_earnest_money_income_budget_plan = classVal("input-total-earnest-money-income-budget-plan");
|
var input_total_earnest_money_income_budget_plan = classVal("input-total-earnest-money-income-budget-plan");
|
||||||
|
|
||||||
|
|
||||||
//从采购成本明细中取“设备”大类下的总计---设备支出
|
/*//从采购成本明细中取“设备”大类下的总计---设备支出
|
||||||
if(costPurchaseDeviceTaxExclude != input_total_device_cost_budget_plan){
|
if(costPurchaseDeviceTaxExclude != input_total_device_cost_budget_plan){
|
||||||
return "采购成本明细中取“设备”大类下的总计["+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){
|
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+"]不等";
|
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 "";
|
return "";
|
||||||
|
|
Loading…
Reference in New Issue