xyvcard-goods 0.0.27 → 0.0.29

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 (34) hide show
  1. package/dist/{ImageUpload-BMw9FVJL.mjs → ImageUpload-Dk6GY6PA.mjs} +2 -2
  2. package/dist/{edit-C6CESv8X.mjs → edit-1TXe_HC2.mjs} +24 -31
  3. package/dist/{edit-DmT9V-gh.mjs → edit-BDHYnZTL.mjs} +1 -1
  4. package/dist/{edit-CvY-V0N5.mjs → edit-Br1EAlBd.mjs} +86 -83
  5. package/dist/{edit-CwYGsVHI.mjs → edit-BzOoP1MM.mjs} +6 -6
  6. package/dist/{edit-CuYE3fHS.mjs → edit-C0U9Ge6U.mjs} +10 -10
  7. package/dist/{edit.vue_vue_type_script_setup_true_lang-DfFKgB6q.mjs → edit.vue_vue_type_script_setup_true_lang-BmH1D2Ce.mjs} +75 -77
  8. package/dist/index-BreCG7fL.mjs +562 -0
  9. package/dist/{index-szFiZJnI.mjs → index-ClnNQkIp.mjs} +1 -1
  10. package/dist/{index-D7Zknkay.mjs → index-D3Q39K5l.mjs} +63 -65
  11. package/dist/{index-0g53MREL.mjs → index-DYo45BS3.mjs} +35 -40
  12. package/dist/index-DwDXNfWH.mjs +644 -0
  13. package/dist/{index-CXtRrzoC.mjs → index-GWE4OrXj.mjs} +1882 -2005
  14. package/dist/{index-CXEbqy-N.mjs → index-RBIPJ3PM.mjs} +90 -95
  15. package/dist/{index-B0qodJxZ.mjs → index-rRbEKDlL.mjs} +53 -46
  16. package/dist/index.mjs +1 -1
  17. package/dist/info-DjDT9TId.mjs +349 -0
  18. package/dist/{info-Bn5lfzNP.mjs → info-Dji-jSuw.mjs} +4 -4
  19. package/dist/{skuForm-DF02pgox.mjs → skuForm-9X82lvcF.mjs} +65 -67
  20. package/dist/{skuForm-EQVH7pCG.mjs → skuForm-BzxL1_v6.mjs} +6 -6
  21. package/dist/{skuTable-DWpm1OMq.mjs → skuTable-RIQUU_Bl.mjs} +4 -4
  22. package/dist/style.css +1 -1
  23. package/dts/api/goods-spu/types.d.ts +3 -0
  24. package/dts/api/index.d.ts +1 -0
  25. package/dts/constant.d.ts +10 -0
  26. package/dts/views/goods/goods-combination/skuTable.vue.d.ts +40 -0
  27. package/package.json +62 -62
  28. package/dist/goodsList-Bj9pZI5X.mjs +0 -4
  29. package/dist/goodsList-v98w-P_d.mjs +0 -4
  30. package/dist/goodsList.vue_vue_type_script_setup_true_lang-BsItIhFh.mjs +0 -714
  31. package/dist/goodsList.vue_vue_type_script_setup_true_lang-QHlAuCT3.mjs +0 -565
  32. package/dist/index-BrR_OdFN.mjs +0 -55
  33. package/dist/index-DWtdS9Gu.mjs +0 -53
  34. package/dist/info-PRjY0AD1.mjs +0 -331
