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,11 +1,11 @@
1
- import { defineComponent as te, ref as S, computed as se, watch as $, resolveComponent as i, createElementBlock as g, openBlock as m, Fragment as k, createCommentVNode as I, unref as M, createVNode as o, withCtx as a, renderList as P, createElementVNode as b, toDisplayString as O, createTextVNode as y, createBlock as w } from "vue";
2
- import { C as D, D as ue, S as Y, a as ne } from "./index-Df-F10aZ.mjs";
3
- import re from "./skuTable-BVBtWrf9.mjs";
4
- import { _ as de } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
5
- const pe = { key: 0 }, ce = {
1
+ import { defineComponent as se, ref as S, computed as ue, watch as E, resolveComponent as i, createElementBlock as _, openBlock as m, Fragment as k, createCommentVNode as L, unref as O, createVNode as o, withCtx as a, renderList as P, createElementVNode as b, toDisplayString as Y, createTextVNode as y, createBlock as w } from "vue";
2
+ import { C as $, D as ne, S as H, a as re } from "./index-Da2R0n8O.mjs";
3
+ import de from "./skuTable-DOIQ9kiV.mjs";
4
+ import { _ as pe } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
5
+ const ce = { key: 0 }, ie = {
6
6
  key: 1,
7
7
  class: "w-full"
8
- }, ie = { class: "goods-title" }, me = ["onClick"], fe = { class: "goods-content" }, ve = { class: "goods-tag" }, Ve = /* @__PURE__ */ te({
8
+ }, me = { class: "goods-title" }, fe = ["onClick"], ve = { class: "goods-content" }, Ve = { class: "goods-tag" }, _e = /* @__PURE__ */ se({
9
9
  __name: "skuForm",
10
10
  props: {
11
11
  // 规格类型
@@ -20,9 +20,9 @@ const pe = { key: 0 }, ce = {
20
20
  }
21
21
  },
22
22
  emits: ["getGoodsSku", "getFormData"],
23
- setup(H, { emit: J }) {
24
- var F, q, T;
25
- const r = S({
23
+ setup(J, { emit: K }) {
24
+ var F, q, T, R;
25
+ const n = S({
26
26
  picUrl: "",
27
27
  salePrice: 0,
28
28
  salePriceV2: 0,
@@ -33,37 +33,37 @@ const pe = { key: 0 }, ce = {
33
33
  volume: 0,
34
34
  stock: 0,
35
35
  skuCode: ""
36
- }), u = S([]), C = S(), _ = S([]), h = S([]), E = S([]), v = H, L = J, U = se(() => u.value.filter(
36
+ }), u = S([]), C = S(), g = S([]), h = S([]), I = S([]), v = J, D = K, U = ue(() => u.value.filter(
37
37
  (e) => e.name && e.specValueList != null && e.specValueList.length
38
38
  ));
39
- $(
39
+ E(
40
40
  v.form,
41
41
  (e) => e,
42
42
  {
43
43
  deep: !0,
44
44
  immediate: !0
45
45
  }
46
- ), $(
47
- r,
46
+ ), E(
47
+ n,
48
48
  (e) => {
49
- L("getGoodsSku", e);
49
+ D("getGoodsSku", e);
50
50
  },
51
51
  {
52
52
  deep: !0,
53
53
  immediate: !0
54
54
  }
55
- ), $(
55
+ ), E(
56
56
  U,
57
57
  (e) => e,
58
58
  {
59
59
  deep: !0,
60
60
  immediate: !0
61
61
  }
62
- ), v.form.spuId && (v.form.specType === D.SPEC_TYPE.UNIFIED_SPEC ? r.value = (F = v.form.skuList) == null ? void 0 : F.results[0] : (E.value = (q = v.form.skuList) == null ? void 0 : q.results, (T = v.form.skuList) == null || T.results.forEach((e) => {
62
+ ), v.form.spuId && (v.form.specType === $.SPEC_TYPE_VALUES.UNIFIED_SPEC ? (F = v.form.skuList) != null && F.results[0] && (n.value = (q = v.form.skuList) == null ? void 0 : q.results[0]) : (I.value = (T = v.form.skuList) == null ? void 0 : T.results, (R = v.form.skuList) == null || R.results.forEach((e) => {
63
63
  var l;
64
64
  (l = e.specValues) == null || l.map((t) => {
65
- ue.specInfoDict.useValues().then((n) => {
66
- const d = n.find((f) => t.specId === f.key);
65
+ ne.specInfoDict.useValues().then((r) => {
66
+ const d = r.find((f) => t.specId === f.key);
67
67
  if (d) {
68
68
  let f = {
69
69
  id: t.specId,
@@ -75,18 +75,18 @@ const pe = { key: 0 }, ce = {
75
75
  const p = /* @__PURE__ */ new Map();
76
76
  u.value = u.value.filter(
77
77
  (f) => !p.has(f.id) && p.set(f.id, f)
78
- ), K(t.specValueId);
78
+ ), Q(t.specValueId);
79
79
  });
80
80
  });
81
81
  })));
82
- function K(e) {
82
+ function Q(e) {
83
83
  u.value.forEach((l) => {
84
- _.value = new Y({ specId: l.id }), _.value.useValues().then((t) => {
85
- t.forEach((n) => {
86
- if (n.key === e) {
84
+ g.value = new H({ specId: l.id }), g.value.useValues().then((t) => {
85
+ t.forEach((r) => {
86
+ if (r.key === e) {
87
87
  let p = {
88
88
  id: e,
89
- name: n.value
89
+ name: r.value
90
90
  };
91
91
  l.specValueList.push(p);
92
92
  }
@@ -98,14 +98,14 @@ const pe = { key: 0 }, ce = {
98
98
  });
99
99
  });
100
100
  }
101
- function Q(e) {
101
+ function W(e) {
102
102
  u.value.splice(e, 1);
103
103
  }
104
- function W(e, l) {
104
+ function X(e, l) {
105
105
  u.value[e].specValueList.splice(l, 1);
106
106
  }
107
- function X() {
108
- h.value = new ne({ shopId: v.form.shopId }), h.value.useValues().then((e) => {
107
+ function Z() {
108
+ h.value = new re({ shopId: v.form.shopId }), h.value.useValues().then((e) => {
109
109
  e.forEach((l) => {
110
110
  Array.isArray(u.value) && u.value.length > 0 && u.value.forEach((t) => {
111
111
  l.key === t.id && (l.disabled = !0);
@@ -113,54 +113,54 @@ const pe = { key: 0 }, ce = {
113
113
  });
114
114
  });
115
115
  }
116
- function Z(e) {
117
- let l = h.value.values.filter((n) => n.key === e), t = {
116
+ function z(e) {
117
+ let l = h.value.values.filter((r) => r.key === e), t = {
118
118
  id: l[0].key,
119
119
  name: l[0].value,
120
120
  specValueList: []
121
121
  };
122
122
  u.value.push(t), C.value = "";
123
123
  }
124
- function z(e) {
125
- _.value = new Y({
124
+ function x(e) {
125
+ g.value = new H({
126
126
  specId: u.value[e].id
127
- }), _.value.useValues().then((l) => {
127
+ }), g.value.useValues().then((l) => {
128
128
  l.map((t) => {
129
- Array.isArray(u.value[e].specValueList) && u.value[e].specValueList.length > 0 && u.value[e].specValueList.forEach((n) => {
130
- t.key === n.id && (t.disabled = !0);
129
+ Array.isArray(u.value[e].specValueList) && u.value[e].specValueList.length > 0 && u.value[e].specValueList.forEach((r) => {
130
+ t.key === r.id && (t.disabled = !0);
131
131
  });
132
132
  });
133
133
  });
134
134
  }
135
- function x(e, l) {
135
+ function ee(e, l) {
136
136
  var d, p;
137
- let t = _.value.values.filter((f) => f.key === e), n = {
137
+ let t = g.value.values.filter((f) => f.key === e), r = {
138
138
  id: t[0].key,
139
139
  name: t[0].value
140
140
  };
141
- (p = (d = u.value[l]) == null ? void 0 : d.specValueList) == null || p.push(n), u.value[l].specValueId = "";
141
+ (p = (d = u.value[l]) == null ? void 0 : d.specValueList) == null || p.push(r), u.value[l].specValueId = "";
142
142
  }
143
- function ee(e) {
144
- L("getFormData", e);
143
+ function le(e) {
144
+ D("getFormData", e);
145
145
  }
146
146
  return (e, l) => {
147
- const t = 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"), R = i("el-button"), N = i("el-option"), j = i("el-select"), A = i("el-popover"), B = i("el-tab-pane"), G = i("el-tabs");
148
- return m(), g(k, null, [
149
- v.specType == M(D).SPEC_TYPE.UNIFIED_SPEC ? (m(), g("div", pe, [
147
+ const t = i("el-input-number"), r = i("el-form-item"), d = i("el-col"), p = i("el-row"), f = i("Delete"), oe = i("el-icon"), ae = i("el-tag"), A = i("el-button"), N = i("el-option"), j = i("el-select"), B = i("el-popover"), G = i("el-tab-pane"), M = i("el-tabs");
148
+ return m(), _(k, null, [
149
+ v.specType == O($).SPEC_TYPE_VALUES.UNIFIED_SPEC ? (m(), _("div", ce, [
150
150
  o(p, null, {
151
151
  default: a(() => [
152
152
  o(d, { span: 6 }, {
153
153
  default: a(() => [
154
- o(n, {
154
+ o(r, {
155
155
  label: e.$t("goodsSpu.salePrice"),
156
156
  prop: "salePrice"
157
157
  }, {
158
158
  default: a(() => [
159
159
  o(t, {
160
- modelValue: r.value.salePrice,
161
- "onUpdate:modelValue": l[0] || (l[0] = (s) => r.value.salePrice = s),
160
+ modelValue: n.value.salePrice,
161
+ "onUpdate:modelValue": l[0] || (l[0] = (s) => n.value.salePrice = s),
162
162
  precision: 2,
163
- step: 0,
163
+ step: 0.01,
164
164
  min: 0.01,
165
165
  placeholder: e.$t("goodsSpu.salePriceRequired"),
166
166
  class: "w-full",
@@ -174,16 +174,16 @@ const pe = { key: 0 }, ce = {
174
174
  }),
175
175
  o(d, { span: 6 }, {
176
176
  default: a(() => [
177
- o(n, {
177
+ o(r, {
178
178
  label: e.$t("goodsSpu.salePriceV2"),
179
179
  prop: "salePriceV2"
180
180
  }, {
181
181
  default: a(() => [
182
182
  o(t, {
183
- modelValue: r.value.salePriceV2,
184
- "onUpdate:modelValue": l[1] || (l[1] = (s) => r.value.salePriceV2 = s),
183
+ modelValue: n.value.salePriceV2,
184
+ "onUpdate:modelValue": l[1] || (l[1] = (s) => n.value.salePriceV2 = s),
185
185
  precision: 2,
186
- step: 0,
186
+ step: 0.01,
187
187
  min: 0.01,
188
188
  placeholder: e.$t("goodsSpu.salePriceV2Required"),
189
189
  class: "w-full",
@@ -197,16 +197,16 @@ const pe = { key: 0 }, ce = {
197
197
  }),
198
198
  o(d, { span: 6 }, {
199
199
  default: a(() => [
200
- o(n, {
200
+ o(r, {
201
201
  label: e.$t("goodsSpu.salePriceV3"),
202
202
  prop: "salePriceV3"
203
203
  }, {
204
204
  default: a(() => [
205
205
  o(t, {
206
- modelValue: r.value.salePriceV3,
207
- "onUpdate:modelValue": l[2] || (l[2] = (s) => r.value.salePriceV3 = s),
206
+ modelValue: n.value.salePriceV3,
207
+ "onUpdate:modelValue": l[2] || (l[2] = (s) => n.value.salePriceV3 = s),
208
208
  precision: 2,
209
- step: 0,
209
+ step: 0.01,
210
210
  min: 0.01,
211
211
  placeholder: e.$t("goodsSpu.salePriceV3Required"),
212
212
  class: "w-full",
@@ -220,21 +220,21 @@ const pe = { key: 0 }, ce = {
220
220
  }),
221
221
  o(d, { span: 6 }, {
222
222
  default: a(() => [
223
- o(n, {
223
+ o(r, {
224
224
  label: e.$t("goodsSpu.marketPrice"),
225
225
  prop: "marketPrice"
226
226
  }, {
227
227
  default: a(() => [
228
228
  o(t, {
229
- modelValue: r.value.marketPrice,
230
- "onUpdate:modelValue": l[3] || (l[3] = (s) => r.value.marketPrice = s),
229
+ modelValue: n.value.marketPrice,
230
+ "onUpdate:modelValue": l[3] || (l[3] = (s) => n.value.marketPrice = s),
231
231
  precision: 2,
232
- step: 0,
233
- min: 0.01,
232
+ step: 0.01,
233
+ min: n.value.costPrice || 0.01,
234
234
  placeholder: e.$t("goodsSpu.marketPriceRequired"),
235
235
  class: "w-full",
236
236
  controls: !1
237
- }, null, 8, ["modelValue", "placeholder"])
237
+ }, null, 8, ["modelValue", "min", "placeholder"])
238
238
  ]),
239
239
  _: 1
240
240
  }, 8, ["label"])
@@ -243,21 +243,22 @@ const pe = { key: 0 }, ce = {
243
243
  }),
244
244
  o(d, { span: 6 }, {
245
245
  default: a(() => [
246
- o(n, {
246
+ o(r, {
247
247
  label: e.$t("goodsSpu.costPrice"),
248
248
  prop: "costPrice"
249
249
  }, {
250
250
  default: a(() => [
251
251
  o(t, {
252
- modelValue: r.value.costPrice,
253
- "onUpdate:modelValue": l[4] || (l[4] = (s) => r.value.costPrice = s),
252
+ modelValue: n.value.costPrice,
253
+ "onUpdate:modelValue": l[4] || (l[4] = (s) => n.value.costPrice = s),
254
254
  precision: 2,
255
- step: 0,
255
+ step: 0.1,
256
256
  min: 0.01,
257
+ max: n.value.marketPrice,
257
258
  placeholder: e.$t("goodsSpu.costPriceRequired"),
258
259
  class: "w-full",
259
260
  controls: !1
260
- }, null, 8, ["modelValue", "placeholder"])
261
+ }, null, 8, ["modelValue", "max", "placeholder"])
261
262
  ]),
262
263
  _: 1
263
264
  }, 8, ["label"])
@@ -266,14 +267,14 @@ const pe = { key: 0 }, ce = {
266
267
  }),
267
268
  o(d, { span: 6 }, {
268
269
  default: a(() => [
269
- o(n, {
270
+ o(r, {
270
271
  label: e.$t("goodsSpu.stock"),
271
272
  prop: "stock"
272
273
  }, {
273
274
  default: a(() => [
274
275
  o(t, {
275
- modelValue: r.value.stock,
276
- "onUpdate:modelValue": l[5] || (l[5] = (s) => r.value.stock = s),
276
+ modelValue: n.value.stock,
277
+ "onUpdate:modelValue": l[5] || (l[5] = (s) => n.value.stock = s),
277
278
  placeholder: e.$t("goodsSpu.stockRequired"),
278
279
  class: "w-full",
279
280
  controls: !1,
@@ -288,14 +289,14 @@ const pe = { key: 0 }, ce = {
288
289
  }),
289
290
  o(d, { span: 6 }, {
290
291
  default: a(() => [
291
- o(n, {
292
+ o(r, {
292
293
  label: e.$t("goodsSpu.weight"),
293
294
  prop: "weight"
294
295
  }, {
295
296
  default: a(() => [
296
297
  o(t, {
297
- modelValue: r.value.weight,
298
- "onUpdate:modelValue": l[6] || (l[6] = (s) => r.value.weight = s),
298
+ modelValue: n.value.weight,
299
+ "onUpdate:modelValue": l[6] || (l[6] = (s) => n.value.weight = s),
299
300
  placeholder: e.$t("goodsSpu.weightRequired"),
300
301
  class: "w-full",
301
302
  controls: !1,
@@ -309,14 +310,14 @@ const pe = { key: 0 }, ce = {
309
310
  }),
310
311
  o(d, { span: 6 }, {
311
312
  default: a(() => [
312
- o(n, {
313
+ o(r, {
313
314
  label: e.$t("goodsSpu.volume"),
314
315
  prop: "volume"
315
316
  }, {
316
317
  default: a(() => [
317
318
  o(t, {
318
- modelValue: r.value.volume,
319
- "onUpdate:modelValue": l[7] || (l[7] = (s) => r.value.volume = s),
319
+ modelValue: n.value.volume,
320
+ "onUpdate:modelValue": l[7] || (l[7] = (s) => n.value.volume = s),
320
321
  controls: !1,
321
322
  placeholder: e.$t("goodsSpu.volumeRequired"),
322
323
  class: "w-full",
@@ -331,54 +332,54 @@ const pe = { key: 0 }, ce = {
331
332
  ]),
332
333
  _: 1
333
334
  })
334
- ])) : I("", !0),
335
- v.specType == M(D).SPEC_TYPE.MULTI_SPEC ? (m(), g("div", ce, [
336
- o(G, { type: "border-card" }, {
335
+ ])) : L("", !0),
336
+ v.specType == O($).SPEC_TYPE_VALUES.MULTI_SPEC ? (m(), _("div", ie, [
337
+ o(M, { type: "border-card" }, {
337
338
  default: a(() => [
338
- o(B, { label: "商品规格" }, {
339
+ o(G, { label: "商品规格" }, {
339
340
  default: a(() => [
340
- (m(!0), g(k, null, P(u.value, (s, V) => (m(), g("div", {
341
+ (m(!0), _(k, null, P(u.value, (s, V) => (m(), _("div", {
341
342
  class: "goods-spec",
342
343
  key: V
343
344
  }, [
344
- b("div", ie, [
345
- b("span", null, O(s.name), 1),
345
+ b("div", me, [
346
+ b("span", null, Y(s.name), 1),
346
347
  b("span", {
347
348
  class: "goods-delete",
348
- onClick: (c) => Q(V)
349
+ onClick: (c) => W(V)
349
350
  }, [
350
- o(le, null, {
351
+ o(oe, null, {
351
352
  default: a(() => [
352
353
  o(f)
353
354
  ]),
354
355
  _: 1
355
356
  }),
356
357
  l[9] || (l[9] = y("移除 ", -1))
357
- ], 8, me)
358
+ ], 8, fe)
358
359
  ]),
359
- b("div", fe, [
360
- b("div", ve, [
361
- (m(!0), g(k, null, P(u.value[V].specValueList, (c, ae) => (m(), w(oe, {
360
+ b("div", ve, [
361
+ b("div", Ve, [
362
+ (m(!0), _(k, null, P(u.value[V].specValueList, (c, te) => (m(), w(ae, {
362
363
  key: c,
363
364
  closable: "",
364
365
  type: "info",
365
366
  class: "right-dis",
366
- onClose: (ge) => W(V, ae)
367
+ onClose: (ge) => X(V, te)
367
368
  }, {
368
369
  default: a(() => [
369
- y(O(c.name), 1)
370
+ y(Y(c.name), 1)
370
371
  ]),
371
372
  _: 2
372
373
  }, 1032, ["onClose"]))), 128))
373
374
  ]),
374
- o(A, {
375
+ o(B, {
375
376
  placement: "bottom",
376
377
  width: 200,
377
378
  trigger: "click",
378
- onShow: (c) => z(V)
379
+ onShow: (c) => x(V)
379
380
  }, {
380
381
  reference: a(() => [
381
- o(R, { class: "m-2" }, {
382
+ o(A, { class: "m-2" }, {
382
383
  default: a(() => l[10] || (l[10] = [
383
384
  y("添加规格值", -1)
384
385
  ])),
@@ -391,10 +392,10 @@ const pe = { key: 0 }, ce = {
391
392
  modelValue: u.value[V].specValueId,
392
393
  "onUpdate:modelValue": (c) => u.value[V].specValueId = c,
393
394
  placeholder: e.$t("goodsSpu.specValueRequired"),
394
- onChange: (c) => x(c, V)
395
+ onChange: (c) => ee(c, V)
395
396
  }, {
396
397
  default: a(() => [
397
- (m(!0), g(k, null, P(_.value.values, (c) => (m(), w(N, {
398
+ (m(!0), _(k, null, P(g.value.values, (c) => (m(), w(N, {
398
399
  key: c.key,
399
400
  label: c.value,
400
401
  value: c.key,
@@ -408,14 +409,14 @@ const pe = { key: 0 }, ce = {
408
409
  }, 1032, ["onShow"])
409
410
  ])
410
411
  ]))), 128)),
411
- o(A, {
412
+ o(B, {
412
413
  placement: "bottom",
413
414
  width: 200,
414
415
  trigger: "click",
415
- onShow: X
416
+ onShow: Z
416
417
  }, {
417
418
  reference: a(() => [
418
- o(R, { class: "m-2" }, {
419
+ o(A, { class: "m-2" }, {
419
420
  default: a(() => l[11] || (l[11] = [
420
421
  y("添加规格", -1)
421
422
  ])),
@@ -428,10 +429,10 @@ const pe = { key: 0 }, ce = {
428
429
  modelValue: C.value,
429
430
  "onUpdate:modelValue": l[8] || (l[8] = (s) => C.value = s),
430
431
  placeholder: e.$t("goodsSpu.specRequired"),
431
- onChange: Z
432
+ onChange: z
432
433
  }, {
433
434
  default: a(() => [
434
- (m(!0), g(k, null, P(h.value.values, (s) => (m(), w(N, {
435
+ (m(!0), _(k, null, P(h.value.values, (s) => (m(), w(N, {
435
436
  key: s.key,
436
437
  label: s.value,
437
438
  value: s.key,
@@ -449,27 +450,27 @@ const pe = { key: 0 }, ce = {
449
450
  ]),
450
451
  _: 1
451
452
  }),
452
- o(G, { type: "border-card" }, {
453
+ o(M, { type: "border-card" }, {
453
454
  default: a(() => [
454
- o(B, { label: "规格售价与库存" }, {
455
+ o(G, { label: "规格售价与库存" }, {
455
456
  default: a(() => [
456
- u.value.length > 0 ? (m(), w(re, {
457
+ u.value.length > 0 ? (m(), w(de, {
457
458
  key: 0,
458
459
  specData: U.value,
459
- goodsSku: E.value,
460
- onGetFormData: ee
461
- }, null, 8, ["specData", "goodsSku"])) : I("", !0)
460
+ goodsSku: I.value,
461
+ onGetFormData: le
462
+ }, null, 8, ["specData", "goodsSku"])) : L("", !0)
462
463
  ]),
463
464
  _: 1
464
465
  })
465
466
  ]),
466
467
  _: 1
467
468
  })
468
- ])) : I("", !0)
469
+ ])) : L("", !0)
469
470
  ], 64);
470
471
  };
471
472
  }
472
- }), he = /* @__PURE__ */ de(Ve, [["__scopeId", "data-v-95ee71d5"]]);
473
+ }), Pe = /* @__PURE__ */ pe(_e, [["__scopeId", "data-v-b3afed7b"]]);
473
474
  export {
474
- he as default
475
+ Pe as default
475
476
  };