xyvcard-goods 0.0.32 → 0.0.34
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/README.md +51 -51
- package/dist/GoodsBaseForm-BSvXc_XA.mjs +4 -0
- package/dist/GoodsBaseForm.vue_vue_type_script_setup_true_lang-rsmqHXbJ.mjs +381 -0
- package/dist/GoodsLogisticsForm-1Bbd4Z52.mjs +4 -0
- package/dist/GoodsLogisticsForm.vue_vue_type_script_setup_true_lang-PSnPNbmT.mjs +434 -0
- package/dist/GoodsSpecForm-Ddo1IZLZ.mjs +4 -0
- package/dist/GoodsSpecForm.vue_vue_type_script_setup_true_lang-CdWIufm4.mjs +338 -0
- package/dist/{ImageUpload-BMw9FVJL.mjs → ImageUpload-Bf2jhRs5.mjs} +1 -1
- package/dist/edit copy 2-Yzf_M31V.mjs +59 -0
- package/dist/edit copy-CCnzlrgL.mjs +526 -0
- package/dist/{edit-DvO1wYIL.mjs → edit-BgtwinSN.mjs} +1 -1
- package/dist/{edit-BlQj1xVR.mjs → edit-Dke5sWct.mjs} +4 -4
- package/dist/{edit-CuGiM5xu.mjs → edit-e5-aXV6K.mjs} +15 -15
- package/dist/{edit-Bh5jT6eo.mjs → edit-lfXK_dUp.mjs} +4 -4
- package/dist/{edit-CyhVo22f.mjs → edit-pUKONjxH.mjs} +7 -7
- package/dist/{edit.vue_vue_type_script_setup_true_lang-Bx32ZXck.mjs → edit.vue_vue_type_script_setup_true_lang-BtGT564r.mjs} +33 -33
- package/dist/el-message-BB2-39XJ.mjs +1221 -0
- package/dist/{index-BrBipAPq.mjs → index-BSzOTWcG.mjs} +1 -1
- package/dist/{index-CVM7nBhM.mjs → index-BpKiAhvt.mjs} +3 -3
- package/dist/{index-Dk9-_0Ir.mjs → index-ChQ-ZxD1.mjs} +2 -2
- package/dist/{index-Dz9NSJh1.mjs → index-CkJncbVf.mjs} +3 -3
- package/dist/{index-DzUSeIbT.mjs → index-CkMWas2b.mjs} +3 -3
- package/dist/index-Da2R0n8O.mjs +374 -0
- package/dist/{index-BlZupHNB.mjs → index-DhS4AuWf.mjs} +1593 -1554
- package/dist/{index-8JQB4NmH.mjs → index-DyLLV1NK.mjs} +281 -250
- package/dist/index-vHQhUQSO.mjs +95 -0
- package/dist/index.mjs +1 -1
- package/dist/{info-CLt9Ea38.mjs → info-DOKoSi7a.mjs} +34 -34
- package/dist/{info-NFU_3fNY.mjs → info-De_pBN6A.mjs} +19 -19
- package/dist/{skuForm-Dr6dKGa4.mjs → skuForm-DVGkw6rD.mjs} +71 -86
- package/dist/{skuForm-8WZm2j5V.mjs → skuForm-YXHrhyPI.mjs} +111 -110
- package/dist/{skuTable-BwIc5hr5.mjs → skuTable-DOIQ9kiV.mjs} +71 -71
- package/dist/style.css +1 -1
- package/dts/api/goods-base/index.d.ts +11 -0
- package/dts/api/goods-base/types.d.ts +33 -0
- package/dts/api/goods-logistics/index.d.ts +8 -0
- package/dts/api/goods-logistics/types.d.ts +16 -0
- package/dts/api/goods-spec/index.d.ts +8 -0
- package/dts/api/goods-spec/types.d.ts +15 -0
- package/dts/api/goods-spu/index.d.ts +3 -0
- package/dts/api/goods-stock/index.d.ts +8 -0
- package/dts/api/goods-stock/types.d.ts +32 -0
- package/dts/api/index.d.ts +3 -0
- package/dts/constant.d.ts +26 -0
- package/dts/lang/goods/zh-cn.d.ts +12 -0
- package/dts/views/goods/goods-spu/components/GoodsBaseForm.vue.d.ts +7 -0
- package/dts/views/goods/goods-spu/components/GoodsLogisticsForm.vue.d.ts +2 -0
- package/dts/views/goods/goods-spu/components/GoodsSpecForm.vue.d.ts +7 -0
- package/dts/views/goods/goods-spu/edit copy 2.vue.d.ts +2 -0
- package/dts/views/goods/goods-spu/edit copy.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/App.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/api/dict.d.ts +35 -0
- package/dts/xyvcard-goods/src/api/goods-base/index.d.ts +11 -0
- package/dts/xyvcard-goods/src/api/goods-base/types.d.ts +33 -0
- package/dts/xyvcard-goods/src/api/goods-brand-info/index.d.ts +20 -0
- package/dts/xyvcard-goods/src/api/goods-brand-info/types.d.ts +73 -0
- package/dts/xyvcard-goods/src/api/goods-category/index.d.ts +23 -0
- package/dts/xyvcard-goods/src/api/goods-category/types.d.ts +70 -0
- package/dts/xyvcard-goods/src/api/goods-ensure/index.d.ts +13 -0
- package/dts/xyvcard-goods/src/api/goods-ensure/types.d.ts +13 -0
- package/dts/xyvcard-goods/src/api/goods-label-info/index.d.ts +20 -0
- package/dts/xyvcard-goods/src/api/goods-label-info/types.d.ts +70 -0
- package/dts/xyvcard-goods/src/api/goods-logistics/index.d.ts +8 -0
- package/dts/xyvcard-goods/src/api/goods-logistics/types.d.ts +16 -0
- package/dts/xyvcard-goods/src/api/goods-sku/types.d.ts +18 -0
- package/dts/xyvcard-goods/src/api/goods-spec/index.d.ts +8 -0
- package/dts/xyvcard-goods/src/api/goods-spec/types.d.ts +15 -0
- package/dts/xyvcard-goods/src/api/goods-spu/index.d.ts +69 -0
- package/dts/xyvcard-goods/src/api/goods-spu/types.d.ts +245 -0
- package/dts/xyvcard-goods/src/api/goods-stock/index.d.ts +8 -0
- package/dts/xyvcard-goods/src/api/goods-stock/types.d.ts +32 -0
- package/dts/xyvcard-goods/src/api/index.d.ts +29 -0
- package/dts/xyvcard-goods/src/api/shop-branch/index.d.ts +9 -0
- package/dts/xyvcard-goods/src/api/shop-branch/types.d.ts +28 -0
- package/dts/xyvcard-goods/src/components/ImageUpload.vue.d.ts +36 -0
- package/dts/xyvcard-goods/src/constant.d.ts +107 -0
- package/dts/xyvcard-goods/src/index.d.ts +12 -0
- package/dts/xyvcard-goods/src/lang/goods/en.d.ts +2 -0
- package/dts/xyvcard-goods/src/lang/goods/zh-cn.d.ts +141 -0
- package/dts/xyvcard-goods/src/lang/index.d.ts +1 -0
- package/dts/xyvcard-goods/src/main.d.ts +7 -0
- package/dts/xyvcard-goods/src/permission.d.ts +1 -0
- package/dts/xyvcard-goods/src/router/index.d.ts +6 -0
- package/dts/xyvcard-goods/src/utils/momentPlugin.d.ts +5 -0
- package/dts/xyvcard-goods/src/utils/returnBizLay.d.ts +2 -0
- package/dts/xyvcard-goods/src/utils/sku.d.ts +19 -0
- package/dts/xyvcard-goods/src/views/goods/goods-brand-info/edit.vue.d.ts +22 -0
- package/dts/xyvcard-goods/src/views/goods/goods-brand-info/index.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-category/edit.vue.d.ts +22 -0
- package/dts/xyvcard-goods/src/views/goods/goods-category/index.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-combination/edit.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-combination/index.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-combination/info.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-combination/skuForm.vue.d.ts +20 -0
- package/dts/xyvcard-goods/src/views/goods/goods-label-info/edit.vue.d.ts +22 -0
- package/dts/xyvcard-goods/src/views/goods/goods-label-info/index.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsBaseForm.vue.d.ts +34 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsLogisticsForm.vue.d.ts +42 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsSpecForm.vue.d.ts +42 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/edit copy 2.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/edit copy.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/edit.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/index.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/info.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/skuForm.vue.d.ts +29 -0
- package/dts/xyvcard-shop/src/api/shop-branch/index.d.ts +14 -0
- package/dts/xyvcard-shop/src/api/shop-branch/types.d.ts +76 -0
- package/package.json +63 -63
- package/dist/index-B7_M6fAN.mjs +0 -228
- package/dts/views/goods/goods-combination/goodsList.vue.d.ts +0 -14
- package/dts/views/goods/goods-spu/goodsList.vue.d.ts +0 -23
- /package/dts/{views/goods/goods-combination → xyvcard-goods/src/views/goods/goods-spu}/skuTable.vue.d.ts +0 -0
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { defineComponent as e, createElementBlock as l, openBlock as a, createElementVNode as s } from "vue";
|
|
2
|
+
/*! Element Plus Icons Vue v2.3.2 */
|
|
3
|
+
var t = /* @__PURE__ */ e({
|
|
4
|
+
name: "CircleCloseFilled",
|
|
5
|
+
__name: "circle-close-filled",
|
|
6
|
+
setup(r) {
|
|
7
|
+
return (_, c) => (a(), l("svg", {
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
+
viewBox: "0 0 1024 1024"
|
|
10
|
+
}, [
|
|
11
|
+
s("path", {
|
|
12
|
+
fill: "currentColor",
|
|
13
|
+
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"
|
|
14
|
+
})
|
|
15
|
+
]));
|
|
16
|
+
}
|
|
17
|
+
}), f = t, n = /* @__PURE__ */ e({
|
|
18
|
+
name: "Close",
|
|
19
|
+
__name: "close",
|
|
20
|
+
setup(r) {
|
|
21
|
+
return (_, c) => (a(), l("svg", {
|
|
22
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
23
|
+
viewBox: "0 0 1024 1024"
|
|
24
|
+
}, [
|
|
25
|
+
s("path", {
|
|
26
|
+
fill: "currentColor",
|
|
27
|
+
d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
|
|
28
|
+
})
|
|
29
|
+
]));
|
|
30
|
+
}
|
|
31
|
+
}), u = n, o = /* @__PURE__ */ e({
|
|
32
|
+
name: "InfoFilled",
|
|
33
|
+
__name: "info-filled",
|
|
34
|
+
setup(r) {
|
|
35
|
+
return (_, c) => (a(), l("svg", {
|
|
36
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
37
|
+
viewBox: "0 0 1024 1024"
|
|
38
|
+
}, [
|
|
39
|
+
s("path", {
|
|
40
|
+
fill: "currentColor",
|
|
41
|
+
d: "M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"
|
|
42
|
+
})
|
|
43
|
+
]));
|
|
44
|
+
}
|
|
45
|
+
}), d = o, i = /* @__PURE__ */ e({
|
|
46
|
+
name: "Plus",
|
|
47
|
+
__name: "plus",
|
|
48
|
+
setup(r) {
|
|
49
|
+
return (_, c) => (a(), l("svg", {
|
|
50
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
51
|
+
viewBox: "0 0 1024 1024"
|
|
52
|
+
}, [
|
|
53
|
+
s("path", {
|
|
54
|
+
fill: "currentColor",
|
|
55
|
+
d: "M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"
|
|
56
|
+
})
|
|
57
|
+
]));
|
|
58
|
+
}
|
|
59
|
+
}), v = i, p = /* @__PURE__ */ e({
|
|
60
|
+
name: "SuccessFilled",
|
|
61
|
+
__name: "success-filled",
|
|
62
|
+
setup(r) {
|
|
63
|
+
return (_, c) => (a(), l("svg", {
|
|
64
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
65
|
+
viewBox: "0 0 1024 1024"
|
|
66
|
+
}, [
|
|
67
|
+
s("path", {
|
|
68
|
+
fill: "currentColor",
|
|
69
|
+
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"
|
|
70
|
+
})
|
|
71
|
+
]));
|
|
72
|
+
}
|
|
73
|
+
}), g = p, m = /* @__PURE__ */ e({
|
|
74
|
+
name: "WarningFilled",
|
|
75
|
+
__name: "warning-filled",
|
|
76
|
+
setup(r) {
|
|
77
|
+
return (_, c) => (a(), l("svg", {
|
|
78
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
79
|
+
viewBox: "0 0 1024 1024"
|
|
80
|
+
}, [
|
|
81
|
+
s("path", {
|
|
82
|
+
fill: "currentColor",
|
|
83
|
+
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"
|
|
84
|
+
})
|
|
85
|
+
]));
|
|
86
|
+
}
|
|
87
|
+
}), h = m;
|
|
88
|
+
export {
|
|
89
|
+
u as a,
|
|
90
|
+
f as c,
|
|
91
|
+
d as i,
|
|
92
|
+
v as p,
|
|
93
|
+
g as s,
|
|
94
|
+
h as w
|
|
95
|
+
};
|
package/dist/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as M, ref as P, resolveComponent as
|
|
2
|
-
import { fileApi as
|
|
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
|
+
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, C as
|
|
5
|
-
import { a as
|
|
4
|
+
import { D as y, C as U } from "./index-Da2R0n8O.mjs";
|
|
5
|
+
import { a as D } from "./index-DhS4AuWf.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" }, le = { class: "cell-item" }, se = { class: "cell-item" }, te = { class: "cell-item" }, ae = { key: 0 }, ie = { key: 1 }, me = /* @__PURE__ */ M({
|
|
8
8
|
__name: "info",
|
|
9
9
|
setup(ue) {
|
|
10
|
-
const
|
|
10
|
+
const B = j(), S = G(), r = P({}), $ = P([]), A = P({}), E = P([]);
|
|
11
11
|
y.goodsCategoryListBizLayDict.useValues(), y.labelListBizDict.useValues(), y.goodsSpuBizDict.useValues();
|
|
12
12
|
const h = P([
|
|
13
13
|
{
|
|
@@ -21,11 +21,11 @@ const J = { class: "app-container" }, K = { class: "cell-item" }, Q = { class: "
|
|
|
21
21
|
skuOptions: []
|
|
22
22
|
}
|
|
23
23
|
]);
|
|
24
|
-
|
|
24
|
+
S.query.spuId && (D.findById({ spuId: S.query.spuId }).then(({ data: e }) => {
|
|
25
25
|
var l;
|
|
26
26
|
r.value = Object.assign(r, e), $.value = (l = e.picUrls) == null ? void 0 : l.split(",");
|
|
27
|
-
}),
|
|
28
|
-
if (r.value.specType ===
|
|
27
|
+
}), D.findGroupList({ goodsId: S.query.spuId }).then(({ data: e }) => {
|
|
28
|
+
if (r.value.specType === U.SPEC_TYPE_VALUES.UNIFIED_SPEC) {
|
|
29
29
|
e.results.forEach((l) => {
|
|
30
30
|
l.specType = r.value.specType;
|
|
31
31
|
}), h.value = e.results;
|
|
@@ -43,37 +43,37 @@ const J = { class: "app-container" }, K = { class: "cell-item" }, Q = { class: "
|
|
|
43
43
|
specType: "",
|
|
44
44
|
skuOptions: []
|
|
45
45
|
};
|
|
46
|
-
return await
|
|
46
|
+
return await O(t.spuId, i), i.saleNum = t.saleNum || 0, i.salePrice = t.salePrice || 0, i.specType === U.SPEC_TYPE_VALUES.MULTI_SPEC && t.skuId && (i.skuId = t.skuId || "", i.salePrice = t.salePrice || 0, i.saleNum = t.saleNum || 0, i.picUrl = t.picUrl || "", z(t.skuId)), i;
|
|
47
47
|
});
|
|
48
48
|
Promise.all(l).then((t) => {
|
|
49
49
|
console.log(t), h.value = t;
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
52
|
}));
|
|
53
|
-
async function
|
|
53
|
+
async function O(e, l) {
|
|
54
54
|
var t, i, k;
|
|
55
55
|
if (l.skuId = "", l.skuOptions = [], l.picUrl = "", l.salePrice = 0, l.saleNum = 0, !e) {
|
|
56
56
|
l.skuId = "", l.picUrl = "", l.salePrice = 0, l.saleNum = 0, l.skuOptions = [];
|
|
57
57
|
return;
|
|
58
58
|
}
|
|
59
59
|
try {
|
|
60
|
-
const { data: n } = await
|
|
61
|
-
if (l.specType = n.specType, l.specType ===
|
|
60
|
+
const { data: n } = await D.findById({ spuId: e });
|
|
61
|
+
if (l.specType = n.specType, l.specType === U.SPEC_TYPE_VALUES.UNIFIED_SPEC && (l.picUrl = n.picUrls ? n.picUrls.split(",")[0] : "", l.salePrice = (t = n.skuList) == null ? void 0 : t.results[0].salePrice, l.saleNum = (i = n.skuList) == null ? void 0 : i.results[0].stock, l.skuId = (k = n.skuList) == null ? void 0 : k.results[0].skuId), l.specType === U.SPEC_TYPE_VALUES.MULTI_SPEC && n.skuList) {
|
|
62
62
|
const I = n.skuList.results, g = I.map((c) => c.specValues && Array.isArray(c.specValues) ? c.specValues.map(
|
|
63
63
|
(a) => a.specValueId
|
|
64
|
-
) : []),
|
|
65
|
-
await Promise.all(
|
|
66
|
-
const
|
|
67
|
-
(c) => c.map((a) =>
|
|
64
|
+
) : []), N = g.flat().map((c) => Y(c));
|
|
65
|
+
await Promise.all(N);
|
|
66
|
+
const V = g.map(
|
|
67
|
+
(c) => c.map((a) => E.value[a] || a)
|
|
68
68
|
);
|
|
69
69
|
l.skuOptions = I.map((c, a) => ({
|
|
70
70
|
key: c.skuId,
|
|
71
|
-
value:
|
|
71
|
+
value: V[a].join(" "),
|
|
72
72
|
picUrl: c.picUrl || (n.picUrls ? n.picUrls.split(",")[0] : ""),
|
|
73
73
|
salePrice: c.salePrice,
|
|
74
74
|
stock: c.stock
|
|
75
75
|
})), I.forEach((c) => {
|
|
76
|
-
c.skuId && (
|
|
76
|
+
c.skuId && (A.value[c.skuId] = {
|
|
77
77
|
...c,
|
|
78
78
|
spuPicUrls: n.picUrls
|
|
79
79
|
});
|
|
@@ -85,7 +85,7 @@ const J = { class: "app-container" }, K = { class: "cell-item" }, Q = { class: "
|
|
|
85
85
|
function z(e) {
|
|
86
86
|
const l = h.value.find((t) => t.skuId === e);
|
|
87
87
|
if (l && e) {
|
|
88
|
-
const t =
|
|
88
|
+
const t = A.value[e];
|
|
89
89
|
if (t) {
|
|
90
90
|
const i = t.spuPicUrls ? t.spuPicUrls.split(",")[0] : "";
|
|
91
91
|
l.picUrl = t.picUrl || i, l.salePrice = t.salePrice, l.saleNum = t.stock;
|
|
@@ -93,12 +93,12 @@ const J = { class: "app-container" }, K = { class: "cell-item" }, Q = { class: "
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
async function Y(e) {
|
|
96
|
-
if (!
|
|
96
|
+
if (!E.value[e])
|
|
97
97
|
try {
|
|
98
98
|
const { data: l } = await H.findById({
|
|
99
99
|
specValueId: e
|
|
100
100
|
});
|
|
101
|
-
return
|
|
101
|
+
return E.value[e] = l.valueName, l.valueName;
|
|
102
102
|
} catch {
|
|
103
103
|
}
|
|
104
104
|
}
|
|
@@ -111,11 +111,11 @@ const J = { class: "app-container" }, K = { class: "cell-item" }, Q = { class: "
|
|
|
111
111
|
return l ? l.value : "";
|
|
112
112
|
}
|
|
113
113
|
function q() {
|
|
114
|
-
R.closeTagView(
|
|
114
|
+
R.closeTagView(S.fullPath, B, !1);
|
|
115
115
|
}
|
|
116
116
|
return (e, l) => {
|
|
117
|
-
const t =
|
|
118
|
-
return
|
|
117
|
+
const t = _("el-button"), i = _("el-descriptions-item"), k = _("el-tag"), n = _("el-image"), I = _("el-descriptions"), g = _("el-table-column"), N = _("el-table"), V = _("el-row"), c = _("el-card");
|
|
118
|
+
return f(), v("div", J, [
|
|
119
119
|
o(c, { shadow: "never" }, {
|
|
120
120
|
header: s(() => [
|
|
121
121
|
o(t, {
|
|
@@ -159,7 +159,7 @@ const J = { class: "app-container" }, K = { class: "cell-item" }, Q = { class: "
|
|
|
159
159
|
d("div", W, u(e.$t("goodsSpu.categoryId")), 1)
|
|
160
160
|
]),
|
|
161
161
|
default: s(() => [
|
|
162
|
-
(
|
|
162
|
+
(f(!0), v(T, null, C(r.value.categoryIds, (a) => (f(), L(k, {
|
|
163
163
|
type: "info",
|
|
164
164
|
key: a,
|
|
165
165
|
style: { "margin-right": "8px", "margin-bottom": "4px" }
|
|
@@ -224,10 +224,10 @@ const J = { class: "app-container" }, K = { class: "cell-item" }, Q = { class: "
|
|
|
224
224
|
d("div", le, u(e.$t("goodsSpu.picUrls")), 1)
|
|
225
225
|
]),
|
|
226
226
|
default: s(() => [
|
|
227
|
-
(
|
|
227
|
+
(f(!0), v(T, null, C($.value, (a) => (f(), L(n, {
|
|
228
228
|
key: a,
|
|
229
|
-
src: m(
|
|
230
|
-
"preview-src-list": [m(
|
|
229
|
+
src: m(b).imageUrl(a, 80, 80),
|
|
230
|
+
"preview-src-list": [m(b).imageUrl(a)],
|
|
231
231
|
"preview-teleported": "",
|
|
232
232
|
"hide-on-click-modal": "",
|
|
233
233
|
fit: "contain"
|
|
@@ -249,7 +249,7 @@ const J = { class: "app-container" }, K = { class: "cell-item" }, Q = { class: "
|
|
|
249
249
|
d("div", te, u(e.$t("goodsSpu.labelIds")), 1)
|
|
250
250
|
]),
|
|
251
251
|
default: s(() => [
|
|
252
|
-
(
|
|
252
|
+
(f(!0), v(T, null, C(r.value.labelIds, (a) => (f(), L(k, {
|
|
253
253
|
type: "info",
|
|
254
254
|
key: a,
|
|
255
255
|
style: { "margin-right": "8px", "margin-bottom": "4px" }
|
|
@@ -266,9 +266,9 @@ const J = { class: "app-container" }, K = { class: "cell-item" }, Q = { class: "
|
|
|
266
266
|
_: 1
|
|
267
267
|
}),
|
|
268
268
|
l[1] || (l[1] = d("div", { class: "title-content" }, "套装商品", -1)),
|
|
269
|
-
o(
|
|
269
|
+
o(V, null, {
|
|
270
270
|
default: s(() => [
|
|
271
|
-
o(
|
|
271
|
+
o(N, {
|
|
272
272
|
data: h.value,
|
|
273
273
|
border: "",
|
|
274
274
|
style: { width: "100%" }
|
|
@@ -289,7 +289,7 @@ const J = { class: "app-container" }, K = { class: "cell-item" }, Q = { class: "
|
|
|
289
289
|
"header-align": "center"
|
|
290
290
|
}, {
|
|
291
291
|
default: s(({ row: a }) => [
|
|
292
|
-
a.specType === m(
|
|
292
|
+
a.specType === m(U).SPEC_TYPE_VALUES.UNIFIED_SPEC ? (f(), v("span", ae, " 统一规格 ")) : (f(), v("span", ie, u(F(a)), 1))
|
|
293
293
|
]),
|
|
294
294
|
_: 1
|
|
295
295
|
}, 8, ["label"]),
|
|
@@ -301,8 +301,8 @@ const J = { class: "app-container" }, K = { class: "cell-item" }, Q = { class: "
|
|
|
301
301
|
}, {
|
|
302
302
|
default: s(({ row: a }) => [
|
|
303
303
|
o(n, {
|
|
304
|
-
src: m(
|
|
305
|
-
"preview-src-list": [m(
|
|
304
|
+
src: m(b).imageUrl(a.picUrl, 80, 80),
|
|
305
|
+
"preview-src-list": [m(b).imageUrl(a.picUrl)],
|
|
306
306
|
"preview-teleported": "",
|
|
307
307
|
"hide-on-click-modal": "",
|
|
308
308
|
fit: "contain"
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as M, ref as y, computed as q, watch as j, resolveComponent as
|
|
1
|
+
import { defineComponent as M, ref as y, computed as q, watch as j, resolveComponent as S, createElementBlock as k, openBlock as r, createVNode as i, withCtx as e, createElementVNode as a, createBlock as b, 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-Da2R0n8O.mjs";
|
|
5
|
+
import Y from "./skuTable-DOIQ9kiV.mjs";
|
|
6
|
+
import { a as G } from "./index-DhS4AuWf.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",
|
|
10
10
|
setup(ve) {
|
|
11
11
|
d.brandListBizDict.useValues(), d.labelListBizDict.useValues();
|
|
12
|
-
const U = H(), V = O(), u = y({}), $ = y([]), g = y([]),
|
|
12
|
+
const U = H(), V = O(), u = y({}), $ = y([]), g = y([]), E = y([]), P = y([]), T = q(() => g.value.filter(
|
|
13
13
|
(t) => t.name && t.specValueList != null && t.specValueList.length
|
|
14
14
|
));
|
|
15
15
|
j(
|
|
@@ -23,7 +23,7 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
|
|
|
23
23
|
var c, v, o;
|
|
24
24
|
u.value = Object.assign(u, t), $.value = (c = t.picUrls) == null ? void 0 : c.split(","), J.findById({ spuId: V.query.spuId }).then(({ data: p }) => {
|
|
25
25
|
u.value.ensureIds = p.ensures;
|
|
26
|
-
}), t.specType === N.
|
|
26
|
+
}), t.specType === N.SPEC_TYPE_VALUES.MULTI_SPEC && (E.value = (v = t.skuList) == null ? void 0 : v.results, (o = t.skuList) == null || o.results.forEach((p) => {
|
|
27
27
|
var m;
|
|
28
28
|
(m = p.specValues) == null || m.map((h) => {
|
|
29
29
|
d.specInfoDict.useValues().then((D) => {
|
|
@@ -39,14 +39,14 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
|
|
|
39
39
|
const C = /* @__PURE__ */ new Map();
|
|
40
40
|
g.value = g.value.filter(
|
|
41
41
|
(f) => !C.has(f.id) && C.set(f.id, f)
|
|
42
|
-
),
|
|
42
|
+
), A(h.specValueId);
|
|
43
43
|
});
|
|
44
44
|
});
|
|
45
45
|
}));
|
|
46
46
|
});
|
|
47
|
-
function
|
|
47
|
+
function A(t) {
|
|
48
48
|
g.value.forEach((c) => {
|
|
49
|
-
|
|
49
|
+
P.value = new R({ specId: c.id }), P.value.useValues().then((v) => {
|
|
50
50
|
v.forEach((o) => {
|
|
51
51
|
if (o.key === t) {
|
|
52
52
|
let m = {
|
|
@@ -63,17 +63,17 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
|
|
|
63
63
|
});
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function z() {
|
|
67
67
|
F.closeTagView(V.fullPath, U, !1);
|
|
68
68
|
}
|
|
69
69
|
return (t, c) => {
|
|
70
|
-
const v =
|
|
70
|
+
const v = S("el-button"), o = S("el-descriptions-item"), p = S("el-tag"), m = S("el-image"), h = S("el-descriptions"), D = S("el-card");
|
|
71
71
|
return r(), k("div", K, [
|
|
72
72
|
i(D, { shadow: "never" }, {
|
|
73
73
|
header: e(() => [
|
|
74
74
|
i(v, {
|
|
75
75
|
type: "primary",
|
|
76
|
-
onClick:
|
|
76
|
+
onClick: z
|
|
77
77
|
}, {
|
|
78
78
|
default: e(() => [
|
|
79
79
|
n(s(t.$t("common.back")), 1)
|
|
@@ -112,7 +112,7 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
|
|
|
112
112
|
a("div", X, s(t.$t("goodsSpu.categoryId")), 1)
|
|
113
113
|
]),
|
|
114
114
|
default: e(() => [
|
|
115
|
-
(r(!0), k(L, null, I(u.value.categoryIds, (l) => (r(),
|
|
115
|
+
(r(!0), k(L, null, I(u.value.categoryIds, (l) => (r(), b(p, {
|
|
116
116
|
type: "info",
|
|
117
117
|
key: l,
|
|
118
118
|
style: { "margin-right": "8px", "margin-bottom": "4px" }
|
|
@@ -139,7 +139,7 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
|
|
|
139
139
|
a("div", x, s(t.$t("goodsSpu.labelIds")), 1)
|
|
140
140
|
]),
|
|
141
141
|
default: e(() => [
|
|
142
|
-
(r(!0), k(L, null, I(u.value.labelIds, (l) => (r(),
|
|
142
|
+
(r(!0), k(L, null, I(u.value.labelIds, (l) => (r(), b(p, {
|
|
143
143
|
type: "info",
|
|
144
144
|
key: l,
|
|
145
145
|
style: { "margin-right": "8px", "margin-bottom": "4px" }
|
|
@@ -157,7 +157,7 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
|
|
|
157
157
|
a("div", ee, s(t.$t("goodsSpu.picUrls")), 1)
|
|
158
158
|
]),
|
|
159
159
|
default: e(() => [
|
|
160
|
-
(r(!0), k(L, null, I($.value, (l) => (r(),
|
|
160
|
+
(r(!0), k(L, null, I($.value, (l) => (r(), b(m, {
|
|
161
161
|
key: l,
|
|
162
162
|
src: _(w).imageUrl(l, 80, 80),
|
|
163
163
|
"preview-src-list": [_(w).imageUrl(l)],
|
|
@@ -220,7 +220,7 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
|
|
|
220
220
|
a("div", ae, s(t.$t("goodsSpu.ensureIds")), 1)
|
|
221
221
|
]),
|
|
222
222
|
default: e(() => [
|
|
223
|
-
(r(!0), k(L, null, I(u.value.ensureIds, (l) => (r(),
|
|
223
|
+
(r(!0), k(L, null, I(u.value.ensureIds, (l) => (r(), b(p, {
|
|
224
224
|
type: "info",
|
|
225
225
|
key: l
|
|
226
226
|
}, {
|
|
@@ -236,7 +236,7 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
|
|
|
236
236
|
_: 1
|
|
237
237
|
}),
|
|
238
238
|
a("div", ie, " 商品规格(" + s(_(d).specTypeEnum.getEnumValue(u.value.specType)) + ") ", 1),
|
|
239
|
-
u.value.specType == _(N).
|
|
239
|
+
u.value.specType == _(N).SPEC_TYPE_VALUES.UNIFIED_SPEC ? (r(), b(h, {
|
|
240
240
|
key: 0,
|
|
241
241
|
class: "margin-top",
|
|
242
242
|
column: 2,
|
|
@@ -342,10 +342,10 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
|
|
|
342
342
|
]),
|
|
343
343
|
_: 1
|
|
344
344
|
})) : B("", !0),
|
|
345
|
-
g.value.length > 0 ? (r(),
|
|
345
|
+
g.value.length > 0 ? (r(), b(Y, {
|
|
346
346
|
key: 1,
|
|
347
347
|
specData: T.value,
|
|
348
|
-
goodsSku:
|
|
348
|
+
goodsSku: E.value,
|
|
349
349
|
isSettingShow: !1
|
|
350
350
|
}, null, 8, ["specData", "goodsSku"])) : B("", !0),
|
|
351
351
|
c[1] || (c[1] = a("div", { class: "title-content" }, "商品描述", -1)),
|