xyvcard-settle 0.0.8 → 0.0.9

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-D9zNqYoH.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -0,0 +1,379 @@
1
+ import { defineComponent as G, getCurrentInstance as J, ref as v, resolveComponent as s, createElementBlock as W, openBlock as _, createVNode as t, withCtx as l, createBlock as V, createCommentVNode as $, withKeys as y, unref as r, createTextVNode as g, toDisplayString as h, isRef as D } from "vue";
2
+ import { useUserStore as X, clearEmpty as Z, request as ee, useTableHooks as te } from "jmash-core";
3
+ import { useI18n as le } from "vue-i18n";
4
+ import { D as C, C as I } from "./index-DY4QrfnW.mjs";
5
+ import { useRoute as ae } from "vue-router";
6
+ class ne {
7
+ getKey(i) {
8
+ return {
9
+ receiptId: i.receiptId
10
+ };
11
+ }
12
+ // 查询翻页信息划款信息查询-到账
13
+ findPage(i) {
14
+ const k = X().user.tenant;
15
+ return Z(i), ee({
16
+ url: "/v1/settle/receipt/page/" + k,
17
+ method: "get",
18
+ params: i
19
+ });
20
+ }
21
+ }
22
+ const oe = new ne(), re = { class: "app-container" }, me = /* @__PURE__ */ G({
23
+ __name: "history",
24
+ setup(N) {
25
+ const { t: i } = le();
26
+ C.instsBizDict.useValues();
27
+ const S = ae().query.tenant, { proxy: T } = J(), Y = localStorage.getItem("tokenExt"), o = v({
28
+ tokenExt: Y ?? ""
29
+ }), c = v([]);
30
+ function A(a) {
31
+ c.value = a, c.value.length === 2 && (o.value.transferMoneyDateStart = T.$moment.formatDate(
32
+ a[0],
33
+ I.RPC_FORMAT_TIME
34
+ ), o.value.transferMoneyDateEnd = T.$moment.formatDate(
35
+ a[1],
36
+ I.RPC_FORMAT_TIME
37
+ ));
38
+ }
39
+ const {
40
+ tableHooks: d,
41
+ multipleTableRef: E,
42
+ queryFormRef: U,
43
+ listLoading: j,
44
+ tableData: z,
45
+ total: b
46
+ } = te(i, oe, o);
47
+ let f = v([
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 P() {
140
+ c.value = [], d.resetQuery();
141
+ }
142
+ function Q(a) {
143
+ d.selectionRows.value = a;
144
+ }
145
+ function B(a) {
146
+ d.handleSort(a.prop, a.order);
147
+ }
148
+ return d.getList(), (a, e) => {
149
+ const R = s("el-input"), m = s("el-form-item"), p = s("el-col"), K = s("jmash-select"), M = s("el-row"), q = s("el-date-picker"), w = s("el-button"), F = s("el-form"), H = s("jmash-column-select"), L = s("jmash-table"), O = s("jmash-pagination"), x = s("el-card");
150
+ return _(), W("div", re, [
151
+ t(F, {
152
+ ref_key: "queryFormRef",
153
+ ref: U,
154
+ model: o.value,
155
+ inline: !0
156
+ }, {
157
+ default: l(() => [
158
+ t(M, 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(R, {
170
+ modelValue: o.value.likeMerchantName,
171
+ "onUpdate:modelValue": e[0] || (e[0] = (u) => o.value.likeMerchantName = u),
172
+ placeholder: a.$t("settleTradeReceipt.likeMerchantName"),
173
+ onKeyup: e[1] || (e[1] = y((u) => r(d).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(R, {
190
+ modelValue: o.value.likeMerchantNo,
191
+ "onUpdate:modelValue": e[2] || (e[2] = (u) => o.value.likeMerchantNo = u),
192
+ placeholder: a.$t("settleTradeReceipt.likeMerchantNoRead"),
193
+ onKeyup: e[3] || (e[3] = y((u) => r(d).handleQuery(), ["enter"])),
194
+ class: "!w-[203px]"
195
+ }, null, 8, ["modelValue", "placeholder"])
196
+ ]),
197
+ _: 1
198
+ }, 8, ["label"])
199
+ ]),
200
+ _: 1
201
+ }),
202
+ (n = r(S)) != null && n.includes("@") ? $("", !0) : (_(), V(p, {
203
+ key: 0,
204
+ span: 6
205
+ }, {
206
+ default: l(() => [
207
+ t(m, {
208
+ label: a.$t("settleTradeReceipt.agentCode"),
209
+ prop: "agentCode"
210
+ }, {
211
+ default: l(() => [
212
+ t(R, {
213
+ modelValue: o.value.agentCode,
214
+ "onUpdate:modelValue": e[4] || (e[4] = (u) => o.value.agentCode = u),
215
+ placeholder: a.$t("settleTradeReceipt.agentCodeRead"),
216
+ onKeyup: e[5] || (e[5] = y((u) => r(d).handleQuery(), ["enter"])),
217
+ class: "!w-[203px]"
218
+ }, null, 8, ["modelValue", "placeholder"])
219
+ ]),
220
+ _: 1
221
+ }, 8, ["label"])
222
+ ]),
223
+ _: 1
224
+ })),
225
+ t(p, { span: 6 }, {
226
+ default: l(() => [
227
+ t(m, {
228
+ label: a.$t("settleTradeAnalysis.channelId"),
229
+ prop: "channelId"
230
+ }, {
231
+ default: l(() => [
232
+ t(K, {
233
+ modelValue: o.value.channelId,
234
+ "onUpdate:modelValue": e[6] || (e[6] = (u) => o.value.channelId = u),
235
+ placeholder: a.$t("settleTradeAnalysis.channelIdRead"),
236
+ data: r(C).instsBizDict.values,
237
+ onKeyup: e[7] || (e[7] = y((u) => r(d).handleQuery(), ["enter"])),
238
+ class: "!w-[203px]",
239
+ filterable: "",
240
+ clearable: ""
241
+ }, null, 8, ["modelValue", "placeholder", "data"])
242
+ ]),
243
+ _: 1
244
+ }, 8, ["label"])
245
+ ]),
246
+ _: 1
247
+ })
248
+ ];
249
+ }),
250
+ _: 1
251
+ }),
252
+ t(M, null, {
253
+ default: l(() => [
254
+ t(p, { span: 6 }, {
255
+ default: l(() => [
256
+ t(m, {
257
+ label: a.$t("settleTradeReceipt.createTime"),
258
+ prop: "analysisTimeStart"
259
+ }, {
260
+ default: l(() => [
261
+ t(q, {
262
+ modelValue: c.value,
263
+ "onUpdate:modelValue": e[8] || (e[8] = (n) => c.value = n),
264
+ type: "daterange",
265
+ format: "YYYY-MM-DD",
266
+ "value-format": "YYYY-MM-DD",
267
+ "range-separator": "-",
268
+ "start-placeholder": a.$t("settleTradeReceipt.transferMoneyDateStart"),
269
+ "end-placeholder": a.$t("settleTradeReceipt.transferMoneyDateEnd"),
270
+ onChange: A
271
+ }, null, 8, ["modelValue", "start-placeholder", "end-placeholder"])
272
+ ]),
273
+ _: 1
274
+ }, 8, ["label"])
275
+ ]),
276
+ _: 1
277
+ }),
278
+ t(p, { span: 18 }, {
279
+ default: l(() => [
280
+ t(m, { class: "search-btn" }, {
281
+ default: l(() => [
282
+ t(w, {
283
+ type: "primary",
284
+ onClick: e[9] || (e[9] = (n) => r(d).handleQuery())
285
+ }, {
286
+ default: l(() => [
287
+ g(h(a.$t("common.search")), 1)
288
+ ]),
289
+ _: 1
290
+ }),
291
+ t(w, {
292
+ onClick: e[10] || (e[10] = (n) => P())
293
+ }, {
294
+ default: l(() => [
295
+ g(h(a.$t("common.reset")), 1)
296
+ ]),
297
+ _: 1
298
+ })
299
+ ]),
300
+ _: 1
301
+ })
302
+ ]),
303
+ _: 1
304
+ })
305
+ ]),
306
+ _: 1
307
+ })
308
+ ]),
309
+ _: 1
310
+ }, 8, ["model"]),
311
+ t(x, {
312
+ shadow: "never",
313
+ class: "table-container"
314
+ }, {
315
+ header: l(() => [
316
+ t(M, null, {
317
+ default: l(() => [
318
+ t(p, {
319
+ span: 24,
320
+ class: "container-float"
321
+ }, {
322
+ default: l(() => [
323
+ t(H, {
324
+ modelValue: r(f),
325
+ "onUpdate:modelValue": e[11] || (e[11] = (n) => D(f) ? f.value = n : f = n),
326
+ "label-name": "settle/settle-trade-receipt"
327
+ }, null, 8, ["modelValue"])
328
+ ]),
329
+ _: 1
330
+ })
331
+ ]),
332
+ _: 1
333
+ })
334
+ ]),
335
+ footer: l(() => [
336
+ r(b) > 0 ? (_(), V(O, {
337
+ key: 0,
338
+ total: r(b),
339
+ "onUpdate:total": e[12] || (e[12] = (n) => D(b) ? b.value = n : null),
340
+ "current-page": o.value.curPage,
341
+ "onUpdate:currentPage": e[13] || (e[13] = (n) => o.value.curPage = n),
342
+ "page-size": o.value.pageSize,
343
+ "onUpdate:pageSize": e[14] || (e[14] = (n) => o.value.pageSize = n),
344
+ onPagination: e[15] || (e[15] = (n) => r(d).getList())
345
+ }, null, 8, ["total", "current-page", "page-size"])) : $("", !0)
346
+ ]),
347
+ default: l(() => [
348
+ t(L, {
349
+ ref_key: "multipleTableRef",
350
+ ref: E,
351
+ "row-key": "receiptId",
352
+ isSelection: !1,
353
+ "list-loading": r(j),
354
+ data: r(z),
355
+ "table-label": r(f),
356
+ onSelectionChange: Q,
357
+ onSortChange: B
358
+ }, {
359
+ instsId: l((n) => [
360
+ g(h(r(C).instsBizDict.getValue(n.data.row.instsId)), 1)
361
+ ]),
362
+ transferMoneyTime: l((n) => [
363
+ g(h(r(T).$moment.formatDate(
364
+ n.data.row.transferMoneyTime,
365
+ "YYYY-MM-DD HH:mm"
366
+ )), 1)
367
+ ]),
368
+ _: 1
369
+ }, 8, ["list-loading", "data", "table-label"])
370
+ ]),
371
+ _: 1
372
+ })
373
+ ]);
374
+ };
375
+ }
376
+ });
377
+ export {
378
+ me as _
379
+ };
@@ -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-D9zNqYoH.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",