xyvcard-goods 0.0.33 → 0.0.34

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 (92) hide show
  1. package/dist/{GoodsBaseForm-6rzBkBTh.mjs → GoodsBaseForm-BSvXc_XA.mjs} +1 -1
  2. package/dist/{GoodsBaseForm.vue_vue_type_script_setup_true_lang-BmIR352P.mjs → GoodsBaseForm.vue_vue_type_script_setup_true_lang-rsmqHXbJ.mjs} +60 -53
  3. package/dist/GoodsLogisticsForm-1Bbd4Z52.mjs +4 -0
  4. package/dist/GoodsLogisticsForm.vue_vue_type_script_setup_true_lang-PSnPNbmT.mjs +434 -0
  5. package/dist/{GoodsSpecForm-BqaN71rS.mjs → GoodsSpecForm-Ddo1IZLZ.mjs} +1 -1
  6. package/dist/GoodsSpecForm.vue_vue_type_script_setup_true_lang-CdWIufm4.mjs +338 -0
  7. package/dist/edit copy 2-Yzf_M31V.mjs +59 -0
  8. package/dist/{edit copy-tfwJCdiV.mjs → edit copy-CCnzlrgL.mjs } +3 -3
  9. package/dist/{edit-D2zcGl_U.mjs → edit-BgtwinSN.mjs} +1 -1
  10. package/dist/{edit-Db2EJ9dq.mjs → edit-Dke5sWct.mjs} +3 -3
  11. package/dist/{edit-CZwlbL9o.mjs → edit-e5-aXV6K.mjs} +18 -18
  12. package/dist/{edit-DBTNknBy.mjs → edit-lfXK_dUp.mjs} +3 -3
  13. package/dist/{edit-1Lv_dvlq.mjs → edit-pUKONjxH.mjs} +1 -1
  14. package/dist/{edit.vue_vue_type_script_setup_true_lang-BmOhw098.mjs → edit.vue_vue_type_script_setup_true_lang-BtGT564r.mjs} +32 -32
  15. package/dist/{index-BXa-atkT.mjs → index-BSzOTWcG.mjs} +1 -1
  16. package/dist/{index-Cl4wz2yF.mjs → index-BpKiAhvt.mjs} +3 -3
  17. package/dist/{index-DXIGHcIv.mjs → index-ChQ-ZxD1.mjs} +2 -2
  18. package/dist/{index-BpXZNA11.mjs → index-CkJncbVf.mjs} +3 -3
  19. package/dist/{index-DGYGNHfx.mjs → index-CkMWas2b.mjs} +3 -3
  20. package/dist/index-Da2R0n8O.mjs +374 -0
  21. package/dist/{index-CRfiEzkA.mjs → index-DhS4AuWf.mjs} +509 -481
  22. package/dist/{index-BhUD_X30.mjs → index-DyLLV1NK.mjs} +2 -2
  23. package/dist/index.mjs +1 -1
  24. package/dist/{info-DfbU-CWk.mjs → info-DOKoSi7a.mjs} +34 -34
  25. package/dist/{info-DDi6GKQH.mjs → info-De_pBN6A.mjs} +19 -19
  26. package/dist/{skuForm-DoIpxDvq.mjs → skuForm-DVGkw6rD.mjs} +21 -21
  27. package/dist/{skuForm-DWIoveRP.mjs → skuForm-YXHrhyPI.mjs} +110 -109
  28. package/dist/{skuTable-BVBtWrf9.mjs → skuTable-DOIQ9kiV.mjs} +62 -62
  29. package/dist/style.css +1 -1
  30. package/dts/xyvcard-goods/src/App.vue.d.ts +2 -0
  31. package/dts/xyvcard-goods/src/api/dict.d.ts +35 -0
  32. package/dts/xyvcard-goods/src/api/goods-base/index.d.ts +11 -0
  33. package/dts/xyvcard-goods/src/api/goods-base/types.d.ts +33 -0
  34. package/dts/xyvcard-goods/src/api/goods-brand-info/index.d.ts +20 -0
  35. package/dts/xyvcard-goods/src/api/goods-brand-info/types.d.ts +73 -0
  36. package/dts/xyvcard-goods/src/api/goods-category/index.d.ts +23 -0
  37. package/dts/xyvcard-goods/src/api/goods-category/types.d.ts +70 -0
  38. package/dts/xyvcard-goods/src/api/goods-ensure/index.d.ts +13 -0
  39. package/dts/xyvcard-goods/src/api/goods-ensure/types.d.ts +13 -0
  40. package/dts/xyvcard-goods/src/api/goods-label-info/index.d.ts +20 -0
  41. package/dts/xyvcard-goods/src/api/goods-label-info/types.d.ts +70 -0
  42. package/dts/xyvcard-goods/src/api/goods-logistics/index.d.ts +8 -0
  43. package/dts/xyvcard-goods/src/api/goods-logistics/types.d.ts +16 -0
  44. package/dts/xyvcard-goods/src/api/goods-sku/types.d.ts +18 -0
  45. package/dts/xyvcard-goods/src/api/goods-spec/index.d.ts +8 -0
  46. package/dts/xyvcard-goods/src/api/goods-spec/types.d.ts +15 -0
  47. package/dts/xyvcard-goods/src/api/goods-spu/index.d.ts +69 -0
  48. package/dts/xyvcard-goods/src/api/goods-spu/types.d.ts +245 -0
  49. package/dts/xyvcard-goods/src/api/goods-stock/index.d.ts +8 -0
  50. package/dts/xyvcard-goods/src/api/goods-stock/types.d.ts +32 -0
  51. package/dts/xyvcard-goods/src/api/index.d.ts +29 -0
  52. package/dts/xyvcard-goods/src/api/shop-branch/index.d.ts +9 -0
  53. package/dts/xyvcard-goods/src/api/shop-branch/types.d.ts +28 -0
  54. package/dts/xyvcard-goods/src/components/ImageUpload.vue.d.ts +36 -0
  55. package/dts/xyvcard-goods/src/constant.d.ts +107 -0
  56. package/dts/xyvcard-goods/src/index.d.ts +12 -0
  57. package/dts/xyvcard-goods/src/lang/goods/en.d.ts +2 -0
  58. package/dts/xyvcard-goods/src/lang/goods/zh-cn.d.ts +141 -0
  59. package/dts/xyvcard-goods/src/lang/index.d.ts +1 -0
  60. package/dts/xyvcard-goods/src/main.d.ts +7 -0
  61. package/dts/xyvcard-goods/src/permission.d.ts +1 -0
  62. package/dts/xyvcard-goods/src/router/index.d.ts +6 -0
  63. package/dts/xyvcard-goods/src/utils/momentPlugin.d.ts +5 -0
  64. package/dts/xyvcard-goods/src/utils/returnBizLay.d.ts +2 -0
  65. package/dts/xyvcard-goods/src/utils/sku.d.ts +19 -0
  66. package/dts/xyvcard-goods/src/views/goods/goods-brand-info/edit.vue.d.ts +22 -0
  67. package/dts/xyvcard-goods/src/views/goods/goods-brand-info/index.vue.d.ts +2 -0
  68. package/dts/xyvcard-goods/src/views/goods/goods-category/edit.vue.d.ts +22 -0
  69. package/dts/xyvcard-goods/src/views/goods/goods-category/index.vue.d.ts +2 -0
  70. package/dts/xyvcard-goods/src/views/goods/goods-combination/edit.vue.d.ts +2 -0
  71. package/dts/xyvcard-goods/src/views/goods/goods-combination/index.vue.d.ts +2 -0
  72. package/dts/xyvcard-goods/src/views/goods/goods-combination/info.vue.d.ts +2 -0
  73. package/dts/xyvcard-goods/src/views/goods/goods-combination/skuForm.vue.d.ts +20 -0
  74. package/dts/xyvcard-goods/src/views/goods/goods-label-info/edit.vue.d.ts +22 -0
  75. package/dts/xyvcard-goods/src/views/goods/goods-label-info/index.vue.d.ts +2 -0
  76. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsBaseForm.vue.d.ts +34 -0
  77. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsLogisticsForm.vue.d.ts +42 -0
  78. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsSpecForm.vue.d.ts +42 -0
  79. package/dts/xyvcard-goods/src/views/goods/goods-spu/edit copy 2.vue.d.ts +2 -0
  80. package/dts/xyvcard-goods/src/views/goods/goods-spu/edit copy.vue.d.ts +2 -0
  81. package/dts/xyvcard-goods/src/views/goods/goods-spu/edit.vue.d.ts +2 -0
  82. package/dts/xyvcard-goods/src/views/goods/goods-spu/index.vue.d.ts +2 -0
  83. package/dts/xyvcard-goods/src/views/goods/goods-spu/info.vue.d.ts +2 -0
  84. package/dts/xyvcard-goods/src/views/goods/goods-spu/skuForm.vue.d.ts +29 -0
  85. package/dts/xyvcard-goods/src/views/goods/goods-spu/skuTable.vue.d.ts +40 -0
  86. package/dts/xyvcard-shop/src/api/shop-branch/index.d.ts +14 -0
  87. package/dts/xyvcard-shop/src/api/shop-branch/types.d.ts +76 -0
  88. package/package.json +4 -4
  89. package/dist/GoodsLogisticsForm-CHyQ99Mt.mjs +0 -10
  90. package/dist/GoodsSpecForm.vue_vue_type_script_setup_true_lang-BTFKRiNW.mjs +0 -140
  91. package/dist/edit copy 2-DnKLaz3I.mjs +0 -45
  92. package/dist/index-Df-F10aZ.mjs +0 -264
