xyvcard-goods 0.0.22 → 0.0.23

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