xyvcard-goods 0.0.26 → 0.0.27
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 → ImageUpload-BMw9FVJL.mjs} +2 -2
- package/dist/{edit-eAHVEi0b.mjs → edit-C6CESv8X.mjs} +3 -3
- package/dist/{edit-C5HGHhkb.mjs → edit-CuYE3fHS.mjs} +3 -3
- package/dist/{edit-DrbsKmwh.mjs → edit-CvY-V0N5.mjs} +30 -30
- package/dist/{edit-Xn_nZjI6.mjs → edit-CwYGsVHI.mjs} +6 -6
- package/dist/{edit-Cb0aaC0q.mjs → edit-DmT9V-gh.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DBG-5gI4.mjs → edit.vue_vue_type_script_setup_true_lang-DfFKgB6q.mjs} +76 -74
- package/dist/{goodsList-CDQZGSh2.mjs → goodsList-Bj9pZI5X.mjs} +1 -1
- package/dist/{goodsList-CKCG7ntZ.mjs → goodsList-v98w-P_d.mjs} +1 -1
- package/dist/{goodsList.vue_vue_type_script_setup_true_lang-DiRkiNJk.mjs → goodsList.vue_vue_type_script_setup_true_lang-BsItIhFh.mjs} +3 -3
- package/dist/{goodsList.vue_vue_type_script_setup_true_lang-B6P3fso6.mjs → goodsList.vue_vue_type_script_setup_true_lang-QHlAuCT3.mjs} +3 -3
- package/dist/{index-B8IdlGiz.mjs → index-0g53MREL.mjs} +14 -14
- package/dist/{index-CMkWXcWe.mjs → index-B0qodJxZ.mjs} +2 -2
- package/dist/{index-CSeu2TZT.mjs → index-BrR_OdFN.mjs} +3 -3
- package/dist/{index-DSbkvzGV.mjs → index-CXEbqy-N.mjs} +14 -14
- package/dist/{index-utNcRJx7.mjs → index-CXtRrzoC.mjs} +2001 -1878
- package/dist/{index-Bz206T2E.mjs → index-D7Zknkay.mjs} +14 -14
- package/dist/{index-CDhEKnzj.mjs → index-DWtdS9Gu.mjs} +3 -3
- package/dist/{index-D70qzGQF.mjs → index-szFiZJnI.mjs} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{info-CX3zF0ZW.mjs → info-Bn5lfzNP.mjs} +4 -4
- package/dist/{info-Dlte8Sn0.mjs → info-PRjY0AD1.mjs} +111 -105
- package/dist/{skuForm-DUR7U2Kn.mjs → skuForm-DF02pgox.mjs} +101 -98
- package/dist/{skuForm-B_8WQCr3.mjs → skuForm-EQVH7pCG.mjs} +6 -6
- package/dist/{skuTable-D4LGL7B5.mjs → skuTable-DWpm1OMq.mjs} +4 -4
- package/dist/style.css +1 -1
- package/dts/api/goods-spu/types.d.ts +1 -0
- package/package.json +62 -62
- package/dts/views/goods/goods-combination/skuTable.vue.d.ts +0 -40
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as x, ref as B, reactive as N, onActivated as ee, resolveComponent as r, resolveDirective as oe,
|
|
1
|
+
import { defineComponent as x, ref as B, reactive as N, onActivated as ee, resolveComponent as r, resolveDirective as oe, createElementBlock as V, openBlock as u, createElementVNode as I, createVNode as t, createBlock as k, createCommentVNode as R, withCtx as l, withKeys as te, unref as n, createTextVNode as p, toDisplayString as c, withDirectives as w, isRef as T } from "vue";
|
|
2
2
|
import { useTableHooks as le, fileApi as D } from "jmash-core";
|
|
3
3
|
import { useI18n as ae } from "vue-i18n";
|
|
4
|
-
import { g as ne } from "./index-
|
|
5
|
-
import re from "./edit-
|
|
6
|
-
import { D as de } from "./index-
|
|
4
|
+
import { g as ne } from "./index-szFiZJnI.mjs";
|
|
5
|
+
import re from "./edit-C6CESv8X.mjs";
|
|
6
|
+
import { D as de } from "./index-B0qodJxZ.mjs";
|
|
7
7
|
const se = { class: "app-container" }, ie = { class: "search-container" }, ue = ["onClick"], me = ["onClick"], ye = /* @__PURE__ */ x({
|
|
8
8
|
__name: "index",
|
|
9
9
|
setup(pe) {
|
|
@@ -180,7 +180,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
180
180
|
default: l(() => [
|
|
181
181
|
t(_, { span: 17 }, {
|
|
182
182
|
default: l(() => [
|
|
183
|
-
|
|
183
|
+
w((u(), k(v, {
|
|
184
184
|
type: "primary",
|
|
185
185
|
onClick: q
|
|
186
186
|
}, {
|
|
@@ -191,7 +191,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
191
191
|
})), [
|
|
192
192
|
[y, ["goods:goods_brand_info:add"]]
|
|
193
193
|
]),
|
|
194
|
-
|
|
194
|
+
w((u(), k(v, {
|
|
195
195
|
type: "primary",
|
|
196
196
|
onClick: o[5] || (o[5] = (e) => n(d).deleteRecords())
|
|
197
197
|
}, {
|
|
@@ -212,7 +212,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
212
212
|
default: l(() => [
|
|
213
213
|
t(M, {
|
|
214
214
|
modelValue: n(f),
|
|
215
|
-
"onUpdate:modelValue": o[6] || (o[6] = (e) =>
|
|
215
|
+
"onUpdate:modelValue": o[6] || (o[6] = (e) => T(f) ? f.value = e : f = e),
|
|
216
216
|
"label-name": "goods/goods-brand-info"
|
|
217
217
|
}, null, 8, ["modelValue"])
|
|
218
218
|
]),
|
|
@@ -223,16 +223,16 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
223
223
|
})
|
|
224
224
|
]),
|
|
225
225
|
footer: l(() => [
|
|
226
|
-
n(b) > 0 ? (u(),
|
|
226
|
+
n(b) > 0 ? (u(), k(Y, {
|
|
227
227
|
key: 0,
|
|
228
228
|
total: n(b),
|
|
229
|
-
"onUpdate:total": o[7] || (o[7] = (e) =>
|
|
229
|
+
"onUpdate:total": o[7] || (o[7] = (e) => T(b) ? b.value = e : null),
|
|
230
230
|
"current-page": s.value.curPage,
|
|
231
231
|
"onUpdate:currentPage": o[8] || (o[8] = (e) => s.value.curPage = e),
|
|
232
232
|
"page-size": s.value.pageSize,
|
|
233
233
|
"onUpdate:pageSize": o[9] || (o[9] = (e) => s.value.pageSize = e),
|
|
234
234
|
onPagination: o[10] || (o[10] = (e) => n(d).getList())
|
|
235
|
-
}, null, 8, ["total", "current-page", "page-size"])) :
|
|
235
|
+
}, null, 8, ["total", "current-page", "page-size"])) : R("", !0)
|
|
236
236
|
]),
|
|
237
237
|
default: l(() => [
|
|
238
238
|
t(X, {
|
|
@@ -284,7 +284,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
284
284
|
])
|
|
285
285
|
]),
|
|
286
286
|
operation: l((e) => [
|
|
287
|
-
|
|
287
|
+
w((u(), V("span", {
|
|
288
288
|
class: "el-button-color",
|
|
289
289
|
onClick: (m) => L(e.data.row)
|
|
290
290
|
}, [
|
|
@@ -292,7 +292,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
292
292
|
], 8, ue)), [
|
|
293
293
|
[y, ["goods:goods_brand_info:update"]]
|
|
294
294
|
]),
|
|
295
|
-
|
|
295
|
+
w((u(), V("span", {
|
|
296
296
|
class: "el-button-color dropdown-left",
|
|
297
297
|
onClick: (m) => n(d).deleteRecord(e.data.row)
|
|
298
298
|
}, [
|
|
@@ -306,7 +306,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
306
306
|
]),
|
|
307
307
|
_: 1
|
|
308
308
|
}),
|
|
309
|
-
i.value.visible ? (u(),
|
|
309
|
+
i.value.visible ? (u(), k(re, {
|
|
310
310
|
key: 0,
|
|
311
311
|
modelValue: i.value.visible,
|
|
312
312
|
"onUpdate:modelValue": o[11] || (o[11] = (e) => i.value.visible = e),
|
|
@@ -314,7 +314,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
314
314
|
"entity-key": n(h),
|
|
315
315
|
onRefresh: K,
|
|
316
316
|
width: "500px"
|
|
317
|
-
}, null, 8, ["modelValue", "title", "entity-key"])) :
|
|
317
|
+
}, null, 8, ["modelValue", "title", "entity-key"])) : R("", !0)
|
|
318
318
|
]);
|
|
319
319
|
};
|
|
320
320
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as v, ref as b, onMounted as h, resolveComponent as u,
|
|
1
|
+
import { defineComponent as v, ref as b, onMounted as h, resolveComponent as u, createElementBlock as c, openBlock as t, createVNode as y, withCtx as m, Fragment as k, renderList as C, unref as V, createBlock as p, createCommentVNode as g } from "vue";
|
|
2
2
|
import { useRoute as B } from "vue-router";
|
|
3
|
-
import { D as i } from "./index-
|
|
4
|
-
import { _ as L } from "./goodsList.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { D as i } from "./index-B0qodJxZ.mjs";
|
|
4
|
+
import { _ as L } from "./goodsList.vue_vue_type_script_setup_true_lang-QHlAuCT3.mjs";
|
|
5
5
|
const N = { class: "app-container" }, E = /* @__PURE__ */ v({
|
|
6
6
|
__name: "index",
|
|
7
7
|
setup(T) {
|
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as M, ref as y, computed as q, watch as j, resolveComponent as b,
|
|
1
|
+
import { defineComponent as M, ref as y, computed as q, watch as j, resolveComponent as b, createElementBlock as k, openBlock as r, createVNode as i, withCtx as e, createElementVNode as a, createBlock as S, createCommentVNode as B, createTextVNode as n, toDisplayString as s, Fragment as L, renderList as I, unref as _ } from "vue";
|
|
2
2
|
import { fileApi as w, routerUtil as F } from "jmash-core";
|
|
3
3
|
import { useRouter as H, useRoute as O } from "vue-router";
|
|
4
|
-
import { D as d, C as N, S as R } from "./index-
|
|
5
|
-
import Y from "./skuTable-
|
|
6
|
-
import { a as G } from "./index-
|
|
4
|
+
import { D as d, C as N, S as R } from "./index-B0qodJxZ.mjs";
|
|
5
|
+
import Y from "./skuTable-DWpm1OMq.mjs";
|
|
6
|
+
import { a as G } from "./index-CXtRrzoC.mjs";
|
|
7
7
|
import { g as J } from "./index-BHmGYIuc.mjs";
|
|
8
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: "cell-item" }, ae = { class: "cell-item" }, ie = { class: "title-content" }, ne = { class: "cell-item" }, ce = { class: "cell-item" }, de = { class: "cell-item" }, re = { class: "cell-item" }, pe = { class: "cell-item" }, me = { class: "cell-item" }, _e = { class: "cell-item" }, fe = { class: "cell-item" }, ge = ["innerHTML"], Ie = /* @__PURE__ */ M({
|
|
9
9
|
__name: "info",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as M, ref as
|
|
2
|
-
import { fileApi as
|
|
1
|
+
import { defineComponent as M, ref as b, resolveComponent as f, createElementBlock as k, openBlock as _, createVNode as o, withCtx as t, createElementVNode as d, createTextVNode as p, toDisplayString as u, Fragment as C, renderList as V, createBlock as D, unref as m } from "vue";
|
|
2
|
+
import { fileApi as S, routerUtil as R } from "jmash-core";
|
|
3
3
|
import { useRouter as j, useRoute as G } from "vue-router";
|
|
4
|
-
import { D as y, C as
|
|
5
|
-
import { a as L } from "./index-
|
|
4
|
+
import { D as y, C as U } from "./index-B0qodJxZ.mjs";
|
|
5
|
+
import { a as L } from "./index-CXtRrzoC.mjs";
|
|
6
6
|
import { specValueApi as H } from "xyvcard-shop";
|
|
7
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" }, se = { class: "cell-item" }, le = { key: 0 }, te = { key: 1 }, pe = /* @__PURE__ */ M({
|
|
8
8
|
__name: "info",
|
|
9
9
|
setup(ae) {
|
|
10
|
-
const O = j(),
|
|
10
|
+
const O = j(), P = G(), r = b({}), $ = b([]), B = b({}), N = b([]);
|
|
11
11
|
y.goodsCategoryListBizLayDict.useValues(), y.labelListBizDict.useValues(), y.goodsSpuBizDict.useValues();
|
|
12
|
-
const
|
|
12
|
+
const h = b([
|
|
13
13
|
{
|
|
14
14
|
salePrice: 0,
|
|
15
15
|
skuId: "",
|
|
@@ -21,52 +21,58 @@ const J = { class: "app-container" }, K = { class: "cell-item" }, Q = { class: "
|
|
|
21
21
|
skuOptions: []
|
|
22
22
|
}
|
|
23
23
|
]);
|
|
24
|
-
|
|
24
|
+
P.query.spuId && (L.findById({ spuId: P.query.spuId }).then(({ data: s }) => {
|
|
25
25
|
var e;
|
|
26
|
-
|
|
27
|
-
}), L.findGroupList({ goodsId:
|
|
26
|
+
r.value = Object.assign(r, s), $.value = (e = s.picUrls) == null ? void 0 : e.split(",");
|
|
27
|
+
}), L.findGroupList({ goodsId: P.query.spuId }).then(({ data: s }) => {
|
|
28
|
+
if (r.value.specType === U.SPEC_TYPE.UNIFIED_SPEC) {
|
|
29
|
+
s.results.forEach((e) => {
|
|
30
|
+
e.specType = r.value.specType;
|
|
31
|
+
}), h.value = s.results;
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
28
34
|
if (s && s.results.length > 0) {
|
|
29
|
-
|
|
30
|
-
const e = s.results.map(async (
|
|
35
|
+
h.value = [];
|
|
36
|
+
const e = s.results.map(async (l) => {
|
|
31
37
|
const i = {
|
|
32
|
-
salePrice:
|
|
33
|
-
skuId:
|
|
34
|
-
spuId:
|
|
35
|
-
saleNum:
|
|
36
|
-
picUrl:
|
|
38
|
+
salePrice: l.salePrice || 0,
|
|
39
|
+
skuId: l.skuId || "",
|
|
40
|
+
spuId: l.spuId || "",
|
|
41
|
+
saleNum: l.saleNum || 0,
|
|
42
|
+
picUrl: l.picUrl || "",
|
|
37
43
|
specType: "",
|
|
38
44
|
skuOptions: []
|
|
39
45
|
};
|
|
40
|
-
return await A(
|
|
46
|
+
return await A(l.spuId, i), i.specType === U.SPEC_TYPE.MULTI_SPEC && l.skuId && (i.skuId = l.skuId || "", i.salePrice = l.salePrice || 0, i.saleNum = l.saleNum || 0, i.picUrl = l.picUrl || "", z(l.skuId)), i;
|
|
41
47
|
});
|
|
42
|
-
Promise.all(e).then((
|
|
43
|
-
|
|
48
|
+
Promise.all(e).then((l) => {
|
|
49
|
+
console.log(l), h.value = l;
|
|
44
50
|
});
|
|
45
51
|
}
|
|
46
52
|
}));
|
|
47
53
|
async function A(s, e) {
|
|
48
|
-
var
|
|
54
|
+
var l, i, I;
|
|
49
55
|
if (e.skuId = "", e.skuOptions = [], e.picUrl = "", e.salePrice = 0, e.saleNum = 0, !s) {
|
|
50
56
|
e.skuId = "", e.picUrl = "", e.salePrice = 0, e.saleNum = 0, e.skuOptions = [];
|
|
51
57
|
return;
|
|
52
58
|
}
|
|
53
59
|
try {
|
|
54
60
|
const { data: c } = await L.findById({ spuId: s });
|
|
55
|
-
if (e.specType = c.specType, e.specType ===
|
|
56
|
-
const
|
|
61
|
+
if (e.specType = c.specType, e.specType === U.SPEC_TYPE.UNIFIED_SPEC && (e.picUrl = c.picUrls ? c.picUrls.split(",")[0] : "", e.salePrice = (l = c.skuList) == null ? void 0 : l.results[0].salePrice, e.saleNum = (i = c.skuList) == null ? void 0 : i.results[0].stock, e.skuId = (I = c.skuList) == null ? void 0 : I.results[0].skuId), e.specType === U.SPEC_TYPE.MULTI_SPEC && c.skuList) {
|
|
62
|
+
const v = c.skuList.results, g = v.map((n) => n.specValues && Array.isArray(n.specValues) ? n.specValues.map(
|
|
57
63
|
(a) => a.specValueId
|
|
58
|
-
) : []),
|
|
59
|
-
await Promise.all(
|
|
64
|
+
) : []), E = g.flat().map((n) => Y(n));
|
|
65
|
+
await Promise.all(E);
|
|
60
66
|
const T = g.map(
|
|
61
67
|
(n) => n.map((a) => N.value[a] || a)
|
|
62
68
|
);
|
|
63
|
-
e.skuOptions =
|
|
69
|
+
e.skuOptions = v.map((n, a) => ({
|
|
64
70
|
key: n.skuId,
|
|
65
71
|
value: T[a].join(" "),
|
|
66
72
|
picUrl: n.picUrl || (c.picUrls ? c.picUrls.split(",")[0] : ""),
|
|
67
73
|
salePrice: n.salePrice,
|
|
68
74
|
stock: n.stock
|
|
69
|
-
})),
|
|
75
|
+
})), v.forEach((n) => {
|
|
70
76
|
n.skuId && (B.value[n.skuId] = {
|
|
71
77
|
...n,
|
|
72
78
|
spuPicUrls: c.picUrls
|
|
@@ -77,12 +83,12 @@ const J = { class: "app-container" }, K = { class: "cell-item" }, Q = { class: "
|
|
|
77
83
|
}
|
|
78
84
|
}
|
|
79
85
|
function z(s) {
|
|
80
|
-
const e =
|
|
86
|
+
const e = h.value.find((l) => l.skuId === s);
|
|
81
87
|
if (e && s) {
|
|
82
|
-
const
|
|
83
|
-
if (
|
|
84
|
-
const i =
|
|
85
|
-
e.picUrl =
|
|
88
|
+
const l = B.value[s];
|
|
89
|
+
if (l) {
|
|
90
|
+
const i = l.spuPicUrls ? l.spuPicUrls.split(",")[0] : "";
|
|
91
|
+
e.picUrl = l.picUrl || i, e.salePrice = l.salePrice, e.saleNum = l.stock;
|
|
86
92
|
}
|
|
87
93
|
}
|
|
88
94
|
}
|
|
@@ -96,70 +102,70 @@ const J = { class: "app-container" }, K = { class: "cell-item" }, Q = { class: "
|
|
|
96
102
|
} catch {
|
|
97
103
|
}
|
|
98
104
|
}
|
|
99
|
-
function
|
|
105
|
+
function F(s) {
|
|
100
106
|
if (!s.skuId || !s.skuOptions || s.skuOptions.length === 0)
|
|
101
107
|
return "";
|
|
102
108
|
const e = s.skuOptions.find(
|
|
103
|
-
(
|
|
109
|
+
(l) => l.key === s.skuId
|
|
104
110
|
);
|
|
105
111
|
return e ? e.value : "";
|
|
106
112
|
}
|
|
107
|
-
function
|
|
108
|
-
R.closeTagView(
|
|
113
|
+
function q() {
|
|
114
|
+
R.closeTagView(P.fullPath, O, !1);
|
|
109
115
|
}
|
|
110
116
|
return (s, e) => {
|
|
111
|
-
const
|
|
117
|
+
const l = f("el-button"), i = f("el-descriptions-item"), I = f("el-tag"), c = f("el-image"), v = f("el-descriptions"), g = f("el-table-column"), E = f("el-table"), T = f("el-row"), n = f("el-card");
|
|
112
118
|
return _(), k("div", J, [
|
|
113
119
|
o(n, { shadow: "never" }, {
|
|
114
|
-
header:
|
|
115
|
-
o(
|
|
120
|
+
header: t(() => [
|
|
121
|
+
o(l, {
|
|
116
122
|
type: "primary",
|
|
117
|
-
onClick:
|
|
123
|
+
onClick: q
|
|
118
124
|
}, {
|
|
119
|
-
default:
|
|
120
|
-
|
|
125
|
+
default: t(() => [
|
|
126
|
+
p(u(s.$t("common.back")), 1)
|
|
121
127
|
]),
|
|
122
128
|
_: 1
|
|
123
129
|
})
|
|
124
130
|
]),
|
|
125
|
-
default:
|
|
126
|
-
e[0] || (e[0] =
|
|
127
|
-
o(
|
|
131
|
+
default: t(() => [
|
|
132
|
+
e[0] || (e[0] = d("div", { class: "title-content" }, "基本信息", -1)),
|
|
133
|
+
o(v, {
|
|
128
134
|
class: "margin-top",
|
|
129
135
|
column: 2,
|
|
130
136
|
border: ""
|
|
131
137
|
}, {
|
|
132
|
-
default:
|
|
138
|
+
default: t(() => [
|
|
133
139
|
o(i, null, {
|
|
134
|
-
label:
|
|
135
|
-
|
|
140
|
+
label: t(() => [
|
|
141
|
+
d("div", K, u(s.$t("goodsSpu.spuName")), 1)
|
|
136
142
|
]),
|
|
137
|
-
default:
|
|
138
|
-
|
|
143
|
+
default: t(() => [
|
|
144
|
+
p(" " + u(r.value.spuName), 1)
|
|
139
145
|
]),
|
|
140
146
|
_: 1
|
|
141
147
|
}),
|
|
142
148
|
o(i, null, {
|
|
143
|
-
label:
|
|
144
|
-
|
|
149
|
+
label: t(() => [
|
|
150
|
+
d("div", Q, u(s.$t("goodsSpu.spuCode")), 1)
|
|
145
151
|
]),
|
|
146
|
-
default:
|
|
147
|
-
|
|
152
|
+
default: t(() => [
|
|
153
|
+
p(" " + u(r.value.spuCode), 1)
|
|
148
154
|
]),
|
|
149
155
|
_: 1
|
|
150
156
|
}),
|
|
151
157
|
o(i, null, {
|
|
152
|
-
label:
|
|
153
|
-
|
|
158
|
+
label: t(() => [
|
|
159
|
+
d("div", W, u(s.$t("goodsSpu.categoryId")), 1)
|
|
154
160
|
]),
|
|
155
|
-
default:
|
|
156
|
-
(_(!0), k(
|
|
161
|
+
default: t(() => [
|
|
162
|
+
(_(!0), k(C, null, V(r.value.categoryIds, (a) => (_(), D(I, {
|
|
157
163
|
type: "info",
|
|
158
164
|
key: a,
|
|
159
165
|
style: { "margin-right": "8px", "margin-bottom": "4px" }
|
|
160
166
|
}, {
|
|
161
|
-
default:
|
|
162
|
-
|
|
167
|
+
default: t(() => [
|
|
168
|
+
p(u(m(y).goodsCategoryListBizLayDict.getValue(a) || a), 1)
|
|
163
169
|
]),
|
|
164
170
|
_: 2
|
|
165
171
|
}, 1024))), 128))
|
|
@@ -167,17 +173,17 @@ const J = { class: "app-container" }, K = { class: "cell-item" }, Q = { class: "
|
|
|
167
173
|
_: 1
|
|
168
174
|
}),
|
|
169
175
|
o(i, null, {
|
|
170
|
-
label:
|
|
171
|
-
|
|
176
|
+
label: t(() => [
|
|
177
|
+
d("div", X, u(s.$t("goodsSpu.labelIds")), 1)
|
|
172
178
|
]),
|
|
173
|
-
default:
|
|
174
|
-
(_(!0), k(
|
|
179
|
+
default: t(() => [
|
|
180
|
+
(_(!0), k(C, null, V(r.value.labelIds, (a) => (_(), D(I, {
|
|
175
181
|
type: "info",
|
|
176
182
|
key: a,
|
|
177
183
|
style: { "margin-right": "8px", "margin-bottom": "4px" }
|
|
178
184
|
}, {
|
|
179
|
-
default:
|
|
180
|
-
|
|
185
|
+
default: t(() => [
|
|
186
|
+
p(u(m(y).labelListBizDict.getValue(a)), 1)
|
|
181
187
|
]),
|
|
182
188
|
_: 2
|
|
183
189
|
}, 1024))), 128))
|
|
@@ -185,14 +191,14 @@ const J = { class: "app-container" }, K = { class: "cell-item" }, Q = { class: "
|
|
|
185
191
|
_: 1
|
|
186
192
|
}),
|
|
187
193
|
o(i, null, {
|
|
188
|
-
label:
|
|
189
|
-
|
|
194
|
+
label: t(() => [
|
|
195
|
+
d("div", Z, u(s.$t("goodsSpu.picUrls")), 1)
|
|
190
196
|
]),
|
|
191
|
-
default:
|
|
192
|
-
(_(!0), k(
|
|
197
|
+
default: t(() => [
|
|
198
|
+
(_(!0), k(C, null, V($.value, (a) => (_(), D(c, {
|
|
193
199
|
key: a,
|
|
194
|
-
src: m(
|
|
195
|
-
"preview-src-list": [m(
|
|
200
|
+
src: m(S).imageUrl(a, 80, 80),
|
|
201
|
+
"preview-src-list": [m(S).imageUrl(a)],
|
|
196
202
|
"preview-teleported": "",
|
|
197
203
|
"hide-on-click-modal": "",
|
|
198
204
|
fit: "contain"
|
|
@@ -201,62 +207,62 @@ const J = { class: "app-container" }, K = { class: "cell-item" }, Q = { class: "
|
|
|
201
207
|
_: 1
|
|
202
208
|
}),
|
|
203
209
|
o(i, null, {
|
|
204
|
-
label:
|
|
205
|
-
|
|
210
|
+
label: t(() => [
|
|
211
|
+
d("div", w, u(s.$t("goodsSpu.freightType")), 1)
|
|
206
212
|
]),
|
|
207
|
-
default:
|
|
208
|
-
|
|
209
|
-
|
|
213
|
+
default: t(() => [
|
|
214
|
+
p(" " + u(m(y).freightTypeEnum.getEnumValue(
|
|
215
|
+
r.value.freightType
|
|
210
216
|
)), 1)
|
|
211
217
|
]),
|
|
212
218
|
_: 1
|
|
213
219
|
}),
|
|
214
220
|
o(i, null, {
|
|
215
|
-
label:
|
|
216
|
-
|
|
221
|
+
label: t(() => [
|
|
222
|
+
d("div", x, u(s.$t("goodsSpu.freightAmount")), 1)
|
|
217
223
|
]),
|
|
218
|
-
default:
|
|
219
|
-
|
|
224
|
+
default: t(() => [
|
|
225
|
+
p(" " + u(r.value.freightAmount), 1)
|
|
220
226
|
]),
|
|
221
227
|
_: 1
|
|
222
228
|
}),
|
|
223
229
|
o(i, null, {
|
|
224
|
-
label:
|
|
225
|
-
|
|
230
|
+
label: t(() => [
|
|
231
|
+
d("div", ee, u(s.$t("goodsSpu.shelf")), 1)
|
|
226
232
|
]),
|
|
227
|
-
default:
|
|
228
|
-
|
|
233
|
+
default: t(() => [
|
|
234
|
+
p(" " + u(m(y).shelfDict.getValue(r.value.shelf)), 1)
|
|
229
235
|
]),
|
|
230
236
|
_: 1
|
|
231
237
|
}),
|
|
232
238
|
o(i, null, {
|
|
233
|
-
label:
|
|
234
|
-
|
|
239
|
+
label: t(() => [
|
|
240
|
+
d("div", se, u(s.$t("goodsSpu.saleNum")), 1)
|
|
235
241
|
]),
|
|
236
|
-
default:
|
|
237
|
-
|
|
242
|
+
default: t(() => [
|
|
243
|
+
p(" " + u(r.value.saleNum), 1)
|
|
238
244
|
]),
|
|
239
245
|
_: 1
|
|
240
246
|
})
|
|
241
247
|
]),
|
|
242
248
|
_: 1
|
|
243
249
|
}),
|
|
244
|
-
e[1] || (e[1] =
|
|
250
|
+
e[1] || (e[1] = d("div", { class: "title-content" }, "套装商品", -1)),
|
|
245
251
|
o(T, null, {
|
|
246
|
-
default:
|
|
247
|
-
o(
|
|
248
|
-
data:
|
|
252
|
+
default: t(() => [
|
|
253
|
+
o(E, {
|
|
254
|
+
data: h.value,
|
|
249
255
|
border: "",
|
|
250
256
|
style: { width: "100%" }
|
|
251
257
|
}, {
|
|
252
|
-
default:
|
|
258
|
+
default: t(() => [
|
|
253
259
|
o(g, {
|
|
254
260
|
label: s.$t("goodsSpu.spuName"),
|
|
255
261
|
prop: "spuId",
|
|
256
262
|
"header-align": "center"
|
|
257
263
|
}, {
|
|
258
|
-
default:
|
|
259
|
-
|
|
264
|
+
default: t(({ row: a }) => [
|
|
265
|
+
p(u(m(y).goodsSpuBizDict.getValue(a.spuId)), 1)
|
|
260
266
|
]),
|
|
261
267
|
_: 1
|
|
262
268
|
}, 8, ["label"]),
|
|
@@ -264,8 +270,8 @@ const J = { class: "app-container" }, K = { class: "cell-item" }, Q = { class: "
|
|
|
264
270
|
label: s.$t("goodsSpu.specType"),
|
|
265
271
|
"header-align": "center"
|
|
266
272
|
}, {
|
|
267
|
-
default:
|
|
268
|
-
a.specType === m(
|
|
273
|
+
default: t(({ row: a }) => [
|
|
274
|
+
a.specType === m(U).SPEC_TYPE.UNIFIED_SPEC ? (_(), k("span", le, " 统一规格 ")) : (_(), k("span", te, u(F(a)), 1))
|
|
269
275
|
]),
|
|
270
276
|
_: 1
|
|
271
277
|
}, 8, ["label"]),
|
|
@@ -275,10 +281,10 @@ const J = { class: "app-container" }, K = { class: "cell-item" }, Q = { class: "
|
|
|
275
281
|
width: "105",
|
|
276
282
|
"header-align": "center"
|
|
277
283
|
}, {
|
|
278
|
-
default:
|
|
284
|
+
default: t(({ row: a }) => [
|
|
279
285
|
o(c, {
|
|
280
|
-
src: m(
|
|
281
|
-
"preview-src-list": [m(
|
|
286
|
+
src: m(S).imageUrl(a.picUrl, 80, 80),
|
|
287
|
+
"preview-src-list": [m(S).imageUrl(a.picUrl)],
|
|
282
288
|
"preview-teleported": "",
|
|
283
289
|
"hide-on-click-modal": "",
|
|
284
290
|
fit: "contain"
|
|
@@ -288,11 +294,11 @@ const J = { class: "app-container" }, K = { class: "cell-item" }, Q = { class: "
|
|
|
288
294
|
}, 8, ["label"]),
|
|
289
295
|
o(g, {
|
|
290
296
|
label: s.$t("goodsSpu.salePriceV1"),
|
|
291
|
-
prop: "
|
|
297
|
+
prop: "saleNum",
|
|
292
298
|
"header-align": "center"
|
|
293
299
|
}, {
|
|
294
|
-
default:
|
|
295
|
-
|
|
300
|
+
default: t(({ row: a }) => [
|
|
301
|
+
p(u(a.saleNum), 1)
|
|
296
302
|
]),
|
|
297
303
|
_: 1
|
|
298
304
|
}, 8, ["label"]),
|
|
@@ -301,8 +307,8 @@ const J = { class: "app-container" }, K = { class: "cell-item" }, Q = { class: "
|
|
|
301
307
|
prop: "saleNum",
|
|
302
308
|
"header-align": "center"
|
|
303
309
|
}, {
|
|
304
|
-
default:
|
|
305
|
-
|
|
310
|
+
default: t(({ row: a }) => [
|
|
311
|
+
p(u(a.saleNum), 1)
|
|
306
312
|
]),
|
|
307
313
|
_: 1
|
|
308
314
|
}, 8, ["label"])
|