feat: 审批驳回(带附件)
This commit is contained in:
parent
8c75d13ab4
commit
1e3990f41d
@ -1,5 +1,4 @@
|
||||
<!-- 审批同意的弹窗 -->
|
||||
<!-- 审批驳回窗口 -->
|
||||
<script setup lang="ts">
|
||||
import type { CompleteTaskReqData } from '#/api/workflow/task/model';
|
||||
|
||||
|
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user