update 流程处理非手机节点不能办理

This commit is contained in:
赵霄
2023-12-20 10:18:23 +08:00
parent 9b9578c998
commit 941a7e90b8
5 changed files with 73 additions and 14 deletions
+36 -9
View File
@@ -99,7 +99,11 @@ export const EsInitChangeNodes = new EsEnums({
leaderApproval: { text: '主管级领导审批', value: 'sid-A58C400F-BA13-4125-9B00-45EB45F1A559', isMobile: true },
leaderLeaderApproval: { text: '主管级上一级领导审批', value: 'sid-298A57B6-6658-47C0-94EB-76E3A5790258', isMobile: true },
standardizationApproval: { text: '标准化审批', value: 'sid-06CB29CE-E39F-4CD2-A534-18546DC8C6FB', isMobile: true },
newDraftUnitLeaderLeaderSend: { text: '新起草部门主管级上一级领导下发', value: 'sid-AB70F1CA-8311-4639-B3DA-204EF3332B29', isMobile: true },
newDraftUnitLeaderLeaderSend: {
text: '新起草部门主管级上一级领导下发',
value: 'sid-AB70F1CA-8311-4639-B3DA-204EF3332B29',
isMobile: true
},
newDraftUnitLeaderConfirm: { text: '新起草部门主管级领导确认', value: 'sid-A26EC37C-7C93-4987-9833-363C4E25EC50', isMobile: true },
relevantPersonnelWillSign: { text: '相关人员会签', value: 'sid-7BFD2753-B6CD-4637-8D4B-819903511925', isMobile: true },
mainDrafterCopy: { text: '主起草人抄送', value: 'sid-08D0381A-5C20-4708-9D73-C7EB5C51DB02', isMobile: true }
@@ -212,20 +216,43 @@ export const EsInspectionRectification = new EsEnums({
// 标准征求意见流程
export const ConsultationProcess = new EsEnums({
initiate: { text: '法规工程师发起', value: 'engineer_start', btn: ['save', 'submit'] },
distribute: { text: '各部所主管级领导分发', value: 'depart_leader_start', btn: ['return', 'save', 'submit'] },
moduleOwnerDistribution: { text: '模块负责人分发', value: 'module_owner_start', btn: ['return', 'save', 'submit'] },
distribute: { text: '各部所主管级领导分发', value: 'depart_leader_start', btn: ['return', 'save', 'submit'], isMobile: true },
moduleOwnerDistribution: { text: '模块负责人分发', value: 'module_owner_start', btn: ['return', 'save', 'submit'], isMobile: true },
designEngineerFillIn: { text: '设计工程师填写', value: 'design_engineer', btn: ['return', 'save', 'submit'] },
moduleOwnerSummary: { text: '模块负责人汇总', value: 'module_owner_end', btn: ['return', 'save', 'submit'] },
leaderApproval: { text: '各部所主管级领导审批', value: 'depart_leader_end', btn: ['return', 'agree', 'reject'] },
leaderApproval: { text: '各部所主管级领导审批', value: 'depart_leader_end', btn: ['return', 'agree', 'reject'], isMobile: true },
leaderSummary: { text: '各部所主管级领导汇总', value: 'depart_leader_collect', btn: ['return', 'save', 'submit'] },
regulatoryEngineerApproval: { text: '法规工程师审批', value: 'engineer_end', btn: ['return', 'agree', 'reject'] }
regulatoryEngineerApproval: { text: '法规工程师审批', value: 'engineer_end', btn: ['return', 'agree', 'reject'], isMobile: true }
})
// 法规采购流程节点
export const ProcurementProcessNodes = {
initiate: { text: '申请采购标准法规', value: 'Activity_0fmr3id' },
sponsorLeaderApproval: { text: '发起人主管级领导审批', value: 'Activity_1fr1x5i' },
standardLeaderApproval: { text: '标准化主管级领导审批', value: 'Activity_06jy4oo' },
standardSuperiorLeaderApproval: { text: '标准化主管级上一级领导审批', value: 'Activity_1u5337a' },
regulatoryEngineerConfirmation: { text: '法规工程师确认', value: 'Activity_1q01zfq' }
sponsorLeaderApproval: { text: '发起人主管级领导审批', value: 'Activity_1fr1x5i', isMobile: true },
standardLeaderApproval: { text: '标准化主管级领导审批', value: 'Activity_06jy4oo', isMobile: true },
standardSuperiorLeaderApproval: { text: '标准化主管级上一级领导审批', value: 'Activity_1u5337a', isMobile: true },
regulatoryEngineerConfirmation: { text: '法规工程师确认', value: 'Activity_1q01zfq', isMobile: true }
}
// 标准法规入库/变更流程
export const FGEntryChangeProcessNode = new EsEnums({
initiate: { text: '法规工程师发起', value: 'Activity_16zkjpn', btn: ['save', 'submit'], disabled: false, isMobile: false },
approve: {
text: '法规工程师主管级领导审批',
value: 'Activity_084um6e',
btn: ['return', 'save', 'agree', 'reject'],
isMobile: true
}
})
// 项目合规评估流程节点
export const ProjectComplianceEvaluationProcessNode = new EsEnums({
initiate: { text: '法规工程师发起', value: 'fggcsfq', btn: ['save', 'pre', 'next', 'submit'] },
departLeaderIssued: { text: '各部门主管级领导下发', value: 'gbmzgjldxf', btn: ['return', 'save', 'submit'] },
moduleOwnerIssued: { text: '模块负责人分发', value: 'mkfzrff', btn: ['return', 'save', 'submit'] },
designEngineerEvaluation: { text: '设计工程师评估', value: 'sjgcspg', btn: ['return', 'save', 'submit'] },
moduleOwnerApproval: { text: '模块负责人审批', value: 'mkfzrsp', btn: ['return', 'save', 'agree', 'reject'], isMobile: true },
departLeaderApproval: { text: '各部门主管级领导审批', value: 'gbmzgjldsp', btn: ['return', 'save', 'agree', 'reject'], isMobile: true },
moduleOwnerModification: { text: '模块负责人修改', value: 'mkfzrxg', btn: ['return', 'save', 'agree', 'reject'] },
regulatoryEngineerFiling: { text: '法规工程师归档', value: 'fggcsgd', btn: ['return', 'save', 'submit'] }
})
@@ -143,7 +143,7 @@
<script>
import ProcessCommonLayout from '../../../components/ProcessCommonLayout'
import { ProcessKey } from '../../../enums/commonEnums'
import { ProcessKey, ProjectComplianceEvaluationProcessNode } from '../../../enums/commonEnums'
import ZUpload from '../../../components/ZUpload'
import SelectUser from '../../../components/SelectUser'
import {
@@ -485,6 +485,14 @@ export default {
handleTableChange (pagination) {
this.ipagination = pagination
}
},
// 组件内路由拦截
beforeRouteEnter (to, from, next) {
// 如果不是移动端支持的节点,就跳转NoMobile
if (!ProjectComplianceEvaluationProcessNode.propertyOfValue('isMobile', to.query.nodeId)) {
next({ path: '/noMobile' })
}
next()
}
}
</script>
@@ -657,7 +657,15 @@ export default {
this.contentDetail = text
this.showContentDetail = true
}
}
},
// 组件内路由拦截
beforeRouteEnter (to, from, next) {
// 如果不是移动端支持的节点,就跳转NoMobile
if (!ConsultationProcess[this.nodeEnumsKey].isMobile) {
next({ path: '/noMobile' })
}
next()
},
}
</script>
@@ -136,7 +136,7 @@ import {
agreeStandardECProcess,
rejectStandardECProcess
} from '../../../api/api'
import { FieldType, StandardSource, ProcessKey } from '../../../enums/commonEnums'
import { FieldType, StandardSource, ProcessKey, FGEntryChangeProcessNode } from '../../../enums/commonEnums'
import FileDisplay from '../../../components/FileDisplay'
import SelectUser from '../../../components/SelectUser'
import ZUpload from '../../../components/ZUpload'
@@ -373,7 +373,15 @@ export default {
this.$router.go(-1)
}, 700)
}
}
},
// 组件内路由拦截
beforeRouteEnter (to, from, next) {
// 如果不是移动端支持的节点,就跳转NoMobile
if (!FGEntryChangeProcessNode.propertyOfValue('isMobile', to.query.nodeId)) {
next({ path: '/noMobile' })
}
next()
},
}
</script>
@@ -325,7 +325,15 @@ export default {
this.loading = false
})
}
}
},
// 组件内路由拦截
beforeRouteEnter (to, from, next) {
// 如果不是移动端支持的节点,就跳转NoMobile
if (!ProcurementProcessNodes.propertyOfValue('isMobile', to.query.nodeId)) {
next({ path: '/noMobile' })
}
next()
},
}
</script>