xyvcard-goods 0.0.1 → 0.0.3

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 (35) hide show
  1. package/dist/{approveFailIndex-gl8MBbK6.mjs → approveFailIndex-C2BhoVKC.mjs} +1 -1
  2. package/dist/{approvedIndex.vue_vue_type_script_setup_true_lang-Wyt6TM2h.mjs → approveFailIndex.vue_vue_type_script_setup_true_lang-CSBlBFQo.mjs} +111 -94
  3. package/dist/{auditIndex-jOIDtl_l.mjs → auditIndex-BjjiwYrm.mjs} +1 -1
  4. package/dist/{auditIndex.vue_vue_type_script_setup_true_lang-sZD3eYJR.mjs → auditIndex.vue_vue_type_script_setup_true_lang-UrMEjXo-.mjs} +139 -122
  5. package/dist/{edit-DpIovEhA.mjs → edit-B1_IbaHc.mjs} +5007 -5008
  6. package/dist/{index-C9KO9AZw.mjs → el-message-BBB-S2MS.mjs} +614 -595
  7. package/dist/{index-C9f6Lybt.mjs → index-CZD7OAWo.mjs} +49 -30
  8. package/dist/{index-BupW0ufK.mjs → index-vE-TE0cx.mjs} +108 -81
  9. package/dist/index.mjs +1099 -1046
  10. package/dist/info-Bm6Ifv7W.mjs +311 -0
  11. package/dist/{saleIndex-DOcefF_x.mjs → saleIndex-C9AD4DIj.mjs} +1 -1
  12. package/dist/saleIndex.vue_vue_type_script_setup_true_lang-qDsRE8JX.mjs +428 -0
  13. package/dist/{shelfIndex-CTAReFV-.mjs → shelfIndex-CyAp6rf5.mjs} +1 -1
  14. package/dist/{shelfIndex.vue_vue_type_script_setup_true_lang-BG3OCeN_.mjs → shelfIndex.vue_vue_type_script_setup_true_lang-D3xUiFR2.mjs} +173 -159
  15. package/dist/skuForm-Ctu0Vbym.mjs +419 -0
  16. package/dist/skuTable-BbTTCq2m.mjs +585 -0
  17. package/dist/style.css +1 -1
  18. package/dts/api/goods-spu/types.d.ts +13 -6
  19. package/dts/constant.d.ts +4 -0
  20. package/dts/index.d.ts +2 -0
  21. package/dts/lang/goods/en.d.ts +1 -68
  22. package/dts/lang/goods/zh-cn.d.ts +0 -44
  23. package/dts/utils/sku.d.ts +19 -0
  24. package/dts/views/goods/goods-spu/{sku-form.vue.d.ts → skuForm.vue.d.ts} +7 -9
  25. package/dts/views/goods/goods-spu/skuTable.vue.d.ts +40 -0
  26. package/package.json +2 -2
  27. package/dist/approveFailIndex.vue_vue_type_script_setup_true_lang-WJ40OU9K.mjs +0 -544
  28. package/dist/approvedIndex-Cn6g11xv.mjs +0 -4
  29. package/dist/index-fu3gxdt_.mjs +0 -130
  30. package/dist/info-C6VRixBH.mjs +0 -301
  31. package/dist/saleIndex.vue_vue_type_script_setup_true_lang-Cfv3a-DK.mjs +0 -415
  32. package/dist/sku-form-BAi4HkUM.mjs +0 -463
  33. package/dist/sku-table-CRrisvJ1.mjs +0 -410
  34. package/dts/views/goods/goods-spu/approvedIndex.vue.d.ts +0 -2
  35. package/dts/views/goods/goods-spu/sku-table.vue.d.ts +0 -14
