|
@@ -245,6 +245,10 @@ $(document).ready(function() {
|
|
|
$("#progressive-area").show();
|
|
|
$("#add-compilation-title").text('添加累进区间');
|
|
|
break;
|
|
|
+ case 'vvTax':
|
|
|
+ $("#vvTax-area").show();
|
|
|
+ $("#add-compilation-title").text('添加车船税');
|
|
|
+ break;
|
|
|
}
|
|
|
$("#addcompilation").modal('show');
|
|
|
});
|
|
@@ -261,7 +265,7 @@ $(document).ready(function() {
|
|
|
});
|
|
|
|
|
|
// 移除操作
|
|
|
- $(".bill-list, .ration-list, .glj-list, .fee-list, .artificial-list, .program-list, .billsGuidance-list,.feature-list,.progressive-list").on("click", ".remove-lib", 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() {
|
|
|
$(this).parent().remove();
|
|
|
});
|
|
|
|
|
@@ -453,6 +457,7 @@ function initCompilation() {
|
|
|
let mainTreeColData= mainTreeColList == undefined ? [] : JSON.parse(mainTreeColList);
|
|
|
let featureData = featureList == undefined?[]: JSON.parse(featureList);
|
|
|
let progressiveData = progressiveList == undefined?[]: JSON.parse(progressiveList);
|
|
|
+ let vvTaxData = vvTaxList == undefined?[]: JSON.parse(vvTaxList);
|
|
|
/*mainTreeCol = mainTreeCol !== '' ? mainTreeCol.replace(/\n/g, '\\n') : mainTreeCol;
|
|
|
billsTemplateData = billsTemplateData.replace(/\n/g, '\\n');
|
|
|
|
|
@@ -559,6 +564,14 @@ function initCompilation() {
|
|
|
html += tmpHtml;
|
|
|
}
|
|
|
$("select[name='progressive_lib']").children("option").first().after(html);
|
|
|
+
|
|
|
+ //车船税文件
|
|
|
+ html = '';
|
|
|
+ for(let tmp of vvTaxData){
|
|
|
+ let tmpHtml = '<option value="' + tmp.ID + '">' + tmp.name + '</option>';
|
|
|
+ html += tmpHtml;
|
|
|
+ }
|
|
|
+ $("select[name='vvTax_lib']").children("option").first().after(html);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -578,6 +591,7 @@ function getAndValidData(model) {
|
|
|
let billsGuidanceLib = $("select[name='billsGuidance_lib']").children("option:selected").val();
|
|
|
let featureLib = $("select[name='feature_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();
|
|
|
|
|
|
|
|
|
if (name === '' && model === 'all') {
|
|
@@ -597,6 +611,9 @@ function getAndValidData(model) {
|
|
|
if (model === 'progressive' && (progressiveLib === '' || progressiveLib === undefined)) {
|
|
|
throw '请选择累进区间库';
|
|
|
}
|
|
|
+ if (model === 'vvTax' && (vvTaxLib === '' || vvTaxLib === undefined)) {
|
|
|
+ throw '请选择车船税文件';
|
|
|
+ }
|
|
|
|
|
|
if (model === 'glj' && (gljLib === '' || gljLib === undefined)) {
|
|
|
throw '请选择人材机库';
|
|
@@ -623,6 +640,7 @@ function getAndValidData(model) {
|
|
|
let billsGuidanceString = $("select[name='billsGuidance_lib']").children("option:selected").text();
|
|
|
let featrueString = $("select[name='feature_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();
|
|
|
|
|
|
|
|
|
let result = {
|
|
@@ -662,6 +680,10 @@ function getAndValidData(model) {
|
|
|
progressive:{
|
|
|
id:progressiveLib,
|
|
|
name:progressiveString
|
|
|
+ },
|
|
|
+ vvTax: {
|
|
|
+ id: vvTaxLib,
|
|
|
+ name: vvTaxString
|
|
|
}
|
|
|
};
|
|
|
return result;
|