xyvcard-goods 0.0.14 → 0.0.16

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.
@@ -1,15 +1,15 @@
1
- import { defineComponent as j, ref as g, watchEffect as O, computed as W, resolveComponent as p, openBlock as D, createElementBlock as L, Fragment as Z, createVNode as e, withCtx as u, createElementVNode as y, reactive as A, watch as J, unref as t, createBlock as K, createCommentVNode as Q, createTextVNode as X } from "vue";
2
- import { ElMessageBox as Y, ElMessage as F } from "element-plus";
3
- import { fileApi as k, routerUtil as P } from "jmash-core";
4
- import { useI18n as G } from "vue-i18n";
5
- import { _ as x } from "./skuTable-YDBH_oRN.mjs";
6
- import { useRouter as ee, useRoute as le } from "vue-router";
7
- import { D as m, C as oe } from "./index-DZJVaUh3.mjs";
8
- import { goodsSpuApi as B } from "./index.mjs";
9
- import { g as te } from "./index-BHmGYIuc.mjs";
10
- import { WangEditor as se } from "xyvcard-cms";
11
- import ae from "./skuForm-B7yYjwdJ.mjs";
12
- const ue = ["src"], re = /* @__PURE__ */ j({
1
+ import { defineComponent as F, ref as y, watchEffect as M, computed as H, resolveComponent as p, openBlock as B, createElementBlock as P, Fragment as O, createVNode as e, withCtx as a, createElementVNode as V, reactive as D, unref as t, createBlock as W, createCommentVNode as Z, createTextVNode as x } from "vue";
2
+ import { ElMessageBox as J, ElMessage as L } from "element-plus";
3
+ import { fileApi as w, routerUtil as A } from "jmash-core";
4
+ import { useI18n as j } from "vue-i18n";
5
+ import { _ as K } from "./skuTable-DbNThlFG.mjs";
6
+ import { useRouter as Q, useRoute as X } from "vue-router";
7
+ import { D as c, C as Y } from "./index-CmKF2zdn.mjs";
8
+ import { goodsSpuApi as $ } from "./index.mjs";
9
+ import { g as ee } from "./index-BHmGYIuc.mjs";
10
+ import { WangEditor as le } from "xyvcard-cms";
11
+ import oe from "./skuForm-BW2yrv5Z.mjs";
12
+ const te = ["src"], se = /* @__PURE__ */ F({
13
13
  __name: "ImageUpload",
14
14
  props: {
15
15
  modelValue: {
@@ -26,105 +26,107 @@ const ue = ["src"], re = /* @__PURE__ */ j({
26
26
  }
27
27
  },
28
28
  emits: ["update:modelValue"],
29
- setup(b, { emit: i }) {
30
- const { t: h } = G(), c = g(k.uploadUrl()), v = g(k.authHeader()), l = g(), V = g(!1), T = g(""), q = b, f = g([]);
31
- O(() => {
32
- f.value = q.modelValue.split(",").filter(Boolean);
29
+ setup(I, { emit: i }) {
30
+ const { t: h } = j(), f = y(w.uploadUrl()), T = y(w.authHeader()), l = y(), b = y(!1), U = y(""), q = I, g = y([]);
31
+ M(() => {
32
+ g.value = q.modelValue.split(",").filter(Boolean);
33
33
  });
34
- const U = W(
35
- () => f.value.map((a) => ({ url: k.imageUrl(a), status: "success", uid: a }))
36
- ), C = (a) => {
37
- T.value = a.url, V.value = !0;
38
- }, $ = (a) => {
39
- const r = a.size / 1024 / 1024 < 2;
40
- ["image/jpeg", "image/png", "image/gif", "image/jpg"].includes(a.type) && !r && Y.confirm(h("file.imageLtRequired"), h("file.warning"), {
34
+ const R = H(
35
+ () => g.value.map((u) => ({ url: w.imageUrl(u), status: "success", uid: u }))
36
+ ), C = (u) => {
37
+ U.value = u.url, b.value = !0;
38
+ }, E = (u) => {
39
+ const m = u.size / 1024 / 1024 < 2;
40
+ ["image/jpeg", "image/png", "image/gif", "image/jpg"].includes(u.type) && !m && J.confirm(h("file.imageLtRequired"), h("file.warning"), {
41
41
  confirmButtonText: h("common.confirm"),
42
42
  cancelButtonText: h("common.cancel"),
43
43
  type: "warning"
44
44
  }).then(async () => {
45
- }).catch(() => (f.value.splice(-1, 1), n(), !1));
46
- }, R = (a) => {
47
- f.value = f.value.filter((r) => k.imageUrl(r) !== a.url), n();
48
- }, s = (a) => {
49
- f.value.push(a.fileSrc), n();
50
- }, o = i, n = () => {
51
- o("update:modelValue", f.value.join(","));
45
+ }).catch(() => (g.value.splice(-1, 1), r(), !1));
46
+ }, s = (u) => {
47
+ g.value = g.value.filter((m) => w.imageUrl(m) !== u.url), r();
48
+ }, o = (u) => {
49
+ g.value.push(u.fileSrc), r();
50
+ }, d = i, r = () => {
51
+ d("update:modelValue", g.value.join(","));
52
52
  };
53
- return (a, r) => {
54
- const _ = p("Plus"), w = p("el-icon"), S = p("el-upload"), E = p("el-dialog");
55
- return D(), L(Z, null, [
56
- e(S, {
53
+ return (u, m) => {
54
+ const S = p("Plus"), v = p("el-icon"), k = p("el-upload"), N = p("el-dialog");
55
+ return B(), P(O, null, [
56
+ e(k, {
57
57
  ref_key: "uploadImageRef",
58
58
  ref: l,
59
- "file-list": U.value,
60
- "onUpdate:fileList": r[0] || (r[0] = (I) => U.value = I),
61
- action: c.value,
62
- headers: v.value,
63
- limit: b.limit,
64
- "list-type": b.listType,
59
+ "file-list": R.value,
60
+ "onUpdate:fileList": m[0] || (m[0] = (_) => R.value = _),
61
+ action: f.value,
62
+ headers: T.value,
63
+ limit: I.limit,
64
+ "list-type": I.listType,
65
65
  "on-preview": C,
66
- "before-upload": $,
67
- "on-success": s,
68
- "on-remove": R
66
+ "before-upload": E,
67
+ "on-success": o,
68
+ "on-remove": s
69
69
  }, {
70
- default: u(() => [
71
- e(w, null, {
72
- default: u(() => [
73
- e(_)
70
+ default: a(() => [
71
+ e(v, null, {
72
+ default: a(() => [
73
+ e(S)
74
74
  ]),
75
75
  _: 1
76
76
  })
77
77
  ]),
78
78
  _: 1
79
79
  }, 8, ["file-list", "action", "headers", "limit", "list-type"]),
80
- e(E, {
81
- modelValue: V.value,
82
- "onUpdate:modelValue": r[1] || (r[1] = (I) => V.value = I),
80
+ e(N, {
81
+ modelValue: b.value,
82
+ "onUpdate:modelValue": m[1] || (m[1] = (_) => b.value = _),
83
83
  fullscreen: !0
84
84
  }, {
85
- default: u(() => [
86
- y("img", {
87
- src: T.value,
85
+ default: a(() => [
86
+ V("img", {
87
+ src: U.value,
88
88
  alt: ""
89
- }, null, 8, ue)
89
+ }, null, 8, te)
90
90
  ]),
91
91
  _: 1
92
92
  }, 8, ["modelValue"])
93
93
  ], 64);
94
94
  };
95
95
  }
96
- }), de = /* @__PURE__ */ x(re, [["__scopeId", "data-v-f10f6f7e"]]), ne = { class: "app-container" }, pe = { class: "search-container" }, ie = { class: "image-card" }, ve = /* @__PURE__ */ j({
96
+ }), ae = /* @__PURE__ */ K(se, [["__scopeId", "data-v-f10f6f7e"]]), ue = { class: "app-container" }, re = { class: "search-container" }, ne = { class: "image-card" }, Se = /* @__PURE__ */ F({
97
97
  __name: "edit",
98
- setup(b) {
99
- var R;
100
- const { t: i } = G(), h = ee(), c = le(), v = g();
101
- m.shopInfoBizDict.useValues(), m.goodsCategoryListBizLayDict.useValues();
102
- let l = A({
98
+ setup(I) {
99
+ const { t: i } = j(), h = Q(), f = X(), T = y();
100
+ c.shopInfoBizDict.useValues(), c.goodsCategoryListBizLayDict.useValues(), console.log(
101
+ c.goodsCategoryListBizLayDict.values,
102
+ "=>goodsCategoryListBizLayDict "
103
+ );
104
+ let l = D({
103
105
  requestId: Math.random() * 10 + "",
104
- updateMask: "shopId,spuName,categoryId,spuCode,freightType,freightAmount,picUrls,shelf,saleNum,sellPoint,specType,description",
106
+ updateMask: "spuName,categoryId,spuCode,freightType,freightAmount,picUrls,shelf,saleNum,sellPoint,specType,description",
105
107
  skuSpecValues: [],
106
- freightType: m.freightTypeEnum.values[0].key,
108
+ freightType: c.freightTypeEnum.values[0].key,
107
109
  freightAmount: 0,
108
- shelf: m.shelfDict.values[0].key,
109
- specType: m.specTypeEnum.values[0].key,
110
- shopId: (R = m.shopInfoBizDict.values[0]) == null ? void 0 : R.key
110
+ shelf: c.shelfDict.values[0].key,
111
+ specType: c.specTypeEnum.values[0].key
112
+ // shopId: Dict.shopInfoBizDict.values[0]?.key,
111
113
  });
112
- const V = (s, o, n) => {
113
- var r;
114
- const a = (r = l.picUrls) == null ? void 0 : r.split(",").filter(Boolean);
115
- if (a != null && a.length) {
116
- if ((a == null ? void 0 : a.length) < 3)
117
- return n(new Error(i("goodsSpu.imageListsError")));
118
- n();
119
- } else return n(new Error(i("goodsSpu.picUrlsRequired")));
120
- }, T = A({
121
- shopId: [
122
- {
123
- required: !0,
124
- message: i("goodsSpu.shopIdRequired"),
125
- trigger: "change"
126
- }
127
- ],
114
+ const b = (s, o, d) => {
115
+ var u;
116
+ const r = (u = l.picUrls) == null ? void 0 : u.split(",").filter(Boolean);
117
+ if (r != null && r.length) {
118
+ if ((r == null ? void 0 : r.length) < 3)
119
+ return d(new Error(i("goodsSpu.imageListsError")));
120
+ d();
121
+ } else return d(new Error(i("goodsSpu.picUrlsRequired")));
122
+ }, U = D({
123
+ // shopId: [
124
+ // {
125
+ // required: true,
126
+ // message: t("goodsSpu.shopIdRequired"),
127
+ // trigger: "change",
128
+ // },
129
+ // ],
128
130
  spuName: [
129
131
  {
130
132
  required: !0,
@@ -162,7 +164,7 @@ const ue = ["src"], re = /* @__PURE__ */ j({
162
164
  ],
163
165
  picUrls: [
164
166
  {
165
- validator: V,
167
+ validator: b,
166
168
  trigger: "change"
167
169
  }
168
170
  ],
@@ -180,94 +182,65 @@ const ue = ["src"], re = /* @__PURE__ */ j({
180
182
  trigger: "change"
181
183
  }
182
184
  ]
183
- }), q = g(!1);
184
- J(
185
- () => l.shopId,
186
- (s) => s,
187
- {
188
- deep: !0,
189
- immediate: !0
190
- }
191
- );
192
- function f(s) {
185
+ }), q = y(!1);
186
+ function g(s) {
193
187
  l.skuSpecValues.push(s), l.skuSpecValues = l.skuSpecValues.slice(-1);
194
188
  }
195
- function U(s) {
189
+ function R(s) {
196
190
  s.forEach((o) => {
197
- var n;
198
- l.specId = (n = o.specValues) == null ? void 0 : n.map((a) => a.specId), l.skuSpecValues.push(o);
191
+ var d;
192
+ l.specId = (d = o.specValues) == null ? void 0 : d.map((r) => r.specId), l.skuSpecValues.push(o);
199
193
  }), l.skuSpecValues = l.skuSpecValues.slice(-s.length);
200
194
  }
201
- c.query.spuId && B.findById({ spuId: c.query.spuId }).then(({ data: s }) => {
202
- Object.assign(l, s), q.value = !0, te.findById({ spuId: c.query.spuId }).then(({ data: o }) => {
195
+ f.query.spuId && $.findById({ spuId: f.query.spuId }).then(({ data: s }) => {
196
+ Object.assign(l, s), q.value = !0, ee.findById({ spuId: f.query.spuId }).then(({ data: o }) => {
203
197
  l.ensureIds = o.ensures;
204
198
  });
205
199
  });
206
200
  const C = async () => {
207
201
  var s;
208
- await ((s = v.value) == null ? void 0 : s.validate((o) => {
209
- o && (c.query.spuId ? B.update(l).then((n) => {
210
- n.status === 200 && (F({
202
+ await ((s = T.value) == null ? void 0 : s.validate((o) => {
203
+ o && (f.query.spuId ? $.update(l).then((d) => {
204
+ d.status === 200 && (L({
211
205
  message: i("common.submitSuccess"),
212
206
  type: "success"
213
- }), P.closeTagView(c.fullPath, h, !1));
214
- }) : B.create(l).then((n) => {
215
- n.status === 200 && (F({
207
+ }), A.closeTagView(f.fullPath, h, !1));
208
+ }) : $.create(l).then((d) => {
209
+ d.status === 200 && (L({
216
210
  message: i("common.submitSuccess"),
217
211
  type: "success"
218
- }), P.closeTagView(c.fullPath, h, !1));
212
+ }), A.closeTagView(f.fullPath, h, !1));
219
213
  }));
220
214
  }));
221
215
  };
222
- function $(s) {
216
+ function E(s) {
223
217
  s === "FREIGHT_FREE" && (l.freightAmount = 0);
224
218
  }
225
219
  return (s, o) => {
226
- const n = p("jmash-select"), a = p("el-form-item"), r = p("el-col"), _ = p("el-input"), w = p("el-tree-select"), S = p("jmash-enum-radio"), E = p("el-input-number"), I = de, z = p("jmash-dict-checkbox"), N = p("el-row"), M = p("el-button"), H = p("el-form");
227
- return D(), L("div", ne, [
228
- y("div", pe, [
229
- e(H, {
220
+ const d = p("el-input"), r = p("el-form-item"), u = p("el-col"), m = p("el-tree-select"), S = p("jmash-enum-radio"), v = p("el-input-number"), k = ae, N = p("jmash-dict-checkbox"), _ = p("el-row"), G = p("el-button"), z = p("el-form");
221
+ return B(), P("div", ue, [
222
+ V("div", re, [
223
+ e(z, {
230
224
  ref_key: "goodsSpuFormRef",
231
- ref: v,
225
+ ref: T,
232
226
  model: t(l),
233
227
  "label-width": "120px",
234
- rules: T
228
+ rules: U
235
229
  }, {
236
- default: u(() => [
237
- o[15] || (o[15] = y("div", { class: "title-content" }, "基本信息", -1)),
238
- e(N, null, {
239
- default: u(() => [
240
- e(r, { span: 12 }, {
241
- default: u(() => [
242
- e(a, {
243
- label: s.$t("goodsSpu.shopId"),
244
- prop: "shopId"
245
- }, {
246
- default: u(() => [
247
- e(n, {
248
- modelValue: t(l).shopId,
249
- "onUpdate:modelValue": o[0] || (o[0] = (d) => t(l).shopId = d),
250
- placeholder: s.$t("goodsSpu.shopIdRequired"),
251
- data: t(m).shopInfoBizDict.values,
252
- filterable: "",
253
- class: "w-full"
254
- }, null, 8, ["modelValue", "placeholder", "data"])
255
- ]),
256
- _: 1
257
- }, 8, ["label"])
258
- ]),
259
- _: 1
260
- }),
261
- e(r, { span: 12 }, {
262
- default: u(() => [
263
- e(a, {
230
+ default: a(() => [
231
+ o[14] || (o[14] = V("div", { class: "title-content" }, "基本信息", -1)),
232
+ e(_, null, {
233
+ default: a(() => [
234
+ e(u, { span: 12 }, {
235
+ default: a(() => [
236
+ e(r, {
264
237
  label: s.$t("goodsSpu.spuName"),
265
238
  prop: "spuName"
266
239
  }, {
267
- default: u(() => [
268
- e(_, {
240
+ default: a(() => [
241
+ e(d, {
269
242
  modelValue: t(l).spuName,
270
- "onUpdate:modelValue": o[1] || (o[1] = (d) => t(l).spuName = d),
243
+ "onUpdate:modelValue": o[0] || (o[0] = (n) => t(l).spuName = n),
271
244
  placeholder: s.$t("goodsSpu.spuNameRequired"),
272
245
  maxlength: "60",
273
246
  "show-word-limit": "",
@@ -279,21 +252,20 @@ const ue = ["src"], re = /* @__PURE__ */ j({
279
252
  ]),
280
253
  _: 1
281
254
  }),
282
- e(r, { span: 12 }, {
283
- default: u(() => [
284
- e(a, {
255
+ e(u, { span: 12 }, {
256
+ default: a(() => [
257
+ e(r, {
285
258
  label: s.$t("goodsSpu.categoryId"),
286
259
  prop: "categoryId"
287
260
  }, {
288
- default: u(() => [
289
- e(w, {
261
+ default: a(() => [
262
+ e(m, {
290
263
  modelValue: t(l).categoryId,
291
- "onUpdate:modelValue": o[2] || (o[2] = (d) => t(l).categoryId = d),
292
- data: t(m).goodsCategoryListBizLayDict.values,
293
- filterable: "",
294
- clearable: "",
295
- "check-strictly": "",
264
+ "onUpdate:modelValue": o[1] || (o[1] = (n) => t(l).categoryId = n),
265
+ data: t(c).goodsCategoryListBizLayDict.values,
266
+ multiple: "",
296
267
  "render-after-expand": !1,
268
+ "show-checkbox": "",
297
269
  placeholder: s.$t("goodsSpu.categoryIdRequired"),
298
270
  class: "w-full"
299
271
  }, null, 8, ["modelValue", "data", "placeholder"])
@@ -303,16 +275,16 @@ const ue = ["src"], re = /* @__PURE__ */ j({
303
275
  ]),
304
276
  _: 1
305
277
  }),
306
- e(r, { span: 12 }, {
307
- default: u(() => [
308
- e(a, {
278
+ e(u, { span: 12 }, {
279
+ default: a(() => [
280
+ e(r, {
309
281
  label: s.$t("goodsSpu.spuCode"),
310
282
  prop: "spuCode"
311
283
  }, {
312
- default: u(() => [
313
- e(_, {
284
+ default: a(() => [
285
+ e(d, {
314
286
  modelValue: t(l).spuCode,
315
- "onUpdate:modelValue": o[3] || (o[3] = (d) => t(l).spuCode = d),
287
+ "onUpdate:modelValue": o[2] || (o[2] = (n) => t(l).spuCode = n),
316
288
  placeholder: s.$t("goodsSpu.spuCodeRequired"),
317
289
  maxlength: "15",
318
290
  "show-word-limit": "",
@@ -324,18 +296,18 @@ const ue = ["src"], re = /* @__PURE__ */ j({
324
296
  ]),
325
297
  _: 1
326
298
  }),
327
- e(r, { span: 12 }, {
328
- default: u(() => [
329
- e(a, {
299
+ e(u, { span: 12 }, {
300
+ default: a(() => [
301
+ e(r, {
330
302
  label: s.$t("goodsSpu.freightType"),
331
303
  prop: "freightType"
332
304
  }, {
333
- default: u(() => [
305
+ default: a(() => [
334
306
  e(S, {
335
307
  modelValue: t(l).freightType,
336
- "onUpdate:modelValue": o[4] || (o[4] = (d) => t(l).freightType = d),
337
- data: t(m).freightTypeEnum.values,
338
- onChange: $
308
+ "onUpdate:modelValue": o[3] || (o[3] = (n) => t(l).freightType = n),
309
+ data: t(c).freightTypeEnum.values,
310
+ onChange: E
339
311
  }, null, 8, ["modelValue", "data"])
340
312
  ]),
341
313
  _: 1
@@ -343,16 +315,16 @@ const ue = ["src"], re = /* @__PURE__ */ j({
343
315
  ]),
344
316
  _: 1
345
317
  }),
346
- e(r, { span: 12 }, {
347
- default: u(() => [
348
- e(a, {
318
+ e(u, { span: 12 }, {
319
+ default: a(() => [
320
+ e(r, {
349
321
  label: s.$t("goodsSpu.freightAmount"),
350
322
  prop: "freightAmount"
351
323
  }, {
352
- default: u(() => [
353
- e(E, {
324
+ default: a(() => [
325
+ e(v, {
354
326
  modelValue: t(l).freightAmount,
355
- "onUpdate:modelValue": o[5] || (o[5] = (d) => t(l).freightAmount = d),
327
+ "onUpdate:modelValue": o[4] || (o[4] = (n) => t(l).freightAmount = n),
356
328
  readonly: t(l).freightType === "FREIGHT_FREE",
357
329
  precision: 2,
358
330
  step: 0.1,
@@ -367,21 +339,21 @@ const ue = ["src"], re = /* @__PURE__ */ j({
367
339
  ]),
368
340
  _: 1
369
341
  }),
370
- e(r, { span: 24 }, {
371
- default: u(() => [
372
- e(a, {
342
+ e(u, { span: 24 }, {
343
+ default: a(() => [
344
+ e(r, {
373
345
  label: s.$t("goodsSpu.picUrls"),
374
346
  prop: "picUrls"
375
347
  }, {
376
- default: u(() => [
377
- y("div", ie, [
378
- e(I, {
348
+ default: a(() => [
349
+ V("div", ne, [
350
+ e(k, {
379
351
  modelValue: t(l).picUrls,
380
- "onUpdate:modelValue": o[6] || (o[6] = (d) => t(l).picUrls = d),
352
+ "onUpdate:modelValue": o[5] || (o[5] = (n) => t(l).picUrls = n),
381
353
  limit: 6,
382
354
  "list-type": "picture-card"
383
355
  }, null, 8, ["modelValue"]),
384
- o[13] || (o[13] = y("div", { class: "red-color" }, " 推荐尺寸:100*100或同比例图片,最少上传3张 ", -1))
356
+ o[12] || (o[12] = V("div", { class: "red-color" }, " 推荐尺寸:100*100或同比例图片,最少上传3张 ", -1))
385
357
  ])
386
358
  ]),
387
359
  _: 1
@@ -389,17 +361,17 @@ const ue = ["src"], re = /* @__PURE__ */ j({
389
361
  ]),
390
362
  _: 1
391
363
  }),
392
- e(r, { span: 12 }, {
393
- default: u(() => [
394
- e(a, {
364
+ e(u, { span: 12 }, {
365
+ default: a(() => [
366
+ e(r, {
395
367
  label: s.$t("goodsSpu.shelf"),
396
368
  prop: "shelf"
397
369
  }, {
398
- default: u(() => [
370
+ default: a(() => [
399
371
  e(S, {
400
372
  modelValue: t(l).shelf,
401
- "onUpdate:modelValue": o[7] || (o[7] = (d) => t(l).shelf = d),
402
- data: t(m).shelfDict.values
373
+ "onUpdate:modelValue": o[6] || (o[6] = (n) => t(l).shelf = n),
374
+ data: t(c).shelfDict.values
403
375
  }, null, 8, ["modelValue", "data"])
404
376
  ]),
405
377
  _: 1
@@ -407,16 +379,16 @@ const ue = ["src"], re = /* @__PURE__ */ j({
407
379
  ]),
408
380
  _: 1
409
381
  }),
410
- e(r, { span: 12 }, {
411
- default: u(() => [
412
- e(a, {
382
+ e(u, { span: 12 }, {
383
+ default: a(() => [
384
+ e(r, {
413
385
  label: s.$t("goodsSpu.saleNum"),
414
386
  prop: "saleNum"
415
387
  }, {
416
- default: u(() => [
417
- e(E, {
388
+ default: a(() => [
389
+ e(v, {
418
390
  modelValue: t(l).saleNum,
419
- "onUpdate:modelValue": o[8] || (o[8] = (d) => t(l).saleNum = d),
391
+ "onUpdate:modelValue": o[7] || (o[7] = (n) => t(l).saleNum = n),
420
392
  placeholder: s.$t("goodsSpu.saleNumRequired"),
421
393
  class: "w-full",
422
394
  min: 0,
@@ -429,16 +401,16 @@ const ue = ["src"], re = /* @__PURE__ */ j({
429
401
  ]),
430
402
  _: 1
431
403
  }),
432
- e(r, { span: 24 }, {
433
- default: u(() => [
434
- e(a, {
404
+ e(u, { span: 24 }, {
405
+ default: a(() => [
406
+ e(r, {
435
407
  label: s.$t("goodsSpu.sellPoint"),
436
408
  prop: "sellPoint"
437
409
  }, {
438
- default: u(() => [
439
- e(_, {
410
+ default: a(() => [
411
+ e(d, {
440
412
  modelValue: t(l).sellPoint,
441
- "onUpdate:modelValue": o[9] || (o[9] = (d) => t(l).sellPoint = d),
413
+ "onUpdate:modelValue": o[8] || (o[8] = (n) => t(l).sellPoint = n),
442
414
  placeholder: s.$t("goodsSpu.sellPointRequired"),
443
415
  maxlength: "250",
444
416
  "show-word-limit": "",
@@ -452,17 +424,17 @@ const ue = ["src"], re = /* @__PURE__ */ j({
452
424
  ]),
453
425
  _: 1
454
426
  }),
455
- e(r, { span: 24 }, {
456
- default: u(() => [
457
- e(a, {
427
+ e(u, { span: 24 }, {
428
+ default: a(() => [
429
+ e(r, {
458
430
  label: s.$t("goodsSpu.ensureIds"),
459
431
  prop: "ensureIds"
460
432
  }, {
461
- default: u(() => [
462
- e(z, {
433
+ default: a(() => [
434
+ e(N, {
463
435
  modelValue: t(l).ensureIds,
464
- "onUpdate:modelValue": o[10] || (o[10] = (d) => t(l).ensureIds = d),
465
- "type-code": t(oe).DICT_GOODS_ENSURE
436
+ "onUpdate:modelValue": o[9] || (o[9] = (n) => t(l).ensureIds = n),
437
+ "type-code": t(Y).DICT_GOODS_ENSURE
466
438
  }, null, 8, ["modelValue", "type-code"])
467
439
  ]),
468
440
  _: 1
@@ -473,20 +445,20 @@ const ue = ["src"], re = /* @__PURE__ */ j({
473
445
  ]),
474
446
  _: 1
475
447
  }),
476
- o[16] || (o[16] = y("div", { class: "title-content" }, "商品规格", -1)),
477
- e(N, null, {
478
- default: u(() => [
479
- e(r, { span: 24 }, {
480
- default: u(() => [
481
- e(a, {
448
+ o[15] || (o[15] = V("div", { class: "title-content" }, "商品规格", -1)),
449
+ e(_, null, {
450
+ default: a(() => [
451
+ e(u, { span: 24 }, {
452
+ default: a(() => [
453
+ e(r, {
482
454
  label: s.$t("goodsSpu.specType"),
483
455
  prop: "specType"
484
456
  }, {
485
- default: u(() => [
457
+ default: a(() => [
486
458
  e(S, {
487
459
  modelValue: t(l).specType,
488
- "onUpdate:modelValue": o[11] || (o[11] = (d) => t(l).specType = d),
489
- data: t(m).specTypeEnum.values
460
+ "onUpdate:modelValue": o[10] || (o[10] = (n) => t(l).specType = n),
461
+ data: t(c).specTypeEnum.values
490
462
  }, null, 8, ["modelValue", "data"])
491
463
  ]),
492
464
  _: 1
@@ -494,30 +466,30 @@ const ue = ["src"], re = /* @__PURE__ */ j({
494
466
  ]),
495
467
  _: 1
496
468
  }),
497
- !t(c).query.spuId || q.value ? (D(), K(ae, {
469
+ !t(f).query.spuId || q.value ? (B(), W(oe, {
498
470
  key: 0,
499
471
  "spec-type": t(l).specType,
500
472
  form: t(l),
501
473
  isDisabled: !t(l).shopId,
502
- onGetGoodsSku: f,
503
- onGetFormData: U
504
- }, null, 8, ["spec-type", "form", "isDisabled"])) : Q("", !0)
474
+ onGetGoodsSku: g,
475
+ onGetFormData: R
476
+ }, null, 8, ["spec-type", "form", "isDisabled"])) : Z("", !0)
505
477
  ]),
506
478
  _: 1
507
479
  }),
508
- o[17] || (o[17] = y("div", { class: "title-content" }, "商品详情", -1)),
509
- e(N, null, {
510
- default: u(() => [
511
- e(r, { span: 24 }, {
512
- default: u(() => [
513
- e(a, {
480
+ o[16] || (o[16] = V("div", { class: "title-content" }, "商品详情", -1)),
481
+ e(_, null, {
482
+ default: a(() => [
483
+ e(u, { span: 24 }, {
484
+ default: a(() => [
485
+ e(r, {
514
486
  label: s.$t("goodsSpu.description"),
515
487
  prop: "description"
516
488
  }, {
517
- default: u(() => [
518
- e(t(se), {
489
+ default: a(() => [
490
+ e(t(le), {
519
491
  modelValue: t(l).description,
520
- "onUpdate:modelValue": o[12] || (o[12] = (d) => t(l).description = d),
492
+ "onUpdate:modelValue": o[11] || (o[11] = (n) => t(l).description = n),
521
493
  style: { width: "100%" }
522
494
  }, null, 8, ["modelValue"])
523
495
  ]),
@@ -526,17 +498,17 @@ const ue = ["src"], re = /* @__PURE__ */ j({
526
498
  ]),
527
499
  _: 1
528
500
  }),
529
- e(a, null, {
530
- default: u(() => [
531
- e(M, {
501
+ e(r, null, {
502
+ default: a(() => [
503
+ e(G, {
532
504
  type: "primary",
533
505
  onClick: C
534
506
  }, {
535
- default: u(() => o[14] || (o[14] = [
536
- X("保存")
507
+ default: a(() => o[13] || (o[13] = [
508
+ x("保存")
537
509
  ])),
538
510
  _: 1,
539
- __: [14]
511
+ __: [13]
540
512
  })
541
513
  ]),
542
514
  _: 1
@@ -546,7 +518,7 @@ const ue = ["src"], re = /* @__PURE__ */ j({
546
518
  })
547
519
  ]),
548
520
  _: 1,
549
- __: [15, 16, 17]
521
+ __: [14, 15, 16]
550
522
  }, 8, ["model", "rules"])
551
523
  ])
552
524
  ]);
@@ -554,5 +526,5 @@ const ue = ["src"], re = /* @__PURE__ */ j({
554
526
  }
555
527
  });
556
528
  export {
557
- ve as default
529
+ Se as default
558
530
  };