xyvcard-goods 0.0.25 → 0.0.27
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 → ImageUpload-BMw9FVJL.mjs} +2 -2
- package/dist/{edit-DAyPJb0b.mjs → edit-C6CESv8X.mjs} +3 -3
- package/dist/{edit-DiWa_ZLE.mjs → edit-CuYE3fHS.mjs} +3 -3
- package/dist/edit-CvY-V0N5.mjs +428 -0
- package/dist/{edit-Dw0brF_L.mjs → edit-CwYGsVHI.mjs} +6 -6
- package/dist/{edit-CajMDPUo.mjs → edit-DmT9V-gh.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-C2XSQSoV.mjs → edit.vue_vue_type_script_setup_true_lang-DfFKgB6q.mjs} +76 -74
- package/dist/{goodsList-D5D6w8qJ.mjs → goodsList-Bj9pZI5X.mjs} +1 -1
- package/dist/{goodsList-DebLyKkm.mjs → goodsList-v98w-P_d.mjs} +1 -1
- package/dist/{goodsList.vue_vue_type_script_setup_true_lang-BovyDKOb.mjs → goodsList.vue_vue_type_script_setup_true_lang-BsItIhFh.mjs} +3 -3
- package/dist/{goodsList.vue_vue_type_script_setup_true_lang-BZZYw7U2.mjs → goodsList.vue_vue_type_script_setup_true_lang-QHlAuCT3.mjs} +3 -3
- package/dist/{index-DcreTzbx.mjs → index-0g53MREL.mjs} +14 -14
- package/dist/{index-gnGbjAJC.mjs → index-B0qodJxZ.mjs} +2 -2
- package/dist/{index-Bq-VIy8T.mjs → index-BrR_OdFN.mjs} +3 -3
- package/dist/{index-CtbKf0QD.mjs → index-CXEbqy-N.mjs} +14 -14
- package/dist/{index-DLPUpw3h.mjs → index-CXtRrzoC.mjs} +2006 -1879
- package/dist/{index-Ti58GY9z.mjs → index-D7Zknkay.mjs} +14 -14
- package/dist/{index-C4DAxQ7e.mjs → index-DWtdS9Gu.mjs} +3 -3
- package/dist/{index-C_El1x3C.mjs → index-szFiZJnI.mjs} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{info-BYntI7av.mjs → info-Bn5lfzNP.mjs} +4 -4
- package/dist/{info-Bkzvf5Mw.mjs → info-PRjY0AD1.mjs} +111 -105
- package/dist/skuForm-DF02pgox.mjs +318 -0
- package/dist/{skuForm-C0s08DP2.mjs → skuForm-EQVH7pCG.mjs} +6 -6
- package/dist/{skuTable-DyzW7iCQ.mjs → skuTable-DWpm1OMq.mjs} +4 -4
- package/dist/style.css +1 -1
- package/dts/api/goods-spu/types.d.ts +5 -0
- package/dts/lang/goods/zh-cn.d.ts +4 -0
- package/package.json +62 -62
- package/dist/edit-CWq3UNZW.mjs +0 -368
- package/dist/skuForm-WOvsR26d.mjs +0 -314
- package/dts/views/goods/goods-combination/skuTable.vue.d.ts +0 -40
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as b, ref as o, watchEffect as E, computed as P, resolveComponent as n,
|
|
1
|
+
import { defineComponent as b, ref as o, watchEffect as E, computed as P, resolveComponent as n, createElementBlock as R, openBlock as S, Fragment as j, createVNode as i, withCtx as p, createElementVNode as k } from "vue";
|
|
2
2
|
import { ElMessageBox as N } from "element-plus";
|
|
3
3
|
import { fileApi as s } from "jmash-core";
|
|
4
4
|
import { useI18n as M } from "vue-i18n";
|
|
@@ -46,7 +46,7 @@ const z = ["src"], A = /* @__PURE__ */ b({
|
|
|
46
46
|
};
|
|
47
47
|
return (e, t) => {
|
|
48
48
|
const g = n("Plus"), _ = n("el-icon"), C = n("el-upload"), L = n("el-dialog");
|
|
49
|
-
return
|
|
49
|
+
return S(), R(j, null, [
|
|
50
50
|
i(C, {
|
|
51
51
|
ref_key: "uploadImageRef",
|
|
52
52
|
ref: V,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as E, mergeModels as B, ref as V, reactive as N, useModel as F, resolveComponent as r,
|
|
1
|
+
import { defineComponent as E, mergeModels as B, ref as V, reactive as N, useModel as F, resolveComponent as r, createBlock as K, openBlock as O, withCtx as l, createVNode as o, unref as d, createElementVNode as x, createTextVNode as U, toDisplayString as w } from "vue";
|
|
2
2
|
import { ElMessage as k } from "element-plus";
|
|
3
3
|
import { useI18n as A } from "vue-i18n";
|
|
4
|
-
import { g as f } from "./index-
|
|
4
|
+
import { g as f } from "./index-szFiZJnI.mjs";
|
|
5
5
|
import { _ as T } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
6
6
|
const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
|
|
7
7
|
__name: "edit",
|
|
@@ -66,7 +66,7 @@ const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
|
|
|
66
66
|
}
|
|
67
67
|
return (e, n) => {
|
|
68
68
|
const s = r("jmash-single-image-upload"), u = r("el-form-item"), c = r("el-col"), v = r("el-input"), j = r("el-row"), S = r("el-form"), I = r("el-button"), D = r("el-dialog");
|
|
69
|
-
return
|
|
69
|
+
return O(), K(D, {
|
|
70
70
|
modelValue: a.value,
|
|
71
71
|
"onUpdate:modelValue": n[2] || (n[2] = (m) => a.value = m),
|
|
72
72
|
onClose: h
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as j, mergeModels as v, ref as I, reactive as C, useModel as E, resolveComponent as m,
|
|
1
|
+
import { defineComponent as j, mergeModels as v, ref as I, reactive as C, useModel as E, resolveComponent as m, createBlock as F, openBlock as K, withCtx as o, createVNode as l, unref as r, createElementVNode as O, createTextVNode as L, toDisplayString as N } from "vue";
|
|
2
2
|
import { ElMessage as w } from "element-plus";
|
|
3
3
|
import { useI18n as S } from "vue-i18n";
|
|
4
|
-
import { b as p } from "./index-
|
|
4
|
+
import { b as p } from "./index-CXtRrzoC.mjs";
|
|
5
5
|
import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
6
6
|
const x = { class: "dialog-footer" }, A = /* @__PURE__ */ j({
|
|
7
7
|
__name: "edit",
|
|
@@ -62,7 +62,7 @@ const x = { class: "dialog-footer" }, A = /* @__PURE__ */ j({
|
|
|
62
62
|
}
|
|
63
63
|
return (e, t) => {
|
|
64
64
|
const n = m("el-input"), i = m("el-form-item"), f = m("el-col"), M = m("el-row"), B = m("el-form"), h = m("el-button"), U = m("el-dialog");
|
|
65
|
-
return
|
|
65
|
+
return K(), F(U, {
|
|
66
66
|
modelValue: s.value,
|
|
67
67
|
"onUpdate:modelValue": t[3] || (t[3] = (d) => s.value = d),
|
|
68
68
|
onClose: V
|
|
@@ -0,0 +1,428 @@
|
|
|
1
|
+
import { _ as z } from "./ImageUpload-BMw9FVJL.mjs";
|
|
2
|
+
import { defineComponent as O, ref as R, reactive as I, resolveComponent as p, createElementBlock as v, openBlock as h, createElementVNode as f, createVNode as e, unref as t, withCtx as u, Fragment as j, renderList as x, createBlock as U, createTextVNode as w, toDisplayString as M, createCommentVNode as H } from "vue";
|
|
3
|
+
import { ElMessage as P } from "element-plus";
|
|
4
|
+
import { useRouter as Y, useRoute as J } from "vue-router";
|
|
5
|
+
import { routerUtil as k } from "jmash-core";
|
|
6
|
+
import { useI18n as K } from "vue-i18n";
|
|
7
|
+
import { D as m, C as Q } from "./index-B0qodJxZ.mjs";
|
|
8
|
+
import { a as b } from "./index-CXtRrzoC.mjs";
|
|
9
|
+
import W from "./skuForm-DF02pgox.mjs";
|
|
10
|
+
const X = { class: "app-container" }, Z = { class: "search-container" }, ee = { class: "image-card" }, ie = /* @__PURE__ */ O({
|
|
11
|
+
__name: "edit",
|
|
12
|
+
setup(le) {
|
|
13
|
+
const { t: n } = K(), y = Y(), g = J(), V = R();
|
|
14
|
+
m.goodsCategoryListBizLayDict.useValues(), m.labelListBizDict.useValues();
|
|
15
|
+
let o = I({
|
|
16
|
+
requestId: Math.random() * 10 + "",
|
|
17
|
+
updateMask: "labelIds,minPrice,maxPrice,spuName,categoryIds,spuCode,freightType,freightAmount,picUrls,shelf,saleNum",
|
|
18
|
+
skuSpecValues: [],
|
|
19
|
+
freightType: m.freightTypeEnum.values[0].key,
|
|
20
|
+
freightAmount: 0,
|
|
21
|
+
shelf: m.shelfDict.values[0].key,
|
|
22
|
+
goodsType: Q.GOODS_TYPE.GROUP
|
|
23
|
+
});
|
|
24
|
+
const C = (s, l, i) => {
|
|
25
|
+
var d;
|
|
26
|
+
const a = (d = o.picUrls) == null ? void 0 : d.split(",").filter(Boolean);
|
|
27
|
+
if (a != null && a.length) {
|
|
28
|
+
if ((a == null ? void 0 : a.length) < 1)
|
|
29
|
+
return i(new Error(n("goodsSpu.imageListsErrors")));
|
|
30
|
+
i();
|
|
31
|
+
} else return i(new Error(n("goodsSpu.picUrlsRequired")));
|
|
32
|
+
}, T = I({
|
|
33
|
+
spuName: [
|
|
34
|
+
{
|
|
35
|
+
required: !0,
|
|
36
|
+
message: n("goodsSpu.spuNameRequired"),
|
|
37
|
+
trigger: "blur"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
minPrice: [
|
|
41
|
+
{
|
|
42
|
+
required: !0,
|
|
43
|
+
message: n("goodsSpu.minPriceRequired"),
|
|
44
|
+
trigger: "blur"
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
maxPrice: [
|
|
48
|
+
{
|
|
49
|
+
required: !0,
|
|
50
|
+
message: n("goodsSpu.maxPriceRequired"),
|
|
51
|
+
trigger: "blur"
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
categoryIds: [
|
|
55
|
+
{
|
|
56
|
+
required: !0,
|
|
57
|
+
message: n("goodsSpu.categoryIdRequired"),
|
|
58
|
+
trigger: "change"
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
spuCode: [
|
|
62
|
+
{
|
|
63
|
+
required: !0,
|
|
64
|
+
message: n("goodsSpu.spuCodeRequired"),
|
|
65
|
+
trigger: "change"
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
freightType: [
|
|
69
|
+
{
|
|
70
|
+
required: !0,
|
|
71
|
+
message: n("goodsSpu.freightTypeRequired"),
|
|
72
|
+
trigger: "change"
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
freightAmount: [
|
|
76
|
+
{
|
|
77
|
+
required: !0,
|
|
78
|
+
message: n("goodsSpu.freightAmountRequired"),
|
|
79
|
+
trigger: "blur"
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
picUrls: [
|
|
83
|
+
{
|
|
84
|
+
validator: C,
|
|
85
|
+
trigger: "change"
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
shelf: [
|
|
89
|
+
{
|
|
90
|
+
required: !0,
|
|
91
|
+
message: n("goodsSpu.shelfRequired"),
|
|
92
|
+
trigger: "change"
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
}), S = R(!1);
|
|
96
|
+
function N(s) {
|
|
97
|
+
o.groupInfos = s;
|
|
98
|
+
}
|
|
99
|
+
g.query.spuId && b.findById({ spuId: g.query.spuId }).then(({ data: s }) => {
|
|
100
|
+
Object.assign(o, s), S.value = !0;
|
|
101
|
+
});
|
|
102
|
+
const $ = async () => {
|
|
103
|
+
var s;
|
|
104
|
+
await ((s = V.value) == null ? void 0 : s.validate((l) => {
|
|
105
|
+
l && (g.query.spuId ? b.updateList(o).then((i) => {
|
|
106
|
+
i.status === 200 && (P({
|
|
107
|
+
message: n("common.submitSuccess"),
|
|
108
|
+
type: "success"
|
|
109
|
+
}), k.closeTagView(g.fullPath, y, !1));
|
|
110
|
+
}) : b.createList(o).then((i) => {
|
|
111
|
+
i.status === 200 && (P({
|
|
112
|
+
message: n("common.submitSuccess"),
|
|
113
|
+
type: "success"
|
|
114
|
+
}), k.closeTagView(g.fullPath, y, !1));
|
|
115
|
+
}));
|
|
116
|
+
}));
|
|
117
|
+
};
|
|
118
|
+
function E(s) {
|
|
119
|
+
s === "FREIGHT_FREE" && (o.freightAmount = 0);
|
|
120
|
+
}
|
|
121
|
+
return (s, l) => {
|
|
122
|
+
const i = p("el-input"), a = p("el-form-item"), d = p("el-col"), A = p("el-tree-select"), q = p("jmash-enum-radio"), c = p("el-input-number"), D = z, F = p("el-checkbox"), L = p("el-checkbox-group"), _ = p("el-row"), B = p("el-button"), G = p("el-form");
|
|
123
|
+
return h(), v("div", X, [
|
|
124
|
+
f("div", Z, [
|
|
125
|
+
e(G, {
|
|
126
|
+
ref_key: "goodsSpuFormRef",
|
|
127
|
+
ref: V,
|
|
128
|
+
model: t(o),
|
|
129
|
+
"label-width": "120px",
|
|
130
|
+
rules: T
|
|
131
|
+
}, {
|
|
132
|
+
default: u(() => [
|
|
133
|
+
l[13] || (l[13] = f("div", { class: "title-content" }, "基本信息", -1)),
|
|
134
|
+
e(_, null, {
|
|
135
|
+
default: u(() => [
|
|
136
|
+
e(d, { span: 12 }, {
|
|
137
|
+
default: u(() => [
|
|
138
|
+
e(a, {
|
|
139
|
+
label: s.$t("goodsSpu.spuName"),
|
|
140
|
+
prop: "spuName"
|
|
141
|
+
}, {
|
|
142
|
+
default: u(() => [
|
|
143
|
+
e(i, {
|
|
144
|
+
modelValue: t(o).spuName,
|
|
145
|
+
"onUpdate:modelValue": l[0] || (l[0] = (r) => t(o).spuName = r),
|
|
146
|
+
placeholder: s.$t("goodsSpu.spuNameRequired"),
|
|
147
|
+
maxlength: "60",
|
|
148
|
+
"show-word-limit": "",
|
|
149
|
+
clearable: ""
|
|
150
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
151
|
+
]),
|
|
152
|
+
_: 1
|
|
153
|
+
}, 8, ["label"])
|
|
154
|
+
]),
|
|
155
|
+
_: 1
|
|
156
|
+
}),
|
|
157
|
+
e(d, { span: 12 }, {
|
|
158
|
+
default: u(() => [
|
|
159
|
+
e(a, {
|
|
160
|
+
label: s.$t("goodsSpu.spuCode"),
|
|
161
|
+
prop: "spuCode"
|
|
162
|
+
}, {
|
|
163
|
+
default: u(() => [
|
|
164
|
+
e(i, {
|
|
165
|
+
modelValue: t(o).spuCode,
|
|
166
|
+
"onUpdate:modelValue": l[1] || (l[1] = (r) => t(o).spuCode = r),
|
|
167
|
+
placeholder: s.$t("goodsSpu.spuCodeRequired"),
|
|
168
|
+
maxlength: "15",
|
|
169
|
+
"show-word-limit": "",
|
|
170
|
+
clearable: ""
|
|
171
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
172
|
+
]),
|
|
173
|
+
_: 1
|
|
174
|
+
}, 8, ["label"])
|
|
175
|
+
]),
|
|
176
|
+
_: 1
|
|
177
|
+
}),
|
|
178
|
+
e(d, { span: 12 }, {
|
|
179
|
+
default: u(() => [
|
|
180
|
+
e(a, {
|
|
181
|
+
label: s.$t("goodsSpu.categoryId"),
|
|
182
|
+
prop: "categoryIds"
|
|
183
|
+
}, {
|
|
184
|
+
default: u(() => [
|
|
185
|
+
e(A, {
|
|
186
|
+
modelValue: t(o).categoryIds,
|
|
187
|
+
"onUpdate:modelValue": l[2] || (l[2] = (r) => t(o).categoryIds = r),
|
|
188
|
+
data: t(m).goodsCategoryListBizLayDict.values,
|
|
189
|
+
multiple: "",
|
|
190
|
+
"render-after-expand": !1,
|
|
191
|
+
"show-checkbox": "",
|
|
192
|
+
placeholder: s.$t("goodsSpu.categoryIdRequired"),
|
|
193
|
+
class: "w-full"
|
|
194
|
+
}, null, 8, ["modelValue", "data", "placeholder"])
|
|
195
|
+
]),
|
|
196
|
+
_: 1
|
|
197
|
+
}, 8, ["label"])
|
|
198
|
+
]),
|
|
199
|
+
_: 1
|
|
200
|
+
}),
|
|
201
|
+
e(d, { span: 12 }, {
|
|
202
|
+
default: u(() => [
|
|
203
|
+
e(a, {
|
|
204
|
+
label: s.$t("goodsSpu.freightType"),
|
|
205
|
+
prop: "freightType"
|
|
206
|
+
}, {
|
|
207
|
+
default: u(() => [
|
|
208
|
+
e(q, {
|
|
209
|
+
modelValue: t(o).freightType,
|
|
210
|
+
"onUpdate:modelValue": l[3] || (l[3] = (r) => t(o).freightType = r),
|
|
211
|
+
data: t(m).freightTypeEnum.values,
|
|
212
|
+
onChange: E
|
|
213
|
+
}, null, 8, ["modelValue", "data"])
|
|
214
|
+
]),
|
|
215
|
+
_: 1
|
|
216
|
+
}, 8, ["label"])
|
|
217
|
+
]),
|
|
218
|
+
_: 1
|
|
219
|
+
}),
|
|
220
|
+
e(d, { span: 12 }, {
|
|
221
|
+
default: u(() => [
|
|
222
|
+
e(a, {
|
|
223
|
+
label: s.$t("goodsSpu.freightAmount"),
|
|
224
|
+
prop: "freightAmount"
|
|
225
|
+
}, {
|
|
226
|
+
default: u(() => [
|
|
227
|
+
e(c, {
|
|
228
|
+
modelValue: t(o).freightAmount,
|
|
229
|
+
"onUpdate:modelValue": l[4] || (l[4] = (r) => t(o).freightAmount = r),
|
|
230
|
+
readonly: t(o).freightType === "FREIGHT_FREE",
|
|
231
|
+
precision: 2,
|
|
232
|
+
step: 0.1,
|
|
233
|
+
controls: !1,
|
|
234
|
+
min: 0,
|
|
235
|
+
placeholder: s.$t("goodsSpu.freightAmountRequired"),
|
|
236
|
+
class: "w-full"
|
|
237
|
+
}, null, 8, ["modelValue", "readonly", "placeholder"])
|
|
238
|
+
]),
|
|
239
|
+
_: 1
|
|
240
|
+
}, 8, ["label"])
|
|
241
|
+
]),
|
|
242
|
+
_: 1
|
|
243
|
+
}),
|
|
244
|
+
e(d, { span: 12 }, {
|
|
245
|
+
default: u(() => [
|
|
246
|
+
e(a, {
|
|
247
|
+
label: s.$t("goodsSpu.minPrice"),
|
|
248
|
+
prop: "minPrice"
|
|
249
|
+
}, {
|
|
250
|
+
default: u(() => [
|
|
251
|
+
e(c, {
|
|
252
|
+
modelValue: t(o).minPrice,
|
|
253
|
+
"onUpdate:modelValue": l[5] || (l[5] = (r) => t(o).minPrice = r),
|
|
254
|
+
precision: 2,
|
|
255
|
+
step: 0.1,
|
|
256
|
+
controls: !1,
|
|
257
|
+
min: 0,
|
|
258
|
+
placeholder: s.$t("goodsSpu.minPriceRequired"),
|
|
259
|
+
class: "w-full"
|
|
260
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
261
|
+
]),
|
|
262
|
+
_: 1
|
|
263
|
+
}, 8, ["label"])
|
|
264
|
+
]),
|
|
265
|
+
_: 1
|
|
266
|
+
}),
|
|
267
|
+
e(d, { span: 12 }, {
|
|
268
|
+
default: u(() => [
|
|
269
|
+
e(a, {
|
|
270
|
+
label: s.$t("goodsSpu.maxPrice"),
|
|
271
|
+
prop: "maxPrice"
|
|
272
|
+
}, {
|
|
273
|
+
default: u(() => [
|
|
274
|
+
e(c, {
|
|
275
|
+
modelValue: t(o).maxPrice,
|
|
276
|
+
"onUpdate:modelValue": l[6] || (l[6] = (r) => t(o).maxPrice = r),
|
|
277
|
+
precision: 2,
|
|
278
|
+
step: 0.1,
|
|
279
|
+
controls: !1,
|
|
280
|
+
min: 0,
|
|
281
|
+
placeholder: s.$t("goodsSpu.maxPriceRequired"),
|
|
282
|
+
class: "w-full"
|
|
283
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
284
|
+
]),
|
|
285
|
+
_: 1
|
|
286
|
+
}, 8, ["label"])
|
|
287
|
+
]),
|
|
288
|
+
_: 1
|
|
289
|
+
}),
|
|
290
|
+
e(d, { span: 12 }, {
|
|
291
|
+
default: u(() => [
|
|
292
|
+
e(a, {
|
|
293
|
+
label: s.$t("goodsSpu.saleNum"),
|
|
294
|
+
prop: "saleNum"
|
|
295
|
+
}, {
|
|
296
|
+
default: u(() => [
|
|
297
|
+
e(c, {
|
|
298
|
+
modelValue: t(o).saleNum,
|
|
299
|
+
"onUpdate:modelValue": l[7] || (l[7] = (r) => t(o).saleNum = r),
|
|
300
|
+
placeholder: s.$t("goodsSpu.saleNumRequired"),
|
|
301
|
+
class: "w-full",
|
|
302
|
+
min: 0,
|
|
303
|
+
controls: !1,
|
|
304
|
+
precision: 0
|
|
305
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
306
|
+
]),
|
|
307
|
+
_: 1
|
|
308
|
+
}, 8, ["label"])
|
|
309
|
+
]),
|
|
310
|
+
_: 1
|
|
311
|
+
}),
|
|
312
|
+
e(d, { span: 24 }, {
|
|
313
|
+
default: u(() => [
|
|
314
|
+
e(a, {
|
|
315
|
+
label: s.$t("goodsSpu.picUrls"),
|
|
316
|
+
prop: "picUrls"
|
|
317
|
+
}, {
|
|
318
|
+
default: u(() => [
|
|
319
|
+
f("div", ee, [
|
|
320
|
+
e(D, {
|
|
321
|
+
modelValue: t(o).picUrls,
|
|
322
|
+
"onUpdate:modelValue": l[8] || (l[8] = (r) => t(o).picUrls = r),
|
|
323
|
+
limit: 6,
|
|
324
|
+
"list-type": "picture-card"
|
|
325
|
+
}, null, 8, ["modelValue"]),
|
|
326
|
+
l[11] || (l[11] = f("div", { class: "red-color" }, " 推荐尺寸:100*100或同比例图片,最少上传1张 ", -1))
|
|
327
|
+
])
|
|
328
|
+
]),
|
|
329
|
+
_: 1
|
|
330
|
+
}, 8, ["label"])
|
|
331
|
+
]),
|
|
332
|
+
_: 1
|
|
333
|
+
}),
|
|
334
|
+
e(d, { span: 12 }, {
|
|
335
|
+
default: u(() => [
|
|
336
|
+
e(a, {
|
|
337
|
+
label: s.$t("goodsSpu.shelf"),
|
|
338
|
+
prop: "shelf"
|
|
339
|
+
}, {
|
|
340
|
+
default: u(() => [
|
|
341
|
+
e(q, {
|
|
342
|
+
modelValue: t(o).shelf,
|
|
343
|
+
"onUpdate:modelValue": l[9] || (l[9] = (r) => t(o).shelf = r),
|
|
344
|
+
data: t(m).shelfDict.values
|
|
345
|
+
}, null, 8, ["modelValue", "data"])
|
|
346
|
+
]),
|
|
347
|
+
_: 1
|
|
348
|
+
}, 8, ["label"])
|
|
349
|
+
]),
|
|
350
|
+
_: 1
|
|
351
|
+
}),
|
|
352
|
+
e(d, { span: 12 }, {
|
|
353
|
+
default: u(() => [
|
|
354
|
+
e(a, {
|
|
355
|
+
label: s.$t("goodsSpu.labelIds"),
|
|
356
|
+
prop: "labelIds"
|
|
357
|
+
}, {
|
|
358
|
+
default: u(() => [
|
|
359
|
+
e(L, {
|
|
360
|
+
modelValue: t(o).labelIds,
|
|
361
|
+
"onUpdate:modelValue": l[10] || (l[10] = (r) => t(o).labelIds = r),
|
|
362
|
+
class: "w-full"
|
|
363
|
+
}, {
|
|
364
|
+
default: u(() => [
|
|
365
|
+
(h(!0), v(j, null, x(t(m).labelListBizDict.values, (r) => (h(), U(F, {
|
|
366
|
+
key: r.key,
|
|
367
|
+
label: r.key
|
|
368
|
+
}, {
|
|
369
|
+
default: u(() => [
|
|
370
|
+
w(M(r.value), 1)
|
|
371
|
+
]),
|
|
372
|
+
_: 2
|
|
373
|
+
}, 1032, ["label"]))), 128))
|
|
374
|
+
]),
|
|
375
|
+
_: 1
|
|
376
|
+
}, 8, ["modelValue"])
|
|
377
|
+
]),
|
|
378
|
+
_: 1
|
|
379
|
+
}, 8, ["label"])
|
|
380
|
+
]),
|
|
381
|
+
_: 1
|
|
382
|
+
})
|
|
383
|
+
]),
|
|
384
|
+
_: 1
|
|
385
|
+
}),
|
|
386
|
+
l[14] || (l[14] = f("div", { class: "title-content" }, "套装商品", -1)),
|
|
387
|
+
e(_, null, {
|
|
388
|
+
default: u(() => [
|
|
389
|
+
!t(g).query.spuId || S.value ? (h(), U(W, {
|
|
390
|
+
key: 0,
|
|
391
|
+
form: t(o),
|
|
392
|
+
onGetGoodsSku: N
|
|
393
|
+
}, null, 8, ["form"])) : H("", !0)
|
|
394
|
+
]),
|
|
395
|
+
_: 1
|
|
396
|
+
}),
|
|
397
|
+
e(_, null, {
|
|
398
|
+
default: u(() => [
|
|
399
|
+
e(a, null, {
|
|
400
|
+
default: u(() => [
|
|
401
|
+
e(B, {
|
|
402
|
+
type: "primary",
|
|
403
|
+
onClick: $
|
|
404
|
+
}, {
|
|
405
|
+
default: u(() => l[12] || (l[12] = [
|
|
406
|
+
w("保存", -1)
|
|
407
|
+
])),
|
|
408
|
+
_: 1,
|
|
409
|
+
__: [12]
|
|
410
|
+
})
|
|
411
|
+
]),
|
|
412
|
+
_: 1
|
|
413
|
+
})
|
|
414
|
+
]),
|
|
415
|
+
_: 1
|
|
416
|
+
})
|
|
417
|
+
]),
|
|
418
|
+
_: 1,
|
|
419
|
+
__: [13, 14]
|
|
420
|
+
}, 8, ["model", "rules"])
|
|
421
|
+
])
|
|
422
|
+
]);
|
|
423
|
+
};
|
|
424
|
+
}
|
|
425
|
+
});
|
|
426
|
+
export {
|
|
427
|
+
ie as default
|
|
428
|
+
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { _ as J } from "./ImageUpload-
|
|
2
|
-
import { defineComponent as K, ref as v, reactive as T, resolveComponent as n,
|
|
1
|
+
import { _ as J } from "./ImageUpload-BMw9FVJL.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
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 i, C as ee } from "./index-
|
|
8
|
-
import { a as _ } from "./index-
|
|
7
|
+
import { D as i, C as ee } from "./index-B0qodJxZ.mjs";
|
|
8
|
+
import { a as _ } from "./index-CXtRrzoC.mjs";
|
|
9
9
|
import { g as le } from "./index-BHmGYIuc.mjs";
|
|
10
10
|
import { WangEditor as oe } from "xyvcard-cms";
|
|
11
|
-
import te from "./skuForm-
|
|
11
|
+
import te from "./skuForm-EQVH7pCG.mjs";
|
|
12
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) {
|
|
@@ -501,7 +501,7 @@ const se = { class: "app-container" }, ae = { class: "search-container" }, ue =
|
|
|
501
501
|
onClick: L
|
|
502
502
|
}, {
|
|
503
503
|
default: s(() => l[16] || (l[16] = [
|
|
504
|
-
U("保存")
|
|
504
|
+
U("保存", -1)
|
|
505
505
|
])),
|
|
506
506
|
_: 1,
|
|
507
507
|
__: [16]
|