xyvcard-settle 0.0.47 → 0.0.48

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 (27) hide show
  1. package/dist/{history-BQjgVD9D.mjs → history-BxhHHLWl.mjs} +1 -1
  2. package/dist/{history-DCwgJuDo.mjs → history-DV6dRTjD.mjs} +1 -1
  3. package/dist/{history.vue_vue_type_script_setup_true_lang-DO3kL3x0.mjs → history.vue_vue_type_script_setup_true_lang-DW21qIII.mjs} +1 -1
  4. package/dist/history.vue_vue_type_script_setup_true_lang-NWz9Rtma.mjs +403 -0
  5. package/dist/{index-yQjjxDcA.mjs → index-1jun1BI_.mjs} +1 -1
  6. package/dist/{index-DUu1w36z.mjs → index-B4SCq7KH.mjs} +2 -2
  7. package/dist/{index-uat4MVcq.mjs → index-BCg9UNFw.mjs} +24 -24
  8. package/dist/{index-BJDG5RJu.mjs → index-BbgmsRx0.mjs} +50 -49
  9. package/dist/{index-yz18Lhpm.mjs → index-BgbsFf1D.mjs} +19 -18
  10. package/dist/{index-Cr3j3TRH.mjs → index-C4pzKlKF.mjs} +2 -2
  11. package/dist/{index-ClDxB7Ty.mjs → index-CaBORY0Z.mjs} +38 -37
  12. package/dist/{index-BSjUBqhl.mjs → index-CfdbNSq8.mjs} +33 -33
  13. package/dist/{index-DYgHw7PE.mjs → index-CgbOnDFk.mjs} +1 -1
  14. package/dist/{index-DSAnrTJ1.mjs → index-CiDstsD9.mjs} +1 -1
  15. package/dist/{index-CWRtxckQ.mjs → index-Cwhi9rvj.mjs} +2 -2
  16. package/dist/{index-B8Y2esGZ.mjs → index-D4jXgbZE.mjs} +2 -2
  17. package/dist/{index-DcjjaDUk.mjs → index-DcQ0Bjxl.mjs} +2 -2
  18. package/dist/index.mjs +1 -1
  19. package/dist/{payPal-Cm1ZmJdL.mjs → payPal-BxEHOKHE.mjs} +1 -1
  20. package/dist/{payPal-3RoPmLkF.mjs → payPal-FS5kDoPy.mjs} +1 -1
  21. package/dist/{today-DawV1DzV.mjs → today-CryQp8d6.mjs} +1 -1
  22. package/dist/{today-eDeS0zsk.mjs → today-raAsbnbG.mjs} +1 -1
  23. package/dist/{today.vue_vue_type_script_setup_true_lang-qvHQZqwR.mjs → today.vue_vue_type_script_setup_true_lang-CBnBjp2N.mjs} +145 -113
  24. package/dist/{today.vue_vue_type_script_setup_true_lang-Bq4NCLzD.mjs → today.vue_vue_type_script_setup_true_lang-CyItbZLa.mjs} +1 -1
  25. package/dts/src/constant.d.ts +1 -0
  26. package/package.json +1 -1
  27. package/dist/history.vue_vue_type_script_setup_true_lang-DHKQSk8P.mjs +0 -371
