[update] 企标计划立项、变更流程
This commit is contained in:
+8
-1
@@ -46,6 +46,11 @@ const agreeStandardECProcess = (params) => postAction('/process/fb/processFbEntr
|
||||
// 驳回
|
||||
const rejectStandardECProcess = (params) => postAction('/process/fb/processFbEntryChange/reject', params)
|
||||
|
||||
// 企标立项、变更流程
|
||||
// 初始化数据
|
||||
// 根据流程id获取流程信息
|
||||
const getProcessDataById = (taskId, params) => getAction(`/process/es/initChange/handle/${taskId}`, params)
|
||||
|
||||
export {
|
||||
queryPermissionsByUser,
|
||||
getFormDictTreeList,
|
||||
@@ -63,5 +68,7 @@ export {
|
||||
queryStandardECProcessData,
|
||||
turnToStandardECProcess,
|
||||
agreeStandardECProcess,
|
||||
rejectStandardECProcess
|
||||
rejectStandardECProcess,
|
||||
|
||||
getProcessDataById
|
||||
}
|
||||
|
||||
+168
-191
@@ -40,160 +40,149 @@
|
||||
class="vertical-form-item"/>
|
||||
</van-form>
|
||||
</div>
|
||||
<!-- 业务基本信息 -->
|
||||
<div class="process-part">
|
||||
<div class="process-part-title">{{ $t('basicServiceInformation') }}</div>
|
||||
<van-form
|
||||
@failed="onFailed"
|
||||
@submit="onSubmit"
|
||||
ref="form"
|
||||
input-align="right"
|
||||
error-message-align="right"
|
||||
:readonly="readonly"
|
||||
>
|
||||
<!-- 申请类型 -->
|
||||
<picker-field
|
||||
:label="$t('esInitChange.applicationType')"
|
||||
:placeholder="$t('pleaseSelect')+$t('esInitChange.applicationType')"
|
||||
v-model="baseInfoForm.applicationCategory"
|
||||
readonly
|
||||
:columnData="applicationCategoryData"
|
||||
></picker-field>
|
||||
<!-- 项目类别 -->
|
||||
<picker-field
|
||||
:label="$t('esInitChange.itemCategory')"
|
||||
:placeholder="$t('pleaseSelect')+$t('esInitChange.itemCategory')"
|
||||
v-model="baseInfoForm.projectType"
|
||||
readonly
|
||||
:columnData="projectTypeData"
|
||||
></picker-field>
|
||||
<!-- 制定 -->
|
||||
<template v-if="baseInfoForm.projectType === ProjectType.ENACT.value">
|
||||
<!-- 企标编号 -->
|
||||
<van-field
|
||||
:label="$t('esInitChange.enterpriseStandardNum')"
|
||||
:placeholder="$t('pleaseEnter') + $t('esInitChange.enterpriseStandardNum')"
|
||||
<van-form
|
||||
ref="form"
|
||||
input-align="right"
|
||||
error-message-align="right"
|
||||
:readonly="readonly"
|
||||
>
|
||||
<!-- 业务基本信息 -->
|
||||
<div class="process-part">
|
||||
<div class="process-part-title">{{ $t('basicServiceInformation') }}</div>
|
||||
<!-- 申请类型 -->
|
||||
<picker-field
|
||||
:label="$t('esInitChange.applicationType')"
|
||||
:placeholder="$t('pleaseSelect')+$t('esInitChange.applicationType')"
|
||||
v-model="baseInfoForm.applicationCategory"
|
||||
readonly
|
||||
maxLength="50"
|
||||
v-model="baseInfoForm.newEnStandardNo" />
|
||||
<!-- 企标名称 -->
|
||||
<van-field
|
||||
:label="$t('esInitChange.enterpriseStandardName')"
|
||||
:placeholder="$t('pleaseEnter') + $t('esInitChange.enterpriseStandardName')"
|
||||
:columnData="applicationCategoryData"
|
||||
></picker-field>
|
||||
<!-- 项目类别 -->
|
||||
<picker-field
|
||||
:label="$t('esInitChange.itemCategory')"
|
||||
:placeholder="$t('pleaseSelect')+$t('esInitChange.itemCategory')"
|
||||
v-model="baseInfoForm.projectType"
|
||||
readonly
|
||||
maxLength="50"
|
||||
v-model="baseInfoForm.newEnStandardName" />
|
||||
<!-- 企业标准代号 -->
|
||||
<picker-dict-field
|
||||
:label="$t('esInitChange.enterpriseStandardCode')"
|
||||
:placeholder="$t('pleaseEnter') + $t('esInitChange.enterpriseStandardCode')"
|
||||
dict-code="enterprise_standard_code"
|
||||
readonly
|
||||
v-model="baseInfoForm.enStandardCode" />
|
||||
<!-- 企业名称代号 -->
|
||||
<picker-dict-field
|
||||
:label="$t('esInitChange.enterpriseNameCode')"
|
||||
:placeholder="$t('pleaseEnter') + $t('esInitChange.enterpriseNameCode')"
|
||||
dict-code="enterprise_name_code"
|
||||
readonly
|
||||
v-model="baseInfoForm.enNameCode" />
|
||||
<!-- 标准类别代号 -->
|
||||
<picker-dict-field
|
||||
:label="$t('esInitChange.standardCategoryCode')"
|
||||
:placeholder="$t('pleaseEnter') + $t('esInitChange.standardCategoryCode')"
|
||||
dict-code="standard_category_code"
|
||||
readonly
|
||||
v-model="baseInfoForm.standardCategoryCode" />
|
||||
</template>
|
||||
<!-- 修订 -->
|
||||
<template v-else-if="baseInfoForm.projectType === ProjectType.MODIFY.value">
|
||||
<!-- 企标编号 -->
|
||||
<van-field
|
||||
:label="$t('esInitChange.enterpriseStandardNum')"
|
||||
:placeholder="$t('pleaseEnter') + $t('esInitChange.enterpriseStandardNum')"
|
||||
readonly
|
||||
maxLength="50"
|
||||
v-model="baseInfoForm.originEnStandardNo" />
|
||||
<!-- 企标名称 -->
|
||||
<van-field
|
||||
:label="$t('esInitChange.enterpriseStandardName')"
|
||||
:placeholder="$t('pleaseEnter') + $t('esInitChange.enterpriseStandardName')"
|
||||
readonly
|
||||
maxLength="50"
|
||||
v-model="baseInfoForm.originEnStandardName" />
|
||||
<!-- 新企标编号 -->
|
||||
<van-field
|
||||
:label="$t('esInitChange.newEnterpriseStandardNum')"
|
||||
:placeholder="$t('pleaseEnter') + $t('esInitChange.newEnterpriseStandardNum')"
|
||||
readonly
|
||||
maxLength="50"
|
||||
v-model="baseInfoForm.newEnStandardNo" />
|
||||
<!-- 新企标名称 -->
|
||||
<van-field
|
||||
:label="$t('esInitChange.newEnterpriseStandardName')"
|
||||
:placeholder="$t('pleaseEnter') + $t('esInitChange.newEnterpriseStandardName')"
|
||||
readonly
|
||||
maxLength="50"
|
||||
v-model="baseInfoForm.newEnStandardName" />
|
||||
</template>
|
||||
<!-- 年代号 -->
|
||||
<van-field
|
||||
:label="$t('esInitChange.yearNumber')"
|
||||
:placeholder="$t('pleaseEnter') + $t('esInitChange.yearNumber')"
|
||||
readonly
|
||||
maxLength="50"
|
||||
v-model="baseInfoForm.decadeCode" />
|
||||
<!-- 标准英文名称 -->
|
||||
<van-field
|
||||
:label="$t('esInitChange.standardEnglishName')"
|
||||
:placeholder="$t('pleaseEnter') + $t('esInitChange.standardEnglishName')"
|
||||
readonly
|
||||
maxLength="50"
|
||||
v-model="baseInfoForm.enStandardEnglishName" />
|
||||
<!-- 标准体系 -->
|
||||
<tree-select-multiple
|
||||
:label="$t('esInitChange.standardSystem')"
|
||||
:placeholder="$t('pleaseSelect') + $t('esInitChange.standardSystem')"
|
||||
:list="standardSystemOptions"
|
||||
readonly
|
||||
v-model="baseInfoForm.enStandardSystem"/>
|
||||
<!-- 标准类型 -->
|
||||
<picker-dict-field
|
||||
:label="$t('esInitChange.standardType')"
|
||||
:placeholder="$t('pleaseEnter') + $t('esInitChange.standardType')"
|
||||
dict-code="esp_standard_type"
|
||||
readonly
|
||||
v-model="baseInfoForm.standardType" />
|
||||
<!-- 标准等级分类 -->
|
||||
<picker-dict-field
|
||||
:label="$t('esInitChange.standardGradeClassification')"
|
||||
:placeholder="$t('pleaseEnter') + $t('esInitChange.standardGradeClassification')"
|
||||
dict-code="standard_grade_classify"
|
||||
readonly
|
||||
v-model="baseInfoForm.enStandardClassification" />
|
||||
<!-- 编制说明 -->
|
||||
<van-field
|
||||
:label="$t('esInitChange.compilationIllustration')"
|
||||
:placeholder="$t('pleaseEnter') + $t('esInitChange.compilationIllustration')"
|
||||
readonly
|
||||
v-model="baseInfoForm.compilationDescription" >
|
||||
<template v-slot:input>
|
||||
<file-display :file-ids="baseInfoForm.compilationDescription" />
|
||||
:columnData="projectTypeData"
|
||||
></picker-field>
|
||||
<!-- 制定 -->
|
||||
<template v-if="baseInfoForm.projectType === ProjectType.ENACT.value">
|
||||
<!-- 企标编号 -->
|
||||
<van-field
|
||||
:label="$t('esInitChange.enterpriseStandardNum')"
|
||||
:placeholder="$t('pleaseEnter') + $t('esInitChange.enterpriseStandardNum')"
|
||||
readonly
|
||||
maxLength="50"
|
||||
v-model="baseInfoForm.newEnStandardNo" />
|
||||
<!-- 企标名称 -->
|
||||
<van-field
|
||||
:label="$t('esInitChange.enterpriseStandardName')"
|
||||
:placeholder="$t('pleaseEnter') + $t('esInitChange.enterpriseStandardName')"
|
||||
readonly
|
||||
maxLength="50"
|
||||
v-model="baseInfoForm.newEnStandardName" />
|
||||
<!-- 企业标准代号 -->
|
||||
<picker-dict-field
|
||||
:label="$t('esInitChange.enterpriseStandardCode')"
|
||||
:placeholder="$t('pleaseEnter') + $t('esInitChange.enterpriseStandardCode')"
|
||||
dict-code="enterprise_standard_code"
|
||||
readonly
|
||||
v-model="baseInfoForm.enStandardCode" />
|
||||
<!-- 企业名称代号 -->
|
||||
<picker-dict-field
|
||||
:label="$t('esInitChange.enterpriseNameCode')"
|
||||
:placeholder="$t('pleaseEnter') + $t('esInitChange.enterpriseNameCode')"
|
||||
dict-code="enterprise_name_code"
|
||||
readonly
|
||||
v-model="baseInfoForm.enNameCode" />
|
||||
<!-- 标准类别代号 -->
|
||||
<picker-dict-field
|
||||
:label="$t('esInitChange.standardCategoryCode')"
|
||||
:placeholder="$t('pleaseEnter') + $t('esInitChange.standardCategoryCode')"
|
||||
dict-code="standard_category_code"
|
||||
readonly
|
||||
v-model="baseInfoForm.standardCategoryCode" />
|
||||
</template>
|
||||
</van-field>
|
||||
</van-form>
|
||||
</div>
|
||||
<!-- 完成日期 -->
|
||||
<div class="process-part">
|
||||
<div class="process-part-title">{{ $t('finishDate') }}</div>
|
||||
<van-form
|
||||
@failed="onFailed"
|
||||
@submit="onSubmit"
|
||||
ref="form"
|
||||
input-align="right"
|
||||
error-message-align="right"
|
||||
:readonly="readonly"
|
||||
>
|
||||
<!-- 修订 -->
|
||||
<template v-else-if="baseInfoForm.projectType === ProjectType.MODIFY.value">
|
||||
<!-- 企标编号 -->
|
||||
<van-field
|
||||
:label="$t('esInitChange.enterpriseStandardNum')"
|
||||
:placeholder="$t('pleaseEnter') + $t('esInitChange.enterpriseStandardNum')"
|
||||
readonly
|
||||
maxLength="50"
|
||||
v-model="baseInfoForm.originEnStandardNo" />
|
||||
<!-- 企标名称 -->
|
||||
<van-field
|
||||
:label="$t('esInitChange.enterpriseStandardName')"
|
||||
:placeholder="$t('pleaseEnter') + $t('esInitChange.enterpriseStandardName')"
|
||||
readonly
|
||||
maxLength="50"
|
||||
v-model="baseInfoForm.originEnStandardName" />
|
||||
<!-- 新企标编号 -->
|
||||
<van-field
|
||||
:label="$t('esInitChange.newEnterpriseStandardNum')"
|
||||
:placeholder="$t('pleaseEnter') + $t('esInitChange.newEnterpriseStandardNum')"
|
||||
readonly
|
||||
maxLength="50"
|
||||
v-model="baseInfoForm.newEnStandardNo" />
|
||||
<!-- 新企标名称 -->
|
||||
<van-field
|
||||
:label="$t('esInitChange.newEnterpriseStandardName')"
|
||||
:placeholder="$t('pleaseEnter') + $t('esInitChange.newEnterpriseStandardName')"
|
||||
readonly
|
||||
maxLength="50"
|
||||
v-model="baseInfoForm.newEnStandardName" />
|
||||
</template>
|
||||
<!-- 年代号 -->
|
||||
<van-field
|
||||
:label="$t('esInitChange.yearNumber')"
|
||||
:placeholder="$t('pleaseEnter') + $t('esInitChange.yearNumber')"
|
||||
readonly
|
||||
maxLength="50"
|
||||
v-model="baseInfoForm.decadeCode" />
|
||||
<!-- 标准英文名称 -->
|
||||
<van-field
|
||||
:label="$t('esInitChange.standardEnglishName')"
|
||||
:placeholder="$t('pleaseEnter') + $t('esInitChange.standardEnglishName')"
|
||||
readonly
|
||||
maxLength="50"
|
||||
v-model="baseInfoForm.enStandardEnglishName" />
|
||||
<!-- 标准体系 -->
|
||||
<tree-select-multiple
|
||||
:label="$t('esInitChange.standardSystem')"
|
||||
:placeholder="$t('pleaseSelect') + $t('esInitChange.standardSystem')"
|
||||
:list="standardSystemOptions"
|
||||
readonly
|
||||
v-model="baseInfoForm.enStandardSystem"/>
|
||||
<!-- 标准类型 -->
|
||||
<picker-dict-field
|
||||
:label="$t('esInitChange.standardType')"
|
||||
:placeholder="$t('pleaseEnter') + $t('esInitChange.standardType')"
|
||||
dict-code="esp_standard_type"
|
||||
readonly
|
||||
v-model="baseInfoForm.standardType" />
|
||||
<!-- 标准等级分类 -->
|
||||
<picker-dict-field
|
||||
:label="$t('esInitChange.standardGradeClassification')"
|
||||
:placeholder="$t('pleaseEnter') + $t('esInitChange.standardGradeClassification')"
|
||||
dict-code="standard_grade_classify"
|
||||
readonly
|
||||
v-model="baseInfoForm.enStandardClassification" />
|
||||
<!-- 编制说明 -->
|
||||
<van-field
|
||||
:label="$t('esInitChange.compilationIllustration')"
|
||||
:placeholder="$t('pleaseEnter') + $t('esInitChange.compilationIllustration')"
|
||||
readonly
|
||||
v-model="baseInfoForm.compilationDescription" >
|
||||
<template v-slot:input>
|
||||
<file-display :file-ids="baseInfoForm.compilationDescription" />
|
||||
</template>
|
||||
</van-field>
|
||||
</div>
|
||||
<!-- 完成日期 -->
|
||||
<div class="process-part">
|
||||
<div class="process-part-title">{{ $t('finishDate') }}</div>
|
||||
<!-- 草稿计划完成日期 -->
|
||||
<calendar-field
|
||||
:label="$t('esInitChange.draftPlanFinishDate')"
|
||||
@@ -215,18 +204,10 @@
|
||||
type="date"
|
||||
readonly
|
||||
/>
|
||||
</van-form>
|
||||
</div>
|
||||
<!-- 适用范围 -->
|
||||
<div class="process-part">
|
||||
<div class="process-part-title">{{ $t('rangeOfApplication') }}</div>
|
||||
<van-form
|
||||
@failed="onFailed"
|
||||
@submit="onSubmit"
|
||||
ref="form"
|
||||
input-align="right"
|
||||
error-message-align="right"
|
||||
:readonly="readonly">
|
||||
</div>
|
||||
<!-- 适用范围 -->
|
||||
<div class="process-part">
|
||||
<div class="process-part-title">{{ $t('rangeOfApplication') }}</div>
|
||||
<!-- 零部件名称 -->
|
||||
<van-field
|
||||
:label="$t('esInitChange.partName')"
|
||||
@@ -270,21 +251,13 @@
|
||||
:placeholder="$t('pleaseEnter') + $t('esInitChange.suitUnit')"
|
||||
readonly
|
||||
v-model="baseInfoForm.cooperationUnit_dictText" />
|
||||
</van-form>
|
||||
</div>
|
||||
<!-- 立项说明 -->
|
||||
<div class="process-part">
|
||||
<div class="process-part-title">{{ $t('esInitChange.projectStatement') }}</div>
|
||||
<van-form
|
||||
@failed="onFailed"
|
||||
@submit="onSubmit"
|
||||
ref="form"
|
||||
input-align="right"
|
||||
error-message-align="right"
|
||||
:readonly="readonly">
|
||||
</div>
|
||||
<!-- 立项说明 -->
|
||||
<div class="process-part">
|
||||
<div class="process-part-title">{{ $t('esInitChange.projectStatement') }}</div>
|
||||
<!-- 立项/变更原因 -->
|
||||
<van-field
|
||||
v-model="processInfoForm.changeReason"
|
||||
v-model="baseInfoForm.changeReason"
|
||||
:label="$t('esInitChange.projectApprovalChangeReason')"
|
||||
type="textarea"
|
||||
autosize
|
||||
@@ -296,7 +269,7 @@
|
||||
class="vertical-form-item"/>
|
||||
<!-- 立项背景、立项依据 -->
|
||||
<van-field
|
||||
v-model="processInfoForm.projectBackground"
|
||||
v-model="baseInfoForm.projectBackground"
|
||||
:label="$t('esInitChange.projectBackground')"
|
||||
type="textarea"
|
||||
autosize
|
||||
@@ -308,7 +281,7 @@
|
||||
class="vertical-form-item"/>
|
||||
<!-- 国际、国家及行业同类标准分析 -->
|
||||
<van-field
|
||||
v-model="processInfoForm.similarNaStandardsAnalysis"
|
||||
v-model="baseInfoForm.similarNaStandardsAnalysis"
|
||||
:label="$t('esInitChange.homogeneousStandardAnalysis')"
|
||||
type="textarea"
|
||||
autosize
|
||||
@@ -320,7 +293,7 @@
|
||||
class="vertical-form-item"/>
|
||||
<!-- 企业同类标准对比分析 -->
|
||||
<van-field
|
||||
v-model="processInfoForm.similarEnStandardsAnalysis"
|
||||
v-model="baseInfoForm.similarEnStandardsAnalysis"
|
||||
:label="$t('esInitChange.standardContrastiveAnalysis')"
|
||||
type="textarea"
|
||||
autosize
|
||||
@@ -332,7 +305,7 @@
|
||||
class="vertical-form-item"/>
|
||||
<!-- 立项标准的领先性与必要性 -->
|
||||
<van-field
|
||||
v-model="processInfoForm.standardLeadingNecessity"
|
||||
v-model="baseInfoForm.standardLeadingNecessity"
|
||||
:label="$t('esInitChange.leadershipAndNecessity')"
|
||||
type="textarea"
|
||||
autosize
|
||||
@@ -344,7 +317,7 @@
|
||||
class="vertical-form-item"/>
|
||||
<!-- 立项目的及预期效果等 -->
|
||||
<van-field
|
||||
v-model="processInfoForm.projectExpectedEffects"
|
||||
v-model="baseInfoForm.projectExpectedEffects"
|
||||
:label="$t('esInitChange.initiatedProject')"
|
||||
type="textarea"
|
||||
autosize
|
||||
@@ -363,8 +336,8 @@
|
||||
<file-display :file-ids="baseInfoForm.uploadAttachment" />
|
||||
</template>
|
||||
</van-field>
|
||||
</van-form>
|
||||
</div>
|
||||
</div>
|
||||
</van-form>
|
||||
<!-- 流程审批信息 -->
|
||||
<div class="process-part">
|
||||
<div class="process-part-title">{{ $t('processApprovalInformation') }}</div>
|
||||
@@ -420,7 +393,7 @@ import PickerField from '@/components/PickerField'
|
||||
import PickerDictField from '@/components/PickerDictField'
|
||||
import TreeSelectMultiple from '@/components/TreeSelectMultiple'
|
||||
import FileDisplay from '@/components/FileDisplay'
|
||||
import { getTreeList } from '@/api/api'
|
||||
import { getProcessDataById, getTreeList } from '@/api/api'
|
||||
|
||||
export default {
|
||||
name: 'EnterpriseStandardInitChange',
|
||||
@@ -485,17 +458,12 @@ export default {
|
||||
],
|
||||
standardSystemOptions: [], // 标准体系下拉框数据
|
||||
processInfoForm: {}, // 流程信息表单
|
||||
baseInfoForm: {
|
||||
applicationCategory: 3,
|
||||
projectType: 1,
|
||||
enStandardCode: '1',
|
||||
enStandardSystem: 'adb15f66ce174f7295ab51fbc39c15b8',
|
||||
compilationDescription: '1730504676669747201'
|
||||
} // 业务基本信息
|
||||
baseInfoForm: {} // 业务基本信息
|
||||
}
|
||||
},
|
||||
created () {
|
||||
this.initStandardSystemOptions()
|
||||
this.initData()
|
||||
},
|
||||
methods: {
|
||||
// 获取标准体系下拉框数据
|
||||
@@ -506,6 +474,15 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
initData () {
|
||||
getProcessDataById(this.$route.query.taskId).then(res => {
|
||||
if (res.success) {
|
||||
const result = res.result
|
||||
this.processInfoForm = result.common
|
||||
this.baseInfoForm = result.dataList[0]
|
||||
}
|
||||
})
|
||||
},
|
||||
selectUserNameChange (value, fieldName) {
|
||||
this.processInfoForm[fieldName + '_dictText'] = value
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user