xyvcard-goods 0.0.29 → 0.0.31
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-Br1EAlBd.mjs → edit-Bgvy3bUQ.mjs} +131 -128
- package/dist/{edit-BzOoP1MM.mjs → edit-CAmBfr7s.mjs} +6 -6
- package/dist/{edit-BDHYnZTL.mjs → edit-CR4LNc6c.mjs} +1 -1
- package/dist/{edit-C0U9Ge6U.mjs → edit-DEKgI9dl.mjs} +3 -3
- package/dist/{edit-1TXe_HC2.mjs → edit-WZ-vVp0_.mjs} +3 -3
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BmH1D2Ce.mjs → edit.vue_vue_type_script_setup_true_lang-CSjc2-0k.mjs} +76 -74
- package/dist/{index-DwDXNfWH.mjs → index-B9EvyZqu.mjs} +149 -141
- package/dist/{index-rRbEKDlL.mjs → index-Ba-YRVAR.mjs} +2 -2
- package/dist/{index-BreCG7fL.mjs → index-Br8OH0po.mjs} +129 -122
- package/dist/{index-DYo45BS3.mjs → index-CCDQbidt.mjs} +14 -14
- package/dist/{index-GWE4OrXj.mjs → index-CIOmQi5q.mjs} +1997 -1874
- package/dist/{index-D3Q39K5l.mjs → index-CnXaunj4.mjs} +14 -14
- package/dist/{index-ClnNQkIp.mjs → index-Dy5vhMgv.mjs} +1 -1
- package/dist/{index-RBIPJ3PM.mjs → index-w0WaL9Bq.mjs} +8 -8
- package/dist/index.mjs +1 -1
- package/dist/{info-Dji-jSuw.mjs → info-Cp_2nx9w.mjs} +4 -4
- package/dist/{info-DjDT9TId.mjs → info-CzP-Zg-I.mjs} +3 -3
- package/dist/{skuForm-9X82lvcF.mjs → skuForm-CVp5ywg4.mjs} +96 -93
- package/dist/{skuForm-BzxL1_v6.mjs → skuForm-D_Q4iyk2.mjs} +6 -6
- package/dist/{skuTable-RIQUU_Bl.mjs → skuTable-DcYM5x3V.mjs} +4 -4
- package/dist/style.css +1 -1
- package/dts/api/goods-spu/types.d.ts +1 -0
- package/package.json +3 -3
|
@@ -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,18 +1,18 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { ElMessage as
|
|
1
|
+
import { _ as x } from "./ImageUpload-BMw9FVJL.mjs";
|
|
2
|
+
import { defineComponent as z, ref as P, reactive as R, resolveComponent as p, createElementBlock as I, openBlock as h, createElementVNode as f, createVNode as e, unref as r, withCtx as s, Fragment as M, renderList as O, createBlock as k, createTextVNode as v, toDisplayString as H, createCommentVNode as j } from "vue";
|
|
3
|
+
import { ElMessage as U } from "element-plus";
|
|
4
4
|
import { useRouter as Y, useRoute as J } from "vue-router";
|
|
5
|
-
import { routerUtil as
|
|
5
|
+
import { routerUtil as w } from "jmash-core";
|
|
6
6
|
import { useI18n as K } from "vue-i18n";
|
|
7
|
-
import { D as m, C as Q } from "./index-
|
|
8
|
-
import { a as b } from "./index-
|
|
9
|
-
import W from "./skuForm-
|
|
10
|
-
const X = { class: "app-container" }, Z = { class: "search-container" }, ee = { class: "image-card" }, pe = /* @__PURE__ */
|
|
7
|
+
import { D as m, C as Q } from "./index-Ba-YRVAR.mjs";
|
|
8
|
+
import { a as b } from "./index-CIOmQi5q.mjs";
|
|
9
|
+
import W from "./skuForm-CVp5ywg4.mjs";
|
|
10
|
+
const X = { class: "app-container" }, Z = { class: "search-container" }, ee = { class: "image-card" }, pe = /* @__PURE__ */ z({
|
|
11
11
|
__name: "edit",
|
|
12
12
|
setup(le) {
|
|
13
|
-
const { t:
|
|
13
|
+
const { t: i } = K(), y = Y(), g = J(), V = P();
|
|
14
14
|
m.goodsCategoryListBizLayDict.useValues(), m.labelListBizDict.useValues();
|
|
15
|
-
let o =
|
|
15
|
+
let o = R({
|
|
16
16
|
requestId: Math.random() * 10 + "",
|
|
17
17
|
updateMask: "labelIds,minPrice,maxPrice,spuName,categoryIds,spuCode,freightType,freightAmount,picUrls,shelf,saleNum",
|
|
18
18
|
skuSpecValues: [],
|
|
@@ -21,61 +21,61 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
|
|
|
21
21
|
shelf: m.shelfDict.values[0].key,
|
|
22
22
|
goodsType: Q.GOODS_TYPE.GROUP
|
|
23
23
|
});
|
|
24
|
-
const C = (
|
|
24
|
+
const C = (t, l, n) => {
|
|
25
25
|
var d;
|
|
26
26
|
const a = (d = o.picUrls) == null ? void 0 : d.split(",").filter(Boolean);
|
|
27
27
|
if (a != null && a.length) {
|
|
28
28
|
if ((a == null ? void 0 : a.length) < 1)
|
|
29
|
-
return
|
|
30
|
-
|
|
31
|
-
} else return
|
|
32
|
-
}, N =
|
|
29
|
+
return n(new Error(i("goodsSpu.imageListsErrors")));
|
|
30
|
+
n();
|
|
31
|
+
} else return n(new Error(i("goodsSpu.picUrlsRequired")));
|
|
32
|
+
}, N = R({
|
|
33
33
|
spuName: [
|
|
34
34
|
{
|
|
35
35
|
required: !0,
|
|
36
|
-
message:
|
|
36
|
+
message: i("goodsSpu.spuNameRequired"),
|
|
37
37
|
trigger: "blur"
|
|
38
38
|
}
|
|
39
39
|
],
|
|
40
40
|
minPrice: [
|
|
41
41
|
{
|
|
42
42
|
required: !0,
|
|
43
|
-
message:
|
|
43
|
+
message: i("goodsSpu.minPriceRequired"),
|
|
44
44
|
trigger: "blur"
|
|
45
45
|
}
|
|
46
46
|
],
|
|
47
47
|
maxPrice: [
|
|
48
48
|
{
|
|
49
49
|
required: !0,
|
|
50
|
-
message:
|
|
50
|
+
message: i("goodsSpu.maxPriceRequired"),
|
|
51
51
|
trigger: "blur"
|
|
52
52
|
}
|
|
53
53
|
],
|
|
54
54
|
categoryIds: [
|
|
55
55
|
{
|
|
56
56
|
required: !0,
|
|
57
|
-
message:
|
|
57
|
+
message: i("goodsSpu.categoryIdRequired"),
|
|
58
58
|
trigger: "change"
|
|
59
59
|
}
|
|
60
60
|
],
|
|
61
61
|
spuCode: [
|
|
62
62
|
{
|
|
63
63
|
required: !0,
|
|
64
|
-
message:
|
|
64
|
+
message: i("goodsSpu.spuCodeRequired"),
|
|
65
65
|
trigger: "change"
|
|
66
66
|
}
|
|
67
67
|
],
|
|
68
68
|
freightType: [
|
|
69
69
|
{
|
|
70
70
|
required: !0,
|
|
71
|
-
message:
|
|
71
|
+
message: i("goodsSpu.freightTypeRequired"),
|
|
72
72
|
trigger: "change"
|
|
73
73
|
}
|
|
74
74
|
],
|
|
75
75
|
freightAmount: [
|
|
76
76
|
{
|
|
77
77
|
required: !0,
|
|
78
|
-
message:
|
|
78
|
+
message: i("goodsSpu.freightAmountRequired"),
|
|
79
79
|
trigger: "blur"
|
|
80
80
|
}
|
|
81
81
|
],
|
|
@@ -88,64 +88,66 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
|
|
|
88
88
|
shelf: [
|
|
89
89
|
{
|
|
90
90
|
required: !0,
|
|
91
|
-
message:
|
|
91
|
+
message: i("goodsSpu.shelfRequired"),
|
|
92
92
|
trigger: "change"
|
|
93
93
|
}
|
|
94
94
|
]
|
|
95
|
-
}), S =
|
|
96
|
-
function T(
|
|
97
|
-
o.groupInfos =
|
|
98
|
-
const l =
|
|
95
|
+
}), S = P(!1);
|
|
96
|
+
function T(t) {
|
|
97
|
+
o.groupInfos = t;
|
|
98
|
+
const l = t.reduce((a, d) => a + (d.saleNum || 0) * (d.salePrice || 0), 0);
|
|
99
99
|
o.minPrice = l;
|
|
100
|
+
const n = t.reduce((a, d) => a + (d.marketPrice || 0), 0);
|
|
101
|
+
o.maxPrice = n, console.log(l, n);
|
|
100
102
|
}
|
|
101
|
-
g.query.spuId && b.findById({ spuId: g.query.spuId }).then(({ data:
|
|
102
|
-
Object.assign(o,
|
|
103
|
+
g.query.spuId && b.findById({ spuId: g.query.spuId }).then(({ data: t }) => {
|
|
104
|
+
Object.assign(o, t), S.value = !0;
|
|
103
105
|
});
|
|
104
106
|
const $ = async () => {
|
|
105
|
-
var
|
|
106
|
-
await ((
|
|
107
|
-
l && (g.query.spuId ? b.updateList(o).then((
|
|
108
|
-
|
|
109
|
-
message:
|
|
107
|
+
var t;
|
|
108
|
+
await ((t = V.value) == null ? void 0 : t.validate((l) => {
|
|
109
|
+
l && (g.query.spuId ? b.updateList(o).then((n) => {
|
|
110
|
+
n.status === 200 && (U({
|
|
111
|
+
message: i("common.submitSuccess"),
|
|
110
112
|
type: "success"
|
|
111
|
-
}),
|
|
112
|
-
}) : b.createList(o).then((
|
|
113
|
-
|
|
114
|
-
message:
|
|
113
|
+
}), w.closeTagView(g.fullPath, y, !1));
|
|
114
|
+
}) : b.createList(o).then((n) => {
|
|
115
|
+
n.status === 200 && (U({
|
|
116
|
+
message: i("common.submitSuccess"),
|
|
115
117
|
type: "success"
|
|
116
|
-
}),
|
|
118
|
+
}), w.closeTagView(g.fullPath, y, !1));
|
|
117
119
|
}));
|
|
118
120
|
}));
|
|
119
121
|
};
|
|
120
|
-
function E(
|
|
121
|
-
|
|
122
|
+
function E(t) {
|
|
123
|
+
t === "FREIGHT_FREE" && (o.freightAmount = 0);
|
|
122
124
|
}
|
|
123
|
-
return (
|
|
124
|
-
const
|
|
125
|
-
return h(),
|
|
125
|
+
return (t, l) => {
|
|
126
|
+
const n = p("el-input"), a = p("el-form-item"), d = p("el-col"), A = p("el-tree-select"), c = p("el-input-number"), q = p("jmash-enum-radio"), D = x, F = p("el-checkbox"), L = p("el-checkbox-group"), _ = p("el-row"), B = p("el-button"), G = p("el-form");
|
|
127
|
+
return h(), I("div", X, [
|
|
126
128
|
f("div", Z, [
|
|
127
129
|
e(G, {
|
|
128
130
|
ref_key: "goodsSpuFormRef",
|
|
129
131
|
ref: V,
|
|
130
|
-
model:
|
|
132
|
+
model: r(o),
|
|
131
133
|
"label-width": "120px",
|
|
132
134
|
rules: N
|
|
133
135
|
}, {
|
|
134
|
-
default:
|
|
136
|
+
default: s(() => [
|
|
135
137
|
l[13] || (l[13] = f("div", { class: "title-content" }, "基本信息", -1)),
|
|
136
138
|
e(_, null, {
|
|
137
|
-
default:
|
|
139
|
+
default: s(() => [
|
|
138
140
|
e(d, { span: 12 }, {
|
|
139
|
-
default:
|
|
141
|
+
default: s(() => [
|
|
140
142
|
e(a, {
|
|
141
|
-
label:
|
|
143
|
+
label: t.$t("goodsSpu.spuName"),
|
|
142
144
|
prop: "spuName"
|
|
143
145
|
}, {
|
|
144
|
-
default:
|
|
145
|
-
e(
|
|
146
|
-
modelValue:
|
|
147
|
-
"onUpdate:modelValue": l[0] || (l[0] = (u) =>
|
|
148
|
-
placeholder:
|
|
146
|
+
default: s(() => [
|
|
147
|
+
e(n, {
|
|
148
|
+
modelValue: r(o).spuName,
|
|
149
|
+
"onUpdate:modelValue": l[0] || (l[0] = (u) => r(o).spuName = u),
|
|
150
|
+
placeholder: t.$t("goodsSpu.spuNameRequired"),
|
|
149
151
|
maxlength: "60",
|
|
150
152
|
"show-word-limit": "",
|
|
151
153
|
clearable: ""
|
|
@@ -157,16 +159,16 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
|
|
|
157
159
|
_: 1
|
|
158
160
|
}),
|
|
159
161
|
e(d, { span: 12 }, {
|
|
160
|
-
default:
|
|
162
|
+
default: s(() => [
|
|
161
163
|
e(a, {
|
|
162
|
-
label:
|
|
164
|
+
label: t.$t("goodsSpu.spuCode"),
|
|
163
165
|
prop: "spuCode"
|
|
164
166
|
}, {
|
|
165
|
-
default:
|
|
166
|
-
e(
|
|
167
|
-
modelValue:
|
|
168
|
-
"onUpdate:modelValue": l[1] || (l[1] = (u) =>
|
|
169
|
-
placeholder:
|
|
167
|
+
default: s(() => [
|
|
168
|
+
e(n, {
|
|
169
|
+
modelValue: r(o).spuCode,
|
|
170
|
+
"onUpdate:modelValue": l[1] || (l[1] = (u) => r(o).spuCode = u),
|
|
171
|
+
placeholder: t.$t("goodsSpu.spuCodeRequired"),
|
|
170
172
|
maxlength: "15",
|
|
171
173
|
"show-word-limit": "",
|
|
172
174
|
clearable: ""
|
|
@@ -178,20 +180,20 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
|
|
|
178
180
|
_: 1
|
|
179
181
|
}),
|
|
180
182
|
e(d, { span: 12 }, {
|
|
181
|
-
default:
|
|
183
|
+
default: s(() => [
|
|
182
184
|
e(a, {
|
|
183
|
-
label:
|
|
185
|
+
label: t.$t("goodsSpu.categoryId"),
|
|
184
186
|
prop: "categoryIds"
|
|
185
187
|
}, {
|
|
186
|
-
default:
|
|
188
|
+
default: s(() => [
|
|
187
189
|
e(A, {
|
|
188
|
-
modelValue:
|
|
189
|
-
"onUpdate:modelValue": l[2] || (l[2] = (u) =>
|
|
190
|
-
data:
|
|
190
|
+
modelValue: r(o).categoryIds,
|
|
191
|
+
"onUpdate:modelValue": l[2] || (l[2] = (u) => r(o).categoryIds = u),
|
|
192
|
+
data: r(m).goodsCategoryListBizLayDict.values,
|
|
191
193
|
multiple: "",
|
|
192
194
|
"render-after-expand": !1,
|
|
193
195
|
"show-checkbox": "",
|
|
194
|
-
placeholder:
|
|
196
|
+
placeholder: t.$t("goodsSpu.categoryIdRequired"),
|
|
195
197
|
class: "w-full"
|
|
196
198
|
}, null, 8, ["modelValue", "data", "placeholder"])
|
|
197
199
|
]),
|
|
@@ -201,16 +203,16 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
|
|
|
201
203
|
_: 1
|
|
202
204
|
}),
|
|
203
205
|
e(d, { span: 12 }, {
|
|
204
|
-
default:
|
|
206
|
+
default: s(() => [
|
|
205
207
|
e(a, {
|
|
206
|
-
label:
|
|
208
|
+
label: t.$t("goodsSpu.saleNum"),
|
|
207
209
|
prop: "saleNum"
|
|
208
210
|
}, {
|
|
209
|
-
default:
|
|
211
|
+
default: s(() => [
|
|
210
212
|
e(c, {
|
|
211
|
-
modelValue:
|
|
212
|
-
"onUpdate:modelValue": l[3] || (l[3] = (u) =>
|
|
213
|
-
placeholder:
|
|
213
|
+
modelValue: r(o).saleNum,
|
|
214
|
+
"onUpdate:modelValue": l[3] || (l[3] = (u) => r(o).saleNum = u),
|
|
215
|
+
placeholder: t.$t("goodsSpu.saleNumRequired"),
|
|
214
216
|
class: "w-full",
|
|
215
217
|
min: 0,
|
|
216
218
|
controls: !1,
|
|
@@ -223,16 +225,16 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
|
|
|
223
225
|
_: 1
|
|
224
226
|
}),
|
|
225
227
|
e(d, { span: 12 }, {
|
|
226
|
-
default:
|
|
228
|
+
default: s(() => [
|
|
227
229
|
e(a, {
|
|
228
|
-
label:
|
|
230
|
+
label: t.$t("goodsSpu.freightType"),
|
|
229
231
|
prop: "freightType"
|
|
230
232
|
}, {
|
|
231
|
-
default:
|
|
233
|
+
default: s(() => [
|
|
232
234
|
e(q, {
|
|
233
|
-
modelValue:
|
|
234
|
-
"onUpdate:modelValue": l[4] || (l[4] = (u) =>
|
|
235
|
-
data:
|
|
235
|
+
modelValue: r(o).freightType,
|
|
236
|
+
"onUpdate:modelValue": l[4] || (l[4] = (u) => r(o).freightType = u),
|
|
237
|
+
data: r(m).freightTypeEnum.values,
|
|
236
238
|
onChange: E
|
|
237
239
|
}, null, 8, ["modelValue", "data"])
|
|
238
240
|
]),
|
|
@@ -242,21 +244,21 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
|
|
|
242
244
|
_: 1
|
|
243
245
|
}),
|
|
244
246
|
e(d, { span: 12 }, {
|
|
245
|
-
default:
|
|
247
|
+
default: s(() => [
|
|
246
248
|
e(a, {
|
|
247
|
-
label:
|
|
249
|
+
label: t.$t("goodsSpu.freightAmount"),
|
|
248
250
|
prop: "freightAmount"
|
|
249
251
|
}, {
|
|
250
|
-
default:
|
|
252
|
+
default: s(() => [
|
|
251
253
|
e(c, {
|
|
252
|
-
modelValue:
|
|
253
|
-
"onUpdate:modelValue": l[5] || (l[5] = (u) =>
|
|
254
|
-
readonly:
|
|
254
|
+
modelValue: r(o).freightAmount,
|
|
255
|
+
"onUpdate:modelValue": l[5] || (l[5] = (u) => r(o).freightAmount = u),
|
|
256
|
+
readonly: r(o).freightType === "FREIGHT_FREE",
|
|
255
257
|
precision: 2,
|
|
256
258
|
step: 0.1,
|
|
257
259
|
controls: !1,
|
|
258
260
|
min: 0,
|
|
259
|
-
placeholder:
|
|
261
|
+
placeholder: t.$t("goodsSpu.freightAmountRequired"),
|
|
260
262
|
class: "w-full"
|
|
261
263
|
}, null, 8, ["modelValue", "readonly", "placeholder"])
|
|
262
264
|
]),
|
|
@@ -266,20 +268,20 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
|
|
|
266
268
|
_: 1
|
|
267
269
|
}),
|
|
268
270
|
e(d, { span: 12 }, {
|
|
269
|
-
default:
|
|
271
|
+
default: s(() => [
|
|
270
272
|
e(a, {
|
|
271
|
-
label:
|
|
273
|
+
label: t.$t("goodsSpu.minPrice"),
|
|
272
274
|
prop: "minPrice"
|
|
273
275
|
}, {
|
|
274
|
-
default:
|
|
276
|
+
default: s(() => [
|
|
275
277
|
e(c, {
|
|
276
|
-
modelValue:
|
|
277
|
-
"onUpdate:modelValue": l[6] || (l[6] = (u) =>
|
|
278
|
+
modelValue: r(o).minPrice,
|
|
279
|
+
"onUpdate:modelValue": l[6] || (l[6] = (u) => r(o).minPrice = u),
|
|
278
280
|
precision: 2,
|
|
279
281
|
step: 0.1,
|
|
280
282
|
controls: !1,
|
|
281
283
|
min: 0,
|
|
282
|
-
placeholder:
|
|
284
|
+
placeholder: t.$t("goodsSpu.minPriceRequired"),
|
|
283
285
|
class: "w-full",
|
|
284
286
|
disabled: ""
|
|
285
287
|
}, null, 8, ["modelValue", "placeholder"])
|
|
@@ -290,21 +292,22 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
|
|
|
290
292
|
_: 1
|
|
291
293
|
}),
|
|
292
294
|
e(d, { span: 12 }, {
|
|
293
|
-
default:
|
|
295
|
+
default: s(() => [
|
|
294
296
|
e(a, {
|
|
295
|
-
label:
|
|
297
|
+
label: t.$t("goodsSpu.maxPrice"),
|
|
296
298
|
prop: "maxPrice"
|
|
297
299
|
}, {
|
|
298
|
-
default:
|
|
300
|
+
default: s(() => [
|
|
299
301
|
e(c, {
|
|
300
|
-
modelValue:
|
|
301
|
-
"onUpdate:modelValue": l[7] || (l[7] = (u) =>
|
|
302
|
+
modelValue: r(o).maxPrice,
|
|
303
|
+
"onUpdate:modelValue": l[7] || (l[7] = (u) => r(o).maxPrice = u),
|
|
302
304
|
precision: 2,
|
|
303
305
|
step: 0.1,
|
|
304
306
|
controls: !1,
|
|
305
307
|
min: 0,
|
|
306
|
-
placeholder:
|
|
307
|
-
class: "w-full"
|
|
308
|
+
placeholder: t.$t("goodsSpu.maxPriceRequired"),
|
|
309
|
+
class: "w-full",
|
|
310
|
+
disabled: ""
|
|
308
311
|
}, null, 8, ["modelValue", "placeholder"])
|
|
309
312
|
]),
|
|
310
313
|
_: 1
|
|
@@ -313,16 +316,16 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
|
|
|
313
316
|
_: 1
|
|
314
317
|
}),
|
|
315
318
|
e(d, { span: 24 }, {
|
|
316
|
-
default:
|
|
319
|
+
default: s(() => [
|
|
317
320
|
e(a, {
|
|
318
|
-
label:
|
|
321
|
+
label: t.$t("goodsSpu.picUrls"),
|
|
319
322
|
prop: "picUrls"
|
|
320
323
|
}, {
|
|
321
|
-
default:
|
|
324
|
+
default: s(() => [
|
|
322
325
|
f("div", ee, [
|
|
323
326
|
e(D, {
|
|
324
|
-
modelValue:
|
|
325
|
-
"onUpdate:modelValue": l[8] || (l[8] = (u) =>
|
|
327
|
+
modelValue: r(o).picUrls,
|
|
328
|
+
"onUpdate:modelValue": l[8] || (l[8] = (u) => r(o).picUrls = u),
|
|
326
329
|
limit: 6,
|
|
327
330
|
"list-type": "picture-card"
|
|
328
331
|
}, null, 8, ["modelValue"]),
|
|
@@ -335,16 +338,16 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
|
|
|
335
338
|
_: 1
|
|
336
339
|
}),
|
|
337
340
|
e(d, { span: 12 }, {
|
|
338
|
-
default:
|
|
341
|
+
default: s(() => [
|
|
339
342
|
e(a, {
|
|
340
|
-
label:
|
|
343
|
+
label: t.$t("goodsSpu.shelf"),
|
|
341
344
|
prop: "shelf"
|
|
342
345
|
}, {
|
|
343
|
-
default:
|
|
346
|
+
default: s(() => [
|
|
344
347
|
e(q, {
|
|
345
|
-
modelValue:
|
|
346
|
-
"onUpdate:modelValue": l[9] || (l[9] = (u) =>
|
|
347
|
-
data:
|
|
348
|
+
modelValue: r(o).shelf,
|
|
349
|
+
"onUpdate:modelValue": l[9] || (l[9] = (u) => r(o).shelf = u),
|
|
350
|
+
data: r(m).shelfDict.values
|
|
348
351
|
}, null, 8, ["modelValue", "data"])
|
|
349
352
|
]),
|
|
350
353
|
_: 1
|
|
@@ -353,24 +356,24 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
|
|
|
353
356
|
_: 1
|
|
354
357
|
}),
|
|
355
358
|
e(d, { span: 12 }, {
|
|
356
|
-
default:
|
|
359
|
+
default: s(() => [
|
|
357
360
|
e(a, {
|
|
358
|
-
label:
|
|
361
|
+
label: t.$t("goodsSpu.labelIds"),
|
|
359
362
|
prop: "labelIds"
|
|
360
363
|
}, {
|
|
361
|
-
default:
|
|
364
|
+
default: s(() => [
|
|
362
365
|
e(L, {
|
|
363
|
-
modelValue:
|
|
364
|
-
"onUpdate:modelValue": l[10] || (l[10] = (u) =>
|
|
366
|
+
modelValue: r(o).labelIds,
|
|
367
|
+
"onUpdate:modelValue": l[10] || (l[10] = (u) => r(o).labelIds = u),
|
|
365
368
|
class: "w-full"
|
|
366
369
|
}, {
|
|
367
|
-
default:
|
|
368
|
-
(h(!0),
|
|
370
|
+
default: s(() => [
|
|
371
|
+
(h(!0), I(M, null, O(r(m).labelListBizDict.values, (u) => (h(), k(F, {
|
|
369
372
|
key: u.key,
|
|
370
373
|
label: u.key
|
|
371
374
|
}, {
|
|
372
|
-
default:
|
|
373
|
-
|
|
375
|
+
default: s(() => [
|
|
376
|
+
v(H(u.value), 1)
|
|
374
377
|
]),
|
|
375
378
|
_: 2
|
|
376
379
|
}, 1032, ["label"]))), 128))
|
|
@@ -388,25 +391,25 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
|
|
|
388
391
|
}),
|
|
389
392
|
l[14] || (l[14] = f("div", { class: "title-content" }, "套装商品", -1)),
|
|
390
393
|
e(_, null, {
|
|
391
|
-
default:
|
|
392
|
-
!
|
|
394
|
+
default: s(() => [
|
|
395
|
+
!r(g).query.spuId || S.value ? (h(), k(W, {
|
|
393
396
|
key: 0,
|
|
394
|
-
form:
|
|
397
|
+
form: r(o),
|
|
395
398
|
onGetGoodsSku: T
|
|
396
|
-
}, null, 8, ["form"])) :
|
|
399
|
+
}, null, 8, ["form"])) : j("", !0)
|
|
397
400
|
]),
|
|
398
401
|
_: 1
|
|
399
402
|
}),
|
|
400
403
|
e(_, null, {
|
|
401
|
-
default:
|
|
404
|
+
default: s(() => [
|
|
402
405
|
e(a, null, {
|
|
403
|
-
default:
|
|
406
|
+
default: s(() => [
|
|
404
407
|
e(B, {
|
|
405
408
|
type: "primary",
|
|
406
409
|
onClick: $
|
|
407
410
|
}, {
|
|
408
|
-
default:
|
|
409
|
-
|
|
411
|
+
default: s(() => l[12] || (l[12] = [
|
|
412
|
+
v("保存", -1)
|
|
410
413
|
])),
|
|
411
414
|
_: 1,
|
|
412
415
|
__: [12]
|
|
@@ -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-Ba-YRVAR.mjs";
|
|
8
|
+
import { a as _ } from "./index-CIOmQi5q.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-D_Q4iyk2.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]
|
|
@@ -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 c } from "./index-
|
|
4
|
+
import { b as c } from "./index-CIOmQi5q.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
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as E, mergeModels as V, ref as B, reactive as N, useModel as F, resolveComponent as r,
|
|
1
|
+
import { defineComponent as E, mergeModels as V, ref as B, 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 w, toDisplayString as U } from "vue";
|
|
2
2
|
import { ElMessage as k } from "element-plus";
|
|
3
3
|
import { useI18n as A } from "vue-i18n";
|
|
4
|
-
import { g as p } from "./index-
|
|
4
|
+
import { g as p } from "./index-Dy5vhMgv.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",
|
|
@@ -59,7 +59,7 @@ const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
|
|
|
59
59
|
}
|
|
60
60
|
return (e, n) => {
|
|
61
61
|
const s = r("jmash-single-image-upload"), u = r("el-form-item"), c = r("el-col"), v = r("el-input"), R = r("el-row"), S = r("el-form"), I = r("el-button"), D = r("el-dialog");
|
|
62
|
-
return
|
|
62
|
+
return O(), K(D, {
|
|
63
63
|
modelValue: a.value,
|
|
64
64
|
"onUpdate:modelValue": n[2] || (n[2] = (m) => a.value = m),
|
|
65
65
|
onClose: h
|