xyvcard-settle 0.0.28 → 0.0.30

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 (28) hide show
  1. package/dist/{history-CLKzeQgr.mjs → history-BXKJJt23.mjs} +1 -1
  2. package/dist/{history-LA5ydGD3.mjs → history-CyoZ9H0t.mjs} +1 -1
  3. package/dist/{history.vue_vue_type_script_setup_true_lang-DKpNnK16.mjs → history.vue_vue_type_script_setup_true_lang-Che3rhOP.mjs} +25 -25
  4. package/dist/{history.vue_vue_type_script_setup_true_lang-DNAKjj2K.mjs → history.vue_vue_type_script_setup_true_lang-Dm4xWviZ.mjs} +7 -7
  5. package/dist/{index-DQrFDOBc.mjs → index--o4ZWReA.mjs} +5 -5
  6. package/dist/{index-Cq9GZCQ5.mjs → index-76q1nUof.mjs} +1 -1
  7. package/dist/{index-YVLogsg5.mjs → index-B1UFTEsC.mjs} +1 -1
  8. package/dist/{index-CIqcivMU.mjs → index-BM61iHRQ.mjs} +4 -4
  9. package/dist/{index-Dbi92nov.mjs → index-CCNRK-gM.mjs} +12 -12
  10. package/dist/{index-BedZ4YBW.mjs → index-CGM4zfi2.mjs} +2 -2
  11. package/dist/{index-4G9bFkRU.mjs → index-CvjcvAnl.mjs} +18 -18
  12. package/dist/{index-DxgbREbu.mjs → index-DKQWmgM5.mjs} +16 -16
  13. package/dist/{index-BD3X5Rti.mjs → index-Dvvgkcti.mjs} +12 -12
  14. package/dist/{index-ciHpwp7j.mjs → index-h0Y7fyQp.mjs} +2 -2
  15. package/dist/index.mjs +1 -1
  16. package/dist/{merchant-DLx9AYoM.mjs → merchant-DsvLGGd5.mjs} +1 -1
  17. package/dist/{merchant.vue_vue_type_script_setup_true_lang-Bxb9bzqv.mjs → merchant.vue_vue_type_script_setup_true_lang-DE1LaeW5.mjs} +24 -22
  18. package/dist/{pay-C08cbM_l.mjs → pay-Dd7_FYzt.mjs} +9 -9
  19. package/dist/{payPal-nXPX-3pm.mjs → payPal-BEW7zVSJ.mjs} +15 -15
  20. package/dist/{payPal-D2I3WIqV.mjs → payPal-BVXwPotf.mjs} +4 -5
  21. package/dist/style.css +1 -1
  22. package/dist/{today-BQqb8yMf.mjs → today-CMdgJzD1.mjs} +1 -1
  23. package/dist/{today-B95MJ59w.mjs → today-DOoqfysH.mjs} +1 -1
  24. package/dist/{today.vue_vue_type_script_setup_true_lang-ChWYCSDh.mjs → today.vue_vue_type_script_setup_true_lang-CqrGSzNw.mjs} +11 -11
  25. package/dist/{today.vue_vue_type_script_setup_true_lang-C0qp5E2L.mjs → today.vue_vue_type_script_setup_true_lang-JHDDBxqL.mjs} +1 -1
  26. package/dist/{trend-pbYAF-aS.mjs → trend-DMpZSOlJ.mjs} +2 -2
  27. package/dist/{trend-BOA_Pwtn.mjs → trend-iT9IXU1F.mjs} +2 -2
  28. package/package.json +1 -1
@@ -1,14 +1,14 @@
1
- import { defineComponent as A, ref as _, resolveComponent as c, createElementBlock as h, openBlock as y, createElementVNode as t, createVNode as l, withCtx as r, toDisplayString as s, createTextVNode as C } from "vue";
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
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-DQrFDOBc.mjs";
3
+ import { T as D, m as p } from "./trend-iT9IXU1F.mjs";
4
+ import { h as x } from "./index--o4ZWReA.mjs";
5
5
  import { t as T } from "./tokenExt-SHK5rrb5.mjs";
