2025-05-08 00:02:13 +08:00
|
|
|
|
<script lang="ts" setup>
|
|
|
|
|
|
import type { BpmProcessInstanceApi } from '#/api/bpm/processInstance';
|
|
|
|
|
|
import type { SystemUserApi } from '#/api/system/user';
|
|
|
|
|
|
|
2025-07-22 19:31:40 +08:00
|
|
|
|
// TODO @jason:业务表单审批时,读取不到界面,参见 https://t.zsxq.com/eif2e
|
2025-05-24 10:51:57 +08:00
|
|
|
|
import { nextTick, onMounted, ref, shallowRef, watch } from 'vue';
|
2025-05-08 00:02:13 +08:00
|
|
|
|
|
|
|
|
|
|
import { Page } from '@vben/common-ui';
|
2025-09-03 16:08:40 +08:00
|
|
|
|
import {
|
|
|
|
|
|
BpmModelFormType,
|
|
|
|
|
|
BpmModelType,
|
|
|
|
|
|
BpmTaskStatusEnum,
|
2025-09-04 20:42:56 +08:00
|
|
|
|
DICT_TYPE,
|
2025-09-04 18:19:49 +08:00
|
|
|
|
} from '@vben/constants';
|
|
|
|
|
|
import { formatDateTime } from '@vben/utils';
|
2025-05-08 00:02:13 +08:00
|
|
|
|
|
2025-05-24 15:10:03 +08:00
|
|
|
|
import { Avatar, Card, Col, message, Row, TabPane, Tabs } from 'ant-design-vue';
|
2025-05-08 00:02:13 +08:00
|
|
|
|
|
|
|
|
|
|
import {
|
|
|
|
|
|
getApprovalDetail as getApprovalDetailApi,
|
|
|
|
|
|
getProcessInstanceBpmnModelView,
|
|
|
|
|
|
} from '#/api/bpm/processInstance';
|
|
|
|
|
|
import { getSimpleUserList } from '#/api/system/user';
|
|
|
|
|
|
import DictTag from '#/components/dict-tag/dict-tag.vue';
|
2025-09-04 20:42:56 +08:00
|
|
|
|
import { registerComponent, setConfAndFields2 } from '#/utils';
|
2025-05-13 01:04:32 +08:00
|
|
|
|
import {
|
|
|
|
|
|
SvgBpmApproveIcon,
|
|
|
|
|
|
SvgBpmCancelIcon,
|
|
|
|
|
|
SvgBpmRejectIcon,
|
|
|
|
|
|
SvgBpmRunningIcon,
|
|
|
|
|
|
} from '#/views/bpm/processInstance/detail/modules/icons';
|
2025-05-08 00:02:13 +08:00
|
|
|
|
|
2025-05-24 15:10:03 +08:00
|
|
|
|
import ProcessInstanceBpmnViewer from './modules/bpm-viewer.vue';
|
|
|
|
|
|
import ProcessInstanceOperationButton from './modules/operation-button.vue';
|
|
|
|
|
|
import ProcessInstanceSimpleViewer from './modules/simple-bpm-viewer.vue';
|
2025-05-24 10:51:57 +08:00
|
|
|
|
import BpmProcessInstanceTaskList from './modules/task-list.vue';
|
2025-05-12 00:53:48 +08:00
|
|
|
|
import ProcessInstanceTimeline from './modules/time-line.vue';
|
2025-05-08 16:52:46 +08:00
|
|
|
|
|
2025-05-08 00:02:13 +08:00
|
|
|
|
defineOptions({ name: 'BpmProcessInstanceDetail' });
|
|
|
|
|
|
|
|
|
|
|
|
const props = defineProps<{
|
|
|
|
|
|
activityId?: string; // 流程活动编号,用于抄送查看
|
|
|
|
|
|
id: string; // 流程实例的编号
|
|
|
|
|
|
taskId?: string; // 任务编号
|
|
|
|
|
|
}>();
|
|
|
|
|
|
|
|
|
|
|
|
enum FieldPermissionType {
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 隐藏
|
|
|
|
|
|
*/
|
|
|
|
|
|
// eslint-disable-next-line no-unused-vars
|
|
|
|
|
|
NONE = '3',
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 只读
|
|
|
|
|
|
*/
|
|
|
|
|
|
// eslint-disable-next-line no-unused-vars
|
|
|
|
|
|
READ = '1',
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 编辑
|
|
|
|
|
|
*/
|
|
|
|
|
|
// eslint-disable-next-line no-unused-vars
|
|
|
|
|
|
WRITE = '2',
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const processInstanceLoading = ref(false); // 流程实例的加载中
|
2025-06-15 15:33:18 +08:00
|
|
|
|
const processInstance = ref<BpmProcessInstanceApi.ProcessInstance>(); // 流程实例
|
2025-05-08 00:02:13 +08:00
|
|
|
|
const processDefinition = ref<any>({}); // 流程定义
|
|
|
|
|
|
const processModelView = ref<any>({}); // 流程模型视图
|
2025-05-24 15:10:03 +08:00
|
|
|
|
const operationButtonRef = ref(); // 操作按钮组件 ref
|
2025-05-08 00:02:13 +08:00
|
|
|
|
const auditIconsMap: {
|
|
|
|
|
|
[key: string]:
|
|
|
|
|
|
| typeof SvgBpmApproveIcon
|
|
|
|
|
|
| typeof SvgBpmCancelIcon
|
|
|
|
|
|
| typeof SvgBpmRejectIcon
|
|
|
|
|
|
| typeof SvgBpmRunningIcon;
|
|
|
|
|
|
} = {
|
2025-05-12 00:53:48 +08:00
|
|
|
|
[BpmTaskStatusEnum.RUNNING]: SvgBpmRunningIcon,
|
|
|
|
|
|
[BpmTaskStatusEnum.APPROVE]: SvgBpmApproveIcon,
|
|
|
|
|
|
[BpmTaskStatusEnum.REJECT]: SvgBpmRejectIcon,
|
|
|
|
|
|
[BpmTaskStatusEnum.CANCEL]: SvgBpmCancelIcon,
|
|
|
|
|
|
[BpmTaskStatusEnum.APPROVING]: SvgBpmApproveIcon,
|
|
|
|
|
|
[BpmTaskStatusEnum.RETURN]: SvgBpmRejectIcon,
|
|
|
|
|
|
[BpmTaskStatusEnum.WAIT]: SvgBpmRunningIcon,
|
2025-05-08 00:02:13 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// ========== 申请信息 ==========
|
|
|
|
|
|
const fApi = ref<any>(); //
|
|
|
|
|
|
const detailForm = ref({
|
|
|
|
|
|
rule: [],
|
|
|
|
|
|
option: {},
|
|
|
|
|
|
value: {},
|
|
|
|
|
|
}); // 流程实例的表单详情
|
|
|
|
|
|
|
|
|
|
|
|
const writableFields: Array<string> = []; // 表单可以编辑的字段
|
|
|
|
|
|
|
|
|
|
|
|
/** 加载流程实例 */
|
2025-05-24 10:51:57 +08:00
|
|
|
|
const BusinessFormComponent = shallowRef<any>(null); // 异步组件
|
2025-05-08 00:02:13 +08:00
|
|
|
|
|
|
|
|
|
|
/** 获取详情 */
|
|
|
|
|
|
async function getDetail() {
|
|
|
|
|
|
// 获得审批详情
|
|
|
|
|
|
getApprovalDetail();
|
|
|
|
|
|
|
|
|
|
|
|
// 获得流程模型视图
|
|
|
|
|
|
getProcessModelView();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
async function getApprovalDetail() {
|
|
|
|
|
|
processInstanceLoading.value = true;
|
|
|
|
|
|
try {
|
|
|
|
|
|
const param = {
|
|
|
|
|
|
processInstanceId: props.id,
|
|
|
|
|
|
activityId: props.activityId,
|
|
|
|
|
|
taskId: props.taskId,
|
|
|
|
|
|
};
|
|
|
|
|
|
const data = await getApprovalDetailApi(param);
|
|
|
|
|
|
|
|
|
|
|
|
if (!data) {
|
|
|
|
|
|
message.error('查询不到审批详情信息!');
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (!data.processDefinition || !data.processInstance) {
|
|
|
|
|
|
message.error('查询不到流程信息!');
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
processInstance.value = data.processInstance;
|
|
|
|
|
|
processDefinition.value = data.processDefinition;
|
|
|
|
|
|
|
|
|
|
|
|
// 设置表单信息
|
|
|
|
|
|
if (processDefinition.value.formType === BpmModelFormType.NORMAL) {
|
|
|
|
|
|
// 获取表单字段权限
|
|
|
|
|
|
const formFieldsPermission = data.formFieldsPermission;
|
|
|
|
|
|
// 清空可编辑字段为空
|
|
|
|
|
|
writableFields.splice(0);
|
|
|
|
|
|
if (detailForm.value.rule?.length > 0) {
|
|
|
|
|
|
// 避免刷新 form-create 显示不了
|
|
|
|
|
|
detailForm.value.value = processInstance.value.formVariables;
|
|
|
|
|
|
} else {
|
|
|
|
|
|
setConfAndFields2(
|
|
|
|
|
|
detailForm,
|
|
|
|
|
|
processDefinition.value.formConf,
|
|
|
|
|
|
processDefinition.value.formFields,
|
|
|
|
|
|
processInstance.value.formVariables,
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
|
|
|
|
|
nextTick().then(() => {
|
|
|
|
|
|
fApi.value?.btn.show(false);
|
|
|
|
|
|
fApi.value?.resetBtn.show(false);
|
|
|
|
|
|
fApi.value?.disabled(true);
|
|
|
|
|
|
// 设置表单字段权限
|
|
|
|
|
|
if (formFieldsPermission) {
|
|
|
|
|
|
Object.keys(data.formFieldsPermission).forEach((item) => {
|
|
|
|
|
|
setFieldPermission(item, formFieldsPermission[item]);
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
} else {
|
|
|
|
|
|
// 注意:data.processDefinition.formCustomViewPath 是组件的全路径,例如说:/crm/contract/detail/index.vue
|
2025-05-24 15:10:03 +08:00
|
|
|
|
|
2025-05-08 00:02:13 +08:00
|
|
|
|
BusinessFormComponent.value = registerComponent(
|
|
|
|
|
|
data?.processDefinition?.formCustomViewPath || '',
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 获取审批节点,显示 Timeline 的数据
|
|
|
|
|
|
activityNodes.value = data.activityNodes;
|
2025-05-24 15:10:03 +08:00
|
|
|
|
|
|
|
|
|
|
// 获取待办任务显示操作按钮
|
|
|
|
|
|
operationButtonRef.value?.loadTodoTask(data.todoTask);
|
2025-05-09 01:26:33 +08:00
|
|
|
|
} catch {
|
|
|
|
|
|
message.error('获取审批详情失败!');
|
2025-05-08 00:02:13 +08:00
|
|
|
|
} finally {
|
|
|
|
|
|
processInstanceLoading.value = false;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/** 获取流程模型视图*/
|
2025-06-06 20:45:45 +08:00
|
|
|
|
async function getProcessModelView() {
|
2025-05-08 00:02:13 +08:00
|
|
|
|
if (BpmModelType.BPMN === processDefinition.value?.modelType) {
|
|
|
|
|
|
// 重置,解决 BPMN 流程图刷新不会重新渲染问题
|
|
|
|
|
|
processModelView.value = {
|
|
|
|
|
|
bpmnXml: '',
|
|
|
|
|
|
};
|
|
|
|
|
|
}
|
|
|
|
|
|
const data = await getProcessInstanceBpmnModelView(props.id);
|
|
|
|
|
|
if (data) {
|
|
|
|
|
|
processModelView.value = data;
|
|
|
|
|
|
}
|
2025-06-06 20:45:45 +08:00
|
|
|
|
}
|
2025-05-08 00:02:13 +08:00
|
|
|
|
|
|
|
|
|
|
// 审批节点信息
|
|
|
|
|
|
const activityNodes = ref<BpmProcessInstanceApi.ApprovalNodeInfo[]>([]);
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 设置表单权限
|
|
|
|
|
|
*/
|
2025-06-06 20:45:45 +08:00
|
|
|
|
function setFieldPermission(field: string, permission: string) {
|
2025-05-08 00:02:13 +08:00
|
|
|
|
if (permission === FieldPermissionType.READ) {
|
|
|
|
|
|
fApi.value?.disabled(true, field);
|
|
|
|
|
|
}
|
|
|
|
|
|
if (permission === FieldPermissionType.WRITE) {
|
|
|
|
|
|
fApi.value?.disabled(false, field);
|
|
|
|
|
|
// 加入可以编辑的字段
|
|
|
|
|
|
writableFields.push(field);
|
|
|
|
|
|
}
|
|
|
|
|
|
if (permission === FieldPermissionType.NONE) {
|
|
|
|
|
|
fApi.value?.hidden(true, field);
|
|
|
|
|
|
}
|
2025-06-06 20:45:45 +08:00
|
|
|
|
}
|
2025-05-08 00:02:13 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 操作成功后刷新
|
|
|
|
|
|
*/
|
|
|
|
|
|
// const refresh = () => {
|
|
|
|
|
|
// // 重新获取详情
|
|
|
|
|
|
// getDetail();
|
|
|
|
|
|
// };
|
|
|
|
|
|
|
|
|
|
|
|
/** 当前的Tab */
|
|
|
|
|
|
const activeTab = ref('form');
|
2025-05-24 10:51:57 +08:00
|
|
|
|
const taskListRef = ref();
|
|
|
|
|
|
|
2025-06-07 20:17:21 +08:00
|
|
|
|
/** 监听 Tab 切换,当切换到 "record" 标签时刷新任务列表 */
|
2025-05-24 10:51:57 +08:00
|
|
|
|
watch(
|
|
|
|
|
|
() => activeTab.value,
|
|
|
|
|
|
(newVal) => {
|
|
|
|
|
|
if (newVal === 'record') {
|
|
|
|
|
|
// 如果切换到流转记录标签,刷新任务列表
|
|
|
|
|
|
nextTick(() => {
|
|
|
|
|
|
taskListRef.value?.refresh();
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
);
|
2025-05-08 00:02:13 +08:00
|
|
|
|
|
|
|
|
|
|
/** 初始化 */
|
|
|
|
|
|
const userOptions = ref<SystemUserApi.User[]>([]); // 用户列表
|
|
|
|
|
|
onMounted(async () => {
|
2025-06-07 20:17:21 +08:00
|
|
|
|
await getDetail();
|
2025-05-08 00:02:13 +08:00
|
|
|
|
// 获得用户列表
|
|
|
|
|
|
userOptions.value = await getSimpleUserList();
|
|
|
|
|
|
});
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
|
<Page auto-content-height>
|
2025-05-08 16:52:46 +08:00
|
|
|
|
<Card
|
2025-05-08 18:29:28 +08:00
|
|
|
|
:body-style="{
|
|
|
|
|
|
overflowY: 'auto',
|
|
|
|
|
|
paddingTop: '12px',
|
|
|
|
|
|
}"
|
2025-05-08 16:52:46 +08:00
|
|
|
|
>
|
2025-05-08 00:02:13 +08:00
|
|
|
|
<template #title>
|
2025-06-17 20:22:24 +08:00
|
|
|
|
<span class="text-gray-500">编号:{{ id || '-' }}</span>
|
2025-05-08 00:02:13 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
|
2025-06-17 20:22:24 +08:00
|
|
|
|
<div class="flex h-full flex-col">
|
2025-05-08 00:02:13 +08:00
|
|
|
|
<!-- 流程基本信息 -->
|
|
|
|
|
|
<div class="flex flex-col gap-2">
|
2025-06-17 20:22:24 +08:00
|
|
|
|
<div class="mb-2.5 flex h-10 items-center gap-5">
|
|
|
|
|
|
<div class="mb-1 text-2xl font-bold">
|
2025-05-08 16:52:46 +08:00
|
|
|
|
{{ processInstance?.name }}
|
2025-05-08 00:02:13 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<DictTag
|
|
|
|
|
|
v-if="processInstance?.status"
|
|
|
|
|
|
:type="DICT_TYPE.BPM_PROCESS_INSTANCE_STATUS"
|
|
|
|
|
|
:value="processInstance.status"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2025-06-17 20:22:24 +08:00
|
|
|
|
<div class="mb-2.5 flex h-12 items-center gap-5 text-sm">
|
2025-05-08 00:02:13 +08:00
|
|
|
|
<div
|
2025-06-17 20:22:24 +08:00
|
|
|
|
class="flex items-center gap-2 rounded-3xl bg-gray-100 px-2.5 py-1 dark:bg-gray-600"
|
2025-05-08 00:02:13 +08:00
|
|
|
|
>
|
|
|
|
|
|
<Avatar
|
|
|
|
|
|
:size="28"
|
|
|
|
|
|
v-if="processInstance?.startUser?.avatar"
|
|
|
|
|
|
:src="processInstance?.startUser?.avatar"
|
|
|
|
|
|
/>
|
|
|
|
|
|
<Avatar
|
|
|
|
|
|
:size="28"
|
|
|
|
|
|
v-else-if="processInstance?.startUser?.nickname"
|
|
|
|
|
|
>
|
|
|
|
|
|
{{ processInstance?.startUser?.nickname.substring(0, 1) }}
|
|
|
|
|
|
</Avatar>
|
2025-06-17 20:22:24 +08:00
|
|
|
|
<span class="text-sm">{{
|
2025-05-08 00:02:13 +08:00
|
|
|
|
processInstance?.startUser?.nickname
|
|
|
|
|
|
}}</span>
|
|
|
|
|
|
</div>
|
2025-06-17 20:22:24 +08:00
|
|
|
|
<div class="text-gray-500">
|
2025-05-08 00:02:13 +08:00
|
|
|
|
{{ formatDateTime(processInstance?.startTime) }} 提交
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<component
|
|
|
|
|
|
v-if="processInstance?.status"
|
|
|
|
|
|
:is="auditIconsMap[processInstance?.status]"
|
2025-06-17 20:22:24 +08:00
|
|
|
|
class="absolute right-5 top-2.5 size-36"
|
2025-05-08 00:02:13 +08:00
|
|
|
|
/>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 流程操作 -->
|
2025-05-24 15:10:03 +08:00
|
|
|
|
<div class="process-tabs-container flex flex-1 flex-col">
|
|
|
|
|
|
<Tabs v-model:active-key="activeTab" class="mt-0 h-full">
|
|
|
|
|
|
<TabPane tab="审批详情" key="form" class="tab-pane-content">
|
|
|
|
|
|
<Row :gutter="[48, 24]" class="h-full">
|
|
|
|
|
|
<Col
|
|
|
|
|
|
:xs="24"
|
|
|
|
|
|
:sm="24"
|
|
|
|
|
|
:md="18"
|
|
|
|
|
|
:lg="18"
|
|
|
|
|
|
:xl="16"
|
|
|
|
|
|
class="h-full"
|
|
|
|
|
|
>
|
2025-05-08 00:02:13 +08:00
|
|
|
|
<!-- 流程表单 -->
|
|
|
|
|
|
<div
|
|
|
|
|
|
v-if="
|
|
|
|
|
|
processDefinition?.formType === BpmModelFormType.NORMAL
|
|
|
|
|
|
"
|
2025-05-24 15:10:03 +08:00
|
|
|
|
class="h-full"
|
2025-05-08 00:02:13 +08:00
|
|
|
|
>
|
|
|
|
|
|
<form-create
|
|
|
|
|
|
v-model="detailForm.value"
|
|
|
|
|
|
v-model:api="fApi"
|
|
|
|
|
|
:option="detailForm.option"
|
|
|
|
|
|
:rule="detailForm.rule"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div
|
|
|
|
|
|
v-if="
|
|
|
|
|
|
processDefinition?.formType === BpmModelFormType.CUSTOM
|
|
|
|
|
|
"
|
2025-05-24 15:10:03 +08:00
|
|
|
|
class="h-full"
|
2025-05-08 00:02:13 +08:00
|
|
|
|
>
|
|
|
|
|
|
<BusinessFormComponent :id="processInstance?.businessKey" />
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</Col>
|
2025-05-24 15:10:03 +08:00
|
|
|
|
<Col :xs="24" :sm="24" :md="6" :lg="6" :xl="8" class="h-full">
|
|
|
|
|
|
<div class="mt-4 h-full">
|
2025-05-12 00:53:48 +08:00
|
|
|
|
<ProcessInstanceTimeline :activity-nodes="activityNodes" />
|
2025-05-08 00:02:13 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</Col>
|
|
|
|
|
|
</Row>
|
|
|
|
|
|
</TabPane>
|
|
|
|
|
|
|
2025-06-21 16:53:33 +08:00
|
|
|
|
<TabPane
|
|
|
|
|
|
tab="流程图"
|
|
|
|
|
|
key="diagram"
|
|
|
|
|
|
class="tab-pane-content"
|
|
|
|
|
|
:force-render="true"
|
|
|
|
|
|
>
|
2025-05-24 15:10:03 +08:00
|
|
|
|
<div class="h-full">
|
|
|
|
|
|
<ProcessInstanceSimpleViewer
|
|
|
|
|
|
v-show="
|
|
|
|
|
|
processDefinition.modelType &&
|
|
|
|
|
|
processDefinition.modelType === BpmModelType.SIMPLE
|
|
|
|
|
|
"
|
|
|
|
|
|
:loading="processInstanceLoading"
|
|
|
|
|
|
:model-view="processModelView"
|
|
|
|
|
|
/>
|
|
|
|
|
|
<ProcessInstanceBpmnViewer
|
|
|
|
|
|
v-show="
|
|
|
|
|
|
processDefinition.modelType &&
|
|
|
|
|
|
processDefinition.modelType === BpmModelType.BPMN
|
|
|
|
|
|
"
|
|
|
|
|
|
:loading="processInstanceLoading"
|
|
|
|
|
|
:model-view="processModelView"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</div>
|
2025-05-08 00:02:13 +08:00
|
|
|
|
</TabPane>
|
|
|
|
|
|
|
2025-05-24 15:10:03 +08:00
|
|
|
|
<TabPane tab="流转记录" key="record" class="tab-pane-content">
|
2025-05-24 10:51:57 +08:00
|
|
|
|
<div class="h-full">
|
|
|
|
|
|
<BpmProcessInstanceTaskList
|
|
|
|
|
|
ref="taskListRef"
|
|
|
|
|
|
:loading="processInstanceLoading"
|
|
|
|
|
|
:id="id"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</div>
|
2025-05-08 00:02:13 +08:00
|
|
|
|
</TabPane>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- TODO 待开发 -->
|
2025-05-24 15:10:03 +08:00
|
|
|
|
<TabPane
|
|
|
|
|
|
tab="流转评论"
|
|
|
|
|
|
key="comment"
|
|
|
|
|
|
v-if="false"
|
|
|
|
|
|
class="tab-pane-content"
|
|
|
|
|
|
>
|
|
|
|
|
|
<div class="h-full">待开发</div>
|
2025-05-08 00:02:13 +08:00
|
|
|
|
</TabPane>
|
|
|
|
|
|
</Tabs>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<template #actions>
|
2025-05-24 15:10:03 +08:00
|
|
|
|
<div class="px-4">
|
|
|
|
|
|
<ProcessInstanceOperationButton
|
|
|
|
|
|
ref="operationButtonRef"
|
|
|
|
|
|
:process-instance="processInstance"
|
|
|
|
|
|
:process-definition="processDefinition"
|
|
|
|
|
|
:user-options="userOptions"
|
|
|
|
|
|
:normal-form="detailForm"
|
|
|
|
|
|
:normal-form-api="fApi"
|
|
|
|
|
|
:writable-fields="writableFields"
|
|
|
|
|
|
@success="getDetail"
|
|
|
|
|
|
/>
|
2025-05-08 00:02:13 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</Card>
|
|
|
|
|
|
</Page>
|
|
|
|
|
|
</template>
|
2025-05-24 15:10:03 +08:00
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
|
.ant-tabs-content {
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.process-tabs-container {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
:deep(.ant-tabs) {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
:deep(.ant-tabs-content) {
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
:deep(.ant-tabs-tabpane) {
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.tab-pane-content {
|
|
|
|
|
|
height: calc(100vh - 420px);
|
|
|
|
|
|
padding-right: 12px;
|
|
|
|
|
|
overflow: hidden auto;
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|