|
@@ -16,7 +16,7 @@
|
|
|
class="print-pages"
|
|
|
style="font-size: 9px;padding:3pt 0 3pt 6pt;">
|
|
|
<div class="storeName" style="text-align: center;font-weight: bold;margin: 2pt 0;">
|
|
|
- {{ nowData.outStockPersonName }}
|
|
|
+ {{ nowData.dealerName }}
|
|
|
</div>
|
|
|
<div style="overflow: hidden;">
|
|
|
<div style="padding-right: 3pt;float: left;">
|
|
@@ -27,13 +27,15 @@
|
|
|
<div class="productName">{{ item.product.name }}</div>
|
|
|
<div class="userName" style="margin-top: 2pt;font-size: 8px;">
|
|
|
<span style="margin: 0 5pt 0 0;">{{ moment().format('YYYY-MM-DD HH:mm') }}</span>
|
|
|
- <!-- <span>王明</span> -->
|
|
|
+ </div>
|
|
|
+ <div class="userName" style="margin-top: 2pt;font-size: 8px;">
|
|
|
+ <span>{{ nowData.parintUser }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div style="float: right;">
|
|
|
<div class="productSno" style="font-size: 15pt;text-align: center;">{{ item.shelfPlaceCode }}</div>
|
|
|
<div class="qrcode" ref="qrCodeUrl">
|
|
|
- <vue-qr text="dealerSn=1033242&shelfSn=342326735950757888&productCode=RPF2340&shelfPlaceCode=A01&shelfPlaceSn=123213" :margin="0" :size="60"></vue-qr>
|
|
|
+ <vue-qr :text="`dealerSn=${nowData.dealerSn}&shelfSn=${item.shelfSn}&productCode=${item.productCode}&shelfPlaceCode=${item.shelfPlaceCode}&shelfPlaceSn=${item.shelfPlaceSn}`" :margin="0" :size="60"></vue-qr>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -80,8 +82,13 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
setData (nowData, list) {
|
|
|
+ const dearInfo = this.$store.state.user.info
|
|
|
this.nowData = nowData
|
|
|
this.list = list
|
|
|
+ this.nowData.dealerName = dearInfo.orgName
|
|
|
+ this.nowData.dealerSn = dearInfo.orgSn
|
|
|
+ this.nowData.parintUser = dearInfo.userNameCN
|
|
|
+ console.log(this.$store.state.user.info)
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
@@ -105,5 +112,8 @@ export default {
|
|
|
text-align: center;
|
|
|
margin: 35px 0 10px;
|
|
|
}
|
|
|
+ .print-pages{
|
|
|
+ border-bottom: 1px solid #eee;
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|