xyvcard-settle 0.0.1

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 (54) hide show
  1. package/README.md +51 -0
  2. package/dist/_plugin-vue_export-helper-CHgC5LLL-BmOybl0N.mjs +9 -0
  3. package/dist/config-R2xCEQim-DIKcGx0K.mjs +1914 -0
  4. package/dist/constant-CRJQFGuS.mjs +13 -0
  5. package/dist/free-DaGOIXVI-B4EUrY1S.mjs +82 -0
  6. package/dist/history-BI8tBxQK.mjs +4 -0
  7. package/dist/history.vue_vue_type_script_setup_true_lang-Bt76Bf2d.mjs +357 -0
  8. package/dist/index-BIkG_C6y.mjs +576 -0
  9. package/dist/index-BOfabDwA.mjs +430 -0
  10. package/dist/index-BtIY2iCq-Lnfhe6EF.mjs +10 -0
  11. package/dist/index-C0VdCZ5o-BNScagBV.mjs +4699 -0
  12. package/dist/index-D0t5a2Ea.mjs +508 -0
  13. package/dist/index-D1OlL970.mjs +49 -0
  14. package/dist/index-DAOhjHwC-Czfft2rT.mjs +66 -0
  15. package/dist/index-Du5bhBaC.mjs +9532 -0
  16. package/dist/index-iRoYfjIt-BqHR0buV.mjs +46 -0
  17. package/dist/index.mjs +99 -0
  18. package/dist/info-B9D5Y0O1-DEwKlMld.mjs +564 -0
  19. package/dist/info-Crc5gYV2-DBeit1HQ.mjs +1257 -0
  20. package/dist/info-DGVdsQCx-CKD7-DIe.mjs +160 -0
  21. package/dist/info-DzkZlnCT-BybQZHaY.mjs +139 -0
  22. package/dist/info-JTzVjKGk-DYLiAYjO.mjs +237 -0
  23. package/dist/product-BJX8VysN-D3xaS1Fd.mjs +731 -0
  24. package/dist/today-CP9UcD78.mjs +4 -0
  25. package/dist/today.vue_vue_type_script_setup_true_lang-TJfZj_xB.mjs +349 -0
  26. package/dts/src/App.vue.d.ts +2 -0
  27. package/dts/src/api/settle/dict.d.ts +13 -0
  28. package/dts/src/api/settle/index.d.ts +10 -0
  29. package/dts/src/api/settle/pay-trade/index.d.ts +8 -0
  30. package/dts/src/api/settle/pay-trade/types.d.ts +81 -0
  31. package/dts/src/api/settle/settle-trade-analysis/index.d.ts +8 -0
  32. package/dts/src/api/settle/settle-trade-analysis/types.d.ts +53 -0
  33. package/dts/src/api/settle/settle-trade-merchant/index.d.ts +8 -0
  34. package/dts/src/api/settle/settle-trade-merchant/types.d.ts +65 -0
  35. package/dts/src/api/settle/settle-trade-receipt/index.d.ts +8 -0
  36. package/dts/src/api/settle/settle-trade-receipt/types.d.ts +62 -0
  37. package/dts/src/api/settle/settle-trade-receipt-today/index.d.ts +8 -0
  38. package/dts/src/api/settle/settle-trade-receipt-today/types.d.ts +62 -0
  39. package/dts/src/constant.d.ts +6 -0
  40. package/dts/src/index.d.ts +5 -0
  41. package/dts/src/lang/index.d.ts +1 -0
  42. package/dts/src/lang/settle/en.d.ts +0 -0
  43. package/dts/src/lang/settle/zh-cn.d.ts +82 -0
  44. package/dts/src/main.d.ts +4 -0
  45. package/dts/src/permission.d.ts +1 -0
  46. package/dts/src/utils/returnBizLay.d.ts +2 -0
  47. package/dts/src/utils/timePlugin.d.ts +5 -0
  48. package/dts/src/views/payment/pay-trade/index.vue.d.ts +2 -0
  49. package/dts/src/views/payment/settle-trade-analysis/index.vue.d.ts +2 -0
  50. package/dts/src/views/payment/settle-trade-merchant/index.vue.d.ts +2 -0
  51. package/dts/src/views/payment/settle-trade-receipt/history.vue.d.ts +2 -0
  52. package/dts/src/views/payment/settle-trade-receipt/index.vue.d.ts +2 -0
  53. package/dts/src/views/payment/settle-trade-receipt/today.vue.d.ts +2 -0
  54. package/package.json +61 -0
