@pangu-backend-ui/finance-core 0.0.1 → 0.0.2

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 (3) hide show
  1. package/index.js +132 -132
  2. package/index.umd.cjs +1 -1
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -1,14 +1,14 @@
1
- import { defineComponent as L, ref as D, resolveComponent as o, openBlock as n, createBlock as p, withCtx as l, createVNode as e, createTextVNode as r, createCommentVNode as y, shallowRef as B, inject as O, toDisplayString as w, createElementVNode as H, resolveDirective as Q, createElementBlock as E, Fragment as R, withDirectives as X, watch as z, renderList as $ } from "vue";
1
+ import { defineComponent as L, ref as D, onBeforeMount as Q, resolveComponent as o, openBlock as n, createBlock as p, withCtx as l, createVNode as e, createTextVNode as r, createCommentVNode as y, shallowRef as B, inject as O, toDisplayString as w, createElementVNode as H, resolveDirective as X, createElementBlock as E, Fragment as R, withDirectives as Z, watch as z, renderList as $ } from "vue";
2
2
  import { useUserCoreConfigStore as J } from "@pangu-backend-ui/user-core";
3
- import { ElMessage as Y, ElLoading as Z } from "element-plus";
4
- const ee = /* @__PURE__ */ L({
3
+ import { ElMessage as Y, ElLoading as ee } from "element-plus";
4
+ const le = /* @__PURE__ */ L({
5
5
  __name: "UserWithdrawHistoryComp",
6
6
  props: ["userId"],
7
7
  setup(V) {
8
- const a = D({
9
- userId: V.userId
8
+ const _ = V, a = D({
9
+ userId: _.userId
10
10
  });
11
- return (c, _) => {
11
+ return Q(() => a.value.userId = _.userId), (c, f) => {
12
12
  const u = o("el-table-column"), C = o("el-tag"), g = o("pg-table");
13
13
  return n(), p(g, {
14
14
  "data-url": "/api/withdraw/records",
@@ -108,31 +108,31 @@ const ee = /* @__PURE__ */ L({
108
108
  }, 8, ["condition"]);
109
109
  };
110
110
  }
111
- }), le = {
111
+ }), te = {
112
112
  install: () => {
113
113
  J().userDetailDialogTabs.push({
114
114
  name: "提现历史",
115
115
  code: "WITHDRAW_HISTORY",
116
- component: B(ee)
116
+ component: B(le)
117
117
  });
118
118
  }
119
- }, te = /* @__PURE__ */ L({
119
+ }, ae = /* @__PURE__ */ L({
120
120
  __name: "UserWithdrawMethodComp",
121
121
  props: ["userId"],
122
122
  setup(V) {
123
- const b = V, a = D(), c = O("http");
124
- function _(u) {
123
+ const _ = V, a = D(), c = O("http");
124
+ function f(u) {
125
125
  c == null || c.post(`/api/withdraw/method/${u}/invalid`).then((C) => {
126
126
  Y.success("操作成功"), a.value.search();
127
127
  });
128
128
  }
129
129
  return (u, C) => {
130
- const g = o("el-table-column"), v = o("el-image"), s = o("el-tag"), f = o("el-button"), x = o("el-popconfirm"), T = o("pg-table");
130
+ const g = o("el-table-column"), v = o("el-image"), s = o("el-tag"), h = o("el-button"), x = o("el-popconfirm"), T = o("pg-table");
131
131
  return n(), p(T, {
132
132
  ref_key: "table",
133
133
  ref: a,
134
134
  "data-url": "/api/withdraw/method",
135
- condition: { userId: b.userId }
135
+ condition: { userId: _.userId }
136
136
  }, {
137
137
  columns: l(() => [
138
138
  e(g, {
@@ -256,10 +256,10 @@ const ee = /* @__PURE__ */ L({
256
256
  d.status == "VALID" ? (n(), p(x, {
257
257
  key: 0,
258
258
  title: "确定要失效该提现方式吗?",
259
- onConfirm: (U) => _(d.id)
259
+ onConfirm: (U) => f(d.id)
260
260
  }, {
261
261
  reference: l(() => [
262
- e(f, {
262
+ e(h, {
263
263
  type: "danger",
264
264
  icon: "circle-close-filled",
265
265
  circle: ""
@@ -275,23 +275,23 @@ const ee = /* @__PURE__ */ L({
275
275
  }, 8, ["condition"]);
276
276
  };
277
277
  }
278
- }), ae = {
278
+ }), oe = {
279
279
  install: () => {
280
280
  J().userDetailDialogTabs.push({
281
281
  name: "提现方式",
282
282
  code: "WITHDRAW_METHOD",
283
- component: B(te)
283
+ component: B(ae)
284
284
  });
285
285
  }
286
- }, oe = [
287
- le,
288
- ae
289
- ], ne = { style: { display: "flex", "flex-direction": "column" } }, re = { style: { display: "flex", "justify-content": "end" } }, se = /* @__PURE__ */ L({
286
+ }, ne = [
287
+ te,
288
+ oe
289
+ ], re = { style: { display: "flex", "flex-direction": "column" } }, se = { style: { display: "flex", "justify-content": "end" } }, ie = /* @__PURE__ */ L({
290
290
  __name: "RejectPopover",
291
291
  props: ["withdrawId"],
292
292
  emits: ["success"],
293
- setup(V, { emit: b }) {
294
- const a = V, c = O("http"), _ = D(!1), u = D({
293
+ setup(V, { emit: _ }) {
294
+ const a = V, c = O("http"), f = D(!1), u = D({
295
295
  rejectReason: null
296
296
  }), C = D({
297
297
  rejectReason: [
@@ -300,16 +300,16 @@ const ee = /* @__PURE__ */ L({
300
300
  }), g = D();
301
301
  function v() {
302
302
  var s;
303
- (s = g.value) == null || s.validate((f, x) => {
304
- f && (c == null || c.post(`/api/withdraw/${a.withdrawId}/reject`, u.value).then((T) => {
305
- _.value = !1, b("success");
303
+ (s = g.value) == null || s.validate((h, x) => {
304
+ h && (c == null || c.post(`/api/withdraw/${a.withdrawId}/reject`, u.value).then((T) => {
305
+ f.value = !1, _("success");
306
306
  }));
307
307
  });
308
308
  }
309
- return (s, f) => {
309
+ return (s, h) => {
310
310
  const x = o("el-button"), T = o("el-input"), d = o("el-form-item"), U = o("el-form"), A = o("el-popover");
311
311
  return n(), p(A, {
312
- visible: _.value,
312
+ visible: f.value,
313
313
  trigger: "click",
314
314
  width: "200",
315
315
  title: "确定要驳回吗?"
@@ -317,7 +317,7 @@ const ee = /* @__PURE__ */ L({
317
317
  reference: l(() => [
318
318
  e(x, {
319
319
  type: "danger",
320
- onClick: f[0] || (f[0] = (I) => _.value = !0)
320
+ onClick: h[0] || (h[0] = (I) => f.value = !0)
321
321
  }, {
322
322
  default: l(() => [
323
323
  r("驳回")
@@ -326,7 +326,7 @@ const ee = /* @__PURE__ */ L({
326
326
  })
327
327
  ]),
328
328
  default: l(() => [
329
- H("div", ne, [
329
+ H("div", re, [
330
330
  e(U, {
331
331
  ref_key: "form",
332
332
  ref: g,
@@ -338,7 +338,7 @@ const ee = /* @__PURE__ */ L({
338
338
  default: l(() => [
339
339
  e(T, {
340
340
  modelValue: u.value.rejectReason,
341
- "onUpdate:modelValue": f[1] || (f[1] = (I) => u.value.rejectReason = I),
341
+ "onUpdate:modelValue": h[1] || (h[1] = (I) => u.value.rejectReason = I),
342
342
  type: "textarea",
343
343
  placeholder: "请输入驳回原因"
344
344
  }, null, 8, ["modelValue"])
@@ -348,11 +348,11 @@ const ee = /* @__PURE__ */ L({
348
348
  ]),
349
349
  _: 1
350
350
  }, 8, ["rules", "model"]),
351
- H("div", re, [
351
+ H("div", se, [
352
352
  e(x, {
353
353
  size: "small",
354
354
  text: "",
355
- onClick: f[2] || (f[2] = (I) => _.value = !1)
355
+ onClick: h[2] || (h[2] = (I) => f.value = !1)
356
356
  }, {
357
357
  default: l(() => [
358
358
  r("取消")
@@ -376,12 +376,12 @@ const ee = /* @__PURE__ */ L({
376
376
  }, 8, ["visible"]);
377
377
  };
378
378
  }
379
- }), ie = { style: { width: "100%", display: "flex", "justify-content": "center", "align-items": "center" } }, ue = { style: { color: "red", "font-size": "25px", "margin-left": "5px" } }, de = { style: { width: "100%", "margin-top": "50px", display: "flex", "justify-content": "center", "align-items": "center" } }, pe = { style: { color: "red", "font-size": "25px", "margin-left": "5px" } }, ce = /* @__PURE__ */ L({
379
+ }), ue = { style: { width: "100%", display: "flex", "justify-content": "center", "align-items": "center" } }, de = { style: { color: "red", "font-size": "25px", "margin-left": "5px" } }, pe = { style: { width: "100%", "margin-top": "50px", display: "flex", "justify-content": "center", "align-items": "center" } }, ce = { style: { color: "red", "font-size": "25px", "margin-left": "5px" } }, me = /* @__PURE__ */ L({
380
380
  __name: "AlipayTransferDialog",
381
381
  props: ["condition"],
382
382
  emits: ["success"],
383
- setup(V, { expose: b, emit: a }) {
384
- const c = V, _ = O("http"), u = D({
383
+ setup(V, { expose: _, emit: a }) {
384
+ const c = V, f = O("http"), u = D({
385
385
  show: !1,
386
386
  loading: !1,
387
387
  totalAmount: null,
@@ -392,29 +392,29 @@ const ee = /* @__PURE__ */ L({
392
392
  u.value.show = !0, g();
393
393
  }
394
394
  function g() {
395
- u.value.loading = !0, c.condition.state = "SUBMITTED", c.condition.isManualTransferMode = 1, c.condition.suspendedTransfer = 0, _ == null || _.get("/api/withdraw/get-manual-transfer-info", c.condition).then((d) => {
395
+ u.value.loading = !0, c.condition.state = "SUBMITTED", c.condition.isManualTransferMode = 1, c.condition.suspendedTransfer = 0, f == null || f.get("/api/withdraw/get-manual-transfer-info", c.condition).then((d) => {
396
396
  u.value.loading = !1, u.value.totalAmount = d.data.totalAmount, u.value.totalCount = d.data.totalCount, u.value.latestWithdrawId = d.data.latestWithdrawId;
397
397
  });
398
398
  }
399
399
  function v() {
400
- _ == null || _.download("/api/withdraw/get-manual-transfer-file", {
400
+ f == null || f.download("/api/withdraw/get-manual-transfer-file", {
401
401
  ...c.condition,
402
402
  lessOrEqualsThanId: u.value.latestWithdrawId
403
403
  });
404
404
  }
405
- const s = D(), f = D(null);
405
+ const s = D(), h = D(null);
406
406
  function x(d) {
407
407
  Y.success({
408
408
  message: d.response.data,
409
409
  type: "success",
410
410
  duration: 0,
411
411
  showClose: !0
412
- }), f.value && f.value.close(), u.value.show = !1, a("success"), s.value.clearFileList(), u.value.totalAmount = null, u.value.totalCount = null, u.value.latestWithdrawId = null;
412
+ }), h.value && h.value.close(), u.value.show = !1, a("success"), s.value.clearFileList(), u.value.totalAmount = null, u.value.totalCount = null, u.value.latestWithdrawId = null;
413
413
  }
414
414
  function T() {
415
- f.value = Z.service();
415
+ h.value = ee.service();
416
416
  }
417
- return b({
417
+ return _({
418
418
  show: C
419
419
  }), (d, U) => {
420
420
  const A = o("el-button"), I = o("el-col"), W = o("pg-upload"), m = o("el-row"), P = o("el-dialog");
@@ -427,13 +427,13 @@ const ee = /* @__PURE__ */ L({
427
427
  title: "打款信息"
428
428
  }, {
429
429
  default: l(() => [
430
- H("div", ie, [
430
+ H("div", ue, [
431
431
  r(" 打款记录数: "),
432
- H("span", ue, w(u.value.totalCount == null ? "-" : u.value.totalCount), 1)
432
+ H("span", de, w(u.value.totalCount == null ? "-" : u.value.totalCount), 1)
433
433
  ]),
434
- H("div", de, [
434
+ H("div", pe, [
435
435
  r(" 打款总金额: "),
436
- H("span", pe, w(u.value.totalAmount == null ? "-" : u.value.totalAmount.toFixed(2)), 1)
436
+ H("span", ce, w(u.value.totalAmount == null ? "-" : u.value.totalAmount.toFixed(2)), 1)
437
437
  ]),
438
438
  e(m, { style: { "margin-top": "50px" } }, {
439
439
  default: l(() => [
@@ -483,10 +483,10 @@ const ee = /* @__PURE__ */ L({
483
483
  }, 8, ["modelValue"]);
484
484
  };
485
485
  }
486
- }), me = { style: { color: "red", "font-weight": "bold" } }, _e = /* @__PURE__ */ L({
486
+ }), _e = { style: { color: "red", "font-weight": "bold" } }, fe = /* @__PURE__ */ L({
487
487
  __name: "WithdrawHistoryListView",
488
488
  setup(V) {
489
- const b = O("http"), a = D({
489
+ const _ = O("http"), a = D({
490
490
  id: null,
491
491
  uid: null,
492
492
  tradeNo: null,
@@ -494,7 +494,7 @@ const ee = /* @__PURE__ */ L({
494
494
  suspendedTransfer: null,
495
495
  state: null
496
496
  }), c = D();
497
- function _() {
497
+ function f() {
498
498
  c.value.search();
499
499
  }
500
500
  const u = D();
@@ -506,21 +506,21 @@ const ee = /* @__PURE__ */ L({
506
506
  g.value.show(T);
507
507
  }
508
508
  function s(T) {
509
- b == null || b.post(`/api/withdraw/${T}/switch-suspend-transfer`, {}).then((d) => {
509
+ _ == null || _.post(`/api/withdraw/${T}/switch-suspend-transfer`, {}).then((d) => {
510
510
  });
511
511
  }
512
- function f(T) {
513
- b == null || b.post(`/api/withdraw/${T}/approve`).then((d) => {
514
- _();
512
+ function h(T) {
513
+ _ == null || _.post(`/api/withdraw/${T}/approve`).then((d) => {
514
+ f();
515
515
  });
516
516
  }
517
517
  function x(T) {
518
- b == null || b.post(`/api/withdraw/${T}/confirm`).then((d) => {
519
- _();
518
+ _ == null || _.post(`/api/withdraw/${T}/confirm`).then((d) => {
519
+ f();
520
520
  });
521
521
  }
522
522
  return (T, d) => {
523
- const U = o("el-input"), A = o("pg-user-selector"), I = o("el-option"), W = o("el-select"), m = o("el-button"), P = o("el-space"), N = o("el-card"), h = o("el-table-column"), S = o("el-tag"), j = o("el-link"), F = o("pg-user-mobile"), t = o("el-switch"), k = o("el-popconfirm"), M = o("pg-table"), G = o("pg-user-detail-dialog"), K = Q("permission");
523
+ const U = o("el-input"), A = o("pg-user-selector"), I = o("el-option"), W = o("el-select"), m = o("el-button"), P = o("el-space"), N = o("el-card"), b = o("el-table-column"), S = o("el-tag"), j = o("el-link"), F = o("pg-user-mobile"), t = o("el-switch"), k = o("el-popconfirm"), M = o("pg-table"), G = o("pg-user-detail-dialog"), K = X("permission");
524
524
  return n(), E(R, null, [
525
525
  e(N, null, {
526
526
  default: l(() => [
@@ -619,14 +619,14 @@ const ee = /* @__PURE__ */ L({
619
619
  e(m, {
620
620
  type: "primary",
621
621
  icon: "search",
622
- onClick: _
622
+ onClick: f
623
623
  }, {
624
624
  default: l(() => [
625
625
  r("查询")
626
626
  ]),
627
627
  _: 1
628
628
  }),
629
- X((n(), p(m, {
629
+ Z((n(), p(m, {
630
630
  type: "warning",
631
631
  onClick: C
632
632
  }, {
@@ -651,44 +651,44 @@ const ee = /* @__PURE__ */ L({
651
651
  condition: a.value
652
652
  }, {
653
653
  columns: l(() => [
654
- e(h, {
654
+ e(b, {
655
655
  label: "ID",
656
656
  prop: "id",
657
657
  align: "center",
658
658
  width: "70px"
659
659
  }),
660
- e(h, { label: "提现信息" }, {
660
+ e(b, { label: "提现信息" }, {
661
661
  default: l(() => [
662
- e(h, {
662
+ e(b, {
663
663
  label: "金额",
664
664
  prop: "amount",
665
665
  align: "right",
666
666
  width: "65px"
667
667
  }, {
668
668
  default: l(({ row: i }) => [
669
- H("span", me, w(i.amount), 1)
669
+ H("span", _e, w(i.amount), 1)
670
670
  ]),
671
671
  _: 1
672
672
  }),
673
- e(h, {
673
+ e(b, {
674
674
  label: "应到",
675
675
  prop: "actualAmount",
676
676
  align: "right",
677
677
  width: "65px"
678
678
  }),
679
- e(h, {
679
+ e(b, {
680
680
  label: "费率",
681
681
  prop: "handlingFeeRate",
682
682
  align: "right",
683
683
  width: "55px"
684
684
  }),
685
- e(h, {
685
+ e(b, {
686
686
  label: "手续费",
687
687
  prop: "handlingFee",
688
688
  align: "right",
689
689
  width: "70px"
690
690
  }),
691
- e(h, {
691
+ e(b, {
692
692
  label: "状态",
693
693
  prop: "state",
694
694
  align: "center",
@@ -743,7 +743,7 @@ const ee = /* @__PURE__ */ L({
743
743
  ]),
744
744
  _: 1
745
745
  }),
746
- e(h, {
746
+ e(b, {
747
747
  label: "确认",
748
748
  prop: "isManualTransferMode",
749
749
  align: "center",
@@ -771,13 +771,13 @@ const ee = /* @__PURE__ */ L({
771
771
  ]),
772
772
  _: 1
773
773
  }),
774
- e(h, {
774
+ e(b, {
775
775
  label: "转账编号",
776
776
  prop: "tradeNo",
777
777
  align: "center",
778
778
  "show-overflow-tooltip": ""
779
779
  }),
780
- e(h, {
780
+ e(b, {
781
781
  label: "提现平台",
782
782
  prop: "withdrawPlatformName",
783
783
  align: "center"
@@ -785,9 +785,9 @@ const ee = /* @__PURE__ */ L({
785
785
  ]),
786
786
  _: 1
787
787
  }),
788
- e(h, { label: "用户信息" }, {
788
+ e(b, { label: "用户信息" }, {
789
789
  default: l(() => [
790
- e(h, {
790
+ e(b, {
791
791
  label: "用户ID",
792
792
  prop: "userId",
793
793
  align: "center",
@@ -807,18 +807,18 @@ const ee = /* @__PURE__ */ L({
807
807
  ]),
808
808
  _: 1
809
809
  }),
810
- e(h, {
810
+ e(b, {
811
811
  label: "提现姓名",
812
812
  prop: "withdrawName",
813
813
  align: "center",
814
814
  "min-width": "90px"
815
815
  }),
816
- e(h, {
816
+ e(b, {
817
817
  label: "提现账号",
818
818
  prop: "withdrawAccount",
819
819
  width: "150px"
820
820
  }),
821
- e(h, {
821
+ e(b, {
822
822
  label: "手机号",
823
823
  prop: "mobile",
824
824
  align: "center",
@@ -833,7 +833,7 @@ const ee = /* @__PURE__ */ L({
833
833
  ]),
834
834
  _: 1
835
835
  }),
836
- e(h, {
836
+ e(b, {
837
837
  label: "用户余额",
838
838
  prop: "userBalance",
839
839
  align: "right",
@@ -842,25 +842,25 @@ const ee = /* @__PURE__ */ L({
842
842
  ]),
843
843
  _: 1
844
844
  }),
845
- e(h, {
845
+ e(b, {
846
846
  label: "更新时间",
847
847
  prop: "updatedTime",
848
848
  align: "center",
849
849
  width: "110px"
850
850
  }),
851
- e(h, {
851
+ e(b, {
852
852
  label: "提现时间",
853
853
  prop: "createdTime",
854
854
  align: "center",
855
855
  width: "110px"
856
856
  }),
857
- e(h, {
857
+ e(b, {
858
858
  label: "驳回原因",
859
859
  prop: "rejectReason",
860
860
  align: "center",
861
861
  width: "200px"
862
862
  }),
863
- T.$hasPer("SWITCH_SUSPEND_TRANSFER") ? (n(), p(h, {
863
+ T.$hasPer("SWITCH_SUSPEND_TRANSFER") ? (n(), p(b, {
864
864
  key: 0,
865
865
  label: "允许提现",
866
866
  align: "center",
@@ -878,7 +878,7 @@ const ee = /* @__PURE__ */ L({
878
878
  ]),
879
879
  _: 1
880
880
  })) : y("", !0),
881
- e(h, {
881
+ e(b, {
882
882
  label: "操作",
883
883
  align: "center",
884
884
  width: "200px",
@@ -888,7 +888,7 @@ const ee = /* @__PURE__ */ L({
888
888
  i.state == "SUBMITTED" && T.$hasPer("WITHDRAW_APPROVE") ? (n(), p(k, {
889
889
  key: 0,
890
890
  title: "确定同意本次提现吗?",
891
- onConfirm: (q) => f(i.id)
891
+ onConfirm: (q) => h(i.id)
892
892
  }, {
893
893
  reference: l(() => [
894
894
  e(m, { type: "success" }, {
@@ -900,9 +900,9 @@ const ee = /* @__PURE__ */ L({
900
900
  ]),
901
901
  _: 2
902
902
  }, 1032, ["onConfirm"])) : y("", !0),
903
- i.state == "SUBMITTED" && T.$hasPer("WITHDRAW_REJECT") ? (n(), p(se, {
903
+ i.state == "SUBMITTED" && T.$hasPer("WITHDRAW_REJECT") ? (n(), p(ie, {
904
904
  "withdraw-id": i.id,
905
- onSuccess: _,
905
+ onSuccess: f,
906
906
  key: `rej_${i.id}`
907
907
  }, null, 8, ["withdraw-id"])) : y("", !0),
908
908
  i.state == "SUBMITTED" && !i.isManualTransferMode && T.$hasPer("WITHDRAW_CONFIRM") ? (n(), p(k, {
@@ -930,19 +930,19 @@ const ee = /* @__PURE__ */ L({
930
930
  ref_key: "userDetailDialog",
931
931
  ref: g
932
932
  }, null, 512),
933
- e(ce, {
933
+ e(me, {
934
934
  ref_key: "alipayTransferDialog",
935
935
  ref: u,
936
- onSuccess: _,
936
+ onSuccess: f,
937
937
  condition: a.value
938
938
  }, null, 8, ["condition"])
939
939
  ], 64);
940
940
  };
941
941
  }
942
- }), fe = /* @__PURE__ */ L({
942
+ }), he = /* @__PURE__ */ L({
943
943
  __name: "PayHistoryListView",
944
944
  setup(V) {
945
- const b = {
945
+ const _ = {
946
946
  TRANS_CREATED: "交易创建",
947
947
  PAY_SUCCESS: "交易成功",
948
948
  PAY_FAIL: "交易失败",
@@ -961,22 +961,22 @@ const ee = /* @__PURE__ */ L({
961
961
  z(c, (v) => {
962
962
  v ? (a.value.createTimeStar = v[0], a.value.createTimeEnd = v[1]) : (a.value.createTimeStar = null, a.value.createTimeEnd = null);
963
963
  });
964
- const _ = D();
964
+ const f = D();
965
965
  function u() {
966
- _.value.search();
966
+ f.value.search();
967
967
  }
968
968
  const C = D();
969
969
  function g(v) {
970
970
  C.value.show(v);
971
971
  }
972
972
  return (v, s) => {
973
- const f = o("el-input"), x = o("pg-user-selector"), T = o("el-option"), d = o("el-select"), U = o("el-date-picker"), A = o("el-button"), I = o("el-space"), W = o("el-card"), m = o("el-table-column"), P = o("el-link"), N = o("el-descriptions-item"), h = o("el-descriptions"), S = o("el-popover"), j = o("pg-table"), F = o("pg-user-detail-dialog");
973
+ const h = o("el-input"), x = o("pg-user-selector"), T = o("el-option"), d = o("el-select"), U = o("el-date-picker"), A = o("el-button"), I = o("el-space"), W = o("el-card"), m = o("el-table-column"), P = o("el-link"), N = o("el-descriptions-item"), b = o("el-descriptions"), S = o("el-popover"), j = o("pg-table"), F = o("pg-user-detail-dialog");
974
974
  return n(), E(R, null, [
975
975
  e(W, null, {
976
976
  default: l(() => [
977
977
  e(I, null, {
978
978
  default: l(() => [
979
- e(f, {
979
+ e(h, {
980
980
  modelValue: a.value.thirdPlatformCode,
981
981
  "onUpdate:modelValue": s[0] || (s[0] = (t) => a.value.thirdPlatformCode = t),
982
982
  placeholder: "平台代码",
@@ -990,14 +990,14 @@ const ee = /* @__PURE__ */ L({
990
990
  clearable: "",
991
991
  style: { width: "250px" }
992
992
  }, null, 8, ["modelValue"]),
993
- e(f, {
993
+ e(h, {
994
994
  modelValue: a.value.objectCode,
995
995
  "onUpdate:modelValue": s[2] || (s[2] = (t) => a.value.objectCode = t),
996
996
  placeholder: "关联对象代码",
997
997
  style: { width: "120px" },
998
998
  clearable: ""
999
999
  }, null, 8, ["modelValue"]),
1000
- e(f, {
1000
+ e(h, {
1001
1001
  modelValue: a.value.objectId,
1002
1002
  "onUpdate:modelValue": s[3] || (s[3] = (t) => a.value.objectId = t),
1003
1003
  placeholder: "关联对象ID",
@@ -1012,7 +1012,7 @@ const ee = /* @__PURE__ */ L({
1012
1012
  clearable: ""
1013
1013
  }, {
1014
1014
  default: l(() => [
1015
- (n(), E(R, null, $(b, (t, k) => e(T, {
1015
+ (n(), E(R, null, $(_, (t, k) => e(T, {
1016
1016
  label: t,
1017
1017
  value: k
1018
1018
  }, {
@@ -1024,14 +1024,14 @@ const ee = /* @__PURE__ */ L({
1024
1024
  ]),
1025
1025
  _: 1
1026
1026
  }, 8, ["modelValue"]),
1027
- e(f, {
1027
+ e(h, {
1028
1028
  modelValue: a.value.tradeNo,
1029
1029
  "onUpdate:modelValue": s[5] || (s[5] = (t) => a.value.tradeNo = t),
1030
1030
  placeholder: "交易编号",
1031
1031
  style: { width: "150px" },
1032
1032
  clearable: ""
1033
1033
  }, null, 8, ["modelValue"]),
1034
- e(f, {
1034
+ e(h, {
1035
1035
  modelValue: a.value.thirdPlatformTransId,
1036
1036
  "onUpdate:modelValue": s[6] || (s[6] = (t) => a.value.thirdPlatformTransId = t),
1037
1037
  placeholder: "交易平台编号",
@@ -1064,7 +1064,7 @@ const ee = /* @__PURE__ */ L({
1064
1064
  }),
1065
1065
  e(j, {
1066
1066
  ref_key: "table",
1067
- ref: _,
1067
+ ref: f,
1068
1068
  style: { "margin-top": "10px" },
1069
1069
  "data-url": "/api/third-platform/pay/histories",
1070
1070
  condition: a.value
@@ -1130,7 +1130,7 @@ const ee = /* @__PURE__ */ L({
1130
1130
  prop: "status"
1131
1131
  }, {
1132
1132
  default: l(({ row: t }) => [
1133
- r(w(b[t.status]), 1)
1133
+ r(w(_[t.status]), 1)
1134
1134
  ]),
1135
1135
  _: 1
1136
1136
  }),
@@ -1148,7 +1148,7 @@ const ee = /* @__PURE__ */ L({
1148
1148
  r(w(t.requestData.substring(0, 10)) + "... ", 1)
1149
1149
  ]),
1150
1150
  default: l(() => [
1151
- t.requestData.startsWith("{") ? (n(), p(h, {
1151
+ t.requestData.startsWith("{") ? (n(), p(b, {
1152
1152
  key: 0,
1153
1153
  column: "1",
1154
1154
  border: ""
@@ -1188,7 +1188,7 @@ const ee = /* @__PURE__ */ L({
1188
1188
  r(w(t.responseData.substring(0, 10)) + "... ", 1)
1189
1189
  ]),
1190
1190
  default: l(() => [
1191
- t.responseData.startsWith("{") ? (n(), p(h, {
1191
+ t.responseData.startsWith("{") ? (n(), p(b, {
1192
1192
  key: 0,
1193
1193
  column: "1",
1194
1194
  border: ""
@@ -1234,10 +1234,10 @@ const ee = /* @__PURE__ */ L({
1234
1234
  ], 64);
1235
1235
  };
1236
1236
  }
1237
- }), he = /* @__PURE__ */ L({
1237
+ }), be = /* @__PURE__ */ L({
1238
1238
  __name: "TransferHistoryListView",
1239
1239
  setup(V) {
1240
- const b = {
1240
+ const _ = {
1241
1241
  TRANSFER_CREATED: "转账创建",
1242
1242
  TRANSFER_SUCCESS: "转账成功",
1243
1243
  TRANSFER_FAIL: "转账失败"
@@ -1255,22 +1255,22 @@ const ee = /* @__PURE__ */ L({
1255
1255
  z(c, (v) => {
1256
1256
  v ? (a.value.createTimeStar = v[0], a.value.createTimeEnd = v[1]) : (a.value.createTimeStar = null, a.value.createTimeEnd = null);
1257
1257
  });
1258
- const _ = D();
1258
+ const f = D();
1259
1259
  function u() {
1260
- _.value.search();
1260
+ f.value.search();
1261
1261
  }
1262
1262
  const C = D();
1263
1263
  function g(v) {
1264
1264
  C.value.show(v);
1265
1265
  }
1266
1266
  return (v, s) => {
1267
- const f = o("el-input"), x = o("pg-user-selector"), T = o("el-option"), d = o("el-select"), U = o("el-date-picker"), A = o("el-button"), I = o("el-space"), W = o("el-card"), m = o("el-table-column"), P = o("el-link"), N = o("el-descriptions-item"), h = o("el-descriptions"), S = o("el-popover"), j = o("pg-table"), F = o("pg-user-detail-dialog");
1267
+ const h = o("el-input"), x = o("pg-user-selector"), T = o("el-option"), d = o("el-select"), U = o("el-date-picker"), A = o("el-button"), I = o("el-space"), W = o("el-card"), m = o("el-table-column"), P = o("el-link"), N = o("el-descriptions-item"), b = o("el-descriptions"), S = o("el-popover"), j = o("pg-table"), F = o("pg-user-detail-dialog");
1268
1268
  return n(), E(R, null, [
1269
1269
  e(W, null, {
1270
1270
  default: l(() => [
1271
1271
  e(I, null, {
1272
1272
  default: l(() => [
1273
- e(f, {
1273
+ e(h, {
1274
1274
  modelValue: a.value.thirdPlatformCode,
1275
1275
  "onUpdate:modelValue": s[0] || (s[0] = (t) => a.value.thirdPlatformCode = t),
1276
1276
  placeholder: "平台代码",
@@ -1284,7 +1284,7 @@ const ee = /* @__PURE__ */ L({
1284
1284
  clearable: "",
1285
1285
  style: { width: "250px" }
1286
1286
  }, null, 8, ["modelValue"]),
1287
- e(f, {
1287
+ e(h, {
1288
1288
  modelValue: a.value.transferToIdentity,
1289
1289
  "onUpdate:modelValue": s[2] || (s[2] = (t) => a.value.transferToIdentity = t),
1290
1290
  placeholder: "转账账号",
@@ -1299,7 +1299,7 @@ const ee = /* @__PURE__ */ L({
1299
1299
  clearable: ""
1300
1300
  }, {
1301
1301
  default: l(() => [
1302
- (n(), E(R, null, $(b, (t, k) => e(T, {
1302
+ (n(), E(R, null, $(_, (t, k) => e(T, {
1303
1303
  label: t,
1304
1304
  value: k
1305
1305
  }, {
@@ -1311,21 +1311,21 @@ const ee = /* @__PURE__ */ L({
1311
1311
  ]),
1312
1312
  _: 1
1313
1313
  }, 8, ["modelValue"]),
1314
- e(f, {
1314
+ e(h, {
1315
1315
  modelValue: a.value.tradeNo,
1316
1316
  "onUpdate:modelValue": s[4] || (s[4] = (t) => a.value.tradeNo = t),
1317
1317
  placeholder: "交易编号",
1318
1318
  style: { width: "150px" },
1319
1319
  clearable: ""
1320
1320
  }, null, 8, ["modelValue"]),
1321
- e(f, {
1321
+ e(h, {
1322
1322
  modelValue: a.value.thirdPlatformOrderId,
1323
1323
  "onUpdate:modelValue": s[5] || (s[5] = (t) => a.value.thirdPlatformOrderId = t),
1324
1324
  placeholder: "交易平台编号",
1325
1325
  style: { width: "120px" },
1326
1326
  clearable: ""
1327
1327
  }, null, 8, ["modelValue"]),
1328
- e(f, {
1328
+ e(h, {
1329
1329
  modelValue: a.value.failCode,
1330
1330
  "onUpdate:modelValue": s[6] || (s[6] = (t) => a.value.failCode = t),
1331
1331
  placeholder: "错误码",
@@ -1358,7 +1358,7 @@ const ee = /* @__PURE__ */ L({
1358
1358
  }),
1359
1359
  e(j, {
1360
1360
  ref_key: "table",
1361
- ref: _,
1361
+ ref: f,
1362
1362
  style: { "margin-top": "10px" },
1363
1363
  "data-url": "/api/third-platform/transfer/histories",
1364
1364
  condition: a.value
@@ -1419,7 +1419,7 @@ const ee = /* @__PURE__ */ L({
1419
1419
  prop: "status"
1420
1420
  }, {
1421
1421
  default: l(({ row: t }) => [
1422
- r(w(b[t.status]), 1)
1422
+ r(w(_[t.status]), 1)
1423
1423
  ]),
1424
1424
  _: 1
1425
1425
  }),
@@ -1437,7 +1437,7 @@ const ee = /* @__PURE__ */ L({
1437
1437
  r(w(t.requestData.substring(0, 10)), 1)
1438
1438
  ]),
1439
1439
  default: l(() => [
1440
- t.requestData.startsWith("{") ? (n(), p(h, {
1440
+ t.requestData.startsWith("{") ? (n(), p(b, {
1441
1441
  key: 0,
1442
1442
  column: "1",
1443
1443
  border: ""
@@ -1477,7 +1477,7 @@ const ee = /* @__PURE__ */ L({
1477
1477
  r(w(t.responseData.substring(0, 10)) + "... ", 1)
1478
1478
  ]),
1479
1479
  default: l(() => [
1480
- t.responseData.startsWith("{") ? (n(), p(h, {
1480
+ t.responseData.startsWith("{") ? (n(), p(b, {
1481
1481
  key: 0,
1482
1482
  column: "1",
1483
1483
  border: ""
@@ -1523,9 +1523,9 @@ const ee = /* @__PURE__ */ L({
1523
1523
  ], 64);
1524
1524
  };
1525
1525
  }
1526
- }), be = {
1527
- install: (V, b) => {
1528
- let a = b.router, c = a.getRoutes().find((_) => _.path == "/");
1526
+ }), ge = {
1527
+ install: (V, _) => {
1528
+ let a = _.router, c = a.getRoutes().find((f) => f.path == "/");
1529
1529
  c && c.meta && (a.addRoute({
1530
1530
  path: "/finance/withdraw-history",
1531
1531
  name: "WithdrawHistory",
@@ -1534,7 +1534,7 @@ const ee = /* @__PURE__ */ L({
1534
1534
  children: [{
1535
1535
  path: "list",
1536
1536
  name: "WithdrawHistoryList",
1537
- component: _e
1537
+ component: fe
1538
1538
  }]
1539
1539
  }), a.addRoute({
1540
1540
  path: "/finance/pay-history",
@@ -1544,7 +1544,7 @@ const ee = /* @__PURE__ */ L({
1544
1544
  children: [{
1545
1545
  path: "list",
1546
1546
  name: "PayHistoryList",
1547
- component: fe
1547
+ component: he
1548
1548
  }]
1549
1549
  }), a.addRoute({
1550
1550
  path: "/finance/transfer-history",
@@ -1554,21 +1554,21 @@ const ee = /* @__PURE__ */ L({
1554
1554
  children: [{
1555
1555
  path: "list",
1556
1556
  name: "TransferHistoryList",
1557
- component: he
1557
+ component: be
1558
1558
  }]
1559
1559
  }));
1560
1560
  }
1561
- }, ge = (V, b) => {
1562
- oe.forEach((a) => V.use(a)), V.use(be, b);
1563
- }, Te = {
1564
- install: ge
1561
+ }, ve = (V, _) => {
1562
+ ne.forEach((a) => V.use(a)), V.use(ge, _);
1563
+ }, De = {
1564
+ install: ve
1565
1565
  };
1566
1566
  export {
1567
- fe as PayHistoryListView,
1568
- he as TransferHistoryListView,
1569
- le as UserWithdrawHistory,
1570
- ae as UserWithdrawMethod,
1571
- _e as WithdrawHistoryListView,
1572
- Te as default,
1573
- ge as install
1567
+ he as PayHistoryListView,
1568
+ be as TransferHistoryListView,
1569
+ te as UserWithdrawHistory,
1570
+ oe as UserWithdrawMethod,
1571
+ fe as WithdrawHistoryListView,
1572
+ De as default,
1573
+ ve as install
1574
1574
  };
package/index.umd.cjs CHANGED
@@ -1 +1 @@
1
- (function(g,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@pangu-backend-ui/user-core"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","@pangu-backend-ui/user-core","element-plus"],e):(g=typeof globalThis<"u"?globalThis:g||self,e(g["pg-user-core"]={},g.Vue,g.userCore,g["element-plus"]))})(this,function(g,e,R,U){"use strict";const P=e.defineComponent({__name:"UserWithdrawHistoryComp",props:["userId"],setup(w){const p=w,o=e.ref({userId:p.userId});return(d,c)=>{const n=e.resolveComponent("el-table-column"),C=e.resolveComponent("el-tag"),_=e.resolveComponent("pg-table");return e.openBlock(),e.createBlock(_,{"data-url":"/api/withdraw/records",condition:o.value},{columns:e.withCtx(()=>[e.createVNode(n,{prop:"id",label:"ID",align:"center",width:"80","show-overflow-tooltip":""}),e.createVNode(n,{prop:"amount",label:"提现金额",align:"center","show-overflow-tooltip":""}),e.createVNode(n,{label:"应到金额",prop:"actualAmount",align:"center"}),e.createVNode(n,{label:"状态",align:"center","show-overflow-tooltip":""},{default:e.withCtx(({row:f})=>[f.state==="SUBMITTED"?(e.openBlock(),e.createBlock(C,{key:0,type:"warning",size:"small"},{default:e.withCtx(()=>[e.createTextVNode("待审批")]),_:1})):e.createCommentVNode("",!0),f.state==="REJECTED"?(e.openBlock(),e.createBlock(C,{key:1,type:"info",size:"small"},{default:e.withCtx(()=>[e.createTextVNode("已驳回")]),_:1})):e.createCommentVNode("",!0),f.state==="WITHDRAW_FAILED"?(e.openBlock(),e.createBlock(C,{key:2,type:"danger",size:"small"},{default:e.withCtx(()=>[e.createTextVNode("提现失败")]),_:1})):e.createCommentVNode("",!0),f.state==="WITHDRAW_SUCCESS"?(e.openBlock(),e.createBlock(C,{key:3,type:"success",size:"small"},{default:e.withCtx(()=>[e.createTextVNode("提现成功")]),_:1})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(n,{label:"费率",prop:"handlingFeeRate",align:"center"}),e.createVNode(n,{label:"手续费",prop:"handlingFee",align:"center"}),e.createVNode(n,{label:"驳回原因",prop:"rejectReason",align:"center"}),e.createVNode(n,{label:"创建时间",prop:"createdTime",width:"150",align:"center"})]),_:1},8,["condition"])}}}),A={install:()=>{R.useUserCoreConfigStore().userDetailDialogTabs.push({name:"提现历史",code:"WITHDRAW_HISTORY",component:e.shallowRef(P)})}},j=e.defineComponent({__name:"UserWithdrawMethodComp",props:["userId"],setup(w){const p=w,o=e.ref(),d=e.inject("http");function c(n){d==null||d.post(`/api/withdraw/method/${n}/invalid`).then(C=>{U.ElMessage.success("操作成功"),o.value.search()})}return(n,C)=>{const _=e.resolveComponent("el-table-column"),f=e.resolveComponent("el-image"),l=e.resolveComponent("el-tag"),s=e.resolveComponent("el-button"),x=e.resolveComponent("el-popconfirm"),h=e.resolveComponent("pg-table");return e.openBlock(),e.createBlock(h,{ref_key:"table",ref:o,"data-url":"/api/withdraw/method",condition:{userId:p.userId}},{columns:e.withCtx(()=>[e.createVNode(_,{prop:"id",label:"编号",width:"70",align:"center","show-overflow-tooltip":""}),e.createVNode(_,{prop:"platformName",label:"平台","min-width":"80","show-overflow-tooltip":""}),e.createVNode(_,{prop:"account",label:"帐号","min-width":"150"}),e.createVNode(_,{prop:"realName",label:"姓名",align:"center","min-width":"80","show-overflow-tooltip":""}),e.createVNode(_,{prop:"nickName",label:"昵称","min-width":"80","show-overflow-tooltip":""}),e.createVNode(_,{prop:"openId",label:"OpenId",align:"center","min-width":"80","show-overflow-tooltip":""}),e.createVNode(_,{prop:"qcCodeSrc",label:"二维码",align:"center","show-overflow-tooltip":""},{default:e.withCtx(({row:r})=>[r.qrCodeSrc?(e.openBlock(),e.createBlock(f,{key:0,src:r.qrCodeSrc,style:{width:"25px",height:"25px"},fit:"contain","preview-teleported":"","preview-src-list":[r.qrCodeSrc]},null,8,["src","preview-src-list"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(_,{label:"状态",prop:"status",align:"center",width:"80"},{default:e.withCtx(({row:r})=>[r.status=="VALID"?(e.openBlock(),e.createBlock(l,{key:0,type:"success"},{default:e.withCtx(()=>[e.createTextVNode("有效")]),_:1})):e.createCommentVNode("",!0),r.status=="INVALID"?(e.openBlock(),e.createBlock(l,{key:1,type:"warning"},{default:e.withCtx(()=>[e.createTextVNode("失效")]),_:1})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(_,{label:"默认",align:"center",width:"60"},{default:e.withCtx(({row:r})=>[e.createVNode(l,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.isDefault?"是":"否"),1)]),_:2},1024)]),_:1}),e.createVNode(_,{prop:"createdTime",label:"创建时间",width:"170","show-overflow-tooltip":""}),e.createVNode(_,{prop:"updatedTime",label:"修改时间",width:"170","show-overflow-tooltip":""}),e.createVNode(_,{align:"center",fixed:"right",width:"80",label:"操作"},{default:e.withCtx(({row:r})=>[r.status=="VALID"?(e.openBlock(),e.createBlock(x,{key:0,title:"确定要失效该提现方式吗?",onConfirm:b=>c(r.id)},{reference:e.withCtx(()=>[e.createVNode(s,{type:"danger",icon:"circle-close-filled",circle:""})]),_:2},1032,["onConfirm"])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["condition"])}}}),W={install:()=>{R.useUserCoreConfigStore().userDetailDialogTabs.push({name:"提现方式",code:"WITHDRAW_METHOD",component:e.shallowRef(j)})}},$=[A,W],q={style:{display:"flex","flex-direction":"column"}},O={style:{display:"flex","justify-content":"end"}},z=e.defineComponent({__name:"RejectPopover",props:["withdrawId"],emits:["success"],setup(w,{emit:p}){const o=w,d=e.inject("http"),c=e.ref(!1),n=e.ref({rejectReason:null}),C=e.ref({rejectReason:[{required:!0,message:"请输入驳回原因"}]}),_=e.ref();function f(){var l;(l=_.value)==null||l.validate((s,x)=>{s&&(d==null||d.post(`/api/withdraw/${o.withdrawId}/reject`,n.value).then(h=>{c.value=!1,p("success")}))})}return(l,s)=>{const x=e.resolveComponent("el-button"),h=e.resolveComponent("el-input"),r=e.resolveComponent("el-form-item"),b=e.resolveComponent("el-form"),k=e.resolveComponent("el-popover");return e.openBlock(),e.createBlock(k,{visible:c.value,trigger:"click",width:"200",title:"确定要驳回吗?"},{reference:e.withCtx(()=>[e.createVNode(x,{type:"danger",onClick:s[0]||(s[0]=V=>c.value=!0)},{default:e.withCtx(()=>[e.createTextVNode("驳回")]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",q,[e.createVNode(b,{ref_key:"form",ref:_,rules:C.value,model:n.value},{default:e.withCtx(()=>[e.createVNode(r,{prop:"rejectReason"},{default:e.withCtx(()=>[e.createVNode(h,{modelValue:n.value.rejectReason,"onUpdate:modelValue":s[1]||(s[1]=V=>n.value.rejectReason=V),type:"textarea",placeholder:"请输入驳回原因"},null,8,["modelValue"])]),_:1})]),_:1},8,["rules","model"]),e.createElementVNode("div",O,[e.createVNode(x,{size:"small",text:"",onClick:s[2]||(s[2]=V=>c.value=!1)},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(x,{size:"small",type:"primary",onClick:f},{default:e.withCtx(()=>[e.createTextVNode("确认")]),_:1})])])]),_:1},8,["visible"])}}}),J={style:{width:"100%",display:"flex","justify-content":"center","align-items":"center"}},Y={style:{color:"red","font-size":"25px","margin-left":"5px"}},G={style:{width:"100%","margin-top":"50px",display:"flex","justify-content":"center","align-items":"center"}},K={style:{color:"red","font-size":"25px","margin-left":"5px"}},Q=e.defineComponent({__name:"AlipayTransferDialog",props:["condition"],emits:["success"],setup(w,{expose:p,emit:o}){const d=w,c=e.inject("http"),n=e.ref({show:!1,loading:!1,totalAmount:null,totalCount:null,latestWithdrawId:null});function C(){n.value.show=!0,_()}function _(){n.value.loading=!0,d.condition.state="SUBMITTED",d.condition.isManualTransferMode=1,d.condition.suspendedTransfer=0,c==null||c.get("/api/withdraw/get-manual-transfer-info",d.condition).then(r=>{n.value.loading=!1,n.value.totalAmount=r.data.totalAmount,n.value.totalCount=r.data.totalCount,n.value.latestWithdrawId=r.data.latestWithdrawId})}function f(){c==null||c.download("/api/withdraw/get-manual-transfer-file",{...d.condition,lessOrEqualsThanId:n.value.latestWithdrawId})}const l=e.ref(),s=e.ref(null);function x(r){U.ElMessage.success({message:r.response.data,type:"success",duration:0,showClose:!0}),s.value&&s.value.close(),n.value.show=!1,o("success"),l.value.clearFileList(),n.value.totalAmount=null,n.value.totalCount=null,n.value.latestWithdrawId=null}function h(){s.value=U.ElLoading.service()}return p({show:C}),(r,b)=>{const k=e.resolveComponent("el-button"),V=e.resolveComponent("el-col"),T=e.resolveComponent("pg-upload"),i=e.resolveComponent("el-row"),B=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(B,{modelValue:n.value.show,"onUpdate:modelValue":b[0]||(b[0]=u=>n.value.show=u),"close-on-click-modal":!1,width:"500",draggable:"",title:"打款信息"},{default:e.withCtx(()=>[e.createElementVNode("div",J,[e.createTextVNode(" 打款记录数: "),e.createElementVNode("span",Y,e.toDisplayString(n.value.totalCount==null?"-":n.value.totalCount),1)]),e.createElementVNode("div",G,[e.createTextVNode(" 打款总金额: "),e.createElementVNode("span",K,e.toDisplayString(n.value.totalAmount==null?"-":n.value.totalAmount.toFixed(2)),1)]),e.createVNode(i,{style:{"margin-top":"50px"}},{default:e.withCtx(()=>[e.createVNode(V,{span:12,style:{"text-align":"center"}},{default:e.withCtx(()=>[e.createVNode(k,{type:"warning",icon:"download",disabled:n.value.totalCount<=0,onClick:f},{default:e.withCtx(()=>[e.createTextVNode("下载支付宝打款Excel ")]),_:1},8,["disabled"])]),_:1}),e.createVNode(V,{span:12,style:{"text-align":"center"}},{default:e.withCtx(()=>[e.createVNode(T,{ref_key:"uploader",ref:l,accept:"application/vnd.ms-excel","upload-type":"","btn-txt":"上传支付宝打款结果",onOnSuccess:x,onBeforeUpload:h,qiniu:!1,"action-url":"/api/withdraw/handle-batch-manual-transfer-result"},null,512)]),_:1})]),_:1})]),_:1},8,["modelValue"])}}}),X={style:{color:"red","font-weight":"bold"}},M=e.defineComponent({__name:"WithdrawHistoryListView",setup(w){const p=e.inject("http"),o=e.ref({id:null,uid:null,tradeNo:null,isManualTransferMode:null,suspendedTransfer:null,state:null}),d=e.ref();function c(){d.value.search()}const n=e.ref();function C(){n.value.show()}const _=e.ref();function f(h){_.value.show(h)}function l(h){p==null||p.post(`/api/withdraw/${h}/switch-suspend-transfer`,{}).then(r=>{})}function s(h){p==null||p.post(`/api/withdraw/${h}/approve`).then(r=>{c()})}function x(h){p==null||p.post(`/api/withdraw/${h}/confirm`).then(r=>{c()})}return(h,r)=>{const b=e.resolveComponent("el-input"),k=e.resolveComponent("pg-user-selector"),V=e.resolveComponent("el-option"),T=e.resolveComponent("el-select"),i=e.resolveComponent("el-button"),B=e.resolveComponent("el-space"),u=e.resolveComponent("el-card"),m=e.resolveComponent("el-table-column"),y=e.resolveComponent("el-tag"),I=e.resolveComponent("el-link"),S=e.resolveComponent("pg-user-mobile"),t=e.resolveComponent("el-switch"),N=e.resolveComponent("el-popconfirm"),D=e.resolveComponent("pg-table"),ee=e.resolveComponent("pg-user-detail-dialog"),te=e.resolveDirective("permission");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(B,null,{default:e.withCtx(()=>[e.createVNode(b,{modelValue:o.value.id,"onUpdate:modelValue":r[0]||(r[0]=a=>o.value.id=a),placeholder:"提现记录ID",style:{width:"110px"},clearable:""},null,8,["modelValue"]),e.createVNode(k,{modelValue:o.value.uid,"onUpdate:modelValue":r[1]||(r[1]=a=>o.value.uid=a),placeholder:"搜索用户",clearable:"",style:{width:"300px"}},null,8,["modelValue"]),e.createVNode(b,{modelValue:o.value.tradeNo,"onUpdate:modelValue":r[2]||(r[2]=a=>o.value.tradeNo=a),placeholder:"转账编号",style:{width:"220px"},clearable:""},null,8,["modelValue"]),e.createVNode(T,{modelValue:o.value.isManualTransferMode,"onUpdate:modelValue":r[3]||(r[3]=a=>o.value.isManualTransferMode=a),placeholder:"已确认",style:{width:"100px"},clearable:""},{default:e.withCtx(()=>[e.createVNode(V,{label:"是",value:1}),e.createVNode(V,{label:"否",value:0})]),_:1},8,["modelValue"]),e.createVNode(T,{modelValue:o.value.suspendedTransfer,"onUpdate:modelValue":r[4]||(r[4]=a=>o.value.suspendedTransfer=a),placeholder:"允许提现",style:{width:"100px"},clearable:""},{default:e.withCtx(()=>[e.createVNode(V,{label:"是",value:0}),e.createVNode(V,{label:"否",value:1})]),_:1},8,["modelValue"]),e.createVNode(T,{modelValue:o.value.state,"onUpdate:modelValue":r[5]||(r[5]=a=>o.value.state=a),placeholder:"状态",style:{width:"100px"},clearable:""},{default:e.withCtx(()=>[e.createVNode(V,{label:"等待审核",value:"SUBMITTED"}),e.createVNode(V,{label:"审核失败",value:"REJECTED"}),e.createVNode(V,{label:"提现成功",value:"WITHDRAW_SUCCESS"}),e.createVNode(V,{label:"自主取消",value:"CANCELED"}),e.createVNode(V,{label:"提现失败",value:"WITHDRAW_FAILED"})]),_:1},8,["modelValue"]),e.createVNode(i,{type:"primary",icon:"search",onClick:c},{default:e.withCtx(()=>[e.createTextVNode("查询")]),_:1}),e.withDirectives((e.openBlock(),e.createBlock(i,{type:"warning",onClick:C},{default:e.withCtx(()=>[e.createTextVNode("支付宝打款")]),_:1})),[[te,"WITHDRAW_ALIPAY_MANUAL_TRANSFER"]])]),_:1})]),_:1}),e.createVNode(D,{ref_key:"table",ref:d,"data-url":"/api/withdraw/records",style:{"margin-top":"10px"},condition:o.value},{columns:e.withCtx(()=>[e.createVNode(m,{label:"ID",prop:"id",align:"center",width:"70px"}),e.createVNode(m,{label:"提现信息"},{default:e.withCtx(()=>[e.createVNode(m,{label:"金额",prop:"amount",align:"right",width:"65px"},{default:e.withCtx(({row:a})=>[e.createElementVNode("span",X,e.toDisplayString(a.amount),1)]),_:1}),e.createVNode(m,{label:"应到",prop:"actualAmount",align:"right",width:"65px"}),e.createVNode(m,{label:"费率",prop:"handlingFeeRate",align:"right",width:"55px"}),e.createVNode(m,{label:"手续费",prop:"handlingFee",align:"right",width:"70px"}),e.createVNode(m,{label:"状态",prop:"state",align:"center",width:"100px"},{default:e.withCtx(({row:a})=>[a.state=="SUBMITTED"?(e.openBlock(),e.createBlock(y,{key:0,type:"warning"},{default:e.withCtx(()=>[e.createTextVNode("等待审核")]),_:1})):e.createCommentVNode("",!0),a.state=="REJECTED"?(e.openBlock(),e.createBlock(y,{key:1,type:"info"},{default:e.withCtx(()=>[e.createTextVNode("审核失败")]),_:1})):e.createCommentVNode("",!0),a.state=="WITHDRAW_FAILED"?(e.openBlock(),e.createBlock(y,{key:2,type:"danger"},{default:e.withCtx(()=>[e.createTextVNode("提现失败")]),_:1})):e.createCommentVNode("",!0),a.state=="CANCELED"?(e.openBlock(),e.createBlock(y,{key:3,type:"danger"},{default:e.withCtx(()=>[e.createTextVNode("自主取消")]),_:1})):e.createCommentVNode("",!0),a.state=="WITHDRAW_SUCCESS"?(e.openBlock(),e.createBlock(y,{key:4,type:"success"},{default:e.withCtx(()=>[e.createTextVNode("提现成功")]),_:1})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(m,{label:"确认",prop:"isManualTransferMode",align:"center",width:"60px"},{default:e.withCtx(({row:a})=>[a.isManualTransferMode?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(y,{key:0,type:"danger"},{default:e.withCtx(()=>[e.createTextVNode("否")]),_:1})),a.isManualTransferMode?(e.openBlock(),e.createBlock(y,{key:1,type:"success"},{default:e.withCtx(()=>[e.createTextVNode("是")]),_:1})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(m,{label:"转账编号",prop:"tradeNo",align:"center","show-overflow-tooltip":""}),e.createVNode(m,{label:"提现平台",prop:"withdrawPlatformName",align:"center"})]),_:1}),e.createVNode(m,{label:"用户信息"},{default:e.withCtx(()=>[e.createVNode(m,{label:"用户ID",prop:"userId",align:"center",width:"80px","show-overflow-tooltip":""},{default:e.withCtx(({row:a})=>[e.createVNode(I,{type:"primary",onClick:E=>f(a.userId)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.userId),1)]),_:2},1032,["onClick"])]),_:1}),e.createVNode(m,{label:"提现姓名",prop:"withdrawName",align:"center","min-width":"90px"}),e.createVNode(m,{label:"提现账号",prop:"withdrawAccount",width:"150px"}),e.createVNode(m,{label:"手机号",prop:"mobile",align:"center",width:"120px"},{default:e.withCtx(({row:a})=>[(e.openBlock(),e.createBlock(S,{"mask-mobile":a.mobile,"user-id":a.userId,key:a.userId},null,8,["mask-mobile","user-id"]))]),_:1}),e.createVNode(m,{label:"用户余额",prop:"userBalance",align:"right","min-width":"60px"})]),_:1}),e.createVNode(m,{label:"更新时间",prop:"updatedTime",align:"center",width:"110px"}),e.createVNode(m,{label:"提现时间",prop:"createdTime",align:"center",width:"110px"}),e.createVNode(m,{label:"驳回原因",prop:"rejectReason",align:"center",width:"200px"}),h.$hasPer("SWITCH_SUSPEND_TRANSFER")?(e.openBlock(),e.createBlock(m,{key:0,label:"允许提现",align:"center","min-width":"80px"},{default:e.withCtx(({row:a})=>[a.state=="SUBMITTED"?(e.openBlock(),e.createBlock(t,{key:0,modelValue:a.suspendedTransfer,"onUpdate:modelValue":E=>a.suspendedTransfer=E,onChange:E=>l(a.id),"active-color":"#ff4949","inactive-color":"#13ce66"},null,8,["modelValue","onUpdate:modelValue","onChange"])):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),e.createVNode(m,{label:"操作",align:"center",width:"200px",fixed:"right"},{default:e.withCtx(({row:a})=>[a.state=="SUBMITTED"&&h.$hasPer("WITHDRAW_APPROVE")?(e.openBlock(),e.createBlock(N,{key:0,title:"确定同意本次提现吗?",onConfirm:E=>s(a.id)},{reference:e.withCtx(()=>[e.createVNode(i,{type:"success"},{default:e.withCtx(()=>[e.createTextVNode("通过")]),_:1})]),_:2},1032,["onConfirm"])):e.createCommentVNode("",!0),a.state=="SUBMITTED"&&h.$hasPer("WITHDRAW_REJECT")?(e.openBlock(),e.createBlock(z,{"withdraw-id":a.id,onSuccess:c,key:`rej_${a.id}`},null,8,["withdraw-id"])):e.createCommentVNode("",!0),a.state=="SUBMITTED"&&!a.isManualTransferMode&&h.$hasPer("WITHDRAW_CONFIRM")?(e.openBlock(),e.createBlock(N,{key:2,title:"确认该笔提现没问题吗?",onConfirm:E=>x(a.id)},{reference:e.withCtx(()=>[e.createVNode(i,{type:"warning"},{default:e.withCtx(()=>[e.createTextVNode("确认")]),_:1})]),_:2},1032,["onConfirm"])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["condition"]),e.createVNode(ee,{ref_key:"userDetailDialog",ref:_},null,512),e.createVNode(Q,{ref_key:"alipayTransferDialog",ref:n,onSuccess:c,condition:o.value},null,8,["condition"])],64)}}}),F=e.defineComponent({__name:"PayHistoryListView",setup(w){const p={TRANS_CREATED:"交易创建",PAY_SUCCESS:"交易成功",PAY_FAIL:"交易失败",CLOSED:"交易关闭"},o=e.ref({thirdPlatformCode:null,userId:null,objectCode:null,objectId:null,status:null,tradeNo:null,thirdPlatformTransId:null,createTimeStar:null,createTimeEnd:null}),d=e.ref([]);e.watch(d,f=>{f?(o.value.createTimeStar=f[0],o.value.createTimeEnd=f[1]):(o.value.createTimeStar=null,o.value.createTimeEnd=null)});const c=e.ref();function n(){c.value.search()}const C=e.ref();function _(f){C.value.show(f)}return(f,l)=>{const s=e.resolveComponent("el-input"),x=e.resolveComponent("pg-user-selector"),h=e.resolveComponent("el-option"),r=e.resolveComponent("el-select"),b=e.resolveComponent("el-date-picker"),k=e.resolveComponent("el-button"),V=e.resolveComponent("el-space"),T=e.resolveComponent("el-card"),i=e.resolveComponent("el-table-column"),B=e.resolveComponent("el-link"),u=e.resolveComponent("el-descriptions-item"),m=e.resolveComponent("el-descriptions"),y=e.resolveComponent("el-popover"),I=e.resolveComponent("pg-table"),S=e.resolveComponent("pg-user-detail-dialog");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(T,null,{default:e.withCtx(()=>[e.createVNode(V,null,{default:e.withCtx(()=>[e.createVNode(s,{modelValue:o.value.thirdPlatformCode,"onUpdate:modelValue":l[0]||(l[0]=t=>o.value.thirdPlatformCode=t),placeholder:"平台代码",style:{width:"100px"},clearable:""},null,8,["modelValue"]),e.createVNode(x,{modelValue:o.value.userId,"onUpdate:modelValue":l[1]||(l[1]=t=>o.value.userId=t),placeholder:"搜索用户",clearable:"",style:{width:"250px"}},null,8,["modelValue"]),e.createVNode(s,{modelValue:o.value.objectCode,"onUpdate:modelValue":l[2]||(l[2]=t=>o.value.objectCode=t),placeholder:"关联对象代码",style:{width:"120px"},clearable:""},null,8,["modelValue"]),e.createVNode(s,{modelValue:o.value.objectId,"onUpdate:modelValue":l[3]||(l[3]=t=>o.value.objectId=t),placeholder:"关联对象ID",style:{width:"120px"},clearable:""},null,8,["modelValue"]),e.createVNode(r,{modelValue:o.value.status,"onUpdate:modelValue":l[4]||(l[4]=t=>o.value.status=t),placeholder:"状态",style:{width:"100px"},clearable:""},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(p,(t,N)=>e.createVNode(h,{label:t,value:N},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t),1)]),_:2},1032,["label","value"])),64))]),_:1},8,["modelValue"]),e.createVNode(s,{modelValue:o.value.tradeNo,"onUpdate:modelValue":l[5]||(l[5]=t=>o.value.tradeNo=t),placeholder:"交易编号",style:{width:"150px"},clearable:""},null,8,["modelValue"]),e.createVNode(s,{modelValue:o.value.thirdPlatformTransId,"onUpdate:modelValue":l[6]||(l[6]=t=>o.value.thirdPlatformTransId=t),placeholder:"交易平台编号",style:{width:"120px"},clearable:""},null,8,["modelValue"]),e.createVNode(b,{modelValue:d.value,"onUpdate:modelValue":l[7]||(l[7]=t=>d.value=t),type:"datetimerange","range-separator":"到","start-placeholder":"创建时间开始","end-placeholder":"创建时间结束"},null,8,["modelValue"]),e.createVNode(k,{type:"primary",icon:"search",onClick:n},{default:e.withCtx(()=>[e.createTextVNode("搜索")]),_:1})]),_:1})]),_:1}),e.createVNode(I,{ref_key:"table",ref:c,style:{"margin-top":"10px"},"data-url":"/api/third-platform/pay/histories",condition:o.value},{default:e.withCtx(()=>[e.createVNode(i,{label:"交易平台",prop:"platformName"}),e.createVNode(i,{label:"用户ID",width:"80",prop:"userId"},{default:e.withCtx(({row:t})=>[e.createVNode(B,{type:"primary",onClick:N=>_(t.userId)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.userId),1)]),_:2},1032,["onClick"])]),_:1}),e.createVNode(i,{label:"支付金额",width:"90",align:"right",prop:"paidAmount"},{default:e.withCtx(({row:t})=>[e.createTextVNode(e.toDisplayString(t.paidAmount==null?"":t.paidAmount.toFixed(2)),1)]),_:1}),e.createVNode(i,{label:"交易编号",width:"210",prop:"tradeNo"}),e.createVNode(i,{label:"交易平台编号",width:"210",prop:"thirdPlatformTransId","show-overflow-tooltip":""}),e.createVNode(i,{label:"关联对象代码",width:"150",prop:"objectCode","show-overflow-tooltip":""}),e.createVNode(i,{label:"关联对象ID",width:"80",prop:"objectId"}),e.createVNode(i,{label:"交易状态",prop:"status"},{default:e.withCtx(({row:t})=>[e.createTextVNode(e.toDisplayString(p[t.status]),1)]),_:1}),e.createVNode(i,{label:"请求内容",prop:"requestData"},{default:e.withCtx(({row:t})=>[t.requestData?(e.openBlock(),e.createBlock(y,{key:0,trigger:"hover",width:"500"},{reference:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.requestData.substring(0,10))+"... ",1)]),default:e.withCtx(()=>[t.requestData.startsWith("{")?(e.openBlock(),e.createBlock(m,{key:0,column:"1",border:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(JSON.parse(t.requestData),(N,D)=>(e.openBlock(),e.createBlock(u,{label:D,"min-width":"150"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N),1)]),_:2},1032,["label"]))),256))]),_:2},1024)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(t.requestData),1)],64))]),_:2},1024)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(i,{label:"响应内容",prop:"responseData"},{default:e.withCtx(({row:t})=>[t.responseData?(e.openBlock(),e.createBlock(y,{key:0,trigger:"hover",width:"600"},{reference:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.responseData.substring(0,10))+"... ",1)]),default:e.withCtx(()=>[t.responseData.startsWith("{")?(e.openBlock(),e.createBlock(m,{key:0,column:"1",border:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(JSON.parse(t.responseData),(N,D)=>(e.openBlock(),e.createBlock(u,{label:D,"min-width":"150"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N),1)]),_:2},1032,["label"]))),256))]),_:2},1024)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(t.responseData),1)],64))]),_:2},1024)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(i,{label:"创建时间",prop:"createdTime",width:"170"}),e.createVNode(i,{label:"更新时间",prop:"updatedTime",width:"170"})]),_:1},8,["condition"]),e.createVNode(S,{ref_key:"userDetailDialog",ref:C},null,512)],64)}}}),L=e.defineComponent({__name:"TransferHistoryListView",setup(w){const p={TRANSFER_CREATED:"转账创建",TRANSFER_SUCCESS:"转账成功",TRANSFER_FAIL:"转账失败"},o=e.ref({thirdPlatformCode:null,userId:null,transferToIdentity:null,status:null,tradeNo:null,thirdPlatformOrderId:null,failCode:null,createTimeStar:null,createTimeEnd:null}),d=e.ref([]);e.watch(d,f=>{f?(o.value.createTimeStar=f[0],o.value.createTimeEnd=f[1]):(o.value.createTimeStar=null,o.value.createTimeEnd=null)});const c=e.ref();function n(){c.value.search()}const C=e.ref();function _(f){C.value.show(f)}return(f,l)=>{const s=e.resolveComponent("el-input"),x=e.resolveComponent("pg-user-selector"),h=e.resolveComponent("el-option"),r=e.resolveComponent("el-select"),b=e.resolveComponent("el-date-picker"),k=e.resolveComponent("el-button"),V=e.resolveComponent("el-space"),T=e.resolveComponent("el-card"),i=e.resolveComponent("el-table-column"),B=e.resolveComponent("el-link"),u=e.resolveComponent("el-descriptions-item"),m=e.resolveComponent("el-descriptions"),y=e.resolveComponent("el-popover"),I=e.resolveComponent("pg-table"),S=e.resolveComponent("pg-user-detail-dialog");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(T,null,{default:e.withCtx(()=>[e.createVNode(V,null,{default:e.withCtx(()=>[e.createVNode(s,{modelValue:o.value.thirdPlatformCode,"onUpdate:modelValue":l[0]||(l[0]=t=>o.value.thirdPlatformCode=t),placeholder:"平台代码",style:{width:"100px"},clearable:""},null,8,["modelValue"]),e.createVNode(x,{modelValue:o.value.userId,"onUpdate:modelValue":l[1]||(l[1]=t=>o.value.userId=t),placeholder:"搜索用户",clearable:"",style:{width:"250px"}},null,8,["modelValue"]),e.createVNode(s,{modelValue:o.value.transferToIdentity,"onUpdate:modelValue":l[2]||(l[2]=t=>o.value.transferToIdentity=t),placeholder:"转账账号",style:{width:"120px"},clearable:""},null,8,["modelValue"]),e.createVNode(r,{modelValue:o.value.status,"onUpdate:modelValue":l[3]||(l[3]=t=>o.value.status=t),placeholder:"状态",style:{width:"100px"},clearable:""},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(p,(t,N)=>e.createVNode(h,{label:t,value:N},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t),1)]),_:2},1032,["label","value"])),64))]),_:1},8,["modelValue"]),e.createVNode(s,{modelValue:o.value.tradeNo,"onUpdate:modelValue":l[4]||(l[4]=t=>o.value.tradeNo=t),placeholder:"交易编号",style:{width:"150px"},clearable:""},null,8,["modelValue"]),e.createVNode(s,{modelValue:o.value.thirdPlatformOrderId,"onUpdate:modelValue":l[5]||(l[5]=t=>o.value.thirdPlatformOrderId=t),placeholder:"交易平台编号",style:{width:"120px"},clearable:""},null,8,["modelValue"]),e.createVNode(s,{modelValue:o.value.failCode,"onUpdate:modelValue":l[6]||(l[6]=t=>o.value.failCode=t),placeholder:"错误码",style:{width:"120px"},clearable:""},null,8,["modelValue"]),e.createVNode(b,{modelValue:d.value,"onUpdate:modelValue":l[7]||(l[7]=t=>d.value=t),type:"datetimerange","range-separator":"到","start-placeholder":"创建时间开始","end-placeholder":"创建时间结束"},null,8,["modelValue"]),e.createVNode(k,{type:"primary",icon:"search",onClick:n},{default:e.withCtx(()=>[e.createTextVNode("搜索")]),_:1})]),_:1})]),_:1}),e.createVNode(I,{ref_key:"table",ref:c,style:{"margin-top":"10px"},"data-url":"/api/third-platform/transfer/histories",condition:o.value},{default:e.withCtx(()=>[e.createVNode(i,{label:"交易平台",prop:"platformName"}),e.createVNode(i,{label:"用户ID",width:"80",prop:"userId"},{default:e.withCtx(({row:t})=>[e.createVNode(B,{type:"primary",onClick:N=>_(t.userId)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.userId),1)]),_:2},1032,["onClick"])]),_:1}),e.createVNode(i,{label:"转账金额",width:"100",align:"right",prop:"amount"},{default:e.withCtx(({row:t})=>[e.createTextVNode(e.toDisplayString(t.amount.toFixed(2)),1)]),_:1}),e.createVNode(i,{label:"交易编号",width:"220",prop:"tradeNo"}),e.createVNode(i,{label:"交易平台编号",width:"210",prop:"thirdPlatformOrderId","show-overflow-tooltip":""}),e.createVNode(i,{label:"错误码",width:"150",prop:"failCode","show-overflow-tooltip":""}),e.createVNode(i,{label:"交易状态",prop:"status"},{default:e.withCtx(({row:t})=>[e.createTextVNode(e.toDisplayString(p[t.status]),1)]),_:1}),e.createVNode(i,{label:"请求内容",prop:"requestData"},{default:e.withCtx(({row:t})=>[t.requestData?(e.openBlock(),e.createBlock(y,{key:0,trigger:"hover",width:"500"},{reference:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.requestData.substring(0,10)),1)]),default:e.withCtx(()=>[t.requestData.startsWith("{")?(e.openBlock(),e.createBlock(m,{key:0,column:"1",border:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(JSON.parse(t.requestData),(N,D)=>(e.openBlock(),e.createBlock(u,{label:D,"min-width":"150"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N),1)]),_:2},1032,["label"]))),256))]),_:2},1024)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(t.requestData),1)],64))]),_:2},1024)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(i,{label:"响应内容",prop:"responseData"},{default:e.withCtx(({row:t})=>[t.responseData?(e.openBlock(),e.createBlock(y,{key:0,trigger:"hover",width:"600"},{reference:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.responseData.substring(0,10))+"... ",1)]),default:e.withCtx(()=>[t.responseData.startsWith("{")?(e.openBlock(),e.createBlock(m,{key:0,column:"1",border:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(JSON.parse(t.responseData),(N,D)=>(e.openBlock(),e.createBlock(u,{label:D,"min-width":"150"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N),1)]),_:2},1032,["label"]))),256))]),_:2},1024)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(t.responseData),1)],64))]),_:2},1024)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(i,{label:"创建时间",prop:"createdTime",width:"170"}),e.createVNode(i,{label:"更新时间",prop:"updatedTime",width:"170"})]),_:1},8,["condition"]),e.createVNode(S,{ref_key:"userDetailDialog",ref:C},null,512)],64)}}}),Z={install:(w,p)=>{let o=p.router,d=o.getRoutes().find(c=>c.path=="/");d&&d.meta&&(o.addRoute({path:"/finance/withdraw-history",name:"WithdrawHistory",redirect:"/finance/withdraw-history/list",component:d.meta.commonLayout,children:[{path:"list",name:"WithdrawHistoryList",component:M}]}),o.addRoute({path:"/finance/pay-history",name:"PayHistory",redirect:"/finance/pay-history/list",component:d.meta.commonLayout,children:[{path:"list",name:"PayHistoryList",component:F}]}),o.addRoute({path:"/finance/transfer-history",name:"TransferHistory",redirect:"/finance/transfer-history/list",component:d.meta.commonLayout,children:[{path:"list",name:"TransferHistoryList",component:L}]}))}},H=(w,p)=>{$.forEach(o=>w.use(o)),w.use(Z,p)},v={install:H};g.PayHistoryListView=F,g.TransferHistoryListView=L,g.UserWithdrawHistory=A,g.UserWithdrawMethod=W,g.WithdrawHistoryListView=M,g.default=v,g.install=H,Object.defineProperties(g,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(g,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@pangu-backend-ui/user-core"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","@pangu-backend-ui/user-core","element-plus"],e):(g=typeof globalThis<"u"?globalThis:g||self,e(g["pg-user-core"]={},g.Vue,g.userCore,g["element-plus"]))})(this,function(g,e,R,U){"use strict";const P=e.defineComponent({__name:"UserWithdrawHistoryComp",props:["userId"],setup(w){const c=w,o=e.ref({userId:c.userId});return e.onBeforeMount(()=>o.value.userId=c.userId),(d,s)=>{const n=e.resolveComponent("el-table-column"),C=e.resolveComponent("el-tag"),_=e.resolveComponent("pg-table");return e.openBlock(),e.createBlock(_,{"data-url":"/api/withdraw/records",condition:o.value},{columns:e.withCtx(()=>[e.createVNode(n,{prop:"id",label:"ID",align:"center",width:"80","show-overflow-tooltip":""}),e.createVNode(n,{prop:"amount",label:"提现金额",align:"center","show-overflow-tooltip":""}),e.createVNode(n,{label:"应到金额",prop:"actualAmount",align:"center"}),e.createVNode(n,{label:"状态",align:"center","show-overflow-tooltip":""},{default:e.withCtx(({row:f})=>[f.state==="SUBMITTED"?(e.openBlock(),e.createBlock(C,{key:0,type:"warning",size:"small"},{default:e.withCtx(()=>[e.createTextVNode("待审批")]),_:1})):e.createCommentVNode("",!0),f.state==="REJECTED"?(e.openBlock(),e.createBlock(C,{key:1,type:"info",size:"small"},{default:e.withCtx(()=>[e.createTextVNode("已驳回")]),_:1})):e.createCommentVNode("",!0),f.state==="WITHDRAW_FAILED"?(e.openBlock(),e.createBlock(C,{key:2,type:"danger",size:"small"},{default:e.withCtx(()=>[e.createTextVNode("提现失败")]),_:1})):e.createCommentVNode("",!0),f.state==="WITHDRAW_SUCCESS"?(e.openBlock(),e.createBlock(C,{key:3,type:"success",size:"small"},{default:e.withCtx(()=>[e.createTextVNode("提现成功")]),_:1})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(n,{label:"费率",prop:"handlingFeeRate",align:"center"}),e.createVNode(n,{label:"手续费",prop:"handlingFee",align:"center"}),e.createVNode(n,{label:"驳回原因",prop:"rejectReason",align:"center"}),e.createVNode(n,{label:"创建时间",prop:"createdTime",width:"150",align:"center"})]),_:1},8,["condition"])}}}),A={install:()=>{R.useUserCoreConfigStore().userDetailDialogTabs.push({name:"提现历史",code:"WITHDRAW_HISTORY",component:e.shallowRef(P)})}},j=e.defineComponent({__name:"UserWithdrawMethodComp",props:["userId"],setup(w){const c=w,o=e.ref(),d=e.inject("http");function s(n){d==null||d.post(`/api/withdraw/method/${n}/invalid`).then(C=>{U.ElMessage.success("操作成功"),o.value.search()})}return(n,C)=>{const _=e.resolveComponent("el-table-column"),f=e.resolveComponent("el-image"),l=e.resolveComponent("el-tag"),p=e.resolveComponent("el-button"),x=e.resolveComponent("el-popconfirm"),h=e.resolveComponent("pg-table");return e.openBlock(),e.createBlock(h,{ref_key:"table",ref:o,"data-url":"/api/withdraw/method",condition:{userId:c.userId}},{columns:e.withCtx(()=>[e.createVNode(_,{prop:"id",label:"编号",width:"70",align:"center","show-overflow-tooltip":""}),e.createVNode(_,{prop:"platformName",label:"平台","min-width":"80","show-overflow-tooltip":""}),e.createVNode(_,{prop:"account",label:"帐号","min-width":"150"}),e.createVNode(_,{prop:"realName",label:"姓名",align:"center","min-width":"80","show-overflow-tooltip":""}),e.createVNode(_,{prop:"nickName",label:"昵称","min-width":"80","show-overflow-tooltip":""}),e.createVNode(_,{prop:"openId",label:"OpenId",align:"center","min-width":"80","show-overflow-tooltip":""}),e.createVNode(_,{prop:"qcCodeSrc",label:"二维码",align:"center","show-overflow-tooltip":""},{default:e.withCtx(({row:r})=>[r.qrCodeSrc?(e.openBlock(),e.createBlock(f,{key:0,src:r.qrCodeSrc,style:{width:"25px",height:"25px"},fit:"contain","preview-teleported":"","preview-src-list":[r.qrCodeSrc]},null,8,["src","preview-src-list"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(_,{label:"状态",prop:"status",align:"center",width:"80"},{default:e.withCtx(({row:r})=>[r.status=="VALID"?(e.openBlock(),e.createBlock(l,{key:0,type:"success"},{default:e.withCtx(()=>[e.createTextVNode("有效")]),_:1})):e.createCommentVNode("",!0),r.status=="INVALID"?(e.openBlock(),e.createBlock(l,{key:1,type:"warning"},{default:e.withCtx(()=>[e.createTextVNode("失效")]),_:1})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(_,{label:"默认",align:"center",width:"60"},{default:e.withCtx(({row:r})=>[e.createVNode(l,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.isDefault?"是":"否"),1)]),_:2},1024)]),_:1}),e.createVNode(_,{prop:"createdTime",label:"创建时间",width:"170","show-overflow-tooltip":""}),e.createVNode(_,{prop:"updatedTime",label:"修改时间",width:"170","show-overflow-tooltip":""}),e.createVNode(_,{align:"center",fixed:"right",width:"80",label:"操作"},{default:e.withCtx(({row:r})=>[r.status=="VALID"?(e.openBlock(),e.createBlock(x,{key:0,title:"确定要失效该提现方式吗?",onConfirm:b=>s(r.id)},{reference:e.withCtx(()=>[e.createVNode(p,{type:"danger",icon:"circle-close-filled",circle:""})]),_:2},1032,["onConfirm"])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["condition"])}}}),W={install:()=>{R.useUserCoreConfigStore().userDetailDialogTabs.push({name:"提现方式",code:"WITHDRAW_METHOD",component:e.shallowRef(j)})}},$=[A,W],q={style:{display:"flex","flex-direction":"column"}},O={style:{display:"flex","justify-content":"end"}},z=e.defineComponent({__name:"RejectPopover",props:["withdrawId"],emits:["success"],setup(w,{emit:c}){const o=w,d=e.inject("http"),s=e.ref(!1),n=e.ref({rejectReason:null}),C=e.ref({rejectReason:[{required:!0,message:"请输入驳回原因"}]}),_=e.ref();function f(){var l;(l=_.value)==null||l.validate((p,x)=>{p&&(d==null||d.post(`/api/withdraw/${o.withdrawId}/reject`,n.value).then(h=>{s.value=!1,c("success")}))})}return(l,p)=>{const x=e.resolveComponent("el-button"),h=e.resolveComponent("el-input"),r=e.resolveComponent("el-form-item"),b=e.resolveComponent("el-form"),k=e.resolveComponent("el-popover");return e.openBlock(),e.createBlock(k,{visible:s.value,trigger:"click",width:"200",title:"确定要驳回吗?"},{reference:e.withCtx(()=>[e.createVNode(x,{type:"danger",onClick:p[0]||(p[0]=V=>s.value=!0)},{default:e.withCtx(()=>[e.createTextVNode("驳回")]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",q,[e.createVNode(b,{ref_key:"form",ref:_,rules:C.value,model:n.value},{default:e.withCtx(()=>[e.createVNode(r,{prop:"rejectReason"},{default:e.withCtx(()=>[e.createVNode(h,{modelValue:n.value.rejectReason,"onUpdate:modelValue":p[1]||(p[1]=V=>n.value.rejectReason=V),type:"textarea",placeholder:"请输入驳回原因"},null,8,["modelValue"])]),_:1})]),_:1},8,["rules","model"]),e.createElementVNode("div",O,[e.createVNode(x,{size:"small",text:"",onClick:p[2]||(p[2]=V=>s.value=!1)},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(x,{size:"small",type:"primary",onClick:f},{default:e.withCtx(()=>[e.createTextVNode("确认")]),_:1})])])]),_:1},8,["visible"])}}}),J={style:{width:"100%",display:"flex","justify-content":"center","align-items":"center"}},Y={style:{color:"red","font-size":"25px","margin-left":"5px"}},G={style:{width:"100%","margin-top":"50px",display:"flex","justify-content":"center","align-items":"center"}},K={style:{color:"red","font-size":"25px","margin-left":"5px"}},Q=e.defineComponent({__name:"AlipayTransferDialog",props:["condition"],emits:["success"],setup(w,{expose:c,emit:o}){const d=w,s=e.inject("http"),n=e.ref({show:!1,loading:!1,totalAmount:null,totalCount:null,latestWithdrawId:null});function C(){n.value.show=!0,_()}function _(){n.value.loading=!0,d.condition.state="SUBMITTED",d.condition.isManualTransferMode=1,d.condition.suspendedTransfer=0,s==null||s.get("/api/withdraw/get-manual-transfer-info",d.condition).then(r=>{n.value.loading=!1,n.value.totalAmount=r.data.totalAmount,n.value.totalCount=r.data.totalCount,n.value.latestWithdrawId=r.data.latestWithdrawId})}function f(){s==null||s.download("/api/withdraw/get-manual-transfer-file",{...d.condition,lessOrEqualsThanId:n.value.latestWithdrawId})}const l=e.ref(),p=e.ref(null);function x(r){U.ElMessage.success({message:r.response.data,type:"success",duration:0,showClose:!0}),p.value&&p.value.close(),n.value.show=!1,o("success"),l.value.clearFileList(),n.value.totalAmount=null,n.value.totalCount=null,n.value.latestWithdrawId=null}function h(){p.value=U.ElLoading.service()}return c({show:C}),(r,b)=>{const k=e.resolveComponent("el-button"),V=e.resolveComponent("el-col"),T=e.resolveComponent("pg-upload"),i=e.resolveComponent("el-row"),B=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(B,{modelValue:n.value.show,"onUpdate:modelValue":b[0]||(b[0]=u=>n.value.show=u),"close-on-click-modal":!1,width:"500",draggable:"",title:"打款信息"},{default:e.withCtx(()=>[e.createElementVNode("div",J,[e.createTextVNode(" 打款记录数: "),e.createElementVNode("span",Y,e.toDisplayString(n.value.totalCount==null?"-":n.value.totalCount),1)]),e.createElementVNode("div",G,[e.createTextVNode(" 打款总金额: "),e.createElementVNode("span",K,e.toDisplayString(n.value.totalAmount==null?"-":n.value.totalAmount.toFixed(2)),1)]),e.createVNode(i,{style:{"margin-top":"50px"}},{default:e.withCtx(()=>[e.createVNode(V,{span:12,style:{"text-align":"center"}},{default:e.withCtx(()=>[e.createVNode(k,{type:"warning",icon:"download",disabled:n.value.totalCount<=0,onClick:f},{default:e.withCtx(()=>[e.createTextVNode("下载支付宝打款Excel ")]),_:1},8,["disabled"])]),_:1}),e.createVNode(V,{span:12,style:{"text-align":"center"}},{default:e.withCtx(()=>[e.createVNode(T,{ref_key:"uploader",ref:l,accept:"application/vnd.ms-excel","upload-type":"","btn-txt":"上传支付宝打款结果",onOnSuccess:x,onBeforeUpload:h,qiniu:!1,"action-url":"/api/withdraw/handle-batch-manual-transfer-result"},null,512)]),_:1})]),_:1})]),_:1},8,["modelValue"])}}}),X={style:{color:"red","font-weight":"bold"}},M=e.defineComponent({__name:"WithdrawHistoryListView",setup(w){const c=e.inject("http"),o=e.ref({id:null,uid:null,tradeNo:null,isManualTransferMode:null,suspendedTransfer:null,state:null}),d=e.ref();function s(){d.value.search()}const n=e.ref();function C(){n.value.show()}const _=e.ref();function f(h){_.value.show(h)}function l(h){c==null||c.post(`/api/withdraw/${h}/switch-suspend-transfer`,{}).then(r=>{})}function p(h){c==null||c.post(`/api/withdraw/${h}/approve`).then(r=>{s()})}function x(h){c==null||c.post(`/api/withdraw/${h}/confirm`).then(r=>{s()})}return(h,r)=>{const b=e.resolveComponent("el-input"),k=e.resolveComponent("pg-user-selector"),V=e.resolveComponent("el-option"),T=e.resolveComponent("el-select"),i=e.resolveComponent("el-button"),B=e.resolveComponent("el-space"),u=e.resolveComponent("el-card"),m=e.resolveComponent("el-table-column"),y=e.resolveComponent("el-tag"),I=e.resolveComponent("el-link"),S=e.resolveComponent("pg-user-mobile"),t=e.resolveComponent("el-switch"),N=e.resolveComponent("el-popconfirm"),D=e.resolveComponent("pg-table"),ee=e.resolveComponent("pg-user-detail-dialog"),te=e.resolveDirective("permission");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(B,null,{default:e.withCtx(()=>[e.createVNode(b,{modelValue:o.value.id,"onUpdate:modelValue":r[0]||(r[0]=a=>o.value.id=a),placeholder:"提现记录ID",style:{width:"110px"},clearable:""},null,8,["modelValue"]),e.createVNode(k,{modelValue:o.value.uid,"onUpdate:modelValue":r[1]||(r[1]=a=>o.value.uid=a),placeholder:"搜索用户",clearable:"",style:{width:"300px"}},null,8,["modelValue"]),e.createVNode(b,{modelValue:o.value.tradeNo,"onUpdate:modelValue":r[2]||(r[2]=a=>o.value.tradeNo=a),placeholder:"转账编号",style:{width:"220px"},clearable:""},null,8,["modelValue"]),e.createVNode(T,{modelValue:o.value.isManualTransferMode,"onUpdate:modelValue":r[3]||(r[3]=a=>o.value.isManualTransferMode=a),placeholder:"已确认",style:{width:"100px"},clearable:""},{default:e.withCtx(()=>[e.createVNode(V,{label:"是",value:1}),e.createVNode(V,{label:"否",value:0})]),_:1},8,["modelValue"]),e.createVNode(T,{modelValue:o.value.suspendedTransfer,"onUpdate:modelValue":r[4]||(r[4]=a=>o.value.suspendedTransfer=a),placeholder:"允许提现",style:{width:"100px"},clearable:""},{default:e.withCtx(()=>[e.createVNode(V,{label:"是",value:0}),e.createVNode(V,{label:"否",value:1})]),_:1},8,["modelValue"]),e.createVNode(T,{modelValue:o.value.state,"onUpdate:modelValue":r[5]||(r[5]=a=>o.value.state=a),placeholder:"状态",style:{width:"100px"},clearable:""},{default:e.withCtx(()=>[e.createVNode(V,{label:"等待审核",value:"SUBMITTED"}),e.createVNode(V,{label:"审核失败",value:"REJECTED"}),e.createVNode(V,{label:"提现成功",value:"WITHDRAW_SUCCESS"}),e.createVNode(V,{label:"自主取消",value:"CANCELED"}),e.createVNode(V,{label:"提现失败",value:"WITHDRAW_FAILED"})]),_:1},8,["modelValue"]),e.createVNode(i,{type:"primary",icon:"search",onClick:s},{default:e.withCtx(()=>[e.createTextVNode("查询")]),_:1}),e.withDirectives((e.openBlock(),e.createBlock(i,{type:"warning",onClick:C},{default:e.withCtx(()=>[e.createTextVNode("支付宝打款")]),_:1})),[[te,"WITHDRAW_ALIPAY_MANUAL_TRANSFER"]])]),_:1})]),_:1}),e.createVNode(D,{ref_key:"table",ref:d,"data-url":"/api/withdraw/records",style:{"margin-top":"10px"},condition:o.value},{columns:e.withCtx(()=>[e.createVNode(m,{label:"ID",prop:"id",align:"center",width:"70px"}),e.createVNode(m,{label:"提现信息"},{default:e.withCtx(()=>[e.createVNode(m,{label:"金额",prop:"amount",align:"right",width:"65px"},{default:e.withCtx(({row:a})=>[e.createElementVNode("span",X,e.toDisplayString(a.amount),1)]),_:1}),e.createVNode(m,{label:"应到",prop:"actualAmount",align:"right",width:"65px"}),e.createVNode(m,{label:"费率",prop:"handlingFeeRate",align:"right",width:"55px"}),e.createVNode(m,{label:"手续费",prop:"handlingFee",align:"right",width:"70px"}),e.createVNode(m,{label:"状态",prop:"state",align:"center",width:"100px"},{default:e.withCtx(({row:a})=>[a.state=="SUBMITTED"?(e.openBlock(),e.createBlock(y,{key:0,type:"warning"},{default:e.withCtx(()=>[e.createTextVNode("等待审核")]),_:1})):e.createCommentVNode("",!0),a.state=="REJECTED"?(e.openBlock(),e.createBlock(y,{key:1,type:"info"},{default:e.withCtx(()=>[e.createTextVNode("审核失败")]),_:1})):e.createCommentVNode("",!0),a.state=="WITHDRAW_FAILED"?(e.openBlock(),e.createBlock(y,{key:2,type:"danger"},{default:e.withCtx(()=>[e.createTextVNode("提现失败")]),_:1})):e.createCommentVNode("",!0),a.state=="CANCELED"?(e.openBlock(),e.createBlock(y,{key:3,type:"danger"},{default:e.withCtx(()=>[e.createTextVNode("自主取消")]),_:1})):e.createCommentVNode("",!0),a.state=="WITHDRAW_SUCCESS"?(e.openBlock(),e.createBlock(y,{key:4,type:"success"},{default:e.withCtx(()=>[e.createTextVNode("提现成功")]),_:1})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(m,{label:"确认",prop:"isManualTransferMode",align:"center",width:"60px"},{default:e.withCtx(({row:a})=>[a.isManualTransferMode?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(y,{key:0,type:"danger"},{default:e.withCtx(()=>[e.createTextVNode("否")]),_:1})),a.isManualTransferMode?(e.openBlock(),e.createBlock(y,{key:1,type:"success"},{default:e.withCtx(()=>[e.createTextVNode("是")]),_:1})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(m,{label:"转账编号",prop:"tradeNo",align:"center","show-overflow-tooltip":""}),e.createVNode(m,{label:"提现平台",prop:"withdrawPlatformName",align:"center"})]),_:1}),e.createVNode(m,{label:"用户信息"},{default:e.withCtx(()=>[e.createVNode(m,{label:"用户ID",prop:"userId",align:"center",width:"80px","show-overflow-tooltip":""},{default:e.withCtx(({row:a})=>[e.createVNode(I,{type:"primary",onClick:E=>f(a.userId)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.userId),1)]),_:2},1032,["onClick"])]),_:1}),e.createVNode(m,{label:"提现姓名",prop:"withdrawName",align:"center","min-width":"90px"}),e.createVNode(m,{label:"提现账号",prop:"withdrawAccount",width:"150px"}),e.createVNode(m,{label:"手机号",prop:"mobile",align:"center",width:"120px"},{default:e.withCtx(({row:a})=>[(e.openBlock(),e.createBlock(S,{"mask-mobile":a.mobile,"user-id":a.userId,key:a.userId},null,8,["mask-mobile","user-id"]))]),_:1}),e.createVNode(m,{label:"用户余额",prop:"userBalance",align:"right","min-width":"60px"})]),_:1}),e.createVNode(m,{label:"更新时间",prop:"updatedTime",align:"center",width:"110px"}),e.createVNode(m,{label:"提现时间",prop:"createdTime",align:"center",width:"110px"}),e.createVNode(m,{label:"驳回原因",prop:"rejectReason",align:"center",width:"200px"}),h.$hasPer("SWITCH_SUSPEND_TRANSFER")?(e.openBlock(),e.createBlock(m,{key:0,label:"允许提现",align:"center","min-width":"80px"},{default:e.withCtx(({row:a})=>[a.state=="SUBMITTED"?(e.openBlock(),e.createBlock(t,{key:0,modelValue:a.suspendedTransfer,"onUpdate:modelValue":E=>a.suspendedTransfer=E,onChange:E=>l(a.id),"active-color":"#ff4949","inactive-color":"#13ce66"},null,8,["modelValue","onUpdate:modelValue","onChange"])):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),e.createVNode(m,{label:"操作",align:"center",width:"200px",fixed:"right"},{default:e.withCtx(({row:a})=>[a.state=="SUBMITTED"&&h.$hasPer("WITHDRAW_APPROVE")?(e.openBlock(),e.createBlock(N,{key:0,title:"确定同意本次提现吗?",onConfirm:E=>p(a.id)},{reference:e.withCtx(()=>[e.createVNode(i,{type:"success"},{default:e.withCtx(()=>[e.createTextVNode("通过")]),_:1})]),_:2},1032,["onConfirm"])):e.createCommentVNode("",!0),a.state=="SUBMITTED"&&h.$hasPer("WITHDRAW_REJECT")?(e.openBlock(),e.createBlock(z,{"withdraw-id":a.id,onSuccess:s,key:`rej_${a.id}`},null,8,["withdraw-id"])):e.createCommentVNode("",!0),a.state=="SUBMITTED"&&!a.isManualTransferMode&&h.$hasPer("WITHDRAW_CONFIRM")?(e.openBlock(),e.createBlock(N,{key:2,title:"确认该笔提现没问题吗?",onConfirm:E=>x(a.id)},{reference:e.withCtx(()=>[e.createVNode(i,{type:"warning"},{default:e.withCtx(()=>[e.createTextVNode("确认")]),_:1})]),_:2},1032,["onConfirm"])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["condition"]),e.createVNode(ee,{ref_key:"userDetailDialog",ref:_},null,512),e.createVNode(Q,{ref_key:"alipayTransferDialog",ref:n,onSuccess:s,condition:o.value},null,8,["condition"])],64)}}}),F=e.defineComponent({__name:"PayHistoryListView",setup(w){const c={TRANS_CREATED:"交易创建",PAY_SUCCESS:"交易成功",PAY_FAIL:"交易失败",CLOSED:"交易关闭"},o=e.ref({thirdPlatformCode:null,userId:null,objectCode:null,objectId:null,status:null,tradeNo:null,thirdPlatformTransId:null,createTimeStar:null,createTimeEnd:null}),d=e.ref([]);e.watch(d,f=>{f?(o.value.createTimeStar=f[0],o.value.createTimeEnd=f[1]):(o.value.createTimeStar=null,o.value.createTimeEnd=null)});const s=e.ref();function n(){s.value.search()}const C=e.ref();function _(f){C.value.show(f)}return(f,l)=>{const p=e.resolveComponent("el-input"),x=e.resolveComponent("pg-user-selector"),h=e.resolveComponent("el-option"),r=e.resolveComponent("el-select"),b=e.resolveComponent("el-date-picker"),k=e.resolveComponent("el-button"),V=e.resolveComponent("el-space"),T=e.resolveComponent("el-card"),i=e.resolveComponent("el-table-column"),B=e.resolveComponent("el-link"),u=e.resolveComponent("el-descriptions-item"),m=e.resolveComponent("el-descriptions"),y=e.resolveComponent("el-popover"),I=e.resolveComponent("pg-table"),S=e.resolveComponent("pg-user-detail-dialog");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(T,null,{default:e.withCtx(()=>[e.createVNode(V,null,{default:e.withCtx(()=>[e.createVNode(p,{modelValue:o.value.thirdPlatformCode,"onUpdate:modelValue":l[0]||(l[0]=t=>o.value.thirdPlatformCode=t),placeholder:"平台代码",style:{width:"100px"},clearable:""},null,8,["modelValue"]),e.createVNode(x,{modelValue:o.value.userId,"onUpdate:modelValue":l[1]||(l[1]=t=>o.value.userId=t),placeholder:"搜索用户",clearable:"",style:{width:"250px"}},null,8,["modelValue"]),e.createVNode(p,{modelValue:o.value.objectCode,"onUpdate:modelValue":l[2]||(l[2]=t=>o.value.objectCode=t),placeholder:"关联对象代码",style:{width:"120px"},clearable:""},null,8,["modelValue"]),e.createVNode(p,{modelValue:o.value.objectId,"onUpdate:modelValue":l[3]||(l[3]=t=>o.value.objectId=t),placeholder:"关联对象ID",style:{width:"120px"},clearable:""},null,8,["modelValue"]),e.createVNode(r,{modelValue:o.value.status,"onUpdate:modelValue":l[4]||(l[4]=t=>o.value.status=t),placeholder:"状态",style:{width:"100px"},clearable:""},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(c,(t,N)=>e.createVNode(h,{label:t,value:N},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t),1)]),_:2},1032,["label","value"])),64))]),_:1},8,["modelValue"]),e.createVNode(p,{modelValue:o.value.tradeNo,"onUpdate:modelValue":l[5]||(l[5]=t=>o.value.tradeNo=t),placeholder:"交易编号",style:{width:"150px"},clearable:""},null,8,["modelValue"]),e.createVNode(p,{modelValue:o.value.thirdPlatformTransId,"onUpdate:modelValue":l[6]||(l[6]=t=>o.value.thirdPlatformTransId=t),placeholder:"交易平台编号",style:{width:"120px"},clearable:""},null,8,["modelValue"]),e.createVNode(b,{modelValue:d.value,"onUpdate:modelValue":l[7]||(l[7]=t=>d.value=t),type:"datetimerange","range-separator":"到","start-placeholder":"创建时间开始","end-placeholder":"创建时间结束"},null,8,["modelValue"]),e.createVNode(k,{type:"primary",icon:"search",onClick:n},{default:e.withCtx(()=>[e.createTextVNode("搜索")]),_:1})]),_:1})]),_:1}),e.createVNode(I,{ref_key:"table",ref:s,style:{"margin-top":"10px"},"data-url":"/api/third-platform/pay/histories",condition:o.value},{default:e.withCtx(()=>[e.createVNode(i,{label:"交易平台",prop:"platformName"}),e.createVNode(i,{label:"用户ID",width:"80",prop:"userId"},{default:e.withCtx(({row:t})=>[e.createVNode(B,{type:"primary",onClick:N=>_(t.userId)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.userId),1)]),_:2},1032,["onClick"])]),_:1}),e.createVNode(i,{label:"支付金额",width:"90",align:"right",prop:"paidAmount"},{default:e.withCtx(({row:t})=>[e.createTextVNode(e.toDisplayString(t.paidAmount==null?"":t.paidAmount.toFixed(2)),1)]),_:1}),e.createVNode(i,{label:"交易编号",width:"210",prop:"tradeNo"}),e.createVNode(i,{label:"交易平台编号",width:"210",prop:"thirdPlatformTransId","show-overflow-tooltip":""}),e.createVNode(i,{label:"关联对象代码",width:"150",prop:"objectCode","show-overflow-tooltip":""}),e.createVNode(i,{label:"关联对象ID",width:"80",prop:"objectId"}),e.createVNode(i,{label:"交易状态",prop:"status"},{default:e.withCtx(({row:t})=>[e.createTextVNode(e.toDisplayString(c[t.status]),1)]),_:1}),e.createVNode(i,{label:"请求内容",prop:"requestData"},{default:e.withCtx(({row:t})=>[t.requestData?(e.openBlock(),e.createBlock(y,{key:0,trigger:"hover",width:"500"},{reference:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.requestData.substring(0,10))+"... ",1)]),default:e.withCtx(()=>[t.requestData.startsWith("{")?(e.openBlock(),e.createBlock(m,{key:0,column:"1",border:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(JSON.parse(t.requestData),(N,D)=>(e.openBlock(),e.createBlock(u,{label:D,"min-width":"150"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N),1)]),_:2},1032,["label"]))),256))]),_:2},1024)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(t.requestData),1)],64))]),_:2},1024)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(i,{label:"响应内容",prop:"responseData"},{default:e.withCtx(({row:t})=>[t.responseData?(e.openBlock(),e.createBlock(y,{key:0,trigger:"hover",width:"600"},{reference:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.responseData.substring(0,10))+"... ",1)]),default:e.withCtx(()=>[t.responseData.startsWith("{")?(e.openBlock(),e.createBlock(m,{key:0,column:"1",border:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(JSON.parse(t.responseData),(N,D)=>(e.openBlock(),e.createBlock(u,{label:D,"min-width":"150"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N),1)]),_:2},1032,["label"]))),256))]),_:2},1024)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(t.responseData),1)],64))]),_:2},1024)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(i,{label:"创建时间",prop:"createdTime",width:"170"}),e.createVNode(i,{label:"更新时间",prop:"updatedTime",width:"170"})]),_:1},8,["condition"]),e.createVNode(S,{ref_key:"userDetailDialog",ref:C},null,512)],64)}}}),L=e.defineComponent({__name:"TransferHistoryListView",setup(w){const c={TRANSFER_CREATED:"转账创建",TRANSFER_SUCCESS:"转账成功",TRANSFER_FAIL:"转账失败"},o=e.ref({thirdPlatformCode:null,userId:null,transferToIdentity:null,status:null,tradeNo:null,thirdPlatformOrderId:null,failCode:null,createTimeStar:null,createTimeEnd:null}),d=e.ref([]);e.watch(d,f=>{f?(o.value.createTimeStar=f[0],o.value.createTimeEnd=f[1]):(o.value.createTimeStar=null,o.value.createTimeEnd=null)});const s=e.ref();function n(){s.value.search()}const C=e.ref();function _(f){C.value.show(f)}return(f,l)=>{const p=e.resolveComponent("el-input"),x=e.resolveComponent("pg-user-selector"),h=e.resolveComponent("el-option"),r=e.resolveComponent("el-select"),b=e.resolveComponent("el-date-picker"),k=e.resolveComponent("el-button"),V=e.resolveComponent("el-space"),T=e.resolveComponent("el-card"),i=e.resolveComponent("el-table-column"),B=e.resolveComponent("el-link"),u=e.resolveComponent("el-descriptions-item"),m=e.resolveComponent("el-descriptions"),y=e.resolveComponent("el-popover"),I=e.resolveComponent("pg-table"),S=e.resolveComponent("pg-user-detail-dialog");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(T,null,{default:e.withCtx(()=>[e.createVNode(V,null,{default:e.withCtx(()=>[e.createVNode(p,{modelValue:o.value.thirdPlatformCode,"onUpdate:modelValue":l[0]||(l[0]=t=>o.value.thirdPlatformCode=t),placeholder:"平台代码",style:{width:"100px"},clearable:""},null,8,["modelValue"]),e.createVNode(x,{modelValue:o.value.userId,"onUpdate:modelValue":l[1]||(l[1]=t=>o.value.userId=t),placeholder:"搜索用户",clearable:"",style:{width:"250px"}},null,8,["modelValue"]),e.createVNode(p,{modelValue:o.value.transferToIdentity,"onUpdate:modelValue":l[2]||(l[2]=t=>o.value.transferToIdentity=t),placeholder:"转账账号",style:{width:"120px"},clearable:""},null,8,["modelValue"]),e.createVNode(r,{modelValue:o.value.status,"onUpdate:modelValue":l[3]||(l[3]=t=>o.value.status=t),placeholder:"状态",style:{width:"100px"},clearable:""},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(c,(t,N)=>e.createVNode(h,{label:t,value:N},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t),1)]),_:2},1032,["label","value"])),64))]),_:1},8,["modelValue"]),e.createVNode(p,{modelValue:o.value.tradeNo,"onUpdate:modelValue":l[4]||(l[4]=t=>o.value.tradeNo=t),placeholder:"交易编号",style:{width:"150px"},clearable:""},null,8,["modelValue"]),e.createVNode(p,{modelValue:o.value.thirdPlatformOrderId,"onUpdate:modelValue":l[5]||(l[5]=t=>o.value.thirdPlatformOrderId=t),placeholder:"交易平台编号",style:{width:"120px"},clearable:""},null,8,["modelValue"]),e.createVNode(p,{modelValue:o.value.failCode,"onUpdate:modelValue":l[6]||(l[6]=t=>o.value.failCode=t),placeholder:"错误码",style:{width:"120px"},clearable:""},null,8,["modelValue"]),e.createVNode(b,{modelValue:d.value,"onUpdate:modelValue":l[7]||(l[7]=t=>d.value=t),type:"datetimerange","range-separator":"到","start-placeholder":"创建时间开始","end-placeholder":"创建时间结束"},null,8,["modelValue"]),e.createVNode(k,{type:"primary",icon:"search",onClick:n},{default:e.withCtx(()=>[e.createTextVNode("搜索")]),_:1})]),_:1})]),_:1}),e.createVNode(I,{ref_key:"table",ref:s,style:{"margin-top":"10px"},"data-url":"/api/third-platform/transfer/histories",condition:o.value},{default:e.withCtx(()=>[e.createVNode(i,{label:"交易平台",prop:"platformName"}),e.createVNode(i,{label:"用户ID",width:"80",prop:"userId"},{default:e.withCtx(({row:t})=>[e.createVNode(B,{type:"primary",onClick:N=>_(t.userId)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.userId),1)]),_:2},1032,["onClick"])]),_:1}),e.createVNode(i,{label:"转账金额",width:"100",align:"right",prop:"amount"},{default:e.withCtx(({row:t})=>[e.createTextVNode(e.toDisplayString(t.amount.toFixed(2)),1)]),_:1}),e.createVNode(i,{label:"交易编号",width:"220",prop:"tradeNo"}),e.createVNode(i,{label:"交易平台编号",width:"210",prop:"thirdPlatformOrderId","show-overflow-tooltip":""}),e.createVNode(i,{label:"错误码",width:"150",prop:"failCode","show-overflow-tooltip":""}),e.createVNode(i,{label:"交易状态",prop:"status"},{default:e.withCtx(({row:t})=>[e.createTextVNode(e.toDisplayString(c[t.status]),1)]),_:1}),e.createVNode(i,{label:"请求内容",prop:"requestData"},{default:e.withCtx(({row:t})=>[t.requestData?(e.openBlock(),e.createBlock(y,{key:0,trigger:"hover",width:"500"},{reference:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.requestData.substring(0,10)),1)]),default:e.withCtx(()=>[t.requestData.startsWith("{")?(e.openBlock(),e.createBlock(m,{key:0,column:"1",border:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(JSON.parse(t.requestData),(N,D)=>(e.openBlock(),e.createBlock(u,{label:D,"min-width":"150"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N),1)]),_:2},1032,["label"]))),256))]),_:2},1024)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(t.requestData),1)],64))]),_:2},1024)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(i,{label:"响应内容",prop:"responseData"},{default:e.withCtx(({row:t})=>[t.responseData?(e.openBlock(),e.createBlock(y,{key:0,trigger:"hover",width:"600"},{reference:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.responseData.substring(0,10))+"... ",1)]),default:e.withCtx(()=>[t.responseData.startsWith("{")?(e.openBlock(),e.createBlock(m,{key:0,column:"1",border:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(JSON.parse(t.responseData),(N,D)=>(e.openBlock(),e.createBlock(u,{label:D,"min-width":"150"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N),1)]),_:2},1032,["label"]))),256))]),_:2},1024)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(t.responseData),1)],64))]),_:2},1024)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(i,{label:"创建时间",prop:"createdTime",width:"170"}),e.createVNode(i,{label:"更新时间",prop:"updatedTime",width:"170"})]),_:1},8,["condition"]),e.createVNode(S,{ref_key:"userDetailDialog",ref:C},null,512)],64)}}}),Z={install:(w,c)=>{let o=c.router,d=o.getRoutes().find(s=>s.path=="/");d&&d.meta&&(o.addRoute({path:"/finance/withdraw-history",name:"WithdrawHistory",redirect:"/finance/withdraw-history/list",component:d.meta.commonLayout,children:[{path:"list",name:"WithdrawHistoryList",component:M}]}),o.addRoute({path:"/finance/pay-history",name:"PayHistory",redirect:"/finance/pay-history/list",component:d.meta.commonLayout,children:[{path:"list",name:"PayHistoryList",component:F}]}),o.addRoute({path:"/finance/transfer-history",name:"TransferHistory",redirect:"/finance/transfer-history/list",component:d.meta.commonLayout,children:[{path:"list",name:"TransferHistoryList",component:L}]}))}},H=(w,c)=>{$.forEach(o=>w.use(o)),w.use(Z,c)},v={install:H};g.PayHistoryListView=F,g.TransferHistoryListView=L,g.UserWithdrawHistory=A,g.UserWithdrawMethod=W,g.WithdrawHistoryListView=M,g.default=v,g.install=H,Object.defineProperties(g,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pangu-backend-ui/finance-core",
3
3
  "private": false,
4
- "version": "0.0.1",
4
+ "version": "0.0.2",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
7
7
  "unpkg": "index.umd.cjs",