xyvcard-goods 0.0.12 → 0.0.14

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 (38) hide show
  1. package/dist/{edit-h0S6bHag.mjs → edit-BlnYCDI4.mjs} +34 -32
  2. package/dist/edit-BsaWxeqY.mjs +4 -0
  3. package/dist/edit.vue_vue_type_script_setup_true_lang-DRAXgRwD.mjs +236 -0
  4. package/dist/goodsList-Dvsh76f7.mjs +4 -0
  5. package/dist/goodsList.vue_vue_type_script_setup_true_lang-CWJQd86q.mjs +647 -0
  6. package/dist/index-BF7PDcd4.mjs +55 -0
  7. package/dist/index-Ct0LRSwV.mjs +333 -0
  8. package/dist/index-DZJVaUh3.mjs +248 -0
  9. package/dist/index.mjs +139 -139
  10. package/dist/{info-lDMLR1ZW.mjs → info-wrevnU3P.mjs} +19 -18
  11. package/dist/{skuForm-ChaaXJgn.mjs → skuForm-B7yYjwdJ.mjs} +23 -21
  12. package/dist/{skuTable-BBiyXctZ.mjs → skuTable-YDBH_oRN.mjs} +18 -17
  13. package/dist/style.css +1 -1
  14. package/dts/api/dict.d.ts +2 -2
  15. package/dts/api/goods-category/index.d.ts +23 -0
  16. package/dts/api/goods-category/types.d.ts +68 -0
  17. package/dts/api/index.d.ts +3 -2
  18. package/dts/constant.d.ts +10 -0
  19. package/dts/views/goods/goods-category/edit.vue.d.ts +22 -0
  20. package/dts/{components/EnumRadio/index.vue.d.ts → views/goods/goods-spu/goodsList.vue.d.ts} +16 -11
  21. package/package.json +12 -15
  22. package/dist/approveFailIndex-B-VGnf1U.mjs +0 -4
  23. package/dist/approveFailIndex.vue_vue_type_script_setup_true_lang-CiIyafoQ.mjs +0 -418
  24. package/dist/auditIndex-tEq8uYdA.mjs +0 -4
  25. package/dist/auditIndex.vue_vue_type_script_setup_true_lang-BW22LRCL.mjs +0 -492
  26. package/dist/index-BMlIwb1h.mjs +0 -621
  27. package/dist/index-CKeHa-Cx.mjs +0 -139
  28. package/dist/saleIndex-B7TBQOB6.mjs +0 -4
  29. package/dist/saleIndex.vue_vue_type_script_setup_true_lang-B6wKXUcV.mjs +0 -415
  30. package/dist/shelfIndex-BfsIMQfD.mjs +0 -4
  31. package/dist/shelfIndex.vue_vue_type_script_setup_true_lang-C6RfhqIl.mjs +0 -447
  32. package/dts/components/GoodsUpload/ImageUpload.vue.d.ts +0 -40
  33. package/dts/components/GoodsUpload/MultiUpload.vue.d.ts +0 -24
  34. package/dts/components/GoodsUpload/index.vue.d.ts +0 -18
  35. package/dts/views/goods/goods-spu/auditIndex.vue.d.ts +0 -2
  36. package/dts/views/goods/goods-spu/saleIndex.vue.d.ts +0 -2
  37. package/dts/views/goods/goods-spu/shelfIndex.vue.d.ts +0 -2
  38. /package/dts/views/goods/{goods-spu/approveFailIndex.vue.d.ts → goods-category/index.vue.d.ts} +0 -0
@@ -1,14 +1,14 @@
1
- import { defineComponent as q, ref as k, computed as j, watch as F, resolveComponent as S, openBlock as f, createElementBlock as V, createVNode as i, withCtx as e, createTextVNode as n, toDisplayString as l, createElementVNode as a, unref as r, Fragment as C, renderList as P, createBlock as y, createCommentVNode as w } from "vue";
2
- import { fileApi as B, routerUtil as H } from "jmash-core";
3
- import { useRouter as O, useRoute as R } from "vue-router";
4
- import { D as p, C as N, S as Y } from "./index-CKeHa-Cx.mjs";
5
- import { s as z } from "./skuTable-BBiyXctZ.mjs";
1
+ import { defineComponent as q, ref as k, computed as j, watch as F, resolveComponent as S, openBlock as f, createElementBlock as V, createVNode as i, withCtx as e, createTextVNode as n, toDisplayString as l, createElementVNode as a, unref as r, Fragment as C, renderList as P, createBlock as b, createCommentVNode as w } from "vue";
2
+ import { fileApi as B, routerUtil as z } from "jmash-core";
3
+ import { useRouter as H, useRoute as O } from "vue-router";
4
+ import { D as p, C as N, S as R } from "./index-DZJVaUh3.mjs";
5
+ import { s as Y } from "./skuTable-YDBH_oRN.mjs";
6
6
  import { goodsSpuApi as G } from "./index.mjs";
