xyvcard-settle 0.0.17 → 0.0.18

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,5 +1,5 @@
1
- import { defineComponent as oe, getCurrentInstance as ne, ref as _, resolveComponent as m, resolveDirective as se, createElementBlock as B, openBlock as v, createElementVNode as T, createVNode as l, withCtx as t, withKeys as g, unref as o, createBlock as I, createCommentVNode as M, createTextVNode as r, toDisplayString as p, createSlots as re, withDirectives as de, isRef as U } from "vue";
2
- import { useUserStore as ue, clearEmpty as ie, request as pe, useTableHooks as me } from "jmash-core";
1
+ import { defineComponent as oe, getCurrentInstance as ne, ref as _, resolveComponent as p, resolveDirective as se, createElementBlock as B, openBlock as v, createElementVNode as T, createVNode as l, withCtx as t, withKeys as g, unref as o, createBlock as I, createCommentVNode as M, createTextVNode as r, toDisplayString as i, createSlots as re, withDirectives as de, isRef as U } from "vue";
2
+ import { useUserStore as ue, clearEmpty as ie, request as me, useTableHooks as pe } from "jmash-core";
3
3
  import { useI18n as ye } from "vue-i18n";
4
4
  import { D as c, C as E } from "./index-Bn8Vw_ua.mjs";
5
5
  import { useRoute as ce, useRouter as fe } from "vue-router";
