xyvcard-settle 0.0.17 → 0.0.18

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,7 +1,7 @@
1
- import { defineComponent as K, getCurrentInstance as Y, ref as g, resolveComponent as s, createElementBlock as R, openBlock as f, createVNode as a, withCtx as l, withKeys as w, unref as o, Fragment as q, renderList as G, createBlock as C, createTextVNode as b, toDisplayString as y, createCommentVNode as J, isRef as k } from "vue";
1
+ import { defineComponent as K, getCurrentInstance as Y, ref as g, resolveComponent as s, createElementBlock as w, openBlock as y, createVNode as a, withCtx as l, withKeys as R, unref as o, Fragment as q, renderList as G, createBlock as C, createTextVNode as m, toDisplayString as p, createCommentVNode as J, isRef as k } from "vue";
2
2
  import { useUserStore as O, clearEmpty as W, request as X, useTableHooks as Z } from "jmash-core";
3
3
  import { useI18n as ee } from "vue-i18n";
4
- import { D as m, I as te } from "./index-Bn8Vw_ua.mjs";
4
+ import { D as c, I as te } from "./index-Bn8Vw_ua.mjs";
5
5
  class le {
6
6
  getKey(d) {
7
7
  return {
@@ -23,20 +23,20 @@ const ae = new le(), ne = { class: "app-container" }, de = /* @__PURE__ */ K({
23
23
  __name: "today",
24
24
  setup(V) {
25
25
  const { t: d } = ee();
26
- m.instsBizDict.useValues(), m.merchantBizDict.useValues();
27
- const { proxy: h } = Y(), M = localStorage.getItem("tokenExt"), I = g([]), r = g({
26
+ c.instsBizDict.useValues(), c.merchantBizDict.useValues();
27
+ const { proxy: h } = Y(), M = localStorage.getItem("tokenExt"), T = g([]), r = g({
28
28
  tokenExt: M ?? ""
29
29
  });
30
30
  te.myFindList({}).then((n) => {
31
- I.value = n.data.results;
31
+ T.value = n.data.results;
32
32
  });
33
33
  const {
34
34
  tableHooks: u,
35
35
  multipleTableRef: S,
36
36
  queryFormRef: D,
37
- listLoading: $,
38
- tableData: z,
39
- total: p
37
+ listLoading: A,
38
+ tableData: $,
39
+ total: f
40
40
  } = Z(d, ae, r);
41
41
  let i = g([
42
42
  // 序号
@@ -93,6 +93,8 @@ const ae = new le(), ne = { class: "app-container" }, de = /* @__PURE__ */ K({
93
93
  {
94
94
  label: "settleTradeReceipt.feeAmt",
95
95
  prop: "feeAmt",
96
+ slotName: "feeAmt",
97
+ columnType: "slot",
96
98
  width: "150",
97
99
  sortable: "custom",
98
100
  isColumn: !0
@@ -122,21 +124,21 @@ const ae = new le(), ne = { class: "app-container" }, de = /* @__PURE__ */ K({
122
124
  isColumn: !0
123
125
  }
124
126
  ]);
125
- function N() {
127
+ function z() {
126
128
  r.value.merchantId = "", r.value.channelId = "";
127
129
  }
128
- function j(n) {
130
+ function N(n) {
129
131
  u.selectionRows.value = n;
130
132
  }
131
- function A(n) {
133
+ function j(n) {
132
134
  u.handleSort(n.prop, n.order);
133
135
  }
134
136
  function B() {
135
137
  u.handleQuery(), u.getList();
136
138
  }
137
139
  return (n, t) => {
138
- const U = s("jmash-select"), _ = s("el-form-item"), c = s("el-col"), x = s("el-option"), L = s("el-select"), T = s("el-button"), v = s("el-row"), P = s("el-form"), E = s("jmash-column-select"), Q = s("jmash-table"), F = s("jmash-pagination"), H = s("el-card");
139
- return f(), R("div", ne, [
140
+ const U = s("jmash-select"), _ = s("el-form-item"), b = s("el-col"), x = s("el-option"), L = s("el-select"), I = s("el-button"), v = s("el-row"), P = s("el-form"), E = s("jmash-column-select"), Q = s("jmash-table"), F = s("jmash-pagination"), H = s("el-card");
141
+ return y(), w("div", ne, [
140
142
  a(P, {
141
143
  ref_key: "queryFormRef",
142
144
  ref: D,
@@ -146,7 +148,7 @@ const ae = new le(), ne = { class: "app-container" }, de = /* @__PURE__ */ K({
146
148
  default: l(() => [
147
149
  a(v, null, {
148
150
  default: l(() => [
149
- a(c, { span: 6 }, {
151
+ a(b, { span: 6 }, {
150
152
  default: l(() => [
151
153
  a(_, {
152
154
  label: n.$t("payTrade.merchantId"),
@@ -157,8 +159,8 @@ const ae = new le(), ne = { class: "app-container" }, de = /* @__PURE__ */ K({
157
159
  modelValue: r.value.merchantId,
158
160
  "onUpdate:modelValue": t[0] || (t[0] = (e) => r.value.merchantId = e),
159
161
  placeholder: n.$t("payTrade.merchantIdRead"),
160
- data: o(m).merchantBizDict.values,
161
- onKeyup: t[1] || (t[1] = w((e) => o(u).handleQuery(), ["enter"])),
162
+ data: o(c).merchantBizDict.values,
163
+ onKeyup: t[1] || (t[1] = R((e) => o(u).handleQuery(), ["enter"])),
162
164
  class: "!w-[203px]",
163
165
  filterable: "",
164
166
  clearable: ""
@@ -169,7 +171,7 @@ const ae = new le(), ne = { class: "app-container" }, de = /* @__PURE__ */ K({
169
171
  ]),
170
172
  _: 1
171
173
  }),
172
- a(c, { span: 6 }, {
174
+ a(b, { span: 6 }, {
173
175
  default: l(() => [
174
176
  a(_, {
175
177
  label: n.$t("settleTradeAnalysis.channelId"),
@@ -180,15 +182,15 @@ const ae = new le(), ne = { class: "app-container" }, de = /* @__PURE__ */ K({
180
182
  modelValue: r.value.channelId,
181
183
  "onUpdate:modelValue": t[2] || (t[2] = (e) => r.value.channelId = e),
182
184
  placeholder: n.$t("settleTradeAnalysis.channelIdRead"),
183
- onKeyup: t[3] || (t[3] = w((e) => o(u).handleQuery(), ["enter"])),
185
+ onKeyup: t[3] || (t[3] = R((e) => o(u).handleQuery(), ["enter"])),
184
186
  class: "!w-[203px]",
185
187
  filterable: "",
186
188
  clearable: ""
187
189
  }, {
188
190
  default: l(() => [
189
- (f(!0), R(q, null, G(I.value, (e) => (f(), C(x, {
191
+ (y(!0), w(q, null, G(T.value, (e) => (y(), C(x, {
190
192
  key: e.channelId,
191
- label: o(m).instsBizDict.getValue(e.instsId) || e.instsId,
193
+ label: o(c).instsBizDict.getValue(e.instsId) || e.instsId,
192
194
  value: e.channelId
193
195
  }, null, 8, ["label", "value"]))), 128))
194
196
  ]),
@@ -200,24 +202,24 @@ const ae = new le(), ne = { class: "app-container" }, de = /* @__PURE__ */ K({
200
202
  ]),
201
203
  _: 1
202
204
  }),
203
- a(c, { span: 12 }, {
205
+ a(b, { span: 12 }, {
204
206
  default: l(() => [
205
207
  a(_, { class: "search-btn" }, {
206
208
  default: l(() => [
207
- a(T, {
209
+ a(I, {
208
210
  type: "primary",
209
211
  onClick: t[4] || (t[4] = (e) => B())
210
212
  }, {
211
213
  default: l(() => [
212
- b(y(n.$t("common.search")), 1)
214
+ m(p(n.$t("common.search")), 1)
213
215
  ]),
214
216
  _: 1
215
217
  }),
216
- a(T, {
217
- onClick: t[5] || (t[5] = (e) => N())
218
+ a(I, {
219
+ onClick: t[5] || (t[5] = (e) => z())
218
220
  }, {
219
221
  default: l(() => [
220
- b(y(n.$t("common.reset")), 1)
222
+ m(p(n.$t("common.reset")), 1)
221
223
  ]),
222
224
  _: 1
223
225
  })
@@ -240,7 +242,7 @@ const ae = new le(), ne = { class: "app-container" }, de = /* @__PURE__ */ K({
240
242
  header: l(() => [
241
243
  a(v, null, {
242
244
  default: l(() => [
243
- a(c, {
245
+ a(b, {
244
246
  span: 24,
245
247
  class: "container-float"
246
248
  }, {
@@ -258,10 +260,10 @@ const ae = new le(), ne = { class: "app-container" }, de = /* @__PURE__ */ K({
258
260
  })
259
261
  ]),
260
262
  footer: l(() => [
261
- o(p) > 0 ? (f(), C(F, {
263
+ o(f) > 0 ? (y(), C(F, {
262
264
  key: 0,
263
- total: o(p),
264
- "onUpdate:total": t[7] || (t[7] = (e) => k(p) ? p.value = e : null),
265
+ total: o(f),
266
+ "onUpdate:total": t[7] || (t[7] = (e) => k(f) ? f.value = e : null),
265
267
  "current-page": r.value.curPage,
266
268
  "onUpdate:currentPage": t[8] || (t[8] = (e) => r.value.curPage = e),
267
269
  "page-size": r.value.pageSize,
@@ -275,20 +277,23 @@ const ae = new le(), ne = { class: "app-container" }, de = /* @__PURE__ */ K({
275
277
  ref: S,
276
278
  "row-key": "receiptId",
277
279
  isSelection: !1,
278
- "list-loading": o($),
279
- data: o(z),
280
+ "list-loading": o(A),
281
+ data: o($),
280
282
  "table-label": o(i),
281
- onSelectionChange: j,
282
- onSortChange: A
283
+ onSelectionChange: N,
284
+ onSortChange: j
283
285
  }, {
286
+ feeAmt: l((e) => [
287
+ m(p(e.data.row.feeAmt * 100) + "% ", 1)
288
+ ]),
284
289
  transferMoneyTime: l((e) => [
285
- b(y(o(h).$moment.formatDate(
290
+ m(p(o(h).$moment.formatDate(
286
291
  e.data.row.transferMoneyTime,
287
292
  "YYYY-MM-DD HH:mm"
288
293
  )), 1)
289
294
  ]),
290
295
  instsId: l((e) => [
291
- b(y(o(m).instsBizDict.getValue(e.data.row.instsId)), 1)
296
+ m(p(o(c).instsBizDict.getValue(e.data.row.instsId)), 1)
292
297
  ]),
293
298
  _: 1
294
299
  }, 8, ["list-loading", "data", "table-label"])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xyvcard-settle",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "private": false,
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dts/src/index.d.ts",