xyvcard-settle 0.0.24 → 0.0.25
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/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
- package/dist/{history-C3l8NaI6.mjs → history-B-gHLBwh.mjs} +1 -1
- package/dist/{history-DQ0J8NCy.mjs → history-BLctAU0P.mjs} +1 -1
- package/dist/{history.vue_vue_type_script_setup_true_lang-DB8PERVD.mjs → history.vue_vue_type_script_setup_true_lang-Bov9wTh0.mjs} +2 -2
- package/dist/{history.vue_vue_type_script_setup_true_lang-B8FBizdu.mjs → history.vue_vue_type_script_setup_true_lang-CAnnJEfn.mjs} +5 -5
- package/dist/index--_Po9Tig.mjs +43858 -0
- package/dist/{index-C9xiSbGi.mjs → index-AgzuDVOr.mjs} +1 -1
- package/dist/index-BocAk8pD.mjs +176 -0
- package/dist/{index-Gj815brY.mjs → index-C2vMy8ik.mjs} +24 -24
- package/dist/index-C7K8v7BO.mjs +2702 -0
- package/dist/{index-B1h4IWy4.mjs → index-CNAVEXHD.mjs} +2 -2
- package/dist/{index-D0mKdcOp.mjs → index-Cg3fVoEi.mjs} +2 -2
- package/dist/index-CpuvJ4Tw.mjs +110 -0
- package/dist/index-CwhZGNVj.mjs +131 -0
- package/dist/index-DJtiZFc1.mjs +142 -0
- package/dist/index-DsIwC6AS.mjs +238 -0
- package/dist/{index--l5ns2E2.mjs → index-P-8jwHYX.mjs} +18 -18
- package/dist/{index-BwZZ71lS.mjs → index-YgHkUquv.mjs} +2 -2
- package/dist/{index-DsYV-De4.mjs → index-dcnBl8Xl.mjs} +1 -1
- package/dist/index-eUhFgNKx.mjs +45 -0
- package/dist/index-zsIaZMNT.mjs +63 -0
- package/dist/index.mjs +3 -2697
- package/dist/merchant-DLx9AYoM.mjs +4 -0
- package/dist/merchant.vue_vue_type_script_setup_true_lang-Bxb9bzqv.mjs +77 -0
- package/dist/pay-C08cbM_l.mjs +101 -0
- package/dist/pay-DW3Una4C.mjs +98 -0
- package/dist/payPal-D2I3WIqV.mjs +113 -0
- package/dist/payPal-nXPX-3pm.mjs +109 -0
- package/dist/sale-BR1khQTm.mjs +4 -0
- package/dist/sale.vue_vue_type_script_setup_true_lang-W8968hkL.mjs +77 -0
- package/dist/style.css +1 -1
- package/dist/three-BE8B3lbG.mjs +6 -0
- package/dist/{today-DK4xzzKV.mjs → today-r_ikFBLS.mjs} +1 -1
- package/dist/{today-DX1djaLC.mjs → today-t0-6m3Qr.mjs} +1 -1
- package/dist/{today.vue_vue_type_script_setup_true_lang-BBSo18Bt.mjs → today.vue_vue_type_script_setup_true_lang-BzhCmlc2.mjs} +7 -7
- package/dist/{today.vue_vue_type_script_setup_true_lang-C7uvcmd6.mjs → today.vue_vue_type_script_setup_true_lang-DsmG2Z4w.mjs} +10 -10
- package/dist/tokenExt-SHK5rrb5.mjs +31 -0
- package/dist/trend-BOA_Pwtn.mjs +200 -0
- package/dist/trend-D8pStiQ5.mjs +171 -0
- package/dist/trend-pbYAF-aS.mjs +172 -0
- package/dts/src/api/settle/agent-settle/index.d.ts +13 -0
- package/dts/src/api/settle/agent-settle/types.d.ts +48 -0
- package/dts/src/api/settle/insts-settle/index.d.ts +11 -0
- package/dts/src/api/settle/insts-settle/types.d.ts +32 -0
- package/dts/src/api/settle/mcht-homePage/index.d.ts +9 -0
- package/dts/src/api/settle/mcht-homePage/types.d.ts +34 -0
- package/dts/src/api/settle/settle-trade-merchant/types.d.ts +1 -1
- package/dts/src/constant.d.ts +8 -0
- package/dts/src/lang/settle/zh-cn.d.ts +2 -0
- package/dts/src/router/index.d.ts +4 -0
- package/dts/src/utils/tokenExt.d.ts +21 -0
- package/dts/src/views/payment/agentHomePage/index.vue.d.ts +2 -0
- package/dts/src/views/payment/agentHomePage/merchant.vue.d.ts +2 -0
- package/dts/src/views/payment/agentHomePage/pay.vue.d.ts +2 -0
- package/dts/src/views/payment/agentHomePage/payPal.vue.d.ts +2 -0
- package/dts/src/views/payment/agentHomePage/sale.vue.d.ts +2 -0
- package/dts/src/views/payment/agentHomePage/trend.vue.d.ts +2 -0
- package/dts/src/views/payment/instHomePage/index.vue.d.ts +2 -0
- package/dts/src/views/payment/instHomePage/pay.vue.d.ts +2 -0
- package/dts/src/views/payment/instHomePage/payPal.vue.d.ts +2 -0
- package/dts/src/views/payment/instHomePage/trend.vue.d.ts +2 -0
- package/dts/src/views/payment/instsLogin/index.vue.d.ts +2 -0
- package/dts/src/views/payment/merchantHomePage/index.vue.d.ts +2 -0
- package/dts/src/views/payment/merchantHomePage/trend.vue.d.ts +2 -0
- package/package.json +3 -2
- package/dist/index-DXSCg5PP.mjs +0 -102
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { defineComponent as h, getCurrentInstance as y, ref as u, onMounted as b, createElementBlock as D, openBlock as v, createElementVNode as w, nextTick as x } from "vue";
|
|
2
|
+
import { i as _, L as M } from "./index--_Po9Tig.mjs";
|
|
3
|
+
import { s as C } from "./index-zsIaZMNT.mjs";
|
|
4
|
+
import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
5
|
+
const Y = { class: "chart-container" }, k = /* @__PURE__ */ h({
|
|
6
|
+
__name: "trend",
|
|
7
|
+
setup(S) {
|
|
8
|
+
const { proxy: d } = y(), c = u(null);
|
|
9
|
+
let s = null;
|
|
10
|
+
const r = u({
|
|
11
|
+
dates: [],
|
|
12
|
+
amounts: [],
|
|
13
|
+
counts: []
|
|
14
|
+
}), p = () => {
|
|
15
|
+
const a = [];
|
|
16
|
+
for (let t = 6; t >= 0; t--) {
|
|
17
|
+
const o = /* @__PURE__ */ new Date();
|
|
18
|
+
o.setDate(o.getDate() - t), a.push(d.$moment.formatDate(o, "YYYY-MM-DD"));
|
|
19
|
+
}
|
|
20
|
+
return a;
|
|
21
|
+
}, m = () => {
|
|
22
|
+
if (!c.value) return;
|
|
23
|
+
s = _(c.value);
|
|
24
|
+
const a = {
|
|
25
|
+
backgroundColor: "#fff",
|
|
26
|
+
tooltip: {
|
|
27
|
+
trigger: "axis",
|
|
28
|
+
formatter: (t) => {
|
|
29
|
+
const o = t[0].axisValue, n = t[0].data, i = r.value.dates.indexOf(o), l = i !== -1 ? r.value.counts[i] : 0;
|
|
30
|
+
return `
|
|
31
|
+
<div style="font-weight:bold;margin-bottom:5px">${o}</div>
|
|
32
|
+
<div style="display:flex;align-items:center;margin:3px 0">
|
|
33
|
+
<span style="display:inline-block;width:10px;height:10px;background-color:#ff4d4f;border-radius:50%;margin-right:5px"></span>
|
|
34
|
+
交易金额: <span style="font-weight:bold;margin-left:5px">${n.toFixed(2)}</span>元
|
|
35
|
+
</div>
|
|
36
|
+
<div style="display:flex;align-items:center;margin:3px 0">
|
|
37
|
+
<span style="display:inline-block;width:10px;height:10px;background-color:#1890ff;border-radius:50%;margin-right:5px"></span>
|
|
38
|
+
交易笔数: <span style="font-weight:bold;margin-left:5px">${l}</span>笔
|
|
39
|
+
</div>
|
|
40
|
+
`;
|
|
41
|
+
},
|
|
42
|
+
backgroundColor: "rgba(255,255,255,0.9)",
|
|
43
|
+
borderColor: "#ddd",
|
|
44
|
+
borderWidth: 1,
|
|
45
|
+
textStyle: {
|
|
46
|
+
color: "#333"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
legend: {
|
|
50
|
+
show: !1
|
|
51
|
+
},
|
|
52
|
+
grid: {
|
|
53
|
+
left: "50px",
|
|
54
|
+
right: "50px",
|
|
55
|
+
top: "40px",
|
|
56
|
+
bottom: "30px",
|
|
57
|
+
containLabel: !0
|
|
58
|
+
},
|
|
59
|
+
xAxis: {
|
|
60
|
+
type: "category",
|
|
61
|
+
data: r.value.dates,
|
|
62
|
+
axisLine: {
|
|
63
|
+
lineStyle: {
|
|
64
|
+
color: "#999"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
axisLabel: {
|
|
68
|
+
color: "#666",
|
|
69
|
+
interval: 0,
|
|
70
|
+
formatter: (t) => t.slice(5)
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
yAxis: {
|
|
74
|
+
type: "value",
|
|
75
|
+
min: 0,
|
|
76
|
+
// 强制从0开始
|
|
77
|
+
name: "金额(元)",
|
|
78
|
+
axisLine: {
|
|
79
|
+
show: !0,
|
|
80
|
+
lineStyle: {
|
|
81
|
+
color: "#999"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
axisLabel: {
|
|
85
|
+
color: "#666",
|
|
86
|
+
formatter: (t) => t >= 1e4 ? (t / 1e4).toFixed(1) + "万" : t.toFixed(0)
|
|
87
|
+
},
|
|
88
|
+
splitLine: {
|
|
89
|
+
lineStyle: {
|
|
90
|
+
color: "#f0f0f0"
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
series: [
|
|
95
|
+
{
|
|
96
|
+
name: "交易金额",
|
|
97
|
+
type: "line",
|
|
98
|
+
smooth: !0,
|
|
99
|
+
data: r.value.amounts,
|
|
100
|
+
symbol: "circle",
|
|
101
|
+
symbolSize: 8,
|
|
102
|
+
itemStyle: {
|
|
103
|
+
color: "#ff4d4f",
|
|
104
|
+
borderColor: "#fff",
|
|
105
|
+
borderWidth: 2
|
|
106
|
+
},
|
|
107
|
+
lineStyle: {
|
|
108
|
+
width: 3,
|
|
109
|
+
color: "#ff4d4f"
|
|
110
|
+
},
|
|
111
|
+
areaStyle: {
|
|
112
|
+
color: new M(0, 0, 0, 1, [
|
|
113
|
+
{
|
|
114
|
+
offset: 0,
|
|
115
|
+
color: "rgba(255, 77, 79, 0.3)"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
offset: 1,
|
|
119
|
+
color: "rgba(255, 77, 79, 0.1)"
|
|
120
|
+
}
|
|
121
|
+
])
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
};
|
|
126
|
+
s.setOption(a);
|
|
127
|
+
}, g = async () => {
|
|
128
|
+
try {
|
|
129
|
+
const a = /* @__PURE__ */ new Date(), t = /* @__PURE__ */ new Date();
|
|
130
|
+
t.setDate(a.getDate() - 6);
|
|
131
|
+
const o = await C.amountTrend({
|
|
132
|
+
analysisTimeStart: d.$moment.formatDate(t, "YYYY-MM-DD"),
|
|
133
|
+
analysisTimeEnd: d.$moment.formatDate(a, "YYYY-MM-DD")
|
|
134
|
+
}), n = p(), i = new Map(n.map((e) => [e, 0])), l = new Map(n.map((e) => [e, 0]));
|
|
135
|
+
o.data.results.forEach((e) => {
|
|
136
|
+
const f = e.analysisTime.split("T")[0];
|
|
137
|
+
i.set(f, parseFloat(e.orderAmount)), l.set(f, e.orderCount);
|
|
138
|
+
}), r.value = {
|
|
139
|
+
dates: n,
|
|
140
|
+
amounts: n.map((e) => i.get(e) || 0),
|
|
141
|
+
counts: n.map((e) => l.get(e) || 0)
|
|
142
|
+
}, x(() => {
|
|
143
|
+
m();
|
|
144
|
+
});
|
|
145
|
+
} catch (a) {
|
|
146
|
+
console.error("获取折线图数据失败:", a);
|
|
147
|
+
const t = p();
|
|
148
|
+
r.value = {
|
|
149
|
+
dates: t,
|
|
150
|
+
amounts: t.map(() => Math.round(Math.random() * 15e3)),
|
|
151
|
+
counts: t.map(() => Math.round(Math.random() * 20))
|
|
152
|
+
}, x(() => {
|
|
153
|
+
m();
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
return b(() => {
|
|
158
|
+
g(), window.addEventListener("resize", () => {
|
|
159
|
+
s == null || s.resize();
|
|
160
|
+
});
|
|
161
|
+
}), (a, t) => (v(), D("div", Y, [
|
|
162
|
+
w("div", {
|
|
163
|
+
ref_key: "lineChart",
|
|
164
|
+
ref: c,
|
|
165
|
+
style: { width: "100%", height: "300px" }
|
|
166
|
+
}, null, 512)
|
|
167
|
+
]));
|
|
168
|
+
}
|
|
169
|
+
}), F = /* @__PURE__ */ L(k, [["__scopeId", "data-v-87497f5d"]]);
|
|
170
|
+
export {
|
|
171
|
+
F as default
|
|
172
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { AxiosPromise } from "axios";
|
|
2
|
+
import type { SettleApi, SettleList, SettleMarketList, SettleMarketReq, SettleModel, SettleReq } from "./types";
|
|
3
|
+
declare class SettleApiImpl implements SettleApi {
|
|
4
|
+
getKey(model: SettleModel): any;
|
|
5
|
+
homePageAmount(query: SettleReq): AxiosPromise<SettleModel>;
|
|
6
|
+
orderAmount(query: SettleReq): AxiosPromise<SettleList>;
|
|
7
|
+
payModel(query: SettleReq): AxiosPromise<SettleList>;
|
|
8
|
+
amountTrend(query: SettleReq): AxiosPromise<SettleList>;
|
|
9
|
+
salesAmount(query: SettleReq): AxiosPromise<SettleList>;
|
|
10
|
+
newMerchant(query: SettleMarketReq): AxiosPromise<SettleMarketList>;
|
|
11
|
+
}
|
|
12
|
+
declare const settleApi: SettleApiImpl;
|
|
13
|
+
export { settleApi };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { EntityApi, EntityReq, EntityModel, EntityList } from "jmash-core";
|
|
2
|
+
export interface SettleApi extends EntityApi {
|
|
3
|
+
}
|
|
4
|
+
export interface SettleReq extends EntityReq {
|
|
5
|
+
agentCode?: string;
|
|
6
|
+
channelId?: string;
|
|
7
|
+
analysisTimeStart?: string;
|
|
8
|
+
analysisTimeEnd?: string;
|
|
9
|
+
tokenExt?: string;
|
|
10
|
+
marketBy?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface SettleModel extends EntityModel {
|
|
13
|
+
analysisTime?: string;
|
|
14
|
+
agentCode?: string;
|
|
15
|
+
channelId?: string;
|
|
16
|
+
merchantNum?: number;
|
|
17
|
+
orderAmount?: string;
|
|
18
|
+
orderCount?: number;
|
|
19
|
+
feeAmt?: string;
|
|
20
|
+
settleAmount?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface SettleList extends EntityList {
|
|
23
|
+
results: Array<SettleTotalMode>;
|
|
24
|
+
}
|
|
25
|
+
export interface SettleTotalMode extends EntityModel {
|
|
26
|
+
analysisTime?: string;
|
|
27
|
+
merchantId?: string;
|
|
28
|
+
payMode?: number;
|
|
29
|
+
orderAmount?: string;
|
|
30
|
+
orderCount?: number;
|
|
31
|
+
feeAmt?: string;
|
|
32
|
+
settleAmount?: string;
|
|
33
|
+
marketBy?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface SettleMarketReq extends EntityReq {
|
|
36
|
+
agentCode?: string;
|
|
37
|
+
startCreateTime?: string;
|
|
38
|
+
endCreateTime?: string;
|
|
39
|
+
marketBy?: string;
|
|
40
|
+
tokenExt?: string;
|
|
41
|
+
}
|
|
42
|
+
export interface SettleMarketList extends EntityList {
|
|
43
|
+
agentMerchantNumModel: Array<SettleMarketMode>;
|
|
44
|
+
}
|
|
45
|
+
export interface SettleMarketMode extends EntityModel {
|
|
46
|
+
marketBy?: string;
|
|
47
|
+
merchantNum?: number;
|
|
48
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AxiosPromise } from "axios";
|
|
2
|
+
import type { SettleApi, SettleList, SettleModel, SettleReq } from "./types";
|
|
3
|
+
declare class SettleApiImpl implements SettleApi {
|
|
4
|
+
getKey(model: SettleModel): any;
|
|
5
|
+
homePageAmount(query?: SettleReq): AxiosPromise<SettleModel>;
|
|
6
|
+
orderAmount(query?: SettleReq): AxiosPromise<SettleList>;
|
|
7
|
+
payModel(query?: SettleReq): AxiosPromise<SettleList>;
|
|
8
|
+
amountTrend(query?: SettleReq): AxiosPromise<SettleList>;
|
|
9
|
+
}
|
|
10
|
+
declare const settleApi: SettleApiImpl;
|
|
11
|
+
export { settleApi };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { EntityApi, EntityReq, EntityModel, EntityList } from "jmash-core";
|
|
2
|
+
export interface SettleApi extends EntityApi {
|
|
3
|
+
}
|
|
4
|
+
export interface SettleReq extends EntityReq {
|
|
5
|
+
agentCode?: string;
|
|
6
|
+
channelId?: string;
|
|
7
|
+
analysisTimeStart?: string;
|
|
8
|
+
analysisTimeEnd?: string;
|
|
9
|
+
token?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface SettleModel extends EntityModel {
|
|
12
|
+
analysisTime?: string;
|
|
13
|
+
agentCode?: string;
|
|
14
|
+
channelId?: string;
|
|
15
|
+
merchantNum?: number;
|
|
16
|
+
orderAmount?: string;
|
|
17
|
+
orderCount?: number;
|
|
18
|
+
feeAmt?: string;
|
|
19
|
+
settleAmount?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface SettleList extends EntityList {
|
|
22
|
+
results: Array<SettleTotalMode>;
|
|
23
|
+
}
|
|
24
|
+
export interface SettleTotalMode extends EntityModel {
|
|
25
|
+
analysisTime?: string;
|
|
26
|
+
merchantId?: string;
|
|
27
|
+
payMode?: number;
|
|
28
|
+
orderAmount?: string;
|
|
29
|
+
orderCount?: number;
|
|
30
|
+
feeAmt?: string;
|
|
31
|
+
settleAmount?: string;
|
|
32
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AxiosPromise } from "axios";
|
|
2
|
+
import type { MchtHomePageApi, MchtSettleList, MchtSettleModel, MchtSettleReq } from "./types";
|
|
3
|
+
declare class MchtHomePageApiImpl implements MchtHomePageApi {
|
|
4
|
+
getKey(model: MchtSettleModel): any;
|
|
5
|
+
amountTrend(query: MchtSettleReq): AxiosPromise<MchtSettleList>;
|
|
6
|
+
homePageAmount(query: MchtSettleReq): AxiosPromise<MchtSettleModel>;
|
|
7
|
+
}
|
|
8
|
+
declare const mchtHomePageApi: MchtHomePageApiImpl;
|
|
9
|
+
export { mchtHomePageApi };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { EntityApi, EntityReq, EntityModel, EntityList } from "jmash-core";
|
|
2
|
+
export interface MchtHomePageApi extends EntityApi {
|
|
3
|
+
}
|
|
4
|
+
export interface MchtSettleReq extends EntityReq {
|
|
5
|
+
agentCode?: string;
|
|
6
|
+
channelId?: string;
|
|
7
|
+
analysisTimeStart?: string;
|
|
8
|
+
analysisTimeEnd?: string;
|
|
9
|
+
tokenExt?: string;
|
|
10
|
+
marketBy?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface MchtSettleModel extends EntityModel {
|
|
13
|
+
analysisTime?: string;
|
|
14
|
+
agentCode?: string;
|
|
15
|
+
channelId?: string;
|
|
16
|
+
merchantNum?: number;
|
|
17
|
+
orderAmount?: string;
|
|
18
|
+
orderCount?: number;
|
|
19
|
+
feeAmt?: string;
|
|
20
|
+
settleAmount?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface MchtSettleList extends EntityList {
|
|
23
|
+
results: Array<MchtSettleTotalMode>;
|
|
24
|
+
}
|
|
25
|
+
export interface MchtSettleTotalMode extends EntityModel {
|
|
26
|
+
analysisTime?: string;
|
|
27
|
+
merchantId?: string;
|
|
28
|
+
payMode?: number;
|
|
29
|
+
orderAmount?: string;
|
|
30
|
+
orderCount?: number;
|
|
31
|
+
feeAmt?: string;
|
|
32
|
+
settleAmount?: string;
|
|
33
|
+
marketBy?: string;
|
|
34
|
+
}
|
|
@@ -6,6 +6,7 @@ export interface SettleMerchantTradeAnalysisReq extends EntityReq {
|
|
|
6
6
|
tokenExt?: string;
|
|
7
7
|
likeMerchantNo?: string;
|
|
8
8
|
merchantId?: string;
|
|
9
|
+
instsId?: string;
|
|
9
10
|
analysisTimeStart?: string;
|
|
10
11
|
analysisTimeEnd?: string;
|
|
11
12
|
termNo?: string;
|
|
@@ -45,7 +46,6 @@ export interface SettleTradeAnalysisModelTotal extends EntityTotal {
|
|
|
45
46
|
totalSize: number;
|
|
46
47
|
totalOrderCount?: number;
|
|
47
48
|
totalOrderAmount?: string;
|
|
48
|
-
/** 交易金额 */
|
|
49
49
|
totalTradeAmount?: string;
|
|
50
50
|
totalDiscountAmount?: string;
|
|
51
51
|
totalFeeAmt?: string;
|
package/dts/src/constant.d.ts
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
export declare class Constant {
|
|
2
2
|
static readonly PAYMENT_DICT = "payment";
|
|
3
3
|
static readonly RPC_FORMAT_TIME = "YYYY-MM-DDTHH:mm:SSZ";
|
|
4
|
+
static readonly RPC_FORMAT_DATA = "YYYY-MM-DD";
|
|
4
5
|
static readonly PAY_MODE = "xyvcard.payment.protobuf.PayMode";
|
|
5
6
|
static readonly TRADE_TYPE = "xyvcard.payment.protobuf.TradeType";
|
|
6
7
|
static readonly ORDER_STATUS = "xyvcard.payment.protobuf.OrderStatus";
|
|
7
8
|
static readonly TRADE_STATUS = "xyvcard.payment.protobuf.TradeStatus";
|
|
8
9
|
static readonly AGENT_AGREE = "AGENT_AGREE";
|
|
10
|
+
static readonly PAYMENT_COLORS: {
|
|
11
|
+
WECHAT: string;
|
|
12
|
+
ALIPAY: string;
|
|
13
|
+
UQRCODEPAY: string;
|
|
14
|
+
BALANCE: string;
|
|
15
|
+
NUCSPAY: string;
|
|
16
|
+
};
|
|
9
17
|
}
|
|
@@ -41,6 +41,7 @@ declare const _default: {
|
|
|
41
41
|
index: string;
|
|
42
42
|
createTime: string;
|
|
43
43
|
channelId: string;
|
|
44
|
+
instsId: string;
|
|
44
45
|
channelIdRead: string;
|
|
45
46
|
agentCode: string;
|
|
46
47
|
agentName: string;
|
|
@@ -83,6 +84,7 @@ declare const _default: {
|
|
|
83
84
|
transferMoneyDateEnd: string;
|
|
84
85
|
transferMoneyDate: string;
|
|
85
86
|
agentCode: string;
|
|
87
|
+
agentName: string;
|
|
86
88
|
agentCodeRead: string;
|
|
87
89
|
channelId: string;
|
|
88
90
|
index: string;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { type RouteRecordRaw } from "vue-router";
|
|
2
2
|
export declare const settleRoutes: RouteRecordRaw[];
|
|
3
|
+
export declare const pintaiLogin: () => Promise<typeof import("@/views/payment/instsLogin/index.vue")>;
|
|
4
|
+
export declare const pintaiHomePage: () => Promise<typeof import("@/views/payment/instHomePage/index.vue")>;
|
|
5
|
+
export declare const agentHomePage: () => Promise<typeof import("@/views/payment/agentHomePage/index.vue")>;
|
|
6
|
+
export declare const merchantHomePage: () => Promise<typeof import("@/views/payment/merchantHomePage/index.vue")>;
|
|
3
7
|
export declare const constantRoutes: RouteRecordRaw[];
|
|
4
8
|
/**
|
|
5
9
|
* 创建路由
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare class TokenExt {
|
|
2
|
+
/**
|
|
3
|
+
* 将指定租户的扩展令牌存储到会话存储中
|
|
4
|
+
* @param tenant 租户标识符,用于构造存储键名
|
|
5
|
+
* @param tokenExt 要存储的扩展令牌字符串
|
|
6
|
+
*/
|
|
7
|
+
setTokenExt(tenant: string, tokenExt: string): void;
|
|
8
|
+
/**
|
|
9
|
+
* 获取指定租户的扩展令牌
|
|
10
|
+
*
|
|
11
|
+
* 从sessionStorage中读取对应租户的TokenExt值,若不存在则返回空字符串
|
|
12
|
+
*
|
|
13
|
+
* @param tenant - 租户标识符,用于构造存储键名
|
|
14
|
+
* @returns 存储的TokenExt字符串值,不存在时返回空字符串
|
|
15
|
+
*/
|
|
16
|
+
getTokenExt(tenant: string): string;
|
|
17
|
+
setCurrentRole(tenant: string, role: any): void;
|
|
18
|
+
getCurrentRole(tenant: string): any;
|
|
19
|
+
}
|
|
20
|
+
export declare const tokenExt: TokenExt;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xyvcard-settle",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.25",
|
|
4
4
|
"private": false,
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"types": "dts/src/index.d.ts",
|
|
@@ -46,7 +46,8 @@
|
|
|
46
46
|
"file-saver": "^2.0.5",
|
|
47
47
|
"nprogress": "^0.2.0",
|
|
48
48
|
"@vueuse/core": "^10.9.0",
|
|
49
|
-
"qs": "^6.12.0"
|
|
49
|
+
"qs": "^6.12.0",
|
|
50
|
+
"echarts": "^5.5.1"
|
|
50
51
|
},
|
|
51
52
|
"scripts": {
|
|
52
53
|
"dev": "vite --host",
|
package/dist/index-DXSCg5PP.mjs
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
var p = Object.defineProperty;
|
|
2
|
-
var A = (a, t, i) => t in a ? p(a, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : a[t] = i;
|
|
3
|
-
var s = (a, t, i) => A(a, typeof t != "symbol" ? t + "" : t, i);
|
|
4
|
-
import { BizLayDict as y, BizDict as T, EnumDict as h } from "jmash-core";
|
|
5
|
-
import { infoApi as d } from "xyvcard-agent";
|
|
6
|
-
import { institutionApi as E } from "xyvcard-insts";
|
|
7
|
-
import { merchantsApi as o } from "xyvcard-merchant";
|
|
8
|
-
class e {
|
|
9
|
-
}
|
|
10
|
-
//模块
|
|
11
|
-
s(e, "PAYMENT_DICT", "payment"), // 时间格式 RFC-年月日时分
|
|
12
|
-
s(e, "RPC_FORMAT_TIME", "YYYY-MM-DDTHH:mm:SSZ"), // 支付方式
|
|
13
|
-
s(e, "PAY_MODE", "xyvcard.payment.protobuf.PayMode"), // 交易类型
|
|
14
|
-
s(e, "TRADE_TYPE", "xyvcard.payment.protobuf.TradeType"), // 支付状态
|
|
15
|
-
s(e, "ORDER_STATUS", "xyvcard.payment.protobuf.OrderStatus"), // 支付状态
|
|
16
|
-
s(e, "TRADE_STATUS", "xyvcard.payment.protobuf.TradeStatus"), // 支付状态
|
|
17
|
-
s(e, "AGENT_AGREE", "AGENT_AGREE");
|
|
18
|
-
function l(a, t, i) {
|
|
19
|
-
return !Array.isArray(a) || a.length === 0 ? [] : a.map((r) => {
|
|
20
|
-
let n = [];
|
|
21
|
-
return Array.isArray(r.children) && r.children.length > 0 && (n = l(r.children, t, i)), {
|
|
22
|
-
value: r[i],
|
|
23
|
-
label: r[t],
|
|
24
|
-
parentId: r.parentId,
|
|
25
|
-
children: n
|
|
26
|
-
};
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
class m extends y {
|
|
30
|
-
// 实现 useValues 方法
|
|
31
|
-
useValues() {
|
|
32
|
-
return new Promise((t, i) => {
|
|
33
|
-
this.query.approved = e.AGENT_AGREE, this.query.hasApproved = !0, d.findList(this.query).then(({ data: u }) => {
|
|
34
|
-
this.values.length = 0, this.values.push(
|
|
35
|
-
...l(u.results, "agentAlias", "agentCode")
|
|
36
|
-
), t(this.values);
|
|
37
|
-
}).catch(i);
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
class D extends T {
|
|
42
|
-
// 实现 useValues 方法
|
|
43
|
-
useValues() {
|
|
44
|
-
return new Promise((t, i) => {
|
|
45
|
-
E.findList(this.query).then(({ data: u }) => {
|
|
46
|
-
const r = u.results;
|
|
47
|
-
this.values.length = 0, this.values.push(
|
|
48
|
-
...r.map(
|
|
49
|
-
(n) => ({
|
|
50
|
-
key: n.instsId,
|
|
51
|
-
value: n.instsName
|
|
52
|
-
})
|
|
53
|
-
)
|
|
54
|
-
), t(this.values);
|
|
55
|
-
}).catch(i);
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
class _ extends T {
|
|
60
|
-
// 实现 useValues 方法
|
|
61
|
-
useValues() {
|
|
62
|
-
return new Promise((t, i) => {
|
|
63
|
-
o.findList(this.query).then(({ data: u }) => {
|
|
64
|
-
const r = u.results;
|
|
65
|
-
this.values.length = 0, this.values.push(
|
|
66
|
-
...r.map(
|
|
67
|
-
(n) => ({
|
|
68
|
-
key: n.merchantId,
|
|
69
|
-
value: n.merchantName
|
|
70
|
-
})
|
|
71
|
-
)
|
|
72
|
-
), t(this.values);
|
|
73
|
-
}).catch(i);
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
class c {
|
|
78
|
-
}
|
|
79
|
-
// 代理商
|
|
80
|
-
s(c, "agentBizDict", new m({})), // 落地机构
|
|
81
|
-
s(c, "instsBizDict", new D({})), // 商户名称
|
|
82
|
-
s(c, "merchantBizDict", new _({})), // 支付方式
|
|
83
|
-
s(c, "payModeBizDict", new h(
|
|
84
|
-
e.PAYMENT_DICT,
|
|
85
|
-
e.PAY_MODE
|
|
86
|
-
)), // 交易类型
|
|
87
|
-
s(c, "tradeTypeBizDict", new h(
|
|
88
|
-
e.PAYMENT_DICT,
|
|
89
|
-
e.TRADE_TYPE
|
|
90
|
-
)), // 订单状态
|
|
91
|
-
s(c, "orderStatusBizDict", new h(
|
|
92
|
-
e.PAYMENT_DICT,
|
|
93
|
-
e.ORDER_STATUS
|
|
94
|
-
)), // 交易状态
|
|
95
|
-
s(c, "tradeStatusBizDict", new h(
|
|
96
|
-
e.PAYMENT_DICT,
|
|
97
|
-
e.TRADE_STATUS
|
|
98
|
-
));
|
|
99
|
-
export {
|
|
100
|
-
e as C,
|
|
101
|
-
c as D
|
|
102
|
-
};
|