fix:只有社招新员工项目校验选修课数量

This commit is contained in:
zxj
2025-11-17 18:42:34 +08:00
parent 3511b29e54
commit 3866d82599
2 changed files with 5 additions and 2 deletions

View File

@@ -908,7 +908,10 @@ const submitStorage = async () => {
} }
}); });
}); });
if (num < projectInfo.value.electiveCourseCount) { if (
num < projectInfo.value.electiveCourseCount &&
projectInfo.value.szxygProjectFlag
) {
message.warning("选修课课程数小于设置的“选修课数量’值"); message.warning("选修课课程数小于设置的“选修课数量’值");
return; return;
} }

View File

@@ -3898,7 +3898,7 @@ export default {
} }
}) })
}) })
if(num<state.electiveCourseCount){ if(num<state.electiveCourseCount&&state.isNewEmployee){
message.warning("选修课课程数小于设置的“选修课数量’值,请修改后重新提交"); message.warning("选修课课程数小于设置的“选修课数量’值,请修改后重新提交");
return; return;
} }