From e71b344afbd2bb54de45287f8521208790a527c9 Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Fri, 9 May 2025 14:38:03 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E7=BB=93=E8=B4=A6=E5=95=86=E6=88=B7?= =?UTF-8?q?=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wallet/mch-checkout.ts | 12 ++-- src/views/hard/hard-sh/index.vue | 15 +++++ src/views/mch/mch-checkout/form.vue | 67 ++++++++++--------- src/views/mch/mch-checkout/index.vue | 61 ++++++++++++++--- .../wallet/wallet-manage/change-balance.vue | 9 +-- .../wallet/wallet-recharge-water/index.vue | 3 +- 6 files changed, 110 insertions(+), 57 deletions(-) diff --git a/src/api/wallet/mch-checkout.ts b/src/api/wallet/mch-checkout.ts index 3446676..9d1167c 100644 --- a/src/api/wallet/mch-checkout.ts +++ b/src/api/wallet/mch-checkout.ts @@ -1,10 +1,14 @@ import request from "/@/utils/request" -export function fetchList(query?: Object) { +export function pageJoin(data: any) { return request({ - url: "/wallet/mch-checkout/page", - method: "get", - params: query, + url: "/wallet/mch-checkout/page-join", + method: "post", + params: { + current: data.current, + size: data.size, + }, + data: data, }) } diff --git a/src/views/hard/hard-sh/index.vue b/src/views/hard/hard-sh/index.vue index 0093d84..189c8bd 100644 --- a/src/views/hard/hard-sh/index.vue +++ b/src/views/hard/hard-sh/index.vue @@ -101,6 +101,15 @@ + + + @@ -113,6 +122,8 @@ import { BasicTableProps, useTable } from "/@/hooks/table" import { displayPrice } from "/@/utils/formatMoney" import * as hardTotalApi from "/@/api/hard/hard-total" +const { push } = useRouter() + // 搜索变量 const queryRef = ref() const showSearch = ref(true) @@ -136,6 +147,10 @@ const exportExcel = () => { postDownBlobFile("/hard/hard-total/export-cs", Object.assign(state.queryForm), "商户交易记录.xlsx") } +const doCheckout = (row: any) => { + push({ path: "/mch/mch-checkout/index", query: { mchId: row.merchantId } }) +} + const getSummaries = (param: any) => { const { columns, data } = param const totalColumns = ["totalPayPrice", "totalPayCount", "totalRefundPrice", "totalRefundCount", "totalProfitPrice", "totalProfitCount"] diff --git a/src/views/mch/mch-checkout/form.vue b/src/views/mch/mch-checkout/form.vue index 44d7811..1113943 100644 --- a/src/views/mch/mch-checkout/form.vue +++ b/src/views/mch/mch-checkout/form.vue @@ -1,35 +1,30 @@