lilei 3 年 前
コミット
3f7f1c4a5b

+ 2 - 2
libs/printTools.js

@@ -71,7 +71,7 @@ export const printTempl = function(tsc,data){
 	const maxFontNums = Math.floor((pageW*8-left*2)/lightHeight) // 每行最多字体数
 	const leftMaxFnums = Math.floor(maxFontNums*0.6)
 	let rightTop = 0
-	let rightLeft = (leftMaxFnums+2)*lightHeight
+	let rightLeft = (leftMaxFnums+1)*lightHeight
 	// 初始化打印机
 	const command = tsc.jpPrinter.createNew()
 	command.init()
@@ -96,7 +96,7 @@ export const printTempl = function(tsc,data){
 	// 货位号
 	const qrtop = textFormat(command,data.shelfPlaceCode,maxFontNums-leftMaxFnums-2,rightLeft,rightTop,lightHeight,"center",2)
 	// 二维码
-	command.setQR(rightLeft, qrtop, "L", 3, "A", data.barCode)
+	command.setQR(rightLeft, qrtop, "L", 5, "A", data.barCode)
 	command.setPagePrint(1,data.currentInven) // 打印分数1,每个标签重发打印2次
 	console.log("开始打印了",command.getData())
 	return command

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

@@ -77,7 +77,8 @@
 						currentInven: _this.printNum,
 						printDate: nowDate,
 						printUser: _this.$store.state.vuex_userData.userNameCN,
-						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}`
+						barCode: `shelfSn=${_this.infoData.shelfSn}&productCode=${_this.infoData.productEntity&&_this.infoData.productEntity.code}`
+						// 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 = {
@@ -89,7 +90,8 @@
 						currentInven: _this.printNum,
 						printDate: nowDate,
 						printUser: _this.$store.state.vuex_userData.userNameCN,
-						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}`
+						barCode: `shelfSn=${_this.infoData.shelfSn}&productCode=${_this.infoData.productCode}`
+						// 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)

+ 1 - 1
pages/replenishmentManage/manualPrint.vue

@@ -93,7 +93,7 @@
 					currentInven: data.printQty,
 					printDate: this.$u.timeFormat(this.timestamp, 'yyyy-mm-dd hh:MM'),
 					printUser: dealer.userNameCN,
-					barCode: `dealerSn=${dealer.orgSn}&shelfSn=${data.shelfSn}&productSn=${data.productSn}&productCode=${data.productCode}&shelfPlaceCode=${data.shelfPlaceCode}&shelfPlaceSn=${data.shelfPlaceSn}`
+					barCode: `shelfSn=${data.shelfSn}&productCode=${data.productCode}`
 				})
 				// 开始批量打印 
 				blesdk.senBlData(