[update] 修改企标制修订流程
This commit is contained in:
@@ -75,6 +75,8 @@ const enStandardEditAgree = (params) => postAction('', params)
|
|||||||
const enStandardEditReject = (params) => postAction('', params)
|
const enStandardEditReject = (params) => postAction('', params)
|
||||||
// 根据id查流程数据
|
// 根据id查流程数据
|
||||||
const enStandardEditGetDataById = (taskId, params) => getAction(`/${taskId}`, params)
|
const enStandardEditGetDataById = (taskId, params) => getAction(`/${taskId}`, params)
|
||||||
|
// 草稿的办理回显数据
|
||||||
|
const enStandardEditGetDataDraft = (params) => getAction('', params)
|
||||||
|
|
||||||
// 企标更改流程
|
// 企标更改流程
|
||||||
// 保存
|
// 保存
|
||||||
@@ -383,6 +385,7 @@ export {
|
|||||||
enStandardEditAgree,
|
enStandardEditAgree,
|
||||||
enStandardEditReject,
|
enStandardEditReject,
|
||||||
enStandardEditGetDataById,
|
enStandardEditGetDataById,
|
||||||
|
enStandardEditGetDataDraft,
|
||||||
|
|
||||||
enStandardChangeSave,
|
enStandardChangeSave,
|
||||||
enStandardChangeApproval,
|
enStandardChangeApproval,
|
||||||
|
|||||||
@@ -437,6 +437,28 @@ export const EsRevisionPlanStandardizationInitNodes = new EsEnums({
|
|||||||
standardizationSumUp: { text: '标准化归档', value: 'sid-482034AD-DB3C-4A93-9E0D-B8834F4767F0' }
|
standardizationSumUp: { text: '标准化归档', value: 'sid-482034AD-DB3C-4A93-9E0D-B8834F4767F0' }
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// 企标制修订流程
|
||||||
|
export const EsRevisionNodes = new EsEnums({
|
||||||
|
mainDrafterSend: { text: '主起草人起草分发', value: '' },
|
||||||
|
otherDrafterUploadStandard: { text: '其他起草人上传企标', value: '' },
|
||||||
|
mainDrafterAllUploadMinute: { text: '主起草人汇总上传会议纪要', value: '' },
|
||||||
|
standardizationAudit: { text: '标准化审核', value: '' },
|
||||||
|
scorerMark: { text: '评分人打分', value: '' },
|
||||||
|
standardizationConfirmIsStartAdvice: { text: '标准化确认是否开启征求意见', value: '' },
|
||||||
|
contactSend: { text: '部所联络人下发', value: '' },
|
||||||
|
takeAdviceObjectEnterAdvice: { text: '征求意见对象填写意见', value: '' },
|
||||||
|
contactAll: { text: '部所联络人汇总数据', value: '' },
|
||||||
|
contactLeaderApproval: { text: '部门联络人主管级领导审批', value: '' },
|
||||||
|
mainDrafterAll: { text: '主起草人汇总', value: '' },
|
||||||
|
mainDrafterUploadMinute: { text: '主起草人上传会议纪要', value: '' },
|
||||||
|
otherDrafterProofread: { text: '其他起草人校对', value: '' },
|
||||||
|
leaderApproval: { text: '主管级领导审批', value: '' },
|
||||||
|
standardizationApproval: { text: '标准化审批', value: '' },
|
||||||
|
relatedDeptLeaderCountersign: { text: '相关部门领导会签', value: '' },
|
||||||
|
allEngineerApproval: { text: '总工程师审批', value: '' },
|
||||||
|
mainDrafterPublish: { text: '主起草人发布', value: '' }
|
||||||
|
})
|
||||||
|
|
||||||
// 企标更改流程
|
// 企标更改流程
|
||||||
export const EsChangeNodes = new EsEnums({
|
export const EsChangeNodes = new EsEnums({
|
||||||
mainDrafterStart: { text: '主起草人发起', value: 'sid-030A34BF-65B2-460C-BCAB-4BFEE0F77987' },
|
mainDrafterStart: { text: '主起草人发起', value: 'sid-030A34BF-65B2-460C-BCAB-4BFEE0F77987' },
|
||||||
|
|||||||
+73
-28
@@ -171,11 +171,12 @@ import MainDrafterCollectUploadMinuteBaseInfo from './modules/MainDrafterCollect
|
|||||||
import MainDrafterUploadMinuteBaseInfo from './modules/MainDrafterUploadMinuteBaseInfo'
|
import MainDrafterUploadMinuteBaseInfo from './modules/MainDrafterUploadMinuteBaseInfo'
|
||||||
import OtherDrafterProofreadBaseInfo from './modules/OtherDrafterProofreadBaseInfo'
|
import OtherDrafterProofreadBaseInfo from './modules/OtherDrafterProofreadBaseInfo'
|
||||||
import MainDrafterPublishBaseInfo from './modules/MainDrafterPublishBaseInfo'
|
import MainDrafterPublishBaseInfo from './modules/MainDrafterPublishBaseInfo'
|
||||||
import { ProcessKey } from '../../../enums/commonEnums'
|
import { ProcessKey, EsRevisionNodes } from '../../../enums/commonEnums'
|
||||||
import {
|
import {
|
||||||
enStandardEditAgree,
|
enStandardEditAgree,
|
||||||
enStandardEditApproval,
|
enStandardEditApproval,
|
||||||
enStandardEditGetDataById,
|
enStandardEditGetDataById,
|
||||||
|
enStandardEditGetDataDraft,
|
||||||
enStandardEditReject,
|
enStandardEditReject,
|
||||||
enStandardEditSave,
|
enStandardEditSave,
|
||||||
enStandardEditTurnTo
|
enStandardEditTurnTo
|
||||||
@@ -212,43 +213,61 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
// 初始化节点
|
// 初始化节点
|
||||||
const taskName = this.$route.query.taskName
|
const nodeId = this.$route.query.nodeId
|
||||||
if (taskName) {
|
if (nodeId) {
|
||||||
if (taskName === '主起草人起草分发') {
|
if (nodeId === EsRevisionNodes.mainDrafterSend.value) {
|
||||||
|
// 主起草人起草分发
|
||||||
this.currentNode = 1
|
this.currentNode = 1
|
||||||
} else if (taskName === '其他起草人上传企标') {
|
} else if (nodeId === EsRevisionNodes.otherDrafterUploadStandard.value) {
|
||||||
|
// 其他起草人上传企标
|
||||||
this.currentNode = 2
|
this.currentNode = 2
|
||||||
} else if (taskName === '主起草人汇总上传会议纪要') {
|
} else if (nodeId === EsRevisionNodes.mainDrafterAllUploadMinute.value) {
|
||||||
|
// 主起草人汇总上传会议纪要
|
||||||
this.currentNode = 3
|
this.currentNode = 3
|
||||||
} else if (taskName === '标准化审核') {
|
} else if (nodeId === EsRevisionNodes.standardizationAudit.value) {
|
||||||
|
// 标准化审核
|
||||||
this.currentNode = 4
|
this.currentNode = 4
|
||||||
} else if (taskName === '评分人评分') {
|
} else if (nodeId === EsRevisionNodes.scorerMark.value) {
|
||||||
|
// 评分人打分
|
||||||
this.currentNode = 5
|
this.currentNode = 5
|
||||||
} else if (taskName === '标准化确认是否开启征求意见') {
|
} else if (nodeId === EsRevisionNodes.standardizationConfirmIsStartAdvice.value) {
|
||||||
|
// 标准化确认是否开启征求意见
|
||||||
this.currentNode = 6
|
this.currentNode = 6
|
||||||
} else if (taskName === '部所联络人下发') {
|
} else if (nodeId === EsRevisionNodes.contactSend.value) {
|
||||||
|
// 部所联络人下发
|
||||||
this.currentNode = 7
|
this.currentNode = 7
|
||||||
} else if (taskName === '征求意见对象填写意见') {
|
} else if (nodeId === EsRevisionNodes.takeAdviceObjectEnterAdvice.value) {
|
||||||
|
// 征求意见对象填写意见
|
||||||
this.currentNode = 8
|
this.currentNode = 8
|
||||||
} else if (taskName === '部所联络人汇总数据') {
|
} else if (nodeId === EsRevisionNodes.contactAll.value) {
|
||||||
|
// 部所联络人汇总数据
|
||||||
this.currentNode = 9
|
this.currentNode = 9
|
||||||
} else if (taskName === '部门联络人主管级领导审批') {
|
} else if (nodeId === EsRevisionNodes.contactLeaderApproval.value) {
|
||||||
|
// 部门联络人主管级领导审批
|
||||||
this.currentNode = 10
|
this.currentNode = 10
|
||||||
} else if (taskName === '主起草人汇总') {
|
} else if (nodeId === EsRevisionNodes.mainDrafterAll.value) {
|
||||||
|
// 主起草人汇总
|
||||||
this.currentNode = 11
|
this.currentNode = 11
|
||||||
} else if (taskName === '主起草人上传会议纪要') {
|
} else if (nodeId === EsRevisionNodes.mainDrafterUploadMinute.value) {
|
||||||
|
// 主起草人上传会议纪要
|
||||||
this.currentNode = 12
|
this.currentNode = 12
|
||||||
} else if (taskName === '其他起草人校对') {
|
} else if (nodeId === EsRevisionNodes.otherDrafterProofread.value) {
|
||||||
|
// 其他起草人校对
|
||||||
this.currentNode = 13
|
this.currentNode = 13
|
||||||
} else if (taskName === '主管级领导审批') {
|
} else if (nodeId === EsRevisionNodes.leaderApproval.value) {
|
||||||
|
// 主管级领导审批
|
||||||
this.currentNode = 14
|
this.currentNode = 14
|
||||||
} else if (taskName === '标准化审批') {
|
} else if (nodeId === EsRevisionNodes.standardizationApproval.value) {
|
||||||
|
// 标准化审批
|
||||||
this.currentNode = 15
|
this.currentNode = 15
|
||||||
} else if (taskName === '相关部门领导会签') {
|
} else if (nodeId === EsRevisionNodes.relatedDeptLeaderCountersign.value) {
|
||||||
|
// 相关部门领导会签
|
||||||
this.currentNode = 16
|
this.currentNode = 16
|
||||||
} else if (taskName === '总工程师审批') {
|
} else if (nodeId === EsRevisionNodes.allEngineerApproval.value) {
|
||||||
|
// 总工程师审批
|
||||||
this.currentNode = 17
|
this.currentNode = 17
|
||||||
} else if (taskName === '主起草人发布') {
|
} else if (nodeId === EsRevisionNodes.mainDrafterPublish.value) {
|
||||||
|
// 主起草人发布
|
||||||
this.currentNode = 18
|
this.currentNode = 18
|
||||||
} else {
|
} else {
|
||||||
// 预留加签节点
|
// 预留加签节点
|
||||||
@@ -259,19 +278,34 @@ export default {
|
|||||||
this.getPersonInfoStructure(ProcessKey.ES_EDIT.value, () => {
|
this.getPersonInfoStructure(ProcessKey.ES_EDIT.value, () => {
|
||||||
if (this.$route.query.processInstanceId) {
|
if (this.$route.query.processInstanceId) {
|
||||||
if (this.currentNode === 1) {
|
if (this.currentNode === 1) {
|
||||||
|
this.disabled = false
|
||||||
this.initPersonInfoData(true)
|
this.initPersonInfoData(true)
|
||||||
} else {
|
} else {
|
||||||
|
this.disabled = true
|
||||||
|
// 如果不是第一个节点,人员信息全部不可选
|
||||||
this.initPersonInfoData(false)
|
this.initPersonInfoData(false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
if (this.$route.query.taskId) {
|
if (this.$route.query.taskId && !this.$route.query.draftId) {
|
||||||
this.currentNodeName = this.$route.query.taskName
|
|
||||||
// 有流程id说明是从流程中心来的,需要初始化数据
|
// 有流程id说明是从流程中心来的,需要初始化数据
|
||||||
this.getProcessData(this.$route.query.taskId)
|
this.getProcessData('todo', { taskId: this.$route.query.taskId })
|
||||||
|
}
|
||||||
|
if (this.$route.query.draftId) {
|
||||||
|
// 有草稿id,说明是从流程中心-草稿来的,需要初始化数据
|
||||||
|
this.getProcessData('draft', { draftId: this.$route.query.draftId, projectId: this.$route.query.projectId })
|
||||||
|
}
|
||||||
|
if (this.$route.query.taskName) {
|
||||||
|
// 说明是已发起流程
|
||||||
|
this.currentNodeName = this.$route.query.taskName
|
||||||
} else {
|
} else {
|
||||||
this.currentNodeName = '主起草人起草分发'
|
this.currentNodeName = '主起草人起草分发'
|
||||||
}
|
}
|
||||||
|
// 需要能判断是自动发起还是手动发起??
|
||||||
|
// if (this.currentNode === 1 && this.$route.query.taskId) {
|
||||||
|
// // 有任务id说明是从待办进来的至少是自动发起
|
||||||
|
// this.flowInitType = 'auto'
|
||||||
|
// }
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
@@ -333,15 +367,26 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 根据流程id获取数据并回显
|
// 根据流程id获取数据并回显
|
||||||
getProcessData (taskId) {
|
getProcessData (type, param) {
|
||||||
enStandardEditGetDataById(taskId).then(res => {
|
let func
|
||||||
|
let params = {}
|
||||||
|
if (type === 'todo') {
|
||||||
|
func = enStandardEditGetDataById
|
||||||
|
params = param.taskId
|
||||||
|
} else {
|
||||||
|
func = enStandardEditGetDataDraft
|
||||||
|
params = param
|
||||||
|
}
|
||||||
|
func(params).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.model = res.result
|
this.model = res.result
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
// 初始化流程信息
|
// 初始化流程信息
|
||||||
this.processInfoForm.setFieldsValue(pick(this.model[0], 'prcName', 'dueTime', 'prcMes'))
|
this.processInfoForm.setFieldsValue(pick(this.model[0], 'prcName', 'dueTime', 'prcMes'))
|
||||||
// 初始化流程审批信息,todo:需要判断是不是草稿进来的,草稿进来的才回显审批信息
|
// 初始化流程审批信息,草稿进来的才回显审批信息
|
||||||
// this.approvalInfoForm.setFieldsValue(pick(this.model[0], 'commitText', 'commitFile'))
|
if (type === 'draft') {
|
||||||
|
this.approvalInfoForm.setFieldsValue(pick(this.model.common, 'commitText', 'commitFile'))
|
||||||
|
}
|
||||||
})
|
})
|
||||||
// 初始化业务基本信息中组件内容
|
// 初始化业务基本信息中组件内容
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user