xyvcard-goods 0.0.7 → 0.0.9
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/{approveFailIndex-F3GtuNeX.mjs → approveFailIndex-DJf9bHab.mjs} +1 -1
- package/dist/{approveFailIndex.vue_vue_type_script_setup_true_lang-8ykH4NF1.mjs → approveFailIndex.vue_vue_type_script_setup_true_lang-mXqZdtba.mjs} +39 -39
- package/dist/{auditIndex-DZUQQzVu.mjs → auditIndex-CCkGsSy2.mjs} +1 -1
- package/dist/{auditIndex.vue_vue_type_script_setup_true_lang-Bnc1wKbA.mjs → auditIndex.vue_vue_type_script_setup_true_lang-DHolmNaP.mjs} +59 -59
- package/dist/edit-D37yka6Z.mjs +470 -0
- package/dist/{index-D5_GsXR7.mjs → index-CKeHa-Cx.mjs} +24 -27
- package/dist/{index-kGlE0ywA.mjs → index-vcmJ06-Y.mjs} +136 -136
- package/dist/index.mjs +8 -37
- package/dist/{info-kiOShGr4.mjs → info-CPZykxS1.mjs} +37 -40
- package/dist/{saleIndex-CyMvOgxp.mjs → saleIndex-CdAcvCzO.mjs} +1 -1
- package/dist/{saleIndex.vue_vue_type_script_setup_true_lang-BgZZMEph.mjs → saleIndex.vue_vue_type_script_setup_true_lang-CLzVH-ix.mjs} +94 -94
- package/dist/{shelfIndex-DZWqrqlw.mjs → shelfIndex-ZHuhzU_h.mjs} +1 -1
- package/dist/{shelfIndex.vue_vue_type_script_setup_true_lang-B7fw9wHp.mjs → shelfIndex.vue_vue_type_script_setup_true_lang-CTv-j8Xe.mjs} +18 -18
- package/dist/{skuForm-Dtq2Ttjc.mjs → skuForm-BSlT4TYd.mjs} +81 -76
- package/dist/skuTable-DYmQYXk3.mjs +535 -0
- package/dist/style.css +1 -1
- package/dts/api/dict.d.ts +6 -2
- package/dts/api/goods-spu/types.d.ts +6 -5
- package/dts/constant.d.ts +7 -7
- package/dts/router/index.d.ts +2 -2
- package/dts/views/goods/goods-spu/skuForm.vue.d.ts +10 -1
- package/package.json +3 -3
- package/dist/edit-C3imnLUq.mjs +0 -600
- package/dist/skuTable-8oPw0DhV.mjs +0 -611
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as W, getCurrentInstance as X, ref as
|
|
1
|
+
import { defineComponent as W, getCurrentInstance as X, ref as N, resolveComponent as p, resolveDirective as Z, openBlock as m, createElementBlock as C, createElementVNode as r, createVNode as t, withCtx as o, unref as a, withKeys as k, createTextVNode as c, toDisplayString as n, withDirectives as w, createBlock as V, isRef as U, createCommentVNode as x } from "vue";
|
|
2
2
|
import { useRouter as ee } from "vue-router";
|
|
3
|
-
import { useTableHooks as oe, fileApi as
|
|
3
|
+
import { useTableHooks as oe, fileApi as P } from "jmash-core";
|
|
4
4
|
import { useI18n as le } from "vue-i18n";
|
|
5
5
|
import { goodsSpuApi as te } from "./index.mjs";
|
|
6
|
-
import { C as ae, D as g } from "./index-
|
|
7
|
-
const se = { class: "
|
|
6
|
+
import { C as ae, D as g } from "./index-CKeHa-Cx.mjs";
|
|
7
|
+
const se = { class: "search-container" }, ne = ["onClick"], pe = ["onClick"], ue = ["onClick"], he = /* @__PURE__ */ W({
|
|
8
8
|
__name: "approveFailIndex",
|
|
9
|
-
setup(
|
|
10
|
-
const { t:
|
|
9
|
+
setup(de) {
|
|
10
|
+
const { t: D } = le(), S = ee(), { proxy: R } = X(), u = N({
|
|
11
11
|
curPage: 1,
|
|
12
12
|
pageSize: 10,
|
|
13
|
-
approvalStatus: ae.
|
|
13
|
+
approvalStatus: ae.APPROVAL_NOT_PASS
|
|
14
14
|
}), {
|
|
15
15
|
tableHooks: d,
|
|
16
16
|
multipleTableRef: z,
|
|
@@ -18,20 +18,20 @@ const se = { class: "app-container" }, ne = { class: "search-container" }, pe =
|
|
|
18
18
|
listLoading: E,
|
|
19
19
|
tableData: q,
|
|
20
20
|
total: _
|
|
21
|
-
} = oe(
|
|
22
|
-
let h =
|
|
21
|
+
} = oe(D, te, u);
|
|
22
|
+
let h = N([
|
|
23
23
|
{
|
|
24
24
|
label: "goodsSpu.shopId",
|
|
25
25
|
prop: "shopId",
|
|
26
26
|
slotName: "shopId",
|
|
27
27
|
columnType: "slot",
|
|
28
|
-
width: "
|
|
28
|
+
width: "250",
|
|
29
29
|
isColumn: !0
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
label: "goodsSpu.spuName",
|
|
33
33
|
prop: "spuName",
|
|
34
|
-
width: "
|
|
34
|
+
width: "200",
|
|
35
35
|
isColumn: !0
|
|
36
36
|
},
|
|
37
37
|
{
|
|
@@ -53,7 +53,7 @@ const se = { class: "app-container" }, ne = { class: "search-container" }, pe =
|
|
|
53
53
|
{
|
|
54
54
|
label: "goodsSpu.price",
|
|
55
55
|
prop: "minPrice",
|
|
56
|
-
width: "
|
|
56
|
+
width: "120",
|
|
57
57
|
sortable: "custom",
|
|
58
58
|
slotName: "minPrice",
|
|
59
59
|
columnType: "slot",
|
|
@@ -62,7 +62,7 @@ const se = { class: "app-container" }, ne = { class: "search-container" }, pe =
|
|
|
62
62
|
{
|
|
63
63
|
label: "goodsSpu.spuCode",
|
|
64
64
|
prop: "spuCode",
|
|
65
|
-
width: "
|
|
65
|
+
width: "120",
|
|
66
66
|
sortable: "custom",
|
|
67
67
|
isColumn: !0
|
|
68
68
|
},
|
|
@@ -76,7 +76,7 @@ const se = { class: "app-container" }, ne = { class: "search-container" }, pe =
|
|
|
76
76
|
{
|
|
77
77
|
label: "goodsSpu.specType",
|
|
78
78
|
prop: "specType",
|
|
79
|
-
width: "
|
|
79
|
+
width: "120",
|
|
80
80
|
slotName: "specType",
|
|
81
81
|
columnType: "slot",
|
|
82
82
|
sortable: "custom",
|
|
@@ -85,7 +85,7 @@ const se = { class: "app-container" }, ne = { class: "search-container" }, pe =
|
|
|
85
85
|
{
|
|
86
86
|
label: "goodsSpu.shelf",
|
|
87
87
|
prop: "shelf",
|
|
88
|
-
width: "
|
|
88
|
+
width: "120",
|
|
89
89
|
slotName: "shelf",
|
|
90
90
|
columnType: "slot",
|
|
91
91
|
sortable: "custom",
|
|
@@ -94,7 +94,7 @@ const se = { class: "app-container" }, ne = { class: "search-container" }, pe =
|
|
|
94
94
|
{
|
|
95
95
|
label: "goodsSpu.approvalStatus",
|
|
96
96
|
prop: "approvalStatus",
|
|
97
|
-
width: "
|
|
97
|
+
width: "120",
|
|
98
98
|
slotName: "approvalStatus",
|
|
99
99
|
columnType: "slot",
|
|
100
100
|
isColumn: !0
|
|
@@ -118,10 +118,10 @@ const se = { class: "app-container" }, ne = { class: "search-container" }, pe =
|
|
|
118
118
|
}
|
|
119
119
|
]);
|
|
120
120
|
g.shopInfoBizDict.useValues(), g.goodsCategoryDict.useValues();
|
|
121
|
-
function
|
|
121
|
+
function A() {
|
|
122
122
|
S.push({ path: "/rawgoods/goods-spu/edit" });
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function B(s) {
|
|
125
125
|
S.push({
|
|
126
126
|
path: "/rawgoods/goods-spu/edit",
|
|
127
127
|
query: { spuId: s.spuId }
|
|
@@ -133,16 +133,16 @@ const se = { class: "app-container" }, ne = { class: "search-container" }, pe =
|
|
|
133
133
|
query: { spuId: s.spuId }
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function H(s) {
|
|
137
137
|
d.selectionRows.value = s;
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function Q(s) {
|
|
140
140
|
d.handleSort(s.prop, s.order);
|
|
141
141
|
}
|
|
142
142
|
return d.getList(), (s, l) => {
|
|
143
|
-
const
|
|
144
|
-
return m(), C("div",
|
|
145
|
-
r("div",
|
|
143
|
+
const Y = p("jmash-select"), v = p("el-form-item"), f = p("el-col"), I = p("el-input"), y = p("el-button"), T = p("el-row"), F = p("el-form"), K = p("jmash-column-select"), M = p("el-image"), $ = p("el-switch"), O = p("jmash-table"), G = p("jmash-pagination"), J = p("el-card"), b = Z("hasPerm");
|
|
144
|
+
return m(), C("div", null, [
|
|
145
|
+
r("div", se, [
|
|
146
146
|
t(F, {
|
|
147
147
|
ref_key: "queryFormRef",
|
|
148
148
|
ref: j,
|
|
@@ -159,7 +159,7 @@ const se = { class: "app-container" }, ne = { class: "search-container" }, pe =
|
|
|
159
159
|
prop: "shopId"
|
|
160
160
|
}, {
|
|
161
161
|
default: o(() => [
|
|
162
|
-
t(
|
|
162
|
+
t(Y, {
|
|
163
163
|
modelValue: u.value.shopId,
|
|
164
164
|
"onUpdate:modelValue": l[0] || (l[0] = (e) => u.value.shopId = e),
|
|
165
165
|
placeholder: s.$t("goodsSpu.shopIdRequired"),
|
|
@@ -183,7 +183,7 @@ const se = { class: "app-container" }, ne = { class: "search-container" }, pe =
|
|
|
183
183
|
modelValue: u.value.spuCode,
|
|
184
184
|
"onUpdate:modelValue": l[1] || (l[1] = (e) => u.value.spuCode = e),
|
|
185
185
|
placeholder: s.$t("goodsSpu.spuCode"),
|
|
186
|
-
onKeyup: l[2] || (l[2] =
|
|
186
|
+
onKeyup: l[2] || (l[2] = k((e) => a(d).handleQuery(), ["enter"])),
|
|
187
187
|
class: "!w-[203px]"
|
|
188
188
|
}, null, 8, ["modelValue", "placeholder"])
|
|
189
189
|
]),
|
|
@@ -203,7 +203,7 @@ const se = { class: "app-container" }, ne = { class: "search-container" }, pe =
|
|
|
203
203
|
modelValue: u.value.spuName,
|
|
204
204
|
"onUpdate:modelValue": l[3] || (l[3] = (e) => u.value.spuName = e),
|
|
205
205
|
placeholder: s.$t("goodsSpu.spuName"),
|
|
206
|
-
onKeyup: l[4] || (l[4] =
|
|
206
|
+
onKeyup: l[4] || (l[4] = k((e) => a(d).handleQuery(), ["enter"])),
|
|
207
207
|
class: "!w-[203px]"
|
|
208
208
|
}, null, 8, ["modelValue", "placeholder"])
|
|
209
209
|
]),
|
|
@@ -246,7 +246,7 @@ const se = { class: "app-container" }, ne = { class: "search-container" }, pe =
|
|
|
246
246
|
_: 1
|
|
247
247
|
}, 8, ["model"])
|
|
248
248
|
]),
|
|
249
|
-
t(
|
|
249
|
+
t(J, {
|
|
250
250
|
shadow: "never",
|
|
251
251
|
class: "table-container"
|
|
252
252
|
}, {
|
|
@@ -257,7 +257,7 @@ const se = { class: "app-container" }, ne = { class: "search-container" }, pe =
|
|
|
257
257
|
default: o(() => [
|
|
258
258
|
w((m(), V(y, {
|
|
259
259
|
type: "primary",
|
|
260
|
-
onClick:
|
|
260
|
+
onClick: A
|
|
261
261
|
}, {
|
|
262
262
|
default: o(() => [
|
|
263
263
|
c(n(s.$t("common.add")), 1)
|
|
@@ -298,7 +298,7 @@ const se = { class: "app-container" }, ne = { class: "search-container" }, pe =
|
|
|
298
298
|
})
|
|
299
299
|
]),
|
|
300
300
|
footer: o(() => [
|
|
301
|
-
a(_) > 0 ? (m(), V(
|
|
301
|
+
a(_) > 0 ? (m(), V(G, {
|
|
302
302
|
key: 0,
|
|
303
303
|
total: a(_),
|
|
304
304
|
"onUpdate:total": l[9] || (l[9] = (e) => U(_) ? _.value = e : null),
|
|
@@ -310,15 +310,15 @@ const se = { class: "app-container" }, ne = { class: "search-container" }, pe =
|
|
|
310
310
|
}, null, 8, ["total", "current-page", "page-size"])) : x("", !0)
|
|
311
311
|
]),
|
|
312
312
|
default: o(() => [
|
|
313
|
-
t(
|
|
313
|
+
t(O, {
|
|
314
314
|
ref_key: "multipleTableRef",
|
|
315
315
|
ref: z,
|
|
316
316
|
"row-key": "spuId",
|
|
317
317
|
"list-loading": a(E),
|
|
318
318
|
data: a(q),
|
|
319
319
|
"table-label": a(h),
|
|
320
|
-
onSelectionChange:
|
|
321
|
-
onSortChange:
|
|
320
|
+
onSelectionChange: H,
|
|
321
|
+
onSortChange: Q
|
|
322
322
|
}, {
|
|
323
323
|
shopId: o((e) => [
|
|
324
324
|
r("span", null, n(a(g).shopInfoBizDict.getValue(e.data.row.shopId)), 1)
|
|
@@ -329,9 +329,9 @@ const se = { class: "app-container" }, ne = { class: "search-container" }, pe =
|
|
|
329
329
|
picUrls: o((e) => [
|
|
330
330
|
r("span", null, [
|
|
331
331
|
t(M, {
|
|
332
|
-
src: a(
|
|
332
|
+
src: a(P).imageUrl(e.data.row.picUrls.split(",")[0], 50, 50),
|
|
333
333
|
"preview-src-list": [
|
|
334
|
-
a(
|
|
334
|
+
a(P).imageUrl(e.data.row.picUrls.split(",")[0])
|
|
335
335
|
],
|
|
336
336
|
"preview-teleported": "",
|
|
337
337
|
"hide-on-click-modal": "",
|
|
@@ -375,10 +375,10 @@ const se = { class: "app-container" }, ne = { class: "search-container" }, pe =
|
|
|
375
375
|
operation: o((e) => [
|
|
376
376
|
w((m(), C("span", {
|
|
377
377
|
class: "el-button-color",
|
|
378
|
-
onClick: (i) =>
|
|
378
|
+
onClick: (i) => B(e.data.row)
|
|
379
379
|
}, [
|
|
380
380
|
c(n(s.$t("common.edit")), 1)
|
|
381
|
-
], 8,
|
|
381
|
+
], 8, ne)), [
|
|
382
382
|
[b, ["goods:goods_spu:update"]]
|
|
383
383
|
]),
|
|
384
384
|
w((m(), C("span", {
|
|
@@ -386,7 +386,7 @@ const se = { class: "app-container" }, ne = { class: "search-container" }, pe =
|
|
|
386
386
|
onClick: (i) => a(d).deleteRecord(e.data.row)
|
|
387
387
|
}, [
|
|
388
388
|
c(n(s.$t("common.delete")), 1)
|
|
389
|
-
], 8,
|
|
389
|
+
], 8, pe)), [
|
|
390
390
|
[b, ["goods:goods_spu:delete"]]
|
|
391
391
|
]),
|
|
392
392
|
w((m(), C("span", {
|
|
@@ -394,7 +394,7 @@ const se = { class: "app-container" }, ne = { class: "search-container" }, pe =
|
|
|
394
394
|
onClick: (i) => L(e.data.row)
|
|
395
395
|
}, [
|
|
396
396
|
c(n(s.$t("common.view")), 1)
|
|
397
|
-
], 8,
|
|
397
|
+
], 8, ue)), [
|
|
398
398
|
[b, ["goods:goods_spu:view"]]
|
|
399
399
|
])
|
|
400
400
|
]),
|
|
@@ -408,5 +408,5 @@ const se = { class: "app-container" }, ne = { class: "search-container" }, pe =
|
|
|
408
408
|
}
|
|
409
409
|
});
|
|
410
410
|
export {
|
|
411
|
-
|
|
411
|
+
he as _
|
|
412
412
|
};
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { defineComponent as ne, getCurrentInstance as pe, ref as
|
|
1
|
+
import { defineComponent as ne, getCurrentInstance as pe, ref as D, resolveComponent as n, resolveDirective as de, openBlock as c, createElementBlock as V, createElementVNode as m, createVNode as l, withCtx as o, unref as s, withKeys as z, createTextVNode as r, toDisplayString as p, withDirectives as v, createBlock as I, isRef as L, createCommentVNode as ue } from "vue";
|
|
2
2
|
import { ElMessage as T } from "element-plus";
|
|
3
3
|
import { useRouter as re } from "vue-router";
|
|
4
|
-
import { useTableHooks as
|
|
5
|
-
import { useI18n as
|
|
4
|
+
import { useTableHooks as me, fileApi as j } from "jmash-core";
|
|
5
|
+
import { useI18n as ie } from "vue-i18n";
|
|
6
6
|
import { goodsSpuApi as E } from "./index.mjs";
|
|
7
|
-
import { C as ce, D as _ } from "./index-
|
|
8
|
-
const ge = { class: "
|
|
7
|
+
import { C as ce, D as _ } from "./index-CKeHa-Cx.mjs";
|
|
8
|
+
const ge = { class: "search-container" }, fe = ["onClick"], _e = ["onClick"], we = ["onClick"], $e = /* @__PURE__ */ ne({
|
|
9
9
|
__name: "auditIndex",
|
|
10
|
-
setup(
|
|
11
|
-
const { t: w } =
|
|
10
|
+
setup(he) {
|
|
11
|
+
const { t: w } = ie(), $ = re(), { proxy: q } = pe(), u = D({
|
|
12
12
|
curPage: 1,
|
|
13
13
|
pageSize: 10,
|
|
14
|
-
approvalStatus: ce.
|
|
14
|
+
approvalStatus: ce.APPROVALING
|
|
15
15
|
}), {
|
|
16
16
|
tableHooks: d,
|
|
17
17
|
multipleTableRef: N,
|
|
18
18
|
queryFormRef: B,
|
|
19
|
-
listLoading:
|
|
20
|
-
tableData:
|
|
19
|
+
listLoading: O,
|
|
20
|
+
tableData: H,
|
|
21
21
|
total: C
|
|
22
|
-
} =
|
|
23
|
-
let y =
|
|
22
|
+
} = me(w, E, u);
|
|
23
|
+
let y = D([
|
|
24
24
|
{
|
|
25
25
|
label: "goodsSpu.shopId",
|
|
26
26
|
prop: "shopId",
|
|
27
27
|
slotName: "shopId",
|
|
28
28
|
columnType: "slot",
|
|
29
|
-
width: "
|
|
29
|
+
width: "250",
|
|
30
30
|
isColumn: !0
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
label: "goodsSpu.spuName",
|
|
34
34
|
prop: "spuName",
|
|
35
|
-
width: "
|
|
35
|
+
width: "200",
|
|
36
36
|
isColumn: !0
|
|
37
37
|
},
|
|
38
38
|
{
|
|
@@ -54,7 +54,7 @@ const ge = { class: "app-container" }, fe = { class: "search-container" }, _e =
|
|
|
54
54
|
{
|
|
55
55
|
label: "goodsSpu.price",
|
|
56
56
|
prop: "minPrice",
|
|
57
|
-
width: "
|
|
57
|
+
width: "120",
|
|
58
58
|
sortable: "custom",
|
|
59
59
|
slotName: "minPrice",
|
|
60
60
|
columnType: "slot",
|
|
@@ -63,7 +63,7 @@ const ge = { class: "app-container" }, fe = { class: "search-container" }, _e =
|
|
|
63
63
|
{
|
|
64
64
|
label: "goodsSpu.spuCode",
|
|
65
65
|
prop: "spuCode",
|
|
66
|
-
width: "
|
|
66
|
+
width: "120",
|
|
67
67
|
sortable: "custom",
|
|
68
68
|
isColumn: !0
|
|
69
69
|
},
|
|
@@ -77,7 +77,7 @@ const ge = { class: "app-container" }, fe = { class: "search-container" }, _e =
|
|
|
77
77
|
{
|
|
78
78
|
label: "goodsSpu.specType",
|
|
79
79
|
prop: "specType",
|
|
80
|
-
width: "
|
|
80
|
+
width: "120",
|
|
81
81
|
slotName: "specType",
|
|
82
82
|
columnType: "slot",
|
|
83
83
|
sortable: "custom",
|
|
@@ -86,7 +86,7 @@ const ge = { class: "app-container" }, fe = { class: "search-container" }, _e =
|
|
|
86
86
|
{
|
|
87
87
|
label: "goodsSpu.shelf",
|
|
88
88
|
prop: "shelf",
|
|
89
|
-
width: "
|
|
89
|
+
width: "120",
|
|
90
90
|
slotName: "shelf",
|
|
91
91
|
columnType: "slot",
|
|
92
92
|
sortable: "custom",
|
|
@@ -95,7 +95,7 @@ const ge = { class: "app-container" }, fe = { class: "search-container" }, _e =
|
|
|
95
95
|
{
|
|
96
96
|
label: "goodsSpu.approvalStatus",
|
|
97
97
|
prop: "approvalStatus",
|
|
98
|
-
width: "
|
|
98
|
+
width: "120",
|
|
99
99
|
slotName: "approvalStatus",
|
|
100
100
|
columnType: "slot",
|
|
101
101
|
isColumn: !0
|
|
@@ -141,29 +141,29 @@ const ge = { class: "app-container" }, fe = { class: "search-container" }, _e =
|
|
|
141
141
|
d.handleSort(t.prop, t.order);
|
|
142
142
|
}
|
|
143
143
|
function G(t) {
|
|
144
|
-
if (
|
|
144
|
+
if (d.selectionRows.value.length === 0) {
|
|
145
145
|
T({
|
|
146
146
|
message: w("goodsSpu.chooseShelf"),
|
|
147
147
|
type: "warning"
|
|
148
148
|
});
|
|
149
149
|
return;
|
|
150
150
|
}
|
|
151
|
-
const a = d.selectionRows.value.map((
|
|
152
|
-
E.audit({ spuId: a }, t).then((
|
|
151
|
+
const a = d.selectionRows.value.map((g) => g.spuId);
|
|
152
|
+
E.audit({ spuId: a }, t).then((g) => {
|
|
153
153
|
var f;
|
|
154
|
-
|
|
155
|
-
message: w("goodsSpu.successApproval") +
|
|
154
|
+
g.status === 200 && (t === "APPROVAL_PASS" ? T({
|
|
155
|
+
message: w("goodsSpu.successApproval") + g.data + w("common.stripData"),
|
|
156
156
|
type: "success"
|
|
157
157
|
}) : T({
|
|
158
|
-
message: w("goodsSpu.successFilled") +
|
|
158
|
+
message: w("goodsSpu.successFilled") + g.data + w("common.stripData"),
|
|
159
159
|
type: "success"
|
|
160
160
|
}), d.getList(), (f = N.value) == null || f.clearSelection());
|
|
161
161
|
});
|
|
162
162
|
}
|
|
163
163
|
return d.getList(), (t, a) => {
|
|
164
|
-
const
|
|
165
|
-
return
|
|
166
|
-
|
|
164
|
+
const g = n("jmash-select"), f = n("el-form-item"), h = n("el-col"), P = n("el-input"), S = n("el-button"), U = n("el-row"), J = n("el-form"), W = n("arrow-down"), k = n("el-icon"), X = n("Unlock"), R = n("el-dropdown-item"), Z = n("Lock"), x = n("el-dropdown-menu"), ee = n("el-dropdown"), oe = n("jmash-column-select"), le = n("el-image"), A = n("el-switch"), te = n("jmash-table"), ae = n("jmash-pagination"), se = n("el-card"), b = de("hasPerm");
|
|
165
|
+
return c(), V("div", null, [
|
|
166
|
+
m("div", ge, [
|
|
167
167
|
l(J, {
|
|
168
168
|
ref_key: "queryFormRef",
|
|
169
169
|
ref: B,
|
|
@@ -180,7 +180,7 @@ const ge = { class: "app-container" }, fe = { class: "search-container" }, _e =
|
|
|
180
180
|
prop: "shopId"
|
|
181
181
|
}, {
|
|
182
182
|
default: o(() => [
|
|
183
|
-
l(
|
|
183
|
+
l(g, {
|
|
184
184
|
modelValue: u.value.shopId,
|
|
185
185
|
"onUpdate:modelValue": a[0] || (a[0] = (e) => u.value.shopId = e),
|
|
186
186
|
placeholder: t.$t("goodsSpu.shopIdRequired"),
|
|
@@ -276,7 +276,7 @@ const ge = { class: "app-container" }, fe = { class: "search-container" }, _e =
|
|
|
276
276
|
default: o(() => [
|
|
277
277
|
l(h, { span: 17 }, {
|
|
278
278
|
default: o(() => [
|
|
279
|
-
v((
|
|
279
|
+
v((c(), I(S, {
|
|
280
280
|
type: "primary",
|
|
281
281
|
onClick: Q
|
|
282
282
|
}, {
|
|
@@ -287,7 +287,7 @@ const ge = { class: "app-container" }, fe = { class: "search-container" }, _e =
|
|
|
287
287
|
})), [
|
|
288
288
|
[b, ["goods:goods_spu:add"]]
|
|
289
289
|
]),
|
|
290
|
-
v((
|
|
290
|
+
v((c(), I(S, {
|
|
291
291
|
type: "primary",
|
|
292
292
|
onClick: a[7] || (a[7] = (e) => s(d).deleteRecords())
|
|
293
293
|
}, {
|
|
@@ -298,7 +298,7 @@ const ge = { class: "app-container" }, fe = { class: "search-container" }, _e =
|
|
|
298
298
|
})), [
|
|
299
299
|
[b, ["goods:goods_spu:delete"]]
|
|
300
300
|
]),
|
|
301
|
-
v((
|
|
301
|
+
v((c(), I(ee, {
|
|
302
302
|
class: "dropdown-left",
|
|
303
303
|
onCommand: G
|
|
304
304
|
}, {
|
|
@@ -372,7 +372,7 @@ const ge = { class: "app-container" }, fe = { class: "search-container" }, _e =
|
|
|
372
372
|
})
|
|
373
373
|
]),
|
|
374
374
|
footer: o(() => [
|
|
375
|
-
s(C) > 0 ? (
|
|
375
|
+
s(C) > 0 ? (c(), I(ae, {
|
|
376
376
|
key: 0,
|
|
377
377
|
total: s(C),
|
|
378
378
|
"onUpdate:total": a[9] || (a[9] = (e) => L(C) ? C.value = e : null),
|
|
@@ -388,20 +388,20 @@ const ge = { class: "app-container" }, fe = { class: "search-container" }, _e =
|
|
|
388
388
|
ref_key: "multipleTableRef",
|
|
389
389
|
ref: N,
|
|
390
390
|
"row-key": "spuId",
|
|
391
|
-
"list-loading": s(
|
|
392
|
-
data: s(
|
|
391
|
+
"list-loading": s(O),
|
|
392
|
+
data: s(H),
|
|
393
393
|
"table-label": s(y),
|
|
394
394
|
onSelectionChange: K,
|
|
395
395
|
onSortChange: M
|
|
396
396
|
}, {
|
|
397
397
|
shopId: o((e) => [
|
|
398
|
-
|
|
398
|
+
m("span", null, p(s(_).shopInfoBizDict.getValue(e.data.row.shopId)), 1)
|
|
399
399
|
]),
|
|
400
400
|
categoryId: o((e) => [
|
|
401
|
-
|
|
401
|
+
m("span", null, p(s(_).goodsCategoryDict.getValue(e.data.row.categoryId)), 1)
|
|
402
402
|
]),
|
|
403
403
|
picUrls: o((e) => [
|
|
404
|
-
|
|
404
|
+
m("span", null, [
|
|
405
405
|
l(le, {
|
|
406
406
|
src: s(j).imageUrl(e.data.row.picUrls.split(",")[0], 50, 50),
|
|
407
407
|
"preview-src-list": [
|
|
@@ -414,61 +414,61 @@ const ge = { class: "app-container" }, fe = { class: "search-container" }, _e =
|
|
|
414
414
|
])
|
|
415
415
|
]),
|
|
416
416
|
shelf: o((e) => [
|
|
417
|
-
|
|
418
|
-
l(
|
|
417
|
+
m("span", null, [
|
|
418
|
+
l(A, {
|
|
419
419
|
modelValue: e.data.row.shelf,
|
|
420
|
-
"onUpdate:modelValue": (
|
|
421
|
-
onClick: (
|
|
420
|
+
"onUpdate:modelValue": (i) => e.data.row.shelf = i,
|
|
421
|
+
onClick: (i) => s(d).enableRecord(e.data.row, e.data.row.shelf)
|
|
422
422
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onClick"])
|
|
423
423
|
])
|
|
424
424
|
]),
|
|
425
425
|
minPrice: o((e) => [
|
|
426
|
-
|
|
426
|
+
m("span", null, p(e.data.row.minPrice) + " ~ " + p(e.data.row.maxPrice), 1)
|
|
427
427
|
]),
|
|
428
428
|
specType: o((e) => [
|
|
429
|
-
|
|
429
|
+
m("span", null, p(s(_).specTypeEnum.getEnumValue(e.data.row.specType)), 1)
|
|
430
430
|
]),
|
|
431
431
|
approvalStatus: o((e) => [
|
|
432
|
-
|
|
432
|
+
m("span", null, p(s(_).approvalStatusEnum.getEnumValue(
|
|
433
433
|
e.data.row.approvalStatus
|
|
434
434
|
)), 1)
|
|
435
435
|
]),
|
|
436
436
|
updateTime: o((e) => [
|
|
437
|
-
|
|
437
|
+
m("span", null, p(s(q).$moment.formatDate(
|
|
438
438
|
e.data.row.updateTime,
|
|
439
439
|
"YYYY-MM-DD HH:mm:ss"
|
|
440
440
|
)), 1)
|
|
441
441
|
]),
|
|
442
442
|
enable: o((e) => [
|
|
443
|
-
l(
|
|
443
|
+
l(A, {
|
|
444
444
|
modelValue: e.data.row.enable,
|
|
445
|
-
"onUpdate:modelValue": (
|
|
446
|
-
onChange: (
|
|
445
|
+
"onUpdate:modelValue": (i) => e.data.row.enable = i,
|
|
446
|
+
onChange: (i) => s(d).enableRecord(e.data.row, e.data.row.enable)
|
|
447
447
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
448
448
|
]),
|
|
449
449
|
operation: o((e) => [
|
|
450
|
-
v((
|
|
450
|
+
v((c(), V("span", {
|
|
451
451
|
class: "el-button-color",
|
|
452
|
-
onClick: (
|
|
452
|
+
onClick: (i) => Y(e.data.row)
|
|
453
453
|
}, [
|
|
454
454
|
r(p(t.$t("common.edit")), 1)
|
|
455
|
-
], 8,
|
|
455
|
+
], 8, fe)), [
|
|
456
456
|
[b, ["goods:goods_spu:update"]]
|
|
457
457
|
]),
|
|
458
|
-
v((
|
|
458
|
+
v((c(), V("span", {
|
|
459
459
|
class: "el-button-color dropdown-left",
|
|
460
|
-
onClick: (
|
|
460
|
+
onClick: (i) => s(d).deleteRecord(e.data.row)
|
|
461
461
|
}, [
|
|
462
462
|
r(p(t.$t("common.delete")), 1)
|
|
463
|
-
], 8,
|
|
463
|
+
], 8, _e)), [
|
|
464
464
|
[b, ["goods:goods_spu:delete"]]
|
|
465
465
|
]),
|
|
466
|
-
v((
|
|
466
|
+
v((c(), V("span", {
|
|
467
467
|
class: "el-button-color dropdown-left",
|
|
468
|
-
onClick: (
|
|
468
|
+
onClick: (i) => F(e.data.row)
|
|
469
469
|
}, [
|
|
470
470
|
r(p(t.$t("common.view")), 1)
|
|
471
|
-
], 8,
|
|
471
|
+
], 8, we)), [
|
|
472
472
|
[b, ["goods:goods_spu:view"]]
|
|
473
473
|
])
|
|
474
474
|
]),
|
|
@@ -482,5 +482,5 @@ const ge = { class: "app-container" }, fe = { class: "search-container" }, _e =
|
|
|
482
482
|
}
|
|
483
483
|
});
|
|
484
484
|
export {
|
|
485
|
-
|
|
485
|
+
$e as _
|
|
486
486
|
};
|