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