瀏覽代碼

打印测试

lilei 3 年之前
父節點
當前提交
e9a9ad173b
共有 1 個文件被更改,包括 13 次插入3 次删除
  1. 13 3
      src/views/numsGoodsShelves/replenishmentManagement/printView.vue

+ 13 - 3
src/views/numsGoodsShelves/replenishmentManagement/printView.vue

@@ -16,7 +16,7 @@
         class="print-pages"
         class="print-pages"
         style="font-size: 9px;padding:3pt 0 3pt 6pt;">
         style="font-size: 9px;padding:3pt 0 3pt 6pt;">
         <div class="storeName" style="text-align: center;font-weight: bold;margin: 2pt 0;">
         <div class="storeName" style="text-align: center;font-weight: bold;margin: 2pt 0;">
-          {{ nowData.outStockPersonName }}
+          {{ nowData.dealerName }}
         </div>
         </div>
         <div style="overflow: hidden;">
         <div style="overflow: hidden;">
           <div style="padding-right: 3pt;float: left;">
           <div style="padding-right: 3pt;float: left;">
@@ -27,13 +27,15 @@
             <div class="productName">{{ item.product.name }}</div>
             <div class="productName">{{ item.product.name }}</div>
             <div class="userName" style="margin-top: 2pt;font-size: 8px;">
             <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 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>
           </div>
           <div style="float: right;">
           <div style="float: right;">
             <div class="productSno" style="font-size: 15pt;text-align: center;">{{ item.shelfPlaceCode }}</div>
             <div class="productSno" style="font-size: 15pt;text-align: center;">{{ item.shelfPlaceCode }}</div>
             <div class="qrcode" ref="qrCodeUrl">
             <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>
           </div>
         </div>
         </div>
@@ -80,8 +82,13 @@ export default {
       }
       }
     },
     },
     setData (nowData, list) {
     setData (nowData, list) {
+      const dearInfo = this.$store.state.user.info
       this.nowData = nowData
       this.nowData = nowData
       this.list = list
       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: {
   watch: {
@@ -105,5 +112,8 @@ export default {
 		text-align: center;
 		text-align: center;
 		margin: 35px 0 10px;
 		margin: 35px 0 10px;
 	}
 	}
+  .print-pages{
+    border-bottom: 1px solid #eee;
+  }
 }
 }
 </style>
 </style>