[update] 修改bug79995

This commit is contained in:
lideqin
2024-01-04 17:51:58 +08:00
parent 65cfd5535d
commit ae6df75615
@@ -288,7 +288,6 @@
<!-- 标准等级分类 --> <!-- 标准等级分类 -->
<div class="box-title-text form-flex-item-half"> <div class="box-title-text form-flex-item-half">
<div class="title-text"> <div class="title-text">
<span class="required">*</span>
<span class="title-text-text" :title="$t('workCenter.enterpriseInitChangePlan.standardGradeClassification')"> <span class="title-text-text" :title="$t('workCenter.enterpriseInitChangePlan.standardGradeClassification')">
{{ $t('workCenter.enterpriseInitChangePlan.standardGradeClassification') }} {{ $t('workCenter.enterpriseInitChangePlan.standardGradeClassification') }}
</span> </span>
@@ -420,7 +419,6 @@
<!-- 授权部门 --> <!-- 授权部门 -->
<div class="box-title-text form-flex-item-half"> <div class="box-title-text form-flex-item-half">
<div class="title-text"> <div class="title-text">
<span class="required">*</span>
<span class="title-text-text" :title="$t('workCenter.enterpriseInitChangePlan.authorizationDepart')"> <span class="title-text-text" :title="$t('workCenter.enterpriseInitChangePlan.authorizationDepart')">
{{ $t('workCenter.enterpriseInitChangePlan.authorizationDepart') }} {{ $t('workCenter.enterpriseInitChangePlan.authorizationDepart') }}
</span> </span>
@@ -654,14 +652,6 @@ export default {
trigger: 'change' trigger: 'change'
} }
], ],
// 标准等级分类
enStandardClassification: [
{
required: true,
message: this.$t('workCenter.enterpriseInitChangePlan.standardGradeClassification') + this.$t('cannotEmpty'),
trigger: 'change'
}
],
// 草稿计划完成日期 // 草稿计划完成日期
draftPlannedCompleteDate: [ draftPlannedCompleteDate: [
{ {
@@ -686,14 +676,6 @@ export default {
trigger: 'change' trigger: 'change'
} }
], ],
// 授权部门
authDept: [
{
required: true,
message: this.$t('workCenter.enterpriseInitChangePlan.authorizationDepart') + this.$t('cannotEmpty'),
trigger: 'change'
}
],
// 主起草人 // 主起草人
mainDraftingUser: [ mainDraftingUser: [
{ {
@@ -725,6 +707,14 @@ export default {
message: this.$t('workCenter.enterpriseInitChangePlan.standardPusher') + this.$t('cannotEmpty'), message: this.$t('workCenter.enterpriseInitChangePlan.standardPusher') + this.$t('cannotEmpty'),
trigger: 'change' trigger: 'change'
} }
],
// 配合单位
cooperationUnit: [
{
required: true,
message: this.$t('workCenter.enterpriseInitChangePlan.suitUnit') + this.$t('cannotEmpty'),
trigger: 'change'
}
] ]
} }
} }
@@ -770,23 +760,24 @@ export default {
edit (record) { edit (record) {
this.visible = true this.visible = true
this.model = Object.assign({}, record) this.model = Object.assign({}, record)
this.formInline = Object.assign({}, record) const formInline = Object.assign({}, record)
// 没有年代号就设置为当前年份 // 没有年代号就设置为当前年份
if (!this.formInline.decadeCode) { if (!formInline.decadeCode) {
this.formInline.decadeCode = new Date().getFullYear() + '' formInline.decadeCode = new Date().getFullYear() + ''
} }
// 处理隶属工作组格式 // 处理隶属工作组格式
if (this.formInline.workGroup) { if (formInline.workGroup) {
this.formInline.workGroup = { value: this.formInline.workGroup, label: this.formInline.workGroup_dictText } formInline.workGroup = { value: formInline.workGroup, label: formInline.workGroup_dictText }
} }
// 没有申请类型就设置为立项 // 没有申请类型就设置为立项
if (!this.formInline.applicationType) { if (!formInline.applicationType) {
this.formInline.applicationType = this.ApplicationCategory.INITIATION.value 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 } return { value: item }
}) : [] }) : []
this.formInline = Object.assign({}, formInline)
}, },
look (record) { look (record) {
this.visible = true this.visible = true