From 249002230310c529a471028995bce18432a34f98 Mon Sep 17 00:00:00 2001 From: "han\\hanst" Date: Mon, 9 Mar 2026 17:02:31 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E8=AE=A1=E5=88=92=E5=91=98?= =?UTF-8?q?=EF=BC=8C=E4=B8=8D=E5=85=81=E8=AE=B8=E8=A2=AB=E7=A7=BB=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/erf/expApplyList.vue | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/views/modules/erf/expApplyList.vue b/src/views/modules/erf/expApplyList.vue index 35683a7..742c9b3 100644 --- a/src/views/modules/erf/expApplyList.vue +++ b/src/views/modules/erf/expApplyList.vue @@ -613,7 +613,8 @@ placeholder="请选择计划员(可多选)" style="width: 100%" multiple - clearable> + clearable + @remove-tag="handlePlannerRemoveTag"> p.userDisplay && p.userDisplay.includes('郑宇')) + this.lockedPlannerUserId = joyce ? joyce.userId : null // 根据事业部设置默认生产经理(使用user_display模糊匹配) const defaultProdManagerIds = [] if (row.buDesc === 'RFID') { @@ -1072,6 +1077,20 @@ export default { }) }, + /** + * 计划员移除标签拦截:默认计划员,不允许被移除 + */ + handlePlannerRemoveTag(removedId) { + if (this.lockedPlannerUserId && removedId === this.lockedPlannerUserId) { + this.$nextTick(() => { + if (!this.submitData.plannerIds.includes(this.lockedPlannerUserId)) { + this.submitData.plannerIds = [this.lockedPlannerUserId, ...this.submitData.plannerIds] + } + }) + this.$message.warning('该计划员不可移除') + } + }, + /** * 确认下达 */