xyvcard-goods 0.0.26 → 0.0.28

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 (28) hide show
  1. package/dist/{edit-Xn_nZjI6.mjs → edit-CYekSxUa.mjs} +3 -3
  2. package/dist/{edit-C5HGHhkb.mjs → edit-C_XCVJwM.mjs} +1 -1
  3. package/dist/{edit-DrbsKmwh.mjs → edit-CquWa3hI.mjs} +85 -82
  4. package/dist/{edit-Cb0aaC0q.mjs → edit-CuZnQH9w.mjs} +1 -1
  5. package/dist/{edit-eAHVEi0b.mjs → edit-D1FAN3TA.mjs} +1 -1
  6. package/dist/{edit.vue_vue_type_script_setup_true_lang-DBG-5gI4.mjs → edit.vue_vue_type_script_setup_true_lang-BSxqVyG4.mjs} +2 -2
  7. package/dist/{goodsList-CDQZGSh2.mjs → goodsList-DZlaY5k0.mjs} +1 -1
  8. package/dist/{goodsList-CKCG7ntZ.mjs → goodsList-wpPEPZqs.mjs} +1 -1
  9. package/dist/{goodsList.vue_vue_type_script_setup_true_lang-B6P3fso6.mjs → goodsList.vue_vue_type_script_setup_true_lang-BFXFifWr.mjs} +2 -2
  10. package/dist/{goodsList.vue_vue_type_script_setup_true_lang-DiRkiNJk.mjs → goodsList.vue_vue_type_script_setup_true_lang-iXycU5oS.mjs} +2 -2
  11. package/dist/{index-utNcRJx7.mjs → index-B27GuULR.mjs} +4 -4
  12. package/dist/{index-Bz206T2E.mjs → index-B3vvD7JH.mjs} +3 -3
  13. package/dist/{index-CMkWXcWe.mjs → index-COXyxAor.mjs} +2 -2
  14. package/dist/{index-CSeu2TZT.mjs → index-DFxg3rmo.mjs} +2 -2
  15. package/dist/{index-B8IdlGiz.mjs → index-Dd1dJx7i.mjs} +3 -3
  16. package/dist/{index-CDhEKnzj.mjs → index-Dy5JznUz.mjs} +2 -2
  17. package/dist/{index-DSbkvzGV.mjs → index-nCeCw43N.mjs} +3 -3
  18. package/dist/{index-D70qzGQF.mjs → index-wH3Sgvus.mjs} +1 -1
  19. package/dist/index.mjs +1 -1
  20. package/dist/{info-CX3zF0ZW.mjs → info-0Pf9u0GJ.mjs} +3 -3
  21. package/dist/info-NBnTd9fK.mjs +349 -0
  22. package/dist/{skuForm-DUR7U2Kn.mjs → skuForm-BsvKk2kD.mjs} +78 -77
  23. package/dist/{skuForm-B_8WQCr3.mjs → skuForm-CU0a2ltJ.mjs} +2 -2
  24. package/dist/{skuTable-D4LGL7B5.mjs → skuTable-DgDGWX-n.mjs} +1 -1
  25. package/dist/style.css +1 -1
  26. package/dts/api/goods-spu/types.d.ts +4 -0
  27. package/package.json +1 -1
  28. package/dist/info-Dlte8Sn0.mjs +0 -325
@@ -1,15 +1,15 @@
1
- import { defineComponent as O, openBlock as m, createElementBlock as v, createElementVNode as M, ref as V, watch as D, resolveComponent as r, createBlock as h, withCtx as i, createVNode as c, unref as g, Fragment as Y, renderList as G, createCommentVNode as H, createTextVNode as x, toDisplayString as J } from "vue";
1
+ import { defineComponent as j, openBlock as m, createElementBlock as S, createElementVNode as M, ref as v, watch as B, resolveComponent as r, createBlock as h, withCtx as i, createVNode as c, unref as g, Fragment as Y, renderList as G, createCommentVNode as H, createTextVNode as x, toDisplayString as J } from "vue";
2
2
  import { useI18n as K } from "vue-i18n";
