Просмотр исходного кода

fix:入库单领料单分页打印表头

zhangjingyuan 3 лет назад
Родитель
Сommit
4285923c19

+ 72 - 30
src/views/system/jbdScan/goods/bwlingliaodan.vue

@@ -17,7 +17,7 @@
               style="margin-bottom: 30px"
             >
               <div style="page-break-after: always">
-                <div class="word-title">
+                <!-- <div class="word-title">
                   <h4>领料单</h4>
                 </div>
                 <div class="tagBox">
@@ -41,10 +41,34 @@
                       }}</span>
                     </div>
                   </div>
-                </div>
+                </div> -->
                 <div>
                   <table :border="1">
                     <thead>
+                      <tr class="title">
+                        <th colspan="15">
+                          <div class="word-title" style="background:#fff;">
+                            <h4 style="font-size:16px">领料单</h4>
+                          </div>
+                          <div class="tagBox">
+                            <div>
+                              <div style="font-size: 10px">
+                                领料部门:<span style="margin-left: 10px">{{ item1.ling_liao_bu_men_|bumenfilters(bumenList) }} </span>
+                              </div>
+                          </div>
+                          <div style="text-align: left;">
+                            <div style=" margin-left: 20px;  margin-right: 5px; font-size: 10px;" >
+                              领料单编号:
+                              <span style="margin-left: 10px">{{item1.ling_liao_dan_bia}}</span>
+                            </div>
+                            <div style="margin-left: 20px;  margin-right: 5px; font-size: 10px; ">
+                              领 料 日 期:
+                              <span style="margin-left: 10px">{{ item1.ling_liao_ri_qi_}}</span>
+                            </div>
+                          </div>
+                        </div>
+                        </th>
+                      </tr>
                       <tr>
                         <th style="width: 40px; line-height: 22px">序号</th>
                         <th style="font-weight: normal">物料编码</th>
@@ -63,17 +87,10 @@
                     <tbody>
                       <tr v-for="(item, index) in item1" :key="index">
                         <td style="width: 30px">{{ index + 1 }}</td>
-                        <td style="width: 90px">
-                          {{ item.wu_liao_bian_hao_ }}
-                        </td>
-                        <td style="width: 120px">
-                          {{ item.wu_liao_ming_chen }}
-                        </td>
-                        <!-- <td style="width: 60px">{{ item.huo_hao_ }}</td>  -->
+                        <td style="width: 90px">{{ item.wu_liao_bian_hao_ }}</td>
+                        <td style="width: 120px">{{ item.wu_liao_ming_chen }}</td>
                         <td style="width: 60px">{{ item.pi_hao_ }}</td>
-                        <td style="width: 120px">
-                          {{ item.gui_ge_xing_hao_ }}
-                        </td>
+                        <td style="width: 120px">{{ item.gui_ge_xing_hao_ }}</td>
                         <td style="width: 60px">{{ item.shu_liang_ }}</td>
                         <td style="width: 60px">{{ item.dan_wei_ }}</td>
                         <td style="width: 60px">{{ item.dan_jia_|numToFixed }}</td>
@@ -81,8 +98,23 @@
                         <td style="width: 80px">{{ item.yong_tu_ }}</td>
                         <td style="width: 120px">{{ item.bei_zhu_ }}</td>
                       </tr>
+                      <tr >
+                        <td style="width: 30px"></td>
+                        <td style="width: 90px"></td>
+                        <td style="width: 120px"></td>
+                        <td style="width: 60px"></td>
+                        <td style="width: 120px"></td>
+                        <td style="width: 60px"></td>
+                        <td style="width: 60px"></td>
+                        <td style="width: 60px"></td>
+                        <td style="width: 60px"></td>
+                        <td style="width: 80px"></td>
+                        <td style="width: 120px" >
+                          合计:{{ item1.heji }}
+                        </td>
+                      </tr>
                     </tbody>
-                    <tfoot :align="right"
+                    <!-- <tfoot :align="right"
                       valign="bottom"
                       style="text-align: right !important; height: 30px"
                     >
@@ -91,23 +123,22 @@
                           合计:{{ item1.heji }}
                         </td>
                       </tr>
