xyvcard-settle 0.0.38 → 0.0.40
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 → constant-CtDv38CM.mjs} +1 -1
- package/dist/{history-B-IkqJIh.mjs → history-CKm40RN0.mjs} +1 -1
- package/dist/{history-Bwh8KkP3.mjs → history-Uv5wF8tp.mjs} +1 -1
- package/dist/{history.vue_vue_type_script_setup_true_lang-zty-H-sg.mjs → history.vue_vue_type_script_setup_true_lang-BlBHinps.mjs} +2 -2
- package/dist/{history.vue_vue_type_script_setup_true_lang-BVjasG18.mjs → history.vue_vue_type_script_setup_true_lang-Dj7A2_XH.mjs} +101 -99
- package/dist/{index-CoFF2Ob7.mjs → index-BAU8_bL5.mjs} +8 -8
- package/dist/{index-2s-MEXAI.mjs → index-BF180-Dc.mjs} +2 -2
- package/dist/{index-7mx7BVcy.mjs → index-BOYpCJFd.mjs} +78 -70
- package/dist/{index-jCpwk7yw.mjs → index-BXr-5-X_.mjs} +8 -7
- package/dist/{index-DIBoxi0R.mjs → index-CAOauGAU.mjs} +2 -2
- package/dist/{index-cRii9rLo.mjs → index-Ce1JIAp_.mjs} +2 -2
- package/dist/{index-CkZwAxic.mjs → index-Che5xN0z.mjs} +2 -2
- package/dist/{index--PbK07xd.mjs → index-Cqpx7sK8.mjs} +2 -2
- package/dist/{index-CIgkwH9Q.mjs → index-DISA5kjA.mjs} +3 -3
- package/dist/{index-DALnGGtE.mjs → index-GI8dQtIV.mjs} +2 -2
- package/dist/{index-Dd8mEaP-.mjs → index-QIqV4ldo.mjs} +2 -2
- package/dist/index-V8g7-RWq.mjs +95 -0
- package/dist/index.mjs +1 -1
- package/dist/{pay-B83bWp1o.mjs → pay-D04R69xf.mjs} +1 -1
- package/dist/{pay-Cbkrx0kF.mjs → pay-ddopuD-7.mjs} +1 -1
- package/dist/{payPal-CxeWojgW.mjs → payPal-Bfu4en0b.mjs} +2 -2
- package/dist/{payPal-CSXQDwtc.mjs → payPal-Bp_Ivr7P.mjs} +2 -2
- package/dist/style.css +1 -1
- package/dist/{today-D-CvVI4s.mjs → today-BBWMuUFc.mjs} +1 -1
- package/dist/{today-fC0tD5z6.mjs → today-DFnsrdAZ.mjs} +1 -1
- package/dist/{today.vue_vue_type_script_setup_true_lang-JtY78KZT.mjs → today.vue_vue_type_script_setup_true_lang-Cf3MjsXi.mjs} +1 -1
- package/dist/{today.vue_vue_type_script_setup_true_lang-gE2xanSS.mjs → today.vue_vue_type_script_setup_true_lang-CmzDkIbs.mjs} +63 -62
- package/dts/src/api/settle/index.d.ts +1 -0
- package/dts/src/api/settle/settle-trade-receipt/types.d.ts +1 -0
- package/dts/src/constant.d.ts +1 -1
- package/dts/src/lang/settle/zh-cn.d.ts +1 -0
- package/package.json +4 -4
- package/dist/index-vAEKctTI.mjs +0 -92
|
@@ -0,0 +1,95 @@
|
|
|
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/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-V8g7-RWq.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-V8g7-RWq.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,8 +1,8 @@
|
|
|
1
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 } from "./index-
|
|
5
|
-
import { C as w } from "./constant-
|
|
4
|
+
import { D as h } from "./index-V8g7-RWq.mjs";
|
|
5
|
+
import { C as w } from "./constant-CtDv38CM.mjs";
|
|
6
6
|
import { _ as z } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
7
7
|
const C = /* @__PURE__ */ m({
|
|
8
8
|
__name: "payPal",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
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 } from "./index-
|
|
5
|
-
import { C as z } from "./constant-
|
|
4
|
+
import { D as h } from "./index-V8g7-RWq.mjs";
|
|
5
|
+
import { C as z } from "./constant-CtDv38CM.mjs";
|
|
6
6
|
import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
7
7
|
const b = /* @__PURE__ */ m({
|
|
8
8
|
__name: "payPal",
|