[update 标准解读流程] 主解读人分发完善
This commit is contained in:
+5
-2
@@ -401,12 +401,13 @@ export default {
|
||||
params.data = {}
|
||||
// 发起节点
|
||||
if (this.isInitiate) {
|
||||
const standardData = compData.standardData[0] || {}
|
||||
// 选择的标准数据
|
||||
params.data.processStandardInterpret = Object.assign({}, {
|
||||
// 分解单来源
|
||||
decompositionSource: compData.standardData[0] && compData.standardData[0].decompositionSource,
|
||||
decompositionSource: standardData.decompositionSource,
|
||||
// 标准id
|
||||
standardId: compData.standardData[0] && compData.standardData[0].standardId,
|
||||
standardId: standardData.standardId,
|
||||
projectId: this.projectId
|
||||
})
|
||||
params.data.processStandardInterpretClauseList = compData.clauseData
|
||||
@@ -424,7 +425,9 @@ export default {
|
||||
// 条款列表(分发和不分发传入的字段不一样)
|
||||
if (compData.isDistribute) {
|
||||
params.data.processStandardInterpretClauseList = compData.clauseData
|
||||
params.data.processStandardInterpretClauseSublistList = []
|
||||
} else {
|
||||
params.data.processStandardInterpretClauseList = []
|
||||
// 将条款的表格复制到完整的条款解读表,id需要处理
|
||||
params.data.processStandardInterpretClauseSublistList = compData.clauseData.map(item => {
|
||||
item.standardInterpretClauseId = item.id
|
||||
|
||||
+5
@@ -73,6 +73,11 @@ export default {
|
||||
async getData (isValidate) {
|
||||
const obj = {}
|
||||
if (isValidate) {
|
||||
// 至少一条数据
|
||||
if (!this.$refs.interpretationClauseTable.getData().length) {
|
||||
this.$message.warn(this.$t('addAtLeastOneRowOfData'))
|
||||
this._flag = true
|
||||
}
|
||||
obj.formData = await new Promise((resolve) => {
|
||||
this.form.validateFields((err, values) => {
|
||||
if (err) { obj._flag = true }
|
||||
|
||||
Reference in New Issue
Block a user