xyvcard-goods 0.0.8 → 0.0.10

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 (23) hide show
  1. package/dist/{approveFailIndex-BecI6njE.mjs → approveFailIndex-B-VGnf1U.mjs} +1 -1
  2. package/dist/{approveFailIndex.vue_vue_type_script_setup_true_lang-1FXHUoMJ.mjs → approveFailIndex.vue_vue_type_script_setup_true_lang-CiIyafoQ.mjs} +116 -110
  3. package/dist/{auditIndex-ByyMgebr.mjs → auditIndex-tEq8uYdA.mjs} +1 -1
  4. package/dist/{auditIndex.vue_vue_type_script_setup_true_lang-DT2irP9g.mjs → auditIndex.vue_vue_type_script_setup_true_lang-BW22LRCL.mjs} +128 -122
  5. package/dist/edit-FCXD46Ef.mjs +556 -0
  6. package/dist/{index-BypI3ZNk.mjs → index-C9LeLF51.mjs} +174 -165
  7. package/dist/{index-AZ4TxL-_.mjs → index-CKeHa-Cx.mjs} +55 -55
  8. package/dist/index.mjs +9 -38
  9. package/dist/{info-BJ1Ld_6D.mjs → info-CScBSLKA.mjs} +27 -27
  10. package/dist/{saleIndex-CBtuv6um.mjs → saleIndex-B7TBQOB6.mjs} +1 -1
  11. package/dist/{saleIndex.vue_vue_type_script_setup_true_lang-Cxv3foxp.mjs → saleIndex.vue_vue_type_script_setup_true_lang-B6wKXUcV.mjs} +133 -146
  12. package/dist/{shelfIndex-CykEAeD4.mjs → shelfIndex-BfsIMQfD.mjs} +1 -1
  13. package/dist/{shelfIndex.vue_vue_type_script_setup_true_lang-UPt1ZDpP.mjs → shelfIndex.vue_vue_type_script_setup_true_lang-C6RfhqIl.mjs} +122 -116
  14. package/dist/{skuForm-DdiMztDh.mjs → skuForm-CRnWdE9n.mjs} +57 -51
  15. package/dist/skuTable-Ck7bJzYP.mjs +536 -0
  16. package/dist/style.css +1 -1
  17. package/dts/api/goods-spu/types.d.ts +1 -1
  18. package/dts/components/ImageUpload.vue.d.ts +36 -0
  19. package/dts/constant.d.ts +4 -4
  20. package/dts/router/index.d.ts +2 -2
  21. package/package.json +65 -65
  22. package/dist/edit-BWUxDk9Y.mjs +0 -594
  23. package/dist/skuTable-Cg06m_5i.mjs +0 -606
