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

合并分支,逾期、清算集成财行税

parent b4099c78
var zjhm = ''; var zjhm = '';
var initpage; var initpage;
var yearBblxDm = ['10414', '10420']; var yearBblxDm = ['10414', '10420'];
var ccxwsBblxDm = ['12101']
$(function () { $(function () {
...@@ -218,12 +219,18 @@ function initPage(companyInfo) { ...@@ -218,12 +219,18 @@ function initPage(companyInfo) {
data.saveUserId = "zxtb"; // 用户id data.saveUserId = "zxtb"; // 用户id
data.zjhm = zjhm data.zjhm = zjhm
window.mlistener.selectRowData = data; window.mlistener.selectRowData = data;
if (yearBblxDm.indexOf(data.bblxDm) == -1) { // 财产行为税
window.open(config.ssfwptPage, '_blank'); if (ccxwsBblxDm.indexOf(data.bblxDm) != -1) {
} else { // 测试环境start
var openUrl = config.ccxwsTaxTable + '?djxh='+data.djxh +'&zsDjxh='+data.zsDjxh + '&nsrsbh='+data.nsrsbh + '&nsrmc=' + data.nsrmc + '&operateType=cancellation' + '&lybz=online' + '&token=' + data.token //测试环境
// var openUrl = config.ccxwsTaxTable +'?lybz=online' +'&operateType=cancellation'+'&sblx=js' + '&token=' + data.token //正式环境
window.open(openUrl, '_blank');
} else if (yearBblxDm.indexOf(data.bblxDm) != -1){
data.saveUserId = "zxtb_singleReport"; // 用户id data.saveUserId = "zxtb_singleReport"; // 用户id
data.userId = "zxtb"; // userId data.userId = "zxtb"; // userId
window.open(config.yearTaxTable, '_blank'); window.open(config.yearTaxTable, '_blank');
}else {
window.open(config.ssfwptPage, '_blank');
} }
Object.defineProperty(mlistener, 'returnSelectRowData', { Object.defineProperty(mlistener, 'returnSelectRowData', {
set: function (val) { set: function (val) {
......
...@@ -3,7 +3,7 @@ var initpage; ...@@ -3,7 +3,7 @@ var initpage;
var sbqDate = ''; var sbqDate = '';
var yearBblxDm = ['10414', '10420']; var yearBblxDm = ['10414', '10420'];
$(function() { $(function () {
showLoading(); showLoading();
getInitTable(); getInitTable();
}) })
...@@ -23,7 +23,7 @@ function getInitTable() { ...@@ -23,7 +23,7 @@ function getInitTable() {
// beforeSend:function(){ // beforeSend:function(){
// myAlert("提示", "正在获取初始化信息", "确定") // myAlert("提示", "正在获取初始化信息", "确定")
// }, // },
success: function(data) { //客户端jquery预先定义好的callback函数,成功获取跨域服务器上的json数据后,会动态执行这个callback函数 success: function (data) { //客户端jquery预先定义好的callback函数,成功获取跨域服务器上的json数据后,会动态执行这个callback函数
hideLoading(); hideLoading();
//el表达式变jqa //el表达式变jqa
// $("#token").attr("value",""); // $("#token").attr("value","");
...@@ -45,20 +45,6 @@ function getInitTable() { ...@@ -45,20 +45,6 @@ function getInitTable() {
companyInfo.bean.return = true; /* @Author ygy @Date 10:12 2020/7/8 @Description 前端判断接口成功返回数据标记用于区分是否执行初始化table方法*/ companyInfo.bean.return = true; /* @Author ygy @Date 10:12 2020/7/8 @Description 前端判断接口成功返回数据标记用于区分是否执行初始化table方法*/
config.return = true; config.return = true;
initpage = initPage(companyInfo.bean); initpage = initPage(companyInfo.bean);
myAlert("通知",
"尊敬的纳税人:<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;按照国家税务总局工作要求,天津市税务局自2021年6月1日起全面推行财产和行为税合并申报,涉及房产税、城镇土地使用税、印花税、契税、土地增值税、资源税(不含水资源税)、环境保护税、车船税以及耕地占用税。请您在申报相关税种前阅读操作指南,如遇问题可拨打12366纳税服务热线或者联系主管税务机关,我们会第一时间进行解答,感谢您对税收工作的支持!<br/> 操作指南链接:<a href='http://tianjin.chinatax.gov.cn/nsrxt/d_toCourseWare.action?id=c5e0e1c737e7f2380147e7f8d1140261' class='alertA' target='_blank'>http://tianjin.chinatax.gov.cn/nsrxt/d_toCourseWare.action?id=c5e0e1c737e7f2380147e7f8d1140261</a>",
"我已知晓,并准备好进行申报");
$("#mb_con").css({
width: '600px'
})
$("#mb_con .alertA").css({
color: '#4c4c4c',
wordBreak: 'break-all'
})
$("#mb_btn_ok").css({
width: 'fit-content',
padding: '0 12px'
})
} else { } else {
hideLoading(); hideLoading();
if (data.errmsg != undefined) { if (data.errmsg != undefined) {
...@@ -75,18 +61,18 @@ function getInitTable() { ...@@ -75,18 +61,18 @@ function getInitTable() {
initpage = initPage(companyInfo.bean); initpage = initPage(companyInfo.bean);
// 弹出错误对话框 // 弹出错误对话框
} }
$("#getInputValue").on("focus", function() { $("#getInputValue").on("focus", function () {
WdatePicker({ WdatePicker({
isShowClear: false, isShowClear: false,
dateFmt: 'yyyy-MM', dateFmt: 'yyyy-MM',
onpicking: function(dp) { onpicking: function (dp) {
initpage.changeDate(this, dp); initpage.changeDate(this, dp);
} }
}); });
}); });
}, },
error: function(xhr) { error: function (xhr) {
hideLoading(); hideLoading();
//jsonp 方式此方法不被触发 //jsonp 方式此方法不被触发
console.log("=======error======================") console.log("=======error======================")
...@@ -115,7 +101,7 @@ function initPage(companyInfo) { ...@@ -115,7 +101,7 @@ function initPage(companyInfo) {
/** /**
* 展示税种申报信息 * 展示税种申报信息
*/ */
var showTax = function(taxInfo) { var showTax = function (taxInfo) {
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) {
...@@ -157,7 +143,7 @@ function initPage(companyInfo) { ...@@ -157,7 +143,7 @@ function initPage(companyInfo) {
* @param {*} ddt * @param {*} ddt
* @param {*} buttonHtml * @param {*} buttonHtml
*/ */
var getTableDeclaration = function(id, order, headerList, ddt, buttonHtml, promptStatement) { var getTableDeclaration = function (id, order, headerList, ddt, buttonHtml, promptStatement) {
var tableObj = { var tableObj = {
id: id, //tabel父元素的id id: id, //tabel父元素的id
autoHeight: ddt.length > 0 ? 10 : "", autoHeight: ddt.length > 0 ? 10 : "",
...@@ -175,7 +161,7 @@ function initPage(companyInfo) { ...@@ -175,7 +161,7 @@ function initPage(companyInfo) {
pageSize: ddt.length pageSize: ddt.length
}, },
jsonReady: ddt, jsonReady: ddt,
callback: function(data, node) { callback: function (data, node) {
data.operateType = '3'; data.operateType = '3';
data.sbbz = '3'; data.sbbz = '3';
data.value = config.value; data.value = config.value;
...@@ -199,8 +185,8 @@ function initPage(companyInfo) { ...@@ -199,8 +185,8 @@ function initPage(companyInfo) {
window.open(config.yearTaxTable, '_blank'); window.open(config.yearTaxTable, '_blank');
} }
Object.defineProperty(mlistener, 'returnSelectRowData', { Object.defineProperty(mlistener, 'returnSelectRowData', {
set: function(val) { set: function (val) {
setTimeout(function() { setTimeout(function () {
getTaxDeclaration(sbqDate, "N", '2'); getTaxDeclaration(sbqDate, "N", '2');
}, 1000); }, 1000);
} }
...@@ -212,7 +198,7 @@ function initPage(companyInfo) { ...@@ -212,7 +198,7 @@ function initPage(companyInfo) {
data.nssbq = nowdate; data.nssbq = nowdate;
data.checkTime = false; data.checkTime = false;
if (data.pzzlDm === '11602') { if (data.pzzlDm === '11602') {
var List = companyInfo.taxInfos.filter(function(item) { var List = companyInfo.taxInfos.filter(function (item) {
return item.pzzlDm == '10101' || item.pzzlDm == '10102' return item.pzzlDm == '10101' || item.pzzlDm == '10102'
}) })
if (List.length === 0) { if (List.length === 0) {
...@@ -256,7 +242,7 @@ function initPage(companyInfo) { ...@@ -256,7 +242,7 @@ function initPage(companyInfo) {
if (companyInfo) { if (companyInfo) {
url = companyInfo.config.url; url = companyInfo.config.url;
} }
var getTaxDeclaration = function(date, type, refreshSbzt) { var getTaxDeclaration = function (date, type, refreshSbzt) {
// TODO 开始加载等待动画 // TODO 开始加载等待动画
showLoading(); showLoading();
var param = { var param = {
...@@ -275,7 +261,7 @@ function initPage(companyInfo) { ...@@ -275,7 +261,7 @@ function initPage(companyInfo) {
// beforeSend:function(){ // beforeSend:function(){
// myAlert("提示", "正在获取初始化信息", "确定") // myAlert("提示", "正在获取初始化信息", "确定")
// }, // },
}).done(function(data) { }).done(function (data) {
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, "确定")
...@@ -295,23 +281,23 @@ function initPage(companyInfo) { ...@@ -295,23 +281,23 @@ function initPage(companyInfo) {
alertWarning(data.returnMessage); alertWarning(data.returnMessage);
} }
} }
}).always(function(data) { }).always(function (data) {
hideLoading(); hideLoading();
}); });
}; };
/** /**
* 隐藏modal * 隐藏modal
*/ */
var closeModal = function() { var closeModal = function () {
$('#ybName').html(""); $('#ybName').html("");
$('#dName').html(""); $('#dName').html("");
$('#myMask').hide(); $('#myMask').hide();
$('#myModal').hide(); $('#myModal').hide();
} }
var drawGrid = function(bean) { var drawGrid = function (bean) {
//两个表合成一个表 //两个表合成一个表
$.each(bean.financialInfos, function(i, item) { $.each(bean.financialInfos, function (i, item) {
bean.taxInfos.push(item); bean.taxInfos.push(item);
}); });
if (bean.taxInfos.length == 0) { if (bean.taxInfos.length == 0) {
...@@ -328,23 +314,23 @@ function initPage(companyInfo) { ...@@ -328,23 +314,23 @@ function initPage(companyInfo) {
* @param {*} obj * @param {*} obj
* @param {*} dp * @param {*} dp
*/ */
var changeDate = function(obj, dp) { var changeDate = function (obj, dp) {
date = dp.cal.getNewDateStr(); date = dp.cal.getNewDateStr();
nowdate = date; // 给缓存时间赋值 nowdate = date; // 给缓存时间赋值
// 加了一个延时,时间改变后时间框没有收起隐藏就加载数据,没有找到好的解决办法,暂时用延时处理 // 加了一个延时,时间改变后时间框没有收起隐藏就加载数据,没有找到好的解决办法,暂时用延时处理
sbqDate = date sbqDate = date
setTimeout(function() { setTimeout(function () {
getTaxDeclaration(date, "N", '1'); getTaxDeclaration(date, "N", '1');
}, 50); }, 50);
}; };
var refresh = function() { var refresh = function () {
myConfirm("消息", "您确定需要重置申报清册吗?点击确定继续", "确定", "取消", function() { myConfirm("消息", "您确定需要重置申报清册吗?点击确定继续", "确定", "取消", function () {
getTaxDeclaration(nowdate, "Y", '1'); getTaxDeclaration(nowdate, "Y", '1');
}); });
}; };
//申报方式 当iszzsybjc=01同时pzzlDm=010101时,调用改方法 //申报方式 当iszzsybjc=01同时pzzlDm=010101时,调用改方法
var declarationMethod = function(statu) { var declarationMethod = function (statu) {
submitData.ybjcState = statu; submitData.ybjcState = statu;
submitData.value = config.value; submitData.value = config.value;
//需要判断在线还是税表的开关 //需要判断在线还是税表的开关
...@@ -364,8 +350,8 @@ function initPage(companyInfo) { ...@@ -364,8 +350,8 @@ function initPage(companyInfo) {
window.open(config.yearTaxTable, '_blank'); window.open(config.yearTaxTable, '_blank');
} }
Object.defineProperty(mlistener, 'returnSelectRowData', { Object.defineProperty(mlistener, 'returnSelectRowData', {
set: function(val) { set: function (val) {
setTimeout(function() { setTimeout(function () {
getTaxDeclaration(sbqDate, "N", '2'); getTaxDeclaration(sbqDate, "N", '2');
}, 1000); }, 1000);
} }
...@@ -452,7 +438,7 @@ function initPage(companyInfo) { ...@@ -452,7 +438,7 @@ function initPage(companyInfo) {
* @param {} params * @param {} params
*/ */
$("#reset,#reset1").on("click", refresh); $("#reset,#reset1").on("click", refresh);
$("#goRecord").click(function() { $("#goRecord").click(function () {
//TODO 调用备案接口 //TODO 调用备案接口
}); });
// 格式化后台返回的时间 // 格式化后台返回的时间
...@@ -462,7 +448,7 @@ function initPage(companyInfo) { ...@@ -462,7 +448,7 @@ function initPage(companyInfo) {
drawGrid(companyInfo); drawGrid(companyInfo);
} }
//页面出现滚动条,监听滚动条变化将高赋值给模态框 //页面出现滚动条,监听滚动条变化将高赋值给模态框
window.onscroll = function() { window.onscroll = function () {
$("#myModal").css("top", $(document).scrollTop() + 235); $("#myModal").css("top", $(document).scrollTop() + 235);
} }
return { return {
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
var initpage; var initpage;
var yearBblxDm = ['10414', '10420']; var yearBblxDm = ['10414', '10420'];
var ccxwsBblxDm = ['12101']
$(function () { $(function () {
showLoading(); showLoading();
getInitTable(); getInitTable();
...@@ -222,12 +222,18 @@ function initPage(companyInfo) { ...@@ -222,12 +222,18 @@ 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;
if (yearBblxDm.indexOf(data.bblxDm) == -1) { // 财产行为税
window.open(config.ssfwptPage, '_blank'); if (ccxwsBblxDm.indexOf(data.bblxDm) != -1) {
} else { // 测试环境start
var openUrl = config.ccxwsTaxTable + '?djxh='+data.djxh +'&zsDjxh='+data.zsDjxh + '&nsrsbh='+data.nsrsbh + '&nsrmc=' + data.nsrmc + '&operateType=overdue' + '&lybz=online' +'&token=' + data.token //测试环境
// var openUrl = config.ccxwsTaxTable +'?lybz=online' +'&operateType=overdue' + '&sblx=yq' + '&token=' + data.token //正式环境
window.open(openUrl, '_blank');
} else if (yearBblxDm.indexOf(data.bblxDm) != -1){
data.saveUserId = "zxtb_singleReport"; // 用户id data.saveUserId = "zxtb_singleReport"; // 用户id
data.userId = "zxtb"; // userId data.userId = "zxtb"; // userId
window.open(config.yearTaxTable, '_blank'); window.open(config.yearTaxTable, '_blank');
}else {
window.open(config.ssfwptPage, '_blank');
} }
Object.defineProperty(mlistener, 'returnSelectRowData', { Object.defineProperty(mlistener, 'returnSelectRowData', {
set: function (val) { set: function (val) {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* @Param * @Param
* @return * @return
**/ **/
function getUrlParam (name) { function getUrlParam(name) {
var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)'); var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)');
var r = window.location.search.substr(1).match(reg); var r = window.location.search.substr(1).match(reg);
if (r != null) return decodeURIComponent(r[2]); if (r != null) return decodeURIComponent(r[2]);
...@@ -14,24 +14,31 @@ function getUrlParam (name) { ...@@ -14,24 +14,31 @@ function getUrlParam (name) {
// 公共配置 生产环境 // 公共配置 生产环境
var config = { var config = {
environmental:"test",//production 生产 test 测试 environmental:"test",//production 生产 test 测试
webUrl:"/web/online/onlineReport/jsp/", // 预生产环境解开 webUrl:"/web/onlineReport/jsp/", // 预生产环境解开
url:"",// 开发环境配置跨域设置 // 开发环境 url:"",// 开发环境配置跨域设置 // 开发环境
spreadUrl:"",// 局端生产 值为空 其余全部指向在线的域名
ssfwptPage:"/web/online/taxservicedesk/index.html#/taxTableList",// 涉税服务平台填报页面地址
zhsbPage: "/web/online/taxservicedesk/index.html#/syntheticalReport", // 涉税 综合申报页面
taxFormComponent:"/web/taxFormComponent/index.html?param=",// 涉税服务平台填报页面地址
value:'',//加密token value:'',//加密token
nsrsbq:'', nsrsbq:'',
spreadUrl:"",// 局端生产 值为空 其余全部指向在线的域名
ssfwptPage:"/web/online/taxservicedesk/index.html#/taxTableList",// 涉税服务平台填报页面地址 月季报
yearTaxTable:"/web/online/taxservicedesk/index.html#/yearTaxTable",// 涉税服务平台填报页面地址 年报
zhsbPage:"/web/online/taxservicedesk/index.html#/syntheticalReport",// 涉税 综合申报页面
taxFormComponent:"/web/taxFormComponent/index.html?param=",// 涉税服务平台填报页面地址
ccxwsTaxTable:"/web/tax-plugin/index.html",//财产行为税跳转页面
} }
//公共配置 本地环境,测试环境 //公共配置 本地环境,测试环境
/*var config = { // var config = {
environmental:"test",//production 生产 test 测试 // environmental: "test", //production 生产 test 测试
webUrl:"http://localhost:80/web/online/onlineReport/jsp/", // 开发环境 // webUrl: "/web/onlineReport/jsp/", // 预生产环境解开
url:"",// 开发环境配置跨域设置 // 开发环境 // url: "", // 开发环境配置跨域设置 // 开发环境
spreadUrl:"sbjs.tjsat.gov.cn:18001",// 注册地址 // value: '', //加密token
ssfwptPage:"/web/taxservicedesk/index.html#/taxTableList",// 涉税服务平台填报页面地址 // nsrsbq: '',
value:'',//加密token // spreadUrl: "http://sbjs.tjsat.gov.cn", // 局端生产 值为空 其余全部指向在线的域名
}*/ // ssfwptPage: "/web/#/taxTableList", // 涉税服务平台填报页面地址 月季报
// yearTaxTable: "/web/#/yearTaxTable", // 涉税服务平台填报页面地址 年报
// zhsbPage: "/web/#/syntheticalReport", // 涉税 综合申报页面
// taxFormComponent: "/web/taxFormComponent/index.html?param=", // 涉税服务平台填报页面地址
// ccxwsTaxTable:"http://dev-web.htyfw.com.cn/page/property_tax_plugin_web/index.html",//财产行为税跳转页面
// }
// 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')
......
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