Commit ad03be18 authored by 于广洋's avatar 于广洋

修改url 增加根据token获取企业和人员信息

parent cc123e5e
......@@ -2,53 +2,53 @@
<html>
<head>
<mete charset='UTF-8'>
<title>费申报与缴纳测试入口</title>
<title>˰���걨����ɲ������</title>
</head>
<body>
<form id="testForm" action="/online_report/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">
<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">
<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">
<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";
......@@ -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)
}
})
......
......@@ -80,6 +80,7 @@
<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=""></script>
<script src="/web/onlineReport/static/biz/amend_grid.js?v=1.0"></script>
<script>
// <!-- // 使用 el 表达式,将返回的信息写到此处,然后调用页面绘制方法绘制页面
......@@ -94,7 +95,7 @@
var initpage;
$(function(){
//
var url = localStorage.getItem("url");
var url = "http://192.168.105.153:8091";
function GetQueryValue(queryName) {
var query = decodeURI(window.location.search.substring(1));
var vars = query.split("&");
......
......@@ -73,7 +73,7 @@
var initpage;
$(function(){
//
var url = localStorage.getItem("url");
var url = "http://192.168.105.153:8091";
function GetQueryValue(queryName) {
var query = decodeURI(window.location.search.substring(1));
var vars = query.split("&");
......
......@@ -144,7 +144,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");
......
......@@ -111,7 +111,7 @@
var initpage;
$(function(){
//
var url = localStorage.getItem("url");
var url = "http://192.168.105.153:8091";
function GetQueryValue(queryName) {
var query = decodeURI(window.location.search.substring(1));
var vars = query.split("&");
......
......@@ -482,7 +482,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;
......
......@@ -253,7 +253,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;
......
......@@ -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") {
......
......@@ -116,7 +116,7 @@
var initpage;
$(function(){
//
var url = localStorage.getItem("url");
var url = "http://192.168.105.153:8091";
function GetQueryValue(queryName) {
var query = decodeURI(window.location.search.substring(1));
var vars = query.split("&");
......
......@@ -232,7 +232,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 getTaxAmendData = function(param) {
// TODO 开始加载等待动画
showLoading();
......
......@@ -178,7 +178,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 getTaxDeclaration = function(date, type) {
// TODO 开始加载等待动画
showLoading();
......
......@@ -130,7 +130,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 getTaxDeclaration = function(date, type) {
// TODO 开始加载等待动画
showLoading();
......
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 = ""
$.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======================")
}
})
}
getJgxxRyxx();
/**
* @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;
}
\ No newline at end of file
......@@ -176,7 +176,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();
......
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