+                    </tfoot> -->
+                    <tfoot >           
+                      <tr class="bottom">
+                        <td colspan="4" style="text-align:left">
+                          <div style="float: left;margin-top:10px">领用人/日期:{{ item1.name1 }}/{{ item1.ling_liao_ri_qi_ }}</div>
+                        </td>
+                        <td colspan="3" class="footer-row">
+                          <div style="margin: 0 auto;margin-top:10px">审核人/日期 :{{ item1.name2 }} /{{item1.time2}}</div>
+                        </td>
+                        <td colspan="4" style="text-align:right">
+                          <div style="margin-top:10px">发放人/日期 :{{ item1.name3 }}/{{ item1.time3 }}</div>
+                        </td>
+                      </tr>
                     </tfoot>
                   </table>
                 </div>
-                <div class="bottom">
-                  <div style="float: left">
-                    领用人/日期:
-                    {{ item1.name1 }}/{{ item1.ling_liao_ri_qi_ }}
-                  </div> 
-                  <div style="margin: 0 auto">
-                    审核人/日期 :
-                    {{ item1.name2 }} /{{item1.time2}}
-                  </div>
-                  <div>
-                    发放人/日期 :
-                    {{ item1.name3 }}/{{ item1.time3 }}
-                  </div>
-                </div>
               </div>
             </div>
           </vue-easy-print>
