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
@@ -1,11 +1,12 @@
1
- import { defineComponent as F, ref as k, onActivated as O, resolveComponent as d, resolveDirective as W, createElementBlock as V, openBlock as A, createElementVNode as f, createVNode as t, withCtx as a, unref as o, withKeys as _, withDirectives as $, vShow as Z, createTextVNode as r, toDisplayString as m, createBlock as x, createCommentVNode as G, isRef as N } from "vue";
1
+ import { defineComponent as F, ref as k, onActivated as O, resolveComponent as r, resolveDirective as W, createElementBlock as V, openBlock as A, createElementVNode as f, createVNode as t, withCtx as a, unref as o, withKeys as _, withDirectives as $, vShow as Z, createTextVNode as i, toDisplayString as m, createBlock as x, createCommentVNode as G, isRef as N } from "vue";
2
2
  import { useI18n as J } from "vue-i18n";
3
3
  import { useRouter as X } from "vue-router";
4
4
  import { useUserStore as S, clearEmpty as ee, request as te, useTableHooks as le } from "jmash-core";
5
5
  import { tokenExt as ae } from "xyvcard-agent";
6
- import { D as b } from "./index-V8g7-RWq.mjs";
6
+ import { D as v } from "./index-yz18Lhpm.mjs";
7
7
  import { DateRange as ne } from "xyvcard-insts";
