|
@@ -562,18 +562,32 @@ export default {
|
|
|
clearInterval(that.T)
|
|
clearInterval(that.T)
|
|
|
if(that.option.orderSn){
|
|
if(that.option.orderSn){
|
|
|
that.orderSn = that.option.orderSn
|
|
that.orderSn = that.option.orderSn
|
|
|
- const { data } = await getPurchaseDetailApi(that.option.orderSn);
|
|
|
|
|
- that.detailInfo = data;
|
|
|
|
|
- if(that.detailInfo && that.detailInfo.needRemindRefreshSeat == 1){
|
|
|
|
|
- that.checkRemind()
|
|
|
|
|
|
|
+ that.salt = that.option.salt
|
|
|
|
|
+ if((this.getLoginInfo && !this.$util.isEmpty(this.getLoginInfo.admin)) || this.$util.isEmpty(that.salt)){
|
|
|
|
|
+
|
|
|
|
|
+ const { data } = await getPurchaseDetailApi(that.option.orderSn);
|
|
|
|
|
+ that.detailInfo = data;
|
|
|
|
|
+ if(that.detailInfo && that.detailInfo.needRemindRefreshSeat == 1){
|
|
|
|
|
+ that.checkRemind()
|
|
|
|
|
+ }else{
|
|
|
|
|
+ clearInterval(that.T)
|
|
|
|
|
+ }
|
|
|
|
|
+ getPrint().then(res=>{
|
|
|
|
|
+ if(res.code == 1){
|
|
|
|
|
+ that.wcPrintNum = res.data.wcPrintNum ? Number(res.data.wcPrintNum) : 1
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
}else{
|
|
}else{
|
|
|
- clearInterval(that.T)
|
|
|
|
|
- }
|
|
|
|
|
- getPrint().then(res=>{
|
|
|
|
|
- if(res.code == 1){
|
|
|
|
|
- that.wcPrintNum = res.data.wcPrintNum ? Number(res.data.wcPrintNum) : 1
|
|
|
|
|
|
|
+ const { data } = await getCgDetail({orderSn:that.orderSn,salt:that.salt})
|
|
|
|
|
+ that.detailInfo = data
|
|
|
|
|
+ if(that.detailInfo && that.detailInfo.needRemindRefreshSeat == 1){
|
|
|
|
|
+ that.checkRemind()
|
|
|
|
|
+ }else{
|
|
|
|
|
+ clearInterval(that.T)
|
|
|
}
|
|
}
|
|
|
- })
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}else{
|
|
}else{
|
|
|
if(that.option.q){
|
|
if(that.option.q){
|
|
|
let currentUrl = decodeURIComponent(that.option.q)
|
|
let currentUrl = decodeURIComponent(that.option.q)
|