xyvcard-settle 0.0.24 → 0.0.26

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 (67) hide show
  1. package/dist/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
  2. package/dist/{history-C3l8NaI6.mjs → history-B-gHLBwh.mjs} +1 -1
  3. package/dist/{history-DQ0J8NCy.mjs → history-BLctAU0P.mjs} +1 -1
  4. package/dist/{history.vue_vue_type_script_setup_true_lang-DB8PERVD.mjs → history.vue_vue_type_script_setup_true_lang-Bov9wTh0.mjs} +2 -2
  5. package/dist/{history.vue_vue_type_script_setup_true_lang-B8FBizdu.mjs → history.vue_vue_type_script_setup_true_lang-CAnnJEfn.mjs} +5 -5
  6. package/dist/index--_Po9Tig.mjs +43858 -0
  7. package/dist/{index-C9xiSbGi.mjs → index-AgzuDVOr.mjs} +1 -1
  8. package/dist/index-BocAk8pD.mjs +176 -0
  9. package/dist/{index-Gj815brY.mjs → index-C2vMy8ik.mjs} +24 -24
  10. package/dist/index-CE3y-0QV.mjs +131 -0
  11. package/dist/{index-B1h4IWy4.mjs → index-CNAVEXHD.mjs} +2 -2
  12. package/dist/index-CU32So4f.mjs +2782 -0
  13. package/dist/{index-D0mKdcOp.mjs → index-Cg3fVoEi.mjs} +2 -2
  14. package/dist/index-CpuvJ4Tw.mjs +110 -0
  15. package/dist/index-DJtiZFc1.mjs +142 -0
  16. package/dist/index-DsIwC6AS.mjs +238 -0
  17. package/dist/{index--l5ns2E2.mjs → index-P-8jwHYX.mjs} +18 -18
  18. package/dist/{index-BwZZ71lS.mjs → index-YgHkUquv.mjs} +2 -2
  19. package/dist/{index-DsYV-De4.mjs → index-dcnBl8Xl.mjs} +1 -1
  20. package/dist/index-eUhFgNKx.mjs +45 -0
  21. package/dist/index-zsIaZMNT.mjs +63 -0
  22. package/dist/index.mjs +7 -2697
  23. package/dist/merchant-DLx9AYoM.mjs +4 -0
  24. package/dist/merchant.vue_vue_type_script_setup_true_lang-Bxb9bzqv.mjs +77 -0
  25. package/dist/pay-C08cbM_l.mjs +101 -0
  26. package/dist/pay-DW3Una4C.mjs +98 -0
  27. package/dist/payPal-D2I3WIqV.mjs +113 -0
  28. package/dist/payPal-nXPX-3pm.mjs +109 -0
  29. package/dist/sale-BR1khQTm.mjs +4 -0
  30. package/dist/sale.vue_vue_type_script_setup_true_lang-W8968hkL.mjs +77 -0
  31. package/dist/style.css +1 -1
  32. package/dist/three-BE8B3lbG.mjs +6 -0
  33. package/dist/{today-DK4xzzKV.mjs → today-r_ikFBLS.mjs} +1 -1
  34. package/dist/{today-DX1djaLC.mjs → today-t0-6m3Qr.mjs} +1 -1
  35. package/dist/{today.vue_vue_type_script_setup_true_lang-BBSo18Bt.mjs → today.vue_vue_type_script_setup_true_lang-BzhCmlc2.mjs} +7 -7
  36. package/dist/{today.vue_vue_type_script_setup_true_lang-C7uvcmd6.mjs → today.vue_vue_type_script_setup_true_lang-DsmG2Z4w.mjs} +10 -10
  37. package/dist/tokenExt-SHK5rrb5.mjs +31 -0
  38. package/dist/trend-BOA_Pwtn.mjs +200 -0
  39. package/dist/trend-D8pStiQ5.mjs +171 -0
  40. package/dist/trend-pbYAF-aS.mjs +172 -0
  41. package/dts/src/api/settle/agent-settle/index.d.ts +13 -0
  42. package/dts/src/api/settle/agent-settle/types.d.ts +48 -0
  43. package/dts/src/api/settle/insts-settle/index.d.ts +11 -0
  44. package/dts/src/api/settle/insts-settle/types.d.ts +32 -0
  45. package/dts/src/api/settle/mcht-homePage/index.d.ts +9 -0
  46. package/dts/src/api/settle/mcht-homePage/types.d.ts +34 -0
  47. package/dts/src/api/settle/settle-trade-merchant/types.d.ts +1 -1
  48. package/dts/src/constant.d.ts +8 -0
  49. package/dts/src/index.d.ts +1 -0
  50. package/dts/src/lang/settle/zh-cn.d.ts +2 -0
  51. package/dts/src/router/index.d.ts +4 -0
  52. package/dts/src/utils/tokenExt.d.ts +21 -0
  53. package/dts/src/views/payment/agentHomePage/index.vue.d.ts +2 -0
  54. package/dts/src/views/payment/agentHomePage/merchant.vue.d.ts +2 -0
  55. package/dts/src/views/payment/agentHomePage/pay.vue.d.ts +2 -0
  56. package/dts/src/views/payment/agentHomePage/payPal.vue.d.ts +2 -0
  57. package/dts/src/views/payment/agentHomePage/sale.vue.d.ts +2 -0
  58. package/dts/src/views/payment/agentHomePage/trend.vue.d.ts +2 -0
  59. package/dts/src/views/payment/instHomePage/index.vue.d.ts +2 -0
  60. package/dts/src/views/payment/instHomePage/pay.vue.d.ts +2 -0
  61. package/dts/src/views/payment/instHomePage/payPal.vue.d.ts +2 -0
  62. package/dts/src/views/payment/instHomePage/trend.vue.d.ts +2 -0
  63. package/dts/src/views/payment/instsLogin/index.vue.d.ts +2 -0
  64. package/dts/src/views/payment/merchantHomePage/index.vue.d.ts +2 -0
  65. package/dts/src/views/payment/merchantHomePage/trend.vue.d.ts +2 -0
  66. package/package.json +3 -2
  67. package/dist/index-DXSCg5PP.mjs +0 -102
