From 896a4b82c084a949f355d43eae8a2f90d39824bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=8F?= <1978476055@qq.com> Date: Mon, 8 Jul 2024 11:34:59 +0800 Subject: [PATCH] 1 --- src/api/accounts.js | 12 + src/api/order.js | 6 + src/router/modules/accounts.js | 9 + src/views/accounts/settlement/index.vue | 266 ++++++++++++++++++ src/views/order/list/orderDetails.vue | 64 ++++- src/views/product/productExamine/editAttr.vue | 4 +- 6 files changed, 358 insertions(+), 3 deletions(-) create mode 100644 src/views/accounts/settlement/index.vue diff --git a/src/api/accounts.js b/src/api/accounts.js index 770c1ca..1586c0c 100644 --- a/src/api/accounts.js +++ b/src/api/accounts.js @@ -89,6 +89,12 @@ export function capitalFlowLstApi(data) { export function capitalFlowExportApi(data) { return request.get(`financial_record/export`, data) } +/** + * @description 商户列表导出 -- 导出 + */ +export function billExport(data) { + return request.get(`financial/bill_export`, data) +} /** * @description 转账记录 -- 导出 */ @@ -258,6 +264,12 @@ export function updateSettingApi(data) { export function merchantBillList(data) { return request.get(`financial_record/mer_lst`, data) } +/** + * @description 商户结算明细 -- 列表 + */ +export function financialBillApi(data) { + return request.get(`financial/bill`, data) +} /** * @description 单个商户账单 -- 列表 */ diff --git a/src/api/order.js b/src/api/order.js index 3b3bed3..96c7a38 100644 --- a/src/api/order.js +++ b/src/api/order.js @@ -26,6 +26,12 @@ export function refundorderDetailApi(id) { export function refundorderLogApi(id) { return request.get(`order/refund/log/${id}`) } +/** + * @description 商户结算 -- 列表 + */ +export function orderBillApi(id) { + return request.get(`order/bill/${id}`) +} /** * @description 退款订单 -- 审核from */ diff --git a/src/router/modules/accounts.js b/src/router/modules/accounts.js index d0dd08a..7c562f6 100644 --- a/src/router/modules/accounts.js +++ b/src/router/modules/accounts.js @@ -57,6 +57,15 @@ const accountsRouter = }, component: () => import('@/views/accounts/statement/index') }, + { + path: 'settlement', + name: 'AccountsSettlement', + meta: { + title: '商户结算明细', + noCache: true + }, + component: () => import('@/views/accounts/settlement/index') + }, { path: 'merchantBill', name: 'AccountsMerchantBill', diff --git a/src/views/accounts/settlement/index.vue b/src/views/accounts/settlement/index.vue new file mode 100644 index 0000000..358b6f6 --- /dev/null +++ b/src/views/accounts/settlement/index.vue @@ -0,0 +1,266 @@ + + + + + + + + + + + + + + + + + + + + + + + 搜索 + 重置 + + + + + + + + 导出列表 + + + + + + + 未处理 + 已处理 + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/order/list/orderDetails.vue b/src/views/order/list/orderDetails.vue index 333a687..8a62fbe 100644 --- a/src/views/order/list/orderDetails.vue +++ b/src/views/order/list/orderDetails.vue @@ -350,6 +350,49 @@ + + + + + + + + 未处理 + 已处理 + + + + + + + + @@ -459,7 +502,8 @@ import { orderDeliveryApi, orderDetailApi, orderLogApi, - getChildrenOrderApi + getChildrenOrderApi, + orderBillApi } from '@/api/order'; export default { props: { @@ -471,6 +515,7 @@ export default { data() { return { loading: true, + listLoading:true, orderId: '', direction: 'rtl', activeName: 'detail', @@ -492,6 +537,10 @@ export default { data: [], total: 0 }, + tableData: { + data: [], + total: 0 + }, tableFromLog: { user_type: '', date: [], @@ -519,6 +568,16 @@ export default { this.tableFromLog.date = e ? this.timeVal.join('-') : '' this.onOrderLog(this.orderId) }, + orderBillApi(id){ + orderBillApi(id).then((res)=>{ + this.tableData.data = res.data.list + this.tableData.total = res.data.count + this.listLoading = false + }).catch((res)=>{ + this.$message.error(res.message) + this.listLoading = false + }) + }, handleClose() { this.activeName = 'detail'; this.$emit('closeDrawer'); @@ -588,6 +647,9 @@ export default { if (tab.name === 'orderList') { this.onOrderLog(this.orderId) } + if (tab.name === 'settlement') { + this.orderBillApi(this.orderId) + } }, onOrderLog(id){ orderLogApi(id, this.tableFromLog).then((res) => { diff --git a/src/views/product/productExamine/editAttr.vue b/src/views/product/productExamine/editAttr.vue index 258a53c..e89308b 100644 --- a/src/views/product/productExamine/editAttr.vue +++ b/src/views/product/productExamine/editAttr.vue @@ -197,7 +197,7 @@ - - + --> 提交