diff --git a/src/views/business/subpackage/apply/list.vue b/src/views/business/subpackage/apply/list.vue index ec20949..271ee8e 100644 --- a/src/views/business/subpackage/apply/list.vue +++ b/src/views/business/subpackage/apply/list.vue @@ -13,7 +13,7 @@ import type { IMenu } from '@/components/buttonBox/buttonBox' import ApprovalDialog from '@/components/Approval/ApprovalDialog.vue' import ButtonBox from '@/components/buttonBox/buttonBox.vue' -import { deleteListItem, getListPage, submit } from '@/api/business/subpackage/apply' +import { approvalDel, deleteListItem, getListPage, submit } from '@/api/business/subpackage/apply' import { keepSearchParams, renewSearchParams } from '@/utils/keepQuery' import { SCHEDULE } from '@/utils/scheduleDict' import { cancelApproval } from '@/api/approval' @@ -217,6 +217,26 @@ }) }) } + else if (val === '审批删除') { + ElMessageBox.confirm( + '确认删除吗?', + '提示', + { + confirmButtonText: '确认', + cancelButtonText: '取消', + type: 'warning', + }, + ) + .then(() => { + approvalDel({ id: row.id, taskId: row.taskId }).then((res) => { + ElMessage({ + type: 'success', + message: '删除成功', + }) + fetchData(true) + }) + }) + } else if (val === '提交') { ElMessageBox.confirm( '确认提交该审批吗?', @@ -418,17 +438,16 @@ > 取消 - - + + + 删除 +