xyvcard-goods 0.0.34 → 0.0.35
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/BatchSetting-B1LcBFPD.mjs +333 -0
- package/dist/ChannelProfit-CNSIK87d.mjs +4 -0
- package/dist/ChannelProfit.vue_vue_type_script_setup_true_lang-BVTifRY8.mjs +320 -0
- package/dist/{GoodsBaseForm-BSvXc_XA.mjs → GoodsBaseForm-BZ2fZmmp.mjs} +1 -1
- package/dist/GoodsBaseForm.vue_vue_type_script_setup_true_lang-BxBTTLdA.mjs +407 -0
- package/dist/{GoodsLogisticsForm-1Bbd4Z52.mjs → GoodsLogisticsForm-BqlwdGQ1.mjs} +1 -1
- package/dist/{GoodsLogisticsForm.vue_vue_type_script_setup_true_lang-PSnPNbmT.mjs → GoodsLogisticsForm.vue_vue_type_script_setup_true_lang-DJREiSkD.mjs} +56 -57
- package/dist/GoodsProfitForm-COYRi8sx.mjs +4 -0
- package/dist/GoodsProfitForm.vue_vue_type_script_setup_true_lang-BYPWP95J.mjs +2550 -0
- package/dist/{GoodsSpecForm-Ddo1IZLZ.mjs → GoodsSpecForm-B4MtETRy.mjs} +1 -1
- package/dist/{GoodsSpecForm.vue_vue_type_script_setup_true_lang-CdWIufm4.mjs → GoodsSpecForm.vue_vue_type_script_setup_true_lang-BbVK_KNz.mjs} +130 -121
- package/dist/SingleSku-rWv9vVhv.mjs +351 -0
- package/dist/constant-sVd2JbJt.mjs +115 -0
- package/dist/edit-B1cmsJpy.mjs +70 -0
- package/dist/{edit-lfXK_dUp.mjs → edit-Br1Y569l.mjs} +8 -7
- package/dist/{edit-e5-aXV6K.mjs → edit-CET8Fr-t.mjs} +1 -1
- package/dist/{edit-pUKONjxH.mjs → edit-CagYTFKr.mjs} +1 -1
- package/dist/{edit-BgtwinSN.mjs → edit-iJGrWlSv.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BtGT564r.mjs → edit.vue_vue_type_script_setup_true_lang-D_0YivhL.mjs} +2 -2
- package/dist/{el-message-BB2-39XJ.mjs → el-message-Dj6aaz4G.mjs} +490 -373
- package/dist/{index-DyLLV1NK.mjs → index copy-kNLE7fPg.mjs } +6 -5
- package/dist/index-C61SQFSx.mjs +264 -0
- package/dist/index-CeWPdEJD.mjs +713 -0
- package/dist/{index-CkJncbVf.mjs → index-Cg6GUdSP.mjs} +3 -3
- package/dist/index-CyxnVWnL.mjs +182 -0
- package/dist/{index-CkMWas2b.mjs → index-D9s8hsVw.mjs} +3 -3
- package/dist/{index-BSzOTWcG.mjs → index-DbnKa_BJ.mjs} +1 -1
- package/dist/{index-ChQ-ZxD1.mjs → index-DoxTu4kg.mjs} +5 -4
- package/dist/{index-BpKiAhvt.mjs → index-kw0UYOIu.mjs} +3 -3
- package/dist/{index-DhS4AuWf.mjs → index-xQgC-8Gd.mjs} +1106 -1038
- package/dist/index.mjs +1 -1
- package/dist/info-CTElDVo6.mjs +376 -0
- package/dist/{info-DOKoSi7a.mjs → info-DpGJgdac.mjs} +5 -4
- package/dist/{skuForm-DVGkw6rD.mjs → skuForm-C7w9YIDe.mjs} +24 -23
- package/dist/skuForm-CPlnCToi.mjs +279 -0
- package/dist/skuTable-C-LcASbX.mjs +594 -0
- package/dist/spec-DkiGCkuM.mjs +44 -0
- package/dist/style.css +1 -1
- package/dts/xyvcard-goods/src/api/dict.d.ts +5 -4
- package/dts/xyvcard-goods/src/api/goods-sku/types.d.ts +3 -0
- package/dts/xyvcard-goods/src/api/goods-spu/index.d.ts +4 -1
- package/dts/xyvcard-goods/src/api/goods-spu/types.d.ts +35 -9
- package/dts/xyvcard-goods/src/api/types.d.ts +4 -0
- package/dts/xyvcard-goods/src/lang/goods/zh-cn.d.ts +32 -0
- package/dts/xyvcard-goods/src/router/index.d.ts +1 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/BatchSetting.vue.d.ts +35 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/ChannelProfit.vue.d.ts +22 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsProfitForm.vue.d.ts +34 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/SingleSku.vue.d.ts +23 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/index copy.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/skuForm.vue.d.ts +17 -4
- package/dts/xyvcard-goods/src/views/goods/goods-spu/skuTable.vue.d.ts +14 -1
- package/dts/xyvcard-goods/src/views/goods/goods-spu/spec.vue.d.ts +2 -0
- package/package.json +4 -3
- package/dist/GoodsBaseForm.vue_vue_type_script_setup_true_lang-rsmqHXbJ.mjs +0 -381
- package/dist/edit copy 2-Yzf_M31V.mjs +0 -59
- package/dist/edit copy-CCnzlrgL.mjs +0 -526
- package/dist/edit-Dke5sWct.mjs +0 -526
- package/dist/index-BHmGYIuc.mjs +0 -24
- package/dist/index-Da2R0n8O.mjs +0 -374
- package/dist/index-vHQhUQSO.mjs +0 -95
- package/dist/info-De_pBN6A.mjs +0 -365
- package/dist/skuForm-YXHrhyPI.mjs +0 -476
- package/dist/skuTable-DOIQ9kiV.mjs +0 -639
|
@@ -1,639 +0,0 @@
|
|
|
1
|
-
import { defineComponent as B, ref as C, computed as T, watch as $, resolveComponent as g, createElementBlock as _, openBlock as P, createCommentVNode as M, createVNode as a, createElementVNode as u, createTextVNode as y, withCtx as c, Fragment as G, renderList as K, createBlock as z, toDisplayString as D, unref as x } from "vue";
|
|
2
|
-
import { D as O } from "./index-Da2R0n8O.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, d) => {
|
|
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[d]) % l.length;
|
|
26
|
-
V = n[d].specValueList[m];
|
|
27
|
-
} else
|
|
28
|
-
V = n[d].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__ */ B({
|
|
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 = T(() => {
|
|
86
|
-
let t = J(w.specData, [], {}).map((i) => ({
|
|
87
|
-
specValues: i.specs,
|
|
88
|
-
specIds: i.specs.reduce(
|
|
89
|
-
(r, d, l) => `${r}${d.specId}-${d.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
|
-
(d, l, V) => `${d}${l.specId}-${l.specValueId}${V === i.specValues.length - 1 ? "" : "_"}`,
|
|
98
|
-
""
|
|
99
|
-
)
|
|
100
|
-
};
|
|
101
|
-
});
|
|
102
|
-
return t.forEach((i) => {
|
|
103
|
-
s.forEach((r) => {
|
|
104
|
-
let d = i.specIds.split("_"), l = r.specIds.split("_"), V = !0;
|
|
105
|
-
d.forEach((m) => {
|
|
106
|
-
l.find((b) => b == 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, d;
|
|
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) !== ((d = s[0].specValues) == null ? void 0 : d.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
|
-
(b) => b.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.response.fileSrc;
|
|
203
|
-
}
|
|
204
|
-
return (t, s) => {
|
|
205
|
-
const i = g("Setting"), r = g("el-icon"), d = g("el-input-number"), l = g("el-tooltip"), V = g("el-button"), m = g("el-table-column"), b = g("jmash-single-image-upload"), A = g("el-image"), N = g("el-input"), j = g("el-switch"), q = g("el-table");
|
|
206
|
-
return P(), _("div", null, [
|
|
207
|
-
n.isSettingShow ? (P(), _("div", W, [
|
|
208
|
-
u("div", X, [
|
|
209
|
-
a(r, null, {
|
|
210
|
-
default: c(() => [
|
|
211
|
-
a(i)
|
|
212
|
-
]),
|
|
213
|
-
_: 1
|
|
214
|
-
}),
|
|
215
|
-
s[8] || (s[8] = y(" 批量设置 ", -1))
|
|
216
|
-
]),
|
|
217
|
-
u("span", Y, [
|
|
218
|
-
a(l, {
|
|
219
|
-
class: "box-item",
|
|
220
|
-
effect: "dark",
|
|
221
|
-
content: "销售价(元)",
|
|
222
|
-
placement: "top-start"
|
|
223
|
-
}, {
|
|
224
|
-
default: c(() => [
|
|
225
|
-
a(d, {
|
|
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: c(() => [
|
|
245
|
-
a(d, {
|
|
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: c(() => [
|
|
265
|
-
a(d, {
|
|
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: c(() => [
|
|
285
|
-
a(d, {
|
|
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: c(() => [
|
|
305
|
-
a(d, {
|
|
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: c(() => [
|
|
325
|
-
a(d, {
|
|
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: c(() => [
|
|
345
|
-
a(d, {
|
|
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: c(() => [
|
|
365
|
-
a(d, {
|
|
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: c(() => s[9] || (s[9] = [
|
|
383
|
-
y("设置", -1)
|
|
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: c(() => [
|
|
394
|
-
a(m, { type: "index" }),
|
|
395
|
-
(P(!0), _(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: c((F) => [
|
|
401
|
-
y(D(F.row.specValues[p].specValueName), 1)
|
|
402
|
-
]),
|
|
403
|
-
_: 2
|
|
404
|
-
}, 1032, ["prop", "label"]))), 128)),
|
|
405
|
-
a(m, {
|
|
406
|
-
prop: "picUrl",
|
|
407
|
-
label: "图片"
|
|
408
|
-
}, {
|
|
409
|
-
default: c((e) => [
|
|
410
|
-
n.isSettingShow ? (P(), z(b, {
|
|
411
|
-
key: 0,
|
|
412
|
-
"picture-url": e.row.picUrl,
|
|
413
|
-
onUploadFile: (p) => v(p, e.row)
|
|
414
|
-
}, null, 8, ["picture-url", "onUploadFile"])) : (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: c(() => s[10] || (s[10] = [
|
|
434
|
-
u("span", { class: "required_red" }, "*", -1),
|
|
435
|
-
u("span", null, "销售价(元)", -1)
|
|
436
|
-
])),
|
|
437
|
-
default: c((e) => [
|
|
438
|
-
u("span", null, [
|
|
439
|
-
a(d, {
|
|
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: c(() => s[11] || (s[11] = [
|
|
458
|
-
u("span", { class: "required_red" }, "*", -1),
|
|
459
|
-
u("span", null, "v2会员销售价(元)", -1)
|
|
460
|
-
])),
|
|
461
|
-
default: c((e) => [
|
|
462
|
-
u("span", null, [
|
|
463
|
-
a(d, {
|
|
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: c(() => s[12] || (s[12] = [
|
|
482
|
-
u("span", { class: "required_red" }, "*", -1),
|
|
483
|
-
u("span", null, "v3会员销售价(元)", -1)
|
|
484
|
-
])),
|
|
485
|
-
default: c((e) => [
|
|
486
|
-
u("span", null, [
|
|
487
|
-
a(d, {
|
|
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: c((e) => [
|
|
505
|
-
u("span", null, [
|
|
506
|
-
a(d, {
|
|
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: c((e) => [
|
|
524
|
-
u("span", null, [
|
|
525
|
-
a(d, {
|
|
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: c((e) => [
|
|
543
|
-
u("span", null, [
|
|
544
|
-
a(d, {
|
|
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: c((e) => [
|
|
562
|
-
u("span", null, [
|
|
563
|
-
a(d, {
|
|
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: c(() => s[13] || (s[13] = [
|
|
581
|
-
u("span", { class: "required_red" }, "*", -1),
|
|
582
|
-
u("span", null, "库存", -1)
|
|
583
|
-
])),
|
|
584
|
-
default: c((e) => [
|
|
585
|
-
u("span", null, [
|
|
586
|
-
a(d, {
|
|
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: c((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: c((e) => [
|
|
621
|
-
n.isSettingShow ? (P(), _("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(), _("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-9a35cb4e"]]);
|
|
637
|
-
export {
|
|
638
|
-
me as default
|
|
639
|
-
};
|