From 8774ea3dad16fb261717bfaa6dd01507a85fc275 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Tue, 17 Mar 2026 13:24:02 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(mes):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=A7=92=E8=89=B2=E9=80=89=E6=8B=A9=E5=99=A8=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=EF=BC=8C=E4=BC=98=E5=8C=96=E5=AE=89=E7=81=AF=E5=91=BC=E5=8F=AB?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mes/pro/andon/config/AndonConfigForm.vue | 20 ++++- .../system/role/components/RoleSelect.vue | 86 +++++++++++++++++++ 2 files changed, 104 insertions(+), 2 deletions(-) create mode 100644 src/views/system/role/components/RoleSelect.vue diff --git a/src/views/mes/pro/andon/config/AndonConfigForm.vue b/src/views/mes/pro/andon/config/AndonConfigForm.vue index 3fd73c291..2ea12486e 100644 --- a/src/views/mes/pro/andon/config/AndonConfigForm.vue +++ b/src/views/mes/pro/andon/config/AndonConfigForm.vue @@ -1,6 +1,6 @@ - + + + + @@ -94,6 +105,7 @@ import { ProAndonConfigApi, ProAndonConfigVO } from '@/api/mes/pro/andon/config' import { DICT_TYPE, getIntDictOptions } from '@/utils/dict' import { MesProAndonLevelEnum } from '@/views/mes/utils/constants' import UserSelect from '@/views/system/user/components/UserSelect.vue' +import RoleSelect from '@/views/system/role/components/RoleSelect.vue' /** 安灯呼叫配置弹窗(内联编辑表格) */ defineOptions({ name: 'AndonConfigDialog' }) @@ -153,6 +165,10 @@ const handleSave = async (row: any) => { message.warning('级别不能为空') return } + if (!row.handlerUserId && !row.handlerRoleId) { + message.warning('处置角色和处置人至少填一个') + return + } try { if (row.isNew) { await ProAndonConfigApi.createAndonConfig(row) diff --git a/src/views/system/role/components/RoleSelect.vue b/src/views/system/role/components/RoleSelect.vue new file mode 100644 index 000000000..f2d993445 --- /dev/null +++ b/src/views/system/role/components/RoleSelect.vue @@ -0,0 +1,86 @@ + + + +