xyvcard-settle 0.0.19 → 0.0.21

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 (53) hide show
  1. package/dist/{history-BqGlNUWq.mjs → history-BgXCgEWe.mjs} +1 -1
  2. package/dist/{history-Bf1plXQZ.mjs → history-DtjmHKa9.mjs} +1 -1
  3. package/dist/{history.vue_vue_type_script_setup_true_lang-Dbqhypfx.mjs → history.vue_vue_type_script_setup_true_lang-BolWWcQp.mjs} +27 -25
  4. package/dist/{history.vue_vue_type_script_setup_true_lang-BMWf3S8J.mjs → history.vue_vue_type_script_setup_true_lang-Cb_n42jg.mjs} +27 -27
  5. package/dist/{index-7sGznIYQ.mjs → index-A83m_bq9.mjs} +2 -2
  6. package/dist/{index-DRyh7Csl.mjs → index-AM0oEBSy.mjs} +94 -70
  7. package/dist/{index-yBUEGCAI.mjs → index-BPvCTpAw.mjs} +72 -70
  8. package/dist/{index-4mAQF6sI.mjs → index-B_A1F3k3.mjs} +31 -30
  9. package/dist/{index-Q5OOFu9F.mjs → index-DBd3Gkwy.mjs} +60 -60
  10. package/dist/index-D_DrLyqR.mjs +98 -0
  11. package/dist/{index-Dkcgyu5g.mjs → index-Dk7c4clB.mjs} +82 -81
  12. package/dist/{index-B5IIg45W.mjs → index-mgS8Yk77.mjs} +2 -2
  13. package/dist/index.mjs +6 -5
  14. package/dist/{today-CM47Nc1C.mjs → today-D7Qw-W1d.mjs} +1 -1
  15. package/dist/{today-DCYHokzf.mjs → today-DO4goI_2.mjs} +1 -1
  16. package/dist/{today.vue_vue_type_script_setup_true_lang-G2Mu9j2x.mjs → today.vue_vue_type_script_setup_true_lang-BHX_3u1P.mjs} +27 -25
  17. package/dist/{today.vue_vue_type_script_setup_true_lang-Bd3zjPgQ.mjs → today.vue_vue_type_script_setup_true_lang-BVQUaV2S.mjs} +36 -34
  18. package/dts/src/lang/settle/zh-cn.d.ts +1 -0
  19. package/package.json +61 -61
  20. package/dist/_plugin-vue_export-helper-CHgC5LLL-BmOybl0N-BGL2VN50-Dj7924hV.mjs +0 -9
  21. package/dist/_plugin-vue_export-helper-CHgC5LLL-BmOybl0N.mjs +0 -9
  22. package/dist/_plugin-vue_export-helper-CHgC5LLL-CE1ZRZXI.mjs +0 -9
  23. package/dist/config-J7atvZST-CRBatj_q.mjs +0 -1914
  24. package/dist/free-Cc9I120N-BWsHZFX2-Co-javuK.mjs +0 -73
  25. package/dist/free-DaGOIXVI-tyY1k0f0.mjs +0 -82
  26. package/dist/index-BCqoC3r3-BcdtrpBI.mjs +0 -46253
  27. package/dist/index-BKGG_3N--CJ3hL8zN.mjs +0 -1516
  28. package/dist/index-Bn8Vw_ua.mjs +0 -9095
  29. package/dist/index-BspHvxQr-uRg4kyPq-BVAozSDk.mjs +0 -44292
  30. package/dist/index-BtIY2iCq-L9CqrDwV.mjs +0 -10
  31. package/dist/index-Bte5tu_Z-D-6PVKiX.mjs +0 -44054
  32. package/dist/index-By-fLqD6-DyhYoWmA.mjs +0 -426
  33. package/dist/index-C0VdCZ5o-s6ra_Kpv-CZy2xVew-D4twp64d.mjs +0 -4699
  34. package/dist/index-Cm_dqHhZ-BI2t_Gn3-I11M41Uv.mjs +0 -4236
  35. package/dist/index-DRytXEq2-Jv_7nGuc.mjs +0 -422
  36. package/dist/index-V24QP_Fz-BzkjeGHi-CUvjUkVt.mjs +0 -4741
  37. package/dist/index-V24QP_Fz-IKRedGuT.mjs +0 -4741
  38. package/dist/index-eCinebyw-DzNkuViw.mjs +0 -7401
  39. package/dist/index-iRoYfjIt-Cj_hVoo3.mjs +0 -46
  40. package/dist/info-B9D5Y0O1-DThXQ9ZH-CQu9zPB1-cHVryWdy.mjs +0 -564
  41. package/dist/info-C1ILoPOK-DzbUVoy0.mjs +0 -1258
  42. package/dist/info-C6ZgzFaa-Bez0AAwc.mjs +0 -170
  43. package/dist/info-Cj0C9r3t-mBibS56J-1nf1Pkz0.mjs +0 -237
  44. package/dist/info-Crc5gYV2-B6kmznRN-CHyvC5Ze-D9jtqqDB.mjs +0 -1257
  45. package/dist/info-DFu31zdX-CdOAZ1k9.mjs +0 -814
  46. package/dist/info-DOOuWsLL-Dl19ZBB1-CWqFh2bn.mjs +0 -1258
  47. package/dist/info-Ddj4fPdK-l67VuXu5.mjs +0 -564
  48. package/dist/info-DjbDXhlf-D7nLFio2-CiIp1epX.mjs +0 -818
  49. package/dist/info-DzkZlnCT-B2jxjTWC-Bok9aPNp-vPrVwpKx.mjs +0 -139
  50. package/dist/info-EEQdBSPc-B6uHnl48-CZnr2mHJ.mjs +0 -564
  51. package/dist/info-JTzVjKGk-BHMjIGeZ.mjs +0 -237
  52. package/dist/product-BJX8VysN-CzHJn-wh.mjs +0 -731
  53. package/dist/product-DasoXMNF-Ct3nzcE4-C-y9Gk4r.mjs +0 -731