3
- import { D as $, C as U } from "./index-CMkWXcWe.mjs";
4
- import { a as B } from "./index-utNcRJx7.mjs";
3
+ import { D as V, C as P } from "./index-COXyxAor.mjs";
4
+ import { a as O } from "./index-B27GuULR.mjs";
5
5
  import { specValueApi as Q } from "xyvcard-shop";
6
6
  import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
7
7
  /*! Element Plus Icons Vue v2.3.1 */
8
- var X = /* @__PURE__ */ O({
8
+ var X = /* @__PURE__ */ j({
9
9
  name: "Plus",
10
10
  __name: "plus",
11
- setup(S) {
12
- return (b, N) => (m(), v("svg", {
11
+ setup(b) {
12
+ return (C, E) => (m(), S("svg", {
13
13
  xmlns: "http://www.w3.org/2000/svg",
14
14
  viewBox: "0 0 1024 1024"
15
15
  }, [
@@ -20,7 +20,7 @@ var X = /* @__PURE__ */ O({
20
20
  ]));
21
21
  }
22
22
  }), Z = X;
23
- const w = { key: 0 }, ee = /* @__PURE__ */ O({
23
+ const w = { key: 0 }, ee = /* @__PURE__ */ j({
24
24
  __name: "skuForm",
25
25
  props: {
26
26
  form: {
@@ -30,8 +30,8 @@ const w = { key: 0 }, ee = /* @__PURE__ */ O({
30
30
  }
31
31
  },
32
32
  emits: ["getGoodsSku", "getFormData"],
33
- setup(S, { emit: b }) {
34
- const { t: N } = K(), P = V([]), d = V([
33
+ setup(b, { emit: C }) {
34
+ const { t: E } = K(), U = v([]), d = v([
35
35
  {
36
36
  salePrice: 0,
37
37
  skuId: "",
@@ -43,45 +43,45 @@ const w = { key: 0 }, ee = /* @__PURE__ */ O({
43
43
  skuOptions: []
44
44
  }
45
45
  ]);
46
- $.goodsSpuBizDict.useValues();
47
- const j = b;
48
- function F(s, l) {
46
+ V.goodsSpuBizDict.useValues();
47
+ const F = C;
48
+ function L(s, l) {
49
49
  s.picUrl = l;
50
50
  }
51
- const y = S;
52
- D(
51
+ const y = b;
52
+ B(
53
53
  y.form,
54
54
  (s) => s,
55
55
  {
56
56
  deep: !0,
57
57
  immediate: !0
58
58
  }
59
- ), y.form.spuId && B.findGroupList({ goodsId: y.form.spuId }).then(({ data: s }) => {
59
+ ), y.form.spuId && O.findGroupList({ goodsId: y.form.spuId }).then(({ data: s }) => {
60
60
  if (s && s.results.length > 0) {
61
61
  d.value = [];
62
62
  const l = s.results.map(async (e) => {
63
- console.log("item", e);
64
63
  const t = {
65
64
  salePrice: e.salePrice || 0,
66
65
  skuId: e.skuId || "",
67
66
  spuId: e.spuId || "",
68
67
  saleNum: e.saleNum || 0,
69
68
  picUrl: e.picUrl || "",
69
+ skuName: e.skuName || "",
70
70
  specType: "",
71
71
  skuOptions: []
72
72
  };
73
- return await E(e.spuId, t), t.saleNum = e.saleNum || 0, t.specType === U.SPEC_TYPE.MULTI_SPEC && e.skuId && (t.skuId = e.skuId || "", t.salePrice = e.salePrice || 0, t.saleNum = e.saleNum || 0, t.picUrl = e.picUrl || "", T(e.skuId)), t;
73
+ return await D(e.spuId, t), t.saleNum = e.saleNum || 0, t.salePrice = e.salePrice || 0, t.specType === P.SPEC_TYPE.MULTI_SPEC && e.skuId && (t.skuId = e.skuId || "", t.salePrice = e.salePrice || 0, t.saleNum = e.saleNum || 0, t.picUrl = e.picUrl || "", $(e.skuId)), t;
74
74
  });
75
75
  Promise.all(l).then((e) => {
76
76
  d.value = e;
77
77
  });
78
78
  }
79
79
  });
80
- function L(s) {
80
+ function A(s) {
81
81
  const l = d.value.indexOf(s.row);
82
82
  l !== 0 && d.value.splice(l, 1);
83
83
  }
84
- function A() {
84
+ function R() {
85
85
  d.value.push({
86
86
  salePrice: 0,
87
87
  skuId: "",
@@ -93,62 +93,62 @@ const w = { key: 0 }, ee = /* @__PURE__ */ O({
93
93
  skuOptions: []
94
94
  });
95
95
  }
96
- const C = V({});
97
- async function R(s) {
98
- if (!P.value[s])
96
+ const T = v({});
97
+ async function z(s) {
98
+ if (!U.value[s])
99
99
  try {
100
100
  const { data: l } = await Q.findById({
101
101
  specValueId: s
102
102
  });
103
- return P.value[s] = l.valueName, l.valueName;
103
+ return U.value[s] = l.valueName, l.valueName;
104
104
  } catch {
105
105
  }
106
106
  }
107
- async function E(s, l) {
108
- var e, t;
109
- if (l.skuId = "", l.skuOptions = [], l.picUrl = "", l.salePrice = 0, l.saleNum = 0, !s) {
110
- l.skuId = "", l.picUrl = "", l.salePrice = 0, l.saleNum = 0, l.skuOptions = [];
107
+ async function D(s, l) {
108
+ var e, t, k;
109
+ if (l.skuId = "", l.skuOptions = [], l.picUrl = "", l.salePrice = 0, l.saleNum = 0, l.skuName = "", !s) {
110
+ l.skuId = "", l.picUrl = "", l.salePrice = 0, l.saleNum = 0, l.skuName = ((e = V.goodsSpuBizDict.values.find((o) => o.key === s)) == null ? void 0 : e.value) ?? "", l.skuOptions = [];
111
111
  return;
112
112
  }
113
113
  try {
114
- const { data: n } = await B.findById({ spuId: s });
115
- if (l.specType = n.specType, l.specType === U.SPEC_TYPE.UNIFIED_SPEC && (l.picUrl = n.picUrls ? n.picUrls.split(",")[0] : "", l.salePrice = (e = n.skuList) == null ? void 0 : e.results[0].salePrice, l.skuId = (t = n.skuList) == null ? void 0 : t.results[0].skuId), l.specType === U.SPEC_TYPE.MULTI_SPEC && n.skuList) {
116
- const f = n.skuList.results, I = f.map((o) => o.specValues && Array.isArray(o.specValues) ? o.specValues.map(
114
+ const { data: o } = await O.findById({ spuId: s });
115
+ if (l.specType = o.specType, l.specType === P.SPEC_TYPE.UNIFIED_SPEC && (l.picUrl = o.picUrls ? o.picUrls.split(",")[0] : "", l.salePrice = (t = o.skuList) == null ? void 0 : t.results[0].salePrice, l.skuId = (k = o.skuList) == null ? void 0 : k.results[0].skuId, l.skuName = o.spuName), l.specType === P.SPEC_TYPE.MULTI_SPEC && o.skuList) {
116
+ const f = o.skuList.results, _ = f.map((u) => u.specValues && Array.isArray(u.specValues) ? u.specValues.map(
117
117
  (p) => p.specValueId
118
- ) : []), k = I.flat().map((o) => R(o));
119
- await Promise.all(k);
120
- const _ = I.map(
121
- (o) => o.map((p) => P.value[p] || p)
118
+ ) : []), N = _.flat().map((u) => z(u));
119
+ await Promise.all(N);
120
+ const I = _.map(
121
+ (u) => u.map((p) => U.value[p] || p)
122
122
  );
123
- l.skuOptions = f.map((o, p) => ({
124
- key: o.skuId,
125
- value: _[p].join(" "),
126
- specInfo: _[p].join(" "),
127
- picUrl: o.picUrl || (n.picUrls ? n.picUrls.split(",")[0] : ""),
128
- salePrice: o.salePrice,
129
- stock: o.stock
130
- })), f.forEach((o, p) => {
131
- o.skuId && (C.value[o.skuId] = {
132
- ...o,
133
- specInfo: _[p].join(" "),
134
- spuPicUrls: n.picUrls
123
+ l.skuOptions = f.map((u, p) => ({
124
+ key: u.skuId,
125
+ value: I[p].join(" "),
126
+ specInfo: I[p].join(" "),
127
+ picUrl: u.picUrl || (o.picUrls ? o.picUrls.split(",")[0] : ""),
128
+ salePrice: u.salePrice,
129
+ stock: u.stock
130
+ })), f.forEach((u, p) => {
131
+ u.skuId && (T.value[u.skuId] = {
132
+ ...u,
133
+ specInfo: I[p].join(" "),
134
+ spuPicUrls: o.picUrls
135
135
  });
136
136
  });
137
137
  }
138
138
  } catch {
139
139
  }
140
140
  }
141
- function T(s) {
141
+ function $(s) {
142
142
  const l = d.value.find((e) => e.skuId === s);
143
143
  if (l && s) {
144
- const e = C.value[s];
144
+ const e = T.value[s];
145
145
  if (e) {
146
146
  const t = e.spuPicUrls ? e.spuPicUrls.split(",")[0] : "";
147
147
  l.picUrl = e.picUrl || t, l.salePrice = e.salePrice, l.specInfo = e.specInfo;
148
148
  }
149
149
  }
150
150
  }
151
- return D(
151
+ return B(
152
152
  d,
153
153
  (s) => {
154
154
  const l = s.filter((e) => e.spuId && e.skuId).map((e) => ({
@@ -157,19 +157,20 @@ const w = { key: 0 }, ee = /* @__PURE__ */ O({
157
157
  spuId: e.spuId,
158
158
  specInfo: e.specInfo,
159
159
  saleNum: e.saleNum,
160
- picUrl: e.picUrl
160
+ picUrl: e.picUrl,
161
+ skuName: e.skuName
161
162
  }));
162
- j("getGoodsSku", l), console.log("filteredValue", l);
163
+ F("getGoodsSku", l);
163
164
  },
164
165
  {
165
166
  deep: !0,
166
167
  immediate: !0
167
168
  }
168
169
  ), (s, l) => {
169
- const e = r("jmash-select"), t = r("el-table-column"), n = r("el-option"), f = r("el-select"), I = r("jmash-single-image-upload"), k = r("el-input-number"), _ = r("DeleteFilled"), o = r("el-icon"), p = r("el-table"), q = r("el-button"), z = r("el-row");
170
- return m(), h(z, null, {
170
+ const e = r("jmash-select"), t = r("el-table-column"), k = r("el-option"), o = r("el-select"), f = r("jmash-single-image-upload"), _ = r("el-input-number"), N = r("DeleteFilled"), I = r("el-icon"), u = r("el-table"), p = r("el-button"), q = r("el-row");
171
+ return m(), h(q, null, {
171
172
  default: i(() => [
172
- c(p, {
173
+ c(u, {
173
174
  data: d.value,
174
175
  border: "",
175
176
  style: { width: "100%" }
@@ -183,13 +184,13 @@ const w = { key: 0 }, ee = /* @__PURE__ */ O({
183
184
  default: i(({ row: a }) => [
184
185
  c(e, {
185
186
  modelValue: a.spuId,
186
- "onUpdate:modelValue": (u) => a.spuId = u,
187
- data: g($).goodsSpuBizDict.values,
187
+ "onUpdate:modelValue": (n) => a.spuId = n,
188
+ data: g(V).goodsSpuBizDict.values,
188
189
  filterable: "",
189
190
  clearable: "",
190
191
  placeholder: s.$t("goodsSpu.spuNameRequireds"),
191
192
  class: "w-full",
192
- onChange: (u) => E(a.spuId, a)
193
+ onChange: (n) => D(a.spuId, a)
193
194
  }, null, 8, ["modelValue", "onUpdate:modelValue", "data", "placeholder", "onChange"])
194
195
  ]),
195
196
  _: 1
@@ -199,18 +200,18 @@ const w = { key: 0 }, ee = /* @__PURE__ */ O({
199
200
  "header-align": "center"
200
201
  }, {
201
202
  default: i(({ row: a }) => [
202
- a.specType === g(U).SPEC_TYPE.UNIFIED_SPEC ? (m(), v("span", w, " 统一规格 ")) : (m(), h(f, {
203
+ a.specType === g(P).SPEC_TYPE.UNIFIED_SPEC ? (m(), S("span", w, " 统一规格 ")) : (m(), h(o, {
203
204
  key: 1,
204
205
  modelValue: a.skuId,
205
- "onUpdate:modelValue": (u) => a.skuId = u,
206
+ "onUpdate:modelValue": (n) => a.skuId = n,
206
207
  placeholder: s.$t("goodsSpu.specTypeRequired"),
207
- onChange: (u) => T(a.skuId)
208
+ onChange: (n) => $(a.skuId)
208
209
  }, {
209
210
  default: i(() => [
210
- (m(!0), v(Y, null, G(a.skuOptions, (u) => (m(), h(n, {
211
- key: u.key,
212
- label: u.value,
213
- value: u.key
211
+ (m(!0), S(Y, null, G(a.skuOptions, (n) => (m(), h(k, {
212
+ key: n.key,
213
+ label: n.value,
214
+ value: n.key
214
215
  }, null, 8, ["label", "value"]))), 128))
215
216
  ]),
216
217
  _: 2
@@ -225,9 +226,9 @@ const w = { key: 0 }, ee = /* @__PURE__ */ O({
225
226
  "header-align": "center"
226
227
  }, {
227
228
  default: i(({ row: a }) => [
228
- c(I, {
229
+ c(f, {
229
230
  "picture-url": a.picUrl,
230
- onImageSrc: (u) => F(a, u),
231
+ onImageSrc: (n) => L(a, n),
231
232
  width: 80,
232
233
  type: "trans"
233
234
  }, null, 8, ["picture-url", "onImageSrc"])
@@ -240,9 +241,9 @@ const w = { key: 0 }, ee = /* @__PURE__ */ O({
240
241
  "header-align": "center"
241
242
  }, {
242
243
  default: i(({ row: a }) => [
243
- c(k, {
244
+ c(_, {
244
245
  modelValue: a.salePrice,
245
- "onUpdate:modelValue": (u) => a.salePrice = u,
246
+ "onUpdate:modelValue": (n) => a.salePrice = n,
246
247
  precision: 2,
247
248
  min: 0,
248
249
  placeholder: s.$t("goodsSpu.salePriceV1Required"),
@@ -258,9 +259,9 @@ const w = { key: 0 }, ee = /* @__PURE__ */ O({
258
259
  "header-align": "center"
259
260
  }, {
260
261
  default: i(({ row: a }) => [
261
- c(k, {
262
+ c(_, {
262
263
  modelValue: a.saleNum,
263
- "onUpdate:modelValue": (u) => a.saleNum = u,
264
+ "onUpdate:modelValue": (n) => a.saleNum = n,
264
265
  placeholder: s.$t("goodsSpu.saleNumRequireds"),
265
266
  class: "w-full",
266
267
  controls: !1,
@@ -276,15 +277,15 @@ const w = { key: 0 }, ee = /* @__PURE__ */ O({
276
277
  align: "center"
277
278
  }, {
278
279
  default: i((a) => [
279
- a.$index !== 0 ? (m(), h(o, {
280
+ a.$index !== 0 ? (m(), h(I, {
280
281
  key: 0,
281
- onClick: (u) => L(a),
282
+ onClick: (n) => A(a),
282
283
  size: "18",
283
284
  style: { cursor: "pointer", color: "inherit" },
284
285
  class: "hover-blue"
285
286
  }, {
286
287
  default: i(() => [
287
- c(_)
288
+ c(N)
288
289
  ]),
289
290
  _: 2
290
291
  }, 1032, ["onClick"])) : H("", !0)
@@ -294,13 +295,13 @@ const w = { key: 0 }, ee = /* @__PURE__ */ O({
294
295
  ]),
295
296
  _: 1
296
297
  }, 8, ["data"]),
297
- c(q, {
298
+ c(p, {
298
299
  icon: g(Z),
299
300
  class: "addButton",
300
- onClick: A
301
+ onClick: R
301
302
  }, {
302
303
  default: i(() => [
303
- x(J(g(N)("common.add")), 1)
304
+ x(J(g(E)("common.add")), 1)
304
305
  ]),
305
306
  _: 1
306
307
  }, 8, ["icon"])
@@ -309,7 +310,7 @@ const w = { key: 0 }, ee = /* @__PURE__ */ O({
309
310
  });
310
311
  };
311
312
  }
312
- }), ne = /* @__PURE__ */ W(ee, [["__scopeId", "data-v-3701de30"]]);
313
+ }), ne = /* @__PURE__ */ W(ee, [["__scopeId", "data-v-dc82ad15"]]);
313
314
  export {
314
315
  ne as default
315
316
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as te, ref as S, computed as se, watch as $, resolveComponent as i, openBlock as m, createElementBlock as g, Fragment as b, unref as M, createVNode as o, withCtx as a, createCommentVNode as I, renderList as P, createElementVNode as k, toDisplayString as O, createTextVNode as y, createBlock as w } from "vue";
2
- import { C as D, D as ue, S as Y, a as ne } from "./index-CMkWXcWe.mjs";
3
- import re from "./skuTable-D4LGL7B5.mjs";
2
+ import { C as D, D as ue, S as Y, a as ne } from "./index-COXyxAor.mjs";
3
+ import re from "./skuTable-DgDGWX-n.mjs";
4
4
  import { _ as de } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
5
5
  const pe = { key: 0 }, ce = {
6
6
  key: 1,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as T, ref as C, computed as F, watch as $, resolveComponent as g, openBlock as P, createElementBlock as b, createElementVNode as u, createVNode as a, withCtx as d, createTextVNode as y, createCommentVNode as M, Fragment as G, renderList as K, createBlock as z, toDisplayString as D, unref as x } from "vue";
2
- import { D as O } from "./index-CMkWXcWe.mjs";
2
+ import { D as O } from "./index-COXyxAor.mjs";
3
3
  import { fileApi as E } from "jmash-core";
4
4
  import { _ as H } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
5
5
  function J(n, h = [], o) {
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- @charset "UTF-8";.w-full{width:100%!important}.right-dis{margin-right:10px}.top-dis{margin-top:25px}.cell-item{display:flex;align-items:center;justify-content:flex-end}.el-descriptions__label{width:15%;text-align:right}.el-descriptions__content{width:35%}[data-v-f10f6f7e] .el-upload--picture-card{width:80px;height:80px;border-radius:0}[data-v-f10f6f7e] .el-upload-list--picture-card .el-upload-list__item{width:80px;height:80px}.title-set[data-v-6fc718ce]{display:flex;align-items:center;font-size:14px;padding:0 0 10px}.goods-spec[data-v-e6aa4b01]{border:1px solid #ccc;margin-bottom:5px}.goods-title[data-v-e6aa4b01]{display:flex;align-items:center;border-bottom:1px solid #ccc;padding:10px 20px}.goods-title .goods-delete[data-v-e6aa4b01]{display:flex;align-items:center;margin-left:auto;color:red;font-size:14px}.goods-content[data-v-e6aa4b01]{padding:10px 20px}.goods-tag[data-v-e6aa4b01]{margin-bottom:10px}.addButton[data-v-3701de30]{margin-top:15px;margin-bottom:20px;width:100%}.hover-blue[data-v-3701de30]:hover{color:#409eff!important}.position-center[data-v-6e6f248a]{position:absolute;right:0;top:30%;transform:translateY(-30%)}.plus-position[data-v-6e6f248a]{position:absolute;right:0;top:0;margin-top:8px}.position-center[data-v-7789ee13]{position:absolute;right:0;top:30%;transform:translateY(-30%)}.plus-position[data-v-7789ee13]{position:absolute;right:0;top:0;margin-top:8px}
1
+ @charset "UTF-8";.w-full{width:100%!important}.right-dis{margin-right:10px}.top-dis{margin-top:25px}.cell-item{display:flex;align-items:center;justify-content:flex-end}.el-descriptions__label{width:15%;text-align:right}.el-descriptions__content{width:35%}[data-v-f10f6f7e] .el-upload--picture-card{width:80px;height:80px;border-radius:0}[data-v-f10f6f7e] .el-upload-list--picture-card .el-upload-list__item{width:80px;height:80px}.title-set[data-v-6fc718ce]{display:flex;align-items:center;font-size:14px;padding:0 0 10px}.goods-spec[data-v-e6aa4b01]{border:1px solid #ccc;margin-bottom:5px}.goods-title[data-v-e6aa4b01]{display:flex;align-items:center;border-bottom:1px solid #ccc;padding:10px 20px}.goods-title .goods-delete[data-v-e6aa4b01]{display:flex;align-items:center;margin-left:auto;color:red;font-size:14px}.goods-content[data-v-e6aa4b01]{padding:10px 20px}.goods-tag[data-v-e6aa4b01]{margin-bottom:10px}.addButton[data-v-dc82ad15]{margin-top:15px;margin-bottom:20px;width:100%}.hover-blue[data-v-dc82ad15]:hover{color:#409eff!important}.position-center[data-v-6e6f248a]{position:absolute;right:0;top:30%;transform:translateY(-30%)}.plus-position[data-v-6e6f248a]{position:absolute;right:0;top:0;margin-top:8px}.position-center[data-v-7789ee13]{position:absolute;right:0;top:30%;transform:translateY(-30%)}.plus-position[data-v-7789ee13]{position:absolute;right:0;top:0;margin-top:8px}
@@ -36,6 +36,8 @@ export interface GoodsSpuModel extends EntityModel {
36
36
  brandId?: string;
37
37
  labelIds?: Array<string>;
38
38
  groupInfos?: Array<GoodsGroupInfoCreateReq>;
39
+ minPrice?: number;
40
+ maxPrice?: number;
39
41
  }
40
42
  export interface GoodsSpuList extends EntityList {
41
43
  results: Array<GoodsSpuModel>;
@@ -128,6 +130,7 @@ export interface GoodsSkuCreateReq {
128
130
  skuId?: string;
129
131
  status?: boolean;
130
132
  specIds?: string;
133
+ saleNum?: number;
131
134
  }
132
135
  export interface SkuSpecValue {
133
136
  specId: string;
@@ -170,6 +173,7 @@ export interface GoodsGroupInfoCreateReq {
170
173
  saleNum?: number;
171
174
  salePrice?: number;
172
175
  specType?: string;
176
+ skuName?: string;
173
177
  skuOptions?: {
174
178
  key: string;
175
179
  value: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xyvcard-goods",
3
- "version": "0.0.26",
3
+ "version": "0.0.28",
4
4
  "private": false,
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dts/index.d.ts",