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