whj 1 year ago
parent
commit
42bb0d8045
1 changed files with 11 additions and 4 deletions
  1. 11 4
      src/views/sb/info/modules/PrintInSbInfoBatch.vue

+ 11 - 4
src/views/sb/info/modules/PrintInSbInfoBatch.vue

@@ -9,7 +9,7 @@
         </span>
       </a-col>
     </a-row>
-    <a-row>
+    <!-- <a-row>
       <a-col :span="4">
         标签纸宽度(黑色背景)
       </a-col>
@@ -52,9 +52,15 @@
       <a-col :span="2">
         <a-input-number v-model="imgWidth" suffix="px" style="marginLeft: 8px" />
       </a-col>
-    </a-row>
+    </a-row> -->
     <div class="container" :style="labelWidthProgress" id="print-container-batch">
-      <table class="gridtable list" :style="labelContentWidthProgress" :id="'printDiv' + record.id" v-for="record in sbInfoList" :key="record.id">
+      <table
+        class="gridtable list"
+        :style="labelContentWidthProgress"
+        :class="{page:((i+1)%3)===0}"
+        :id="'printDiv' + record.id"
+        v-for="(record,i) in sbInfoList"
+        :key="record.id">
         <tbody>
           <tr>
             <td class="text-center">名称</td>
@@ -222,13 +228,14 @@ export default {
 
 table.gridtable {
   width: 100%;
+  margin: 60px 0 !important;
   font-family: verdana, arial, sans-serif;
   font-size: 11px;
   color: #333333;
   border-width: 1px;
   border-color: #666666;
   border-collapse: collapse;
-  page-break-after: always;
+  /* page-break-after: always; */
 }
 
 table.gridtable th {