xyvcard-goods 0.0.10 → 0.0.12

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