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
@@ -0,0 +1,183 @@
1
+ import { defineComponent as j, mergeModels as I, ref as v, reactive as C, useModel as E, resolveComponent as r, openBlock as F, createBlock as K, withCtx as l, createElementVNode as O, createVNode as o, createTextVNode as L, toDisplayString as N, unref as m } from "vue";
2
+ import { ElMessage as q } from "element-plus";
3
+ import { useI18n as S } from "vue-i18n";
4
+ import { g as c } from "./index-jTDhsbYM.mjs";
5
+ import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
6
+ const x = { class: "dialog-footer" }, A = /* @__PURE__ */ j({
7
+ __name: "edit",
8
+ props: /* @__PURE__ */ I({
9
+ entityKey: {
10
+ type: Object,
11
+ default: () => {
12
+ }
13
+ }
14
+ }, {
15
+ modelValue: { type: Boolean },
16
+ modelModifiers: {}
17
+ }),
18
+ emits: /* @__PURE__ */ I(["refresh"], ["update:modelValue"]),
19
+ setup(p, { emit: w }) {
20
+ const { t: u } = S(), b = v();
21
+ let t = C({
22
+ requestId: Math.random() * 10 + "",
23
+ updateMask: "labelName,labelCode,note"
24
+ });
25
+ const k = C({
26
+ labelName: [
27
+ {
28
+ required: !0,
29
+ message: u("goodsLabelInfo.labelNameRequired"),
30
+ trigger: "change"
31
+ }
32
+ ],
33
+ labelCode: [
34
+ {
35
+ required: !0,
36
+ message: u("goodsLabelInfo.labelCodeRequired"),
37
+ trigger: "change"
38
+ }
39
+ ],
40
+ note: [
41
+ {
42
+ required: !0,
43
+ message: u("goodsLabelInfo.noteRequired"),
44
+ trigger: "change"
45
+ }
46
+ ]
47
+ }), d = E(p, "modelValue"), g = p, _ = w, R = Object.keys(g.entityKey), y = v(R.length >= 1);
48
+ y.value && c.findById(g.entityKey).then(({ data: e }) => {
49
+ Object.assign(t, e);
50
+ });
51
+ const $ = async () => {
52
+ var e;
53
+ await ((e = b.value) == null ? void 0 : e.validate((n) => {
54
+ n && (y.value ? c.update(t).then((a) => {
55
+ console.log(a), a.status === 200 && (q({
56
+ message: u("common.submitSuccess"),
57
+ type: "success"
58
+ }), d.value && (d.value = !1), _("refresh", a.status === 200));
59
+ }) : c.create(t).then((a) => {
60
+ console.log(a), a.status === 200 && (q({
61
+ message: u("common.submitSuccess"),
62
+ type: "success"
63
+ }), d.value && (d.value = !1), _("refresh", a.status === 200));
64
+ }));
65
+ }));
66
+ };
67
+ function V() {
68
+ d.value && (d.value = !1);
69
+ }
70
+ return (e, n) => {
71
+ const a = r("el-input"), i = r("el-form-item"), f = r("el-col"), M = r("el-row"), B = r("el-form"), h = r("el-button"), U = r("el-dialog");
72
+ return F(), K(U, {
73
+ modelValue: d.value,
74
+ "onUpdate:modelValue": n[3] || (n[3] = (s) => d.value = s),
75
+ onClose: V
76
+ }, {
77
+ footer: l(() => [
78
+ O("div", x, [
79
+ o(h, { onClick: V }, {
80
+ default: l(() => [
81
+ L(N(e.$t("common.cancel")), 1)
82
+ ]),
83
+ _: 1
84
+ }),
85
+ o(h, {
86
+ type: "primary",
87
+ onClick: $
88
+ }, {
89
+ default: l(() => [
90
+ L(N(e.$t("common.confirm")), 1)
91
+ ]),
92
+ _: 1
93
+ })
94
+ ])
95
+ ]),
96
+ default: l(() => [
97
+ o(B, {
98
+ ref_key: "goodsLabelInfoFormRef",
99
+ ref: b,
100
+ model: m(t),
101
+ "label-width": "120px",
102
+ rules: k
103
+ }, {
104
+ default: l(() => [
105
+ o(M, null, {
106
+ default: l(() => [
107
+ o(f, { span: 24 }, {
108
+ default: l(() => [
109
+ o(i, {
110
+ label: e.$t("goodsLabelInfo.labelName"),
111
+ prop: "labelName"
112
+ }, {
113
+ default: l(() => [
114
+ o(a, {
115
+ modelValue: m(t).labelName,
116
+ "onUpdate:modelValue": n[0] || (n[0] = (s) => m(t).labelName = s),
117
+ placeholder: e.$t("goodsLabelInfo.labelNameRequired"),
118
+ maxlength: "30",
119
+ "show-word-limit": "",
120
+ clearable: ""
121
+ }, null, 8, ["modelValue", "placeholder"])
122
+ ]),
123
+ _: 1
124
+ }, 8, ["label"])
125
+ ]),
126
+ _: 1
127
+ }),
128
+ o(f, { span: 24 }, {
129
+ default: l(() => [
130
+ o(i, {
131
+ label: e.$t("goodsLabelInfo.labelCode"),
132
+ prop: "labelCode"
133
+ }, {
134
+ default: l(() => [
135
+ o(a, {
136
+ modelValue: m(t).labelCode,
137
+ "onUpdate:modelValue": n[1] || (n[1] = (s) => m(t).labelCode = s),
138
+ placeholder: e.$t("goodsLabelInfo.labelCodeRequired"),
139
+ maxlength: "30",
140
+ "show-word-limit": "",
141
+ clearable: ""
142
+ }, null, 8, ["modelValue", "placeholder"])
143
+ ]),
144
+ _: 1
145
+ }, 8, ["label"])
146
+ ]),
147
+ _: 1
148
+ }),
149
+ o(f, { span: 24 }, {
150
+ default: l(() => [
151
+ o(i, {
152
+ label: e.$t("goodsLabelInfo.note"),
153
+ prop: "note"
154
+ }, {
155
+ default: l(() => [
156
+ o(a, {
157
+ modelValue: m(t).note,
158
+ "onUpdate:modelValue": n[2] || (n[2] = (s) => m(t).note = s),
159
+ placeholder: e.$t("goodsLabelInfo.noteRequired"),
160
+ clearable: "",
161
+ type: "textarea"
162
+ }, null, 8, ["modelValue", "placeholder"])
163
+ ]),
164
+ _: 1
165
+ }, 8, ["label"])
166
+ ]),
167
+ _: 1
168
+ })
169
+ ]),
170
+ _: 1
171
+ })
172
+ ]),
173
+ _: 1
174
+ }, 8, ["model", "rules"])
175
+ ]),
176
+ _: 1
177
+ }, 8, ["modelValue"]);
178
+ };
179
+ }
180
+ }), P = /* @__PURE__ */ D(A, [["__scopeId", "data-v-7e1c2961"]]);
181
+ export {
182
+ P as default
183
+ };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-BHplO2tN.mjs";
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-BlNwikUO.mjs";
2
2
  export {
3
3
  f as default
4
4
  };