From 41bd0b7ebac6c6dc09a2c0c4743635f78c8676af Mon Sep 17 00:00:00 2001
From: Crunchy <3114200645@qq.com>
Date: 星期三, 31 七月 2024 11:20:55 +0800
Subject: [PATCH] 下单提交之后选择复核人,要排除当前登录人(自己)

---
 src/components/do/b1-inspect-order-plan/Inspection.vue |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/components/do/b1-inspect-order-plan/Inspection.vue b/src/components/do/b1-inspect-order-plan/Inspection.vue
index db673ff..f356f86 100644
--- a/src/components/do/b1-inspect-order-plan/Inspection.vue
+++ b/src/components/do/b1-inspect-order-plan/Inspection.vue
@@ -2720,8 +2720,7 @@
                 orderId: this.orderId,
                 laboratory: this.sonLaboratory,
                 verifyUser: this.verifyUser,
-                entrustCode: this.insOrder.entrustCode,
-                sampleCode: this.currentSample.sampleCode
+                entrustCode: this.insOrder.entrustCode
               }).then(res => {
                 if (res.code === 200) {
                   this.$message.success("鎿嶄綔鎴愬姛")
@@ -2825,11 +2824,14 @@
       getAuthorizedPerson() {
         this.$axios.get(this.$api.user.getUserMenu).then(res => {
           let data = []
+          let userName = JSON.parse(localStorage.getItem("user")).name;
           res.data.forEach(a => {
-            data.push({
+            if(a.name !== userName) {
+              data.push({
               label: a.name,
               value: a.id
             })
+            }
           })
           this.personList = data
         })

--
Gitblit v1.9.3