xyvcard-goods 0.0.20 → 0.0.22
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 +93 -0
- package/dist/{edit-Cj13W2TC.mjs → edit-Byv9oYAC.mjs} +1 -1
- package/dist/{edit-Bb2XgE0h.mjs → edit-Nuaz9WSB.mjs} +160 -244
- package/dist/edit-exVf8d8b.mjs +367 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-DuSBj1Mm.mjs +24172 -0
- package/dist/{goodsList-DOXK1EwK.mjs → goodsList-CZUqc4nm.mjs} +1 -1
- package/dist/goodsList-IWDAvKOx.mjs +4 -0
- package/dist/goodsList.vue_vue_type_script_setup_true_lang-BhJn02Ym.mjs +576 -0
- package/dist/{goodsList.vue_vue_type_script_setup_true_lang-COJVlEjX.mjs → goodsList.vue_vue_type_script_setup_true_lang-CuzIDtTN.mjs} +51 -50
- package/dist/{index-CGAoZY87.mjs → index-4i7TnWvV.mjs} +2 -3
- package/dist/index-BVGn6Q_T.mjs +53 -0
- package/dist/{index-DAJiqOCh.mjs → index-B_U2s9fI.mjs} +2 -2
- package/dist/{index-C3FT_Oe7.mjs → index-CQIttgns.mjs} +1 -1
- package/dist/{index-D3w33Nba.mjs → index-Dvaotk7B.mjs} +92 -68
- package/dist/{index-BmOxm1P2.mjs → index-_xxSoBUe.mjs} +1 -1
- package/dist/index.mjs +561 -538
- package/dist/{info-DImlMNq0.mjs → info-BH4MW3Sw.mjs} +2 -2
- package/dist/info-BQaaTFry.mjs +365 -0
- package/dist/sku-B-IzfYLq.mjs +52 -0
- package/dist/skuForm-AMIoZkH-.mjs +287 -0
- package/dist/{skuForm-Bt3arW0s.mjs → skuForm-CgjMd46J.mjs} +16 -16
- package/dist/{skuTable-Ahc3WlPp.mjs → skuTable-CyGQuTvR.mjs} +208 -255
- package/dist/skuTable-DDWSmvoz.mjs +592 -0
- package/dist/style.css +1 -1
- package/dts/api/dict.d.ts +3 -0
- package/dts/api/goods-sku/types.d.ts +2 -2
- package/dts/api/goods-spu/index.d.ts +1 -0
- package/dts/api/goods-spu/types.d.ts +18 -1
- package/dts/api/index.d.ts +2 -1
- package/dts/constant.d.ts +4 -0
- package/dts/lang/goods/zh-cn.d.ts +6 -1
- 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 +20 -0
- package/dts/views/goods/goods-combination/skuTable.vue.d.ts +40 -0
- package/package.json +62 -61
- package/dist/edit.vue_vue_type_script_setup_true_lang-D2w1583D.mjs +0 -234
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as be, getCurrentInstance as ve, ref as
|
|
1
|
+
import { defineComponent as be, getCurrentInstance as ve, ref as K, onActivated as ye, resolveComponent as d, resolveDirective as he, openBlock as r, createElementBlock as v, createElementVNode as P, createVNode as l, withCtx as o, withKeys as G, unref as s, Fragment as D, renderList as B, createBlock as w, createTextVNode as m, toDisplayString as u, withDirectives as C, createCommentVNode as I, isRef as J, normalizeClass as _e } from "vue";
|
|
2
2
|
import { ElMessage as y } from "element-plus";
|
|
3
3
|
import { useRouter as we } from "vue-router";
|
|
4
4
|
import { useTableHooks as Ce, fileApi as W } from "jmash-core";
|
|
5
5
|
import { useI18n as ke } from "vue-i18n";
|
|
6
|
-
import { goodsSpuApi as
|
|
7
|
-
import { D as S, C } from "./index-
|
|
6
|
+
import { goodsSpuApi as T } from "./index.mjs";
|
|
7
|
+
import { D as S, C as h } from "./index-Dvaotk7B.mjs";
|
|
8
8
|
const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie = ["onClick"], $e = ["onClick"], Re = ["onClick"], Oe = /* @__PURE__ */ be({
|
|
9
9
|
__name: "goodsList",
|
|
10
10
|
props: {
|
|
@@ -19,20 +19,21 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
|
|
|
19
19
|
},
|
|
20
20
|
setup($) {
|
|
21
21
|
S.brandListBizDict.useValues(), S.labelListBizDict.useValues();
|
|
22
|
-
const { t: i } = ke(), z = we(), b = $, { proxy: X } = ve(), c =
|
|
22
|
+
const { t: i } = ke(), z = we(), b = $, { proxy: X } = ve(), c = K({
|
|
23
23
|
curPage: 1,
|
|
24
24
|
pageSize: 10,
|
|
25
25
|
shelf: b.shelf ? b.shelf : void 0,
|
|
26
|
-
approvalStatus: b.approvalStatus ? b.approvalStatus : void 0
|
|
26
|
+
approvalStatus: b.approvalStatus ? b.approvalStatus : void 0,
|
|
27
|
+
goodsType: h.GOODS_TYPE.NORMAL
|
|
27
28
|
}), {
|
|
28
29
|
tableHooks: n,
|
|
29
30
|
multipleTableRef: A,
|
|
30
31
|
queryFormRef: Z,
|
|
31
32
|
listLoading: x,
|
|
32
33
|
tableData: ee,
|
|
33
|
-
total:
|
|
34
|
-
} = Ce(i,
|
|
35
|
-
let L =
|
|
34
|
+
total: N
|
|
35
|
+
} = Ce(i, T, c);
|
|
36
|
+
let L = K([
|
|
36
37
|
// {
|
|
37
38
|
// label: "goodsSpu.shopId",
|
|
38
39
|
// prop: "shopId",
|
|
@@ -161,7 +162,7 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
|
|
|
161
162
|
return;
|
|
162
163
|
}
|
|
163
164
|
const t = n.selectionRows.value.map((p) => p.spuId);
|
|
164
|
-
|
|
165
|
+
T.enable({ spuId: t }, JSON.parse(a)).then((p) => {
|
|
165
166
|
var g;
|
|
166
167
|
p.status === 200 && (a === "true" ? y({
|
|
167
168
|
message: i("goodsSpu.successShelf") + p.data + i("common.stripData"),
|
|
@@ -181,7 +182,7 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
|
|
|
181
182
|
return;
|
|
182
183
|
}
|
|
183
184
|
const a = n.selectionRows.value.map((t) => t.spuId);
|
|
184
|
-
|
|
185
|
+
T.enable({ spuId: a }, !0).then((t) => {
|
|
185
186
|
var p;
|
|
186
187
|
t.status === 200 && (y({
|
|
187
188
|
message: i("goodsSpu.successShelf") + t.data + i("common.stripData"),
|
|
@@ -198,7 +199,7 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
|
|
|
198
199
|
return;
|
|
199
200
|
}
|
|
200
201
|
const a = n.selectionRows.value.map((t) => t.spuId);
|
|
201
|
-
|
|
202
|
+
T.enable({ spuId: a }, !1).then((t) => {
|
|
202
203
|
var p;
|
|
203
204
|
t.status === 200 && y({
|
|
204
205
|
message: i("goodsSpu.successOffShelf") + t.data + i("common.stripData"),
|
|
@@ -215,9 +216,9 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
|
|
|
215
216
|
return;
|
|
216
217
|
}
|
|
217
218
|
const t = n.selectionRows.value.map((p) => p.spuId);
|
|
218
|
-
|
|
219
|
+
T.audit({ spuId: t }, a).then((p) => {
|
|
219
220
|
var g;
|
|
220
|
-
p.status === 200 && (a ===
|
|
221
|
+
p.status === 200 && (a === h.APPROVAL_PASS ? y({
|
|
221
222
|
message: i("goodsSpu.successApproval") + p.data + i("common.stripData"),
|
|
222
223
|
type: "success"
|
|
223
224
|
}) : y({
|
|
@@ -229,7 +230,7 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
|
|
|
229
230
|
return ye(() => {
|
|
230
231
|
n.getList();
|
|
231
232
|
}), (a, t) => {
|
|
232
|
-
const p = d("el-input"), g = d("el-form-item"), k = d("el-col"), re = d("el-tree-select"),
|
|
233
|
+
const p = d("el-input"), g = d("el-form-item"), k = d("el-col"), re = d("el-tree-select"), E = d("el-option"), q = d("el-select"), O = d("el-row"), V = d("el-button"), ie = d("el-form"), j = d("arrow-down"), R = d("el-icon"), Y = d("Unlock"), U = d("el-dropdown-item"), F = d("Lock"), H = d("el-dropdown-menu"), M = d("el-dropdown"), me = d("jmash-column-select"), ce = d("el-image"), Q = d("el-switch"), ge = d("jmash-table"), fe = d("jmash-pagination"), Se = d("el-card"), _ = he("hasPerm");
|
|
233
234
|
return r(), v("div", Ve, [
|
|
234
235
|
P("div", Pe, [
|
|
235
236
|
l(ie, {
|
|
@@ -308,7 +309,7 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
|
|
|
308
309
|
prop: "brandId"
|
|
309
310
|
}, {
|
|
310
311
|
default: o(() => [
|
|
311
|
-
l(
|
|
312
|
+
l(q, {
|
|
312
313
|
modelValue: c.value.brandId,
|
|
313
314
|
"onUpdate:modelValue": t[5] || (t[5] = (e) => c.value.brandId = e),
|
|
314
315
|
data: s(S).brandListBizDict.values,
|
|
@@ -316,7 +317,7 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
|
|
|
316
317
|
class: "!w-[203px]"
|
|
317
318
|
}, {
|
|
318
319
|
default: o(() => [
|
|
319
|
-
(r(!0), v(D, null, B(s(S).brandListBizDict.values, (e) => (r(),
|
|
320
|
+
(r(!0), v(D, null, B(s(S).brandListBizDict.values, (e) => (r(), w(E, {
|
|
320
321
|
key: e.key,
|
|
321
322
|
label: e.value,
|
|
322
323
|
value: e.key
|
|
@@ -342,7 +343,7 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
|
|
|
342
343
|
prop: "labelIds"
|
|
343
344
|
}, {
|
|
344
345
|
default: o(() => [
|
|
345
|
-
l(
|
|
346
|
+
l(q, {
|
|
346
347
|
modelValue: c.value.labelIds,
|
|
347
348
|
"onUpdate:modelValue": t[6] || (t[6] = (e) => c.value.labelIds = e),
|
|
348
349
|
data: s(S).labelListBizDict.values,
|
|
@@ -351,7 +352,7 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
|
|
|
351
352
|
class: "!w-[203px]"
|
|
352
353
|
}, {
|
|
353
354
|
default: o(() => [
|
|
354
|
-
(r(!0), v(D, null, B(s(S).labelListBizDict.values, (e) => (r(),
|
|
355
|
+
(r(!0), v(D, null, B(s(S).labelListBizDict.values, (e) => (r(), w(E, {
|
|
355
356
|
key: e.key,
|
|
356
357
|
label: e.value,
|
|
357
358
|
value: e.key
|
|
@@ -409,7 +410,7 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
|
|
|
409
410
|
default: o(() => [
|
|
410
411
|
l(k, { span: 17 }, {
|
|
411
412
|
default: o(() => [
|
|
412
|
-
|
|
413
|
+
C((r(), w(V, {
|
|
413
414
|
type: "primary",
|
|
414
415
|
onClick: oe
|
|
415
416
|
}, {
|
|
@@ -418,9 +419,9 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
|
|
|
418
419
|
]),
|
|
419
420
|
_: 1
|
|
420
421
|
})), [
|
|
421
|
-
[
|
|
422
|
+
[_, ["goods:goods_spu:add"]]
|
|
422
423
|
]),
|
|
423
|
-
$.approvalStatus !== s(
|
|
424
|
+
$.approvalStatus !== s(h).APPROVAL_PASS ? C((r(), w(V, {
|
|
424
425
|
key: 0,
|
|
425
426
|
type: "primary",
|
|
426
427
|
onClick: t[9] || (t[9] = (e) => s(n).deleteRecords())
|
|
@@ -430,9 +431,9 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
|
|
|
430
431
|
]),
|
|
431
432
|
_: 1
|
|
432
433
|
})), [
|
|
433
|
-
[
|
|
434
|
+
[_, ["goods:goods_spu:delete"]]
|
|
434
435
|
]) : I("", !0),
|
|
435
|
-
$.approvalStatus === s(
|
|
436
|
+
$.approvalStatus === s(h).APPROVAL_PASS ? C((r(), w(V, {
|
|
436
437
|
key: 1,
|
|
437
438
|
type: "primary",
|
|
438
439
|
onClick: de
|
|
@@ -442,9 +443,9 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
|
|
|
442
443
|
]),
|
|
443
444
|
_: 1
|
|
444
445
|
})), [
|
|
445
|
-
[
|
|
446
|
+
[_, ["goods:goods_spu:onSale"]]
|
|
446
447
|
]) : I("", !0),
|
|
447
|
-
b.shelf === "false" ?
|
|
448
|
+
b.shelf === "false" ? C((r(), w(V, {
|
|
448
449
|
key: 2,
|
|
449
450
|
type: "primary",
|
|
450
451
|
onClick: ue
|
|
@@ -454,21 +455,21 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
|
|
|
454
455
|
]),
|
|
455
456
|
_: 1
|
|
456
457
|
})), [
|
|
457
|
-
[
|
|
458
|
+
[_, ["goods:goods_spu:onSale"]]
|
|
458
459
|
]) : I("", !0),
|
|
459
|
-
b.approvalStatus === "" && b.shelf === "" ?
|
|
460
|
+
b.approvalStatus === "" && b.shelf === "" ? C((r(), w(M, {
|
|
460
461
|
key: 3,
|
|
461
462
|
class: "dropdown-left",
|
|
462
463
|
onCommand: ne
|
|
463
464
|
}, {
|
|
464
465
|
dropdown: o(() => [
|
|
465
|
-
l(
|
|
466
|
+
l(H, null, {
|
|
466
467
|
default: o(() => [
|
|
467
468
|
l(U, { command: "true" }, {
|
|
468
469
|
default: o(() => [
|
|
469
470
|
l(R, { size: "14" }, {
|
|
470
471
|
default: o(() => [
|
|
471
|
-
l(
|
|
472
|
+
l(Y)
|
|
472
473
|
]),
|
|
473
474
|
_: 1
|
|
474
475
|
}),
|
|
@@ -480,7 +481,7 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
|
|
|
480
481
|
default: o(() => [
|
|
481
482
|
l(R, { size: "14" }, {
|
|
482
483
|
default: o(() => [
|
|
483
|
-
l(
|
|
484
|
+
l(F)
|
|
484
485
|
]),
|
|
485
486
|
_: 1
|
|
486
487
|
}),
|
|
@@ -508,23 +509,23 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
|
|
|
508
509
|
]),
|
|
509
510
|
_: 1
|
|
510
511
|
})), [
|
|
511
|
-
[
|
|
512
|
+
[_, ["goods:goods_spu:onSale"]]
|
|
512
513
|
]) : I("", !0),
|
|
513
|
-
b.approvalStatus === "" && b.shelf === "" || b.approvalStatus === s(
|
|
514
|
+
b.approvalStatus === "" && b.shelf === "" || b.approvalStatus === s(h).APPROVALING ? C((r(), w(M, {
|
|
514
515
|
key: 4,
|
|
515
516
|
class: "dropdown-left",
|
|
516
517
|
onCommand: pe
|
|
517
518
|
}, {
|
|
518
519
|
dropdown: o(() => [
|
|
519
|
-
l(
|
|
520
|
+
l(H, null, {
|
|
520
521
|
default: o(() => [
|
|
521
522
|
l(U, {
|
|
522
|
-
command: s(
|
|
523
|
+
command: s(h).APPROVAL_PASS
|
|
523
524
|
}, {
|
|
524
525
|
default: o(() => [
|
|
525
526
|
l(R, { size: "14" }, {
|
|
526
527
|
default: o(() => [
|
|
527
|
-
l(
|
|
528
|
+
l(Y)
|
|
528
529
|
]),
|
|
529
530
|
_: 1
|
|
530
531
|
}),
|
|
@@ -533,12 +534,12 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
|
|
|
533
534
|
_: 1
|
|
534
535
|
}, 8, ["command"]),
|
|
535
536
|
l(U, {
|
|
536
|
-
command: s(
|
|
537
|
+
command: s(h).APPROVAL_NOT_PASS
|
|
537
538
|
}, {
|
|
538
539
|
default: o(() => [
|
|
539
540
|
l(R, { size: "14" }, {
|
|
540
541
|
default: o(() => [
|
|
541
|
-
l(
|
|
542
|
+
l(F)
|
|
542
543
|
]),
|
|
543
544
|
_: 1
|
|
544
545
|
}),
|
|
@@ -566,7 +567,7 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
|
|
|
566
567
|
]),
|
|
567
568
|
_: 1
|
|
568
569
|
})), [
|
|
569
|
-
[
|
|
570
|
+
[_, ["goods:goods_spu:approve"]]
|
|
570
571
|
]) : I("", !0)
|
|
571
572
|
]),
|
|
572
573
|
_: 1
|
|
@@ -589,10 +590,10 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
|
|
|
589
590
|
})
|
|
590
591
|
]),
|
|
591
592
|
footer: o(() => [
|
|
592
|
-
s(
|
|
593
|
+
s(N) > 0 ? (r(), w(fe, {
|
|
593
594
|
key: 0,
|
|
594
|
-
total: s(
|
|
595
|
-
"onUpdate:total": t[11] || (t[11] = (e) => J(
|
|
595
|
+
total: s(N),
|
|
596
|
+
"onUpdate:total": t[11] || (t[11] = (e) => J(N) ? N.value = e : null),
|
|
596
597
|
"current-page": c.value.curPage,
|
|
597
598
|
"onUpdate:currentPage": t[12] || (t[12] = (e) => c.value.curPage = e),
|
|
598
599
|
"page-size": c.value.pageSize,
|
|
@@ -632,7 +633,7 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
|
|
|
632
633
|
]),
|
|
633
634
|
shelf: o((e) => [
|
|
634
635
|
P("span", null, [
|
|
635
|
-
l(
|
|
636
|
+
l(Q, {
|
|
636
637
|
modelValue: e.data.row.shelf,
|
|
637
638
|
"onUpdate:modelValue": (f) => e.data.row.shelf = f,
|
|
638
639
|
onClick: (f) => s(n).enableRecord(e.data.row, e.data.row.shelf)
|
|
@@ -663,40 +664,40 @@ const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie =
|
|
|
663
664
|
)), 1)
|
|
664
665
|
]),
|
|
665
666
|
enable: o((e) => [
|
|
666
|
-
l(
|
|
667
|
+
l(Q, {
|
|
667
668
|
modelValue: e.data.row.enable,
|
|
668
669
|
"onUpdate:modelValue": (f) => e.data.row.enable = f,
|
|
669
670
|
onChange: (f) => s(n).enableRecord(e.data.row, e.data.row.enable)
|
|
670
671
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
671
672
|
]),
|
|
672
673
|
operation: o((e) => [
|
|
673
|
-
$.approvalStatus !== s(
|
|
674
|
+
$.approvalStatus !== s(h).APPROVAL_PASS ? C((r(), v("span", {
|
|
674
675
|
key: 0,
|
|
675
676
|
class: "el-button-color",
|
|
676
677
|
onClick: (f) => le(e.data.row)
|
|
677
678
|
}, [
|
|
678
679
|
m(u(a.$t("common.edit")), 1)
|
|
679
680
|
], 8, Ie)), [
|
|
680
|
-
[
|
|
681
|
+
[_, ["goods:goods_spu:update"]]
|
|
681
682
|
]) : I("", !0),
|
|
682
|
-
$.approvalStatus !== s(
|
|
683
|
+
$.approvalStatus !== s(h).APPROVAL_PASS ? C((r(), v("span", {
|
|
683
684
|
key: 1,
|
|
684
685
|
class: "el-button-color dropdown-left",
|
|
685
686
|
onClick: (f) => s(n).deleteRecord(e.data.row)
|
|
686
687
|
}, [
|
|
687
688
|
m(u(a.$t("common.delete")), 1)
|
|
688
689
|
], 8, $e)), [
|
|
689
|
-
[
|
|
690
|
+
[_, ["goods:goods_spu:delete"]]
|
|
690
691
|
]) : I("", !0),
|
|
691
|
-
|
|
692
|
+
C((r(), v("span", {
|
|
692
693
|
class: _e(
|
|
693
|
-
$.approvalStatus !== s(
|
|
694
|
+
$.approvalStatus !== s(h).APPROVAL_PASS ? "el-button-color dropdown-left" : "el-button-color"
|
|
694
695
|
),
|
|
695
696
|
onClick: (f) => te(e.data.row)
|
|
696
697
|
}, [
|
|
697
698
|
m(u(a.$t("common.view")), 1)
|
|
698
699
|
], 10, Re)), [
|
|
699
|
-
[
|
|
700
|
+
[_, ["goods:goods_spu:view"]]
|
|
700
701
|
])
|
|
701
702
|
]),
|
|
702
703
|
_: 1
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as x, ref as V, reactive as S, onActivated as ee, resolveComponent as r, resolveDirective as oe, openBlock as u, createElementBlock as $, createElementVNode as U, createVNode as t, withCtx as l, withKeys as te, unref as n, createTextVNode as p, toDisplayString as c, withDirectives as C, createBlock as w, isRef as T, createCommentVNode as D } from "vue";
|
|
2
2
|
import { useI18n as le } from "vue-i18n";
|
|
3
3
|
import { useTableHooks as ae, fileApi as j } from "jmash-core";
|
|
4
|
-
import { g as ne, D as re } from "./index-
|
|
5
|
-
import { _ as se } from "./edit.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { g as ne, D as re } from "./index-Dvaotk7B.mjs";
|
|
5
|
+
import { _ as se } from "./edit.vue_vue_type_script_setup_true_lang-DuSBj1Mm.mjs";
|
|
6
6
|
const ie = { class: "app-container" }, de = { class: "search-container" }, ue = ["onClick"], me = ["onClick"], ve = /* @__PURE__ */ x({
|
|
7
7
|
__name: "index",
|
|
8
8
|
setup(pe) {
|
|
@@ -250,7 +250,6 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
250
250
|
"list-loading": n(B),
|
|
251
251
|
data: n(q),
|
|
252
252
|
"table-label": n(g),
|
|
253
|
-
"default-expand-all": "",
|
|
254
253
|
onSelectionChange: E,
|
|
255
254
|
onSortChange: K
|
|
256
255
|
}, {
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { defineComponent as v, ref as b, onMounted as h, resolveComponent as u, openBlock as t, createElementBlock as c, createVNode as y, withCtx as m, Fragment as k, renderList as C, unref as V, createBlock as p, createCommentVNode as g } from "vue";
|
|
2
|
+
import { useRoute as B } from "vue-router";
|
|
3
|
+
import { D as i } from "./index-Dvaotk7B.mjs";
|
|
4
|
+
import { _ as L } from "./goodsList.vue_vue_type_script_setup_true_lang-BhJn02Ym.mjs";
|
|
5
|
+
const N = { class: "app-container" }, E = /* @__PURE__ */ v({
|
|
6
|
+
__name: "index",
|
|
7
|
+
setup(T) {
|
|
8
|
+
const l = B();
|
|
9
|
+
i.goodsCategoryListBizLayDict.useValues();
|
|
10
|
+
const e = b(0), n = {
|
|
11
|
+
0: {},
|
|
12
|
+
1: { shelf: "true" },
|
|
13
|
+
2: { shelf: "false" }
|
|
14
|
+
};
|
|
15
|
+
function d(r) {
|
|
16
|
+
e.value = Number(r.index);
|
|
17
|
+
}
|
|
18
|
+
return h(() => {
|
|
19
|
+
l.query.activeTab && (e.value = Number(l.query.activeTab));
|
|
20
|
+
}), (r, s) => {
|
|
21
|
+
const f = u("el-tab-pane"), _ = u("el-tabs");
|
|
22
|
+
return t(), c("div", N, [
|
|
23
|
+
y(_, {
|
|
24
|
+
modelValue: e.value,
|
|
25
|
+
"onUpdate:modelValue": s[0] || (s[0] = (a) => e.value = a),
|
|
26
|
+
type: "border-card",
|
|
27
|
+
onTabClick: d
|
|
28
|
+
}, {
|
|
29
|
+
default: m(() => [
|
|
30
|
+
(t(!0), c(k, null, C(V(i).goodsSpuListSortEnum.values.slice(0, -2), (a, o) => (t(), p(f, {
|
|
31
|
+
key: o,
|
|
32
|
+
label: a.value,
|
|
33
|
+
name: o
|
|
34
|
+
}, {
|
|
35
|
+
default: m(() => [
|
|
36
|
+
e.value === o ? (t(), p(L, {
|
|
37
|
+
key: 0,
|
|
38
|
+
shelf: n[e.value].shelf,
|
|
39
|
+
"approval-status": n[e.value].approvalStatus
|
|
40
|
+
}, null, 8, ["shelf", "approval-status"])) : g("", !0)
|
|
41
|
+
]),
|
|
42
|
+
_: 2
|
|
43
|
+
}, 1032, ["label", "name"]))), 128))
|
|
44
|
+
]),
|
|
45
|
+
_: 1
|
|
46
|
+
}, 8, ["modelValue"])
|
|
47
|
+
]);
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
export {
|
|
52
|
+
E as default
|
|
53
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as b, ref as S, onMounted as A, resolveComponent as p, openBlock as t, createElementBlock as c, createVNode as V, withCtx as m, Fragment as C, renderList as P, unref as h, createBlock as i, createCommentVNode as y } from "vue";
|
|
2
2
|
import { useRoute as L } from "vue-router";
|
|
3
|
-
import { D as _, C as l } from "./index-
|
|
4
|
-
import { _ as k } from "./goodsList.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { D as _, C as l } from "./index-Dvaotk7B.mjs";
|
|
4
|
+
import { _ as k } from "./goodsList.vue_vue_type_script_setup_true_lang-CuzIDtTN.mjs";
|
|
5
5
|
const N = { class: "app-container" }, x = /* @__PURE__ */ b({
|
|
6
6
|
__name: "index",
|
|
7
7
|
setup(g) {
|
|
@@ -3,7 +3,7 @@ import { useTableHooks as oe } from "jmash-core";
|
|
|
3
3
|
import { useI18n as le } from "vue-i18n";
|
|
4
4
|
import { g as te } from "./index-jTDhsbYM.mjs";
|
|
5
5
|
import ae from "./edit-BcokSKfN.mjs";
|
|
6
|
-
import { D as ne } from "./index-
|
|
6
|
+
import { D as ne } from "./index-Dvaotk7B.mjs";
|
|
7
7
|
const se = { class: "app-container" }, de = { class: "search-container" }, ie = ["onClick"], re = ["onClick"], ve = /* @__PURE__ */ Y({
|
|
8
8
|
__name: "index",
|
|
9
9
|
setup(ue) {
|