[update] 企标制修订流程发起节点判断必须在线编辑
This commit is contained in:
@@ -168,7 +168,8 @@ module.exports = {
|
|||||||
haveNoOpinion: '有无意见',
|
haveNoOpinion: '有无意见',
|
||||||
have: '有',
|
have: '有',
|
||||||
noHave: '无',
|
noHave: '无',
|
||||||
batchSetHandleAdvice: '批量设置处理意见'
|
batchSetHandleAdvice: '批量设置处理意见',
|
||||||
|
pleaseEditStandardText: '请编辑标准文本'
|
||||||
},
|
},
|
||||||
// 企标更改流程
|
// 企标更改流程
|
||||||
enStandardChange: {
|
enStandardChange: {
|
||||||
|
|||||||
@@ -162,13 +162,17 @@ export default {
|
|||||||
async getDataValidate () {
|
async getDataValidate () {
|
||||||
const formData = await this.$refs.baseInfoForm.getDataValidate()
|
const formData = await this.$refs.baseInfoForm.getDataValidate()
|
||||||
console.log(formData)
|
console.log(formData)
|
||||||
if (formData) {
|
if (formData && this.onEditFile) {
|
||||||
// 有数据可以抛出
|
// 有数据可以抛出
|
||||||
const data = {}
|
const data = {}
|
||||||
data.otherDraftUserVOS = this.dataSource || []
|
data.otherDraftUserVOS = this.dataSource || []
|
||||||
data.formInline = formData.formInline
|
data.formInline = formData.formInline
|
||||||
data.onEditFile = this.onEditFile
|
data.onEditFile = this.onEditFile
|
||||||
return data
|
return data
|
||||||
|
} else if (!this.onEditFile) {
|
||||||
|
// 提示请编辑标准文本
|
||||||
|
this.$message.warning(this.$t('workCenter.enStandardRevision.pleaseEditStandardText'))
|
||||||
|
return false
|
||||||
} else {
|
} else {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user