| | |
| | | submitInvoice, |
| | | } from '#/api/crm/invoice'; |
| | | import { $t } from '#/locales'; |
| | | import { automaticApproval } from '#/store/audit-policy'; |
| | | |
| | | import { useGridColumns, useGridFormSchema } from './data'; |
| | | import Form from './modules/form.vue'; |
| | |
| | | /** 提交审核 */ |
| | | async function handleSubmit(row: CrmInvoiceApi.Invoice) { |
| | | const hideLoading = message.loading({ |
| | | content: '提交审核中...', |
| | | content: automaticApproval.value ? '正在提交生效...' : '提交审核中...', |
| | | duration: 0, |
| | | }); |
| | | try { |
| | | await submitInvoice(row.id!); |
| | | message.success('提交审核成功'); |
| | | message.success(automaticApproval.value ? '已提交生效' : '提交审核成功'); |
| | | handleRefresh(); |
| | | } finally { |
| | | hideLoading(); |