xyvcard-settle 0.0.33 → 0.0.34

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