xyvcard-goods 0.0.19 → 0.0.21

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 (52) hide show
  1. package/dist/edit-BcokSKfN.mjs +183 -0
  2. package/dist/{edit-E57LIt5x.mjs → edit-CkR-I5aJ.mjs} +1 -1
  3. package/dist/edit-DFc_TNP3.mjs +590 -0
  4. package/dist/edit-DxnsmaXV.mjs +186 -0
  5. package/dist/edit-tCGa_9Kt.mjs +507 -0
  6. package/dist/{edit.vue_vue_type_script_setup_true_lang-BHplO2tN.mjs → edit.vue_vue_type_script_setup_true_lang-BlNwikUO.mjs} +1 -1
  7. package/dist/{goodsList-0TMcPn_Q.mjs → goodsList-HmPAwD_C.mjs} +1 -1
  8. package/dist/goodsList-TX2ZnRR9.mjs +4 -0
  9. package/dist/goodsList.vue_vue_type_script_setup_true_lang-CGV1dm3W.mjs +714 -0
  10. package/dist/goodsList.vue_vue_type_script_setup_true_lang-f1Fc6pbd.mjs +576 -0
  11. package/dist/{index-CnyW3rxw.mjs → index-B0SXNsHW.mjs} +2 -2
  12. package/dist/{index-nSAowuoJ.mjs → index-BZw9XfQo.mjs} +2 -2
  13. package/dist/index-CqOoZ5xQ.mjs +305 -0
  14. package/dist/index-Ctva-XF0.mjs +318 -0
  15. package/dist/index-Dt3PP8dN.mjs +53 -0
  16. package/dist/index-VFsDup14.mjs +324 -0
  17. package/dist/index-jTDhsbYM.mjs +141 -0
  18. package/dist/index-r0u-27m7.mjs +141 -0
  19. package/dist/index.mjs +557 -531
  20. package/dist/info-BTKv0IRt.mjs +365 -0
  21. package/dist/info-CrghLmS4.mjs +365 -0
  22. package/dist/sku-B-IzfYLq.mjs +52 -0
  23. package/dist/skuForm-C7rF2noo.mjs +475 -0
  24. package/dist/{skuForm-DyYIl6H4.mjs → skuForm-D2n8sQJo.mjs} +154 -106
  25. package/dist/skuTable-CEwT-I1Q.mjs +592 -0
  26. package/dist/skuTable-D-awlXgj.mjs +592 -0
  27. package/dist/style.css +1 -1
  28. package/dts/api/dict.d.ts +6 -0
  29. package/dts/api/goods-brand-info/types.d.ts +4 -1
  30. package/dts/api/goods-label-info/types.d.ts +3 -0
  31. package/dts/api/goods-sku/types.d.ts +2 -0
  32. package/dts/api/goods-spu/types.d.ts +12 -0
  33. package/dts/api/index.d.ts +3 -1
  34. package/dts/constant.d.ts +4 -0
  35. package/dts/lang/goods/zh-cn.d.ts +19 -4
  36. package/dts/router/index.d.ts +1 -0
  37. package/dts/views/goods/goods-combination/edit.vue.d.ts +2 -0
  38. package/dts/views/goods/goods-combination/goodsList.vue.d.ts +14 -0
  39. package/dts/views/goods/goods-combination/index.vue.d.ts +2 -0
  40. package/dts/views/goods/goods-combination/info.vue.d.ts +2 -0
  41. package/dts/views/goods/goods-combination/skuForm.vue.d.ts +29 -0
  42. package/dts/views/goods/goods-combination/skuTable.vue.d.ts +40 -0
  43. package/package.json +61 -61
  44. package/dist/edit-B3Ripwo1.mjs +0 -437
  45. package/dist/edit-DEdWUJfi.mjs +0 -529
  46. package/dist/edit-SYuN1_Fg.mjs +0 -465
  47. package/dist/goodsList.vue_vue_type_script_setup_true_lang-Cd7-ryQA.mjs +0 -626
  48. package/dist/index-C0nlTW8F.mjs +0 -355
  49. package/dist/index-CmKF2zdn.mjs +0 -272
  50. package/dist/index-DH3UH0QC.mjs +0 -345
  51. package/dist/info-5OkZzwEV.mjs +0 -312
  52. package/dist/skuTable-B8v1DVIO.mjs +0 -543
