xyvcard-goods 0.0.21 → 0.0.22

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 (33) hide show
  1. package/dist/ImageUpload-Dk6GY6PA.mjs +93 -0
  2. package/dist/{edit-CkR-I5aJ.mjs → edit-Byv9oYAC.mjs} +1 -1
  3. package/dist/{edit-tCGa_9Kt.mjs → edit-Nuaz9WSB.mjs} +170 -171
  4. package/dist/edit-exVf8d8b.mjs +367 -0
  5. package/dist/edit.vue_vue_type_script_setup_true_lang-DuSBj1Mm.mjs +24172 -0
  6. package/dist/{goodsList-HmPAwD_C.mjs → goodsList-CZUqc4nm.mjs} +1 -1
  7. package/dist/{goodsList-TX2ZnRR9.mjs → goodsList-IWDAvKOx.mjs} +1 -1
  8. package/dist/{goodsList.vue_vue_type_script_setup_true_lang-f1Fc6pbd.mjs → goodsList.vue_vue_type_script_setup_true_lang-BhJn02Ym.mjs} +1 -1
  9. package/dist/{goodsList.vue_vue_type_script_setup_true_lang-CGV1dm3W.mjs → goodsList.vue_vue_type_script_setup_true_lang-CuzIDtTN.mjs} +1 -1
  10. package/dist/{index-B0SXNsHW.mjs → index-4i7TnWvV.mjs} +2 -3
  11. package/dist/{index-Dt3PP8dN.mjs → index-BVGn6Q_T.mjs} +2 -2
  12. package/dist/{index-BZw9XfQo.mjs → index-B_U2s9fI.mjs} +2 -2
  13. package/dist/{index-Ctva-XF0.mjs → index-CQIttgns.mjs} +1 -1
  14. package/dist/{index-CqOoZ5xQ.mjs → index-Dvaotk7B.mjs} +88 -68
  15. package/dist/{index-VFsDup14.mjs → index-_xxSoBUe.mjs} +1 -1
  16. package/dist/index.mjs +192 -181
  17. package/dist/{info-CrghLmS4.mjs → info-BH4MW3Sw.mjs} +2 -2
  18. package/dist/{info-BTKv0IRt.mjs → info-BQaaTFry.mjs} +2 -2
  19. package/dist/skuForm-AMIoZkH-.mjs +287 -0
  20. package/dist/{skuForm-D2n8sQJo.mjs → skuForm-CgjMd46J.mjs} +5 -5
  21. package/dist/{skuTable-CEwT-I1Q.mjs → skuTable-CyGQuTvR.mjs} +1 -1
  22. package/dist/{skuTable-D-awlXgj.mjs → skuTable-DDWSmvoz.mjs} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dts/api/dict.d.ts +3 -0
  25. package/dts/api/goods-spu/index.d.ts +1 -0
  26. package/dts/api/goods-spu/types.d.ts +17 -0
  27. package/dts/api/index.d.ts +2 -1
  28. package/dts/lang/goods/zh-cn.d.ts +5 -1
  29. package/dts/views/goods/goods-combination/skuForm.vue.d.ts +0 -9
  30. package/package.json +3 -2
  31. package/dist/edit-DFc_TNP3.mjs +0 -590
  32. package/dist/edit.vue_vue_type_script_setup_true_lang-BlNwikUO.mjs +0 -234
  33. package/dist/skuForm-C7rF2noo.mjs +0 -475
