xyvcard-goods 0.0.28 → 0.0.30

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 (31) hide show
  1. package/dist/{edit-CquWa3hI.mjs → edit-BY1AVieE.mjs} +131 -128
  2. package/dist/{edit-CYekSxUa.mjs → edit-BYxk3lFr.mjs} +3 -3
  3. package/dist/{edit-C_XCVJwM.mjs → edit-CRc6GqY4.mjs} +8 -8
  4. package/dist/{edit-CuZnQH9w.mjs → edit-D9JqZTHN.mjs} +1 -1
  5. package/dist/{edit-D1FAN3TA.mjs → edit-ehVvbusK.mjs} +23 -30
  6. package/dist/{edit.vue_vue_type_script_setup_true_lang-BSxqVyG4.mjs → edit.vue_vue_type_script_setup_true_lang-d769FSho.mjs} +3 -3
  7. package/dist/index-BLO5ssji.mjs +562 -0
  8. package/dist/{index-nCeCw43N.mjs → index-BaX061kc.mjs} +87 -92
  9. package/dist/index-CNVwLggO.mjs +644 -0
  10. package/dist/{index-wH3Sgvus.mjs → index-DloS7z9I.mjs} +1 -1
  11. package/dist/{index-B27GuULR.mjs → index-Dpms2ryP.mjs} +9 -9
  12. package/dist/{index-B3vvD7JH.mjs → index-DvCC73mO.mjs} +61 -63
  13. package/dist/{index-Dd1dJx7i.mjs → index-R43ND-Ey.mjs} +32 -37
  14. package/dist/{index-COXyxAor.mjs → index-Vu01FEMS.mjs} +53 -46
  15. package/dist/index.mjs +1 -1
  16. package/dist/{info-NBnTd9fK.mjs → info-CJxN7XOi.mjs} +2 -2
  17. package/dist/{info-0Pf9u0GJ.mjs → info-CzhzwS5C.mjs} +3 -3
  18. package/dist/{skuForm-BsvKk2kD.mjs → skuForm-K3S131WX.mjs} +86 -83
  19. package/dist/{skuForm-CU0a2ltJ.mjs → skuForm-X1aeeUCX.mjs} +2 -2
  20. package/dist/{skuTable-DgDGWX-n.mjs → skuTable-7VaeJKGp.mjs} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dts/api/goods-spu/types.d.ts +1 -0
  23. package/dts/api/index.d.ts +1 -0
  24. package/dts/constant.d.ts +10 -0
  25. package/package.json +4 -4
  26. package/dist/goodsList-DZlaY5k0.mjs +0 -4
  27. package/dist/goodsList-wpPEPZqs.mjs +0 -4
  28. package/dist/goodsList.vue_vue_type_script_setup_true_lang-BFXFifWr.mjs +0 -565
  29. package/dist/goodsList.vue_vue_type_script_setup_true_lang-iXycU5oS.mjs +0 -714
  30. package/dist/index-DFxg3rmo.mjs +0 -55
  31. package/dist/index-Dy5JznUz.mjs +0 -53
@@ -1,11 +1,11 @@
1
- import { defineComponent as E, mergeModels as B, ref as V, reactive as N, useModel as F, resolveComponent as r, openBlock as K, createBlock as O, withCtx as l, createElementVNode as x, createVNode as o, createTextVNode as U, toDisplayString as w, unref as d } from "vue";
1
+ import { defineComponent as E, mergeModels as V, ref as B, reactive as N, useModel as F, resolveComponent as r, openBlock as K, createBlock as O, withCtx as l, createElementVNode as x, createVNode as o, createTextVNode as w, toDisplayString as U, unref as d } from "vue";
2
2
  import { ElMessage as k } from "element-plus";
3
3
  import { useI18n as A } from "vue-i18n";
4
- import { g as f } from "./index-wH3Sgvus.mjs";
4
+ import { g as p } from "./index-DloS7z9I.mjs";
5
5
  import { _ as T } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
6
6
  const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
7
7
  __name: "edit",
