xyvcard-settle 0.0.42 → 0.0.44
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-BXhE-jbg.mjs +32 -0
- package/dist/{history-Bjxjxy_1.mjs → history-BAkRg2pq.mjs} +1 -1
- package/dist/{history-CyGeajMX.mjs → history-Dn1bbCcI.mjs} +1 -1
- package/dist/{history.vue_vue_type_script_setup_true_lang-dd7Qrf3A.mjs → history.vue_vue_type_script_setup_true_lang-CgrLgBqg.mjs} +76 -75
- package/dist/{history.vue_vue_type_script_setup_true_lang-DzyW9ohx.mjs → history.vue_vue_type_script_setup_true_lang-Dl65zcTa.mjs} +136 -149
- package/dist/{index-I-KFULpq.mjs → index-A0dvO46M.mjs} +416 -415
- package/dist/{index-Csk-TNBj.mjs → index-BOrI7JtW.mjs} +2 -2
- package/dist/{index-BMj5XmMX.mjs → index-BRU67qDa.mjs} +227 -240
- package/dist/{index-C-A0Y3EK.mjs → index-BTCLMpHR.mjs} +59 -63
- package/dist/index-CE4_NZLb.mjs +129 -0
- package/dist/index-CGc-CaEO.mjs +91 -0
- package/dist/{index-vIbGxvHd.mjs → index-CaaOEjHM.mjs} +2 -2
- package/dist/{index-BpcmzxBU.mjs → index-CbEHaatk.mjs} +3 -3
- package/dist/index-Dp6vdCsP.mjs +713 -0
- package/dist/{index-CGyzqfPx.mjs → index-DsEuGxTJ.mjs} +216 -229
- package/dist/{index-DsTHP6ez.mjs → index-DzN2x713.mjs} +46 -46
- package/dist/{index-BA1OfmNb.mjs → index-oJY5i5R_.mjs} +2 -2
- package/dist/{index-x556wvD_.mjs → index-vF1PDwWz.mjs} +214 -229
- package/dist/index-yz18Lhpm.mjs +113 -0
- package/dist/index.mjs +1 -1
- 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-BK10dbR-.mjs → pay-CvwrYB4j.mjs} +1 -1
- package/dist/{pay-D04R69xf.mjs → pay-Db-UEae3.mjs} +2 -2
- 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-C1jwQmNs.mjs} +1 -1
- package/dist/{today-DYd5N03E.mjs → today-ZrG0UNrv.mjs} +1 -1
- package/dist/{today.vue_vue_type_script_setup_true_lang-Cf3MjsXi.mjs → today.vue_vue_type_script_setup_true_lang-BPQu6Gke.mjs} +74 -73
- package/dist/{today.vue_vue_type_script_setup_true_lang-D2JX696c.mjs → today.vue_vue_type_script_setup_true_lang-CZqnx44q.mjs} +116 -129
- package/dist/{trend-3ibJo3lK.mjs → trend-XEzpdsLj.mjs} +1 -1
- package/dts/src/api/settle/agent.d.ts +15 -0
- package/package.json +2 -2
- 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/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
|
-
};
|
|
@@ -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
|
-
};
|