From 43e115a7de2c763c36d79e610a3abb1d833ea892 Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期一, 05 八月 2024 10:21:52 +0800
Subject: [PATCH] 修改发货报表

---
 north-glass-erp/northglass-erp/src/views/pp/processCard/PrintCustomLabelSemi2.vue |   66 +++++++++++++++++++++-----------
 1 files changed, 43 insertions(+), 23 deletions(-)

diff --git a/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintCustomLabelSemi2.vue b/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintCustomLabelSemi2.vue
index ff0b4ad..af129c0 100644
--- a/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintCustomLabelSemi2.vue
+++ b/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintCustomLabelSemi2.vue
@@ -47,7 +47,6 @@
 
         }
       }
-      console.log(labelList.value)
     } else {
       ElMessage.warning(res.msg)
       router.push("/login")
@@ -76,7 +75,11 @@
   style.innerHTML =
       "body>#" +
       printId +
-      "{display:none}@media print{body>:not(#" +
+      "{display:none}@media print{" +
+      "@page {" +
+      "    size: auto; " +
+      "    margin: 2mm 2mm 2mm 2mm;  " +
+      "  }body>:not(#" +
       printId +
       "){display:none !important}body>#" +
       printId +
@@ -100,26 +103,30 @@
 <template>
   <el-button id="printButton" @click="printFlowCard();">{{ $t('basicData.print') }}</el-button>
   <div id="printFlowCard" >
-    <div id="entirety" v-for="(item,id) in labelList" >
+    <template v-for="(item,id) in labelList">
+    <div id="entirety" >
       <div class="row1">
         <span>{{ item.customer_name }}</span>&nbsp;
         <span>{{ item.order_id }}</span>&nbsp;
-        <span v-if="item.type_name.includes('涓┖')">涓┖</span>
-        <span v-else-if="item.type_name.includes('澶瑰眰')">澶瑰眰</span>
-        <span v-else-if="item.type_name.includes('澶硅兌')">澶硅兌</span>
+        <span v-if="item.process.includes('澶硅兌')">鑳剁墖</span>
+        <span v-else-if="item.process.includes('涓┖')">涓┖</span>
+        <span v-else-if="item.process.includes('鐧惧彾')">鐧惧彾</span>
         <span v-else></span>
       </div>
       <div class="row2">
         <span>{{item.project}}</span>&nbsp;
         <span>{{ item.building_number }}</span>
+        <span v-if="item.bend_radius!=null">R={{item.bend_radius}}</span>
       </div>
-      <div class="row3" v-if="JSON.parse(item.other_columns).S02==null">{{item.width}}*{{item.height}}={{item.quantity}}</div>
-      <div class="row3" v-else>{{JSON.parse(item.other_columns).S02}}={{item.quantity}}</div>
+      <div class="row3" v-if="item.other_columns!=null&&(JSON.parse(item.other_columns).S02!=null)"> <span>{{JSON.parse(item.other_columns).S02}}={{item.quantity}}</span>&nbsp;</div>
+      <div class="row3" v-else><span>{{Math.round(item.width)}}x{{Math.round(item.height)}}={{item.quantity}}</span></div>
       <div class="row5">
         <span>{{item.glass_child}}</span>&nbsp;
         <span>{{item.processing_note}}</span>
       </div>
     </div>
+      <div style="width: 20px" v-if="id%2===0"></div>
+    </template>
   </div>
 
 </template>
@@ -139,25 +146,32 @@
   display: flex;
   justify-content: left;
   flex-wrap: wrap;
-  margin-left: 5px;
+  width: 500px;
 }
 
 #entirety{
   text-align: center;
-  width: 50%;
-  height: 105px;
+  width: 48%;
+  height: 160px;
+  border: black 1px;
+  word-wrap: break-word;
 }
 
 .row1 {
   font-size: 12pt;
   font-weight: bold;
-  height: 25px;
+  height: 35px;
 }
-
+.row1 span {
+  font-size: 14pt;
+}
 .row2 {
   font-size: 12pt;
   font-weight: bold;
-  height: 25px;
+  height: 35px;
+}
+.row2 span {
+  font-size: 14pt;
 }
 span {
   font-size: 12pt;
@@ -166,18 +180,22 @@
 
 .row3 {
   margin-top: -5px;
-  height: 30px;
-  font-size: 20pt;
+  height: 35px;
+  font-size: 22pt;
   font-weight: bolder;
+  line-height: 35px;
+}
+.row3 span{
+  font-size: 22pt;
 }
 
 .row5 {
-  height: 25px;
+  height: 50px;
   font-weight: bold;
-  font-size: 12pt;
+  font-size: 14pt;
 }
 .row5 span {
-  font-size: 10pt;
+  font-size: 14pt;
 }
 
 .row6 {
@@ -188,16 +206,18 @@
 
 
 
-@page {
-  size: auto;  /* auto is the initial value */
-  margin: 2mm 2mm 2mm 2mm  /* this affects the margin in the printer settings */
 
-}
 
 @media print {
   div {
     page-break-inside: avoid;
   }
+  @page {
+    size: auto;  /* auto is the initial value */
+    margin: 13mm 4mm 0mm 4mm;  /* this affects the margin in the printer settings */
+
+  }
+
 }
 
 </style>
\ No newline at end of file

--
Gitblit v1.8.0