xyvcard-goods 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 (52) hide show
  1. package/dist/edit-BcokSKfN.mjs +183 -0
  2. package/dist/{edit-E57LIt5x.mjs → edit-CkR-I5aJ.mjs} +1 -1
  3. package/dist/edit-DFc_TNP3.mjs +590 -0
  4. package/dist/edit-DxnsmaXV.mjs +186 -0
  5. package/dist/edit-tCGa_9Kt.mjs +507 -0
  6. package/dist/{edit.vue_vue_type_script_setup_true_lang-BHplO2tN.mjs → edit.vue_vue_type_script_setup_true_lang-BlNwikUO.mjs} +1 -1
  7. package/dist/{goodsList-0TMcPn_Q.mjs → goodsList-HmPAwD_C.mjs} +1 -1
  8. package/dist/goodsList-TX2ZnRR9.mjs +4 -0
  9. package/dist/goodsList.vue_vue_type_script_setup_true_lang-CGV1dm3W.mjs +714 -0
  10. package/dist/goodsList.vue_vue_type_script_setup_true_lang-f1Fc6pbd.mjs +576 -0
  11. package/dist/{index-CnyW3rxw.mjs → index-B0SXNsHW.mjs} +2 -2
  12. package/dist/{index-nSAowuoJ.mjs → index-BZw9XfQo.mjs} +2 -2
  13. package/dist/index-CqOoZ5xQ.mjs +305 -0
  14. package/dist/index-Ctva-XF0.mjs +318 -0
  15. package/dist/index-Dt3PP8dN.mjs +53 -0
  16. package/dist/index-VFsDup14.mjs +324 -0
  17. package/dist/index-jTDhsbYM.mjs +141 -0
  18. package/dist/index-r0u-27m7.mjs +141 -0
  19. package/dist/index.mjs +557 -531
  20. package/dist/info-BTKv0IRt.mjs +365 -0
  21. package/dist/info-CrghLmS4.mjs +365 -0
  22. package/dist/sku-B-IzfYLq.mjs +52 -0
  23. package/dist/skuForm-C7rF2noo.mjs +475 -0
  24. package/dist/{skuForm-DyYIl6H4.mjs → skuForm-D2n8sQJo.mjs} +154 -106
  25. package/dist/skuTable-CEwT-I1Q.mjs +592 -0
  26. package/dist/skuTable-D-awlXgj.mjs +592 -0
  27. package/dist/style.css +1 -1
  28. package/dts/api/dict.d.ts +6 -0
  29. package/dts/api/goods-brand-info/types.d.ts +4 -1
  30. package/dts/api/goods-label-info/types.d.ts +3 -0
  31. package/dts/api/goods-sku/types.d.ts +2 -0
  32. package/dts/api/goods-spu/types.d.ts +12 -0
  33. package/dts/api/index.d.ts +3 -1
  34. package/dts/constant.d.ts +4 -0
  35. package/dts/lang/goods/zh-cn.d.ts +19 -4
  36. package/dts/router/index.d.ts +1 -0
  37. package/dts/views/goods/goods-combination/edit.vue.d.ts +2 -0
  38. package/dts/views/goods/goods-combination/goodsList.vue.d.ts +14 -0
  39. package/dts/views/goods/goods-combination/index.vue.d.ts +2 -0
  40. package/dts/views/goods/goods-combination/info.vue.d.ts +2 -0
  41. package/dts/views/goods/goods-combination/skuForm.vue.d.ts +29 -0
  42. package/dts/views/goods/goods-combination/skuTable.vue.d.ts +40 -0
  43. package/package.json +61 -61
  44. package/dist/edit-B3Ripwo1.mjs +0 -437
  45. package/dist/edit-DEdWUJfi.mjs +0 -529
  46. package/dist/edit-SYuN1_Fg.mjs +0 -465
  47. package/dist/goodsList.vue_vue_type_script_setup_true_lang-Cd7-ryQA.mjs +0 -626
  48. package/dist/index-C0nlTW8F.mjs +0 -355
  49. package/dist/index-CmKF2zdn.mjs +0 -272
  50. package/dist/index-DH3UH0QC.mjs +0 -345
  51. package/dist/info-5OkZzwEV.mjs +0 -312
  52. package/dist/skuTable-B8v1DVIO.mjs +0 -543
