Browse Source

规格选择车牌号缓存

高敬炎 2 năm trước cách đây
mục cha
commit
89a0bfcf43

+ 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')
 				this.gridList.carNumber=uni.getStorageSync('carNo')
 			}
 			}
 		},
 		},
 		methods: {
 		methods: {
 			carchange(){
 			carchange(){
+				uni.setStorageSync('gridList', this.gridList)
 				uni.navigateTo({
 				uni.navigateTo({
 					url: '/pages/erpbusiness/customercar?cangid=' + this.cangid + '&warehouseName=' + this.gridList
 					url: '/pages/erpbusiness/customercar?cangid=' + this.cangid + '&warehouseName=' + this.gridList
 						.warehouseName + '&goodsName=' + this.gridList.goodsName
 						.warehouseName + '&goodsName=' + this.gridList.goodsName