xyvcard-goods 0.0.2 → 0.0.4

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 (22) hide show
  1. package/dist/{approveFailIndex-BS-H7i3Y.mjs → approveFailIndex-F3GtuNeX.mjs} +1 -1
  2. package/dist/{approveFailIndex.vue_vue_type_script_setup_true_lang-CebPGseh.mjs → approveFailIndex.vue_vue_type_script_setup_true_lang-8ykH4NF1.mjs} +2 -2
  3. package/dist/{auditIndex-DHQPvPdG.mjs → auditIndex-BXUxPTBo.mjs} +1 -1
  4. package/dist/{auditIndex.vue_vue_type_script_setup_true_lang-B-ghb-zu.mjs → auditIndex.vue_vue_type_script_setup_true_lang-2LQeWrbt.mjs} +2 -2
  5. package/dist/edit-B_KK1orD.mjs +2976 -0
  6. package/dist/index-D5_GsXR7.mjs +142 -0
  7. package/dist/{index-CIN1Wvug.mjs → index-PA3Mh5x6.mjs} +6 -6
  8. package/dist/index.mjs +1055 -928
  9. package/dist/{info-MqipS9Ok.mjs → info-8-HEtfzY.mjs} +3 -3
  10. package/dist/{saleIndex-D2vlM6ww.mjs → saleIndex-vZV2Dq0y.mjs} +1 -1
  11. package/dist/{saleIndex.vue_vue_type_script_setup_true_lang-B1iRvFF9.mjs → saleIndex.vue_vue_type_script_setup_true_lang-BpHE0pi0.mjs} +2 -2
  12. package/dist/{shelfIndex-CEgDzOX1.mjs → shelfIndex-Ciis-I11.mjs} +1 -1
  13. package/dist/{shelfIndex.vue_vue_type_script_setup_true_lang-DS__493K.mjs → shelfIndex.vue_vue_type_script_setup_true_lang-GCWPCxCX.mjs} +2 -2
  14. package/dist/{skuForm-BMRF5whq.mjs → skuForm-DaxgHBOV.mjs} +40 -37
  15. package/dist/{skuTable-Ddo1obnO.mjs → skuTable-C4mHW-e9.mjs} +130 -121
  16. package/dist/style.css +1 -1
  17. package/dts/index.d.ts +2 -0
  18. package/dts/main.d.ts +2 -0
  19. package/package.json +4 -2
  20. package/dist/edit-DOqDV4qb.mjs +0 -13978
  21. package/dist/index-CZD7OAWo.mjs +0 -213
  22. package/dist/index-fu3gxdt_.mjs +0 -130
@@ -1,12 +1,12 @@
1
- import { defineComponent as N, ref as I, toRefs as O, watchEffect as q, computed as T, resolveComponent as V, openBlock as w, createBlock as z, withCtx as d, createElementBlock as S, createVNode as n, unref as j, watch as E, Fragment as D, createElementVNode as h, createTextVNode as $, createCommentVNode as G, renderList as H, toDisplayString as L } from "vue";
1
+ import { defineComponent as N, ref as I, toRefs as O, watchEffect as q, computed as T, resolveComponent as _, openBlock as w, createBlock as z, withCtx as d, createElementBlock as S, createVNode as n, unref as j, watch as E, Fragment as D, createElementVNode as g, createTextVNode as $, createCommentVNode as G, renderList as H, toDisplayString as L } from "vue";
2
2
  import { fileApi as x } from "jmash-core";
3
3
  import { $ as K, Z as R } from "./el-message-D15RmjW3.mjs";
