xyvcard-goods 0.0.26 → 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-eAHVEi0b.mjs → edit-C6CESv8X.mjs} +3 -3
- package/dist/{edit-C5HGHhkb.mjs → edit-CuYE3fHS.mjs} +3 -3
- package/dist/{edit-DrbsKmwh.mjs → edit-CvY-V0N5.mjs} +30 -30
- package/dist/{edit-Xn_nZjI6.mjs → edit-CwYGsVHI.mjs} +6 -6
- package/dist/{edit-Cb0aaC0q.mjs → edit-DmT9V-gh.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DBG-5gI4.mjs → edit.vue_vue_type_script_setup_true_lang-DfFKgB6q.mjs} +76 -74
- package/dist/{goodsList-CDQZGSh2.mjs → goodsList-Bj9pZI5X.mjs} +1 -1
- package/dist/{goodsList-CKCG7ntZ.mjs → goodsList-v98w-P_d.mjs} +1 -1
- package/dist/{goodsList.vue_vue_type_script_setup_true_lang-DiRkiNJk.mjs → goodsList.vue_vue_type_script_setup_true_lang-BsItIhFh.mjs} +3 -3
- package/dist/{goodsList.vue_vue_type_script_setup_true_lang-B6P3fso6.mjs → goodsList.vue_vue_type_script_setup_true_lang-QHlAuCT3.mjs} +3 -3
- package/dist/{index-B8IdlGiz.mjs → index-0g53MREL.mjs} +14 -14
- package/dist/{index-CMkWXcWe.mjs → index-B0qodJxZ.mjs} +2 -2
- package/dist/{index-CSeu2TZT.mjs → index-BrR_OdFN.mjs} +3 -3
- package/dist/{index-DSbkvzGV.mjs → index-CXEbqy-N.mjs} +14 -14
- package/dist/{index-utNcRJx7.mjs → index-CXtRrzoC.mjs} +2001 -1878
- package/dist/{index-Bz206T2E.mjs → index-D7Zknkay.mjs} +14 -14
- package/dist/{index-CDhEKnzj.mjs → index-DWtdS9Gu.mjs} +3 -3
- package/dist/{index-D70qzGQF.mjs → index-szFiZJnI.mjs} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{info-CX3zF0ZW.mjs → info-Bn5lfzNP.mjs} +4 -4
- package/dist/{info-Dlte8Sn0.mjs → info-PRjY0AD1.mjs} +111 -105
- package/dist/{skuForm-DUR7U2Kn.mjs → skuForm-DF02pgox.mjs} +101 -98
- package/dist/{skuForm-B_8WQCr3.mjs → skuForm-EQVH7pCG.mjs} +6 -6
- package/dist/{skuTable-D4LGL7B5.mjs → skuTable-DWpm1OMq.mjs} +4 -4
- package/dist/style.css +1 -1
- package/dts/api/goods-spu/types.d.ts +1 -0
- package/package.json +62 -62
- package/dts/views/goods/goods-combination/skuTable.vue.d.ts +0 -40
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
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
2
|
import { useI18n as K } from "vue-i18n";
|
|
3
|
-
import { D as
|
|
4
|
-
import { a as
|
|
3
|
+
import { D as S, C as U } from "./index-B0qodJxZ.mjs";
|
|
4
|
+
import { a as O } from "./index-CXtRrzoC.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.
|
|
8
|
-
var X = /* @__PURE__ */
|
|
7
|
+
/*! Element Plus Icons Vue v2.3.2 */
|
|
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(), v("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(), P = V([]), d = V([
|
|
35
35
|
{
|
|
36
36
|
salePrice: 0,
|
|
37
37
|
skuId: "",
|
|
@@ -43,45 +43,46 @@ const w = { key: 0 }, ee = /* @__PURE__ */ O({
|
|
|
43
43
|
skuOptions: []
|
|
44
44
|
}
|
|
45
45
|
]);
|
|
46
|
-
|
|
47
|
-
const
|
|
48
|
-
function
|
|
46
|
+
S.goodsSpuBizDict.useValues();
|
|
47
|
+
const F = C;
|
|
48
|
+
function L(s, l) {
|
|
49
49
|
s.picUrl = l;
|
|
50
50
|
}
|
|
51
|
-
const
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
const N = b;
|
|
52
|
+
B(
|
|
53
|
+
N.form,
|
|
54
54
|
(s) => s,
|
|
55
55
|
{
|
|
56
56
|
deep: !0,
|
|
57
57
|
immediate: !0
|
|
58
58
|
}
|
|
59
|
-
),
|
|
60
|
-
if (s && s.results.length > 0) {
|
|
59
|
+
), N.form.spuId && O.findGroupList({ goodsId: N.form.spuId }).then(({ data: s }) => {
|
|
60
|
+
if (console.log("....", s), s && s.results.length > 0) {
|
|
61
61
|
d.value = [];
|
|
62
62
|
const l = s.results.map(async (e) => {
|
|
63
63
|
console.log("item", e);
|
|
64
|
-
const
|
|
64
|
+
const o = {
|
|
65
65
|
salePrice: e.salePrice || 0,
|
|
66
66
|
skuId: e.skuId || "",
|
|
67
67
|
spuId: e.spuId || "",
|
|
68
68
|
saleNum: e.saleNum || 0,
|
|
69
69
|
picUrl: e.picUrl || "",
|
|
70
|
+
skuName: e.skuName || "",
|
|
70
71
|
specType: "",
|
|
71
72
|
skuOptions: []
|
|
72
73
|
};
|
|
73
|
-
return await
|
|
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;
|
|
74
75
|
});
|
|
75
76
|
Promise.all(l).then((e) => {
|
|
76
77
|
d.value = e;
|
|
77
78
|
});
|
|
78
79
|
}
|
|
79
80
|
});
|
|
80
|
-
function
|
|
81
|
+
function A(s) {
|
|
81
82
|
const l = d.value.indexOf(s.row);
|
|
82
83
|
l !== 0 && d.value.splice(l, 1);
|
|
83
84
|
}
|
|
84
|
-
function
|
|
85
|
+
function R() {
|
|
85
86
|
d.value.push({
|
|
86
87
|
salePrice: 0,
|
|
87
88
|
skuId: "",
|
|
@@ -93,8 +94,8 @@ const w = { key: 0 }, ee = /* @__PURE__ */ O({
|
|
|
93
94
|
skuOptions: []
|
|
94
95
|
});
|
|
95
96
|
}
|
|
96
|
-
const
|
|
97
|
-
async function
|
|
97
|
+
const T = V({});
|
|
98
|
+
async function z(s) {
|
|
98
99
|
if (!P.value[s])
|
|
99
100
|
try {
|
|
100
101
|
const { data: l } = await Q.findById({
|
|
@@ -104,113 +105,115 @@ const w = { key: 0 }, ee = /* @__PURE__ */ O({
|
|
|
104
105
|
} catch {
|
|
105
106
|
}
|
|
106
107
|
}
|
|
107
|
-
async function
|
|
108
|
-
var e,
|
|
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 = [];
|
|
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 = [];
|
|
111
112
|
return;
|
|
112
113
|
}
|
|
113
114
|
try {
|
|
114
|
-
const { data:
|
|
115
|
-
if (l.specType =
|
|
116
|
-
const f =
|
|
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(
|
|
117
118
|
(p) => p.specValueId
|
|
118
|
-
) : []),
|
|
119
|
-
await Promise.all(
|
|
120
|
-
const
|
|
121
|
-
(
|
|
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)
|
|
122
123
|
);
|
|
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:
|
|
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
|
|
135
136
|
});
|
|
136
137
|
});
|
|
137
138
|
}
|
|
138
139
|
} catch {
|
|
139
140
|
}
|
|
140
141
|
}
|
|
141
|
-
function
|
|
142
|
+
function $(s) {
|
|
142
143
|
const l = d.value.find((e) => e.skuId === s);
|
|
143
144
|
if (l && s) {
|
|
144
|
-
const e =
|
|
145
|
+
const e = T.value[s];
|
|
145
146
|
if (e) {
|
|
146
|
-
const
|
|
147
|
-
l.picUrl = e.picUrl ||
|
|
147
|
+
const o = e.spuPicUrls ? e.spuPicUrls.split(",")[0] : "";
|
|
148
|
+
l.picUrl = e.picUrl || o, l.salePrice = e.salePrice, l.specInfo = e.specInfo;
|
|
148
149
|
}
|
|
149
150
|
}
|
|
150
151
|
}
|
|
151
|
-
return
|
|
152
|
+
return B(
|
|
152
153
|
d,
|
|
153
154
|
(s) => {
|
|
155
|
+
console.log("tableData", s);
|
|
154
156
|
const l = s.filter((e) => e.spuId && e.skuId).map((e) => ({
|
|
155
157
|
salePrice: e.salePrice,
|
|
156
158
|
skuId: e.skuId,
|
|
157
159
|
spuId: e.spuId,
|
|
158
160
|
specInfo: e.specInfo,
|
|
159
161
|
saleNum: e.saleNum,
|
|
160
|
-
picUrl: e.picUrl
|
|
162
|
+
picUrl: e.picUrl,
|
|
163
|
+
skuName: e.skuName
|
|
161
164
|
}));
|
|
162
|
-
|
|
165
|
+
F("getGoodsSku", l), console.log("filteredValue", l);
|
|
163
166
|
},
|
|
164
167
|
{
|
|
165
168
|
deep: !0,
|
|
166
169
|
immediate: !0
|
|
167
170
|
}
|
|
168
171
|
), (s, l) => {
|
|
169
|
-
const e =
|
|
170
|
-
return m(),
|
|
171
|
-
default:
|
|
172
|
-
c(
|
|
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, {
|
|
173
176
|
data: d.value,
|
|
174
177
|
border: "",
|
|
175
178
|
style: { width: "100%" }
|
|
176
179
|
}, {
|
|
177
|
-
default:
|
|
178
|
-
c(
|
|
180
|
+
default: r(() => [
|
|
181
|
+
c(o, {
|
|
179
182
|
label: s.$t("goodsSpu.spuName"),
|
|
180
183
|
prop: "spuId",
|
|
181
184
|
"header-align": "center"
|
|
182
185
|
}, {
|
|
183
|
-
default:
|
|
186
|
+
default: r(({ row: a }) => [
|
|
184
187
|
c(e, {
|
|
185
188
|
modelValue: a.spuId,
|
|
186
|
-
"onUpdate:modelValue": (
|
|
187
|
-
data:
|
|
189
|
+
"onUpdate:modelValue": (n) => a.spuId = n,
|
|
190
|
+
data: h(S).goodsSpuBizDict.values,
|
|
188
191
|
filterable: "",
|
|
189
192
|
clearable: "",
|
|
190
193
|
placeholder: s.$t("goodsSpu.spuNameRequireds"),
|
|
191
194
|
class: "w-full",
|
|
192
|
-
onChange: (
|
|
195
|
+
onChange: (n) => D(a.spuId, a)
|
|
193
196
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "data", "placeholder", "onChange"])
|
|
194
197
|
]),
|
|
195
198
|
_: 1
|
|
196
199
|
}, 8, ["label"]),
|
|
197
|
-
c(
|
|
200
|
+
c(o, {
|
|
198
201
|
label: s.$t("goodsSpu.specType"),
|
|
199
202
|
"header-align": "center"
|
|
200
203
|
}, {
|
|
201
|
-
default:
|
|
202
|
-
a.specType ===
|
|
204
|
+
default: r(({ row: a }) => [
|
|
205
|
+
a.specType === h(U).SPEC_TYPE.UNIFIED_SPEC ? (m(), v("span", w, " 统一规格 ")) : (m(), g(u, {
|
|
203
206
|
key: 1,
|
|
204
207
|
modelValue: a.skuId,
|
|
205
|
-
"onUpdate:modelValue": (
|
|
208
|
+
"onUpdate:modelValue": (n) => a.skuId = n,
|
|
206
209
|
placeholder: s.$t("goodsSpu.specTypeRequired"),
|
|
207
|
-
onChange: (
|
|
210
|
+
onChange: (n) => $(a.skuId)
|
|
208
211
|
}, {
|
|
209
|
-
default:
|
|
210
|
-
(m(!0), v(Y, null, G(a.skuOptions, (
|
|
211
|
-
key:
|
|
212
|
-
label:
|
|
213
|
-
value:
|
|
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
|
|
214
217
|
}, null, 8, ["label", "value"]))), 128))
|
|
215
218
|
]),
|
|
216
219
|
_: 2
|
|
@@ -218,31 +221,31 @@ const w = { key: 0 }, ee = /* @__PURE__ */ O({
|
|
|
218
221
|
]),
|
|
219
222
|
_: 1
|
|
220
223
|
}, 8, ["label"]),
|
|
221
|
-
c(
|
|
224
|
+
c(o, {
|
|
222
225
|
label: s.$t("goodsSpu.picUrls"),
|
|
223
226
|
prop: "picUrl",
|
|
224
227
|
width: "105",
|
|
225
228
|
"header-align": "center"
|
|
226
229
|
}, {
|
|
227
|
-
default:
|
|
228
|
-
c(
|
|
230
|
+
default: r(({ row: a }) => [
|
|
231
|
+
c(f, {
|
|
229
232
|
"picture-url": a.picUrl,
|
|
230
|
-
onImageSrc: (
|
|
233
|
+
onImageSrc: (n) => L(a, n),
|
|
231
234
|
width: 80,
|
|
232
235
|
type: "trans"
|
|
233
236
|
}, null, 8, ["picture-url", "onImageSrc"])
|
|
234
237
|
]),
|
|
235
238
|
_: 1
|
|
236
239
|
}, 8, ["label"]),
|
|
237
|
-
c(
|
|
240
|
+
c(o, {
|
|
238
241
|
label: s.$t("goodsSpu.salePriceV1"),
|
|
239
242
|
prop: "salePrice",
|
|
240
243
|
"header-align": "center"
|
|
241
244
|
}, {
|
|
242
|
-
default:
|
|
243
|
-
c(
|
|
245
|
+
default: r(({ row: a }) => [
|
|
246
|
+
c(_, {
|
|
244
247
|
modelValue: a.salePrice,
|
|
245
|
-
"onUpdate:modelValue": (
|
|
248
|
+
"onUpdate:modelValue": (n) => a.salePrice = n,
|
|
246
249
|
precision: 2,
|
|
247
250
|
min: 0,
|
|
248
251
|
placeholder: s.$t("goodsSpu.salePriceV1Required"),
|
|
@@ -252,15 +255,15 @@ const w = { key: 0 }, ee = /* @__PURE__ */ O({
|
|
|
252
255
|
]),
|
|
253
256
|
_: 1
|
|
254
257
|
}, 8, ["label"]),
|
|
255
|
-
c(
|
|
258
|
+
c(o, {
|
|
256
259
|
label: s.$t("goodsSpu.saleNums"),
|
|
257
260
|
prop: "saleNum",
|
|
258
261
|
"header-align": "center"
|
|
259
262
|
}, {
|
|
260
|
-
default:
|
|
261
|
-
c(
|
|
263
|
+
default: r(({ row: a }) => [
|
|
264
|
+
c(_, {
|
|
262
265
|
modelValue: a.saleNum,
|
|
263
|
-
"onUpdate:modelValue": (
|
|
266
|
+
"onUpdate:modelValue": (n) => a.saleNum = n,
|
|
264
267
|
placeholder: s.$t("goodsSpu.saleNumRequireds"),
|
|
265
268
|
class: "w-full",
|
|
266
269
|
controls: !1,
|
|
@@ -270,21 +273,21 @@ const w = { key: 0 }, ee = /* @__PURE__ */ O({
|
|
|
270
273
|
]),
|
|
271
274
|
_: 1
|
|
272
275
|
}, 8, ["label"]),
|
|
273
|
-
c(
|
|
276
|
+
c(o, {
|
|
274
277
|
label: s.$t("common.operate"),
|
|
275
278
|
width: "60",
|
|
276
279
|
align: "center"
|
|
277
280
|
}, {
|
|
278
|
-
default:
|
|
279
|
-
a.$index !== 0 ? (m(),
|
|
281
|
+
default: r((a) => [
|
|
282
|
+
a.$index !== 0 ? (m(), g(I, {
|
|
280
283
|
key: 0,
|
|
281
|
-
onClick: (
|
|
284
|
+
onClick: (n) => A(a),
|
|
282
285
|
size: "18",
|
|
283
286
|
style: { cursor: "pointer", color: "inherit" },
|
|
284
287
|
class: "hover-blue"
|
|
285
288
|
}, {
|
|
286
|
-
default:
|
|
287
|
-
c(
|
|
289
|
+
default: r(() => [
|
|
290
|
+
c(y)
|
|
288
291
|
]),
|
|
289
292
|
_: 2
|
|
290
293
|
}, 1032, ["onClick"])) : H("", !0)
|
|
@@ -294,13 +297,13 @@ const w = { key: 0 }, ee = /* @__PURE__ */ O({
|
|
|
294
297
|
]),
|
|
295
298
|
_: 1
|
|
296
299
|
}, 8, ["data"]),
|
|
297
|
-
c(
|
|
298
|
-
icon:
|
|
300
|
+
c(p, {
|
|
301
|
+
icon: h(Z),
|
|
299
302
|
class: "addButton",
|
|
300
|
-
onClick:
|
|
303
|
+
onClick: R
|
|
301
304
|
}, {
|
|
302
|
-
default:
|
|
303
|
-
x(J(
|
|
305
|
+
default: r(() => [
|
|
306
|
+
x(J(h(E)("common.add")), 1)
|
|
304
307
|
]),
|
|
305
308
|
_: 1
|
|
306
309
|
}, 8, ["icon"])
|
|
@@ -309,7 +312,7 @@ const w = { key: 0 }, ee = /* @__PURE__ */ O({
|
|
|
309
312
|
});
|
|
310
313
|
};
|
|
311
314
|
}
|
|
312
|
-
}), ne = /* @__PURE__ */ W(ee, [["__scopeId", "data-v-
|
|
315
|
+
}), ne = /* @__PURE__ */ W(ee, [["__scopeId", "data-v-3217d67c"]]);
|
|
313
316
|
export {
|
|
314
317
|
ne as default
|
|
315
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}
|
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
|
}
|
|
@@ -1,40 +0,0 @@
|
|
|
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;
|