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

居民A年报开表路由添加

parent de5e176b
......@@ -13,6 +13,7 @@
* @author ygy
* @date 2018/12/16 20:09
*/
var yearBblxDm = ['10414', '10420'];
function initPage(companyInfo) {
getIEVersion();
localStorage.setItem("cancellation", null);
......@@ -101,7 +102,12 @@ function initPage(companyInfo) {
data.fillingFlag = "corrections" // 填报标记
data.saveUserId = "zxtb"; // 用户id
window.mlistener.selectRowData = data;
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', {
set: function (val) {
setTimeout(function () {
......
var initpage;
var yearBblxDm = ['10414', '10420'];
$(function () {
showLoading();
getInitTable();
......@@ -208,7 +210,12 @@ function initPage(companyInfo) {
data.fillingFlag = "cancellation" // 填报标记
data.saveUserId = "zxtb"; // 用户id
window.mlistener.selectRowData = data;
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', {
set: function (val) {
setTimeout(function () {
......@@ -363,7 +370,12 @@ function initPage(companyInfo) {
submitData.fillingFlag = "inventory" // 填报标记
data.saveUserId = "zxtb"; // 用户id
window.mlistener.selectRowData = submitData;
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', {
set: function (val) {
setTimeout(function () {
......
var initpage;
var sbqDate = ''
var sbqDate = '';
var yearBblxDm = ['10414', '10420'];
$(function () {
showLoading();
getInitTable();
......@@ -24,14 +26,13 @@ function getInitTable() {
hideLoading();
//el表达式变jqa
// $("#token").attr("value","");
if (data.success) {
if (data.bean.url == "error.jsp") {
myAlert("提示", data.bean.errorInfo, "确定")
// window.location.href = "/jsp/error/index.html?falg="+param;
return
}
}
// if (data.success) {
// if (data.bean.url == "error.jsp") {
// myAlert("提示", data.bean.errorInfo, "确定")
// // window.location.href = "/jsp/error/index.html?falg="+param;
// return
// }
// }
var companyInfo = data;
if (companyInfo.success) {
config.value = companyInfo.bean.value
......@@ -170,7 +171,12 @@ function initPage(companyInfo) {
data.fillingFlag = "normal" // 填报标记
data.saveUserId = "zxtb"; // 用户id
window.mlistener.selectRowData = data;
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', {
set: function (val) {
setTimeout(function () {
......@@ -257,7 +263,7 @@ function initPage(companyInfo) {
drawGrid(data.bean);
companyInfo = data.bean;
config.value = companyInfo.value;
if(type=='Y'){
if (type == 'Y') {
myAlert("提示", "重置清册成功", "确定")
}
} else {
......@@ -327,7 +333,12 @@ function initPage(companyInfo) {
submitData.fillingFlag = "normal" // 填报标记
submitData.saveUserId = "zxtb"; // 用户id
window.mlistener.selectRowData = submitData;
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', {
set: function (val) {
setTimeout(function () {
......
......@@ -10,6 +10,7 @@
*
* @param {*} companyInfo
*/
var yearBblxDm = ['10414', '10420'];
function initPage(companyInfo) {
getIEVersion();
localStorage.setItem("cancellation", null);
......@@ -149,7 +150,12 @@ function initPage(companyInfo) {
data.fillingFlag = "overdue" // 填报标记
data.saveUserId = "zxtb"; // 用户id
window.mlistener.selectRowData = data;
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', {
set: function (val) {
setTimeout(function () {
......@@ -275,7 +281,12 @@ function initPage(companyInfo) {
submitData.fillingFlag = "overdue" // 填报标记
data.saveUserId = "zxtb"; // 用户id
window.mlistener.selectRowData = submitData;
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', {
set: function (val) {
setTimeout(function () {
......@@ -307,22 +318,23 @@ function initPage(companyInfo) {
return false
}
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.encryptKey = config.value;
var url = config.spreadUrl + "/online_report/declare/toPzzl?falg=" + falg
var form = $("#changeForm");
form.attr('action', url); //通过jquery为action属性赋值
form.find("#changeForm_data").val(JSON.stringify(submitData));
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) {
hideLoading()
......
......@@ -12,26 +12,30 @@ function getUrlParam(name) {
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 = {
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: '',
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")){
// window.open(config.webUrl + "/error/newError.html",'_self')
......
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