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
|
@@ -1,714 +0,0 @@
|
|
|
1
|
-
import { defineComponent as be, getCurrentInstance as ve, ref as K, onActivated as ye, resolveComponent as d, resolveDirective as he, openBlock as r, createElementBlock as v, createElementVNode as P, createVNode as l, withCtx as o, withKeys as G, unref as s, Fragment as D, renderList as B, createBlock as w, createTextVNode as m, toDisplayString as u, withDirectives as C, createCommentVNode as I, isRef as J, normalizeClass as _e } from "vue";
|
|
2
|
-
import { ElMessage as y } from "element-plus";
|
|
3
|
-
import { useRouter as we } from "vue-router";
|
|
4
|
-
import { useTableHooks as Ce, fileApi as W } from "jmash-core";
|
|
5
|
-
import { useI18n as ke } from "vue-i18n";
|
|
6
|
-
import { a as T } from "./index-B27GuULR.mjs";
|
|
7
|
-
import { D as S, C as h } from "./index-COXyxAor.mjs";
|
|
8
|
-
const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie = ["onClick"], $e = ["onClick"], Re = ["onClick"], Oe = /* @__PURE__ */ be({
|
|
9
|
-
__name: "goodsList",
|
|
10
|
-
props: {
|
|
11
|
-
shelf: {
|
|
12
|
-
type: String,
|
|
13
|
-
default: () => ""
|
|
14
|
-
},
|
|
15
|
-
approvalStatus: {
|
|
16
|
-
type: String,
|
|
17
|
-
default: () => ""
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
setup($) {
|
|
21
|
-
S.brandListBizDict.useValues(), S.labelListBizDict.useValues();
|
|
22
|
-
const { t: i } = ke(), z = we(), b = $, { proxy: X } = ve(), c = K({
|
|
23
|
-
curPage: 1,
|
|
24
|
-
pageSize: 10,
|
|
25
|
-
shelf: b.shelf ? b.shelf : void 0,
|
|
26
|
-
approvalStatus: b.approvalStatus ? b.approvalStatus : void 0,
|
|
27
|
-
goodsType: h.GOODS_TYPE.NORMAL
|
|
28
|
-
}), {
|
|
29
|
-
tableHooks: n,
|
|
30
|
-
multipleTableRef: A,
|
|
31
|
-
queryFormRef: Z,
|
|
32
|
-
listLoading: x,
|
|
33
|
-
tableData: ee,
|
|
34
|
-
total: N
|
|
35
|
-
} = Ce(i, T, c);
|
|
36
|
-
let L = K([
|
|
37
|
-
// {
|
|
38
|
-
// label: "goodsSpu.shopId",
|
|
39
|
-
// prop: "shopId",
|
|
40
|
-
// slotName: "shopId",
|
|
41
|
-
// columnType: "slot",
|
|
42
|
-
// minWidth: "150",
|
|
43
|
-
// isColumn: true,
|
|
44
|
-
// },
|
|
45
|
-
{
|
|
46
|
-
label: "goodsSpu.spuName",
|
|
47
|
-
prop: "spuName",
|
|
48
|
-
width: "200",
|
|
49
|
-
isColumn: !0
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
label: "goodsSpu.picUrls",
|
|
53
|
-
prop: "picUrls",
|
|
54
|
-
slotName: "picUrls",
|
|
55
|
-
columnType: "slot",
|
|
56
|
-
width: "100",
|
|
57
|
-
isColumn: !0
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
label: "goodsSpu.categoryId",
|
|
61
|
-
prop: "categoryIds",
|
|
62
|
-
slotName: "categoryId",
|
|
63
|
-
columnType: "slot",
|
|
64
|
-
width: "130",
|
|
65
|
-
isColumn: !0
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
label: "goodsSpu.price",
|
|
69
|
-
prop: "minPrice",
|
|
70
|
-
width: "110",
|
|
71
|
-
sortable: "custom",
|
|
72
|
-
slotName: "minPrice",
|
|
73
|
-
columnType: "slot",
|
|
74
|
-
isColumn: !0
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
label: "goodsSpu.spuCode",
|
|
78
|
-
prop: "spuCode",
|
|
79
|
-
width: "110",
|
|
80
|
-
sortable: "custom",
|
|
81
|
-
isColumn: !0
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
label: "goodsSpu.saleNum",
|
|
85
|
-
prop: "saleNum",
|
|
86
|
-
width: "110",
|
|
87
|
-
sortable: "custom",
|
|
88
|
-
isColumn: !0
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
label: "goodsSpu.specType",
|
|
92
|
-
prop: "specType",
|
|
93
|
-
width: "110",
|
|
94
|
-
slotName: "specType",
|
|
95
|
-
columnType: "slot",
|
|
96
|
-
sortable: "custom",
|
|
97
|
-
isColumn: !0
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
label: "goodsSpu.shelf",
|
|
101
|
-
prop: "shelf",
|
|
102
|
-
width: "110",
|
|
103
|
-
slotName: "shelf",
|
|
104
|
-
columnType: "slot",
|
|
105
|
-
sortable: "custom",
|
|
106
|
-
isColumn: !0
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
label: "goodsSpu.approvalStatus",
|
|
110
|
-
prop: "approvalStatus",
|
|
111
|
-
width: "90",
|
|
112
|
-
slotName: "approvalStatus",
|
|
113
|
-
columnType: "slot",
|
|
114
|
-
isColumn: !0
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
label: "goodsSpu.updateTime",
|
|
118
|
-
prop: "updateTime",
|
|
119
|
-
width: "170",
|
|
120
|
-
sortable: "custom",
|
|
121
|
-
slotName: "updateTime",
|
|
122
|
-
columnType: "slot",
|
|
123
|
-
isColumn: !0
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
label: "common.operate",
|
|
127
|
-
width: "150",
|
|
128
|
-
slotName: "operation",
|
|
129
|
-
columnType: "slot",
|
|
130
|
-
fixed: "right",
|
|
131
|
-
isColumn: !0
|
|
132
|
-
}
|
|
133
|
-
]);
|
|
134
|
-
S.shopInfoBizDict.useValues(), S.goodsCategoryListBizLayDict.useValues();
|
|
135
|
-
function oe() {
|
|
136
|
-
z.push({ path: "/rawgoods/goods-spu/edit" });
|
|
137
|
-
}
|
|
138
|
-
function le(a) {
|
|
139
|
-
z.push({
|
|
140
|
-
path: "/rawgoods/goods-spu/edit",
|
|
141
|
-
query: { spuId: a.spuId }
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
function te(a) {
|
|
145
|
-
z.push({
|
|
146
|
-
path: "/rawgoods/goods-spu/info",
|
|
147
|
-
query: { spuId: a.spuId }
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
function ae(a) {
|
|
151
|
-
n.selectionRows.value = a;
|
|
152
|
-
}
|
|
153
|
-
function se(a) {
|
|
154
|
-
n.handleSort(a.prop, a.order);
|
|
155
|
-
}
|
|
156
|
-
function ne(a) {
|
|
157
|
-
if (n.selectionRows.value.length === 0) {
|
|
158
|
-
y({
|
|
159
|
-
message: i("goodsSpu.chooseShelf"),
|
|
160
|
-
type: "warning"
|
|
161
|
-
});
|
|
162
|
-
return;
|
|
163
|
-
}
|
|
164
|
-
const t = n.selectionRows.value.map((p) => p.spuId);
|
|
165
|
-
T.enable({ spuId: t }, JSON.parse(a)).then((p) => {
|
|
166
|
-
var g;
|
|
167
|
-
p.status === 200 && (a === "true" ? y({
|
|
168
|
-
message: i("goodsSpu.successShelf") + p.data + i("common.stripData"),
|
|
169
|
-
type: "success"
|
|
170
|
-
}) : y({
|
|
171
|
-
message: i("goodsSpu.successOffShelf") + p.data + i("common.stripData"),
|
|
172
|
-
type: "success"
|
|
173
|
-
}), n.getList(), (g = A.value) == null || g.clearSelection());
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
function ue() {
|
|
177
|
-
if (n.selectionRows.value.length === 0) {
|
|
178
|
-
y({
|
|
179
|
-
message: i("goodsSpu.chooseShelf"),
|
|
180
|
-
type: "warning"
|
|
181
|
-
});
|
|
182
|
-
return;
|
|
183
|
-
}
|
|
184
|
-
const a = n.selectionRows.value.map((t) => t.spuId);
|
|
185
|
-
T.enable({ spuId: a }, !0).then((t) => {
|
|
186
|
-
var p;
|
|
187
|
-
t.status === 200 && (y({
|
|
188
|
-
message: i("goodsSpu.successShelf") + t.data + i("common.stripData"),
|
|
189
|
-
type: "success"
|
|
190
|
-
}), n.getList(), (p = A.value) == null || p.clearSelection());
|
|
191
|
-
});
|
|
192
|
-
}
|
|
193
|
-
function de() {
|
|
194
|
-
if (n.selectionRows.value.length === 0) {
|
|
195
|
-
y({
|
|
196
|
-
message: i("goodsSpu.chooseShelf"),
|
|
197
|
-
type: "warning"
|
|
198
|
-
});
|
|
199
|
-
return;
|
|
200
|
-
}
|
|
201
|
-
const a = n.selectionRows.value.map((t) => t.spuId);
|
|
202
|
-
T.enable({ spuId: a }, !1).then((t) => {
|
|
203
|
-
var p;
|
|
204
|
-
t.status === 200 && y({
|
|
205
|
-
message: i("goodsSpu.successOffShelf") + t.data + i("common.stripData"),
|
|
206
|
-
type: "success"
|
|
207
|
-
}), n.getList(), (p = A.value) == null || p.clearSelection();
|
|
208
|
-
});
|
|
209
|
-
}
|
|
210
|
-
function pe(a) {
|
|
211
|
-
if (n.selectionRows.value.length === 0) {
|
|
212
|
-
y({
|
|
213
|
-
message: i("goodsSpu.chooseShelf"),
|
|
214
|
-
type: "warning"
|
|
215
|
-
});
|
|
216
|
-
return;
|
|
217
|
-
}
|
|
218
|
-
const t = n.selectionRows.value.map((p) => p.spuId);
|
|
219
|
-
T.audit({ spuId: t }, a).then((p) => {
|
|
220
|
-
var g;
|
|
221
|
-
p.status === 200 && (a === h.APPROVAL_PASS ? y({
|
|
222
|
-
message: i("goodsSpu.successApproval") + p.data + i("common.stripData"),
|
|
223
|
-
type: "success"
|
|
224
|
-
}) : y({
|
|
225
|
-
message: i("goodsSpu.successFilled") + p.data + i("common.stripData"),
|
|
226
|
-
type: "success"
|
|
227
|
-
}), n.getList(), (g = A.value) == null || g.clearSelection());
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
return ye(() => {
|
|
231
|
-
n.getList();
|
|
232
|
-
}), (a, t) => {
|
|
233
|
-
const p = d("el-input"), g = d("el-form-item"), k = d("el-col"), re = d("el-tree-select"), E = d("el-option"), q = d("el-select"), O = d("el-row"), V = d("el-button"), ie = d("el-form"), j = d("arrow-down"), R = d("el-icon"), Y = d("Unlock"), U = d("el-dropdown-item"), F = d("Lock"), H = d("el-dropdown-menu"), M = d("el-dropdown"), me = d("jmash-column-select"), ce = d("el-image"), Q = d("el-switch"), ge = d("jmash-table"), fe = d("jmash-pagination"), Se = d("el-card"), _ = he("hasPerm");
|
|
234
|
-
return r(), v("div", Ve, [
|
|
235
|
-
P("div", Pe, [
|
|
236
|
-
l(ie, {
|
|
237
|
-
ref_key: "queryFormRef",
|
|
238
|
-
ref: Z,
|
|
239
|
-
model: c.value,
|
|
240
|
-
inline: !0
|
|
241
|
-
}, {
|
|
242
|
-
default: o(() => [
|
|
243
|
-
l(O, null, {
|
|
244
|
-
default: o(() => [
|
|
245
|
-
l(k, { span: 6 }, {
|
|
246
|
-
default: o(() => [
|
|
247
|
-
l(g, {
|
|
248
|
-
label: a.$t("goodsSpu.spuCode"),
|
|
249
|
-
prop: "spuCode"
|
|
250
|
-
}, {
|
|
251
|
-
default: o(() => [
|
|
252
|
-
l(p, {
|
|
253
|
-
modelValue: c.value.spuCode,
|
|
254
|
-
"onUpdate:modelValue": t[0] || (t[0] = (e) => c.value.spuCode = e),
|
|
255
|
-
placeholder: a.$t("goodsSpu.spuCode"),
|
|
256
|
-
class: "!w-[203px]",
|
|
257
|
-
onKeyup: t[1] || (t[1] = G((e) => s(n).handleQuery(), ["enter"]))
|
|
258
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
259
|
-
]),
|
|
260
|
-
_: 1
|
|
261
|
-
}, 8, ["label"])
|
|
262
|
-
]),
|
|
263
|
-
_: 1
|
|
264
|
-
}),
|
|
265
|
-
l(k, { span: 6 }, {
|
|
266
|
-
default: o(() => [
|
|
267
|
-
l(g, {
|
|
268
|
-
label: a.$t("goodsSpu.spuName"),
|
|
269
|
-
prop: "likeSpuName"
|
|
270
|
-
}, {
|
|
271
|
-
default: o(() => [
|
|
272
|
-
l(p, {
|
|
273
|
-
modelValue: c.value.likeSpuName,
|
|
274
|
-
"onUpdate:modelValue": t[2] || (t[2] = (e) => c.value.likeSpuName = e),
|
|
275
|
-
placeholder: a.$t("goodsSpu.spuName"),
|
|
276
|
-
onKeyup: t[3] || (t[3] = G((e) => s(n).handleQuery(), ["enter"]))
|
|
277
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
278
|
-
]),
|
|
279
|
-
_: 1
|
|
280
|
-
}, 8, ["label"])
|
|
281
|
-
]),
|
|
282
|
-
_: 1
|
|
283
|
-
}),
|
|
284
|
-
l(k, { span: 6 }, {
|
|
285
|
-
default: o(() => [
|
|
286
|
-
l(g, {
|
|
287
|
-
label: a.$t("goodsSpu.categoryId"),
|
|
288
|
-
prop: "categoryIds"
|
|
289
|
-
}, {
|
|
290
|
-
default: o(() => [
|
|
291
|
-
l(re, {
|
|
292
|
-
modelValue: c.value.categoryIds,
|
|
293
|
-
"onUpdate:modelValue": t[4] || (t[4] = (e) => c.value.categoryIds = e),
|
|
294
|
-
data: s(S).goodsCategoryListBizLayDict.values,
|
|
295
|
-
multiple: "",
|
|
296
|
-
placeholder: a.$t("goodsSpu.categoryIdRequired"),
|
|
297
|
-
class: "!w-[203px]"
|
|
298
|
-
}, null, 8, ["modelValue", "data", "placeholder"])
|
|
299
|
-
]),
|
|
300
|
-
_: 1
|
|
301
|
-
}, 8, ["label"])
|
|
302
|
-
]),
|
|
303
|
-
_: 1
|
|
304
|
-
}),
|
|
305
|
-
l(k, { span: 6 }, {
|
|
306
|
-
default: o(() => [
|
|
307
|
-
l(g, {
|
|
308
|
-
label: a.$t("goodsSpu.brandId"),
|
|
309
|
-
prop: "brandId"
|
|
310
|
-
}, {
|
|
311
|
-
default: o(() => [
|
|
312
|
-
l(q, {
|
|
313
|
-
modelValue: c.value.brandId,
|
|
314
|
-
"onUpdate:modelValue": t[5] || (t[5] = (e) => c.value.brandId = e),
|
|
315
|
-
data: s(S).brandListBizDict.values,
|
|
316
|
-
placeholder: a.$t("goodsSpu.brandIdRequired"),
|
|
317
|
-
class: "!w-[203px]"
|
|
318
|
-
}, {
|
|
319
|
-
default: o(() => [
|
|
320
|
-
(r(!0), v(D, null, B(s(S).brandListBizDict.values, (e) => (r(), w(E, {
|
|
321
|
-
key: e.key,
|
|
322
|
-
label: e.value,
|
|
323
|
-
value: e.key
|
|
324
|
-
}, null, 8, ["label", "value"]))), 128))
|
|
325
|
-
]),
|
|
326
|
-
_: 1
|
|
327
|
-
}, 8, ["modelValue", "data", "placeholder"])
|
|
328
|
-
]),
|
|
329
|
-
_: 1
|
|
330
|
-
}, 8, ["label"])
|
|
331
|
-
]),
|
|
332
|
-
_: 1
|
|
333
|
-
})
|
|
334
|
-
]),
|
|
335
|
-
_: 1
|
|
336
|
-
}),
|
|
337
|
-
l(O, null, {
|
|
338
|
-
default: o(() => [
|
|
339
|
-
l(k, { span: 6 }, {
|
|
340
|
-
default: o(() => [
|
|
341
|
-
l(g, {
|
|
342
|
-
label: a.$t("goodsSpu.labelIds"),
|
|
343
|
-
prop: "labelIds"
|
|
344
|
-
}, {
|
|
345
|
-
default: o(() => [
|
|
346
|
-
l(q, {
|
|
347
|
-
modelValue: c.value.labelIds,
|
|
348
|
-
"onUpdate:modelValue": t[6] || (t[6] = (e) => c.value.labelIds = e),
|
|
349
|
-
data: s(S).labelListBizDict.values,
|
|
350
|
-
multiple: "",
|
|
351
|
-
placeholder: a.$t("goodsSpu.labelIdsRequired"),
|
|
352
|
-
class: "!w-[203px]"
|
|
353
|
-
}, {
|
|
354
|
-
default: o(() => [
|
|
355
|
-
(r(!0), v(D, null, B(s(S).labelListBizDict.values, (e) => (r(), w(E, {
|
|
356
|
-
key: e.key,
|
|
357
|
-
label: e.value,
|
|
358
|
-
value: e.key
|
|
359
|
-
}, null, 8, ["label", "value"]))), 128))
|
|
360
|
-
]),
|
|
361
|
-
_: 1
|
|
362
|
-
}, 8, ["modelValue", "data", "placeholder"])
|
|
363
|
-
]),
|
|
364
|
-
_: 1
|
|
365
|
-
}, 8, ["label"])
|
|
366
|
-
]),
|
|
367
|
-
_: 1
|
|
368
|
-
}),
|
|
369
|
-
l(k, { span: 18 }, {
|
|
370
|
-
default: o(() => [
|
|
371
|
-
l(g, { class: "search-btn" }, {
|
|
372
|
-
default: o(() => [
|
|
373
|
-
l(V, {
|
|
374
|
-
type: "primary",
|
|
375
|
-
onClick: t[7] || (t[7] = (e) => s(n).handleQuery())
|
|
376
|
-
}, {
|
|
377
|
-
default: o(() => [
|
|
378
|
-
m(u(a.$t("common.search")), 1)
|
|
379
|
-
]),
|
|
380
|
-
_: 1
|
|
381
|
-
}),
|
|
382
|
-
l(V, {
|
|
383
|
-
onClick: t[8] || (t[8] = (e) => s(n).resetQuery())
|
|
384
|
-
}, {
|
|
385
|
-
default: o(() => [
|
|
386
|
-
m(u(a.$t("common.reset")), 1)
|
|
387
|
-
]),
|
|
388
|
-
_: 1
|
|
389
|
-
})
|
|
390
|
-
]),
|
|
391
|
-
_: 1
|
|
392
|
-
})
|
|
393
|
-
]),
|
|
394
|
-
_: 1
|
|
395
|
-
})
|
|
396
|
-
]),
|
|
397
|
-
_: 1
|
|
398
|
-
})
|
|
399
|
-
]),
|
|
400
|
-
_: 1
|
|
401
|
-
}, 8, ["model"]),
|
|
402
|
-
t[15] || (t[15] = P("div", { class: "clear" }, null, -1))
|
|
403
|
-
]),
|
|
404
|
-
l(Se, {
|
|
405
|
-
shadow: "never",
|
|
406
|
-
class: "table-container"
|
|
407
|
-
}, {
|
|
408
|
-
header: o(() => [
|
|
409
|
-
l(O, null, {
|
|
410
|
-
default: o(() => [
|
|
411
|
-
l(k, { span: 17 }, {
|
|
412
|
-
default: o(() => [
|
|
413
|
-
C((r(), w(V, {
|
|
414
|
-
type: "primary",
|
|
415
|
-
onClick: oe
|
|
416
|
-
}, {
|
|
417
|
-
default: o(() => [
|
|
418
|
-
m(u(a.$t("common.add")), 1)
|
|
419
|
-
]),
|
|
420
|
-
_: 1
|
|
421
|
-
})), [
|
|
422
|
-
[_, ["goods:goods_spu:add"]]
|
|
423
|
-
]),
|
|
424
|
-
$.approvalStatus !== s(h).APPROVAL_PASS ? C((r(), w(V, {
|
|
425
|
-
key: 0,
|
|
426
|
-
type: "primary",
|
|
427
|
-
onClick: t[9] || (t[9] = (e) => s(n).deleteRecords())
|
|
428
|
-
}, {
|
|
429
|
-
default: o(() => [
|
|
430
|
-
m(u(a.$t("common.batchDelete")), 1)
|
|
431
|
-
]),
|
|
432
|
-
_: 1
|
|
433
|
-
})), [
|
|
434
|
-
[_, ["goods:goods_spu:delete"]]
|
|
435
|
-
]) : I("", !0),
|
|
436
|
-
$.approvalStatus === s(h).APPROVAL_PASS ? C((r(), w(V, {
|
|
437
|
-
key: 1,
|
|
438
|
-
type: "primary",
|
|
439
|
-
onClick: de
|
|
440
|
-
}, {
|
|
441
|
-
default: o(() => [
|
|
442
|
-
m(u(a.$t("goodsSpu.batchOffShelf")), 1)
|
|
443
|
-
]),
|
|
444
|
-
_: 1
|
|
445
|
-
})), [
|
|
446
|
-
[_, ["goods:goods_spu:onSale"]]
|
|
447
|
-
]) : I("", !0),
|
|
448
|
-
b.shelf === "false" ? C((r(), w(V, {
|
|
449
|
-
key: 2,
|
|
450
|
-
type: "primary",
|
|
451
|
-
onClick: ue
|
|
452
|
-
}, {
|
|
453
|
-
default: o(() => [
|
|
454
|
-
m(u(a.$t("goodsSpu.batchShelf")), 1)
|
|
455
|
-
]),
|
|
456
|
-
_: 1
|
|
457
|
-
})), [
|
|
458
|
-
[_, ["goods:goods_spu:onSale"]]
|
|
459
|
-
]) : I("", !0),
|
|
460
|
-
b.approvalStatus === "" && b.shelf === "" ? C((r(), w(M, {
|
|
461
|
-
key: 3,
|
|
462
|
-
class: "dropdown-left",
|
|
463
|
-
onCommand: ne
|
|
464
|
-
}, {
|
|
465
|
-
dropdown: o(() => [
|
|
466
|
-
l(H, null, {
|
|
467
|
-
default: o(() => [
|
|
468
|
-
l(U, { command: "true" }, {
|
|
469
|
-
default: o(() => [
|
|
470
|
-
l(R, { size: "14" }, {
|
|
471
|
-
default: o(() => [
|
|
472
|
-
l(Y)
|
|
473
|
-
]),
|
|
474
|
-
_: 1
|
|
475
|
-
}),
|
|
476
|
-
m(" " + u(a.$t("goodsSpu.batchShelf")), 1)
|
|
477
|
-
]),
|
|
478
|
-
_: 1
|
|
479
|
-
}),
|
|
480
|
-
l(U, { command: "false" }, {
|
|
481
|
-
default: o(() => [
|
|
482
|
-
l(R, { size: "14" }, {
|
|
483
|
-
default: o(() => [
|
|
484
|
-
l(F)
|
|
485
|
-
]),
|
|
486
|
-
_: 1
|
|
487
|
-
}),
|
|
488
|
-
m(" " + u(a.$t("goodsSpu.batchOffShelf")), 1)
|
|
489
|
-
]),
|
|
490
|
-
_: 1
|
|
491
|
-
})
|
|
492
|
-
]),
|
|
493
|
-
_: 1
|
|
494
|
-
})
|
|
495
|
-
]),
|
|
496
|
-
default: o(() => [
|
|
497
|
-
l(V, { type: "primary" }, {
|
|
498
|
-
default: o(() => [
|
|
499
|
-
m(u(a.$t("goodsSpu.batchShelf")) + "/" + u(a.$t("goodsSpu.batchOffShelf")) + " ", 1),
|
|
500
|
-
l(R, { class: "el-icon--right" }, {
|
|
501
|
-
default: o(() => [
|
|
502
|
-
l(j)
|
|
503
|
-
]),
|
|
504
|
-
_: 1
|
|
505
|
-
})
|
|
506
|
-
]),
|
|
507
|
-
_: 1
|
|
508
|
-
})
|
|
509
|
-
]),
|
|
510
|
-
_: 1
|
|
511
|
-
})), [
|
|
512
|
-
[_, ["goods:goods_spu:onSale"]]
|
|
513
|
-
]) : I("", !0),
|
|
514
|
-
b.approvalStatus === "" && b.shelf === "" || b.approvalStatus === s(h).APPROVALING ? C((r(), w(M, {
|
|
515
|
-
key: 4,
|
|
516
|
-
class: "dropdown-left",
|
|
517
|
-
onCommand: pe
|
|
518
|
-
}, {
|
|
519
|
-
dropdown: o(() => [
|
|
520
|
-
l(H, null, {
|
|
521
|
-
default: o(() => [
|
|
522
|
-
l(U, {
|
|
523
|
-
command: s(h).APPROVAL_PASS
|
|
524
|
-
}, {
|
|
525
|
-
default: o(() => [
|
|
526
|
-
l(R, { size: "14" }, {
|
|
527
|
-
default: o(() => [
|
|
528
|
-
l(Y)
|
|
529
|
-
]),
|
|
530
|
-
_: 1
|
|
531
|
-
}),
|
|
532
|
-
m(" " + u(a.$t("goodsSpu.batchApprovaled")), 1)
|
|
533
|
-
]),
|
|
534
|
-
_: 1
|
|
535
|
-
}, 8, ["command"]),
|
|
536
|
-
l(U, {
|
|
537
|
-
command: s(h).APPROVAL_NOT_PASS
|
|
538
|
-
}, {
|
|
539
|
-
default: o(() => [
|
|
540
|
-
l(R, { size: "14" }, {
|
|
541
|
-
default: o(() => [
|
|
542
|
-
l(F)
|
|
543
|
-
]),
|
|
544
|
-
_: 1
|
|
545
|
-
}),
|
|
546
|
-
m(" " + u(a.$t("goodsSpu.batchRejected")), 1)
|
|
547
|
-
]),
|
|
548
|
-
_: 1
|
|
549
|
-
}, 8, ["command"])
|
|
550
|
-
]),
|
|
551
|
-
_: 1
|
|
552
|
-
})
|
|
553
|
-
]),
|
|
554
|
-
default: o(() => [
|
|
555
|
-
l(V, { type: "primary" }, {
|
|
556
|
-
default: o(() => [
|
|
557
|
-
m(u(a.$t("goodsSpu.batchApproval")) + " ", 1),
|
|
558
|
-
l(R, { class: "el-icon--right" }, {
|
|
559
|
-
default: o(() => [
|
|
560
|
-
l(j)
|
|
561
|
-
]),
|
|
562
|
-
_: 1
|
|
563
|
-
})
|
|
564
|
-
]),
|
|
565
|
-
_: 1
|
|
566
|
-
})
|
|
567
|
-
]),
|
|
568
|
-
_: 1
|
|
569
|
-
})), [
|
|
570
|
-
[_, ["goods:goods_spu:approve"]]
|
|
571
|
-
]) : I("", !0)
|
|
572
|
-
]),
|
|
573
|
-
_: 1
|
|
574
|
-
}),
|
|
575
|
-
l(k, {
|
|
576
|
-
span: 7,
|
|
577
|
-
class: "container-float"
|
|
578
|
-
}, {
|
|
579
|
-
default: o(() => [
|
|
580
|
-
l(me, {
|
|
581
|
-
modelValue: s(L),
|
|
582
|
-
"onUpdate:modelValue": t[10] || (t[10] = (e) => J(L) ? L.value = e : L = e),
|
|
583
|
-
"label-name": "goods/goods-spu"
|
|
584
|
-
}, null, 8, ["modelValue"])
|
|
585
|
-
]),
|
|
586
|
-
_: 1
|
|
587
|
-
})
|
|
588
|
-
]),
|
|
589
|
-
_: 1
|
|
590
|
-
})
|
|
591
|
-
]),
|
|
592
|
-
footer: o(() => [
|
|
593
|
-
s(N) > 0 ? (r(), w(fe, {
|
|
594
|
-
key: 0,
|
|
595
|
-
total: s(N),
|
|
596
|
-
"onUpdate:total": t[11] || (t[11] = (e) => J(N) ? N.value = e : null),
|
|
597
|
-
"current-page": c.value.curPage,
|
|
598
|
-
"onUpdate:currentPage": t[12] || (t[12] = (e) => c.value.curPage = e),
|
|
599
|
-
"page-size": c.value.pageSize,
|
|
600
|
-
"onUpdate:pageSize": t[13] || (t[13] = (e) => c.value.pageSize = e),
|
|
601
|
-
onPagination: t[14] || (t[14] = (e) => s(n).getList())
|
|
602
|
-
}, null, 8, ["total", "current-page", "page-size"])) : I("", !0)
|
|
603
|
-
]),
|
|
604
|
-
default: o(() => [
|
|
605
|
-
l(ge, {
|
|
606
|
-
ref_key: "multipleTableRef",
|
|
607
|
-
ref: A,
|
|
608
|
-
"row-key": "spuId",
|
|
609
|
-
"list-loading": s(x),
|
|
610
|
-
data: s(ee),
|
|
611
|
-
"table-label": s(L),
|
|
612
|
-
onSelectionChange: ae,
|
|
613
|
-
onSortChange: se
|
|
614
|
-
}, {
|
|
615
|
-
categoryId: o((e) => [
|
|
616
|
-
(r(!0), v(D, null, B(e.data.row.categoryIds, (f) => (r(), v("span", {
|
|
617
|
-
key: f,
|
|
618
|
-
style: { "margin-right": "8px", "margin-bottom": "4px" }
|
|
619
|
-
}, u(s(S).goodsCategoryListBizLayDict.getValue(f) || f), 1))), 128))
|
|
620
|
-
]),
|
|
621
|
-
picUrls: o((e) => [
|
|
622
|
-
P("span", null, [
|
|
623
|
-
l(ce, {
|
|
624
|
-
src: s(W).imageUrl(e.data.row.picUrls.split(",")[0], 0, 0),
|
|
625
|
-
"preview-src-list": [
|
|
626
|
-
s(W).imageUrl(e.data.row.picUrls.split(",")[0])
|
|
627
|
-
],
|
|
628
|
-
"preview-teleported": "",
|
|
629
|
-
"hide-on-click-modal": "",
|
|
630
|
-
fit: "contain"
|
|
631
|
-
}, null, 8, ["src", "preview-src-list"])
|
|
632
|
-
])
|
|
633
|
-
]),
|
|
634
|
-
shelf: o((e) => [
|
|
635
|
-
P("span", null, [
|
|
636
|
-
l(Q, {
|
|
637
|
-
modelValue: e.data.row.shelf,
|
|
638
|
-
"onUpdate:modelValue": (f) => e.data.row.shelf = f,
|
|
639
|
-
onClick: (f) => s(n).enableRecord(e.data.row, e.data.row.shelf)
|
|
640
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "onClick"])
|
|
641
|
-
])
|
|
642
|
-
]),
|
|
643
|
-
minPrice: o((e) => [
|
|
644
|
-
P("span", null, [
|
|
645
|
-
e.data.row.minPrice === e.data.row.maxPrice ? (r(), v(D, { key: 0 }, [
|
|
646
|
-
m(u(e.data.row.minPrice), 1)
|
|
647
|
-
], 64)) : (r(), v(D, { key: 1 }, [
|
|
648
|
-
m(u(e.data.row.minPrice) + " ~ " + u(e.data.row.maxPrice), 1)
|
|
649
|
-
], 64))
|
|
650
|
-
])
|
|
651
|
-
]),
|
|
652
|
-
specType: o((e) => [
|
|
653
|
-
P("span", null, u(s(S).specTypeEnum.getEnumValue(e.data.row.specType)), 1)
|
|
654
|
-
]),
|
|
655
|
-
approvalStatus: o((e) => [
|
|
656
|
-
P("span", null, u(s(S).approvalStatusEnum.getEnumValue(
|
|
657
|
-
e.data.row.approvalStatus
|
|
658
|
-
)), 1)
|
|
659
|
-
]),
|
|
660
|
-
updateTime: o((e) => [
|
|
661
|
-
P("span", null, u(s(X).$moment.formatDate(
|
|
662
|
-
e.data.row.updateTime,
|
|
663
|
-
"YYYY-MM-DD HH:mm:ss"
|
|
664
|
-
)), 1)
|
|
665
|
-
]),
|
|
666
|
-
enable: o((e) => [
|
|
667
|
-
l(Q, {
|
|
668
|
-
modelValue: e.data.row.enable,
|
|
669
|
-
"onUpdate:modelValue": (f) => e.data.row.enable = f,
|
|
670
|
-
onChange: (f) => s(n).enableRecord(e.data.row, e.data.row.enable)
|
|
671
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
672
|
-
]),
|
|
673
|
-
operation: o((e) => [
|
|
674
|
-
$.approvalStatus !== s(h).APPROVAL_PASS ? C((r(), v("span", {
|
|
675
|
-
key: 0,
|
|
676
|
-
class: "el-button-color",
|
|
677
|
-
onClick: (f) => le(e.data.row)
|
|
678
|
-
}, [
|
|
679
|
-
m(u(a.$t("common.edit")), 1)
|
|
680
|
-
], 8, Ie)), [
|
|
681
|
-
[_, ["goods:goods_spu:update"]]
|
|
682
|
-
]) : I("", !0),
|
|
683
|
-
$.approvalStatus !== s(h).APPROVAL_PASS ? C((r(), v("span", {
|
|
684
|
-
key: 1,
|
|
685
|
-
class: "el-button-color dropdown-left",
|
|
686
|
-
onClick: (f) => s(n).deleteRecord(e.data.row)
|
|
687
|
-
}, [
|
|
688
|
-
m(u(a.$t("common.delete")), 1)
|
|
689
|
-
], 8, $e)), [
|
|
690
|
-
[_, ["goods:goods_spu:delete"]]
|
|
691
|
-
]) : I("", !0),
|
|
692
|
-
C((r(), v("span", {
|
|
693
|
-
class: _e(
|
|
694
|
-
$.approvalStatus !== s(h).APPROVAL_PASS ? "el-button-color dropdown-left" : "el-button-color"
|
|
695
|
-
),
|
|
696
|
-
onClick: (f) => te(e.data.row)
|
|
697
|
-
}, [
|
|
698
|
-
m(u(a.$t("common.view")), 1)
|
|
699
|
-
], 10, Re)), [
|
|
700
|
-
[_, ["goods:goods_spu:view"]]
|
|
701
|
-
])
|
|
702
|
-
]),
|
|
703
|
-
_: 1
|
|
704
|
-
}, 8, ["list-loading", "data", "table-label"])
|
|
705
|
-
]),
|
|
706
|
-
_: 1
|
|
707
|
-
})
|
|
708
|
-
]);
|
|
709
|
-
};
|
|
710
|
-
}
|
|
711
|
-
});
|
|
712
|
-
export {
|
|
713
|
-
Oe as _
|
|
714
|
-
};
|