xyvcard-goods 0.0.19 → 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/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-jTDhsbYM.mjs +141 -0
- package/dist/index-r0u-27m7.mjs +141 -0
- package/dist/index.mjs +163 -149
- package/dist/info-DImlMNq0.mjs +365 -0
- package/dist/{skuForm-DyYIl6H4.mjs → skuForm-Bt3arW0s.mjs} +154 -106
- 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/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/lang/goods/zh-cn.d.ts +18 -4
- package/package.json +2 -2
- 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
|
@@ -0,0 +1,590 @@
|
|
|
1
|
+
import { defineComponent as H, ref as y, watchEffect as Q, computed as X, resolveComponent as n, openBlock as b, createElementBlock as $, Fragment as A, createVNode as e, withCtx as s, createElementVNode as h, reactive as F, unref as t, renderList as P, createBlock as N, createTextVNode as j, toDisplayString as Y, createCommentVNode as ee } from "vue";
|
|
2
|
+
import { ElMessageBox as le, ElMessage as G } from "element-plus";
|
|
3
|
+
import { fileApi as E, routerUtil as M } from "jmash-core";
|
|
4
|
+
import { useI18n as O } from "vue-i18n";
|
|
5
|
+
import { _ as oe } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
6
|
+
import { useRouter as te, useRoute as se } from "vue-router";
|
|
7
|
+
import { D as i, C as ae } from "./index-D3w33Nba.mjs";
|
|
8
|
+
import { goodsSpuApi as z } from "./index.mjs";
|
|
9
|
+
import { g as ue } from "./index-BHmGYIuc.mjs";
|
|
10
|
+
import { WangEditor as re } from "xyvcard-cms";
|
|
11
|
+
import de from "./skuForm-Bt3arW0s.mjs";
|
|
12
|
+
const ne = ["src"], pe = /* @__PURE__ */ H({
|
|
13
|
+
__name: "ImageUpload",
|
|
14
|
+
props: {
|
|
15
|
+
modelValue: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: () => ""
|
|
18
|
+
},
|
|
19
|
+
listType: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: "picture"
|
|
22
|
+
},
|
|
23
|
+
limit: {
|
|
24
|
+
type: Number,
|
|
25
|
+
default: 1e3
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
emits: ["update:modelValue"],
|
|
29
|
+
setup(I, { emit: m }) {
|
|
30
|
+
const { t: _ } = O(), g = y(E.uploadUrl()), T = y(E.authHeader()), o = y(), V = y(!1), U = y(""), k = I, f = y([]);
|
|
31
|
+
Q(() => {
|
|
32
|
+
f.value = k.modelValue.split(",").filter(Boolean);
|
|
33
|
+
});
|
|
34
|
+
const q = X(
|
|
35
|
+
() => f.value.map((r) => ({ url: E.imageUrl(r), status: "success", uid: r }))
|
|
36
|
+
), B = (r) => {
|
|
37
|
+
U.value = r.url, V.value = !0;
|
|
38
|
+
}, L = (r) => {
|
|
39
|
+
const c = r.size / 1024 / 1024 < 2;
|
|
40
|
+
["image/jpeg", "image/png", "image/gif", "image/jpg"].includes(r.type) && !c && le.confirm(_("file.imageLtRequired"), _("file.warning"), {
|
|
41
|
+
confirmButtonText: _("common.confirm"),
|
|
42
|
+
cancelButtonText: _("common.cancel"),
|
|
43
|
+
type: "warning"
|
|
44
|
+
}).then(async () => {
|
|
45
|
+
}).catch(() => (f.value.splice(-1, 1), d(), !1));
|
|
46
|
+
}, a = (r) => {
|
|
47
|
+
f.value = f.value.filter((c) => E.imageUrl(c) !== r.url), d();
|
|
48
|
+
}, l = (r) => {
|
|
49
|
+
f.value.push(r.fileSrc), d();
|
|
50
|
+
}, p = m, d = () => {
|
|
51
|
+
p("update:modelValue", f.value.join(","));
|
|
52
|
+
};
|
|
53
|
+
return (r, c) => {
|
|
54
|
+
const R = n("Plus"), w = n("el-icon"), S = n("el-upload"), C = n("el-dialog");
|
|
55
|
+
return b(), $(A, null, [
|
|
56
|
+
e(S, {
|
|
57
|
+
ref_key: "uploadImageRef",
|
|
58
|
+
ref: o,
|
|
59
|
+
"file-list": q.value,
|
|
60
|
+
"onUpdate:fileList": c[0] || (c[0] = (v) => q.value = v),
|
|
61
|
+
action: g.value,
|
|
62
|
+
headers: T.value,
|
|
63
|
+
limit: I.limit,
|
|
64
|
+
"list-type": I.listType,
|
|
65
|
+
"on-preview": B,
|
|
66
|
+
"before-upload": L,
|
|
67
|
+
"on-success": l,
|
|
68
|
+
"on-remove": a
|
|
69
|
+
}, {
|
|
70
|
+
default: s(() => [
|
|
71
|
+
e(w, null, {
|
|
72
|
+
default: s(() => [
|
|
73
|
+
e(R)
|
|
74
|
+
]),
|
|
75
|
+
_: 1
|
|
76
|
+
})
|
|
77
|
+
]),
|
|
78
|
+
_: 1
|
|
79
|
+
}, 8, ["file-list", "action", "headers", "limit", "list-type"]),
|
|
80
|
+
e(C, {
|
|
81
|
+
modelValue: V.value,
|
|
82
|
+
"onUpdate:modelValue": c[1] || (c[1] = (v) => V.value = v),
|
|
83
|
+
fullscreen: !0
|
|
84
|
+
}, {
|
|
85
|
+
default: s(() => [
|
|
86
|
+
h("img", {
|
|
87
|
+
src: U.value,
|
|
88
|
+
alt: ""
|
|
89
|
+
}, null, 8, ne)
|
|
90
|
+
]),
|
|
91
|
+
_: 1
|
|
92
|
+
}, 8, ["modelValue"])
|
|
93
|
+
], 64);
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
}), ie = /* @__PURE__ */ oe(pe, [["__scopeId", "data-v-f10f6f7e"]]), me = { class: "app-container" }, ce = { class: "search-container" }, ge = { class: "image-card" }, ke = /* @__PURE__ */ H({
|
|
97
|
+
__name: "edit",
|
|
98
|
+
setup(I) {
|
|
99
|
+
const { t: m } = O();
|
|
100
|
+
i.brandListBizDict.useValues(), console.log(i.brandListBizDict.values, "=> brandListBizDict");
|
|
101
|
+
const _ = te(), g = se(), T = y();
|
|
102
|
+
i.shopInfoBizDict.useValues(), i.goodsCategoryListBizLayDict.useValues(), i.labelListBizDict.useValues(), console.log(
|
|
103
|
+
i.goodsCategoryListBizLayDict.values,
|
|
104
|
+
"=>goodsCategoryListBizLayDict "
|
|
105
|
+
);
|
|
106
|
+
let o = F({
|
|
107
|
+
requestId: Math.random() * 10 + "",
|
|
108
|
+
updateMask: "labelIds,brandId,spuName,categoryIds,spuCode,freightType,freightAmount,picUrls,shelf,saleNum,sellPoint,specType,description",
|
|
109
|
+
skuSpecValues: [],
|
|
110
|
+
freightType: i.freightTypeEnum.values[0].key,
|
|
111
|
+
freightAmount: 0,
|
|
112
|
+
shelf: i.shelfDict.values[0].key,
|
|
113
|
+
specType: i.specTypeEnum.values[0].key
|
|
114
|
+
});
|
|
115
|
+
const V = (a, l, p) => {
|
|
116
|
+
var r;
|
|
117
|
+
const d = (r = o.picUrls) == null ? void 0 : r.split(",").filter(Boolean);
|
|
118
|
+
if (d != null && d.length) {
|
|
119
|
+
if ((d == null ? void 0 : d.length) < 3)
|
|
120
|
+
return p(new Error(m("goodsSpu.imageListsError")));
|
|
121
|
+
p();
|
|
122
|
+
} else return p(new Error(m("goodsSpu.picUrlsRequired")));
|
|
123
|
+
}, U = F({
|
|
124
|
+
brandId: [
|
|
125
|
+
{
|
|
126
|
+
required: !0,
|
|
127
|
+
message: m("goodsSpu.brandIdRequired"),
|
|
128
|
+
trigger: "change"
|
|
129
|
+
}
|
|
130
|
+
],
|
|
131
|
+
spuName: [
|
|
132
|
+
{
|
|
133
|
+
required: !0,
|
|
134
|
+
message: m("goodsSpu.spuNameRequired"),
|
|
135
|
+
trigger: "blur"
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
categoryIds: [
|
|
139
|
+
{
|
|
140
|
+
required: !0,
|
|
141
|
+
message: m("goodsSpu.categoryIdRequired"),
|
|
142
|
+
trigger: "change"
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
spuCode: [
|
|
146
|
+
{
|
|
147
|
+
required: !0,
|
|
148
|
+
message: m("goodsSpu.spuCodeRequired"),
|
|
149
|
+
trigger: "change"
|
|
150
|
+
}
|
|
151
|
+
],
|
|
152
|
+
freightType: [
|
|
153
|
+
{
|
|
154
|
+
required: !0,
|
|
155
|
+
message: m("goodsSpu.freightTypeRequired"),
|
|
156
|
+
trigger: "change"
|
|
157
|
+
}
|
|
158
|
+
],
|
|
159
|
+
freightAmount: [
|
|
160
|
+
{
|
|
161
|
+
required: !0,
|
|
162
|
+
message: m("goodsSpu.freightAmountRequired"),
|
|
163
|
+
trigger: "blur"
|
|
164
|
+
}
|
|
165
|
+
],
|
|
166
|
+
picUrls: [
|
|
167
|
+
{
|
|
168
|
+
validator: V,
|
|
169
|
+
trigger: "change"
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
shelf: [
|
|
173
|
+
{
|
|
174
|
+
required: !0,
|
|
175
|
+
message: m("goodsSpu.shelfRequired"),
|
|
176
|
+
trigger: "change"
|
|
177
|
+
}
|
|
178
|
+
],
|
|
179
|
+
specType: [
|
|
180
|
+
{
|
|
181
|
+
required: !0,
|
|
182
|
+
message: m("goodsSpu.specTypeRequired"),
|
|
183
|
+
trigger: "change"
|
|
184
|
+
}
|
|
185
|
+
]
|
|
186
|
+
}), k = y(!1);
|
|
187
|
+
function f(a) {
|
|
188
|
+
o.skuSpecValues.push(a), o.skuSpecValues = o.skuSpecValues.slice(-1);
|
|
189
|
+
}
|
|
190
|
+
function q(a) {
|
|
191
|
+
a.forEach((l) => {
|
|
192
|
+
var p;
|
|
193
|
+
o.specId = (p = l.specValues) == null ? void 0 : p.map((d) => d.specId), o.skuSpecValues.push(l);
|
|
194
|
+
}), o.skuSpecValues = o.skuSpecValues.slice(-a.length);
|
|
195
|
+
}
|
|
196
|
+
g.query.spuId && z.findById({ spuId: g.query.spuId }).then(({ data: a }) => {
|
|
197
|
+
Object.assign(o, a), k.value = !0, ue.findById({ spuId: g.query.spuId }).then(({ data: l }) => {
|
|
198
|
+
o.ensureIds = l.ensures;
|
|
199
|
+
});
|
|
200
|
+
});
|
|
201
|
+
const B = async () => {
|
|
202
|
+
var a;
|
|
203
|
+
await ((a = T.value) == null ? void 0 : a.validate((l) => {
|
|
204
|
+
l && (g.query.spuId ? z.update(o).then((p) => {
|
|
205
|
+
p.status === 200 && (G({
|
|
206
|
+
message: m("common.submitSuccess"),
|
|
207
|
+
type: "success"
|
|
208
|
+
}), M.closeTagView(g.fullPath, _, !1));
|
|
209
|
+
}) : z.create(o).then((p) => {
|
|
210
|
+
p.status === 200 && (G({
|
|
211
|
+
message: m("common.submitSuccess"),
|
|
212
|
+
type: "success"
|
|
213
|
+
}), M.closeTagView(g.fullPath, _, !1));
|
|
214
|
+
}));
|
|
215
|
+
}));
|
|
216
|
+
};
|
|
217
|
+
function L(a) {
|
|
218
|
+
a === "FREIGHT_FREE" && (o.freightAmount = 0);
|
|
219
|
+
}
|
|
220
|
+
return (a, l) => {
|
|
221
|
+
const p = n("el-input"), d = n("el-form-item"), r = n("el-col"), c = n("el-option"), R = n("el-select"), w = n("el-tree-select"), S = n("jmash-enum-radio"), C = n("el-input-number"), v = ie, x = n("jmash-dict-checkbox"), W = n("el-checkbox"), Z = n("el-checkbox-group"), D = n("el-row"), J = n("el-button"), K = n("el-form");
|
|
222
|
+
return b(), $("div", me, [
|
|
223
|
+
h("div", ce, [
|
|
224
|
+
e(K, {
|
|
225
|
+
ref_key: "goodsSpuFormRef",
|
|
226
|
+
ref: T,
|
|
227
|
+
model: t(o),
|
|
228
|
+
"label-width": "120px",
|
|
229
|
+
rules: U
|
|
230
|
+
}, {
|
|
231
|
+
default: s(() => [
|
|
232
|
+
l[16] || (l[16] = h("div", { class: "title-content" }, "基本信息", -1)),
|
|
233
|
+
e(D, null, {
|
|
234
|
+
default: s(() => [
|
|
235
|
+
e(r, { span: 12 }, {
|
|
236
|
+
default: s(() => [
|
|
237
|
+
e(d, {
|
|
238
|
+
label: a.$t("goodsSpu.spuName"),
|
|
239
|
+
prop: "spuName"
|
|
240
|
+
}, {
|
|
241
|
+
default: s(() => [
|
|
242
|
+
e(p, {
|
|
243
|
+
modelValue: t(o).spuName,
|
|
244
|
+
"onUpdate:modelValue": l[0] || (l[0] = (u) => t(o).spuName = u),
|
|
245
|
+
placeholder: a.$t("goodsSpu.spuNameRequired"),
|
|
246
|
+
maxlength: "60",
|
|
247
|
+
"show-word-limit": "",
|
|
248
|
+
clearable: ""
|
|
249
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
250
|
+
]),
|
|
251
|
+
_: 1
|
|
252
|
+
}, 8, ["label"])
|
|
253
|
+
]),
|
|
254
|
+
_: 1
|
|
255
|
+
}),
|
|
256
|
+
e(r, { span: 12 }, {
|
|
257
|
+
default: s(() => [
|
|
258
|
+
e(d, {
|
|
259
|
+
label: a.$t("goodsSpu.spuCode"),
|
|
260
|
+
prop: "spuCode"
|
|
261
|
+
}, {
|
|
262
|
+
default: s(() => [
|
|
263
|
+
e(p, {
|
|
264
|
+
modelValue: t(o).spuCode,
|
|
265
|
+
"onUpdate:modelValue": l[1] || (l[1] = (u) => t(o).spuCode = u),
|
|
266
|
+
placeholder: a.$t("goodsSpu.spuCodeRequired"),
|
|
267
|
+
maxlength: "15",
|
|
268
|
+
"show-word-limit": "",
|
|
269
|
+
clearable: ""
|
|
270
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
271
|
+
]),
|
|
272
|
+
_: 1
|
|
273
|
+
}, 8, ["label"])
|
|
274
|
+
]),
|
|
275
|
+
_: 1
|
|
276
|
+
}),
|
|
277
|
+
e(r, { span: 12 }, {
|
|
278
|
+
default: s(() => [
|
|
279
|
+
e(d, {
|
|
280
|
+
label: a.$t("goodsSpu.brandId"),
|
|
281
|
+
prop: "brandId"
|
|
282
|
+
}, {
|
|
283
|
+
default: s(() => [
|
|
284
|
+
e(R, {
|
|
285
|
+
modelValue: t(o).brandId,
|
|
286
|
+
"onUpdate:modelValue": l[2] || (l[2] = (u) => t(o).brandId = u),
|
|
287
|
+
data: t(i).brandListBizDict.values,
|
|
288
|
+
placeholder: a.$t("goodsSpu.brandIdRequired"),
|
|
289
|
+
class: "w-full"
|
|
290
|
+
}, {
|
|
291
|
+
default: s(() => [
|
|
292
|
+
(b(!0), $(A, null, P(t(i).brandListBizDict.values, (u) => (b(), N(c, {
|
|
293
|
+
key: u.key,
|
|
294
|
+
label: u.value,
|
|
295
|
+
value: u.key
|
|
296
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
297
|
+
]),
|
|
298
|
+
_: 1
|
|
299
|
+
}, 8, ["modelValue", "data", "placeholder"])
|
|
300
|
+
]),
|
|
301
|
+
_: 1
|
|
302
|
+
}, 8, ["label"])
|
|
303
|
+
]),
|
|
304
|
+
_: 1
|
|
305
|
+
}),
|
|
306
|
+
e(r, { span: 12 }, {
|
|
307
|
+
default: s(() => [
|
|
308
|
+
e(d, {
|
|
309
|
+
label: a.$t("goodsSpu.categoryId"),
|
|
310
|
+
prop: "categoryIds"
|
|
311
|
+
}, {
|
|
312
|
+
default: s(() => [
|
|
313
|
+
e(w, {
|
|
314
|
+
modelValue: t(o).categoryIds,
|
|
315
|
+
"onUpdate:modelValue": l[3] || (l[3] = (u) => t(o).categoryIds = u),
|
|
316
|
+
data: t(i).goodsCategoryListBizLayDict.values,
|
|
317
|
+
multiple: "",
|
|
318
|
+
"render-after-expand": !1,
|
|
319
|
+
"show-checkbox": "",
|
|
320
|
+
placeholder: a.$t("goodsSpu.categoryIdRequired"),
|
|
321
|
+
class: "w-full"
|
|
322
|
+
}, null, 8, ["modelValue", "data", "placeholder"])
|
|
323
|
+
]),
|
|
324
|
+
_: 1
|
|
325
|
+
}, 8, ["label"])
|
|
326
|
+
]),
|
|
327
|
+
_: 1
|
|
328
|
+
}),
|
|
329
|
+
e(r, { span: 12 }, {
|
|
330
|
+
default: s(() => [
|
|
331
|
+
e(d, {
|
|
332
|
+
label: a.$t("goodsSpu.freightType"),
|
|
333
|
+
prop: "freightType"
|
|
334
|
+
}, {
|
|
335
|
+
default: s(() => [
|
|
336
|
+
e(S, {
|
|
337
|
+
modelValue: t(o).freightType,
|
|
338
|
+
"onUpdate:modelValue": l[4] || (l[4] = (u) => t(o).freightType = u),
|
|
339
|
+
data: t(i).freightTypeEnum.values,
|
|
340
|
+
onChange: L
|
|
341
|
+
}, null, 8, ["modelValue", "data"])
|
|
342
|
+
]),
|
|
343
|
+
_: 1
|
|
344
|
+
}, 8, ["label"])
|
|
345
|
+
]),
|
|
346
|
+
_: 1
|
|
347
|
+
}),
|
|
348
|
+
e(r, { span: 12 }, {
|
|
349
|
+
default: s(() => [
|
|
350
|
+
e(d, {
|
|
351
|
+
label: a.$t("goodsSpu.freightAmount"),
|
|
352
|
+
prop: "freightAmount"
|
|
353
|
+
}, {
|
|
354
|
+
default: s(() => [
|
|
355
|
+
e(C, {
|
|
356
|
+
modelValue: t(o).freightAmount,
|
|
357
|
+
"onUpdate:modelValue": l[5] || (l[5] = (u) => t(o).freightAmount = u),
|
|
358
|
+
readonly: t(o).freightType === "FREIGHT_FREE",
|
|
359
|
+
precision: 2,
|
|
360
|
+
step: 0.1,
|
|
361
|
+
controls: !1,
|
|
362
|
+
min: 0,
|
|
363
|
+
placeholder: a.$t("goodsSpu.freightAmountRequired"),
|
|
364
|
+
class: "w-full"
|
|
365
|
+
}, null, 8, ["modelValue", "readonly", "placeholder"])
|
|
366
|
+
]),
|
|
367
|
+
_: 1
|
|
368
|
+
}, 8, ["label"])
|
|
369
|
+
]),
|
|
370
|
+
_: 1
|
|
371
|
+
}),
|
|
372
|
+
e(r, { span: 24 }, {
|
|
373
|
+
default: s(() => [
|
|
374
|
+
e(d, {
|
|
375
|
+
label: a.$t("goodsSpu.picUrls"),
|
|
376
|
+
prop: "picUrls"
|
|
377
|
+
}, {
|
|
378
|
+
default: s(() => [
|
|
379
|
+
h("div", ge, [
|
|
380
|
+
e(v, {
|
|
381
|
+
modelValue: t(o).picUrls,
|
|
382
|
+
"onUpdate:modelValue": l[6] || (l[6] = (u) => t(o).picUrls = u),
|
|
383
|
+
limit: 6,
|
|
384
|
+
"list-type": "picture-card"
|
|
385
|
+
}, null, 8, ["modelValue"]),
|
|
386
|
+
l[14] || (l[14] = h("div", { class: "red-color" }, " 推荐尺寸:100*100或同比例图片,最少上传3张 ", -1))
|
|
387
|
+
])
|
|
388
|
+
]),
|
|
389
|
+
_: 1
|
|
390
|
+
}, 8, ["label"])
|
|
391
|
+
]),
|
|
392
|
+
_: 1
|
|
393
|
+
}),
|
|
394
|
+
e(r, { span: 12 }, {
|
|
395
|
+
default: s(() => [
|
|
396
|
+
e(d, {
|
|
397
|
+
label: a.$t("goodsSpu.shelf"),
|
|
398
|
+
prop: "shelf"
|
|
399
|
+
}, {
|
|
400
|
+
default: s(() => [
|
|
401
|
+
e(S, {
|
|
402
|
+
modelValue: t(o).shelf,
|
|
403
|
+
"onUpdate:modelValue": l[7] || (l[7] = (u) => t(o).shelf = u),
|
|
404
|
+
data: t(i).shelfDict.values
|
|
405
|
+
}, null, 8, ["modelValue", "data"])
|
|
406
|
+
]),
|
|
407
|
+
_: 1
|
|
408
|
+
}, 8, ["label"])
|
|
409
|
+
]),
|
|
410
|
+
_: 1
|
|
411
|
+
}),
|
|
412
|
+
e(r, { span: 12 }, {
|
|
413
|
+
default: s(() => [
|
|
414
|
+
e(d, {
|
|
415
|
+
label: a.$t("goodsSpu.saleNum"),
|
|
416
|
+
prop: "saleNum"
|
|
417
|
+
}, {
|
|
418
|
+
default: s(() => [
|
|
419
|
+
e(C, {
|
|
420
|
+
modelValue: t(o).saleNum,
|
|
421
|
+
"onUpdate:modelValue": l[8] || (l[8] = (u) => t(o).saleNum = u),
|
|
422
|
+
placeholder: a.$t("goodsSpu.saleNumRequired"),
|
|
423
|
+
class: "w-full",
|
|
424
|
+
min: 0,
|
|
425
|
+
controls: !1,
|
|
426
|
+
precision: 0
|
|
427
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
428
|
+
]),
|
|
429
|
+
_: 1
|
|
430
|
+
}, 8, ["label"])
|
|
431
|
+
]),
|
|
432
|
+
_: 1
|
|
433
|
+
}),
|
|
434
|
+
e(r, { span: 24 }, {
|
|
435
|
+
default: s(() => [
|
|
436
|
+
e(d, {
|
|
437
|
+
label: a.$t("goodsSpu.sellPoint"),
|
|
438
|
+
prop: "sellPoint"
|
|
439
|
+
}, {
|
|
440
|
+
default: s(() => [
|
|
441
|
+
e(p, {
|
|
442
|
+
modelValue: t(o).sellPoint,
|
|
443
|
+
"onUpdate:modelValue": l[9] || (l[9] = (u) => t(o).sellPoint = u),
|
|
444
|
+
placeholder: a.$t("goodsSpu.sellPointRequired"),
|
|
445
|
+
maxlength: "250",
|
|
446
|
+
"show-word-limit": "",
|
|
447
|
+
clearable: "",
|
|
448
|
+
rows: 4,
|
|
449
|
+
type: "textarea"
|
|
450
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
451
|
+
]),
|
|
452
|
+
_: 1
|
|
453
|
+
}, 8, ["label"])
|
|
454
|
+
]),
|
|
455
|
+
_: 1
|
|
456
|
+
}),
|
|
457
|
+
e(r, { span: 24 }, {
|
|
458
|
+
default: s(() => [
|
|
459
|
+
e(d, {
|
|
460
|
+
label: a.$t("goodsSpu.ensureIds"),
|
|
461
|
+
prop: "ensureIds"
|
|
462
|
+
}, {
|
|
463
|
+
default: s(() => [
|
|
464
|
+
e(x, {
|
|
465
|
+
modelValue: t(o).ensureIds,
|
|
466
|
+
"onUpdate:modelValue": l[10] || (l[10] = (u) => t(o).ensureIds = u),
|
|
467
|
+
"type-code": t(ae).DICT_GOODS_ENSURE
|
|
468
|
+
}, null, 8, ["modelValue", "type-code"])
|
|
469
|
+
]),
|
|
470
|
+
_: 1
|
|
471
|
+
}, 8, ["label"])
|
|
472
|
+
]),
|
|
473
|
+
_: 1
|
|
474
|
+
}),
|
|
475
|
+
e(r, { span: 24 }, {
|
|
476
|
+
default: s(() => [
|
|
477
|
+
e(d, {
|
|
478
|
+
label: a.$t("goodsSpu.labelIds"),
|
|
479
|
+
prop: "labelIds"
|
|
480
|
+
}, {
|
|
481
|
+
default: s(() => [
|
|
482
|
+
e(Z, {
|
|
483
|
+
modelValue: t(o).labelIds,
|
|
484
|
+
"onUpdate:modelValue": l[11] || (l[11] = (u) => t(o).labelIds = u),
|
|
485
|
+
class: "w-full"
|
|
486
|
+
}, {
|
|
487
|
+
default: s(() => [
|
|
488
|
+
(b(!0), $(A, null, P(t(i).labelListBizDict.values, (u) => (b(), N(W, {
|
|
489
|
+
key: u.key,
|
|
490
|
+
label: u.key
|
|
491
|
+
}, {
|
|
492
|
+
default: s(() => [
|
|
493
|
+
j(Y(u.value), 1)
|
|
494
|
+
]),
|
|
495
|
+
_: 2
|
|
496
|
+
}, 1032, ["label"]))), 128))
|
|
497
|
+
]),
|
|
498
|
+
_: 1
|
|
499
|
+
}, 8, ["modelValue"])
|
|
500
|
+
]),
|
|
501
|
+
_: 1
|
|
502
|
+
}, 8, ["label"])
|
|
503
|
+
]),
|
|
504
|
+
_: 1
|
|
505
|
+
})
|
|
506
|
+
]),
|
|
507
|
+
_: 1
|
|
508
|
+
}),
|
|
509
|
+
l[17] || (l[17] = h("div", { class: "title-content" }, "商品规格", -1)),
|
|
510
|
+
e(D, null, {
|
|
511
|
+
default: s(() => [
|
|
512
|
+
e(r, { span: 24 }, {
|
|
513
|
+
default: s(() => [
|
|
514
|
+
e(d, {
|
|
515
|
+
label: a.$t("goodsSpu.specType"),
|
|
516
|
+
prop: "specType"
|
|
517
|
+
}, {
|
|
518
|
+
default: s(() => [
|
|
519
|
+
e(S, {
|
|
520
|
+
modelValue: t(o).specType,
|
|
521
|
+
"onUpdate:modelValue": l[12] || (l[12] = (u) => t(o).specType = u),
|
|
522
|
+
data: t(i).specTypeEnum.values
|
|
523
|
+
}, null, 8, ["modelValue", "data"])
|
|
524
|
+
]),
|
|
525
|
+
_: 1
|
|
526
|
+
}, 8, ["label"])
|
|
527
|
+
]),
|
|
528
|
+
_: 1
|
|
529
|
+
}),
|
|
530
|
+
!t(g).query.spuId || k.value ? (b(), N(de, {
|
|
531
|
+
key: 0,
|
|
532
|
+
"spec-type": t(o).specType,
|
|
533
|
+
form: t(o),
|
|
534
|
+
onGetGoodsSku: f,
|
|
535
|
+
onGetFormData: q
|
|
536
|
+
}, null, 8, ["spec-type", "form"])) : ee("", !0)
|
|
537
|
+
]),
|
|
538
|
+
_: 1
|
|
539
|
+
}),
|
|
540
|
+
l[18] || (l[18] = h("div", { class: "title-content" }, "商品详情", -1)),
|
|
541
|
+
e(D, null, {
|
|
542
|
+
default: s(() => [
|
|
543
|
+
e(r, { span: 24 }, {
|
|
544
|
+
default: s(() => [
|
|
545
|
+
e(d, {
|
|
546
|
+
label: a.$t("goodsSpu.description"),
|
|
547
|
+
prop: "description"
|
|
548
|
+
}, {
|
|
549
|
+
default: s(() => [
|
|
550
|
+
e(t(re), {
|
|
551
|
+
modelValue: t(o).description,
|
|
552
|
+
"onUpdate:modelValue": l[13] || (l[13] = (u) => t(o).description = u),
|
|
553
|
+
style: { width: "100%" }
|
|
554
|
+
}, null, 8, ["modelValue"])
|
|
555
|
+
]),
|
|
556
|
+
_: 1
|
|
557
|
+
}, 8, ["label"])
|
|
558
|
+
]),
|
|
559
|
+
_: 1
|
|
560
|
+
}),
|
|
561
|
+
e(d, null, {
|
|
562
|
+
default: s(() => [
|
|
563
|
+
e(J, {
|
|
564
|
+
type: "primary",
|
|
565
|
+
onClick: B
|
|
566
|
+
}, {
|
|
567
|
+
default: s(() => l[15] || (l[15] = [
|
|
568
|
+
j("保存")
|
|
569
|
+
])),
|
|
570
|
+
_: 1,
|
|
571
|
+
__: [15]
|
|
572
|
+
})
|
|
573
|
+
]),
|
|
574
|
+
_: 1
|
|
575
|
+
})
|
|
576
|
+
]),
|
|
577
|
+
_: 1
|
|
578
|
+
})
|
|
579
|
+
]),
|
|
580
|
+
_: 1,
|
|
581
|
+
__: [16, 17, 18]
|
|
582
|
+
}, 8, ["model", "rules"])
|
|
583
|
+
])
|
|
584
|
+
]);
|
|
585
|
+
};
|
|
586
|
+
}
|
|
587
|
+
});
|
|
588
|
+
export {
|
|
589
|
+
ke as default
|
|
590
|
+
};
|