@@ -1,437 +0,0 @@
1
- import { defineComponent as D, mergeModels as $, ref as C, reactive as B, useModel as F, resolveComponent as _, openBlock as O, createBlock as K, withCtx as n, createElementVNode as A, createVNode as l, createTextVNode as k, toDisplayString as N, unref as m } from "vue";
2
- import { ElMessage as U } from "element-plus";
3
- import { useI18n as R } from "vue-i18n";
4
- import { useUserStore as g, clearEmpty as b, request as i } from "jmash-core";
5
- import { q as M } from "./index-DR7GlHNd.mjs";
6
- import { _ as z } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
7
- class G {
8
- getKey(e) {
9
- return {
10
- labelId: e.labelId
11
- };
12
- }
13
- // 查询翻页信息标签管理
14
- findPage(e) {
15
- const o = g().user.tenant;
16
- return b(e), i({
17
- url: "/v1/goods/goods_label_info/page/" + o,
18
- method: "get",
19
- params: e
20
- });
21
- }
22
- // 查询列表信息标签管理
23
- findList(e) {
24
- const o = g().user.tenant;
25
- return b(e), i({
26
- url: "/v1/goods/goods_label_info/list/" + o,
27
- method: "get",
28
- params: e
29
- });
30
- }
31
- // 查询标签管理
32
- findById(e) {
33
- const o = g().user.tenant;
34
- return b(e), i({
35
- url: "/v1/goods/goods_label_info/id/" + o + "/" + e.labelId,
36
- method: "get"
37
- });
38
- }
39
- // 创建实体标签管理
40
- create(e) {
41
- return e.tenant = g().user.tenant, b(e), i({
42
- url: "/v1/goods/goods_label_info",
43
- method: "post",
44
- data: e
45
- });
46
- }
47
- // 修改实体标签管理
48
- update(e) {
49
- return e.tenant = g().user.tenant, b(e), i({
50
- url: "/v1/goods/goods_label_info",
51
- method: "patch",
52
- data: e
53
- });
54
- }
55
- // 上移下移
56
- move(e, o) {
57
- const s = { ...e };
58
- return s.tenant = g().user.tenant, s.up = o, b(s), i({
59
- url: "/v1/goods/goods_label_info/move",
60
- method: "put",
61
- data: s
62
- });
63
- }
64
- // 启用/禁用
65
- enable(e, o) {
66
- const s = { ...e };
67
- return s.tenant = g().user.tenant, s.enable = o, b(s), i({
68
- url: "/v1/goods/goods_label_info/enable",
69
- method: "put",
70
- data: s
71
- });
72
- }
73
- // 删除标签管理
74
- delete(e) {
75
- return e.tenant = g().user.tenant, b(e), i({
76
- url: "/v1/goods/goods_label_info/id",
77
- method: "delete",
78
- params: e
79
- });
80
- }
81
- // 批量删除标签管理
82
- batchDelete(e) {
83
- const o = e.map((a) => a.labelId), s = {
84
- tenant: g().user.tenant,
85
- labelId: o
86
- };
87
- return b(s), i({
88
- url: "/v1/goods/goods_label_info/batch",
89
- method: "put",
90
- data: s
91
- });
92
- }
93
- // 下载导入模板标签管理
94
- downloadTemplate() {
95
- const e = g().user.tenant;
96
- return i({
97
- url: "/v1/goods/goods_label_info/" + e + "/template.xlsx",
98
- method: "get",
99
- responseType: "blob",
100
- params: {
101
- tenant: g().user.tenant
102
- }
103
- });
104
- }
105
- // 导入标签管理
106
- importExcel(e) {
107
- return e.tenant = g().user.tenant, b(e), i({
108
- url: "/v1/goods/goods_label_info/import",
109
- method: "patch",
110
- data: e
111
- });
112
- }
113
- // 导出标签管理Excel文件
114
- exportExcel(e) {
115
- const o = g().user.tenant;
116
- b(e);
117
- const s = M.stringify(e, {
118
- arrayFormat: "brackets",
119
- allowDots: !0
120
- });
121
- return i({
122
- url: "/v1/goods/goods_label_info/" + o + "/goods_label_infos.xlsx?" + s,
123
- method: "get",
124
- responseType: "blob"
125
- });
126
- }
127
- // 打印标签管理PDF文件
128
- exportPdf(e) {
129
- const o = g().user.tenant;
130
- b(e);
131
- const s = M.stringify(e, {
132
- arrayFormat: "brackets",
133
- allowDots: !0
134
- });
135
- return i({
136
- url: "/v1/goods/goods_label_info/" + o + "/goods_label_infos.pdf?" + s,
137
- method: "get",
138
- responseType: "blob"
139
- });
140
- }
141
- }
142
- const h = new G(), P = { class: "dialog-footer" }, H = /* @__PURE__ */ D({
143
- __name: "edit",
144
- props: /* @__PURE__ */ $({
145
- entityKey: {
146
- type: Object,
147
- default: () => {
148
- }
149
- }
150
- }, {
151
- modelValue: { type: Boolean },
152
- modelModifiers: {}
153
- }),
154
- emits: /* @__PURE__ */ $(["refresh"], ["update:modelValue"]),
155
- setup(I, { emit: e }) {
156
- const { t: o } = R(), s = C();
157
- let a = B({
158
- requestId: Math.random() * 10 + "",
159
- updateMask: ""
160
- });
161
- const q = B({
162
- tenantId: [
163
- {
164
- required: !0,
165
- message: o("goodsLabelInfo.tenantId"),
166
- trigger: "change"
167
- }
168
- ],
169
- labelId: [
170
- {
171
- required: !0,
172
- message: o("goodsLabelInfo.labelId"),
173
- trigger: "change"
174
- }
175
- ],
176
- labelName: [
177
- {
178
- required: !0,
179
- message: o("goodsLabelInfo.labelName"),
180
- trigger: "change"
181
- }
182
- ],
183
- labelCode: [
184
- {
185
- required: !0,
186
- message: o("goodsLabelInfo.labelCode"),
187
- trigger: "change"
188
- }
189
- ],
190
- orderBy: [
191
- {
192
- required: !0,
193
- message: o("goodsLabelInfo.orderBy"),
194
- trigger: "change"
195
- }
196
- ],
197
- status: [
198
- {
199
- required: !0,
200
- message: o("goodsLabelInfo.status"),
201
- trigger: "change"
202
- }
203
- ],
204
- note: [
205
- {
206
- required: !0,
207
- message: o("goodsLabelInfo.note"),
208
- trigger: "change"
209
- }
210
- ]
211
- }), f = F(I, "modelValue"), v = I, y = e, E = Object.keys(v.entityKey), V = C(E.length >= 1);
212
- V.value && h.findById(v.entityKey).then(({ data: t }) => {
213
- Object.assign(a, t);
214
- });
215
- const S = async () => {
216
- var t;
217
- await ((t = s.value) == null ? void 0 : t.validate((d) => {
218
- d && (V.value ? h.update(a).then((r) => {
219
- console.log(r), r.status === 200 && (U({
220
- message: o("common.submitSuccess"),
221
- type: "success"
222
- }), f.value && (f.value = !1), y("refresh", r.status === 200));
223
- }) : h.create(a).then((r) => {
224
- console.log(r), r.status === 200 && (U({
225
- message: o("common.submitSuccess"),
226
- type: "success"
227
- }), f.value && (f.value = !1), y("refresh", r.status === 200));
228
- }));
229
- }));
230
- };
231
- function L() {
232
- f.value && (f.value = !1);
233
- }
234
- return (t, d) => {
235
- const r = _("el-input"), p = _("el-form-item"), c = _("el-col"), T = _("el-row"), j = _("el-form"), w = _("el-button"), x = _("el-dialog");
236
- return O(), K(x, {
237
- modelValue: f.value,
238
- "onUpdate:modelValue": d[7] || (d[7] = (u) => f.value = u),
239
- onClose: L
240
- }, {
241
- footer: n(() => [
242
- A("div", P, [
243
- l(w, { onClick: L }, {
244
- default: n(() => [
245
- k(N(t.$t("common.cancel")), 1)
246
- ]),
247
- _: 1
248
- }),
249
- l(w, {
250
- type: "primary",
251
- onClick: S
252
- }, {
253
- default: n(() => [
254
- k(N(t.$t("common.confirm")), 1)
255
- ]),
256
- _: 1
257
- })
258
- ])
259
- ]),
260
- default: n(() => [
261
- l(j, {
262
- ref_key: "goodsLabelInfoFormRef",
263
- ref: s,
264
- model: m(a),
265
- "label-width": "120px",
266
- rules: q
267
- }, {
268
- default: n(() => [
269
- l(T, null, {
270
- default: n(() => [
271
- l(c, { span: 12 }, {
272
- default: n(() => [
273
- l(p, {
274
- label: t.$t("goodsLabelInfo.tenantId"),
275
- prop: "tenantId"
276
- }, {
277
- default: n(() => [
278
- l(r, {
279
- modelValue: m(a).tenantId,
280
- "onUpdate:modelValue": d[0] || (d[0] = (u) => m(a).tenantId = u),
281
- placeholder: t.$t("goodsLabelInfo.tenantId"),
282
- maxlength: "16",
283
- "show-word-limit": "",
284
- clearable: ""
285
- }, null, 8, ["modelValue", "placeholder"])
286
- ]),
287
- _: 1
288
- }, 8, ["label"])
289
- ]),
290
- _: 1
291
- }),
292
- l(c, { span: 12 }, {
293
- default: n(() => [
294
- l(p, {
295
- label: t.$t("goodsLabelInfo.labelId"),
296
- prop: "labelId"
297
- }, {
298
- default: n(() => [
299
- l(r, {
300
- modelValue: m(a).labelId,
301
- "onUpdate:modelValue": d[1] || (d[1] = (u) => m(a).labelId = u),
302
- placeholder: t.$t("goodsLabelInfo.labelId"),
303
- maxlength: "8",
304
- "show-word-limit": "",
305
- clearable: ""
306
- }, null, 8, ["modelValue", "placeholder"])
307
- ]),
308
- _: 1
309
- }, 8, ["label"])
310
- ]),
311
- _: 1
312
- }),
313
- l(c, { span: 12 }, {
314
- default: n(() => [
315
- l(p, {
316
- label: t.$t("goodsLabelInfo.labelName"),
317
- prop: "labelName"
318
- }, {
319
- default: n(() => [
320
- l(r, {
321
- modelValue: m(a).labelName,
322
- "onUpdate:modelValue": d[2] || (d[2] = (u) => m(a).labelName = u),
323
- placeholder: t.$t("goodsLabelInfo.labelName"),
324
- maxlength: "30",
325
- "show-word-limit": "",
326
- clearable: ""
327
- }, null, 8, ["modelValue", "placeholder"])
328
- ]),
329
- _: 1
330
- }, 8, ["label"])
331
- ]),
332
- _: 1
333
- }),
334
- l(c, { span: 12 }, {
335
- default: n(() => [
336
- l(p, {
337
- label: t.$t("goodsLabelInfo.labelCode"),
338
- prop: "labelCode"
339
- }, {
340
- default: n(() => [
341
- l(r, {
342
- modelValue: m(a).labelCode,
343
- "onUpdate:modelValue": d[3] || (d[3] = (u) => m(a).labelCode = u),
344
- placeholder: t.$t("goodsLabelInfo.labelCode"),
345
- maxlength: "30",
346
- "show-word-limit": "",
347
- clearable: ""
348
- }, null, 8, ["modelValue", "placeholder"])
349
- ]),
350
- _: 1
351
- }, 8, ["label"])
352
- ]),
353
- _: 1
354
- }),
355
- l(c, { span: 12 }, {
356
- default: n(() => [
357
- l(p, {
358
- label: t.$t("goodsLabelInfo.orderBy"),
359
- prop: "orderBy"
360
- }, {
361
- default: n(() => [
362
- l(r, {
363
- modelValue: m(a).orderBy,
364
- "onUpdate:modelValue": d[4] || (d[4] = (u) => m(a).orderBy = u),
365
- placeholder: t.$t("goodsLabelInfo.orderBy"),
366
- maxlength: "5",
367
- "show-word-limit": "",
368
- clearable: ""
369
- }, null, 8, ["modelValue", "placeholder"])
370
- ]),
371
- _: 1
372
- }, 8, ["label"])
373
- ]),
374
- _: 1
375
- }),
376
- l(c, { span: 12 }, {
377
- default: n(() => [
378
- l(p, {
379
- label: t.$t("goodsLabelInfo.status"),
380
- prop: "status"
381
- }, {
382
- default: n(() => [
383
- l(r, {
384
- modelValue: m(a).status,
385
- "onUpdate:modelValue": d[5] || (d[5] = (u) => m(a).status = u),
386
- placeholder: t.$t("goodsLabelInfo.status"),
387
- maxlength: "1",
388
- "show-word-limit": "",
389
- clearable: ""
390
- }, null, 8, ["modelValue", "placeholder"])
391
- ]),
392
- _: 1
393
- }, 8, ["label"])
394
- ]),
395
- _: 1
396
- }),
397
- l(c, { span: 12 }, {
398
- default: n(() => [
399
- l(p, {
400
- label: t.$t("goodsLabelInfo.note"),
401
- prop: "note"
402
- }, {
403
- default: n(() => [
404
- l(r, {
405
- modelValue: m(a).note,
406
- "onUpdate:modelValue": d[6] || (d[6] = (u) => m(a).note = u),
407
- placeholder: t.$t("goodsLabelInfo.note"),
408
- maxlength: "120",
409
- "show-word-limit": "",
410
- clearable: ""
411
- }, null, 8, ["modelValue", "placeholder"])
412
- ]),
413
- _: 1
414
- }, 8, ["label"])
415
- ]),
416
- _: 1
417
- })
418
- ]),
419
- _: 1
420
- })
421
- ]),
422
- _: 1
423
- }, 8, ["model", "rules"])
424
- ]),
425
- _: 1
426
- }, 8, ["modelValue"]);
427
- };
428
- }
429
- }), J = /* @__PURE__ */ z(H, [["__scopeId", "data-v-7ccfb445"]]), oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
430
- __proto__: null,
431
- default: J
432
- }, Symbol.toStringTag, { value: "Module" }));
433
- export {
434
- J as a,
435
- oe as e,
436
- h as g
437
- };