Browse Source

bug 修复

lilei 3 years ago
parent
commit
c1e9baef70

+ 21 - 12
pages/digitalShelf/choosePartResult.vue

@@ -180,18 +180,27 @@
 			 })
 			 })
 		 },
 		 },
 		 // 一键取货
 		 // 一键取货
-		 onceQh(){
-			 this.loading = true
-			 takeGoods({sn:this.shelfOrderSn}).then(res => {
-				 if(res.status == 200){
-					 uni.navigateBack()
-				 }
-				 uni.showToast({
-				 	title: res.message,
-				 	icon:"none"
-				 })
-				 this.loading = false
-			 })
+		 onceQh(item,index){
+		 	const _this = this
+		 	uni.showModal({
+		 		title: '提示',
+		 		content: '确认一键取货吗?',
+		 		success: (ret) => {
+		 		  if(ret.confirm){
+		 			  _this.loading = true
+		 			  takeGoods({sn:_this.shelfOrderSn}).then(res => {
+						 if(res.status == 200){
+							  uni.navigateBack()
+						 }
+						 uni.showToast({
+							title: res.message,
+							icon:"none"
+						 })
+						 _this.loading = false
+		 			  })
+		 		  }
+		 		}
+		 	})
 		 },
 		 },
 		 // 去结算
 		 // 去结算
 		 toSettle(){
 		 toSettle(){

+ 21 - 12
pages/digitalShelf/orderDetail.vue

@@ -152,20 +152,29 @@
 		 		icon:'none',
 		 		icon:'none',
 		 		title: title
 		 		title: title
 		 	})
 		 	})
-		 }, 
+		 },
 		 // 一键取货
 		 // 一键取货
 		 onceQh(item,index){
 		 onceQh(item,index){
-		 	 this.loading = true
-		 	 takeGoods({sn:this.shelfOrderSn}).then(res => {
-		 		 if(res.status == 200){
-		 			  uni.navigateBack()
-		 		 }
-		 		 uni.showToast({
-		 			title: res.message,
-		 			icon:"none"
-		 		 })
-		 		 this.loading = false
-		 	 })
+		 	const _this = this
+		 	uni.showModal({
+		 		title: '提示',
+		 		content: '确认一键取货吗?',
+		 		success: (ret) => {
+		 		  if(ret.confirm){
+		 			  _this.loading = true
+		 			  takeGoods({sn:_this.shelfOrderSn}).then(res => {
+						 if(res.status == 200){
+							  uni.navigateBack()
+						 }
+						 uni.showToast({
+							title: res.message,
+							icon:"none"
+						 })
+						 _this.loading = false
+		 			  })
+		 		  }
+		 		}
+		 	})
 		 },
 		 },
 		 // 打开扫描取货
 		 // 打开扫描取货
 		 sanCodeRow () {
 		 sanCodeRow () {

+ 23 - 14
pages/digitalShelf/orderList.vue

@@ -242,20 +242,29 @@
 		    },
 		    },
 			// 一键取货
 			// 一键取货
 			onceQh(item,index){
 			onceQh(item,index){
-				 this.loading = true
-				 takeGoods({sn:item.shelfOrderSn}).then(res => {
-					 if(res.status == 200){
-						 this.list.splice(index,1)
-						 if(this.current == 0){
-						 	this.tabList[0].count = this.tabList[0].count - 1
-						 }
-					 }
-					 uni.showToast({
-						title: res.message,
-						icon:"none"
-					 })
-					 this.loading = false
-				 })
+				const _this = this
+				uni.showModal({
+					title: '提示',
+					content: '确认一键取货吗?',
+					success: (ret) => {
+					  if(ret.confirm){
+						  _this.loading = true
+						  takeGoods({sn:item.shelfOrderSn}).then(res => {
+							 if(res.status == 200){
+								 _this.list.splice(index,1)
+								 if(_this.current == 0){
+									_this.tabList[0].count = _this.tabList[0].count - 1
+								 }
+							 }
+							 uni.showToast({
+								title: res.message,
+								icon:"none"
+							 })
+							 _this.loading = false
+						  })
+					  }
+					}
+				})
 			},
 			},
 		}
 		}
 	}
 	}

+ 2 - 2
pages/index/index.vue

@@ -169,7 +169,7 @@
 				}else{
 				}else{
 					uni.showToast({
 					uni.showToast({
 						icon:'none',
 						icon:'none',
-						title: '当前门店没有数字货架!'
+						title: '门店没有关联数字货架,无法使用此功能!'
 					})
 					})
 				}
 				}
 			},
 			},
@@ -238,7 +238,7 @@
 				}else{
 				}else{
 					uni.showToast({
 					uni.showToast({
 						icon:'none',
 						icon:'none',
-						title: '当前门店没有数字货架!'
+						title: '门店没有关联数字货架,无法使用此功能!'
 					})
 					})
 				}
 				}
 			}
 			}

+ 1 - 1
pages/morePage/morePage.vue

@@ -78,7 +78,7 @@
 					}else{
 					}else{
 						uni.showToast({
 						uni.showToast({
 							icon:'none',
 							icon:'none',
-							title: '当前门店没有数字货架!'
+							title: '门店没有关联数字货架,无法使用此功能!'
 						})
 						})
 					}
 					}
 				}else{
 				}else{

+ 1 - 1
pages/vinInput/confirmVin.vue

@@ -112,7 +112,7 @@
 				if(!this.hasShelf){
 				if(!this.hasShelf){
 					uni.showToast({
 					uni.showToast({
 						icon:'none',
 						icon:'none',
-						title: '当前门店没有数字货架!'
+						title: '门店没有关联数字货架,无法使用此功能!'
 					})
 					})
 					return
 					return
 				}
 				}

+ 1 - 1
pages/vinRecord/vinRecord.vue

@@ -106,7 +106,7 @@
 				}else{
 				}else{
 					uni.showToast({
 					uni.showToast({
 						icon:'none',
 						icon:'none',
-						title: '当前门店没有数字货架!'
+						title: '门店没有关联数字货架,无法使用此功能!'
 					})
 					})
 				}
 				}
 			}
 			}