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