xyvcard-goods 0.0.12 → 0.0.14

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 (38) hide show
  1. package/dist/{edit-h0S6bHag.mjs → edit-BlnYCDI4.mjs} +34 -32
  2. package/dist/edit-BsaWxeqY.mjs +4 -0
  3. package/dist/edit.vue_vue_type_script_setup_true_lang-DRAXgRwD.mjs +236 -0
  4. package/dist/goodsList-Dvsh76f7.mjs +4 -0
  5. package/dist/goodsList.vue_vue_type_script_setup_true_lang-CWJQd86q.mjs +647 -0
  6. package/dist/index-BF7PDcd4.mjs +55 -0
  7. package/dist/index-Ct0LRSwV.mjs +333 -0
  8. package/dist/index-DZJVaUh3.mjs +248 -0
  9. package/dist/index.mjs +139 -139
  10. package/dist/{info-lDMLR1ZW.mjs → info-wrevnU3P.mjs} +19 -18
  11. package/dist/{skuForm-ChaaXJgn.mjs → skuForm-B7yYjwdJ.mjs} +23 -21
  12. package/dist/{skuTable-BBiyXctZ.mjs → skuTable-YDBH_oRN.mjs} +18 -17
  13. package/dist/style.css +1 -1
  14. package/dts/api/dict.d.ts +2 -2
  15. package/dts/api/goods-category/index.d.ts +23 -0
  16. package/dts/api/goods-category/types.d.ts +68 -0
  17. package/dts/api/index.d.ts +3 -2
  18. package/dts/constant.d.ts +10 -0
  19. package/dts/views/goods/goods-category/edit.vue.d.ts +22 -0
  20. package/dts/{components/EnumRadio/index.vue.d.ts → views/goods/goods-spu/goodsList.vue.d.ts} +16 -11
  21. package/package.json +12 -15
  22. package/dist/approveFailIndex-B-VGnf1U.mjs +0 -4
  23. package/dist/approveFailIndex.vue_vue_type_script_setup_true_lang-CiIyafoQ.mjs +0 -418
  24. package/dist/auditIndex-tEq8uYdA.mjs +0 -4
  25. package/dist/auditIndex.vue_vue_type_script_setup_true_lang-BW22LRCL.mjs +0 -492
  26. package/dist/index-BMlIwb1h.mjs +0 -621
  27. package/dist/index-CKeHa-Cx.mjs +0 -139
  28. package/dist/saleIndex-B7TBQOB6.mjs +0 -4
  29. package/dist/saleIndex.vue_vue_type_script_setup_true_lang-B6wKXUcV.mjs +0 -415
  30. package/dist/shelfIndex-BfsIMQfD.mjs +0 -4
  31. package/dist/shelfIndex.vue_vue_type_script_setup_true_lang-C6RfhqIl.mjs +0 -447
  32. package/dts/components/GoodsUpload/ImageUpload.vue.d.ts +0 -40
  33. package/dts/components/GoodsUpload/MultiUpload.vue.d.ts +0 -24
  34. package/dts/components/GoodsUpload/index.vue.d.ts +0 -18
  35. package/dts/views/goods/goods-spu/auditIndex.vue.d.ts +0 -2
  36. package/dts/views/goods/goods-spu/saleIndex.vue.d.ts +0 -2
  37. package/dts/views/goods/goods-spu/shelfIndex.vue.d.ts +0 -2
  38. /package/dts/views/goods/{goods-spu/approveFailIndex.vue.d.ts → goods-category/index.vue.d.ts} +0 -0
