fix : 修复项目立项校验

This commit is contained in:
2024-07-18 12:19:43 +08:00
parent 60d9b958bc
commit 094474b680
2 changed files with 23 additions and 11 deletions

View File

@@ -59,8 +59,7 @@
</el-form-item>
</el-col>
<el-col :span="24">
<!-- :required="preProcessRequired"-->
<el-form-item label="前置流程" prop="preProcess" label-width="125">
<el-form-item label="前置流程" :required="preProcessRequired" prop="preProcess" label-width="125">
<el-button color="#DED0B2" @click="handleShowPreTable" style="margin-right: 10px">
{{ localFormData.preProcess&&localFormData.preProcess.length>0 ? '更改' :sessionParams.preProcess&&sessionParams.preProcess.length>0 ? '更改' : '请选择' }}
</el-button>
@@ -573,12 +572,17 @@ const getFileParam = (item) => {
const handleSubmit = async () => {
if (deploymentData.value.deploymentName === '重大项目立项' || deploymentData.value.deploymentName === '重大项目验收') {
if (localFormData.value.preProcess == undefined) {
ElNotification({
title: '提示',
message: '请选择前置流程!',
type: 'error'
})
return;
if(JSON.parse(localStorage.getItem('preProcess'))?.length>0){
}else {
ElNotification({
title: '提示',
message: '请选择前置流程!',
type: 'error'
})
return;
}
}
}