@@ -1,410 +0,0 @@
1
- import { defineComponent as z, ref as b, toRefs as B, watchEffect as E, computed as L, resolveComponent as d, openBlock as f, createBlock as U, withCtx as a, createElementBlock as P, createVNode as l, unref as T, Fragment as y, createElementVNode as n, createTextVNode as w, renderList as $, toDisplayString as A } from "vue";
2
- import { fileApi as h } from "jmash-core";
3
- import { $ as I, Z as N } from "./index-C9KO9AZw.mjs";
4
- /* empty css */
5
- const F = (p, t) => {
6
- const m = p.__vccOpts || p;
7
- for (const [V, _] of t)
8
- m[V] = _;
9
- return m;
10
- }, H = ["src"], M = /* @__PURE__ */ z({
11
- __name: "index",
12
- props: {
13
- pictureUrl: {
14
- type: String,
15
- default: ""
16
- }
17
- },
18
- emits: ["imageSrc"],
19
- setup(p, { emit: t }) {
20
- const m = b(h.uploadUrl()), V = b(h.authHeader()), _ = p, { pictureUrl: c } = B(_), o = b("");
21
- o.value = c.value;
22
- const v = t;
23
- function g(i) {
24
- i.fileSrc && (N({
25
- message: "上传成功",
26
- type: "success"
27
- }), o.value = i.fileSrc, v("imageSrc", i.fileSrc));
28
- }
29
- E(() => {
30
- o.value = _.pictureUrl;
31
- });
32
- const r = L(() => h.imageUrl(o.value));
33
- return (i, S) => {
34
- const u = d("el-icon"), k = d("el-upload");
35
- return f(), U(k, {
36
- class: "avatar-uploader",
37
- action: m.value,
38
- headers: V.value,
39
- "show-file-list": !1,
40
- "on-success": g
41
- }, {
42
- default: a(() => [
43
- o.value ? (f(), P("img", {
44
- key: 0,
45
- src: r.value,
46
- class: "avatar",
47
- alt: ""
48
- }, null, 8, H)) : (f(), U(u, {
49
- key: 1,
50
- class: "avatar-uploader-icon"
51
- }, {
52
- default: a(() => [
53
- l(T(I))
54
- ]),
55
- _: 1
56
- }))
57
- ]),
58
- _: 1
59
- }, 8, ["action", "headers"]);
60
- };
61
- }
62
- }), D = { class: "title-set" }, R = { class: "right-dis" }, Z = { class: "right-dis" }, q = { class: "right-dis" }, G = { class: "right-dis" }, J = { class: "right-dis" }, K = { class: "right-dis" }, Q = /* @__PURE__ */ z({
63
- __name: "sku-table",
64
- props: {
65
- // 规格类型
66
- tableObj: {
67
- type: Object,
68
- default: () => {
69
- }
70
- }
71
- },
72
- setup(p) {
73
- const t = b({
74
- salePrice: 0,
75
- marketPrice: 0,
76
- costPrice: 0,
77
- weight: 0,
78
- volume: 0,
79
- stock: 0
80
- }), m = p;
81
- function V() {
82
- m.tableObj.value.tableBodyList.forEach((c) => {
83
- console.log(c), c.salePrice = t.value.salePrice, c.marketPrice = t.value.marketPrice, c.costPrice = t.value.costPrice, c.weight = t.value.weight, c.volume = t.value.volume, c.stock = t.value.stock;
84
- });
85
- }
86
- function _(c, o) {
87
- o.picUrl = c;
88
- }
89
- return (c, o) => {
90
- const v = d("Setting"), g = d("el-icon"), r = d("el-input-number"), i = d("el-tooltip"), S = d("el-button"), u = d("el-table-column"), k = M, x = d("el-input"), O = d("el-switch"), j = d("el-table");
91
- return f(), P(y, null, [
92
- n("div", D, [
93
- l(g, null, {
94
- default: a(() => [
95
- l(v)
96
- ]),
97
- _: 1
98
- }),
99
- o[6] || (o[6] = w(" 批量设置"))
100
- ]),
101
- n("span", R, [
102
- l(i, {
103
- class: "box-item",
104
- effect: "dark",
105
- content: "销售价(元)",
106
- placement: "top-start"
107
- }, {
108
- default: a(() => [
109
- l(r, {
110
- modelValue: t.value.salePrice,
111
- "onUpdate:modelValue": o[0] || (o[0] = (e) => t.value.salePrice = e),
112
- precision: 2,
113
- size: "small",
114
- placeholder: "销售价(元)",
115
- "controls-position": "right"
116
- }, null, 8, ["modelValue"])
117
- ]),
118
- _: 1
119
- })
120
- ]),
121
- n("span", Z, [
122
- l(i, {
123
- class: "box-item",
124
- effect: "dark",
125
- content: "市场价(元)",
126
- placement: "top-start"
127
- }, {
128
- default: a(() => [
129
- l(r, {
130
- modelValue: t.value.marketPrice,
131
- "onUpdate:modelValue": o[1] || (o[1] = (e) => t.value.marketPrice = e),
132
- precision: 2,
133
- size: "small",
134
- placeholder: "市场价(元)",
135
- "controls-position": "right"
136
- }, null, 8, ["modelValue"])
137
- ]),
138
- _: 1
139
- })
140
- ]),
141
- n("span", q, [
142
- l(i, {
143
- class: "box-item",
144
- effect: "dark",
145
- content: "成本价(元)",
146
- placement: "top-start"
147
- }, {
148
- default: a(() => [
149
- l(r, {
150
- modelValue: t.value.costPrice,
151
- "onUpdate:modelValue": o[2] || (o[2] = (e) => t.value.costPrice = e),
152
- precision: 2,
153
- size: "small",
154
- placeholder: "成本价(元)",
155
- "controls-position": "right"
156
- }, null, 8, ["modelValue"])
157
- ]),
158
- _: 1
159
- })
160
- ]),
161
- n("span", G, [
162
- l(i, {
163
- class: "box-item",
164
- effect: "dark",
165
- content: "重量(kg)",
166
- placement: "top-start"
167
- }, {
168
- default: a(() => [
169
- l(r, {
170
- modelValue: t.value.weight,
171
- "onUpdate:modelValue": o[3] || (o[3] = (e) => t.value.weight = e),
172
- precision: 2,
173
- size: "small",
174
- placeholder: "重量(kg)",
175
- "controls-position": "right"
176
- }, null, 8, ["modelValue"])
177
- ]),
178
- _: 1
179
- })
180
- ]),
181
- n("span", J, [
182
- l(i, {
183
- class: "box-item",
184
- effect: "dark",
185
- content: "体积(m³)",
186
- placement: "top-start"
187
- }, {
188
- default: a(() => [
189
- l(r, {
190
- modelValue: t.value.volume,
191
- "onUpdate:modelValue": o[4] || (o[4] = (e) => t.value.volume = e),
192
- precision: 2,
193
- size: "small",
194
- placeholder: "体积(m³)",
195
- "controls-position": "right"
196
- }, null, 8, ["modelValue"])
197
- ]),
198
- _: 1
199
- })
200
- ]),
201
- n("span", K, [
202
- l(i, {
203
- class: "box-item",
204
- effect: "dark",
205
- content: "库存",
206
- placement: "top-start"
207
- }, {
208
- default: a(() => [
209
- l(r, {
210
- modelValue: t.value.stock,
211
- "onUpdate:modelValue": o[5] || (o[5] = (e) => t.value.stock = e),
212
- precision: 0,
213
- size: "small",
214
- placeholder: "库存",
215
- "controls-position": "right"
216
- }, null, 8, ["modelValue"])
217
- ]),
218
- _: 1
219
- })
220
- ]),
221
- l(S, {
222
- type: "primary",
223
- size: "small",
224
- onClick: V
225
- }, {
226
- default: a(() => o[7] || (o[7] = [
227
- w("设置")
228
- ])),
229
- _: 1
230
- }),
231
- l(j, {
232
- data: p.tableObj.tableBodyList,
233
- class: "w-full top-dis"
234
- }, {
235
- default: a(() => [
236
- l(u, { type: "index" }),
237
- (f(!0), P(y, null, $(p.tableObj.tableHeaderList, (e) => (f(), U(u, {
238
- label: e.label,
239
- prop: e.prop
240
- }, {
241
- default: a(({ row: s, column: C }) => [
242
- w(A(s[C.property]), 1)
243
- ]),
244
- _: 2
245
- }, 1032, ["label", "prop"]))), 256)),
246
- l(u, {
247
- prop: "picUrl",
248
- label: "图片"
249
- }, {
250
- default: a((e) => [
251
- l(k, {
252
- "picture-url": e.row.picUrl,
253
- onImageSrc: (s) => _(s, e.row)
254
- }, null, 8, ["picture-url", "onImageSrc"])
255
- ]),
256
- _: 1
257
- }),
258
- l(u, {
259
- prop: "salePrice",
260
- label: "销售价(元)"
261
- }, {
262
- default: a((e) => [
263
- n("span", null, [
264
- l(r, {
265
- modelValue: e.row.salePrice,
266
- "onUpdate:modelValue": (s) => e.row.salePrice = s,
267
- precision: 2,
268
- size: "small",
269
- controls: !1,
270
- class: "w-full"
271
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
272
- ])
273
- ]),
274
- _: 1
275
- }),
276
- l(u, {
277
- prop: "marketPrice",
278
- label: "市场价(元)"
279
- }, {
280
- default: a((e) => [
281
- n("span", null, [
282
- l(r, {
283
- modelValue: e.row.marketPrice,
284
- "onUpdate:modelValue": (s) => e.row.marketPrice = s,
285
- precision: 2,
286
- size: "small",
287
- controls: !1,
288
- class: "w-full"
289
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
290
- ])
291
- ]),
292
- _: 1
293
- }),
294
- l(u, {
295
- prop: "costPrice",
296
- label: "成本价(元)"
297
- }, {
298
- default: a((e) => [
299
- n("span", null, [
300
- l(r, {
301
- modelValue: e.row.costPrice,
302
- "onUpdate:modelValue": (s) => e.row.costPrice = s,
303
- precision: 2,
304
- size: "small",
305
- controls: !1,
306
- class: "w-full"
307
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
308
- ])
309
- ]),
310
- _: 1
311
- }),
312
- l(u, {
313
- prop: "weight",
314
- label: "重量(kg)"
315
- }, {
316
- default: a((e) => [
317
- n("span", null, [
318
- l(r, {
319
- modelValue: e.row.weight,
320
- "onUpdate:modelValue": (s) => e.row.weight = s,
321
- precision: 2,
322
- size: "small",
323
- controls: !1,
324
- class: "w-full"
325
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
326
- ])
327
- ]),
328
- _: 1
329
- }),
330
- l(u, {
331
- prop: "volume",
332
- label: "体积(m³)"
333
- }, {
334
- default: a((e) => [
335
- n("span", null, [
336
- l(r, {
337
- modelValue: e.row.volume,
338
- "onUpdate:modelValue": (s) => e.row.volume = s,
339
- precision: 2,
340
- size: "small",
341
- controls: !1,
342
- class: "w-full"
343
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
344
- ])
345
- ]),
346
- _: 1
347
- }),
348
- l(u, {
349
- prop: "stock",
350
- label: "库存"
351
- }, {
352
- default: a((e) => [
353
- n("span", null, [
354
- l(r, {
355
- modelValue: e.row.stock,
356
- "onUpdate:modelValue": (s) => e.row.stock = s,
357
- precision: 2,
358
- size: "small",
359
- controls: !1,
360
- class: "w-full"
361
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
362
- ])
363
- ]),
364
- _: 1
365
- }),
366
- l(u, {
367
- prop: "skuCode",
368
- label: "sku编码"
369
- }, {
370
- default: a((e) => [
371
- n("span", null, [
372
- l(x, {
373
- modelValue: e.row.skuCode,
374
- "onUpdate:modelValue": (s) => e.row.skuCode = s,
375
- size: "small"
376
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
377
- ])
378
- ]),
379
- _: 1
380
- }),
381
- l(u, {
382
- prop: "status",
383
- label: "是否上架",
384
- width: "80"
385
- }, {
386
- default: a((e) => [
387
- n("span", null, [
388
- l(O, {
389
- modelValue: e.row.status,
390
- "onUpdate:modelValue": (s) => e.row.status = s
391
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
392
- ])
393
- ]),
394
- _: 1
395
- })
396
- ]),
397
- _: 1
398
- }, 8, ["data"])
399
- ], 64);
400
- };
401
- }
402
- }), W = /* @__PURE__ */ F(Q, [["__scopeId", "data-v-93de2d0e"]]), oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
403
- __proto__: null,
404
- default: W
405
- }, Symbol.toStringTag, { value: "Module" }));
406
- export {
407
- F as _,
408
- oe as a,
409
- W as s
410
- };
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
- export default _default;
@@ -1,14 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
- tableObj: {
3
- type: ObjectConstructor;
4
- default: () => void;
5
- };
6
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
7
- tableObj: {
8
- type: ObjectConstructor;
9
- default: () => void;
10
- };
11
- }>> & Readonly<{}>, {
12
- tableObj: Record<string, any>;
13
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
14
- export default _default;