[update] 调年度制修订计划两个流程
This commit is contained in:
+30
-5
@@ -25,8 +25,9 @@
|
||||
<a-form-model-item class="item-model" prop="applicationType">
|
||||
<a-select v-model="formInline.applicationType"
|
||||
:disabled="disabled"
|
||||
:defaultValue="ApplicationCategory.INITIATION.value"
|
||||
:placeholder="$t('pleaseSelect')+$t('workCenter.enterpriseInitChangePlan.applicationType')">
|
||||
<a-select-option :value="1">{{ $t('workCenter.enterpriseInitChangePlan.standardProjectEstablishment') }}</a-select-option>
|
||||
<a-select-option :value="ApplicationCategory.INITIATION.value">{{ $t('workCenter.enterpriseInitChangePlan.standardProjectEstablishment') }}</a-select-option>
|
||||
</a-select>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
@@ -494,6 +495,21 @@
|
||||
type="radio" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<!-- 配合单位 -->
|
||||
<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.suitUnit')">
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.suitUnit') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="cooperationUnit">
|
||||
<j-select-depart v-model="formInline.cooperationUnit"
|
||||
:disabled="disabled"
|
||||
@back="cooperationUnitBack"
|
||||
:backDepart="true" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</div>
|
||||
</a-form-model>
|
||||
</a-spin>
|
||||
@@ -509,7 +525,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { StandardSource, ProjectType } from '@/enums/commonEnums'
|
||||
import { StandardSource, ProjectType, ApplicationCategory } from '@/enums/commonEnums'
|
||||
import { getWorkGroupTreeList, getFormDictTreeList } from '@/api/api'
|
||||
import UserSelection from '@/components/selection/UserSelection'
|
||||
import StandardSelection from '@/components/selection/StandardSelection'
|
||||
@@ -526,6 +542,7 @@ export default {
|
||||
return {
|
||||
StandardSource,
|
||||
ProjectType,
|
||||
ApplicationCategory,
|
||||
workingGroupTreeList: [], // 隶属工作组下拉框数据
|
||||
partNameOptions: [], // 零部件名称下拉框数据
|
||||
standardSystemOptions: [], // 企标体系下拉框数据
|
||||
@@ -765,7 +782,12 @@ export default {
|
||||
this.visible = true
|
||||
this.model = Object.assign({}, record)
|
||||
this.formInline = Object.assign({}, record)
|
||||
this.formInline.workGroup = { value: this.formInline.workGroup, label: this.formInline.workGroup_dictText }
|
||||
if (this.formInline.workGroup) {
|
||||
this.formInline.workGroup = { value: this.formInline.workGroup, label: this.formInline.workGroup_dictText }
|
||||
}
|
||||
if (!this.formInline.applicationType) {
|
||||
this.formInline.applicationType = this.ApplicationCategory.INITIATION.value
|
||||
}
|
||||
},
|
||||
look (record) {
|
||||
this.visible = true
|
||||
@@ -850,6 +872,10 @@ export default {
|
||||
mainDraftingUnitBack (value) {
|
||||
this.formInline.mainDraftingUnit_dictText = value.map(item => item.text).join(',')
|
||||
},
|
||||
// 配合单位返回参数
|
||||
cooperationUnitBack (value) {
|
||||
this.formInline.cooperationUnit_dictText = value.map(item => item.text).join(',')
|
||||
},
|
||||
// 标准选择组件返回标准名称的回调
|
||||
nameChange (value) {
|
||||
this.formInline.originEnStandardName = value
|
||||
@@ -899,7 +925,7 @@ export default {
|
||||
const formInline = JSON.parse(JSON.stringify(this.formInline))
|
||||
if (formInline.projectType) {
|
||||
// 翻译项目类别
|
||||
formInline.projectType_dictText = formInline.projectType === 1 ? ProjectType.ENACT.text : ProjectType.MODIFY.text
|
||||
formInline.projectType_dictText = formInline.projectType === ProjectType.ENACT.value ? ProjectType.ENACT.text : ProjectType.MODIFY.text
|
||||
// 设置变更状态
|
||||
if (formInline.projectType === 1) {
|
||||
// 是制定,变更状态是新增
|
||||
@@ -918,7 +944,6 @@ export default {
|
||||
if (formInline.enStandardCode) {
|
||||
formInline.enStandardCode_dictText = this.$refs.enStandardCodeRef.dictOptions.find(item => item.value === formInline.enStandardCode).text
|
||||
}
|
||||
// 配合单位弹框中没有该字段,是否要加??
|
||||
// 主起草单位的回显需要在登录信息中有当前登录人部门的翻译 ??
|
||||
console.log(formInline)
|
||||
this.$emit('ok', formInline)
|
||||
|
||||
Reference in New Issue
Block a user