@@ -0,0 +1,576 @@
1
+ import { defineComponent as ge, getCurrentInstance as fe, ref as j, onActivated as be, resolveComponent as s, resolveDirective as _e, openBlock as r, createElementBlock as f, createElementVNode as h, createVNode as l, withCtx as o, withKeys as Y, unref as n, Fragment as V, renderList as R, createBlock as v, createTextVNode as i, toDisplayString as u, withDirectives as S, createCommentVNode as z, isRef as A } from "vue";
2
+ import { ElMessage as I } from "element-plus";
3
+ import { useRouter as ye } from "vue-router";
4
+ import { useTableHooks as we, fileApi as H } from "jmash-core";
5
+ import { useI18n as he } from "vue-i18n";
6
+ import { goodsSpuApi as P } from "./index.mjs";
7
+ import { D as g, C as ve } from "./index-CqOoZ5xQ.mjs";
8
+ const Se = { class: "app-container" }, Ce = { class: "search-container" }, ke = ["onClick"], Ve = ["onClick"], Ie = ["onClick"], ze = /* @__PURE__ */ ge({
9
+ __name: "goodsList",
10
+ props: {
11
+ shelf: {
12
+ type: String,
13
+ default: () => ""
14
+ }
15
+ },
16
+ setup(Q) {
17
+ g.brandListBizDict.useValues(), g.labelListBizDict.useValues();
18
+ const { t: b } = he(), T = ye(), $ = Q, { proxy: F } = fe(), p = j({
19
+ curPage: 1,
20
+ pageSize: 10,
21
+ shelf: $.shelf ? $.shelf : void 0,
22
+ goodsType: ve.GOODS_TYPE.GROUP
23
+ }), {
24
+ tableHooks: d,
25
+ multipleTableRef: U,
26
+ queryFormRef: K,
27
+ listLoading: M,
28
+ tableData: G,
29
+ total: D
30
+ } = we(b, P, p);
31
+ let k = j([
32
+ {
33
+ label: "goodsSpu.spuName",
34
+ prop: "spuName",
35
+ minWidth: "200",
36
+ isColumn: !0
37
+ },
38
+ {
39
+ label: "goodsSpu.picUrls",
40
+ prop: "picUrls",
41
+ slotName: "picUrls",
42
+ columnType: "slot",
43
+ width: "100",
44
+ isColumn: !0
45
+ },
46
+ {
47
+ label: "goodsSpu.categoryId",
48
+ prop: "categoryIds",
49
+ slotName: "categoryId",
50
+ columnType: "slot",
51
+ minWidth: "130",
52
+ isColumn: !0
53
+ },
54
+ {
55
+ label: "goodsSpu.price",
56
+ prop: "minPrice",
57
+ width: "110",
58
+ sortable: "custom",
59
+ slotName: "minPrice",
60
+ columnType: "slot",
61
+ isColumn: !0
62
+ },
63
+ {
64
+ label: "goodsSpu.spuCode",
65
+ prop: "spuCode",
66
+ width: "110",
67
+ sortable: "custom",
68
+ isColumn: !0
69
+ },
70
+ {
71
+ label: "goodsSpu.saleNum",
72
+ prop: "saleNum",
73
+ width: "110",
74
+ sortable: "custom",
75
+ isColumn: !0
76
+ },
77
+ {
78
+ label: "goodsSpu.specType",
79
+ prop: "specType",
80
+ width: "110",
81
+ slotName: "specType",
82
+ columnType: "slot",
83
+ sortable: "custom",
84
+ isColumn: !0
85
+ },
86
+ {
87
+ label: "goodsSpu.shelf",
88
+ prop: "shelf",
89
+ width: "110",
90
+ slotName: "shelf",
91
+ columnType: "slot",
92
+ sortable: "custom",
93
+ isColumn: !0
94
+ },
95
+ {
96
+ label: "goodsSpu.updateTime",
97
+ prop: "updateTime",
98
+ width: "170",
99
+ sortable: "custom",
100
+ slotName: "updateTime",
101
+ columnType: "slot",
102
+ isColumn: !0
103
+ },
104
+ {
105
+ label: "common.operate",
106
+ width: "150",
107
+ slotName: "operation",
108
+ columnType: "slot",
109
+ fixed: "right",
110
+ isColumn: !0
111
+ }
112
+ ]);
113
+ g.shopInfoBizDict.useValues(), g.goodsCategoryListBizLayDict.useValues();
114
+ function W() {
115
+ T.push({ path: "/rawgoods/goods-combination/edit" });
116
+ }
117
+ function J(a) {
118
+ T.push({
119
+ path: "/rawgoods/goods-combination/edit",
120
+ query: { spuId: a.spuId }
121
+ });
122
+ }
123
+ function X(a) {
124
+ T.push({
125
+ path: "/rawgoods/goods-spu/info",
126
+ query: { spuId: a.spuId }
127
+ });
128
+ }
129
+ function Z(a) {
130
+ d.selectionRows.value = a;
131
+ }
132
+ function x(a) {
133
+ d.handleSort(a.prop, a.order);
134
+ }
135
+ function ee(a) {
136
+ if (d.selectionRows.value.length === 0) {
137
+ I({
138
+ message: b("goodsSpu.chooseShelf"),
139
+ type: "warning"
140
+ });
141
+ return;
142
+ }
143
+ const t = d.selectionRows.value.map((c) => c.spuId);
144
+ P.enable({ spuId: t }, JSON.parse(a)).then((c) => {
145
+ var _;
146
+ c.status === 200 && (a === "true" ? I({
147
+ message: b("goodsSpu.successShelf") + c.data + b("common.stripData"),
148
+ type: "success"
149
+ }) : I({
150
+ message: b("goodsSpu.successOffShelf") + c.data + b("common.stripData"),
151
+ type: "success"
152
+ }), d.getList(), (_ = U.value) == null || _.clearSelection());
153
+ });
154
+ }
155
+ function oe() {
156
+ if (d.selectionRows.value.length === 0) {
157
+ I({
158
+ message: b("goodsSpu.chooseShelf"),
159
+ type: "warning"
160
+ });
161
+ return;
162
+ }
163
+ const a = d.selectionRows.value.map((t) => t.spuId);
164
+ P.enable({ spuId: a }, !0).then((t) => {
165
+ var c;
166
+ t.status === 200 && (I({
167
+ message: b("goodsSpu.successShelf") + t.data + b("common.stripData"),
168
+ type: "success"
169
+ }), d.getList(), (c = U.value) == null || c.clearSelection());
170
+ });
171
+ }
172
+ return be(() => {
173
+ d.getList();
174
+ }), (a, t) => {
175
+ const c = s("el-input"), _ = s("el-form-item"), y = s("el-col"), le = s("el-tree-select"), B = s("el-option"), q = s("el-select"), L = s("el-row"), C = s("el-button"), te = s("el-form"), ae = s("arrow-down"), N = s("el-icon"), ne = s("Unlock"), E = s("el-dropdown-item"), se = s("Lock"), de = s("el-dropdown-menu"), ue = s("el-dropdown"), re = s("jmash-column-select"), pe = s("el-image"), O = s("el-switch"), ie = s("jmash-table"), me = s("jmash-pagination"), ce = s("el-card"), w = _e("hasPerm");
176
+ return r(), f("div", Se, [
177
+ h("div", Ce, [
178
+ l(te, {
179
+ ref_key: "queryFormRef",
180
+ ref: K,
181
+ model: p.value,
182
+ inline: !0
183
+ }, {
184
+ default: o(() => [
185
+ l(L, null, {
186
+ default: o(() => [
187
+ l(y, { span: 6 }, {
188
+ default: o(() => [
189
+ l(_, {
190
+ label: a.$t("goodsSpu.spuCode"),
191
+ prop: "spuCode"
192
+ }, {
193
+ default: o(() => [
194
+ l(c, {
195
+ modelValue: p.value.spuCode,
196
+ "onUpdate:modelValue": t[0] || (t[0] = (e) => p.value.spuCode = e),
197
+ placeholder: a.$t("goodsSpu.spuCode"),
198
+ class: "!w-[203px]",
199
+ onKeyup: t[1] || (t[1] = Y((e) => n(d).handleQuery(), ["enter"]))
200
+ }, null, 8, ["modelValue", "placeholder"])
201
+ ]),
202
+ _: 1
203
+ }, 8, ["label"])
204
+ ]),
205
+ _: 1
206
+ }),
207
+ l(y, { span: 6 }, {
208
+ default: o(() => [
209
+ l(_, {
210
+ label: a.$t("goodsSpu.spuName"),
211
+ prop: "likeSpuName"
212
+ }, {
213
+ default: o(() => [
214
+ l(c, {
215
+ modelValue: p.value.likeSpuName,
216
+ "onUpdate:modelValue": t[2] || (t[2] = (e) => p.value.likeSpuName = e),
217
+ placeholder: a.$t("goodsSpu.spuName"),
218
+ onKeyup: t[3] || (t[3] = Y((e) => n(d).handleQuery(), ["enter"]))
219
+ }, null, 8, ["modelValue", "placeholder"])
220
+ ]),
221
+ _: 1
222
+ }, 8, ["label"])
223
+ ]),
224
+ _: 1
225
+ }),
226
+ l(y, { span: 6 }, {
227
+ default: o(() => [
228
+ l(_, {
229
+ label: a.$t("goodsSpu.categoryId"),
230
+ prop: "categoryIds"
231
+ }, {
232
+ default: o(() => [
233
+ l(le, {
234
+ modelValue: p.value.categoryIds,
235
+ "onUpdate:modelValue": t[4] || (t[4] = (e) => p.value.categoryIds = e),
236
+ data: n(g).goodsCategoryListBizLayDict.values,
237
+ multiple: "",
238
+ placeholder: a.$t("goodsSpu.categoryIdRequired"),
239
+ class: "!w-[203px]"
240
+ }, null, 8, ["modelValue", "data", "placeholder"])
241
+ ]),
242
+ _: 1
243
+ }, 8, ["label"])
244
+ ]),
245
+ _: 1
246
+ }),
247
+ l(y, { span: 6 }, {
248
+ default: o(() => [
249
+ l(_, {
250
+ label: a.$t("goodsSpu.brandId"),
251
+ prop: "brandId"
252
+ }, {
253
+ default: o(() => [
254
+ l(q, {
255
+ modelValue: p.value.brandId,
256
+ "onUpdate:modelValue": t[5] || (t[5] = (e) => p.value.brandId = e),
257
+ data: n(g).brandListBizDict.values,
258
+ placeholder: a.$t("goodsSpu.brandIdRequired"),
259
+ class: "!w-[203px]"
260
+ }, {
261
+ default: o(() => [
262
+ (r(!0), f(V, null, R(n(g).brandListBizDict.values, (e) => (r(), v(B, {
263
+ key: e.key,
264
+ label: e.value,
265
+ value: e.key
266
+ }, null, 8, ["label", "value"]))), 128))
267
+ ]),
268
+ _: 1
269
+ }, 8, ["modelValue", "data", "placeholder"])
270
+ ]),
271
+ _: 1
272
+ }, 8, ["label"])
273
+ ]),
274
+ _: 1
275
+ })
276
+ ]),
277
+ _: 1
278
+ }),
279
+ l(L, null, {
280
+ default: o(() => [
281
+ l(y, { span: 6 }, {
282
+ default: o(() => [
283
+ l(_, {
284
+ label: a.$t("goodsSpu.labelIds"),
285
+ prop: "labelIds"
286
+ }, {
287
+ default: o(() => [
288
+ l(q, {
289
+ modelValue: p.value.labelIds,
290
+ "onUpdate:modelValue": t[6] || (t[6] = (e) => p.value.labelIds = e),
291
+ data: n(g).labelListBizDict.values,
292
+ multiple: "",
293
+ placeholder: a.$t("goodsSpu.labelIdsRequired"),
294
+ class: "!w-[203px]"
295
+ }, {
296
+ default: o(() => [
297
+ (r(!0), f(V, null, R(n(g).labelListBizDict.values, (e) => (r(), v(B, {
298
+ key: e.key,
299
+ label: e.value,
300
+ value: e.key
301
+ }, null, 8, ["label", "value"]))), 128))
302
+ ]),
303
+ _: 1
304
+ }, 8, ["modelValue", "data", "placeholder"])
305
+ ]),
306
+ _: 1
307
+ }, 8, ["label"])
308
+ ]),
309
+ _: 1
310
+ }),
311
+ l(y, { span: 18 }, {
312
+ default: o(() => [
313
+ l(_, { class: "search-btn" }, {
314
+ default: o(() => [
315
+ l(C, {
316
+ type: "primary",
317
+ onClick: t[7] || (t[7] = (e) => n(d).handleQuery())
318
+ }, {
319
+ default: o(() => [
320
+ i(u(a.$t("common.search")), 1)
321
+ ]),
322
+ _: 1
323
+ }),
324
+ l(C, {
325
+ onClick: t[8] || (t[8] = (e) => n(d).resetQuery())
326
+ }, {
327
+ default: o(() => [
328
+ i(u(a.$t("common.reset")), 1)
329
+ ]),
330
+ _: 1
331
+ })
332
+ ]),
333
+ _: 1
334
+ })
335
+ ]),
336
+ _: 1
337
+ })
338
+ ]),
339
+ _: 1
340
+ })
341
+ ]),
342
+ _: 1
343
+ }, 8, ["model"]),
344
+ t[15] || (t[15] = h("div", { class: "clear" }, null, -1))
345
+ ]),
346
+ l(ce, {
347
+ shadow: "never",
348
+ class: "table-container"
349
+ }, {
350
+ header: o(() => [
351
+ l(L, null, {
352
+ default: o(() => [
353
+ l(y, { span: 17 }, {
354
+ default: o(() => [
355
+ S((r(), v(C, {
356
+ type: "primary",
357
+ onClick: W
358
+ }, {
359
+ default: o(() => [
360
+ i(u(a.$t("common.add")), 1)
361
+ ]),
362
+ _: 1
363
+ })), [
364
+ [w, ["goods:goods_com:add"]]
365
+ ]),
366
+ S((r(), v(C, {
367
+ type: "primary",
368
+ onClick: t[9] || (t[9] = (e) => n(d).deleteRecords())
369
+ }, {
370
+ default: o(() => [
371
+ i(u(a.$t("common.batchDelete")), 1)
372
+ ]),
373
+ _: 1
374
+ })), [
375
+ [w, ["goods:goods_com:delete"]]
376
+ ]),
377
+ $.shelf === "false" ? S((r(), v(C, {
378
+ key: 0,
379
+ type: "primary",
380
+ onClick: oe
381
+ }, {
382
+ default: o(() => [
383
+ i(u(a.$t("goodsSpu.batchShelf")), 1)
384
+ ]),
385
+ _: 1
386
+ })), [
387
+ [w, ["goods:goods_com:onSale"]]
388
+ ]) : z("", !0),
389
+ $.shelf === "" ? S((r(), v(ue, {
390
+ key: 1,
391
+ class: "dropdown-left",
392
+ onCommand: ee
393
+ }, {
394
+ dropdown: o(() => [
395
+ l(de, null, {
396
+ default: o(() => [
397
+ l(E, { command: "true" }, {
398
+ default: o(() => [
399
+ l(N, { size: "14" }, {
400
+ default: o(() => [
401
+ l(ne)
402
+ ]),
403
+ _: 1
404
+ }),
405
+ i(" " + u(a.$t("goodsSpu.batchShelf")), 1)
406
+ ]),
407
+ _: 1
408
+ }),
409
+ l(E, { command: "false" }, {
410
+ default: o(() => [
411
+ l(N, { size: "14" }, {
412
+ default: o(() => [
413
+ l(se)
414
+ ]),
415
+ _: 1
416
+ }),
417
+ i(" " + u(a.$t("goodsSpu.batchOffShelf")), 1)
418
+ ]),
419
+ _: 1
420
+ })
421
+ ]),
422
+ _: 1
423
+ })
424
+ ]),
425
+ default: o(() => [
426
+ l(C, { type: "primary" }, {
427
+ default: o(() => [
428
+ i(u(a.$t("goodsSpu.batchShelf")) + "/" + u(a.$t("goodsSpu.batchOffShelf")) + " ", 1),
429
+ l(N, { class: "el-icon--right" }, {
430
+ default: o(() => [
431
+ l(ae)
432
+ ]),
433
+ _: 1
434
+ })
435
+ ]),
436
+ _: 1
437
+ })
438
+ ]),
439
+ _: 1
440
+ })), [
441
+ [w, ["goods:goods_com:onSale"]]
442
+ ]) : z("", !0)
443
+ ]),
444
+ _: 1
445
+ }),
446
+ l(y, {
447
+ span: 7,
448
+ class: "container-float"
449
+ }, {
450
+ default: o(() => [
451
+ l(re, {
452
+ modelValue: n(k),
453
+ "onUpdate:modelValue": t[10] || (t[10] = (e) => A(k) ? k.value = e : k = e),
454
+ "label-name": "goods/goods-combination"
455
+ }, null, 8, ["modelValue"])
456
+ ]),
457
+ _: 1
458
+ })
459
+ ]),
460
+ _: 1
461
+ })
462
+ ]),
463
+ footer: o(() => [
464
+ n(D) > 0 ? (r(), v(me, {
465
+ key: 0,
466
+ total: n(D),
467
+ "onUpdate:total": t[11] || (t[11] = (e) => A(D) ? D.value = e : null),
468
+ "current-page": p.value.curPage,
469
+ "onUpdate:currentPage": t[12] || (t[12] = (e) => p.value.curPage = e),
470
+ "page-size": p.value.pageSize,
471
+ "onUpdate:pageSize": t[13] || (t[13] = (e) => p.value.pageSize = e),
472
+ onPagination: t[14] || (t[14] = (e) => n(d).getList())
473
+ }, null, 8, ["total", "current-page", "page-size"])) : z("", !0)
474
+ ]),
475
+ default: o(() => [
476
+ l(ie, {
477
+ ref_key: "multipleTableRef",
478
+ ref: U,
479
+ "row-key": "spuId",
480
+ "list-loading": n(M),
481
+ data: n(G),
482
+ "table-label": n(k),
483
+ onSelectionChange: Z,
484
+ onSortChange: x
485
+ }, {
486
+ categoryId: o((e) => [
487
+ (r(!0), f(V, null, R(e.data.row.categoryIds, (m) => (r(), f("span", {
488
+ key: m,
489
+ style: { "margin-right": "8px", "margin-bottom": "4px" }
490
+ }, u(n(g).goodsCategoryListBizLayDict.getValue(m) || m), 1))), 128))
491
+ ]),
492
+ picUrls: o((e) => [
493
+ h("span", null, [
494
+ l(pe, {
495
+ src: n(H).imageUrl(e.data.row.picUrls.split(",")[0], 0, 0),
496
+ "preview-src-list": [
497
+ n(H).imageUrl(e.data.row.picUrls.split(",")[0])
498
+ ],
499
+ "preview-teleported": "",
500
+ "hide-on-click-modal": "",
501
+ fit: "contain"
502
+ }, null, 8, ["src", "preview-src-list"])
503
+ ])
504
+ ]),
505
+ shelf: o((e) => [
506
+ h("span", null, [
507
+ l(O, {
508
+ modelValue: e.data.row.shelf,
509
+ "onUpdate:modelValue": (m) => e.data.row.shelf = m,
510
+ onClick: (m) => n(d).enableRecord(e.data.row, e.data.row.shelf)
511
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "onClick"])
512
+ ])
513
+ ]),
514
+ minPrice: o((e) => [
515
+ h("span", null, [
516
+ e.data.row.minPrice === e.data.row.maxPrice ? (r(), f(V, { key: 0 }, [
517
+ i(u(e.data.row.minPrice), 1)
518
+ ], 64)) : (r(), f(V, { key: 1 }, [
519
+ i(u(e.data.row.minPrice) + " ~ " + u(e.data.row.maxPrice), 1)
520
+ ], 64))
521
+ ])
522
+ ]),
523
+ specType: o((e) => [
524
+ h("span", null, u(n(g).specTypeEnum.getEnumValue(e.data.row.specType)), 1)
525
+ ]),
526
+ updateTime: o((e) => [
527
+ h("span", null, u(n(F).$moment.formatDate(
528
+ e.data.row.updateTime,
529
+ "YYYY-MM-DD HH:mm:ss"
530
+ )), 1)
531
+ ]),
532
+ enable: o((e) => [
533
+ l(O, {
534
+ modelValue: e.data.row.enable,
535
+ "onUpdate:modelValue": (m) => e.data.row.enable = m,
536
+ onChange: (m) => n(d).enableRecord(e.data.row, e.data.row.enable)
537
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
538
+ ]),
539
+ operation: o((e) => [
540
+ S((r(), f("span", {
541
+ class: "el-button-color",
542
+ onClick: (m) => J(e.data.row)
543
+ }, [
544
+ i(u(a.$t("common.edit")), 1)
545
+ ], 8, ke)), [
546
+ [w, ["goods:goods_com:update"]]
547
+ ]),
548
+ S((r(), f("span", {
549
+ class: "el-button-color dropdown-left",
550
+ onClick: (m) => n(d).deleteRecord(e.data.row)
551
+ }, [
552
+ i(u(a.$t("common.delete")), 1)
553
+ ], 8, Ve)), [
554
+ [w, ["goods:goods_com:delete"]]
555
+ ]),
556
+ S((r(), f("span", {
557
+ class: "el-button-color dropdown-left",
558
+ onClick: (m) => X(e.data.row)
559
+ }, [
560
+ i(u(a.$t("common.view")), 1)
561
+ ], 8, Ie)), [
562
+ [w, ["goods:goods_com:view"]]
563
+ ])
564
+ ]),
565
+ _: 1
566
+ }, 8, ["list-loading", "data", "table-label"])
567
+ ]),
568
+ _: 1
569
+ })
570
+ ]);
571
+ };
572
+ }
573
+ });
574
+ export {
575
+ ze as _
576
+ };
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as x, ref as V, reactive as S, onActivated as ee, resolveComponent as r, resolveDirective as oe, openBlock as u, createElementBlock as $, createElementVNode as U, createVNode as t, withCtx as l, withKeys as te, unref as n, createTextVNode as p, toDisplayString as c, withDirectives as C, createBlock as w, isRef as T, createCommentVNode as D } from "vue";
2
2
  import { useI18n as le } from "vue-i18n";
3
3
  import { useTableHooks as ae, fileApi as j } from "jmash-core";
4
- import { g as ne, D as re } from "./index-CmKF2zdn.mjs";
5
- import { _ as se } from "./edit.vue_vue_type_script_setup_true_lang-BHplO2tN.mjs";
4
+ import { g as ne, D as re } from "./index-CqOoZ5xQ.mjs";
5
+ import { _ as se } from "./edit.vue_vue_type_script_setup_true_lang-BlNwikUO.mjs";
6
6
  const ie = { class: "app-container" }, de = { class: "search-container" }, ue = ["onClick"], me = ["onClick"], ve = /* @__PURE__ */ x({
7
7
  __name: "index",
8
8
  setup(pe) {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as b, ref as S, onMounted as A, resolveComponent as p, openBlock as t, createElementBlock as c, createVNode as V, withCtx as m, Fragment as C, renderList as P, unref as h, createBlock as i, createCommentVNode as y } from "vue";
2
2
  import { useRoute as L } from "vue-router";
3
- import { D as _, C as l } from "./index-CmKF2zdn.mjs";
4
- import { _ as k } from "./goodsList.vue_vue_type_script_setup_true_lang-Cd7-ryQA.mjs";
3
+ import { D as _, C as l } from "./index-CqOoZ5xQ.mjs";
4
+ import { _ as k } from "./goodsList.vue_vue_type_script_setup_true_lang-CGV1dm3W.mjs";
5
5
  const N = { class: "app-container" }, x = /* @__PURE__ */ b({
6
6
  __name: "index",
7
7
  setup(g) {