xyvcard-goods 0.0.34 → 0.0.35

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 (64) hide show
  1. package/dist/BatchSetting-B1LcBFPD.mjs +333 -0
  2. package/dist/ChannelProfit-CNSIK87d.mjs +4 -0
  3. package/dist/ChannelProfit.vue_vue_type_script_setup_true_lang-BVTifRY8.mjs +320 -0
  4. package/dist/{GoodsBaseForm-BSvXc_XA.mjs → GoodsBaseForm-BZ2fZmmp.mjs} +1 -1
  5. package/dist/GoodsBaseForm.vue_vue_type_script_setup_true_lang-BxBTTLdA.mjs +407 -0
  6. package/dist/{GoodsLogisticsForm-1Bbd4Z52.mjs → GoodsLogisticsForm-BqlwdGQ1.mjs} +1 -1
  7. package/dist/{GoodsLogisticsForm.vue_vue_type_script_setup_true_lang-PSnPNbmT.mjs → GoodsLogisticsForm.vue_vue_type_script_setup_true_lang-DJREiSkD.mjs} +56 -57
  8. package/dist/GoodsProfitForm-COYRi8sx.mjs +4 -0
  9. package/dist/GoodsProfitForm.vue_vue_type_script_setup_true_lang-BYPWP95J.mjs +2550 -0
  10. package/dist/{GoodsSpecForm-Ddo1IZLZ.mjs → GoodsSpecForm-B4MtETRy.mjs} +1 -1
  11. package/dist/{GoodsSpecForm.vue_vue_type_script_setup_true_lang-CdWIufm4.mjs → GoodsSpecForm.vue_vue_type_script_setup_true_lang-BbVK_KNz.mjs} +130 -121
  12. package/dist/SingleSku-rWv9vVhv.mjs +351 -0
  13. package/dist/constant-sVd2JbJt.mjs +115 -0
  14. package/dist/edit-B1cmsJpy.mjs +70 -0
  15. package/dist/{edit-lfXK_dUp.mjs → edit-Br1Y569l.mjs} +8 -7
  16. package/dist/{edit-e5-aXV6K.mjs → edit-CET8Fr-t.mjs} +1 -1
  17. package/dist/{edit-pUKONjxH.mjs → edit-CagYTFKr.mjs} +1 -1
  18. package/dist/{edit-BgtwinSN.mjs → edit-iJGrWlSv.mjs} +1 -1
  19. package/dist/{edit.vue_vue_type_script_setup_true_lang-BtGT564r.mjs → edit.vue_vue_type_script_setup_true_lang-D_0YivhL.mjs} +2 -2
  20. package/dist/{el-message-BB2-39XJ.mjs → el-message-Dj6aaz4G.mjs} +490 -373
  21. package/dist/{index-DyLLV1NK.mjs → index copy-kNLE7fPg.mjs } +6 -5
  22. package/dist/index-C61SQFSx.mjs +264 -0
  23. package/dist/index-CeWPdEJD.mjs +713 -0
  24. package/dist/{index-CkJncbVf.mjs → index-Cg6GUdSP.mjs} +3 -3
  25. package/dist/index-CyxnVWnL.mjs +182 -0
  26. package/dist/{index-CkMWas2b.mjs → index-D9s8hsVw.mjs} +3 -3
  27. package/dist/{index-BSzOTWcG.mjs → index-DbnKa_BJ.mjs} +1 -1
  28. package/dist/{index-ChQ-ZxD1.mjs → index-DoxTu4kg.mjs} +5 -4
  29. package/dist/{index-BpKiAhvt.mjs → index-kw0UYOIu.mjs} +3 -3
  30. package/dist/{index-DhS4AuWf.mjs → index-xQgC-8Gd.mjs} +1106 -1038
  31. package/dist/index.mjs +1 -1
  32. package/dist/info-CTElDVo6.mjs +376 -0
  33. package/dist/{info-DOKoSi7a.mjs → info-DpGJgdac.mjs} +5 -4
  34. package/dist/{skuForm-DVGkw6rD.mjs → skuForm-C7w9YIDe.mjs} +24 -23
  35. package/dist/skuForm-CPlnCToi.mjs +279 -0
  36. package/dist/skuTable-C-LcASbX.mjs +594 -0
  37. package/dist/spec-DkiGCkuM.mjs +44 -0
  38. package/dist/style.css +1 -1
  39. package/dts/xyvcard-goods/src/api/dict.d.ts +5 -4
  40. package/dts/xyvcard-goods/src/api/goods-sku/types.d.ts +3 -0
  41. package/dts/xyvcard-goods/src/api/goods-spu/index.d.ts +4 -1
  42. package/dts/xyvcard-goods/src/api/goods-spu/types.d.ts +35 -9
  43. package/dts/xyvcard-goods/src/api/types.d.ts +4 -0
  44. package/dts/xyvcard-goods/src/lang/goods/zh-cn.d.ts +32 -0
  45. package/dts/xyvcard-goods/src/router/index.d.ts +1 -0
  46. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/BatchSetting.vue.d.ts +35 -0
  47. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/ChannelProfit.vue.d.ts +22 -0
  48. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsProfitForm.vue.d.ts +34 -0
  49. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/SingleSku.vue.d.ts +23 -0
  50. package/dts/xyvcard-goods/src/views/goods/goods-spu/index copy.vue.d.ts +2 -0
  51. package/dts/xyvcard-goods/src/views/goods/goods-spu/skuForm.vue.d.ts +17 -4
  52. package/dts/xyvcard-goods/src/views/goods/goods-spu/skuTable.vue.d.ts +14 -1
  53. package/dts/xyvcard-goods/src/views/goods/goods-spu/spec.vue.d.ts +2 -0
  54. package/package.json +4 -3
  55. package/dist/GoodsBaseForm.vue_vue_type_script_setup_true_lang-rsmqHXbJ.mjs +0 -381
  56. package/dist/edit copy 2-Yzf_M31V.mjs +0 -59
  57. package/dist/edit copy-CCnzlrgL.mjs +0 -526
  58. package/dist/edit-Dke5sWct.mjs +0 -526
  59. package/dist/index-BHmGYIuc.mjs +0 -24
  60. package/dist/index-Da2R0n8O.mjs +0 -374
  61. package/dist/index-vHQhUQSO.mjs +0 -95
  62. package/dist/info-De_pBN6A.mjs +0 -365
  63. package/dist/skuForm-YXHrhyPI.mjs +0 -476
  64. package/dist/skuTable-DOIQ9kiV.mjs +0 -639
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./GoodsSpecForm.vue_vue_type_script_setup_true_lang-CdWIufm4.mjs";
1
+ import { _ as f } from "./GoodsSpecForm.vue_vue_type_script_setup_true_lang-BbVK_KNz.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,145 +1,148 @@
1
- import { defineComponent as U, reactive as E, ref as G, resolveComponent as d, createBlock as g, openBlock as f, unref as a, withCtx as s, createVNode as l, createElementBlock as C, createCommentVNode as P, Fragment as M, createTextVNode as I } from "vue";
2
- import { useI18n as v } from "vue-i18n";
3
- import { useRoute as w, useRouter as $ } from "vue-router";
4
- import { useUserStore as F, clearEmpty as O, request as B, routerUtil as j } from "jmash-core";
5
- import { D as i, C as c } from "./index-Da2R0n8O.mjs";
6
- import X from "./skuForm-YXHrhyPI.mjs";
7
- import { E as z } from "./el-message-BB2-39XJ.mjs";
1
+ import { defineComponent as M, reactive as V, ref as T, resolveComponent as i, createBlock as S, openBlock as f, unref as a, withCtx as s, createVNode as o, createElementBlock as G, createCommentVNode as P, Fragment as I, isRef as v, createTextVNode as w } from "vue";
2
+ import { useI18n as F } from "vue-i18n";
3
+ import { useRoute as O } from "vue-router";
4
+ import { D as c } from "./index-C61SQFSx.mjs";
5
+ import { C as y } from "./constant-sVd2JbJt.mjs";
6
+ import { useUserStore as $, clearEmpty as B, request as j } from "jmash-core";
7
+ import J from "./skuForm-CPlnCToi.mjs";
8
+ import X from "./SingleSku-rWv9vVhv.mjs";
9
+ import { E as z } from "./el-message-Dj6aaz4G.mjs";
8
10
  class H {
9
11
  // A设置商品规格与定价信息
10
- create(y) {
11
- return y.tenant = F().user.tenant, O(y), B({
12
+ create(g) {
13
+ return g.tenant = $().user.tenant, B(g), j({
12
14
  url: "/v1/goods/goods_spec",
13
15
  method: "patch",
14
- data: y
16
+ data: g
15
17
  });
16
18
  }
17
19
  }
18
- const J = new H(), le = /* @__PURE__ */ U({
20
+ const K = new H(), se = /* @__PURE__ */ M({
19
21
  __name: "GoodsSpecForm",
20
22
  props: {
21
23
  goodsSpuModel: { default: () => ({ skuList: { results: [{}] } }) }
22
24
  },
23
25
  emits: ["submit"],
24
- setup(b, { emit: y }) {
25
- const V = b;
26
- i.presaleTypeEnum.useEnumValues(), i.balancePaymentTypeEnum.useEnumValues(), i.specTypeEnum.useEnumValues();
27
- const { t: r } = v(), _ = w(), D = $();
28
- let e = E({
26
+ setup(E, { emit: g }) {
27
+ const D = E;
28
+ c.presaleTypeEnum.useEnumValues(), c.balancePaymentTypeEnum.useEnumValues(), c.specTypeEnum.useEnumValues();
29
+ const { t: d } = F(), k = O();
30
+ let e = V({
29
31
  requestId: Math.random() * 10 + "",
30
32
  updateMask: "presaleType,isPointsGift,isPointsDeduct,purchaseLimit,balancePaymentType,balancePaymentDays,balancePaymentDate,specType,specId,skuSpecValues",
31
33
  isPointsGift: !1,
32
34
  isPointsDeduct: !1,
33
35
  purchaseLimit: 0,
34
- spuId: _.query.spuId,
35
- presaleType: c.GOODS_PRESALE_TYPE_VALUES.NONE,
36
- balancePaymentType: c.BALANCE_PAYMENT_TYPE_VALUES.DYNAMIC_DATE,
36
+ spuId: k.query.spuId,
37
+ presaleType: y.GOODS_PRESALE_TYPE_VALUES.NONE,
38
+ balancePaymentType: y.BALANCE_PAYMENT_TYPE_VALUES.DYNAMIC_DATE,
37
39
  skuSpecValues: [],
38
- specType: c.SPEC_TYPE_VALUES.UNIFIED_SPEC,
39
- ...V.goodsSpuModel
40
+ specType: y.SPEC_TYPE_VALUES.UNIFIED_SPEC,
41
+ ...D.goodsSpuModel
40
42
  });
41
- const A = E({
43
+ const A = V({
42
44
  presaleType: [
43
45
  {
44
46
  required: !0,
45
- message: r("goodsSpu.presaleTypeRequired"),
47
+ message: d("goodsSpu.presaleTypeRequired"),
46
48
  trigger: "change"
47
49
  }
48
50
  ],
49
51
  balancePaymentType: [
50
52
  {
51
53
  required: !0,
52
- message: r("goodsSpu.balancePaymentTypeRequired"),
54
+ message: d("goodsSpu.balancePaymentTypeRequired"),
53
55
  trigger: "change"
54
56
  }
55
57
  ],
56
58
  balancePaymentDays: [
57
59
  {
58
60
  required: !0,
59
- message: r("goodsSpu.balancePaymentDaysRequired"),
61
+ message: d("goodsSpu.balancePaymentDaysRequired"),
60
62
  trigger: "blur"
61
63
  }
62
64
  ],
63
65
  balancePaymentDate: [
64
66
  {
65
67
  required: !0,
66
- message: r("goodsSpu.balancePaymentDateRequired"),
68
+ message: d("goodsSpu.balancePaymentDateRequired"),
67
69
  trigger: "change"
68
70
  }
69
71
  ],
70
72
  isPointsGift: [
71
73
  {
72
74
  required: !0,
73
- message: r("goodsSpu.isPointsGiftRequired"),
75
+ message: d("goodsSpu.isPointsGiftRequired"),
74
76
  trigger: "change"
75
77
  }
76
78
  ],
77
79
  isPointsDeduct: [
78
80
  {
79
81
  required: !0,
80
- message: r("goodsSpu.isPointsDeductRequired"),
82
+ message: d("goodsSpu.isPointsDeductRequired"),
81
83
  trigger: "change"
82
84
  }
83
85
  ],
84
86
  purchaseLimit: [
85
87
  {
86
88
  required: !0,
87
- message: r("goodsSpu.purchaseLimitRequired"),
89
+ message: d("goodsSpu.purchaseLimitRequired"),
88
90
  trigger: "blur"
89
91
  }
90
92
  ],
91
93
  specType: [
92
94
  {
93
95
  required: !0,
94
- message: r("goodsSpu.specTypeRequired"),
96
+ message: d("goodsSpu.specTypeRequired"),
95
97
  trigger: "change"
96
98
  }
97
99
  ]
98
- });
99
- function k(o) {
100
- e.skuSpecValues.push(o), e.skuSpecValues = e.skuSpecValues.slice(-1);
101
- }
102
- function q(o) {
103
- o.forEach((t) => {
104
- var p;
105
- e.specId = (p = t.specValues) == null ? void 0 : p.map((n) => n.specId), e.skuSpecValues.push(t);
106
- }), e.skuSpecValues = e.skuSpecValues.slice(-o.length);
107
- }
108
- const S = G();
109
- function L() {
110
- var o;
111
- (o = S.value) == null || o.validate((t) => {
112
- t && J.create(e).then((p) => {
113
- p.status === 200 && (z({
114
- message: r("common.submitSuccess"),
100
+ }), _ = T(), b = T(), L = g;
101
+ async function q() {
102
+ var t, l, r;
103
+ await ((l = (t = b.value) == null ? void 0 : t.formRef()) == null ? void 0 : l.validate()), await ((r = _.value) == null ? void 0 : r.validate((n) => {
104
+ if (!n) return;
105
+ const p = JSON.parse(JSON.stringify(e));
106
+ p.skuSpecValues = p.skuSpecValues.map((m) => (m.earnestAmount = String(m.earnestAmount), m.depositAmount = String(m.depositAmount), m)), K.create(p).then((m) => {
107
+ m.status === 200 && (z({
108
+ message: d("common.submitSuccess"),
115
109
  type: "success"
116
- }), j.closeTagView(_.fullPath, D, !1));
110
+ }), L("submit", m.data));
117
111
  });
118
- });
112
+ }));
113
+ }
114
+ function N(t) {
115
+ e.skuSpecValues.push(t), e.skuSpecValues = e.skuSpecValues.slice(-1);
116
+ }
117
+ function R(t) {
118
+ t.forEach((l) => {
119
+ var r;
120
+ e.specId = (r = l.specValues) == null ? void 0 : r.map((n) => n.specId), e.skuSpecValues.push(l);
121
+ }), e.skuSpecValues = e.skuSpecValues.slice(-t.length);
119
122
  }
120
- return (o, t) => {
121
- const p = d("jmash-enum-radio"), n = d("el-form-item"), m = d("el-col"), T = d("el-input-number"), h = d("el-date-picker"), Y = d("el-row"), N = d("el-button"), R = d("el-form");
122
- return f(), g(R, {
123
+ return (t, l) => {
124
+ const r = i("jmash-enum-radio"), n = i("el-form-item"), p = i("el-col"), m = i("el-input-number"), U = i("el-date-picker"), Y = i("el-row"), C = i("el-button"), h = i("el-form");
125
+ return f(), S(h, {
123
126
  ref_key: "goodsSpecFormRef",
124
- ref: S,
127
+ ref: _,
125
128
  model: a(e),
126
129
  "label-width": "140px",
127
130
  rules: A
128
131
  }, {
129
132
  default: s(() => [
130
- l(Y, null, {
133
+ o(Y, null, {
131
134
  default: s(() => [
132
- l(m, { span: 8 }, {
135
+ o(p, { span: 8 }, {
133
136
  default: s(() => [
134
- l(n, {
135
- label: o.$t("goodsSpu.presaleType"),
137
+ o(n, {
138
+ label: t.$t("goodsSpu.presaleType"),
136
139
  prop: "presaleType"
137
140
  }, {
138
141
  default: s(() => [
139
- l(p, {
142
+ o(r, {
140
143
  modelValue: a(e).presaleType,
141
- "onUpdate:modelValue": t[0] || (t[0] = (u) => a(e).presaleType = u),
142
- data: a(i).presaleTypeEnum.values
144
+ "onUpdate:modelValue": l[0] || (l[0] = (u) => a(e).presaleType = u),
145
+ data: a(c).presaleTypeEnum.values
143
146
  }, null, 8, ["modelValue", "data"])
144
147
  ]),
145
148
  _: 1
@@ -147,18 +150,18 @@ const J = new H(), le = /* @__PURE__ */ U({
147
150
  ]),
148
151
  _: 1
149
152
  }),
150
- a(e).presaleType !== a(c).GOODS_PRESALE_TYPE_VALUES.NONE ? (f(), C(M, { key: 0 }, [
151
- l(m, { span: 8 }, {
153
+ a(e).presaleType !== a(y).GOODS_PRESALE_TYPE_VALUES.NONE ? (f(), G(I, { key: 0 }, [
154
+ o(p, { span: 8 }, {
152
155
  default: s(() => [
153
- l(n, {
154
- label: o.$t("goodsSpu.balancePaymentType"),
156
+ o(n, {
157
+ label: t.$t("goodsSpu.balancePaymentType"),
155
158
  prop: "balancePaymentType"
156
159
  }, {
157
160
  default: s(() => [
158
- l(p, {
161
+ o(r, {
159
162
  modelValue: a(e).balancePaymentType,
160
- "onUpdate:modelValue": t[1] || (t[1] = (u) => a(e).balancePaymentType = u),
161
- data: a(i).balancePaymentTypeEnum.values
163
+ "onUpdate:modelValue": l[1] || (l[1] = (u) => a(e).balancePaymentType = u),
164
+ data: a(c).balancePaymentTypeEnum.values
162
165
  }, null, 8, ["modelValue", "data"])
163
166
  ]),
164
167
  _: 1
@@ -166,21 +169,21 @@ const J = new H(), le = /* @__PURE__ */ U({
166
169
  ]),
167
170
  _: 1
168
171
  }),
169
- a(e).balancePaymentType === a(c).BALANCE_PAYMENT_TYPE_VALUES.DYNAMIC_DATE ? (f(), g(m, {
172
+ a(e).balancePaymentType === a(y).BALANCE_PAYMENT_TYPE_VALUES.DYNAMIC_DATE ? (f(), S(p, {
170
173
  key: 0,
171
174
  span: 8
172
175
  }, {
173
176
  default: s(() => [
174
- l(n, {
175
- label: o.$t("goodsSpu.balancePaymentDays"),
177
+ o(n, {
178
+ label: t.$t("goodsSpu.balancePaymentDays"),
176
179
  prop: "balancePaymentDays"
177
180
  }, {
178
181
  default: s(() => [
179
- l(T, {
182
+ o(m, {
180
183
  class: "w-full",
181
184
  modelValue: a(e).balancePaymentDays,
182
- "onUpdate:modelValue": t[2] || (t[2] = (u) => a(e).balancePaymentDays = u),
183
- placeholder: o.$t("goodsSpu.balancePaymentDaysRequired"),
185
+ "onUpdate:modelValue": l[2] || (l[2] = (u) => a(e).balancePaymentDays = u),
186
+ placeholder: t.$t("goodsSpu.balancePaymentDaysRequired"),
184
187
  min: 0,
185
188
  step: 1,
186
189
  "controls-position": "right",
@@ -192,21 +195,21 @@ const J = new H(), le = /* @__PURE__ */ U({
192
195
  ]),
193
196
  _: 1
194
197
  })) : P("", !0),
195
- a(e).balancePaymentType === a(c).BALANCE_PAYMENT_TYPE_VALUES.FIXED_DATE ? (f(), g(m, {
198
+ a(e).balancePaymentType === a(y).BALANCE_PAYMENT_TYPE_VALUES.FIXED_DATE ? (f(), S(p, {
196
199
  key: 1,
197
200
  span: 8
198
201
  }, {
199
202
  default: s(() => [
200
- l(n, {
201
- label: o.$t("goodsSpu.balancePaymentDate"),
203
+ o(n, {
204
+ label: t.$t("goodsSpu.balancePaymentDate"),
202
205
  prop: "balancePaymentDate"
203
206
  }, {
204
207
  default: s(() => [
205
- l(h, {
208
+ o(U, {
206
209
  class: "w-full",
207
210
  modelValue: a(e).balancePaymentDate,
208
- "onUpdate:modelValue": t[3] || (t[3] = (u) => a(e).balancePaymentDate = u),
209
- placeholder: o.$t("goodsSpu.balancePaymentDateRequired"),
211
+ "onUpdate:modelValue": l[3] || (l[3] = (u) => a(e).balancePaymentDate = u),
212
+ placeholder: t.$t("goodsSpu.balancePaymentDateRequired"),
210
213
  "show-word-limit": "",
211
214
  type: "date",
212
215
  format: "YYYY-MM-DD",
@@ -221,17 +224,17 @@ const J = new H(), le = /* @__PURE__ */ U({
221
224
  _: 1
222
225
  })) : P("", !0)
223
226
  ], 64)) : P("", !0),
224
- l(m, { span: 8 }, {
227
+ o(p, { span: 8 }, {
225
228
  default: s(() => [
226
- l(n, {
227
- label: o.$t("goodsSpu.isPointsGift"),
229
+ o(n, {
230
+ label: t.$t("goodsSpu.isPointsGift"),
228
231
  prop: "isPointsGift"
229
232
  }, {
230
233
  default: s(() => [
231
- l(p, {
234
+ o(r, {
232
235
  modelValue: a(e).isPointsGift,
233
- "onUpdate:modelValue": t[4] || (t[4] = (u) => a(e).isPointsGift = u),
234
- data: a(i).yesOrNoEnum.values
236
+ "onUpdate:modelValue": l[4] || (l[4] = (u) => a(e).isPointsGift = u),
237
+ data: a(c).yesOrNoEnum.values
235
238
  }, null, 8, ["modelValue", "data"])
236
239
  ]),
237
240
  _: 1
@@ -239,17 +242,17 @@ const J = new H(), le = /* @__PURE__ */ U({
239
242
  ]),
240
243
  _: 1
241
244
  }),
242
- l(m, { span: 8 }, {
245
+ o(p, { span: 8 }, {
243
246
  default: s(() => [
244
- l(n, {
245
- label: o.$t("goodsSpu.isPointsDeduct"),
247
+ o(n, {
248
+ label: t.$t("goodsSpu.isPointsDeduct"),
246
249
  prop: "isPointsDeduct"
247
250
  }, {
248
251
  default: s(() => [
249
- l(p, {
252
+ o(r, {
250
253
  modelValue: a(e).isPointsDeduct,
251
- "onUpdate:modelValue": t[5] || (t[5] = (u) => a(e).isPointsDeduct = u),
252
- data: a(i).yesOrNoEnum.values
254
+ "onUpdate:modelValue": l[5] || (l[5] = (u) => a(e).isPointsDeduct = u),
255
+ data: a(c).yesOrNoEnum.values
253
256
  }, null, 8, ["modelValue", "data"])
254
257
  ]),
255
258
  _: 1
@@ -257,18 +260,18 @@ const J = new H(), le = /* @__PURE__ */ U({
257
260
  ]),
258
261
  _: 1
259
262
  }),
260
- l(m, { span: 8 }, {
263
+ o(p, { span: 8 }, {
261
264
  default: s(() => [
262
- l(n, {
263
- label: o.$t("goodsSpu.purchaseLimit"),
265
+ o(n, {
266
+ label: t.$t("goodsSpu.purchaseLimit"),
264
267
  prop: "purchaseLimit"
265
268
  }, {
266
269
  default: s(() => [
267
- l(T, {
270
+ o(m, {
268
271
  class: "w-full",
269
272
  modelValue: a(e).purchaseLimit,
270
- "onUpdate:modelValue": t[6] || (t[6] = (u) => a(e).purchaseLimit = u),
271
- placeholder: o.$t("goodsSpu.purchaseLimitRequired"),
273
+ "onUpdate:modelValue": l[6] || (l[6] = (u) => a(e).purchaseLimit = u),
274
+ placeholder: t.$t("goodsSpu.purchaseLimitRequired"),
272
275
  min: 0,
273
276
  step: 1,
274
277
  "controls-position": "right",
@@ -280,17 +283,17 @@ const J = new H(), le = /* @__PURE__ */ U({
280
283
  ]),
281
284
  _: 1
282
285
  }),
283
- l(m, { span: 8 }, {
286
+ o(p, { span: 8 }, {
284
287
  default: s(() => [
285
- l(n, {
286
- label: o.$t("goodsSpu.specType"),
288
+ o(n, {
289
+ label: t.$t("goodsSpu.specType"),
287
290
  prop: "specType"
288
291
  }, {
289
292
  default: s(() => [
290
- l(p, {
293
+ o(r, {
291
294
  modelValue: a(e).specType,
292
- "onUpdate:modelValue": t[7] || (t[7] = (u) => a(e).specType = u),
293
- data: a(i).specTypeEnum.values
295
+ "onUpdate:modelValue": l[7] || (l[7] = (u) => a(e).specType = u),
296
+ data: a(c).specTypeEnum.values
294
297
  }, null, 8, ["modelValue", "data"])
295
298
  ]),
296
299
  _: 1
@@ -298,31 +301,37 @@ const J = new H(), le = /* @__PURE__ */ U({
298
301
  ]),
299
302
  _: 1
300
303
  }),
301
- l(m, { span: 24 }, {
302
- default: s(() => [
303
- l(X, {
304
- "spec-type": a(e).specType,
305
- form: a(e),
306
- onGetGoodsSku: k,
307
- onGetFormData: q
308
- }, null, 8, ["spec-type", "form"])
309
- ]),
310
- _: 1
311
- })
304
+ a(e).specType === a(y).SPEC_TYPE_VALUES.UNIFIED_SPEC ? (f(), S(X, {
305
+ key: 1,
306
+ ref_key: "formRef",
307
+ ref: b,
308
+ modelValue: a(e),
309
+ "onUpdate:modelValue": l[8] || (l[8] = (u) => v(e) ? e.value = u : e = u),
310
+ "goods-spu-model": t.goodsSpuModel
311
+ }, null, 8, ["modelValue", "goods-spu-model"])) : P("", !0),
312
+ a(e).specType === a(y).SPEC_TYPE_VALUES.MULTI_SPEC ? (f(), S(J, {
313
+ key: 2,
314
+ ref_key: "formRef",
315
+ ref: b,
316
+ form: a(e),
317
+ "goods-spu-model": t.goodsSpuModel,
318
+ onGetGoodsSku: N,
319
+ onGetFormData: R
320
+ }, null, 8, ["form", "goods-spu-model"])) : P("", !0)
312
321
  ]),
313
322
  _: 1
314
323
  }),
315
- l(n, null, {
324
+ o(n, null, {
316
325
  default: s(() => [
317
- l(N, {
326
+ o(C, {
318
327
  type: "primary",
319
- onClick: L
328
+ onClick: q
320
329
  }, {
321
- default: s(() => t[8] || (t[8] = [
322
- I("保存", -1)
330
+ default: s(() => l[9] || (l[9] = [
331
+ w("保存", -1)
323
332
  ])),
324
333
  _: 1,
325
- __: [8]
334
+ __: [9]
326
335
  })
327
336
  ]),
328
337
  _: 1
@@ -334,5 +343,5 @@ const J = new H(), le = /* @__PURE__ */ U({
334
343
  }
335
344
  });
336
345
  export {
337
- le as _
346
+ se as _
338
347
  };