xyvcard-goods 0.0.28 → 0.0.30

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 (31) hide show
  1. package/dist/{edit-CquWa3hI.mjs → edit-BY1AVieE.mjs} +131 -128
  2. package/dist/{edit-CYekSxUa.mjs → edit-BYxk3lFr.mjs} +3 -3
  3. package/dist/{edit-C_XCVJwM.mjs → edit-CRc6GqY4.mjs} +8 -8
  4. package/dist/{edit-CuZnQH9w.mjs → edit-D9JqZTHN.mjs} +1 -1
  5. package/dist/{edit-D1FAN3TA.mjs → edit-ehVvbusK.mjs} +23 -30
  6. package/dist/{edit.vue_vue_type_script_setup_true_lang-BSxqVyG4.mjs → edit.vue_vue_type_script_setup_true_lang-d769FSho.mjs} +3 -3
  7. package/dist/index-BLO5ssji.mjs +562 -0
  8. package/dist/{index-nCeCw43N.mjs → index-BaX061kc.mjs} +87 -92
  9. package/dist/index-CNVwLggO.mjs +644 -0
  10. package/dist/{index-wH3Sgvus.mjs → index-DloS7z9I.mjs} +1 -1
  11. package/dist/{index-B27GuULR.mjs → index-Dpms2ryP.mjs} +9 -9
  12. package/dist/{index-B3vvD7JH.mjs → index-DvCC73mO.mjs} +61 -63
  13. package/dist/{index-Dd1dJx7i.mjs → index-R43ND-Ey.mjs} +32 -37
  14. package/dist/{index-COXyxAor.mjs → index-Vu01FEMS.mjs} +53 -46
  15. package/dist/index.mjs +1 -1
  16. package/dist/{info-NBnTd9fK.mjs → info-CJxN7XOi.mjs} +2 -2
  17. package/dist/{info-0Pf9u0GJ.mjs → info-CzhzwS5C.mjs} +3 -3
  18. package/dist/{skuForm-BsvKk2kD.mjs → skuForm-K3S131WX.mjs} +86 -83
  19. package/dist/{skuForm-CU0a2ltJ.mjs → skuForm-X1aeeUCX.mjs} +2 -2
  20. package/dist/{skuTable-DgDGWX-n.mjs → skuTable-7VaeJKGp.mjs} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dts/api/goods-spu/types.d.ts +1 -0
  23. package/dts/api/index.d.ts +1 -0
  24. package/dts/constant.d.ts +10 -0
  25. package/package.json +4 -4
  26. package/dist/goodsList-DZlaY5k0.mjs +0 -4
  27. package/dist/goodsList-wpPEPZqs.mjs +0 -4
  28. package/dist/goodsList.vue_vue_type_script_setup_true_lang-BFXFifWr.mjs +0 -565
  29. package/dist/goodsList.vue_vue_type_script_setup_true_lang-iXycU5oS.mjs +0 -714
  30. package/dist/index-DFxg3rmo.mjs +0 -55
  31. package/dist/index-Dy5JznUz.mjs +0 -53
@@ -1,18 +1,18 @@
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 P, createElementVNode as f, createVNode as e, unref as t, withCtx as r, Fragment as x, renderList as M, createBlock as v, createTextVNode as U, toDisplayString as j, createCommentVNode as H } from "vue";
3
- import { ElMessage as w } from "element-plus";
1
+ import { _ as x } from "./ImageUpload-Dk6GY6PA.mjs";
2
+ import { defineComponent as z, ref as P, reactive as R, resolveComponent as p, openBlock as h, createElementBlock as I, createElementVNode as f, createVNode as e, unref as r, withCtx as s, Fragment as M, renderList as O, createBlock as k, createTextVNode as v, toDisplayString as H, createCommentVNode as j } from "vue";
3
+ import { ElMessage as U } from "element-plus";
4
4
  import { useRouter as Y, useRoute as J } from "vue-router";
5
- import { routerUtil as k } from "jmash-core";
5
+ import { routerUtil as w } from "jmash-core";
6
6
  import { useI18n as K } from "vue-i18n";
