From 0c6aa6e556a8771897b9251a296a7a0c15c57c46 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期二, 19 十一月 2024 18:28:17 +0800
Subject: [PATCH] 优化

---
 company/src/components/enterprise/addEmployeeWithDu.vue |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/company/src/components/enterprise/addEmployeeWithDu.vue b/company/src/components/enterprise/addEmployeeWithDu.vue
index 1988fb2..80b00ca 100644
--- a/company/src/components/enterprise/addEmployeeWithDu.vue
+++ b/company/src/components/enterprise/addEmployeeWithDu.vue
@@ -14,7 +14,7 @@
                 <el-form-item label="韬唤璇佸彿" required>
                     <el-input v-model="item.idCard" maxlength="18" placeholder="璇疯緭鍏�"></el-input>
                 </el-form-item>
-              <el-form-item label="娲鹃仯鍗曚綅" v-if="!companyId">
+              <el-form-item label="娲鹃仯鍗曚綅" v-if="hasDispatchUnit !== 1">
                 <el-select v-model="item.duId" @change="selectChange(index)" placeholder="璇烽�夋嫨" clearable>
                   <el-option
                       v-for="item in dispatching"
@@ -58,6 +58,7 @@
       dispatching: [],
       solutionId: null,
       companyId: null,
+      hasDispatchUnit: null,
       list: [
         {
           memberName: '',
@@ -81,6 +82,7 @@
       this.tempIndex = tempIndex
       this.solutionId = obj.solutionId
       this.companyId = obj.companyId
+      this.hasDispatchUnit = obj.hasDispatchUnit
       this.dispatching = []
       this.list = [
         {
@@ -96,7 +98,7 @@
       ]
       this.arr = obj.arr
       this.price = obj.price
-      if (!obj.companyId) {
+      if (obj.hasDispatchUnit === 1) {
         this.getFindListByDTO()
       } else {
         worktype({ id: obj.solutionId, queryType: 0 })

--
Gitblit v1.9.3