xyvcard-settle 0.0.8 → 0.0.10

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