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