Jelajahi Sumber

【修改】bug

howie 3 tahun lalu
induk
melakukan
17b823ae1d

+ 2 - 2
src/components/Common/print-common.vue

@@ -56,8 +56,8 @@
         </div>
         <div class="foot">
           <el-row :gutter="20">
-            <el-col :span="22"></el-col>
-            <el-col :span="2">{{ item.total_num }}</el-col>
+            <el-col :span="18"></el-col>
+            <el-col :span="6">{{ item.total_num }}</el-col>
           </el-row>
         </div>
       </div>

+ 8 - 6
src/views/supply/deliver/components/sum_print.vue

@@ -114,11 +114,12 @@ export default {
             }
 
       })
-      console.log(document.execCommand,'4545');
-      // addPrint({ ids: ids.join(',') }).then(res => {
-      //   // this.$successMsg('提交成功');
-      //    this.$parent.getList()
-      // })
+
+      // console.log(document.execCommand('print'),'4545');
+      addPrint({ ids: ids.join(',') }).then(res => {
+        // this.$successMsg('提交成功');
+         this.$parent.getList()
+      })
     }
   }
 }
@@ -138,7 +139,8 @@ export default {
     width: 100%;
     height: auto !important;
     margin-bottom: 50px;
-    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
+    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
+    // font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
     color: #000 !important;
   }
   .top-container {