@@ -1,447 +0,0 @@
1
- import { defineComponent as ee, getCurrentInstance as oe, ref as D, resolveComponent as p, resolveDirective as le, openBlock as r, createElementBlock as w, createElementVNode as m, createVNode as a, withCtx as l, unref as s, withKeys as P, createTextVNode as i, toDisplayString as n, withDirectives as b, createBlock as I, isRef as R, createCommentVNode as te, Fragment as z } from "vue";
2
- import { ElMessage as j } from "element-plus";
3
- import { useRouter as ae } from "vue-router";
4
- import { useTableHooks as se, fileApi as E } from "jmash-core";
5
- import { useI18n as ne } from "vue-i18n";
6
- import { goodsSpuApi as q } from "./index.mjs";
7
- import { D as g } from "./index-CKeHa-Cx.mjs";
8
- const ue = { class: "search-container" }, pe = ["onClick"], de = ["onClick"], re = ["onClick"], ye = /* @__PURE__ */ ee({
9
- __name: "shelfIndex",
10
- setup(ie) {
11
- const { t: v } = ne(), k = ae(), { proxy: B } = oe(), d = D({
12
- curPage: 1,
13
- pageSize: 10,
14
- shelf: "false"
15
- }), {
16
- tableHooks: u,
17
- multipleTableRef: $,
18
- queryFormRef: L,
19
- listLoading: H,
20
- tableData: Q,
21
- total: S
22
- } = se(v, q, d);
23
- let y = D([
24
- {
25
- label: "goodsSpu.shopId",
26
- prop: "shopId",
27
- slotName: "shopId",
28
- columnType: "slot",
29
- width: "250",
30
- isColumn: !0
31
- },
32
- {
33
- label: "goodsSpu.spuName",
34
- prop: "spuName",
35
- width: "200",
36
- isColumn: !0
37
- },
38
- {
39
- label: "goodsSpu.picUrls",
40
- prop: "picUrls",
41
- slotName: "picUrls",
42
- columnType: "slot",
43
- width: "100",
44
- isColumn: !0
45
- },
46
- {
47
- label: "goodsSpu.categoryId",
48
- prop: "categoryId",
49
- slotName: "categoryId",
50
- columnType: "slot",
51
- width: "150",
52
- isColumn: !0
53
- },
54
- {
55
- label: "goodsSpu.price",
56
- prop: "minPrice",
57
- width: "120",
58
- sortable: "custom",
59
- slotName: "minPrice",
60
- columnType: "slot",
61
- isColumn: !0
62
- },
63
- {
64
- label: "goodsSpu.spuCode",
65
- prop: "spuCode",
66
- width: "120",
67
- sortable: "custom",
68
- isColumn: !0
69
- },
70
- {
71
- label: "goodsSpu.saleNum",
72
- prop: "saleNum",
73
- width: "120",
74
- sortable: "custom",
75
- isColumn: !0
76
- },
77
- {
78
- label: "goodsSpu.specType",
79
- prop: "specType",
80
- width: "120",
81
- slotName: "specType",
82
- columnType: "slot",
83
- sortable: "custom",
84
- isColumn: !0
85
- },
86
- {
87
- label: "goodsSpu.shelf",
88
- prop: "shelf",
89
- width: "120",
90
- slotName: "shelf",
91
- columnType: "slot",
92
- sortable: "custom",
93
- isColumn: !0
94
- },
95
- {
96
- label: "goodsSpu.approvalStatus",
97
- prop: "approvalStatus",
98
- width: "120",
99
- slotName: "approvalStatus",
100
- columnType: "slot",
101
- isColumn: !0
102
- },
103
- {
104
- label: "goodsSpu.updateTime",
105
- prop: "updateTime",
106
- width: "180",
107
- sortable: "custom",
108
- slotName: "updateTime",
109
- columnType: "slot",
110
- isColumn: !0
111
- },
112
- {
113
- label: "common.operate",
114
- width: "200",
115
- slotName: "operation",
116
- columnType: "slot",
117
- fixed: "right",
118
- isColumn: !0
119
- }
120
- ]);
121
- g.shopInfoBizDict.useValues(), g.goodsCategoryDict.useValues();
122
- function Y() {
123
- k.push({ path: "/rawgoods/goods-spu/edit" });
124
- }
125
- function A(t) {
126
- k.push({
127
- path: "/rawgoods/goods-spu/edit",
128
- query: { spuId: t.spuId }
129
- });
130
- }
131
- function F(t) {
132
- k.push({
133
- path: "/rawgoods/goods-spu/info",
134
- query: { spuId: t.spuId }
135
- });
136
- }
137
- function K(t) {
138
- u.selectionRows.value = t;
139
- }
140
- function M(t) {
141
- u.handleSort(t.prop, t.order);
142
- }
143
- function G() {
144
- if (u.selectionRows.value.length === 0) {
145
- j({
146
- message: v("goodsSpu.chooseShelf"),
147
- type: "warning"
148
- });
149
- return;
150
- }
151
- const t = u.selectionRows.value.map((o) => o.spuId);
152
- q.enable({ spuId: t }, !0).then((o) => {
153
- var C;
154
- o.status === 200 && (j({
155
- message: v("goodsSpu.successShelf") + o.data + v("common.stripData"),
156
- type: "success"
157
- }), u.getList(), (C = $.value) == null || C.clearSelection());
158
- });
159
- }
160
- return u.getList(), (t, o) => {
161
- const C = p("jmash-select"), V = p("el-form-item"), f = p("el-col"), T = p("el-input"), _ = p("el-button"), N = p("el-row"), J = p("el-form"), O = p("jmash-column-select"), W = p("el-image"), U = p("el-switch"), X = p("jmash-table"), Z = p("jmash-pagination"), x = p("el-card"), h = le("hasPerm");
162
- return r(), w("div", null, [
163
- m("div", ue, [
164
- a(J, {
165
- ref_key: "queryFormRef",
166
- ref: L,
167
- model: d.value,
168
- inline: !0
169
- }, {
170
- default: l(() => [
171
- a(N, null, {
172
- default: l(() => [
173
- a(f, { span: 6 }, {
174
- default: l(() => [
175
- a(V, {
176
- label: t.$t("goodsSpu.shopId"),
177
- prop: "shopId"
178
- }, {
179
- default: l(() => [
180
- a(C, {
181
- modelValue: d.value.shopId,
182
- "onUpdate:modelValue": o[0] || (o[0] = (e) => d.value.shopId = e),
183
- placeholder: t.$t("goodsSpu.shopIdRequired"),
184
- data: s(g).shopInfoBizDict.values,
185
- filterable: ""
186
- }, null, 8, ["modelValue", "placeholder", "data"])
187
- ]),
188
- _: 1
189
- }, 8, ["label"])
190
- ]),
191
- _: 1
192
- }),
193
- a(f, { span: 6 }, {
194
- default: l(() => [
195
- a(V, {
196
- label: t.$t("goodsSpu.spuCode"),
197
- prop: "spuCode"
198
- }, {
199
- default: l(() => [
200
- a(T, {
201
- modelValue: d.value.spuCode,
202
- "onUpdate:modelValue": o[1] || (o[1] = (e) => d.value.spuCode = e),
203
- placeholder: t.$t("goodsSpu.spuCode"),
204
- onKeyup: o[2] || (o[2] = P((e) => s(u).handleQuery(), ["enter"])),
205
- class: "!w-[203px]"
206
- }, null, 8, ["modelValue", "placeholder"])
207
- ]),
208
- _: 1
209
- }, 8, ["label"])
210
- ]),
211
- _: 1
212
- }),
213
- a(f, { span: 6 }, {
214
- default: l(() => [
215
- a(V, {
216
- label: t.$t("goodsSpu.spuName"),
217
- prop: "likeSpuName"
218
- }, {
219
- default: l(() => [
220
- a(T, {
221
- modelValue: d.value.likeSpuName,
222
- "onUpdate:modelValue": o[3] || (o[3] = (e) => d.value.likeSpuName = e),
223
- placeholder: t.$t("goodsSpu.spuName"),
224
- onKeyup: o[4] || (o[4] = P((e) => s(u).handleQuery(), ["enter"])),
225
- class: "!w-[203px]"
226
- }, null, 8, ["modelValue", "placeholder"])
227
- ]),
228
- _: 1
229
- }, 8, ["label"])
230
- ]),
231
- _: 1
232
- }),
233
- a(f, { span: 6 }, {
234
- default: l(() => [
235
- a(V, { class: "search-btn" }, {
236
- default: l(() => [
237
- a(_, {
238
- type: "primary",
239
- onClick: o[5] || (o[5] = (e) => s(u).handleQuery())
240
- }, {
241
- default: l(() => [
242
- i(n(t.$t("common.search")), 1)
243
- ]),
244
- _: 1
245
- }),
246
- a(_, {
247
- onClick: o[6] || (o[6] = (e) => s(u).resetQuery())
248
- }, {
249
- default: l(() => [
250
- i(n(t.$t("common.reset")), 1)
251
- ]),
252
- _: 1
253
- })
254
- ]),
255
- _: 1
256
- })
257
- ]),
258
- _: 1
259
- })
260
- ]),
261
- _: 1
262
- })
263
- ]),
264
- _: 1
265
- }, 8, ["model"])
266
- ]),
267
- a(x, {
268
- shadow: "never",
269
- class: "table-container"
270
- }, {
271
- header: l(() => [
272
- a(N, null, {
273
- default: l(() => [
274
- a(f, { span: 17 }, {
275
- default: l(() => [
276
- b((r(), I(_, {
277
- type: "primary",
278
- onClick: Y
279
- }, {
280
- default: l(() => [
281
- i(n(t.$t("common.add")), 1)
282
- ]),
283
- _: 1
284
- })), [
285
- [h, ["goods:goods_spu:add"]]
286
- ]),
287
- b((r(), I(_, {
288
- type: "primary",
289
- onClick: o[7] || (o[7] = (e) => s(u).deleteRecords())
290
- }, {
291
- default: l(() => [
292
- i(n(t.$t("common.batchDelete")), 1)
293
- ]),
294
- _: 1
295
- })), [
296
- [h, ["goods:goods_spu:delete"]]
297
- ]),
298
- b((r(), I(_, {
299
- type: "primary",
300
- onClick: G
301
- }, {
302
- default: l(() => [
303
- i(n(t.$t("goodsSpu.batchShelf")), 1)
304
- ]),
305
- _: 1
306
- })), [
307
- [h, ["goods:goods_spu:onSale"]]
308
- ])
309
- ]),
310
- _: 1
311
- }),
312
- a(f, {
313
- span: 7,
314
- class: "container-float"
315
- }, {
316
- default: l(() => [
317
- a(O, {
318
- modelValue: s(y),
319
- "onUpdate:modelValue": o[8] || (o[8] = (e) => R(y) ? y.value = e : y = e),
320
- "label-name": "goods/goods-spu"
321
- }, null, 8, ["modelValue"])
322
- ]),
323
- _: 1
324
- })
325
- ]),
326
- _: 1
327
- })
328
- ]),
329
- footer: l(() => [
330
- s(S) > 0 ? (r(), I(Z, {
331
- key: 0,
332
- total: s(S),
333
- "onUpdate:total": o[9] || (o[9] = (e) => R(S) ? S.value = e : null),
334
- "current-page": d.value.curPage,
335
- "onUpdate:currentPage": o[10] || (o[10] = (e) => d.value.curPage = e),
336
- "page-size": d.value.pageSize,
337
- "onUpdate:pageSize": o[11] || (o[11] = (e) => d.value.pageSize = e),
338
- onPagination: o[12] || (o[12] = (e) => s(u).getList())
339
- }, null, 8, ["total", "current-page", "page-size"])) : te("", !0)
340
- ]),
341
- default: l(() => [
342
- a(X, {
343
- ref_key: "multipleTableRef",
344
- ref: $,
345
- "row-key": "spuId",
346
- "list-loading": s(H),
347
- data: s(Q),
348
- "table-label": s(y),
349
- onSelectionChange: K,
350
- onSortChange: M
351
- }, {
352
- shopId: l((e) => [
353
- m("span", null, n(s(g).shopInfoBizDict.getValue(e.data.row.shopId)), 1)
354
- ]),
355
- categoryId: l((e) => [
356
- m("span", null, n(s(g).goodsCategoryDict.getValue(e.data.row.categoryId)), 1)
357
- ]),
358
- picUrls: l((e) => [
359
- m("span", null, [
360
- a(W, {
361
- src: s(E).imageUrl(e.data.row.picUrls.split(",")[0], 50, 50),
362
- "preview-src-list": [
363
- s(E).imageUrl(e.data.row.picUrls.split(",")[0])
364
- ],
365
- "preview-teleported": "",
366
- "hide-on-click-modal": "",
367
- fit: "contain"
368
- }, null, 8, ["src", "preview-src-list"])
369
- ])
370
- ]),
371
- shelf: l((e) => [
372
- m("span", null, [
373
- a(U, {
374
- modelValue: e.data.row.shelf,
375
- "onUpdate:modelValue": (c) => e.data.row.shelf = c,
376
- onClick: (c) => s(u).enableRecord(e.data.row, e.data.row.shelf)
377
- }, null, 8, ["modelValue", "onUpdate:modelValue", "onClick"])
378
- ])
379
- ]),
380
- minPrice: l((e) => [
381
- m("span", null, [
382
- e.data.row.minPrice === e.data.row.maxPrice ? (r(), w(z, { key: 0 }, [
383
- i(n(e.data.row.minPrice), 1)
384
- ], 64)) : (r(), w(z, { key: 1 }, [
385
- i(n(e.data.row.minPrice) + " ~ " + n(e.data.row.maxPrice), 1)
386
- ], 64))
387
- ])
388
- ]),
389
- specType: l((e) => [
390
- m("span", null, n(s(g).specTypeEnum.getEnumValue(e.data.row.specType)), 1)
391
- ]),
392
- approvalStatus: l((e) => [
393
- m("span", null, n(s(g).approvalStatusEnum.getEnumValue(
394
- e.data.row.approvalStatus
395
- )), 1)
396
- ]),
397
- updateTime: l((e) => [
398
- m("span", null, n(s(B).$moment.formatDate(
399
- e.data.row.updateTime,
400
- "YYYY-MM-DD HH:mm:ss"
401
- )), 1)
402
- ]),
403
- enable: l((e) => [
404
- a(U, {
405
- modelValue: e.data.row.enable,
406
- "onUpdate:modelValue": (c) => e.data.row.enable = c,
407
- onChange: (c) => s(u).enableRecord(e.data.row, e.data.row.enable)
408
- }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
409
- ]),
410
- operation: l((e) => [
411
- b((r(), w("span", {
412
- class: "el-button-color",
413
- onClick: (c) => A(e.data.row)
414
- }, [
415
- i(n(t.$t("common.edit")), 1)
416
- ], 8, pe)), [
417
- [h, ["goods:goods_spu:update"]]
418
- ]),
419
- b((r(), w("span", {
420
- class: "el-button-color dropdown-left",
421
- onClick: (c) => s(u).deleteRecord(e.data.row)
422
- }, [
423
- i(n(t.$t("common.delete")), 1)
424
- ], 8, de)), [
425
- [h, ["goods:goods_spu:delete"]]
426
- ]),
427
- b((r(), w("span", {
428
- class: "el-button-color dropdown-left",
429
- onClick: (c) => F(e.data.row)
430
- }, [
431
- i(n(t.$t("common.view")), 1)
432
- ], 8, re)), [
433
- [h, ["goods:goods_spu:view"]]
434
- ])
435
- ]),
436
- _: 1
437
- }, 8, ["list-loading", "data", "table-label"])
438
- ]),
439
- _: 1
440
- })
441
- ]);
442
- };
443
- }
444
- });
445
- export {
446
- ye as _
447
- };
@@ -1,40 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
2
- listType: {
3
- type: () => "text" | "picture" | "picture-card";
4
- default: string;
5
- };
6
- limit: {
7
- type: NumberConstructor;
8
- default: number;
9
- };
10
- pictureUrl: {
11
- type: ArrayConstructor;
12
- default: () => never[];
13
- };
14
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
- filesResponse: (...args: any[]) => void;
16
- uploadFileList: (...args: any[]) => void;
17
- removeFile: (...args: any[]) => void;
18
- }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
19
- listType: {
20
- type: () => "text" | "picture" | "picture-card";
21
- default: string;
22
- };
23
- limit: {
24
- type: NumberConstructor;
25
- default: number;
26
- };
27
- pictureUrl: {
28
- type: ArrayConstructor;
29
- default: () => never[];
30
- };
31
- }>> & Readonly<{
32
- onFilesResponse?: ((...args: any[]) => any) | undefined;
33
- onUploadFileList?: ((...args: any[]) => any) | undefined;
34
- onRemoveFile?: ((...args: any[]) => any) | undefined;
35
- }>, {
36
- listType: "picture" | "text" | "picture-card";
37
- limit: number;
38
- pictureUrl: unknown[];
39
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
40
- export default _default;
@@ -1,24 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
2
- modelValue: globalThis.PropType<boolean>;
3
- limit: {
4
- type: NumberConstructor;
5
- default: number;
6
- };
7
- }>, {
8
- clearFileList: () => void;
9
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
- filesResponse: (...args: any[]) => void;
11
- uploadFileList: (...args: any[]) => void;
12
- }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
13
- modelValue: globalThis.PropType<boolean>;
14
- limit: {
15
- type: NumberConstructor;
16
- default: number;
17
- };
18
- }>> & Readonly<{
19
- onFilesResponse?: ((...args: any[]) => any) | undefined;
20
- onUploadFileList?: ((...args: any[]) => any) | undefined;
21
- }>, {
22
- limit: number;
23
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
24
- export default _default;
@@ -1,18 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
2
- pictureUrl: {
3
- type: StringConstructor;
4
- default: string;
5
- };
6
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
- imageSrc: (...args: any[]) => void;
8
- }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
9
- pictureUrl: {
10
- type: StringConstructor;
11
- default: string;
12
- };
13
- }>> & Readonly<{
14
- onImageSrc?: ((...args: any[]) => any) | undefined;
15
- }>, {
16
- pictureUrl: string;
17
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
18
- export default _default;
@@ -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,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,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;