xyvcard-settle 0.0.48 → 0.0.49

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 (20) hide show
  1. package/dist/{history-BxhHHLWl.mjs → history-CMyJKuis.mjs} +1 -1
  2. package/dist/{history-DV6dRTjD.mjs → history-DWaN_Nrb.mjs} +1 -1
  3. package/dist/{history.vue_vue_type_script_setup_true_lang-NWz9Rtma.mjs → history.vue_vue_type_script_setup_true_lang-CN1lANPU.mjs} +71 -70
  4. package/dist/{history.vue_vue_type_script_setup_true_lang-DW21qIII.mjs → history.vue_vue_type_script_setup_true_lang-D58mkVIs.mjs} +96 -95
  5. package/dist/{index-BbgmsRx0.mjs → index-BeU6u9hH.mjs} +84 -83
  6. package/dist/{index-CiDstsD9.mjs → index-BmSUfSfV.mjs} +76 -75
  7. package/dist/{index-CfdbNSq8.mjs → index-C6IvQBy0.mjs} +77 -76
  8. package/dist/{index-1jun1BI_.mjs → index-CVrtwq6W.mjs} +61 -60
  9. package/dist/{index-CaBORY0Z.mjs → index-Cw3Bhtc2.mjs} +74 -73
  10. package/dist/{index-D4jXgbZE.mjs → index-D8LRYlta.mjs} +2 -2
  11. package/dist/{index-CgbOnDFk.mjs → index-Ds4E1nsC.mjs} +1 -1
  12. package/dist/{index-C4pzKlKF.mjs → index-IYVODwmA.mjs} +2 -2
  13. package/dist/{index-BCg9UNFw.mjs → index-LT7qO1_c.mjs} +76 -75
  14. package/dist/{index-B4SCq7KH.mjs → index-ZwyAUTzX.mjs} +2 -2
  15. package/dist/index.mjs +1 -1
  16. package/dist/{today-CryQp8d6.mjs → today-BU8dRQhE.mjs} +1 -1
  17. package/dist/{today-raAsbnbG.mjs → today-DO4wIwlZ.mjs} +1 -1
  18. package/dist/{today.vue_vue_type_script_setup_true_lang-CyItbZLa.mjs → today.vue_vue_type_script_setup_true_lang-D4qdtIMP.mjs} +51 -50
  19. package/dist/{today.vue_vue_type_script_setup_true_lang-CBnBjp2N.mjs → today.vue_vue_type_script_setup_true_lang-DjOblIO6.mjs} +103 -102
  20. package/package.json +1 -1
@@ -1,13 +1,13 @@
1
- import { defineComponent as Z, getCurrentInstance as G, ref as A, resolveComponent as b, createElementBlock as J, openBlock as D, createElementVNode as f, createVNode as t, withCtx as a, withKeys as g, unref as d, createBlock as k, createCommentVNode as B, withDirectives as X, vShow as q, createTextVNode as n, toDisplayString as p, isRef as U } from "vue";
2
- import { useI18n as ee } from "vue-i18n";
3
- import { useRoute as te } from "vue-router";
4
- import { useUserStore as P, clearEmpty as ae, request as le, useTableHooks as oe } from "jmash-core";
5
- import { tokenExt as re } from "xyvcard-agent";
1
+ import { defineComponent as J, getCurrentInstance as X, ref as A, resolveComponent as b, resolveDirective as q, createElementBlock as ee, openBlock as V, createElementVNode as f, createVNode as t, withCtx as a, withKeys as g, unref as d, createBlock as k, createCommentVNode as B, withDirectives as U, vShow as te, createTextVNode as n, toDisplayString as p, isRef as P } from "vue";
2
+ import { useI18n as ae } from "vue-i18n";
3
+ import { useRoute as le } from "vue-router";
4
+ import { useUserStore as E, clearEmpty as oe, request as re, useTableHooks as de } from "jmash-core";
5
+ import { tokenExt as ne } from "xyvcard-agent";
6
6
  import { D as m } from "./index-BgbsFf1D.mjs";
