xyvcard-goods 0.0.20 → 0.0.21

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 (35) hide show
  1. package/dist/{edit-Cj13W2TC.mjs → edit-CkR-I5aJ.mjs} +1 -1
  2. package/dist/{edit-Bb2XgE0h.mjs → edit-DFc_TNP3.mjs} +2 -2
  3. package/dist/edit-tCGa_9Kt.mjs +507 -0
  4. package/dist/{edit.vue_vue_type_script_setup_true_lang-D2w1583D.mjs → edit.vue_vue_type_script_setup_true_lang-BlNwikUO.mjs} +1 -1
  5. package/dist/{goodsList-DOXK1EwK.mjs → goodsList-HmPAwD_C.mjs} +1 -1
  6. package/dist/goodsList-TX2ZnRR9.mjs +4 -0
  7. package/dist/{goodsList.vue_vue_type_script_setup_true_lang-COJVlEjX.mjs → goodsList.vue_vue_type_script_setup_true_lang-CGV1dm3W.mjs} +51 -50
  8. package/dist/goodsList.vue_vue_type_script_setup_true_lang-f1Fc6pbd.mjs +576 -0
  9. package/dist/{index-CGAoZY87.mjs → index-B0SXNsHW.mjs} +2 -2
  10. package/dist/{index-DAJiqOCh.mjs → index-BZw9XfQo.mjs} +2 -2
  11. package/dist/{index-D3w33Nba.mjs → index-CqOoZ5xQ.mjs} +11 -7
  12. package/dist/{index-C3FT_Oe7.mjs → index-Ctva-XF0.mjs} +1 -1
  13. package/dist/index-Dt3PP8dN.mjs +53 -0
  14. package/dist/{index-BmOxm1P2.mjs → index-VFsDup14.mjs} +1 -1
  15. package/dist/index.mjs +476 -464
  16. package/dist/{info-DImlMNq0.mjs → info-BTKv0IRt.mjs} +2 -2
  17. package/dist/info-CrghLmS4.mjs +365 -0
  18. package/dist/sku-B-IzfYLq.mjs +52 -0
  19. package/dist/{skuForm-Bt3arW0s.mjs → skuForm-C7rF2noo.mjs} +2 -2
  20. package/dist/skuForm-D2n8sQJo.mjs +475 -0
  21. package/dist/{skuTable-Ahc3WlPp.mjs → skuTable-CEwT-I1Q.mjs} +208 -255
  22. package/dist/skuTable-D-awlXgj.mjs +592 -0
  23. package/dist/style.css +1 -1
  24. package/dts/api/goods-sku/types.d.ts +2 -2
  25. package/dts/api/goods-spu/types.d.ts +1 -1
  26. package/dts/constant.d.ts +4 -0
  27. package/dts/lang/goods/zh-cn.d.ts +1 -0
  28. package/dts/router/index.d.ts +1 -0
  29. package/dts/views/goods/goods-combination/edit.vue.d.ts +2 -0
  30. package/dts/views/goods/goods-combination/goodsList.vue.d.ts +14 -0
  31. package/dts/views/goods/goods-combination/index.vue.d.ts +2 -0
  32. package/dts/views/goods/goods-combination/info.vue.d.ts +2 -0
  33. package/dts/views/goods/goods-combination/skuForm.vue.d.ts +29 -0
  34. package/dts/views/goods/goods-combination/skuTable.vue.d.ts +40 -0
  35. package/package.json +61 -61
