xyvcard-goods 0.0.27 → 0.0.29
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-BMw9FVJL.mjs → ImageUpload-Dk6GY6PA.mjs} +2 -2
- package/dist/{edit-C6CESv8X.mjs → edit-1TXe_HC2.mjs} +24 -31
- package/dist/{edit-DmT9V-gh.mjs → edit-BDHYnZTL.mjs} +1 -1
- package/dist/{edit-CvY-V0N5.mjs → edit-Br1EAlBd.mjs} +86 -83
- package/dist/{edit-CwYGsVHI.mjs → edit-BzOoP1MM.mjs} +6 -6
- package/dist/{edit-CuYE3fHS.mjs → edit-C0U9Ge6U.mjs} +10 -10
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DfFKgB6q.mjs → edit.vue_vue_type_script_setup_true_lang-BmH1D2Ce.mjs} +75 -77
- package/dist/index-BreCG7fL.mjs +562 -0
- package/dist/{index-szFiZJnI.mjs → index-ClnNQkIp.mjs} +1 -1
- package/dist/{index-D7Zknkay.mjs → index-D3Q39K5l.mjs} +63 -65
- package/dist/{index-0g53MREL.mjs → index-DYo45BS3.mjs} +35 -40
- package/dist/index-DwDXNfWH.mjs +644 -0
- package/dist/{index-CXtRrzoC.mjs → index-GWE4OrXj.mjs} +1882 -2005
- package/dist/{index-CXEbqy-N.mjs → index-RBIPJ3PM.mjs} +90 -95
- package/dist/{index-B0qodJxZ.mjs → index-rRbEKDlL.mjs} +53 -46
- package/dist/index.mjs +1 -1
- package/dist/info-DjDT9TId.mjs +349 -0
- package/dist/{info-Bn5lfzNP.mjs → info-Dji-jSuw.mjs} +4 -4
- package/dist/{skuForm-DF02pgox.mjs → skuForm-9X82lvcF.mjs} +65 -67
- package/dist/{skuForm-EQVH7pCG.mjs → skuForm-BzxL1_v6.mjs} +6 -6
- package/dist/{skuTable-DWpm1OMq.mjs → skuTable-RIQUU_Bl.mjs} +4 -4
- package/dist/style.css +1 -1
- package/dts/api/goods-spu/types.d.ts +3 -0
- package/dts/api/index.d.ts +1 -0
- package/dts/constant.d.ts +10 -0
- package/dts/views/goods/goods-combination/skuTable.vue.d.ts +40 -0
- package/package.json +62 -62
- package/dist/goodsList-Bj9pZI5X.mjs +0 -4
- package/dist/goodsList-v98w-P_d.mjs +0 -4
- package/dist/goodsList.vue_vue_type_script_setup_true_lang-BsItIhFh.mjs +0 -714
- package/dist/goodsList.vue_vue_type_script_setup_true_lang-QHlAuCT3.mjs +0 -565
- package/dist/index-BrR_OdFN.mjs +0 -55
- package/dist/index-DWtdS9Gu.mjs +0 -53
- package/dist/info-PRjY0AD1.mjs +0 -331
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as j,
|
|
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 O } from "./index-
|
|
3
|
+
import { D as V, C as P } from "./index-rRbEKDlL.mjs";
|
|
4
|
+
import { a as O } from "./index-GWE4OrXj.mjs";
|
|
5
5
|
import { specValueApi as Q } from "xyvcard-shop";
|
|
6
6
|
import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
7
|
-
/*! Element Plus Icons Vue v2.3.
|
|
7
|
+
/*! Element Plus Icons Vue v2.3.1 */
|
|
8
8
|
var X = /* @__PURE__ */ j({
|
|
9
9
|
name: "Plus",
|
|
10
10
|
__name: "plus",
|
|
11
11
|
setup(b) {
|
|
12
|
-
return (C, E) => (m(),
|
|
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
|
}, [
|
|
@@ -31,7 +31,7 @@ const w = { key: 0 }, ee = /* @__PURE__ */ j({
|
|
|
31
31
|
},
|
|
32
32
|
emits: ["getGoodsSku", "getFormData"],
|
|
33
33
|
setup(b, { emit: C }) {
|
|
34
|
-
const { t: E } = K(),
|
|
34
|
+
const { t: E } = K(), U = v([]), d = v([
|
|
35
35
|
{
|
|
36
36
|
salePrice: 0,
|
|
37
37
|
skuId: "",
|
|
@@ -43,25 +43,24 @@ const w = { key: 0 }, ee = /* @__PURE__ */ j({
|
|
|
43
43
|
skuOptions: []
|
|
44
44
|
}
|
|
45
45
|
]);
|
|
46
|
-
|
|
46
|
+
V.goodsSpuBizDict.useValues();
|
|
47
47
|
const F = C;
|
|
48
48
|
function L(s, l) {
|
|
49
49
|
s.picUrl = l;
|
|
50
50
|
}
|
|
51
|
-
const
|
|
51
|
+
const y = b;
|
|
52
52
|
B(
|
|
53
|
-
|
|
53
|
+
y.form,
|
|
54
54
|
(s) => s,
|
|
55
55
|
{
|
|
56
56
|
deep: !0,
|
|
57
57
|
immediate: !0
|
|
58
58
|
}
|
|
59
|
-
),
|
|
60
|
-
if (
|
|
59
|
+
), y.form.spuId && O.findGroupList({ goodsId: y.form.spuId }).then(({ data: s }) => {
|
|
60
|
+
if (s && s.results.length > 0) {
|
|
61
61
|
d.value = [];
|
|
62
62
|
const l = s.results.map(async (e) => {
|
|
63
|
-
|
|
64
|
-
const o = {
|
|
63
|
+
const t = {
|
|
65
64
|
salePrice: e.salePrice || 0,
|
|
66
65
|
skuId: e.skuId || "",
|
|
67
66
|
spuId: e.spuId || "",
|
|
@@ -71,7 +70,7 @@ const w = { key: 0 }, ee = /* @__PURE__ */ j({
|
|
|
71
70
|
specType: "",
|
|
72
71
|
skuOptions: []
|
|
73
72
|
};
|
|
74
|
-
return await D(e.spuId,
|
|
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;
|
|
75
74
|
});
|
|
76
75
|
Promise.all(l).then((e) => {
|
|
77
76
|
d.value = e;
|
|
@@ -94,45 +93,45 @@ const w = { key: 0 }, ee = /* @__PURE__ */ j({
|
|
|
94
93
|
skuOptions: []
|
|
95
94
|
});
|
|
96
95
|
}
|
|
97
|
-
const T =
|
|
96
|
+
const T = v({});
|
|
98
97
|
async function z(s) {
|
|
99
|
-
if (!
|
|
98
|
+
if (!U.value[s])
|
|
100
99
|
try {
|
|
101
100
|
const { data: l } = await Q.findById({
|
|
102
101
|
specValueId: s
|
|
103
102
|
});
|
|
104
|
-
return
|
|
103
|
+
return U.value[s] = l.valueName, l.valueName;
|
|
105
104
|
} catch {
|
|
106
105
|
}
|
|
107
106
|
}
|
|
108
107
|
async function D(s, l) {
|
|
109
|
-
var e,
|
|
110
|
-
if (
|
|
111
|
-
l.skuId = "", l.picUrl = "", l.salePrice = 0, l.saleNum = 0, l.skuName = ((e =
|
|
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 = [];
|
|
112
111
|
return;
|
|
113
112
|
}
|
|
114
113
|
try {
|
|
115
|
-
const { data:
|
|
116
|
-
if (
|
|
117
|
-
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(
|
|
118
117
|
(p) => p.specValueId
|
|
119
|
-
) : []),
|
|
120
|
-
await Promise.all(
|
|
118
|
+
) : []), N = _.flat().map((u) => z(u));
|
|
119
|
+
await Promise.all(N);
|
|
121
120
|
const I = _.map(
|
|
122
|
-
(
|
|
121
|
+
(u) => u.map((p) => U.value[p] || p)
|
|
123
122
|
);
|
|
124
|
-
l.skuOptions = f.map((
|
|
125
|
-
key:
|
|
123
|
+
l.skuOptions = f.map((u, p) => ({
|
|
124
|
+
key: u.skuId,
|
|
126
125
|
value: I[p].join(" "),
|
|
127
126
|
specInfo: I[p].join(" "),
|
|
128
|
-
picUrl:
|
|
129
|
-
salePrice:
|
|
130
|
-
stock:
|
|
131
|
-
})), f.forEach((
|
|
132
|
-
|
|
133
|
-
...
|
|
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,
|
|
134
133
|
specInfo: I[p].join(" "),
|
|
135
|
-
spuPicUrls:
|
|
134
|
+
spuPicUrls: o.picUrls
|
|
136
135
|
});
|
|
137
136
|
});
|
|
138
137
|
}
|
|
@@ -144,15 +143,14 @@ const w = { key: 0 }, ee = /* @__PURE__ */ j({
|
|
|
144
143
|
if (l && s) {
|
|
145
144
|
const e = T.value[s];
|
|
146
145
|
if (e) {
|
|
147
|
-
const
|
|
148
|
-
l.picUrl = e.picUrl ||
|
|
146
|
+
const t = e.spuPicUrls ? e.spuPicUrls.split(",")[0] : "";
|
|
147
|
+
l.picUrl = e.picUrl || t, l.salePrice = e.salePrice, l.specInfo = e.specInfo;
|
|
149
148
|
}
|
|
150
149
|
}
|
|
151
150
|
}
|
|
152
151
|
return B(
|
|
153
152
|
d,
|
|
154
153
|
(s) => {
|
|
155
|
-
console.log("tableData", s);
|
|
156
154
|
const l = s.filter((e) => e.spuId && e.skuId).map((e) => ({
|
|
157
155
|
salePrice: e.salePrice,
|
|
158
156
|
skuId: e.skuId,
|
|
@@ -162,32 +160,32 @@ const w = { key: 0 }, ee = /* @__PURE__ */ j({
|
|
|
162
160
|
picUrl: e.picUrl,
|
|
163
161
|
skuName: e.skuName
|
|
164
162
|
}));
|
|
165
|
-
F("getGoodsSku", l)
|
|
163
|
+
F("getGoodsSku", l);
|
|
166
164
|
},
|
|
167
165
|
{
|
|
168
166
|
deep: !0,
|
|
169
167
|
immediate: !0
|
|
170
168
|
}
|
|
171
169
|
), (s, l) => {
|
|
172
|
-
const e =
|
|
173
|
-
return m(),
|
|
174
|
-
default:
|
|
175
|
-
c(
|
|
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, {
|
|
172
|
+
default: i(() => [
|
|
173
|
+
c(u, {
|
|
176
174
|
data: d.value,
|
|
177
175
|
border: "",
|
|
178
176
|
style: { width: "100%" }
|
|
179
177
|
}, {
|
|
180
|
-
default:
|
|
181
|
-
c(
|
|
178
|
+
default: i(() => [
|
|
179
|
+
c(t, {
|
|
182
180
|
label: s.$t("goodsSpu.spuName"),
|
|
183
181
|
prop: "spuId",
|
|
184
182
|
"header-align": "center"
|
|
185
183
|
}, {
|
|
186
|
-
default:
|
|
184
|
+
default: i(({ row: a }) => [
|
|
187
185
|
c(e, {
|
|
188
186
|
modelValue: a.spuId,
|
|
189
187
|
"onUpdate:modelValue": (n) => a.spuId = n,
|
|
190
|
-
data:
|
|
188
|
+
data: g(V).goodsSpuBizDict.values,
|
|
191
189
|
filterable: "",
|
|
192
190
|
clearable: "",
|
|
193
191
|
placeholder: s.$t("goodsSpu.spuNameRequireds"),
|
|
@@ -197,20 +195,20 @@ const w = { key: 0 }, ee = /* @__PURE__ */ j({
|
|
|
197
195
|
]),
|
|
198
196
|
_: 1
|
|
199
197
|
}, 8, ["label"]),
|
|
200
|
-
c(
|
|
198
|
+
c(t, {
|
|
201
199
|
label: s.$t("goodsSpu.specType"),
|
|
202
200
|
"header-align": "center"
|
|
203
201
|
}, {
|
|
204
|
-
default:
|
|
205
|
-
a.specType ===
|
|
202
|
+
default: i(({ row: a }) => [
|
|
203
|
+
a.specType === g(P).SPEC_TYPE.UNIFIED_SPEC ? (m(), S("span", w, " 统一规格 ")) : (m(), h(o, {
|
|
206
204
|
key: 1,
|
|
207
205
|
modelValue: a.skuId,
|
|
208
206
|
"onUpdate:modelValue": (n) => a.skuId = n,
|
|
209
207
|
placeholder: s.$t("goodsSpu.specTypeRequired"),
|
|
210
208
|
onChange: (n) => $(a.skuId)
|
|
211
209
|
}, {
|
|
212
|
-
default:
|
|
213
|
-
(m(!0),
|
|
210
|
+
default: i(() => [
|
|
211
|
+
(m(!0), S(Y, null, G(a.skuOptions, (n) => (m(), h(k, {
|
|
214
212
|
key: n.key,
|
|
215
213
|
label: n.value,
|
|
216
214
|
value: n.key
|
|
@@ -221,13 +219,13 @@ const w = { key: 0 }, ee = /* @__PURE__ */ j({
|
|
|
221
219
|
]),
|
|
222
220
|
_: 1
|
|
223
221
|
}, 8, ["label"]),
|
|
224
|
-
c(
|
|
222
|
+
c(t, {
|
|
225
223
|
label: s.$t("goodsSpu.picUrls"),
|
|
226
224
|
prop: "picUrl",
|
|
227
225
|
width: "105",
|
|
228
226
|
"header-align": "center"
|
|
229
227
|
}, {
|
|
230
|
-
default:
|
|
228
|
+
default: i(({ row: a }) => [
|
|
231
229
|
c(f, {
|
|
232
230
|
"picture-url": a.picUrl,
|
|
233
231
|
onImageSrc: (n) => L(a, n),
|
|
@@ -237,12 +235,12 @@ const w = { key: 0 }, ee = /* @__PURE__ */ j({
|
|
|
237
235
|
]),
|
|
238
236
|
_: 1
|
|
239
237
|
}, 8, ["label"]),
|
|
240
|
-
c(
|
|
238
|
+
c(t, {
|
|
241
239
|
label: s.$t("goodsSpu.salePriceV1"),
|
|
242
240
|
prop: "salePrice",
|
|
243
241
|
"header-align": "center"
|
|
244
242
|
}, {
|
|
245
|
-
default:
|
|
243
|
+
default: i(({ row: a }) => [
|
|
246
244
|
c(_, {
|
|
247
245
|
modelValue: a.salePrice,
|
|
248
246
|
"onUpdate:modelValue": (n) => a.salePrice = n,
|
|
@@ -255,12 +253,12 @@ const w = { key: 0 }, ee = /* @__PURE__ */ j({
|
|
|
255
253
|
]),
|
|
256
254
|
_: 1
|
|
257
255
|
}, 8, ["label"]),
|
|
258
|
-
c(
|
|
256
|
+
c(t, {
|
|
259
257
|
label: s.$t("goodsSpu.saleNums"),
|
|
260
258
|
prop: "saleNum",
|
|
261
259
|
"header-align": "center"
|
|
262
260
|
}, {
|
|
263
|
-
default:
|
|
261
|
+
default: i(({ row: a }) => [
|
|
264
262
|
c(_, {
|
|
265
263
|
modelValue: a.saleNum,
|
|
266
264
|
"onUpdate:modelValue": (n) => a.saleNum = n,
|
|
@@ -273,21 +271,21 @@ const w = { key: 0 }, ee = /* @__PURE__ */ j({
|
|
|
273
271
|
]),
|
|
274
272
|
_: 1
|
|
275
273
|
}, 8, ["label"]),
|
|
276
|
-
c(
|
|
274
|
+
c(t, {
|
|
277
275
|
label: s.$t("common.operate"),
|
|
278
276
|
width: "60",
|
|
279
277
|
align: "center"
|
|
280
278
|
}, {
|
|
281
|
-
default:
|
|
282
|
-
a.$index !== 0 ? (m(),
|
|
279
|
+
default: i((a) => [
|
|
280
|
+
a.$index !== 0 ? (m(), h(I, {
|
|
283
281
|
key: 0,
|
|
284
282
|
onClick: (n) => A(a),
|
|
285
283
|
size: "18",
|
|
286
284
|
style: { cursor: "pointer", color: "inherit" },
|
|
287
285
|
class: "hover-blue"
|
|
288
286
|
}, {
|
|
289
|
-
default:
|
|
290
|
-
c(
|
|
287
|
+
default: i(() => [
|
|
288
|
+
c(N)
|
|
291
289
|
]),
|
|
292
290
|
_: 2
|
|
293
291
|
}, 1032, ["onClick"])) : H("", !0)
|
|
@@ -298,12 +296,12 @@ const w = { key: 0 }, ee = /* @__PURE__ */ j({
|
|
|
298
296
|
_: 1
|
|
299
297
|
}, 8, ["data"]),
|
|
300
298
|
c(p, {
|
|
301
|
-
icon:
|
|
299
|
+
icon: g(Z),
|
|
302
300
|
class: "addButton",
|
|
303
301
|
onClick: R
|
|
304
302
|
}, {
|
|
305
|
-
default:
|
|
306
|
-
x(J(
|
|
303
|
+
default: i(() => [
|
|
304
|
+
x(J(g(E)("common.add")), 1)
|
|
307
305
|
]),
|
|
308
306
|
_: 1
|
|
309
307
|
}, 8, ["icon"])
|
|
@@ -312,7 +310,7 @@ const w = { key: 0 }, ee = /* @__PURE__ */ j({
|
|
|
312
310
|
});
|
|
313
311
|
};
|
|
314
312
|
}
|
|
315
|
-
}), ne = /* @__PURE__ */ W(ee, [["__scopeId", "data-v-
|
|
313
|
+
}), ne = /* @__PURE__ */ W(ee, [["__scopeId", "data-v-dc82ad15"]]);
|
|
316
314
|
export {
|
|
317
315
|
ne as default
|
|
318
316
|
};
|
|
@@ -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, 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-rRbEKDlL.mjs";
|
|
3
|
+
import re from "./skuTable-RIQUU_Bl.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("移除 "))
|
|
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("添加规格值")
|
|
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("添加规格")
|
|
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, 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-rRbEKDlL.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(" 批量设置 "))
|
|
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("设置")
|
|
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-dc82ad15]{margin-top:15px;margin-bottom:20px;width:100%}.hover-blue[data-v-dc82ad15]:hover{color:#409eff!important}.position-center[data-v-4d967c8a]{position:absolute;right:0;top:30%;transform:translateY(-30%)}.plus-position[data-v-4d967c8a]{position:absolute;right:0;top:0;margin-top:8px}.position-center[data-v-4ec2418d]{position:absolute;right:0;top:30%;transform:translateY(-30%)}.plus-position[data-v-4ec2418d]{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;
|
package/dts/api/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export declare class Dict {
|
|
|
10
10
|
static readonly goodsEnsureDict: EntryDict;
|
|
11
11
|
static readonly specTypeEnum: EnumDict;
|
|
12
12
|
static readonly goodsSpuListSortEnum: EnumDict;
|
|
13
|
+
static readonly goodsSpuListSortDict: CustomBizDict;
|
|
13
14
|
static readonly approvalStatusEnum: EnumDict;
|
|
14
15
|
static readonly enableDict: CustomBizDict;
|
|
15
16
|
static readonly goodsCategoryListBizLayDict: GoodsCategoryListBizLayDict;
|
package/dts/constant.d.ts
CHANGED
|
@@ -18,6 +18,16 @@ export declare class Constant {
|
|
|
18
18
|
static readonly DICT_GOODS_ENSURE = "goods_ensure";
|
|
19
19
|
static readonly ENUM_SPEC_TYPE = "xyvcard.goods.protobuf.SpecType";
|
|
20
20
|
static readonly ENUM_GOODS_SPU_List_SORT = "xyvcard.goods.protobuf.GoodsSpuListSort";
|
|
21
|
+
static readonly GOODS_SPU_VALUES: globalThis.Ref<{
|
|
22
|
+
key: string;
|
|
23
|
+
value: string;
|
|
24
|
+
}[], {
|
|
25
|
+
key: string;
|
|
26
|
+
value: string;
|
|
27
|
+
}[] | {
|
|
28
|
+
key: string;
|
|
29
|
+
value: string;
|
|
30
|
+
}[]>;
|
|
21
31
|
static readonly ENUM_APPROVAL_STATUS = "xyvcard.goods.protobuf.ApprovalStatus";
|
|
22
32
|
static readonly APPROVAL_NOT_PASS = "APPROVAL_NOT_PASS";
|
|
23
33
|
static readonly APPROVAL_PASS = "APPROVAL_PASS";
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type PropType } from "vue";
|
|
2
|
+
import type { GoodsSkuCreateReq, SkuSpecValueModel } from "@/api/goods-spu/types";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
|
|
4
|
+
specData: {
|
|
5
|
+
type: PropType<SkuSpecValueModel[]>;
|
|
6
|
+
default(): never[];
|
|
7
|
+
};
|
|
8
|
+
goodsSku: {
|
|
9
|
+
type: PropType<GoodsSkuCreateReq[]>;
|
|
10
|
+
default(): never[];
|
|
11
|
+
};
|
|
12
|
+
isSettingShow: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
getGoodsSku: (...args: any[]) => void;
|
|
18
|
+
getFormData: (...args: any[]) => void;
|
|
19
|
+
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
20
|
+
specData: {
|
|
21
|
+
type: PropType<SkuSpecValueModel[]>;
|
|
22
|
+
default(): never[];
|
|
23
|
+
};
|
|
24
|
+
goodsSku: {
|
|
25
|
+
type: PropType<GoodsSkuCreateReq[]>;
|
|
26
|
+
default(): never[];
|
|
27
|
+
};
|
|
28
|
+
isSettingShow: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
}>> & Readonly<{
|
|
33
|
+
onGetGoodsSku?: ((...args: any[]) => any) | undefined;
|
|
34
|
+
onGetFormData?: ((...args: any[]) => any) | undefined;
|
|
35
|
+
}>, {
|
|
36
|
+
specData: SkuSpecValueModel[];
|
|
37
|
+
goodsSku: GoodsSkuCreateReq[];
|
|
38
|
+
isSettingShow: boolean;
|
|
39
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
40
|
+
export default _default;
|
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
|
-
"
|
|
30
|
-
"
|
|
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.29",
|
|
4
|
+
"private": false,
|
|
5
|
+
"module": "dist/index.mjs",
|
|
6
|
+
"types": "dts/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"dts"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"dev": "vite --host",
|
|
13
|
+
"build": "vite build && pnpm build:dts",
|
|
14
|
+
"build:dts": "vue-tsc --declaration --emitDeclarationOnly",
|
|
15
|
+
"preview": "vite preview",
|
|
16
|
+
"build-only": "vite build",
|
|
17
|
+
"type-check": "vue-tsc --build --force",
|
|
18
|
+
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
|
|
19
|
+
"format": "prettier --write src/"
|
|
20
|
+
},
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"axios": "^1.9.0",
|
|
23
|
+
"element-plus": "^2.9.10",
|
|
24
|
+
"jmash-core": "^0.1.7",
|
|
25
|
+
"jmash-dict": "^0.1.2",
|
|
26
|
+
"jmash-rbac": "^0.1.16",
|
|
27
|
+
"pinia": "^2.3.1",
|
|
28
|
+
"vue": "^3.5.13",
|
|
29
|
+
"vue-i18n": "^9.14.1",
|
|
30
|
+
"vue-router": "^4.5.1",
|
|
31
|
+
"xyvcard-emall": "^0.0.18",
|
|
32
|
+
"xyvcard-shop": "^0.0.30",
|
|
33
|
+
"xyvcard-cms": "0.0.51"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@eslint/js": "^9.16.0",
|
|
37
|
+
"@tsconfig/node20": "^20.1.2",
|
|
38
|
+
"@types/node": "^20.11.10",
|
|
39
|
+
"@vitejs/plugin-vue": "^5.0.3",
|
|
40
|
+
"@vue/tsconfig": "^0.5.1",
|
|
41
|
+
"eslint": "^9.16.0",
|
|
42
|
+
"eslint-plugin-vue": "^9.32.0",
|
|
43
|
+
"globals": "^15.13.0",
|
|
44
|
+
"moment": "^2.30.1",
|
|
45
|
+
"npm-run-all2": "^6.1.1",
|
|
46
|
+
"prettier": "^3.0.3",
|
|
47
|
+
"sass": "^1.72.0",
|
|
48
|
+
"typescript": "~5.3.0",
|
|
49
|
+
"typescript-eslint": "^8.17.0",
|
|
50
|
+
"unplugin-auto-import": "^0.17.5",
|
|
51
|
+
"unplugin-vue-components": "^0.26.0",
|
|
52
|
+
"vite": "^5.0.11",
|
|
53
|
+
"vue-tsc": "^1.8.27"
|
|
54
|
+
},
|
|
55
|
+
"dependencies": {
|
|
56
|
+
"@element-plus/icons-vue": "^2.3.1",
|
|
57
|
+
"@vueuse/core": "^10.9.0",
|
|
58
|
+
"file-saver": "^2.0.5",
|
|
59
|
+
"nprogress": "^0.2.0",
|
|
60
|
+
"qs": "^6.12.0",
|
|
61
|
+
"pinyin-pro": "^3.25.0"
|
|
62
|
+
}
|
|
63
63
|
}
|