[update] 修改企标制修订流程

This commit is contained in:
lideqin
2023-12-22 16:23:06 +08:00
parent 74f54c59cd
commit 370b6abef6
15 changed files with 360 additions and 352 deletions
@@ -81,7 +81,7 @@ export default {
title: this.$t('workCenter.enStandardRevision.clauseNumber'),
align: 'center',
width: 180,
dataIndex: 'clauseNumber',
dataIndex: 'clauseNum',
scopedSlots: { customRender: 'text' }
},
{ // 条款名称
@@ -95,14 +95,14 @@ export default {
title: this.$t('workCenter.enStandardRevision.contentOfRevisedOpinion'),
align: 'center',
width: 300,
dataIndex: 'contentOfRevisedOpinion',
dataIndex: 'editAdvice',
scopedSlots: { customRender: 'text' }
},
{ // 意见提出人
title: this.$t('workCenter.enStandardRevision.proposer'),
align: 'center',
width: 180,
dataIndex: 'proposer',
dataIndex: 'createUserId_dictText',
scopedSlots: { customRender: 'text' }
},
{
@@ -119,24 +119,24 @@ export default {
// 拿到外面传进来的数据初始化,因为套了几层就不在外层初始化数据了
initData (data) {
// 给表格赋值,在线编辑不知道要怎么赋值?
// this.dataSource =
this.dataSource = data.advices
// 给表单赋值
// this.$nextTick(() => {
// this.$refs.baseInfoForm.formInline =
// })
this.$nextTick(() => {
this.$refs.baseInfoForm.initData(data)
})
},
// 外层要获取数据
getData () {
// 把数据抛出,在线编辑不知道要不要抛
const data = {}
data.dataSource = this.dataSource
data.advices = this.dataSource
return data
},
// 外层获取数据要过校验,返回false表示没有通过校验
getDataValidate () {
if (this.dataSource && this.dataSource.length > 0) {
const data = {}
data.dataSource = this.dataSource
data.advices = this.dataSource
return data
} else {
this.$message.warning(this.$t('addAtLeastOneRowOfData'))