xyvcard-goods 0.0.20 → 0.0.21

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 (35) hide show
  1. package/dist/{edit-Cj13W2TC.mjs → edit-CkR-I5aJ.mjs} +1 -1
  2. package/dist/{edit-Bb2XgE0h.mjs → edit-DFc_TNP3.mjs} +2 -2
  3. package/dist/edit-tCGa_9Kt.mjs +507 -0
  4. package/dist/{edit.vue_vue_type_script_setup_true_lang-D2w1583D.mjs → edit.vue_vue_type_script_setup_true_lang-BlNwikUO.mjs} +1 -1
  5. package/dist/{goodsList-DOXK1EwK.mjs → goodsList-HmPAwD_C.mjs} +1 -1
  6. package/dist/goodsList-TX2ZnRR9.mjs +4 -0
  7. package/dist/{goodsList.vue_vue_type_script_setup_true_lang-COJVlEjX.mjs → goodsList.vue_vue_type_script_setup_true_lang-CGV1dm3W.mjs} +51 -50
  8. package/dist/goodsList.vue_vue_type_script_setup_true_lang-f1Fc6pbd.mjs +576 -0
  9. package/dist/{index-CGAoZY87.mjs → index-B0SXNsHW.mjs} +2 -2
  10. package/dist/{index-DAJiqOCh.mjs → index-BZw9XfQo.mjs} +2 -2
  11. package/dist/{index-D3w33Nba.mjs → index-CqOoZ5xQ.mjs} +11 -7
  12. package/dist/{index-C3FT_Oe7.mjs → index-Ctva-XF0.mjs} +1 -1
  13. package/dist/index-Dt3PP8dN.mjs +53 -0
  14. package/dist/{index-BmOxm1P2.mjs → index-VFsDup14.mjs} +1 -1
  15. package/dist/index.mjs +476 -464
  16. package/dist/{info-DImlMNq0.mjs → info-BTKv0IRt.mjs} +2 -2
  17. package/dist/info-CrghLmS4.mjs +365 -0
  18. package/dist/sku-B-IzfYLq.mjs +52 -0
  19. package/dist/{skuForm-Bt3arW0s.mjs → skuForm-C7rF2noo.mjs} +2 -2
  20. package/dist/skuForm-D2n8sQJo.mjs +475 -0
  21. package/dist/{skuTable-Ahc3WlPp.mjs → skuTable-CEwT-I1Q.mjs} +208 -255
  22. package/dist/skuTable-D-awlXgj.mjs +592 -0
  23. package/dist/style.css +1 -1
  24. package/dts/api/goods-sku/types.d.ts +2 -2
  25. package/dts/api/goods-spu/types.d.ts +1 -1
  26. package/dts/constant.d.ts +4 -0
  27. package/dts/lang/goods/zh-cn.d.ts +1 -0
  28. package/dts/router/index.d.ts +1 -0
  29. package/dts/views/goods/goods-combination/edit.vue.d.ts +2 -0
  30. package/dts/views/goods/goods-combination/goodsList.vue.d.ts +14 -0
  31. package/dts/views/goods/goods-combination/index.vue.d.ts +2 -0
  32. package/dts/views/goods/goods-combination/info.vue.d.ts +2 -0
  33. package/dts/views/goods/goods-combination/skuForm.vue.d.ts +29 -0
  34. package/dts/views/goods/goods-combination/skuTable.vue.d.ts +40 -0
  35. package/package.json +61 -61
@@ -1,10 +1,10 @@
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";
1
+ import { defineComponent as be, getCurrentInstance as ve, ref as K, 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 w, createTextVNode as m, toDisplayString as u, withDirectives as C, createCommentVNode as I, isRef as J, normalizeClass as _e } from "vue";
2
2
  import { ElMessage as y } from "element-plus";
3
3
  import { useRouter as we } from "vue-router";
4
4
  import { useTableHooks as Ce, fileApi as W } from "jmash-core";
