diff --git a/src/views/data/index.vue b/src/views/data/index.vue
index c99c4ba..c321ac8 100644
--- a/src/views/data/index.vue
+++ b/src/views/data/index.vue
@@ -53,13 +53,13 @@
- 今天
- 昨天
- 最近7天
- 最近30天
- 本周
- 本月
- 自定义
+ 今天
+ 昨天
+ 最近7天
+ 最近30天
+ 本周
+ 本月
+ 自定义
-
{{ formatDecimal(trade.saleAmount || 0) }}
+
{{ formatDecimal(yingyeShiShou || 0) }}
营业实收(元)
@@ -88,35 +88,42 @@
微信小程序
-
{{ trade.wechatPayCount }}
+
{{ trade.wechatPayAmount }}
支付宝小程序
-
{{ trade.aliPayCount }}
+
{{ trade.aliPayAmount }}
主扫收款
-
{{ trade.scanPayCount }}
+
{{ trade.scanPayAmount }}
现金
-
{{ trade.cashPayCount }}
+
{{ trade.cashPayAmount }}
+
+
+
+

+
充值
+
+
{{ trade.rechargeAmount }}
挂账
-
{{ trade.creditPayCount }}
+
{{ trade.creditPayAmount }}
@@ -135,7 +142,9 @@
class="gropress l"
:style="{
width: `${
- trade.refundAmount ? (trade.refundAmount / trade.saleAmount) * 100 : 0
+ trade.saleAmount
+ ? (trade.saleAmount / (trade.saleAmount * 1 + trade.refundAmount)) * 100
+ : 0
}%`,
}"
>
@@ -143,7 +152,9 @@
class="gropress r"
:style="{
width: `${
- trade.refundAmount ? (trade.refundAmount / trade.saleAmount) * 100 : 0
+ trade.refundAmount
+ ? (trade.refundAmount / (trade.saleAmount * 1 + trade.refundAmount)) * 100
+ : 0
}%`,
}"
>
@@ -274,8 +285,8 @@
- 近7天
- 30天
+ 近7天
+ 30天
- 近7天
- 30天
+ 近7天
+ 30天
@@ -451,6 +462,21 @@ export default {
tradeCount: "",
};
},
+ computed: {
+ yingyeShiShou() {
+ if (!this.trade) {
+ return 0;
+ }
+ return (
+ this.trade.wechatPayAmount * 1 +
+ this.trade.aliPayAmount * 1 +
+ this.trade.aliPayAmount * 1 +
+ this.trade.memberPayAmount * 1 +
+ this.trade.scanPayAmount * 1 +
+ this.trade.cashPayAmount * 1
+ );
+ },
+ },
mounted() {
// 增加首页提示是否账号30天过期
let date = dayjs(localStorage.getItem("expireDate")).diff(dayjs().format("YYYY-MM-DD"), "day");
@@ -780,9 +806,7 @@ export default {
axisLabel: {
rotate: time.length <= 7 ? 0 : 45,
interval: 0,
- textStyle: {
- fontSize: "9",
- },
+ fontSize: "9",
},
},
],
@@ -1113,14 +1137,6 @@ export default {
async summaryDateGet(res) {
try {
console.log(res);
-
- // const res = await summaryDateGet(this.saleTableActive);
- let p1 = [res.map((item) => item.tradeDay), res.map((item) => item.saleNum)];
- let p2 = [res.map((item) => item.tradeDay), res.map((item) => item.saleAmount)];
-
- // console.log(p1);
- // console.log(p2);
-
// this.initProduceChart(p1, p2);
} catch (error) {
console.log(error);
diff --git a/src/views/shop/log/config/content.ts b/src/views/shop/log/config/content.ts
index 8eece87..9df5700 100644
--- a/src/views/shop/log/config/content.ts
+++ b/src/views/shop/log/config/content.ts
@@ -51,11 +51,11 @@ const contentConfig: IContentConfig = {
align: "center",
prop: "operation",
},
- {
- label: "请求Url",
- align: "center",
- prop: "requestUri",
- },
+ // {
+ // label: "请求Url",
+ // align: "center",
+ // prop: "requestUri",
+ // },
{
label: "请求耗时",
align: "center",
diff --git a/src/views/system-setting/pay-types/config/config.ts b/src/views/system-setting/pay-types/config/config.ts
index b788d68..2896fdb 100644
--- a/src/views/system-setting/pay-types/config/config.ts
+++ b/src/views/system-setting/pay-types/config/config.ts
@@ -16,7 +16,6 @@ const options: optionObject = {
{ label: "刷卡", value: "deposit" },
{ label: "挂单", value: "arrears" },
{ label: "刷卡", value: "deposit" },
- { label: "储值", value: "member-account" },
{ label: "自定义", value: "virtual" },
],
isIdeal: [
diff --git a/src/views/tool/table/index.vue b/src/views/tool/table/index.vue
index 5f717c0..b78be64 100644
--- a/src/views/tool/table/index.vue
+++ b/src/views/tool/table/index.vue
@@ -227,6 +227,8 @@