guoyujia 1 jaar geleden
bovenliggende
commit
2b0e85f4f3
2 gewijzigde bestanden met toevoegingen van 14 en 1 verwijderingen
  1. 7 0
      pages/outsourcedInspection/scan.vue
  2. 7 1
      pages/processInspection/scan.vue

+ 7 - 0
pages/outsourcedInspection/scan.vue

@@ -86,6 +86,7 @@
 						})
 						return;
 					}
+					//判断该箱是否绑定批次
 
 				result.processCode = store.outsourcedCode;
 				/************************ 根据扫码查询到的数据和需要检查的工序查询信息 ************************/
@@ -106,6 +107,12 @@
 						})
 					}
 
+				}).catch(err => {
+					uni.showToast({
+						icon: 'none',
+						title: error.msg,
+						duration: 2000
+					})
 				})
 			}
 			)

+ 7 - 1
pages/processInspection/scan.vue

@@ -114,7 +114,13 @@
 										duration: 2000
 									})
 								}
-							});
+							}).catch(err => {
+								uni.showToast({
+									icon: 'none',
+									title: error.msg,
+									duration: 2000
+								})
+				})
 
 						}
 					} else {