zhongtianhaoyuan 2 年之前
父節點
當前提交
7c859f8a13
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      public/static/warehousePrint.html

+ 3 - 1
public/static/warehousePrint.html

@@ -179,7 +179,7 @@
   <body>
     <div id="app">
       <div class="center">
-        <div class="title">黑龙江中天昊元贸易有限公司<span v-if="type == '2'">出</span><span v-if="type == '3'">入</span>库单</div>
+        <div class="title">{{company?company:"黑龙江中天昊元贸易有限公司"}}<span v-if="type == '2'">出</span><span v-if="type == '3'">入</span>库单</div>
         <div class='title12'>
           <span>仓库名:</span>
           <span>{{warehouseName}}</span>
@@ -265,6 +265,7 @@
         binNoShow: "",
         startDate: "",
         endDate: "",
+        company:""
       },
       computed: {},
       methods: {
@@ -297,6 +298,7 @@
         printBig() {}
       },
       mounted() {
+        this.company = localStorage.getItem("ws-pf_compName")
         this.date = new Date().toLocaleString()
         this.type = decodeURIComponent(this.getQueryVariable('type'))
         this.warehouseName = decodeURIComponent(this.getQueryVariable('warehouseName'))