update 流程校验调整

This commit is contained in:
赵霄
2023-12-20 17:35:42 +08:00
parent 54810fa7b3
commit e2a4399f82
4 changed files with 33 additions and 3 deletions
@@ -253,7 +253,10 @@
<div class="detail-page-scroll-content p-0" v-show="switchValue === 'user'">
<process-detail-list :process-key="processKey">
<template #personnelInfo>
<personnel-info ref="personnelInfo" :data="personnelInfoData" :current-node="currentNode" :special-process-node-prefix="currentNodePrefix"/>
<personnel-info ref="personnelInfo"
:data="personnelInfoData"
:current-node="currentNode"
:special-process-node-prefix="currentNodePrefix" />
</template>
</process-detail-list>
</div>
@@ -950,7 +953,7 @@ export default {
dealFormData (isSave) {
// 提交的表单数据,流程信息,流程审批信息,征求意见列表,业务分派信息,业务基本信息
let formData = {}, processInfo = {}, approvalInfo = {}, consultationListData = [], dispatchInfo = {}, basicServiceInfo = {},
userInfoMap = {}, flag = true
userInfoMap = {}, flag = true, baseFlag
// 保存,只需要有填写内容即可
if (isSave) {
// 流程信息
@@ -1005,6 +1008,7 @@ export default {
dispatchInfo = Object.assign(this.dispatchInfo, values)
} else {
flag = false
this.$message.warning(this.$t('pleaseEnterRemarks'))
}
})
} else {
@@ -1014,6 +1018,7 @@ export default {
if (this.showConsultationList && (this.currentNode.indexOf(ConsultationProcess.moduleOwnerSummary.value) !== -1 || this.currentNode.indexOf(ConsultationProcess.leaderSummary.value) !== -1) && !this.$refs.expandTable.submit()) {
flag = false
}
baseFlag = flag
// 用户信息
const userInfo = this.$refs.personnelInfo.getDataObjVerify()
if (!userInfo) {
@@ -1021,6 +1026,11 @@ export default {
} else {
userInfoMap = userInfo
}
if (!flag && !baseFlag) {
this.switchValue = 'base'
} else if (!flag && !userInfo) {
this.switchValue = 'user'
}
consultationListData = this.dataSource || []
}
if (!flag) {