[update 标准解读流程] 完善
This commit is contained in:
+5
-2
@@ -432,8 +432,11 @@ export default {
|
||||
params.data.processStandardInterpretClauseList = []
|
||||
// 将条款的表格复制到完整的条款解读表,id需要处理
|
||||
params.data.processStandardInterpretClauseSublistList = compData.clauseData.map(item => {
|
||||
item.standardInterpretClauseId = item.id
|
||||
delete item.id
|
||||
// 直接用完整表的不需要处理
|
||||
if (!item.standardInterpretClauseId) {
|
||||
item.standardInterpretClauseId = item.id
|
||||
delete item.id
|
||||
}
|
||||
return item
|
||||
})
|
||||
}
|
||||
|
||||
+13
-7
@@ -3,7 +3,7 @@
|
||||
<a-spin :spinning="loading">
|
||||
<div class="process-part-title">{{ $t('dispatchInformation') }}</div>
|
||||
<!-- 条款的表格 -->
|
||||
<interpretation-clause-table ref="interpretationClauseTable" :disabled="disabled" :current-node-id="currentNodeId"/>
|
||||
<interpretation-clause-table v-if="showClauseTable" ref="interpretationClauseTable" :disabled="disabled" :current-node-id="currentNodeId"/>
|
||||
<a-form :form="form" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||
<a-row>
|
||||
<a-col :span="8">
|
||||
@@ -27,6 +27,7 @@
|
||||
import UserSelection from '@comp/selection/UserSelection'
|
||||
import InterpretationClauseTable
|
||||
from '@views/workCenter/standardInterpretationProcess/modules/InterpretationClauseTable'
|
||||
import { YesOrNoEnum } from '@/enums/commonEnums'
|
||||
export default {
|
||||
name: 'InterpretationLiaisonDistribute',
|
||||
components: { InterpretationClauseTable, UserSelection },
|
||||
@@ -62,7 +63,9 @@ export default {
|
||||
}
|
||||
},
|
||||
// 表单的数据
|
||||
formInline: {}
|
||||
formInline: {},
|
||||
// 是否显示条款表格
|
||||
showClauseTable: false
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -74,7 +77,7 @@ export default {
|
||||
const obj = {}
|
||||
if (isValidate) {
|
||||
// 至少一条数据
|
||||
if (!this.$refs.interpretationClauseTable.getData().length) {
|
||||
if (this.showClauseTable && !this.$refs.interpretationClauseTable.getData().length) {
|
||||
this.$message.warn(this.$t('addAtLeastOneRowOfData'))
|
||||
this._flag = true
|
||||
}
|
||||
@@ -89,7 +92,7 @@ export default {
|
||||
obj.formData = this.form.getFieldsValue()
|
||||
}
|
||||
// 条款列表
|
||||
obj.clauseData = this.$refs.interpretationClauseTable.getData()
|
||||
obj.clauseData = this.showClauseTable ? this.$refs.interpretationClauseTable.getData() : []
|
||||
// 获取所有删除的id
|
||||
obj.processAllDelIds = this.$refs.interpretationClauseTable && this.$refs.interpretationClauseTable.processAllDelIds
|
||||
return obj
|
||||
@@ -97,9 +100,12 @@ export default {
|
||||
// 更新组件内的数据
|
||||
setData (data) {
|
||||
this.clauseDataSource = data.data.processStandardInterpretClauseList || []
|
||||
this.$refs.interpretationClauseTable.setData(this.clauseDataSource)
|
||||
this.formInline = data.data.processStandardInterpret
|
||||
this.form.setFieldsValue(this.formInline)
|
||||
this.formInline = data.data.processStandardInterpret || {}
|
||||
this.showClauseTable = this.formInline.chooseClause === YesOrNoEnum.YES.value
|
||||
this.$nextTick(() => {
|
||||
this.form.setFieldsValue(this.formInline)
|
||||
this.$refs.interpretationClauseTable.setData(this.clauseDataSource)
|
||||
})
|
||||
},
|
||||
// 选择用户回显用户名
|
||||
userSelectNameChange (value, fieldName) {
|
||||
|
||||
Reference in New Issue
Block a user