@@ -1,234 +0,0 @@
1
- import { defineComponent as F, mergeModels as V, ref as h, reactive as v, useModel as O, onMounted as E, resolveComponent as n, openBlock as A, createBlock as T, withCtx as l, createElementVNode as G, createVNode as e, createTextVNode as w, toDisplayString as I, unref as r } from "vue";
2
- import { ElMessage as U } from "element-plus";
3
- import { useI18n as H } from "vue-i18n";
4
- import { D as q, g as N } from "./index-CqOoZ5xQ.mjs";
5
- const J = { class: "dialog-footer" }, Y = /* @__PURE__ */ F({
6
- __name: "edit",
7
- props: /* @__PURE__ */ V({
8
- entityKey: {
9
- type: Object,
10
- default: () => {
11
- }
12
- }
13
- }, {
14
- modelValue: { type: Boolean },
15
- modelModifiers: {}
16
- }),
17
- emits: /* @__PURE__ */ V(["refresh"], ["update:modelValue"]),
18
- setup(g, { emit: $ }) {
19
- var C;
20
- const { t: u } = H(), y = h();
21
- let o = v({
22
- requestId: Math.random() * 10 + "",
23
- updateMask: "categoryName,parentId,picUrl,description"
24
- });
25
- const R = v({
26
- categoryName: [
27
- {
28
- required: !0,
29
- message: u("goodsCategory.categoryNameRequired"),
30
- trigger: "blur"
31
- }
32
- ],
33
- categoryCode: [
34
- {
35
- required: !0,
36
- message: u("goodsCategory.categoryCodeRequired"),
37
- trigger: "blur"
38
- }
39
- ],
40
- picUrl: [
41
- {
42
- required: !0,
43
- message: u("goodsCategory.picUrlRequired"),
44
- trigger: "change"
45
- }
46
- ]
47
- }), i = O(g, "modelValue"), p = g, k = Object.keys(p.entityKey), D = h(k.length >= 1);
48
- E(() => {
49
- q.goodsCategoryListBizLayDict.useValues();
50
- });
51
- const f = $;
52
- (C = p.entityKey) != null && C.categoryId && (o = Object.assign(o, p.entityKey), o.parentId === "00000000-0000-0000-0000-000000000000" && (o.parentId = ""));
53
- const M = async () => {
54
- var t;
55
- await ((t = y.value) == null ? void 0 : t.validate((a) => {
56
- a && (o.categoryId ? N.update(o).then((d) => {
57
- d.status === 200 && (U({
58
- message: u("common.submitSuccess"),
59
- type: "success"
60
- }), i.value && (i.value = !1), f("refresh", d.status === 200));
61
- }) : N.create(o).then((d) => {
62
- d.status === 200 && (U({
63
- message: u("common.submitSuccess"),
64
- type: "success"
65
- }), i.value && (i.value = !1), f("refresh", d.status === 200));
66
- }));
67
- }));
68
- };
69
- function _() {
70
- i.value && (i.value = !1);
71
- }
72
- function j(t) {
73
- o.picUrl = t;
74
- }
75
- return (t, a) => {
76
- const d = n("el-input"), m = n("el-form-item"), c = n("el-col"), B = n("el-tree-select"), S = n("jmash-single-image-upload"), K = n("el-row"), L = n("el-form"), b = n("el-button"), z = n("el-dialog");
77
- return A(), T(z, {
78
- modelValue: i.value,
79
- "onUpdate:modelValue": a[4] || (a[4] = (s) => i.value = s),
80
- onClose: _
81
- }, {
82
- footer: l(() => [
83
- G("div", J, [
84
- e(b, { onClick: _ }, {
85
- default: l(() => [
86
- w(I(t.$t("common.cancel")), 1)
87
- ]),
88
- _: 1
89
- }),
90
- e(b, {
91
- type: "primary",
92
- onClick: M
93
- }, {
94
- default: l(() => [
95
- w(I(t.$t("common.confirm")), 1)
96
- ]),
97
- _: 1
98
- })
99
- ])
100
- ]),
101
- default: l(() => [
102
- e(L, {
103
- ref_key: "goodsCategoryFormRef",
104
- ref: y,
105
- model: r(o),
106
- "label-width": "120px",
107
- rules: R
108
- }, {
109
- default: l(() => [
110
- e(K, null, {
111
- default: l(() => [
112
- e(c, { span: 24 }, {
113
- default: l(() => [
114
- e(m, {
115
- label: t.$t("goodsCategory.categoryName"),
116
- prop: "categoryName"
117
- }, {
118
- default: l(() => [
119
- e(d, {
120
- modelValue: r(o).categoryName,
121
- "onUpdate:modelValue": a[0] || (a[0] = (s) => r(o).categoryName = s),
122
- placeholder: t.$t("goodsCategory.categoryNameRequired"),
123
- maxlength: "60",
124
- "show-word-limit": "",
125
- clearable: ""
126
- }, null, 8, ["modelValue", "placeholder"])
127
- ]),
128
- _: 1
129
- }, 8, ["label"])
130
- ]),
131
- _: 1
132
- }),
133
- e(c, { span: 24 }, {
134
- default: l(() => [
135
- e(m, {
136
- label: t.$t("goodsCategory.categoryCode"),
137
- prop: "categoryCode"
138
- }, {
139
- default: l(() => [
140
- e(d, {
141
- modelValue: r(o).categoryCode,
142
- "onUpdate:modelValue": a[1] || (a[1] = (s) => r(o).categoryCode = s),
143
- disabled: D.value,
144
- placeholder: t.$t("goodsCategory.categoryCodeRequired"),
145
- maxlength: "30",
146
- "show-word-limit": "",
147
- clearable: ""
148
- }, null, 8, ["modelValue", "disabled", "placeholder"])
149
- ]),
150
- _: 1
151
- }, 8, ["label"])
152
- ]),
153
- _: 1
154
- }),
155
- e(c, { span: 24 }, {
156
- default: l(() => [
157
- e(m, {
158
- label: t.$t("goodsCategory.parentId"),
159
- prop: "parentId"
160
- }, {
161
- default: l(() => [
162
- e(B, {
163
- modelValue: r(o).parentId,
164
- "onUpdate:modelValue": a[2] || (a[2] = (s) => r(o).parentId = s),
165
- data: r(q).goodsCategoryListBizLayDict.values,
166
- filterable: "",
167
- clearable: "",
168
- "check-strictly": "",
169
- "render-after-expand": !1,
170
- placeholder: t.$t("goodsCategory.parentIdRequired")
171
- }, null, 8, ["modelValue", "data", "placeholder"])
172
- ]),
173
- _: 1
174
- }, 8, ["label"])
175
- ]),
176
- _: 1
177
- }),
178
- e(c, { span: 24 }, {
179
- default: l(() => [
180
- e(m, {
181
- label: t.$t("goodsCategory.picUrl"),
182
- prop: "picUrl"
183
- }, {
184
- default: l(() => [
185
- e(S, {
186
- "picture-url": r(o).picUrl,
187
- onImageSrc: j,
188
- width: 80,
189
- type: "trans"
190
- }, null, 8, ["picture-url"])
191
- ]),
192
- _: 1
193
- }, 8, ["label"])
194
- ]),
195
- _: 1
196
- }),
197
- e(c, { span: 24 }, {
198
- default: l(() => [
199
- e(m, {
200
- label: t.$t("goodsCategory.description"),
201
- prop: "description"
202
- }, {
203
- default: l(() => [
204
- e(d, {
205
- modelValue: r(o).description,
206
- "onUpdate:modelValue": a[3] || (a[3] = (s) => r(o).description = s),
207
- type: "textarea",
208
- autosize: { minRows: 2 },
209
- maxlength: "200",
210
- "show-word-limit": "",
211
- placeholder: t.$t("goodsCategory.descriptionRequired"),
212
- clearable: ""
213
- }, null, 8, ["modelValue", "placeholder"])
214
- ]),
215
- _: 1
216
- }, 8, ["label"])
217
- ]),
218
- _: 1
219
- })
220
- ]),
221
- _: 1
222
- })
223
- ]),
224
- _: 1
225
- }, 8, ["model", "rules"])
226
- ]),
227
- _: 1
228
- }, 8, ["modelValue"]);
229
- };
230
- }
231
- });
232
- export {
233
- Y as _
234
- };