xyvcard-goods 0.0.22 → 0.0.23
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-Nuaz9WSB.mjs → edit-9jPSycsG.mjs} +185 -165
- package/dist/{edit-exVf8d8b.mjs → edit-CJpoa4Ck.mjs} +69 -68
- package/dist/{edit-DxnsmaXV.mjs → edit-CWQMgvVP.mjs} +38 -38
- package/dist/{edit-Byv9oYAC.mjs → edit-DU-BEAcq.mjs} +1 -1
- package/dist/{edit-BcokSKfN.mjs → edit-Ziwv43v0.mjs} +27 -27
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DuSBj1Mm.mjs → edit.vue_vue_type_script_setup_true_lang-BP0C4d2-.mjs} +8 -7
- package/dist/{goodsList-CZUqc4nm.mjs → goodsList-2AwsJVoO.mjs} +1 -1
- package/dist/{goodsList-IWDAvKOx.mjs → goodsList-CyWliLjg.mjs} +1 -1
- package/dist/{goodsList.vue_vue_type_script_setup_true_lang-CuzIDtTN.mjs → goodsList.vue_vue_type_script_setup_true_lang-Bq06GIMe.mjs} +2 -2
- package/dist/{goodsList.vue_vue_type_script_setup_true_lang-BhJn02Ym.mjs → goodsList.vue_vue_type_script_setup_true_lang-DjKzEAB7.mjs} +136 -147
- package/dist/{index-4i7TnWvV.mjs → index-8E7BciYp.mjs} +7 -6
- package/dist/{index-BVGn6Q_T.mjs → index-B1H5hqEi.mjs} +2 -2
- package/dist/{index-B_U2s9fI.mjs → index-B88acg0Q.mjs} +2 -2
- package/dist/{index-_xxSoBUe.mjs → index-BdP_dXBK.mjs} +3 -3
- package/dist/index-C7oatDPl.mjs +4432 -0
- package/dist/{index-CQIttgns.mjs → index-DPjR32Kv.mjs} +3 -3
- package/dist/{index-r0u-27m7.mjs → index-DR3Gk44r.mjs} +1 -1
- package/dist/index-jCpYt-EU.mjs +221 -0
- package/dist/index.mjs +6 -2875
- package/dist/info-BEMxnD6-.mjs +325 -0
- package/dist/{info-BQaaTFry.mjs → info-DFIeVs66.mjs} +3 -3
- package/dist/{skuForm-CgjMd46J.mjs → skuForm-BhAbf2AG.mjs} +16 -16
- package/dist/skuForm-C2aQcL90.mjs +314 -0
- package/dist/{skuTable-CyGQuTvR.mjs → skuTable-9JJqGeRx.mjs} +255 -208
- package/dist/style.css +1 -1
- package/dts/api/goods-spu/index.d.ts +3 -1
- package/dts/api/goods-spu/types.d.ts +12 -1
- package/dts/index.d.ts +4 -0
- package/dts/router/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/index-DR7GlHNd.mjs +0 -1288
- package/dist/index-Dvaotk7B.mjs +0 -325
- package/dist/index-jTDhsbYM.mjs +0 -141
- package/dist/info-BH4MW3Sw.mjs +0 -365
- package/dist/sku-B-IzfYLq.mjs +0 -52
- package/dist/skuForm-AMIoZkH-.mjs +0 -287
- package/dist/skuTable-DDWSmvoz.mjs +0 -592
|
@@ -1,9 +1,56 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
const
|
|
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-jCpYt-EU.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({
|
|
7
54
|
__name: "skuTable",
|
|
8
55
|
props: {
|
|
9
56
|
specData: {
|
|
@@ -25,8 +72,8 @@ const Q = { key: 0 }, R = { class: "title-set" }, W = { class: "right-dis" }, X
|
|
|
25
72
|
}
|
|
26
73
|
},
|
|
27
74
|
emits: ["getGoodsSku", "getFormData"],
|
|
28
|
-
setup(
|
|
29
|
-
const
|
|
75
|
+
setup(n, { emit: h }) {
|
|
76
|
+
const o = C({
|
|
30
77
|
salePrice: 0,
|
|
31
78
|
marketPrice: 0,
|
|
32
79
|
costPrice: 0,
|
|
@@ -35,41 +82,41 @@ const Q = { key: 0 }, R = { class: "title-set" }, W = { class: "right-dis" }, X
|
|
|
35
82
|
stock: 0,
|
|
36
83
|
salePriceV2: 0,
|
|
37
84
|
salePriceV3: 0
|
|
38
|
-
}),
|
|
39
|
-
let
|
|
40
|
-
specValues:
|
|
41
|
-
specIds:
|
|
42
|
-
(
|
|
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 ? "" : "_"}`,
|
|
43
90
|
""
|
|
44
91
|
)
|
|
45
|
-
})),
|
|
46
|
-
var
|
|
92
|
+
})), s = w.goodsSku.map((i) => {
|
|
93
|
+
var r;
|
|
47
94
|
return {
|
|
48
|
-
...
|
|
49
|
-
specIds: (
|
|
50
|
-
(
|
|
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 ? "" : "_"}`,
|
|
51
98
|
""
|
|
52
99
|
)
|
|
53
100
|
};
|
|
54
101
|
});
|
|
55
|
-
return
|
|
56
|
-
|
|
57
|
-
let
|
|
58
|
-
|
|
59
|
-
l.find((
|
|
60
|
-
}),
|
|
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);
|
|
61
108
|
});
|
|
62
|
-
}),
|
|
109
|
+
}), t;
|
|
63
110
|
});
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
(
|
|
67
|
-
var
|
|
68
|
-
if (!
|
|
69
|
-
if (!
|
|
111
|
+
$(
|
|
112
|
+
k,
|
|
113
|
+
(t, s) => {
|
|
114
|
+
var r, c;
|
|
115
|
+
if (!t || !t.length) return f.value = [];
|
|
116
|
+
if (!s || !s.length)
|
|
70
117
|
return;
|
|
71
|
-
if (((
|
|
72
|
-
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) => ({
|
|
73
120
|
...l,
|
|
74
121
|
picUrl: "",
|
|
75
122
|
skuCode: void 0,
|
|
@@ -83,20 +130,20 @@ const Q = { key: 0 }, R = { class: "title-set" }, W = { class: "right-dis" }, X
|
|
|
83
130
|
volume: void 0,
|
|
84
131
|
status: !0
|
|
85
132
|
}));
|
|
86
|
-
if (
|
|
87
|
-
return
|
|
88
|
-
...
|
|
133
|
+
if (t.length === s.length)
|
|
134
|
+
return f.value = t.map((l, V) => ({
|
|
135
|
+
...f.value[V],
|
|
89
136
|
...l
|
|
90
137
|
}));
|
|
91
|
-
const
|
|
92
|
-
if (
|
|
138
|
+
const i = I(t, s);
|
|
139
|
+
if (t.length > s.length) {
|
|
93
140
|
let l = [];
|
|
94
|
-
|
|
95
|
-
const
|
|
96
|
-
(
|
|
141
|
+
t.forEach((V) => {
|
|
142
|
+
const m = f.value.find(
|
|
143
|
+
(_) => _.specIds === V.specIds
|
|
97
144
|
);
|
|
98
|
-
|
|
99
|
-
...
|
|
145
|
+
m ? l.push(m) : l.push({
|
|
146
|
+
...V,
|
|
100
147
|
picUrl: "",
|
|
101
148
|
skuCode: void 0,
|
|
102
149
|
salePrice: 0,
|
|
@@ -109,12 +156,12 @@ const Q = { key: 0 }, R = { class: "title-set" }, W = { class: "right-dis" }, X
|
|
|
109
156
|
volume: void 0,
|
|
110
157
|
status: !0
|
|
111
158
|
});
|
|
112
|
-
}),
|
|
159
|
+
}), f.value = l;
|
|
113
160
|
} else
|
|
114
|
-
|
|
115
|
-
(l) => !
|
|
161
|
+
f.value = f.value.filter(
|
|
162
|
+
(l) => !i.includes(l.specIds)
|
|
116
163
|
);
|
|
117
|
-
|
|
164
|
+
f.value = t.map((l) => ({
|
|
118
165
|
...l,
|
|
119
166
|
picUrl: l.picUrl ? l.picUrl : "",
|
|
120
167
|
skuCode: l.skuCode ? l.skuCode : void 0,
|
|
@@ -133,51 +180,51 @@ const Q = { key: 0 }, R = { class: "title-set" }, W = { class: "right-dis" }, X
|
|
|
133
180
|
deep: !0,
|
|
134
181
|
immediate: !0
|
|
135
182
|
}
|
|
136
|
-
),
|
|
137
|
-
|
|
138
|
-
(
|
|
139
|
-
|
|
183
|
+
), $(
|
|
184
|
+
f,
|
|
185
|
+
(t) => {
|
|
186
|
+
U("getFormData", t);
|
|
140
187
|
},
|
|
141
188
|
{
|
|
142
189
|
deep: !0,
|
|
143
190
|
immediate: !0
|
|
144
191
|
}
|
|
145
192
|
);
|
|
146
|
-
function
|
|
147
|
-
return
|
|
193
|
+
function I(t, s) {
|
|
194
|
+
return t = t.map((i) => i.specIds), s = s.map((i) => i.specIds), R(t, s);
|
|
148
195
|
}
|
|
149
|
-
function
|
|
150
|
-
|
|
151
|
-
|
|
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;
|
|
152
199
|
});
|
|
153
200
|
}
|
|
154
|
-
function
|
|
155
|
-
|
|
201
|
+
function v(t, s) {
|
|
202
|
+
s.picUrl = t;
|
|
156
203
|
}
|
|
157
|
-
return (
|
|
158
|
-
const
|
|
159
|
-
return
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
default:
|
|
164
|
-
|
|
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)
|
|
165
212
|
]),
|
|
166
213
|
_: 1
|
|
167
214
|
}),
|
|
168
|
-
|
|
215
|
+
s[8] || (s[8] = y(" 批量设置 "))
|
|
169
216
|
]),
|
|
170
|
-
|
|
171
|
-
|
|
217
|
+
u("span", Y, [
|
|
218
|
+
a(l, {
|
|
172
219
|
class: "box-item",
|
|
173
220
|
effect: "dark",
|
|
174
221
|
content: "销售价(元)",
|
|
175
222
|
placement: "top-start"
|
|
176
223
|
}, {
|
|
177
|
-
default:
|
|
178
|
-
|
|
179
|
-
modelValue:
|
|
180
|
-
"onUpdate:modelValue":
|
|
224
|
+
default: d(() => [
|
|
225
|
+
a(c, {
|
|
226
|
+
modelValue: o.value.salePrice,
|
|
227
|
+
"onUpdate:modelValue": s[0] || (s[0] = (e) => o.value.salePrice = e),
|
|
181
228
|
precision: 2,
|
|
182
229
|
size: "small",
|
|
183
230
|
placeholder: "销售价(元)",
|
|
@@ -187,17 +234,17 @@ const Q = { key: 0 }, R = { class: "title-set" }, W = { class: "right-dis" }, X
|
|
|
187
234
|
_: 1
|
|
188
235
|
})
|
|
189
236
|
]),
|
|
190
|
-
|
|
191
|
-
|
|
237
|
+
u("span", Z, [
|
|
238
|
+
a(l, {
|
|
192
239
|
class: "box-item",
|
|
193
240
|
effect: "dark",
|
|
194
241
|
content: "v2会员销售价(元)",
|
|
195
242
|
placement: "top-start"
|
|
196
243
|
}, {
|
|
197
|
-
default:
|
|
198
|
-
|
|
199
|
-
modelValue:
|
|
200
|
-
"onUpdate:modelValue":
|
|
244
|
+
default: d(() => [
|
|
245
|
+
a(c, {
|
|
246
|
+
modelValue: o.value.salePriceV2,
|
|
247
|
+
"onUpdate:modelValue": s[1] || (s[1] = (e) => o.value.salePriceV2 = e),
|
|
201
248
|
precision: 2,
|
|
202
249
|
size: "small",
|
|
203
250
|
placeholder: "v2会员销售价(元)",
|
|
@@ -207,17 +254,17 @@ const Q = { key: 0 }, R = { class: "title-set" }, W = { class: "right-dis" }, X
|
|
|
207
254
|
_: 1
|
|
208
255
|
})
|
|
209
256
|
]),
|
|
210
|
-
|
|
211
|
-
|
|
257
|
+
u("span", ee, [
|
|
258
|
+
a(l, {
|
|
212
259
|
class: "box-item",
|
|
213
260
|
effect: "dark",
|
|
214
261
|
content: "v3会员销售价(元)",
|
|
215
262
|
placement: "top-start"
|
|
216
263
|
}, {
|
|
217
|
-
default:
|
|
218
|
-
|
|
219
|
-
modelValue:
|
|
220
|
-
"onUpdate:modelValue":
|
|
264
|
+
default: d(() => [
|
|
265
|
+
a(c, {
|
|
266
|
+
modelValue: o.value.salePriceV3,
|
|
267
|
+
"onUpdate:modelValue": s[2] || (s[2] = (e) => o.value.salePriceV3 = e),
|
|
221
268
|
precision: 2,
|
|
222
269
|
size: "small",
|
|
223
270
|
placeholder: "v3会员销售价(元)",
|
|
@@ -227,17 +274,17 @@ const Q = { key: 0 }, R = { class: "title-set" }, W = { class: "right-dis" }, X
|
|
|
227
274
|
_: 1
|
|
228
275
|
})
|
|
229
276
|
]),
|
|
230
|
-
|
|
231
|
-
|
|
277
|
+
u("span", le, [
|
|
278
|
+
a(l, {
|
|
232
279
|
class: "box-item",
|
|
233
280
|
effect: "dark",
|
|
234
281
|
content: "市场价(元)",
|
|
235
282
|
placement: "top-start"
|
|
236
283
|
}, {
|
|
237
|
-
default:
|
|
238
|
-
|
|
239
|
-
modelValue:
|
|
240
|
-
"onUpdate:modelValue":
|
|
284
|
+
default: d(() => [
|
|
285
|
+
a(c, {
|
|
286
|
+
modelValue: o.value.marketPrice,
|
|
287
|
+
"onUpdate:modelValue": s[3] || (s[3] = (e) => o.value.marketPrice = e),
|
|
241
288
|
precision: 2,
|
|
242
289
|
size: "small",
|
|
243
290
|
placeholder: "市场价(元)",
|
|
@@ -247,17 +294,17 @@ const Q = { key: 0 }, R = { class: "title-set" }, W = { class: "right-dis" }, X
|
|
|
247
294
|
_: 1
|
|
248
295
|
})
|
|
249
296
|
]),
|
|
250
|
-
|
|
251
|
-
|
|
297
|
+
u("span", se, [
|
|
298
|
+
a(l, {
|
|
252
299
|
class: "box-item",
|
|
253
300
|
effect: "dark",
|
|
254
301
|
content: "成本价(元)",
|
|
255
302
|
placement: "top-start"
|
|
256
303
|
}, {
|
|
257
|
-
default:
|
|
258
|
-
|
|
259
|
-
modelValue:
|
|
260
|
-
"onUpdate:modelValue":
|
|
304
|
+
default: d(() => [
|
|
305
|
+
a(c, {
|
|
306
|
+
modelValue: o.value.costPrice,
|
|
307
|
+
"onUpdate:modelValue": s[4] || (s[4] = (e) => o.value.costPrice = e),
|
|
261
308
|
precision: 2,
|
|
262
309
|
size: "small",
|
|
263
310
|
placeholder: "成本价(元)",
|
|
@@ -267,17 +314,17 @@ const Q = { key: 0 }, R = { class: "title-set" }, W = { class: "right-dis" }, X
|
|
|
267
314
|
_: 1
|
|
268
315
|
})
|
|
269
316
|
]),
|
|
270
|
-
|
|
271
|
-
|
|
317
|
+
u("span", ae, [
|
|
318
|
+
a(l, {
|
|
272
319
|
class: "box-item",
|
|
273
320
|
effect: "dark",
|
|
274
321
|
content: "重量(kg)",
|
|
275
322
|
placement: "top-start"
|
|
276
323
|
}, {
|
|
277
|
-
default:
|
|
278
|
-
|
|
279
|
-
modelValue:
|
|
280
|
-
"onUpdate:modelValue":
|
|
324
|
+
default: d(() => [
|
|
325
|
+
a(c, {
|
|
326
|
+
modelValue: o.value.weight,
|
|
327
|
+
"onUpdate:modelValue": s[5] || (s[5] = (e) => o.value.weight = e),
|
|
281
328
|
precision: 2,
|
|
282
329
|
size: "small",
|
|
283
330
|
placeholder: "重量(kg)",
|
|
@@ -287,17 +334,17 @@ const Q = { key: 0 }, R = { class: "title-set" }, W = { class: "right-dis" }, X
|
|
|
287
334
|
_: 1
|
|
288
335
|
})
|
|
289
336
|
]),
|
|
290
|
-
|
|
291
|
-
|
|
337
|
+
u("span", te, [
|
|
338
|
+
a(l, {
|
|
292
339
|
class: "box-item",
|
|
293
340
|
effect: "dark",
|
|
294
341
|
content: "体积(m³)",
|
|
295
342
|
placement: "top-start"
|
|
296
343
|
}, {
|
|
297
|
-
default:
|
|
298
|
-
|
|
299
|
-
modelValue:
|
|
300
|
-
"onUpdate:modelValue":
|
|
344
|
+
default: d(() => [
|
|
345
|
+
a(c, {
|
|
346
|
+
modelValue: o.value.volume,
|
|
347
|
+
"onUpdate:modelValue": s[6] || (s[6] = (e) => o.value.volume = e),
|
|
301
348
|
precision: 2,
|
|
302
349
|
size: "small",
|
|
303
350
|
placeholder: "体积(m³)",
|
|
@@ -307,17 +354,17 @@ const Q = { key: 0 }, R = { class: "title-set" }, W = { class: "right-dis" }, X
|
|
|
307
354
|
_: 1
|
|
308
355
|
})
|
|
309
356
|
]),
|
|
310
|
-
|
|
311
|
-
|
|
357
|
+
u("span", oe, [
|
|
358
|
+
a(l, {
|
|
312
359
|
class: "box-item",
|
|
313
360
|
effect: "dark",
|
|
314
361
|
content: "库存",
|
|
315
362
|
placement: "top-start"
|
|
316
363
|
}, {
|
|
317
|
-
default:
|
|
318
|
-
|
|
319
|
-
modelValue:
|
|
320
|
-
"onUpdate:modelValue":
|
|
364
|
+
default: d(() => [
|
|
365
|
+
a(c, {
|
|
366
|
+
modelValue: o.value.stock,
|
|
367
|
+
"onUpdate:modelValue": s[7] || (s[7] = (e) => o.value.stock = e),
|
|
321
368
|
precision: 0,
|
|
322
369
|
size: "small",
|
|
323
370
|
placeholder: "库存",
|
|
@@ -327,256 +374,256 @@ const Q = { key: 0 }, R = { class: "title-set" }, W = { class: "right-dis" }, X
|
|
|
327
374
|
_: 1
|
|
328
375
|
})
|
|
329
376
|
]),
|
|
330
|
-
|
|
377
|
+
a(V, {
|
|
331
378
|
type: "primary",
|
|
332
379
|
size: "small",
|
|
333
|
-
onClick:
|
|
380
|
+
onClick: S
|
|
334
381
|
}, {
|
|
335
|
-
default:
|
|
336
|
-
|
|
382
|
+
default: d(() => s[9] || (s[9] = [
|
|
383
|
+
y("设置")
|
|
337
384
|
])),
|
|
338
385
|
_: 1,
|
|
339
386
|
__: [9]
|
|
340
387
|
})
|
|
341
|
-
])) :
|
|
342
|
-
|
|
343
|
-
data:
|
|
388
|
+
])) : M("", !0),
|
|
389
|
+
a(q, {
|
|
390
|
+
data: f.value,
|
|
344
391
|
class: "w-full top-dis"
|
|
345
392
|
}, {
|
|
346
|
-
default:
|
|
347
|
-
|
|
348
|
-
(
|
|
393
|
+
default: d(() => [
|
|
394
|
+
a(m, { type: "index" }),
|
|
395
|
+
(P(!0), b(G, null, K(n.specData, (e, p) => (P(), z(m, {
|
|
349
396
|
key: e.id,
|
|
350
397
|
prop: e.id,
|
|
351
398
|
label: e.name
|
|
352
399
|
}, {
|
|
353
|
-
default:
|
|
354
|
-
|
|
400
|
+
default: d((B) => [
|
|
401
|
+
y(D(B.row.specValues[p].specValueName), 1)
|
|
355
402
|
]),
|
|
356
403
|
_: 2
|
|
357
404
|
}, 1032, ["prop", "label"]))), 128)),
|
|
358
|
-
|
|
405
|
+
a(m, {
|
|
359
406
|
prop: "picUrl",
|
|
360
407
|
label: "图片"
|
|
361
408
|
}, {
|
|
362
|
-
default:
|
|
363
|
-
|
|
409
|
+
default: d((e) => [
|
|
410
|
+
n.isSettingShow ? (P(), z(_, {
|
|
364
411
|
key: 0,
|
|
365
412
|
"picture-url": e.row.picUrl,
|
|
366
|
-
onImageSrc: (
|
|
367
|
-
}, null, 8, ["picture-url", "onImageSrc"])) : (
|
|
413
|
+
onImageSrc: (p) => v(p, e.row)
|
|
414
|
+
}, null, 8, ["picture-url", "onImageSrc"])) : (P(), z(A, {
|
|
368
415
|
key: 1,
|
|
369
416
|
"preview-teleported": "",
|
|
370
417
|
style: { width: "80px", height: "80px" },
|
|
371
|
-
src:
|
|
418
|
+
src: x(E).imageUrl(e.row.picUrl, 80, 80),
|
|
372
419
|
"zoom-rate": 1.2,
|
|
373
420
|
"max-scale": 7,
|
|
374
421
|
"min-scale": 0.2,
|
|
375
|
-
"preview-src-list": [
|
|
422
|
+
"preview-src-list": [x(E).imageUrl(e.row.picUrl)],
|
|
376
423
|
fit: "cover"
|
|
377
424
|
}, null, 8, ["src", "preview-src-list"]))
|
|
378
425
|
]),
|
|
379
426
|
_: 1
|
|
380
427
|
}),
|
|
381
|
-
|
|
428
|
+
a(m, {
|
|
382
429
|
prop: "salePrice",
|
|
383
430
|
label: "销售价(元)",
|
|
384
431
|
width: "150"
|
|
385
432
|
}, {
|
|
386
|
-
header:
|
|
387
|
-
|
|
388
|
-
|
|
433
|
+
header: d(() => s[10] || (s[10] = [
|
|
434
|
+
u("span", { class: "required_red" }, "*", -1),
|
|
435
|
+
u("span", null, "销售价(元)", -1)
|
|
389
436
|
])),
|
|
390
|
-
default:
|
|
391
|
-
|
|
392
|
-
|
|
437
|
+
default: d((e) => [
|
|
438
|
+
u("span", null, [
|
|
439
|
+
a(c, {
|
|
393
440
|
modelValue: e.row.salePrice,
|
|
394
|
-
"onUpdate:modelValue": (
|
|
441
|
+
"onUpdate:modelValue": (p) => e.row.salePrice = p,
|
|
395
442
|
precision: 2,
|
|
396
443
|
size: "small",
|
|
397
444
|
controls: !1,
|
|
398
445
|
class: "w-full",
|
|
399
|
-
disabled: !
|
|
446
|
+
disabled: !n.isSettingShow
|
|
400
447
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
401
448
|
])
|
|
402
449
|
]),
|
|
403
450
|
_: 1
|
|
404
451
|
}),
|
|
405
|
-
|
|
452
|
+
a(m, {
|
|
406
453
|
prop: "salePriceV2",
|
|
407
454
|
label: "v2会员销售价(元)",
|
|
408
455
|
width: "150"
|
|
409
456
|
}, {
|
|
410
|
-
header:
|
|
411
|
-
|
|
412
|
-
|
|
457
|
+
header: d(() => s[11] || (s[11] = [
|
|
458
|
+
u("span", { class: "required_red" }, "*", -1),
|
|
459
|
+
u("span", null, "v2会员销售价(元)", -1)
|
|
413
460
|
])),
|
|
414
|
-
default:
|
|
415
|
-
|
|
416
|
-
|
|
461
|
+
default: d((e) => [
|
|
462
|
+
u("span", null, [
|
|
463
|
+
a(c, {
|
|
417
464
|
modelValue: e.row.salePriceV2,
|
|
418
|
-
"onUpdate:modelValue": (
|
|
465
|
+
"onUpdate:modelValue": (p) => e.row.salePriceV2 = p,
|
|
419
466
|
precision: 2,
|
|
420
467
|
size: "small",
|
|
421
468
|
controls: !1,
|
|
422
469
|
class: "w-full",
|
|
423
|
-
disabled: !
|
|
470
|
+
disabled: !n.isSettingShow
|
|
424
471
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
425
472
|
])
|
|
426
473
|
]),
|
|
427
474
|
_: 1
|
|
428
475
|
}),
|
|
429
|
-
|
|
476
|
+
a(m, {
|
|
430
477
|
prop: "salePriceV3",
|
|
431
478
|
label: "v3会员销售价(元)",
|
|
432
479
|
width: "150"
|
|
433
480
|
}, {
|
|
434
|
-
header:
|
|
435
|
-
|
|
436
|
-
|
|
481
|
+
header: d(() => s[12] || (s[12] = [
|
|
482
|
+
u("span", { class: "required_red" }, "*", -1),
|
|
483
|
+
u("span", null, "v3会员销售价(元)", -1)
|
|
437
484
|
])),
|
|
438
|
-
default:
|
|
439
|
-
|
|
440
|
-
|
|
485
|
+
default: d((e) => [
|
|
486
|
+
u("span", null, [
|
|
487
|
+
a(c, {
|
|
441
488
|
modelValue: e.row.salePriceV3,
|
|
442
|
-
"onUpdate:modelValue": (
|
|
489
|
+
"onUpdate:modelValue": (p) => e.row.salePriceV3 = p,
|
|
443
490
|
precision: 2,
|
|
444
491
|
size: "small",
|
|
445
492
|
controls: !1,
|
|
446
493
|
class: "w-full",
|
|
447
|
-
disabled: !
|
|
494
|
+
disabled: !n.isSettingShow
|
|
448
495
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
449
496
|
])
|
|
450
497
|
]),
|
|
451
498
|
_: 1
|
|
452
499
|
}),
|
|
453
|
-
|
|
500
|
+
a(m, {
|
|
454
501
|
prop: "marketPrice",
|
|
455
502
|
label: "市场价(元)"
|
|
456
503
|
}, {
|
|
457
|
-
default:
|
|
458
|
-
|
|
459
|
-
|
|
504
|
+
default: d((e) => [
|
|
505
|
+
u("span", null, [
|
|
506
|
+
a(c, {
|
|
460
507
|
modelValue: e.row.marketPrice,
|
|
461
|
-
"onUpdate:modelValue": (
|
|
508
|
+
"onUpdate:modelValue": (p) => e.row.marketPrice = p,
|
|
462
509
|
precision: 2,
|
|
463
510
|
size: "small",
|
|
464
511
|
controls: !1,
|
|
465
512
|
class: "w-full",
|
|
466
|
-
disabled: !
|
|
513
|
+
disabled: !n.isSettingShow
|
|
467
514
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
468
515
|
])
|
|
469
516
|
]),
|
|
470
517
|
_: 1
|
|
471
518
|
}),
|
|
472
|
-
|
|
519
|
+
a(m, {
|
|
473
520
|
prop: "costPrice",
|
|
474
521
|
label: "成本价(元)"
|
|
475
522
|
}, {
|
|
476
|
-
default:
|
|
477
|
-
|
|
478
|
-
|
|
523
|
+
default: d((e) => [
|
|
524
|
+
u("span", null, [
|
|
525
|
+
a(c, {
|
|
479
526
|
modelValue: e.row.costPrice,
|
|
480
|
-
"onUpdate:modelValue": (
|
|
527
|
+
"onUpdate:modelValue": (p) => e.row.costPrice = p,
|
|
481
528
|
precision: 2,
|
|
482
529
|
size: "small",
|
|
483
530
|
controls: !1,
|
|
484
531
|
class: "w-full",
|
|
485
|
-
disabled: !
|
|
532
|
+
disabled: !n.isSettingShow
|
|
486
533
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
487
534
|
])
|
|
488
535
|
]),
|
|
489
536
|
_: 1
|
|
490
537
|
}),
|
|
491
|
-
|
|
538
|
+
a(m, {
|
|
492
539
|
prop: "weight",
|
|
493
540
|
label: "重量(kg)"
|
|
494
541
|
}, {
|
|
495
|
-
default:
|
|
496
|
-
|
|
497
|
-
|
|
542
|
+
default: d((e) => [
|
|
543
|
+
u("span", null, [
|
|
544
|
+
a(c, {
|
|
498
545
|
modelValue: e.row.weight,
|
|
499
|
-
"onUpdate:modelValue": (
|
|
546
|
+
"onUpdate:modelValue": (p) => e.row.weight = p,
|
|
500
547
|
precision: 2,
|
|
501
548
|
size: "small",
|
|
502
549
|
controls: !1,
|
|
503
550
|
class: "w-full",
|
|
504
|
-
disabled: !
|
|
551
|
+
disabled: !n.isSettingShow
|
|
505
552
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
506
553
|
])
|
|
507
554
|
]),
|
|
508
555
|
_: 1
|
|
509
556
|
}),
|
|
510
|
-
|
|
557
|
+
a(m, {
|
|
511
558
|
prop: "volume",
|
|
512
559
|
label: "体积(m³)"
|
|
513
560
|
}, {
|
|
514
|
-
default:
|
|
515
|
-
|
|
516
|
-
|
|
561
|
+
default: d((e) => [
|
|
562
|
+
u("span", null, [
|
|
563
|
+
a(c, {
|
|
517
564
|
modelValue: e.row.volume,
|
|
518
|
-
"onUpdate:modelValue": (
|
|
565
|
+
"onUpdate:modelValue": (p) => e.row.volume = p,
|
|
519
566
|
precision: 2,
|
|
520
567
|
size: "small",
|
|
521
568
|
controls: !1,
|
|
522
569
|
class: "w-full",
|
|
523
|
-
disabled: !
|
|
570
|
+
disabled: !n.isSettingShow
|
|
524
571
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
525
572
|
])
|
|
526
573
|
]),
|
|
527
574
|
_: 1
|
|
528
575
|
}),
|
|
529
|
-
|
|
576
|
+
a(m, {
|
|
530
577
|
prop: "stock",
|
|
531
578
|
label: "库存"
|
|
532
579
|
}, {
|
|
533
|
-
header:
|
|
534
|
-
|
|
535
|
-
|
|
580
|
+
header: d(() => s[13] || (s[13] = [
|
|
581
|
+
u("span", { class: "required_red" }, "*", -1),
|
|
582
|
+
u("span", null, "库存", -1)
|
|
536
583
|
])),
|
|
537
|
-
default:
|
|
538
|
-
|
|
539
|
-
|
|
584
|
+
default: d((e) => [
|
|
585
|
+
u("span", null, [
|
|
586
|
+
a(c, {
|
|
540
587
|
modelValue: e.row.stock,
|
|
541
|
-
"onUpdate:modelValue": (
|
|
588
|
+
"onUpdate:modelValue": (p) => e.row.stock = p,
|
|
542
589
|
precision: 2,
|
|
543
590
|
size: "small",
|
|
544
591
|
controls: !1,
|
|
545
592
|
class: "w-full",
|
|
546
|
-
disabled: !
|
|
593
|
+
disabled: !n.isSettingShow
|
|
547
594
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
548
595
|
])
|
|
549
596
|
]),
|
|
550
597
|
_: 1
|
|
551
598
|
}),
|
|
552
|
-
|
|
599
|
+
a(m, {
|
|
553
600
|
prop: "skuCode",
|
|
554
601
|
label: "sku编码"
|
|
555
602
|
}, {
|
|
556
|
-
default:
|
|
557
|
-
|
|
558
|
-
|
|
603
|
+
default: d((e) => [
|
|
604
|
+
u("span", null, [
|
|
605
|
+
a(N, {
|
|
559
606
|
modelValue: e.row.skuCode,
|
|
560
|
-
"onUpdate:modelValue": (
|
|
607
|
+
"onUpdate:modelValue": (p) => e.row.skuCode = p,
|
|
561
608
|
size: "small",
|
|
562
|
-
disabled: !
|
|
609
|
+
disabled: !n.isSettingShow
|
|
563
610
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
564
611
|
])
|
|
565
612
|
]),
|
|
566
613
|
_: 1
|
|
567
614
|
}),
|
|
568
|
-
|
|
615
|
+
a(m, {
|
|
569
616
|
prop: "status",
|
|
570
617
|
label: "是否上架",
|
|
571
618
|
width: "80"
|
|
572
619
|
}, {
|
|
573
|
-
default:
|
|
574
|
-
|
|
575
|
-
|
|
620
|
+
default: d((e) => [
|
|
621
|
+
n.isSettingShow ? (P(), b("span", ie, [
|
|
622
|
+
a(j, {
|
|
576
623
|
modelValue: e.row.status,
|
|
577
|
-
"onUpdate:modelValue": (
|
|
624
|
+
"onUpdate:modelValue": (p) => e.row.status = p
|
|
578
625
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
579
|
-
])) : (
|
|
626
|
+
])) : (P(), b("span", ne, D(x(O).shelfDict.getValue(e.row.status)), 1))
|
|
580
627
|
]),
|
|
581
628
|
_: 1
|
|
582
629
|
})
|
|
@@ -586,7 +633,7 @@ const Q = { key: 0 }, R = { class: "title-set" }, W = { class: "right-dis" }, X
|
|
|
586
633
|
]);
|
|
587
634
|
};
|
|
588
635
|
}
|
|
589
|
-
}),
|
|
636
|
+
}), me = /* @__PURE__ */ H(re, [["__scopeId", "data-v-6fc718ce"]]);
|
|
590
637
|
export {
|
|
591
|
-
|
|
638
|
+
me as default
|
|
592
639
|
};
|