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