ソースを参照

fix:打单边框虚线问题,和超过边界

zhangjingyuan 1 年間 前
コミット
a7fdc7b808

+ 9 - 8
src/views/system/jbdScan/goods/bwlingliaodan.vue

@@ -1,13 +1,13 @@
 <template>
   <div class="bg">
-    <el-dialog width="230mm" height="279mm" :modal-append-to-body="false" title="领料单" :visible.sync="scanVisible">
+    <el-dialog width="900px" height="279mm" :modal-append-to-body="false" title="领料单" :visible.sync="scanVisible">
       <!-- 列表页面打印 -->
-      <div style="height: 500px; width: 90%; margin: 0 auto">
+      <div style="height: 500px; width: 86%; margin: 0 auto">
         <div ref="qrcode" id="box">
           <vue-easy-print tableShow ref="easyPrint" :onePageRow="onePageRow">
-            <div v-for="(item1, index1) in list" :key="index1" style="margin-bottom: 30px;width: 86%;margin:0px 0px 0px 0px;">
+            <div v-for="(item1, index1) in list" :key="index1" style="margin-bottom: 30px;width: 88%;margin:0px 0px 0px 0px;">
               <div style="page-break-after: always">
-                <div style="margin: 0px 0px 0px 27px;">
+                <div style="margin: 0px 0px 0px 2px;">
                   <table :border="1">
                     <thead>
                       <tr class="title" >
@@ -24,7 +24,7 @@
                           <span style="float:right;padding-right: 8px;margin-right: 15px">领料单号:&nbsp;{{  item1.ling_liao_dan_bia }}</span>
                         </th>
                       </tr>
-                      <tr>
+                      <tr style="border:1px solid #000;">
                         <th style="width: 40px; line-height: 22px">序号</th>
                         <th style="font-weight: normal">物料编码</th>
                         <th style="font-weight: normal">物料名称</th>
@@ -39,7 +39,7 @@
                       </tr>
                     </thead>
                     <tbody>
-                      <tr v-for="(item, index) in item1" :key="index">
+                      <tr v-for="(item, index) in item1" :key="index" style="border:1px solid #000;">
                         <td style="width: 30px">{{ index + 1 }}</td>
                         <td style="width: 90px">{{ item.wu_liao_bian_hao_ }}</td>
                         <td style="width: 120px;padding: 1px;">{{ item.wu_liao_ming_chen }}</td>
@@ -52,7 +52,7 @@
                         <td style="width: 80px">{{ item.yong_tu_ }}</td>
                         <td style="width: 120px">{{ item.bei_zhu_ }}</td>
                       </tr>
-                      <tr class="count">
+                      <tr class="count" style="border:1px solid #000;">
                         <td colspan="11">
                           合计:{{ item1.heji }}
                         </td>
