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.
Files changed (42) hide show
  1. package/dist/agent-BXhE-jbg.mjs +32 -0
  2. package/dist/{history-Bjxjxy_1.mjs → history-BAkRg2pq.mjs} +1 -1
  3. package/dist/{history-CyGeajMX.mjs → history-Dn1bbCcI.mjs} +1 -1
  4. package/dist/{history.vue_vue_type_script_setup_true_lang-dd7Qrf3A.mjs → history.vue_vue_type_script_setup_true_lang-CgrLgBqg.mjs} +76 -75
  5. package/dist/{history.vue_vue_type_script_setup_true_lang-DzyW9ohx.mjs → history.vue_vue_type_script_setup_true_lang-Dl65zcTa.mjs} +136 -149
  6. package/dist/{index-I-KFULpq.mjs → index-A0dvO46M.mjs} +416 -415
  7. package/dist/{index-Csk-TNBj.mjs → index-BOrI7JtW.mjs} +2 -2
  8. package/dist/{index-BMj5XmMX.mjs → index-BRU67qDa.mjs} +227 -240
  9. package/dist/{index-C-A0Y3EK.mjs → index-BTCLMpHR.mjs} +59 -63
  10. package/dist/index-CE4_NZLb.mjs +129 -0
  11. package/dist/index-CGc-CaEO.mjs +91 -0
  12. package/dist/{index-vIbGxvHd.mjs → index-CaaOEjHM.mjs} +2 -2
  13. package/dist/{index-BpcmzxBU.mjs → index-CbEHaatk.mjs} +3 -3
  14. package/dist/index-Dp6vdCsP.mjs +713 -0
  15. package/dist/{index-CGyzqfPx.mjs → index-DsEuGxTJ.mjs} +216 -229
  16. package/dist/{index-DsTHP6ez.mjs → index-DzN2x713.mjs} +46 -46
  17. package/dist/{index-BA1OfmNb.mjs → index-oJY5i5R_.mjs} +2 -2
  18. package/dist/{index-x556wvD_.mjs → index-vF1PDwWz.mjs} +214 -229
  19. package/dist/index-yz18Lhpm.mjs +113 -0
  20. package/dist/index.mjs +1 -1
  21. package/dist/{merchant-BENZD2R4.mjs → merchant-u4dNCa0T.mjs} +1 -1
  22. 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
  23. package/dist/{pay-BK10dbR-.mjs → pay-CvwrYB4j.mjs} +1 -1
  24. package/dist/{pay-D04R69xf.mjs → pay-Db-UEae3.mjs} +2 -2
  25. package/dist/{payPal-C5Hhq3pQ.mjs → payPal-3RoPmLkF.mjs} +20 -21
  26. package/dist/{payPal-Bfu4en0b.mjs → payPal-Cm1ZmJdL.mjs} +7 -8
  27. package/dist/{sale-Cki0rZ6-.mjs → sale-CuEqsPD7.mjs} +1 -1
  28. package/dist/{sale.vue_vue_type_script_setup_true_lang-C1gJAEgg.mjs → sale.vue_vue_type_script_setup_true_lang-DXUIMGjh.mjs} +1 -1
  29. package/dist/style.css +1 -1
  30. package/dist/{today-DFnsrdAZ.mjs → today-C1jwQmNs.mjs} +1 -1
  31. package/dist/{today-DYd5N03E.mjs → today-ZrG0UNrv.mjs} +1 -1
  32. package/dist/{today.vue_vue_type_script_setup_true_lang-Cf3MjsXi.mjs → today.vue_vue_type_script_setup_true_lang-BPQu6Gke.mjs} +74 -73
  33. package/dist/{today.vue_vue_type_script_setup_true_lang-D2JX696c.mjs → today.vue_vue_type_script_setup_true_lang-CZqnx44q.mjs} +116 -129
  34. package/dist/{trend-3ibJo3lK.mjs → trend-XEzpdsLj.mjs} +1 -1
  35. package/dts/src/api/settle/agent.d.ts +15 -0
  36. package/package.json +2 -2
  37. package/dist/constant-CtDv38CM.mjs +0 -24
  38. package/dist/index-C6Tt7EGW.mjs +0 -726
  39. package/dist/index-D9OMutL6.mjs +0 -64
  40. package/dist/index-Doq8ZiUn.mjs +0 -136
  41. package/dist/index-V8g7-RWq.mjs +0 -95
  42. package/dist/tokenExt-SHK5rrb5.mjs +0 -31
