[update 标准解读流程] 完善

This commit is contained in:
danshihao
2024-07-16 18:21:07 +08:00
parent 7823641633
commit af21943b50
@@ -415,7 +415,7 @@ export default {
standardId: standardData.standardId,
projectId: this.projectId
})
params.data.processStandardInterpretClauseList = compData.clauseData
params.data.processStandardInterpretClauseList = compData.clauseData || []
} else if (this.currentNodeId === StandardInterpretationNodes.controlDepartLiaisonDistribution.value) {
// 联络人分发节点
params.data.processStandardInterpret = Object.assign({}, this.info.data.processStandardInterpret, compData.formData, {
@@ -453,6 +453,13 @@ export default {
params.data.processStandardInterpretClauseList = []
params.data.processStandardInterpretClauseSublistList = compData.clauseInterpretData
}
// 如果两个列表没有获取到值就返回空数据,防止后端报错
if (!params.data.processStandardInterpretClauseList) {
params.data.processStandardInterpretClauseList = []
}
if (!params.data.processStandardInterpretClauseSublistList) {
params.data.processStandardInterpretClauseSublistList = []
}
// 后端取值不能为空,设置成空字符串
const notIsNullField = [
'approvePersonId', // 批准人员