4
- import { D as Z } from "./index-CZD7OAWo.mjs";
4
+ import { D as Z } from "./index-D5_GsXR7.mjs";
5
5
  const J = (s, m) => {
6
- const o = s.__vccOpts || s;
7
- for (const [r, k] of m)
8
- o[r] = k;
9
- return o;
6
+ const a = s.__vccOpts || s;
7
+ for (const [i, k] of m)
8
+ a[i] = k;
9
+ return a;
10
10
  }, Q = ["src"], W = /* @__PURE__ */ N({
11
11
  __name: "index",
12
12
  props: {
@@ -17,7 +17,7 @@ const J = (s, m) => {
17
17
  },
18
18
  emits: ["imageSrc"],
19
19
  setup(s, { emit: m }) {
20
- const o = I(x.uploadUrl()), r = I(x.authHeader()), k = s, { pictureUrl: b } = O(k), v = I("");
20
+ const a = I(x.uploadUrl()), i = I(x.authHeader()), k = s, { pictureUrl: b } = O(k), v = I("");
21
21
  v.value = b.value;
22
22
  const P = m;
23
23
  function U(l) {
@@ -29,20 +29,20 @@ const J = (s, m) => {
29
29
  q(() => {
30
30
  v.value = k.pictureUrl;
31
31
  });
32
- const _ = T(() => x.imageUrl(v.value));
33
- return (l, a) => {
34
- const c = V("el-icon"), u = V("el-upload");
32
+ const V = T(() => x.imageUrl(v.value));
33
+ return (l, o) => {
34
+ const c = _("el-icon"), u = _("el-upload");
35
35
  return w(), z(u, {
36
36
  class: "avatar-uploader",
37
- action: o.value,
38
- headers: r.value,
37
+ action: a.value,
38
+ headers: i.value,
39
39
  "show-file-list": !1,
40
40
  "on-success": U
41
41
  }, {
42
42
  default: d(() => [
43
43
  v.value ? (w(), S("img", {
44
44
  key: 0,
45
- src: _.value,
45
+ src: V.value,
46
46
  class: "avatar",
47
47
  alt: ""
48
48
  }, null, 8, Q)) : (w(), z(c, {
@@ -60,55 +60,55 @@ const J = (s, m) => {
60
60
  };
61
61
  }
62
62
  });
63
- function X(s, m = [], o) {
64
- console.log(s, m = [], o);
65
- let { optionValue: r = "id", optionText: k = "name" } = o || {}, b = [], v = 0, P = {};
63
+ function X(s, m = [], a) {
64
+ console.log(s, m = [], a);
65
+ let { optionValue: i = "id", optionText: k = "name" } = a || {}, b = [], v = 0, P = {};
66
66
  const U = Y(s);
67
67
  if (console.log(U), s.length === 0) return b;
68
- s.forEach((_) => {
69
- const { specValueList: l } = _;
68
+ s.forEach((V) => {
69
+ const { specValueList: l } = V;
70
70
  if (!l || l.length === 0) return !0;
71
71
  v = (v || 1) * l.length;
72
- }), m.forEach((_) => {
73
- let { specs: l, ...a } = _;
74
- P[l.map((c) => `${c.specId}_${c.specValueId}`).join("|")] = a;
72
+ }), m.forEach((V) => {
73
+ let { specs: l, ...o } = V;
74
+ P[l.map((c) => `${c.specId}_${c.specValueId}`).join("|")] = o;
75
75
  });
76
- for (let _ = 0; _ < v; _++) {
77
- let l = [], a = [];
78
- s.forEach((u, i) => {
76
+ for (let V = 0; V < v; V++) {
77
+ let l = [], o = [];
78
+ s.forEach((u, r) => {
79
79
  const { specValueList: e } = u;
80
- let g = {};
80
+ let h = {};
81
81
  if (!e || e.length === 0) return !0;
82
82
  if (e.length > 1) {
83
- let f = Math.floor(_ / U[i]) % e.length;
84
- g = s[i].specValueList[f];
83
+ let f = Math.floor(V / U[r]) % e.length;
84
+ h = s[r].specValueList[f];
85
85
  } else
86
- g = s[i].specValueList[0];
87
- console.log(u[r], g[r]), !(!u[r] || !g[r]) && (a.push(`${u[r]}_${g[r]}`), l.push({
88
- specId: u[r],
86
+ h = s[r].specValueList[0];
87
+ console.log(u[i], h[i]), !(!u[i] || !h[i]) && (o.push(`${u[i]}_${h[i]}`), l.push({
88
+ specId: u[i],
89
89
  specName: u[k],
90
- specValueId: g[r],
91
- specValueName: g[k]
90
+ specValueId: h[i],
91
+ specValueName: h[k]
92
92
  }));
93
93
  });
94
- let { ...c } = P[a.join("|")] || {};
94
+ let { ...c } = P[o.join("|")] || {};
95
95
  b.push({ ...c, specs: l });
96
96
  }
97
97
  return b;
98
98
  }
99
99
  function Y(s) {
100
100
  let m = [];
101
- for (let o = s.length - 1; o >= 0; o--)
102
- s[o + 1] && s[o + 1].specValueList ? m[o] = s[o + 1].specValueList.length * m[o + 1] || 1 : m[o] = 1;
101
+ for (let a = s.length - 1; a >= 0; a--)
102
+ s[a + 1] && s[a + 1].specValueList ? m[a] = s[a + 1].specValueList.length * m[a + 1] || 1 : m[a] = 1;
103
103
  return m;
104
104
  }
105
105
  function A(s) {
106
106
  return Array.from(new Set(s));
107
107
  }
108
108
  function ee(s, m) {
109
- return s = A(s), m = A(m), s.concat(m).filter((o) => !(s.includes(o) && m.includes(o)));
109
+ return s = A(s), m = A(m), s.concat(m).filter((a) => !(s.includes(a) && m.includes(a)));
110
110
  }
111
- const le = { key: 0 }, te = { class: "title-set" }, oe = { class: "right-dis" }, ae = { class: "right-dis" }, se = { class: "right-dis" }, ne = { class: "right-dis" }, ce = { class: "right-dis" }, ue = { class: "right-dis" }, ie = { key: 0 }, re = { key: 1 }, de = /* @__PURE__ */ N({
111
+ const le = { key: 0 }, te = { class: "title-set" }, oe = { class: "right-dis" }, ae = { class: "right-dis" }, se = { class: "right-dis" }, ne = { class: "right-dis" }, ce = { class: "right-dis" }, ue = { class: "right-dis" }, re = { key: 0 }, ie = { key: 1 }, de = /* @__PURE__ */ N({
112
112
  __name: "skuTable",
113
113
  props: {
114
114
  specData: {
@@ -131,44 +131,44 @@ const le = { key: 0 }, te = { class: "title-set" }, oe = { class: "right-dis" },
131
131
  },
132
132
  emits: ["getGoodsSku", "getFormData"],
133
133
  setup(s, { emit: m }) {
134
- const o = I({
134
+ const a = I({
135
135
  salePrice: 0,
136
136
  marketPrice: 0,
137
137
  costPrice: 0,
138
138
  weight: 0,
139
139
  volume: 0,
140
140
  stock: 0
141
- }), r = I([]), k = m, b = s, v = T(() => {
141
+ }), i = I([]), k = m, b = s, v = T(() => {
142
142
  let l = X(b.specData, [], {}).map((c) => ({
143
143
  specValues: c.specs,
144
144
  specIds: c.specs.reduce(
145
- (u, i, e) => `${u}${i.specId}-${i.specValueId}${e === c.specs.length - 1 ? "" : "_"}`,
145
+ (u, r, e) => `${u}${r.specId}-${r.specValueId}${e === c.specs.length - 1 ? "" : "_"}`,
146
146
  ""
147
147
  )
148
- })), a = b.goodsSku.map((c) => ({
148
+ })), o = b.goodsSku.map((c) => ({
149
149
  ...c,
150
150
  specIds: c.specValues.reduce(
151
- (u, i, e) => `${u}${i.specId}-${i.specValueId}${e === c.specValues.length - 1 ? "" : "_"}`,
151
+ (u, r, e) => `${u}${r.specId}-${r.specValueId}${e === c.specValues.length - 1 ? "" : "_"}`,
152
152
  ""
153
153
  )
154
154
  }));
155
155
  return l.forEach(function(c) {
156
- a.forEach(function(u) {
156
+ o.forEach(function(u) {
157
157
  console.log(u);
158
- let i = c.specIds.split("_"), e = u.specIds.split("_"), g = !0;
159
- i.forEach(function(f) {
160
- e.find((y) => y == f) || (g = !1);
161
- }), g && (c.picUrl = u.picUrl ? u.picUrl : "", c.skuCode = u.skuCode ? u.skuCode : void 0, c.salePrice = u.salePrice, c.marketPrice = u.marketPrice, c.costPrice = u.costPrice, c.stock = u.stock, c.weight = u.weight, c.volume = u.volume, c.status = u.status);
158
+ let r = c.specIds.split("_"), e = u.specIds.split("_"), h = !0;
159
+ r.forEach(function(f) {
160
+ e.find((y) => y == f) || (h = !1);
161
+ }), h && (c.picUrl = u.picUrl ? u.picUrl : "", c.skuCode = u.skuCode ? u.skuCode : void 0, c.salePrice = u.salePrice, c.marketPrice = u.marketPrice, c.costPrice = u.costPrice, c.stock = u.stock, c.weight = u.weight, c.volume = u.volume, c.status = u.status);
162
162
  });
163
163
  }), l;
164
164
  });
165
165
  E(
166
166
  v,
167
- (l, a) => {
168
- var u, i;
169
- if (!l || !l.length) return r.value = [];
170
- if (!a || !a.length)
171
- return r.value = l.map((e) => ({
167
+ (l, o) => {
168
+ var u, r;
169
+ if (!l || !l.length) return i.value = [];
170
+ if (!o || !o.length)
171
+ return i.value = l.map((e) => ({
172
172
  ...e,
173
173
  picUrl: e.picUrl ? e.picUrl : "",
174
174
  skuCode: e.skuCode ? e.skuCode : void 0,
@@ -180,8 +180,8 @@ const le = { key: 0 }, te = { class: "title-set" }, oe = { class: "right-dis" },
180
180
  volume: e.volume ? e.volume : void 0,
181
181
  status: e.status ? e.status : !0
182
182
  }));
183
- if (((u = l[0].specValues) == null ? void 0 : u.length) !== ((i = a[0].specValues) == null ? void 0 : i.length))
184
- return r.value = l.map((e) => ({
183
+ if (((u = l[0].specValues) == null ? void 0 : u.length) !== ((r = o[0].specValues) == null ? void 0 : r.length))
184
+ return i.value = l.map((e) => ({
185
185
  ...e,
186
186
  picUrl: "",
187
187
  skuCode: void 0,
@@ -193,20 +193,20 @@ const le = { key: 0 }, te = { class: "title-set" }, oe = { class: "right-dis" },
193
193
  volume: void 0,
194
194
  status: !0
195
195
  }));
196
- if (l.length === a.length)
197
- return r.value = l.map((e, g) => ({
198
- ...r.value[g],
196
+ if (l.length === o.length)
197
+ return i.value = l.map((e, h) => ({
198
+ ...i.value[h],
199
199
  ...e
200
200
  }));
201
- const c = P(l, a);
202
- if (l.length > a.length) {
201
+ const c = P(l, o);
202
+ if (l.length > o.length) {
203
203
  let e = [];
204
- l.forEach((g) => {
205
- const f = r.value.find(
206
- (y) => y.specIds === g.specIds
204
+ l.forEach((h) => {
205
+ const f = i.value.find(
206
+ (y) => y.specIds === h.specIds
207
207
  );
208
208
  f ? e.push(f) : e.push({
209
- ...g,
209
+ ...h,
210
210
  picUrl: "",
211
211
  skuCode: void 0,
212
212
  salePrice: 0,
@@ -217,9 +217,9 @@ const le = { key: 0 }, te = { class: "title-set" }, oe = { class: "right-dis" },
217
217
  volume: void 0,
218
218
  status: !0
219
219
  });
220
- }), r.value = e;
220
+ }), i.value = e;
221
221
  } else
222
- r.value = r.value.filter(
222
+ i.value = i.value.filter(
223
223
  (e) => !c.includes(e.specIds)
224
224
  );
225
225
  },
@@ -228,7 +228,7 @@ const le = { key: 0 }, te = { class: "title-set" }, oe = { class: "right-dis" },
228
228
  immediate: !0
229
229
  }
230
230
  ), E(
231
- r,
231
+ i,
232
232
  (l) => {
233
233
  console.log(l), k("getFormData", l);
234
234
  },
@@ -237,31 +237,31 @@ const le = { key: 0 }, te = { class: "title-set" }, oe = { class: "right-dis" },
237
237
  immediate: !0
238
238
  }
239
239
  );
240
- function P(l, a) {
241
- return l = l.map((c) => c.specIds), a = a.map((c) => c.specIds), ee(l, a);
240
+ function P(l, o) {
241
+ return l = l.map((c) => c.specIds), o = o.map((c) => c.specIds), ee(l, o);
242
242
  }
243
243
  function U() {
244
- r.value.forEach((l) => {
245
- l.salePrice = o.value.salePrice, l.marketPrice = o.value.marketPrice, l.costPrice = o.value.costPrice, l.weight = o.value.weight, l.volume = o.value.volume, l.stock = o.value.stock;
244
+ i.value.forEach((l) => {
245
+ l.salePrice = a.value.salePrice, l.marketPrice = a.value.marketPrice, l.costPrice = a.value.costPrice, l.weight = a.value.weight, l.volume = a.value.volume, l.stock = a.value.stock;
246
246
  });
247
247
  }
248
- function _(l, a) {
249
- a.picUrl = l;
248
+ function V(l, o) {
249
+ o.picUrl = l;
250
250
  }
251
- return (l, a) => {
252
- const c = V("Setting"), u = V("el-icon"), i = V("el-input-number"), e = V("el-tooltip"), g = V("el-button"), f = V("el-table-column"), y = W, B = V("el-input"), F = V("el-switch"), M = V("el-table");
251
+ return (l, o) => {
252
+ const c = _("Setting"), u = _("el-icon"), r = _("el-input-number"), e = _("el-tooltip"), h = _("el-button"), f = _("el-table-column"), y = W, B = _("el-input"), F = _("el-switch"), M = _("el-table");
253
253
  return w(), S(D, null, [
254
254
  s.isSettingShow ? (w(), S("div", le, [
255
- h("div", te, [
255
+ g("div", te, [
256
256
  n(u, null, {
257
257
  default: d(() => [
258
258
  n(c)
259
259
  ]),
260
260
  _: 1
261
261
  }),
262
- a[6] || (a[6] = $(" 批量设置 "))
262
+ o[6] || (o[6] = $(" 批量设置 "))
263
263
  ]),
264
- h("span", oe, [
264
+ g("span", oe, [
265
265
  n(e, {
266
266
  class: "box-item",
267
267
  effect: "dark",
@@ -269,9 +269,9 @@ const le = { key: 0 }, te = { class: "title-set" }, oe = { class: "right-dis" },
269
269
  placement: "top-start"
270
270
  }, {
271
271
  default: d(() => [
272
- n(i, {
273
- modelValue: o.value.salePrice,
274
- "onUpdate:modelValue": a[0] || (a[0] = (t) => o.value.salePrice = t),
272
+ n(r, {
273
+ modelValue: a.value.salePrice,
274
+ "onUpdate:modelValue": o[0] || (o[0] = (t) => a.value.salePrice = t),
275
275
  precision: 2,
276
276
  size: "small",
277
277
  placeholder: "销售价(元)",
@@ -281,7 +281,7 @@ const le = { key: 0 }, te = { class: "title-set" }, oe = { class: "right-dis" },
281
281
  _: 1
282
282
  })
283
283
  ]),
284
- h("span", ae, [
284
+ g("span", ae, [
285
285
  n(e, {
286
286
  class: "box-item",
287
287
  effect: "dark",
@@ -289,9 +289,9 @@ const le = { key: 0 }, te = { class: "title-set" }, oe = { class: "right-dis" },
289
289
  placement: "top-start"
290
290
  }, {
291
291
  default: d(() => [
292
- n(i, {
293
- modelValue: o.value.marketPrice,
294
- "onUpdate:modelValue": a[1] || (a[1] = (t) => o.value.marketPrice = t),
292
+ n(r, {
293
+ modelValue: a.value.marketPrice,
294
+ "onUpdate:modelValue": o[1] || (o[1] = (t) => a.value.marketPrice = t),
295
295
  precision: 2,
296
296
  size: "small",
297
297
  placeholder: "市场价(元)",
@@ -301,7 +301,7 @@ const le = { key: 0 }, te = { class: "title-set" }, oe = { class: "right-dis" },
301
301
  _: 1
302
302
  })
303
303
  ]),
304
- h("span", se, [
304
+ g("span", se, [
305
305
  n(e, {
306
306
  class: "box-item",
307
307
  effect: "dark",
@@ -309,9 +309,9 @@ const le = { key: 0 }, te = { class: "title-set" }, oe = { class: "right-dis" },
309
309
  placement: "top-start"
310
310
  }, {
311
311
  default: d(() => [
312
- n(i, {
313
- modelValue: o.value.costPrice,
314
- "onUpdate:modelValue": a[2] || (a[2] = (t) => o.value.costPrice = t),
312
+ n(r, {
313
+ modelValue: a.value.costPrice,
314
+ "onUpdate:modelValue": o[2] || (o[2] = (t) => a.value.costPrice = t),
315
315
  precision: 2,
316
316
  size: "small",
317
317
  placeholder: "成本价(元)",
@@ -321,7 +321,7 @@ const le = { key: 0 }, te = { class: "title-set" }, oe = { class: "right-dis" },
321
321
  _: 1
322
322
  })
323
323
  ]),
324
- h("span", ne, [
324
+ g("span", ne, [
325
325
  n(e, {
326
326
  class: "box-item",
327
327
  effect: "dark",
@@ -329,9 +329,9 @@ const le = { key: 0 }, te = { class: "title-set" }, oe = { class: "right-dis" },
329
329
  placement: "top-start"
330
330
  }, {
331
331
  default: d(() => [
332
- n(i, {
333
- modelValue: o.value.weight,
334
- "onUpdate:modelValue": a[3] || (a[3] = (t) => o.value.weight = t),
332
+ n(r, {
333
+ modelValue: a.value.weight,
334
+ "onUpdate:modelValue": o[3] || (o[3] = (t) => a.value.weight = t),
335
335
  precision: 2,
336
336
  size: "small",
337
337
  placeholder: "重量(kg)",
@@ -341,7 +341,7 @@ const le = { key: 0 }, te = { class: "title-set" }, oe = { class: "right-dis" },
341
341
  _: 1
342
342
  })
343
343
  ]),
344
- h("span", ce, [
344
+ g("span", ce, [
345
345
  n(e, {
346
346
  class: "box-item",
347
347
  effect: "dark",
@@ -349,9 +349,9 @@ const le = { key: 0 }, te = { class: "title-set" }, oe = { class: "right-dis" },
349
349
  placement: "top-start"
350
350
  }, {
351
351
  default: d(() => [
352
- n(i, {
353
- modelValue: o.value.volume,
354
- "onUpdate:modelValue": a[4] || (a[4] = (t) => o.value.volume = t),
352
+ n(r, {
353
+ modelValue: a.value.volume,
354
+ "onUpdate:modelValue": o[4] || (o[4] = (t) => a.value.volume = t),
355
355
  precision: 2,
356
356
  size: "small",
357
357
  placeholder: "体积(m³)",
@@ -361,7 +361,7 @@ const le = { key: 0 }, te = { class: "title-set" }, oe = { class: "right-dis" },
361
361
  _: 1
362
362
  })
363
363
  ]),
364
- h("span", ue, [
364
+ g("span", ue, [
365
365
  n(e, {
366
366
  class: "box-item",
367
367
  effect: "dark",
@@ -369,9 +369,9 @@ const le = { key: 0 }, te = { class: "title-set" }, oe = { class: "right-dis" },
369
369
  placement: "top-start"
370
370
  }, {
371
371
  default: d(() => [
372
- n(i, {
373
- modelValue: o.value.stock,
374
- "onUpdate:modelValue": a[5] || (a[5] = (t) => o.value.stock = t),
372
+ n(r, {
373
+ modelValue: a.value.stock,
374
+ "onUpdate:modelValue": o[5] || (o[5] = (t) => a.value.stock = t),
375
375
  precision: 0,
376
376
  size: "small",
377
377
  placeholder: "库存",
@@ -381,19 +381,19 @@ const le = { key: 0 }, te = { class: "title-set" }, oe = { class: "right-dis" },
381
381
  _: 1
382
382
  })
383
383
  ]),
384
- n(g, {
384
+ n(h, {
385
385
  type: "primary",
386
386
  size: "small",
387
387
  onClick: U
388
388
  }, {
389
- default: d(() => a[7] || (a[7] = [
389
+ default: d(() => o[7] || (o[7] = [
390
390
  $("设置")
391
391
  ])),
392
392
  _: 1
393
393
  })
394
394
  ])) : G("", !0),
395
395
  n(M, {
396
- data: r.value,
396
+ data: i.value,
397
397
  class: "w-full top-dis"
398
398
  }, {
399
399
  default: d(() => [
@@ -415,18 +415,23 @@ const le = { key: 0 }, te = { class: "title-set" }, oe = { class: "right-dis" },
415
415
  default: d((t) => [
416
416
  n(y, {
417
417
  "picture-url": t.row.picUrl,
418
- onImageSrc: (p) => _(p, t.row)
418
+ onImageSrc: (p) => V(p, t.row)
419
419
  }, null, 8, ["picture-url", "onImageSrc"])
420
420
  ]),
421
421
  _: 1
422
422
  }),
423
423
  n(f, {
424
424
  prop: "salePrice",
425
- label: "销售价(元)"
425
+ label: "销售价(元)",
426
+ width: "150"
426
427
  }, {
428
+ header: d(() => o[8] || (o[8] = [
429
+ g("span", { class: "required_red" }, "*", -1),
430
+ g("span", null, "销售价(元)", -1)
431
+ ])),
427
432
  default: d((t) => [
428
- h("span", null, [
429
- n(i, {
433
+ g("span", null, [
434
+ n(r, {
430
435
  modelValue: t.row.salePrice,
431
436
  "onUpdate:modelValue": (p) => t.row.salePrice = p,
432
437
  precision: 2,
@@ -444,8 +449,8 @@ const le = { key: 0 }, te = { class: "title-set" }, oe = { class: "right-dis" },
444
449
  label: "市场价(元)"
445
450
  }, {
446
451
  default: d((t) => [
447
- h("span", null, [
448
- n(i, {
452
+ g("span", null, [
453
+ n(r, {
449
454
  modelValue: t.row.marketPrice,
450
455
  "onUpdate:modelValue": (p) => t.row.marketPrice = p,
451
456
  precision: 2,
@@ -463,8 +468,8 @@ const le = { key: 0 }, te = { class: "title-set" }, oe = { class: "right-dis" },
463
468
  label: "成本价(元)"
464
469
  }, {
465
470
  default: d((t) => [
466
- h("span", null, [
467
- n(i, {
471
+ g("span", null, [
472
+ n(r, {
468
473
  modelValue: t.row.costPrice,
469
474
  "onUpdate:modelValue": (p) => t.row.costPrice = p,
470
475
  precision: 2,
@@ -482,8 +487,8 @@ const le = { key: 0 }, te = { class: "title-set" }, oe = { class: "right-dis" },
482
487
  label: "重量(kg)"
483
488
  }, {
484
489
  default: d((t) => [
485
- h("span", null, [
486
- n(i, {
490
+ g("span", null, [
491
+ n(r, {
487
492
  modelValue: t.row.weight,
488
493
  "onUpdate:modelValue": (p) => t.row.weight = p,
489
494
  precision: 2,
@@ -501,8 +506,8 @@ const le = { key: 0 }, te = { class: "title-set" }, oe = { class: "right-dis" },
501
506
  label: "体积(m³)"
502
507
  }, {
503
508
  default: d((t) => [
504
- h("span", null, [
505
- n(i, {
509
+ g("span", null, [
510
+ n(r, {
506
511
  modelValue: t.row.volume,
507
512
  "onUpdate:modelValue": (p) => t.row.volume = p,
508
513
  precision: 2,
@@ -519,9 +524,13 @@ const le = { key: 0 }, te = { class: "title-set" }, oe = { class: "right-dis" },
519
524
  prop: "stock",
520
525
  label: "库存"
521
526
  }, {
527
+ header: d(() => o[9] || (o[9] = [
528
+ g("span", { class: "required_red" }, "*", -1),
529
+ g("span", null, "库存", -1)
530
+ ])),
522
531
  default: d((t) => [
523
- h("span", null, [
524
- n(i, {
532
+ g("span", null, [
533
+ n(r, {
525
534
  modelValue: t.row.stock,
526
535
  "onUpdate:modelValue": (p) => t.row.stock = p,
527
536
  precision: 2,
@@ -539,7 +548,7 @@ const le = { key: 0 }, te = { class: "title-set" }, oe = { class: "right-dis" },
539
548
  label: "sku编码"
540
549
  }, {
541
550
  default: d((t) => [
542
- h("span", null, [
551
+ g("span", null, [
543
552
  n(B, {
544
553
  modelValue: t.row.skuCode,
545
554
  "onUpdate:modelValue": (p) => t.row.skuCode = p,
@@ -558,12 +567,12 @@ const le = { key: 0 }, te = { class: "title-set" }, oe = { class: "right-dis" },
558
567
  default: d((t) => {
559
568
  var p;
560
569
  return [
561
- s.isSettingShow ? (w(), S("span", ie, [
570
+ s.isSettingShow ? (w(), S("span", re, [
562
571
  n(F, {
563
572
  modelValue: t.row.status,
564
573
  "onUpdate:modelValue": (C) => t.row.status = C
565
574
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
566
- ])) : (w(), S("span", re, L(j(Z).shelfDict.getValue((p = t.row.status) == null ? void 0 : p.toString())), 1))
575
+ ])) : (w(), S("span", ie, L(j(Z).shelfDict.getValue((p = t.row.status) == null ? void 0 : p.toString())), 1))
567
576
  ];
568
577
  }),
569
578
  _: 1
@@ -574,7 +583,7 @@ const le = { key: 0 }, te = { class: "title-set" }, oe = { class: "right-dis" },
574
583
  ], 64);
575
584
  };
576
585
  }
577
- }), pe = /* @__PURE__ */ J(de, [["__scopeId", "data-v-0ad45a00"]]), ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
586
+ }), pe = /* @__PURE__ */ J(de, [["__scopeId", "data-v-3962ae0f"]]), ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
578
587
  __proto__: null,
579
588
  default: pe
580
589
  }, Symbol.toStringTag, { value: "Module" }));