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
@@ -1,565 +0,0 @@
1
- import { defineComponent as ge, getCurrentInstance as fe, ref as j, onActivated as be, resolveComponent as n, resolveDirective as _e, createElementBlock as y, openBlock as r, 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-CXtRrzoC.mjs";
7
- import { D as g, C as ve } from "./index-B0qodJxZ.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
- };
@@ -1,55 +0,0 @@
1
- import { defineComponent as b, ref as S, onMounted as A, resolveComponent as p, createElementBlock as c, openBlock as t, createVNode as V, withCtx as m, Fragment as C, renderList as P, unref as h, createBlock as i, createCommentVNode as y } from "vue";
2
- import { useRoute as L } from "vue-router";
3
- import { D as _, C as l } from "./index-B0qodJxZ.mjs";
4
- import { _ as k } from "./goodsList.vue_vue_type_script_setup_true_lang-BsItIhFh.mjs";
5
- const N = { class: "app-container" }, x = /* @__PURE__ */ b({
6
- __name: "index",
7
- setup(g) {
8
- const n = L();
9
- _.goodsCategoryListBizLayDict.useValues();
10
- const e = S(0), r = {
11
- 0: {},
12
- 1: { shelf: "true", approvalStatus: l.APPROVAL_PASS },
13
- 2: { shelf: "false" },
14
- 3: { approvalStatus: l.APPROVALING },
15
- 4: { approvalStatus: l.APPROVAL_NOT_PASS }
16
- };
17
- function d(s) {
18
- e.value = Number(s.index);
19
- }
20
- return A(() => {
21
- n.query.activeTab && (e.value = Number(n.query.activeTab));
22
- }), (s, u) => {
23
- const f = p("el-tab-pane"), v = p("el-tabs");
24
- return t(), c("div", N, [
25
- V(v, {
26
- modelValue: e.value,
27
- "onUpdate:modelValue": u[0] || (u[0] = (a) => e.value = a),
28
- type: "border-card",
29
- onTabClick: d
30
- }, {
31
- default: m(() => [
32
- (t(!0), c(C, null, P(h(_).goodsSpuListSortEnum.values, (a, o) => (t(), i(f, {
33
- key: o,
34
- label: a.value,
35
- name: o
36
- }, {
37
- default: m(() => [
38
- e.value === o ? (t(), i(k, {
39
- key: 0,
40
- shelf: r[e.value].shelf,
41
- "approval-status": r[e.value].approvalStatus
42
- }, null, 8, ["shelf", "approval-status"])) : y("", !0)
43
- ]),
44
- _: 2
45
- }, 1032, ["label", "name"]))), 128))
46
- ]),
47
- _: 1
48
- }, 8, ["modelValue"])
49
- ]);
50
- };
51
- }
52
- });
53
- export {
54
- x as default
55
- };
@@ -1,53 +0,0 @@
1
- import { defineComponent as v, ref as b, onMounted as h, resolveComponent as u, createElementBlock as c, openBlock as t, createVNode as y, withCtx as m, Fragment as k, renderList as C, unref as V, createBlock as p, createCommentVNode as g } from "vue";
2
- import { useRoute as B } from "vue-router";
3
- import { D as i } from "./index-B0qodJxZ.mjs";
4
- import { _ as L } from "./goodsList.vue_vue_type_script_setup_true_lang-QHlAuCT3.mjs";
5
- const N = { class: "app-container" }, E = /* @__PURE__ */ v({
6
- __name: "index",
7
- setup(T) {
8
- const l = B();
9
- i.goodsCategoryListBizLayDict.useValues();
10
- const e = b(0), n = {
11
- 0: {},
12
- 1: { shelf: "true" },
13
- 2: { shelf: "false" }
14
- };
15
- function d(r) {
16
- e.value = Number(r.index);
17
- }
18
- return h(() => {
19
- l.query.activeTab && (e.value = Number(l.query.activeTab));
20
- }), (r, s) => {
21
- const f = u("el-tab-pane"), _ = u("el-tabs");
22
- return t(), c("div", N, [
23
- y(_, {
24
- modelValue: e.value,
25
- "onUpdate:modelValue": s[0] || (s[0] = (a) => e.value = a),
26
- type: "border-card",
27
- onTabClick: d
28
- }, {
29
- default: m(() => [
30
- (t(!0), c(k, null, C(V(i).goodsSpuListSortEnum.values.slice(0, -2), (a, o) => (t(), p(f, {
31
- key: o,
32
- label: a.value,
33
- name: o
34
- }, {
35
- default: m(() => [
36
- e.value === o ? (t(), p(L, {
37
- key: 0,
38
- shelf: n[e.value].shelf,
39
- "approval-status": n[e.value].approvalStatus
40
- }, null, 8, ["shelf", "approval-status"])) : g("", !0)
41
- ]),
42
- _: 2
43
- }, 1032, ["label", "name"]))), 128))
44
- ]),
45
- _: 1
46
- }, 8, ["modelValue"])
47
- ]);
48
- };
49
- }
50
- });
51
- export {
52
- E as default
53
- };