ccj 2 years ago
parent
commit
2e08733a9d

+ 2 - 2
manifest.json

@@ -2,8 +2,8 @@
     "name" : "易粮易运",
     "appid" : "__UNI__7297DA2",
     "description" : "易粮易运——为天下粮食人服务的App",
-    "versionName" : "2.1.136",
-    "versionCode" : 21136,
+    "versionName" : "2.1.137",
+    "versionCode" : 21137,
     "transformPx" : false,
     /* SDK配置 */
     "quickapp" : {},

+ 1 - 4
pages/erpbusiness/add_quality_testing.vue

@@ -1272,14 +1272,11 @@
 				}
 
 				
-				var numReg = /^[0-9]*$/
-				var numRe = new RegExp(numReg)
 				//潮粮单价改变事件
 				if (
 					this.gridList.goodsName &&
 					this.gridList.waterContent &&
-					this.gridList.grade &&
-					numRe.test(this.gridList.waterContent)
+					this.gridList.grade 
 				) {
 					this.$api.doRequest('get', '/purchasePrice/tidalGrainPrice', {
 						warehouseId: this.cangid,

+ 4 - 5
pages/erpbusiness/edit_quality_testing.vue

@@ -814,7 +814,8 @@
 						}
 					}
 				}
-				if(this.gridList.serviceManagementType == 3){ //收购入库 不需在获取价格
+				console.log(this.gridList.serviceManagementType)
+				if(this.gridList.serviceManagementType != 3){ //非收购入库 不需在获取价格
 					return
 				}
 				if (this.gridList.goodsName && this.cangid) {
@@ -828,15 +829,13 @@
 					}
 				}
 				
-				var numReg = /^[0-9]*$/
-				var numRe = new RegExp(numReg)
 				//潮粮单价改变事件
 				if (
 					this.gridList.goodsName &&
 					this.gridList.waterContent &&
-					this.gridList.grade &&
-					numRe.test(this.gridList.waterContent)
+					this.gridList.grade 
 				) {
+				console.log('123123')
 					this.$api.doRequest('get', '/purchasePrice/tidalGrainPrice', {
 						warehouseId: this.cangid,
 						goodsName: this.gridList.goodsName,