xyvcard-goods 0.0.9 → 0.0.11

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-DJf9bHab.mjs → approveFailIndex-B-VGnf1U.mjs} +1 -1
  2. package/dist/{approveFailIndex.vue_vue_type_script_setup_true_lang-mXqZdtba.mjs → approveFailIndex.vue_vue_type_script_setup_true_lang-CiIyafoQ.mjs} +113 -107
  3. package/dist/{auditIndex-CCkGsSy2.mjs → auditIndex-tEq8uYdA.mjs} +1 -1
  4. package/dist/{auditIndex.vue_vue_type_script_setup_true_lang-DHolmNaP.mjs → auditIndex.vue_vue_type_script_setup_true_lang-BW22LRCL.mjs} +118 -112
  5. package/dist/edit-Bk7YJzrm.mjs +556 -0
  6. package/dist/{index-vcmJ06-Y.mjs → index-C9LeLF51.mjs} +158 -149
  7. package/dist/index.mjs +3 -3
  8. package/dist/{info-CPZykxS1.mjs → info-lw-aEq4N.mjs} +1 -1
  9. package/dist/{saleIndex-CdAcvCzO.mjs → saleIndex-B7TBQOB6.mjs} +1 -1
  10. package/dist/{saleIndex.vue_vue_type_script_setup_true_lang-CLzVH-ix.mjs → saleIndex.vue_vue_type_script_setup_true_lang-B6wKXUcV.mjs} +134 -147
  11. package/dist/{shelfIndex-ZHuhzU_h.mjs → shelfIndex-BfsIMQfD.mjs} +1 -1
  12. package/dist/{shelfIndex.vue_vue_type_script_setup_true_lang-CTv-j8Xe.mjs → shelfIndex.vue_vue_type_script_setup_true_lang-C6RfhqIl.mjs} +114 -108
  13. package/dist/{skuForm-BSlT4TYd.mjs → skuForm-DuMlHj7f.mjs} +11 -5
  14. package/dist/{skuTable-DYmQYXk3.mjs → skuTable-BlK2s902.mjs} +173 -159
  15. package/dist/style.css +1 -1
  16. package/dts/api/goods-spu/types.d.ts +1 -1
  17. package/dts/components/EnumRadio/index.vue.d.ts +4 -3
  18. package/dts/components/GoodsUpload/ImageUpload.vue.d.ts +10 -18
  19. package/dts/components/ImageUpload.vue.d.ts +36 -0
  20. package/dts/views/goods/goods-spu/skuForm.vue.d.ts +1 -1
  21. package/package.json +17 -17
  22. package/dist/edit-D37yka6Z.mjs +0 -470
@@ -1,26 +1,26 @@
1
- import { defineComponent as x, getCurrentInstance as ee, ref as D, resolveComponent as p, resolveDirective as oe, openBlock as m, createElementBlock as V, createElementVNode as r, createVNode as a, withCtx as l, unref as s, withKeys as R, createTextVNode as c, toDisplayString as u, withDirectives as b, createBlock as I, isRef as P, createCommentVNode as le } from "vue";
2
- import { ElMessage as z } from "element-plus";
3
- import { useRouter as te } from "vue-router";
4
- import { useTableHooks as ae, fileApi as j } from "jmash-core";
5
- import { useI18n as se } from "vue-i18n";
6
- import { goodsSpuApi as E } from "./index.mjs";
1
+ import { defineComponent as ee, getCurrentInstance as oe, ref as D, resolveComponent as p, resolveDirective as le, openBlock as r, createElementBlock as w, createElementVNode as m, createVNode as a, withCtx as l, unref as s, withKeys as P, createTextVNode as i, toDisplayString as n, withDirectives as b, createBlock as I, isRef as R, createCommentVNode as te, Fragment as z } from "vue";
2
+ import { ElMessage as j } from "element-plus";
3
+ import { useRouter as ae } from "vue-router";
4
+ import { useTableHooks as se, fileApi as E } from "jmash-core";
5
+ import { useI18n as ne } from "vue-i18n";
6
+ import { goodsSpuApi as q } from "./index.mjs";
7
7
  import { D as g } from "./index-CKeHa-Cx.mjs";
