[update] 修改企标制修订流程,企标复审流程发起传标准id
This commit is contained in:
@@ -212,6 +212,8 @@ export default {
|
||||
listChange (value) {
|
||||
console.log(value)
|
||||
this.loading = true
|
||||
// 企标id
|
||||
this.formInline.standardId = value[0].standardId
|
||||
// 企标编号
|
||||
this.formInline.standardNumber = value[0].standardNo
|
||||
// 企标名称
|
||||
|
||||
@@ -128,6 +128,8 @@ export default {
|
||||
// 选完企标编号了,需要回显内容,返回流程名称
|
||||
listChange (value) {
|
||||
console.log(value)
|
||||
// 企标id
|
||||
this.formInline.standardId = value[0].standardId
|
||||
// 企标名称
|
||||
this.formInline.standardName = value[0].standardName
|
||||
// 主起草人赋值给联络人
|
||||
|
||||
@@ -369,8 +369,8 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.getForm()
|
||||
this.getStandardGradeClassificationArr()
|
||||
this.getForm()
|
||||
},
|
||||
methods: {
|
||||
initData (data) {
|
||||
@@ -381,6 +381,20 @@ export default {
|
||||
}) : []
|
||||
this.isEditSetData = false
|
||||
},
|
||||
getData () {
|
||||
const formInline = Object.assign({}, this.formInline)
|
||||
Object.keys(formInline).forEach(res => {
|
||||
if (formInline[res] instanceof Array) {
|
||||
if (formInline[res][0] instanceof Object) {
|
||||
// 说明是树选择
|
||||
formInline[res] = formInline[res].map(item => item.value).join(',')
|
||||
} else {
|
||||
formInline[res] = formInline[res].join(',')
|
||||
}
|
||||
}
|
||||
})
|
||||
return formInline
|
||||
},
|
||||
// 外层获取数据要过校验,返回false表示没有通过校验
|
||||
async getDataValidate () {
|
||||
let data = {}
|
||||
|
||||
+2
-6
@@ -284,7 +284,8 @@ export default {
|
||||
loading: false,
|
||||
fileMaxSize: undefined,
|
||||
image: false,
|
||||
imageUrl: ''
|
||||
imageUrl: '',
|
||||
uploadName: ''
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -378,11 +379,6 @@ export default {
|
||||
},
|
||||
// 点击文件上传
|
||||
clickButtonToUpload (fieldName) {
|
||||
if (fieldName === 'uploadAttachment') {
|
||||
this.fileMaxSize = 10
|
||||
} else {
|
||||
this.fileMaxSize = undefined
|
||||
}
|
||||
this.$refs.uploadFile.open(this.formInline[fieldName])
|
||||
this.uploadName = fieldName
|
||||
},
|
||||
|
||||
@@ -125,7 +125,7 @@ export default {
|
||||
// 把数据抛出,在线编辑不知道要不要抛
|
||||
const data = {}
|
||||
data.otherDraftUserVOS = this.dataSource
|
||||
data.businessJson = JSON.stringify(this.$refs.baseInfoForm.formInline)
|
||||
data.businessJson = JSON.stringify(this.$refs.baseInfoForm.getData())
|
||||
return data
|
||||
},
|
||||
// 外层获取数据要过校验,返回false表示没有通过校验
|
||||
|
||||
@@ -313,7 +313,7 @@ export default {
|
||||
}
|
||||
}
|
||||
data.reviewMeetingDetails = arr
|
||||
data.businessJson = JSON.stringify(this.$refs.baseInfoForm.formInline)
|
||||
data.businessJson = JSON.stringify(this.$refs.baseInfoForm.getData())
|
||||
return data
|
||||
},
|
||||
// 外层获取数据要过校验,返回false表示没有通过校验
|
||||
|
||||
Reference in New Issue
Block a user