xyvcard-settle 0.0.1

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 (54) hide show
  1. package/README.md +51 -0
  2. package/dist/_plugin-vue_export-helper-CHgC5LLL-BmOybl0N.mjs +9 -0
  3. package/dist/config-R2xCEQim-DIKcGx0K.mjs +1914 -0
  4. package/dist/constant-CRJQFGuS.mjs +13 -0
  5. package/dist/free-DaGOIXVI-B4EUrY1S.mjs +82 -0
  6. package/dist/history-BI8tBxQK.mjs +4 -0
  7. package/dist/history.vue_vue_type_script_setup_true_lang-Bt76Bf2d.mjs +357 -0
  8. package/dist/index-BIkG_C6y.mjs +576 -0
  9. package/dist/index-BOfabDwA.mjs +430 -0
  10. package/dist/index-BtIY2iCq-Lnfhe6EF.mjs +10 -0
  11. package/dist/index-C0VdCZ5o-BNScagBV.mjs +4699 -0
  12. package/dist/index-D0t5a2Ea.mjs +508 -0
  13. package/dist/index-D1OlL970.mjs +49 -0
  14. package/dist/index-DAOhjHwC-Czfft2rT.mjs +66 -0
  15. package/dist/index-Du5bhBaC.mjs +9532 -0
  16. package/dist/index-iRoYfjIt-BqHR0buV.mjs +46 -0
  17. package/dist/index.mjs +99 -0
  18. package/dist/info-B9D5Y0O1-DEwKlMld.mjs +564 -0
  19. package/dist/info-Crc5gYV2-DBeit1HQ.mjs +1257 -0
  20. package/dist/info-DGVdsQCx-CKD7-DIe.mjs +160 -0
  21. package/dist/info-DzkZlnCT-BybQZHaY.mjs +139 -0
  22. package/dist/info-JTzVjKGk-DYLiAYjO.mjs +237 -0
  23. package/dist/product-BJX8VysN-D3xaS1Fd.mjs +731 -0
  24. package/dist/today-CP9UcD78.mjs +4 -0
  25. package/dist/today.vue_vue_type_script_setup_true_lang-TJfZj_xB.mjs +349 -0
  26. package/dts/src/App.vue.d.ts +2 -0
  27. package/dts/src/api/settle/dict.d.ts +13 -0
  28. package/dts/src/api/settle/index.d.ts +10 -0
  29. package/dts/src/api/settle/pay-trade/index.d.ts +8 -0
  30. package/dts/src/api/settle/pay-trade/types.d.ts +81 -0
  31. package/dts/src/api/settle/settle-trade-analysis/index.d.ts +8 -0
  32. package/dts/src/api/settle/settle-trade-analysis/types.d.ts +53 -0
  33. package/dts/src/api/settle/settle-trade-merchant/index.d.ts +8 -0
  34. package/dts/src/api/settle/settle-trade-merchant/types.d.ts +65 -0
  35. package/dts/src/api/settle/settle-trade-receipt/index.d.ts +8 -0
  36. package/dts/src/api/settle/settle-trade-receipt/types.d.ts +62 -0
  37. package/dts/src/api/settle/settle-trade-receipt-today/index.d.ts +8 -0
  38. package/dts/src/api/settle/settle-trade-receipt-today/types.d.ts +62 -0
  39. package/dts/src/constant.d.ts +6 -0
  40. package/dts/src/index.d.ts +5 -0
  41. package/dts/src/lang/index.d.ts +1 -0
  42. package/dts/src/lang/settle/en.d.ts +0 -0
  43. package/dts/src/lang/settle/zh-cn.d.ts +82 -0
  44. package/dts/src/main.d.ts +4 -0
  45. package/dts/src/permission.d.ts +1 -0
  46. package/dts/src/utils/returnBizLay.d.ts +2 -0
  47. package/dts/src/utils/timePlugin.d.ts +5 -0
  48. package/dts/src/views/payment/pay-trade/index.vue.d.ts +2 -0
  49. package/dts/src/views/payment/settle-trade-analysis/index.vue.d.ts +2 -0
  50. package/dts/src/views/payment/settle-trade-merchant/index.vue.d.ts +2 -0
  51. package/dts/src/views/payment/settle-trade-receipt/history.vue.d.ts +2 -0
  52. package/dts/src/views/payment/settle-trade-receipt/index.vue.d.ts +2 -0
  53. package/dts/src/views/payment/settle-trade-receipt/today.vue.d.ts +2 -0
  54. package/package.json +61 -0
