xyvcard-goods 0.0.18 → 0.0.20
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/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
- package/dist/edit-Bb2XgE0h.mjs +590 -0
- package/dist/edit-BcokSKfN.mjs +183 -0
- package/dist/{edit-E57LIt5x.mjs → edit-Cj13W2TC.mjs} +1 -1
- package/dist/edit-DxnsmaXV.mjs +186 -0
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BHplO2tN.mjs → edit.vue_vue_type_script_setup_true_lang-D2w1583D.mjs} +1 -1
- package/dist/{goodsList-0TMcPn_Q.mjs → goodsList-DOXK1EwK.mjs} +1 -1
- package/dist/goodsList.vue_vue_type_script_setup_true_lang-COJVlEjX.mjs +713 -0
- package/dist/index-BmOxm1P2.mjs +324 -0
- package/dist/index-C3FT_Oe7.mjs +318 -0
- package/dist/{index-CnyW3rxw.mjs → index-CGAoZY87.mjs} +2 -2
- package/dist/index-D3w33Nba.mjs +301 -0
- package/dist/{index-nSAowuoJ.mjs → index-DAJiqOCh.mjs} +2 -2
- package/dist/index-DR7GlHNd.mjs +1288 -0
- package/dist/index-jTDhsbYM.mjs +141 -0
- package/dist/index-r0u-27m7.mjs +141 -0
- package/dist/index.mjs +321 -284
- package/dist/info-DImlMNq0.mjs +365 -0
- package/dist/{skuForm-H9IDa7ys.mjs → skuForm-Bt3arW0s.mjs} +157 -108
- package/dist/skuTable-Ahc3WlPp.mjs +639 -0
- package/dist/style.css +1 -1
- package/dts/api/dict.d.ts +6 -0
- package/dts/api/goods-brand-info/index.d.ts +20 -0
- package/dts/api/goods-brand-info/types.d.ts +73 -0
- package/dts/api/goods-label-info/index.d.ts +20 -0
- package/dts/api/goods-label-info/types.d.ts +70 -0
- package/dts/api/goods-sku/types.d.ts +2 -0
- package/dts/api/goods-spu/types.d.ts +13 -0
- package/dts/api/index.d.ts +3 -1
- package/dts/lang/goods/zh-cn.d.ts +35 -0
- package/dts/views/goods/goods-brand-info/edit.vue.d.ts +22 -0
- package/dts/views/goods/goods-brand-info/index.vue.d.ts +2 -0
- package/dts/views/goods/goods-label-info/edit.vue.d.ts +22 -0
- package/dts/views/goods/goods-label-info/index.vue.d.ts +2 -0
- package/package.json +2 -2
- package/dist/edit-CYk6B5NG.mjs +0 -529
- package/dist/goodsList.vue_vue_type_script_setup_true_lang-Cd7-ryQA.mjs +0 -626
- package/dist/index-CmKF2zdn.mjs +0 -272
- package/dist/info-D6MWRZ1y.mjs +0 -306
- package/dist/skuTable-DbNThlFG.mjs +0 -553
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { defineComponent as te, ref as
|
|
2
|
-
import { C as
|
|
3
|
-
import
|
|
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-D3w33Nba.mjs";
|
|
3
|
+
import re from "./skuTable-Ahc3WlPp.mjs";
|
|
4
|
+
import { _ as de } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
5
|
const pe = { key: 0 }, ce = {
|
|
5
6
|
key: 1,
|
|
6
7
|
class: "w-full"
|
|
7
|
-
}, ie = { class: "goods-title" }, me = ["onClick"], fe = { class: "goods-content" }, ve = { class: "goods-tag" },
|
|
8
|
+
}, ie = { class: "goods-title" }, me = ["onClick"], fe = { class: "goods-content" }, ve = { class: "goods-tag" }, Ve = /* @__PURE__ */ te({
|
|
8
9
|
__name: "skuForm",
|
|
9
10
|
props: {
|
|
10
11
|
// 规格类型
|
|
@@ -20,66 +21,68 @@ const pe = { key: 0 }, ce = {
|
|
|
20
21
|
},
|
|
21
22
|
emits: ["getGoodsSku", "getFormData"],
|
|
22
23
|
setup(H, { emit: J }) {
|
|
23
|
-
var F,
|
|
24
|
-
const
|
|
24
|
+
var F, q, T;
|
|
25
|
+
const r = S({
|
|
25
26
|
picUrl: "",
|
|
26
27
|
salePrice: 0,
|
|
28
|
+
salePriceV2: 0,
|
|
29
|
+
salePriceV3: 0,
|
|
27
30
|
marketPrice: 0,
|
|
28
31
|
costPrice: 0,
|
|
29
32
|
weight: 0,
|
|
30
33
|
volume: 0,
|
|
31
34
|
stock: 0,
|
|
32
35
|
skuCode: ""
|
|
33
|
-
}),
|
|
36
|
+
}), u = S([]), C = S(), _ = S([]), h = S([]), E = S([]), v = H, L = J, U = se(() => u.value.filter(
|
|
34
37
|
(e) => e.name && e.specValueList != null && e.specValueList.length
|
|
35
38
|
));
|
|
36
|
-
|
|
39
|
+
$(
|
|
37
40
|
v.form,
|
|
38
41
|
(e) => e,
|
|
39
42
|
{
|
|
40
43
|
deep: !0,
|
|
41
44
|
immediate: !0
|
|
42
45
|
}
|
|
43
|
-
),
|
|
44
|
-
|
|
46
|
+
), $(
|
|
47
|
+
r,
|
|
45
48
|
(e) => {
|
|
46
|
-
|
|
49
|
+
L("getGoodsSku", e);
|
|
47
50
|
},
|
|
48
51
|
{
|
|
49
52
|
deep: !0,
|
|
50
53
|
immediate: !0
|
|
51
54
|
}
|
|
52
|
-
),
|
|
55
|
+
), $(
|
|
53
56
|
U,
|
|
54
57
|
(e) => e,
|
|
55
58
|
{
|
|
56
59
|
deep: !0,
|
|
57
60
|
immediate: !0
|
|
58
61
|
}
|
|
59
|
-
), v.form.spuId && (v.form.specType ===
|
|
62
|
+
), v.form.spuId && (v.form.specType === D.SPEC_TYPE.UNIFIED_SPEC ? r.value = (F = v.form.skuList) == null ? void 0 : F.results[0] : (E.value = (q = v.form.skuList) == null ? void 0 : q.results, (T = v.form.skuList) == null || T.results.forEach((e) => {
|
|
60
63
|
var l;
|
|
61
|
-
(l = e.specValues) == null || l.map((
|
|
64
|
+
(l = e.specValues) == null || l.map((t) => {
|
|
62
65
|
ue.specInfoDict.useValues().then((n) => {
|
|
63
|
-
const
|
|
64
|
-
if (
|
|
66
|
+
const d = n.find((f) => t.specId === f.key);
|
|
67
|
+
if (d) {
|
|
65
68
|
let f = {
|
|
66
|
-
id:
|
|
67
|
-
name:
|
|
69
|
+
id: t.specId,
|
|
70
|
+
name: d.value,
|
|
68
71
|
specValueList: []
|
|
69
72
|
};
|
|
70
|
-
|
|
73
|
+
u.value.push(f);
|
|
71
74
|
}
|
|
72
75
|
const p = /* @__PURE__ */ new Map();
|
|
73
|
-
|
|
76
|
+
u.value = u.value.filter(
|
|
74
77
|
(f) => !p.has(f.id) && p.set(f.id, f)
|
|
75
|
-
), K(
|
|
78
|
+
), K(t.specValueId);
|
|
76
79
|
});
|
|
77
80
|
});
|
|
78
81
|
})));
|
|
79
82
|
function K(e) {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
+
u.value.forEach((l) => {
|
|
84
|
+
_.value = new Y({ specId: l.id }), _.value.useValues().then((t) => {
|
|
85
|
+
t.forEach((n) => {
|
|
83
86
|
if (n.key === e) {
|
|
84
87
|
let p = {
|
|
85
88
|
id: e,
|
|
@@ -87,75 +90,75 @@ const pe = { key: 0 }, ce = {
|
|
|
87
90
|
};
|
|
88
91
|
l.specValueList.push(p);
|
|
89
92
|
}
|
|
90
|
-
const
|
|
93
|
+
const d = /* @__PURE__ */ new Map();
|
|
91
94
|
l.specValueList = l.specValueList.filter(
|
|
92
|
-
(p) => !
|
|
95
|
+
(p) => !d.has(p.id) && d.set(p.id, p)
|
|
93
96
|
);
|
|
94
97
|
});
|
|
95
98
|
});
|
|
96
99
|
});
|
|
97
100
|
}
|
|
98
101
|
function Q(e) {
|
|
99
|
-
|
|
102
|
+
u.value.splice(e, 1);
|
|
100
103
|
}
|
|
101
104
|
function W(e, l) {
|
|
102
|
-
|
|
105
|
+
u.value[e].specValueList.splice(l, 1);
|
|
103
106
|
}
|
|
104
107
|
function X() {
|
|
105
|
-
|
|
108
|
+
h.value = new ne({ shopId: v.form.shopId }), h.value.useValues().then((e) => {
|
|
106
109
|
e.forEach((l) => {
|
|
107
|
-
Array.isArray(
|
|
108
|
-
l.key ===
|
|
110
|
+
Array.isArray(u.value) && u.value.length > 0 && u.value.forEach((t) => {
|
|
111
|
+
l.key === t.id && (l.disabled = !0);
|
|
109
112
|
});
|
|
110
113
|
});
|
|
111
114
|
});
|
|
112
115
|
}
|
|
113
116
|
function Z(e) {
|
|
114
|
-
let l =
|
|
117
|
+
let l = h.value.values.filter((n) => n.key === e), t = {
|
|
115
118
|
id: l[0].key,
|
|
116
119
|
name: l[0].value,
|
|
117
120
|
specValueList: []
|
|
118
121
|
};
|
|
119
|
-
|
|
122
|
+
u.value.push(t), C.value = "";
|
|
120
123
|
}
|
|
121
124
|
function z(e) {
|
|
122
|
-
|
|
123
|
-
specId:
|
|
124
|
-
}),
|
|
125
|
-
l.map((
|
|
126
|
-
Array.isArray(
|
|
127
|
-
|
|
125
|
+
_.value = new Y({
|
|
126
|
+
specId: u.value[e].id
|
|
127
|
+
}), _.value.useValues().then((l) => {
|
|
128
|
+
l.map((t) => {
|
|
129
|
+
Array.isArray(u.value[e].specValueList) && u.value[e].specValueList.length > 0 && u.value[e].specValueList.forEach((n) => {
|
|
130
|
+
t.key === n.id && (t.disabled = !0);
|
|
128
131
|
});
|
|
129
132
|
});
|
|
130
133
|
});
|
|
131
134
|
}
|
|
132
135
|
function x(e, l) {
|
|
133
|
-
var
|
|
134
|
-
let
|
|
135
|
-
id:
|
|
136
|
-
name:
|
|
136
|
+
var d, p;
|
|
137
|
+
let t = _.value.values.filter((f) => f.key === e), n = {
|
|
138
|
+
id: t[0].key,
|
|
139
|
+
name: t[0].value
|
|
137
140
|
};
|
|
138
|
-
(p = (
|
|
141
|
+
(p = (d = u.value[l]) == null ? void 0 : d.specValueList) == null || p.push(n), u.value[l].specValueId = "";
|
|
139
142
|
}
|
|
140
143
|
function ee(e) {
|
|
141
|
-
|
|
144
|
+
L("getFormData", e);
|
|
142
145
|
}
|
|
143
146
|
return (e, l) => {
|
|
144
|
-
const
|
|
145
|
-
return m(), g(
|
|
146
|
-
v.specType == M(
|
|
147
|
+
const t = i("el-input-number"), n = i("el-form-item"), d = i("el-col"), p = i("el-row"), f = i("Delete"), le = i("el-icon"), oe = i("el-tag"), R = i("el-button"), N = i("el-option"), j = i("el-select"), A = i("el-popover"), B = i("el-tab-pane"), G = i("el-tabs");
|
|
148
|
+
return m(), g(b, null, [
|
|
149
|
+
v.specType == M(D).SPEC_TYPE.UNIFIED_SPEC ? (m(), g("div", pe, [
|
|
147
150
|
o(p, null, {
|
|
148
151
|
default: a(() => [
|
|
149
|
-
o(
|
|
152
|
+
o(d, { span: 6 }, {
|
|
150
153
|
default: a(() => [
|
|
151
154
|
o(n, {
|
|
152
155
|
label: e.$t("goodsSpu.salePrice"),
|
|
153
156
|
prop: "salePrice"
|
|
154
157
|
}, {
|
|
155
158
|
default: a(() => [
|
|
156
|
-
o(
|
|
157
|
-
modelValue:
|
|
158
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
159
|
+
o(t, {
|
|
160
|
+
modelValue: r.value.salePrice,
|
|
161
|
+
"onUpdate:modelValue": l[0] || (l[0] = (s) => r.value.salePrice = s),
|
|
159
162
|
precision: 2,
|
|
160
163
|
step: 0,
|
|
161
164
|
min: 0.01,
|
|
@@ -169,16 +172,62 @@ const pe = { key: 0 }, ce = {
|
|
|
169
172
|
]),
|
|
170
173
|
_: 1
|
|
171
174
|
}),
|
|
172
|
-
o(
|
|
175
|
+
o(d, { span: 6 }, {
|
|
176
|
+
default: a(() => [
|
|
177
|
+
o(n, {
|
|
178
|
+
label: e.$t("goodsSpu.salePriceV2"),
|
|
179
|
+
prop: "salePriceV2"
|
|
180
|
+
}, {
|
|
181
|
+
default: a(() => [
|
|
182
|
+
o(t, {
|
|
183
|
+
modelValue: r.value.salePriceV2,
|
|
184
|
+
"onUpdate:modelValue": l[1] || (l[1] = (s) => r.value.salePriceV2 = s),
|
|
185
|
+
precision: 2,
|
|
186
|
+
step: 0,
|
|
187
|
+
min: 0.01,
|
|
188
|
+
placeholder: e.$t("goodsSpu.salePriceV2Required"),
|
|
189
|
+
class: "w-full",
|
|
190
|
+
controls: !1
|
|
191
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
192
|
+
]),
|
|
193
|
+
_: 1
|
|
194
|
+
}, 8, ["label"])
|
|
195
|
+
]),
|
|
196
|
+
_: 1
|
|
197
|
+
}),
|
|
198
|
+
o(d, { span: 6 }, {
|
|
199
|
+
default: a(() => [
|
|
200
|
+
o(n, {
|
|
201
|
+
label: e.$t("goodsSpu.salePriceV3"),
|
|
202
|
+
prop: "salePriceV3"
|
|
203
|
+
}, {
|
|
204
|
+
default: a(() => [
|
|
205
|
+
o(t, {
|
|
206
|
+
modelValue: r.value.salePriceV3,
|
|
207
|
+
"onUpdate:modelValue": l[2] || (l[2] = (s) => r.value.salePriceV3 = s),
|
|
208
|
+
precision: 2,
|
|
209
|
+
step: 0,
|
|
210
|
+
min: 0.01,
|
|
211
|
+
placeholder: e.$t("goodsSpu.salePriceV3Required"),
|
|
212
|
+
class: "w-full",
|
|
213
|
+
controls: !1
|
|
214
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
215
|
+
]),
|
|
216
|
+
_: 1
|
|
217
|
+
}, 8, ["label"])
|
|
218
|
+
]),
|
|
219
|
+
_: 1
|
|
220
|
+
}),
|
|
221
|
+
o(d, { span: 6 }, {
|
|
173
222
|
default: a(() => [
|
|
174
223
|
o(n, {
|
|
175
224
|
label: e.$t("goodsSpu.marketPrice"),
|
|
176
225
|
prop: "marketPrice"
|
|
177
226
|
}, {
|
|
178
227
|
default: a(() => [
|
|
179
|
-
o(
|
|
180
|
-
modelValue:
|
|
181
|
-
"onUpdate:modelValue": l[
|
|
228
|
+
o(t, {
|
|
229
|
+
modelValue: r.value.marketPrice,
|
|
230
|
+
"onUpdate:modelValue": l[3] || (l[3] = (s) => r.value.marketPrice = s),
|
|
182
231
|
precision: 2,
|
|
183
232
|
step: 0,
|
|
184
233
|
min: 0.01,
|
|
@@ -192,16 +241,16 @@ const pe = { key: 0 }, ce = {
|
|
|
192
241
|
]),
|
|
193
242
|
_: 1
|
|
194
243
|
}),
|
|
195
|
-
o(
|
|
244
|
+
o(d, { span: 6 }, {
|
|
196
245
|
default: a(() => [
|
|
197
246
|
o(n, {
|
|
198
247
|
label: e.$t("goodsSpu.costPrice"),
|
|
199
248
|
prop: "costPrice"
|
|
200
249
|
}, {
|
|
201
250
|
default: a(() => [
|
|
202
|
-
o(
|
|
203
|
-
modelValue:
|
|
204
|
-
"onUpdate:modelValue": l[
|
|
251
|
+
o(t, {
|
|
252
|
+
modelValue: r.value.costPrice,
|
|
253
|
+
"onUpdate:modelValue": l[4] || (l[4] = (s) => r.value.costPrice = s),
|
|
205
254
|
precision: 2,
|
|
206
255
|
step: 0,
|
|
207
256
|
min: 0.01,
|
|
@@ -215,16 +264,16 @@ const pe = { key: 0 }, ce = {
|
|
|
215
264
|
]),
|
|
216
265
|
_: 1
|
|
217
266
|
}),
|
|
218
|
-
o(
|
|
267
|
+
o(d, { span: 6 }, {
|
|
219
268
|
default: a(() => [
|
|
220
269
|
o(n, {
|
|
221
270
|
label: e.$t("goodsSpu.stock"),
|
|
222
271
|
prop: "stock"
|
|
223
272
|
}, {
|
|
224
273
|
default: a(() => [
|
|
225
|
-
o(
|
|
226
|
-
modelValue:
|
|
227
|
-
"onUpdate:modelValue": l[
|
|
274
|
+
o(t, {
|
|
275
|
+
modelValue: r.value.stock,
|
|
276
|
+
"onUpdate:modelValue": l[5] || (l[5] = (s) => r.value.stock = s),
|
|
228
277
|
placeholder: e.$t("goodsSpu.stockRequired"),
|
|
229
278
|
class: "w-full",
|
|
230
279
|
controls: !1,
|
|
@@ -237,16 +286,16 @@ const pe = { key: 0 }, ce = {
|
|
|
237
286
|
]),
|
|
238
287
|
_: 1
|
|
239
288
|
}),
|
|
240
|
-
o(
|
|
289
|
+
o(d, { span: 6 }, {
|
|
241
290
|
default: a(() => [
|
|
242
291
|
o(n, {
|
|
243
292
|
label: e.$t("goodsSpu.weight"),
|
|
244
293
|
prop: "weight"
|
|
245
294
|
}, {
|
|
246
295
|
default: a(() => [
|
|
247
|
-
o(
|
|
248
|
-
modelValue:
|
|
249
|
-
"onUpdate:modelValue": l[
|
|
296
|
+
o(t, {
|
|
297
|
+
modelValue: r.value.weight,
|
|
298
|
+
"onUpdate:modelValue": l[6] || (l[6] = (s) => r.value.weight = s),
|
|
250
299
|
placeholder: e.$t("goodsSpu.weightRequired"),
|
|
251
300
|
class: "w-full",
|
|
252
301
|
controls: !1,
|
|
@@ -258,16 +307,16 @@ const pe = { key: 0 }, ce = {
|
|
|
258
307
|
]),
|
|
259
308
|
_: 1
|
|
260
309
|
}),
|
|
261
|
-
o(
|
|
310
|
+
o(d, { span: 6 }, {
|
|
262
311
|
default: a(() => [
|
|
263
312
|
o(n, {
|
|
264
313
|
label: e.$t("goodsSpu.volume"),
|
|
265
314
|
prop: "volume"
|
|
266
315
|
}, {
|
|
267
316
|
default: a(() => [
|
|
268
|
-
o(
|
|
269
|
-
modelValue:
|
|
270
|
-
"onUpdate:modelValue": l[
|
|
317
|
+
o(t, {
|
|
318
|
+
modelValue: r.value.volume,
|
|
319
|
+
"onUpdate:modelValue": l[7] || (l[7] = (s) => r.value.volume = s),
|
|
271
320
|
controls: !1,
|
|
272
321
|
placeholder: e.$t("goodsSpu.volumeRequired"),
|
|
273
322
|
class: "w-full",
|
|
@@ -282,21 +331,21 @@ const pe = { key: 0 }, ce = {
|
|
|
282
331
|
]),
|
|
283
332
|
_: 1
|
|
284
333
|
})
|
|
285
|
-
])) :
|
|
286
|
-
v.specType == M(
|
|
334
|
+
])) : I("", !0),
|
|
335
|
+
v.specType == M(D).SPEC_TYPE.MULTI_SPEC ? (m(), g("div", ce, [
|
|
287
336
|
o(G, { type: "border-card" }, {
|
|
288
337
|
default: a(() => [
|
|
289
338
|
o(B, { label: "商品规格" }, {
|
|
290
339
|
default: a(() => [
|
|
291
|
-
(m(!0), g(
|
|
340
|
+
(m(!0), g(b, null, P(u.value, (s, V) => (m(), g("div", {
|
|
292
341
|
class: "goods-spec",
|
|
293
|
-
key:
|
|
342
|
+
key: V
|
|
294
343
|
}, [
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
344
|
+
k("div", ie, [
|
|
345
|
+
k("span", null, O(s.name), 1),
|
|
346
|
+
k("span", {
|
|
298
347
|
class: "goods-delete",
|
|
299
|
-
onClick: (c) => Q(
|
|
348
|
+
onClick: (c) => Q(V)
|
|
300
349
|
}, [
|
|
301
350
|
o(le, null, {
|
|
302
351
|
default: a(() => [
|
|
@@ -304,20 +353,20 @@ const pe = { key: 0 }, ce = {
|
|
|
304
353
|
]),
|
|
305
354
|
_: 1
|
|
306
355
|
}),
|
|
307
|
-
l[
|
|
356
|
+
l[9] || (l[9] = y("移除 "))
|
|
308
357
|
], 8, me)
|
|
309
358
|
]),
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
(m(!0), g(
|
|
359
|
+
k("div", fe, [
|
|
360
|
+
k("div", ve, [
|
|
361
|
+
(m(!0), g(b, null, P(u.value[V].specValueList, (c, ae) => (m(), w(oe, {
|
|
313
362
|
key: c,
|
|
314
363
|
closable: "",
|
|
315
364
|
type: "info",
|
|
316
365
|
class: "right-dis",
|
|
317
|
-
onClose: (ge) => W(
|
|
366
|
+
onClose: (ge) => W(V, ae)
|
|
318
367
|
}, {
|
|
319
368
|
default: a(() => [
|
|
320
|
-
|
|
369
|
+
y(O(c.name), 1)
|
|
321
370
|
]),
|
|
322
371
|
_: 2
|
|
323
372
|
}, 1032, ["onClose"]))), 128))
|
|
@@ -326,26 +375,26 @@ const pe = { key: 0 }, ce = {
|
|
|
326
375
|
placement: "bottom",
|
|
327
376
|
width: 200,
|
|
328
377
|
trigger: "click",
|
|
329
|
-
onShow: (c) => z(
|
|
378
|
+
onShow: (c) => z(V)
|
|
330
379
|
}, {
|
|
331
380
|
reference: a(() => [
|
|
332
381
|
o(R, { class: "m-2" }, {
|
|
333
|
-
default: a(() => l[
|
|
334
|
-
|
|
382
|
+
default: a(() => l[10] || (l[10] = [
|
|
383
|
+
y("添加规格值")
|
|
335
384
|
])),
|
|
336
385
|
_: 1,
|
|
337
|
-
__: [
|
|
386
|
+
__: [10]
|
|
338
387
|
})
|
|
339
388
|
]),
|
|
340
389
|
default: a(() => [
|
|
341
390
|
o(j, {
|
|
342
|
-
modelValue:
|
|
343
|
-
"onUpdate:modelValue": (c) =>
|
|
391
|
+
modelValue: u.value[V].specValueId,
|
|
392
|
+
"onUpdate:modelValue": (c) => u.value[V].specValueId = c,
|
|
344
393
|
placeholder: e.$t("goodsSpu.specValueRequired"),
|
|
345
|
-
onChange: (c) => x(c,
|
|
394
|
+
onChange: (c) => x(c, V)
|
|
346
395
|
}, {
|
|
347
396
|
default: a(() => [
|
|
348
|
-
(m(!0), g(
|
|
397
|
+
(m(!0), g(b, null, P(_.value.values, (c) => (m(), w(N, {
|
|
349
398
|
key: c.key,
|
|
350
399
|
label: c.value,
|
|
351
400
|
value: c.key,
|
|
@@ -367,26 +416,26 @@ const pe = { key: 0 }, ce = {
|
|
|
367
416
|
}, {
|
|
368
417
|
reference: a(() => [
|
|
369
418
|
o(R, { class: "m-2" }, {
|
|
370
|
-
default: a(() => l[
|
|
371
|
-
|
|
419
|
+
default: a(() => l[11] || (l[11] = [
|
|
420
|
+
y("添加规格")
|
|
372
421
|
])),
|
|
373
422
|
_: 1,
|
|
374
|
-
__: [
|
|
423
|
+
__: [11]
|
|
375
424
|
})
|
|
376
425
|
]),
|
|
377
426
|
default: a(() => [
|
|
378
427
|
o(j, {
|
|
379
428
|
modelValue: C.value,
|
|
380
|
-
"onUpdate:modelValue": l[
|
|
429
|
+
"onUpdate:modelValue": l[8] || (l[8] = (s) => C.value = s),
|
|
381
430
|
placeholder: e.$t("goodsSpu.specRequired"),
|
|
382
431
|
onChange: Z
|
|
383
432
|
}, {
|
|
384
433
|
default: a(() => [
|
|
385
|
-
(m(!0), g(
|
|
386
|
-
key:
|
|
387
|
-
label:
|
|
388
|
-
value:
|
|
389
|
-
disabled:
|
|
434
|
+
(m(!0), g(b, null, P(h.value.values, (s) => (m(), w(N, {
|
|
435
|
+
key: s.key,
|
|
436
|
+
label: s.value,
|
|
437
|
+
value: s.key,
|
|
438
|
+
disabled: s.disabled
|
|
390
439
|
}, null, 8, ["label", "value", "disabled"]))), 128))
|
|
391
440
|
]),
|
|
392
441
|
_: 1
|
|
@@ -404,23 +453,23 @@ const pe = { key: 0 }, ce = {
|
|
|
404
453
|
default: a(() => [
|
|
405
454
|
o(B, { label: "规格售价与库存" }, {
|
|
406
455
|
default: a(() => [
|
|
407
|
-
|
|
456
|
+
u.value.length > 0 ? (m(), w(re, {
|
|
408
457
|
key: 0,
|
|
409
458
|
specData: U.value,
|
|
410
|
-
goodsSku:
|
|
459
|
+
goodsSku: E.value,
|
|
411
460
|
onGetFormData: ee
|
|
412
|
-
}, null, 8, ["specData", "goodsSku"])) :
|
|
461
|
+
}, null, 8, ["specData", "goodsSku"])) : I("", !0)
|
|
413
462
|
]),
|
|
414
463
|
_: 1
|
|
415
464
|
})
|
|
416
465
|
]),
|
|
417
466
|
_: 1
|
|
418
467
|
})
|
|
419
|
-
])) :
|
|
468
|
+
])) : I("", !0)
|
|
420
469
|
], 64);
|
|
421
470
|
};
|
|
422
471
|
}
|
|
423
|
-
}), he = /* @__PURE__ */ de(
|
|
472
|
+
}), he = /* @__PURE__ */ de(Ve, [["__scopeId", "data-v-e6aa4b01"]]);
|
|
424
473
|
export {
|
|
425
474
|
he as default
|
|
426
475
|
};
|