xyvcard-settle 0.0.24 → 0.0.25

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 (66) 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-C7K8v7BO.mjs +2702 -0
  11. package/dist/{index-B1h4IWy4.mjs → index-CNAVEXHD.mjs} +2 -2
  12. package/dist/{index-D0mKdcOp.mjs → index-Cg3fVoEi.mjs} +2 -2
  13. package/dist/index-CpuvJ4Tw.mjs +110 -0
  14. package/dist/index-CwhZGNVj.mjs +131 -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 +3 -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/lang/settle/zh-cn.d.ts +2 -0
  50. package/dts/src/router/index.d.ts +4 -0
  51. package/dts/src/utils/tokenExt.d.ts +21 -0
  52. package/dts/src/views/payment/agentHomePage/index.vue.d.ts +2 -0
  53. package/dts/src/views/payment/agentHomePage/merchant.vue.d.ts +2 -0
  54. package/dts/src/views/payment/agentHomePage/pay.vue.d.ts +2 -0
  55. package/dts/src/views/payment/agentHomePage/payPal.vue.d.ts +2 -0
  56. package/dts/src/views/payment/agentHomePage/sale.vue.d.ts +2 -0
  57. package/dts/src/views/payment/agentHomePage/trend.vue.d.ts +2 -0
  58. package/dts/src/views/payment/instHomePage/index.vue.d.ts +2 -0
  59. package/dts/src/views/payment/instHomePage/pay.vue.d.ts +2 -0
  60. package/dts/src/views/payment/instHomePage/payPal.vue.d.ts +2 -0
  61. package/dts/src/views/payment/instHomePage/trend.vue.d.ts +2 -0
  62. package/dts/src/views/payment/instsLogin/index.vue.d.ts +2 -0
  63. package/dts/src/views/payment/merchantHomePage/index.vue.d.ts +2 -0
  64. package/dts/src/views/payment/merchantHomePage/trend.vue.d.ts +2 -0
  65. package/package.json +3 -2
  66. package/dist/index-DXSCg5PP.mjs +0 -102
@@ -0,0 +1,6 @@
1
+ const A = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAV3SURBVEiJ7ZZbiF1XGcd/39rXs2fmpJNJT8bMtGawpaY4jig1Bowa6IukCqUEsUpBFH0oFkWoFywOKl5abxQffLFiRW2HEoRoi1TrQ0WURNLGnNQ2STOZTDvpdGbOZc5tX9b6fJiZOtOeiRVBfPAPC/ba31r///f/9tp8C/6P/zbmXp7eo4pszKvVI2HaveejncaX7z93brqyOfZ6YK4UnJk5El6duI89//y3ygBZ+3M3Xb9n7DdB0ftpHOinJ8YGz/R6P/785csPDmzH8bujd4xsnvfN7sSJTwajo8lBYwbOp2m7sXuoN6BFek8UJHdIUCoZLwAUxQdv1KlUnu0V5S/OzjYfq1RORJ5np2L1Zks7kxfT1H02isz3RaYdgN9PcHJy5Hq/0MdhR9YriqdDW+yTuFImHMaunkcjiwlCXLcGNIwZaO2LzK6jE+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wi73Tw6hF1iBgQgahQ2LlgmougiLUExRJUHB7FVCr86RfPsHvfPkTkWk8JYVwBAVOKEQkBwYbhUOoAYPmn3xqLMA8b44zHk7aWj4RxHcRgCkUMYHWQcbFeY+3Vv6MeSiN1sizDVioYAY1CMAYxkK2/ft/Gz58w2cDFOeWxn4wf+9RWABDm/Q93t7e/7xEx1iAbm0S1USQsYOIaUbGMqOIFDj94jObiBVBh8sA+9FpPyMCaYBTEkrS3Hum1Nh5RPCLiehsbF4DfBgBjxTPzF9emvuqV2fLd7yU+dAR8TlTdRTQxhfcO8Q68x3nPvncdAjf4N97DdWPzjdEVz8yStdv0lpcQ4fSB7duef7Okp04R7dlLCEpyeZF07dKgoUX/fcyqCHptDVQAvVnmeiius40YwRipnhz0vA8ApkbHP54knTtRwZcK2CgAAVEB3A00byRz410wtOXIsxzX6+KEu6dk6yPArwOAla38l6Wg/ygqIconbO4eUPVDSYbhhmSvWxVjftZN0t9Y1f7uaOaFobX4xxOfPxIYfQqhCJ7cmwDNpz2EYgf3q+qblCgK6kGkZ5ElK6pgcGjLoo9NPf7kX27e3Fugc3P2ZKMhAEeBS2blUGrkm2Gt8kEbx4EYGYzQ7Q75di8N49JzhWL9K43XssZR4CRw9OCCysPz7mbuHb9pTj/1WDidjx7rFcJvBDY80L+6RnZ1/WwY1770xVfWfjU//1byYbjlp97CD45XxqrFx7vrq+0r/1z64fufnO/dKsf/8V/FvwAabSN16a54SQAAAABJRU5ErkJggg==";
2
+ export {
3
+ A as _,
4
+ g as a,
5
+ R as b
6
+ };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./today.vue_vue_type_script_setup_true_lang-BBSo18Bt.mjs";
1
+ import { _ as f } from "./today.vue_vue_type_script_setup_true_lang-DsmG2Z4w.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./today.vue_vue_type_script_setup_true_lang-C7uvcmd6.mjs";
1
+ import { _ as f } from "./today.vue_vue_type_script_setup_true_lang-BzhCmlc2.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -3,7 +3,7 @@ import { useI18n as ne } from "vue-i18n";
3
3
  import { useRoute as le } from "vue-router";
