xyvcard-goods 0.0.33 → 0.0.34

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 (92) hide show
  1. package/dist/{GoodsBaseForm-6rzBkBTh.mjs → GoodsBaseForm-BSvXc_XA.mjs} +1 -1
  2. package/dist/{GoodsBaseForm.vue_vue_type_script_setup_true_lang-BmIR352P.mjs → GoodsBaseForm.vue_vue_type_script_setup_true_lang-rsmqHXbJ.mjs} +60 -53
  3. package/dist/GoodsLogisticsForm-1Bbd4Z52.mjs +4 -0
  4. package/dist/GoodsLogisticsForm.vue_vue_type_script_setup_true_lang-PSnPNbmT.mjs +434 -0
  5. package/dist/{GoodsSpecForm-BqaN71rS.mjs → GoodsSpecForm-Ddo1IZLZ.mjs} +1 -1
  6. package/dist/GoodsSpecForm.vue_vue_type_script_setup_true_lang-CdWIufm4.mjs +338 -0
  7. package/dist/edit copy 2-Yzf_M31V.mjs +59 -0
  8. package/dist/{edit copy-tfwJCdiV.mjs → edit copy-CCnzlrgL.mjs } +3 -3
  9. package/dist/{edit-D2zcGl_U.mjs → edit-BgtwinSN.mjs} +1 -1
  10. package/dist/{edit-Db2EJ9dq.mjs → edit-Dke5sWct.mjs} +3 -3
  11. package/dist/{edit-CZwlbL9o.mjs → edit-e5-aXV6K.mjs} +18 -18
  12. package/dist/{edit-DBTNknBy.mjs → edit-lfXK_dUp.mjs} +3 -3
  13. package/dist/{edit-1Lv_dvlq.mjs → edit-pUKONjxH.mjs} +1 -1
  14. package/dist/{edit.vue_vue_type_script_setup_true_lang-BmOhw098.mjs → edit.vue_vue_type_script_setup_true_lang-BtGT564r.mjs} +32 -32
  15. package/dist/{index-BXa-atkT.mjs → index-BSzOTWcG.mjs} +1 -1
  16. package/dist/{index-Cl4wz2yF.mjs → index-BpKiAhvt.mjs} +3 -3
  17. package/dist/{index-DXIGHcIv.mjs → index-ChQ-ZxD1.mjs} +2 -2
  18. package/dist/{index-BpXZNA11.mjs → index-CkJncbVf.mjs} +3 -3
  19. package/dist/{index-DGYGNHfx.mjs → index-CkMWas2b.mjs} +3 -3
  20. package/dist/index-Da2R0n8O.mjs +374 -0
  21. package/dist/{index-CRfiEzkA.mjs → index-DhS4AuWf.mjs} +509 -481
  22. package/dist/{index-BhUD_X30.mjs → index-DyLLV1NK.mjs} +2 -2
  23. package/dist/index.mjs +1 -1
  24. package/dist/{info-DfbU-CWk.mjs → info-DOKoSi7a.mjs} +34 -34
  25. package/dist/{info-DDi6GKQH.mjs → info-De_pBN6A.mjs} +19 -19
  26. package/dist/{skuForm-DoIpxDvq.mjs → skuForm-DVGkw6rD.mjs} +21 -21
  27. package/dist/{skuForm-DWIoveRP.mjs → skuForm-YXHrhyPI.mjs} +110 -109
  28. package/dist/{skuTable-BVBtWrf9.mjs → skuTable-DOIQ9kiV.mjs} +62 -62
  29. package/dist/style.css +1 -1
  30. package/dts/xyvcard-goods/src/App.vue.d.ts +2 -0
  31. package/dts/xyvcard-goods/src/api/dict.d.ts +35 -0
  32. package/dts/xyvcard-goods/src/api/goods-base/index.d.ts +11 -0
  33. package/dts/xyvcard-goods/src/api/goods-base/types.d.ts +33 -0
  34. package/dts/xyvcard-goods/src/api/goods-brand-info/index.d.ts +20 -0
  35. package/dts/xyvcard-goods/src/api/goods-brand-info/types.d.ts +73 -0
  36. package/dts/xyvcard-goods/src/api/goods-category/index.d.ts +23 -0
  37. package/dts/xyvcard-goods/src/api/goods-category/types.d.ts +70 -0
  38. package/dts/xyvcard-goods/src/api/goods-ensure/index.d.ts +13 -0
  39. package/dts/xyvcard-goods/src/api/goods-ensure/types.d.ts +13 -0
  40. package/dts/xyvcard-goods/src/api/goods-label-info/index.d.ts +20 -0
  41. package/dts/xyvcard-goods/src/api/goods-label-info/types.d.ts +70 -0
  42. package/dts/xyvcard-goods/src/api/goods-logistics/index.d.ts +8 -0
  43. package/dts/xyvcard-goods/src/api/goods-logistics/types.d.ts +16 -0
  44. package/dts/xyvcard-goods/src/api/goods-sku/types.d.ts +18 -0
  45. package/dts/xyvcard-goods/src/api/goods-spec/index.d.ts +8 -0
  46. package/dts/xyvcard-goods/src/api/goods-spec/types.d.ts +15 -0
  47. package/dts/xyvcard-goods/src/api/goods-spu/index.d.ts +69 -0
  48. package/dts/xyvcard-goods/src/api/goods-spu/types.d.ts +245 -0
  49. package/dts/xyvcard-goods/src/api/goods-stock/index.d.ts +8 -0
  50. package/dts/xyvcard-goods/src/api/goods-stock/types.d.ts +32 -0
  51. package/dts/xyvcard-goods/src/api/index.d.ts +29 -0
  52. package/dts/xyvcard-goods/src/api/shop-branch/index.d.ts +9 -0
  53. package/dts/xyvcard-goods/src/api/shop-branch/types.d.ts +28 -0
  54. package/dts/xyvcard-goods/src/components/ImageUpload.vue.d.ts +36 -0
  55. package/dts/xyvcard-goods/src/constant.d.ts +107 -0
  56. package/dts/xyvcard-goods/src/index.d.ts +12 -0
  57. package/dts/xyvcard-goods/src/lang/goods/en.d.ts +2 -0
  58. package/dts/xyvcard-goods/src/lang/goods/zh-cn.d.ts +141 -0
  59. package/dts/xyvcard-goods/src/lang/index.d.ts +1 -0
  60. package/dts/xyvcard-goods/src/main.d.ts +7 -0
  61. package/dts/xyvcard-goods/src/permission.d.ts +1 -0
  62. package/dts/xyvcard-goods/src/router/index.d.ts +6 -0
  63. package/dts/xyvcard-goods/src/utils/momentPlugin.d.ts +5 -0
  64. package/dts/xyvcard-goods/src/utils/returnBizLay.d.ts +2 -0
  65. package/dts/xyvcard-goods/src/utils/sku.d.ts +19 -0
  66. package/dts/xyvcard-goods/src/views/goods/goods-brand-info/edit.vue.d.ts +22 -0
  67. package/dts/xyvcard-goods/src/views/goods/goods-brand-info/index.vue.d.ts +2 -0
  68. package/dts/xyvcard-goods/src/views/goods/goods-category/edit.vue.d.ts +22 -0
  69. package/dts/xyvcard-goods/src/views/goods/goods-category/index.vue.d.ts +2 -0
  70. package/dts/xyvcard-goods/src/views/goods/goods-combination/edit.vue.d.ts +2 -0
  71. package/dts/xyvcard-goods/src/views/goods/goods-combination/index.vue.d.ts +2 -0
  72. package/dts/xyvcard-goods/src/views/goods/goods-combination/info.vue.d.ts +2 -0
  73. package/dts/xyvcard-goods/src/views/goods/goods-combination/skuForm.vue.d.ts +20 -0
  74. package/dts/xyvcard-goods/src/views/goods/goods-label-info/edit.vue.d.ts +22 -0
  75. package/dts/xyvcard-goods/src/views/goods/goods-label-info/index.vue.d.ts +2 -0
  76. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsBaseForm.vue.d.ts +34 -0
  77. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsLogisticsForm.vue.d.ts +42 -0
  78. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsSpecForm.vue.d.ts +42 -0
  79. package/dts/xyvcard-goods/src/views/goods/goods-spu/edit copy 2.vue.d.ts +2 -0
  80. package/dts/xyvcard-goods/src/views/goods/goods-spu/edit copy.vue.d.ts +2 -0
  81. package/dts/xyvcard-goods/src/views/goods/goods-spu/edit.vue.d.ts +2 -0
  82. package/dts/xyvcard-goods/src/views/goods/goods-spu/index.vue.d.ts +2 -0
  83. package/dts/xyvcard-goods/src/views/goods/goods-spu/info.vue.d.ts +2 -0
  84. package/dts/xyvcard-goods/src/views/goods/goods-spu/skuForm.vue.d.ts +29 -0
  85. package/dts/xyvcard-goods/src/views/goods/goods-spu/skuTable.vue.d.ts +40 -0
  86. package/dts/xyvcard-shop/src/api/shop-branch/index.d.ts +14 -0
  87. package/dts/xyvcard-shop/src/api/shop-branch/types.d.ts +76 -0
  88. package/package.json +4 -4
  89. package/dist/GoodsLogisticsForm-CHyQ99Mt.mjs +0 -10
  90. package/dist/GoodsSpecForm.vue_vue_type_script_setup_true_lang-BTFKRiNW.mjs +0 -140
  91. package/dist/edit copy 2-DnKLaz3I.mjs +0 -45
  92. package/dist/index-Df-F10aZ.mjs +0 -264
