确认人和阶段 用文本显示

This commit is contained in:
weibl
2026-03-16 15:16:38 +08:00
parent f3c15fdaaa
commit 9af32a4593

View File

@@ -724,13 +724,16 @@ const changeFun = async (val: any) => {
if (currentPhase) {
editFormInfo.value.phaseId = currentPhase.value;
editFormInfo.value.selectPhaseName = currentPhase.label;
editFormInfo.value.phaseName = currentPhase.label;
} else {
editFormInfo.value.phaseId = optionList[0].value;
editFormInfo.value.selectPhaseName = optionList[0].label;
editFormInfo.value.phaseName = optionList[0].label;
}
} else {
editFormInfo.value.phaseId = optionList[0].value;
editFormInfo.value.selectPhaseName = optionList[0].label;
editFormInfo.value.phaseName = optionList[0].label;
}
const workspaceInfo = await getWorkSpaceList(editFormInfo.value.phaseId);
editFormInfo.value.workspaceId = workspaceInfo.uuid;
@@ -749,6 +752,7 @@ const changeFun = async (val: any) => {
if (optionList.length === 0) {
editFormInfo.value.phaseId = '';
editFormInfo.value.selectPhaseName = '';
editFormInfo.value.phaseName = '--';
// 清空工位数据
editFormInfo.value.machineId = '';
editFormInfo.value.workspaceId = '';
@@ -761,6 +765,7 @@ const changeFun = async (val: any) => {
tableFormRef.value.setOptionsFun(nextKey, []);
editFormInfo.value.phaseId = '';
editFormInfo.value.selectPhaseName = '';
editFormInfo.value.phaseName = '--';
editFormInfo.value.machineId = '';
editFormInfo.value.workspaceId = '';
editFormInfo.value.workspaceCode = '';
@@ -846,6 +851,7 @@ const deptList = ref<any[]>([]);
const disposeDeptMember = async () => {
let pMemberId = '';
editFormInfo.value.pMemberList = '';
editFormInfo.value.pMemberName = '';
if (!currentProjectUndertaker.value) {
return '';
}
@@ -859,6 +865,7 @@ const disposeDeptMember = async () => {
editFormInfo.value.pMemberList =
deptList.value[index].userId + '-' + deptList.value[index].deptName;
pMemberId = deptList.value[index].userId;
editFormInfo.value.pMemberName = deptList.value[index].userResp.nickname;
}
}
return pMemberId;
@@ -891,6 +898,7 @@ const disposeDeptMember = async () => {
if (machDept) {
pMemberId = machDept.userId;
editFormInfo.value.pMemberList = machDept.userId + '-' + machDept.deptName;
editFormInfo.value.pMemberName = machDept.userResp.nickname;
}
// }
}