Ver código fonte

bug修复-扫码打印,扫描传参变更

chenrui 3 anos atrás
pai
commit
1e2a585f5a

+ 2 - 2
pages/common/printTag/printTag.vue

@@ -56,7 +56,7 @@
 					currentInven: _this.printNum,
 					printDate: myDate.toLocaleDateString() +' '+myDate.getHours() +':'+myDate.getMinutes() +':'+myDate.getSeconds(),
 					printUser: _this.$store.state.vuex_userData.username,
-					barCode: `dealerSn=${_this.$store.state.vuex_userData.orgSn}&shelfSn=${_this.infoData.shelfSn}&productCode=${_this.infoData.productEntity&&_this.infoData.productEntity.code}&shelfPlaceCode=${_this.infoData.shelfPlaceCode}&shelfPlaceSn=${_this.infoData.shelfPlaceSn}`
+					barCode: `dealerSn=${_this.$store.state.vuex_userData.orgSn}&shelfSn=${_this.infoData.shelfSn}&productSn=${_this.infoData.productEntity&&_this.infoData.productEntity.productSn}&productCode=${_this.infoData.productEntity&&_this.infoData.productEntity.code}&shelfPlaceCode=${_this.infoData.shelfPlaceCode}&shelfPlaceSn=${_this.infoData.shelfPlaceSn}`
 				}
 			}else if(_this.fromPage == 'smdy'){
 				_this.printInfo = {
@@ -68,7 +68,7 @@
 					currentInven: _this.printNum,
 					printDate: myDate.toLocaleDateString() +' '+myDate.getHours() +':'+myDate.getMinutes() +':'+myDate.getSeconds(),
 					printUser: _this.$store.state.vuex_userData.username,
-					barCode: `dealerSn=${_this.$store.state.vuex_userData.orgSn}&shelfSn=${_this.infoData.shelfSn}&productSn=${_this.infoData.productSn}&productCode=${_this.infoData.productCode}&shelfPlaceCode=${_this.infoData.shelfPlaceCode}&shelfPlaceSn=${_this.infoData.shelfPlaceSn}&replenishBillDetailSn=${_this.infoData.replenishBillDetailSn}`
+					barCode: `dealerSn=${_this.$store.state.vuex_userData.orgSn}&shelfSn=${_this.infoData.shelfSn}&productSn=${_this.infoData.productSn}&productCode=${_this.infoData.productCode}&shelfPlaceCode=${_this.infoData.shelfPlaceCode}&shelfPlaceSn=${_this.infoData.shelfPlaceSn}`
 				}
 			}
 			console.log('printInfo-----------',_this.printInfo)

+ 4 - 0
pages/replenishmentManage/scanCodePrint.vue

@@ -60,6 +60,10 @@
 				uni.showLoading({
 					title: "正在查询产品信息"
 				})
+				console.log({
+					productQrCode: qrCode,
+					replenishBillSn: this.replenishBillSn
+				})
 				shelfReplenishQrCode({
 					productQrCode: qrCode,
 					replenishBillSn: this.replenishBillSn

+ 4 - 2
pages/replenishmentManage/sendOutGoods.vue

@@ -117,8 +117,10 @@
 			scanResult(qrCode){
 				const _this = this
 				shelfReplenishDetailOutScan({
-					productSn: getQueryString('&'+qrCode, 'productSn'),
-					replenishBillDetailSn: getQueryString('&'+qrCode, 'replenishBillDetailSn')
+					replenishBillSn: _this.replenishBillSn,
+					shelfSn: getQueryString('&'+qrCode, 'shelfSn'),
+					shelfPlaceSn: getQueryString('&'+qrCode, 'shelfPlaceSn'),
+					productSn: getQueryString('&'+qrCode, 'productSn')
 				}).then(res => {
 					console.log(res)
 					if(res.status == 200){