|
|
@@ -265,6 +265,10 @@ $(document).ready(function() {
|
|
|
$('#economic-area').show();
|
|
|
$('#add-compilation-title').text('添加主要经济指标');
|
|
|
break;
|
|
|
+ case 'over_height':
|
|
|
+ $('#over-height-area').show();
|
|
|
+ $('#add-compilation-title').text('添加超高降效');
|
|
|
+ break;
|
|
|
}
|
|
|
$("#addcompilation").modal('show');
|
|
|
});
|
|
|
@@ -284,7 +288,7 @@ $(document).ready(function() {
|
|
|
/*$(".remove-lib").on("click", function() {
|
|
|
$(this).parent().remove();
|
|
|
})*/
|
|
|
- $(".bill-list, .ration-list, .glj-list, .fee-list, .artificial-list, .program-list, .billsGuidance-list,.feature-list,.info-list,.engineer_info-list,.engineer_feature-list,.material-list,.main_quantity-list,.economic-list").on("click", ".remove-lib", function() {
|
|
|
+ $(".bill-list, .ration-list, .glj-list, .fee-list, .artificial-list, .program-list, .billsGuidance-list,.feature-list,.info-list,.engineer_info-list,.engineer_feature-list,.material-list,.main_quantity-list,.economic-list,.over_height-list").on("click", ".remove-lib", function() {
|
|
|
$(this).parent().remove();
|
|
|
});
|
|
|
|
|
|
@@ -481,6 +485,7 @@ function initCompilation() {
|
|
|
let materialData = materialList == undefined ? [] : JSON.parse(materialList);
|
|
|
let mainQuantityData = mainQuantityList == undefined ? [] : JSON.parse(mainQuantityList);
|
|
|
let economicData = economicList == undefined ? [] : JSON.parse(economicList);
|
|
|
+ let overHeightData = overHeightList == undefined ? [] : JSON.parse(overHeightList);
|
|
|
|
|
|
/*mainTreeCol = mainTreeCol !== '' ? mainTreeCol.replace(/\n/g, '\\n') : mainTreeCol;
|
|
|
billsTemplateData = billsTemplateData.replace(/\n/g, '\\n');
|
|
|
@@ -626,6 +631,14 @@ function initCompilation() {
|
|
|
html += tmpHtml;
|
|
|
}
|
|
|
$("select[name='economic_lib']").children("option").first().after(html);
|
|
|
+
|
|
|
+ //超高降效
|
|
|
+ html = '';
|
|
|
+ for(let tmp of overHeightData){
|
|
|
+ let tmpHtml = '<option value="' + tmp.ID + '">' + tmp.name + '</option>';
|
|
|
+ html += tmpHtml;
|
|
|
+ }
|
|
|
+ $("select[name='over_height_lib']").children("option").first().after(html);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -650,6 +663,7 @@ function getAndValidData(model) {
|
|
|
let materialLib = $("select[name='material_lib']").children("option:selected").val();
|
|
|
let mainQuantityLib = $("select[name='main_quantity_lib']").children("option:selected").val();
|
|
|
let economicLib = $("select[name='economic_lib']").children("option:selected").val();
|
|
|
+ let overHeightLib = $("select[name='over_height_lib']").children("option:selected").val();
|
|
|
|
|
|
if (name === '' && model === 'all') {
|
|
|
throw '编办名字不能为空';
|
|
|
@@ -696,6 +710,7 @@ function getAndValidData(model) {
|
|
|
let materialString = $("select[name='material_lib']").children("option:selected").text();
|
|
|
let mainQuantityString = $("select[name='main_quantity_lib']").children("option:selected").text();
|
|
|
let economicString = $("select[name='economic_lib']").children("option:selected").text();
|
|
|
+ let overHeightString = $("select[name='over_height_lib']").children("option:selected").text();
|
|
|
|
|
|
|
|
|
let result = {
|
|
|
@@ -755,6 +770,10 @@ function getAndValidData(model) {
|
|
|
economic:{
|
|
|
id:economicLib,
|
|
|
name:economicString
|
|
|
+ },
|
|
|
+ over_height:{
|
|
|
+ id:overHeightLib,
|
|
|
+ name:overHeightString
|
|
|
}
|
|
|
};
|
|
|
return result;
|
|
|
@@ -999,4 +1018,4 @@ function intChecking(e,elemt) {//限制输入正整数
|
|
|
e.preventDefault();
|
|
|
}
|
|
|
|
|
|
-}
|
|
|
+}
|