xyvcard-goods 0.0.28 → 0.0.30
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-CquWa3hI.mjs → edit-BY1AVieE.mjs} +131 -128
- package/dist/{edit-CYekSxUa.mjs → edit-BYxk3lFr.mjs} +3 -3
- package/dist/{edit-C_XCVJwM.mjs → edit-CRc6GqY4.mjs} +8 -8
- package/dist/{edit-CuZnQH9w.mjs → edit-D9JqZTHN.mjs} +1 -1
- package/dist/{edit-D1FAN3TA.mjs → edit-ehVvbusK.mjs} +23 -30
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BSxqVyG4.mjs → edit.vue_vue_type_script_setup_true_lang-d769FSho.mjs} +3 -3
- package/dist/index-BLO5ssji.mjs +562 -0
- package/dist/{index-nCeCw43N.mjs → index-BaX061kc.mjs} +87 -92
- package/dist/index-CNVwLggO.mjs +644 -0
- package/dist/{index-wH3Sgvus.mjs → index-DloS7z9I.mjs} +1 -1
- package/dist/{index-B27GuULR.mjs → index-Dpms2ryP.mjs} +9 -9
- package/dist/{index-B3vvD7JH.mjs → index-DvCC73mO.mjs} +61 -63
- package/dist/{index-Dd1dJx7i.mjs → index-R43ND-Ey.mjs} +32 -37
- package/dist/{index-COXyxAor.mjs → index-Vu01FEMS.mjs} +53 -46
- package/dist/index.mjs +1 -1
- package/dist/{info-NBnTd9fK.mjs → info-CJxN7XOi.mjs} +2 -2
- package/dist/{info-0Pf9u0GJ.mjs → info-CzhzwS5C.mjs} +3 -3
- package/dist/{skuForm-BsvKk2kD.mjs → skuForm-K3S131WX.mjs} +86 -83
- package/dist/{skuForm-CU0a2ltJ.mjs → skuForm-X1aeeUCX.mjs} +2 -2
- package/dist/{skuTable-DgDGWX-n.mjs → skuTable-7VaeJKGp.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dts/api/goods-spu/types.d.ts +1 -0
- package/dts/api/index.d.ts +1 -0
- package/dts/constant.d.ts +10 -0
- package/package.json +4 -4
- package/dist/goodsList-DZlaY5k0.mjs +0 -4
- package/dist/goodsList-wpPEPZqs.mjs +0 -4
- package/dist/goodsList.vue_vue_type_script_setup_true_lang-BFXFifWr.mjs +0 -565
- package/dist/goodsList.vue_vue_type_script_setup_true_lang-iXycU5oS.mjs +0 -714
- package/dist/index-DFxg3rmo.mjs +0 -55
- package/dist/index-Dy5JznUz.mjs +0 -53
|
@@ -0,0 +1,562 @@
|
|
|
1
|
+
import { defineComponent as ce, ref as P, getCurrentInstance as ge, onMounted as fe, onActivated as be, resolveComponent as r, resolveDirective as ve, openBlock as d, createElementBlock as g, createVNode as a, withCtx as o, Fragment as D, renderList as U, unref as s, createBlock as y, createElementVNode as k, withKeys as Y, createTextVNode as f, toDisplayString as m, withDirectives as w, createCommentVNode as $, isRef as H } from "vue";
|
|
2
|
+
import { useRoute as ye, useRouter as he } from "vue-router";
|
|
3
|
+
import { ElMessage as R } from "element-plus";
|
|
4
|
+
import { useI18n as _e } from "vue-i18n";
|
|
5
|
+
import { useTableHooks as we, fileApi as Q } from "jmash-core";
|
|
6
|
+
import { D as c, C as Se } from "./index-Vu01FEMS.mjs";
|
|
7
|
+
import { a as E } from "./index-Dpms2ryP.mjs";
|
|
8
|
+
const Ce = { class: "app-container" }, ke = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "app-container"
|
|
11
|
+
}, Ve = { class: "search-container" }, Ie = ["onClick"], $e = ["onClick"], Te = ["onClick"], Pe = /* @__PURE__ */ ce({
|
|
12
|
+
__name: "index",
|
|
13
|
+
setup(De) {
|
|
14
|
+
c.goodsCategoryListBizLayDict.useValues(), c.brandListBizDict.useValues(), c.labelListBizDict.useValues(), c.shopInfoBizDict.useValues();
|
|
15
|
+
const { t: h } = _e(), j = ye(), L = he(), p = P(0), V = {
|
|
16
|
+
0: {},
|
|
17
|
+
1: { shelf: "true" },
|
|
18
|
+
2: { shelf: "false" }
|
|
19
|
+
}, { proxy: F } = ge(), u = P({
|
|
20
|
+
curPage: 1,
|
|
21
|
+
pageSize: 10,
|
|
22
|
+
shelf: V[p.value].shelf ? V[p.value].shelf : void 0,
|
|
23
|
+
goodsType: Se.GOODS_TYPE.GROUP
|
|
24
|
+
}), {
|
|
25
|
+
tableHooks: n,
|
|
26
|
+
multipleTableRef: N,
|
|
27
|
+
queryFormRef: K,
|
|
28
|
+
listLoading: G,
|
|
29
|
+
tableData: W,
|
|
30
|
+
total: T
|
|
31
|
+
} = we(h, E, u);
|
|
32
|
+
let I = P([
|
|
33
|
+
{
|
|
34
|
+
label: "goodsSpu.spuName",
|
|
35
|
+
prop: "spuName",
|
|
36
|
+
minWidth: "200",
|
|
37
|
+
isColumn: !0
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
label: "goodsSpu.picUrls",
|
|
41
|
+
prop: "picUrls",
|
|
42
|
+
slotName: "picUrls",
|
|
43
|
+
columnType: "slot",
|
|
44
|
+
width: "100",
|
|
45
|
+
isColumn: !0
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
label: "goodsSpu.categoryId",
|
|
49
|
+
prop: "categoryIds",
|
|
50
|
+
slotName: "categoryId",
|
|
51
|
+
columnType: "slot",
|
|
52
|
+
minWidth: "130",
|
|
53
|
+
isColumn: !0
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
label: "goodsSpu.price",
|
|
57
|
+
prop: "minPrice",
|
|
58
|
+
width: "110",
|
|
59
|
+
sortable: "custom",
|
|
60
|
+
isColumn: !0
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
label: "goodsSpu.spuCode",
|
|
64
|
+
prop: "spuCode",
|
|
65
|
+
width: "110",
|
|
66
|
+
isColumn: !0
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
label: "goodsSpu.saleNum",
|
|
70
|
+
prop: "saleNum",
|
|
71
|
+
width: "110",
|
|
72
|
+
sortable: "custom",
|
|
73
|
+
isColumn: !0
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
label: "goodsSpu.specType",
|
|
77
|
+
prop: "specType",
|
|
78
|
+
width: "110",
|
|
79
|
+
slotName: "specType",
|
|
80
|
+
columnType: "slot",
|
|
81
|
+
isColumn: !0
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
label: "goodsSpu.shelf",
|
|
85
|
+
prop: "shelf",
|
|
86
|
+
width: "90",
|
|
87
|
+
slotName: "shelf",
|
|
88
|
+
columnType: "slot",
|
|
89
|
+
isColumn: !0
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
label: "goodsSpu.updateTime",
|
|
93
|
+
prop: "updateTime",
|
|
94
|
+
width: "170",
|
|
95
|
+
sortable: "custom",
|
|
96
|
+
slotName: "updateTime",
|
|
97
|
+
columnType: "slot",
|
|
98
|
+
isColumn: !0
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
label: "common.operate",
|
|
102
|
+
width: "150",
|
|
103
|
+
slotName: "operation",
|
|
104
|
+
columnType: "slot",
|
|
105
|
+
fixed: "right",
|
|
106
|
+
isColumn: !0
|
|
107
|
+
}
|
|
108
|
+
]);
|
|
109
|
+
function J(t) {
|
|
110
|
+
const l = Number(t.index);
|
|
111
|
+
p.value = l, u.value.shelf = V[l].shelf || void 0, n.getList();
|
|
112
|
+
}
|
|
113
|
+
fe(() => {
|
|
114
|
+
j.query.activeTab && (p.value = Number(j.query.activeTab), u.value.shelf = V[p.value].shelf || void 0);
|
|
115
|
+
}), be(() => {
|
|
116
|
+
n.getList();
|
|
117
|
+
});
|
|
118
|
+
function X() {
|
|
119
|
+
L.push({ path: "/rawgoods/goods-combination/edit" });
|
|
120
|
+
}
|
|
121
|
+
function Z(t) {
|
|
122
|
+
L.push({
|
|
123
|
+
path: "/rawgoods/goods-combination/edit",
|
|
124
|
+
query: { spuId: t.spuId }
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
function x(t) {
|
|
128
|
+
L.push({
|
|
129
|
+
path: "/rawgoods/goods-combination/info",
|
|
130
|
+
query: { spuId: t.spuId }
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
function ee(t) {
|
|
134
|
+
n.selectionRows.value = t;
|
|
135
|
+
}
|
|
136
|
+
function le(t) {
|
|
137
|
+
n.handleSort(t.prop, t.order);
|
|
138
|
+
}
|
|
139
|
+
function oe() {
|
|
140
|
+
if (n.selectionRows.value.length === 0) {
|
|
141
|
+
R({
|
|
142
|
+
message: h("goodsSpu.chooseShelf"),
|
|
143
|
+
type: "warning"
|
|
144
|
+
});
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
const t = n.selectionRows.value.map(
|
|
148
|
+
(l) => l.spuId
|
|
149
|
+
);
|
|
150
|
+
E.enable({ spuId: t }, !0).then((l) => {
|
|
151
|
+
var b;
|
|
152
|
+
l.status === 200 && (R({
|
|
153
|
+
message: h("goodsSpu.successShelf") + l.data + h("common.stripData"),
|
|
154
|
+
type: "success"
|
|
155
|
+
}), n.getList(), (b = N.value) == null || b.clearSelection());
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
function te() {
|
|
159
|
+
if (n.selectionRows.value.length === 0) {
|
|
160
|
+
R({
|
|
161
|
+
message: h("goodsSpu.chooseShelf"),
|
|
162
|
+
type: "warning"
|
|
163
|
+
});
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
166
|
+
const t = n.selectionRows.value.map(
|
|
167
|
+
(l) => l.spuId
|
|
168
|
+
);
|
|
169
|
+
E.enable({ spuId: t }, !1).then((l) => {
|
|
170
|
+
var b;
|
|
171
|
+
l.status === 200 && R({
|
|
172
|
+
message: h("goodsSpu.successOffShelf") + l.data + h("common.stripData"),
|
|
173
|
+
type: "success"
|
|
174
|
+
}), n.getList(), (b = N.value) == null || b.clearSelection();
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
return (t, l) => {
|
|
178
|
+
const b = r("el-input"), S = r("el-form-item"), v = r("el-col"), ae = r("el-tree-select"), A = r("el-option"), M = r("el-select"), z = r("el-row"), C = r("el-button"), se = r("el-form"), ne = r("jmash-column-select"), ue = r("el-image"), O = r("el-switch"), de = r("jmash-table"), re = r("jmash-pagination"), pe = r("el-card"), ie = r("el-tab-pane"), me = r("el-tabs"), _ = ve("hasPerm");
|
|
179
|
+
return d(), g("div", Ce, [
|
|
180
|
+
a(me, {
|
|
181
|
+
modelValue: p.value,
|
|
182
|
+
"onUpdate:modelValue": l[15] || (l[15] = (B) => p.value = B),
|
|
183
|
+
type: "border-card",
|
|
184
|
+
onTabClick: J
|
|
185
|
+
}, {
|
|
186
|
+
default: o(() => [
|
|
187
|
+
(d(!0), g(D, null, U(s(c).goodsSpuListSortDict.values.slice(0, -2), (B, q) => (d(), y(ie, {
|
|
188
|
+
key: q,
|
|
189
|
+
label: B.value,
|
|
190
|
+
name: q
|
|
191
|
+
}, {
|
|
192
|
+
default: o(() => [
|
|
193
|
+
p.value === q ? (d(), g("div", ke, [
|
|
194
|
+
k("div", Ve, [
|
|
195
|
+
a(se, {
|
|
196
|
+
ref_for: !0,
|
|
197
|
+
ref_key: "queryFormRef",
|
|
198
|
+
ref: K,
|
|
199
|
+
model: u.value,
|
|
200
|
+
inline: !0
|
|
201
|
+
}, {
|
|
202
|
+
default: o(() => [
|
|
203
|
+
a(z, null, {
|
|
204
|
+
default: o(() => [
|
|
205
|
+
a(v, { span: 6 }, {
|
|
206
|
+
default: o(() => [
|
|
207
|
+
a(S, {
|
|
208
|
+
label: t.$t("goodsSpu.spuCode"),
|
|
209
|
+
prop: "spuCode"
|
|
210
|
+
}, {
|
|
211
|
+
default: o(() => [
|
|
212
|
+
a(b, {
|
|
213
|
+
modelValue: u.value.spuCode,
|
|
214
|
+
"onUpdate:modelValue": l[0] || (l[0] = (e) => u.value.spuCode = e),
|
|
215
|
+
placeholder: t.$t("goodsSpu.spuCodeRequired"),
|
|
216
|
+
class: "!w-[203px]",
|
|
217
|
+
onKeyup: l[1] || (l[1] = Y((e) => s(n).handleQuery(), ["enter"]))
|
|
218
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
219
|
+
]),
|
|
220
|
+
_: 1
|
|
221
|
+
}, 8, ["label"])
|
|
222
|
+
]),
|
|
223
|
+
_: 1
|
|
224
|
+
}),
|
|
225
|
+
a(v, { span: 6 }, {
|
|
226
|
+
default: o(() => [
|
|
227
|
+
a(S, {
|
|
228
|
+
label: t.$t("goodsSpu.spuName"),
|
|
229
|
+
prop: "likeSpuName"
|
|
230
|
+
}, {
|
|
231
|
+
default: o(() => [
|
|
232
|
+
a(b, {
|
|
233
|
+
modelValue: u.value.likeSpuName,
|
|
234
|
+
"onUpdate:modelValue": l[2] || (l[2] = (e) => u.value.likeSpuName = e),
|
|
235
|
+
placeholder: t.$t("goodsSpu.spuNameRequired"),
|
|
236
|
+
onKeyup: l[3] || (l[3] = Y((e) => s(n).handleQuery(), ["enter"]))
|
|
237
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
238
|
+
]),
|
|
239
|
+
_: 1
|
|
240
|
+
}, 8, ["label"])
|
|
241
|
+
]),
|
|
242
|
+
_: 1
|
|
243
|
+
}),
|
|
244
|
+
a(v, { span: 6 }, {
|
|
245
|
+
default: o(() => [
|
|
246
|
+
a(S, {
|
|
247
|
+
label: t.$t("goodsSpu.categoryId"),
|
|
248
|
+
prop: "categoryIds"
|
|
249
|
+
}, {
|
|
250
|
+
default: o(() => [
|
|
251
|
+
a(ae, {
|
|
252
|
+
modelValue: u.value.categoryIds,
|
|
253
|
+
"onUpdate:modelValue": l[4] || (l[4] = (e) => u.value.categoryIds = e),
|
|
254
|
+
data: s(c).goodsCategoryListBizLayDict.values,
|
|
255
|
+
multiple: "",
|
|
256
|
+
placeholder: t.$t("goodsSpu.categoryIdRequired"),
|
|
257
|
+
class: "!w-[203px]"
|
|
258
|
+
}, null, 8, ["modelValue", "data", "placeholder"])
|
|
259
|
+
]),
|
|
260
|
+
_: 1
|
|
261
|
+
}, 8, ["label"])
|
|
262
|
+
]),
|
|
263
|
+
_: 1
|
|
264
|
+
}),
|
|
265
|
+
a(v, { span: 6 }, {
|
|
266
|
+
default: o(() => [
|
|
267
|
+
a(S, {
|
|
268
|
+
label: t.$t("goodsSpu.brandId"),
|
|
269
|
+
prop: "brandId"
|
|
270
|
+
}, {
|
|
271
|
+
default: o(() => [
|
|
272
|
+
a(M, {
|
|
273
|
+
modelValue: u.value.brandId,
|
|
274
|
+
"onUpdate:modelValue": l[5] || (l[5] = (e) => u.value.brandId = e),
|
|
275
|
+
data: s(c).brandListBizDict.values,
|
|
276
|
+
placeholder: t.$t("goodsSpu.brandIdRequired"),
|
|
277
|
+
class: "!w-[203px]"
|
|
278
|
+
}, {
|
|
279
|
+
default: o(() => [
|
|
280
|
+
(d(!0), g(D, null, U(s(c).brandListBizDict.values, (e) => (d(), y(A, {
|
|
281
|
+
key: e.key,
|
|
282
|
+
label: e.value,
|
|
283
|
+
value: e.key
|
|
284
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
285
|
+
]),
|
|
286
|
+
_: 1
|
|
287
|
+
}, 8, ["modelValue", "data", "placeholder"])
|
|
288
|
+
]),
|
|
289
|
+
_: 1
|
|
290
|
+
}, 8, ["label"])
|
|
291
|
+
]),
|
|
292
|
+
_: 1
|
|
293
|
+
})
|
|
294
|
+
]),
|
|
295
|
+
_: 1
|
|
296
|
+
}),
|
|
297
|
+
a(z, null, {
|
|
298
|
+
default: o(() => [
|
|
299
|
+
a(v, { span: 6 }, {
|
|
300
|
+
default: o(() => [
|
|
301
|
+
a(S, {
|
|
302
|
+
label: t.$t("goodsSpu.labelIds"),
|
|
303
|
+
prop: "labelIds"
|
|
304
|
+
}, {
|
|
305
|
+
default: o(() => [
|
|
306
|
+
a(M, {
|
|
307
|
+
modelValue: u.value.labelIds,
|
|
308
|
+
"onUpdate:modelValue": l[6] || (l[6] = (e) => u.value.labelIds = e),
|
|
309
|
+
data: s(c).labelListBizDict.values,
|
|
310
|
+
multiple: "",
|
|
311
|
+
placeholder: t.$t("goodsSpu.labelIdsRequired"),
|
|
312
|
+
class: "!w-[203px]"
|
|
313
|
+
}, {
|
|
314
|
+
default: o(() => [
|
|
315
|
+
(d(!0), g(D, null, U(s(c).labelListBizDict.values, (e) => (d(), y(A, {
|
|
316
|
+
key: e.key,
|
|
317
|
+
label: e.value,
|
|
318
|
+
value: e.key
|
|
319
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
320
|
+
]),
|
|
321
|
+
_: 1
|
|
322
|
+
}, 8, ["modelValue", "data", "placeholder"])
|
|
323
|
+
]),
|
|
324
|
+
_: 1
|
|
325
|
+
}, 8, ["label"])
|
|
326
|
+
]),
|
|
327
|
+
_: 1
|
|
328
|
+
}),
|
|
329
|
+
a(v, { span: 18 }, {
|
|
330
|
+
default: o(() => [
|
|
331
|
+
a(S, { class: "search-btn" }, {
|
|
332
|
+
default: o(() => [
|
|
333
|
+
a(C, {
|
|
334
|
+
type: "primary",
|
|
335
|
+
onClick: l[7] || (l[7] = (e) => s(n).handleQuery())
|
|
336
|
+
}, {
|
|
337
|
+
default: o(() => [
|
|
338
|
+
f(m(t.$t("common.search")), 1)
|
|
339
|
+
]),
|
|
340
|
+
_: 1
|
|
341
|
+
}),
|
|
342
|
+
a(C, {
|
|
343
|
+
onClick: l[8] || (l[8] = (e) => s(n).resetQuery())
|
|
344
|
+
}, {
|
|
345
|
+
default: o(() => [
|
|
346
|
+
f(m(t.$t("common.reset")), 1)
|
|
347
|
+
]),
|
|
348
|
+
_: 1
|
|
349
|
+
})
|
|
350
|
+
]),
|
|
351
|
+
_: 1
|
|
352
|
+
})
|
|
353
|
+
]),
|
|
354
|
+
_: 1
|
|
355
|
+
})
|
|
356
|
+
]),
|
|
357
|
+
_: 1
|
|
358
|
+
})
|
|
359
|
+
]),
|
|
360
|
+
_: 1
|
|
361
|
+
}, 8, ["model"]),
|
|
362
|
+
l[16] || (l[16] = k("div", { class: "clear" }, null, -1))
|
|
363
|
+
]),
|
|
364
|
+
a(pe, {
|
|
365
|
+
shadow: "never",
|
|
366
|
+
class: "table-container"
|
|
367
|
+
}, {
|
|
368
|
+
header: o(() => [
|
|
369
|
+
a(z, null, {
|
|
370
|
+
default: o(() => [
|
|
371
|
+
a(v, { span: 17 }, {
|
|
372
|
+
default: o(() => [
|
|
373
|
+
w((d(), y(C, {
|
|
374
|
+
type: "primary",
|
|
375
|
+
onClick: X
|
|
376
|
+
}, {
|
|
377
|
+
default: o(() => [
|
|
378
|
+
f(m(t.$t("common.add")), 1)
|
|
379
|
+
]),
|
|
380
|
+
_: 1
|
|
381
|
+
})), [
|
|
382
|
+
[_, ["goods:goods_com:add"]]
|
|
383
|
+
]),
|
|
384
|
+
p.value !== 1 ? w((d(), y(C, {
|
|
385
|
+
key: 0,
|
|
386
|
+
type: "primary",
|
|
387
|
+
onClick: l[9] || (l[9] = (e) => s(n).deleteRecords())
|
|
388
|
+
}, {
|
|
389
|
+
default: o(() => [
|
|
390
|
+
f(m(t.$t("common.batchDelete")), 1)
|
|
391
|
+
]),
|
|
392
|
+
_: 1
|
|
393
|
+
})), [
|
|
394
|
+
[_, ["goods:goods_com:delete"]]
|
|
395
|
+
]) : $("", !0),
|
|
396
|
+
V[p.value].shelf === "false" || p.value === 0 ? w((d(), y(C, {
|
|
397
|
+
key: 1,
|
|
398
|
+
type: "primary",
|
|
399
|
+
onClick: oe
|
|
400
|
+
}, {
|
|
401
|
+
default: o(() => [
|
|
402
|
+
f(m(t.$t("goodsSpu.batchShelf")), 1)
|
|
403
|
+
]),
|
|
404
|
+
_: 1
|
|
405
|
+
})), [
|
|
406
|
+
[_, ["goods:goods_com:onSale"]]
|
|
407
|
+
]) : $("", !0),
|
|
408
|
+
p.value !== 2 ? w((d(), y(C, {
|
|
409
|
+
key: 2,
|
|
410
|
+
type: "primary",
|
|
411
|
+
onClick: te
|
|
412
|
+
}, {
|
|
413
|
+
default: o(() => [
|
|
414
|
+
f(m(t.$t("goodsSpu.batchOffShelf")), 1)
|
|
415
|
+
]),
|
|
416
|
+
_: 1
|
|
417
|
+
})), [
|
|
418
|
+
[_, ["goods:goods_spu:onSale"]]
|
|
419
|
+
]) : $("", !0)
|
|
420
|
+
]),
|
|
421
|
+
_: 1
|
|
422
|
+
}),
|
|
423
|
+
a(v, {
|
|
424
|
+
span: 7,
|
|
425
|
+
class: "container-float"
|
|
426
|
+
}, {
|
|
427
|
+
default: o(() => [
|
|
428
|
+
a(ne, {
|
|
429
|
+
modelValue: s(I),
|
|
430
|
+
"onUpdate:modelValue": l[10] || (l[10] = (e) => H(I) ? I.value = e : I = e),
|
|
431
|
+
"label-name": "goods/goods-combination"
|
|
432
|
+
}, null, 8, ["modelValue"])
|
|
433
|
+
]),
|
|
434
|
+
_: 1
|
|
435
|
+
})
|
|
436
|
+
]),
|
|
437
|
+
_: 1
|
|
438
|
+
})
|
|
439
|
+
]),
|
|
440
|
+
footer: o(() => [
|
|
441
|
+
s(T) > 0 ? (d(), y(re, {
|
|
442
|
+
key: 0,
|
|
443
|
+
total: s(T),
|
|
444
|
+
"onUpdate:total": l[11] || (l[11] = (e) => H(T) ? T.value = e : null),
|
|
445
|
+
"current-page": u.value.curPage,
|
|
446
|
+
"onUpdate:currentPage": l[12] || (l[12] = (e) => u.value.curPage = e),
|
|
447
|
+
"page-size": u.value.pageSize,
|
|
448
|
+
"onUpdate:pageSize": l[13] || (l[13] = (e) => u.value.pageSize = e),
|
|
449
|
+
onPagination: l[14] || (l[14] = (e) => s(n).getList())
|
|
450
|
+
}, null, 8, ["total", "current-page", "page-size"])) : $("", !0)
|
|
451
|
+
]),
|
|
452
|
+
default: o(() => [
|
|
453
|
+
a(de, {
|
|
454
|
+
ref_for: !0,
|
|
455
|
+
ref_key: "multipleTableRef",
|
|
456
|
+
ref: N,
|
|
457
|
+
"row-key": "spuId",
|
|
458
|
+
"list-loading": s(G),
|
|
459
|
+
data: s(W),
|
|
460
|
+
"table-label": s(I),
|
|
461
|
+
onSelectionChange: ee,
|
|
462
|
+
onSortChange: le
|
|
463
|
+
}, {
|
|
464
|
+
categoryId: o((e) => [
|
|
465
|
+
(d(!0), g(D, null, U(e.data.row.categoryIds, (i) => (d(), g("span", {
|
|
466
|
+
key: i,
|
|
467
|
+
style: { "margin-right": "8px", "margin-bottom": "4px" }
|
|
468
|
+
}, m(s(c).goodsCategoryListBizLayDict.getValue(i) || i), 1))), 128))
|
|
469
|
+
]),
|
|
470
|
+
picUrls: o((e) => [
|
|
471
|
+
k("span", null, [
|
|
472
|
+
a(ue, {
|
|
473
|
+
src: s(Q).imageUrl(
|
|
474
|
+
e.data.row.picUrls.split(",")[0],
|
|
475
|
+
0,
|
|
476
|
+
0
|
|
477
|
+
),
|
|
478
|
+
"preview-src-list": [
|
|
479
|
+
s(Q).imageUrl(e.data.row.picUrls.split(",")[0])
|
|
480
|
+
],
|
|
481
|
+
"preview-teleported": "",
|
|
482
|
+
"hide-on-click-modal": "",
|
|
483
|
+
fit: "contain"
|
|
484
|
+
}, null, 8, ["src", "preview-src-list"])
|
|
485
|
+
])
|
|
486
|
+
]),
|
|
487
|
+
shelf: o((e) => [
|
|
488
|
+
k("span", null, [
|
|
489
|
+
a(O, {
|
|
490
|
+
modelValue: e.data.row.shelf,
|
|
491
|
+
"onUpdate:modelValue": (i) => e.data.row.shelf = i,
|
|
492
|
+
onClick: (i) => s(n).enableRecord(
|
|
493
|
+
e.data.row,
|
|
494
|
+
e.data.row.shelf
|
|
495
|
+
)
|
|
496
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "onClick"])
|
|
497
|
+
])
|
|
498
|
+
]),
|
|
499
|
+
specType: o((e) => [
|
|
500
|
+
k("span", null, m(s(c).specTypeEnum.getEnumValue(e.data.row.specType)), 1)
|
|
501
|
+
]),
|
|
502
|
+
updateTime: o((e) => [
|
|
503
|
+
k("span", null, m(s(F).$moment.formatDate(
|
|
504
|
+
e.data.row.updateTime,
|
|
505
|
+
"YYYY-MM-DD HH:mm:ss"
|
|
506
|
+
)), 1)
|
|
507
|
+
]),
|
|
508
|
+
enable: o((e) => [
|
|
509
|
+
a(O, {
|
|
510
|
+
modelValue: e.data.row.enable,
|
|
511
|
+
"onUpdate:modelValue": (i) => e.data.row.enable = i,
|
|
512
|
+
onChange: (i) => s(n).enableRecord(
|
|
513
|
+
e.data.row,
|
|
514
|
+
e.data.row.enable
|
|
515
|
+
)
|
|
516
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
517
|
+
]),
|
|
518
|
+
operation: o((e) => [
|
|
519
|
+
w((d(), g("span", {
|
|
520
|
+
class: "el-button-color",
|
|
521
|
+
onClick: (i) => Z(e.data.row)
|
|
522
|
+
}, [
|
|
523
|
+
f(m(t.$t("common.edit")), 1)
|
|
524
|
+
], 8, Ie)), [
|
|
525
|
+
[_, ["goods:goods_com:update"]]
|
|
526
|
+
]),
|
|
527
|
+
w((d(), g("span", {
|
|
528
|
+
class: "el-button-color dropdown-left",
|
|
529
|
+
onClick: (i) => s(n).deleteRecord(e.data.row)
|
|
530
|
+
}, [
|
|
531
|
+
f(m(t.$t("common.delete")), 1)
|
|
532
|
+
], 8, $e)), [
|
|
533
|
+
[_, ["goods:goods_com:delete"]]
|
|
534
|
+
]),
|
|
535
|
+
w((d(), g("span", {
|
|
536
|
+
class: "el-button-color dropdown-left",
|
|
537
|
+
onClick: (i) => x(e.data.row)
|
|
538
|
+
}, [
|
|
539
|
+
f(m(t.$t("common.view")), 1)
|
|
540
|
+
], 8, Te)), [
|
|
541
|
+
[_, ["goods:goods_com:view"]]
|
|
542
|
+
])
|
|
543
|
+
]),
|
|
544
|
+
_: 1
|
|
545
|
+
}, 8, ["list-loading", "data", "table-label"])
|
|
546
|
+
]),
|
|
547
|
+
_: 1
|
|
548
|
+
})
|
|
549
|
+
])) : $("", !0)
|
|
550
|
+
]),
|
|
551
|
+
_: 2
|
|
552
|
+
}, 1032, ["label", "name"]))), 128))
|
|
553
|
+
]),
|
|
554
|
+
_: 1
|
|
555
|
+
}, 8, ["modelValue"])
|
|
556
|
+
]);
|
|
557
|
+
};
|
|
558
|
+
}
|
|
559
|
+
});
|
|
560
|
+
export {
|
|
561
|
+
Pe as default
|
|
562
|
+
};
|