Commit 041aca06 authored by 刘明珠's avatar 刘明珠

回退版本

parent e2031c0c
...@@ -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 {
......
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