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