xyvcard-goods 0.0.27 → 0.0.28

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.
Files changed (30) hide show
  1. package/dist/{ImageUpload-BMw9FVJL.mjs → ImageUpload-Dk6GY6PA.mjs} +2 -2
  2. package/dist/{edit-CwYGsVHI.mjs → edit-CYekSxUa.mjs} +6 -6
  3. package/dist/{edit-CuYE3fHS.mjs → edit-C_XCVJwM.mjs} +3 -3
  4. package/dist/{edit-CvY-V0N5.mjs → edit-CquWa3hI.mjs} +86 -83
  5. package/dist/{edit-DmT9V-gh.mjs → edit-CuZnQH9w.mjs} +1 -1
  6. package/dist/{edit-C6CESv8X.mjs → edit-D1FAN3TA.mjs} +3 -3
  7. package/dist/{edit.vue_vue_type_script_setup_true_lang-DfFKgB6q.mjs → edit.vue_vue_type_script_setup_true_lang-BSxqVyG4.mjs} +74 -76
  8. package/dist/{goodsList-Bj9pZI5X.mjs → goodsList-DZlaY5k0.mjs} +1 -1
  9. package/dist/{goodsList-v98w-P_d.mjs → goodsList-wpPEPZqs.mjs} +1 -1
  10. package/dist/{goodsList.vue_vue_type_script_setup_true_lang-QHlAuCT3.mjs → goodsList.vue_vue_type_script_setup_true_lang-BFXFifWr.mjs} +3 -3
  11. package/dist/{goodsList.vue_vue_type_script_setup_true_lang-BsItIhFh.mjs → goodsList.vue_vue_type_script_setup_true_lang-iXycU5oS.mjs} +3 -3
  12. package/dist/{index-CXtRrzoC.mjs → index-B27GuULR.mjs} +1875 -1998
  13. package/dist/{index-D7Zknkay.mjs → index-B3vvD7JH.mjs} +14 -14
  14. package/dist/{index-B0qodJxZ.mjs → index-COXyxAor.mjs} +2 -2
  15. package/dist/{index-BrR_OdFN.mjs → index-DFxg3rmo.mjs} +3 -3
  16. package/dist/{index-0g53MREL.mjs → index-Dd1dJx7i.mjs} +14 -14
  17. package/dist/{index-DWtdS9Gu.mjs → index-Dy5JznUz.mjs} +3 -3
  18. package/dist/{index-CXEbqy-N.mjs → index-nCeCw43N.mjs} +14 -14
  19. package/dist/{index-szFiZJnI.mjs → index-wH3Sgvus.mjs} +1 -1
  20. package/dist/index.mjs +1 -1
  21. package/dist/{info-Bn5lfzNP.mjs → info-0Pf9u0GJ.mjs} +4 -4
  22. package/dist/info-NBnTd9fK.mjs +349 -0
  23. package/dist/{skuForm-DF02pgox.mjs → skuForm-BsvKk2kD.mjs} +65 -67
  24. package/dist/{skuForm-EQVH7pCG.mjs → skuForm-CU0a2ltJ.mjs} +6 -6
  25. package/dist/{skuTable-DWpm1OMq.mjs → skuTable-DgDGWX-n.mjs} +4 -4
  26. package/dist/style.css +1 -1
  27. package/dts/api/goods-spu/types.d.ts +3 -0
  28. package/dts/views/goods/goods-combination/skuTable.vue.d.ts +40 -0
  29. package/package.json +62 -62
  30. package/dist/info-PRjY0AD1.mjs +0 -331
@@ -1,6 +1,6 @@
1
- import { defineComponent as te, ref as S, computed as se, watch as $, resolveComponent as i, createElementBlock as g, openBlock as m, Fragment as b, createCommentVNode as I, unref as M, createVNode as o, withCtx as a, renderList as P, createElementVNode as k, toDisplayString as O, createTextVNode as y, createBlock as w } from "vue";
2
- import { C as D, D as ue, S as Y, a as ne } from "./index-B0qodJxZ.mjs";
3
- import re from "./skuTable-DWpm1OMq.mjs";
1
+ import { defineComponent as te, ref as S, computed as se, watch as $, resolveComponent as i, openBlock as m, createElementBlock as g, Fragment as b, unref as M, createVNode as o, withCtx as a, createCommentVNode as I, renderList as P, createElementVNode as k, toDisplayString as O, createTextVNode as y, createBlock as w } from "vue";
2
+ import { C as D, D as ue, S as Y, a as ne } from "./index-COXyxAor.mjs";
3
+ import re from "./skuTable-DgDGWX-n.mjs";
4
4
  import { _ as de } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
