From 99d0bb96043ba5d6db66bbfb00f67ca4e09f3ffb Mon Sep 17 00:00:00 2001
From: guoyuji <guoyujie@ng.com>
Date: 星期五, 07 三月 2025 09:08:33 +0800
Subject: [PATCH] 小片尺寸和成品尺寸不相同时,打印显示小片信息

---
 north-glass-erp/northglass-erp/src/views/pp/processCard/PrintLabel1.vue |   18 ++++++++++++------
 1 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintLabel1.vue b/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintLabel1.vue
index a4ba061..e50a215 100644
--- a/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintLabel1.vue
+++ b/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintLabel1.vue
@@ -35,8 +35,14 @@
 const printType=route.query.printType
 
 onMounted(() => {
+  if (localStorage.getItem('hasRefreshed')=="false") {
+    localStorage.setItem('hasRefreshed', 'true');
+    location.reload();
+  }else{
+    localStorage.setItem('hasRefreshed', 'false');
+  }
   if (printType == 1) {
-    request.post(`/processCard/getSelectPrintCustomLabel/${type}/1`, data.value).then((res) => {
+    request.post(`/processCard/getSelectPrintCustomLabel2/${type}/1`, data.value).then((res) => {
       if (res.code == 200) {
         produceList.value = deepClone(res.data.title)
         list.value = deepClone(res.data.data)
@@ -183,7 +189,7 @@
   height: 20px;
 }
 .row1 span {
-  font-size: 10pt;
+  font-size: 12pt;
 }
 
 .row2 {
@@ -192,7 +198,7 @@
   height: 20px;
 }
 .row2 span {
-  font-size: 10pt;
+  font-size: 12pt;
 }
 span {
   font-size: 10pt;
@@ -202,7 +208,7 @@
 .row3 {
   margin-top: -5px;
   height: 28px;
-  font-size: 15pt;
+  font-size: 17pt;
   font-weight: bolder;
 }
 
@@ -213,7 +219,7 @@
 }
 
 .row5 span {
-  font-size: 8pt;
+  font-size: 10pt;
 }
 
 
@@ -229,7 +235,7 @@
   }
   @page {
     size: auto;  /* auto is the initial value */
-    margin: 13mm 4mm 0mm 4mm;  /* this affects the margin in the printer settings */
+    margin: 13mm 4mm 0mm 4mm !important;  /* this affects the margin in the printer settings */
 
   }
 }

--
Gitblit v1.8.0