ccj 2 years ago
parent
commit
75a3388b76
2 changed files with 11 additions and 3 deletions
  1. 2 2
      manifest.json
  2. 9 1
      pages/erpbusiness/edit_quality_testing.vue

+ 2 - 2
manifest.json

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

+ 9 - 1
pages/erpbusiness/edit_quality_testing.vue

@@ -531,6 +531,8 @@
 			this.cangid = options.cangid
 			this.warehouseName=options.warehouseName
 			this.managementType = options.managementType
+			
+			this.purchasePriceList = uni.getStorageSync('purchasePriceList')
 			console.log(this.flag)
 			var that = this
 			this.$api.doRequest('get', '/qualityInspectionManagement/api/getQualityInspection', {
@@ -588,8 +590,14 @@
 				warehouseId: this.cangid
 			}).then(res => {
 				if (res.data.data) {
-					this.goodsList = res.data.data
+					that.goodsList = res.data.data
+					if (that.goodsList.length > 0) {
+						that.gridList.goodsName = that.goodsList[0].goodsName
+						uni.setStorageSync('purchasePriceList', that.goodsList)
+						that.purchasePriceList = uni.getStorageSync('purchasePriceList')
+					}
 				}
+				
 			})
 			this.gridList.grade = this.gradeList[0].value
 			this.gridList.gradeKey = this.gradeList[0].key