xyvcard-settle 0.0.43 → 0.0.44

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 (42) hide show
  1. package/dist/agent-BXhE-jbg.mjs +32 -0
  2. package/dist/{history-Bjxjxy_1.mjs → history-BAkRg2pq.mjs} +1 -1
  3. package/dist/{history-CyGeajMX.mjs → history-Dn1bbCcI.mjs} +1 -1
  4. package/dist/{history.vue_vue_type_script_setup_true_lang-dd7Qrf3A.mjs → history.vue_vue_type_script_setup_true_lang-CgrLgBqg.mjs} +76 -75
  5. package/dist/{history.vue_vue_type_script_setup_true_lang-DzyW9ohx.mjs → history.vue_vue_type_script_setup_true_lang-Dl65zcTa.mjs} +136 -149
  6. package/dist/{index-I-KFULpq.mjs → index-A0dvO46M.mjs} +416 -415
  7. package/dist/{index-Csk-TNBj.mjs → index-BOrI7JtW.mjs} +2 -2
  8. package/dist/{index-BMj5XmMX.mjs → index-BRU67qDa.mjs} +227 -240
  9. package/dist/{index-C-A0Y3EK.mjs → index-BTCLMpHR.mjs} +59 -63
  10. package/dist/index-CE4_NZLb.mjs +129 -0
  11. package/dist/index-CGc-CaEO.mjs +91 -0
  12. package/dist/{index-vIbGxvHd.mjs → index-CaaOEjHM.mjs} +2 -2
  13. package/dist/{index-BpcmzxBU.mjs → index-CbEHaatk.mjs} +3 -3
  14. package/dist/index-Dp6vdCsP.mjs +713 -0
  15. package/dist/{index-CGyzqfPx.mjs → index-DsEuGxTJ.mjs} +216 -229
  16. package/dist/{index-DsTHP6ez.mjs → index-DzN2x713.mjs} +46 -46
  17. package/dist/{index-BA1OfmNb.mjs → index-oJY5i5R_.mjs} +2 -2
  18. package/dist/{index-x556wvD_.mjs → index-vF1PDwWz.mjs} +214 -229
  19. package/dist/index-yz18Lhpm.mjs +113 -0
  20. package/dist/index.mjs +1 -1
  21. package/dist/{merchant-BENZD2R4.mjs → merchant-u4dNCa0T.mjs} +1 -1
  22. package/dist/{merchant.vue_vue_type_script_setup_true_lang-BH_Fe-pn.mjs → merchant.vue_vue_type_script_setup_true_lang-CvB7L7G7.mjs} +2 -2
  23. package/dist/{pay-BK10dbR-.mjs → pay-CvwrYB4j.mjs} +1 -1
  24. package/dist/{pay-D04R69xf.mjs → pay-Db-UEae3.mjs} +2 -2
  25. package/dist/{payPal-C5Hhq3pQ.mjs → payPal-3RoPmLkF.mjs} +20 -21
  26. package/dist/{payPal-Bfu4en0b.mjs → payPal-Cm1ZmJdL.mjs} +7 -8
  27. package/dist/{sale-Cki0rZ6-.mjs → sale-CuEqsPD7.mjs} +1 -1
  28. package/dist/{sale.vue_vue_type_script_setup_true_lang-C1gJAEgg.mjs → sale.vue_vue_type_script_setup_true_lang-DXUIMGjh.mjs} +1 -1
  29. package/dist/style.css +1 -1
  30. package/dist/{today-DFnsrdAZ.mjs → today-C1jwQmNs.mjs} +1 -1
  31. package/dist/{today-DYd5N03E.mjs → today-ZrG0UNrv.mjs} +1 -1
  32. package/dist/{today.vue_vue_type_script_setup_true_lang-Cf3MjsXi.mjs → today.vue_vue_type_script_setup_true_lang-BPQu6Gke.mjs} +74 -73
  33. package/dist/{today.vue_vue_type_script_setup_true_lang-D2JX696c.mjs → today.vue_vue_type_script_setup_true_lang-CZqnx44q.mjs} +116 -129
  34. package/dist/{trend-3ibJo3lK.mjs → trend-XEzpdsLj.mjs} +1 -1
  35. package/dts/src/api/settle/agent.d.ts +15 -0
  36. package/package.json +2 -2
  37. package/dist/constant-CtDv38CM.mjs +0 -24
  38. package/dist/index-C6Tt7EGW.mjs +0 -726
  39. package/dist/index-D9OMutL6.mjs +0 -64
  40. package/dist/index-Doq8ZiUn.mjs +0 -136
  41. package/dist/index-V8g7-RWq.mjs +0 -95
  42. package/dist/tokenExt-SHK5rrb5.mjs +0 -31
