Selaa lähdekoodia

采购单分享

shish 2 vuotta sitten
vanhempi
commit
c23a85e15c
1 muutettua tiedostoa jossa 24 lisäystä ja 10 poistoa
  1. 24 10
      ghsApp/src/pagesPurchase/info.vue

+ 24 - 10
ghsApp/src/pagesPurchase/info.vue

@@ -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)