From 8932133e2ee2e5708e3506bee3d01d59bff5f1d2 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期日, 12 一月 2025 11:30:52 +0800
Subject: [PATCH] bug

---
 company/src/components/enterprise/confirmJobType.vue |   27 ++++++++++++++++++++++++---
 1 files changed, 24 insertions(+), 3 deletions(-)

diff --git a/company/src/components/enterprise/confirmJobType.vue b/company/src/components/enterprise/confirmJobType.vue
index 07917d1..5425aec 100644
--- a/company/src/components/enterprise/confirmJobType.vue
+++ b/company/src/components/enterprise/confirmJobType.vue
@@ -7,7 +7,7 @@
         @confirm="confirm"
     >
         <el-form class="demo-form-inline">
-            <el-form-item label="娲鹃仯鍗曚綅" required>
+            <el-form-item label="娲鹃仯鍗曚綅" required v-if="type !== 2">
                 <el-select v-model="dw" @change="selectChange" placeholder="璇烽�夋嫨">
                     <el-option
                         v-for="item in dispatching"
@@ -45,6 +45,7 @@
                 form: {
                     solutionId: ''
                 },
+                type: null,
                 data: [],
                 dw: [],
                 gz: [],
@@ -59,13 +60,22 @@
                 this.gz = ''
                 this.form.solutionId = arr.solutionId
                 this.data = arr.seleData
+                this.type = arr.type
                 this.visible = true
-                this.getFindListByDTO()
+                this.options=[]
+                if (arr.type === 2) {
+                  worktype({ id: arr.solutionId, queryType: 0 })
+                    .then(res => {
+                      this.options = res
+                    })
+                } else {
+                  this.getFindListByDTO()
+                }
             },
             getFindListByDTO () {
                 findListByDTO({
                     solutionId: this.form.solutionId,
-                    dataType: 2
+                    // dataType: 0
                 }).then(res => {
                     this.dispatching = res
                 })
@@ -84,6 +94,17 @@
                     })
             },
             confirm() {
+              if (this.type === 2) {
+                if(!this.gz){
+                  this.$message.error("璇峰厛閫夋嫨宸ョ锛�")
+                  return;
+                }
+              } else {
+                if(!this.dw || !this.gz){
+                  this.$message.error("璇峰厛閫夋嫨娲鹃仯鍗曚綅鍜屽伐绉嶏紒")
+                  return;
+                }
+              }
                 let obj = {
                     workTypeName: '',
                     worktypeId: '',

--
Gitblit v1.9.3