fix 79939
This commit is contained in:
@@ -441,7 +441,8 @@ export default {
|
|||||||
validateTrigger: 'blur'
|
validateTrigger: 'blur'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
businessId: null
|
businessId: null,
|
||||||
|
standardGetState: null // 标准从接口获取到数据时候的标准状态值
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -474,7 +475,12 @@ export default {
|
|||||||
// 标准法规变更
|
// 标准法规变更
|
||||||
if (this.formInline.operateType === OperationType.CHANGE.value) {
|
if (this.formInline.operateType === OperationType.CHANGE.value) {
|
||||||
// 标准名称,被代替标准号,被引用标准号,标准类别,年代号
|
// 标准名称,被代替标准号,被引用标准号,标准类别,年代号
|
||||||
return ['replaced_by_standard_number', 'referenced_standard', 'standard_class', 'year_number']
|
const fields = ['replaced_by_standard_number', 'referenced_standard', 'standard_class', 'year_number']
|
||||||
|
// 废止状态的标准,标准状态不可以编辑
|
||||||
|
if (this.standardGetState === StandardStatus.ABOLISH.value) {
|
||||||
|
fields.push('standard_state')
|
||||||
|
}
|
||||||
|
return fields
|
||||||
}
|
}
|
||||||
return ['replaced_by_standard_number', 'referenced_standard']
|
return ['replaced_by_standard_number', 'referenced_standard']
|
||||||
}
|
}
|
||||||
@@ -1049,6 +1055,7 @@ export default {
|
|||||||
data[field.dbFieldName] = data[field.dbFieldName] || null
|
data[field.dbFieldName] = data[field.dbFieldName] || null
|
||||||
})
|
})
|
||||||
this.formInline = Object.assign({ ...this.formInline }, { ...data })
|
this.formInline = Object.assign({ ...this.formInline }, { ...data })
|
||||||
|
this.standardGetState = this.formInline.standard_state
|
||||||
// 处理标准选择不能选自己
|
// 处理标准选择不能选自己
|
||||||
this.excludeStandardNumbers = this.formInline.standard_number
|
this.excludeStandardNumbers = this.formInline.standard_number
|
||||||
this.handleDomesticSpecialCheck()
|
this.handleDomesticSpecialCheck()
|
||||||
@@ -1118,6 +1125,7 @@ export default {
|
|||||||
data[field.dbFieldName] = data[field.dbFieldName] || null
|
data[field.dbFieldName] = data[field.dbFieldName] || null
|
||||||
})
|
})
|
||||||
this.formInline = Object.assign({ ...this.formInline }, { ...data })
|
this.formInline = Object.assign({ ...this.formInline }, { ...data })
|
||||||
|
this.standardGetState = this.formInline.standard_state
|
||||||
// 处理标准选择不能选自己
|
// 处理标准选择不能选自己
|
||||||
this.excludeStandardNumbers = this.formInline.standard_number
|
this.excludeStandardNumbers = this.formInline.standard_number
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user