5
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";
6
+ import { goodsSpuApi as T } from "./index.mjs";
7
+ import { D as S, C as h } from "./index-CqOoZ5xQ.mjs";
8
8
  const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie = ["onClick"], $e = ["onClick"], Re = ["onClick"], Oe = /* @__PURE__ */ be({
9
9
  __name: "goodsList",
10
10
  props: {
@@ -19,20 +19,21 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
19
19
  },
20
20
  setup($) {
21
21
  S.brandListBizDict.useValues(), S.labelListBizDict.useValues();
22
- const { t: i } = ke(), z = we(), b = $, { proxy: X } = ve(), c = M({
22
+ const { t: i } = ke(), z = we(), b = $, { proxy: X } = ve(), c = K({
23
23
  curPage: 1,
24
24
  pageSize: 10,
25
25
  shelf: b.shelf ? b.shelf : void 0,
26
- approvalStatus: b.approvalStatus ? b.approvalStatus : void 0
26
+ approvalStatus: b.approvalStatus ? b.approvalStatus : void 0,
27
+ goodsType: h.GOODS_TYPE.NORMAL
27
28
  }), {
28
29
  tableHooks: n,
29
30
  multipleTableRef: A,
30
31
  queryFormRef: Z,
31
32
  listLoading: x,
32
33
  tableData: ee,
33
- total: T
34
- } = Ce(i, N, c);
35
- let L = M([
34
+ total: N
35
+ } = Ce(i, T, c);
36
+ let L = K([
36
37
  // {
37
38
  // label: "goodsSpu.shopId",
38
39
  // prop: "shopId",
@@ -161,7 +162,7 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
161
162
  return;
162
163
  }
163
164
  const t = n.selectionRows.value.map((p) => p.spuId);
164
- N.enable({ spuId: t }, JSON.parse(a)).then((p) => {
165
+ T.enable({ spuId: t }, JSON.parse(a)).then((p) => {
165
166
  var g;
166
167
  p.status === 200 && (a === "true" ? y({
167
168
  message: i("goodsSpu.successShelf") + p.data + i("common.stripData"),
@@ -181,7 +182,7 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
181
182
  return;
182
183
  }
183
184
  const a = n.selectionRows.value.map((t) => t.spuId);
184
- N.enable({ spuId: a }, !0).then((t) => {
185
+ T.enable({ spuId: a }, !0).then((t) => {
185
186
  var p;
186
187
  t.status === 200 && (y({
187
188
  message: i("goodsSpu.successShelf") + t.data + i("common.stripData"),
@@ -198,7 +199,7 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
198
199
  return;
199
200
  }
200
201
  const a = n.selectionRows.value.map((t) => t.spuId);
201
- N.enable({ spuId: a }, !1).then((t) => {
202
+ T.enable({ spuId: a }, !1).then((t) => {
202
203
  var p;
203
204
  t.status === 200 && y({
204
205
  message: i("goodsSpu.successOffShelf") + t.data + i("common.stripData"),
@@ -215,9 +216,9 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
215
216
  return;
216
217
  }
217
218
  const t = n.selectionRows.value.map((p) => p.spuId);
218
- N.audit({ spuId: t }, a).then((p) => {
219
+ T.audit({ spuId: t }, a).then((p) => {
219
220
  var g;
220
- p.status === 200 && (a === C.APPROVAL_PASS ? y({
221
+ p.status === 200 && (a === h.APPROVAL_PASS ? y({
221
222
  message: i("goodsSpu.successApproval") + p.data + i("common.stripData"),
222
223
  type: "success"
223
224
  }) : y({
@@ -229,7 +230,7 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
229
230
  return ye(() => {
230
231
  n.getList();
231
232
  }), (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
+ const p = d("el-input"), g = d("el-form-item"), k = d("el-col"), re = d("el-tree-select"), E = d("el-option"), q = d("el-select"), O = d("el-row"), V = d("el-button"), ie = d("el-form"), j = d("arrow-down"), R = d("el-icon"), Y = d("Unlock"), U = d("el-dropdown-item"), F = d("Lock"), H = d("el-dropdown-menu"), M = d("el-dropdown"), me = d("jmash-column-select"), ce = d("el-image"), Q = d("el-switch"), ge = d("jmash-table"), fe = d("jmash-pagination"), Se = d("el-card"), _ = he("hasPerm");
233
234
  return r(), v("div", Ve, [
234
235
  P("div", Pe, [
235
236
  l(ie, {
@@ -308,7 +309,7 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
308
309
  prop: "brandId"
309
310
  }, {
310
311
  default: o(() => [
311
- l(E, {
312
+ l(q, {
312
313
  modelValue: c.value.brandId,
313
314
  "onUpdate:modelValue": t[5] || (t[5] = (e) => c.value.brandId = e),
314
315
  data: s(S).brandListBizDict.values,
@@ -316,7 +317,7 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
316
317
  class: "!w-[203px]"
317
318
  }, {
318
319
  default: o(() => [
319
- (r(!0), v(D, null, B(s(S).brandListBizDict.values, (e) => (r(), _(q, {
320
+ (r(!0), v(D, null, B(s(S).brandListBizDict.values, (e) => (r(), w(E, {
320
321
  key: e.key,
321
322
  label: e.value,
322
323
  value: e.key
@@ -342,7 +343,7 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
342
343
  prop: "labelIds"
343
344
  }, {
344
345
  default: o(() => [
345
- l(E, {
346
+ l(q, {
346
347
  modelValue: c.value.labelIds,
347
348
  "onUpdate:modelValue": t[6] || (t[6] = (e) => c.value.labelIds = e),
348
349
  data: s(S).labelListBizDict.values,
@@ -351,7 +352,7 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
351
352
  class: "!w-[203px]"
352
353
  }, {
353
354
  default: o(() => [
354
- (r(!0), v(D, null, B(s(S).labelListBizDict.values, (e) => (r(), _(q, {
355
+ (r(!0), v(D, null, B(s(S).labelListBizDict.values, (e) => (r(), w(E, {
355
356
  key: e.key,
356
357
  label: e.value,
357
358
  value: e.key
@@ -409,7 +410,7 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
409
410
  default: o(() => [
410
411
  l(k, { span: 17 }, {
411
412
  default: o(() => [
412
- w((r(), _(V, {
413
+ C((r(), w(V, {
413
414
  type: "primary",
414
415
  onClick: oe
415
416
  }, {
@@ -418,9 +419,9 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
418
419
  ]),
419
420
  _: 1
420
421
  })), [
421
- [h, ["goods:goods_spu:add"]]
422
+ [_, ["goods:goods_spu:add"]]
422
423
  ]),
423
- $.approvalStatus !== s(C).APPROVAL_PASS ? w((r(), _(V, {
424
+ $.approvalStatus !== s(h).APPROVAL_PASS ? C((r(), w(V, {
424
425
  key: 0,
425
426
  type: "primary",
426
427
  onClick: t[9] || (t[9] = (e) => s(n).deleteRecords())
@@ -430,9 +431,9 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
430
431
  ]),
431
432
  _: 1
432
433
  })), [
433
- [h, ["goods:goods_spu:delete"]]
434
+ [_, ["goods:goods_spu:delete"]]
434
435
  ]) : I("", !0),
435
- $.approvalStatus === s(C).APPROVAL_PASS ? w((r(), _(V, {
436
+ $.approvalStatus === s(h).APPROVAL_PASS ? C((r(), w(V, {
436
437
  key: 1,
437
438
  type: "primary",
438
439
  onClick: de
@@ -442,9 +443,9 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
442
443
  ]),
443
444
  _: 1
444
445
  })), [
445
- [h, ["goods:goods_spu:onSale"]]
446
+ [_, ["goods:goods_spu:onSale"]]
446
447
  ]) : I("", !0),
447
- b.shelf === "false" ? w((r(), _(V, {
448
+ b.shelf === "false" ? C((r(), w(V, {
448
449
  key: 2,
449
450
  type: "primary",
450
451
  onClick: ue
@@ -454,21 +455,21 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
454
455
  ]),
455
456
  _: 1
456
457
  })), [
457
- [h, ["goods:goods_spu:onSale"]]
458
+ [_, ["goods:goods_spu:onSale"]]
458
459
  ]) : I("", !0),
459
- b.approvalStatus === "" && b.shelf === "" ? w((r(), _(Y, {
460
+ b.approvalStatus === "" && b.shelf === "" ? C((r(), w(M, {
460
461
  key: 3,
461
462
  class: "dropdown-left",
462
463
  onCommand: ne
463
464
  }, {
464
465
  dropdown: o(() => [
465
- l(Q, null, {
466
+ l(H, null, {
466
467
  default: o(() => [
467
468
  l(U, { command: "true" }, {
468
469
  default: o(() => [
469
470
  l(R, { size: "14" }, {
470
471
  default: o(() => [
471
- l(F)
472
+ l(Y)
472
473
  ]),
473
474
  _: 1
474
475
  }),
@@ -480,7 +481,7 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
480
481
  default: o(() => [
481
482
  l(R, { size: "14" }, {
482
483
  default: o(() => [
483
- l(H)
484
+ l(F)
484
485
  ]),
485
486
  _: 1
486
487
  }),
@@ -508,23 +509,23 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
508
509
  ]),
509
510
  _: 1
510
511
  })), [
511
- [h, ["goods:goods_spu:onSale"]]
512
+ [_, ["goods:goods_spu:onSale"]]
512
513
  ]) : I("", !0),
513
- b.approvalStatus === "" && b.shelf === "" || b.approvalStatus === s(C).APPROVALING ? w((r(), _(Y, {
514
+ b.approvalStatus === "" && b.shelf === "" || b.approvalStatus === s(h).APPROVALING ? C((r(), w(M, {
514
515
  key: 4,
515
516
  class: "dropdown-left",
516
517
  onCommand: pe
517
518
  }, {
518
519
  dropdown: o(() => [
519
- l(Q, null, {
520
+ l(H, null, {
520
521
  default: o(() => [
521
522
  l(U, {
522
- command: s(C).APPROVAL_PASS
523
+ command: s(h).APPROVAL_PASS
523
524
  }, {
524
525
  default: o(() => [
525
526
  l(R, { size: "14" }, {
526
527
  default: o(() => [
527
- l(F)
528
+ l(Y)
528
529
  ]),
529
530
  _: 1
530
531
  }),
@@ -533,12 +534,12 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
533
534
  _: 1
534
535
  }, 8, ["command"]),
535
536
  l(U, {
536
- command: s(C).APPROVAL_NOT_PASS
537
+ command: s(h).APPROVAL_NOT_PASS
537
538
  }, {
538
539
  default: o(() => [
539
540
  l(R, { size: "14" }, {
540
541
  default: o(() => [
541
- l(H)
542
+ l(F)
542
543
  ]),
543
544
  _: 1
544
545
  }),
@@ -566,7 +567,7 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
566
567
  ]),
567
568
  _: 1
568
569
  })), [
569
- [h, ["goods:goods_spu:approve"]]
570
+ [_, ["goods:goods_spu:approve"]]
570
571
  ]) : I("", !0)
571
572
  ]),
572
573
  _: 1
@@ -589,10 +590,10 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
589
590
  })
590
591
  ]),
591
592
  footer: o(() => [
592
- s(T) > 0 ? (r(), _(fe, {
593
+ s(N) > 0 ? (r(), w(fe, {
593
594
  key: 0,
594
- total: s(T),
595
- "onUpdate:total": t[11] || (t[11] = (e) => J(T) ? T.value = e : null),
595
+ total: s(N),
596
+ "onUpdate:total": t[11] || (t[11] = (e) => J(N) ? N.value = e : null),
596
597
  "current-page": c.value.curPage,
597
598
  "onUpdate:currentPage": t[12] || (t[12] = (e) => c.value.curPage = e),
598
599
  "page-size": c.value.pageSize,
@@ -632,7 +633,7 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
632
633
  ]),
633
634
  shelf: o((e) => [
634
635
  P("span", null, [
635
- l(K, {
636
+ l(Q, {
636
637
  modelValue: e.data.row.shelf,
637
638
  "onUpdate:modelValue": (f) => e.data.row.shelf = f,
638
639
  onClick: (f) => s(n).enableRecord(e.data.row, e.data.row.shelf)
@@ -663,40 +664,40 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
663
664
  )), 1)
664
665
  ]),
665
666
  enable: o((e) => [
666
- l(K, {
667
+ l(Q, {
667
668
  modelValue: e.data.row.enable,
668
669
  "onUpdate:modelValue": (f) => e.data.row.enable = f,
669
670
  onChange: (f) => s(n).enableRecord(e.data.row, e.data.row.enable)
670
671
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
671
672
  ]),
672
673
  operation: o((e) => [
673
- $.approvalStatus !== s(C).APPROVAL_PASS ? w((r(), v("span", {
674
+ $.approvalStatus !== s(h).APPROVAL_PASS ? C((r(), v("span", {
674
675
  key: 0,
675
676
  class: "el-button-color",
676
677
  onClick: (f) => le(e.data.row)
677
678
  }, [
678
679
  m(u(a.$t("common.edit")), 1)
679
680
  ], 8, Ie)), [
680
- [h, ["goods:goods_spu:update"]]
681
+ [_, ["goods:goods_spu:update"]]
681
682
  ]) : I("", !0),
682
- $.approvalStatus !== s(C).APPROVAL_PASS ? w((r(), v("span", {
683
+ $.approvalStatus !== s(h).APPROVAL_PASS ? C((r(), v("span", {
683
684
  key: 1,
684
685
  class: "el-button-color dropdown-left",
685
686
  onClick: (f) => s(n).deleteRecord(e.data.row)
686
687
  }, [
687
688
  m(u(a.$t("common.delete")), 1)
688
689
  ], 8, $e)), [
689
- [h, ["goods:goods_spu:delete"]]
690
+ [_, ["goods:goods_spu:delete"]]
690
691
  ]) : I("", !0),
691
- w((r(), v("span", {
692
+ C((r(), v("span", {
692
693
  class: _e(
693
- $.approvalStatus !== s(C).APPROVAL_PASS ? "el-button-color dropdown-left" : "el-button-color"
694
+ $.approvalStatus !== s(h).APPROVAL_PASS ? "el-button-color dropdown-left" : "el-button-color"
694
695
  ),
695
696
  onClick: (f) => te(e.data.row)
696
697
  }, [
697
698
  m(u(a.$t("common.view")), 1)
698
699
  ], 10, Re)), [
699
- [h, ["goods:goods_spu:view"]]
700
+ [_, ["goods:goods_spu:view"]]
700
701
  ])
701
702
  ]),
702
703
  _: 1