xyvcard-goods 0.0.8 → 0.0.9

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 (24) hide show
  1. package/dist/{approveFailIndex-BecI6njE.mjs → approveFailIndex-DJf9bHab.mjs} +1 -1
  2. package/dist/{approveFailIndex.vue_vue_type_script_setup_true_lang-1FXHUoMJ.mjs → approveFailIndex.vue_vue_type_script_setup_true_lang-mXqZdtba.mjs} +31 -31
  3. package/dist/{auditIndex-ByyMgebr.mjs → auditIndex-CCkGsSy2.mjs} +1 -1
  4. package/dist/{auditIndex.vue_vue_type_script_setup_true_lang-DT2irP9g.mjs → auditIndex.vue_vue_type_script_setup_true_lang-DHolmNaP.mjs} +19 -19
  5. package/dist/edit-D37yka6Z.mjs +470 -0
  6. package/dist/{index-AZ4TxL-_.mjs → index-CKeHa-Cx.mjs} +55 -55
  7. package/dist/{index-BypI3ZNk.mjs → index-vcmJ06-Y.mjs} +81 -81
  8. package/dist/index.mjs +8 -37
  9. package/dist/{info-BJ1Ld_6D.mjs → info-CPZykxS1.mjs} +27 -27
  10. package/dist/{saleIndex-CBtuv6um.mjs → saleIndex-CdAcvCzO.mjs} +1 -1
  11. package/dist/{saleIndex.vue_vue_type_script_setup_true_lang-Cxv3foxp.mjs → saleIndex.vue_vue_type_script_setup_true_lang-CLzVH-ix.mjs} +36 -36
  12. package/dist/{shelfIndex-CykEAeD4.mjs → shelfIndex-ZHuhzU_h.mjs} +1 -1
  13. package/dist/{shelfIndex.vue_vue_type_script_setup_true_lang-UPt1ZDpP.mjs → shelfIndex.vue_vue_type_script_setup_true_lang-CTv-j8Xe.mjs} +8 -8
  14. package/dist/{skuForm-DdiMztDh.mjs → skuForm-BSlT4TYd.mjs} +48 -48
  15. package/dist/skuTable-DYmQYXk3.mjs +535 -0
  16. package/dist/style.css +1 -1
  17. package/dts/components/EnumRadio/index.vue.d.ts +3 -4
  18. package/dts/components/GoodsUpload/ImageUpload.vue.d.ts +18 -10
  19. package/dts/constant.d.ts +4 -4
  20. package/dts/router/index.d.ts +2 -2
  21. package/dts/views/goods/goods-spu/skuForm.vue.d.ts +1 -1
  22. package/package.json +65 -65
  23. package/dist/edit-BWUxDk9Y.mjs +0 -594
  24. package/dist/skuTable-Cg06m_5i.mjs +0 -606
@@ -1,38 +1,38 @@
1
- import { defineComponent as ge, getCurrentInstance as _e, ref as P, resolveComponent as n, resolveDirective as he, openBlock as p, createElementBlock as k, createVNode as t, withCtx as o, Fragment as we, renderList as be, unref as s, createBlock as g, createElementVNode as _, withKeys as K, createTextVNode as m, toDisplayString as u, withDirectives as y, isRef as M, createCommentVNode as V } from "vue";
1
+ import { defineComponent as ge, getCurrentInstance as _e, ref as A, resolveComponent as n, resolveDirective as he, openBlock as p, createElementBlock as $, createVNode as t, withCtx as o, Fragment as we, renderList as be, unref as s, createBlock as g, createElementVNode as _, withKeys as K, createTextVNode as m, toDisplayString as u, withDirectives as S, isRef as M, createCommentVNode as k } from "vue";
2
2
  import { ElMessage as I } from "element-plus";
3
3
  import { useRouter as ve } from "vue-router";
4
- import { useTableHooks as ye, fileApi as J } from "jmash-core";
5
- import { useI18n as Se } from "vue-i18n";
4
+ import { useTableHooks as Se, fileApi as J } from "jmash-core";
5
+ import { useI18n as ye } from "vue-i18n";
6
6
  import { goodsSpuApi as L } from "./index.mjs";