@@ -1,13 +1,13 @@
1
- import { defineComponent as wn, mergeModels as E, ref as $, reactive as R, useModel as qn, onMounted as pn, resolveComponent as p, createBlock as an, openBlock as kn, withCtx as j, createVNode as t, unref as x, createElementVNode as Cn, createTextVNode as A, toDisplayString as U } from "vue";
1
+ import { defineComponent as wn, mergeModels as E, ref as $, reactive as R, useModel as qn, onMounted as pn, resolveComponent as p, createBlock as an, openBlock as kn, withCtx as j, createVNode as t, unref as x, createElementVNode as Cn, createTextVNode as U, toDisplayString as A } from "vue";
2
2
  import { ElMessage as L } from "element-plus";
3
3
  import { useI18n as Sn } from "vue-i18n";
4
- import { g as B } from "./index-CRfiEzkA.mjs";
5
- import { D as O } from "./index-Df-F10aZ.mjs";
4
+ import { g as B } from "./index-DhS4AuWf.mjs";
5
+ import { D as F } from "./index-Da2R0n8O.mjs";
6
6
  const Pn = /^[\uD800-\uDBFF]$/, _n = /^[\uDC00-\uDFFF]$/, Dn = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
7
- var F;
7
+ var O;
8
8
  (function(n) {
9
9
  n[n.Unknown = 1e-13] = "Unknown", n[n.Rule = 1e-12] = "Rule", n[n.DICT = 2e-8] = "DICT", n[n.Surname = 1] = "Surname", n[n.Custom = 1] = "Custom";
10
- })(F || (F = {}));
10
+ })(O || (O = {}));
11
11
  const r = {
12
12
  Normal: 1,
13
13
  Surname: 10,
@@ -18716,7 +18716,7 @@ Object.keys(W).forEach((n) => {
18716
18716
  for (let g of i)
18717
18717
  a.set(g, n);
18718
18718
  });
18719
- const In = [
18719
+ const Tn = [
18720
18720
  "zh",
18721
18721
  "ch",
18722
18722
  "sh",
@@ -18741,7 +18741,7 @@ const In = [
18741
18741
  "y",
18742
18742
  "w",
18743
18743
  ""
18744
- ], Tn = ["j", "q", "x"], vn = [
18744
+ ], vn = ["j", "q", "x"], In = [
18745
18745
  "uān",
18746
18746
  "uán",
18747
18747
  "uǎn",
@@ -18874,27 +18874,27 @@ function Rn(n, i, g) {
18874
18874
  if ($n.indexOf(n) === -1)
18875
18875
  return S(n);
18876
18876
  if (i === g && i && S(i) !== i)
18877
- return I(S(n));
18877
+ return T(S(n));
18878
18878
  if (g && !En[n].includes(g)) {
18879
18879
  const u = S(g);
18880
18880
  if (u !== g) {
18881
- const h = T(u), s = yn[n];
18881
+ const h = v(u), s = yn[n];
18882
18882
  for (let o in s)
18883
18883
  if (s[o].indexOf(Number(h)) !== -1)
18884
18884
  return o;
18885
18885
  }
18886
18886
  }
18887
18887
  }
18888
- function An(n, i) {
18888
+ function Un(n, i) {
18889
18889
  if (n === "了" && (!i || !a.get(i)))
18890
18890
  return "liǎo";
18891
18891
  }
18892
- function Un(n, i) {
18892
+ function An(n, i) {
18893
18893
  if (n === "々")
18894
18894
  return !i || !a.get(i) ? "tóng" : a.get(i).split(" ")[0];
18895
18895
  }
18896
18896
  function G(n, i, g) {
18897
- return Un(n, i) || An(n, i) || Rn(n, i, g) || S(n);
18897
+ return An(n, i) || Un(n, i) || Rn(n, i, g) || S(n);
18898
18898
  }
18899
18899
  const M = {
18900
18900
  南宫: "nán gōng",
@@ -21886,7 +21886,7 @@ const M = {
21886
21886
  干哪行: "gàn nǎ háng",
21887
21887
  干一行: "gàn yì háng",
21888
21888
  曲别针: "qū bié zhēn"
21889
- }, On = Object.keys(X).map((n) => ({
21889
+ }, Fn = Object.keys(X).map((n) => ({
21890
21890
  zh: n,
21891
21891
  pinyin: X[n],
21892
21892
  probability: 2e-8,
@@ -23489,7 +23489,7 @@ const M = {
23489
23489
  曲意逢迎: "qū yì féng yíng",
23490
23490
  一行不行: "yì háng bù xíng",
23491
23491
  行行不行: "háng háng bù xíng"
23492
- }, Fn = Object.keys(Y).map((n) => ({
23492
+ }, On = Object.keys(Y).map((n) => ({
23493
23493
  zh: n,
23494
23494
  pinyin: Y[n],
23495
23495
  probability: 2e-8,
@@ -23694,8 +23694,8 @@ class Yn {
23694
23694
  }
23695
23695
  const ni = [
23696
23696
  ...Wn,
23697
- ...Fn,
23698
23697
  ...On,
23698
+ ...Fn,
23699
23699
  ...Bn,
23700
23700
  ...Vn,
23701
23701
  ...Ln
@@ -23746,7 +23746,7 @@ const ii = new ln(), gi = () => ii, S = (n) => {
23746
23746
  }
23747
23747
  }
23748
23748
  return { list: i, matches: h };
23749
- }, I = (n) => n.replace(/(ā|á|ǎ|à)/g, "a").replace(/(ō|ó|ǒ|ò)/g, "o").replace(/(ē|é|ě|è)/g, "e").replace(/(ī|í|ǐ|ì)/g, "i").replace(/(ū|ú|ǔ|ù)/g, "u").replace(/(ǖ|ǘ|ǚ|ǜ)/g, "ü").replace(/(n̄|ń|ň|ǹ)/g, "n").replace(/(m̄|ḿ|m̌|m̀)/g, "m").replace(/(ê̄|ế|ê̌|ề)/g, "ê"), tn = (n, i = "off") => {
23749
+ }, T = (n) => n.replace(/(ā|á|ǎ|à)/g, "a").replace(/(ō|ó|ǒ|ò)/g, "o").replace(/(ē|é|ě|è)/g, "e").replace(/(ī|í|ǐ|ì)/g, "i").replace(/(ū|ú|ǔ|ù)/g, "u").replace(/(ǖ|ǘ|ǚ|ǜ)/g, "ü").replace(/(n̄|ń|ň|ǹ)/g, "n").replace(/(m̄|ḿ|m̌|m̀)/g, "m").replace(/(ê̄|ế|ê̌|ề)/g, "ê"), tn = (n, i = "off") => {
23750
23750
  const g = gi();
23751
23751
  let u = a.get(n) ? a.get(n).split(" ") : [];
23752
23752
  if (g.get(n))
@@ -23774,10 +23774,10 @@ const ii = new ln(), gi = () => ii, S = (n) => {
23774
23774
  }, D = (n, i) => {
23775
23775
  const g = n.split(" "), u = [], h = [];
23776
23776
  for (let s of g)
23777
- for (let o of In)
23777
+ for (let o of Tn)
23778
23778
  if (s.startsWith(o)) {
23779
23779
  let z = s.slice(o.length);
23780
- Tn.indexOf(o) !== -1 && vn.indexOf(z) !== -1 && (z = Mn[z]), u.push(o), h.push(z);
23780
+ vn.indexOf(o) !== -1 && In.indexOf(z) !== -1 && (z = Mn[z]), u.push(o), h.push(z);
23781
23781
  break;
23782
23782
  }
23783
23783
  return i === "standard" && u.forEach((s, o) => {
@@ -23790,14 +23790,14 @@ const ii = new ln(), gi = () => ii, S = (n) => {
23790
23790
  }, P = (n) => {
23791
23791
  const { final: i } = D(n);
23792
23792
  let g = "", u = "", h = "";
23793
- return Nn.indexOf(I(i)) !== -1 ? (g = i[0], u = i[1], h = i.slice(2)) : (u = i[0] || "", h = i.slice(1) || ""), { head: g, body: u, tail: h };
23794
- }, T = (n) => {
23793
+ return Nn.indexOf(T(i)) !== -1 ? (g = i[0], u = i[1], h = i.slice(2)) : (u = i[0] || "", h = i.slice(1) || ""), { head: g, body: u, tail: h };
23794
+ }, v = (n) => {
23795
23795
  const i = /(ā|ō|ē|ī|ū|ǖ|n̄|m̄|ê̄)/, g = /(á|ó|é|í|ú|ǘ|ń|ḿ|ế)/, u = /(ǎ|ǒ|ě|ǐ|ǔ|ǚ|ň|m̌|ê̌)/, h = /(à|ò|è|ì|ù|ǜ|ǹ|m̀|ề)/, s = /(a|o|e|i|u|ü|ê)/, o = /(n|m)$/, z = [];
23796
23796
  return n.split(" ").forEach((l) => {
23797
23797
  i.test(l) ? z.push("1") : g.test(l) ? z.push("2") : u.test(l) ? z.push("3") : h.test(l) ? z.push("4") : s.test(l) || o.test(l) ? z.push("0") : z.push("");
23798
23798
  }), z.join(" ");
23799
23799
  }, si = (n, i) => {
23800
- const g = I(n).split(" "), u = T(i).split(" "), h = [];
23800
+ const g = T(n).split(" "), u = v(i).split(" "), h = [];
23801
23801
  return g.forEach((s, o) => {
23802
23802
  h.push(`${s}${u[o]}`);
23803
23803
  }), h.join(" ");
@@ -23807,17 +23807,17 @@ const ii = new ln(), gi = () => ii, S = (n) => {
23807
23807
  g.push(i ? h[0] : h);
23808
23808
  }), g.join(" ");
23809
23809
  }, oi = (n) => typeof n != "string" ? (console.error("The first param of pinyin is error: " + n + ' is not assignable to type "string".'), !1) : !0;
23810
- function v(n, i) {
23810
+ function I(n, i) {
23811
23811
  return i instanceof RegExp ? i.test(n) : !0;
23812
23812
  }
23813
23813
  const zi = (n, i) => {
23814
23814
  let g = i.nonZh;
23815
23815
  if (g === "removed")
23816
- return n.filter((u) => u.isZh || !v(u.origin, i.nonZhScope));
23816
+ return n.filter((u) => u.isZh || !I(u.origin, i.nonZhScope));
23817
23817
  if (g === "consecutive") {
23818
23818
  for (let u = n.length - 2; u >= 0; u--) {
23819
23819
  const h = n[u], s = n[u + 1];
23820
- !h.isZh && !s.isZh && v(h.origin, i.nonZhScope) && v(s.origin, i.nonZhScope) && (h.origin += s.origin, h.result += s.result, s.delete = !0);
23820
+ !h.isZh && !s.isZh && I(h.origin, i.nonZhScope) && I(s.origin, i.nonZhScope) && (h.origin += s.origin, h.result += s.result, s.delete = !0);
23821
23821
  }
23822
23822
  return n.filter((u) => !u.delete);
23823
23823
  } else
@@ -23828,7 +23828,7 @@ const zi = (n, i) => {
23828
23828
  break;
23829
23829
  case "num":
23830
23830
  n.forEach((g) => {
23831
- g.result = g.isZh ? T(g.result) : "";
23831
+ g.result = g.isZh ? v(g.result) : "";
23832
23832
  });
23833
23833
  break;
23834
23834
  case "initial":
@@ -23868,7 +23868,7 @@ const zi = (n, i) => {
23868
23868
  break;
23869
23869
  case "none":
23870
23870
  n.forEach((g) => {
23871
- g.isZh && (g.result = I(g.result));
23871
+ g.isZh && (g.result = T(g.result));
23872
23872
  });
23873
23873
  break;
23874
23874
  case "num": {
@@ -23902,7 +23902,7 @@ const zi = (n, i) => {
23902
23902
  finalHead: z,
23903
23903
  finalBody: y,
23904
23904
  finalTail: l,
23905
- num: Number(T(u.originPinyin)),
23905
+ num: Number(v(u.originPinyin)),
23906
23906
  isZh: u.isZh,
23907
23907
  polyphonic: c,
23908
23908
  inZhRange: !!a.get(u.origin),
@@ -23975,7 +23975,7 @@ const ri = { class: "dialog-footer" }, qi = /* @__PURE__ */ wn({
23975
23975
  ]
23976
23976
  }), o = qn(n, "modelValue"), z = n, y = Object.keys(z.entityKey), l = $(y.length >= 1);
23977
23977
  pn(() => {
23978
- O.goodsCategoryListBizLayDict.useValues();
23978
+ F.goodsCategoryListBizLayDict.useValues();
23979
23979
  });
23980
23980
  const c = i;
23981
23981
  (Z = z.entityKey) != null && Z.categoryId && (h = Object.assign(h, z.entityKey), h.parentId === "00000000-0000-0000-0000-000000000000" && (h.parentId = ""));
@@ -24023,7 +24023,7 @@ const ri = { class: "dialog-footer" }, qi = /* @__PURE__ */ wn({
24023
24023
  Cn("div", ri, [
24024
24024
  t(V, { onClick: f }, {
24025
24025
  default: j(() => [
24026
- A(U(d.$t("common.cancel")), 1)
24026
+ U(A(d.$t("common.cancel")), 1)
24027
24027
  ]),
24028
24028
  _: 1
24029
24029
  }),
@@ -24032,7 +24032,7 @@ const ri = { class: "dialog-footer" }, qi = /* @__PURE__ */ wn({
24032
24032
  onClick: e
24033
24033
  }, {
24034
24034
  default: j(() => [
24035
- A(U(d.$t("common.confirm")), 1)
24035
+ U(A(d.$t("common.confirm")), 1)
24036
24036
  ]),
24037
24037
  _: 1
24038
24038
  })
@@ -24103,7 +24103,7 @@ const ri = { class: "dialog-footer" }, qi = /* @__PURE__ */ wn({
24103
24103
  t(rn, {
24104
24104
  modelValue: x(h).parentId,
24105
24105
  "onUpdate:modelValue": b[2] || (b[2] = (q) => x(h).parentId = q),
24106
- data: x(O).goodsCategoryListBizLayDict.values,
24106
+ data: x(F).goodsCategoryListBizLayDict.values,
24107
24107
  filterable: "",
24108
24108
  clearable: "",
24109
24109
  "check-strictly": "",
@@ -24125,7 +24125,7 @@ const ri = { class: "dialog-footer" }, qi = /* @__PURE__ */ wn({
24125
24125
  default: j(() => [
24126
24126
  t(bn, {
24127
24127
  "picture-url": x(h).picUrl,
24128
- onImageSrc: jn,
24128
+ onUploadFile: jn,
24129
24129
  width: 80,
24130
24130
  type: "trans"
24131
24131
  }, null, 8, ["picture-url"])
@@ -1,5 +1,5 @@
1
1
  import { useUserStore as e, clearEmpty as s, request as r } from "jmash-core";
2
- import { q as d } from "./index-CRfiEzkA.mjs";
2
+ import { q as d } from "./index-DhS4AuWf.mjs";
3
3
  class u {
4
4
  getKey(t) {
5
5
  return {
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as Y, ref as L, reactive as R, onActivated as Z, resolveComponent as s, resolveDirective as x, createElementBlock as V, openBlock as u, createElementVNode as $, createVNode as l, createBlock as k, createCommentVNode as S, withCtx as t, withKeys as ee, unref as n, createTextVNode as p, toDisplayString as c, withDirectives as C, isRef as D } from "vue";
2
2
  import { useTableHooks as oe } from "jmash-core";
3
3
  import { useI18n as le } from "vue-i18n";
4
- import { b as te } from "./index-CRfiEzkA.mjs";
5
- import ae from "./edit-1Lv_dvlq.mjs";
6
- import { D as ne } from "./index-Df-F10aZ.mjs";
4
+ import { b as te } from "./index-DhS4AuWf.mjs";
5
+ import ae from "./edit-pUKONjxH.mjs";
6
+ import { D as ne } from "./index-Da2R0n8O.mjs";
7
7
  const se = { class: "app-container" }, de = { class: "search-container" }, ie = ["onClick"], re = ["onClick"], ve = /* @__PURE__ */ Y({
8
8
  __name: "index",
9
9
  setup(ue) {
@@ -3,8 +3,8 @@ import { useRoute as he, useRouter as _e } from "vue-router";
3
3
  import { ElMessage as U } from "element-plus";
4
4
  import { useI18n as we } from "vue-i18n";
5
5
  import { useTableHooks as Se, fileApi as F } from "jmash-core";
6
- import { D as c, C as Ce } from "./index-Df-F10aZ.mjs";
7
- import { a as E } from "./index-CRfiEzkA.mjs";
6
+ import { D as c, C as Ce } from "./index-Da2R0n8O.mjs";
7
+ import { a as E } from "./index-DhS4AuWf.mjs";
8
8
  const ke = { class: "app-container" }, Ve = {
9
9
  key: 0,
10
10
  class: "app-container"
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as x, ref as $, reactive as S, onActivated as ee, resolveComponent as r, resolveDirective as oe, createElementBlock as w, openBlock as d, createElementVNode as U, createVNode as l, createBlock as _, createCommentVNode as T, withCtx as t, withKeys as te, unref as n, createTextVNode as p, toDisplayString as c, withDirectives as k, isRef as D } from "vue";
2
2
  import { useI18n as le } from "vue-i18n";
3
3
  import { useTableHooks as ae, fileApi as j } from "jmash-core";
4
- import { D as ne } from "./index-Df-F10aZ.mjs";
5
- import { g as re } from "./index-CRfiEzkA.mjs";
6
- import { _ as se } from "./edit.vue_vue_type_script_setup_true_lang-BmOhw098.mjs";
4
+ import { D as ne } from "./index-Da2R0n8O.mjs";
5
+ import { g as re } from "./index-DhS4AuWf.mjs";
6
+ import { _ as se } from "./edit.vue_vue_type_script_setup_true_lang-BtGT564r.mjs";
7
7
  const ie = { class: "app-container" }, de = { class: "search-container" }, ue = { key: 1 }, me = ["onClick"], pe = ["onClick"], Ce = /* @__PURE__ */ x({
8
8
  __name: "index",
9
9
  setup(ce) {
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as x, ref as B, reactive as N, onActivated as ee, resolveComponent as d, resolveDirective as oe, createElementBlock as V, openBlock as u, createElementVNode as I, createVNode as t, createBlock as h, createCommentVNode as R, withCtx as l, withKeys as te, unref as a, createTextVNode as p, toDisplayString as c, withDirectives as k, isRef as S } from "vue";
2
2
  import { useTableHooks as le, fileApi as T } from "jmash-core";
3
3
  import { useI18n as ne } from "vue-i18n";
4
- import { g as ae } from "./index-BXa-atkT.mjs";
5
- import de from "./edit-CZwlbL9o.mjs";
6
- import { D as re } from "./index-Df-F10aZ.mjs";
4
+ import { g as ae } from "./index-BSzOTWcG.mjs";
5
+ import de from "./edit-e5-aXV6K.mjs";
6
+ import { D as re } from "./index-Da2R0n8O.mjs";
7
7
  const se = { class: "app-container" }, ie = { class: "search-container" }, ue = ["onClick"], me = ["onClick"], ye = /* @__PURE__ */ x({
8
8
  __name: "index",
9
9
  setup(pe) {
@@ -0,0 +1,374 @@
1
+ var p = Object.defineProperty;
2
+ var A = (r, t, a) => t in r ? p(r, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : r[t] = a;
3
+ var e = (r, t, a) => A(r, typeof t != "symbol" ? t + "" : t, a);
4
+ import { useUserStore as O, clearEmpty as T, request as n, BizDict as l, BizLayDict as P, EnumDict as c } from "jmash-core";
5
+ import { EntryDict as d } from "jmash-dict";
6
+ import { ref as o, reactive as L } from "vue";
7
+ import { specValueApi as D, infoApi as I, specInfoApi as y } from "xyvcard-shop";
8
+ import { g as v, b as U, a as N } from "./index-DhS4AuWf.mjs";
9
+ import { g as R } from "./index-BSzOTWcG.mjs";
10
+ class s {
11
+ }
12
+ // 模块
13
+ e(s, "MODULE_GOODS", "goods"), // 启用禁用
14
+ e(s, "SHELF_VALUES", o([
15
+ { key: !0, value: "上架" },
16
+ { key: !1, value: "下架" }
17
+ ])), // 运费类型
18
+ e(s, "ENUM_FREIGHT_TYPE", "xyvcard.goods.protobuf.FreightType"), // 运费类型.
19
+ e(s, "FREIGHT_TYPE_VALUES", {
20
+ FREIGHT_FREE: "FREIGHT_FREE",
21
+ // 包邮
22
+ FREIGHT_FIXED: "FREIGHT_FIXED",
23
+ // 固定邮费
24
+ FREIGHT_TEMPLATE: "FREIGHT_TEMPLATE"
25
+ // 运费模板
26
+ }), // 保障服务
27
+ e(s, "DICT_GOODS_ENSURE", "goods_ensure"), // 商品查询枚举
28
+ e(s, "ENUM_GOODS_SPU_List_SORT", "xyvcard.goods.protobuf.GoodsSpuListSort"), e(s, "GOODS_SPU_VALUES", o([
29
+ { key: "goods_all", value: "全部商品" },
30
+ { key: "goods_sale", value: "已上架" },
31
+ { key: "goods_shelf", value: "待上架" },
32
+ { key: "goods_audit", value: "审核中" },
33
+ { key: "goods_notpass", value: "审核驳回" }
34
+ ])), // 审核状态
35
+ e(s, "ENUM_APPROVAL_STATUS", "xyvcard.goods.protobuf.ApprovalStatus"), // 审核状态常量
36
+ e(s, "APPROVAL_NOT_PASS", "APPROVAL_NOT_PASS"), e(s, "APPROVAL_PASS", "APPROVAL_PASS"), e(s, "APPROVALING", "APPROVALING"), // 启用禁用
37
+ e(s, "ENABLE_VALUES", o([
38
+ { key: "true", value: "启用" },
39
+ { key: "false", value: "禁用" }
40
+ ])), // 商品类型
41
+ e(s, "GOODS_TYPE", {
42
+ NORMAL: "normal",
43
+ GROUP: "group"
44
+ }), // 商品品类
45
+ e(s, "GOODS_SUP_CLASS", "xyvcard.goods.protobuf.SupClass"), // 商品品类.
46
+ e(s, "GOODS_SUP_CLASS_VALUES", {
47
+ GOODS_TYPE_REAL: "GOODS_TYPE_REAL",
48
+ // 实物类商品
49
+ GOODS_TYPE_VIRTUAL: "GOODS_TYPE_VIRTUAL",
50
+ // 虚拟类商品
51
+ GOODS_TYPE_LIFE: "GOODS_TYPE_LIFE"
52
+ // 生活服务类
53
+ }), // 是或否
54
+ e(s, "YES_OR_NO", o([
55
+ { key: !0, value: "是" },
56
+ { key: !1, value: "否" }
57
+ ])), // tab栏
58
+ e(s, "TAB_ENUM", L([
59
+ { key: "GoodsBaseForm", value: "商品基本信息" },
60
+ { key: "GoodsSpecForm", value: "规格与定价" },
61
+ { key: "GoodsLogisticsForm", value: "物流设置" }
62
+ ])), // 预售类型
63
+ e(s, "GOODS_PRESALE_TYPE", "xyvcard.goods.protobuf.PresaleType"), // 预售类型.
64
+ e(s, "GOODS_PRESALE_TYPE_VALUES", {
65
+ NONE: "NONE",
66
+ // 无预售
67
+ DEPOSIT: "DEPOSIT",
68
+ // 定金预售(不退)
69
+ DEPOSIT_RETURN: "DEPOSIT_RETURN"
70
+ // 订金预售(可退)
71
+ }), // 尾款支付期限
72
+ e(s, "BALANCE_PAYMENT_TYPE", "xyvcard.goods.protobuf.BalancePaymentType"), // 尾款支付期限.
73
+ e(s, "BALANCE_PAYMENT_TYPE_VALUES", {
74
+ DYNAMIC_DATE: "DYNAMIC_DATE",
75
+ // 动态时间
76
+ FIXED_DATE: "FIXED_DATE"
77
+ // 固定时间
78
+ }), // 规格类型
79
+ e(s, "SPEC_TYPE", "xyvcard.goods.protobuf.SpecType"), e(s, "SPEC_TYPE_VALUES", {
80
+ UNIFIED_SPEC: "UNIFIED_SPEC",
81
+ // 统一规格
82
+ MULTI_SPEC: "MULTI_SPEC"
83
+ // 多规格
84
+ }), // 发货模式
85
+ e(s, "DELIVERY_TYPE", "xyvcard.goods.protobuf.DeliveryType"), // 发货模式.
86
+ e(s, "DELIVERY_TYPE_VALUES", {
87
+ SPOT_ONLY: "SPOT_ONLY",
88
+ // 现货发售
89
+ PRESALE: "PRESALE"
90
+ // 预售模式
91
+ }), // 发货模式(现货发售:24小时内、48小时内、72小时内).
92
+ e(s, "DELIVERY_SPOT_TYPE", "xyvcard.goods.protobuf.DeliverySpotType"), // 发货模式(现货发售:24小时内、48小时内、72小时内).
93
+ e(s, "DELIVERY_SPOT_TYPE_VALUES", {
94
+ SPOT_24: "SPOT_24",
95
+ // 24小时内
96
+ SPOT_48: "SPOT_48",
97
+ // 48小时内
98
+ SPOT_72: "SPOT_72"
99
+ // 72小时内
100
+ }), // 核销有效期限.
101
+ e(s, "VALIDITY_TYPE", "xyvcard.goods.protobuf.ValidityType"), // 核销有效期限.
102
+ e(s, "VALIDITY_TYPE_VALUES", {
103
+ DYNAMIC_TIME: "DYNAMIC_TIME",
104
+ // 动态时间
105
+ FIXED_TIME: "FIXED_TIME",
106
+ // 固定时间
107
+ UNLIMITED_TIME: "UNLIMITED_TIME"
108
+ // 无限期
109
+ }), // 可用门店.
110
+ e(s, "USE_BRANCH", "xyvcard.goods.protobuf.UseBranch"), // 可用门店.
111
+ e(s, "USE_BRANCH_VALUES", {
112
+ USE_BRANCH_ALL: "USE_BRANCH_ALL",
113
+ // 全部门店
114
+ USE_BRANCH_PART: "USE_BRANCH_PART"
115
+ // 部分门店
116
+ });
117
+ function h(r, t, a) {
118
+ return !Array.isArray(r) || r.length === 0 ? [] : r.map((u) => {
119
+ let i = [];
120
+ return Array.isArray(u.children) && u.children.length > 0 && (i = h(u.children, t, a)), {
121
+ value: u[a],
122
+ label: u[t],
123
+ parentId: u.parentId,
124
+ children: i
125
+ };
126
+ });
127
+ }
128
+ class g {
129
+ getKey(t) {
130
+ return {
131
+ branchId: t.branchId
132
+ };
133
+ }
134
+ // 查询列表信息门店管理
135
+ findList(t) {
136
+ const a = O().user.tenant;
137
+ return t && (t.hasIsHq = t.isHq != null), T(t), n({
138
+ url: "/v1/shop/branch/list/" + a,
139
+ method: "get",
140
+ params: t
141
+ });
142
+ }
143
+ // 查询门店管理
144
+ findById(t) {
145
+ const a = O().user.tenant;
146
+ return T(t), n({
147
+ url: "/v1/shop/branch/id/" + a + "/" + t.branchId,
148
+ method: "get"
149
+ });
150
+ }
151
+ }
152
+ const m = new g();
153
+ class S {
154
+ constructor(t, a) {
155
+ e(this, "values", L([]));
156
+ // 查询条件
157
+ e(this, "query");
158
+ this.values.length = 0, this.values.push(...t.value), this.query = a;
159
+ }
160
+ // 根据给定键获取业务数据项的值的方法
161
+ getValue(t) {
162
+ for (const a of this.values)
163
+ if (a.key == t)
164
+ return a.value;
165
+ return "";
166
+ }
167
+ }
168
+ class f extends l {
169
+ // 实现 useValues 方法
170
+ useValues() {
171
+ return new Promise((t, a) => {
172
+ I.findList(this.query).then(({ data: _ }) => {
173
+ const u = _.results;
174
+ this.values.length = 0, this.values.push(
175
+ ...u.map(
176
+ (i) => ({
177
+ key: i.shopId,
178
+ value: i.shopName
179
+ })
180
+ )
181
+ ), t(this.values);
182
+ }).catch(a);
183
+ });
184
+ }
185
+ }
186
+ class G extends l {
187
+ // 实现 useValues 方法
188
+ useValues() {
189
+ return new Promise((t, a) => {
190
+ m.findList(this.query).then(({ data: _ }) => {
191
+ const u = _.results;
192
+ this.values.length = 0, this.values.push(
193
+ ...u.map(
194
+ (i) => ({
195
+ key: i.branchId,
196
+ value: i.facadeName
197
+ })
198
+ )
199
+ ), t(this.values);
200
+ }).catch(a);
201
+ });
202
+ }
203
+ }
204
+ class V extends P {
205
+ // 实现 useValues 方法
206
+ useValues() {
207
+ return new Promise((t, a) => {
208
+ v.findTreeListApi(this.query).then(({ data: _ }) => {
209
+ this.values.length = 0, this.values.push(...h(_.results, "label", "value")), t(this.values);
210
+ }).catch(a);
211
+ });
212
+ }
213
+ }
214
+ class Y extends l {
215
+ // 实现 useValues 方法
216
+ useValues() {
217
+ return new Promise((t, a) => {
218
+ y.findList(this.query).then(({ data: _ }) => {
219
+ const u = _.results;
220
+ this.values.length = 0, this.values.push(
221
+ ...u.map(
222
+ (i) => ({
223
+ key: i.specId,
224
+ value: i.specName,
225
+ disabled: i.disabled
226
+ })
227
+ )
228
+ ), t(this.values);
229
+ }).catch(a);
230
+ });
231
+ }
232
+ }
233
+ class B extends l {
234
+ // 实现 useValues 方法
235
+ useValues() {
236
+ return new Promise((t, a) => {
237
+ D.findList(this.query).then(({ data: _ }) => {
238
+ const u = _.results;
239
+ this.values.length = 0, this.values.push(
240
+ ...u.map(
241
+ (i) => ({
242
+ key: i.specValueId,
243
+ value: i.valueName
244
+ })
245
+ )
246
+ ), t(this.values);
247
+ }).catch(a);
248
+ });
249
+ }
250
+ }
251
+ class M extends l {
252
+ // 实现 useValues 方法
253
+ useValues() {
254
+ return new Promise((t, a) => {
255
+ R.findList(this.query).then(({ data: _ }) => {
256
+ const u = _.results;
257
+ this.values.length = 0, this.values.push(
258
+ ...u.map(
259
+ (i) => ({
260
+ key: i.brandId,
261
+ value: i.brandName
262
+ })
263
+ )
264
+ ), t(this.values);
265
+ }).catch(a);
266
+ });
267
+ }
268
+ }
269
+ class b extends l {
270
+ // 实现 useValues 方法
271
+ useValues() {
272
+ return new Promise((t, a) => {
273
+ U.findList(this.query).then(({ data: _ }) => {
274
+ const u = _.results;
275
+ this.values.length = 0, this.values.push(
276
+ ...u.map(
277
+ (i) => ({
278
+ key: i.labelId,
279
+ value: i.labelName
280
+ })
281
+ )
282
+ ), t(this.values);
283
+ }).catch(a);
284
+ });
285
+ }
286
+ }
287
+ class w extends l {
288
+ // 实现 useValues 方法
289
+ useValues() {
290
+ return new Promise((t, a) => {
291
+ N.findList(this.query).then(({ data: _ }) => {
292
+ const u = _.results;
293
+ this.values.length = 0, this.values.push(
294
+ ...u.map(
295
+ (i) => ({
296
+ key: i.spuId,
297
+ value: i.spuName
298
+ })
299
+ )
300
+ ), t(this.values);
301
+ }).catch(a);
302
+ });
303
+ }
304
+ }
305
+ class E {
306
+ }
307
+ // 店铺列表
308
+ e(E, "shopInfoBizDict", new f({})), // 门店列表
309
+ e(E, "shopBranchBizDict", new G({})), // 规格列表
310
+ e(E, "specInfoDict", new Y({})), // 规格值
311
+ e(E, "specValueDict", new B({})), // 上架下架
312
+ e(E, "shelfDict", new S(s.SHELF_VALUES, {})), // 运费类型
313
+ e(E, "freightTypeEnum", new c(
314
+ s.MODULE_GOODS,
315
+ s.ENUM_FREIGHT_TYPE
316
+ )), // 保障服务
317
+ e(E, "goodsEnsureDict", new d(s.DICT_GOODS_ENSURE)), // 规格类型
318
+ e(E, "specTypeEnum", new c(
319
+ s.MODULE_GOODS,
320
+ s.SPEC_TYPE
321
+ )), // 商品查询枚举
322
+ e(E, "goodsSpuListSortEnum", new c(
323
+ s.MODULE_GOODS,
324
+ s.ENUM_GOODS_SPU_List_SORT
325
+ )), e(E, "goodsSpuListSortDict", new S(
326
+ s.GOODS_SPU_VALUES,
327
+ {}
328
+ )), // 审核状态
329
+ e(E, "approvalStatusEnum", new c(
330
+ s.MODULE_GOODS,
331
+ s.ENUM_APPROVAL_STATUS
332
+ )), // 启用禁用
333
+ e(E, "enableDict", new S(s.ENABLE_VALUES, {})), // 商品分类
334
+ e(E, "goodsCategoryListBizLayDict", new V(
335
+ {}
336
+ )), // 品牌列表
337
+ e(E, "brandListBizDict", new M({})), // 标签列表
338
+ e(E, "labelListBizDict", new b({})), // 商品列表
339
+ e(E, "goodsSpuBizDict", new w({})), // 商品品类
340
+ e(E, "goodsSupClassEnum", new c(
341
+ s.MODULE_GOODS,
342
+ s.GOODS_SUP_CLASS
343
+ )), // 是或否
344
+ e(E, "yesOrNoEnum", new S(s.YES_OR_NO, {})), // 预售类型
345
+ e(E, "presaleTypeEnum", new c(
346
+ s.MODULE_GOODS,
347
+ s.GOODS_PRESALE_TYPE
348
+ )), // 尾款支付期限
349
+ e(E, "balancePaymentTypeEnum", new c(
350
+ s.MODULE_GOODS,
351
+ s.BALANCE_PAYMENT_TYPE
352
+ )), // 发货模式
353
+ e(E, "goodsDeliveryTypeEnum", new c(
354
+ s.MODULE_GOODS,
355
+ s.DELIVERY_TYPE
356
+ )), // 发货模式(现货发售:24小时内、48小时内、72小时内).
357
+ e(E, "goodsDeliverySpotTypeEnum", new c(
358
+ s.MODULE_GOODS,
359
+ s.DELIVERY_SPOT_TYPE
360
+ )), // 核销有效期限.
361
+ e(E, "validityTypeEnum", new c(
362
+ s.MODULE_GOODS,
363
+ s.VALIDITY_TYPE
364
+ )), // 可用门店.
365
+ e(E, "useBranchEnum", new c(
366
+ s.MODULE_GOODS,
367
+ s.USE_BRANCH
368
+ ));
369
+ export {
370
+ s as C,
371
+ E as D,
372
+ B as S,
373
+ Y as a
374
+ };