xyvcard-goods 0.0.11 → 0.0.13

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