@@ -3,7 +3,7 @@ import { useRoute as ue, useRouter as ie } from "vue-router";
3
3
  import { useI18n as me } from "vue-i18n";
4
4
  import { useUserStore as R, clearEmpty as pe, request as ye, useTableHooks as fe } from "jmash-core";
5
5
  import { tokenExt as ce } from "xyvcard-agent";
6
- import { D as f, C as P } from "./index-DXSCg5PP.mjs";
6
+ import { D as f, C as P } from "./index-CpuvJ4Tw.mjs";
7
7
  class be {
8
8
  getKey(T) {
9
9
  return {
@@ -0,0 +1,176 @@
1
+ import { defineComponent as g, ref as u, onMounted as C, getCurrentInstance as E, resolveComponent as f, createElementBlock as A, openBlock as $, createElementVNode as t, createVNode as a, withCtx as n, toDisplayString as o, createTextVNode as _ } from "vue";
2
+ import { useRouter as R } from "vue-router";
3
+ import { s as w } from "./index-zsIaZMNT.mjs";
4
+ import { C as p } from "./index-CpuvJ4Tw.mjs";
5
+ import P from "./pay-C08cbM_l.mjs";
6
+ import S from "./payPal-D2I3WIqV.mjs";
7
+ import V from "./trend-pbYAF-aS.mjs";
8
+ import { _ as b } from "./sale.vue_vue_type_script_setup_true_lang-W8968hkL.mjs";
9
+ import { _ as I } from "./merchant.vue_vue_type_script_setup_true_lang-Bxb9bzqv.mjs";
10
+ import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
11
+ const F = { class: "app" }, O = { class: "app-title" }, N = { class: "row-container" }, B = { class: "title" }, q = { class: "tatals" }, Q = { class: "tatal" }, U = { class: "text" }, j = { class: "tatal" }, z = { class: "text" }, G = { class: "tatal" }, H = { class: "text" }, J = { class: "tatal" }, K = { class: "text" }, L = { class: "app-title pay-model" }, W = { class: "title taxt_time_laft" }, X = { class: "text_time" }, Z = { class: "title taxt_time_laft" }, tt = { class: "text_time" }, et = { class: "title taxt_time_laft" }, st = { class: "text_time" }, at = { class: "app-title-time" }, ot = { class: "chart-header" }, nt = { class: "chart-title" }, lt = { class: "text_time" }, it = /* @__PURE__ */ g({
12
+ __name: "index",
13
+ setup(rt) {
14
+ const y = R(), r = u("");
15
+ C(() => {
16
+ const s = /* @__PURE__ */ new Date();
17
+ r.value = `${s.getFullYear()}年${(s.getMonth() + 1).toString().padStart(2, "0")}月`, x();
18
+ });
19
+ const { proxy: l } = E(), c = u({
20
+ analysisTimeStart: "",
21
+ analysisTimeEnd: ""
22
+ }), d = u({});
23
+ function v() {
24
+ w.homePageAmount({
25
+ analysisTimeStart: c.value.analysisTimeStart,
26
+ analysisTimeEnd: c.value.analysisTimeEnd
27
+ }).then((s) => {
28
+ d.value = s.data;
29
+ });
30
+ }
31
+ const x = () => {
32
+ const s = /* @__PURE__ */ new Date(), e = /* @__PURE__ */ new Date();
33
+ e.setDate(s.getDate() - 6), m.value = [
34
+ l.$moment.formatDate(e, "YYYY-MM-DD"),
35
+ l.$moment.formatDate(s, "YYYY-MM-DD")
36
+ ], c.value = {
37
+ analysisTimeStart: l.$moment.formatDate(
38
+ e,
39
+ p.RPC_FORMAT_TIME
40
+ ),
41
+ analysisTimeEnd: l.$moment.formatDate(s, p.RPC_FORMAT_TIME)
42
+ }, v();
43
+ }, m = u([]);
44
+ function D(s) {
45
+ m.value = s, !s || s.length !== 2 ? x() : (m.value = s, c.value = {
46
+ analysisTimeStart: l.$moment.formatDate(
47
+ s[0],
48
+ p.RPC_FORMAT_TIME
49
+ ),
50
+ analysisTimeEnd: l.$moment.formatDate(
51
+ s[1],
52
+ p.RPC_FORMAT_TIME
53
+ )
54
+ }), v();
55
+ }
56
+ const M = () => {
57
+ y.push({
58
+ path: "/payment/pay-trade"
59
+ });
60
+ };
61
+ return (s, e) => {
62
+ const T = f("el-date-picker"), i = f("el-card"), h = f("el-button");
63
+ return $(), A("div", null, [
64
+ t("div", F, [
65
+ t("div", O, [
66
+ t("div", N, [
67
+ a(i, { class: "card-never" }, {
68
+ default: n(() => [
69
+ t("div", B, [
70
+ e[1] || (e[1] = t("span", { style: { "margin-right": "25%" } }, "交易数据看板", -1)),
71
+ a(T, {
72
+ modelValue: m.value,
73
+ "onUpdate:modelValue": e[0] || (e[0] = (Y) => m.value = Y),
74
+ type: "daterange",
75
+ "range-separator": "-",
76
+ "start-placeholder": "开始日期",
77
+ "end-placeholder": "结束日期",
78
+ "value-format": "YYYY-MM-DD",
79
+ format: "YYYY-MM-DD",
80
+ onChange: D
81
+ }, null, 8, ["modelValue"])
82
+ ]),
83
+ t("div", q, [
84
+ t("div", Q, [
85
+ t("text", U, o(d.value.orderCount || 0), 1),
86
+ e[2] || (e[2] = t("text", null, "交易笔数", -1))
87
+ ]),
88
+ t("div", j, [
89
+ t("text", z, o(d.value.orderAmount || 0), 1),
90
+ e[3] || (e[3] = t("text", null, " 交易金额", -1))
91
+ ]),
92
+ t("div", G, [
93
+ t("text", H, o(d.value.feeAmt || 0), 1),
94
+ e[4] || (e[4] = t("text", null, " 手续费", -1))
95
+ ]),
96
+ t("div", J, [
97
+ t("text", K, o(d.value.settleAmount || 0), 1),
98
+ e[5] || (e[5] = t("text", null, " 结账金额", -1))
99
+ ])
100
+ ])
101
+ ]),
102
+ _: 1
103
+ }),
104
+ a(i, { class: "card-never card-paypal" }, {
105
+ default: n(() => [
106
+ e[6] || (e[6] = t("div", { class: "title" }, "支付渠道分析", -1)),
107
+ a(S, { class: "pay" })
108
+ ]),
109
+ _: 1
110
+ })
111
+ ])
112
+ ]),
113
+ t("div", L, [
114
+ a(i, { class: "card-number" }, {
115
+ default: n(() => [
116
+ t("div", W, [
117
+ e[7] || (e[7] = _(" 交易金额排名 ")),
118
+ t("span", X, o(r.value), 1)
119
+ ]),
120
+ a(P)
121
+ ]),
122
+ _: 1
123
+ }),
124
+ a(i, { class: "card-number" }, {
125
+ default: n(() => [
126
+ t("div", Z, [
127
+ e[8] || (e[8] = _(" 销售人员交易金额排名   ")),
128
+ t("span", tt, o(r.value), 1)
129
+ ]),
130
+ a(b)
131
+ ]),
132
+ _: 1
133
+ }),
134
+ a(i, { class: "card-number" }, {
135
+ default: n(() => [
136
+ t("div", et, [
137
+ e[9] || (e[9] = _(" 新增人员新增商户排名   ")),
138
+ t("span", st, o(r.value), 1)
139
+ ]),
140
+ a(I)
141
+ ]),
142
+ _: 1
143
+ })
144
+ ])
145
+ ]),
146
+ t("div", at, [
147
+ a(i, { class: "card-chart" }, {
148
+ default: n(() => [
149
+ t("div", ot, [
150
+ t("span", nt, [
151
+ e[10] || (e[10] = _(" 交易金额趋势   ")),
152
+ t("span", lt, o(r.value), 1)
153
+ ]),
154
+ a(h, {
155
+ type: "text",
156
+ class: "view-more",
157
+ onClick: M
158
+ }, {
159
+ default: n(() => e[11] || (e[11] = [
160
+ _("查看更多")
161
+ ])),
162
+ _: 1
163
+ })
164
+ ]),
165
+ a(V)
166
+ ]),
167
+ _: 1
168
+ })
169
+ ])
170
+ ]);
171
+ };
172
+ }
173
+ }), Dt = /* @__PURE__ */ k(it, [["__scopeId", "data-v-a1dfcb4d"]]);
174
+ export {
175
+ Dt as default
176
+ };
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as ne, getCurrentInstance as oe, ref as I, resolveComponent as p, resolveDirective as se, createElementBlock as E, openBlock as v, createElementVNode as b, createVNode as l, withCtx as t, withKeys as g, unref as n, createBlock as D, createCommentVNode as M, createTextVNode as r, toDisplayString as i, createSlots as re, withDirectives as de, isRef as U } from "vue";
2
2
  import { useRoute as ue, useRouter as ie } from "vue-router";
3
3
  import { useI18n as me } from "vue-i18n";
4
- import { useUserStore as R, clearEmpty as pe, request as ye, useTableHooks as fe } from "jmash-core";
4
+ import { useUserStore as N, clearEmpty as pe, request as ye, useTableHooks as fe } from "jmash-core";
5
5
  import { tokenExt as ce } from "xyvcard-agent";
6
- import { D as f, C as P } from "./index-DXSCg5PP.mjs";
6
+ import { D as f, C as P } from "./index-CpuvJ4Tw.mjs";
7
7
  class be {
8
8
  getKey(T) {
9
9
  return {
@@ -13,21 +13,21 @@ class be {
13
13
  }
14
14
  // 查询翻页信息支付交易汇总统计;
15
15
  findPage(T) {
16
- const N = R().user.tenant;
16
+ const R = N().user.tenant;
17
17
  return pe(T), ye({
18
- url: "/v1/settle/analysis/merchant/page/" + N,
18
+ url: "/v1/settle/analysis/merchant/page/" + R,
19
19
  method: "get",
20
20
  params: T
21
21
  });
22
22
  }
23
23
  }
24
- const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-container" }, Ae = { class: "total-num" }, he = { class: "blue_color" }, Ce = { class: "blue_color" }, Ve = { class: "blue_color" }, we = { class: "blue_color" }, $e = { class: "blue_color" }, ke = ["onClick"], Se = /* @__PURE__ */ ne({
24
+ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-container" }, Ae = { class: "total-num" }, Ce = { class: "blue_color" }, he = { class: "blue_color" }, Ve = { class: "blue_color" }, we = { class: "blue_color" }, $e = { class: "blue_color" }, ke = ["onClick"], Se = /* @__PURE__ */ ne({
25
25
  __name: "index",
26
26
  setup(Q) {
27
27
  const { t: T } = me();
28
28
  f.agentBizDict.useValues(), f.instsBizDict.useValues(), f.merchantBizDict.useValues();
29
29
  const w = ue().query.tenant, { proxy: S } = oe(), j = ie(), s = I({
30
- tokenExt: ce.getTokenExt(R().user.tenant)
30
+ tokenExt: ce.getTokenExt(N().user.tenant)
31
31
  }), {
32
32
  tableHooks: m,
33
33
  multipleTableRef: K,
@@ -37,9 +37,9 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
37
37
  total: $
38
38
  } = fe(T, Te, s);
39
39
  let A = m.totalRecord;
40
- const h = I([]);
40
+ const C = I([]);
41
41
  function O(a) {
42
- h.value = a, h.value.length === 2 && (s.value.analysisTimeStart = S.$moment.formatDate(
42
+ C.value = a, C.value.length === 2 && (s.value.analysisTimeStart = S.$moment.formatDate(
43
43
  a[0],
44
44
  P.RPC_FORMAT_TIME
45
45
  ), s.value.analysisTimeEnd = S.$moment.formatDate(
@@ -49,10 +49,10 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
49
49
  }
50
50
  const L = I(
51
51
  JSON.parse(
52
- sessionStorage.getItem("SelectAgent:" + R().user.tenant) || "{}"
52
+ sessionStorage.getItem("SelectAgent:" + N().user.tenant) || "{}"
53
53
  )
54
54
  );
55
- let C = I([
55
+ let h = I([
56
56
  // 序号
57
57
  {
58
58
  label: "settleTradeAnalysis.index",
@@ -138,7 +138,7 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
138
138
  },
139
139
  // 代理商名称
140
140
  {
141
- label: "settleTradeAnalysis.agentCode",
141
+ label: "settleTradeAnalysis.agentName",
142
142
  prop: "agentCode",
143
143
  slotName: "agentCode",
144
144
  columnType: "slot",
@@ -164,7 +164,7 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
164
164
  });
165
165
  }
166
166
  function z() {
167
- h.value = [], s.value.analysisTimeStart = "", s.value.analysisTimeEnd = "", m.resetQuery();
167
+ C.value = [], s.value.analysisTimeStart = "", s.value.analysisTimeEnd = "", m.resetQuery();
168
168
  }
169
169
  function W(a) {
170
170
  m.selectionRows.value = a;
@@ -285,7 +285,7 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
285
285
  }, {
286
286
  default: t(() => [
287
287
  l(c, {
288
- label: a.$t("settleTradeAnalysis.agentCode"),
288
+ label: a.$t("settleTradeAnalysis.agentName"),
289
289
  prop: "agentCode"
290
290
  }, {
291
291
  default: t(() => [
@@ -331,13 +331,13 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
331
331
  l(d, { span: 6 }, {
332
332
  default: t(() => [
333
333
  l(c, {
334
- label: a.$t("settleTradeAnalysis.channelId"),
335
- prop: "channelId"
334
+ label: a.$t("settleTradeAnalysis.instsId"),
335
+ prop: "instsId"
336
336
  }, {
337
337
  default: t(() => [
338
338
  l(k, {
339
- modelValue: s.value.channelId,
340
- "onUpdate:modelValue": e[11] || (e[11] = (y) => s.value.channelId = y),
339
+ modelValue: s.value.instsId,
340
+ "onUpdate:modelValue": e[11] || (e[11] = (y) => s.value.instsId = y),
341
341
  placeholder: a.$t("settleTradeAnalysis.channelIdRead"),
342
342
  data: n(f).instsBizDict.values,
343
343
  onKeyup: e[12] || (e[12] = g((y) => n(m).handleQuery(), ["enter"])),
@@ -359,8 +359,8 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
359
359
  }, {
360
360
  default: t(() => [
361
361
  l(X, {
362
- modelValue: h.value,
363
- "onUpdate:modelValue": e[13] || (e[13] = (y) => h.value = y),
362
+ modelValue: C.value,
363
+ "onUpdate:modelValue": e[13] || (e[13] = (y) => C.value = y),
364
364
  type: "daterange",
365
365
  format: "YYYY-MM-DD",
366
366
  "value-format": "YYYY-MM-DD",
@@ -466,8 +466,8 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
466
466
  }, {
467
467
  default: t(() => [
468
468
  l(x, {
469
- modelValue: n(C),
470
- "onUpdate:modelValue": e[18] || (e[18] = (o) => U(C) ? C.value = o : C = o),
469
+ modelValue: n(h),
470
+ "onUpdate:modelValue": e[18] || (e[18] = (o) => U(h) ? h.value = o : h = o),
471
471
  "label-name": "settle/settle-trade-analysis"
472
472
  }, null, 8, ["modelValue"])
473
473
  ]),
@@ -498,7 +498,7 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
498
498
  l(d, { span: 4 }, {
499
499
  default: t(() => [
500
500
  e[24] || (e[24] = r(" 订单数: ")),
501
- b("span", he, i(n(A).totalOrderCount), 1),
501
+ b("span", Ce, i(n(A).totalOrderCount), 1),
502
502
  e[25] || (e[25] = r(" 笔 "))
503
503
  ]),
504
504
  _: 1
@@ -506,7 +506,7 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
506
506
  l(d, { span: 4 }, {
507
507
  default: t(() => [
508
508
  e[26] || (e[26] = r(" 订单金额: ")),
509
- b("span", Ce, i(n(A).totalOrderAmount), 1),
509
+ b("span", he, i(n(A).totalOrderAmount), 1),
510
510
  e[27] || (e[27] = r(" 元 "))
511
511
  ]),
512
512
  _: 1
@@ -546,7 +546,7 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
546
546
  "row-key": "settleTradeAnalysisPk",
547
547
  "list-loading": n(q),
548
548
  data: n(F),
549
- "table-label": n(C),
549
+ "table-label": n(h),
550
550
  onSelectionChange: W,
551
551
  onSortChange: J
552
552
  }, re({
@@ -0,0 +1,131 @@
1
+ import { defineComponent as A, ref as c, resolveComponent as _, createElementBlock as h, openBlock as y, createElementVNode as t, createVNode as l, withCtx as r, toDisplayString as s, createTextVNode as C } from "vue";
2
+ import { useRouter as g } from "vue-router";
3
+ import { T as D, m as p } from "./trend-BOA_Pwtn.mjs";
4
+ import { h as x } from "./index-CU32So4f.mjs";
5
+ import { t as T } from "./tokenExt-SHK5rrb5.mjs";
6
+ import { useUserStore as b } from "jmash-core";
7
+ import { _ as Y } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
8
+ const H = { class: "app" }, M = { class: "app-title" }, k = { class: "row-container" }, E = { class: "tatals" }, N = { class: "tatal" }, w = { class: "text" }, R = { class: "tatal" }, S = { class: "text" }, V = { class: "tatal" }, B = { class: "text" }, I = { class: "tatal" }, P = { class: "text" }, F = { class: "tatals" }, U = { class: "tatal" }, j = { class: "text" }, q = { class: "tatal" }, z = { class: "text" }, G = { class: "tatal" }, J = { class: "text" }, K = { class: "tatal" }, L = { class: "text" }, O = { class: "app-title-time" }, Q = { class: "chart-header" }, W = /* @__PURE__ */ A({
9
+ __name: "index",
10
+ setup(X) {
11
+ const i = g(), m = x().format("YYYY-MM-DD"), u = x().subtract(1, "days").format("YYYY-MM-DD"), a = c({}), n = c({});
12
+ (async () => {
13
+ try {
14
+ p.homePageAmount({
15
+ analysisTimeStart: m,
16
+ analysisTimeEnd: m
17
+ }).then((o) => {
18
+ n.value = {
19
+ orderCount: o.data.orderCount,
20
+ orderAmount: o.data.orderAmount,
21
+ feeAmt: o.data.feeAmt,
22
+ settleAmount: o.data.settleAmount
23
+ };
24
+ }), p.homePageAmount({
25
+ analysisTimeStart: u,
26
+ analysisTimeEnd: u
27
+ }).then((o) => {
28
+ a.value = {
29
+ orderCount: o.data.orderCount,
30
+ orderAmount: o.data.orderAmount,
31
+ feeAmt: o.data.feeAmt,
32
+ settleAmount: o.data.settleAmount
33
+ };
34
+ });
35
+ } catch (o) {
36
+ console.error("获取数据失败:", o);
37
+ }
38
+ })();
39
+ const f = () => {
40
+ const o = T.getCurrentRole(b().user.tenant);
41
+ ["MCHT_CHAIN_HEAD", "MCHT_CHAIN_BRANCH"].includes(o.storeType) ? i.push({
42
+ path: "/payment/pay-trade"
43
+ }) : i.push({
44
+ path: "/payment/pay-trade-personal"
45
+ });
46
+ };
47
+ return (o, e) => {
48
+ const d = _("el-card"), v = _("el-button");
49
+ return y(), h("div", null, [
50
+ t("div", H, [
51
+ t("div", M, [
52
+ t("div", k, [
53
+ l(d, { class: "card-never" }, {
54
+ default: r(() => [
55
+ e[4] || (e[4] = t("span", { style: { "margin-right": "25%", "font-weight": "bold" } }, "交易数据看板(昨日)", -1)),
56
+ t("div", E, [
57
+ t("div", N, [
58
+ t("text", w, s(a.value.orderCount || 0), 1),
59
+ e[0] || (e[0] = t("text", null, "交易笔数", -1))
60
+ ]),
61
+ t("div", R, [
62
+ t("text", S, s(a.value.orderAmount || 0), 1),
63
+ e[1] || (e[1] = t("text", null, " 交易金额", -1))
64
+ ]),
65
+ t("div", V, [
66
+ t("text", B, s(a.value.feeAmt || 0), 1),
67
+ e[2] || (e[2] = t("text", null, " 手续费", -1))
68
+ ]),
69
+ t("div", I, [
70
+ t("text", P, s(a.value.settleAmount || "暂无结算"), 1),
71
+ e[3] || (e[3] = t("text", null, " 结账金额", -1))
72
+ ])
73
+ ])
74
+ ]),
75
+ _: 1
76
+ }),
77
+ l(d, { class: "card-never" }, {
78
+ default: r(() => [
79
+ e[9] || (e[9] = t("span", { style: { "margin-right": "25%", "font-weight": "bold" } }, "交易数据看板(今日)", -1)),
80
+ t("div", F, [
81
+ t("div", U, [
82
+ t("text", j, s(n.value.orderCount || 0), 1),
83
+ e[5] || (e[5] = t("text", null, "交易笔数", -1))
84
+ ]),
85
+ t("div", q, [
86
+ t("text", z, s(n.value.orderAmount || 0), 1),
87
+ e[6] || (e[6] = t("text", null, " 交易金额", -1))
88
+ ]),
89
+ t("div", G, [
90
+ t("text", J, s(n.value.feeAmt || 0), 1),
91
+ e[7] || (e[7] = t("text", null, " 手续费", -1))
92
+ ]),
93
+ t("div", K, [
94
+ t("text", L, s(n.value.settleAmount || "暂无结算"), 1),
95
+ e[8] || (e[8] = t("text", null, " 结账金额", -1))
96
+ ])
97
+ ])
98
+ ]),
99
+ _: 1
100
+ })
101
+ ])
102
+ ])
103
+ ]),
104
+ t("div", O, [
105
+ l(d, { class: "card-chart" }, {
106
+ default: r(() => [
107
+ t("div", Q, [
108
+ e[11] || (e[11] = t("span", { class: "chart-title" }, " 交易金额趋势   ", -1)),
109
+ l(v, {
110
+ type: "primary",
111
+ link: "",
112
+ onClick: f
113
+ }, {
114
+ default: r(() => e[10] || (e[10] = [
115
+ C(" 查看更多 ")
116
+ ])),
117
+ _: 1
118
+ })
119
+ ]),
120
+ l(D)
121
+ ]),
122
+ _: 1
123
+ })
124
+ ])
125
+ ]);
126
+ };
127
+ }
128
+ }), lt = /* @__PURE__ */ Y(W, [["__scopeId", "data-v-cb0bf7eb"]]);
129
+ export {
130
+ lt as default
131
+ };
@@ -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-DB8PERVD.mjs";
3
- import { _ as b } from "./today.vue_vue_type_script_setup_true_lang-BBSo18Bt.mjs";
2
+ import { _ as f } from "./history.vue_vue_type_script_setup_true_lang-Bov9wTh0.mjs";
3
+ import { _ as b } from "./today.vue_vue_type_script_setup_true_lang-BzhCmlc2.mjs";
4
4
  const v = { class: "app-container" }, h = { class: "search-container" }, w = /* @__PURE__ */ r({
5
5
  __name: "index",
6
6
  setup(C) {