xyvcard-goods 0.0.24 → 0.0.26

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 (29) hide show
  1. package/dist/{edit-Ziwv43v0.mjs → edit-C5HGHhkb.mjs} +51 -58
  2. package/dist/{edit-DU-BEAcq.mjs → edit-Cb0aaC0q.mjs} +1 -1
  3. package/dist/edit-DrbsKmwh.mjs +428 -0
  4. package/dist/{edit-9jPSycsG.mjs → edit-Xn_nZjI6.mjs} +3 -3
  5. package/dist/{edit-CWQMgvVP.mjs → edit-eAHVEi0b.mjs} +45 -52
  6. package/dist/{edit.vue_vue_type_script_setup_true_lang-BP0C4d2-.mjs → edit.vue_vue_type_script_setup_true_lang-DBG-5gI4.mjs} +2 -2
  7. package/dist/{goodsList-2AwsJVoO.mjs → goodsList-CDQZGSh2.mjs} +1 -1
  8. package/dist/{goodsList-CyWliLjg.mjs → goodsList-CKCG7ntZ.mjs} +1 -1
  9. package/dist/{goodsList.vue_vue_type_script_setup_true_lang-DjKzEAB7.mjs → goodsList.vue_vue_type_script_setup_true_lang-B6P3fso6.mjs} +2 -2
  10. package/dist/{goodsList.vue_vue_type_script_setup_true_lang-Bq06GIMe.mjs → goodsList.vue_vue_type_script_setup_true_lang-DiRkiNJk.mjs} +2 -2
  11. package/dist/{index-DPjR32Kv.mjs → index-B8IdlGiz.mjs} +3 -3
  12. package/dist/{index-BdP_dXBK.mjs → index-Bz206T2E.mjs} +3 -3
  13. package/dist/{index-B1H5hqEi.mjs → index-CDhEKnzj.mjs} +2 -2
  14. package/dist/{index-jCpYt-EU.mjs → index-CMkWXcWe.mjs} +2 -2
  15. package/dist/{index-B88acg0Q.mjs → index-CSeu2TZT.mjs} +2 -2
  16. package/dist/{index-DR3Gk44r.mjs → index-D70qzGQF.mjs} +1 -1
  17. package/dist/{index-8E7BciYp.mjs → index-DSbkvzGV.mjs} +3 -3
  18. package/dist/{index-C7oatDPl.mjs → index-utNcRJx7.mjs} +7 -3
  19. package/dist/index.mjs +1 -1
  20. package/dist/{info-DFIeVs66.mjs → info-CX3zF0ZW.mjs} +3 -3
  21. package/dist/{info-BEMxnD6-.mjs → info-Dlte8Sn0.mjs} +2 -2
  22. package/dist/{skuForm-BhAbf2AG.mjs → skuForm-B_8WQCr3.mjs} +2 -2
  23. package/dist/{skuForm-C2aQcL90.mjs → skuForm-DUR7U2Kn.mjs} +82 -81
  24. package/dist/{skuTable-9JJqGeRx.mjs → skuTable-D4LGL7B5.mjs} +1 -1
  25. package/dist/style.css +1 -1
  26. package/dts/api/goods-spu/types.d.ts +4 -0
  27. package/dts/lang/goods/zh-cn.d.ts +4 -0
  28. package/package.json +1 -1
  29. package/dist/edit-CJpoa4Ck.mjs +0 -368
@@ -1,11 +1,11 @@
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";
1
+ import { defineComponent as j, mergeModels as v, ref as I, reactive as C, useModel as E, resolveComponent as m, openBlock as F, createBlock as K, withCtx as o, createElementVNode as O, createVNode as l, createTextVNode as L, toDisplayString as N, unref as r } from "vue";
2
+ import { ElMessage as w } from "element-plus";
3
3
  import { useI18n as S } from "vue-i18n";
4
- import { b as c } from "./index-C7oatDPl.mjs";
4
+ import { b as p } from "./index-utNcRJx7.mjs";
5
5
  import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
