xyvcard-goods 0.0.34 → 0.0.35
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/BatchSetting-B1LcBFPD.mjs +333 -0
- package/dist/ChannelProfit-CNSIK87d.mjs +4 -0
- package/dist/ChannelProfit.vue_vue_type_script_setup_true_lang-BVTifRY8.mjs +320 -0
- package/dist/{GoodsBaseForm-BSvXc_XA.mjs → GoodsBaseForm-BZ2fZmmp.mjs} +1 -1
- package/dist/GoodsBaseForm.vue_vue_type_script_setup_true_lang-BxBTTLdA.mjs +407 -0
- package/dist/{GoodsLogisticsForm-1Bbd4Z52.mjs → GoodsLogisticsForm-BqlwdGQ1.mjs} +1 -1
- package/dist/{GoodsLogisticsForm.vue_vue_type_script_setup_true_lang-PSnPNbmT.mjs → GoodsLogisticsForm.vue_vue_type_script_setup_true_lang-DJREiSkD.mjs} +56 -57
- package/dist/GoodsProfitForm-COYRi8sx.mjs +4 -0
- package/dist/GoodsProfitForm.vue_vue_type_script_setup_true_lang-BYPWP95J.mjs +2550 -0
- package/dist/{GoodsSpecForm-Ddo1IZLZ.mjs → GoodsSpecForm-B4MtETRy.mjs} +1 -1
- package/dist/{GoodsSpecForm.vue_vue_type_script_setup_true_lang-CdWIufm4.mjs → GoodsSpecForm.vue_vue_type_script_setup_true_lang-BbVK_KNz.mjs} +130 -121
- package/dist/SingleSku-rWv9vVhv.mjs +351 -0
- package/dist/constant-sVd2JbJt.mjs +115 -0
- package/dist/edit-B1cmsJpy.mjs +70 -0
- package/dist/{edit-lfXK_dUp.mjs → edit-Br1Y569l.mjs} +8 -7
- package/dist/{edit-e5-aXV6K.mjs → edit-CET8Fr-t.mjs} +1 -1
- package/dist/{edit-pUKONjxH.mjs → edit-CagYTFKr.mjs} +1 -1
- package/dist/{edit-BgtwinSN.mjs → edit-iJGrWlSv.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BtGT564r.mjs → edit.vue_vue_type_script_setup_true_lang-D_0YivhL.mjs} +2 -2
- package/dist/{el-message-BB2-39XJ.mjs → el-message-Dj6aaz4G.mjs} +490 -373
- package/dist/{index-DyLLV1NK.mjs → index copy-kNLE7fPg.mjs } +6 -5
- package/dist/index-C61SQFSx.mjs +264 -0
- package/dist/index-CeWPdEJD.mjs +713 -0
- package/dist/{index-CkJncbVf.mjs → index-Cg6GUdSP.mjs} +3 -3
- package/dist/index-CyxnVWnL.mjs +182 -0
- package/dist/{index-CkMWas2b.mjs → index-D9s8hsVw.mjs} +3 -3
- package/dist/{index-BSzOTWcG.mjs → index-DbnKa_BJ.mjs} +1 -1
- package/dist/{index-ChQ-ZxD1.mjs → index-DoxTu4kg.mjs} +5 -4
- package/dist/{index-BpKiAhvt.mjs → index-kw0UYOIu.mjs} +3 -3
- package/dist/{index-DhS4AuWf.mjs → index-xQgC-8Gd.mjs} +1106 -1038
- package/dist/index.mjs +1 -1
- package/dist/info-CTElDVo6.mjs +376 -0
- package/dist/{info-DOKoSi7a.mjs → info-DpGJgdac.mjs} +5 -4
- package/dist/{skuForm-DVGkw6rD.mjs → skuForm-C7w9YIDe.mjs} +24 -23
- package/dist/skuForm-CPlnCToi.mjs +279 -0
- package/dist/skuTable-C-LcASbX.mjs +594 -0
- package/dist/spec-DkiGCkuM.mjs +44 -0
- package/dist/style.css +1 -1
- package/dts/xyvcard-goods/src/api/dict.d.ts +5 -4
- package/dts/xyvcard-goods/src/api/goods-sku/types.d.ts +3 -0
- package/dts/xyvcard-goods/src/api/goods-spu/index.d.ts +4 -1
- package/dts/xyvcard-goods/src/api/goods-spu/types.d.ts +35 -9
- package/dts/xyvcard-goods/src/api/types.d.ts +4 -0
- package/dts/xyvcard-goods/src/lang/goods/zh-cn.d.ts +32 -0
- package/dts/xyvcard-goods/src/router/index.d.ts +1 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/BatchSetting.vue.d.ts +35 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/ChannelProfit.vue.d.ts +22 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsProfitForm.vue.d.ts +34 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/SingleSku.vue.d.ts +23 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/index copy.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/skuForm.vue.d.ts +17 -4
- package/dts/xyvcard-goods/src/views/goods/goods-spu/skuTable.vue.d.ts +14 -1
- package/dts/xyvcard-goods/src/views/goods/goods-spu/spec.vue.d.ts +2 -0
- package/package.json +4 -3
- package/dist/GoodsBaseForm.vue_vue_type_script_setup_true_lang-rsmqHXbJ.mjs +0 -381
- package/dist/edit copy 2-Yzf_M31V.mjs +0 -59
- package/dist/edit copy-CCnzlrgL.mjs +0 -526
- package/dist/edit-Dke5sWct.mjs +0 -526
- package/dist/index-BHmGYIuc.mjs +0 -24
- package/dist/index-Da2R0n8O.mjs +0 -374
- package/dist/index-vHQhUQSO.mjs +0 -95
- package/dist/info-De_pBN6A.mjs +0 -365
- package/dist/skuForm-YXHrhyPI.mjs +0 -476
- package/dist/skuTable-DOIQ9kiV.mjs +0 -639
|
@@ -1,476 +0,0 @@
|
|
|
1
|
-
import { defineComponent as se, ref as S, computed as ue, watch as E, resolveComponent as i, createElementBlock as _, openBlock as m, Fragment as k, createCommentVNode as L, unref as O, createVNode as o, withCtx as a, renderList as P, createElementVNode as b, toDisplayString as Y, createTextVNode as y, createBlock as w } from "vue";
|
|
2
|
-
import { C as $, D as ne, S as H, a as re } from "./index-Da2R0n8O.mjs";
|
|
3
|
-
import de from "./skuTable-DOIQ9kiV.mjs";
|
|
4
|
-
import { _ as pe } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
5
|
-
const ce = { key: 0 }, ie = {
|
|
6
|
-
key: 1,
|
|
7
|
-
class: "w-full"
|
|
8
|
-
}, me = { class: "goods-title" }, fe = ["onClick"], ve = { class: "goods-content" }, Ve = { class: "goods-tag" }, _e = /* @__PURE__ */ se({
|
|
9
|
-
__name: "skuForm",
|
|
10
|
-
props: {
|
|
11
|
-
// 规格类型
|
|
12
|
-
specType: {
|
|
13
|
-
type: String,
|
|
14
|
-
default: () => ""
|
|
15
|
-
},
|
|
16
|
-
form: {
|
|
17
|
-
type: Object,
|
|
18
|
-
default: () => {
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
emits: ["getGoodsSku", "getFormData"],
|
|
23
|
-
setup(J, { emit: K }) {
|
|
24
|
-
var F, q, T, R;
|
|
25
|
-
const n = S({
|
|
26
|
-
picUrl: "",
|
|
27
|
-
salePrice: 0,
|
|
28
|
-
salePriceV2: 0,
|
|
29
|
-
salePriceV3: 0,
|
|
30
|
-
marketPrice: 0,
|
|
31
|
-
costPrice: 0,
|
|
32
|
-
weight: 0,
|
|
33
|
-
volume: 0,
|
|
34
|
-
stock: 0,
|
|
35
|
-
skuCode: ""
|
|
36
|
-
}), u = S([]), C = S(), g = S([]), h = S([]), I = S([]), v = J, D = K, U = ue(() => u.value.filter(
|
|
37
|
-
(e) => e.name && e.specValueList != null && e.specValueList.length
|
|
38
|
-
));
|
|
39
|
-
E(
|
|
40
|
-
v.form,
|
|
41
|
-
(e) => e,
|
|
42
|
-
{
|
|
43
|
-
deep: !0,
|
|
44
|
-
immediate: !0
|
|
45
|
-
}
|
|
46
|
-
), E(
|
|
47
|
-
n,
|
|
48
|
-
(e) => {
|
|
49
|
-
D("getGoodsSku", e);
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
deep: !0,
|
|
53
|
-
immediate: !0
|
|
54
|
-
}
|
|
55
|
-
), E(
|
|
56
|
-
U,
|
|
57
|
-
(e) => e,
|
|
58
|
-
{
|
|
59
|
-
deep: !0,
|
|
60
|
-
immediate: !0
|
|
61
|
-
}
|
|
62
|
-
), v.form.spuId && (v.form.specType === $.SPEC_TYPE_VALUES.UNIFIED_SPEC ? (F = v.form.skuList) != null && F.results[0] && (n.value = (q = v.form.skuList) == null ? void 0 : q.results[0]) : (I.value = (T = v.form.skuList) == null ? void 0 : T.results, (R = v.form.skuList) == null || R.results.forEach((e) => {
|
|
63
|
-
var l;
|
|
64
|
-
(l = e.specValues) == null || l.map((t) => {
|
|
65
|
-
ne.specInfoDict.useValues().then((r) => {
|
|
66
|
-
const d = r.find((f) => t.specId === f.key);
|
|
67
|
-
if (d) {
|
|
68
|
-
let f = {
|
|
69
|
-
id: t.specId,
|
|
70
|
-
name: d.value,
|
|
71
|
-
specValueList: []
|
|
72
|
-
};
|
|
73
|
-
u.value.push(f);
|
|
74
|
-
}
|
|
75
|
-
const p = /* @__PURE__ */ new Map();
|
|
76
|
-
u.value = u.value.filter(
|
|
77
|
-
(f) => !p.has(f.id) && p.set(f.id, f)
|
|
78
|
-
), Q(t.specValueId);
|
|
79
|
-
});
|
|
80
|
-
});
|
|
81
|
-
})));
|
|
82
|
-
function Q(e) {
|
|
83
|
-
u.value.forEach((l) => {
|
|
84
|
-
g.value = new H({ specId: l.id }), g.value.useValues().then((t) => {
|
|
85
|
-
t.forEach((r) => {
|
|
86
|
-
if (r.key === e) {
|
|
87
|
-
let p = {
|
|
88
|
-
id: e,
|
|
89
|
-
name: r.value
|
|
90
|
-
};
|
|
91
|
-
l.specValueList.push(p);
|
|
92
|
-
}
|
|
93
|
-
const d = /* @__PURE__ */ new Map();
|
|
94
|
-
l.specValueList = l.specValueList.filter(
|
|
95
|
-
(p) => !d.has(p.id) && d.set(p.id, p)
|
|
96
|
-
);
|
|
97
|
-
});
|
|
98
|
-
});
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
function W(e) {
|
|
102
|
-
u.value.splice(e, 1);
|
|
103
|
-
}
|
|
104
|
-
function X(e, l) {
|
|
105
|
-
u.value[e].specValueList.splice(l, 1);
|
|
106
|
-
}
|
|
107
|
-
function Z() {
|
|
108
|
-
h.value = new re({ shopId: v.form.shopId }), h.value.useValues().then((e) => {
|
|
109
|
-
e.forEach((l) => {
|
|
110
|
-
Array.isArray(u.value) && u.value.length > 0 && u.value.forEach((t) => {
|
|
111
|
-
l.key === t.id && (l.disabled = !0);
|
|
112
|
-
});
|
|
113
|
-
});
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
function z(e) {
|
|
117
|
-
let l = h.value.values.filter((r) => r.key === e), t = {
|
|
118
|
-
id: l[0].key,
|
|
119
|
-
name: l[0].value,
|
|
120
|
-
specValueList: []
|
|
121
|
-
};
|
|
122
|
-
u.value.push(t), C.value = "";
|
|
123
|
-
}
|
|
124
|
-
function x(e) {
|
|
125
|
-
g.value = new H({
|
|
126
|
-
specId: u.value[e].id
|
|
127
|
-
}), g.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((r) => {
|
|
130
|
-
t.key === r.id && (t.disabled = !0);
|
|
131
|
-
});
|
|
132
|
-
});
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
function ee(e, l) {
|
|
136
|
-
var d, p;
|
|
137
|
-
let t = g.value.values.filter((f) => f.key === e), r = {
|
|
138
|
-
id: t[0].key,
|
|
139
|
-
name: t[0].value
|
|
140
|
-
};
|
|
141
|
-
(p = (d = u.value[l]) == null ? void 0 : d.specValueList) == null || p.push(r), u.value[l].specValueId = "";
|
|
142
|
-
}
|
|
143
|
-
function le(e) {
|
|
144
|
-
D("getFormData", e);
|
|
145
|
-
}
|
|
146
|
-
return (e, l) => {
|
|
147
|
-
const t = i("el-input-number"), r = i("el-form-item"), d = i("el-col"), p = i("el-row"), f = i("Delete"), oe = i("el-icon"), ae = i("el-tag"), A = i("el-button"), N = i("el-option"), j = i("el-select"), B = i("el-popover"), G = i("el-tab-pane"), M = i("el-tabs");
|
|
148
|
-
return m(), _(k, null, [
|
|
149
|
-
v.specType == O($).SPEC_TYPE_VALUES.UNIFIED_SPEC ? (m(), _("div", ce, [
|
|
150
|
-
o(p, null, {
|
|
151
|
-
default: a(() => [
|
|
152
|
-
o(d, { span: 6 }, {
|
|
153
|
-
default: a(() => [
|
|
154
|
-
o(r, {
|
|
155
|
-
label: e.$t("goodsSpu.salePrice"),
|
|
156
|
-
prop: "salePrice"
|
|
157
|
-
}, {
|
|
158
|
-
default: a(() => [
|
|
159
|
-
o(t, {
|
|
160
|
-
modelValue: n.value.salePrice,
|
|
161
|
-
"onUpdate:modelValue": l[0] || (l[0] = (s) => n.value.salePrice = s),
|
|
162
|
-
precision: 2,
|
|
163
|
-
step: 0.01,
|
|
164
|
-
min: 0.01,
|
|
165
|
-
placeholder: e.$t("goodsSpu.salePriceRequired"),
|
|
166
|
-
class: "w-full",
|
|
167
|
-
controls: !1
|
|
168
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
169
|
-
]),
|
|
170
|
-
_: 1
|
|
171
|
-
}, 8, ["label"])
|
|
172
|
-
]),
|
|
173
|
-
_: 1
|
|
174
|
-
}),
|
|
175
|
-
o(d, { span: 6 }, {
|
|
176
|
-
default: a(() => [
|
|
177
|
-
o(r, {
|
|
178
|
-
label: e.$t("goodsSpu.salePriceV2"),
|
|
179
|
-
prop: "salePriceV2"
|
|
180
|
-
}, {
|
|
181
|
-
default: a(() => [
|
|
182
|
-
o(t, {
|
|
183
|
-
modelValue: n.value.salePriceV2,
|
|
184
|
-
"onUpdate:modelValue": l[1] || (l[1] = (s) => n.value.salePriceV2 = s),
|
|
185
|
-
precision: 2,
|
|
186
|
-
step: 0.01,
|
|
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(r, {
|
|
201
|
-
label: e.$t("goodsSpu.salePriceV3"),
|
|
202
|
-
prop: "salePriceV3"
|
|
203
|
-
}, {
|
|
204
|
-
default: a(() => [
|
|
205
|
-
o(t, {
|
|
206
|
-
modelValue: n.value.salePriceV3,
|
|
207
|
-
"onUpdate:modelValue": l[2] || (l[2] = (s) => n.value.salePriceV3 = s),
|
|
208
|
-
precision: 2,
|
|
209
|
-
step: 0.01,
|
|
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 }, {
|
|
222
|
-
default: a(() => [
|
|
223
|
-
o(r, {
|
|
224
|
-
label: e.$t("goodsSpu.marketPrice"),
|
|
225
|
-
prop: "marketPrice"
|
|
226
|
-
}, {
|
|
227
|
-
default: a(() => [
|
|
228
|
-
o(t, {
|
|
229
|
-
modelValue: n.value.marketPrice,
|
|
230
|
-
"onUpdate:modelValue": l[3] || (l[3] = (s) => n.value.marketPrice = s),
|
|
231
|
-
precision: 2,
|
|
232
|
-
step: 0.01,
|
|
233
|
-
min: n.value.costPrice || 0.01,
|
|
234
|
-
placeholder: e.$t("goodsSpu.marketPriceRequired"),
|
|
235
|
-
class: "w-full",
|
|
236
|
-
controls: !1
|
|
237
|
-
}, null, 8, ["modelValue", "min", "placeholder"])
|
|
238
|
-
]),
|
|
239
|
-
_: 1
|
|
240
|
-
}, 8, ["label"])
|
|
241
|
-
]),
|
|
242
|
-
_: 1
|
|
243
|
-
}),
|
|
244
|
-
o(d, { span: 6 }, {
|
|
245
|
-
default: a(() => [
|
|
246
|
-
o(r, {
|
|
247
|
-
label: e.$t("goodsSpu.costPrice"),
|
|
248
|
-
prop: "costPrice"
|
|
249
|
-
}, {
|
|
250
|
-
default: a(() => [
|
|
251
|
-
o(t, {
|
|
252
|
-
modelValue: n.value.costPrice,
|
|
253
|
-
"onUpdate:modelValue": l[4] || (l[4] = (s) => n.value.costPrice = s),
|
|
254
|
-
precision: 2,
|
|
255
|
-
step: 0.1,
|
|
256
|
-
min: 0.01,
|
|
257
|
-
max: n.value.marketPrice,
|
|
258
|
-
placeholder: e.$t("goodsSpu.costPriceRequired"),
|
|
259
|
-
class: "w-full",
|
|
260
|
-
controls: !1
|
|
261
|
-
}, null, 8, ["modelValue", "max", "placeholder"])
|
|
262
|
-
]),
|
|
263
|
-
_: 1
|
|
264
|
-
}, 8, ["label"])
|
|
265
|
-
]),
|
|
266
|
-
_: 1
|
|
267
|
-
}),
|
|
268
|
-
o(d, { span: 6 }, {
|
|
269
|
-
default: a(() => [
|
|
270
|
-
o(r, {
|
|
271
|
-
label: e.$t("goodsSpu.stock"),
|
|
272
|
-
prop: "stock"
|
|
273
|
-
}, {
|
|
274
|
-
default: a(() => [
|
|
275
|
-
o(t, {
|
|
276
|
-
modelValue: n.value.stock,
|
|
277
|
-
"onUpdate:modelValue": l[5] || (l[5] = (s) => n.value.stock = s),
|
|
278
|
-
placeholder: e.$t("goodsSpu.stockRequired"),
|
|
279
|
-
class: "w-full",
|
|
280
|
-
controls: !1,
|
|
281
|
-
precision: 0,
|
|
282
|
-
min: 0
|
|
283
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
284
|
-
]),
|
|
285
|
-
_: 1
|
|
286
|
-
}, 8, ["label"])
|
|
287
|
-
]),
|
|
288
|
-
_: 1
|
|
289
|
-
}),
|
|
290
|
-
o(d, { span: 6 }, {
|
|
291
|
-
default: a(() => [
|
|
292
|
-
o(r, {
|
|
293
|
-
label: e.$t("goodsSpu.weight"),
|
|
294
|
-
prop: "weight"
|
|
295
|
-
}, {
|
|
296
|
-
default: a(() => [
|
|
297
|
-
o(t, {
|
|
298
|
-
modelValue: n.value.weight,
|
|
299
|
-
"onUpdate:modelValue": l[6] || (l[6] = (s) => n.value.weight = s),
|
|
300
|
-
placeholder: e.$t("goodsSpu.weightRequired"),
|
|
301
|
-
class: "w-full",
|
|
302
|
-
controls: !1,
|
|
303
|
-
min: 0
|
|
304
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
305
|
-
]),
|
|
306
|
-
_: 1
|
|
307
|
-
}, 8, ["label"])
|
|
308
|
-
]),
|
|
309
|
-
_: 1
|
|
310
|
-
}),
|
|
311
|
-
o(d, { span: 6 }, {
|
|
312
|
-
default: a(() => [
|
|
313
|
-
o(r, {
|
|
314
|
-
label: e.$t("goodsSpu.volume"),
|
|
315
|
-
prop: "volume"
|
|
316
|
-
}, {
|
|
317
|
-
default: a(() => [
|
|
318
|
-
o(t, {
|
|
319
|
-
modelValue: n.value.volume,
|
|
320
|
-
"onUpdate:modelValue": l[7] || (l[7] = (s) => n.value.volume = s),
|
|
321
|
-
controls: !1,
|
|
322
|
-
placeholder: e.$t("goodsSpu.volumeRequired"),
|
|
323
|
-
class: "w-full",
|
|
324
|
-
min: 0
|
|
325
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
326
|
-
]),
|
|
327
|
-
_: 1
|
|
328
|
-
}, 8, ["label"])
|
|
329
|
-
]),
|
|
330
|
-
_: 1
|
|
331
|
-
})
|
|
332
|
-
]),
|
|
333
|
-
_: 1
|
|
334
|
-
})
|
|
335
|
-
])) : L("", !0),
|
|
336
|
-
v.specType == O($).SPEC_TYPE_VALUES.MULTI_SPEC ? (m(), _("div", ie, [
|
|
337
|
-
o(M, { type: "border-card" }, {
|
|
338
|
-
default: a(() => [
|
|
339
|
-
o(G, { label: "商品规格" }, {
|
|
340
|
-
default: a(() => [
|
|
341
|
-
(m(!0), _(k, null, P(u.value, (s, V) => (m(), _("div", {
|
|
342
|
-
class: "goods-spec",
|
|
343
|
-
key: V
|
|
344
|
-
}, [
|
|
345
|
-
b("div", me, [
|
|
346
|
-
b("span", null, Y(s.name), 1),
|
|
347
|
-
b("span", {
|
|
348
|
-
class: "goods-delete",
|
|
349
|
-
onClick: (c) => W(V)
|
|
350
|
-
}, [
|
|
351
|
-
o(oe, null, {
|
|
352
|
-
default: a(() => [
|
|
353
|
-
o(f)
|
|
354
|
-
]),
|
|
355
|
-
_: 1
|
|
356
|
-
}),
|
|
357
|
-
l[9] || (l[9] = y("移除 ", -1))
|
|
358
|
-
], 8, fe)
|
|
359
|
-
]),
|
|
360
|
-
b("div", ve, [
|
|
361
|
-
b("div", Ve, [
|
|
362
|
-
(m(!0), _(k, null, P(u.value[V].specValueList, (c, te) => (m(), w(ae, {
|
|
363
|
-
key: c,
|
|
364
|
-
closable: "",
|
|
365
|
-
type: "info",
|
|
366
|
-
class: "right-dis",
|
|
367
|
-
onClose: (ge) => X(V, te)
|
|
368
|
-
}, {
|
|
369
|
-
default: a(() => [
|
|
370
|
-
y(Y(c.name), 1)
|
|
371
|
-
]),
|
|
372
|
-
_: 2
|
|
373
|
-
}, 1032, ["onClose"]))), 128))
|
|
374
|
-
]),
|
|
375
|
-
o(B, {
|
|
376
|
-
placement: "bottom",
|
|
377
|
-
width: 200,
|
|
378
|
-
trigger: "click",
|
|
379
|
-
onShow: (c) => x(V)
|
|
380
|
-
}, {
|
|
381
|
-
reference: a(() => [
|
|
382
|
-
o(A, { class: "m-2" }, {
|
|
383
|
-
default: a(() => l[10] || (l[10] = [
|
|
384
|
-
y("添加规格值", -1)
|
|
385
|
-
])),
|
|
386
|
-
_: 1,
|
|
387
|
-
__: [10]
|
|
388
|
-
})
|
|
389
|
-
]),
|
|
390
|
-
default: a(() => [
|
|
391
|
-
o(j, {
|
|
392
|
-
modelValue: u.value[V].specValueId,
|
|
393
|
-
"onUpdate:modelValue": (c) => u.value[V].specValueId = c,
|
|
394
|
-
placeholder: e.$t("goodsSpu.specValueRequired"),
|
|
395
|
-
onChange: (c) => ee(c, V)
|
|
396
|
-
}, {
|
|
397
|
-
default: a(() => [
|
|
398
|
-
(m(!0), _(k, null, P(g.value.values, (c) => (m(), w(N, {
|
|
399
|
-
key: c.key,
|
|
400
|
-
label: c.value,
|
|
401
|
-
value: c.key,
|
|
402
|
-
disabled: c.disabled
|
|
403
|
-
}, null, 8, ["label", "value", "disabled"]))), 128))
|
|
404
|
-
]),
|
|
405
|
-
_: 2
|
|
406
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])
|
|
407
|
-
]),
|
|
408
|
-
_: 2
|
|
409
|
-
}, 1032, ["onShow"])
|
|
410
|
-
])
|
|
411
|
-
]))), 128)),
|
|
412
|
-
o(B, {
|
|
413
|
-
placement: "bottom",
|
|
414
|
-
width: 200,
|
|
415
|
-
trigger: "click",
|
|
416
|
-
onShow: Z
|
|
417
|
-
}, {
|
|
418
|
-
reference: a(() => [
|
|
419
|
-
o(A, { class: "m-2" }, {
|
|
420
|
-
default: a(() => l[11] || (l[11] = [
|
|
421
|
-
y("添加规格", -1)
|
|
422
|
-
])),
|
|
423
|
-
_: 1,
|
|
424
|
-
__: [11]
|
|
425
|
-
})
|
|
426
|
-
]),
|
|
427
|
-
default: a(() => [
|
|
428
|
-
o(j, {
|
|
429
|
-
modelValue: C.value,
|
|
430
|
-
"onUpdate:modelValue": l[8] || (l[8] = (s) => C.value = s),
|
|
431
|
-
placeholder: e.$t("goodsSpu.specRequired"),
|
|
432
|
-
onChange: z
|
|
433
|
-
}, {
|
|
434
|
-
default: a(() => [
|
|
435
|
-
(m(!0), _(k, null, P(h.value.values, (s) => (m(), w(N, {
|
|
436
|
-
key: s.key,
|
|
437
|
-
label: s.value,
|
|
438
|
-
value: s.key,
|
|
439
|
-
disabled: s.disabled
|
|
440
|
-
}, null, 8, ["label", "value", "disabled"]))), 128))
|
|
441
|
-
]),
|
|
442
|
-
_: 1
|
|
443
|
-
}, 8, ["modelValue", "placeholder"])
|
|
444
|
-
]),
|
|
445
|
-
_: 1
|
|
446
|
-
})
|
|
447
|
-
]),
|
|
448
|
-
_: 1
|
|
449
|
-
})
|
|
450
|
-
]),
|
|
451
|
-
_: 1
|
|
452
|
-
}),
|
|
453
|
-
o(M, { type: "border-card" }, {
|
|
454
|
-
default: a(() => [
|
|
455
|
-
o(G, { label: "规格售价与库存" }, {
|
|
456
|
-
default: a(() => [
|
|
457
|
-
u.value.length > 0 ? (m(), w(de, {
|
|
458
|
-
key: 0,
|
|
459
|
-
specData: U.value,
|
|
460
|
-
goodsSku: I.value,
|
|
461
|
-
onGetFormData: le
|
|
462
|
-
}, null, 8, ["specData", "goodsSku"])) : L("", !0)
|
|
463
|
-
]),
|
|
464
|
-
_: 1
|
|
465
|
-
})
|
|
466
|
-
]),
|
|
467
|
-
_: 1
|
|
468
|
-
})
|
|
469
|
-
])) : L("", !0)
|
|
470
|
-
], 64);
|
|
471
|
-
};
|
|
472
|
-
}
|
|
473
|
-
}), Pe = /* @__PURE__ */ pe(_e, [["__scopeId", "data-v-b3afed7b"]]);
|
|
474
|
-
export {
|
|
475
|
-
Pe as default
|
|
476
|
-
};
|