From 0bdbe50ac8a4dcc1ee760e35416b825a984dd85d Mon Sep 17 00:00:00 2001
From: gaoluyang <gaoluyang@rengu.cc>
Date: 星期三, 25 九月 2024 16:59:43 +0800
Subject: [PATCH] 1.检验任务的扫码报检需要和样品管理联动,扫码报检之后样品也会入库(扫码报检也是需要弹框去选具体哪个货架),另外再加一个扫码出库的步骤,就是将该样品出库

---
 src/components/view/person-manage.vue |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/components/view/person-manage.vue b/src/components/view/person-manage.vue
index 8d26d89..d38b0ae 100644
--- a/src/components/view/person-manage.vue
+++ b/src/components/view/person-manage.vue
@@ -519,12 +519,14 @@
           })
         }).catch(e => {})
       },
-      selectTreeList() {
+      selectTreeList(e) {
         this.treeLoad = true
         this.$axios.get(this.$api.department.selectDepartment).then(res => {
           this.list = res.data
           this.treeLoad = false
-          this.componentData.entity.roleId = this.list[0].id;
+          if(!e){
+            this.componentData.entity.roleId = this.list[0].id;
+          }
           this.refreshTable()
         })
       },
@@ -545,7 +547,7 @@
           }
           this.$message.success('娣诲姞鎴愬姛')
           this.addDia = false
-          this.selectTreeList()
+          this.selectTreeList(true)
           this.addLoad = false
           this.addOb.name = ''
         }).catch(e => {
@@ -613,7 +615,7 @@
           this.$refs.personTable.clearSelection()
           this.addLoad = false
           this.userSearch2 = ''
-          this.selectTreeList()
+          this.selectTreeList(true)
         }).catch(e => {
           this.addLoad = false
         })

--
Gitblit v1.9.3