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.
- package/dist/BatchSetting-B1LcBFPD.mjs +333 -0
- package/dist/ChannelProfit-CNSIK87d.mjs +4 -0
- package/dist/ChannelProfit.vue_vue_type_script_setup_true_lang-BVTifRY8.mjs +320 -0
- package/dist/{GoodsBaseForm-BSvXc_XA.mjs → GoodsBaseForm-BZ2fZmmp.mjs} +1 -1
- package/dist/GoodsBaseForm.vue_vue_type_script_setup_true_lang-BxBTTLdA.mjs +407 -0
- package/dist/{GoodsLogisticsForm-1Bbd4Z52.mjs → GoodsLogisticsForm-BqlwdGQ1.mjs} +1 -1
- package/dist/{GoodsLogisticsForm.vue_vue_type_script_setup_true_lang-PSnPNbmT.mjs → GoodsLogisticsForm.vue_vue_type_script_setup_true_lang-DJREiSkD.mjs} +56 -57
- package/dist/GoodsProfitForm-COYRi8sx.mjs +4 -0
- package/dist/GoodsProfitForm.vue_vue_type_script_setup_true_lang-BYPWP95J.mjs +2550 -0
- package/dist/{GoodsSpecForm-Ddo1IZLZ.mjs → GoodsSpecForm-B4MtETRy.mjs} +1 -1
- 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
- package/dist/SingleSku-rWv9vVhv.mjs +351 -0
- package/dist/constant-sVd2JbJt.mjs +115 -0
- package/dist/edit-B1cmsJpy.mjs +70 -0
- package/dist/{edit-lfXK_dUp.mjs → edit-Br1Y569l.mjs} +8 -7
- package/dist/{edit-e5-aXV6K.mjs → edit-CET8Fr-t.mjs} +1 -1
- package/dist/{edit-pUKONjxH.mjs → edit-CagYTFKr.mjs} +1 -1
- package/dist/{edit-BgtwinSN.mjs → edit-iJGrWlSv.mjs} +1 -1
- 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
- package/dist/{el-message-BB2-39XJ.mjs → el-message-Dj6aaz4G.mjs} +490 -373
- package/dist/{index-DyLLV1NK.mjs → index copy-kNLE7fPg.mjs } +6 -5
- package/dist/index-C61SQFSx.mjs +264 -0
- package/dist/index-CeWPdEJD.mjs +713 -0
- package/dist/{index-CkJncbVf.mjs → index-Cg6GUdSP.mjs} +3 -3
- package/dist/index-CyxnVWnL.mjs +182 -0
- package/dist/{index-CkMWas2b.mjs → index-D9s8hsVw.mjs} +3 -3
- package/dist/{index-BSzOTWcG.mjs → index-DbnKa_BJ.mjs} +1 -1
- package/dist/{index-ChQ-ZxD1.mjs → index-DoxTu4kg.mjs} +5 -4
- package/dist/{index-BpKiAhvt.mjs → index-kw0UYOIu.mjs} +3 -3
- package/dist/{index-DhS4AuWf.mjs → index-xQgC-8Gd.mjs} +1106 -1038
- package/dist/index.mjs +1 -1
- package/dist/info-CTElDVo6.mjs +376 -0
- package/dist/{info-DOKoSi7a.mjs → info-DpGJgdac.mjs} +5 -4
- package/dist/{skuForm-DVGkw6rD.mjs → skuForm-C7w9YIDe.mjs} +24 -23
- package/dist/skuForm-CPlnCToi.mjs +279 -0
- package/dist/skuTable-C-LcASbX.mjs +594 -0
- package/dist/spec-DkiGCkuM.mjs +44 -0
- package/dist/style.css +1 -1
- package/dts/xyvcard-goods/src/api/dict.d.ts +5 -4
- package/dts/xyvcard-goods/src/api/goods-sku/types.d.ts +3 -0
- package/dts/xyvcard-goods/src/api/goods-spu/index.d.ts +4 -1
- package/dts/xyvcard-goods/src/api/goods-spu/types.d.ts +35 -9
- package/dts/xyvcard-goods/src/api/types.d.ts +4 -0
- package/dts/xyvcard-goods/src/lang/goods/zh-cn.d.ts +32 -0
- package/dts/xyvcard-goods/src/router/index.d.ts +1 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/BatchSetting.vue.d.ts +35 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/ChannelProfit.vue.d.ts +22 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsProfitForm.vue.d.ts +34 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/SingleSku.vue.d.ts +23 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/index copy.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/skuForm.vue.d.ts +17 -4
- package/dts/xyvcard-goods/src/views/goods/goods-spu/skuTable.vue.d.ts +14 -1
- package/dts/xyvcard-goods/src/views/goods/goods-spu/spec.vue.d.ts +2 -0
- package/package.json +4 -3
- package/dist/GoodsBaseForm.vue_vue_type_script_setup_true_lang-rsmqHXbJ.mjs +0 -381
- package/dist/edit copy 2-Yzf_M31V.mjs +0 -59
- package/dist/edit copy-CCnzlrgL.mjs +0 -526
- package/dist/edit-Dke5sWct.mjs +0 -526
- package/dist/index-BHmGYIuc.mjs +0 -24
- package/dist/index-Da2R0n8O.mjs +0 -374
- package/dist/index-vHQhUQSO.mjs +0 -95
- package/dist/info-De_pBN6A.mjs +0 -365
- package/dist/skuForm-YXHrhyPI.mjs +0 -476
- package/dist/skuTable-DOIQ9kiV.mjs +0 -639
|
@@ -1,145 +1,148 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import { useRoute as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
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(
|
|
11
|
-
return
|
|
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:
|
|
16
|
+
data: g
|
|
15
17
|
});
|
|
16
18
|
}
|
|
17
19
|
}
|
|
18
|
-
const
|
|
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(
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
const { t:
|
|
28
|
-
let 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:
|
|
35
|
-
presaleType:
|
|
36
|
-
balancePaymentType:
|
|
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:
|
|
39
|
-
...
|
|
40
|
+
specType: y.SPEC_TYPE_VALUES.UNIFIED_SPEC,
|
|
41
|
+
...D.goodsSpuModel
|
|
40
42
|
});
|
|
41
|
-
const A =
|
|
43
|
+
const A = V({
|
|
42
44
|
presaleType: [
|
|
43
45
|
{
|
|
44
46
|
required: !0,
|
|
45
|
-
message:
|
|
47
|
+
message: d("goodsSpu.presaleTypeRequired"),
|
|
46
48
|
trigger: "change"
|
|
47
49
|
}
|
|
48
50
|
],
|
|
49
51
|
balancePaymentType: [
|
|
50
52
|
{
|
|
51
53
|
required: !0,
|
|
52
|
-
message:
|
|
54
|
+
message: d("goodsSpu.balancePaymentTypeRequired"),
|
|
53
55
|
trigger: "change"
|
|
54
56
|
}
|
|
55
57
|
],
|
|
56
58
|
balancePaymentDays: [
|
|
57
59
|
{
|
|
58
60
|
required: !0,
|
|
59
|
-
message:
|
|
61
|
+
message: d("goodsSpu.balancePaymentDaysRequired"),
|
|
60
62
|
trigger: "blur"
|
|
61
63
|
}
|
|
62
64
|
],
|
|
63
65
|
balancePaymentDate: [
|
|
64
66
|
{
|
|
65
67
|
required: !0,
|
|
66
|
-
message:
|
|
68
|
+
message: d("goodsSpu.balancePaymentDateRequired"),
|
|
67
69
|
trigger: "change"
|
|
68
70
|
}
|
|
69
71
|
],
|
|
70
72
|
isPointsGift: [
|
|
71
73
|
{
|
|
72
74
|
required: !0,
|
|
73
|
-
message:
|
|
75
|
+
message: d("goodsSpu.isPointsGiftRequired"),
|
|
74
76
|
trigger: "change"
|
|
75
77
|
}
|
|
76
78
|
],
|
|
77
79
|
isPointsDeduct: [
|
|
78
80
|
{
|
|
79
81
|
required: !0,
|
|
80
|
-
message:
|
|
82
|
+
message: d("goodsSpu.isPointsDeductRequired"),
|
|
81
83
|
trigger: "change"
|
|
82
84
|
}
|
|
83
85
|
],
|
|
84
86
|
purchaseLimit: [
|
|
85
87
|
{
|
|
86
88
|
required: !0,
|
|
87
|
-
message:
|
|
89
|
+
message: d("goodsSpu.purchaseLimitRequired"),
|
|
88
90
|
trigger: "blur"
|
|
89
91
|
}
|
|
90
92
|
],
|
|
91
93
|
specType: [
|
|
92
94
|
{
|
|
93
95
|
required: !0,
|
|
94
|
-
message:
|
|
96
|
+
message: d("goodsSpu.specTypeRequired"),
|
|
95
97
|
trigger: "change"
|
|
96
98
|
}
|
|
97
99
|
]
|
|
98
|
-
});
|
|
99
|
-
function
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
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
|
-
}),
|
|
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 (
|
|
121
|
-
const
|
|
122
|
-
return f(),
|
|
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:
|
|
127
|
+
ref: _,
|
|
125
128
|
model: a(e),
|
|
126
129
|
"label-width": "140px",
|
|
127
130
|
rules: A
|
|
128
131
|
}, {
|
|
129
132
|
default: s(() => [
|
|
130
|
-
|
|
133
|
+
o(Y, null, {
|
|
131
134
|
default: s(() => [
|
|
132
|
-
|
|
135
|
+
o(p, { span: 8 }, {
|
|
133
136
|
default: s(() => [
|
|
134
|
-
|
|
135
|
-
label:
|
|
137
|
+
o(n, {
|
|
138
|
+
label: t.$t("goodsSpu.presaleType"),
|
|
136
139
|
prop: "presaleType"
|
|
137
140
|
}, {
|
|
138
141
|
default: s(() => [
|
|
139
|
-
|
|
142
|
+
o(r, {
|
|
140
143
|
modelValue: a(e).presaleType,
|
|
141
|
-
"onUpdate:modelValue":
|
|
142
|
-
data: a(
|
|
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(
|
|
151
|
-
|
|
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
|
-
|
|
154
|
-
label:
|
|
156
|
+
o(n, {
|
|
157
|
+
label: t.$t("goodsSpu.balancePaymentType"),
|
|
155
158
|
prop: "balancePaymentType"
|
|
156
159
|
}, {
|
|
157
160
|
default: s(() => [
|
|
158
|
-
|
|
161
|
+
o(r, {
|
|
159
162
|
modelValue: a(e).balancePaymentType,
|
|
160
|
-
"onUpdate:modelValue":
|
|
161
|
-
data: a(
|
|
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(
|
|
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
|
-
|
|
175
|
-
label:
|
|
177
|
+
o(n, {
|
|
178
|
+
label: t.$t("goodsSpu.balancePaymentDays"),
|
|
176
179
|
prop: "balancePaymentDays"
|
|
177
180
|
}, {
|
|
178
181
|
default: s(() => [
|
|
179
|
-
|
|
182
|
+
o(m, {
|
|
180
183
|
class: "w-full",
|
|
181
184
|
modelValue: a(e).balancePaymentDays,
|
|
182
|
-
"onUpdate:modelValue":
|
|
183
|
-
placeholder:
|
|
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(
|
|
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
|
-
|
|
201
|
-
label:
|
|
203
|
+
o(n, {
|
|
204
|
+
label: t.$t("goodsSpu.balancePaymentDate"),
|
|
202
205
|
prop: "balancePaymentDate"
|
|
203
206
|
}, {
|
|
204
207
|
default: s(() => [
|
|
205
|
-
|
|
208
|
+
o(U, {
|
|
206
209
|
class: "w-full",
|
|
207
210
|
modelValue: a(e).balancePaymentDate,
|
|
208
|
-
"onUpdate:modelValue":
|
|
209
|
-
placeholder:
|
|
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
|
-
|
|
227
|
+
o(p, { span: 8 }, {
|
|
225
228
|
default: s(() => [
|
|
226
|
-
|
|
227
|
-
label:
|
|
229
|
+
o(n, {
|
|
230
|
+
label: t.$t("goodsSpu.isPointsGift"),
|
|
228
231
|
prop: "isPointsGift"
|
|
229
232
|
}, {
|
|
230
233
|
default: s(() => [
|
|
231
|
-
|
|
234
|
+
o(r, {
|
|
232
235
|
modelValue: a(e).isPointsGift,
|
|
233
|
-
"onUpdate:modelValue":
|
|
234
|
-
data: a(
|
|
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
|
-
|
|
245
|
+
o(p, { span: 8 }, {
|
|
243
246
|
default: s(() => [
|
|
244
|
-
|
|
245
|
-
label:
|
|
247
|
+
o(n, {
|
|
248
|
+
label: t.$t("goodsSpu.isPointsDeduct"),
|
|
246
249
|
prop: "isPointsDeduct"
|
|
247
250
|
}, {
|
|
248
251
|
default: s(() => [
|
|
249
|
-
|
|
252
|
+
o(r, {
|
|
250
253
|
modelValue: a(e).isPointsDeduct,
|
|
251
|
-
"onUpdate:modelValue":
|
|
252
|
-
data: a(
|
|
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
|
-
|
|
263
|
+
o(p, { span: 8 }, {
|
|
261
264
|
default: s(() => [
|
|
262
|
-
|
|
263
|
-
label:
|
|
265
|
+
o(n, {
|
|
266
|
+
label: t.$t("goodsSpu.purchaseLimit"),
|
|
264
267
|
prop: "purchaseLimit"
|
|
265
268
|
}, {
|
|
266
269
|
default: s(() => [
|
|
267
|
-
|
|
270
|
+
o(m, {
|
|
268
271
|
class: "w-full",
|
|
269
272
|
modelValue: a(e).purchaseLimit,
|
|
270
|
-
"onUpdate:modelValue":
|
|
271
|
-
placeholder:
|
|
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
|
-
|
|
286
|
+
o(p, { span: 8 }, {
|
|
284
287
|
default: s(() => [
|
|
285
|
-
|
|
286
|
-
label:
|
|
288
|
+
o(n, {
|
|
289
|
+
label: t.$t("goodsSpu.specType"),
|
|
287
290
|
prop: "specType"
|
|
288
291
|
}, {
|
|
289
292
|
default: s(() => [
|
|
290
|
-
|
|
293
|
+
o(r, {
|
|
291
294
|
modelValue: a(e).specType,
|
|
292
|
-
"onUpdate:modelValue":
|
|
293
|
-
data: a(
|
|
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
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
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
|
-
|
|
324
|
+
o(n, null, {
|
|
316
325
|
default: s(() => [
|
|
317
|
-
|
|
326
|
+
o(C, {
|
|
318
327
|
type: "primary",
|
|
319
|
-
onClick:
|
|
328
|
+
onClick: q
|
|
320
329
|
}, {
|
|
321
|
-
default: s(() =>
|
|
322
|
-
|
|
330
|
+
default: s(() => l[9] || (l[9] = [
|
|
331
|
+
w("保存", -1)
|
|
323
332
|
])),
|
|
324
333
|
_: 1,
|
|
325
|
-
__: [
|
|
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
|
-
|
|
346
|
+
se as _
|
|
338
347
|
};
|