zxz 2 년 전
부모
커밋
4ffc2a8a7d
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      pages/erpbusiness/edit_quality_testing.vue

+ 3 - 1
pages/erpbusiness/edit_quality_testing.vue

@@ -747,7 +747,9 @@
 						if (res.data.data) {
 							that.goodsList = res.data.data
 							if (that.goodsList.length > 0) {
-								that.gridList.goodsName = that.goodsList[0].goodsName
+								if(!that.gridList.goodsName){
+									that.gridList.goodsName = that.goodsList[0].goodsName
+								}
 								uni.setStorageSync('purchasePriceList', that.goodsList)
 								that.purchasePriceList = uni.getStorageSync('purchasePriceList')
 							}