Commit 6de5fd82 authored by yangyuxin's avatar yangyuxin

把分离方法tax的调用方法 所以的url都修改

parent 4365be8d
......@@ -1243,7 +1243,7 @@ function dj(msg){
$.ajax({
type : "post",
url : "/online_report/declare/sendZzsZt",
url : URL + "/online_report/declare/sendZzsZt",
dataType : "json",
data:{
"sfgx": ispoint,
......@@ -1279,7 +1279,7 @@ function statement10101_001_10(){
$.ajax({
type : "post",
url : "/online_report/declare/getGovernmentWebsite",
url : URL + "/online_report/declare/getGovernmentWebsite",
dataType : "json",
data:{
"djxh": djxh,
......@@ -1322,7 +1322,7 @@ function statement10101_001_15(){
$.ajax({
type : "post",
url : "/online_report/declare/getGovernmentWebsite",
url : URL + "/online_report/declare/getGovernmentWebsite",
dataType : "json",
data:{
"djxh": djxh,
......
......@@ -710,7 +710,7 @@ function saveData(operateType,isshenbao,isZcfxtx,isconfirm) {
spread.options.highlightInvalidData = false;
}
showLoading();
var url = "/online_report/declare/save";
var url = URL + "/online_report/declare/save";
if(localStorage["cancellation"] && "cancellation" == localStorage["cancellation"]){
pagedata.operateType = 6;
}else{
......@@ -718,16 +718,16 @@ function saveData(operateType,isshenbao,isZcfxtx,isconfirm) {
}
if (operateType == 4) {
url = "/online_report/amend/save";
url = URL + "/online_report/amend/save";
pagedata.qtxx = gzQtxx.qtxx;
}
if("shenbao" == isshenbao){
pagedata.operateType = null;
url = "/online_report/amend/save";
url = URL + "/online_report/amend/save";
}
if(true == isZcfxtx){
url = "/online_report/declare/zcfxts";
url = URL + "/online_report/declare/zcfxts";
}
if (operateType == 3) {
......@@ -882,7 +882,7 @@ function saveData(operateType,isshenbao,isZcfxtx,isconfirm) {
spread.options.highlightInvalidData = false;
}
showLoading();
var url = "/online_report/declare/save";
var url = URL + "/online_report/declare/save";
if(localStorage["cancellation"] && "cancellation" == localStorage["cancellation"]){
pagedata.operateType = 6;
}else{
......@@ -890,16 +890,16 @@ function saveData(operateType,isshenbao,isZcfxtx,isconfirm) {
}
if (operateType == 4) {
url = "/online_report/amend/save";
url = URL + "/online_report/amend/save";
pagedata.qtxx = gzQtxx.qtxx;
}
if("shenbao" == isshenbao){
pagedata.operateType = null;
url = "/online_report/amend/save";
url = URL + "/online_report/amend/save";
}
if(true == isZcfxtx){
url = "/online_report/declare/zcfxts";
url = URL + "/online_report/declare/zcfxts";
}
if (operateType == 3) {
......@@ -1054,7 +1054,7 @@ function saveData(operateType,isshenbao,isZcfxtx,isconfirm) {
spread.options.highlightInvalidData = false;
}
showLoading();
var url = "/online_report/declare/save";
var url = URL + "/online_report/declare/save";
if(localStorage["cancellation"] && "cancellation" == localStorage["cancellation"]){
pagedata.operateType = 6;
}else{
......@@ -1062,16 +1062,16 @@ function saveData(operateType,isshenbao,isZcfxtx,isconfirm) {
}
if (operateType == 4) {
url = "/online_report/amend/save";
url = URL + "/online_report/amend/save";
pagedata.qtxx = gzQtxx.qtxx;
}
if("shenbao" == isshenbao){
pagedata.operateType = null;
url = "/online_report/amend/save";
url = URL + "/online_report/amend/save";
}
if(true == isZcfxtx){
url = "/online_report/declare/zcfxts";
url = URL + "/online_report/declare/zcfxts";
}
if (operateType == 3) {
......@@ -1226,7 +1226,7 @@ function saveData(operateType,isshenbao,isZcfxtx,isconfirm) {
spread.options.highlightInvalidData = false;
}
showLoading();
var url = "/online_report/declare/save";
var url = URL + "/online_report/declare/save";
if(localStorage["cancellation"] && "cancellation" == localStorage["cancellation"]){
pagedata.operateType = 6;
}else{
......@@ -1234,16 +1234,16 @@ function saveData(operateType,isshenbao,isZcfxtx,isconfirm) {
}
if (operateType == 4) {
url = "/online_report/amend/save";
url = URL + "/online_report/amend/save";
pagedata.qtxx = gzQtxx.qtxx;
}
if("shenbao" == isshenbao){
pagedata.operateType = null;
url = "/online_report/amend/save";
url = URL + "/online_report/amend/save";
}
if(true == isZcfxtx){
url = "/online_report/declare/zcfxts";
url = URL + "/online_report/declare/zcfxts";
}
if (operateType == 3) {
......@@ -1643,6 +1643,7 @@ function getGlobalBaseInfo() {
}else {
setSyYf();
if("12501" != GLOBAL_JSON.pzzlDm && "10427" != GLOBAL_JSON.pzzlDm){
console.log("123456")
getStroageData(); // 获取暂存数据
}
}
......@@ -1821,6 +1822,7 @@ function getTableVlaue(param) {
}
var tables = GLOBAL_JSON.tables;
console.log(GLOBAL_JSON)
tables.map(function (table) {
var tableName = 'table_' + table.bbdm;
if("11602_002" != table.bbdm){
......
......@@ -712,7 +712,7 @@ function get11901Info(){
// 给11901_001所属行业下拉框赋值
$.ajax({
url: "/online_report/declare/getHydmList",
url: URL + "/online_report/declare/getHydmList",
type: "post",
dataType : "json",
data: { },
......@@ -731,7 +731,7 @@ function get11901Info(){
})
// 登记注册类型下拉框
$.ajax({
url: "/online_report/declare/getDjzclxList",
url: URL + "/online_report/declare/getDjzclxList",
type: "post",
dataType : "json",
data: { },
......@@ -3535,7 +3535,7 @@ function get10426Jmxz(){
var jmxz;
$.ajax({
type: "post",
url: "/online_report/declare/getJmxzList",
url: URL + "/online_report/declare/getJmxzList",
dataType: "json",
async: false,
success: function(data){
......@@ -3759,7 +3759,7 @@ function get10426Jmxz(){
setCellValue(sheetIndex_002, startIndex, 3, qtjgnsrmc ? qtjgnsrmc : "");
$.ajax({
type: "post",
url: "/online_report/declare/getXzqhList",
url: URL + "/online_report/declare/getXzqhList",
dataType: "json",
data: {
code: qtjgcsxzqh
......@@ -3833,7 +3833,7 @@ function get10426Jmxz(){
if(zyjgcsxzqh && sheetIndex_002){
$.ajax({
type: "post",
url: "/online_report/declare/getXzqhList",
url: URL + "/online_report/declare/getXzqhList",
dataType: "json",
data: {
code: zyjgcsxzqh
......@@ -4053,7 +4053,7 @@ function get10425Info(){
var jmxz;
$.ajax({
type: "post",
url: "/online_report/declare/getJmxzList",
url: URL + "/online_report/declare/getJmxzList",
dataType: "json",
async: false,
success: function(data){
......@@ -4948,7 +4948,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: "/online_report/declare/getCountryList",
url: URL + "/online_report/declare/getCountryList",
type: "post",
dataType : "json",
data: { },
......
......@@ -62,7 +62,7 @@ function getIEVersion() {
_show: function _show(title) {
var _html = '<div id="mb_box1"></div><div id="mb_con1"><span id="mb_tit1">' + title + '</span>';
_html += '<img id="mb_img1" src="/online_report/static/tools/images/close.png">';
_html += '<img id="mb_img1" src="/static/tools/images/close.png">';
_html += '<div id="mb_msg1"></div>';
//必须先将_html添加到body,再设置Css样式
$("body").append(_html);
......@@ -316,7 +316,7 @@ function dateProcessing(type) {
var _html = "";
_html += '<div id="mb_box"></div><div id="mb_con"><span id="mb_tit">' + title + '</span>'
if (type == "confirm") {
_html += '<img id="mb_img" src="/online_report/static/tools/images/close.png">';
_html += '<img id="mb_img" src="/static/tools/images/close.png">';
_html += '<div id="mb_msg">' + msg + '</div>';
}
if (type == "alert") {
......
......@@ -178,7 +178,7 @@ function get10427Info(index){
setCellValue(index, 61, 4, wdz.trim() == "" ? "" : (wdz + ";" + wyb));
// setCellValue(index, 62, 4, wdq);
$.ajax({
url: "/online_report/declare/getCountryList",
url: URL + "/online_report/declare/getCountryList",
type: "post",
async:false,
dataType : "json",
......@@ -196,7 +196,7 @@ function get10427Info(index){
}
})
$.ajax({
url: "/online_report/declare/getSsxdmcList",
url: URL + "/online_report/declare/getSsxdmcList",
type: "post",
async:false,
dataType : "json",
......@@ -1146,7 +1146,7 @@ function get12402SbJkNsName(type,dm,col,row,index){
}
$.ajax({
type: "post",
url: "/online_report/declare/getCcsqxdmList",
url: URL + "/online_report/declare/getCcsqxdmList",
dataType: "json",
data: obj,
success: function(data){
......@@ -1171,7 +1171,7 @@ function get12402ZgswsKFJ(dm,col,tablename){
}
$.ajax({
type: "post",
url: "/online_report/declare/getCcsswjgdmData",
url: URL + "/online_report/declare/getCcsswjgdmData",
dataType: "json",
data: obj,
success: function(data){
......@@ -1643,7 +1643,7 @@ function get12501MergeInfo(name){
$.ajax({
type : "post",
url : "/online_report/declare/get12501zb",
url : URL + "/online_report/declare/get12501zb",
dataType : "json",
data:{
"beans": JSON.stringify(json)
......@@ -2644,7 +2644,7 @@ function bindCellClickEvent() {
// if("E64" == pos){
// var info = "";
// $.ajax({
// url: "/online_report/declare/getSsxdmcList",
// url: URL + "/online_report/declare/getSsxdmcList",
// type: "post",
// async:false,
// dataType : "json",
......@@ -3183,7 +3183,7 @@ function bindCellClickEvent() {
var arr = [];
$.ajax({
type: "post",
url: "/online_report/declare/getSsxd",
url: URL + "/online_report/declare/getSsxd",
dataType: "json",
async: false,
data: {
......@@ -3467,7 +3467,7 @@ function bindValueChanged() {
case '10119_001':
if("D9" == pos && info.newValue && info.newValue.split(" ").length > 1){
$.ajax({
url: "/online_report/declare/getClscjxByXzqhData",
url: URL + "/online_report/declare/getClscjxByXzqhData",
type: "post",
dataType : "json",
data: {
......@@ -3485,7 +3485,7 @@ function bindValueChanged() {
}
if("F9" == pos && info.newValue && info.newValue.split(" ").length > 1){
$.ajax({
url: "/online_report/declare/getCcsswjgdmData",
url: URL + "/online_report/declare/getCcsswjgdmData",
type: "post",
dataType : "json",
data: {
......@@ -4017,7 +4017,7 @@ function bindValueChanged() {
setCellValue(activeSheetIndex, row, 12, info.newValue.split(" ")[2]);
}else{
$.ajax({
url: "/online_report/declare/getCountryList",
url: URL + "/online_report/declare/getCountryList",
type: "post",
async:false,
dataType : "json",
......@@ -4036,7 +4036,7 @@ function bindValueChanged() {
}
// $.ajax({
// url: "/online_report/declare/getSsxdmcList",
// url: URL + "/online_report/declare/getSsxdmcList",
// type: "post",
// dataType : "json",
// data: {
......@@ -4409,7 +4409,7 @@ function bindValueChanged() {
}
if("I" == pos1_ && info.newValue){
$.ajax({
url: "/online_report/declare/getSyseList",
url: URL + "/online_report/declare/getSyseList",
type: "post",
dataType : "json",
data: {
......@@ -4424,7 +4424,7 @@ function bindValueChanged() {
}
if (pos1_ == 'H' && info.newValue) {
$.ajax({
url: "/online_report/declare/getZszmByZspmData",
url: URL + "/online_report/declare/getZszmByZspmData",
type: "post",
dataType : "json",
data: {
......@@ -6026,7 +6026,7 @@ function bindValueChanged() {
if(info.newValue){
var xzhqDm = info.newValue.split(" ")[0];
$.ajax({
url: "/online_report/declare/getClscjxByXzqhData",
url: URL + "/online_report/declare/getClscjxByXzqhData",
type: "post",
dataType : "json",
data: {
......@@ -6267,7 +6267,7 @@ function bindValueChanged() {
$.ajax({
type : "post",
url : "/online_report/declare/getCcsswjgdmData",
url : URL + "/online_report/declare/getCcsswjgdmData",
data: {
zspmDm: zspmDm
},
......@@ -6292,7 +6292,7 @@ function bindValueChanged() {
if(info.newValue){
var xzhqDm = info.newValue.split(" ")[0];
$.ajax({
url: "/online_report/declare/getClscjxByXzqhData",
url: URL + "/online_report/declare/getClscjxByXzqhData",
type: "post",
dataType : "json",
data: {
......@@ -7137,7 +7137,7 @@ function bindValueChanged() {
console.log(info.newValue.split(" ")[0])
$.ajax({
type : "post",
url : "/online_report/declare/get12502_001Beanspm",
url : URL + "/online_report/declare/get12502_001Beanspm",
dataType : "json",
data:{
"wrlb": info.newValue.split(" ")[0],
......@@ -7217,7 +7217,7 @@ function getSlByZspmZszmFor12501(zspm,zszm){
// 税率带入值
$.ajax({
type : "post",
url : "/online_report/declare/get12501_002sl",
url : URL + "/online_report/declare/get12501_002sl",
dataType : "json",
async : false,
data:{
......@@ -7242,7 +7242,7 @@ function getWrdlzByZspmZszm(zspm,zszm){
var wrdlz = 0;
$.ajax({
type : "post",
url : "/online_report/declare/getwrdlz",
url : URL + "/online_report/declare/getwrdlz",
dataType : "json",
async : false,
data:{
......@@ -7268,7 +7268,7 @@ function getZszmByZspm(zspm){
var arr = [];
$.ajax({
type : "post",
url : "/online_report/declare/getHbsZszmBean",
url : URL + "/online_report/declare/getHbsZszmBean",
dataType : "json",
async : false,
data:{
......
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