xyvcard-goods 0.0.19 → 0.0.21
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-BcokSKfN.mjs +183 -0
- package/dist/{edit-E57LIt5x.mjs → edit-CkR-I5aJ.mjs} +1 -1
- package/dist/edit-DFc_TNP3.mjs +590 -0
- package/dist/edit-DxnsmaXV.mjs +186 -0
- package/dist/edit-tCGa_9Kt.mjs +507 -0
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BHplO2tN.mjs → edit.vue_vue_type_script_setup_true_lang-BlNwikUO.mjs} +1 -1
- package/dist/{goodsList-0TMcPn_Q.mjs → goodsList-HmPAwD_C.mjs} +1 -1
- package/dist/goodsList-TX2ZnRR9.mjs +4 -0
- package/dist/goodsList.vue_vue_type_script_setup_true_lang-CGV1dm3W.mjs +714 -0
- package/dist/goodsList.vue_vue_type_script_setup_true_lang-f1Fc6pbd.mjs +576 -0
- package/dist/{index-CnyW3rxw.mjs → index-B0SXNsHW.mjs} +2 -2
- package/dist/{index-nSAowuoJ.mjs → index-BZw9XfQo.mjs} +2 -2
- package/dist/index-CqOoZ5xQ.mjs +305 -0
- package/dist/index-Ctva-XF0.mjs +318 -0
- package/dist/index-Dt3PP8dN.mjs +53 -0
- package/dist/index-VFsDup14.mjs +324 -0
- package/dist/index-jTDhsbYM.mjs +141 -0
- package/dist/index-r0u-27m7.mjs +141 -0
- package/dist/index.mjs +557 -531
- package/dist/info-BTKv0IRt.mjs +365 -0
- package/dist/info-CrghLmS4.mjs +365 -0
- package/dist/sku-B-IzfYLq.mjs +52 -0
- package/dist/skuForm-C7rF2noo.mjs +475 -0
- package/dist/{skuForm-DyYIl6H4.mjs → skuForm-D2n8sQJo.mjs} +154 -106
- package/dist/skuTable-CEwT-I1Q.mjs +592 -0
- package/dist/skuTable-D-awlXgj.mjs +592 -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/constant.d.ts +4 -0
- package/dts/lang/goods/zh-cn.d.ts +19 -4
- package/dts/router/index.d.ts +1 -0
- package/dts/views/goods/goods-combination/edit.vue.d.ts +2 -0
- package/dts/views/goods/goods-combination/goodsList.vue.d.ts +14 -0
- package/dts/views/goods/goods-combination/index.vue.d.ts +2 -0
- package/dts/views/goods/goods-combination/info.vue.d.ts +2 -0
- package/dts/views/goods/goods-combination/skuForm.vue.d.ts +29 -0
- package/dts/views/goods/goods-combination/skuTable.vue.d.ts +40 -0
- package/package.json +61 -61
- 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
|
@@ -1,626 +0,0 @@
|
|
|
1
|
-
import { defineComponent as fe, getCurrentInstance as ge, ref as Q, onActivated as Se, resolveComponent as p, resolveDirective as he, openBlock as m, createElementBlock as A, createElementVNode as b, createVNode as t, withCtx as o, withKeys as Y, unref as s, createTextVNode as i, toDisplayString as u, withDirectives as w, createBlock as P, createCommentVNode as C, isRef as K, Fragment as M, normalizeClass as we } from "vue";
|
|
2
|
-
import { ElMessage as g } from "element-plus";
|
|
3
|
-
import { useRouter as _e } from "vue-router";
|
|
4
|
-
import { useTableHooks as ye, fileApi as G } from "jmash-core";
|
|
5
|
-
import { useI18n as ve } from "vue-i18n";
|
|
6
|
-
import { goodsSpuApi as N } from "./index.mjs";
|
|
7
|
-
import { D as T, C as _ } from "./index-CmKF2zdn.mjs";
|
|
8
|
-
const be = { class: "app-container" }, Ce = { class: "search-container" }, Pe = ["onClick"], ke = ["onClick"], Ve = ["onClick"], Ue = /* @__PURE__ */ fe({
|
|
9
|
-
__name: "goodsList",
|
|
10
|
-
props: {
|
|
11
|
-
shelf: {
|
|
12
|
-
type: String,
|
|
13
|
-
default: () => ""
|
|
14
|
-
},
|
|
15
|
-
approvalStatus: {
|
|
16
|
-
type: String,
|
|
17
|
-
default: () => ""
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
setup(k) {
|
|
21
|
-
const { t: r } = ve(), D = _e(), c = k, { proxy: J } = ge(), f = Q({
|
|
22
|
-
curPage: 1,
|
|
23
|
-
pageSize: 10,
|
|
24
|
-
shelf: c.shelf ? c.shelf : void 0,
|
|
25
|
-
approvalStatus: c.approvalStatus ? c.approvalStatus : void 0
|
|
26
|
-
}), {
|
|
27
|
-
tableHooks: n,
|
|
28
|
-
multipleTableRef: R,
|
|
29
|
-
queryFormRef: O,
|
|
30
|
-
listLoading: W,
|
|
31
|
-
tableData: X,
|
|
32
|
-
total: I
|
|
33
|
-
} = ye(r, N, f), Z = () => {
|
|
34
|
-
O.value[0].resetFields();
|
|
35
|
-
};
|
|
36
|
-
let $ = Q([
|
|
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: "categoryId",
|
|
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
|
-
T.shopInfoBizDict.useValues(), T.goodsCategoryListBizLayDict.useValues();
|
|
135
|
-
function x() {
|
|
136
|
-
D.push({ path: "/rawgoods/goods-spu/edit" });
|
|
137
|
-
}
|
|
138
|
-
function ee(a) {
|
|
139
|
-
D.push({
|
|
140
|
-
path: "/rawgoods/goods-spu/edit",
|
|
141
|
-
query: { spuId: a.spuId }
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
function oe(a) {
|
|
145
|
-
D.push({
|
|
146
|
-
path: "/rawgoods/goods-spu/info",
|
|
147
|
-
query: { spuId: a.spuId }
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
function te(a) {
|
|
151
|
-
n.selectionRows.value = a;
|
|
152
|
-
}
|
|
153
|
-
function ae(a) {
|
|
154
|
-
n.handleSort(a.prop, a.order);
|
|
155
|
-
}
|
|
156
|
-
function le(a) {
|
|
157
|
-
if (n.selectionRows.value.length === 0) {
|
|
158
|
-
g({
|
|
159
|
-
message: r("goodsSpu.chooseShelf"),
|
|
160
|
-
type: "warning"
|
|
161
|
-
});
|
|
162
|
-
return;
|
|
163
|
-
}
|
|
164
|
-
const l = n.selectionRows.value.map((d) => d.spuId);
|
|
165
|
-
N.enable({ spuId: l }, JSON.parse(a)).then((d) => {
|
|
166
|
-
var S;
|
|
167
|
-
d.status === 200 && (a === "true" ? g({
|
|
168
|
-
message: r("goodsSpu.successShelf") + d.data + r("common.stripData"),
|
|
169
|
-
type: "success"
|
|
170
|
-
}) : g({
|
|
171
|
-
message: r("goodsSpu.successOffShelf") + d.data + r("common.stripData"),
|
|
172
|
-
type: "success"
|
|
173
|
-
}), n.getList(), (S = R.value) == null || S.clearSelection());
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
function se() {
|
|
177
|
-
if (n.selectionRows.value.length === 0) {
|
|
178
|
-
g({
|
|
179
|
-
message: r("goodsSpu.chooseShelf"),
|
|
180
|
-
type: "warning"
|
|
181
|
-
});
|
|
182
|
-
return;
|
|
183
|
-
}
|
|
184
|
-
const a = n.selectionRows.value.map((l) => l.spuId);
|
|
185
|
-
N.enable({ spuId: a }, !0).then((l) => {
|
|
186
|
-
var d;
|
|
187
|
-
l.status === 200 && (g({
|
|
188
|
-
message: r("goodsSpu.successShelf") + l.data + r("common.stripData"),
|
|
189
|
-
type: "success"
|
|
190
|
-
}), n.getList(), (d = R.value) == null || d.clearSelection());
|
|
191
|
-
});
|
|
192
|
-
}
|
|
193
|
-
function ne() {
|
|
194
|
-
if (n.selectionRows.value.length === 0) {
|
|
195
|
-
g({
|
|
196
|
-
message: r("goodsSpu.chooseShelf"),
|
|
197
|
-
type: "warning"
|
|
198
|
-
});
|
|
199
|
-
return;
|
|
200
|
-
}
|
|
201
|
-
const a = n.selectionRows.value.map((l) => l.spuId);
|
|
202
|
-
N.enable({ spuId: a }, !1).then((l) => {
|
|
203
|
-
var d;
|
|
204
|
-
l.status === 200 && g({
|
|
205
|
-
message: r("goodsSpu.successOffShelf") + l.data + r("common.stripData"),
|
|
206
|
-
type: "success"
|
|
207
|
-
}), n.getList(), (d = R.value) == null || d.clearSelection();
|
|
208
|
-
});
|
|
209
|
-
}
|
|
210
|
-
function ue(a) {
|
|
211
|
-
if (n.selectionRows.value.length === 0) {
|
|
212
|
-
g({
|
|
213
|
-
message: r("goodsSpu.chooseShelf"),
|
|
214
|
-
type: "warning"
|
|
215
|
-
});
|
|
216
|
-
return;
|
|
217
|
-
}
|
|
218
|
-
const l = n.selectionRows.value.map((d) => d.spuId);
|
|
219
|
-
N.audit({ spuId: l }, a).then((d) => {
|
|
220
|
-
var S;
|
|
221
|
-
d.status === 200 && (a === _.APPROVAL_PASS ? g({
|
|
222
|
-
message: r("goodsSpu.successApproval") + d.data + r("common.stripData"),
|
|
223
|
-
type: "success"
|
|
224
|
-
}) : g({
|
|
225
|
-
message: r("goodsSpu.successFilled") + d.data + r("common.stripData"),
|
|
226
|
-
type: "success"
|
|
227
|
-
}), n.getList(), (S = R.value) == null || S.clearSelection());
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
return Se(() => {
|
|
231
|
-
n.getList();
|
|
232
|
-
}), (a, l) => {
|
|
233
|
-
const d = p("el-input"), S = p("el-form-item"), L = p("el-col"), y = p("el-button"), z = p("el-row"), de = p("el-form"), E = p("arrow-down"), V = p("el-icon"), j = p("Unlock"), U = p("el-dropdown-item"), B = p("Lock"), q = p("el-dropdown-menu"), F = p("el-dropdown"), pe = p("jmash-column-select"), re = p("el-image"), H = p("el-switch"), ie = p("jmash-table"), me = p("jmash-pagination"), ce = p("el-card"), h = he("hasPerm");
|
|
234
|
-
return m(), A("div", be, [
|
|
235
|
-
b("div", Ce, [
|
|
236
|
-
t(de, {
|
|
237
|
-
ref_key: "queryFormRef",
|
|
238
|
-
ref: O,
|
|
239
|
-
model: f.value,
|
|
240
|
-
inline: !0
|
|
241
|
-
}, {
|
|
242
|
-
default: o(() => [
|
|
243
|
-
t(z, null, {
|
|
244
|
-
default: o(() => [
|
|
245
|
-
t(L, { span: 6 }, {
|
|
246
|
-
default: o(() => [
|
|
247
|
-
t(S, {
|
|
248
|
-
label: a.$t("goodsSpu.spuCode"),
|
|
249
|
-
prop: "spuCode"
|
|
250
|
-
}, {
|
|
251
|
-
default: o(() => [
|
|
252
|
-
t(d, {
|
|
253
|
-
modelValue: f.value.spuCode,
|
|
254
|
-
"onUpdate:modelValue": l[0] || (l[0] = (e) => f.value.spuCode = e),
|
|
255
|
-
placeholder: a.$t("goodsSpu.spuCode"),
|
|
256
|
-
class: "!w-[203px]",
|
|
257
|
-
onKeyup: l[1] || (l[1] = Y((e) => s(n).handleQuery(), ["enter"]))
|
|
258
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
259
|
-
]),
|
|
260
|
-
_: 1
|
|
261
|
-
}, 8, ["label"])
|
|
262
|
-
]),
|
|
263
|
-
_: 1
|
|
264
|
-
}),
|
|
265
|
-
t(L, { span: 6 }, {
|
|
266
|
-
default: o(() => [
|
|
267
|
-
t(S, {
|
|
268
|
-
label: a.$t("goodsSpu.spuName"),
|
|
269
|
-
prop: "likeSpuName"
|
|
270
|
-
}, {
|
|
271
|
-
default: o(() => [
|
|
272
|
-
t(d, {
|
|
273
|
-
modelValue: f.value.likeSpuName,
|
|
274
|
-
"onUpdate:modelValue": l[2] || (l[2] = (e) => f.value.likeSpuName = e),
|
|
275
|
-
placeholder: a.$t("goodsSpu.spuName"),
|
|
276
|
-
class: "!w-[203px]",
|
|
277
|
-
onKeyup: l[3] || (l[3] = Y((e) => s(n).handleQuery(), ["enter"]))
|
|
278
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
279
|
-
]),
|
|
280
|
-
_: 1
|
|
281
|
-
}, 8, ["label"])
|
|
282
|
-
]),
|
|
283
|
-
_: 1
|
|
284
|
-
}),
|
|
285
|
-
t(L, { span: 12 }, {
|
|
286
|
-
default: o(() => [
|
|
287
|
-
t(S, { class: "search-btn" }, {
|
|
288
|
-
default: o(() => [
|
|
289
|
-
t(y, {
|
|
290
|
-
type: "primary",
|
|
291
|
-
onClick: l[4] || (l[4] = (e) => s(n).handleQuery())
|
|
292
|
-
}, {
|
|
293
|
-
default: o(() => [
|
|
294
|
-
i(u(a.$t("common.search")), 1)
|
|
295
|
-
]),
|
|
296
|
-
_: 1
|
|
297
|
-
}),
|
|
298
|
-
t(y, { onClick: Z }, {
|
|
299
|
-
default: o(() => [
|
|
300
|
-
i(u(a.$t("common.reset")), 1)
|
|
301
|
-
]),
|
|
302
|
-
_: 1
|
|
303
|
-
})
|
|
304
|
-
]),
|
|
305
|
-
_: 1
|
|
306
|
-
})
|
|
307
|
-
]),
|
|
308
|
-
_: 1
|
|
309
|
-
})
|
|
310
|
-
]),
|
|
311
|
-
_: 1
|
|
312
|
-
})
|
|
313
|
-
]),
|
|
314
|
-
_: 1
|
|
315
|
-
}, 8, ["model"])
|
|
316
|
-
]),
|
|
317
|
-
t(ce, {
|
|
318
|
-
shadow: "never",
|
|
319
|
-
class: "table-container"
|
|
320
|
-
}, {
|
|
321
|
-
header: o(() => [
|
|
322
|
-
t(z, null, {
|
|
323
|
-
default: o(() => [
|
|
324
|
-
t(L, { span: 17 }, {
|
|
325
|
-
default: o(() => [
|
|
326
|
-
w((m(), P(y, {
|
|
327
|
-
type: "primary",
|
|
328
|
-
onClick: x
|
|
329
|
-
}, {
|
|
330
|
-
default: o(() => [
|
|
331
|
-
i(u(a.$t("common.add")), 1)
|
|
332
|
-
]),
|
|
333
|
-
_: 1
|
|
334
|
-
})), [
|
|
335
|
-
[h, ["goods:goods_spu:add"]]
|
|
336
|
-
]),
|
|
337
|
-
k.approvalStatus !== s(_).APPROVAL_PASS ? w((m(), P(y, {
|
|
338
|
-
key: 0,
|
|
339
|
-
type: "primary",
|
|
340
|
-
onClick: l[5] || (l[5] = (e) => s(n).deleteRecords())
|
|
341
|
-
}, {
|
|
342
|
-
default: o(() => [
|
|
343
|
-
i(u(a.$t("common.batchDelete")), 1)
|
|
344
|
-
]),
|
|
345
|
-
_: 1
|
|
346
|
-
})), [
|
|
347
|
-
[h, ["goods:goods_spu:delete"]]
|
|
348
|
-
]) : C("", !0),
|
|
349
|
-
k.approvalStatus === s(_).APPROVAL_PASS ? w((m(), P(y, {
|
|
350
|
-
key: 1,
|
|
351
|
-
type: "primary",
|
|
352
|
-
onClick: ne
|
|
353
|
-
}, {
|
|
354
|
-
default: o(() => [
|
|
355
|
-
i(u(a.$t("goodsSpu.batchOffShelf")), 1)
|
|
356
|
-
]),
|
|
357
|
-
_: 1
|
|
358
|
-
})), [
|
|
359
|
-
[h, ["goods:goods_spu:onSale"]]
|
|
360
|
-
]) : C("", !0),
|
|
361
|
-
c.shelf === "false" ? w((m(), P(y, {
|
|
362
|
-
key: 2,
|
|
363
|
-
type: "primary",
|
|
364
|
-
onClick: se
|
|
365
|
-
}, {
|
|
366
|
-
default: o(() => [
|
|
367
|
-
i(u(a.$t("goodsSpu.batchShelf")), 1)
|
|
368
|
-
]),
|
|
369
|
-
_: 1
|
|
370
|
-
})), [
|
|
371
|
-
[h, ["goods:goods_spu:onSale"]]
|
|
372
|
-
]) : C("", !0),
|
|
373
|
-
c.approvalStatus === "" && c.shelf === "" ? w((m(), P(F, {
|
|
374
|
-
key: 3,
|
|
375
|
-
class: "dropdown-left",
|
|
376
|
-
onCommand: le
|
|
377
|
-
}, {
|
|
378
|
-
dropdown: o(() => [
|
|
379
|
-
t(q, null, {
|
|
380
|
-
default: o(() => [
|
|
381
|
-
t(U, { command: "true" }, {
|
|
382
|
-
default: o(() => [
|
|
383
|
-
t(V, { size: "14" }, {
|
|
384
|
-
default: o(() => [
|
|
385
|
-
t(j)
|
|
386
|
-
]),
|
|
387
|
-
_: 1
|
|
388
|
-
}),
|
|
389
|
-
i(" " + u(a.$t("goodsSpu.batchShelf")), 1)
|
|
390
|
-
]),
|
|
391
|
-
_: 1
|
|
392
|
-
}),
|
|
393
|
-
t(U, { command: "false" }, {
|
|
394
|
-
default: o(() => [
|
|
395
|
-
t(V, { size: "14" }, {
|
|
396
|
-
default: o(() => [
|
|
397
|
-
t(B)
|
|
398
|
-
]),
|
|
399
|
-
_: 1
|
|
400
|
-
}),
|
|
401
|
-
i(" " + u(a.$t("goodsSpu.batchOffShelf")), 1)
|
|
402
|
-
]),
|
|
403
|
-
_: 1
|
|
404
|
-
})
|
|
405
|
-
]),
|
|
406
|
-
_: 1
|
|
407
|
-
})
|
|
408
|
-
]),
|
|
409
|
-
default: o(() => [
|
|
410
|
-
t(y, { type: "primary" }, {
|
|
411
|
-
default: o(() => [
|
|
412
|
-
i(u(a.$t("goodsSpu.batchShelf")) + "/" + u(a.$t("goodsSpu.batchOffShelf")) + " ", 1),
|
|
413
|
-
t(V, { class: "el-icon--right" }, {
|
|
414
|
-
default: o(() => [
|
|
415
|
-
t(E)
|
|
416
|
-
]),
|
|
417
|
-
_: 1
|
|
418
|
-
})
|
|
419
|
-
]),
|
|
420
|
-
_: 1
|
|
421
|
-
})
|
|
422
|
-
]),
|
|
423
|
-
_: 1
|
|
424
|
-
})), [
|
|
425
|
-
[h, ["goods:goods_spu:onSale"]]
|
|
426
|
-
]) : C("", !0),
|
|
427
|
-
c.approvalStatus === "" && c.shelf === "" || c.approvalStatus === s(_).APPROVALING ? w((m(), P(F, {
|
|
428
|
-
key: 4,
|
|
429
|
-
class: "dropdown-left",
|
|
430
|
-
onCommand: ue
|
|
431
|
-
}, {
|
|
432
|
-
dropdown: o(() => [
|
|
433
|
-
t(q, null, {
|
|
434
|
-
default: o(() => [
|
|
435
|
-
t(U, {
|
|
436
|
-
command: s(_).APPROVAL_PASS
|
|
437
|
-
}, {
|
|
438
|
-
default: o(() => [
|
|
439
|
-
t(V, { size: "14" }, {
|
|
440
|
-
default: o(() => [
|
|
441
|
-
t(j)
|
|
442
|
-
]),
|
|
443
|
-
_: 1
|
|
444
|
-
}),
|
|
445
|
-
i(" " + u(a.$t("goodsSpu.batchApprovaled")), 1)
|
|
446
|
-
]),
|
|
447
|
-
_: 1
|
|
448
|
-
}, 8, ["command"]),
|
|
449
|
-
t(U, {
|
|
450
|
-
command: s(_).APPROVAL_NOT_PASS
|
|
451
|
-
}, {
|
|
452
|
-
default: o(() => [
|
|
453
|
-
t(V, { size: "14" }, {
|
|
454
|
-
default: o(() => [
|
|
455
|
-
t(B)
|
|
456
|
-
]),
|
|
457
|
-
_: 1
|
|
458
|
-
}),
|
|
459
|
-
i(" " + u(a.$t("goodsSpu.batchRejected")), 1)
|
|
460
|
-
]),
|
|
461
|
-
_: 1
|
|
462
|
-
}, 8, ["command"])
|
|
463
|
-
]),
|
|
464
|
-
_: 1
|
|
465
|
-
})
|
|
466
|
-
]),
|
|
467
|
-
default: o(() => [
|
|
468
|
-
t(y, { type: "primary" }, {
|
|
469
|
-
default: o(() => [
|
|
470
|
-
i(u(a.$t("goodsSpu.batchApproval")) + " ", 1),
|
|
471
|
-
t(V, { class: "el-icon--right" }, {
|
|
472
|
-
default: o(() => [
|
|
473
|
-
t(E)
|
|
474
|
-
]),
|
|
475
|
-
_: 1
|
|
476
|
-
})
|
|
477
|
-
]),
|
|
478
|
-
_: 1
|
|
479
|
-
})
|
|
480
|
-
]),
|
|
481
|
-
_: 1
|
|
482
|
-
})), [
|
|
483
|
-
[h, ["goods:goods_spu:approve"]]
|
|
484
|
-
]) : C("", !0)
|
|
485
|
-
]),
|
|
486
|
-
_: 1
|
|
487
|
-
}),
|
|
488
|
-
t(L, {
|
|
489
|
-
span: 7,
|
|
490
|
-
class: "container-float"
|
|
491
|
-
}, {
|
|
492
|
-
default: o(() => [
|
|
493
|
-
t(pe, {
|
|
494
|
-
modelValue: s($),
|
|
495
|
-
"onUpdate:modelValue": l[6] || (l[6] = (e) => K($) ? $.value = e : $ = e),
|
|
496
|
-
"label-name": "goods/goods-spu"
|
|
497
|
-
}, null, 8, ["modelValue"])
|
|
498
|
-
]),
|
|
499
|
-
_: 1
|
|
500
|
-
})
|
|
501
|
-
]),
|
|
502
|
-
_: 1
|
|
503
|
-
})
|
|
504
|
-
]),
|
|
505
|
-
footer: o(() => [
|
|
506
|
-
s(I) > 0 ? (m(), P(me, {
|
|
507
|
-
key: 0,
|
|
508
|
-
total: s(I),
|
|
509
|
-
"onUpdate:total": l[7] || (l[7] = (e) => K(I) ? I.value = e : null),
|
|
510
|
-
"current-page": f.value.curPage,
|
|
511
|
-
"onUpdate:currentPage": l[8] || (l[8] = (e) => f.value.curPage = e),
|
|
512
|
-
"page-size": f.value.pageSize,
|
|
513
|
-
"onUpdate:pageSize": l[9] || (l[9] = (e) => f.value.pageSize = e),
|
|
514
|
-
onPagination: l[10] || (l[10] = (e) => s(n).getList())
|
|
515
|
-
}, null, 8, ["total", "current-page", "page-size"])) : C("", !0)
|
|
516
|
-
]),
|
|
517
|
-
default: o(() => [
|
|
518
|
-
t(ie, {
|
|
519
|
-
ref_key: "multipleTableRef",
|
|
520
|
-
ref: R,
|
|
521
|
-
"row-key": "spuId",
|
|
522
|
-
"list-loading": s(W),
|
|
523
|
-
data: s(X),
|
|
524
|
-
"table-label": s($),
|
|
525
|
-
onSelectionChange: te,
|
|
526
|
-
onSortChange: ae
|
|
527
|
-
}, {
|
|
528
|
-
categoryId: o((e) => [
|
|
529
|
-
b("span", null, u(s(T).goodsCategoryListBizLayDict.getValue(
|
|
530
|
-
e.data.row.categoryId
|
|
531
|
-
)), 1)
|
|
532
|
-
]),
|
|
533
|
-
picUrls: o((e) => [
|
|
534
|
-
b("span", null, [
|
|
535
|
-
t(re, {
|
|
536
|
-
src: s(G).imageUrl(e.data.row.picUrls.split(",")[0], 0, 0),
|
|
537
|
-
"preview-src-list": [
|
|
538
|
-
s(G).imageUrl(e.data.row.picUrls.split(",")[0])
|
|
539
|
-
],
|
|
540
|
-
"preview-teleported": "",
|
|
541
|
-
"hide-on-click-modal": "",
|
|
542
|
-
fit: "contain"
|
|
543
|
-
}, null, 8, ["src", "preview-src-list"])
|
|
544
|
-
])
|
|
545
|
-
]),
|
|
546
|
-
shelf: o((e) => [
|
|
547
|
-
b("span", null, [
|
|
548
|
-
t(H, {
|
|
549
|
-
modelValue: e.data.row.shelf,
|
|
550
|
-
"onUpdate:modelValue": (v) => e.data.row.shelf = v,
|
|
551
|
-
onClick: (v) => s(n).enableRecord(e.data.row, e.data.row.shelf)
|
|
552
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "onClick"])
|
|
553
|
-
])
|
|
554
|
-
]),
|
|
555
|
-
minPrice: o((e) => [
|
|
556
|
-
b("span", null, [
|
|
557
|
-
e.data.row.minPrice === e.data.row.maxPrice ? (m(), A(M, { key: 0 }, [
|
|
558
|
-
i(u(e.data.row.minPrice), 1)
|
|
559
|
-
], 64)) : (m(), A(M, { key: 1 }, [
|
|
560
|
-
i(u(e.data.row.minPrice) + " ~ " + u(e.data.row.maxPrice), 1)
|
|
561
|
-
], 64))
|
|
562
|
-
])
|
|
563
|
-
]),
|
|
564
|
-
specType: o((e) => [
|
|
565
|
-
b("span", null, u(s(T).specTypeEnum.getEnumValue(e.data.row.specType)), 1)
|
|
566
|
-
]),
|
|
567
|
-
approvalStatus: o((e) => [
|
|
568
|
-
b("span", null, u(s(T).approvalStatusEnum.getEnumValue(
|
|
569
|
-
e.data.row.approvalStatus
|
|
570
|
-
)), 1)
|
|
571
|
-
]),
|
|
572
|
-
updateTime: o((e) => [
|
|
573
|
-
b("span", null, u(s(J).$moment.formatDate(
|
|
574
|
-
e.data.row.updateTime,
|
|
575
|
-
"YYYY-MM-DD HH:mm:ss"
|
|
576
|
-
)), 1)
|
|
577
|
-
]),
|
|
578
|
-
enable: o((e) => [
|
|
579
|
-
t(H, {
|
|
580
|
-
modelValue: e.data.row.enable,
|
|
581
|
-
"onUpdate:modelValue": (v) => e.data.row.enable = v,
|
|
582
|
-
onChange: (v) => s(n).enableRecord(e.data.row, e.data.row.enable)
|
|
583
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
584
|
-
]),
|
|
585
|
-
operation: o((e) => [
|
|
586
|
-
k.approvalStatus !== s(_).APPROVAL_PASS ? w((m(), A("span", {
|
|
587
|
-
key: 0,
|
|
588
|
-
class: "el-button-color",
|
|
589
|
-
onClick: (v) => ee(e.data.row)
|
|
590
|
-
}, [
|
|
591
|
-
i(u(a.$t("common.edit")), 1)
|
|
592
|
-
], 8, Pe)), [
|
|
593
|
-
[h, ["goods:goods_spu:update"]]
|
|
594
|
-
]) : C("", !0),
|
|
595
|
-
k.approvalStatus !== s(_).APPROVAL_PASS ? w((m(), A("span", {
|
|
596
|
-
key: 1,
|
|
597
|
-
class: "el-button-color dropdown-left",
|
|
598
|
-
onClick: (v) => s(n).deleteRecord(e.data.row)
|
|
599
|
-
}, [
|
|
600
|
-
i(u(a.$t("common.delete")), 1)
|
|
601
|
-
], 8, ke)), [
|
|
602
|
-
[h, ["goods:goods_spu:delete"]]
|
|
603
|
-
]) : C("", !0),
|
|
604
|
-
w((m(), A("span", {
|
|
605
|
-
class: we(
|
|
606
|
-
k.approvalStatus !== s(_).APPROVAL_PASS ? "el-button-color dropdown-left" : "el-button-color"
|
|
607
|
-
),
|
|
608
|
-
onClick: (v) => oe(e.data.row)
|
|
609
|
-
}, [
|
|
610
|
-
i(u(a.$t("common.view")), 1)
|
|
611
|
-
], 10, Ve)), [
|
|
612
|
-
[h, ["goods:goods_spu:view"]]
|
|
613
|
-
])
|
|
614
|
-
]),
|
|
615
|
-
_: 1
|
|
616
|
-
}, 8, ["list-loading", "data", "table-label"])
|
|
617
|
-
]),
|
|
618
|
-
_: 1
|
|
619
|
-
})
|
|
620
|
-
]);
|
|
621
|
-
};
|
|
622
|
-
}
|
|
623
|
-
});
|
|
624
|
-
export {
|
|
625
|
-
Ue as _
|
|
626
|
-
};
|