From 90c8680cbc67d4b2680b1e5af4ad1129a96efa0c Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 06 五月 2025 14:39:09 +0800
Subject: [PATCH] 1.设备工具明细和树-过期标红

---
 src/views/business/productOrder/components/addOrder.vue |   40 +++++++++++++++++++++-------------------
 1 files changed, 21 insertions(+), 19 deletions(-)

diff --git a/src/views/business/productOrder/components/addOrder.vue b/src/views/business/productOrder/components/addOrder.vue
index 5b9c516..7ec4513 100644
--- a/src/views/business/productOrder/components/addOrder.vue
+++ b/src/views/business/productOrder/components/addOrder.vue
@@ -14,9 +14,13 @@
           <el-select v-show="active==1" v-model="template" placeholder="涓嬪崟妯℃澘" size="small"
                      @change="selectInsOrderTemplateById">
             <el-option v-for="(a, ai) in templates" :key="ai" :label="a.name" :value="a.id">
-              <span style="float: left">{{ a.name }}</span>
-              <i class="el-icon-delete" style="float: right; color: #66b1ff; font-size: 16px"
-                 @click.stop="handleDelete(a)"></i>
+              <div style="display: flex; align-items: center; justify-content: space-between;">
+                <span>{{ a.name }}</span>
+                <i class="el-icon-delete"
+                   style="color: #66b1ff; font-size: 16px; cursor: pointer;"
+                   @click.stop="handleDelete(a)">
+                </i>
+              </div>
             </el-option>
           </el-select>
           <el-button v-show="active==1" size="small" @click="templateDia=true">
@@ -607,7 +611,7 @@
     AuxiliaryWireCore
   },
   computed:{
-  ...mapGetters(["nickName"]),
+    ...mapGetters(["nickName", 'nameEn', 'userName']),
   },
   dicts: ['check_type1', 'urgency_level', 'form_type', 'sample_status_list'],
   data() {
@@ -793,10 +797,10 @@
     }
   },
   watch: {
-    sampleList() {
-      this.addObj.method = null
-      this.productList = []
-    },
+    // sampleList() {
+    //   this.addObj.method = null
+    //   this.productList = []
+    // },
     productList: {
       deep: true,
       handler(val) {
@@ -842,6 +846,11 @@
     this.currentId = this.$route.query.currentId
     this.getUserNowData()
     this.getInfo()
+    if(this.tabIndex==4&&this.active==2){
+      this.isSpecial = true
+    }else{
+      this.isSpecial = false
+    }
   },
   activated() {
     this.active = this.$route.query.active
@@ -854,7 +863,6 @@
       this.selectStandardTreeList()
       this.getAuthorizedPerson();
       this.selectStandardMethods()
-      this.getPrepareUser() // 澶嶅埗褰撳墠璐﹀彿浜轰负濮旀墭浜�
       if (this.active != 1) {
         // 鏌ョ湅/瀹℃牳娴佺▼
         // 璇锋眰鎺ュ彛锛屽洖鏄炬暟鎹�
@@ -878,16 +886,7 @@
           })
         })
       }
-      if(this.tabIndex==4&&this.active==2){
-        this.isSpecial = true
-      }else{
-        this.isSpecial = false
-      }
-    },
-    getPrepareUser () {
-        // this.addObj.prepareUser = JSON.parse(localStorage.getItem("user")).name;
-        // this.addObj.prepareUserEn = JSON.parse(localStorage.getItem("user")).nameEn
-        // this.addObj.prepareCode = JSON.parse(localStorage.getItem("user")).account
+
     },
       // 缂栬緫瑕佹眰鍊艰〃鏍�
       editSpecial () {
@@ -1348,6 +1347,9 @@
         })
       },
       getUserNowData() {
+      this.addObj.prepareUser = this.nickName
+      this.addObj.prepareUserEn = this.nameEn
+      this.addObj.prepareCode = this.userName
         getUserNow().then(res => {
           let selects = res.data
           if (selects == null) return

--
Gitblit v1.9.3