客户自定义表单流程

This commit is contained in:
‘huanghaiixia’
2025-11-27 17:23:14 +08:00
parent 57472a55c0
commit 105da87b88
12 changed files with 382 additions and 133 deletions

View File

@ -10,6 +10,8 @@
<template #left>
<FlowPanel :xml="data.xml" :taskRecords="data.taskRecords" :predecessorTasks="selectedPredecessorTasks" :processId="props.processId" :schemaId="props.schemaId" position="top">
<FormInformation
:curPageCode="curPageCode"
:id="id"
:opinionsComponents="data.opinionsComponents"
:opinions="data.opinions"
:disabled="false"
@ -143,12 +145,14 @@
schemaId: string;
processId: string;
taskId: string;
id: string;
visible?: boolean;
}>(),
{
schemaId: '',
processId: '',
taskId: '',
id: '',
visible: false
}
);
@ -210,7 +214,8 @@
return ele.taskId;
});
});
const curPageCode = ref()
const id = ref()
// 审批
async function approval() {
showLoading.value = true;
@ -218,6 +223,8 @@
if (props.taskId) {
try {
let res = await getApprovalProcess(props.taskId, props.processId);
curPageCode.value = res?.schemaInfo?.code
id.value = res?.formInfos[0]?.formData?.id
initProcessData(res);
if (res.buttonConfigs) {
approvalData.buttonConfigs = res.buttonConfigs;