|
@@ -33,7 +33,7 @@
|
|
|
<div style="float: right;width: 34%;">
|
|
|
<div class="productSno" style="font-size: 15pt;text-align: center;">{{ item.shelfPlaceCode }}</div>
|
|
|
<div class="qrcode" ref="qrCodeUrl" style="text-align: center;">
|
|
|
- <vue-qr :text="`${item.shelfSn}&${item.productCode}`" :margin="0" :size="70"></vue-qr>
|
|
|
+ <vue-qr :text="`${item.shelfSn}&${item.productCode}&${item.productSn}&${item.shelfPlaceSn}`" :margin="0" :size="70"></vue-qr>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -76,9 +76,11 @@ export default {
|
|
|
const printBox = document.querySelectorAll('.print-pages')
|
|
|
console.log(printBox)
|
|
|
for (let i = 0; i < printBox.length; i++) {
|
|
|
- const htmlStr = printBox[i].outerHTML
|
|
|
+ // const htmlStr = printBox[i].outerHTML
|
|
|
+ const htmlStr = printBox[i].outerHTML.replace(/<\s?img[^>]*>/gi, '')
|
|
|
const item = this.list[i]
|
|
|
- this.list[i].qrCodeContent = `${item.shelfSn}&${item.productCode}`
|
|
|
+ // `dealerSn=${nowData.dealerSn}&shelfSn=${item.shelfSn}&productSn=${item.productSn}&productCode=${item.productCode}&shelfPlaceCode=${item.shelfPlaceCode}&shelfPlaceSn=${item.shelfPlaceSn}&replenishBillDetailSn=${item.replenishBillDetailSn}`
|
|
|
+ this.list[i].qrCodeContent = `${item.shelfSn}&${item.productCode}&${item.productSn}&${item.shelfPlaceSn}`
|
|
|
JGPrintTag(htmlStr, '60mm', '40mm', this.list[i])
|
|
|
}
|
|
|
},
|