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
@@ -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) {
@@ -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-B8FBizdu.mjs";
3
- import { _ as b } from "./today.vue_vue_type_script_setup_true_lang-C7uvcmd6.mjs";
2
+ import { _ as f } from "./history.vue_vue_type_script_setup_true_lang-CAnnJEfn.mjs";
3
+ import { _ as b } from "./today.vue_vue_type_script_setup_true_lang-DsmG2Z4w.mjs";
4
4
  const v = { class: "app-container" }, h = { class: "search-container" }, w = /* @__PURE__ */ r({
5
5
  __name: "index",
6
6
  setup(C) {
@@ -0,0 +1,110 @@
1
+ var E = Object.defineProperty;
2
+ var l = (a, s, i) => s in a ? E(a, s, { enumerable: !0, configurable: !0, writable: !0, value: i }) : a[s] = i;
3
+ var e = (a, s, i) => l(a, typeof s != "symbol" ? s + "" : s, i);
4
+ import { BizLayDict as p, BizDict as h, EnumDict as A } from "jmash-core";
5
+ import { infoApi as y } from "xyvcard-agent";
6
+ import { institutionApi as D } from "xyvcard-insts";
7
+ import { merchantsApi as d } from "xyvcard-merchant";
8
+ class t {
9
+ }
10
+ //模块
11
+ e(t, "PAYMENT_DICT", "payment"), // 时间格式 RFC-年月日时分
12
+ e(t, "RPC_FORMAT_TIME", "YYYY-MM-DDTHH:mm:SSZ"), // 时间格式 RFC-年月日时分
13
+ e(t, "RPC_FORMAT_DATA", "YYYY-MM-DD"), // 支付方式
14
+ e(t, "PAY_MODE", "xyvcard.payment.protobuf.PayMode"), // 交易类型
15
+ e(t, "TRADE_TYPE", "xyvcard.payment.protobuf.TradeType"), // 支付状态
16
+ e(t, "ORDER_STATUS", "xyvcard.payment.protobuf.OrderStatus"), // 支付状态
17
+ e(t, "TRADE_STATUS", "xyvcard.payment.protobuf.TradeStatus"), // 支付状态
18
+ e(t, "AGENT_AGREE", "AGENT_AGREE"), // 支付方式颜色
19
+ e(t, "PAYMENT_COLORS", {
20
+ WECHAT: "#3DDEC1",
21
+ ALIPAY: "#F79AE3",
22
+ UQRCODEPAY: "#F8A3A3",
23
+ BALANCE: "#FBD564",
24
+ NUCSPAY: "#C36433"
25
+ });
26
+ function T(a, s, i) {
27
+ return !Array.isArray(a) || a.length === 0 ? [] : a.map((r) => {
28
+ let c = [];
29
+ return Array.isArray(r.children) && r.children.length > 0 && (c = T(r.children, s, i)), {
30
+ value: r[i],
31
+ label: r[s],
32
+ parentId: r.parentId,
33
+ children: c
34
+ };
35
+ });
36
+ }
37
+ class o extends p {
38
+ // 实现 useValues 方法
39
+ useValues() {
40
+ return new Promise((s, i) => {
41
+ this.query.approved = t.AGENT_AGREE, this.query.hasApproved = !0, y.findList(this.query).then(({ data: u }) => {
42
+ this.values.length = 0, this.values.push(
43
+ ...T(u.results, "agentAlias", "agentCode")
44
+ ), s(this.values);
45
+ }).catch(i);
46
+ });
47
+ }
48
+ }
49
+ class m extends h {
50
+ // 实现 useValues 方法
51
+ useValues() {
52
+ return new Promise((s, i) => {
53
+ D.findList(this.query).then(({ data: u }) => {
54
+ const r = u.results;
55
+ this.values.length = 0, this.values.push(
56
+ ...r.map(
57
+ (c) => ({
58
+ key: c.instsId,
59
+ value: c.instsName
60
+ })
61
+ )
62
+ ), s(this.values);
63
+ }).catch(i);
64
+ });
65
+ }
66
+ }
67
+ class Y extends h {
68
+ // 实现 useValues 方法
69
+ useValues() {
70
+ return new Promise((s, i) => {
71
+ d.findList(this.query).then(({ data: u }) => {
72
+ const r = u.results;
73
+ this.values.length = 0, this.values.push(
74
+ ...r.map(
75
+ (c) => ({
76
+ key: c.merchantId,
77
+ value: c.merchantName
78
+ })
79
+ )
80
+ ), s(this.values);
81
+ }).catch(i);
82
+ });
83
+ }
84
+ }
85
+ class n {
86
+ }
87
+ // 代理商
88
+ e(n, "agentBizDict", new o({})), // 落地机构
89
+ e(n, "instsBizDict", new m({})), // 商户名称
90
+ e(n, "merchantBizDict", new Y({})), // 支付方式
91
+ e(n, "payModeBizDict", new A(
92
+ t.PAYMENT_DICT,
93
+ t.PAY_MODE
94
+ )), // 交易类型
95
+ e(n, "tradeTypeBizDict", new A(
96
+ t.PAYMENT_DICT,
97
+ t.TRADE_TYPE
98
+ )), // 订单状态
99
+ e(n, "orderStatusBizDict", new A(
100
+ t.PAYMENT_DICT,
101
+ t.ORDER_STATUS
102
+ )), // 交易状态
103
+ e(n, "tradeStatusBizDict", new A(
104
+ t.PAYMENT_DICT,
105
+ t.TRADE_STATUS
106
+ ));
107
+ export {
108
+ t as C,
109
+ n as D
110
+ };
@@ -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-C7K8v7BO.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
+ };
@@ -0,0 +1,142 @@
1
+ import { defineComponent as M, getCurrentInstance as A, ref as p, onMounted as T, resolveComponent as u, createElementBlock as w, openBlock as P, createElementVNode as e, createVNode as s, withCtx as n, toDisplayString as i, createTextVNode as _ } from "vue";
2
+ import { useRouter as V } from "vue-router";
3
+ import { s as k } from "./index-eUhFgNKx.mjs";
4
+ import E from "./pay-DW3Una4C.mjs";
5
+ import b from "./payPal-nXPX-3pm.mjs";
6
+ import S from "./trend-D8pStiQ5.mjs";
7
+ import { C as N } from "./index-CpuvJ4Tw.mjs";
8
+ import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
9
+ const B = { class: "app" }, I = { class: "app-title" }, q = { class: "title" }, F = { class: "tatals" }, O = { class: "tatal" }, Q = { class: "text" }, U = { class: "tatal" }, $ = { class: "text" }, j = { class: "tatal" }, z = { class: "text" }, G = { class: "tatal" }, H = { class: "text" }, J = { class: "app-title" }, K = { class: "app-title-time" }, L = { class: "chart-header" }, W = /* @__PURE__ */ M({
10
+ __name: "index",
11
+ setup(X) {
12
+ const D = V(), { proxy: y } = A(), m = p({
13
+ analysisTimeStart: "",
14
+ analysisTimeEnd: ""
15
+ }), o = p({}), l = p([]), r = (a, t = N.RPC_FORMAT_DATA) => y.$moment.formatDate(a, t), v = () => {
16
+ const a = /* @__PURE__ */ new Date(), t = /* @__PURE__ */ new Date();
17
+ t.setDate(a.getDate() - 6), l.value = [
18
+ r(t, "YYYY-MM-DD"),
19
+ r(a, "YYYY-MM-DD")
20
+ ], x(t, a), f();
21
+ }, x = (a, t) => {
22
+ m.value = {
23
+ analysisTimeStart: r(a),
24
+ analysisTimeEnd: r(t)
25
+ };
26
+ }, f = async () => {
27
+ const a = await k.homePageAmount(m.value);
28
+ o.value = a.data;
29
+ }, Y = (a) => {
30
+ if (!a || a.length !== 2) {
31
+ v();
32
+ return;
33
+ }
34
+ l.value = a;
35
+ const [t, c] = a;
36
+ m.value = {
37
+ analysisTimeStart: t,
38
+ analysisTimeEnd: c
39
+ }, f();
40
+ };
41
+ T(() => {
42
+ v();
43
+ });
44
+ const h = () => {
45
+ D.push({
46
+ path: "/payment/pay-trade"
47
+ });
48
+ };
49
+ return (a, t) => {
50
+ const c = u("el-date-picker"), d = u("el-card"), g = u("el-button");
51
+ return P(), w("div", null, [
52
+ e("div", B, [
53
+ e("div", I, [
54
+ s(d, { class: "card-never" }, {
55
+ default: n(() => [
56
+ e("div", q, [
57
+ t[1] || (t[1] = e("span", { style: { "margin-right": "25%" } }, "交易数据看板", -1)),
58
+ s(c, {
59
+ modelValue: l.value,
60
+ "onUpdate:modelValue": t[0] || (t[0] = (C) => l.value = C),
61
+ type: "daterange",
62
+ "range-separator": "-",
63
+ "start-placeholder": "开始日期",
64
+ "end-placeholder": "结束日期",
65
+ "value-format": "YYYY-MM-DD",
66
+ format: "YYYY-MM-DD",
67
+ onChange: Y
68
+ }, null, 8, ["modelValue"])
69
+ ]),
70
+ e("div", F, [
71
+ e("div", O, [
72
+ e("text", Q, i(o.value.orderCount || 0), 1),
73
+ t[2] || (t[2] = e("text", null, "交易笔数", -1))
74
+ ]),
75
+ e("div", U, [
76
+ e("text", $, i(o.value.orderAmount || 0), 1),
77
+ t[3] || (t[3] = e("text", null, " 交易金额", -1))
78
+ ]),
79
+ e("div", j, [
80
+ e("text", z, i(o.value.feeAmt || 0), 1),
81
+ t[4] || (t[4] = e("text", null, " 手续费", -1))
82
+ ]),
83
+ e("div", G, [
84
+ e("text", H, i(o.value.settleAmount || 0), 1),
85
+ t[5] || (t[5] = e("text", null, " 结账金额", -1))
86
+ ])
87
+ ])
88
+ ]),
89
+ _: 1
90
+ }),
91
+ s(d, { class: "card-never card-paypal" }, {
92
+ default: n(() => [
93
+ t[6] || (t[6] = e("div", { class: "title" }, "近7日汇总-支付方式", -1)),
94
+ s(b, { class: "pay" })
95
+ ]),
96
+ _: 1
97
+ })
98
+ ]),
99
+ e("div", J, [
100
+ s(d, { class: "card-number" }, {
101
+ default: n(() => [
102
+ t[7] || (t[7] = e("div", { class: "title" }, [
103
+ _(" 交易金额排名 "),
104
+ e("span", { style: { "font-weight": "normal" } }, "(近7日)")
105
+ ], -1)),
106
+ s(E)
107
+ ]),
108
+ _: 1
109
+ })
110
+ ])
111
+ ]),
112
+ e("div", K, [
113
+ s(d, { class: "card-chart" }, {
114
+ default: n(() => [
115
+ e("div", L, [
116
+ t[9] || (t[9] = e("span", { class: "chart-title" }, [
117
+ _(" 交易金额趋势 "),
118
+ e("span", { style: { "font-weight": "normal" } }, " (近7日) ")
119
+ ], -1)),
120
+ s(g, {
121
+ type: "text",
122
+ class: "view-more",
123
+ onClick: h
124
+ }, {
125
+ default: n(() => t[8] || (t[8] = [
126
+ _(" 查看更多 ")
127
+ ])),
128
+ _: 1
129
+ })
130
+ ]),
131
+ s(S)
132
+ ]),
133
+ _: 1
134
+ })
135
+ ])
136
+ ]);
137
+ };
138
+ }
139
+ }), rt = /* @__PURE__ */ R(W, [["__scopeId", "data-v-79a9b3d8"]]);
140
+ export {
141
+ rt as default
142
+ };
@@ -0,0 +1,238 @@
1
+ import { defineComponent as j, ref as c, reactive as X, onMounted as Y, resolveComponent as r, createElementBlock as O, openBlock as v, createElementVNode as d, createVNode as o, withCtx as t, createBlock as I, createCommentVNode as F, Fragment as U, renderList as W, withKeys as h, withModifiers as q, createTextVNode as Z, toDisplayString as K } from "vue";
2
+ import { useRoute as S, useRouter as M } from "vue-router";
3
+ import { useI18n as J } from "vue-i18n";
4
+ import "element-plus";
5
+ import { useUserStore as _, getCaptchaApi as $, selectDsdRoles as ee, netEncrypt as oe } from "jmash-core";
6
+ import { _ as le } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
7
+ const te = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAABaCAYAAAA4qEECAAAAAXNSR0IArs4c6QAAEWlJREFUeF7tnXmcFNW1x7+nZmHYNwdlZJNlVEAQBJGI+hQj4hMUAQkIQSKi8uQ9xOduDIoaBYML+DQuAYyKCCYIKCBuMS8GVBBURJRFWRSBAWYYZuvpOuFUdfc0wyhGprtH6fpn5tNLVd/vPXXu75x7bl3hEIeqpgCZQDOgN9AdaAo0Aeoc6vs/s/fzgC3AZuCfwEJgE7BDRILf11b5rjdV1d5rCVwK9AVOAmr+zMAdbnP2AR8D84AXgQ0iohWd9PtADwFuB1oDaYf7i37m3w8A64C7ReT5HwRaVesC1wF3AN/ZET9zcD+2eWbNdwEPikhu9EkOABmCfB8wAqj2Y692hH+vGJgG3BwNuzzo8faBJOTDNhWDfZ+IGE/v8ECHBr7B+/3xs0l3cdiQwycwNzIUmGkDZBh0K2A+cGKlXSZ5IiOwBugjIuslpJNv3G/JdybVRaVbh6mR3wETDfQ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qyc19fzjwf39z3yg3YgNkeLvqiwBbiJeYKeQf3uB4f/Lwt6uOAp7cgL2s+370Buz/Ap61BFXXLm0PAAAAAElFTkSuQmCC", se = { class: "login-container" }, ae = { class: "login-top absolute top-0 flex items-center px-5 h-20 w-full" }, ne = { class: "login-form" }, re = { class: "captcha" }, ue = /* @__PURE__ */ j({
8
+ __name: "index",
9
+ setup(ce) {
10
+ const L = S(), C = M(), G = _(), A = c(!1), p = c("first"), Q = c(), b = c(), R = c(), { t: w } = J(), f = X([]), s = c({
11
+ scope: "",
12
+ username: "",
13
+ password: ""
14
+ }), P = X({
15
+ username: [
16
+ {
17
+ required: !0,
18
+ trigger: "blur",
19
+ message: w("login.username")
20
+ }
21
+ ],
22
+ password: [
23
+ {
24
+ required: !0,
25
+ trigger: "blur",
26
+ validator: (l, e, n) => {
27
+ e.length < 5 ? n(new Error("The password can not be less than 5 digits")) : n();
28
+ },
29
+ message: w("login.password")
30
+ }
31
+ ],
32
+ captchaCode: [
33
+ {
34
+ required: !0,
35
+ trigger: "blur",
36
+ message: w("login.captchaCode")
37
+ }
38
+ ]
39
+ }), V = c(!1);
40
+ function g() {
41
+ $().then(({ data: l }) => {
42
+ s.value.captchaKey = l.captchaId, Q.value = l.base64Image, p.value === "second" && (V.value = !0);
43
+ });
44
+ }
45
+ function D() {
46
+ ee().then(({ data: l }) => {
47
+ f.length = 0, f.push(...l.roleList);
48
+ });
49
+ }
50
+ function B() {
51
+ var l;
52
+ (l = b.value) == null || l.validate((e) => {
53
+ e && (A.value = !0, s.value.password = oe(s.value.password), G.login(s.value).then(() => {
54
+ const n = L.query, i = n.redirect ?? "/", y = Object.keys(n).reduce(
55
+ (m, u) => (u !== "redirect" && (m[u] = n[u]), m),
56
+ {}
57
+ );
58
+ C.push({ path: i, query: y }), g();
59
+ }).catch(() => {
60
+ g();
61
+ }).finally(() => {
62
+ A.value = !1;
63
+ }));
64
+ });
65
+ }
66
+ function z(l) {
67
+ var e, n;
68
+ p.value = l.props.name, (e = b.value) == null || e.resetFields(), (n = R.value) == null || n.resetFields();
69
+ }
70
+ return Y(() => {
71
+ g(), D();
72
+ }), (l, e) => {
73
+ const n = r("lang-select"), i = r("svg-icon"), y = r("el-option"), m = r("el-select"), u = r("el-form-item"), k = r("el-input"), H = r("el-image"), E = r("el-button"), T = r("el-form"), x = r("el-tab-pane"), N = r("el-tabs");
74
+ return v(), O("div", se, [
75
+ d("div", ae, [
76
+ e[5] || (e[5] = d("img", {
77
+ src: te,
78
+ class: "logo-img",
79
+ alt: ""
80
+ }, null, -1)),
81
+ e[6] || (e[6] = d("span", { class: "ml-3" }, "筋斗云支付管理中台", -1)),
82
+ o(n, { class: "ml-2 cursor-pointer language" })
83
+ ]),
84
+ d("div", ne, [
85
+ o(N, {
86
+ modelValue: p.value,
87
+ "onUpdate:modelValue": e[4] || (e[4] = (a) => p.value = a),
88
+ class: "demo-tabs",
89
+ onTabClick: z
90
+ }, {
91
+ default: t(() => [
92
+ o(x, {
93
+ name: "first",
94
+ class: "el-tabs__content"
95
+ }, {
96
+ default: t(() => [
97
+ o(T, {
98
+ ref_key: "loginFormRef",
99
+ ref: b,
100
+ model: s.value,
101
+ rules: P,
102
+ size: "large"
103
+ }, {
104
+ default: t(() => [
105
+ e[8] || (e[8] = d("div", { class: "login-title" }, "欢迎登录", -1)),
106
+ f.length > 0 ? (v(), I(u, {
107
+ key: 0,
108
+ prop: "scope",
109
+ class: "el-form-item__content"
110
+ }, {
111
+ default: t(() => [
112
+ o(m, {
113
+ modelValue: s.value.scope,
114
+ "onUpdate:modelValue": e[0] || (e[0] = (a) => s.value.scope = a),
115
+ placeholder: l.$t("login.role")
116
+ }, {
117
+ prefix: t(() => [
118
+ o(i, { "icon-class": "dynamic-role" })
119
+ ]),
120
+ default: t(() => [
121
+ (v(!0), O(U, null, W(f, (a) => (v(), I(y, {
122
+ key: a.roleCode,
123
+ label: a.roleName,
124
+ value: a.roleCode
125
+ }, null, 8, ["label", "value"]))), 128))
126
+ ]),
127
+ _: 1
128
+ }, 8, ["modelValue", "placeholder"])
129
+ ]),
130
+ _: 1
131
+ })) : F("", !0),
132
+ o(u, {
133
+ prop: "username",
134
+ class: "el-form-item__content"
135
+ }, {
136
+ default: t(() => [
137
+ o(k, {
138
+ ref: "username",
139
+ modelValue: s.value.username,
140
+ "onUpdate:modelValue": e[1] || (e[1] = (a) => s.value.username = a),
141
+ placeholder: l.$t("login.username"),
142
+ name: "username"
143
+ }, {
144
+ prefix: t(() => [
145
+ o(i, { "icon-class": "user" })
146
+ ]),
147
+ _: 1
148
+ }, 8, ["modelValue", "placeholder"])
149
+ ]),
150
+ _: 1
151
+ }),
152
+ o(u, {
153
+ prop: "password",
154
+ class: "el-form-item__content"
155
+ }, {
156
+ default: t(() => [
157
+ o(k, {
158
+ modelValue: s.value.password,
159
+ "onUpdate:modelValue": e[2] || (e[2] = (a) => s.value.password = a),
160
+ type: "password",
161
+ placeholder: l.$t("login.password"),
162
+ "show-password": "",
163
+ onKeyup: h(B, ["enter"])
164
+ }, {
165
+ prefix: t(() => [
166
+ o(i, { "icon-class": "password" })
167
+ ]),
168
+ _: 1
169
+ }, 8, ["modelValue", "placeholder"])
170
+ ]),
171
+ _: 1
172
+ }),
173
+ o(u, {
174
+ prop: "captchaCode",
175
+ class: "el-form-item__content"
176
+ }, {
177
+ default: t(() => [
178
+ o(k, {
179
+ modelValue: s.value.captchaCode,
180
+ "onUpdate:modelValue": e[3] || (e[3] = (a) => s.value.captchaCode = a),
181
+ "auto-complete": "off",
182
+ placeholder: l.$t("login.captchaCode"),
183
+ class: "w-[60%]",
184
+ onKeyup: h(B, ["enter"])
185
+ }, {
186
+ prefix: t(() => [
187
+ o(i, { "icon-class": "captcha" })
188
+ ]),
189
+ _: 1
190
+ }, 8, ["modelValue", "placeholder"]),
191
+ d("div", re, [
192
+ o(H, {
193
+ src: Q.value,
194
+ class: "w-[130px] h-[50px] cursor-pointer",
195
+ onClick: g
196
+ }, {
197
+ error: t(() => e[7] || (e[7] = [
198
+ d("div", { class: "image-slot" }, null, -1)
199
+ ])),
200
+ _: 1
201
+ }, 8, ["src"])
202
+ ])
203
+ ]),
204
+ _: 1
205
+ }),
206
+ o(u, { class: "el-form-item__content" }, {
207
+ default: t(() => [
208
+ o(E, {
209
+ loading: A.value,
210
+ type: "primary",
211
+ class: "w-full",
212
+ onClick: q(B, ["prevent"])
213
+ }, {
214
+ default: t(() => [
215
+ Z(K(l.$t("login.login")), 1)
216
+ ]),
217
+ _: 1
218
+ }, 8, ["loading"])
219
+ ]),
220
+ _: 1
221
+ })
222
+ ]),
223
+ _: 1
224
+ }, 8, ["model", "rules"])
225
+ ]),
226
+ _: 1
227
+ })
228
+ ]),
229
+ _: 1
230
+ }, 8, ["modelValue"])
231
+ ])
232
+ ]);
233
+ };
234
+ }
235
+ }), ve = /* @__PURE__ */ le(ue, [["__scopeId", "data-v-157bc734"]]);
236
+ export {
237
+ ve as default
238
+ };