xyvcard-settle 0.0.68 → 0.0.70

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 (52) hide show
  1. package/README.md +51 -51
  2. package/dist/{edit-_qW_TUSu.mjs → edit-BEwgEd_o.mjs} +2 -2
  3. package/dist/{history-DSoZjyeJ.mjs → history-C_5HXL6J.mjs} +1 -1
  4. package/dist/{history-DjQMPey5.mjs → history-jvrH2cgO.mjs} +1 -1
  5. package/dist/{history.vue_vue_type_script_setup_true_lang-5ef0yv2J.mjs → history.vue_vue_type_script_setup_true_lang-DH_3dtkw.mjs} +1 -1
  6. package/dist/{history.vue_vue_type_script_setup_true_lang-suUr-9bi.mjs → history.vue_vue_type_script_setup_true_lang-DnFJlmKt.mjs} +5 -3
  7. package/dist/{index-DB6GmhZC.mjs → index-B3iittmi.mjs} +1 -1
  8. package/dist/{index-DxaY2msl.mjs → index-B5NKz735.mjs} +9 -9
  9. package/dist/{index-BLnu6zqx.mjs → index-BKuLZwSH.mjs} +2 -2
  10. package/dist/{index-BV-bgJoz.mjs → index-BWo8On_9.mjs} +53 -48
  11. package/dist/{index-BRR6K_Rz.mjs → index-BmblkPbd.mjs} +1 -1
  12. package/dist/{index-Cv3Q3BLX.mjs → index-BpGvo-GX.mjs} +275 -222
  13. package/dist/{index-CrAvX4gb.mjs → index-ChWLAHa3.mjs} +13 -10
  14. package/dist/{index-CgVOuj38.mjs → index-CvTgy-7Y.mjs} +1085 -1026
  15. package/dist/index-DRHXxUSr.mjs +1024 -0
  16. package/dist/index-DirVxwtN.mjs +64 -0
  17. package/dist/{index-DQHNNxEk.mjs → index-Dt1czJXu.mjs} +3 -3
  18. package/dist/{index-BCNuH7xs.mjs → index-Durx1KEK.mjs} +2 -2
  19. package/dist/{index-BJ5B9Mo0.mjs → index-FNgKU2Sw.mjs} +1 -1
  20. package/dist/{index-D3EjTY-C.mjs → index-HTmAeXnm.mjs} +39 -34
  21. package/dist/{index-BOkiZn0d.mjs → index-aPvqKyMh.mjs} +4 -3
  22. package/dist/{index-8qD9VcOY.mjs → index-xe86s3fk.mjs} +11 -11
  23. package/dist/index.mjs +1 -1
  24. package/dist/info-BoB2AQXl.mjs +4 -0
  25. package/dist/{merchant-D3ctdb_L.mjs → merchant-CaTTd891.mjs} +1 -1
  26. package/dist/{merchant.vue_vue_type_script_setup_true_lang-YDwz4LiM.mjs → merchant.vue_vue_type_script_setup_true_lang-C-QYcYgJ.mjs} +1 -1
  27. package/dist/{pay-14RdzHFn.mjs → pay-D5948kuF.mjs} +5 -5
  28. package/dist/{pay-vKmygRqh.mjs → pay-D8TthcTG.mjs} +6 -6
  29. package/dist/{payPal-uZjLzAy_.mjs → payPal-BEgZ5r_0.mjs} +6 -6
  30. package/dist/{payPal-DZCq6NIW.mjs → payPal-D_alptyQ.mjs} +8 -8
  31. package/dist/refund-Bpnn9evb.mjs +226 -0
  32. package/dist/refundView-BRKNJqsl.mjs +10 -0
  33. package/dist/{sale-lKDJnhcE.mjs → sale-CKknju1Y.mjs} +1 -1
  34. package/dist/{sale.vue_vue_type_script_setup_true_lang-b-hBu610.mjs → sale.vue_vue_type_script_setup_true_lang-CBUSpqm5.mjs} +1 -1
  35. package/dist/style.css +1 -1
  36. package/dist/{today-BLS71Gmq.mjs → today-D6eU0ZUV.mjs} +1 -1
  37. package/dist/{today-ZBVWvwL4.mjs → today-dyZDLIFv.mjs} +1 -1
  38. package/dist/{today.vue_vue_type_script_setup_true_lang-BnkSJ9pV.mjs → today.vue_vue_type_script_setup_true_lang-BJk9NO_6.mjs} +1 -1
  39. package/dist/{today.vue_vue_type_script_setup_true_lang-BLTRtpUi.mjs → today.vue_vue_type_script_setup_true_lang-DWiTnwet.mjs} +15 -13
  40. package/dist/{trend-f1RTvIBC.mjs → trend-CD-Orlre.mjs} +1 -1
  41. package/dist/{trend-BLV9su_P.mjs → trend-DCJoR00O.mjs} +1 -1
  42. package/dist/{trend-D5C46t4B.mjs → trend-DQKmmL12.mjs} +2 -2
  43. package/dts/src/api/settle/pay-trade/index.d.ts +2 -1
  44. package/dts/src/api/settle/pay-trade/types.d.ts +28 -0
  45. package/dts/src/constant.d.ts +1 -0
  46. package/dts/src/lang/settle/zh-cn.d.ts +10 -0
  47. package/dts/src/views/payment/pay-trade/refund.vue.d.ts +27 -0
  48. package/dts/src/views/payment/pay-trade/refundView.vue.d.ts +2 -0
  49. package/package.json +15 -15
  50. package/dist/index-7IN_MtAt.mjs +0 -898
  51. package/dist/index-CGc-CaEO.mjs +0 -91
  52. package/dist/info-BnEoPHLQ.mjs +0 -4
