客户自定义表单流程
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user