xyvcard-goods 0.0.27 → 0.0.29

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