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