@@ -1,56 +1,9 @@
1
- import { defineComponent as T, ref as C, computed as F, watch as $, resolveComponent as g, openBlock as P, createElementBlock as b, createElementVNode as u, createVNode as a, withCtx as d, createTextVNode as y, createCommentVNode as M, Fragment as G, renderList as K, createBlock as z, toDisplayString as D, unref as x } from "vue";
2
- import { D as O } from "./index-D3w33Nba.mjs";
3
- import { fileApi as E } from "jmash-core";
4
- import { _ as H } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
5
- function J(n, h = [], o) {
6
- const { optionValue: f = "id", optionText: U = "name" } = o || {}, w = [];
7
- let k = 0;
8
- const I = {}, S = Q(n);
9
- if (n.length === 0) return w;
10
- n.forEach((v) => {
11
- const { specValueList: t } = v;
12
- if (!t || t.length === 0) return !0;
13
- k = (k || 1) * t.length;
14
- }), h.forEach((v) => {
15
- const { specs: t, ...s } = v;
16
- I[t.map((i) => `${i.specId}_${i.specValueId}`).join("|")] = s;
17
- });
18
- for (let v = 0; v < k; v++) {
19
- const t = [], s = [];
20
- n.forEach((r, c) => {
21
- const { specValueList: l } = r;
22
- let V = {};
23
- if (!l || l.length === 0) return !0;
24
- if (l.length > 1) {
25
- const m = Math.floor(v / S[c]) % l.length;
26
- V = n[c].specValueList[m];
27
- } else
28
- V = n[c].specValueList[0];
29
- !r[f] || !V[f] || (s.push(`${r[f]}_${V[f]}`), t.push({
30
- specId: r[f],
31
- specName: r[U],
32
- specValueId: V[f],
33
- specValueName: V[U]
34
- }));
35
- });
36
- const { ...i } = I[s.join("|")] || {};
37
- w.push({ ...i, specs: t });
38
- }
39
- return w;
40
- }
41
- function Q(n) {
42
- const h = [];
43
- for (let o = n.length - 1; o >= 0; o--)
44
- n[o + 1] && n[o + 1].specValueList ? h[o] = n[o + 1].specValueList.length * h[o + 1] || 1 : h[o] = 1;
45
- return h;
46
- }
47
- function L(n) {
48
- return Array.from(new Set(n));
49
- }
50
- function R(n, h) {
51
- return n = L(n), h = L(h), n.concat(h).filter((o) => !(n.includes(o) && h.includes(o)));
52
- }
53
- const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z = { class: "right-dis" }, ee = { class: "right-dis" }, le = { class: "right-dis" }, se = { class: "right-dis" }, ae = { class: "right-dis" }, te = { class: "right-dis" }, oe = { class: "right-dis" }, ie = { key: 0 }, ne = { key: 1 }, re = /* @__PURE__ */ T({
1
+ import { defineComponent as F, ref as U, computed as T, watch as S, resolveComponent as v, openBlock as g, createElementBlock as h, createElementVNode as n, createVNode as s, withCtx as r, createTextVNode as w, createCommentVNode as L, Fragment as G, renderList as O, createBlock as k, toDisplayString as I, unref as b } from "vue";
2
+ import { f as H, d as J } from "./sku-B-IzfYLq.mjs";
3
+ import { D as K } from "./index-CqOoZ5xQ.mjs";
4
+ import { fileApi as z } from "jmash-core";
5
+ import { _ as M } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
6
+ const Q = { key: 0 }, R = { class: "title-set" }, W = { class: "right-dis" }, X = { class: "right-dis" }, Y = { class: "right-dis" }, Z = { class: "right-dis" }, ee = { class: "right-dis" }, le = { class: "right-dis" }, ae = { class: "right-dis" }, se = { class: "right-dis" }, oe = { key: 0 }, te = { key: 1 }, re = /* @__PURE__ */ F({
54
7
  __name: "skuTable",
55
8
  props: {
56
9
  specData: {
@@ -72,8 +25,8 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
72
25
  }
73
26
  },
74
27
  emits: ["getGoodsSku", "getFormData"],
75
- setup(n, { emit: h }) {
76
- const o = C({
28
+ setup(m, { emit: x }) {
29
+ const u = U({
77
30
  salePrice: 0,
78
31
  marketPrice: 0,
79
32
  costPrice: 0,
@@ -82,41 +35,41 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
82
35
  stock: 0,
83
36
  salePriceV2: 0,
84
37
  salePriceV3: 0
85
- }), f = C([]), U = h, w = n, k = F(() => {
86
- let t = J(w.specData, [], {}).map((i) => ({
87
- specValues: i.specs,
88
- specIds: i.specs.reduce(
89
- (r, c, l) => `${r}${c.specId}-${c.specValueId}${l === i.specs.length - 1 ? "" : "_"}`,
38
+ }), V = U([]), y = x, _ = m, C = T(() => {
39
+ let o = H(_.specData, [], {}).map((t) => ({
40
+ specValues: t.specs,
41
+ specIds: t.specs.reduce(
42
+ (i, d, l) => `${i}${d.specId}-${d.specValueId}${l === t.specs.length - 1 ? "" : "_"}`,
90
43
  ""
91
44
  )
92
- })), s = w.goodsSku.map((i) => {
93
- var r;
45
+ })), a = _.goodsSku.map((t) => {
46
+ var i;
94
47
  return {
95
- ...i,
96
- specIds: (r = i.specValues) == null ? void 0 : r.reduce(
97
- (c, l, V) => `${c}${l.specId}-${l.specValueId}${V === i.specValues.length - 1 ? "" : "_"}`,
48
+ ...t,
49
+ specIds: (i = t.specValues) == null ? void 0 : i.reduce(
50
+ (d, l, f) => `${d}${l.specId}-${l.specValueId}${f === t.specValues.length - 1 ? "" : "_"}`,
98
51
  ""
99
52
  )
100
53
  };
101
54
  });
102
- return t.forEach((i) => {
103
- s.forEach((r) => {
104
- let c = i.specIds.split("_"), l = r.specIds.split("_"), V = !0;
105
- c.forEach((m) => {
106
- l.find((_) => _ == m) || (V = !1);
107
- }), V && (i.picUrl = r.picUrl ? r.picUrl : "", i.skuCode = r.skuCode ? r.skuCode : void 0, i.skuId = r.skuId ? r.skuId : void 0, i.salePrice = r.salePrice, i.salePriceV2 = r.salePriceV2, i.salePriceV3 = r.salePriceV3, i.marketPrice = r.marketPrice, i.costPrice = r.costPrice, i.stock = r.stock, i.weight = r.weight, i.volume = r.volume, i.status = r.status);
55
+ return o.forEach((t) => {
56
+ a.forEach((i) => {
57
+ let d = t.specIds.split("_"), l = i.specIds.split("_"), f = !0;
58
+ d.forEach((p) => {
59
+ l.find((P) => P == p) || (f = !1);
60
+ }), f && (t.picUrl = i.picUrl ? i.picUrl : "", t.skuCode = i.skuCode ? i.skuCode : void 0, t.skuId = i.skuId ? i.skuId : void 0, t.salePrice = i.salePrice, t.salePriceV2 = i.salePriceV2, t.salePriceV3 = i.salePriceV3, t.marketPrice = i.marketPrice, t.costPrice = i.costPrice, t.stock = i.stock, t.weight = i.weight, t.volume = i.volume, t.status = i.status);
108
61
  });
109
- }), t;
62
+ }), o;
110
63
  });
111
- $(
112
- k,
113
- (t, s) => {
114
- var r, c;
115
- if (!t || !t.length) return f.value = [];
116
- if (!s || !s.length)
64
+ S(
65
+ C,
66
+ (o, a) => {
67
+ var i, d;
68
+ if (!o || !o.length) return V.value = [];
69
+ if (!a || !a.length)
117
70
  return;
118
- if (((r = t[0].specValues) == null ? void 0 : r.length) !== ((c = s[0].specValues) == null ? void 0 : c.length))
119
- return f.value = t.map((l) => ({
71
+ if (((i = o[0].specValues) == null ? void 0 : i.length) !== ((d = a[0].specValues) == null ? void 0 : d.length))
72
+ return V.value = o.map((l) => ({
120
73
  ...l,
121
74
  picUrl: "",
122
75
  skuCode: void 0,
@@ -130,20 +83,20 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
130
83
  volume: void 0,
131
84
  status: !0
132
85
  }));
133
- if (t.length === s.length)
134
- return f.value = t.map((l, V) => ({
135
- ...f.value[V],
86
+ if (o.length === a.length)
87
+ return V.value = o.map((l, f) => ({
88
+ ...V.value[f],
136
89
  ...l
137
90
  }));
138
- const i = I(t, s);
139
- if (t.length > s.length) {
91
+ const t = D(o, a);
92
+ if (o.length > a.length) {
140
93
  let l = [];
141
- t.forEach((V) => {
142
- const m = f.value.find(
143
- (_) => _.specIds === V.specIds
94
+ o.forEach((f) => {
95
+ const p = V.value.find(
96
+ (P) => P.specIds === f.specIds
144
97
  );
145
- m ? l.push(m) : l.push({
146
- ...V,
98
+ p ? l.push(p) : l.push({
99
+ ...f,
147
100
  picUrl: "",
148
101
  skuCode: void 0,
149
102
  salePrice: 0,
@@ -156,12 +109,12 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
156
109
  volume: void 0,
157
110
  status: !0
158
111
  });
159
- }), f.value = l;
112
+ }), V.value = l;
160
113
  } else
161
- f.value = f.value.filter(
162
- (l) => !i.includes(l.specIds)
114
+ V.value = V.value.filter(
115
+ (l) => !t.includes(l.specIds)
163
116
  );
164
- f.value = t.map((l) => ({
117
+ V.value = o.map((l) => ({
165
118
  ...l,
166
119
  picUrl: l.picUrl ? l.picUrl : "",
167
120
  skuCode: l.skuCode ? l.skuCode : void 0,
@@ -180,51 +133,51 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
180
133
  deep: !0,
181
134
  immediate: !0
182
135
  }
183
- ), $(
184
- f,
185
- (t) => {
186
- U("getFormData", t);
136
+ ), S(
137
+ V,
138
+ (o) => {
139
+ y("getFormData", o);
187
140
  },
188
141
  {
189
142
  deep: !0,
190
143
  immediate: !0
191
144
  }
192
145
  );
193
- function I(t, s) {
194
- return t = t.map((i) => i.specIds), s = s.map((i) => i.specIds), R(t, s);
146
+ function D(o, a) {
147
+ return o = o.map((t) => t.specIds), a = a.map((t) => t.specIds), J(o, a);
195
148
  }
196
- function S() {
197
- f.value.forEach((t) => {
198
- t.salePrice = o.value.salePrice, t.salePriceV2 = o.value.salePriceV2, t.salePriceV3 = o.value.salePriceV3, t.marketPrice = o.value.marketPrice, t.costPrice = o.value.costPrice, t.weight = o.value.weight, t.volume = o.value.volume, t.stock = o.value.stock;
149
+ function $() {
150
+ V.value.forEach((o) => {
151
+ o.salePrice = u.value.salePrice, o.salePriceV2 = u.value.salePriceV2, o.salePriceV3 = u.value.salePriceV3, o.marketPrice = u.value.marketPrice, o.costPrice = u.value.costPrice, o.weight = u.value.weight, o.volume = u.value.volume, o.stock = u.value.stock;
199
152
  });
200
153
  }
201
- function v(t, s) {
202
- s.picUrl = t;
154
+ function E(o, a) {
155
+ a.picUrl = o;
203
156
  }
204
- return (t, s) => {
205
- const i = g("Setting"), r = g("el-icon"), c = g("el-input-number"), l = g("el-tooltip"), V = g("el-button"), m = g("el-table-column"), _ = g("jmash-single-image-upload"), A = g("el-image"), N = g("el-input"), j = g("el-switch"), q = g("el-table");
206
- return P(), b("div", null, [
207
- n.isSettingShow ? (P(), b("div", W, [
208
- u("div", X, [
209
- a(r, null, {
210
- default: d(() => [
211
- a(i)
157
+ return (o, a) => {
158
+ const t = v("Setting"), i = v("el-icon"), d = v("el-input-number"), l = v("el-tooltip"), f = v("el-button"), p = v("el-table-column"), P = v("jmash-single-image-upload"), A = v("el-image"), N = v("el-input"), q = v("el-switch"), B = v("el-table");
159
+ return g(), h("div", null, [
160
+ m.isSettingShow ? (g(), h("div", Q, [
161
+ n("div", R, [
162
+ s(i, null, {
163
+ default: r(() => [
164
+ s(t)
212
165
  ]),
213
166
  _: 1
214
167
  }),
215
- s[8] || (s[8] = y(" 批量设置 "))
168
+ a[8] || (a[8] = w(" 批量设置 "))
216
169
  ]),
217
- u("span", Y, [
218
- a(l, {
170
+ n("span", W, [
171
+ s(l, {
219
172
  class: "box-item",
220
173
  effect: "dark",
221
174
  content: "销售价(元)",
222
175
  placement: "top-start"
223
176
  }, {
224
- default: d(() => [
225
- a(c, {
226
- modelValue: o.value.salePrice,
227
- "onUpdate:modelValue": s[0] || (s[0] = (e) => o.value.salePrice = e),
177
+ default: r(() => [
178
+ s(d, {
179
+ modelValue: u.value.salePrice,
180
+ "onUpdate:modelValue": a[0] || (a[0] = (e) => u.value.salePrice = e),
228
181
  precision: 2,
229
182
  size: "small",
230
183
  placeholder: "销售价(元)",
@@ -234,17 +187,17 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
234
187
  _: 1
235
188
  })
236
189
  ]),
237
- u("span", Z, [
238
- a(l, {
190
+ n("span", X, [
191
+ s(l, {
239
192
  class: "box-item",
240
193
  effect: "dark",
241
194
  content: "v2会员销售价(元)",
242
195
  placement: "top-start"
243
196
  }, {
244
- default: d(() => [
245
- a(c, {
246
- modelValue: o.value.salePriceV2,
247
- "onUpdate:modelValue": s[1] || (s[1] = (e) => o.value.salePriceV2 = e),
197
+ default: r(() => [
198
+ s(d, {
199
+ modelValue: u.value.salePriceV2,
200
+ "onUpdate:modelValue": a[1] || (a[1] = (e) => u.value.salePriceV2 = e),
248
201
  precision: 2,
249
202
  size: "small",
250
203
  placeholder: "v2会员销售价(元)",
@@ -254,17 +207,17 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
254
207
  _: 1
255
208
  })
256
209
  ]),
257
- u("span", ee, [
258
- a(l, {
210
+ n("span", Y, [
211
+ s(l, {
259
212
  class: "box-item",
260
213
  effect: "dark",
261
214
  content: "v3会员销售价(元)",
262
215
  placement: "top-start"
263
216
  }, {
264
- default: d(() => [
265
- a(c, {
266
- modelValue: o.value.salePriceV3,
267
- "onUpdate:modelValue": s[2] || (s[2] = (e) => o.value.salePriceV3 = e),
217
+ default: r(() => [
218
+ s(d, {
219
+ modelValue: u.value.salePriceV3,
220
+ "onUpdate:modelValue": a[2] || (a[2] = (e) => u.value.salePriceV3 = e),
268
221
  precision: 2,
269
222
  size: "small",
270
223
  placeholder: "v3会员销售价(元)",
@@ -274,17 +227,17 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
274
227
  _: 1
275
228
  })
276
229
  ]),
277
- u("span", le, [
278
- a(l, {
230
+ n("span", Z, [
231
+ s(l, {
279
232
  class: "box-item",
280
233
  effect: "dark",
281
234
  content: "市场价(元)",
282
235
  placement: "top-start"
283
236
  }, {
284
- default: d(() => [
285
- a(c, {
286
- modelValue: o.value.marketPrice,
287
- "onUpdate:modelValue": s[3] || (s[3] = (e) => o.value.marketPrice = e),
237
+ default: r(() => [
238
+ s(d, {
239
+ modelValue: u.value.marketPrice,
240
+ "onUpdate:modelValue": a[3] || (a[3] = (e) => u.value.marketPrice = e),
288
241
  precision: 2,
289
242
  size: "small",
290
243
  placeholder: "市场价(元)",
@@ -294,17 +247,17 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
294
247
  _: 1
295
248
  })
296
249
  ]),
297
- u("span", se, [
298
- a(l, {
250
+ n("span", ee, [
251
+ s(l, {
299
252
  class: "box-item",
300
253
  effect: "dark",
301
254
  content: "成本价(元)",
302
255
  placement: "top-start"
303
256
  }, {
304
- default: d(() => [
305
- a(c, {
306
- modelValue: o.value.costPrice,
307
- "onUpdate:modelValue": s[4] || (s[4] = (e) => o.value.costPrice = e),
257
+ default: r(() => [
258
+ s(d, {
259
+ modelValue: u.value.costPrice,
260
+ "onUpdate:modelValue": a[4] || (a[4] = (e) => u.value.costPrice = e),
308
261
  precision: 2,
309
262
  size: "small",
310
263
  placeholder: "成本价(元)",
@@ -314,17 +267,17 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
314
267
  _: 1
315
268
  })
316
269
  ]),
317
- u("span", ae, [
318
- a(l, {
270
+ n("span", le, [
271
+ s(l, {
319
272
  class: "box-item",
320
273
  effect: "dark",
321
274
  content: "重量(kg)",
322
275
  placement: "top-start"
323
276
  }, {
324
- default: d(() => [
325
- a(c, {
326
- modelValue: o.value.weight,
327
- "onUpdate:modelValue": s[5] || (s[5] = (e) => o.value.weight = e),
277
+ default: r(() => [
278
+ s(d, {
279
+ modelValue: u.value.weight,
280
+ "onUpdate:modelValue": a[5] || (a[5] = (e) => u.value.weight = e),
328
281
  precision: 2,
329
282
  size: "small",
330
283
  placeholder: "重量(kg)",
@@ -334,17 +287,17 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
334
287
  _: 1
335
288
  })
336
289
  ]),
337
- u("span", te, [
338
- a(l, {
290
+ n("span", ae, [
291
+ s(l, {
339
292
  class: "box-item",
340
293
  effect: "dark",
341
294
  content: "体积(m³)",
342
295
  placement: "top-start"
343
296
  }, {
344
- default: d(() => [
345
- a(c, {
346
- modelValue: o.value.volume,
347
- "onUpdate:modelValue": s[6] || (s[6] = (e) => o.value.volume = e),
297
+ default: r(() => [
298
+ s(d, {
299
+ modelValue: u.value.volume,
300
+ "onUpdate:modelValue": a[6] || (a[6] = (e) => u.value.volume = e),
348
301
  precision: 2,
349
302
  size: "small",
350
303
  placeholder: "体积(m³)",
@@ -354,17 +307,17 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
354
307
  _: 1
355
308
  })
356
309
  ]),
357
- u("span", oe, [
358
- a(l, {
310
+ n("span", se, [
311
+ s(l, {
359
312
  class: "box-item",
360
313
  effect: "dark",
361
314
  content: "库存",
362
315
  placement: "top-start"
363
316
  }, {
364
- default: d(() => [
365
- a(c, {
366
- modelValue: o.value.stock,
367
- "onUpdate:modelValue": s[7] || (s[7] = (e) => o.value.stock = e),
317
+ default: r(() => [
318
+ s(d, {
319
+ modelValue: u.value.stock,
320
+ "onUpdate:modelValue": a[7] || (a[7] = (e) => u.value.stock = e),
368
321
  precision: 0,
369
322
  size: "small",
370
323
  placeholder: "库存",
@@ -374,256 +327,256 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
374
327
  _: 1
375
328
  })
376
329
  ]),
377
- a(V, {
330
+ s(f, {
378
331
  type: "primary",
379
332
  size: "small",
380
- onClick: S
333
+ onClick: $
381
334
  }, {
382
- default: d(() => s[9] || (s[9] = [
383
- y("设置")
335
+ default: r(() => a[9] || (a[9] = [
336
+ w("设置")
384
337
  ])),
385
338
  _: 1,
386
339
  __: [9]
387
340
  })
388
- ])) : M("", !0),
389
- a(q, {
390
- data: f.value,
341
+ ])) : L("", !0),
342
+ s(B, {
343
+ data: V.value,
391
344
  class: "w-full top-dis"
392
345
  }, {
393
- default: d(() => [
394
- a(m, { type: "index" }),
395
- (P(!0), b(G, null, K(n.specData, (e, p) => (P(), z(m, {
346
+ default: r(() => [
347
+ s(p, { type: "index" }),
348
+ (g(!0), h(G, null, O(m.specData, (e, c) => (g(), k(p, {
396
349
  key: e.id,
397
350
  prop: e.id,
398
351
  label: e.name
399
352
  }, {
400
- default: d((B) => [
401
- y(D(B.row.specValues[p].specValueName), 1)
353
+ default: r((j) => [
354
+ w(I(j.row.specValues[c].specValueName), 1)
402
355
  ]),
403
356
  _: 2
404
357
  }, 1032, ["prop", "label"]))), 128)),
405
- a(m, {
358
+ s(p, {
406
359
  prop: "picUrl",
407
360
  label: "图片"
408
361
  }, {
409
- default: d((e) => [
410
- n.isSettingShow ? (P(), z(_, {
362
+ default: r((e) => [
363
+ m.isSettingShow ? (g(), k(P, {
411
364
  key: 0,
412
365
  "picture-url": e.row.picUrl,
413
- onImageSrc: (p) => v(p, e.row)
414
- }, null, 8, ["picture-url", "onImageSrc"])) : (P(), z(A, {
366
+ onImageSrc: (c) => E(c, e.row)
367
+ }, null, 8, ["picture-url", "onImageSrc"])) : (g(), k(A, {
415
368
  key: 1,
416
369
  "preview-teleported": "",
417
370
  style: { width: "80px", height: "80px" },
418
- src: x(E).imageUrl(e.row.picUrl, 80, 80),
371
+ src: b(z).imageUrl(e.row.picUrl, 80, 80),
419
372
  "zoom-rate": 1.2,
420
373
  "max-scale": 7,
421
374
  "min-scale": 0.2,
422
- "preview-src-list": [x(E).imageUrl(e.row.picUrl)],
375
+ "preview-src-list": [b(z).imageUrl(e.row.picUrl)],
423
376
  fit: "cover"
424
377
  }, null, 8, ["src", "preview-src-list"]))
425
378
  ]),
426
379
  _: 1
427
380
  }),
428
- a(m, {
381
+ s(p, {
429
382
  prop: "salePrice",
430
383
  label: "销售价(元)",
431
384
  width: "150"
432
385
  }, {
433
- header: d(() => s[10] || (s[10] = [
434
- u("span", { class: "required_red" }, "*", -1),
435
- u("span", null, "销售价(元)", -1)
386
+ header: r(() => a[10] || (a[10] = [
387
+ n("span", { class: "required_red" }, "*", -1),
388
+ n("span", null, "销售价(元)", -1)
436
389
  ])),
437
- default: d((e) => [
438
- u("span", null, [
439
- a(c, {
390
+ default: r((e) => [
391
+ n("span", null, [
392
+ s(d, {
440
393
  modelValue: e.row.salePrice,
441
- "onUpdate:modelValue": (p) => e.row.salePrice = p,
394
+ "onUpdate:modelValue": (c) => e.row.salePrice = c,
442
395
  precision: 2,
443
396
  size: "small",
444
397
  controls: !1,
445
398
  class: "w-full",
446
- disabled: !n.isSettingShow
399
+ disabled: !m.isSettingShow
447
400
  }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
448
401
  ])
449
402
  ]),
450
403
  _: 1
451
404
  }),
452
- a(m, {
405
+ s(p, {
453
406
  prop: "salePriceV2",
454
407
  label: "v2会员销售价(元)",
455
408
  width: "150"
456
409
  }, {
457
- header: d(() => s[11] || (s[11] = [
458
- u("span", { class: "required_red" }, "*", -1),
459
- u("span", null, "v2会员销售价(元)", -1)
410
+ header: r(() => a[11] || (a[11] = [
411
+ n("span", { class: "required_red" }, "*", -1),
412
+ n("span", null, "v2会员销售价(元)", -1)
460
413
  ])),
461
- default: d((e) => [
462
- u("span", null, [
463
- a(c, {
414
+ default: r((e) => [
415
+ n("span", null, [
416
+ s(d, {
464
417
  modelValue: e.row.salePriceV2,
465
- "onUpdate:modelValue": (p) => e.row.salePriceV2 = p,
418
+ "onUpdate:modelValue": (c) => e.row.salePriceV2 = c,
466
419
  precision: 2,
467
420
  size: "small",
468
421
  controls: !1,
469
422
  class: "w-full",
470
- disabled: !n.isSettingShow
423
+ disabled: !m.isSettingShow
471
424
  }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
472
425
  ])
473
426
  ]),
474
427
  _: 1
475
428
  }),
476
- a(m, {
429
+ s(p, {
477
430
  prop: "salePriceV3",
478
431
  label: "v3会员销售价(元)",
479
432
  width: "150"
480
433
  }, {
481
- header: d(() => s[12] || (s[12] = [
482
- u("span", { class: "required_red" }, "*", -1),
483
- u("span", null, "v3会员销售价(元)", -1)
434
+ header: r(() => a[12] || (a[12] = [
435
+ n("span", { class: "required_red" }, "*", -1),
436
+ n("span", null, "v3会员销售价(元)", -1)
484
437
  ])),
485
- default: d((e) => [
486
- u("span", null, [
487
- a(c, {
438
+ default: r((e) => [
439
+ n("span", null, [
440
+ s(d, {
488
441
  modelValue: e.row.salePriceV3,
489
- "onUpdate:modelValue": (p) => e.row.salePriceV3 = p,
442
+ "onUpdate:modelValue": (c) => e.row.salePriceV3 = c,
490
443
  precision: 2,
491
444
  size: "small",
492
445
  controls: !1,
493
446
  class: "w-full",
494
- disabled: !n.isSettingShow
447
+ disabled: !m.isSettingShow
495
448
  }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
496
449
  ])
497
450
  ]),
498
451
  _: 1
499
452
  }),
500
- a(m, {
453
+ s(p, {
501
454
  prop: "marketPrice",
502
455
  label: "市场价(元)"
503
456
  }, {
504
- default: d((e) => [
505
- u("span", null, [
506
- a(c, {
457
+ default: r((e) => [
458
+ n("span", null, [
459
+ s(d, {
507
460
  modelValue: e.row.marketPrice,
508
- "onUpdate:modelValue": (p) => e.row.marketPrice = p,
461
+ "onUpdate:modelValue": (c) => e.row.marketPrice = c,
509
462
  precision: 2,
510
463
  size: "small",
511
464
  controls: !1,
512
465
  class: "w-full",
513
- disabled: !n.isSettingShow
466
+ disabled: !m.isSettingShow
514
467
  }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
515
468
  ])
516
469
  ]),
517
470
  _: 1
518
471
  }),
519
- a(m, {
472
+ s(p, {
520
473
  prop: "costPrice",
521
474
  label: "成本价(元)"
522
475
  }, {
523
- default: d((e) => [
524
- u("span", null, [
525
- a(c, {
476
+ default: r((e) => [
477
+ n("span", null, [
478
+ s(d, {
526
479
  modelValue: e.row.costPrice,
527
- "onUpdate:modelValue": (p) => e.row.costPrice = p,
480
+ "onUpdate:modelValue": (c) => e.row.costPrice = c,
528
481
  precision: 2,
529
482
  size: "small",
530
483
  controls: !1,
531
484
  class: "w-full",
532
- disabled: !n.isSettingShow
485
+ disabled: !m.isSettingShow
533
486
  }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
534
487
  ])
535
488
  ]),
536
489
  _: 1
537
490
  }),
538
- a(m, {
491
+ s(p, {
539
492
  prop: "weight",
540
493
  label: "重量(kg)"
541
494
  }, {
542
- default: d((e) => [
543
- u("span", null, [
544
- a(c, {
495
+ default: r((e) => [
496
+ n("span", null, [
497
+ s(d, {
545
498
  modelValue: e.row.weight,
546
- "onUpdate:modelValue": (p) => e.row.weight = p,
499
+ "onUpdate:modelValue": (c) => e.row.weight = c,
547
500
  precision: 2,
548
501
  size: "small",
549
502
  controls: !1,
550
503
  class: "w-full",
551
- disabled: !n.isSettingShow
504
+ disabled: !m.isSettingShow
552
505
  }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
553
506
  ])
554
507
  ]),
555
508
  _: 1
556
509
  }),
557
- a(m, {
510
+ s(p, {
558
511
  prop: "volume",
559
512
  label: "体积(m³)"
560
513
  }, {
561
- default: d((e) => [
562
- u("span", null, [
563
- a(c, {
514
+ default: r((e) => [
515
+ n("span", null, [
516
+ s(d, {
564
517
  modelValue: e.row.volume,
565
- "onUpdate:modelValue": (p) => e.row.volume = p,
518
+ "onUpdate:modelValue": (c) => e.row.volume = c,
566
519
  precision: 2,
567
520
  size: "small",
568
521
  controls: !1,
569
522
  class: "w-full",
570
- disabled: !n.isSettingShow
523
+ disabled: !m.isSettingShow
571
524
  }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
572
525
  ])
573
526
  ]),
574
527
  _: 1
575
528
  }),
576
- a(m, {
529
+ s(p, {
577
530
  prop: "stock",
578
531
  label: "库存"
579
532
  }, {
580
- header: d(() => s[13] || (s[13] = [
581
- u("span", { class: "required_red" }, "*", -1),
582
- u("span", null, "库存", -1)
533
+ header: r(() => a[13] || (a[13] = [
534
+ n("span", { class: "required_red" }, "*", -1),
535
+ n("span", null, "库存", -1)
583
536
  ])),
584
- default: d((e) => [
585
- u("span", null, [
586
- a(c, {
537
+ default: r((e) => [
538
+ n("span", null, [
539
+ s(d, {
587
540
  modelValue: e.row.stock,
588
- "onUpdate:modelValue": (p) => e.row.stock = p,
541
+ "onUpdate:modelValue": (c) => e.row.stock = c,
589
542
  precision: 2,
590
543
  size: "small",
591
544
  controls: !1,
592
545
  class: "w-full",
593
- disabled: !n.isSettingShow
546
+ disabled: !m.isSettingShow
594
547
  }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
595
548
  ])
596
549
  ]),
597
550
  _: 1
598
551
  }),
599
- a(m, {
552
+ s(p, {
600
553
  prop: "skuCode",
601
554
  label: "sku编码"
602
555
  }, {
603
- default: d((e) => [
604
- u("span", null, [
605
- a(N, {
556
+ default: r((e) => [
557
+ n("span", null, [
558
+ s(N, {
606
559
  modelValue: e.row.skuCode,
607
- "onUpdate:modelValue": (p) => e.row.skuCode = p,
560
+ "onUpdate:modelValue": (c) => e.row.skuCode = c,
608
561
  size: "small",
609
- disabled: !n.isSettingShow
562
+ disabled: !m.isSettingShow
610
563
  }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
611
564
  ])
612
565
  ]),
613
566
  _: 1
614
567
  }),
615
- a(m, {
568
+ s(p, {
616
569
  prop: "status",
617
570
  label: "是否上架",
618
571
  width: "80"
619
572
  }, {
620
- default: d((e) => [
621
- n.isSettingShow ? (P(), b("span", ie, [
622
- a(j, {
573
+ default: r((e) => [
574
+ m.isSettingShow ? (g(), h("span", oe, [
575
+ s(q, {
623
576
  modelValue: e.row.status,
624
- "onUpdate:modelValue": (p) => e.row.status = p
577
+ "onUpdate:modelValue": (c) => e.row.status = c
625
578
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
626
- ])) : (P(), b("span", ne, D(x(O).shelfDict.getValue(e.row.status)), 1))
579
+ ])) : (g(), h("span", te, I(b(K).shelfDict.getValue(e.row.status)), 1))
627
580
  ]),
628
581
  _: 1
629
582
  })
@@ -633,7 +586,7 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
633
586
  ]);
634
587
  };
635
588
  }
636
- }), me = /* @__PURE__ */ H(re, [["__scopeId", "data-v-6fc718ce"]]);
589
+ }), pe = /* @__PURE__ */ M(re, [["__scopeId", "data-v-6fc718ce"]]);
637
590
  export {
638
- me as default
591
+ pe as default
639
592
  };