xyvcard-settle 0.0.33 → 0.0.34

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 (30) hide show
  1. package/dist/{history-B7h6umTa.mjs → history-BC3TB9eA.mjs} +1 -1
  2. package/dist/{history-DJpkp996.mjs → history-BUclRbel.mjs} +1 -1
  3. package/dist/history.vue_vue_type_script_setup_true_lang-Cd1HTqlw.mjs +355 -0
  4. package/dist/{history.vue_vue_type_script_setup_true_lang-C4SLSoNL.mjs → history.vue_vue_type_script_setup_true_lang-Ckmyrwct.mjs} +185 -165
  5. package/dist/{index-Dh5YzY21.mjs → index-B81N3bxj.mjs} +6 -6
  6. package/dist/{index-CjnGDPpK.mjs → index-BzQRjJke.mjs} +1 -1
  7. package/dist/{index-OPVnNYaE.mjs → index-C4I9aQCw.mjs} +2 -2
  8. package/dist/{index-D0TmvQVF.mjs → index-C7mTT8UR.mjs} +144 -124
  9. package/dist/{index-BMu6LbUO.mjs → index-CL6yVyGz.mjs} +283 -263
  10. package/dist/index-CZpZionn.mjs +449 -0
  11. package/dist/{index-DzwVe4IZ.mjs → index-CgthiwpC.mjs} +126 -106
  12. package/dist/{index-CQ4exNe-.mjs → index-Cjw03ApZ.mjs} +419 -418
  13. package/dist/{index-zsIaZMNT.mjs → index-D9OMutL6.mjs} +2 -1
  14. package/dist/{index-C2xcDRi4.mjs → index-DcOxpuPI.mjs} +2 -2
  15. package/dist/{index-DOkDturn.mjs → index-GU7-SzuX.mjs} +1 -1
  16. package/dist/{index-BPjsSQ9z.mjs → index-ziENx26r.mjs} +287 -266
  17. package/dist/index.mjs +1 -1
  18. package/dist/{merchant-DgUIa-Xb.mjs → merchant-BENZD2R4.mjs} +1 -1
  19. package/dist/{merchant.vue_vue_type_script_setup_true_lang-D5q7svQ3.mjs → merchant.vue_vue_type_script_setup_true_lang-BH_Fe-pn.mjs} +1 -1
  20. package/dist/{pay-ChPqdw_2.mjs → pay-DabqR8eb.mjs} +1 -1
  21. package/dist/{payPal-BaaqnTEd.mjs → payPal-C7Ttt6mf.mjs} +1 -1
  22. package/dist/{sale-DRffAw0b.mjs → sale-Cki0rZ6-.mjs} +1 -1
  23. package/dist/{sale.vue_vue_type_script_setup_true_lang-B9XpAinA.mjs → sale.vue_vue_type_script_setup_true_lang-C1gJAEgg.mjs} +1 -1
  24. package/dist/style.css +1 -1
  25. package/dist/{today-BCH2VB3u.mjs → today-zzTtFFaz.mjs} +1 -1
  26. package/dist/{today.vue_vue_type_script_setup_true_lang-C8tQ6YOQ.mjs → today.vue_vue_type_script_setup_true_lang-BqFapZIT.mjs} +28 -28
  27. package/dist/{trend-DMpZSOlJ.mjs → trend-3ibJo3lK.mjs} +1 -1
  28. package/package.json +11 -11
  29. package/dist/history.vue_vue_type_script_setup_true_lang-fBUUTlwi.mjs +0 -335
  30. package/dist/index-DwKRJ0NX.mjs +0 -429