@@ -13,34 +13,34 @@ class be {
13
13
  // 查询翻页信息支付交易汇总统计;
14
14
  findPage(b) {
15
15
  const R = ue().user.tenant;
16
- return ie(b), pe({
16
+ return ie(b), me({
17
17
  url: "/v1/settle/analysis/merchant/page/" + R,
18
18
  method: "get",
19
19
  params: b
20
20
  });
21
21
  }
22
22
  }
23
- const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-container" }, he = { class: "total-num" }, Ae = { class: "blue_color" }, Ce = { class: "blue_color" }, Ve = { class: "blue_color" }, we = { class: "blue_color" }, $e = ["onClick"], De = /* @__PURE__ */ oe({
23
+ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-container" }, Ae = { class: "total-num" }, he = { class: "blue_color" }, Ce = { class: "blue_color" }, Ve = { class: "blue_color" }, we = { class: "blue_color" }, $e = ["onClick"], De = /* @__PURE__ */ oe({
24
24
  __name: "index",
25
25
  setup(P) {
26
26
  const { t: b } = ye();
27
27
  c.agentBizDict.useValues(), c.instsBizDict.useValues(), c.merchantBizDict.useValues();
28
- const h = ce().query.tenant;
29
- console.log(h, "=> tenant");
28
+ const A = ce().query.tenant;
29
+ console.log(A, "=> tenant");
30
30
  const { proxy: S } = ne(), Q = fe(), j = localStorage.getItem("tokenExt"), s = _({
31
31
  tokenExt: j ?? ""
32
32
  }), {
33
- tableHooks: i,
33
+ tableHooks: m,
34
34
  multipleTableRef: K,
35
35
  queryFormRef: Y,
36
36
  listLoading: q,
37
37
  tableData: F,
38
38
  total: w
39
- } = me(b, Te, s);
40
- let $ = i.totalRecord;
41
- const A = _([]);
39
+ } = pe(b, Te, s);
40
+ let $ = m.totalRecord;
41
+ const h = _([]);
42
42
  function O(a) {
43
- A.value = a, A.value.length === 2 && (s.value.analysisTimeStart = S.$moment.formatDate(
43
+ h.value = a, h.value.length === 2 && (s.value.analysisTimeStart = S.$moment.formatDate(
44
44
  a[0],
45
45
  E.RPC_FORMAT_TIME
46
46
  ), s.value.analysisTimeEnd = S.$moment.formatDate(
@@ -124,6 +124,8 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
124
124
  {
125
125
  label: "settleTradeAnalysis.feeAmt",
126
126
  prop: "feeAmt",
127
+ slotName: "feeAmt",
128
+ columnType: "slot",
127
129
  width: "100",
128
130
  sortable: "custom",
129
131
  isColumn: !0
@@ -174,16 +176,16 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
174
176
  });
175
177
  }
176
178
  function z() {
177
- A.value = [], i.resetQuery();
179
+ h.value = [], m.resetQuery();
178
180
  }
179
181
  function W(a) {
180
- i.selectionRows.value = a;
182
+ m.selectionRows.value = a;
181
183
  }
182
184
  function J(a) {
183
- i.handleSort(a.prop, a.order);
185
+ m.handleSort(a.prop, a.order);
184
186
  }
185
- return i.getList(), (a, e) => {
186
- const N = m("el-input"), f = m("el-form-item"), d = m("el-col"), D = m("jmash-select"), V = m("el-row"), G = m("el-tree-select"), X = m("el-date-picker"), k = m("el-button"), Z = m("el-form"), x = m("jmash-column-select"), ee = m("jmash-table"), te = m("jmash-pagination"), le = m("el-card"), ae = se("hasPerm");
187
+ return m.getList(), (a, e) => {
188
+ const N = p("el-input"), f = p("el-form-item"), u = p("el-col"), D = p("jmash-select"), V = p("el-row"), G = p("el-tree-select"), X = p("el-date-picker"), k = p("el-button"), Z = p("el-form"), x = p("jmash-column-select"), ee = p("jmash-table"), te = p("jmash-pagination"), le = p("el-card"), ae = se("hasPerm");
187
189
  return v(), B("div", ve, [
188
190
  T("div", ge, [
189
191
  l(Z, {
@@ -195,7 +197,7 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
195
197
  default: t(() => [
196
198
  l(V, null, {
197
199
  default: t(() => [
198
- l(d, { span: 6 }, {
200
+ l(u, { span: 6 }, {
199
201
  default: t(() => [
200
202
  l(f, {
201
203
  label: a.$t("settleTradeAnalysis.merchantId"),
@@ -206,7 +208,7 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
206
208
  modelValue: s.value.merchantId,
207
209
  "onUpdate:modelValue": e[0] || (e[0] = (n) => s.value.merchantId = n),
208
210
  placeholder: a.$t("settleTradeAnalysis.merchantIdRead"),
209
- onKeyup: e[1] || (e[1] = g((n) => o(i).handleQuery(), ["enter"])),
211
+ onKeyup: e[1] || (e[1] = g((n) => o(m).handleQuery(), ["enter"])),
210
212
  class: "!w-[203px]"
211
213
  }, null, 8, ["modelValue", "placeholder"])
212
214
  ]),
@@ -215,7 +217,7 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
215
217
  ]),
216
218
  _: 1
217
219
  }),
218
- l(d, { span: 6 }, {
220
+ l(u, { span: 6 }, {
219
221
  default: t(() => [
220
222
  l(f, {
221
223
  label: a.$t("settleTradeAnalysis.payMode"),
@@ -227,7 +229,7 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
227
229
  "onUpdate:modelValue": e[2] || (e[2] = (n) => s.value.payMode = n),
228
230
  placeholder: a.$t("settleTradeAnalysis.payModeRead"),
229
231
  data: o(c).payModeBizDict.values,
230
- onKeyup: e[3] || (e[3] = g((n) => o(i).handleQuery(), ["enter"])),
232
+ onKeyup: e[3] || (e[3] = g((n) => o(m).handleQuery(), ["enter"])),
231
233
  class: "!w-[203px]",
232
234
  filterable: "",
233
235
  clearable: ""
@@ -238,7 +240,7 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
238
240
  ]),
239
241
  _: 1
240
242
  }),
241
- l(d, { span: 6 }, {
243
+ l(u, { span: 6 }, {
242
244
  default: t(() => [
243
245
  l(f, {
244
246
  label: a.$t("settleTradeAnalysis.likeMerchantNo"),
@@ -249,7 +251,7 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
249
251
  modelValue: s.value.likeMerchantNo,
250
252
  "onUpdate:modelValue": e[4] || (e[4] = (n) => s.value.likeMerchantNo = n),
251
253
  placeholder: a.$t("settleTradeAnalysis.likeMerchantNoRead"),
252
- onKeyup: e[5] || (e[5] = g((n) => o(i).handleQuery(), ["enter"])),
254
+ onKeyup: e[5] || (e[5] = g((n) => o(m).handleQuery(), ["enter"])),
253
255
  class: "!w-[203px]"
254
256
  }, null, 8, ["modelValue", "placeholder"])
255
257
  ]),
@@ -258,7 +260,7 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
258
260
  ]),
259
261
  _: 1
260
262
  }),
261
- l(d, { span: 6 }, {
263
+ l(u, { span: 6 }, {
262
264
  default: t(() => [
263
265
  l(f, {
264
266
  label: a.$t("settleTradeAnalysis.termNo"),
@@ -269,7 +271,7 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
269
271
  modelValue: s.value.termNo,
270
272
  "onUpdate:modelValue": e[6] || (e[6] = (n) => s.value.termNo = n),
271
273
  placeholder: a.$t("settleTradeAnalysis.termNoRead"),
272
- onKeyup: e[7] || (e[7] = g((n) => o(i).handleQuery(), ["enter"])),
274
+ onKeyup: e[7] || (e[7] = g((n) => o(m).handleQuery(), ["enter"])),
273
275
  class: "!w-[203px]"
274
276
  }, null, 8, ["modelValue", "placeholder"])
275
277
  ]),
@@ -283,9 +285,9 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
283
285
  }),
284
286
  l(V, null, {
285
287
  default: t(() => {
286
- var n, u;
288
+ var n, d;
287
289
  return [
288
- (n = o(h)) != null && n.includes("@") ? M("", !0) : (v(), I(d, {
290
+ (n = o(A)) != null && n.includes("@") ? M("", !0) : (v(), I(u, {
289
291
  key: 0,
290
292
  span: 6
291
293
  }, {
@@ -311,7 +313,7 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
311
313
  ]),
312
314
  _: 1
313
315
  })),
314
- l(d, { span: 6 }, {
316
+ l(u, { span: 6 }, {
315
317
  default: t(() => [
316
318
  l(f, {
317
319
  label: a.$t("settleTradeAnalysis.tradeType"),
@@ -323,7 +325,7 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
323
325
  "onUpdate:modelValue": e[9] || (e[9] = (y) => s.value.tradeType = y),
324
326
  placeholder: a.$t("settleTradeAnalysis.tradeTypeRead"),
325
327
  data: o(c).tradeTypeBizDict.values,
326
- onKeyup: e[10] || (e[10] = g((y) => o(i).handleQuery(), ["enter"])),
328
+ onKeyup: e[10] || (e[10] = g((y) => o(m).handleQuery(), ["enter"])),
327
329
  class: "!w-[203px]",
328
330
  filterable: "",
329
331
  clearable: ""
@@ -334,7 +336,7 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
334
336
  ]),
335
337
  _: 1
336
338
  }),
337
- l(d, { span: 6 }, {
339
+ l(u, { span: 6 }, {
338
340
  default: t(() => [
339
341
  l(f, {
340
342
  label: a.$t("settleTradeAnalysis.channelId"),
@@ -346,7 +348,7 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
346
348
  "onUpdate:modelValue": e[11] || (e[11] = (y) => s.value.channelId = y),
347
349
  placeholder: a.$t("settleTradeAnalysis.channelIdRead"),
348
350
  data: o(c).instsBizDict.values,
349
- onKeyup: e[12] || (e[12] = g((y) => o(i).handleQuery(), ["enter"])),
351
+ onKeyup: e[12] || (e[12] = g((y) => o(m).handleQuery(), ["enter"])),
350
352
  class: "!w-[203px]",
351
353
  filterable: "",
352
354
  clearable: ""
@@ -357,7 +359,7 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
357
359
  ]),
358
360
  _: 1
359
361
  }),
360
- l(d, { span: 6 }, {
362
+ l(u, { span: 6 }, {
361
363
  default: t(() => [
362
364
  l(f, {
363
365
  label: a.$t("settleTradeAnalysis.createTime"),
@@ -365,8 +367,8 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
365
367
  }, {
366
368
  default: t(() => [
367
369
  l(X, {
368
- modelValue: A.value,
369
- "onUpdate:modelValue": e[13] || (e[13] = (y) => A.value = y),
370
+ modelValue: h.value,
371
+ "onUpdate:modelValue": e[13] || (e[13] = (y) => h.value = y),
370
372
  type: "daterange",
371
373
  format: "YYYY-MM-DD",
372
374
  "value-format": "YYYY-MM-DD",
@@ -382,7 +384,7 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
382
384
  ]),
383
385
  _: 1
384
386
  }),
385
- (u = o(h)) != null && u.includes("@") ? (v(), I(d, {
387
+ (d = o(A)) != null && d.includes("@") ? (v(), I(u, {
386
388
  key: 1,
387
389
  span: 6
388
390
  }, {
@@ -391,10 +393,10 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
391
393
  default: t(() => [
392
394
  l(k, {
393
395
  type: "primary",
394
- onClick: e[14] || (e[14] = (y) => o(i).handleQuery())
396
+ onClick: e[14] || (e[14] = (y) => o(m).handleQuery())
395
397
  }, {
396
398
  default: t(() => [
397
- r(p(a.$t("common.search")), 1)
399
+ r(i(a.$t("common.search")), 1)
398
400
  ]),
399
401
  _: 1
400
402
  }),
@@ -402,7 +404,7 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
402
404
  onClick: e[15] || (e[15] = (y) => z())
403
405
  }, {
404
406
  default: t(() => [
405
- r(p(a.$t("common.reset")), 1)
407
+ r(i(a.$t("common.reset")), 1)
406
408
  ]),
407
409
  _: 1
408
410
  })
@@ -420,7 +422,7 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
420
422
  default: t(() => {
421
423
  var n;
422
424
  return [
423
- (n = o(h)) != null && n.includes("@") ? M("", !0) : (v(), I(d, {
425
+ (n = o(A)) != null && n.includes("@") ? M("", !0) : (v(), I(u, {
424
426
  key: 0,
425
427
  span: 24
426
428
  }, {
@@ -429,18 +431,18 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
429
431
  default: t(() => [
430
432
  l(k, {
431
433
  type: "primary",
432
- onClick: e[16] || (e[16] = (u) => o(i).handleQuery())
434
+ onClick: e[16] || (e[16] = (d) => o(m).handleQuery())
433
435
  }, {
434
436
  default: t(() => [
435
- r(p(a.$t("common.search")), 1)
437
+ r(i(a.$t("common.search")), 1)
436
438
  ]),
437
439
  _: 1
438
440
  }),
439
441
  l(k, {
440
- onClick: e[17] || (e[17] = (u) => z())
442
+ onClick: e[17] || (e[17] = (d) => z())
441
443
  }, {
442
444
  default: t(() => [
443
- r(p(a.$t("common.reset")), 1)
445
+ r(i(a.$t("common.reset")), 1)
444
446
  ]),
445
447
  _: 1
446
448
  })
@@ -466,7 +468,7 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
466
468
  header: t(() => [
467
469
  l(V, null, {
468
470
  default: t(() => [
469
- l(d, {
471
+ l(u, {
470
472
  span: 24,
471
473
  class: "container-float"
472
474
  }, {
@@ -492,43 +494,43 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
492
494
  "onUpdate:currentPage": e[20] || (e[20] = (n) => s.value.curPage = n),
493
495
  "page-size": s.value.pageSize,
494
496
  "onUpdate:pageSize": e[21] || (e[21] = (n) => s.value.pageSize = n),
495
- onPagination: e[22] || (e[22] = (n) => o(i).getList())
497
+ onPagination: e[22] || (e[22] = (n) => o(m).getList())
496
498
  }, null, 8, ["total", "current-page", "page-size"])) : M("", !0)
497
499
  ]),
498
500
  default: t(() => {
499
501
  var n;
500
502
  return [
501
- T("div", he, [
503
+ T("div", Ae, [
502
504
  l(V, { gutter: 20 }, {
503
505
  default: t(() => [
504
- l(d, { span: 6 }, {
506
+ l(u, { span: 6 }, {
505
507
  default: t(() => [
506
508
  e[24] || (e[24] = r(" 总交易笔数: ")),
507
- T("span", Ae, p(o($).totalOrderCount), 1),
509
+ T("span", he, i(o($).totalOrderCount), 1),
508
510
  e[25] || (e[25] = r(" 笔 "))
509
511
  ]),
510
512
  _: 1
511
513
  }),
512
- l(d, { span: 6 }, {
514
+ l(u, { span: 6 }, {
513
515
  default: t(() => [
514
516
  e[26] || (e[26] = r(" 总交易金额: ")),
515
- T("span", Ce, p(o($).totalOrderAmount), 1),
517
+ T("span", Ce, i(o($).totalOrderAmount), 1),
516
518
  e[27] || (e[27] = r(" 元 "))
517
519
  ]),
518
520
  _: 1
519
521
  }),
520
- l(d, { span: 6 }, {
522
+ l(u, { span: 6 }, {
521
523
  default: t(() => [
522
524
  e[28] || (e[28] = r(" 手续费: ")),
523
- T("span", Ve, p(o($).totalFeeAmt), 1),
525
+ T("span", Ve, i(o($).totalFeeAmt), 1),
524
526
  e[29] || (e[29] = r(" 元 "))
525
527
  ]),
526
528
  _: 1
527
529
  }),
528
- l(d, { span: 6 }, {
530
+ l(u, { span: 6 }, {
529
531
  default: t(() => [
530
532
  e[30] || (e[30] = r(" 结算金额: ")),
531
- T("span", we, p(o($).totalSettleAmount), 1),
533
+ T("span", we, i(o($).totalSettleAmount), 1),
532
534
  e[31] || (e[31] = r(" 元 "))
533
535
  ]),
534
536
  _: 1
@@ -548,37 +550,40 @@ const Te = new be(), ve = { class: "app-container" }, ge = { class: "search-cont
548
550
  onSelectionChange: W,
549
551
  onSortChange: J
550
552
  }, re({
551
- merchantId: t((u) => [
552
- r(p(o(c).merchantBizDict.getValue(u.data.row.merchantId)), 1)
553
+ feeAmt: t((d) => [
554
+ r(i(d.data.row.feeAmt * 100) + "% ", 1)
555
+ ]),
556
+ merchantId: t((d) => [
557
+ r(i(o(c).merchantBizDict.getValue(d.data.row.merchantId)), 1)
553
558
  ]),
554
- instsId: t((u) => [
555
- r(p(o(c).instsBizDict.getValue(u.data.row.instsId)), 1)
559
+ instsId: t((d) => [
560
+ r(i(o(c).instsBizDict.getValue(d.data.row.instsId)), 1)
556
561
  ]),
557
- payMode: t((u) => [
558
- r(p(o(c).payModeBizDict.getEnumValue(u.data.row.payMode)), 1)
562
+ payMode: t((d) => [
563
+ r(i(o(c).payModeBizDict.getEnumValue(d.data.row.payMode)), 1)
559
564
  ]),
560
- operation: t((u) => [
565
+ operation: t((d) => [
561
566
  de((v(), B("span", {
562
567
  class: "el-button-color",
563
- onClick: (y) => H(u.data.row)
568
+ onClick: (y) => H(d.data.row)
564
569
  }, [
565
- r(p(a.$t("settleTradeAnalysis.view")), 1)
570
+ r(i(a.$t("settleTradeAnalysis.view")), 1)
566
571
  ], 8, $e)), [
567
572
  [ae, ["settle:settle_trade_analysis:view"]]
568
573
  ])
569
574
  ]),
570
575
  _: 2
571
576
  }, [
572
- (n = o(h)) != null && n.includes("@") ? {
577
+ (n = o(A)) != null && n.includes("@") ? {
573
578
  name: "agentCode",
574
- fn: t((u) => [
575
- r(p(L.value.agentAlias), 1)
579
+ fn: t((d) => [
580
+ r(i(L.value.agentAlias), 1)
576
581
  ]),
577
582
  key: "1"
578
583
  } : {
579
584
  name: "agentCode",
580
- fn: t((u) => [
581
- r(p(o(c).agentBizDict.getValue(u.data.row.agentCode)), 1)
585
+ fn: t((d) => [
586
+ r(i(o(c).agentBizDict.getValue(d.data.row.agentCode)), 1)
582
587
  ]),
583
588
  key: "0"
584
589
  }
@@ -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-Dbqhypfx.mjs";
3
- import { _ as b } from "./today.vue_vue_type_script_setup_true_lang-6aEPYmOn.mjs";
2
+ import { _ as f } from "./history.vue_vue_type_script_setup_true_lang-D1xiX4hr.mjs";
3
+ import { _ as b } from "./today.vue_vue_type_script_setup_true_lang-BX_CxX_E.mjs";
4
4
  const v = { class: "app-container" }, h = { class: "search-container" }, w = /* @__PURE__ */ r({
5
5
  __name: "index",
6
6
  setup(C) {