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