xyvcard-settle 0.0.29 → 0.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-DLZe5r2w.mjs → index--o4ZWReA.mjs} +5 -5
- package/dist/{index-YVLogsg5.mjs → index-B1UFTEsC.mjs} +1 -1
- package/dist/{index-CIqcivMU.mjs → index-BM61iHRQ.mjs} +4 -4
- package/dist/{index-Ch1vmuQD.mjs → index-CvjcvAnl.mjs} +1 -1
- package/dist/{index-CtoZhVcI.mjs → index-DKQWmgM5.mjs} +16 -16
- package/dist/index.mjs +1 -1
- package/dist/{merchant-DLx9AYoM.mjs → merchant-DsvLGGd5.mjs} +1 -1
- package/dist/{merchant.vue_vue_type_script_setup_true_lang-Bxb9bzqv.mjs → merchant.vue_vue_type_script_setup_true_lang-DE1LaeW5.mjs} +24 -22
- package/dist/{pay-C08cbM_l.mjs → pay-Dd7_FYzt.mjs} +9 -9
- package/dist/{payPal-nXPX-3pm.mjs → payPal-BEW7zVSJ.mjs} +15 -15
- package/dist/{payPal-D2I3WIqV.mjs → payPal-BVXwPotf.mjs} +4 -5
- package/dist/style.css +1 -1
- package/dist/{trend-pbYAF-aS.mjs → trend-DMpZSOlJ.mjs} +2 -2
- package/dist/{trend-BOA_Pwtn.mjs → trend-iT9IXU1F.mjs} +2 -2
- package/package.json +1 -1
|
@@ -2694,7 +2694,7 @@ const Ci = {
|
|
|
2694
2694
|
}
|
|
2695
2695
|
};
|
|
2696
2696
|
}
|
|
2697
|
-
}, Li = [], Ii = () => import("./index-DsIwC6AS.mjs"),
|
|
2697
|
+
}, Li = [], Ii = () => import("./index-DsIwC6AS.mjs"), ji = () => import("./index-B1UFTEsC.mjs"), Hi = () => import("./index-BM61iHRQ.mjs"), zi = () => import("./index-DKQWmgM5.mjs"), Ui = [
|
|
2698
2698
|
{
|
|
2699
2699
|
path: "/redirect",
|
|
2700
2700
|
component: ze,
|
|
@@ -2736,8 +2736,8 @@ const Ci = {
|
|
|
2736
2736
|
path: "/dashboard",
|
|
2737
2737
|
// component: DashboardPage,
|
|
2738
2738
|
// component: merchantHomePage,
|
|
2739
|
-
// component: agentHomePage,
|
|
2740
2739
|
component: Hi,
|
|
2740
|
+
// component: pintaiHomePage,
|
|
2741
2741
|
name: "Dashboard",
|
|
2742
2742
|
// 用于 keep-alive, 必须与SFC自动推导或者显示声明的组件name一致
|
|
2743
2743
|
// https://cn.vuejs.org/guide/built-ins/keep-alive.html#include-exclude
|
|
@@ -2769,17 +2769,17 @@ const Ci = {
|
|
|
2769
2769
|
scrollBehavior: () => ({ left: 0, top: 0 })
|
|
2770
2770
|
});
|
|
2771
2771
|
Ts.value = Ai;
|
|
2772
|
-
const Ei = /* @__PURE__ */ Object.assign({ "./views/payment/agentHomePage/index.vue": () => import("./index-
|
|
2772
|
+
const Ei = /* @__PURE__ */ Object.assign({ "./views/payment/agentHomePage/index.vue": () => import("./index-BM61iHRQ.mjs"), "./views/payment/agentHomePage/merchant.vue": () => import("./merchant-DsvLGGd5.mjs"), "./views/payment/agentHomePage/pay.vue": () => import("./pay-Dd7_FYzt.mjs"), "./views/payment/agentHomePage/payPal.vue": () => import("./payPal-BVXwPotf.mjs"), "./views/payment/agentHomePage/sale.vue": () => import("./sale-BR1khQTm.mjs"), "./views/payment/agentHomePage/trend.vue": () => import("./trend-DMpZSOlJ.mjs"), "./views/payment/instHomePage/index.vue": () => import("./index-B1UFTEsC.mjs"), "./views/payment/instHomePage/pay.vue": () => import("./pay-DW3Una4C.mjs"), "./views/payment/instHomePage/payPal.vue": () => import("./payPal-BEW7zVSJ.mjs"), "./views/payment/instHomePage/trend.vue": () => import("./trend-D8pStiQ5.mjs"), "./views/payment/instsLogin/index.vue": () => import("./index-DsIwC6AS.mjs"), "./views/payment/merchantHomePage/index.vue": () => import("./index-DKQWmgM5.mjs"), "./views/payment/merchantHomePage/trend.vue": () => import("./trend-iT9IXU1F.mjs").then((e) => e.t), "./views/payment/pay-trade-personal/index.vue": () => import("./index-76q1nUof.mjs"), "./views/payment/pay-trade/index.vue": () => import("./index-CvjcvAnl.mjs"), "./views/payment/settle-trade-analysis/index.vue": () => import("./index-COYrjW5J.mjs"), "./views/payment/settle-trade-merchant-personal/index.vue": () => import("./index-Dvvgkcti.mjs"), "./views/payment/settle-trade-merchant/index.vue": () => import("./index-CCNRK-gM.mjs"), "./views/payment/settle-trade-receipt-personal/history.vue": () => import("./history-BXKJJt23.mjs"), "./views/payment/settle-trade-receipt-personal/index.vue": () => import("./index-CGM4zfi2.mjs"), "./views/payment/settle-trade-receipt-personal/today.vue": () => import("./today-DOoqfysH.mjs"), "./views/payment/settle-trade-receipt/history.vue": () => import("./history-CyoZ9H0t.mjs"), "./views/payment/settle-trade-receipt/index.vue": () => import("./index-h0Y7fyQp.mjs"), "./views/payment/settle-trade-receipt/today.vue": () => import("./today-CMdgJzD1.mjs") }), Zi = {
|
|
2773
2773
|
install(e) {
|
|
2774
2774
|
xs(Ei, 7), Ws(bs), e.use(Ci);
|
|
2775
2775
|
}
|
|
2776
2776
|
};
|
|
2777
2777
|
export {
|
|
2778
|
-
|
|
2778
|
+
Hi as a,
|
|
2779
2779
|
Ii as b,
|
|
2780
2780
|
l as h,
|
|
2781
2781
|
zi as m,
|
|
2782
|
-
|
|
2782
|
+
ji as p,
|
|
2783
2783
|
Ai as r,
|
|
2784
2784
|
Zi as s
|
|
2785
2785
|
};
|
|
@@ -2,7 +2,7 @@ import { defineComponent as M, getCurrentInstance as A, ref as p, onMounted as T
|
|
|
2
2
|
import { useRouter as V } from "vue-router";
|
|
3
3
|
import { s as k } from "./index-eUhFgNKx.mjs";
|
|
4
4
|
import E from "./pay-DW3Una4C.mjs";
|
|
5
|
-
import S from "./payPal-
|
|
5
|
+
import S from "./payPal-BEW7zVSJ.mjs";
|
|
6
6
|
import b from "./trend-D8pStiQ5.mjs";
|
|
7
7
|
import { C as N } from "./index-CpuvJ4Tw.mjs";
|
|
8
8
|
import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
@@ -2,11 +2,11 @@ import { defineComponent as g, ref as u, onMounted as C, getCurrentInstance as E
|
|
|
2
2
|
import { useRouter as R } from "vue-router";
|
|
3
3
|
import { s as w } from "./index-zsIaZMNT.mjs";
|
|
4
4
|
import { C as p } from "./index-CpuvJ4Tw.mjs";
|
|
5
|
-
import P from "./pay-
|
|
6
|
-
import S from "./payPal-
|
|
7
|
-
import V from "./trend-
|
|
5
|
+
import P from "./pay-Dd7_FYzt.mjs";
|
|
6
|
+
import S from "./payPal-BVXwPotf.mjs";
|
|
7
|
+
import V from "./trend-DMpZSOlJ.mjs";
|
|
8
8
|
import { _ as I } from "./sale.vue_vue_type_script_setup_true_lang-W8968hkL.mjs";
|
|
9
|
-
import { _ as b } from "./merchant.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { _ as b } from "./merchant.vue_vue_type_script_setup_true_lang-DE1LaeW5.mjs";
|
|
10
10
|
import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
11
11
|
const F = { class: "app" }, O = { class: "app-title" }, N = { class: "row-container" }, B = { class: "title" }, q = { class: "tatals" }, Q = { class: "tatal" }, U = { class: "text" }, j = { class: "tatal" }, z = { class: "text" }, G = { class: "tatal" }, H = { class: "text" }, J = { class: "tatal" }, K = { class: "text" }, L = { class: "app-title pay-model" }, W = { class: "title taxt_time_laft" }, X = { class: "text_time" }, Z = { class: "title taxt_time_laft" }, tt = { class: "text_time" }, et = { class: "title taxt_time_laft" }, st = { class: "text_time" }, at = { class: "app-title-time" }, ot = { class: "chart-header" }, nt = { class: "chart-title" }, lt = { class: "text_time" }, it = /* @__PURE__ */ g({
|
|
12
12
|
__name: "index",
|
|
@@ -4,7 +4,7 @@ import { useRoute as ne } from "vue-router";
|
|
|
4
4
|
import { useUserStore as z, clearEmpty as de, request as se, useTableHooks as ue } from "jmash-core";
|
|
5
5
|
import { D as y, C as P } from "./index-CpuvJ4Tw.mjs";
|
|
6
6
|
import { tokenExt as U } from "xyvcard-agent";
|
|
7
|
-
import { r as pe } from "./index
|
|
7
|
+
import { r as pe } from "./index--o4ZWReA.mjs";
|
|
8
8
|
class ie {
|
|
9
9
|
getKey(i) {
|
|
10
10
|
return {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as A, ref as
|
|
1
|
+
import { defineComponent as A, ref as c, resolveComponent as _, createElementBlock as h, openBlock as y, createElementVNode as t, createVNode as l, withCtx as r, toDisplayString as s, createTextVNode as C } from "vue";
|
|
2
2
|
import { useRouter as g } from "vue-router";
|
|
3
|
-
import { T as D, m as p } from "./trend-
|
|
4
|
-
import { h as x } from "./index
|
|
3
|
+
import { T as D, m as p } from "./trend-iT9IXU1F.mjs";
|
|
4
|
+
import { h as x } from "./index--o4ZWReA.mjs";
|
|
5
5
|
import { t as T } from "./tokenExt-SHK5rrb5.mjs";
|
|
6
6
|
import { useUserStore as Y } from "jmash-core";
|
|
7
7
|
import { _ as H } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
8
|
-
const M = { class: "app" },
|
|
8
|
+
const M = { class: "app" }, k = { class: "app-title" }, E = { class: "row-container" }, N = { class: "tatals" }, b = { class: "tatal" }, w = { class: "text" }, R = { class: "tatal" }, S = { class: "text" }, V = { class: "tatal" }, B = { class: "text" }, I = { class: "tatal" }, P = { class: "text" }, F = { class: "tatals" }, U = { class: "tatal" }, j = { class: "text" }, q = { class: "tatal" }, z = { class: "text" }, G = { class: "tatal" }, J = { class: "text" }, K = { class: "tatal" }, L = { class: "text" }, O = { class: "app-title-time" }, Q = { class: "chart-header" }, W = /* @__PURE__ */ A({
|
|
9
9
|
__name: "index",
|
|
10
10
|
setup(X) {
|
|
11
|
-
const i = g(), m = x().format("YYYY-MM-DD"), u = x().subtract(1, "days").format("YYYY-MM-DD"), a =
|
|
11
|
+
const i = g(), m = x().format("YYYY-MM-DD"), u = x().subtract(1, "days").format("YYYY-MM-DD"), a = c({}), n = c({});
|
|
12
12
|
(async () => {
|
|
13
13
|
try {
|
|
14
14
|
p.homePageAmount({
|
|
@@ -33,10 +33,10 @@ const M = { class: "app" }, b = { class: "app-title" }, k = { class: "row-contai
|
|
|
33
33
|
};
|
|
34
34
|
});
|
|
35
35
|
} catch (o) {
|
|
36
|
-
console.error("
|
|
36
|
+
console.error("暂无数据", o);
|
|
37
37
|
}
|
|
38
38
|
})();
|
|
39
|
-
const
|
|
39
|
+
const f = () => {
|
|
40
40
|
const o = T.getCurrentRole(Y().user.tenant);
|
|
41
41
|
["MCHT_CHAIN_HEAD", "MCHT_CHAIN_BRANCH"].includes(o.storeType) ? i.push({
|
|
42
42
|
path: "/payment/pay-trade"
|
|
@@ -45,16 +45,16 @@ const M = { class: "app" }, b = { class: "app-title" }, k = { class: "row-contai
|
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
47
|
return (o, e) => {
|
|
48
|
-
const d =
|
|
48
|
+
const d = _("el-card"), v = _("el-button");
|
|
49
49
|
return y(), h("div", null, [
|
|
50
50
|
t("div", M, [
|
|
51
|
-
t("div",
|
|
52
|
-
t("div",
|
|
51
|
+
t("div", k, [
|
|
52
|
+
t("div", E, [
|
|
53
53
|
l(d, { class: "card-never" }, {
|
|
54
54
|
default: r(() => [
|
|
55
55
|
e[4] || (e[4] = t("span", { style: { "margin-right": "25%", "font-weight": "bold" } }, "交易数据看板(昨日)", -1)),
|
|
56
|
-
t("div",
|
|
57
|
-
t("div",
|
|
56
|
+
t("div", N, [
|
|
57
|
+
t("div", b, [
|
|
58
58
|
t("text", w, s(a.value.orderCount || 0), 1),
|
|
59
59
|
e[0] || (e[0] = t("text", null, "交易笔数", -1))
|
|
60
60
|
]),
|
|
@@ -68,7 +68,7 @@ const M = { class: "app" }, b = { class: "app-title" }, k = { class: "row-contai
|
|
|
68
68
|
]),
|
|
69
69
|
t("div", I, [
|
|
70
70
|
t("text", P, s(a.value.settleAmount || "暂无结算"), 1),
|
|
71
|
-
e[3] || (e[3] = t("text", null, "
|
|
71
|
+
e[3] || (e[3] = t("text", null, " 结算金额", -1))
|
|
72
72
|
])
|
|
73
73
|
])
|
|
74
74
|
]),
|
|
@@ -106,10 +106,10 @@ const M = { class: "app" }, b = { class: "app-title" }, k = { class: "row-contai
|
|
|
106
106
|
default: r(() => [
|
|
107
107
|
t("div", Q, [
|
|
108
108
|
e[11] || (e[11] = t("span", { class: "chart-title" }, " 交易金额趋势 ", -1)),
|
|
109
|
-
l(
|
|
109
|
+
l(v, {
|
|
110
110
|
type: "primary",
|
|
111
111
|
link: "",
|
|
112
|
-
onClick:
|
|
112
|
+
onClick: f
|
|
113
113
|
}, {
|
|
114
114
|
default: r(() => e[10] || (e[10] = [
|
|
115
115
|
C(" 查看更多 ")
|
|
@@ -125,7 +125,7 @@ const M = { class: "app" }, b = { class: "app-title" }, k = { class: "row-contai
|
|
|
125
125
|
]);
|
|
126
126
|
};
|
|
127
127
|
}
|
|
128
|
-
}), lt = /* @__PURE__ */ H(W, [["__scopeId", "data-v-
|
|
128
|
+
}), lt = /* @__PURE__ */ H(W, [["__scopeId", "data-v-cff3a844"]]);
|
|
129
129
|
export {
|
|
130
130
|
lt as default
|
|
131
131
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -1,35 +1,37 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { _ as b, a as
|
|
3
|
-
import { rbacApi as
|
|
4
|
-
import {
|
|
1
|
+
import { defineComponent as d, ref as u, resolveComponent as c, createBlock as f, openBlock as a, withCtx as t, createVNode as n, createElementBlock as r, toDisplayString as l, createElementVNode as m, createCommentVNode as h, unref as k, createTextVNode as y } from "vue";
|
|
2
|
+
import { _ as b, a as g, b as N } from "./three-BE8B3lbG.mjs";
|
|
3
|
+
import { rbacApi as x } from "jmash-rbac";
|
|
4
|
+
import { tokenExt as B } from "xyvcard-agent";
|
|
5
|
+
import { s as E } from "./index-zsIaZMNT.mjs";
|
|
6
|
+
import { useUserStore as w } from "jmash-core";
|
|
5
7
|
const C = {
|
|
6
8
|
key: 0,
|
|
7
9
|
src: b,
|
|
8
10
|
alt: "第一名"
|
|
9
11
|
}, V = {
|
|
10
12
|
key: 1,
|
|
11
|
-
src:
|
|
13
|
+
src: g,
|
|
12
14
|
alt: "第二名"
|
|
13
15
|
}, v = {
|
|
14
16
|
key: 2,
|
|
15
|
-
src:
|
|
17
|
+
src: N,
|
|
16
18
|
alt: "第三名"
|
|
17
|
-
}, M = { key: 3 },
|
|
19
|
+
}, M = { key: 3 }, A = { key: 0 }, z = /* @__PURE__ */ d({
|
|
18
20
|
__name: "merchant",
|
|
19
|
-
setup(
|
|
20
|
-
const
|
|
21
|
-
return
|
|
22
|
-
|
|
23
|
-
}), (
|
|
24
|
-
const s = c("el-table-column"),
|
|
25
|
-
return a(), f(
|
|
21
|
+
setup(D) {
|
|
22
|
+
const p = u([]);
|
|
23
|
+
return E.newMerchant({ tokenExt: B.getTokenExt(w().user.tenant) }).then((_) => {
|
|
24
|
+
p.value = _.data.agentMerchantNumModel;
|
|
25
|
+
}), (_, o) => {
|
|
26
|
+
const s = c("el-table-column"), i = c("el-table");
|
|
27
|
+
return a(), f(i, {
|
|
26
28
|
style: { width: "100%" },
|
|
27
29
|
"show-header": !0,
|
|
28
30
|
"empty-text": "暂无数据",
|
|
29
|
-
data:
|
|
31
|
+
data: p.value
|
|
30
32
|
}, {
|
|
31
33
|
default: t(() => [
|
|
32
|
-
|
|
34
|
+
n(s, {
|
|
33
35
|
label: "排名",
|
|
34
36
|
width: "100"
|
|
35
37
|
}, {
|
|
@@ -37,11 +39,11 @@ const C = {
|
|
|
37
39
|
m("span", { style: { color: "#f5782d" } }, "排名", -1)
|
|
38
40
|
])),
|
|
39
41
|
default: t(({ $index: e }) => [
|
|
40
|
-
e === 0 ? (a(), r("img", C)) : e === 1 ? (a(), r("img", V)) : e === 2 ? (a(), r("img", v)) : (a(), r("span", M,
|
|
42
|
+
e === 0 ? (a(), r("img", C)) : e === 1 ? (a(), r("img", V)) : e === 2 ? (a(), r("img", v)) : (a(), r("span", M, l(e + 1), 1))
|
|
41
43
|
]),
|
|
42
44
|
_: 1
|
|
43
45
|
}),
|
|
44
|
-
|
|
46
|
+
n(s, {
|
|
45
47
|
prop: "salesName",
|
|
46
48
|
label: "销售人员"
|
|
47
49
|
}, {
|
|
@@ -49,11 +51,11 @@ const C = {
|
|
|
49
51
|
m("span", { style: { color: "#f5782d" } }, "销售人员", -1)
|
|
50
52
|
])),
|
|
51
53
|
default: t(({ row: e }) => [
|
|
52
|
-
e.marketBy ? (a(), r("span",
|
|
54
|
+
e.marketBy ? (a(), r("span", A, l(k(x).userInfo(e.marketBy).realName), 1)) : h("", !0)
|
|
53
55
|
]),
|
|
54
56
|
_: 1
|
|
55
57
|
}),
|
|
56
|
-
|
|
58
|
+
n(s, {
|
|
57
59
|
prop: "amount",
|
|
58
60
|
label: "交易金额",
|
|
59
61
|
align: "right"
|
|
@@ -62,7 +64,7 @@ const C = {
|
|
|
62
64
|
m("span", { style: { color: "#f5782d" } }, "新增商户", -1)
|
|
63
65
|
])),
|
|
64
66
|
default: t(({ row: e }) => [
|
|
65
|
-
|
|
67
|
+
y(l(e.merchantNum) + "家", 1)
|
|
66
68
|
]),
|
|
67
69
|
_: 1
|
|
68
70
|
})
|
|
@@ -73,5 +75,5 @@ const C = {
|
|
|
73
75
|
}
|
|
74
76
|
});
|
|
75
77
|
export {
|
|
76
|
-
|
|
78
|
+
z as _
|
|
77
79
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as p, ref as l, onMounted as f, onUnmounted as v, createElementBlock as h, openBlock as _ } from "vue";
|
|
2
2
|
import { s as y } from "./index-zsIaZMNT.mjs";
|
|
3
|
-
import { i as
|
|
3
|
+
import { i as z } from "./index--_Po9Tig.mjs";
|
|
4
4
|
import { D as i } from "./index-CpuvJ4Tw.mjs";
|
|
5
|
-
import { _ as
|
|
6
|
-
const w = /* @__PURE__ */
|
|
5
|
+
import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
6
|
+
const w = /* @__PURE__ */ p({
|
|
7
7
|
__name: "pay",
|
|
8
8
|
setup(x) {
|
|
9
9
|
i.merchantBizDict.useValues();
|
|
10
10
|
const a = l();
|
|
11
11
|
let t = null, n = null;
|
|
12
12
|
const o = l([]), c = () => {
|
|
13
|
-
a.value && (t =
|
|
13
|
+
a.value && (t = z(a.value));
|
|
14
14
|
}, u = () => {
|
|
15
15
|
if (!t) return;
|
|
16
16
|
const r = {
|
|
@@ -74,16 +74,16 @@ const w = /* @__PURE__ */ f({
|
|
|
74
74
|
o.value = r.data.results.filter((e) => e.merchantId && e.orderAmount).map((e) => ({
|
|
75
75
|
name: i.merchantBizDict.getValue(e.merchantId),
|
|
76
76
|
value: parseFloat(e.orderAmount)
|
|
77
|
-
})).sort((e,
|
|
77
|
+
})).sort((e, d) => d.value - e.value).slice(0, 4), u(), setTimeout(() => {
|
|
78
78
|
t && t.resize();
|
|
79
79
|
}, 0);
|
|
80
80
|
} catch (r) {
|
|
81
|
-
console.error("
|
|
81
|
+
console.error("暂无数据", r);
|
|
82
82
|
}
|
|
83
83
|
}, s = () => {
|
|
84
84
|
t && t.resize();
|
|
85
85
|
};
|
|
86
|
-
return
|
|
86
|
+
return f(() => {
|
|
87
87
|
c(), m(), window.addEventListener("resize", s), a.value && (n = new ResizeObserver(() => {
|
|
88
88
|
t && t.resize();
|
|
89
89
|
}), n.observe(a.value));
|
|
@@ -95,7 +95,7 @@ const w = /* @__PURE__ */ f({
|
|
|
95
95
|
class: "chart-container"
|
|
96
96
|
}, null, 512));
|
|
97
97
|
}
|
|
98
|
-
}), C = /* @__PURE__ */
|
|
98
|
+
}), C = /* @__PURE__ */ b(w, [["__scopeId", "data-v-efd8add5"]]);
|
|
99
99
|
export {
|
|
100
100
|
C as default
|
|
101
101
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as c, ref as d, onMounted as m, onBeforeUnmount as v, createElementBlock as y, openBlock as _ } from "vue";
|
|
2
2
|
import { i as w } from "./index--_Po9Tig.mjs";
|
|
3
3
|
import { s as g } from "./index-eUhFgNKx.mjs";
|
|
4
|
-
import { D as h, C as
|
|
5
|
-
import { _ as
|
|
6
|
-
const
|
|
4
|
+
import { D as h, C as z } from "./index-CpuvJ4Tw.mjs";
|
|
5
|
+
import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
6
|
+
const b = /* @__PURE__ */ c({
|
|
7
7
|
__name: "payPal",
|
|
8
8
|
setup(L) {
|
|
9
9
|
const i = d();
|
|
@@ -24,8 +24,8 @@ const C = /* @__PURE__ */ c({
|
|
|
24
24
|
top: "middle",
|
|
25
25
|
data: n.value.map((e) => e.name),
|
|
26
26
|
formatter: (e) => {
|
|
27
|
-
const
|
|
28
|
-
return `${e} ${
|
|
27
|
+
const a = n.value.find((r) => r.name === e);
|
|
28
|
+
return `${e} ${a == null ? void 0 : a.value}%`;
|
|
29
29
|
},
|
|
30
30
|
textStyle: {
|
|
31
31
|
fontSize: 12
|
|
@@ -54,16 +54,16 @@ const C = /* @__PURE__ */ c({
|
|
|
54
54
|
}
|
|
55
55
|
]
|
|
56
56
|
}), p = async () => {
|
|
57
|
-
var e,
|
|
57
|
+
var e, a;
|
|
58
58
|
try {
|
|
59
|
-
const
|
|
60
|
-
if (!((
|
|
61
|
-
throw new Error("
|
|
62
|
-
const s =
|
|
59
|
+
const r = await g.payModel();
|
|
60
|
+
if (!((a = (e = r.data) == null ? void 0 : e.results) != null && a.length))
|
|
61
|
+
throw new Error("暂无数据");
|
|
62
|
+
const s = r.data.results.reduce(
|
|
63
63
|
(o, l) => o + parseFloat(l.orderAmount || 0),
|
|
64
64
|
0
|
|
65
65
|
);
|
|
66
|
-
n.value =
|
|
66
|
+
n.value = r.data.results.map((o) => {
|
|
67
67
|
const l = h.payModeBizDict.getEnumValue(o.payMode) || o.payMode, f = s > 0 ? (parseFloat(o.orderAmount) / s * 100).toFixed(2) : 0;
|
|
68
68
|
return {
|
|
69
69
|
value: parseFloat(f),
|
|
@@ -73,14 +73,14 @@ const C = /* @__PURE__ */ c({
|
|
|
73
73
|
count: o.orderCount,
|
|
74
74
|
// 保留订单数用于tooltip显示
|
|
75
75
|
itemStyle: {
|
|
76
|
-
color:
|
|
76
|
+
color: z.PAYMENT_COLORS[o.payMode]
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
79
|
}), t == null || t.setOption(u());
|
|
80
80
|
} catch {
|
|
81
81
|
t == null || t.setOption({
|
|
82
82
|
title: {
|
|
83
|
-
text: "
|
|
83
|
+
text: "暂无数据",
|
|
84
84
|
left: "center",
|
|
85
85
|
top: "center"
|
|
86
86
|
}
|
|
@@ -97,13 +97,13 @@ const C = /* @__PURE__ */ c({
|
|
|
97
97
|
window.addEventListener("resize", e), e();
|
|
98
98
|
}), v(() => {
|
|
99
99
|
window.removeEventListener("resize", () => t == null ? void 0 : t.resize()), t == null || t.dispose();
|
|
100
|
-
}), (e,
|
|
100
|
+
}), (e, a) => (_(), y("div", {
|
|
101
101
|
ref_key: "chartContainer",
|
|
102
102
|
ref: i,
|
|
103
103
|
class: "chart-container"
|
|
104
104
|
}, null, 512));
|
|
105
105
|
}
|
|
106
|
-
}), $ = /* @__PURE__ */
|
|
106
|
+
}), $ = /* @__PURE__ */ C(b, [["__scopeId", "data-v-920a5a5f"]]);
|
|
107
107
|
export {
|
|
108
108
|
$ as default
|
|
109
109
|
};
|
|
@@ -5,7 +5,7 @@ import { D as h, C as w } from "./index-CpuvJ4Tw.mjs";
|
|
|
5
5
|
import { _ as z } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
6
6
|
const C = /* @__PURE__ */ c({
|
|
7
7
|
__name: "payPal",
|
|
8
|
-
setup(
|
|
8
|
+
setup(S) {
|
|
9
9
|
const i = d();
|
|
10
10
|
let e = null;
|
|
11
11
|
const r = d([]), u = () => ({
|
|
@@ -63,7 +63,7 @@ const C = /* @__PURE__ */ c({
|
|
|
63
63
|
try {
|
|
64
64
|
const n = await g.payModel({});
|
|
65
65
|
if (!((a = (t = n.data) == null ? void 0 : t.results) != null && a.length))
|
|
66
|
-
throw new Error("
|
|
66
|
+
throw new Error("暂无数据");
|
|
67
67
|
const s = n.data.results.reduce(
|
|
68
68
|
(o, l) => o + parseFloat(l.orderAmount || 0),
|
|
69
69
|
0
|
|
@@ -83,8 +83,7 @@ const C = /* @__PURE__ */ c({
|
|
|
83
83
|
} catch (n) {
|
|
84
84
|
console.error("支付方式数据加载失败:", n), e == null || e.setOption({
|
|
85
85
|
title: {
|
|
86
|
-
text: "
|
|
87
|
-
subtext: "请稍后重试",
|
|
86
|
+
text: "暂无数据",
|
|
88
87
|
left: "center",
|
|
89
88
|
top: "center",
|
|
90
89
|
textStyle: {
|
|
@@ -107,7 +106,7 @@ const C = /* @__PURE__ */ c({
|
|
|
107
106
|
class: "chart-container"
|
|
108
107
|
}, null, 512));
|
|
109
108
|
}
|
|
110
|
-
}), O = /* @__PURE__ */ z(C, [["__scopeId", "data-v-
|
|
109
|
+
}), O = /* @__PURE__ */ z(C, [["__scopeId", "data-v-15ebef5f"]]);
|
|
111
110
|
export {
|
|
112
111
|
O as default
|
|
113
112
|
};
|