diff --git a/src/api/finance.ts b/src/api/finance.ts index 53b1189..bdaa444 100644 --- a/src/api/finance.ts +++ b/src/api/finance.ts @@ -39,3 +39,4 @@ export function refundLog(params?: any) { export function refundStat(params?: any) { return request.get({ url: '/finance.refund/stat', params }) } + diff --git a/src/api/withdraw.ts b/src/api/withdraw.ts index 2076c3c..bcf7b22 100644 --- a/src/api/withdraw.ts +++ b/src/api/withdraw.ts @@ -24,3 +24,8 @@ export function apiWithdrawDelete(params: any) { export function apiWithdrawDetail(params: any) { return request.get({ url: '/finance.withdraw/detail', params }) } + +//提现审核 +export function withdrawAudit(params?: any) { + return request.post({ url: '/finance.withdraw/audit', params }) +} diff --git a/src/views/finance/Withdrawal.vue b/src/views/finance/Withdrawal.vue index f98dbbd..f240160 100644 --- a/src/views/finance/Withdrawal.vue +++ b/src/views/finance/Withdrawal.vue @@ -47,22 +47,24 @@ - +
- + + @@ -120,6 +131,13 @@ @success="getLists" @close="showEdit = false" /> +
@@ -130,10 +148,13 @@ import { apiWithdrawLists, apiWithdrawDelete } from "@/api/withdraw"; import { timeFormat } from "@/utils/util"; import feedback from "@/utils/feedback"; import EditPopup from "./edit.vue"; +import AuditPopup from "./audit.vue"; const editRef = shallowRef>(); +const auditRef = shallowRef>(); // 是否显示编辑框 const showEdit = ref(false); +const showAudit = ref(false); // 查询条件 const queryParams = reactive({ @@ -196,6 +217,14 @@ const handleEdit = async (data: any) => { editRef.value?.setFormData(data); }; +// 审核 +const handleAudit = async (data: any) => { + showAudit.value = true; + await nextTick(); + auditRef.value?.open("edit"); + auditRef.value?.setFormData(data); +}; + // 删除 const handleDelete = async (id: number | any[]) => { await feedback.confirm("确定要删除?"); diff --git a/src/views/finance/audit.vue b/src/views/finance/audit.vue new file mode 100644 index 0000000..04ca3d1 --- /dev/null +++ b/src/views/finance/audit.vue @@ -0,0 +1,225 @@ + + + + \ No newline at end of file