Commit 0515a9e5 authored by 刘明珠's avatar 刘明珠

Merge branch 'integrateFirst' of http://114.115.168.181/lushihao/zxtb_to_ssfwpt into integrateFirst

parents 75aa0929 d1b463f3
...@@ -2,68 +2,68 @@ ...@@ -2,68 +2,68 @@
<html> <html>
<head> <head>
<mete charset='UTF-8'> <mete charset='UTF-8'>
<title>费申报与缴纳测试入口</title> <title>˰���걨����ɲ������</title>
</head> </head>
<body> <body>
<form id="testForm" action="/online_report/declare/index" method="get"> <form id="testForm" action="/ssfwpt/declare/index" method="get">
<ul> <ul>
<li> <li>
<lable>测试纳税人登记序号:</lable><input type="text" name="djxh" id="form_djxh" /></li> <lable>������˰�˵Ǽ���ţ�</lable><input type="text" name="djxh" id="form_djxh" /></li>
<li><label>纳税人识别号</label><input type="text" name="pzzlDm" id="form_pzzlDm" /></li> <li><label>��˰��ʶ���</label><input type="text" name="pzzlDm" id="form_pzzlDm" /></li>
<li><label>申报期:</label><input type="text" name="sbq" id="form_sbq" /></li> <li><label>�걨�ڣ�</label><input type="text" name="sbq" id="form_sbq" /></li>
</ul> </ul>
</form> </form>
<input type='button' value='按期申报' id='delcareBtn'> <input type='button' value='�����걨' id='delcareBtn'>
<hr/> <hr/>
<br/> <br/>
<form id="amendForm" action="/online_report/amend/index" method="get"> <form id="amendForm" action="/ssfwpt/amend/index" method="get">
<ul> <ul>
<li> <li>
<lable>测试纳税人登记序号:</lable><input type="text" name="djxh" id="form_djxh_amend" /></li> <lable>������˰�˵Ǽ���ţ�</lable><input type="text" name="djxh" id="form_djxh_amend" /></li>
<li><label>纳税人识别号</label><input type="text" name="pzzlDm" id="form_pzzlDm_amend" /></li> <li><label>��˰��ʶ���</label><input type="text" name="pzzlDm" id="form_pzzlDm_amend" /></li>
<li><label>申报期:</label><input type="text" name="sbq" id="form_sbq_amend" /></li> <li><label>�걨�ڣ�</label><input type="text" name="sbq" id="form_sbq_amend" /></li>
</ul> </ul>
</form> </form>
<input type='button' value='更正申报' id='amendBtn'><br/> <input type='button' value='�����걨' id='amendBtn'><br/>
<hr/> <hr/>
<br/> <br/>
<form id="overdueForm" action="/online_report/overdue/index" method="get"> <form id="overdueForm" action="/ssfwpt/overdue/index" method="get">
<ul> <ul>
<li> <li>
<lable>测试纳税人登记序号:</lable><input type="text" name="djxh" id="form_djxh_overdue" /></li> <lable>������˰�˵Ǽ���ţ�</lable><input type="text" name="djxh" id="form_djxh_overdue" /></li>
<li><label>纳税人识别号</label><input type="text" name="pzzlDm" id="form_pzzlDm_overdue" /></li> <li><label>��˰��ʶ���</label><input type="text" name="pzzlDm" id="form_pzzlDm_overdue" /></li>
<li><label>申报期:</label><input type="text" name="sbq" id="form_sbq" /></li> <li><label>�걨�ڣ�</label><input type="text" name="sbq" id="form_sbq" /></li>
</ul> </ul>
</form> </form>
<input type='button' value='逾期申报' id='overdueBtn'><br/> <input type='button' value='�����걨' id='overdueBtn'><br/>
<hr/> <hr/>
<form id="cancellationForm" action="/online_report/overdue/index" method="get"> <form id="cancellationForm" action="/ssfwpt/overdue/index" method="get">
<ul> <ul>
<li> <li>
<lable>测试纳税人登记序号:</lable><input type="text" name="djxh" id="form_djxh_cancellation" /></li> <lable>������˰�˵Ǽ���ţ�</lable><input type="text" name="djxh" id="form_djxh_cancellation" /></li>
<li><label>纳税人识别号</label><input type="text" name="pzzlDm" id="form_pzzlDm_cancellation" /></li> <li><label>��˰��ʶ���</label><input type="text" name="pzzlDm" id="form_pzzlDm_cancellation" /></li>
<li><label>申报期:</label><input type="text" name="sbq" id="form_sbq" /></li> <li><label>�걨�ڣ�</label><input type="text" name="sbq" id="form_sbq" /></li>
</ul> </ul>
</form> </form>
<input type='button' value='清册注销' id='cancellationBtn'><br/> <input type='button' value='���ע��' id='cancellationBtn'><br/>
<script> <script>
// document.getElementById("overdueBtn").onclick = function() { // document.getElementById("overdueBtn").onclick = function() {
// document.getElementById("overdueForm").action = "/online_report/overdue"; // document.getElementById("overdueForm").action = "/ssfwpt/overdue";
// document.getElementById("overdueForm").submit(); // document.getElementById("overdueForm").submit();
// } // }
// document.getElementById("delcareBtn").onclick = function() { // document.getElementById("delcareBtn").onclick = function() {
// document.getElementById("testForm").action = "/online_report/declare"; // document.getElementById("testForm").action = "/ssfwpt/declare";
// document.getElementById("testForm").submit(); // document.getElementById("testForm").submit();
// } // }
// document.getElementById("amendBtn").onclick = function(e) { // document.getElementById("amendBtn").onclick = function(e) {
// document.getElementById("amendForm").action = "/online_report/amend"; // document.getElementById("amendForm").action = "/ssfwpt/amend";
// document.getElementById("amendForm").submit(); // document.getElementById("amendForm").submit();
// } // }
// document.getElementById("cancellationBtn").onclick = function(e) { // document.getElementById("cancellationBtn").onclick = function(e) {
// document.getElementById("cancellationForm").action = "/online_report/cancellation"; // document.getElementById("cancellationForm").action = "/ssfwpt/cancellation";
// document.getElementById("cancellationForm").submit(); // document.getElementById("cancellationForm").submit();
// } // }
</script> </script>
...@@ -73,40 +73,40 @@ ...@@ -73,40 +73,40 @@
<script> <script>
// localStorage.setItem("url", "http://localhost:7070"); // localStorage.setItem("url", "http://localhost:7070");
// localStorage.setItem("url", "http://sbjs.tjsat.gov.cn:18090"); // localStorage.setItem("url", "http://sbjs.tjsat.gov.cn:18090");
// //��˰
localStorage.setItem("url", "http://192.168.106.17:8091"); localStorage.setItem("url", "http://192.168.106.17:8091");
// localStorage.setItem("url", "http://192.168.106.46:8091"); // localStorage.setItem("url", "http://192.168.106.46:8091");
var url = localStorage.getItem("url"); var url = "http://192.168.105.153:8091";
$(function(){ $(function(){
//按期申 //�����걨
var btnObj1 = $("#delcareBtn"); var btnObj1 = $("#delcareBtn");
var djxhNumber1 = $("#form_djxh") var djxhNumber1 = $("#form_djxh")
var sbh1 = $("#form_pzzlDm"); var sbh1 = $("#form_pzzlDm");
declareFun(btnObj1, djxhNumber1, sbh1, "declare"); declareFun(btnObj1, djxhNumber1, sbh1, "declare");
//更正申 //�����걨
var btnObj2 = $("#amendBtn"); var btnObj2 = $("#amendBtn");
var djxhNumber2 = $("#form_djxh_amend"); var djxhNumber2 = $("#form_djxh_amend");
var sbh2 = $("#form_pzzlDm_amend"); var sbh2 = $("#form_pzzlDm_amend");
declareFun(btnObj2, djxhNumber2, sbh2, "amend"); declareFun(btnObj2, djxhNumber2, sbh2, "amend");
//逾期申 //�����걨
var btnObj3 = $("#overdueBtn"); var btnObj3 = $("#overdueBtn");
var djxhNumber3 = $("#form_djxh_overdue"); var djxhNumber3 = $("#form_djxh_overdue");
var sbh3 = $("#form_pzzlDm_overdue"); var sbh3 = $("#form_pzzlDm_overdue");
declareFun(btnObj3, djxhNumber3, sbh3, "overdue"); declareFun(btnObj3, djxhNumber3, sbh3, "overdue");
//清册注销 //���ע��
var btnObj4 = $("#cancellationBtn"); var btnObj4 = $("#cancellationBtn");
var djxhNumber4 = $("#form_djxh_cancellation"); var djxhNumber4 = $("#form_djxh_cancellation");
var sbh4 = $("#form_pzzlDm_cancellation"); var sbh4 = $("#form_pzzlDm_cancellation");
declareFun(btnObj4, djxhNumber4, sbh4, "cancellation"); declareFun(btnObj4, djxhNumber4, sbh4, "cancellation");
//四个按钮请求的公共方法 //�ĸ���ť����Ĺ�������
function declareFun (btnObj, djxhNumber, sbh, param) { function declareFun (btnObj, djxhNumber, sbh, param) {
btnObj.click(function(){ btnObj.click(function(){
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: url+"/ssfwpt/" + param + '/index', url: url+"/ssfwpt/" + param + '/index',
dataType: "json", // 请求方式为jsonp dataType: "json", // ����ʽΪjsonp
data: { data: {
djxh: djxhNumber.val(), djxh: djxhNumber.val(),
nsrsbh: sbh.val(), nsrsbh: sbh.val(),
...@@ -114,10 +114,10 @@ ...@@ -114,10 +114,10 @@
sbsq: '', sbsq: '',
pzzlDm: '' pzzlDm: ''
}, },
success: function (data) { //客户端jquery预先定义好的callback函数,成功获取跨域服务器上的json数据后,会动态执行这个callback函数 success: function (data) { //�ͻ���jqueryԤ�ȶ���õ�callback�������ɹ���ȡ����������ϵ�json���ݺ󣬻ᶯִ̬�����callback����
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;
}else if (param == "declare") { }else if (param == "declare") {
window.location.href = "/jsp/declare/index.html?djxh="+djxhNumber.val()+"&nsrsbh="+sbh.val(); window.location.href = "/jsp/declare/index.html?djxh="+djxhNumber.val()+"&nsrsbh="+sbh.val();
...@@ -131,7 +131,7 @@ ...@@ -131,7 +131,7 @@
} }
}, },
error: function(xhr){ error: function(xhr){
//jsonp 方式此方法不被触发 //jsonp ��ʽ�˷�����������
console.log("=======error======================",xhr) console.log("=======error======================",xhr)
} }
}) })
......
...@@ -73,13 +73,15 @@ ...@@ -73,13 +73,15 @@
<input type='hidden' name='data' value="${token}" id="token"> <input type='hidden' name='data' value="${token}" id="token">
</div> </div>
</div> </div>
</div> </div>
<script src="/web/onlineReport/static/tools/js/jquery-1.11.3.js?v=1.1"></script> <script src="/web/onlineReport/static/tools/js/jquery-1.11.3.js?v=1.1"></script>
<script src="/web/onlineReport/static/js/tax/tool.js"></script>
<script src="/web/onlineReport/static/tools/js/jquery.nicescroll.js?v=1.1"></script> <script src="/web/onlineReport/static/tools/js/jquery.nicescroll.js?v=1.1"></script>
<script src="/web/onlineReport/static/tools/js/bootstrap.js?v=1.1"></script> <script src="/web/onlineReport/static/tools/js/bootstrap.js?v=1.1"></script>
<script src="/web/onlineReport/static/tools/js/encapsulation.js?v=1.3"></script> <script src="/web/onlineReport/static/tools/js/encapsulation.js?v=1.3"></script>
<script src="/web/onlineReport/static/tools/js/minScroll.js?v=1.1"></script> <script src="/web/onlineReport/static/tools/js/minScroll.js?v=1.1"></script>
<script src="/web/onlineReport/static/tools/js/My97DatePicker/WdatePicker.js?v=1.1"></script> <script src="/web/onlineReport/static/tools/js/My97DatePicker/WdatePicker.js?v=1.1"></script>
<script src="/web/onlineReport/static/biz/getJgxxRyxx.js?v=1.0"></script>
<script src="/web/onlineReport/static/biz/amend_grid.js?v=1.0"></script> <script src="/web/onlineReport/static/biz/amend_grid.js?v=1.0"></script>
<script> <script>
// <!-- // 使用 el 表达式,将返回的信息写到此处,然后调用页面绘制方法绘制页面 // <!-- // 使用 el 表达式,将返回的信息写到此处,然后调用页面绘制方法绘制页面
...@@ -93,37 +95,98 @@ ...@@ -93,37 +95,98 @@
// --> // -->
var initpage; var initpage;
$(function(){ $(function(){
// getJgxxRyxx();
// //
var url = localStorage.getItem("url"); var url = "http://192.168.105.153:8091";
function GetQueryValue(queryName) { showLoading();
var query = decodeURI(window.location.search.substring(1));
var vars = query.split("&");
for (var i = 0; i < vars.length; i++) {
var pair = vars[i].split("=");
if (pair[0] == queryName) { return pair[1]; }
}
return null;
}
$.ajax({ $.ajax({
type: "GET", type: "post",
url: url + "/ssfwpt/amend/index", url: url + "/ssfwpt/amend/index",
dataType: "json", // 请求方式为jsonp dataType: "json", // 请求方式为jsonp
// async: false, // async: false,
data: { data: {
djxh: GetQueryValue("djxh"), djxh: getUrlParam("djxh"),
nsrsbh: GetQueryValue("nsrsbh"), token: getUrlParam("token"),
token: '',
sbsq: '', sbsq: '',
pzzlDm: '' pzzlDm: ''
}, },
success: function (data) { //客户端jquery预先定义好的callback函数,成功获取跨域服务器上的json数据后,会动态执行这个callback函数 success: function (data) { //客户端jquery预先定义好的callback函数,成功获取跨域服务器上的json数据后,会动态执行这个callback函数
//el表达式变jq //el表达式变jq
// $("#token").attr("value",""); // $("#token").attr("value","");
hideLoading();
var companyInfo = data; var companyInfo = data;
$("#djxh").attr("value", companyInfo.djxh); $("#djxh").attr("value", companyInfo.djxh);
if (companyInfo.success) { if (companyInfo.success) {
companyInfo.bean.gzTaxInfos.push(
{
"sbxxId":"20200612181124bda9492c2fe34faeb3f4f686260363eb",
"ssdabh":"91120225MA05KP981U",
"djxh":"10111258010000000525",
"nsrsbq":"202006",
"nsrmc":"",
"nsqxDm":"06",
"zsxmDm":"10101",
"bblxDm":"10101",
"bblxMc":"增值税纳税申报表(适用于一般纳税人)",
"sksssjq":"20200501",
"sksssjz":"20200531",
"multiPatch":"N",
"nsrsbh":"91120225MA05KP981U",
"sbrq":null,
"sbzt":"N",
"jkzt":"N",
"jkrq":null,
"bczt":"Y",
"sourceFlag":"ssfwpt_sbzj",
"pcDm":1,
"flag":"FLAG_91120225MA05KP981U_10111258010000000525_20200501_20200531_10101_10101_1",
"type":"taxName",
"flKey":"1",
"zgswskfjDm":null,
"hyDm":null,
"sfyczb":"N",
"sbbz":"3",
"qsbz":"N",
"sbjg":null,
"tsxx":null,
"se":null,
"swjgmc":null,
"gzFlag":"0",
"sbuuid":"",
"pzxh":"",
"sbrq1":"",
"yzpzzlDm":"",
"ybtse":"",
"kjzd":"",
"checkTime":false,
"gdsbz":"G",
"initTableArrs":"",
"initTableData":"",
"iszzsybjc":"01",
"nssbq":"202006",
"operateType":"",
"pzzlDm":"10101",
"pzzlMc":"增值税纳税申报表(适用于一般纳税人)",
"sbbsx":"06",
"sbqx":"2020-07-15",
"sssqQ":"2020-05-01",
"sssqZ":"2020-05-31",
"token":"",
"uuId":"202006121953128099738d26dc480497b6ed2c09183acf",
"ybjcState":"N",
"sbbdm":null,
"skssqq":null,
"skssqz":null,
"gzcs":null,
"nsqxdm":null,
"nssbqq2":null,
"nssbqz2":null
}
);
companyInfo.bean.config = config
initpage = initPage(companyInfo.bean); initpage = initPage(companyInfo.bean);
} else { } else {
hideLoading();
alertWarning("请求失败!"); alertWarning("请求失败!");
// 弹出错误对话框 // 弹出错误对话框
} }
......
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
<script src="/web/onlineReport/static/tools/js/encapsulation.js?v=1.2"></script> <script src="/web/onlineReport/static/tools/js/encapsulation.js?v=1.2"></script>
<script src="/web/onlineReport/static/tools/js/minScroll.js?v=1.1"></script> <script src="/web/onlineReport/static/tools/js/minScroll.js?v=1.1"></script>
<script src="/web/onlineReport/static/tools/js/My97DatePicker/WdatePicker.js?v=1.1"></script> <script src="/web/onlineReport/static/tools/js/My97DatePicker/WdatePicker.js?v=1.1"></script>
<script src="/web/onlineReport/static/biz/getJgxxRyxx.js?v=2.0"></script>
<script src="/web/onlineReport/static/biz/cancellation_grid.js?v=1.0"></script> <script src="/web/onlineReport/static/biz/cancellation_grid.js?v=1.0"></script>
<script> <script>
// // <!-- // 使用 el 表达式,将返回的信息写到此处,然后调用页面绘制方法绘制页面 // // <!-- // 使用 el 表达式,将返回的信息写到此处,然后调用页面绘制方法绘制页面
...@@ -73,34 +74,28 @@ ...@@ -73,34 +74,28 @@
var initpage; var initpage;
$(function(){ $(function(){
// //
var url = localStorage.getItem("url"); // getJgxxRyxx();
function GetQueryValue(queryName) { var url = "http://192.168.105.153:8091";
var query = decodeURI(window.location.search.substring(1)); showLoading();
var vars = query.split("&");
for (var i = 0; i < vars.length; i++) {
var pair = vars[i].split("=");
if (pair[0] == queryName) { return pair[1]; }
}
return null;
}
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: url + "/ssfwpt/cancellation/index", url: url + "/ssfwpt/cancellation/index",
dataType: "json", // 请求方式为jsonp dataType: "json", // 请求方式为jsonp
// async: false, // async: false,
data: { data: {
djxh: GetQueryValue("djxh"), djxh: getUrlParam("djxh"),
nsrsbh: GetQueryValue("nsrsbh"), token: getUrlParam("token"),
token: '',
sbsq: '', sbsq: '',
pzzlDm: '' pzzlDm: ''
}, },
success: function (data) { //客户端jquery预先定义好的callback函数,成功获取跨域服务器上的json数据后,会动态执行这个callback函数 success: function (data) { //客户端jquery预先定义好的callback函数,成功获取跨域服务器上的json数据后,会动态执行这个callback函数
hideLoading();
//el表达式变jq //el表达式变jq
// $("#token").attr("value",""); // $("#token").attr("value","");
var companyInfo = data; var companyInfo = data;
$("#djxh").attr("value", companyInfo.djxh); $("#djxh").attr("value", companyInfo.djxh);
if (companyInfo.success) { if (companyInfo.success) {
companyInfo.bean.config = config
initpage = initPage(companyInfo.bean); initpage = initPage(companyInfo.bean);
$("#getInputValue").on("focus", function() { $("#getInputValue").on("focus", function() {
WdatePicker({ WdatePicker({
...@@ -112,6 +107,7 @@ ...@@ -112,6 +107,7 @@
}); });
}); });
} else { } else {
hideLoading();
alertWarning("请求失败!"); alertWarning("请求失败!");
// 弹出错误对话框 // 弹出错误对话框
} }
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<title></title> <title></title>
<!-- 样式 --> <!-- 样式 -->
<link href="/web/onlineReport/static/resources/gc.spread.sheets.excel2013white.12.0.0.css" rel="stylesheet"> <link href="/web/onlineReport/static/resources/gc.spread.sheets.excel2013white.12.0.0.css" rel="stylesheet">
<link href="/web/onlineReport/static/css/style.css?v=12" rel="stylesheet"> <link href="/web/onlineReport/static/css/style.css?v=13" rel="stylesheet">
<link href="/web/onlineReport/static/tools/js/My97DatePicker/skin/WdatePicker.css" rel="stylesheet" /> <link href="/web/onlineReport/static/tools/js/My97DatePicker/skin/WdatePicker.css" rel="stylesheet" />
<script src="/web/onlineReport/static/js/jquery.min.js"></script> <script src="/web/onlineReport/static/js/jquery.min.js"></script>
<!-- 工程文件 --> <!-- 工程文件 -->
...@@ -42,7 +42,14 @@ ...@@ -42,7 +42,14 @@
<body class="body"> <body class="body">
<div class="header"> <div class="header">
<div class="title"></div> <div class="title">
<p>
<span class="caption">当前报表:</span>
<span class="name"></span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span class="caption">所属期:</span>
<span class="sssj"></span>
</p>
</div>
<div class="button-group"> <div class="button-group">
<button onClick="submitData()" class="htbutton"> 保存 </button> <button onClick="submitData()" class="htbutton"> 保存 </button>
</div> </div>
...@@ -50,7 +57,7 @@ ...@@ -50,7 +57,7 @@
</div> </div>
<div class="container"> <div class="container">
<div class="left-bar"> <div class="left-bar">
<div class="left-title"><span>申报表列表</span></div> <div class="left-title"><span>报表清单</span></div>
<div class="left"> <div class="left">
</div> </div>
</div> </div>
...@@ -144,7 +151,7 @@ ...@@ -144,7 +151,7 @@
<input type="hidden" name="data" value="" id="GLOBAL_INITJSON"/> <input type="hidden" name="data" value="" id="GLOBAL_INITJSON"/>
</form> </form>
<script> <script>
// var URL = localStorage.getItem("url"); // var URL = "http://192.168.105.153:8091"
var URL = "http://192.168.105.153:8091" var URL = "http://192.168.105.153:8091"
var GLOBAL_INITJSON,GLOBAL_JSON,GLOBAL_CACHE_DATA,GLOBAL_TABLE_SPECIAL,GLOBAL_TABLE_FP,gzQtxx; var GLOBAL_INITJSON,GLOBAL_JSON,GLOBAL_CACHE_DATA,GLOBAL_TABLE_SPECIAL,GLOBAL_TABLE_FP,gzQtxx;
var param = GetQueryValue("falg"); var param = GetQueryValue("falg");
...@@ -163,6 +170,39 @@ ...@@ -163,6 +170,39 @@
} }
return null; return null;
} }
function formatDate(date){
var re = /^\d+(?=\.{0,1}\d+$|$)/;
if (date != "") {
// 是纯数字
if (re.test(date)) {
// 长度为6 比如 201802
if (date.length == 6) {
var y = date.slice(0, 4);
var m = date.slice(4, 6);
date = y + '年' + m + '月';
} else {
// 长度为8 比如 20180219
var y = date.slice(0, 4);
var m = date.slice(4, 6);
var d = date.slice(6, 8);
date = y + '年' + m + '月' + d + '日';
}
}else{
var eDates = new Date(date);
var y = eDates.getFullYear();
var m = eDates.getMonth() + 1;
if(m<10){
m = "0"+m;
}
var d = eDates.getDate();
if( d<10){
d = "0"+ d;
}
date = y + '年' + m + '月' + d + '日';
}
}
return date;
}
$(function(){ $(function(){
var iframeUrl = window.location.search.split('?')[1]; var iframeUrl = window.location.search.split('?')[1];
var csList = iframeUrl.split('&'); var csList = iframeUrl.split('&');
...@@ -174,6 +214,8 @@ ...@@ -174,6 +214,8 @@
} else { } else {
param = localStorage.getItem("data") param = localStorage.getItem("data")
} }
var sksssjqz = formatDate(JSON.parse(param).sksssjq) +"&nbsp;&nbsp;至&nbsp;&nbsp;"+ formatDate(JSON.parse(param).sksssjz)
$(".header span.sssj").html(sksssjqz);
// window.parent.postMessage({ cmd: 'zxtb' }, '*'); // window.parent.postMessage({ cmd: 'zxtb' }, '*');
$.ajax({ $.ajax({
type: "POST", type: "POST",
...@@ -185,7 +227,7 @@ ...@@ -185,7 +227,7 @@
data: param data: param
}, },
success: function (data) { success: function (data) {
$(".header .title").html(data.pzzlMc); $(".header span.name").html(data.pzzlMc);
$("title").html(data.pzzlMc) $("title").html(data.pzzlMc)
if (data.bean) { if (data.bean) {
GLOBAL_INITJSON = data.bean.data ? JSON.parse(data.bean.data) : {}; GLOBAL_INITJSON = data.bean.data ? JSON.parse(data.bean.data) : {};
...@@ -229,9 +271,19 @@ ...@@ -229,9 +271,19 @@
$breakbar.on("click", function () { $breakbar.on("click", function () {
if ($container.is(".full")) { if ($container.is(".full")) {
$container.removeClass("full"); $container.removeClass("full");
$(".header").css({
marginTop:"17px",
position:"fixed"
})
$breakbar.text("<"); $breakbar.text("<");
} else { } else {
$container.addClass("full"); $container.addClass("full");
$(".header").css({
marginLeft:"17px",
position:"initial",
marginTop:"0px",
})
$breakbar.text(">"); $breakbar.text(">");
} }
if (spread) { if (spread) {
......
...@@ -83,11 +83,13 @@ ...@@ -83,11 +83,13 @@
</body> </body>
<script src="/web/onlineReport/static/tools/js/jquery-1.11.3.js?v=1.1"></script> <script src="/web/onlineReport/static/tools/js/jquery-1.11.3.js?v=1.1"></script>
<script src="/web/onlineReport/static/js/tax/tool.js"></script>
<script src="/web/onlineReport/static/tools/js/jquery.nicescroll.js?v=1.1"></script> <script src="/web/onlineReport/static/tools/js/jquery.nicescroll.js?v=1.1"></script>
<script src="/web/onlineReport/static/tools/js/bootstrap.js?v=1.1"></script> <script src="/web/onlineReport/static/tools/js/bootstrap.js?v=1.1"></script>
<script src="/web/onlineReport/static/tools/js/encapsulation.js?v=1.3"></script> <script src="/web/onlineReport/static/tools/js/encapsulation.js?v=1.3"></script>
<script src="/web/onlineReport/static/tools/js/minScroll.js?v=1.1"></script> <script src="/web/onlineReport/static/tools/js/minScroll.js?v=1.1"></script>
<script src="/web/onlineReport/static/tools/js/My97DatePicker/WdatePicker.js?v=1.1"></script> <script src="/web/onlineReport/static/tools/js/My97DatePicker/WdatePicker.js?v=1.1"></script>
<script src="/web/onlineReport/static/biz/getJgxxRyxx.js?v=2.0"></script>
<script src="/web/onlineReport/static/biz/declare_grid.js?v=1.0"></script> <script src="/web/onlineReport/static/biz/declare_grid.js?v=1.0"></script>
<script> <script>
// <!-- // 使用 el 表达式,将返回的信息写到此处,然后调用页面绘制方法绘制页面 // <!-- // 使用 el 表达式,将返回的信息写到此处,然后调用页面绘制方法绘制页面
...@@ -111,29 +113,22 @@ ...@@ -111,29 +113,22 @@
var initpage; var initpage;
$(function(){ $(function(){
// //
var url = localStorage.getItem("url"); // getJgxxRyxx();
function GetQueryValue(queryName) { var url = "http://192.168.105.153:8091";
var query = decodeURI(window.location.search.substring(1)); showLoading();
var vars = query.split("&");
for (var i = 0; i < vars.length; i++) {
var pair = vars[i].split("=");
if (pair[0] == queryName) { return pair[1]; }
}
return null;
}
$.ajax({ $.ajax({
type: "GET", type: "post",
url: url + "/ssfwpt/declare/index", url: url + "/ssfwpt/declare/index",
dataType: "json", // 请求方式为jsonp dataType: "json", // 请求方式为jsonp
// async: false, // async: false,
data: { data: {
djxh: GetQueryValue("djxh"), djxh: getUrlParam("djxh"),
nsrsbh: GetQueryValue("nsrsbh"), token: getUrlParam("token"),
token: '',
sbsq: '', sbsq: '',
pzzlDm: '' pzzlDm: ''
}, },
success: function (data) { //客户端jquery预先定义好的callback函数,成功获取跨域服务器上的json数据后,会动态执行这个callback函数 success: function (data) { //客户端jquery预先定义好的callback函数,成功获取跨域服务器上的json数据后,会动态执行这个callback函数
hideLoading();
//el表达式变jq //el表达式变jq
// $("#token").attr("value",""); // $("#token").attr("value","");
if (data.success) { if (data.success) {
...@@ -143,9 +138,12 @@ ...@@ -143,9 +138,12 @@
return return
} }
} }
var companyInfo = data; var companyInfo = data;
companyInfo.config = config
$("#djxh").attr("value", companyInfo.djxh); $("#djxh").attr("value", companyInfo.djxh);
if (companyInfo.success) { if (companyInfo.success) {
companyInfo.bean.config = config
initpage = initPage(companyInfo.bean); initpage = initPage(companyInfo.bean);
$("#getInputValue").on("focus", function() { $("#getInputValue").on("focus", function() {
WdatePicker({ WdatePicker({
...@@ -162,6 +160,7 @@ ...@@ -162,6 +160,7 @@
} }
}, },
error: function(xhr){ error: function(xhr){
hideLoading();
//jsonp 方式此方法不被触发 //jsonp 方式此方法不被触发
console.log("=======error======================") console.log("=======error======================")
} }
......
...@@ -59,8 +59,15 @@ ...@@ -59,8 +59,15 @@
</head> </head>
<body class="body"> <body class="body">
<div class="header"> <div class="header">、、
<div class="title"></div> <div class="title">
<p>
<span class="caption">当前报表:</span>
<span class="name"></span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span class="caption">所属期:</span>
<span class="sssj"></span>
</p>
</div>
<div class="button-group"> <div class="button-group">
<button onClick="submitData()" class="htbutton"> 保存 </button> <button onClick="submitData()" class="htbutton"> 保存 </button>
</div> </div>
...@@ -68,7 +75,7 @@ ...@@ -68,7 +75,7 @@
</div> </div>
<div class="container"> <div class="container">
<div class="left-bar"> <div class="left-bar">
<div class="left-title"><span>申报表列表</span></div> <div class="left-title"><span>报表清单</span></div>
<div class="left"> <div class="left">
</div> </div>
</div> </div>
...@@ -482,7 +489,7 @@ ...@@ -482,7 +489,7 @@
</div> </div>
<div id="resultFloat" title="查看校验结果" class="htbutton">查看校验</div> <div id="resultFloat" title="查看校验结果" class="htbutton">查看校验</div>
<script> <script>
var URL = localStorage.getItem("url"); var URL = "http://192.168.105.153:8091";
var GLOBAL_INITJSON,GLOBAL_JSON,GLOBAL_CACHE_DATA,GLOBAL_TABLE_SPECIAL,GLOBAL_TABLE_FP,ifGZflag; var GLOBAL_INITJSON,GLOBAL_JSON,GLOBAL_CACHE_DATA,GLOBAL_TABLE_SPECIAL,GLOBAL_TABLE_FP,ifGZflag;
var param = GetQueryValue("falg"); var param = GetQueryValue("falg");
var address; var address;
...@@ -500,17 +507,62 @@ ...@@ -500,17 +507,62 @@
} }
return null; return null;
} }
function formatDate(date){
var re = /^\d+(?=\.{0,1}\d+$|$)/;
if (date != "") {
// 是纯数字
if (re.test(date)) {
// 长度为6 比如 201802
if (date.length == 6) {
var y = date.slice(0, 4);
var m = date.slice(4, 6);
date = y + '年' + m + '月';
} else {
// 长度为8 比如 20180219
var y = date.slice(0, 4);
var m = date.slice(4, 6);
var d = date.slice(6, 8);
date = y + '年' + m + '月' + d + '日';
}
}else{
var eDates = new Date(date);
var y = eDates.getFullYear();
var m = eDates.getMonth() + 1;
if(m<10){
m = "0"+m;
}
var d = eDates.getDate();
if( d<10){
d = "0"+ d;
}
date = y + '年' + m + '月' + d + '日';
}
}
return date;
}
$(function(){ $(function(){
var iframeUrl = window.location.search.split('?')[1];
var csList = iframeUrl.split('&');
var param = ""
if (csList.length > 1) {
var openData = csList[1].split('=')[1]
param = decodeURI(openData)
} else {
param = localStorage.getItem("data")
}
var sksssjqz = formatDate(JSON.parse(param).sksssjq) +"&nbsp;&nbsp;至&nbsp;&nbsp;"+ formatDate(JSON.parse(param).sksssjz)
$(".header span.sssj").html(sksssjqz);
$.ajax({ $.ajax({
type: "POST", type: "POST",
url: URL + "/ssfwpt/" + address, url: URL + "/ssfwpt/" + address,
async:false, async:false,
dataType: "json", // 请求方式为jsonp dataType: "json", // 请求方式为jsonp
data: { data: {
data: localStorage.getItem("data") data: param
}, },
success: function (data) { success: function (data) {
$(".header .title").html(data.pzzlMc); $(".header span.name").html(data.pzzlMc);
$("title").html(data.pzzlMc) $("title").html(data.pzzlMc)
if (data.bean) { if (data.bean) {
GLOBAL_INITJSON = data.bean.data ? JSON.parse(data.bean.data) : {}; GLOBAL_INITJSON = data.bean.data ? JSON.parse(data.bean.data) : {};
......
...@@ -60,7 +60,14 @@ ...@@ -60,7 +60,14 @@
<body class="body"> <body class="body">
<div class="header"> <div class="header">
<div class="title"></div> <div class="title">
<p>
<span class="caption">当前报表:</span>
<span class="name"></span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span class="caption">所属期:</span>
<span class="sssj"></span>
</p>
</div>
<div class="button-group"> <div class="button-group">
<button onClick="submitData()" class="htbutton"> 保存 </button> <button onClick="submitData()" class="htbutton"> 保存 </button>
</div> </div>
...@@ -68,7 +75,7 @@ ...@@ -68,7 +75,7 @@
</div> </div>
<div class="container"> <div class="container">
<div class="left-bar"> <div class="left-bar">
<div class="left-title"><span>申报表列表</span></div> <div class="left-title"><span>报表清单</span></div>
<div class="left"> <div class="left">
</div> </div>
</div> </div>
...@@ -253,7 +260,7 @@ ...@@ -253,7 +260,7 @@
</div> </div>
<div id="resultFloat" title="查看校验结果" class="htbutton">查看校验</div> <div id="resultFloat" title="查看校验结果" class="htbutton">查看校验</div>
<script> <script>
var URL = localStorage.getItem("url"); var URL = "http://192.168.105.153:8091";
var GLOBAL_INITJSON,GLOBAL_JSON,GLOBAL_CACHE_DATA,GLOBAL_TABLE_SPECIAL,GLOBAL_TABLE_FP,isGZflag; var GLOBAL_INITJSON,GLOBAL_JSON,GLOBAL_CACHE_DATA,GLOBAL_TABLE_SPECIAL,GLOBAL_TABLE_FP,isGZflag;
var param = GetQueryValue("falg"); var param = GetQueryValue("falg");
var address; var address;
...@@ -271,17 +278,62 @@ ...@@ -271,17 +278,62 @@
} }
return null; return null;
} }
function formatDate(date){
var re = /^\d+(?=\.{0,1}\d+$|$)/;
if (date != "") {
// 是纯数字
if (re.test(date)) {
// 长度为6 比如 201802
if (date.length == 6) {
var y = date.slice(0, 4);
var m = date.slice(4, 6);
date = y + '年' + m + '月';
} else {
// 长度为8 比如 20180219
var y = date.slice(0, 4);
var m = date.slice(4, 6);
var d = date.slice(6, 8);
date = y + '年' + m + '月' + d + '日';
}
}else{
var eDates = new Date(date);
var y = eDates.getFullYear();
var m = eDates.getMonth() + 1;
if(m<10){
m = "0"+m;
}
var d = eDates.getDate();
if( d<10){
d = "0"+ d;
}
date = y + '年' + m + '月' + d + '日';
}
}
return date;
}
$(function(){ $(function(){
var iframeUrl = window.location.search.split('?')[1];
var csList = iframeUrl.split('&');
var param = ""
if (csList.length > 1) {
var openData = csList[1].split('=')[1]
param = decodeURI(openData)
} else {
param = localStorage.getItem("data")
}
var sksssjqz = formatDate(JSON.parse(param).sksssjq) +"&nbsp;&nbsp;至&nbsp;&nbsp;"+ formatDate(JSON.parse(param).sksssjz)
$(".header span.sssj").html(sksssjqz);
$.ajax({ $.ajax({
type: "POST", type: "POST",
url: URL + "/ssfwpt/" + address, url: URL + "/ssfwpt/" + address,
async:false, async:false,
dataType: "json", // 请求方式为jsonp dataType: "json", // 请求方式为jsonp
data: { data: {
data: localStorage.getItem("data") data:param
}, },
success: function (data) { success: function (data) {
$(".header .title").html(data.pzzlMc); $(".header span.name").html(data.pzzlMc);
$("title").html(data.pzzlMc) $("title").html(data.pzzlMc)
if (data.bean) { if (data.bean) {
GLOBAL_INITJSON = data.bean.data ? JSON.parse(data.bean.data) : {}; GLOBAL_INITJSON = data.bean.data ? JSON.parse(data.bean.data) : {};
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<script src="/web/onlineReport/static/tools/js/encapsulation.js?v=1.3"></script> <script src="/web/onlineReport/static/tools/js/encapsulation.js?v=1.3"></script>
<script src="/web/onlineReport/static/biz/error.js?v=1.1"></script> <script src="/web/onlineReport/static/biz/error.js?v=1.1"></script>
<script> <script>
var URL = localStorage.getItem("url"); var URL = "http://192.168.105.153:8091";
var param = GetQueryValue("falg"); var param = GetQueryValue("falg");
var address; var address;
if (param == "declare") { if (param == "declare") {
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<title>税费申报与缴纳测试入口</title> <title>税费申报与缴纳测试入口</title>
</head> </head>
<body> <body>
<form id="testForm" action="/online_report/declare/index" method="get"> <form id="testForm" action="/ssfwpt/declare/index" method="get">
<ul> <ul>
<li> <li>
<lable>测试纳税人登记序号:</lable><input type="text" name="djxh" id="form_djxh" /></li> <lable>测试纳税人登记序号:</lable><input type="text" name="djxh" id="form_djxh" /></li>
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<input type='button' value='按期申报' id='delcareBtn'> <input type='button' value='按期申报' id='delcareBtn'>
<hr/> <hr/>
<br/> <br/>
<form id="amendForm" action="/online_report/amend/index" method="get"> <form id="amendForm" action="/ssfwpt/amend/index" method="get">
<ul> <ul>
<li> <li>
<lable>测试纳税人登记序号:</lable><input type="text" name="djxh" id="form_djxh_amend" /></li> <lable>测试纳税人登记序号:</lable><input type="text" name="djxh" id="form_djxh_amend" /></li>
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
<hr/> <hr/>
<br/> <br/>
<form id="overdueForm" action="/online_report/overdue/index" method="get"> <form id="overdueForm" action="/ssfwpt/overdue/index" method="get">
<ul> <ul>
<li> <li>
<lable>测试纳税人登记序号:</lable><input type="text" name="djxh" id="form_djxh_overdue" /></li> <lable>测试纳税人登记序号:</lable><input type="text" name="djxh" id="form_djxh_overdue" /></li>
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
<input type='button' value='逾期申报' id='overdueBtn'><br/> <input type='button' value='逾期申报' id='overdueBtn'><br/>
<hr/> <hr/>
<form id="cancellationForm" action="/online_report/overdue/index" method="get"> <form id="cancellationForm" action="/ssfwpt/overdue/index" method="get">
<ul> <ul>
<li> <li>
<lable>测试纳税人登记序号:</lable><input type="text" name="djxh" id="form_djxh_cancellation" /></li> <lable>测试纳税人登记序号:</lable><input type="text" name="djxh" id="form_djxh_cancellation" /></li>
...@@ -53,19 +53,19 @@ ...@@ -53,19 +53,19 @@
<input type='button' value='清册注销' id='cancellationBtn'><br/> <input type='button' value='清册注销' id='cancellationBtn'><br/>
<script> <script>
document.getElementById("overdueBtn").onclick = function() { document.getElementById("overdueBtn").onclick = function() {
document.getElementById("overdueForm").action = "/online_report/overdue"; document.getElementById("overdueForm").action = "/ssfwpt/overdue";
document.getElementById("overdueForm").submit(); document.getElementById("overdueForm").submit();
} }
document.getElementById("delcareBtn").onclick = function() { document.getElementById("delcareBtn").onclick = function() {
document.getElementById("testForm").action = "/online_report/declare"; document.getElementById("testForm").action = "/ssfwpt/declare";
document.getElementById("testForm").submit(); document.getElementById("testForm").submit();
} }
document.getElementById("amendBtn").onclick = function(e) { document.getElementById("amendBtn").onclick = function(e) {
document.getElementById("amendForm").action = "/online_report/amend"; document.getElementById("amendForm").action = "/ssfwpt/amend";
document.getElementById("amendForm").submit(); document.getElementById("amendForm").submit();
} }
document.getElementById("cancellationBtn").onclick = function(e) { document.getElementById("cancellationBtn").onclick = function(e) {
document.getElementById("cancellationForm").action = "/online_report/cancellation"; document.getElementById("cancellationForm").action = "/ssfwpt/cancellation";
document.getElementById("cancellationForm").submit(); document.getElementById("cancellationForm").submit();
} }
</script> </script>
......
...@@ -90,11 +90,13 @@ ...@@ -90,11 +90,13 @@
</div> </div>
</body> </body>
<script src="/web/onlineReport/static/tools/js/jquery-1.11.3.js?v=1.1"></script> <script src="/web/onlineReport/static/tools/js/jquery-1.11.3.js?v=1.1"></script>
<script src="/web/onlineReport/static/js/tax/tool.js"></script>
<script src="/web/onlineReport/static/tools/js/jquery.nicescroll.js?v=1.1"></script> <script src="/web/onlineReport/static/tools/js/jquery.nicescroll.js?v=1.1"></script>
<script src="/web/onlineReport/static/tools/js/bootstrap.js?v=1.1"></script> <script src="/web/onlineReport/static/tools/js/bootstrap.js?v=1.1"></script>
<script src="/web/onlineReport/static/tools/js/encapsulation.js?v=1.3"></script> <script src="/web/onlineReport/static/tools/js/encapsulation.js?v=1.3"></script>
<script src="/web/onlineReport/static/tools/js/minScroll.js?v=1.1"></script> <script src="/web/onlineReport/static/tools/js/minScroll.js?v=1.1"></script>
<script src="/web/onlineReport/static/tools/js/My97DatePicker/WdatePicker.js?v=1.1"></script> <script src="/web/onlineReport/static/tools/js/My97DatePicker/WdatePicker.js?v=1.1"></script>
<script src="/web/onlineReport/static/biz/getJgxxRyxx.js?v=2.0"></script>
<script src="/web/onlineReport/static/biz/overdue_grid.js?v=1.0"></script> <script src="/web/onlineReport/static/biz/overdue_grid.js?v=1.0"></script>
<script> <script>
// <!-- // 使用 el 表达式,将返回的信息写到此处,然后调用页面绘制方法绘制页面 // <!-- // 使用 el 表达式,将返回的信息写到此处,然后调用页面绘制方法绘制页面
...@@ -116,34 +118,28 @@ ...@@ -116,34 +118,28 @@
var initpage; var initpage;
$(function(){ $(function(){
// //
var url = localStorage.getItem("url"); // getJgxxRyxx();
function GetQueryValue(queryName) { var url = "http://192.168.105.153:8091";
var query = decodeURI(window.location.search.substring(1)); showLoading();
var vars = query.split("&");
for (var i = 0; i < vars.length; i++) {
var pair = vars[i].split("=");
if (pair[0] == queryName) { return pair[1]; }
}
return null;
}
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: url + "/ssfwpt/overdue/index", url: url + "/ssfwpt/overdue/index",
dataType: "json", // 请求方式为jsonp dataType: "json", // 请求方式为jsonp
// async: false, // async: false,
data: { data: {
djxh: GetQueryValue("djxh"), djxh: getUrlParam("djxh"),
nsrsbh: GetQueryValue("nsrsbh"), token: getUrlParam("token"),
token: '',
sbsq: '', sbsq: '',
pzzlDm: '' pzzlDm: ''
}, },
success: function (data) { //客户端jquery预先定义好的callback函数,成功获取跨域服务器上的json数据后,会动态执行这个callback函数 success: function (data) { //客户端jquery预先定义好的callback函数,成功获取跨域服务器上的json数据后,会动态执行这个callback函数
hideLoading();
//el表达式变jq //el表达式变jq
// $("#token").attr("value",""); // $("#token").attr("value","");
var companyInfo = data; var companyInfo = data;
$("#djxh").attr("value", companyInfo.djxh); $("#djxh").attr("value", companyInfo.djxh);
if (companyInfo.success) { if (companyInfo.success) {
companyInfo.bean.config = config
initpage = initPage(companyInfo.bean); initpage = initPage(companyInfo.bean);
$("#getInputValue").on("focus", function() { $("#getInputValue").on("focus", function() {
WdatePicker({ WdatePicker({
...@@ -155,6 +151,7 @@ ...@@ -155,6 +151,7 @@
}); });
}); });
} else { } else {
hideLoading();
alertWarning("请求失败!"); alertWarning("请求失败!");
// 弹出错误对话框 // 弹出错误对话框
} }
......
...@@ -93,17 +93,14 @@ function initPage(companyInfo) { ...@@ -93,17 +93,14 @@ function initPage(companyInfo) {
jsonReady:ddt, jsonReady:ddt,
callback: function(data, node) { callback: function(data, node) {
console.log("一条数据信息", data) console.log("一条数据信息", data)
console.log(data.sourceFlag, data.sourceFlag.indexOf("sbzj") != -1) if (data.sourceFlag=="ssfwpt_sbzj") {
if (data && data.sourceFlag.indexOf("sbzj") != -1) {
window.mlistener = { window.mlistener = {
selectRowData: {}, selectRowData: {},
}; };
// data.fillingFlag = "normal" // 填报标记 data.fillingFlag = "corrections" // 填报标记
data.saveUserId = "201" + "15232119930731392X";// 用户id data.saveUserId = jgxxRyxx.bdReportResponse.zjlx + jgxxRyxx.bdReportResponse.zjhm;// 用户id
window.mlistener.selectRowData = data; window.mlistener.selectRowData = data;
window.open("http://192.168.105.153:8088/taxservicedesk/#/taxTableList"); window.open("/web/taxservicedesk/index.html#/taxTableList",'_blank');
// window.open("http://192.168.101.146:81/#/taxTableList");
return
}else { }else {
//TODO 跳转页面 //TODO 跳转页面
data.djxh = companyInfo.djxh; data.djxh = companyInfo.djxh;
...@@ -133,7 +130,7 @@ function initPage(companyInfo) { ...@@ -133,7 +130,7 @@ function initPage(companyInfo) {
var falg = "amend"; var falg = "amend";
$.ajax({ $.ajax({
type: "POST", type: "POST",
// url: url + "/online_report/amend/toGzPzzl", // url: url + "/ssfwpt/amend/toGzPzzl",
url: url + "/ssfwpt/amend/toGzPzzl", url: url + "/ssfwpt/amend/toGzPzzl",
dataType: "json", // 请求方式为jsonp dataType: "json", // 请求方式为jsonp
data: { data: {
...@@ -142,13 +139,13 @@ function initPage(companyInfo) { ...@@ -142,13 +139,13 @@ function initPage(companyInfo) {
success: function (data) { success: function (data) {
localStorage.setItem("data", requestData); localStorage.setItem("data", requestData);
if (data.url == "../declare/edit.jsp") { if (data.url == "../declare/edit.jsp") {
window.open("/jsp/declare/edit.html?falg="+falg); window.open(companyInfo.config.webUrl+"declare/edit.html?falg="+falg+'&params=' + encodeURI(JSON.stringify(requestData)));
}else if (data.url == "../declare/yearReport.jsp") { }else if (data.url == "../declare/yearReport.jsp") {
window.open("/jsp/declare/yearReport.html?falg="+falg); window.open(companyInfo.config.webUrl+"declare/yearReport.html?falg="+'&params=' + encodeURI(JSON.stringify(requestData)));
}else if (data.url == "../declare/yearReportGLB.jsp") { }else if (data.url == "../declare/yearReportGLB.jsp") {
window.open("/jsp/declare/yearReportGLB.html?falg="+falg); window.open(companyInfo.config.webUrl+"declare/yearReportGLB.html?falg="+'&params=' + encodeURI(JSON.stringify(requestData)));
}else { }else {
window.open("/jsp/error/index.html?falg="+falg); window.open(companyInfo.config.webUrl+"error/index.html?falg="+'&params=' + encodeURI(JSON.stringify(requestData)));
} }
}, },
error: function(xhr){ error: function(xhr){
...@@ -232,12 +229,12 @@ function initPage(companyInfo) { ...@@ -232,12 +229,12 @@ function initPage(companyInfo) {
//地址 //地址
//http://sbjs.tjsat.gov.cn:18090 //http://sbjs.tjsat.gov.cn:18090
//http://localhost:7070 //http://localhost:7070
var url = localStorage.getItem("url"); var url = "http://192.168.105.153:8091";
var getTaxAmendData = function(param) { var getTaxAmendData = function(param) {
// TODO 开始加载等待动画 // TODO 开始加载等待动画
showLoading(); showLoading();
$.ajax({ $.ajax({
// url: url + "/online_report/amend/getPzzlList", // 查询接口 // url: url + "/ssfwpt/amend/getPzzlList", // 查询接口
url: url + "/ssfwpt/amend/getPzzlList", url: url + "/ssfwpt/amend/getPzzlList",
data: param, data: param,
type: "POST", type: "POST",
......
...@@ -126,38 +126,49 @@ function initPage(companyInfo) { ...@@ -126,38 +126,49 @@ function initPage(companyInfo) {
}, },
jsonReady: ddt, jsonReady: ddt,
callback: function(data, node) { callback: function(data, node) {
data.djxh = companyInfo.djxh; if (data.sourceFlag=="ssfwpt_sbzj") {
data.iszzsybjc = companyInfo.iszzsybjc; // 一表申报代码 window.mlistener = {
data.operateType = companyInfo.operateType; //标志位 selectRowData: {},
data.nsrsbh = companyInfo.nsrsbh; // 那随人识别号 };
// data.nssbq = nowdate; data.fillingFlag = "inventory" // 填报标记
data.checkTime = false; data.saveUserId = jgxxRyxx.bdReportResponse.zjlx + jgxxRyxx.bdReportResponse.zjhm;// 用户id
if(data.pzzlDm === '11602') { window.mlistener.selectRowData = data;
var List = companyInfo.taxInfos.filter(function (item) { window.open("/web/taxservicedesk/index.html#/taxTableList",'_blank');
return item.pzzlDm == '10101' || item.pzzlDm == '10102' }else{
}) data.djxh = companyInfo.djxh;
if(List.length === 0) { data.iszzsybjc = companyInfo.iszzsybjc; // 一表申报代码
data.checkTime = true; data.operateType = companyInfo.operateType; //标志位
} data.nsrsbh = companyInfo.nsrsbh; // 那随人识别号
for(var i=0;i<List.length;i++){ // data.nssbq = nowdate;
if(List[i].sssqQ !== data.sssqQ || List[i].sssqZ !== data.sssqZ) { data.checkTime = false;
if(data.pzzlDm === '11602') {
var List = companyInfo.taxInfos.filter(function (item) {
return item.pzzlDm == '10101' || item.pzzlDm == '10102'
})
if(List.length === 0) {
data.checkTime = true; data.checkTime = true;
break; }
for(var i=0;i<List.length;i++){
if(List[i].sssqQ !== data.sssqQ || List[i].sssqZ !== data.sssqZ) {
data.checkTime = true;
break;
}
} }
} }
}
var str=location.href; var str=location.href;
str = str.split("/")[4]; str = str.split("/")[4];
if(str && "cancellation" == str.substring(0,12)){ if(str && "cancellation" == str.substring(0,12)){
console.log("============",str) console.log("============",str)
localStorage.setItem("cancellation", str.substring(0,12)); localStorage.setItem("cancellation", str.substring(0,12));
}
console.log("■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■");
console.log("data",data);
console.log("■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■");
submitData = data;
declarationMethod("N")
} }
console.log("■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■");
console.log("data",data);
console.log("■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■");
submitData = data;
declarationMethod("N")
// if(node.context.innerText=="填写申报表"&&companyInfo.iszzsybjc == "01" &&data.pzzlDm == "10101"){ // if(node.context.innerText=="填写申报表"&&companyInfo.iszzsybjc == "01" &&data.pzzlDm == "10101"){
// // if(node.context.innerText=="填写申报表"){ // // if(node.context.innerText=="填写申报表"){
// $('#myMask #myModal').show(); // $('#myMask #myModal').show();
...@@ -178,17 +189,18 @@ function initPage(companyInfo) { ...@@ -178,17 +189,18 @@ function initPage(companyInfo) {
//地址 //地址
//http://sbjs.tjsat.gov.cn:18090 //http://sbjs.tjsat.gov.cn:18090
//http://localhost:7070 //http://localhost:7070
var url = localStorage.getItem("url"); var url = "http://192.168.105.153:8091";
var getTaxDeclaration = function(date, type) { var getTaxDeclaration = function(date, type) {
// TODO 开始加载等待动画 // TODO 开始加载等待动画
showLoading(); showLoading();
var param = { var param = {
djxh: djxh, djxh: djxh,
operateType: companyInfo.operateType,
sbsq: date, sbsq: date,
isFresh: type.toUpperCase() == "Y" isFresh: type.toUpperCase() == "Y"
} }
$.ajax({ $.ajax({
// url: url + "/online_report/declare/getPzzlList", // url: url + "/ssfwpt/declare/getPzzlList",
url: url + "/ssfwpt/declare/getPzzlList", url: url + "/ssfwpt/declare/getPzzlList",
data: param, data: param,
type: "POST", type: "POST",
...@@ -253,16 +265,14 @@ function initPage(companyInfo) { ...@@ -253,16 +265,14 @@ function initPage(companyInfo) {
//申报方式 当iszzsybjc=01同时pzzlDm=010101时,调用改方法 //申报方式 当iszzsybjc=01同时pzzlDm=010101时,调用改方法
var declarationMethod = function (statu) { var declarationMethod = function (statu) {
submitData.ybjcState = statu; submitData.ybjcState = statu;
if (submitData && submitData.sourceFlag === "ssfwpt_sbzj") { if (submitData.sourceFlag=="ssfwpt_sbzj") {
window.mlistener = { window.mlistener = {
selectRowData: {}, selectRowData: {},
}; };
// submitData.fillingFlag = "normal" // 填报标记 submitData.fillingFlag = "inventory" // 填报标记
submitData.saveUserId = "201" + "15232119930731392X";// 用户id submitData.saveUserId = jgxxRyxx.bdReportResponse.zjlx + jgxxRyxx.bdReportResponse.zjhm;// 用户id
window.mlistener.selectRowData = submitData; window.mlistener.selectRowData = submitData;
window.open("http://192.168.105.153:8088/taxservicedesk/#/taxTableList"); window.open("/web/taxservicedesk/index.html#/taxTableList",'_blank');
// window.open("http://192.168.101.146:81/#/taxTableList");
return
}else { }else {
// var form = $("#changeForm"); // var form = $("#changeForm");
// form.find("#changeForm_data").val(JSON.stringify(submitData)); // form.find("#changeForm_data").val(JSON.stringify(submitData));
...@@ -270,7 +280,7 @@ function initPage(companyInfo) { ...@@ -270,7 +280,7 @@ function initPage(companyInfo) {
var falg = "declare"; var falg = "declare";
$.ajax({ $.ajax({
type: "POST", type: "POST",
// url: url + "/online_report/declare/toPzzl", // url: url + "/ssfwpt/declare/toPzzl",
url: url + "/ssfwpt/declare/toPzzl", url: url + "/ssfwpt/declare/toPzzl",
dataType: "json", // 请求方式为jsonp dataType: "json", // 请求方式为jsonp
data: { data: {
...@@ -280,13 +290,13 @@ function initPage(companyInfo) { ...@@ -280,13 +290,13 @@ function initPage(companyInfo) {
localStorage.setItem("data",JSON.stringify(submitData)); localStorage.setItem("data",JSON.stringify(submitData));
console.log("请求成功", data) console.log("请求成功", data)
if (data.url == "edit.jsp") { if (data.url == "edit.jsp") {
window.open("/jsp/declare/edit.html?falg="+falg); window.open(companyInfo.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("/jsp/declare/yearReport.html?falg="+falg); window.open(companyInfo.config.webUrl+"declare/yearReport.html?falg="+falg+'&params=' + encodeURI(JSON.stringify(submitData)));
}else if (data.url == "yearReportGLB.jsp") { }else if (data.url == "yearReportGLB.jsp") {
window.open("/jsp/declare/yearReportGLB.html?falg="+falg); window.open(companyInfo.config.webUrl+"declare/yearReportGLB.html?falg="+falg+'&params=' + encodeURI(JSON.stringify(submitData)));
}else { }else {
window.open("/jsp/error/index.html?falg="+falg); window.open(companyInfo.config.webUrl+"error/index.html?falg="+falg+'&params=' + encodeURI(JSON.stringify(submitData)));
} }
}, },
error: function(xhr){ error: function(xhr){
......
...@@ -84,38 +84,48 @@ function initPage(companyInfo) { ...@@ -84,38 +84,48 @@ function initPage(companyInfo) {
}, },
jsonReady: ddt, jsonReady: ddt,
callback: function(data, node) { callback: function(data, node) {
data.djxh = companyInfo.djxh; if (data.sourceFlag=="ssfwpt_sbzj") {
data.iszzsybjc = companyInfo.iszzsybjc; // 一表申报代码 window.mlistener = {
data.nsrsbh = companyInfo.nsrsbh; // 那随人识别号 selectRowData: {},
data.nssbq = nowdate; };
data.checkTime = false; data.fillingFlag = "normal" // 填报标记
if(data.pzzlDm === '11602') { data.saveUserId = jgxxRyxx.bdReportResponse.zjlx + jgxxRyxx.bdReportResponse.zjhm;// 用户id
var List = companyInfo.taxInfos.filter(function (item) { window.mlistener.selectRowData = data;
return item.pzzlDm == '10101' || item.pzzlDm == '10102' window.open("/web/taxservicedesk/index.html#/taxTableList",'_blank');
}) }else {
if(List.length === 0) { data.djxh = companyInfo.djxh;
data.checkTime = true; data.iszzsybjc = companyInfo.iszzsybjc; // 一表申报代码
} data.nsrsbh = companyInfo.nsrsbh; // 那随人识别号
for(var i=0;i<List.length;i++){ data.nssbq = nowdate;
if(List[i].sssqQ !== data.sssqQ || List[i].sssqZ !== data.sssqZ) { data.checkTime = false;
if(data.pzzlDm === '11602') {
var List = companyInfo.taxInfos.filter(function (item) {
return item.pzzlDm == '10101' || item.pzzlDm == '10102'
})
if(List.length === 0) {
data.checkTime = true; data.checkTime = true;
break; }
for(var i=0;i<List.length;i++){
if(List[i].sssqQ !== data.sssqQ || List[i].sssqZ !== data.sssqZ) {
data.checkTime = true;
break;
}
} }
} }
} submitData = data;
submitData = data; if(node.context.innerText=="填写申报表"&&companyInfo.iszzsybjc == "01" &&data.pzzlDm == "10101"){
if(node.context.innerText=="填写申报表"&&companyInfo.iszzsybjc == "01" &&data.pzzlDm == "10101"){ // if(node.context.innerText=="填写申报表"){
// if(node.context.innerText=="填写申报表"){ console.log(initpage)
console.log(initpage) initpage.declarationMethod('N')
initpage.declarationMethod('N')
// $('#myMask').show(); // $('#myMask').show();
// $('#myModal').show(); // $('#myModal').show();
// $('#dName').html(data.pzzlMc); // $('#dName').html(data.pzzlMc);
// $('#dName').attr("title",data.pzzlMc);//修改title值 // $('#dName').attr("title",data.pzzlMc);//修改title值
// $('#ybName').html(data.pzzlMc); // $('#ybName').html(data.pzzlMc);
// $('#ybName').attr("title",data.pzzlMc);//修改title值 // $('#ybName').attr("title",data.pzzlMc);//修改title值
}else{ }else{
declarationMethod("N") declarationMethod("N")
}
} }
} //点击按钮后的回调函数 } //点击按钮后的回调函数
}; };
...@@ -130,19 +140,19 @@ function initPage(companyInfo) { ...@@ -130,19 +140,19 @@ function initPage(companyInfo) {
//地址 //地址
//http://sbjs.tjsat.gov.cn:18090 //http://sbjs.tjsat.gov.cn:18090
//http://localhost:7070 //http://localhost:7070
var url = localStorage.getItem("url"); var url = "http://192.168.105.153:8091";
var getTaxDeclaration = function(date, type) { var getTaxDeclaration = function(date, type) {
// TODO 开始加载等待动画 // TODO 开始加载等待动画
showLoading(); showLoading();
var param = { var param = {
djxh: djxh, djxh: djxh,
nsrsbh: companyInfo.nsrsbh, operateType: companyInfo.operateType,
sbsq: date, sbsq: date,
isFresh: type.toUpperCase() == "Y", isFresh: type.toUpperCase() == "Y",
pzzlDm:companyInfo.pzzlDm pzzlDm:companyInfo.pzzlDm
} }
$.ajax({ $.ajax({
// url: url + "/online_report/declare/getPzzlList", // url: url + "/ssfwpt/declare/getPzzlList",
url: url + "/ssfwpt/declare/getPzzlList", url: url + "/ssfwpt/declare/getPzzlList",
data: param, data: param,
type: "POST", type: "POST",
...@@ -213,16 +223,14 @@ function initPage(companyInfo) { ...@@ -213,16 +223,14 @@ function initPage(companyInfo) {
submitData.ybjcState = statu; submitData.ybjcState = statu;
console.log(submitData.sourceFlag, submitData.sourceFlag.indexOf("sbzj") != -1) console.log(submitData.sourceFlag, submitData.sourceFlag.indexOf("sbzj") != -1)
//需要判断在线还是税表的开关 //需要判断在线还是税表的开关
if (submitData && submitData.sourceFlag.indexOf("sbzj") != -1) { if (submitData.sourceFlag=="ssfwpt_sbzj") {
window.mlistener = { window.mlistener = {
selectRowData: {}, selectRowData: {},
}; };
// submitData.fillingFlag = "normal" // 填报标记 submitData.fillingFlag = "normal" // 填报标记
submitData.saveUserId = "201" + "15232119930731392X";// 用户id submitData.saveUserId = jgxxRyxx.bdReportResponse.zjlx + jgxxRyxx.bdReportResponse.zjhm;// 用户id
window.mlistener.selectRowData = submitData; window.mlistener.selectRowData = submitData;
window.open("http://192.168.105.153:8088/taxservicedesk/#/taxTableList"); window.open("/web/taxservicedesk/index.html#/taxTableList",'_blank');
// window.open("http://192.168.101.146:81/#/taxTableList");
return
}else { }else {
//"ssfwpt_zxtb" //"ssfwpt_zxtb"
// var form = $("#changeForm"); // var form = $("#changeForm");
...@@ -231,23 +239,24 @@ function initPage(companyInfo) { ...@@ -231,23 +239,24 @@ function initPage(companyInfo) {
var falg = "declare"; var falg = "declare";
$.ajax({ $.ajax({
type: "POST", type: "POST",
// url: url + "/online_report/declare/toPzzl", // url: url + "/ssfwpt/declare/toPzzl",
url: url + "/ssfwpt/declare/toPzzl", url: url + "/ssfwpt/declare/toPzzl",
dataType: "json", // 请求方式为jsonp dataType: "json", // 请求方式为jsonp
data: { data: {
data: JSON.stringify(submitData) data: JSON.stringify(submitData)
}, },
success: function (data) { success: function (data) {
console.log("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") {
window.open("/jsp/declare/edit.html?falg="+falg); window.open(companyInfo.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("/jsp/declare/yearReport.html?falg="+falg); window.open(companyInfo.config.webUrl+"declare/yearReport.html?falg="+falg+'&params=' + encodeURI(JSON.stringify(submitData)));
}else if (data.url == "yearReportGLB.jsp") { }else if (data.url == "yearReportGLB.jsp") {
window.open("/jsp/declare/yearReportGLB.html?falg="+falg); window.open(companyInfo.config.webUrl+"declare/yearReportGLB.html?falg="+falg+'&params=' + encodeURI(JSON.stringify(submitData)));
}else { }else {
//因为后台不知道返回路径是什么样的就直接改成了else data.url == "error.jsp" //因为后台不知道返回路径是什么样的就直接改成了else data.url == "error.jsp"
window.open("/jsp/error/index.html?falg="+falg); window.open(companyInfo.config.webUrl+"error/index.html?falg="+falg+'&params=' + encodeURI(JSON.stringify(submitData)));
} }
}, },
error: function(xhr){ error: function(xhr){
......
var jgxxRyxx ;
/**
* @Author ygy
* @Description //TODO 通过token查询企业和人员信息
* @Date 19:40 2020/6/12 qyxxCacheVoList bdReportResponse
*
_self.$store.commit("qyxxData",data.content.qyxxCacheVoList);
_self.$store.commit("loginData",data.content.bdReportResponse);
**/
function getJgxxRyxx() {
var url = "http://192.168.105.153:8091"
$.ajax({
type: "post",
url: url + "/ssfwpt/xxzl/getJgxxRyxx",
dataType: "json", // 请求方式为jsonp
async: false,
data: {
token: getUrlParam("token"),
},
success: function (data) {
jgxxRyxx = data.content;
},
error: function(xhr){
console.log("=====================error======================")
}
})
}
/**
* @Author ygy
* @Description //TODO 获取地址栏参数
* @Date 19:43 2020/6/12
* @Param
* @return
**/
function getUrlParam (name) {
var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)');
var r = window.location.search.substr(1).match(reg);
if (r != null) return decodeURIComponent(r[2]);
return null;
}
var config = {
webUrl:"http://sbjs.tjsat.gov.cn:8088/web/onlineReport/jsp/"
// webUrl:"http://localhost/web/onlineReport/jsp/"
}
...@@ -130,6 +130,15 @@ function initPage(companyInfo) { ...@@ -130,6 +130,15 @@ function initPage(companyInfo) {
}, },
jsonReady: ddt, jsonReady: ddt,
callback: function(data, node) { callback: function(data, node) {
if (data.sourceFlag=="ssfwpt_sbzj") {
window.mlistener = {
selectRowData: {},
};
data.fillingFlag = "overdue" // 填报标记
data.saveUserId = jgxxRyxx.bdReportResponse.zjlx + jgxxRyxx.bdReportResponse.zjhm;// 用户id
window.mlistener.selectRowData = data;
window.open("/web/taxservicedesk/index.html#/taxTableList",'_blank');
}else{
data.djxh = djxh; data.djxh = djxh;
data.operateType = operateType; data.operateType = operateType;
data.iszzsybjc = companyInfo.iszzsybjc; // 一表申报代码 data.iszzsybjc = companyInfo.iszzsybjc; // 一表申报代码
...@@ -138,7 +147,7 @@ function initPage(companyInfo) { ...@@ -138,7 +147,7 @@ function initPage(companyInfo) {
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) {
data.checkTime = true; data.checkTime = true;
...@@ -152,8 +161,8 @@ function initPage(companyInfo) { ...@@ -152,8 +161,8 @@ function initPage(companyInfo) {
} }
submitData = data; submitData = data;
if(node.context.innerText=="填写申报表"&&companyInfo.iszzsybjc == "01" &&data.pzzlDm == "10101"){ if(node.context.innerText=="填写申报表"&&companyInfo.iszzsybjc == "01" &&data.pzzlDm == "10101"){
initpage.declarationMethod('N') initpage.declarationMethod('N')
// if(node.context.innerText=="填写申报表"){ // if(node.context.innerText=="填写申报表"){
// $('#myMask').show(); // $('#myMask').show();
// $('#myModal').show(); // $('#myModal').show();
// $('#dName').html(data.pzzlMc); // $('#dName').html(data.pzzlMc);
...@@ -163,6 +172,8 @@ function initPage(companyInfo) { ...@@ -163,6 +172,8 @@ function initPage(companyInfo) {
}else{ }else{
declarationMethod("N") declarationMethod("N")
} }
}
} //点击按钮后的回调函数 } //点击按钮后的回调函数
}; };
var object = tool.tableCreate(tableObj); var object = tool.tableCreate(tableObj);
...@@ -176,7 +187,7 @@ function initPage(companyInfo) { ...@@ -176,7 +187,7 @@ function initPage(companyInfo) {
//地址 //地址
//http://sbjs.tjsat.gov.cn:18090 //http://sbjs.tjsat.gov.cn:18090
//http://localhost:7070 //http://localhost:7070
var url = localStorage.getItem("url"); var url = "http://192.168.105.153:8091";
var getTaxOverdue = function(date, type) { var getTaxOverdue = function(date, type) {
// TODO 开始加载等待动画 // TODO 开始加载等待动画
showLoading(); showLoading();
...@@ -187,7 +198,7 @@ function initPage(companyInfo) { ...@@ -187,7 +198,7 @@ function initPage(companyInfo) {
operateType:operateType operateType:operateType
} }
$.ajax({ $.ajax({
// url: url + "/online_report/declare/getPzzlList", // url: url + "/ssfwpt/declare/getPzzlList",
url: url + "/ssfwpt/declare/getPzzlList", url: url + "/ssfwpt/declare/getPzzlList",
data: param, data: param,
type: "POST", type: "POST",
...@@ -224,16 +235,14 @@ function initPage(companyInfo) { ...@@ -224,16 +235,14 @@ function initPage(companyInfo) {
//申报方式 当iszzsybjc=01同时pzzlDm=010101时,调用改方法 //申报方式 当iszzsybjc=01同时pzzlDm=010101时,调用改方法
var declarationMethod = function (statu) { var declarationMethod = function (statu) {
submitData.ybjcState = statu; submitData.ybjcState = statu;
if (submitData && submitData.sourceFlag === "ssfwpt_sbzj") { if (submitData.sourceFlag=="ssfwpt_sbzj") {
window.mlistener = { window.mlistener = {
selectRowData: {}, selectRowData: {},
}; };
// submitData.fillingFlag = "normal" // 填报标记 submitData.fillingFlag = "inventory" // 填报标记
submitData.saveUserId = "201" + "15232119930731392X";// 用户id submitData.saveUserId = jgxxRyxx.bdReportResponse.zjlx + jgxxRyxx.bdReportResponse.zjhm;// 用户id
window.mlistener.selectRowData = submitData; window.mlistener.selectRowData = submitData;
window.open("http://192.168.105.153:8088/taxservicedesk/#/taxTableList"); window.open("/web/taxservicedesk/index.html#/taxTableList",'_blank');
// window.open("http://192.168.101.146:81/#/taxTableList");
return
}else { }else {
// var form = $("#changeForm"); // var form = $("#changeForm");
// form.find("#changeForm_data").val(JSON.stringify(submitData)); // form.find("#changeForm_data").val(JSON.stringify(submitData));
...@@ -241,7 +250,7 @@ function initPage(companyInfo) { ...@@ -241,7 +250,7 @@ function initPage(companyInfo) {
var falg = "declare"; var falg = "declare";
$.ajax({ $.ajax({
type: "POST", type: "POST",
// url: url + "/online_report/declare/toPzzl", // url: url + "/ssfwpt/declare/toPzzl",
url: url + "/ssfwpt/declare/toPzzl", url: url + "/ssfwpt/declare/toPzzl",
dataType: "json", // 请求方式为jsonp dataType: "json", // 请求方式为jsonp
data: { data: {
...@@ -251,13 +260,13 @@ function initPage(companyInfo) { ...@@ -251,13 +260,13 @@ function initPage(companyInfo) {
localStorage.setItem("data",JSON.stringify(submitData)); localStorage.setItem("data",JSON.stringify(submitData));
console.log("请求成功", data) console.log("请求成功", data)
if (data.url == "edit.jsp") { if (data.url == "edit.jsp") {
window.open("/jsp/declare/edit.html?falg="+falg); window.open(companyInfo.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("/jsp/declare/yearReport.html?falg="+falg); window.open(companyInfo.config.webUrl+"declare/yearReport.html?falg="+falg+'&params=' + encodeURI(JSON.stringify(submitData)));
}else if (data.url == "yearReportGLB.jsp") { }else if (data.url == "yearReportGLB.jsp") {
window.open("/jsp/declare/yearReportGLB.html?falg="+falg); window.open(companyInfo.config.webUrl+"declare/yearReportGLB.html?falg="+falg+'&params=' + encodeURI(JSON.stringify(submitData)));
}else { }else {
window.open("/jsp/error/index.html?falg="+falg); window.open(companyInfo.config.webUrl+"error/index.html?falg="+falg+'&params=' + encodeURI(JSON.stringify(submitData)));
} }
}, },
error: function(xhr){ error: function(xhr){
......
...@@ -143,7 +143,7 @@ function initPage(companyInfo) { ...@@ -143,7 +143,7 @@ function initPage(companyInfo) {
var getTaxAmendData = function(param) { var getTaxAmendData = function(param) {
// TODO 开始加载等待动画 // TODO 开始加载等待动画
$.ajax({ $.ajax({
url: "/online_report/declare/getPzzlList", url: "/ssfwpt/declare/getPzzlList",
data: { data: {
token: token, token: token,
date: date date: date
......
...@@ -148,7 +148,7 @@ function initPage(companyInfo) { ...@@ -148,7 +148,7 @@ function initPage(companyInfo) {
var getTaxScottareData = function(param) { var getTaxScottareData = function(param) {
// TODO 开始加载等待动画 // TODO 开始加载等待动画
$.ajax({ $.ajax({
url: "/online_report/declare/getPzzlList", url: "/ssfwpt/declare/getPzzlList",
data: { data: {
token: token, token: token,
date: date date: date
......
...@@ -6,33 +6,61 @@ body { ...@@ -6,33 +6,61 @@ body {
color: #333; color: #333;
} }
input {
outline: none;
}
.header { .header {
background-color: #2191da; background-color: #f0f1f2;
background-image: url("/web/onlineReport/static/img/head_bg.png"); /* background-image: url("/static/img/head_bg.png"); */
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: right center; background-position: right center;
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 350px;
right: 0; right: 0;
height: 80px; height: 46px;
line-height: 80px; line-height: 46px;
padding: 0 16px; padding: 0 16px;
border-radius: 3px;
z-index: 1;
margin-top: 17px;
margin-left: 17px;
} }
.header .title { .header .title {
font-size: 24px; font-size: 14px;
color: #ffffff; /* color: #ffffff; */
float: left; color: #333;
/* float: left; */
clear: none; clear: none;
} }
.header .title p {
margin: 0;
}
/* .header .title .caption {
color: #333;
} */
.header .title .name,.sssj {
font-weight: 900;
}
.header .button-group { .header .button-group {
float: right; /* float: right;*/
height: 60px;
line-height: 60px;
clear: none; clear: none;
margin-left: -15px;
}
#importInBtn, #exportOutBtn, #resetCurrentBtn, #resetBtn{
float: right;
margin-right: 5px;
margin-top: 14px;
} }
.htbutton { .htbutton {
outline: none;
border-radius: 4px; border-radius: 4px;
display: inline-block; display: inline-block;
padding: 0 18px; padding: 0 18px;
...@@ -52,8 +80,10 @@ body { ...@@ -52,8 +80,10 @@ body {
.htbutton.import { .htbutton.import {
color: #ffffff; color: #ffffff;
border: 1px solid #ff9600; background-color: #0994DC;
background-color: #ff9600; border-color: #0994DC;
/* border: 1px solid #ff9600;
background-color: #ff9600; */
} }
.text-right { .text-right {
...@@ -68,7 +98,7 @@ body { ...@@ -68,7 +98,7 @@ body {
.container { .container {
position: fixed; position: fixed;
top: 80px; top: 106px;
left: 0; left: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
...@@ -76,11 +106,14 @@ body { ...@@ -76,11 +106,14 @@ body {
.container .left-bar { .container .left-bar {
position: absolute; position: absolute;
top: 0; top: -106px;
left: 0; left: 0;
bottom: 0; bottom: 0;
width: 340px; width: 333px;
padding: 10px; padding: 10px;
border: 1px solid #e4e4e4;
margin-top: 17px;
margin-left: 17px;
} }
.container.full .left-bar { .container.full .left-bar {
...@@ -92,9 +125,9 @@ body { ...@@ -92,9 +125,9 @@ body {
position: absolute; position: absolute;
width: 10px; width: 10px;
top: 0; top: 0;
left: 340px; left: 333px;
bottom: 0; bottom: 0;
background: #efeeee; /* background: #efeeee; */
} }
.container.full .breakbar { .container.full .breakbar {
...@@ -115,12 +148,14 @@ body { ...@@ -115,12 +148,14 @@ body {
} }
.container .right { .container .right {
margin-top: 17px;
position: absolute; position: absolute;
top: 0; top: 0;
left: 350px; left: 367px;
right: 0; right: 0;
bottom: 0; bottom: 0;
height: 100%; height: 100%;
border: 1px solid #d7d8d9;
} }
.container.full .right { .container.full .right {
...@@ -133,16 +168,17 @@ body { ...@@ -133,16 +168,17 @@ body {
left: 0; left: 0;
right: 0; right: 0;
height: 42px; height: 42px;
font-size: 16px; /* font-size: 16px; */
font-weight: 700; font-weight: 700;
border-bottom: 1px solid #dcdee2; border-bottom: 1px solid #dcdee2;
background-color: #f7f7f7;
} }
.container .left-bar .left-title span { .container .left-bar .left-title span {
line-height: 40px; line-height: 40px;
display: inline-block; display: inline-block;
padding: 0 15px; padding: 0 15px;
border-bottom: 2px solid #4285f4; /* border-bottom: 2px solid #4285f4; */
} }
.container .left-bar .left { .container .left-bar .left {
...@@ -156,7 +192,7 @@ body { ...@@ -156,7 +192,7 @@ body {
.container .left-bar .left .left-item { .container .left-bar .left .left-item {
line-height: 20px; line-height: 20px;
border-bottom: 1px dashed #dcdee2; /* border-bottom: 1px dashed #dcdee2; */
padding: 10px 25px 10px 15px; padding: 10px 25px 10px 15px;
cursor: pointer; cursor: pointer;
word-wrap: normal; word-wrap: normal;
...@@ -165,11 +201,13 @@ body { ...@@ -165,11 +201,13 @@ body {
.container .left-bar .left .left-item:hover, .container .left-bar .left .left-item:hover,
.left-item-active { .left-item-active {
color: #3e9be5; /* color: #3e9be5; */
color: #0994dc;
} }
.container .left-bar .left .left-item-active { .container .left-bar .left .left-item-active {
background: #edf6fc; /* background: #edf6fc; */
background: #d1ecff;
} }
.mask { .mask {
...@@ -418,8 +456,10 @@ body { ...@@ -418,8 +456,10 @@ body {
.htbutton.resetAll { .htbutton.resetAll {
color: #ffffff; color: #ffffff;
border: 1px solid #ff9600; background-color: #0994DC;
background-color: #ff9600; border-color: #0994DC;
/* border: 1px solid #ff9600;
background-color: #ff9600; */
} }
.left-item.has-error { .left-item.has-error {
......
...@@ -39,6 +39,8 @@ window.onload = function () { ...@@ -39,6 +39,8 @@ window.onload = function () {
//把sbjs.tjsat.gov.cn:18080,替换成 sbjs.tjsat.gov.cn:8088 //把sbjs.tjsat.gov.cn:18080,替换成 sbjs.tjsat.gov.cn:8088
if("sbjs.tjsat.gov.cn:8088" == url){ if("sbjs.tjsat.gov.cn:8088" == url){
GC.Spread.Sheets.LicenseKey = "sbjs.tjsat.gov.cn,736922629637688#B0LBLdFREewVjRiZFNIdmWjtUWldkRhVWa9oFMLNlTwg4UUVTNjtUW0RXcwR5R6EnTIZTRNpXUBB7L0RWciRmaUlnUwQlTLFlYiNkMSFWaxI7bBBzc0VHOFF5M9pXSoRkQPhmZlRUewMncNBXSXZVTV36dSJVS0tEb5lnWI5mNxNzMwYEU7cnMRRUc6xmYF3GakpWYwckVF3mSsJWYlRlb6U6cZpFTGVzYhN7cjx6LphTQOFVSPxUdZVTU5pEeNhDZutmQPZFT6FEdONmc926YCl4drAlNx3Ud8o5LOhGOjJzaPJ4YUtmbx8maiJiOiMlIsIyMDdTRwYER4IiOigkIsEjN6ETO8EzM0IicfJye35XX3JSSGljQiojIDJCLiITMuYHITpEIkFWZyB7UiojIOJyebpjIkJHUiwiIxQDO4gDMggTMyEDOxAjMiojI4J7QiwiIuNmL636ZuQXYzpGduMnaiNnI0IyctRkIsICnCeOqZa+r+SuI0ISYONkIsICO8YzNzYTOyYjMykjNzcjI0ICZJJCL3V6csFmZ0IiczRmI1pjIs9WQisnOiQkIsISP3cXdOBVZwEVZ9V5V7dnTllFSVpHVYd5UZl6a6tUQ6hUQX36NTFVNKhHNC5USDlVOJBVWlJWRq3ERqJDWth7TyMmVnV7QjZWWzNXcxokewYTeBhXOFZnVBhWStt6SsB7TTJkUV3UTGlHSNRWR"; GC.Spread.Sheets.LicenseKey = "sbjs.tjsat.gov.cn,736922629637688#B0LBLdFREewVjRiZFNIdmWjtUWldkRhVWa9oFMLNlTwg4UUVTNjtUW0RXcwR5R6EnTIZTRNpXUBB7L0RWciRmaUlnUwQlTLFlYiNkMSFWaxI7bBBzc0VHOFF5M9pXSoRkQPhmZlRUewMncNBXSXZVTV36dSJVS0tEb5lnWI5mNxNzMwYEU7cnMRRUc6xmYF3GakpWYwckVF3mSsJWYlRlb6U6cZpFTGVzYhN7cjx6LphTQOFVSPxUdZVTU5pEeNhDZutmQPZFT6FEdONmc926YCl4drAlNx3Ud8o5LOhGOjJzaPJ4YUtmbx8maiJiOiMlIsIyMDdTRwYER4IiOigkIsEjN6ETO8EzM0IicfJye35XX3JSSGljQiojIDJCLiITMuYHITpEIkFWZyB7UiojIOJyebpjIkJHUiwiIxQDO4gDMggTMyEDOxAjMiojI4J7QiwiIuNmL636ZuQXYzpGduMnaiNnI0IyctRkIsICnCeOqZa+r+SuI0ISYONkIsICO8YzNzYTOyYjMykjNzcjI0ICZJJCL3V6csFmZ0IiczRmI1pjIs9WQisnOiQkIsISP3cXdOBVZwEVZ9V5V7dnTllFSVpHVYd5UZl6a6tUQ6hUQX36NTFVNKhHNC5USDlVOJBVWlJWRq3ERqJDWth7TyMmVnV7QjZWWzNXcxokewYTeBhXOFZnVBhWStt6SsB7TTJkUV3UTGlHSNRWR";
}else if("192.168.105.153:8088" == url){
GC.Spread.Sheets.LicenseKey = "192.168.105.153:8088,736922629637688#B0LBLdFREewVjRiZFNIdmWjtUWldkRhVWa9oFMLNlTwg4UUVTNjtUW0RXcwR5R6EnTIZTRNpXUBB7L0RWciRmaUlnUwQlTLFlYiNkMSFWaxI7bBBzc0VHOFF5M9pXSoRkQPhmZlRUewMncNBXSXZVTV36dSJVS0tEb5lnWI5mNxNzMwYEU7cnMRRUc6xmYF3GakpWYwckVF3mSsJWYlRlb6U6cZpFTGVzYhN7cjx6LphTQOFVSPxUdZVTU5pEeNhDZutmQPZFT6FEdONmc926YCl4drAlNx3Ud8o5LOhGOjJzaPJ4YUtmbx8maiJiOiMlIsIyMDdTRwYER4IiOigkIsEjN6ETO8EzM0IicfJye35XX3JSSGljQiojIDJCLiITMuYHITpEIkFWZyB7UiojIOJyebpjIkJHUiwiIxQDO4gDMggTMyEDOxAjMiojI4J7QiwiIuNmL636ZuQXYzpGduMnaiNnI0IyctRkIsICnCeOqZa+r+SuI0ISYONkIsICO8YzNzYTOyYjMykjNzcjI0ICZJJCL3V6csFmZ0IiczRmI1pjIs9WQisnOiQkIsISP3cXdOBVZwEVZ9V5V7dnTllFSVpHVYd5UZl6a6tUQ6hUQX36NTFVNKhHNC5USDlVOJBVWlJWRq3ERqJDWth7TyMmVnV7QjZWWzNXcxokewYTeBhXOFZnVBhWStt6SsB7TTJkUV3UTGlHSNRWR";
}else{ }else{
GC.Spread.Sheets.LicenseKey = "etax.tianjin.chinatax.gov.cn,498254719314719#B0WY39GZUNVZFpUQtZXVxFTRzYkQFtEbvVHRvgDb03yNXljc6R4KqtiTrFUYCF6RhdFTPhTOzpmeCRne7ZXRWVWV9MlUo34NlFDTVp6dyt4TVV7c8pERk94Uml4Y0JDcrsyYyFWbNVzcwsGRslndxw6Yy54SiJDVVZnajZVRXpmTnVVMGJGZ42GRolTSPpkea9mNxITT5YmapRHSN3iZrYWYDhXav3GOnd5LLBXYrd4badlcxwWbElFWzgmZsdWU4JVaYV6bmdWYudDVhR7KhJEOhJnQw4EbKxEdvk4NiZTWmpnN7cVY9tmd9VGZEdzSZZTai9UO8BTYqVkbppWSiojITJCLiYDOEZ4MDJzMiojIIJCL8YzN7MzN8kjM0IicfJye35XX3JSSGljQiojIDJCLiITMuYHITpEIkFWZyB7UiojIOJyebpjIkJHUiwiI5MDM4kDMgMjM7ATOxAjMiojI4J7QiwiIuNmL636ZugXY4Fmbph6Yu8Waq9WYpRnL8FGdlJiOiMXbEJCLig1jlzahlDZmpnInmDoimH9pnnKplnatm19tl1ZpnXKtmnKplLiOiEmTDJCLikTM7QTMzkTM7QTNygTO4IiOiQWSiwSflNHbhZmOiI7ckJye0ICbuFkI1pjIEJCLi4TPBJGc9IFVrJFNwQDZ0tWUKpmS9kHUmZmN6YzZwcFeahEaNNWWmRmMTdVRFxWNRZTcwQzSpt4dthTNHhUbxATNj9Gdp3kNs3mcXZUZDFVQTt6aJJUO6diSM9"; GC.Spread.Sheets.LicenseKey = "etax.tianjin.chinatax.gov.cn,498254719314719#B0WY39GZUNVZFpUQtZXVxFTRzYkQFtEbvVHRvgDb03yNXljc6R4KqtiTrFUYCF6RhdFTPhTOzpmeCRne7ZXRWVWV9MlUo34NlFDTVp6dyt4TVV7c8pERk94Uml4Y0JDcrsyYyFWbNVzcwsGRslndxw6Yy54SiJDVVZnajZVRXpmTnVVMGJGZ42GRolTSPpkea9mNxITT5YmapRHSN3iZrYWYDhXav3GOnd5LLBXYrd4badlcxwWbElFWzgmZsdWU4JVaYV6bmdWYudDVhR7KhJEOhJnQw4EbKxEdvk4NiZTWmpnN7cVY9tmd9VGZEdzSZZTai9UO8BTYqVkbppWSiojITJCLiYDOEZ4MDJzMiojIIJCL8YzN7MzN8kjM0IicfJye35XX3JSSGljQiojIDJCLiITMuYHITpEIkFWZyB7UiojIOJyebpjIkJHUiwiI5MDM4kDMgMjM7ATOxAjMiojI4J7QiwiIuNmL636ZugXY4Fmbph6Yu8Waq9WYpRnL8FGdlJiOiMXbEJCLig1jlzahlDZmpnInmDoimH9pnnKplnatm19tl1ZpnXKtmnKplLiOiEmTDJCLikTM7QTMzkTM7QTNygTO4IiOiQWSiwSflNHbhZmOiI7ckJye0ICbuFkI1pjIEJCLi4TPBJGc9IFVrJFNwQDZ0tWUKpmS9kHUmZmN6YzZwcFeahEaNNWWmRmMTdVRFxWNRZTcwQzSpt4dthTNHhUbxATNj9Gdp3kNs3mcXZUZDFVQTt6aJJUO6diSM9";
} }
...@@ -1171,7 +1173,7 @@ function isSqwsb() { ...@@ -1171,7 +1173,7 @@ function isSqwsb() {
$.ajax({ $.ajax({
type : "post", type : "post",
url : URL +"/online_report/declare/getZzsZt", url : URL +"/ssfwpt/declare/getZzsZt",
dataType : "json", dataType : "json",
data:{ data:{
"djxh": djxh, "djxh": djxh,
...@@ -1278,7 +1280,7 @@ function dj(msg){ ...@@ -1278,7 +1280,7 @@ function dj(msg){
$.ajax({ $.ajax({
type : "post", type : "post",
url : URL +"/online_report/declare/sendZzsZt", url : URL +"/ssfwpt/declare/sendZzsZt",
dataType : "json", dataType : "json",
data:{ data:{
"sfgx": ispoint, "sfgx": ispoint,
...@@ -1314,7 +1316,7 @@ function statement10101_001_10(){ ...@@ -1314,7 +1316,7 @@ function statement10101_001_10(){
$.ajax({ $.ajax({
type : "post", type : "post",
url : URL +"/online_report/declare/getGovernmentWebsite", url : URL +"/ssfwpt/declare/getGovernmentWebsite",
dataType : "json", dataType : "json",
data:{ data:{
"djxh": djxh, "djxh": djxh,
...@@ -1357,7 +1359,7 @@ function statement10101_001_15(){ ...@@ -1357,7 +1359,7 @@ function statement10101_001_15(){
$.ajax({ $.ajax({
type : "post", type : "post",
url : URL +"/online_report/declare/getGovernmentWebsite", url : URL +"/ssfwpt/declare/getGovernmentWebsite",
dataType : "json", dataType : "json",
data:{ data:{
"djxh": djxh, "djxh": djxh,
......
...@@ -589,6 +589,7 @@ function saveData(operateType,isshenbao,isZcfxtx,isconfirm) { ...@@ -589,6 +589,7 @@ function saveData(operateType,isshenbao,isZcfxtx,isconfirm) {
return false return false
} }
var pagedata = JSON.parse(getResult()); var pagedata = JSON.parse(getResult());
// pagedata.taxInfo = localStorage.getItem("data");
if(GLOBAL_JSON.pzzlDm == "10101"){ if(GLOBAL_JSON.pzzlDm == "10101"){
var SYJJDJBZ = GLOBAL_JSON.param["SYJJDJBZ"]; var SYJJDJBZ = GLOBAL_JSON.param["SYJJDJBZ"];
if(!SYJJDJBZ ){ if(!SYJJDJBZ ){
...@@ -734,7 +735,7 @@ function saveData(operateType,isshenbao,isZcfxtx,isconfirm) { ...@@ -734,7 +735,7 @@ function saveData(operateType,isshenbao,isZcfxtx,isconfirm) {
spread.options.highlightInvalidData = false; spread.options.highlightInvalidData = false;
} }
showLoading(); showLoading();
var url = URL +"/online_report/declare/save"; var url = URL +"/ssfwpt/declare/save";
if(localStorage["cancellation"] && "cancellation" == localStorage["cancellation"]){ if(localStorage["cancellation"] && "cancellation" == localStorage["cancellation"]){
pagedata.operateType = 6; pagedata.operateType = 6;
}else{ }else{
...@@ -742,16 +743,16 @@ function saveData(operateType,isshenbao,isZcfxtx,isconfirm) { ...@@ -742,16 +743,16 @@ function saveData(operateType,isshenbao,isZcfxtx,isconfirm) {
} }
if (operateType == 4) { if (operateType == 4) {
url = URL +"/online_report/amend/save"; url = URL +"/ssfwpt/amend/save";
pagedata.qtxx = gzQtxx.qtxx; pagedata.qtxx = gzQtxx.qtxx;
} }
if("shenbao" == isshenbao){ if("shenbao" == isshenbao){
pagedata.operateType = null; pagedata.operateType = null;
url = URL +"/online_report/amend/save"; url = URL +"/ssfwpt/amend/save";
} }
if(true == isZcfxtx){ if(true == isZcfxtx){
url = URL +"/online_report/declare/zcfxts"; url = URL +"/ssfwpt/declare/zcfxts";
} }
if (operateType == 3) { if (operateType == 3) {
...@@ -768,7 +769,8 @@ function saveData(operateType,isshenbao,isZcfxtx,isconfirm) { ...@@ -768,7 +769,8 @@ function saveData(operateType,isshenbao,isZcfxtx,isconfirm) {
type: "POST", type: "POST",
url: url, url: url,
data: { data: {
data: JSON.stringify(pagedata) data: JSON.stringify(pagedata),
taxInfo: localStorage.getItem("data")
}, },
dataType: "json", dataType: "json",
success: function success(data, textStatus, jqXHR) { success: function success(data, textStatus, jqXHR) {
...@@ -906,7 +908,7 @@ function saveData(operateType,isshenbao,isZcfxtx,isconfirm) { ...@@ -906,7 +908,7 @@ function saveData(operateType,isshenbao,isZcfxtx,isconfirm) {
spread.options.highlightInvalidData = false; spread.options.highlightInvalidData = false;
} }
showLoading(); showLoading();
var url = URL +"/online_report/declare/save"; var url = URL +"/ssfwpt/declare/save";
if(localStorage["cancellation"] && "cancellation" == localStorage["cancellation"]){ if(localStorage["cancellation"] && "cancellation" == localStorage["cancellation"]){
pagedata.operateType = 6; pagedata.operateType = 6;
}else{ }else{
...@@ -914,16 +916,16 @@ function saveData(operateType,isshenbao,isZcfxtx,isconfirm) { ...@@ -914,16 +916,16 @@ function saveData(operateType,isshenbao,isZcfxtx,isconfirm) {
} }
if (operateType == 4) { if (operateType == 4) {
url = URL +"/online_report/amend/save"; url = URL +"/ssfwpt/amend/save";
pagedata.qtxx = gzQtxx.qtxx; pagedata.qtxx = gzQtxx.qtxx;
} }
if("shenbao" == isshenbao){ if("shenbao" == isshenbao){
pagedata.operateType = null; pagedata.operateType = null;
url = URL +"/online_report/amend/save"; url = URL +"/ssfwpt/amend/save";
} }
if(true == isZcfxtx){ if(true == isZcfxtx){
url = URL +"/online_report/declare/zcfxts"; url = URL +"/ssfwpt/declare/zcfxts";
} }
if (operateType == 3) { if (operateType == 3) {
...@@ -940,7 +942,8 @@ function saveData(operateType,isshenbao,isZcfxtx,isconfirm) { ...@@ -940,7 +942,8 @@ function saveData(operateType,isshenbao,isZcfxtx,isconfirm) {
type: "POST", type: "POST",
url: url, url: url,
data: { data: {
data: JSON.stringify(pagedata) data: JSON.stringify(pagedata),
taxInfo: localStorage.getItem("data")
}, },
dataType: "json", dataType: "json",
success: function success(data, textStatus, jqXHR) { success: function success(data, textStatus, jqXHR) {
...@@ -1078,7 +1081,7 @@ function saveData(operateType,isshenbao,isZcfxtx,isconfirm) { ...@@ -1078,7 +1081,7 @@ function saveData(operateType,isshenbao,isZcfxtx,isconfirm) {
spread.options.highlightInvalidData = false; spread.options.highlightInvalidData = false;
} }
showLoading(); showLoading();
var url = URL +"/online_report/declare/save"; var url = URL +"/ssfwpt/declare/save";
if(localStorage["cancellation"] && "cancellation" == localStorage["cancellation"]){ if(localStorage["cancellation"] && "cancellation" == localStorage["cancellation"]){
pagedata.operateType = 6; pagedata.operateType = 6;
}else{ }else{
...@@ -1086,16 +1089,16 @@ function saveData(operateType,isshenbao,isZcfxtx,isconfirm) { ...@@ -1086,16 +1089,16 @@ function saveData(operateType,isshenbao,isZcfxtx,isconfirm) {
} }
if (operateType == 4) { if (operateType == 4) {
url = URL +"/online_report/amend/save"; url = URL +"/ssfwpt/amend/save";
pagedata.qtxx = gzQtxx.qtxx; pagedata.qtxx = gzQtxx.qtxx;
} }
if("shenbao" == isshenbao){ if("shenbao" == isshenbao){
pagedata.operateType = null; pagedata.operateType = null;
url = URL +"/online_report/amend/save"; url = URL +"/ssfwpt/amend/save";
} }
if(true == isZcfxtx){ if(true == isZcfxtx){
url = URL +"/online_report/declare/zcfxts"; url = URL +"/ssfwpt/declare/zcfxts";
} }
if (operateType == 3) { if (operateType == 3) {
...@@ -1112,7 +1115,8 @@ function saveData(operateType,isshenbao,isZcfxtx,isconfirm) { ...@@ -1112,7 +1115,8 @@ function saveData(operateType,isshenbao,isZcfxtx,isconfirm) {
type: "POST", type: "POST",
url: url, url: url,
data: { data: {
data: JSON.stringify(pagedata) data: JSON.stringify(pagedata),
taxInfo: localStorage.getItem("data")
}, },
dataType: "json", dataType: "json",
success: function success(data, textStatus, jqXHR) { success: function success(data, textStatus, jqXHR) {
...@@ -1250,7 +1254,7 @@ function saveData(operateType,isshenbao,isZcfxtx,isconfirm) { ...@@ -1250,7 +1254,7 @@ function saveData(operateType,isshenbao,isZcfxtx,isconfirm) {
spread.options.highlightInvalidData = false; spread.options.highlightInvalidData = false;
} }
showLoading(); showLoading();
var url = URL +"/online_report/declare/save"; var url = URL +"/ssfwpt/declare/save";
if(localStorage["cancellation"] && "cancellation" == localStorage["cancellation"]){ if(localStorage["cancellation"] && "cancellation" == localStorage["cancellation"]){
pagedata.operateType = 6; pagedata.operateType = 6;
}else{ }else{
...@@ -1258,16 +1262,16 @@ function saveData(operateType,isshenbao,isZcfxtx,isconfirm) { ...@@ -1258,16 +1262,16 @@ function saveData(operateType,isshenbao,isZcfxtx,isconfirm) {
} }
if (operateType == 4) { if (operateType == 4) {
url = URL +"/online_report/amend/save"; url = URL +"/ssfwpt/amend/save";
pagedata.qtxx = gzQtxx.qtxx; pagedata.qtxx = gzQtxx.qtxx;
} }
if("shenbao" == isshenbao){ if("shenbao" == isshenbao){
pagedata.operateType = null; pagedata.operateType = null;
url = URL +"/online_report/amend/save"; url = URL +"/ssfwpt/amend/save";
} }
if(true == isZcfxtx){ if(true == isZcfxtx){
url = URL +"/online_report/declare/zcfxts"; url = URL +"/ssfwpt/declare/zcfxts";
} }
if (operateType == 3) { if (operateType == 3) {
...@@ -1284,7 +1288,8 @@ function saveData(operateType,isshenbao,isZcfxtx,isconfirm) { ...@@ -1284,7 +1288,8 @@ function saveData(operateType,isshenbao,isZcfxtx,isconfirm) {
type: "POST", type: "POST",
url: url, url: url,
data: { data: {
data: JSON.stringify(pagedata) data: JSON.stringify(pagedata),
taxInfo: localStorage.getItem("data")
}, },
dataType: "json", dataType: "json",
success: function success(data, textStatus, jqXHR) { success: function success(data, textStatus, jqXHR) {
......
...@@ -714,7 +714,7 @@ function get11901Info(){ ...@@ -714,7 +714,7 @@ function get11901Info(){
// 给11901_001所属行业下拉框赋值 // 给11901_001所属行业下拉框赋值
$.ajax({ $.ajax({
url: URL +"/online_report/declare/getHydmList", url: URL +"/ssfwpt/declare/getHydmList",
type: "post", type: "post",
dataType : "json", dataType : "json",
data: { }, data: { },
...@@ -733,7 +733,7 @@ function get11901Info(){ ...@@ -733,7 +733,7 @@ function get11901Info(){
}) })
// 登记注册类型下拉框 // 登记注册类型下拉框
$.ajax({ $.ajax({
url: URL +"/online_report/declare/getDjzclxList", url: URL +"/ssfwpt/declare/getDjzclxList",
type: "post", type: "post",
dataType : "json", dataType : "json",
data: { }, data: { },
...@@ -2681,6 +2681,7 @@ function getYhsData(flag) { ...@@ -2681,6 +2681,7 @@ function getYhsData(flag) {
startRowIndex++ startRowIndex++
} }
var Item = List[i]; var Item = List[i];
console.log(Item)
setCellValue(0, startRowIndex, 2, (Item.zspmDm + ' ' + Item.zspmMc)); setCellValue(0, startRowIndex, 2, (Item.zspmDm + ' ' + Item.zspmMc));
if(Item.zspmDm == "101110501"){ if(Item.zspmDm == "101110501"){
setCellValue(0, startRowIndex, 9, "0009129906"); setCellValue(0, startRowIndex, 9, "0009129906");
...@@ -3585,7 +3586,7 @@ function get10426Jmxz(flag){ ...@@ -3585,7 +3586,7 @@ function get10426Jmxz(flag){
// var jmxz; // var jmxz;
// $.ajax({ // $.ajax({
// type: "post", // type: "post",
// url: URL +"/online_report/declare/getJmxzList", // url: URL +"/ssfwpt/declare/getJmxzList",
// dataType: "json", // dataType: "json",
// async: false, // async: false,
// success: function(data){ // success: function(data){
...@@ -3721,7 +3722,7 @@ function get10426Jmxz(flag){ ...@@ -3721,7 +3722,7 @@ function get10426Jmxz(flag){
setCellValue(sheetIndex_002, startIndex, 3, qtjgnsrmc ? qtjgnsrmc : ""); setCellValue(sheetIndex_002, startIndex, 3, qtjgnsrmc ? qtjgnsrmc : "");
$.ajax({ $.ajax({
type: "post", type: "post",
url: URL +"/online_report/declare/getXzqhList", url: URL +"/ssfwpt/declare/getXzqhList",
dataType: "json", dataType: "json",
data: { data: {
code: qtjgcsxzqh code: qtjgcsxzqh
...@@ -3764,7 +3765,7 @@ function get10426Jmxz(flag){ ...@@ -3764,7 +3765,7 @@ function get10426Jmxz(flag){
if(zyjgcsxzqh && sheetIndex_002){ if(zyjgcsxzqh && sheetIndex_002){
$.ajax({ $.ajax({
type: "post", type: "post",
url: URL +"/online_report/declare/getXzqhList", url: URL +"/ssfwpt/declare/getXzqhList",
dataType: "json", dataType: "json",
data: { data: {
code: zyjgcsxzqh code: zyjgcsxzqh
...@@ -4004,7 +4005,7 @@ function get10425Info(){ ...@@ -4004,7 +4005,7 @@ function get10425Info(){
var jmxz; var jmxz;
$.ajax({ $.ajax({
type: "post", type: "post",
url: URL +"/online_report/declare/getJmxzList", url: URL +"/ssfwpt/declare/getJmxzList",
dataType: "json", dataType: "json",
async: false, async: false,
success: function(data){ success: function(data){
...@@ -4899,7 +4900,7 @@ function setFcsData(mainNewData,isMain,flag) { ...@@ -4899,7 +4900,7 @@ function setFcsData(mainNewData,isMain,flag) {
function setInfo_10427(){ function setInfo_10427(){
setCellValue(0, 1, 1, "税款所属时间:" + new Date().format("yyyy-MM-dd ") + "至" + new Date().format("yyyy-MM-dd ")); setCellValue(0, 1, 1, "税款所属时间:" + new Date().format("yyyy-MM-dd ") + "至" + new Date().format("yyyy-MM-dd "));
$.ajax({ $.ajax({
url: URL +"/online_report/declare/getCountryList", url: URL +"/ssfwpt/declare/getCountryList",
type: "post", type: "post",
dataType : "json", dataType : "json",
data: { }, data: { },
......
...@@ -61,7 +61,7 @@ function getLeftItemBy29852(arr,index_){ ...@@ -61,7 +61,7 @@ function getLeftItemBy29852(arr,index_){
var index = spread.getSheetIndex(name); var index = spread.getSheetIndex(name);
if (bbmc !== undefined) { if (bbmc !== undefined) {
if (isSheetRequired) { if (isSheetRequired) {
bbmc = bbmc + ' <span style="color:red">(必填)</span>' bbmc = ' <span style="color:red">【必填表】</span>' +bbmc
} }
html += "<div class='left-item' data-table='" + name + "' data-index='" + index + "'>" + bbmc + "</div>"; html += "<div class='left-item' data-table='" + name + "' data-index='" + index + "'>" + bbmc + "</div>";
activeIndex.push(index); activeIndex.push(index);
...@@ -178,7 +178,7 @@ function get10427Info(index){ ...@@ -178,7 +178,7 @@ function get10427Info(index){
setCellValue(index, 61, 4, wdz.trim() == "" ? "" : (wdz + ";" + wyb)); setCellValue(index, 61, 4, wdz.trim() == "" ? "" : (wdz + ";" + wyb));
// setCellValue(index, 62, 4, wdq); // setCellValue(index, 62, 4, wdq);
$.ajax({ $.ajax({
url: URL +"/online_report/declare/getCountryList", url: URL +"/ssfwpt/declare/getCountryList",
type: "post", type: "post",
async:false, async:false,
dataType : "json", dataType : "json",
...@@ -196,7 +196,7 @@ function get10427Info(index){ ...@@ -196,7 +196,7 @@ function get10427Info(index){
} }
}) })
$.ajax({ $.ajax({
url: URL +"/online_report/declare/getSsxdmcList", url: URL +"/ssfwpt/declare/getSsxdmcList",
type: "post", type: "post",
async:false, async:false,
dataType : "json", dataType : "json",
...@@ -260,7 +260,7 @@ function addLeftItem(flag, NBindex) { ...@@ -260,7 +260,7 @@ function addLeftItem(flag, NBindex) {
var index = spread.getSheetIndex(name); var index = spread.getSheetIndex(name);
if (bbmc !== undefined) { if (bbmc !== undefined) {
if (isSheetRequired) { if (isSheetRequired) {
bbmc = bbmc + ' <span style="color:red">(必填)</span>' bbmc = ' <span style="color:red">【必填表】</span>' +bbmc
} }
//TODO //TODO
...@@ -280,7 +280,7 @@ function addLeftItem(flag, NBindex) { ...@@ -280,7 +280,7 @@ function addLeftItem(flag, NBindex) {
var index = spread.getSheetIndex(name); var index = spread.getSheetIndex(name);
if (bbmc !== undefined) { if (bbmc !== undefined) {
if (isSheetRequired) { if (isSheetRequired) {
bbmc = bbmc + ' <span style="color:red">(必填)</span>' bbmc = ' <span style="color:red">【必填表】</span>' + bbmc
} }
//TODO //TODO
...@@ -1147,7 +1147,7 @@ function get12402SbJkNsName(type,dm,col,row,index){ ...@@ -1147,7 +1147,7 @@ function get12402SbJkNsName(type,dm,col,row,index){
} }
$.ajax({ $.ajax({
type: "post", type: "post",
url: URL +"/online_report/declare/getCcsqxdmList", url: URL +"/ssfwpt/declare/getCcsqxdmList",
dataType: "json", dataType: "json",
data: obj, data: obj,
success: function(data){ success: function(data){
...@@ -1172,7 +1172,7 @@ function get12402ZgswsKFJ(dm,col,tablename){ ...@@ -1172,7 +1172,7 @@ function get12402ZgswsKFJ(dm,col,tablename){
} }
$.ajax({ $.ajax({
type: "post", type: "post",
url: URL +"/online_report/declare/getCcsswjgdmData", url: URL +"/ssfwpt/declare/getCcsswjgdmData",
dataType: "json", dataType: "json",
data: obj, data: obj,
success: function(data){ success: function(data){
...@@ -1644,7 +1644,7 @@ function get12501MergeInfo(name){ ...@@ -1644,7 +1644,7 @@ function get12501MergeInfo(name){
$.ajax({ $.ajax({
type : "post", type : "post",
url : URL +"/online_report/declare/get12501zb", url : URL +"/ssfwpt/declare/get12501zb",
dataType : "json", dataType : "json",
data:{ data:{
"beans": JSON.stringify(json) "beans": JSON.stringify(json)
...@@ -2645,7 +2645,7 @@ function bindCellClickEvent() { ...@@ -2645,7 +2645,7 @@ function bindCellClickEvent() {
// if("E64" == pos){ // if("E64" == pos){
// var info = ""; // var info = "";
// $.ajax({ // $.ajax({
// url: URL +"/online_report/declare/getSsxdmcList", // url: URL +"/ssfwpt/declare/getSsxdmcList",
// type: "post", // type: "post",
// async:false, // async:false,
// dataType : "json", // dataType : "json",
...@@ -3184,7 +3184,7 @@ function bindCellClickEvent() { ...@@ -3184,7 +3184,7 @@ function bindCellClickEvent() {
var arr = []; var arr = [];
$.ajax({ $.ajax({
type: "post", type: "post",
url: URL +"/online_report/declare/getSsxd", url: URL +"/ssfwpt/declare/getSsxd",
dataType: "json", dataType: "json",
async: false, async: false,
data: { data: {
...@@ -3468,7 +3468,7 @@ function bindValueChanged() { ...@@ -3468,7 +3468,7 @@ function bindValueChanged() {
case '10119_001': case '10119_001':
if("D9" == pos && info.newValue && info.newValue.split(" ").length > 1){ if("D9" == pos && info.newValue && info.newValue.split(" ").length > 1){
$.ajax({ $.ajax({
url: URL +"/online_report/declare/getClscjxByXzqhData", url: URL +"/ssfwpt/declare/getClscjxByXzqhData",
type: "post", type: "post",
dataType : "json", dataType : "json",
data: { data: {
...@@ -3486,7 +3486,7 @@ function bindValueChanged() { ...@@ -3486,7 +3486,7 @@ function bindValueChanged() {
} }
if("F9" == pos && info.newValue && info.newValue.split(" ").length > 1){ if("F9" == pos && info.newValue && info.newValue.split(" ").length > 1){
$.ajax({ $.ajax({
url: URL +"/online_report/declare/getCcsswjgdmData", url: URL +"/ssfwpt/declare/getCcsswjgdmData",
type: "post", type: "post",
dataType : "json", dataType : "json",
data: { data: {
...@@ -4018,7 +4018,7 @@ function bindValueChanged() { ...@@ -4018,7 +4018,7 @@ function bindValueChanged() {
setCellValue(activeSheetIndex, row, 12, info.newValue.split(" ")[2]); setCellValue(activeSheetIndex, row, 12, info.newValue.split(" ")[2]);
}else{ }else{
$.ajax({ $.ajax({
url: URL +"/online_report/declare/getCountryList", url: URL +"/ssfwpt/declare/getCountryList",
type: "post", type: "post",
async:false, async:false,
dataType : "json", dataType : "json",
...@@ -4037,7 +4037,7 @@ function bindValueChanged() { ...@@ -4037,7 +4037,7 @@ function bindValueChanged() {
} }
// $.ajax({ // $.ajax({
// url: URL +"/online_report/declare/getSsxdmcList", // url: URL +"/ssfwpt/declare/getSsxdmcList",
// type: "post", // type: "post",
// dataType : "json", // dataType : "json",
// data: { // data: {
...@@ -4440,7 +4440,7 @@ function bindValueChanged() { ...@@ -4440,7 +4440,7 @@ function bindValueChanged() {
} }
if("I" == pos1_ && info.newValue){ if("I" == pos1_ && info.newValue){
$.ajax({ $.ajax({
url: URL +"/online_report/declare/getSyseList", url: URL +"/ssfwpt/declare/getSyseList",
type: "post", type: "post",
dataType : "json", dataType : "json",
data: { data: {
...@@ -4455,7 +4455,7 @@ function bindValueChanged() { ...@@ -4455,7 +4455,7 @@ function bindValueChanged() {
} }
if (pos1_ == 'H' && info.newValue) { if (pos1_ == 'H' && info.newValue) {
$.ajax({ $.ajax({
url: URL +"/online_report/declare/getZszmByZspmData", url: URL +"/ssfwpt/declare/getZszmByZspmData",
type: "post", type: "post",
dataType : "json", dataType : "json",
data: { data: {
...@@ -6061,7 +6061,7 @@ function bindValueChanged() { ...@@ -6061,7 +6061,7 @@ function bindValueChanged() {
if(info.newValue){ if(info.newValue){
var xzhqDm = info.newValue.split(" ")[0]; var xzhqDm = info.newValue.split(" ")[0];
$.ajax({ $.ajax({
url: URL +"/online_report/declare/getClscjxByXzqhData", url: URL +"/ssfwpt/declare/getClscjxByXzqhData",
type: "post", type: "post",
dataType : "json", dataType : "json",
data: { data: {
...@@ -6302,7 +6302,7 @@ function bindValueChanged() { ...@@ -6302,7 +6302,7 @@ function bindValueChanged() {
$.ajax({ $.ajax({
type : "post", type : "post",
url : URL +"/online_report/declare/getCcsswjgdmData", url : URL +"/ssfwpt/declare/getCcsswjgdmData",
data: { data: {
zspmDm: zspmDm zspmDm: zspmDm
}, },
...@@ -6327,7 +6327,7 @@ function bindValueChanged() { ...@@ -6327,7 +6327,7 @@ function bindValueChanged() {
if(info.newValue){ if(info.newValue){
var xzhqDm = info.newValue.split(" ")[0]; var xzhqDm = info.newValue.split(" ")[0];
$.ajax({ $.ajax({
url: URL +"/online_report/declare/getClscjxByXzqhData", url: URL +"/ssfwpt/declare/getClscjxByXzqhData",
type: "post", type: "post",
dataType : "json", dataType : "json",
data: { data: {
...@@ -7172,7 +7172,7 @@ function bindValueChanged() { ...@@ -7172,7 +7172,7 @@ function bindValueChanged() {
console.log(info.newValue.split(" ")[0]) console.log(info.newValue.split(" ")[0])
$.ajax({ $.ajax({
type : "post", type : "post",
url : URL +"/online_report/declare/get12502_001Beanspm", url : URL +"/ssfwpt/declare/get12502_001Beanspm",
dataType : "json", dataType : "json",
data:{ data:{
"wrlb": info.newValue.split(" ")[0], "wrlb": info.newValue.split(" ")[0],
...@@ -7252,7 +7252,7 @@ function getSlByZspmZszmFor12501(zspm,zszm){ ...@@ -7252,7 +7252,7 @@ function getSlByZspmZszmFor12501(zspm,zszm){
// 税率带入值 // 税率带入值
$.ajax({ $.ajax({
type : "post", type : "post",
url : URL +"/online_report/declare/get12501_002sl", url : URL +"/ssfwpt/declare/get12501_002sl",
dataType : "json", dataType : "json",
async : false, async : false,
data:{ data:{
...@@ -7277,7 +7277,7 @@ function getWrdlzByZspmZszm(zspm,zszm){ ...@@ -7277,7 +7277,7 @@ function getWrdlzByZspmZszm(zspm,zszm){
var wrdlz = 0; var wrdlz = 0;
$.ajax({ $.ajax({
type : "post", type : "post",
url : URL +"/online_report/declare/getwrdlz", url : URL +"/ssfwpt/declare/getwrdlz",
dataType : "json", dataType : "json",
async : false, async : false,
data:{ data:{
...@@ -7303,7 +7303,7 @@ function getZszmByZspm(zspm){ ...@@ -7303,7 +7303,7 @@ function getZszmByZspm(zspm){
var arr = []; var arr = [];
$.ajax({ $.ajax({
type : "post", type : "post",
url : URL +"/online_report/declare/getHbsZszmBean", url : URL +"/ssfwpt/declare/getHbsZszmBean",
dataType : "json", dataType : "json",
async : false, async : false,
data:{ data:{
......
...@@ -94,7 +94,7 @@ function selectNb() { ...@@ -94,7 +94,7 @@ function selectNb() {
var selectTableArr = getSelect_10414_002(); // 获取被选中的表 var selectTableArr = getSelect_10414_002(); // 获取被选中的表
$.ajax({ $.ajax({
type: "POST", type: "POST",
url: URL +"/online_report/declare/save", url: URL +"/ssfwpt/declare/save",
data: { data: {
data: JSON.stringify(NB_cache_data) data: JSON.stringify(NB_cache_data)
}, },
...@@ -1312,16 +1312,16 @@ function saveData(operateType,isZcfxtx) { ...@@ -1312,16 +1312,16 @@ function saveData(operateType,isZcfxtx) {
spread.options.highlightInvalidData = false; spread.options.highlightInvalidData = false;
} }
showLoading(); showLoading();
var url = URL +"/online_report/declare/save"; var url = URL +"/ssfwpt/declare/save";
pagedata.operateType = operateType; pagedata.operateType = operateType;
if (operateType == 4) { if (operateType == 4) {
url = URL +"/online_report/amend/save"; url = URL +"/ssfwpt/amend/save";
} }
if (isGZflag) { if (isGZflag) {
url = URL +"/online_report/amend/save"; url = URL +"/ssfwpt/amend/save";
} }
if (true == isZcfxtx) { if (true == isZcfxtx) {
url = URL +"/online_report/declare/zcfxts"; url = URL +"/ssfwpt/declare/zcfxts";
} }
if (operateType == 3) { if (operateType == 3) {
if(localStorage["isZcfxFlag"] && "true" == localStorage["isZcfxFlag"]){ if(localStorage["isZcfxFlag"] && "true" == localStorage["isZcfxFlag"]){
...@@ -1522,13 +1522,13 @@ function saveData_003(operateType) { ...@@ -1522,13 +1522,13 @@ function saveData_003(operateType) {
spread.options.highlightInvalidData = false; spread.options.highlightInvalidData = false;
} }
// showLoading(); // showLoading();
var url = URL +"/online_report/declare/save"; var url = URL +"/ssfwpt/declare/save";
pagedata.operateType = operateType; pagedata.operateType = operateType;
if (operateType == 4) { if (operateType == 4) {
url = URL +"/online_report/amend/save"; url = URL +"/ssfwpt/amend/save";
} }
if (isGZflag) { if (isGZflag) {
url = URL +"/online_report/amend/save"; url = URL +"/ssfwpt/amend/save";
} }
pagedata.data = GLOBAL_INITJSON; //更正保存增加参数--20181225 ygy pagedata.data = GLOBAL_INITJSON; //更正保存增加参数--20181225 ygy
console.log("■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■"); console.log("■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■");
......
...@@ -336,7 +336,7 @@ function bindValueChanged() { ...@@ -336,7 +336,7 @@ function bindValueChanged() {
// var arr = []; // var arr = [];
// $.ajax({ // $.ajax({
// type: "post", // type: "post",
// url: URL +"/online_report/declare/getFylyxmd2019List", // url: URL +"/ssfwpt/declare/getFylyxmd2019List",
// dataType: "json", // dataType: "json",
// async: false, // async: false,
// data: {}, // data: {},
...@@ -868,7 +868,7 @@ function bindNbCellClickEvent() { ...@@ -868,7 +868,7 @@ function bindNbCellClickEvent() {
// var arr = []; // var arr = [];
// $.ajax({ // $.ajax({
// type: "post", // type: "post",
// url: URL +"/online_report/declare/getFylyxmd2019List", // url: URL +"/ssfwpt/declare/getFylyxmd2019List",
// dataType: "json", // dataType: "json",
// async: false, // async: false,
// data: {}, // data: {},
...@@ -1177,7 +1177,7 @@ function getDmbList(lx, dm) { ...@@ -1177,7 +1177,7 @@ function getDmbList(lx, dm) {
var list = [] var list = []
$.ajax({ $.ajax({
type: "POST", type: "POST",
url: URL +"/online_report/declare/getGxjslyList", url: URL +"/ssfwpt/declare/getGxjslyList",
data: { data: {
level: lx, level: lx,
code: dm code: dm
...@@ -1458,7 +1458,7 @@ function compare10414_027(index){ ...@@ -1458,7 +1458,7 @@ function compare10414_027(index){
var arr = []; var arr = [];
$.ajax({ $.ajax({
type: "post", type: "post",
url: URL +"/online_report/declare/getFylyxmd2019List", url: URL +"/ssfwpt/declare/getFylyxmd2019List",
dataType: "json", dataType: "json",
async: false, async: false,
data: {}, data: {},
...@@ -1843,7 +1843,7 @@ function getSwjgDm(lx, dm) { ...@@ -1843,7 +1843,7 @@ function getSwjgDm(lx, dm) {
}, },
dataType: "json", dataType: "json",
type: 'POST', type: 'POST',
url: URL +'/online_report/declare/getCcsswjgdmData', url: URL +'/ssfwpt/declare/getCcsswjgdmData',
success: function (data) { success: function (data) {
// console.log(data); // console.log(data);
var html = ''; var html = '';
......
...@@ -54,8 +54,8 @@ function addLeftItem(flag, NBindex) { ...@@ -54,8 +54,8 @@ function addLeftItem(flag, NBindex) {
if (bbmc !== undefined) { if (bbmc !== undefined) {
if (isSheetRequired) { if (isSheetRequired) {
//年报特殊处理 //年报特殊处理
bbmc = bbmc + ((bbdm != "10414_001" && bbdm != "10414_002") ? bbmc = ((bbdm != "10414_001" && bbdm != "10414_002") ?
' <span style="color:red">(必填)</span>' : '') ' <span style="color:red">【必填表】</span>' : '') + bbmc
} }
//TODO //TODO
......
...@@ -106,7 +106,7 @@ function selectNb() { ...@@ -106,7 +106,7 @@ function selectNb() {
NB_cache_data.data = GLOBAL_INITJSON; //更正保存增加参数--20181225 ygy NB_cache_data.data = GLOBAL_INITJSON; //更正保存增加参数--20181225 ygy
$.ajax({ $.ajax({
type: "POST", type: "POST",
url: URL +"/online_report/declare/save", url: URL +"/ssfwpt/declare/save",
data: { data: {
data: JSON.stringify(NB_cache_data) data: JSON.stringify(NB_cache_data)
}, },
...@@ -1121,14 +1121,14 @@ function saveData(operateType) { ...@@ -1121,14 +1121,14 @@ function saveData(operateType) {
spread.options.highlightInvalidData = false; spread.options.highlightInvalidData = false;
} }
showLoading(); showLoading();
var url = URL +"/online_report/declare/save"; var url = URL +"/ssfwpt/declare/save";
pagedata.operateType = operateType; pagedata.operateType = operateType;
if (operateType == 4) { if (operateType == 4) {
url = URL +"/online_report/amend/save"; url = URL +"/ssfwpt/amend/save";
} }
if(isGZflag){ if(isGZflag){
url = URL +"/online_report/amend/save"; url = URL +"/ssfwpt/amend/save";
} }
pagedata.data = GLOBAL_INITJSON; //更正保存增加参数--20181225 ygy pagedata.data = GLOBAL_INITJSON; //更正保存增加参数--20181225 ygy
console.log("■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■"); console.log("■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■");
......
...@@ -94,7 +94,7 @@ function getJmxz_019(){ ...@@ -94,7 +94,7 @@ function getJmxz_019(){
//判断有没有这张表 //判断有没有这张表
$.ajax({ $.ajax({
type: "POST", type: "POST",
url: URL +"/online_report/declare/getZwbzList", url: URL +"/ssfwpt/declare/getZwbzList",
dataType: "json", dataType: "json",
async: false, async: false,
success: function success(datas, textStatus, jqXHR) { success: function success(datas, textStatus, jqXHR) {
...@@ -120,7 +120,7 @@ function getJmxz_020(){ ...@@ -120,7 +120,7 @@ function getJmxz_020(){
//判断有没有这张表 //判断有没有这张表
$.ajax({ $.ajax({
type: "POST", type: "POST",
url: URL +"/online_report/declare/getYwbzList", url: URL +"/ssfwpt/declare/getYwbzList",
dataType: "json", dataType: "json",
async: false, async: false,
success: function success(datas, textStatus, jqXHR) { success: function success(datas, textStatus, jqXHR) {
...@@ -796,26 +796,26 @@ function getVal_GDXX(index) { ...@@ -796,26 +796,26 @@ function getVal_GDXX(index) {
function getDmbList(lx, dm, isShengJi, isGuanLian) { function getDmbList(lx, dm, isShengJi, isGuanLian) {
var list = []; var list = [];
var url = URL +"/online_report/declare/getHydmList"; var url = URL +"/ssfwpt/declare/getHydmList";
var obj = { var obj = {
lx: lx, lx: lx,
dm: dm dm: dm
} }
if(isShengJi){ if(isShengJi){
url = URL +"/online_report/declare/getDjsList"; url = URL +"/ssfwpt/declare/getDjsList";
obj = { obj = {
shengJiDm: dm shengJiDm: dm
} }
} }
if(isGuanLian){ if(isGuanLian){
url = URL +"/online_report/declare/getglgxList"; url = URL +"/ssfwpt/declare/getglgxList";
obj = { obj = {
lx: lx, lx: lx,
dm: dm dm: dm
} }
} }
if (isGuanLian && (dm == "10420_006" || dm == "10420_008")) { if (isGuanLian && (dm == "10420_006" || dm == "10420_008")) {
url = URL +"/online_report/declare/getGljynr"; url = URL +"/ssfwpt/declare/getGljynr";
obj = { obj = {
code: dm code: dm
} }
......
...@@ -47,8 +47,8 @@ function addLeftItem(flag, NBindex) { ...@@ -47,8 +47,8 @@ function addLeftItem(flag, NBindex) {
if (bbmc !== undefined) { if (bbmc !== undefined) {
if (isSheetRequired) { if (isSheetRequired) {
//年报特殊处理 //年报特殊处理
bbmc = bbmc + ((bbdm != "10414_001" && bbdm != "10414_002") ? bbmc = ((bbdm != "10414_001" && bbdm != "10414_002") ?
' <span style="color:red">(必填)</span>' : '') ' <span style="color:red">【必填表】</span>' : '') +bbmc
} }
//TODO //TODO
......
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