瀏覽代碼

规格选择车牌号缓存

高敬炎 2 年之前
父節點
當前提交
89a0bfcf43
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      pages/erpbusiness/add_quality_testing.vue

+ 3 - 1
pages/erpbusiness/add_quality_testing.vue

@@ -1122,12 +1122,14 @@
 					})
 				}
 			}
-			if(uni.getStorageSync('carNo')&&this.typevalue==1){
+			if(uni.getStorageSync('carNo')&&uni.getStorageSync('gridList')&&this.typevalue==1){
+				this.gridList=uni.getStorageSync('gridList')
 				this.gridList.carNumber=uni.getStorageSync('carNo')
 			}
 		},
 		methods: {
 			carchange(){
+				uni.setStorageSync('gridList', this.gridList)
 				uni.navigateTo({
 					url: '/pages/erpbusiness/customercar?cangid=' + this.cangid + '&warehouseName=' + this.gridList
 						.warehouseName + '&goodsName=' + this.gridList.goodsName