@@ -1,731 +0,0 @@
1
- import { defineComponent as le, ref as T, onBeforeMount as ne, reactive as M, resolveComponent as n, resolveDirective as se, createElementBlock as E, openBlock as g, createVNode as l, createBlock as D, createCommentVNode as ee, withCtx as a, createElementVNode as m, withKeys as Z, unref as u, createTextVNode as C, toDisplayString as f, withDirectives as j, isRef as ae, mergeModels as oe, useModel as ie } from "vue";
2
- import { useTableHooks as ce, routerUtil as pe } from "jmash-core";
3
- import { useI18n as de } from "vue-i18n";
4
- import { useRouter as me, useRoute as ue } from "vue-router";
5
- import { U as L, O as fe, k as he, L as Ce } from "./index-eCinebyw-DzNkuViw.mjs";
6
- import { ElMessage as x } from "element-plus";
7
- import { L as te, H as re } from "./index-Cm_dqHhZ-BI2t_Gn3-I11M41Uv.mjs";
8
- /*! Element Plus Icons Vue v2.3.1 */
9
- var be = /* @__PURE__ */ le({
10
- name: "Plus",
11
- __name: "plus",
12
- setup(O) {
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 = be;
24
- const ye = ["onClick"], ge = { class: "dialog-footer" }, Ve = /* @__PURE__ */ le({
25
- __name: "productEdit",
26
- props: /* @__PURE__ */ oe({
27
- entityKey: {
28
- type: Object,
29
- default: () => {
30
- }
31
- }
32
- }, {
33
- modelValue: { type: Boolean },
34
- modelModifiers: {}
35
- }),
36
- emits: /* @__PURE__ */ oe(["refresh"], ["update:modelValue"]),
37
- setup(O, { emit: R }) {
38
- const { t: V } = de(), F = ue(), P = T(), s = ie(O, "modelValue");
39
- te.mccCodesDict.useValues();
40
- const p = R, b = T([
41
- {
42
- feeTypeCode: "",
43
- minFreeRate: 0,
44
- maxFreeRate: 0,
45
- isCapping: !1,
46
- capValue: void 0
47
- }
48
- ]);
49
- let h = M({
50
- requestId: Math.random() * 10 + "",
51
- updateMask: "settlePeriod,productName,mccCodes,description"
52
- });
53
- const z = M({
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 A(t) {
77
- v(t), q(t, t.feeTypeCode);
78
- }
79
- function q(t, e) {
80
- e && b.value.some(
81
- (o) => o !== t && o.feeTypeCode === e
82
- ) && (x.error("该费率类型已存在,请选择其他费率类型"), t.feeTypeCode = "");
83
- }
84
- function v(t) {
85
- return t.feeTypeCode ? t.minFreeRate == null ? (x.error("最低费率不能为空"), !1) : t.maxFreeRate == null ? (x.error("最高费率不能为空"), !1) : t.capValue == null || t.capValue == null ? (t.capValue = void 0, !0) : t.minFreeRate != null && t.maxFreeRate != null && t.minFreeRate > t.maxFreeRate ? (x.error("最小费率不能大于最大费率"), !1) : !0 : (x.error("费率类型不能为空"), !1);
86
- }
87
- function H(t) {
88
- const e = b.value.indexOf(t.row);
89
- e !== 0 && b.value.splice(e, 1);
90
- }
91
- function y() {
92
- b.value.push({
93
- feeTypeCode: "",
94
- minFreeRate: 0,
95
- maxFreeRate: 0,
96
- isCapping: !1,
97
- capValue: void 0
98
- });
99
- }
100
- const k = O, Q = Object.keys(k.entityKey), S = T(Q.length >= 1);
101
- S.value && (L.findById(k.entityKey).then(({ data: t }) => {
102
- Object.assign(h, t);
103
- }), Ce.findList({ productId: k.entityKey.productId }).then(({ data: t }) => {
104
- t.results.forEach((e) => {
105
- e.oldCapValue = e.capValue;
106
- }), b.value = t.results;
107
- }));
108
- const Y = async () => {
109
- var t;
110
- await ((t = P.value) == null ? void 0 : t.validate((e) => {
111
- if (e) {
112
- let o = !0;
113
- for (const i of b.value)
114
- if (!v(i)) {
115
- o = !1;
116
- break;
117
- }
118
- o ? S.value ? L.update({
119
- ...h,
120
- freeConfigInfo: b.value,
121
- instsId: F.query.instsId
122
- }).then((i) => {
123
- i.status === 200 && (x({
124
- message: V("common.submitSuccess"),
125
- type: "success"
126
- }), s.value && (s.value = !1), p("refresh", i.status === 200));
127
- }) : L.create({
128
- ...h,
129
- freeConfigInfo: b.value,
130
- instsId: F.query.instsId
131
- }).then((i) => {
132
- i.status === 200 && (x({
133
- message: V("common.submitSuccess"),
134
- type: "success"
135
- }), s.value && (s.value = !1), p("refresh", i.status === 200));
136
- }) : console.log("表单提交失败");
137
- }
138
- }));
139
- };
140
- function B() {
141
- s.value && (s.value = !1);
142
- }
143
- return (t, e) => {
144
- const o = n("el-input"), i = n("el-form-item"), $ = n("el-col"), U = n("jmash-dict-select"), _ = n("el-tree-select"), G = n("el-row"), w = n("el-table-column"), I = n("el-input-number"), J = n("el-table"), N = n("el-button"), W = 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: B
149
- }, {
150
- footer: a(() => [
151
- m("div", ge, [
152
- l(N, { onClick: B }, {
153
- default: a(() => [
154
- C(f(t.$t("common.cancel")), 1)
155
- ]),
156
- _: 1
157
- }),
158
- l(N, {
159
- type: "primary",
160
- onClick: Y
161
- }, {
162
- default: a(() => [
163
- C(f(t.$t("common.confirm")), 1)
164
- ]),
165
- _: 1
166
- })
167
- ])
168
- ]),
169
- default: a(() => [
170
- l(W, {
171
- ref_key: "productFormRef",
172
- ref: P,
173
- model: u(h),
174
- "label-width": "100px",
175
- rules: z
176
- }, {
177
- default: a(() => [
178
- e[11] || (e[11] = m("div", { class: "title-content" }, "产品信息", -1)),
179
- l(G, null, {
180
- default: a(() => [
181
- l($, { span: 12 }, {
182
- default: a(() => [
183
- l(i, {
184
- label: t.$t("product.productName"),
185
- prop: "productName"
186
- }, {
187
- default: a(() => [
188
- l(o, {
189
- modelValue: u(h).productName,
190
- "onUpdate:modelValue": e[0] || (e[0] = (r) => u(h).productName = r),
191
- placeholder: t.$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
- l($, { span: 12 }, {
203
- default: a(() => [
204
- l(i, {
205
- label: t.$t("product.settlePeriod"),
206
- prop: "settlePeriod"
207
- }, {
208
- default: a(() => [
209
- l(U, {
210
- modelValue: u(h).settlePeriod,
211
- "onUpdate:modelValue": e[1] || (e[1] = (r) => u(h).settlePeriod = r),
212
- placeholder: t.$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
- l($, { span: 24 }, {
225
- default: a(() => [
226
- l(i, {
227
- label: t.$t("product.mccCodes"),
228
- prop: "mccCodes"
229
- }, {
230
- default: a(() => [
231
- l(_, {
232
- modelValue: u(h).mccCodes,
233
- "onUpdate:modelValue": e[2] || (e[2] = (r) => u(h).mccCodes = r),
234
- placeholder: t.$t("product.mccCodesRequired"),
235
- data: u(te).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
- l($, { span: 24 }, {
248
- default: a(() => [
249
- l(i, {
250
- label: t.$t("product.description"),
251
- prop: "description"
252
- }, {
253
- default: a(() => [
254
- l(o, {
255
- modelValue: u(h).description,
256
- "onUpdate:modelValue": e[3] || (e[3] = (r) => u(h).description = r),
257
- placeholder: t.$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
- C(" 费率配置 "),
275
- m("span", { style: { color: "red", "font-weight": "normal", "font-size": "12px" } }, "注:不设封顶值默认不封顶")
276
- ], -1)),
277
- l(J, {
278
- data: b.value,
279
- border: "",
280
- style: { width: "100%" }
281
- }, {
282
- default: a(() => [
283
- l(w, {
284
- prop: "feeTypeCode",
285
- label: t.$t("freeConfig.feeTypeCode"),
286
- width: "230"
287
- }, {
288
- header: a(() => [
289
- e[5] || (e[5] = m("span", { class: "required_red" }, "*", -1)),
290
- m("span", null, f(t.$t("freeConfig.feeTypeCode")), 1)
291
- ]),
292
- default: a((r) => [
293
- l(U, {
294
- modelValue: r.row.feeTypeCode,
295
- "onUpdate:modelValue": (c) => r.row.feeTypeCode = c,
296
- placeholder: t.$t("freeConfig.feeTypeCodeRequired"),
297
- "type-code": u(re).DICT_FEETYPE_CODE,
298
- clearable: "",
299
- filterable: "",
300
- class: "w-full",
301
- onChange: (c) => A(r.row)
302
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "type-code", "onChange"])
303
- ]),
304
- _: 1
305
- }, 8, ["label"]),
306
- l(w, {
307
- prop: "minFreeRate",
308
- label: t.$t("freeConfig.minFreeRate")
309
- }, {
310
- header: a(() => [
311
- e[6] || (e[6] = m("span", { class: "required_red" }, "*", -1)),
312
- m("span", null, f(t.$t("freeConfig.minFreeRate")), 1)
313
- ]),
314
- default: a((r) => [
315
- l(I, {
316
- modelValue: r.row.minFreeRate,
317
- "onUpdate:modelValue": (c) => r.row.minFreeRate = c,
318
- precision: 2,
319
- step: 0.01,
320
- min: 0,
321
- max: 100,
322
- clearable: "",
323
- style: { width: "85%" },
324
- onChange: (c) => 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
- l(w, {
331
- prop: "maxFreeRate",
332
- label: t.$t("freeConfig.maxFreeRate")
333
- }, {
334
- header: a(() => [
335
- e[8] || (e[8] = m("span", { class: "required_red" }, "*", -1)),
336
- m("span", null, f(t.$t("freeConfig.maxFreeRate")), 1)
337
- ]),
338
- default: a((r) => [
339
- l(I, {
340
- modelValue: r.row.maxFreeRate,
341
- "onUpdate:modelValue": (c) => r.row.maxFreeRate = c,
342
- precision: 2,
343
- step: 0.01,
344
- min: 0,
345
- max: 100,
346
- clearable: "",
347
- style: { width: "85%" },
348
- onChange: (c) => 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
- l(w, {
355
- prop: "feeUpperAmtPcnt",
356
- label: t.$t("freeConfig.feeUpperAmtPcnt"),
357
- width: "260"
358
- }, {
359
- default: a((r) => [
360
- l(I, {
361
- modelValue: r.row.feeUpperAmtPcnt,
362
- "onUpdate:modelValue": (c) => r.row.feeUpperAmtPcnt = c,
363
- placeholder: t.$t("freeConfig.feeUpperAmtPcntRequired"),
364
- precision: 2,
365
- step: 0.01,
366
- min: 0,
367
- clearable: "",
368
- style: { width: "85%" },
369
- onChange: (c) => 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
- l(w, {
376
- label: t.$t("common.operate"),
377
- width: "60"
378
- }, {
379
- default: a((r) => [
380
- r.$index !== 0 ? (g(), E("span", {
381
- key: 0,
382
- productCodesettlePeriod: "",
383
- class: "el-button-color",
384
- onClick: (c) => H(r)
385
- }, f(t.$t("common.delete")), 9, ye)) : ee("", !0)
386
- ]),
387
- _: 1
388
- }, 8, ["label"])
389
- ]),
390
- _: 1
391
- }, 8, ["data"]),
392
- l(N, {
393
- icon: u(ve),
394
- class: "addButton",
395
- onClick: y
396
- }, {
397
- default: a(() => [
398
- C(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
- }), _e = /* @__PURE__ */ he(Ve, [["__scopeId", "data-v-36b25790"]]), we = { class: "app-container" }, Re = { class: "search-container" }, ke = ["onClick"], $e = ["onClick"], Ne = /* @__PURE__ */ le({
411
- __name: "product",
412
- setup(O) {
413
- const { t: R } = de(), V = me(), F = ue(), P = T({}), s = T({});
414
- s.value.instsId = F.query.instsId;
415
- const {
416
- tableHooks: p,
417
- multipleTableRef: b,
418
- queryFormRef: h,
419
- listLoading: z,
420
- tableData: A,
421
- total: q
422
- } = ce(R, L, s);
423
- let v = T([
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
- ne(() => {
462
- fe.findById({ instsId: F.query.instsId }).then(({ data: e }) => {
463
- P.value = Object.assign(P.value, e);
464
- });
465
- });
466
- const y = T({
467
- title: R("common.edit"),
468
- visible: !1
469
- });
470
- let k = M({});
471
- function Q() {
472
- k = M({}), y.value.title = R("common.add"), y.value.visible = !0;
473
- }
474
- function S(e) {
475
- k.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 B(e) {
481
- p.handleSort(e.prop, e.order);
482
- }
483
- function t(e) {
484
- e && p.getList();
485
- }
486
- return p.getList(), (e, o) => {
487
- const i = n("el-button"), $ = n("el-input"), U = n("el-form-item"), _ = n("el-col"), G = n("jmash-select"), w = n("el-row"), I = n("el-form"), J = n("jmash-column-select"), N = n("el-switch"), W = n("jmash-table"), X = n("jmash-pagination"), r = n("el-card"), c = se("hasPerm");
488
- return g(), E("div", we, [
489
- l(r, { shadow: "never" }, {
490
- header: a(() => [
491
- C(f(e.$t("institution.instsName") + ": " + P.value.instsName) + " ", 1),
492
- l(i, {
493
- type: "primary",
494
- onClick: H
495
- }, {
496
- default: a(() => [
497
- C(f(e.$t("common.back")), 1)
498
- ]),
499
- _: 1
500
- })
501
- ]),
502
- default: a(() => [
503
- m("div", Re, [
504
- l(I, {
505
- ref_key: "queryFormRef",
506
- ref: h,
507
- model: s.value,
508
- inline: !0
509
- }, {
510
- default: a(() => [
511
- l(w, null, {
512
- default: a(() => [
513
- l(_, { span: 6 }, {
514
- default: a(() => [
515
- l(U, {
516
- label: e.$t("product.productName"),
517
- prop: "likeProductName"
518
- }, {
519
- default: a(() => [
520
- l($, {
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
- l(_, { span: 6 }, {
534
- default: a(() => [
535
- l(U, {
536
- label: e.$t("product.productCode"),
537
- prop: "productCode"
538
- }, {
539
- default: a(() => [
540
- l($, {
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
- l(_, { span: 6 }, {
554
- default: a(() => [
555
- l(U, {
556
- label: e.$t("product.status"),
557
- prop: "status"
558
- }, {
559
- default: a(() => [
560
- l(G, {
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(te).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
- l(_, { span: 6 }, {
575
- default: a(() => [
576
- l(U, { class: "search-btn" }, {
577
- default: a(() => [
578
- l(i, {
579
- type: "primary",
580
- onClick: o[6] || (o[6] = (d) => u(p).handleQuery())
581
- }, {
582
- default: a(() => [
583
- C(f(e.$t("common.search")), 1)
584
- ]),
585
- _: 1
586
- }),
587
- l(i, {
588
- onClick: o[7] || (o[7] = (d) => u(p).resetQuery())
589
- }, {
590
- default: a(() => [
591
- C(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
- l(r, {
610
- shadow: "never",
611
- class: "table-container"
612
- }, {
613
- header: a(() => [
614
- l(w, null, {
615
- default: a(() => [
616
- l(_, { span: 17 }, {
617
- default: a(() => [
618
- j((g(), D(i, {
619
- type: "primary",
620
- onClick: Q
621
- }, {
622
- default: a(() => [
623
- C(f(e.$t("common.add")), 1)
624
- ]),
625
- _: 1
626
- })), [
627
- [c, ["insts:product:add"]]
628
- ]),
629
- j((g(), D(i, {
630
- type: "primary",
631
- onClick: o[8] || (o[8] = (d) => u(p).deleteRecords())
632
- }, {
633
- default: a(() => [
634
- C(f(e.$t("common.batchDelete")), 1)
635
- ]),
636
- _: 1
637
- })), [
638
- [c, ["insts:product:delete"]]
639
- ])
640
- ]),
641
- _: 1
642
- }),
643
- l(_, {
644
- span: 7,
645
- class: "container-float"
646
- }, {
647
- default: a(() => [
648
- l(J, {
649
- modelValue: u(v),
650
- "onUpdate:modelValue": o[9] || (o[9] = (d) => ae(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: a(() => [
661
- u(q) > 0 ? (g(), D(X, {
662
- key: 0,
663
- total: u(q),
664
- "onUpdate:total": o[10] || (o[10] = (d) => ae(q) ? q.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: a(() => [
673
- l(W, {
674
- ref_key: "multipleTableRef",
675
- ref: b,
676
- "row-key": "productId",
677
- "list-loading": u(z),
678
- data: u(A),
679
- "table-label": u(v),
680
- onSelectionChange: Y,
681
- onSortChange: B
682
- }, {
683
- status: a((d) => [
684
- l(N, {
685
- modelValue: d.data.row.status,
686
- "onUpdate:modelValue": (K) => d.data.row.status = K,
687
- onChange: (K) => u(p).enableRecord(d.data.row, d.data.row.status)
688
- }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
689
- ]),
690
- operation: a((d) => [
691
- j((g(), E("span", {
692
- class: "el-button-color",
693
- onClick: (K) => S(d.data.row)
694
- }, [
695
- C(f(e.$t("common.edit")), 1)
696
- ], 8, ke)), [
697
- [c, ["insts:product:update"]]
698
- ]),
699
- j((g(), E("span", {
700
- class: "el-button-color dropdown-left",
701
- onClick: (K) => u(p).deleteRecord(d.data.row)
702
- }, [
703
- C(f(e.$t("common.delete")), 1)
704
- ], 8, $e)), [
705
- [c, ["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(_e, {
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(k),
722
- onRefresh: t,
723
- width: "1200px"
724
- }, null, 8, ["modelValue", "title", "entity-key"])) : ee("", !0)
725
- ]);
726
- };
727
- }
728
- });
729
- export {
730
- Ne as default
731
- };