fix : 修复项目立项校验
This commit is contained in:
@@ -405,7 +405,9 @@ html, body, #app, .el-container, .el-aside, .el-main {
|
|||||||
.nowrap {
|
.nowrap {
|
||||||
white-space: pre
|
white-space: pre
|
||||||
}
|
}
|
||||||
|
.el-empty__description {
|
||||||
|
margin-top: 0!important;
|
||||||
|
}
|
||||||
//SvgIcon组件的样式
|
//SvgIcon组件的样式
|
||||||
.home-icon {
|
.home-icon {
|
||||||
width: 4em;
|
width: 4em;
|
||||||
|
|||||||
@@ -162,8 +162,3 @@ watch(() => props.processViewer, (newVal) => {
|
|||||||
}, {deep: true})
|
}, {deep: true})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
:deep(.el-table--fit ) {
|
|
||||||
height: 300px !important;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="apply-block">
|
<div class="apply-block">
|
||||||
<el-form :model="localFormData" ref="formRef" label-width="auto" :rules="rules" v-if="step!=='50'">
|
<el-form :model="localFormData" ref="formRef" label-width="auto" v-if="step!=='50'">
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="24" v-if="title==='apply'">
|
<el-col :span="24" v-if="title==='apply'">
|
||||||
<el-form-item label="项目负责人" :required="true" prop="projectChargePerson"
|
<el-form-item label="项目负责人" :required="true" prop="projectChargePerson"
|
||||||
@@ -257,8 +257,6 @@ const handleShowProjectChargePersonTable = () => {
|
|||||||
projectChargePersonUserPicker.value.showUserPicker()
|
projectChargePersonUserPicker.value.showUserPicker()
|
||||||
}
|
}
|
||||||
const projectChargePersonUserPickerOk = (userList) => {
|
const projectChargePersonUserPickerOk = (userList) => {
|
||||||
console.log('dsfsdfs',formRef.value,formRef.value?.validateField('projectChargePerson'))
|
|
||||||
|
|
||||||
projectChargePersonUserList.value = userList
|
projectChargePersonUserList.value = userList
|
||||||
}
|
}
|
||||||
const handleShowProjectPersonTable = () => {
|
const handleShowProjectPersonTable = () => {
|
||||||
@@ -271,8 +269,6 @@ const projectPersonUserPickerOk = (userList) => {
|
|||||||
for (const user of userList) {
|
for (const user of userList) {
|
||||||
userIds.push(user.id)
|
userIds.push(user.id)
|
||||||
}
|
}
|
||||||
// localFormData.value.projectPersonIds = userIds
|
|
||||||
console.log(userList, projectPersonUserList.value)
|
|
||||||
}
|
}
|
||||||
const getPreProcessList = () => {
|
const getPreProcessList = () => {
|
||||||
loading.value = true
|
loading.value = true
|
||||||
@@ -310,7 +306,6 @@ const choosePreProcess = () => {
|
|||||||
preProcessArray.push(preProcessObj)
|
preProcessArray.push(preProcessObj)
|
||||||
})
|
})
|
||||||
localFormData.value.preProcess = preProcessArray
|
localFormData.value.preProcess = preProcessArray
|
||||||
// console.log('localFormData.value.preProcess', localFormData.value.preProcess)
|
|
||||||
showPreTable.value = false
|
showPreTable.value = false
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -377,16 +372,6 @@ const getFileParam = (item) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
const handleSubmit = async () => {
|
const handleSubmit = async () => {
|
||||||
// if (!instance) return
|
|
||||||
// instance.validate(async (valid) => {
|
|
||||||
// if (!valid) {
|
|
||||||
// ElNotification({
|
|
||||||
// title: '提示',
|
|
||||||
// message: '请完善数据,再提交!',
|
|
||||||
// type: 'error'
|
|
||||||
// })
|
|
||||||
// return;
|
|
||||||
// }
|
|
||||||
if (deploymentData.value.deploymentName === '重大项目立项' || deploymentData.value.deploymentName === '重大项目验收') {
|
if (deploymentData.value.deploymentName === '重大项目立项' || deploymentData.value.deploymentName === '重大项目验收') {
|
||||||
if (localFormData.value.preProcess === undefined) {
|
if (localFormData.value.preProcess === undefined) {
|
||||||
ElNotification({
|
ElNotification({
|
||||||
@@ -394,8 +379,25 @@ const handleSubmit = async () => {
|
|||||||
message: '请选择前置流程!',
|
message: '请选择前置流程!',
|
||||||
type: 'error'
|
type: 'error'
|
||||||
})
|
})
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(projectChargePersonUserList.value&&projectChargePersonUserList.value.length===0){
|
||||||
|
ElNotification({
|
||||||
|
title: '提示',
|
||||||
|
message: '请选择项目负责人!',
|
||||||
|
type: 'error'
|
||||||
|
})
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if(projectPersonUserList.value&&projectPersonUserList.value.length===0){
|
||||||
|
ElNotification({
|
||||||
|
title: '提示',
|
||||||
|
message: '请选择项目成员!',
|
||||||
|
type: 'error'
|
||||||
|
})
|
||||||
|
return;
|
||||||
|
}
|
||||||
let files = []
|
let files = []
|
||||||
if (props.mode === 'resubmit') {
|
if (props.mode === 'resubmit') {
|
||||||
attachment.value.allFileList.forEach(item => {
|
attachment.value.allFileList.forEach(item => {
|
||||||
@@ -473,7 +475,6 @@ const handleSubmit = async () => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// })
|
|
||||||
}
|
}
|
||||||
const init = async () => {
|
const init = async () => {
|
||||||
let id = projectId.value
|
let id = projectId.value
|
||||||
|
|||||||
Reference in New Issue
Block a user