Commit b8535600 authored by 彭令令's avatar 彭令令

合并optimize分支

parent e0a98401
...@@ -26,7 +26,7 @@ function getInitTable() { ...@@ -26,7 +26,7 @@ function getInitTable() {
token: getUrlParam("token"), token: getUrlParam("token"),
sbsq: "", sbsq: "",
// pzzlDm: getUrlParam("pzzlDm"), // pzzlDm: getUrlParam("pzzlDm"),
pzzlDm: "10110|10111|10112|10113|10107|10114|10121|10118|10119|10902|10401|10402|11303|10304", pzzlDm: "10110|10111|10112|10113|10107|10114|10121|10118|10119|10902|10401|10402|11303|11304",
}, },
// beforeSend:function(){ // beforeSend:function(){
// myAlert("提示", "正在获取初始化信息", "确定") // myAlert("提示", "正在获取初始化信息", "确定")
...@@ -136,7 +136,19 @@ function initPage(companyInfo) { ...@@ -136,7 +136,19 @@ function initPage(companyInfo) {
width: "21%" width: "21%"
}]; }];
//渲染表 //渲染表
getTableDeclaration('#'+id, order, headerList, taxInfo, buttonHtml, promptStatement)
};
/**
* 税务申报table渲染
* @param {*} id
* @param {*} order
* @param {*} headerList
* @param {*} ddt
* @param {*} buttonHtml
*/
var getTableDeclaration = function (id, order, headerList, ddt, buttonHtml, promptStatement) {
var tableObj = { var tableObj = {
id: id, //tabel父元素的id
autoHeight: ddt.length > 0 ? 10 : "", autoHeight: ddt.length > 0 ? 10 : "",
containerWidth: "99%", //table占父元素的百分比 containerWidth: "99%", //table占父元素的百分比
autoHeight: ddt.length > 0 ? 10 : "", // 默认10行 autoHeight: ddt.length > 0 ? 10 : "", // 默认10行
...@@ -153,7 +165,6 @@ function initPage(companyInfo) { ...@@ -153,7 +165,6 @@ function initPage(companyInfo) {
}, },
jsonReady: ddt, jsonReady: ddt,
callback: function (data, node) { callback: function (data, node) {
console.log(data, node)
if (node[0].innerText == "申报") { if (node[0].innerText == "申报") {
cxurlHandleFun(data.djxh); cxurlHandleFun(data.djxh);
} else if (node[0].innerText == "税源信息采集") { } else if (node[0].innerText == "税源信息采集") {
...@@ -162,7 +173,7 @@ function initPage(companyInfo) { ...@@ -162,7 +173,7 @@ function initPage(companyInfo) {
var cjUrl = cjurlHandleFun(data.bblxDm) var cjUrl = cjurlHandleFun(data.bblxDm)
let aLink = document.createElement('a'); let aLink = document.createElement('a');
// aLink.href = "http://114.115.168.201/web/propertybehaviortax#/collectListGDZYS?lybz=online&djxh=10211200000090016380&zsDjxh=10111298000025892661&value=5572DA6A3C11BC372A96FC8F6052D31DBDD47ED6BAD6E90C342919703F21EED8988D1A3BC1BB5F12FA36DD8D2709AD4484E8F19E366C4EF4D58F1B671BB93B16DDCC908ECA5C741BD70981B857E81FE7F7D7312DD16378644DF64B3E2C5FC7C60B9497A3B631B96B527C06F31DAD3457864C9C08C9A960673CFF1C65122879268fa938297e"; // aLink.href = "http://114.115.168.201/web/propertybehaviortax#/collectListGDZYS?lybz=online&djxh=10211200000090016380&zsDjxh=10111298000025892661&value=5572DA6A3C11BC372A96FC8F6052D31DBDD47ED6BAD6E90C342919703F21EED8988D1A3BC1BB5F12FA36DD8D2709AD4484E8F19E366C4EF4D58F1B671BB93B16DDCC908ECA5C741BD70981B857E81FE7F7D7312DD16378644DF64B3E2C5FC7C60B9497A3B631B96B527C06F31DAD3457864C9C08C9A960673CFF1C65122879268fa938297e";
aLink.href = cjUrl +'?lybz=online&djxh='+data.djxh+'&zsDjxh='+data.zsDjxh+'&value='+companyInfo.value+'&random='+Math.random(); aLink.href = cjUrl +'?skipType=cxzhsbtc&lybz=online&djxh='+data.djxh+'&zsDjxh='+data.zsDjxh+'&value='+companyInfo.value+'&random='+Math.random();
aLink.target = '_blank'; aLink.target = '_blank';
aLink.style.display = 'none'; aLink.style.display = 'none';
document.body.appendChild(aLink); document.body.appendChild(aLink);
...@@ -341,7 +352,6 @@ function initPage(companyInfo) { ...@@ -341,7 +352,6 @@ function initPage(companyInfo) {
// 去缴款按钮 // 去缴款按钮
$("#jkBtn").click(function() { $("#jkBtn").click(function() {
console.log("去缴款")
var param = { var param = {
djxh: companyInfo.zsDjxh, djxh: companyInfo.zsDjxh,
operationType: "swjJk" operationType: "swjJk"
...@@ -528,26 +538,39 @@ function initPage(companyInfo) { ...@@ -528,26 +538,39 @@ function initPage(companyInfo) {
} else if (bblxDm == '10107') { } else if (bblxDm == '10107') {
ccxwsTableUrl = "/web/online/collectListZYS/index.html"; ccxwsTableUrl = "/web/online/collectListZYS/index.html";
} }
} else if (window.location.href.indexOf('http://114.115.168.201')>-1){
if (bblxDm == '10111'|| bblxDm == '10902') {
ccxwsTableUrl = "/web/propertybehaviortax#/collectListYHS";
} else if (bblxDm == '10118') {
ccxwsTableUrl = "/web/propertybehaviortax#/collectListGDZYS";
} else if (bblxDm == '10119') {
ccxwsTableUrl = "/web/propertybehaviortax#/collectListQS";
} else if (bblxDm == '10113') {
ccxwsTableUrl = "/web/propertybehaviortax#/collectListTDZZS";
} else if (bblxDm == '10121') {
ccxwsTableUrl = "/web/propertybehaviortax#/collectListHJBHS";
} else if (bblxDm == '10107') {
ccxwsTableUrl = "/web/propertybehaviortax#/collectListZYS";
}
} else { } else {
if (bblxDm == '10111'|| bblxDm == '10902') { if (bblxDm == '10111'|| bblxDm == '10902') {
ccxwsTableUrl = "http://114.115.168.201/web/propertybehaviortax#/collectListYHS"; ccxwsTableUrl = "http://192.168.106.46:8089/#/collectListYHS";
} else if (bblxDm == '10118') { } else if (bblxDm == '10118') {
ccxwsTableUrl = "http://114.115.168.201/web/propertybehaviortax#/collectListGDZYS"; ccxwsTableUrl = "http://192.168.106.46:8089/#/collectListGDZYS";
} else if (bblxDm == '10119') { } else if (bblxDm == '10119') {
ccxwsTableUrl = "http://114.115.168.201/web/propertybehaviortax#/collectListQS"; ccxwsTableUrl = "http://192.168.106.46:8089/#/collectListQS";
} else if (bblxDm == '10113') { } else if (bblxDm == '10113') {
ccxwsTableUrl = "http://114.115.168.201/web/propertybehaviortax#/collectListTDZZS"; ccxwsTableUrl = "http://192.168.106.46:8089/#/collectListTDZZS";
} else if (bblxDm == '10121') { } else if (bblxDm == '10121') {
ccxwsTableUrl = "http://114.115.168.201/web/propertybehaviortax#/collectListHJBHS"; ccxwsTableUrl = "http://192.168.106.46:8089/#/collectListHJBHS";
} else if (bblxDm == '10107') { } else if (bblxDm == '10107') {
ccxwsTableUrl = "http://114.115.168.201/web/propertybehaviortax#/collectListZYS"; ccxwsTableUrl = "http://192.168.106.46:8089/#/collectListZYS";
} }
} }
return ccxwsTableUrl; return ccxwsTableUrl;
} }
//财行页面的跳转 //财行页面的跳转
var cxurlHandleFun = function (djxh){ var cxurlHandleFun = function (djxh){
console.log(companyInfo, djxh, nowdate.substring(5))
//http://dev-ws.htyfw.com.cn/web/index.html?djxh=10111298000025892661&zsDjxh=10111298000025892661&lybz=online&operateType=shenbao&nsrmc=%E5%A4%A9%E6%B4%A5%E7%A5%9E%E5%B7%9E%E6%B5%A9%E5%A4%A9%E7%A7%91%E6%8A%80%E6%9C%89%E9%99%90%E5%85%AC%E5%8F%B8&nsrsbh=911201167773033345&sydbz=Y&month=10 web/tax-plugin //http://dev-ws.htyfw.com.cn/web/index.html?djxh=10111298000025892661&zsDjxh=10111298000025892661&lybz=online&operateType=shenbao&nsrmc=%E5%A4%A9%E6%B4%A5%E7%A5%9E%E5%B7%9E%E6%B5%A9%E5%A4%A9%E7%A7%91%E6%8A%80%E6%9C%89%E9%99%90%E5%85%AC%E5%8F%B8&nsrsbh=911201167773033345&sydbz=Y&month=10 web/tax-plugin
if (window.location.href.indexOf('https://wsswjmn.tjsat.gov.cn')>-1 || window.location.href.indexOf('https://etax.tianjin.chinatax.gov.cn')>-1) { if (window.location.href.indexOf('https://wsswjmn.tjsat.gov.cn')>-1 || window.location.href.indexOf('https://etax.tianjin.chinatax.gov.cn')>-1) {
var cxUrl = '/web/tax-plugin/index.html?lybz=online&operateType=shenbao&sydbz=Y&djxh='+djxh+'&zsDjxh='+companyInfo.zsDjxh+'&value='+companyInfo.value+'&nsrsbh='+companyInfo.nsrsbh+'month='+nowdate.substring(5)+'random='+Math.random(); var cxUrl = '/web/tax-plugin/index.html?lybz=online&operateType=shenbao&sydbz=Y&djxh='+djxh+'&zsDjxh='+companyInfo.zsDjxh+'&value='+companyInfo.value+'&nsrsbh='+companyInfo.nsrsbh+'month='+nowdate.substring(5)+'random='+Math.random();
......
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