From 70b7935fc261cd5e8eaaf1cfbc8078b04db576d2 Mon Sep 17 00:00:00 2001
From: liu <2021943741@qq.com>
Date: 星期六, 07 十一月 2026 14:51:06 +0800
Subject: [PATCH] fix(mes): 自动回填销售订单生产信息
---
src/views/bpm/components/simple-process-design/components/nodes-config/user-task-node-config.vue | 27 +++++++++++++++++++++++----
1 files changed, 23 insertions(+), 4 deletions(-)
diff --git a/src/views/bpm/components/simple-process-design/components/nodes-config/user-task-node-config.vue b/src/views/bpm/components/simple-process-design/components/nodes-config/user-task-node-config.vue
index 265318b..bc928e6 100644
--- a/src/views/bpm/components/simple-process-design/components/nodes-config/user-task-node-config.vue
+++ b/src/views/bpm/components/simple-process-design/components/nodes-config/user-task-node-config.vue
@@ -8,14 +8,14 @@
import { computed, nextTick, onMounted, reactive, ref, watchEffect } from 'vue';
-import { useVbenDrawer, useVbenModal } from '../../../../../../packages/effects/common-ui/src';
+import { useVbenDrawer, useVbenModal } from '@vben/common-ui';
import {
BpmModelFormType,
BpmNodeTypeEnum,
ProcessVariableEnum,
-} from '../../../../../../packages/constants/src';
-import { IconifyIcon } from '../../../../../../packages/icons/src';
-import { cloneDeep } from '../../../../../../packages/utils/src';
+} from '@vben/constants';
+import { IconifyIcon } from '@vben/icons';
+import { cloneDeep } from '@vben/utils';
import {
Button,
@@ -219,6 +219,21 @@
getShowText,
} = useNodeForm(currentNode.value.type);
const configForm = tempConfigForm as Ref<UserTaskFormType>;
+
+/**
+ * 鐢ㄦ埛涓嬫媺鐨勬悳绱㈣繃婊ゃ��
+ *
+ * 榛樿鐨� Select 鎼滅储鍙湪 options 宸叉覆鏌撴椂鎸� label 杩囨护锛岃繖閲屾樉寮忓疄鐜帮紝
+ * 淇濊瘉杈撳叆鏄电О锛堝惈涓枃锛夎兘姝g‘鍖归厤锛屼笖涓嶅彈澶у皬鍐欏奖鍝嶃��
+ */
+function filterUserOption(input: string, option: any) {
+ const keyword = (input || '').trim().toLowerCase();
+ if (!keyword) {
+ return true;
+ }
+ const label = String(option?.label ?? option?.nickname ?? '');
+ return label.toLowerCase().includes(keyword);
+}
// 鏀瑰彉瀹℃壒浜鸿缃瓥鐣�
function changeCandidateStrategy() {
@@ -767,6 +782,10 @@
v-model:value="configForm.userIds"
clearable
mode="multiple"
+ show-search
+ option-filter-prop="label"
+ :filter-option="filterUserOption"
+ placeholder="璇疯緭鍏ョ敤鎴峰悕绉版悳绱�"
>
<SelectOption
v-for="item in userOptions"
--
Gitblit v1.9.3