xyvcard-goods 0.0.15 → 0.0.17

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.
@@ -1,10 +1,10 @@
1
1
  var S = Object.defineProperty;
2
- var E = (r, e, t) => e in r ? S(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
- var s = (r, e, t) => E(r, typeof e != "symbol" ? e + "" : e, t);
4
- import { useUserStore as i, clearEmpty as n, request as c, BizDict as p, BizLayDict as v, EnumDict as g } from "jmash-core";
5
- import { EntryDict as m } from "jmash-dict";
6
- import { ref as h, reactive as P } from "vue";
7
- import { specValueApi as y, infoApi as L, specInfoApi as A } from "xyvcard-shop";
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
8
  class a {
9
9
  }
10
10
  // 模块
@@ -29,7 +29,7 @@ s(a, "ENABLE_VALUES", h([
29
29
  { key: "true", value: "启用" },
30
30
  { key: "false", value: "禁用" }
31
31
  ]));
32
- class O {
32
+ class f {
33
33
  getKey(e) {
34
34
  return {
35
35
  categoryId: e.categoryId
@@ -37,8 +37,8 @@ class O {
37
37
  }
38
38
  // 查询翻页信息商城商品分类
39
39
  findPage(e) {
40
- const t = i().user.tenant;
41
- return e && (e.hasStatus = e.status != null), n(e), c({
40
+ const t = c().user.tenant;
41
+ return e && (e.hasStatus = e.status != null), l(e), d({
42
42
  url: "/v1/goods/goods_category/list/" + t,
43
43
  method: "get",
44
44
  params: e
@@ -46,8 +46,8 @@ class O {
46
46
  }
47
47
  // 查询列表信息商城商品分类
48
48
  findList(e) {
49
- const t = i().user.tenant;
50
- return n(e), c({
49
+ const t = c().user.tenant;
50
+ return l(e), d({
51
51
  url: "/v1/goods/goods_category/list/" + t,
52
52
  method: "get",
53
53
  params: e
@@ -55,15 +55,15 @@ class O {
55
55
  }
56
56
  // 查询商城商品分类
57
57
  findById(e) {
58
- const t = i().user.tenant;
59
- return n(e), c({
58
+ const t = c().user.tenant;
59
+ return l(e), d({
60
60
  url: "/v1/goods/goods_category/id/" + t + "/" + e.categoryId,
61
61
  method: "get"
62
62
  });
63
63
  }
64
64
  // 创建实体商城商品分类
65
65
  create(e) {
66
- return e.tenant = i().user.tenant, n(e), c({
66
+ return e.tenant = c().user.tenant, l(e), d({
67
67
  url: "/v1/goods/goods_category",
68
68
  method: "post",
69
69
  data: e
@@ -71,7 +71,7 @@ class O {
71
71
  }
72
72
  // 修改实体商城商品分类
73
73
  update(e) {
74
- return e.tenant = i().user.tenant, n(e), c({
74
+ return e.tenant = c().user.tenant, l(e), d({
75
75
  url: "/v1/goods/goods_category",
76
76
  method: "patch",
77
77
  data: e
@@ -79,25 +79,25 @@ class O {
79
79
  }
80
80
  // 上移下移
81
81
  move(e, t) {
82
- const o = { ...e };
83
- return o.tenant = i().user.tenant, o.up = t, n(o), c({
82
+ const r = { ...e };
83
+ return r.tenant = c().user.tenant, r.up = t, l(r), d({
84
84
  url: "/v1/goods/goods_category/move",
85
85
  method: "put",
86
- data: o
86
+ data: r
87
87
  });
88
88
  }
89
89
  // 启用/禁用
90
90
  enable(e, t) {
91
- const o = { ...e };
92
- return o.tenant = i().user.tenant, o.enable = t, n(o), c({
91
+ const r = { ...e };
92
+ return r.tenant = c().user.tenant, r.enable = t, l(r), d({
93
93
  url: "/v1/goods/goods_category/enable",
94
94
  method: "put",
95
- data: o
95
+ data: r
96
96
  });
97
97
  }
98
98
  // 删除商城商品分类
99
99
  delete(e) {
100
- return e.tenant = i().user.tenant, n(e), c({
100
+ return e.tenant = c().user.tenant, l(e), d({
101
101
  url: "/v1/goods/goods_category/id",
102
102
  method: "delete",
103
103
  params: e
@@ -105,14 +105,14 @@ class O {
105
105
  }
106
106
  // 批量删除商城商品分类
107
107
  batchDelete(e) {
108
- const t = e.map((l) => l.categoryId), o = {
109
- tenant: i().user.tenant,
108
+ const t = e.map((n) => n.categoryId), r = {
109
+ tenant: c().user.tenant,
110
110
  categoryId: t
111
111
  };
112
- return n(o), c({
112
+ return l(r), d({
113
113
  url: "/v1/goods/goods_category/batch",
114
114
  method: "put",
115
- data: o
115
+ data: r
116
116
  });
117
117
  }
118
118
  /**
@@ -122,18 +122,29 @@ class O {
122
122
  * @returns 返回一个AxiosPromise,包含GoodsCategoryTree类型的响应数据
123
123
  */
124
124
  findTreeListApi(e) {
125
- const t = i().user.tenant;
126
- return n(e), c({
125
+ const t = c().user.tenant;
126
+ return l(e), d({
127
127
  url: "/v1/goods/goods_category/treelist/" + t,
128
128
  method: "get",
129
129
  params: e
130
130
  });
131
131
  }
132
132
  }
133
- const f = new O();
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
+ }
134
145
  class _ {
135
146
  constructor(e, t) {
136
- s(this, "values", P([]));
147
+ s(this, "values", L([]));
137
148
  // 查询条件
138
149
  s(this, "query");
139
150
  this.values.length = 0, this.values.push(...e.value), this.query = t;
@@ -150,13 +161,13 @@ class U extends p {
150
161
  // 实现 useValues 方法
151
162
  useValues() {
152
163
  return new Promise((e, t) => {
153
- L.findList(this.query).then(({ data: o }) => {
154
- const l = o.results;
164
+ m.findList(this.query).then(({ data: r }) => {
165
+ const n = r.results;
155
166
  this.values.length = 0, this.values.push(
156
- ...l.map(
157
- (d) => ({
158
- key: d.shopId,
159
- value: d.shopName
167
+ ...n.map(
168
+ (u) => ({
169
+ key: u.shopId,
170
+ value: u.shopName
160
171
  })
161
172
  )
162
173
  ), e(this.values);
@@ -164,28 +175,41 @@ class U extends p {
164
175
  });
165
176
  }
166
177
  }
167
- class I extends v {
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
+ // }
168
192
  // 实现 useValues 方法
169
- useValues(e) {
170
- return new Promise((t, o) => {
171
- f.findTreeListApi({ excludeId: e }).then(({ data: l }) => {
172
- this.values.length = 0, this.values.push(...l.results), t(this.values);
173
- }).catch(o);
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);
174
198
  });
175
199
  }
176
200
  }
177
- class D extends p {
201
+ class T extends p {
178
202
  // 实现 useValues 方法
179
203
  useValues() {
180
204
  return new Promise((e, t) => {
181
- A.findList(this.query).then(({ data: o }) => {
182
- const l = o.results;
205
+ O.findList(this.query).then(({ data: r }) => {
206
+ const n = r.results;
183
207
  this.values.length = 0, this.values.push(
184
- ...l.map(
185
- (d) => ({
186
- key: d.specId,
187
- value: d.specName,
188
- disabled: d.disabled
208
+ ...n.map(
209
+ (u) => ({
210
+ key: u.specId,
211
+ value: u.specName,
212
+ disabled: u.disabled
189
213
  })
190
214
  )
191
215
  ), e(this.values);
@@ -193,17 +217,17 @@ class D extends p {
193
217
  });
194
218
  }
195
219
  }
196
- class T extends p {
220
+ class N extends p {
197
221
  // 实现 useValues 方法
198
222
  useValues() {
199
223
  return new Promise((e, t) => {
200
- y.findList(this.query).then(({ data: o }) => {
201
- const l = o.results;
224
+ P.findList(this.query).then(({ data: r }) => {
225
+ const n = r.results;
202
226
  this.values.length = 0, this.values.push(
203
- ...l.map(
204
- (d) => ({
205
- key: d.specValueId,
206
- value: d.valueName
227
+ ...n.map(
228
+ (u) => ({
229
+ key: u.specValueId,
230
+ value: u.valueName
207
231
  })
208
232
  )
209
233
  ), e(this.values);
@@ -211,38 +235,38 @@ class T extends p {
211
235
  });
212
236
  }
213
237
  }
214
- class u {
238
+ class i {
215
239
  }
216
240
  // 店铺列表
217
- s(u, "shopInfoBizDict", new U({})), // 商品分类
241
+ s(i, "shopInfoBizDict", new U({})), // 商品分类
218
242
  // static readonly goodsCategoryDict = new GoodsCategoryBizLayDict({});
219
243
  // 规格列表
220
- s(u, "specInfoDict", new D({})), // 规格值
221
- s(u, "specValueDict", new T({})), // 上架下架
222
- s(u, "shelfDict", new _(a.SHELF_VALUES, {})), // 运费类型
223
- s(u, "freightTypeEnum", new g(
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(
224
248
  a.MODULE_GOODS,
225
249
  a.ENUM_FREIGHT_TYPE
226
250
  )), // 保障服务
227
- s(u, "goodsEnsureDict", new m(a.DICT_GOODS_ENSURE)), // 规格类型
228
- s(u, "specTypeEnum", new g(
251
+ s(i, "goodsEnsureDict", new A(a.DICT_GOODS_ENSURE)), // 规格类型
252
+ s(i, "specTypeEnum", new g(
229
253
  a.MODULE_GOODS,
230
254
  a.ENUM_SPEC_TYPE
231
255
  )), // 商品查询枚举
232
- s(u, "goodsSpuListSortEnum", new g(
256
+ s(i, "goodsSpuListSortEnum", new g(
233
257
  a.MODULE_GOODS,
234
258
  a.ENUM_GOODS_SPU_List_SORT
235
259
  )), // 审核状态
236
- s(u, "approvalStatusEnum", new g(
260
+ s(i, "approvalStatusEnum", new g(
237
261
  a.MODULE_GOODS,
238
262
  a.ENUM_APPROVAL_STATUS
239
263
  )), // 启用禁用
240
- s(u, "enableDict", new _(a.ENABLE_VALUES, {})), // 商品分类
241
- s(u, "goodsCategoryListBizLayDict", new I({}));
264
+ s(i, "enableDict", new _(a.ENABLE_VALUES, {})), // 商品分类
265
+ s(i, "goodsCategoryListBizLayDict", new D({}));
242
266
  export {
243
267
  a as C,
244
- u as D,
245
- T as S,
246
- D as a,
247
- f as g
268
+ i as D,
269
+ N as S,
270
+ T as a,
271
+ I as g
248
272
  };
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as x, ref as V, reactive as S, onActivated as ee, resolveComponent as r, resolveDirective as oe, openBlock as u, createElementBlock as $, createElementVNode as U, createVNode as t, withCtx as l, withKeys as te, unref as n, createTextVNode as p, toDisplayString as c, withDirectives as C, createBlock as w, isRef as T, createCommentVNode as D } from "vue";
2
2
  import { useI18n as le } from "vue-i18n";
3
3
  import { useTableHooks as ae, fileApi as j } from "jmash-core";
4
- import { g as ne, D as re } from "./index-DZJVaUh3.mjs";
5
- import { _ as se } from "./edit.vue_vue_type_script_setup_true_lang-DRAXgRwD.mjs";
4
+ import { g as ne, D as re } from "./index-CmKF2zdn.mjs";
5
+ import { _ as se } from "./edit.vue_vue_type_script_setup_true_lang-BHplO2tN.mjs";
6
6
  const ie = { class: "app-container" }, de = { class: "search-container" }, ue = ["onClick"], me = ["onClick"], ve = /* @__PURE__ */ x({
7
7
  __name: "index",
8
8
  setup(pe) {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as b, ref as S, onMounted as A, resolveComponent as p, openBlock as t, createElementBlock as c, createVNode as V, withCtx as m, Fragment as C, renderList as P, unref as h, createBlock as i, createCommentVNode as y } from "vue";
2
2
  import { useRoute as L } from "vue-router";
3
- import { D as _, C as l } from "./index-DZJVaUh3.mjs";
4
- import { _ as k } from "./goodsList.vue_vue_type_script_setup_true_lang-CWJQd86q.mjs";
3
+ import { D as _, C as l } from "./index-CmKF2zdn.mjs";
4
+ import { _ as k } from "./goodsList.vue_vue_type_script_setup_true_lang-Cd7-ryQA.mjs";
5
5
  const N = { class: "app-container" }, x = /* @__PURE__ */ b({
6
6
  __name: "index",
7
7
  setup(g) {
package/dist/index.mjs CHANGED
@@ -62,7 +62,7 @@ function Ps(e) {
62
62
  let s = e.global.getLocaleMessage("en");
63
63
  s = Tt(s, xs), e.global.setLocaleMessage("zh-cn", t), e.global.setLocaleMessage("en", s);
64
64
  }
65
- const Ns = () => import("./edit-BlnYCDI4.mjs"), Ws = () => import("./info-wrevnU3P.mjs"), Fs = [
65
+ const Ns = () => import("./edit-C80KQhPy.mjs"), Ws = () => import("./info-D6MWRZ1y.mjs"), Fs = [
66
66
  {
67
67
  path: "/rawgoods",
68
68
  component: Ys,
@@ -2806,7 +2806,7 @@ class Ii {
2806
2806
  });
2807
2807
  }
2808
2808
  }
2809
- const Hi = new Ii(), Ui = /* @__PURE__ */ Object.assign({ "./views/goods/goods-category/edit.vue": () => import("./edit-BsaWxeqY.mjs"), "./views/goods/goods-category/index.vue": () => import("./index-Dp9QMOea.mjs"), "./views/goods/goods-spu/edit.vue": () => import("./edit-BlnYCDI4.mjs"), "./views/goods/goods-spu/goodsList.vue": () => import("./goodsList-Dvsh76f7.mjs"), "./views/goods/goods-spu/index.vue": () => import("./index-BF7PDcd4.mjs"), "./views/goods/goods-spu/info.vue": () => import("./info-wrevnU3P.mjs"), "./views/goods/goods-spu/skuForm.vue": () => import("./skuForm-B7yYjwdJ.mjs"), "./views/goods/goods-spu/skuTable.vue": () => import("./skuTable-YDBH_oRN.mjs").then((e) => e.a) }), Ei = {
2809
+ const Hi = new Ii(), Ui = /* @__PURE__ */ Object.assign({ "./views/goods/goods-category/edit.vue": () => import("./edit-E57LIt5x.mjs"), "./views/goods/goods-category/index.vue": () => import("./index-CnyW3rxw.mjs"), "./views/goods/goods-spu/edit.vue": () => import("./edit-C80KQhPy.mjs"), "./views/goods/goods-spu/goodsList.vue": () => import("./goodsList-0TMcPn_Q.mjs"), "./views/goods/goods-spu/index.vue": () => import("./index-nSAowuoJ.mjs"), "./views/goods/goods-spu/info.vue": () => import("./info-D6MWRZ1y.mjs"), "./views/goods/goods-spu/skuForm.vue": () => import("./skuForm-H9IDa7ys.mjs"), "./views/goods/goods-spu/skuTable.vue": () => import("./skuTable-DbNThlFG.mjs").then((e) => e.a) }), Ei = {
2810
2810
  install(e) {
2811
2811
  Os(Ui, 7), Ps(bs), Ts(Fs), e.use(Ci);
2812
2812
  }
@@ -1,14 +1,14 @@
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 r, Fragment as C, renderList as P, createBlock as b, createCommentVNode as w } from "vue";
2
- import { fileApi as B, routerUtil as z } from "jmash-core";
3
- import { useRouter as H, useRoute as O } from "vue-router";
4
- import { D as p, C as N, S as R } from "./index-DZJVaUh3.mjs";
5
- import { s as Y } from "./skuTable-YDBH_oRN.mjs";
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
6
  import { goodsSpuApi as G } from "./index.mjs";
7
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: "cell-item" }, ae = { class: "title-content" }, ie = { class: "cell-item" }, ne = { class: "cell-item" }, ce = { class: "cell-item" }, de = { class: "cell-item" }, re = { class: "cell-item" }, pe = { class: "cell-item" }, me = ["innerHTML"], be = /* @__PURE__ */ q({
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
9
  __name: "info",
10
- setup(_e) {
11
- const U = H(), y = O(), u = k({}), L = k([]), g = k([]), D = k([]), E = k([]), $ = j(() => g.value.filter(
10
+ setup(me) {
11
+ const U = O(), y = R(), u = k({}), I = k([]), g = k([]), E = k([]), D = k([]), $ = j(() => g.value.filter(
12
12
  (s) => s.name && s.specValueList != null && s.specValueList.length
13
13
  ));
14
14
  F(
@@ -18,15 +18,15 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
18
18
  deep: !0,
19
19
  immediate: !0
20
20
  }
21
- ), p.shopInfoBizDict.useValues(), p.goodsCategoryListBizLayDict.useValues(), y.query.spuId && G.findById({ spuId: y.query.spuId }).then(({ data: s }) => {
21
+ ), m.shopInfoBizDict.useValues(), m.goodsCategoryListBizLayDict.useValues(), y.query.spuId && G.findById({ spuId: y.query.spuId }).then(({ data: s }) => {
22
22
  var c, v, o;
23
- u.value = Object.assign(u, s), L.value = (c = s.picUrls) == null ? void 0 : c.split(","), J.findById({ spuId: y.query.spuId }).then(({ data: m }) => {
24
- u.value.ensureIds = m.ensures;
25
- }), s.specType === N.SPEC_TYPE.MULTI_SPEC && (D.value = (v = s.skuList) == null ? void 0 : v.results, (o = s.skuList) == null || o.results.forEach((m) => {
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
26
  var d;
27
- (d = m.specValues) == null || d.map((h) => {
28
- p.specInfoDict.useValues().then((I) => {
29
- const t = I.find((_) => h.specId === _.key);
27
+ (d = r.specValues) == null || d.map((h) => {
28
+ m.specInfoDict.useValues().then((L) => {
29
+ const t = L.find((_) => h.specId === _.key);
30
30
  if (t) {
31
31
  let _ = {
32
32
  id: h.specId,
@@ -45,7 +45,7 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
45
45
  });
46
46
  function A(s) {
47
47
  g.value.forEach((c) => {
48
- E.value = new R({ specId: c.id }), E.value.useValues().then((v) => {
48
+ D.value = new Y({ specId: c.id }), D.value.useValues().then((v) => {
49
49
  v.forEach((o) => {
50
50
  if (o.key === s) {
51
51
  let d = {
@@ -54,21 +54,21 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
54
54
  };
55
55
  c.specValueList.push(d);
56
56
  }
57
- const m = /* @__PURE__ */ new Map();
57
+ const r = /* @__PURE__ */ new Map();
58
58
  c.specValueList = c.specValueList.filter(
59
- (d) => !m.has(d.id) && m.set(d.id, d)
59
+ (d) => !r.has(d.id) && r.set(d.id, d)
60
60
  );
61
61
  });
62
62
  });
63
63
  });
64
64
  }
65
65
  function M() {
66
- z.closeTagView(y.fullPath, U, !1);
66
+ H.closeTagView(y.fullPath, U, !1);
67
67
  }
68
68
  return (s, c) => {
69
- const v = S("el-button"), o = S("el-descriptions-item"), m = S("el-image"), d = S("el-tag"), h = S("el-descriptions"), I = S("el-card");
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
70
  return f(), V("div", K, [
71
- i(I, { shadow: "never" }, {
71
+ i(L, { shadow: "never" }, {
72
72
  header: e(() => [
73
73
  i(v, {
74
74
  type: "primary",
@@ -90,16 +90,7 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
90
90
  default: e(() => [
91
91
  i(o, null, {
92
92
  label: e(() => [
93
- a("div", Q, l(s.$t("goodsSpu.shopId")), 1)
94
- ]),
95
- default: e(() => [
96
- n(" " + l(r(p).shopInfoBizDict.getValue(u.value.shopId)), 1)
97
- ]),
98
- _: 1
99
- }),
100
- i(o, null, {
101
- label: e(() => [
102
- a("div", W, l(s.$t("goodsSpu.spuName")), 1)
93
+ a("div", Q, l(s.$t("goodsSpu.spuName")), 1)
103
94
  ]),
104
95
  default: e(() => [
105
96
  n(" " + l(u.value.spuName), 1)
@@ -108,16 +99,18 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
108
99
  }),
109
100
  i(o, null, {
110
101
  label: e(() => [
111
- a("div", X, l(s.$t("goodsSpu.categoryId")), 1)
102
+ a("div", W, l(s.$t("goodsSpu.categoryId")), 1)
112
103
  ]),
113
104
  default: e(() => [
114
- n(" " + l(r(p).goodsCategoryListBizLayDict.getValue(u.value.categoryId)), 1)
105
+ n(" " + l(p(m).goodsCategoryListBizLayDict.getValue(
106
+ u.value.categoryId
107
+ )), 1)
115
108
  ]),
116
109
  _: 1
117
110
  }),
118
111
  i(o, null, {
119
112
  label: e(() => [
120
- a("div", Z, l(s.$t("goodsSpu.spuCode")), 1)
113
+ a("div", X, l(s.$t("goodsSpu.spuCode")), 1)
121
114
  ]),
122
115
  default: e(() => [
123
116
  n(" " + l(u.value.spuCode), 1)
@@ -126,10 +119,10 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
126
119
  }),
127
120
  i(o, null, {
128
121
  label: e(() => [
129
- a("div", x, l(s.$t("goodsSpu.freightType")), 1)
122
+ a("div", Z, l(s.$t("goodsSpu.freightType")), 1)
130
123
  ]),
131
124
  default: e(() => [
132
- n(" " + l(r(p).freightTypeEnum.getEnumValue(
125
+ n(" " + l(p(m).freightTypeEnum.getEnumValue(
133
126
  u.value.freightType
134
127
  )), 1)
135
128
  ]),
@@ -137,7 +130,7 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
137
130
  }),
138
131
  i(o, null, {
139
132
  label: e(() => [
140
- a("div", ee, l(s.$t("goodsSpu.freightAmount")), 1)
133
+ a("div", x, l(s.$t("goodsSpu.freightAmount")), 1)
141
134
  ]),
142
135
  default: e(() => [
143
136
  n(" " + l(u.value.freightAmount), 1)
@@ -146,13 +139,13 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
146
139
  }),
147
140
  i(o, null, {
148
141
  label: e(() => [
149
- a("div", le, l(s.$t("goodsSpu.picUrls")), 1)
142
+ a("div", ee, l(s.$t("goodsSpu.picUrls")), 1)
150
143
  ]),
151
144
  default: e(() => [
152
- (f(!0), V(C, null, P(L.value, (t) => (f(), b(m, {
145
+ (f(!0), V(C, null, P(I.value, (t) => (f(), b(r, {
153
146
  key: t,
154
- src: r(B).imageUrl(t, 80, 80),
155
- "preview-src-list": [r(B).imageUrl(t)],
147
+ src: p(B).imageUrl(t, 80, 80),
148
+ "preview-src-list": [p(B).imageUrl(t)],
156
149
  "preview-teleported": "",
157
150
  "hide-on-click-modal": "",
158
151
  fit: "contain"
@@ -162,16 +155,16 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
162
155
  }),
163
156
  i(o, null, {
164
157
  label: e(() => [
165
- a("div", se, l(s.$t("goodsSpu.shelf")), 1)
158
+ a("div", le, l(s.$t("goodsSpu.shelf")), 1)
166
159
  ]),
167
160
  default: e(() => [
168
- n(" " + l(r(p).shelfDict.getValue(u.value.shelf)), 1)
161
+ n(" " + l(p(m).shelfDict.getValue(u.value.shelf)), 1)
169
162
  ]),
170
163
  _: 1
171
164
  }),
172
165
  i(o, null, {
173
166
  label: e(() => [
174
- a("div", te, l(s.$t("goodsSpu.saleNum")), 1)
167
+ a("div", se, l(s.$t("goodsSpu.saleNum")), 1)
175
168
  ]),
176
169
  default: e(() => [
177
170
  n(" " + l(u.value.saleNum), 1)
@@ -180,7 +173,7 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
180
173
  }),
181
174
  i(o, null, {
182
175
  label: e(() => [
183
- a("div", oe, l(s.$t("goodsSpu.sellPoint")), 1)
176
+ a("div", te, l(s.$t("goodsSpu.sellPoint")), 1)
184
177
  ]),
185
178
  default: e(() => [
186
179
  n(" " + l(u.value.sellPoint), 1)
@@ -189,7 +182,7 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
189
182
  }),
190
183
  i(o, null, {
191
184
  label: e(() => [
192
- a("div", ue, l(s.$t("goodsSpu.ensureIds")), 1)
185
+ a("div", oe, l(s.$t("goodsSpu.ensureIds")), 1)
193
186
  ]),
194
187
  default: e(() => [
195
188
  (f(!0), V(C, null, P(u.value.ensureIds, (t) => (f(), b(d, {
@@ -197,7 +190,7 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
197
190
  key: t
198
191
  }, {
199
192
  default: e(() => [
200
- n(l(r(p).goodsEnsureDict.getDictValue(t)), 1)
193
+ n(l(p(m).goodsEnsureDict.getDictValue(t)), 1)
201
194
  ]),
202
195
  _: 2
203
196
  }, 1024))), 128))
@@ -207,8 +200,8 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
207
200
  ]),
208
201
  _: 1
209
202
  }),
210
- a("div", ae, " 商品规格(" + l(r(p).specTypeEnum.getEnumValue(u.value.specType)) + ") ", 1),
211
- u.value.specType == r(N).SPEC_TYPE.UNIFIED_SPEC ? (f(), b(h, {
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, {
212
205
  key: 0,
213
206
  class: "margin-top",
214
207
  column: 2,
@@ -217,7 +210,7 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
217
210
  default: e(() => [
218
211
  i(o, null, {
219
212
  label: e(() => [
220
- a("div", ie, l(s.$t("goodsSpu.salePrice")), 1)
213
+ a("div", ae, l(s.$t("goodsSpu.salePrice")), 1)
221
214
  ]),
222
215
  default: e(() => {
223
216
  var t;
@@ -229,7 +222,7 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
229
222
  }),
230
223
  i(o, null, {
231
224
  label: e(() => [
232
- a("div", ne, l(s.$t("goodsSpu.marketPrice")), 1)
225
+ a("div", ie, l(s.$t("goodsSpu.marketPrice")), 1)
233
226
  ]),
234
227
  default: e(() => {
235
228
  var t;
@@ -241,7 +234,7 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
241
234
  }),
242
235
  i(o, null, {
243
236
  label: e(() => [
244
- a("div", ce, l(s.$t("goodsSpu.costPrice")), 1)
237
+ a("div", ne, l(s.$t("goodsSpu.costPrice")), 1)
245
238
  ]),
246
239
  default: e(() => {
247
240
  var t;
@@ -253,7 +246,7 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
253
246
  }),
254
247
  i(o, null, {
255
248
  label: e(() => [
256
- a("div", de, l(s.$t("goodsSpu.stock")), 1)
249
+ a("div", ce, l(s.$t("goodsSpu.stock")), 1)
257
250
  ]),
258
251
  default: e(() => {
259
252
  var t;
@@ -265,7 +258,7 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
265
258
  }),
266
259
  i(o, null, {
267
260
  label: e(() => [
268
- a("div", re, l(s.$t("goodsSpu.weight")), 1)
261
+ a("div", de, l(s.$t("goodsSpu.weight")), 1)
269
262
  ]),
270
263
  default: e(() => {
271
264
  var t;
@@ -277,7 +270,7 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
277
270
  }),
278
271
  i(o, null, {
279
272
  label: e(() => [
280
- a("div", pe, l(s.$t("goodsSpu.volume")), 1)
273
+ a("div", re, l(s.$t("goodsSpu.volume")), 1)
281
274
  ]),
282
275
  default: e(() => {
283
276
  var t;
@@ -290,16 +283,16 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
290
283
  ]),
291
284
  _: 1
292
285
  })) : w("", !0),
293
- g.value.length > 0 ? (f(), b(Y, {
286
+ g.value.length > 0 ? (f(), b(z, {
294
287
  key: 1,
295
288
  specData: $.value,
296
- goodsSku: D.value,
289
+ goodsSku: E.value,
297
290
  isSettingShow: !1
298
291
  }, null, 8, ["specData", "goodsSku"])) : w("", !0),
299
292
  c[1] || (c[1] = a("div", { class: "title-content" }, "商品描述", -1)),
300
293
  a("div", {
301
294
  innerHTML: u.value.description
302
- }, null, 8, me)
295
+ }, null, 8, pe)
303
296
  ]),
304
297
  _: 1,
305
298
  __: [0, 1]
@@ -309,5 +302,5 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
309
302
  }
310
303
  });
311
304
  export {
312
- be as default
305
+ ye as default
313
306
  };