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