shish 1 год назад
Родитель
Сommit
a59e45d979

+ 1 - 1
ghsApp/src/pagesStorehouse/allot/modifyDetails.vue

@@ -101,7 +101,7 @@ export default {
 		pitchShop(inShopId,inShopName,inStockList,back){
 			let that = this
 			let content = '确认一键出库到'+inShopName+'?'
-			if(back == 0){
+			if(back == 1){
 				content = '确认一键回调到'+inShopName+'?'
 			}
 			this.$refs.selectShopNumRef.close()

+ 5 - 6
ghsApp/src/pagesStorehouse/allot/putDetails.vue

@@ -134,10 +134,11 @@ export default {
 			this.initData();
 		}
 		this.currentShopId = this.getMyShopInfo.id;
-		console.log(this.currentShopId)
 	},
 	onShow(){
-
+		if(this.orderSn){
+			this.initData()	
+		}
 	},
 	computed: {
 		...mapGetters(["getMyShopInfo"]),
@@ -217,10 +218,8 @@ export default {
 			this.$refs.selectShopNumRef.open('bottom')
 		},
 		async initData() {
-			try {
-				const { data } = await getStockInDetailApi(this.orderSn);
-				this.inStockData = data;
-			} catch (error) {}
+			const { data } = await getStockInDetailApi(this.orderSn)
+			this.inStockData = data
 		},
 		getItemStatusName(status) {
 			let name = "";