@@ -304,11 +335,22 @@ export default {
 <style lang="scss" scoped>
 .bottom {
   margin-top: 15px;
-  display: flex;
-  justify-content: space-between;
-  align-items: center;
+  // display: flex;
+  // justify-content: space-between;
+  // align-items: center;
   font-size: 12px;
 }
+.bottom {
+  margin-top: 15px;
+  border-bottom: 1px solid #fff;
+  border-left: 1px solid #fff;
+  border-right: 1px solid #fff;
+}
+.title{
+  border-top: 1px solid #fff;
+  border-left: 1px solid #fff;
+  border-right: 1px solid #fff;
+}
 .word-title {
   display: flex;
   justify-content: center;

+ 95 - 55
src/views/system/jbdScan/goods/chnangguirukudan.vue

@@ -1,14 +1,16 @@
 <template>
   <div class="bg">
+    <!-- 列表页面打印入库单 -->
     <el-dialog
       width="26cm"
       height="12cm"
       :modal-append-to-body="false"
       title="采购入库单"
       :visible.sync="scanVisible"
+      id="pageid"
     >
       <!-- 表单是否显示 -->
-      <div style="height: 500px; width: 95%; margin: 0 auto">
+      <div style="height: 500px; width: 95%; margin: 0 auto" >
         <div ref="qrcode" id="box">
           <vue-easy-print tableShow ref="easyPrint" :onePageRow="onePageRow">
             <div
@@ -17,35 +19,34 @@
               style="margin-bottom: 30px"
             >
               <div style="page-break-after: always">
-                <div class="word-title">
-                  <h4>采购入库单</h4>
-                </div>
-                <div class="tagBox">
-                  <div>
-                    <div style="font-size: 10px">
-                      申购部门:<span style="margin-left: 10px">{{
-                        item1.shen_gou_bu_men_|bumenfilters(bumenList)
-                      }}</span>
-                    </div>
-                    <div style="font-size: 10px">
-                      供应商:<span style="margin-left: 10px">{{
-                        item1.gong_ying_shang_
-                          | gongyingshang(gongyingshangList)
-                      }}</span>
-                    </div>
-                  </div>
-                  <div>
-                    <div style="margin-left: 20px;margin-right: 5px;font-size: 10px; ">
-                      采购订单编号:<span style="margin-left: 10px;">{{item1.cai_gou_ding_dan_}}</span>
-                    </div>
-                    <div style="margin-left: 20px; margin-right: 5px; font-size: 10px; ">
-                      日期 :<span style="margin-left: 10px">{{item1.dao_huo_ri_qi_}}</span>
-                    </div>
-                  </div>
-                </div>
                 <div>
-                  <table :border="1">
+                  <table :border="1">                   
                     <thead>
+                      <tr class="title">
+                        <th colspan="15">
+                          <div class="word-title" style="background:#fff;">
+                            <h4>采购入库单1</h4>
+                          </div>
+                          <div class="tagBox">
+                            <div>
+                              <div style="font-size: 10px;text-align: left;">申购部门:
+                                <span style="margin-left: 10px">{{item1.shen_gou_bu_men_|bumenfilters(bumenList)}}</span>
+                              </div>
+                              <div style="font-size: 10px">供应商:
+                              <span style="margin-left: 10px">{{item1.gong_ying_shang_| gongyingshang(gongyingshangList)}}</span>
+                            </div>
+                          </div>
+                          <div style="text-align: left;">
+                            <div style="font-size: 10px; ">采购订单编号:
+                              <span >{{item1.cai_gou_ding_dan_}}</span>
+                            </div>
+                            <div style="font-size: 10px; ">日期 :
+                              <span >{{item1.dao_huo_ri_qi_}}</span>
+                            </div>
+                          </div>
+                        </div>
+                        </th>
+                      </tr>
                       <tr>
                         <th style="width: 40px">序号</th>
                         <th style="font-weight: normal">物料编码</th>
@@ -68,16 +69,14 @@
                       <tr v-for="(item, index) in item1" :key="index">
                         <td style="width: 30px">{{ index + 1 }}</td>
                         <td style="width: 70px">{{ item.wu_liao_bian_ma_ }}</td>
-                        <td style="width: 120px">
-                          {{ item.wu_liao_ming_chen }}
-                        </td>
+                        <td style="width: 120px">{{ item.wu_liao_ming_chen }}</td>
                         <td style="width: 60px">{{ item.huo_hao_ }}</td>
                         <td style="width: 60px">{{ item.pi_hao_ }}</td>
                         <td style="width: 80px">{{ item.gui_ge_xing_hao_ }}</td>
                         <td style="width: 120px"> {{ item.gong_ying_shang_| gongyingshang(gongyingshangList) }} </td>
                         <td style="width: 45px">{{ item.shu_liang_ }}</td>
                         <td style="width: 45px">{{ item.dan_wei_ }}</td>
-                        <td style="width: 60px">{{ item.dan_jia_han_shui_ }}</td>
+                        <td style="width: 60px">{{ item.dan_jia_han_shui_ |numToFixed}}</td>
                         <td style="width: 45px">{{ item.shui_lv_ }}</td>
                         <td style="width: 45px">{{ item.dan_jia_|numToFixed}}</td>
                         <td style="width: 45px"> {{ item.dan_jia_han_shui_|shuieToFixed(item.shu_liang_,item.dan_jia_) }}</td>
@@ -102,19 +101,21 @@
                         <td style="width: 60px">{{ item1|addhshjToFixed }}</td>
                       </tr>
                     </tbody>
+                    <tfoot class="bottom">             
+                      <tr>
+                        <td colspan="6" style="text-align:left">
+                          <div style="margin-top:10px">仓管员:{{ item1.name2 }}</div>
+                        </td>
+                        <!-- <td colspan="1" class="footer-row">
+                          <div style="margin-top:10px" ref="innerRef">{{index1}}</div>
+                        </td> -->
+                        <td colspan="9" style="text-align:right">
+                          <div style="margin-top:10px">审核人:{{ item1.name3 }} </div>
+                        </td>
+                      </tr>
+                    </tfoot>
                   </table>
                 </div>
-                <div class="bottom">
-                  <div>仓管员:{{ item1.name2 }}
-                     <!-- /{{ item1.time2 }} -->
-                     </div>
-                  <div>
-                    审核人:{{ item1.name3 }} 
-                    <!-- /{{
-                      item1.time3
-                    }} -->
-                  </div>
-                </div>
               </div>
             </div>
           </vue-easy-print>
@@ -238,7 +239,6 @@ export default {
       }
     },
   },
