[update] 修改bug81976
This commit is contained in:
@@ -629,50 +629,56 @@ export default {
|
||||
listChange (value) {
|
||||
console.log(value)
|
||||
this.isEditSetData = true
|
||||
// 原企标编号,用于获取发布稿,带到在线编辑里面去
|
||||
this.formInline.originEnStandardNo = value[0].originEnStandardNo
|
||||
// 回显企标编号
|
||||
this.formInline.standard_number = value[0].newEnStandardNo
|
||||
// 回显制修订类型
|
||||
this.formInline.typeOfRevision = value[0].applicationCategory
|
||||
this.formInline.typeOfRevision_dictText = value[0].applicationCategory_dictText
|
||||
this.$refs.ruleForm.clearValidate('typeOfRevision')
|
||||
// 企标名称
|
||||
this.formInline.standard_name = value[0].newEnStandardName
|
||||
// 标准英文名称
|
||||
this.formInline.standard_english_name = value[0].enStandardEnglishName
|
||||
// 标准体系
|
||||
this.formInline.standard_system = value[0].enStandardSystem ? value[0].enStandardSystem.split(',').map(item => {
|
||||
return { value: item }
|
||||
}) : []
|
||||
// 标准等级分类
|
||||
this.formInline.grade_classification = value[0].enStandardClassification
|
||||
// 授权部门
|
||||
this.formInline.auth_dept = value[0].authDept
|
||||
// 发布日期??
|
||||
// this.formInline.release_date = value[0].applicationCategory
|
||||
// 实施日期??
|
||||
// this.formInline.implementation_date = value[0].applicationCategory
|
||||
// 编制说明
|
||||
this.formInline.comp_illustration = value[0].compilationDescription
|
||||
// 是否试行??
|
||||
// this.formInline.try_flag = value[0].applicationCategory
|
||||
// 试行周期??
|
||||
// this.formInline.trial_period = value[0].applicationCategory
|
||||
// 代替标准号
|
||||
// this.formInline.standard_number = value[0].applicationCategory
|
||||
// 设置主起草单位,改变标准等级分类的时候设置授权部门有时会需要主起草单位
|
||||
this.formInline.main_drafting_unit = value[0].mainDraftingUnit
|
||||
// 征求意见稿计划完成日期,因为部所联络人节点征求意见截止日期需要限制比征求意见稿计划完成日期早
|
||||
this.formInline.solicitationDraftPlanCompleteDate = value[0].solicitationDraftPlanCompleteDate
|
||||
this.formInline = Object.assign({}, this.formInline)
|
||||
setTimeout(() => {
|
||||
this.loading = true
|
||||
getEnterpriseStandardPlanInfoById({ id: value[0].id }).then(res => {
|
||||
if (res.success) {
|
||||
const formInline = {}
|
||||
// 企标计划id
|
||||
formInline.espId = res.result.id
|
||||
// 制修订类型
|
||||
formInline.typeOfRevision = res.result.applicationCategory
|
||||
formInline.typeOfRevision_dictText = res.result.applicationCategory_dictText
|
||||
// 原企标编号,用于获取发布稿,带到在线编辑里面去
|
||||
formInline.originEnStandardNo = res.result.originEnStandardNo
|
||||
// 企标编号
|
||||
formInline.standard_number = res.result.newEnStandardNo
|
||||
// 企标名称
|
||||
formInline.standard_name = res.result.newEnStandardName
|
||||
// 标准英文名称
|
||||
formInline.standard_english_name = res.result.enStandardEnglishName
|
||||
// 标准体系
|
||||
formInline.standard_system = res.result.enStandardSystem ? res.result.enStandardSystem.split(',').map(item => {
|
||||
return { value: item }
|
||||
}) : []
|
||||
// 标准等级分类
|
||||
formInline.grade_classification = res.result.enStandardClassification
|
||||
// 授权部门
|
||||
formInline.auth_dept = res.result.authDept || ''
|
||||
// 发布日期??
|
||||
// formInline.release_date = res.result.applicationCategory
|
||||
// 实施日期??
|
||||
// formInline.implementation_date = res.result.applicationCategory
|
||||
// 编制说明
|
||||
formInline.comp_illustration = res.result.compilationDescription
|
||||
// 是否试行??
|
||||
// formInline.try_flag = res.result.applicationCategory
|
||||
// 试行周期??
|
||||
// formInline.trial_period = res.result.applicationCategory
|
||||
// 代替标准号
|
||||
// formInline.standard_number = res.result.applicationCategory
|
||||
// 主起草单位,初始化是因为标准等级分类需要带出
|
||||
formInline.main_drafting_unit = res.result.mainDraftingUnit
|
||||
// 征求意见稿计划完成日期,因为部所联络人节点征求意见截止日期需要限制比征求意见稿计划完成日期早
|
||||
formInline.solicitationDraftPlanCompleteDate = res.result.solicitationDraftPlanCompleteDate
|
||||
this.formInline = Object.assign({}, formInline)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isEditSetData = false
|
||||
}, 500)
|
||||
// 设置流程名称
|
||||
const processName = this.formInline.standard_number + '-' + (this.formInline.standard_name || '') + '-' + this.formInline.typeOfRevision_dictText
|
||||
this.$emit('processNameChange', processName)
|
||||
this.$forceUpdate()
|
||||
this.loading = false
|
||||
// 设置流程名称
|
||||
const processName = this.formInline.standard_number + '-' + (this.formInline.standard_name || '') + '-' + this.formInline.typeOfRevision_dictText
|
||||
this.$emit('processNameChange', processName)
|
||||
})
|
||||
},
|
||||
// 点击点击上传按钮
|
||||
clickButtonToUpload (item) {
|
||||
|
||||
Reference in New Issue
Block a user