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,381 +0,0 @@
|
|
|
1
|
-
import { _ as j } from "./ImageUpload-Bf2jhRs5.mjs";
|
|
2
|
-
import { defineComponent as F, reactive as h, ref as M, resolveComponent as m, createBlock as U, openBlock as y, unref as o, withCtx as t, createVNode as e, createCommentVNode as z, createElementVNode as I, createTextVNode as Y } from "vue";
|
|
3
|
-
import { useI18n as W } from "vue-i18n";
|
|
4
|
-
import { useRoute as H, useRouter as J } from "vue-router";
|
|
5
|
-
import { useUserStore as c, clearEmpty as V, request as f, fileApi as K, routerUtil as Q } from "jmash-core";
|
|
6
|
-
import { WangEditor as X } from "xyvcard-cms";
|
|
7
|
-
import { D as g, C as q } from "./index-Da2R0n8O.mjs";
|
|
8
|
-
import { E as B } from "./el-message-BB2-39XJ.mjs";
|
|
9
|
-
class Z {
|
|
10
|
-
// A创建商品基本信息
|
|
11
|
-
create(d) {
|
|
12
|
-
return d.tenant = c().user.tenant, V(d), f({
|
|
13
|
-
url: "/v1/goods/goods_base",
|
|
14
|
-
method: "post",
|
|
15
|
-
data: d
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
// A编辑商品基本信息
|
|
19
|
-
update(d) {
|
|
20
|
-
return d.tenant = c().user.tenant, V(d), f({
|
|
21
|
-
url: "/v1/goods/goods_base",
|
|
22
|
-
method: "patch",
|
|
23
|
-
data: d
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
// 导入下载模版
|
|
27
|
-
downloadTemplate() {
|
|
28
|
-
const d = c().user.tenant;
|
|
29
|
-
return f({
|
|
30
|
-
url: `/v1/goods/goods_base/${d}/template.xlsx`,
|
|
31
|
-
method: "get",
|
|
32
|
-
responseType: "blob"
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
// A导入商品基本信息请求.
|
|
36
|
-
importExcel(d) {
|
|
37
|
-
return d.tenant = c().user.tenant, V(d), f({
|
|
38
|
-
url: "/v1/ecoupons/grant_users/import",
|
|
39
|
-
method: "patch",
|
|
40
|
-
data: d
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
const E = new Z(), x = { class: "image-card" }, de = /* @__PURE__ */ F({
|
|
45
|
-
__name: "GoodsBaseForm",
|
|
46
|
-
props: {
|
|
47
|
-
goodsSpuModel: { default: () => ({}) }
|
|
48
|
-
},
|
|
49
|
-
emits: ["submit"],
|
|
50
|
-
setup(C, { emit: d }) {
|
|
51
|
-
g.goodsSupClassEnum.useEnumValues(), g.brandListBizDict.useValues(), g.goodsCategoryListBizLayDict.useValues();
|
|
52
|
-
const { t: i } = W(), b = H(), P = J(), v = C;
|
|
53
|
-
let s = h({
|
|
54
|
-
requestId: Math.random() * 10 + "",
|
|
55
|
-
updateMask: "spuName,categoryIds,brandId,spuCode,labelIds,picUrls,sellPoint,description,appApiUrl",
|
|
56
|
-
appApiUrl: K.baseApiUrl() || location.origin,
|
|
57
|
-
categoryIds: [],
|
|
58
|
-
labelIds: [],
|
|
59
|
-
spuId: "",
|
|
60
|
-
spuName: "",
|
|
61
|
-
brandId: "",
|
|
62
|
-
spuCode: "",
|
|
63
|
-
picUrls: "",
|
|
64
|
-
sellPoint: "",
|
|
65
|
-
description: "",
|
|
66
|
-
supClass: q.GOODS_SUP_CLASS_VALUES.GOODS_TYPE_REAL,
|
|
67
|
-
isBranchPickup: !1
|
|
68
|
-
});
|
|
69
|
-
b.query.spuId && Object.assign(s, v.goodsSpuModel);
|
|
70
|
-
const w = (a, l, n) => {
|
|
71
|
-
var p;
|
|
72
|
-
const r = (p = s.picUrls) == null ? void 0 : p.split(",").filter(Boolean);
|
|
73
|
-
if (r != null && r.length) {
|
|
74
|
-
if ((r == null ? void 0 : r.length) < 1)
|
|
75
|
-
return n(new Error(i("goodsSpu.imageListsErrors")));
|
|
76
|
-
n();
|
|
77
|
-
} else return n(new Error(i("goodsSpu.picUrlsRequired")));
|
|
78
|
-
}, R = () => {
|
|
79
|
-
var a;
|
|
80
|
-
(a = _.value) == null || a.validateField("picUrls");
|
|
81
|
-
}, $ = h({
|
|
82
|
-
supClass: [
|
|
83
|
-
{
|
|
84
|
-
required: !0,
|
|
85
|
-
message: i("goodsSpu.supClassRequired"),
|
|
86
|
-
trigger: "blur"
|
|
87
|
-
}
|
|
88
|
-
],
|
|
89
|
-
isBranchPickup: [
|
|
90
|
-
{
|
|
91
|
-
required: !0,
|
|
92
|
-
message: i("goodsSpu.isBranchPickupRequired"),
|
|
93
|
-
trigger: "blur"
|
|
94
|
-
}
|
|
95
|
-
],
|
|
96
|
-
spuName: [
|
|
97
|
-
{
|
|
98
|
-
required: !0,
|
|
99
|
-
message: i("goodsSpu.spuNameRequired"),
|
|
100
|
-
trigger: "blur"
|
|
101
|
-
}
|
|
102
|
-
],
|
|
103
|
-
categoryIds: [
|
|
104
|
-
{
|
|
105
|
-
required: !0,
|
|
106
|
-
message: i("goodsSpu.categoryIdRequired"),
|
|
107
|
-
trigger: "change"
|
|
108
|
-
}
|
|
109
|
-
],
|
|
110
|
-
brandId: [
|
|
111
|
-
{
|
|
112
|
-
required: !0,
|
|
113
|
-
message: i("goodsSpu.brandIdRequired"),
|
|
114
|
-
trigger: "change"
|
|
115
|
-
}
|
|
116
|
-
],
|
|
117
|
-
spuCode: [
|
|
118
|
-
{
|
|
119
|
-
required: !0,
|
|
120
|
-
message: i("goodsSpu.spuCodeRequired"),
|
|
121
|
-
trigger: "change"
|
|
122
|
-
}
|
|
123
|
-
],
|
|
124
|
-
picUrls: [
|
|
125
|
-
{
|
|
126
|
-
required: !0,
|
|
127
|
-
validator: w,
|
|
128
|
-
trigger: "change"
|
|
129
|
-
}
|
|
130
|
-
]
|
|
131
|
-
}), _ = M(), N = d;
|
|
132
|
-
function L() {
|
|
133
|
-
var a;
|
|
134
|
-
(a = _.value) == null || a.validate((l) => {
|
|
135
|
-
if (l) {
|
|
136
|
-
if (b.query.spuId) {
|
|
137
|
-
E.update(s).then((n) => {
|
|
138
|
-
n.status === 200 && (B({
|
|
139
|
-
message: i("common.submitSuccess"),
|
|
140
|
-
type: "success"
|
|
141
|
-
}), Q.closeTagView(b.fullPath, P, !1));
|
|
142
|
-
});
|
|
143
|
-
return;
|
|
144
|
-
}
|
|
145
|
-
E.create(s).then((n) => {
|
|
146
|
-
n.status === 200 && (B({
|
|
147
|
-
message: i("common.submitSuccess"),
|
|
148
|
-
type: "success"
|
|
149
|
-
}), N("submit", n.data));
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
return (a, l) => {
|
|
155
|
-
const n = m("jmash-enum-radio"), r = m("el-form-item"), p = m("el-col"), S = m("el-input"), k = m("el-tree-select"), A = m("jmash-select"), D = j, O = m("el-row"), G = m("el-button"), T = m("el-form");
|
|
156
|
-
return y(), U(T, {
|
|
157
|
-
ref_key: "goodsBaseFormRef",
|
|
158
|
-
ref: _,
|
|
159
|
-
model: o(s),
|
|
160
|
-
"label-width": "120px",
|
|
161
|
-
rules: $
|
|
162
|
-
}, {
|
|
163
|
-
default: t(() => [
|
|
164
|
-
e(O, null, {
|
|
165
|
-
default: t(() => [
|
|
166
|
-
e(p, { span: 12 }, {
|
|
167
|
-
default: t(() => [
|
|
168
|
-
e(r, {
|
|
169
|
-
label: a.$t("goodsSpu.supClass"),
|
|
170
|
-
prop: "supClass"
|
|
171
|
-
}, {
|
|
172
|
-
default: t(() => [
|
|
173
|
-
e(n, {
|
|
174
|
-
modelValue: o(s).supClass,
|
|
175
|
-
"onUpdate:modelValue": l[0] || (l[0] = (u) => o(s).supClass = u),
|
|
176
|
-
data: o(g).goodsSupClassEnum.values
|
|
177
|
-
}, null, 8, ["modelValue", "data"])
|
|
178
|
-
]),
|
|
179
|
-
_: 1
|
|
180
|
-
}, 8, ["label"])
|
|
181
|
-
]),
|
|
182
|
-
_: 1
|
|
183
|
-
}),
|
|
184
|
-
o(s).supClass === o(q).GOODS_SUP_CLASS_VALUES.GOODS_TYPE_REAL ? (y(), U(p, {
|
|
185
|
-
key: 0,
|
|
186
|
-
span: 12
|
|
187
|
-
}, {
|
|
188
|
-
default: t(() => [
|
|
189
|
-
e(r, {
|
|
190
|
-
label: a.$t("goodsSpu.isBranchPickup"),
|
|
191
|
-
prop: "isBranchPickup"
|
|
192
|
-
}, {
|
|
193
|
-
default: t(() => [
|
|
194
|
-
e(n, {
|
|
195
|
-
modelValue: o(s).isBranchPickup,
|
|
196
|
-
"onUpdate:modelValue": l[1] || (l[1] = (u) => o(s).isBranchPickup = u),
|
|
197
|
-
data: o(g).yesOrNoEnum.values
|
|
198
|
-
}, null, 8, ["modelValue", "data"])
|
|
199
|
-
]),
|
|
200
|
-
_: 1
|
|
201
|
-
}, 8, ["label"])
|
|
202
|
-
]),
|
|
203
|
-
_: 1
|
|
204
|
-
})) : z("", !0),
|
|
205
|
-
e(p, { span: 12 }, {
|
|
206
|
-
default: t(() => [
|
|
207
|
-
e(r, {
|
|
208
|
-
label: a.$t("goodsSpu.spuName"),
|
|
209
|
-
prop: "spuName"
|
|
210
|
-
}, {
|
|
211
|
-
default: t(() => [
|
|
212
|
-
e(S, {
|
|
213
|
-
modelValue: o(s).spuName,
|
|
214
|
-
"onUpdate:modelValue": l[2] || (l[2] = (u) => o(s).spuName = u),
|
|
215
|
-
placeholder: a.$t("goodsSpu.spuNameRequired"),
|
|
216
|
-
maxlength: "60",
|
|
217
|
-
"show-word-limit": "",
|
|
218
|
-
clearable: ""
|
|
219
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
220
|
-
]),
|
|
221
|
-
_: 1
|
|
222
|
-
}, 8, ["label"])
|
|
223
|
-
]),
|
|
224
|
-
_: 1
|
|
225
|
-
}),
|
|
226
|
-
e(p, { span: 12 }, {
|
|
227
|
-
default: t(() => [
|
|
228
|
-
e(r, {
|
|
229
|
-
label: a.$t("goodsSpu.categoryId"),
|
|
230
|
-
prop: "categoryIds"
|
|
231
|
-
}, {
|
|
232
|
-
default: t(() => [
|
|
233
|
-
e(k, {
|
|
234
|
-
modelValue: o(s).categoryIds,
|
|
235
|
-
"onUpdate:modelValue": l[3] || (l[3] = (u) => o(s).categoryIds = u),
|
|
236
|
-
data: o(g).goodsCategoryListBizLayDict.values,
|
|
237
|
-
multiple: "",
|
|
238
|
-
"render-after-expand": !1,
|
|
239
|
-
"show-checkbox": "",
|
|
240
|
-
placeholder: a.$t("goodsSpu.categoryIdRequired"),
|
|
241
|
-
class: "w-full"
|
|
242
|
-
}, null, 8, ["modelValue", "data", "placeholder"])
|
|
243
|
-
]),
|
|
244
|
-
_: 1
|
|
245
|
-
}, 8, ["label"])
|
|
246
|
-
]),
|
|
247
|
-
_: 1
|
|
248
|
-
}),
|
|
249
|
-
e(p, { span: 12 }, {
|
|
250
|
-
default: t(() => [
|
|
251
|
-
e(r, {
|
|
252
|
-
label: a.$t("goodsSpu.brandId"),
|
|
253
|
-
prop: "brandId"
|
|
254
|
-
}, {
|
|
255
|
-
default: t(() => [
|
|
256
|
-
e(A, {
|
|
257
|
-
modelValue: o(s).brandId,
|
|
258
|
-
"onUpdate:modelValue": l[4] || (l[4] = (u) => o(s).brandId = u),
|
|
259
|
-
placeholder: a.$t("goodsSpu.brandIdRequired"),
|
|
260
|
-
data: o(g).brandListBizDict.values,
|
|
261
|
-
class: "w-full",
|
|
262
|
-
clearable: ""
|
|
263
|
-
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
264
|
-
]),
|
|
265
|
-
_: 1
|
|
266
|
-
}, 8, ["label"])
|
|
267
|
-
]),
|
|
268
|
-
_: 1
|
|
269
|
-
}),
|
|
270
|
-
e(p, { span: 12 }, {
|
|
271
|
-
default: t(() => [
|
|
272
|
-
e(r, {
|
|
273
|
-
label: a.$t("goodsSpu.spuCode"),
|
|
274
|
-
prop: "spuCode"
|
|
275
|
-
}, {
|
|
276
|
-
default: t(() => [
|
|
277
|
-
e(S, {
|
|
278
|
-
modelValue: o(s).spuCode,
|
|
279
|
-
"onUpdate:modelValue": l[5] || (l[5] = (u) => o(s).spuCode = u),
|
|
280
|
-
placeholder: a.$t("goodsSpu.spuCodeRequired"),
|
|
281
|
-
maxlength: "15",
|
|
282
|
-
"show-word-limit": "",
|
|
283
|
-
clearable: ""
|
|
284
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
285
|
-
]),
|
|
286
|
-
_: 1
|
|
287
|
-
}, 8, ["label"])
|
|
288
|
-
]),
|
|
289
|
-
_: 1
|
|
290
|
-
}),
|
|
291
|
-
e(p, { span: 24 }, {
|
|
292
|
-
default: t(() => [
|
|
293
|
-
e(r, {
|
|
294
|
-
label: a.$t("goodsSpu.picUrls"),
|
|
295
|
-
prop: "picUrls"
|
|
296
|
-
}, {
|
|
297
|
-
default: t(() => [
|
|
298
|
-
I("div", x, [
|
|
299
|
-
e(D, {
|
|
300
|
-
modelValue: o(s).picUrls,
|
|
301
|
-
"onUpdate:modelValue": [
|
|
302
|
-
l[6] || (l[6] = (u) => o(s).picUrls = u),
|
|
303
|
-
R
|
|
304
|
-
],
|
|
305
|
-
limit: 6,
|
|
306
|
-
"list-type": "picture-card"
|
|
307
|
-
}, null, 8, ["modelValue"]),
|
|
308
|
-
l[9] || (l[9] = I("div", { class: "red-color" }, " 推荐尺寸:100*100或同比例图片,最少上传1张 ", -1))
|
|
309
|
-
])
|
|
310
|
-
]),
|
|
311
|
-
_: 1
|
|
312
|
-
}, 8, ["label"])
|
|
313
|
-
]),
|
|
314
|
-
_: 1
|
|
315
|
-
}),
|
|
316
|
-
e(p, { span: 24 }, {
|
|
317
|
-
default: t(() => [
|
|
318
|
-
e(r, {
|
|
319
|
-
label: a.$t("goodsSpu.sellPoint"),
|
|
320
|
-
prop: "sellPoint"
|
|
321
|
-
}, {
|
|
322
|
-
default: t(() => [
|
|
323
|
-
e(S, {
|
|
324
|
-
type: "textarea",
|
|
325
|
-
modelValue: o(s).sellPoint,
|
|
326
|
-
"onUpdate:modelValue": l[7] || (l[7] = (u) => o(s).sellPoint = u),
|
|
327
|
-
placeholder: a.$t("goodsSpu.sellPointRequired"),
|
|
328
|
-
clearable: "",
|
|
329
|
-
rows: 4
|
|
330
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
331
|
-
]),
|
|
332
|
-
_: 1
|
|
333
|
-
}, 8, ["label"])
|
|
334
|
-
]),
|
|
335
|
-
_: 1
|
|
336
|
-
}),
|
|
337
|
-
e(p, { span: 24 }, {
|
|
338
|
-
default: t(() => [
|
|
339
|
-
e(r, {
|
|
340
|
-
label: a.$t("goodsSpu.description"),
|
|
341
|
-
prop: "description"
|
|
342
|
-
}, {
|
|
343
|
-
default: t(() => [
|
|
344
|
-
e(o(X), {
|
|
345
|
-
modelValue: o(s).description,
|
|
346
|
-
"onUpdate:modelValue": l[8] || (l[8] = (u) => o(s).description = u),
|
|
347
|
-
style: { width: "100%" }
|
|
348
|
-
}, null, 8, ["modelValue"])
|
|
349
|
-
]),
|
|
350
|
-
_: 1
|
|
351
|
-
}, 8, ["label"])
|
|
352
|
-
]),
|
|
353
|
-
_: 1
|
|
354
|
-
})
|
|
355
|
-
]),
|
|
356
|
-
_: 1
|
|
357
|
-
}),
|
|
358
|
-
e(r, null, {
|
|
359
|
-
default: t(() => [
|
|
360
|
-
e(G, {
|
|
361
|
-
type: "primary",
|
|
362
|
-
onClick: L
|
|
363
|
-
}, {
|
|
364
|
-
default: t(() => l[10] || (l[10] = [
|
|
365
|
-
Y("保存", -1)
|
|
366
|
-
])),
|
|
367
|
-
_: 1,
|
|
368
|
-
__: [10]
|
|
369
|
-
})
|
|
370
|
-
]),
|
|
371
|
-
_: 1
|
|
372
|
-
})
|
|
373
|
-
]),
|
|
374
|
-
_: 1
|
|
375
|
-
}, 8, ["model", "rules"]);
|
|
376
|
-
};
|
|
377
|
-
}
|
|
378
|
-
});
|
|
379
|
-
export {
|
|
380
|
-
de as _
|
|
381
|
-
};
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { defineComponent as k, reactive as C, ref as B, computed as g, resolveComponent as p, createElementBlock as u, openBlock as a, createVNode as I, unref as t, isRef as A, withCtx as S, createBlock as d, Fragment as h, renderList as E, resolveDynamicComponent as F } from "vue";
|
|
2
|
-
import { useRoute as M } from "vue-router";
|
|
3
|
-
import { C as l } from "./index-Da2R0n8O.mjs";
|
|
4
|
-
import { a as N } from "./index-DhS4AuWf.mjs";
|
|
5
|
-
import { _ as T } from "./GoodsBaseForm.vue_vue_type_script_setup_true_lang-rsmqHXbJ.mjs";
|
|
6
|
-
import { _ as U } from "./GoodsSpecForm.vue_vue_type_script_setup_true_lang-CdWIufm4.mjs";
|
|
7
|
-
import { _ as V } from "./GoodsLogisticsForm.vue_vue_type_script_setup_true_lang-PSnPNbmT.mjs";
|
|
8
|
-
const x = { class: "app-container" }, D = /* @__PURE__ */ k({
|
|
9
|
-
__name: "edit copy 2",
|
|
10
|
-
setup(G) {
|
|
11
|
-
const n = C({}), m = M();
|
|
12
|
-
m.query.spuId && N.findById({ spuId: m.query.spuId }).then(({ data: o }) => {
|
|
13
|
-
Object.assign(n, o);
|
|
14
|
-
});
|
|
15
|
-
const e = B(l.TAB_ENUM[0].key), c = {
|
|
16
|
-
GoodsBaseForm: T,
|
|
17
|
-
GoodsSpecForm: U,
|
|
18
|
-
GoodsLogisticsForm: V
|
|
19
|
-
}, i = g(
|
|
20
|
-
() => c[e.value]
|
|
21
|
-
);
|
|
22
|
-
function _(o, r) {
|
|
23
|
-
e.value = o.props.name;
|
|
24
|
-
}
|
|
25
|
-
function f(o) {
|
|
26
|
-
Object.assign(n, o), e.value = l.TAB_ENUM[1].key;
|
|
27
|
-
}
|
|
28
|
-
return (o, r) => {
|
|
29
|
-
const b = p("el-tab-pane"), v = p("el-tabs");
|
|
30
|
-
return a(), u("div", x, [
|
|
31
|
-
I(v, {
|
|
32
|
-
type: "border-card",
|
|
33
|
-
modelValue: t(e),
|
|
34
|
-
"onUpdate:modelValue": r[0] || (r[0] = (s) => A(e) ? e.value = s : null),
|
|
35
|
-
class: "demo-tabs",
|
|
36
|
-
onTabClick: _
|
|
37
|
-
}, {
|
|
38
|
-
default: S(() => [
|
|
39
|
-
(a(!0), u(h, null, E(t(l).TAB_ENUM, (s, y) => (a(), d(b, {
|
|
40
|
-
key: y,
|
|
41
|
-
label: s.value,
|
|
42
|
-
name: s.key,
|
|
43
|
-
disabled: !t(n).spuId
|
|
44
|
-
}, null, 8, ["label", "name", "disabled"]))), 128)),
|
|
45
|
-
(a(), d(F(t(i)), {
|
|
46
|
-
key: t(n).spuId,
|
|
47
|
-
"goods-spu-model": t(n),
|
|
48
|
-
onSubmit: f
|
|
49
|
-
}, null, 40, ["goods-spu-model"]))
|
|
50
|
-
]),
|
|
51
|
-
_: 1
|
|
52
|
-
}, 8, ["modelValue"])
|
|
53
|
-
]);
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
export {
|
|
58
|
-
D as default
|
|
59
|
-
};
|