8
- const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de = ["onClick"], we = /* @__PURE__ */ x({
8
+ const ue = { class: "search-container" }, pe = ["onClick"], de = ["onClick"], re = ["onClick"], ye = /* @__PURE__ */ ee({
9
9
  __name: "shelfIndex",
10
- setup(re) {
11
- const { t: _ } = se(), $ = te(), { proxy: q } = ee(), d = D({
10
+ setup(ie) {
11
+ const { t: v } = ne(), k = ae(), { proxy: B } = oe(), d = D({
12
12
  curPage: 1,
13
13
  pageSize: 10,
14
14
  shelf: "false"
15
15
  }), {
16
- tableHooks: n,
17
- multipleTableRef: T,
18
- queryFormRef: B,
19
- listLoading: L,
20
- tableData: H,
21
- total: v
22
- } = ae(_, E, d);
23
- let w = D([
16
+ tableHooks: u,
17
+ multipleTableRef: $,
18
+ queryFormRef: L,
19
+ listLoading: H,
20
+ tableData: Q,
21
+ total: S
22
+ } = se(v, q, d);
23
+ let y = D([
24
24
  {
25
25
  label: "goodsSpu.shopId",
26
26
  prop: "shopId",
@@ -119,51 +119,51 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de
119
119
  }
120
120
  ]);
121
121
  g.shopInfoBizDict.useValues(), g.goodsCategoryDict.useValues();
122
- function Q() {
123
- $.push({ path: "/rawgoods/goods-spu/edit" });
122
+ function Y() {
123
+ k.push({ path: "/rawgoods/goods-spu/edit" });
124
124
  }
125
- function Y(t) {
126
- $.push({
125
+ function A(t) {
126
+ k.push({
127
127
  path: "/rawgoods/goods-spu/edit",
128
128
  query: { spuId: t.spuId }
129
129
  });
130
130
  }
131
- function A(t) {
132
- $.push({
131
+ function F(t) {
132
+ k.push({
133
133
  path: "/rawgoods/goods-spu/info",
134
134
  query: { spuId: t.spuId }
135
135
  });
136
136
  }
137
137
  function K(t) {
138
- n.selectionRows.value = t;
138
+ u.selectionRows.value = t;
139
139
  }
140
140
  function M(t) {
141
- n.handleSort(t.prop, t.order);
141
+ u.handleSort(t.prop, t.order);
142
142
  }
143
- function F() {
144
- if (n.selectionRows.value.length === 0) {
145
- z({
146
- message: _("goodsSpu.chooseShelf"),
143
+ function G() {
144
+ if (u.selectionRows.value.length === 0) {
145
+ j({
146
+ message: v("goodsSpu.chooseShelf"),
147
147
  type: "warning"
148
148
  });
149
149
  return;
150
150
  }
151
- const t = n.selectionRows.value.map((o) => o.spuId);
152
- E.enable({ spuId: t }, !0).then((o) => {
151
+ const t = u.selectionRows.value.map((o) => o.spuId);
152
+ q.enable({ spuId: t }, !0).then((o) => {
153
153
  var C;
154
- o.status === 200 && (z({
155
- message: _("goodsSpu.successShelf") + o.data + _("common.stripData"),
154
+ o.status === 200 && (j({
155
+ message: v("goodsSpu.successShelf") + o.data + v("common.stripData"),
156
156
  type: "success"
157
- }), n.getList(), (C = T.value) == null || C.clearSelection());
157
+ }), u.getList(), (C = $.value) == null || C.clearSelection());
158
158
  });
159
159
  }
160
- return n.getList(), (t, o) => {
161
- const C = p("jmash-select"), S = p("el-form-item"), f = p("el-col"), k = p("el-input"), y = p("el-button"), N = p("el-row"), G = p("el-form"), J = p("jmash-column-select"), O = p("el-image"), U = p("el-switch"), W = p("jmash-table"), X = p("jmash-pagination"), Z = p("el-card"), h = oe("hasPerm");
162
- return m(), V("div", null, [
163
- r("div", ne, [
164
- a(G, {
160
+ return u.getList(), (t, o) => {
161
+ const C = p("jmash-select"), V = p("el-form-item"), f = p("el-col"), T = p("el-input"), _ = p("el-button"), N = p("el-row"), J = p("el-form"), O = p("jmash-column-select"), W = p("el-image"), U = p("el-switch"), X = p("jmash-table"), Z = p("jmash-pagination"), x = p("el-card"), h = le("hasPerm");
162
+ return r(), w("div", null, [
163
+ m("div", ue, [
164
+ a(J, {
165
165
  ref_key: "queryFormRef",
166
- ref: B,
166
+ ref: L,
167
167
  model: d.value,
168
168
  inline: !0
169
169
  }, {
@@ -172,7 +172,7 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de
172
172
  default: l(() => [
173
173
  a(f, { span: 6 }, {
174
174
  default: l(() => [
175
- a(S, {
175
+ a(V, {
176
176
  label: t.$t("goodsSpu.shopId"),
177
177
  prop: "shopId"
178
178
  }, {
@@ -192,16 +192,16 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de
192
192
  }),
193
193
  a(f, { span: 6 }, {
194
194
  default: l(() => [
195
- a(S, {
195
+ a(V, {
196
196
  label: t.$t("goodsSpu.spuCode"),
197
197
  prop: "spuCode"
198
198
  }, {
199
199
  default: l(() => [
200
- a(k, {
200
+ a(T, {
201
201
  modelValue: d.value.spuCode,
202
202
  "onUpdate:modelValue": o[1] || (o[1] = (e) => d.value.spuCode = e),
203
203
  placeholder: t.$t("goodsSpu.spuCode"),
204
- onKeyup: o[2] || (o[2] = R((e) => s(n).handleQuery(), ["enter"])),
204
+ onKeyup: o[2] || (o[2] = P((e) => s(u).handleQuery(), ["enter"])),
205
205
  class: "!w-[203px]"
206
206
  }, null, 8, ["modelValue", "placeholder"])
207
207
  ]),
@@ -212,16 +212,16 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de
212
212
  }),
213
213
  a(f, { span: 6 }, {
214
214
  default: l(() => [
215
- a(S, {
215
+ a(V, {
216
216
  label: t.$t("goodsSpu.spuName"),
217
- prop: "spuName"
217
+ prop: "likeSpuName"
218
218
  }, {
219
219
  default: l(() => [
220
- a(k, {
221
- modelValue: d.value.spuName,
222
- "onUpdate:modelValue": o[3] || (o[3] = (e) => d.value.spuName = e),
220
+ a(T, {
221
+ modelValue: d.value.likeSpuName,
222
+ "onUpdate:modelValue": o[3] || (o[3] = (e) => d.value.likeSpuName = e),
223
223
  placeholder: t.$t("goodsSpu.spuName"),
224
- onKeyup: o[4] || (o[4] = R((e) => s(n).handleQuery(), ["enter"])),
224
+ onKeyup: o[4] || (o[4] = P((e) => s(u).handleQuery(), ["enter"])),
225
225
  class: "!w-[203px]"
226
226
  }, null, 8, ["modelValue", "placeholder"])
227
227
  ]),
@@ -232,22 +232,22 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de
232
232
  }),
233
233
  a(f, { span: 6 }, {
234
234
  default: l(() => [
235
- a(S, { class: "search-btn" }, {
235
+ a(V, { class: "search-btn" }, {
236
236
  default: l(() => [
237
- a(y, {
237
+ a(_, {
238
238
  type: "primary",
239
- onClick: o[5] || (o[5] = (e) => s(n).handleQuery())
239
+ onClick: o[5] || (o[5] = (e) => s(u).handleQuery())
240
240
  }, {
241
241
  default: l(() => [
242
- c(u(t.$t("common.search")), 1)
242
+ i(n(t.$t("common.search")), 1)
243
243
  ]),
244
244
  _: 1
245
245
  }),
246
- a(y, {
247
- onClick: o[6] || (o[6] = (e) => s(n).resetQuery())
246
+ a(_, {
247
+ onClick: o[6] || (o[6] = (e) => s(u).resetQuery())
248
248
  }, {
249
249
  default: l(() => [
250
- c(u(t.$t("common.reset")), 1)
250
+ i(n(t.$t("common.reset")), 1)
251
251
  ]),
252
252
  _: 1
253
253
  })
@@ -264,7 +264,7 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de
264
264
  _: 1
265
265
  }, 8, ["model"])
266
266
  ]),
267
- a(Z, {
267
+ a(x, {
268
268
  shadow: "never",
269
269
  class: "table-container"
270
270
  }, {
@@ -273,34 +273,34 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de
273
273
  default: l(() => [
274
274
  a(f, { span: 17 }, {
275
275
  default: l(() => [
276
- b((m(), I(y, {
276
+ b((r(), I(_, {
277
277
  type: "primary",
278
- onClick: Q
278
+ onClick: Y
279
279
  }, {
280
280
  default: l(() => [
281
- c(u(t.$t("common.add")), 1)
281
+ i(n(t.$t("common.add")), 1)
282
282
  ]),
283
283
  _: 1
284
284
  })), [
285
285
  [h, ["goods:goods_spu:add"]]
286
286
  ]),
287
- b((m(), I(y, {
287
+ b((r(), I(_, {
288
288
  type: "primary",
289
- onClick: o[7] || (o[7] = (e) => s(n).deleteRecords())
289
+ onClick: o[7] || (o[7] = (e) => s(u).deleteRecords())
290
290
  }, {
291
291
  default: l(() => [
292
- c(u(t.$t("common.batchDelete")), 1)
292
+ i(n(t.$t("common.batchDelete")), 1)
293
293
  ]),
294
294
  _: 1
295
295
  })), [
296
296
  [h, ["goods:goods_spu:delete"]]
297
297
  ]),
298
- b((m(), I(y, {
298
+ b((r(), I(_, {
299
299
  type: "primary",
300
- onClick: F
300
+ onClick: G
301
301
  }, {
302
302
  default: l(() => [
303
- c(u(t.$t("goodsSpu.batchShelf")), 1)
303
+ i(n(t.$t("goodsSpu.batchShelf")), 1)
304
304
  ]),
305
305
  _: 1
306
306
  })), [
@@ -314,9 +314,9 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de
314
314
  class: "container-float"
315
315
  }, {
316
316
  default: l(() => [
317
- a(J, {
318
- modelValue: s(w),
319
- "onUpdate:modelValue": o[8] || (o[8] = (e) => P(w) ? w.value = e : w = e),
317
+ a(O, {
318
+ modelValue: s(y),
319
+ "onUpdate:modelValue": o[8] || (o[8] = (e) => R(y) ? y.value = e : y = e),
320
320
  "label-name": "goods/goods-spu"
321
321
  }, null, 8, ["modelValue"])
322
322
  ]),
@@ -327,40 +327,40 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de
327
327
  })
328
328
  ]),
329
329
  footer: l(() => [
330
- s(v) > 0 ? (m(), I(X, {
330
+ s(S) > 0 ? (r(), I(Z, {
331
331
  key: 0,
332
- total: s(v),
333
- "onUpdate:total": o[9] || (o[9] = (e) => P(v) ? v.value = e : null),
332
+ total: s(S),
333
+ "onUpdate:total": o[9] || (o[9] = (e) => R(S) ? S.value = e : null),
334
334
  "current-page": d.value.curPage,
335
335
  "onUpdate:currentPage": o[10] || (o[10] = (e) => d.value.curPage = e),
336
336
  "page-size": d.value.pageSize,
337
337
  "onUpdate:pageSize": o[11] || (o[11] = (e) => d.value.pageSize = e),
338
- onPagination: o[12] || (o[12] = (e) => s(n).getList())
339
- }, null, 8, ["total", "current-page", "page-size"])) : le("", !0)
338
+ onPagination: o[12] || (o[12] = (e) => s(u).getList())
339
+ }, null, 8, ["total", "current-page", "page-size"])) : te("", !0)
340
340
  ]),
341
341
  default: l(() => [
342
- a(W, {
342
+ a(X, {
343
343
  ref_key: "multipleTableRef",
344
- ref: T,
344
+ ref: $,
345
345
  "row-key": "spuId",
346
- "list-loading": s(L),
347
- data: s(H),
348
- "table-label": s(w),
346
+ "list-loading": s(H),
347
+ data: s(Q),
348
+ "table-label": s(y),
349
349
  onSelectionChange: K,
350
350
  onSortChange: M
351
351
  }, {
352
352
  shopId: l((e) => [
353
- r("span", null, u(s(g).shopInfoBizDict.getValue(e.data.row.shopId)), 1)
353
+ m("span", null, n(s(g).shopInfoBizDict.getValue(e.data.row.shopId)), 1)
354
354
  ]),
355
355
  categoryId: l((e) => [
356
- r("span", null, u(s(g).goodsCategoryDict.getValue(e.data.row.categoryId)), 1)
356
+ m("span", null, n(s(g).goodsCategoryDict.getValue(e.data.row.categoryId)), 1)
357
357
  ]),
358
358
  picUrls: l((e) => [
359
- r("span", null, [
360
- a(O, {
361
- src: s(j).imageUrl(e.data.row.picUrls.split(",")[0], 50, 50),
359
+ m("span", null, [
360
+ a(W, {
361
+ src: s(E).imageUrl(e.data.row.picUrls.split(",")[0], 50, 50),
362
362
  "preview-src-list": [
363
- s(j).imageUrl(e.data.row.picUrls.split(",")[0])
363
+ s(E).imageUrl(e.data.row.picUrls.split(",")[0])
364
364
  ],
365
365
  "preview-teleported": "",
366
366
  "hide-on-click-modal": "",
@@ -369,27 +369,33 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de
369
369
  ])
370
370
  ]),
371
371
  shelf: l((e) => [
372
- r("span", null, [
372
+ m("span", null, [
373
373
  a(U, {
374
374
  modelValue: e.data.row.shelf,
375
- "onUpdate:modelValue": (i) => e.data.row.shelf = i,
376
- onClick: (i) => s(n).enableRecord(e.data.row, e.data.row.shelf)
375
+ "onUpdate:modelValue": (c) => e.data.row.shelf = c,
376
+ onClick: (c) => s(u).enableRecord(e.data.row, e.data.row.shelf)
377
377
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onClick"])
378
378
  ])
379
379
  ]),
380
380
  minPrice: l((e) => [
381
- r("span", null, u(e.data.row.minPrice) + " ~ " + u(e.data.row.maxPrice), 1)
381
+ m("span", null, [
382
+ e.data.row.minPrice === e.data.row.maxPrice ? (r(), w(z, { key: 0 }, [
383
+ i(n(e.data.row.minPrice), 1)
384
+ ], 64)) : (r(), w(z, { key: 1 }, [
385
+ i(n(e.data.row.minPrice) + " ~ " + n(e.data.row.maxPrice), 1)
386
+ ], 64))
387
+ ])
382
388
  ]),
383
389
  specType: l((e) => [
384
- r("span", null, u(s(g).specTypeEnum.getEnumValue(e.data.row.specType)), 1)
390
+ m("span", null, n(s(g).specTypeEnum.getEnumValue(e.data.row.specType)), 1)
385
391
  ]),
386
392
  approvalStatus: l((e) => [
387
- r("span", null, u(s(g).approvalStatusEnum.getEnumValue(
393
+ m("span", null, n(s(g).approvalStatusEnum.getEnumValue(
388
394
  e.data.row.approvalStatus
389
395
  )), 1)
390
396
  ]),
391
397
  updateTime: l((e) => [
392
- r("span", null, u(s(q).$moment.formatDate(
398
+ m("span", null, n(s(B).$moment.formatDate(
393
399
  e.data.row.updateTime,
394
400
  "YYYY-MM-DD HH:mm:ss"
395
401
  )), 1)
@@ -397,33 +403,33 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de
397
403
  enable: l((e) => [
398
404
  a(U, {
399
405
  modelValue: e.data.row.enable,
400
- "onUpdate:modelValue": (i) => e.data.row.enable = i,
401
- onChange: (i) => s(n).enableRecord(e.data.row, e.data.row.enable)
406
+ "onUpdate:modelValue": (c) => e.data.row.enable = c,
407
+ onChange: (c) => s(u).enableRecord(e.data.row, e.data.row.enable)
402
408
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
403
409
  ]),
404
410
  operation: l((e) => [
405
- b((m(), V("span", {
411
+ b((r(), w("span", {
406
412
  class: "el-button-color",
407
- onClick: (i) => Y(e.data.row)
413
+ onClick: (c) => A(e.data.row)
408
414
  }, [
409
- c(u(t.$t("common.edit")), 1)
410
- ], 8, ue)), [
415
+ i(n(t.$t("common.edit")), 1)
416
+ ], 8, pe)), [
411
417
  [h, ["goods:goods_spu:update"]]
412
418
  ]),
413
- b((m(), V("span", {
419
+ b((r(), w("span", {
414
420
  class: "el-button-color dropdown-left",
415
- onClick: (i) => s(n).deleteRecord(e.data.row)
421
+ onClick: (c) => s(u).deleteRecord(e.data.row)
416
422
  }, [
417
- c(u(t.$t("common.delete")), 1)
418
- ], 8, pe)), [
423
+ i(n(t.$t("common.delete")), 1)
424
+ ], 8, de)), [
419
425
  [h, ["goods:goods_spu:delete"]]
420
426
  ]),
421
- b((m(), V("span", {
427
+ b((r(), w("span", {
422
428
  class: "el-button-color dropdown-left",
423
- onClick: (i) => A(e.data.row)
429
+ onClick: (c) => F(e.data.row)
424
430
  }, [
425
- c(u(t.$t("common.view")), 1)
426
- ], 8, de)), [
431
+ i(n(t.$t("common.view")), 1)
432
+ ], 8, re)), [
427
433
  [h, ["goods:goods_spu:view"]]
428
434
  ])
429
435
  ]),
@@ -437,5 +443,5 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de
437
443
  }
438
444
  });
439
445
  export {
440
- we as _
446
+ ye as _
441
447
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as te, ref as b, computed as se, watch as D, resolveComponent as i, openBlock as m, createElementBlock as _, Fragment as k, unref as O, createVNode as o, withCtx as a, createCommentVNode as I, renderList as y, createElementVNode as S, toDisplayString as Y, createTextVNode as w, createBlock as P } from "vue";
2
2
  import { C as E, D as ue, S as H, a as ne } from "./index-CKeHa-Cx.mjs";
3
- import { s as de, _ as re } from "./skuTable-DYmQYXk3.mjs";
3
+ import { s as de, _ as re } from "./skuTable-BlK2s902.mjs";
4
4
  const pe = { key: 0 }, ce = {
5
5
  key: 1,
6
6
  class: "w-full"
@@ -162,6 +162,7 @@ const pe = { key: 0 }, ce = {
162
162
  "onUpdate:modelValue": l[0] || (l[0] = (u) => r.value.salePrice = u),
163
163
  precision: 2,
164
164
  step: 0,
165
+ min: 0.01,
165
166
  placeholder: e.$t("goodsSpu.salePriceRequired"),
166
167
  class: "w-full",
167
168
  controls: !1
@@ -184,6 +185,7 @@ const pe = { key: 0 }, ce = {
184
185
  "onUpdate:modelValue": l[1] || (l[1] = (u) => r.value.marketPrice = u),
185
186
  precision: 2,
186
187
  step: 0,
188
+ min: 0.01,
187
189
  placeholder: e.$t("goodsSpu.marketPriceRequired"),
188
190
  class: "w-full",
189
191
  controls: !1
@@ -206,6 +208,7 @@ const pe = { key: 0 }, ce = {
206
208
  "onUpdate:modelValue": l[2] || (l[2] = (u) => r.value.costPrice = u),
207
209
  precision: 2,
208
210
  step: 0,
211
+ min: 0.01,
209
212
  placeholder: e.$t("goodsSpu.costPriceRequired"),
210
213
  class: "w-full",
211
214
  controls: !1
@@ -229,7 +232,8 @@ const pe = { key: 0 }, ce = {
229
232
  placeholder: e.$t("goodsSpu.stockRequired"),
230
233
  class: "w-full",
231
234
  controls: !1,
232
- precision: 0
235
+ precision: 0,
236
+ min: 0
233
237
  }, null, 8, ["modelValue", "placeholder"])
234
238
  ]),
235
239
  _: 1
@@ -249,7 +253,8 @@ const pe = { key: 0 }, ce = {
249
253
  "onUpdate:modelValue": l[4] || (l[4] = (u) => r.value.weight = u),
250
254
  placeholder: e.$t("goodsSpu.weightRequired"),
251
255
  class: "w-full",
252
- controls: !1
256
+ controls: !1,
257
+ min: 0
253
258
  }, null, 8, ["modelValue", "placeholder"])
254
259
  ]),
255
260
  _: 1
@@ -269,7 +274,8 @@ const pe = { key: 0 }, ce = {
269
274
  "onUpdate:modelValue": l[5] || (l[5] = (u) => r.value.volume = u),
270
275
  controls: !1,
271
276
  placeholder: e.$t("goodsSpu.volumeRequired"),
272
- class: "w-full"
277
+ class: "w-full",
278
+ min: 0
273
279
  }, null, 8, ["modelValue", "placeholder"])
274
280
  ]),
275
281
  _: 1
@@ -419,7 +425,7 @@ const pe = { key: 0 }, ce = {
419
425
  ], 64);
420
426
  };
421
427
  }
422
- }), Se = /* @__PURE__ */ re(ge, [["__scopeId", "data-v-1db08e7e"]]);
428
+ }), Se = /* @__PURE__ */ re(ge, [["__scopeId", "data-v-d3b23fe5"]]);
423
429
  export {
424
430
  Se as default
425
431
  };