Commit c960d3fa authored by yangyuxin's avatar yangyuxin

综合申报套餐

parent 1c504f18
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
<body> <body>
<div> <div>
<div style="background-color:#FFFFFF;"> <div style="background-color:#FFFFFF;">
<div style="padding: 25px;"> <div id="zhsbtcBox" style="padding: 25px;">
<div class="div-border" style="padding-bottom: 20px;height: 60px;"> <div class="div-border" style="padding-bottom: 20px;height: 60px;">
<img style="float:left;display:block" src="../../static/tools/images/zxtb.png">&nbsp;&nbsp; <img style="float:left;display:block" src="../../static/tools/images/zxtb.png">&nbsp;&nbsp;
<span style="float:left;display:block;margin-left: 10px;margin-top: 9px;top: 10px;" <span style="float:left;display:block;margin-left: 10px;margin-top: 9px;top: 10px;"
...@@ -52,23 +52,29 @@ ...@@ -52,23 +52,29 @@
<strong>税费申报</strong> <strong>税费申报</strong>
</div> </div>
<hr class="hr-margin" /> <hr class="hr-margin" />
<div class="div-clear-folat"> <!-- <div class="div-clear-folat" style="width: 99%; height: 40px;line-height: 40px;">
<strong>10111298000025892661国家税务总局天津滨海高新技术产业开发区税务局第二税务所</strong> <strong>10111298000025892661国家税务总局天津滨海高新技术产业开发区税务局第二税务所</strong>
</div> <input id="reset" class="btn btn-primary"
<div id="taxGrid" class="zhsbtcTab"></div> style="height: 30px;right: 120px;margin: 0; padding: 0 5px;float: right;"
<hr class="hr-margin" /> type="button" value="税费申报" />
<div class="div-clear-folat"> <input id="reset" class="btn btn-primary"
style="height: 30px;right: 120px;margin: 0 10px 0 0; padding: 0 5px;float: right;"
type="button" value="缴款" />
</div> -->
<!-- <div id="taxGrid" class="zhsbtcTab"></div> -->
<!-- <hr class="hr-margin" />
<div class="div-clear-folat" style="width: 99%; height: 30px;line-height: 30px;">
<strong>10111298000025892661国家税务总局天津滨海高新技术产业开发区税务局第二税务所</strong> <strong>10111298000025892661国家税务总局天津滨海高新技术产业开发区税务局第二税务所</strong>
</div> </div> -->
<div id="taxGrid1" class="zhsbtcTab"></div> <!-- <div id="taxGrid1" class="zhsbtcTab"></div> -->
<!-- <div style="height:16px"></div> --> <!-- <div style="height:16px"></div> -->
<div class="font-clo" style="padding-top: 20px;"> <!-- <div class="font-clo" style="padding-top: 20px;">
<div style="font-size:12px">温馨提示:</div> <div style="font-size:12px">温馨提示:</div>
<div class="reminder"><span class="span-font-size">如近期有税费种认定、纳税人资格、备案等发生变动,页面展现清册与实际所需不符的,</span></div> <div class="reminder"><span class="span-font-size">如近期有税费种认定、纳税人资格、备案等发生变动,页面展现清册与实际所需不符的,</span></div>
<div class="reminder"><span class="span-font-size">请点此处&nbsp;&nbsp;“<label for="reset" id="reset1" <div class="reminder"><span class="span-font-size">请点此处&nbsp;&nbsp;“<label for="reset" id="reset1"
class="label_declare">重置申报清册</label>”&nbsp;&nbsp;对该户清册进行重新生成。</span> class="label_declare">重置申报清册</label>”&nbsp;&nbsp;对该户清册进行重新生成。</span>
</div> </div>
</div> </div> -->
</div> </div>
</div> </div>
</div> </div>
......
...@@ -18,7 +18,8 @@ function getInitTable() { ...@@ -18,7 +18,8 @@ function getInitTable() {
djxh: getUrlParam("djxh"), djxh: getUrlParam("djxh"),
token: getUrlParam("token"), token: getUrlParam("token"),
sbsq: "", sbsq: "",
pzzlDm: getUrlParam("pzzlDm"), // pzzlDm: getUrlParam("pzzlDm"),
pzzlDm: "12101|10401|10402",
}, },
// beforeSend:function(){ // beforeSend:function(){
// myAlert("提示", "正在获取初始化信息", "确定") // myAlert("提示", "正在获取初始化信息", "确定")
...@@ -101,7 +102,7 @@ function initPage(companyInfo) { ...@@ -101,7 +102,7 @@ function initPage(companyInfo) {
/** /**
* 展示税种申报信息 * 展示税种申报信息
*/ */
var showTax = function (taxInfo) { var showTax = function (taxInfo, id) {
if (taxInfo.length > 0) { if (taxInfo.length > 0) {
for (var i = 0; i < taxInfo.length; i++) { for (var i = 0; i < taxInfo.length; i++) {
if (taxInfo[i].sbrq) { if (taxInfo[i].sbrq) {
...@@ -114,7 +115,7 @@ function initPage(companyInfo) { ...@@ -114,7 +115,7 @@ function initPage(companyInfo) {
} }
} }
// var id = "#taxGrid"; // var id = "#taxGrid";
var buttonHtml = "填写申报表1, 申报1"; // "djxh" var buttonHtml = "填写并申报, 申报"; // "djxh"
var order = ["pzzlMc", "sssqQ", "sssqZ", "sbrq", "do"]; var order = ["pzzlMc", "sssqQ", "sssqZ", "sbrq", "do"];
var promptStatement = ""; var promptStatement = "";
var headerList = [{ var headerList = [{
...@@ -137,9 +138,10 @@ function initPage(companyInfo) { ...@@ -137,9 +138,10 @@ function initPage(companyInfo) {
width: "15%" width: "15%"
}]; }];
//渲染表 //渲染表
getTableDeclaration('#taxGrid', order, headerList, taxInfo, buttonHtml, promptStatement) console.log('#'+id)
getTableDeclaration('#'+id, order, headerList, taxInfo, buttonHtml, promptStatement)
//渲染表 //渲染表
getTableDeclaration('#taxGrid1', order, headerList, taxInfo, buttonHtml, promptStatement) // getTableDeclaration('#taxGrid1', order, headerList, taxInfo, buttonHtml, promptStatement)
}; };
/** /**
* 税务申报table渲染 * 税务申报table渲染
...@@ -171,7 +173,7 @@ function initPage(companyInfo) { ...@@ -171,7 +173,7 @@ function initPage(companyInfo) {
console.log(data, node[0].innerText) console.log(data, node[0].innerText)
if (node[0].innerText == "申报") { if (node[0].innerText == "申报") {
} else if (node[0].innerText == "填写申报表") { } else if (node[0].innerText == "填写并申报") {
data.operateType = '3'; data.operateType = '3';
data.sbbz = '3'; data.sbbz = '3';
data.value = config.value; data.value = config.value;
...@@ -223,8 +225,8 @@ function initPage(companyInfo) { ...@@ -223,8 +225,8 @@ function initPage(companyInfo) {
} }
} }
submitData = data; submitData = data;
if (node.context.innerText == "填写申报表" && companyInfo.iszzsybjc == "01" && data.pzzlDm == "10101") { if (node.context.innerText == "填写并申报" && companyInfo.iszzsybjc == "01" && data.pzzlDm == "10101") {
// if(node.context.innerText=="填写申报表"){ // if(node.context.innerText=="填写并申报"){
initpage.declarationMethod('N') initpage.declarationMethod('N')
// $('#myMask').show(); // $('#myMask').show();
// $('#myModal').show(); // $('#myModal').show();
...@@ -308,16 +310,60 @@ function initPage(companyInfo) { ...@@ -308,16 +310,60 @@ function initPage(companyInfo) {
} }
var drawGrid = function (bean) { var drawGrid = function (bean) {
//两个表合成一个表 var arr = [];
$.each(bean.financialInfos, function (i, item) { for (let i in bean.taxInfos) {
bean.taxInfos.push(item); arr.push(bean.taxInfos[i]); //属性
}); //arr.push(obj[i]); //值
if (bean.taxInfos.length == 0) {
showTax(bean.taxInfos);
alertInfo("税费申报暂无数据");
} else {
showTax(bean.taxInfos);
} }
$.each(arr, function (i, item) {
var divObj1='<div id="btnBox" class="div-clear-folat" style="width: 99%; height: 40px;line-height: 40px;">'+
'<strong>'+item[0].djxh+item[0].zgswskfjMc+'</strong>'+
'</div>';
$('#zhsbtcBox').append(divObj1); //将子div添加到父div中
if ((i-1+1) == 0) {
var btnObj = '<input id="reset" class="btn btn-primary"'+
'style="height: 30px;right: 120px;margin: 0; padding: 0 5px;float: right;"'+
'type="button" value="税费申报" />'+
'<input id="reset" class="btn btn-primary"'+
'style="height: 30px;right: 120px;margin: 0 10px 0 0; padding: 0 5px;float: right;"'+
'type="button" value="缴款" />';
$('#btnBox').append(btnObj);
}
var divObj2 = "<div id='taxGrid"+i+"' class='zhsbtcTab'></div>";
$('#zhsbtcBox').append(divObj2);
if ((i-1+1) < arr.length) {
$('#zhsbtcBox').append('<hr class="hr-margin" />');
}
if ((i-1+1) == arr.length-1) {
var divObj3 = '<div class="font-clo" style="padding-top: 20px;">'+
'<div style="font-size:12px">温馨提示:</div>'+
'<div class="reminder"><span class="span-font-size">如近期有税费种认定、纳税人资格、备案等发生变动,页面展现清册与实际所需不符的,</span></div>'+
'<div class="reminder"><span class="span-font-size">请点此处&nbsp;&nbsp;“<label for="reset" id="reset1"'+
'class="label_declare">重置申报清册</label>”&nbsp;&nbsp;对该户册进行重新生成。</span>'+
'</div>'+
'</div>';
$('#zhsbtcBox').append(divObj3);
}
showTax(item, "taxGrid"+i);
// bean.taxInfos.push(item);
});
//两个表合成一个表
// $.each(bean.financialInfos, function (i, item) {
// bean.taxInfos.push(item);
// });
// if (bean.taxInfos.length == 0) {
// showTax(bean.taxInfos);
// alertInfo("税费申报暂无数据");
// } else {
// showTax(bean.taxInfos);
// }
}; };
/** /**
......
...@@ -406,6 +406,10 @@ fieldset[disabled] .searchPage { ...@@ -406,6 +406,10 @@ fieldset[disabled] .searchPage {
.zhsbtcTab .tdDoing-contain { .zhsbtcTab .tdDoing-contain {
text-align: left !important; text-align: left !important;
} }
.zhsbtcTab .table-tr .row-1 {
padding-left: 5px !important;
text-align: left !important;
}
.tdDoing-contain { .tdDoing-contain {
text-align: center !important; text-align: center !important;
......
...@@ -961,7 +961,11 @@ var JSTOOL = function() { ...@@ -961,7 +961,11 @@ var JSTOOL = function() {
var div = document.createElement("div"); var div = document.createElement("div");
$div = $(div); $div = $(div);
$div.attr("alt", commonJson[i][tableObj.onlyId]); $div.attr("alt", commonJson[i][tableObj.onlyId]);
$div.addClass("btn btn-primary tdDong-btn"); if (buttonHtmlArr[cxi] == "填写并申报") {
$div .addClass("btn tdDong-btn");
} else {
$div .addClass("btn btn-primary tdDong-btn");
}
$div.html(buttonHtmlArr[cxi]); $div.html(buttonHtmlArr[cxi]);
$td.addClass("tdDoing-contain"); $td.addClass("tdDoing-contain");
$td.append(div); $td.append(div);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment