xyvcard-settle 0.0.43 → 0.0.45
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/agent-R-Ml-XTA.mjs +32 -0
- package/dist/{history-Bjxjxy_1.mjs → history-B3jtcAZ7.mjs} +1 -1
- package/dist/{history-CyGeajMX.mjs → history-DCwgJuDo.mjs} +1 -1
- package/dist/{history.vue_vue_type_script_setup_true_lang-DzyW9ohx.mjs → history.vue_vue_type_script_setup_true_lang-BoqPcTMS.mjs} +134 -147
- package/dist/{history.vue_vue_type_script_setup_true_lang-dd7Qrf3A.mjs → history.vue_vue_type_script_setup_true_lang-DO3kL3x0.mjs} +74 -73
- package/dist/{index-vIbGxvHd.mjs → index-B8Y2esGZ.mjs} +2 -2
- package/dist/{index-x556wvD_.mjs → index-BJDG5RJu.mjs} +214 -228
- package/dist/{index-Csk-TNBj.mjs → index-BOrI7JtW.mjs} +2 -2
- package/dist/{index-BA1OfmNb.mjs → index-BVMo8bBb.mjs} +2 -2
- package/dist/index-CGc-CaEO.mjs +91 -0
- package/dist/{index-BpcmzxBU.mjs → index-CWRtxckQ.mjs} +3 -3
- package/dist/{index-C-A0Y3EK.mjs → index-ClDxB7Ty.mjs} +47 -51
- package/dist/{index-CGyzqfPx.mjs → index-DSAnrTJ1.mjs} +210 -222
- package/dist/{index-DsTHP6ez.mjs → index-DcjjaDUk.mjs} +46 -46
- package/dist/{index-I-KFULpq.mjs → index-NpIRi2wB.mjs} +414 -413
- package/dist/index-VaOtKTy8.mjs +713 -0
- package/dist/index-pv0_vmcX.mjs +129 -0
- package/dist/{index-BMj5XmMX.mjs → index-yQjjxDcA.mjs} +232 -244
- package/dist/index-yz18Lhpm.mjs +113 -0
- package/dist/index.mjs +1 -1
- package/dist/merchant-D9rtENQd.mjs +32 -0
- package/dist/{merchant-BENZD2R4.mjs → merchant-u4dNCa0T.mjs} +1 -1
- package/dist/{merchant.vue_vue_type_script_setup_true_lang-BH_Fe-pn.mjs → merchant.vue_vue_type_script_setup_true_lang-CvB7L7G7.mjs} +2 -2
- package/dist/pay-CZR9oAkw.mjs +126 -0
- package/dist/pay-fu3fGrJB.mjs +106 -0
- package/dist/{payPal-C5Hhq3pQ.mjs → payPal-3RoPmLkF.mjs} +20 -21
- package/dist/{payPal-Bfu4en0b.mjs → payPal-Cm1ZmJdL.mjs} +7 -8
- package/dist/{sale-Cki0rZ6-.mjs → sale-CuEqsPD7.mjs} +1 -1
- package/dist/{sale.vue_vue_type_script_setup_true_lang-C1gJAEgg.mjs → sale.vue_vue_type_script_setup_true_lang-DXUIMGjh.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{today-DFnsrdAZ.mjs → today-CLfowatL.mjs} +1 -1
- package/dist/{today-DYd5N03E.mjs → today-eDeS0zsk.mjs} +1 -1
- package/dist/{today.vue_vue_type_script_setup_true_lang-Cf3MjsXi.mjs → today.vue_vue_type_script_setup_true_lang-Bq4NCLzD.mjs} +74 -73
- package/dist/{today.vue_vue_type_script_setup_true_lang-D2JX696c.mjs → today.vue_vue_type_script_setup_true_lang-CBon7bqw.mjs} +116 -129
- package/dist/{trend-3ibJo3lK.mjs → trend-XEzpdsLj.mjs} +1 -1
- package/dts/src/api/settle/agent.d.ts +15 -0
- package/dts/src/api/settle/merchant.d.ts +9 -0
- package/package.json +3 -3
- package/dist/constant-CtDv38CM.mjs +0 -24
- package/dist/index-C6Tt7EGW.mjs +0 -726
- package/dist/index-D9OMutL6.mjs +0 -64
- package/dist/index-Doq8ZiUn.mjs +0 -136
- package/dist/index-V8g7-RWq.mjs +0 -95
- package/dist/pay-BK10dbR-.mjs +0 -121
- package/dist/pay-D04R69xf.mjs +0 -101
- package/dist/tokenExt-SHK5rrb5.mjs +0 -31
package/dist/index-D9OMutL6.mjs
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { useUserStore as e, clearEmpty as a, request as s } from "jmash-core";
|
|
2
|
-
import { t as o } from "./tokenExt-SHK5rrb5.mjs";
|
|
3
|
-
class r {
|
|
4
|
-
getKey(t) {
|
|
5
|
-
}
|
|
6
|
-
// 首页交易数据汇总
|
|
7
|
-
homePageAmount(t) {
|
|
8
|
-
const n = e().user.tenant;
|
|
9
|
-
return t.tokenExt = o.getTokenExt(e().user.tenant), a(t), s({
|
|
10
|
-
url: "/v1/settle/analysis/board/" + n,
|
|
11
|
-
method: "get",
|
|
12
|
-
params: t
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
// 首页交易金额排名
|
|
16
|
-
orderAmount(t) {
|
|
17
|
-
const n = e().user.tenant;
|
|
18
|
-
return t.tokenExt = o.getTokenExt(e().user.tenant), a(t), s({
|
|
19
|
-
url: "/v1/settle/analysis/merchant/list/" + n,
|
|
20
|
-
method: "get",
|
|
21
|
-
params: t
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
// 首页汇总支付方式
|
|
25
|
-
payModel(t) {
|
|
26
|
-
const n = e().user.tenant;
|
|
27
|
-
return t.tokenExt = o.getTokenExt(e().user.tenant), a(t), s({
|
|
28
|
-
url: "/v1/settle/analysis/pay_mode/list/" + n,
|
|
29
|
-
method: "get",
|
|
30
|
-
params: t
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
// 首页金额趋势
|
|
34
|
-
amountTrend(t) {
|
|
35
|
-
const n = e().user.tenant;
|
|
36
|
-
return t.tokenExt = o.getTokenExt(e().user.tenant), a(t), s({
|
|
37
|
-
url: "/v1/settle/analysis/time/list/" + n,
|
|
38
|
-
method: "get",
|
|
39
|
-
params: t
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
// 销售人员交易金额
|
|
43
|
-
salesAmount(t) {
|
|
44
|
-
const n = e().user.tenant;
|
|
45
|
-
return t.tokenExt = o.getTokenExt(e().user.tenant), a(t), s({
|
|
46
|
-
url: "/v1/settle/analysis/market_by/list/" + n,
|
|
47
|
-
method: "get",
|
|
48
|
-
params: t
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
// 新增商户排名
|
|
52
|
-
newMerchant(t) {
|
|
53
|
-
const n = e().user.tenant;
|
|
54
|
-
return t.tokenExt = o.getTokenExt(e().user.tenant), a(t), s({
|
|
55
|
-
url: "/v1/merchant/agent/total/" + n,
|
|
56
|
-
method: "get",
|
|
57
|
-
params: t
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
const g = new r();
|
|
62
|
-
export {
|
|
63
|
-
g as s
|
|
64
|
-
};
|
package/dist/index-Doq8ZiUn.mjs
DELETED
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import { defineComponent as C, ref as c, resolveComponent as _, resolveDirective as D, createElementBlock as g, openBlock as p, createElementVNode as t, createVNode as l, withCtx as r, toDisplayString as o, withDirectives as T, createBlock as Y, createTextVNode as k } from "vue";
|
|
2
|
-
import { useRouter as w } from "vue-router";
|
|
3
|
-
import { T as H, m as v } from "./trend-C4uCFrLb.mjs";
|
|
4
|
-
import { t as M } from "./tokenExt-SHK5rrb5.mjs";
|
|
5
|
-
import { useUserStore as E } from "jmash-core";
|
|
6
|
-
import { h as x } from "./index-I-KFULpq.mjs";
|
|
7
|
-
import { C as f } from "./constant-CtDv38CM.mjs";
|
|
8
|
-
import { _ as N } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
9
|
-
const b = { class: "app" }, P = { class: "app-title" }, B = { class: "row-container" }, R = { class: "tatals" }, S = { class: "tatal" }, V = { class: "text" }, I = { class: "tatal" }, F = { class: "text" }, U = { class: "tatal" }, j = { class: "text" }, q = { class: "tatal" }, z = { class: "text" }, G = { class: "tatals" }, J = { class: "tatal" }, K = { class: "text" }, L = { class: "tatal" }, O = { class: "text" }, Q = { class: "tatal" }, W = { class: "text" }, X = { class: "tatal" }, Z = { class: "text" }, $ = { class: "app-title-time" }, tt = { class: "chart-header" }, et = /* @__PURE__ */ C({
|
|
10
|
-
__name: "index",
|
|
11
|
-
setup(st) {
|
|
12
|
-
const i = w(), m = x().format("YYYY-MM-DD"), u = x().subtract(1, "days").format("YYYY-MM-DD"), a = c({}), n = c({});
|
|
13
|
-
(async () => {
|
|
14
|
-
try {
|
|
15
|
-
v.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
|
-
}), v.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 h = () => {
|
|
41
|
-
const s = M.getCurrentRole(E().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 d = _("el-card"), y = _("el-button"), A = D("hasPerm");
|
|
52
|
-
return p(), g("div", null, [
|
|
53
|
-
t("div", b, [
|
|
54
|
-
t("div", P, [
|
|
55
|
-
t("div", B, [
|
|
56
|
-
l(d, { class: "card-never" }, {
|
|
57
|
-
default: r(() => [
|
|
58
|
-
e[4] || (e[4] = t("span", { style: { "margin-right": "25%", "font-weight": "bold" } }, "交易数据看板(昨日)", -1)),
|
|
59
|
-
t("div", R, [
|
|
60
|
-
t("div", S, [
|
|
61
|
-
t("text", V, o(a.value.orderCount || 0), 1),
|
|
62
|
-
e[0] || (e[0] = t("text", null, "交易笔数", -1))
|
|
63
|
-
]),
|
|
64
|
-
t("div", I, [
|
|
65
|
-
t("text", F, o(a.value.tradeAmount || 0), 1),
|
|
66
|
-
e[1] || (e[1] = t("text", null, " 交易金额", -1))
|
|
67
|
-
]),
|
|
68
|
-
t("div", U, [
|
|
69
|
-
t("text", j, o(a.value.feeAmt || 0), 1),
|
|
70
|
-
e[2] || (e[2] = t("text", null, " 手续费", -1))
|
|
71
|
-
]),
|
|
72
|
-
t("div", q, [
|
|
73
|
-
t("text", z, o(a.value.settleAmount || "暂无结算"), 1),
|
|
74
|
-
e[3] || (e[3] = t("text", null, " 结算金额", -1))
|
|
75
|
-
])
|
|
76
|
-
])
|
|
77
|
-
]),
|
|
78
|
-
_: 1
|
|
79
|
-
}),
|
|
80
|
-
l(d, { class: "card-never" }, {
|
|
81
|
-
default: r(() => [
|
|
82
|
-
e[9] || (e[9] = t("span", { style: { "margin-right": "25%", "font-weight": "bold" } }, "交易数据看板(今日)", -1)),
|
|
83
|
-
t("div", G, [
|
|
84
|
-
t("div", J, [
|
|
85
|
-
t("text", K, o(n.value.orderCount || 0), 1),
|
|
86
|
-
e[5] || (e[5] = t("text", null, "交易笔数", -1))
|
|
87
|
-
]),
|
|
88
|
-
t("div", L, [
|
|
89
|
-
t("text", O, o(n.value.tradeAmount || 0), 1),
|
|
90
|
-
e[6] || (e[6] = t("text", null, " 交易金额", -1))
|
|
91
|
-
]),
|
|
92
|
-
t("div", Q, [
|
|
93
|
-
t("text", W, o(n.value.feeAmt || 0), 1),
|
|
94
|
-
e[7] || (e[7] = t("text", null, " 手续费", -1))
|
|
95
|
-
]),
|
|
96
|
-
t("div", X, [
|
|
97
|
-
t("text", Z, 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", $, [
|
|
108
|
-
l(d, { class: "card-chart" }, {
|
|
109
|
-
default: r(() => [
|
|
110
|
-
t("div", tt, [
|
|
111
|
-
e[11] || (e[11] = t("span", { class: "chart-title" }, " 交易金额趋势 ", -1)),
|
|
112
|
-
T((p(), Y(y, {
|
|
113
|
-
type: "primary",
|
|
114
|
-
link: "",
|
|
115
|
-
onClick: h
|
|
116
|
-
}, {
|
|
117
|
-
default: r(() => e[10] || (e[10] = [
|
|
118
|
-
k(" 查看更多 ")
|
|
119
|
-
])),
|
|
120
|
-
_: 1
|
|
121
|
-
})), [
|
|
122
|
-
[A, ["payment:trade_analysis:view"]]
|
|
123
|
-
])
|
|
124
|
-
]),
|
|
125
|
-
l(H)
|
|
126
|
-
]),
|
|
127
|
-
_: 1
|
|
128
|
-
})
|
|
129
|
-
])
|
|
130
|
-
]);
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
}), ct = /* @__PURE__ */ N(et, [["__scopeId", "data-v-47f01433"]]);
|
|
134
|
-
export {
|
|
135
|
-
ct as default
|
|
136
|
-
};
|
package/dist/index-V8g7-RWq.mjs
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
var A = Object.defineProperty;
|
|
2
|
-
var d = (e, t, s) => t in e ? A(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
|
|
3
|
-
var r = (e, t, s) => d(e, typeof t != "symbol" ? t + "" : t, s);
|
|
4
|
-
import { BizLayDict as y, BizDict as o, EnumDict as h } from "jmash-core";
|
|
5
|
-
import { C as a } from "./constant-CtDv38CM.mjs";
|
|
6
|
-
import { infoApi as m } from "xyvcard-agent";
|
|
7
|
-
import { institutionApi as E } from "xyvcard-insts";
|
|
8
|
-
import { merchantsApi as T } from "xyvcard-merchant";
|
|
9
|
-
function p(e, t, s) {
|
|
10
|
-
return !Array.isArray(e) || e.length === 0 ? [] : e.map((i) => {
|
|
11
|
-
let n = [];
|
|
12
|
-
return Array.isArray(i.children) && i.children.length > 0 && (n = p(i.children, t, s)), {
|
|
13
|
-
value: i[s],
|
|
14
|
-
label: i[t],
|
|
15
|
-
parentId: i.parentId,
|
|
16
|
-
children: n
|
|
17
|
-
};
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
class l extends y {
|
|
21
|
-
// 实现 useValues 方法
|
|
22
|
-
useValues() {
|
|
23
|
-
return new Promise((t, s) => {
|
|
24
|
-
this.query.approved = a.AGENT_AGREE, this.query.hasApproved = !0, m.findList(this.query).then(({ data: c }) => {
|
|
25
|
-
this.values.length = 0, this.values.push(
|
|
26
|
-
...p(c.results, "agentAlias", "agentCode")
|
|
27
|
-
), t(this.values);
|
|
28
|
-
}).catch(s);
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
class D extends o {
|
|
33
|
-
// 实现 useValues 方法
|
|
34
|
-
useValues() {
|
|
35
|
-
return new Promise((t, s) => {
|
|
36
|
-
E.findList(this.query).then(({ data: c }) => {
|
|
37
|
-
const i = c.results;
|
|
38
|
-
this.values.length = 0, this.values.push(
|
|
39
|
-
...i.map(
|
|
40
|
-
(n) => ({
|
|
41
|
-
key: n.instsId,
|
|
42
|
-
value: n.instsName
|
|
43
|
-
})
|
|
44
|
-
)
|
|
45
|
-
), t(this.values);
|
|
46
|
-
}).catch(s);
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
class v extends o {
|
|
51
|
-
// 实现 useValues 方法
|
|
52
|
-
useValues() {
|
|
53
|
-
return new Promise((t, s) => {
|
|
54
|
-
T.findList(this.query).then(({ data: c }) => {
|
|
55
|
-
const i = c.results;
|
|
56
|
-
this.values.length = 0, this.values.push(
|
|
57
|
-
...i.map(
|
|
58
|
-
(n) => ({
|
|
59
|
-
key: n.merchantId,
|
|
60
|
-
value: n.merchantName
|
|
61
|
-
})
|
|
62
|
-
)
|
|
63
|
-
), t(this.values);
|
|
64
|
-
}).catch(s);
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
class u {
|
|
69
|
-
}
|
|
70
|
-
// 代理商
|
|
71
|
-
r(u, "agentBizDict", new l({})), // 审核通过的代理商
|
|
72
|
-
r(u, "agentAgreeBizDict", new l({
|
|
73
|
-
approved: a.AGENT_AGREE
|
|
74
|
-
})), // 落地机构
|
|
75
|
-
r(u, "instsBizDict", new D({})), // 商户名称
|
|
76
|
-
r(u, "merchantBizDict", new v({})), // 支付方式
|
|
77
|
-
r(u, "payModeBizDict", new h(
|
|
78
|
-
a.PAYMENT_DICT,
|
|
79
|
-
a.PAY_MODE
|
|
80
|
-
)), // 交易类型
|
|
81
|
-
r(u, "tradeTypeBizDict", new h(
|
|
82
|
-
a.PAYMENT_DICT,
|
|
83
|
-
a.TRADE_TYPE
|
|
84
|
-
)), // 订单状态
|
|
85
|
-
r(u, "orderStatusBizDict", new h(
|
|
86
|
-
a.PAYMENT_DICT,
|
|
87
|
-
a.ORDER_STATUS
|
|
88
|
-
)), // 交易状态
|
|
89
|
-
r(u, "tradeStatusBizDict", new h(
|
|
90
|
-
a.PAYMENT_DICT,
|
|
91
|
-
a.TRADE_STATUS
|
|
92
|
-
));
|
|
93
|
-
export {
|
|
94
|
-
u as D
|
|
95
|
-
};
|
package/dist/pay-BK10dbR-.mjs
DELETED
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { defineComponent as y, ref as u, onMounted as h, onUnmounted as x, createElementBlock as _, openBlock as g } from "vue";
|
|
2
|
-
import { i as D } from "./index--_Po9Tig.mjs";
|
|
3
|
-
import { D as l } from "./index-V8g7-RWq.mjs";
|
|
4
|
-
import { s as b } from "./index-eUhFgNKx.mjs";
|
|
5
|
-
import { _ as w } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
6
|
-
const z = /* @__PURE__ */ y({
|
|
7
|
-
__name: "pay",
|
|
8
|
-
setup(S) {
|
|
9
|
-
l.merchantBizDict.useValues();
|
|
10
|
-
const i = u();
|
|
11
|
-
let e = null, o = null;
|
|
12
|
-
const c = u([]), d = () => {
|
|
13
|
-
const n = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date();
|
|
14
|
-
r.setDate(n.getDate() - 6);
|
|
15
|
-
const a = (s) => s.toISOString().split("T")[0];
|
|
16
|
-
return {
|
|
17
|
-
analysisTimeStart: a(r),
|
|
18
|
-
analysisTimeEnd: a(n)
|
|
19
|
-
};
|
|
20
|
-
}, p = () => {
|
|
21
|
-
i.value && (e = D(i.value));
|
|
22
|
-
}, f = () => {
|
|
23
|
-
if (!e) return;
|
|
24
|
-
const n = Math.max(...c.value.map((t) => t.value)), r = Math.ceil(n * 1.2), s = {
|
|
25
|
-
tooltip: {
|
|
26
|
-
trigger: "axis",
|
|
27
|
-
formatter: (t) => `${t[0].name}<br/>交易金额: ¥${t[0].value.toLocaleString()}`
|
|
28
|
-
},
|
|
29
|
-
grid: {
|
|
30
|
-
left: "1%",
|
|
31
|
-
right: "5%",
|
|
32
|
-
top: "0",
|
|
33
|
-
containLabel: !0
|
|
34
|
-
},
|
|
35
|
-
yAxis: {
|
|
36
|
-
type: "category",
|
|
37
|
-
inverse: !0,
|
|
38
|
-
data: c.value.map((t) => t.name),
|
|
39
|
-
axisLabel: {
|
|
40
|
-
formatter: (t) => t.replace(/(.{10})/g, `$1
|
|
41
|
-
`)
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
xAxis: {
|
|
45
|
-
type: "value",
|
|
46
|
-
min: 0,
|
|
47
|
-
max: r,
|
|
48
|
-
axisLabel: {
|
|
49
|
-
show: !0,
|
|
50
|
-
// 确保显示X轴标签
|
|
51
|
-
formatter: (t) => `¥${t}`
|
|
52
|
-
},
|
|
53
|
-
splitLine: {
|
|
54
|
-
lineStyle: {
|
|
55
|
-
type: "dashed"
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
series: [
|
|
60
|
-
{
|
|
61
|
-
data: c.value.map((t) => t.value),
|
|
62
|
-
// 调整柱子宽度
|
|
63
|
-
barWidth: 40,
|
|
64
|
-
label: {
|
|
65
|
-
show: !1
|
|
66
|
-
// 不展示文字
|
|
67
|
-
},
|
|
68
|
-
itemStyle: {
|
|
69
|
-
color: "#FF8C00"
|
|
70
|
-
// 柱状图的颜色为蓝色
|
|
71
|
-
},
|
|
72
|
-
type: "bar"
|
|
73
|
-
// 图表类型为柱状图
|
|
74
|
-
}
|
|
75
|
-
]
|
|
76
|
-
};
|
|
77
|
-
e.setOption(s);
|
|
78
|
-
}, v = async () => {
|
|
79
|
-
try {
|
|
80
|
-
await l.merchantBizDict.useValues();
|
|
81
|
-
const n = d(), r = await b.orderAmount({
|
|
82
|
-
analysisTimeStart: n.analysisTimeStart,
|
|
83
|
-
analysisTimeEnd: n.analysisTimeEnd
|
|
84
|
-
});
|
|
85
|
-
c.value = r.data.results.filter((a) => a.merchantId && a.orderAmount).map((a) => ({
|
|
86
|
-
name: l.merchantBizDict.getValue(a.merchantId),
|
|
87
|
-
value: parseFloat(a.orderAmount)
|
|
88
|
-
})).sort((a, s) => s.value - a.value).slice(0, 4), f(), setTimeout(() => {
|
|
89
|
-
e && e.resize();
|
|
90
|
-
}, 0);
|
|
91
|
-
} catch (n) {
|
|
92
|
-
console.error("获取数据失败:", n), e && e.setOption({
|
|
93
|
-
title: {
|
|
94
|
-
text: "数据加载失败",
|
|
95
|
-
left: "center",
|
|
96
|
-
top: "center",
|
|
97
|
-
textStyle: {
|
|
98
|
-
color: "#999"
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
}, m = () => {
|
|
104
|
-
e && e.resize();
|
|
105
|
-
};
|
|
106
|
-
return h(() => {
|
|
107
|
-
p(), v(), window.addEventListener("resize", m), i.value && (o = new ResizeObserver(() => {
|
|
108
|
-
e && e.resize();
|
|
109
|
-
}), o.observe(i.value));
|
|
110
|
-
}), x(() => {
|
|
111
|
-
window.removeEventListener("resize", m), o && o.disconnect(), e && e.dispose();
|
|
112
|
-
}), (n, r) => (g(), _("div", {
|
|
113
|
-
ref_key: "container",
|
|
114
|
-
ref: i,
|
|
115
|
-
class: "chart-container"
|
|
116
|
-
}, null, 512));
|
|
117
|
-
}
|
|
118
|
-
}), B = /* @__PURE__ */ w(z, [["__scopeId", "data-v-ce4b01cd"]]);
|
|
119
|
-
export {
|
|
120
|
-
B as default
|
|
121
|
-
};
|
package/dist/pay-D04R69xf.mjs
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { defineComponent as p, ref as l, onMounted as f, onUnmounted as v, createElementBlock as h, openBlock as _ } from "vue";
|
|
2
|
-
import { s as y } from "./index-D9OMutL6.mjs";
|
|
3
|
-
import { i as z } from "./index--_Po9Tig.mjs";
|
|
4
|
-
import { D as i } from "./index-V8g7-RWq.mjs";
|
|
5
|
-
import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
6
|
-
const w = /* @__PURE__ */ p({
|
|
7
|
-
__name: "pay",
|
|
8
|
-
setup(x) {
|
|
9
|
-
i.merchantBizDict.useValues();
|
|
10
|
-
const a = l();
|
|
11
|
-
let t = null, n = null;
|
|
12
|
-
const o = l([]), c = () => {
|
|
13
|
-
a.value && (t = z(a.value));
|
|
14
|
-
}, u = () => {
|
|
15
|
-
if (!t) return;
|
|
16
|
-
const r = {
|
|
17
|
-
tooltip: {
|
|
18
|
-
trigger: "axis",
|
|
19
|
-
formatter: (e) => `${e[0].name}<br/>交易金额: ¥${e[0].value.toLocaleString()}`
|
|
20
|
-
},
|
|
21
|
-
grid: {
|
|
22
|
-
left: "0",
|
|
23
|
-
right: "5%",
|
|
24
|
-
top: "0",
|
|
25
|
-
containLabel: !0
|
|
26
|
-
},
|
|
27
|
-
yAxis: {
|
|
28
|
-
type: "category",
|
|
29
|
-
inverse: !0,
|
|
30
|
-
// 名称
|
|
31
|
-
data: o.value.map((e) => e.name),
|
|
32
|
-
axisLabel: {
|
|
33
|
-
formatter: (e) => e.replace(/(.{6})/g, `$1
|
|
34
|
-
`)
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
xAxis: {
|
|
38
|
-
type: "value",
|
|
39
|
-
interval: 2500,
|
|
40
|
-
axisLabel: {
|
|
41
|
-
show: !0,
|
|
42
|
-
// 确保显示X轴标签
|
|
43
|
-
formatter: (e) => `¥${e}`
|
|
44
|
-
},
|
|
45
|
-
splitLine: {
|
|
46
|
-
lineStyle: {
|
|
47
|
-
type: "dashed"
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
series: [
|
|
52
|
-
{
|
|
53
|
-
data: o.value.map((e) => e.value),
|
|
54
|
-
// 调整柱子宽度
|
|
55
|
-
barWidth: 30,
|
|
56
|
-
label: {
|
|
57
|
-
show: !1
|
|
58
|
-
// 不展示文字
|
|
59
|
-
},
|
|
60
|
-
itemStyle: {
|
|
61
|
-
color: "#FF8C00"
|
|
62
|
-
// 柱状图的颜色为蓝色
|
|
63
|
-
},
|
|
64
|
-
type: "bar"
|
|
65
|
-
// 图表类型为柱状图
|
|
66
|
-
}
|
|
67
|
-
]
|
|
68
|
-
};
|
|
69
|
-
t.setOption(r);
|
|
70
|
-
}, m = async () => {
|
|
71
|
-
try {
|
|
72
|
-
await i.merchantBizDict.useValues();
|
|
73
|
-
const r = await y.orderAmount({});
|
|
74
|
-
o.value = r.data.results.filter((e) => e.merchantId && e.orderAmount).map((e) => ({
|
|
75
|
-
name: i.merchantBizDict.getValue(e.merchantId),
|
|
76
|
-
value: parseFloat(e.orderAmount)
|
|
77
|
-
})).sort((e, d) => d.value - e.value).slice(0, 4), u(), setTimeout(() => {
|
|
78
|
-
t && t.resize();
|
|
79
|
-
}, 0);
|
|
80
|
-
} catch (r) {
|
|
81
|
-
console.error("暂无数据", r);
|
|
82
|
-
}
|
|
83
|
-
}, s = () => {
|
|
84
|
-
t && t.resize();
|
|
85
|
-
};
|
|
86
|
-
return f(() => {
|
|
87
|
-
c(), m(), window.addEventListener("resize", s), a.value && (n = new ResizeObserver(() => {
|
|
88
|
-
t && t.resize();
|
|
89
|
-
}), n.observe(a.value));
|
|
90
|
-
}), v(() => {
|
|
91
|
-
window.removeEventListener("resize", s), n && n.disconnect(), t && t.dispose();
|
|
92
|
-
}), (r, e) => (_(), h("div", {
|
|
93
|
-
ref_key: "container",
|
|
94
|
-
ref: a,
|
|
95
|
-
class: "chart-container"
|
|
96
|
-
}, null, 512));
|
|
97
|
-
}
|
|
98
|
-
}), C = /* @__PURE__ */ b(w, [["__scopeId", "data-v-efd8add5"]]);
|
|
99
|
-
export {
|
|
100
|
-
C as default
|
|
101
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
class s {
|
|
2
|
-
/**
|
|
3
|
-
* 将指定租户的扩展令牌存储到会话存储中
|
|
4
|
-
* @param tenant 租户标识符,用于构造存储键名
|
|
5
|
-
* @param tokenExt 要存储的扩展令牌字符串
|
|
6
|
-
*/
|
|
7
|
-
setTokenExt(e, t) {
|
|
8
|
-
sessionStorage.setItem(`TokenExt:${e}`, t);
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* 获取指定租户的扩展令牌
|
|
12
|
-
*
|
|
13
|
-
* 从sessionStorage中读取对应租户的TokenExt值,若不存在则返回空字符串
|
|
14
|
-
*
|
|
15
|
-
* @param tenant - 租户标识符,用于构造存储键名
|
|
16
|
-
* @returns 存储的TokenExt字符串值,不存在时返回空字符串
|
|
17
|
-
*/
|
|
18
|
-
getTokenExt(e) {
|
|
19
|
-
return sessionStorage.getItem(`TokenExt:${e}`) ?? "";
|
|
20
|
-
}
|
|
21
|
-
setCurrentRole(e, t) {
|
|
22
|
-
sessionStorage.setItem(`CurrentRole:${e}`, JSON.stringify(t));
|
|
23
|
-
}
|
|
24
|
-
getCurrentRole(e) {
|
|
25
|
-
return JSON.parse(sessionStorage.getItem(`CurrentRole:${e}`) ?? "{}");
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
const n = new s();
|
|
29
|
-
export {
|
|
30
|
-
n as t
|
|
31
|
-
};
|