[update] 修改企标计划立项、变更流程
This commit is contained in:
@@ -529,9 +529,6 @@ export default {
|
|||||||
if (type === 'draft') {
|
if (type === 'draft') {
|
||||||
this.approvalInfoForm.setFieldsValue(pick(this.model.common, 'commitText', 'commitFile'))
|
this.approvalInfoForm.setFieldsValue(pick(this.model.common, 'commitText', 'commitFile'))
|
||||||
}
|
}
|
||||||
// this.$nextTick(() => {
|
|
||||||
//
|
|
||||||
// })
|
|
||||||
// 初始化业务基本信息的申请类型和项目类别,分开赋值是因为项目类别会没有下拉数据无法回显
|
// 初始化业务基本信息的申请类型和项目类别,分开赋值是因为项目类别会没有下拉数据无法回显
|
||||||
const baseInfoForm = {}
|
const baseInfoForm = {}
|
||||||
baseInfoForm.applicationCategory = this.model.dataList[0].applicationCategory
|
baseInfoForm.applicationCategory = this.model.dataList[0].applicationCategory
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<a-spin :spinning="loading">
|
||||||
<a-form-model :model="formInline" v-if="isFormInline" class="form-add" :rules="rules" ref="ruleForm">
|
<a-form-model :model="formInline" v-if="isFormInline" class="form-add" :rules="rules" ref="ruleForm">
|
||||||
<!-- 基础信息部分 -->
|
<!-- 基础信息部分 -->
|
||||||
<div class="collapsible-panel-form">
|
<div class="collapsible-panel-form">
|
||||||
@@ -118,7 +119,7 @@
|
|||||||
:disabledSourceSearch="true"
|
:disabledSourceSearch="true"
|
||||||
type="radio"
|
type="radio"
|
||||||
v-model="formInline.originEnStandardNo"
|
v-model="formInline.originEnStandardNo"
|
||||||
@nameChange="nameChange"/>
|
@listChange="listChange"/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
<!-- 企标名称 -->
|
<!-- 企标名称 -->
|
||||||
@@ -591,6 +592,7 @@
|
|||||||
<!-- 上传文件弹框 -->
|
<!-- 上传文件弹框 -->
|
||||||
<upload-file ref="uploadFile" :file-max-size="fileMaxSize" @change="uploadFileChange" :return-url="false" :disabled="disabled"></upload-file>
|
<upload-file ref="uploadFile" :file-max-size="fileMaxSize" @change="uploadFileChange" :return-url="false" :disabled="disabled"></upload-file>
|
||||||
</a-form-model>
|
</a-form-model>
|
||||||
|
</a-spin>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@@ -601,9 +603,8 @@ import StandardSelection from '@/components/selection/StandardSelection'
|
|||||||
import UserSelection from '@/components/selection/UserSelection'
|
import UserSelection from '@/components/selection/UserSelection'
|
||||||
import UploadFile from '@/components/UploadFile'
|
import UploadFile from '@/components/UploadFile'
|
||||||
import TreeSelection from '@/components/selection/TreeSelection'
|
import TreeSelection from '@/components/selection/TreeSelection'
|
||||||
import { getFormDictTreeList } from '@/api/api'
|
|
||||||
import { getEnStandardNo } from '@/api/workCenter'
|
import { getEnStandardNo } from '@/api/workCenter'
|
||||||
import { getTreeList } from '../../../../api/enterpriseStandardLibraryApi'
|
import { getEnterpriseStandardInfoById, getTreeList } from '@/api/enterpriseStandardLibraryApi'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'ApprovalBaseInfo',
|
name: 'ApprovalBaseInfo',
|
||||||
@@ -668,6 +669,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
StandardSource,
|
StandardSource,
|
||||||
ProjectType,
|
ProjectType,
|
||||||
|
loading: false,
|
||||||
standardSystemOptions: [], // 标准体系下拉框数据
|
standardSystemOptions: [], // 标准体系下拉框数据
|
||||||
formInline: {},
|
formInline: {},
|
||||||
isFormInline: true,
|
isFormInline: true,
|
||||||
@@ -921,9 +923,49 @@ export default {
|
|||||||
this.$set(this.retractableFlag, module, !this.retractableFlag[module])
|
this.$set(this.retractableFlag, module, !this.retractableFlag[module])
|
||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
},
|
},
|
||||||
// 标准选择组件返回标准名称的回调
|
// 标准选择组件完成返回标准列表
|
||||||
nameChange (value) {
|
listChange (value) {
|
||||||
this.formInline.originEnStandardName = value
|
this.loading = true
|
||||||
|
// 企标名称
|
||||||
|
this.formInline.originEnStandardName = value[0].standardName
|
||||||
|
// 根据返回的id查询企标数据
|
||||||
|
getEnterpriseStandardInfoById({ id: value[0].id, type: '2' }).then(res => {
|
||||||
|
if (res.success) {
|
||||||
|
const result = res.result
|
||||||
|
// 标准英文名称
|
||||||
|
this.formInline.enStandardEnglishName = result.standard_english_name
|
||||||
|
// 标准体系
|
||||||
|
this.formInline.enStandardSystem = result.standard_system ? result.standard_system.split(',').map(item => {
|
||||||
|
return { value: item }
|
||||||
|
}) : []
|
||||||
|
console.log(this.formInline.standardSystem)
|
||||||
|
// 标准等级分类
|
||||||
|
this.formInline.enStandardClassification = result.grade_classification
|
||||||
|
// 编制说明
|
||||||
|
this.formInline.compilationDescription = result.comp_illustration
|
||||||
|
// 零部件名称
|
||||||
|
this.formInline.componentName = result.part_name
|
||||||
|
this.formInline.componentName_dictText = result.part_name_dictText
|
||||||
|
// 授权部门
|
||||||
|
this.formInline.authDept = result.auth_dept
|
||||||
|
// 主起草人
|
||||||
|
this.formInline.mainDraftingUser = result.main_drafting_user
|
||||||
|
this.formInline.mainDraftingUser_dictText = result.main_drafting_user_dictText
|
||||||
|
// 主起草单位
|
||||||
|
this.formInline.mainDraftingUnit = result.main_drafting_unit
|
||||||
|
// 起草单位负责人
|
||||||
|
this.formInline.mainDraftingUnitResponsiblePerson = result.main_drafting_unit_responsible_person
|
||||||
|
this.formInline.mainDraftingUnitResponsiblePerson_dictText = result.main_drafting_unit_responsible_person_dictText
|
||||||
|
// 标准推进人
|
||||||
|
this.formInline.standardPromoter = result.standard_promoter
|
||||||
|
this.formInline.standardPromoter_dictText = result.standard_promoter_dictText
|
||||||
|
// 配合单位
|
||||||
|
this.formInline.cooperationUnit = result.cooperation_unit
|
||||||
|
this.formInline = Object.assign({}, this.formInline)
|
||||||
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.loading = false
|
||||||
|
})
|
||||||
},
|
},
|
||||||
// 零部件名称选择完成的回调
|
// 零部件名称选择完成的回调
|
||||||
treeSelectNameChange (value, fieldName) {
|
treeSelectNameChange (value, fieldName) {
|
||||||
|
|||||||
Reference in New Issue
Block a user