7
- import { D as b, C as j } from "./index-AZ4TxL-_.mjs";
8
- import { _ as Ce } from "./saleIndex.vue_vue_type_script_setup_true_lang-Cxv3foxp.mjs";
9
- import { _ as $e } from "./shelfIndex.vue_vue_type_script_setup_true_lang-UPt1ZDpP.mjs";
10
- import { _ as ke } from "./auditIndex.vue_vue_type_script_setup_true_lang-DT2irP9g.mjs";
11
- import { _ as Ve } from "./approveFailIndex.vue_vue_type_script_setup_true_lang-1FXHUoMJ.mjs";
12
- const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-container" }, Ue = ["onClick"], De = ["onClick"], Re = ["onClick"], Ye = /* @__PURE__ */ ge({
7
+ import { D as b, C as z } from "./index-CKeHa-Cx.mjs";
8
+ import { _ as Ce } from "./saleIndex.vue_vue_type_script_setup_true_lang-CLzVH-ix.mjs";
9
+ import { _ as Ve } from "./shelfIndex.vue_vue_type_script_setup_true_lang-CTv-j8Xe.mjs";
10
+ import { _ as $e } from "./auditIndex.vue_vue_type_script_setup_true_lang-DHolmNaP.mjs";
11
+ import { _ as ke } from "./approveFailIndex.vue_vue_type_script_setup_true_lang-mXqZdtba.mjs";
12
+ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-container" }, Re = ["onClick"], Ue = ["onClick"], Pe = ["onClick"], Ye = /* @__PURE__ */ ge({
13
13
  __name: "index",
