xyvcard-settle 0.0.67 → 0.0.69

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-CLQpj7uv.mjs → edit-DqCijDAx.mjs} +2 -2
  3. package/dist/{history-BQ0qJTQQ.mjs → history-CFRH07Rl.mjs} +1 -1
  4. package/dist/{history-BgvGBkG_.mjs → history-D_ns-Uj_.mjs} +1 -1
  5. package/dist/{history.vue_vue_type_script_setup_true_lang-DOt56pa5.mjs → history.vue_vue_type_script_setup_true_lang-DgbKVlin.mjs} +1 -1
  6. package/dist/{history.vue_vue_type_script_setup_true_lang-Dp6JtlNt.mjs → history.vue_vue_type_script_setup_true_lang-y7PcYEsx.mjs} +5 -3
  7. package/dist/{index-DB6GmhZC.mjs → index-B3iittmi.mjs} +1 -1
  8. package/dist/{index-DqXKLY4R.mjs → index-BS5UPc4G.mjs} +53 -48
  9. package/dist/{index-CXUY14UL.mjs → index-BhW3Snhk.mjs} +3 -3
  10. package/dist/{index-DEF-ln4t.mjs → index-BoF1w7iW.mjs} +1 -1
  11. package/dist/index-Bwk2VpaX.mjs +982 -0
  12. package/dist/{index-BKOv13-D.mjs → index-CM-aTdtm.mjs} +2 -2
  13. package/dist/{index-CrH01ZG1.mjs → index-CM1-XUdI.mjs} +39 -34
  14. package/dist/index-CdLTcjKk.mjs +64 -0
  15. package/dist/{index-lqJyGjMH.mjs → index-D11B_Wtn.mjs} +1577 -1532
  16. package/dist/{index-BMzSkBjs.mjs → index-DRAg0ird.mjs} +11 -11
  17. package/dist/{index-BT3JyrSg.mjs → index-D_xWHYqI.mjs} +2 -2
  18. package/dist/{index-EpSWaCBk.mjs → index-DguOHM2h.mjs} +13 -10
  19. package/dist/{index-dh3-wrKv.mjs → index-DpCe2qHI.mjs} +275 -222
  20. package/dist/{index-B2cjG7ub.mjs → index-KsD4UbVl.mjs} +1 -1
  21. package/dist/{index-Dv5dZcvV.mjs → index-PK3Lhl0Y.mjs} +9 -9
  22. package/dist/{index-qwIxR9fP.mjs → index-wV0MdPQK.mjs} +4 -3
  23. package/dist/index.mjs +1 -1
  24. package/dist/info-ilEenCqG.mjs +4 -0
  25. package/dist/{merchant-D3ctdb_L.mjs → merchant-CHrqVry7.mjs} +1 -1
  26. package/dist/{merchant.vue_vue_type_script_setup_true_lang-YDwz4LiM.mjs → merchant.vue_vue_type_script_setup_true_lang-AwWK1F_L.mjs} +1 -1
  27. package/dist/{pay-vKmygRqh.mjs → pay-CoVUqmO1.mjs} +6 -6
  28. package/dist/{pay-14RdzHFn.mjs → pay-D5948kuF.mjs} +5 -5
  29. package/dist/{payPal-CM1xM6Uo.mjs → payPal-DgOV_Vvg.mjs} +6 -6
  30. package/dist/{payPal-Ch2M11he.mjs → payPal-DvGOOGpO.mjs} +8 -8
  31. package/dist/refund-DFoNGx4K.mjs +226 -0
  32. package/dist/{sale-lKDJnhcE.mjs → sale-DRzPEjZh.mjs} +1 -1
  33. package/dist/{sale.vue_vue_type_script_setup_true_lang-b-hBu610.mjs → sale.vue_vue_type_script_setup_true_lang-9E79ypKS.mjs} +1 -1
  34. package/dist/style.css +1 -1
  35. package/dist/{today-DSnx6Wv7.mjs → today-B-XWHueS.mjs} +1 -1
  36. package/dist/{today-DxTmRb8m.mjs → today-sMLdBEwi.mjs} +1 -1
  37. package/dist/{today.vue_vue_type_script_setup_true_lang-Bnjgv3be.mjs → today.vue_vue_type_script_setup_true_lang-CBU-Ec8E.mjs} +15 -13
  38. package/dist/{today.vue_vue_type_script_setup_true_lang-qivB4WDx.mjs → today.vue_vue_type_script_setup_true_lang-DrppDhJ6.mjs} +1 -1
  39. package/dist/{trend-D5C46t4B.mjs → trend-BpcwSklm.mjs} +2 -2
  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/dts/src/api/settle/pay-trade/index.d.ts +2 -1
  43. package/dts/src/api/settle/pay-trade/types.d.ts +27 -0
  44. package/dts/src/constant.d.ts +1 -0
  45. package/dts/src/lang/settle/zh-cn.d.ts +9 -0
  46. package/dts/src/utils/getCurrentDay.d.ts +1 -0
  47. package/dts/src/utils/timePlugin.d.ts +1 -1
  48. package/dts/src/views/payment/pay-trade/refund.vue.d.ts +27 -0
  49. package/package.json +15 -15
  50. package/dist/index-CGc-CaEO.mjs +0 -91
  51. package/dist/index-bEOIUgI4.mjs +0 -886
  52. package/dist/info-dF6HvoiZ.mjs +0 -4
@@ -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-DOt56pa5.mjs";
3
- import { _ as b } from "./today.vue_vue_type_script_setup_true_lang-qivB4WDx.mjs";
2
+ import { _ as f } from "./history.vue_vue_type_script_setup_true_lang-DgbKVlin.mjs";
3
+ import { _ as b } from "./today.vue_vue_type_script_setup_true_lang-DrppDhJ6.mjs";
4
4
  const v = { class: "app-container" }, h = { class: "search-container" }, w = /* @__PURE__ */ r({
5
5
  __name: "index",
6
6
  setup(C) {
@@ -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-lqJyGjMH.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-D11B_Wtn.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
  };
@@ -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-D11B_Wtn.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
+ };