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