14
- setup(ze) {
15
- const { t: c } = Se(), D = ve(), { proxy: G } = _e(), i = P({}), {
14
+ setup(De) {
15
+ const { t: c } = ye(), U = ve(), { proxy: G } = _e(), i = A({}), {
16
16
  tableHooks: d,
17
- multipleTableRef: R,
17
+ multipleTableRef: P,
18
18
  queryFormRef: W,
19
19
  listLoading: X,
20
20
  tableData: Z,
21
21
  total: N
22
- } = ye(c, L, i);
23
- let T = P([
22
+ } = Se(c, L, i);
23
+ let T = A([
24
24
  {
25
25
  label: "goodsSpu.shopId",
26
26
  prop: "shopId",
27
27
  slotName: "shopId",
28
28
  columnType: "slot",
29
- width: "150",
29
+ width: "250",
30
30
  isColumn: !0
31
31
  },
32
32
  {
33
33
  label: "goodsSpu.spuName",
34
34
  prop: "spuName",
35
- width: "150",
35
+ width: "200",
36
36
  isColumn: !0
37
37
  },
38
38
  {
@@ -54,7 +54,7 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
54
54
  {
55
55
  label: "goodsSpu.price",
56
56
  prop: "minPrice",
57
- width: "130",
57
+ width: "120",
58
58
  sortable: "custom",
59
59
  slotName: "minPrice",
60
60
  columnType: "slot",
@@ -63,7 +63,7 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
63
63
  {
64
64
  label: "goodsSpu.spuCode",
65
65
  prop: "spuCode",
66
- width: "150",
66
+ width: "120",
67
67
  sortable: "custom",
68
68
  isColumn: !0
69
69
  },
@@ -77,7 +77,7 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
77
77
  {
78
78
  label: "goodsSpu.specType",
79
79
  prop: "specType",
80
- width: "130",
80
+ width: "120",
81
81
  slotName: "specType",
82
82
  columnType: "slot",
83
83
  sortable: "custom",
@@ -86,7 +86,7 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
86
86
  {
87
87
  label: "goodsSpu.shelf",
88
88
  prop: "shelf",
89
- width: "150",
89
+ width: "120",
90
90
  slotName: "shelf",
91
91
  columnType: "slot",
92
92
  sortable: "custom",
@@ -95,7 +95,7 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
95
95
  {
96
96
  label: "goodsSpu.approvalStatus",
97
97
  prop: "approvalStatus",
98
- width: "130",
98
+ width: "120",
99
99
  slotName: "approvalStatus",
100
100
  columnType: "slot",
101
101
  isColumn: !0
@@ -119,18 +119,18 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
119
119
  }
120
120
  ]);
121
121
  b.shopInfoBizDict.useValues(), b.goodsCategoryDict.useValues();
122
- const h = P(0);
122
+ const h = A(0);
123
123
  function x() {
124
- D.push({ path: "/rawgoods/goods-spu/edit" });
124
+ U.push({ path: "/rawgoods/goods-spu/edit" });
125
125
  }
126
126
  function ee(l) {
127
- D.push({
127
+ U.push({
128
128
  path: "/rawgoods/goods-spu/edit",
129
129
  query: { spuId: l.spuId }
130
130
  });
131
131
  }
132
132
  function oe(l) {
133
- D.push({
133
+ U.push({
134
134
  path: "/rawgoods/goods-spu/info",
135
135
  query: { spuId: l.spuId }
136
136
  });
@@ -158,7 +158,7 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
158
158
  }) : I({
159
159
  message: c("goodsSpu.successOffShelf") + r.data + c("common.stripData"),
160
160
  type: "success"
161
- }), d.getList(), (f = R.value) == null || f.clearSelection());
161
+ }), d.getList(), (f = P.value) == null || f.clearSelection());
162
162
  });
163
163
  }
164
164
  function se(l) {
@@ -172,35 +172,35 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
172
172
  const a = d.selectionRows.value.map((r) => r.spuId);
173
173
  L.audit({ spuId: a }, l).then((r) => {
174
174
  var f;
175
- r.status === 200 && (l === j.approval_pass ? I({
175
+ r.status === 200 && (l === z.APPROVAL_PASS ? I({
176
176
  message: c("goodsSpu.successApproval") + r.data + c("common.stripData"),
177
177
  type: "success"
178
178
  }) : I({
179
179
  message: c("goodsSpu.successFilled") + r.data + c("common.stripData"),
180
180
  type: "success"
181
- }), d.getList(), (f = R.value) == null || f.clearSelection());
181
+ }), d.getList(), (f = P.value) == null || f.clearSelection());
182
182
  });
183
183
  }
184
184
  function ne(l) {
185
185
  h.value = Number(l.index);
186
186
  }
187
187
  return d.getList(), (l, a) => {
188
- const r = n("jmash-select"), f = n("el-form-item"), S = n("el-col"), E = n("el-input"), C = n("el-button"), A = n("el-row"), ue = n("el-form"), q = n("arrow-down"), $ = n("el-icon"), B = n("Unlock"), U = n("el-dropdown-item"), F = n("Lock"), H = n("el-dropdown-menu"), O = n("el-dropdown"), de = n("jmash-column-select"), pe = n("el-image"), Q = n("el-switch"), re = n("jmash-table"), me = n("jmash-pagination"), ie = n("el-card"), ce = n("el-tab-pane"), fe = n("el-tabs"), v = he("hasPerm");
189
- return p(), k("div", Ie, [
188
+ const r = n("jmash-select"), f = n("el-form-item"), y = n("el-col"), j = n("el-input"), C = n("el-button"), E = n("el-row"), ue = n("el-form"), O = n("arrow-down"), V = n("el-icon"), q = n("Unlock"), R = n("el-dropdown-item"), B = n("Lock"), F = n("el-dropdown-menu"), H = n("el-dropdown"), de = n("jmash-column-select"), pe = n("el-image"), Q = n("el-switch"), re = n("jmash-table"), me = n("jmash-pagination"), ie = n("el-card"), ce = n("el-tab-pane"), fe = n("el-tabs"), v = he("hasPerm");
189
+ return p(), $("div", Ie, [
190
190
  t(fe, {
191
191
  modelValue: h.value,
192
- "onUpdate:modelValue": a[13] || (a[13] = (z) => h.value = z),
192
+ "onUpdate:modelValue": a[13] || (a[13] = (D) => h.value = D),
193
193
  type: "border-card",
194
194
  onTabClick: ne
195
195
  }, {
196
196
  default: o(() => [
197
- (p(!0), k(we, null, be(s(b).goodsSpuListSortEnum.values, (z, Y) => (p(), g(ce, {
197
+ (p(!0), $(we, null, be(s(b).goodsSpuListSortEnum.values, (D, Y) => (p(), g(ce, {
198
198
  key: Y,
199
- label: z.value,
199
+ label: D.value,
200
200
  name: Y
201
201
  }, {
202
202
  default: o(() => [
203
- h.value === 0 ? (p(), k("div", Te, [
203
+ h.value === 0 ? (p(), $("div", Te, [
204
204
  _("div", Ne, [
205
205
  t(ue, {
206
206
  ref_for: !0,
@@ -210,9 +210,9 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
210
210
  inline: !0
211
211
  }, {
212
212
  default: o(() => [
213
- t(A, null, {
213
+ t(E, null, {
214
214
  default: o(() => [
215
- t(S, { span: 6 }, {
215
+ t(y, { span: 6 }, {
216
216
  default: o(() => [
217
217
  t(f, {
218
218
  label: l.$t("goodsSpu.shopId"),
@@ -232,14 +232,14 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
232
232
  ]),
233
233
  _: 1
234
234
  }),
235
- t(S, { span: 6 }, {
235
+ t(y, { span: 6 }, {
236
236
  default: o(() => [
237
237
  t(f, {
238
238
  label: l.$t("goodsSpu.spuCode"),
239
239
  prop: "spuCode"
240
240
  }, {
241
241
  default: o(() => [
242
- t(E, {
242
+ t(j, {
243
243
  modelValue: i.value.spuCode,
244
244
  "onUpdate:modelValue": a[1] || (a[1] = (e) => i.value.spuCode = e),
245
245
  placeholder: l.$t("goodsSpu.spuCode"),
@@ -252,14 +252,14 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
252
252
  ]),
253
253
  _: 1
254
254
  }),
255
- t(S, { span: 6 }, {
255
+ t(y, { span: 6 }, {
256
256
  default: o(() => [
257
257
  t(f, {
258
258
  label: l.$t("goodsSpu.spuName"),
259
259
  prop: "spuName"
260
260
  }, {
261
261
  default: o(() => [
262
- t(E, {
262
+ t(j, {
263
263
  modelValue: i.value.spuName,
264
264
  "onUpdate:modelValue": a[3] || (a[3] = (e) => i.value.spuName = e),
265
265
  placeholder: l.$t("goodsSpu.spuName"),
@@ -272,7 +272,7 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
272
272
  ]),
273
273
  _: 1
274
274
  }),
275
- t(S, { span: 6 }, {
275
+ t(y, { span: 6 }, {
276
276
  default: o(() => [
277
277
  t(f, { class: "search-btn" }, {
278
278
  default: o(() => [
@@ -311,11 +311,11 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
311
311
  class: "table-container"
312
312
  }, {
313
313
  header: o(() => [
314
- t(A, null, {
314
+ t(E, null, {
315
315
  default: o(() => [
316
- t(S, { span: 17 }, {
316
+ t(y, { span: 17 }, {
317
317
  default: o(() => [
318
- y((p(), g(C, {
318
+ S((p(), g(C, {
319
319
  type: "primary",
320
320
  onClick: x
321
321
  }, {
@@ -326,7 +326,7 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
326
326
  })), [
327
327
  [v, ["goods:goods_spu:add"]]
328
328
  ]),
329
- y((p(), g(C, {
329
+ S((p(), g(C, {
330
330
  type: "primary",
331
331
  onClick: a[7] || (a[7] = (e) => s(d).deleteRecords())
332
332
  }, {
@@ -337,18 +337,18 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
337
337
  })), [
338
338
  [v, ["goods:goods_spu:delete"]]
339
339
  ]),
340
- y((p(), g(O, {
340
+ S((p(), g(H, {
341
341
  class: "dropdown-left",
342
342
  onCommand: ae
343
343
  }, {
344
344
  dropdown: o(() => [
345
- t(H, null, {
345
+ t(F, null, {
346
346
  default: o(() => [
347
- t(U, { command: "true" }, {
347
+ t(R, { command: "true" }, {
348
348
  default: o(() => [
349
- t($, { size: "14" }, {
349
+ t(V, { size: "14" }, {
350
350
  default: o(() => [
351
- t(B)
351
+ t(q)
352
352
  ]),
353
353
  _: 1
354
354
  }),
@@ -356,11 +356,11 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
356
356
  ]),
357
357
  _: 1
358
358
  }),
359
- t(U, { command: "false" }, {
359
+ t(R, { command: "false" }, {
360
360
  default: o(() => [
361
- t($, { size: "14" }, {
361
+ t(V, { size: "14" }, {
362
362
  default: o(() => [
363
- t(F)
363
+ t(B)
364
364
  ]),
365
365
  _: 1
366
366
  }),
@@ -376,9 +376,9 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
376
376
  t(C, { type: "primary" }, {
377
377
  default: o(() => [
378
378
  m(u(l.$t("goodsSpu.batchShelf")) + "/" + u(l.$t("goodsSpu.batchOffShelf")) + " ", 1),
379
- t($, { class: "el-icon--right" }, {
379
+ t(V, { class: "el-icon--right" }, {
380
380
  default: o(() => [
381
- t(q)
381
+ t(O)
382
382
  ]),
383
383
  _: 1
384
384
  })
@@ -390,20 +390,20 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
390
390
  })), [
391
391
  [v, ["goods:goods_spu:onSale"]]
392
392
  ]),
393
- y((p(), g(O, {
393
+ S((p(), g(H, {
394
394
  class: "dropdown-left",
395
395
  onCommand: se
396
396
  }, {
397
397
  dropdown: o(() => [
398
- t(H, null, {
398
+ t(F, null, {
399
399
  default: o(() => [
400
- t(U, {
401
- command: s(j).approval_pass
400
+ t(R, {
401
+ command: s(z).APPROVAL_PASS
402
402
  }, {
403
403
  default: o(() => [
404
- t($, { size: "14" }, {
404
+ t(V, { size: "14" }, {
405
405
  default: o(() => [
406
- t(B)
406
+ t(q)
407
407
  ]),
408
408
  _: 1
409
409
  }),
@@ -411,13 +411,13 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
411
411
  ]),
412
412
  _: 1
413
413
  }, 8, ["command"]),
414
- t(U, {
415
- command: s(j).approval_not_pass
414
+ t(R, {
415
+ command: s(z).APPROVAL_NOT_PASS
416
416
  }, {
417
417
  default: o(() => [
418
- t($, { size: "14" }, {
418
+ t(V, { size: "14" }, {
419
419
  default: o(() => [
420
- t(F)
420
+ t(B)
421
421
  ]),
422
422
  _: 1
423
423
  }),
@@ -433,9 +433,9 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
433
433
  t(C, { type: "primary" }, {
434
434
  default: o(() => [
435
435
  m(u(l.$t("goodsSpu.batchApproval")) + " ", 1),
436
- t($, { class: "el-icon--right" }, {
436
+ t(V, { class: "el-icon--right" }, {
437
437
  default: o(() => [
438
- t(q)
438
+ t(O)
439
439
  ]),
440
440
  _: 1
441
441
  })
@@ -450,7 +450,7 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
450
450
  ]),
451
451
  _: 1
452
452
  }),
453
- t(S, {
453
+ t(y, {
454
454
  span: 7,
455
455
  class: "container-float"
456
456
  }, {
@@ -477,13 +477,13 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
477
477
  "page-size": i.value.pageSize,
478
478
  "onUpdate:pageSize": a[11] || (a[11] = (e) => i.value.pageSize = e),
479
479
  onPagination: a[12] || (a[12] = (e) => s(d).getList())
480
- }, null, 8, ["total", "current-page", "page-size"])) : V("", !0)
480
+ }, null, 8, ["total", "current-page", "page-size"])) : k("", !0)
481
481
  ]),
482
482
  default: o(() => [
483
483
  t(re, {
484
484
  ref_for: !0,
485
485
  ref_key: "multipleTableRef",
486
- ref: R,
486
+ ref: P,
487
487
  "row-key": "spuId",
488
488
  "list-loading": s(X),
489
489
  data: s(Z),
@@ -554,28 +554,28 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
554
554
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
555
555
  ]),
556
556
  operation: o((e) => [
557
- y((p(), k("span", {
557
+ S((p(), $("span", {
558
558
  class: "el-button-color",
559
559
  onClick: (w) => ee(e.data.row)
560
560
  }, [
561
561
  m(u(l.$t("common.edit")), 1)
562
- ], 8, Ue)), [
562
+ ], 8, Re)), [
563
563
  [v, ["goods:goods_spu:update"]]
564
564
  ]),
565
- y((p(), k("span", {
565
+ S((p(), $("span", {
566
566
  class: "el-button-color dropdown-left",
567
567
  onClick: (w) => s(d).deleteRecord(e.data.row)
568
568
  }, [
569
569
  m(u(l.$t("common.delete")), 1)
570
- ], 8, De)), [
570
+ ], 8, Ue)), [
571
571
  [v, ["goods:goods_spu:delete"]]
572
572
  ]),
573
- y((p(), k("span", {
573
+ S((p(), $("span", {
574
574
  class: "el-button-color dropdown-left",
575
575
  onClick: (w) => oe(e.data.row)
576
576
  }, [
577
577
  m(u(l.$t("common.view")), 1)
578
- ], 8, Re)), [
578
+ ], 8, Pe)), [
579
579
  [v, ["goods:goods_spu:view"]]
580
580
  ])
581
581
  ]),
@@ -584,11 +584,11 @@ const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-co
584
584
  ]),
585
585
  _: 1
586
586
  })
587
- ])) : V("", !0),
588
- h.value === 1 ? (p(), g(Ce, { key: 1 })) : V("", !0),
589
- h.value === 2 ? (p(), g($e, { key: 2 })) : V("", !0),
590
- h.value === 3 ? (p(), g(ke, { key: 3 })) : V("", !0),
591
- h.value === 4 ? (p(), g(Ve, { key: 4 })) : V("", !0)
587
+ ])) : k("", !0),
588
+ h.value === 1 ? (p(), g(Ce, { key: 1 })) : k("", !0),
589
+ h.value === 2 ? (p(), g(Ve, { key: 2 })) : k("", !0),
590
+ h.value === 3 ? (p(), g($e, { key: 3 })) : k("", !0),
591
+ h.value === 4 ? (p(), g(ke, { key: 4 })) : k("", !0)
592
592
  ]),
593
593
  _: 2
594
594
  }, 1032, ["label", "name"]))), 128))
package/dist/index.mjs CHANGED
@@ -1,30 +1,8 @@
1
1
  import { deepMerge as Tt, Layout as Ys, useUserStore as E, clearEmpty as V, request as G, addViteMenus as Os, addDynamicRoute as Ts, i18n as bs } from "jmash-core";
2
2
  const xs = {}, Rs = {
3
- // 商品SKU
4
- // goodsSku: {
5
- // name : "商品SKU",
6
- // skuId: "标识",
7
- // spuId: "商品ID",
8
- // skuCode: "编码",
9
- // picUrl: "图片",
10
- // salePrice: "销售价格",
11
- // marketPrice: "市场价",
12
- // costPrice: "成本价",
13
- // stock: "库存",
14
- // weight: "重量",
15
- // volume: "体积(m³)",
16
- // status: "状态",
17
- // },
18
- // 商品SKU规格值
19
- // goodsSkuSpecValue: {
20
- // name : "商品SKU规格值",
21
- // skuId: "sku_id",
22
- // specId: "规格ID",
23
- // specValueId: "规格值",
24
- // },
25
3
  // 商品SPU
26
4
  goodsSpu: {
27
- shopId: "所属店铺",
5
+ shopId: "所属商家",
28
6
  categoryId: "商品分类",
29
7
  freightType: "运费类型",
30
8
  freightAmount: "运费金额",
@@ -51,7 +29,7 @@ const xs = {}, Rs = {
51
29
  batchRejected: "批量拒绝审核",
52
30
  batchApproval: "批量审核",
53
31
  updateTime: "最后更新时间",
54
- shopIdRequired: "请选择所属店铺",
32
+ shopIdRequired: "请选择所属商家",
55
33
  spuNameRequired: "请输入商品名称",
56
34
  freightAmountRequired: "请输入运费金额",
57
35
  saleNumRequired: "请输入虚拟销量",
@@ -77,13 +55,6 @@ const xs = {}, Rs = {
77
55
  successFilled: "审核失败",
78
56
  successApproval: "审核通过"
79
57
  }
80
- // 商品SPU规格
81
- // goodsSpuSpec: {
82
- // name : "商品SPU规格",
83
- // spuId: "商品SPUID",
84
- // specId: "规格ID",
85
- // orderBy: "排序",
86
- // },
87
58
  };
88
59
  function Ps(e) {
89
60
  let t = e.global.getLocaleMessage("zh-cn");
@@ -91,7 +62,7 @@ function Ps(e) {
91
62
  let s = e.global.getLocaleMessage("en");
92
63
  s = Tt(s, xs), e.global.setLocaleMessage("zh-cn", t), e.global.setLocaleMessage("en", s);
93
64
  }
94
- const Ns = () => import("./edit-BWUxDk9Y.mjs"), Ws = () => import("./info-BJ1Ld_6D.mjs"), Fs = [
65
+ const Ns = () => import("./edit-D37yka6Z.mjs"), Ws = () => import("./info-CPZykxS1.mjs"), Fs = [
95
66
  {
96
67
  path: "/rawgoods",
97
68
  component: Ys,
@@ -103,7 +74,7 @@ const Ns = () => import("./edit-BWUxDk9Y.mjs"), Ws = () => import("./info-BJ1Ld_
103
74
  {
104
75
  path: "goods-spu/edit",
105
76
  component: Ns,
106
- name: "GoodsSpuEdit",
77
+ name: "goodsSpuEdit",
107
78
  meta: {
108
79
  hidden: !0,
109
80
  title: "全部商品",
@@ -114,7 +85,7 @@ const Ns = () => import("./edit-BWUxDk9Y.mjs"), Ws = () => import("./info-BJ1Ld_
114
85
  {
115
86
  path: "goods-spu/info",
116
87
  component: Ws,
117
- name: "GoodsSpuInfo",
88
+ name: "goodsSpuInfo",
118
89
  meta: {
119
90
  hidden: !0,
120
91
  title: "全部商品",
@@ -2785,7 +2756,7 @@ class Ci {
2785
2756
  * @returns 返回一个AxiosPromise对象解析为一个布尔值表示操作是否成功
2786
2757
  */
2787
2758
  enable(t, s) {
2788
- let r = { ...t };
2759
+ const r = { ...t };
2789
2760
  return r.tenant = E().user.tenant, r.shelf = s, V(r), G({
2790
2761
  url: "/v1/goods/goods_spu/on_sale",
2791
2762
  method: "put",
@@ -2827,7 +2798,7 @@ class Ci {
2827
2798
  * @returns 返回一个AxiosPromise,包含审核操作的结果,通常是一个数字状态码
2828
2799
  */
2829
2800
  audit(t, s) {
2830
- let r = { ...t };
2801
+ const r = { ...t };
2831
2802
  return r.tenant = E().user.tenant, r.status = s, V(r), G({
2832
2803
  url: "/v1/goods/goods_spu/audit",
2833
2804
  method: "put",
@@ -2835,7 +2806,7 @@ class Ci {
2835
2806
  });
2836
2807
  }
2837
2808
  }
2838
- const Hi = new Ci(), Ui = /* @__PURE__ */ Object.assign({ "./views/goods/goods-spu/approveFailIndex.vue": () => import("./approveFailIndex-BecI6njE.mjs"), "./views/goods/goods-spu/auditIndex.vue": () => import("./auditIndex-ByyMgebr.mjs"), "./views/goods/goods-spu/edit.vue": () => import("./edit-BWUxDk9Y.mjs"), "./views/goods/goods-spu/index.vue": () => import("./index-BypI3ZNk.mjs"), "./views/goods/goods-spu/info.vue": () => import("./info-BJ1Ld_6D.mjs"), "./views/goods/goods-spu/saleIndex.vue": () => import("./saleIndex-CBtuv6um.mjs"), "./views/goods/goods-spu/shelfIndex.vue": () => import("./shelfIndex-CykEAeD4.mjs"), "./views/goods/goods-spu/skuForm.vue": () => import("./skuForm-DdiMztDh.mjs"), "./views/goods/goods-spu/skuTable.vue": () => import("./skuTable-Cg06m_5i.mjs").then((e) => e.a) }), Ei = {
2809
+ const Hi = new Ci(), Ui = /* @__PURE__ */ Object.assign({ "./views/goods/goods-spu/approveFailIndex.vue": () => import("./approveFailIndex-DJf9bHab.mjs"), "./views/goods/goods-spu/auditIndex.vue": () => import("./auditIndex-CCkGsSy2.mjs"), "./views/goods/goods-spu/edit.vue": () => import("./edit-D37yka6Z.mjs"), "./views/goods/goods-spu/index.vue": () => import("./index-vcmJ06-Y.mjs"), "./views/goods/goods-spu/info.vue": () => import("./info-CPZykxS1.mjs"), "./views/goods/goods-spu/saleIndex.vue": () => import("./saleIndex-CdAcvCzO.mjs"), "./views/goods/goods-spu/shelfIndex.vue": () => import("./shelfIndex-ZHuhzU_h.mjs"), "./views/goods/goods-spu/skuForm.vue": () => import("./skuForm-BSlT4TYd.mjs"), "./views/goods/goods-spu/skuTable.vue": () => import("./skuTable-DYmQYXk3.mjs").then((e) => e.a) }), Ei = {
2839
2810
  install(e) {
2840
2811
  Os(Ui, 7), Ps(bs), Ts(Fs), e.use(Li);
2841
2812
  }