@@ -0,0 +1,113 @@
1
+ var p = Object.defineProperty;
2
+ var l = (a, s, i) => s in a ? p(a, s, { enumerable: !0, configurable: !0, writable: !0, value: i }) : a[s] = i;
3
+ var e = (a, s, i) => l(a, typeof s != "symbol" ? s + "" : s, i);
4
+ import { BizLayDict as y, BizDict as E, EnumDict as u } from "jmash-core";
5
+ import { infoApi as D } from "xyvcard-agent";
6
+ import { institutionApi as d } from "xyvcard-insts";
7
+ import { merchantsApi as _ } from "xyvcard-merchant";
8
+ class t {
9
+ }
10
+ //模块
11
+ e(t, "PAYMENT_DICT", "payment"), // 时间格式 RFC-年月日时分
12
+ e(t, "RPC_FORMAT_TIME", "YYYY-MM-DDTHH:mm:ssZ"), // 时间格式 RFC-年月日时分
13
+ e(t, "RPC_FORMAT_DATA", "YYYY-MM-DD"), // 支付方式
14
+ e(t, "PAY_MODE", "xyvcard.payment.protobuf.PayMode"), // 交易类型
15
+ e(t, "TRADE_TYPE", "xyvcard.payment.protobuf.PayTradeType"), // 支付状态
16
+ e(t, "ORDER_STATUS", "xyvcard.payment.protobuf.PayOrderStatus"), // 支付状态
17
+ e(t, "TRADE_STATUS", "xyvcard.payment.protobuf.PayTradeStatus"), // 支付状态
18
+ e(t, "AGENT_AGREE", "AGENT_AGREE"), // 支付方式颜色
19
+ e(t, "PAYMENT_COLORS", {
20
+ WECHAT: "#3DDEC1",
21
+ ALIPAY: "#F79AE3",
22
+ UQRCODEPAY: "#F8A3A3",
23
+ BALANCE: "#FBD564",
24
+ NUCSPAY: "#C36433"
25
+ }), e(t, "MCHT_CHAIN_HEAD", "MCHT_CHAIN_HEAD"), e(t, "MCHT_CHAIN_BRANCH", "MCHT_CHAIN_BRANCH");
26
+ function h(a, s, i) {
27
+ return !Array.isArray(a) || a.length === 0 ? [] : a.map((r) => {
28
+ let A = [];
29
+ return Array.isArray(r.children) && r.children.length > 0 && (A = h(r.children, s, i)), {
30
+ value: r[i],
31
+ label: r[s],
32
+ parentId: r.parentId,
33
+ children: A
34
+ };
35
+ });
36
+ }
37
+ class T extends y {
38
+ // 实现 useValues 方法
39
+ useValues() {
40
+ return new Promise((s, i) => {
41
+ this.query.approved = t.AGENT_AGREE, this.query.hasApproved = !0, D.findList(this.query).then(({ data: n }) => {
42
+ this.values.length = 0, this.values.push(
43
+ ...h(n.results, "agentAlias", "agentCode")
44
+ ), s(this.values);
45
+ }).catch(i);
46
+ });
47
+ }
48
+ }
49
+ class m extends E {
50
+ // 实现 useValues 方法
51
+ useValues() {
52
+ return new Promise((s, i) => {
53
+ d.findList(this.query).then(({ data: n }) => {
54
+ const r = n.results;
55
+ this.values.length = 0, this.values.push(
56
+ ...r.map(
57
+ (A) => ({
58
+ key: A.instsId,
59
+ value: A.instsName
60
+ })
61
+ )
62
+ ), s(this.values);
63
+ }).catch(i);
64
+ });
65
+ }
66
+ }
67
+ class o extends E {
68
+ // 实现 useValues 方法
69
+ useValues() {
70
+ return new Promise((s, i) => {
71
+ _.findList(this.query).then(({ data: n }) => {
72
+ const r = n.results;
73
+ this.values.length = 0, this.values.push(
74
+ ...r.map(
75
+ (A) => ({
76
+ key: A.merchantId,
77
+ value: A.merchantName
78
+ })
79
+ )
80
+ ), s(this.values);
81
+ }).catch(i);
82
+ });
83
+ }
84
+ }
85
+ class c {
86
+ }
87
+ // 代理商
88
+ e(c, "agentBizDict", new T({})), // 审核通过的代理商
89
+ e(c, "agentAgreeBizDict", new T({
90
+ approved: t.AGENT_AGREE
91
+ })), // 落地机构
92
+ e(c, "instsBizDict", new m({})), // 商户名称
93
+ e(c, "merchantBizDict", new o({})), // 支付方式
94
+ e(c, "payModeBizDict", new u(
95
+ t.PAYMENT_DICT,
96
+ t.PAY_MODE
97
+ )), // 交易类型
98
+ e(c, "tradeTypeBizDict", new u(
99
+ t.PAYMENT_DICT,
100
+ t.TRADE_TYPE
101
+ )), // 订单状态
102
+ e(c, "orderStatusBizDict", new u(
103
+ t.PAYMENT_DICT,
104
+ t.ORDER_STATUS
105
+ )), // 交易状态
106
+ e(c, "tradeStatusBizDict", new u(
107
+ t.PAYMENT_DICT,
108
+ t.TRADE_STATUS
109
+ ));
110
+ export {
111
+ t as C,
112
+ c as D
113
+ };
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-I-KFULpq.mjs";
2
+ import { a as o, s as t, m as i, p as s, b as g } from "./index-A0dvO46M.mjs";
3
3
  export {
4
4
  o as agentHomePage,
5
5
  t as default,
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./merchant.vue_vue_type_script_setup_true_lang-BH_Fe-pn.mjs";
1
+ import { _ as f } from "./merchant.vue_vue_type_script_setup_true_lang-CvB7L7G7.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as d, ref as u, resolveComponent as i, createBlock as f, openBlock as a, withCtx as t, createVNode as n, createElementBlock as r, toDisplayString as l, createElementVNode as m, createCommentVNode as h, unref as k, createTextVNode as y } from "vue";
2
2
  import { _ as g, a as b, b as N } from "./three-BE8B3lbG.mjs";
3
3
  import { tokenExt as x } from "xyvcard-agent";
4
- import { s as B } from "./index-D9OMutL6.mjs";
4
+ import { s as B } from "./index-CGc-CaEO.mjs";
5
5
  import { useUserStore as E } from "jmash-core";
6
6
  import { getUserDisplayName as w } from "xyvcard-merchant";
7
7
  const C = {
@@ -61,7 +61,7 @@ const C = {
61
61
  align: "right"
62
62
  }, {
63
63
  header: t(() => o[2] || (o[2] = [
64
- m("span", { style: { color: "#f5782d" } }, "新增商户", -1)
64
+ m("span", { style: { color: "#f5782d" } }, "商户", -1)
65
65
  ])),
66
66
  default: t(({ row: e }) => [
67
67
  y(l(e.merchantNum) + "家", 1)
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as y, ref as u, onMounted as h, onUnmounted as x, createElementBlock as _, openBlock as g } from "vue";
2
2
  import { i as D } from "./index--_Po9Tig.mjs";
3
- import { D as l } from "./index-V8g7-RWq.mjs";
3
+ import { D as l } from "./index-yz18Lhpm.mjs";
4
4
  import { s as b } from "./index-eUhFgNKx.mjs";
5
5
  import { _ as w } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
6
6
  const z = /* @__PURE__ */ y({
@@ -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
- import { s as y } from "./index-D9OMutL6.mjs";
2
+ import { s as y } from "./index-CGc-CaEO.mjs";
3
3
  import { i as z } from "./index--_Po9Tig.mjs";
4
- import { D as i } from "./index-V8g7-RWq.mjs";
4
+ import { D as i } from "./index-yz18Lhpm.mjs";
5
5
  import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
6
6
  const w = /* @__PURE__ */ p({
7
7
  __name: "pay",
@@ -1,8 +1,7 @@
1
1
  import { defineComponent as y, ref as u, onMounted as g, onBeforeUnmount as v, createElementBlock as _, openBlock as w } from "vue";
2
2
  import { i as h } from "./index--_Po9Tig.mjs";
3
3
  import { s as D } from "./index-eUhFgNKx.mjs";
4
- import { D as S } from "./index-V8g7-RWq.mjs";
5
- import { C as E } from "./constant-CtDv38CM.mjs";
4
+ import { D as S, C as E } from "./index-yz18Lhpm.mjs";
6
5
  import { _ as z } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
7
6
  const C = /* @__PURE__ */ y({
8
7
  __name: "payPal",
@@ -10,14 +9,14 @@ const C = /* @__PURE__ */ y({
10
9
  const i = u();
11
10
  let t = null;
12
11
  const s = u([]), p = () => {
13
- const e = /* @__PURE__ */ new Date(), o = /* @__PURE__ */ new Date();
14
- o.setDate(e.getDate() - 6);
15
- const a = (r) => r.toISOString().split("T")[0];
12
+ const e = /* @__PURE__ */ new Date(), a = /* @__PURE__ */ new Date();
13
+ a.setDate(e.getDate() - 6);
14
+ const o = (r) => r.toISOString().split("T")[0];
16
15
  return {
17
- analysisTimeStart: a(o),
18
- analysisTimeEnd: a(e)
16
+ analysisTimeStart: o(a),
17
+ analysisTimeEnd: o(e)
19
18
  };
20
- }, m = () => ({
19
+ }, c = () => ({
21
20
  tooltip: {
22
21
  trigger: "item",
23
22
  position: function(e) {
@@ -32,8 +31,8 @@ const C = /* @__PURE__ */ y({
32
31
  top: "middle",
33
32
  data: s.value.map((e) => e.name),
34
33
  formatter: (e) => {
35
- const o = s.value.find((a) => a.name === e);
36
- return `${e} ${o == null ? void 0 : o.value}%`;
34
+ const a = s.value.find((o) => o.name === e);
35
+ return `${e} ${a == null ? void 0 : a.value}%`;
37
36
  },
38
37
  textStyle: {
39
38
  fontSize: 12
@@ -61,14 +60,14 @@ const C = /* @__PURE__ */ y({
61
60
  data: s.value
62
61
  }
63
62
  ]
64
- }), c = async () => {
65
- var e, o;
63
+ }), m = async () => {
64
+ var e, a;
66
65
  try {
67
- const a = p(), r = await D.payModel({
68
- analysisTimeStart: a.analysisTimeStart,
69
- analysisTimeEnd: a.analysisTimeEnd
66
+ const o = p(), r = await D.payModel({
67
+ analysisTimeStart: o.analysisTimeStart,
68
+ analysisTimeEnd: o.analysisTimeEnd
70
69
  });
71
- if (!((o = (e = r.data) == null ? void 0 : e.results) != null && o.length))
70
+ if (!((a = (e = r.data) == null ? void 0 : e.results) != null && a.length))
72
71
  throw new Error("暂无数据");
73
72
  const d = r.data.results.reduce(
74
73
  (n, l) => n + parseFloat(l.orderAmount || 0),
@@ -85,7 +84,7 @@ const C = /* @__PURE__ */ y({
85
84
  color: E.PAYMENT_COLORS[n.payMode]
86
85
  }
87
86
  };
88
- }), t == null || t.setOption(m());
87
+ }), t == null || t.setOption(c());
89
88
  } catch {
90
89
  t == null || t.setOption({
91
90
  title: {
@@ -99,20 +98,20 @@ const C = /* @__PURE__ */ y({
99
98
  return g(async () => {
100
99
  if (!i.value)
101
100
  return;
102
- t = h(i.value), t.showLoading(), await c(), t.hideLoading();
101
+ t = h(i.value), t.showLoading(), await m(), t.hideLoading();
103
102
  const e = () => {
104
103
  t == null || t.resize();
105
104
  };
106
105
  window.addEventListener("resize", e), e();
107
106
  }), v(() => {
108
107
  window.removeEventListener("resize", () => t == null ? void 0 : t.resize()), t == null || t.dispose();
109
- }), (e, o) => (w(), _("div", {
108
+ }), (e, a) => (w(), _("div", {
110
109
  ref_key: "chartContainer",
111
110
  ref: i,
112
111
  class: "chart-container"
113
112
  }, null, 512));
114
113
  }
115
- }), $ = /* @__PURE__ */ z(C, [["__scopeId", "data-v-98642cc6"]]);
114
+ }), A = /* @__PURE__ */ z(C, [["__scopeId", "data-v-98642cc6"]]);
116
115
  export {
117
- $ as default
116
+ A as default
118
117
  };
@@ -1,10 +1,9 @@
1
- import { defineComponent as m, ref as d, onMounted as c, onBeforeUnmount as v, createElementBlock as y, openBlock as _ } from "vue";
1
+ import { defineComponent as c, ref as d, onMounted as m, onBeforeUnmount as v, createElementBlock as y, openBlock as _ } from "vue";
2
2
  import { i as b } from "./index--_Po9Tig.mjs";
3
- import { s as g } from "./index-D9OMutL6.mjs";
4
- import { D as h } from "./index-V8g7-RWq.mjs";
5
- import { C as w } from "./constant-CtDv38CM.mjs";
3
+ import { s as g } from "./index-CGc-CaEO.mjs";
4
+ import { D as h, C as w } from "./index-yz18Lhpm.mjs";
6
5
  import { _ as z } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
7
- const C = /* @__PURE__ */ m({
6
+ const C = /* @__PURE__ */ c({
8
7
  __name: "payPal",
9
8
  setup(S) {
10
9
  const i = d();
@@ -94,7 +93,7 @@ const C = /* @__PURE__ */ m({
94
93
  });
95
94
  }
96
95
  };
97
- return c(async () => {
96
+ return m(async () => {
98
97
  if (!i.value) return;
99
98
  e = b(i.value), e.showLoading(), await p(), e.hideLoading();
100
99
  const t = () => e == null ? void 0 : e.resize();
@@ -107,7 +106,7 @@ const C = /* @__PURE__ */ m({
107
106
  class: "chart-container"
108
107
  }, null, 512));
109
108
  }
110
- }), $ = /* @__PURE__ */ z(C, [["__scopeId", "data-v-15ebef5f"]]);
109
+ }), O = /* @__PURE__ */ z(C, [["__scopeId", "data-v-15ebef5f"]]);
111
110
  export {
112
- $ as default
111
+ O as default
113
112
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./sale.vue_vue_type_script_setup_true_lang-C1gJAEgg.mjs";
1
+ import { _ as f } from "./sale.vue_vue_type_script_setup_true_lang-DXUIMGjh.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as c, ref as u, resolveComponent as d, createBlock as f, openBlock as a, withCtx as t, createVNode as r, createElementBlock as s, toDisplayString as n, createElementVNode as m, createCommentVNode as y, unref as h, createTextVNode as k } from "vue";
2
2
  import { _ as b, a as g, b as N } from "./three-BE8B3lbG.mjs";
3
3
  import { getUserDisplayName as B } from "xyvcard-merchant";
4
- import { s as C } from "./index-D9OMutL6.mjs";
4
+ import { s as C } from "./index-CGc-CaEO.mjs";
5
5
  const V = {
6
6
  key: 0,
7
7
  src: b,