-
   watch: {
     obj() {
       this.getInit();
@@ -272,12 +272,11 @@ export default {
       return a.toFixed("2") * 1 + b.toFixed("2") * 1;
     },
     getInit() {
-
-      console.log(this.obj)
       var idStr = "";
       this.obj.forEach((item) => {idStr += item + ",";});
       idStr = idStr.substring(0, idStr.length - 1);
       this.getLook(idStr);
+     
     },
     getLook(id) {
       this.list = [];
@@ -290,23 +289,19 @@ export default {
       let addjine = 0;
       let addshuie = 0;
       repostCurd("sql", sql).then((res) => {
-        
         zhubiao = res.variables.data;
         zhubiao.forEach((item) => {
           let sql1 = `select * FROM t_cgysjlb  WHERE FIND_IN_SET(wai_jian_,'${item.id_}')`;
           repostCurd("sql", sql1).then((res) => {
-            
             let data = res.variables.data;
             let s2 = `select a.NAME_,DATE_FORMAT(b.CREATE_TIME_,'%Y-%m-%d') AS CREATE_TIME_ FROM ibps_party_employee  as a join ibps_bpm_oper_log as b on a.ID_ = b.CREATE_BY_ where b.PROC_INST_ID_ = ( SELECT  PROC_INST_ID_  FROM ibps_bpm_bus_rel WHERE BUSINESSKEY_ = '${item.id_}' LIMIT 1) AND b.NODE_ID_ = 'Activity_04lhxla' ORDER BY b.CREATE_TIME_ DESC LIMIT 1`;
             repostCurd("sql", s2).then((res) => {
-              
               name2 = res.variables.data[0].NAME_;
               time2 = res.variables.data[0].CREATE_TIME_;
               data["name2"] = name2;
               data["time2"] = time2;
               let s3 = `select a.NAME_,DATE_FORMAT(b.CREATE_TIME_,'%Y-%m-%d') AS CREATE_TIME_ FROM ibps_party_employee  as a join ibps_bpm_oper_log as b on a.ID_ = b.CREATE_BY_ where b.PROC_INST_ID_ = ( SELECT  PROC_INST_ID_  FROM ibps_bpm_bus_rel WHERE BUSINESSKEY_ = '${item.id_}' LIMIT 1) AND b.NODE_ID_ = 'Activity_1dk76gy' ORDER BY b.CREATE_TIME_ DESC LIMIT 1`;
               repostCurd("sql", s3).then((res) => {
-                
                 name3 = res.variables.data[0].NAME_;
                 time3 = res.variables.data[0].CREATE_TIME_;
                 data["name3"] = name3;
@@ -335,24 +330,69 @@ export default {
                 addhanshuiheji = 0;
                 addjine = 0;
                 addshuie = 0;
-                console.log(this_.list);
+                // this_.getPage();
               });
             });
           });
         });
       });
+   
     },
+    // getPage(){
+    //   let bodyEle = document.getElementById("pageid");
+    //   console.log(bodyEle)
+    //     //获取页面总长度
+    //     let bodyHeight = bodyEle.clientHeight;
+    //     //获取页数 1026:单页A4纸总高度(不同得浏览器打印高度不一致,根据自己需求调整)
+    //     console.log(bodyHeight,"高度")
+    //     let count = (bodyHeight / 500) + 1;
+    //     //动态添加页码 通过绝对定位
+    //     for (let i = 0; i < count; i++) {
+    //         var topValue = Number(500 * (i + 1)) + Number(20 * i);
+    //         let foot = '<div class="pagerFooter" style="top:' + 200 + 'px;">' + '第' + (i + 1) + '页' + '<div>';
+    //         this.$refs.innerRef[i].innerHTML = i+1
+    //     }
+
+    // }
   },
 };
 </script>
 
+
+
+<style scoped>
+@page {
+  size: auto; /* auto is the initial value */
+  color: #fff;
+}
+</style>
 <style lang="scss" scoped>
+
+
+//  @page :first {
+//   color: green;
+
+// @top-left {
+//     content: "foo" !important;
+//     color: blue;
+//   }
+//   @top-right {
+//     content: "bar";
+//   }
+// }
+
+
+
 .bottom {
   margin-top: 15px;
-  display: flex;
-  justify-content: space-between;
-  align-items: center;
-  font-size: 10px;
+  border-bottom: 1px solid #fff;
+  border-left: 1px solid #fff;
+  border-right: 1px solid #fff;
+}
+.title{
+  border-top: 1px solid #fff;
+  border-left: 1px solid #fff;
+  border-right: 1px solid #fff;
 }
 .word-title {
   display: flex;

+ 71 - 55
src/views/system/jbdScan/goods/lingliaodan.vue

@@ -17,31 +17,33 @@
               style="margin-bottom: 30px"
             >
               <div style="page-break-after: always">
-                <div class="word-title">
-                  <h4>领料单</h4>
-                </div>
-                <div class="tagBox">
-                  <div>
-                    <div style="font-size: 10px">
-                      领料部门:
-                      <span style="margin-left: 10px">
-                      {{item1.bu_men_ming_cheng}}</span>
-                    </div>
-                  </div>
-                  <div>
-                    <div style=" margin-left: 20px;  margin-right: 5px; font-size: 10px;" >
-                      领料单编号:
-                      <span style="margin-left: 10px">{{  item1.ling_liao_chu_ku_ }}</span>
-                    </div>
-                    <div style="margin-left: 20px;  margin-right: 5px; font-size: 10px; ">
-                      领 料 日 期:
-                      <span style="margin-left: 10px">{{ item1.ling_liao_ri_qi_}}</span>
-                    </div>
-                  </div>
-                </div>
                 <div>
                   <table :border="1">
                     <thead>
+                      <tr class="title">
+                        <th colspan="15">
+                          <div class="word-title" style="background:#fff;">
+                            <h4 style="font-size:16px">领料单</h4>
+                          </div>
+                          <div class="tagBox">
+                            <div>
+                              <div style="font-size: 10px">
+                                领料部门:<span style="margin-left: 10px">{{item1.bu_men_ming_cheng}}</span>
+                              </div>
+                          </div>
+                          <div style="text-align: left;">
+                            <div style=" margin-left: 20px;  margin-right: 5px; font-size: 10px;" >
+                              领料单编号:
+                              <span style="margin-left: 10px">{{  item1.ling_liao_chu_ku_ }}</span>
+                            </div>
+                            <div style="margin-left: 20px;  margin-right: 5px; font-size: 10px; ">
+                              领 料 日 期:
+                              <span style="margin-left: 10px">{{ item1.ling_liao_ri_qi_}}</span>
+                            </div>
+                          </div>
+                        </div>
+                        </th>
+                      </tr>
                       <tr>
                         <th style="width: 40px; line-height: 22px">序号</th>
                         <th style="font-weight: normal">物料编码</th>
@@ -60,17 +62,12 @@
                     <tbody>
                       <tr v-for="(item, index) in item1" :key="index">
                         <td style="width: 30px">{{ index + 1 }}</td>
-                        <td style="width: 90px">
-                          {{ item.wu_liao_bian_hao_ }}
-                        </td>
-                        <td style="width: 120px">
-                          {{ item.wu_liao_ming_chen }}
+                        <td style="width: 90px">{{ item.wu_liao_bian_hao_ }}</td>
+                        <td style="width: 160px">{{ item.wu_liao_ming_chen }}
                         </td>
                         <!-- <td style="width: 60px">{{ item.huo_hao_ }}</td>  -->
-                        <td style="width: 60px">{{ item.pi_hao_ }}</td>
-                        <td style="width: 120px">
-                          {{ item.gui_ge_xing_hao_ }}
-                        </td>
+                        <td style="width: 80px">{{ item.pi_hao_ }}</td>
+                        <td style="width: 120px">{{ item.gui_ge_xing_hao_ }}</td>
                         <td style="width: 60px">{{ item.shu_liang_ }}</td>
                         <td style="width: 60px">{{ item.dan_wei_ }}</td>
                         <td style="width: 60px">{{ item.dan_jia_ |numToFixed(item.dan_jia_) }}</td>
@@ -78,34 +75,42 @@
                         <td style="width: 80px">{{ item.yong_tu_ }}</td>
                         <td style="width: 120px">{{ item.bei_zhu_ }}</td>
                       </tr>
-                    </tbody>
-                    <tfoot align="right"
-                      valign="bottom"
-                      style="text-align: right !important; height: 30px"
-                    >
                       <tr>
-                        <td colspan="13" style="text-align: right !important">
+                        <td style="width: 30px"></td>
+                        <td style="width: 90px"></td>
+                        <td style="width: 160px"></td>
+                        <td style="width: 80px"></td>
+                        <td style="width: 120px"></td>
+                        <td style="width: 60px"></td>
+                        <td style="width: 60px"></td>
+                        <td style="width: 60px"></td>
+                        <td style="width: 60px"></td>
+                        <td style="width: 80px"></td>
+                        <td style="width: 80px">
                           合计:{{ item1.heji }}
                         </td>
                       </tr>
+                    </tbody>
+                    <tfoot >           
+                      <!-- <tr>
+                        <td colspan="13" style="text-align: right !important;height: 30px;padding-right: 17px;">
+                          合计:{{ item1.heji }}
+                        </td>
+                      </tr> -->
+                      <tr class="bottom">
+                        <td colspan="4" style="text-align:left">
+                          <div style="float: left;margin-top:10px">领用人/日期:{{ item1.name1 }}/{{ item1.ling_liao_ri_qi_ }}</div>
+                        </td>
+                        <td colspan="4" class="footer-row">
+                          <div style="margin: 0 auto;margin-top:10px">审核人/日期 :{{ item1.name2 }} /{{item1.time2}}</div>
+                        </td>
+                        <td colspan="5" style="text-align:right">
+                          <div style="margin-top:10px">发放人/日期 :{{ item1.name3 }}/{{ item1.time3 }}</div>
+                        </td>
+                      </tr>
                     </tfoot>
                   </table>
                 </div>
-                <div class="bottom">
-                  <div></div>
-                  <div style="float: left">
-                    领用人/日期:
-                    {{ item1.name1 }}/{{ item1.ling_liao_ri_qi_ }}
-                  </div> 
-                  <div style="margin: 0 auto">
-                    审核人/日期 :
-                    {{ item1.name2 }} /{{item1.time2}}
-                  </div>
-                  <div>
-                    发放人/日期 :
-                    {{ item1.name3 }}/{{ item1.time3 }}
-                  </div>
-                </div>
               </div>
             </div>
           </vue-easy-print>
@@ -310,11 +315,22 @@ export default {
 <style lang="scss" scoped>
 .bottom {
   margin-top: 15px;
-  display: flex;
-  justify-content: space-between;
-  align-items: center;
+  // display: flex;
+  // justify-content: space-between;
+  // align-items: center;
   font-size: 12px;
 }
+.bottom {
+  margin-top: 15px;
+  border-bottom: 1px solid #fff;
+  border-left: 1px solid #fff;
+  border-right: 1px solid #fff;
+}
+.title{
+  border-top: 1px solid #fff;
+  border-left: 1px solid #fff;
+  border-right: 1px solid #fff;
+}
 .word-title {
   display: flex;
   justify-content: center;

+ 1 - 1
src/views/system/jbdScan/wuliao/bwlingliaodan.vue

@@ -18,7 +18,7 @@
             >
               <div style="page-break-after: always">
                 <div class="word-title">
-                  <h4>领料单</h4>
+                  <h4>21212</h4>
                 </div>
                 <div class="tagBox">
                   <div>

+ 49 - 44
src/views/system/jbdScan/wuliao/chnangguirukudan.vue

@@ -1,4 +1,5 @@
 <template>
+  <!-- //流程常规验收入库单 -->
   <div class="bg">
     <el-dialog
       width="26cm"
@@ -17,35 +18,34 @@
               style="margin-bottom: 30px"
             >
               <div style="page-break-after: always">
-                <div class="word-title">
-                  <h4>采购入库单</h4>
-                </div>
-                <div class="tagBox">
-                  <div>
-                    <div style="font-size: 10px">
-                      申购部门:<span style="margin-left: 10px">{{
-                        item1.shen_gou_bu_men_|bumenfilters(bumenList)
-                      }}</span>
-                    </div>
-                    <div style="font-size: 10px">
-                      供应商:<span style="margin-left: 10px">{{
-                        item1.gong_ying_shang_
-                          | gongyingshang(gongyingshangList)
-                      }}</span>
-                    </div>
-                  </div>
-                  <div>
-                    <div style="margin-left: 20px;margin-right: 5px;font-size: 10px; ">
-                      采购订单编号:<span style="margin-left: 10px;">{{item1.cai_gou_ding_dan_}}</span>
-                    </div>
-                    <div style="margin-left: 20px; margin-right: 5px; font-size: 10px; ">
-                      日期 :<span style="margin-left: 10px">{{item1.dao_huo_ri_qi_}}</span>
-                    </div>
-                  </div>
-                </div>
                 <div>
                   <table :border="1">
                     <thead>
+                      <tr class="title">
+                        <th colspan="15">
+                          <div class="word-title" style="background:#fff;">
+                            <h4 style="font-size:16px;">采购入库单</h4>
+                          </div>
+                          <div class="tagBox">
+                            <div>
+                              <div style="font-size: 10px;text-align: left;">申购部门:
+                                <span style="margin-left: 10px">{{item1.shen_gou_bu_men_|bumenfilters(bumenList)}}</span>
+                              </div>
+                              <div style="font-size: 10px">供应商:
+                              <span style="margin-left: 10px">{{item1.gong_ying_shang_| gongyingshang(gongyingshangList)}}</span>
+                            </div>
+                          </div>
+                          <div style="text-align: left;">
+                            <div style="font-size: 10px; ">采购订单编号:
+                              <span >{{item1.cai_gou_ding_dan_}}</span>
+                            </div>
+                            <div style="font-size: 10px; ">日期 :
+                              <span >{{item1.dao_huo_ri_qi_}}</span>
+                            </div>
+                          </div>
+                        </div>
+                        </th>
+                      </tr>
                       <tr>
                         <th style="width: 40px">序号</th>
                         <th style="font-weight: normal">物料编码</th>
@@ -68,9 +68,7 @@
                       <tr v-for="(item, index) in item1" :key="index">
                         <td style="width: 30px">{{ index + 1 }}</td>
                         <td style="width: 70px">{{ item.wu_liao_bian_ma_ }}</td>
-                        <td style="width: 120px">
-                          {{ item.wu_liao_ming_chen }}
-                        </td>
+                        <td style="width: 120px">{{ item.wu_liao_ming_chen }}</td>
                         <td style="width: 60px">{{ item.huo_hao_ }}</td>
                         <td style="width: 60px">{{ item.pi_hao_ }}</td>
                         <td style="width: 80px">{{ item.gui_ge_xing_hao_ }}</td>
@@ -102,19 +100,21 @@
                         <td style="width: 60px">{{ item1|addhshjToFixed }}</td>
                       </tr>
                     </tbody>
+                     <tfoot class="bottom">             
+                      <tr>
+                        <td colspan="6" style="text-align:left">
+                          <div style="margin-top:10px">仓管员:{{ item1.name2 }}</div>
+                        </td>
+                        <!-- <td colspan="1" class="footer-row">
+                          <div style="margin-top:10px">{{index1}}</div>
+                        </td> -->
+                        <td colspan="9" style="text-align:right">
+                          <div style="margin-top:10px">审核人:{{ item1.name3 }} </div>
+                        </td>
+                      </tr>
+                    </tfoot>
                   </table>
                 </div>
-                <div class="bottom">
-                  <div>仓管员:{{ item1.name2 }}
-                     <!-- /{{ item1.time2 }} -->
-                     </div>
-                  <div>
-                    审核人:{{ item1.name3 }} 
-                    <!-- /{{
-                      item1.time3
-                    }} -->
-                  </div>
-                </div>
               </div>
             </div>
           </vue-easy-print>
@@ -350,11 +350,16 @@ export default {
 <style lang="scss" scoped>
 .bottom {
   margin-top: 15px;
-  display: flex;
-  justify-content: space-between;
-  align-items: center;
-  font-size: 10px;
+  border-bottom: 1px solid #fff;
+  border-left: 1px solid #fff;
+  border-right: 1px solid #fff;
+}
+.title{
+  border-top: 1px solid #fff;
+  border-left: 1px solid #fff;
+  border-right: 1px solid #fff;
 }
+
 .word-title {
   display: flex;
   justify-content: center;

+ 1 - 1
src/views/system/jbdScan/wuliao/lingliaodan.vue

@@ -18,7 +18,7 @@
             >
               <div style="page-break-after: always">
                 <div class="word-title">
-                  <h4>领料单</h4>
+                  <h4>领料单1</h4>
                 </div>
                 <div class="tagBox">
                   <div>