xyvcard-settle 0.0.40 → 0.0.42

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.
Files changed (35) hide show
  1. package/dist/{history-CKm40RN0.mjs → history-Bjxjxy_1.mjs} +1 -1
  2. package/dist/{history-Uv5wF8tp.mjs → history-CyGeajMX.mjs} +1 -1
  3. package/dist/history.vue_vue_type_script_setup_true_lang-DzyW9ohx.mjs +378 -0
  4. package/dist/{history.vue_vue_type_script_setup_true_lang-BlBHinps.mjs → history.vue_vue_type_script_setup_true_lang-dd7Qrf3A.mjs} +111 -127
  5. package/dist/index copy-BMOSe9EZ.mjs +287 -0
  6. package/dist/{index-GI8dQtIV.mjs → index-BA1OfmNb.mjs} +1 -1
  7. package/dist/{index-Ce1JIAp_.mjs → index-BMj5XmMX.mjs} +266 -282
  8. package/dist/{index-DISA5kjA.mjs → index-BpcmzxBU.mjs} +55 -53
  9. package/dist/{index-QIqV4ldo.mjs → index-C-A0Y3EK.mjs} +143 -159
  10. package/dist/index-C6Tt7EGW.mjs +726 -0
  11. package/dist/index-CGyzqfPx.mjs +541 -0
  12. package/dist/index-Csk-TNBj.mjs +313 -0
  13. package/dist/index-Doq8ZiUn.mjs +136 -0
  14. package/dist/{index-BAU8_bL5.mjs → index-DsTHP6ez.mjs} +66 -64
  15. package/dist/{index-BXr-5-X_.mjs → index-I-KFULpq.mjs} +426 -423
  16. package/dist/{index-BF180-Dc.mjs → index-vIbGxvHd.mjs} +2 -2
  17. package/dist/index-x556wvD_.mjs +588 -0
  18. package/dist/index.mjs +1 -1
  19. package/dist/pay-BK10dbR-.mjs +121 -0
  20. package/dist/payPal-C5Hhq3pQ.mjs +118 -0
  21. package/dist/qrcode-success-RhATc5cS.mjs +5 -0
  22. package/dist/style.css +1 -1
  23. package/dist/{today-BBWMuUFc.mjs → today-DYd5N03E.mjs} +1 -1
  24. package/dist/{today.vue_vue_type_script_setup_true_lang-CmzDkIbs.mjs → today.vue_vue_type_script_setup_true_lang-D2JX696c.mjs} +8 -8
  25. package/dts/src/utils/timePlugin.d.ts +1 -0
  26. package/dts/src/views/payment/instsLogin/index copy.vue.d.ts +2 -0
  27. package/package.json +62 -62
  28. package/dist/history.vue_vue_type_script_setup_true_lang-Dj7A2_XH.mjs +0 -457
  29. package/dist/index-BOYpCJFd.mjs +0 -756
  30. package/dist/index-BS-eL0Z5.mjs +0 -238
  31. package/dist/index-CAOauGAU.mjs +0 -605
  32. package/dist/index-Che5xN0z.mjs +0 -603
  33. package/dist/index-Cqpx7sK8.mjs +0 -134
  34. package/dist/pay-ddopuD-7.mjs +0 -98
  35. package/dist/payPal-Bp_Ivr7P.mjs +0 -110
