xyvcard-goods 0.0.7 → 0.0.9

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 (24) hide show
  1. package/dist/{approveFailIndex-F3GtuNeX.mjs → approveFailIndex-DJf9bHab.mjs} +1 -1
  2. package/dist/{approveFailIndex.vue_vue_type_script_setup_true_lang-8ykH4NF1.mjs → approveFailIndex.vue_vue_type_script_setup_true_lang-mXqZdtba.mjs} +39 -39
  3. package/dist/{auditIndex-DZUQQzVu.mjs → auditIndex-CCkGsSy2.mjs} +1 -1
  4. package/dist/{auditIndex.vue_vue_type_script_setup_true_lang-Bnc1wKbA.mjs → auditIndex.vue_vue_type_script_setup_true_lang-DHolmNaP.mjs} +59 -59
  5. package/dist/edit-D37yka6Z.mjs +470 -0
  6. package/dist/{index-D5_GsXR7.mjs → index-CKeHa-Cx.mjs} +24 -27
  7. package/dist/{index-kGlE0ywA.mjs → index-vcmJ06-Y.mjs} +136 -136
  8. package/dist/index.mjs +8 -37
  9. package/dist/{info-kiOShGr4.mjs → info-CPZykxS1.mjs} +37 -40
  10. package/dist/{saleIndex-CyMvOgxp.mjs → saleIndex-CdAcvCzO.mjs} +1 -1
  11. package/dist/{saleIndex.vue_vue_type_script_setup_true_lang-BgZZMEph.mjs → saleIndex.vue_vue_type_script_setup_true_lang-CLzVH-ix.mjs} +94 -94
  12. package/dist/{shelfIndex-DZWqrqlw.mjs → shelfIndex-ZHuhzU_h.mjs} +1 -1
  13. package/dist/{shelfIndex.vue_vue_type_script_setup_true_lang-B7fw9wHp.mjs → shelfIndex.vue_vue_type_script_setup_true_lang-CTv-j8Xe.mjs} +18 -18
  14. package/dist/{skuForm-Dtq2Ttjc.mjs → skuForm-BSlT4TYd.mjs} +81 -76
  15. package/dist/skuTable-DYmQYXk3.mjs +535 -0
  16. package/dist/style.css +1 -1
  17. package/dts/api/dict.d.ts +6 -2
  18. package/dts/api/goods-spu/types.d.ts +6 -5
  19. package/dts/constant.d.ts +7 -7
  20. package/dts/router/index.d.ts +2 -2
  21. package/dts/views/goods/goods-spu/skuForm.vue.d.ts +10 -1
  22. package/package.json +3 -3
  23. package/dist/edit-C3imnLUq.mjs +0 -600
  24. package/dist/skuTable-8oPw0DhV.mjs +0 -611
