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.
Files changed (33) hide show
  1. package/dist/{constant-D4ZF_7dk.mjs → constant-CtDv38CM.mjs} +1 -1
  2. package/dist/{history-B-IkqJIh.mjs → history-CKm40RN0.mjs} +1 -1
  3. package/dist/{history-Bwh8KkP3.mjs → history-Uv5wF8tp.mjs} +1 -1
  4. 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
  5. 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
  6. package/dist/{index-CoFF2Ob7.mjs → index-BAU8_bL5.mjs} +8 -8
  7. package/dist/{index-2s-MEXAI.mjs → index-BF180-Dc.mjs} +2 -2
  8. package/dist/{index-7mx7BVcy.mjs → index-BOYpCJFd.mjs} +78 -70
  9. package/dist/{index-jCpwk7yw.mjs → index-BXr-5-X_.mjs} +8 -7
  10. package/dist/{index-DIBoxi0R.mjs → index-CAOauGAU.mjs} +2 -2
  11. package/dist/{index-cRii9rLo.mjs → index-Ce1JIAp_.mjs} +2 -2
  12. package/dist/{index-CkZwAxic.mjs → index-Che5xN0z.mjs} +2 -2
  13. package/dist/{index--PbK07xd.mjs → index-Cqpx7sK8.mjs} +2 -2
  14. package/dist/{index-CIgkwH9Q.mjs → index-DISA5kjA.mjs} +3 -3
  15. package/dist/{index-DALnGGtE.mjs → index-GI8dQtIV.mjs} +2 -2
  16. package/dist/{index-Dd8mEaP-.mjs → index-QIqV4ldo.mjs} +2 -2
  17. package/dist/index-V8g7-RWq.mjs +95 -0
  18. package/dist/index.mjs +1 -1
  19. package/dist/{pay-B83bWp1o.mjs → pay-D04R69xf.mjs} +1 -1
  20. package/dist/{pay-Cbkrx0kF.mjs → pay-ddopuD-7.mjs} +1 -1
  21. package/dist/{payPal-CxeWojgW.mjs → payPal-Bfu4en0b.mjs} +2 -2
  22. package/dist/{payPal-CSXQDwtc.mjs → payPal-Bp_Ivr7P.mjs} +2 -2
  23. package/dist/style.css +1 -1
  24. package/dist/{today-D-CvVI4s.mjs → today-BBWMuUFc.mjs} +1 -1
  25. package/dist/{today-fC0tD5z6.mjs → today-DFnsrdAZ.mjs} +1 -1
  26. package/dist/{today.vue_vue_type_script_setup_true_lang-JtY78KZT.mjs → today.vue_vue_type_script_setup_true_lang-Cf3MjsXi.mjs} +1 -1
  27. package/dist/{today.vue_vue_type_script_setup_true_lang-gE2xanSS.mjs → today.vue_vue_type_script_setup_true_lang-CmzDkIbs.mjs} +63 -62
  28. package/dts/src/api/settle/index.d.ts +1 -0
  29. package/dts/src/api/settle/settle-trade-receipt/types.d.ts +1 -0
  30. package/dts/src/constant.d.ts +1 -1
  31. package/dts/src/lang/settle/zh-cn.d.ts +1 -0
  32. package/package.json +4 -4
  33. 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,5 +1,5 @@
1
1
  import "jmash-core";
2
- import { a as o, s as t, m as i, p as s, b as g } from "./index-jCpwk7yw.mjs";
2
+ import { a as o, s as t, m as i, p as s, b as g } from "./index-BXr-5-X_.mjs";
3
3
  export {
4
4
  o as agentHomePage,
5
5
  t as default,
@@ -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-vAEKctTI.mjs";
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-vAEKctTI.mjs";
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-vAEKctTI.mjs";
5
- import { C as w } from "./constant-D4ZF_7dk.mjs";
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-vAEKctTI.mjs";
5
- import { C as z } from "./constant-D4ZF_7dk.mjs";
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",