@@ -0,0 +1,64 @@
1
+ import { useUserStore as e, clearEmpty as a, request as s } from "jmash-core";
2
+ import { t as o } from "./index-CvTgy-7Y.mjs";
3
+ class r {
4
+ getKey(t) {
5
+ }
6
+ // 首页交易数据汇总
7
+ homePageAmount(t) {
8
+ const n = e().user.tenant;
9
+ return t.tokenExt = o.getTokenExt(e().user.tenant), a(t), s({
10
+ url: "/v1/settle/analysis/board/" + n,
11
+ method: "get",
12
+ params: t
13
+ });
14
+ }
15
+ // 首页交易金额排名
16
+ orderAmount(t) {
17
+ const n = e().user.tenant;
18
+ return t.tokenExt = o.getTokenExt(e().user.tenant), a(t), s({
19
+ url: "/v1/settle/analysis/merchant/list/" + n,
20
+ method: "get",
21
+ params: t
22
+ });
23
+ }
24
+ // 首页汇总支付方式
25
+ payModel(t) {
26
+ const n = e().user.tenant;
27
+ return t.tokenExt = o.getTokenExt(e().user.tenant), a(t), s({
28
+ url: "/v1/settle/analysis/pay_mode/list/" + n,
29
+ method: "get",
30
+ params: t
31
+ });
32
+ }
33
+ // 首页金额趋势
34
+ amountTrend(t) {
35
+ const n = e().user.tenant;
36
+ return t.tokenExt = o.getTokenExt(e().user.tenant), a(t), s({
37
+ url: "/v1/settle/analysis/time/list/" + n,
38
+ method: "get",
39
+ params: t
40
+ });
41
+ }
42
+ // 销售人员交易金额
43
+ salesAmount(t) {
44
+ const n = e().user.tenant;
45
+ return t.tokenExt = o.getTokenExt(e().user.tenant), a(t), s({
46
+ url: "/v1/settle/analysis/market_by/list/" + n,
47
+ method: "get",
48
+ params: t
49
+ });
50
+ }
51
+ // 新增商户排名
52
+ newMerchant(t) {
53
+ const n = e().user.tenant;
54
+ return t.tokenExt = o.getTokenExt(e().user.tenant), a(t), s({
55
+ url: "/v1/merchant/agent/total/" + n,
56
+ method: "get",
57
+ params: t
58
+ });
59
+ }
60
+ }
61
+ const g = new r();
62
+ export {
63
+ g as s
64
+ };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as A, ref as u, resolveComponent as c, resolveDirective as D, createElementBlock as g, openBlock as _, createElementVNode as t, createVNode as l, withCtx as d, toDisplayString as o, withDirectives as C, createBlock as Y, createTextVNode as w } from "vue";
2
2
  import { useRouter as T } from "vue-router";
3
- import { T as k, m as v } from "./trend-BLV9su_P.mjs";
4
- import { h as p } from "./index-CgVOuj38.mjs";
3
+ import { T as k, m as v } from "./trend-DCJoR00O.mjs";
4
+ import { h as p } from "./index-CvTgy-7Y.mjs";
5
5
  import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
6
6
  const M = { class: "app" }, P = { class: "app-title" }, E = { class: "row-container" }, V = { class: "tatals" }, B = { class: "tatal" }, N = { class: "text" }, S = { class: "tatal" }, F = { class: "text" }, H = { class: "tatal" }, I = { class: "text" }, R = { class: "tatal" }, j = { class: "text" }, q = { class: "tatals" }, z = { class: "tatal" }, G = { class: "text" }, J = { class: "tatal" }, K = { class: "text" }, L = { class: "tatal" }, O = { class: "text" }, Q = { class: "tatal" }, U = { class: "text" }, W = { class: "app-title-time" }, X = { class: "chart-header" }, Z = /* @__PURE__ */ A({
7
7
  __name: "index",
@@ -122,7 +122,7 @@ const M = { class: "app" }, P = { class: "app-title" }, E = { class: "row-contai
122
122
  ]);
123
123
  };
124
124
  }
