[update] 联调企标计划立项变更流程,画企标复审流程页面
This commit is contained in:
@@ -53,7 +53,7 @@
|
||||
<!-- 业务基本信息 -->
|
||||
<div class="process-part-title">{{ $t('basicServiceInformation') }}</div>
|
||||
<!-- 节点1、主起草人发起 -->
|
||||
<main-drafter-init-base-info v-if="currentNode === 1" ref="baseInfoRef"></main-drafter-init-base-info>
|
||||
<main-drafter-init-base-info v-if="currentNode === 1" ref="baseInfoRef" @processNameChange="processNameChange"></main-drafter-init-base-info>
|
||||
<!-- 节点2、相关人员校对 -->
|
||||
<!-- 节点3、起草人主管级领导审批 -->
|
||||
<!-- 节点4、标准化审批 -->
|
||||
@@ -122,7 +122,7 @@ import {
|
||||
enStandardChangeAgree,
|
||||
enStandardChangeReject,
|
||||
enStandardChangeTurnTo,
|
||||
getProcessDataById
|
||||
enStandardChangeGetDataById
|
||||
} from '@/api/workCenter'
|
||||
import MainDrafterInitBaseInfo from './modules/MainDrafterInitBaseInfo'
|
||||
import ApproveBaseInfo from './modules/ApproveBaseInfo'
|
||||
@@ -257,7 +257,7 @@ export default {
|
||||
methods: {
|
||||
// 根据流程id获取数据并回显
|
||||
getProcessData (processId) {
|
||||
getProcessDataById({ processInstanceId: processId }).then(res => {
|
||||
enStandardChangeGetDataById({ processInstanceId: processId }).then(res => {
|
||||
if (res.success) {
|
||||
this.model = res.result
|
||||
this.$nextTick(() => {
|
||||
|
||||
@@ -347,12 +347,72 @@ export default {
|
||||
default: false
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
// 企标编号监视
|
||||
'formInline.enStandardNo' (value) {
|
||||
this.$emit('processNameChange', (value || '') + '-' + (this.formInline.enStandardName || '') + '-' + '企标更改')
|
||||
},
|
||||
// 企标名称监视
|
||||
'formInline.enStandardName' (value) {
|
||||
this.$emit('processNameChange', (this.formInline.enStandardNo || '') + '-' + (value || '') + '-' + '企标更改')
|
||||
}
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
StandardSource,
|
||||
standardSystemOptions: [], // 标准体系下拉框数据
|
||||
partNameOptions: [], // 零部件名称下拉框数据
|
||||
formInline: {}
|
||||
formInline: {},
|
||||
rules: {
|
||||
// 企标编号
|
||||
enStandardNo: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('workCenter.enterpriseInitChangePlan.enterpriseStandardNum') + this.$t('cannotEmpty'),
|
||||
trigger: 'change'
|
||||
}
|
||||
],
|
||||
// 标准等级分类
|
||||
enStandardClassification: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('workCenter.enterpriseInitChangePlan.standardGradeClassification') + this.$t('cannotEmpty'),
|
||||
trigger: 'change'
|
||||
}
|
||||
],
|
||||
// 标准体系
|
||||
enStandardSystem: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('workCenter.enterpriseInitChangePlan.standardSystem') + this.$t('cannotEmpty'),
|
||||
trigger: 'change'
|
||||
}
|
||||
],
|
||||
// 发布日期
|
||||
releaseDate: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('workCenter.enStandardChange.releaseDate') + this.$t('cannotEmpty'),
|
||||
trigger: ['change', 'blur']
|
||||
}
|
||||
],
|
||||
// 实施日期
|
||||
materialDate: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('workCenter.enStandardChange.materialDate') + this.$t('cannotEmpty'),
|
||||
trigger: ['change', 'blur']
|
||||
}
|
||||
],
|
||||
// 零部件名称
|
||||
componentName: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('workCenter.enterpriseInitChangePlan.partName') + this.$t('cannotEmpty'),
|
||||
trigger: 'change'
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
@@ -381,6 +441,25 @@ export default {
|
||||
// 选完企标编号了,需要回显内容
|
||||
listChange (value) {
|
||||
console.log(value)
|
||||
// 企标名称
|
||||
this.formInline.enStandardName = value[0].standardName
|
||||
// 标准等级分类
|
||||
// this.formInline.enStandardClassification = value[0].
|
||||
// 标准体系
|
||||
// 标准英文名称
|
||||
// 发布日期
|
||||
// 实施日期
|
||||
// 是否试行
|
||||
// 试行周期
|
||||
// 零部件名称
|
||||
// 主起草人
|
||||
// 主起草单位
|
||||
// 标准适用范围
|
||||
// 代替标准号
|
||||
// 引用标准
|
||||
// 关联文件
|
||||
// 采标程度
|
||||
// 采用国际标准号
|
||||
},
|
||||
// 选择用户得到用户名
|
||||
userSelectNameChange (value, fieldName) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div>
|
||||
<base-info-form ref="baseInfoForm" :disabled="disabled"></base-info-form>
|
||||
<base-info-form ref="baseInfoForm" :disabled="disabled" @processNameChange="processNameChange"></base-info-form>
|
||||
<!-- 标准文本 -->
|
||||
<div class="box-title-text form-flex-item">
|
||||
<div class="title-text">
|
||||
@@ -164,6 +164,10 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
// 企标编号和名称修改触发流程名称的修改
|
||||
processNameChange (value) {
|
||||
this.$emit('processNameChange', value)
|
||||
},
|
||||
// 新增修改单
|
||||
handleAdd () {
|
||||
// 不知道左侧要预览哪个文件
|
||||
|
||||
Reference in New Issue
Block a user