From c29dec3af65130e70e95ead613b003f0d075fce7 Mon Sep 17 00:00:00 2001 From: hzj <1304805162@qq.com> Date: Fri, 17 Oct 2025 17:01:31 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=AE=A2=E5=8D=95=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E9=A1=B5):=20=E6=96=B0=E5=A2=9E=E6=90=9C=E7=B4=A2=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E2=80=9C=E5=9C=B0=E5=8C=BA=E2=80=9D=EF=BC=8C=E5=AF=B9?= =?UTF-8?q?=E6=8E=A5=E6=9F=A5=E8=AF=A2=E8=AE=A2=E5=8D=95=E6=80=BB=E6=95=B0?= =?UTF-8?q?=E7=9A=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + src/api/purchase.js | 107 ++++++----- src/views/order/order-details/index.vue | 237 ++++++++++++++---------- 3 files changed, 203 insertions(+), 142 deletions(-) diff --git a/package.json b/package.json index de17df8..9c0ed39 100644 --- a/package.json +++ b/package.json @@ -46,6 +46,7 @@ "devDependencies": { "@babel/core": "7.0.0", "@babel/register": "7.0.0", + "@types/minimatch": "^6.0.0", "@vue/cli-plugin-babel": "3.6.0", "@vue/cli-plugin-eslint": "^3.9.1", "@vue/cli-plugin-unit-jest": "3.6.3", diff --git a/src/api/purchase.js b/src/api/purchase.js index 65ee86e..435a3e8 100644 --- a/src/api/purchase.js +++ b/src/api/purchase.js @@ -1,142 +1,153 @@ - -import request from '@/utils/request' -import { httpGetExport } from '@/utils/export-excel' +import request from "@/utils/request"; +import { httpGetExport } from "@/utils/export-excel"; // 今日内购总额 export function purchaseTodayTotal(params) { return request({ - url: '/order/purchase/history/purchase/today/total', - method: 'get', + url: "/order/purchase/history/purchase/today/total", + method: "get", params - }) + }); } // 今日内购总额 export function purchaseTodayTotalBySysOrigin(sysOrigin) { return request({ url: `/order/purchase/history/${sysOrigin}/purchase/today/total`, - method: 'get' - }) + method: "get" + }); } // 金币收支流水 export function listGoldRunningWater(params) { return request({ - url: '/user-wallet/gold/running-water/list', - method: 'get', + url: "/user-wallet/gold/running-water/list", + method: "get", params - }) + }); } // 金币收支流水cls export function getClsGoldRunningWater(params) { return request({ - url: '/user-wallet/gold/running-water/cls', - method: 'get', + url: "/user-wallet/gold/running-water/cls", + method: "get", params - }) + }); } // 用户购买总额 export function getBuyTotalByUserId(userId) { return request({ url: `/order/purchase/history/buy/total/${userId}`, - method: 'get' - }) + method: "get" + }); } // 购买记录 export function getPurchaseTable(params) { return request({ - url: '/order/purchase/history/page', - method: 'get', + url: "/order/purchase/history/page", + method: "get", params - }) + }); } // 购买消耗类型列表 - 导出 export function exportPurchaseConsumeTable(params, excelName) { - return httpGetExport('/order/purchase/history/consume/export', params, excelName) + return httpGetExport( + "/order/purchase/history/consume/export", + params, + excelName + ); } // 内购订单详情 export function getInAppPurchase(id) { return request({ - url: '/order/in-app-purchase/details', - method: 'get', + url: "/order/in-app-purchase/details", + method: "get", params: { id } - }) + }); } // 内购订单详情- list export function listInAppPurchase(params) { return request({ - url: '/order/in-app-purchase/details/list', - method: 'get', + url: "/order/in-app-purchase/details/list", + method: "get", params - }) + }); +} + +// 订单数量&总金额查询 +export function getOrderAmount(params) { + return request({ + url: "/order/in-app-purchase/statistics", + method: "get", + params + }); } // 获取异常订单日志列表 export function getOrderAbnormalPage(params) { return request({ - url: '/order/abnormal/log/page', - method: 'get', + url: "/order/abnormal/log/page", + method: "get", params - }) + }); } // 获取异常订单日志,凭证 export function getOrderAbnormalCertificate(id) { return request({ - url: '/order/abnormal/log/certificate', - method: 'get', + url: "/order/abnormal/log/certificate", + method: "get", params: { id } - }) + }); } // 修改异常订单日志,装态 export function updateOrderAbnormalStatus(params) { return request({ - url: '/order/abnormal/log/status', - method: 'put', + url: "/order/abnormal/log/status", + method: "put", params - }) + }); } // 订单补偿 export function orderPurchaseHistoryCompensate(data) { return request({ - url: '/order/purchase/history/compensate', - method: 'post', + url: "/order/purchase/history/compensate", + method: "post", data - }) + }); } // 补偿糖果 export function compensateCandy(params) { return request({ - url: '/order/purchase/history/compensate/candy', - method: 'post', + url: "/order/purchase/history/compensate/candy", + method: "post", params - }) + }); } // 其他支付订单分页 export function orderOtherRechargePage(params) { return request({ - url: '/order/other-recharge/page', - method: 'get', + url: "/order/other-recharge/page", + method: "get", params - }) + }); } // 处理订单信息-添加 export function orderOtherRechargeProcess(data) { return request({ - url: '/order/other-recharge/process', - method: 'post', + url: "/order/other-recharge/process", + method: "post", data - }) + }); } - diff --git a/src/views/order/order-details/index.vue b/src/views/order/order-details/index.vue index 62d77c5..257571d 100644 --- a/src/views/order/order-details/index.vue +++ b/src/views/order/order-details/index.vue @@ -1,5 +1,6 @@ + - + {{ item.label }} @@ -110,6 +109,21 @@ end-placeholder="结束日期" /> + + + + + + + 当前查询到订单总数为:{{ + total.totalOrderCount || "-" + }}、订单总金额为:{{ total.totalAmountUsd || "-" }} + + {{ statusMap[scope.row.details.status].lable }} + >{{ statusMap[scope.row.details.status].lable }} 未知 @@ -257,10 +282,9 @@ - 详情 + 详情 @@ -273,7 +297,8 @@ :disabled="loadMoreLoading" :loading="loadMoreLoading" @click="clickLoadMore" - >加载更多 + >加载更多