update 未符合项跟踪流程

This commit is contained in:
赵霄
2024-01-08 09:07:00 +08:00
parent ff76fffa2c
commit 9815a7e9fb
2 changed files with 19 additions and 3 deletions
+8
View File
@@ -292,3 +292,11 @@ export const ProjectComplianceEvaluationProcessNode = new EsEnums({
moduleOwnerModification: { text: '模块负责人修改', value: 'mkfzrxg', btn: ['return', 'save', 'agree', 'reject'] },
regulatoryEngineerFiling: { text: '法规工程师归档', value: 'fggcsgd', btn: ['return', 'save', 'submit'] }
})
// 未符合项跟踪流程
export const NoMatchTrackingNodes = new EsEnums({
initial: { text: '法规工程师发起整改', value: 'fggcsfqzg', btn: ['save', 'submit'] },
designEngineer: { text: '设计工程师上传整改材料', value: 'sjgcssczgcl', btn: ['return', 'save', 'submit'] },
directorLevelLeader: { text: '主管级领导审批', value: 'zgjldsp', btn: ['return', 'save', 'agree', 'reject'], isMobile: true },
regulatoryEngineer: { text: '法规工程师审批', value: 'fggcssp', btn: ['return', 'save', 'agree', 'reject'], isMobile: true }
})
@@ -105,7 +105,7 @@
<script>
import ProcessCommonLayout from '../../../components/ProcessCommonLayout'
import { ProcessKey } from '../../../enums/commonEnums'
import { NoMatchTrackingNodes, ProcessKey } from '../../../enums/commonEnums'
import { processTransfer, queryNoMatchTrackingProcess, agreeNoMatchTrackingProcess, rejectNoMatchTrackingProcess } from '../../../api/api'
import ZExpandTable from '../../../components/ZExpandTable'
import SelectUser from '../../../components/SelectUser'
@@ -348,11 +348,19 @@ export default {
this.loading = false
})
}
}
},
// 组件内路由拦截
beforeRouteEnter (to, from, next) {
// 如果不是移动端支持的节点,就跳转NoMobile
if (!NoMatchTrackingNodes.propertyOfValue('isMobile', to.query.nodeId)) {
next({ path: '/noMobile' })
}
next()
},
}
</script>
<style scoped lang="less">
@import '~../../../assets/less/common.less';
</style>
</style>