@@ -0,0 +1,32 @@
1
+ var t = Object.defineProperty;
2
+ var a = (r, s, e) => s in r ? t(r, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[s] = e;
3
+ var i = (r, s, e) => a(r, typeof s != "symbol" ? s + "" : s, e);
4
+ import { reactive as n } from "vue";
5
+ import { infoApi as u } from "xyvcard-agent";
6
+ class o {
7
+ constructor() {
8
+ // 用户信息缓存
9
+ i(this, "userInfoMap", /* @__PURE__ */ new Map());
10
+ // 默认用户信息
11
+ i(this, "defauleUserInfo", n({}));
12
+ }
13
+ // 获取用户信息
14
+ userInfo(s) {
15
+ if (s == null || s === "")
16
+ return this.defauleUserInfo;
17
+ if (!this.userInfoMap.has(s)) {
18
+ const e = n({});
19
+ this.userInfoMap.set(s, e), u.findById({ agentCode: s }).then((f) => {
20
+ Object.assign(e, f.data);
21
+ });
22
+ }
23
+ return this.userInfoMap.get(s);
24
+ }
25
+ }
26
+ const p = new o();
27
+ function l(r) {
28
+ return p.userInfo(r).agentAlias;
29
+ }
30
+ export {
31
+ l as g
32
+ };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./history.vue_vue_type_script_setup_true_lang-DzyW9ohx.mjs";
1
+ import { _ as f } from "./history.vue_vue_type_script_setup_true_lang-Dl65zcTa.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-dd7Qrf3A.mjs";
1
+ import { _ as f } from "./history.vue_vue_type_script_setup_true_lang-CgrLgBqg.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,46 +1,47 @@
1
- import { defineComponent as q, getCurrentInstance as x, ref as b, onActivated as G, resolveComponent as s, createElementBlock as g, openBlock as i, createVNode as a, withCtx as l, withKeys as w, unref as o, Fragment as J, renderList as O, createBlock as C, withDirectives as W, vShow as X, createTextVNode as _, toDisplayString as f, createCommentVNode as Z, isRef as I } from "vue";
2
- import { useI18n as ee } from "vue-i18n";
3
- import { useUserStore as M, clearEmpty as te, request as ae, useTableHooks as le } from "jmash-core";
4
- import { channelApi as ne } from "xyvcard-merchant";
5
- import { tokenExt as S } from "xyvcard-agent";
6
- import { D } from "./index-V8g7-RWq.mjs";
7
- import { DateRange as oe } from "xyvcard-insts";
1
+ import { defineComponent as K, getCurrentInstance as Q, ref as D, onActivated as q, resolveComponent as s, createElementBlock as b, openBlock as u, createVNode as a, withCtx as l, withKeys as R, unref as o, Fragment as x, renderList as G, createBlock as w, withDirectives as J, vShow as O, createTextVNode as g, toDisplayString as f, createCommentVNode as W, isRef as C } from "vue";
2
+ import { useI18n as X } from "vue-i18n";
3
+ import { useUserStore as I, clearEmpty as Z, request as ee, useTableHooks as te } from "jmash-core";
4
+ import { channelApi as ae } from "xyvcard-merchant";
5
+ import { tokenExt as le } from "xyvcard-agent";
6
+ import { D as v } from "./index-yz18Lhpm.mjs";
7
+ import { DateRange as ne } from "xyvcard-insts";
8
+ import { g as oe } from "./agent-BXhE-jbg.mjs";
8
9
  class re {
9
- getKey(d) {
10
+ getKey(i) {
10
11
  return {
11
- receiptId: d.receiptId
12
+ receiptId: i.receiptId
12
13
  };
13
14
  }
14
15
  // 查询翻页信息划款信息查询-到账(历史)
15
- findPage(d) {
16
- const h = M().user.tenant;
17
- return te(d), ae({
18
- url: "/v1/settle/receipt/my/page/" + h,
16
+ findPage(i) {
17
+ const _ = I().user.tenant;
18
+ return Z(i), ee({
19
+ url: "/v1/settle/receipt/my/page/" + _,
19
20
  method: "get",
20
- params: d
21
+ params: i
21
22
  });
22
23
  }
23
24
  }
24
- const se = new re(), ue = { class: "app-container" }, de = { key: 0 }, ie = { key: 1 }, _e = /* @__PURE__ */ q({
25
+ const se = new re(), de = { class: "app-container" }, ie = { key: 0 }, ue = { key: 1 }, he = /* @__PURE__ */ K({
25
26
  __name: "history",
26
- setup(k) {
27
- const { t: d } = ee();
28
- D.instsBizDict.useValues();
29
- const { proxy: h } = x(), r = b({
30
- tokenExt: S.getTokenExt(M().user.tenant)
31
- }), R = b([]), N = localStorage.getItem("selectMerchantId");
32
- ne.myFindList({ merchantId: N }).then((n) => {
33
- R.value = n.data.results;
27
+ setup(S) {
28
+ const { t: i } = X();
29
+ v.instsBizDict.useValues();
30
+ const { proxy: _ } = Q(), r = D({
31
+ tokenExt: le.getTokenExt(I().user.tenant)
32
+ }), M = D([]), k = localStorage.getItem("selectMerchantId");
33
+ ae.myFindList({ merchantId: k }).then((n) => {
34
+ M.value = n.data.results;
34
35
  });
35
- const V = b(S.getCurrentRole(M().user.tenant)), {
36
- tableHooks: u,
37
- multipleTableRef: $,
38
- queryFormRef: Y,
39
- listLoading: A,
40
- tableData: E,
36
+ const {
37
+ tableHooks: d,
38
+ multipleTableRef: N,
39
+ queryFormRef: V,
40
+ listLoading: $,
41
+ tableData: Y,
41
42
  total: y
42
- } = le(d, se, r);
43
- let p = b([
43
+ } = te(i, se, r);
44
+ let p = D([
44
45
  // 序号
45
46
  {
46
47
  label: "settleTradeReceipt.index",
@@ -117,25 +118,25 @@ const se = new re(), ue = { class: "app-container" }, de = { key: 0 }, ie = { ke
117
118
  isColumn: !0
118
119
  }
119
120
  ]);
120
- function U(n) {
121
- u.selectionRows.value = n;
121
+ function A(n) {
122
+ d.selectionRows.value = n;
122
123
  }
123
- function z(n) {
124
- u.handleSort(n.prop, n.order);
124
+ function U(n) {
125
+ d.handleSort(n.prop, n.order);
125
126
  }
126
- return G(() => {
127
- u.getList();
127
+ return q(() => {
128
+ d.getList();
128
129
  }), (n, t) => {
129
- const j = s("el-input"), m = s("el-form-item"), c = s("el-col"), B = s("el-option"), L = s("el-select"), v = s("el-row"), T = s("el-button"), P = s("el-form"), F = s("jmash-column-select"), H = s("jmash-table"), K = s("jmash-pagination"), Q = s("el-card");
130
- return i(), g("div", ue, [
131
- a(P, {
130
+ const E = s("el-input"), m = s("el-form-item"), c = s("el-col"), z = s("el-option"), j = s("el-select"), h = s("el-row"), T = s("el-button"), B = s("el-form"), L = s("jmash-column-select"), P = s("jmash-table"), F = s("jmash-pagination"), H = s("el-card");
131
+ return u(), b("div", de, [
132
+ a(B, {
132
133
  ref_key: "queryFormRef",
133
- ref: Y,
134
+ ref: V,
134
135
  model: r.value,
135
136
  inline: !0
136
137
  }, {
137
138
  default: l(() => [
138
- a(v, null, {
139
+ a(h, null, {
139
140
  default: l(() => [
140
141
  a(c, { span: 6 }, {
141
142
  default: l(() => [
@@ -144,11 +145,11 @@ const se = new re(), ue = { class: "app-container" }, de = { key: 0 }, ie = { ke
144
145
  prop: "termNo"
145
146
  }, {
146
147
  default: l(() => [
147
- a(j, {
148
+ a(E, {
148
149
  modelValue: r.value.termNo,
149
150
  "onUpdate:modelValue": t[0] || (t[0] = (e) => r.value.termNo = e),
150
151
  placeholder: n.$t("settleTradeReceipt.termNoRead"),
151
- onKeyup: t[1] || (t[1] = w((e) => o(u).handleQuery(), ["enter"])),
152
+ onKeyup: t[1] || (t[1] = R((e) => o(d).handleQuery(), ["enter"])),
152
153
  class: "!w-[203px]"
153
154
  }, null, 8, ["modelValue", "placeholder"])
154
155
  ]),
@@ -164,19 +165,19 @@ const se = new re(), ue = { class: "app-container" }, de = { key: 0 }, ie = { ke
164
165
  prop: "channelId"
165
166
  }, {
166
167
  default: l(() => [
167
- a(L, {
168
+ a(j, {
168
169
  modelValue: r.value.channelId,
169
170
  "onUpdate:modelValue": t[2] || (t[2] = (e) => r.value.channelId = e),
170
171
  placeholder: n.$t("settleTradeAnalysis.channelIdRead"),
171
- onKeyup: t[3] || (t[3] = w((e) => o(u).handleQuery(), ["enter"])),
172
+ onKeyup: t[3] || (t[3] = R((e) => o(d).handleQuery(), ["enter"])),
172
173
  class: "!w-[203px]",
173
174
  filterable: "",
174
175
  clearable: ""
175
176
  }, {
176
177
  default: l(() => [
177
- (i(!0), g(J, null, O(R.value, (e) => (i(), C(B, {
178
+ (u(!0), b(x, null, G(M.value, (e) => (u(), w(z, {
178
179
  key: e.channelId,
179
- label: o(D).instsBizDict.getValue(e.instsId) || e.instsId,
180
+ label: o(v).instsBizDict.getValue(e.instsId) || e.instsId,
180
181
  value: e.channelId
181
182
  }, null, 8, ["label", "value"]))), 128))
182
183
  ]),
@@ -195,7 +196,7 @@ const se = new re(), ue = { class: "app-container" }, de = { key: 0 }, ie = { ke
195
196
  prop: "transferMoneyDateStart"
196
197
  }, {
197
198
  default: l(() => [
198
- a(o(oe), {
199
+ a(o(ne), {
199
200
  "start-time": r.value.transferMoneyDateStart,
200
201
  "onUpdate:startTime": t[4] || (t[4] = (e) => r.value.transferMoneyDateStart = e),
201
202
  "end-time": r.value.transferMoneyDateEnd,
@@ -209,8 +210,8 @@ const se = new re(), ue = { class: "app-container" }, de = { key: 0 }, ie = { ke
209
210
  ]),
210
211
  _: 1
211
212
  }, 8, ["label"]),
212
- W(a(m, { prop: "transferMoneyDateEnd" }, null, 512), [
213
- [X, !1]
213
+ J(a(m, { prop: "transferMoneyDateEnd" }, null, 512), [
214
+ [O, !1]
214
215
  ])
215
216
  ]),
216
217
  _: 1
@@ -218,7 +219,7 @@ const se = new re(), ue = { class: "app-container" }, de = { key: 0 }, ie = { ke
218
219
  ]),
219
220
  _: 1
220
221
  }),
221
- a(v, null, {
222
+ a(h, null, {
222
223
  default: l(() => [
223
224
  a(c, { span: 24 }, {
224
225
  default: l(() => [
@@ -226,18 +227,18 @@ const se = new re(), ue = { class: "app-container" }, de = { key: 0 }, ie = { ke
226
227
  default: l(() => [
227
228
  a(T, {
228
229
  type: "primary",
229
- onClick: t[6] || (t[6] = (e) => o(u).handleQuery())
230
+ onClick: t[6] || (t[6] = (e) => o(d).handleQuery())
230
231
  }, {
231
232
  default: l(() => [
232
- _(f(n.$t("common.search")), 1)
233
+ g(f(n.$t("common.search")), 1)
233
234
  ]),
234
235
  _: 1
235
236
  }),
236
237
  a(T, {
237
- onClick: t[7] || (t[7] = (e) => o(u).resetQuery())
238
+ onClick: t[7] || (t[7] = (e) => o(d).resetQuery())
238
239
  }, {
239
240
  default: l(() => [
240
- _(f(n.$t("common.reset")), 1)
241
+ g(f(n.$t("common.reset")), 1)
241
242
  ]),
242
243
  _: 1
243
244
  })
@@ -253,21 +254,21 @@ const se = new re(), ue = { class: "app-container" }, de = { key: 0 }, ie = { ke
253
254
  ]),
254
255
  _: 1
255
256
  }, 8, ["model"]),
256
- a(Q, {
257
+ a(H, {
257
258
  shadow: "never",
258
259
  class: "table-container"
259
260
  }, {
260
261
  header: l(() => [
261
- a(v, null, {
262
+ a(h, null, {
262
263
  default: l(() => [
263
264
  a(c, {
264
265
  span: 24,
265
266
  class: "container-float"
266
267
  }, {
267
268
  default: l(() => [
268
- a(F, {
269
+ a(L, {
269
270
  modelValue: o(p),
270
- "onUpdate:modelValue": t[8] || (t[8] = (e) => I(p) ? p.value = e : p = e),
271
+ "onUpdate:modelValue": t[8] || (t[8] = (e) => C(p) ? p.value = e : p = e),
271
272
  "label-name": "settle/settle-trade-receipt"
272
273
  }, null, 8, ["modelValue"])
273
274
  ]),
@@ -278,40 +279,40 @@ const se = new re(), ue = { class: "app-container" }, de = { key: 0 }, ie = { ke
278
279
  })
279
280
  ]),
280
281
  footer: l(() => [
281
- o(y) > 0 ? (i(), C(K, {
282
+ o(y) > 0 ? (u(), w(F, {
282
283
  key: 0,
283
284
  total: o(y),
284
- "onUpdate:total": t[9] || (t[9] = (e) => I(y) ? y.value = e : null),
285
+ "onUpdate:total": t[9] || (t[9] = (e) => C(y) ? y.value = e : null),
285
286
  "current-page": r.value.curPage,
286
287
  "onUpdate:currentPage": t[10] || (t[10] = (e) => r.value.curPage = e),
287
288
  "page-size": r.value.pageSize,
288
289
  "onUpdate:pageSize": t[11] || (t[11] = (e) => r.value.pageSize = e),
289
- onPagination: t[12] || (t[12] = (e) => o(u).getList())
290
- }, null, 8, ["total", "current-page", "page-size"])) : Z("", !0)
290
+ onPagination: t[12] || (t[12] = (e) => o(d).getList())
291
+ }, null, 8, ["total", "current-page", "page-size"])) : W("", !0)
291
292
  ]),
292
293
  default: l(() => [
293
- a(H, {
294
+ a(P, {
294
295
  ref_key: "multipleTableRef",
295
- ref: $,
296
+ ref: N,
296
297
  "row-key": "receiptId",
297
298
  isSelection: !1,
298
- "list-loading": o(A),
299
- data: o(E),
299
+ "list-loading": o($),
300
+ data: o(Y),
300
301
  "table-label": o(p),
301
- onSelectionChange: U,
302
- onSortChange: z
302
+ onSelectionChange: A,
303
+ onSortChange: U
303
304
  }, {
304
305
  instsId: l((e) => [
305
- _(f(o(D).instsBizDict.getValue(e.data.row.instsId)), 1)
306
+ g(f(o(v).instsBizDict.getValue(e.data.row.instsId)), 1)
306
307
  ]),
307
308
  transferMoneyDate: l((e) => [
308
- e.data.row.transferMoneyDate ? (i(), g("span", de, f(o(h).$moment.formatDate(
309
+ e.data.row.transferMoneyDate ? (u(), b("span", ie, f(o(_).$moment.formatDate(
309
310
  new Date(e.data.row.transferMoneyDate),
310
311
  "YYYY-MM-DD HH:mm"
311
- )), 1)) : (i(), g("span", ie))
312
+ )), 1)) : (u(), b("span", ue))
312
313
  ]),
313
314
  agentCode: l((e) => [
314
- _(f(V.value.agentAlias), 1)
315
+ g(f(o(oe)(e.data.row.agentCode)), 1)
315
316
  ]),
316
317
  _: 1
317
318
  }, 8, ["list-loading", "data", "table-label"])
@@ -323,5 +324,5 @@ const se = new re(), ue = { class: "app-container" }, de = { key: 0 }, ie = { ke
323
324
  }
324
325
  });
325
326
  export {
326
- _e as _
327
+ he as _
327
328
  };