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