xyvcard-settle 0.0.34 → 0.0.36
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/constant-D4ZF_7dk.mjs +24 -0
- package/dist/{history-BC3TB9eA.mjs → history-B-IkqJIh.mjs} +1 -1
- package/dist/{history-BUclRbel.mjs → history-Bwh8KkP3.mjs} +1 -1
- package/dist/{history.vue_vue_type_script_setup_true_lang-Ckmyrwct.mjs → history.vue_vue_type_script_setup_true_lang-BVjasG18.mjs} +153 -165
- package/dist/{history.vue_vue_type_script_setup_true_lang-Cd1HTqlw.mjs → history.vue_vue_type_script_setup_true_lang-zty-H-sg.mjs} +98 -110
- package/dist/{index-BzQRjJke.mjs → index-2s-MEXAI.mjs} +2 -2
- package/dist/{index-ziENx26r.mjs → index-7mx7BVcy.mjs} +117 -124
- package/dist/{index-GU7-SzuX.mjs → index-BTklOG4u.mjs} +45 -42
- package/dist/{index-e2Wzbnr7.mjs → index-CIgkwH9Q.mjs} +18 -18
- package/dist/{index-C7mTT8UR.mjs → index-CkZwAxic.mjs} +106 -118
- package/dist/{index-B81N3bxj.mjs → index-CoFF2Ob7.mjs} +8 -8
- package/dist/{index-DcOxpuPI.mjs → index-DALnGGtE.mjs} +2 -2
- package/dist/{index-CgthiwpC.mjs → index-DIBoxi0R.mjs} +92 -104
- package/dist/{index-Cjw03ApZ.mjs → index-DcFBsML4.mjs} +8 -7
- package/dist/{index-CZpZionn.mjs → index-Dd8mEaP-.mjs} +148 -160
- package/dist/{index-CL6yVyGz.mjs → index-cRii9rLo.mjs} +200 -212
- package/dist/index-vAEKctTI.mjs +92 -0
- package/dist/index.mjs +1 -1
- package/dist/{pay-DabqR8eb.mjs → pay-B83bWp1o.mjs} +1 -1
- package/dist/{pay-CFNzmo6x.mjs → pay-Cbkrx0kF.mjs} +1 -1
- package/dist/{payPal-J41FJEQT.mjs → payPal-CSXQDwtc.mjs} +15 -14
- package/dist/{payPal-C7Ttt6mf.mjs → payPal-CxeWojgW.mjs} +7 -6
- package/dist/style.css +1 -1
- package/dist/{today-A4CUV61Z.mjs → today-D-CvVI4s.mjs} +1 -1
- package/dist/{today-zzTtFFaz.mjs → today-fC0tD5z6.mjs} +1 -1
- package/dist/{today.vue_vue_type_script_setup_true_lang-DhaJRJsJ.mjs → today.vue_vue_type_script_setup_true_lang-JtY78KZT.mjs} +1 -1
- package/dist/{today.vue_vue_type_script_setup_true_lang-BqFapZIT.mjs → today.vue_vue_type_script_setup_true_lang-gE2xanSS.mjs} +26 -26
- package/dist/{trend-D8pStiQ5.mjs → trend-BrSUujKu.mjs} +1 -1
- package/dist/{trend-iT9IXU1F.mjs → trend-C4uCFrLb.mjs} +1 -1
- package/dts/src/constant.d.ts +2 -0
- package/package.json +2 -2
- package/dist/index-CxsNyMdg.mjs +0 -110
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
var p = Object.defineProperty;
|
|
2
|
+
var d = (e, t, s) => t in e ? p(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
|
|
3
|
+
var n = (e, t, s) => d(e, typeof t != "symbol" ? t + "" : t, s);
|
|
4
|
+
import { BizLayDict as A, BizDict as l, EnumDict as c } from "jmash-core";
|
|
5
|
+
import { C as r } from "./constant-D4ZF_7dk.mjs";
|
|
6
|
+
import { infoApi as y } from "xyvcard-agent";
|
|
7
|
+
import { institutionApi as m } from "xyvcard-insts";
|
|
8
|
+
import { merchantsApi as T } from "xyvcard-merchant";
|
|
9
|
+
function o(e, t, s) {
|
|
10
|
+
return !Array.isArray(e) || e.length === 0 ? [] : e.map((i) => {
|
|
11
|
+
let a = [];
|
|
12
|
+
return Array.isArray(i.children) && i.children.length > 0 && (a = o(i.children, t, s)), {
|
|
13
|
+
value: i[s],
|
|
14
|
+
label: i[t],
|
|
15
|
+
parentId: i.parentId,
|
|
16
|
+
children: a
|
|
17
|
+
};
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
class D extends A {
|
|
21
|
+
// 实现 useValues 方法
|
|
22
|
+
useValues() {
|
|
23
|
+
return new Promise((t, s) => {
|
|
24
|
+
this.query.approved = r.AGENT_AGREE, this.query.hasApproved = !0, y.findList(this.query).then(({ data: h }) => {
|
|
25
|
+
this.values.length = 0, this.values.push(
|
|
26
|
+
...o(h.results, "agentAlias", "agentCode")
|
|
27
|
+
), t(this.values);
|
|
28
|
+
}).catch(s);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
class E extends l {
|
|
33
|
+
// 实现 useValues 方法
|
|
34
|
+
useValues() {
|
|
35
|
+
return new Promise((t, s) => {
|
|
36
|
+
m.findList(this.query).then(({ data: h }) => {
|
|
37
|
+
const i = h.results;
|
|
38
|
+
this.values.length = 0, this.values.push(
|
|
39
|
+
...i.map(
|
|
40
|
+
(a) => ({
|
|
41
|
+
key: a.instsId,
|
|
42
|
+
value: a.instsName
|
|
43
|
+
})
|
|
44
|
+
)
|
|
45
|
+
), t(this.values);
|
|
46
|
+
}).catch(s);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
class v extends l {
|
|
51
|
+
// 实现 useValues 方法
|
|
52
|
+
useValues() {
|
|
53
|
+
return new Promise((t, s) => {
|
|
54
|
+
T.findList(this.query).then(({ data: h }) => {
|
|
55
|
+
const i = h.results;
|
|
56
|
+
this.values.length = 0, this.values.push(
|
|
57
|
+
...i.map(
|
|
58
|
+
(a) => ({
|
|
59
|
+
key: a.merchantId,
|
|
60
|
+
value: a.merchantName
|
|
61
|
+
})
|
|
62
|
+
)
|
|
63
|
+
), t(this.values);
|
|
64
|
+
}).catch(s);
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
class u {
|
|
69
|
+
}
|
|
70
|
+
// 代理商
|
|
71
|
+
n(u, "agentBizDict", new D({})), // 落地机构
|
|
72
|
+
n(u, "instsBizDict", new E({})), // 商户名称
|
|
73
|
+
n(u, "merchantBizDict", new v({})), // 支付方式
|
|
74
|
+
n(u, "payModeBizDict", new c(
|
|
75
|
+
r.PAYMENT_DICT,
|
|
76
|
+
r.PAY_MODE
|
|
77
|
+
)), // 交易类型
|
|
78
|
+
n(u, "tradeTypeBizDict", new c(
|
|
79
|
+
r.PAYMENT_DICT,
|
|
80
|
+
r.TRADE_TYPE
|
|
81
|
+
)), // 订单状态
|
|
82
|
+
n(u, "orderStatusBizDict", new c(
|
|
83
|
+
r.PAYMENT_DICT,
|
|
84
|
+
r.ORDER_STATUS
|
|
85
|
+
)), // 交易状态
|
|
86
|
+
n(u, "tradeStatusBizDict", new c(
|
|
87
|
+
r.PAYMENT_DICT,
|
|
88
|
+
r.TRADE_STATUS
|
|
89
|
+
));
|
|
90
|
+
export {
|
|
91
|
+
u as D
|
|
92
|
+
};
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
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-D9OMutL6.mjs";
|
|
3
3
|
import { i as z } from "./index--_Po9Tig.mjs";
|
|
4
|
-
import { D as i } from "./index-
|
|
4
|
+
import { D as i } from "./index-vAEKctTI.mjs";
|
|
5
5
|
import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
6
6
|
const w = /* @__PURE__ */ p({
|
|
7
7
|
__name: "pay",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as d, ref as l, onMounted as f, onUnmounted as v, createElementBlock as h, openBlock as _ } from "vue";
|
|
2
2
|
import { i as y } from "./index--_Po9Tig.mjs";
|
|
3
|
-
import { D as o } from "./index-
|
|
3
|
+
import { D as o } from "./index-vAEKctTI.mjs";
|
|
4
4
|
import { s as z } from "./index-eUhFgNKx.mjs";
|
|
5
5
|
import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
6
6
|
const x = /* @__PURE__ */ d({
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as m, ref as d, onMounted as c, 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
|
|
4
|
+
import { D as h } from "./index-vAEKctTI.mjs";
|
|
5
|
+
import { C as z } from "./constant-D4ZF_7dk.mjs";
|
|
5
6
|
import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
6
|
-
const b = /* @__PURE__ */
|
|
7
|
+
const b = /* @__PURE__ */ m({
|
|
7
8
|
__name: "payPal",
|
|
8
9
|
setup(L) {
|
|
9
10
|
const i = d();
|
|
@@ -24,8 +25,8 @@ const b = /* @__PURE__ */ c({
|
|
|
24
25
|
top: "middle",
|
|
25
26
|
data: n.value.map((e) => e.name),
|
|
26
27
|
formatter: (e) => {
|
|
27
|
-
const
|
|
28
|
-
return `${e} ${
|
|
28
|
+
const r = n.value.find((a) => a.name === e);
|
|
29
|
+
return `${e} ${r == null ? void 0 : r.value}%`;
|
|
29
30
|
},
|
|
30
31
|
textStyle: {
|
|
31
32
|
fontSize: 12
|
|
@@ -54,16 +55,16 @@ const b = /* @__PURE__ */ c({
|
|
|
54
55
|
}
|
|
55
56
|
]
|
|
56
57
|
}), p = async () => {
|
|
57
|
-
var e,
|
|
58
|
+
var e, r;
|
|
58
59
|
try {
|
|
59
|
-
const
|
|
60
|
-
if (!((
|
|
60
|
+
const a = await g.payModel();
|
|
61
|
+
if (!((r = (e = a.data) == null ? void 0 : e.results) != null && r.length))
|
|
61
62
|
throw new Error("暂无数据");
|
|
62
|
-
const s =
|
|
63
|
+
const s = a.data.results.reduce(
|
|
63
64
|
(o, l) => o + parseFloat(l.orderAmount || 0),
|
|
64
65
|
0
|
|
65
66
|
);
|
|
66
|
-
n.value =
|
|
67
|
+
n.value = a.data.results.map((o) => {
|
|
67
68
|
const l = h.payModeBizDict.getEnumValue(o.payMode) || o.payMode, f = s > 0 ? (parseFloat(o.orderAmount) / s * 100).toFixed(2) : 0;
|
|
68
69
|
return {
|
|
69
70
|
value: parseFloat(f),
|
|
@@ -87,7 +88,7 @@ const b = /* @__PURE__ */ c({
|
|
|
87
88
|
});
|
|
88
89
|
}
|
|
89
90
|
};
|
|
90
|
-
return
|
|
91
|
+
return c(async () => {
|
|
91
92
|
if (!i.value)
|
|
92
93
|
return;
|
|
93
94
|
t = w(i.value), t.showLoading(), await p(), t.hideLoading();
|
|
@@ -97,13 +98,13 @@ const b = /* @__PURE__ */ c({
|
|
|
97
98
|
window.addEventListener("resize", e), e();
|
|
98
99
|
}), v(() => {
|
|
99
100
|
window.removeEventListener("resize", () => t == null ? void 0 : t.resize()), t == null || t.dispose();
|
|
100
|
-
}), (e,
|
|
101
|
+
}), (e, r) => (_(), y("div", {
|
|
101
102
|
ref_key: "chartContainer",
|
|
102
103
|
ref: i,
|
|
103
104
|
class: "chart-container"
|
|
104
105
|
}, null, 512));
|
|
105
106
|
}
|
|
106
|
-
}),
|
|
107
|
+
}), D = /* @__PURE__ */ C(b, [["__scopeId", "data-v-920a5a5f"]]);
|
|
107
108
|
export {
|
|
108
|
-
|
|
109
|
+
D as default
|
|
109
110
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as m, ref as d, onMounted as c, onBeforeUnmount as v, createElementBlock as y, openBlock as _ } from "vue";
|
|
2
2
|
import { i as b } from "./index--_Po9Tig.mjs";
|
|
3
3
|
import { s as g } from "./index-D9OMutL6.mjs";
|
|
4
|
-
import { D as h
|
|
4
|
+
import { D as h } from "./index-vAEKctTI.mjs";
|
|
5
|
+
import { C as w } from "./constant-D4ZF_7dk.mjs";
|
|
5
6
|
import { _ as z } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
6
|
-
const C = /* @__PURE__ */
|
|
7
|
+
const C = /* @__PURE__ */ m({
|
|
7
8
|
__name: "payPal",
|
|
8
9
|
setup(S) {
|
|
9
10
|
const i = d();
|
|
@@ -93,7 +94,7 @@ const C = /* @__PURE__ */ c({
|
|
|
93
94
|
});
|
|
94
95
|
}
|
|
95
96
|
};
|
|
96
|
-
return
|
|
97
|
+
return c(async () => {
|
|
97
98
|
if (!i.value) return;
|
|
98
99
|
e = b(i.value), e.showLoading(), await p(), e.hideLoading();
|
|
99
100
|
const t = () => e == null ? void 0 : e.resize();
|
|
@@ -106,7 +107,7 @@ const C = /* @__PURE__ */ c({
|
|
|
106
107
|
class: "chart-container"
|
|
107
108
|
}, null, 512));
|
|
108
109
|
}
|
|
109
|
-
}),
|
|
110
|
+
}), $ = /* @__PURE__ */ z(C, [["__scopeId", "data-v-15ebef5f"]]);
|
|
110
111
|
export {
|
|
111
|
-
|
|
112
|
+
$ as default
|
|
112
113
|
};
|