diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts
index 671ca353..45da96b8 100644
--- a/src/router/modules/remaining.ts
+++ b/src/router/modules/remaining.ts
@@ -317,6 +317,42 @@ const remainingRouter: AppRouteRecordRaw[] = [
title: '查看 OA 请假',
activeMenu: 'bpm/oa/leave/detail'
}
+ },
+ {
+ path: '/bpm/task/done',
+ component: () => import('@/views/bpm/task/done/index.vue'),
+ name: 'TaskDone',
+ meta: {
+ noCache: true,
+ hidden: true,
+ canTo: true,
+ title: '已办任务',
+ activeMenu: 'bpm/task/done/index'
+ }
+ },
+ {
+ path: '/bpm/task/todo',
+ component: () => import('@/views/bpm/task/todo/index.vue'),
+ name: 'TaskTodo',
+ meta: {
+ noCache: true,
+ hidden: true,
+ canTo: true,
+ title: '代办任务',
+ activeMenu: 'bpm/task/todo/index'
+ }
+ },
+ {
+ path: '/bpm/processInstance',
+ component: () => import('@/views/bpm/processInstance/index.vue'),
+ name: 'processInstance',
+ meta: {
+ noCache: true,
+ hidden: true,
+ canTo: true,
+ title: '流程办理',
+ activeMenu: 'bpm/processInstance/index'
+ }
}
]
},
diff --git a/src/types/auto-components.d.ts b/src/types/auto-components.d.ts
index 8b5de138..b90b36ef 100644
--- a/src/types/auto-components.d.ts
+++ b/src/types/auto-components.d.ts
@@ -24,9 +24,6 @@ declare module '@vue/runtime-core' {
DocAlert: typeof import('./../components/DocAlert/index.vue')['default']
Echart: typeof import('./../components/Echart/src/Echart.vue')['default']
Editor: typeof import('./../components/Editor/src/Editor.vue')['default']
- ElAlert: typeof import('element-plus/es')['ElAlert']
- ElAutoResizer: typeof import('element-plus/es')['ElAutoResizer']
- ElAvatar: typeof import('element-plus/es')['ElAvatar']
ElBadge: typeof import('element-plus/es')['ElBadge']
ElButton: typeof import('element-plus/es')['ElButton']
ElButtonGroup: typeof import('element-plus/es')['ElButtonGroup']
@@ -56,34 +53,25 @@ declare module '@vue/runtime-core' {
ElForm: typeof import('element-plus/es')['ElForm']
ElFormItem: typeof import('element-plus/es')['ElFormItem']
ElIcon: typeof import('element-plus/es')['ElIcon']
- ElImage: typeof import('element-plus/es')['ElImage']
ElImageViewer: typeof import('element-plus/es')['ElImageViewer']
ElInput: typeof import('element-plus/es')['ElInput']
- ElInputNumber: typeof import('element-plus/es')['ElInputNumber']
ElLink: typeof import('element-plus/es')['ElLink']
ElOption: typeof import('element-plus/es')['ElOption']
ElPagination: typeof import('element-plus/es')['ElPagination']
ElPopover: typeof import('element-plus/es')['ElPopover']
- ElRadio: typeof import('element-plus/es')['ElRadio']
- ElRadioButton: typeof import('element-plus/es')['ElRadioButton']
- ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
ElRow: typeof import('element-plus/es')['ElRow']
ElScrollbar: typeof import('element-plus/es')['ElScrollbar']
ElSelect: typeof import('element-plus/es')['ElSelect']
ElSkeleton: typeof import('element-plus/es')['ElSkeleton']
- ElSpace: typeof import('element-plus/es')['ElSpace']
ElSwitch: typeof import('element-plus/es')['ElSwitch']
ElTable: typeof import('element-plus/es')['ElTable']
ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
- ElTableV2: typeof import('element-plus/es')['ElTableV2']
ElTabPane: typeof import('element-plus/es')['ElTabPane']
ElTabs: typeof import('element-plus/es')['ElTabs']
ElTag: typeof import('element-plus/es')['ElTag']
ElTimeline: typeof import('element-plus/es')['ElTimeline']
ElTimelineItem: typeof import('element-plus/es')['ElTimelineItem']
ElTooltip: typeof import('element-plus/es')['ElTooltip']
- ElTree: typeof import('element-plus/es')['ElTree']
- ElTreeSelect: typeof import('element-plus/es')['ElTreeSelect']
ElUpload: typeof import('element-plus/es')['ElUpload']
Error: typeof import('./../components/Error/src/Error.vue')['default']
FlowCondition: typeof import('./../components/bpmnProcessDesigner/package/penal/flow-condition/FlowCondition.vue')['default']
diff --git a/src/views/bpm/processInstance/index.vue b/src/views/bpm/processInstance/index.vue
index 0d153cfb..9f43d087 100644
--- a/src/views/bpm/processInstance/index.vue
+++ b/src/views/bpm/processInstance/index.vue
@@ -1,64 +1,215 @@
-
-
-
-
-
+
+
+
-
-
-
-
-
-
-
-
- {{ task.name }}
-
-
-
-
-
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+ 发起流程
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ task.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 详情
+ 取消
+
+
+
+
+
diff --git a/src/views/bpm/processInstance/process.data.ts b/src/views/bpm/processInstance/process.data.ts
deleted file mode 100644
index 317e143d..00000000
--- a/src/views/bpm/processInstance/process.data.ts
+++ /dev/null
@@ -1,94 +0,0 @@
-import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas'
-
-const { t } = useI18n() // 国际化
-
-// CrudSchema
-const crudSchemas = reactive({
- primaryKey: 'id',
- primaryType: null,
- primaryTitle: '编号',
- action: true,
- actionWidth: '200px',
- columns: [
- {
- title: '编号',
- field: 'id',
- table: {
- width: 320
- }
- },
- {
- title: '流程名',
- field: 'name',
- isSearch: true
- },
- {
- title: '所属流程',
- field: 'processDefinitionId',
- isSearch: true,
- isTable: false
- },
- {
- title: '流程分类',
- field: 'category',
- dictType: DICT_TYPE.BPM_MODEL_CATEGORY,
- dictClass: 'number',
- isSearch: true,
- table: {
- slots: {
- default: 'category_default'
- }
- }
- },
- {
- title: '当前审批任务',
- field: 'tasks',
- table: {
- width: 140,
- slots: {
- default: 'tasks_default'
- }
- }
- },
- {
- title: t('common.status'),
- field: 'status',
- dictType: DICT_TYPE.BPM_PROCESS_INSTANCE_STATUS,
- dictClass: 'number',
- isSearch: true
- },
- {
- title: '结果',
- field: 'result',
- dictType: DICT_TYPE.BPM_PROCESS_INSTANCE_RESULT,
- dictClass: 'number',
- isSearch: true
- },
- {
- title: '提交时间',
- field: 'createTime',
- formatter: 'formatDate',
- table: {
- width: 180
- },
- isForm: false,
- isSearch: true,
- search: {
- show: true,
- itemRender: {
- name: 'XDataTimePicker'
- }
- }
- },
- {
- title: '结束时间',
- field: 'endTime',
- formatter: 'formatDate',
- table: {
- width: 180
- },
- isForm: false
- }
- ]
-})
-export const { allSchemas } = useVxeCrudSchemas(crudSchemas)
diff --git a/src/views/bpm/task/todo/index.vue b/src/views/bpm/task/todo/index.vue
index bc21c597..f43f1ee3 100644
--- a/src/views/bpm/task/todo/index.vue
+++ b/src/views/bpm/task/todo/index.vue
@@ -1,31 +1,113 @@
-
-
- 激活
- 挂起
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 激活
+ 挂起
+
+
+
+
+ 审批进度
+
+
+
+
+
-
diff --git a/src/views/bpm/task/todo/todo.data.ts b/src/views/bpm/task/todo/todo.data.ts
deleted file mode 100644
index 419a80fe..00000000
--- a/src/views/bpm/task/todo/todo.data.ts
+++ /dev/null
@@ -1,58 +0,0 @@
-import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas'
-
-const { t } = useI18n() // 国际化
-
-// crudSchemas
-const crudSchemas = reactive({
- primaryKey: 'id',
- primaryType: null,
- action: true,
- searchSpan: 8,
- columns: [
- {
- title: '任务编号',
- field: 'id',
- table: {
- width: 320
- }
- },
- {
- title: '任务名称',
- field: 'name',
- isSearch: true
- },
- {
- title: '所属流程',
- field: 'processInstance.name'
- },
- {
- title: '流程发起人',
- field: 'processInstance.startUserNickname'
- },
- {
- title: t('common.createTime'),
- field: 'createTime',
- formatter: 'formatDate',
- table: {
- width: 180
- },
- isSearch: true,
- search: {
- show: true,
- itemRender: {
- name: 'XDataTimePicker'
- }
- }
- },
- {
- title: '任务状态',
- field: 'suspensionState',
- table: {
- slots: {
- default: 'suspensionState_default'
- }
- }
- }
- ]
-})
-export const { allSchemas } = useVxeCrudSchemas(crudSchemas)