|
@@ -322,6 +322,10 @@ $(document).ready(function() {
|
|
|
$("#feature-area").show();
|
|
|
$("#add-compilation-title").text('添加工程特征');
|
|
|
break;
|
|
|
+ case 'info':
|
|
|
+ $('#info-area').show();
|
|
|
+ $('#add-compilation-title').text('添加基本信息');
|
|
|
+ break;
|
|
|
case 'progressive':
|
|
|
$("#progressive-area").show();
|
|
|
$("#add-compilation-title").text('添加累进区间');
|
|
@@ -346,7 +350,7 @@ $(document).ready(function() {
|
|
|
});
|
|
|
|
|
|
// 移除操作
|
|
|
- $(".bill-list, .ration-list, .glj-list, .fee-list, .artificial-list, .program-list, .billsGuidance-list,.feature-list,.progressive-list,.vvTax-list").on("click", ".remove-lib", function() {
|
|
|
+ $(".bill-list, .ration-list, .glj-list, .fee-list, .artificial-list, .program-list, .billsGuidance-list,.feature-list,.info-list,.progressive-list,.vvTax-list").on("click", ".remove-lib", function() {
|
|
|
$(this).parent().remove();
|
|
|
});
|
|
|
|
|
@@ -537,6 +541,7 @@ function initCompilation() {
|
|
|
let billTemplateData = billTemplateList == undefined ? [] : JSON.parse(billTemplateList);
|
|
|
let mainTreeColData= mainTreeColList == undefined ? [] : JSON.parse(mainTreeColList);
|
|
|
let featureData = featureList == undefined?[]: JSON.parse(featureList);
|
|
|
+ let infoData = infoList == undefined ? [] : JSON.parse(infoList);
|
|
|
let progressiveData = progressiveList == undefined?[]: JSON.parse(progressiveList);
|
|
|
let vvTaxData = vvTaxList == undefined?[]: JSON.parse(vvTaxList);
|
|
|
/*mainTreeCol = mainTreeCol !== '' ? mainTreeCol.replace(/\n/g, '\\n') : mainTreeCol;
|
|
@@ -637,6 +642,14 @@ function initCompilation() {
|
|
|
}
|
|
|
$("select[name='feature_lib']").children("option").first().after(html);//工程特征库
|
|
|
|
|
|
+ //基本信息库
|
|
|
+ html = '';
|
|
|
+ for(let tmp of infoData){
|
|
|
+ let tmpHtml = '<option value="' + tmp.ID + '">' + tmp.name + '</option>';
|
|
|
+ html += tmpHtml;
|
|
|
+ }
|
|
|
+ $("select[name='info_lib']").children("option").first().after(html);
|
|
|
+
|
|
|
//累进区间库
|
|
|
html = '';
|
|
|
for(let tmp of progressiveData){
|
|
@@ -670,6 +683,7 @@ function getAndValidData(model) {
|
|
|
let programLib = $("select[name='program_lib']").children("option:selected").val();
|
|
|
let billsGuidanceLib = $("select[name='billsGuidance_lib']").children("option:selected").val();
|
|
|
let featureLib = $("select[name='feature_lib']").children("option:selected").val();
|
|
|
+ let infoLib = $("select[name='info_lib']").children("option:selected").val();
|
|
|
let progressiveLib = $("select[name='progressive_lib']").children("option:selected").val();
|
|
|
let vvTaxLib = $("select[name='vvTax_lib']").children("option:selected").val();
|
|
|
|
|
@@ -719,6 +733,7 @@ function getAndValidData(model) {
|
|
|
let programString = $("select[name='program_lib']").children("option:selected").text();
|
|
|
let billsGuidanceString = $("select[name='billsGuidance_lib']").children("option:selected").text();
|
|
|
let featrueString = $("select[name='feature_lib']").children("option:selected").text();
|
|
|
+ let infoString = $("select[name='info_lib']").children("option:selected").text();
|
|
|
let progressiveString = $("select[name='progressive_lib']").children("option:selected").text();
|
|
|
let vvTaxString = $("select[name='vvTax_lib']").children("option:selected").text();
|
|
|
|
|
@@ -757,6 +772,10 @@ function getAndValidData(model) {
|
|
|
id:featureLib,
|
|
|
name:featrueString
|
|
|
},
|
|
|
+ info: {
|
|
|
+ id: infoLib,
|
|
|
+ name: infoString
|
|
|
+ },
|
|
|
progressive:{
|
|
|
id:progressiveLib,
|
|
|
name:progressiveString
|