Commit e9b61b4d authored by 刘明珠's avatar 刘明珠

居民A年报开表路由添加

parent de5e176b
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
* @author ygy * @author ygy
* @date 2018/12/16 20:09 * @date 2018/12/16 20:09
*/ */
var yearBblxDm = ['10414', '10420'];
function initPage(companyInfo) { function initPage(companyInfo) {
getIEVersion(); getIEVersion();
localStorage.setItem("cancellation", null); localStorage.setItem("cancellation", null);
...@@ -101,7 +102,12 @@ function initPage(companyInfo) { ...@@ -101,7 +102,12 @@ function initPage(companyInfo) {
data.fillingFlag = "corrections" // 填报标记 data.fillingFlag = "corrections" // 填报标记
data.saveUserId = "zxtb"; // 用户id data.saveUserId = "zxtb"; // 用户id
window.mlistener.selectRowData = data; window.mlistener.selectRowData = data;
window.open(config.ssfwptPage, '_blank'); if (yearBblxDm.indexOf(data.bblxDm)) {
window.open(config.ssfwptPage, '_blank');
} else {
data.saveUserId = "zxtb_singleReport"; // 用户id
window.open(config.yearTaxTable, '_blank');
}
Object.defineProperty(mlistener, 'returnSelectRowData', { Object.defineProperty(mlistener, 'returnSelectRowData', {
set: function (val) { set: function (val) {
setTimeout(function () { setTimeout(function () {
......
var initpage; var initpage;
var yearBblxDm = ['10414', '10420'];
$(function () { $(function () {
showLoading(); showLoading();
getInitTable(); getInitTable();
...@@ -208,7 +210,12 @@ function initPage(companyInfo) { ...@@ -208,7 +210,12 @@ function initPage(companyInfo) {
data.fillingFlag = "cancellation" // 填报标记 data.fillingFlag = "cancellation" // 填报标记
data.saveUserId = "zxtb"; // 用户id data.saveUserId = "zxtb"; // 用户id
window.mlistener.selectRowData = data; window.mlistener.selectRowData = data;
window.open(config.ssfwptPage, '_blank'); if (yearBblxDm.indexOf(data.bblxDm)) {
window.open(config.ssfwptPage, '_blank');
} else {
data.saveUserId = "zxtb_singleReport"; // 用户id
window.open(config.yearTaxTable, '_blank');
}
Object.defineProperty(mlistener, 'returnSelectRowData', { Object.defineProperty(mlistener, 'returnSelectRowData', {
set: function (val) { set: function (val) {
setTimeout(function () { setTimeout(function () {
...@@ -363,7 +370,12 @@ function initPage(companyInfo) { ...@@ -363,7 +370,12 @@ function initPage(companyInfo) {
submitData.fillingFlag = "inventory" // 填报标记 submitData.fillingFlag = "inventory" // 填报标记
data.saveUserId = "zxtb"; // 用户id data.saveUserId = "zxtb"; // 用户id
window.mlistener.selectRowData = submitData; window.mlistener.selectRowData = submitData;
window.open(config.ssfwptPage, '_blank'); if (yearBblxDm.indexOf(data.bblxDm)) {
window.open(config.ssfwptPage, '_blank');
} else {
data.saveUserId = "zxtb_singleReport"; // 用户id
window.open(config.yearTaxTable, '_blank');
}
Object.defineProperty(mlistener, 'returnSelectRowData', { Object.defineProperty(mlistener, 'returnSelectRowData', {
set: function (val) { set: function (val) {
setTimeout(function () { setTimeout(function () {
......
var initpage; var initpage;
var sbqDate = '' var sbqDate = '';
var yearBblxDm = ['10414', '10420'];
$(function () { $(function () {
showLoading(); showLoading();
getInitTable(); getInitTable();
...@@ -24,14 +26,13 @@ function getInitTable() { ...@@ -24,14 +26,13 @@ function getInitTable() {
hideLoading(); hideLoading();
//el表达式变jqa //el表达式变jqa
// $("#token").attr("value",""); // $("#token").attr("value","");
if (data.success) { // if (data.success) {
if (data.bean.url == "error.jsp") { // if (data.bean.url == "error.jsp") {
myAlert("提示", data.bean.errorInfo, "确定") // myAlert("提示", data.bean.errorInfo, "确定")
// window.location.href = "/jsp/error/index.html?falg="+param; // // window.location.href = "/jsp/error/index.html?falg="+param;
return // return
} // }
} // }
var companyInfo = data; var companyInfo = data;
if (companyInfo.success) { if (companyInfo.success) {
config.value = companyInfo.bean.value config.value = companyInfo.bean.value
...@@ -170,7 +171,12 @@ function initPage(companyInfo) { ...@@ -170,7 +171,12 @@ function initPage(companyInfo) {
data.fillingFlag = "normal" // 填报标记 data.fillingFlag = "normal" // 填报标记
data.saveUserId = "zxtb"; // 用户id data.saveUserId = "zxtb"; // 用户id
window.mlistener.selectRowData = data; window.mlistener.selectRowData = data;
window.open(config.ssfwptPage, '_blank'); if (yearBblxDm.indexOf(data.bblxDm)) {
window.open(config.ssfwptPage, '_blank');
} else {
data.saveUserId = "zxtb_singleReport"; // 用户id
window.open(config.yearTaxTable, '_blank');
}
Object.defineProperty(mlistener, 'returnSelectRowData', { Object.defineProperty(mlistener, 'returnSelectRowData', {
set: function (val) { set: function (val) {
setTimeout(function () { setTimeout(function () {
...@@ -257,7 +263,7 @@ function initPage(companyInfo) { ...@@ -257,7 +263,7 @@ function initPage(companyInfo) {
drawGrid(data.bean); drawGrid(data.bean);
companyInfo = data.bean; companyInfo = data.bean;
config.value = companyInfo.value; config.value = companyInfo.value;
if(type=='Y'){ if (type == 'Y') {
myAlert("提示", "重置清册成功", "确定") myAlert("提示", "重置清册成功", "确定")
} }
} else { } else {
...@@ -327,7 +333,12 @@ function initPage(companyInfo) { ...@@ -327,7 +333,12 @@ function initPage(companyInfo) {
submitData.fillingFlag = "normal" // 填报标记 submitData.fillingFlag = "normal" // 填报标记
submitData.saveUserId = "zxtb"; // 用户id submitData.saveUserId = "zxtb"; // 用户id
window.mlistener.selectRowData = submitData; window.mlistener.selectRowData = submitData;
window.open(config.ssfwptPage, '_blank'); if (yearBblxDm.indexOf(data.bblxDm)) {
window.open(config.ssfwptPage, '_blank');
} else {
data.saveUserId = "zxtb_singleReport"; // 用户id
window.open(config.yearTaxTable, '_blank');
}
Object.defineProperty(mlistener, 'returnSelectRowData', { Object.defineProperty(mlistener, 'returnSelectRowData', {
set: function (val) { set: function (val) {
setTimeout(function () { setTimeout(function () {
...@@ -362,16 +373,16 @@ function initPage(companyInfo) { ...@@ -362,16 +373,16 @@ function initPage(companyInfo) {
window.taxInfo = JSON.stringify(submitData); window.taxInfo = JSON.stringify(submitData);
localStorage.setItem("data", JSON.stringify(submitData)); localStorage.setItem("data", JSON.stringify(submitData));
// if (data.url == "edit.jsp") { // if (data.url == "edit.jsp") {
submitData.flag = true; submitData.flag = true;
submitData.encryptKey = config.value; submitData.encryptKey = config.value;
var url = config.spreadUrl + "/online_report/declare/toPzzl?falg=" + falg var url = config.spreadUrl + "/online_report/declare/toPzzl?falg=" + falg
var form = $("#changeForm"); var form = $("#changeForm");
form.attr('action', url); //通过jquery为action属性赋值 form.attr('action', url); //通过jquery为action属性赋值
form.find("#changeForm_data").val(JSON.stringify(submitData)); form.find("#changeForm_data").val(JSON.stringify(submitData));
form.submit(); form.submit();
// window.open(config.spreadUrl+"/online_report/declare/toPzzl?falg=" + falg + '&data=' + JSON.stringify(submitData)); // window.open(config.spreadUrl+"/online_report/declare/toPzzl?falg=" + falg + '&data=' + JSON.stringify(submitData));
// window.open(config.webUrl + "declare/edit.html?falg=" + falg + '&params=' + encodeURI(JSON.stringify(submitData))); // window.open(config.webUrl + "declare/edit.html?falg=" + falg + '&params=' + encodeURI(JSON.stringify(submitData)));
// } // }
/* else if (data.url == "yearReport.jsp") { /* else if (data.url == "yearReport.jsp") {
window.open(config.webUrl + "declare/yearReport.html?falg=" + falg + '&params=' + encodeURI(JSON.stringify(submitData))); window.open(config.webUrl + "declare/yearReport.html?falg=" + falg + '&params=' + encodeURI(JSON.stringify(submitData)));
...@@ -425,4 +436,4 @@ function initPage(companyInfo) { ...@@ -425,4 +436,4 @@ function initPage(companyInfo) {
declarationMethod: declarationMethod, declarationMethod: declarationMethod,
closeModal: closeModal closeModal: closeModal
} }
} }
\ No newline at end of file
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
* *
* @param {*} companyInfo * @param {*} companyInfo
*/ */
var yearBblxDm = ['10414', '10420'];
function initPage(companyInfo) { function initPage(companyInfo) {
getIEVersion(); getIEVersion();
localStorage.setItem("cancellation", null); localStorage.setItem("cancellation", null);
...@@ -149,7 +150,12 @@ function initPage(companyInfo) { ...@@ -149,7 +150,12 @@ function initPage(companyInfo) {
data.fillingFlag = "overdue" // 填报标记 data.fillingFlag = "overdue" // 填报标记
data.saveUserId = "zxtb"; // 用户id data.saveUserId = "zxtb"; // 用户id
window.mlistener.selectRowData = data; window.mlistener.selectRowData = data;
window.open(config.ssfwptPage, '_blank'); if (yearBblxDm.indexOf(data.bblxDm)) {
window.open(config.ssfwptPage, '_blank');
} else {
data.saveUserId = "zxtb_singleReport"; // 用户id
window.open(config.yearTaxTable, '_blank');
}
Object.defineProperty(mlistener, 'returnSelectRowData', { Object.defineProperty(mlistener, 'returnSelectRowData', {
set: function (val) { set: function (val) {
setTimeout(function () { setTimeout(function () {
...@@ -275,7 +281,12 @@ function initPage(companyInfo) { ...@@ -275,7 +281,12 @@ function initPage(companyInfo) {
submitData.fillingFlag = "overdue" // 填报标记 submitData.fillingFlag = "overdue" // 填报标记
data.saveUserId = "zxtb"; // 用户id data.saveUserId = "zxtb"; // 用户id
window.mlistener.selectRowData = submitData; window.mlistener.selectRowData = submitData;
window.open(config.ssfwptPage, '_blank'); if (yearBblxDm.indexOf(data.bblxDm)) {
window.open(config.ssfwptPage, '_blank');
} else {
data.saveUserId = "zxtb_singleReport"; // 用户id
window.open(config.yearTaxTable, '_blank');
}
Object.defineProperty(mlistener, 'returnSelectRowData', { Object.defineProperty(mlistener, 'returnSelectRowData', {
set: function (val) { set: function (val) {
setTimeout(function () { setTimeout(function () {
...@@ -307,22 +318,23 @@ function initPage(companyInfo) { ...@@ -307,22 +318,23 @@ function initPage(companyInfo) {
return false return false
} }
localStorage.setItem("data", JSON.stringify(submitData)); localStorage.setItem("data", JSON.stringify(submitData));
var url = "";
if (data.url == "edit.jsp") {
url = config.spreadUrl + "/online_report/declare/toPzzl?falg=" + falg
} else if (data.url == "yearReport.jsp") {
url = config.spreadUrl + "/online_report/declare/yearReport.html?falg=" + falg + '&params=' + encodeURI(JSON.stringify(submitData));
} else if (data.url == "yearReportGLB.jsp") {
url = config.spreadUrl + "/online_report/declare/yearReportGLB.html?falg=" + falg + '&params=' + encodeURI(JSON.stringify(submitData));
} else {
//因为后台不知道返回路径是什么样的就直接改成了else data.url == "error.jsp"
url = config.spreadUrl + "/online_report/error/index.html?falg=" + falg + '&params=' + encodeURI(JSON.stringify(submitData))
}
submitData.flag = true; submitData.flag = true;
submitData.encryptKey = config.value; submitData.encryptKey = config.value;
var url = config.spreadUrl + "/online_report/declare/toPzzl?falg=" + falg
var form = $("#changeForm"); var form = $("#changeForm");
form.attr('action', url); //通过jquery为action属性赋值 form.attr('action', url); //通过jquery为action属性赋值
form.find("#changeForm_data").val(JSON.stringify(submitData)); form.find("#changeForm_data").val(JSON.stringify(submitData));
form.submit(); form.submit();
/* if (data.url == "edit.jsp") {
window.open(config.webUrl+"declare/edit.html?falg="+falg+'&params=' + encodeURI(JSON.stringify(submitData)));
}else if (data.url == "yearReport.jsp") {
window.open(config.webUrl+"declare/yearReport.html?falg="+falg+'&params=' + encodeURI(JSON.stringify(submitData)));
}else if (data.url == "yearReportGLB.jsp") {
window.open(config.webUrl+"declare/yearReportGLB.html?falg="+falg+'&params=' + encodeURI(JSON.stringify(submitData)));
}else {
window.open(config.webUrl+"error/index.html?falg="+falg+'&params=' + encodeURI(JSON.stringify(submitData)));
}*/
}, },
error: function (xhr) { error: function (xhr) {
hideLoading() hideLoading()
......
...@@ -12,27 +12,31 @@ function getUrlParam(name) { ...@@ -12,27 +12,31 @@ function getUrlParam(name) {
return null; return null;
} }
// 公共配置 生产环境 // 公共配置 生产环境
/*var config = {
environmental:"test",//production 生产 test 测试
webUrl:"/web/onlineReport/jsp/", // 预生产环境解开
url:"",// 开发环境配置跨域设置 // 开发环境
spreadUrl:"http://sbjs.tjsat.gov.cn",// 局端生产 值为空 其余全部指向在线的域名
ssfwptPage:"/web/taxservicedesk/index.html#/taxTableList",// 涉税服务平台填报页面地址
zhsbPage:"/web/taxservicedesk/index.html#/syntheticalReport",// 涉税 综合申报页面
taxFormComponent:"/web/taxFormComponent/index.html?param=",// 涉税服务平台填报页面地址
value:'',//加密token
nsrsbq:'',
}*/
//公共配置 本地环境,测试环境
var config = { var config = {
environmental: "test", //production 生产 test 测试 environmental: "test", //production 生产 test 测试
webUrl: "/web/onlineReport/jsp/", // 预生产环境解开 webUrl: "/web/onlineReport/jsp/", // 预生产环境解开
url: "", // 开发环境配置跨域设置 // 开发环境 url: "", // 开发环境配置跨域设置 // 开发环境
spreadUrl: "http://sbjs.tjsat.gov.cn", // 局端生产 值为空 其余全部指向在线的域名
ssfwptPage: "/web/taxservicedesk/index.html#/taxTableList", // 涉税服务平台填报页面地址
zhsbPage: "/web/taxservicedesk/index.html#/syntheticalReport", // 涉税 综合申报页面
taxFormComponent: "/web/taxFormComponent/index.html?param=", // 涉税服务平台填报页面地址
value: '', //加密token value: '', //加密token
nsrsbq: '', nsrsbq: '',
spreadUrl: "http://sbjs.tjsat.gov.cn", // 局端生产 值为空 其余全部指向在线的域名
ssfwptPage: "http://192.168.106.203:8094/#/taxTableList", // 涉税服务平台填报页面地址
yearTaxTable: "http://192.168.106.203:8094/#/yearTaxTable", // 涉税服务平台填报页面地址
zhsbPage: "http://192.168.106.203:8094/#/syntheticalReport", // 涉税 综合申报页面
taxFormComponent: "/web/taxFormComponent/index.html?param=", // 涉税服务平台填报页面地址
} }
//公共配置 本地环境,测试环境
/*var config = {
environmental:"test",//production 生产 test 测试
webUrl:"http://localhost:80/web/onlineReport/jsp/", // 开发环境
url:"",// 开发环境配置跨域设置 // 开发环境
spreadUrl:"sbjs.tjsat.gov.cn:18001",// 注册地址
ssfwptPage:"/web/taxservicedesk/index.html#/taxTableList",// 涉税服务平台填报页面地址
value:'',//加密token
}*/
// if(config.environmental=="production" && getUrlParam("djxh")){ // if(config.environmental=="production" && getUrlParam("djxh")){
// window.open(config.webUrl + "/error/newError.html",'_self') // window.open(config.webUrl + "/error/newError.html",'_self')
// } // }
\ No newline at end of file
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