xyvcard-goods 0.0.13 → 0.0.14

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 (29) hide show
  1. package/dist/{edit-h0S6bHag.mjs → edit-BlnYCDI4.mjs} +34 -32
  2. package/dist/edit-BsaWxeqY.mjs +4 -0
  3. package/dist/edit.vue_vue_type_script_setup_true_lang-DRAXgRwD.mjs +236 -0
  4. package/dist/{goodsList-BtEY_SNz.mjs → goodsList-Dvsh76f7.mjs} +1 -1
  5. package/dist/{goodsList.vue_vue_type_script_setup_true_lang-BGajxpZV.mjs → goodsList.vue_vue_type_script_setup_true_lang-CWJQd86q.mjs} +98 -96
  6. package/dist/{index-BQz1LNIa.mjs → index-BF7PDcd4.mjs} +13 -13
  7. package/dist/index-Ct0LRSwV.mjs +333 -0
  8. package/dist/index-DZJVaUh3.mjs +248 -0
  9. package/dist/index.mjs +2 -2
  10. package/dist/{info-lDMLR1ZW.mjs → info-wrevnU3P.mjs} +19 -18
  11. package/dist/{skuForm-ChaaXJgn.mjs → skuForm-B7yYjwdJ.mjs} +23 -21
  12. package/dist/{skuTable-BBiyXctZ.mjs → skuTable-YDBH_oRN.mjs} +18 -17
  13. package/dist/style.css +1 -1
  14. package/dts/api/dict.d.ts +2 -2
  15. package/dts/api/goods-category/index.d.ts +23 -0
  16. package/dts/api/goods-category/types.d.ts +68 -0
  17. package/dts/api/index.d.ts +3 -2
  18. package/dts/constant.d.ts +10 -0
  19. package/dts/views/goods/goods-category/edit.vue.d.ts +22 -0
  20. package/package.json +12 -12
  21. package/dist/index-CKeHa-Cx.mjs +0 -139
  22. package/dts/components/EnumRadio/index.vue.d.ts +0 -18
  23. package/dts/components/GoodsUpload/ImageUpload.vue.d.ts +0 -40
  24. package/dts/components/GoodsUpload/MultiUpload.vue.d.ts +0 -24
  25. package/dts/components/GoodsUpload/index.vue.d.ts +0 -18
  26. package/dts/views/goods/goods-spu/auditIndex.vue.d.ts +0 -2
  27. package/dts/views/goods/goods-spu/saleIndex.vue.d.ts +0 -2
  28. package/dts/views/goods/goods-spu/shelfIndex.vue.d.ts +0 -2
  29. /package/dts/views/goods/{goods-spu/approveFailIndex.vue.d.ts → goods-category/index.vue.d.ts} +0 -0
