From b87b4c000e4eadb6211f48d44def9636fe6b81e5 Mon Sep 17 00:00:00 2001 From: gyq <875626088@qq.com> Date: Wed, 4 Feb 2026 16:32:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=B4=A2=E5=8A=A1=E6=8A=A5?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/importData/index.vue | 10 ++- src/views/data/finance.vue | 131 +++++++++++++++++++++------- src/views/data/index.vue | 11 ++- src/views/data/sales.vue | 2 +- src/views/data/table.vue | 14 +-- src/views/product/index.vue | 2 +- src/views/tool/table/index.vue | 2 +- src/views/user/list/index.vue | 2 +- 8 files changed, 129 insertions(+), 45 deletions(-) diff --git a/src/components/importData/index.vue b/src/components/importData/index.vue index a52332d..63427cf 100644 --- a/src/components/importData/index.vue +++ b/src/components/importData/index.vue @@ -5,8 +5,8 @@ 批量导入 下载银收客模板 - +
@@ -166,6 +166,12 @@ async function downloadTemplateAjax() { } } +const emits = defineEmits(['close']) + +function dialogClose() { + emits('close') +} + onMounted(() => { getPlatformList() }); diff --git a/src/views/data/finance.vue b/src/views/data/finance.vue index efa1a98..2f898b1 100644 --- a/src/views/data/finance.vue +++ b/src/views/data/finance.vue @@ -35,31 +35,59 @@
营业额
- {{ tableData.turnover.wechat || 0 }} +
+ + {{ multiplyAndFormat(tableData.turnover.wechat || 0) }} +
微信支付金额
- {{ tableData.turnover.alipay || 0 }} +
+ + {{ multiplyAndFormat(tableData.turnover.alipay || 0) }} +
支付宝支付金额
- {{ tableData.turnover.selfScan || 0 }} - 主扫收款 +
+ + {{ multiplyAndFormat(tableData.turnover.selfScan || 0) }} +
+ 二维码收款
- {{ tableData.turnover.cash || 0 }} +
+ + {{ multiplyAndFormat(tableData.turnover.barScan || 0) }} +
+ 扫码收款 +
+
+
+ + {{ multiplyAndFormat(tableData.turnover.cash || 0) }} +
现金收款
- {{ tableData.turnover.recharge || 0 }} +
+ + {{ multiplyAndFormat(tableData.turnover.recharge || 0) }} +
充值
- {{ tableData.turnover.owed || 0 }} +
+ + {{ multiplyAndFormat(tableData.turnover.owed || 0) }} +
挂账
- {{ tableData.turnover.balance || 0 }} +
+ + {{ multiplyAndFormat(tableData.turnover.balance || 0) }} +
余额支付
@@ -97,7 +125,10 @@ 桌台数
- {{ tableData.sts.avgPayAmount || 0 }} +
+ + {{ multiplyAndFormat(tableData.sts.avgPayAmount || 0) }} +
客单价 @@ -118,7 +149,10 @@
- {{ tableData.sts.profitAmount || 0 }} +
+ + {{ multiplyAndFormat(tableData.sts.profitAmount || 0) }} +
毛利润 @@ -128,7 +162,10 @@
- {{ tableData.sts.productCostAmount || 0 }} +
+ + {{ multiplyAndFormat(tableData.sts.productCostAmount || 0) }} +
商品成本
@@ -146,7 +183,10 @@ 净利率
- {{ tableData.sts.netProfitRate || 0 }} +
+ + {{ multiplyAndFormat(tableData.sts.netProfitRate || 0) }} +
净利润
@@ -172,7 +212,8 @@
- {{ tableData.discount.newConsumerDiscount || 0 }} + + {{ multiplyAndFormat(tableData.discount.newConsumerDiscount || 0) }}
新客立减 @@ -180,7 +221,8 @@
- {{ tableData.discount.freeCashAmount || 0 }} + + {{ multiplyAndFormat(tableData.discount.freeCashAmount || 0) }}
霸王餐 @@ -188,7 +230,8 @@
- {{ tableData.discount.fullMinusAmount || 0 }} + + {{ multiplyAndFormat(tableData.discount.fullMinusAmount || 0) }}
满减活动 @@ -196,7 +239,8 @@
- {{ tableData.discount.couponAmount || 0 }} + + {{ multiplyAndFormat(tableData.discount.couponAmount || 0) }}
优惠券 @@ -204,7 +248,8 @@
- {{ tableData.discount.memberDiscount || 0 }} + + {{ multiplyAndFormat(tableData.discount.memberDiscount || 0) }}
会员折扣 @@ -212,7 +257,8 @@
- {{ tableData.discount.pointsDiscountAmount || 0 }} + + {{ multiplyAndFormat(tableData.discount.pointsDiscountAmount || 0) }}
积分抵扣金额 @@ -220,7 +266,8 @@
- {{ tableData.discount.orderDiscount || 0 }} + + {{ multiplyAndFormat(tableData.discount.orderDiscount || 0) }}
订单改价 @@ -237,7 +284,8 @@
- {{ tableData.refund.onlineRefundAmount || 0 }} + + {{ multiplyAndFormat(tableData.refund.onlineRefundAmount || 0) }}
线上退款金额 @@ -245,7 +293,8 @@
- {{ tableData.refund.cashRefundAmount || 0 }} + + {{ multiplyAndFormat(tableData.refund.cashRefundAmount || 0) }}
现金退款金额 @@ -253,15 +302,17 @@
- {{ tableData.refund.rechargeRefundAmount || 0 }} + + {{ multiplyAndFormat(tableData.refund.memberRefundAmount || 0) }}
- 充值退款金额 + 余额退款金额
- {{ tableData.refund.onlineRechargeRefundAmount || 0 }} + + {{ multiplyAndFormat(tableData.refund.onlineRechargeRefundAmount || 0) }}
线上充值退款金额 @@ -269,20 +320,13 @@
- {{ tableData.refund.cashRechargeRefundAmount || 0 }} + + {{ multiplyAndFormat(tableData.refund.cashRechargeRefundAmount || 0) }}
现金充值退款金额
-
-
- {{ tableData.refund.memberRefundAmount || 0 }} -
-
- 会员退款金额 -
-
@@ -442,6 +486,11 @@ onMounted(() => { .item_list { margin-top: 14px; + .title { + font-size: 14px; + color: #666; + } + .item { height: 50px; display: flex; @@ -457,6 +506,14 @@ onMounted(() => { font-size: 16px; color: #333; font-weight: bold; + display: flex; + align-items: center; + + .i { + font-size: 10px; + position: relative; + top: 1px; + } } .label { @@ -503,6 +560,14 @@ onMounted(() => { font-size: 20px; font-weight: bold; color: #333; + display: flex; + align-items: center; + + .i { + font-size: 12px; + position: relative; + top: 3px; + } } .t { diff --git a/src/views/data/index.vue b/src/views/data/index.vue index 593e38f..0c1014c 100644 --- a/src/views/data/index.vue +++ b/src/views/data/index.vue @@ -52,7 +52,7 @@ 营业
- + @@ -714,6 +714,15 @@ export default { // this.initCardUserChart(); }, methods: { + importDataClose() { + // this.summaryGet(); + this.dateAmount(); + this.dateProduct(); + // this.summaryDateGet(); + this.timeChange(this.timeValue); + this.profitRateBarChart() + this.costLineChart() + }, /** * 获取分店列表 */ diff --git a/src/views/data/sales.vue b/src/views/data/sales.vue index bbf6dd4..770e11f 100644 --- a/src/views/data/sales.vue +++ b/src/views/data/sales.vue @@ -44,7 +44,7 @@ 导出Excel 下载中... - +
diff --git a/src/views/data/table.vue b/src/views/data/table.vue index 2ef5219..bbeeaaf 100644 --- a/src/views/data/table.vue +++ b/src/views/data/table.vue @@ -34,7 +34,7 @@ 导出Excel 下载中... - +
@@ -91,11 +91,11 @@ -->
- +
@@ -202,13 +202,14 @@ export default { }, // 重置查询 resetHandle() { - this.timeValue = ""; + this.timeValue = "today"; this.query = { ...this.resetQuery }; this.page = 1; this.getTableData(); }, // 分页大小改变 sizeChange(e) { + this.tableData.page = 1 this.tableData.size = e; this.getTableData(); }, @@ -228,8 +229,11 @@ export default { // page: this.tableData.page, // size: this.tableData.size, rangeType: this.timeValue, + // rangeType: 'custom', beginDate: this.query.createdAt[0], endDate: this.query.createdAt[1], + // beginDate: '2026-01-26', + // endDate: '2026-01-26', shopId: this.shopId }); this.tableData.loading = false; diff --git a/src/views/product/index.vue b/src/views/product/index.vue index e79ea3a..3a0c791 100644 --- a/src/views/product/index.vue +++ b/src/views/product/index.vue @@ -16,7 +16,7 @@ -->