Commit def078cb authored by 彭令令's avatar 彭令令

24450 支持未享受缓缴的企业办理退税:url不影响接下来接口调用

parent 15e0bd33
...@@ -1428,7 +1428,7 @@ var JSTOOL = function() { ...@@ -1428,7 +1428,7 @@ var JSTOOL = function() {
if (data.returnCode == '00') { if (data.returnCode == '00') {
if (data.content=="Y") { if (data.content=="Y") {
// 获取url接口 // 获取url接口
var url=""; var uRL="";
$.ajax({ $.ajax({
type: "post", type: "post",
url: config.url + "/online/declare/getGovernmentWebsite", url: config.url + "/online/declare/getGovernmentWebsite",
...@@ -1440,42 +1440,42 @@ var JSTOOL = function() { ...@@ -1440,42 +1440,42 @@ var JSTOOL = function() {
}, },
success: function(data) { // success: function(data) { //
if (data.ifSuccess == true) { if (data.ifSuccess == true) {
url = data.uRL uRL = data.uRL
var czlxbz = ""
myConfirmNoclose("提示", "hhhhhhhhhhhhhh", "去退税", "不再提示", function (result) {
if (result) {
czlxbz = "1"
}else {
czlxbz = "3"
}
$.ajax({
type: "post",
url: config.url + "/online/zxtb/saveHjtsCzlx",
dataType: "json", // 请求方式为jsonp
// async: false,
data: {
djxh: param,
czlx:czlxbz,
},
success: function(data) { //
if (data.returnCode == "00") {
console.log('调用成功')
if (czlxbz=='1') {
window.location.href=url
}
}else {
if (data.returnMessage != undefined) {
alertWarning(data.returnMessage);
} else {
alertWarning(data.errmsg);
}
}
},
})
})
} }
}, },
}) })
var czlxbz = ""
myConfirmNoclose("提示", "hhhhhhhhhhhhhh", "去退税", "不再提示", function (result) {
if (result) {
czlxbz = "1"
}else {
czlxbz = "3"
}
$.ajax({
type: "post",
url: config.url + "/online/zxtb/saveHjtsCzlx",
dataType: "json", // 请求方式为jsonp
// async: false,
data: {
djxh: param,
czlx:czlxbz,
},
success: function(data) { //
if (data.returnCode == "00") {
console.log('调用成功')
if (czlxbz=='1') {
window.location.href=uRL
}
}else {
if (data.returnMessage != undefined) {
alertWarning(data.returnMessage);
} else {
alertWarning(data.errmsg);
}
}
},
})
})
} }
}else { }else {
if (data.returnMessage != undefined) { if (data.returnMessage != undefined) {
......
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