xyvcard-settle 0.0.68 → 0.0.69
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.
- package/README.md +51 -51
- package/dist/{edit-_qW_TUSu.mjs → edit-DqCijDAx.mjs} +2 -2
- package/dist/{history-DSoZjyeJ.mjs → history-CFRH07Rl.mjs} +1 -1
- package/dist/{history-DjQMPey5.mjs → history-D_ns-Uj_.mjs} +1 -1
- package/dist/{history.vue_vue_type_script_setup_true_lang-5ef0yv2J.mjs → history.vue_vue_type_script_setup_true_lang-DgbKVlin.mjs} +1 -1
- package/dist/{history.vue_vue_type_script_setup_true_lang-suUr-9bi.mjs → history.vue_vue_type_script_setup_true_lang-y7PcYEsx.mjs} +5 -3
- package/dist/{index-DB6GmhZC.mjs → index-B3iittmi.mjs} +1 -1
- package/dist/{index-BV-bgJoz.mjs → index-BS5UPc4G.mjs} +53 -48
- package/dist/{index-DQHNNxEk.mjs → index-BhW3Snhk.mjs} +3 -3
- package/dist/{index-BRR6K_Rz.mjs → index-BoF1w7iW.mjs} +1 -1
- package/dist/index-Bwk2VpaX.mjs +982 -0
- package/dist/{index-BCNuH7xs.mjs → index-CM-aTdtm.mjs} +2 -2
- package/dist/{index-D3EjTY-C.mjs → index-CM1-XUdI.mjs} +39 -34
- package/dist/index-CdLTcjKk.mjs +64 -0
- package/dist/{index-CgVOuj38.mjs → index-D11B_Wtn.mjs} +1577 -1533
- package/dist/{index-8qD9VcOY.mjs → index-DRAg0ird.mjs} +11 -11
- package/dist/{index-BLnu6zqx.mjs → index-D_xWHYqI.mjs} +2 -2
- package/dist/{index-CrAvX4gb.mjs → index-DguOHM2h.mjs} +13 -10
- package/dist/{index-Cv3Q3BLX.mjs → index-DpCe2qHI.mjs} +275 -222
- package/dist/{index-BJ5B9Mo0.mjs → index-KsD4UbVl.mjs} +1 -1
- package/dist/{index-DxaY2msl.mjs → index-PK3Lhl0Y.mjs} +9 -9
- package/dist/{index-BOkiZn0d.mjs → index-wV0MdPQK.mjs} +4 -3
- package/dist/index.mjs +1 -1
- package/dist/info-ilEenCqG.mjs +4 -0
- package/dist/{merchant-D3ctdb_L.mjs → merchant-CHrqVry7.mjs} +1 -1
- package/dist/{merchant.vue_vue_type_script_setup_true_lang-YDwz4LiM.mjs → merchant.vue_vue_type_script_setup_true_lang-AwWK1F_L.mjs} +1 -1
- package/dist/{pay-vKmygRqh.mjs → pay-CoVUqmO1.mjs} +6 -6
- package/dist/{pay-14RdzHFn.mjs → pay-D5948kuF.mjs} +5 -5
- package/dist/{payPal-uZjLzAy_.mjs → payPal-DgOV_Vvg.mjs} +6 -6
- package/dist/{payPal-DZCq6NIW.mjs → payPal-DvGOOGpO.mjs} +8 -8
- package/dist/refund-DFoNGx4K.mjs +226 -0
- package/dist/{sale-lKDJnhcE.mjs → sale-DRzPEjZh.mjs} +1 -1
- package/dist/{sale.vue_vue_type_script_setup_true_lang-b-hBu610.mjs → sale.vue_vue_type_script_setup_true_lang-9E79ypKS.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{today-BLS71Gmq.mjs → today-B-XWHueS.mjs} +1 -1
- package/dist/{today-ZBVWvwL4.mjs → today-sMLdBEwi.mjs} +1 -1
- package/dist/{today.vue_vue_type_script_setup_true_lang-BLTRtpUi.mjs → today.vue_vue_type_script_setup_true_lang-CBU-Ec8E.mjs} +15 -13
- package/dist/{today.vue_vue_type_script_setup_true_lang-BnkSJ9pV.mjs → today.vue_vue_type_script_setup_true_lang-DrppDhJ6.mjs} +1 -1
- package/dist/{trend-D5C46t4B.mjs → trend-BpcwSklm.mjs} +2 -2
- package/dist/{trend-f1RTvIBC.mjs → trend-CD-Orlre.mjs} +1 -1
- package/dist/{trend-BLV9su_P.mjs → trend-DCJoR00O.mjs} +1 -1
- package/dts/src/api/settle/pay-trade/index.d.ts +2 -1
- package/dts/src/api/settle/pay-trade/types.d.ts +27 -0
- package/dts/src/constant.d.ts +1 -0
- package/dts/src/lang/settle/zh-cn.d.ts +9 -0
- package/dts/src/views/payment/pay-trade/refund.vue.d.ts +27 -0
- package/package.json +15 -15
- package/dist/index-7IN_MtAt.mjs +0 -898
- package/dist/index-CGc-CaEO.mjs +0 -91
- package/dist/info-BnEoPHLQ.mjs +0 -4
|
@@ -3,7 +3,7 @@ import { useRoute as ae, useRouter as oe } from "vue-router";
|
|
|
3
3
|
import { useI18n as ne } from "vue-i18n";
|
|
4
4
|
import { useUserStore as B, clearEmpty as se, request as re, useTableHooks as de } from "jmash-core";
|
|
5
5
|
import { tokenExt as ue } from "xyvcard-agent";
|
|
6
|
-
import { D as f } from "./index-
|
|
6
|
+
import { D as f } from "./index-D11B_Wtn.mjs";
|
|
7
7
|
import { g as ie } from "./agent-R-Ml-XTA.mjs";
|
|
8
8
|
import { DateRange as me } from "xyvcard-insts";
|
|
9
9
|
import { g as pe } from "./merchant-D9rtENQd.mjs";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as A, getCurrentInstance as T, ref as p, onMounted as P, resolveComponent as u, resolveDirective as V, createElementBlock as k, openBlock as D, createElementVNode as e, createVNode as s, withCtx as n, toDisplayString as d, createTextVNode as _, withDirectives as E, createBlock as
|
|
2
|
-
import { useRouter as
|
|
1
|
+
import { defineComponent as A, getCurrentInstance as T, ref as p, onMounted as P, resolveComponent as u, resolveDirective as V, createElementBlock as k, openBlock as D, createElementVNode as e, createVNode as s, withCtx as n, toDisplayString as d, createTextVNode as _, withDirectives as E, createBlock as S } from "vue";
|
|
2
|
+
import { useRouter as b } from "vue-router";
|
|
3
3
|
import { s as B } from "./index-eUhFgNKx.mjs";
|
|
4
|
-
import { C as N } from "./index-
|
|
5
|
-
import R from "./pay-
|
|
6
|
-
import I from "./payPal-
|
|
7
|
-
import q from "./trend-
|
|
4
|
+
import { C as N } from "./index-D11B_Wtn.mjs";
|
|
5
|
+
import R from "./pay-D5948kuF.mjs";
|
|
6
|
+
import I from "./payPal-DgOV_Vvg.mjs";
|
|
7
|
+
import q from "./trend-CD-Orlre.mjs";
|
|
8
8
|
import { _ as F } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
9
9
|
const O = { class: "app" }, Q = { class: "app-title" }, U = { class: "title" }, $ = { class: "tatals" }, j = { class: "tatal" }, z = { class: "text" }, G = { class: "tatal" }, H = { class: "text" }, J = { class: "tatal" }, K = { class: "text" }, L = { class: "tatal" }, W = { class: "text" }, X = { class: "app-title" }, Z = { class: "app-title-time" }, tt = { class: "chart-header" }, et = /* @__PURE__ */ A({
|
|
10
10
|
__name: "index",
|
|
11
11
|
setup(at) {
|
|
12
|
-
const y =
|
|
12
|
+
const y = b(), { proxy: x } = T(), c = p({
|
|
13
13
|
analysisTimeStart: "",
|
|
14
14
|
analysisTimeEnd: ""
|
|
15
15
|
}), o = p({}), l = p([]), r = (a, t = N.RPC_FORMAT_DATA) => x.$moment.formatDate(a, t), v = () => {
|
|
@@ -117,7 +117,7 @@ const O = { class: "app" }, Q = { class: "app-title" }, U = { class: "title" },
|
|
|
117
117
|
_(" 交易金额趋势 "),
|
|
118
118
|
e("span", { style: { "font-weight": "normal" } }, " (近7日) ")
|
|
119
119
|
], -1)),
|
|
120
|
-
E((D(),
|
|
120
|
+
E((D(), S(C, {
|
|
121
121
|
type: "text",
|
|
122
122
|
class: "view-more",
|
|
123
123
|
onClick: g
|
|
@@ -138,7 +138,7 @@ const O = { class: "app" }, Q = { class: "app-title" }, U = { class: "title" },
|
|
|
138
138
|
]);
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
|
-
}), mt = /* @__PURE__ */ F(et, [["__scopeId", "data-v-
|
|
141
|
+
}), mt = /* @__PURE__ */ F(et, [["__scopeId", "data-v-f857dfc0"]]);
|
|
142
142
|
export {
|
|
143
143
|
mt as default
|
|
144
144
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as ne, ref as T, reactive as te, resolveComponent as p, resolveDirective as le, createElementBlock as _, openBlock as c, createVNode as n, withCtx as a, Fragment as re, renderList as de, unref as u, createBlock as $, createElementVNode as r, createCommentVNode as D, withKeys as v, createTextVNode as R, toDisplayString as l, withDirectives as M, isRef as j } from "vue";
|
|
2
2
|
import { useTableHooks as ue } from "jmash-core";
|
|
3
3
|
import { useI18n as se } from "vue-i18n";
|
|
4
|
-
import { b as pe, a as ie } from "./edit-
|
|
5
|
-
import { D as me } from "./index-
|
|
4
|
+
import { b as pe, a as ie } from "./edit-DqCijDAx.mjs";
|
|
5
|
+
import { D as me } from "./index-D11B_Wtn.mjs";
|
|
6
6
|
const ce = { class: "app-container" }, be = { class: "search-container" }, ke = ["onClick"], fe = ["onClick"], Ne = /* @__PURE__ */ ne({
|
|
7
7
|
__name: "index",
|
|
8
8
|
setup(we) {
|
|
@@ -57,7 +57,8 @@ const ce = { class: "app-container" }, be = { class: "search-container" }, ke =
|
|
|
57
57
|
prop: "amount",
|
|
58
58
|
width: "150",
|
|
59
59
|
sortable: "custom",
|
|
60
|
-
isColumn: !0
|
|
60
|
+
isColumn: !0,
|
|
61
|
+
align: "right"
|
|
61
62
|
},
|
|
62
63
|
{
|
|
63
64
|
label: "bankTradeRecord.opponentAccountName",
|
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import g from "./assets/78ba92e6c076bd07.png";
|
|
|
3
3
|
import N from "./assets/228d0bfe534e0e61.png";
|
|
4
4
|
import b from "./assets/7537a7335bb17b22.png";
|
|
5
5
|
import { tokenExt as x } from "xyvcard-agent";
|
|
6
|
-
import { s as B } from "./index-
|
|
6
|
+
import { s as B } from "./index-CdLTcjKk.mjs";
|
|
7
7
|
import { useUserStore as E } from "jmash-core";
|
|
8
8
|
import { getUserDisplayName as w } from "xyvcard-merchant";
|
|
9
9
|
const C = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { s as _ } from "./index-
|
|
1
|
+
import { defineComponent as d, ref as l, onMounted as p, onUnmounted as f, createElementBlock as v, openBlock as h } from "vue";
|
|
2
|
+
import { s as _ } from "./index-CdLTcjKk.mjs";
|
|
3
3
|
import { i as y } from "./index--_Po9Tig.mjs";
|
|
4
4
|
import { merchantsApi as b } from "xyvcard-merchant";
|
|
5
5
|
import { _ as w } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
6
|
-
const x = /* @__PURE__ */
|
|
6
|
+
const x = /* @__PURE__ */ d({
|
|
7
7
|
__name: "pay",
|
|
8
8
|
setup(g) {
|
|
9
9
|
const r = l();
|
|
@@ -66,7 +66,7 @@ const x = /* @__PURE__ */ m({
|
|
|
66
66
|
]
|
|
67
67
|
};
|
|
68
68
|
t.setOption(a);
|
|
69
|
-
},
|
|
69
|
+
}, m = async () => {
|
|
70
70
|
try {
|
|
71
71
|
const a = await _.orderAmount({});
|
|
72
72
|
for (let e = 0; e < a.data.results.length; e++)
|
|
@@ -89,7 +89,7 @@ const x = /* @__PURE__ */ m({
|
|
|
89
89
|
t && t.resize();
|
|
90
90
|
};
|
|
91
91
|
return p(() => {
|
|
92
|
-
c(),
|
|
92
|
+
c(), m(), window.addEventListener("resize", i), r.value && (s = new ResizeObserver(() => {
|
|
93
93
|
t && t.resize();
|
|
94
94
|
}), s.observe(r.value));
|
|
95
95
|
}), f(() => {
|
|
@@ -100,7 +100,7 @@ const x = /* @__PURE__ */ m({
|
|
|
100
100
|
class: "chart-container"
|
|
101
101
|
}, null, 512));
|
|
102
102
|
}
|
|
103
|
-
}), $ = /* @__PURE__ */ w(x, [["__scopeId", "data-v-
|
|
103
|
+
}), $ = /* @__PURE__ */ w(x, [["__scopeId", "data-v-ae62ea6c"]]);
|
|
104
104
|
export {
|
|
105
105
|
$ as default
|
|
106
106
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as v, ref as m, onMounted as y, onUnmounted as h, createElementBlock as x, openBlock as _ } from "vue";
|
|
2
2
|
import { i as g } from "./index--_Po9Tig.mjs";
|
|
3
|
-
import { s as
|
|
4
|
-
import { merchantsApi as
|
|
3
|
+
import { s as w } from "./index-eUhFgNKx.mjs";
|
|
4
|
+
import { merchantsApi as b } from "xyvcard-merchant";
|
|
5
5
|
import { _ as S } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
6
6
|
const z = /* @__PURE__ */ v({
|
|
7
7
|
__name: "pay",
|
|
@@ -76,13 +76,13 @@ const z = /* @__PURE__ */ v({
|
|
|
76
76
|
e.setOption(s);
|
|
77
77
|
}, f = async () => {
|
|
78
78
|
try {
|
|
79
|
-
const r = u(), n = await
|
|
79
|
+
const r = u(), n = await w.orderAmount({
|
|
80
80
|
analysisTimeStart: r.analysisTimeStart,
|
|
81
81
|
analysisTimeEnd: r.analysisTimeEnd
|
|
82
82
|
});
|
|
83
83
|
for (let t = 0; t < n.data.results.length; t++)
|
|
84
84
|
if (n.data.results[t].merchantId && n.data.results[t].tradeAmount) {
|
|
85
|
-
const { data: s } = await
|
|
85
|
+
const { data: s } = await b.findBusinessName({
|
|
86
86
|
merchantId: n.data.results[t].merchantId
|
|
87
87
|
});
|
|
88
88
|
i.value.push({
|
|
@@ -120,7 +120,7 @@ const z = /* @__PURE__ */ v({
|
|
|
120
120
|
class: "chart-container"
|
|
121
121
|
}, null, 512));
|
|
122
122
|
}
|
|
123
|
-
}), M = /* @__PURE__ */ S(z, [["__scopeId", "data-v-
|
|
123
|
+
}), M = /* @__PURE__ */ S(z, [["__scopeId", "data-v-a3c2f023"]]);
|
|
124
124
|
export {
|
|
125
125
|
M as default
|
|
126
126
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as y, ref as u, onMounted as g, onBeforeUnmount as v, createElementBlock as _, openBlock as w } from "vue";
|
|
2
2
|
import { i as h } from "./index--_Po9Tig.mjs";
|
|
3
3
|
import { s as D } from "./index-eUhFgNKx.mjs";
|
|
4
|
-
import { D as S, C as E } from "./index-
|
|
4
|
+
import { D as S, C as E } from "./index-D11B_Wtn.mjs";
|
|
5
5
|
import { _ as z } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
6
6
|
const C = /* @__PURE__ */ y({
|
|
7
7
|
__name: "payPal",
|
|
@@ -16,7 +16,7 @@ const C = /* @__PURE__ */ y({
|
|
|
16
16
|
analysisTimeStart: o(a),
|
|
17
17
|
analysisTimeEnd: o(e)
|
|
18
18
|
};
|
|
19
|
-
},
|
|
19
|
+
}, c = () => ({
|
|
20
20
|
tooltip: {
|
|
21
21
|
trigger: "item",
|
|
22
22
|
position: function(e) {
|
|
@@ -60,7 +60,7 @@ const C = /* @__PURE__ */ y({
|
|
|
60
60
|
data: s.value
|
|
61
61
|
}
|
|
62
62
|
]
|
|
63
|
-
}),
|
|
63
|
+
}), m = async () => {
|
|
64
64
|
var e, a;
|
|
65
65
|
try {
|
|
66
66
|
const o = p(), r = await D.payModel({
|
|
@@ -84,7 +84,7 @@ const C = /* @__PURE__ */ y({
|
|
|
84
84
|
color: E.PAYMENT_COLORS[n.payMode]
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
|
-
}), t == null || t.setOption(
|
|
87
|
+
}), t == null || t.setOption(c());
|
|
88
88
|
} catch {
|
|
89
89
|
t == null || t.setOption({
|
|
90
90
|
title: {
|
|
@@ -98,7 +98,7 @@ const C = /* @__PURE__ */ y({
|
|
|
98
98
|
return g(async () => {
|
|
99
99
|
if (!i.value)
|
|
100
100
|
return;
|
|
101
|
-
t = h(i.value), t.showLoading(), await
|
|
101
|
+
t = h(i.value), t.showLoading(), await m(), t.hideLoading();
|
|
102
102
|
const e = () => {
|
|
103
103
|
t == null || t.resize();
|
|
104
104
|
};
|
|
@@ -111,7 +111,7 @@ const C = /* @__PURE__ */ y({
|
|
|
111
111
|
class: "chart-container"
|
|
112
112
|
}, null, 512));
|
|
113
113
|
}
|
|
114
|
-
}), A = /* @__PURE__ */ z(C, [["__scopeId", "data-v-
|
|
114
|
+
}), A = /* @__PURE__ */ z(C, [["__scopeId", "data-v-98642cc6"]]);
|
|
115
115
|
export {
|
|
116
116
|
A as default
|
|
117
117
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as c, ref as d, onMounted as m, onBeforeUnmount as v, createElementBlock as y, openBlock as _ } from "vue";
|
|
2
|
-
import { i as
|
|
3
|
-
import { s as
|
|
4
|
-
import { D as
|
|
2
|
+
import { i as b } from "./index--_Po9Tig.mjs";
|
|
3
|
+
import { s as g } from "./index-CdLTcjKk.mjs";
|
|
4
|
+
import { D as h, C as w } from "./index-D11B_Wtn.mjs";
|
|
5
5
|
import { _ as z } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
6
6
|
const C = /* @__PURE__ */ c({
|
|
7
7
|
__name: "payPal",
|
|
@@ -61,7 +61,7 @@ const C = /* @__PURE__ */ c({
|
|
|
61
61
|
}), p = async () => {
|
|
62
62
|
var t, a;
|
|
63
63
|
try {
|
|
64
|
-
const n = await
|
|
64
|
+
const n = await g.payModel({});
|
|
65
65
|
if (!((a = (t = n.data) == null ? void 0 : t.results) != null && a.length))
|
|
66
66
|
throw new Error("暂无数据");
|
|
67
67
|
const s = n.data.results.reduce(
|
|
@@ -69,14 +69,14 @@ const C = /* @__PURE__ */ c({
|
|
|
69
69
|
0
|
|
70
70
|
);
|
|
71
71
|
r.value = n.data.results.map((o) => {
|
|
72
|
-
const l =
|
|
72
|
+
const l = h.payModeBizDict.getEnumValue(o.payMode) || o.payMode, f = s > 0 ? (parseFloat(o.orderAmount) / s * 100).toFixed(0) : 0;
|
|
73
73
|
return {
|
|
74
74
|
value: parseFloat(f),
|
|
75
75
|
name: l,
|
|
76
76
|
amount: parseFloat(o.orderAmount),
|
|
77
77
|
count: o.orderCount,
|
|
78
78
|
itemStyle: {
|
|
79
|
-
color:
|
|
79
|
+
color: w.PAYMENT_COLORS[o.payMode]
|
|
80
80
|
}
|
|
81
81
|
};
|
|
82
82
|
}), r.value.length > 3 && (r.value = r.value.sort((o, l) => l.value - o.value).slice(0, 3)), e == null || e.setOption(u());
|
|
@@ -95,7 +95,7 @@ const C = /* @__PURE__ */ c({
|
|
|
95
95
|
};
|
|
96
96
|
return m(async () => {
|
|
97
97
|
if (!i.value) return;
|
|
98
|
-
e =
|
|
98
|
+
e = b(i.value), e.showLoading(), await p(), e.hideLoading();
|
|
99
99
|
const t = () => e == null ? void 0 : e.resize();
|
|
100
100
|
window.addEventListener("resize", t);
|
|
101
101
|
}), v(() => {
|
|
@@ -106,7 +106,7 @@ const C = /* @__PURE__ */ c({
|
|
|
106
106
|
class: "chart-container"
|
|
107
107
|
}, null, 512));
|
|
108
108
|
}
|
|
109
|
-
}), O = /* @__PURE__ */ z(C, [["__scopeId", "data-v-
|
|
109
|
+
}), O = /* @__PURE__ */ z(C, [["__scopeId", "data-v-15ebef5f"]]);
|
|
110
110
|
export {
|
|
111
111
|
O as default
|
|
112
112
|
};
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import { defineComponent as K, mergeModels as _, ref as w, reactive as A, useModel as O, resolveComponent as u, createBlock as U, openBlock as M, withCtx as l, createVNode as t, unref as a, createTextVNode as c, createElementVNode as F, toDisplayString as R } from "vue";
|
|
2
|
+
import { ElMessage as j } from "element-plus";
|
|
3
|
+
import { useI18n as B } from "vue-i18n";
|
|
4
|
+
import { a as E } from "./index-D11B_Wtn.mjs";
|
|
5
|
+
import { netEncrypt as I } from "jmash-core";
|
|
6
|
+
import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
7
|
+
const S = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
|
|
8
|
+
__name: "refund",
|
|
9
|
+
props: /* @__PURE__ */ _({
|
|
10
|
+
entityKey: {
|
|
11
|
+
type: Object,
|
|
12
|
+
default: () => {
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}, {
|
|
16
|
+
modelValue: { type: Boolean },
|
|
17
|
+
modelModifiers: {}
|
|
18
|
+
}),
|
|
19
|
+
emits: /* @__PURE__ */ _(["refresh"], ["update:modelValue"]),
|
|
20
|
+
setup(y, { emit: T }) {
|
|
21
|
+
const { t: i } = B(), g = w();
|
|
22
|
+
let o = A({
|
|
23
|
+
requestId: Math.random() * 10 + "",
|
|
24
|
+
refundReason: "",
|
|
25
|
+
encodePwd: ""
|
|
26
|
+
});
|
|
27
|
+
const v = A({
|
|
28
|
+
refundAmount: [
|
|
29
|
+
{
|
|
30
|
+
required: !0,
|
|
31
|
+
message: i("payTrade.refundAmountRequired"),
|
|
32
|
+
trigger: "change"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
refundReason: [
|
|
36
|
+
{
|
|
37
|
+
required: !0,
|
|
38
|
+
message: i("payTrade.refundReasonRequired"),
|
|
39
|
+
trigger: "change"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
encodePwd: [
|
|
43
|
+
{
|
|
44
|
+
required: !0,
|
|
45
|
+
message: i("payTrade.encodePwdRequired"),
|
|
46
|
+
trigger: "change"
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}), m = O(y, "modelValue"), s = y, N = T, q = Object.keys(s.entityKey);
|
|
50
|
+
w(q.length >= 1).value && (Object.assign(o, s.entityKey), o.refundAmount = s.entityKey.tradeAmount, console.log("form", o));
|
|
51
|
+
const P = async () => {
|
|
52
|
+
var d;
|
|
53
|
+
await ((d = g.value) == null ? void 0 : d.validate((e) => {
|
|
54
|
+
e && (delete o.tradeAmount, o.encodePwd = I(o.encodePwd), E.refund(o).then((r) => {
|
|
55
|
+
console.log(r), r.status === 200 && (j({
|
|
56
|
+
message: i("common.submitSuccess"),
|
|
57
|
+
type: "success"
|
|
58
|
+
}), m.value && (m.value = !1), N("refresh", r.status === 200));
|
|
59
|
+
}));
|
|
60
|
+
}));
|
|
61
|
+
};
|
|
62
|
+
function b() {
|
|
63
|
+
m.value && (m.value = !1);
|
|
64
|
+
}
|
|
65
|
+
function $(d) {
|
|
66
|
+
let e = Number(d);
|
|
67
|
+
e < 0 ? o.refundAmount = "0.00" : e > s.entityKey.tradeAmount ? o.refundAmount = s.entityKey.tradeAmount : o.refundAmount = e.toFixed(2);
|
|
68
|
+
}
|
|
69
|
+
return (d, e) => {
|
|
70
|
+
const r = u("el-input"), p = u("el-form-item"), f = u("el-col"), h = u("el-row"), k = u("el-form"), V = u("el-button"), C = u("el-dialog");
|
|
71
|
+
return M(), U(C, {
|
|
72
|
+
modelValue: m.value,
|
|
73
|
+
"onUpdate:modelValue": e[6] || (e[6] = (n) => m.value = n),
|
|
74
|
+
onClose: b
|
|
75
|
+
}, {
|
|
76
|
+
footer: l(() => [
|
|
77
|
+
F("div", S, [
|
|
78
|
+
t(V, { onClick: b }, {
|
|
79
|
+
default: l(() => [
|
|
80
|
+
c(R(d.$t("common.cancel")), 1)
|
|
81
|
+
]),
|
|
82
|
+
_: 1
|
|
83
|
+
}),
|
|
84
|
+
t(V, {
|
|
85
|
+
type: "primary",
|
|
86
|
+
onClick: P
|
|
87
|
+
}, {
|
|
88
|
+
default: l(() => [
|
|
89
|
+
c(R(d.$t("common.confirm")), 1)
|
|
90
|
+
]),
|
|
91
|
+
_: 1
|
|
92
|
+
})
|
|
93
|
+
])
|
|
94
|
+
]),
|
|
95
|
+
default: l(() => [
|
|
96
|
+
t(k, {
|
|
97
|
+
ref_key: "payTradeFormRef",
|
|
98
|
+
ref: g,
|
|
99
|
+
model: a(o),
|
|
100
|
+
"label-width": "120px",
|
|
101
|
+
rules: v
|
|
102
|
+
}, {
|
|
103
|
+
default: l(() => [
|
|
104
|
+
t(h, null, {
|
|
105
|
+
default: l(() => [
|
|
106
|
+
t(f, { span: 24 }, {
|
|
107
|
+
default: l(() => [
|
|
108
|
+
t(p, {
|
|
109
|
+
label: d.$t("payTrade.orderNo"),
|
|
110
|
+
prop: "orderNo"
|
|
111
|
+
}, {
|
|
112
|
+
default: l(() => [
|
|
113
|
+
t(r, {
|
|
114
|
+
modelValue: a(o).orderNo,
|
|
115
|
+
"onUpdate:modelValue": e[0] || (e[0] = (n) => a(o).orderNo = n),
|
|
116
|
+
disabled: ""
|
|
117
|
+
}, null, 8, ["modelValue"])
|
|
118
|
+
]),
|
|
119
|
+
_: 1
|
|
120
|
+
}, 8, ["label"])
|
|
121
|
+
]),
|
|
122
|
+
_: 1
|
|
123
|
+
}),
|
|
124
|
+
t(f, { span: 24 }, {
|
|
125
|
+
default: l(() => [
|
|
126
|
+
t(p, {
|
|
127
|
+
label: d.$t("payTrade.outOrderNo"),
|
|
128
|
+
prop: "outOrderNo"
|
|
129
|
+
}, {
|
|
130
|
+
default: l(() => [
|
|
131
|
+
t(r, {
|
|
132
|
+
modelValue: a(o).outOrderNo,
|
|
133
|
+
"onUpdate:modelValue": e[1] || (e[1] = (n) => a(o).outOrderNo = n),
|
|
134
|
+
disabled: ""
|
|
135
|
+
}, null, 8, ["modelValue"])
|
|
136
|
+
]),
|
|
137
|
+
_: 1
|
|
138
|
+
}, 8, ["label"])
|
|
139
|
+
]),
|
|
140
|
+
_: 1
|
|
141
|
+
}),
|
|
142
|
+
t(f, { span: 24 }, {
|
|
143
|
+
default: l(() => [
|
|
144
|
+
t(p, {
|
|
145
|
+
label: d.$t("payTrade.refundAmount"),
|
|
146
|
+
prop: "refundAmount"
|
|
147
|
+
}, {
|
|
148
|
+
default: l(() => [
|
|
149
|
+
t(r, {
|
|
150
|
+
modelValue: a(o).refundAmount,
|
|
151
|
+
"onUpdate:modelValue": e[2] || (e[2] = (n) => a(o).refundAmount = n),
|
|
152
|
+
placeholder: d.$t("payTrade.refundAmountRequired"),
|
|
153
|
+
type: "number",
|
|
154
|
+
step: "0.01",
|
|
155
|
+
min: "0.01",
|
|
156
|
+
max: s.entityKey.tradeAmount,
|
|
157
|
+
onChange: e[3] || (e[3] = (n) => $(n))
|
|
158
|
+
}, {
|
|
159
|
+
suffix: l(() => e[7] || (e[7] = [
|
|
160
|
+
c("元")
|
|
161
|
+
])),
|
|
162
|
+
_: 1
|
|
163
|
+
}, 8, ["modelValue", "placeholder", "max"])
|
|
164
|
+
]),
|
|
165
|
+
_: 1
|
|
166
|
+
}, 8, ["label"])
|
|
167
|
+
]),
|
|
168
|
+
_: 1
|
|
169
|
+
}),
|
|
170
|
+
t(f, { span: 24 }, {
|
|
171
|
+
default: l(() => [
|
|
172
|
+
t(p, {
|
|
173
|
+
label: d.$t("payTrade.refundReason"),
|
|
174
|
+
prop: "refundReason"
|
|
175
|
+
}, {
|
|
176
|
+
default: l(() => [
|
|
177
|
+
t(r, {
|
|
178
|
+
modelValue: a(o).refundReason,
|
|
179
|
+
"onUpdate:modelValue": e[4] || (e[4] = (n) => a(o).refundReason = n),
|
|
180
|
+
placeholder: d.$t("payTrade.refundReasonRequired"),
|
|
181
|
+
maxlength: "60",
|
|
182
|
+
"show-word-limit": "",
|
|
183
|
+
autocomplete: "new-password",
|
|
184
|
+
clearable: ""
|
|
185
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
186
|
+
]),
|
|
187
|
+
_: 1
|
|
188
|
+
}, 8, ["label"])
|
|
189
|
+
]),
|
|
190
|
+
_: 1
|
|
191
|
+
}),
|
|
192
|
+
t(f, { span: 24 }, {
|
|
193
|
+
default: l(() => [
|
|
194
|
+
t(p, {
|
|
195
|
+
label: d.$t("payTrade.encodePwd"),
|
|
196
|
+
prop: "encodePwd"
|
|
197
|
+
}, {
|
|
198
|
+
default: l(() => [
|
|
199
|
+
t(r, {
|
|
200
|
+
modelValue: a(o).encodePwd,
|
|
201
|
+
"onUpdate:modelValue": e[5] || (e[5] = (n) => a(o).encodePwd = n),
|
|
202
|
+
placeholder: d.$t("payTrade.encodePwdRequired"),
|
|
203
|
+
"show-password": "",
|
|
204
|
+
autocomplete: "new-password"
|
|
205
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
206
|
+
]),
|
|
207
|
+
_: 1
|
|
208
|
+
}, 8, ["label"])
|
|
209
|
+
]),
|
|
210
|
+
_: 1
|
|
211
|
+
})
|
|
212
|
+
]),
|
|
213
|
+
_: 1
|
|
214
|
+
})
|
|
215
|
+
]),
|
|
216
|
+
_: 1
|
|
217
|
+
}, 8, ["model", "rules"])
|
|
218
|
+
]),
|
|
219
|
+
_: 1
|
|
220
|
+
}, 8, ["modelValue"]);
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
}), X = /* @__PURE__ */ D(x, [["__scopeId", "data-v-4b80f94a"]]);
|
|
224
|
+
export {
|
|
225
|
+
X as default
|
|
226
|
+
};
|
|
@@ -3,7 +3,7 @@ import b from "./assets/78ba92e6c076bd07.png";
|
|
|
3
3
|
import g from "./assets/228d0bfe534e0e61.png";
|
|
4
4
|
import N from "./assets/7537a7335bb17b22.png";
|
|
5
5
|
import { getUserDisplayName as B } from "xyvcard-merchant";
|
|
6
|
-
import { s as C } from "./index-
|
|
6
|
+
import { s as C } from "./index-CdLTcjKk.mjs";
|
|
7
7
|
const V = {
|
|
8
8
|
key: 0,
|
|
9
9
|
src: b,
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.login-container[data-v-
|
|
1
|
+
@charset "UTF-8";.login-container[data-v-f656b148]{width:100vw;height:100vh;display:flex;align-items:center;justify-content:center;background:url(./assets/1ceaa63ddb015361.jpg) no-repeat;background-size:100% 100%;overflow:hidden}.login-container_title[data-v-f656b148]{font-weight:600;font-size:21px;color:#103a7d;text-align:center;line-height:40px}.login-top[data-v-f656b148]{position:fixed;left:0;right:0;top:0;padding:10px 30px;box-sizing:border-box;background-color:#09237166;font-weight:600;font-size:17px;color:#fff}.login-top img[data-v-f656b148]{width:45px;height:45px}.login-top .ml-3[data-v-f656b148]{margin-left:10px;margin-right:auto}.qrcode-container[data-v-f656b148]{width:220px;height:220px;position:relative}.qrcode-container img[data-v-f656b148]{width:100%;height:100%}.qrcode-container>div[data-v-f656b148]{display:flex;align-items:center;justify-content:center;position:absolute;top:0;right:0;bottom:0;left:0;z-index:1}.qrcode-container>div[data-v-f656b148] :last-child{cursor:pointer;color:var(--el-color-primary);margin-left:10px}[data-v-f656b148] .el-tabs__item.is-active,[data-v-f656b148] .el-tabs__item:hover{color:#103a7d}[data-v-f656b148] .el-tabs__active-bar{background-color:#103a7d}[data-v-f656b148] #pane-qrCode{display:flex;align-items:center;justify-content:center;flex-direction:column}[data-v-f656b148] #pane-qrCode img{width:220px;height:220px}[data-v-f656b148] .el-card__body{height:380px;padding:20px;background-color:#fff}[data-v-f656b148] .el-card[device=desktop]{margin-right:150px;margin-left:auto}[data-v-f656b148] .el-input .el-input__inner{--el-input-inner-height: 40px;box-shadow:inset 0 0 0 40px #fff!important}[data-v-f656b148] .el-button{height:40px}.chart-container[data-v-a3c2f023]{width:100%;height:400px;padding-bottom:60px}.chart-container[data-v-98642cc6]{width:100%;height:240px}.chart-container[data-v-f0c8a4a8]{width:100%;height:100%;background:#fff;padding:15px;box-sizing:border-box;position:relative}.app[data-v-f857dfc0]{display:flex;justify-content:space-between;align-items:center;padding-top:10px;padding-left:10px;padding-right:10px}.app-title-time[data-v-f857dfc0]{padding-top:10px;padding-left:10px;padding-right:10px}.app-title[data-v-f857dfc0]{width:50%}.card-number[data-v-f857dfc0]{margin-left:10px;margin-top:-8px;height:410px}.card-never[data-v-f857dfc0]{height:200px;margin-bottom:10px}.tatal[data-v-f857dfc0]{display:flex;flex-direction:column;align-items:center}.title[data-v-f857dfc0]{margin-bottom:10%;font-size:16px;font-weight:700}.text[data-v-f857dfc0]{font-size:25px;font-weight:700}.tatals[data-v-f857dfc0]{display:flex;justify-content:space-around}.card-paypal[data-v-f857dfc0]{position:relative}.card-paypal .pay[data-v-f857dfc0]{position:absolute;top:-9%;left:-8%}.app[data-v-f857dfc0]{display:flex;justify-content:space-between}.card-never[data-v-f857dfc0]{width:100%}.title[data-v-f857dfc0]{display:flex;align-items:center;margin-bottom:50px}.title>span[data-v-f857dfc0]{min-width:100px;margin-right:15px!important}.title .el-date-editor[data-v-f857dfc0]{flex:1;min-width:200px}@media (max-width: 768px){.title>span[data-v-f857dfc0]{margin-bottom:10px}.title .el-date-editor[data-v-f857dfc0]{width:100%}.tatals[data-v-f857dfc0]{grid-template-columns:repeat(2,1fr)}}@media (max-width: 480px){.tatals[data-v-f857dfc0]{grid-template-columns:1fr}.tatals .tatal[data-v-f857dfc0]{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #eee}.tatals .tatal .text[data-v-f857dfc0]{margin-right:15px}}.chart-header[data-v-f857dfc0]{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.chart-title[data-v-f857dfc0]{font-size:16px;font-weight:700;color:#333}.chart-container[data-v-ae62ea6c]{width:100%;height:400px;padding-bottom:60px}.chart-container[data-v-15ebef5f]{width:100%;height:215px}.chart-container[data-v-397fef2e]{width:100%;height:100%;background:#fff;padding:15px;box-sizing:border-box;position:relative}.app[data-v-b2c0344e]{display:flex;flex-direction:column;padding:10px}.row-container[data-v-b2c0344e]{display:flex;gap:10px;margin-bottom:10px}.card-never[data-v-b2c0344e]{width:100%}.title[data-v-b2c0344e]{display:flex;align-items:center;margin-bottom:50px}.title .el-date-editor[data-v-b2c0344e]{flex:1;min-width:200px}.card-paypal[data-v-b2c0344e]{position:relative}.card-paypal .pay[data-v-b2c0344e]{position:absolute;top:-8%;left:-10%}.card-number[data-v-b2c0344e]{height:410px}.card-number .taxt_time_laft[data-v-b2c0344e]{display:flex;justify-content:space-between}.title[data-v-b2c0344e]{margin-bottom:8%;font-size:16px;font-weight:700}.title .text_time[data-v-b2c0344e]{font-size:13px;font-weight:400!important}.tatal[data-v-b2c0344e]{display:flex;flex-direction:column;align-items:center}.text[data-v-b2c0344e]{font-size:25px;font-weight:700}.tatals[data-v-b2c0344e]{display:flex;justify-content:space-around}.app-title[data-v-b2c0344e]{width:100%}.app-title-time[data-v-b2c0344e]{padding:10px}.chart-header[data-v-b2c0344e]{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.chart-title[data-v-b2c0344e]{font-size:16px;font-weight:700;color:#333}.chart-title .text_time[data-v-b2c0344e]{font-size:13px;font-weight:400!important}.pay-model[data-v-b2c0344e]{display:flex;gap:10px;width:100%}.pay-model .card-number[data-v-b2c0344e]{flex:1;min-width:0;height:410px}@media (max-width: 992px){.pay-model[data-v-b2c0344e]{flex-wrap:wrap}.pay-model .card-number[data-v-b2c0344e]{flex:0 0 calc(50% - 10px)}.pay-model .card-number[data-v-b2c0344e]:last-child:nth-child(odd){flex:0 0 100%}}@media (max-width: 768px){.pay-model .card-number[data-v-b2c0344e]{flex:0 0 100%}}.chart-container[data-v-6f04d6f1]{width:100%;height:100%;background:#fff;padding:15px;box-sizing:border-box;position:relative}.app[data-v-6f52d4ae]{display:flex;flex-direction:column;padding:10px}.row-container[data-v-6f52d4ae]{display:flex;gap:10px;margin-bottom:10px}.card-never[data-v-6f52d4ae]{width:100%}.title[data-v-6f52d4ae]{margin-bottom:8%;font-size:16px;font-weight:700}.title .text_time[data-v-6f52d4ae]{font-size:13px;font-weight:400!important}.tatal[data-v-6f52d4ae]{display:flex;flex-direction:column;align-items:center}.text[data-v-6f52d4ae]{font-size:25px;font-weight:700}.tatals[data-v-6f52d4ae]{display:flex;justify-content:space-around;padding-top:40px;padding-bottom:20px}.app-title[data-v-6f52d4ae]{width:100%}.app-title-time[data-v-6f52d4ae]{padding:10px}.chart-header[data-v-6f52d4ae]{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.chart-title[data-v-6f52d4ae]{font-size:16px;font-weight:700;color:#333}.position-center[data-v-617c24b2]{position:absolute;right:0;top:30%;transform:translateY(-30%)}.plus-position[data-v-617c24b2]{position:absolute;right:0;top:0;margin-top:8px}.position-center[data-v-4b80f94a]{position:absolute;right:0;top:30%;transform:translateY(-30%)}.plus-position[data-v-4b80f94a]{position:absolute;right:0;top:0;margin-top:8px}.total-num{margin-left:0!important;margin-right:0!important;text-align:center}.text_right{text-align:right;display:inline-block;min-width:80px}
|