7
7
  import { g as J } from "./index-BHmGYIuc.mjs";
8
- const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "cell-item" }, X = { class: "cell-item" }, Z = { class: "cell-item" }, x = { class: "cell-item" }, ee = { class: "cell-item" }, le = { class: "cell-item" }, se = { class: "cell-item" }, te = { class: "cell-item" }, oe = { class: "cell-item" }, ue = { class: "cell-item" }, ae = { class: "title-content" }, ie = { class: "cell-item" }, ne = { class: "cell-item" }, ce = { class: "cell-item" }, de = { class: "cell-item" }, re = { class: "cell-item" }, pe = { class: "cell-item" }, me = ["innerHTML"], ye = /* @__PURE__ */ q({
8
+ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "cell-item" }, X = { class: "cell-item" }, Z = { class: "cell-item" }, x = { class: "cell-item" }, ee = { class: "cell-item" }, le = { class: "cell-item" }, se = { class: "cell-item" }, te = { class: "cell-item" }, oe = { class: "cell-item" }, ue = { class: "cell-item" }, ae = { class: "title-content" }, ie = { class: "cell-item" }, ne = { class: "cell-item" }, ce = { class: "cell-item" }, de = { class: "cell-item" }, re = { class: "cell-item" }, pe = { class: "cell-item" }, me = ["innerHTML"], be = /* @__PURE__ */ q({
9
9
  __name: "info",
10
10
  setup(_e) {
11
- const U = O(), b = R(), u = k({}), L = k([]), g = k([]), D = k([]), E = k([]), $ = j(() => g.value.filter(
11
+ const U = H(), y = O(), u = k({}), L = k([]), g = k([]), D = k([]), E = k([]), $ = j(() => g.value.filter(
12
12
  (s) => s.name && s.specValueList != null && s.specValueList.length
13
13
  ));
14
14
  F(
@@ -18,9 +18,9 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
18
18
  deep: !0,
19
19
  immediate: !0
20
20
  }
21
- ), p.shopInfoBizDict.useValues(), p.goodsCategoryDict.useValues(), b.query.spuId && G.findById({ spuId: b.query.spuId }).then(({ data: s }) => {
21
+ ), p.shopInfoBizDict.useValues(), p.goodsCategoryListBizLayDict.useValues(), y.query.spuId && G.findById({ spuId: y.query.spuId }).then(({ data: s }) => {
22
22
  var c, v, o;
23
- u.value = Object.assign(u, s), L.value = (c = s.picUrls) == null ? void 0 : c.split(","), J.findById({ spuId: b.query.spuId }).then(({ data: m }) => {
23
+ u.value = Object.assign(u, s), L.value = (c = s.picUrls) == null ? void 0 : c.split(","), J.findById({ spuId: y.query.spuId }).then(({ data: m }) => {
24
24
  u.value.ensureIds = m.ensures;
25
25
  }), s.specType === N.SPEC_TYPE.MULTI_SPEC && (D.value = (v = s.skuList) == null ? void 0 : v.results, (o = s.skuList) == null || o.results.forEach((m) => {
26
26
  var d;
@@ -45,7 +45,7 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
45
45
  });
46
46
  function A(s) {
47
47
  g.value.forEach((c) => {
48
- E.value = new Y({ specId: c.id }), E.value.useValues().then((v) => {
48
+ E.value = new R({ specId: c.id }), E.value.useValues().then((v) => {
49
49
  v.forEach((o) => {
50
50
  if (o.key === s) {
51
51
  let d = {
@@ -63,7 +63,7 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
63
63
  });
64
64
  }
65
65
  function M() {
66
- H.closeTagView(b.fullPath, U, !1);
66
+ z.closeTagView(y.fullPath, U, !1);
67
67
  }
68
68
  return (s, c) => {
69
69
  const v = S("el-button"), o = S("el-descriptions-item"), m = S("el-image"), d = S("el-tag"), h = S("el-descriptions"), I = S("el-card");
@@ -111,7 +111,7 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
111
111
  a("div", X, l(s.$t("goodsSpu.categoryId")), 1)
112
112
  ]),
113
113
  default: e(() => [
114
- n(" " + l(r(p).goodsCategoryDict.getValue(u.value.categoryId)), 1)
114
+ n(" " + l(r(p).goodsCategoryListBizLayDict.getValue(u.value.categoryId)), 1)
115
115
  ]),
116
116
  _: 1
117
117
  }),
@@ -149,7 +149,7 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
149
149
  a("div", le, l(s.$t("goodsSpu.picUrls")), 1)
150
150
  ]),
151
151
  default: e(() => [
152
- (f(!0), V(C, null, P(L.value, (t) => (f(), y(m, {
152
+ (f(!0), V(C, null, P(L.value, (t) => (f(), b(m, {
153
153
  key: t,
154
154
  src: r(B).imageUrl(t, 80, 80),
155
155
  "preview-src-list": [r(B).imageUrl(t)],
@@ -192,7 +192,7 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
192
192
  a("div", ue, l(s.$t("goodsSpu.ensureIds")), 1)
193
193
  ]),
194
194
  default: e(() => [
195
- (f(!0), V(C, null, P(u.value.ensureIds, (t) => (f(), y(d, {
195
+ (f(!0), V(C, null, P(u.value.ensureIds, (t) => (f(), b(d, {
196
196
  type: "info",
197
197
  key: t
198
198
  }, {
@@ -208,7 +208,7 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
208
208
  _: 1
209
209
  }),
210
210
  a("div", ae, " 商品规格(" + l(r(p).specTypeEnum.getEnumValue(u.value.specType)) + ") ", 1),
211
- u.value.specType == r(N).SPEC_TYPE.UNIFIED_SPEC ? (f(), y(h, {
211
+ u.value.specType == r(N).SPEC_TYPE.UNIFIED_SPEC ? (f(), b(h, {
212
212
  key: 0,
213
213
  class: "margin-top",
214
214
  column: 2,
@@ -290,7 +290,7 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
290
290
  ]),
291
291
  _: 1
292
292
  })) : w("", !0),
293
- g.value.length > 0 ? (f(), y(z, {
293
+ g.value.length > 0 ? (f(), b(Y, {
294
294
  key: 1,
295
295
  specData: $.value,
296
296
  goodsSku: D.value,
@@ -301,12 +301,13 @@ const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "
301
301
  innerHTML: u.value.description
302
302
  }, null, 8, me)
303
303
  ]),
304
- _: 1
304
+ _: 1,
305
+ __: [0, 1]
305
306
  })
306
307
  ]);
307
308
  };
308
309
  }
309
310
  });
310
311
  export {
311
- ye as default
312
+ be as default
312
313
  };
@@ -1,10 +1,10 @@
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
- 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-BBiyXctZ.mjs";
1
+ import { defineComponent as te, ref as b, computed as se, watch as D, resolveComponent as i, openBlock as m, createElementBlock as g, 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
+ import { C as E, D as ue, S as H, a as ne } from "./index-DZJVaUh3.mjs";
3
+ import { s as de, _ as re } from "./skuTable-YDBH_oRN.mjs";
4
4
  const pe = { key: 0 }, ce = {
5
5
  key: 1,
6
6
  class: "w-full"
7
- }, ie = { class: "goods-title" }, me = ["onClick"], fe = { class: "goods-content" }, ve = { class: "goods-tag" }, ge = /* @__PURE__ */ te({
7
+ }, ie = { class: "goods-title" }, me = ["onClick"], fe = { class: "goods-content" }, ve = { class: "goods-tag" }, _e = /* @__PURE__ */ te({
8
8
  __name: "skuForm",
9
9
  props: {
10
10
  // 规格类型
@@ -146,8 +146,8 @@ const pe = { key: 0 }, ce = {
146
146
  }
147
147
  return (e, l) => {
148
148
  const s = i("el-input-number"), n = i("el-form-item"), d = i("el-col"), p = i("el-row"), f = i("Delete"), le = i("el-icon"), oe = i("el-tag"), B = i("el-button"), N = i("el-option"), j = i("el-select"), A = i("el-popover"), G = i("el-tab-pane"), M = i("el-tabs");
149
- return m(), _(k, null, [
150
- v.specType == O(E).SPEC_TYPE.UNIFIED_SPEC ? (m(), _("div", pe, [
149
+ return m(), g(k, null, [
150
+ v.specType == O(E).SPEC_TYPE.UNIFIED_SPEC ? (m(), g("div", pe, [
151
151
  o(p, null, {
152
152
  default: a(() => [
153
153
  o(d, { span: 8 }, {
@@ -287,20 +287,20 @@ const pe = { key: 0 }, ce = {
287
287
  _: 1
288
288
  })
289
289
  ])) : I("", !0),
290
- v.specType == O(E).SPEC_TYPE.MULTI_SPEC ? (m(), _("div", ce, [
290
+ v.specType == O(E).SPEC_TYPE.MULTI_SPEC ? (m(), g("div", ce, [
291
291
  o(M, { type: "border-card" }, {
292
292
  default: a(() => [
293
293
  o(G, { label: "商品规格" }, {
294
294
  default: a(() => [
295
- (m(!0), _(k, null, y(t.value, (u, g) => (m(), _("div", {
295
+ (m(!0), g(k, null, y(t.value, (u, _) => (m(), g("div", {
296
296
  class: "goods-spec",
297
- key: g
297
+ key: _
298
298
  }, [
299
299
  S("div", ie, [
300
300
  S("span", null, Y(u.name), 1),
301
301
  S("span", {
302
302
  class: "goods-delete",
303
- onClick: (c) => Q(g)
303
+ onClick: (c) => Q(_)
304
304
  }, [
305
305
  o(le, null, {
306
306
  default: a(() => [
@@ -313,12 +313,12 @@ const pe = { key: 0 }, ce = {
313
313
  ]),
314
314
  S("div", fe, [
315
315
  S("div", ve, [
316
- (m(!0), _(k, null, y(t.value[g].specValueList, (c, ae) => (m(), P(oe, {
316
+ (m(!0), g(k, null, y(t.value[_].specValueList, (c, ae) => (m(), P(oe, {
317
317
  key: c,
318
318
  closable: "",
319
319
  type: "info",
320
320
  class: "right-dis",
321
- onClose: (_e) => W(g, ae)
321
+ onClose: (ge) => W(_, ae)
322
322
  }, {
323
323
  default: a(() => [
324
324
  w(Y(c.name), 1)
@@ -330,25 +330,26 @@ const pe = { key: 0 }, ce = {
330
330
  placement: "bottom",
331
331
  width: 200,
332
332
  trigger: "click",
333
- onShow: (c) => z(g)
333
+ onShow: (c) => z(_)
334
334
  }, {
335
335
  reference: a(() => [
336
336
  o(B, { class: "m-2" }, {
337
337
  default: a(() => l[8] || (l[8] = [
338
338
  w("添加规格值")
339
339
  ])),
340
- _: 1
340
+ _: 1,
341
+ __: [8]
341
342
  })
342
343
  ]),
343
344
  default: a(() => [
344
345
  o(j, {
345
- modelValue: t.value[g].specValueId,
346
- "onUpdate:modelValue": (c) => t.value[g].specValueId = c,
346
+ modelValue: t.value[_].specValueId,
347
+ "onUpdate:modelValue": (c) => t.value[_].specValueId = c,
347
348
  placeholder: e.$t("goodsSpu.specValueRequired"),
348
- onChange: (c) => x(c, g)
349
+ onChange: (c) => x(c, _)
349
350
  }, {
350
351
  default: a(() => [
351
- (m(!0), _(k, null, y(V.value.values, (c) => (m(), P(N, {
352
+ (m(!0), g(k, null, y(V.value.values, (c) => (m(), P(N, {
352
353
  key: c.key,
353
354
  label: c.value,
354
355
  value: c.key,
@@ -376,7 +377,8 @@ const pe = { key: 0 }, ce = {
376
377
  default: a(() => l[9] || (l[9] = [
377
378
  w("添加规格")
378
379
  ])),
379
- _: 1
380
+ _: 1,
381
+ __: [9]
380
382
  }, 8, ["disabled"])
381
383
  ]),
382
384
  default: a(() => [
@@ -387,7 +389,7 @@ const pe = { key: 0 }, ce = {
387
389
  onChange: Z
388
390
  }, {
389
391
  default: a(() => [
390
- (m(!0), _(k, null, y(h.value.values, (u) => (m(), P(N, {
392
+ (m(!0), g(k, null, y(h.value.values, (u) => (m(), P(N, {
391
393
  key: u.key,
392
394
  label: u.value,
393
395
  value: u.key,
@@ -425,7 +427,7 @@ const pe = { key: 0 }, ce = {
425
427
  ], 64);
426
428
  };
427
429
  }
428
- }), Se = /* @__PURE__ */ re(ge, [["__scopeId", "data-v-d3b23fe5"]]);
430
+ }), Se = /* @__PURE__ */ re(_e, [["__scopeId", "data-v-d3b23fe5"]]);
429
431
  export {
430
432
  Se as default
431
433
  };
@@ -1,14 +1,14 @@
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";
1
+ import { defineComponent as O, ref as C, computed as q, watch as $, resolveComponent as v, openBlock as _, 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-DZJVaUh3.mjs";
3
3
  import { fileApi as E } from "jmash-core";
4
4
  const H = (a, h) => {
5
5
  const s = a.__vccOpts || a;
6
- for (const [u, _] of h)
7
- s[u] = _;
6
+ for (const [u, w] of h)
7
+ s[u] = w;
8
8
  return s;
9
9
  };
10
10
  function J(a, h = [], s) {
11
- const { optionValue: u = "id", optionText: _ = "name" } = s || {}, k = [];
11
+ const { optionValue: u = "id", optionText: w = "name" } = s || {}, k = [];
12
12
  let b = 0;
13
13
  const I = {}, y = Q(a);
14
14
  if (a.length === 0) return k;
@@ -33,9 +33,9 @@ function J(a, h = [], s) {
33
33
  m = a[c].specValueList[0];
34
34
  !r[u] || !m[u] || (t.push(`${r[u]}_${m[u]}`), o.push({
35
35
  specId: r[u],
36
- specName: r[_],
36
+ specName: r[w],
37
37
  specValueId: m[u],
38
- specValueName: m[_]
38
+ specValueName: m[w]
39
39
  }));
40
40
  });
41
41
  const { ...i } = I[t.join("|")] || {};
@@ -85,7 +85,7 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
85
85
  weight: 0,
86
86
  volume: 0,
87
87
  stock: 0
88
- }), u = C([]), _ = h, k = a, b = q(() => {
88
+ }), u = C([]), w = h, k = a, b = q(() => {
89
89
  let o = J(k.specData, [], {}).map((i) => ({
90
90
  specValues: i.specs,
91
91
  specIds: i.specs.reduce(
@@ -180,7 +180,7 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
180
180
  ), $(
181
181
  u,
182
182
  (o) => {
183
- _("getFormData", o);
183
+ w("getFormData", o);
184
184
  },
185
185
  {
186
186
  deep: !0,
@@ -200,8 +200,8 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
200
200
  }
201
201
  return (o, t) => {
202
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, [
203
+ return _(), U("div", null, [
204
+ a.isSettingShow ? (_(), U("div", W, [
205
205
  g("div", X, [
206
206
  n(r, null, {
207
207
  default: d(() => [
@@ -339,7 +339,8 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
339
339
  default: d(() => t[7] || (t[7] = [
340
340
  S("设置")
341
341
  ])),
342
- _: 1
342
+ _: 1,
343
+ __: [7]
343
344
  })
344
345
  ])) : F("", !0),
345
346
  n(T, {
@@ -348,7 +349,7 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
348
349
  }, {
349
350
  default: d(() => [
350
351
  n(f, { type: "index" }),
351
- (w(!0), U(M, null, G(a.specData, (l, p) => (w(), x(f, {
352
+ (_(!0), U(M, null, G(a.specData, (l, p) => (_(), x(f, {
352
353
  key: l.id,
353
354
  prop: l.id,
354
355
  label: l.name
@@ -363,11 +364,11 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
363
364
  label: "图片"
364
365
  }, {
365
366
  default: d((l) => [
366
- a.isSettingShow ? (w(), x(P, {
367
+ a.isSettingShow ? (_(), x(P, {
367
368
  key: 0,
368
369
  "picture-url": l.row.picUrl,
369
370
  onImageSrc: (p) => V(p, l.row)
370
- }, null, 8, ["picture-url", "onImageSrc"])) : (w(), x(j, {
371
+ }, null, 8, ["picture-url", "onImageSrc"])) : (_(), x(j, {
371
372
  key: 1,
372
373
  "preview-teleported": "",
373
374
  style: { width: "80px", height: "80px" },
@@ -526,12 +527,12 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
526
527
  width: "80"
527
528
  }, {
528
529
  default: d((l) => [
529
- a.isSettingShow ? (w(), U("span", se, [
530
+ a.isSettingShow ? (_(), U("span", se, [
530
531
  n(N, {
531
532
  modelValue: l.row.status,
532
533
  "onUpdate:modelValue": (p) => l.row.status = p
533
534
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
534
- ])) : (w(), U("span", ae, D(z(K).shelfDict.getValue(l.row.status)), 1))
535
+ ])) : (_(), U("span", ae, D(z(K).shelfDict.getValue(l.row.status)), 1))
535
536
  ]),
536
537
  _: 1
537
538
  })
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .w-full{width:100%!important}.right-dis{margin-right:10px}.top-dis{margin-top:25px}.cell-item{display:flex;align-items:center;justify-content:flex-end}.el-descriptions__label{width:15%;text-align:right}.el-descriptions__content{width:35%}.title-set[data-v-84542ec3]{display:flex;align-items:center;font-size:14px;padding:0 0 10px}.goods-spec[data-v-d3b23fe5]{border:1px solid #ccc;margin-bottom:5px}.goods-title[data-v-d3b23fe5]{display:flex;align-items:center;border-bottom:1px solid #ccc;padding:10px 20px}.goods-title .goods-delete[data-v-d3b23fe5]{display:flex;align-items:center;margin-left:auto;color:red;font-size:14px}.goods-content[data-v-d3b23fe5]{padding:10px 20px}.goods-tag[data-v-d3b23fe5]{margin-bottom:10px}[data-v-0d62e82a] .el-upload--picture-card{width:80px;height:80px;border-radius:0}[data-v-0d62e82a] .el-upload-list--picture-card .el-upload-list__item{width:80px;height:80px}
1
+ .w-full{width:100%!important}.right-dis{margin-right:10px}.top-dis{margin-top:25px}.cell-item{display:flex;align-items:center;justify-content:flex-end}.el-descriptions__label{width:15%;text-align:right}.el-descriptions__content{width:35%}.title-set[data-v-84542ec3]{display:flex;align-items:center;font-size:14px;padding:0 0 10px}.goods-spec[data-v-d3b23fe5]{border:1px solid #ccc;margin-bottom:5px}.goods-title[data-v-d3b23fe5]{display:flex;align-items:center;border-bottom:1px solid #ccc;padding:10px 20px}.goods-title .goods-delete[data-v-d3b23fe5]{display:flex;align-items:center;margin-left:auto;color:red;font-size:14px}.goods-content[data-v-d3b23fe5]{padding:10px 20px}.goods-tag[data-v-d3b23fe5]{margin-bottom:10px}[data-v-f10f6f7e] .el-upload--picture-card{width:80px;height:80px;border-radius:0}[data-v-f10f6f7e] .el-upload-list--picture-card .el-upload-list__item{width:80px;height:80px}
package/dts/api/dict.d.ts CHANGED
@@ -12,8 +12,8 @@ export declare class CustomBizDict {
12
12
  export declare class ShopInfoBizDict extends BizDict {
13
13
  useValues(): Promise<Entry[]>;
14
14
  }
15
- export declare class GoodsCategoryBizLayDict extends BizLayDict {
16
- useValues(): Promise<LayEntry[]>;
15
+ export declare class GoodsCategoryListBizLayDict extends BizLayDict {
16
+ useValues(excludeId?: string): Promise<LayEntry[]>;
17
17
  }
18
18
  export declare class SpecInfoBizDict extends BizDict {
19
19
  useValues(): Promise<Entry[]>;
@@ -0,0 +1,23 @@
1
+ import type { AxiosPromise } from "axios";
2
+ import type { GoodsCategoryApi, GoodsCategoryReq, GoodsCategoryModel, GoodsCategoryPage, GoodsCategoryList, GoodsCategoryKey, GoodsCategoryCreateReq, GoodsCategoryUpdateReq, GoodsCategoryTree } from "./types";
3
+ declare class GoodsCategoryApiImpl implements GoodsCategoryApi {
4
+ getKey(model: GoodsCategoryModel): GoodsCategoryKey;
5
+ findPage(query?: GoodsCategoryReq): AxiosPromise<GoodsCategoryPage>;
6
+ findList(query?: GoodsCategoryReq): AxiosPromise<GoodsCategoryList>;
7
+ findById(query: GoodsCategoryKey): AxiosPromise<GoodsCategoryModel>;
8
+ create(data: GoodsCategoryCreateReq): AxiosPromise<GoodsCategoryModel>;
9
+ update(data: GoodsCategoryUpdateReq): AxiosPromise<GoodsCategoryModel>;
10
+ move(key: GoodsCategoryKey, up: boolean): AxiosPromise<boolean>;
11
+ enable(key: GoodsCategoryKey, enable: boolean): AxiosPromise<boolean>;
12
+ delete(query: GoodsCategoryKey): AxiosPromise<GoodsCategoryModel>;
13
+ batchDelete(keys: GoodsCategoryKey[]): AxiosPromise<number>;
14
+ /**
15
+ * 查询商品树列表的API接口
16
+ *
17
+ * @param query 可选的查询参数,符合GoodsCategoryReq接口的实例
18
+ * @returns 返回一个AxiosPromise,包含GoodsCategoryTree类型的响应数据
19
+ */
20
+ findTreeListApi(query?: GoodsCategoryReq): AxiosPromise<GoodsCategoryTree>;
21
+ }
22
+ declare const goodsCategoryApi: GoodsCategoryApiImpl;
23
+ export { goodsCategoryApi };
@@ -0,0 +1,68 @@
1
+ import type { AxiosPromise } from "axios";
2
+ import type { LayEntry, EntityApi, EntityReq, EntityModel, EntityList, EntityPage, EntityTotal, EntityKey, EntityKeyList, EntityCreateReq, EntityUpdateReq } from "jmash-core";
3
+ export interface GoodsCategoryTree {
4
+ results: LayEntry[];
5
+ }
6
+ export interface GoodsCategoryApi extends EntityApi {
7
+ findTreeListApi(query?: GoodsCategoryReq): AxiosPromise<GoodsCategoryTree>;
8
+ }
9
+ export interface GoodsCategoryReq extends EntityReq {
10
+ likeCategoryName?: string;
11
+ status?: boolean;
12
+ hasStatus?: boolean;
13
+ excludeId?: string;
14
+ }
15
+ export interface GoodsCategoryModel extends EntityModel {
16
+ categoryId?: string;
17
+ categoryName?: string;
18
+ categoryCode?: string;
19
+ picUrl?: string;
20
+ description?: string;
21
+ status?: boolean;
22
+ }
23
+ export interface GoodsCategoryList extends EntityList {
24
+ results: Array<GoodsCategoryModel>;
25
+ }
26
+ export interface GoodsCategoryPage extends EntityPage {
27
+ results: Array<GoodsCategoryModel>;
28
+ subTotalDto: GoodsCategoryModelTotal;
29
+ totalDto: GoodsCategoryModelTotal;
30
+ }
31
+ export interface GoodsCategoryModelTotal extends EntityTotal {
32
+ totalSize: number;
33
+ }
34
+ export interface GoodsCategoryKey extends EntityKey {
35
+ tenant?: string;
36
+ categoryId?: string;
37
+ }
38
+ export interface GoodsCategoryKeyList extends EntityKeyList {
39
+ tenant?: string;
40
+ categoryId?: Array<string>;
41
+ }
42
+ export interface GoodsCategoryCreateReq extends EntityCreateReq {
43
+ categoryId?: string;
44
+ categoryName?: string;
45
+ categoryCode?: string;
46
+ parentId?: string;
47
+ picUrl?: string;
48
+ description?: string;
49
+ }
50
+ export interface GoodsCategoryUpdateReq extends EntityUpdateReq {
51
+ categoryId?: string;
52
+ categoryName?: string;
53
+ categoryCode?: string;
54
+ parentId?: string;
55
+ picUrl?: string;
56
+ description?: string;
57
+ }
58
+ export type GoodsCategoryFormReq = GoodsCategoryCreateReq | GoodsCategoryUpdateReq;
59
+ export interface GoodsCategoryMoveKey {
60
+ tenant?: string;
61
+ categoryId?: string;
62
+ up?: boolean;
63
+ }
64
+ export interface GoodsCategoryEnableKey {
65
+ tenant?: string;
66
+ categoryId?: string;
67
+ enable?: boolean;
68
+ }
@@ -1,9 +1,8 @@
1
1
  import { EnumDict } from "jmash-core";
2
2
  import { EntryDict } from "jmash-dict";
3
- import { CustomBizDict, ShopInfoBizDict, GoodsCategoryBizLayDict, SpecInfoBizDict, SpecValueBizDict } from "./dict";
3
+ import { CustomBizDict, ShopInfoBizDict, SpecInfoBizDict, SpecValueBizDict, GoodsCategoryListBizLayDict } from "./dict";
4
4
  export declare class Dict {
5
5
  static readonly shopInfoBizDict: ShopInfoBizDict;
6
- static readonly goodsCategoryDict: GoodsCategoryBizLayDict;
7
6
  static readonly specInfoDict: SpecInfoBizDict;
8
7
  static readonly specValueDict: SpecValueBizDict;
9
8
  static readonly shelfDict: CustomBizDict;
@@ -12,4 +11,6 @@ export declare class Dict {
12
11
  static readonly specTypeEnum: EnumDict;
13
12
  static readonly goodsSpuListSortEnum: EnumDict;
14
13
  static readonly approvalStatusEnum: EnumDict;
14
+ static readonly enableDict: CustomBizDict;
15
+ static readonly goodsCategoryListBizLayDict: GoodsCategoryListBizLayDict;
15
16
  }
package/dts/constant.d.ts CHANGED
@@ -22,4 +22,14 @@ export declare class Constant {
22
22
  static readonly APPROVAL_NOT_PASS = "APPROVAL_NOT_PASS";
23
23
  static readonly APPROVAL_PASS = "APPROVAL_PASS";
24
24
  static readonly APPROVALING = "APPROVALING";
25
+ static readonly ENABLE_VALUES: globalThis.Ref<{
26
+ key: string;
27
+ value: string;
28
+ }[], {
29
+ key: string;
30
+ value: string;
31
+ }[] | {
32
+ key: string;
33
+ value: string;
34
+ }[]>;
25
35
  }
@@ -0,0 +1,22 @@
1
+ import { type PropType } from "vue";
2
+ import type { GoodsCategoryModel } from "@/api/goods-category/types";
3
+ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
4
+ modelValue: PropType<boolean>;
5
+ entityKey: {
6
+ type: PropType<GoodsCategoryModel>;
7
+ default: () => void;
8
+ };
9
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ refresh: (...args: any[]) => void;
11
+ }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
12
+ modelValue: PropType<boolean>;
13
+ entityKey: {
14
+ type: PropType<GoodsCategoryModel>;
15
+ default: () => void;
16
+ };
17
+ }>> & Readonly<{
18
+ onRefresh?: ((...args: any[]) => any) | undefined;
19
+ }>, {
20
+ entityKey: GoodsCategoryModel;
21
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
22
+ export default _default;
@@ -1,18 +1,23 @@
1
- import type { PropType } from "vue";
2
- import type { Entry } from "jmash-core";
3
1
  declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
4
- modelValue: PropType<string | boolean>;
5
- data: {
6
- type: PropType<Entry[]>;
7
- default: () => void;
2
+ shelf: {
3
+ type: StringConstructor;
4
+ default: () => string;
5
+ };
6
+ approvalStatus: {
7
+ type: StringConstructor;
8
+ default: () => string;
8
9
  };
9
10
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
10
- modelValue: PropType<string | boolean>;
11
- data: {
12
- type: PropType<Entry[]>;
13
- default: () => void;
11
+ shelf: {
12
+ type: StringConstructor;
13
+ default: () => string;
14
+ };
15
+ approvalStatus: {
16
+ type: StringConstructor;
17
+ default: () => string;
14
18
  };
15
19
  }>> & Readonly<{}>, {
16
- data: Entry[];
20
+ approvalStatus: string;
21
+ shelf: string;
17
22
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
18
23
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xyvcard-goods",
3
- "version": "0.0.12",
3
+ "version": "0.0.14",
4
4
  "private": false,
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dts/index.d.ts",
@@ -9,27 +9,24 @@
9
9
  "dts"
10
10
  ],
11
11
  "peerDependencies": {
12
- "axios": "^1.7.7",
13
- "element-plus": "^2.8.7",
14
- "jmash-core": "^0.0.120",
15
- "jmash-dict": "^0.0.47",
16
- "jmash-rbac": "^0.0.43",
17
- "pinia": "^2.2.4",
18
- "vue": "^3.5.11",
12
+ "axios": "^1.9.0",
13
+ "element-plus": "^2.9.10",
14
+ "jmash-core": "^0.1.7",
15
+ "jmash-dict": "^0.1.1",
16
+ "jmash-rbac": "^0.1.11",
17
+ "pinia": "^2.3.1",
18
+ "vue": "^3.5.13",
19
19
  "vue-i18n": "^9.14.1",
20
- "vue-router": "^4.4.5",
21
- "xyvcard-emall": "^0.0.13",
22
- "xyvcard-shop": "^0.0.23",
23
- "xyvcard-cms": "0.0.36"
20
+ "vue-router": "^4.5.1",
21
+ "xyvcard-emall": "^0.0.21",
22
+ "xyvcard-shop": "^0.0.25",
23
+ "xyvcard-cms": "0.0.51"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@eslint/js": "^9.16.0",
27
- "@rushstack/eslint-patch": "^1.3.3",
28
27
  "@tsconfig/node20": "^20.1.2",
29
28
  "@types/node": "^20.11.10",
30
29
  "@vitejs/plugin-vue": "^5.0.3",
31
- "@vue/eslint-config-prettier": "^8.0.0",
32
- "@vue/eslint-config-typescript": "^12.0.0",
33
30
  "@vue/tsconfig": "^0.5.1",
34
31
  "eslint": "^9.16.0",
35
32
  "eslint-plugin-vue": "^9.32.0",
@@ -1,4 +0,0 @@
1
- import { _ as f } from "./approveFailIndex.vue_vue_type_script_setup_true_lang-CiIyafoQ.mjs";
2
- export {
3
- f as default
4
- };