8
- class oe {
8
+ import { g as oe } from "./agent-BXhE-jbg.mjs";
9
+ class se {
9
10
  getKey(p) {
10
11
  return {
11
12
  analysisTime: p.analysisTime,
@@ -22,22 +23,22 @@ class oe {
22
23
  });
23
24
  }
24
25
  }
25
- const se = new oe(), re = { class: "app-container" }, de = { class: "search-container" }, ie = { class: "total-num" }, ue = { class: "blue_color" }, me = { class: "blue_color" }, pe = { class: "blue_color" }, ye = { class: "blue_color" }, fe = ["onClick"], we = /* @__PURE__ */ F({
26
+ const re = new se(), ie = { class: "app-container" }, de = { class: "search-container" }, ue = { class: "total-num" }, me = { class: "blue_color" }, pe = { class: "blue_color" }, ye = { class: "blue_color" }, fe = { class: "blue_color" }, be = ["onClick"], ke = /* @__PURE__ */ F({
26
27
  __name: "index",
27
28
  setup(D) {
28
29
  const { t: p } = J();
29
- b.agentBizDict.useValues(), b.instsBizDict.useValues();
30
+ v.agentBizDict.useValues(), v.instsBizDict.useValues();
30
31
  const C = X(), s = k({
31
32
  tokenExt: ae.getTokenExt(S().user.tenant)
32
33
  }), {
33
34
  tableHooks: u,
34
35
  multipleTableRef: R,
35
36
  queryFormRef: U,
36
- listLoading: z,
37
- tableData: E,
38
- total: T
39
- } = le(p, se, s);
40
- let c = u.totalRecord, g = k([
37
+ listLoading: E,
38
+ tableData: z,
39
+ total: g
40
+ } = le(p, re, s);
41
+ let T = u.totalRecord, b = k([
41
42
  // 序号
42
43
  {
43
44
  label: "序号",
@@ -58,8 +59,6 @@ const se = new oe(), re = { class: "app-container" }, de = { class: "search-cont
58
59
  {
59
60
  label: "settleTradeAnalysis.agentCode",
60
61
  prop: "agentCode",
61
- slotName: "agentCode",
62
- columnType: "slot",
63
62
  width: "160",
64
63
  isColumn: !0
65
64
  },
@@ -138,10 +137,10 @@ const se = new oe(), re = { class: "app-container" }, de = { class: "search-cont
138
137
  return O(() => {
139
138
  u.getList();
140
139
  }), (n, e) => {
141
- const j = d("el-tree-select"), y = d("el-form-item"), i = d("el-col"), w = d("el-input"), B = d("jmash-select"), v = d("el-row"), h = d("el-button"), Y = d("el-form"), K = d("jmash-column-select"), Q = d("jmash-table"), q = d("jmash-pagination"), H = d("el-card"), L = W("hasPerm");
142
- return A(), V("div", re, [
140
+ const j = r("el-tree-select"), y = r("el-form-item"), d = r("el-col"), w = r("el-input"), Y = r("jmash-select"), c = r("el-row"), h = r("el-button"), B = r("el-form"), K = r("jmash-column-select"), Q = r("jmash-table"), q = r("jmash-pagination"), H = r("el-card"), L = W("hasPerm");
141
+ return A(), V("div", ie, [
143
142
  f("div", de, [
144
- t(Y, {
143
+ t(B, {
145
144
  ref_key: "queryFormRef",
146
145
  ref: U,
147
146
  model: s.value,
@@ -149,9 +148,9 @@ const se = new oe(), re = { class: "app-container" }, de = { class: "search-cont
149
148
  "label-width": "6em"
150
149
  }, {
151
150
  default: a(() => [
152
- t(v, null, {
151
+ t(c, null, {
153
152
  default: a(() => [
154
- t(i, { span: 6 }, {
153
+ t(d, { span: 6 }, {
155
154
  default: a(() => [
156
155
  t(y, {
157
156
  label: n.$t("settleTradeAnalysis.agentName"),
@@ -161,7 +160,7 @@ const se = new oe(), re = { class: "app-container" }, de = { class: "search-cont
161
160
  t(j, {
162
161
  modelValue: s.value.agentCode,
163
162
  "onUpdate:modelValue": e[0] || (e[0] = (l) => s.value.agentCode = l),
164
- data: o(b).agentBizDict.values,
163
+ data: o(v).agentBizDict.values,
165
164
  "node-key": "value",
166
165
  filterable: "",
167
166
  clearable: "",
@@ -174,7 +173,7 @@ const se = new oe(), re = { class: "app-container" }, de = { class: "search-cont
174
173
  ]),
175
174
  _: 1
176
175
  }),
177
- t(i, { span: 6 }, {
176
+ t(d, { span: 6 }, {
178
177
  default: a(() => [
179
178
  t(y, {
180
179
  label: n.$t("settleTradeAnalysis.agentCodes"),
@@ -194,18 +193,18 @@ const se = new oe(), re = { class: "app-container" }, de = { class: "search-cont
194
193
  ]),
195
194
  _: 1
196
195
  }),
197
- t(i, { span: 6 }, {
196
+ t(d, { span: 6 }, {
198
197
  default: a(() => [
199
198
  t(y, {
200
199
  label: n.$t("payTrade.instsId"),
201
200
  prop: "instsId"
202
201
  }, {
203
202
  default: a(() => [
204
- t(B, {
203
+ t(Y, {
205
204
  modelValue: s.value.instsId,
206
205
  "onUpdate:modelValue": e[3] || (e[3] = (l) => s.value.instsId = l),
207
206
  placeholder: n.$t("settleTradeAnalysis.channelIdRead"),
208
- data: o(b).instsBizDict.values,
207
+ data: o(v).instsBizDict.values,
209
208
  onKeyup: e[4] || (e[4] = _((l) => o(u).handleQuery(), ["enter"])),
210
209
  class: "!w-[203px]",
211
210
  filterable: "",
@@ -217,7 +216,7 @@ const se = new oe(), re = { class: "app-container" }, de = { class: "search-cont
217
216
  ]),
218
217
  _: 1
219
218
  }),
220
- t(i, { span: 6 }, {
219
+ t(d, { span: 6 }, {
221
220
  default: a(() => [
222
221
  t(y, {
223
222
  label: n.$t("settleTradeAnalysis.likeMerchantNo"),
@@ -240,9 +239,9 @@ const se = new oe(), re = { class: "app-container" }, de = { class: "search-cont
240
239
  ]),
241
240
  _: 1
242
241
  }),
243
- t(v, null, {
242
+ t(c, null, {
244
243
  default: a(() => [
245
- t(i, { span: 8 }, {
244
+ t(d, { span: 8 }, {
246
245
  default: a(() => [
247
246
  t(y, {
248
247
  label: n.$t("settleTradeAnalysis.createTime"),
@@ -269,7 +268,7 @@ const se = new oe(), re = { class: "app-container" }, de = { class: "search-cont
269
268
  ]),
270
269
  _: 1
271
270
  }),
272
- t(i, { span: 16 }, {
271
+ t(d, { span: 16 }, {
273
272
  default: a(() => [
274
273
  t(y, { class: "search-btn" }, {
275
274
  default: a(() => [
@@ -278,7 +277,7 @@ const se = new oe(), re = { class: "app-container" }, de = { class: "search-cont
278
277
  onClick: e[9] || (e[9] = (l) => o(u).handleQuery())
279
278
  }, {
280
279
  default: a(() => [
281
- r(m(n.$t("common.search")), 1)
280
+ i(m(n.$t("common.search")), 1)
282
281
  ]),
283
282
  _: 1
284
283
  }),
@@ -286,7 +285,7 @@ const se = new oe(), re = { class: "app-container" }, de = { class: "search-cont
286
285
  onClick: e[10] || (e[10] = (l) => o(u).resetQuery())
287
286
  }, {
288
287
  default: a(() => [
289
- r(m(n.$t("common.reset")), 1)
288
+ i(m(n.$t("common.reset")), 1)
290
289
  ]),
291
290
  _: 1
292
291
  })
@@ -309,16 +308,16 @@ const se = new oe(), re = { class: "app-container" }, de = { class: "search-cont
309
308
  class: "table-container"
310
309
  }, {
311
310
  header: a(() => [
312
- t(v, null, {
311
+ t(c, null, {
313
312
  default: a(() => [
314
- t(i, {
313
+ t(d, {
315
314
  span: 24,
316
315
  class: "container-float"
317
316
  }, {
318
317
  default: a(() => [
319
318
  t(K, {
320
- modelValue: o(g),
321
- "onUpdate:modelValue": e[11] || (e[11] = (l) => N(g) ? g.value = l : g = l),
319
+ modelValue: o(b),
320
+ "onUpdate:modelValue": e[11] || (e[11] = (l) => N(b) ? b.value = l : b = l),
322
321
  "label-name": "settle/settle-trade-analysis"
323
322
  }, null, 8, ["modelValue"])
324
323
  ]),
@@ -329,10 +328,10 @@ const se = new oe(), re = { class: "app-container" }, de = { class: "search-cont
329
328
  })
330
329
  ]),
331
330
  footer: a(() => [
332
- o(T) > 0 ? (A(), x(q, {
331
+ o(g) > 0 ? (A(), x(q, {
333
332
  key: 0,
334
- total: o(T),
335
- "onUpdate:total": e[12] || (e[12] = (l) => N(T) ? T.value = l : null),
333
+ total: o(g),
334
+ "onUpdate:total": e[12] || (e[12] = (l) => N(g) ? g.value = l : null),
336
335
  "current-page": s.value.curPage,
337
336
  "onUpdate:currentPage": e[13] || (e[13] = (l) => s.value.curPage = l),
338
337
  "page-size": s.value.pageSize,
@@ -341,38 +340,38 @@ const se = new oe(), re = { class: "app-container" }, de = { class: "search-cont
341
340
  }, null, 8, ["total", "current-page", "page-size"])) : G("", !0)
342
341
  ]),
343
342
  default: a(() => [
344
- f("div", ie, [
345
- t(v, { gutter: 20 }, {
343
+ f("div", ue, [
344
+ t(c, { gutter: 20 }, {
346
345
  default: a(() => [
347
- t(i, { span: 5 }, {
346
+ t(d, { span: 5 }, {
348
347
  default: a(() => [
349
- e[17] || (e[17] = r(" 订单笔数: ")),
350
- f("span", ue, m(o(c).totalOrderCount), 1),
351
- e[18] || (e[18] = r(" 笔 "))
348
+ e[17] || (e[17] = i(" 订单笔数: ")),
349
+ f("span", me, m(o(T).totalOrderCount), 1),
350
+ e[18] || (e[18] = i(" 笔 "))
352
351
  ]),
353
352
  _: 1
354
353
  }),
355
- t(i, { span: 5 }, {
354
+ t(d, { span: 5 }, {
356
355
  default: a(() => [
357
- e[19] || (e[19] = r(" 订单金额: ")),
358
- f("span", me, m(o(c).totalOrderAmount), 1),
359
- e[20] || (e[20] = r(" 元 "))
356
+ e[19] || (e[19] = i(" 订单金额: ")),
357
+ f("span", pe, m(o(T).totalOrderAmount), 1),
358
+ e[20] || (e[20] = i(" 元 "))
360
359
  ]),
361
360
  _: 1
362
361
  }),
363
- t(i, { span: 5 }, {
362
+ t(d, { span: 5 }, {
364
363
  default: a(() => [
365
- e[21] || (e[21] = r(" 交易金额: ")),
366
- f("span", pe, m(o(c).totalTradeAmount), 1),
367
- e[22] || (e[22] = r(" 元 "))
364
+ e[21] || (e[21] = i(" 交易金额: ")),
365
+ f("span", ye, m(o(T).totalTradeAmount), 1),
366
+ e[22] || (e[22] = i(" 元 "))
368
367
  ]),
369
368
  _: 1
370
369
  }),
371
- t(i, { span: 5 }, {
370
+ t(d, { span: 5 }, {
372
371
  default: a(() => [
373
- e[23] || (e[23] = r(" 手续费: ")),
374
- f("span", ye, m(o(c).totalFeeAmt), 1),
375
- e[24] || (e[24] = r(" 元 "))
372
+ e[23] || (e[23] = i(" 手续费: ")),
373
+ f("span", fe, m(o(T).totalFeeAmt), 1),
374
+ e[24] || (e[24] = i(" 元 "))
376
375
  ]),
377
376
  _: 1
378
377
  })
@@ -385,25 +384,22 @@ const se = new oe(), re = { class: "app-container" }, de = { class: "search-cont
385
384
  ref: R,
386
385
  "row-key": "settleTradeAnalysisPk",
387
386
  isSelection: !1,
388
- "list-loading": o(z),
389
- data: o(E),
390
- "table-label": o(g),
387
+ "list-loading": o(E),
388
+ data: o(z),
389
+ "table-label": o(b),
391
390
  onSelectionChange: M,
392
391
  onSortChange: P
393
392
  }, {
394
393
  agentName: a((l) => [
395
- r(m(o(b).agentBizDict.getValue(l.data.row.agentCode)), 1)
396
- ]),
397
- agentCode: a((l) => [
398
- r(m(l.data.row.agentCode), 1)
394
+ i(m(o(oe)(l.data.row.agentCode)), 1)
399
395
  ]),
400
396
  operation: a((l) => [
401
397
  $((A(), V("span", {
402
398
  class: "el-button-color",
403
399
  onClick: (ge) => I(l.data.row)
404
400
  }, [
405
- r(m(n.$t("settleTradeAnalysis.view")), 1)
406
- ], 8, fe)), [
401
+ i(m(n.$t("settleTradeAnalysis.view")), 1)
402
+ ], 8, be)), [
407
403
  [L, ["payment:agent_analysis:view"]]
408
404
  ])
409
405
  ]),
@@ -417,5 +413,5 @@ const se = new oe(), re = { class: "app-container" }, de = { class: "search-cont
417
413
  }
418
414
  });
419
415
  export {
420
- we as default
416
+ ke as default
421
417
  };
@@ -0,0 +1,129 @@
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 b } from "vue";
2
+ import { useRouter as w } from "vue-router";
3
+ import { T, m as p } from "./trend-C4uCFrLb.mjs";
4
+ import "jmash-core";
5
+ import { h as v } from "./index-A0dvO46M.mjs";
6
+ import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
7
+ 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({
8
+ __name: "index",
9
+ setup($) {
10
+ const x = w(), i = v().format("YYYY-MM-DD"), m = v().subtract(1, "days").format("YYYY-MM-DD"), a = u({}), n = u({});
11
+ (async () => {
12
+ try {
13
+ p.homePageAmount({
14
+ analysisTimeStart: i,
15
+ analysisTimeEnd: i
16
+ }).then((s) => {
17
+ n.value = {
18
+ orderCount: s.data.orderCount,
19
+ tradeAmount: s.data.tradeAmount,
20
+ feeAmt: s.data.feeAmt,
21
+ settleAmount: s.data.settleAmount
22
+ };
23
+ }), p.homePageAmount({
24
+ analysisTimeStart: m,
25
+ analysisTimeEnd: m
26
+ }).then((s) => {
27
+ a.value = {
28
+ orderCount: s.data.orderCount,
29
+ tradeAmount: s.data.tradeAmount,
30
+ feeAmt: s.data.feeAmt,
31
+ settleAmount: s.data.settleAmount
32
+ };
33
+ });
34
+ } catch (s) {
35
+ console.error("暂无数据", s);
36
+ }
37
+ })();
38
+ const f = () => {
39
+ x.push({
40
+ path: "/payment/pay-trade"
41
+ });
42
+ };
43
+ return (s, e) => {
44
+ const r = c("el-card"), h = c("el-button"), y = D("hasPerm");
45
+ return _(), g("div", null, [
46
+ t("div", M, [
47
+ t("div", P, [
48
+ t("div", E, [
49
+ l(r, { class: "card-never" }, {
50
+ default: d(() => [
51
+ e[4] || (e[4] = t("span", { style: { "margin-right": "25%", "font-weight": "bold" } }, "交易数据看板(昨日)", -1)),
52
+ t("div", V, [
53
+ t("div", B, [
54
+ t("text", N, o(a.value.orderCount || 0), 1),
55
+ e[0] || (e[0] = t("text", null, "交易笔数", -1))
56
+ ]),
57
+ t("div", S, [
58
+ t("text", F, o(a.value.tradeAmount || 0), 1),
59
+ e[1] || (e[1] = t("text", null, " 交易金额", -1))
60
+ ]),
61
+ t("div", H, [
62
+ t("text", I, o(a.value.feeAmt || 0), 1),
63
+ e[2] || (e[2] = t("text", null, " 手续费", -1))
64
+ ]),
65
+ t("div", R, [
66
+ t("text", j, o(a.value.settleAmount || "暂无结算"), 1),
67
+ e[3] || (e[3] = t("text", null, " 结算金额", -1))
68
+ ])
69
+ ])
70
+ ]),
71
+ _: 1
72
+ }),
73
+ l(r, { class: "card-never" }, {
74
+ default: d(() => [
75
+ e[9] || (e[9] = t("span", { style: { "margin-right": "25%", "font-weight": "bold" } }, "交易数据看板(今日)", -1)),
76
+ t("div", q, [
77
+ t("div", z, [
78
+ t("text", G, o(n.value.orderCount || 0), 1),
79
+ e[5] || (e[5] = t("text", null, "交易笔数", -1))
80
+ ]),
81
+ t("div", J, [
82
+ t("text", K, o(n.value.tradeAmount || 0), 1),
83
+ e[6] || (e[6] = t("text", null, " 交易金额", -1))
84
+ ]),
85
+ t("div", L, [
86
+ t("text", O, o(n.value.feeAmt || 0), 1),
87
+ e[7] || (e[7] = t("text", null, " 手续费", -1))
88
+ ]),
89
+ t("div", Q, [
90
+ t("text", U, o(n.value.settleAmount || "暂无结算"), 1),
91
+ e[8] || (e[8] = t("text", null, " 结算金额", -1))
92
+ ])
93
+ ])
94
+ ]),
95
+ _: 1
96
+ })
97
+ ])
98
+ ])
99
+ ]),
100
+ t("div", W, [
101
+ l(r, { class: "card-chart" }, {
102
+ default: d(() => [
103
+ t("div", X, [
104
+ e[11] || (e[11] = t("span", { class: "chart-title" }, " 交易金额趋势   ", -1)),
105
+ C((_(), Y(h, {
106
+ type: "primary",
107
+ link: "",
108
+ onClick: f
109
+ }, {
110
+ default: d(() => e[10] || (e[10] = [
111
+ b(" 查看更多 ")
112
+ ])),
113
+ _: 1
114
+ })), [
115
+ [y, ["payment:trade_analysis:view"]]
116
+ ])
117
+ ]),
118
+ l(T)
119
+ ]),
120
+ _: 1
121
+ })
122
+ ])
123
+ ]);
124
+ };
125
+ }
126
+ }), dt = /* @__PURE__ */ k(Z, [["__scopeId", "data-v-da2bb174"]]);
127
+ export {
128
+ dt as default
129
+ };
@@ -0,0 +1,91 @@
1
+ import { useUserStore as n, clearEmpty as s, request as a } from "jmash-core";
2
+ class l {
3
+ /**
4
+ * 将指定租户的扩展令牌存储到会话存储中
5
+ * @param tenant 租户标识符,用于构造存储键名
6
+ * @param tokenExt 要存储的扩展令牌字符串
7
+ */
8
+ setTokenExt(t, e) {
9
+ sessionStorage.setItem(`TokenExt:${t}`, e);
10
+ }
11
+ /**
12
+ * 获取指定租户的扩展令牌
13
+ *
14
+ * 从sessionStorage中读取对应租户的TokenExt值,若不存在则返回空字符串
15
+ *
16
+ * @param tenant - 租户标识符,用于构造存储键名
17
+ * @returns 存储的TokenExt字符串值,不存在时返回空字符串
18
+ */
19
+ getTokenExt(t) {
20
+ return sessionStorage.getItem(`TokenExt:${t}`) ?? "";
21
+ }
22
+ setCurrentRole(t, e) {
23
+ sessionStorage.setItem(`CurrentRole:${t}`, JSON.stringify(e));
24
+ }
25
+ getCurrentRole(t) {
26
+ return JSON.parse(sessionStorage.getItem(`CurrentRole:${t}`) ?? "{}");
27
+ }
28
+ }
29
+ const o = new l();
30
+ class m {
31
+ getKey(t) {
32
+ }
33
+ // 首页交易数据汇总
34
+ homePageAmount(t) {
35
+ const e = n().user.tenant;
36
+ return t.tokenExt = o.getTokenExt(n().user.tenant), s(t), a({
37
+ url: "/v1/settle/analysis/board/" + e,
38
+ method: "get",
39
+ params: t
40
+ });
41
+ }
42
+ // 首页交易金额排名
43
+ orderAmount(t) {
44
+ const e = n().user.tenant;
45
+ return t.tokenExt = o.getTokenExt(n().user.tenant), s(t), a({
46
+ url: "/v1/settle/analysis/merchant/list/" + e,
47
+ method: "get",
48
+ params: t
49
+ });
50
+ }
51
+ // 首页汇总支付方式
52
+ payModel(t) {
53
+ const e = n().user.tenant;
54
+ return t.tokenExt = o.getTokenExt(n().user.tenant), s(t), a({
55
+ url: "/v1/settle/analysis/pay_mode/list/" + e,
56
+ method: "get",
57
+ params: t
58
+ });
59
+ }
60
+ // 首页金额趋势
61
+ amountTrend(t) {
62
+ const e = n().user.tenant;
63
+ return t.tokenExt = o.getTokenExt(n().user.tenant), s(t), a({
64
+ url: "/v1/settle/analysis/time/list/" + e,
65
+ method: "get",
66
+ params: t
67
+ });
68
+ }
69
+ // 销售人员交易金额
70
+ salesAmount(t) {
71
+ const e = n().user.tenant;
72
+ return t.tokenExt = o.getTokenExt(n().user.tenant), s(t), a({
73
+ url: "/v1/settle/analysis/market_by/list/" + e,
74
+ method: "get",
75
+ params: t
76
+ });
77
+ }
78
+ // 新增商户排名
79
+ newMerchant(t) {
80
+ const e = n().user.tenant;
81
+ return t.tokenExt = o.getTokenExt(n().user.tenant), s(t), a({
82
+ url: "/v1/merchant/agent/total/" + e,
83
+ method: "get",
84
+ params: t
85
+ });
86
+ }
87
+ }
88
+ const u = new m();
89
+ export {
90
+ u as s
91
+ };
@@ -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-DzyW9ohx.mjs";
3
- import { _ as b } from "./today.vue_vue_type_script_setup_true_lang-D2JX696c.mjs";
2
+ import { _ as f } from "./history.vue_vue_type_script_setup_true_lang-CgrLgBqg.mjs";
3
+ import { _ as b } from "./today.vue_vue_type_script_setup_true_lang-BPQu6Gke.mjs";
4
4
  const v = { class: "app-container" }, h = { class: "search-container" }, w = /* @__PURE__ */ r({
5
5
  __name: "index",
6
6
  setup(C) {
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as A, getCurrentInstance as T, ref as p, onMounted as P, resolveComponent as u, resolveDirective as V, createElementBlock as k, openBlock as D, createElementVNode as e, createVNode as s, withCtx as n, toDisplayString as d, createTextVNode as _, withDirectives as E, createBlock as S } from "vue";
2
2
  import { useRouter as b } from "vue-router";
3
3
  import { s as B } from "./index-eUhFgNKx.mjs";
4
- import { C as N } from "./constant-CtDv38CM.mjs";
5
- import R from "./pay-BK10dbR-.mjs";
6
- import I from "./payPal-C5Hhq3pQ.mjs";
4
+ import { C as N } from "./index-yz18Lhpm.mjs";
5
+ import R from "./pay-CvwrYB4j.mjs";
6
+ import I from "./payPal-3RoPmLkF.mjs";
7
7
  import q from "./trend-BrSUujKu.mjs";
8
8
  import { _ as F } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
9
9
  const O = { class: "app" }, Q = { class: "app-title" }, U = { class: "title" }, $ = { class: "tatals" }, j = { class: "tatal" }, z = { class: "text" }, G = { class: "tatal" }, H = { class: "text" }, J = { class: "tatal" }, K = { class: "text" }, L = { class: "tatal" }, W = { class: "text" }, X = { class: "app-title" }, Z = { class: "app-title-time" }, tt = { class: "chart-header" }, et = /* @__PURE__ */ A({