Commit 0938c6c8 authored by yangyuxin's avatar yangyuxin

财行综合申报提交代码

parent aff9f6c1
...@@ -11,7 +11,7 @@ $(function () { ...@@ -11,7 +11,7 @@ $(function () {
function getInitTable() { function getInitTable() {
$.ajax({ $.ajax({
type: "post", type: "post",
url: config.url + "/online/declare/index", url: config.url + "/online/declare/cxsTcIndex",
dataType: "json", // 请求方式为jsonp dataType: "json", // 请求方式为jsonp
// async: false, // async: false,
data: { data: {
...@@ -19,7 +19,7 @@ function getInitTable() { ...@@ -19,7 +19,7 @@ function getInitTable() {
token: getUrlParam("token"), token: getUrlParam("token"),
sbsq: "", sbsq: "",
// pzzlDm: getUrlParam("pzzlDm"), // pzzlDm: getUrlParam("pzzlDm"),
pzzlDm: "12101|10401|10402", pzzlDm: "12101|10401|10402|11303|11304",
}, },
// beforeSend:function(){ // beforeSend:function(){
// myAlert("提示", "正在获取初始化信息", "确定") // myAlert("提示", "正在获取初始化信息", "确定")
...@@ -167,8 +167,19 @@ function initPage(companyInfo) { ...@@ -167,8 +167,19 @@ function initPage(companyInfo) {
}, },
jsonReady: ddt, jsonReady: ddt,
callback: function (data, node) { callback: function (data, node) {
console.log(data, node[0].innerText) console.log(data, node)
if (node[0].innerText == "申报") { if (node[0].innerText == "申报") {
cxurlHandleFun(data.djxh);
} else if (node[0].innerText == "税源信息采集") {
var cjUrl = cjurlHandleFun(data.bblxDm)
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 = cjUrl +'?lybz=online&djxh='+data.djxh+'&zsDjxh='+data.zsDjxh+'&value='+companyInfo.value+'&random='+Math.random();
aLink.target = '_blank';
aLink.style.display = 'none';
document.body.appendChild(aLink);
aLink.click();
document.body.removeChild(aLink);
} else if (node[0].innerText == "填写并申报") { } else if (node[0].innerText == "填写并申报") {
data.operateType = '3'; data.operateType = '3';
...@@ -278,7 +289,8 @@ function initPage(companyInfo) { ...@@ -278,7 +289,8 @@ function initPage(companyInfo) {
myAlert("提示", data.bean.errorInfo, "确定") myAlert("提示", data.bean.errorInfo, "确定")
return return
} }
drawGrid(data.bean); // drawGrid(data.bean);
getInitTable();
companyInfo = data.bean; companyInfo = data.bean;
zjhm = companyInfo.zjhm zjhm = companyInfo.zjhm
config.value = companyInfo.value; config.value = companyInfo.value;
...@@ -317,26 +329,26 @@ function initPage(companyInfo) { ...@@ -317,26 +329,26 @@ function initPage(companyInfo) {
alertInfo("税费申报暂无数据"); alertInfo("税费申报暂无数据");
} else { } else {
$.each(arr, function (i, item) { $.each(arr, function (i, item) {
//两个表合成一个表
$.each(bean.financialInfos, function (i, item1) {
item.push(item1);
});
var divObj1='<div id="btnBox" class="div-clear-folat" style="width: 99%; height: 40px;line-height: 40px;">'+ 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>'+ '<strong>'+item[0].djxh+item[0].zgswskfjMc+'</strong>'+
'</div>'; '</div>';
$('#zhsbtcBox').append(divObj1); //将子div添加到父div中 $('#zhsbtcBox').append(divObj1); //将子div添加到父div中
if ((i-1+1) == 0) { if ((i-1+1) == 0) {
var btnObj = '<input id="reset" class="btn btn-primary"'+ var btnObj = '<input id="jfsbBtn" class="btn btn-primary"'+
'style="height: 30px;right: 120px;margin: 0; padding: 0 5px;float: right;"'+ 'style="height: 30px;right: 120px;margin: 0; padding: 0 5px;float: right;"'+
'type="button" value="税费申报" />'+ 'type="button" value="税费申报"/>'+
'<input id="reset" class="btn btn-primary"'+ '<input id="jkBtn" class="btn btn-primary"'+
'style="height: 30px;right: 120px;margin: 0 10px 0 0; padding: 0 5px;float: right;"'+ 'style="height: 30px;right: 120px;margin: 0 10px 0 0; padding: 0 5px;float: right;"'+
'type="button" value="缴款" />'; 'type="button" value="缴款" />';
$('#btnBox').append(btnObj); $('#btnBox').append(btnObj);
$(document).on("click","#jfsbBtn", function(){
cxurlHandleFun(companyInfo.djxh)
});
} }
var divObj2 = "<div id='taxGrid"+i+"' class='zhsbtcTab'></div>"; var divObj2 = "<div id='taxGrid"+i+"' class='zhsbtcTab'></div>";
$('#zhsbtcBox').append(divObj2); $('#zhsbtcBox').append(divObj2);
...@@ -358,13 +370,13 @@ function initPage(companyInfo) { ...@@ -358,13 +370,13 @@ function initPage(companyInfo) {
if (item.length > 0) { if (item.length > 0) {
for (var j = 0; j < item.length; j++) { for (var j = 0; j < item.length; j++) {
item[j].buttonHtml = "填写并申报"; item[j].buttonHtml = "填写并申报";
// 印花税 - 10111 税源信息采集 申报 // 印花税 - 10111,10902 税源信息采集 申报
// 耕地占用税 - 10118 // 耕地占用税 - 10118
// 契税 - 10119 - // 契税 - 10119 -
// 土地增值税 - 10113 // 土地增值税 - 10113
// 环境保护税 - 10121 // 环境保护税 - 10121
// 资源税 - 10107 // 资源税 - 10107
if (['10111','10118','10119','10113','10121','10107'].indexOf(item[j].bblxDm) > -1) { if (['10111','10902','10118','10119','10113','10121','10107'].indexOf(item[j].bblxDm) > -1) {
item[j].buttonHtml = "税源信息采集, 申报" item[j].buttonHtml = "税源信息采集, 申报"
} else if (['10110','10114','10112'].indexOf(item[j].bblxDm) > -1) { } else if (['10110','10114','10112'].indexOf(item[j].bblxDm) > -1) {
// 房产税 - 10110 申报 // 房产税 - 10110 申报
...@@ -519,6 +531,74 @@ function initPage(companyInfo) { ...@@ -519,6 +531,74 @@ function initPage(companyInfo) {
// closeModal(); // closeModal();
} }
} }
//采集页面的跳转
var cjurlHandleFun = function (bblxDm) {
var ccxwsTableUrl = "";
if (window.location.href.indexOf('https://wsswjmn.tjsat.gov.cn')>-1) {
if (bblxDm == '10111'|| bblxDm == '10902') {
ccxwsTableUrl = "/web/collectListYHS/index.html";
} else if (bblxDm == '10118') {
ccxwsTableUrl = "/web/collectListGDZYS/index.html";
} else if (bblxDm == '10119') {
ccxwsTableUrl = "/web/collectListQS/index.html";
} else if (bblxDm == '10113') {
ccxwsTableUrl = "/web/collectListTDZZS/index.html";
} else if (bblxDm == '10121') {
ccxwsTableUrl = "/web/collectListHJBHS/index.html";
} else if (bblxDm == '10107') {
ccxwsTableUrl = "/web/collectListZYS/index.html";
}
} else if (window.location.href.indexOf('https://etax.tianjin.chinatax.gov.cn')>-1) { //生产
if (bblxDm == '10111'|| bblxDm == '10902') {
ccxwsTableUrl = "/web/online/collectListYHS/index.html";
} else if (bblxDm == '10118') {
ccxwsTableUrl = "/web/online/collectListGDZYS/index.html";
} else if (bblxDm == '10119') {
ccxwsTableUrl = "/web/online/collectListQS/index.html";
} else if (bblxDm == '10113') {
ccxwsTableUrl = "/web/online/collectListTDZZS/index.html";
} else if (bblxDm == '10121') {
ccxwsTableUrl = "/web/online/collectListHJBHS/index.html";
} else if (bblxDm == '10107') {
ccxwsTableUrl = "/web/online/collectListZYS/index.html";
}
} else {
if (bblxDm == '10111'|| bblxDm == '10902') {
ccxwsTableUrl = "http://114.115.168.201/web/propertybehaviortax#/collectListYHS";
} else if (bblxDm == '10118') {
ccxwsTableUrl = "http://114.115.168.201/web/propertybehaviortax#/collectListGDZYS";
} else if (bblxDm == '10119') {
ccxwsTableUrl = "http://114.115.168.201/web/propertybehaviortax#/collectListQS";
} else if (bblxDm == '10113') {
ccxwsTableUrl = "http://114.115.168.201/web/propertybehaviortax#/collectListTDZZS";
} else if (bblxDm == '10121') {
ccxwsTableUrl = "http://114.115.168.201/web/propertybehaviortax#/collectListHJBHS";
} else if (bblxDm == '10107') {
ccxwsTableUrl = "http://114.115.168.201/web/propertybehaviortax#/collectListZYS";
}
}
return ccxwsTableUrl;
}
//财行页面的跳转
var cxurlHandleFun = function (djxh){
console.log(companyInfo, djxh)
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&djxh='+djxh+'&zsDjxh='+companyInfo.zsDjxh+'&value='+companyInfo.value+'&random='+Math.random();
} else {
var cxUrl = 'http://dev-web.htyfw.com.cn/page/property_tax_plugin_web/index.html?djxh='+djxh+'&zsDjxh='+companyInfo.zsDjxh+'&lybz=online&random='+Math.random();
}
let aLink = document.createElement('a');
aLink.href = cxUrl;
aLink.target = '_blank';
aLink.style.display = 'none';
document.body.appendChild(aLink);
aLink.click();
document.body.removeChild(aLink)
}
/** /**
* 重置调用方法 * 重置调用方法
* @param {} params * @param {} params
...@@ -544,3 +624,4 @@ function initPage(companyInfo) { ...@@ -544,3 +624,4 @@ function initPage(companyInfo) {
closeModal: closeModal closeModal: closeModal
} }
} }
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