@@ -0,0 +1,536 @@
1
+ import { defineComponent as A, ref as C, computed as T, watch as z, resolveComponent as V, openBlock as w, createElementBlock as U, Fragment as x, createElementVNode as f, createVNode as a, withCtx as d, createTextVNode as y, createCommentVNode as B, renderList as O, createBlock as q, toDisplayString as $, unref as F } from "vue";
2
+ import { D as M } from "./index-CKeHa-Cx.mjs";
3
+ const G = (n, g) => {
4
+ const s = n.__vccOpts || n;
5
+ for (const [r, _] of g)
6
+ s[r] = _;
7
+ return s;
8
+ };
9
+ function K(n, g = [], s) {
10
+ const { optionValue: r = "id", optionText: _ = "name" } = s || {}, k = [];
11
+ let b = 0;
12
+ const I = {}, S = H(n);
13
+ if (n.length === 0) return k;
14
+ n.forEach((v) => {
15
+ const { specValueList: o } = v;
16
+ if (!o || o.length === 0) return !0;
17
+ b = (b || 1) * o.length;
18
+ }), g.forEach((v) => {
19
+ const { specs: o, ...t } = v;
20
+ I[o.map((u) => `${u.specId}_${u.specValueId}`).join("|")] = t;
21
+ });
22
+ for (let v = 0; v < b; v++) {
23
+ const o = [], t = [];
24
+ n.forEach((c, i) => {
25
+ const { specValueList: e } = c;
26
+ let h = {};
27
+ if (!e || e.length === 0) return !0;
28
+ if (e.length > 1) {
29
+ const m = Math.floor(v / S[i]) % e.length;
30
+ h = n[i].specValueList[m];
31
+ } else
32
+ h = n[i].specValueList[0];
33
+ !c[r] || !h[r] || (t.push(`${c[r]}_${h[r]}`), o.push({
34
+ specId: c[r],
35
+ specName: c[_],
36
+ specValueId: h[r],
37
+ specValueName: h[_]
38
+ }));
39
+ });
40
+ const { ...u } = I[t.join("|")] || {};
41
+ k.push({ ...u, specs: o });
42
+ }
43
+ return k;
44
+ }
45
+ function H(n) {
46
+ const g = [];
47
+ for (let s = n.length - 1; s >= 0; s--)
48
+ n[s + 1] && n[s + 1].specValueList ? g[s] = n[s + 1].specValueList.length * g[s + 1] || 1 : g[s] = 1;
49
+ return g;
50
+ }
51
+ function D(n) {
52
+ return Array.from(new Set(n));
53
+ }
54
+ function J(n, g) {
55
+ return n = D(n), g = D(g), n.concat(g).filter((s) => !(n.includes(s) && g.includes(s)));
56
+ }
57
+ const Q = { key: 0 }, R = { class: "title-set" }, W = { class: "right-dis" }, X = { class: "right-dis" }, Y = { class: "right-dis" }, Z = { class: "right-dis" }, ee = { class: "right-dis" }, le = { class: "right-dis" }, te = { key: 0 }, oe = { key: 1 }, se = /* @__PURE__ */ A({
58
+ __name: "skuTable",
59
+ props: {
60
+ specData: {
61
+ type: Array,
62
+ default() {
63
+ return [];
64
+ }
65
+ },
66
+ goodsSku: {
67
+ type: Array,
68
+ default() {
69
+ return [];
70
+ }
71
+ },
72
+ // 是否显示批量设置,主要是用于详情展示
73
+ isSettingShow: {
74
+ type: Boolean,
75
+ default: !0
76
+ }
77
+ },
78
+ emits: ["getGoodsSku", "getFormData"],
79
+ setup(n, { emit: g }) {
80
+ const s = C({
81
+ salePrice: 0,
82
+ marketPrice: 0,
83
+ costPrice: 0,
84
+ weight: 0,
85
+ volume: 0,
86
+ stock: 0
87
+ }), r = C([]), _ = g, k = n, b = T(() => {
88
+ let o = K(k.specData, [], {}).map((u) => ({
89
+ specValues: u.specs,
90
+ specIds: u.specs.reduce(
91
+ (c, i, e) => `${c}${i.specId}-${i.specValueId}${e === u.specs.length - 1 ? "" : "_"}`,
92
+ ""
93
+ )
94
+ })), t = k.goodsSku.map((u) => ({
95
+ ...u,
96
+ specIds: u.specValues.reduce(
97
+ (c, i, e) => `${c}${i.specId}-${i.specValueId}${e === u.specValues.length - 1 ? "" : "_"}`,
98
+ ""
99
+ )
100
+ }));
101
+ return o.forEach(function(u) {
102
+ t.forEach(function(c) {
103
+ let i = u.specIds.split("_"), e = c.specIds.split("_"), h = !0;
104
+ i.forEach(function(m) {
105
+ e.find((P) => P == m) || (h = !1);
106
+ }), h && (u.picUrl = c.picUrl ? c.picUrl : "", u.skuCode = c.skuCode ? c.skuCode : void 0, u.skuId = c.skuId ? c.skuId : void 0, u.salePrice = c.salePrice, u.marketPrice = c.marketPrice, u.costPrice = c.costPrice, u.stock = c.stock, u.weight = c.weight, u.volume = c.volume, u.status = c.status);
107
+ });
108
+ }), o;
109
+ });
110
+ z(
111
+ b,
112
+ (o, t) => {
113
+ var c, i;
114
+ if (!o || !o.length) return r.value = [];
115
+ if (!t || !t.length)
116
+ return r.value = o.map((e) => ({
117
+ ...e,
118
+ picUrl: e.picUrl ? e.picUrl : "",
119
+ skuCode: e.skuCode ? e.skuCode : void 0,
120
+ salePrice: e.salePrice ? e.salePrice : 0,
121
+ marketPrice: e.marketPrice ? e.marketPrice : void 0,
122
+ costPrice: e.costPrice ? e.costPrice : void 0,
123
+ stock: e.stock ? e.stock : 0,
124
+ weight: e.weight ? e.weight : void 0,
125
+ volume: e.volume ? e.volume : void 0,
126
+ status: e.status ? e.status : !0
127
+ }));
128
+ if (((c = o[0].specValues) == null ? void 0 : c.length) !== ((i = t[0].specValues) == null ? void 0 : i.length))
129
+ return r.value = o.map((e) => ({
130
+ ...e,
131
+ picUrl: "",
132
+ skuCode: void 0,
133
+ salePrice: 0,
134
+ marketPrice: void 0,
135
+ costPrice: void 0,
136
+ stock: 0,
137
+ weight: void 0,
138
+ volume: void 0,
139
+ status: !0
140
+ }));
141
+ if (o.length === t.length)
142
+ return r.value = o.map((e, h) => ({
143
+ ...r.value[h],
144
+ ...e
145
+ }));
146
+ const u = I(o, t);
147
+ if (o.length > t.length) {
148
+ let e = [];
149
+ o.forEach((h) => {
150
+ const m = r.value.find(
151
+ (P) => P.specIds === h.specIds
152
+ );
153
+ m ? e.push(m) : e.push({
154
+ ...h,
155
+ picUrl: "",
156
+ skuCode: void 0,
157
+ salePrice: 0,
158
+ marketPrice: void 0,
159
+ costPrice: void 0,
160
+ stock: 0,
161
+ weight: void 0,
162
+ volume: void 0,
163
+ status: !0
164
+ });
165
+ }), r.value = e;
166
+ } else
167
+ r.value = r.value.filter(
168
+ (e) => !u.includes(e.specIds)
169
+ );
170
+ },
171
+ {
172
+ deep: !0,
173
+ immediate: !0
174
+ }
175
+ ), z(
176
+ r,
177
+ (o) => {
178
+ _("getFormData", o);
179
+ },
180
+ {
181
+ deep: !0,
182
+ immediate: !0
183
+ }
184
+ );
185
+ function I(o, t) {
186
+ return o = o.map((u) => u.specIds), t = t.map((u) => u.specIds), J(o, t);
187
+ }
188
+ function S() {
189
+ r.value.forEach((o) => {
190
+ o.salePrice = s.value.salePrice, o.marketPrice = s.value.marketPrice, o.costPrice = s.value.costPrice, o.weight = s.value.weight, o.volume = s.value.volume, o.stock = s.value.stock;
191
+ });
192
+ }
193
+ function v(o, t) {
194
+ t.picUrl = o;
195
+ }
196
+ return (o, t) => {
197
+ const u = V("Setting"), c = V("el-icon"), i = V("el-input-number"), e = V("el-tooltip"), h = V("el-button"), m = V("el-table-column"), P = V("jmash-single-image-upload"), E = V("el-input"), L = V("el-switch"), j = V("el-table");
198
+ return w(), U(x, null, [
199
+ n.isSettingShow ? (w(), U("div", Q, [
200
+ f("div", R, [
201
+ a(c, null, {
202
+ default: d(() => [
203
+ a(u)
204
+ ]),
205
+ _: 1
206
+ }),
207
+ t[6] || (t[6] = y(" 批量设置 "))
208
+ ]),
209
+ f("span", W, [
210
+ a(e, {
211
+ class: "box-item",
212
+ effect: "dark",
213
+ content: "销售价(元)",
214
+ placement: "top-start"
215
+ }, {
216
+ default: d(() => [
217
+ a(i, {
218
+ modelValue: s.value.salePrice,
219
+ "onUpdate:modelValue": t[0] || (t[0] = (l) => s.value.salePrice = l),
220
+ precision: 2,
221
+ size: "small",
222
+ placeholder: "销售价(元)",
223
+ "controls-position": "right"
224
+ }, null, 8, ["modelValue"])
225
+ ]),
226
+ _: 1
227
+ })
228
+ ]),
229
+ f("span", X, [
230
+ a(e, {
231
+ class: "box-item",
232
+ effect: "dark",
233
+ content: "市场价(元)",
234
+ placement: "top-start"
235
+ }, {
236
+ default: d(() => [
237
+ a(i, {
238
+ modelValue: s.value.marketPrice,
239
+ "onUpdate:modelValue": t[1] || (t[1] = (l) => s.value.marketPrice = l),
240
+ precision: 2,
241
+ size: "small",
242
+ placeholder: "市场价(元)",
243
+ "controls-position": "right"
244
+ }, null, 8, ["modelValue"])
245
+ ]),
246
+ _: 1
247
+ })
248
+ ]),
249
+ f("span", Y, [
250
+ a(e, {
251
+ class: "box-item",
252
+ effect: "dark",
253
+ content: "成本价(元)",
254
+ placement: "top-start"
255
+ }, {
256
+ default: d(() => [
257
+ a(i, {
258
+ modelValue: s.value.costPrice,
259
+ "onUpdate:modelValue": t[2] || (t[2] = (l) => s.value.costPrice = l),
260
+ precision: 2,
261
+ size: "small",
262
+ placeholder: "成本价(元)",
263
+ "controls-position": "right"
264
+ }, null, 8, ["modelValue"])
265
+ ]),
266
+ _: 1
267
+ })
268
+ ]),
269
+ f("span", Z, [
270
+ a(e, {
271
+ class: "box-item",
272
+ effect: "dark",
273
+ content: "重量(kg)",
274
+ placement: "top-start"
275
+ }, {
276
+ default: d(() => [
277
+ a(i, {
278
+ modelValue: s.value.weight,
279
+ "onUpdate:modelValue": t[3] || (t[3] = (l) => s.value.weight = l),
280
+ precision: 2,
281
+ size: "small",
282
+ placeholder: "重量(kg)",
283
+ "controls-position": "right"
284
+ }, null, 8, ["modelValue"])
285
+ ]),
286
+ _: 1
287
+ })
288
+ ]),
289
+ f("span", ee, [
290
+ a(e, {
291
+ class: "box-item",
292
+ effect: "dark",
293
+ content: "体积(m³)",
294
+ placement: "top-start"
295
+ }, {
296
+ default: d(() => [
297
+ a(i, {
298
+ modelValue: s.value.volume,
299
+ "onUpdate:modelValue": t[4] || (t[4] = (l) => s.value.volume = l),
300
+ precision: 2,
301
+ size: "small",
302
+ placeholder: "体积(m³)",
303
+ "controls-position": "right"
304
+ }, null, 8, ["modelValue"])
305
+ ]),
306
+ _: 1
307
+ })
308
+ ]),
309
+ f("span", le, [
310
+ a(e, {
311
+ class: "box-item",
312
+ effect: "dark",
313
+ content: "库存",
314
+ placement: "top-start"
315
+ }, {
316
+ default: d(() => [
317
+ a(i, {
318
+ modelValue: s.value.stock,
319
+ "onUpdate:modelValue": t[5] || (t[5] = (l) => s.value.stock = l),
320
+ precision: 0,
321
+ size: "small",
322
+ placeholder: "库存",
323
+ "controls-position": "right"
324
+ }, null, 8, ["modelValue"])
325
+ ]),
326
+ _: 1
327
+ })
328
+ ]),
329
+ a(h, {
330
+ type: "primary",
331
+ size: "small",
332
+ onClick: S
333
+ }, {
334
+ default: d(() => t[7] || (t[7] = [
335
+ y("设置")
336
+ ])),
337
+ _: 1
338
+ })
339
+ ])) : B("", !0),
340
+ a(j, {
341
+ data: r.value,
342
+ class: "w-full top-dis"
343
+ }, {
344
+ default: d(() => [
345
+ a(m, { type: "index" }),
346
+ (w(!0), U(x, null, O(n.specData, (l, p) => (w(), q(m, {
347
+ key: l.id,
348
+ prop: l.id,
349
+ label: l.name
350
+ }, {
351
+ default: d((N) => [
352
+ y($(N.row.specValues[p].specValueName), 1)
353
+ ]),
354
+ _: 2
355
+ }, 1032, ["prop", "label"]))), 128)),
356
+ a(m, {
357
+ prop: "picUrl",
358
+ label: "图片"
359
+ }, {
360
+ default: d((l) => [
361
+ a(P, {
362
+ "picture-url": l.row.picUrl,
363
+ onImageSrc: (p) => v(p, l.row)
364
+ }, null, 8, ["picture-url", "onImageSrc"])
365
+ ]),
366
+ _: 1
367
+ }),
368
+ a(m, {
369
+ prop: "salePrice",
370
+ label: "销售价(元)",
371
+ width: "150"
372
+ }, {
373
+ header: d(() => t[8] || (t[8] = [
374
+ f("span", { class: "required_red" }, "*", -1),
375
+ f("span", null, "销售价(元)", -1)
376
+ ])),
377
+ default: d((l) => [
378
+ f("span", null, [
379
+ a(i, {
380
+ modelValue: l.row.salePrice,
381
+ "onUpdate:modelValue": (p) => l.row.salePrice = p,
382
+ precision: 2,
383
+ size: "small",
384
+ controls: !1,
385
+ class: "w-full",
386
+ disabled: !n.isSettingShow
387
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
388
+ ])
389
+ ]),
390
+ _: 1
391
+ }),
392
+ a(m, {
393
+ prop: "marketPrice",
394
+ label: "市场价(元)"
395
+ }, {
396
+ default: d((l) => [
397
+ f("span", null, [
398
+ a(i, {
399
+ modelValue: l.row.marketPrice,
400
+ "onUpdate:modelValue": (p) => l.row.marketPrice = p,
401
+ precision: 2,
402
+ size: "small",
403
+ controls: !1,
404
+ class: "w-full",
405
+ disabled: !n.isSettingShow
406
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
407
+ ])
408
+ ]),
409
+ _: 1
410
+ }),
411
+ a(m, {
412
+ prop: "costPrice",
413
+ label: "成本价(元)"
414
+ }, {
415
+ default: d((l) => [
416
+ f("span", null, [
417
+ a(i, {
418
+ modelValue: l.row.costPrice,
419
+ "onUpdate:modelValue": (p) => l.row.costPrice = p,
420
+ precision: 2,
421
+ size: "small",
422
+ controls: !1,
423
+ class: "w-full",
424
+ disabled: !n.isSettingShow
425
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
426
+ ])
427
+ ]),
428
+ _: 1
429
+ }),
430
+ a(m, {
431
+ prop: "weight",
432
+ label: "重量(kg)"
433
+ }, {
434
+ default: d((l) => [
435
+ f("span", null, [
436
+ a(i, {
437
+ modelValue: l.row.weight,
438
+ "onUpdate:modelValue": (p) => l.row.weight = p,
439
+ precision: 2,
440
+ size: "small",
441
+ controls: !1,
442
+ class: "w-full",
443
+ disabled: !n.isSettingShow
444
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
445
+ ])
446
+ ]),
447
+ _: 1
448
+ }),
449
+ a(m, {
450
+ prop: "volume",
451
+ label: "体积(m³)"
452
+ }, {
453
+ default: d((l) => [
454
+ f("span", null, [
455
+ a(i, {
456
+ modelValue: l.row.volume,
457
+ "onUpdate:modelValue": (p) => l.row.volume = p,
458
+ precision: 2,
459
+ size: "small",
460
+ controls: !1,
461
+ class: "w-full",
462
+ disabled: !n.isSettingShow
463
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
464
+ ])
465
+ ]),
466
+ _: 1
467
+ }),
468
+ a(m, {
469
+ prop: "stock",
470
+ label: "库存"
471
+ }, {
472
+ header: d(() => t[9] || (t[9] = [
473
+ f("span", { class: "required_red" }, "*", -1),
474
+ f("span", null, "库存", -1)
475
+ ])),
476
+ default: d((l) => [
477
+ f("span", null, [
478
+ a(i, {
479
+ modelValue: l.row.stock,
480
+ "onUpdate:modelValue": (p) => l.row.stock = p,
481
+ precision: 2,
482
+ size: "small",
483
+ controls: !1,
484
+ class: "w-full",
485
+ disabled: !n.isSettingShow
486
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
487
+ ])
488
+ ]),
489
+ _: 1
490
+ }),
491
+ a(m, {
492
+ prop: "skuCode",
493
+ label: "sku编码"
494
+ }, {
495
+ default: d((l) => [
496
+ f("span", null, [
497
+ a(E, {
498
+ modelValue: l.row.skuCode,
499
+ "onUpdate:modelValue": (p) => l.row.skuCode = p,
500
+ size: "small",
501
+ disabled: !n.isSettingShow
502
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
503
+ ])
504
+ ]),
505
+ _: 1
506
+ }),
507
+ a(m, {
508
+ prop: "status",
509
+ label: "是否上架",
510
+ width: "80"
511
+ }, {
512
+ default: d((l) => [
513
+ n.isSettingShow ? (w(), U("span", te, [
514
+ a(L, {
515
+ modelValue: l.row.status,
516
+ "onUpdate:modelValue": (p) => l.row.status = p
517
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])
518
+ ])) : (w(), U("span", oe, $(F(M).shelfDict.getValue(l.row.status)), 1))
519
+ ]),
520
+ _: 1
521
+ })
522
+ ]),
523
+ _: 1
524
+ }, 8, ["data"])
525
+ ], 64);
526
+ };
527
+ }
528
+ }), ae = /* @__PURE__ */ G(se, [["__scopeId", "data-v-28216104"]]), ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
529
+ __proto__: null,
530
+ default: ae
531
+ }, Symbol.toStringTag, { value: "Module" }));
532
+ export {
533
+ G as _,
534
+ ce as a,
535
+ ae as s
536
+ };
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .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%}.avatar-uploader .avatar{width:80px;height:80px;display:block}.avatar-uploader .el-upload{border:1px dashed var(--el-border-color);cursor:pointer;position:relative;overflow:hidden;transition:var(--el-transition-duration-fast)}.avatar-uploader .el-upload:hover{border-color:var(--el-color-primary)}.avatar-uploader .el-icon.avatar-uploader-icon{font-size:26px;color:#8c939d;width:80px;height:80px;text-align:center}.title-set[data-v-78f1f000]{display:flex;align-items:center;font-size:14px;padding:0 0 10px}.goods-spec[data-v-8e0ed544]{border:1px solid #ccc;margin-bottom:5px}.goods-title[data-v-8e0ed544]{display:flex;align-items:center;border-bottom:1px solid #ccc;padding:10px 20px}.goods-title .goods-delete[data-v-8e0ed544]{display:flex;align-items:center;margin-left:auto;color:red;font-size:14px}.goods-content[data-v-8e0ed544]{padding:10px 20px}.goods-tag[data-v-8e0ed544]{margin-bottom:10px}[data-v-e7a4c473] .el-upload--picture-card{width:80px;height:80px;border-radius:0}[data-v-e7a4c473] .el-upload-list--picture-card .el-upload-list__item{width:80px;height:80px}
1
+ .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%}.title-set[data-v-28216104]{display:flex;align-items:center;font-size:14px;padding:0 0 10px}.goods-spec[data-v-d3b23fe5]{border:1px solid #ccc;margin-bottom:5px}.goods-title[data-v-d3b23fe5]{display:flex;align-items:center;border-bottom:1px solid #ccc;padding:10px 20px}.goods-title .goods-delete[data-v-d3b23fe5]{display:flex;align-items:center;margin-left:auto;color:red;font-size:14px}.goods-content[data-v-d3b23fe5]{padding:10px 20px}.goods-tag[data-v-d3b23fe5]{margin-bottom:10px}[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}
@@ -5,7 +5,7 @@ export interface GoodsSpuApi extends EntityApi {
5
5
  export interface GoodsSpuReq extends EntityReq {
6
6
  shopId?: string;
7
7
  spuCode?: string;
8
- spuName?: string;
8
+ likeSpuName?: string;
9
9
  approvalStatus?: string;
10
10
  hasApproval?: boolean;
11
11
  shelf?: string;
@@ -0,0 +1,36 @@
1
+ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
2
+ modelValue: {
3
+ type: StringConstructor;
4
+ default: () => string;
5
+ };
6
+ listType: {
7
+ type: () => "text" | "picture" | "picture-card";
8
+ default: string;
9
+ };
10
+ limit: {
11
+ type: NumberConstructor;
12
+ default: number;
13
+ };
14
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
+ "update:modelValue": (...args: any[]) => void;
16
+ }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
17
+ modelValue: {
18
+ type: StringConstructor;
19
+ default: () => string;
20
+ };
21
+ listType: {
22
+ type: () => "text" | "picture" | "picture-card";
23
+ default: string;
24
+ };
25
+ limit: {
26
+ type: NumberConstructor;
27
+ default: number;
28
+ };
29
+ }>> & Readonly<{
30
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
31
+ }>, {
32
+ listType: "picture" | "text" | "picture-card";
33
+ limit: number;
34
+ modelValue: string;
35
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
36
+ export default _default;
package/dts/constant.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export declare class Constant {
2
2
  static readonly MODULE_GOODS = "goods";
3
- static readonly specType: {
3
+ static readonly SPEC_TYPE: {
4
4
  UNIFIED_SPEC: string;
5
5
  MULTI_SPEC: string;
6
6
  };
@@ -19,7 +19,7 @@ export declare class Constant {
19
19
  static readonly ENUM_SPEC_TYPE = "xyvcard.goods.protobuf.SpecType";
20
20
  static readonly ENUM_GOODS_SPU_List_SORT = "xyvcard.goods.protobuf.GoodsSpuListSort";
21
21
  static readonly ENUM_APPROVAL_STATUS = "xyvcard.goods.protobuf.ApprovalStatus";
22
- static readonly approval_not_pass = "APPROVAL_NOT_PASS";
23
- static readonly approval_pass = "APPROVAL_PASS";
24
- static readonly approvaling = "APPROVALING";
22
+ static readonly APPROVAL_NOT_PASS = "APPROVAL_NOT_PASS";
23
+ static readonly APPROVAL_PASS = "APPROVAL_PASS";
24
+ static readonly APPROVALING = "APPROVALING";
25
25
  }
@@ -1,4 +1,4 @@
1
1
  import type { RouteRecordRaw } from "vue-router";
2
- export declare const GoodsSpuEdit: () => Promise<typeof import("@/views/goods/goods-spu/edit.vue")>;
3
- export declare const GoodsSpuInfo: () => Promise<typeof import("@/views/goods/goods-spu/info.vue")>;
2
+ export declare const goodsSpuEdit: () => Promise<typeof import("@/views/goods/goods-spu/edit.vue")>;
3
+ export declare const goodsSpuInfo: () => Promise<typeof import("@/views/goods/goods-spu/info.vue")>;
4
4
  export declare const goodsRoutes: RouteRecordRaw[];