From 761aa895b2955a13a8d3d56405336404bca18451 Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期二, 23 七月 2024 11:58:22 +0800
Subject: [PATCH] Merge branch 'master' of http://bore.pub:10439/r/ERP_override

---
 north-glass-erp/northglass-erp/src/views/pp/processCard/PrintCustomLabel.vue |   26 +++++++++++++++++++++++++-
 1 files changed, 25 insertions(+), 1 deletions(-)

diff --git a/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintCustomLabel.vue b/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintCustomLabel.vue
index 7d1f64d..ee26e9c 100644
--- a/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintCustomLabel.vue
+++ b/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintCustomLabel.vue
@@ -51,6 +51,7 @@
               }
             }
           }
+
         } else {
           ElMessage.warning(res.msg)
           router.push("/login")
@@ -99,6 +100,23 @@
     body.removeChild(style);
   }, 20);
 }
+
+//淇敼鐩稿悓浜у搧鍚嶇О鏍囩
+const updataProductName = () => {
+  // 閬嶅巻闆嗗悎涓殑姣忎釜瀵硅薄
+  // lastList.value.forEach(obj => {
+  //   // 鎻愬彇 processId 鐨勫墠11浣�
+  //   let prefix = obj.processId.substring(0, 11);
+  //   let enName= obj.productAbbreviation
+  //   if (prefix === obj.processId.substring(0, 11)){
+  //     obj.productAbbreviation = enName
+  //   }
+  // })
+  for (let i = 0; i < lastList.value.length; i++) {
+    let prefix = lastList.value[i].processId.substring(0, 11);
+    let enName= lastList.value[i].productAbbreviation
+  }
+}
 </script>
 
 <template>
@@ -109,7 +127,7 @@
       <div v-for="(item,id) in labelList" :class="company.printLabel.className.custom.contentRowName()">
         <div v-if="item.title==null" class="row1">{{ item.title }}</div>
         <div v-else class="row1">{{ item.title }}:</div>
-        <div class="row2">{{ item1[item.name] }}</div>
+        <div class="row2" style="width: 100%;"><input v-model="item1[item.name]"  @keyup="updataProductName()" style="background-color: #D5EAFF;border: none;"/></div>
       </div>
       <div v-html="company.printLabel.custom(item1)"></div>
     </div>
@@ -196,6 +214,12 @@
   text-align: left;
 }
 
+input{
+  width: 100%;
+  background-color: #D5EAFF;
+  border: none;
+}
+
 
 @page {
   size: auto;  /* auto is the initial value */

--
Gitblit v1.8.0