xyvcard-goods 0.0.34 → 0.0.35
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/BatchSetting-B1LcBFPD.mjs +333 -0
- package/dist/ChannelProfit-CNSIK87d.mjs +4 -0
- package/dist/ChannelProfit.vue_vue_type_script_setup_true_lang-BVTifRY8.mjs +320 -0
- package/dist/{GoodsBaseForm-BSvXc_XA.mjs → GoodsBaseForm-BZ2fZmmp.mjs} +1 -1
- package/dist/GoodsBaseForm.vue_vue_type_script_setup_true_lang-BxBTTLdA.mjs +407 -0
- package/dist/{GoodsLogisticsForm-1Bbd4Z52.mjs → GoodsLogisticsForm-BqlwdGQ1.mjs} +1 -1
- package/dist/{GoodsLogisticsForm.vue_vue_type_script_setup_true_lang-PSnPNbmT.mjs → GoodsLogisticsForm.vue_vue_type_script_setup_true_lang-DJREiSkD.mjs} +56 -57
- package/dist/GoodsProfitForm-COYRi8sx.mjs +4 -0
- package/dist/GoodsProfitForm.vue_vue_type_script_setup_true_lang-BYPWP95J.mjs +2550 -0
- package/dist/{GoodsSpecForm-Ddo1IZLZ.mjs → GoodsSpecForm-B4MtETRy.mjs} +1 -1
- package/dist/{GoodsSpecForm.vue_vue_type_script_setup_true_lang-CdWIufm4.mjs → GoodsSpecForm.vue_vue_type_script_setup_true_lang-BbVK_KNz.mjs} +130 -121
- package/dist/SingleSku-rWv9vVhv.mjs +351 -0
- package/dist/constant-sVd2JbJt.mjs +115 -0
- package/dist/edit-B1cmsJpy.mjs +70 -0
- package/dist/{edit-lfXK_dUp.mjs → edit-Br1Y569l.mjs} +8 -7
- package/dist/{edit-e5-aXV6K.mjs → edit-CET8Fr-t.mjs} +1 -1
- package/dist/{edit-pUKONjxH.mjs → edit-CagYTFKr.mjs} +1 -1
- package/dist/{edit-BgtwinSN.mjs → edit-iJGrWlSv.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BtGT564r.mjs → edit.vue_vue_type_script_setup_true_lang-D_0YivhL.mjs} +2 -2
- package/dist/{el-message-BB2-39XJ.mjs → el-message-Dj6aaz4G.mjs} +490 -373
- package/dist/{index-DyLLV1NK.mjs → index copy-kNLE7fPg.mjs } +6 -5
- package/dist/index-C61SQFSx.mjs +264 -0
- package/dist/index-CeWPdEJD.mjs +713 -0
- package/dist/{index-CkJncbVf.mjs → index-Cg6GUdSP.mjs} +3 -3
- package/dist/index-CyxnVWnL.mjs +182 -0
- package/dist/{index-CkMWas2b.mjs → index-D9s8hsVw.mjs} +3 -3
- package/dist/{index-BSzOTWcG.mjs → index-DbnKa_BJ.mjs} +1 -1
- package/dist/{index-ChQ-ZxD1.mjs → index-DoxTu4kg.mjs} +5 -4
- package/dist/{index-BpKiAhvt.mjs → index-kw0UYOIu.mjs} +3 -3
- package/dist/{index-DhS4AuWf.mjs → index-xQgC-8Gd.mjs} +1106 -1038
- package/dist/index.mjs +1 -1
- package/dist/info-CTElDVo6.mjs +376 -0
- package/dist/{info-DOKoSi7a.mjs → info-DpGJgdac.mjs} +5 -4
- package/dist/{skuForm-DVGkw6rD.mjs → skuForm-C7w9YIDe.mjs} +24 -23
- package/dist/skuForm-CPlnCToi.mjs +279 -0
- package/dist/skuTable-C-LcASbX.mjs +594 -0
- package/dist/spec-DkiGCkuM.mjs +44 -0
- package/dist/style.css +1 -1
- package/dts/xyvcard-goods/src/api/dict.d.ts +5 -4
- package/dts/xyvcard-goods/src/api/goods-sku/types.d.ts +3 -0
- package/dts/xyvcard-goods/src/api/goods-spu/index.d.ts +4 -1
- package/dts/xyvcard-goods/src/api/goods-spu/types.d.ts +35 -9
- package/dts/xyvcard-goods/src/api/types.d.ts +4 -0
- package/dts/xyvcard-goods/src/lang/goods/zh-cn.d.ts +32 -0
- package/dts/xyvcard-goods/src/router/index.d.ts +1 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/BatchSetting.vue.d.ts +35 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/ChannelProfit.vue.d.ts +22 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsProfitForm.vue.d.ts +34 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/SingleSku.vue.d.ts +23 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/index copy.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/skuForm.vue.d.ts +17 -4
- package/dts/xyvcard-goods/src/views/goods/goods-spu/skuTable.vue.d.ts +14 -1
- package/dts/xyvcard-goods/src/views/goods/goods-spu/spec.vue.d.ts +2 -0
- package/package.json +4 -3
- package/dist/GoodsBaseForm.vue_vue_type_script_setup_true_lang-rsmqHXbJ.mjs +0 -381
- package/dist/edit copy 2-Yzf_M31V.mjs +0 -59
- package/dist/edit copy-CCnzlrgL.mjs +0 -526
- package/dist/edit-Dke5sWct.mjs +0 -526
- package/dist/index-BHmGYIuc.mjs +0 -24
- package/dist/index-Da2R0n8O.mjs +0 -374
- package/dist/index-vHQhUQSO.mjs +0 -95
- package/dist/info-De_pBN6A.mjs +0 -365
- package/dist/skuForm-YXHrhyPI.mjs +0 -476
- package/dist/skuTable-DOIQ9kiV.mjs +0 -639
|
@@ -1,526 +0,0 @@
|
|
|
1
|
-
import { _ as J } from "./ImageUpload-Bf2jhRs5.mjs";
|
|
2
|
-
import { defineComponent as K, ref as v, reactive as T, resolveComponent as n, createElementBlock as V, openBlock as f, 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-Da2R0n8O.mjs";
|
|
8
|
-
import { a as _ } from "./index-DhS4AuWf.mjs";
|
|
9
|
-
import { g as le } from "./index-BHmGYIuc.mjs";
|
|
10
|
-
import { WangEditor as oe } from "xyvcard-cms";
|
|
11
|
-
import te from "./skuForm-YXHrhyPI.mjs";
|
|
12
|
-
const se = { class: "app-container" }, ae = { class: "search-container" }, ue = { class: "image-card" }, he = /* @__PURE__ */ K({
|
|
13
|
-
__name: "edit copy",
|
|
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({
|
|
20
|
-
requestId: Math.random() * 10 + "",
|
|
21
|
-
updateMask: "labelIds,brandId,spuName,categoryIds,spuCode,note,freightType,freightAmount,picUrls,shelf,saleNum,sellPoint,specType,description",
|
|
22
|
-
skuSpecValues: [],
|
|
23
|
-
freightType: i.freightTypeEnum.values[0].key,
|
|
24
|
-
freightAmount: 0,
|
|
25
|
-
shelf: i.shelfDict.values[0].key,
|
|
26
|
-
specType: i.specTypeEnum.values[0].key
|
|
27
|
-
});
|
|
28
|
-
const C = (u, l, p) => {
|
|
29
|
-
var r;
|
|
30
|
-
const d = (r = o.picUrls) == null ? void 0 : r.split(",").filter(Boolean);
|
|
31
|
-
if (d != null && d.length) {
|
|
32
|
-
if ((d == null ? void 0 : d.length) < 1)
|
|
33
|
-
return p(new Error(m("goodsSpu.imageListsErrors")));
|
|
34
|
-
p();
|
|
35
|
-
} else return p(new Error(m("goodsSpu.picUrlsRequired")));
|
|
36
|
-
}, N = T({
|
|
37
|
-
brandId: [
|
|
38
|
-
{
|
|
39
|
-
required: !0,
|
|
40
|
-
message: m("goodsSpu.brandIdRequired"),
|
|
41
|
-
trigger: "change"
|
|
42
|
-
}
|
|
43
|
-
],
|
|
44
|
-
spuName: [
|
|
45
|
-
{
|
|
46
|
-
required: !0,
|
|
47
|
-
message: m("goodsSpu.spuNameRequired"),
|
|
48
|
-
trigger: "blur"
|
|
49
|
-
}
|
|
50
|
-
],
|
|
51
|
-
categoryIds: [
|
|
52
|
-
{
|
|
53
|
-
required: !0,
|
|
54
|
-
message: m("goodsSpu.categoryIdRequired"),
|
|
55
|
-
trigger: "change"
|
|
56
|
-
}
|
|
57
|
-
],
|
|
58
|
-
spuCode: [
|
|
59
|
-
{
|
|
60
|
-
required: !0,
|
|
61
|
-
message: m("goodsSpu.spuCodeRequired"),
|
|
62
|
-
trigger: "change"
|
|
63
|
-
}
|
|
64
|
-
],
|
|
65
|
-
freightType: [
|
|
66
|
-
{
|
|
67
|
-
required: !0,
|
|
68
|
-
message: m("goodsSpu.freightTypeRequired"),
|
|
69
|
-
trigger: "change"
|
|
70
|
-
}
|
|
71
|
-
],
|
|
72
|
-
freightAmount: [
|
|
73
|
-
{
|
|
74
|
-
required: !0,
|
|
75
|
-
message: m("goodsSpu.freightAmountRequired"),
|
|
76
|
-
trigger: "blur"
|
|
77
|
-
}
|
|
78
|
-
],
|
|
79
|
-
picUrls: [
|
|
80
|
-
{
|
|
81
|
-
validator: C,
|
|
82
|
-
trigger: "change"
|
|
83
|
-
}
|
|
84
|
-
],
|
|
85
|
-
shelf: [
|
|
86
|
-
{
|
|
87
|
-
required: !0,
|
|
88
|
-
message: m("goodsSpu.shelfRequired"),
|
|
89
|
-
trigger: "change"
|
|
90
|
-
}
|
|
91
|
-
],
|
|
92
|
-
specType: [
|
|
93
|
-
{
|
|
94
|
-
required: !0,
|
|
95
|
-
message: m("goodsSpu.specTypeRequired"),
|
|
96
|
-
trigger: "change"
|
|
97
|
-
}
|
|
98
|
-
]
|
|
99
|
-
}), q = v(!1);
|
|
100
|
-
function D(u) {
|
|
101
|
-
o.skuSpecValues.push(u), o.skuSpecValues = o.skuSpecValues.slice(-1);
|
|
102
|
-
}
|
|
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);
|
|
108
|
-
}
|
|
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 }) => {
|
|
111
|
-
o.ensureIds = l.ensures;
|
|
112
|
-
});
|
|
113
|
-
});
|
|
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 && ($({
|
|
119
|
-
message: m("common.submitSuccess"),
|
|
120
|
-
type: "success"
|
|
121
|
-
}), E.closeTagView(g.fullPath, S, !1));
|
|
122
|
-
}) : _.create(o).then((p) => {
|
|
123
|
-
p.status === 200 && ($({
|
|
124
|
-
message: m("common.submitSuccess"),
|
|
125
|
-
type: "success"
|
|
126
|
-
}), E.closeTagView(g.fullPath, S, !1));
|
|
127
|
-
}));
|
|
128
|
-
}));
|
|
129
|
-
};
|
|
130
|
-
function F(u) {
|
|
131
|
-
u === "FREIGHT_FREE" && (o.freightAmount = 0);
|
|
132
|
-
}
|
|
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, {
|
|
138
|
-
ref_key: "goodsSpuFormRef",
|
|
139
|
-
ref: I,
|
|
140
|
-
model: t(o),
|
|
141
|
-
"label-width": "120px",
|
|
142
|
-
rules: N
|
|
143
|
-
}, {
|
|
144
|
-
default: s(() => [
|
|
145
|
-
l[17] || (l[17] = c("div", { class: "title-content" }, "基本信息", -1)),
|
|
146
|
-
e(y, null, {
|
|
147
|
-
default: s(() => [
|
|
148
|
-
e(r, { span: 12 }, {
|
|
149
|
-
default: s(() => [
|
|
150
|
-
e(d, {
|
|
151
|
-
label: u.$t("goodsSpu.spuName"),
|
|
152
|
-
prop: "spuName"
|
|
153
|
-
}, {
|
|
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"),
|
|
159
|
-
maxlength: "60",
|
|
160
|
-
"show-word-limit": "",
|
|
161
|
-
clearable: ""
|
|
162
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
163
|
-
]),
|
|
164
|
-
_: 1
|
|
165
|
-
}, 8, ["label"])
|
|
166
|
-
]),
|
|
167
|
-
_: 1
|
|
168
|
-
}),
|
|
169
|
-
e(r, { span: 12 }, {
|
|
170
|
-
default: s(() => [
|
|
171
|
-
e(d, {
|
|
172
|
-
label: u.$t("goodsSpu.spuCode"),
|
|
173
|
-
prop: "spuCode"
|
|
174
|
-
}, {
|
|
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"),
|
|
180
|
-
maxlength: "15",
|
|
181
|
-
"show-word-limit": "",
|
|
182
|
-
clearable: ""
|
|
183
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
184
|
-
]),
|
|
185
|
-
_: 1
|
|
186
|
-
}, 8, ["label"])
|
|
187
|
-
]),
|
|
188
|
-
_: 1
|
|
189
|
-
}),
|
|
190
|
-
e(r, { span: 12 }, {
|
|
191
|
-
default: s(() => [
|
|
192
|
-
e(d, {
|
|
193
|
-
label: u.$t("goodsSpu.brandId"),
|
|
194
|
-
prop: "brandId"
|
|
195
|
-
}, {
|
|
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"),
|
|
202
|
-
class: "w-full"
|
|
203
|
-
}, {
|
|
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
|
|
209
|
-
}, null, 8, ["label", "value"]))), 128))
|
|
210
|
-
]),
|
|
211
|
-
_: 1
|
|
212
|
-
}, 8, ["modelValue", "data", "placeholder"])
|
|
213
|
-
]),
|
|
214
|
-
_: 1
|
|
215
|
-
}, 8, ["label"])
|
|
216
|
-
]),
|
|
217
|
-
_: 1
|
|
218
|
-
}),
|
|
219
|
-
e(r, { span: 12 }, {
|
|
220
|
-
default: s(() => [
|
|
221
|
-
e(d, {
|
|
222
|
-
label: u.$t("goodsSpu.categoryId"),
|
|
223
|
-
prop: "categoryIds"
|
|
224
|
-
}, {
|
|
225
|
-
default: s(() => [
|
|
226
|
-
e(P, {
|
|
227
|
-
modelValue: t(o).categoryIds,
|
|
228
|
-
"onUpdate:modelValue": l[3] || (l[3] = (a) => t(o).categoryIds = a),
|
|
229
|
-
data: t(i).goodsCategoryListBizLayDict.values,
|
|
230
|
-
multiple: "",
|
|
231
|
-
"render-after-expand": !1,
|
|
232
|
-
"show-checkbox": "",
|
|
233
|
-
placeholder: u.$t("goodsSpu.categoryIdRequired"),
|
|
234
|
-
class: "w-full"
|
|
235
|
-
}, null, 8, ["modelValue", "data", "placeholder"])
|
|
236
|
-
]),
|
|
237
|
-
_: 1
|
|
238
|
-
}, 8, ["label"])
|
|
239
|
-
]),
|
|
240
|
-
_: 1
|
|
241
|
-
}),
|
|
242
|
-
e(r, { span: 12 }, {
|
|
243
|
-
default: s(() => [
|
|
244
|
-
e(d, {
|
|
245
|
-
label: u.$t("goodsSpu.freightType"),
|
|
246
|
-
prop: "freightType"
|
|
247
|
-
}, {
|
|
248
|
-
default: s(() => [
|
|
249
|
-
e(b, {
|
|
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
|
|
254
|
-
}, null, 8, ["modelValue", "data"])
|
|
255
|
-
]),
|
|
256
|
-
_: 1
|
|
257
|
-
}, 8, ["label"])
|
|
258
|
-
]),
|
|
259
|
-
_: 1
|
|
260
|
-
}),
|
|
261
|
-
e(r, { span: 12 }, {
|
|
262
|
-
default: s(() => [
|
|
263
|
-
e(d, {
|
|
264
|
-
label: u.$t("goodsSpu.freightAmount"),
|
|
265
|
-
prop: "freightAmount"
|
|
266
|
-
}, {
|
|
267
|
-
default: s(() => [
|
|
268
|
-
e(k, {
|
|
269
|
-
modelValue: t(o).freightAmount,
|
|
270
|
-
"onUpdate:modelValue": l[5] || (l[5] = (a) => t(o).freightAmount = a),
|
|
271
|
-
readonly: t(o).freightType === "FREIGHT_FREE",
|
|
272
|
-
precision: 2,
|
|
273
|
-
step: 0.1,
|
|
274
|
-
controls: !1,
|
|
275
|
-
min: 0,
|
|
276
|
-
placeholder: u.$t("goodsSpu.freightAmountRequired"),
|
|
277
|
-
class: "w-full"
|
|
278
|
-
}, null, 8, ["modelValue", "readonly", "placeholder"])
|
|
279
|
-
]),
|
|
280
|
-
_: 1
|
|
281
|
-
}, 8, ["label"])
|
|
282
|
-
]),
|
|
283
|
-
_: 1
|
|
284
|
-
}),
|
|
285
|
-
e(r, { span: 24 }, {
|
|
286
|
-
default: s(() => [
|
|
287
|
-
e(d, {
|
|
288
|
-
label: u.$t("goodsSpu.picUrls"),
|
|
289
|
-
prop: "picUrls"
|
|
290
|
-
}, {
|
|
291
|
-
default: s(() => [
|
|
292
|
-
c("div", ue, [
|
|
293
|
-
e(G, {
|
|
294
|
-
modelValue: t(o).picUrls,
|
|
295
|
-
"onUpdate:modelValue": l[6] || (l[6] = (a) => t(o).picUrls = a),
|
|
296
|
-
limit: 6,
|
|
297
|
-
"list-type": "picture-card"
|
|
298
|
-
}, null, 8, ["modelValue"]),
|
|
299
|
-
l[15] || (l[15] = c("div", { class: "red-color" }, " 推荐尺寸:100*100或同比例图片,最少上传1张 ", -1))
|
|
300
|
-
])
|
|
301
|
-
]),
|
|
302
|
-
_: 1
|
|
303
|
-
}, 8, ["label"])
|
|
304
|
-
]),
|
|
305
|
-
_: 1
|
|
306
|
-
}),
|
|
307
|
-
e(r, { span: 12 }, {
|
|
308
|
-
default: s(() => [
|
|
309
|
-
e(d, {
|
|
310
|
-
label: u.$t("goodsSpu.shelf"),
|
|
311
|
-
prop: "shelf"
|
|
312
|
-
}, {
|
|
313
|
-
default: s(() => [
|
|
314
|
-
e(b, {
|
|
315
|
-
modelValue: t(o).shelf,
|
|
316
|
-
"onUpdate:modelValue": l[7] || (l[7] = (a) => t(o).shelf = a),
|
|
317
|
-
data: t(i).shelfDict.values
|
|
318
|
-
}, null, 8, ["modelValue", "data"])
|
|
319
|
-
]),
|
|
320
|
-
_: 1
|
|
321
|
-
}, 8, ["label"])
|
|
322
|
-
]),
|
|
323
|
-
_: 1
|
|
324
|
-
}),
|
|
325
|
-
e(r, { span: 12 }, {
|
|
326
|
-
default: s(() => [
|
|
327
|
-
e(d, {
|
|
328
|
-
label: u.$t("goodsSpu.saleNum"),
|
|
329
|
-
prop: "saleNum"
|
|
330
|
-
}, {
|
|
331
|
-
default: s(() => [
|
|
332
|
-
e(k, {
|
|
333
|
-
modelValue: t(o).saleNum,
|
|
334
|
-
"onUpdate:modelValue": l[8] || (l[8] = (a) => t(o).saleNum = a),
|
|
335
|
-
placeholder: u.$t("goodsSpu.saleNumRequired"),
|
|
336
|
-
class: "w-full",
|
|
337
|
-
min: 0,
|
|
338
|
-
controls: !1,
|
|
339
|
-
precision: 0
|
|
340
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
341
|
-
]),
|
|
342
|
-
_: 1
|
|
343
|
-
}, 8, ["label"])
|
|
344
|
-
]),
|
|
345
|
-
_: 1
|
|
346
|
-
}),
|
|
347
|
-
e(r, { span: 24 }, {
|
|
348
|
-
default: s(() => [
|
|
349
|
-
e(d, {
|
|
350
|
-
label: u.$t("goodsSpu.sellPoint"),
|
|
351
|
-
prop: "sellPoint"
|
|
352
|
-
}, {
|
|
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"),
|
|
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"),
|
|
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"),
|
|
397
|
-
prop: "ensureIds"
|
|
398
|
-
}, {
|
|
399
|
-
default: s(() => [
|
|
400
|
-
e(j, {
|
|
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
|
|
404
|
-
}, null, 8, ["modelValue", "type-code"])
|
|
405
|
-
]),
|
|
406
|
-
_: 1
|
|
407
|
-
}, 8, ["label"])
|
|
408
|
-
]),
|
|
409
|
-
_: 1
|
|
410
|
-
}),
|
|
411
|
-
e(r, { span: 24 }, {
|
|
412
|
-
default: s(() => [
|
|
413
|
-
e(d, {
|
|
414
|
-
label: u.$t("goodsSpu.labelIds"),
|
|
415
|
-
prop: "labelIds"
|
|
416
|
-
}, {
|
|
417
|
-
default: s(() => [
|
|
418
|
-
e(O, {
|
|
419
|
-
modelValue: t(o).labelIds,
|
|
420
|
-
"onUpdate:modelValue": l[12] || (l[12] = (a) => t(o).labelIds = a),
|
|
421
|
-
class: "w-full"
|
|
422
|
-
}, {
|
|
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
|
|
427
|
-
}, {
|
|
428
|
-
default: s(() => [
|
|
429
|
-
U(Q(a.value), 1)
|
|
430
|
-
]),
|
|
431
|
-
_: 2
|
|
432
|
-
}, 1032, ["label"]))), 128))
|
|
433
|
-
]),
|
|
434
|
-
_: 1
|
|
435
|
-
}, 8, ["modelValue"])
|
|
436
|
-
]),
|
|
437
|
-
_: 1
|
|
438
|
-
}, 8, ["label"])
|
|
439
|
-
]),
|
|
440
|
-
_: 1
|
|
441
|
-
})
|
|
442
|
-
]),
|
|
443
|
-
_: 1
|
|
444
|
-
}),
|
|
445
|
-
l[18] || (l[18] = c("div", { class: "title-content" }, "商品规格", -1)),
|
|
446
|
-
e(y, null, {
|
|
447
|
-
default: s(() => [
|
|
448
|
-
e(r, { span: 24 }, {
|
|
449
|
-
default: s(() => [
|
|
450
|
-
e(d, {
|
|
451
|
-
label: u.$t("goodsSpu.specType"),
|
|
452
|
-
prop: "specType"
|
|
453
|
-
}, {
|
|
454
|
-
default: s(() => [
|
|
455
|
-
e(b, {
|
|
456
|
-
modelValue: t(o).specType,
|
|
457
|
-
"onUpdate:modelValue": l[13] || (l[13] = (a) => t(o).specType = a),
|
|
458
|
-
data: t(i).specTypeEnum.values
|
|
459
|
-
}, null, 8, ["modelValue", "data"])
|
|
460
|
-
]),
|
|
461
|
-
_: 1
|
|
462
|
-
}, 8, ["label"])
|
|
463
|
-
]),
|
|
464
|
-
_: 1
|
|
465
|
-
}),
|
|
466
|
-
!t(g).query.spuId || q.value ? (f(), h(te, {
|
|
467
|
-
key: 0,
|
|
468
|
-
"spec-type": t(o).specType,
|
|
469
|
-
form: t(o),
|
|
470
|
-
onGetGoodsSku: D,
|
|
471
|
-
onGetFormData: B
|
|
472
|
-
}, null, 8, ["spec-type", "form"])) : X("", !0)
|
|
473
|
-
]),
|
|
474
|
-
_: 1
|
|
475
|
-
}),
|
|
476
|
-
l[19] || (l[19] = c("div", { class: "title-content" }, "商品详情", -1)),
|
|
477
|
-
e(y, null, {
|
|
478
|
-
default: s(() => [
|
|
479
|
-
e(r, { span: 24 }, {
|
|
480
|
-
default: s(() => [
|
|
481
|
-
e(d, {
|
|
482
|
-
label: u.$t("goodsSpu.description"),
|
|
483
|
-
prop: "description"
|
|
484
|
-
}, {
|
|
485
|
-
default: s(() => [
|
|
486
|
-
e(t(oe), {
|
|
487
|
-
modelValue: t(o).description,
|
|
488
|
-
"onUpdate:modelValue": l[14] || (l[14] = (a) => t(o).description = a),
|
|
489
|
-
style: { width: "100%" }
|
|
490
|
-
}, null, 8, ["modelValue"])
|
|
491
|
-
]),
|
|
492
|
-
_: 1
|
|
493
|
-
}, 8, ["label"])
|
|
494
|
-
]),
|
|
495
|
-
_: 1
|
|
496
|
-
}),
|
|
497
|
-
e(d, null, {
|
|
498
|
-
default: s(() => [
|
|
499
|
-
e(H, {
|
|
500
|
-
type: "primary",
|
|
501
|
-
onClick: L
|
|
502
|
-
}, {
|
|
503
|
-
default: s(() => l[16] || (l[16] = [
|
|
504
|
-
U("保存", -1)
|
|
505
|
-
])),
|
|
506
|
-
_: 1,
|
|
507
|
-
__: [16]
|
|
508
|
-
})
|
|
509
|
-
]),
|
|
510
|
-
_: 1
|
|
511
|
-
})
|
|
512
|
-
]),
|
|
513
|
-
_: 1
|
|
514
|
-
})
|
|
515
|
-
]),
|
|
516
|
-
_: 1,
|
|
517
|
-
__: [17, 18, 19]
|
|
518
|
-
}, 8, ["model", "rules"])
|
|
519
|
-
])
|
|
520
|
-
]);
|
|
521
|
-
};
|
|
522
|
-
}
|
|
523
|
-
});
|
|
524
|
-
export {
|
|
525
|
-
he as default
|
|
526
|
-
};
|