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