xyvcard-settle 0.0.45 → 0.0.47

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.
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./history.vue_vue_type_script_setup_true_lang-BoqPcTMS.mjs";
1
+ import { _ as f } from "./history.vue_vue_type_script_setup_true_lang-DHKQSk8P.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -0,0 +1,371 @@
1
+ import { defineComponent as W, getCurrentInstance as G, ref as N, resolveComponent as d, createBlock as v, openBlock as T, withCtx as a, createVNode as t, createCommentVNode as V, withKeys as D, unref as l, withDirectives as J, normalizeClass as O, vShow as X, createTextVNode as b, toDisplayString as y, isRef as S } from "vue";
2
+ import { useI18n as Z } from "vue-i18n";
3
+ import { useRoute as ee } from "vue-router";
4
+ import { useUserStore as $, clearEmpty as te, request as ae, useTableHooks as le } from "jmash-core";
5
+ import { tokenExt as ne } from "xyvcard-agent";
6
+ import { g as oe } from "./agent-R-Ml-XTA.mjs";
7
+ import { D as c } from "./index-yz18Lhpm.mjs";
8
+ import { DateRange as re } from "xyvcard-insts";
9
+ class se {
10
+ getKey(m) {
11
+ return {
12
+ receiptId: m.receiptId
13
+ };
14
+ }
15
+ // 查询翻页信息划款信息查询-到账(历史)
16
+ findPage(m) {
17
+ const R = $().user.tenant;
18
+ return te(m), ae({
19
+ url: "/v1/settle/receipt/page/" + R,
20
+ method: "get",
21
+ params: m
22
+ });
23
+ }
24
+ }
25
+ const de = new se(), ge = /* @__PURE__ */ W({
26
+ __name: "history",
27
+ setup(I) {
28
+ const { t: m } = Z();
29
+ c.instsBizDict.useValues(), c.agentBizDict.useValues(), c.agentAgreeBizDict.useValues();
30
+ const M = ee().query.tenant, { proxy: z } = G(), o = N({
31
+ tokenExt: ne.getTokenExt($().user.tenant)
32
+ }), {
33
+ tableHooks: u,
34
+ multipleTableRef: A,
35
+ queryFormRef: Y,
36
+ listLoading: U,
37
+ tableData: j,
38
+ total: g
39
+ } = le(m, de, o);
40
+ let f = N([
41
+ // 序号
42
+ {
43
+ label: "settleTradeReceipt.index",
44
+ type: "index",
45
+ width: "60",
46
+ isColumn: !0
47
+ },
48
+ // 商户注册名称
49
+ {
50
+ label: "settleTradeReceipt.merchantName",
51
+ prop: "merchantName",
52
+ sortable: "custom",
53
+ minWidth: "200",
54
+ isColumn: !0
55
+ },
56
+ // 连锁号
57
+ {
58
+ label: "settleTradeReceipt.merchantNo",
59
+ prop: "merchantNo",
60
+ width: "190",
61
+ sortable: "custom",
62
+ isColumn: !0
63
+ },
64
+ // 划款时间
65
+ {
66
+ label: "settleTradeReceipt.transferMoneyDate",
67
+ prop: "transferMoneyDate",
68
+ slotName: "transferMoneyDate",
69
+ columnType: "slot",
70
+ width: "170",
71
+ sortable: "custom",
72
+ isColumn: !0
73
+ },
74
+ // 划款金额
75
+ {
76
+ label: "settleTradeReceipt.transferMoneyAmount",
77
+ prop: "transferMoneyAmount",
78
+ width: "120",
79
+ sortable: "custom",
80
+ isColumn: !0
81
+ },
82
+ // 手续费
83
+ {
84
+ label: "settleTradeReceipt.feeAmt",
85
+ prop: "feeAmt",
86
+ width: "120",
87
+ sortable: "custom",
88
+ isColumn: !0
89
+ },
90
+ // 到账状态
91
+ {
92
+ label: "settleTradeReceipt.transferMoneyStatusName",
93
+ prop: "transferMoneyStatusName",
94
+ width: "120",
95
+ sortable: "custom",
96
+ isColumn: !0
97
+ },
98
+ // 代理商编号
99
+ {
100
+ label: "settleTradeReceipt.agentName",
101
+ prop: "agentCode",
102
+ slotName: "agentCode",
103
+ columnType: "slot",
104
+ width: "200",
105
+ sortable: "custom",
106
+ isColumn: !0
107
+ },
108
+ // 失败原因
109
+ {
110
+ label: "settleTradeReceipt.chnlRespMsg",
111
+ prop: "chnlRespMsg",
112
+ width: "150",
113
+ sortable: "custom",
114
+ isColumn: !0
115
+ }
116
+ ]);
117
+ function B(r) {
118
+ u.selectionRows.value = r;
119
+ }
120
+ function E(r) {
121
+ u.handleSort(r.prop, r.order);
122
+ }
123
+ return u.getList(), (r, e) => {
124
+ const _ = d("el-input"), i = d("el-form-item"), p = d("el-col"), P = d("el-tree-select"), K = d("jmash-select"), w = d("el-button"), C = d("el-row"), Q = d("el-form"), q = d("jmash-column-select"), H = d("jmash-table"), L = d("jmash-pagination"), x = d("el-card"), F = d("el-tab-pane");
125
+ return T(), v(F, {
126
+ label: "历史到账流水",
127
+ name: "one"
128
+ }, {
129
+ default: a(() => [
130
+ t(Q, {
131
+ ref_key: "queryFormRef",
132
+ ref: Y,
133
+ model: o.value,
134
+ inline: !0,
135
+ "label-width": "6em"
136
+ }, {
137
+ default: a(() => [
138
+ t(C, null, {
139
+ default: a(() => {
140
+ var n, k;
141
+ return [
142
+ t(p, { span: 6 }, {
143
+ default: a(() => [
144
+ t(i, {
145
+ label: r.$t("settleTradeReceipt.likeMerchantName"),
146
+ prop: "likeMerchantName"
147
+ }, {
148
+ default: a(() => [
149
+ t(_, {
150
+ modelValue: o.value.likeMerchantName,
151
+ "onUpdate:modelValue": e[0] || (e[0] = (s) => o.value.likeMerchantName = s),
152
+ placeholder: r.$t("settleTradeReceipt.likeMerchantName"),
153
+ onKeyup: e[1] || (e[1] = D((s) => l(u).handleQuery(), ["enter"])),
154
+ class: "!w-[203px]"
155
+ }, null, 8, ["modelValue", "placeholder"])
156
+ ]),
157
+ _: 1
158
+ }, 8, ["label"])
159
+ ]),
160
+ _: 1
161
+ }),
162
+ t(p, { span: 6 }, {
163
+ default: a(() => [
164
+ t(i, {
165
+ label: r.$t("settleTradeReceipt.likeMerchantNo"),
166
+ prop: "likeMerchantNo"
167
+ }, {
168
+ default: a(() => [
169
+ t(_, {
170
+ modelValue: o.value.likeMerchantNo,
171
+ "onUpdate:modelValue": e[2] || (e[2] = (s) => o.value.likeMerchantNo = s),
172
+ placeholder: r.$t("settleTradeReceipt.likeMerchantNoRead"),
173
+ onKeyup: e[3] || (e[3] = D((s) => l(u).handleQuery(), ["enter"])),
174
+ class: "!w-[203px]"
175
+ }, null, 8, ["modelValue", "placeholder"])
176
+ ]),
177
+ _: 1
178
+ }, 8, ["label"])
179
+ ]),
180
+ _: 1
181
+ }),
182
+ (n = l(M)) != null && n.includes("@") ? V("", !0) : (T(), v(p, {
183
+ key: 0,
184
+ span: 6
185
+ }, {
186
+ default: a(() => [
187
+ t(i, {
188
+ label: r.$t("settleTradeAnalysis.agentName"),
189
+ prop: "agentCode"
190
+ }, {
191
+ default: a(() => [
192
+ t(P, {
193
+ modelValue: o.value.agentCode,
194
+ "onUpdate:modelValue": e[4] || (e[4] = (s) => o.value.agentCode = s),
195
+ data: l(c).agentBizDict.values,
196
+ "node-key": "value",
197
+ filterable: "",
198
+ clearable: "",
199
+ placeholder: r.$t("settleTradeAnalysis.agentCodeRead"),
200
+ class: "!w-[203px]"
201
+ }, null, 8, ["modelValue", "data", "placeholder"])
202
+ ]),
203
+ _: 1
204
+ }, 8, ["label"])
205
+ ]),
206
+ _: 1
207
+ })),
208
+ t(p, { span: 6 }, {
209
+ default: a(() => [
210
+ t(i, {
211
+ label: r.$t("settleTradeAnalysis.channelId"),
212
+ prop: "instsId"
213
+ }, {
214
+ default: a(() => [
215
+ t(K, {
216
+ modelValue: o.value.instsId,
217
+ "onUpdate:modelValue": e[5] || (e[5] = (s) => o.value.instsId = s),
218
+ placeholder: r.$t("settleTradeAnalysis.channelIdRead"),
219
+ data: l(c).instsBizDict.values,
220
+ onKeyup: e[6] || (e[6] = D((s) => l(u).handleQuery(), ["enter"])),
221
+ class: "!w-[203px]",
222
+ filterable: "",
223
+ clearable: ""
224
+ }, null, 8, ["modelValue", "placeholder", "data"])
225
+ ]),
226
+ _: 1
227
+ }, 8, ["label"])
228
+ ]),
229
+ _: 1
230
+ }),
231
+ t(p, { span: 6 }, {
232
+ default: a(() => [
233
+ t(i, {
234
+ label: r.$t("settleTradeReceipt.createTime"),
235
+ prop: "transferMoneyDateStart"
236
+ }, {
237
+ default: a(() => {
238
+ var s;
239
+ return [
240
+ t(l(re), {
241
+ "start-time": o.value.transferMoneyDateStart,
242
+ "onUpdate:startTime": e[7] || (e[7] = (h) => o.value.transferMoneyDateStart = h),
243
+ "end-time": o.value.transferMoneyDateEnd,
244
+ "onUpdate:endTime": e[8] || (e[8] = (h) => o.value.transferMoneyDateEnd = h),
245
+ format: "YYYY-MM-DD",
246
+ "value-format": "YYYY-MM-DD",
247
+ "range-separator": "-",
248
+ "start-placeholder": r.$t("settleTradeReceipt.transferMoneyDateStart"),
249
+ "end-placeholder": r.$t("settleTradeReceipt.transferMoneyDateEnd"),
250
+ class: O(((s = l(M)) == null ? void 0 : s.includes("@")) && "!w-[203px]")
251
+ }, null, 8, ["start-time", "end-time", "start-placeholder", "end-placeholder", "class"])
252
+ ];
253
+ }),
254
+ _: 1
255
+ }, 8, ["label"]),
256
+ J(t(i, { prop: "transferMoneyDateEnd" }, null, 512), [
257
+ [X, !1]
258
+ ])
259
+ ]),
260
+ _: 1
261
+ }),
262
+ t(p, {
263
+ span: (k = l(M)) != null && k.includes("@") ? 24 : 18
264
+ }, {
265
+ default: a(() => [
266
+ t(i, { class: "search-btn" }, {
267
+ default: a(() => [
268
+ t(w, {
269
+ type: "primary",
270
+ onClick: e[9] || (e[9] = (s) => l(u).handleQuery())
271
+ }, {
272
+ default: a(() => [
273
+ b(y(r.$t("common.search")), 1)
274
+ ]),
275
+ _: 1
276
+ }),
277
+ t(w, {
278
+ onClick: e[10] || (e[10] = (s) => l(u).resetQuery())
279
+ }, {
280
+ default: a(() => [
281
+ b(y(r.$t("common.reset")), 1)
282
+ ]),
283
+ _: 1
284
+ })
285
+ ]),
286
+ _: 1
287
+ })
288
+ ]),
289
+ _: 1
290
+ }, 8, ["span"])
291
+ ];
292
+ }),
293
+ _: 1
294
+ })
295
+ ]),
296
+ _: 1
297
+ }, 8, ["model"]),
298
+ t(x, {
299
+ shadow: "never",
300
+ class: "table-container"
301
+ }, {
302
+ header: a(() => [
303
+ t(C, null, {
304
+ default: a(() => [
305
+ t(p, {
306
+ span: 24,
307
+ class: "container-float"
308
+ }, {
309
+ default: a(() => [
310
+ t(q, {
311
+ modelValue: l(f),
312
+ "onUpdate:modelValue": e[11] || (e[11] = (n) => S(f) ? f.value = n : f = n),
313
+ "label-name": "settle/settle-trade-receipt"
314
+ }, null, 8, ["modelValue"])
315
+ ]),
316
+ _: 1
317
+ })
318
+ ]),
319
+ _: 1
320
+ })
321
+ ]),
322
+ footer: a(() => [
323
+ l(g) > 0 ? (T(), v(L, {
324
+ key: 0,
325
+ total: l(g),
326
+ "onUpdate:total": e[12] || (e[12] = (n) => S(g) ? g.value = n : null),
327
+ "current-page": o.value.curPage,
328
+ "onUpdate:currentPage": e[13] || (e[13] = (n) => o.value.curPage = n),
329
+ "page-size": o.value.pageSize,
330
+ "onUpdate:pageSize": e[14] || (e[14] = (n) => o.value.pageSize = n),
331
+ onPagination: e[15] || (e[15] = (n) => l(u).getList())
332
+ }, null, 8, ["total", "current-page", "page-size"])) : V("", !0)
333
+ ]),
334
+ default: a(() => [
335
+ t(H, {
336
+ ref_key: "multipleTableRef",
337
+ ref: A,
338
+ "row-key": "receiptId",
339
+ isSelection: !1,
340
+ "list-loading": l(U),
341
+ data: l(j),
342
+ "table-label": l(f),
343
+ onSelectionChange: B,
344
+ onSortChange: E
345
+ }, {
346
+ instsId: a((n) => [
347
+ b(y(l(c).instsBizDict.getValue(n.data.row.instsId)), 1)
348
+ ]),
349
+ transferMoneyDate: a((n) => [
350
+ b(y(l(z).$moment.formatDate(
351
+ n.data.row.transferMoneyDate + " " + n.data.row.transferMoneyTime,
352
+ "YYYY-MM-DD HH:mm:ss"
353
+ )), 1)
354
+ ]),
355
+ agentCode: a((n) => [
356
+ b(y(l(oe)(n.data.row.agentCode)), 1)
357
+ ]),
358
+ _: 1
359
+ }, 8, ["list-loading", "data", "table-label"])
360
+ ]),
361
+ _: 1
362
+ })
363
+ ]),
364
+ _: 1
365
+ });
366
+ };
367
+ }
368
+ });
369
+ export {
370
+ ge as _
371
+ };