2 Commits

Author SHA1 Message Date
魏保林
7847c590bc Merge branch 'hotfix' of http://carsafe.uicp.cn/Front_Team/SPDM into hotfix 2026-04-02 10:36:33 +08:00
魏保林
54bed0352c 修复新增待办的技术中心的确认人逻辑 2026-04-02 10:36:28 +08:00
2 changed files with 9 additions and 10 deletions

View File

@@ -105,11 +105,11 @@ emitter.on('ADD_UPLOAD_FILE', (addData: any) => {
}
});
$wujie.bus.$on('UPLOAD_LIST_DATA_EMPTY', () => {
$wujie?.bus?.$on('UPLOAD_LIST_DATA_EMPTY', () => {
emptyFun();
});
$wujie.bus.$on('UPLOAD_LIST_DATA_REMOVE', (index: any) => {
$wujie?.bus?.$on('UPLOAD_LIST_DATA_REMOVE', (index: any) => {
removeFun(index);
});

View File

@@ -748,10 +748,6 @@ const changeFun = async (val: any) => {
// };
// });
}
if (editFormInfo.value.simType) {
await disposeDeptMember();
}
}
if (nodeId) {
const optionList = await getPhaseList(nodeType, nodeId);
@@ -802,6 +798,9 @@ const changeFun = async (val: any) => {
tableFormRef.value.setOptionsFun('workspaceId', []);
tableFormRef.value.setOptionsFun('workspaceCode', []);
}
if (editFormInfo.value.simType && editFormInfo.value?.selectPhaseName) {
await disposeDeptMember();
}
} else {
tableFormRef.value.setOptionsFun(nextKey, []);
editFormInfo.value.phaseId = '';
@@ -916,13 +915,13 @@ const disposeDeptMember = async () => {
// 非设计阶段 走技术中心 设计阶段不走技术中心
if (editFormInfo.value?.selectPhaseName.indexOf('设计') !== -1) {
return (
item.deptName.indexOf(currentProjectUndertaker.value) !== -1 &&
item.deptName.indexOf('技术中心') === -1
item.deptName.startsWith(currentProjectUndertaker.value) &&
item.deptName.endsWith('技术中心')
);
} else {
return (
item.deptName.indexOf(currentProjectUndertaker.value) !== -1 &&
item.deptName.indexOf('技术中心') !== -1
item.deptName.startsWith(currentProjectUndertaker.value) &&
item.deptName.endsWith('技术中心')
);
}
});