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