[update] 联调企标立项、变更计划

This commit is contained in:
lideqin
2023-10-13 18:08:38 +08:00
parent 667656fc5d
commit bf517b5d37
23 changed files with 747 additions and 563 deletions
@@ -626,14 +626,9 @@ export default {
default: false
}
},
// computed: {
// yearNumberDefaultValue () {
// return new Date().getFullYear() + ''
// }
// },
watch: {
projectType () {
console.log('projectType改变了————————————————————————---')
this.$refs.ruleForm.resetFields()
this.formInline.decadeCode = new Date().getFullYear() + ''
},
// 企业标准代号
@@ -874,9 +869,12 @@ export default {
}
})
} else {
const standardNo = this.formInline.originEnStandardNo.split('-')[0] + '-' + this.formInline.decadeCode
this.$set(this.formInline, 'newEnStandardNo', standardNo)
this.$forceUpdate()
// 是修订,通过选中的企标编号和年代号拼接新企标编号
if (this.formInline.originEnStandardNo && this.formInline.decadeCode) {
const standardNo = this.formInline.originEnStandardNo.split('-')[0] + '-' + this.formInline.decadeCode
this.$set(this.formInline, 'newEnStandardNo', standardNo)
this.$forceUpdate()
}
}
},
// 获取零部件名称下拉框数据