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