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,24 +1,25 @@
1
- import { defineComponent as K, ref as v, reactive as T, resolveComponent as n, openBlock as f, createElementBlock as h, createElementVNode as c, createVNode as e, unref as t, withCtx as s, Fragment as R, renderList as w, createBlock as _, createTextVNode as U, toDisplayString as Q, createCommentVNode as X } from "vue";
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";
2
3
  import { ElMessage as C } from "element-plus";
3
4
  import { useRouter as Y, useRoute as Z } from "vue-router";
4
5
  import { routerUtil as E } from "jmash-core";
5
6
  import { useI18n as x } from "vue-i18n";
6
- import { D as p, C as ee } from "./index-CqOoZ5xQ.mjs";
7
- import { goodsSpuApi as V } from "./index.mjs";
7
+ import { D as p, C as ee } from "./index-Dvaotk7B.mjs";
8
+ import { goodsSpuApi as _ } from "./index.mjs";
8
9
  import { g as le } from "./index-BHmGYIuc.mjs";
9
10
  import { WangEditor as oe } from "xyvcard-cms";
10
- import te from "./skuForm-D2n8sQJo.mjs";
11
- const se = { class: "app-container" }, ae = { class: "search-container" }, ue = { class: "image-card" }, he = /* @__PURE__ */ K({
11
+ import se from "./skuForm-CgjMd46J.mjs";
12
+ const te = { class: "app-container" }, ue = { class: "search-container" }, ae = { class: "image-card" }, he = /* @__PURE__ */ K({
12
13
  __name: "edit",
13
- setup(re) {
14
+ setup(de) {
14
15
  const { t: m } = x();
15
16
  p.brandListBizDict.useValues(), console.log(p.brandListBizDict.values, "=> brandListBizDict");
16
- const S = Y(), g = Z(), I = v();
17
+ const S = Y(), g = Z(), I = q();
17
18
  p.shopInfoBizDict.useValues(), p.goodsCategoryListBizLayDict.useValues(), p.labelListBizDict.useValues(), console.log(
18
19
  p.goodsCategoryListBizLayDict.values,
19
20
  "=>goodsCategoryListBizLayDict "
20
21
  );
21
- let l = T({
22
+ let o = T({
22
23
  requestId: Math.random() * 10 + "",
23
24
  updateMask: "labelIds,brandId,spuName,categoryIds,spuCode,freightType,freightAmount,picUrls,shelf,saleNum,sellPoint,specType,description",
24
25
  skuSpecValues: [],
@@ -27,15 +28,15 @@ const se = { class: "app-container" }, ae = { class: "search-container" }, ue =
27
28
  shelf: p.shelfDict.values[0].key,
28
29
  specType: p.specTypeEnum.values[0].key
29
30
  });
30
- const D = (a, o, i) => {
31
- var d;
32
- const r = (d = l.picUrls) == null ? void 0 : d.split(",").filter(Boolean);
33
- if (r != null && r.length) {
34
- if ((r == null ? void 0 : r.length) < 1)
35
- return i(new Error(m("goodsSpu.imageListsError")));
36
- i();
37
- } else return i(new Error(m("goodsSpu.picUrlsRequired")));
38
- }, $ = T({
31
+ const $ = (a, l, n) => {
32
+ var r;
33
+ const d = (r = o.picUrls) == null ? void 0 : r.split(",").filter(Boolean);
34
+ if (d != null && d.length) {
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({
39
40
  brandId: [
40
41
  {
41
42
  required: !0,
@@ -80,7 +81,7 @@ const se = { class: "app-container" }, ae = { class: "search-container" }, ue =
80
81
  ],
81
82
  picUrls: [
82
83
  {
83
- validator: D,
84
+ validator: $,
84
85
  trigger: "change"
85
86
  }
86
87
  ],
@@ -98,31 +99,31 @@ const se = { class: "app-container" }, ae = { class: "search-container" }, ue =
98
99
  trigger: "change"
99
100
  }
100
101
  ]
101
- }), k = v(!1);
102
+ }), v = q(!1);
102
103
  function N(a) {
103
- l.skuSpecValues.push(a), l.skuSpecValues = l.skuSpecValues.slice(-1);
104
+ o.skuSpecValues.push(a), o.skuSpecValues = o.skuSpecValues.slice(-1);
104
105
  }
105
106
  function B(a) {
106
- a.forEach((o) => {
107
- var i;
108
- l.specId = (i = o.specValues) == null ? void 0 : i.map((r) => r.specId), l.skuSpecValues.push(o);
109
- }), l.skuSpecValues = l.skuSpecValues.slice(-a.length);
107
+ a.forEach((l) => {
108
+ var n;
109
+ o.specId = (n = l.specValues) == null ? void 0 : n.map((d) => d.specId), o.skuSpecValues.push(l);
110
+ }), o.skuSpecValues = o.skuSpecValues.slice(-a.length);
110
111
  }
111
- g.query.spuId && V.findById({ spuId: g.query.spuId }).then(({ data: a }) => {
112
- Object.assign(l, a), k.value = !0, le.findById({ spuId: g.query.spuId }).then(({ data: o }) => {
113
- l.ensureIds = o.ensures;
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 }) => {
114
+ o.ensureIds = l.ensures;
114
115
  });
115
116
  });
116
117
  const L = async () => {
117
118
  var a;
118
- await ((a = I.value) == null ? void 0 : a.validate((o) => {
119
- o && (g.query.spuId ? V.update(l).then((i) => {
120
- i.status === 200 && (C({
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({
121
122
  message: m("common.submitSuccess"),
122
123
  type: "success"
123
124
  }), E.closeTagView(g.fullPath, S, !1));
124
- }) : V.create(l).then((i) => {
125
- i.status === 200 && (C({
125
+ }) : _.create(o).then((n) => {
126
+ n.status === 200 && (C({
126
127
  message: m("common.submitSuccess"),
127
128
  type: "success"
128
129
  }), E.closeTagView(g.fullPath, S, !1));
@@ -130,36 +131,33 @@ const se = { class: "app-container" }, ae = { class: "search-container" }, ue =
130
131
  }));
131
132
  };
132
133
  function z(a) {
133
- a === "FREIGHT_FREE" && (l.freightAmount = 0);
134
+ a === "FREIGHT_FREE" && (o.freightAmount = 0);
134
135
  }
135
- function F(a) {
136
- l.picUrls = a;
137
- }
138
- return (a, o) => {
139
- const i = n("el-input"), r = n("el-form-item"), d = n("el-col"), A = n("el-option"), P = n("el-select"), j = n("el-tree-select"), b = n("jmash-enum-radio"), q = n("el-input-number"), G = n("jmash-single-image-upload"), M = n("jmash-dict-checkbox"), O = n("el-checkbox"), H = n("el-checkbox-group"), y = n("el-row"), W = n("el-button"), J = n("el-form");
140
- return f(), h("div", se, [
141
- c("div", ae, [
142
- e(J, {
136
+ return (a, l) => {
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, {
143
141
  ref_key: "goodsSpuFormRef",
144
142
  ref: I,
145
- model: t(l),
143
+ model: s(o),
146
144
  "label-width": "120px",
147
- rules: $
145
+ rules: D
148
146
  }, {
149
- default: s(() => [
150
- o[14] || (o[14] = c("div", { class: "title-content" }, "基本信息", -1)),
147
+ default: t(() => [
148
+ l[16] || (l[16] = c("div", { class: "title-content" }, "基本信息", -1)),
151
149
  e(y, null, {
152
- default: s(() => [
153
- e(d, { span: 12 }, {
154
- default: s(() => [
155
- e(r, {
150
+ default: t(() => [
151
+ e(r, { span: 12 }, {
152
+ default: t(() => [
153
+ e(d, {
156
154
  label: a.$t("goodsSpu.spuName"),
157
155
  prop: "spuName"
158
156
  }, {
159
- default: s(() => [
160
- e(i, {
161
- modelValue: t(l).spuName,
162
- "onUpdate:modelValue": o[0] || (o[0] = (u) => t(l).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),
163
161
  placeholder: a.$t("goodsSpu.spuNameRequired"),
164
162
  maxlength: "60",
165
163
  "show-word-limit": "",
@@ -171,16 +169,16 @@ const se = { class: "app-container" }, ae = { class: "search-container" }, ue =
171
169
  ]),
172
170
  _: 1
173
171
  }),
174
- e(d, { span: 12 }, {
175
- default: s(() => [
176
- e(r, {
172
+ e(r, { span: 12 }, {
173
+ default: t(() => [
174
+ e(d, {
177
175
  label: a.$t("goodsSpu.spuCode"),
178
176
  prop: "spuCode"
179
177
  }, {
180
- default: s(() => [
181
- e(i, {
182
- modelValue: t(l).spuCode,
183
- "onUpdate:modelValue": o[1] || (o[1] = (u) => t(l).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),
184
182
  placeholder: a.$t("goodsSpu.spuCodeRequired"),
185
183
  maxlength: "15",
186
184
  "show-word-limit": "",
@@ -192,22 +190,22 @@ const se = { class: "app-container" }, ae = { class: "search-container" }, ue =
192
190
  ]),
193
191
  _: 1
194
192
  }),
195
- e(d, { span: 12 }, {
196
- default: s(() => [
197
- e(r, {
193
+ e(r, { span: 12 }, {
194
+ default: t(() => [
195
+ e(d, {
198
196
  label: a.$t("goodsSpu.brandId"),
199
197
  prop: "brandId"
200
198
  }, {
201
- default: s(() => [
202
- e(P, {
203
- modelValue: t(l).brandId,
204
- "onUpdate:modelValue": o[2] || (o[2] = (u) => t(l).brandId = u),
205
- data: t(p).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,
206
204
  placeholder: a.$t("goodsSpu.brandIdRequired"),
207
205
  class: "w-full"
208
206
  }, {
209
- default: s(() => [
210
- (f(!0), h(R, null, w(t(p).brandListBizDict.values, (u) => (f(), _(A, {
207
+ default: t(() => [
208
+ (f(!0), V(R, null, U(s(p).brandListBizDict.values, (u) => (f(), h(F, {
211
209
  key: u.key,
212
210
  label: u.value,
213
211
  value: u.key
@@ -221,17 +219,17 @@ const se = { class: "app-container" }, ae = { class: "search-container" }, ue =
221
219
  ]),
222
220
  _: 1
223
221
  }),
224
- e(d, { span: 12 }, {
225
- default: s(() => [
226
- e(r, {
222
+ e(r, { span: 12 }, {
223
+ default: t(() => [
224
+ e(d, {
227
225
  label: a.$t("goodsSpu.categoryId"),
228
226
  prop: "categoryIds"
229
227
  }, {
230
- default: s(() => [
231
- e(j, {
232
- modelValue: t(l).categoryIds,
233
- "onUpdate:modelValue": o[3] || (o[3] = (u) => t(l).categoryIds = u),
234
- data: t(p).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,
235
233
  multiple: "",
236
234
  "render-after-expand": !1,
237
235
  "show-checkbox": "",
@@ -244,17 +242,17 @@ const se = { class: "app-container" }, ae = { class: "search-container" }, ue =
244
242
  ]),
245
243
  _: 1
246
244
  }),
247
- e(d, { span: 12 }, {
248
- default: s(() => [
249
- e(r, {
245
+ e(r, { span: 12 }, {
246
+ default: t(() => [
247
+ e(d, {
250
248
  label: a.$t("goodsSpu.freightType"),
251
249
  prop: "freightType"
252
250
  }, {
253
- default: s(() => [
251
+ default: t(() => [
254
252
  e(b, {
255
- modelValue: t(l).freightType,
256
- "onUpdate:modelValue": o[4] || (o[4] = (u) => t(l).freightType = u),
257
- data: t(p).freightTypeEnum.values,
253
+ modelValue: s(o).freightType,
254
+ "onUpdate:modelValue": l[4] || (l[4] = (u) => s(o).freightType = u),
255
+ data: s(p).freightTypeEnum.values,
258
256
  onChange: z
259
257
  }, null, 8, ["modelValue", "data"])
260
258
  ]),
@@ -263,17 +261,17 @@ const se = { class: "app-container" }, ae = { class: "search-container" }, ue =
263
261
  ]),
264
262
  _: 1
265
263
  }),
266
- e(d, { span: 12 }, {
267
- default: s(() => [
268
- e(r, {
264
+ e(r, { span: 12 }, {
265
+ default: t(() => [
266
+ e(d, {
269
267
  label: a.$t("goodsSpu.freightAmount"),
270
268
  prop: "freightAmount"
271
269
  }, {
272
- default: s(() => [
273
- e(q, {
274
- modelValue: t(l).freightAmount,
275
- "onUpdate:modelValue": o[5] || (o[5] = (u) => t(l).freightAmount = u),
276
- readonly: t(l).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",
277
275
  precision: 2,
278
276
  step: 0.1,
279
277
  controls: !1,
@@ -287,20 +285,21 @@ const se = { class: "app-container" }, ae = { class: "search-container" }, ue =
287
285
  ]),
288
286
  _: 1
289
287
  }),
290
- e(d, { span: 24 }, {
291
- default: s(() => [
292
- e(r, {
288
+ e(r, { span: 24 }, {
289
+ default: t(() => [
290
+ e(d, {
293
291
  label: a.$t("goodsSpu.picUrls"),
294
292
  prop: "picUrls"
295
293
  }, {
296
- default: s(() => [
297
- c("div", ue, [
294
+ default: t(() => [
295
+ c("div", ae, [
298
296
  e(G, {
299
- "picture-url": t(l).picUrls,
300
- onImageSrc: F,
301
- width: 80,
302
- type: "trans"
303
- }, null, 8, ["picture-url"])
297
+ modelValue: s(o).picUrls,
298
+ "onUpdate:modelValue": l[6] || (l[6] = (u) => s(o).picUrls = u),
299
+ limit: 6,
300
+ "list-type": "picture-card"
301
+ }, null, 8, ["modelValue"]),
302
+ l[14] || (l[14] = c("div", { class: "red-color" }, " 推荐尺寸:100*100或同比例图片,最少上传1张 ", -1))
304
303
  ])
305
304
  ]),
306
305
  _: 1
@@ -308,17 +307,17 @@ const se = { class: "app-container" }, ae = { class: "search-container" }, ue =
308
307
  ]),
309
308
  _: 1
310
309
  }),
311
- e(d, { span: 12 }, {
312
- default: s(() => [
313
- e(r, {
310
+ e(r, { span: 12 }, {
311
+ default: t(() => [
312
+ e(d, {
314
313
  label: a.$t("goodsSpu.shelf"),
315
314
  prop: "shelf"
316
315
  }, {
317
- default: s(() => [
316
+ default: t(() => [
318
317
  e(b, {
319
- modelValue: t(l).shelf,
320
- "onUpdate:modelValue": o[6] || (o[6] = (u) => t(l).shelf = u),
321
- data: t(p).shelfDict.values
318
+ modelValue: s(o).shelf,
319
+ "onUpdate:modelValue": l[7] || (l[7] = (u) => s(o).shelf = u),
320
+ data: s(p).shelfDict.values
322
321
  }, null, 8, ["modelValue", "data"])
323
322
  ]),
324
323
  _: 1
@@ -326,16 +325,16 @@ const se = { class: "app-container" }, ae = { class: "search-container" }, ue =
326
325
  ]),
327
326
  _: 1
328
327
  }),
329
- e(d, { span: 12 }, {
330
- default: s(() => [
331
- e(r, {
328
+ e(r, { span: 12 }, {
329
+ default: t(() => [
330
+ e(d, {
332
331
  label: a.$t("goodsSpu.saleNum"),
333
332
  prop: "saleNum"
334
333
  }, {
335
- default: s(() => [
336
- e(q, {
337
- modelValue: t(l).saleNum,
338
- "onUpdate:modelValue": o[7] || (o[7] = (u) => t(l).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),
339
338
  placeholder: a.$t("goodsSpu.saleNumRequired"),
340
339
  class: "w-full",
341
340
  min: 0,
@@ -348,16 +347,16 @@ const se = { class: "app-container" }, ae = { class: "search-container" }, ue =
348
347
  ]),
349
348
  _: 1
350
349
  }),
351
- e(d, { span: 24 }, {
352
- default: s(() => [
353
- e(r, {
350
+ e(r, { span: 24 }, {
351
+ default: t(() => [
352
+ e(d, {
354
353
  label: a.$t("goodsSpu.sellPoint"),
355
354
  prop: "sellPoint"
356
355
  }, {
357
- default: s(() => [
358
- e(i, {
359
- modelValue: t(l).sellPoint,
360
- "onUpdate:modelValue": o[8] || (o[8] = (u) => t(l).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),
361
360
  placeholder: a.$t("goodsSpu.sellPointRequired"),
362
361
  maxlength: "250",
363
362
  "show-word-limit": "",
@@ -371,17 +370,17 @@ const se = { class: "app-container" }, ae = { class: "search-container" }, ue =
371
370
  ]),
372
371
  _: 1
373
372
  }),
374
- e(d, { span: 24 }, {
375
- default: s(() => [
376
- e(r, {
373
+ e(r, { span: 24 }, {
374
+ default: t(() => [
375
+ e(d, {
377
376
  label: a.$t("goodsSpu.ensureIds"),
378
377
  prop: "ensureIds"
379
378
  }, {
380
- default: s(() => [
381
- e(M, {
382
- modelValue: t(l).ensureIds,
383
- "onUpdate:modelValue": o[9] || (o[9] = (u) => t(l).ensureIds = u),
384
- "type-code": t(ee).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
385
384
  }, null, 8, ["modelValue", "type-code"])
386
385
  ]),
387
386
  _: 1
@@ -389,25 +388,25 @@ const se = { class: "app-container" }, ae = { class: "search-container" }, ue =
389
388
  ]),
390
389
  _: 1
391
390
  }),
392
- e(d, { span: 24 }, {
393
- default: s(() => [
394
- e(r, {
391
+ e(r, { span: 24 }, {
392
+ default: t(() => [
393
+ e(d, {
395
394
  label: a.$t("goodsSpu.labelIds"),
396
395
  prop: "labelIds"
397
396
  }, {
398
- default: s(() => [
399
- e(H, {
400
- modelValue: t(l).labelIds,
401
- "onUpdate:modelValue": o[10] || (o[10] = (u) => t(l).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),
402
401
  class: "w-full"
403
402
  }, {
404
- default: s(() => [
405
- (f(!0), h(R, null, w(t(p).labelListBizDict.values, (u) => (f(), _(O, {
403
+ default: t(() => [
404
+ (f(!0), V(R, null, U(s(p).labelListBizDict.values, (u) => (f(), h(M, {
406
405
  key: u.key,
407
406
  label: u.key
408
407
  }, {
409
- default: s(() => [
410
- U(Q(u.value), 1)
408
+ default: t(() => [
409
+ w(Q(u.value), 1)
411
410
  ]),
412
411
  _: 2
413
412
  }, 1032, ["label"]))), 128))
@@ -423,20 +422,20 @@ const se = { class: "app-container" }, ae = { class: "search-container" }, ue =
423
422
  ]),
424
423
  _: 1
425
424
  }),
426
- o[15] || (o[15] = c("div", { class: "title-content" }, "商品规格", -1)),
425
+ l[17] || (l[17] = c("div", { class: "title-content" }, "商品规格", -1)),
427
426
  e(y, null, {
428
- default: s(() => [
429
- e(d, { span: 24 }, {
430
- default: s(() => [
431
- e(r, {
427
+ default: t(() => [
428
+ e(r, { span: 24 }, {
429
+ default: t(() => [
430
+ e(d, {
432
431
  label: a.$t("goodsSpu.specType"),
433
432
  prop: "specType"
434
433
  }, {
435
- default: s(() => [
434
+ default: t(() => [
436
435
  e(b, {
437
- modelValue: t(l).specType,
438
- "onUpdate:modelValue": o[11] || (o[11] = (u) => t(l).specType = u),
439
- data: t(p).specTypeEnum.values
436
+ modelValue: s(o).specType,
437
+ "onUpdate:modelValue": l[12] || (l[12] = (u) => s(o).specType = u),
438
+ data: s(p).specTypeEnum.values
440
439
  }, null, 8, ["modelValue", "data"])
441
440
  ]),
442
441
  _: 1
@@ -444,29 +443,29 @@ const se = { class: "app-container" }, ae = { class: "search-container" }, ue =
444
443
  ]),
445
444
  _: 1
446
445
  }),
447
- !t(g).query.spuId || k.value ? (f(), _(te, {
446
+ !s(g).query.spuId || v.value ? (f(), h(se, {
448
447
  key: 0,
449
- "spec-type": t(l).specType,
450
- form: t(l),
448
+ "spec-type": s(o).specType,
449
+ form: s(o),
451
450
  onGetGoodsSku: N,
452
451
  onGetFormData: B
453
452
  }, null, 8, ["spec-type", "form"])) : X("", !0)
454
453
  ]),
455
454
  _: 1
456
455
  }),
457
- o[16] || (o[16] = c("div", { class: "title-content" }, "商品详情", -1)),
456
+ l[18] || (l[18] = c("div", { class: "title-content" }, "商品详情", -1)),
458
457
  e(y, null, {
459
- default: s(() => [
460
- e(d, { span: 24 }, {
461
- default: s(() => [
462
- e(r, {
458
+ default: t(() => [
459
+ e(r, { span: 24 }, {
460
+ default: t(() => [
461
+ e(d, {
463
462
  label: a.$t("goodsSpu.description"),
464
463
  prop: "description"
465
464
  }, {
466
- default: s(() => [
467
- e(t(oe), {
468
- modelValue: t(l).description,
469
- "onUpdate:modelValue": o[12] || (o[12] = (u) => t(l).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),
470
469
  style: { width: "100%" }
471
470
  }, null, 8, ["modelValue"])
472
471
  ]),
@@ -475,17 +474,17 @@ const se = { class: "app-container" }, ae = { class: "search-container" }, ue =
475
474
  ]),
476
475
  _: 1
477
476
  }),
478
- e(r, null, {
479
- default: s(() => [
480
- e(W, {
477
+ e(d, null, {
478
+ default: t(() => [
479
+ e(H, {
481
480
  type: "primary",
482
481
  onClick: L
483
482
  }, {
484
- default: s(() => o[13] || (o[13] = [
485
- U("保存")
483
+ default: t(() => l[15] || (l[15] = [
484
+ w("保存")
486
485
  ])),
487
486
  _: 1,
488
- __: [13]
487
+ __: [15]
489
488
  })
490
489
  ]),
491
490
  _: 1
@@ -495,7 +494,7 @@ const se = { class: "app-container" }, ae = { class: "search-container" }, ue =
495
494
  })
496
495
  ]),
497
496
  _: 1,
498
- __: [14, 15, 16]
497
+ __: [16, 17, 18]
499
498
  }, 8, ["model", "rules"])
500
499
  ])
501
500
  ]);