6
6
  import { useUserStore as Y } from "jmash-core";
7
7
  import { _ as H } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
8
- const M = { class: "app" }, b = { 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({
8
+ const M = { class: "app" }, k = { class: "app-title" }, E = { class: "row-container" }, N = { class: "tatals" }, b = { 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
9
  __name: "index",
10
10
  setup(X) {
11
- const i = g(), m = x().format("YYYY-MM-DD"), u = x().subtract(1, "days").format("YYYY-MM-DD"), a = _({}), n = _({});
11
+ const i = g(), m = x().format("YYYY-MM-DD"), u = x().subtract(1, "days").format("YYYY-MM-DD"), a = c({}), n = c({});
12
12
  (async () => {
13
13
  try {
14
14
  p.homePageAmount({
@@ -33,10 +33,10 @@ const M = { class: "app" }, b = { class: "app-title" }, k = { class: "row-contai
33
33
  };
34
34
  });
35
35
  } catch (o) {
36
- console.error("获取数据失败:", o);
36
+ console.error("暂无数据", o);
37
37
  }
38
38
  })();
39
- const v = () => {
39
+ const f = () => {
40
40
  const o = T.getCurrentRole(Y().user.tenant);
41
41
  ["MCHT_CHAIN_HEAD", "MCHT_CHAIN_BRANCH"].includes(o.storeType) ? i.push({
42
42
  path: "/payment/pay-trade"
@@ -45,16 +45,16 @@ const M = { class: "app" }, b = { class: "app-title" }, k = { class: "row-contai
45
45
  });
46
46
  };
47
47
  return (o, e) => {
48
- const d = c("el-card"), f = c("el-button");
48
+ const d = _("el-card"), v = _("el-button");
49
49
  return y(), h("div", null, [
50
50
  t("div", M, [
51
- t("div", b, [
52
- t("div", k, [
51
+ t("div", k, [
52
+ t("div", E, [
53
53
  l(d, { class: "card-never" }, {
54
54
  default: r(() => [
55
55
  e[4] || (e[4] = t("span", { style: { "margin-right": "25%", "font-weight": "bold" } }, "交易数据看板(昨日)", -1)),
56
- t("div", E, [
57
- t("div", N, [
56
+ t("div", N, [
57
+ t("div", b, [
58
58
  t("text", w, s(a.value.orderCount || 0), 1),
59
59
  e[0] || (e[0] = t("text", null, "交易笔数", -1))
60
60
  ]),
@@ -68,7 +68,7 @@ const M = { class: "app" }, b = { class: "app-title" }, k = { class: "row-contai
68
68
  ]),
69
69
  t("div", I, [
70
70
  t("text", P, s(a.value.settleAmount || "暂无结算"), 1),
71
- e[3] || (e[3] = t("text", null, " 结账金额", -1))
71
+ e[3] || (e[3] = t("text", null, " 结算金额", -1))
72
72
  ])
73
73
  ])
74
74
  ]),
@@ -106,10 +106,10 @@ const M = { class: "app" }, b = { class: "app-title" }, k = { class: "row-contai
106
106
  default: r(() => [
107
107
  t("div", Q, [
108
108
  e[11] || (e[11] = t("span", { class: "chart-title" }, " 交易金额趋势   ", -1)),
109
- l(f, {
109
+ l(v, {
110
110
  type: "primary",
111
111
  link: "",
112
- onClick: v
112
+ onClick: f
113
113
  }, {
114
114
  default: r(() => e[10] || (e[10] = [
115
115
  C(" 查看更多 ")
@@ -125,7 +125,7 @@ const M = { class: "app" }, b = { class: "app-title" }, k = { class: "row-contai
125
125
  ]);
126
126
  };
127
127
  }
128
- }), lt = /* @__PURE__ */ H(W, [["__scopeId", "data-v-93732abd"]]);
128
+ }), lt = /* @__PURE__ */ H(W, [["__scopeId", "data-v-cff3a844"]]);
129
129
  export {
130
130
  lt as default
131
131
  };
@@ -21,7 +21,7 @@ class be {
21
21
  });
22
22
  }
23
23
  }
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" }, _e = ["onClick"], Se = /* @__PURE__ */ oe({
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__ */ oe({
25
25
  __name: "index",
26
26
  setup(j) {
27
27
  const { t: T } = pe();
@@ -34,7 +34,7 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
34
34
  queryFormRef: F,
35
35
  listLoading: O,
36
36
  tableData: L,
37
- total: _
37
+ total: k
38
38
  } = ce(T, Te, s);
39
39
  let A = m.totalRecord;
40
40
  const C = w([]);
@@ -173,7 +173,7 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
173
173
  m.handleSort(a.prop, a.order);
174
174
  }
175
175
  return m.getList(), (a, e) => {
176
- const k = p("jmash-select"), c = p("el-form-item"), d = p("el-col"), B = p("el-input"), V = p("el-row"), X = p("el-tree-select"), Z = p("el-date-picker"), I = p("el-button"), x = p("el-form"), ee = p("jmash-column-select"), te = p("jmash-table"), le = p("jmash-pagination"), ae = p("el-card"), ne = re("hasPerm");
176
+ const _ = p("jmash-select"), c = p("el-form-item"), d = p("el-col"), B = p("el-input"), V = p("el-row"), X = p("el-tree-select"), Z = p("el-date-picker"), I = p("el-button"), x = p("el-form"), ee = p("jmash-column-select"), te = p("jmash-table"), le = p("jmash-pagination"), ae = p("el-card"), ne = re("hasPerm");
177
177
  return v(), E("div", ve, [
178
178
  b("div", ge, [
179
179
  l(x, {
@@ -192,7 +192,7 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
192
192
  prop: "version"
193
193
  }, {
194
194
  default: t(() => [
195
- l(k, {
195
+ l(_, {
196
196
  modelValue: s.value.merchantId,
197
197
  "onUpdate:modelValue": e[0] || (e[0] = (o) => s.value.merchantId = o),
198
198
  placeholder: a.$t("payTrade.merchantIdRead"),
@@ -215,7 +215,7 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
215
215
  prop: "payMode"
216
216
  }, {
217
217
  default: t(() => [
218
- l(k, {
218
+ l(_, {
219
219
  modelValue: s.value.payMode,
220
220
  "onUpdate:modelValue": e[2] || (e[2] = (o) => s.value.payMode = o),
221
221
  placeholder: a.$t("settleTradeAnalysis.payModeRead"),
@@ -311,7 +311,7 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
311
311
  prop: "tradeType"
312
312
  }, {
313
313
  default: t(() => [
314
- l(k, {
314
+ l(_, {
315
315
  modelValue: s.value.tradeType,
316
316
  "onUpdate:modelValue": e[9] || (e[9] = (y) => s.value.tradeType = y),
317
317
  placeholder: a.$t("settleTradeAnalysis.tradeTypeRead"),
@@ -334,7 +334,7 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
334
334
  prop: "channelId"
335
335
  }, {
336
336
  default: t(() => [
337
- l(k, {
337
+ l(_, {
338
338
  modelValue: s.value.channelId,
339
339
  "onUpdate:modelValue": e[11] || (e[11] = (y) => s.value.channelId = y),
340
340
  placeholder: a.$t("settleTradeAnalysis.channelIdRead"),
@@ -477,10 +477,10 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
477
477
  })
478
478
  ]),
479
479
  footer: t(() => [
480
- n(_) > 0 ? (v(), D(le, {
480
+ n(k) > 0 ? (v(), D(le, {
481
481
  key: 0,
482
- total: n(_),
483
- "onUpdate:total": e[19] || (e[19] = (o) => U(_) ? _.value = o : null),
482
+ total: n(k),
483
+ "onUpdate:total": e[19] || (e[19] = (o) => U(k) ? k.value = o : null),
484
484
  "current-page": s.value.curPage,
485
485
  "onUpdate:currentPage": e[20] || (e[20] = (o) => s.value.curPage = o),
486
486
  "page-size": s.value.pageSize,
@@ -564,7 +564,7 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
564
564
  onClick: (y) => W(u.data.row)
565
565
  }, [
566
566
  r(i(a.$t("settleTradeAnalysis.view")), 1)
567
- ], 8, _e)), [
567
+ ], 8, ke)), [
568
568
  [ne, ["settle:settle_trade_analysis:view"]]
569
569
  ])
570
570
  ]),
@@ -573,7 +573,7 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
573
573
  (o = n($)) != null && o.includes("@") ? {
574
574
  name: "agentCode",
575
575
  fn: t((u) => [
576
- r(i(K.value._rawValue.agentAlias), 1)
576
+ r(i(K.value.agentAlias), 1)
577
577
  ]),
578
578
  key: "1"
579
579
  } : {
@@ -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-DNAKjj2K.mjs";
3
- import { _ as b } from "./today.vue_vue_type_script_setup_true_lang-ChWYCSDh.mjs";
2
+ import { _ as f } from "./history.vue_vue_type_script_setup_true_lang-Che3rhOP.mjs";
3
+ import { _ as b } from "./today.vue_vue_type_script_setup_true_lang-JHDDBxqL.mjs";
4
4
  const v = { class: "app-container" }, h = { class: "search-container" }, w = /* @__PURE__ */ r({
5
5
  __name: "index",
6
6
  setup(C) {
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import "jmash-core";
2
- import { a as o, s as t, m as i, p as s, b as g } from "./index-DQrFDOBc.mjs";
2
+ import { a as o, s as t, m as i, p as s, b as g } from "./index--o4ZWReA.mjs";
3
3
  export {
4
4
  o as agentHomePage,
5
5
  t as default,
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./merchant.vue_vue_type_script_setup_true_lang-Bxb9bzqv.mjs";
1
+ import { _ as f } from "./merchant.vue_vue_type_script_setup_true_lang-DE1LaeW5.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,35 +1,37 @@
1
- import { defineComponent as i, ref as u, resolveComponent as c, createBlock as f, openBlock as a, withCtx as t, createVNode as l, createElementBlock as r, toDisplayString as n, createElementVNode as m, createCommentVNode as h, unref as y, createTextVNode as k } from "vue";
2
- import { _ as b, a as N, b as g } from "./three-BE8B3lbG.mjs";
3
- import { rbacApi as B } from "jmash-rbac";
4
- import { s as w } from "./index-zsIaZMNT.mjs";
1
+ import { defineComponent as d, ref as u, resolveComponent as c, createBlock as f, openBlock as a, withCtx as t, createVNode as n, createElementBlock as r, toDisplayString as l, createElementVNode as m, createCommentVNode as h, unref as k, createTextVNode as y } from "vue";
2
+ import { _ as b, a as g, b as N } from "./three-BE8B3lbG.mjs";
3
+ import { rbacApi as x } from "jmash-rbac";
4
+ import { tokenExt as B } from "xyvcard-agent";
5
+ import { s as E } from "./index-zsIaZMNT.mjs";
6
+ import { useUserStore as w } from "jmash-core";
5
7
  const C = {
6
8
  key: 0,
7
9
  src: b,
8
10
  alt: "第一名"
9
11
  }, V = {
10
12
  key: 1,
11
- src: N,
13
+ src: g,
12
14
  alt: "第二名"
13
15
  }, v = {
14
16
  key: 2,
15
- src: g,
17
+ src: N,
16
18
  alt: "第三名"
17
- }, M = { key: 3 }, x = { key: 0 }, T = /* @__PURE__ */ i({
19
+ }, M = { key: 3 }, A = { key: 0 }, z = /* @__PURE__ */ d({
18
20
  __name: "merchant",
19
- setup(A) {
20
- const _ = u([]);
21
- return w.newMerchant({}).then((p) => {
22
- _.value = p.data.agentMerchantNumModel;
23
- }), (p, o) => {
24
- const s = c("el-table-column"), d = c("el-table");
25
- return a(), f(d, {
21
+ setup(D) {
22
+ const p = u([]);
23
+ return E.newMerchant({ tokenExt: B.getTokenExt(w().user.tenant) }).then((_) => {
24
+ p.value = _.data.agentMerchantNumModel;
25
+ }), (_, o) => {
26
+ const s = c("el-table-column"), i = c("el-table");
27
+ return a(), f(i, {
26
28
  style: { width: "100%" },
27
29
  "show-header": !0,
28
30
  "empty-text": "暂无数据",
29
- data: _.value
31
+ data: p.value
30
32
  }, {
31
33
  default: t(() => [
32
- l(s, {
34
+ n(s, {
33
35
  label: "排名",
34
36
  width: "100"
35
37
  }, {
@@ -37,11 +39,11 @@ const C = {
37
39
  m("span", { style: { color: "#f5782d" } }, "排名", -1)
38
40
  ])),
39
41
  default: t(({ $index: e }) => [
40
- e === 0 ? (a(), r("img", C)) : e === 1 ? (a(), r("img", V)) : e === 2 ? (a(), r("img", v)) : (a(), r("span", M, n(e + 1), 1))
42
+ e === 0 ? (a(), r("img", C)) : e === 1 ? (a(), r("img", V)) : e === 2 ? (a(), r("img", v)) : (a(), r("span", M, l(e + 1), 1))
41
43
  ]),
42
44
  _: 1
43
45
  }),
44
- l(s, {
46
+ n(s, {
45
47
  prop: "salesName",
46
48
  label: "销售人员"
47
49
  }, {
@@ -49,11 +51,11 @@ const C = {
49
51
  m("span", { style: { color: "#f5782d" } }, "销售人员", -1)
50
52
  ])),
51
53
  default: t(({ row: e }) => [
52
- e.marketBy ? (a(), r("span", x, n(y(B).userInfo(e.marketBy).realName), 1)) : h("", !0)
54
+ e.marketBy ? (a(), r("span", A, l(k(x).userInfo(e.marketBy).realName), 1)) : h("", !0)
53
55
  ]),
54
56
  _: 1
55
57
  }),
56
- l(s, {
58
+ n(s, {
57
59
  prop: "amount",
58
60
  label: "交易金额",
59
61
  align: "right"
@@ -62,7 +64,7 @@ const C = {
62
64
  m("span", { style: { color: "#f5782d" } }, "新增商户", -1)
63
65
  ])),
64
66
  default: t(({ row: e }) => [
65
- k(n(e.merchantNum) + "家", 1)
67
+ y(l(e.merchantNum) + "家", 1)
66
68
  ]),
67
69
  _: 1
68
70
  })
@@ -73,5 +75,5 @@ const C = {
73
75
  }
74
76
  });
75
77
  export {
76
- T as _
78
+ z as _
77
79
  };
@@ -1,16 +1,16 @@
1
- import { defineComponent as f, ref as l, onMounted as d, onUnmounted as v, createElementBlock as h, openBlock as _ } from "vue";
1
+ import { defineComponent as p, ref as l, onMounted as f, onUnmounted as v, createElementBlock as h, openBlock as _ } from "vue";
2
2
  import { s as y } from "./index-zsIaZMNT.mjs";
3
- import { i as b } from "./index--_Po9Tig.mjs";
3
+ import { i as z } from "./index--_Po9Tig.mjs";
4
4
  import { D as i } from "./index-CpuvJ4Tw.mjs";
5
- import { _ as z } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
6
- const w = /* @__PURE__ */ f({
5
+ import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
6
+ const w = /* @__PURE__ */ p({
7
7
  __name: "pay",
8
8
  setup(x) {
9
9
  i.merchantBizDict.useValues();
10
10
  const a = l();
11
11
  let t = null, n = null;
12
12
  const o = l([]), c = () => {
13
- a.value && (t = b(a.value));
13
+ a.value && (t = z(a.value));
14
14
  }, u = () => {
15
15
  if (!t) return;
16
16
  const r = {
@@ -74,16 +74,16 @@ const w = /* @__PURE__ */ f({
74
74
  o.value = r.data.results.filter((e) => e.merchantId && e.orderAmount).map((e) => ({
75
75
  name: i.merchantBizDict.getValue(e.merchantId),
76
76
  value: parseFloat(e.orderAmount)
77
- })).sort((e, p) => p.value - e.value).slice(0, 4), u(), setTimeout(() => {
77
+ })).sort((e, d) => d.value - e.value).slice(0, 4), u(), setTimeout(() => {
78
78
  t && t.resize();
79
79
  }, 0);
80
80
  } catch (r) {
81
- console.error("获取数据失败:", r);
81
+ console.error("暂无数据", r);
82
82
  }
83
83
  }, s = () => {
84
84
  t && t.resize();
85
85
  };
86
- return d(() => {
86
+ return f(() => {
87
87
  c(), m(), window.addEventListener("resize", s), a.value && (n = new ResizeObserver(() => {
88
88
  t && t.resize();
89
89
  }), n.observe(a.value));
@@ -95,7 +95,7 @@ const w = /* @__PURE__ */ f({
95
95
  class: "chart-container"
96
96
  }, null, 512));
97
97
  }
98
- }), C = /* @__PURE__ */ z(w, [["__scopeId", "data-v-be916f57"]]);
98
+ }), C = /* @__PURE__ */ b(w, [["__scopeId", "data-v-efd8add5"]]);
99
99
  export {
100
100
  C as default
101
101
  };
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as c, ref as d, onMounted as m, onBeforeUnmount as v, createElementBlock as y, openBlock as _ } from "vue";
2
2
  import { i as w } from "./index--_Po9Tig.mjs";
3
3
  import { s as g } from "./index-eUhFgNKx.mjs";
4
- import { D as h, C as b } from "./index-CpuvJ4Tw.mjs";
5
- import { _ as z } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
6
- const C = /* @__PURE__ */ c({
4
+ import { D as h, C as z } from "./index-CpuvJ4Tw.mjs";
5
+ import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
6
+ const b = /* @__PURE__ */ c({
7
7
  __name: "payPal",
8
8
  setup(L) {
9
9
  const i = d();
@@ -24,8 +24,8 @@ const C = /* @__PURE__ */ c({
24
24
  top: "middle",
25
25
  data: n.value.map((e) => e.name),
26
26
  formatter: (e) => {
27
- const r = n.value.find((a) => a.name === e);
28
- return `${e} ${r == null ? void 0 : r.value}%`;
27
+ const a = n.value.find((r) => r.name === e);
28
+ return `${e} ${a == null ? void 0 : a.value}%`;
29
29
  },
30
30
  textStyle: {
31
31
  fontSize: 12
@@ -54,16 +54,16 @@ const C = /* @__PURE__ */ c({
54
54
  }
55
55
  ]
56
56
  }), p = async () => {
57
- var e, r;
57
+ var e, a;
58
58
  try {
59
- const a = await g.payModel();
60
- if (!((r = (e = a.data) == null ? void 0 : e.results) != null && r.length))
61
- throw new Error("无有效数据");
62
- const s = a.data.results.reduce(
59
+ const r = await g.payModel();
60
+ if (!((a = (e = r.data) == null ? void 0 : e.results) != null && a.length))
61
+ throw new Error("暂无数据");
62
+ const s = r.data.results.reduce(
63
63
  (o, l) => o + parseFloat(l.orderAmount || 0),
64
64
  0
65
65
  );
66
- n.value = a.data.results.map((o) => {
66
+ n.value = r.data.results.map((o) => {
67
67
  const l = h.payModeBizDict.getEnumValue(o.payMode) || o.payMode, f = s > 0 ? (parseFloat(o.orderAmount) / s * 100).toFixed(2) : 0;
68
68
  return {
69
69
  value: parseFloat(f),
@@ -73,14 +73,14 @@ const C = /* @__PURE__ */ c({
73
73
  count: o.orderCount,
74
74
  // 保留订单数用于tooltip显示
75
75
  itemStyle: {
76
- color: b.PAYMENT_COLORS[o.payMode]
76
+ color: z.PAYMENT_COLORS[o.payMode]
77
77
  }
78
78
  };
79
79
  }), t == null || t.setOption(u());
80
80
  } catch {
81
81
  t == null || t.setOption({
82
82
  title: {
83
- text: "数据加载失败",
83
+ text: "暂无数据",
84
84
  left: "center",
85
85
  top: "center"
86
86
  }
@@ -97,13 +97,13 @@ const C = /* @__PURE__ */ c({
97
97
  window.addEventListener("resize", e), e();
98
98
  }), v(() => {
99
99
  window.removeEventListener("resize", () => t == null ? void 0 : t.resize()), t == null || t.dispose();
100
- }), (e, r) => (_(), y("div", {
100
+ }), (e, a) => (_(), y("div", {
101
101
  ref_key: "chartContainer",
102
102
  ref: i,
103
103
  class: "chart-container"
104
104
  }, null, 512));
105
105
  }
106
- }), $ = /* @__PURE__ */ z(C, [["__scopeId", "data-v-0006bf5a"]]);
106
+ }), $ = /* @__PURE__ */ C(b, [["__scopeId", "data-v-920a5a5f"]]);
107
107
  export {
108
108
  $ as default
109
109
  };
@@ -5,7 +5,7 @@ import { D as h, C as w } from "./index-CpuvJ4Tw.mjs";
5
5
  import { _ as z } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
6
6
  const C = /* @__PURE__ */ c({
7
7
  __name: "payPal",
8
- setup(x) {
8
+ setup(S) {
9
9
  const i = d();
10
10
  let e = null;
11
11
  const r = d([]), u = () => ({
@@ -63,7 +63,7 @@ const C = /* @__PURE__ */ c({
63
63
  try {
64
64
  const n = await g.payModel({});
65
65
  if (!((a = (t = n.data) == null ? void 0 : t.results) != null && a.length))
66
- throw new Error("无有效数据");
66
+ throw new Error("暂无数据");
67
67
  const s = n.data.results.reduce(
68
68
  (o, l) => o + parseFloat(l.orderAmount || 0),
69
69
  0
@@ -83,8 +83,7 @@ const C = /* @__PURE__ */ c({
83
83
  } catch (n) {
84
84
  console.error("支付方式数据加载失败:", n), e == null || e.setOption({
85
85
  title: {
86
- text: "数据加载失败",
87
- subtext: "请稍后重试",
86
+ text: "暂无数据",
88
87
  left: "center",
89
88
  top: "center",
90
89
  textStyle: {
@@ -107,7 +106,7 @@ const C = /* @__PURE__ */ c({
107
106
  class: "chart-container"
108
107
  }, null, 512));
109
108
  }
110
- }), O = /* @__PURE__ */ z(C, [["__scopeId", "data-v-aff64fa1"]]);
109
+ }), O = /* @__PURE__ */ z(C, [["__scopeId", "data-v-15ebef5f"]]);
111
110
  export {
112
111
  O as default
113
112
  };