xyvcard-goods 0.0.18 → 0.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
- package/dist/edit-Bb2XgE0h.mjs +590 -0
- package/dist/edit-BcokSKfN.mjs +183 -0
- package/dist/{edit-E57LIt5x.mjs → edit-Cj13W2TC.mjs} +1 -1
- package/dist/edit-DxnsmaXV.mjs +186 -0
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BHplO2tN.mjs → edit.vue_vue_type_script_setup_true_lang-D2w1583D.mjs} +1 -1
- package/dist/{goodsList-0TMcPn_Q.mjs → goodsList-DOXK1EwK.mjs} +1 -1
- package/dist/goodsList.vue_vue_type_script_setup_true_lang-COJVlEjX.mjs +713 -0
- package/dist/index-BmOxm1P2.mjs +324 -0
- package/dist/index-C3FT_Oe7.mjs +318 -0
- package/dist/{index-CnyW3rxw.mjs → index-CGAoZY87.mjs} +2 -2
- package/dist/index-D3w33Nba.mjs +301 -0
- package/dist/{index-nSAowuoJ.mjs → index-DAJiqOCh.mjs} +2 -2
- package/dist/index-DR7GlHNd.mjs +1288 -0
- package/dist/index-jTDhsbYM.mjs +141 -0
- package/dist/index-r0u-27m7.mjs +141 -0
- package/dist/index.mjs +321 -284
- package/dist/info-DImlMNq0.mjs +365 -0
- package/dist/{skuForm-H9IDa7ys.mjs → skuForm-Bt3arW0s.mjs} +157 -108
- package/dist/skuTable-Ahc3WlPp.mjs +639 -0
- package/dist/style.css +1 -1
- package/dts/api/dict.d.ts +6 -0
- package/dts/api/goods-brand-info/index.d.ts +20 -0
- package/dts/api/goods-brand-info/types.d.ts +73 -0
- package/dts/api/goods-label-info/index.d.ts +20 -0
- package/dts/api/goods-label-info/types.d.ts +70 -0
- package/dts/api/goods-sku/types.d.ts +2 -0
- package/dts/api/goods-spu/types.d.ts +13 -0
- package/dts/api/index.d.ts +3 -1
- package/dts/lang/goods/zh-cn.d.ts +35 -0
- package/dts/views/goods/goods-brand-info/edit.vue.d.ts +22 -0
- package/dts/views/goods/goods-brand-info/index.vue.d.ts +2 -0
- package/dts/views/goods/goods-label-info/edit.vue.d.ts +22 -0
- package/dts/views/goods/goods-label-info/index.vue.d.ts +2 -0
- package/package.json +2 -2
- package/dist/edit-CYk6B5NG.mjs +0 -529
- package/dist/goodsList.vue_vue_type_script_setup_true_lang-Cd7-ryQA.mjs +0 -626
- package/dist/index-CmKF2zdn.mjs +0 -272
- package/dist/info-D6MWRZ1y.mjs +0 -306
- package/dist/skuTable-DbNThlFG.mjs +0 -553
package/dist/index-CmKF2zdn.mjs
DELETED
|
@@ -1,272 +0,0 @@
|
|
|
1
|
-
var S = Object.defineProperty;
|
|
2
|
-
var y = (o, e, t) => e in o ? S(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
|
-
var s = (o, e, t) => y(o, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { useUserStore as c, clearEmpty as l, request as d, BizDict as p, BizLayDict as v, EnumDict as g } from "jmash-core";
|
|
5
|
-
import { EntryDict as A } from "jmash-dict";
|
|
6
|
-
import { ref as h, reactive as L } from "vue";
|
|
7
|
-
import { specValueApi as P, infoApi as m, specInfoApi as O } from "xyvcard-shop";
|
|
8
|
-
class a {
|
|
9
|
-
}
|
|
10
|
-
// 模块
|
|
11
|
-
s(a, "MODULE_GOODS", "goods"), // 商品规格类型
|
|
12
|
-
s(a, "SPEC_TYPE", {
|
|
13
|
-
UNIFIED_SPEC: "UNIFIED_SPEC",
|
|
14
|
-
//统一规格
|
|
15
|
-
MULTI_SPEC: "MULTI_SPEC"
|
|
16
|
-
//多规格
|
|
17
|
-
}), // 启用禁用
|
|
18
|
-
s(a, "SHELF_VALUES", h([
|
|
19
|
-
{ key: !0, value: "上架" },
|
|
20
|
-
{ key: !1, value: "下架" }
|
|
21
|
-
])), // 运费类型
|
|
22
|
-
s(a, "ENUM_FREIGHT_TYPE", "xyvcard.goods.protobuf.FreightType"), // 保障服务
|
|
23
|
-
s(a, "DICT_GOODS_ENSURE", "goods_ensure"), // 规格类型
|
|
24
|
-
s(a, "ENUM_SPEC_TYPE", "xyvcard.goods.protobuf.SpecType"), // 商品查询枚举
|
|
25
|
-
s(a, "ENUM_GOODS_SPU_List_SORT", "xyvcard.goods.protobuf.GoodsSpuListSort"), // 审核状态
|
|
26
|
-
s(a, "ENUM_APPROVAL_STATUS", "xyvcard.goods.protobuf.ApprovalStatus"), // 审核状态常量
|
|
27
|
-
s(a, "APPROVAL_NOT_PASS", "APPROVAL_NOT_PASS"), s(a, "APPROVAL_PASS", "APPROVAL_PASS"), s(a, "APPROVALING", "APPROVALING"), // 启用禁用
|
|
28
|
-
s(a, "ENABLE_VALUES", h([
|
|
29
|
-
{ key: "true", value: "启用" },
|
|
30
|
-
{ key: "false", value: "禁用" }
|
|
31
|
-
]));
|
|
32
|
-
class f {
|
|
33
|
-
getKey(e) {
|
|
34
|
-
return {
|
|
35
|
-
categoryId: e.categoryId
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
// 查询翻页信息商城商品分类
|
|
39
|
-
findPage(e) {
|
|
40
|
-
const t = c().user.tenant;
|
|
41
|
-
return e && (e.hasStatus = e.status != null), l(e), d({
|
|
42
|
-
url: "/v1/goods/goods_category/list/" + t,
|
|
43
|
-
method: "get",
|
|
44
|
-
params: e
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
// 查询列表信息商城商品分类
|
|
48
|
-
findList(e) {
|
|
49
|
-
const t = c().user.tenant;
|
|
50
|
-
return l(e), d({
|
|
51
|
-
url: "/v1/goods/goods_category/list/" + t,
|
|
52
|
-
method: "get",
|
|
53
|
-
params: e
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
// 查询商城商品分类
|
|
57
|
-
findById(e) {
|
|
58
|
-
const t = c().user.tenant;
|
|
59
|
-
return l(e), d({
|
|
60
|
-
url: "/v1/goods/goods_category/id/" + t + "/" + e.categoryId,
|
|
61
|
-
method: "get"
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
// 创建实体商城商品分类
|
|
65
|
-
create(e) {
|
|
66
|
-
return e.tenant = c().user.tenant, l(e), d({
|
|
67
|
-
url: "/v1/goods/goods_category",
|
|
68
|
-
method: "post",
|
|
69
|
-
data: e
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
// 修改实体商城商品分类
|
|
73
|
-
update(e) {
|
|
74
|
-
return e.tenant = c().user.tenant, l(e), d({
|
|
75
|
-
url: "/v1/goods/goods_category",
|
|
76
|
-
method: "patch",
|
|
77
|
-
data: e
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
// 上移下移
|
|
81
|
-
move(e, t) {
|
|
82
|
-
const r = { ...e };
|
|
83
|
-
return r.tenant = c().user.tenant, r.up = t, l(r), d({
|
|
84
|
-
url: "/v1/goods/goods_category/move",
|
|
85
|
-
method: "put",
|
|
86
|
-
data: r
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
// 启用/禁用
|
|
90
|
-
enable(e, t) {
|
|
91
|
-
const r = { ...e };
|
|
92
|
-
return r.tenant = c().user.tenant, r.enable = t, l(r), d({
|
|
93
|
-
url: "/v1/goods/goods_category/enable",
|
|
94
|
-
method: "put",
|
|
95
|
-
data: r
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
// 删除商城商品分类
|
|
99
|
-
delete(e) {
|
|
100
|
-
return e.tenant = c().user.tenant, l(e), d({
|
|
101
|
-
url: "/v1/goods/goods_category/id",
|
|
102
|
-
method: "delete",
|
|
103
|
-
params: e
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
// 批量删除商城商品分类
|
|
107
|
-
batchDelete(e) {
|
|
108
|
-
const t = e.map((n) => n.categoryId), r = {
|
|
109
|
-
tenant: c().user.tenant,
|
|
110
|
-
categoryId: t
|
|
111
|
-
};
|
|
112
|
-
return l(r), d({
|
|
113
|
-
url: "/v1/goods/goods_category/batch",
|
|
114
|
-
method: "put",
|
|
115
|
-
data: r
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* 查询商品树列表的API接口
|
|
120
|
-
*
|
|
121
|
-
* @param query 可选的查询参数,符合GoodsCategoryReq接口的实例
|
|
122
|
-
* @returns 返回一个AxiosPromise,包含GoodsCategoryTree类型的响应数据
|
|
123
|
-
*/
|
|
124
|
-
findTreeListApi(e) {
|
|
125
|
-
const t = c().user.tenant;
|
|
126
|
-
return l(e), d({
|
|
127
|
-
url: "/v1/goods/goods_category/treelist/" + t,
|
|
128
|
-
method: "get",
|
|
129
|
-
params: e
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
const I = new f();
|
|
134
|
-
function E(o, e, t) {
|
|
135
|
-
return !Array.isArray(o) || o.length === 0 ? [] : o.map((n) => {
|
|
136
|
-
let u = [];
|
|
137
|
-
return Array.isArray(n.children) && n.children.length > 0 && (u = E(n.children, e, t)), {
|
|
138
|
-
value: n[t],
|
|
139
|
-
label: n[e],
|
|
140
|
-
parentId: n.parentId,
|
|
141
|
-
children: u
|
|
142
|
-
};
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
class _ {
|
|
146
|
-
constructor(e, t) {
|
|
147
|
-
s(this, "values", L([]));
|
|
148
|
-
// 查询条件
|
|
149
|
-
s(this, "query");
|
|
150
|
-
this.values.length = 0, this.values.push(...e.value), this.query = t;
|
|
151
|
-
}
|
|
152
|
-
// 根据给定键获取业务数据项的值的方法
|
|
153
|
-
getValue(e) {
|
|
154
|
-
for (const t of this.values)
|
|
155
|
-
if (t.key == e)
|
|
156
|
-
return t.value;
|
|
157
|
-
return "";
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
class U extends p {
|
|
161
|
-
// 实现 useValues 方法
|
|
162
|
-
useValues() {
|
|
163
|
-
return new Promise((e, t) => {
|
|
164
|
-
m.findList(this.query).then(({ data: r }) => {
|
|
165
|
-
const n = r.results;
|
|
166
|
-
this.values.length = 0, this.values.push(
|
|
167
|
-
...n.map(
|
|
168
|
-
(u) => ({
|
|
169
|
-
key: u.shopId,
|
|
170
|
-
value: u.shopName
|
|
171
|
-
})
|
|
172
|
-
)
|
|
173
|
-
), e(this.values);
|
|
174
|
-
}).catch(t);
|
|
175
|
-
});
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
class D extends v {
|
|
179
|
-
// // 实现 useValues 方法
|
|
180
|
-
// useValues(excludeId?: string): Promise<LayEntry[]> {
|
|
181
|
-
// return new Promise((resolve, reject) => {
|
|
182
|
-
// goodsCategoryApi
|
|
183
|
-
// .findTreeListApi({ excludeId })
|
|
184
|
-
// .then(({ data }) => {
|
|
185
|
-
// this.values.length = 0;
|
|
186
|
-
// this.values.push(...data.results);
|
|
187
|
-
// resolve(this.values);
|
|
188
|
-
// })
|
|
189
|
-
// .catch(reject);
|
|
190
|
-
// });
|
|
191
|
-
// }
|
|
192
|
-
// 实现 useValues 方法
|
|
193
|
-
useValues() {
|
|
194
|
-
return new Promise((e, t) => {
|
|
195
|
-
I.findTreeListApi(this.query).then(({ data: r }) => {
|
|
196
|
-
this.values.length = 0, this.values.push(...E(r.results, "label", "value")), e(this.values);
|
|
197
|
-
}).catch(t);
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
class T extends p {
|
|
202
|
-
// 实现 useValues 方法
|
|
203
|
-
useValues() {
|
|
204
|
-
return new Promise((e, t) => {
|
|
205
|
-
O.findList(this.query).then(({ data: r }) => {
|
|
206
|
-
const n = r.results;
|
|
207
|
-
this.values.length = 0, this.values.push(
|
|
208
|
-
...n.map(
|
|
209
|
-
(u) => ({
|
|
210
|
-
key: u.specId,
|
|
211
|
-
value: u.specName,
|
|
212
|
-
disabled: u.disabled
|
|
213
|
-
})
|
|
214
|
-
)
|
|
215
|
-
), e(this.values);
|
|
216
|
-
}).catch(t);
|
|
217
|
-
});
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
class N extends p {
|
|
221
|
-
// 实现 useValues 方法
|
|
222
|
-
useValues() {
|
|
223
|
-
return new Promise((e, t) => {
|
|
224
|
-
P.findList(this.query).then(({ data: r }) => {
|
|
225
|
-
const n = r.results;
|
|
226
|
-
this.values.length = 0, this.values.push(
|
|
227
|
-
...n.map(
|
|
228
|
-
(u) => ({
|
|
229
|
-
key: u.specValueId,
|
|
230
|
-
value: u.valueName
|
|
231
|
-
})
|
|
232
|
-
)
|
|
233
|
-
), e(this.values);
|
|
234
|
-
}).catch(t);
|
|
235
|
-
});
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
class i {
|
|
239
|
-
}
|
|
240
|
-
// 店铺列表
|
|
241
|
-
s(i, "shopInfoBizDict", new U({})), // 商品分类
|
|
242
|
-
// static readonly goodsCategoryDict = new GoodsCategoryBizLayDict({});
|
|
243
|
-
// 规格列表
|
|
244
|
-
s(i, "specInfoDict", new T({})), // 规格值
|
|
245
|
-
s(i, "specValueDict", new N({})), // 上架下架
|
|
246
|
-
s(i, "shelfDict", new _(a.SHELF_VALUES, {})), // 运费类型
|
|
247
|
-
s(i, "freightTypeEnum", new g(
|
|
248
|
-
a.MODULE_GOODS,
|
|
249
|
-
a.ENUM_FREIGHT_TYPE
|
|
250
|
-
)), // 保障服务
|
|
251
|
-
s(i, "goodsEnsureDict", new A(a.DICT_GOODS_ENSURE)), // 规格类型
|
|
252
|
-
s(i, "specTypeEnum", new g(
|
|
253
|
-
a.MODULE_GOODS,
|
|
254
|
-
a.ENUM_SPEC_TYPE
|
|
255
|
-
)), // 商品查询枚举
|
|
256
|
-
s(i, "goodsSpuListSortEnum", new g(
|
|
257
|
-
a.MODULE_GOODS,
|
|
258
|
-
a.ENUM_GOODS_SPU_List_SORT
|
|
259
|
-
)), // 审核状态
|
|
260
|
-
s(i, "approvalStatusEnum", new g(
|
|
261
|
-
a.MODULE_GOODS,
|
|
262
|
-
a.ENUM_APPROVAL_STATUS
|
|
263
|
-
)), // 启用禁用
|
|
264
|
-
s(i, "enableDict", new _(a.ENABLE_VALUES, {})), // 商品分类
|
|
265
|
-
s(i, "goodsCategoryListBizLayDict", new D({}));
|
|
266
|
-
export {
|
|
267
|
-
a as C,
|
|
268
|
-
i as D,
|
|
269
|
-
N as S,
|
|
270
|
-
T as a,
|
|
271
|
-
I as g
|
|
272
|
-
};
|
package/dist/info-D6MWRZ1y.mjs
DELETED
|
@@ -1,306 +0,0 @@
|
|
|
1
|
-
import { defineComponent as q, ref as k, computed as j, watch as F, resolveComponent as S, openBlock as f, createElementBlock as V, createVNode as i, withCtx as e, createTextVNode as n, toDisplayString as l, createElementVNode as a, unref as p, Fragment as C, renderList as P, createBlock as b, createCommentVNode as w } from "vue";
|
|
2
|
-
import { fileApi as B, routerUtil as H } from "jmash-core";
|
|
3
|
-
import { useRouter as O, useRoute as R } from "vue-router";
|
|
4
|
-
import { D as m, C as N, S as Y } from "./index-CmKF2zdn.mjs";
|
|
5
|
-
import { s as z } from "./skuTable-DbNThlFG.mjs";
|
|
6
|
-
import { goodsSpuApi as G } from "./index.mjs";
|
|
7
|
-
import { g as J } from "./index-BHmGYIuc.mjs";
|
|
8
|
-
const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "cell-item" }, X = { class: "cell-item" }, Z = { class: "cell-item" }, x = { class: "cell-item" }, ee = { class: "cell-item" }, le = { class: "cell-item" }, se = { class: "cell-item" }, te = { class: "cell-item" }, oe = { class: "cell-item" }, ue = { class: "title-content" }, 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 = ["innerHTML"], ye = /* @__PURE__ */ q({
|
|
9
|
-
__name: "info",
|
|
10
|
-
setup(me) {
|
|
11
|
-
const U = O(), y = R(), u = k({}), I = k([]), g = k([]), E = k([]), D = k([]), $ = j(() => g.value.filter(
|
|
12
|
-
(s) => s.name && s.specValueList != null && s.specValueList.length
|
|
13
|
-
));
|
|
14
|
-
F(
|
|
15
|
-
$,
|
|
16
|
-
(s) => s,
|
|
17
|
-
{
|
|
18
|
-
deep: !0,
|
|
19
|
-
immediate: !0
|
|
20
|
-
}
|
|
21
|
-
), m.shopInfoBizDict.useValues(), m.goodsCategoryListBizLayDict.useValues(), y.query.spuId && G.findById({ spuId: y.query.spuId }).then(({ data: s }) => {
|
|
22
|
-
var c, v, o;
|
|
23
|
-
u.value = Object.assign(u, s), I.value = (c = s.picUrls) == null ? void 0 : c.split(","), J.findById({ spuId: y.query.spuId }).then(({ data: r }) => {
|
|
24
|
-
u.value.ensureIds = r.ensures;
|
|
25
|
-
}), s.specType === N.SPEC_TYPE.MULTI_SPEC && (E.value = (v = s.skuList) == null ? void 0 : v.results, (o = s.skuList) == null || o.results.forEach((r) => {
|
|
26
|
-
var d;
|
|
27
|
-
(d = r.specValues) == null || d.map((h) => {
|
|
28
|
-
m.specInfoDict.useValues().then((L) => {
|
|
29
|
-
const t = L.find((_) => h.specId === _.key);
|
|
30
|
-
if (t) {
|
|
31
|
-
let _ = {
|
|
32
|
-
id: h.specId,
|
|
33
|
-
name: t.value,
|
|
34
|
-
specValueList: []
|
|
35
|
-
};
|
|
36
|
-
g.value.push(_);
|
|
37
|
-
}
|
|
38
|
-
const T = /* @__PURE__ */ new Map();
|
|
39
|
-
g.value = g.value.filter(
|
|
40
|
-
(_) => !T.has(_.id) && T.set(_.id, _)
|
|
41
|
-
), A(h.specValueId);
|
|
42
|
-
});
|
|
43
|
-
});
|
|
44
|
-
}));
|
|
45
|
-
});
|
|
46
|
-
function A(s) {
|
|
47
|
-
g.value.forEach((c) => {
|
|
48
|
-
D.value = new Y({ specId: c.id }), D.value.useValues().then((v) => {
|
|
49
|
-
v.forEach((o) => {
|
|
50
|
-
if (o.key === s) {
|
|
51
|
-
let d = {
|
|
52
|
-
id: s,
|
|
53
|
-
name: o.value
|
|
54
|
-
};
|
|
55
|
-
c.specValueList.push(d);
|
|
56
|
-
}
|
|
57
|
-
const r = /* @__PURE__ */ new Map();
|
|
58
|
-
c.specValueList = c.specValueList.filter(
|
|
59
|
-
(d) => !r.has(d.id) && r.set(d.id, d)
|
|
60
|
-
);
|
|
61
|
-
});
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
function M() {
|
|
66
|
-
H.closeTagView(y.fullPath, U, !1);
|
|
67
|
-
}
|
|
68
|
-
return (s, c) => {
|
|
69
|
-
const v = S("el-button"), o = S("el-descriptions-item"), r = S("el-image"), d = S("el-tag"), h = S("el-descriptions"), L = S("el-card");
|
|
70
|
-
return f(), V("div", K, [
|
|
71
|
-
i(L, { shadow: "never" }, {
|
|
72
|
-
header: e(() => [
|
|
73
|
-
i(v, {
|
|
74
|
-
type: "primary",
|
|
75
|
-
onClick: M
|
|
76
|
-
}, {
|
|
77
|
-
default: e(() => [
|
|
78
|
-
n(l(s.$t("common.back")), 1)
|
|
79
|
-
]),
|
|
80
|
-
_: 1
|
|
81
|
-
})
|
|
82
|
-
]),
|
|
83
|
-
default: e(() => [
|
|
84
|
-
c[0] || (c[0] = a("div", { class: "title-content" }, "基本信息", -1)),
|
|
85
|
-
i(h, {
|
|
86
|
-
class: "margin-top",
|
|
87
|
-
column: 2,
|
|
88
|
-
border: ""
|
|
89
|
-
}, {
|
|
90
|
-
default: e(() => [
|
|
91
|
-
i(o, null, {
|
|
92
|
-
label: e(() => [
|
|
93
|
-
a("div", Q, l(s.$t("goodsSpu.spuName")), 1)
|
|
94
|
-
]),
|
|
95
|
-
default: e(() => [
|
|
96
|
-
n(" " + l(u.value.spuName), 1)
|
|
97
|
-
]),
|
|
98
|
-
_: 1
|
|
99
|
-
}),
|
|
100
|
-
i(o, null, {
|
|
101
|
-
label: e(() => [
|
|
102
|
-
a("div", W, l(s.$t("goodsSpu.categoryId")), 1)
|
|
103
|
-
]),
|
|
104
|
-
default: e(() => [
|
|
105
|
-
n(" " + l(p(m).goodsCategoryListBizLayDict.getValue(
|
|
106
|
-
u.value.categoryId
|
|
107
|
-
)), 1)
|
|
108
|
-
]),
|
|
109
|
-
_: 1
|
|
110
|
-
}),
|
|
111
|
-
i(o, null, {
|
|
112
|
-
label: e(() => [
|
|
113
|
-
a("div", X, l(s.$t("goodsSpu.spuCode")), 1)
|
|
114
|
-
]),
|
|
115
|
-
default: e(() => [
|
|
116
|
-
n(" " + l(u.value.spuCode), 1)
|
|
117
|
-
]),
|
|
118
|
-
_: 1
|
|
119
|
-
}),
|
|
120
|
-
i(o, null, {
|
|
121
|
-
label: e(() => [
|
|
122
|
-
a("div", Z, l(s.$t("goodsSpu.freightType")), 1)
|
|
123
|
-
]),
|
|
124
|
-
default: e(() => [
|
|
125
|
-
n(" " + l(p(m).freightTypeEnum.getEnumValue(
|
|
126
|
-
u.value.freightType
|
|
127
|
-
)), 1)
|
|
128
|
-
]),
|
|
129
|
-
_: 1
|
|
130
|
-
}),
|
|
131
|
-
i(o, null, {
|
|
132
|
-
label: e(() => [
|
|
133
|
-
a("div", x, l(s.$t("goodsSpu.freightAmount")), 1)
|
|
134
|
-
]),
|
|
135
|
-
default: e(() => [
|
|
136
|
-
n(" " + l(u.value.freightAmount), 1)
|
|
137
|
-
]),
|
|
138
|
-
_: 1
|
|
139
|
-
}),
|
|
140
|
-
i(o, null, {
|
|
141
|
-
label: e(() => [
|
|
142
|
-
a("div", ee, l(s.$t("goodsSpu.picUrls")), 1)
|
|
143
|
-
]),
|
|
144
|
-
default: e(() => [
|
|
145
|
-
(f(!0), V(C, null, P(I.value, (t) => (f(), b(r, {
|
|
146
|
-
key: t,
|
|
147
|
-
src: p(B).imageUrl(t, 80, 80),
|
|
148
|
-
"preview-src-list": [p(B).imageUrl(t)],
|
|
149
|
-
"preview-teleported": "",
|
|
150
|
-
"hide-on-click-modal": "",
|
|
151
|
-
fit: "contain"
|
|
152
|
-
}, null, 8, ["src", "preview-src-list"]))), 128))
|
|
153
|
-
]),
|
|
154
|
-
_: 1
|
|
155
|
-
}),
|
|
156
|
-
i(o, null, {
|
|
157
|
-
label: e(() => [
|
|
158
|
-
a("div", le, l(s.$t("goodsSpu.shelf")), 1)
|
|
159
|
-
]),
|
|
160
|
-
default: e(() => [
|
|
161
|
-
n(" " + l(p(m).shelfDict.getValue(u.value.shelf)), 1)
|
|
162
|
-
]),
|
|
163
|
-
_: 1
|
|
164
|
-
}),
|
|
165
|
-
i(o, null, {
|
|
166
|
-
label: e(() => [
|
|
167
|
-
a("div", se, l(s.$t("goodsSpu.saleNum")), 1)
|
|
168
|
-
]),
|
|
169
|
-
default: e(() => [
|
|
170
|
-
n(" " + l(u.value.saleNum), 1)
|
|
171
|
-
]),
|
|
172
|
-
_: 1
|
|
173
|
-
}),
|
|
174
|
-
i(o, null, {
|
|
175
|
-
label: e(() => [
|
|
176
|
-
a("div", te, l(s.$t("goodsSpu.sellPoint")), 1)
|
|
177
|
-
]),
|
|
178
|
-
default: e(() => [
|
|
179
|
-
n(" " + l(u.value.sellPoint), 1)
|
|
180
|
-
]),
|
|
181
|
-
_: 1
|
|
182
|
-
}),
|
|
183
|
-
i(o, null, {
|
|
184
|
-
label: e(() => [
|
|
185
|
-
a("div", oe, l(s.$t("goodsSpu.ensureIds")), 1)
|
|
186
|
-
]),
|
|
187
|
-
default: e(() => [
|
|
188
|
-
(f(!0), V(C, null, P(u.value.ensureIds, (t) => (f(), b(d, {
|
|
189
|
-
type: "info",
|
|
190
|
-
key: t
|
|
191
|
-
}, {
|
|
192
|
-
default: e(() => [
|
|
193
|
-
n(l(p(m).goodsEnsureDict.getDictValue(t)), 1)
|
|
194
|
-
]),
|
|
195
|
-
_: 2
|
|
196
|
-
}, 1024))), 128))
|
|
197
|
-
]),
|
|
198
|
-
_: 1
|
|
199
|
-
})
|
|
200
|
-
]),
|
|
201
|
-
_: 1
|
|
202
|
-
}),
|
|
203
|
-
a("div", ue, " 商品规格(" + l(p(m).specTypeEnum.getEnumValue(u.value.specType)) + ") ", 1),
|
|
204
|
-
u.value.specType == p(N).SPEC_TYPE.UNIFIED_SPEC ? (f(), b(h, {
|
|
205
|
-
key: 0,
|
|
206
|
-
class: "margin-top",
|
|
207
|
-
column: 2,
|
|
208
|
-
border: ""
|
|
209
|
-
}, {
|
|
210
|
-
default: e(() => [
|
|
211
|
-
i(o, null, {
|
|
212
|
-
label: e(() => [
|
|
213
|
-
a("div", ae, l(s.$t("goodsSpu.salePrice")), 1)
|
|
214
|
-
]),
|
|
215
|
-
default: e(() => {
|
|
216
|
-
var t;
|
|
217
|
-
return [
|
|
218
|
-
n(" " + l((t = u.value.skuList) == null ? void 0 : t.results[0].salePrice) + "元 ", 1)
|
|
219
|
-
];
|
|
220
|
-
}),
|
|
221
|
-
_: 1
|
|
222
|
-
}),
|
|
223
|
-
i(o, null, {
|
|
224
|
-
label: e(() => [
|
|
225
|
-
a("div", ie, l(s.$t("goodsSpu.marketPrice")), 1)
|
|
226
|
-
]),
|
|
227
|
-
default: e(() => {
|
|
228
|
-
var t;
|
|
229
|
-
return [
|
|
230
|
-
n(" " + l((t = u.value.skuList) == null ? void 0 : t.results[0].marketPrice) + "元 ", 1)
|
|
231
|
-
];
|
|
232
|
-
}),
|
|
233
|
-
_: 1
|
|
234
|
-
}),
|
|
235
|
-
i(o, null, {
|
|
236
|
-
label: e(() => [
|
|
237
|
-
a("div", ne, l(s.$t("goodsSpu.costPrice")), 1)
|
|
238
|
-
]),
|
|
239
|
-
default: e(() => {
|
|
240
|
-
var t;
|
|
241
|
-
return [
|
|
242
|
-
n(" " + l((t = u.value.skuList) == null ? void 0 : t.results[0].costPrice) + "元 ", 1)
|
|
243
|
-
];
|
|
244
|
-
}),
|
|
245
|
-
_: 1
|
|
246
|
-
}),
|
|
247
|
-
i(o, null, {
|
|
248
|
-
label: e(() => [
|
|
249
|
-
a("div", ce, l(s.$t("goodsSpu.stock")), 1)
|
|
250
|
-
]),
|
|
251
|
-
default: e(() => {
|
|
252
|
-
var t;
|
|
253
|
-
return [
|
|
254
|
-
n(" " + l((t = u.value.skuList) == null ? void 0 : t.results[0].stock), 1)
|
|
255
|
-
];
|
|
256
|
-
}),
|
|
257
|
-
_: 1
|
|
258
|
-
}),
|
|
259
|
-
i(o, null, {
|
|
260
|
-
label: e(() => [
|
|
261
|
-
a("div", de, l(s.$t("goodsSpu.weight")), 1)
|
|
262
|
-
]),
|
|
263
|
-
default: e(() => {
|
|
264
|
-
var t;
|
|
265
|
-
return [
|
|
266
|
-
n(" " + l((t = u.value.skuList) == null ? void 0 : t.results[0].weight), 1)
|
|
267
|
-
];
|
|
268
|
-
}),
|
|
269
|
-
_: 1
|
|
270
|
-
}),
|
|
271
|
-
i(o, null, {
|
|
272
|
-
label: e(() => [
|
|
273
|
-
a("div", re, l(s.$t("goodsSpu.volume")), 1)
|
|
274
|
-
]),
|
|
275
|
-
default: e(() => {
|
|
276
|
-
var t;
|
|
277
|
-
return [
|
|
278
|
-
n(" " + l((t = u.value.skuList) == null ? void 0 : t.results[0].volume), 1)
|
|
279
|
-
];
|
|
280
|
-
}),
|
|
281
|
-
_: 1
|
|
282
|
-
})
|
|
283
|
-
]),
|
|
284
|
-
_: 1
|
|
285
|
-
})) : w("", !0),
|
|
286
|
-
g.value.length > 0 ? (f(), b(z, {
|
|
287
|
-
key: 1,
|
|
288
|
-
specData: $.value,
|
|
289
|
-
goodsSku: E.value,
|
|
290
|
-
isSettingShow: !1
|
|
291
|
-
}, null, 8, ["specData", "goodsSku"])) : w("", !0),
|
|
292
|
-
c[1] || (c[1] = a("div", { class: "title-content" }, "商品描述", -1)),
|
|
293
|
-
a("div", {
|
|
294
|
-
innerHTML: u.value.description
|
|
295
|
-
}, null, 8, pe)
|
|
296
|
-
]),
|
|
297
|
-
_: 1,
|
|
298
|
-
__: [0, 1]
|
|
299
|
-
})
|
|
300
|
-
]);
|
|
301
|
-
};
|
|
302
|
-
}
|
|
303
|
-
});
|
|
304
|
-
export {
|
|
305
|
-
ye as default
|
|
306
|
-
};
|