xyvcard-goods 0.0.19 → 0.0.20
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-Bb2XgE0h.mjs +590 -0
- package/dist/edit-BcokSKfN.mjs +183 -0
- package/dist/{edit-E57LIt5x.mjs → edit-Cj13W2TC.mjs} +1 -1
- package/dist/edit-DxnsmaXV.mjs +186 -0
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BHplO2tN.mjs → edit.vue_vue_type_script_setup_true_lang-D2w1583D.mjs} +1 -1
- package/dist/{goodsList-0TMcPn_Q.mjs → goodsList-DOXK1EwK.mjs} +1 -1
- package/dist/goodsList.vue_vue_type_script_setup_true_lang-COJVlEjX.mjs +713 -0
- package/dist/index-BmOxm1P2.mjs +324 -0
- package/dist/index-C3FT_Oe7.mjs +318 -0
- package/dist/{index-CnyW3rxw.mjs → index-CGAoZY87.mjs} +2 -2
- package/dist/index-D3w33Nba.mjs +301 -0
- package/dist/{index-nSAowuoJ.mjs → index-DAJiqOCh.mjs} +2 -2
- package/dist/index-jTDhsbYM.mjs +141 -0
- package/dist/index-r0u-27m7.mjs +141 -0
- package/dist/index.mjs +163 -149
- package/dist/info-DImlMNq0.mjs +365 -0
- package/dist/{skuForm-DyYIl6H4.mjs → skuForm-Bt3arW0s.mjs} +154 -106
- package/dist/skuTable-Ahc3WlPp.mjs +639 -0
- package/dist/style.css +1 -1
- package/dts/api/dict.d.ts +6 -0
- package/dts/api/goods-brand-info/types.d.ts +4 -1
- package/dts/api/goods-label-info/types.d.ts +3 -0
- package/dts/api/goods-sku/types.d.ts +2 -0
- package/dts/api/goods-spu/types.d.ts +12 -0
- package/dts/api/index.d.ts +3 -1
- package/dts/lang/goods/zh-cn.d.ts +18 -4
- package/package.json +2 -2
- package/dist/edit-B3Ripwo1.mjs +0 -437
- package/dist/edit-DEdWUJfi.mjs +0 -529
- package/dist/edit-SYuN1_Fg.mjs +0 -465
- package/dist/goodsList.vue_vue_type_script_setup_true_lang-Cd7-ryQA.mjs +0 -626
- package/dist/index-C0nlTW8F.mjs +0 -355
- package/dist/index-CmKF2zdn.mjs +0 -272
- package/dist/index-DH3UH0QC.mjs +0 -345
- package/dist/info-5OkZzwEV.mjs +0 -312
- package/dist/skuTable-B8v1DVIO.mjs +0 -543
package/dist/index-DH3UH0QC.mjs
DELETED
|
@@ -1,345 +0,0 @@
|
|
|
1
|
-
import { defineComponent as Z, ref as I, reactive as B, resolveComponent as r, resolveDirective as ee, openBlock as i, createElementBlock as $, createElementVNode as u, createVNode as d, withCtx as l, unref as a, createTextVNode as m, toDisplayString as s, withDirectives as _, createBlock as b, isRef as E, createCommentVNode as L } from "vue";
|
|
2
|
-
import { useTableHooks as oe } from "jmash-core";
|
|
3
|
-
import { useI18n as le } from "vue-i18n";
|
|
4
|
-
import { g as te, a as ae } from "./edit-B3Ripwo1.mjs";
|
|
5
|
-
const ne = { class: "app-container" }, se = { class: "search-container" }, de = ["onClick"], re = ["onClick"], fe = /* @__PURE__ */ Z({
|
|
6
|
-
__name: "index",
|
|
7
|
-
setup(ie) {
|
|
8
|
-
const { t: f } = le(), v = I({}), {
|
|
9
|
-
tableHooks: n,
|
|
10
|
-
multipleTableRef: N,
|
|
11
|
-
queryFormRef: S,
|
|
12
|
-
listLoading: T,
|
|
13
|
-
tableData: U,
|
|
14
|
-
total: k
|
|
15
|
-
} = oe(f, te, v);
|
|
16
|
-
let C = I([
|
|
17
|
-
{
|
|
18
|
-
label: "goodsLabelInfo.tenantId",
|
|
19
|
-
prop: "tenantId",
|
|
20
|
-
width: "150",
|
|
21
|
-
sortable: "custom",
|
|
22
|
-
isColumn: !0
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
label: "goodsLabelInfo.labelId",
|
|
26
|
-
prop: "labelId",
|
|
27
|
-
width: "150",
|
|
28
|
-
sortable: "custom",
|
|
29
|
-
isColumn: !0
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
label: "goodsLabelInfo.labelName",
|
|
33
|
-
prop: "labelName",
|
|
34
|
-
width: "150",
|
|
35
|
-
sortable: "custom",
|
|
36
|
-
isColumn: !0
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
label: "goodsLabelInfo.labelCode",
|
|
40
|
-
prop: "labelCode",
|
|
41
|
-
width: "150",
|
|
42
|
-
sortable: "custom",
|
|
43
|
-
isColumn: !0
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
label: "goodsLabelInfo.orderBy",
|
|
47
|
-
prop: "orderBy",
|
|
48
|
-
width: "150",
|
|
49
|
-
sortable: "custom",
|
|
50
|
-
isColumn: !0
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
label: "goodsLabelInfo.status",
|
|
54
|
-
prop: "status",
|
|
55
|
-
width: "150",
|
|
56
|
-
sortable: "custom",
|
|
57
|
-
isColumn: !0
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
label: "goodsLabelInfo.note",
|
|
61
|
-
prop: "note",
|
|
62
|
-
width: "150",
|
|
63
|
-
sortable: "custom",
|
|
64
|
-
isColumn: !0
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
label: "common.operate",
|
|
68
|
-
width: "200",
|
|
69
|
-
slotName: "operation",
|
|
70
|
-
columnType: "slot",
|
|
71
|
-
fixed: "right",
|
|
72
|
-
isColumn: !0
|
|
73
|
-
}
|
|
74
|
-
]);
|
|
75
|
-
const p = I({
|
|
76
|
-
title: f("common.edit"),
|
|
77
|
-
visible: !1
|
|
78
|
-
}), y = I(!1);
|
|
79
|
-
let h = B({});
|
|
80
|
-
function j() {
|
|
81
|
-
h = B({}), p.value.title = f("common.add"), p.value.visible = !0;
|
|
82
|
-
}
|
|
83
|
-
function D(t) {
|
|
84
|
-
h.labelId = t.labelId, p.value.title = f("common.edit"), p.value.visible = !0;
|
|
85
|
-
}
|
|
86
|
-
function P(t) {
|
|
87
|
-
n.selectionRows.value = t;
|
|
88
|
-
}
|
|
89
|
-
function z(t) {
|
|
90
|
-
n.handleSort(t.prop, t.order);
|
|
91
|
-
}
|
|
92
|
-
function q(t) {
|
|
93
|
-
t && n.getList();
|
|
94
|
-
}
|
|
95
|
-
function x() {
|
|
96
|
-
y.value = !1;
|
|
97
|
-
}
|
|
98
|
-
function M(t) {
|
|
99
|
-
t.updateMask = "", n.importExcel(t).then((o) => {
|
|
100
|
-
y.value = !1;
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
return n.getList(), (t, o) => {
|
|
104
|
-
const c = r("el-button"), A = r("el-form-item"), F = r("el-form"), V = r("el-col"), H = r("jmash-column-select"), Q = r("el-row"), K = r("Bottom"), R = r("el-icon"), O = r("Top"), G = r("el-switch"), J = r("jmash-table"), W = r("jmash-pagination"), X = r("el-card"), Y = r("jmash-import-upload"), g = ee("hasPerm");
|
|
105
|
-
return i(), $("div", ne, [
|
|
106
|
-
u("div", se, [
|
|
107
|
-
d(F, {
|
|
108
|
-
ref_key: "queryFormRef",
|
|
109
|
-
ref: S,
|
|
110
|
-
model: v.value,
|
|
111
|
-
inline: !0
|
|
112
|
-
}, {
|
|
113
|
-
default: l(() => [
|
|
114
|
-
d(A, { class: "search-btn" }, {
|
|
115
|
-
default: l(() => [
|
|
116
|
-
d(c, {
|
|
117
|
-
type: "primary",
|
|
118
|
-
onClick: o[0] || (o[0] = (e) => a(n).handleQuery())
|
|
119
|
-
}, {
|
|
120
|
-
default: l(() => [
|
|
121
|
-
m(s(t.$t("common.search")), 1)
|
|
122
|
-
]),
|
|
123
|
-
_: 1
|
|
124
|
-
}),
|
|
125
|
-
d(c, {
|
|
126
|
-
onClick: o[1] || (o[1] = (e) => a(n).resetQuery())
|
|
127
|
-
}, {
|
|
128
|
-
default: l(() => [
|
|
129
|
-
m(s(t.$t("common.reset")), 1)
|
|
130
|
-
]),
|
|
131
|
-
_: 1
|
|
132
|
-
})
|
|
133
|
-
]),
|
|
134
|
-
_: 1
|
|
135
|
-
})
|
|
136
|
-
]),
|
|
137
|
-
_: 1
|
|
138
|
-
}, 8, ["model"]),
|
|
139
|
-
o[13] || (o[13] = u("div", { class: "clear" }, null, -1))
|
|
140
|
-
]),
|
|
141
|
-
d(X, {
|
|
142
|
-
shadow: "never",
|
|
143
|
-
class: "table-container"
|
|
144
|
-
}, {
|
|
145
|
-
header: l(() => [
|
|
146
|
-
d(Q, null, {
|
|
147
|
-
default: l(() => [
|
|
148
|
-
d(V, { span: 17 }, {
|
|
149
|
-
default: l(() => [
|
|
150
|
-
_((i(), b(c, {
|
|
151
|
-
type: "primary",
|
|
152
|
-
onClick: j
|
|
153
|
-
}, {
|
|
154
|
-
default: l(() => [
|
|
155
|
-
m(s(t.$t("common.add")), 1)
|
|
156
|
-
]),
|
|
157
|
-
_: 1
|
|
158
|
-
})), [
|
|
159
|
-
[g, ["goods:goods_label_info:add"]]
|
|
160
|
-
]),
|
|
161
|
-
_((i(), b(c, {
|
|
162
|
-
type: "primary",
|
|
163
|
-
onClick: o[2] || (o[2] = (e) => a(n).deleteRecords())
|
|
164
|
-
}, {
|
|
165
|
-
default: l(() => [
|
|
166
|
-
m(s(t.$t("common.batchDelete")), 1)
|
|
167
|
-
]),
|
|
168
|
-
_: 1
|
|
169
|
-
})), [
|
|
170
|
-
[g, ["goods:goods_label_info:delete"]]
|
|
171
|
-
])
|
|
172
|
-
]),
|
|
173
|
-
_: 1
|
|
174
|
-
}),
|
|
175
|
-
d(V, {
|
|
176
|
-
span: 7,
|
|
177
|
-
class: "container-float"
|
|
178
|
-
}, {
|
|
179
|
-
default: l(() => [
|
|
180
|
-
_((i(), b(c, {
|
|
181
|
-
plain: "",
|
|
182
|
-
type: "primary",
|
|
183
|
-
onClick: o[3] || (o[3] = (e) => y.value = !0)
|
|
184
|
-
}, {
|
|
185
|
-
default: l(() => [
|
|
186
|
-
m(s(t.$t("common.import")), 1)
|
|
187
|
-
]),
|
|
188
|
-
_: 1
|
|
189
|
-
})), [
|
|
190
|
-
[g, ["goods:goods_label_info:import"]]
|
|
191
|
-
]),
|
|
192
|
-
_((i(), b(c, {
|
|
193
|
-
plain: "",
|
|
194
|
-
type: "primary",
|
|
195
|
-
onClick: o[4] || (o[4] = (e) => a(n).handleExport(a(f)("goods.goodsLabelInfo.name")))
|
|
196
|
-
}, {
|
|
197
|
-
default: l(() => [
|
|
198
|
-
m(s(t.$t("common.export")), 1)
|
|
199
|
-
]),
|
|
200
|
-
_: 1
|
|
201
|
-
})), [
|
|
202
|
-
[g, ["goods:goods_label_info:export"]]
|
|
203
|
-
]),
|
|
204
|
-
_((i(), b(c, {
|
|
205
|
-
plain: "",
|
|
206
|
-
type: "primary",
|
|
207
|
-
onClick: o[5] || (o[5] = (e) => a(n).handleExportPdf(a(f)("goods.goodsLabelInfo.name")))
|
|
208
|
-
}, {
|
|
209
|
-
default: l(() => [
|
|
210
|
-
m(s(t.$t("common.print")), 1)
|
|
211
|
-
]),
|
|
212
|
-
_: 1
|
|
213
|
-
})), [
|
|
214
|
-
[g, ["goods:goods_label_info:print"]]
|
|
215
|
-
]),
|
|
216
|
-
d(H, {
|
|
217
|
-
modelValue: a(C),
|
|
218
|
-
"onUpdate:modelValue": o[6] || (o[6] = (e) => E(C) ? C.value = e : C = e),
|
|
219
|
-
"label-name": "goods/goods-label-info"
|
|
220
|
-
}, null, 8, ["modelValue"])
|
|
221
|
-
]),
|
|
222
|
-
_: 1
|
|
223
|
-
})
|
|
224
|
-
]),
|
|
225
|
-
_: 1
|
|
226
|
-
})
|
|
227
|
-
]),
|
|
228
|
-
footer: l(() => [
|
|
229
|
-
a(k) > 0 ? (i(), b(W, {
|
|
230
|
-
key: 0,
|
|
231
|
-
total: a(k),
|
|
232
|
-
"onUpdate:total": o[7] || (o[7] = (e) => E(k) ? k.value = e : null),
|
|
233
|
-
"current-page": v.value.curPage,
|
|
234
|
-
"onUpdate:currentPage": o[8] || (o[8] = (e) => v.value.curPage = e),
|
|
235
|
-
"page-size": v.value.pageSize,
|
|
236
|
-
"onUpdate:pageSize": o[9] || (o[9] = (e) => v.value.pageSize = e),
|
|
237
|
-
onPagination: o[10] || (o[10] = (e) => a(n).getList())
|
|
238
|
-
}, null, 8, ["total", "current-page", "page-size"])) : L("", !0)
|
|
239
|
-
]),
|
|
240
|
-
default: l(() => [
|
|
241
|
-
d(J, {
|
|
242
|
-
ref_key: "multipleTableRef",
|
|
243
|
-
ref: N,
|
|
244
|
-
"row-key": "labelId",
|
|
245
|
-
"list-loading": a(T),
|
|
246
|
-
data: a(U),
|
|
247
|
-
"table-label": a(C),
|
|
248
|
-
onSelectionChange: P,
|
|
249
|
-
onSortChange: z
|
|
250
|
-
}, {
|
|
251
|
-
tenantId: l((e) => [
|
|
252
|
-
u("span", null, s(e.data.row.tenantId), 1)
|
|
253
|
-
]),
|
|
254
|
-
labelId: l((e) => [
|
|
255
|
-
u("span", null, s(e.data.row.labelId), 1)
|
|
256
|
-
]),
|
|
257
|
-
labelName: l((e) => [
|
|
258
|
-
u("span", null, s(e.data.row.labelName), 1)
|
|
259
|
-
]),
|
|
260
|
-
labelCode: l((e) => [
|
|
261
|
-
u("span", null, s(e.data.row.labelCode), 1)
|
|
262
|
-
]),
|
|
263
|
-
orderBy: l((e) => [
|
|
264
|
-
u("span", null, s(e.data.row.orderBy), 1)
|
|
265
|
-
]),
|
|
266
|
-
status: l((e) => [
|
|
267
|
-
u("span", null, s(e.data.row.status), 1)
|
|
268
|
-
]),
|
|
269
|
-
note: l((e) => [
|
|
270
|
-
u("span", null, s(e.data.row.note), 1)
|
|
271
|
-
]),
|
|
272
|
-
listOrder: l((e) => [
|
|
273
|
-
d(R, {
|
|
274
|
-
size: "16",
|
|
275
|
-
onClick: (w) => a(n).handleMove(e.data.row, !1)
|
|
276
|
-
}, {
|
|
277
|
-
default: l(() => [
|
|
278
|
-
d(K)
|
|
279
|
-
]),
|
|
280
|
-
_: 2
|
|
281
|
-
}, 1032, ["onClick"]),
|
|
282
|
-
d(R, {
|
|
283
|
-
size: "16",
|
|
284
|
-
onClick: (w) => a(n).handleMove(e.data.row, !0)
|
|
285
|
-
}, {
|
|
286
|
-
default: l(() => [
|
|
287
|
-
d(O)
|
|
288
|
-
]),
|
|
289
|
-
_: 2
|
|
290
|
-
}, 1032, ["onClick"])
|
|
291
|
-
]),
|
|
292
|
-
enable: l((e) => [
|
|
293
|
-
d(G, {
|
|
294
|
-
modelValue: e.data.row.enable,
|
|
295
|
-
"onUpdate:modelValue": (w) => e.data.row.enable = w,
|
|
296
|
-
onChange: (w) => a(n).enableRecord(e.data.row, e.data.row.enable)
|
|
297
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
298
|
-
]),
|
|
299
|
-
operation: l((e) => [
|
|
300
|
-
_((i(), $("span", {
|
|
301
|
-
class: "el-button-color",
|
|
302
|
-
onClick: (w) => D(e.data.row)
|
|
303
|
-
}, [
|
|
304
|
-
m(s(t.$t("common.edit")), 1)
|
|
305
|
-
], 8, de)), [
|
|
306
|
-
[g, ["goods:goods_label_info:update"]]
|
|
307
|
-
]),
|
|
308
|
-
_((i(), $("span", {
|
|
309
|
-
class: "el-button-color dropdown-left",
|
|
310
|
-
onClick: (w) => a(n).deleteRecord(e.data.row)
|
|
311
|
-
}, [
|
|
312
|
-
m(s(t.$t("common.delete")), 1)
|
|
313
|
-
], 8, re)), [
|
|
314
|
-
[g, ["goods:goods_label_info:delete"]]
|
|
315
|
-
])
|
|
316
|
-
]),
|
|
317
|
-
_: 1
|
|
318
|
-
}, 8, ["list-loading", "data", "table-label"])
|
|
319
|
-
]),
|
|
320
|
-
_: 1
|
|
321
|
-
}),
|
|
322
|
-
p.value.visible ? (i(), b(ae, {
|
|
323
|
-
key: 0,
|
|
324
|
-
modelValue: p.value.visible,
|
|
325
|
-
"onUpdate:modelValue": o[11] || (o[11] = (e) => p.value.visible = e),
|
|
326
|
-
title: p.value.title,
|
|
327
|
-
"entity-key": a(h),
|
|
328
|
-
onRefresh: q,
|
|
329
|
-
width: "900px"
|
|
330
|
-
}, null, 8, ["modelValue", "title", "entity-key"])) : L("", !0),
|
|
331
|
-
y.value ? (i(), b(Y, {
|
|
332
|
-
key: 1,
|
|
333
|
-
"upload-visible": y.value,
|
|
334
|
-
"template-title": t.$t("sysUser.templateDownload"),
|
|
335
|
-
onTemplateDown: o[12] || (o[12] = (e) => a(n).downloadTemplate(a(f)("goods.goodsLabelInfo.name"))),
|
|
336
|
-
onImportEvents: M,
|
|
337
|
-
onUploadClosed: x
|
|
338
|
-
}, null, 8, ["upload-visible", "template-title"])) : L("", !0)
|
|
339
|
-
]);
|
|
340
|
-
};
|
|
341
|
-
}
|
|
342
|
-
});
|
|
343
|
-
export {
|
|
344
|
-
fe as default
|
|
345
|
-
};
|
package/dist/info-5OkZzwEV.mjs
DELETED
|
@@ -1,312 +0,0 @@
|
|
|
1
|
-
import { defineComponent as q, ref as y, computed as j, watch as F, resolveComponent as S, openBlock as p, createElementBlock as L, createVNode as i, withCtx as e, createTextVNode as n, toDisplayString as l, createElementVNode as a, Fragment as I, renderList as E, createBlock as k, unref as m, createCommentVNode as w } from "vue";
|
|
2
|
-
import { fileApi as B, routerUtil as H } from "jmash-core";
|
|
3
|
-
import { useRouter as O, useRoute as R } from "vue-router";
|
|
4
|
-
import { D as _, C as N, S as Y } from "./index-CmKF2zdn.mjs";
|
|
5
|
-
import z from "./skuTable-B8v1DVIO.mjs";
|
|
6
|
-
import { goodsSpuApi as G } from "./index.mjs";
|
|
7
|
-
import { g as J } from "./index-BHmGYIuc.mjs";
|
|
8
|
-
const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "cell-item" }, X = { class: "cell-item" }, Z = { class: "cell-item" }, x = { class: "cell-item" }, ee = { class: "cell-item" }, le = { class: "cell-item" }, se = { class: "cell-item" }, te = { class: "cell-item" }, oe = { class: "cell-item" }, ue = { class: "title-content" }, ae = { class: "cell-item" }, ie = { class: "cell-item" }, ne = { class: "cell-item" }, ce = { class: "cell-item" }, re = { class: "cell-item" }, de = { class: "cell-item" }, pe = ["innerHTML"], ke = /* @__PURE__ */ q({
|
|
9
|
-
__name: "info",
|
|
10
|
-
setup(me) {
|
|
11
|
-
const U = O(), b = R(), u = y({}), D = y([]), g = y([]), $ = y([]), T = y([]), C = j(() => g.value.filter(
|
|
12
|
-
(s) => s.name && s.specValueList != null && s.specValueList.length
|
|
13
|
-
));
|
|
14
|
-
F(
|
|
15
|
-
C,
|
|
16
|
-
(s) => s,
|
|
17
|
-
{
|
|
18
|
-
deep: !0,
|
|
19
|
-
immediate: !0
|
|
20
|
-
}
|
|
21
|
-
), _.shopInfoBizDict.useValues(), _.goodsCategoryListBizLayDict.useValues(), b.query.spuId && G.findById({ spuId: b.query.spuId }).then(({ data: s }) => {
|
|
22
|
-
var c, v, o;
|
|
23
|
-
u.value = Object.assign(u, s), D.value = (c = s.picUrls) == null ? void 0 : c.split(","), J.findById({ spuId: b.query.spuId }).then(({ data: d }) => {
|
|
24
|
-
u.value.ensureIds = d.ensures;
|
|
25
|
-
}), s.specType === N.SPEC_TYPE.MULTI_SPEC && ($.value = (v = s.skuList) == null ? void 0 : v.results, (o = s.skuList) == null || o.results.forEach((d) => {
|
|
26
|
-
var r;
|
|
27
|
-
(r = d.specValues) == null || r.map((h) => {
|
|
28
|
-
_.specInfoDict.useValues().then((V) => {
|
|
29
|
-
const t = V.find((f) => h.specId === f.key);
|
|
30
|
-
if (t) {
|
|
31
|
-
let f = {
|
|
32
|
-
id: h.specId,
|
|
33
|
-
name: t.value,
|
|
34
|
-
specValueList: []
|
|
35
|
-
};
|
|
36
|
-
g.value.push(f);
|
|
37
|
-
}
|
|
38
|
-
const P = /* @__PURE__ */ new Map();
|
|
39
|
-
g.value = g.value.filter(
|
|
40
|
-
(f) => !P.has(f.id) && P.set(f.id, f)
|
|
41
|
-
), A(h.specValueId);
|
|
42
|
-
});
|
|
43
|
-
});
|
|
44
|
-
}));
|
|
45
|
-
});
|
|
46
|
-
function A(s) {
|
|
47
|
-
g.value.forEach((c) => {
|
|
48
|
-
T.value = new Y({ specId: c.id }), T.value.useValues().then((v) => {
|
|
49
|
-
v.forEach((o) => {
|
|
50
|
-
if (o.key === s) {
|
|
51
|
-
let r = {
|
|
52
|
-
id: s,
|
|
53
|
-
name: o.value
|
|
54
|
-
};
|
|
55
|
-
c.specValueList.push(r);
|
|
56
|
-
}
|
|
57
|
-
const d = /* @__PURE__ */ new Map();
|
|
58
|
-
c.specValueList = c.specValueList.filter(
|
|
59
|
-
(r) => !d.has(r.id) && d.set(r.id, r)
|
|
60
|
-
);
|
|
61
|
-
});
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
function M() {
|
|
66
|
-
H.closeTagView(b.fullPath, U, !1);
|
|
67
|
-
}
|
|
68
|
-
return (s, c) => {
|
|
69
|
-
const v = S("el-button"), o = S("el-descriptions-item"), d = S("el-tag"), r = S("el-image"), h = S("el-descriptions"), V = S("el-card");
|
|
70
|
-
return p(), L("div", K, [
|
|
71
|
-
i(V, { shadow: "never" }, {
|
|
72
|
-
header: e(() => [
|
|
73
|
-
i(v, {
|
|
74
|
-
type: "primary",
|
|
75
|
-
onClick: M
|
|
76
|
-
}, {
|
|
77
|
-
default: e(() => [
|
|
78
|
-
n(l(s.$t("common.back")), 1)
|
|
79
|
-
]),
|
|
80
|
-
_: 1
|
|
81
|
-
})
|
|
82
|
-
]),
|
|
83
|
-
default: e(() => [
|
|
84
|
-
c[0] || (c[0] = a("div", { class: "title-content" }, "基本信息", -1)),
|
|
85
|
-
i(h, {
|
|
86
|
-
class: "margin-top",
|
|
87
|
-
column: 2,
|
|
88
|
-
border: ""
|
|
89
|
-
}, {
|
|
90
|
-
default: e(() => [
|
|
91
|
-
i(o, null, {
|
|
92
|
-
label: e(() => [
|
|
93
|
-
a("div", Q, l(s.$t("goodsSpu.spuName")), 1)
|
|
94
|
-
]),
|
|
95
|
-
default: e(() => [
|
|
96
|
-
n(" " + l(u.value.spuName), 1)
|
|
97
|
-
]),
|
|
98
|
-
_: 1
|
|
99
|
-
}),
|
|
100
|
-
i(o, null, {
|
|
101
|
-
label: e(() => [
|
|
102
|
-
a("div", W, l(s.$t("goodsSpu.categoryId")), 1)
|
|
103
|
-
]),
|
|
104
|
-
default: e(() => [
|
|
105
|
-
(p(!0), L(I, null, E(u.value.categoryIds, (t) => (p(), k(d, {
|
|
106
|
-
key: t,
|
|
107
|
-
style: { "margin-right": "8px", "margin-bottom": "4px" }
|
|
108
|
-
}, {
|
|
109
|
-
default: e(() => [
|
|
110
|
-
n(l(m(_).goodsCategoryListBizLayDict.getValue(t) || t), 1)
|
|
111
|
-
]),
|
|
112
|
-
_: 2
|
|
113
|
-
}, 1024))), 128))
|
|
114
|
-
]),
|
|
115
|
-
_: 1
|
|
116
|
-
}),
|
|
117
|
-
i(o, null, {
|
|
118
|
-
label: e(() => [
|
|
119
|
-
a("div", X, l(s.$t("goodsSpu.spuCode")), 1)
|
|
120
|
-
]),
|
|
121
|
-
default: e(() => [
|
|
122
|
-
n(" " + l(u.value.spuCode), 1)
|
|
123
|
-
]),
|
|
124
|
-
_: 1
|
|
125
|
-
}),
|
|
126
|
-
i(o, null, {
|
|
127
|
-
label: e(() => [
|
|
128
|
-
a("div", Z, l(s.$t("goodsSpu.freightType")), 1)
|
|
129
|
-
]),
|
|
130
|
-
default: e(() => [
|
|
131
|
-
n(" " + l(m(_).freightTypeEnum.getEnumValue(
|
|
132
|
-
u.value.freightType
|
|
133
|
-
)), 1)
|
|
134
|
-
]),
|
|
135
|
-
_: 1
|
|
136
|
-
}),
|
|
137
|
-
i(o, null, {
|
|
138
|
-
label: e(() => [
|
|
139
|
-
a("div", x, l(s.$t("goodsSpu.freightAmount")), 1)
|
|
140
|
-
]),
|
|
141
|
-
default: e(() => [
|
|
142
|
-
n(" " + l(u.value.freightAmount), 1)
|
|
143
|
-
]),
|
|
144
|
-
_: 1
|
|
145
|
-
}),
|
|
146
|
-
i(o, null, {
|
|
147
|
-
label: e(() => [
|
|
148
|
-
a("div", ee, l(s.$t("goodsSpu.picUrls")), 1)
|
|
149
|
-
]),
|
|
150
|
-
default: e(() => [
|
|
151
|
-
(p(!0), L(I, null, E(D.value, (t) => (p(), k(r, {
|
|
152
|
-
key: t,
|
|
153
|
-
src: m(B).imageUrl(t, 80, 80),
|
|
154
|
-
"preview-src-list": [m(B).imageUrl(t)],
|
|
155
|
-
"preview-teleported": "",
|
|
156
|
-
"hide-on-click-modal": "",
|
|
157
|
-
fit: "contain"
|
|
158
|
-
}, null, 8, ["src", "preview-src-list"]))), 128))
|
|
159
|
-
]),
|
|
160
|
-
_: 1
|
|
161
|
-
}),
|
|
162
|
-
i(o, null, {
|
|
163
|
-
label: e(() => [
|
|
164
|
-
a("div", le, l(s.$t("goodsSpu.shelf")), 1)
|
|
165
|
-
]),
|
|
166
|
-
default: e(() => [
|
|
167
|
-
n(" " + l(m(_).shelfDict.getValue(u.value.shelf)), 1)
|
|
168
|
-
]),
|
|
169
|
-
_: 1
|
|
170
|
-
}),
|
|
171
|
-
i(o, null, {
|
|
172
|
-
label: e(() => [
|
|
173
|
-
a("div", se, l(s.$t("goodsSpu.saleNum")), 1)
|
|
174
|
-
]),
|
|
175
|
-
default: e(() => [
|
|
176
|
-
n(" " + l(u.value.saleNum), 1)
|
|
177
|
-
]),
|
|
178
|
-
_: 1
|
|
179
|
-
}),
|
|
180
|
-
i(o, null, {
|
|
181
|
-
label: e(() => [
|
|
182
|
-
a("div", te, l(s.$t("goodsSpu.sellPoint")), 1)
|
|
183
|
-
]),
|
|
184
|
-
default: e(() => [
|
|
185
|
-
n(" " + l(u.value.sellPoint), 1)
|
|
186
|
-
]),
|
|
187
|
-
_: 1
|
|
188
|
-
}),
|
|
189
|
-
i(o, null, {
|
|
190
|
-
label: e(() => [
|
|
191
|
-
a("div", oe, l(s.$t("goodsSpu.ensureIds")), 1)
|
|
192
|
-
]),
|
|
193
|
-
default: e(() => [
|
|
194
|
-
(p(!0), L(I, null, E(u.value.ensureIds, (t) => (p(), k(d, {
|
|
195
|
-
type: "info",
|
|
196
|
-
key: t
|
|
197
|
-
}, {
|
|
198
|
-
default: e(() => [
|
|
199
|
-
n(l(m(_).goodsEnsureDict.getDictValue(t)), 1)
|
|
200
|
-
]),
|
|
201
|
-
_: 2
|
|
202
|
-
}, 1024))), 128))
|
|
203
|
-
]),
|
|
204
|
-
_: 1
|
|
205
|
-
})
|
|
206
|
-
]),
|
|
207
|
-
_: 1
|
|
208
|
-
}),
|
|
209
|
-
a("div", ue, " 商品规格(" + l(m(_).specTypeEnum.getEnumValue(u.value.specType)) + ") ", 1),
|
|
210
|
-
u.value.specType == m(N).SPEC_TYPE.UNIFIED_SPEC ? (p(), k(h, {
|
|
211
|
-
key: 0,
|
|
212
|
-
class: "margin-top",
|
|
213
|
-
column: 2,
|
|
214
|
-
border: ""
|
|
215
|
-
}, {
|
|
216
|
-
default: e(() => [
|
|
217
|
-
i(o, null, {
|
|
218
|
-
label: e(() => [
|
|
219
|
-
a("div", ae, l(s.$t("goodsSpu.salePrice")), 1)
|
|
220
|
-
]),
|
|
221
|
-
default: e(() => {
|
|
222
|
-
var t;
|
|
223
|
-
return [
|
|
224
|
-
n(" " + l((t = u.value.skuList) == null ? void 0 : t.results[0].salePrice) + "元 ", 1)
|
|
225
|
-
];
|
|
226
|
-
}),
|
|
227
|
-
_: 1
|
|
228
|
-
}),
|
|
229
|
-
i(o, null, {
|
|
230
|
-
label: e(() => [
|
|
231
|
-
a("div", ie, l(s.$t("goodsSpu.marketPrice")), 1)
|
|
232
|
-
]),
|
|
233
|
-
default: e(() => {
|
|
234
|
-
var t;
|
|
235
|
-
return [
|
|
236
|
-
n(" " + l((t = u.value.skuList) == null ? void 0 : t.results[0].marketPrice) + "元 ", 1)
|
|
237
|
-
];
|
|
238
|
-
}),
|
|
239
|
-
_: 1
|
|
240
|
-
}),
|
|
241
|
-
i(o, null, {
|
|
242
|
-
label: e(() => [
|
|
243
|
-
a("div", ne, l(s.$t("goodsSpu.costPrice")), 1)
|
|
244
|
-
]),
|
|
245
|
-
default: e(() => {
|
|
246
|
-
var t;
|
|
247
|
-
return [
|
|
248
|
-
n(" " + l((t = u.value.skuList) == null ? void 0 : t.results[0].costPrice) + "元 ", 1)
|
|
249
|
-
];
|
|
250
|
-
}),
|
|
251
|
-
_: 1
|
|
252
|
-
}),
|
|
253
|
-
i(o, null, {
|
|
254
|
-
label: e(() => [
|
|
255
|
-
a("div", ce, l(s.$t("goodsSpu.stock")), 1)
|
|
256
|
-
]),
|
|
257
|
-
default: e(() => {
|
|
258
|
-
var t;
|
|
259
|
-
return [
|
|
260
|
-
n(" " + l((t = u.value.skuList) == null ? void 0 : t.results[0].stock), 1)
|
|
261
|
-
];
|
|
262
|
-
}),
|
|
263
|
-
_: 1
|
|
264
|
-
}),
|
|
265
|
-
i(o, null, {
|
|
266
|
-
label: e(() => [
|
|
267
|
-
a("div", re, l(s.$t("goodsSpu.weight")), 1)
|
|
268
|
-
]),
|
|
269
|
-
default: e(() => {
|
|
270
|
-
var t;
|
|
271
|
-
return [
|
|
272
|
-
n(" " + l((t = u.value.skuList) == null ? void 0 : t.results[0].weight), 1)
|
|
273
|
-
];
|
|
274
|
-
}),
|
|
275
|
-
_: 1
|
|
276
|
-
}),
|
|
277
|
-
i(o, null, {
|
|
278
|
-
label: e(() => [
|
|
279
|
-
a("div", de, l(s.$t("goodsSpu.volume")), 1)
|
|
280
|
-
]),
|
|
281
|
-
default: e(() => {
|
|
282
|
-
var t;
|
|
283
|
-
return [
|
|
284
|
-
n(" " + l((t = u.value.skuList) == null ? void 0 : t.results[0].volume), 1)
|
|
285
|
-
];
|
|
286
|
-
}),
|
|
287
|
-
_: 1
|
|
288
|
-
})
|
|
289
|
-
]),
|
|
290
|
-
_: 1
|
|
291
|
-
})) : w("", !0),
|
|
292
|
-
g.value.length > 0 ? (p(), k(z, {
|
|
293
|
-
key: 1,
|
|
294
|
-
specData: C.value,
|
|
295
|
-
goodsSku: $.value,
|
|
296
|
-
isSettingShow: !1
|
|
297
|
-
}, null, 8, ["specData", "goodsSku"])) : w("", !0),
|
|
298
|
-
c[1] || (c[1] = a("div", { class: "title-content" }, "商品描述", -1)),
|
|
299
|
-
a("div", {
|
|
300
|
-
innerHTML: u.value.description
|
|
301
|
-
}, null, 8, pe)
|
|
302
|
-
]),
|
|
303
|
-
_: 1,
|
|
304
|
-
__: [0, 1]
|
|
305
|
-
})
|
|
306
|
-
]);
|
|
307
|
-
};
|
|
308
|
-
}
|
|
309
|
-
});
|
|
310
|
-
export {
|
|
311
|
-
ke as default
|
|
312
|
-
};
|