xyvcard-settle 0.0.41 → 0.0.43
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/dist/{history-CKm40RN0.mjs → history-Bjxjxy_1.mjs} +1 -1
- package/dist/{history-Djpk-wxw.mjs → history-CyGeajMX.mjs} +1 -1
- package/dist/history.vue_vue_type_script_setup_true_lang-DzyW9ohx.mjs +378 -0
- package/dist/{history.vue_vue_type_script_setup_true_lang-BlBHinps.mjs → history.vue_vue_type_script_setup_true_lang-dd7Qrf3A.mjs} +111 -127
- package/dist/{index-GI8dQtIV.mjs → index-BA1OfmNb.mjs} +1 -1
- package/dist/{index-Ce1JIAp_.mjs → index-BMj5XmMX.mjs} +266 -282
- package/dist/{index-DISA5kjA.mjs → index-BpcmzxBU.mjs} +55 -53
- package/dist/{index-QIqV4ldo.mjs → index-C-A0Y3EK.mjs} +143 -159
- package/dist/index-C6Tt7EGW.mjs +726 -0
- package/dist/index-CGyzqfPx.mjs +541 -0
- package/dist/index-Doq8ZiUn.mjs +136 -0
- package/dist/{index-BAU8_bL5.mjs → index-DsTHP6ez.mjs} +66 -64
- package/dist/{index-TLbN5F_1.mjs → index-I-KFULpq.mjs} +425 -422
- package/dist/{index-uB6SZpRm.mjs → index-vIbGxvHd.mjs} +2 -2
- package/dist/index-x556wvD_.mjs +588 -0
- package/dist/index.mjs +1 -1
- package/dist/pay-BK10dbR-.mjs +121 -0
- package/dist/payPal-C5Hhq3pQ.mjs +118 -0
- package/dist/style.css +1 -1
- package/dist/{today-BBWMuUFc.mjs → today-DYd5N03E.mjs} +1 -1
- package/dist/{today.vue_vue_type_script_setup_true_lang-CmzDkIbs.mjs → today.vue_vue_type_script_setup_true_lang-D2JX696c.mjs} +8 -8
- package/dts/src/utils/timePlugin.d.ts +1 -0
- package/package.json +3 -3
- package/dist/history.vue_vue_type_script_setup_true_lang-DuKstKV7.mjs +0 -458
- package/dist/index-BOYpCJFd.mjs +0 -756
- package/dist/index-CAOauGAU.mjs +0 -605
- package/dist/index-Che5xN0z.mjs +0 -603
- package/dist/index-RBvZYqWi.mjs +0 -134
- package/dist/pay-ddopuD-7.mjs +0 -98
- package/dist/payPal-Bp_Ivr7P.mjs +0 -110
|
@@ -0,0 +1,541 @@
|
|
|
1
|
+
import { defineComponent as ee, ref as k, onActivated as te, resolveComponent as y, resolveDirective as le, createElementBlock as R, openBlock as C, createElementVNode as c, createVNode as t, withCtx as l, createBlock as S, createCommentVNode as z, withKeys as v, unref as a, withDirectives as B, vShow as ae, createTextVNode as r, toDisplayString as p, createSlots as ne, isRef as U } from "vue";
|
|
2
|
+
import { useRoute as oe, useRouter as se } from "vue-router";
|
|
3
|
+
import { useI18n as re } from "vue-i18n";
|
|
4
|
+
import { useUserStore as I, clearEmpty as de, request as ue, useTableHooks as ie } from "jmash-core";
|
|
5
|
+
import { tokenExt as E } from "xyvcard-agent";
|
|
6
|
+
import { D as f } from "./index-V8g7-RWq.mjs";
|
|
7
|
+
import { DateRange as me } from "xyvcard-insts";
|
|
8
|
+
class pe {
|
|
9
|
+
getKey(T) {
|
|
10
|
+
return {
|
|
11
|
+
analysisTime: T.analysisTime,
|
|
12
|
+
channelId: T.channelId
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
// 查询翻页信息支付交易汇总统计;
|
|
16
|
+
findPage(T) {
|
|
17
|
+
const D = I().user.tenant;
|
|
18
|
+
return de(T), ue({
|
|
19
|
+
url: "/v1/settle/analysis/merchant/my/page/" + D,
|
|
20
|
+
method: "get",
|
|
21
|
+
params: T
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
const ye = new pe(), fe = { class: "app-container" }, be = { class: "search-container" }, ce = { class: "total-num" }, Te = { class: "blue_color" }, ve = { class: "blue_color" }, ge = { class: "blue_color" }, Ae = { class: "blue_color" }, he = { class: "blue_color" }, we = ["onClick"], _e = /* @__PURE__ */ ee({
|
|
26
|
+
__name: "index",
|
|
27
|
+
setup(P) {
|
|
28
|
+
const { t: T } = re();
|
|
29
|
+
f.agentBizDict.useValues(), f.instsBizDict.useValues(), f.merchantBizDict.useValues();
|
|
30
|
+
const V = oe().query.tenant, M = k(E.getCurrentRole(I().user.tenant)), j = se(), s = k({
|
|
31
|
+
tokenExt: E.getTokenExt(I().user.tenant)
|
|
32
|
+
}), {
|
|
33
|
+
tableHooks: i,
|
|
34
|
+
multipleTableRef: K,
|
|
35
|
+
queryFormRef: Q,
|
|
36
|
+
listLoading: Y,
|
|
37
|
+
tableData: q,
|
|
38
|
+
total: h
|
|
39
|
+
} = ie(T, ye, s);
|
|
40
|
+
let g = i.totalRecord, A = k([
|
|
41
|
+
// 序号
|
|
42
|
+
{
|
|
43
|
+
label: "settleTradeAnalysis.index",
|
|
44
|
+
type: "index",
|
|
45
|
+
width: "60",
|
|
46
|
+
sortable: "custom",
|
|
47
|
+
isColumn: !0
|
|
48
|
+
},
|
|
49
|
+
// 商户名称
|
|
50
|
+
{
|
|
51
|
+
label: "settleTradeAnalysis.merchantId",
|
|
52
|
+
prop: "merchantId",
|
|
53
|
+
slotName: "merchantId",
|
|
54
|
+
columnType: "slot",
|
|
55
|
+
minWidth: "350",
|
|
56
|
+
isColumn: !0
|
|
57
|
+
},
|
|
58
|
+
// 商户号
|
|
59
|
+
{
|
|
60
|
+
label: "settleTradeAnalysis.merchantNo",
|
|
61
|
+
prop: "merchantNo",
|
|
62
|
+
width: "150",
|
|
63
|
+
sortable: "custom",
|
|
64
|
+
isColumn: !0
|
|
65
|
+
},
|
|
66
|
+
// 订单笔数
|
|
67
|
+
{
|
|
68
|
+
label: "settleTradeAnalysis.orderCount",
|
|
69
|
+
prop: "orderCount",
|
|
70
|
+
width: "110",
|
|
71
|
+
sortable: "custom",
|
|
72
|
+
isColumn: !0
|
|
73
|
+
},
|
|
74
|
+
// 订单总额
|
|
75
|
+
{
|
|
76
|
+
label: "settleTradeAnalysis.orderAmount",
|
|
77
|
+
prop: "orderAmount",
|
|
78
|
+
width: "110",
|
|
79
|
+
sortable: "custom",
|
|
80
|
+
isColumn: !0
|
|
81
|
+
},
|
|
82
|
+
// 交易金额
|
|
83
|
+
{
|
|
84
|
+
label: "settleTradeAnalysis.tradeAmount",
|
|
85
|
+
prop: "tradeAmount",
|
|
86
|
+
width: "110",
|
|
87
|
+
sortable: "custom",
|
|
88
|
+
isColumn: !0
|
|
89
|
+
},
|
|
90
|
+
// 优惠金额
|
|
91
|
+
{
|
|
92
|
+
label: "settleTradeAnalysis.discountAmount",
|
|
93
|
+
prop: "discountAmount",
|
|
94
|
+
width: "110",
|
|
95
|
+
sortable: "custom",
|
|
96
|
+
isColumn: !0
|
|
97
|
+
},
|
|
98
|
+
// 手续费
|
|
99
|
+
{
|
|
100
|
+
label: "settleTradeAnalysis.feeAmt",
|
|
101
|
+
prop: "feeAmt",
|
|
102
|
+
width: "100",
|
|
103
|
+
sortable: "custom",
|
|
104
|
+
isColumn: !0
|
|
105
|
+
},
|
|
106
|
+
// 交易时间
|
|
107
|
+
{
|
|
108
|
+
label: "settleTradeAnalysis.analysisTime",
|
|
109
|
+
prop: "analysisTime",
|
|
110
|
+
width: "110",
|
|
111
|
+
sortable: "custom",
|
|
112
|
+
isColumn: !0
|
|
113
|
+
},
|
|
114
|
+
// 渠道
|
|
115
|
+
{
|
|
116
|
+
label: "payTrade.instsId",
|
|
117
|
+
prop: "instsId",
|
|
118
|
+
slotName: "instsId",
|
|
119
|
+
columnType: "slot",
|
|
120
|
+
width: "150",
|
|
121
|
+
sortable: "custom",
|
|
122
|
+
isColumn: !0
|
|
123
|
+
},
|
|
124
|
+
// 代理商名称
|
|
125
|
+
{
|
|
126
|
+
label: "settleTradeAnalysis.agentCode",
|
|
127
|
+
prop: "agentCode",
|
|
128
|
+
slotName: "agentCode",
|
|
129
|
+
columnType: "slot",
|
|
130
|
+
minWidth: "200",
|
|
131
|
+
sortable: "custom",
|
|
132
|
+
isColumn: !0
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
label: "common.operate",
|
|
136
|
+
width: "100",
|
|
137
|
+
slotName: "operation",
|
|
138
|
+
columnType: "slot",
|
|
139
|
+
fixed: "right",
|
|
140
|
+
isColumn: !0
|
|
141
|
+
}
|
|
142
|
+
]);
|
|
143
|
+
function L(n) {
|
|
144
|
+
j.push({
|
|
145
|
+
path: "/payment/pay-trade",
|
|
146
|
+
query: {
|
|
147
|
+
merchantId: n.merchantId
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
function F(n) {
|
|
152
|
+
i.selectionRows.value = n;
|
|
153
|
+
}
|
|
154
|
+
function H(n) {
|
|
155
|
+
i.handleSort(n.prop, n.order);
|
|
156
|
+
}
|
|
157
|
+
return te(() => {
|
|
158
|
+
i.getList();
|
|
159
|
+
}), (n, e) => {
|
|
160
|
+
const w = y("jmash-select"), b = y("el-form-item"), d = y("el-col"), _ = y("el-input"), O = y("el-tree-select"), N = y("el-button"), $ = y("el-row"), W = y("el-form"), G = y("jmash-column-select"), J = y("jmash-table"), X = y("jmash-pagination"), Z = y("el-card"), x = le("hasPerm");
|
|
161
|
+
return C(), R("div", fe, [
|
|
162
|
+
c("div", be, [
|
|
163
|
+
t(W, {
|
|
164
|
+
ref_key: "queryFormRef",
|
|
165
|
+
ref: Q,
|
|
166
|
+
model: s.value,
|
|
167
|
+
inline: !0,
|
|
168
|
+
"label-width": "6em"
|
|
169
|
+
}, {
|
|
170
|
+
default: l(() => [
|
|
171
|
+
t($, null, {
|
|
172
|
+
default: l(() => {
|
|
173
|
+
var u, m;
|
|
174
|
+
return [
|
|
175
|
+
t(d, { span: 6 }, {
|
|
176
|
+
default: l(() => [
|
|
177
|
+
t(b, {
|
|
178
|
+
label: n.$t("payTrade.merchantId"),
|
|
179
|
+
prop: "version"
|
|
180
|
+
}, {
|
|
181
|
+
default: l(() => [
|
|
182
|
+
t(w, {
|
|
183
|
+
modelValue: s.value.merchantId,
|
|
184
|
+
"onUpdate:modelValue": e[0] || (e[0] = (o) => s.value.merchantId = o),
|
|
185
|
+
placeholder: n.$t("payTrade.merchantIdRead"),
|
|
186
|
+
data: a(f).merchantBizDict.values,
|
|
187
|
+
onKeyup: e[1] || (e[1] = v((o) => a(i).handleQuery(), ["enter"])),
|
|
188
|
+
class: "!w-[203px]",
|
|
189
|
+
filterable: "",
|
|
190
|
+
clearable: ""
|
|
191
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
192
|
+
]),
|
|
193
|
+
_: 1
|
|
194
|
+
}, 8, ["label"])
|
|
195
|
+
]),
|
|
196
|
+
_: 1
|
|
197
|
+
}),
|
|
198
|
+
t(d, { span: 6 }, {
|
|
199
|
+
default: l(() => [
|
|
200
|
+
t(b, {
|
|
201
|
+
label: n.$t("settleTradeAnalysis.payMode"),
|
|
202
|
+
prop: "payMode"
|
|
203
|
+
}, {
|
|
204
|
+
default: l(() => [
|
|
205
|
+
t(w, {
|
|
206
|
+
modelValue: s.value.payMode,
|
|
207
|
+
"onUpdate:modelValue": e[2] || (e[2] = (o) => s.value.payMode = o),
|
|
208
|
+
placeholder: n.$t("settleTradeAnalysis.payModeRead"),
|
|
209
|
+
data: a(f).payModeBizDict.values,
|
|
210
|
+
onKeyup: e[3] || (e[3] = v((o) => a(i).handleQuery(), ["enter"])),
|
|
211
|
+
class: "!w-[203px]",
|
|
212
|
+
filterable: "",
|
|
213
|
+
clearable: ""
|
|
214
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
215
|
+
]),
|
|
216
|
+
_: 1
|
|
217
|
+
}, 8, ["label"])
|
|
218
|
+
]),
|
|
219
|
+
_: 1
|
|
220
|
+
}),
|
|
221
|
+
t(d, { span: 6 }, {
|
|
222
|
+
default: l(() => [
|
|
223
|
+
t(b, {
|
|
224
|
+
label: n.$t("settleTradeAnalysis.likeMerchantNo"),
|
|
225
|
+
prop: "likeMerchantNo"
|
|
226
|
+
}, {
|
|
227
|
+
default: l(() => [
|
|
228
|
+
t(_, {
|
|
229
|
+
modelValue: s.value.likeMerchantNo,
|
|
230
|
+
"onUpdate:modelValue": e[4] || (e[4] = (o) => s.value.likeMerchantNo = o),
|
|
231
|
+
placeholder: n.$t("settleTradeAnalysis.likeMerchantNoRead"),
|
|
232
|
+
onKeyup: e[5] || (e[5] = v((o) => a(i).handleQuery(), ["enter"])),
|
|
233
|
+
class: "!w-[203px]"
|
|
234
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
235
|
+
]),
|
|
236
|
+
_: 1
|
|
237
|
+
}, 8, ["label"])
|
|
238
|
+
]),
|
|
239
|
+
_: 1
|
|
240
|
+
}),
|
|
241
|
+
t(d, { span: 6 }, {
|
|
242
|
+
default: l(() => [
|
|
243
|
+
t(b, {
|
|
244
|
+
label: n.$t("settleTradeAnalysis.termNo"),
|
|
245
|
+
prop: "termNo"
|
|
246
|
+
}, {
|
|
247
|
+
default: l(() => [
|
|
248
|
+
t(_, {
|
|
249
|
+
modelValue: s.value.termNo,
|
|
250
|
+
"onUpdate:modelValue": e[6] || (e[6] = (o) => s.value.termNo = o),
|
|
251
|
+
placeholder: n.$t("settleTradeAnalysis.termNoRead"),
|
|
252
|
+
onKeyup: e[7] || (e[7] = v((o) => a(i).handleQuery(), ["enter"])),
|
|
253
|
+
class: "!w-[203px]"
|
|
254
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
255
|
+
]),
|
|
256
|
+
_: 1
|
|
257
|
+
}, 8, ["label"])
|
|
258
|
+
]),
|
|
259
|
+
_: 1
|
|
260
|
+
}),
|
|
261
|
+
(u = a(V)) != null && u.includes("@") ? z("", !0) : (C(), S(d, {
|
|
262
|
+
key: 0,
|
|
263
|
+
span: 6
|
|
264
|
+
}, {
|
|
265
|
+
default: l(() => [
|
|
266
|
+
t(b, {
|
|
267
|
+
label: n.$t("settleTradeAnalysis.agentCode"),
|
|
268
|
+
prop: "agentCode"
|
|
269
|
+
}, {
|
|
270
|
+
default: l(() => [
|
|
271
|
+
t(O, {
|
|
272
|
+
modelValue: s.value.agentCode,
|
|
273
|
+
"onUpdate:modelValue": e[8] || (e[8] = (o) => s.value.agentCode = o),
|
|
274
|
+
data: a(f).agentBizDict.values,
|
|
275
|
+
"node-key": "value",
|
|
276
|
+
filterable: "",
|
|
277
|
+
clearable: "",
|
|
278
|
+
placeholder: n.$t("settleTradeAnalysis.agentCodeRead"),
|
|
279
|
+
class: "!w-[203px]"
|
|
280
|
+
}, null, 8, ["modelValue", "data", "placeholder"])
|
|
281
|
+
]),
|
|
282
|
+
_: 1
|
|
283
|
+
}, 8, ["label"])
|
|
284
|
+
]),
|
|
285
|
+
_: 1
|
|
286
|
+
})),
|
|
287
|
+
t(d, { span: 6 }, {
|
|
288
|
+
default: l(() => [
|
|
289
|
+
t(b, {
|
|
290
|
+
label: n.$t("settleTradeAnalysis.tradeType"),
|
|
291
|
+
prop: "tradeType"
|
|
292
|
+
}, {
|
|
293
|
+
default: l(() => [
|
|
294
|
+
t(w, {
|
|
295
|
+
modelValue: s.value.tradeType,
|
|
296
|
+
"onUpdate:modelValue": e[9] || (e[9] = (o) => s.value.tradeType = o),
|
|
297
|
+
placeholder: n.$t("settleTradeAnalysis.tradeTypeRead"),
|
|
298
|
+
data: a(f).tradeTypeBizDict.values,
|
|
299
|
+
onKeyup: e[10] || (e[10] = v((o) => a(i).handleQuery(), ["enter"])),
|
|
300
|
+
class: "!w-[203px]",
|
|
301
|
+
filterable: "",
|
|
302
|
+
clearable: ""
|
|
303
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
304
|
+
]),
|
|
305
|
+
_: 1
|
|
306
|
+
}, 8, ["label"])
|
|
307
|
+
]),
|
|
308
|
+
_: 1
|
|
309
|
+
}),
|
|
310
|
+
t(d, { span: 6 }, {
|
|
311
|
+
default: l(() => [
|
|
312
|
+
t(b, {
|
|
313
|
+
label: n.$t("settleTradeAnalysis.channelId"),
|
|
314
|
+
prop: "channelId"
|
|
315
|
+
}, {
|
|
316
|
+
default: l(() => [
|
|
317
|
+
t(w, {
|
|
318
|
+
modelValue: s.value.channelId,
|
|
319
|
+
"onUpdate:modelValue": e[11] || (e[11] = (o) => s.value.channelId = o),
|
|
320
|
+
placeholder: n.$t("settleTradeAnalysis.channelIdRead"),
|
|
321
|
+
data: a(f).instsBizDict.values,
|
|
322
|
+
onKeyup: e[12] || (e[12] = v((o) => a(i).handleQuery(), ["enter"])),
|
|
323
|
+
class: "!w-[203px]",
|
|
324
|
+
filterable: "",
|
|
325
|
+
clearable: ""
|
|
326
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
327
|
+
]),
|
|
328
|
+
_: 1
|
|
329
|
+
}, 8, ["label"])
|
|
330
|
+
]),
|
|
331
|
+
_: 1
|
|
332
|
+
}),
|
|
333
|
+
t(d, { span: 6 }, {
|
|
334
|
+
default: l(() => [
|
|
335
|
+
t(b, {
|
|
336
|
+
label: n.$t("settleTradeAnalysis.createTime"),
|
|
337
|
+
prop: "analysisTimeStart"
|
|
338
|
+
}, {
|
|
339
|
+
default: l(() => [
|
|
340
|
+
t(a(me), {
|
|
341
|
+
class: "!w-[203px]",
|
|
342
|
+
"start-time": s.value.analysisTimeStart,
|
|
343
|
+
"onUpdate:startTime": e[13] || (e[13] = (o) => s.value.analysisTimeStart = o),
|
|
344
|
+
"end-time": s.value.analysisTimeEnd,
|
|
345
|
+
"onUpdate:endTime": e[14] || (e[14] = (o) => s.value.analysisTimeEnd = o),
|
|
346
|
+
format: "YYYY-MM-DD",
|
|
347
|
+
"value-format": "YYYY-MM-DD",
|
|
348
|
+
"range-separator": "-",
|
|
349
|
+
"start-placeholder": n.$t("settleTradeAnalysis.analysisTimeStart"),
|
|
350
|
+
"end-placeholder": n.$t("settleTradeAnalysis.analysisTimeEnd")
|
|
351
|
+
}, null, 8, ["start-time", "end-time", "start-placeholder", "end-placeholder"])
|
|
352
|
+
]),
|
|
353
|
+
_: 1
|
|
354
|
+
}, 8, ["label"]),
|
|
355
|
+
B(t(b, { prop: "analysisTimeEnd" }, null, 512), [
|
|
356
|
+
[ae, !1]
|
|
357
|
+
])
|
|
358
|
+
]),
|
|
359
|
+
_: 1
|
|
360
|
+
}),
|
|
361
|
+
t(d, {
|
|
362
|
+
span: (m = a(V)) != null && m.includes("@") ? 6 : 24
|
|
363
|
+
}, {
|
|
364
|
+
default: l(() => [
|
|
365
|
+
t(b, { class: "search-btn" }, {
|
|
366
|
+
default: l(() => [
|
|
367
|
+
t(N, {
|
|
368
|
+
type: "primary",
|
|
369
|
+
onClick: e[15] || (e[15] = (o) => a(i).handleQuery())
|
|
370
|
+
}, {
|
|
371
|
+
default: l(() => [
|
|
372
|
+
r(p(n.$t("common.search")), 1)
|
|
373
|
+
]),
|
|
374
|
+
_: 1
|
|
375
|
+
}),
|
|
376
|
+
t(N, {
|
|
377
|
+
onClick: e[16] || (e[16] = (o) => a(i).resetQuery())
|
|
378
|
+
}, {
|
|
379
|
+
default: l(() => [
|
|
380
|
+
r(p(n.$t("common.reset")), 1)
|
|
381
|
+
]),
|
|
382
|
+
_: 1
|
|
383
|
+
})
|
|
384
|
+
]),
|
|
385
|
+
_: 1
|
|
386
|
+
})
|
|
387
|
+
]),
|
|
388
|
+
_: 1
|
|
389
|
+
}, 8, ["span"])
|
|
390
|
+
];
|
|
391
|
+
}),
|
|
392
|
+
_: 1
|
|
393
|
+
})
|
|
394
|
+
]),
|
|
395
|
+
_: 1
|
|
396
|
+
}, 8, ["model"]),
|
|
397
|
+
e[22] || (e[22] = c("div", { class: "clear" }, null, -1))
|
|
398
|
+
]),
|
|
399
|
+
t(Z, {
|
|
400
|
+
shadow: "never",
|
|
401
|
+
class: "table-container"
|
|
402
|
+
}, {
|
|
403
|
+
header: l(() => [
|
|
404
|
+
t($, null, {
|
|
405
|
+
default: l(() => [
|
|
406
|
+
t(d, {
|
|
407
|
+
span: 24,
|
|
408
|
+
class: "container-float"
|
|
409
|
+
}, {
|
|
410
|
+
default: l(() => [
|
|
411
|
+
t(G, {
|
|
412
|
+
modelValue: a(A),
|
|
413
|
+
"onUpdate:modelValue": e[17] || (e[17] = (u) => U(A) ? A.value = u : A = u),
|
|
414
|
+
"label-name": "settle/settle-trade-analysis"
|
|
415
|
+
}, null, 8, ["modelValue"])
|
|
416
|
+
]),
|
|
417
|
+
_: 1
|
|
418
|
+
})
|
|
419
|
+
]),
|
|
420
|
+
_: 1
|
|
421
|
+
})
|
|
422
|
+
]),
|
|
423
|
+
footer: l(() => [
|
|
424
|
+
a(h) > 0 ? (C(), S(X, {
|
|
425
|
+
key: 0,
|
|
426
|
+
total: a(h),
|
|
427
|
+
"onUpdate:total": e[18] || (e[18] = (u) => U(h) ? h.value = u : null),
|
|
428
|
+
"current-page": s.value.curPage,
|
|
429
|
+
"onUpdate:currentPage": e[19] || (e[19] = (u) => s.value.curPage = u),
|
|
430
|
+
"page-size": s.value.pageSize,
|
|
431
|
+
"onUpdate:pageSize": e[20] || (e[20] = (u) => s.value.pageSize = u),
|
|
432
|
+
onPagination: e[21] || (e[21] = (u) => a(i).getList())
|
|
433
|
+
}, null, 8, ["total", "current-page", "page-size"])) : z("", !0)
|
|
434
|
+
]),
|
|
435
|
+
default: l(() => {
|
|
436
|
+
var u;
|
|
437
|
+
return [
|
|
438
|
+
c("div", ce, [
|
|
439
|
+
t($, { gutter: 20 }, {
|
|
440
|
+
default: l(() => [
|
|
441
|
+
t(d, { span: 4 }, {
|
|
442
|
+
default: l(() => [
|
|
443
|
+
e[23] || (e[23] = r(" 订单数: ")),
|
|
444
|
+
c("span", Te, p(a(g).totalOrderCount), 1),
|
|
445
|
+
e[24] || (e[24] = r(" 笔 "))
|
|
446
|
+
]),
|
|
447
|
+
_: 1
|
|
448
|
+
}),
|
|
449
|
+
t(d, { span: 4 }, {
|
|
450
|
+
default: l(() => [
|
|
451
|
+
e[25] || (e[25] = r(" 订单金额: ")),
|
|
452
|
+
c("span", ve, p(a(g).totalOrderAmount), 1),
|
|
453
|
+
e[26] || (e[26] = r(" 元 "))
|
|
454
|
+
]),
|
|
455
|
+
_: 1
|
|
456
|
+
}),
|
|
457
|
+
t(d, { span: 4 }, {
|
|
458
|
+
default: l(() => [
|
|
459
|
+
e[27] || (e[27] = r(" 交易金额: ")),
|
|
460
|
+
c("span", ge, p(a(g).totalTradeAmount), 1),
|
|
461
|
+
e[28] || (e[28] = r(" 元 "))
|
|
462
|
+
]),
|
|
463
|
+
_: 1
|
|
464
|
+
}),
|
|
465
|
+
t(d, { span: 4 }, {
|
|
466
|
+
default: l(() => [
|
|
467
|
+
e[29] || (e[29] = r(" 优惠金额: ")),
|
|
468
|
+
c("span", Ae, p(a(g).totalDiscountAmount), 1),
|
|
469
|
+
e[30] || (e[30] = r(" 元 "))
|
|
470
|
+
]),
|
|
471
|
+
_: 1
|
|
472
|
+
}),
|
|
473
|
+
t(d, { span: 4 }, {
|
|
474
|
+
default: l(() => [
|
|
475
|
+
e[31] || (e[31] = r(" 手续费: ")),
|
|
476
|
+
c("span", he, p(a(g).totalFeeAmt), 1),
|
|
477
|
+
e[32] || (e[32] = r(" 元 "))
|
|
478
|
+
]),
|
|
479
|
+
_: 1
|
|
480
|
+
})
|
|
481
|
+
]),
|
|
482
|
+
_: 1
|
|
483
|
+
})
|
|
484
|
+
]),
|
|
485
|
+
t(J, {
|
|
486
|
+
ref_key: "multipleTableRef",
|
|
487
|
+
ref: K,
|
|
488
|
+
isSelection: !1,
|
|
489
|
+
"row-key": "settleTradeAnalysisPk",
|
|
490
|
+
"list-loading": a(Y),
|
|
491
|
+
data: a(q),
|
|
492
|
+
"table-label": a(A),
|
|
493
|
+
onSelectionChange: F,
|
|
494
|
+
onSortChange: H
|
|
495
|
+
}, ne({
|
|
496
|
+
merchantId: l((m) => [
|
|
497
|
+
r(p(a(f).merchantBizDict.getValue(m.data.row.merchantId)), 1)
|
|
498
|
+
]),
|
|
499
|
+
instsId: l((m) => [
|
|
500
|
+
r(p(a(f).instsBizDict.getValue(m.data.row.instsId)), 1)
|
|
501
|
+
]),
|
|
502
|
+
payMode: l((m) => [
|
|
503
|
+
r(p(a(f).payModeBizDict.getEnumValue(m.data.row.payMode)), 1)
|
|
504
|
+
]),
|
|
505
|
+
operation: l((m) => [
|
|
506
|
+
B((C(), R("span", {
|
|
507
|
+
class: "el-button-color",
|
|
508
|
+
onClick: (o) => L(m.data.row)
|
|
509
|
+
}, [
|
|
510
|
+
r(p(n.$t("settleTradeAnalysis.view")), 1)
|
|
511
|
+
], 8, we)), [
|
|
512
|
+
[x, ["payment:trade_analysis:view"]]
|
|
513
|
+
])
|
|
514
|
+
]),
|
|
515
|
+
_: 2
|
|
516
|
+
}, [
|
|
517
|
+
!((u = a(V)) != null && u.includes("@")) || M.value.merchantId ? {
|
|
518
|
+
name: "agentCode",
|
|
519
|
+
fn: l((m) => [
|
|
520
|
+
r(p(a(f).agentBizDict.getValue(m.data.row.agentCode)), 1)
|
|
521
|
+
]),
|
|
522
|
+
key: "0"
|
|
523
|
+
} : {
|
|
524
|
+
name: "agentCode",
|
|
525
|
+
fn: l((m) => [
|
|
526
|
+
r(p(M.value.agentAlias), 1)
|
|
527
|
+
]),
|
|
528
|
+
key: "1"
|
|
529
|
+
}
|
|
530
|
+
]), 1032, ["list-loading", "data", "table-label"])
|
|
531
|
+
];
|
|
532
|
+
}),
|
|
533
|
+
_: 1
|
|
534
|
+
})
|
|
535
|
+
]);
|
|
536
|
+
};
|
|
537
|
+
}
|
|
538
|
+
});
|
|
539
|
+
export {
|
|
540
|
+
_e as default
|
|
541
|
+
};
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { defineComponent as C, ref as c, resolveComponent as _, resolveDirective as D, createElementBlock as g, openBlock as p, createElementVNode as t, createVNode as l, withCtx as r, toDisplayString as o, withDirectives as T, createBlock as Y, createTextVNode as k } from "vue";
|
|
2
|
+
import { useRouter as w } from "vue-router";
|
|
3
|
+
import { T as H, m as v } from "./trend-C4uCFrLb.mjs";
|
|
4
|
+
import { t as M } from "./tokenExt-SHK5rrb5.mjs";
|
|
5
|
+
import { useUserStore as E } from "jmash-core";
|
|
6
|
+
import { h as x } from "./index-I-KFULpq.mjs";
|
|
7
|
+
import { C as f } from "./constant-CtDv38CM.mjs";
|
|
8
|
+
import { _ as N } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
9
|
+
const b = { class: "app" }, P = { class: "app-title" }, B = { class: "row-container" }, R = { class: "tatals" }, S = { class: "tatal" }, V = { class: "text" }, I = { class: "tatal" }, F = { class: "text" }, U = { class: "tatal" }, j = { class: "text" }, q = { class: "tatal" }, z = { class: "text" }, G = { class: "tatals" }, J = { class: "tatal" }, K = { class: "text" }, L = { class: "tatal" }, O = { class: "text" }, Q = { class: "tatal" }, W = { class: "text" }, X = { class: "tatal" }, Z = { class: "text" }, $ = { class: "app-title-time" }, tt = { class: "chart-header" }, et = /* @__PURE__ */ C({
|
|
10
|
+
__name: "index",
|
|
11
|
+
setup(st) {
|
|
12
|
+
const i = w(), m = x().format("YYYY-MM-DD"), u = x().subtract(1, "days").format("YYYY-MM-DD"), a = c({}), n = c({});
|
|
13
|
+
(async () => {
|
|
14
|
+
try {
|
|
15
|
+
v.homePageAmount({
|
|
16
|
+
analysisTimeStart: m,
|
|
17
|
+
analysisTimeEnd: m
|
|
18
|
+
}).then((s) => {
|
|
19
|
+
n.value = {
|
|
20
|
+
orderCount: s.data.orderCount,
|
|
21
|
+
tradeAmount: s.data.tradeAmount,
|
|
22
|
+
feeAmt: s.data.feeAmt,
|
|
23
|
+
settleAmount: s.data.settleAmount
|
|
24
|
+
};
|
|
25
|
+
}), v.homePageAmount({
|
|
26
|
+
analysisTimeStart: u,
|
|
27
|
+
analysisTimeEnd: u
|
|
28
|
+
}).then((s) => {
|
|
29
|
+
a.value = {
|
|
30
|
+
orderCount: s.data.orderCount,
|
|
31
|
+
tradeAmount: s.data.tradeAmount,
|
|
32
|
+
feeAmt: s.data.feeAmt,
|
|
33
|
+
settleAmount: s.data.settleAmount
|
|
34
|
+
};
|
|
35
|
+
});
|
|
36
|
+
} catch (s) {
|
|
37
|
+
console.error("暂无数据", s);
|
|
38
|
+
}
|
|
39
|
+
})();
|
|
40
|
+
const h = () => {
|
|
41
|
+
const s = M.getCurrentRole(E().user.tenant);
|
|
42
|
+
[f.MCHT_CHAIN_HEAD, f.MCHT_CHAIN_BRANCH].includes(
|
|
43
|
+
s.storeType
|
|
44
|
+
) ? i.push({
|
|
45
|
+
path: "/payment/pay-trade"
|
|
46
|
+
}) : i.push({
|
|
47
|
+
path: "/payment/pay-trade-personal"
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
return (s, e) => {
|
|
51
|
+
const d = _("el-card"), y = _("el-button"), A = D("hasPerm");
|
|
52
|
+
return p(), g("div", null, [
|
|
53
|
+
t("div", b, [
|
|
54
|
+
t("div", P, [
|
|
55
|
+
t("div", B, [
|
|
56
|
+
l(d, { class: "card-never" }, {
|
|
57
|
+
default: r(() => [
|
|
58
|
+
e[4] || (e[4] = t("span", { style: { "margin-right": "25%", "font-weight": "bold" } }, "交易数据看板(昨日)", -1)),
|
|
59
|
+
t("div", R, [
|
|
60
|
+
t("div", S, [
|
|
61
|
+
t("text", V, o(a.value.orderCount || 0), 1),
|
|
62
|
+
e[0] || (e[0] = t("text", null, "交易笔数", -1))
|
|
63
|
+
]),
|
|
64
|
+
t("div", I, [
|
|
65
|
+
t("text", F, o(a.value.tradeAmount || 0), 1),
|
|
66
|
+
e[1] || (e[1] = t("text", null, " 交易金额", -1))
|
|
67
|
+
]),
|
|
68
|
+
t("div", U, [
|
|
69
|
+
t("text", j, o(a.value.feeAmt || 0), 1),
|
|
70
|
+
e[2] || (e[2] = t("text", null, " 手续费", -1))
|
|
71
|
+
]),
|
|
72
|
+
t("div", q, [
|
|
73
|
+
t("text", z, o(a.value.settleAmount || "暂无结算"), 1),
|
|
74
|
+
e[3] || (e[3] = t("text", null, " 结算金额", -1))
|
|
75
|
+
])
|
|
76
|
+
])
|
|
77
|
+
]),
|
|
78
|
+
_: 1
|
|
79
|
+
}),
|
|
80
|
+
l(d, { class: "card-never" }, {
|
|
81
|
+
default: r(() => [
|
|
82
|
+
e[9] || (e[9] = t("span", { style: { "margin-right": "25%", "font-weight": "bold" } }, "交易数据看板(今日)", -1)),
|
|
83
|
+
t("div", G, [
|
|
84
|
+
t("div", J, [
|
|
85
|
+
t("text", K, o(n.value.orderCount || 0), 1),
|
|
86
|
+
e[5] || (e[5] = t("text", null, "交易笔数", -1))
|
|
87
|
+
]),
|
|
88
|
+
t("div", L, [
|
|
89
|
+
t("text", O, o(n.value.tradeAmount || 0), 1),
|
|
90
|
+
e[6] || (e[6] = t("text", null, " 交易金额", -1))
|
|
91
|
+
]),
|
|
92
|
+
t("div", Q, [
|
|
93
|
+
t("text", W, o(n.value.feeAmt || 0), 1),
|
|
94
|
+
e[7] || (e[7] = t("text", null, " 手续费", -1))
|
|
95
|
+
]),
|
|
96
|
+
t("div", X, [
|
|
97
|
+
t("text", Z, o(n.value.settleAmount || "暂无结算"), 1),
|
|
98
|
+
e[8] || (e[8] = t("text", null, " 结算金额", -1))
|
|
99
|
+
])
|
|
100
|
+
])
|
|
101
|
+
]),
|
|
102
|
+
_: 1
|
|
103
|
+
})
|
|
104
|
+
])
|
|
105
|
+
])
|
|
106
|
+
]),
|
|
107
|
+
t("div", $, [
|
|
108
|
+
l(d, { class: "card-chart" }, {
|
|
109
|
+
default: r(() => [
|
|
110
|
+
t("div", tt, [
|
|
111
|
+
e[11] || (e[11] = t("span", { class: "chart-title" }, " 交易金额趋势 ", -1)),
|
|
112
|
+
T((p(), Y(y, {
|
|
113
|
+
type: "primary",
|
|
114
|
+
link: "",
|
|
115
|
+
onClick: h
|
|
116
|
+
}, {
|
|
117
|
+
default: r(() => e[10] || (e[10] = [
|
|
118
|
+
k(" 查看更多 ")
|
|
119
|
+
])),
|
|
120
|
+
_: 1
|
|
121
|
+
})), [
|
|
122
|
+
[A, ["payment:trade_analysis:view"]]
|
|
123
|
+
])
|
|
124
|
+
]),
|
|
125
|
+
l(H)
|
|
126
|
+
]),
|
|
127
|
+
_: 1
|
|
128
|
+
})
|
|
129
|
+
])
|
|
130
|
+
]);
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
}), ct = /* @__PURE__ */ N(et, [["__scopeId", "data-v-47f01433"]]);
|
|
134
|
+
export {
|
|
135
|
+
ct as default
|
|
136
|
+
};
|