From 8cefd74d3bea699d6389f2c21550a3c3944ff146 Mon Sep 17 00:00:00 2001 From: tt <1301725380@qq.com> Date: Fri, 25 Oct 2024 14:53:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=A2=E5=8A=A1-=E7=94=A8=E6=88=B7=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/accounts.js | 117 ++++++++++++++------------ src/views/accounts/userBill/index.vue | 95 ++++++--------------- 2 files changed, 90 insertions(+), 122 deletions(-) diff --git a/src/api/accounts.js b/src/api/accounts.js index 97db86f..4d1fe31 100644 --- a/src/api/accounts.js +++ b/src/api/accounts.js @@ -1,313 +1,324 @@ - -import request from './request' +import request from "./request"; /** * @description 提现 -- 列表 */ export function extractListApi(data) { - return request.get('user/extract/lst', data) + return request.get("user/extract/lst", data); } /** * @description 提现 -- 审核 */ export function extractStatusApi(id, data) { - return request.post(`user/extract/status/${id}`, data) + return request.post(`user/extract/status/${id}`, data); } /** * @description 导出订单 */ export function exportInancialRecordApi(data) { - return request.get(`financial_record/mer_export`, data) + return request.get(`financial_record/mer_export`, data); } /** * @description 下载订单 */ export function exportmerDetailExportApi(data) { - return request.get(`financial_record/mer_detail_export`, data) + return request.get(`financial_record/mer_detail_export`, data); +} +/** + * @description 用户账单-下载订单 + */ +export function exportUserExportApi(data) { + return request.get(`user/brokerage/bill/excel`, data); +} +/** + * @description 用户账单-列表 + */ +export function getUserPriceListApi(data) { + return request.get(`user/userprice/list`, data); } /** * @description 充值记录 -- 列表 */ export function rechargeListApi(data) { - return request.get(`user/recharge/list`, data) + return request.get(`user/recharge/list`, data); } /** * @description 充值记录 -- 统计 */ export function rechargeTotalApi() { - return request.get(`user/recharge/total`) + return request.get(`user/recharge/total`); } /** * @description 资金记录 -- 列表 */ export function billListApi(data) { - return request.get(`bill/list`, data) + return request.get(`bill/list`, data); } /** * @description 资金记录 -- 记录类型 */ export function billTypeApi() { - return request.get(`bill/type`) + return request.get(`bill/type`); } /** * @description 财务对账 -- 对账单列表 */ export function reconciliationListApi(data) { - return request.get(`merchant/order/reconciliation/lst`, data) + return request.get(`merchant/order/reconciliation/lst`, data); } /** * @description 财务对账 -- 确认打款 */ export function reconciliationStatusApi(id, data) { - return request.post(`merchant/order/reconciliation/status/${id}`, data) + return request.post(`merchant/order/reconciliation/status/${id}`, data); } /** * @description 财务对账 -- 查看订单 */ export function reconciliationOrderApi(id, data) { - return request.get(`merchant/order/reconciliation/${id}/order`, data) + return request.get(`merchant/order/reconciliation/${id}/order`, data); } /** * @description 财务对账 -- 退款订单 */ export function reconciliationRefundApi(id, data) { - return request.get(`merchant/order/reconciliation/${id}/refund`, data) + return request.get(`merchant/order/reconciliation/${id}/refund`, data); } /** * @description 财务对账 -- 备注 */ export function reconciliationMarkApi(id) { - return request.get(`merchant/order/reconciliation/mark/${id}/form`) + return request.get(`merchant/order/reconciliation/mark/${id}/form`); } /** * @description 资金流水 -- 列表 */ export function capitalFlowLstApi(data) { - return request.get(`financial_record/list`, data) + return request.get(`financial_record/list`, data); } /** * @description 资金流水 -- 导出 */ export function capitalFlowExportApi(data) { - return request.get(`financial_record/export`, data) + return request.get(`financial_record/export`, data); } /** * @description 商户列表导出 -- 导出 */ export function billExport(data) { - return request.get(`financial/bill_export`, data) + return request.get(`financial/bill_export`, data); } /** * @description 转账记录 -- 导出 */ export function transferRecordsExportApi(data) { - return request.get(`financial/export`, data) + return request.get(`financial/export`, data); } /** * @description 资金记录 -- 导出 */ export function fundingRecordsExportApi(data) { - return request.get(`bill/export`, data) + return request.get(`bill/export`, data); } /** * @description 提现管理 -- 导出 */ export function extractManageExportApi(data) { - return request.get(`user/extract/export`, data) + return request.get(`user/extract/export`, data); } /** * @description 提现管理 -- 审核 */ export function extractManageAudit(id) { - return request.get(`user/extract/status_form/${id}`) + return request.get(`user/extract/status_form/${id}`); } /** * @description 提现管理 -- 详情 */ export function extractManageDetail(id) { - return request.get(`user/extract/detail/${id}`) + return request.get(`user/extract/detail/${id}`); } /** * @description 获取版本号 */ export function getVersion() { - return request.get(`version`) + return request.get(`version`); } /** * @description 转账设置 */ export function transferSettingApi(key) { - return request.get(`config/${key}`) + return request.get(`config/${key}`); } /** * @description 转账记录 */ export function transferRecordApi(data) { - return request.get(`financial/lst`, data) + return request.get(`financial/lst`, data); } /** * @description 转账记录 -- 头部数据 */ export function transferHeaderDataApi() { - return request.get(`financial/title`) + return request.get(`financial/title`); } /** * @description 转账信息 */ export function transferDetailApi(id) { - return request.get(`financial/detail/${id}`) + return request.get(`financial/detail/${id}`); } /** * @description 申请转账 -- 审核 */ export function transferReviewApi(id, data) { - return request.post(`financial/status/${id}`, data) + return request.post(`financial/status/${id}`, data); } /** * @description 申请转账 -- 第二步审核 */ export function transferReviewFirstApi(id, data) { - return request.post(`financial/status_first/${id}`, data) + return request.post(`financial/status_first/${id}`, data); } /** * @description 申请转账 -- 最终审核 */ export function transferReviewSecondApi(id, data) { - return request.post(`financial/status_second/${id}`, data) + return request.post(`financial/status_second/${id}`, data); } /** * @description 申请转账 -- 批量审核 */ export function transferReviewBatchApi(data) { - return request.post(`financial/status_batch`, data) + return request.post(`financial/status_batch`, data); } /** * @description 申请转账 -- 批量审核 */ export function transferBatchApi(data) { - return request.post(`financial/status_update`, data) + return request.post(`financial/status_update`, data); } /** * @description 申请转账 -- 备注 */ export function transferMarkApi(id) { - return request.get(`financial/mark/${id}/form`) + return request.get(`financial/mark/${id}/form`); } /** * @description 申请转账 -- 转账 */ export function transferEditApi(id, data) { - return request.post(`financial/update/${id}`, data) + return request.post(`financial/update/${id}`, data); } /** * @description 财务账单 -- 列表 */ export function financialLstApi(data) { - return request.get(`financial_record/lst`, data) + return request.get(`financial_record/lst`, data); } /** * @description 财务账单 -- 详情 */ export function financialDetailApi(type, data) { - return request.get(`financial_record/detail/${type}`, data) + return request.get(`financial_record/detail/${type}`, data); } /** * @description 财务账单 -- 头部数据 */ export function finaHeaderDataApi(data) { - return request.get(`financial_record/title`, data) + return request.get(`financial_record/title`, data); } /** * @description 财务账单 -- 下载账单 */ export function downloadFinancialApi(type, data) { - return request.get(`financial_record/detail_export/${type}`, data) + return request.get(`financial_record/detail_export/${type}`, data); } /** * @description 资金流水 -- 统计数据 */ export function getStatisticsApi(data) { - return request.get(`financial_record/count`, data) + return request.get(`financial_record/count`, data); } /** * @description 发票 -- 获取发票说明 */ export function getReceiptApi(key) { - return request.get(`agreement/${key}`) + return request.get(`agreement/${key}`); } /** * @description 发票 -- 编辑发票说明 */ export function updateReceiptApi(type, data) { - return request.post(`agreement/${type}`, data) + return request.post(`agreement/${type}`, data); } /** * @description 发票 -- 列表 */ export function invoiceListApi(data) { - return request.get(`receipt/lst`, data) + return request.get(`receipt/lst`, data); } /** * @description 发票 -- 详情 */ export function invoiceDetailApi(id) { - return request.get(`receipt/detail/${id}`) + return request.get(`receipt/detail/${id}`); } /** * @description 分账单 -- 获取配置 */ export function getSettingApi() { - return request.get(`profitsharing/config`) + return request.get(`profitsharing/config`); } /** * @description 分账单 -- 修改配置 */ export function updateSettingApi(data) { - return request.post(`profitsharing/config`, data) + return request.post(`profitsharing/config`, data); } /** * @description 商户账单 -- 列表 */ export function merchantBillList(data) { - return request.get(`financial_record/mer_lst`, data) + return request.get(`financial_record/mer_lst`, data); } /** * @description 商户结算明细 -- 列表 */ export function financialBillApi(data) { - return request.get(`financial/bill`, data) + return request.get(`financial/bill`, data); } /** * @description 单个商户账单 -- 列表 */ export function singleMerBillList(id, data) { - return request.get(`financial_record/mer_list/${id}`, data) + return request.get(`financial_record/mer_list/${id}`, data); } /** * @description 单个商户账单 -- 详情 */ export function singleMerBillDetail(type, data) { - return request.get(`financial_record/mer_detail/${type}`, data) + return request.get(`financial_record/mer_detail/${type}`, data); } /** * @description 单个商户账单 -- 导出 */ export function singleMerBillExport(type, data) { - return request.get(`financial_record/mer_excel/${type}`, data) + return request.get(`financial_record/mer_excel/${type}`, data); } /** * @description 单个商户账单 -- 统计 */ export function singleMerBillHeader(id, data) { - return request.get(`financial_record/mer_title/${id}`, data) -} \ No newline at end of file + return request.get(`financial_record/mer_title/${id}`, data); +} diff --git a/src/views/accounts/userBill/index.vue b/src/views/accounts/userBill/index.vue index 063e707..c6cdfbd 100644 --- a/src/views/accounts/userBill/index.vue +++ b/src/views/accounts/userBill/index.vue @@ -2,34 +2,20 @@
- + - + - - - - - - - - - + + + + + - - @@ -89,7 +75,7 @@ 下载明细 @@ -111,11 +97,7 @@