xyvcard-settle 0.0.20 → 0.0.22

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 (22) hide show
  1. package/dist/{history-BgXCgEWe.mjs → history-B8rLL6cg.mjs} +1 -1
  2. package/dist/{history-DtjmHKa9.mjs → history-DOq3Euuf.mjs} +1 -1
  3. package/dist/{history.vue_vue_type_script_setup_true_lang-Cb_n42jg.mjs → history.vue_vue_type_script_setup_true_lang-BcoBU5uq.mjs} +187 -164
  4. package/dist/{history.vue_vue_type_script_setup_true_lang-BolWWcQp.mjs → history.vue_vue_type_script_setup_true_lang-CbfsFzBk.mjs} +90 -81
  5. package/dist/{index-BPvCTpAw.mjs → index-0UYX9qoK.mjs} +58 -76
  6. package/dist/{index-A83m_bq9.mjs → index-BgQiV0cV.mjs} +2 -2
  7. package/dist/{index-mgS8Yk77.mjs → index-C3Kdmtt0.mjs} +2 -2
  8. package/dist/{index-DBd3Gkwy.mjs → index-CEE_6GTV.mjs} +1 -1
  9. package/dist/{index-Dk7c4clB.mjs → index-Cd659aKC.mjs} +1 -1
  10. package/dist/{index-AM0oEBSy.mjs → index-DEjceLAF.mjs} +1 -1
  11. package/dist/{index-B_A1F3k3.mjs → index-NM7NGo1Y.mjs} +1 -1
  12. package/dist/{index-D_DrLyqR.mjs → index-q_VWJKNr.mjs} +25 -24
  13. package/dist/index.mjs +15 -13
  14. package/dist/{today-D7Qw-W1d.mjs → today-CGeC5FRK.mjs} +1 -1
  15. package/dist/{today-DO4goI_2.mjs → today-CjR56HHC.mjs} +1 -1
  16. package/dist/today.vue_vue_type_script_setup_true_lang-Cv8Zmnrj.mjs +333 -0
  17. package/dist/{today.vue_vue_type_script_setup_true_lang-BVQUaV2S.mjs → today.vue_vue_type_script_setup_true_lang-DI-SW_RJ.mjs} +90 -81
  18. package/dts/src/constant.d.ts +1 -0
  19. package/dts/src/lang/settle/en.d.ts +89 -0
  20. package/dts/src/lang/settle/zh-cn.d.ts +2 -0
  21. package/package.json +3 -3
  22. package/dist/today.vue_vue_type_script_setup_true_lang-BHX_3u1P.mjs +0 -309
