feat: 审批驳回(带附件)

This commit is contained in:
dap 2025-01-22 14:28:18 +08:00
parent 8c75d13ab4
commit 1e3990f41d
2 changed files with 27 additions and 2 deletions

View File

@ -1,5 +1,4 @@
<!-- 审批同意的弹窗 -->
<!-- 审批驳回窗口 -->
<script setup lang="ts">
import type { CompleteTaskReqData } from '#/api/workflow/task/model';

View File

@ -50,6 +50,29 @@ const [BasicForm, formApi] = useVbenForm({
},
label: '驳回节点',
},
{
fieldName: 'attachment',
component: 'FileUpload',
componentProps: {
resultField: 'ossId',
maxNumber: 10,
maxSize: 20,
accept: [
'png',
'jpg',
'jpeg',
'doc',
'docx',
'xlsx',
'xls',
'ppt',
'pdf',
],
},
defaultValue: [],
label: '附件上传',
formItemClass: 'items-start',
},
{
fieldName: 'message',
component: 'Textarea',
@ -112,7 +135,10 @@ async function handleSubmit() {
return;
}
const data = cloneDeep(await formApi.getValues());
console.log(data);
// join
data.fileId = data.attachment?.join?.(',');
// attachment
data.attachment = undefined;
await backProcess(data);
modalApi.close();
emit('complete');