xyvcard-goods 0.0.19 → 0.0.20

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