xyvcard-goods 0.0.30 → 0.0.31
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/{ImageUpload-Dk6GY6PA.mjs → ImageUpload-BMw9FVJL.mjs} +2 -2
- package/dist/{edit-BY1AVieE.mjs → edit-Bgvy3bUQ.mjs} +6 -6
- package/dist/{edit-BYxk3lFr.mjs → edit-CAmBfr7s.mjs} +6 -6
- package/dist/{edit-D9JqZTHN.mjs → edit-CR4LNc6c.mjs} +1 -1
- package/dist/{edit-CRc6GqY4.mjs → edit-DEKgI9dl.mjs} +3 -3
- package/dist/{edit-ehVvbusK.mjs → edit-WZ-vVp0_.mjs} +3 -3
- package/dist/{edit.vue_vue_type_script_setup_true_lang-d769FSho.mjs → edit.vue_vue_type_script_setup_true_lang-CSjc2-0k.mjs} +76 -74
- package/dist/{index-CNVwLggO.mjs → index-B9EvyZqu.mjs} +149 -141
- package/dist/{index-Vu01FEMS.mjs → index-Ba-YRVAR.mjs} +2 -2
- package/dist/{index-BLO5ssji.mjs → index-Br8OH0po.mjs} +129 -122
- package/dist/{index-R43ND-Ey.mjs → index-CCDQbidt.mjs} +14 -14
- package/dist/{index-Dpms2ryP.mjs → index-CIOmQi5q.mjs} +1997 -1874
- package/dist/{index-DvCC73mO.mjs → index-CnXaunj4.mjs} +14 -14
- package/dist/{index-DloS7z9I.mjs → index-Dy5vhMgv.mjs} +1 -1
- package/dist/{index-BaX061kc.mjs → index-w0WaL9Bq.mjs} +8 -8
- package/dist/index.mjs +1 -1
- package/dist/{info-CzhzwS5C.mjs → info-Cp_2nx9w.mjs} +4 -4
- package/dist/{info-CJxN7XOi.mjs → info-CzP-Zg-I.mjs} +3 -3
- package/dist/{skuForm-K3S131WX.mjs → skuForm-CVp5ywg4.mjs} +19 -19
- package/dist/{skuForm-X1aeeUCX.mjs → skuForm-D_Q4iyk2.mjs} +6 -6
- package/dist/{skuTable-7VaeJKGp.mjs → skuTable-DcYM5x3V.mjs} +4 -4
- package/package.json +3 -3
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useRoute as
|
|
3
|
-
import { ElMessage as
|
|
4
|
-
import { useI18n as
|
|
5
|
-
import { useTableHooks as
|
|
6
|
-
import { D as
|
|
7
|
-
import { a as $ } from "./index-
|
|
8
|
-
const Ae = { class: "app-container" },
|
|
1
|
+
import { defineComponent as Se, ref as q, getCurrentInstance as be, onMounted as ye, onActivated as he, resolveComponent as i, resolveDirective as _e, createElementBlock as y, openBlock as r, createVNode as s, withCtx as o, Fragment as N, renderList as D, unref as t, createBlock as h, createCommentVNode as w, createElementVNode as A, withKeys as F, createTextVNode as b, toDisplayString as m, withDirectives as V, normalizeClass as we, isRef as G } from "vue";
|
|
2
|
+
import { useRoute as Ve, useRouter as Ce } from "vue-router";
|
|
3
|
+
import { ElMessage as P } from "element-plus";
|
|
4
|
+
import { useI18n as ke } from "vue-i18n";
|
|
5
|
+
import { useTableHooks as Pe, fileApi as H } from "jmash-core";
|
|
6
|
+
import { D as g, C as f } from "./index-Ba-YRVAR.mjs";
|
|
7
|
+
import { a as $ } from "./index-CIOmQi5q.mjs";
|
|
8
|
+
const Ae = { class: "app-container" }, Re = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "app-container"
|
|
11
|
-
}, Ie = { class: "search-container" },
|
|
11
|
+
}, Ie = { class: "search-container" }, Le = ["onClick"], $e = ["onClick"], Te = ["onClick"], je = /* @__PURE__ */ Se({
|
|
12
12
|
__name: "index",
|
|
13
|
-
setup(
|
|
14
|
-
|
|
15
|
-
const { t:
|
|
13
|
+
setup(Ne) {
|
|
14
|
+
g.goodsCategoryListBizLayDict.useValues(), g.brandListBizDict.useValues(), g.labelListBizDict.useValues(), g.shopInfoBizDict.useValues();
|
|
15
|
+
const { t: v } = ke(), E = Ve(), U = Ce(), u = q(0), d = {
|
|
16
16
|
0: {},
|
|
17
17
|
1: { shelf: "true", approvalStatus: f.APPROVAL_PASS },
|
|
18
18
|
2: { shelf: "false" },
|
|
19
19
|
3: { approvalStatus: f.APPROVALING },
|
|
20
20
|
4: { approvalStatus: f.APPROVAL_NOT_PASS }
|
|
21
|
-
}, { proxy:
|
|
21
|
+
}, { proxy: K } = be(), p = q({
|
|
22
22
|
curPage: 1,
|
|
23
23
|
pageSize: 10,
|
|
24
|
-
shelf:
|
|
25
|
-
approvalStatus:
|
|
24
|
+
shelf: d[u.value].shelf ? d[u.value].shelf : void 0,
|
|
25
|
+
approvalStatus: d[u.value].approvalStatus ? d[u.value].approvalStatus : void 0,
|
|
26
26
|
goodsType: f.GOODS_TYPE.NORMAL
|
|
27
27
|
}), {
|
|
28
|
-
tableHooks:
|
|
29
|
-
multipleTableRef:
|
|
30
|
-
queryFormRef:
|
|
28
|
+
tableHooks: n,
|
|
29
|
+
multipleTableRef: I,
|
|
30
|
+
queryFormRef: Q,
|
|
31
31
|
listLoading: W,
|
|
32
32
|
tableData: J,
|
|
33
33
|
total: T
|
|
34
|
-
} =
|
|
34
|
+
} = Pe(v, $, p);
|
|
35
35
|
let L = q([
|
|
36
36
|
{
|
|
37
37
|
label: "goodsSpu.spuName",
|
|
@@ -119,132 +119,140 @@ const Ae = { class: "app-container" }, Pe = {
|
|
|
119
119
|
]);
|
|
120
120
|
function X(a) {
|
|
121
121
|
const e = Number(a.index);
|
|
122
|
-
|
|
122
|
+
u.value = e, p.value.shelf = d[e].shelf || void 0, p.value.approvalStatus = d[e].approvalStatus || void 0, n.getList();
|
|
123
123
|
}
|
|
124
|
-
be(() => {
|
|
125
|
-
E.query.activeTab && (n.value = Number(E.query.activeTab), p.value.shelf = i[n.value].shelf || void 0, p.value.approvalStatus = i[n.value].approvalStatus || void 0);
|
|
126
|
-
}), ye(() => {
|
|
127
|
-
u.getList();
|
|
128
|
-
});
|
|
129
124
|
function Z() {
|
|
125
|
+
p.value = {
|
|
126
|
+
curPage: 1,
|
|
127
|
+
pageSize: 10,
|
|
128
|
+
shelf: d[u.value].shelf ? d[u.value].shelf : void 0,
|
|
129
|
+
approvalStatus: d[u.value].approvalStatus ? d[u.value].approvalStatus : void 0
|
|
130
|
+
}, n.getList();
|
|
131
|
+
}
|
|
132
|
+
ye(() => {
|
|
133
|
+
E.query.activeTab && (u.value = Number(E.query.activeTab), p.value.shelf = d[u.value].shelf || void 0, p.value.approvalStatus = d[u.value].approvalStatus || void 0);
|
|
134
|
+
}), he(() => {
|
|
135
|
+
n.getList();
|
|
136
|
+
});
|
|
137
|
+
function x() {
|
|
130
138
|
U.push({ path: "/rawgoods/goods-spu/edit" });
|
|
131
139
|
}
|
|
132
|
-
function
|
|
140
|
+
function ee(a) {
|
|
133
141
|
U.push({
|
|
134
142
|
path: "/rawgoods/goods-spu/edit",
|
|
135
143
|
query: { spuId: a.spuId }
|
|
136
144
|
});
|
|
137
145
|
}
|
|
138
|
-
function
|
|
146
|
+
function le(a) {
|
|
139
147
|
U.push({
|
|
140
148
|
path: "/rawgoods/goods-spu/info",
|
|
141
149
|
query: { spuId: a.spuId }
|
|
142
150
|
});
|
|
143
151
|
}
|
|
144
|
-
function le(a) {
|
|
145
|
-
u.selectionRows.value = a;
|
|
146
|
-
}
|
|
147
152
|
function oe(a) {
|
|
148
|
-
|
|
153
|
+
n.selectionRows.value = a;
|
|
154
|
+
}
|
|
155
|
+
function ae(a) {
|
|
156
|
+
n.handleSort(a.prop, a.order);
|
|
149
157
|
}
|
|
150
|
-
function
|
|
151
|
-
if (
|
|
152
|
-
|
|
153
|
-
message:
|
|
158
|
+
function te() {
|
|
159
|
+
if (n.selectionRows.value.length === 0) {
|
|
160
|
+
P({
|
|
161
|
+
message: v("goodsSpu.chooseShelf"),
|
|
154
162
|
type: "warning"
|
|
155
163
|
});
|
|
156
164
|
return;
|
|
157
165
|
}
|
|
158
|
-
const a =
|
|
166
|
+
const a = n.selectionRows.value.map(
|
|
159
167
|
(e) => e.spuId
|
|
160
168
|
);
|
|
161
169
|
$.enable({ spuId: a }, !0).then((e) => {
|
|
162
170
|
var c;
|
|
163
|
-
e.status === 200 && (
|
|
164
|
-
message:
|
|
171
|
+
e.status === 200 && (P({
|
|
172
|
+
message: v("goodsSpu.successShelf") + e.data + v("common.stripData"),
|
|
165
173
|
type: "success"
|
|
166
|
-
}),
|
|
174
|
+
}), n.getList(), (c = I.value) == null || c.clearSelection());
|
|
167
175
|
});
|
|
168
176
|
}
|
|
169
|
-
function
|
|
170
|
-
if (
|
|
171
|
-
|
|
172
|
-
message:
|
|
177
|
+
function se() {
|
|
178
|
+
if (n.selectionRows.value.length === 0) {
|
|
179
|
+
P({
|
|
180
|
+
message: v("goodsSpu.chooseShelf"),
|
|
173
181
|
type: "warning"
|
|
174
182
|
});
|
|
175
183
|
return;
|
|
176
184
|
}
|
|
177
|
-
const a =
|
|
185
|
+
const a = n.selectionRows.value.map(
|
|
178
186
|
(e) => e.spuId
|
|
179
187
|
);
|
|
180
188
|
$.enable({ spuId: a }, !1).then((e) => {
|
|
181
189
|
var c;
|
|
182
|
-
e.status === 200 &&
|
|
183
|
-
message:
|
|
190
|
+
e.status === 200 && P({
|
|
191
|
+
message: v("goodsSpu.successOffShelf") + e.data + v("common.stripData"),
|
|
184
192
|
type: "success"
|
|
185
|
-
}),
|
|
193
|
+
}), n.getList(), (c = I.value) == null || c.clearSelection();
|
|
186
194
|
});
|
|
187
195
|
}
|
|
188
|
-
function
|
|
189
|
-
if (
|
|
190
|
-
|
|
191
|
-
message:
|
|
196
|
+
function ue() {
|
|
197
|
+
if (n.selectionRows.value.length === 0) {
|
|
198
|
+
P({
|
|
199
|
+
message: v("goodsSpu.chooseShelf"),
|
|
192
200
|
type: "warning"
|
|
193
201
|
});
|
|
194
202
|
return;
|
|
195
203
|
}
|
|
196
|
-
const a =
|
|
204
|
+
const a = n.selectionRows.value.map(
|
|
197
205
|
(e) => e.spuId
|
|
198
206
|
);
|
|
199
207
|
$.audit({ spuId: a }, f.APPROVAL_PASS).then((e) => {
|
|
200
208
|
var c;
|
|
201
|
-
e.status === 200 && (
|
|
202
|
-
message:
|
|
209
|
+
e.status === 200 && (P({
|
|
210
|
+
message: v("goodsSpu.successApproval") + e.data + v("common.stripData"),
|
|
203
211
|
type: "success"
|
|
204
|
-
}),
|
|
212
|
+
}), n.getList(), (c = I.value) == null || c.clearSelection());
|
|
205
213
|
});
|
|
206
214
|
}
|
|
207
|
-
function
|
|
208
|
-
if (
|
|
209
|
-
|
|
210
|
-
message:
|
|
215
|
+
function ne() {
|
|
216
|
+
if (n.selectionRows.value.length === 0) {
|
|
217
|
+
P({
|
|
218
|
+
message: v("goodsSpu.chooseShelf"),
|
|
211
219
|
type: "warning"
|
|
212
220
|
});
|
|
213
221
|
return;
|
|
214
222
|
}
|
|
215
|
-
const a =
|
|
223
|
+
const a = n.selectionRows.value.map(
|
|
216
224
|
(e) => e.spuId
|
|
217
225
|
);
|
|
218
226
|
$.audit({ spuId: a }, f.APPROVAL_NOT_PASS).then((e) => {
|
|
219
227
|
var c;
|
|
220
|
-
e.status === 200 && (
|
|
221
|
-
message:
|
|
228
|
+
e.status === 200 && (P({
|
|
229
|
+
message: v("goodsSpu.successFilled") + e.data + v("common.stripData"),
|
|
222
230
|
type: "success"
|
|
223
|
-
}),
|
|
231
|
+
}), n.getList(), (c = I.value) == null || c.clearSelection());
|
|
224
232
|
});
|
|
225
233
|
}
|
|
226
234
|
return (a, e) => {
|
|
227
|
-
const c =
|
|
228
|
-
return
|
|
229
|
-
s(
|
|
230
|
-
modelValue:
|
|
231
|
-
"onUpdate:modelValue": e[15] || (e[15] = (z) =>
|
|
235
|
+
const c = i("el-input"), R = i("el-form-item"), C = i("el-col"), pe = i("el-tree-select"), j = i("el-option"), M = i("el-select"), O = i("el-row"), k = i("el-button"), de = i("el-form"), re = i("jmash-column-select"), ie = i("el-image"), Y = i("el-switch"), me = i("jmash-table"), ce = i("jmash-pagination"), ve = i("el-card"), ge = i("el-tab-pane"), fe = i("el-tabs"), _ = _e("hasPerm");
|
|
236
|
+
return r(), y("div", Ae, [
|
|
237
|
+
s(fe, {
|
|
238
|
+
modelValue: u.value,
|
|
239
|
+
"onUpdate:modelValue": e[15] || (e[15] = (z) => u.value = z),
|
|
232
240
|
type: "border-card",
|
|
233
241
|
onTabClick: X
|
|
234
242
|
}, {
|
|
235
243
|
default: o(() => [
|
|
236
|
-
(
|
|
244
|
+
(r(!0), y(N, null, D(t(g).goodsSpuListSortDict.values, (z, B) => (r(), h(ge, {
|
|
237
245
|
key: B,
|
|
238
246
|
label: z.value,
|
|
239
247
|
name: B
|
|
240
248
|
}, {
|
|
241
249
|
default: o(() => [
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
s(
|
|
250
|
+
u.value === B ? (r(), y("div", Re, [
|
|
251
|
+
A("div", Ie, [
|
|
252
|
+
s(de, {
|
|
245
253
|
ref_for: !0,
|
|
246
254
|
ref_key: "queryFormRef",
|
|
247
|
-
ref:
|
|
255
|
+
ref: Q,
|
|
248
256
|
model: p.value,
|
|
249
257
|
inline: !0
|
|
250
258
|
}, {
|
|
@@ -253,7 +261,7 @@ const Ae = { class: "app-container" }, Pe = {
|
|
|
253
261
|
default: o(() => [
|
|
254
262
|
s(C, { span: 6 }, {
|
|
255
263
|
default: o(() => [
|
|
256
|
-
s(
|
|
264
|
+
s(R, {
|
|
257
265
|
label: a.$t("goodsSpu.spuCode"),
|
|
258
266
|
prop: "spuCode"
|
|
259
267
|
}, {
|
|
@@ -263,7 +271,7 @@ const Ae = { class: "app-container" }, Pe = {
|
|
|
263
271
|
"onUpdate:modelValue": e[0] || (e[0] = (l) => p.value.spuCode = l),
|
|
264
272
|
placeholder: a.$t("goodsSpu.spuCodeRequired"),
|
|
265
273
|
class: "!w-[203px]",
|
|
266
|
-
onKeyup: e[1] || (e[1] = F((l) => t(
|
|
274
|
+
onKeyup: e[1] || (e[1] = F((l) => t(n).handleQuery(), ["enter"]))
|
|
267
275
|
}, null, 8, ["modelValue", "placeholder"])
|
|
268
276
|
]),
|
|
269
277
|
_: 1
|
|
@@ -273,7 +281,7 @@ const Ae = { class: "app-container" }, Pe = {
|
|
|
273
281
|
}),
|
|
274
282
|
s(C, { span: 6 }, {
|
|
275
283
|
default: o(() => [
|
|
276
|
-
s(
|
|
284
|
+
s(R, {
|
|
277
285
|
label: a.$t("goodsSpu.spuName"),
|
|
278
286
|
prop: "likeSpuName"
|
|
279
287
|
}, {
|
|
@@ -282,7 +290,7 @@ const Ae = { class: "app-container" }, Pe = {
|
|
|
282
290
|
modelValue: p.value.likeSpuName,
|
|
283
291
|
"onUpdate:modelValue": e[2] || (e[2] = (l) => p.value.likeSpuName = l),
|
|
284
292
|
placeholder: a.$t("goodsSpu.spuNameRequired"),
|
|
285
|
-
onKeyup: e[3] || (e[3] = F((l) => t(
|
|
293
|
+
onKeyup: e[3] || (e[3] = F((l) => t(n).handleQuery(), ["enter"]))
|
|
286
294
|
}, null, 8, ["modelValue", "placeholder"])
|
|
287
295
|
]),
|
|
288
296
|
_: 1
|
|
@@ -292,15 +300,15 @@ const Ae = { class: "app-container" }, Pe = {
|
|
|
292
300
|
}),
|
|
293
301
|
s(C, { span: 6 }, {
|
|
294
302
|
default: o(() => [
|
|
295
|
-
s(
|
|
303
|
+
s(R, {
|
|
296
304
|
label: a.$t("goodsSpu.categoryId"),
|
|
297
305
|
prop: "categoryIds"
|
|
298
306
|
}, {
|
|
299
307
|
default: o(() => [
|
|
300
|
-
s(
|
|
308
|
+
s(pe, {
|
|
301
309
|
modelValue: p.value.categoryIds,
|
|
302
310
|
"onUpdate:modelValue": e[4] || (e[4] = (l) => p.value.categoryIds = l),
|
|
303
|
-
data: t(
|
|
311
|
+
data: t(g).goodsCategoryListBizLayDict.values,
|
|
304
312
|
multiple: "",
|
|
305
313
|
placeholder: a.$t("goodsSpu.categoryIdRequired"),
|
|
306
314
|
class: "!w-[203px]"
|
|
@@ -313,7 +321,7 @@ const Ae = { class: "app-container" }, Pe = {
|
|
|
313
321
|
}),
|
|
314
322
|
s(C, { span: 6 }, {
|
|
315
323
|
default: o(() => [
|
|
316
|
-
s(
|
|
324
|
+
s(R, {
|
|
317
325
|
label: a.$t("goodsSpu.brandId"),
|
|
318
326
|
prop: "brandId"
|
|
319
327
|
}, {
|
|
@@ -321,12 +329,12 @@ const Ae = { class: "app-container" }, Pe = {
|
|
|
321
329
|
s(M, {
|
|
322
330
|
modelValue: p.value.brandId,
|
|
323
331
|
"onUpdate:modelValue": e[5] || (e[5] = (l) => p.value.brandId = l),
|
|
324
|
-
data: t(
|
|
332
|
+
data: t(g).brandListBizDict.values,
|
|
325
333
|
placeholder: a.$t("goodsSpu.brandIdRequired"),
|
|
326
334
|
class: "!w-[203px]"
|
|
327
335
|
}, {
|
|
328
336
|
default: o(() => [
|
|
329
|
-
(
|
|
337
|
+
(r(!0), y(N, null, D(t(g).brandListBizDict.values, (l) => (r(), h(j, {
|
|
330
338
|
key: l.key,
|
|
331
339
|
label: l.value,
|
|
332
340
|
value: l.key
|
|
@@ -347,7 +355,7 @@ const Ae = { class: "app-container" }, Pe = {
|
|
|
347
355
|
default: o(() => [
|
|
348
356
|
s(C, { span: 6 }, {
|
|
349
357
|
default: o(() => [
|
|
350
|
-
s(
|
|
358
|
+
s(R, {
|
|
351
359
|
label: a.$t("goodsSpu.labelIds"),
|
|
352
360
|
prop: "labelIds"
|
|
353
361
|
}, {
|
|
@@ -355,13 +363,13 @@ const Ae = { class: "app-container" }, Pe = {
|
|
|
355
363
|
s(M, {
|
|
356
364
|
modelValue: p.value.labelIds,
|
|
357
365
|
"onUpdate:modelValue": e[6] || (e[6] = (l) => p.value.labelIds = l),
|
|
358
|
-
data: t(
|
|
366
|
+
data: t(g).labelListBizDict.values,
|
|
359
367
|
multiple: "",
|
|
360
368
|
placeholder: a.$t("goodsSpu.labelIdsRequired"),
|
|
361
369
|
class: "!w-[203px]"
|
|
362
370
|
}, {
|
|
363
371
|
default: o(() => [
|
|
364
|
-
(
|
|
372
|
+
(r(!0), y(N, null, D(t(g).labelListBizDict.values, (l) => (r(), h(j, {
|
|
365
373
|
key: l.key,
|
|
366
374
|
label: l.value,
|
|
367
375
|
value: l.key
|
|
@@ -377,11 +385,11 @@ const Ae = { class: "app-container" }, Pe = {
|
|
|
377
385
|
}),
|
|
378
386
|
s(C, { span: 18 }, {
|
|
379
387
|
default: o(() => [
|
|
380
|
-
s(
|
|
388
|
+
s(R, { class: "search-btn" }, {
|
|
381
389
|
default: o(() => [
|
|
382
390
|
s(k, {
|
|
383
391
|
type: "primary",
|
|
384
|
-
onClick: e[7] || (e[7] = (l) => t(
|
|
392
|
+
onClick: e[7] || (e[7] = (l) => t(n).handleQuery())
|
|
385
393
|
}, {
|
|
386
394
|
default: o(() => [
|
|
387
395
|
b(m(a.$t("common.search")), 1)
|
|
@@ -389,7 +397,7 @@ const Ae = { class: "app-container" }, Pe = {
|
|
|
389
397
|
_: 1
|
|
390
398
|
}),
|
|
391
399
|
s(k, {
|
|
392
|
-
onClick: e[8] || (e[8] = (l) =>
|
|
400
|
+
onClick: e[8] || (e[8] = (l) => Z())
|
|
393
401
|
}, {
|
|
394
402
|
default: o(() => [
|
|
395
403
|
b(m(a.$t("common.reset")), 1)
|
|
@@ -408,9 +416,9 @@ const Ae = { class: "app-container" }, Pe = {
|
|
|
408
416
|
]),
|
|
409
417
|
_: 1
|
|
410
418
|
}, 8, ["model"]),
|
|
411
|
-
e[16] || (e[16] =
|
|
419
|
+
e[16] || (e[16] = A("div", { class: "clear" }, null, -1))
|
|
412
420
|
]),
|
|
413
|
-
s(
|
|
421
|
+
s(ve, {
|
|
414
422
|
shadow: "never",
|
|
415
423
|
class: "table-container"
|
|
416
424
|
}, {
|
|
@@ -419,9 +427,9 @@ const Ae = { class: "app-container" }, Pe = {
|
|
|
419
427
|
default: o(() => [
|
|
420
428
|
s(C, { span: 17 }, {
|
|
421
429
|
default: o(() => [
|
|
422
|
-
|
|
430
|
+
V((r(), h(k, {
|
|
423
431
|
type: "primary",
|
|
424
|
-
onClick:
|
|
432
|
+
onClick: x
|
|
425
433
|
}, {
|
|
426
434
|
default: o(() => [
|
|
427
435
|
b(m(a.$t("common.add")), 1)
|
|
@@ -430,10 +438,10 @@ const Ae = { class: "app-container" }, Pe = {
|
|
|
430
438
|
})), [
|
|
431
439
|
[_, ["goods:goods_spu:add"]]
|
|
432
440
|
]),
|
|
433
|
-
|
|
441
|
+
d[u.value].approvalStatus !== t(f).APPROVAL_PASS ? V((r(), h(k, {
|
|
434
442
|
key: 0,
|
|
435
443
|
type: "primary",
|
|
436
|
-
onClick: e[9] || (e[9] = (l) => t(
|
|
444
|
+
onClick: e[9] || (e[9] = (l) => t(n).deleteRecords())
|
|
437
445
|
}, {
|
|
438
446
|
default: o(() => [
|
|
439
447
|
b(m(a.$t("common.batchDelete")), 1)
|
|
@@ -441,11 +449,11 @@ const Ae = { class: "app-container" }, Pe = {
|
|
|
441
449
|
_: 1
|
|
442
450
|
})), [
|
|
443
451
|
[_, ["goods:goods_spu:delete"]]
|
|
444
|
-
]) :
|
|
445
|
-
|
|
452
|
+
]) : w("", !0),
|
|
453
|
+
d[u.value].approvalStatus === t(f).APPROVAL_PASS || u.value === 0 ? V((r(), h(k, {
|
|
446
454
|
key: 1,
|
|
447
455
|
type: "primary",
|
|
448
|
-
onClick:
|
|
456
|
+
onClick: se
|
|
449
457
|
}, {
|
|
450
458
|
default: o(() => [
|
|
451
459
|
b(m(a.$t("goodsSpu.batchOffShelf")), 1)
|
|
@@ -453,11 +461,11 @@ const Ae = { class: "app-container" }, Pe = {
|
|
|
453
461
|
_: 1
|
|
454
462
|
})), [
|
|
455
463
|
[_, ["goods:goods_spu:onSale"]]
|
|
456
|
-
]) :
|
|
457
|
-
|
|
464
|
+
]) : w("", !0),
|
|
465
|
+
d[u.value].shelf === "false" || u.value === 0 ? V((r(), h(k, {
|
|
458
466
|
key: 2,
|
|
459
467
|
type: "primary",
|
|
460
|
-
onClick:
|
|
468
|
+
onClick: te
|
|
461
469
|
}, {
|
|
462
470
|
default: o(() => [
|
|
463
471
|
b(m(a.$t("goodsSpu.batchShelf")), 1)
|
|
@@ -465,11 +473,11 @@ const Ae = { class: "app-container" }, Pe = {
|
|
|
465
473
|
_: 1
|
|
466
474
|
})), [
|
|
467
475
|
[_, ["goods:goods_spu:onSale"]]
|
|
468
|
-
]) :
|
|
469
|
-
|
|
476
|
+
]) : w("", !0),
|
|
477
|
+
u.value === 0 || d[u.value].approvalStatus === t(f).APPROVALING ? V((r(), h(k, {
|
|
470
478
|
key: 3,
|
|
471
479
|
type: "primary",
|
|
472
|
-
onClick:
|
|
480
|
+
onClick: ue
|
|
473
481
|
}, {
|
|
474
482
|
default: o(() => [
|
|
475
483
|
b(m(a.$t("goodsSpu.batchApprovaled")), 1)
|
|
@@ -477,11 +485,11 @@ const Ae = { class: "app-container" }, Pe = {
|
|
|
477
485
|
_: 1
|
|
478
486
|
})), [
|
|
479
487
|
[_, ["goods:goods_spu:approve"]]
|
|
480
|
-
]) :
|
|
481
|
-
|
|
488
|
+
]) : w("", !0),
|
|
489
|
+
u.value === 0 || d[u.value].approvalStatus === t(f).APPROVALING ? V((r(), h(k, {
|
|
482
490
|
key: 4,
|
|
483
491
|
type: "primary",
|
|
484
|
-
onClick:
|
|
492
|
+
onClick: ne
|
|
485
493
|
}, {
|
|
486
494
|
default: o(() => [
|
|
487
495
|
b(m(a.$t("goodsSpu.batchRejected")), 1)
|
|
@@ -489,7 +497,7 @@ const Ae = { class: "app-container" }, Pe = {
|
|
|
489
497
|
_: 1
|
|
490
498
|
})), [
|
|
491
499
|
[_, ["goods:goods_spu:approve"]]
|
|
492
|
-
]) :
|
|
500
|
+
]) : w("", !0)
|
|
493
501
|
]),
|
|
494
502
|
_: 1
|
|
495
503
|
}),
|
|
@@ -498,7 +506,7 @@ const Ae = { class: "app-container" }, Pe = {
|
|
|
498
506
|
class: "container-float"
|
|
499
507
|
}, {
|
|
500
508
|
default: o(() => [
|
|
501
|
-
s(
|
|
509
|
+
s(re, {
|
|
502
510
|
modelValue: t(L),
|
|
503
511
|
"onUpdate:modelValue": e[10] || (e[10] = (l) => G(L) ? L.value = l : L = l),
|
|
504
512
|
"label-name": "goods/goods-spu"
|
|
@@ -511,7 +519,7 @@ const Ae = { class: "app-container" }, Pe = {
|
|
|
511
519
|
})
|
|
512
520
|
]),
|
|
513
521
|
footer: o(() => [
|
|
514
|
-
t(T) > 0 ? (
|
|
522
|
+
t(T) > 0 ? (r(), h(ce, {
|
|
515
523
|
key: 0,
|
|
516
524
|
total: t(T),
|
|
517
525
|
"onUpdate:total": e[11] || (e[11] = (l) => G(T) ? T.value = l : null),
|
|
@@ -519,30 +527,30 @@ const Ae = { class: "app-container" }, Pe = {
|
|
|
519
527
|
"onUpdate:currentPage": e[12] || (e[12] = (l) => p.value.curPage = l),
|
|
520
528
|
"page-size": p.value.pageSize,
|
|
521
529
|
"onUpdate:pageSize": e[13] || (e[13] = (l) => p.value.pageSize = l),
|
|
522
|
-
onPagination: e[14] || (e[14] = (l) => t(
|
|
523
|
-
}, null, 8, ["total", "current-page", "page-size"])) :
|
|
530
|
+
onPagination: e[14] || (e[14] = (l) => t(n).getList())
|
|
531
|
+
}, null, 8, ["total", "current-page", "page-size"])) : w("", !0)
|
|
524
532
|
]),
|
|
525
533
|
default: o(() => [
|
|
526
|
-
s(
|
|
534
|
+
s(me, {
|
|
527
535
|
ref_for: !0,
|
|
528
536
|
ref_key: "multipleTableRef",
|
|
529
|
-
ref:
|
|
537
|
+
ref: I,
|
|
530
538
|
"row-key": "spuId",
|
|
531
539
|
"list-loading": t(W),
|
|
532
540
|
data: t(J),
|
|
533
541
|
"table-label": t(L),
|
|
534
|
-
onSelectionChange:
|
|
535
|
-
onSortChange:
|
|
542
|
+
onSelectionChange: oe,
|
|
543
|
+
onSortChange: ae
|
|
536
544
|
}, {
|
|
537
545
|
categoryId: o((l) => [
|
|
538
|
-
(
|
|
546
|
+
(r(!0), y(N, null, D(l.data.row.categoryIds, (S) => (r(), y("span", {
|
|
539
547
|
key: S,
|
|
540
548
|
style: { "margin-right": "8px", "margin-bottom": "4px" }
|
|
541
|
-
}, m(t(
|
|
549
|
+
}, m(t(g).goodsCategoryListBizLayDict.getValue(S)), 1))), 128))
|
|
542
550
|
]),
|
|
543
551
|
picUrls: o((l) => [
|
|
544
|
-
|
|
545
|
-
s(
|
|
552
|
+
A("span", null, [
|
|
553
|
+
s(ie, {
|
|
546
554
|
src: t(H).imageUrl(
|
|
547
555
|
l.data.row.picUrls.split(",")[0],
|
|
548
556
|
0,
|
|
@@ -558,11 +566,11 @@ const Ae = { class: "app-container" }, Pe = {
|
|
|
558
566
|
])
|
|
559
567
|
]),
|
|
560
568
|
shelf: o((l) => [
|
|
561
|
-
|
|
569
|
+
A("span", null, [
|
|
562
570
|
s(Y, {
|
|
563
571
|
modelValue: l.data.row.shelf,
|
|
564
572
|
"onUpdate:modelValue": (S) => l.data.row.shelf = S,
|
|
565
|
-
onClick: (S) => t(
|
|
573
|
+
onClick: (S) => t(n).enableRecord(
|
|
566
574
|
l.data.row,
|
|
567
575
|
l.data.row.shelf
|
|
568
576
|
)
|
|
@@ -570,15 +578,15 @@ const Ae = { class: "app-container" }, Pe = {
|
|
|
570
578
|
])
|
|
571
579
|
]),
|
|
572
580
|
specType: o((l) => [
|
|
573
|
-
|
|
581
|
+
A("span", null, m(t(g).specTypeEnum.getEnumValue(l.data.row.specType)), 1)
|
|
574
582
|
]),
|
|
575
583
|
approvalStatus: o((l) => [
|
|
576
|
-
|
|
584
|
+
A("span", null, m(t(g).approvalStatusEnum.getEnumValue(
|
|
577
585
|
l.data.row.approvalStatus
|
|
578
586
|
)), 1)
|
|
579
587
|
]),
|
|
580
588
|
updateTime: o((l) => [
|
|
581
|
-
|
|
589
|
+
A("span", null, m(t(K).$moment.formatDate(
|
|
582
590
|
l.data.row.updateTime,
|
|
583
591
|
"YYYY-MM-DD HH:mm:ss"
|
|
584
592
|
)), 1)
|
|
@@ -587,39 +595,39 @@ const Ae = { class: "app-container" }, Pe = {
|
|
|
587
595
|
s(Y, {
|
|
588
596
|
modelValue: l.data.row.enable,
|
|
589
597
|
"onUpdate:modelValue": (S) => l.data.row.enable = S,
|
|
590
|
-
onChange: (S) => t(
|
|
598
|
+
onChange: (S) => t(n).enableRecord(
|
|
591
599
|
l.data.row,
|
|
592
600
|
l.data.row.enable
|
|
593
601
|
)
|
|
594
602
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
595
603
|
]),
|
|
596
604
|
operation: o((l) => [
|
|
597
|
-
|
|
605
|
+
d[u.value].approvalStatus !== t(f).APPROVAL_PASS ? V((r(), y("span", {
|
|
598
606
|
key: 0,
|
|
599
607
|
class: "el-button-color",
|
|
600
|
-
onClick: (S) =>
|
|
608
|
+
onClick: (S) => ee(l.data.row)
|
|
601
609
|
}, [
|
|
602
610
|
b(m(a.$t("common.edit")), 1)
|
|
603
|
-
], 8,
|
|
611
|
+
], 8, Le)), [
|
|
604
612
|
[_, ["goods:goods_spu:update"]]
|
|
605
|
-
]) :
|
|
606
|
-
|
|
613
|
+
]) : w("", !0),
|
|
614
|
+
d[u.value].approvalStatus !== t(f).APPROVAL_PASS ? V((r(), y("span", {
|
|
607
615
|
key: 1,
|
|
608
616
|
class: "el-button-color dropdown-left",
|
|
609
|
-
onClick: (S) => t(
|
|
617
|
+
onClick: (S) => t(n).deleteRecord(l.data.row)
|
|
610
618
|
}, [
|
|
611
619
|
b(m(a.$t("common.delete")), 1)
|
|
612
|
-
], 8,
|
|
620
|
+
], 8, $e)), [
|
|
613
621
|
[_, ["goods:goods_spu:delete"]]
|
|
614
|
-
]) :
|
|
615
|
-
|
|
616
|
-
class:
|
|
617
|
-
|
|
622
|
+
]) : w("", !0),
|
|
623
|
+
V((r(), y("span", {
|
|
624
|
+
class: we(
|
|
625
|
+
d[u.value].approvalStatus !== t(f).APPROVAL_PASS ? "el-button-color dropdown-left" : "el-button-color"
|
|
618
626
|
),
|
|
619
|
-
onClick: (S) =>
|
|
627
|
+
onClick: (S) => le(l.data.row)
|
|
620
628
|
}, [
|
|
621
629
|
b(m(a.$t("common.view")), 1)
|
|
622
|
-
], 10,
|
|
630
|
+
], 10, Te)), [
|
|
623
631
|
[_, ["goods:goods_spu:view"]]
|
|
624
632
|
])
|
|
625
633
|
]),
|
|
@@ -628,7 +636,7 @@ const Ae = { class: "app-container" }, Pe = {
|
|
|
628
636
|
]),
|
|
629
637
|
_: 1
|
|
630
638
|
})
|
|
631
|
-
])) :
|
|
639
|
+
])) : w("", !0)
|
|
632
640
|
]),
|
|
633
641
|
_: 2
|
|
634
642
|
}, 1032, ["label", "name"]))), 128))
|
|
@@ -640,5 +648,5 @@ const Ae = { class: "app-container" }, Pe = {
|
|
|
640
648
|
}
|
|
641
649
|
});
|
|
642
650
|
export {
|
|
643
|
-
|
|
651
|
+
je as default
|
|
644
652
|
};
|