@@ -1,11 +1,11 @@
1
- import { defineComponent as G, getCurrentInstance as J, ref as b, resolveComponent as o, createElementBlock as g, openBlock as i, createVNode as l, withCtx as a, withKeys as w, unref as r, Fragment as W, renderList as X, createBlock as D, createTextVNode as R, toDisplayString as h, createCommentVNode as Z, isRef as I } from "vue";
2
- import { useUserStore as S, clearEmpty as ee, request as te, useTableHooks as le } from "jmash-core";
3
- import { useI18n as ae } from "vue-i18n";
4
- import { D as v, C as k } from "./index-D_DrLyqR.mjs";
5
- import { useRoute as ne } from "vue-router";
6
- import { channelApi as oe } from "xyvcard-merchant";
7
- import { tokenExt as re } from "xyvcard-agent";
8
- class se {
1
+ import { defineComponent as G, getCurrentInstance as W, ref as y, resolveComponent as o, createElementBlock as h, openBlock as p, createVNode as l, withCtx as a, withKeys as w, unref as r, Fragment as X, renderList as Z, createBlock as I, createTextVNode as v, toDisplayString as _, createCommentVNode as ee, isRef as S } from "vue";
2
+ import { useUserStore as M, clearEmpty as te, request as ae, useTableHooks as le } from "jmash-core";
3
+ import { useI18n as ne } from "vue-i18n";
4
+ import { D as T, C as k } from "./index-q_VWJKNr.mjs";
5
+ import { useRoute as oe } from "vue-router";
6
+ import { channelApi as re } from "xyvcard-merchant";
7
+ import { tokenExt as se } from "xyvcard-agent";
8
+ class ue {
9
9
  getKey(d) {
10
10
  return {
11
11
  receiptId: d.receiptId
@@ -13,44 +13,48 @@ class se {
13
13
  }
14
14
  // 查询翻页信息划款信息查询-到账(历史)
15
15
  findPage(d) {
16
- const m = S().user.tenant;
17
- return ee(d), te({
18
- url: "/v1/settle/receipt/my/page/" + m,
16
+ const i = M().user.tenant;
17
+ return te(d), ae({
18
+ url: "/v1/settle/receipt/my/page/" + i,
19
19
  method: "get",
20
20
  params: d
21
21
  });
22
22
  }
23
23
  }
24
- const ue = new se(), de = { class: "app-container" }, ie = { key: 0 }, me = { key: 1 }, he = /* @__PURE__ */ G({
24
+ const de = new ue(), pe = { class: "app-container" }, ie = { key: 0 }, me = { key: 1 }, ve = /* @__PURE__ */ G({
25
25
  __name: "history",
26
26
  setup(V) {
27
- const { t: d } = ae();
28
- v.instsBizDict.useValues(), ne();
29
- const { proxy: m } = J(), s = b({
30
- tokenExt: re.getTokenExt(S().user.tenant)
31
- }), M = b([]), $ = localStorage.getItem("selectMerchantId");
32
- oe.myFindList({ merchantId: $ }).then((n) => {
33
- M.value = n.data.results;
27
+ const { t: d } = ne();
28
+ T.instsBizDict.useValues(), oe();
29
+ const { proxy: i } = W(), s = y({
30
+ tokenExt: se.getTokenExt(M().user.tenant)
31
+ }), D = y([]), N = localStorage.getItem("selectMerchantId");
32
+ re.myFindList({ merchantId: N }).then((n) => {
33
+ D.value = n.data.results;
34
34
  });
35
- const p = b([]);
36
- function N(n) {
37
- p.value = n, p.value.length === 2 && (s.value.transferMoneyDateStart = m.$moment.formatDate(
35
+ const $ = y(
36
+ JSON.parse(
37
+ sessionStorage.getItem("SelectAgent:" + M().user.tenant) || "{}"
38
+ )
39
+ ), m = y([]);
40
+ function A(n) {
41
+ m.value = n, m.value.length === 2 && (s.value.transferMoneyDateStart = i.$moment.formatDate(
38
42
  n[0],
39
43
  k.RPC_FORMAT_TIME
40
- ), s.value.transferMoneyDateEnd = m.$moment.formatDate(
44
+ ), s.value.transferMoneyDateEnd = i.$moment.formatDate(
41
45
  n[1],
42
46
  k.RPC_FORMAT_TIME
43
47
  ));
44
48
  }
45
49
  const {
46
50
  tableHooks: u,
47
- multipleTableRef: A,
48
- queryFormRef: Y,
49
- listLoading: E,
50
- tableData: z,
51
- total: y
52
- } = le(d, ue, s);
53
- let c = b([
51
+ multipleTableRef: Y,
52
+ queryFormRef: E,
53
+ listLoading: z,
54
+ tableData: P,
55
+ total: g
56
+ } = le(d, de, s);
57
+ let c = y([
54
58
  // 序号
55
59
  {
56
60
  label: "settleTradeReceipt.index",
@@ -76,9 +80,9 @@ const ue = new se(), de = { class: "app-container" }, ie = { key: 0 }, me = { ke
76
80
  },
77
81
  // 划款时间
78
82
  {
79
- label: "settleTradeReceipt.transferMoneyTime",
80
- prop: "transferMoneyTime",
81
- slotName: "transferMoneyTime",
83
+ label: "settleTradeReceipt.transferMoneyDate",
84
+ prop: "transferMoneyDate",
85
+ slotName: "transferMoneyDate",
82
86
  columnType: "slot",
83
87
  width: "200",
84
88
  sortable: "custom",
@@ -102,8 +106,8 @@ const ue = new se(), de = { class: "app-container" }, ie = { key: 0 }, me = { ke
102
106
  },
103
107
  // 到账状态
104
108
  {
105
- label: "settleTradeReceipt.transferMoneyStatus",
106
- prop: "transferMoneyStatus",
109
+ label: "settleTradeReceipt.transferMoneyStatusName",
110
+ prop: "transferMoneyStatusName",
107
111
  width: "150",
108
112
  sortable: "custom",
109
113
  isColumn: !0
@@ -112,7 +116,9 @@ const ue = new se(), de = { class: "app-container" }, ie = { key: 0 }, me = { ke
112
116
  {
113
117
  label: "settleTradeReceipt.agentCode",
114
118
  prop: "agentCode",
115
- width: "150",
119
+ slotName: "agentCode",
120
+ columnType: "slot",
121
+ width: "200",
116
122
  sortable: "custom",
117
123
  isColumn: !0
118
124
  },
@@ -125,35 +131,35 @@ const ue = new se(), de = { class: "app-container" }, ie = { key: 0 }, me = { ke
125
131
  isColumn: !0
126
132
  }
127
133
  ]);
128
- function P() {
129
- p.value = [], u.resetQuery();
134
+ function U() {
135
+ m.value = [], u.resetQuery();
130
136
  }
131
- function U(n) {
137
+ function j(n) {
132
138
  u.selectionRows.value = n;
133
139
  }
134
- function j(n) {
140
+ function B(n) {
135
141
  u.handleSort(n.prop, n.order);
136
142
  }
137
143
  return u.getList(), (n, t) => {
138
- const B = o("el-input"), _ = o("el-form-item"), f = o("el-col"), F = o("el-option"), L = o("el-select"), Q = o("el-date-picker"), T = o("el-row"), C = o("el-button"), x = o("el-form"), H = o("jmash-column-select"), K = o("jmash-table"), q = o("jmash-pagination"), O = o("el-card");
139
- return i(), g("div", de, [
140
- l(x, {
144
+ const F = o("el-input"), b = o("el-form-item"), f = o("el-col"), L = o("el-option"), Q = o("el-select"), x = o("el-date-picker"), R = o("el-row"), C = o("el-button"), H = o("el-form"), K = o("jmash-column-select"), q = o("jmash-table"), O = o("jmash-pagination"), J = o("el-card");
145
+ return p(), h("div", pe, [
146
+ l(H, {
141
147
  ref_key: "queryFormRef",
142
- ref: Y,
148
+ ref: E,
143
149
  model: s.value,
144
150
  inline: !0
145
151
  }, {
146
152
  default: a(() => [
147
- l(T, null, {
153
+ l(R, null, {
148
154
  default: a(() => [
149
155
  l(f, { span: 6 }, {
150
156
  default: a(() => [
151
- l(_, {
157
+ l(b, {
152
158
  label: n.$t("settleTradeReceipt.termNo"),
153
159
  prop: "termNo"
154
160
  }, {
155
161
  default: a(() => [
156
- l(B, {
162
+ l(F, {
157
163
  modelValue: s.value.termNo,
158
164
  "onUpdate:modelValue": t[0] || (t[0] = (e) => s.value.termNo = e),
159
165
  placeholder: n.$t("settleTradeReceipt.termNoRead"),
@@ -168,12 +174,12 @@ const ue = new se(), de = { class: "app-container" }, ie = { key: 0 }, me = { ke
168
174
  }),
169
175
  l(f, { span: 6 }, {
170
176
  default: a(() => [
171
- l(_, {
177
+ l(b, {
172
178
  label: n.$t("settleTradeAnalysis.channelId"),
173
179
  prop: "channelId"
174
180
  }, {
175
181
  default: a(() => [
176
- l(L, {
182
+ l(Q, {
177
183
  modelValue: s.value.channelId,
178
184
  "onUpdate:modelValue": t[2] || (t[2] = (e) => s.value.channelId = e),
179
185
  placeholder: n.$t("settleTradeAnalysis.channelIdRead"),
@@ -183,9 +189,9 @@ const ue = new se(), de = { class: "app-container" }, ie = { key: 0 }, me = { ke
183
189
  clearable: ""
184
190
  }, {
185
191
  default: a(() => [
186
- (i(!0), g(W, null, X(M.value, (e) => (i(), D(F, {
192
+ (p(!0), h(X, null, Z(D.value, (e) => (p(), I(L, {
187
193
  key: e.channelId,
188
- label: r(v).instsBizDict.getValue(e.instsId) || e.instsId,
194
+ label: r(T).instsBizDict.getValue(e.instsId) || e.instsId,
189
195
  value: e.channelId
190
196
  }, null, 8, ["label", "value"]))), 128))
191
197
  ]),
@@ -199,21 +205,21 @@ const ue = new se(), de = { class: "app-container" }, ie = { key: 0 }, me = { ke
199
205
  }),
200
206
  l(f, { span: 6 }, {
201
207
  default: a(() => [
202
- l(_, {
208
+ l(b, {
203
209
  label: n.$t("settleTradeReceipt.createTime"),
204
210
  prop: "analysisTimeStart"
205
211
  }, {
206
212
  default: a(() => [
207
- l(Q, {
208
- modelValue: p.value,
209
- "onUpdate:modelValue": t[4] || (t[4] = (e) => p.value = e),
213
+ l(x, {
214
+ modelValue: m.value,
215
+ "onUpdate:modelValue": t[4] || (t[4] = (e) => m.value = e),
210
216
  type: "daterange",
211
217
  format: "YYYY-MM-DD",
212
218
  "value-format": "YYYY-MM-DD",
213
219
  "range-separator": "-",
214
220
  "start-placeholder": n.$t("settleTradeReceipt.transferMoneyDateStart"),
215
221
  "end-placeholder": n.$t("settleTradeReceipt.transferMoneyDateEnd"),
216
- onChange: N,
222
+ onChange: A,
217
223
  style: { width: "280px" }
218
224
  }, null, 8, ["modelValue", "start-placeholder", "end-placeholder"])
219
225
  ]),
@@ -225,26 +231,26 @@ const ue = new se(), de = { class: "app-container" }, ie = { key: 0 }, me = { ke
225
231
  ]),
226
232
  _: 1
227
233
  }),
228
- l(T, null, {
234
+ l(R, null, {
229
235
  default: a(() => [
230
236
  l(f, { span: 24 }, {
231
237
  default: a(() => [
232
- l(_, { class: "search-btn" }, {
238
+ l(b, { class: "search-btn" }, {
233
239
  default: a(() => [
234
240
  l(C, {
235
241
  type: "primary",
236
242
  onClick: t[5] || (t[5] = (e) => r(u).handleQuery())
237
243
  }, {
238
244
  default: a(() => [
239
- R(h(n.$t("common.search")), 1)
245
+ v(_(n.$t("common.search")), 1)
240
246
  ]),
241
247
  _: 1
242
248
  }),
243
249
  l(C, {
244
- onClick: t[6] || (t[6] = (e) => P())
250
+ onClick: t[6] || (t[6] = (e) => U())
245
251
  }, {
246
252
  default: a(() => [
247
- R(h(n.$t("common.reset")), 1)
253
+ v(_(n.$t("common.reset")), 1)
248
254
  ]),
249
255
  _: 1
250
256
  })
@@ -260,21 +266,21 @@ const ue = new se(), de = { class: "app-container" }, ie = { key: 0 }, me = { ke
260
266
  ]),
261
267
  _: 1
262
268
  }, 8, ["model"]),
263
- l(O, {
269
+ l(J, {
264
270
  shadow: "never",
265
271
  class: "table-container"
266
272
  }, {
267
273
  header: a(() => [
268
- l(T, null, {
274
+ l(R, null, {
269
275
  default: a(() => [
270
276
  l(f, {
271
277
  span: 24,
272
278
  class: "container-float"
273
279
  }, {
274
280
  default: a(() => [
275
- l(H, {
281
+ l(K, {
276
282
  modelValue: r(c),
277
- "onUpdate:modelValue": t[7] || (t[7] = (e) => I(c) ? c.value = e : c = e),
283
+ "onUpdate:modelValue": t[7] || (t[7] = (e) => S(c) ? c.value = e : c = e),
278
284
  "label-name": "settle/settle-trade-receipt"
279
285
  }, null, 8, ["modelValue"])
280
286
  ]),
@@ -285,37 +291,40 @@ const ue = new se(), de = { class: "app-container" }, ie = { key: 0 }, me = { ke
285
291
  })
286
292
  ]),
287
293
  footer: a(() => [
288
- r(y) > 0 ? (i(), D(q, {
294
+ r(g) > 0 ? (p(), I(O, {
289
295
  key: 0,
290
- total: r(y),
291
- "onUpdate:total": t[8] || (t[8] = (e) => I(y) ? y.value = e : null),
296
+ total: r(g),
297
+ "onUpdate:total": t[8] || (t[8] = (e) => S(g) ? g.value = e : null),
292
298
  "current-page": s.value.curPage,
293
299
  "onUpdate:currentPage": t[9] || (t[9] = (e) => s.value.curPage = e),
294
300
  "page-size": s.value.pageSize,
295
301
  "onUpdate:pageSize": t[10] || (t[10] = (e) => s.value.pageSize = e),
296
302
  onPagination: t[11] || (t[11] = (e) => r(u).getList())
297
- }, null, 8, ["total", "current-page", "page-size"])) : Z("", !0)
303
+ }, null, 8, ["total", "current-page", "page-size"])) : ee("", !0)
298
304
  ]),
299
305
  default: a(() => [
300
- l(K, {
306
+ l(q, {
301
307
  ref_key: "multipleTableRef",
302
- ref: A,
308
+ ref: Y,
303
309
  "row-key": "receiptId",
304
310
  isSelection: !1,
305
- "list-loading": r(E),
306
- data: r(z),
311
+ "list-loading": r(z),
312
+ data: r(P),
307
313
  "table-label": r(c),
308
- onSelectionChange: U,
309
- onSortChange: j
314
+ onSelectionChange: j,
315
+ onSortChange: B
310
316
  }, {
311
317
  instsId: a((e) => [
312
- R(h(r(v).instsBizDict.getValue(e.data.row.instsId)), 1)
318
+ v(_(r(T).instsBizDict.getValue(e.data.row.instsId)), 1)
313
319
  ]),
314
- transferMoneyTime: a((e) => [
315
- e.data.row.transferMoneyTime ? (i(), g("span", ie, h(r(m).$moment.formatDate(
316
- new Date(e.data.row.transferMoneyTime),
320
+ transferMoneyDate: a((e) => [
321
+ e.data.row.transferMoneyDate ? (p(), h("span", ie, _(r(i).$moment.formatDate(
322
+ new Date(e.data.row.transferMoneyDate),
317
323
  "YYYY-MM-DD HH:mm"
318
- )), 1)) : (i(), g("span", me))
324
+ )), 1)) : (p(), h("span", me))
325
+ ]),
326
+ agentCode: a((e) => [
327
+ v(_($.value.agentAlias), 1)
319
328
  ]),
320
329
  _: 1
321
330
  }, 8, ["list-loading", "data", "table-label"])
@@ -327,5 +336,5 @@ const ue = new se(), de = { class: "app-container" }, ie = { key: 0 }, me = { ke
327
336
  }
328
337
  });
329
338
  export {
330
- he as _
339
+ ve as _
331
340
  };