xyvcard-goods 0.0.10 → 0.0.12
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-FCXD46Ef.mjs → edit-h0S6bHag.mjs} +3 -3
- package/dist/{index-C9LeLF51.mjs → index-BMlIwb1h.mjs} +162 -154
- package/dist/index.mjs +2 -2
- package/dist/{info-CScBSLKA.mjs → info-lDMLR1ZW.mjs} +1 -1
- package/dist/{skuForm-CRnWdE9n.mjs → skuForm-ChaaXJgn.mjs} +1 -1
- package/dist/{skuTable-Ck7bJzYP.mjs → skuTable-BBiyXctZ.mjs} +189 -173
- package/dist/style.css +1 -1
- package/dts/components/EnumRadio/index.vue.d.ts +3 -4
- package/dts/components/GoodsUpload/ImageUpload.vue.d.ts +18 -10
- package/package.json +18 -18
|
@@ -1,60 +1,61 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { D as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { defineComponent as O, ref as C, computed as q, watch as $, resolveComponent as v, openBlock as w, createElementBlock as U, createElementVNode as g, createVNode as n, withCtx as d, createTextVNode as S, createCommentVNode as F, Fragment as M, renderList as G, createBlock as x, toDisplayString as D, unref as z } from "vue";
|
|
2
|
+
import { D as K } from "./index-CKeHa-Cx.mjs";
|
|
3
|
+
import { fileApi as E } from "jmash-core";
|
|
4
|
+
const H = (a, h) => {
|
|
5
|
+
const s = a.__vccOpts || a;
|
|
6
|
+
for (const [u, _] of h)
|
|
7
|
+
s[u] = _;
|
|
7
8
|
return s;
|
|
8
9
|
};
|
|
9
|
-
function
|
|
10
|
-
const { optionValue:
|
|
10
|
+
function J(a, h = [], s) {
|
|
11
|
+
const { optionValue: u = "id", optionText: _ = "name" } = s || {}, k = [];
|
|
11
12
|
let b = 0;
|
|
12
|
-
const I = {},
|
|
13
|
-
if (
|
|
14
|
-
|
|
15
|
-
const { specValueList: o } =
|
|
13
|
+
const I = {}, y = Q(a);
|
|
14
|
+
if (a.length === 0) return k;
|
|
15
|
+
a.forEach((V) => {
|
|
16
|
+
const { specValueList: o } = V;
|
|
16
17
|
if (!o || o.length === 0) return !0;
|
|
17
18
|
b = (b || 1) * o.length;
|
|
18
|
-
}),
|
|
19
|
-
const { specs: o, ...t } =
|
|
20
|
-
I[o.map((
|
|
19
|
+
}), h.forEach((V) => {
|
|
20
|
+
const { specs: o, ...t } = V;
|
|
21
|
+
I[o.map((i) => `${i.specId}_${i.specValueId}`).join("|")] = t;
|
|
21
22
|
});
|
|
22
|
-
for (let
|
|
23
|
+
for (let V = 0; V < b; V++) {
|
|
23
24
|
const o = [], t = [];
|
|
24
|
-
|
|
25
|
-
const { specValueList: e } =
|
|
26
|
-
let
|
|
25
|
+
a.forEach((r, c) => {
|
|
26
|
+
const { specValueList: e } = r;
|
|
27
|
+
let m = {};
|
|
27
28
|
if (!e || e.length === 0) return !0;
|
|
28
29
|
if (e.length > 1) {
|
|
29
|
-
const
|
|
30
|
-
|
|
30
|
+
const f = Math.floor(V / y[c]) % e.length;
|
|
31
|
+
m = a[c].specValueList[f];
|
|
31
32
|
} else
|
|
32
|
-
|
|
33
|
-
!
|
|
34
|
-
specId:
|
|
35
|
-
specName:
|
|
36
|
-
specValueId:
|
|
37
|
-
specValueName:
|
|
33
|
+
m = a[c].specValueList[0];
|
|
34
|
+
!r[u] || !m[u] || (t.push(`${r[u]}_${m[u]}`), o.push({
|
|
35
|
+
specId: r[u],
|
|
36
|
+
specName: r[_],
|
|
37
|
+
specValueId: m[u],
|
|
38
|
+
specValueName: m[_]
|
|
38
39
|
}));
|
|
39
40
|
});
|
|
40
|
-
const { ...
|
|
41
|
-
k.push({ ...
|
|
41
|
+
const { ...i } = I[t.join("|")] || {};
|
|
42
|
+
k.push({ ...i, specs: o });
|
|
42
43
|
}
|
|
43
44
|
return k;
|
|
44
45
|
}
|
|
45
|
-
function
|
|
46
|
-
const
|
|
47
|
-
for (let s =
|
|
48
|
-
|
|
49
|
-
return
|
|
46
|
+
function Q(a) {
|
|
47
|
+
const h = [];
|
|
48
|
+
for (let s = a.length - 1; s >= 0; s--)
|
|
49
|
+
a[s + 1] && a[s + 1].specValueList ? h[s] = a[s + 1].specValueList.length * h[s + 1] || 1 : h[s] = 1;
|
|
50
|
+
return h;
|
|
50
51
|
}
|
|
51
|
-
function
|
|
52
|
-
return Array.from(new Set(
|
|
52
|
+
function L(a) {
|
|
53
|
+
return Array.from(new Set(a));
|
|
53
54
|
}
|
|
54
|
-
function
|
|
55
|
-
return
|
|
55
|
+
function R(a, h) {
|
|
56
|
+
return a = L(a), h = L(h), a.concat(h).filter((s) => !(a.includes(s) && h.includes(s)));
|
|
56
57
|
}
|
|
57
|
-
const
|
|
58
|
+
const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z = { class: "right-dis" }, ee = { class: "right-dis" }, le = { class: "right-dis" }, te = { class: "right-dis" }, oe = { class: "right-dis" }, se = { key: 0 }, ae = { key: 1 }, ne = /* @__PURE__ */ O({
|
|
58
59
|
__name: "skuTable",
|
|
59
60
|
props: {
|
|
60
61
|
specData: {
|
|
@@ -76,7 +77,7 @@ const Q = { key: 0 }, R = { class: "title-set" }, W = { class: "right-dis" }, X
|
|
|
76
77
|
}
|
|
77
78
|
},
|
|
78
79
|
emits: ["getGoodsSku", "getFormData"],
|
|
79
|
-
setup(
|
|
80
|
+
setup(a, { emit: h }) {
|
|
80
81
|
const s = C({
|
|
81
82
|
salePrice: 0,
|
|
82
83
|
marketPrice: 0,
|
|
@@ -84,49 +85,41 @@ const Q = { key: 0 }, R = { class: "title-set" }, W = { class: "right-dis" }, X
|
|
|
84
85
|
weight: 0,
|
|
85
86
|
volume: 0,
|
|
86
87
|
stock: 0
|
|
87
|
-
}),
|
|
88
|
-
let o =
|
|
89
|
-
specValues:
|
|
90
|
-
specIds:
|
|
91
|
-
(
|
|
88
|
+
}), u = C([]), _ = h, k = a, b = q(() => {
|
|
89
|
+
let o = J(k.specData, [], {}).map((i) => ({
|
|
90
|
+
specValues: i.specs,
|
|
91
|
+
specIds: i.specs.reduce(
|
|
92
|
+
(r, c, e) => `${r}${c.specId}-${c.specValueId}${e === i.specs.length - 1 ? "" : "_"}`,
|
|
92
93
|
""
|
|
93
94
|
)
|
|
94
|
-
})), t = k.goodsSku.map((
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
95
|
+
})), t = k.goodsSku.map((i) => {
|
|
96
|
+
var r;
|
|
97
|
+
return {
|
|
98
|
+
...i,
|
|
99
|
+
specIds: (r = i.specValues) == null ? void 0 : r.reduce(
|
|
100
|
+
(c, e, m) => `${c}${e.specId}-${e.specValueId}${m === i.specValues.length - 1 ? "" : "_"}`,
|
|
101
|
+
""
|
|
102
|
+
)
|
|
103
|
+
};
|
|
104
|
+
});
|
|
105
|
+
return o.forEach((i) => {
|
|
106
|
+
t.forEach((r) => {
|
|
107
|
+
let c = i.specIds.split("_"), e = r.specIds.split("_"), m = !0;
|
|
108
|
+
c.forEach((f) => {
|
|
109
|
+
e.find((P) => P == f) || (m = !1);
|
|
110
|
+
}), m && (i.picUrl = r.picUrl ? r.picUrl : "", i.skuCode = r.skuCode ? r.skuCode : void 0, i.skuId = r.skuId ? r.skuId : void 0, i.salePrice = r.salePrice, i.marketPrice = r.marketPrice, i.costPrice = r.costPrice, i.stock = r.stock, i.weight = r.weight, i.volume = r.volume, i.status = r.status);
|
|
107
111
|
});
|
|
108
112
|
}), o;
|
|
109
113
|
});
|
|
110
|
-
|
|
114
|
+
$(
|
|
111
115
|
b,
|
|
112
116
|
(o, t) => {
|
|
113
|
-
var
|
|
114
|
-
if (!o || !o.length) return
|
|
117
|
+
var r, c;
|
|
118
|
+
if (!o || !o.length) return u.value = [];
|
|
115
119
|
if (!t || !t.length)
|
|
116
|
-
return
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
skuCode: e.skuCode ? e.skuCode : void 0,
|
|
120
|
-
salePrice: e.salePrice ? e.salePrice : 0,
|
|
121
|
-
marketPrice: e.marketPrice ? e.marketPrice : void 0,
|
|
122
|
-
costPrice: e.costPrice ? e.costPrice : void 0,
|
|
123
|
-
stock: e.stock ? e.stock : 0,
|
|
124
|
-
weight: e.weight ? e.weight : void 0,
|
|
125
|
-
volume: e.volume ? e.volume : void 0,
|
|
126
|
-
status: e.status ? e.status : !0
|
|
127
|
-
}));
|
|
128
|
-
if (((c = o[0].specValues) == null ? void 0 : c.length) !== ((i = t[0].specValues) == null ? void 0 : i.length))
|
|
129
|
-
return r.value = o.map((e) => ({
|
|
120
|
+
return;
|
|
121
|
+
if (((r = o[0].specValues) == null ? void 0 : r.length) !== ((c = t[0].specValues) == null ? void 0 : c.length))
|
|
122
|
+
return u.value = o.map((e) => ({
|
|
130
123
|
...e,
|
|
131
124
|
picUrl: "",
|
|
132
125
|
skuCode: void 0,
|
|
@@ -139,19 +132,19 @@ const Q = { key: 0 }, R = { class: "title-set" }, W = { class: "right-dis" }, X
|
|
|
139
132
|
status: !0
|
|
140
133
|
}));
|
|
141
134
|
if (o.length === t.length)
|
|
142
|
-
return
|
|
143
|
-
...
|
|
135
|
+
return u.value = o.map((e, m) => ({
|
|
136
|
+
...u.value[m],
|
|
144
137
|
...e
|
|
145
138
|
}));
|
|
146
|
-
const
|
|
139
|
+
const i = I(o, t);
|
|
147
140
|
if (o.length > t.length) {
|
|
148
141
|
let e = [];
|
|
149
|
-
o.forEach((
|
|
150
|
-
const
|
|
151
|
-
(P) => P.specIds ===
|
|
142
|
+
o.forEach((m) => {
|
|
143
|
+
const f = u.value.find(
|
|
144
|
+
(P) => P.specIds === m.specIds
|
|
152
145
|
);
|
|
153
|
-
|
|
154
|
-
...
|
|
146
|
+
f ? e.push(f) : e.push({
|
|
147
|
+
...m,
|
|
155
148
|
picUrl: "",
|
|
156
149
|
skuCode: void 0,
|
|
157
150
|
salePrice: 0,
|
|
@@ -162,18 +155,30 @@ const Q = { key: 0 }, R = { class: "title-set" }, W = { class: "right-dis" }, X
|
|
|
162
155
|
volume: void 0,
|
|
163
156
|
status: !0
|
|
164
157
|
});
|
|
165
|
-
}),
|
|
158
|
+
}), u.value = e;
|
|
166
159
|
} else
|
|
167
|
-
|
|
168
|
-
(e) => !
|
|
160
|
+
u.value = u.value.filter(
|
|
161
|
+
(e) => !i.includes(e.specIds)
|
|
169
162
|
);
|
|
163
|
+
u.value = o.map((e) => ({
|
|
164
|
+
...e,
|
|
165
|
+
picUrl: e.picUrl ? e.picUrl : "",
|
|
166
|
+
skuCode: e.skuCode ? e.skuCode : void 0,
|
|
167
|
+
salePrice: e.salePrice ? e.salePrice : 0,
|
|
168
|
+
marketPrice: e.marketPrice ? e.marketPrice : void 0,
|
|
169
|
+
costPrice: e.costPrice ? e.costPrice : void 0,
|
|
170
|
+
stock: e.stock ? e.stock : 0,
|
|
171
|
+
weight: e.weight ? e.weight : void 0,
|
|
172
|
+
volume: e.volume ? e.volume : void 0,
|
|
173
|
+
status: e.status ? e.status : !0
|
|
174
|
+
}));
|
|
170
175
|
},
|
|
171
176
|
{
|
|
172
177
|
deep: !0,
|
|
173
178
|
immediate: !0
|
|
174
179
|
}
|
|
175
|
-
),
|
|
176
|
-
|
|
180
|
+
), $(
|
|
181
|
+
u,
|
|
177
182
|
(o) => {
|
|
178
183
|
_("getFormData", o);
|
|
179
184
|
},
|
|
@@ -183,38 +188,38 @@ const Q = { key: 0 }, R = { class: "title-set" }, W = { class: "right-dis" }, X
|
|
|
183
188
|
}
|
|
184
189
|
);
|
|
185
190
|
function I(o, t) {
|
|
186
|
-
return o = o.map((
|
|
191
|
+
return o = o.map((i) => i.specIds), t = t.map((i) => i.specIds), R(o, t);
|
|
187
192
|
}
|
|
188
|
-
function
|
|
189
|
-
|
|
193
|
+
function y() {
|
|
194
|
+
u.value.forEach((o) => {
|
|
190
195
|
o.salePrice = s.value.salePrice, o.marketPrice = s.value.marketPrice, o.costPrice = s.value.costPrice, o.weight = s.value.weight, o.volume = s.value.volume, o.stock = s.value.stock;
|
|
191
196
|
});
|
|
192
197
|
}
|
|
193
|
-
function
|
|
198
|
+
function V(o, t) {
|
|
194
199
|
t.picUrl = o;
|
|
195
200
|
}
|
|
196
201
|
return (o, t) => {
|
|
197
|
-
const
|
|
198
|
-
return w(), U(
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
+
const i = v("Setting"), r = v("el-icon"), c = v("el-input-number"), e = v("el-tooltip"), m = v("el-button"), f = v("el-table-column"), P = v("jmash-single-image-upload"), j = v("el-image"), A = v("el-input"), N = v("el-switch"), T = v("el-table");
|
|
203
|
+
return w(), U("div", null, [
|
|
204
|
+
a.isSettingShow ? (w(), U("div", W, [
|
|
205
|
+
g("div", X, [
|
|
206
|
+
n(r, null, {
|
|
202
207
|
default: d(() => [
|
|
203
|
-
|
|
208
|
+
n(i)
|
|
204
209
|
]),
|
|
205
210
|
_: 1
|
|
206
211
|
}),
|
|
207
|
-
t[6] || (t[6] =
|
|
212
|
+
t[6] || (t[6] = S(" 批量设置 "))
|
|
208
213
|
]),
|
|
209
|
-
|
|
210
|
-
|
|
214
|
+
g("span", Y, [
|
|
215
|
+
n(e, {
|
|
211
216
|
class: "box-item",
|
|
212
217
|
effect: "dark",
|
|
213
218
|
content: "销售价(元)",
|
|
214
219
|
placement: "top-start"
|
|
215
220
|
}, {
|
|
216
221
|
default: d(() => [
|
|
217
|
-
|
|
222
|
+
n(c, {
|
|
218
223
|
modelValue: s.value.salePrice,
|
|
219
224
|
"onUpdate:modelValue": t[0] || (t[0] = (l) => s.value.salePrice = l),
|
|
220
225
|
precision: 2,
|
|
@@ -226,15 +231,15 @@ const Q = { key: 0 }, R = { class: "title-set" }, W = { class: "right-dis" }, X
|
|
|
226
231
|
_: 1
|
|
227
232
|
})
|
|
228
233
|
]),
|
|
229
|
-
|
|
230
|
-
|
|
234
|
+
g("span", Z, [
|
|
235
|
+
n(e, {
|
|
231
236
|
class: "box-item",
|
|
232
237
|
effect: "dark",
|
|
233
238
|
content: "市场价(元)",
|
|
234
239
|
placement: "top-start"
|
|
235
240
|
}, {
|
|
236
241
|
default: d(() => [
|
|
237
|
-
|
|
242
|
+
n(c, {
|
|
238
243
|
modelValue: s.value.marketPrice,
|
|
239
244
|
"onUpdate:modelValue": t[1] || (t[1] = (l) => s.value.marketPrice = l),
|
|
240
245
|
precision: 2,
|
|
@@ -246,15 +251,15 @@ const Q = { key: 0 }, R = { class: "title-set" }, W = { class: "right-dis" }, X
|
|
|
246
251
|
_: 1
|
|
247
252
|
})
|
|
248
253
|
]),
|
|
249
|
-
|
|
250
|
-
|
|
254
|
+
g("span", ee, [
|
|
255
|
+
n(e, {
|
|
251
256
|
class: "box-item",
|
|
252
257
|
effect: "dark",
|
|
253
258
|
content: "成本价(元)",
|
|
254
259
|
placement: "top-start"
|
|
255
260
|
}, {
|
|
256
261
|
default: d(() => [
|
|
257
|
-
|
|
262
|
+
n(c, {
|
|
258
263
|
modelValue: s.value.costPrice,
|
|
259
264
|
"onUpdate:modelValue": t[2] || (t[2] = (l) => s.value.costPrice = l),
|
|
260
265
|
precision: 2,
|
|
@@ -266,15 +271,15 @@ const Q = { key: 0 }, R = { class: "title-set" }, W = { class: "right-dis" }, X
|
|
|
266
271
|
_: 1
|
|
267
272
|
})
|
|
268
273
|
]),
|
|
269
|
-
|
|
270
|
-
|
|
274
|
+
g("span", le, [
|
|
275
|
+
n(e, {
|
|
271
276
|
class: "box-item",
|
|
272
277
|
effect: "dark",
|
|
273
278
|
content: "重量(kg)",
|
|
274
279
|
placement: "top-start"
|
|
275
280
|
}, {
|
|
276
281
|
default: d(() => [
|
|
277
|
-
|
|
282
|
+
n(c, {
|
|
278
283
|
modelValue: s.value.weight,
|
|
279
284
|
"onUpdate:modelValue": t[3] || (t[3] = (l) => s.value.weight = l),
|
|
280
285
|
precision: 2,
|
|
@@ -286,15 +291,15 @@ const Q = { key: 0 }, R = { class: "title-set" }, W = { class: "right-dis" }, X
|
|
|
286
291
|
_: 1
|
|
287
292
|
})
|
|
288
293
|
]),
|
|
289
|
-
|
|
290
|
-
|
|
294
|
+
g("span", te, [
|
|
295
|
+
n(e, {
|
|
291
296
|
class: "box-item",
|
|
292
297
|
effect: "dark",
|
|
293
298
|
content: "体积(m³)",
|
|
294
299
|
placement: "top-start"
|
|
295
300
|
}, {
|
|
296
301
|
default: d(() => [
|
|
297
|
-
|
|
302
|
+
n(c, {
|
|
298
303
|
modelValue: s.value.volume,
|
|
299
304
|
"onUpdate:modelValue": t[4] || (t[4] = (l) => s.value.volume = l),
|
|
300
305
|
precision: 2,
|
|
@@ -306,15 +311,15 @@ const Q = { key: 0 }, R = { class: "title-set" }, W = { class: "right-dis" }, X
|
|
|
306
311
|
_: 1
|
|
307
312
|
})
|
|
308
313
|
]),
|
|
309
|
-
|
|
310
|
-
|
|
314
|
+
g("span", oe, [
|
|
315
|
+
n(e, {
|
|
311
316
|
class: "box-item",
|
|
312
317
|
effect: "dark",
|
|
313
318
|
content: "库存",
|
|
314
319
|
placement: "top-start"
|
|
315
320
|
}, {
|
|
316
321
|
default: d(() => [
|
|
317
|
-
|
|
322
|
+
n(c, {
|
|
318
323
|
modelValue: s.value.stock,
|
|
319
324
|
"onUpdate:modelValue": t[5] || (t[5] = (l) => s.value.stock = l),
|
|
320
325
|
precision: 0,
|
|
@@ -326,211 +331,222 @@ const Q = { key: 0 }, R = { class: "title-set" }, W = { class: "right-dis" }, X
|
|
|
326
331
|
_: 1
|
|
327
332
|
})
|
|
328
333
|
]),
|
|
329
|
-
|
|
334
|
+
n(m, {
|
|
330
335
|
type: "primary",
|
|
331
336
|
size: "small",
|
|
332
|
-
onClick:
|
|
337
|
+
onClick: y
|
|
333
338
|
}, {
|
|
334
339
|
default: d(() => t[7] || (t[7] = [
|
|
335
|
-
|
|
340
|
+
S("设置")
|
|
336
341
|
])),
|
|
337
342
|
_: 1
|
|
338
343
|
})
|
|
339
|
-
])) :
|
|
340
|
-
|
|
341
|
-
data:
|
|
344
|
+
])) : F("", !0),
|
|
345
|
+
n(T, {
|
|
346
|
+
data: u.value,
|
|
342
347
|
class: "w-full top-dis"
|
|
343
348
|
}, {
|
|
344
349
|
default: d(() => [
|
|
345
|
-
|
|
346
|
-
(w(!0), U(
|
|
350
|
+
n(f, { type: "index" }),
|
|
351
|
+
(w(!0), U(M, null, G(a.specData, (l, p) => (w(), x(f, {
|
|
347
352
|
key: l.id,
|
|
348
353
|
prop: l.id,
|
|
349
354
|
label: l.name
|
|
350
355
|
}, {
|
|
351
|
-
default: d((
|
|
352
|
-
|
|
356
|
+
default: d((B) => [
|
|
357
|
+
S(D(B.row.specValues[p].specValueName), 1)
|
|
353
358
|
]),
|
|
354
359
|
_: 2
|
|
355
360
|
}, 1032, ["prop", "label"]))), 128)),
|
|
356
|
-
|
|
361
|
+
n(f, {
|
|
357
362
|
prop: "picUrl",
|
|
358
363
|
label: "图片"
|
|
359
364
|
}, {
|
|
360
365
|
default: d((l) => [
|
|
361
|
-
a(P, {
|
|
366
|
+
a.isSettingShow ? (w(), x(P, {
|
|
367
|
+
key: 0,
|
|
362
368
|
"picture-url": l.row.picUrl,
|
|
363
|
-
onImageSrc: (p) =>
|
|
364
|
-
}, null, 8, ["picture-url", "onImageSrc"])
|
|
369
|
+
onImageSrc: (p) => V(p, l.row)
|
|
370
|
+
}, null, 8, ["picture-url", "onImageSrc"])) : (w(), x(j, {
|
|
371
|
+
key: 1,
|
|
372
|
+
"preview-teleported": "",
|
|
373
|
+
style: { width: "80px", height: "80px" },
|
|
374
|
+
src: z(E).imageUrl(l.row.picUrl, 80, 80),
|
|
375
|
+
"zoom-rate": 1.2,
|
|
376
|
+
"max-scale": 7,
|
|
377
|
+
"min-scale": 0.2,
|
|
378
|
+
"preview-src-list": [z(E).imageUrl(l.row.picUrl)],
|
|
379
|
+
fit: "cover"
|
|
380
|
+
}, null, 8, ["src", "preview-src-list"]))
|
|
365
381
|
]),
|
|
366
382
|
_: 1
|
|
367
383
|
}),
|
|
368
|
-
|
|
384
|
+
n(f, {
|
|
369
385
|
prop: "salePrice",
|
|
370
386
|
label: "销售价(元)",
|
|
371
387
|
width: "150"
|
|
372
388
|
}, {
|
|
373
389
|
header: d(() => t[8] || (t[8] = [
|
|
374
|
-
|
|
375
|
-
|
|
390
|
+
g("span", { class: "required_red" }, "*", -1),
|
|
391
|
+
g("span", null, "销售价(元)", -1)
|
|
376
392
|
])),
|
|
377
393
|
default: d((l) => [
|
|
378
|
-
|
|
379
|
-
|
|
394
|
+
g("span", null, [
|
|
395
|
+
n(c, {
|
|
380
396
|
modelValue: l.row.salePrice,
|
|
381
397
|
"onUpdate:modelValue": (p) => l.row.salePrice = p,
|
|
382
398
|
precision: 2,
|
|
383
399
|
size: "small",
|
|
384
400
|
controls: !1,
|
|
385
401
|
class: "w-full",
|
|
386
|
-
disabled: !
|
|
402
|
+
disabled: !a.isSettingShow
|
|
387
403
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
388
404
|
])
|
|
389
405
|
]),
|
|
390
406
|
_: 1
|
|
391
407
|
}),
|
|
392
|
-
|
|
408
|
+
n(f, {
|
|
393
409
|
prop: "marketPrice",
|
|
394
410
|
label: "市场价(元)"
|
|
395
411
|
}, {
|
|
396
412
|
default: d((l) => [
|
|
397
|
-
|
|
398
|
-
|
|
413
|
+
g("span", null, [
|
|
414
|
+
n(c, {
|
|
399
415
|
modelValue: l.row.marketPrice,
|
|
400
416
|
"onUpdate:modelValue": (p) => l.row.marketPrice = p,
|
|
401
417
|
precision: 2,
|
|
402
418
|
size: "small",
|
|
403
419
|
controls: !1,
|
|
404
420
|
class: "w-full",
|
|
405
|
-
disabled: !
|
|
421
|
+
disabled: !a.isSettingShow
|
|
406
422
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
407
423
|
])
|
|
408
424
|
]),
|
|
409
425
|
_: 1
|
|
410
426
|
}),
|
|
411
|
-
|
|
427
|
+
n(f, {
|
|
412
428
|
prop: "costPrice",
|
|
413
429
|
label: "成本价(元)"
|
|
414
430
|
}, {
|
|
415
431
|
default: d((l) => [
|
|
416
|
-
|
|
417
|
-
|
|
432
|
+
g("span", null, [
|
|
433
|
+
n(c, {
|
|
418
434
|
modelValue: l.row.costPrice,
|
|
419
435
|
"onUpdate:modelValue": (p) => l.row.costPrice = p,
|
|
420
436
|
precision: 2,
|
|
421
437
|
size: "small",
|
|
422
438
|
controls: !1,
|
|
423
439
|
class: "w-full",
|
|
424
|
-
disabled: !
|
|
440
|
+
disabled: !a.isSettingShow
|
|
425
441
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
426
442
|
])
|
|
427
443
|
]),
|
|
428
444
|
_: 1
|
|
429
445
|
}),
|
|
430
|
-
|
|
446
|
+
n(f, {
|
|
431
447
|
prop: "weight",
|
|
432
448
|
label: "重量(kg)"
|
|
433
449
|
}, {
|
|
434
450
|
default: d((l) => [
|
|
435
|
-
|
|
436
|
-
|
|
451
|
+
g("span", null, [
|
|
452
|
+
n(c, {
|
|
437
453
|
modelValue: l.row.weight,
|
|
438
454
|
"onUpdate:modelValue": (p) => l.row.weight = p,
|
|
439
455
|
precision: 2,
|
|
440
456
|
size: "small",
|
|
441
457
|
controls: !1,
|
|
442
458
|
class: "w-full",
|
|
443
|
-
disabled: !
|
|
459
|
+
disabled: !a.isSettingShow
|
|
444
460
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
445
461
|
])
|
|
446
462
|
]),
|
|
447
463
|
_: 1
|
|
448
464
|
}),
|
|
449
|
-
|
|
465
|
+
n(f, {
|
|
450
466
|
prop: "volume",
|
|
451
467
|
label: "体积(m³)"
|
|
452
468
|
}, {
|
|
453
469
|
default: d((l) => [
|
|
454
|
-
|
|
455
|
-
|
|
470
|
+
g("span", null, [
|
|
471
|
+
n(c, {
|
|
456
472
|
modelValue: l.row.volume,
|
|
457
473
|
"onUpdate:modelValue": (p) => l.row.volume = p,
|
|
458
474
|
precision: 2,
|
|
459
475
|
size: "small",
|
|
460
476
|
controls: !1,
|
|
461
477
|
class: "w-full",
|
|
462
|
-
disabled: !
|
|
478
|
+
disabled: !a.isSettingShow
|
|
463
479
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
464
480
|
])
|
|
465
481
|
]),
|
|
466
482
|
_: 1
|
|
467
483
|
}),
|
|
468
|
-
|
|
484
|
+
n(f, {
|
|
469
485
|
prop: "stock",
|
|
470
486
|
label: "库存"
|
|
471
487
|
}, {
|
|
472
488
|
header: d(() => t[9] || (t[9] = [
|
|
473
|
-
|
|
474
|
-
|
|
489
|
+
g("span", { class: "required_red" }, "*", -1),
|
|
490
|
+
g("span", null, "库存", -1)
|
|
475
491
|
])),
|
|
476
492
|
default: d((l) => [
|
|
477
|
-
|
|
478
|
-
|
|
493
|
+
g("span", null, [
|
|
494
|
+
n(c, {
|
|
479
495
|
modelValue: l.row.stock,
|
|
480
496
|
"onUpdate:modelValue": (p) => l.row.stock = p,
|
|
481
497
|
precision: 2,
|
|
482
498
|
size: "small",
|
|
483
499
|
controls: !1,
|
|
484
500
|
class: "w-full",
|
|
485
|
-
disabled: !
|
|
501
|
+
disabled: !a.isSettingShow
|
|
486
502
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
487
503
|
])
|
|
488
504
|
]),
|
|
489
505
|
_: 1
|
|
490
506
|
}),
|
|
491
|
-
|
|
507
|
+
n(f, {
|
|
492
508
|
prop: "skuCode",
|
|
493
509
|
label: "sku编码"
|
|
494
510
|
}, {
|
|
495
511
|
default: d((l) => [
|
|
496
|
-
|
|
497
|
-
|
|
512
|
+
g("span", null, [
|
|
513
|
+
n(A, {
|
|
498
514
|
modelValue: l.row.skuCode,
|
|
499
515
|
"onUpdate:modelValue": (p) => l.row.skuCode = p,
|
|
500
516
|
size: "small",
|
|
501
|
-
disabled: !
|
|
517
|
+
disabled: !a.isSettingShow
|
|
502
518
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
503
519
|
])
|
|
504
520
|
]),
|
|
505
521
|
_: 1
|
|
506
522
|
}),
|
|
507
|
-
|
|
523
|
+
n(f, {
|
|
508
524
|
prop: "status",
|
|
509
525
|
label: "是否上架",
|
|
510
526
|
width: "80"
|
|
511
527
|
}, {
|
|
512
528
|
default: d((l) => [
|
|
513
|
-
|
|
514
|
-
|
|
529
|
+
a.isSettingShow ? (w(), U("span", se, [
|
|
530
|
+
n(N, {
|
|
515
531
|
modelValue: l.row.status,
|
|
516
532
|
"onUpdate:modelValue": (p) => l.row.status = p
|
|
517
533
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
518
|
-
])) : (w(), U("span",
|
|
534
|
+
])) : (w(), U("span", ae, D(z(K).shelfDict.getValue(l.row.status)), 1))
|
|
519
535
|
]),
|
|
520
536
|
_: 1
|
|
521
537
|
})
|
|
522
538
|
]),
|
|
523
539
|
_: 1
|
|
524
540
|
}, 8, ["data"])
|
|
525
|
-
]
|
|
541
|
+
]);
|
|
526
542
|
};
|
|
527
543
|
}
|
|
528
|
-
}),
|
|
544
|
+
}), ie = /* @__PURE__ */ H(ne, [["__scopeId", "data-v-84542ec3"]]), de = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
529
545
|
__proto__: null,
|
|
530
|
-
default:
|
|
546
|
+
default: ie
|
|
531
547
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
532
548
|
export {
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
549
|
+
H as _,
|
|
550
|
+
de as a,
|
|
551
|
+
ie as s
|
|
536
552
|
};
|