@@ -0,0 +1,430 @@
1
+ import { defineComponent as W, getCurrentInstance as X, ref as h, resolveComponent as r, resolveDirective as Z, createElementBlock as D, openBlock as A, createElementVNode as c, createVNode as t, withCtx as l, unref as o, withKeys as w, createTextVNode as d, toDisplayString as m, withDirectives as x, createBlock as ee, createCommentVNode as te, isRef as R } from "vue";
2
+ import { useUserStore as le, clearEmpty as ae, request as ne, useTableHooks as oe } from "jmash-core";
3
+ import { useI18n as se } from "vue-i18n";
4
+ import { D as y } from "./index-Du5bhBaC.mjs";
5
+ import { C as S } from "./constant-CRJQFGuS.mjs";
6
+ import { useRouter as re } from "vue-router";
7
+ class de {
8
+ getKey(p) {
9
+ return {
10
+ analysisTime: p.analysisTime,
11
+ channelId: p.channelId
12
+ };
13
+ }
14
+ // 查询翻页信息支付交易汇总统计;
15
+ findPage(p) {
16
+ const T = le().user.tenant;
17
+ return ae(p), ne({
18
+ url: "/v1/settle/analysis/agent/page/" + T,
19
+ method: "get",
20
+ params: p
21
+ });
22
+ }
23
+ }
24
+ const ue = new de(), ie = { class: "app-container" }, me = { class: "search-container" }, pe = { class: "total-num" }, ce = { class: "blue_color" }, fe = { class: "blue_color" }, ye = { class: "blue_color" }, be = { class: "blue_color" }, ge = ["onClick"], Ve = /* @__PURE__ */ W({
25
+ __name: "index",
26
+ setup(I) {
27
+ const { t: p } = se();
28
+ y.agentBizDict.useValues(), y.channelBizDict.useValues();
29
+ const T = re();
30
+ console.log(y.channelBizDict.values, "=>channelBizDict ");
31
+ const { proxy: V } = X(), s = h({}), {
32
+ tableHooks: i,
33
+ multipleTableRef: M,
34
+ queryFormRef: N,
35
+ listLoading: z,
36
+ tableData: P,
37
+ total: C
38
+ } = oe(p, ue, s);
39
+ let v = i.totalRecord;
40
+ const b = h([]);
41
+ function B(n) {
42
+ b.value = n, b.value.length === 2 && (s.value.analysisTimeStart = V.$moment.formatDate(
43
+ n[0],
44
+ S.RPC_FORMAT_TIME
45
+ ), s.value.analysisTimeEnd = V.$moment.formatDate(
46
+ n[1],
47
+ S.RPC_FORMAT_TIME
48
+ ));
49
+ }
50
+ let g = h([
51
+ // 序号
52
+ {
53
+ label: "序号",
54
+ type: "index",
55
+ width: "60",
56
+ isColumn: !0
57
+ },
58
+ // 代理商号
59
+ {
60
+ label: "settleTradeAnalysis.agentCodes",
61
+ prop: "agentCode",
62
+ width: "120",
63
+ sortable: "custom",
64
+ isColumn: !0
65
+ },
66
+ // 代理商名称
67
+ {
68
+ label: "settleTradeAnalysis.agentCode",
69
+ prop: "agentCode",
70
+ slotName: "agentCode",
71
+ columnType: "slot",
72
+ width: "150",
73
+ sortable: "custom",
74
+ isColumn: !0
75
+ },
76
+ // 渠道
77
+ {
78
+ label: "settleTradeAnalysis.channelId",
79
+ prop: "channelId",
80
+ width: "150",
81
+ sortable: "custom",
82
+ isColumn: !0
83
+ },
84
+ // 商户数
85
+ {
86
+ label: "settleTradeAnalysis.merchantNum",
87
+ prop: "merchantNum",
88
+ width: "100",
89
+ sortable: "custom",
90
+ isColumn: !0
91
+ },
92
+ // 交易笔数
93
+ {
94
+ label: "settleTradeAnalysis.orderCount",
95
+ prop: "orderCount",
96
+ width: "110",
97
+ sortable: "custom",
98
+ isColumn: !0
99
+ },
100
+ // 交易总额
101
+ {
102
+ label: "settleTradeAnalysis.orderAmount",
103
+ prop: "orderAmount",
104
+ width: "110",
105
+ sortable: "custom",
106
+ isColumn: !0
107
+ },
108
+ // 结算金额
109
+ {
110
+ label: "settleTradeAnalysis.settleAmount",
111
+ prop: "settleAmount",
112
+ width: "110",
113
+ sortable: "custom",
114
+ isColumn: !0
115
+ },
116
+ // 手续费
117
+ {
118
+ label: "settleTradeAnalysis.feeAmt",
119
+ prop: "feeAmt",
120
+ width: "100",
121
+ sortable: "custom",
122
+ isColumn: !0
123
+ },
124
+ // 交易时间
125
+ {
126
+ label: "settleTradeAnalysis.analysisTime",
127
+ prop: "analysisTime",
128
+ width: "120",
129
+ sortable: "custom",
130
+ isColumn: !0
131
+ },
132
+ {
133
+ label: "common.operate",
134
+ width: "100",
135
+ slotName: "operation",
136
+ columnType: "slot",
137
+ fixed: "right",
138
+ isColumn: !0
139
+ }
140
+ ]);
141
+ function U(n) {
142
+ T.push({
143
+ path: "/payment/pay-trade",
144
+ query: {
145
+ agentCode: n.agentCode
146
+ }
147
+ });
148
+ }
149
+ function j() {
150
+ b.value = [], i.resetQuery();
151
+ }
152
+ function E(n) {
153
+ i.selectionRows.value = n;
154
+ }
155
+ function Y(n) {
156
+ i.handleSort(n.prop, n.order);
157
+ }
158
+ return i.getList(), (n, e) => {
159
+ const Q = r("el-tree-select"), f = r("el-form-item"), u = r("el-col"), k = r("el-input"), F = r("jmash-select"), _ = r("el-row"), K = r("el-date-picker"), $ = r("el-button"), q = r("el-form"), L = r("jmash-column-select"), O = r("jmash-table"), H = r("jmash-pagination"), G = r("el-card"), J = Z("hasPerm");
160
+ return A(), D("div", ie, [
161
+ c("div", me, [
162
+ t(q, {
163
+ ref_key: "queryFormRef",
164
+ ref: N,
165
+ model: s.value,
166
+ inline: !0
167
+ }, {
168
+ default: l(() => [
169
+ t(_, null, {
170
+ default: l(() => [
171
+ t(u, { span: 6 }, {
172
+ default: l(() => [
173
+ t(f, {
174
+ label: n.$t("settleTradeAnalysis.agentCode"),
175
+ prop: "agentCode"
176
+ }, {
177
+ default: l(() => [
178
+ t(Q, {
179
+ modelValue: s.value.agentCode,
180
+ "onUpdate:modelValue": e[0] || (e[0] = (a) => s.value.agentCode = a),
181
+ data: o(y).agentBizDict.values,
182
+ "node-key": "value",
183
+ filterable: "",
184
+ clearable: "",
185
+ placeholder: n.$t("settleTradeAnalysis.agentCodeRead")
186
+ }, null, 8, ["modelValue", "data", "placeholder"])
187
+ ]),
188
+ _: 1
189
+ }, 8, ["label"])
190
+ ]),
191
+ _: 1
192
+ }),
193
+ t(u, { span: 6 }, {
194
+ default: l(() => [
195
+ t(f, {
196
+ label: n.$t("settleTradeAnalysis.agentCodes"),
197
+ prop: "agentCode"
198
+ }, {
199
+ default: l(() => [
200
+ t(k, {
201
+ modelValue: s.value.agentCode,
202
+ "onUpdate:modelValue": e[1] || (e[1] = (a) => s.value.agentCode = a),
203
+ placeholder: n.$t("settleTradeAnalysis.agentCodesRead"),
204
+ onKeyup: e[2] || (e[2] = w((a) => o(i).handleQuery(), ["enter"])),
205
+ class: "!w-[203px]"
206
+ }, null, 8, ["modelValue", "placeholder"])
207
+ ]),
208
+ _: 1
209
+ }, 8, ["label"])
210
+ ]),
211
+ _: 1
212
+ }),
213
+ t(u, { span: 6 }, {
214
+ default: l(() => [
215
+ t(f, {
216
+ label: n.$t("settleTradeAnalysis.channelId"),
217
+ prop: "channelId"
218
+ }, {
219
+ default: l(() => [
220
+ t(F, {
221
+ modelValue: s.value.channelId,
222
+ "onUpdate:modelValue": e[3] || (e[3] = (a) => s.value.channelId = a),
223
+ placeholder: n.$t("settleTradeAnalysis.channelIdRead"),
224
+ data: o(y).channelBizDict.values,
225
+ onKeyup: e[4] || (e[4] = w((a) => o(i).handleQuery(), ["enter"])),
226
+ class: "!w-[203px]",
227
+ filterable: "",
228
+ clearable: ""
229
+ }, null, 8, ["modelValue", "placeholder", "data"])
230
+ ]),
231
+ _: 1
232
+ }, 8, ["label"])
233
+ ]),
234
+ _: 1
235
+ }),
236
+ t(u, { span: 6 }, {
237
+ default: l(() => [
238
+ t(f, {
239
+ label: n.$t("settleTradeAnalysis.likeMerchantNo"),
240
+ prop: "likeMerchantNo"
241
+ }, {
242
+ default: l(() => [
243
+ t(k, {
244
+ modelValue: s.value.likeMerchantNo,
245
+ "onUpdate:modelValue": e[5] || (e[5] = (a) => s.value.likeMerchantNo = a),
246
+ placeholder: n.$t("settleTradeAnalysis.likeMerchantNoRead"),
247
+ onKeyup: e[6] || (e[6] = w((a) => o(i).handleQuery(), ["enter"])),
248
+ class: "!w-[203px]"
249
+ }, null, 8, ["modelValue", "placeholder"])
250
+ ]),
251
+ _: 1
252
+ }, 8, ["label"])
253
+ ]),
254
+ _: 1
255
+ })
256
+ ]),
257
+ _: 1
258
+ }),
259
+ t(_, null, {
260
+ default: l(() => [
261
+ t(u, { span: 6 }, {
262
+ default: l(() => [
263
+ t(f, {
264
+ label: n.$t("settleTradeAnalysis.createTime"),
265
+ prop: "analysisTimeStart"
266
+ }, {
267
+ default: l(() => [
268
+ t(K, {
269
+ modelValue: b.value,
270
+ "onUpdate:modelValue": e[7] || (e[7] = (a) => b.value = a),
271
+ type: "daterange",
272
+ format: "YYYY-MM-DD",
273
+ "value-format": "YYYY-MM-DD",
274
+ "range-separator": "-",
275
+ "start-placeholder": n.$t("settleTradeAnalysis.analysisTimeStart"),
276
+ "end-placeholder": n.$t("settleTradeAnalysis.analysisTimeEnd"),
277
+ onChange: B
278
+ }, null, 8, ["modelValue", "start-placeholder", "end-placeholder"])
279
+ ]),
280
+ _: 1
281
+ }, 8, ["label"])
282
+ ]),
283
+ _: 1
284
+ }),
285
+ t(u, { span: 18 }, {
286
+ default: l(() => [
287
+ t(f, { class: "search-btn" }, {
288
+ default: l(() => [
289
+ t($, {
290
+ type: "primary",
291
+ onClick: e[8] || (e[8] = (a) => o(i).handleQuery())
292
+ }, {
293
+ default: l(() => [
294
+ d(m(n.$t("common.search")), 1)
295
+ ]),
296
+ _: 1
297
+ }),
298
+ t($, {
299
+ onClick: e[9] || (e[9] = (a) => j())
300
+ }, {
301
+ default: l(() => [
302
+ d(m(n.$t("common.reset")), 1)
303
+ ]),
304
+ _: 1
305
+ })
306
+ ]),
307
+ _: 1
308
+ })
309
+ ]),
310
+ _: 1
311
+ })
312
+ ]),
313
+ _: 1
314
+ })
315
+ ]),
316
+ _: 1
317
+ }, 8, ["model"]),
318
+ e[15] || (e[15] = c("div", { class: "clear" }, null, -1))
319
+ ]),
320
+ t(G, {
321
+ shadow: "never",
322
+ class: "table-container"
323
+ }, {
324
+ header: l(() => [
325
+ t(_, null, {
326
+ default: l(() => [
327
+ t(u, {
328
+ span: 24,
329
+ class: "container-float"
330
+ }, {
331
+ default: l(() => [
332
+ t(L, {
333
+ modelValue: o(g),
334
+ "onUpdate:modelValue": e[10] || (e[10] = (a) => R(g) ? g.value = a : g = a),
335
+ "label-name": "settle/settle-trade-analysis"
336
+ }, null, 8, ["modelValue"])
337
+ ]),
338
+ _: 1
339
+ })
340
+ ]),
341
+ _: 1
342
+ })
343
+ ]),
344
+ footer: l(() => [
345
+ o(C) > 0 ? (A(), ee(H, {
346
+ key: 0,
347
+ total: o(C),
348
+ "onUpdate:total": e[11] || (e[11] = (a) => R(C) ? C.value = a : null),
349
+ "current-page": s.value.curPage,
350
+ "onUpdate:currentPage": e[12] || (e[12] = (a) => s.value.curPage = a),
351
+ "page-size": s.value.pageSize,
352
+ "onUpdate:pageSize": e[13] || (e[13] = (a) => s.value.pageSize = a),
353
+ onPagination: e[14] || (e[14] = (a) => o(i).getList())
354
+ }, null, 8, ["total", "current-page", "page-size"])) : te("", !0)
355
+ ]),
356
+ default: l(() => [
357
+ c("div", pe, [
358
+ t(_, { gutter: 20 }, {
359
+ default: l(() => [
360
+ t(u, { span: 4 }, {
361
+ default: l(() => [
362
+ e[16] || (e[16] = d(" 总交易笔数: ")),
363
+ c("span", ce, m(o(v).totalOrderCount), 1),
364
+ e[17] || (e[17] = d(" 元 "))
365
+ ]),
366
+ _: 1
367
+ }),
368
+ t(u, { span: 4 }, {
369
+ default: l(() => [
370
+ e[18] || (e[18] = d(" 总交易金额: ")),
371
+ c("span", fe, m(o(v).totalOrderAmount), 1),
372
+ e[19] || (e[19] = d(" 元 "))
373
+ ]),
374
+ _: 1
375
+ }),
376
+ t(u, { span: 4 }, {
377
+ default: l(() => [
378
+ e[20] || (e[20] = d(" 手续费: ")),
379
+ c("span", ye, m(o(v).totalFeeAmt), 1),
380
+ e[21] || (e[21] = d(" 元 "))
381
+ ]),
382
+ _: 1
383
+ }),
384
+ t(u, { span: 4 }, {
385
+ default: l(() => [
386
+ e[22] || (e[22] = d(" 结算金额: ")),
387
+ c("span", be, m(o(v).totalSettleAmount), 1),
388
+ e[23] || (e[23] = d(" 元 "))
389
+ ]),
390
+ _: 1
391
+ })
392
+ ]),
393
+ _: 1
394
+ })
395
+ ]),
396
+ t(O, {
397
+ ref_key: "multipleTableRef",
398
+ ref: M,
399
+ "row-key": "settleTradeAnalysisPk",
400
+ "list-loading": o(z),
401
+ data: o(P),
402
+ "table-label": o(g),
403
+ onSelectionChange: E,
404
+ onSortChange: Y
405
+ }, {
406
+ agentCode: l((a) => [
407
+ d(m(o(y).agentBizDict.getValue(a.data.row.agentCode)), 1)
408
+ ]),
409
+ operation: l((a) => [
410
+ x((A(), D("span", {
411
+ class: "el-button-color",
412
+ onClick: (Ce) => U(a.data.row)
413
+ }, [
414
+ d(m(n.$t("settleTradeAnalysis.view")), 1)
415
+ ], 8, ge)), [
416
+ [J, ["settle:settle_trade_analysis:view"]]
417
+ ])
418
+ ]),
419
+ _: 1
420
+ }, 8, ["list-loading", "data", "table-label"])
421
+ ]),
422
+ _: 1
423
+ })
424
+ ]);
425
+ };
426
+ }
427
+ });
428
+ export {
429
+ Ve as default
430
+ };
@@ -0,0 +1,10 @@
1
+ import { createElementBlock as o, openBlock as e } from "vue";
2
+ import { z as t } from "./index-Du5bhBaC.mjs";
3
+ const n = {};
4
+ function r(c, l) {
5
+ return e(), o("div", null, " 首页 ");
6
+ }
7
+ const f = /* @__PURE__ */ t(n, [["render", r]]);
8
+ export {
9
+ f as default
10
+ };