From 50fb58286ed3b718c39a97e0987ee7561a295651 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期五, 04 七月 2025 17:56:41 +0800
Subject: [PATCH] git ch

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

diff --git a/company/src/components/enterprise/addEmployeeWithDu.vue b/company/src/components/enterprise/addEmployeeWithDu.vue
index 1988fb2..0e85fc6 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 === 0) {
         this.getFindListByDTO()
       } else {
         worktype({ id: obj.solutionId, queryType: 0 })
@@ -117,6 +119,7 @@
       this.list[index].options = []
       let duSolutionId = ''
       this.list[index].duName = null
+      this.list[index].worktypeId = ''
       this.dispatching.forEach(item => {
         if (item.id === this.list[index].duId) {
           duSolutionId = item.duSolutionId

--
Gitblit v1.9.3