@@ -1,57 +1,57 @@
1
- import { defineComponent as q, getCurrentInstance as O, ref as v, resolveComponent as s, createBlock as D, openBlock as g, withCtx as a, createVNode as l, withKeys as I, unref as r, createElementBlock as W, Fragment as G, renderList as J, createTextVNode as f, toDisplayString as b, createCommentVNode as X, isRef as w } from "vue";
2
- import { useI18n as Z } from "vue-i18n";
3
- import "vue-router";
4
- import { useUserStore as V, 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, C 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) {
1
+ import { defineComponent as J, getCurrentInstance as X, ref as T, resolveComponent as s, resolveDirective as Z, createBlock as C, openBlock as h, withCtx as a, createVNode as l, withKeys as M, unref as r, createElementBlock as A, Fragment as ee, renderList as te, createTextVNode as d, toDisplayString as i, withDirectives as ae, createCommentVNode as le, isRef as V } from "vue";
2
+ import { useI18n as ne } from "vue-i18n";
3
+ import { useRouter as oe } from "vue-router";
4
+ import { useUserStore as k, clearEmpty as re, request as se, useTableHooks as me } from "jmash-core";
5
+ import { channelApi as ue } from "xyvcard-merchant";
6
+ import { D as p, C as g } from "./index-BgbsFf1D.mjs";
7
+ import { tokenExt as de } from "xyvcard-agent";
8
+ import { g as ie } from "./agent-R-Ml-XTA.mjs";
9
+ class pe {
10
+ getKey(m) {
11
11
  return {
12
- receiptId: u.receiptId
12
+ receiptId: m.receiptId
13
13
  };
14
14
  }
15
15
  // 查询翻页信息划款信息查询-今日到账
16
- findPage(u) {
17
- const i = V().user.tenant;
18
- return ee(u), te({
19
- url: "/v1/settle/receipt/today/" + i,
16
+ findPage(m) {
17
+ const D = k().user.tenant;
18
+ return re(m), se({
19
+ url: "/v1/settle/receipt/today/" + D,
20
20
  method: "get",
21
- params: u
21
+ params: m
22
22
  });
23
23
  }
24
24
  }
25
- const se = new re(), he = /* @__PURE__ */ q({
25
+ const ce = new pe(), fe = ["onClick"], Re = /* @__PURE__ */ J({
26
26
  __name: "today",
27
- setup(k) {
28
- const { t: u } = Z();
29
- m.instsBizDict.useValues(), m.merchantBizDict.useValues(), m.agentBizDict.useValues();
30
- const { proxy: i } = O(), h = v([]), n = v({
31
- tokenExt: ne.getTokenExt(V().user.tenant),
32
- transferMoneyDate: i.$moment.formatDate(
27
+ setup(S) {
28
+ const { t: m } = ne();
29
+ p.instsBizDict.useValues(), p.merchantBizDict.useValues(), p.agentBizDict.useValues();
30
+ const D = oe(), { proxy: y } = X(), b = T([]), o = T({
31
+ tokenExt: de.getTokenExt(k().user.tenant),
32
+ transferMoneyDate: y.$moment.formatDate(
33
33
  /* @__PURE__ */ new Date(),
34
- M.RPC_FORMAT_DATA
34
+ g.RPC_FORMAT_DATA
35
35
  )
36
36
  });
37
- function A() {
38
- n.value.channelId = "", le.findList({ merchantId: n.value.merchantId }).then((o) => {
39
- if (n.value.merchantId) {
40
- h.value = o.data.results;
37
+ function $() {
38
+ o.value.channelId = "", ue.findList({ merchantId: o.value.merchantId }).then((n) => {
39
+ if (o.value.merchantId) {
40
+ b.value = n.data.results;
41
41
  return;
42
42
  }
43
- h.value = [];
43
+ b.value = [];
44
44
  });
45
45
  }
46
46
  const {
47
- tableHooks: d,
48
- multipleTableRef: $,
49
- queryFormRef: S,
50
- listLoading: N,
51
- tableData: T,
52
- total: y
53
- } = ae(u, se, n);
54
- let p = v([
47
+ tableHooks: u,
48
+ multipleTableRef: N,
49
+ queryFormRef: Y,
50
+ listLoading: P,
51
+ tableData: R,
52
+ total: _
53
+ } = me(m, ce, o);
54
+ let c = T([
55
55
  // 序号
56
56
  {
57
57
  label: "settleTradeReceipt.index",
@@ -126,53 +126,75 @@ const se = new re(), he = /* @__PURE__ */ q({
126
126
  width: "150",
127
127
  sortable: "custom",
128
128
  isColumn: !0
129
+ },
130
+ {
131
+ label: "common.operate",
132
+ width: "100",
133
+ slotName: "operation",
134
+ columnType: "slot",
135
+ fixed: "right",
136
+ isColumn: !0
129
137
  }
130
138
  ]);
131
- function Y() {
132
- n.value.merchantId = "", n.value.channelId = "", n.value.transferMoneyDate = i.$moment.formatDate(
139
+ function z(n) {
140
+ const t = new Date(n.transferMoneyDate).getTime() - 864e5;
141
+ D.push({
142
+ path: "/payment/pay-trade",
143
+ query: {
144
+ merchantId: n.merchantId,
145
+ analysisTime: y.$moment.formatDate(
146
+ t,
147
+ g.RPC_FORMAT_DATA
148
+ ),
149
+ tradeStatus: g.PAY_SUCCESS
150
+ }
151
+ });
152
+ }
153
+ function B() {
154
+ o.value.merchantId = "", o.value.channelId = "", o.value.transferMoneyDate = y.$moment.formatDate(
133
155
  /* @__PURE__ */ new Date(),
134
- M.RPC_FORMAT_DATA
135
- ), h.value = [], T.value = [];
156
+ g.RPC_FORMAT_DATA
157
+ ), b.value = [], R.value = [];
136
158
  }
137
- function z(o) {
138
- d.selectionRows.value = o;
159
+ function U(n) {
160
+ u.selectionRows.value = n;
139
161
  }
140
- function B(o) {
141
- d.handleSort(o.prop, o.order);
162
+ function j(n) {
163
+ u.handleSort(n.prop, n.order);
142
164
  }
143
- return (o, t) => {
144
- const j = s("jmash-select"), _ = s("el-form-item"), c = s("el-col"), P = s("el-option"), U = s("el-select"), E = s("el-date-picker"), R = s("el-button"), C = s("el-row"), F = s("el-form"), L = s("jmash-column-select"), x = s("jmash-table"), H = s("jmash-pagination"), K = s("el-card"), Q = s("el-tab-pane");
145
- return g(), D(Q, {
165
+ return (n, t) => {
166
+ const E = s("jmash-select"), v = s("el-form-item"), f = s("el-col"), F = s("el-option"), L = s("el-select"), q = s("el-date-picker"), w = s("el-button"), I = s("el-row"), x = s("el-form"), H = s("jmash-column-select"), K = s("jmash-table"), Q = s("jmash-pagination"), O = s("el-card"), W = s("el-tab-pane"), G = Z("hasPerm");
167
+ return h(), C(W, {
146
168
  label: "今日到账流水",
147
169
  name: "two"
148
170
  }, {
149
171
  default: a(() => [
150
- l(F, {
172
+ l(x, {
151
173
  ref_key: "queryFormRef",
152
- ref: S,
153
- model: n.value,
174
+ ref: Y,
175
+ model: o.value,
154
176
  inline: !0
155
177
  }, {
156
178
  default: a(() => [
157
- l(C, null, {
179
+ l(I, null, {
158
180
  default: a(() => [
159
- l(c, { span: 6 }, {
181
+ l(f, { span: 6 }, {
160
182
  default: a(() => [
161
- l(_, {
162
- label: o.$t("payTrade.merchantId"),
183
+ l(v, {
184
+ label: n.$t("payTrade.merchantId"),
163
185
  prop: "merchantId"
164
186
  }, {
165
187
  default: a(() => [
166
- l(j, {
167
- modelValue: n.value.merchantId,
168
- "onUpdate:modelValue": t[0] || (t[0] = (e) => n.value.merchantId = e),
169
- placeholder: o.$t("payTrade.merchantIdRead"),
170
- data: r(m).merchantBizDict.values,
171
- onKeyup: t[1] || (t[1] = I((e) => r(d).handleQuery(), ["enter"])),
188
+ l(E, {
189
+ modelValue: o.value.merchantId,
190
+ "onUpdate:modelValue": t[0] || (t[0] = (e) => o.value.merchantId = e),
191
+ placeholder: n.$t("payTrade.merchantIdRead"),
192
+ data: r(p).merchantBizDict.values,
193
+ onKeyup: t[1] || (t[1] = M((e) => r(u).handleQuery(), ["enter"])),
172
194
  class: "!w-[203px]",
173
195
  filterable: "",
174
196
  clearable: "",
175
- onChange: A
197
+ onChange: $
176
198
  }, null, 8, ["modelValue", "placeholder", "data"])
177
199
  ]),
178
200
  _: 1
@@ -180,26 +202,26 @@ const se = new re(), he = /* @__PURE__ */ q({
180
202
  ]),
181
203
  _: 1
182
204
  }),
183
- l(c, { span: 6 }, {
205
+ l(f, { span: 6 }, {
184
206
  default: a(() => [
185
- l(_, {
186
- label: o.$t("settleTradeAnalysis.channelId"),
207
+ l(v, {
208
+ label: n.$t("settleTradeAnalysis.channelId"),
187
209
  prop: "channelId"
188
210
  }, {
189
211
  default: a(() => [
190
- l(U, {
191
- modelValue: n.value.channelId,
192
- "onUpdate:modelValue": t[2] || (t[2] = (e) => n.value.channelId = e),
193
- placeholder: o.$t("settleTradeAnalysis.channelIdRead"),
194
- onKeyup: t[3] || (t[3] = I((e) => r(d).handleQuery(), ["enter"])),
212
+ l(L, {
213
+ modelValue: o.value.channelId,
214
+ "onUpdate:modelValue": t[2] || (t[2] = (e) => o.value.channelId = e),
215
+ placeholder: n.$t("settleTradeAnalysis.channelIdRead"),
216
+ onKeyup: t[3] || (t[3] = M((e) => r(u).handleQuery(), ["enter"])),
195
217
  class: "!w-[203px]",
196
218
  filterable: "",
197
219
  clearable: ""
198
220
  }, {
199
221
  default: a(() => [
200
- (g(!0), W(G, null, J(h.value, (e) => (g(), D(P, {
222
+ (h(!0), A(ee, null, te(b.value, (e) => (h(), C(F, {
201
223
  key: e.channelId,
202
- label: r(m).instsBizDict.getValue(e.instsId) || e.instsId,
224
+ label: r(p).instsBizDict.getValue(e.instsId) || e.instsId,
203
225
  value: e.channelId
204
226
  }, null, 8, ["label", "value"]))), 128))
205
227
  ]),
@@ -211,20 +233,20 @@ const se = new re(), he = /* @__PURE__ */ q({
211
233
  ]),
212
234
  _: 1
213
235
  }),
214
- l(c, { span: 6 }, {
236
+ l(f, { span: 6 }, {
215
237
  default: a(() => [
216
- l(_, {
217
- label: o.$t("settleTradeReceipt.createTime"),
238
+ l(v, {
239
+ label: n.$t("settleTradeReceipt.createTime"),
218
240
  prop: "transferMoneyDate"
219
241
  }, {
220
242
  default: a(() => [
221
- l(E, {
222
- modelValue: n.value.transferMoneyDate,
223
- "onUpdate:modelValue": t[4] || (t[4] = (e) => n.value.transferMoneyDate = e),
243
+ l(q, {
244
+ modelValue: o.value.transferMoneyDate,
245
+ "onUpdate:modelValue": t[4] || (t[4] = (e) => o.value.transferMoneyDate = e),
224
246
  type: "date",
225
247
  format: "YYYY-MM-DD",
226
248
  "value-format": "YYYY-MM-DD",
227
- placeholder: o.$t("settleTradeReceipt.createTimeRead"),
249
+ placeholder: n.$t("settleTradeReceipt.createTimeRead"),
228
250
  clearable: !1
229
251
  }, null, 8, ["modelValue", "placeholder"])
230
252
  ]),
@@ -233,24 +255,24 @@ const se = new re(), he = /* @__PURE__ */ q({
233
255
  ]),
234
256
  _: 1
235
257
  }),
236
- l(c, { span: 6 }, {
258
+ l(f, { span: 6 }, {
237
259
  default: a(() => [
238
- l(_, { class: "search-btn" }, {
260
+ l(v, { class: "search-btn" }, {
239
261
  default: a(() => [
240
- l(R, {
262
+ l(w, {
241
263
  type: "primary",
242
- onClick: t[5] || (t[5] = (e) => r(d).handleQuery())
264
+ onClick: t[5] || (t[5] = (e) => r(u).handleQuery())
243
265
  }, {
244
266
  default: a(() => [
245
- f(b(o.$t("common.search")), 1)
267
+ d(i(n.$t("common.search")), 1)
246
268
  ]),
247
269
  _: 1
248
270
  }),
249
- l(R, {
250
- onClick: t[6] || (t[6] = (e) => Y())
271
+ l(w, {
272
+ onClick: t[6] || (t[6] = (e) => B())
251
273
  }, {
252
274
  default: a(() => [
253
- f(b(o.$t("common.reset")), 1)
275
+ d(i(n.$t("common.reset")), 1)
254
276
  ]),
255
277
  _: 1
256
278
  })
@@ -266,21 +288,21 @@ const se = new re(), he = /* @__PURE__ */ q({
266
288
  ]),
267
289
  _: 1
268
290
  }, 8, ["model"]),
269
- l(K, {
291
+ l(O, {
270
292
  shadow: "never",
271
293
  class: "table-container"
272
294
  }, {
273
295
  header: a(() => [
274
- l(C, null, {
296
+ l(I, null, {
275
297
  default: a(() => [
276
- l(c, {
298
+ l(f, {
277
299
  span: 24,
278
300
  class: "container-float"
279
301
  }, {
280
302
  default: a(() => [
281
- l(L, {
282
- modelValue: r(p),
283
- "onUpdate:modelValue": t[7] || (t[7] = (e) => w(p) ? p.value = e : p = e),
303
+ l(H, {
304
+ modelValue: r(c),
305
+ "onUpdate:modelValue": t[7] || (t[7] = (e) => V(c) ? c.value = e : c = e),
284
306
  "label-name": "settle/settle-trade-receipt"
285
307
  }, null, 8, ["modelValue"])
286
308
  ]),
@@ -291,40 +313,50 @@ const se = new re(), he = /* @__PURE__ */ q({
291
313
  })
292
314
  ]),
293
315
  footer: a(() => [
294
- r(y) > 0 ? (g(), D(H, {
316
+ r(_) > 0 ? (h(), C(Q, {
295
317
  key: 0,
296
- total: r(y),
297
- "onUpdate:total": t[8] || (t[8] = (e) => w(y) ? y.value = e : null),
298
- "current-page": n.value.curPage,
299
- "onUpdate:currentPage": t[9] || (t[9] = (e) => n.value.curPage = e),
300
- "page-size": n.value.pageSize,
301
- "onUpdate:pageSize": t[10] || (t[10] = (e) => n.value.pageSize = e),
302
- onPagination: t[11] || (t[11] = (e) => r(d).getList())
303
- }, null, 8, ["total", "current-page", "page-size"])) : X("", !0)
318
+ total: r(_),
319
+ "onUpdate:total": t[8] || (t[8] = (e) => V(_) ? _.value = e : null),
320
+ "current-page": o.value.curPage,
321
+ "onUpdate:currentPage": t[9] || (t[9] = (e) => o.value.curPage = e),
322
+ "page-size": o.value.pageSize,
323
+ "onUpdate:pageSize": t[10] || (t[10] = (e) => o.value.pageSize = e),
324
+ onPagination: t[11] || (t[11] = (e) => r(u).getList())
325
+ }, null, 8, ["total", "current-page", "page-size"])) : le("", !0)
304
326
  ]),
305
327
  default: a(() => [
306
- l(x, {
328
+ l(K, {
307
329
  ref_key: "multipleTableRef",
308
- ref: $,
330
+ ref: N,
309
331
  "row-key": "receiptId",
310
332
  isSelection: !1,
311
- "list-loading": r(N),
312
- data: r(T),
313
- "table-label": r(p),
314
- onSelectionChange: z,
315
- onSortChange: B
333
+ "list-loading": r(P),
334
+ data: r(R),
335
+ "table-label": r(c),
336
+ onSelectionChange: U,
337
+ onSortChange: j
316
338
  }, {
317
339
  transferMoneyDate: a((e) => [
318
- f(b(r(i).$moment.formatDate(
340
+ d(i(r(y).$moment.formatDate(
319
341
  e.data.row.transferMoneyDate + " " + e.data.row.transferMoneyTime,
320
342
  "YYYY-MM-DD HH:mm:ss"
321
343
  )), 1)
322
344
  ]),
323
345
  instsId: a((e) => [
324
- f(b(r(m).instsBizDict.getValue(e.data.row.instsId)), 1)
346
+ d(i(r(p).instsBizDict.getValue(e.data.row.instsId)), 1)
325
347
  ]),
326
348
  agentCode: a((e) => [
327
- f(b(r(oe)(e.data.row.agentCode)), 1)
349
+ d(i(r(ie)(e.data.row.agentCode)), 1)
350
+ ]),
351
+ operation: a((e) => [
352
+ ae((h(), A("span", {
353
+ class: "el-button-color",
354
+ onClick: (he) => z(e.data.row)
355
+ }, [
356
+ d(i(n.$t("settleTradeAnalysis.view")), 1)
357
+ ], 8, fe)), [
358
+ [G, ["payment:trade_analysis:view"]]
359
+ ])
328
360
  ]),
329
361
  _: 1
330
362
  }, 8, ["list-loading", "data", "table-label"])
@@ -338,5 +370,5 @@ const se = new re(), he = /* @__PURE__ */ q({
338
370
  }
339
371
  });
340
372
  export {
341
- he as _
373
+ Re as _
342
374
  };
@@ -3,7 +3,7 @@ import { useI18n as O } from "vue-i18n";
3
3
  import { useUserStore as k, clearEmpty as W, request as X, useTableHooks as Z } from "jmash-core";
4
4
  import { tokenExt as ee } from "xyvcard-agent";
5
5
  import { channelApi as te } from "xyvcard-merchant";
6
- import { D as c } from "./index-yz18Lhpm.mjs";
6
+ import { D as c } from "./index-BgbsFf1D.mjs";
7
7
  import { g as le } from "./agent-R-Ml-XTA.mjs";
8
8
  class ae {
9
9
  getKey(d) {
@@ -16,4 +16,5 @@ export declare class Constant {
16
16
  };
17
17
  static readonly MCHT_CHAIN_HEAD = "MCHT_CHAIN_HEAD";
18
18
  static readonly MCHT_CHAIN_BRANCH = "MCHT_CHAIN_BRANCH";
19
+ static readonly PAY_SUCCESS = "PAY_SUCCESS";
19
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xyvcard-settle",
3
- "version": "0.0.47",
3
+ "version": "0.0.48",
4
4
  "private": false,
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dts/src/index.d.ts",