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 @@