|
|
@ -613,7 +613,8 @@ |
|
|
placeholder="请选择计划员(可多选)" |
|
|
placeholder="请选择计划员(可多选)" |
|
|
style="width: 100%" |
|
|
style="width: 100%" |
|
|
multiple |
|
|
multiple |
|
|
clearable> |
|
|
|
|
|
|
|
|
clearable |
|
|
|
|
|
@remove-tag="handlePlannerRemoveTag"> |
|
|
<el-option |
|
|
<el-option |
|
|
v-for="planner in plannerList" |
|
|
v-for="planner in plannerList" |
|
|
:key="planner.userId" |
|
|
:key="planner.userId" |
|
|
@ -719,6 +720,7 @@ export default { |
|
|
prodManagerList: [], // 生产经理候选列表 |
|
|
prodManagerList: [], // 生产经理候选列表 |
|
|
qualityManagerList: [], // 质量经理候选列表 |
|
|
qualityManagerList: [], // 质量经理候选列表 |
|
|
plannerList: [], // 计划员候选列表 |
|
|
plannerList: [], // 计划员候选列表 |
|
|
|
|
|
lockedPlannerUserId: null, // 默认计划员(郑宇),不可移除 |
|
|
|
|
|
|
|
|
// 流程状态数据 |
|
|
// 流程状态数据 |
|
|
flowStatus: { |
|
|
flowStatus: { |
|
|
@ -1012,6 +1014,9 @@ export default { |
|
|
this.prodManagerList = data.prodManagers || [] |
|
|
this.prodManagerList = data.prodManagers || [] |
|
|
this.qualityManagerList = data.qualityManagers || [] |
|
|
this.qualityManagerList = data.qualityManagers || [] |
|
|
this.plannerList = data.planners || [] |
|
|
this.plannerList = data.planners || [] |
|
|
|
|
|
// 记录默认计划员郑宇的 userId,用于锁定不可移除 |
|
|
|
|
|
const joyce = this.plannerList.find(p => p.userDisplay && p.userDisplay.includes('郑宇')) |
|
|
|
|
|
this.lockedPlannerUserId = joyce ? joyce.userId : null |
|
|
// 根据事业部设置默认生产经理(使用user_display模糊匹配) |
|
|
// 根据事业部设置默认生产经理(使用user_display模糊匹配) |
|
|
const defaultProdManagerIds = [] |
|
|
const defaultProdManagerIds = [] |
|
|
if (row.buDesc === 'RFID') { |
|
|
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('该计划员不可移除') |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 确认下达 |
|
|
* 确认下达 |
|
|
*/ |
|
|
*/ |
|
|
|