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
package/dist/index.mjs
CHANGED
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
import { defineComponent as z, ref as k, computed as M, watch as Y, resolveComponent as b, createElementBlock as L, openBlock as c, createVNode as i, withCtx as e, createElementVNode as a, createBlock as f, createCommentVNode as E, createTextVNode as n, toDisplayString as t, Fragment as V, renderList as D, unref as r } from "vue";
|
|
2
|
+
import { useUserStore as j, clearEmpty as q, request as F, fileApi as w, routerUtil as G } from "jmash-core";
|
|
3
|
+
import { useRouter as H, useRoute as K } from "vue-router";
|
|
4
|
+
import { C as T } from "./constant-sVd2JbJt.mjs";
|
|
5
|
+
import { D as p, S as J } from "./index-C61SQFSx.mjs";
|
|
6
|
+
import Q from "./skuTable-C-LcASbX.mjs";
|
|
7
|
+
import { a as W } from "./index-xQgC-8Gd.mjs";
|
|
8
|
+
import { _ as X } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
9
|
+
class Z {
|
|
10
|
+
getKey(g) {
|
|
11
|
+
return {
|
|
12
|
+
spuId: g.spuId
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* 查询商品保障信息
|
|
17
|
+
* @param query 查询参数对象,包含需要查询的商品保障的关键信息
|
|
18
|
+
* @returns 返回一个Promise对象,包含商品保障信息
|
|
19
|
+
*/
|
|
20
|
+
findById(g) {
|
|
21
|
+
return g.tenant = j().user.tenant, q(g), F({
|
|
22
|
+
url: "/v1/goods/goods_ensures",
|
|
23
|
+
method: "get",
|
|
24
|
+
params: g
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
const x = new Z(), ee = { class: "app-container" }, te = { class: "cell-item" }, se = { class: "cell-item" }, le = { class: "cell-item" }, oe = { class: "cell-item" }, ue = { class: "cell-item" }, ae = { class: "cell-item" }, ie = { class: "cell-item" }, ne = { class: "cell-item" }, ce = { class: "cell-item" }, de = { class: "cell-item" }, re = { class: "cell-item" }, pe = { class: "cell-item" }, me = { class: "tag-container" }, _e = { class: "title-content" }, fe = { class: "cell-item" }, ge = { class: "cell-item" }, ve = { class: "cell-item" }, he = { class: "cell-item" }, Se = { class: "cell-item" }, ye = { class: "cell-item" }, be = { class: "cell-item" }, ke = ["innerHTML"], Le = /* @__PURE__ */ z({
|
|
29
|
+
__name: "info",
|
|
30
|
+
setup(N) {
|
|
31
|
+
p.brandListBizDict.useValues(), p.labelListBizDict.useValues();
|
|
32
|
+
const g = H(), I = K(), o = k({}), $ = k([]), h = k([]), A = k([]), B = k([]), C = M(() => h.value.filter(
|
|
33
|
+
(l) => l.name && l.specValueList != null && l.specValueList.length
|
|
34
|
+
));
|
|
35
|
+
Y(
|
|
36
|
+
C,
|
|
37
|
+
(l) => l,
|
|
38
|
+
{
|
|
39
|
+
deep: !0,
|
|
40
|
+
immediate: !0
|
|
41
|
+
}
|
|
42
|
+
), p.shopInfoBizDict.useValues(), p.goodsCategoryListBizLayDict.useValues(), I.query.spuId && W.findById({ spuId: I.query.spuId }).then(({ data: l }) => {
|
|
43
|
+
var d, S, u;
|
|
44
|
+
o.value = Object.assign(o, l), $.value = (d = l.picUrls) == null ? void 0 : d.split(","), x.findById({ spuId: I.query.spuId }).then(({ data: m }) => {
|
|
45
|
+
o.value.ensureIds = m.ensures;
|
|
46
|
+
}), l.specType === T.SPEC_TYPE_VALUES.MULTI_SPEC && (A.value = (S = l.skuList) == null ? void 0 : S.results, (u = l.skuList) == null || u.results.forEach((m) => {
|
|
47
|
+
var _;
|
|
48
|
+
(_ = m.specValues) == null || _.map((y) => {
|
|
49
|
+
p.specInfoDict.useValues().then((P) => {
|
|
50
|
+
const s = P.find((v) => y.specId === v.key);
|
|
51
|
+
if (s) {
|
|
52
|
+
let v = {
|
|
53
|
+
id: y.specId,
|
|
54
|
+
name: s.value,
|
|
55
|
+
specValueList: []
|
|
56
|
+
};
|
|
57
|
+
h.value.push(v);
|
|
58
|
+
}
|
|
59
|
+
const U = /* @__PURE__ */ new Map();
|
|
60
|
+
h.value = h.value.filter(
|
|
61
|
+
(v) => !U.has(v.id) && U.set(v.id, v)
|
|
62
|
+
), O(y.specValueId);
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
}));
|
|
66
|
+
});
|
|
67
|
+
function O(l) {
|
|
68
|
+
h.value.forEach((d) => {
|
|
69
|
+
B.value = new J({ specId: d.id }), B.value.useValues().then((S) => {
|
|
70
|
+
S.forEach((u) => {
|
|
71
|
+
if (u.key === l) {
|
|
72
|
+
let _ = {
|
|
73
|
+
id: l,
|
|
74
|
+
name: u.value
|
|
75
|
+
};
|
|
76
|
+
d.specValueList.push(_);
|
|
77
|
+
}
|
|
78
|
+
const m = /* @__PURE__ */ new Map();
|
|
79
|
+
d.specValueList = d.specValueList.filter(
|
|
80
|
+
(_) => !m.has(_.id) && m.set(_.id, _)
|
|
81
|
+
);
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
function R() {
|
|
87
|
+
G.closeTagView(I.fullPath, g, !1);
|
|
88
|
+
}
|
|
89
|
+
return (l, d) => {
|
|
90
|
+
const S = b("el-button"), u = b("el-descriptions-item"), m = b("el-tag"), _ = b("el-image"), y = b("el-descriptions"), P = b("el-card");
|
|
91
|
+
return c(), L("div", ee, [
|
|
92
|
+
i(P, { shadow: "never" }, {
|
|
93
|
+
header: e(() => [
|
|
94
|
+
i(S, {
|
|
95
|
+
type: "primary",
|
|
96
|
+
onClick: R
|
|
97
|
+
}, {
|
|
98
|
+
default: e(() => [
|
|
99
|
+
n(t(l.$t("common.back")), 1)
|
|
100
|
+
]),
|
|
101
|
+
_: 1
|
|
102
|
+
})
|
|
103
|
+
]),
|
|
104
|
+
default: e(() => [
|
|
105
|
+
d[0] || (d[0] = a("div", { class: "title-content" }, "基本信息", -1)),
|
|
106
|
+
i(y, {
|
|
107
|
+
class: "margin-top",
|
|
108
|
+
column: 2,
|
|
109
|
+
border: ""
|
|
110
|
+
}, {
|
|
111
|
+
default: e(() => [
|
|
112
|
+
i(u, null, {
|
|
113
|
+
label: e(() => [
|
|
114
|
+
a("div", te, t(l.$t("goodsSpu.spuName")), 1)
|
|
115
|
+
]),
|
|
116
|
+
default: e(() => [
|
|
117
|
+
n(" " + t(o.value.spuName), 1)
|
|
118
|
+
]),
|
|
119
|
+
_: 1
|
|
120
|
+
}),
|
|
121
|
+
i(u, null, {
|
|
122
|
+
label: e(() => [
|
|
123
|
+
a("div", se, t(l.$t("goodsSpu.spuCode")), 1)
|
|
124
|
+
]),
|
|
125
|
+
default: e(() => [
|
|
126
|
+
n(" " + t(o.value.spuCode), 1)
|
|
127
|
+
]),
|
|
128
|
+
_: 1
|
|
129
|
+
}),
|
|
130
|
+
i(u, null, {
|
|
131
|
+
label: e(() => [
|
|
132
|
+
a("div", le, t(l.$t("goodsSpu.categoryId")), 1)
|
|
133
|
+
]),
|
|
134
|
+
default: e(() => [
|
|
135
|
+
(c(!0), L(V, null, D(o.value.categoryIds, (s) => (c(), f(m, {
|
|
136
|
+
type: "info",
|
|
137
|
+
key: s,
|
|
138
|
+
style: { "margin-right": "8px", "margin-bottom": "4px" }
|
|
139
|
+
}, {
|
|
140
|
+
default: e(() => [
|
|
141
|
+
n(t(r(p).goodsCategoryListBizLayDict.getValue(s) || s), 1)
|
|
142
|
+
]),
|
|
143
|
+
_: 2
|
|
144
|
+
}, 1024))), 128))
|
|
145
|
+
]),
|
|
146
|
+
_: 1
|
|
147
|
+
}),
|
|
148
|
+
i(u, null, {
|
|
149
|
+
label: e(() => [
|
|
150
|
+
a("div", oe, t(l.$t("goodsSpu.brandId")), 1)
|
|
151
|
+
]),
|
|
152
|
+
default: e(() => [
|
|
153
|
+
n(" " + t(r(p).brandListBizDict.getValue(o.value.brandId)), 1)
|
|
154
|
+
]),
|
|
155
|
+
_: 1
|
|
156
|
+
}),
|
|
157
|
+
i(u, null, {
|
|
158
|
+
label: e(() => [
|
|
159
|
+
a("div", ue, t(l.$t("goodsSpu.labelIds")), 1)
|
|
160
|
+
]),
|
|
161
|
+
default: e(() => [
|
|
162
|
+
(c(!0), L(V, null, D(o.value.labelIds, (s) => (c(), f(m, {
|
|
163
|
+
type: "info",
|
|
164
|
+
key: s,
|
|
165
|
+
style: { "margin-right": "8px", "margin-bottom": "4px" }
|
|
166
|
+
}, {
|
|
167
|
+
default: e(() => [
|
|
168
|
+
n(t(r(p).labelListBizDict.getValue(s) || s), 1)
|
|
169
|
+
]),
|
|
170
|
+
_: 2
|
|
171
|
+
}, 1024))), 128))
|
|
172
|
+
]),
|
|
173
|
+
_: 1
|
|
174
|
+
}),
|
|
175
|
+
i(u, null, {
|
|
176
|
+
label: e(() => [
|
|
177
|
+
a("div", ae, t(l.$t("goodsSpu.picUrls")), 1)
|
|
178
|
+
]),
|
|
179
|
+
default: e(() => [
|
|
180
|
+
(c(!0), L(V, null, D($.value, (s) => (c(), f(_, {
|
|
181
|
+
key: s,
|
|
182
|
+
src: r(w).imageUrl(s, 80, 80),
|
|
183
|
+
"preview-src-list": [r(w).imageUrl(s)],
|
|
184
|
+
"preview-teleported": "",
|
|
185
|
+
"hide-on-click-modal": "",
|
|
186
|
+
fit: "contain"
|
|
187
|
+
}, null, 8, ["src", "preview-src-list"]))), 128))
|
|
188
|
+
]),
|
|
189
|
+
_: 1
|
|
190
|
+
}),
|
|
191
|
+
i(u, null, {
|
|
192
|
+
label: e(() => [
|
|
193
|
+
a("div", ie, t(l.$t("goodsSpu.freightType")), 1)
|
|
194
|
+
]),
|
|
195
|
+
default: e(() => [
|
|
196
|
+
n(" " + t(r(p).freightTypeEnum.getEnumValue(
|
|
197
|
+
o.value.freightType
|
|
198
|
+
)), 1)
|
|
199
|
+
]),
|
|
200
|
+
_: 1
|
|
201
|
+
}),
|
|
202
|
+
i(u, null, {
|
|
203
|
+
label: e(() => [
|
|
204
|
+
a("div", ne, t(l.$t("goodsSpu.freightAmount")), 1)
|
|
205
|
+
]),
|
|
206
|
+
default: e(() => [
|
|
207
|
+
n(" " + t(o.value.freightAmount), 1)
|
|
208
|
+
]),
|
|
209
|
+
_: 1
|
|
210
|
+
}),
|
|
211
|
+
i(u, null, {
|
|
212
|
+
label: e(() => [
|
|
213
|
+
a("div", ce, t(l.$t("goodsSpu.shelf")), 1)
|
|
214
|
+
]),
|
|
215
|
+
default: e(() => [
|
|
216
|
+
n(" " + t(r(p).shelfDict.getValue(o.value.shelf)), 1)
|
|
217
|
+
]),
|
|
218
|
+
_: 1
|
|
219
|
+
}),
|
|
220
|
+
i(u, null, {
|
|
221
|
+
label: e(() => [
|
|
222
|
+
a("div", de, t(l.$t("goodsSpu.saleNum")), 1)
|
|
223
|
+
]),
|
|
224
|
+
default: e(() => [
|
|
225
|
+
n(" " + t(o.value.saleNum), 1)
|
|
226
|
+
]),
|
|
227
|
+
_: 1
|
|
228
|
+
}),
|
|
229
|
+
i(u, null, {
|
|
230
|
+
label: e(() => [
|
|
231
|
+
a("div", re, t(l.$t("goodsSpu.sellPoint")), 1)
|
|
232
|
+
]),
|
|
233
|
+
default: e(() => [
|
|
234
|
+
n(" " + t(o.value.sellPoint), 1)
|
|
235
|
+
]),
|
|
236
|
+
_: 1
|
|
237
|
+
}),
|
|
238
|
+
i(u, null, {
|
|
239
|
+
label: e(() => [
|
|
240
|
+
a("div", pe, t(l.$t("goodsSpu.ensureIds")), 1)
|
|
241
|
+
]),
|
|
242
|
+
default: e(() => [
|
|
243
|
+
a("div", me, [
|
|
244
|
+
(c(!0), L(V, null, D(o.value.ensureIds, (s) => (c(), f(m, {
|
|
245
|
+
type: "info",
|
|
246
|
+
key: s
|
|
247
|
+
}, {
|
|
248
|
+
default: e(() => [
|
|
249
|
+
n(t(r(p).goodsEnsureDict.getDictValue(s)), 1)
|
|
250
|
+
]),
|
|
251
|
+
_: 2
|
|
252
|
+
}, 1024))), 128))
|
|
253
|
+
])
|
|
254
|
+
]),
|
|
255
|
+
_: 1
|
|
256
|
+
})
|
|
257
|
+
]),
|
|
258
|
+
_: 1
|
|
259
|
+
}),
|
|
260
|
+
a("div", _e, " 商品规格(" + t(r(p).specTypeEnum.getEnumValue(o.value.specType)) + ") ", 1),
|
|
261
|
+
o.value.specType == r(T).SPEC_TYPE_VALUES.UNIFIED_SPEC ? (c(), f(y, {
|
|
262
|
+
key: 0,
|
|
263
|
+
class: "margin-top",
|
|
264
|
+
column: 2,
|
|
265
|
+
border: ""
|
|
266
|
+
}, {
|
|
267
|
+
default: e(() => [
|
|
268
|
+
i(u, null, {
|
|
269
|
+
label: e(() => [
|
|
270
|
+
a("div", fe, t(l.$t("goodsSpu.salePrice")), 1)
|
|
271
|
+
]),
|
|
272
|
+
default: e(() => {
|
|
273
|
+
var s;
|
|
274
|
+
return [
|
|
275
|
+
n(" " + t((s = o.value.skuList) == null ? void 0 : s.results[0].salePrice), 1)
|
|
276
|
+
];
|
|
277
|
+
}),
|
|
278
|
+
_: 1
|
|
279
|
+
}),
|
|
280
|
+
i(u, null, {
|
|
281
|
+
label: e(() => [
|
|
282
|
+
a("div", ge, t(l.$t("goodsSpu.marketPrice")), 1)
|
|
283
|
+
]),
|
|
284
|
+
default: e(() => {
|
|
285
|
+
var s;
|
|
286
|
+
return [
|
|
287
|
+
n(" " + t((s = o.value.skuList) == null ? void 0 : s.results[0].marketPrice), 1)
|
|
288
|
+
];
|
|
289
|
+
}),
|
|
290
|
+
_: 1
|
|
291
|
+
}),
|
|
292
|
+
i(u, null, {
|
|
293
|
+
label: e(() => [
|
|
294
|
+
a("div", ve, t(l.$t("goodsSpu.costPrice")), 1)
|
|
295
|
+
]),
|
|
296
|
+
default: e(() => {
|
|
297
|
+
var s;
|
|
298
|
+
return [
|
|
299
|
+
n(" " + t((s = o.value.skuList) == null ? void 0 : s.results[0].costPrice), 1)
|
|
300
|
+
];
|
|
301
|
+
}),
|
|
302
|
+
_: 1
|
|
303
|
+
}),
|
|
304
|
+
o.value.isPointsDeduct === !0 ? (c(), f(u, { key: 0 }, {
|
|
305
|
+
label: e(() => [
|
|
306
|
+
a("div", he, t(l.$t("goodsSpu.pointsDeduct")), 1)
|
|
307
|
+
]),
|
|
308
|
+
default: e(() => {
|
|
309
|
+
var s;
|
|
310
|
+
return [
|
|
311
|
+
n(" " + t((s = o.value.skuList) == null ? void 0 : s.results[0].pointsDeduct), 1)
|
|
312
|
+
];
|
|
313
|
+
}),
|
|
314
|
+
_: 1
|
|
315
|
+
})) : E("", !0),
|
|
316
|
+
o.value.presaleType === r(T).GOODS_PRESALE_TYPE_VALUES.DEPOSIT ? (c(), f(u, { key: 1 }, {
|
|
317
|
+
label: e(() => [
|
|
318
|
+
a("div", Se, t(l.$t("goodsSpu.earnestAmount")), 1)
|
|
319
|
+
]),
|
|
320
|
+
default: e(() => {
|
|
321
|
+
var s;
|
|
322
|
+
return [
|
|
323
|
+
n(" " + t((s = o.value.skuList) == null ? void 0 : s.results[0].earnestAmount), 1)
|
|
324
|
+
];
|
|
325
|
+
}),
|
|
326
|
+
_: 1
|
|
327
|
+
})) : E("", !0),
|
|
328
|
+
o.value.presaleType === r(T).GOODS_PRESALE_TYPE_VALUES.DEPOSIT_RETURN ? (c(), f(u, { key: 2 }, {
|
|
329
|
+
label: e(() => [
|
|
330
|
+
a("div", ye, t(l.$t("goodsSpu.depositAmount")), 1)
|
|
331
|
+
]),
|
|
332
|
+
default: e(() => {
|
|
333
|
+
var s;
|
|
334
|
+
return [
|
|
335
|
+
n(" " + t((s = o.value.skuList) == null ? void 0 : s.results[0].depositAmount), 1)
|
|
336
|
+
];
|
|
337
|
+
}),
|
|
338
|
+
_: 1
|
|
339
|
+
})) : E("", !0),
|
|
340
|
+
i(u, null, {
|
|
341
|
+
label: e(() => [
|
|
342
|
+
a("div", be, t(l.$t("goodsSpu.stock")), 1)
|
|
343
|
+
]),
|
|
344
|
+
default: e(() => {
|
|
345
|
+
var s;
|
|
346
|
+
return [
|
|
347
|
+
n(" " + t((s = o.value.skuList) == null ? void 0 : s.results[0].stock), 1)
|
|
348
|
+
];
|
|
349
|
+
}),
|
|
350
|
+
_: 1
|
|
351
|
+
})
|
|
352
|
+
]),
|
|
353
|
+
_: 1
|
|
354
|
+
})) : E("", !0),
|
|
355
|
+
h.value.length > 0 ? (c(), f(Q, {
|
|
356
|
+
key: 1,
|
|
357
|
+
specData: C.value,
|
|
358
|
+
goodsSku: A.value,
|
|
359
|
+
isSettingShow: !1
|
|
360
|
+
}, null, 8, ["specData", "goodsSku"])) : E("", !0),
|
|
361
|
+
d[1] || (d[1] = a("div", { class: "title-content" }, "商品描述", -1)),
|
|
362
|
+
a("div", {
|
|
363
|
+
class: "description-content",
|
|
364
|
+
innerHTML: o.value.description
|
|
365
|
+
}, null, 8, ke)
|
|
366
|
+
]),
|
|
367
|
+
_: 1,
|
|
368
|
+
__: [0, 1]
|
|
369
|
+
})
|
|
370
|
+
]);
|
|
371
|
+
};
|
|
372
|
+
}
|
|
373
|
+
}), Be = /* @__PURE__ */ X(Le, [["__scopeId", "data-v-adca63f1"]]);
|
|
374
|
+
export {
|
|
375
|
+
Be as default
|
|
376
|
+
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { defineComponent as M, ref as P, resolveComponent as _, createElementBlock as v, openBlock as f, createVNode as o, withCtx as s, createElementVNode as d, createTextVNode as p, toDisplayString as u, Fragment as T, renderList as C, createBlock as L, unref as m } from "vue";
|
|
2
2
|
import { fileApi as b, routerUtil as R } from "jmash-core";
|
|
3
3
|
import { useRouter as j, useRoute as G } from "vue-router";
|
|
4
|
-
import { D as y
|
|
5
|
-
import {
|
|
4
|
+
import { D as y } from "./index-C61SQFSx.mjs";
|
|
5
|
+
import { C as U } from "./constant-sVd2JbJt.mjs";
|
|
6
|
+
import { a as D } from "./index-xQgC-8Gd.mjs";
|
|
6
7
|
import { specValueApi as H } from "xyvcard-shop";
|
|
7
|
-
const J = { class: "app-container" }, K = { class: "cell-item" }, Q = { class: "cell-item" }, W = { class: "cell-item" }, X = { class: "cell-item" }, Z = { class: "cell-item" }, w = { class: "cell-item" }, x = { class: "cell-item" }, ee = { class: "cell-item" }, le = { class: "cell-item" }, se = { class: "cell-item" }, te = { class: "cell-item" }, ae = { key: 0 }, ie = { key: 1 },
|
|
8
|
+
const J = { class: "app-container" }, K = { class: "cell-item" }, Q = { class: "cell-item" }, W = { class: "cell-item" }, X = { class: "cell-item" }, Z = { class: "cell-item" }, w = { class: "cell-item" }, x = { class: "cell-item" }, ee = { class: "cell-item" }, le = { class: "cell-item" }, se = { class: "cell-item" }, te = { class: "cell-item" }, ae = { key: 0 }, ie = { key: 1 }, _e = /* @__PURE__ */ M({
|
|
8
9
|
__name: "info",
|
|
9
10
|
setup(ue) {
|
|
10
11
|
const B = j(), S = G(), r = P({}), $ = P([]), A = P({}), E = P([]);
|
|
@@ -345,5 +346,5 @@ const J = { class: "app-container" }, K = { class: "cell-item" }, Q = { class: "
|
|
|
345
346
|
}
|
|
346
347
|
});
|
|
347
348
|
export {
|
|
348
|
-
|
|
349
|
+
_e as default
|
|
349
350
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { defineComponent as z, ref as S, watch as E, resolveComponent as i, createBlock as P, openBlock as m, withCtx as r, createVNode as n, unref as U, createElementBlock as T, Fragment as Y, renderList as G, createCommentVNode as M, createTextVNode as H, toDisplayString as J } from "vue";
|
|
2
2
|
import { useI18n as K } from "vue-i18n";
|
|
3
|
-
import { p as Q } from "./index-
|
|
4
|
-
import { D as V
|
|
5
|
-
import {
|
|
3
|
+
import { p as Q } from "./index-CyxnVWnL.mjs";
|
|
4
|
+
import { D as V } from "./index-C61SQFSx.mjs";
|
|
5
|
+
import { C as h } from "./constant-sVd2JbJt.mjs";
|
|
6
|
+
import { a as D } from "./index-xQgC-8Gd.mjs";
|
|
6
7
|
import { specValueApi as W } from "xyvcard-shop";
|
|
7
8
|
import { _ as X } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
8
9
|
const Z = { key: 0 }, x = /* @__PURE__ */ z({
|
|
@@ -94,31 +95,31 @@ const Z = { key: 0 }, x = /* @__PURE__ */ z({
|
|
|
94
95
|
async function v(s, e) {
|
|
95
96
|
var l, t, I;
|
|
96
97
|
if (e.skuId = "", e.skuOptions = [], e.picUrl = "", e.salePrice = 0, e.saleNum = 1, e.skuName = "", e.marketPrice = 0, !s) {
|
|
97
|
-
e.skuId = "", e.picUrl = "", e.salePrice = 0, e.saleNum = 1, e.skuName = ((l = V.goodsSpuBizDict.values.find((
|
|
98
|
+
e.skuId = "", e.picUrl = "", e.salePrice = 0, e.saleNum = 1, e.skuName = ((l = V.goodsSpuBizDict.values.find((u) => u.key === s)) == null ? void 0 : l.value) ?? "", e.skuOptions = [], e.marketPrice = 0;
|
|
98
99
|
return;
|
|
99
100
|
}
|
|
100
101
|
try {
|
|
101
|
-
const { data:
|
|
102
|
-
if (e.specType =
|
|
103
|
-
const f =
|
|
102
|
+
const { data: u } = await D.findById({ spuId: s });
|
|
103
|
+
if (e.specType = u.specType, e.marketPrice = u.maxPrice, e.specType === h.SPEC_TYPE_VALUES.UNIFIED_SPEC && (e.picUrl = u.picUrls ? u.picUrls.split(",")[0] : "", e.salePrice = (t = u.skuList) == null ? void 0 : t.results[0].salePrice, e.skuId = (I = u.skuList) == null ? void 0 : I.results[0].skuId, e.skuName = u.spuName), e.specType === h.SPEC_TYPE_VALUES.MULTI_SPEC && u.skuList) {
|
|
104
|
+
const f = u.skuList.results, k = f.map((o) => o.specValues && Array.isArray(o.specValues) ? o.specValues.map(
|
|
104
105
|
(p) => p.specValueId
|
|
105
|
-
) : []), N = k.flat().map((
|
|
106
|
+
) : []), N = k.flat().map((o) => R(o));
|
|
106
107
|
await Promise.all(N);
|
|
107
108
|
const _ = k.map(
|
|
108
|
-
(
|
|
109
|
+
(o) => o.map((p) => g.value[p] || p)
|
|
109
110
|
);
|
|
110
|
-
e.skuOptions = f.map((
|
|
111
|
-
key:
|
|
111
|
+
e.skuOptions = f.map((o, p) => ({
|
|
112
|
+
key: o.skuId,
|
|
112
113
|
value: _[p].join(" "),
|
|
113
114
|
specInfo: _[p].join(" "),
|
|
114
|
-
picUrl:
|
|
115
|
-
salePrice:
|
|
116
|
-
stock:
|
|
117
|
-
})), f.forEach((
|
|
118
|
-
|
|
119
|
-
...
|
|
115
|
+
picUrl: o.picUrl || (u.picUrls ? u.picUrls.split(",")[0] : ""),
|
|
116
|
+
salePrice: o.salePrice,
|
|
117
|
+
stock: o.stock
|
|
118
|
+
})), f.forEach((o, p) => {
|
|
119
|
+
o.skuId && (b.value[o.skuId] = {
|
|
120
|
+
...o,
|
|
120
121
|
specInfo: _[p].join(" "),
|
|
121
|
-
spuPicUrls:
|
|
122
|
+
spuPicUrls: u.picUrls
|
|
122
123
|
});
|
|
123
124
|
});
|
|
124
125
|
}
|
|
@@ -155,10 +156,10 @@ const Z = { key: 0 }, x = /* @__PURE__ */ z({
|
|
|
155
156
|
immediate: !0
|
|
156
157
|
}
|
|
157
158
|
), (s, e) => {
|
|
158
|
-
const l = i("jmash-select"), t = i("el-table-column"), I = i("el-option"),
|
|
159
|
+
const l = i("jmash-select"), t = i("el-table-column"), I = i("el-option"), u = i("el-select"), f = i("jmash-single-image-upload"), k = i("el-input-number"), N = i("DeleteFilled"), _ = i("el-icon"), o = i("el-table"), p = i("el-button"), q = i("el-row");
|
|
159
160
|
return m(), P(q, null, {
|
|
160
161
|
default: r(() => [
|
|
161
|
-
n(
|
|
162
|
+
n(o, {
|
|
162
163
|
data: d.value,
|
|
163
164
|
border: "",
|
|
164
165
|
style: { width: "100%" }
|
|
@@ -188,7 +189,7 @@ const Z = { key: 0 }, x = /* @__PURE__ */ z({
|
|
|
188
189
|
"header-align": "center"
|
|
189
190
|
}, {
|
|
190
191
|
default: r(({ row: a }) => [
|
|
191
|
-
a.specType === U(h).SPEC_TYPE_VALUES.UNIFIED_SPEC ? (m(), T("span", Z, " 统一规格 ")) : (m(), P(
|
|
192
|
+
a.specType === U(h).SPEC_TYPE_VALUES.UNIFIED_SPEC ? (m(), T("span", Z, " 统一规格 ")) : (m(), P(u, {
|
|
192
193
|
key: 1,
|
|
193
194
|
modelValue: a.skuId,
|
|
194
195
|
"onUpdate:modelValue": (c) => a.skuId = c,
|
|
@@ -298,7 +299,7 @@ const Z = { key: 0 }, x = /* @__PURE__ */ z({
|
|
|
298
299
|
});
|
|
299
300
|
};
|
|
300
301
|
}
|
|
301
|
-
}),
|
|
302
|
+
}), ce = /* @__PURE__ */ X(x, [["__scopeId", "data-v-605dcad9"]]);
|
|
302
303
|
export {
|
|
303
|
-
|
|
304
|
+
ce as default
|
|
304
305
|
};
|