xyvcard-settle 0.0.2 → 0.0.4

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