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