xyvcard-settle 0.0.39 → 0.0.41

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.
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./history.vue_vue_type_script_setup_true_lang-Dj7A2_XH.mjs";
1
+ import { _ as f } from "./history.vue_vue_type_script_setup_true_lang-DuKstKV7.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -26,7 +26,7 @@ const ue = new de(), ie = { class: "app-container" }, Me = /* @__PURE__ */ x({
26
26
  setup(j) {
27
27
  const { t: b } = le();
28
28
  g.instsBizDict.useValues(), g.agentBizDict.useValues(), g.agentAgreeBizDict.useValues();
29
- const R = ne().query.tenant, { proxy: T } = ee(), r = _({
29
+ const v = ne().query.tenant, { proxy: R } = ee(), r = _({
30
30
  tokenExt: U.getTokenExt(w().user.tenant)
31
31
  }), Y = _(U.getCurrentRole(w().user.tenant)), f = _([]);
32
32
  function S(a) {
@@ -34,13 +34,13 @@ const ue = new de(), ie = { class: "app-container" }, Me = /* @__PURE__ */ x({
34
34
  f.value = a;
35
35
  const e = new Date(a[0]), D = new Date(a[1]);
36
36
  if (e.getMonth() !== D.getMonth() || e.getFullYear() !== D.getFullYear()) {
37
- f.value = [], T.$message.warning("开始时间和结束时间必须在同一个月");
37
+ f.value = [], R.$message.warning("开始时间和结束时间必须在同一个月");
38
38
  return;
39
39
  }
40
- r.value.transferMoneyDateStart = T.$moment.formatDate(
40
+ r.value.transferMoneyDateStart = R.$moment.formatDate(
41
41
  a[0],
42
42
  B.RPC_FORMAT_TIME
43
- ), r.value.transferMoneyDateEnd = T.$moment.formatDate(
43
+ ), r.value.transferMoneyDateEnd = R.$moment.formatDate(
44
44
  a[1],
45
45
  B.RPC_FORMAT_TIME
46
46
  );
@@ -73,7 +73,7 @@ const ue = new de(), ie = { class: "app-container" }, Me = /* @__PURE__ */ x({
73
73
  {
74
74
  label: "settleTradeReceipt.merchantNo",
75
75
  prop: "merchantNo",
76
- width: "150",
76
+ width: "190",
77
77
  sortable: "custom",
78
78
  isColumn: !0
79
79
  },
@@ -83,7 +83,7 @@ const ue = new de(), ie = { class: "app-container" }, Me = /* @__PURE__ */ x({
83
83
  prop: "transferMoneyDate",
84
84
  slotName: "transferMoneyDate",
85
85
  columnType: "slot",
86
- width: "120",
86
+ width: "170",
87
87
  sortable: "custom",
88
88
  isColumn: !0
89
89
  },
@@ -136,11 +136,11 @@ const ue = new de(), ie = { class: "app-container" }, Me = /* @__PURE__ */ x({
136
136
  function q(a) {
137
137
  u.selectionRows.value = a;
138
138
  }
139
- function L(a) {
139
+ function H(a) {
140
140
  u.handleSort(a.prop, a.order);
141
141
  }
142
142
  return u.getList(), (a, e) => {
143
- const D = d("el-input"), p = d("el-form-item"), i = d("el-col"), H = d("el-tree-select"), A = d("el-date-picker"), O = d("jmash-select"), V = d("el-row"), C = d("el-button"), W = d("el-form"), G = d("jmash-column-select"), J = d("jmash-table"), X = d("jmash-pagination"), Z = d("el-card");
143
+ const D = d("el-input"), p = d("el-form-item"), i = d("el-col"), L = d("el-tree-select"), A = d("el-date-picker"), O = d("jmash-select"), V = d("el-row"), C = d("el-button"), W = d("el-form"), G = d("jmash-column-select"), J = d("jmash-table"), X = d("jmash-pagination"), Z = d("el-card");
144
144
  return y(), te("div", ie, [
145
145
  l(W, {
146
146
  ref_key: "queryFormRef",
@@ -193,7 +193,7 @@ const ue = new de(), ie = { class: "app-container" }, Me = /* @__PURE__ */ x({
193
193
  ]),
194
194
  _: 1
195
195
  }),
196
- (s = o(R)) != null && s.includes("@") ? (y(), M(i, {
196
+ (s = o(v)) != null && s.includes("@") ? (y(), M(i, {
197
197
  key: 1,
198
198
  span: 6
199
199
  }, {
@@ -226,10 +226,11 @@ const ue = new de(), ie = { class: "app-container" }, Me = /* @__PURE__ */ x({
226
226
  }, {
227
227
  default: t(() => [
228
228
  l(p, {
229
- label: a.$t("settleTradeAnalysis.agentName")
229
+ label: a.$t("settleTradeAnalysis.agentName"),
230
+ prop: "agentCode"
230
231
  }, {
231
232
  default: t(() => [
232
- l(H, {
233
+ l(L, {
233
234
  modelValue: r.value.agentCode,
234
235
  "onUpdate:modelValue": e[4] || (e[4] = (n) => r.value.agentCode = n),
235
236
  data: o(g).agentBizDict.values,
@@ -276,7 +277,7 @@ const ue = new de(), ie = { class: "app-container" }, Me = /* @__PURE__ */ x({
276
277
  default: t(() => {
277
278
  var s, n;
278
279
  return [
279
- (s = o(R)) != null && s.includes("@") ? z("", !0) : (y(), M(i, {
280
+ (s = o(v)) != null && s.includes("@") ? z("", !0) : (y(), M(i, {
280
281
  key: 0,
281
282
  span: 6
282
283
  }, {
@@ -288,7 +289,7 @@ const ue = new de(), ie = { class: "app-container" }, Me = /* @__PURE__ */ x({
288
289
  default: t(() => [
289
290
  l(A, {
290
291
  modelValue: f.value,
291
- "onUpdate:modelValue": e[8] || (e[8] = (v) => f.value = v),
292
+ "onUpdate:modelValue": e[8] || (e[8] = (T) => f.value = T),
292
293
  type: "daterange",
293
294
  format: "YYYY-MM-DD",
294
295
  "value-format": "YYYY-MM-DD",
@@ -303,7 +304,7 @@ const ue = new de(), ie = { class: "app-container" }, Me = /* @__PURE__ */ x({
303
304
  ]),
304
305
  _: 1
305
306
  })),
306
- (n = o(R)) != null && n.includes("@") ? (y(), M(i, {
307
+ (n = o(v)) != null && n.includes("@") ? (y(), M(i, {
307
308
  key: 2,
308
309
  span: 24
309
310
  }, {
@@ -312,7 +313,7 @@ const ue = new de(), ie = { class: "app-container" }, Me = /* @__PURE__ */ x({
312
313
  default: t(() => [
313
314
  l(C, {
314
315
  type: "primary",
315
- onClick: e[11] || (e[11] = (v) => o(u).handleQuery())
316
+ onClick: e[11] || (e[11] = (T) => o(u).handleQuery())
316
317
  }, {
317
318
  default: t(() => [
318
319
  m(c(a.$t("common.search")), 1)
@@ -320,7 +321,7 @@ const ue = new de(), ie = { class: "app-container" }, Me = /* @__PURE__ */ x({
320
321
  _: 1
321
322
  }),
322
323
  l(C, {
323
- onClick: e[12] || (e[12] = (v) => I())
324
+ onClick: e[12] || (e[12] = (T) => I())
324
325
  }, {
325
326
  default: t(() => [
326
327
  m(c(a.$t("common.reset")), 1)
@@ -341,7 +342,7 @@ const ue = new de(), ie = { class: "app-container" }, Me = /* @__PURE__ */ x({
341
342
  default: t(() => [
342
343
  l(C, {
343
344
  type: "primary",
344
- onClick: e[9] || (e[9] = (v) => o(u).handleQuery())
345
+ onClick: e[9] || (e[9] = (T) => o(u).handleQuery())
345
346
  }, {
346
347
  default: t(() => [
347
348
  m(c(a.$t("common.search")), 1)
@@ -349,7 +350,7 @@ const ue = new de(), ie = { class: "app-container" }, Me = /* @__PURE__ */ x({
349
350
  _: 1
350
351
  }),
351
352
  l(C, {
352
- onClick: e[10] || (e[10] = (v) => I())
353
+ onClick: e[10] || (e[10] = (T) => I())
353
354
  }, {
354
355
  default: t(() => [
355
356
  m(c(a.$t("common.reset")), 1)
@@ -417,20 +418,20 @@ const ue = new de(), ie = { class: "app-container" }, Me = /* @__PURE__ */ x({
417
418
  data: o(K),
418
419
  "table-label": o(h),
419
420
  onSelectionChange: q,
420
- onSortChange: L
421
+ onSortChange: H
421
422
  }, ae({
422
423
  instsId: t((n) => [
423
424
  m(c(o(g).instsBizDict.getValue(n.data.row.instsId)), 1)
424
425
  ]),
425
426
  transferMoneyDate: t((n) => [
426
- m(c(o(T).$moment.formatDate(
427
- n.data.row.transferMoneyDate,
428
- "YYYY-MM-DD"
427
+ m(c(o(R).$moment.formatDate(
428
+ n.data.row.transferMoneyDate + " " + n.data.row.transferMoneyTime,
429
+ "YYYY-MM-DD HH:mm:ss"
429
430
  )), 1)
430
431
  ]),
431
432
  _: 2
432
433
  }, [
433
- !((s = o(R)) != null && s.includes("@")) || Y.value.merchantId ? {
434
+ !((s = o(v)) != null && s.includes("@")) || Y.value.merchantId ? {
434
435
  name: "agentCode",
435
436
  fn: t((n) => [
436
437
  m(c(o(g).agentBizDict.getValue(n.data.row.agentCode)), 1)
@@ -0,0 +1,287 @@
1
+ import { defineComponent as W, ref as c, reactive as P, onMounted as X, resolveComponent as r, createElementBlock as Q, openBlock as b, createElementVNode as a, createVNode as l, withCtx as t, withDirectives as Y, normalizeStyle as Z, vShow as ee, createBlock as B, createCommentVNode as oe, Fragment as le, renderList as te, withKeys as S, withModifiers as se, createTextVNode as ne, toDisplayString as ae } from "vue";
2
+ import { _ as re, q as ie } from "./qrcode-success-RhATc5cS.mjs";
3
+ import { useRoute as ue, useRouter as ce } from "vue-router";
4
+ import { useI18n as de } from "vue-i18n";
5
+ import "element-plus";
6
+ import { useUserStore as pe, getCaptchaApi as me, selectDsdRoles as fe, vueMetaEnv as $, createLoginQrcode as ve, netEncrypt as _e } from "jmash-core";
7
+ import { _ as ge } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
8
+ const he = { class: "login-container" }, ye = { class: "login-top absolute top-0 flex items-center px-5 h-20 w-full" }, Ce = { class: "login-form" }, we = { class: "qrcode-container" }, Ve = ["src"], be = { class: "captcha" }, qe = /* @__PURE__ */ W({
9
+ __name: "index copy",
10
+ setup(ke) {
11
+ const I = ue(), R = ce(), U = pe(), q = c(!1), K = c("first"), L = c(), D = c();
12
+ c();
13
+ const { t: k } = de(), g = P([]), s = c({
14
+ scope: "",
15
+ username: "",
16
+ password: ""
17
+ }), M = P({
18
+ username: [
19
+ {
20
+ required: !0,
21
+ trigger: "blur",
22
+ message: k("login.username")
23
+ }
24
+ ],
25
+ password: [
26
+ {
27
+ required: !0,
28
+ trigger: "blur",
29
+ validator: (o, e, i) => {
30
+ e.length < 5 ? i(new Error("The password can not be less than 5 digits")) : i();
31
+ },
32
+ message: k("login.password")
33
+ }
34
+ ],
35
+ captchaCode: [
36
+ {
37
+ required: !0,
38
+ trigger: "blur",
39
+ message: k("login.captchaCode")
40
+ }
41
+ ]
42
+ }), A = c(!1);
43
+ function p() {
44
+ me().then(({ data: o }) => {
45
+ s.value.captchaKey = o.captchaId, L.value = o.base64Image, K.value === "second" && (A.value = !0);
46
+ });
47
+ }
48
+ function F() {
49
+ fe().then(({ data: o }) => {
50
+ g.length = 0, g.push(...o.roleList);
51
+ });
52
+ }
53
+ const h = c("qrCode"), O = (o) => {
54
+ o.props.name === "user" ? (w(), p()) : x(), h.value = o.props.name;
55
+ };
56
+ function N() {
57
+ m.value.ticket && U.loginByQrcode({ ticket: m.value.ticket }).then(() => {
58
+ w(), f.value = !1, m.value.qrcodeUrl = ie;
59
+ const o = I.query, e = o.redirect ?? $.APP_REDIRECT, i = Object.keys(o).reduce(
60
+ (d, u) => (u !== "redirect" && (d[u] = o[u]), d),
61
+ {}
62
+ );
63
+ R.push({ path: e, query: i });
64
+ });
65
+ }
66
+ const m = c({});
67
+ let y = setInterval(N, 3e3), C = null;
68
+ const f = c(!1), x = () => {
69
+ ve().then(({ data: o }) => {
70
+ m.value = o, f.value = !1, j(), y = setInterval(N, 3e3);
71
+ });
72
+ };
73
+ h.value === "qrCode" && x();
74
+ const w = () => {
75
+ y && (clearInterval(y), y = null), C && (clearTimeout(C), C = null);
76
+ }, j = () => {
77
+ w(), C = setTimeout(() => {
78
+ w(), f.value = !0;
79
+ }, $.APP_TIMEOUT);
80
+ };
81
+ function T() {
82
+ var o;
83
+ (o = D.value) == null || o.validate((e) => {
84
+ e && (q.value = !0, s.value.password = _e(s.value.password), U.login(s.value).then(() => {
85
+ const i = I.query, d = i.redirect ?? "/", u = Object.keys(i).reduce(
86
+ (V, v) => (v !== "redirect" && (V[v] = i[v]), V),
87
+ {}
88
+ );
89
+ R.push({ path: d, query: u }), p();
90
+ }).catch(() => {
91
+ p();
92
+ }).finally(() => {
93
+ q.value = !1;
94
+ }));
95
+ });
96
+ }
97
+ return X(() => {
98
+ p(), F();
99
+ }), (o, e) => {
100
+ const i = r("lang-select"), d = r("el-tab-pane"), u = r("svg-icon"), V = r("el-option"), v = r("el-select"), _ = r("el-form-item"), E = r("el-input"), z = r("el-image"), G = r("el-button"), H = r("el-form"), J = r("el-tabs");
101
+ return b(), Q("div", he, [
102
+ a("div", ye, [
103
+ e[5] || (e[5] = a("img", {
104
+ src: re,
105
+ class: "logo-img",
106
+ alt: ""
107
+ }, null, -1)),
108
+ e[6] || (e[6] = a("span", { class: "ml-3" }, "筋斗云管理平台", -1)),
109
+ l(i, { class: "ml-2 cursor-pointer language" })
110
+ ]),
111
+ a("div", Ce, [
112
+ e[10] || (e[10] = a("div", { class: "login-title" }, "欢迎登录", -1)),
113
+ l(J, {
114
+ modelValue: h.value,
115
+ "onUpdate:modelValue": e[4] || (e[4] = (n) => h.value = n),
116
+ class: "demo-tabs",
117
+ onTabClick: O
118
+ }, {
119
+ default: t(() => [
120
+ l(d, {
121
+ label: "扫码登录",
122
+ name: "qrCode"
123
+ }, {
124
+ default: t(() => [
125
+ a("div", we, [
126
+ a("img", {
127
+ src: m.value.qrcodeUrl,
128
+ style: Z({ opacity: f.value ? 0.02 : 1 }),
129
+ alt: "二维码"
130
+ }, null, 12, Ve),
131
+ Y(a("div", null, [
132
+ e[7] || (e[7] = a("div", null, "二维码已过期", -1)),
133
+ a("div", { onClick: x }, "点击刷新")
134
+ ], 512), [
135
+ [ee, f.value]
136
+ ])
137
+ ]),
138
+ e[8] || (e[8] = a("div", null, "微信扫一扫登录", -1))
139
+ ]),
140
+ _: 1
141
+ }),
142
+ l(d, {
143
+ label: "账号登录",
144
+ name: "user"
145
+ }, {
146
+ default: t(() => [
147
+ l(H, {
148
+ ref_key: "loginFormRef",
149
+ ref: D,
150
+ model: s.value,
151
+ rules: M,
152
+ size: "large"
153
+ }, {
154
+ default: t(() => [
155
+ g.length > 0 ? (b(), B(_, {
156
+ key: 0,
157
+ prop: "scope",
158
+ class: "el-form-item__content"
159
+ }, {
160
+ default: t(() => [
161
+ l(v, {
162
+ modelValue: s.value.scope,
163
+ "onUpdate:modelValue": e[0] || (e[0] = (n) => s.value.scope = n),
164
+ placeholder: o.$t("login.role")
165
+ }, {
166
+ prefix: t(() => [
167
+ l(u, { "icon-class": "dynamic-role" })
168
+ ]),
169
+ default: t(() => [
170
+ (b(!0), Q(le, null, te(g, (n) => (b(), B(V, {
171
+ key: n.roleCode,
172
+ label: n.roleName,
173
+ value: n.roleCode
174
+ }, null, 8, ["label", "value"]))), 128))
175
+ ]),
176
+ _: 1
177
+ }, 8, ["modelValue", "placeholder"])
178
+ ]),
179
+ _: 1
180
+ })) : oe("", !0),
181
+ l(_, {
182
+ prop: "username",
183
+ class: "el-form-item__content"
184
+ }, {
185
+ default: t(() => [
186
+ l(E, {
187
+ ref: "username",
188
+ modelValue: s.value.username,
189
+ "onUpdate:modelValue": e[1] || (e[1] = (n) => s.value.username = n),
190
+ placeholder: o.$t("login.username"),
191
+ name: "username"
192
+ }, {
193
+ prefix: t(() => [
194
+ l(u, { "icon-class": "user" })
195
+ ]),
196
+ _: 1
197
+ }, 8, ["modelValue", "placeholder"])
198
+ ]),
199
+ _: 1
200
+ }),
201
+ l(_, {
202
+ prop: "password",
203
+ class: "el-form-item__content"
204
+ }, {
205
+ default: t(() => [
206
+ l(E, {
207
+ modelValue: s.value.password,
208
+ "onUpdate:modelValue": e[2] || (e[2] = (n) => s.value.password = n),
209
+ type: "password",
210
+ placeholder: o.$t("login.password"),
211
+ "show-password": "",
212
+ onKeyup: S(T, ["enter"])
213
+ }, {
214
+ prefix: t(() => [
215
+ l(u, { "icon-class": "password" })
216
+ ]),
217
+ _: 1
218
+ }, 8, ["modelValue", "placeholder"])
219
+ ]),
220
+ _: 1
221
+ }),
222
+ l(_, {
223
+ prop: "captchaCode",
224
+ class: "el-form-item__content"
225
+ }, {
226
+ default: t(() => [
227
+ l(E, {
228
+ modelValue: s.value.captchaCode,
229
+ "onUpdate:modelValue": e[3] || (e[3] = (n) => s.value.captchaCode = n),
230
+ "auto-complete": "off",
231
+ placeholder: o.$t("login.captchaCode"),
232
+ class: "w-[60%]",
233
+ onKeyup: S(T, ["enter"])
234
+ }, {
235
+ prefix: t(() => [
236
+ l(u, { "icon-class": "captcha" })
237
+ ]),
238
+ _: 1
239
+ }, 8, ["modelValue", "placeholder"]),
240
+ a("div", be, [
241
+ l(z, {
242
+ src: L.value,
243
+ class: "w-[130px] h-[50px] cursor-pointer",
244
+ onClick: p
245
+ }, {
246
+ error: t(() => e[9] || (e[9] = [
247
+ a("div", { class: "image-slot" }, null, -1)
248
+ ])),
249
+ _: 1
250
+ }, 8, ["src"])
251
+ ])
252
+ ]),
253
+ _: 1
254
+ }),
255
+ l(_, { class: "el-form-item__content" }, {
256
+ default: t(() => [
257
+ l(G, {
258
+ loading: q.value,
259
+ type: "primary",
260
+ class: "w-full",
261
+ onClick: se(T, ["prevent"])
262
+ }, {
263
+ default: t(() => [
264
+ ne(ae(o.$t("login.login")), 1)
265
+ ]),
266
+ _: 1
267
+ }, 8, ["loading"])
268
+ ]),
269
+ _: 1
270
+ })
271
+ ]),
272
+ _: 1
273
+ }, 8, ["model", "rules"])
274
+ ]),
275
+ _: 1
276
+ })
277
+ ]),
278
+ _: 1
279
+ }, 8, ["modelValue"])
280
+ ])
281
+ ]);
282
+ };
283
+ }
284
+ }), De = /* @__PURE__ */ ge(qe, [["__scopeId", "data-v-f472e8c6"]]);
285
+ export {
286
+ De as default
287
+ };