125
- }), lt = /* @__PURE__ */ b(Z, [["__scopeId", "data-v-7157dc97"]]);
125
+ }), lt = /* @__PURE__ */ b(Z, [["__scopeId", "data-v-6f52d4ae"]]);
126
126
  export {
127
127
  lt as default
128
128
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as r, ref as p, resolveComponent as s, createElementBlock as i, openBlock as d, createElementVNode as u, createVNode as e, withCtx as n } from "vue";
2
- import { _ as f } from "./history.vue_vue_type_script_setup_true_lang-5ef0yv2J.mjs";
3
- import { _ as b } from "./today.vue_vue_type_script_setup_true_lang-BnkSJ9pV.mjs";
2
+ import { _ as f } from "./history.vue_vue_type_script_setup_true_lang-DH_3dtkw.mjs";
3
+ import { _ as b } from "./today.vue_vue_type_script_setup_true_lang-BJk9NO_6.mjs";
4
4
  const v = { class: "app-container" }, h = { class: "search-container" }, w = /* @__PURE__ */ r({
5
5
  __name: "index",
6
6
  setup(C) {
@@ -3,7 +3,7 @@ import { useRoute as ae, useRouter as oe } from "vue-router";
3
3
  import { useI18n as ne } from "vue-i18n";
4
4
  import { useUserStore as B, clearEmpty as se, request as re, useTableHooks as de } from "jmash-core";
5
5
  import { tokenExt as ue } from "xyvcard-agent";
6
- import { D as f } from "./index-CgVOuj38.mjs";
6
+ import { D as f } from "./index-CvTgy-7Y.mjs";
7
7
  import { g as ie } from "./agent-R-Ml-XTA.mjs";
8
8
  import { DateRange as me } from "xyvcard-insts";
9
9
  import { g as pe } from "./merchant-D9rtENQd.mjs";
@@ -1,8 +1,8 @@
1
- import { defineComponent as G, ref as S, onActivated as J, resolveComponent as u, resolveDirective as D, createElementBlock as R, openBlock as T, createElementVNode as f, createVNode as t, withCtx as a, unref as o, withKeys as A, withDirectives as _, vShow as X, createTextVNode as r, toDisplayString as p, createBlock as V, createCommentVNode as ee, isRef as E } from "vue";
1
+ import { defineComponent as G, ref as S, onActivated as J, resolveComponent as u, resolveDirective as D, createElementBlock as R, openBlock as T, createElementVNode as f, createVNode as t, withCtx as a, unref as o, withKeys as A, withDirectives as _, vShow as X, createTextVNode as r, toDisplayString as p, createBlock as k, createCommentVNode as ee, isRef as E } from "vue";
2
2
  import { useI18n as te } from "vue-i18n";
3
3
  import { useRouter as le } from "vue-router";
4
- import { useUserStore as N, clearEmpty as U, request as z, useTableHooks as ae } from "jmash-core";
5
- import { q as ne, D as w, C as oe } from "./index-CgVOuj38.mjs";
4
+ import { useUserStore as V, clearEmpty as U, request as z, useTableHooks as ae } from "jmash-core";
5
+ import { q as ne, D as w, C as oe } from "./index-CvTgy-7Y.mjs";
6
6
  import { tokenExt as se } from "xyvcard-agent";
7
7
  import { DateRange as re } from "xyvcard-insts";
8
8
  import { g as de } from "./agent-R-Ml-XTA.mjs";
@@ -15,35 +15,35 @@ class ie {
15
15
  }
16
16
  // 查询翻页信息支付交易汇总统计;
17
17
  findPage(m) {
18
- const b = N().user.tenant;
18
+ const g = V().user.tenant;
19
19
  return U(m), z({
20
- url: "/v1/settle/analysis/agent/page/" + b,
20
+ url: "/v1/settle/analysis/agent/page/" + g,
21
21
  method: "get",
22
22
  params: m
23
23
  });
24
24
  }
25
25
  // 导出代理商支付交易汇总统计; PC:平台、代理商
26
26
  exportExcel(m) {
27
- const b = N().user.tenant;
27
+ const g = V().user.tenant;
28
28
  U(m);
29
29
  const s = ne.stringify(m, {
30
30
  arrayFormat: "brackets",
31
31
  allowDots: !0
32
32
  });
33
33
  return z({
34
- url: `/v1/settle/analysis/agent/${b}/settle_trade_analysis.xlsx?${s}`,
34
+ url: `/v1/settle/analysis/agent/${g}/settle_trade_analysis.xlsx?${s}`,
35
35
  method: "get",
36
36
  responseType: "blob"
37
37
  });
38
38
  }
39
39
  }
40
- const ue = new ie(), me = { class: "app-container" }, pe = { class: "search-container" }, ye = { class: "total-num" }, fe = { class: "blue_color" }, be = { class: "blue_color" }, ge = { class: "blue_color" }, Te = { class: "blue_color" }, ve = ["onClick"], he = /* @__PURE__ */ G({
40
+ const ue = new ie(), me = { class: "app-container" }, pe = { class: "search-container" }, ye = { class: "total-num" }, fe = { class: "blue_color" }, ge = { class: "blue_color" }, be = { class: "blue_color" }, Te = { class: "blue_color" }, ve = ["onClick"], Ne = /* @__PURE__ */ G({
41
41
  __name: "index",
42
42
  setup(I) {
43
43
  const { t: m } = te();
44
44
  w.agentBizDict.useValues(), w.instsBizDict.useValues();
45
- const b = le(), s = S({
46
- tokenExt: se.getTokenExt(N().user.tenant)
45
+ const g = le(), s = S({
46
+ tokenExt: se.getTokenExt(V().user.tenant)
47
47
  }), {
48
48
  tableHooks: d,
49
49
  multipleTableRef: M,
@@ -52,7 +52,7 @@ const ue = new ie(), me = { class: "app-container" }, pe = { class: "search-cont
52
52
  tableData: j,
53
53
  total: v
54
54
  } = ae(m, ue, s);
55
- let C = d.totalRecord, g = S([
55
+ let C = d.totalRecord, b = S([
56
56
  // 序号
57
57
  {
58
58
  label: "序号",
@@ -82,7 +82,8 @@ const ue = new ie(), me = { class: "app-container" }, pe = { class: "search-cont
82
82
  prop: "merchantNum",
83
83
  width: "100",
84
84
  sortable: "custom",
85
- isColumn: !0
85
+ isColumn: !0,
86
+ align: "right"
86
87
  },
87
88
  // 交易笔数
88
89
  {
@@ -90,7 +91,8 @@ const ue = new ie(), me = { class: "app-container" }, pe = { class: "search-cont
90
91
  prop: "orderCount",
91
92
  width: "130",
92
93
  sortable: "custom",
93
- isColumn: !0
94
+ isColumn: !0,
95
+ align: "right"
94
96
  },
95
97
  // 交易总额
96
98
  {
@@ -98,7 +100,8 @@ const ue = new ie(), me = { class: "app-container" }, pe = { class: "search-cont
98
100
  prop: "orderAmount",
99
101
  width: "130",
100
102
  sortable: "custom",
101
- isColumn: !0
103
+ isColumn: !0,
104
+ align: "right"
102
105
  },
103
106
  // 交易金额
104
107
  {
@@ -106,7 +109,8 @@ const ue = new ie(), me = { class: "app-container" }, pe = { class: "search-cont
106
109
  prop: "tradeAmount",
107
110
  width: "130",
108
111
  sortable: "custom",
109
- isColumn: !0
112
+ isColumn: !0,
113
+ align: "right"
110
114
  },
111
115
  // 手续费
112
116
  {
@@ -114,7 +118,8 @@ const ue = new ie(), me = { class: "app-container" }, pe = { class: "search-cont
114
118
  prop: "feeAmt",
115
119
  width: "120",
116
120
  sortable: "custom",
117
- isColumn: !0
121
+ isColumn: !0,
122
+ align: "right"
118
123
  },
119
124
  // 交易时间
120
125
  {
@@ -134,7 +139,7 @@ const ue = new ie(), me = { class: "app-container" }, pe = { class: "search-cont
134
139
  }
135
140
  ]);
136
141
  function B(n) {
137
- b.push({
142
+ g.push({
138
143
  path: "/payment/pay-trade",
139
144
  query: {
140
145
  agentCode: n.agentCode,
@@ -152,7 +157,7 @@ const ue = new ie(), me = { class: "app-container" }, pe = { class: "search-cont
152
157
  return J(() => {
153
158
  d.getList();
154
159
  }), (n, e) => {
155
- const K = u("el-tree-select"), y = u("el-form-item"), i = u("el-col"), $ = u("el-input"), Q = u("jmash-select"), c = u("el-row"), k = u("el-button"), x = u("el-form"), F = u("jmash-column-select"), H = u("jmash-table"), L = u("jmash-pagination"), W = u("el-card"), h = D("hasPerm"), Z = D("loading");
160
+ const K = u("el-tree-select"), y = u("el-form-item"), i = u("el-col"), h = u("el-input"), Q = u("jmash-select"), c = u("el-row"), $ = u("el-button"), x = u("el-form"), F = u("jmash-column-select"), H = u("jmash-table"), L = u("jmash-pagination"), W = u("el-card"), N = D("hasPerm"), Z = D("loading");
156
161
  return T(), R("div", me, [
157
162
  f("div", pe, [
158
163
  t(x, {
@@ -195,7 +200,7 @@ const ue = new ie(), me = { class: "app-container" }, pe = { class: "search-cont
195
200
  prop: "agentCode"
196
201
  }, {
197
202
  default: a(() => [
198
- t($, {
203
+ t(h, {
199
204
  modelValue: s.value.agentCode,
200
205
  "onUpdate:modelValue": e[1] || (e[1] = (l) => s.value.agentCode = l),
201
206
  placeholder: n.$t("settleTradeAnalysis.agentCodesRead"),
@@ -238,7 +243,7 @@ const ue = new ie(), me = { class: "app-container" }, pe = { class: "search-cont
238
243
  prop: "likeMerchantNo"
239
244
  }, {
240
245
  default: a(() => [
241
- t($, {
246
+ t(h, {
242
247
  modelValue: s.value.likeMerchantNo,
243
248
  "onUpdate:modelValue": e[5] || (e[5] = (l) => s.value.likeMerchantNo = l),
244
249
  placeholder: n.$t("settleTradeAnalysis.likeMerchantNoRead"),
@@ -263,7 +268,7 @@ const ue = new ie(), me = { class: "app-container" }, pe = { class: "search-cont
263
268
  prop: "outOrderNo"
264
269
  }, {
265
270
  default: a(() => [
266
- t($, {
271
+ t(h, {
267
272
  modelValue: s.value.outOrderNo,
268
273
  "onUpdate:modelValue": e[7] || (e[7] = (l) => s.value.outOrderNo = l),
269
274
  placeholder: n.$t("payTrade.outOrderNoRead"),
@@ -307,7 +312,7 @@ const ue = new ie(), me = { class: "app-container" }, pe = { class: "search-cont
307
312
  default: a(() => [
308
313
  t(y, { class: "search-btn" }, {
309
314
  default: a(() => [
310
- t(k, {
315
+ t($, {
311
316
  type: "primary",
312
317
  onClick: e[11] || (e[11] = (l) => o(d).handleQuery())
313
318
  }, {
@@ -316,7 +321,7 @@ const ue = new ie(), me = { class: "app-container" }, pe = { class: "search-cont
316
321
  ]),
317
322
  _: 1
318
323
  }),
319
- t(k, {
324
+ t($, {
320
325
  onClick: e[12] || (e[12] = (l) => o(d).resetQuery())
321
326
  }, {
322
327
  default: a(() => [
@@ -350,7 +355,7 @@ const ue = new ie(), me = { class: "app-container" }, pe = { class: "search-cont
350
355
  class: "container-float"
351
356
  }, {
352
357
  default: a(() => [
353
- _((T(), V(k, {
358
+ _((T(), k($, {
354
359
  plain: "",
355
360
  type: "primary",
356
361
  onClick: e[13] || (e[13] = (l) => o(d).handleExport(o(m)("settleTradeAnalysis.name")))
@@ -360,11 +365,11 @@ const ue = new ie(), me = { class: "app-container" }, pe = { class: "search-cont
360
365
  ]),
361
366
  _: 1
362
367
  })), [
363
- [h, ["payment:trade_analysis:export"]]
368
+ [N, ["payment:trade_analysis:export"]]
364
369
  ]),
365
370
  t(F, {
366
- modelValue: o(g),
367
- "onUpdate:modelValue": e[14] || (e[14] = (l) => E(g) ? g.value = l : g = l),
371
+ modelValue: o(b),
372
+ "onUpdate:modelValue": e[14] || (e[14] = (l) => E(b) ? b.value = l : b = l),
368
373
  "label-name": "settle/settle-trade-analysis"
369
374
  }, null, 8, ["modelValue"])
370
375
  ]),
@@ -375,7 +380,7 @@ const ue = new ie(), me = { class: "app-container" }, pe = { class: "search-cont
375
380
  })
376
381
  ]),
377
382
  footer: a(() => [
378
- o(v) > 0 ? (T(), V(L, {
383
+ o(v) > 0 ? (T(), k(L, {
379
384
  key: 0,
380
385
  total: o(v),
381
386
  "onUpdate:total": e[15] || (e[15] = (l) => E(v) ? v.value = l : null),
@@ -401,7 +406,7 @@ const ue = new ie(), me = { class: "app-container" }, pe = { class: "search-cont
401
406
  t(i, { span: 6 }, {
402
407
  default: a(() => [
403
408
  e[22] || (e[22] = r(" 订单金额: ")),
404
- f("span", be, p(o(C).totalOrderAmount), 1),
409
+ f("span", ge, p(o(C).totalOrderAmount), 1),
405
410
  e[23] || (e[23] = r(" 元 "))
406
411
  ]),
407
412
  _: 1
@@ -409,7 +414,7 @@ const ue = new ie(), me = { class: "app-container" }, pe = { class: "search-cont
409
414
  t(i, { span: 6 }, {
410
415
  default: a(() => [
411
416
  e[24] || (e[24] = r(" 交易金额: ")),
412
- f("span", ge, p(o(C).totalTradeAmount), 1),
417
+ f("span", be, p(o(C).totalTradeAmount), 1),
413
418
  e[25] || (e[25] = r(" 元 "))
414
419
  ]),
415
420
  _: 1
@@ -426,13 +431,13 @@ const ue = new ie(), me = { class: "app-container" }, pe = { class: "search-cont
426
431
  _: 1
427
432
  })
428
433
  ]),
429
- _((T(), V(H, {
434
+ _((T(), k(H, {
430
435
  ref_key: "multipleTableRef",
431
436
  ref: M,
432
437
  "row-key": "settleTradeAnalysisPk",
433
438
  isSelection: !1,
434
439
  data: o(j),
435
- "table-label": o(g),
440
+ "table-label": o(b),
436
441
  onSelectionChange: O,
437
442
  onSortChange: q
438
443
  }, {
@@ -446,7 +451,7 @@ const ue = new ie(), me = { class: "app-container" }, pe = { class: "search-cont
446
451
  }, [
447
452
  r(p(n.$t("settleTradeAnalysis.view")), 1)
448
453
  ], 8, ve)), [
449
- [h, ["payment:agent_analysis:view"]]
454
+ [N, ["payment:agent_analysis:view"]]
450
455
  ])
451
456
  ]),
452
457
  _: 1
@@ -461,5 +466,5 @@ const ue = new ie(), me = { class: "app-container" }, pe = { class: "search-cont
461
466
  }
462
467
  });
463
468
  export {
464
- he as default
469
+ Ne as default
465
470
  };
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as ne, ref as T, reactive as te, resolveComponent as p, resolveDirective as le, createElementBlock as _, openBlock as c, createVNode as n, withCtx as a, Fragment as re, renderList as de, unref as u, createBlock as $, createElementVNode as r, createCommentVNode as D, withKeys as v, createTextVNode as R, toDisplayString as l, withDirectives as M, isRef as j } from "vue";
2
2
  import { useTableHooks as ue } from "jmash-core";
3
3
  import { useI18n as se } from "vue-i18n";
4
- import { b as pe, a as ie } from "./edit-_qW_TUSu.mjs";
5
- import { D as me } from "./index-CgVOuj38.mjs";
4
+ import { b as pe, a as ie } from "./edit-BEwgEd_o.mjs";
5
+ import { D as me } from "./index-CvTgy-7Y.mjs";
6
6
  const ce = { class: "app-container" }, be = { class: "search-container" }, ke = ["onClick"], fe = ["onClick"], Ne = /* @__PURE__ */ ne({
7
7
  __name: "index",
8
8
  setup(we) {
@@ -57,7 +57,8 @@ const ce = { class: "app-container" }, be = { class: "search-container" }, ke =
57
57
  prop: "amount",
58
58
  width: "150",
59
59
  sortable: "custom",
60
- isColumn: !0
60
+ isColumn: !0,
61
+ align: "right"
61
62
  },
62
63
  {
63
64
  label: "bankTradeRecord.opponentAccountName",
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as E, ref as p, onMounted as A, getCurrentInstance as w, resolveComponent as v, resolveDirective as P, createElementBlock as $, openBlock as y, createElementVNode as t, createVNode as a, withCtx as o, toDisplayString as n, createTextVNode as m, withDirectives as R, createBlock as S } from "vue";
2
2
  import { useRouter as V } from "vue-router";
3
- import { s as k } from "./index-CGc-CaEO.mjs";
4
- import { C as u } from "./index-CgVOuj38.mjs";
5
- import I from "./pay-vKmygRqh.mjs";
6
- import b from "./payPal-DZCq6NIW.mjs";
7
- import F from "./trend-D5C46t4B.mjs";
8
- import { _ as O } from "./sale.vue_vue_type_script_setup_true_lang-b-hBu610.mjs";
9
- import { _ as B } from "./merchant.vue_vue_type_script_setup_true_lang-YDwz4LiM.mjs";
3
+ import { s as b } from "./index-DirVxwtN.mjs";
4
+ import { C as u } from "./index-CvTgy-7Y.mjs";
5
+ import k from "./pay-D8TthcTG.mjs";
6
+ import I from "./payPal-D_alptyQ.mjs";
7
+ import F from "./trend-DQKmmL12.mjs";
8
+ import { _ as O } from "./sale.vue_vue_type_script_setup_true_lang-CBUSpqm5.mjs";
9
+ import { _ as B } from "./merchant.vue_vue_type_script_setup_true_lang-C-QYcYgJ.mjs";
10
10
  import { _ as N } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
11
11
  const q = { class: "app" }, Q = { class: "app-title" }, U = { class: "row-container" }, j = { class: "title" }, z = { class: "tatals" }, G = { class: "tatal" }, H = { class: "text" }, J = { class: "tatal" }, K = { class: "text" }, L = { class: "tatal" }, W = { class: "text" }, X = { class: "tatal" }, Z = { class: "text" }, tt = { class: "app-title pay-model" }, et = { class: "title taxt_time_laft" }, st = { class: "text_time" }, at = { class: "title taxt_time_laft" }, ot = { class: "text_time" }, nt = { class: "app-title-time" }, lt = { class: "chart-header" }, it = { class: "chart-title" }, rt = { class: "text_time" }, dt = /* @__PURE__ */ E({
12
12
  __name: "index",
@@ -21,7 +21,7 @@ const q = { class: "app" }, Q = { class: "app-title" }, U = { class: "row-contai
21
21
  analysisTimeEnd: ""
22
22
  }), r = p({});
23
23
  function f() {
24
- k.homePageAmount({
24
+ b.homePageAmount({
25
25
  analysisTimeStart: c.value.analysisTimeStart,
26
26
  analysisTimeEnd: c.value.analysisTimeEnd
27
27
  }).then((s) => {
@@ -104,7 +104,7 @@ const q = { class: "app" }, Q = { class: "app-title" }, U = { class: "row-contai
104
104
  a(i, { class: "card-never card-paypal" }, {
105
105
  default: o(() => [
106
106
  e[6] || (e[6] = t("div", { class: "title" }, "支付渠道分析", -1)),
107
- a(b, { class: "pay" })
107
+ a(I, { class: "pay" })
108
108
  ]),
109
109
  _: 1
110
110
  })
@@ -117,7 +117,7 @@ const q = { class: "app" }, Q = { class: "app-title" }, U = { class: "row-contai
117
117
  e[7] || (e[7] = m(" 交易金额排名 ")),
118
118
  t("span", st, n(_.value), 1)
119
119
  ]),
120
- a(I)
120
+ a(k)
121
121
  ]),
122
122
  _: 1
123
123
  }),
@@ -172,7 +172,7 @@ const q = { class: "app" }, Q = { class: "app-title" }, U = { class: "row-contai
172
172
  ]);
173
173
  };
174
174
  }
175
- }), Mt = /* @__PURE__ */ N(dt, [["__scopeId", "data-v-fc177392"]]);
175
+ }), Mt = /* @__PURE__ */ N(dt, [["__scopeId", "data-v-b2c0344e"]]);
176
176
  export {
177
177
  Mt as default
178
178
  };
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import "jmash-core";
2
- import { b as o, s as t, m as i, c as s, d as g } from "./index-CgVOuj38.mjs";
2
+ import { b as o, s as t, m as i, c as s, d as g } from "./index-CvTgy-7Y.mjs";
3
3
  export {
4
4
  o as agentHomePage,
5
5
  t as default,
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./index-CvTgy-7Y.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./merchant.vue_vue_type_script_setup_true_lang-YDwz4LiM.mjs";
1
+ import { _ as f } from "./merchant.vue_vue_type_script_setup_true_lang-C-QYcYgJ.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -3,7 +3,7 @@ import g from "./assets/78ba92e6c076bd07.png";
3
3
  import N from "./assets/228d0bfe534e0e61.png";
4
4
  import b from "./assets/7537a7335bb17b22.png";
5
5
  import { tokenExt as x } from "xyvcard-agent";
6
- import { s as B } from "./index-CGc-CaEO.mjs";
6
+ import { s as B } from "./index-DirVxwtN.mjs";
7
7
  import { useUserStore as E } from "jmash-core";
8
8
  import { getUserDisplayName as w } from "xyvcard-merchant";
9
9
  const C = {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as v, ref as m, onMounted as y, onUnmounted as h, createElementBlock as x, openBlock as _ } from "vue";
2
2
  import { i as g } from "./index--_Po9Tig.mjs";
3
- import { s as b } from "./index-eUhFgNKx.mjs";
4
- import { merchantsApi as w } from "xyvcard-merchant";
3
+ import { s as w } from "./index-eUhFgNKx.mjs";
4
+ import { merchantsApi as b } from "xyvcard-merchant";
5
5
  import { _ as S } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
6
6
  const z = /* @__PURE__ */ v({
7
7
  __name: "pay",
@@ -76,13 +76,13 @@ const z = /* @__PURE__ */ v({
76
76
  e.setOption(s);
77
77
  }, f = async () => {
78
78
  try {
79
- const r = u(), n = await b.orderAmount({
79
+ const r = u(), n = await w.orderAmount({
80
80
  analysisTimeStart: r.analysisTimeStart,
81
81
  analysisTimeEnd: r.analysisTimeEnd
82
82
  });
83
83
  for (let t = 0; t < n.data.results.length; t++)
84
84
  if (n.data.results[t].merchantId && n.data.results[t].tradeAmount) {
85
- const { data: s } = await w.findBusinessName({
85
+ const { data: s } = await b.findBusinessName({
86
86
  merchantId: n.data.results[t].merchantId
87
87
  });
88
88
  i.value.push({
@@ -120,7 +120,7 @@ const z = /* @__PURE__ */ v({
120
120
  class: "chart-container"
121
121
  }, null, 512));
122
122
  }
123
- }), M = /* @__PURE__ */ S(z, [["__scopeId", "data-v-b91fa540"]]);
123
+ }), M = /* @__PURE__ */ S(z, [["__scopeId", "data-v-a3c2f023"]]);
124
124
  export {
125
125
  M as default
126
126
  };
@@ -1,9 +1,9 @@
1
- import { defineComponent as m, ref as l, onMounted as p, onUnmounted as f, createElementBlock as v, openBlock as h } from "vue";
2
- import { s as _ } from "./index-CGc-CaEO.mjs";
1
+ import { defineComponent as d, ref as l, onMounted as p, onUnmounted as f, createElementBlock as v, openBlock as h } from "vue";
2
+ import { s as _ } from "./index-DirVxwtN.mjs";
3
3
  import { i as y } from "./index--_Po9Tig.mjs";
4
4
  import { merchantsApi as b } from "xyvcard-merchant";
5
5
  import { _ as w } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
6
- const x = /* @__PURE__ */ m({
6
+ const x = /* @__PURE__ */ d({
7
7
  __name: "pay",
8
8
  setup(g) {
9
9
  const r = l();
@@ -66,7 +66,7 @@ const x = /* @__PURE__ */ m({
66
66
  ]
67
67
  };
68
68
  t.setOption(a);
69
- }, d = async () => {
69
+ }, m = async () => {
70
70
  try {
71
71
  const a = await _.orderAmount({});
72
72
  for (let e = 0; e < a.data.results.length; e++)
@@ -89,7 +89,7 @@ const x = /* @__PURE__ */ m({
89
89
  t && t.resize();
90
90
  };
91
91
  return p(() => {
92
- c(), d(), window.addEventListener("resize", i), r.value && (s = new ResizeObserver(() => {
92
+ c(), m(), window.addEventListener("resize", i), r.value && (s = new ResizeObserver(() => {
93
93
  t && t.resize();
94
94
  }), s.observe(r.value));
95
95
  }), f(() => {
@@ -100,7 +100,7 @@ const x = /* @__PURE__ */ m({
100
100
  class: "chart-container"
101
101
  }, null, 512));
102
102
  }
103
- }), $ = /* @__PURE__ */ w(x, [["__scopeId", "data-v-06edd8f4"]]);
103
+ }), $ = /* @__PURE__ */ w(x, [["__scopeId", "data-v-ae62ea6c"]]);
104
104
  export {
105
105
  $ as default
106
106
  };
@@ -1,7 +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, C as E } from "./index-CgVOuj38.mjs";
4
+ import { D as S, C as E } from "./index-CvTgy-7Y.mjs";
5
5
  import { _ as z } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
6
6
  const C = /* @__PURE__ */ y({
7
7
  __name: "payPal",
@@ -16,7 +16,7 @@ const C = /* @__PURE__ */ y({
16
16
  analysisTimeStart: o(a),
17
17
  analysisTimeEnd: o(e)
18
18
  };
19
- }, m = () => ({
19
+ }, c = () => ({
20
20
  tooltip: {
21
21
  trigger: "item",
22
22
  position: function(e) {
@@ -60,7 +60,7 @@ const C = /* @__PURE__ */ y({
60
60
  data: s.value
61
61
  }
62
62
  ]
63
- }), c = async () => {
63
+ }), m = async () => {
64
64
  var e, a;
65
65
  try {
66
66
  const o = p(), r = await D.payModel({
@@ -84,7 +84,7 @@ const C = /* @__PURE__ */ y({
84
84
  color: E.PAYMENT_COLORS[n.payMode]
85
85
  }
86
86
  };
87
- }), t == null || t.setOption(m());
87
+ }), t == null || t.setOption(c());
88
88
  } catch {
89
89
  t == null || t.setOption({
90
90
  title: {
@@ -98,7 +98,7 @@ const C = /* @__PURE__ */ y({
98
98
  return g(async () => {
99
99
  if (!i.value)
100
100
  return;
101
- t = h(i.value), t.showLoading(), await c(), t.hideLoading();
101
+ t = h(i.value), t.showLoading(), await m(), t.hideLoading();
102
102
  const e = () => {
103
103
  t == null || t.resize();
104
104
  };
@@ -111,7 +111,7 @@ const C = /* @__PURE__ */ y({
111
111
  class: "chart-container"
112
112
  }, null, 512));
113
113
  }
114
- }), A = /* @__PURE__ */ z(C, [["__scopeId", "data-v-63ca614a"]]);
114
+ }), A = /* @__PURE__ */ z(C, [["__scopeId", "data-v-98642cc6"]]);
115
115
  export {
116
116
  A as default
117
117
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as c, ref as d, onMounted as m, onBeforeUnmount as v, createElementBlock as y, openBlock as _ } from "vue";
2
- import { i as g } from "./index--_Po9Tig.mjs";
3
- import { s as h } from "./index-CGc-CaEO.mjs";
4
- import { D as w, C as b } from "./index-CgVOuj38.mjs";
2
+ import { i as b } from "./index--_Po9Tig.mjs";
3
+ import { s as g } from "./index-DirVxwtN.mjs";
4
+ import { D as h, C as w } from "./index-CvTgy-7Y.mjs";
5
5
  import { _ as z } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
6
6
  const C = /* @__PURE__ */ c({
7
7
  __name: "payPal",
@@ -61,7 +61,7 @@ const C = /* @__PURE__ */ c({
61
61
  }), p = async () => {
62
62
  var t, a;
63
63
  try {
64
- const n = await h.payModel({});
64
+ const n = await g.payModel({});
65
65
  if (!((a = (t = n.data) == null ? void 0 : t.results) != null && a.length))
66
66
  throw new Error("暂无数据");
67
67
  const s = n.data.results.reduce(
@@ -69,14 +69,14 @@ const C = /* @__PURE__ */ c({
69
69
  0
70
70
  );
71
71
  r.value = n.data.results.map((o) => {
72
- const l = w.payModeBizDict.getEnumValue(o.payMode) || o.payMode, f = s > 0 ? (parseFloat(o.orderAmount) / s * 100).toFixed(0) : 0;
72
+ const l = h.payModeBizDict.getEnumValue(o.payMode) || o.payMode, f = s > 0 ? (parseFloat(o.orderAmount) / s * 100).toFixed(0) : 0;
73
73
  return {
74
74
  value: parseFloat(f),
75
75
  name: l,
76
76
  amount: parseFloat(o.orderAmount),
77
77
  count: o.orderCount,
78
78
  itemStyle: {
79
- color: b.PAYMENT_COLORS[o.payMode]
79
+ color: w.PAYMENT_COLORS[o.payMode]
80
80
  }
81
81
  };
82
82
  }), r.value.length > 3 && (r.value = r.value.sort((o, l) => l.value - o.value).slice(0, 3)), e == null || e.setOption(u());
@@ -95,7 +95,7 @@ const C = /* @__PURE__ */ c({
95
95
  };
96
96
  return m(async () => {
97
97
  if (!i.value) return;
98
- e = g(i.value), e.showLoading(), await p(), e.hideLoading();
98
+ e = b(i.value), e.showLoading(), await p(), e.hideLoading();
99
99
  const t = () => e == null ? void 0 : e.resize();
100
100
  window.addEventListener("resize", t);
101
101
  }), v(() => {
@@ -106,7 +106,7 @@ const C = /* @__PURE__ */ c({
106
106
  class: "chart-container"
107
107
  }, null, 512));
108
108
  }
109
- }), O = /* @__PURE__ */ z(C, [["__scopeId", "data-v-7e5f6c8c"]]);
109
+ }), O = /* @__PURE__ */ z(C, [["__scopeId", "data-v-15ebef5f"]]);
110
110
  export {
111
111
  O as default
112
112
  };