xyvcard-settle 0.0.3 → 0.0.5

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