@@ -1,134 +0,0 @@
1
- import { defineComponent as h, ref as _, resolveComponent as c, createElementBlock as y, openBlock as C, createElementVNode as t, createVNode as l, withCtx as d, toDisplayString as o, createTextVNode as g } from "vue";
2
- import { useRouter as D } from "vue-router";
3
- import { T, m as p } from "./trend-C4uCFrLb.mjs";
4
- import { t as Y } from "./tokenExt-SHK5rrb5.mjs";
5
- import { useUserStore as H } from "jmash-core";
6
- import { h as x } from "./index-BXr-5-X_.mjs";
7
- import { C as f } from "./constant-CtDv38CM.mjs";
8
- import { _ as M } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
9
- const b = { class: "app" }, k = { class: "app-title" }, E = { class: "row-container" }, N = { class: "tatals" }, w = { class: "tatal" }, R = { class: "text" }, S = { class: "tatal" }, V = { class: "text" }, B = { class: "tatal" }, I = { class: "text" }, P = { class: "tatal" }, F = { class: "text" }, U = { class: "tatals" }, j = { class: "tatal" }, q = { class: "text" }, z = { class: "tatal" }, G = { class: "text" }, J = { class: "tatal" }, K = { class: "text" }, L = { class: "tatal" }, O = { class: "text" }, Q = { class: "app-title-time" }, W = { class: "chart-header" }, X = /* @__PURE__ */ h({
10
- __name: "index",
11
- setup(Z) {
12
- const i = D(), m = x().format("YYYY-MM-DD"), u = x().subtract(1, "days").format("YYYY-MM-DD"), a = _({}), n = _({});
13
- (async () => {
14
- try {
15
- p.homePageAmount({
16
- analysisTimeStart: m,
17
- analysisTimeEnd: m
18
- }).then((s) => {
19
- n.value = {
20
- orderCount: s.data.orderCount,
21
- tradeAmount: s.data.tradeAmount,
22
- feeAmt: s.data.feeAmt,
23
- settleAmount: s.data.settleAmount
24
- };
25
- }), p.homePageAmount({
26
- analysisTimeStart: u,
27
- analysisTimeEnd: u
28
- }).then((s) => {
29
- a.value = {
30
- orderCount: s.data.orderCount,
31
- tradeAmount: s.data.tradeAmount,
32
- feeAmt: s.data.feeAmt,
33
- settleAmount: s.data.settleAmount
34
- };
35
- });
36
- } catch (s) {
37
- console.error("暂无数据", s);
38
- }
39
- })();
40
- const v = () => {
41
- const s = Y.getCurrentRole(H().user.tenant);
42
- [f.MCHT_CHAIN_HEAD, f.MCHT_CHAIN_BRANCH].includes(
43
- s.storeType
44
- ) ? i.push({
45
- path: "/payment/pay-trade"
46
- }) : i.push({
47
- path: "/payment/pay-trade-personal"
48
- });
49
- };
50
- return (s, e) => {
51
- const r = c("el-card"), A = c("el-button");
52
- return C(), y("div", null, [
53
- t("div", b, [
54
- t("div", k, [
55
- t("div", E, [
56
- l(r, { class: "card-never" }, {
57
- default: d(() => [
58
- e[4] || (e[4] = t("span", { style: { "margin-right": "25%", "font-weight": "bold" } }, "交易数据看板(昨日)", -1)),
59
- t("div", N, [
60
- t("div", w, [
61
- t("text", R, o(a.value.orderCount || 0), 1),
62
- e[0] || (e[0] = t("text", null, "交易笔数", -1))
63
- ]),
64
- t("div", S, [
65
- t("text", V, o(a.value.tradeAmount || 0), 1),
66
- e[1] || (e[1] = t("text", null, " 交易金额", -1))
67
- ]),
68
- t("div", B, [
69
- t("text", I, o(a.value.feeAmt || 0), 1),
70
- e[2] || (e[2] = t("text", null, " 手续费", -1))
71
- ]),
72
- t("div", P, [
73
- t("text", F, o(a.value.settleAmount || "暂无结算"), 1),
74
- e[3] || (e[3] = t("text", null, " 结算金额", -1))
75
- ])
76
- ])
77
- ]),
78
- _: 1
79
- }),
80
- l(r, { class: "card-never" }, {
81
- default: d(() => [
82
- e[9] || (e[9] = t("span", { style: { "margin-right": "25%", "font-weight": "bold" } }, "交易数据看板(今日)", -1)),
83
- t("div", U, [
84
- t("div", j, [
85
- t("text", q, o(n.value.orderCount || 0), 1),
86
- e[5] || (e[5] = t("text", null, "交易笔数", -1))
87
- ]),
88
- t("div", z, [
89
- t("text", G, o(n.value.tradeAmount || 0), 1),
90
- e[6] || (e[6] = t("text", null, " 交易金额", -1))
91
- ]),
92
- t("div", J, [
93
- t("text", K, o(n.value.feeAmt || 0), 1),
94
- e[7] || (e[7] = t("text", null, " 手续费", -1))
95
- ]),
96
- t("div", L, [
97
- t("text", O, o(n.value.settleAmount || "暂无结算"), 1),
98
- e[8] || (e[8] = t("text", null, " 结算金额", -1))
99
- ])
100
- ])
101
- ]),
102
- _: 1
103
- })
104
- ])
105
- ])
106
- ]),
107
- t("div", Q, [
108
- l(r, { class: "card-chart" }, {
109
- default: d(() => [
110
- t("div", W, [
111
- e[11] || (e[11] = t("span", { class: "chart-title" }, " 交易金额趋势   ", -1)),
112
- l(A, {
113
- type: "primary",
114
- link: "",
115
- onClick: v
116
- }, {
117
- default: d(() => e[10] || (e[10] = [
118
- g(" 查看更多 ")
119
- ])),
120
- _: 1
121
- })
122
- ]),
123
- l(T)
124
- ]),
125
- _: 1
126
- })
127
- ])
128
- ]);
129
- };
130
- }
131
- }), rt = /* @__PURE__ */ M(X, [["__scopeId", "data-v-aa61a81b"]]);
132
- export {
133
- rt as default
134
- };
@@ -1,98 +0,0 @@
1
- import { defineComponent as d, ref as l, onMounted as f, onUnmounted as v, createElementBlock as h, openBlock as _ } from "vue";
2
- import { i as y } from "./index--_Po9Tig.mjs";
3
- import { D as o } from "./index-V8g7-RWq.mjs";
4
- import { s as z } from "./index-eUhFgNKx.mjs";
5
- import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
6
- const x = /* @__PURE__ */ d({
7
- __name: "pay",
8
- setup(w) {
9
- o.merchantBizDict.useValues();
10
- const a = l();
11
- let t = null, r = null;
12
- const i = l([]), c = () => {
13
- a.value && (t = y(a.value));
14
- }, u = () => {
15
- if (!t) return;
16
- const n = {
17
- tooltip: {
18
- trigger: "axis",
19
- formatter: (e) => `${e[0].name}<br/>交易金额: ¥${e[0].value.toLocaleString()}`
20
- },
21
- grid: {
22
- left: "1%",
23
- right: "5%",
24
- top: "0",
25
- containLabel: !0
26
- },
27
- yAxis: {
28
- type: "category",
29
- inverse: !0,
30
- data: i.value.map((e) => e.name),
31
- axisLabel: {
32
- formatter: (e) => e.replace(/(.{10})/g, `$1
33
- `)
34
- }
35
- },
36
- xAxis: {
37
- type: "value",
38
- min: 0,
39
- max: 2e4,
40
- interval: 2500,
41
- axisLabel: {
42
- show: !0,
43
- // 确保显示X轴标签
44
- formatter: (e) => `¥${e}`
45
- },
46
- splitLine: {
47
- lineStyle: {
48
- type: "dashed"
49
- }
50
- }
51
- },
52
- series: [
53
- {
54
- data: i.value.map((e) => e.value),
55
- // 调整柱子宽度
56
- barWidth: 40,
57
- label: {
58
- show: !1
59
- // 不展示文字
60
- },
61
- itemStyle: {
62
- color: "#FF8C00"
63
- // 柱状图的颜色为蓝色
64
- },
65
- type: "bar"
66
- // 图表类型为柱状图
67
- }
68
- ]
69
- };
70
- t.setOption(n);
71
- }, m = async () => {
72
- await o.merchantBizDict.useValues();
73
- const n = await z.orderAmount();
74
- i.value = n.data.results.filter((e) => e.merchantId && e.orderAmount).map((e) => ({
75
- name: o.merchantBizDict.getValue(e.merchantId),
76
- value: parseFloat(e.orderAmount)
77
- })).sort((e, p) => p.value - e.value).slice(0, 4), u(), setTimeout(() => {
78
- t && t.resize();
79
- }, 0);
80
- }, s = () => {
81
- t && t.resize();
82
- };
83
- return f(() => {
84
- c(), m(), window.addEventListener("resize", s), a.value && (r = new ResizeObserver(() => {
85
- t && t.resize();
86
- }), r.observe(a.value));
87
- }), v(() => {
88
- window.removeEventListener("resize", s), r && r.disconnect(), t && t.dispose();
89
- }), (n, e) => (_(), h("div", {
90
- ref_key: "container",
91
- ref: a,
92
- class: "chart-container"
93
- }, null, 512));
94
- }
95
- }), C = /* @__PURE__ */ b(x, [["__scopeId", "data-v-2ead2fa1"]]);
96
- export {
97
- C as default
98
- };
@@ -1,110 +0,0 @@
1
- import { defineComponent as m, ref as d, onMounted as c, onBeforeUnmount as v, createElementBlock as y, openBlock as _ } from "vue";
2
- import { i as w } from "./index--_Po9Tig.mjs";
3
- import { s as g } from "./index-eUhFgNKx.mjs";
4
- import { D as h } from "./index-V8g7-RWq.mjs";
5
- import { C as z } from "./constant-CtDv38CM.mjs";
6
- import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
7
- const b = /* @__PURE__ */ m({
8
- __name: "payPal",
9
- setup(L) {
10
- const i = d();
11
- let t = null;
12
- const n = d([]), u = () => ({
13
- tooltip: {
14
- trigger: "item",
15
- position: function(e) {
16
- return [e[0] + 10, e[1] - 30];
17
- },
18
- formatter: (e) => `${e.name}: ¥${e.data.amount} (${e.percent}%)<br/>
19
- 订单数: ${e.data.count}`
20
- },
21
- legend: {
22
- orient: "vertical",
23
- right: 40,
24
- // 增大这个值使图标更靠右
25
- top: "middle",
26
- data: n.value.map((e) => e.name),
27
- formatter: (e) => {
28
- const r = n.value.find((a) => a.name === e);
29
- return `${e} ${r == null ? void 0 : r.value}%`;
30
- },
31
- textStyle: {
32
- fontSize: 12
33
- }
34
- },
35
- series: [
36
- {
37
- type: "pie",
38
- radius: ["40%", "70%"],
39
- avoidLabelOverlap: !1,
40
- label: {
41
- show: !1,
42
- position: "center"
43
- },
44
- emphasis: {
45
- label: {
46
- show: !0,
47
- fontSize: 12,
48
- fontWeight: "bold",
49
- formatter: `{b}
50
- {c}% ({d}%)`
51
- }
52
- },
53
- labelLine: { show: !1 },
54
- data: n.value
55
- }
56
- ]
57
- }), p = async () => {
58
- var e, r;
59
- try {
60
- const a = await g.payModel();
61
- if (!((r = (e = a.data) == null ? void 0 : e.results) != null && r.length))
62
- throw new Error("暂无数据");
63
- const s = a.data.results.reduce(
64
- (o, l) => o + parseFloat(l.orderAmount || 0),
65
- 0
66
- );
67
- n.value = a.data.results.map((o) => {
68
- const l = h.payModeBizDict.getEnumValue(o.payMode) || o.payMode, f = s > 0 ? (parseFloat(o.orderAmount) / s * 100).toFixed(2) : 0;
69
- return {
70
- value: parseFloat(f),
71
- name: l,
72
- amount: o.orderAmount,
73
- // 保留原始金额用于tooltip显示
74
- count: o.orderCount,
75
- // 保留订单数用于tooltip显示
76
- itemStyle: {
77
- color: z.PAYMENT_COLORS[o.payMode]
78
- }
79
- };
80
- }), t == null || t.setOption(u());
81
- } catch {
82
- t == null || t.setOption({
83
- title: {
84
- text: "暂无数据",
85
- left: "center",
86
- top: "center"
87
- }
88
- });
89
- }
90
- };
91
- return c(async () => {
92
- if (!i.value)
93
- return;
94
- t = w(i.value), t.showLoading(), await p(), t.hideLoading();
95
- const e = () => {
96
- t == null || t.resize();
97
- };
98
- window.addEventListener("resize", e), e();
99
- }), v(() => {
100
- window.removeEventListener("resize", () => t == null ? void 0 : t.resize()), t == null || t.dispose();
101
- }), (e, r) => (_(), y("div", {
102
- ref_key: "chartContainer",
103
- ref: i,
104
- class: "chart-container"
105
- }, null, 512));
106
- }
107
- }), D = /* @__PURE__ */ C(b, [["__scopeId", "data-v-920a5a5f"]]);
108
- export {
109
- D as default
110
- };