xyvcard-goods 0.0.28 → 0.0.30

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