@@ -3,8 +3,8 @@ import { useRoute as Ae, useRouter as Ie } from "vue-router";
3
3
  import { ElMessage as P } from "element-plus";
4
4
  import { useI18n as Re } from "vue-i18n";
5
5
  import { useTableHooks as Le, fileApi as K } from "jmash-core";
6
- import { D as g, C as f } from "./index-Df-F10aZ.mjs";
7
- import { a as T } from "./index-CRfiEzkA.mjs";
6
+ import { D as g, C as f } from "./index-Da2R0n8O.mjs";
7
+ import { a as T } from "./index-DhS4AuWf.mjs";
8
8
  const $e = { class: "app-container" }, Te = {
9
9
  key: 0,
10
10
  class: "app-container"
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import "jmash-core";
2
- import { c as p, g, b as d, a as e } from "./index-CRfiEzkA.mjs";
2
+ import { c as p, g, b as d, a as e } from "./index-DhS4AuWf.mjs";
3
3
  export {
4
4
  p as default,
5
5
  g as goodsCategoryApi,
@@ -1,13 +1,13 @@
1
- import { defineComponent as M, ref as P, resolveComponent as f, createElementBlock as v, openBlock as _, createVNode as o, withCtx as s, createElementVNode as d, createTextVNode as p, toDisplayString as u, Fragment as C, renderList as V, createBlock as D, unref as m } from "vue";
2
- import { fileApi as S, routerUtil as R } from "jmash-core";
1
+ import { defineComponent as M, ref as P, resolveComponent as _, createElementBlock as v, openBlock as f, createVNode as o, withCtx as s, createElementVNode as d, createTextVNode as p, toDisplayString as u, Fragment as T, renderList as C, createBlock as L, unref as m } from "vue";
2
+ import { fileApi as b, routerUtil as R } from "jmash-core";
3
3
  import { useRouter as j, useRoute as G } from "vue-router";
4
- import { D as y, C as b } from "./index-Df-F10aZ.mjs";
5
- import { a as L } from "./index-CRfiEzkA.mjs";
4
+ import { D as y, C as U } from "./index-Da2R0n8O.mjs";
5
+ import { a as D } from "./index-DhS4AuWf.mjs";
6
6
  import { specValueApi as H } from "xyvcard-shop";
7
7
  const J = { class: "app-container" }, K = { class: "cell-item" }, Q = { class: "cell-item" }, W = { class: "cell-item" }, X = { class: "cell-item" }, Z = { class: "cell-item" }, w = { class: "cell-item" }, x = { class: "cell-item" }, ee = { class: "cell-item" }, le = { class: "cell-item" }, se = { class: "cell-item" }, te = { class: "cell-item" }, ae = { key: 0 }, ie = { key: 1 }, me = /* @__PURE__ */ M({
8
8
  __name: "info",
9
9
  setup(ue) {
10
- const O = j(), U = G(), r = P({}), $ = P([]), B = P({}), N = P([]);
10
+ const B = j(), S = G(), r = P({}), $ = P([]), A = P({}), E = P([]);
11
11
  y.goodsCategoryListBizLayDict.useValues(), y.labelListBizDict.useValues(), y.goodsSpuBizDict.useValues();
12
12
  const h = P([
13
13
  {
@@ -21,11 +21,11 @@ const J = { class: "app-container" }, K = { class: "cell-item" }, Q = { class: "
21
21
  skuOptions: []
22
22
  }
23
23
  ]);
24
- U.query.spuId && (L.findById({ spuId: U.query.spuId }).then(({ data: e }) => {
24
+ S.query.spuId && (D.findById({ spuId: S.query.spuId }).then(({ data: e }) => {
25
25
  var l;
26
26
  r.value = Object.assign(r, e), $.value = (l = e.picUrls) == null ? void 0 : l.split(",");
27
- }), L.findGroupList({ goodsId: U.query.spuId }).then(({ data: e }) => {
28
- if (r.value.specType === b.SPEC_TYPE.UNIFIED_SPEC) {
27
+ }), D.findGroupList({ goodsId: S.query.spuId }).then(({ data: e }) => {
28
+ if (r.value.specType === U.SPEC_TYPE_VALUES.UNIFIED_SPEC) {
29
29
  e.results.forEach((l) => {
30
30
  l.specType = r.value.specType;
31
31
  }), h.value = e.results;
@@ -43,37 +43,37 @@ const J = { class: "app-container" }, K = { class: "cell-item" }, Q = { class: "
43
43
  specType: "",
44
44
  skuOptions: []
45
45
  };
46
- return await A(t.spuId, i), i.saleNum = t.saleNum || 0, i.salePrice = t.salePrice || 0, i.specType === b.SPEC_TYPE.MULTI_SPEC && t.skuId && (i.skuId = t.skuId || "", i.salePrice = t.salePrice || 0, i.saleNum = t.saleNum || 0, i.picUrl = t.picUrl || "", z(t.skuId)), i;
46
+ return await O(t.spuId, i), i.saleNum = t.saleNum || 0, i.salePrice = t.salePrice || 0, i.specType === U.SPEC_TYPE_VALUES.MULTI_SPEC && t.skuId && (i.skuId = t.skuId || "", i.salePrice = t.salePrice || 0, i.saleNum = t.saleNum || 0, i.picUrl = t.picUrl || "", z(t.skuId)), i;
47
47
  });
48
48
  Promise.all(l).then((t) => {
49
49
  console.log(t), h.value = t;
50
50
  });
51
51
  }
52
52
  }));
53
- async function A(e, l) {
53
+ async function O(e, l) {
54
54
  var t, i, k;
55
55
  if (l.skuId = "", l.skuOptions = [], l.picUrl = "", l.salePrice = 0, l.saleNum = 0, !e) {
56
56
  l.skuId = "", l.picUrl = "", l.salePrice = 0, l.saleNum = 0, l.skuOptions = [];
57
57
  return;
58
58
  }
59
59
  try {
60
- const { data: n } = await L.findById({ spuId: e });
61
- if (l.specType = n.specType, l.specType === b.SPEC_TYPE.UNIFIED_SPEC && (l.picUrl = n.picUrls ? n.picUrls.split(",")[0] : "", l.salePrice = (t = n.skuList) == null ? void 0 : t.results[0].salePrice, l.saleNum = (i = n.skuList) == null ? void 0 : i.results[0].stock, l.skuId = (k = n.skuList) == null ? void 0 : k.results[0].skuId), l.specType === b.SPEC_TYPE.MULTI_SPEC && n.skuList) {
60
+ const { data: n } = await D.findById({ spuId: e });
61
+ if (l.specType = n.specType, l.specType === U.SPEC_TYPE_VALUES.UNIFIED_SPEC && (l.picUrl = n.picUrls ? n.picUrls.split(",")[0] : "", l.salePrice = (t = n.skuList) == null ? void 0 : t.results[0].salePrice, l.saleNum = (i = n.skuList) == null ? void 0 : i.results[0].stock, l.skuId = (k = n.skuList) == null ? void 0 : k.results[0].skuId), l.specType === U.SPEC_TYPE_VALUES.MULTI_SPEC && n.skuList) {
62
62
  const I = n.skuList.results, g = I.map((c) => c.specValues && Array.isArray(c.specValues) ? c.specValues.map(
63
63
  (a) => a.specValueId
64
- ) : []), E = g.flat().map((c) => Y(c));
65
- await Promise.all(E);
66
- const T = g.map(
67
- (c) => c.map((a) => N.value[a] || a)
64
+ ) : []), N = g.flat().map((c) => Y(c));
65
+ await Promise.all(N);
66
+ const V = g.map(
67
+ (c) => c.map((a) => E.value[a] || a)
68
68
  );
69
69
  l.skuOptions = I.map((c, a) => ({
70
70
  key: c.skuId,
71
- value: T[a].join(" "),
71
+ value: V[a].join(" "),
72
72
  picUrl: c.picUrl || (n.picUrls ? n.picUrls.split(",")[0] : ""),
73
73
  salePrice: c.salePrice,
74
74
  stock: c.stock
75
75
  })), I.forEach((c) => {
76
- c.skuId && (B.value[c.skuId] = {
76
+ c.skuId && (A.value[c.skuId] = {
77
77
  ...c,
78
78
  spuPicUrls: n.picUrls
79
79
  });
@@ -85,7 +85,7 @@ const J = { class: "app-container" }, K = { class: "cell-item" }, Q = { class: "
85
85
  function z(e) {
86
86
  const l = h.value.find((t) => t.skuId === e);
87
87
  if (l && e) {
88
- const t = B.value[e];
88
+ const t = A.value[e];
89
89
  if (t) {
90
90
  const i = t.spuPicUrls ? t.spuPicUrls.split(",")[0] : "";
91
91
  l.picUrl = t.picUrl || i, l.salePrice = t.salePrice, l.saleNum = t.stock;
@@ -93,12 +93,12 @@ const J = { class: "app-container" }, K = { class: "cell-item" }, Q = { class: "
93
93
  }
94
94
  }
95
95
  async function Y(e) {
96
- if (!N.value[e])
96
+ if (!E.value[e])
97
97
  try {
98
98
  const { data: l } = await H.findById({
99
99
  specValueId: e
100
100
  });
101
- return N.value[e] = l.valueName, l.valueName;
101
+ return E.value[e] = l.valueName, l.valueName;
102
102
  } catch {
103
103
  }
104
104
  }
@@ -111,11 +111,11 @@ const J = { class: "app-container" }, K = { class: "cell-item" }, Q = { class: "
111
111
  return l ? l.value : "";
112
112
  }
113
113
  function q() {
114
- R.closeTagView(U.fullPath, O, !1);
114
+ R.closeTagView(S.fullPath, B, !1);
115
115
  }
116
116
  return (e, l) => {
117
- const t = f("el-button"), i = f("el-descriptions-item"), k = f("el-tag"), n = f("el-image"), I = f("el-descriptions"), g = f("el-table-column"), E = f("el-table"), T = f("el-row"), c = f("el-card");
118
- return _(), v("div", J, [
117
+ const t = _("el-button"), i = _("el-descriptions-item"), k = _("el-tag"), n = _("el-image"), I = _("el-descriptions"), g = _("el-table-column"), N = _("el-table"), V = _("el-row"), c = _("el-card");
118
+ return f(), v("div", J, [
119
119
  o(c, { shadow: "never" }, {
120
120
  header: s(() => [
121
121
  o(t, {
@@ -159,7 +159,7 @@ const J = { class: "app-container" }, K = { class: "cell-item" }, Q = { class: "
159
159
  d("div", W, u(e.$t("goodsSpu.categoryId")), 1)
160
160
  ]),
161
161
  default: s(() => [
162
- (_(!0), v(C, null, V(r.value.categoryIds, (a) => (_(), D(k, {
162
+ (f(!0), v(T, null, C(r.value.categoryIds, (a) => (f(), L(k, {
163
163
  type: "info",
164
164
  key: a,
165
165
  style: { "margin-right": "8px", "margin-bottom": "4px" }
@@ -224,10 +224,10 @@ const J = { class: "app-container" }, K = { class: "cell-item" }, Q = { class: "
224
224
  d("div", le, u(e.$t("goodsSpu.picUrls")), 1)
225
225
  ]),
226
226
  default: s(() => [
227
- (_(!0), v(C, null, V($.value, (a) => (_(), D(n, {
227
+ (f(!0), v(T, null, C($.value, (a) => (f(), L(n, {
228
228
  key: a,
229
- src: m(S).imageUrl(a, 80, 80),
230
- "preview-src-list": [m(S).imageUrl(a)],
229
+ src: m(b).imageUrl(a, 80, 80),
230
+ "preview-src-list": [m(b).imageUrl(a)],
231
231
  "preview-teleported": "",
232
232
  "hide-on-click-modal": "",
233
233
  fit: "contain"
@@ -249,7 +249,7 @@ const J = { class: "app-container" }, K = { class: "cell-item" }, Q = { class: "
249
249
  d("div", te, u(e.$t("goodsSpu.labelIds")), 1)
250
250
  ]),
251
251
  default: s(() => [
252
- (_(!0), v(C, null, V(r.value.labelIds, (a) => (_(), D(k, {
252
+ (f(!0), v(T, null, C(r.value.labelIds, (a) => (f(), L(k, {
253
253
  type: "info",
254
254
  key: a,
255
255
  style: { "margin-right": "8px", "margin-bottom": "4px" }
@@ -266,9 +266,9 @@ const J = { class: "app-container" }, K = { class: "cell-item" }, Q = { class: "
266
266
  _: 1
267
267
  }),
268
268
  l[1] || (l[1] = d("div", { class: "title-content" }, "套装商品", -1)),
269
- o(T, null, {
269
+ o(V, null, {
270
270
  default: s(() => [
271
- o(E, {
271
+ o(N, {
272
272
  data: h.value,
273
273
  border: "",
274
274
  style: { width: "100%" }
@@ -289,7 +289,7 @@ const J = { class: "app-container" }, K = { class: "cell-item" }, Q = { class: "
289
289
  "header-align": "center"
290
290
  }, {
291
291
  default: s(({ row: a }) => [
292
- a.specType === m(b).SPEC_TYPE.UNIFIED_SPEC ? (_(), v("span", ae, " 统一规格 ")) : (_(), v("span", ie, u(F(a)), 1))
292
+ a.specType === m(U).SPEC_TYPE_VALUES.UNIFIED_SPEC ? (f(), v("span", ae, " 统一规格 ")) : (f(), v("span", ie, u(F(a)), 1))
293
293
  ]),
294
294
  _: 1
295
295
  }, 8, ["label"]),
@@ -301,8 +301,8 @@ const J = { class: "app-container" }, K = { class: "cell-item" }, Q = { class: "
301
301
  }, {
302
302
  default: s(({ row: a }) => [
303
303
  o(n, {
304
- src: m(S).imageUrl(a.picUrl, 80, 80),
305
- "preview-src-list": [m(S).imageUrl(a.picUrl)],
304
+ src: m(b).imageUrl(a.picUrl, 80, 80),
305
+ "preview-src-list": [m(b).imageUrl(a.picUrl)],
306
306
  "preview-teleported": "",
307
307
  "hide-on-click-modal": "",
308
308
  fit: "contain"
@@ -1,15 +1,15 @@
1
- import { defineComponent as M, ref as y, computed as q, watch as j, resolveComponent as b, createElementBlock as k, openBlock as r, createVNode as i, withCtx as e, createElementVNode as a, createBlock as S, createCommentVNode as B, createTextVNode as n, toDisplayString as s, Fragment as L, renderList as I, unref as _ } from "vue";
1
+ import { defineComponent as M, ref as y, computed as q, watch as j, resolveComponent as S, createElementBlock as k, openBlock as r, createVNode as i, withCtx as e, createElementVNode as a, createBlock as b, createCommentVNode as B, createTextVNode as n, toDisplayString as s, Fragment as L, renderList as I, unref as _ } from "vue";
2
2
  import { fileApi as w, routerUtil as F } from "jmash-core";
3
3
  import { useRouter as H, useRoute as O } from "vue-router";
4
- import { D as d, C as N, S as R } from "./index-Df-F10aZ.mjs";
5
- import Y from "./skuTable-BVBtWrf9.mjs";
6
- import { a as G } from "./index-CRfiEzkA.mjs";
4
+ import { D as d, C as N, S as R } from "./index-Da2R0n8O.mjs";
5
+ import Y from "./skuTable-DOIQ9kiV.mjs";
6
+ import { a as G } from "./index-DhS4AuWf.mjs";
7
7
  import { g as J } from "./index-BHmGYIuc.mjs";
8
8
  const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "cell-item" }, X = { class: "cell-item" }, Z = { class: "cell-item" }, x = { class: "cell-item" }, ee = { class: "cell-item" }, le = { class: "cell-item" }, se = { class: "cell-item" }, te = { class: "cell-item" }, oe = { class: "cell-item" }, ue = { class: "cell-item" }, ae = { class: "cell-item" }, ie = { class: "title-content" }, ne = { class: "cell-item" }, ce = { class: "cell-item" }, de = { class: "cell-item" }, re = { class: "cell-item" }, pe = { class: "cell-item" }, me = { class: "cell-item" }, _e = { class: "cell-item" }, fe = { class: "cell-item" }, ge = ["innerHTML"], Ie = /* @__PURE__ */ M({
9
9
  __name: "info",
10
10
  setup(ve) {
11
11
  d.brandListBizDict.useValues(), d.labelListBizDict.useValues();
12
- const U = H(), V = O(), u = y({}), $ = y([]), g = y([]), P = y([]), E = y([]), T = q(() => g.value.filter(
12
+ const U = H(), V = O(), u = y({}), $ = y([]), g = y([]), E = y([]), P = y([]), T = q(() => g.value.filter(
13
13
  (t) => t.name && t.specValueList != null && t.specValueList.length
14
14
  ));
15
15
  j(
@@ -23,7 +23,7 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
23
23
  var c, v, o;
24
24
  u.value = Object.assign(u, t), $.value = (c = t.picUrls) == null ? void 0 : c.split(","), J.findById({ spuId: V.query.spuId }).then(({ data: p }) => {
25
25
  u.value.ensureIds = p.ensures;
26
- }), t.specType === N.SPEC_TYPE.MULTI_SPEC && (P.value = (v = t.skuList) == null ? void 0 : v.results, (o = t.skuList) == null || o.results.forEach((p) => {
26
+ }), t.specType === N.SPEC_TYPE_VALUES.MULTI_SPEC && (E.value = (v = t.skuList) == null ? void 0 : v.results, (o = t.skuList) == null || o.results.forEach((p) => {
27
27
  var m;
28
28
  (m = p.specValues) == null || m.map((h) => {
29
29
  d.specInfoDict.useValues().then((D) => {
@@ -39,14 +39,14 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
39
39
  const C = /* @__PURE__ */ new Map();
40
40
  g.value = g.value.filter(
41
41
  (f) => !C.has(f.id) && C.set(f.id, f)
42
- ), z(h.specValueId);
42
+ ), A(h.specValueId);
43
43
  });
44
44
  });
45
45
  }));
46
46
  });
47
- function z(t) {
47
+ function A(t) {
48
48
  g.value.forEach((c) => {
49
- E.value = new R({ specId: c.id }), E.value.useValues().then((v) => {
49
+ P.value = new R({ specId: c.id }), P.value.useValues().then((v) => {
50
50
  v.forEach((o) => {
51
51
  if (o.key === t) {
52
52
  let m = {
@@ -63,17 +63,17 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
63
63
  });
64
64
  });
65
65
  }
66
- function A() {
66
+ function z() {
67
67
  F.closeTagView(V.fullPath, U, !1);
68
68
  }
69
69
  return (t, c) => {
70
- const v = b("el-button"), o = b("el-descriptions-item"), p = b("el-tag"), m = b("el-image"), h = b("el-descriptions"), D = b("el-card");
70
+ const v = S("el-button"), o = S("el-descriptions-item"), p = S("el-tag"), m = S("el-image"), h = S("el-descriptions"), D = S("el-card");
71
71
  return r(), k("div", K, [
72
72
  i(D, { shadow: "never" }, {
73
73
  header: e(() => [
74
74
  i(v, {
75
75
  type: "primary",
76
- onClick: A
76
+ onClick: z
77
77
  }, {
78
78
  default: e(() => [
79
79
  n(s(t.$t("common.back")), 1)
@@ -112,7 +112,7 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
112
112
  a("div", X, s(t.$t("goodsSpu.categoryId")), 1)
113
113
  ]),
114
114
  default: e(() => [
115
- (r(!0), k(L, null, I(u.value.categoryIds, (l) => (r(), S(p, {
115
+ (r(!0), k(L, null, I(u.value.categoryIds, (l) => (r(), b(p, {
116
116
  type: "info",
117
117
  key: l,
118
118
  style: { "margin-right": "8px", "margin-bottom": "4px" }
@@ -139,7 +139,7 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
139
139
  a("div", x, s(t.$t("goodsSpu.labelIds")), 1)
140
140
  ]),
141
141
  default: e(() => [
142
- (r(!0), k(L, null, I(u.value.labelIds, (l) => (r(), S(p, {
142
+ (r(!0), k(L, null, I(u.value.labelIds, (l) => (r(), b(p, {
143
143
  type: "info",
144
144
  key: l,
145
145
  style: { "margin-right": "8px", "margin-bottom": "4px" }
@@ -157,7 +157,7 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
157
157
  a("div", ee, s(t.$t("goodsSpu.picUrls")), 1)
158
158
  ]),
159
159
  default: e(() => [
160
- (r(!0), k(L, null, I($.value, (l) => (r(), S(m, {
160
+ (r(!0), k(L, null, I($.value, (l) => (r(), b(m, {
161
161
  key: l,
162
162
  src: _(w).imageUrl(l, 80, 80),
163
163
  "preview-src-list": [_(w).imageUrl(l)],
@@ -220,7 +220,7 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
220
220
  a("div", ae, s(t.$t("goodsSpu.ensureIds")), 1)
221
221
  ]),
222
222
  default: e(() => [
223
- (r(!0), k(L, null, I(u.value.ensureIds, (l) => (r(), S(p, {
223
+ (r(!0), k(L, null, I(u.value.ensureIds, (l) => (r(), b(p, {
224
224
  type: "info",
225
225
  key: l
226
226
  }, {
@@ -236,7 +236,7 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
236
236
  _: 1
237
237
  }),
238
238
  a("div", ie, " 商品规格(" + s(_(d).specTypeEnum.getEnumValue(u.value.specType)) + ") ", 1),
239
- u.value.specType == _(N).SPEC_TYPE.UNIFIED_SPEC ? (r(), S(h, {
239
+ u.value.specType == _(N).SPEC_TYPE_VALUES.UNIFIED_SPEC ? (r(), b(h, {
240
240
  key: 0,
241
241
  class: "margin-top",
242
242
  column: 2,
@@ -342,10 +342,10 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
342
342
  ]),
343
343
  _: 1
344
344
  })) : B("", !0),
345
- g.value.length > 0 ? (r(), S(Y, {
345
+ g.value.length > 0 ? (r(), b(Y, {
346
346
  key: 1,
347
347
  specData: T.value,
348
- goodsSku: P.value,
348
+ goodsSku: E.value,
349
349
  isSettingShow: !1
350
350
  }, null, 8, ["specData", "goodsSku"])) : B("", !0),
351
351
  c[1] || (c[1] = a("div", { class: "title-content" }, "商品描述", -1)),
@@ -1,8 +1,8 @@
1
- import { defineComponent as z, ref as S, watch as E, resolveComponent as i, createBlock as P, openBlock as m, withCtx as r, createVNode as n, unref as h, createElementBlock as T, Fragment as Y, renderList as G, createCommentVNode as M, createTextVNode as H, toDisplayString as J } from "vue";
1
+ import { defineComponent as z, ref as S, watch as E, resolveComponent as i, createBlock as P, openBlock as m, withCtx as r, createVNode as n, unref as U, createElementBlock as T, Fragment as Y, renderList as G, createCommentVNode as M, createTextVNode as H, toDisplayString as J } from "vue";
2
2
  import { useI18n as K } from "vue-i18n";
3
3
  import { p as Q } from "./index-vHQhUQSO.mjs";
4
- import { D as V, C as U } from "./index-Df-F10aZ.mjs";
5
- import { a as D } from "./index-CRfiEzkA.mjs";
4
+ import { D as V, C as h } from "./index-Da2R0n8O.mjs";
5
+ import { a as D } from "./index-DhS4AuWf.mjs";
6
6
  import { specValueApi as W } from "xyvcard-shop";
7
7
  import { _ as X } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
8
8
  const Z = { key: 0 }, x = /* @__PURE__ */ z({
@@ -15,8 +15,8 @@ const Z = { key: 0 }, x = /* @__PURE__ */ z({
15
15
  }
16
16
  },
17
17
  emits: ["getGoodsSku", "getFormData"],
18
- setup($, { emit: B }) {
19
- const { t: O } = K(), g = S([]), d = S([
18
+ setup($, { emit: L }) {
19
+ const { t: A } = K(), g = S([]), d = S([
20
20
  {
21
21
  salePrice: 0,
22
22
  skuId: "",
@@ -30,8 +30,8 @@ const Z = { key: 0 }, x = /* @__PURE__ */ z({
30
30
  }
31
31
  ]);
32
32
  V.goodsSpuBizDict.useValues();
33
- const j = B;
34
- function F(s, e) {
33
+ const F = L;
34
+ function B(s, e) {
35
35
  s.picUrl = e.response.fileSrc;
36
36
  }
37
37
  const y = $;
@@ -56,18 +56,18 @@ const Z = { key: 0 }, x = /* @__PURE__ */ z({
56
56
  specType: "",
57
57
  skuOptions: []
58
58
  };
59
- return await v(l.spuId, t), t.saleNum = l.saleNum || 1, t.salePrice = l.salePrice || 0, t.specType === U.SPEC_TYPE.MULTI_SPEC && l.skuId && (t.skuId = l.skuId || "", t.salePrice = l.salePrice || 0, t.saleNum = l.saleNum || 1, t.picUrl = l.picUrl || "", C(l.skuId)), t;
59
+ return await v(l.spuId, t), t.saleNum = l.saleNum || 1, t.salePrice = l.salePrice || 0, t.specType === h.SPEC_TYPE_VALUES.MULTI_SPEC && l.skuId && (t.skuId = l.skuId || "", t.salePrice = l.salePrice || 0, t.saleNum = l.saleNum || 1, t.picUrl = l.picUrl || "", C(l.skuId)), t;
60
60
  });
61
61
  Promise.all(e).then((l) => {
62
62
  d.value = l;
63
63
  });
64
64
  }
65
65
  });
66
- function L(s) {
66
+ function O(s) {
67
67
  const e = d.value.indexOf(s.row);
68
68
  e !== 0 && d.value.splice(e, 1);
69
69
  }
70
- function A() {
70
+ function j() {
71
71
  d.value.push({
72
72
  salePrice: 0,
73
73
  skuId: "",
@@ -99,7 +99,7 @@ const Z = { key: 0 }, x = /* @__PURE__ */ z({
99
99
  }
100
100
  try {
101
101
  const { data: o } = await D.findById({ spuId: s });
102
- if (e.specType = o.specType, e.marketPrice = o.maxPrice, e.specType === U.SPEC_TYPE.UNIFIED_SPEC && (e.picUrl = o.picUrls ? o.picUrls.split(",")[0] : "", e.salePrice = (t = o.skuList) == null ? void 0 : t.results[0].salePrice, e.skuId = (I = o.skuList) == null ? void 0 : I.results[0].skuId, e.skuName = o.spuName), e.specType === U.SPEC_TYPE.MULTI_SPEC && o.skuList) {
102
+ if (e.specType = o.specType, e.marketPrice = o.maxPrice, e.specType === h.SPEC_TYPE_VALUES.UNIFIED_SPEC && (e.picUrl = o.picUrls ? o.picUrls.split(",")[0] : "", e.salePrice = (t = o.skuList) == null ? void 0 : t.results[0].salePrice, e.skuId = (I = o.skuList) == null ? void 0 : I.results[0].skuId, e.skuName = o.spuName), e.specType === h.SPEC_TYPE_VALUES.MULTI_SPEC && o.skuList) {
103
103
  const f = o.skuList.results, k = f.map((u) => u.specValues && Array.isArray(u.specValues) ? u.specValues.map(
104
104
  (p) => p.specValueId
105
105
  ) : []), N = k.flat().map((u) => R(u));
@@ -148,7 +148,7 @@ const Z = { key: 0 }, x = /* @__PURE__ */ z({
148
148
  skuName: l.skuName,
149
149
  marketPrice: l.marketPrice
150
150
  }));
151
- console.log("filteredValue", e), j("getGoodsSku", e);
151
+ console.log("filteredValue", e), F("getGoodsSku", e);
152
152
  },
153
153
  {
154
154
  deep: !0,
@@ -173,7 +173,7 @@ const Z = { key: 0 }, x = /* @__PURE__ */ z({
173
173
  n(l, {
174
174
  modelValue: a.spuId,
175
175
  "onUpdate:modelValue": (c) => a.spuId = c,
176
- data: h(V).goodsSpuBizDict.values,
176
+ data: U(V).goodsSpuBizDict.values,
177
177
  filterable: "",
178
178
  clearable: "",
179
179
  placeholder: s.$t("goodsSpu.spuNameRequireds"),
@@ -188,7 +188,7 @@ const Z = { key: 0 }, x = /* @__PURE__ */ z({
188
188
  "header-align": "center"
189
189
  }, {
190
190
  default: r(({ row: a }) => [
191
- a.specType === h(U).SPEC_TYPE.UNIFIED_SPEC ? (m(), T("span", Z, " 统一规格 ")) : (m(), P(o, {
191
+ a.specType === U(h).SPEC_TYPE_VALUES.UNIFIED_SPEC ? (m(), T("span", Z, " 统一规格 ")) : (m(), P(o, {
192
192
  key: 1,
193
193
  modelValue: a.skuId,
194
194
  "onUpdate:modelValue": (c) => a.skuId = c,
@@ -216,10 +216,10 @@ const Z = { key: 0 }, x = /* @__PURE__ */ z({
216
216
  default: r(({ row: a }) => [
217
217
  n(f, {
218
218
  "picture-url": a.picUrl,
219
- onImageSrc: (c) => F(a, c),
219
+ onUploadFile: (c) => B(a, c),
220
220
  width: 80,
221
221
  type: "trans"
222
- }, null, 8, ["picture-url", "onImageSrc"])
222
+ }, null, 8, ["picture-url", "onUploadFile"])
223
223
  ]),
224
224
  _: 1
225
225
  }, 8, ["label"]),
@@ -267,7 +267,7 @@ const Z = { key: 0 }, x = /* @__PURE__ */ z({
267
267
  default: r((a) => [
268
268
  a.$index !== 0 ? (m(), P(_, {
269
269
  key: 0,
270
- onClick: (c) => L(a),
270
+ onClick: (c) => O(a),
271
271
  size: "18",
272
272
  style: { cursor: "pointer", color: "inherit" },
273
273
  class: "hover-blue"
@@ -284,12 +284,12 @@ const Z = { key: 0 }, x = /* @__PURE__ */ z({
284
284
  _: 1
285
285
  }, 8, ["data"]),
286
286
  n(p, {
287
- icon: h(Q),
287
+ icon: U(Q),
288
288
  class: "addButton",
289
- onClick: A
289
+ onClick: j
290
290
  }, {
291
291
  default: r(() => [
292
- H(J(h(O)("common.add")), 1)
292
+ H(J(U(A)("common.add")), 1)
293
293
  ]),
294
294
  _: 1
295
295
  }, 8, ["icon"])
@@ -298,7 +298,7 @@ const Z = { key: 0 }, x = /* @__PURE__ */ z({
298
298
  });
299
299
  };
300
300
  }
301
- }), oe = /* @__PURE__ */ X(x, [["__scopeId", "data-v-278edbe2"]]);
301
+ }), oe = /* @__PURE__ */ X(x, [["__scopeId", "data-v-605dcad9"]]);
302
302
  export {
303
303
  oe as default
304
304
  };