xyvcard-goods 0.0.16 → 0.0.17
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/{edit-CN1CKgoW.mjs → edit-C80KQhPy.mjs} +70 -71
- package/dist/{goodsList-C2113q3G.mjs → goodsList-0TMcPn_Q.mjs} +1 -1
- package/dist/{goodsList.vue_vue_type_script_setup_true_lang-C7lnUpja.mjs → goodsList.vue_vue_type_script_setup_true_lang-Cd7-ryQA.mjs} +4 -2
- package/dist/{index-DO2m_h7R.mjs → index-nSAowuoJ.mjs} +1 -1
- package/dist/index.mjs +2 -2
- package/dist/{skuForm-BW2yrv5Z.mjs → skuForm-H9IDa7ys.mjs} +73 -80
- package/dist/style.css +1 -1
- package/dts/views/goods/goods-spu/skuForm.vue.d.ts +0 -9
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as F, ref as y, watchEffect as M, computed as H, resolveComponent as p, openBlock as B, createElementBlock as P, Fragment as O, createVNode as e, withCtx as a, createElementVNode as V, reactive as
|
|
2
|
-
import { ElMessageBox as J, ElMessage as
|
|
3
|
-
import { fileApi as w, routerUtil as
|
|
1
|
+
import { defineComponent as F, ref as y, watchEffect as M, computed as H, resolveComponent as p, openBlock as B, createElementBlock as P, Fragment as O, createVNode as e, withCtx as a, createElementVNode as V, reactive as L, unref as t, createBlock as W, createCommentVNode as Z, createTextVNode as x } from "vue";
|
|
2
|
+
import { ElMessageBox as J, ElMessage as A } from "element-plus";
|
|
3
|
+
import { fileApi as w, routerUtil as D } from "jmash-core";
|
|
4
4
|
import { useI18n as j } from "vue-i18n";
|
|
5
5
|
import { _ as K } from "./skuTable-DbNThlFG.mjs";
|
|
6
6
|
import { useRouter as Q, useRoute as X } from "vue-router";
|
|
@@ -8,7 +8,7 @@ import { D as c, C as Y } from "./index-CmKF2zdn.mjs";
|
|
|
8
8
|
import { goodsSpuApi as $ } from "./index.mjs";
|
|
9
9
|
import { g as ee } from "./index-BHmGYIuc.mjs";
|
|
10
10
|
import { WangEditor as le } from "xyvcard-cms";
|
|
11
|
-
import oe from "./skuForm-
|
|
11
|
+
import oe from "./skuForm-H9IDa7ys.mjs";
|
|
12
12
|
const te = ["src"], se = /* @__PURE__ */ F({
|
|
13
13
|
__name: "ImageUpload",
|
|
14
14
|
props: {
|
|
@@ -27,14 +27,14 @@ const te = ["src"], se = /* @__PURE__ */ F({
|
|
|
27
27
|
},
|
|
28
28
|
emits: ["update:modelValue"],
|
|
29
29
|
setup(I, { emit: i }) {
|
|
30
|
-
const { t: h } = j(), f = y(w.uploadUrl()), T = y(w.authHeader()),
|
|
30
|
+
const { t: h } = j(), f = y(w.uploadUrl()), T = y(w.authHeader()), o = y(), v = y(!1), U = y(""), q = I, g = y([]);
|
|
31
31
|
M(() => {
|
|
32
32
|
g.value = q.modelValue.split(",").filter(Boolean);
|
|
33
33
|
});
|
|
34
34
|
const R = H(
|
|
35
35
|
() => g.value.map((u) => ({ url: w.imageUrl(u), status: "success", uid: u }))
|
|
36
36
|
), C = (u) => {
|
|
37
|
-
U.value = u.url,
|
|
37
|
+
U.value = u.url, v.value = !0;
|
|
38
38
|
}, E = (u) => {
|
|
39
39
|
const m = u.size / 1024 / 1024 < 2;
|
|
40
40
|
["image/jpeg", "image/png", "image/gif", "image/jpg"].includes(u.type) && !m && J.confirm(h("file.imageLtRequired"), h("file.warning"), {
|
|
@@ -45,17 +45,17 @@ const te = ["src"], se = /* @__PURE__ */ F({
|
|
|
45
45
|
}).catch(() => (g.value.splice(-1, 1), r(), !1));
|
|
46
46
|
}, s = (u) => {
|
|
47
47
|
g.value = g.value.filter((m) => w.imageUrl(m) !== u.url), r();
|
|
48
|
-
},
|
|
48
|
+
}, l = (u) => {
|
|
49
49
|
g.value.push(u.fileSrc), r();
|
|
50
50
|
}, d = i, r = () => {
|
|
51
51
|
d("update:modelValue", g.value.join(","));
|
|
52
52
|
};
|
|
53
53
|
return (u, m) => {
|
|
54
|
-
const S = p("Plus"),
|
|
54
|
+
const S = p("Plus"), b = p("el-icon"), k = p("el-upload"), N = p("el-dialog");
|
|
55
55
|
return B(), P(O, null, [
|
|
56
56
|
e(k, {
|
|
57
57
|
ref_key: "uploadImageRef",
|
|
58
|
-
ref:
|
|
58
|
+
ref: o,
|
|
59
59
|
"file-list": R.value,
|
|
60
60
|
"onUpdate:fileList": m[0] || (m[0] = (_) => R.value = _),
|
|
61
61
|
action: f.value,
|
|
@@ -64,11 +64,11 @@ const te = ["src"], se = /* @__PURE__ */ F({
|
|
|
64
64
|
"list-type": I.listType,
|
|
65
65
|
"on-preview": C,
|
|
66
66
|
"before-upload": E,
|
|
67
|
-
"on-success":
|
|
67
|
+
"on-success": l,
|
|
68
68
|
"on-remove": s
|
|
69
69
|
}, {
|
|
70
70
|
default: a(() => [
|
|
71
|
-
e(
|
|
71
|
+
e(b, null, {
|
|
72
72
|
default: a(() => [
|
|
73
73
|
e(S)
|
|
74
74
|
]),
|
|
@@ -78,8 +78,8 @@ const te = ["src"], se = /* @__PURE__ */ F({
|
|
|
78
78
|
_: 1
|
|
79
79
|
}, 8, ["file-list", "action", "headers", "limit", "list-type"]),
|
|
80
80
|
e(N, {
|
|
81
|
-
modelValue:
|
|
82
|
-
"onUpdate:modelValue": m[1] || (m[1] = (_) =>
|
|
81
|
+
modelValue: v.value,
|
|
82
|
+
"onUpdate:modelValue": m[1] || (m[1] = (_) => v.value = _),
|
|
83
83
|
fullscreen: !0
|
|
84
84
|
}, {
|
|
85
85
|
default: a(() => [
|
|
@@ -101,7 +101,7 @@ const te = ["src"], se = /* @__PURE__ */ F({
|
|
|
101
101
|
c.goodsCategoryListBizLayDict.values,
|
|
102
102
|
"=>goodsCategoryListBizLayDict "
|
|
103
103
|
);
|
|
104
|
-
let
|
|
104
|
+
let o = L({
|
|
105
105
|
requestId: Math.random() * 10 + "",
|
|
106
106
|
updateMask: "spuName,categoryId,spuCode,freightType,freightAmount,picUrls,shelf,saleNum,sellPoint,specType,description",
|
|
107
107
|
skuSpecValues: [],
|
|
@@ -111,15 +111,15 @@ const te = ["src"], se = /* @__PURE__ */ F({
|
|
|
111
111
|
specType: c.specTypeEnum.values[0].key
|
|
112
112
|
// shopId: Dict.shopInfoBizDict.values[0]?.key,
|
|
113
113
|
});
|
|
114
|
-
const
|
|
114
|
+
const v = (s, l, d) => {
|
|
115
115
|
var u;
|
|
116
|
-
const r = (u =
|
|
116
|
+
const r = (u = o.picUrls) == null ? void 0 : u.split(",").filter(Boolean);
|
|
117
117
|
if (r != null && r.length) {
|
|
118
118
|
if ((r == null ? void 0 : r.length) < 3)
|
|
119
119
|
return d(new Error(i("goodsSpu.imageListsError")));
|
|
120
120
|
d();
|
|
121
121
|
} else return d(new Error(i("goodsSpu.picUrlsRequired")));
|
|
122
|
-
}, U =
|
|
122
|
+
}, U = L({
|
|
123
123
|
// shopId: [
|
|
124
124
|
// {
|
|
125
125
|
// required: true,
|
|
@@ -164,7 +164,7 @@ const te = ["src"], se = /* @__PURE__ */ F({
|
|
|
164
164
|
],
|
|
165
165
|
picUrls: [
|
|
166
166
|
{
|
|
167
|
-
validator:
|
|
167
|
+
validator: v,
|
|
168
168
|
trigger: "change"
|
|
169
169
|
}
|
|
170
170
|
],
|
|
@@ -184,51 +184,51 @@ const te = ["src"], se = /* @__PURE__ */ F({
|
|
|
184
184
|
]
|
|
185
185
|
}), q = y(!1);
|
|
186
186
|
function g(s) {
|
|
187
|
-
|
|
187
|
+
o.skuSpecValues.push(s), o.skuSpecValues = o.skuSpecValues.slice(-1);
|
|
188
188
|
}
|
|
189
189
|
function R(s) {
|
|
190
|
-
s.forEach((
|
|
190
|
+
s.forEach((l) => {
|
|
191
191
|
var d;
|
|
192
|
-
|
|
193
|
-
}),
|
|
192
|
+
o.specId = (d = l.specValues) == null ? void 0 : d.map((r) => r.specId), o.skuSpecValues.push(l);
|
|
193
|
+
}), o.skuSpecValues = o.skuSpecValues.slice(-s.length);
|
|
194
194
|
}
|
|
195
195
|
f.query.spuId && $.findById({ spuId: f.query.spuId }).then(({ data: s }) => {
|
|
196
|
-
Object.assign(
|
|
197
|
-
|
|
196
|
+
Object.assign(o, s), q.value = !0, ee.findById({ spuId: f.query.spuId }).then(({ data: l }) => {
|
|
197
|
+
o.ensureIds = l.ensures;
|
|
198
198
|
});
|
|
199
199
|
});
|
|
200
200
|
const C = async () => {
|
|
201
201
|
var s;
|
|
202
|
-
await ((s = T.value) == null ? void 0 : s.validate((
|
|
203
|
-
|
|
204
|
-
d.status === 200 && (
|
|
202
|
+
await ((s = T.value) == null ? void 0 : s.validate((l) => {
|
|
203
|
+
l && (f.query.spuId ? $.update(o).then((d) => {
|
|
204
|
+
d.status === 200 && (A({
|
|
205
205
|
message: i("common.submitSuccess"),
|
|
206
206
|
type: "success"
|
|
207
|
-
}),
|
|
208
|
-
}) : $.create(
|
|
209
|
-
d.status === 200 && (
|
|
207
|
+
}), D.closeTagView(f.fullPath, h, !1));
|
|
208
|
+
}) : $.create(o).then((d) => {
|
|
209
|
+
d.status === 200 && (A({
|
|
210
210
|
message: i("common.submitSuccess"),
|
|
211
211
|
type: "success"
|
|
212
|
-
}),
|
|
212
|
+
}), D.closeTagView(f.fullPath, h, !1));
|
|
213
213
|
}));
|
|
214
214
|
}));
|
|
215
215
|
};
|
|
216
216
|
function E(s) {
|
|
217
|
-
s === "FREIGHT_FREE" && (
|
|
217
|
+
s === "FREIGHT_FREE" && (o.freightAmount = 0);
|
|
218
218
|
}
|
|
219
|
-
return (s,
|
|
220
|
-
const d = p("el-input"), r = p("el-form-item"), u = p("el-col"), m = p("el-tree-select"), S = p("jmash-enum-radio"),
|
|
219
|
+
return (s, l) => {
|
|
220
|
+
const d = p("el-input"), r = p("el-form-item"), u = p("el-col"), m = p("el-tree-select"), S = p("jmash-enum-radio"), b = p("el-input-number"), k = ae, N = p("jmash-dict-checkbox"), _ = p("el-row"), G = p("el-button"), z = p("el-form");
|
|
221
221
|
return B(), P("div", ue, [
|
|
222
222
|
V("div", re, [
|
|
223
223
|
e(z, {
|
|
224
224
|
ref_key: "goodsSpuFormRef",
|
|
225
225
|
ref: T,
|
|
226
|
-
model: t(
|
|
226
|
+
model: t(o),
|
|
227
227
|
"label-width": "120px",
|
|
228
228
|
rules: U
|
|
229
229
|
}, {
|
|
230
230
|
default: a(() => [
|
|
231
|
-
|
|
231
|
+
l[14] || (l[14] = V("div", { class: "title-content" }, "基本信息", -1)),
|
|
232
232
|
e(_, null, {
|
|
233
233
|
default: a(() => [
|
|
234
234
|
e(u, { span: 12 }, {
|
|
@@ -239,8 +239,8 @@ const te = ["src"], se = /* @__PURE__ */ F({
|
|
|
239
239
|
}, {
|
|
240
240
|
default: a(() => [
|
|
241
241
|
e(d, {
|
|
242
|
-
modelValue: t(
|
|
243
|
-
"onUpdate:modelValue":
|
|
242
|
+
modelValue: t(o).spuName,
|
|
243
|
+
"onUpdate:modelValue": l[0] || (l[0] = (n) => t(o).spuName = n),
|
|
244
244
|
placeholder: s.$t("goodsSpu.spuNameRequired"),
|
|
245
245
|
maxlength: "60",
|
|
246
246
|
"show-word-limit": "",
|
|
@@ -260,8 +260,8 @@ const te = ["src"], se = /* @__PURE__ */ F({
|
|
|
260
260
|
}, {
|
|
261
261
|
default: a(() => [
|
|
262
262
|
e(m, {
|
|
263
|
-
modelValue: t(
|
|
264
|
-
"onUpdate:modelValue":
|
|
263
|
+
modelValue: t(o).categoryId,
|
|
264
|
+
"onUpdate:modelValue": l[1] || (l[1] = (n) => t(o).categoryId = n),
|
|
265
265
|
data: t(c).goodsCategoryListBizLayDict.values,
|
|
266
266
|
multiple: "",
|
|
267
267
|
"render-after-expand": !1,
|
|
@@ -283,8 +283,8 @@ const te = ["src"], se = /* @__PURE__ */ F({
|
|
|
283
283
|
}, {
|
|
284
284
|
default: a(() => [
|
|
285
285
|
e(d, {
|
|
286
|
-
modelValue: t(
|
|
287
|
-
"onUpdate:modelValue":
|
|
286
|
+
modelValue: t(o).spuCode,
|
|
287
|
+
"onUpdate:modelValue": l[2] || (l[2] = (n) => t(o).spuCode = n),
|
|
288
288
|
placeholder: s.$t("goodsSpu.spuCodeRequired"),
|
|
289
289
|
maxlength: "15",
|
|
290
290
|
"show-word-limit": "",
|
|
@@ -304,8 +304,8 @@ const te = ["src"], se = /* @__PURE__ */ F({
|
|
|
304
304
|
}, {
|
|
305
305
|
default: a(() => [
|
|
306
306
|
e(S, {
|
|
307
|
-
modelValue: t(
|
|
308
|
-
"onUpdate:modelValue":
|
|
307
|
+
modelValue: t(o).freightType,
|
|
308
|
+
"onUpdate:modelValue": l[3] || (l[3] = (n) => t(o).freightType = n),
|
|
309
309
|
data: t(c).freightTypeEnum.values,
|
|
310
310
|
onChange: E
|
|
311
311
|
}, null, 8, ["modelValue", "data"])
|
|
@@ -322,10 +322,10 @@ const te = ["src"], se = /* @__PURE__ */ F({
|
|
|
322
322
|
prop: "freightAmount"
|
|
323
323
|
}, {
|
|
324
324
|
default: a(() => [
|
|
325
|
-
e(
|
|
326
|
-
modelValue: t(
|
|
327
|
-
"onUpdate:modelValue":
|
|
328
|
-
readonly: t(
|
|
325
|
+
e(b, {
|
|
326
|
+
modelValue: t(o).freightAmount,
|
|
327
|
+
"onUpdate:modelValue": l[4] || (l[4] = (n) => t(o).freightAmount = n),
|
|
328
|
+
readonly: t(o).freightType === "FREIGHT_FREE",
|
|
329
329
|
precision: 2,
|
|
330
330
|
step: 0.1,
|
|
331
331
|
controls: !1,
|
|
@@ -348,12 +348,12 @@ const te = ["src"], se = /* @__PURE__ */ F({
|
|
|
348
348
|
default: a(() => [
|
|
349
349
|
V("div", ne, [
|
|
350
350
|
e(k, {
|
|
351
|
-
modelValue: t(
|
|
352
|
-
"onUpdate:modelValue":
|
|
351
|
+
modelValue: t(o).picUrls,
|
|
352
|
+
"onUpdate:modelValue": l[5] || (l[5] = (n) => t(o).picUrls = n),
|
|
353
353
|
limit: 6,
|
|
354
354
|
"list-type": "picture-card"
|
|
355
355
|
}, null, 8, ["modelValue"]),
|
|
356
|
-
|
|
356
|
+
l[12] || (l[12] = V("div", { class: "red-color" }, " 推荐尺寸:100*100或同比例图片,最少上传3张 ", -1))
|
|
357
357
|
])
|
|
358
358
|
]),
|
|
359
359
|
_: 1
|
|
@@ -369,8 +369,8 @@ const te = ["src"], se = /* @__PURE__ */ F({
|
|
|
369
369
|
}, {
|
|
370
370
|
default: a(() => [
|
|
371
371
|
e(S, {
|
|
372
|
-
modelValue: t(
|
|
373
|
-
"onUpdate:modelValue":
|
|
372
|
+
modelValue: t(o).shelf,
|
|
373
|
+
"onUpdate:modelValue": l[6] || (l[6] = (n) => t(o).shelf = n),
|
|
374
374
|
data: t(c).shelfDict.values
|
|
375
375
|
}, null, 8, ["modelValue", "data"])
|
|
376
376
|
]),
|
|
@@ -386,9 +386,9 @@ const te = ["src"], se = /* @__PURE__ */ F({
|
|
|
386
386
|
prop: "saleNum"
|
|
387
387
|
}, {
|
|
388
388
|
default: a(() => [
|
|
389
|
-
e(
|
|
390
|
-
modelValue: t(
|
|
391
|
-
"onUpdate:modelValue":
|
|
389
|
+
e(b, {
|
|
390
|
+
modelValue: t(o).saleNum,
|
|
391
|
+
"onUpdate:modelValue": l[7] || (l[7] = (n) => t(o).saleNum = n),
|
|
392
392
|
placeholder: s.$t("goodsSpu.saleNumRequired"),
|
|
393
393
|
class: "w-full",
|
|
394
394
|
min: 0,
|
|
@@ -409,8 +409,8 @@ const te = ["src"], se = /* @__PURE__ */ F({
|
|
|
409
409
|
}, {
|
|
410
410
|
default: a(() => [
|
|
411
411
|
e(d, {
|
|
412
|
-
modelValue: t(
|
|
413
|
-
"onUpdate:modelValue":
|
|
412
|
+
modelValue: t(o).sellPoint,
|
|
413
|
+
"onUpdate:modelValue": l[8] || (l[8] = (n) => t(o).sellPoint = n),
|
|
414
414
|
placeholder: s.$t("goodsSpu.sellPointRequired"),
|
|
415
415
|
maxlength: "250",
|
|
416
416
|
"show-word-limit": "",
|
|
@@ -432,8 +432,8 @@ const te = ["src"], se = /* @__PURE__ */ F({
|
|
|
432
432
|
}, {
|
|
433
433
|
default: a(() => [
|
|
434
434
|
e(N, {
|
|
435
|
-
modelValue: t(
|
|
436
|
-
"onUpdate:modelValue":
|
|
435
|
+
modelValue: t(o).ensureIds,
|
|
436
|
+
"onUpdate:modelValue": l[9] || (l[9] = (n) => t(o).ensureIds = n),
|
|
437
437
|
"type-code": t(Y).DICT_GOODS_ENSURE
|
|
438
438
|
}, null, 8, ["modelValue", "type-code"])
|
|
439
439
|
]),
|
|
@@ -445,7 +445,7 @@ const te = ["src"], se = /* @__PURE__ */ F({
|
|
|
445
445
|
]),
|
|
446
446
|
_: 1
|
|
447
447
|
}),
|
|
448
|
-
|
|
448
|
+
l[15] || (l[15] = V("div", { class: "title-content" }, "商品规格", -1)),
|
|
449
449
|
e(_, null, {
|
|
450
450
|
default: a(() => [
|
|
451
451
|
e(u, { span: 24 }, {
|
|
@@ -456,8 +456,8 @@ const te = ["src"], se = /* @__PURE__ */ F({
|
|
|
456
456
|
}, {
|
|
457
457
|
default: a(() => [
|
|
458
458
|
e(S, {
|
|
459
|
-
modelValue: t(
|
|
460
|
-
"onUpdate:modelValue":
|
|
459
|
+
modelValue: t(o).specType,
|
|
460
|
+
"onUpdate:modelValue": l[10] || (l[10] = (n) => t(o).specType = n),
|
|
461
461
|
data: t(c).specTypeEnum.values
|
|
462
462
|
}, null, 8, ["modelValue", "data"])
|
|
463
463
|
]),
|
|
@@ -468,16 +468,15 @@ const te = ["src"], se = /* @__PURE__ */ F({
|
|
|
468
468
|
}),
|
|
469
469
|
!t(f).query.spuId || q.value ? (B(), W(oe, {
|
|
470
470
|
key: 0,
|
|
471
|
-
"spec-type": t(
|
|
472
|
-
form: t(
|
|
473
|
-
isDisabled: !t(l).shopId,
|
|
471
|
+
"spec-type": t(o).specType,
|
|
472
|
+
form: t(o),
|
|
474
473
|
onGetGoodsSku: g,
|
|
475
474
|
onGetFormData: R
|
|
476
|
-
}, null, 8, ["spec-type", "form"
|
|
475
|
+
}, null, 8, ["spec-type", "form"])) : Z("", !0)
|
|
477
476
|
]),
|
|
478
477
|
_: 1
|
|
479
478
|
}),
|
|
480
|
-
|
|
479
|
+
l[16] || (l[16] = V("div", { class: "title-content" }, "商品详情", -1)),
|
|
481
480
|
e(_, null, {
|
|
482
481
|
default: a(() => [
|
|
483
482
|
e(u, { span: 24 }, {
|
|
@@ -488,8 +487,8 @@ const te = ["src"], se = /* @__PURE__ */ F({
|
|
|
488
487
|
}, {
|
|
489
488
|
default: a(() => [
|
|
490
489
|
e(t(le), {
|
|
491
|
-
modelValue: t(
|
|
492
|
-
"onUpdate:modelValue":
|
|
490
|
+
modelValue: t(o).description,
|
|
491
|
+
"onUpdate:modelValue": l[11] || (l[11] = (n) => t(o).description = n),
|
|
493
492
|
style: { width: "100%" }
|
|
494
493
|
}, null, 8, ["modelValue"])
|
|
495
494
|
]),
|
|
@@ -504,7 +503,7 @@ const te = ["src"], se = /* @__PURE__ */ F({
|
|
|
504
503
|
type: "primary",
|
|
505
504
|
onClick: C
|
|
506
505
|
}, {
|
|
507
|
-
default: a(() =>
|
|
506
|
+
default: a(() => l[13] || (l[13] = [
|
|
508
507
|
x("保存")
|
|
509
508
|
])),
|
|
510
509
|
_: 1,
|
|
@@ -282,7 +282,7 @@ const be = { class: "app-container" }, Ce = { class: "search-container" }, Pe =
|
|
|
282
282
|
]),
|
|
283
283
|
_: 1
|
|
284
284
|
}),
|
|
285
|
-
t(L, { span:
|
|
285
|
+
t(L, { span: 12 }, {
|
|
286
286
|
default: o(() => [
|
|
287
287
|
t(S, { class: "search-btn" }, {
|
|
288
288
|
default: o(() => [
|
|
@@ -526,7 +526,9 @@ const be = { class: "app-container" }, Ce = { class: "search-container" }, Pe =
|
|
|
526
526
|
onSortChange: ae
|
|
527
527
|
}, {
|
|
528
528
|
categoryId: o((e) => [
|
|
529
|
-
b("span", null, u(s(T).goodsCategoryListBizLayDict.getValue(
|
|
529
|
+
b("span", null, u(s(T).goodsCategoryListBizLayDict.getValue(
|
|
530
|
+
e.data.row.categoryId
|
|
531
|
+
)), 1)
|
|
530
532
|
]),
|
|
531
533
|
picUrls: o((e) => [
|
|
532
534
|
b("span", null, [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as b, ref as S, onMounted as A, resolveComponent as p, openBlock as t, createElementBlock as c, createVNode as V, withCtx as m, Fragment as C, renderList as P, unref as h, createBlock as i, createCommentVNode as y } from "vue";
|
|
2
2
|
import { useRoute as L } from "vue-router";
|
|
3
3
|
import { D as _, C as l } from "./index-CmKF2zdn.mjs";
|
|
4
|
-
import { _ as k } from "./goodsList.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { _ as k } from "./goodsList.vue_vue_type_script_setup_true_lang-Cd7-ryQA.mjs";
|
|
5
5
|
const N = { class: "app-container" }, x = /* @__PURE__ */ b({
|
|
6
6
|
__name: "index",
|
|
7
7
|
setup(g) {
|
package/dist/index.mjs
CHANGED
|
@@ -62,7 +62,7 @@ function Ps(e) {
|
|
|
62
62
|
let s = e.global.getLocaleMessage("en");
|
|
63
63
|
s = Tt(s, xs), e.global.setLocaleMessage("zh-cn", t), e.global.setLocaleMessage("en", s);
|
|
64
64
|
}
|
|
65
|
-
const Ns = () => import("./edit-
|
|
65
|
+
const Ns = () => import("./edit-C80KQhPy.mjs"), Ws = () => import("./info-D6MWRZ1y.mjs"), Fs = [
|
|
66
66
|
{
|
|
67
67
|
path: "/rawgoods",
|
|
68
68
|
component: Ys,
|
|
@@ -2806,7 +2806,7 @@ class Ii {
|
|
|
2806
2806
|
});
|
|
2807
2807
|
}
|
|
2808
2808
|
}
|
|
2809
|
-
const Hi = new Ii(), Ui = /* @__PURE__ */ Object.assign({ "./views/goods/goods-category/edit.vue": () => import("./edit-E57LIt5x.mjs"), "./views/goods/goods-category/index.vue": () => import("./index-CnyW3rxw.mjs"), "./views/goods/goods-spu/edit.vue": () => import("./edit-
|
|
2809
|
+
const Hi = new Ii(), Ui = /* @__PURE__ */ Object.assign({ "./views/goods/goods-category/edit.vue": () => import("./edit-E57LIt5x.mjs"), "./views/goods/goods-category/index.vue": () => import("./index-CnyW3rxw.mjs"), "./views/goods/goods-spu/edit.vue": () => import("./edit-C80KQhPy.mjs"), "./views/goods/goods-spu/goodsList.vue": () => import("./goodsList-0TMcPn_Q.mjs"), "./views/goods/goods-spu/index.vue": () => import("./index-nSAowuoJ.mjs"), "./views/goods/goods-spu/info.vue": () => import("./info-D6MWRZ1y.mjs"), "./views/goods/goods-spu/skuForm.vue": () => import("./skuForm-H9IDa7ys.mjs"), "./views/goods/goods-spu/skuTable.vue": () => import("./skuTable-DbNThlFG.mjs").then((e) => e.a) }), Ei = {
|
|
2810
2810
|
install(e) {
|
|
2811
2811
|
Os(Ui, 7), Ps(bs), Ts(Fs), e.use(Ci);
|
|
2812
2812
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as te, ref as
|
|
2
|
-
import { C as E, D as ue, S as
|
|
3
|
-
import { s as
|
|
1
|
+
import { defineComponent as te, ref as k, computed as se, watch as I, resolveComponent as i, openBlock as m, createElementBlock as g, Fragment as S, unref as M, createVNode as o, withCtx as a, createCommentVNode as D, renderList as y, createElementVNode as h, toDisplayString as O, createTextVNode as w, createBlock as P } from "vue";
|
|
2
|
+
import { C as E, D as ue, S as Y, a as ne } from "./index-CmKF2zdn.mjs";
|
|
3
|
+
import { s as re, _ as de } from "./skuTable-DbNThlFG.mjs";
|
|
4
4
|
const pe = { key: 0 }, ce = {
|
|
5
5
|
key: 1,
|
|
6
6
|
class: "w-full"
|
|
@@ -16,16 +16,12 @@ const pe = { key: 0 }, ce = {
|
|
|
16
16
|
type: Object,
|
|
17
17
|
default: () => {
|
|
18
18
|
}
|
|
19
|
-
},
|
|
20
|
-
isDisabled: {
|
|
21
|
-
type: Boolean,
|
|
22
|
-
default: !0
|
|
23
19
|
}
|
|
24
20
|
},
|
|
25
21
|
emits: ["getGoodsSku", "getFormData"],
|
|
26
|
-
setup(
|
|
27
|
-
var T, q
|
|
28
|
-
const
|
|
22
|
+
setup(H, { emit: J }) {
|
|
23
|
+
var F, T, q;
|
|
24
|
+
const d = k({
|
|
29
25
|
picUrl: "",
|
|
30
26
|
salePrice: 0,
|
|
31
27
|
marketPrice: 0,
|
|
@@ -34,41 +30,41 @@ const pe = { key: 0 }, ce = {
|
|
|
34
30
|
volume: 0,
|
|
35
31
|
stock: 0,
|
|
36
32
|
skuCode: ""
|
|
37
|
-
}), t =
|
|
33
|
+
}), t = k([]), C = k(), V = k([]), b = k([]), L = k([]), v = H, $ = J, U = se(() => t.value.filter(
|
|
38
34
|
(e) => e.name && e.specValueList != null && e.specValueList.length
|
|
39
35
|
));
|
|
40
|
-
|
|
36
|
+
I(
|
|
41
37
|
v.form,
|
|
42
38
|
(e) => e,
|
|
43
39
|
{
|
|
44
40
|
deep: !0,
|
|
45
41
|
immediate: !0
|
|
46
42
|
}
|
|
47
|
-
),
|
|
48
|
-
|
|
43
|
+
), I(
|
|
44
|
+
d,
|
|
49
45
|
(e) => {
|
|
50
|
-
|
|
46
|
+
$("getGoodsSku", e);
|
|
51
47
|
},
|
|
52
48
|
{
|
|
53
49
|
deep: !0,
|
|
54
50
|
immediate: !0
|
|
55
51
|
}
|
|
56
|
-
),
|
|
57
|
-
|
|
52
|
+
), I(
|
|
53
|
+
U,
|
|
58
54
|
(e) => e,
|
|
59
55
|
{
|
|
60
56
|
deep: !0,
|
|
61
57
|
immediate: !0
|
|
62
58
|
}
|
|
63
|
-
), v.form.spuId && (v.form.specType === E.SPEC_TYPE.UNIFIED_SPEC ?
|
|
59
|
+
), v.form.spuId && (v.form.specType === E.SPEC_TYPE.UNIFIED_SPEC ? d.value = (F = v.form.skuList) == null ? void 0 : F.results[0] : (L.value = (T = v.form.skuList) == null ? void 0 : T.results, (q = v.form.skuList) == null || q.results.forEach((e) => {
|
|
64
60
|
var l;
|
|
65
61
|
(l = e.specValues) == null || l.map((s) => {
|
|
66
62
|
ue.specInfoDict.useValues().then((n) => {
|
|
67
|
-
const
|
|
68
|
-
if (
|
|
63
|
+
const r = n.find((f) => s.specId === f.key);
|
|
64
|
+
if (r) {
|
|
69
65
|
let f = {
|
|
70
66
|
id: s.specId,
|
|
71
|
-
name:
|
|
67
|
+
name: r.value,
|
|
72
68
|
specValueList: []
|
|
73
69
|
};
|
|
74
70
|
t.value.push(f);
|
|
@@ -82,7 +78,7 @@ const pe = { key: 0 }, ce = {
|
|
|
82
78
|
})));
|
|
83
79
|
function K(e) {
|
|
84
80
|
t.value.forEach((l) => {
|
|
85
|
-
V.value = new
|
|
81
|
+
V.value = new Y({ specId: l.id }), V.value.useValues().then((s) => {
|
|
86
82
|
s.forEach((n) => {
|
|
87
83
|
if (n.key === e) {
|
|
88
84
|
let p = {
|
|
@@ -91,9 +87,9 @@ const pe = { key: 0 }, ce = {
|
|
|
91
87
|
};
|
|
92
88
|
l.specValueList.push(p);
|
|
93
89
|
}
|
|
94
|
-
const
|
|
90
|
+
const r = /* @__PURE__ */ new Map();
|
|
95
91
|
l.specValueList = l.specValueList.filter(
|
|
96
|
-
(p) => !
|
|
92
|
+
(p) => !r.has(p.id) && r.set(p.id, p)
|
|
97
93
|
);
|
|
98
94
|
});
|
|
99
95
|
});
|
|
@@ -106,7 +102,7 @@ const pe = { key: 0 }, ce = {
|
|
|
106
102
|
t.value[e].specValueList.splice(l, 1);
|
|
107
103
|
}
|
|
108
104
|
function X() {
|
|
109
|
-
|
|
105
|
+
b.value = new ne({ shopId: v.form.shopId }), b.value.useValues().then((e) => {
|
|
110
106
|
e.forEach((l) => {
|
|
111
107
|
Array.isArray(t.value) && t.value.length > 0 && t.value.forEach((s) => {
|
|
112
108
|
l.key === s.id && (l.disabled = !0);
|
|
@@ -115,7 +111,7 @@ const pe = { key: 0 }, ce = {
|
|
|
115
111
|
});
|
|
116
112
|
}
|
|
117
113
|
function Z(e) {
|
|
118
|
-
let l =
|
|
114
|
+
let l = b.value.values.filter((n) => n.key === e), s = {
|
|
119
115
|
id: l[0].key,
|
|
120
116
|
name: l[0].value,
|
|
121
117
|
specValueList: []
|
|
@@ -123,7 +119,7 @@ const pe = { key: 0 }, ce = {
|
|
|
123
119
|
t.value.push(s), C.value = "";
|
|
124
120
|
}
|
|
125
121
|
function z(e) {
|
|
126
|
-
V.value = new
|
|
122
|
+
V.value = new Y({
|
|
127
123
|
specId: t.value[e].id
|
|
128
124
|
}), V.value.useValues().then((l) => {
|
|
129
125
|
l.map((s) => {
|
|
@@ -134,23 +130,23 @@ const pe = { key: 0 }, ce = {
|
|
|
134
130
|
});
|
|
135
131
|
}
|
|
136
132
|
function x(e, l) {
|
|
137
|
-
var
|
|
133
|
+
var r, p;
|
|
138
134
|
let s = V.value.values.filter((f) => f.key === e), n = {
|
|
139
135
|
id: s[0].key,
|
|
140
136
|
name: s[0].value
|
|
141
137
|
};
|
|
142
|
-
(p = (
|
|
138
|
+
(p = (r = t.value[l]) == null ? void 0 : r.specValueList) == null || p.push(n), t.value[l].specValueId = "";
|
|
143
139
|
}
|
|
144
140
|
function ee(e) {
|
|
145
|
-
|
|
141
|
+
$("getFormData", e);
|
|
146
142
|
}
|
|
147
143
|
return (e, l) => {
|
|
148
|
-
const s = i("el-input-number"), n = i("el-form-item"),
|
|
149
|
-
return m(), g(
|
|
150
|
-
v.specType ==
|
|
144
|
+
const s = i("el-input-number"), n = i("el-form-item"), r = 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");
|
|
145
|
+
return m(), g(S, null, [
|
|
146
|
+
v.specType == M(E).SPEC_TYPE.UNIFIED_SPEC ? (m(), g("div", pe, [
|
|
151
147
|
o(p, null, {
|
|
152
148
|
default: a(() => [
|
|
153
|
-
o(
|
|
149
|
+
o(r, { span: 8 }, {
|
|
154
150
|
default: a(() => [
|
|
155
151
|
o(n, {
|
|
156
152
|
label: e.$t("goodsSpu.salePrice"),
|
|
@@ -158,8 +154,8 @@ const pe = { key: 0 }, ce = {
|
|
|
158
154
|
}, {
|
|
159
155
|
default: a(() => [
|
|
160
156
|
o(s, {
|
|
161
|
-
modelValue:
|
|
162
|
-
"onUpdate:modelValue": l[0] || (l[0] = (u) =>
|
|
157
|
+
modelValue: d.value.salePrice,
|
|
158
|
+
"onUpdate:modelValue": l[0] || (l[0] = (u) => d.value.salePrice = u),
|
|
163
159
|
precision: 2,
|
|
164
160
|
step: 0,
|
|
165
161
|
min: 0.01,
|
|
@@ -173,7 +169,7 @@ const pe = { key: 0 }, ce = {
|
|
|
173
169
|
]),
|
|
174
170
|
_: 1
|
|
175
171
|
}),
|
|
176
|
-
o(
|
|
172
|
+
o(r, { span: 8 }, {
|
|
177
173
|
default: a(() => [
|
|
178
174
|
o(n, {
|
|
179
175
|
label: e.$t("goodsSpu.marketPrice"),
|
|
@@ -181,8 +177,8 @@ const pe = { key: 0 }, ce = {
|
|
|
181
177
|
}, {
|
|
182
178
|
default: a(() => [
|
|
183
179
|
o(s, {
|
|
184
|
-
modelValue:
|
|
185
|
-
"onUpdate:modelValue": l[1] || (l[1] = (u) =>
|
|
180
|
+
modelValue: d.value.marketPrice,
|
|
181
|
+
"onUpdate:modelValue": l[1] || (l[1] = (u) => d.value.marketPrice = u),
|
|
186
182
|
precision: 2,
|
|
187
183
|
step: 0,
|
|
188
184
|
min: 0.01,
|
|
@@ -196,7 +192,7 @@ const pe = { key: 0 }, ce = {
|
|
|
196
192
|
]),
|
|
197
193
|
_: 1
|
|
198
194
|
}),
|
|
199
|
-
o(
|
|
195
|
+
o(r, { span: 8 }, {
|
|
200
196
|
default: a(() => [
|
|
201
197
|
o(n, {
|
|
202
198
|
label: e.$t("goodsSpu.costPrice"),
|
|
@@ -204,8 +200,8 @@ const pe = { key: 0 }, ce = {
|
|
|
204
200
|
}, {
|
|
205
201
|
default: a(() => [
|
|
206
202
|
o(s, {
|
|
207
|
-
modelValue:
|
|
208
|
-
"onUpdate:modelValue": l[2] || (l[2] = (u) =>
|
|
203
|
+
modelValue: d.value.costPrice,
|
|
204
|
+
"onUpdate:modelValue": l[2] || (l[2] = (u) => d.value.costPrice = u),
|
|
209
205
|
precision: 2,
|
|
210
206
|
step: 0,
|
|
211
207
|
min: 0.01,
|
|
@@ -219,7 +215,7 @@ const pe = { key: 0 }, ce = {
|
|
|
219
215
|
]),
|
|
220
216
|
_: 1
|
|
221
217
|
}),
|
|
222
|
-
o(
|
|
218
|
+
o(r, { span: 8 }, {
|
|
223
219
|
default: a(() => [
|
|
224
220
|
o(n, {
|
|
225
221
|
label: e.$t("goodsSpu.stock"),
|
|
@@ -227,8 +223,8 @@ const pe = { key: 0 }, ce = {
|
|
|
227
223
|
}, {
|
|
228
224
|
default: a(() => [
|
|
229
225
|
o(s, {
|
|
230
|
-
modelValue:
|
|
231
|
-
"onUpdate:modelValue": l[3] || (l[3] = (u) =>
|
|
226
|
+
modelValue: d.value.stock,
|
|
227
|
+
"onUpdate:modelValue": l[3] || (l[3] = (u) => d.value.stock = u),
|
|
232
228
|
placeholder: e.$t("goodsSpu.stockRequired"),
|
|
233
229
|
class: "w-full",
|
|
234
230
|
controls: !1,
|
|
@@ -241,7 +237,7 @@ const pe = { key: 0 }, ce = {
|
|
|
241
237
|
]),
|
|
242
238
|
_: 1
|
|
243
239
|
}),
|
|
244
|
-
o(
|
|
240
|
+
o(r, { span: 8 }, {
|
|
245
241
|
default: a(() => [
|
|
246
242
|
o(n, {
|
|
247
243
|
label: e.$t("goodsSpu.weight"),
|
|
@@ -249,8 +245,8 @@ const pe = { key: 0 }, ce = {
|
|
|
249
245
|
}, {
|
|
250
246
|
default: a(() => [
|
|
251
247
|
o(s, {
|
|
252
|
-
modelValue:
|
|
253
|
-
"onUpdate:modelValue": l[4] || (l[4] = (u) =>
|
|
248
|
+
modelValue: d.value.weight,
|
|
249
|
+
"onUpdate:modelValue": l[4] || (l[4] = (u) => d.value.weight = u),
|
|
254
250
|
placeholder: e.$t("goodsSpu.weightRequired"),
|
|
255
251
|
class: "w-full",
|
|
256
252
|
controls: !1,
|
|
@@ -262,7 +258,7 @@ const pe = { key: 0 }, ce = {
|
|
|
262
258
|
]),
|
|
263
259
|
_: 1
|
|
264
260
|
}),
|
|
265
|
-
o(
|
|
261
|
+
o(r, { span: 8 }, {
|
|
266
262
|
default: a(() => [
|
|
267
263
|
o(n, {
|
|
268
264
|
label: e.$t("goodsSpu.volume"),
|
|
@@ -270,8 +266,8 @@ const pe = { key: 0 }, ce = {
|
|
|
270
266
|
}, {
|
|
271
267
|
default: a(() => [
|
|
272
268
|
o(s, {
|
|
273
|
-
modelValue:
|
|
274
|
-
"onUpdate:modelValue": l[5] || (l[5] = (u) =>
|
|
269
|
+
modelValue: d.value.volume,
|
|
270
|
+
"onUpdate:modelValue": l[5] || (l[5] = (u) => d.value.volume = u),
|
|
275
271
|
controls: !1,
|
|
276
272
|
placeholder: e.$t("goodsSpu.volumeRequired"),
|
|
277
273
|
class: "w-full",
|
|
@@ -286,19 +282,19 @@ const pe = { key: 0 }, ce = {
|
|
|
286
282
|
]),
|
|
287
283
|
_: 1
|
|
288
284
|
})
|
|
289
|
-
])) :
|
|
290
|
-
v.specType ==
|
|
291
|
-
o(
|
|
285
|
+
])) : D("", !0),
|
|
286
|
+
v.specType == M(E).SPEC_TYPE.MULTI_SPEC ? (m(), g("div", ce, [
|
|
287
|
+
o(G, { type: "border-card" }, {
|
|
292
288
|
default: a(() => [
|
|
293
|
-
o(
|
|
289
|
+
o(B, { label: "商品规格" }, {
|
|
294
290
|
default: a(() => [
|
|
295
|
-
(m(!0), g(
|
|
291
|
+
(m(!0), g(S, null, y(t.value, (u, _) => (m(), g("div", {
|
|
296
292
|
class: "goods-spec",
|
|
297
293
|
key: _
|
|
298
294
|
}, [
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
295
|
+
h("div", ie, [
|
|
296
|
+
h("span", null, O(u.name), 1),
|
|
297
|
+
h("span", {
|
|
302
298
|
class: "goods-delete",
|
|
303
299
|
onClick: (c) => Q(_)
|
|
304
300
|
}, [
|
|
@@ -311,9 +307,9 @@ const pe = { key: 0 }, ce = {
|
|
|
311
307
|
l[7] || (l[7] = w("移除 "))
|
|
312
308
|
], 8, me)
|
|
313
309
|
]),
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
(m(!0), g(
|
|
310
|
+
h("div", fe, [
|
|
311
|
+
h("div", ve, [
|
|
312
|
+
(m(!0), g(S, null, y(t.value[_].specValueList, (c, ae) => (m(), P(oe, {
|
|
317
313
|
key: c,
|
|
318
314
|
closable: "",
|
|
319
315
|
type: "info",
|
|
@@ -321,7 +317,7 @@ const pe = { key: 0 }, ce = {
|
|
|
321
317
|
onClose: (ge) => W(_, ae)
|
|
322
318
|
}, {
|
|
323
319
|
default: a(() => [
|
|
324
|
-
w(
|
|
320
|
+
w(O(c.name), 1)
|
|
325
321
|
]),
|
|
326
322
|
_: 2
|
|
327
323
|
}, 1032, ["onClose"]))), 128))
|
|
@@ -333,7 +329,7 @@ const pe = { key: 0 }, ce = {
|
|
|
333
329
|
onShow: (c) => z(_)
|
|
334
330
|
}, {
|
|
335
331
|
reference: a(() => [
|
|
336
|
-
o(
|
|
332
|
+
o(R, { class: "m-2" }, {
|
|
337
333
|
default: a(() => l[8] || (l[8] = [
|
|
338
334
|
w("添加规格值")
|
|
339
335
|
])),
|
|
@@ -349,7 +345,7 @@ const pe = { key: 0 }, ce = {
|
|
|
349
345
|
onChange: (c) => x(c, _)
|
|
350
346
|
}, {
|
|
351
347
|
default: a(() => [
|
|
352
|
-
(m(!0), g(
|
|
348
|
+
(m(!0), g(S, null, y(V.value.values, (c) => (m(), P(N, {
|
|
353
349
|
key: c.key,
|
|
354
350
|
label: c.value,
|
|
355
351
|
value: c.key,
|
|
@@ -370,16 +366,13 @@ const pe = { key: 0 }, ce = {
|
|
|
370
366
|
onShow: X
|
|
371
367
|
}, {
|
|
372
368
|
reference: a(() => [
|
|
373
|
-
o(
|
|
374
|
-
class: "m-2",
|
|
375
|
-
disabled: L.isDisabled
|
|
376
|
-
}, {
|
|
369
|
+
o(R, { class: "m-2" }, {
|
|
377
370
|
default: a(() => l[9] || (l[9] = [
|
|
378
371
|
w("添加规格")
|
|
379
372
|
])),
|
|
380
373
|
_: 1,
|
|
381
374
|
__: [9]
|
|
382
|
-
}
|
|
375
|
+
})
|
|
383
376
|
]),
|
|
384
377
|
default: a(() => [
|
|
385
378
|
o(j, {
|
|
@@ -389,7 +382,7 @@ const pe = { key: 0 }, ce = {
|
|
|
389
382
|
onChange: Z
|
|
390
383
|
}, {
|
|
391
384
|
default: a(() => [
|
|
392
|
-
(m(!0), g(
|
|
385
|
+
(m(!0), g(S, null, y(b.value.values, (u) => (m(), P(N, {
|
|
393
386
|
key: u.key,
|
|
394
387
|
label: u.value,
|
|
395
388
|
value: u.key,
|
|
@@ -407,27 +400,27 @@ const pe = { key: 0 }, ce = {
|
|
|
407
400
|
]),
|
|
408
401
|
_: 1
|
|
409
402
|
}),
|
|
410
|
-
o(
|
|
403
|
+
o(G, { type: "border-card" }, {
|
|
411
404
|
default: a(() => [
|
|
412
|
-
o(
|
|
405
|
+
o(B, { label: "规格售价与库存" }, {
|
|
413
406
|
default: a(() => [
|
|
414
|
-
t.value.length > 0 ? (m(), P(
|
|
407
|
+
t.value.length > 0 ? (m(), P(re, {
|
|
415
408
|
key: 0,
|
|
416
|
-
specData:
|
|
417
|
-
goodsSku:
|
|
409
|
+
specData: U.value,
|
|
410
|
+
goodsSku: L.value,
|
|
418
411
|
onGetFormData: ee
|
|
419
|
-
}, null, 8, ["specData", "goodsSku"])) :
|
|
412
|
+
}, null, 8, ["specData", "goodsSku"])) : D("", !0)
|
|
420
413
|
]),
|
|
421
414
|
_: 1
|
|
422
415
|
})
|
|
423
416
|
]),
|
|
424
417
|
_: 1
|
|
425
418
|
})
|
|
426
|
-
])) :
|
|
419
|
+
])) : D("", !0)
|
|
427
420
|
], 64);
|
|
428
421
|
};
|
|
429
422
|
}
|
|
430
|
-
}),
|
|
423
|
+
}), he = /* @__PURE__ */ de(_e, [["__scopeId", "data-v-859a9f0c"]]);
|
|
431
424
|
export {
|
|
432
|
-
|
|
425
|
+
he as default
|
|
433
426
|
};
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.w-full{width:100%!important}.right-dis{margin-right:10px}.top-dis{margin-top:25px}.cell-item{display:flex;align-items:center;justify-content:flex-end}.el-descriptions__label{width:15%;text-align:right}.el-descriptions__content{width:35%}.title-set[data-v-84542ec3]{display:flex;align-items:center;font-size:14px;padding:0 0 10px}.goods-spec[data-v-
|
|
1
|
+
.w-full{width:100%!important}.right-dis{margin-right:10px}.top-dis{margin-top:25px}.cell-item{display:flex;align-items:center;justify-content:flex-end}.el-descriptions__label{width:15%;text-align:right}.el-descriptions__content{width:35%}.title-set[data-v-84542ec3]{display:flex;align-items:center;font-size:14px;padding:0 0 10px}.goods-spec[data-v-859a9f0c]{border:1px solid #ccc;margin-bottom:5px}.goods-title[data-v-859a9f0c]{display:flex;align-items:center;border-bottom:1px solid #ccc;padding:10px 20px}.goods-title .goods-delete[data-v-859a9f0c]{display:flex;align-items:center;margin-left:auto;color:red;font-size:14px}.goods-content[data-v-859a9f0c]{padding:10px 20px}.goods-tag[data-v-859a9f0c]{margin-bottom:10px}[data-v-f10f6f7e] .el-upload--picture-card{width:80px;height:80px;border-radius:0}[data-v-f10f6f7e] .el-upload-list--picture-card .el-upload-list__item{width:80px;height:80px}
|
|
@@ -7,10 +7,6 @@ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropType
|
|
|
7
7
|
type: ObjectConstructor;
|
|
8
8
|
default: () => void;
|
|
9
9
|
};
|
|
10
|
-
isDisabled: {
|
|
11
|
-
type: BooleanConstructor;
|
|
12
|
-
default: boolean;
|
|
13
|
-
};
|
|
14
10
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
11
|
getGoodsSku: (...args: any[]) => void;
|
|
16
12
|
getFormData: (...args: any[]) => void;
|
|
@@ -23,16 +19,11 @@ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropType
|
|
|
23
19
|
type: ObjectConstructor;
|
|
24
20
|
default: () => void;
|
|
25
21
|
};
|
|
26
|
-
isDisabled: {
|
|
27
|
-
type: BooleanConstructor;
|
|
28
|
-
default: boolean;
|
|
29
|
-
};
|
|
30
22
|
}>> & Readonly<{
|
|
31
23
|
onGetGoodsSku?: ((...args: any[]) => any) | undefined;
|
|
32
24
|
onGetFormData?: ((...args: any[]) => any) | undefined;
|
|
33
25
|
}>, {
|
|
34
26
|
form: Record<string, any>;
|
|
35
27
|
specType: string;
|
|
36
|
-
isDisabled: boolean;
|
|
37
28
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
38
29
|
export default _default;
|