xyvcard-goods 0.0.25 → 0.0.27
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/{ImageUpload-Dk6GY6PA.mjs → ImageUpload-BMw9FVJL.mjs} +2 -2
- package/dist/{edit-DAyPJb0b.mjs → edit-C6CESv8X.mjs} +3 -3
- package/dist/{edit-DiWa_ZLE.mjs → edit-CuYE3fHS.mjs} +3 -3
- package/dist/edit-CvY-V0N5.mjs +428 -0
- package/dist/{edit-Dw0brF_L.mjs → edit-CwYGsVHI.mjs} +6 -6
- package/dist/{edit-CajMDPUo.mjs → edit-DmT9V-gh.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-C2XSQSoV.mjs → edit.vue_vue_type_script_setup_true_lang-DfFKgB6q.mjs} +76 -74
- package/dist/{goodsList-D5D6w8qJ.mjs → goodsList-Bj9pZI5X.mjs} +1 -1
- package/dist/{goodsList-DebLyKkm.mjs → goodsList-v98w-P_d.mjs} +1 -1
- package/dist/{goodsList.vue_vue_type_script_setup_true_lang-BovyDKOb.mjs → goodsList.vue_vue_type_script_setup_true_lang-BsItIhFh.mjs} +3 -3
- package/dist/{goodsList.vue_vue_type_script_setup_true_lang-BZZYw7U2.mjs → goodsList.vue_vue_type_script_setup_true_lang-QHlAuCT3.mjs} +3 -3
- package/dist/{index-DcreTzbx.mjs → index-0g53MREL.mjs} +14 -14
- package/dist/{index-gnGbjAJC.mjs → index-B0qodJxZ.mjs} +2 -2
- package/dist/{index-Bq-VIy8T.mjs → index-BrR_OdFN.mjs} +3 -3
- package/dist/{index-CtbKf0QD.mjs → index-CXEbqy-N.mjs} +14 -14
- package/dist/{index-DLPUpw3h.mjs → index-CXtRrzoC.mjs} +2006 -1879
- package/dist/{index-Ti58GY9z.mjs → index-D7Zknkay.mjs} +14 -14
- package/dist/{index-C4DAxQ7e.mjs → index-DWtdS9Gu.mjs} +3 -3
- package/dist/{index-C_El1x3C.mjs → index-szFiZJnI.mjs} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{info-BYntI7av.mjs → info-Bn5lfzNP.mjs} +4 -4
- package/dist/{info-Bkzvf5Mw.mjs → info-PRjY0AD1.mjs} +111 -105
- package/dist/skuForm-DF02pgox.mjs +318 -0
- package/dist/{skuForm-C0s08DP2.mjs → skuForm-EQVH7pCG.mjs} +6 -6
- package/dist/{skuTable-DyzW7iCQ.mjs → skuTable-DWpm1OMq.mjs} +4 -4
- package/dist/style.css +1 -1
- package/dts/api/goods-spu/types.d.ts +5 -0
- package/dts/lang/goods/zh-cn.d.ts +4 -0
- package/package.json +62 -62
- package/dist/edit-CWq3UNZW.mjs +0 -368
- package/dist/skuForm-WOvsR26d.mjs +0 -314
- package/dts/views/goods/goods-combination/skuTable.vue.d.ts +0 -40
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
import { defineComponent as j, createElementBlock as v, openBlock as m, createElementVNode as M, ref as V, watch as B, resolveComponent as i, createBlock as g, withCtx as r, createVNode as c, unref as h, Fragment as Y, renderList as G, createCommentVNode as H, createTextVNode as x, toDisplayString as J } from "vue";
|
|
2
|
+
import { useI18n as K } from "vue-i18n";
|
|
3
|
+
import { D as S, C as U } from "./index-B0qodJxZ.mjs";
|
|
4
|
+
import { a as O } from "./index-CXtRrzoC.mjs";
|
|
5
|
+
import { specValueApi as Q } from "xyvcard-shop";
|
|
6
|
+
import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
7
|
+
/*! Element Plus Icons Vue v2.3.2 */
|
|
8
|
+
var X = /* @__PURE__ */ j({
|
|
9
|
+
name: "Plus",
|
|
10
|
+
__name: "plus",
|
|
11
|
+
setup(b) {
|
|
12
|
+
return (C, E) => (m(), v("svg", {
|
|
13
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14
|
+
viewBox: "0 0 1024 1024"
|
|
15
|
+
}, [
|
|
16
|
+
M("path", {
|
|
17
|
+
fill: "currentColor",
|
|
18
|
+
d: "M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"
|
|
19
|
+
})
|
|
20
|
+
]));
|
|
21
|
+
}
|
|
22
|
+
}), Z = X;
|
|
23
|
+
const w = { key: 0 }, ee = /* @__PURE__ */ j({
|
|
24
|
+
__name: "skuForm",
|
|
25
|
+
props: {
|
|
26
|
+
form: {
|
|
27
|
+
type: Object,
|
|
28
|
+
default: () => {
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
emits: ["getGoodsSku", "getFormData"],
|
|
33
|
+
setup(b, { emit: C }) {
|
|
34
|
+
const { t: E } = K(), P = V([]), d = V([
|
|
35
|
+
{
|
|
36
|
+
salePrice: 0,
|
|
37
|
+
skuId: "",
|
|
38
|
+
spuId: "",
|
|
39
|
+
specInfo: "",
|
|
40
|
+
saleNum: 0,
|
|
41
|
+
picUrl: "",
|
|
42
|
+
specType: "",
|
|
43
|
+
skuOptions: []
|
|
44
|
+
}
|
|
45
|
+
]);
|
|
46
|
+
S.goodsSpuBizDict.useValues();
|
|
47
|
+
const F = C;
|
|
48
|
+
function L(s, l) {
|
|
49
|
+
s.picUrl = l;
|
|
50
|
+
}
|
|
51
|
+
const N = b;
|
|
52
|
+
B(
|
|
53
|
+
N.form,
|
|
54
|
+
(s) => s,
|
|
55
|
+
{
|
|
56
|
+
deep: !0,
|
|
57
|
+
immediate: !0
|
|
58
|
+
}
|
|
59
|
+
), N.form.spuId && O.findGroupList({ goodsId: N.form.spuId }).then(({ data: s }) => {
|
|
60
|
+
if (console.log("....", s), s && s.results.length > 0) {
|
|
61
|
+
d.value = [];
|
|
62
|
+
const l = s.results.map(async (e) => {
|
|
63
|
+
console.log("item", e);
|
|
64
|
+
const o = {
|
|
65
|
+
salePrice: e.salePrice || 0,
|
|
66
|
+
skuId: e.skuId || "",
|
|
67
|
+
spuId: e.spuId || "",
|
|
68
|
+
saleNum: e.saleNum || 0,
|
|
69
|
+
picUrl: e.picUrl || "",
|
|
70
|
+
skuName: e.skuName || "",
|
|
71
|
+
specType: "",
|
|
72
|
+
skuOptions: []
|
|
73
|
+
};
|
|
74
|
+
return await D(e.spuId, o), o.saleNum = e.saleNum || 0, o.specType === U.SPEC_TYPE.MULTI_SPEC && e.skuId && (o.skuId = e.skuId || "", o.salePrice = e.salePrice || 0, o.saleNum = e.saleNum || 0, o.picUrl = e.picUrl || "", $(e.skuId)), o;
|
|
75
|
+
});
|
|
76
|
+
Promise.all(l).then((e) => {
|
|
77
|
+
d.value = e;
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
function A(s) {
|
|
82
|
+
const l = d.value.indexOf(s.row);
|
|
83
|
+
l !== 0 && d.value.splice(l, 1);
|
|
84
|
+
}
|
|
85
|
+
function R() {
|
|
86
|
+
d.value.push({
|
|
87
|
+
salePrice: 0,
|
|
88
|
+
skuId: "",
|
|
89
|
+
spuId: "",
|
|
90
|
+
specInfo: "",
|
|
91
|
+
saleNum: 0,
|
|
92
|
+
picUrl: "",
|
|
93
|
+
specType: "",
|
|
94
|
+
skuOptions: []
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
const T = V({});
|
|
98
|
+
async function z(s) {
|
|
99
|
+
if (!P.value[s])
|
|
100
|
+
try {
|
|
101
|
+
const { data: l } = await Q.findById({
|
|
102
|
+
specValueId: s
|
|
103
|
+
});
|
|
104
|
+
return P.value[s] = l.valueName, l.valueName;
|
|
105
|
+
} catch {
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
async function D(s, l) {
|
|
109
|
+
var e, o, k;
|
|
110
|
+
if (console.log(l), l.skuId = "", l.skuOptions = [], l.picUrl = "", l.salePrice = 0, l.saleNum = 0, l.skuName = "", !s) {
|
|
111
|
+
l.skuId = "", l.picUrl = "", l.salePrice = 0, l.saleNum = 0, l.skuName = ((e = S.goodsSpuBizDict.values.find((u) => u.key === s)) == null ? void 0 : e.value) ?? "", l.skuOptions = [];
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
try {
|
|
115
|
+
const { data: u } = await O.findById({ spuId: s });
|
|
116
|
+
if (console.log(u), l.specType = u.specType, l.specType === U.SPEC_TYPE.UNIFIED_SPEC && (l.picUrl = u.picUrls ? u.picUrls.split(",")[0] : "", l.salePrice = (o = u.skuList) == null ? void 0 : o.results[0].salePrice, l.skuId = (k = u.skuList) == null ? void 0 : k.results[0].skuId, l.skuName = u.spuName, console.log("///")), l.specType === U.SPEC_TYPE.MULTI_SPEC && u.skuList) {
|
|
117
|
+
const f = u.skuList.results, _ = f.map((t) => t.specValues && Array.isArray(t.specValues) ? t.specValues.map(
|
|
118
|
+
(p) => p.specValueId
|
|
119
|
+
) : []), y = _.flat().map((t) => z(t));
|
|
120
|
+
await Promise.all(y);
|
|
121
|
+
const I = _.map(
|
|
122
|
+
(t) => t.map((p) => P.value[p] || p)
|
|
123
|
+
);
|
|
124
|
+
l.skuOptions = f.map((t, p) => ({
|
|
125
|
+
key: t.skuId,
|
|
126
|
+
value: I[p].join(" "),
|
|
127
|
+
specInfo: I[p].join(" "),
|
|
128
|
+
picUrl: t.picUrl || (u.picUrls ? u.picUrls.split(",")[0] : ""),
|
|
129
|
+
salePrice: t.salePrice,
|
|
130
|
+
stock: t.stock
|
|
131
|
+
})), f.forEach((t, p) => {
|
|
132
|
+
t.skuId && (T.value[t.skuId] = {
|
|
133
|
+
...t,
|
|
134
|
+
specInfo: I[p].join(" "),
|
|
135
|
+
spuPicUrls: u.picUrls
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
} catch {
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
function $(s) {
|
|
143
|
+
const l = d.value.find((e) => e.skuId === s);
|
|
144
|
+
if (l && s) {
|
|
145
|
+
const e = T.value[s];
|
|
146
|
+
if (e) {
|
|
147
|
+
const o = e.spuPicUrls ? e.spuPicUrls.split(",")[0] : "";
|
|
148
|
+
l.picUrl = e.picUrl || o, l.salePrice = e.salePrice, l.specInfo = e.specInfo;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
return B(
|
|
153
|
+
d,
|
|
154
|
+
(s) => {
|
|
155
|
+
console.log("tableData", s);
|
|
156
|
+
const l = s.filter((e) => e.spuId && e.skuId).map((e) => ({
|
|
157
|
+
salePrice: e.salePrice,
|
|
158
|
+
skuId: e.skuId,
|
|
159
|
+
spuId: e.spuId,
|
|
160
|
+
specInfo: e.specInfo,
|
|
161
|
+
saleNum: e.saleNum,
|
|
162
|
+
picUrl: e.picUrl,
|
|
163
|
+
skuName: e.skuName
|
|
164
|
+
}));
|
|
165
|
+
F("getGoodsSku", l), console.log("filteredValue", l);
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
deep: !0,
|
|
169
|
+
immediate: !0
|
|
170
|
+
}
|
|
171
|
+
), (s, l) => {
|
|
172
|
+
const e = i("jmash-select"), o = i("el-table-column"), k = i("el-option"), u = i("el-select"), f = i("jmash-single-image-upload"), _ = i("el-input-number"), y = i("DeleteFilled"), I = i("el-icon"), t = i("el-table"), p = i("el-button"), q = i("el-row");
|
|
173
|
+
return m(), g(q, null, {
|
|
174
|
+
default: r(() => [
|
|
175
|
+
c(t, {
|
|
176
|
+
data: d.value,
|
|
177
|
+
border: "",
|
|
178
|
+
style: { width: "100%" }
|
|
179
|
+
}, {
|
|
180
|
+
default: r(() => [
|
|
181
|
+
c(o, {
|
|
182
|
+
label: s.$t("goodsSpu.spuName"),
|
|
183
|
+
prop: "spuId",
|
|
184
|
+
"header-align": "center"
|
|
185
|
+
}, {
|
|
186
|
+
default: r(({ row: a }) => [
|
|
187
|
+
c(e, {
|
|
188
|
+
modelValue: a.spuId,
|
|
189
|
+
"onUpdate:modelValue": (n) => a.spuId = n,
|
|
190
|
+
data: h(S).goodsSpuBizDict.values,
|
|
191
|
+
filterable: "",
|
|
192
|
+
clearable: "",
|
|
193
|
+
placeholder: s.$t("goodsSpu.spuNameRequireds"),
|
|
194
|
+
class: "w-full",
|
|
195
|
+
onChange: (n) => D(a.spuId, a)
|
|
196
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "data", "placeholder", "onChange"])
|
|
197
|
+
]),
|
|
198
|
+
_: 1
|
|
199
|
+
}, 8, ["label"]),
|
|
200
|
+
c(o, {
|
|
201
|
+
label: s.$t("goodsSpu.specType"),
|
|
202
|
+
"header-align": "center"
|
|
203
|
+
}, {
|
|
204
|
+
default: r(({ row: a }) => [
|
|
205
|
+
a.specType === h(U).SPEC_TYPE.UNIFIED_SPEC ? (m(), v("span", w, " 统一规格 ")) : (m(), g(u, {
|
|
206
|
+
key: 1,
|
|
207
|
+
modelValue: a.skuId,
|
|
208
|
+
"onUpdate:modelValue": (n) => a.skuId = n,
|
|
209
|
+
placeholder: s.$t("goodsSpu.specTypeRequired"),
|
|
210
|
+
onChange: (n) => $(a.skuId)
|
|
211
|
+
}, {
|
|
212
|
+
default: r(() => [
|
|
213
|
+
(m(!0), v(Y, null, G(a.skuOptions, (n) => (m(), g(k, {
|
|
214
|
+
key: n.key,
|
|
215
|
+
label: n.value,
|
|
216
|
+
value: n.key
|
|
217
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
218
|
+
]),
|
|
219
|
+
_: 2
|
|
220
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"]))
|
|
221
|
+
]),
|
|
222
|
+
_: 1
|
|
223
|
+
}, 8, ["label"]),
|
|
224
|
+
c(o, {
|
|
225
|
+
label: s.$t("goodsSpu.picUrls"),
|
|
226
|
+
prop: "picUrl",
|
|
227
|
+
width: "105",
|
|
228
|
+
"header-align": "center"
|
|
229
|
+
}, {
|
|
230
|
+
default: r(({ row: a }) => [
|
|
231
|
+
c(f, {
|
|
232
|
+
"picture-url": a.picUrl,
|
|
233
|
+
onImageSrc: (n) => L(a, n),
|
|
234
|
+
width: 80,
|
|
235
|
+
type: "trans"
|
|
236
|
+
}, null, 8, ["picture-url", "onImageSrc"])
|
|
237
|
+
]),
|
|
238
|
+
_: 1
|
|
239
|
+
}, 8, ["label"]),
|
|
240
|
+
c(o, {
|
|
241
|
+
label: s.$t("goodsSpu.salePriceV1"),
|
|
242
|
+
prop: "salePrice",
|
|
243
|
+
"header-align": "center"
|
|
244
|
+
}, {
|
|
245
|
+
default: r(({ row: a }) => [
|
|
246
|
+
c(_, {
|
|
247
|
+
modelValue: a.salePrice,
|
|
248
|
+
"onUpdate:modelValue": (n) => a.salePrice = n,
|
|
249
|
+
precision: 2,
|
|
250
|
+
min: 0,
|
|
251
|
+
placeholder: s.$t("goodsSpu.salePriceV1Required"),
|
|
252
|
+
class: "w-full",
|
|
253
|
+
controls: !1
|
|
254
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
|
|
255
|
+
]),
|
|
256
|
+
_: 1
|
|
257
|
+
}, 8, ["label"]),
|
|
258
|
+
c(o, {
|
|
259
|
+
label: s.$t("goodsSpu.saleNums"),
|
|
260
|
+
prop: "saleNum",
|
|
261
|
+
"header-align": "center"
|
|
262
|
+
}, {
|
|
263
|
+
default: r(({ row: a }) => [
|
|
264
|
+
c(_, {
|
|
265
|
+
modelValue: a.saleNum,
|
|
266
|
+
"onUpdate:modelValue": (n) => a.saleNum = n,
|
|
267
|
+
placeholder: s.$t("goodsSpu.saleNumRequireds"),
|
|
268
|
+
class: "w-full",
|
|
269
|
+
controls: !1,
|
|
270
|
+
precision: 0,
|
|
271
|
+
min: 0
|
|
272
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
|
|
273
|
+
]),
|
|
274
|
+
_: 1
|
|
275
|
+
}, 8, ["label"]),
|
|
276
|
+
c(o, {
|
|
277
|
+
label: s.$t("common.operate"),
|
|
278
|
+
width: "60",
|
|
279
|
+
align: "center"
|
|
280
|
+
}, {
|
|
281
|
+
default: r((a) => [
|
|
282
|
+
a.$index !== 0 ? (m(), g(I, {
|
|
283
|
+
key: 0,
|
|
284
|
+
onClick: (n) => A(a),
|
|
285
|
+
size: "18",
|
|
286
|
+
style: { cursor: "pointer", color: "inherit" },
|
|
287
|
+
class: "hover-blue"
|
|
288
|
+
}, {
|
|
289
|
+
default: r(() => [
|
|
290
|
+
c(y)
|
|
291
|
+
]),
|
|
292
|
+
_: 2
|
|
293
|
+
}, 1032, ["onClick"])) : H("", !0)
|
|
294
|
+
]),
|
|
295
|
+
_: 1
|
|
296
|
+
}, 8, ["label"])
|
|
297
|
+
]),
|
|
298
|
+
_: 1
|
|
299
|
+
}, 8, ["data"]),
|
|
300
|
+
c(p, {
|
|
301
|
+
icon: h(Z),
|
|
302
|
+
class: "addButton",
|
|
303
|
+
onClick: R
|
|
304
|
+
}, {
|
|
305
|
+
default: r(() => [
|
|
306
|
+
x(J(h(E)("common.add")), 1)
|
|
307
|
+
]),
|
|
308
|
+
_: 1
|
|
309
|
+
}, 8, ["icon"])
|
|
310
|
+
]),
|
|
311
|
+
_: 1
|
|
312
|
+
});
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
}), ne = /* @__PURE__ */ W(ee, [["__scopeId", "data-v-3217d67c"]]);
|
|
316
|
+
export {
|
|
317
|
+
ne as default
|
|
318
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as te, ref as S, computed as se, watch as $, resolveComponent as i,
|
|
2
|
-
import { C as D, D as ue, S as Y, a as ne } from "./index-
|
|
3
|
-
import re from "./skuTable-
|
|
1
|
+
import { defineComponent as te, ref as S, computed as se, watch as $, resolveComponent as i, createElementBlock as g, openBlock as m, Fragment as b, createCommentVNode as I, unref as M, createVNode as o, withCtx as a, 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-B0qodJxZ.mjs";
|
|
3
|
+
import re from "./skuTable-DWpm1OMq.mjs";
|
|
4
4
|
import { _ as de } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
5
5
|
const pe = { key: 0 }, ce = {
|
|
6
6
|
key: 1,
|
|
@@ -353,7 +353,7 @@ const pe = { key: 0 }, ce = {
|
|
|
353
353
|
]),
|
|
354
354
|
_: 1
|
|
355
355
|
}),
|
|
356
|
-
l[9] || (l[9] = y("移除 "))
|
|
356
|
+
l[9] || (l[9] = y("移除 ", -1))
|
|
357
357
|
], 8, me)
|
|
358
358
|
]),
|
|
359
359
|
k("div", fe, [
|
|
@@ -380,7 +380,7 @@ const pe = { key: 0 }, ce = {
|
|
|
380
380
|
reference: a(() => [
|
|
381
381
|
o(R, { class: "m-2" }, {
|
|
382
382
|
default: a(() => l[10] || (l[10] = [
|
|
383
|
-
y("添加规格值")
|
|
383
|
+
y("添加规格值", -1)
|
|
384
384
|
])),
|
|
385
385
|
_: 1,
|
|
386
386
|
__: [10]
|
|
@@ -417,7 +417,7 @@ const pe = { key: 0 }, ce = {
|
|
|
417
417
|
reference: a(() => [
|
|
418
418
|
o(R, { class: "m-2" }, {
|
|
419
419
|
default: a(() => l[11] || (l[11] = [
|
|
420
|
-
y("添加规格")
|
|
420
|
+
y("添加规格", -1)
|
|
421
421
|
])),
|
|
422
422
|
_: 1,
|
|
423
423
|
__: [11]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as T, ref as C, computed as F, watch as $, resolveComponent as g,
|
|
2
|
-
import { D as O } from "./index-
|
|
1
|
+
import { defineComponent as T, ref as C, computed as F, watch as $, resolveComponent as g, createElementBlock as b, openBlock as P, createCommentVNode as M, createVNode as a, createElementVNode as u, createTextVNode as y, withCtx as d, Fragment as G, renderList as K, createBlock as z, toDisplayString as D, unref as x } from "vue";
|
|
2
|
+
import { D as O } from "./index-B0qodJxZ.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) {
|
|
@@ -212,7 +212,7 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
|
|
|
212
212
|
]),
|
|
213
213
|
_: 1
|
|
214
214
|
}),
|
|
215
|
-
s[8] || (s[8] = y(" 批量设置 "))
|
|
215
|
+
s[8] || (s[8] = y(" 批量设置 ", -1))
|
|
216
216
|
]),
|
|
217
217
|
u("span", Y, [
|
|
218
218
|
a(l, {
|
|
@@ -380,7 +380,7 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
|
|
|
380
380
|
onClick: S
|
|
381
381
|
}, {
|
|
382
382
|
default: d(() => s[9] || (s[9] = [
|
|
383
|
-
y("设置")
|
|
383
|
+
y("设置", -1)
|
|
384
384
|
])),
|
|
385
385
|
_: 1,
|
|
386
386
|
__: [9]
|
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-3217d67c]{margin-top:15px;margin-bottom:20px;width:100%}.hover-blue[data-v-3217d67c]: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}
|
|
@@ -78,6 +78,8 @@ export interface GoodsSpuCreateReq extends EntityCreateReq {
|
|
|
78
78
|
groupInfos?: Array<GoodsGroupInfoCreateReq>;
|
|
79
79
|
goodsType?: string;
|
|
80
80
|
note?: string;
|
|
81
|
+
minPrice?: number;
|
|
82
|
+
maxPrice?: number;
|
|
81
83
|
}
|
|
82
84
|
export interface GoodsSpuUpdateReq extends EntityUpdateReq {
|
|
83
85
|
spuId?: string;
|
|
@@ -102,6 +104,8 @@ export interface GoodsSpuUpdateReq extends EntityUpdateReq {
|
|
|
102
104
|
groupInfos?: Array<GoodsGroupInfoCreateReq>;
|
|
103
105
|
goodsType?: string;
|
|
104
106
|
note?: string;
|
|
107
|
+
minPrice?: number;
|
|
108
|
+
maxPrice?: number;
|
|
105
109
|
}
|
|
106
110
|
export type GoodsSpuFormReq = GoodsSpuCreateReq | GoodsSpuUpdateReq;
|
|
107
111
|
export interface GoodsSpuEnableKey {
|
|
@@ -166,6 +170,7 @@ export interface GoodsGroupInfoCreateReq {
|
|
|
166
170
|
saleNum?: number;
|
|
167
171
|
salePrice?: number;
|
|
168
172
|
specType?: string;
|
|
173
|
+
skuName?: string;
|
|
169
174
|
skuOptions?: {
|
|
170
175
|
key: string;
|
|
171
176
|
value: string;
|
package/package.json
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "xyvcard-goods",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"private": false,
|
|
5
|
-
"module": "dist/index.mjs",
|
|
6
|
-
"types": "dts/index.d.ts",
|
|
7
|
-
"files": [
|
|
8
|
-
"dist",
|
|
9
|
-
"dts"
|
|
10
|
-
],
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"vue
|
|
30
|
-
"vue
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "xyvcard-goods",
|
|
3
|
+
"version": "0.0.27",
|
|
4
|
+
"private": false,
|
|
5
|
+
"module": "dist/index.mjs",
|
|
6
|
+
"types": "dts/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"dts"
|
|
10
|
+
],
|
|
11
|
+
"peerDependencies": {
|
|
12
|
+
"axios": "^1.9.0",
|
|
13
|
+
"element-plus": "^2.9.10",
|
|
14
|
+
"jmash-core": "^0.1.7",
|
|
15
|
+
"jmash-dict": "^0.1.1",
|
|
16
|
+
"jmash-rbac": "^0.1.16",
|
|
17
|
+
"pinia": "^2.3.1",
|
|
18
|
+
"vue": "^3.5.13",
|
|
19
|
+
"vue-i18n": "^9.14.1",
|
|
20
|
+
"vue-router": "^4.5.1",
|
|
21
|
+
"xyvcard-emall": "^0.0.22",
|
|
22
|
+
"xyvcard-shop": "^0.0.29",
|
|
23
|
+
"xyvcard-cms": "0.0.51"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@eslint/js": "^9.16.0",
|
|
27
|
+
"@tsconfig/node20": "^20.1.2",
|
|
28
|
+
"@types/node": "^20.11.10",
|
|
29
|
+
"@vitejs/plugin-vue": "^5.0.3",
|
|
30
|
+
"@vue/tsconfig": "^0.5.1",
|
|
31
|
+
"eslint": "^9.16.0",
|
|
32
|
+
"eslint-plugin-vue": "^9.32.0",
|
|
33
|
+
"globals": "^15.13.0",
|
|
34
|
+
"moment": "^2.30.1",
|
|
35
|
+
"npm-run-all2": "^6.1.1",
|
|
36
|
+
"prettier": "^3.0.3",
|
|
37
|
+
"sass": "^1.72.0",
|
|
38
|
+
"typescript": "~5.3.0",
|
|
39
|
+
"typescript-eslint": "^8.17.0",
|
|
40
|
+
"unplugin-auto-import": "^0.17.5",
|
|
41
|
+
"unplugin-vue-components": "^0.26.0",
|
|
42
|
+
"vite": "^5.0.11",
|
|
43
|
+
"vue-tsc": "^1.8.27"
|
|
44
|
+
},
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"@element-plus/icons-vue": "^2.3.1",
|
|
47
|
+
"@vueuse/core": "^10.9.0",
|
|
48
|
+
"file-saver": "^2.0.5",
|
|
49
|
+
"nprogress": "^0.2.0",
|
|
50
|
+
"qs": "^6.12.0",
|
|
51
|
+
"pinyin-pro": "^3.25.0"
|
|
52
|
+
},
|
|
53
|
+
"scripts": {
|
|
54
|
+
"dev": "vite --host",
|
|
55
|
+
"build": "vite build && pnpm build:dts",
|
|
56
|
+
"build:dts": "vue-tsc --declaration --emitDeclarationOnly",
|
|
57
|
+
"preview": "vite preview",
|
|
58
|
+
"build-only": "vite build",
|
|
59
|
+
"type-check": "vue-tsc --build --force",
|
|
60
|
+
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
|
|
61
|
+
"format": "prettier --write src/"
|
|
62
|
+
}
|
|
63
63
|
}
|