5
5
  const pe = { key: 0 }, ce = {
6
6
  key: 1,
@@ -353,7 +353,7 @@ const pe = { key: 0 }, ce = {
353
353
  ]),
354
354
  _: 1
355
355
  }),
356
- l[9] || (l[9] = y("移除 ", -1))
356
+ l[9] || (l[9] = y("移除 "))
357
357
  ], 8, me)
358
358
  ]),
359
359
  k("div", fe, [
@@ -380,7 +380,7 @@ const pe = { key: 0 }, ce = {
380
380
  reference: a(() => [
381
381
  o(R, { class: "m-2" }, {
382
382
  default: a(() => l[10] || (l[10] = [
383
- y("添加规格值", -1)
383
+ y("添加规格值")
384
384
  ])),
385
385
  _: 1,
386
386
  __: [10]
@@ -417,7 +417,7 @@ const pe = { key: 0 }, ce = {
417
417
  reference: a(() => [
418
418
  o(R, { class: "m-2" }, {
419
419
  default: a(() => l[11] || (l[11] = [
420
- y("添加规格", -1)
420
+ y("添加规格")
421
421
  ])),
422
422
  _: 1,
423
423
  __: [11]
@@ -1,5 +1,5 @@
1
- import { defineComponent as T, ref as C, computed as F, watch as $, resolveComponent as g, createElementBlock as b, openBlock as P, createCommentVNode as M, createVNode as a, createElementVNode as u, createTextVNode as y, withCtx as d, Fragment as G, renderList as K, createBlock as z, toDisplayString as D, unref as x } from "vue";
2
- import { D as O } from "./index-B0qodJxZ.mjs";
1
+ import { defineComponent as T, ref as C, computed as F, watch as $, resolveComponent as g, openBlock as P, createElementBlock as b, createElementVNode as u, createVNode as a, withCtx as d, createTextVNode as y, createCommentVNode as M, Fragment as G, renderList as K, createBlock as z, toDisplayString as D, unref as x } from "vue";
2
+ import { D as O } from "./index-COXyxAor.mjs";
3
3
  import { fileApi as E } from "jmash-core";
4
4
  import { _ as H } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
5
5
  function J(n, h = [], o) {
@@ -212,7 +212,7 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
212
212
  ]),
213
213
  _: 1
214
214
  }),
215
- s[8] || (s[8] = y(" 批量设置 ", -1))
215
+ s[8] || (s[8] = y(" 批量设置 "))
216
216
  ]),
217
217
  u("span", Y, [
218
218
  a(l, {
@@ -380,7 +380,7 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
380
380
  onClick: S
381
381
  }, {
382
382
  default: d(() => s[9] || (s[9] = [
383
- y("设置", -1)
383
+ y("设置")
384
384
  ])),
385
385
  _: 1,
386
386
  __: [9]
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- @charset "UTF-8";.w-full{width:100%!important}.right-dis{margin-right:10px}.top-dis{margin-top:25px}.cell-item{display:flex;align-items:center;justify-content:flex-end}.el-descriptions__label{width:15%;text-align:right}.el-descriptions__content{width:35%}[data-v-f10f6f7e] .el-upload--picture-card{width:80px;height:80px;border-radius:0}[data-v-f10f6f7e] .el-upload-list--picture-card .el-upload-list__item{width:80px;height:80px}.title-set[data-v-6fc718ce]{display:flex;align-items:center;font-size:14px;padding:0 0 10px}.goods-spec[data-v-e6aa4b01]{border:1px solid #ccc;margin-bottom:5px}.goods-title[data-v-e6aa4b01]{display:flex;align-items:center;border-bottom:1px solid #ccc;padding:10px 20px}.goods-title .goods-delete[data-v-e6aa4b01]{display:flex;align-items:center;margin-left:auto;color:red;font-size:14px}.goods-content[data-v-e6aa4b01]{padding:10px 20px}.goods-tag[data-v-e6aa4b01]{margin-bottom:10px}.addButton[data-v-3217d67c]{margin-top:15px;margin-bottom:20px;width:100%}.hover-blue[data-v-3217d67c]:hover{color:#409eff!important}.position-center[data-v-6e6f248a]{position:absolute;right:0;top:30%;transform:translateY(-30%)}.plus-position[data-v-6e6f248a]{position:absolute;right:0;top:0;margin-top:8px}.position-center[data-v-7789ee13]{position:absolute;right:0;top:30%;transform:translateY(-30%)}.plus-position[data-v-7789ee13]{position:absolute;right:0;top:0;margin-top:8px}
1
+ @charset "UTF-8";.w-full{width:100%!important}.right-dis{margin-right:10px}.top-dis{margin-top:25px}.cell-item{display:flex;align-items:center;justify-content:flex-end}.el-descriptions__label{width:15%;text-align:right}.el-descriptions__content{width:35%}[data-v-f10f6f7e] .el-upload--picture-card{width:80px;height:80px;border-radius:0}[data-v-f10f6f7e] .el-upload-list--picture-card .el-upload-list__item{width:80px;height:80px}.title-set[data-v-6fc718ce]{display:flex;align-items:center;font-size:14px;padding:0 0 10px}.goods-spec[data-v-e6aa4b01]{border:1px solid #ccc;margin-bottom:5px}.goods-title[data-v-e6aa4b01]{display:flex;align-items:center;border-bottom:1px solid #ccc;padding:10px 20px}.goods-title .goods-delete[data-v-e6aa4b01]{display:flex;align-items:center;margin-left:auto;color:red;font-size:14px}.goods-content[data-v-e6aa4b01]{padding:10px 20px}.goods-tag[data-v-e6aa4b01]{margin-bottom:10px}.addButton[data-v-dc82ad15]{margin-top:15px;margin-bottom:20px;width:100%}.hover-blue[data-v-dc82ad15]:hover{color:#409eff!important}.position-center[data-v-6e6f248a]{position:absolute;right:0;top:30%;transform:translateY(-30%)}.plus-position[data-v-6e6f248a]{position:absolute;right:0;top:0;margin-top:8px}.position-center[data-v-7789ee13]{position:absolute;right:0;top:30%;transform:translateY(-30%)}.plus-position[data-v-7789ee13]{position:absolute;right:0;top:0;margin-top:8px}
@@ -36,6 +36,8 @@ export interface GoodsSpuModel extends EntityModel {
36
36
  brandId?: string;
37
37
  labelIds?: Array<string>;
38
38
  groupInfos?: Array<GoodsGroupInfoCreateReq>;
39
+ minPrice?: number;
40
+ maxPrice?: number;
39
41
  }
40
42
  export interface GoodsSpuList extends EntityList {
41
43
  results: Array<GoodsSpuModel>;
@@ -128,6 +130,7 @@ export interface GoodsSkuCreateReq {
128
130
  skuId?: string;
129
131
  status?: boolean;
130
132
  specIds?: string;
133
+ saleNum?: number;
131
134
  }
132
135
  export interface SkuSpecValue {
133
136
  specId: string;
@@ -0,0 +1,40 @@
1
+ import { type PropType } from "vue";
2
+ import type { GoodsSkuCreateReq, SkuSpecValueModel } from "@/api/goods-spu/types";
3
+ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
4
+ specData: {
5
+ type: PropType<SkuSpecValueModel[]>;
6
+ default(): never[];
7
+ };
8
+ goodsSku: {
9
+ type: PropType<GoodsSkuCreateReq[]>;
10
+ default(): never[];
11
+ };
12
+ isSettingShow: {
13
+ type: BooleanConstructor;
14
+ default: boolean;
15
+ };
16
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
+ getGoodsSku: (...args: any[]) => void;
18
+ getFormData: (...args: any[]) => void;
19
+ }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
20
+ specData: {
21
+ type: PropType<SkuSpecValueModel[]>;
22
+ default(): never[];
23
+ };
24
+ goodsSku: {
25
+ type: PropType<GoodsSkuCreateReq[]>;
26
+ default(): never[];
27
+ };
28
+ isSettingShow: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ };
32
+ }>> & Readonly<{
33
+ onGetGoodsSku?: ((...args: any[]) => any) | undefined;
34
+ onGetFormData?: ((...args: any[]) => any) | undefined;
35
+ }>, {
36
+ specData: SkuSpecValueModel[];
37
+ goodsSku: GoodsSkuCreateReq[];
38
+ isSettingShow: boolean;
39
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
40
+ export default _default;
package/package.json CHANGED
@@ -1,63 +1,63 @@
1
- {
2
- "name": "xyvcard-goods",
3
- "version": "0.0.27",
4
- "private": false,
5
- "module": "dist/index.mjs",
6
- "types": "dts/index.d.ts",
7
- "files": [
8
- "dist",
9
- "dts"
10
- ],
11
- "peerDependencies": {
12
- "axios": "^1.9.0",
13
- "element-plus": "^2.9.10",
14
- "jmash-core": "^0.1.7",
15
- "jmash-dict": "^0.1.1",
16
- "jmash-rbac": "^0.1.16",
17
- "pinia": "^2.3.1",
18
- "vue": "^3.5.13",
19
- "vue-i18n": "^9.14.1",
20
- "vue-router": "^4.5.1",
21
- "xyvcard-emall": "^0.0.22",
22
- "xyvcard-shop": "^0.0.29",
23
- "xyvcard-cms": "0.0.51"
24
- },
25
- "devDependencies": {
26
- "@eslint/js": "^9.16.0",
27
- "@tsconfig/node20": "^20.1.2",
28
- "@types/node": "^20.11.10",
29
- "@vitejs/plugin-vue": "^5.0.3",
30
- "@vue/tsconfig": "^0.5.1",
31
- "eslint": "^9.16.0",
32
- "eslint-plugin-vue": "^9.32.0",
33
- "globals": "^15.13.0",
34
- "moment": "^2.30.1",
35
- "npm-run-all2": "^6.1.1",
36
- "prettier": "^3.0.3",
37
- "sass": "^1.72.0",
38
- "typescript": "~5.3.0",
39
- "typescript-eslint": "^8.17.0",
40
- "unplugin-auto-import": "^0.17.5",
41
- "unplugin-vue-components": "^0.26.0",
42
- "vite": "^5.0.11",
43
- "vue-tsc": "^1.8.27"
44
- },
45
- "dependencies": {
46
- "@element-plus/icons-vue": "^2.3.1",
47
- "@vueuse/core": "^10.9.0",
48
- "file-saver": "^2.0.5",
49
- "nprogress": "^0.2.0",
50
- "qs": "^6.12.0",
51
- "pinyin-pro": "^3.25.0"
52
- },
53
- "scripts": {
54
- "dev": "vite --host",
55
- "build": "vite build && pnpm build:dts",
56
- "build:dts": "vue-tsc --declaration --emitDeclarationOnly",
57
- "preview": "vite preview",
58
- "build-only": "vite build",
59
- "type-check": "vue-tsc --build --force",
60
- "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
61
- "format": "prettier --write src/"
62
- }
1
+ {
2
+ "name": "xyvcard-goods",
3
+ "version": "0.0.28",
4
+ "private": false,
5
+ "module": "dist/index.mjs",
6
+ "types": "dts/index.d.ts",
7
+ "files": [
8
+ "dist",
9
+ "dts"
10
+ ],
11
+ "scripts": {
12
+ "dev": "vite --host",
13
+ "build": "vite build && pnpm build:dts",
14
+ "build:dts": "vue-tsc --declaration --emitDeclarationOnly",
15
+ "preview": "vite preview",
16
+ "build-only": "vite build",
17
+ "type-check": "vue-tsc --build --force",
18
+ "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
19
+ "format": "prettier --write src/"
20
+ },
21
+ "peerDependencies": {
22
+ "axios": "^1.9.0",
23
+ "element-plus": "^2.9.10",
24
+ "jmash-core": "^0.1.7",
25
+ "jmash-dict": "^0.1.1",
26
+ "jmash-rbac": "^0.1.16",
27
+ "pinia": "^2.3.1",
28
+ "vue": "^3.5.13",
29
+ "vue-i18n": "^9.14.1",
30
+ "vue-router": "^4.5.1",
31
+ "xyvcard-emall": "^0.0.22",
32
+ "xyvcard-shop": "^0.0.29",
33
+ "xyvcard-cms": "0.0.51"
34
+ },
35
+ "devDependencies": {
36
+ "@eslint/js": "^9.16.0",
37
+ "@tsconfig/node20": "^20.1.2",
38
+ "@types/node": "^20.11.10",
39
+ "@vitejs/plugin-vue": "^5.0.3",
40
+ "@vue/tsconfig": "^0.5.1",
41
+ "eslint": "^9.16.0",
42
+ "eslint-plugin-vue": "^9.32.0",
43
+ "globals": "^15.13.0",
44
+ "moment": "^2.30.1",
45
+ "npm-run-all2": "^6.1.1",
46
+ "prettier": "^3.0.3",
47
+ "sass": "^1.72.0",
48
+ "typescript": "~5.3.0",
49
+ "typescript-eslint": "^8.17.0",
50
+ "unplugin-auto-import": "^0.17.5",
51
+ "unplugin-vue-components": "^0.26.0",
52
+ "vite": "^5.0.11",
53
+ "vue-tsc": "^1.8.27"
54
+ },
55
+ "dependencies": {
56
+ "@element-plus/icons-vue": "^2.3.1",
57
+ "@vueuse/core": "^10.9.0",
58
+ "file-saver": "^2.0.5",
59
+ "nprogress": "^0.2.0",
60
+ "qs": "^6.12.0",
61
+ "pinyin-pro": "^3.25.0"
62
+ }
63
63
  }
@@ -1,331 +0,0 @@
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
- import { useRouter as j, useRoute as G } from "vue-router";
4
- import { D as y, C as U } from "./index-B0qodJxZ.mjs";
5
- import { a as L } from "./index-CXtRrzoC.mjs";
6
- 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" }, se = { class: "cell-item" }, le = { key: 0 }, te = { key: 1 }, pe = /* @__PURE__ */ M({
8
- __name: "info",
9
- setup(ae) {
10
- const O = j(), P = G(), r = b({}), $ = b([]), B = b({}), N = b([]);
11
- y.goodsCategoryListBizLayDict.useValues(), y.labelListBizDict.useValues(), y.goodsSpuBizDict.useValues();
12
- const h = b([
13
- {
14
- salePrice: 0,
15
- skuId: "",
16
- spuId: "",
17
- specInfo: "",
18
- saleNum: 0,
19
- picUrl: "",
20
- specType: "",
21
- skuOptions: []
22
- }
23
- ]);
24
- P.query.spuId && (L.findById({ spuId: P.query.spuId }).then(({ data: s }) => {
25
- var e;
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
- }
34
- if (s && s.results.length > 0) {
35
- h.value = [];
36
- const e = s.results.map(async (l) => {
37
- const i = {
38
- salePrice: l.salePrice || 0,
39
- skuId: l.skuId || "",
40
- spuId: l.spuId || "",
41
- saleNum: l.saleNum || 0,
42
- picUrl: l.picUrl || "",
43
- specType: "",
44
- skuOptions: []
45
- };
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;
47
- });
48
- Promise.all(e).then((l) => {
49
- console.log(l), h.value = l;
50
- });
51
- }
52
- }));
53
- async function A(s, e) {
54
- var l, i, I;
55
- if (e.skuId = "", e.skuOptions = [], e.picUrl = "", e.salePrice = 0, e.saleNum = 0, !s) {
56
- e.skuId = "", e.picUrl = "", e.salePrice = 0, e.saleNum = 0, e.skuOptions = [];
57
- return;
58
- }
59
- try {
60
- const { data: c } = await L.findById({ spuId: s });
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(
63
- (a) => a.specValueId
64
- ) : []), E = g.flat().map((n) => Y(n));
65
- await Promise.all(E);
66
- const T = g.map(
67
- (n) => n.map((a) => N.value[a] || a)
68
- );
69
- e.skuOptions = v.map((n, a) => ({
70
- key: n.skuId,
71
- value: T[a].join(" "),
72
- picUrl: n.picUrl || (c.picUrls ? c.picUrls.split(",")[0] : ""),
73
- salePrice: n.salePrice,
74
- stock: n.stock
75
- })), v.forEach((n) => {
76
- n.skuId && (B.value[n.skuId] = {
77
- ...n,
78
- spuPicUrls: c.picUrls
79
- });
80
- });
81
- }
82
- } catch {
83
- }
84
- }
85
- function z(s) {
86
- const e = h.value.find((l) => l.skuId === s);
87
- if (e && s) {
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;
92
- }
93
- }
94
- }
95
- async function Y(s) {
96
- if (!N.value[s])
97
- try {
98
- const { data: e } = await H.findById({
99
- specValueId: s
100
- });
101
- return N.value[s] = e.valueName, e.valueName;
102
- } catch {
103
- }
104
- }
105
- function F(s) {
106
- if (!s.skuId || !s.skuOptions || s.skuOptions.length === 0)
107
- return "";
108
- const e = s.skuOptions.find(
109
- (l) => l.key === s.skuId
110
- );
111
- return e ? e.value : "";
112
- }
113
- function q() {
114
- R.closeTagView(P.fullPath, O, !1);
115
- }
116
- return (s, e) => {
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");
118
- return _(), k("div", J, [
119
- o(n, { shadow: "never" }, {
120
- header: t(() => [
121
- o(l, {
122
- type: "primary",
123
- onClick: q
124
- }, {
125
- default: t(() => [
126
- p(u(s.$t("common.back")), 1)
127
- ]),
128
- _: 1
129
- })
130
- ]),
131
- default: t(() => [
132
- e[0] || (e[0] = d("div", { class: "title-content" }, "基本信息", -1)),
133
- o(v, {
134
- class: "margin-top",
135
- column: 2,
136
- border: ""
137
- }, {
138
- default: t(() => [
139
- o(i, null, {
140
- label: t(() => [
141
- d("div", K, u(s.$t("goodsSpu.spuName")), 1)
142
- ]),
143
- default: t(() => [
144
- p(" " + u(r.value.spuName), 1)
145
- ]),
146
- _: 1
147
- }),
148
- o(i, null, {
149
- label: t(() => [
150
- d("div", Q, u(s.$t("goodsSpu.spuCode")), 1)
151
- ]),
152
- default: t(() => [
153
- p(" " + u(r.value.spuCode), 1)
154
- ]),
155
- _: 1
156
- }),
157
- o(i, null, {
158
- label: t(() => [
159
- d("div", W, u(s.$t("goodsSpu.categoryId")), 1)
160
- ]),
161
- default: t(() => [
162
- (_(!0), k(C, null, V(r.value.categoryIds, (a) => (_(), D(I, {
163
- type: "info",
164
- key: a,
165
- style: { "margin-right": "8px", "margin-bottom": "4px" }
166
- }, {
167
- default: t(() => [
168
- p(u(m(y).goodsCategoryListBizLayDict.getValue(a) || a), 1)
169
- ]),
170
- _: 2
171
- }, 1024))), 128))
172
- ]),
173
- _: 1
174
- }),
175
- o(i, null, {
176
- label: t(() => [
177
- d("div", X, u(s.$t("goodsSpu.labelIds")), 1)
178
- ]),
179
- default: t(() => [
180
- (_(!0), k(C, null, V(r.value.labelIds, (a) => (_(), D(I, {
181
- type: "info",
182
- key: a,
183
- style: { "margin-right": "8px", "margin-bottom": "4px" }
184
- }, {
185
- default: t(() => [
186
- p(u(m(y).labelListBizDict.getValue(a)), 1)
187
- ]),
188
- _: 2
189
- }, 1024))), 128))
190
- ]),
191
- _: 1
192
- }),
193
- o(i, null, {
194
- label: t(() => [
195
- d("div", Z, u(s.$t("goodsSpu.picUrls")), 1)
196
- ]),
197
- default: t(() => [
198
- (_(!0), k(C, null, V($.value, (a) => (_(), D(c, {
199
- key: a,
200
- src: m(S).imageUrl(a, 80, 80),
201
- "preview-src-list": [m(S).imageUrl(a)],
202
- "preview-teleported": "",
203
- "hide-on-click-modal": "",
204
- fit: "contain"
205
- }, null, 8, ["src", "preview-src-list"]))), 128))
206
- ]),
207
- _: 1
208
- }),
209
- o(i, null, {
210
- label: t(() => [
211
- d("div", w, u(s.$t("goodsSpu.freightType")), 1)
212
- ]),
213
- default: t(() => [
214
- p(" " + u(m(y).freightTypeEnum.getEnumValue(
215
- r.value.freightType
216
- )), 1)
217
- ]),
218
- _: 1
219
- }),
220
- o(i, null, {
221
- label: t(() => [
222
- d("div", x, u(s.$t("goodsSpu.freightAmount")), 1)
223
- ]),
224
- default: t(() => [
225
- p(" " + u(r.value.freightAmount), 1)
226
- ]),
227
- _: 1
228
- }),
229
- o(i, null, {
230
- label: t(() => [
231
- d("div", ee, u(s.$t("goodsSpu.shelf")), 1)
232
- ]),
233
- default: t(() => [
234
- p(" " + u(m(y).shelfDict.getValue(r.value.shelf)), 1)
235
- ]),
236
- _: 1
237
- }),
238
- o(i, null, {
239
- label: t(() => [
240
- d("div", se, u(s.$t("goodsSpu.saleNum")), 1)
241
- ]),
242
- default: t(() => [
243
- p(" " + u(r.value.saleNum), 1)
244
- ]),
245
- _: 1
246
- })
247
- ]),
248
- _: 1
249
- }),
250
- e[1] || (e[1] = d("div", { class: "title-content" }, "套装商品", -1)),
251
- o(T, null, {
252
- default: t(() => [
253
- o(E, {
254
- data: h.value,
255
- border: "",
256
- style: { width: "100%" }
257
- }, {
258
- default: t(() => [
259
- o(g, {
260
- label: s.$t("goodsSpu.spuName"),
261
- prop: "spuId",
262
- "header-align": "center"
263
- }, {
264
- default: t(({ row: a }) => [
265
- p(u(m(y).goodsSpuBizDict.getValue(a.spuId)), 1)
266
- ]),
267
- _: 1
268
- }, 8, ["label"]),
269
- o(g, {
270
- label: s.$t("goodsSpu.specType"),
271
- "header-align": "center"
272
- }, {
273
- default: t(({ row: a }) => [
274
- a.specType === m(U).SPEC_TYPE.UNIFIED_SPEC ? (_(), k("span", le, " 统一规格 ")) : (_(), k("span", te, u(F(a)), 1))
275
- ]),
276
- _: 1
277
- }, 8, ["label"]),
278
- o(g, {
279
- label: s.$t("goodsSpu.picUrls"),
280
- prop: "picUrl",
281
- width: "105",
282
- "header-align": "center"
283
- }, {
284
- default: t(({ row: a }) => [
285
- o(c, {
286
- src: m(S).imageUrl(a.picUrl, 80, 80),
287
- "preview-src-list": [m(S).imageUrl(a.picUrl)],
288
- "preview-teleported": "",
289
- "hide-on-click-modal": "",
290
- fit: "contain"
291
- }, null, 8, ["src", "preview-src-list"])
292
- ]),
293
- _: 1
294
- }, 8, ["label"]),
295
- o(g, {
296
- label: s.$t("goodsSpu.salePriceV1"),
297
- prop: "saleNum",
298
- "header-align": "center"
299
- }, {
300
- default: t(({ row: a }) => [
301
- p(u(a.saleNum), 1)
302
- ]),
303
- _: 1
304
- }, 8, ["label"]),
305
- o(g, {
306
- label: s.$t("goodsSpu.saleNums"),
307
- prop: "saleNum",
308
- "header-align": "center"
309
- }, {
310
- default: t(({ row: a }) => [
311
- p(u(a.saleNum), 1)
312
- ]),
313
- _: 1
314
- }, 8, ["label"])
315
- ]),
316
- _: 1
317
- }, 8, ["data"])
318
- ]),
319
- _: 1
320
- })
321
- ]),
322
- _: 1,
323
- __: [0, 1]
324
- })
325
- ]);
326
- };
327
- }
328
- });
329
- export {
330
- pe as default
331
- };