@@ -0,0 +1,449 @@
1
+ import { defineComponent as Z, getCurrentInstance as ee, ref as w, resolveComponent as d, resolveDirective as te, createElementBlock as N, openBlock as k, createElementVNode as y, createVNode as l, withCtx as n, unref as o, withKeys as V, createTextVNode as i, toDisplayString as p, withDirectives as le, createBlock as ae, createCommentVNode as ne, isRef as M } from "vue";
2
+ import { useI18n as oe } from "vue-i18n";
3
+ import { useRouter as se } from "vue-router";
4
+ import { useUserStore as S, clearEmpty as re, request as de, useTableHooks as ie } from "jmash-core";
5
+ import { D as T, C as R } from "./index-CxsNyMdg.mjs";
6
+ import { tokenExt as ue } from "xyvcard-agent";
7
+ class me {
8
+ getKey(c) {
9
+ return {
10
+ analysisTime: c.analysisTime,
11
+ channelId: c.channelId
12
+ };
13
+ }
14
+ // 查询翻页信息支付交易汇总统计;
15
+ findPage(c) {
16
+ const h = S().user.tenant;
17
+ return re(c), de({
18
+ url: "/v1/settle/analysis/agent/page/" + h,
19
+ method: "get",
20
+ params: c
21
+ });
22
+ }
23
+ }
24
+ const pe = new me(), fe = { class: "app-container" }, ce = { class: "search-container" }, ge = { class: "total-num" }, ye = { class: "blue_color" }, be = { class: "blue_color" }, Te = { class: "blue_color" }, ve = { class: "blue_color" }, Ce = ["onClick"], $e = /* @__PURE__ */ Z({
25
+ __name: "index",
26
+ setup(P) {
27
+ const { t: c } = oe();
28
+ T.agentBizDict.useValues(), T.instsBizDict.useValues();
29
+ const h = se(), { proxy: A } = ee(), s = w({
30
+ tokenExt: ue.getTokenExt(S().user.tenant)
31
+ }), {
32
+ tableHooks: m,
33
+ multipleTableRef: Y,
34
+ queryFormRef: I,
35
+ listLoading: E,
36
+ tableData: z,
37
+ total: v
38
+ } = ie(c, pe, s);
39
+ let C = m.totalRecord;
40
+ const u = w([]);
41
+ function U(t) {
42
+ (!u.value || u.value.length === 0) && (u.value = [t, null]);
43
+ }
44
+ function F(t) {
45
+ if (!u.value || u.value.length === 0)
46
+ return !1;
47
+ const e = u.value[0];
48
+ if (!e) return !1;
49
+ const g = new Date(e), f = g.getMonth(), r = g.getFullYear();
50
+ return t.getMonth() !== f || t.getFullYear() !== r;
51
+ }
52
+ function j(t) {
53
+ if (!t || t.length !== 2) return;
54
+ u.value = t;
55
+ const e = new Date(t[0]), g = new Date(t[1]);
56
+ if (e.getMonth() !== g.getMonth() || e.getFullYear() !== g.getFullYear()) {
57
+ u.value = [], A.$message.warning("开始时间和结束时间必须在同一个月");
58
+ return;
59
+ }
60
+ s.value.analysisTimeStart = A.$moment.formatDate(
61
+ t[0],
62
+ R.RPC_FORMAT_TIME
63
+ ), s.value.analysisTimeEnd = A.$moment.formatDate(
64
+ t[1],
65
+ R.RPC_FORMAT_TIME
66
+ );
67
+ }
68
+ let b = w([
69
+ // 序号
70
+ {
71
+ label: "序号",
72
+ type: "index",
73
+ width: "60",
74
+ isColumn: !0
75
+ },
76
+ // 代理商名称
77
+ {
78
+ label: "settleTradeAnalysis.agentName",
79
+ prop: "agentName",
80
+ slotName: "agentName",
81
+ columnType: "slot",
82
+ minWidth: "150",
83
+ isColumn: !0
84
+ },
85
+ // 代理商名称
86
+ {
87
+ label: "settleTradeAnalysis.agentCode",
88
+ prop: "agentCode",
89
+ slotName: "agentCode",
90
+ columnType: "slot",
91
+ width: "160",
92
+ isColumn: !0
93
+ },
94
+ // 商户数
95
+ {
96
+ label: "settleTradeAnalysis.merchantNum",
97
+ prop: "merchantNum",
98
+ width: "100",
99
+ sortable: "custom",
100
+ isColumn: !0
101
+ },
102
+ // 交易笔数
103
+ {
104
+ label: "settleTradeAnalysis.orderCount",
105
+ prop: "orderCount",
106
+ width: "130",
107
+ sortable: "custom",
108
+ isColumn: !0
109
+ },
110
+ // 交易总额
111
+ {
112
+ label: "settleTradeAnalysis.orderAmount",
113
+ prop: "orderAmount",
114
+ width: "130",
115
+ sortable: "custom",
116
+ isColumn: !0
117
+ },
118
+ // 交易金额
119
+ {
120
+ label: "settleTradeAnalysis.tradeAmount",
121
+ prop: "tradeAmount",
122
+ width: "130",
123
+ sortable: "custom",
124
+ isColumn: !0
125
+ },
126
+ // 手续费
127
+ {
128
+ label: "settleTradeAnalysis.feeAmt",
129
+ prop: "feeAmt",
130
+ width: "120",
131
+ sortable: "custom",
132
+ isColumn: !0
133
+ },
134
+ // 交易时间
135
+ {
136
+ label: "settleTradeAnalysis.analysisTime",
137
+ prop: "analysisTime",
138
+ width: "140",
139
+ sortable: "custom",
140
+ isColumn: !0
141
+ },
142
+ {
143
+ label: "common.operate",
144
+ width: "100",
145
+ slotName: "operation",
146
+ columnType: "slot",
147
+ fixed: "right",
148
+ isColumn: !0
149
+ }
150
+ ]);
151
+ function B(t) {
152
+ h.push({
153
+ path: "/payment/pay-trade",
154
+ query: {
155
+ agentCode: t.agentCode,
156
+ analysisTime: t.analysisTime
157
+ }
158
+ });
159
+ }
160
+ function Q() {
161
+ u.value = [], m.resetQuery();
162
+ }
163
+ function K(t) {
164
+ m.selectionRows.value = t;
165
+ }
166
+ function q(t) {
167
+ m.handleSort(t.prop, t.order);
168
+ }
169
+ return m.getList(), (t, e) => {
170
+ const g = d("el-tree-select"), f = d("el-form-item"), r = d("el-col"), D = d("el-input"), L = d("jmash-select"), _ = d("el-row"), O = d("el-date-picker"), $ = d("el-button"), H = d("el-form"), x = d("jmash-column-select"), W = d("jmash-table"), G = d("jmash-pagination"), J = d("el-card"), X = te("hasPerm");
171
+ return k(), N("div", fe, [
172
+ y("div", ce, [
173
+ l(H, {
174
+ ref_key: "queryFormRef",
175
+ ref: I,
176
+ model: s.value,
177
+ inline: !0,
178
+ "label-width": "6em"
179
+ }, {
180
+ default: n(() => [
181
+ l(_, null, {
182
+ default: n(() => [
183
+ l(r, { span: 6 }, {
184
+ default: n(() => [
185
+ l(f, {
186
+ label: t.$t("settleTradeAnalysis.agentName"),
187
+ prop: "agentCode"
188
+ }, {
189
+ default: n(() => [
190
+ l(g, {
191
+ modelValue: s.value.agentCode,
192
+ "onUpdate:modelValue": e[0] || (e[0] = (a) => s.value.agentCode = a),
193
+ data: o(T).agentBizDict.values,
194
+ "node-key": "value",
195
+ filterable: "",
196
+ clearable: "",
197
+ placeholder: t.$t("settleTradeAnalysis.agentCodeRead"),
198
+ class: "!w-[203px]"
199
+ }, null, 8, ["modelValue", "data", "placeholder"])
200
+ ]),
201
+ _: 1
202
+ }, 8, ["label"])
203
+ ]),
204
+ _: 1
205
+ }),
206
+ l(r, { span: 6 }, {
207
+ default: n(() => [
208
+ l(f, {
209
+ label: t.$t("settleTradeAnalysis.agentCodes"),
210
+ prop: "agentCode"
211
+ }, {
212
+ default: n(() => [
213
+ l(D, {
214
+ modelValue: s.value.agentCode,
215
+ "onUpdate:modelValue": e[1] || (e[1] = (a) => s.value.agentCode = a),
216
+ placeholder: t.$t("settleTradeAnalysis.agentCodesRead"),
217
+ onKeyup: e[2] || (e[2] = V((a) => o(m).handleQuery(), ["enter"])),
218
+ class: "!w-[203px]"
219
+ }, null, 8, ["modelValue", "placeholder"])
220
+ ]),
221
+ _: 1
222
+ }, 8, ["label"])
223
+ ]),
224
+ _: 1
225
+ }),
226
+ l(r, { span: 6 }, {
227
+ default: n(() => [
228
+ l(f, {
229
+ label: t.$t("payTrade.instsId"),
230
+ prop: "instsId"
231
+ }, {
232
+ default: n(() => [
233
+ l(L, {
234
+ modelValue: s.value.instsId,
235
+ "onUpdate:modelValue": e[3] || (e[3] = (a) => s.value.instsId = a),
236
+ placeholder: t.$t("settleTradeAnalysis.channelIdRead"),
237
+ data: o(T).instsBizDict.values,
238
+ onKeyup: e[4] || (e[4] = V((a) => o(m).handleQuery(), ["enter"])),
239
+ class: "!w-[203px]",
240
+ filterable: "",
241
+ clearable: ""
242
+ }, null, 8, ["modelValue", "placeholder", "data"])
243
+ ]),
244
+ _: 1
245
+ }, 8, ["label"])
246
+ ]),
247
+ _: 1
248
+ }),
249
+ l(r, { span: 6 }, {
250
+ default: n(() => [
251
+ l(f, {
252
+ label: t.$t("settleTradeAnalysis.likeMerchantNo"),
253
+ prop: "likeMerchantNo"
254
+ }, {
255
+ default: n(() => [
256
+ l(D, {
257
+ modelValue: s.value.likeMerchantNo,
258
+ "onUpdate:modelValue": e[5] || (e[5] = (a) => s.value.likeMerchantNo = a),
259
+ placeholder: t.$t("settleTradeAnalysis.likeMerchantNoRead"),
260
+ onKeyup: e[6] || (e[6] = V((a) => o(m).handleQuery(), ["enter"])),
261
+ class: "!w-[203px]"
262
+ }, null, 8, ["modelValue", "placeholder"])
263
+ ]),
264
+ _: 1
265
+ }, 8, ["label"])
266
+ ]),
267
+ _: 1
268
+ })
269
+ ]),
270
+ _: 1
271
+ }),
272
+ l(_, null, {
273
+ default: n(() => [
274
+ l(r, { span: 8 }, {
275
+ default: n(() => [
276
+ l(f, {
277
+ label: t.$t("settleTradeAnalysis.createTime"),
278
+ prop: "analysisTimeStart"
279
+ }, {
280
+ default: n(() => [
281
+ l(O, {
282
+ modelValue: u.value,
283
+ "onUpdate:modelValue": e[7] || (e[7] = (a) => u.value = a),
284
+ type: "daterange",
285
+ format: "YYYY-MM-DD",
286
+ "value-format": "YYYY-MM-DD",
287
+ "range-separator": "-",
288
+ "start-placeholder": t.$t("settleTradeAnalysis.analysisTimeStart"),
289
+ "end-placeholder": t.$t("settleTradeAnalysis.analysisTimeEnd"),
290
+ onChange: j,
291
+ "disabled-date": F,
292
+ onPick: U
293
+ }, null, 8, ["modelValue", "start-placeholder", "end-placeholder"])
294
+ ]),
295
+ _: 1
296
+ }, 8, ["label"])
297
+ ]),
298
+ _: 1
299
+ }),
300
+ l(r, { span: 16 }, {
301
+ default: n(() => [
302
+ l(f, { class: "search-btn" }, {
303
+ default: n(() => [
304
+ l($, {
305
+ type: "primary",
306
+ onClick: e[8] || (e[8] = (a) => o(m).handleQuery())
307
+ }, {
308
+ default: n(() => [
309
+ i(p(t.$t("common.search")), 1)
310
+ ]),
311
+ _: 1
312
+ }),
313
+ l($, {
314
+ onClick: e[9] || (e[9] = (a) => Q())
315
+ }, {
316
+ default: n(() => [
317
+ i(p(t.$t("common.reset")), 1)
318
+ ]),
319
+ _: 1
320
+ })
321
+ ]),
322
+ _: 1
323
+ })
324
+ ]),
325
+ _: 1
326
+ })
327
+ ]),
328
+ _: 1
329
+ })
330
+ ]),
331
+ _: 1
332
+ }, 8, ["model"]),
333
+ e[15] || (e[15] = y("div", { class: "clear" }, null, -1))
334
+ ]),
335
+ l(J, {
336
+ shadow: "never",
337
+ class: "table-container"
338
+ }, {
339
+ header: n(() => [
340
+ l(_, null, {
341
+ default: n(() => [
342
+ l(r, {
343
+ span: 24,
344
+ class: "container-float"
345
+ }, {
346
+ default: n(() => [
347
+ l(x, {
348
+ modelValue: o(b),
349
+ "onUpdate:modelValue": e[10] || (e[10] = (a) => M(b) ? b.value = a : b = a),
350
+ "label-name": "settle/settle-trade-analysis"
351
+ }, null, 8, ["modelValue"])
352
+ ]),
353
+ _: 1
354
+ })
355
+ ]),
356
+ _: 1
357
+ })
358
+ ]),
359
+ footer: n(() => [
360
+ o(v) > 0 ? (k(), ae(G, {
361
+ key: 0,
362
+ total: o(v),
363
+ "onUpdate:total": e[11] || (e[11] = (a) => M(v) ? v.value = a : null),
364
+ "current-page": s.value.curPage,
365
+ "onUpdate:currentPage": e[12] || (e[12] = (a) => s.value.curPage = a),
366
+ "page-size": s.value.pageSize,
367
+ "onUpdate:pageSize": e[13] || (e[13] = (a) => s.value.pageSize = a),
368
+ onPagination: e[14] || (e[14] = (a) => o(m).getList())
369
+ }, null, 8, ["total", "current-page", "page-size"])) : ne("", !0)
370
+ ]),
371
+ default: n(() => [
372
+ y("div", ge, [
373
+ l(_, { gutter: 20 }, {
374
+ default: n(() => [
375
+ l(r, { span: 5 }, {
376
+ default: n(() => [
377
+ e[16] || (e[16] = i(" 订单笔数: ")),
378
+ y("span", ye, p(o(C).totalOrderCount), 1),
379
+ e[17] || (e[17] = i(" 笔 "))
380
+ ]),
381
+ _: 1
382
+ }),
383
+ l(r, { span: 5 }, {
384
+ default: n(() => [
385
+ e[18] || (e[18] = i(" 订单金额: ")),
386
+ y("span", be, p(o(C).totalOrderAmount), 1),
387
+ e[19] || (e[19] = i(" 元 "))
388
+ ]),
389
+ _: 1
390
+ }),
391
+ l(r, { span: 5 }, {
392
+ default: n(() => [
393
+ e[20] || (e[20] = i(" 交易金额: ")),
394
+ y("span", Te, p(o(C).totalTradeAmount), 1),
395
+ e[21] || (e[21] = i(" 元 "))
396
+ ]),
397
+ _: 1
398
+ }),
399
+ l(r, { span: 5 }, {
400
+ default: n(() => [
401
+ e[22] || (e[22] = i(" 手续费: ")),
402
+ y("span", ve, p(o(C).totalFeeAmt), 1),
403
+ e[23] || (e[23] = i(" 元 "))
404
+ ]),
405
+ _: 1
406
+ })
407
+ ]),
408
+ _: 1
409
+ })
410
+ ]),
411
+ l(W, {
412
+ ref_key: "multipleTableRef",
413
+ ref: Y,
414
+ "row-key": "settleTradeAnalysisPk",
415
+ isSelection: !1,
416
+ "list-loading": o(E),
417
+ data: o(z),
418
+ "table-label": o(b),
419
+ onSelectionChange: K,
420
+ onSortChange: q
421
+ }, {
422
+ agentName: n((a) => [
423
+ i(p(o(T).agentBizDict.getValue(a.data.row.agentCode)), 1)
424
+ ]),
425
+ agentCode: n((a) => [
426
+ i(p(a.data.row.agentCode), 1)
427
+ ]),
428
+ operation: n((a) => [
429
+ le((k(), N("span", {
430
+ class: "el-button-color",
431
+ onClick: (_e) => B(a.data.row)
432
+ }, [
433
+ i(p(t.$t("settleTradeAnalysis.view")), 1)
434
+ ], 8, Ce)), [
435
+ [X, ["settle:settle_trade_analysis:view"]]
436
+ ])
437
+ ]),
438
+ _: 1
439
+ }, 8, ["list-loading", "data", "table-label"])
440
+ ]),
441
+ _: 1
442
+ })
443
+ ]);
444
+ };
445
+ }
446
+ });
447
+ export {
448
+ $e as default
449
+ };