8
- props: /* @__PURE__ */ B({
8
+ props: /* @__PURE__ */ V({
9
9
  entityKey: {
10
10
  type: Object,
11
11
  default: () => {
@@ -15,45 +15,38 @@ const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
15
15
  modelValue: { type: Boolean },
16
16
  modelModifiers: {}
17
17
  }),
18
- emits: /* @__PURE__ */ B(["refresh"], ["update:modelValue"]),
19
- setup(p, { emit: q }) {
20
- const g = V(), { t: i } = A();
18
+ emits: /* @__PURE__ */ V(["refresh"], ["update:modelValue"]),
19
+ setup(f, { emit: $ }) {
20
+ const g = B(), { t: i } = A();
21
21
  let t = N({
22
22
  requestId: Math.random() * 10 + "",
23
23
  updateMask: "brandName,logoUrl,description"
24
24
  });
25
- const $ = N({
25
+ const C = N({
26
26
  brandName: [
27
27
  {
28
28
  required: !0,
29
29
  message: i("goodsBrandInfo.brandNameRequired"),
30
30
  trigger: "change"
31
31
  }
32
- ],
33
- logoUrl: [
34
- {
35
- required: !0,
36
- message: i("goodsBrandInfo.logoUrlRequired"),
37
- trigger: "change"
38
- }
39
32
  ]
40
- }), a = F(p, "modelValue"), _ = p;
41
- function C(e) {
33
+ }), a = F(f, "modelValue"), _ = f;
34
+ function M(e) {
42
35
  t.logoUrl = e;
43
36
  }
44
- const b = q, M = Object.keys(_.entityKey), y = V(M.length >= 1);
45
- y.value && f.findById(_.entityKey).then(({ data: e }) => {
37
+ const b = $, j = Object.keys(_.entityKey), y = B(j.length >= 1);
38
+ y.value && p.findById(_.entityKey).then(({ data: e }) => {
46
39
  Object.assign(t, e);
47
40
  });
48
- const R = async () => {
41
+ const q = async () => {
49
42
  var e;
50
43
  await ((e = g.value) == null ? void 0 : e.validate((n) => {
51
- n && (y.value ? f.update(t).then((s) => {
44
+ n && (y.value ? p.update(t).then((s) => {
52
45
  s.status === 200 && (k({
53
46
  message: i("common.submitSuccess"),
54
47
  type: "success"
55
48
  }), a.value && (a.value = !1), b("refresh", s.status === 200));
56
- }) : f.create(t).then((s) => {
49
+ }) : p.create(t).then((s) => {
57
50
  s.status === 200 && (k({
58
51
  message: i("common.submitSuccess"),
59
52
  type: "success"
@@ -65,7 +58,7 @@ const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
65
58
  a.value && (a.value = !1);
66
59
  }
67
60
  return (e, n) => {
68
- const s = r("jmash-single-image-upload"), u = r("el-form-item"), c = r("el-col"), v = r("el-input"), j = r("el-row"), S = r("el-form"), I = r("el-button"), D = r("el-dialog");
61
+ const s = r("jmash-single-image-upload"), u = r("el-form-item"), c = r("el-col"), v = r("el-input"), R = r("el-row"), S = r("el-form"), I = r("el-button"), D = r("el-dialog");
69
62
  return K(), O(D, {
70
63
  modelValue: a.value,
71
64
  "onUpdate:modelValue": n[2] || (n[2] = (m) => a.value = m),
@@ -75,16 +68,16 @@ const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
75
68
  x("div", z, [
76
69
  o(I, { onClick: h }, {
77
70
  default: l(() => [
78
- U(w(e.$t("common.cancel")), 1)
71
+ w(U(e.$t("common.cancel")), 1)
79
72
  ]),
80
73
  _: 1
81
74
  }),
82
75
  o(I, {
83
76
  type: "primary",
84
- onClick: R
77
+ onClick: q
85
78
  }, {
86
79
  default: l(() => [
87
- U(w(e.$t("common.confirm")), 1)
80
+ w(U(e.$t("common.confirm")), 1)
88
81
  ]),
89
82
  _: 1
90
83
  })
@@ -95,11 +88,11 @@ const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
95
88
  ref_key: "goodsBrandInfoFormRef",
96
89
  ref: g,
97
90
  model: d(t),
98
- "label-width": "120px",
99
- rules: $
91
+ "label-width": "90px",
92
+ rules: C
100
93
  }, {
101
94
  default: l(() => [
102
- o(j, null, {
95
+ o(R, null, {
103
96
  default: l(() => [
104
97
  o(c, { span: 24 }, {
105
98
  default: l(() => [
@@ -110,7 +103,7 @@ const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
110
103
  default: l(() => [
111
104
  o(s, {
112
105
  "picture-url": d(t).logoUrl,
113
- onImageSrc: C,
106
+ onImageSrc: M,
114
107
  width: 80,
115
108
  type: "trans"
116
109
  }, null, 8, ["picture-url"])
@@ -173,7 +166,7 @@ const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
173
166
  }, 8, ["modelValue"]);
174
167
  };
175
168
  }
176
- }), W = /* @__PURE__ */ T(G, [["__scopeId", "data-v-6e6f248a"]]);
169
+ }), W = /* @__PURE__ */ T(G, [["__scopeId", "data-v-4d967c8a"]]);
177
170
  export {
178
171
  W as default
179
172
  };
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as wn, mergeModels as E, ref as $, reactive as R, useModel as qn, onMounted as pn, resolveComponent as p, openBlock as an, createBlock as kn, withCtx as j, createElementVNode as Cn, createVNode as t, createTextVNode as A, toDisplayString as U, unref as x } 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-B27GuULR.mjs";
5
- import { D as O } from "./index-COXyxAor.mjs";
4
+ import { g as B } from "./index-Dpms2ryP.mjs";
5
+ import { D as O } from "./index-Vu01FEMS.mjs";
6
6
  const _n = /^[\uD800-\uDBFF]$/, Pn = /^[\uDC00-\uDFFF]$/, Dn = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
7
7
  var F;
8
8
  (function(n) {
@@ -24041,7 +24041,7 @@ const bi = { class: "dialog-footer" }, qi = /* @__PURE__ */ wn({
24041
24041
  ref_key: "goodsCategoryFormRef",
24042
24042
  ref: u,
24043
24043
  model: x(h),
24044
- "label-width": "120px",
24044
+ "label-width": "90px",
24045
24045
  rules: s
24046
24046
  }, {
24047
24047
  default: j(() => [