@@ -0,0 +1,731 @@
1
+ import { defineComponent as ae, mergeModels as te, ref as U, useModel as ne, reactive as O, resolveComponent as n, createBlock as D, openBlock as g, withCtx as t, createVNode as a, unref as u, createElementVNode as m, createTextVNode as b, toDisplayString as f, createElementBlock as E, createCommentVNode as ee, onBeforeMount as se, resolveDirective as ce, withKeys as Z, withDirectives as K, isRef as oe } from "vue";
2
+ import { useTableHooks as ie, routerUtil as pe } from "jmash-core";
3
+ import { useI18n as de } from "vue-i18n";
4
+ import { useRoute as ue, useRouter as me } from "vue-router";
5
+ import { z as fe, W as M, q as he, a as be } from "./index-Du5bhBaC.mjs";
6
+ import { ElMessage as x } from "element-plus";
7
+ import { c as le, s as re } from "./index-iRoYfjIt-BqHR0buV.mjs";
8
+ /*! Element Plus Icons Vue v2.3.1 */
9
+ var Ce = /* @__PURE__ */ ae({
10
+ name: "Plus",
11
+ __name: "plus",
12
+ setup(z) {
13
+ return (R, V) => (g(), E("svg", {
14
+ xmlns: "http://www.w3.org/2000/svg",
15
+ viewBox: "0 0 1024 1024"
16
+ }, [
17
+ m("path", {
18
+ fill: "currentColor",
19
+ d: "M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"
20
+ })
21
+ ]));
22
+ }
23
+ }), ve = Ce;
24
+ const ye = ["onClick"], ge = { class: "dialog-footer" }, Ve = /* @__PURE__ */ ae({
25
+ __name: "productEdit",
26
+ props: /* @__PURE__ */ te({
27
+ entityKey: {
28
+ type: Object,
29
+ default: () => {
30
+ }
31
+ }
32
+ }, {
33
+ modelValue: { type: Boolean },
34
+ modelModifiers: {}
35
+ }),
36
+ emits: /* @__PURE__ */ te(["refresh"], ["update:modelValue"]),
37
+ setup(z, { emit: R }) {
38
+ const { t: V } = de(), F = ue(), N = U(), s = ne(z, "modelValue");
39
+ le.mccCodesDict.useValues();
40
+ const p = R, C = U([
41
+ {
42
+ feeTypeCode: "",
43
+ minFreeRate: 0,
44
+ maxFreeRate: 0,
45
+ isCapping: !1,
46
+ capValue: void 0
47
+ }
48
+ ]);
49
+ let h = O({
50
+ requestId: Math.random() * 10 + "",
51
+ updateMask: "settlePeriod,productName,mccCodes,description"
52
+ });
53
+ const L = O({
54
+ settlePeriod: [
55
+ {
56
+ required: !0,
57
+ message: V("product.settlePeriodRequired"),
58
+ trigger: "blur"
59
+ }
60
+ ],
61
+ productName: [
62
+ {
63
+ required: !0,
64
+ message: V("product.productNameRequired"),
65
+ trigger: "blur"
66
+ }
67
+ ],
68
+ mccCodes: [
69
+ {
70
+ required: !0,
71
+ message: V("product.mccCodesRequired"),
72
+ trigger: "change"
73
+ }
74
+ ]
75
+ });
76
+ function Q(l) {
77
+ v(l), I(l, l.feeTypeCode);
78
+ }
79
+ function I(l, e) {
80
+ e && C.value.some(
81
+ (o) => o !== l && o.feeTypeCode === e
82
+ ) && (x.error("该费率类型已存在,请选择其他费率类型"), l.feeTypeCode = "");
83
+ }
84
+ function v(l) {
85
+ return l.feeTypeCode ? l.minFreeRate == null ? (x.error("最低费率不能为空"), !1) : l.maxFreeRate == null ? (x.error("最高费率不能为空"), !1) : l.capValue == null || l.capValue == null ? (l.capValue = void 0, !0) : l.minFreeRate != null && l.maxFreeRate != null && l.minFreeRate > l.maxFreeRate ? (x.error("最小费率不能大于最大费率"), !1) : !0 : (x.error("费率类型不能为空"), !1);
86
+ }
87
+ function H(l) {
88
+ const e = C.value.indexOf(l.row);
89
+ e !== 0 && C.value.splice(e, 1);
90
+ }
91
+ function y() {
92
+ C.value.push({
93
+ feeTypeCode: "",
94
+ minFreeRate: 0,
95
+ maxFreeRate: 0,
96
+ isCapping: !1,
97
+ capValue: void 0
98
+ });
99
+ }
100
+ const $ = z, W = Object.keys($.entityKey), S = U(W.length >= 1);
101
+ S.value && (M.findById($.entityKey).then(({ data: l }) => {
102
+ Object.assign(h, l);
103
+ }), he.findList({ productId: $.entityKey.productId }).then(({ data: l }) => {
104
+ l.results.forEach((e) => {
105
+ e.oldCapValue = e.capValue;
106
+ }), C.value = l.results;
107
+ }));
108
+ const Y = async () => {
109
+ var l;
110
+ await ((l = N.value) == null ? void 0 : l.validate((e) => {
111
+ if (e) {
112
+ let o = !0;
113
+ for (const c of C.value)
114
+ if (!v(c)) {
115
+ o = !1;
116
+ break;
117
+ }
118
+ o ? S.value ? M.update({
119
+ ...h,
120
+ freeConfigInfo: C.value,
121
+ instsId: F.query.instsId
122
+ }).then((c) => {
123
+ c.status === 200 && (x({
124
+ message: V("common.submitSuccess"),
125
+ type: "success"
126
+ }), s.value && (s.value = !1), p("refresh", c.status === 200));
127
+ }) : M.create({
128
+ ...h,
129
+ freeConfigInfo: C.value,
130
+ instsId: F.query.instsId
131
+ }).then((c) => {
132
+ c.status === 200 && (x({
133
+ message: V("common.submitSuccess"),
134
+ type: "success"
135
+ }), s.value && (s.value = !1), p("refresh", c.status === 200));
136
+ }) : console.log("表单提交失败");
137
+ }
138
+ }));
139
+ };
140
+ function j() {
141
+ s.value && (s.value = !1);
142
+ }
143
+ return (l, e) => {
144
+ const o = n("el-input"), c = n("el-form-item"), k = n("el-col"), q = n("jmash-dict-select"), w = n("el-tree-select"), A = n("el-row"), _ = n("el-table-column"), T = n("el-input-number"), G = n("el-table"), P = n("el-button"), J = n("el-form"), X = n("el-dialog");
145
+ return g(), D(X, {
146
+ modelValue: s.value,
147
+ "onUpdate:modelValue": e[4] || (e[4] = (r) => s.value = r),
148
+ onClose: j
149
+ }, {
150
+ footer: t(() => [
151
+ m("div", ge, [
152
+ a(P, { onClick: j }, {
153
+ default: t(() => [
154
+ b(f(l.$t("common.cancel")), 1)
155
+ ]),
156
+ _: 1
157
+ }),
158
+ a(P, {
159
+ type: "primary",
160
+ onClick: Y
161
+ }, {
162
+ default: t(() => [
163
+ b(f(l.$t("common.confirm")), 1)
164
+ ]),
165
+ _: 1
166
+ })
167
+ ])
168
+ ]),
169
+ default: t(() => [
170
+ a(J, {
171
+ ref_key: "productFormRef",
172
+ ref: N,
173
+ model: u(h),
174
+ "label-width": "100px",
175
+ rules: L
176
+ }, {
177
+ default: t(() => [
178
+ e[11] || (e[11] = m("div", { class: "title-content" }, "产品信息", -1)),
179
+ a(A, null, {
180
+ default: t(() => [
181
+ a(k, { span: 12 }, {
182
+ default: t(() => [
183
+ a(c, {
184
+ label: l.$t("product.productName"),
185
+ prop: "productName"
186
+ }, {
187
+ default: t(() => [
188
+ a(o, {
189
+ modelValue: u(h).productName,
190
+ "onUpdate:modelValue": e[0] || (e[0] = (r) => u(h).productName = r),
191
+ placeholder: l.$t("product.productNameRequired"),
192
+ maxlength: "15",
193
+ "show-word-limit": "",
194
+ clearable: ""
195
+ }, null, 8, ["modelValue", "placeholder"])
196
+ ]),
197
+ _: 1
198
+ }, 8, ["label"])
199
+ ]),
200
+ _: 1
201
+ }),
202
+ a(k, { span: 12 }, {
203
+ default: t(() => [
204
+ a(c, {
205
+ label: l.$t("product.settlePeriod"),
206
+ prop: "settlePeriod"
207
+ }, {
208
+ default: t(() => [
209
+ a(q, {
210
+ modelValue: u(h).settlePeriod,
211
+ "onUpdate:modelValue": e[1] || (e[1] = (r) => u(h).settlePeriod = r),
212
+ placeholder: l.$t("product.settlePeriodRequired"),
213
+ "type-code": u(re).DICT_SETTLEPERIOD_CODE,
214
+ clearable: "",
215
+ filterable: "",
216
+ class: "w-full"
217
+ }, null, 8, ["modelValue", "placeholder", "type-code"])
218
+ ]),
219
+ _: 1
220
+ }, 8, ["label"])
221
+ ]),
222
+ _: 1
223
+ }),
224
+ a(k, { span: 24 }, {
225
+ default: t(() => [
226
+ a(c, {
227
+ label: l.$t("product.mccCodes"),
228
+ prop: "mccCodes"
229
+ }, {
230
+ default: t(() => [
231
+ a(w, {
232
+ modelValue: u(h).mccCodes,
233
+ "onUpdate:modelValue": e[2] || (e[2] = (r) => u(h).mccCodes = r),
234
+ placeholder: l.$t("product.mccCodesRequired"),
235
+ data: u(le).mccCodesDict.values,
236
+ clearable: "",
237
+ class: "w-full",
238
+ multiple: "",
239
+ filterable: ""
240
+ }, null, 8, ["modelValue", "placeholder", "data"])
241
+ ]),
242
+ _: 1
243
+ }, 8, ["label"])
244
+ ]),
245
+ _: 1
246
+ }),
247
+ a(k, { span: 24 }, {
248
+ default: t(() => [
249
+ a(c, {
250
+ label: l.$t("product.description"),
251
+ prop: "description"
252
+ }, {
253
+ default: t(() => [
254
+ a(o, {
255
+ modelValue: u(h).description,
256
+ "onUpdate:modelValue": e[3] || (e[3] = (r) => u(h).description = r),
257
+ placeholder: l.$t("product.descriptionRequired"),
258
+ type: "textarea",
259
+ rows: 2,
260
+ maxlength: "100",
261
+ "show-word-limit": "",
262
+ clearable: ""
263
+ }, null, 8, ["modelValue", "placeholder"])
264
+ ]),
265
+ _: 1
266
+ }, 8, ["label"])
267
+ ]),
268
+ _: 1
269
+ })
270
+ ]),
271
+ _: 1
272
+ }),
273
+ e[12] || (e[12] = m("div", { class: "title-content" }, [
274
+ b(" 费率配置 "),
275
+ m("span", { style: { color: "red", "font-weight": "normal", "font-size": "12px" } }, "注:不设封顶值默认不封顶")
276
+ ], -1)),
277
+ a(G, {
278
+ data: C.value,
279
+ border: "",
280
+ style: { width: "100%" }
281
+ }, {
282
+ default: t(() => [
283
+ a(_, {
284
+ prop: "feeTypeCode",
285
+ label: l.$t("freeConfig.feeTypeCode"),
286
+ width: "230"
287
+ }, {
288
+ header: t(() => [
289
+ e[5] || (e[5] = m("span", { class: "required_red" }, "*", -1)),
290
+ m("span", null, f(l.$t("freeConfig.feeTypeCode")), 1)
291
+ ]),
292
+ default: t((r) => [
293
+ a(q, {
294
+ modelValue: r.row.feeTypeCode,
295
+ "onUpdate:modelValue": (i) => r.row.feeTypeCode = i,
296
+ placeholder: l.$t("freeConfig.feeTypeCodeRequired"),
297
+ "type-code": u(re).DICT_FEETYPE_CODE,
298
+ clearable: "",
299
+ filterable: "",
300
+ class: "w-full",
301
+ onChange: (i) => Q(r.row)
302
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "type-code", "onChange"])
303
+ ]),
304
+ _: 1
305
+ }, 8, ["label"]),
306
+ a(_, {
307
+ prop: "minFreeRate",
308
+ label: l.$t("freeConfig.minFreeRate")
309
+ }, {
310
+ header: t(() => [
311
+ e[6] || (e[6] = m("span", { class: "required_red" }, "*", -1)),
312
+ m("span", null, f(l.$t("freeConfig.minFreeRate")), 1)
313
+ ]),
314
+ default: t((r) => [
315
+ a(T, {
316
+ modelValue: r.row.minFreeRate,
317
+ "onUpdate:modelValue": (i) => r.row.minFreeRate = i,
318
+ precision: 2,
319
+ step: 0.01,
320
+ min: 0,
321
+ max: 100,
322
+ clearable: "",
323
+ style: { width: "85%" },
324
+ onChange: (i) => v(r.row)
325
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"]),
326
+ e[7] || (e[7] = m("span", { class: "distance-left" }, "%", -1))
327
+ ]),
328
+ _: 1
329
+ }, 8, ["label"]),
330
+ a(_, {
331
+ prop: "maxFreeRate",
332
+ label: l.$t("freeConfig.maxFreeRate")
333
+ }, {
334
+ header: t(() => [
335
+ e[8] || (e[8] = m("span", { class: "required_red" }, "*", -1)),
336
+ m("span", null, f(l.$t("freeConfig.maxFreeRate")), 1)
337
+ ]),
338
+ default: t((r) => [
339
+ a(T, {
340
+ modelValue: r.row.maxFreeRate,
341
+ "onUpdate:modelValue": (i) => r.row.maxFreeRate = i,
342
+ precision: 2,
343
+ step: 0.01,
344
+ min: 0,
345
+ max: 100,
346
+ clearable: "",
347
+ style: { width: "85%" },
348
+ onChange: (i) => v(r.row)
349
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"]),
350
+ e[9] || (e[9] = m("span", { class: "distance-left" }, "%", -1))
351
+ ]),
352
+ _: 1
353
+ }, 8, ["label"]),
354
+ a(_, {
355
+ prop: "capValue",
356
+ label: l.$t("freeConfig.capValue"),
357
+ width: "260"
358
+ }, {
359
+ default: t((r) => [
360
+ a(T, {
361
+ modelValue: r.row.capValue,
362
+ "onUpdate:modelValue": (i) => r.row.capValue = i,
363
+ placeholder: l.$t("freeConfig.capValueRequired"),
364
+ precision: 2,
365
+ step: 0.01,
366
+ min: 0,
367
+ clearable: "",
368
+ style: { width: "85%" },
369
+ onChange: (i) => v(r.row)
370
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"]),
371
+ e[10] || (e[10] = m("span", { class: "distance-left" }, "元", -1))
372
+ ]),
373
+ _: 1
374
+ }, 8, ["label"]),
375
+ a(_, {
376
+ label: l.$t("common.operate"),
377
+ width: "60"
378
+ }, {
379
+ default: t((r) => [
380
+ r.$index !== 0 ? (g(), E("span", {
381
+ key: 0,
382
+ productCodesettlePeriod: "",
383
+ class: "el-button-color",
384
+ onClick: (i) => H(r)
385
+ }, f(l.$t("common.delete")), 9, ye)) : ee("", !0)
386
+ ]),
387
+ _: 1
388
+ }, 8, ["label"])
389
+ ]),
390
+ _: 1
391
+ }, 8, ["data"]),
392
+ a(P, {
393
+ icon: u(ve),
394
+ class: "addButton",
395
+ onClick: y
396
+ }, {
397
+ default: t(() => [
398
+ b(f(u(V)("common.add")), 1)
399
+ ]),
400
+ _: 1
401
+ }, 8, ["icon"])
402
+ ]),
403
+ _: 1
404
+ }, 8, ["model", "rules"])
405
+ ]),
406
+ _: 1
407
+ }, 8, ["modelValue"]);
408
+ };
409
+ }
410
+ }), we = /* @__PURE__ */ fe(Ve, [["__scopeId", "data-v-a816e82c"]]), _e = { class: "app-container" }, Re = { class: "search-container" }, $e = ["onClick"], ke = ["onClick"], Pe = /* @__PURE__ */ ae({
411
+ __name: "product",
412
+ setup(z) {
413
+ const { t: R } = de(), V = me(), F = ue(), N = U({}), s = U({});
414
+ s.value.instsId = F.query.instsId;
415
+ const {
416
+ tableHooks: p,
417
+ multipleTableRef: C,
418
+ queryFormRef: h,
419
+ listLoading: L,
420
+ tableData: Q,
421
+ total: I
422
+ } = ie(R, M, s);
423
+ let v = U([
424
+ {
425
+ label: "product.productCode",
426
+ prop: "productCode",
427
+ width: "200",
428
+ isColumn: !0
429
+ },
430
+ {
431
+ label: "product.productName",
432
+ prop: "productName",
433
+ width: "270",
434
+ isColumn: !0
435
+ },
436
+ {
437
+ label: "product.description",
438
+ prop: "description",
439
+ isColumn: !0
440
+ },
441
+ {
442
+ label: "product.status",
443
+ prop: "status",
444
+ width: "150",
445
+ isColumn: !0,
446
+ slotName: "status",
447
+ columnType: "slot"
448
+ },
449
+ {
450
+ label: "common.operate",
451
+ width: "150",
452
+ slotName: "operation",
453
+ columnType: "slot",
454
+ fixed: "right",
455
+ isColumn: !0
456
+ }
457
+ ]);
458
+ function H() {
459
+ pe.closeTagView(F.fullPath, V, !1);
460
+ }
461
+ se(() => {
462
+ be.findById({ instsId: F.query.instsId }).then(({ data: e }) => {
463
+ N.value = Object.assign(N.value, e);
464
+ });
465
+ });
466
+ const y = U({
467
+ title: R("common.edit"),
468
+ visible: !1
469
+ });
470
+ let $ = O({});
471
+ function W() {
472
+ $ = O({}), y.value.title = R("common.add"), y.value.visible = !0;
473
+ }
474
+ function S(e) {
475
+ $.productId = e.productId, y.value.title = R("common.edit"), y.value.visible = !0;
476
+ }
477
+ function Y(e) {
478
+ p.selectionRows.value = e;
479
+ }
480
+ function j(e) {
481
+ p.handleSort(e.prop, e.order);
482
+ }
483
+ function l(e) {
484
+ e && p.getList();
485
+ }
486
+ return p.getList(), (e, o) => {
487
+ const c = n("el-button"), k = n("el-input"), q = n("el-form-item"), w = n("el-col"), A = n("jmash-select"), _ = n("el-row"), T = n("el-form"), G = n("jmash-column-select"), P = n("el-switch"), J = n("jmash-table"), X = n("jmash-pagination"), r = n("el-card"), i = ce("hasPerm");
488
+ return g(), E("div", _e, [
489
+ a(r, { shadow: "never" }, {
490
+ header: t(() => [
491
+ b(f(e.$t("institution.instsName") + ": " + N.value.instsName) + " ", 1),
492
+ a(c, {
493
+ type: "primary",
494
+ onClick: H
495
+ }, {
496
+ default: t(() => [
497
+ b(f(e.$t("common.back")), 1)
498
+ ]),
499
+ _: 1
500
+ })
501
+ ]),
502
+ default: t(() => [
503
+ m("div", Re, [
504
+ a(T, {
505
+ ref_key: "queryFormRef",
506
+ ref: h,
507
+ model: s.value,
508
+ inline: !0
509
+ }, {
510
+ default: t(() => [
511
+ a(_, null, {
512
+ default: t(() => [
513
+ a(w, { span: 6 }, {
514
+ default: t(() => [
515
+ a(q, {
516
+ label: e.$t("product.productName"),
517
+ prop: "likeProductName"
518
+ }, {
519
+ default: t(() => [
520
+ a(k, {
521
+ modelValue: s.value.likeProductName,
522
+ "onUpdate:modelValue": o[0] || (o[0] = (d) => s.value.likeProductName = d),
523
+ placeholder: e.$t("product.productNameRequired"),
524
+ onKeyup: o[1] || (o[1] = Z((d) => u(p).handleQuery(), ["enter"])),
525
+ clearable: ""
526
+ }, null, 8, ["modelValue", "placeholder"])
527
+ ]),
528
+ _: 1
529
+ }, 8, ["label"])
530
+ ]),
531
+ _: 1
532
+ }),
533
+ a(w, { span: 6 }, {
534
+ default: t(() => [
535
+ a(q, {
536
+ label: e.$t("product.productCode"),
537
+ prop: "productCode"
538
+ }, {
539
+ default: t(() => [
540
+ a(k, {
541
+ modelValue: s.value.productCode,
542
+ "onUpdate:modelValue": o[2] || (o[2] = (d) => s.value.productCode = d),
543
+ placeholder: e.$t("product.productCodeRequired"),
544
+ onKeyup: o[3] || (o[3] = Z((d) => u(p).handleQuery(), ["enter"])),
545
+ clearable: ""
546
+ }, null, 8, ["modelValue", "placeholder"])
547
+ ]),
548
+ _: 1
549
+ }, 8, ["label"])
550
+ ]),
551
+ _: 1
552
+ }),
553
+ a(w, { span: 6 }, {
554
+ default: t(() => [
555
+ a(q, {
556
+ label: e.$t("product.status"),
557
+ prop: "status"
558
+ }, {
559
+ default: t(() => [
560
+ a(A, {
561
+ modelValue: s.value.status,
562
+ "onUpdate:modelValue": o[4] || (o[4] = (d) => s.value.status = d),
563
+ placeholder: e.$t("product.statusRequired"),
564
+ data: u(le).statusDict.values,
565
+ onKeyup: o[5] || (o[5] = Z((d) => u(p).handleQuery(), ["enter"])),
566
+ clearable: ""
567
+ }, null, 8, ["modelValue", "placeholder", "data"])
568
+ ]),
569
+ _: 1
570
+ }, 8, ["label"])
571
+ ]),
572
+ _: 1
573
+ }),
574
+ a(w, { span: 6 }, {
575
+ default: t(() => [
576
+ a(q, { class: "search-btn" }, {
577
+ default: t(() => [
578
+ a(c, {
579
+ type: "primary",
580
+ onClick: o[6] || (o[6] = (d) => u(p).handleQuery())
581
+ }, {
582
+ default: t(() => [
583
+ b(f(e.$t("common.search")), 1)
584
+ ]),
585
+ _: 1
586
+ }),
587
+ a(c, {
588
+ onClick: o[7] || (o[7] = (d) => u(p).resetQuery())
589
+ }, {
590
+ default: t(() => [
591
+ b(f(e.$t("common.reset")), 1)
592
+ ]),
593
+ _: 1
594
+ })
595
+ ]),
596
+ _: 1
597
+ })
598
+ ]),
599
+ _: 1
600
+ })
601
+ ]),
602
+ _: 1
603
+ })
604
+ ]),
605
+ _: 1
606
+ }, 8, ["model"]),
607
+ o[15] || (o[15] = m("div", { class: "clear" }, null, -1))
608
+ ]),
609
+ a(r, {
610
+ shadow: "never",
611
+ class: "table-container"
612
+ }, {
613
+ header: t(() => [
614
+ a(_, null, {
615
+ default: t(() => [
616
+ a(w, { span: 17 }, {
617
+ default: t(() => [
618
+ K((g(), D(c, {
619
+ type: "primary",
620
+ onClick: W
621
+ }, {
622
+ default: t(() => [
623
+ b(f(e.$t("common.add")), 1)
624
+ ]),
625
+ _: 1
626
+ })), [
627
+ [i, ["insts:product:add"]]
628
+ ]),
629
+ K((g(), D(c, {
630
+ type: "primary",
631
+ onClick: o[8] || (o[8] = (d) => u(p).deleteRecords())
632
+ }, {
633
+ default: t(() => [
634
+ b(f(e.$t("common.batchDelete")), 1)
635
+ ]),
636
+ _: 1
637
+ })), [
638
+ [i, ["insts:product:delete"]]
639
+ ])
640
+ ]),
641
+ _: 1
642
+ }),
643
+ a(w, {
644
+ span: 7,
645
+ class: "container-float"
646
+ }, {
647
+ default: t(() => [
648
+ a(G, {
649
+ modelValue: u(v),
650
+ "onUpdate:modelValue": o[9] || (o[9] = (d) => oe(v) ? v.value = d : v = d),
651
+ "label-name": "insts/insts-product"
652
+ }, null, 8, ["modelValue"])
653
+ ]),
654
+ _: 1
655
+ })
656
+ ]),
657
+ _: 1
658
+ })
659
+ ]),
660
+ footer: t(() => [
661
+ u(I) > 0 ? (g(), D(X, {
662
+ key: 0,
663
+ total: u(I),
664
+ "onUpdate:total": o[10] || (o[10] = (d) => oe(I) ? I.value = d : null),
665
+ "current-page": s.value.curPage,
666
+ "onUpdate:currentPage": o[11] || (o[11] = (d) => s.value.curPage = d),
667
+ "page-size": s.value.pageSize,
668
+ "onUpdate:pageSize": o[12] || (o[12] = (d) => s.value.pageSize = d),
669
+ onPagination: o[13] || (o[13] = (d) => u(p).getList())
670
+ }, null, 8, ["total", "current-page", "page-size"])) : ee("", !0)
671
+ ]),
672
+ default: t(() => [
673
+ a(J, {
674
+ ref_key: "multipleTableRef",
675
+ ref: C,
676
+ "row-key": "productId",
677
+ "list-loading": u(L),
678
+ data: u(Q),
679
+ "table-label": u(v),
680
+ onSelectionChange: Y,
681
+ onSortChange: j
682
+ }, {
683
+ status: t((d) => [
684
+ a(P, {
685
+ modelValue: d.data.row.status,
686
+ "onUpdate:modelValue": (B) => d.data.row.status = B,
687
+ onChange: (B) => u(p).enableRecord(d.data.row, d.data.row.enable)
688
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
689
+ ]),
690
+ operation: t((d) => [
691
+ K((g(), E("span", {
692
+ class: "el-button-color",
693
+ onClick: (B) => S(d.data.row)
694
+ }, [
695
+ b(f(e.$t("common.edit")), 1)
696
+ ], 8, $e)), [
697
+ [i, ["insts:product:update"]]
698
+ ]),
699
+ K((g(), E("span", {
700
+ class: "el-button-color dropdown-left",
701
+ onClick: (B) => u(p).deleteRecord(d.data.row)
702
+ }, [
703
+ b(f(e.$t("common.delete")), 1)
704
+ ], 8, ke)), [
705
+ [i, ["insts:product:delete"]]
706
+ ])
707
+ ]),
708
+ _: 1
709
+ }, 8, ["list-loading", "data", "table-label"])
710
+ ]),
711
+ _: 1
712
+ })
713
+ ]),
714
+ _: 1
715
+ }),
716
+ y.value.visible ? (g(), D(we, {
717
+ key: 0,
718
+ modelValue: y.value.visible,
719
+ "onUpdate:modelValue": o[14] || (o[14] = (d) => y.value.visible = d),
720
+ title: y.value.title,
721
+ "entity-key": u($),
722
+ onRefresh: l,
723
+ width: "1200px"
724
+ }, null, 8, ["modelValue", "title", "entity-key"])) : ee("", !0)
725
+ ]);
726
+ };
727
+ }
728
+ });
729
+ export {
730
+ Pe as default
731
+ };