From 498df4ec49c9469d535c494039586ff30c3b23a6 Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期六, 30 八月 2025 21:17:13 +0800
Subject: [PATCH] 机床搜索回车生效

---
 src/views/flow/todolist.vue |   39 ++++++++++++++++++---------------------
 1 files changed, 18 insertions(+), 21 deletions(-)

diff --git a/src/views/flow/todolist.vue b/src/views/flow/todolist.vue
index 086e72e..0b8a2c7 100644
--- a/src/views/flow/todolist.vue
+++ b/src/views/flow/todolist.vue
@@ -6,12 +6,12 @@
             @selection-change="selectionTransferTask">
             <template #menu-left>
                 
-                <el-button type="primary" v-if="permission.auto_dispatch" plain @click="reassign(2)">鑷姩娲惧伐
+                <el-button type="primary" :disabled="this.transferTaskSelection.length==0" v-if="permission.auto_dispatch" plain @click="reassign(2)">鑷姩娲惧伐
                 </el-button>
-                <el-button type="primary" v-if="permission.manual_dispatch" plain @click="reassign(1)">鎵嬪姩娲惧伐
+                <el-button type="primary" :disabled="this.transferTaskSelection.length==0" v-if="permission.manual_dispatch" plain @click="reassign(1)">鎵嬪姩娲惧伐
                 </el-button>
-                <el-button type="primary" plain @click="reassign(0)">閲嶆柊鎸囨淳</el-button>
-                <el-button type="primary" v-if="permission.batch_approve" plain @click="reassign(3)">鎵归噺瀹℃壒
+                <el-button type="primary" :disabled="this.transferTaskSelection.length==0" plain @click="reassign(0)">閲嶆柊鎸囨淳</el-button>
+                <el-button type="primary" :disabled="this.transferTaskSelection.length==0" v-if="permission.batch_approve" plain @click="reassign(3)">鎵归噺瀹℃壒
                 </el-button>
             </template>
             <template #menu="scope">
@@ -47,8 +47,10 @@
             </div>
         </el-drawer>
     </basic-container>
+    <div>
+        <!--<top-todo ref="topTodoComponent" />-->
+    </div>
 </template>
-
 <script>
 import { getList, approve, getAssignee,reassgin,manualDispatch,autoDispatch,getPrevius,batchApprove } from '@/api/flow/todolist';
 import { mapGetters } from 'vuex';
@@ -56,6 +58,8 @@
 import TodolistLeft from './components/TodolistLeft.vue';
 import TodolistRightTop from './components/TodolistRightTop.vue';
 import processTrace from './components/process-trace.vue';
+
+//import top-todo from '../../page/index/LoadGood.vue';
 export default {
     components: {
         TodolistLeft,
@@ -321,24 +325,9 @@
         };
     },
     watch: {
-        // 'form.category'() {
-        //     const category = func.toInt(this.form.category);
-        //     this.$refs.crud.option.column.filter(item => {
-        //         if (item.prop === 'path') {
-        //             item.rules[0].required = category === 1;
-        //         }
-        //         if (item.prop === 'isOpen') {
-        //             item.disabled = category === 2;
-        //         }
-        //     });
-        // },
+        
         'formApprove.approve'(val) {
             this.setAssignee(this.row, val);
-            // if(val === 'Y' && ['confirmIsUseableTask'].includes(this.row.taskDefinitionKey) && this.row.variables.isProcessEditionSame=='N') {
-            //     // this.optionApprove.column[2].display = true; // 鏄剧ず宸ュ簭鐗堟
-            // } else {
-            //     this.optionApprove.column[2].display = false; // 闅愯棌宸ュ簭鐗堟
-            // }
             
         },
         'reassignForm.approve'(val) {
@@ -368,6 +357,13 @@
     },
     mounted() {
         //this.setApproveBtn(row)
+        getAssignee({
+                taskId: 0,
+             }).then(res => {
+                //if(row.taskDefinitionKey === '')
+                this.assigneeData = res.data.data;
+                this.reassignOption.column[1].dicData = this.assigneeData;
+             });
     },
     methods: {
         // 璁剧疆瀹℃壒缁撴灉鐨勭姸鎬�
@@ -506,6 +502,7 @@
             this.transferTaskSelection = list;
         },
         reassign(val) {// 閲嶆柊鎸囨淳
+            
             this.reassignType = val;
             if (this.transferTaskSelection.length === 0) {
                 this.$message.warning('璇烽�夋嫨闇�瑕佹搷浣滅殑浠诲姟');

--
Gitblit v1.9.3