xyvcard-settle 0.0.46 → 0.0.47

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.
@@ -0,0 +1,33 @@
1
+ import { defineComponent as c, ref as r, resolveComponent as m, createElementBlock as _, openBlock as i, createElementVNode as p, createVNode as o, withCtx as d } from "vue";
2
+ import { _ as u } from "./history.vue_vue_type_script_setup_true_lang-DHKQSk8P.mjs";
3
+ import { _ as f } from "./today.vue_vue_type_script_setup_true_lang-qvHQZqwR.mjs";
4
+ const v = { class: "app-container" }, h = { class: "search-container" }, b = /* @__PURE__ */ c({
5
+ __name: "index",
6
+ setup(C) {
7
+ const e = r("one");
8
+ function a(t) {
9
+ e.value = t.props.name;
10
+ }
11
+ return (t, n) => {
12
+ const s = m("el-tabs");
13
+ return i(), _("div", v, [
14
+ p("div", h, [
15
+ o(s, {
16
+ modelValue: e.value,
17
+ "onUpdate:modelValue": n[0] || (n[0] = (l) => e.value = l),
18
+ onTabClick: a
19
+ }, {
20
+ default: d(() => [
21
+ o(u),
22
+ o(f)
23
+ ]),
24
+ _: 1
25
+ }, 8, ["modelValue"])
26
+ ])
27
+ ]);
28
+ };
29
+ }
30
+ });
31
+ export {
32
+ b as default
33
+ };
@@ -2,7 +2,7 @@ import { defineComponent as A, ref as u, resolveComponent as c, resolveDirective
2
2
  import { useRouter as w } from "vue-router";
3
3
  import { T, m as p } from "./trend-C4uCFrLb.mjs";
4
4
  import "jmash-core";
5
- import { h as v } from "./index-BpX-ZCaL.mjs";
5
+ import { h as v } from "./index-Cr3j3TRH.mjs";
6
6
  import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
7
7
  const M = { class: "app" }, P = { class: "app-title" }, E = { class: "row-container" }, V = { class: "tatals" }, B = { class: "tatal" }, N = { class: "text" }, S = { class: "tatal" }, F = { class: "text" }, H = { class: "tatal" }, I = { class: "text" }, R = { class: "tatal" }, j = { class: "text" }, q = { class: "tatals" }, z = { class: "tatal" }, G = { class: "text" }, J = { class: "tatal" }, K = { class: "text" }, L = { class: "tatal" }, O = { class: "text" }, Q = { class: "tatal" }, U = { class: "text" }, W = { class: "app-title-time" }, X = { class: "chart-header" }, Z = /* @__PURE__ */ A({
8
8
  __name: "index",
@@ -1,12 +1,12 @@
1
- import { defineComponent as x, getCurrentInstance as ee, ref as A, onActivated as ae, resolveComponent as b, createElementBlock as te, openBlock as $, createElementVNode as T, createVNode as a, withCtx as t, withKeys as v, unref as o, createBlock as D, createCommentVNode as z, withDirectives as le, vShow as oe, createTextVNode as n, toDisplayString as u, isRef as B } from "vue";
2
- import { useI18n as re } from "vue-i18n";
3
- import { useRoute as de } from "vue-router";
4
- import { useUserStore as P, clearEmpty as ne, request as se, useTableHooks as ue } from "jmash-core";
5
- import { tokenExt as pe } from "xyvcard-agent";
1
+ import { defineComponent as ee, getCurrentInstance as ae, ref as A, onActivated as te, resolveComponent as T, createElementBlock as le, openBlock as S, createElementVNode as b, createVNode as a, withCtx as t, withKeys as v, unref as o, createBlock as D, createCommentVNode as z, withDirectives as oe, vShow as re, createTextVNode as n, toDisplayString as u, isRef as B } from "vue";
2
+ import { useI18n as de } from "vue-i18n";
3
+ import { useRoute as ne, useRouter as se } from "vue-router";
4
+ import { useUserStore as P, clearEmpty as ue, request as pe, useTableHooks as me } from "jmash-core";
5
+ import { tokenExt as ie } from "xyvcard-agent";
6
6
  import { D as y, C as I } from "./index-yz18Lhpm.mjs";
7
- import { g as me } from "./merchant-D9rtENQd.mjs";
8
- import { g as ie } from "./agent-R-Ml-XTA.mjs";
9
- class ye {
7
+ import { g as ye } from "./merchant-D9rtENQd.mjs";
8
+ import { g as fe } from "./agent-R-Ml-XTA.mjs";
9
+ class Te {
10
10
  getKey(p) {
11
11
  return {
12
12
  billId: p.billId
@@ -15,22 +15,22 @@ class ye {
15
15
  // 查询翻页信息支付订单
16
16
  findPage(p) {
17
17
  const C = P().user.tenant;
18
- return p && (p.hasOrderStatus = p.orderStatus !== void 0, p.hasBillsStatus = p.billsStatus !== void 0, p.hasTradeType = p.tradeType !== void 0, p.hasPayMode = p.payMode !== void 0, p.hasTradeStatus = p.tradeStatus !== void 0), ne(p), se({
18
+ return p && (p.hasOrderStatus = p.orderStatus !== void 0, p.hasBillsStatus = p.billsStatus !== void 0, p.hasTradeType = p.tradeType !== void 0, p.hasPayMode = p.payMode !== void 0, p.hasTradeStatus = p.tradeStatus !== void 0), ue(p), pe({
19
19
  url: "/v1/payment/trade/page/" + C,
20
20
  method: "get",
21
21
  params: p
22
22
  });
23
23
  }
24
24
  }
25
- const fe = new ye(), be = { class: "app-container" }, Te = { class: "search-container" }, ve = { class: "total-num" }, ge = { class: "blue_color" }, Ce = { class: "blue_color" }, ce = { class: "blue_color" }, we = { class: "blue_color" }, Ve = { class: "blue_color" }, Ne = { class: "blue_color" }, $e = { class: "blue_color" }, Se = { class: "blue_color" }, ze = /* @__PURE__ */ x({
25
+ const be = new Te(), ve = { class: "app-container" }, ge = { class: "search-container" }, Ce = { class: "total-num" }, ce = { class: "blue_color" }, we = { class: "blue_color" }, Ve = { class: "blue_color" }, Ne = { class: "blue_color" }, $e = { class: "blue_color" }, Se = { class: "blue_color" }, Me = { class: "blue_color" }, Re = { class: "blue_color" }, Pe = /* @__PURE__ */ ee({
26
26
  __name: "index",
27
27
  setup(U) {
28
28
  y.instsBizDict.useValues(), y.agentBizDict.useValues(), y.agentAgreeBizDict.useValues(), y.merchantBizDict.useValues();
29
- const { t: p } = re(), { proxy: C } = ee(), S = de(), h = S.query.tenant, d = A({
30
- tokenExt: pe.getTokenExt(P().user.tenant)
31
- }), M = A([]);
32
- function E(r) {
33
- M.value = r, d.value.startCreateTime = C.$moment.formatDate(
29
+ const { t: p } = de(), { proxy: C } = ae(), M = ne(), E = se(), h = M.query.tenant, d = A({
30
+ tokenExt: ie.getTokenExt(P().user.tenant)
31
+ }), N = A([]);
32
+ function Q(r) {
33
+ N.value = r, d.value.startCreateTime = C.$moment.formatDate(
34
34
  r[0],
35
35
  I.RPC_FORMAT_TIME
36
36
  ), d.value.endCreateTime = C.$moment.formatDate(
@@ -40,13 +40,13 @@ const fe = new ye(), be = { class: "app-container" }, Te = { class: "search-cont
40
40
  }
41
41
  const {
42
42
  tableHooks: m,
43
- multipleTableRef: Q,
44
- queryFormRef: Y,
45
- listLoading: K,
46
- tableData: j,
43
+ multipleTableRef: Y,
44
+ queryFormRef: K,
45
+ listLoading: j,
46
+ tableData: O,
47
47
  total: R
48
- } = ue(p, fe, d);
49
- let g = m.totalRecord, N = A([
48
+ } = me(p, be, d);
49
+ let g = m.totalRecord, $ = A([
50
50
  // 序号
51
51
  {
52
52
  label: "payTrade.index",
@@ -217,31 +217,36 @@ const fe = new ye(), be = { class: "app-container" }, Te = { class: "search-cont
217
217
  isColumn: !0
218
218
  }
219
219
  ]);
220
- function O(r) {
220
+ function F(r) {
221
221
  m.selectionRows.value = r;
222
222
  }
223
- function F(r) {
223
+ function H(r) {
224
224
  m.handleSort(r.prop, r.order);
225
225
  }
226
- function H() {
227
- M.value = [], m.resetQuery();
226
+ function L() {
227
+ N.value = [], E.replace({
228
+ query: {}
229
+ }), m.resetQuery();
228
230
  }
229
- return ae(() => {
230
- const r = S.query.analysisTime;
231
- d.value.agentCode = S.query.agentCode, d.value.merchantId = S.query.merchantId, r && (d.value.startCreateTime = C.$moment.formatDate(
231
+ return te(() => {
232
+ const r = M.query.analysisTime;
233
+ d.value.agentCode = M.query.agentCode, d.value.merchantId = M.query.merchantId, r && (d.value.startCreateTime = C.$moment.formatDate(
232
234
  r,
233
235
  I.RPC_FORMAT_TIME
234
236
  ), d.value.endCreateTime = C.$moment.formatDate(
235
237
  r,
236
238
  I.RPC_FORMAT_TIME
237
- )), m.getList();
239
+ ), N.value = [
240
+ d.value.startCreateTime,
241
+ d.value.endCreateTime
242
+ ]), m.getList();
238
243
  }), (r, e) => {
239
- const k = b("el-input"), f = b("el-form-item"), s = b("el-col"), c = b("jmash-select"), w = b("el-row"), L = b("el-tree-select"), W = b("el-date-picker"), _ = b("el-button"), Z = b("el-form"), G = b("jmash-column-select"), J = b("jmash-table"), X = b("jmash-pagination"), q = b("el-card");
240
- return $(), te("div", be, [
241
- T("div", Te, [
242
- a(Z, {
244
+ const k = T("el-input"), f = T("el-form-item"), s = T("el-col"), c = T("jmash-select"), w = T("el-row"), W = T("el-tree-select"), Z = T("el-date-picker"), _ = T("el-button"), G = T("el-form"), J = T("jmash-column-select"), X = T("jmash-table"), q = T("jmash-pagination"), x = T("el-card");
245
+ return S(), le("div", ve, [
246
+ b("div", ge, [
247
+ a(G, {
243
248
  ref_key: "queryFormRef",
244
- ref: Y,
249
+ ref: K,
245
250
  model: d.value,
246
251
  inline: !0,
247
252
  "label-width": "6em"
@@ -408,7 +413,7 @@ const fe = new ye(), be = { class: "app-container" }, Te = { class: "search-cont
408
413
  ]),
409
414
  _: 1
410
415
  }),
411
- (l = o(h)) != null && l.includes("@") ? ($(), D(s, {
416
+ (l = o(h)) != null && l.includes("@") ? (S(), D(s, {
412
417
  key: 1,
413
418
  span: 6
414
419
  }, {
@@ -433,16 +438,17 @@ const fe = new ye(), be = { class: "app-container" }, Te = { class: "search-cont
433
438
  }, 8, ["label"])
434
439
  ]),
435
440
  _: 1
436
- })) : ($(), D(s, {
441
+ })) : (S(), D(s, {
437
442
  key: 0,
438
443
  span: 6
439
444
  }, {
440
445
  default: t(() => [
441
446
  a(f, {
442
- label: r.$t("settleTradeAnalysis.agentName")
447
+ label: r.$t("settleTradeAnalysis.agentName"),
448
+ prop: "agentCode"
443
449
  }, {
444
450
  default: t(() => [
445
- a(L, {
451
+ a(W, {
446
452
  modelValue: d.value.agentCode,
447
453
  "onUpdate:modelValue": e[14] || (e[14] = (i) => d.value.agentCode = i),
448
454
  data: o(y).agentAgreeBizDict.values,
@@ -466,7 +472,7 @@ const fe = new ye(), be = { class: "app-container" }, Te = { class: "search-cont
466
472
  default: t(() => {
467
473
  var l, i;
468
474
  return [
469
- (l = o(h)) != null && l.includes("@") ? z("", !0) : ($(), D(s, {
475
+ (l = o(h)) != null && l.includes("@") ? z("", !0) : (S(), D(s, {
470
476
  key: 0,
471
477
  span: 6
472
478
  }, {
@@ -499,21 +505,21 @@ const fe = new ye(), be = { class: "app-container" }, Te = { class: "search-cont
499
505
  prop: "startCreateTime"
500
506
  }, {
501
507
  default: t(() => [
502
- a(W, {
503
- modelValue: M.value,
504
- "onUpdate:modelValue": e[19] || (e[19] = (V) => M.value = V),
508
+ a(Z, {
509
+ modelValue: N.value,
510
+ "onUpdate:modelValue": e[19] || (e[19] = (V) => N.value = V),
505
511
  type: "daterange",
506
512
  "start-placeholder": r.$t("payTrade.startCreateTime"),
507
513
  "end-placeholder": r.$t("payTrade.endCreateTime"),
508
- onChange: E,
514
+ onChange: Q,
509
515
  format: "YYYY-MM-DD",
510
516
  "value-format": "YYYY-MM-DDTHH:mm:ssZ"
511
517
  }, null, 8, ["modelValue", "start-placeholder", "end-placeholder"])
512
518
  ]),
513
519
  _: 1
514
520
  }, 8, ["label"]),
515
- le(a(f, { prop: "endCreateTime" }, null, 512), [
516
- [oe, !1]
521
+ oe(a(f, { prop: "endCreateTime" }, null, 512), [
522
+ [re, !1]
517
523
  ])
518
524
  ]),
519
525
  _: 1
@@ -534,7 +540,7 @@ const fe = new ye(), be = { class: "app-container" }, Te = { class: "search-cont
534
540
  _: 1
535
541
  }),
536
542
  a(_, {
537
- onClick: e[21] || (e[21] = (V) => H())
543
+ onClick: e[21] || (e[21] = (V) => L())
538
544
  }, {
539
545
  default: t(() => [
540
546
  n(u(r.$t("common.reset")), 1)
@@ -554,9 +560,9 @@ const fe = new ye(), be = { class: "app-container" }, Te = { class: "search-cont
554
560
  ]),
555
561
  _: 1
556
562
  }, 8, ["model"]),
557
- e[27] || (e[27] = T("div", { class: "clear" }, null, -1))
563
+ e[27] || (e[27] = b("div", { class: "clear" }, null, -1))
558
564
  ]),
559
- a(q, {
565
+ a(x, {
560
566
  shadow: "never",
561
567
  class: "table-container"
562
568
  }, {
@@ -568,9 +574,9 @@ const fe = new ye(), be = { class: "app-container" }, Te = { class: "search-cont
568
574
  class: "container-float"
569
575
  }, {
570
576
  default: t(() => [
571
- a(G, {
572
- modelValue: o(N),
573
- "onUpdate:modelValue": e[22] || (e[22] = (l) => B(N) ? N.value = l : N = l),
577
+ a(J, {
578
+ modelValue: o($),
579
+ "onUpdate:modelValue": e[22] || (e[22] = (l) => B($) ? $.value = l : $ = l),
574
580
  "label-name": "settle/settle-trade-analysis"
575
581
  }, null, 8, ["modelValue"])
576
582
  ]),
@@ -581,7 +587,7 @@ const fe = new ye(), be = { class: "app-container" }, Te = { class: "search-cont
581
587
  })
582
588
  ]),
583
589
  footer: t(() => [
584
- o(R) > 0 ? ($(), D(X, {
590
+ o(R) > 0 ? (S(), D(q, {
585
591
  key: 0,
586
592
  total: o(R),
587
593
  "onUpdate:total": e[23] || (e[23] = (l) => B(R) ? R.value = l : null),
@@ -593,13 +599,13 @@ const fe = new ye(), be = { class: "app-container" }, Te = { class: "search-cont
593
599
  }, null, 8, ["total", "current-page", "page-size"])) : z("", !0)
594
600
  ]),
595
601
  default: t(() => [
596
- T("div", ve, [
602
+ b("div", Ce, [
597
603
  a(w, { gutter: 20 }, {
598
604
  default: t(() => [
599
605
  a(s, { span: 5 }, {
600
606
  default: t(() => [
601
607
  e[28] || (e[28] = n(" 订单笔数: ")),
602
- T("span", ge, u(o(g).totalSize), 1),
608
+ b("span", ce, u(o(g).totalSize), 1),
603
609
  e[29] || (e[29] = n(" 笔 "))
604
610
  ]),
605
611
  _: 1
@@ -607,7 +613,7 @@ const fe = new ye(), be = { class: "app-container" }, Te = { class: "search-cont
607
613
  a(s, { span: 5 }, {
608
614
  default: t(() => [
609
615
  e[30] || (e[30] = n(" 订单金额: ")),
610
- T("span", Ce, u(o(g).totalAmount), 1),
616
+ b("span", we, u(o(g).totalAmount), 1),
611
617
  e[31] || (e[31] = n(" 元 "))
612
618
  ]),
613
619
  _: 1
@@ -615,7 +621,7 @@ const fe = new ye(), be = { class: "app-container" }, Te = { class: "search-cont
615
621
  a(s, { span: 5 }, {
616
622
  default: t(() => [
617
623
  e[32] || (e[32] = n(" 优惠金额: ")),
618
- T("span", ce, u(o(g).discountAmount), 1),
624
+ b("span", Ve, u(o(g).discountAmount), 1),
619
625
  e[33] || (e[33] = n(" 元 "))
620
626
  ]),
621
627
  _: 1
@@ -623,7 +629,7 @@ const fe = new ye(), be = { class: "app-container" }, Te = { class: "search-cont
623
629
  a(s, { span: 5 }, {
624
630
  default: t(() => [
625
631
  e[34] || (e[34] = n(" 交易金额: ")),
626
- T("span", we, u(o(g).tradeAmount), 1),
632
+ b("span", Ne, u(o(g).tradeAmount), 1),
627
633
  e[35] || (e[35] = n(" 元 "))
628
634
  ]),
629
635
  _: 1
@@ -639,7 +645,7 @@ const fe = new ye(), be = { class: "app-container" }, Te = { class: "search-cont
639
645
  a(s, { span: 5 }, {
640
646
  default: t(() => [
641
647
  e[36] || (e[36] = n(" 收款笔数: ")),
642
- T("span", Ve, u(o(g).paidOrder), 1),
648
+ b("span", $e, u(o(g).paidOrder), 1),
643
649
  e[37] || (e[37] = n(" 笔 "))
644
650
  ]),
645
651
  _: 1
@@ -647,7 +653,7 @@ const fe = new ye(), be = { class: "app-container" }, Te = { class: "search-cont
647
653
  a(s, { span: 5 }, {
648
654
  default: t(() => [
649
655
  e[38] || (e[38] = n(" 收款金额: ")),
650
- T("span", Ne, u(o(g).paidAmount), 1),
656
+ b("span", Se, u(o(g).paidAmount), 1),
651
657
  e[39] || (e[39] = n(" 元 "))
652
658
  ]),
653
659
  _: 1
@@ -655,7 +661,7 @@ const fe = new ye(), be = { class: "app-container" }, Te = { class: "search-cont
655
661
  a(s, { span: 5 }, {
656
662
  default: t(() => [
657
663
  e[40] || (e[40] = n(" 退款笔数: ")),
658
- T("span", $e, u(o(g).refundOrder), 1),
664
+ b("span", Me, u(o(g).refundOrder), 1),
659
665
  e[41] || (e[41] = n(" 笔 "))
660
666
  ]),
661
667
  _: 1
@@ -663,7 +669,7 @@ const fe = new ye(), be = { class: "app-container" }, Te = { class: "search-cont
663
669
  a(s, { span: 5 }, {
664
670
  default: t(() => [
665
671
  e[42] || (e[42] = n(" 退款金额: ")),
666
- T("span", Se, u(o(g).refundAmount), 1),
672
+ b("span", Re, u(o(g).refundAmount), 1),
667
673
  e[43] || (e[43] = n(" 元 "))
668
674
  ]),
669
675
  _: 1
@@ -672,16 +678,16 @@ const fe = new ye(), be = { class: "app-container" }, Te = { class: "search-cont
672
678
  _: 1
673
679
  })
674
680
  ]),
675
- a(J, {
681
+ a(X, {
676
682
  ref_key: "multipleTableRef",
677
- ref: Q,
683
+ ref: Y,
678
684
  "row-key": "payTradePk",
679
685
  isSelection: !1,
680
- "list-loading": o(K),
681
- data: o(j),
682
- "table-label": o(N),
683
- onSelectionChange: O,
684
- onSortChange: F
686
+ "list-loading": o(j),
687
+ data: o(O),
688
+ "table-label": o($),
689
+ onSelectionChange: F,
690
+ onSortChange: H
685
691
  }, {
686
692
  feeRatePct: t((l) => [
687
693
  n(u(l.data.row.feeRatePct) + "% ", 1)
@@ -699,7 +705,7 @@ const fe = new ye(), be = { class: "app-container" }, Te = { class: "search-cont
699
705
  n(u(o(y).payModeBizDict.getEnumValue(l.data.row.payMode)), 1)
700
706
  ]),
701
707
  merchantId: t((l) => [
702
- n(u(o(me)(l.data.row.merchantId)), 1)
708
+ n(u(o(ye)(l.data.row.merchantId)), 1)
703
709
  ]),
704
710
  tradeTime: t((l) => [
705
711
  n(u(o(C).$moment.formatDate(
@@ -708,7 +714,7 @@ const fe = new ye(), be = { class: "app-container" }, Te = { class: "search-cont
708
714
  )), 1)
709
715
  ]),
710
716
  agentCode: t((l) => [
711
- n(u(o(ie)(l.data.row.agentCode)), 1)
717
+ n(u(o(fe)(l.data.row.agentCode)), 1)
712
718
  ]),
713
719
  _: 1
714
720
  }, 8, ["list-loading", "data", "table-label"])
@@ -720,5 +726,5 @@ const fe = new ye(), be = { class: "app-container" }, Te = { class: "search-cont
720
726
  }
721
727
  });
722
728
  export {
723
- ze as default
729
+ Pe as default
724
730
  };
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import "jmash-core";
2
- import { a as o, s as t, m as i, p as s, b as g } from "./index-BpX-ZCaL.mjs";
2
+ import { a as o, s as t, m as i, p as s, b as g } from "./index-Cr3j3TRH.mjs";
3
3
  export {
4
4
  o as agentHomePage,
5
5
  t as default,