@@ -273,7 +273,7 @@ table {
   font-family: "微软雅黑";
   font-weight: 500;
   background: #fff;
-  font-size: 13px;
+  font-size: 12px;
 }
 td {
   text-align: center;
@@ -290,6 +290,7 @@ thead > tr > th > td {
   border: 1px solid #fff;
 }
 .title-sub{
+  font-size: 12px;
   border-left: 1px solid #fff;
   border-right: 1px solid #fff;
 }

+ 8 - 7
src/views/system/jbdScan/goods/caigourukudan.vue

@@ -8,16 +8,16 @@
       :visible.sync="scanVisible"
     >
       <!-- 表单是否显示 技术列表页面打印-->
-      <div style="height: 500px; width: 88%; margin: 0 auto;overflow: hidden;" v-if="scanVisible">
+      <div style="height: 500px; width: 86%; margin: 0 auto;overflow: hidden;" v-if="scanVisible">
         <div ref="qrcode" id="box">
           <vue-easy-print tableShow ref="easyPrint" :onePageRow="onePageRow">
             <div
               v-for="(item1, index1) in list"
               :key="index1"
-              style="margin-bottom: 30px;width: 88%;margin: 0px 0px 0px 0px;"
+              style="margin-bottom: 30px;width: 88%;margin: 0px 0px 0px 2px;"
             >
               <div style="page-break-after: always;">
-                <div style="margin: 0px 0px 0px 30px;">
+                <div style="margin: 0px 0px 0px 2px;">
                   <table :border="1">
                     <thead>
                       <tr class="title">
@@ -33,7 +33,7 @@
                           <span style="margin-left: 6px;float: right;">采购单号:{{item1[0].cai_gou_ding_dan_}} </span>             
                         </th>
                       </tr>
-                      <tr>
+                      <tr style="border:1px solid #000;font-size: 12px;">
                         <th style="width: 15px">序号</th>
                         <th style="font-weight: normal;width: 25px">物料编码</th>
                         <th style="font-weight: normal;width: 70px">物料名称</th>
@@ -52,7 +52,7 @@
                       </tr>
                     </thead>
                     <tbody>
-                      <tr v-for="(item, index) in item1" :key="index">
+                      <tr v-for="(item, index) in item1" :key="index" style="border:1px solid #000;">
                         <td style="width: 25px">{{ index+1 }}</td>
                         <td style="width: 70px">{{ item.wu_liao_dai_ma_ }}</td>
                         <td style="width: 100px">{{ item.wu_liao_ming_chen }}</td>
@@ -71,7 +71,7 @@
                           {{ item.han_shui_he_ji_|numToFixed(item.han_shui_he_ji_) }}
                         </td>
                       </tr>
-                      <tr class="count">
+                      <tr class="count" style="border:1px solid #000;">
                         <td colspan="15">
                           合计&nbsp;&nbsp;&nbsp;&nbsp;
                           税额:&nbsp;{{ item1.addshuie}}&nbsp;&nbsp;
@@ -303,12 +303,13 @@ table {
   border-collapse: collapse;
   font-family: "微软雅黑";
   background: #fff;
-  font-size: 13px;
+  font-size: 12px;
 }
 .title{
   border: 1px solid #fff;
 }
 .title-sub{
+  font-size: 12px;
   border-left: 1px solid #fff;
   border-right: 1px solid #fff;
 }

+ 7 - 21
src/views/system/jbdScan/goods/chnangguirukudan.vue

@@ -15,10 +15,10 @@
             <div
               v-for="(item1, index1) in list"
               :key="index1"
-              style="margin-bottom: 30px;width: 92%;margin: 0px 0px 0px 0px;"
+              style="margin-bottom: 30px;width: 88%;margin: 0px 0px 0px 2px;"
             >
               <div style="page-break-after: always">
-                <div style="margin: 0px 0px 0px 30px;">
+                <div style="margin: 0px 0px 0px 2px;">
                   <table :border="1">                   
                     <thead >
                       <tr class="title">
@@ -34,7 +34,7 @@
                           <span style="margin-left: 6px;float: right;">采购单号:{{item1.cai_gou_ding_dan_}} </span>             
                         </th>
                       </tr>
-                      <tr >
+                      <tr style="border:1px solid #000;">
                         <th style="width: 40px; line-height: 22px">序号</th>
                         <th >物料编码</th>
                         <th >物料名称</th>
@@ -53,7 +53,7 @@
                       </tr>
                     </thead>
                     <tbody>
-                      <tr v-for="(item, index) in item1" :key="index">
+                      <tr v-for="(item, index) in item1" :key="index" style="border:1px solid #000;">
                         <td style="width: 20px">{{ index + 1 }}</td>
                         <td style="width: 70px">{{ item.wu_liao_bian_ma_ }}</td>
                         <td style="width: 80px">{{ item.wu_liao_ming_chen }}</td>
@@ -70,22 +70,7 @@
                         <td style="width: 45px;padding: 1px;">{{ item.dan_jia_|jineToFixed(item.shu_liang_)}}</td>
                         <td style="width: 60px">{{ item.dan_jia_han_shui_|jineToFixed(item.shu_liang_) }}</td>
                       </tr>
-                      <tr class="count">
-                        <!-- <td style="width: 20px"></td>
-                        <td style="width: 70px"></td>
-                        <td style="width: 80px"></td>
-                        <td style="width: 60px"></td>
-                        <td style="width: 60px"></td>
-                        <td style="width: 80px"></td>
-                        <td style="width: 100px"></td>
-                        <td style="width: 45px"></td>
-                        <td style="width: 45px"></td>
-                        <td style="width: 60px"></td>
-                        <td style="width: 45px"></td>
-                        <td style="width: 45px">合计</td>
-                        <td style="width: 45px">{{ item1|addshuieToFixed}}</td>
-                        <td style="width: 45px">{{ item1|addshuieToFixed}}</td>
-                        <td style="width: 60px">{{ item1|addhshjToFixed }}</td> -->
+                      <tr class="count" style="border:1px solid #000;">
                         <td colspan="15">
                           合计&nbsp;&nbsp;&nbsp;&nbsp;
                           税额:&nbsp;{{ item1|addshuieToFixed}}&nbsp;&nbsp;
@@ -338,12 +323,13 @@ table {
   border-collapse: collapse;
   font-family: "微软雅黑";
   background: #fff;
-  font-size: 13px;
+  font-size: 12px;
 }
 .title{
   border: 1px solid  #fff;
 }
 .title-sub{
+  font-size: 12px;
   border-left: 1px solid  #fff;
   border-right: 1px solid  #fff;
 }

+ 7 - 7
src/views/system/jbdScan/goods/lingliaodan.vue

@@ -8,16 +8,16 @@
       :visible.sync="scanVisible"
     >
       <!-- 列表页面打印 -->
-      <div style="height: 500px; width: 90%; margin: 0 auto">
+      <div style="height: 500px; width: 86%; margin: 0 auto">
         <div ref="qrcode" id="box">
           <vue-easy-print tableShow ref="easyPrint" :onePageRow="onePageRow">
             <div
               v-for="(item1, index1) in list"
               :key="index1"
-              style="margin-bottom: 30px;width: 86%;margin:0px 0px 0px 0px;"
+              style="margin-bottom: 30px;width: 88%;margin:0px 0px 0px 2px;"
             >
               <div style="page-break-after: always">
-                <div style="margin: 0px 0px 0px 27px;"> 
+                <div style="margin: 0px 0px 0px 0px;"> 
                   <table :border="1">
                     <thead>
                       <tr class="title" >
@@ -34,7 +34,7 @@
                           <span style="float:right;padding-right: 8px;margin-right: 15px">领料单号:&nbsp;{{  item1.ling_liao_chu_ku_ }}</span>
                         </th>
                       </tr>
-                      <tr>
+                      <tr style="border:1px solid #000;">
                         <th style="width: 40px; line-height: 22px">序号</th>
                         <th style="font-weight: normal">物料编码</th>
                         <th style="font-weight: normal">物料名称</th>
@@ -49,7 +49,7 @@
                       </tr>
                     </thead>
                     <tbody>
-                      <tr v-for="(item, index) in item1" :key="index">
+                      <tr v-for="(item, index) in item1" :key="index" style="border:1px solid #000;">
                         <td style="width: 30px">{{ index + 1 }}</td>
                         <td style="width: 90px">{{ item.wu_liao_bian_hao_ }}</td>
                         <td style="width: 100px;padding: 1px;">{{ item.wu_liao_ming_chen }}</td>
@@ -62,7 +62,7 @@
                         <td style="width: 85px">{{ item.yong_tu_ }}</td>
                         <td style="width: 85px">{{ item.bei_zhu_ }}</td>
                       </tr>
-                      <tr class="count">
+                      <tr class="count" style="border:1px solid #000;">
                         <td colspan="11">
                           合计:{{ item1.heji }}
                         </td>
@@ -287,7 +287,7 @@ table {
   font-family: "微软雅黑";
   font-weight: 500;
   background: #fff;
-  font-size: 13px;
+  font-size: 12px;
 }
 td {
   text-align: center;

+ 8 - 7
src/views/system/jbdScan/wuliao/bwlingliaodan.vue

@@ -1,22 +1,22 @@
 <template>
   <div class="bg">
     <el-dialog
-      width="230mm"
+      width="900px"
       height="279mm"
       :modal="!alertVisible"
       :visible.sync="alertVisible "
     >
       <!-- 表单是否显示 -->
-      <div style="height: 500px; width: 95%; margin: 0 auto">
+      <div style="height: 500px; width: 86%; margin: 0 auto">
         <div ref="qrcode" id="box">
           <vue-easy-print tableShow ref="easyPrint" :onePageRow="onePageRow">
             <div
               v-for="(item1, index1) in list"
               :key="index1"
-              style="margin-bottom: 30px;width: 86%;margin:0px -10px 0px 5px;"
+              style="margin-bottom: 30px;width: 88%;margin:0px 0px 0px 2px;"
             >
               <div style="page-break-after: always">
-                <div style="margin: 0px -2px 0px 40px;">
+                <div style="margin: 0px 0px 0px 0px;">
                   <table :border="1">
                     <thead>
                       <tr class="title" >
@@ -33,7 +33,7 @@
                           <span style="float:right;padding-right: 8px;margin-right: 15px">领料单号:&nbsp;{{  item1.ling_liao_dan_bia }}</span>
                         </th>
                       </tr>
-                      <tr>
+                      <tr style="border:1px solid #000;">
                         <th style="width: 40px; line-height: 22px">序号</th>
                         <th style="font-weight: normal">物料编码</th>
                         <th style="font-weight: normal">物料名称</th>
@@ -48,7 +48,7 @@
                       </tr>
                     </thead>
                     <tbody>
-                      <tr v-for="(item, index) in item1" :key="index">
+                      <tr v-for="(item, index) in item1" :key="index" style="border:1px solid #000;">
                         <td style="width: 30px">{{ index + 1 }}</td>
                         <td style="width: 90px">{{ item.wu_liao_bian_hao_ }}</td>
                         <td style="width: 120px;padding: 1px;">{{ item.wu_liao_ming_chen }}</td>
@@ -61,7 +61,7 @@
                         <td style="width: 80px">{{ item.yong_tu_ }}</td>
                         <td style="width: 120px">{{ item.bei_zhu_ }}</td>
                       </tr>
-                      <tr class="count">
+                      <tr class="count" style="border:1px solid #000;">
                         <td colspan="11">
                           合计:{{ item1.heji }}
                         </td>
@@ -309,6 +309,7 @@ thead > tr > th > td {
   border: 1px solid #fff;
 }
 .title-sub{
+  font-size: 12px;
   border-left: 1px solid #fff;
   border-right: 1px solid #fff;
 }

+ 10 - 9
src/views/system/jbdScan/wuliao/caigourukudan.vue

@@ -1,21 +1,21 @@
 <template>
   <div class="bg">
     <el-dialog
-      width="26cm"
-      height="12cm"
+      width="900px"
+      height="279mm"
       :modal="!alertVisible"
       :visible.sync="alertVisible"
     >
       <!-- 表单是否显示 技术列表流程页面打印 -->
-      <div style="height: 500px; width: 90%; margin: 0 auto" >
+      <div style="height: 500px; width: 86%; margin: 0 auto" >
         <div ref="qrcode" id="box">
           <vue-easy-print tableShow ref="easyPrint" :onePageRow="onePageRow">
             <div
               v-for="(item1, index1) in list"
               :key="index1"
-              style="margin-bottom: 30px;width: 88%;margin: 0px 0px 0px 0px;"
+              style="margin-bottom: 30px;width: 88%;margin: 0px 0px 0px 2px;"
             >
-              <div style="page-break-after: always;margin: 0px 0px 0px 30px;">
+              <div style="page-break-after: always;margin: 0px 0px 0px 2px;">
                 <table :border="1">
                     <thead>
                       <tr class="title">
@@ -31,7 +31,7 @@
                           <span style="margin-left: 6px;float: right;">采购单号:{{item1[0].cai_gou_ding_dan_}} </span>             
                         </th>
                       </tr>
-                      <tr>
+                      <tr style="border:1px solid #000;">
                         <th style="width: 15px">序号</th>
                         <th style="font-weight: normal;width: 25px">物料编码</th>
                         <th style="font-weight: normal;width: 70px">物料名称</th>
@@ -50,7 +50,7 @@
                       </tr>
                     </thead>
                     <tbody>
-                      <tr v-for="(item, index) in item1" :key="index">
+                      <tr v-for="(item, index) in item1" :key="index" style="border:1px solid #000;">
                         <td style="width: 25px">{{ index+1 }}</td>
                         <td style="width: 70px">{{ item.wu_liao_dai_ma_ }}</td>
                         <td style="width: 100px">{{ item.wu_liao_ming_chen }}</td>
@@ -69,7 +69,7 @@
                           {{ item.han_shui_he_ji_|numToFixed(item.han_shui_he_ji_) }}
                         </td>
                       </tr>
-                      <tr class="count">
+                      <tr class="count" style="border:1px solid #000;">
                         <td colspan="15">
                           合计&nbsp;&nbsp;&nbsp;&nbsp;
                           税额:&nbsp;{{ item1.addshuie}}&nbsp;&nbsp;
@@ -300,12 +300,13 @@ table {
   border-collapse: collapse;
   font-family: "微软雅黑";
   background: #fff;
-  font-size: 13px;
+  font-size: 12px;
 }
 .title{
   border: 1px solid #fff;
 }
 .title-sub{
+  font-size: 12px;
   border-left: 1px solid #fff;
   border-right: 1px solid #fff;
 }

+ 10 - 24
src/views/system/jbdScan/wuliao/chnangguirukudan.vue

@@ -2,22 +2,22 @@
   <!-- //流程常规验收入库单 -->
   <div class="bg">
     <el-dialog
-      width="26cm"
-      height="12cm"
+      width="900px"
+      height="279mm"
       :modal="!alertVisible"
       :visible.sync="alertVisible "
     >
       <!-- 表单是否显示 -->
-      <div style="height: 500px; width: 95%; margin: 0 auto">
+      <div style="height: 500px; width: 86%; margin: 0 auto">
         <div ref="qrcode" id="box">
           <vue-easy-print tableShow ref="easyPrint" :onePageRow="onePageRow">
             <div
               v-for="(item1, index1) in list"
               :key="index1"
-              style="margin-bottom: 30px;width: 88%;margin: 0px 0px 0px 0px;"
+              style="margin-bottom: 30px;width: 88%;margin: 0px 0px 0px 2px;"
             >
               <div style="page-break-after: always">
-                <div style="margin: 0px 0px 0px 27px;">
+                <div style="margin: 0px 0px 0px 2px;">
                   <table :border="1">                   
                     <thead >
                       <tr class="title">
@@ -33,7 +33,7 @@
                           <span style="margin-left: 6px;float: right;">采购单号:{{item1.cai_gou_ding_dan_}} </span>             
                         </th>
                       </tr>
-                      <tr >
+                      <tr style="border:1px solid #000;">
                         <th style="width: 40px; line-height: 22px">序号</th>
                         <th >物料编码</th>
                         <th >物料名称</th>
@@ -52,7 +52,7 @@
                       </tr>
                     </thead>
                     <tbody>
-                      <tr v-for="(item, index) in item1" :key="index">
+                      <tr v-for="(item, index) in item1" :key="index" style="border:1px solid #000;">
                         <td style="width: 20px">{{ index + 1 }}</td>
                         <td style="width: 70px">{{ item.wu_liao_bian_ma_ }}</td>
                         <td style="width: 80px">{{ item.wu_liao_ming_chen }}</td>
@@ -69,22 +69,7 @@
                         <td style="width: 45px;padding: 1px;">{{ item.dan_jia_|jineToFixed(item.shu_liang_)}}</td>
                         <td style="width: 60px">{{ item.dan_jia_han_shui_|jineToFixed(item.shu_liang_) }}</td>
                       </tr>
-                      <tr class="count">
-                        <!-- <td style="width: 20px"></td>
-                        <td style="width: 70px"></td>
-                        <td style="width: 80px"></td>
-                        <td style="width: 60px"></td>
-                        <td style="width: 60px"></td>
-                        <td style="width: 80px"></td>
-                        <td style="width: 100px"></td>
-                        <td style="width: 45px"></td>
-                        <td style="width: 45px"></td>
-                        <td style="width: 60px"></td>
-                        <td style="width: 45px"></td>
-                        <td style="width: 45px">合计</td>
-                        <td style="width: 45px">{{ item1|addshuieToFixed}}</td>
-                        <td style="width: 45px">{{ item1|addshuieToFixed}}</td>
-                        <td style="width: 60px">{{ item1|addhshjToFixed }}</td> -->
+                      <tr class="count" style="border:1px solid #000;">
                         <td colspan="15">
                           合计&nbsp;&nbsp;&nbsp;&nbsp;
                           税额:&nbsp;{{ item1|addshuieToFixed}}&nbsp;&nbsp;
@@ -346,12 +331,13 @@ table {
   border-collapse: collapse;
   font-family: "微软雅黑";
   background: #fff;
-  font-size: 13px;
+  font-size: 12px;
 }
 .title{
   border: 1px solid #fff;
 }
 .title-sub{
+  font-size: 12px;
   border-left: 1px solid #fff;
   border-right: 1px solid #fff;
 }

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

@@ -7,16 +7,16 @@
       :visible.sync="alertVisible "
     >
       <!-- 流程节点页面打印-->
-      <div style="height: 500px; width: 90%; margin: 0 auto">
+      <div style="height: 500px; width: 86%; margin: 0 auto">
         <div ref="qrcode" id="box">
           <vue-easy-print tableShow ref="easyPrint" :onePageRow="onePageRow">
             <div
               v-for="(item1, index1) in list"
               :key="index1"
-              style="margin-bottom: 30px;width: 86%;margin:0px 0px 0px 0px;"
+              style="margin-bottom: 30px;width: 88%;margin:0px 0px 0px 2px;"
             >
               <div style="page-break-after: always">
-                <div style="margin: 0px 0px 0px 27px;"> 
+                <div style="margin: 0px 0px 0px 0px;"> 
                   <table :border="1">
                     <thead>
                       <tr class="title" >
@@ -33,7 +33,7 @@
                           <span style="float:right;padding-right: 8px;margin-right: 15px">领料单号:&nbsp;{{  item1.ling_liao_chu_ku_ }}</span>
                         </th>
                       </tr>
-                      <tr>
+                      <tr style="border:1px solid #000;">
                         <th style="width: 40px; line-height: 22px">序号</th>
                         <th style="font-weight: normal">物料编码</th>
                         <th style="font-weight: normal">物料名称</th>
@@ -48,7 +48,7 @@
                       </tr>
                     </thead>
                     <tbody>
-                      <tr v-for="(item, index) in item1" :key="index">
+                      <tr v-for="(item, index) in item1" :key="index" style="border:1px solid #000;">
                         <td style="width: 30px">{{ index + 1 }}</td>
                         <td style="width: 90px">{{ item.wu_liao_bian_hao_ }}</td>
                         <td style="width: 100px;padding: 1px;">{{ item.wu_liao_ming_chen }}</td>
@@ -61,7 +61,7 @@
                         <td style="width: 85px">{{ item.yong_tu_ }}</td>
                         <td style="width: 85px">{{ item.bei_zhu_ }}</td>
                       </tr>
-                      <tr class="count">
+                      <tr class="count" style="border:1px solid #000;">
                         <td colspan="11">
                           合计:{{ item1.heji }}
                         </td>
@@ -295,7 +295,7 @@ table {
   font-family: "微软雅黑";
   font-weight: 500;
   background: #fff;
-  font-size: 13px;
+  font-size: 12px;
 }
 td {
   text-align: center;