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