xyvcard-settle 0.0.3 → 0.0.4

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,38 +1,40 @@
1
- import { defineComponent as J, getCurrentInstance as X, ref as _, resolveComponent as i, resolveDirective as Z, createElementBlock as k, openBlock as $, createElementVNode as c, createVNode as l, withCtx as a, withKeys as b, unref as n, createTextVNode as d, toDisplayString as p, withDirectives as x, createBlock as ee, createCommentVNode as le, isRef as N } from "vue";
2
- import { useUserStore as te, clearEmpty as ae, request as oe, useTableHooks as ne } from "jmash-core";
3
- import { useI18n as se } from "vue-i18n";
4
- import { D as m, C as M } from "./index-84QzMAob.mjs";
5
- import { useRouter as re } from "vue-router";
6
- class de {
7
- getKey(f) {
1
+ import { defineComponent as J, getCurrentInstance as X, ref as _, resolveComponent as i, resolveDirective as Z, createElementBlock as k, openBlock as $, createElementVNode as f, createVNode as t, withCtx as a, withKeys as b, unref as n, createTextVNode as d, toDisplayString as m, withDirectives as ee, createBlock as te, createCommentVNode as le, isRef as N } from "vue";
2
+ import { useUserStore as ae, clearEmpty as oe, request as ne, useTableHooks as se } from "jmash-core";
3
+ import { useI18n as re } from "vue-i18n";
4
+ import { D as p, C as M } from "./index-84QzMAob.mjs";
5
+ import { useRouter as de } from "vue-router";
6
+ class ue {
7
+ getKey(c) {
8
8
  return {
9
- analysisTime: f.analysisTime,
10
- channelId: f.channelId
9
+ analysisTime: c.analysisTime,
10
+ channelId: c.channelId
11
11
  };
12
12
  }
13
13
  // 查询翻页信息支付交易汇总统计;
14
- findPage(f) {
15
- const g = te().user.tenant;
16
- return ae(f), oe({
14
+ findPage(c) {
15
+ const g = ae().user.tenant;
16
+ return oe(c), ne({
17
17
  url: "/v1/settle/analysis/merchant/page/" + g,
18
18
  method: "get",
19
- params: f
19
+ params: c
20
20
  });
21
21
  }
22
22
  }
23
- const ue = new de(), ie = { class: "app-container" }, pe = { class: "search-container" }, me = { class: "total-num" }, ye = { class: "blue_color" }, fe = { class: "blue_color" }, ce = { class: "blue_color" }, be = { class: "blue_color" }, Te = ["onClick"], we = /* @__PURE__ */ J({
23
+ const ie = new ue(), me = { class: "app-container" }, pe = { class: "search-container" }, ye = { class: "total-num" }, ce = { class: "blue_color" }, fe = { class: "blue_color" }, be = { class: "blue_color" }, Te = { class: "blue_color" }, ve = ["onClick"], _e = /* @__PURE__ */ J({
24
24
  __name: "index",
25
25
  setup(D) {
26
- const { t: f } = se();
27
- m.agentBizDict.useValues(), m.instsBizDict.useValues(), m.merchantBizDict.useValues();
28
- const { proxy: g } = X(), R = re(), s = _({}), {
26
+ const { t: c } = re();
27
+ p.agentBizDict.useValues(), p.instsBizDict.useValues(), p.merchantBizDict.useValues();
28
+ const { proxy: g } = X(), R = de(), S = localStorage.getItem("tokenExt"), s = _({
29
+ tokenExt: S ?? ""
30
+ }), {
29
31
  tableHooks: u,
30
- multipleTableRef: S,
31
- queryFormRef: z,
32
- listLoading: B,
33
- tableData: U,
32
+ multipleTableRef: z,
33
+ queryFormRef: B,
34
+ listLoading: U,
35
+ tableData: E,
34
36
  total: A
35
- } = ne(f, ue, s);
37
+ } = se(c, ie, s);
36
38
  let C = u.totalRecord;
37
39
  const T = _([]);
38
40
  function P(o) {
@@ -167,37 +169,37 @@ const ue = new de(), ie = { class: "app-container" }, pe = { class: "search-cont
167
169
  function j() {
168
170
  T.value = [], u.resetQuery();
169
171
  }
170
- function E(o) {
172
+ function K(o) {
171
173
  u.selectionRows.value = o;
172
174
  }
173
- function K(o) {
175
+ function Y(o) {
174
176
  u.handleSort(o.prop, o.order);
175
177
  }
176
178
  return u.getList(), (o, e) => {
177
- const V = i("el-input"), y = i("el-form-item"), r = i("el-col"), w = i("jmash-select"), h = i("el-row"), Y = i("el-tree-select"), F = i("el-date-picker"), I = i("el-button"), q = i("el-form"), L = i("jmash-column-select"), O = i("jmash-table"), H = i("jmash-pagination"), W = i("el-card"), G = Z("hasPerm");
178
- return $(), k("div", ie, [
179
- c("div", pe, [
180
- l(q, {
179
+ const V = i("el-input"), y = i("el-form-item"), r = i("el-col"), w = i("jmash-select"), h = i("el-row"), F = i("el-tree-select"), q = i("el-date-picker"), I = i("el-button"), L = i("el-form"), O = i("jmash-column-select"), H = i("jmash-table"), W = i("jmash-pagination"), x = i("el-card"), G = Z("hasPerm");
180
+ return $(), k("div", me, [
181
+ f("div", pe, [
182
+ t(L, {
181
183
  ref_key: "queryFormRef",
182
- ref: z,
184
+ ref: B,
183
185
  model: s.value,
184
186
  inline: !0
185
187
  }, {
186
188
  default: a(() => [
187
- l(h, null, {
189
+ t(h, null, {
188
190
  default: a(() => [
189
- l(r, { span: 6 }, {
191
+ t(r, { span: 6 }, {
190
192
  default: a(() => [
191
- l(y, {
193
+ t(y, {
192
194
  label: o.$t("settleTradeAnalysis.merchantId"),
193
195
  prop: "merchantId"
194
196
  }, {
195
197
  default: a(() => [
196
- l(V, {
198
+ t(V, {
197
199
  modelValue: s.value.merchantId,
198
- "onUpdate:modelValue": e[0] || (e[0] = (t) => s.value.merchantId = t),
200
+ "onUpdate:modelValue": e[0] || (e[0] = (l) => s.value.merchantId = l),
199
201
  placeholder: o.$t("settleTradeAnalysis.merchantIdRead"),
200
- onKeyup: e[1] || (e[1] = b((t) => n(u).handleQuery(), ["enter"])),
202
+ onKeyup: e[1] || (e[1] = b((l) => n(u).handleQuery(), ["enter"])),
201
203
  class: "!w-[203px]"
202
204
  }, null, 8, ["modelValue", "placeholder"])
203
205
  ]),
@@ -206,19 +208,19 @@ const ue = new de(), ie = { class: "app-container" }, pe = { class: "search-cont
206
208
  ]),
207
209
  _: 1
208
210
  }),
209
- l(r, { span: 6 }, {
211
+ t(r, { span: 6 }, {
210
212
  default: a(() => [
211
- l(y, {
213
+ t(y, {
212
214
  label: o.$t("settleTradeAnalysis.payMode"),
213
215
  prop: "payMode"
214
216
  }, {
215
217
  default: a(() => [
216
- l(w, {
218
+ t(w, {
217
219
  modelValue: s.value.payMode,
218
- "onUpdate:modelValue": e[2] || (e[2] = (t) => s.value.payMode = t),
220
+ "onUpdate:modelValue": e[2] || (e[2] = (l) => s.value.payMode = l),
219
221
  placeholder: o.$t("settleTradeAnalysis.payModeRead"),
220
- data: n(m).payModeBizDict.values,
221
- onKeyup: e[3] || (e[3] = b((t) => n(u).handleQuery(), ["enter"])),
222
+ data: n(p).payModeBizDict.values,
223
+ onKeyup: e[3] || (e[3] = b((l) => n(u).handleQuery(), ["enter"])),
222
224
  class: "!w-[203px]",
223
225
  filterable: "",
224
226
  clearable: ""
@@ -229,18 +231,18 @@ const ue = new de(), ie = { class: "app-container" }, pe = { class: "search-cont
229
231
  ]),
230
232
  _: 1
231
233
  }),
232
- l(r, { span: 6 }, {
234
+ t(r, { span: 6 }, {
233
235
  default: a(() => [
234
- l(y, {
236
+ t(y, {
235
237
  label: o.$t("settleTradeAnalysis.likeMerchantNo"),
236
238
  prop: "likeMerchantNo"
237
239
  }, {
238
240
  default: a(() => [
239
- l(V, {
241
+ t(V, {
240
242
  modelValue: s.value.likeMerchantNo,
241
- "onUpdate:modelValue": e[4] || (e[4] = (t) => s.value.likeMerchantNo = t),
243
+ "onUpdate:modelValue": e[4] || (e[4] = (l) => s.value.likeMerchantNo = l),
242
244
  placeholder: o.$t("settleTradeAnalysis.likeMerchantNoRead"),
243
- onKeyup: e[5] || (e[5] = b((t) => n(u).handleQuery(), ["enter"])),
245
+ onKeyup: e[5] || (e[5] = b((l) => n(u).handleQuery(), ["enter"])),
244
246
  class: "!w-[203px]"
245
247
  }, null, 8, ["modelValue", "placeholder"])
246
248
  ]),
@@ -249,18 +251,18 @@ const ue = new de(), ie = { class: "app-container" }, pe = { class: "search-cont
249
251
  ]),
250
252
  _: 1
251
253
  }),
252
- l(r, { span: 6 }, {
254
+ t(r, { span: 6 }, {
253
255
  default: a(() => [
254
- l(y, {
256
+ t(y, {
255
257
  label: o.$t("settleTradeAnalysis.termNo"),
256
258
  prop: "termNo"
257
259
  }, {
258
260
  default: a(() => [
259
- l(V, {
261
+ t(V, {
260
262
  modelValue: s.value.termNo,
261
- "onUpdate:modelValue": e[6] || (e[6] = (t) => s.value.termNo = t),
263
+ "onUpdate:modelValue": e[6] || (e[6] = (l) => s.value.termNo = l),
262
264
  placeholder: o.$t("settleTradeAnalysis.termNoRead"),
263
- onKeyup: e[7] || (e[7] = b((t) => n(u).handleQuery(), ["enter"])),
265
+ onKeyup: e[7] || (e[7] = b((l) => n(u).handleQuery(), ["enter"])),
264
266
  class: "!w-[203px]"
265
267
  }, null, 8, ["modelValue", "placeholder"])
266
268
  ]),
@@ -272,19 +274,19 @@ const ue = new de(), ie = { class: "app-container" }, pe = { class: "search-cont
272
274
  ]),
273
275
  _: 1
274
276
  }),
275
- l(h, null, {
277
+ t(h, null, {
276
278
  default: a(() => [
277
- l(r, { span: 6 }, {
279
+ t(r, { span: 6 }, {
278
280
  default: a(() => [
279
- l(y, {
281
+ t(y, {
280
282
  label: o.$t("settleTradeAnalysis.agentCode"),
281
283
  prop: "agentCode"
282
284
  }, {
283
285
  default: a(() => [
284
- l(Y, {
286
+ t(F, {
285
287
  modelValue: s.value.agentCode,
286
- "onUpdate:modelValue": e[8] || (e[8] = (t) => s.value.agentCode = t),
287
- data: n(m).agentBizDict.values,
288
+ "onUpdate:modelValue": e[8] || (e[8] = (l) => s.value.agentCode = l),
289
+ data: n(p).agentBizDict.values,
288
290
  "node-key": "value",
289
291
  filterable: "",
290
292
  clearable: "",
@@ -297,19 +299,19 @@ const ue = new de(), ie = { class: "app-container" }, pe = { class: "search-cont
297
299
  ]),
298
300
  _: 1
299
301
  }),
300
- l(r, { span: 6 }, {
302
+ t(r, { span: 6 }, {
301
303
  default: a(() => [
302
- l(y, {
304
+ t(y, {
303
305
  label: o.$t("settleTradeAnalysis.tradeType"),
304
306
  prop: "tradeType"
305
307
  }, {
306
308
  default: a(() => [
307
- l(w, {
309
+ t(w, {
308
310
  modelValue: s.value.tradeType,
309
- "onUpdate:modelValue": e[9] || (e[9] = (t) => s.value.tradeType = t),
311
+ "onUpdate:modelValue": e[9] || (e[9] = (l) => s.value.tradeType = l),
310
312
  placeholder: o.$t("settleTradeAnalysis.tradeTypeRead"),
311
- data: n(m).tradeTypeBizDict.values,
312
- onKeyup: e[10] || (e[10] = b((t) => n(u).handleQuery(), ["enter"])),
313
+ data: n(p).tradeTypeBizDict.values,
314
+ onKeyup: e[10] || (e[10] = b((l) => n(u).handleQuery(), ["enter"])),
313
315
  class: "!w-[203px]",
314
316
  filterable: "",
315
317
  clearable: ""
@@ -320,19 +322,19 @@ const ue = new de(), ie = { class: "app-container" }, pe = { class: "search-cont
320
322
  ]),
321
323
  _: 1
322
324
  }),
323
- l(r, { span: 6 }, {
325
+ t(r, { span: 6 }, {
324
326
  default: a(() => [
325
- l(y, {
327
+ t(y, {
326
328
  label: o.$t("settleTradeAnalysis.channelId"),
327
329
  prop: "channelId"
328
330
  }, {
329
331
  default: a(() => [
330
- l(w, {
332
+ t(w, {
331
333
  modelValue: s.value.channelId,
332
- "onUpdate:modelValue": e[11] || (e[11] = (t) => s.value.channelId = t),
334
+ "onUpdate:modelValue": e[11] || (e[11] = (l) => s.value.channelId = l),
333
335
  placeholder: o.$t("settleTradeAnalysis.channelIdRead"),
334
- data: n(m).instsBizDict.values,
335
- onKeyup: e[12] || (e[12] = b((t) => n(u).handleQuery(), ["enter"])),
336
+ data: n(p).instsBizDict.values,
337
+ onKeyup: e[12] || (e[12] = b((l) => n(u).handleQuery(), ["enter"])),
336
338
  class: "!w-[203px]",
337
339
  filterable: "",
338
340
  clearable: ""
@@ -343,16 +345,16 @@ const ue = new de(), ie = { class: "app-container" }, pe = { class: "search-cont
343
345
  ]),
344
346
  _: 1
345
347
  }),
346
- l(r, { span: 6 }, {
348
+ t(r, { span: 6 }, {
347
349
  default: a(() => [
348
- l(y, {
350
+ t(y, {
349
351
  label: o.$t("settleTradeAnalysis.createTime"),
350
352
  prop: "analysisTimeStart"
351
353
  }, {
352
354
  default: a(() => [
353
- l(F, {
355
+ t(q, {
354
356
  modelValue: T.value,
355
- "onUpdate:modelValue": e[13] || (e[13] = (t) => T.value = t),
357
+ "onUpdate:modelValue": e[13] || (e[13] = (l) => T.value = l),
356
358
  type: "daterange",
357
359
  format: "YYYY-MM-DD",
358
360
  "value-format": "YYYY-MM-DD",
@@ -371,26 +373,26 @@ const ue = new de(), ie = { class: "app-container" }, pe = { class: "search-cont
371
373
  ]),
372
374
  _: 1
373
375
  }),
374
- l(h, null, {
376
+ t(h, null, {
375
377
  default: a(() => [
376
- l(r, { span: 24 }, {
378
+ t(r, { span: 24 }, {
377
379
  default: a(() => [
378
- l(y, { class: "search-btn" }, {
380
+ t(y, { class: "search-btn" }, {
379
381
  default: a(() => [
380
- l(I, {
382
+ t(I, {
381
383
  type: "primary",
382
- onClick: e[14] || (e[14] = (t) => n(u).handleQuery())
384
+ onClick: e[14] || (e[14] = (l) => n(u).handleQuery())
383
385
  }, {
384
386
  default: a(() => [
385
- d(p(o.$t("common.search")), 1)
387
+ d(m(o.$t("common.search")), 1)
386
388
  ]),
387
389
  _: 1
388
390
  }),
389
- l(I, {
390
- onClick: e[15] || (e[15] = (t) => j())
391
+ t(I, {
392
+ onClick: e[15] || (e[15] = (l) => j())
391
393
  }, {
392
394
  default: a(() => [
393
- d(p(o.$t("common.reset")), 1)
395
+ d(m(o.$t("common.reset")), 1)
394
396
  ]),
395
397
  _: 1
396
398
  })
@@ -406,23 +408,23 @@ const ue = new de(), ie = { class: "app-container" }, pe = { class: "search-cont
406
408
  ]),
407
409
  _: 1
408
410
  }, 8, ["model"]),
409
- e[21] || (e[21] = c("div", { class: "clear" }, null, -1))
411
+ e[21] || (e[21] = f("div", { class: "clear" }, null, -1))
410
412
  ]),
411
- l(W, {
413
+ t(x, {
412
414
  shadow: "never",
413
415
  class: "table-container"
414
416
  }, {
415
417
  header: a(() => [
416
- l(h, null, {
418
+ t(h, null, {
417
419
  default: a(() => [
418
- l(r, {
420
+ t(r, {
419
421
  span: 24,
420
422
  class: "container-float"
421
423
  }, {
422
424
  default: a(() => [
423
- l(L, {
425
+ t(O, {
424
426
  modelValue: n(v),
425
- "onUpdate:modelValue": e[16] || (e[16] = (t) => N(v) ? v.value = t : v = t),
427
+ "onUpdate:modelValue": e[16] || (e[16] = (l) => N(v) ? v.value = l : v = l),
426
428
  "label-name": "settle/settle-trade-analysis"
427
429
  }, null, 8, ["modelValue"])
428
430
  ]),
@@ -433,49 +435,49 @@ const ue = new de(), ie = { class: "app-container" }, pe = { class: "search-cont
433
435
  })
434
436
  ]),
435
437
  footer: a(() => [
436
- n(A) > 0 ? ($(), ee(H, {
438
+ n(A) > 0 ? ($(), te(W, {
437
439
  key: 0,
438
440
  total: n(A),
439
- "onUpdate:total": e[17] || (e[17] = (t) => N(A) ? A.value = t : null),
441
+ "onUpdate:total": e[17] || (e[17] = (l) => N(A) ? A.value = l : null),
440
442
  "current-page": s.value.curPage,
441
- "onUpdate:currentPage": e[18] || (e[18] = (t) => s.value.curPage = t),
443
+ "onUpdate:currentPage": e[18] || (e[18] = (l) => s.value.curPage = l),
442
444
  "page-size": s.value.pageSize,
443
- "onUpdate:pageSize": e[19] || (e[19] = (t) => s.value.pageSize = t),
444
- onPagination: e[20] || (e[20] = (t) => n(u).getList())
445
+ "onUpdate:pageSize": e[19] || (e[19] = (l) => s.value.pageSize = l),
446
+ onPagination: e[20] || (e[20] = (l) => n(u).getList())
445
447
  }, null, 8, ["total", "current-page", "page-size"])) : le("", !0)
446
448
  ]),
447
449
  default: a(() => [
448
- c("div", me, [
449
- l(h, { gutter: 20 }, {
450
+ f("div", ye, [
451
+ t(h, { gutter: 20 }, {
450
452
  default: a(() => [
451
- l(r, { span: 6 }, {
453
+ t(r, { span: 6 }, {
452
454
  default: a(() => [
453
455
  e[22] || (e[22] = d(" 总交易笔数: ")),
454
- c("span", ye, p(n(C).totalOrderCount), 1),
456
+ f("span", ce, m(n(C).totalOrderCount), 1),
455
457
  e[23] || (e[23] = d(" 笔 "))
456
458
  ]),
457
459
  _: 1
458
460
  }),
459
- l(r, { span: 6 }, {
461
+ t(r, { span: 6 }, {
460
462
  default: a(() => [
461
463
  e[24] || (e[24] = d(" 总交易金额: ")),
462
- c("span", fe, p(n(C).totalOrderAmount), 1),
464
+ f("span", fe, m(n(C).totalOrderAmount), 1),
463
465
  e[25] || (e[25] = d(" 元 "))
464
466
  ]),
465
467
  _: 1
466
468
  }),
467
- l(r, { span: 6 }, {
469
+ t(r, { span: 6 }, {
468
470
  default: a(() => [
469
471
  e[26] || (e[26] = d(" 手续费: ")),
470
- c("span", ce, p(n(C).totalFeeAmt), 1),
472
+ f("span", be, m(n(C).totalFeeAmt), 1),
471
473
  e[27] || (e[27] = d(" 元 "))
472
474
  ]),
473
475
  _: 1
474
476
  }),
475
- l(r, { span: 6 }, {
477
+ t(r, { span: 6 }, {
476
478
  default: a(() => [
477
479
  e[28] || (e[28] = d(" 结算金额: ")),
478
- c("span", be, p(n(C).totalSettleAmount), 1),
480
+ f("span", Te, m(n(C).totalSettleAmount), 1),
479
481
  e[29] || (e[29] = d(" 元 "))
480
482
  ]),
481
483
  _: 1
@@ -484,33 +486,33 @@ const ue = new de(), ie = { class: "app-container" }, pe = { class: "search-cont
484
486
  _: 1
485
487
  })
486
488
  ]),
487
- l(O, {
489
+ t(H, {
488
490
  ref_key: "multipleTableRef",
489
- ref: S,
491
+ ref: z,
490
492
  isSelection: !1,
491
493
  "row-key": "settleTradeAnalysisPk",
492
- "list-loading": n(B),
493
- data: n(U),
494
+ "list-loading": n(U),
495
+ data: n(E),
494
496
  "table-label": n(v),
495
- onSelectionChange: E,
496
- onSortChange: K
497
+ onSelectionChange: K,
498
+ onSortChange: Y
497
499
  }, {
498
- merchantId: a((t) => [
499
- d(p(n(m).merchantBizDict.getValue(t.data.row.merchantId)), 1)
500
+ merchantId: a((l) => [
501
+ d(m(n(p).merchantBizDict.getValue(l.data.row.merchantId)), 1)
500
502
  ]),
501
- instsId: a((t) => [
502
- d(p(n(m).instsBizDict.getValue(t.data.row.instsId)), 1)
503
+ instsId: a((l) => [
504
+ d(m(n(p).instsBizDict.getValue(l.data.row.instsId)), 1)
503
505
  ]),
504
- agentCode: a((t) => [
505
- d(p(n(m).agentBizDict.getValue(t.data.row.agentCode)), 1)
506
+ agentCode: a((l) => [
507
+ d(m(n(p).agentBizDict.getValue(l.data.row.agentCode)), 1)
506
508
  ]),
507
- operation: a((t) => [
508
- x(($(), k("span", {
509
+ operation: a((l) => [
510
+ ee(($(), k("span", {
509
511
  class: "el-button-color",
510
- onClick: (ve) => Q(t.data.row)
512
+ onClick: (he) => Q(l.data.row)
511
513
  }, [
512
- d(p(o.$t("settleTradeAnalysis.view")), 1)
513
- ], 8, Te)), [
514
+ d(m(o.$t("settleTradeAnalysis.view")), 1)
515
+ ], 8, ve)), [
514
516
  [G, ["settle:settle_trade_analysis:view"]]
515
517
  ])
516
518
  ]),
@@ -524,5 +526,5 @@ const ue = new de(), ie = { class: "app-container" }, pe = { class: "search-cont
524
526
  }
525
527
  });
526
528
  export {
527
- we as default
529
+ _e as default
528
530
  };