4
4
  import { useUserStore as v, clearEmpty as oe, request as re, useTableHooks as se } from "jmash-core";
5
5
  import { channelApi as ue } from "xyvcard-merchant";
6
- import { D as d } from "./index-DXSCg5PP.mjs";
6
+ import { D as d } from "./index-CpuvJ4Tw.mjs";
7
7
  import { tokenExt as de } from "xyvcard-agent";
8
8
  class ie {
9
9
  getKey(i) {
@@ -23,10 +23,10 @@ class ie {
23
23
  }
24
24
  const me = new ie(), ce = { class: "app-container" }, ve = /* @__PURE__ */ G({
25
25
  __name: "today",
26
- setup(z) {
27
- const { t: i } = ne(), A = le().query.tenant;
26
+ setup(N) {
27
+ const { t: i } = ne(), z = le().query.tenant;
28
28
  d.instsBizDict.useValues(), d.merchantBizDict.useValues(), d.agentBizDict.useValues();
29
- const { proxy: N } = X(), C = h([]), T = h(""), o = h({
29
+ const { proxy: A } = X(), C = h([]), T = h(""), o = h({
30
30
  tokenExt: de.getTokenExt(v().user.tenant),
31
31
  channelId: T.value
32
32
  }), $ = h(
@@ -107,7 +107,7 @@ const me = new ie(), ce = { class: "app-container" }, ve = /* @__PURE__ */ G({
107
107
  },
108
108
  // 代理商编号
109
109
  {
110
- label: "settleTradeReceipt.agentCode",
110
+ label: "settleTradeReceipt.agentName",
111
111
  prop: "agentCode",
112
112
  slotName: "agentCode",
113
113
  columnType: "slot",
@@ -287,7 +287,7 @@ const me = new ie(), ce = { class: "app-container" }, ve = /* @__PURE__ */ G({
287
287
  onSortChange: E
288
288
  }, te({
289
289
  transferMoneyDate: a((m) => [
290
- c(p(l(N).$moment.formatDate(
290
+ c(p(l(A).$moment.formatDate(
291
291
  m.data.row.transferMoneyDate,
292
292
  "YYYY-MM-DD HH:mm"
293
293
  )), 1)
@@ -297,7 +297,7 @@ const me = new ie(), ce = { class: "app-container" }, ve = /* @__PURE__ */ G({
297
297
  ]),
298
298
  _: 2
299
299
  }, [
300
- (e = l(A)) != null && e.includes("@") ? {
300
+ (e = l(z)) != null && e.includes("@") ? {
301
301
  name: "agentCode",
302
302
  fn: a((m) => [
303
303
  c(p($.value.agentAlias), 1)
@@ -1,9 +1,9 @@
1
- import { defineComponent as Y, getCurrentInstance as q, ref as y, resolveComponent as s, createElementBlock as R, openBlock as h, createVNode as a, withCtx as l, withKeys as w, unref as o, Fragment as J, renderList as O, createBlock as D, createTextVNode as m, toDisplayString as p, createCommentVNode as G, isRef as S } from "vue";
1
+ import { defineComponent as Y, getCurrentInstance as q, ref as y, resolveComponent as s, createElementBlock as w, openBlock as h, createVNode as a, withCtx as l, withKeys as C, unref as o, Fragment as J, renderList as O, createBlock as D, createTextVNode as m, toDisplayString as p, createCommentVNode as G, isRef as S } from "vue";
2
2
  import { useI18n as W } from "vue-i18n";
3
3
  import { useUserStore as v, clearEmpty as X, request as Z, useTableHooks as ee } from "jmash-core";
4
4
  import { tokenExt as te } from "xyvcard-agent";
5
5
  import { channelApi as le } from "xyvcard-merchant";
6
- import { D as c } from "./index-DXSCg5PP.mjs";
6
+ import { D as c } from "./index-CpuvJ4Tw.mjs";
7
7
  class ae {
8
8
  getKey(d) {
9
9
  return {
@@ -112,7 +112,7 @@ const ne = new ae(), oe = { class: "app-container" }, pe = /* @__PURE__ */ Y({
112
112
  },
113
113
  // 代理商编号
114
114
  {
115
- label: "settleTradeReceipt.agentCode",
115
+ label: "settleTradeReceipt.agentName",
116
116
  prop: "agentCode",
117
117
  slotName: "agentCode",
118
118
  columnType: "slot",
@@ -142,8 +142,8 @@ const ne = new ae(), oe = { class: "app-container" }, pe = /* @__PURE__ */ Y({
142
142
  u.handleQuery(), u.getList();
143
143
  }
144
144
  return (n, t) => {
145
- const x = s("jmash-select"), _ = s("el-form-item"), b = s("el-col"), L = s("el-option"), P = s("el-select"), T = s("el-button"), C = s("el-row"), E = s("el-form"), Q = s("jmash-column-select"), F = s("jmash-table"), H = s("jmash-pagination"), K = s("el-card");
146
- return h(), R("div", oe, [
145
+ const x = s("jmash-select"), _ = s("el-form-item"), b = s("el-col"), L = s("el-option"), P = s("el-select"), T = s("el-button"), R = s("el-row"), E = s("el-form"), Q = s("jmash-column-select"), F = s("jmash-table"), H = s("jmash-pagination"), K = s("el-card");
146
+ return h(), w("div", oe, [
147
147
  a(E, {
148
148
  ref_key: "queryFormRef",
149
149
  ref: N,
@@ -151,7 +151,7 @@ const ne = new ae(), oe = { class: "app-container" }, pe = /* @__PURE__ */ Y({
151
151
  inline: !0
152
152
  }, {
153
153
  default: l(() => [
154
- a(C, null, {
154
+ a(R, null, {
155
155
  default: l(() => [
156
156
  a(b, { span: 6 }, {
157
157
  default: l(() => [
@@ -165,7 +165,7 @@ const ne = new ae(), oe = { class: "app-container" }, pe = /* @__PURE__ */ Y({
165
165
  "onUpdate:modelValue": t[0] || (t[0] = (e) => r.value.merchantId = e),
166
166
  placeholder: n.$t("payTrade.merchantIdRead"),
167
167
  data: o(c).merchantBizDict.values,
168
- onKeyup: t[1] || (t[1] = w((e) => o(u).handleQuery(), ["enter"])),
168
+ onKeyup: t[1] || (t[1] = C((e) => o(u).handleQuery(), ["enter"])),
169
169
  class: "!w-[203px]",
170
170
  filterable: "",
171
171
  clearable: ""
@@ -187,13 +187,13 @@ const ne = new ae(), oe = { class: "app-container" }, pe = /* @__PURE__ */ Y({
187
187
  modelValue: r.value.channelId,
188
188
  "onUpdate:modelValue": t[2] || (t[2] = (e) => r.value.channelId = e),
189
189
  placeholder: n.$t("settleTradeAnalysis.channelIdRead"),
190
- onKeyup: t[3] || (t[3] = w((e) => o(u).handleQuery(), ["enter"])),
190
+ onKeyup: t[3] || (t[3] = C((e) => o(u).handleQuery(), ["enter"])),
191
191
  class: "!w-[203px]",
192
192
  filterable: "",
193
193
  clearable: ""
194
194
  }, {
195
195
  default: l(() => [
196
- (h(!0), R(J, null, O(I.value, (e) => (h(), D(L, {
196
+ (h(!0), w(J, null, O(I.value, (e) => (h(), D(L, {
197
197
  key: e.channelId,
198
198
  label: o(c).instsBizDict.getValue(e.instsId) || e.instsId,
199
199
  value: e.channelId
@@ -245,7 +245,7 @@ const ne = new ae(), oe = { class: "app-container" }, pe = /* @__PURE__ */ Y({
245
245
  class: "table-container"
246
246
  }, {
247
247
  header: l(() => [
248
- a(C, null, {
248
+ a(R, null, {
249
249
  default: l(() => [
250
250
  a(b, {
251
251
  span: 24,
@@ -0,0 +1,31 @@
1
+ class s {
2
+ /**
3
+ * 将指定租户的扩展令牌存储到会话存储中
4
+ * @param tenant 租户标识符,用于构造存储键名
5
+ * @param tokenExt 要存储的扩展令牌字符串
6
+ */
7
+ setTokenExt(e, t) {
8
+ sessionStorage.setItem(`TokenExt:${e}`, t);
9
+ }
10
+ /**
11
+ * 获取指定租户的扩展令牌
12
+ *
13
+ * 从sessionStorage中读取对应租户的TokenExt值,若不存在则返回空字符串
14
+ *
15
+ * @param tenant - 租户标识符,用于构造存储键名
16
+ * @returns 存储的TokenExt字符串值,不存在时返回空字符串
17
+ */
18
+ getTokenExt(e) {
19
+ return sessionStorage.getItem(`TokenExt:${e}`) ?? "";
20
+ }
21
+ setCurrentRole(e, t) {
22
+ sessionStorage.setItem(`CurrentRole:${e}`, JSON.stringify(t));
23
+ }
24
+ getCurrentRole(e) {
25
+ return JSON.parse(sessionStorage.getItem(`CurrentRole:${e}`) ?? "{}");
26
+ }
27
+ }
28
+ const n = new s();
29
+ export {
30
+ n as t
31
+ };
@@ -0,0 +1,200 @@
1
+ import { defineComponent as _, getCurrentInstance as w, ref as g, onMounted as M, createElementBlock as k, openBlock as S, createElementVNode as C, nextTick as x } from "vue";
2
+ import { i as L, L as T } from "./index--_Po9Tig.mjs";
3
+ import { useUserStore as m, clearEmpty as h, request as y } from "jmash-core";
4
+ import { tokenExt as b } from "xyvcard-agent";
5
+ import { _ as Y } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
6
+ class E {
7
+ getKey(e) {
8
+ }
9
+ // 首页金额趋势
10
+ amountTrend(e) {
11
+ const r = m().user.tenant;
12
+ return e.tokenExt = b.getTokenExt(m().user.tenant), h(e), y({
13
+ url: "/v1/settle/analysis/time/list/" + r,
14
+ method: "get",
15
+ params: e
16
+ });
17
+ }
18
+ // 首页交易汇总数据看板
19
+ homePageAmount(e) {
20
+ const r = m().user.tenant;
21
+ return e.tokenExt = b.getTokenExt(m().user.tenant), h(e), y({
22
+ url: "/v1/settle/analysis/board/" + r,
23
+ method: "get",
24
+ params: e
25
+ });
26
+ }
27
+ }
28
+ const A = new E(), $ = { class: "chart-container" }, z = /* @__PURE__ */ _({
29
+ __name: "trend",
30
+ setup(D) {
31
+ const { proxy: e } = w(), r = g(null);
32
+ let l = null;
33
+ const i = g({
34
+ dates: [],
35
+ amounts: [],
36
+ counts: []
37
+ }), p = () => {
38
+ const a = [];
39
+ for (let t = 6; t >= 0; t--) {
40
+ const n = /* @__PURE__ */ new Date();
41
+ n.setDate(n.getDate() - t), a.push(e.$moment.formatDate(n, "YYYY-MM-DD"));
42
+ }
43
+ return a;
44
+ }, u = () => {
45
+ if (!r.value) return;
46
+ l = L(r.value);
47
+ const a = {
48
+ backgroundColor: "#fff",
49
+ tooltip: {
50
+ trigger: "axis",
51
+ formatter: (t) => {
52
+ const n = t[0].axisValue, s = t[0].data, d = i.value.dates.indexOf(n), c = d !== -1 ? i.value.counts[d] : 0;
53
+ return `
54
+ <div style="font-weight:bold;margin-bottom:5px">${n}</div>
55
+ <div style="display:flex;align-items:center;margin:3px 0">
56
+ <span style="display:inline-block;width:10px;height:10px;background-color:#ff4d4f;border-radius:50%;margin-right:5px"></span>
57
+ 交易金额: <span style="font-weight:bold;margin-left:5px">${s.toFixed(2)}</span>元
58
+ </div>
59
+ <div style="display:flex;align-items:center;margin:3px 0">
60
+ <span style="display:inline-block;width:10px;height:10px;background-color:#1890ff;border-radius:50%;margin-right:5px"></span>
61
+ 交易笔数: <span style="font-weight:bold;margin-left:5px">${c}</span>笔
62
+ </div>
63
+ `;
64
+ },
65
+ backgroundColor: "rgba(255,255,255,0.9)",
66
+ borderColor: "#ddd",
67
+ borderWidth: 1,
68
+ textStyle: {
69
+ color: "#333"
70
+ }
71
+ },
72
+ legend: {
73
+ show: !1
74
+ },
75
+ grid: {
76
+ left: "50px",
77
+ right: "50px",
78
+ top: "40px",
79
+ bottom: "30px",
80
+ containLabel: !0
81
+ },
82
+ xAxis: {
83
+ type: "category",
84
+ data: i.value.dates,
85
+ axisLine: {
86
+ lineStyle: {
87
+ color: "#999"
88
+ }
89
+ },
90
+ axisLabel: {
91
+ color: "#666",
92
+ interval: 0,
93
+ formatter: (t) => t.slice(5)
94
+ }
95
+ },
96
+ yAxis: {
97
+ type: "value",
98
+ min: 0,
99
+ // 强制从0开始
100
+ name: "金额(元)",
101
+ axisLine: {
102
+ show: !0,
103
+ lineStyle: {
104
+ color: "#999"
105
+ }
106
+ },
107
+ axisLabel: {
108
+ color: "#666",
109
+ formatter: (t) => t >= 1e4 ? (t / 1e4).toFixed(1) + "万" : t.toFixed(0)
110
+ },
111
+ splitLine: {
112
+ lineStyle: {
113
+ color: "#f0f0f0"
114
+ }
115
+ }
116
+ },
117
+ series: [
118
+ {
119
+ name: "交易金额",
120
+ type: "line",
121
+ smooth: !0,
122
+ data: i.value.amounts,
123
+ symbol: "circle",
124
+ symbolSize: 8,
125
+ itemStyle: {
126
+ color: "#ff4d4f",
127
+ borderColor: "#fff",
128
+ borderWidth: 2
129
+ },
130
+ lineStyle: {
131
+ width: 3,
132
+ color: "#ff4d4f"
133
+ },
134
+ areaStyle: {
135
+ color: new T(0, 0, 0, 1, [
136
+ {
137
+ offset: 0,
138
+ color: "rgba(255, 77, 79, 0.3)"
139
+ },
140
+ {
141
+ offset: 1,
142
+ color: "rgba(255, 77, 79, 0.1)"
143
+ }
144
+ ])
145
+ }
146
+ }
147
+ ]
148
+ };
149
+ l.setOption(a);
150
+ }, v = async () => {
151
+ try {
152
+ const a = /* @__PURE__ */ new Date(), t = /* @__PURE__ */ new Date();
153
+ t.setDate(a.getDate() - 6);
154
+ const n = await A.amountTrend({
155
+ analysisTimeStart: e.$moment.formatDate(t, "YYYY-MM-DD"),
156
+ analysisTimeEnd: e.$moment.formatDate(a, "YYYY-MM-DD")
157
+ }), s = p(), d = new Map(s.map((o) => [o, 0])), c = new Map(s.map((o) => [o, 0]));
158
+ n.data.results.forEach((o) => {
159
+ const f = o.analysisTime.split("T")[0];
160
+ d.set(f, parseFloat(o.orderAmount)), c.set(f, o.orderCount);
161
+ }), i.value = {
162
+ dates: s,
163
+ amounts: s.map((o) => d.get(o) || 0),
164
+ counts: s.map((o) => c.get(o) || 0)
165
+ }, x(() => {
166
+ u();
167
+ });
168
+ } catch (a) {
169
+ console.error("获取折线图数据失败:", a);
170
+ const t = p();
171
+ i.value = {
172
+ dates: t,
173
+ amounts: t.map(() => Math.round(Math.random() * 15e3)),
174
+ counts: t.map(() => Math.round(Math.random() * 20))
175
+ }, x(() => {
176
+ u();
177
+ });
178
+ }
179
+ };
180
+ return M(() => {
181
+ v(), window.addEventListener("resize", () => {
182
+ l == null || l.resize();
183
+ });
184
+ }), (a, t) => (S(), k("div", $, [
185
+ C("div", {
186
+ ref_key: "lineChart",
187
+ ref: r,
188
+ style: { width: "100%", height: "300px" }
189
+ }, null, 512)
190
+ ]));
191
+ }
192
+ }), F = /* @__PURE__ */ Y(z, [["__scopeId", "data-v-302aff61"]]), I = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
193
+ __proto__: null,
194
+ default: F
195
+ }, Symbol.toStringTag, { value: "Module" }));
196
+ export {
197
+ F as T,
198
+ A as m,
199
+ I as t
200
+ };
@@ -0,0 +1,171 @@
1
+ import { defineComponent as h, getCurrentInstance as y, ref as u, onMounted as b, createElementBlock as D, openBlock as v, createElementVNode as w, nextTick as x } from "vue";
2
+ import { i as _, L as M } from "./index--_Po9Tig.mjs";
3
+ import { s as C } from "./index-eUhFgNKx.mjs";
4
+ import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
5
+ const Y = { class: "chart-container" }, k = /* @__PURE__ */ h({
6
+ __name: "trend",
7
+ setup(S) {
8
+ const { proxy: d } = y(), c = u(null);
9
+ let s = null;
10
+ const r = u({
11
+ dates: [],
12
+ amounts: [],
13
+ counts: []
14
+ }), p = () => {
15
+ const a = [];
16
+ for (let t = 6; t >= 0; t--) {
17
+ const o = /* @__PURE__ */ new Date();
18
+ o.setDate(o.getDate() - t), a.push(d.$moment.formatDate(o, "YYYY-MM-DD"));
19
+ }
20
+ return a;
21
+ }, m = () => {
22
+ if (!c.value) return;
23
+ s = _(c.value);
24
+ const a = {
25
+ backgroundColor: "#fff",
26
+ tooltip: {
27
+ trigger: "axis",
28
+ formatter: (t) => {
29
+ const o = t[0].axisValue, n = t[0].data, i = r.value.dates.indexOf(o), l = i !== -1 ? r.value.counts[i] : 0;
30
+ return `
31
+ <div style="font-weight:bold;margin-bottom:5px">${o}</div>
32
+ <div style="display:flex;align-items:center;margin:3px 0">
33
+ <span style="display:inline-block;width:10px;height:10px;background-color:#ff4d4f;border-radius:50%;margin-right:5px"></span>
34
+ 交易金额: <span style="font-weight:bold;margin-left:5px">${n.toFixed(2)}</span>元
35
+ </div>
36
+ <div style="display:flex;align-items:center;margin:3px 0">
37
+ <span style="display:inline-block;width:10px;height:10px;background-color:#1890ff;border-radius:50%;margin-right:5px"></span>
38
+ 交易笔数: <span style="font-weight:bold;margin-left:5px">${l}</span>笔
39
+ </div>
40
+ `;
41
+ },
42
+ backgroundColor: "rgba(255,255,255,0.9)",
43
+ borderColor: "#ddd",
44
+ borderWidth: 1,
45
+ textStyle: {
46
+ color: "#333"
47
+ }
48
+ },
49
+ legend: {
50
+ show: !1
51
+ },
52
+ grid: {
53
+ left: "50px",
54
+ right: "50px",
55
+ top: "40px",
56
+ bottom: "30px",
57
+ containLabel: !0
58
+ },
59
+ xAxis: {
60
+ type: "category",
61
+ data: r.value.dates,
62
+ axisLine: {
63
+ lineStyle: {
64
+ color: "#999"
65
+ }
66
+ },
67
+ axisLabel: {
68
+ color: "#666",
69
+ interval: 0,
70
+ formatter: (t) => t.slice(5)
71
+ }
72
+ },
73
+ yAxis: {
74
+ type: "value",
75
+ min: 0,
76
+ // 强制从0开始
77
+ name: "金额(元)",
78
+ axisLine: {
79
+ show: !0,
80
+ lineStyle: {
81
+ color: "#999"
82
+ }
83
+ },
84
+ axisLabel: {
85
+ color: "#666",
86
+ formatter: (t) => t >= 1e4 ? (t / 1e4).toFixed(1) + "万" : t.toFixed(0)
87
+ },
88
+ splitLine: {
89
+ lineStyle: {
90
+ color: "#f0f0f0"
91
+ }
92
+ }
93
+ },
94
+ series: [
95
+ {
96
+ name: "交易金额",
97
+ type: "line",
98
+ smooth: !0,
99
+ data: r.value.amounts,
100
+ symbol: "circle",
101
+ symbolSize: 8,
102
+ itemStyle: {
103
+ color: "#ff4d4f",
104
+ borderColor: "#fff",
105
+ borderWidth: 2
106
+ },
107
+ lineStyle: {
108
+ width: 3,
109
+ color: "#ff4d4f"
110
+ },
111
+ areaStyle: {
112
+ color: new M(0, 0, 0, 1, [
113
+ {
114
+ offset: 0,
115
+ color: "rgba(255, 77, 79, 0.3)"
116
+ },
117
+ {
118
+ offset: 1,
119
+ color: "rgba(255, 77, 79, 0.1)"
120
+ }
121
+ ])
122
+ }
123
+ }
124
+ ]
125
+ };
126
+ s.setOption(a);
127
+ }, g = async () => {
128
+ try {
129
+ const a = /* @__PURE__ */ new Date(), t = /* @__PURE__ */ new Date();
130
+ t.setDate(a.getDate() - 6);
131
+ const o = await C.amountTrend({
132
+ analysisTimeStart: d.$moment.formatDate(t, "YYYY-MM-DD"),
133
+ analysisTimeEnd: d.$moment.formatDate(a, "YYYY-MM-DD")
134
+ }), n = p(), i = new Map(n.map((e) => [e, 0])), l = new Map(n.map((e) => [e, 0]));
135
+ o.data.results.forEach((e) => {
136
+ const f = e.analysisTime.split("T")[0];
137
+ i.set(f, parseFloat(e.orderAmount)), l.set(f, e.orderCount);
138
+ }), r.value = {
139
+ dates: n,
140
+ amounts: n.map((e) => i.get(e) || 0),
141
+ counts: n.map((e) => l.get(e) || 0)
142
+ }, x(() => {
143
+ m();
144
+ });
145
+ } catch {
146
+ const t = p();
147
+ r.value = {
148
+ dates: t,
149
+ amounts: t.map(() => Math.round(Math.random() * 15e3)),
150
+ counts: t.map(() => Math.round(Math.random() * 20))
151
+ }, x(() => {
152
+ m();
153
+ });
154
+ }
155
+ };
156
+ return b(() => {
157
+ g(), window.addEventListener("resize", () => {
158
+ s == null || s.resize();
159
+ });
160
+ }), (a, t) => (v(), D("div", Y, [
161
+ w("div", {
162
+ ref_key: "lineChart",
163
+ ref: c,
164
+ style: { width: "100%", height: "300px" }
165
+ }, null, 512)
166
+ ]));
167
+ }
168
+ }), F = /* @__PURE__ */ L(k, [["__scopeId", "data-v-c7cfdda7"]]);
169
+ export {
170
+ F as default
171
+ };