From 447af08b0fc2fe0050d361746b2449e3d376ee5b Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期三, 08 三月 2023 16:08:47 +0800
Subject: [PATCH] 1.流转标签新增60*40尺寸

---
 src/views/scgl/gd.vue |   71 +++++++++++++++++++++++++++++++++--
 1 files changed, 67 insertions(+), 4 deletions(-)

diff --git a/src/views/scgl/gd.vue b/src/views/scgl/gd.vue
index 27c61e5..4bdd9c0 100644
--- a/src/views/scgl/gd.vue
+++ b/src/views/scgl/gd.vue
@@ -1430,6 +1430,68 @@
 
           </div>
           <div
+            v-if="printSize===2"
+            class="printSize2"
+            style="display: flex;width: 220px;height: 130px;border: 1px solid #000;text-align: center;font-size: 12px"
+          >
+
+            <div style="width: 70px;display: flex;flex-direction: column;border-right: 1px solid #000">
+              <div
+                style="display: flex;height: 60%;border-bottom:1px solid #000;
+              justify-content: center;align-items: center;position: relative"
+              >
+                <div
+                  id="qrCode2"
+                  ref="qrCodeDiv2"
+                  style="overflow-y: hidden;height:71%;position: absolute;left: 7px;"
+                />
+              </div>
+              <div
+                style="display: flex;height:  20%;justify-content: flex-start;border-bottom:1px solid #000;align-items: center"
+              >
+                <div style="margin-left: 3px; ">鏁伴噺:{{ qrForm.startqty }}</div>
+              </div>
+              <div style="display: flex;height:  20%;justify-content: flex-start;align-items: center;">
+                <div style="margin-left: 3px; ">鎿嶄綔:{{ qrForm.operator }}</div>
+
+              </div>
+            </div>
+
+            <div style="width:150px;display: flex;flex-direction: column">
+              <div
+                style="display: flex;height: 20%;border-bottom:1px solid #000;justify-content: flex-start;align-items: center;text-align: left"
+              >
+                <div style="margin-left: 3px;">缂栧彿:{{ qrForm.wo_code }}</div>
+
+              </div>
+              <div
+                style="display: flex;height: 20%;border-bottom:1px solid #000;justify-content: flex-start;align-items: center ;text-align: left"
+              >
+                <div style="margin-left: 3px;">浜у搧缂栫爜:{{ qrForm.partcode }}</div>
+
+              </div>
+              <div
+                style="display: flex;height: 20%;border-bottom:1px solid #000 ;justify-content: flex-start;align-items: center;text-align: left"
+              >
+                <div style="margin-left: 3px;">浜у搧鍚嶇О:{{ qrForm.partname }}</div>
+
+              </div>
+              <div
+                style="display: flex;height: 20%;border-bottom:1px solid #000 ;justify-content: flex-start;align-items: center;text-align: left"
+              >
+                <div style="margin-left: 3px;">涓嬮亾宸ュ簭:{{ qrForm.nextstepname }}</div>
+
+              </div>
+              <div style="display: flex;height: 20%;justify-content: flex-start;align-items: center;text-align: left">
+                <div style=" margin-left: 3px;">鏃堕棿: {{ qrForm.operatorTime }}</div>
+                <!--                <div>{{ qrForm.operatorTime?qrForm.operatorTime.substring(5):'' }}</div>-->
+                <!--                <div>{{ qrForm.operatorTime }}</div>-->
+              </div>
+
+            </div>
+
+          </div>
+          <div
             v-if="printSize===5"
             style="display: flex;width: 140px;height: 80px;border: 1px solid #000;text-align: center;font-size: 10px;"
           >
@@ -1882,10 +1944,11 @@
       defaultroute_codeArr: '', // 榛樿宸ヨ壓璺嚎鏁扮粍
       projectTableData: [], // 璁惧鍒楄〃
       tableDataDetail: [], // 鐐瑰嚮宸ュ崟琛ㄧ殑琛� 鏄剧ず璇︾粏淇℃伅
-      printSize: 1,
+      printSize: 2,
       printSizeSelectArr: [// 瀹�*楂�
         { code: 0, name: '80*50' },
-        { code: 1, name: '78*60' }
+        { code: 1, name: '78*60' },
+        { code: 2, name: '60*40' }
         // { code: 2, name: '50*60' },
         // { code: 3, name: '50*40' },
         // { code: 4, name: '50*80' },
@@ -2481,8 +2544,8 @@
     bindQRCode2(text) {
       new QRCode(this.$refs.qrCodeDiv2, {
         text: text,
-        width: 60,
-        height: 60,
+        width: this.printSize !== 2 ? 60 : 55,
+        height: this.printSize !== 2 ? 60 : 55,
         colorDark: '#000', // 浜岀淮鐮侀鑹�
         colorLight: '#ffffff', // 浜岀淮鐮佽儗鏅壊
         correctLevel: QRCode.CorrectLevel.L// 瀹归敊鐜囷紝L/M/H

--
Gitblit v1.9.3