@@ -1,11 +1,11 @@
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";
1
+ import { defineComponent as ge, getCurrentInstance as Se, ref as Y, onActivated as he, resolveComponent as d, resolveDirective as we, 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 _e } from "vue";
2
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";
3
+ import { useRouter as ve } from "vue-router";
4
+ import { useTableHooks as ye, fileApi as J } from "jmash-core";
5
+ import { useI18n as be } from "vue-i18n";
6
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({
7
+ import { D as k, C as v } from "./index-DZJVaUh3.mjs";
8
+ const Ce = { class: "app-container" }, Pe = { class: "search-container" }, ke = ["onClick"], Ve = ["onClick"], Ie = ["onClick"], Ue = /* @__PURE__ */ ge({
9
9
  __name: "goodsList",
10
10
  props: {
11
11
  shelf: {
@@ -18,7 +18,7 @@ const be = { class: "app-container" }, Ce = { class: "search-container" }, Pe =
18
18
  }
19
19
  },
20
20
  setup(V) {
21
- const { t: r } = ye(), L = _e(), f = V, { proxy: W } = Se(), c = Y({
21
+ const { t: r } = be(), U = ve(), f = V, { proxy: W } = Se(), c = Y({
22
22
  curPage: 1,
23
23
  pageSize: 10,
24
24
  shelf: f.shelf ? f.shelf : void 0,
@@ -26,12 +26,12 @@ const be = { class: "app-container" }, Ce = { class: "search-container" }, Pe =
26
26
  }), {
27
27
  tableHooks: u,
28
28
  multipleTableRef: $,
29
- queryFormRef: O,
29
+ queryFormRef: z,
30
30
  listLoading: X,
31
31
  tableData: Z,
32
- total: D
33
- } = ve(r, T, c), x = () => {
34
- O.value[0].resetFields();
32
+ total: L
33
+ } = ye(r, T, c), x = () => {
34
+ z.value[0].resetFields();
35
35
  };
36
36
  let N = Y([
37
37
  {
@@ -131,29 +131,29 @@ const be = { class: "app-container" }, Ce = { class: "search-container" }, Pe =
131
131
  isColumn: !0
132
132
  }
133
133
  ]);
134
- k.shopInfoBizDict.useValues(), k.goodsCategoryDict.useValues();
134
+ k.shopInfoBizDict.useValues(), k.goodsCategoryListBizLayDict.useValues();
135
135
  function ee() {
136
- L.push({ path: "/rawgoods/goods-spu/edit" });
136
+ U.push({ path: "/rawgoods/goods-spu/edit" });
137
137
  }
138
- function oe(l) {
139
- L.push({
138
+ function oe(a) {
139
+ U.push({
140
140
  path: "/rawgoods/goods-spu/edit",
141
- query: { spuId: l.spuId }
141
+ query: { spuId: a.spuId }
142
142
  });
143
143
  }
144
- function te(l) {
145
- L.push({
144
+ function te(a) {
145
+ U.push({
146
146
  path: "/rawgoods/goods-spu/info",
147
- query: { spuId: l.spuId }
147
+ query: { spuId: a.spuId }
148
148
  });
149
149
  }
150
- function le(l) {
151
- u.selectionRows.value = l;
150
+ function ae(a) {
151
+ u.selectionRows.value = a;
152
152
  }
153
- function ae(l) {
154
- u.handleSort(l.prop, l.order);
153
+ function le(a) {
154
+ u.handleSort(a.prop, a.order);
155
155
  }
156
- function se(l) {
156
+ function se(a) {
157
157
  if (u.selectionRows.value.length === 0) {
158
158
  S({
159
159
  message: r("goodsSpu.chooseShelf"),
@@ -161,10 +161,10 @@ const be = { class: "app-container" }, Ce = { class: "search-container" }, Pe =
161
161
  });
162
162
  return;
163
163
  }
164
- const a = u.selectionRows.value.map((p) => p.spuId);
165
- T.enable({ spuId: a }, JSON.parse(l)).then((p) => {
164
+ const l = u.selectionRows.value.map((p) => p.spuId);
165
+ T.enable({ spuId: l }, JSON.parse(a)).then((p) => {
166
166
  var g;
167
- p.status === 200 && (l === "true" ? S({
167
+ p.status === 200 && (a === "true" ? S({
168
168
  message: r("goodsSpu.successShelf") + p.data + r("common.stripData"),
169
169
  type: "success"
170
170
  }) : S({
@@ -181,11 +181,11 @@ const be = { class: "app-container" }, Ce = { class: "search-container" }, Pe =
181
181
  });
182
182
  return;
183
183
  }
184
- const l = u.selectionRows.value.map((a) => a.spuId);
185
- T.enable({ spuId: l }, !0).then((a) => {
184
+ const a = u.selectionRows.value.map((l) => l.spuId);
185
+ T.enable({ spuId: a }, !0).then((l) => {
186
186
  var p;
187
- a.status === 200 && (S({
188
- message: r("goodsSpu.successShelf") + a.data + r("common.stripData"),
187
+ l.status === 200 && (S({
188
+ message: r("goodsSpu.successShelf") + l.data + r("common.stripData"),
189
189
  type: "success"
190
190
  }), u.getList(), (p = $.value) == null || p.clearSelection());
191
191
  });
@@ -198,16 +198,16 @@ const be = { class: "app-container" }, Ce = { class: "search-container" }, Pe =
198
198
  });
199
199
  return;
200
200
  }
201
- const l = u.selectionRows.value.map((a) => a.spuId);
202
- T.enable({ spuId: l }, !1).then((a) => {
201
+ const a = u.selectionRows.value.map((l) => l.spuId);
202
+ T.enable({ spuId: a }, !1).then((l) => {
203
203
  var p;
204
- a.status === 200 && S({
205
- message: r("goodsSpu.successOffShelf") + a.data + r("common.stripData"),
204
+ l.status === 200 && S({
205
+ message: r("goodsSpu.successOffShelf") + l.data + r("common.stripData"),
206
206
  type: "success"
207
207
  }), u.getList(), (p = $.value) == null || p.clearSelection();
208
208
  });
209
209
  }
210
- function de(l) {
210
+ function de(a) {
211
211
  if (u.selectionRows.value.length === 0) {
212
212
  S({
213
213
  message: r("goodsSpu.chooseShelf"),
@@ -215,10 +215,10 @@ const be = { class: "app-container" }, Ce = { class: "search-container" }, Pe =
215
215
  });
216
216
  return;
217
217
  }
218
- const a = u.selectionRows.value.map((p) => p.spuId);
219
- T.audit({ spuId: a }, l).then((p) => {
218
+ const l = u.selectionRows.value.map((p) => p.spuId);
219
+ T.audit({ spuId: l }, a).then((p) => {
220
220
  var g;
221
- p.status === 200 && (l === v.APPROVAL_PASS ? S({
221
+ p.status === 200 && (a === v.APPROVAL_PASS ? S({
222
222
  message: r("goodsSpu.successApproval") + p.data + r("common.stripData"),
223
223
  type: "success"
224
224
  }) : S({
@@ -227,13 +227,15 @@ const be = { class: "app-container" }, Ce = { class: "search-container" }, Pe =
227
227
  }), u.getList(), (g = $.value) == null || g.clearSelection());
228
228
  });
229
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, [
230
+ return he(() => {
231
+ u.getList();
232
+ }), (a, l) => {
233
+ const p = d("jmash-select"), g = d("el-form-item"), I = d("el-col"), O = d("el-input"), y = d("el-button"), j = d("el-row"), pe = d("el-form"), B = d("arrow-down"), A = d("el-icon"), E = d("Unlock"), D = 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 = we("hasPerm");
234
+ return m(), R("div", Ce, [
235
+ w("div", Pe, [
234
236
  t(pe, {
235
237
  ref_key: "queryFormRef",
236
- ref: O,
238
+ ref: z,
237
239
  model: c.value,
238
240
  inline: !0
239
241
  }, {
@@ -243,14 +245,14 @@ const be = { class: "app-container" }, Ce = { class: "search-container" }, Pe =
243
245
  t(I, { span: 6 }, {
244
246
  default: o(() => [
245
247
  t(g, {
246
- label: l.$t("goodsSpu.shopId"),
248
+ label: a.$t("goodsSpu.shopId"),
247
249
  prop: "shopId"
248
250
  }, {
249
251
  default: o(() => [
250
252
  t(p, {
251
253
  modelValue: c.value.shopId,
252
- "onUpdate:modelValue": a[0] || (a[0] = (e) => c.value.shopId = e),
253
- placeholder: l.$t("goodsSpu.shopIdRequired"),
254
+ "onUpdate:modelValue": l[0] || (l[0] = (e) => c.value.shopId = e),
255
+ placeholder: a.$t("goodsSpu.shopIdRequired"),
254
256
  data: s(k).shopInfoBizDict.values,
255
257
  filterable: ""
256
258
  }, null, 8, ["modelValue", "placeholder", "data"])
@@ -263,16 +265,16 @@ const be = { class: "app-container" }, Ce = { class: "search-container" }, Pe =
263
265
  t(I, { span: 6 }, {
264
266
  default: o(() => [
265
267
  t(g, {
266
- label: l.$t("goodsSpu.spuCode"),
268
+ label: a.$t("goodsSpu.spuCode"),
267
269
  prop: "spuCode"
268
270
  }, {
269
271
  default: o(() => [
270
- t(z, {
272
+ t(O, {
271
273
  modelValue: c.value.spuCode,
272
- "onUpdate:modelValue": a[1] || (a[1] = (e) => c.value.spuCode = e),
273
- placeholder: l.$t("goodsSpu.spuCode"),
274
+ "onUpdate:modelValue": l[1] || (l[1] = (e) => c.value.spuCode = e),
275
+ placeholder: a.$t("goodsSpu.spuCode"),
274
276
  class: "!w-[203px]",
275
- onKeyup: a[2] || (a[2] = K((e) => s(u).handleQuery(), ["enter"]))
277
+ onKeyup: l[2] || (l[2] = K((e) => s(u).handleQuery(), ["enter"]))
276
278
  }, null, 8, ["modelValue", "placeholder"])
277
279
  ]),
278
280
  _: 1
@@ -283,16 +285,16 @@ const be = { class: "app-container" }, Ce = { class: "search-container" }, Pe =
283
285
  t(I, { span: 6 }, {
284
286
  default: o(() => [
285
287
  t(g, {
286
- label: l.$t("goodsSpu.spuName"),
288
+ label: a.$t("goodsSpu.spuName"),
287
289
  prop: "likeSpuName"
288
290
  }, {
289
291
  default: o(() => [
290
- t(z, {
292
+ t(O, {
291
293
  modelValue: c.value.likeSpuName,
292
- "onUpdate:modelValue": a[3] || (a[3] = (e) => c.value.likeSpuName = e),
293
- placeholder: l.$t("goodsSpu.spuName"),
294
+ "onUpdate:modelValue": l[3] || (l[3] = (e) => c.value.likeSpuName = e),
295
+ placeholder: a.$t("goodsSpu.spuName"),
294
296
  class: "!w-[203px]",
295
- onKeyup: a[4] || (a[4] = K((e) => s(u).handleQuery(), ["enter"]))
297
+ onKeyup: l[4] || (l[4] = K((e) => s(u).handleQuery(), ["enter"]))
296
298
  }, null, 8, ["modelValue", "placeholder"])
297
299
  ]),
298
300
  _: 1
@@ -306,16 +308,16 @@ const be = { class: "app-container" }, Ce = { class: "search-container" }, Pe =
306
308
  default: o(() => [
307
309
  t(y, {
308
310
  type: "primary",
309
- onClick: a[5] || (a[5] = (e) => s(u).handleQuery())
311
+ onClick: l[5] || (l[5] = (e) => s(u).handleQuery())
310
312
  }, {
311
313
  default: o(() => [
312
- i(n(l.$t("common.search")), 1)
314
+ i(n(a.$t("common.search")), 1)
313
315
  ]),
314
316
  _: 1
315
317
  }),
316
318
  t(y, { onClick: x }, {
317
319
  default: o(() => [
318
- i(n(l.$t("common.reset")), 1)
320
+ i(n(a.$t("common.reset")), 1)
319
321
  ]),
320
322
  _: 1
321
323
  })
@@ -346,7 +348,7 @@ const be = { class: "app-container" }, Ce = { class: "search-container" }, Pe =
346
348
  onClick: ee
347
349
  }, {
348
350
  default: o(() => [
349
- i(n(l.$t("common.add")), 1)
351
+ i(n(a.$t("common.add")), 1)
350
352
  ]),
351
353
  _: 1
352
354
  })), [
@@ -355,10 +357,10 @@ const be = { class: "app-container" }, Ce = { class: "search-container" }, Pe =
355
357
  V.approvalStatus !== s(v).APPROVAL_PASS ? _((m(), P(y, {
356
358
  key: 0,
357
359
  type: "primary",
358
- onClick: a[6] || (a[6] = (e) => s(u).deleteRecords())
360
+ onClick: l[6] || (l[6] = (e) => s(u).deleteRecords())
359
361
  }, {
360
362
  default: o(() => [
361
- i(n(l.$t("common.batchDelete")), 1)
363
+ i(n(a.$t("common.batchDelete")), 1)
362
364
  ]),
363
365
  _: 1
364
366
  })), [
@@ -370,7 +372,7 @@ const be = { class: "app-container" }, Ce = { class: "search-container" }, Pe =
370
372
  onClick: ue
371
373
  }, {
372
374
  default: o(() => [
373
- i(n(l.$t("goodsSpu.batchOffShelf")), 1)
375
+ i(n(a.$t("goodsSpu.batchOffShelf")), 1)
374
376
  ]),
375
377
  _: 1
376
378
  })), [
@@ -382,7 +384,7 @@ const be = { class: "app-container" }, Ce = { class: "search-container" }, Pe =
382
384
  onClick: ne
383
385
  }, {
384
386
  default: o(() => [
385
- i(n(l.$t("goodsSpu.batchShelf")), 1)
387
+ i(n(a.$t("goodsSpu.batchShelf")), 1)
386
388
  ]),
387
389
  _: 1
388
390
  })), [
@@ -396,19 +398,19 @@ const be = { class: "app-container" }, Ce = { class: "search-container" }, Pe =
396
398
  dropdown: o(() => [
397
399
  t(F, null, {
398
400
  default: o(() => [
399
- t(U, { command: "true" }, {
401
+ t(D, { command: "true" }, {
400
402
  default: o(() => [
401
403
  t(A, { size: "14" }, {
402
404
  default: o(() => [
403
- t(B)
405
+ t(E)
404
406
  ]),
405
407
  _: 1
406
408
  }),
407
- i(" " + n(l.$t("goodsSpu.batchShelf")), 1)
409
+ i(" " + n(a.$t("goodsSpu.batchShelf")), 1)
408
410
  ]),
409
411
  _: 1
410
412
  }),
411
- t(U, { command: "false" }, {
413
+ t(D, { command: "false" }, {
412
414
  default: o(() => [
413
415
  t(A, { size: "14" }, {
414
416
  default: o(() => [
@@ -416,7 +418,7 @@ const be = { class: "app-container" }, Ce = { class: "search-container" }, Pe =
416
418
  ]),
417
419
  _: 1
418
420
  }),
419
- i(" " + n(l.$t("goodsSpu.batchOffShelf")), 1)
421
+ i(" " + n(a.$t("goodsSpu.batchOffShelf")), 1)
420
422
  ]),
421
423
  _: 1
422
424
  })
@@ -427,10 +429,10 @@ const be = { class: "app-container" }, Ce = { class: "search-container" }, Pe =
427
429
  default: o(() => [
428
430
  t(y, { type: "primary" }, {
429
431
  default: o(() => [
430
- i(n(l.$t("goodsSpu.batchShelf")) + "/" + n(l.$t("goodsSpu.batchOffShelf")) + " ", 1),
432
+ i(n(a.$t("goodsSpu.batchShelf")) + "/" + n(a.$t("goodsSpu.batchOffShelf")) + " ", 1),
431
433
  t(A, { class: "el-icon--right" }, {
432
434
  default: o(() => [
433
- t(E)
435
+ t(B)
434
436
  ]),
435
437
  _: 1
436
438
  })
@@ -450,21 +452,21 @@ const be = { class: "app-container" }, Ce = { class: "search-container" }, Pe =
450
452
  dropdown: o(() => [
451
453
  t(F, null, {
452
454
  default: o(() => [
453
- t(U, {
455
+ t(D, {
454
456
  command: s(v).APPROVAL_PASS
455
457
  }, {
456
458
  default: o(() => [
457
459
  t(A, { size: "14" }, {
458
460
  default: o(() => [
459
- t(B)
461
+ t(E)
460
462
  ]),
461
463
  _: 1
462
464
  }),
463
- i(" " + n(l.$t("goodsSpu.batchApprovaled")), 1)
465
+ i(" " + n(a.$t("goodsSpu.batchApprovaled")), 1)
464
466
  ]),
465
467
  _: 1
466
468
  }, 8, ["command"]),
467
- t(U, {
469
+ t(D, {
468
470
  command: s(v).APPROVAL_NOT_PASS
469
471
  }, {
470
472
  default: o(() => [
@@ -474,7 +476,7 @@ const be = { class: "app-container" }, Ce = { class: "search-container" }, Pe =
474
476
  ]),
475
477
  _: 1
476
478
  }),
477
- i(" " + n(l.$t("goodsSpu.batchRejected")), 1)
479
+ i(" " + n(a.$t("goodsSpu.batchRejected")), 1)
478
480
  ]),
479
481
  _: 1
480
482
  }, 8, ["command"])
@@ -485,10 +487,10 @@ const be = { class: "app-container" }, Ce = { class: "search-container" }, Pe =
485
487
  default: o(() => [
486
488
  t(y, { type: "primary" }, {
487
489
  default: o(() => [
488
- i(n(l.$t("goodsSpu.batchApproval")) + " ", 1),
490
+ i(n(a.$t("goodsSpu.batchApproval")) + " ", 1),
489
491
  t(A, { class: "el-icon--right" }, {
490
492
  default: o(() => [
491
- t(E)
493
+ t(B)
492
494
  ]),
493
495
  _: 1
494
496
  })
@@ -510,7 +512,7 @@ const be = { class: "app-container" }, Ce = { class: "search-container" }, Pe =
510
512
  default: o(() => [
511
513
  t(re, {
512
514
  modelValue: s(N),
513
- "onUpdate:modelValue": a[7] || (a[7] = (e) => M(N) ? N.value = e : N = e),
515
+ "onUpdate:modelValue": l[7] || (l[7] = (e) => M(N) ? N.value = e : N = e),
514
516
  "label-name": "goods/goods-spu"
515
517
  }, null, 8, ["modelValue"])
516
518
  ]),
@@ -521,15 +523,15 @@ const be = { class: "app-container" }, Ce = { class: "search-container" }, Pe =
521
523
  })
522
524
  ]),
523
525
  footer: o(() => [
524
- s(D) > 0 ? (m(), P(ce, {
526
+ s(L) > 0 ? (m(), P(ce, {
525
527
  key: 0,
526
- total: s(D),
527
- "onUpdate:total": a[8] || (a[8] = (e) => M(D) ? D.value = e : null),
528
+ total: s(L),
529
+ "onUpdate:total": l[8] || (l[8] = (e) => M(L) ? L.value = e : null),
528
530
  "current-page": c.value.curPage,
529
- "onUpdate:currentPage": a[9] || (a[9] = (e) => c.value.curPage = e),
531
+ "onUpdate:currentPage": l[9] || (l[9] = (e) => c.value.curPage = e),
530
532
  "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
+ "onUpdate:pageSize": l[10] || (l[10] = (e) => c.value.pageSize = e),
534
+ onPagination: l[11] || (l[11] = (e) => s(u).getList())
533
535
  }, null, 8, ["total", "current-page", "page-size"])) : C("", !0)
534
536
  ]),
535
537
  default: o(() => [
@@ -540,14 +542,14 @@ const be = { class: "app-container" }, Ce = { class: "search-container" }, Pe =
540
542
  "list-loading": s(X),
541
543
  data: s(Z),
542
544
  "table-label": s(N),
543
- onSelectionChange: le,
544
- onSortChange: ae
545
+ onSelectionChange: ae,
546
+ onSortChange: le
545
547
  }, {
546
548
  shopId: o((e) => [
547
549
  w("span", null, n(s(k).shopInfoBizDict.getValue(e.data.row.shopId)), 1)
548
550
  ]),
549
551
  categoryId: o((e) => [
550
- w("span", null, n(s(k).goodsCategoryDict.getValue(e.data.row.categoryId)), 1)
552
+ w("span", null, n(s(k).goodsCategoryListBizLayDict.getValue(e.data.row.categoryId)), 1)
551
553
  ]),
552
554
  picUrls: o((e) => [
553
555
  w("span", null, [
@@ -607,8 +609,8 @@ const be = { class: "app-container" }, Ce = { class: "search-container" }, Pe =
607
609
  class: "el-button-color",
608
610
  onClick: (b) => oe(e.data.row)
609
611
  }, [
610
- i(n(l.$t("common.edit")), 1)
611
- ], 8, Pe)), [
612
+ i(n(a.$t("common.edit")), 1)
613
+ ], 8, ke)), [
612
614
  [h, ["goods:goods_spu:update"]]
613
615
  ]) : C("", !0),
614
616
  V.approvalStatus !== s(v).APPROVAL_PASS ? _((m(), R("span", {
@@ -616,18 +618,18 @@ const be = { class: "app-container" }, Ce = { class: "search-container" }, Pe =
616
618
  class: "el-button-color dropdown-left",
617
619
  onClick: (b) => s(u).deleteRecord(e.data.row)
618
620
  }, [
619
- i(n(l.$t("common.delete")), 1)
620
- ], 8, ke)), [
621
+ i(n(a.$t("common.delete")), 1)
622
+ ], 8, Ve)), [
621
623
  [h, ["goods:goods_spu:delete"]]
622
624
  ]) : C("", !0),
623
625
  _((m(), R("span", {
624
- class: we(
626
+ class: _e(
625
627
  V.approvalStatus !== s(v).APPROVAL_PASS ? "el-button-color dropdown-left" : "el-button-color"
626
628
  ),
627
629
  onClick: (b) => te(e.data.row)
628
630
  }, [
629
- i(n(l.$t("common.view")), 1)
630
- ], 10, Ve)), [
631
+ i(n(a.$t("common.view")), 1)
632
+ ], 10, Ie)), [
631
633
  [h, ["goods:goods_spu:view"]]
632
634
  ])
633
635
  ]),
@@ -1,12 +1,12 @@
1
- import { defineComponent as b, ref as S, onMounted as A, resolveComponent as p, openBlock as t, createElementBlock as c, createVNode as V, withCtx as m, Fragment as C, renderList as P, unref as h, createBlock as _, createCommentVNode as k } from "vue";
2
- import { useRoute as y } from "vue-router";
3
- import { D as i, C as l } from "./index-CKeHa-Cx.mjs";
4
- import { _ as N } from "./goodsList.vue_vue_type_script_setup_true_lang-BGajxpZV.mjs";
5
- const g = { class: "app-container" }, B = /* @__PURE__ */ b({
1
+ import { defineComponent as b, ref as S, onMounted as A, resolveComponent as p, openBlock as t, createElementBlock as c, 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-DZJVaUh3.mjs";
4
+ import { _ as k } from "./goodsList.vue_vue_type_script_setup_true_lang-CWJQd86q.mjs";
5
+ const N = { class: "app-container" }, x = /* @__PURE__ */ b({
6
6
  __name: "index",
7
- setup(L) {
8
- const n = y();
9
- i.goodsCategoryDict.useValues();
7
+ setup(g) {
8
+ const n = L();
9
+ _.goodsCategoryListBizLayDict.useValues();
10
10
  const e = S(0), r = {
11
11
  0: {},
12
12
  1: { shelf: "true", approvalStatus: l.APPROVAL_PASS },
@@ -21,7 +21,7 @@ const g = { class: "app-container" }, B = /* @__PURE__ */ b({
21
21
  n.query.activeTab && (e.value = Number(n.query.activeTab));
22
22
  }), (s, u) => {
23
23
  const f = p("el-tab-pane"), v = p("el-tabs");
24
- return t(), c("div", g, [
24
+ return t(), c("div", N, [
25
25
  V(v, {
26
26
  modelValue: e.value,
27
27
  "onUpdate:modelValue": u[0] || (u[0] = (a) => e.value = a),
@@ -29,17 +29,17 @@ const g = { class: "app-container" }, B = /* @__PURE__ */ b({
29
29
  onTabClick: d
30
30
  }, {
31
31
  default: m(() => [
32
- (t(!0), c(C, null, P(h(i).goodsSpuListSortEnum.values, (a, o) => (t(), _(f, {
32
+ (t(!0), c(C, null, P(h(_).goodsSpuListSortEnum.values, (a, o) => (t(), i(f, {
33
33
  key: o,
34
34
  label: a.value,
35
35
  name: o
36
36
  }, {
37
37
  default: m(() => [
38
- e.value === o ? (t(), _(N, {
38
+ e.value === o ? (t(), i(k, {
39
39
  key: 0,
40
40
  shelf: r[e.value].shelf,
41
41
  "approval-status": r[e.value].approvalStatus
42
- }, null, 8, ["shelf", "approval-status"])) : k("", !0)
42
+ }, null, 8, ["shelf", "approval-status"])) : y("", !0)
43
43
  ]),
44
44
  _: 2
45
45
  }, 1032, ["label", "name"]))), 128))
@@ -51,5 +51,5 @@ const g = { class: "app-container" }, B = /* @__PURE__ */ b({
51
51
  }
52
52
  });
53
53
  export {
54
- B as default
54
+ x as default
55
55
  };