xyvcard-goods 0.0.20 → 0.0.22

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 (40) hide show
  1. package/dist/ImageUpload-Dk6GY6PA.mjs +93 -0
  2. package/dist/{edit-Cj13W2TC.mjs → edit-Byv9oYAC.mjs} +1 -1
  3. package/dist/{edit-Bb2XgE0h.mjs → edit-Nuaz9WSB.mjs} +160 -244
  4. package/dist/edit-exVf8d8b.mjs +367 -0
  5. package/dist/edit.vue_vue_type_script_setup_true_lang-DuSBj1Mm.mjs +24172 -0
  6. package/dist/{goodsList-DOXK1EwK.mjs → goodsList-CZUqc4nm.mjs} +1 -1
  7. package/dist/goodsList-IWDAvKOx.mjs +4 -0
  8. package/dist/goodsList.vue_vue_type_script_setup_true_lang-BhJn02Ym.mjs +576 -0
  9. package/dist/{goodsList.vue_vue_type_script_setup_true_lang-COJVlEjX.mjs → goodsList.vue_vue_type_script_setup_true_lang-CuzIDtTN.mjs} +51 -50
  10. package/dist/{index-CGAoZY87.mjs → index-4i7TnWvV.mjs} +2 -3
  11. package/dist/index-BVGn6Q_T.mjs +53 -0
  12. package/dist/{index-DAJiqOCh.mjs → index-B_U2s9fI.mjs} +2 -2
  13. package/dist/{index-C3FT_Oe7.mjs → index-CQIttgns.mjs} +1 -1
  14. package/dist/{index-D3w33Nba.mjs → index-Dvaotk7B.mjs} +92 -68
  15. package/dist/{index-BmOxm1P2.mjs → index-_xxSoBUe.mjs} +1 -1
  16. package/dist/index.mjs +561 -538
  17. package/dist/{info-DImlMNq0.mjs → info-BH4MW3Sw.mjs} +2 -2
  18. package/dist/info-BQaaTFry.mjs +365 -0
  19. package/dist/sku-B-IzfYLq.mjs +52 -0
  20. package/dist/skuForm-AMIoZkH-.mjs +287 -0
  21. package/dist/{skuForm-Bt3arW0s.mjs → skuForm-CgjMd46J.mjs} +16 -16
  22. package/dist/{skuTable-Ahc3WlPp.mjs → skuTable-CyGQuTvR.mjs} +208 -255
  23. package/dist/skuTable-DDWSmvoz.mjs +592 -0
  24. package/dist/style.css +1 -1
  25. package/dts/api/dict.d.ts +3 -0
  26. package/dts/api/goods-sku/types.d.ts +2 -2
  27. package/dts/api/goods-spu/index.d.ts +1 -0
  28. package/dts/api/goods-spu/types.d.ts +18 -1
  29. package/dts/api/index.d.ts +2 -1
  30. package/dts/constant.d.ts +4 -0
  31. package/dts/lang/goods/zh-cn.d.ts +6 -1
  32. package/dts/router/index.d.ts +1 -0
  33. package/dts/views/goods/goods-combination/edit.vue.d.ts +2 -0
  34. package/dts/views/goods/goods-combination/goodsList.vue.d.ts +14 -0
  35. package/dts/views/goods/goods-combination/index.vue.d.ts +2 -0
  36. package/dts/views/goods/goods-combination/info.vue.d.ts +2 -0
  37. package/dts/views/goods/goods-combination/skuForm.vue.d.ts +20 -0
  38. package/dts/views/goods/goods-combination/skuTable.vue.d.ts +40 -0
  39. package/package.json +62 -61
  40. package/dist/edit.vue_vue_type_script_setup_true_lang-D2w1583D.mjs +0 -234
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./goodsList.vue_vue_type_script_setup_true_lang-COJVlEjX.mjs";
1
+ import { _ as f } from "./goodsList.vue_vue_type_script_setup_true_lang-BhJn02Ym.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./goodsList.vue_vue_type_script_setup_true_lang-CuzIDtTN.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -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-Dvaotk7B.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
+ };