|
|
|
@ -105,14 +105,14 @@ function getOrderInfoByTqm() { |
|
|
|
|
}), |
|
|
|
|
async: false, |
|
|
|
|
success: function (data) { |
|
|
|
|
|
|
|
|
|
alert_loading_close(); |
|
|
|
|
window.sessionStorage.setItem("fpzls", JSON.stringify(data.fpzls)); //发票类型
|
|
|
|
|
window.sessionStorage.setItem("orderInfo", JSON.stringify(data.orderInfo)); // 订单信息
|
|
|
|
|
window.sessionStorage.setItem("orderItemInfoList", JSON.stringify(data.orderItemList)); //开票项目
|
|
|
|
|
window.sessionStorage.setItem("titleInfo", JSON.stringify(data.titleInfo)) //抬头信息
|
|
|
|
|
console.log(data.titleInfo,'11111111111') |
|
|
|
|
window.sessionStorage.setItem("ewmInfo", JSON.stringify(data.ewm)) //二维码信息
|
|
|
|
|
if (data.code === "0000") { //处理成功
|
|
|
|
|
getOrderEwm() |
|
|
|
|
//判断是否是公众号,如果是公众号需要走授权逻辑,如果不是,直接到填开页
|
|
|
|
|
if(window.localStorage.getItem("routerType") === "1"){ |
|
|
|
|
toPage("/html/wxscaninvoice/writing.html"); |
|
|
|
@ -178,3 +178,31 @@ function getOrderInfoByTqm() { |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
function getOrderEwm() { |
|
|
|
|
console.log('getOrderEwm','接口请求') |
|
|
|
|
|
|
|
|
|
let ewm = JSON.parse(window.sessionStorage.getItem("ewmInfo")) //二维码信息
|
|
|
|
|
$.ajax({ |
|
|
|
|
type: "post", |
|
|
|
|
url: config.projectUrl + '/FPGLXT/wb/queryEwmjfxz', |
|
|
|
|
contentType: "application/json;charset=utf-8", |
|
|
|
|
async: false, |
|
|
|
|
data:JSON.stringify({ |
|
|
|
|
fphm: ewm.fphm, |
|
|
|
|
kpf_nsrsbh:ewm.kpf_nsrsbh, |
|
|
|
|
kprq:ewm.kprq?.replace(/[- :]/g, ''),// "2024-10-24 17:04:03" => "20241024170403"
|
|
|
|
|
nsrsbh:ewm.nsrsbh, |
|
|
|
|
wjlx:'1' |
|
|
|
|
}), |
|
|
|
|
success: function (data) { |
|
|
|
|
if(data.code === '0000'){ |
|
|
|
|
window.sessionStorage.setItem("ewm-URL", JSON.stringify(data.data)); |
|
|
|
|
}else { |
|
|
|
|
window.sessionStorage.setItem("ewm-URL",''); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
error: function (data) { |
|
|
|
|
console.log(data,'error') |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|