-
*
{{ $t('workCenter.enterpriseInitChangePlan.standardGradeClassification') }}
@@ -420,7 +419,6 @@
- *
{{ $t('workCenter.enterpriseInitChangePlan.authorizationDepart') }}
@@ -654,14 +652,6 @@ export default {
trigger: 'change'
}
],
- // 标准等级分类
- enStandardClassification: [
- {
- required: true,
- message: this.$t('workCenter.enterpriseInitChangePlan.standardGradeClassification') + this.$t('cannotEmpty'),
- trigger: 'change'
- }
- ],
// 草稿计划完成日期
draftPlannedCompleteDate: [
{
@@ -686,14 +676,6 @@ export default {
trigger: 'change'
}
],
- // 授权部门
- authDept: [
- {
- required: true,
- message: this.$t('workCenter.enterpriseInitChangePlan.authorizationDepart') + this.$t('cannotEmpty'),
- trigger: 'change'
- }
- ],
// 主起草人
mainDraftingUser: [
{
@@ -725,6 +707,14 @@ export default {
message: this.$t('workCenter.enterpriseInitChangePlan.standardPusher') + this.$t('cannotEmpty'),
trigger: 'change'
}
+ ],
+ // 配合单位
+ cooperationUnit: [
+ {
+ required: true,
+ message: this.$t('workCenter.enterpriseInitChangePlan.suitUnit') + this.$t('cannotEmpty'),
+ trigger: 'change'
+ }
]
}
}
@@ -770,23 +760,24 @@ export default {
edit (record) {
this.visible = true
this.model = Object.assign({}, record)
- this.formInline = Object.assign({}, record)
+ const formInline = Object.assign({}, record)
// 没有年代号就设置为当前年份
- if (!this.formInline.decadeCode) {
- this.formInline.decadeCode = new Date().getFullYear() + ''
+ if (!formInline.decadeCode) {
+ formInline.decadeCode = new Date().getFullYear() + ''
}
// 处理隶属工作组格式
- if (this.formInline.workGroup) {
- this.formInline.workGroup = { value: this.formInline.workGroup, label: this.formInline.workGroup_dictText }
+ if (formInline.workGroup) {
+ formInline.workGroup = { value: formInline.workGroup, label: formInline.workGroup_dictText }
}
// 没有申请类型就设置为立项
- if (!this.formInline.applicationType) {
- this.formInline.applicationType = this.ApplicationCategory.INITIATION.value
+ if (!formInline.applicationType) {
+ formInline.applicationType = this.ApplicationCategory.INITIATION.value
}
// 处理标准体系数据格式
- this.formInline.enStandardSystem = this.formInline.enStandardSystem ? this.formInline.enStandardSystem.split(',').map(item => {
+ formInline.enStandardSystem = formInline.enStandardSystem ? formInline.enStandardSystem.split(',').map(item => {
return { value: item }
}) : []
+ this.formInline = Object.assign({}, formInline)
},
look (record) {
this.visible = true