6
6
  const x = { class: "dialog-footer" }, A = /* @__PURE__ */ j({
7
7
  __name: "edit",
8
- props: /* @__PURE__ */ I({
8
+ props: /* @__PURE__ */ v({
9
9
  entityKey: {
10
10
  type: Object,
11
11
  default: () => {
@@ -15,14 +15,14 @@ const x = { class: "dialog-footer" }, A = /* @__PURE__ */ j({
15
15
  modelValue: { type: Boolean },
16
16
  modelModifiers: {}
17
17
  }),
18
- emits: /* @__PURE__ */ I(["refresh"], ["update:modelValue"]),
19
- setup(p, { emit: w }) {
20
- const { t: u } = S(), b = v();
18
+ emits: /* @__PURE__ */ v(["refresh"], ["update:modelValue"]),
19
+ setup(c, { emit: k }) {
20
+ const { t: u } = S(), b = I();
21
21
  let a = C({
22
22
  requestId: Math.random() * 10 + "",
23
23
  updateMask: "labelName,labelCode,note"
24
24
  });
25
- const k = C({
25
+ const q = C({
26
26
  labelName: [
27
27
  {
28
28
  required: !0,
@@ -36,28 +36,21 @@ const x = { class: "dialog-footer" }, A = /* @__PURE__ */ j({
36
36
  message: u("goodsLabelInfo.labelCodeRequired"),
37
37
  trigger: "change"
38
38
  }
39
- ],
40
- note: [
41
- {
42
- required: !0,
43
- message: u("goodsLabelInfo.noteRequired"),
44
- trigger: "change"
45
- }
46
39
  ]
47
- }), s = 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 }) => {
40
+ }), s = E(c, "modelValue"), g = c, _ = k, $ = Object.keys(g.entityKey), y = I($.length >= 1);
41
+ y.value && p.findById(g.entityKey).then(({ data: e }) => {
49
42
  Object.assign(a, e);
50
43
  });
51
- const $ = async () => {
44
+ const R = async () => {
52
45
  var e;
53
46
  await ((e = b.value) == null ? void 0 : e.validate((t) => {
54
- t && (y.value ? c.update(a).then((n) => {
55
- n.status === 200 && (q({
47
+ t && (y.value ? p.update(a).then((n) => {
48
+ n.status === 200 && (w({
56
49
  message: u("common.submitSuccess"),
57
50
  type: "success"
58
51
  }), s.value && (s.value = !1), _("refresh", n.status === 200));
59
- }) : c.create(a).then((n) => {
60
- n.status === 200 && (q({
52
+ }) : p.create(a).then((n) => {
53
+ n.status === 200 && (w({
61
54
  message: u("common.submitSuccess"),
62
55
  type: "success"
63
56
  }), s.value && (s.value = !1), _("refresh", n.status === 200));
@@ -68,52 +61,52 @@ const x = { class: "dialog-footer" }, A = /* @__PURE__ */ j({
68
61
  s.value && (s.value = !1);
69
62
  }
70
63
  return (e, t) => {
71
- const n = 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");
64
+ const n = m("el-input"), i = m("el-form-item"), f = m("el-col"), M = m("el-row"), B = m("el-form"), h = m("el-button"), U = m("el-dialog");
72
65
  return F(), K(U, {
73
66
  modelValue: s.value,
74
67
  "onUpdate:modelValue": t[3] || (t[3] = (d) => s.value = d),
75
68
  onClose: V
76
69
  }, {
77
- footer: l(() => [
70
+ footer: o(() => [
78
71
  O("div", x, [
79
- o(h, { onClick: V }, {
80
- default: l(() => [
72
+ l(h, { onClick: V }, {
73
+ default: o(() => [
81
74
  L(N(e.$t("common.cancel")), 1)
82
75
  ]),
83
76
  _: 1
84
77
  }),
85
- o(h, {
78
+ l(h, {
86
79
  type: "primary",
87
- onClick: $
80
+ onClick: R
88
81
  }, {
89
- default: l(() => [
82
+ default: o(() => [
90
83
  L(N(e.$t("common.confirm")), 1)
91
84
  ]),
92
85
  _: 1
93
86
  })
94
87
  ])
95
88
  ]),
96
- default: l(() => [
97
- o(B, {
89
+ default: o(() => [
90
+ l(B, {
98
91
  ref_key: "goodsLabelInfoFormRef",
99
92
  ref: b,
100
- model: m(a),
93
+ model: r(a),
101
94
  "label-width": "120px",
102
- rules: k
95
+ rules: q
103
96
  }, {
104
- default: l(() => [
105
- o(M, null, {
106
- default: l(() => [
107
- o(f, { span: 24 }, {
108
- default: l(() => [
109
- o(i, {
97
+ default: o(() => [
98
+ l(M, null, {
99
+ default: o(() => [
100
+ l(f, { span: 24 }, {
101
+ default: o(() => [
102
+ l(i, {
110
103
  label: e.$t("goodsLabelInfo.labelName"),
111
104
  prop: "labelName"
112
105
  }, {
113
- default: l(() => [
114
- o(n, {
115
- modelValue: m(a).labelName,
116
- "onUpdate:modelValue": t[0] || (t[0] = (d) => m(a).labelName = d),
106
+ default: o(() => [
107
+ l(n, {
108
+ modelValue: r(a).labelName,
109
+ "onUpdate:modelValue": t[0] || (t[0] = (d) => r(a).labelName = d),
117
110
  placeholder: e.$t("goodsLabelInfo.labelNameRequired"),
118
111
  maxlength: "30",
119
112
  "show-word-limit": "",
@@ -125,16 +118,16 @@ const x = { class: "dialog-footer" }, A = /* @__PURE__ */ j({
125
118
  ]),
126
119
  _: 1
127
120
  }),
128
- o(f, { span: 24 }, {
129
- default: l(() => [
130
- o(i, {
121
+ l(f, { span: 24 }, {
122
+ default: o(() => [
123
+ l(i, {
131
124
  label: e.$t("goodsLabelInfo.labelCode"),
132
125
  prop: "labelCode"
133
126
  }, {
134
- default: l(() => [
135
- o(n, {
136
- modelValue: m(a).labelCode,
137
- "onUpdate:modelValue": t[1] || (t[1] = (d) => m(a).labelCode = d),
127
+ default: o(() => [
128
+ l(n, {
129
+ modelValue: r(a).labelCode,
130
+ "onUpdate:modelValue": t[1] || (t[1] = (d) => r(a).labelCode = d),
138
131
  placeholder: e.$t("goodsLabelInfo.labelCodeRequired"),
139
132
  maxlength: "30",
140
133
  "show-word-limit": "",
@@ -146,16 +139,16 @@ const x = { class: "dialog-footer" }, A = /* @__PURE__ */ j({
146
139
  ]),
147
140
  _: 1
148
141
  }),
149
- o(f, { span: 24 }, {
150
- default: l(() => [
151
- o(i, {
142
+ l(f, { span: 24 }, {
143
+ default: o(() => [
144
+ l(i, {
152
145
  label: e.$t("goodsLabelInfo.note"),
153
146
  prop: "note"
154
147
  }, {
155
- default: l(() => [
156
- o(n, {
157
- modelValue: m(a).note,
158
- "onUpdate:modelValue": t[2] || (t[2] = (d) => m(a).note = d),
148
+ default: o(() => [
149
+ l(n, {
150
+ modelValue: r(a).note,
151
+ "onUpdate:modelValue": t[2] || (t[2] = (d) => r(a).note = d),
159
152
  placeholder: e.$t("goodsLabelInfo.noteRequired"),
160
153
  clearable: "",
161
154
  type: "textarea"
@@ -177,7 +170,7 @@ const x = { class: "dialog-footer" }, A = /* @__PURE__ */ j({
177
170
  }, 8, ["modelValue"]);
178
171
  };
179
172
  }
180
- }), P = /* @__PURE__ */ D(A, [["__scopeId", "data-v-3bb58ee1"]]);
173
+ }), P = /* @__PURE__ */ D(A, [["__scopeId", "data-v-7789ee13"]]);
181
174
  export {
182
175
  P as default
183
176
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-BP0C4d2-.mjs";
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-DBG-5gI4.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -0,0 +1,428 @@
1
+ import { _ as z } from "./ImageUpload-Dk6GY6PA.mjs";
2
+ import { defineComponent as O, ref as R, reactive as I, resolveComponent as p, openBlock as h, createElementBlock as v, createElementVNode as f, createVNode as e, unref as t, withCtx as u, Fragment as j, renderList as x, createBlock as U, createTextVNode as w, toDisplayString as M, createCommentVNode as H } from "vue";
3
+ import { ElMessage as P } from "element-plus";
4
+ import { useRouter as Y, useRoute as J } from "vue-router";
5
+ import { routerUtil as k } from "jmash-core";
6
+ import { useI18n as K } from "vue-i18n";
7
+ import { D as m, C as Q } from "./index-CMkWXcWe.mjs";
8
+ import { a as b } from "./index-utNcRJx7.mjs";
9
+ import W from "./skuForm-DUR7U2Kn.mjs";
10
+ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = { class: "image-card" }, ie = /* @__PURE__ */ O({
11
+ __name: "edit",
12
+ setup(le) {
13
+ const { t: n } = K(), y = Y(), g = J(), V = R();
14
+ m.goodsCategoryListBizLayDict.useValues(), m.labelListBizDict.useValues();
15
+ let o = I({
16
+ requestId: Math.random() * 10 + "",
17
+ updateMask: "labelIds,minPrice,maxPrice,spuName,categoryIds,spuCode,freightType,freightAmount,picUrls,shelf,saleNum",
18
+ skuSpecValues: [],
19
+ freightType: m.freightTypeEnum.values[0].key,
20
+ freightAmount: 0,
21
+ shelf: m.shelfDict.values[0].key,
22
+ goodsType: Q.GOODS_TYPE.GROUP
23
+ });
24
+ const C = (s, l, i) => {
25
+ var d;
26
+ const a = (d = o.picUrls) == null ? void 0 : d.split(",").filter(Boolean);
27
+ if (a != null && a.length) {
28
+ if ((a == null ? void 0 : a.length) < 1)
29
+ return i(new Error(n("goodsSpu.imageListsErrors")));
30
+ i();
31
+ } else return i(new Error(n("goodsSpu.picUrlsRequired")));
32
+ }, T = I({
33
+ spuName: [
34
+ {
35
+ required: !0,
36
+ message: n("goodsSpu.spuNameRequired"),
37
+ trigger: "blur"
38
+ }
39
+ ],
40
+ minPrice: [
41
+ {
42
+ required: !0,
43
+ message: n("goodsSpu.minPriceRequired"),
44
+ trigger: "blur"
45
+ }
46
+ ],
47
+ maxPrice: [
48
+ {
49
+ required: !0,
50
+ message: n("goodsSpu.maxPriceRequired"),
51
+ trigger: "blur"
52
+ }
53
+ ],
54
+ categoryIds: [
55
+ {
56
+ required: !0,
57
+ message: n("goodsSpu.categoryIdRequired"),
58
+ trigger: "change"
59
+ }
60
+ ],
61
+ spuCode: [
62
+ {
63
+ required: !0,
64
+ message: n("goodsSpu.spuCodeRequired"),
65
+ trigger: "change"
66
+ }
67
+ ],
68
+ freightType: [
69
+ {
70
+ required: !0,
71
+ message: n("goodsSpu.freightTypeRequired"),
72
+ trigger: "change"
73
+ }
74
+ ],
75
+ freightAmount: [
76
+ {
77
+ required: !0,
78
+ message: n("goodsSpu.freightAmountRequired"),
79
+ trigger: "blur"
80
+ }
81
+ ],
82
+ picUrls: [
83
+ {
84
+ validator: C,
85
+ trigger: "change"
86
+ }
87
+ ],
88
+ shelf: [
89
+ {
90
+ required: !0,
91
+ message: n("goodsSpu.shelfRequired"),
92
+ trigger: "change"
93
+ }
94
+ ]
95
+ }), S = R(!1);
96
+ function N(s) {
97
+ o.groupInfos = s;
98
+ }
99
+ g.query.spuId && b.findById({ spuId: g.query.spuId }).then(({ data: s }) => {
100
+ Object.assign(o, s), S.value = !0;
101
+ });
102
+ const $ = async () => {
103
+ var s;
104
+ await ((s = V.value) == null ? void 0 : s.validate((l) => {
105
+ l && (g.query.spuId ? b.updateList(o).then((i) => {
106
+ i.status === 200 && (P({
107
+ message: n("common.submitSuccess"),
108
+ type: "success"
109
+ }), k.closeTagView(g.fullPath, y, !1));
110
+ }) : b.createList(o).then((i) => {
111
+ i.status === 200 && (P({
112
+ message: n("common.submitSuccess"),
113
+ type: "success"
114
+ }), k.closeTagView(g.fullPath, y, !1));
115
+ }));
116
+ }));
117
+ };
118
+ function E(s) {
119
+ s === "FREIGHT_FREE" && (o.freightAmount = 0);
120
+ }
121
+ return (s, l) => {
122
+ const i = p("el-input"), a = p("el-form-item"), d = p("el-col"), A = p("el-tree-select"), q = p("jmash-enum-radio"), c = p("el-input-number"), D = z, F = p("el-checkbox"), L = p("el-checkbox-group"), _ = p("el-row"), B = p("el-button"), G = p("el-form");
123
+ return h(), v("div", X, [
124
+ f("div", Z, [
125
+ e(G, {
126
+ ref_key: "goodsSpuFormRef",
127
+ ref: V,
128
+ model: t(o),
129
+ "label-width": "120px",
130
+ rules: T
131
+ }, {
132
+ default: u(() => [
133
+ l[13] || (l[13] = f("div", { class: "title-content" }, "基本信息", -1)),
134
+ e(_, null, {
135
+ default: u(() => [
136
+ e(d, { span: 12 }, {
137
+ default: u(() => [
138
+ e(a, {
139
+ label: s.$t("goodsSpu.spuName"),
140
+ prop: "spuName"
141
+ }, {
142
+ default: u(() => [
143
+ e(i, {
144
+ modelValue: t(o).spuName,
145
+ "onUpdate:modelValue": l[0] || (l[0] = (r) => t(o).spuName = r),
146
+ placeholder: s.$t("goodsSpu.spuNameRequired"),
147
+ maxlength: "60",
148
+ "show-word-limit": "",
149
+ clearable: ""
150
+ }, null, 8, ["modelValue", "placeholder"])
151
+ ]),
152
+ _: 1
153
+ }, 8, ["label"])
154
+ ]),
155
+ _: 1
156
+ }),
157
+ e(d, { span: 12 }, {
158
+ default: u(() => [
159
+ e(a, {
160
+ label: s.$t("goodsSpu.spuCode"),
161
+ prop: "spuCode"
162
+ }, {
163
+ default: u(() => [
164
+ e(i, {
165
+ modelValue: t(o).spuCode,
166
+ "onUpdate:modelValue": l[1] || (l[1] = (r) => t(o).spuCode = r),
167
+ placeholder: s.$t("goodsSpu.spuCodeRequired"),
168
+ maxlength: "15",
169
+ "show-word-limit": "",
170
+ clearable: ""
171
+ }, null, 8, ["modelValue", "placeholder"])
172
+ ]),
173
+ _: 1
174
+ }, 8, ["label"])
175
+ ]),
176
+ _: 1
177
+ }),
178
+ e(d, { span: 12 }, {
179
+ default: u(() => [
180
+ e(a, {
181
+ label: s.$t("goodsSpu.categoryId"),
182
+ prop: "categoryIds"
183
+ }, {
184
+ default: u(() => [
185
+ e(A, {
186
+ modelValue: t(o).categoryIds,
187
+ "onUpdate:modelValue": l[2] || (l[2] = (r) => t(o).categoryIds = r),
188
+ data: t(m).goodsCategoryListBizLayDict.values,
189
+ multiple: "",
190
+ "render-after-expand": !1,
191
+ "show-checkbox": "",
192
+ placeholder: s.$t("goodsSpu.categoryIdRequired"),
193
+ class: "w-full"
194
+ }, null, 8, ["modelValue", "data", "placeholder"])
195
+ ]),
196
+ _: 1
197
+ }, 8, ["label"])
198
+ ]),
199
+ _: 1
200
+ }),
201
+ e(d, { span: 12 }, {
202
+ default: u(() => [
203
+ e(a, {
204
+ label: s.$t("goodsSpu.freightType"),
205
+ prop: "freightType"
206
+ }, {
207
+ default: u(() => [
208
+ e(q, {
209
+ modelValue: t(o).freightType,
210
+ "onUpdate:modelValue": l[3] || (l[3] = (r) => t(o).freightType = r),
211
+ data: t(m).freightTypeEnum.values,
212
+ onChange: E
213
+ }, null, 8, ["modelValue", "data"])
214
+ ]),
215
+ _: 1
216
+ }, 8, ["label"])
217
+ ]),
218
+ _: 1
219
+ }),
220
+ e(d, { span: 12 }, {
221
+ default: u(() => [
222
+ e(a, {
223
+ label: s.$t("goodsSpu.freightAmount"),
224
+ prop: "freightAmount"
225
+ }, {
226
+ default: u(() => [
227
+ e(c, {
228
+ modelValue: t(o).freightAmount,
229
+ "onUpdate:modelValue": l[4] || (l[4] = (r) => t(o).freightAmount = r),
230
+ readonly: t(o).freightType === "FREIGHT_FREE",
231
+ precision: 2,
232
+ step: 0.1,
233
+ controls: !1,
234
+ min: 0,
235
+ placeholder: s.$t("goodsSpu.freightAmountRequired"),
236
+ class: "w-full"
237
+ }, null, 8, ["modelValue", "readonly", "placeholder"])
238
+ ]),
239
+ _: 1
240
+ }, 8, ["label"])
241
+ ]),
242
+ _: 1
243
+ }),
244
+ e(d, { span: 12 }, {
245
+ default: u(() => [
246
+ e(a, {
247
+ label: s.$t("goodsSpu.minPrice"),
248
+ prop: "minPrice"
249
+ }, {
250
+ default: u(() => [
251
+ e(c, {
252
+ modelValue: t(o).minPrice,
253
+ "onUpdate:modelValue": l[5] || (l[5] = (r) => t(o).minPrice = r),
254
+ precision: 2,
255
+ step: 0.1,
256
+ controls: !1,
257
+ min: 0,
258
+ placeholder: s.$t("goodsSpu.minPriceRequired"),
259
+ class: "w-full"
260
+ }, null, 8, ["modelValue", "placeholder"])
261
+ ]),
262
+ _: 1
263
+ }, 8, ["label"])
264
+ ]),
265
+ _: 1
266
+ }),
267
+ e(d, { span: 12 }, {
268
+ default: u(() => [
269
+ e(a, {
270
+ label: s.$t("goodsSpu.maxPrice"),
271
+ prop: "maxPrice"
272
+ }, {
273
+ default: u(() => [
274
+ e(c, {
275
+ modelValue: t(o).maxPrice,
276
+ "onUpdate:modelValue": l[6] || (l[6] = (r) => t(o).maxPrice = r),
277
+ precision: 2,
278
+ step: 0.1,
279
+ controls: !1,
280
+ min: 0,
281
+ placeholder: s.$t("goodsSpu.maxPriceRequired"),
282
+ class: "w-full"
283
+ }, null, 8, ["modelValue", "placeholder"])
284
+ ]),
285
+ _: 1
286
+ }, 8, ["label"])
287
+ ]),
288
+ _: 1
289
+ }),
290
+ e(d, { span: 24 }, {
291
+ default: u(() => [
292
+ e(a, {
293
+ label: s.$t("goodsSpu.picUrls"),
294
+ prop: "picUrls"
295
+ }, {
296
+ default: u(() => [
297
+ f("div", ee, [
298
+ e(D, {
299
+ modelValue: t(o).picUrls,
300
+ "onUpdate:modelValue": l[7] || (l[7] = (r) => t(o).picUrls = r),
301
+ limit: 6,
302
+ "list-type": "picture-card"
303
+ }, null, 8, ["modelValue"]),
304
+ l[11] || (l[11] = f("div", { class: "red-color" }, " 推荐尺寸:100*100或同比例图片,最少上传1张 ", -1))
305
+ ])
306
+ ]),
307
+ _: 1
308
+ }, 8, ["label"])
309
+ ]),
310
+ _: 1
311
+ }),
312
+ e(d, { span: 12 }, {
313
+ default: u(() => [
314
+ e(a, {
315
+ label: s.$t("goodsSpu.shelf"),
316
+ prop: "shelf"
317
+ }, {
318
+ default: u(() => [
319
+ e(q, {
320
+ modelValue: t(o).shelf,
321
+ "onUpdate:modelValue": l[8] || (l[8] = (r) => t(o).shelf = r),
322
+ data: t(m).shelfDict.values
323
+ }, null, 8, ["modelValue", "data"])
324
+ ]),
325
+ _: 1
326
+ }, 8, ["label"])
327
+ ]),
328
+ _: 1
329
+ }),
330
+ e(d, { span: 12 }, {
331
+ default: u(() => [
332
+ e(a, {
333
+ label: s.$t("goodsSpu.saleNum"),
334
+ prop: "saleNum"
335
+ }, {
336
+ default: u(() => [
337
+ e(c, {
338
+ modelValue: t(o).saleNum,
339
+ "onUpdate:modelValue": l[9] || (l[9] = (r) => t(o).saleNum = r),
340
+ placeholder: s.$t("goodsSpu.saleNumRequired"),
341
+ class: "w-full",
342
+ min: 0,
343
+ controls: !1,
344
+ precision: 0
345
+ }, null, 8, ["modelValue", "placeholder"])
346
+ ]),
347
+ _: 1
348
+ }, 8, ["label"])
349
+ ]),
350
+ _: 1
351
+ }),
352
+ e(d, { span: 24 }, {
353
+ default: u(() => [
354
+ e(a, {
355
+ label: s.$t("goodsSpu.labelIds"),
356
+ prop: "labelIds"
357
+ }, {
358
+ default: u(() => [
359
+ e(L, {
360
+ modelValue: t(o).labelIds,
361
+ "onUpdate:modelValue": l[10] || (l[10] = (r) => t(o).labelIds = r),
362
+ class: "w-full"
363
+ }, {
364
+ default: u(() => [
365
+ (h(!0), v(j, null, x(t(m).labelListBizDict.values, (r) => (h(), U(F, {
366
+ key: r.key,
367
+ label: r.key
368
+ }, {
369
+ default: u(() => [
370
+ w(M(r.value), 1)
371
+ ]),
372
+ _: 2
373
+ }, 1032, ["label"]))), 128))
374
+ ]),
375
+ _: 1
376
+ }, 8, ["modelValue"])
377
+ ]),
378
+ _: 1
379
+ }, 8, ["label"])
380
+ ]),
381
+ _: 1
382
+ })
383
+ ]),
384
+ _: 1
385
+ }),
386
+ l[14] || (l[14] = f("div", { class: "title-content" }, "套装商品", -1)),
387
+ e(_, null, {
388
+ default: u(() => [
389
+ !t(g).query.spuId || S.value ? (h(), U(W, {
390
+ key: 0,
391
+ form: t(o),
392
+ onGetGoodsSku: N
393
+ }, null, 8, ["form"])) : H("", !0)
394
+ ]),
395
+ _: 1
396
+ }),
397
+ e(_, null, {
398
+ default: u(() => [
399
+ e(a, null, {
400
+ default: u(() => [
401
+ e(B, {
402
+ type: "primary",
403
+ onClick: $
404
+ }, {
405
+ default: u(() => l[12] || (l[12] = [
406
+ w("保存")
407
+ ])),
408
+ _: 1,
409
+ __: [12]
410
+ })
411
+ ]),
412
+ _: 1
413
+ })
414
+ ]),
415
+ _: 1
416
+ })
417
+ ]),
418
+ _: 1,
419
+ __: [13, 14]
420
+ }, 8, ["model", "rules"])
421
+ ])
422
+ ]);
423
+ };
424
+ }
425
+ });
426
+ export {
427
+ ie as default
428
+ };
@@ -4,11 +4,11 @@ import { ElMessage as $ } from "element-plus";
4
4
  import { useRouter as Y, useRoute as Z } from "vue-router";
5
5
  import { routerUtil as E } from "jmash-core";
6
6
  import { useI18n as x } from "vue-i18n";
7
- import { D as i, C as ee } from "./index-jCpYt-EU.mjs";
8
- import { a as _ } from "./index-C7oatDPl.mjs";
7
+ import { D as i, C as ee } from "./index-CMkWXcWe.mjs";
8
+ import { a as _ } from "./index-utNcRJx7.mjs";
9
9
  import { g as le } from "./index-BHmGYIuc.mjs";
10
10
  import { WangEditor as oe } from "xyvcard-cms";
11
- import te from "./skuForm-BhAbf2AG.mjs";
11
+ import te from "./skuForm-B_8WQCr3.mjs";
12
12
  const se = { class: "app-container" }, ae = { class: "search-container" }, ue = { class: "image-card" }, he = /* @__PURE__ */ K({
13
13
  __name: "edit",
14
14
  setup(de) {