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.
- package/dist/{edit-Xn_nZjI6.mjs → edit-CYekSxUa.mjs} +3 -3
- package/dist/{edit-C5HGHhkb.mjs → edit-C_XCVJwM.mjs} +1 -1
- package/dist/{edit-DrbsKmwh.mjs → edit-CquWa3hI.mjs} +85 -82
- package/dist/{edit-Cb0aaC0q.mjs → edit-CuZnQH9w.mjs} +1 -1
- package/dist/{edit-eAHVEi0b.mjs → edit-D1FAN3TA.mjs} +1 -1
- 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
- package/dist/{goodsList-CDQZGSh2.mjs → goodsList-DZlaY5k0.mjs} +1 -1
- package/dist/{goodsList-CKCG7ntZ.mjs → goodsList-wpPEPZqs.mjs} +1 -1
- package/dist/{goodsList.vue_vue_type_script_setup_true_lang-B6P3fso6.mjs → goodsList.vue_vue_type_script_setup_true_lang-BFXFifWr.mjs} +2 -2
- package/dist/{goodsList.vue_vue_type_script_setup_true_lang-DiRkiNJk.mjs → goodsList.vue_vue_type_script_setup_true_lang-iXycU5oS.mjs} +2 -2
- package/dist/{index-utNcRJx7.mjs → index-B27GuULR.mjs} +4 -4
- package/dist/{index-Bz206T2E.mjs → index-B3vvD7JH.mjs} +3 -3
- package/dist/{index-CMkWXcWe.mjs → index-COXyxAor.mjs} +2 -2
- package/dist/{index-CSeu2TZT.mjs → index-DFxg3rmo.mjs} +2 -2
- package/dist/{index-B8IdlGiz.mjs → index-Dd1dJx7i.mjs} +3 -3
- package/dist/{index-CDhEKnzj.mjs → index-Dy5JznUz.mjs} +2 -2
- package/dist/{index-DSbkvzGV.mjs → index-nCeCw43N.mjs} +3 -3
- package/dist/{index-D70qzGQF.mjs → index-wH3Sgvus.mjs} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{info-CX3zF0ZW.mjs → info-0Pf9u0GJ.mjs} +3 -3
- package/dist/info-NBnTd9fK.mjs +349 -0
- package/dist/{skuForm-DUR7U2Kn.mjs → skuForm-BsvKk2kD.mjs} +78 -77
- package/dist/{skuForm-B_8WQCr3.mjs → skuForm-CU0a2ltJ.mjs} +2 -2
- package/dist/{skuTable-D4LGL7B5.mjs → skuTable-DgDGWX-n.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dts/api/goods-spu/types.d.ts +4 -0
- package/package.json +1 -1
- package/dist/info-Dlte8Sn0.mjs +0 -325
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
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
|
|
4
|
-
import { a as
|
|
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__ */
|
|
8
|
+
var X = /* @__PURE__ */ j({
|
|
9
9
|
name: "Plus",
|
|
10
10
|
__name: "plus",
|
|
11
|
-
setup(
|
|
12
|
-
return (
|
|
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__ */
|
|
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(
|
|
34
|
-
const { t:
|
|
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
|
-
|
|
47
|
-
const
|
|
48
|
-
function
|
|
46
|
+
V.goodsSpuBizDict.useValues();
|
|
47
|
+
const F = C;
|
|
48
|
+
function L(s, l) {
|
|
49
49
|
s.picUrl = l;
|
|
50
50
|
}
|
|
51
|
-
const y =
|
|
52
|
-
|
|
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 &&
|
|
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
|
|
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
|
|
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
|
|
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
|
|
97
|
-
async function
|
|
98
|
-
if (!
|
|
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
|
|
103
|
+
return U.value[s] = l.valueName, l.valueName;
|
|
104
104
|
} catch {
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
async function
|
|
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:
|
|
115
|
-
if (l.specType =
|
|
116
|
-
const f =
|
|
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
|
-
) : []),
|
|
119
|
-
await Promise.all(
|
|
120
|
-
const
|
|
121
|
-
(
|
|
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((
|
|
124
|
-
key:
|
|
125
|
-
value:
|
|
126
|
-
specInfo:
|
|
127
|
-
picUrl:
|
|
128
|
-
salePrice:
|
|
129
|
-
stock:
|
|
130
|
-
})), f.forEach((
|
|
131
|
-
|
|
132
|
-
...
|
|
133
|
-
specInfo:
|
|
134
|
-
spuPicUrls:
|
|
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
|
|
141
|
+
function $(s) {
|
|
142
142
|
const l = d.value.find((e) => e.skuId === s);
|
|
143
143
|
if (l && s) {
|
|
144
|
-
const e =
|
|
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
|
|
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
|
-
|
|
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"),
|
|
170
|
-
return m(), h(
|
|
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(
|
|
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": (
|
|
187
|
-
data: g(
|
|
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: (
|
|
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(
|
|
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": (
|
|
206
|
+
"onUpdate:modelValue": (n) => a.skuId = n,
|
|
206
207
|
placeholder: s.$t("goodsSpu.specTypeRequired"),
|
|
207
|
-
onChange: (
|
|
208
|
+
onChange: (n) => $(a.skuId)
|
|
208
209
|
}, {
|
|
209
210
|
default: i(() => [
|
|
210
|
-
(m(!0),
|
|
211
|
-
key:
|
|
212
|
-
label:
|
|
213
|
-
value:
|
|
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(
|
|
229
|
+
c(f, {
|
|
229
230
|
"picture-url": a.picUrl,
|
|
230
|
-
onImageSrc: (
|
|
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(
|
|
244
|
+
c(_, {
|
|
244
245
|
modelValue: a.salePrice,
|
|
245
|
-
"onUpdate:modelValue": (
|
|
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(
|
|
262
|
+
c(_, {
|
|
262
263
|
modelValue: a.saleNum,
|
|
263
|
-
"onUpdate:modelValue": (
|
|
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(
|
|
280
|
+
a.$index !== 0 ? (m(), h(I, {
|
|
280
281
|
key: 0,
|
|
281
|
-
onClick: (
|
|
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(
|
|
298
|
+
c(p, {
|
|
298
299
|
icon: g(Z),
|
|
299
300
|
class: "addButton",
|
|
300
|
-
onClick:
|
|
301
|
+
onClick: R
|
|
301
302
|
}, {
|
|
302
303
|
default: i(() => [
|
|
303
|
-
x(J(g(
|
|
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-
|
|
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-
|
|
3
|
-
import re from "./skuTable-
|
|
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-
|
|
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-
|
|
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;
|