@@ -1,13 +1,13 @@
1
- import { defineComponent as x, ref as V, reactive as S, onActivated as ee, resolveComponent as r, resolveDirective as oe, createElementBlock as $, openBlock as u, createElementVNode as U, createVNode as t, createBlock as C, createCommentVNode as T, withCtx as l, withKeys as te, unref as n, createTextVNode as p, toDisplayString as c, withDirectives as w, isRef as D } from "vue";
1
+ import { defineComponent as x, ref as $, reactive as S, onActivated as ee, resolveComponent as r, resolveDirective as oe, openBlock as d, createElementBlock as w, createElementVNode as U, createVNode as l, withCtx as t, withKeys as te, unref as n, createTextVNode as p, toDisplayString as c, withDirectives as k, createBlock as _, 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 { D as ne } from "./index-B0qodJxZ.mjs";
5
- import { g as re } from "./index-CXtRrzoC.mjs";
6
- import { _ as se } from "./edit.vue_vue_type_script_setup_true_lang-DfFKgB6q.mjs";
7
- const ie = { class: "app-container" }, de = { class: "search-container" }, ue = ["onClick"], me = ["onClick"], be = /* @__PURE__ */ x({
4
+ import { D as ne } from "./index-rRbEKDlL.mjs";
5
+ import { g as re } from "./index-GWE4OrXj.mjs";
6
+ import { _ as se } from "./edit.vue_vue_type_script_setup_true_lang-BmH1D2Ce.mjs";
7
+ const ie = { class: "app-container" }, de = { class: "search-container" }, ue = { key: 1 }, me = ["onClick"], pe = ["onClick"], Ce = /* @__PURE__ */ x({
8
8
  __name: "index",
9
- setup(pe) {
10
- const { t: _ } = le(), i = V({
9
+ setup(ce) {
10
+ const { t: y } = le(), i = $({
11
11
  curPage: 1,
12
12
  pageSize: 10
13
13
  }), {
@@ -16,19 +16,19 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
16
16
  queryFormRef: P,
17
17
  listLoading: B,
18
18
  tableData: q,
19
- total: y
20
- } = ae(_, re, i);
21
- let g = V([
19
+ total: v
20
+ } = ae(y, re, i);
21
+ let g = $([
22
22
  {
23
23
  label: "goodsCategory.categoryName",
24
24
  prop: "categoryName",
25
- width: "200",
25
+ minWidth: "200",
26
26
  isColumn: !0
27
27
  },
28
28
  {
29
29
  label: "goodsCategory.categoryCode",
30
30
  prop: "categoryCode",
31
- width: "200",
31
+ minWidth: "200",
32
32
  isColumn: !0
33
33
  },
34
34
  {
@@ -40,13 +40,7 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
40
40
  isColumn: !0
41
41
  },
42
42
  {
43
- label: "goodsCategory.description",
44
- prop: "description",
45
- minWidth: "200",
46
- isColumn: !0
47
- },
48
- {
49
- label: "goodsCategory.status",
43
+ label: "goodsSpu.shelf",
50
44
  prop: "status",
51
45
  slotName: "status",
52
46
  columnType: "slot",
@@ -69,16 +63,16 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
69
63
  isColumn: !0
70
64
  }
71
65
  ]);
72
- const d = V({
73
- title: _("common.edit"),
66
+ const u = $({
67
+ title: y("common.edit"),
74
68
  visible: !1
75
69
  });
76
70
  let h = S({});
77
71
  function L() {
78
- h = S({}), d.value.title = _("common.add"), d.value.visible = !0;
72
+ h = S({}), u.value.title = y("common.add"), u.value.visible = !0;
79
73
  }
80
74
  function A(a) {
81
- h = { ...a }, d.value.title = _("common.edit"), d.value.visible = !0;
75
+ h = { ...a }, u.value.title = y("common.edit"), u.value.visible = !0;
82
76
  }
83
77
  function E(a) {
84
78
  s.selectionRows.value = a;
@@ -92,26 +86,26 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
92
86
  return ee(() => {
93
87
  s.getList();
94
88
  }), (a, o) => {
95
- const F = r("el-input"), k = r("el-form-item"), f = r("el-col"), H = r("jmash-select"), v = r("el-button"), N = r("el-row"), I = r("el-form"), M = r("jmash-column-select"), O = r("el-image"), W = r("el-switch"), G = r("Bottom"), R = r("el-icon"), J = r("Top"), X = r("jmash-table"), Y = r("jmash-pagination"), Z = r("el-card"), b = oe("hasPerm");
96
- return u(), $("div", ie, [
89
+ const F = r("el-input"), V = r("el-form-item"), f = r("el-col"), H = r("jmash-select"), b = r("el-button"), N = r("el-row"), I = r("el-form"), M = r("jmash-column-select"), O = r("el-image"), W = r("el-switch"), G = r("Bottom"), R = r("el-icon"), J = r("Top"), X = r("jmash-table"), Y = r("jmash-pagination"), Z = r("el-card"), C = oe("hasPerm");
90
+ return d(), w("div", ie, [
97
91
  U("div", de, [
98
- t(I, {
92
+ l(I, {
99
93
  ref_key: "queryFormRef",
100
94
  ref: P,
101
95
  model: i.value,
102
96
  inline: !0
103
97
  }, {
104
- default: l(() => [
105
- t(N, null, {
106
- default: l(() => [
107
- t(f, { span: 6 }, {
108
- default: l(() => [
109
- t(k, {
98
+ default: t(() => [
99
+ l(N, null, {
100
+ default: t(() => [
101
+ l(f, { span: 6 }, {
102
+ default: t(() => [
103
+ l(V, {
110
104
  label: a.$t("goodsCategory.categoryName"),
111
105
  prop: "likeCategoryName"
112
106
  }, {
113
- default: l(() => [
114
- t(F, {
107
+ default: t(() => [
108
+ l(F, {
115
109
  modelValue: i.value.likeCategoryName,
116
110
  "onUpdate:modelValue": o[0] || (o[0] = (e) => i.value.likeCategoryName = e),
117
111
  placeholder: a.$t("goodsCategory.categoryNameRequired"),
@@ -125,14 +119,14 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
125
119
  ]),
126
120
  _: 1
127
121
  }),
128
- t(f, { span: 6 }, {
129
- default: l(() => [
130
- t(k, {
122
+ l(f, { span: 6 }, {
123
+ default: t(() => [
124
+ l(V, {
131
125
  label: a.$t("goodsCategory.status"),
132
126
  prop: "status"
133
127
  }, {
134
- default: l(() => [
135
- t(H, {
128
+ default: t(() => [
129
+ l(H, {
136
130
  modelValue: i.value.status,
137
131
  "onUpdate:modelValue": o[2] || (o[2] = (e) => i.value.status = e),
138
132
  placeholder: a.$t("goodsCategory.statusRequired"),
@@ -145,23 +139,23 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
145
139
  ]),
146
140
  _: 1
147
141
  }),
148
- t(f, { span: 12 }, {
149
- default: l(() => [
150
- t(k, { class: "search-btn" }, {
151
- default: l(() => [
152
- t(v, {
142
+ l(f, { span: 12 }, {
143
+ default: t(() => [
144
+ l(V, { class: "search-btn" }, {
145
+ default: t(() => [
146
+ l(b, {
153
147
  type: "primary",
154
148
  onClick: o[3] || (o[3] = (e) => n(s).handleQuery())
155
149
  }, {
156
- default: l(() => [
150
+ default: t(() => [
157
151
  p(c(a.$t("common.search")), 1)
158
152
  ]),
159
153
  _: 1
160
154
  }),
161
- t(v, {
155
+ l(b, {
162
156
  onClick: o[4] || (o[4] = (e) => n(s).resetQuery())
163
157
  }, {
164
- default: l(() => [
158
+ default: t(() => [
165
159
  p(c(a.$t("common.reset")), 1)
166
160
  ]),
167
161
  _: 1
@@ -180,48 +174,48 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
180
174
  }, 8, ["model"]),
181
175
  o[12] || (o[12] = U("div", { class: "clear" }, null, -1))
182
176
  ]),
183
- t(Z, {
177
+ l(Z, {
184
178
  shadow: "never",
185
179
  class: "table-container"
186
180
  }, {
187
- header: l(() => [
188
- t(N, null, {
189
- default: l(() => [
190
- t(f, { span: 17 }, {
191
- default: l(() => [
192
- w((u(), C(v, {
181
+ header: t(() => [
182
+ l(N, null, {
183
+ default: t(() => [
184
+ l(f, { span: 17 }, {
185
+ default: t(() => [
186
+ k((d(), _(b, {
193
187
  type: "primary",
194
188
  onClick: L
195
189
  }, {
196
- default: l(() => [
190
+ default: t(() => [
197
191
  p(c(a.$t("common.add")), 1)
198
192
  ]),
199
193
  _: 1
200
194
  })), [
201
- [b, ["goods:goods_category:add"]]
195
+ [C, ["goods:goods_category:add"]]
202
196
  ]),
203
- w((u(), C(v, {
197
+ k((d(), _(b, {
204
198
  type: "primary",
205
199
  onClick: o[5] || (o[5] = (e) => n(s).deleteRecords())
206
200
  }, {
207
- default: l(() => [
201
+ default: t(() => [
208
202
  p(c(a.$t("common.batchDelete")), 1)
209
203
  ]),
210
204
  _: 1
211
205
  })), [
212
- [b, ["goods:goods_category:delete"]]
206
+ [C, ["goods:goods_category:delete"]]
213
207
  ])
214
208
  ]),
215
209
  _: 1
216
210
  }),
217
- t(f, {
211
+ l(f, {
218
212
  span: 7,
219
213
  class: "container-float"
220
214
  }, {
221
- default: l(() => [
222
- t(M, {
215
+ default: t(() => [
216
+ l(M, {
223
217
  modelValue: n(g),
224
- "onUpdate:modelValue": o[6] || (o[6] = (e) => D(g) ? g.value = e : g = e),
218
+ "onUpdate:modelValue": o[6] || (o[6] = (e) => T(g) ? g.value = e : g = e),
225
219
  "label-name": "goods/goods-spu"
226
220
  }, null, 8, ["modelValue"])
227
221
  ]),
@@ -231,20 +225,20 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
231
225
  _: 1
232
226
  })
233
227
  ]),
234
- footer: l(() => [
235
- n(y) > 0 ? (u(), C(Y, {
228
+ footer: t(() => [
229
+ n(v) > 0 ? (d(), _(Y, {
236
230
  key: 0,
237
- total: n(y),
238
- "onUpdate:total": o[7] || (o[7] = (e) => D(y) ? y.value = e : null),
231
+ total: n(v),
232
+ "onUpdate:total": o[7] || (o[7] = (e) => T(v) ? v.value = e : null),
239
233
  "current-page": i.value.curPage,
240
234
  "onUpdate:currentPage": o[8] || (o[8] = (e) => i.value.curPage = e),
241
235
  "page-size": i.value.pageSize,
242
236
  "onUpdate:pageSize": o[9] || (o[9] = (e) => i.value.pageSize = e),
243
237
  onPagination: o[10] || (o[10] = (e) => n(s).getList())
244
- }, null, 8, ["total", "current-page", "page-size"])) : T("", !0)
238
+ }, null, 8, ["total", "current-page", "page-size"])) : D("", !0)
245
239
  ]),
246
- default: l(() => [
247
- t(X, {
240
+ default: t(() => [
241
+ l(X, {
248
242
  ref_key: "multipleTableRef",
249
243
  ref: z,
250
244
  "row-key": "categoryId",
@@ -254,60 +248,61 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
254
248
  onSelectionChange: E,
255
249
  onSortChange: K
256
250
  }, {
257
- picUrl: l((e) => [
258
- t(O, {
251
+ picUrl: t((e) => [
252
+ e.data.row.picUrl ? (d(), _(O, {
253
+ key: 0,
259
254
  src: n(j).imageUrl(e.data.row.picUrl, 0, 0),
260
255
  "preview-src-list": [n(j).imageUrl(e.data.row.picUrl)],
261
256
  "preview-teleported": "",
262
257
  "hide-on-click-modal": "",
263
258
  fit: "contain"
264
- }, null, 8, ["src", "preview-src-list"])
259
+ }, null, 8, ["src", "preview-src-list"])) : (d(), w("span", ue, "-"))
265
260
  ]),
266
- status: l((e) => [
261
+ status: t((e) => [
267
262
  U("span", null, [
268
- t(W, {
263
+ l(W, {
269
264
  modelValue: e.data.row.status,
270
265
  "onUpdate:modelValue": (m) => e.data.row.status = m,
271
266
  onChange: (m) => n(s).enableRecord(e.data.row, e.data.row.status)
272
267
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
273
268
  ])
274
269
  ]),
275
- listOrder: l((e) => [
276
- t(R, {
270
+ listOrder: t((e) => [
271
+ l(R, {
277
272
  size: "16",
278
273
  onClick: (m) => n(s).handleMove(e.data.row, !1)
279
274
  }, {
280
- default: l(() => [
281
- t(G)
275
+ default: t(() => [
276
+ l(G)
282
277
  ]),
283
278
  _: 2
284
279
  }, 1032, ["onClick"]),
285
- t(R, {
280
+ l(R, {
286
281
  size: "16",
287
282
  onClick: (m) => n(s).handleMove(e.data.row, !0)
288
283
  }, {
289
- default: l(() => [
290
- t(J)
284
+ default: t(() => [
285
+ l(J)
291
286
  ]),
292
287
  _: 2
293
288
  }, 1032, ["onClick"])
294
289
  ]),
295
- operation: l((e) => [
296
- w((u(), $("span", {
290
+ operation: t((e) => [
291
+ k((d(), w("span", {
297
292
  class: "el-button-color",
298
293
  onClick: (m) => A(e.data.row)
299
294
  }, [
300
295
  p(c(a.$t("common.edit")), 1)
301
- ], 8, ue)), [
302
- [b, ["goods:goods_category:update"]]
296
+ ], 8, me)), [
297
+ [C, ["goods:goods_category:update"]]
303
298
  ]),
304
- w((u(), $("span", {
299
+ k((d(), w("span", {
305
300
  class: "el-button-color dropdown-left",
306
301
  onClick: (m) => n(s).deleteRecord(e.data.row)
307
302
  }, [
308
303
  p(c(a.$t("common.delete")), 1)
309
- ], 8, me)), [
310
- [b, ["goods:goods_category:delete"]]
304
+ ], 8, pe)), [
305
+ [C, ["goods:goods_category:delete"]]
311
306
  ])
312
307
  ]),
313
308
  _: 1
@@ -315,19 +310,19 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
315
310
  ]),
316
311
  _: 1
317
312
  }),
318
- d.value.visible ? (u(), C(se, {
313
+ u.value.visible ? (d(), _(se, {
319
314
  key: 0,
320
- modelValue: d.value.visible,
321
- "onUpdate:modelValue": o[11] || (o[11] = (e) => d.value.visible = e),
322
- title: d.value.title,
315
+ modelValue: u.value.visible,
316
+ "onUpdate:modelValue": o[11] || (o[11] = (e) => u.value.visible = e),
317
+ title: u.value.title,
323
318
  "entity-key": n(h),
324
319
  onRefresh: Q,
325
320
  width: "600px"
326
- }, null, 8, ["modelValue", "title", "entity-key"])) : T("", !0)
321
+ }, null, 8, ["modelValue", "title", "entity-key"])) : D("", !0)
327
322
  ]);
328
323
  };
329
324
  }
330
325
  });
331
326
  export {
332
- be as default
327
+ Ce as default
333
328
  };
@@ -1,12 +1,12 @@
1
1
  var S = Object.defineProperty;
2
2
  var E = (u, e, t) => e in u ? S(u, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : u[e] = t;
3
3
  var s = (u, e, t) => E(u, typeof e != "symbol" ? e + "" : e, t);
4
- import { BizDict as o, BizLayDict as L, EnumDict as n } from "jmash-core";
4
+ import { BizDict as c, BizLayDict as _, EnumDict as n } from "jmash-core";
5
5
  import { EntryDict as v } from "jmash-dict";
6
- import { ref as h, reactive as _ } from "vue";
6
+ import { ref as h, reactive as L } from "vue";
7
7
  import { specValueApi as y, infoApi as P, specInfoApi as A } from "xyvcard-shop";
8
- import { g as O, b as f, a as g } from "./index-CXtRrzoC.mjs";
9
- import { g as m } from "./index-szFiZJnI.mjs";
8
+ import { g as O, b as g, a as f } from "./index-GWE4OrXj.mjs";
9
+ import { g as m } from "./index-ClnNQkIp.mjs";
10
10
  class a {
11
11
  }
12
12
  // 模块
@@ -24,7 +24,13 @@ s(a, "SHELF_VALUES", h([
24
24
  s(a, "ENUM_FREIGHT_TYPE", "xyvcard.goods.protobuf.FreightType"), // 保障服务
25
25
  s(a, "DICT_GOODS_ENSURE", "goods_ensure"), // 规格类型
26
26
  s(a, "ENUM_SPEC_TYPE", "xyvcard.goods.protobuf.SpecType"), // 商品查询枚举
27
- s(a, "ENUM_GOODS_SPU_List_SORT", "xyvcard.goods.protobuf.GoodsSpuListSort"), // 审核状态
27
+ s(a, "ENUM_GOODS_SPU_List_SORT", "xyvcard.goods.protobuf.GoodsSpuListSort"), s(a, "GOODS_SPU_VALUES", h([
28
+ { key: "goods_all", value: "全部商品" },
29
+ { key: "goods_sale", value: "已上架" },
30
+ { key: "goods_shelf", value: "待上架" },
31
+ { key: "goods_audit", value: "审核中" },
32
+ { key: "goods_notpass", value: "审核驳回" }
33
+ ])), // 审核状态
28
34
  s(a, "ENUM_APPROVAL_STATUS", "xyvcard.goods.protobuf.ApprovalStatus"), // 审核状态常量
29
35
  s(a, "APPROVAL_NOT_PASS", "APPROVAL_NOT_PASS"), s(a, "APPROVAL_PASS", "APPROVAL_PASS"), s(a, "APPROVALING", "APPROVALING"), // 启用禁用
30
36
  s(a, "ENABLE_VALUES", h([
@@ -48,7 +54,7 @@ function d(u, e, t) {
48
54
  }
49
55
  class p {
50
56
  constructor(e, t) {
51
- s(this, "values", _([]));
57
+ s(this, "values", L([]));
52
58
  // 查询条件
53
59
  s(this, "query");
54
60
  this.values.length = 0, this.values.push(...e.value), this.query = t;
@@ -61,12 +67,12 @@ class p {
61
67
  return "";
62
68
  }
63
69
  }
64
- class D extends o {
70
+ class U extends c {
65
71
  // 实现 useValues 方法
66
72
  useValues() {
67
73
  return new Promise((e, t) => {
68
- P.findList(this.query).then(({ data: l }) => {
69
- const r = l.results;
74
+ P.findList(this.query).then(({ data: o }) => {
75
+ const r = o.results;
70
76
  this.values.length = 0, this.values.push(
71
77
  ...r.map(
72
78
  (i) => ({
@@ -79,22 +85,22 @@ class D extends o {
79
85
  });
80
86
  }
81
87
  }
82
- class U extends L {
88
+ class D extends _ {
83
89
  // 实现 useValues 方法
84
90
  useValues() {
85
91
  return new Promise((e, t) => {
86
- O.findTreeListApi(this.query).then(({ data: l }) => {
87
- this.values.length = 0, this.values.push(...d(l.results, "label", "value")), e(this.values);
92
+ O.findTreeListApi(this.query).then(({ data: o }) => {
93
+ this.values.length = 0, this.values.push(...d(o.results, "label", "value")), e(this.values);
88
94
  }).catch(t);
89
95
  });
90
96
  }
91
97
  }
92
- class I extends o {
98
+ class I extends c {
93
99
  // 实现 useValues 方法
94
100
  useValues() {
95
101
  return new Promise((e, t) => {
96
- A.findList(this.query).then(({ data: l }) => {
97
- const r = l.results;
102
+ A.findList(this.query).then(({ data: o }) => {
103
+ const r = o.results;
98
104
  this.values.length = 0, this.values.push(
99
105
  ...r.map(
100
106
  (i) => ({
@@ -108,12 +114,12 @@ class I extends o {
108
114
  });
109
115
  }
110
116
  }
111
- class N extends o {
117
+ class V extends c {
112
118
  // 实现 useValues 方法
113
119
  useValues() {
114
120
  return new Promise((e, t) => {
115
- y.findList(this.query).then(({ data: l }) => {
116
- const r = l.results;
121
+ y.findList(this.query).then(({ data: o }) => {
122
+ const r = o.results;
117
123
  this.values.length = 0, this.values.push(
118
124
  ...r.map(
119
125
  (i) => ({
@@ -126,12 +132,12 @@ class N extends o {
126
132
  });
127
133
  }
128
134
  }
129
- class T extends o {
135
+ class N extends c {
130
136
  // 实现 useValues 方法
131
137
  useValues() {
132
138
  return new Promise((e, t) => {
133
- m.findList(this.query).then(({ data: l }) => {
134
- const r = l.results;
139
+ m.findList(this.query).then(({ data: o }) => {
140
+ const r = o.results;
135
141
  this.values.length = 0, this.values.push(
136
142
  ...r.map(
137
143
  (i) => ({
@@ -144,12 +150,12 @@ class T extends o {
144
150
  });
145
151
  }
146
152
  }
147
- class V extends o {
153
+ class T extends c {
148
154
  // 实现 useValues 方法
149
155
  useValues() {
150
156
  return new Promise((e, t) => {
151
- f.findList(this.query).then(({ data: l }) => {
152
- const r = l.results;
157
+ g.findList(this.query).then(({ data: o }) => {
158
+ const r = o.results;
153
159
  this.values.length = 0, this.values.push(
154
160
  ...r.map(
155
161
  (i) => ({
@@ -162,12 +168,12 @@ class V extends o {
162
168
  });
163
169
  }
164
170
  }
165
- class w extends o {
171
+ class w extends c {
166
172
  // 实现 useValues 方法
167
173
  useValues() {
168
174
  return new Promise((e, t) => {
169
- g.findList(this.query).then(({ data: l }) => {
170
- const r = l.results;
175
+ f.findList(this.query).then(({ data: o }) => {
176
+ const r = o.results;
171
177
  this.values.length = 0, this.values.push(
172
178
  ...r.map(
173
179
  (i) => ({
@@ -180,42 +186,43 @@ class w extends o {
180
186
  });
181
187
  }
182
188
  }
183
- class c {
189
+ class l {
184
190
  }
185
191
  // 店铺列表
186
- s(c, "shopInfoBizDict", new D({})), // 商品分类
187
- // static readonly goodsCategoryDict = new GoodsCategoryBizLayDict({});
188
- // 规格列表
189
- s(c, "specInfoDict", new I({})), // 规格值
190
- s(c, "specValueDict", new N({})), // 上架下架
191
- s(c, "shelfDict", new p(a.SHELF_VALUES, {})), // 运费类型
192
- s(c, "freightTypeEnum", new n(
192
+ s(l, "shopInfoBizDict", new U({})), // 规格列表
193
+ s(l, "specInfoDict", new I({})), // 规格值
194
+ s(l, "specValueDict", new V({})), // 上架下架
195
+ s(l, "shelfDict", new p(a.SHELF_VALUES, {})), // 运费类型
196
+ s(l, "freightTypeEnum", new n(
193
197
  a.MODULE_GOODS,
194
198
  a.ENUM_FREIGHT_TYPE
195
199
  )), // 保障服务
196
- s(c, "goodsEnsureDict", new v(a.DICT_GOODS_ENSURE)), // 规格类型
197
- s(c, "specTypeEnum", new n(
200
+ s(l, "goodsEnsureDict", new v(a.DICT_GOODS_ENSURE)), // 规格类型
201
+ s(l, "specTypeEnum", new n(
198
202
  a.MODULE_GOODS,
199
203
  a.ENUM_SPEC_TYPE
200
204
  )), // 商品查询枚举
201
- s(c, "goodsSpuListSortEnum", new n(
205
+ s(l, "goodsSpuListSortEnum", new n(
202
206
  a.MODULE_GOODS,
203
207
  a.ENUM_GOODS_SPU_List_SORT
208
+ )), s(l, "goodsSpuListSortDict", new p(
209
+ a.GOODS_SPU_VALUES,
210
+ {}
204
211
  )), // 审核状态
205
- s(c, "approvalStatusEnum", new n(
212
+ s(l, "approvalStatusEnum", new n(
206
213
  a.MODULE_GOODS,
207
214
  a.ENUM_APPROVAL_STATUS
208
215
  )), // 启用禁用
209
- s(c, "enableDict", new p(a.ENABLE_VALUES, {})), // 商品分类
210
- s(c, "goodsCategoryListBizLayDict", new U(
216
+ s(l, "enableDict", new p(a.ENABLE_VALUES, {})), // 商品分类
217
+ s(l, "goodsCategoryListBizLayDict", new D(
211
218
  {}
212
219
  )), // 品牌列表
213
- s(c, "brandListBizDict", new T({})), // 标签列表
214
- s(c, "labelListBizDict", new V({})), // 商品列表
215
- s(c, "goodsSpuBizDict", new w({}));
220
+ s(l, "brandListBizDict", new N({})), // 标签列表
221
+ s(l, "labelListBizDict", new T({})), // 商品列表
222
+ s(l, "goodsSpuBizDict", new w({}));
216
223
  export {
217
224
  a as C,
218
- c as D,
219
- N as S,
225
+ l as D,
226
+ V as S,
220
227
  I as a
221
228
  };
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import "jmash-core";
2
- import { c as p, g, b as d, a as e } from "./index-CXtRrzoC.mjs";
2
+ import { c as p, g, b as d, a as e } from "./index-GWE4OrXj.mjs";
3
3
  export {
4
4
  p as default,
5
5
  g as goodsCategoryApi,