[update] 修改bug79995
This commit is contained in:
+17
-26
@@ -288,7 +288,6 @@
|
||||
<!-- 标准等级分类 -->
|
||||
<div class="box-title-text form-flex-item-half">
|
||||
<div class="title-text">
|
||||
<span class="required">*</span>
|
||||
<span class="title-text-text" :title="$t('workCenter.enterpriseInitChangePlan.standardGradeClassification')">
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.standardGradeClassification') }}
|
||||
</span>
|
||||
@@ -420,7 +419,6 @@
|
||||
<!-- 授权部门 -->
|
||||
<div class="box-title-text form-flex-item-half">
|
||||
<div class="title-text">
|
||||
<span class="required">*</span>
|
||||
<span class="title-text-text" :title="$t('workCenter.enterpriseInitChangePlan.authorizationDepart')">
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.authorizationDepart') }}
|
||||
</span>
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user