7
- import { D as m, C as Q } from "./index-COXyxAor.mjs";
8
- import { a as b } from "./index-B27GuULR.mjs";
9
- import W from "./skuForm-BsvKk2kD.mjs";
10
- const X = { class: "app-container" }, Z = { class: "search-container" }, ee = { class: "image-card" }, pe = /* @__PURE__ */ O({
7
+ import { D as m, C as Q } from "./index-Vu01FEMS.mjs";
8
+ import { a as b } from "./index-Dpms2ryP.mjs";
9
+ import W from "./skuForm-K3S131WX.mjs";
10
+ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = { class: "image-card" }, pe = /* @__PURE__ */ z({
11
11
  __name: "edit",
12
12
  setup(le) {
13
- const { t: n } = K(), y = Y(), g = J(), V = R();
13
+ const { t: i } = K(), y = Y(), g = J(), V = P();
14
14
  m.goodsCategoryListBizLayDict.useValues(), m.labelListBizDict.useValues();
15
- let o = I({
15
+ let o = R({
16
16
  requestId: Math.random() * 10 + "",
17
17
  updateMask: "labelIds,minPrice,maxPrice,spuName,categoryIds,spuCode,freightType,freightAmount,picUrls,shelf,saleNum",
18
18
  skuSpecValues: [],
@@ -21,61 +21,61 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
21
21
  shelf: m.shelfDict.values[0].key,
22
22
  goodsType: Q.GOODS_TYPE.GROUP
23
23
  });
24
- const C = (s, l, i) => {
24
+ const C = (t, l, n) => {
25
25
  var d;
26
26
  const a = (d = o.picUrls) == null ? void 0 : d.split(",").filter(Boolean);
27
27
  if (a != null && a.length) {
28
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
- }, N = I({
29
+ return n(new Error(i("goodsSpu.imageListsErrors")));
30
+ n();
31
+ } else return n(new Error(i("goodsSpu.picUrlsRequired")));
32
+ }, N = R({
33
33
  spuName: [
34
34
  {
35
35
  required: !0,
36
- message: n("goodsSpu.spuNameRequired"),
36
+ message: i("goodsSpu.spuNameRequired"),
37
37
  trigger: "blur"
38
38
  }
39
39
  ],
40
40
  minPrice: [
41
41
  {
42
42
  required: !0,
43
- message: n("goodsSpu.minPriceRequired"),
43
+ message: i("goodsSpu.minPriceRequired"),
44
44
  trigger: "blur"
45
45
  }
46
46
  ],
47
47
  maxPrice: [
48
48
  {
49
49
  required: !0,
50
- message: n("goodsSpu.maxPriceRequired"),
50
+ message: i("goodsSpu.maxPriceRequired"),
51
51
  trigger: "blur"
52
52
  }
53
53
  ],
54
54
  categoryIds: [
55
55
  {
56
56
  required: !0,
57
- message: n("goodsSpu.categoryIdRequired"),
57
+ message: i("goodsSpu.categoryIdRequired"),
58
58
  trigger: "change"
59
59
  }
60
60
  ],
61
61
  spuCode: [
62
62
  {
63
63
  required: !0,
64
- message: n("goodsSpu.spuCodeRequired"),
64
+ message: i("goodsSpu.spuCodeRequired"),
65
65
  trigger: "change"
66
66
  }
67
67
  ],
68
68
  freightType: [
69
69
  {
70
70
  required: !0,
71
- message: n("goodsSpu.freightTypeRequired"),
71
+ message: i("goodsSpu.freightTypeRequired"),
72
72
  trigger: "change"
73
73
  }
74
74
  ],
75
75
  freightAmount: [
76
76
  {
77
77
  required: !0,
78
- message: n("goodsSpu.freightAmountRequired"),
78
+ message: i("goodsSpu.freightAmountRequired"),
79
79
  trigger: "blur"
80
80
  }
81
81
  ],
@@ -88,64 +88,66 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
88
88
  shelf: [
89
89
  {
90
90
  required: !0,
91
- message: n("goodsSpu.shelfRequired"),
91
+ message: i("goodsSpu.shelfRequired"),
92
92
  trigger: "change"
93
93
  }
94
94
  ]
95
- }), S = R(!1);
96
- function T(s) {
97
- o.groupInfos = s;
98
- const l = s.reduce((i, a) => i + (a.saleNum || 0) * (a.salePrice || 0), 0);
95
+ }), S = P(!1);
96
+ function T(t) {
97
+ o.groupInfos = t;
98
+ const l = t.reduce((a, d) => a + (d.saleNum || 0) * (d.salePrice || 0), 0);
99
99
  o.minPrice = l;
100
+ const n = t.reduce((a, d) => a + (d.marketPrice || 0), 0);
101
+ o.maxPrice = n, console.log(l, n);
100
102
  }
101
- g.query.spuId && b.findById({ spuId: g.query.spuId }).then(({ data: s }) => {
102
- Object.assign(o, s), S.value = !0;
103
+ g.query.spuId && b.findById({ spuId: g.query.spuId }).then(({ data: t }) => {
104
+ Object.assign(o, t), S.value = !0;
103
105
  });
104
106
  const $ = async () => {
105
- var s;
106
- await ((s = V.value) == null ? void 0 : s.validate((l) => {
107
- l && (g.query.spuId ? b.updateList(o).then((i) => {
108
- i.status === 200 && (w({
109
- message: n("common.submitSuccess"),
107
+ var t;
108
+ await ((t = V.value) == null ? void 0 : t.validate((l) => {
109
+ l && (g.query.spuId ? b.updateList(o).then((n) => {
110
+ n.status === 200 && (U({
111
+ message: i("common.submitSuccess"),
110
112
  type: "success"
111
- }), k.closeTagView(g.fullPath, y, !1));
112
- }) : b.createList(o).then((i) => {
113
- i.status === 200 && (w({
114
- message: n("common.submitSuccess"),
113
+ }), w.closeTagView(g.fullPath, y, !1));
114
+ }) : b.createList(o).then((n) => {
115
+ n.status === 200 && (U({
116
+ message: i("common.submitSuccess"),
115
117
  type: "success"
116
- }), k.closeTagView(g.fullPath, y, !1));
118
+ }), w.closeTagView(g.fullPath, y, !1));
117
119
  }));
118
120
  }));
119
121
  };
120
- function E(s) {
121
- s === "FREIGHT_FREE" && (o.freightAmount = 0);
122
+ function E(t) {
123
+ t === "FREIGHT_FREE" && (o.freightAmount = 0);
122
124
  }
123
- return (s, l) => {
124
- const i = p("el-input"), a = p("el-form-item"), d = p("el-col"), A = p("el-tree-select"), c = p("el-input-number"), q = p("jmash-enum-radio"), D = z, F = p("el-checkbox"), L = p("el-checkbox-group"), _ = p("el-row"), B = p("el-button"), G = p("el-form");
125
- return h(), P("div", X, [
125
+ return (t, l) => {
126
+ const n = p("el-input"), a = p("el-form-item"), d = p("el-col"), A = p("el-tree-select"), c = p("el-input-number"), q = p("jmash-enum-radio"), D = x, F = p("el-checkbox"), L = p("el-checkbox-group"), _ = p("el-row"), B = p("el-button"), G = p("el-form");
127
+ return h(), I("div", X, [
126
128
  f("div", Z, [
127
129
  e(G, {
128
130
  ref_key: "goodsSpuFormRef",
129
131
  ref: V,
130
- model: t(o),
132
+ model: r(o),
131
133
  "label-width": "120px",
132
134
  rules: N
133
135
  }, {
134
- default: r(() => [
136
+ default: s(() => [
135
137
  l[13] || (l[13] = f("div", { class: "title-content" }, "基本信息", -1)),
136
138
  e(_, null, {
137
- default: r(() => [
139
+ default: s(() => [
138
140
  e(d, { span: 12 }, {
139
- default: r(() => [
141
+ default: s(() => [
140
142
  e(a, {
141
- label: s.$t("goodsSpu.spuName"),
143
+ label: t.$t("goodsSpu.spuName"),
142
144
  prop: "spuName"
143
145
  }, {
144
- default: r(() => [
145
- e(i, {
146
- modelValue: t(o).spuName,
147
- "onUpdate:modelValue": l[0] || (l[0] = (u) => t(o).spuName = u),
148
- placeholder: s.$t("goodsSpu.spuNameRequired"),
146
+ default: s(() => [
147
+ e(n, {
148
+ modelValue: r(o).spuName,
149
+ "onUpdate:modelValue": l[0] || (l[0] = (u) => r(o).spuName = u),
150
+ placeholder: t.$t("goodsSpu.spuNameRequired"),
149
151
  maxlength: "60",
150
152
  "show-word-limit": "",
151
153
  clearable: ""
@@ -157,16 +159,16 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
157
159
  _: 1
158
160
  }),
159
161
  e(d, { span: 12 }, {
160
- default: r(() => [
162
+ default: s(() => [
161
163
  e(a, {
162
- label: s.$t("goodsSpu.spuCode"),
164
+ label: t.$t("goodsSpu.spuCode"),
163
165
  prop: "spuCode"
164
166
  }, {
165
- default: r(() => [
166
- e(i, {
167
- modelValue: t(o).spuCode,
168
- "onUpdate:modelValue": l[1] || (l[1] = (u) => t(o).spuCode = u),
169
- placeholder: s.$t("goodsSpu.spuCodeRequired"),
167
+ default: s(() => [
168
+ e(n, {
169
+ modelValue: r(o).spuCode,
170
+ "onUpdate:modelValue": l[1] || (l[1] = (u) => r(o).spuCode = u),
171
+ placeholder: t.$t("goodsSpu.spuCodeRequired"),
170
172
  maxlength: "15",
171
173
  "show-word-limit": "",
172
174
  clearable: ""
@@ -178,20 +180,20 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
178
180
  _: 1
179
181
  }),
180
182
  e(d, { span: 12 }, {
181
- default: r(() => [
183
+ default: s(() => [
182
184
  e(a, {
183
- label: s.$t("goodsSpu.categoryId"),
185
+ label: t.$t("goodsSpu.categoryId"),
184
186
  prop: "categoryIds"
185
187
  }, {
186
- default: r(() => [
188
+ default: s(() => [
187
189
  e(A, {
188
- modelValue: t(o).categoryIds,
189
- "onUpdate:modelValue": l[2] || (l[2] = (u) => t(o).categoryIds = u),
190
- data: t(m).goodsCategoryListBizLayDict.values,
190
+ modelValue: r(o).categoryIds,
191
+ "onUpdate:modelValue": l[2] || (l[2] = (u) => r(o).categoryIds = u),
192
+ data: r(m).goodsCategoryListBizLayDict.values,
191
193
  multiple: "",
192
194
  "render-after-expand": !1,
193
195
  "show-checkbox": "",
194
- placeholder: s.$t("goodsSpu.categoryIdRequired"),
196
+ placeholder: t.$t("goodsSpu.categoryIdRequired"),
195
197
  class: "w-full"
196
198
  }, null, 8, ["modelValue", "data", "placeholder"])
197
199
  ]),
@@ -201,16 +203,16 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
201
203
  _: 1
202
204
  }),
203
205
  e(d, { span: 12 }, {
204
- default: r(() => [
206
+ default: s(() => [
205
207
  e(a, {
206
- label: s.$t("goodsSpu.saleNum"),
208
+ label: t.$t("goodsSpu.saleNum"),
207
209
  prop: "saleNum"
208
210
  }, {
209
- default: r(() => [
211
+ default: s(() => [
210
212
  e(c, {
211
- modelValue: t(o).saleNum,
212
- "onUpdate:modelValue": l[3] || (l[3] = (u) => t(o).saleNum = u),
213
- placeholder: s.$t("goodsSpu.saleNumRequired"),
213
+ modelValue: r(o).saleNum,
214
+ "onUpdate:modelValue": l[3] || (l[3] = (u) => r(o).saleNum = u),
215
+ placeholder: t.$t("goodsSpu.saleNumRequired"),
214
216
  class: "w-full",
215
217
  min: 0,
216
218
  controls: !1,
@@ -223,16 +225,16 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
223
225
  _: 1
224
226
  }),
225
227
  e(d, { span: 12 }, {
226
- default: r(() => [
228
+ default: s(() => [
227
229
  e(a, {
228
- label: s.$t("goodsSpu.freightType"),
230
+ label: t.$t("goodsSpu.freightType"),
229
231
  prop: "freightType"
230
232
  }, {
231
- default: r(() => [
233
+ default: s(() => [
232
234
  e(q, {
233
- modelValue: t(o).freightType,
234
- "onUpdate:modelValue": l[4] || (l[4] = (u) => t(o).freightType = u),
235
- data: t(m).freightTypeEnum.values,
235
+ modelValue: r(o).freightType,
236
+ "onUpdate:modelValue": l[4] || (l[4] = (u) => r(o).freightType = u),
237
+ data: r(m).freightTypeEnum.values,
236
238
  onChange: E
237
239
  }, null, 8, ["modelValue", "data"])
238
240
  ]),
@@ -242,21 +244,21 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
242
244
  _: 1
243
245
  }),
244
246
  e(d, { span: 12 }, {
245
- default: r(() => [
247
+ default: s(() => [
246
248
  e(a, {
247
- label: s.$t("goodsSpu.freightAmount"),
249
+ label: t.$t("goodsSpu.freightAmount"),
248
250
  prop: "freightAmount"
249
251
  }, {
250
- default: r(() => [
252
+ default: s(() => [
251
253
  e(c, {
252
- modelValue: t(o).freightAmount,
253
- "onUpdate:modelValue": l[5] || (l[5] = (u) => t(o).freightAmount = u),
254
- readonly: t(o).freightType === "FREIGHT_FREE",
254
+ modelValue: r(o).freightAmount,
255
+ "onUpdate:modelValue": l[5] || (l[5] = (u) => r(o).freightAmount = u),
256
+ readonly: r(o).freightType === "FREIGHT_FREE",
255
257
  precision: 2,
256
258
  step: 0.1,
257
259
  controls: !1,
258
260
  min: 0,
259
- placeholder: s.$t("goodsSpu.freightAmountRequired"),
261
+ placeholder: t.$t("goodsSpu.freightAmountRequired"),
260
262
  class: "w-full"
261
263
  }, null, 8, ["modelValue", "readonly", "placeholder"])
262
264
  ]),
@@ -266,20 +268,20 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
266
268
  _: 1
267
269
  }),
268
270
  e(d, { span: 12 }, {
269
- default: r(() => [
271
+ default: s(() => [
270
272
  e(a, {
271
- label: s.$t("goodsSpu.minPrice"),
273
+ label: t.$t("goodsSpu.minPrice"),
272
274
  prop: "minPrice"
273
275
  }, {
274
- default: r(() => [
276
+ default: s(() => [
275
277
  e(c, {
276
- modelValue: t(o).minPrice,
277
- "onUpdate:modelValue": l[6] || (l[6] = (u) => t(o).minPrice = u),
278
+ modelValue: r(o).minPrice,
279
+ "onUpdate:modelValue": l[6] || (l[6] = (u) => r(o).minPrice = u),
278
280
  precision: 2,
279
281
  step: 0.1,
280
282
  controls: !1,
281
283
  min: 0,
282
- placeholder: s.$t("goodsSpu.minPriceRequired"),
284
+ placeholder: t.$t("goodsSpu.minPriceRequired"),
283
285
  class: "w-full",
284
286
  disabled: ""
285
287
  }, null, 8, ["modelValue", "placeholder"])
@@ -290,21 +292,22 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
290
292
  _: 1
291
293
  }),
292
294
  e(d, { span: 12 }, {
293
- default: r(() => [
295
+ default: s(() => [
294
296
  e(a, {
295
- label: s.$t("goodsSpu.maxPrice"),
297
+ label: t.$t("goodsSpu.maxPrice"),
296
298
  prop: "maxPrice"
297
299
  }, {
298
- default: r(() => [
300
+ default: s(() => [
299
301
  e(c, {
300
- modelValue: t(o).maxPrice,
301
- "onUpdate:modelValue": l[7] || (l[7] = (u) => t(o).maxPrice = u),
302
+ modelValue: r(o).maxPrice,
303
+ "onUpdate:modelValue": l[7] || (l[7] = (u) => r(o).maxPrice = u),
302
304
  precision: 2,
303
305
  step: 0.1,
304
306
  controls: !1,
305
307
  min: 0,
306
- placeholder: s.$t("goodsSpu.maxPriceRequired"),
307
- class: "w-full"
308
+ placeholder: t.$t("goodsSpu.maxPriceRequired"),
309
+ class: "w-full",
310
+ disabled: ""
308
311
  }, null, 8, ["modelValue", "placeholder"])
309
312
  ]),
310
313
  _: 1
@@ -313,16 +316,16 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
313
316
  _: 1
314
317
  }),
315
318
  e(d, { span: 24 }, {
316
- default: r(() => [
319
+ default: s(() => [
317
320
  e(a, {
318
- label: s.$t("goodsSpu.picUrls"),
321
+ label: t.$t("goodsSpu.picUrls"),
319
322
  prop: "picUrls"
320
323
  }, {
321
- default: r(() => [
324
+ default: s(() => [
322
325
  f("div", ee, [
323
326
  e(D, {
324
- modelValue: t(o).picUrls,
325
- "onUpdate:modelValue": l[8] || (l[8] = (u) => t(o).picUrls = u),
327
+ modelValue: r(o).picUrls,
328
+ "onUpdate:modelValue": l[8] || (l[8] = (u) => r(o).picUrls = u),
326
329
  limit: 6,
327
330
  "list-type": "picture-card"
328
331
  }, null, 8, ["modelValue"]),
@@ -335,16 +338,16 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
335
338
  _: 1
336
339
  }),
337
340
  e(d, { span: 12 }, {
338
- default: r(() => [
341
+ default: s(() => [
339
342
  e(a, {
340
- label: s.$t("goodsSpu.shelf"),
343
+ label: t.$t("goodsSpu.shelf"),
341
344
  prop: "shelf"
342
345
  }, {
343
- default: r(() => [
346
+ default: s(() => [
344
347
  e(q, {
345
- modelValue: t(o).shelf,
346
- "onUpdate:modelValue": l[9] || (l[9] = (u) => t(o).shelf = u),
347
- data: t(m).shelfDict.values
348
+ modelValue: r(o).shelf,
349
+ "onUpdate:modelValue": l[9] || (l[9] = (u) => r(o).shelf = u),
350
+ data: r(m).shelfDict.values
348
351
  }, null, 8, ["modelValue", "data"])
349
352
  ]),
350
353
  _: 1
@@ -353,24 +356,24 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
353
356
  _: 1
354
357
  }),
355
358
  e(d, { span: 12 }, {
356
- default: r(() => [
359
+ default: s(() => [
357
360
  e(a, {
358
- label: s.$t("goodsSpu.labelIds"),
361
+ label: t.$t("goodsSpu.labelIds"),
359
362
  prop: "labelIds"
360
363
  }, {
361
- default: r(() => [
364
+ default: s(() => [
362
365
  e(L, {
363
- modelValue: t(o).labelIds,
364
- "onUpdate:modelValue": l[10] || (l[10] = (u) => t(o).labelIds = u),
366
+ modelValue: r(o).labelIds,
367
+ "onUpdate:modelValue": l[10] || (l[10] = (u) => r(o).labelIds = u),
365
368
  class: "w-full"
366
369
  }, {
367
- default: r(() => [
368
- (h(!0), P(x, null, M(t(m).labelListBizDict.values, (u) => (h(), v(F, {
370
+ default: s(() => [
371
+ (h(!0), I(M, null, O(r(m).labelListBizDict.values, (u) => (h(), k(F, {
369
372
  key: u.key,
370
373
  label: u.key
371
374
  }, {
372
- default: r(() => [
373
- U(j(u.value), 1)
375
+ default: s(() => [
376
+ v(H(u.value), 1)
374
377
  ]),
375
378
  _: 2
376
379
  }, 1032, ["label"]))), 128))
@@ -388,25 +391,25 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
388
391
  }),
389
392
  l[14] || (l[14] = f("div", { class: "title-content" }, "套装商品", -1)),
390
393
  e(_, null, {
391
- default: r(() => [
392
- !t(g).query.spuId || S.value ? (h(), v(W, {
394
+ default: s(() => [
395
+ !r(g).query.spuId || S.value ? (h(), k(W, {
393
396
  key: 0,
394
- form: t(o),
397
+ form: r(o),
395
398
  onGetGoodsSku: T
396
- }, null, 8, ["form"])) : H("", !0)
399
+ }, null, 8, ["form"])) : j("", !0)
397
400
  ]),
398
401
  _: 1
399
402
  }),
400
403
  e(_, null, {
401
- default: r(() => [
404
+ default: s(() => [
402
405
  e(a, null, {
403
- default: r(() => [
406
+ default: s(() => [
404
407
  e(B, {
405
408
  type: "primary",
406
409
  onClick: $
407
410
  }, {
408
- default: r(() => l[12] || (l[12] = [
409
- U("保存")
411
+ default: s(() => l[12] || (l[12] = [
412
+ v("保存")
410
413
  ])),
411
414
  _: 1,
412
415
  __: [12]
@@ -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-COXyxAor.mjs";
8
- import { a as _ } from "./index-B27GuULR.mjs";
7
+ import { D as i, C as ee } from "./index-Vu01FEMS.mjs";
8
+ import { a as _ } from "./index-Dpms2ryP.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-CU0a2ltJ.mjs";
11
+ import te from "./skuForm-X1aeeUCX.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) {
@@ -1,7 +1,7 @@
1
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
2
  import { ElMessage as w } from "element-plus";
3
3
  import { useI18n as S } from "vue-i18n";
4
- import { b as p } from "./index-B27GuULR.mjs";
4
+ import { b as c } from "./index-Dpms2ryP.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",
@@ -16,7 +16,7 @@ const x = { class: "dialog-footer" }, A = /* @__PURE__ */ j({
16
16
  modelModifiers: {}
17
17
  }),
18
18
  emits: /* @__PURE__ */ v(["refresh"], ["update:modelValue"]),
19
- setup(c, { emit: k }) {
19
+ setup(p, { emit: k }) {
20
20
  const { t: u } = S(), b = I();
21
21
  let a = C({
22
22
  requestId: Math.random() * 10 + "",
@@ -37,19 +37,19 @@ const x = { class: "dialog-footer" }, A = /* @__PURE__ */ j({
37
37
  trigger: "change"
38
38
  }
39
39
  ]
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 }) => {
40
+ }), s = E(p, "modelValue"), g = p, _ = k, $ = Object.keys(g.entityKey), y = I($.length >= 1);
41
+ y.value && c.findById(g.entityKey).then(({ data: e }) => {
42
42
  Object.assign(a, e);
43
43
  });
44
44
  const R = async () => {
45
45
  var e;
46
46
  await ((e = b.value) == null ? void 0 : e.validate((t) => {
47
- t && (y.value ? p.update(a).then((n) => {
47
+ t && (y.value ? c.update(a).then((n) => {
48
48
  n.status === 200 && (w({
49
49
  message: u("common.submitSuccess"),
50
50
  type: "success"
51
51
  }), s.value && (s.value = !1), _("refresh", n.status === 200));
52
- }) : p.create(a).then((n) => {
52
+ }) : c.create(a).then((n) => {
53
53
  n.status === 200 && (w({
54
54
  message: u("common.submitSuccess"),
55
55
  type: "success"
@@ -91,7 +91,7 @@ const x = { class: "dialog-footer" }, A = /* @__PURE__ */ j({
91
91
  ref_key: "goodsLabelInfoFormRef",
92
92
  ref: b,
93
93
  model: r(a),
94
- "label-width": "120px",
94
+ "label-width": "90px",
95
95
  rules: q
96
96
  }, {
97
97
  default: o(() => [
@@ -170,7 +170,7 @@ const x = { class: "dialog-footer" }, A = /* @__PURE__ */ j({
170
170
  }, 8, ["modelValue"]);
171
171
  };
172
172
  }
173
- }), P = /* @__PURE__ */ D(A, [["__scopeId", "data-v-7789ee13"]]);
173
+ }), P = /* @__PURE__ */ D(A, [["__scopeId", "data-v-4ec2418d"]]);
174
174
  export {
175
175
  P as default
176
176
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-BSxqVyG4.mjs";
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-d769FSho.mjs";
2
2
  export {
3
3
  f as default
4
4
  };