7
- import { g as de } from "./merchant-D9rtENQd.mjs";
8
- import { g as ne } from "./agent-R-Ml-XTA.mjs";
9
- import { DateRange as se } from "xyvcard-insts";
10
- class ue {
7
+ import { g as se } from "./merchant-D9rtENQd.mjs";
8
+ import { g as ue } from "./agent-R-Ml-XTA.mjs";
9
+ import { DateRange as pe } from "xyvcard-insts";
10
+ class ie {
11
11
  getKey(u) {
12
12
  return {
13
13
  billId: u.billId
@@ -15,29 +15,29 @@ class ue {
15
15
  }
16
16
  // 查询翻页历史信息支付订单
17
17
  findPage(u) {
18
- const c = P().user.tenant;
19
- return u && (u.hasOrderStatus = u.orderStatus !== void 0, u.hasBillsStatus = u.billsStatus !== void 0, u.hasTradeType = u.tradeType !== void 0, u.hasPayMode = u.payMode !== void 0, u.hasTradeStatus = u.tradeStatus !== void 0), ae(u), le({
20
- url: "/v1/payment/history/trade/page/" + c,
18
+ const N = E().user.tenant;
19
+ return u && (u.hasOrderStatus = u.orderStatus !== void 0, u.hasBillsStatus = u.billsStatus !== void 0, u.hasTradeType = u.tradeType !== void 0, u.hasPayMode = u.payMode !== void 0, u.hasTradeStatus = u.tradeStatus !== void 0), oe(u), re({
20
+ url: "/v1/payment/history/trade/page/" + N,
21
21
  method: "get",
22
22
  params: u
23
23
  });
24
24
  }
25
25
  }
26
- const pe = new ue(), ie = { class: "app-container" }, me = { class: "search-container" }, ye = { class: "total-num" }, be = { class: "blue_color" }, fe = { class: "blue_color" }, Te = { class: "blue_color" }, ve = { class: "blue_color" }, ge = { class: "blue_color" }, we = { class: "blue_color" }, Ce = { class: "blue_color" }, Ve = { class: "blue_color" }, ze = /* @__PURE__ */ Z({
26
+ const me = new ie(), ye = { class: "app-container" }, be = { class: "search-container" }, fe = { class: "total-num" }, Te = { class: "blue_color" }, ve = { class: "blue_color" }, ge = { class: "blue_color" }, we = { class: "blue_color" }, Ce = { class: "blue_color" }, ce = { class: "blue_color" }, Ve = { class: "blue_color" }, Ne = { class: "blue_color" }, Be = /* @__PURE__ */ J({
27
27
  __name: "index",
28
- setup(E) {
28
+ setup(Y) {
29
29
  m.instsBizDict.useValues(), m.agentBizDict.useValues(), m.agentAgreeBizDict.useValues(), m.merchantBizDict.useValues();
30
- const { t: u } = ee(), { proxy: c } = G(), M = te().query.tenant, o = A({
31
- tokenExt: re.getTokenExt(P().user.tenant)
30
+ const { t: u } = ae(), { proxy: N } = X(), M = le().query.tenant, o = A({
31
+ tokenExt: ne.getTokenExt(E().user.tenant)
32
32
  }), {
33
- tableHooks: N,
34
- multipleTableRef: Y,
33
+ tableHooks: S,
34
+ multipleTableRef: _,
35
35
  queryFormRef: I,
36
36
  listLoading: K,
37
37
  tableData: h,
38
- total: S
39
- } = oe(u, pe, o);
40
- let v = N.totalRecord, $ = A([
38
+ total: $
39
+ } = de(u, me, o);
40
+ let v = S.totalRecord, D = A([
41
41
  // 序号
42
42
  {
43
43
  label: "payTrade.index",
@@ -208,23 +208,23 @@ const pe = new ue(), ie = { class: "app-container" }, me = { class: "search-cont
208
208
  isColumn: !0
209
209
  }
210
210
  ]);
211
- function _(r) {
212
- N.selectionRows.value = r;
213
- }
214
211
  function j(r) {
215
- N.handleSort(r.prop, r.order);
212
+ S.selectionRows.value = r;
213
+ }
214
+ function H(r) {
215
+ S.handleSort(r.prop, r.order);
216
216
  }
217
217
  const T = () => {
218
218
  if (!o.value.startCreateTime || !o.value.endCreateTime) {
219
- c.$message.error(u("payTrade.payTimeRequired"));
219
+ N.$message.error(u("payTrade.payTimeRequired"));
220
220
  return;
221
221
  }
222
222
  if (!Object.keys(o.value).some((e) => e === "tokenExt" || e === "curPage" || e === "pageSize" ? !1 : !!o.value[e])) {
223
- c.$message.warning(u("payTrade.needAtLeastOneCondition"));
223
+ N.$message.warning(u("payTrade.needAtLeastOneCondition"));
224
224
  return;
225
225
  }
226
- N.handleQuery();
227
- }, H = () => {
226
+ S.handleQuery();
227
+ }, O = () => {
228
228
  var e;
229
229
  const r = o.value.tokenExt;
230
230
  o.value = {
@@ -233,15 +233,15 @@ const pe = new ue(), ie = { class: "app-container" }, me = { class: "search-cont
233
233
  // 重置页码
234
234
  pageSize: 10
235
235
  // 重置每页数量
236
- }, h.value = [], S.value = 0, v.value = {
236
+ }, h.value = [], $.value = 0, v.value = {
237
237
  totalSize: 0
238
238
  }, (e = I.value) == null || e.resetFields();
239
239
  };
240
240
  return (r, e) => {
241
- const R = b("el-input"), y = b("el-form-item"), s = b("el-col"), C = b("jmash-select"), V = b("el-row"), O = b("el-tree-select"), z = b("el-button"), L = b("el-form"), F = b("jmash-column-select"), Q = b("jmash-table"), W = b("jmash-pagination"), x = b("el-card");
242
- return D(), J("div", ie, [
243
- f("div", me, [
244
- t(L, {
241
+ const R = b("el-input"), y = b("el-form-item"), s = b("el-col"), C = b("jmash-select"), c = b("el-row"), L = b("el-tree-select"), z = b("el-button"), F = b("el-form"), Q = b("jmash-column-select"), W = b("jmash-table"), x = b("jmash-pagination"), Z = b("el-card"), G = q("loading");
242
+ return V(), ee("div", ye, [
243
+ f("div", be, [
244
+ t(F, {
245
245
  ref_key: "queryFormRef",
246
246
  ref: I,
247
247
  model: o.value,
@@ -249,7 +249,7 @@ const pe = new ue(), ie = { class: "app-container" }, me = { class: "search-cont
249
249
  "label-width": "6em"
250
250
  }, {
251
251
  default: a(() => [
252
- t(V, null, {
252
+ t(c, null, {
253
253
  default: a(() => [
254
254
  t(s, { span: 6 }, {
255
255
  default: a(() => [
@@ -340,7 +340,7 @@ const pe = new ue(), ie = { class: "app-container" }, me = { class: "search-cont
340
340
  ]),
341
341
  _: 1
342
342
  }),
343
- t(V, null, {
343
+ t(c, null, {
344
344
  default: a(() => {
345
345
  var l;
346
346
  return [
@@ -410,7 +410,7 @@ const pe = new ue(), ie = { class: "app-container" }, me = { class: "search-cont
410
410
  ]),
411
411
  _: 1
412
412
  }),
413
- (l = d(M)) != null && l.includes("@") ? (D(), k(s, {
413
+ (l = d(M)) != null && l.includes("@") ? (V(), k(s, {
414
414
  key: 1,
415
415
  span: 6
416
416
  }, {
@@ -435,7 +435,7 @@ const pe = new ue(), ie = { class: "app-container" }, me = { class: "search-cont
435
435
  }, 8, ["label"])
436
436
  ]),
437
437
  _: 1
438
- })) : (D(), k(s, {
438
+ })) : (V(), k(s, {
439
439
  key: 0,
440
440
  span: 6
441
441
  }, {
@@ -444,7 +444,7 @@ const pe = new ue(), ie = { class: "app-container" }, me = { class: "search-cont
444
444
  label: r.$t("settleTradeAnalysis.agentName")
445
445
  }, {
446
446
  default: a(() => [
447
- t(O, {
447
+ t(L, {
448
448
  modelValue: o.value.agentCode,
449
449
  "onUpdate:modelValue": e[14] || (e[14] = (i) => o.value.agentCode = i),
450
450
  data: d(m).agentAgreeBizDict.values,
@@ -464,11 +464,11 @@ const pe = new ue(), ie = { class: "app-container" }, me = { class: "search-cont
464
464
  }),
465
465
  _: 1
466
466
  }),
467
- t(V, null, {
467
+ t(c, null, {
468
468
  default: a(() => {
469
469
  var l, i;
470
470
  return [
471
- (l = d(M)) != null && l.includes("@") ? B("", !0) : (D(), k(s, {
471
+ (l = d(M)) != null && l.includes("@") ? B("", !0) : (V(), k(s, {
472
472
  key: 0,
473
473
  span: 6
474
474
  }, {
@@ -501,7 +501,7 @@ const pe = new ue(), ie = { class: "app-container" }, me = { class: "search-cont
501
501
  prop: "startCreateTime"
502
502
  }, {
503
503
  default: a(() => [
504
- t(d(se), {
504
+ t(d(pe), {
505
505
  "start-time": o.value.startCreateTime,
506
506
  "onUpdate:startTime": e[19] || (e[19] = (w) => o.value.startCreateTime = w),
507
507
  "end-time": o.value.endCreateTime,
@@ -515,8 +515,8 @@ const pe = new ue(), ie = { class: "app-container" }, me = { class: "search-cont
515
515
  ]),
516
516
  _: 1
517
517
  }, 8, ["label"]),
518
- X(t(y, { prop: "endCreateTime" }, null, 512), [
519
- [q, !1]
518
+ U(t(y, { prop: "endCreateTime" }, null, 512), [
519
+ [te, !1]
520
520
  ])
521
521
  ]),
522
522
  _: 1
@@ -536,7 +536,7 @@ const pe = new ue(), ie = { class: "app-container" }, me = { class: "search-cont
536
536
  ]),
537
537
  _: 1
538
538
  }),
539
- t(z, { onClick: H }, {
539
+ t(z, { onClick: O }, {
540
540
  default: a(() => [
541
541
  n(p(r.$t("common.reset")), 1)
542
542
  ]),
@@ -557,21 +557,21 @@ const pe = new ue(), ie = { class: "app-container" }, me = { class: "search-cont
557
557
  }, 8, ["model"]),
558
558
  e[27] || (e[27] = f("div", { class: "clear" }, null, -1))
559
559
  ]),
560
- t(x, {
560
+ t(Z, {
561
561
  shadow: "never",
562
562
  class: "table-container"
563
563
  }, {
564
564
  header: a(() => [
565
- t(V, null, {
565
+ t(c, null, {
566
566
  default: a(() => [
567
567
  t(s, {
568
568
  span: 24,
569
569
  class: "container-float"
570
570
  }, {
571
571
  default: a(() => [
572
- t(F, {
573
- modelValue: d($),
574
- "onUpdate:modelValue": e[22] || (e[22] = (l) => U($) ? $.value = l : $ = l),
572
+ t(Q, {
573
+ modelValue: d(D),
574
+ "onUpdate:modelValue": e[22] || (e[22] = (l) => P(D) ? D.value = l : D = l),
575
575
  "label-name": "settle/settle-trade-analysis"
576
576
  }, null, 8, ["modelValue"])
577
577
  ]),
@@ -582,25 +582,25 @@ const pe = new ue(), ie = { class: "app-container" }, me = { class: "search-cont
582
582
  })
583
583
  ]),
584
584
  footer: a(() => [
585
- d(S) > 0 ? (D(), k(W, {
585
+ d($) > 0 ? (V(), k(x, {
586
586
  key: 0,
587
- total: d(S),
588
- "onUpdate:total": e[23] || (e[23] = (l) => U(S) ? S.value = l : null),
587
+ total: d($),
588
+ "onUpdate:total": e[23] || (e[23] = (l) => P($) ? $.value = l : null),
589
589
  "current-page": o.value.curPage,
590
590
  "onUpdate:currentPage": e[24] || (e[24] = (l) => o.value.curPage = l),
591
591
  "page-size": o.value.pageSize,
592
592
  "onUpdate:pageSize": e[25] || (e[25] = (l) => o.value.pageSize = l),
593
- onPagination: e[26] || (e[26] = (l) => d(N).getList())
593
+ onPagination: e[26] || (e[26] = (l) => d(S).getList())
594
594
  }, null, 8, ["total", "current-page", "page-size"])) : B("", !0)
595
595
  ]),
596
596
  default: a(() => [
597
- f("div", ye, [
598
- t(V, { gutter: 20 }, {
597
+ f("div", fe, [
598
+ t(c, { gutter: 20 }, {
599
599
  default: a(() => [
600
600
  t(s, { span: 5 }, {
601
601
  default: a(() => [
602
602
  e[28] || (e[28] = n(" 订单笔数: ")),
603
- f("span", be, p(d(v).totalSize || 0), 1),
603
+ f("span", Te, p(d(v).totalSize || 0), 1),
604
604
  e[29] || (e[29] = n(" 笔 "))
605
605
  ]),
606
606
  _: 1
@@ -608,7 +608,7 @@ const pe = new ue(), ie = { class: "app-container" }, me = { class: "search-cont
608
608
  t(s, { span: 5 }, {
609
609
  default: a(() => [
610
610
  e[30] || (e[30] = n(" 订单金额: ")),
611
- f("span", fe, p(d(v).totalAmount || 0), 1),
611
+ f("span", ve, p(d(v).totalAmount || 0), 1),
612
612
  e[31] || (e[31] = n(" 元 "))
613
613
  ]),
614
614
  _: 1
@@ -616,7 +616,7 @@ const pe = new ue(), ie = { class: "app-container" }, me = { class: "search-cont
616
616
  t(s, { span: 5 }, {
617
617
  default: a(() => [
618
618
  e[32] || (e[32] = n(" 优惠金额: ")),
619
- f("span", Te, p(d(v).discountAmount || 0), 1),
619
+ f("span", ge, p(d(v).discountAmount || 0), 1),
620
620
  e[33] || (e[33] = n(" 元 "))
621
621
  ]),
622
622
  _: 1
@@ -624,7 +624,7 @@ const pe = new ue(), ie = { class: "app-container" }, me = { class: "search-cont
624
624
  t(s, { span: 5 }, {
625
625
  default: a(() => [
626
626
  e[34] || (e[34] = n(" 交易金额: ")),
627
- f("span", ve, p(d(v).tradeAmount || 0), 1),
627
+ f("span", we, p(d(v).tradeAmount || 0), 1),
628
628
  e[35] || (e[35] = n(" 元 "))
629
629
  ]),
630
630
  _: 1
@@ -632,7 +632,7 @@ const pe = new ue(), ie = { class: "app-container" }, me = { class: "search-cont
632
632
  ]),
633
633
  _: 1
634
634
  }),
635
- t(V, {
635
+ t(c, {
636
636
  gutter: 20,
637
637
  style: { "margin-top": "10px" }
638
638
  }, {
@@ -640,7 +640,7 @@ const pe = new ue(), ie = { class: "app-container" }, me = { class: "search-cont
640
640
  t(s, { span: 5 }, {
641
641
  default: a(() => [
642
642
  e[36] || (e[36] = n(" 收款笔数: ")),
643
- f("span", ge, p(d(v).paidOrder || 0), 1),
643
+ f("span", Ce, p(d(v).paidOrder || 0), 1),
644
644
  e[37] || (e[37] = n(" 笔 "))
645
645
  ]),
646
646
  _: 1
@@ -648,7 +648,7 @@ const pe = new ue(), ie = { class: "app-container" }, me = { class: "search-cont
648
648
  t(s, { span: 5 }, {
649
649
  default: a(() => [
650
650
  e[38] || (e[38] = n(" 收款金额: ")),
651
- f("span", we, p(d(v).paidAmount || 0), 1),
651
+ f("span", ce, p(d(v).paidAmount || 0), 1),
652
652
  e[39] || (e[39] = n(" 元 "))
653
653
  ]),
654
654
  _: 1
@@ -656,7 +656,7 @@ const pe = new ue(), ie = { class: "app-container" }, me = { class: "search-cont
656
656
  t(s, { span: 5 }, {
657
657
  default: a(() => [
658
658
  e[40] || (e[40] = n(" 退款笔数: ")),
659
- f("span", Ce, p(d(v).refundOrder || 0), 1),
659
+ f("span", Ve, p(d(v).refundOrder || 0), 1),
660
660
  e[41] || (e[41] = n(" 笔 "))
661
661
  ]),
662
662
  _: 1
@@ -664,7 +664,7 @@ const pe = new ue(), ie = { class: "app-container" }, me = { class: "search-cont
664
664
  t(s, { span: 5 }, {
665
665
  default: a(() => [
666
666
  e[42] || (e[42] = n(" 退款金额: ")),
667
- f("span", Ve, p(d(v).refundAmount || 0), 1),
667
+ f("span", Ne, p(d(v).refundAmount || 0), 1),
668
668
  e[43] || (e[43] = n(" 元 "))
669
669
  ]),
670
670
  _: 1
@@ -673,16 +673,15 @@ const pe = new ue(), ie = { class: "app-container" }, me = { class: "search-cont
673
673
  _: 1
674
674
  })
675
675
  ]),
676
- t(Q, {
676
+ U((V(), k(W, {
677
677
  ref_key: "multipleTableRef",
678
- ref: Y,
678
+ ref: _,
679
679
  "row-key": "payTradePk",
680
680
  isSelection: !1,
681
- "list-loading": d(K),
682
681
  data: d(h),
683
- "table-label": d($),
684
- onSelectionChange: _,
685
- onSortChange: j
682
+ "table-label": d(D),
683
+ onSelectionChange: j,
684
+ onSortChange: H
686
685
  }, {
687
686
  feeRatePct: a((l) => [
688
687
  n(p(l.data.row.feeRatePct) + "% ", 1)
@@ -700,19 +699,21 @@ const pe = new ue(), ie = { class: "app-container" }, me = { class: "search-cont
700
699
  n(p(d(m).payModeBizDict.getEnumValue(l.data.row.payMode)), 1)
701
700
  ]),
702
701
  merchantId: a((l) => [
703
- n(p(d(de)(l.data.row.merchantId)), 1)
702
+ n(p(d(se)(l.data.row.merchantId)), 1)
704
703
  ]),
705
704
  tradeTime: a((l) => [
706
- n(p(d(c).$moment.formatDate(
705
+ n(p(d(N).$moment.formatDate(
707
706
  l.data.row.tradeTime,
708
707
  "YYYY-MM-DD HH:mm"
709
708
  )), 1)
710
709
  ]),
711
710
  agentCode: a((l) => [
712
- n(p(d(ne)(l.data.row.agentCode)), 1)
711
+ n(p(d(ue)(l.data.row.agentCode)), 1)
713
712
  ]),
714
713
  _: 1
715
- }, 8, ["list-loading", "data", "table-label"])
714
+ }, 8, ["data", "table-label"])), [
715
+ [G, d(K)]
716
+ ])
716
717
  ]),
717
718
  _: 1
718
719
  })
@@ -721,5 +722,5 @@ const pe = new ue(), ie = { class: "app-container" }, me = { class: "search-cont
721
722
  }
722
723
  });
723
724
  export {
724
- ze as default
725
+ Be as default
725
726
  };