@@ -0,0 +1,470 @@
1
+ import { defineComponent as G, ref as T, reactive as R, watch as z, resolveComponent as i, openBlock as v, createElementBlock as M, createElementVNode as f, createVNode as l, unref as s, withCtx as u, createBlock as O, createCommentVNode as H, createTextVNode as L } from "vue";
2
+ import { ElMessage as U } from "element-plus";
3
+ import { useRouter as W, useRoute as J } from "vue-router";
4
+ import { routerUtil as w } from "jmash-core";
5
+ import { useI18n as K } from "vue-i18n";
6
+ import { D as m, C as Q } from "./index-CKeHa-Cx.mjs";
7
+ import { goodsSpuApi as V } from "./index.mjs";
8
+ import { g as X } from "./index-BHmGYIuc.mjs";
9
+ import { WangEditor as Y } from "xyvcard-cms";
10
+ import Z from "./skuForm-BSlT4TYd.mjs";
11
+ const x = { class: "app-container" }, ee = { class: "search-container" }, le = { class: "image-card" }, ge = /* @__PURE__ */ G({
12
+ __name: "edit",
13
+ setup(oe) {
14
+ var _;
15
+ const { t: p } = K(), S = W(), g = J(), b = T();
16
+ m.shopInfoBizDict.useValues(), m.goodsCategoryDict.useValues();
17
+ let e = R({
18
+ requestId: Math.random() * 10 + "",
19
+ updateMask: "shopId,spuName,categoryId,spuCode,freightType,freightAmount,picUrls,shelf,saleNum,sellPoint,specType,description",
20
+ skuSpecValues: [],
21
+ freightType: m.freightTypeEnum.values[0].key,
22
+ freightAmount: 0,
23
+ shelf: m.shelfDict.values[0].key,
24
+ specType: m.specTypeEnum.values[0].key,
25
+ shopId: (_ = m.shopInfoBizDict.values[0]) == null ? void 0 : _.key
26
+ });
27
+ const E = (t, o, n) => {
28
+ var r;
29
+ const d = (r = e.picUrls) == null ? void 0 : r.split(",").filter(Boolean);
30
+ if (d != null && d.length) {
31
+ if ((d == null ? void 0 : d.length) < 3)
32
+ return n(new Error(p("goodsSpu.imageListsError")));
33
+ n();
34
+ } else return n(new Error(p("goodsSpu.picUrlsRequired")));
35
+ }, k = R({
36
+ shopId: [
37
+ {
38
+ required: !0,
39
+ message: p("goodsSpu.shopIdRequired"),
40
+ trigger: "change"
41
+ }
42
+ ],
43
+ spuName: [
44
+ {
45
+ required: !0,
46
+ message: p("goodsSpu.spuNameRequired"),
47
+ trigger: "blur"
48
+ }
49
+ ],
50
+ categoryId: [
51
+ {
52
+ required: !0,
53
+ message: p("goodsSpu.categoryIdRequired"),
54
+ trigger: "change"
55
+ }
56
+ ],
57
+ spuCode: [
58
+ {
59
+ required: !0,
60
+ message: p("goodsSpu.spuCodeRequired"),
61
+ trigger: "change"
62
+ }
63
+ ],
64
+ freightType: [
65
+ {
66
+ required: !0,
67
+ message: p("goodsSpu.freightTypeRequired"),
68
+ trigger: "change"
69
+ }
70
+ ],
71
+ freightAmount: [
72
+ {
73
+ required: !0,
74
+ message: p("goodsSpu.freightAmountRequired"),
75
+ trigger: "blur"
76
+ }
77
+ ],
78
+ picUrls: [
79
+ {
80
+ validator: E,
81
+ trigger: "change"
82
+ }
83
+ ],
84
+ shelf: [
85
+ {
86
+ required: !0,
87
+ message: p("goodsSpu.shelfRequired"),
88
+ trigger: "change"
89
+ }
90
+ ],
91
+ specType: [
92
+ {
93
+ required: !0,
94
+ message: p("goodsSpu.specTypeRequired"),
95
+ trigger: "change"
96
+ }
97
+ ]
98
+ }), I = T(!1);
99
+ z(
100
+ () => e.shopId,
101
+ (t) => t,
102
+ {
103
+ deep: !0,
104
+ immediate: !0
105
+ }
106
+ );
107
+ function C(t) {
108
+ e.skuSpecValues.push(t), e.skuSpecValues = e.skuSpecValues.slice(-1);
109
+ }
110
+ function $(t) {
111
+ t.forEach((o) => {
112
+ var n;
113
+ e.specId = (n = o.specValues) == null ? void 0 : n.map((d) => d.specId), e.skuSpecValues.push(o);
114
+ }), e.skuSpecValues = e.skuSpecValues.slice(-t.length);
115
+ }
116
+ g.query.spuId && V.findById({ spuId: g.query.spuId }).then(({ data: t }) => {
117
+ Object.assign(e, t), I.value = !0, X.findById({ spuId: g.query.spuId }).then(({ data: o }) => {
118
+ e.ensureIds = o.ensures;
119
+ });
120
+ });
121
+ const N = async () => {
122
+ var t;
123
+ await ((t = b.value) == null ? void 0 : t.validate((o) => {
124
+ o && (g.query.spuId ? V.update(e).then((n) => {
125
+ n.status === 200 && (U({
126
+ message: p("common.submitSuccess"),
127
+ type: "success"
128
+ }), w.closeTagView(g.fullPath, S, !1));
129
+ }) : V.create(e).then((n) => {
130
+ n.status === 200 && (U({
131
+ message: p("common.submitSuccess"),
132
+ type: "success"
133
+ }), w.closeTagView(g.fullPath, S, !1));
134
+ }));
135
+ }));
136
+ };
137
+ function D(t) {
138
+ t === "FREIGHT_FREE" && (e.freightAmount = 0);
139
+ }
140
+ return (t, o) => {
141
+ const n = i("jmash-select"), d = i("el-form-item"), r = i("el-col"), c = i("el-input"), A = i("el-tree-select"), h = i("jmash-enum-radio"), q = i("el-input-number"), F = i("jmash-multi-image-upload"), j = i("jmash-dict-checkbox"), y = i("el-row"), B = i("el-button"), P = i("el-form");
142
+ return v(), M("div", x, [
143
+ f("div", ee, [
144
+ l(P, {
145
+ ref_key: "goodsSpuFormRef",
146
+ ref: b,
147
+ model: s(e),
148
+ "label-width": "120px",
149
+ rules: k
150
+ }, {
151
+ default: u(() => [
152
+ o[15] || (o[15] = f("div", { class: "title-content" }, "基本信息", -1)),
153
+ l(y, null, {
154
+ default: u(() => [
155
+ l(r, { span: 12 }, {
156
+ default: u(() => [
157
+ l(d, {
158
+ label: t.$t("goodsSpu.shopId"),
159
+ prop: "shopId"
160
+ }, {
161
+ default: u(() => [
162
+ l(n, {
163
+ modelValue: s(e).shopId,
164
+ "onUpdate:modelValue": o[0] || (o[0] = (a) => s(e).shopId = a),
165
+ placeholder: t.$t("goodsSpu.shopIdRequired"),
166
+ data: s(m).shopInfoBizDict.values,
167
+ filterable: "",
168
+ class: "w-full"
169
+ }, null, 8, ["modelValue", "placeholder", "data"])
170
+ ]),
171
+ _: 1
172
+ }, 8, ["label"])
173
+ ]),
174
+ _: 1
175
+ }),
176
+ l(r, { span: 12 }, {
177
+ default: u(() => [
178
+ l(d, {
179
+ label: t.$t("goodsSpu.spuName"),
180
+ prop: "spuName"
181
+ }, {
182
+ default: u(() => [
183
+ l(c, {
184
+ modelValue: s(e).spuName,
185
+ "onUpdate:modelValue": o[1] || (o[1] = (a) => s(e).spuName = a),
186
+ placeholder: t.$t("goodsSpu.spuNameRequired"),
187
+ maxlength: "60",
188
+ "show-word-limit": "",
189
+ clearable: ""
190
+ }, null, 8, ["modelValue", "placeholder"])
191
+ ]),
192
+ _: 1
193
+ }, 8, ["label"])
194
+ ]),
195
+ _: 1
196
+ }),
197
+ l(r, { span: 12 }, {
198
+ default: u(() => [
199
+ l(d, {
200
+ label: t.$t("goodsSpu.categoryId"),
201
+ prop: "categoryId"
202
+ }, {
203
+ default: u(() => [
204
+ l(A, {
205
+ modelValue: s(e).categoryId,
206
+ "onUpdate:modelValue": o[2] || (o[2] = (a) => s(e).categoryId = a),
207
+ data: s(m).goodsCategoryDict.values,
208
+ filterable: "",
209
+ clearable: "",
210
+ "check-strictly": "",
211
+ "render-after-expand": !1,
212
+ placeholder: t.$t("goodsSpu.categoryIdRequired"),
213
+ class: "w-full"
214
+ }, null, 8, ["modelValue", "data", "placeholder"])
215
+ ]),
216
+ _: 1
217
+ }, 8, ["label"])
218
+ ]),
219
+ _: 1
220
+ }),
221
+ l(r, { span: 12 }, {
222
+ default: u(() => [
223
+ l(d, {
224
+ label: t.$t("goodsSpu.spuCode"),
225
+ prop: "spuCode"
226
+ }, {
227
+ default: u(() => [
228
+ l(c, {
229
+ modelValue: s(e).spuCode,
230
+ "onUpdate:modelValue": o[3] || (o[3] = (a) => s(e).spuCode = a),
231
+ placeholder: t.$t("goodsSpu.spuCodeRequired"),
232
+ maxlength: "15",
233
+ "show-word-limit": "",
234
+ clearable: ""
235
+ }, null, 8, ["modelValue", "placeholder"])
236
+ ]),
237
+ _: 1
238
+ }, 8, ["label"])
239
+ ]),
240
+ _: 1
241
+ }),
242
+ l(r, { span: 12 }, {
243
+ default: u(() => [
244
+ l(d, {
245
+ label: t.$t("goodsSpu.freightType"),
246
+ prop: "freightType"
247
+ }, {
248
+ default: u(() => [
249
+ l(h, {
250
+ modelValue: s(e).freightType,
251
+ "onUpdate:modelValue": o[4] || (o[4] = (a) => s(e).freightType = a),
252
+ data: s(m).freightTypeEnum.values,
253
+ onChange: D
254
+ }, null, 8, ["modelValue", "data"])
255
+ ]),
256
+ _: 1
257
+ }, 8, ["label"])
258
+ ]),
259
+ _: 1
260
+ }),
261
+ l(r, { span: 12 }, {
262
+ default: u(() => [
263
+ l(d, {
264
+ label: t.$t("goodsSpu.freightAmount"),
265
+ prop: "freightAmount"
266
+ }, {
267
+ default: u(() => [
268
+ l(q, {
269
+ modelValue: s(e).freightAmount,
270
+ "onUpdate:modelValue": o[5] || (o[5] = (a) => s(e).freightAmount = a),
271
+ readonly: s(e).freightType === "FREIGHT_FREE",
272
+ precision: 2,
273
+ step: 0.1,
274
+ controls: !1,
275
+ placeholder: t.$t("goodsSpu.freightAmountRequired"),
276
+ class: "w-full"
277
+ }, null, 8, ["modelValue", "readonly", "placeholder"])
278
+ ]),
279
+ _: 1
280
+ }, 8, ["label"])
281
+ ]),
282
+ _: 1
283
+ }),
284
+ l(r, { span: 24 }, {
285
+ default: u(() => [
286
+ l(d, {
287
+ label: t.$t("goodsSpu.picUrls"),
288
+ prop: "picUrls"
289
+ }, {
290
+ default: u(() => [
291
+ f("div", le, [
292
+ l(F, {
293
+ modelValue: s(e).picUrls,
294
+ "onUpdate:modelValue": o[6] || (o[6] = (a) => s(e).picUrls = a),
295
+ limit: 6,
296
+ "list-type": "picture-card"
297
+ }, null, 8, ["modelValue"]),
298
+ o[13] || (o[13] = f("div", { class: "red-color" }, " 推荐尺寸:100*100或同比例图片,最少上传3张 ", -1))
299
+ ])
300
+ ]),
301
+ _: 1
302
+ }, 8, ["label"])
303
+ ]),
304
+ _: 1
305
+ }),
306
+ l(r, { span: 12 }, {
307
+ default: u(() => [
308
+ l(d, {
309
+ label: t.$t("goodsSpu.shelf"),
310
+ prop: "shelf"
311
+ }, {
312
+ default: u(() => [
313
+ l(h, {
314
+ modelValue: s(e).shelf,
315
+ "onUpdate:modelValue": o[7] || (o[7] = (a) => s(e).shelf = a),
316
+ data: s(m).shelfDict.values
317
+ }, null, 8, ["modelValue", "data"])
318
+ ]),
319
+ _: 1
320
+ }, 8, ["label"])
321
+ ]),
322
+ _: 1
323
+ }),
324
+ l(r, { span: 12 }, {
325
+ default: u(() => [
326
+ l(d, {
327
+ label: t.$t("goodsSpu.saleNum"),
328
+ prop: "saleNum"
329
+ }, {
330
+ default: u(() => [
331
+ l(q, {
332
+ modelValue: s(e).saleNum,
333
+ "onUpdate:modelValue": o[8] || (o[8] = (a) => s(e).saleNum = a),
334
+ placeholder: t.$t("goodsSpu.saleNumRequired"),
335
+ class: "w-full",
336
+ min: 0,
337
+ controls: !1,
338
+ precision: 0
339
+ }, null, 8, ["modelValue", "placeholder"])
340
+ ]),
341
+ _: 1
342
+ }, 8, ["label"])
343
+ ]),
344
+ _: 1
345
+ }),
346
+ l(r, { span: 24 }, {
347
+ default: u(() => [
348
+ l(d, {
349
+ label: t.$t("goodsSpu.sellPoint"),
350
+ prop: "sellPoint"
351
+ }, {
352
+ default: u(() => [
353
+ l(c, {
354
+ modelValue: s(e).sellPoint,
355
+ "onUpdate:modelValue": o[9] || (o[9] = (a) => s(e).sellPoint = a),
356
+ placeholder: t.$t("goodsSpu.sellPointRequired"),
357
+ maxlength: "250",
358
+ "show-word-limit": "",
359
+ clearable: "",
360
+ rows: 4,
361
+ type: "textarea"
362
+ }, null, 8, ["modelValue", "placeholder"])
363
+ ]),
364
+ _: 1
365
+ }, 8, ["label"])
366
+ ]),
367
+ _: 1
368
+ }),
369
+ l(r, { span: 24 }, {
370
+ default: u(() => [
371
+ l(d, {
372
+ label: t.$t("goodsSpu.ensureIds"),
373
+ prop: "ensureIds"
374
+ }, {
375
+ default: u(() => [
376
+ l(j, {
377
+ modelValue: s(e).ensureIds,
378
+ "onUpdate:modelValue": o[10] || (o[10] = (a) => s(e).ensureIds = a),
379
+ "type-code": s(Q).DICT_GOODS_ENSURE
380
+ }, null, 8, ["modelValue", "type-code"])
381
+ ]),
382
+ _: 1
383
+ }, 8, ["label"])
384
+ ]),
385
+ _: 1
386
+ })
387
+ ]),
388
+ _: 1
389
+ }),
390
+ o[16] || (o[16] = f("div", { class: "title-content" }, "商品规格", -1)),
391
+ l(y, null, {
392
+ default: u(() => [
393
+ l(r, { span: 24 }, {
394
+ default: u(() => [
395
+ l(d, {
396
+ label: t.$t("goodsSpu.specType"),
397
+ prop: "specType"
398
+ }, {
399
+ default: u(() => [
400
+ l(h, {
401
+ modelValue: s(e).specType,
402
+ "onUpdate:modelValue": o[11] || (o[11] = (a) => s(e).specType = a),
403
+ data: s(m).specTypeEnum.values
404
+ }, null, 8, ["modelValue", "data"])
405
+ ]),
406
+ _: 1
407
+ }, 8, ["label"])
408
+ ]),
409
+ _: 1
410
+ }),
411
+ !s(g).query.spuId || I.value ? (v(), O(Z, {
412
+ key: 0,
413
+ "spec-type": s(e).specType,
414
+ form: s(e),
415
+ isDisabled: !s(e).shopId,
416
+ onGetGoodsSku: C,
417
+ onGetFormData: $
418
+ }, null, 8, ["spec-type", "form", "isDisabled"])) : H("", !0)
419
+ ]),
420
+ _: 1
421
+ }),
422
+ o[17] || (o[17] = f("div", { class: "title-content" }, "商品详情", -1)),
423
+ l(y, null, {
424
+ default: u(() => [
425
+ l(r, { span: 24 }, {
426
+ default: u(() => [
427
+ l(d, {
428
+ label: t.$t("goodsSpu.description"),
429
+ prop: "description"
430
+ }, {
431
+ default: u(() => [
432
+ l(s(Y), {
433
+ modelValue: s(e).description,
434
+ "onUpdate:modelValue": o[12] || (o[12] = (a) => s(e).description = a),
435
+ style: { width: "100%" }
436
+ }, null, 8, ["modelValue"])
437
+ ]),
438
+ _: 1
439
+ }, 8, ["label"])
440
+ ]),
441
+ _: 1
442
+ }),
443
+ l(d, null, {
444
+ default: u(() => [
445
+ l(B, {
446
+ type: "primary",
447
+ onClick: N
448
+ }, {
449
+ default: u(() => o[14] || (o[14] = [
450
+ L("保存")
451
+ ])),
452
+ _: 1
453
+ })
454
+ ]),
455
+ _: 1
456
+ })
457
+ ]),
458
+ _: 1
459
+ })
460
+ ]),
461
+ _: 1
462
+ }, 8, ["model", "rules"])
463
+ ])
464
+ ]);
465
+ };
466
+ }
467
+ });
468
+ export {
469
+ ge as default
470
+ };
@@ -1,34 +1,34 @@
1
- var h = Object.defineProperty;
2
- var S = (a, t, i) => t in a ? h(a, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : a[t] = i;
3
- var s = (a, t, i) => S(a, typeof t != "symbol" ? t + "" : t, i);
4
- import { BizDict as p, BizLayDict as E, EnumDict as l } from "jmash-core";
1
+ var p = Object.defineProperty;
2
+ var h = (a, t, i) => t in a ? p(a, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : a[t] = i;
3
+ var s = (a, t, i) => h(a, typeof t != "symbol" ? t + "" : t, i);
4
+ import { BizDict as S, BizLayDict as E, EnumDict as l } from "jmash-core";
5
5
  import { EntryDict as _ } from "jmash-dict";
6
- import { ref as n, reactive as v } from "vue";
6
+ import { ref as P, reactive as n } from "vue";
7
7
  import { goodsCategoryApi as O } from "xyvcard-emall";
8
- import { specValueApi as d, infoApi as P, specInfoApi as f } from "xyvcard-shop";
8
+ import { specValueApi as d, infoApi as v, specInfoApi as A } from "xyvcard-shop";
9
9
  class e {
10
10
  }
11
11
  // 模块
12
12
  s(e, "MODULE_GOODS", "goods"), // 商品规格类型
13
- s(e, "specType", {
13
+ s(e, "SPEC_TYPE", {
14
14
  UNIFIED_SPEC: "UNIFIED_SPEC",
15
15
  //统一规格
16
16
  MULTI_SPEC: "MULTI_SPEC"
17
17
  //多规格
18
18
  }), // 启用禁用
19
- s(e, "SHELF_VALUES", n([
20
- { key: "true", value: "上架" },
21
- { key: "false", value: "下架" }
19
+ s(e, "SHELF_VALUES", P([
20
+ { key: !0, value: "上架" },
21
+ { key: !1, value: "下架" }
22
22
  ])), // 运费类型
23
23
  s(e, "ENUM_FREIGHT_TYPE", "xyvcard.goods.protobuf.FreightType"), // 保障服务
24
24
  s(e, "DICT_GOODS_ENSURE", "goods_ensure"), // 规格类型
25
25
  s(e, "ENUM_SPEC_TYPE", "xyvcard.goods.protobuf.SpecType"), // 商品查询枚举
26
26
  s(e, "ENUM_GOODS_SPU_List_SORT", "xyvcard.goods.protobuf.GoodsSpuListSort"), // 审核状态
27
27
  s(e, "ENUM_APPROVAL_STATUS", "xyvcard.goods.protobuf.ApprovalStatus"), // 审核状态常量
28
- s(e, "approval_not_pass", "APPROVAL_NOT_PASS"), s(e, "approval_pass", "APPROVAL_PASS"), s(e, "approvaling", "APPROVALING");
29
- class y {
28
+ s(e, "APPROVAL_NOT_PASS", "APPROVAL_NOT_PASS"), s(e, "APPROVAL_PASS", "APPROVAL_PASS"), s(e, "APPROVALING", "APPROVALING");
29
+ class L {
30
30
  constructor(t, i) {
31
- s(this, "values", v([]));
31
+ s(this, "values", n([]));
32
32
  // 查询条件
33
33
  s(this, "query");
34
34
  this.values.length = 0, this.values.push(...t.value), this.query = i;
@@ -41,12 +41,11 @@ class y {
41
41
  return "";
42
42
  }
43
43
  }
44
- class L extends p {
44
+ class f extends S {
45
45
  // 实现 useValues 方法
46
46
  useValues() {
47
47
  return new Promise((t, i) => {
48
- P.findList(this.query).then(({ data: o }) => {
49
- console.log(o);
48
+ v.findList(this.query).then(({ data: o }) => {
50
49
  const r = o.results;
51
50
  this.values.length = 0, this.values.push(
52
51
  ...r.map(
@@ -60,7 +59,7 @@ class L extends p {
60
59
  });
61
60
  }
62
61
  }
63
- class g extends E {
62
+ class m extends E {
64
63
  // 实现 useValues 方法
65
64
  useValues() {
66
65
  return new Promise((t, i) => {
@@ -70,12 +69,11 @@ class g extends E {
70
69
  });
71
70
  }
72
71
  }
73
- class m extends p {
72
+ class y extends S {
74
73
  // 实现 useValues 方法
75
74
  useValues() {
76
75
  return new Promise((t, i) => {
77
- f.findList(this.query).then(({ data: o }) => {
78
- console.log(o);
76
+ A.findList(this.query).then(({ data: o }) => {
79
77
  const r = o.results;
80
78
  this.values.length = 0, this.values.push(
81
79
  ...r.map(
@@ -90,12 +88,11 @@ class m extends p {
90
88
  });
91
89
  }
92
90
  }
93
- class D extends p {
91
+ class D extends S {
94
92
  // 实现 useValues 方法
95
93
  useValues() {
96
94
  return new Promise((t, i) => {
97
95
  d.findList(this.query).then(({ data: o }) => {
98
- console.log(o);
99
96
  const r = o.results;
100
97
  this.values.length = 0, this.values.push(
101
98
  ...r.map(
@@ -112,11 +109,11 @@ class D extends p {
112
109
  class u {
113
110
  }
114
111
  // 店铺列表
115
- s(u, "shopInfoBizDict", new L({})), // 商品分类
116
- s(u, "goodsCategoryDict", new g({})), // 规格列表
117
- s(u, "specInfoDict", new m({})), // 规格值
112
+ s(u, "shopInfoBizDict", new f({})), // 商品分类
113
+ s(u, "goodsCategoryDict", new m({})), // 规格列表
114
+ s(u, "specInfoDict", new y({})), // 规格值
118
115
  s(u, "specValueDict", new D({})), // 上架下架
119
- s(u, "shelfDict", new y(e.SHELF_VALUES, {})), // 运费类型
116
+ s(u, "shelfDict", new L(e.SHELF_VALUES, {})), // 运费类型
120
117
  s(u, "freightTypeEnum", new l(
121
118
  e.MODULE_GOODS,
122
119
  e.ENUM_FREIGHT_TYPE
@@ -138,5 +135,5 @@ export {
138
135
  e as C,
139
136
  u as D,
140
137
  D as S,
141
- m as a
138
+ y as a
142
139
  };