xyvcard-goods 0.0.19 → 0.0.20
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-Bb2XgE0h.mjs +590 -0
- package/dist/edit-BcokSKfN.mjs +183 -0
- package/dist/{edit-E57LIt5x.mjs → edit-Cj13W2TC.mjs} +1 -1
- package/dist/edit-DxnsmaXV.mjs +186 -0
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BHplO2tN.mjs → edit.vue_vue_type_script_setup_true_lang-D2w1583D.mjs} +1 -1
- package/dist/{goodsList-0TMcPn_Q.mjs → goodsList-DOXK1EwK.mjs} +1 -1
- package/dist/goodsList.vue_vue_type_script_setup_true_lang-COJVlEjX.mjs +713 -0
- package/dist/index-BmOxm1P2.mjs +324 -0
- package/dist/index-C3FT_Oe7.mjs +318 -0
- package/dist/{index-CnyW3rxw.mjs → index-CGAoZY87.mjs} +2 -2
- package/dist/index-D3w33Nba.mjs +301 -0
- package/dist/{index-nSAowuoJ.mjs → index-DAJiqOCh.mjs} +2 -2
- package/dist/index-jTDhsbYM.mjs +141 -0
- package/dist/index-r0u-27m7.mjs +141 -0
- package/dist/index.mjs +163 -149
- package/dist/info-DImlMNq0.mjs +365 -0
- package/dist/{skuForm-DyYIl6H4.mjs → skuForm-Bt3arW0s.mjs} +154 -106
- package/dist/skuTable-Ahc3WlPp.mjs +639 -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/lang/goods/zh-cn.d.ts +18 -4
- package/package.json +2 -2
- 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
|
@@ -0,0 +1,639 @@
|
|
|
1
|
+
import { defineComponent as T, ref as C, computed as F, watch as $, resolveComponent as g, openBlock as P, createElementBlock as b, createElementVNode as u, createVNode as a, withCtx as d, createTextVNode as y, createCommentVNode as M, Fragment as G, renderList as K, createBlock as z, toDisplayString as D, unref as x } from "vue";
|
|
2
|
+
import { D as O } from "./index-D3w33Nba.mjs";
|
|
3
|
+
import { fileApi as E } from "jmash-core";
|
|
4
|
+
import { _ as H } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
5
|
+
function J(n, h = [], o) {
|
|
6
|
+
const { optionValue: f = "id", optionText: U = "name" } = o || {}, w = [];
|
|
7
|
+
let k = 0;
|
|
8
|
+
const I = {}, S = Q(n);
|
|
9
|
+
if (n.length === 0) return w;
|
|
10
|
+
n.forEach((v) => {
|
|
11
|
+
const { specValueList: t } = v;
|
|
12
|
+
if (!t || t.length === 0) return !0;
|
|
13
|
+
k = (k || 1) * t.length;
|
|
14
|
+
}), h.forEach((v) => {
|
|
15
|
+
const { specs: t, ...s } = v;
|
|
16
|
+
I[t.map((i) => `${i.specId}_${i.specValueId}`).join("|")] = s;
|
|
17
|
+
});
|
|
18
|
+
for (let v = 0; v < k; v++) {
|
|
19
|
+
const t = [], s = [];
|
|
20
|
+
n.forEach((r, c) => {
|
|
21
|
+
const { specValueList: l } = r;
|
|
22
|
+
let V = {};
|
|
23
|
+
if (!l || l.length === 0) return !0;
|
|
24
|
+
if (l.length > 1) {
|
|
25
|
+
const m = Math.floor(v / S[c]) % l.length;
|
|
26
|
+
V = n[c].specValueList[m];
|
|
27
|
+
} else
|
|
28
|
+
V = n[c].specValueList[0];
|
|
29
|
+
!r[f] || !V[f] || (s.push(`${r[f]}_${V[f]}`), t.push({
|
|
30
|
+
specId: r[f],
|
|
31
|
+
specName: r[U],
|
|
32
|
+
specValueId: V[f],
|
|
33
|
+
specValueName: V[U]
|
|
34
|
+
}));
|
|
35
|
+
});
|
|
36
|
+
const { ...i } = I[s.join("|")] || {};
|
|
37
|
+
w.push({ ...i, specs: t });
|
|
38
|
+
}
|
|
39
|
+
return w;
|
|
40
|
+
}
|
|
41
|
+
function Q(n) {
|
|
42
|
+
const h = [];
|
|
43
|
+
for (let o = n.length - 1; o >= 0; o--)
|
|
44
|
+
n[o + 1] && n[o + 1].specValueList ? h[o] = n[o + 1].specValueList.length * h[o + 1] || 1 : h[o] = 1;
|
|
45
|
+
return h;
|
|
46
|
+
}
|
|
47
|
+
function L(n) {
|
|
48
|
+
return Array.from(new Set(n));
|
|
49
|
+
}
|
|
50
|
+
function R(n, h) {
|
|
51
|
+
return n = L(n), h = L(h), n.concat(h).filter((o) => !(n.includes(o) && h.includes(o)));
|
|
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" }, se = { class: "right-dis" }, ae = { class: "right-dis" }, te = { class: "right-dis" }, oe = { class: "right-dis" }, ie = { key: 0 }, ne = { key: 1 }, re = /* @__PURE__ */ T({
|
|
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(n, { emit: h }) {
|
|
76
|
+
const o = C({
|
|
77
|
+
salePrice: 0,
|
|
78
|
+
marketPrice: 0,
|
|
79
|
+
costPrice: 0,
|
|
80
|
+
weight: 0,
|
|
81
|
+
volume: 0,
|
|
82
|
+
stock: 0,
|
|
83
|
+
salePriceV2: 0,
|
|
84
|
+
salePriceV3: 0
|
|
85
|
+
}), f = C([]), U = h, w = n, k = F(() => {
|
|
86
|
+
let t = J(w.specData, [], {}).map((i) => ({
|
|
87
|
+
specValues: i.specs,
|
|
88
|
+
specIds: i.specs.reduce(
|
|
89
|
+
(r, c, l) => `${r}${c.specId}-${c.specValueId}${l === i.specs.length - 1 ? "" : "_"}`,
|
|
90
|
+
""
|
|
91
|
+
)
|
|
92
|
+
})), s = w.goodsSku.map((i) => {
|
|
93
|
+
var r;
|
|
94
|
+
return {
|
|
95
|
+
...i,
|
|
96
|
+
specIds: (r = i.specValues) == null ? void 0 : r.reduce(
|
|
97
|
+
(c, l, V) => `${c}${l.specId}-${l.specValueId}${V === i.specValues.length - 1 ? "" : "_"}`,
|
|
98
|
+
""
|
|
99
|
+
)
|
|
100
|
+
};
|
|
101
|
+
});
|
|
102
|
+
return t.forEach((i) => {
|
|
103
|
+
s.forEach((r) => {
|
|
104
|
+
let c = i.specIds.split("_"), l = r.specIds.split("_"), V = !0;
|
|
105
|
+
c.forEach((m) => {
|
|
106
|
+
l.find((_) => _ == m) || (V = !1);
|
|
107
|
+
}), V && (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.salePriceV2 = r.salePriceV2, i.salePriceV3 = r.salePriceV3, i.marketPrice = r.marketPrice, i.costPrice = r.costPrice, i.stock = r.stock, i.weight = r.weight, i.volume = r.volume, i.status = r.status);
|
|
108
|
+
});
|
|
109
|
+
}), t;
|
|
110
|
+
});
|
|
111
|
+
$(
|
|
112
|
+
k,
|
|
113
|
+
(t, s) => {
|
|
114
|
+
var r, c;
|
|
115
|
+
if (!t || !t.length) return f.value = [];
|
|
116
|
+
if (!s || !s.length)
|
|
117
|
+
return;
|
|
118
|
+
if (((r = t[0].specValues) == null ? void 0 : r.length) !== ((c = s[0].specValues) == null ? void 0 : c.length))
|
|
119
|
+
return f.value = t.map((l) => ({
|
|
120
|
+
...l,
|
|
121
|
+
picUrl: "",
|
|
122
|
+
skuCode: void 0,
|
|
123
|
+
salePrice: 0,
|
|
124
|
+
salePriceV2: 0,
|
|
125
|
+
salePriceV3: 0,
|
|
126
|
+
marketPrice: void 0,
|
|
127
|
+
costPrice: void 0,
|
|
128
|
+
stock: 0,
|
|
129
|
+
weight: void 0,
|
|
130
|
+
volume: void 0,
|
|
131
|
+
status: !0
|
|
132
|
+
}));
|
|
133
|
+
if (t.length === s.length)
|
|
134
|
+
return f.value = t.map((l, V) => ({
|
|
135
|
+
...f.value[V],
|
|
136
|
+
...l
|
|
137
|
+
}));
|
|
138
|
+
const i = I(t, s);
|
|
139
|
+
if (t.length > s.length) {
|
|
140
|
+
let l = [];
|
|
141
|
+
t.forEach((V) => {
|
|
142
|
+
const m = f.value.find(
|
|
143
|
+
(_) => _.specIds === V.specIds
|
|
144
|
+
);
|
|
145
|
+
m ? l.push(m) : l.push({
|
|
146
|
+
...V,
|
|
147
|
+
picUrl: "",
|
|
148
|
+
skuCode: void 0,
|
|
149
|
+
salePrice: 0,
|
|
150
|
+
salePriceV2: 0,
|
|
151
|
+
salePriceV3: 0,
|
|
152
|
+
marketPrice: void 0,
|
|
153
|
+
costPrice: void 0,
|
|
154
|
+
stock: 0,
|
|
155
|
+
weight: void 0,
|
|
156
|
+
volume: void 0,
|
|
157
|
+
status: !0
|
|
158
|
+
});
|
|
159
|
+
}), f.value = l;
|
|
160
|
+
} else
|
|
161
|
+
f.value = f.value.filter(
|
|
162
|
+
(l) => !i.includes(l.specIds)
|
|
163
|
+
);
|
|
164
|
+
f.value = t.map((l) => ({
|
|
165
|
+
...l,
|
|
166
|
+
picUrl: l.picUrl ? l.picUrl : "",
|
|
167
|
+
skuCode: l.skuCode ? l.skuCode : void 0,
|
|
168
|
+
salePrice: l.salePrice ? l.salePrice : 0,
|
|
169
|
+
salePriceV2: l.salePrice ? l.salePriceV2 : 0,
|
|
170
|
+
salePriceV3: l.salePrice ? l.salePriceV3 : 0,
|
|
171
|
+
marketPrice: l.marketPrice ? l.marketPrice : void 0,
|
|
172
|
+
costPrice: l.costPrice ? l.costPrice : void 0,
|
|
173
|
+
stock: l.stock ? l.stock : 0,
|
|
174
|
+
weight: l.weight ? l.weight : void 0,
|
|
175
|
+
volume: l.volume ? l.volume : void 0,
|
|
176
|
+
status: l.status ? l.status : !0
|
|
177
|
+
}));
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
deep: !0,
|
|
181
|
+
immediate: !0
|
|
182
|
+
}
|
|
183
|
+
), $(
|
|
184
|
+
f,
|
|
185
|
+
(t) => {
|
|
186
|
+
U("getFormData", t);
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
deep: !0,
|
|
190
|
+
immediate: !0
|
|
191
|
+
}
|
|
192
|
+
);
|
|
193
|
+
function I(t, s) {
|
|
194
|
+
return t = t.map((i) => i.specIds), s = s.map((i) => i.specIds), R(t, s);
|
|
195
|
+
}
|
|
196
|
+
function S() {
|
|
197
|
+
f.value.forEach((t) => {
|
|
198
|
+
t.salePrice = o.value.salePrice, t.salePriceV2 = o.value.salePriceV2, t.salePriceV3 = o.value.salePriceV3, t.marketPrice = o.value.marketPrice, t.costPrice = o.value.costPrice, t.weight = o.value.weight, t.volume = o.value.volume, t.stock = o.value.stock;
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
function v(t, s) {
|
|
202
|
+
s.picUrl = t;
|
|
203
|
+
}
|
|
204
|
+
return (t, s) => {
|
|
205
|
+
const i = g("Setting"), r = g("el-icon"), c = g("el-input-number"), l = g("el-tooltip"), V = g("el-button"), m = g("el-table-column"), _ = g("jmash-single-image-upload"), A = g("el-image"), N = g("el-input"), j = g("el-switch"), q = g("el-table");
|
|
206
|
+
return P(), b("div", null, [
|
|
207
|
+
n.isSettingShow ? (P(), b("div", W, [
|
|
208
|
+
u("div", X, [
|
|
209
|
+
a(r, null, {
|
|
210
|
+
default: d(() => [
|
|
211
|
+
a(i)
|
|
212
|
+
]),
|
|
213
|
+
_: 1
|
|
214
|
+
}),
|
|
215
|
+
s[8] || (s[8] = y(" 批量设置 "))
|
|
216
|
+
]),
|
|
217
|
+
u("span", Y, [
|
|
218
|
+
a(l, {
|
|
219
|
+
class: "box-item",
|
|
220
|
+
effect: "dark",
|
|
221
|
+
content: "销售价(元)",
|
|
222
|
+
placement: "top-start"
|
|
223
|
+
}, {
|
|
224
|
+
default: d(() => [
|
|
225
|
+
a(c, {
|
|
226
|
+
modelValue: o.value.salePrice,
|
|
227
|
+
"onUpdate:modelValue": s[0] || (s[0] = (e) => o.value.salePrice = e),
|
|
228
|
+
precision: 2,
|
|
229
|
+
size: "small",
|
|
230
|
+
placeholder: "销售价(元)",
|
|
231
|
+
"controls-position": "right"
|
|
232
|
+
}, null, 8, ["modelValue"])
|
|
233
|
+
]),
|
|
234
|
+
_: 1
|
|
235
|
+
})
|
|
236
|
+
]),
|
|
237
|
+
u("span", Z, [
|
|
238
|
+
a(l, {
|
|
239
|
+
class: "box-item",
|
|
240
|
+
effect: "dark",
|
|
241
|
+
content: "v2会员销售价(元)",
|
|
242
|
+
placement: "top-start"
|
|
243
|
+
}, {
|
|
244
|
+
default: d(() => [
|
|
245
|
+
a(c, {
|
|
246
|
+
modelValue: o.value.salePriceV2,
|
|
247
|
+
"onUpdate:modelValue": s[1] || (s[1] = (e) => o.value.salePriceV2 = e),
|
|
248
|
+
precision: 2,
|
|
249
|
+
size: "small",
|
|
250
|
+
placeholder: "v2会员销售价(元)",
|
|
251
|
+
"controls-position": "right"
|
|
252
|
+
}, null, 8, ["modelValue"])
|
|
253
|
+
]),
|
|
254
|
+
_: 1
|
|
255
|
+
})
|
|
256
|
+
]),
|
|
257
|
+
u("span", ee, [
|
|
258
|
+
a(l, {
|
|
259
|
+
class: "box-item",
|
|
260
|
+
effect: "dark",
|
|
261
|
+
content: "v3会员销售价(元)",
|
|
262
|
+
placement: "top-start"
|
|
263
|
+
}, {
|
|
264
|
+
default: d(() => [
|
|
265
|
+
a(c, {
|
|
266
|
+
modelValue: o.value.salePriceV3,
|
|
267
|
+
"onUpdate:modelValue": s[2] || (s[2] = (e) => o.value.salePriceV3 = e),
|
|
268
|
+
precision: 2,
|
|
269
|
+
size: "small",
|
|
270
|
+
placeholder: "v3会员销售价(元)",
|
|
271
|
+
"controls-position": "right"
|
|
272
|
+
}, null, 8, ["modelValue"])
|
|
273
|
+
]),
|
|
274
|
+
_: 1
|
|
275
|
+
})
|
|
276
|
+
]),
|
|
277
|
+
u("span", le, [
|
|
278
|
+
a(l, {
|
|
279
|
+
class: "box-item",
|
|
280
|
+
effect: "dark",
|
|
281
|
+
content: "市场价(元)",
|
|
282
|
+
placement: "top-start"
|
|
283
|
+
}, {
|
|
284
|
+
default: d(() => [
|
|
285
|
+
a(c, {
|
|
286
|
+
modelValue: o.value.marketPrice,
|
|
287
|
+
"onUpdate:modelValue": s[3] || (s[3] = (e) => o.value.marketPrice = e),
|
|
288
|
+
precision: 2,
|
|
289
|
+
size: "small",
|
|
290
|
+
placeholder: "市场价(元)",
|
|
291
|
+
"controls-position": "right"
|
|
292
|
+
}, null, 8, ["modelValue"])
|
|
293
|
+
]),
|
|
294
|
+
_: 1
|
|
295
|
+
})
|
|
296
|
+
]),
|
|
297
|
+
u("span", se, [
|
|
298
|
+
a(l, {
|
|
299
|
+
class: "box-item",
|
|
300
|
+
effect: "dark",
|
|
301
|
+
content: "成本价(元)",
|
|
302
|
+
placement: "top-start"
|
|
303
|
+
}, {
|
|
304
|
+
default: d(() => [
|
|
305
|
+
a(c, {
|
|
306
|
+
modelValue: o.value.costPrice,
|
|
307
|
+
"onUpdate:modelValue": s[4] || (s[4] = (e) => o.value.costPrice = e),
|
|
308
|
+
precision: 2,
|
|
309
|
+
size: "small",
|
|
310
|
+
placeholder: "成本价(元)",
|
|
311
|
+
"controls-position": "right"
|
|
312
|
+
}, null, 8, ["modelValue"])
|
|
313
|
+
]),
|
|
314
|
+
_: 1
|
|
315
|
+
})
|
|
316
|
+
]),
|
|
317
|
+
u("span", ae, [
|
|
318
|
+
a(l, {
|
|
319
|
+
class: "box-item",
|
|
320
|
+
effect: "dark",
|
|
321
|
+
content: "重量(kg)",
|
|
322
|
+
placement: "top-start"
|
|
323
|
+
}, {
|
|
324
|
+
default: d(() => [
|
|
325
|
+
a(c, {
|
|
326
|
+
modelValue: o.value.weight,
|
|
327
|
+
"onUpdate:modelValue": s[5] || (s[5] = (e) => o.value.weight = e),
|
|
328
|
+
precision: 2,
|
|
329
|
+
size: "small",
|
|
330
|
+
placeholder: "重量(kg)",
|
|
331
|
+
"controls-position": "right"
|
|
332
|
+
}, null, 8, ["modelValue"])
|
|
333
|
+
]),
|
|
334
|
+
_: 1
|
|
335
|
+
})
|
|
336
|
+
]),
|
|
337
|
+
u("span", te, [
|
|
338
|
+
a(l, {
|
|
339
|
+
class: "box-item",
|
|
340
|
+
effect: "dark",
|
|
341
|
+
content: "体积(m³)",
|
|
342
|
+
placement: "top-start"
|
|
343
|
+
}, {
|
|
344
|
+
default: d(() => [
|
|
345
|
+
a(c, {
|
|
346
|
+
modelValue: o.value.volume,
|
|
347
|
+
"onUpdate:modelValue": s[6] || (s[6] = (e) => o.value.volume = e),
|
|
348
|
+
precision: 2,
|
|
349
|
+
size: "small",
|
|
350
|
+
placeholder: "体积(m³)",
|
|
351
|
+
"controls-position": "right"
|
|
352
|
+
}, null, 8, ["modelValue"])
|
|
353
|
+
]),
|
|
354
|
+
_: 1
|
|
355
|
+
})
|
|
356
|
+
]),
|
|
357
|
+
u("span", oe, [
|
|
358
|
+
a(l, {
|
|
359
|
+
class: "box-item",
|
|
360
|
+
effect: "dark",
|
|
361
|
+
content: "库存",
|
|
362
|
+
placement: "top-start"
|
|
363
|
+
}, {
|
|
364
|
+
default: d(() => [
|
|
365
|
+
a(c, {
|
|
366
|
+
modelValue: o.value.stock,
|
|
367
|
+
"onUpdate:modelValue": s[7] || (s[7] = (e) => o.value.stock = e),
|
|
368
|
+
precision: 0,
|
|
369
|
+
size: "small",
|
|
370
|
+
placeholder: "库存",
|
|
371
|
+
"controls-position": "right"
|
|
372
|
+
}, null, 8, ["modelValue"])
|
|
373
|
+
]),
|
|
374
|
+
_: 1
|
|
375
|
+
})
|
|
376
|
+
]),
|
|
377
|
+
a(V, {
|
|
378
|
+
type: "primary",
|
|
379
|
+
size: "small",
|
|
380
|
+
onClick: S
|
|
381
|
+
}, {
|
|
382
|
+
default: d(() => s[9] || (s[9] = [
|
|
383
|
+
y("设置")
|
|
384
|
+
])),
|
|
385
|
+
_: 1,
|
|
386
|
+
__: [9]
|
|
387
|
+
})
|
|
388
|
+
])) : M("", !0),
|
|
389
|
+
a(q, {
|
|
390
|
+
data: f.value,
|
|
391
|
+
class: "w-full top-dis"
|
|
392
|
+
}, {
|
|
393
|
+
default: d(() => [
|
|
394
|
+
a(m, { type: "index" }),
|
|
395
|
+
(P(!0), b(G, null, K(n.specData, (e, p) => (P(), z(m, {
|
|
396
|
+
key: e.id,
|
|
397
|
+
prop: e.id,
|
|
398
|
+
label: e.name
|
|
399
|
+
}, {
|
|
400
|
+
default: d((B) => [
|
|
401
|
+
y(D(B.row.specValues[p].specValueName), 1)
|
|
402
|
+
]),
|
|
403
|
+
_: 2
|
|
404
|
+
}, 1032, ["prop", "label"]))), 128)),
|
|
405
|
+
a(m, {
|
|
406
|
+
prop: "picUrl",
|
|
407
|
+
label: "图片"
|
|
408
|
+
}, {
|
|
409
|
+
default: d((e) => [
|
|
410
|
+
n.isSettingShow ? (P(), z(_, {
|
|
411
|
+
key: 0,
|
|
412
|
+
"picture-url": e.row.picUrl,
|
|
413
|
+
onImageSrc: (p) => v(p, e.row)
|
|
414
|
+
}, null, 8, ["picture-url", "onImageSrc"])) : (P(), z(A, {
|
|
415
|
+
key: 1,
|
|
416
|
+
"preview-teleported": "",
|
|
417
|
+
style: { width: "80px", height: "80px" },
|
|
418
|
+
src: x(E).imageUrl(e.row.picUrl, 80, 80),
|
|
419
|
+
"zoom-rate": 1.2,
|
|
420
|
+
"max-scale": 7,
|
|
421
|
+
"min-scale": 0.2,
|
|
422
|
+
"preview-src-list": [x(E).imageUrl(e.row.picUrl)],
|
|
423
|
+
fit: "cover"
|
|
424
|
+
}, null, 8, ["src", "preview-src-list"]))
|
|
425
|
+
]),
|
|
426
|
+
_: 1
|
|
427
|
+
}),
|
|
428
|
+
a(m, {
|
|
429
|
+
prop: "salePrice",
|
|
430
|
+
label: "销售价(元)",
|
|
431
|
+
width: "150"
|
|
432
|
+
}, {
|
|
433
|
+
header: d(() => s[10] || (s[10] = [
|
|
434
|
+
u("span", { class: "required_red" }, "*", -1),
|
|
435
|
+
u("span", null, "销售价(元)", -1)
|
|
436
|
+
])),
|
|
437
|
+
default: d((e) => [
|
|
438
|
+
u("span", null, [
|
|
439
|
+
a(c, {
|
|
440
|
+
modelValue: e.row.salePrice,
|
|
441
|
+
"onUpdate:modelValue": (p) => e.row.salePrice = p,
|
|
442
|
+
precision: 2,
|
|
443
|
+
size: "small",
|
|
444
|
+
controls: !1,
|
|
445
|
+
class: "w-full",
|
|
446
|
+
disabled: !n.isSettingShow
|
|
447
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
448
|
+
])
|
|
449
|
+
]),
|
|
450
|
+
_: 1
|
|
451
|
+
}),
|
|
452
|
+
a(m, {
|
|
453
|
+
prop: "salePriceV2",
|
|
454
|
+
label: "v2会员销售价(元)",
|
|
455
|
+
width: "150"
|
|
456
|
+
}, {
|
|
457
|
+
header: d(() => s[11] || (s[11] = [
|
|
458
|
+
u("span", { class: "required_red" }, "*", -1),
|
|
459
|
+
u("span", null, "v2会员销售价(元)", -1)
|
|
460
|
+
])),
|
|
461
|
+
default: d((e) => [
|
|
462
|
+
u("span", null, [
|
|
463
|
+
a(c, {
|
|
464
|
+
modelValue: e.row.salePriceV2,
|
|
465
|
+
"onUpdate:modelValue": (p) => e.row.salePriceV2 = p,
|
|
466
|
+
precision: 2,
|
|
467
|
+
size: "small",
|
|
468
|
+
controls: !1,
|
|
469
|
+
class: "w-full",
|
|
470
|
+
disabled: !n.isSettingShow
|
|
471
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
472
|
+
])
|
|
473
|
+
]),
|
|
474
|
+
_: 1
|
|
475
|
+
}),
|
|
476
|
+
a(m, {
|
|
477
|
+
prop: "salePriceV3",
|
|
478
|
+
label: "v3会员销售价(元)",
|
|
479
|
+
width: "150"
|
|
480
|
+
}, {
|
|
481
|
+
header: d(() => s[12] || (s[12] = [
|
|
482
|
+
u("span", { class: "required_red" }, "*", -1),
|
|
483
|
+
u("span", null, "v3会员销售价(元)", -1)
|
|
484
|
+
])),
|
|
485
|
+
default: d((e) => [
|
|
486
|
+
u("span", null, [
|
|
487
|
+
a(c, {
|
|
488
|
+
modelValue: e.row.salePriceV3,
|
|
489
|
+
"onUpdate:modelValue": (p) => e.row.salePriceV3 = p,
|
|
490
|
+
precision: 2,
|
|
491
|
+
size: "small",
|
|
492
|
+
controls: !1,
|
|
493
|
+
class: "w-full",
|
|
494
|
+
disabled: !n.isSettingShow
|
|
495
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
496
|
+
])
|
|
497
|
+
]),
|
|
498
|
+
_: 1
|
|
499
|
+
}),
|
|
500
|
+
a(m, {
|
|
501
|
+
prop: "marketPrice",
|
|
502
|
+
label: "市场价(元)"
|
|
503
|
+
}, {
|
|
504
|
+
default: d((e) => [
|
|
505
|
+
u("span", null, [
|
|
506
|
+
a(c, {
|
|
507
|
+
modelValue: e.row.marketPrice,
|
|
508
|
+
"onUpdate:modelValue": (p) => e.row.marketPrice = p,
|
|
509
|
+
precision: 2,
|
|
510
|
+
size: "small",
|
|
511
|
+
controls: !1,
|
|
512
|
+
class: "w-full",
|
|
513
|
+
disabled: !n.isSettingShow
|
|
514
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
515
|
+
])
|
|
516
|
+
]),
|
|
517
|
+
_: 1
|
|
518
|
+
}),
|
|
519
|
+
a(m, {
|
|
520
|
+
prop: "costPrice",
|
|
521
|
+
label: "成本价(元)"
|
|
522
|
+
}, {
|
|
523
|
+
default: d((e) => [
|
|
524
|
+
u("span", null, [
|
|
525
|
+
a(c, {
|
|
526
|
+
modelValue: e.row.costPrice,
|
|
527
|
+
"onUpdate:modelValue": (p) => e.row.costPrice = p,
|
|
528
|
+
precision: 2,
|
|
529
|
+
size: "small",
|
|
530
|
+
controls: !1,
|
|
531
|
+
class: "w-full",
|
|
532
|
+
disabled: !n.isSettingShow
|
|
533
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
534
|
+
])
|
|
535
|
+
]),
|
|
536
|
+
_: 1
|
|
537
|
+
}),
|
|
538
|
+
a(m, {
|
|
539
|
+
prop: "weight",
|
|
540
|
+
label: "重量(kg)"
|
|
541
|
+
}, {
|
|
542
|
+
default: d((e) => [
|
|
543
|
+
u("span", null, [
|
|
544
|
+
a(c, {
|
|
545
|
+
modelValue: e.row.weight,
|
|
546
|
+
"onUpdate:modelValue": (p) => e.row.weight = p,
|
|
547
|
+
precision: 2,
|
|
548
|
+
size: "small",
|
|
549
|
+
controls: !1,
|
|
550
|
+
class: "w-full",
|
|
551
|
+
disabled: !n.isSettingShow
|
|
552
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
553
|
+
])
|
|
554
|
+
]),
|
|
555
|
+
_: 1
|
|
556
|
+
}),
|
|
557
|
+
a(m, {
|
|
558
|
+
prop: "volume",
|
|
559
|
+
label: "体积(m³)"
|
|
560
|
+
}, {
|
|
561
|
+
default: d((e) => [
|
|
562
|
+
u("span", null, [
|
|
563
|
+
a(c, {
|
|
564
|
+
modelValue: e.row.volume,
|
|
565
|
+
"onUpdate:modelValue": (p) => e.row.volume = p,
|
|
566
|
+
precision: 2,
|
|
567
|
+
size: "small",
|
|
568
|
+
controls: !1,
|
|
569
|
+
class: "w-full",
|
|
570
|
+
disabled: !n.isSettingShow
|
|
571
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
572
|
+
])
|
|
573
|
+
]),
|
|
574
|
+
_: 1
|
|
575
|
+
}),
|
|
576
|
+
a(m, {
|
|
577
|
+
prop: "stock",
|
|
578
|
+
label: "库存"
|
|
579
|
+
}, {
|
|
580
|
+
header: d(() => s[13] || (s[13] = [
|
|
581
|
+
u("span", { class: "required_red" }, "*", -1),
|
|
582
|
+
u("span", null, "库存", -1)
|
|
583
|
+
])),
|
|
584
|
+
default: d((e) => [
|
|
585
|
+
u("span", null, [
|
|
586
|
+
a(c, {
|
|
587
|
+
modelValue: e.row.stock,
|
|
588
|
+
"onUpdate:modelValue": (p) => e.row.stock = p,
|
|
589
|
+
precision: 2,
|
|
590
|
+
size: "small",
|
|
591
|
+
controls: !1,
|
|
592
|
+
class: "w-full",
|
|
593
|
+
disabled: !n.isSettingShow
|
|
594
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
595
|
+
])
|
|
596
|
+
]),
|
|
597
|
+
_: 1
|
|
598
|
+
}),
|
|
599
|
+
a(m, {
|
|
600
|
+
prop: "skuCode",
|
|
601
|
+
label: "sku编码"
|
|
602
|
+
}, {
|
|
603
|
+
default: d((e) => [
|
|
604
|
+
u("span", null, [
|
|
605
|
+
a(N, {
|
|
606
|
+
modelValue: e.row.skuCode,
|
|
607
|
+
"onUpdate:modelValue": (p) => e.row.skuCode = p,
|
|
608
|
+
size: "small",
|
|
609
|
+
disabled: !n.isSettingShow
|
|
610
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
611
|
+
])
|
|
612
|
+
]),
|
|
613
|
+
_: 1
|
|
614
|
+
}),
|
|
615
|
+
a(m, {
|
|
616
|
+
prop: "status",
|
|
617
|
+
label: "是否上架",
|
|
618
|
+
width: "80"
|
|
619
|
+
}, {
|
|
620
|
+
default: d((e) => [
|
|
621
|
+
n.isSettingShow ? (P(), b("span", ie, [
|
|
622
|
+
a(j, {
|
|
623
|
+
modelValue: e.row.status,
|
|
624
|
+
"onUpdate:modelValue": (p) => e.row.status = p
|
|
625
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
626
|
+
])) : (P(), b("span", ne, D(x(O).shelfDict.getValue(e.row.status)), 1))
|
|
627
|
+
]),
|
|
628
|
+
_: 1
|
|
629
|
+
})
|
|
630
|
+
]),
|
|
631
|
+
_: 1
|
|
632
|
+
}, 8, ["data"])
|
|
633
|
+
]);
|
|
634
|
+
};
|
|
635
|
+
}
|
|
636
|
+
}), me = /* @__PURE__ */ H(re, [["__scopeId", "data-v-6fc718ce"]]);
|
|
637
|
+
export {
|
|
638
|
+
me as default
|
|
639
|
+
};
|
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-6fc718ce]{display:flex;align-items:center;font-size:14px;padding:0 0 10px}.goods-spec[data-v-e6aa4b01]{border:1px solid #ccc;margin-bottom:5px}.goods-title[data-v-e6aa4b01]{display:flex;align-items:center;border-bottom:1px solid #ccc;padding:10px 20px}.goods-title .goods-delete[data-v-e6aa4b01]{display:flex;align-items:center;margin-left:auto;color:red;font-size:14px}.goods-content[data-v-e6aa4b01]{padding:10px 20px}.goods-tag[data-v-e6aa4b01]{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}.position-center[data-v-90ddc8d1]{position:absolute;right:0;top:30%;transform:translateY(-30%)}.plus-position[data-v-90ddc8d1]{position:absolute;right:0;top:0;margin-top:8px}.position-center[data-v-7e1c2961]{position:absolute;right:0;top:30%;transform:translateY(-30%)}.plus-position[data-v-7e1c2961]{position:absolute;right:0;top:0;margin-top:8px}
|
package/dts/api/dict.d.ts
CHANGED
|
@@ -21,3 +21,9 @@ export declare class SpecInfoBizDict extends BizDict {
|
|
|
21
21
|
export declare class SpecValueBizDict extends BizDict {
|
|
22
22
|
useValues(): Promise<Entry[]>;
|
|
23
23
|
}
|
|
24
|
+
export declare class BrandListBizDict extends BizDict {
|
|
25
|
+
useValues(): Promise<Entry[]>;
|
|
26
|
+
}
|
|
27
|
+
export declare class LableListBizDict extends BizDict {
|
|
28
|
+
useValues(): Promise<Entry[]>;
|
|
29
|
+
}
|
|
@@ -2,6 +2,9 @@ import type { EntityApi, EntityReq, EntityModel, EntityList, EntityPage, EntityT
|
|
|
2
2
|
export interface GoodsBrandInfoApi extends EntityApi {
|
|
3
3
|
}
|
|
4
4
|
export interface GoodsBrandInfoReq extends EntityReq {
|
|
5
|
+
likeBrandName?: string;
|
|
6
|
+
status?: boolean;
|
|
7
|
+
hasStatus?: boolean;
|
|
5
8
|
}
|
|
6
9
|
export interface GoodsBrandInfoModel extends EntityModel {
|
|
7
10
|
tenantId?: string;
|
|
@@ -52,7 +55,7 @@ export interface GoodsBrandInfoUpdateReq extends EntityUpdateReq {
|
|
|
52
55
|
orderBy?: string;
|
|
53
56
|
status?: boolean;
|
|
54
57
|
}
|
|
55
|
-
export type GoodsBrandInfoFormReq =
|
|
58
|
+
export type GoodsBrandInfoFormReq = GoodsBrandInfoCreateReq | GoodsBrandInfoUpdateReq;
|
|
56
59
|
export interface GoodsBrandInfoExportReq extends EntityExportReq {
|
|
57
60
|
req: GoodsBrandInfoReq;
|
|
58
61
|
}
|
|
@@ -2,6 +2,9 @@ import type { EntityApi, EntityReq, EntityModel, EntityList, EntityPage, EntityT
|
|
|
2
2
|
export interface GoodsLabelInfoApi extends EntityApi {
|
|
3
3
|
}
|
|
4
4
|
export interface GoodsLabelInfoReq extends EntityReq {
|
|
5
|
+
likeLableName?: string;
|
|
6
|
+
status?: boolean;
|
|
7
|
+
hasStatus?: boolean;
|
|
5
8
|
}
|
|
6
9
|
export interface GoodsLabelInfoModel extends EntityModel {
|
|
7
10
|
tenantId?: string;
|