xyvcard-goods 0.0.18 → 0.0.19
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/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
- package/dist/edit-B3Ripwo1.mjs +437 -0
- package/dist/{edit-CYk6B5NG.mjs → edit-DEdWUJfi.mjs} +2 -2
- package/dist/edit-SYuN1_Fg.mjs +465 -0
- package/dist/index-C0nlTW8F.mjs +355 -0
- package/dist/index-DH3UH0QC.mjs +345 -0
- package/dist/index-DR7GlHNd.mjs +1288 -0
- package/dist/index.mjs +211 -188
- package/dist/{info-D6MWRZ1y.mjs → info-5OkZzwEV.mjs} +51 -45
- package/dist/{skuForm-H9IDa7ys.mjs → skuForm-DyYIl6H4.mjs} +44 -43
- package/dist/{skuTable-DbNThlFG.mjs → skuTable-B8v1DVIO.mjs} +179 -189
- package/dist/style.css +1 -1
- package/dts/api/goods-brand-info/index.d.ts +20 -0
- package/dts/api/goods-brand-info/types.d.ts +70 -0
- package/dts/api/goods-label-info/index.d.ts +20 -0
- package/dts/api/goods-label-info/types.d.ts +67 -0
- package/dts/api/goods-spu/types.d.ts +1 -0
- package/dts/lang/goods/zh-cn.d.ts +21 -0
- package/dts/views/goods/goods-brand-info/edit.vue.d.ts +22 -0
- package/dts/views/goods/goods-brand-info/index.vue.d.ts +2 -0
- package/dts/views/goods/goods-label-info/edit.vue.d.ts +22 -0
- package/dts/views/goods/goods-label-info/index.vue.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
import { defineComponent as Z, ref as k, reactive as R, resolveComponent as s, resolveDirective as ee, openBlock as i, createElementBlock as B, createElementVNode as u, createVNode as r, withCtx as t, unref as l, createTextVNode as m, toDisplayString as a, withDirectives as _, createBlock as f, isRef as E, createCommentVNode as $ } from "vue";
|
|
2
|
+
import { useTableHooks as oe } from "jmash-core";
|
|
3
|
+
import { useI18n as te } from "vue-i18n";
|
|
4
|
+
import { g as ne, a as le } from "./edit-SYuN1_Fg.mjs";
|
|
5
|
+
const ae = { class: "app-container" }, de = { class: "search-container" }, re = ["onClick"], se = ["onClick"], ce = /* @__PURE__ */ Z({
|
|
6
|
+
__name: "index",
|
|
7
|
+
setup(ie) {
|
|
8
|
+
const { t: c } = te(), v = k({}), {
|
|
9
|
+
tableHooks: d,
|
|
10
|
+
multipleTableRef: N,
|
|
11
|
+
queryFormRef: S,
|
|
12
|
+
listLoading: T,
|
|
13
|
+
tableData: j,
|
|
14
|
+
total: I
|
|
15
|
+
} = oe(c, ne, v);
|
|
16
|
+
let y = k([
|
|
17
|
+
{
|
|
18
|
+
label: "goodsBrandInfo.tenantId",
|
|
19
|
+
prop: "tenantId",
|
|
20
|
+
width: "150",
|
|
21
|
+
sortable: "custom",
|
|
22
|
+
isColumn: !0
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
label: "goodsBrandInfo.brandId",
|
|
26
|
+
prop: "brandId",
|
|
27
|
+
width: "150",
|
|
28
|
+
sortable: "custom",
|
|
29
|
+
isColumn: !0
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
label: "goodsBrandInfo.shopId",
|
|
33
|
+
prop: "shopId",
|
|
34
|
+
width: "150",
|
|
35
|
+
sortable: "custom",
|
|
36
|
+
isColumn: !0
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
label: "goodsBrandInfo.brandName",
|
|
40
|
+
prop: "brandName",
|
|
41
|
+
width: "150",
|
|
42
|
+
sortable: "custom",
|
|
43
|
+
isColumn: !0
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
label: "goodsBrandInfo.logoUrl",
|
|
47
|
+
prop: "logoUrl",
|
|
48
|
+
width: "150",
|
|
49
|
+
sortable: "custom",
|
|
50
|
+
isColumn: !0
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
label: "goodsBrandInfo.description",
|
|
54
|
+
prop: "description",
|
|
55
|
+
width: "150",
|
|
56
|
+
sortable: "custom",
|
|
57
|
+
isColumn: !0
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
label: "goodsBrandInfo.orderBy",
|
|
61
|
+
prop: "orderBy",
|
|
62
|
+
width: "150",
|
|
63
|
+
sortable: "custom",
|
|
64
|
+
isColumn: !0
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
label: "goodsBrandInfo.status",
|
|
68
|
+
prop: "status",
|
|
69
|
+
width: "150",
|
|
70
|
+
sortable: "custom",
|
|
71
|
+
isColumn: !0
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
label: "common.operate",
|
|
75
|
+
width: "200",
|
|
76
|
+
slotName: "operation",
|
|
77
|
+
columnType: "slot",
|
|
78
|
+
fixed: "right",
|
|
79
|
+
isColumn: !0
|
|
80
|
+
}
|
|
81
|
+
]);
|
|
82
|
+
const p = k({
|
|
83
|
+
title: c("common.edit"),
|
|
84
|
+
visible: !1
|
|
85
|
+
}), C = k(!1);
|
|
86
|
+
let h = R({});
|
|
87
|
+
function D() {
|
|
88
|
+
h = R({}), p.value.title = c("common.add"), p.value.visible = !0;
|
|
89
|
+
}
|
|
90
|
+
function P(n) {
|
|
91
|
+
h.brandId = n.brandId, p.value.title = c("common.edit"), p.value.visible = !0;
|
|
92
|
+
}
|
|
93
|
+
function z(n) {
|
|
94
|
+
d.selectionRows.value = n;
|
|
95
|
+
}
|
|
96
|
+
function L(n) {
|
|
97
|
+
d.handleSort(n.prop, n.order);
|
|
98
|
+
}
|
|
99
|
+
function q(n) {
|
|
100
|
+
n && d.getList();
|
|
101
|
+
}
|
|
102
|
+
function x() {
|
|
103
|
+
C.value = !1;
|
|
104
|
+
}
|
|
105
|
+
function M(n) {
|
|
106
|
+
n.updateMask = "", d.importExcel(n).then((o) => {
|
|
107
|
+
C.value = !1;
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
return d.getList(), (n, o) => {
|
|
111
|
+
const b = s("el-button"), A = s("el-form-item"), F = s("el-form"), V = s("el-col"), H = s("jmash-column-select"), Q = s("el-row"), K = s("Bottom"), U = s("el-icon"), O = s("Top"), G = s("el-switch"), J = s("jmash-table"), W = s("jmash-pagination"), X = s("el-card"), Y = s("jmash-import-upload"), g = ee("hasPerm");
|
|
112
|
+
return i(), B("div", ae, [
|
|
113
|
+
u("div", de, [
|
|
114
|
+
r(F, {
|
|
115
|
+
ref_key: "queryFormRef",
|
|
116
|
+
ref: S,
|
|
117
|
+
model: v.value,
|
|
118
|
+
inline: !0
|
|
119
|
+
}, {
|
|
120
|
+
default: t(() => [
|
|
121
|
+
r(A, { class: "search-btn" }, {
|
|
122
|
+
default: t(() => [
|
|
123
|
+
r(b, {
|
|
124
|
+
type: "primary",
|
|
125
|
+
onClick: o[0] || (o[0] = (e) => l(d).handleQuery())
|
|
126
|
+
}, {
|
|
127
|
+
default: t(() => [
|
|
128
|
+
m(a(n.$t("common.search")), 1)
|
|
129
|
+
]),
|
|
130
|
+
_: 1
|
|
131
|
+
}),
|
|
132
|
+
r(b, {
|
|
133
|
+
onClick: o[1] || (o[1] = (e) => l(d).resetQuery())
|
|
134
|
+
}, {
|
|
135
|
+
default: t(() => [
|
|
136
|
+
m(a(n.$t("common.reset")), 1)
|
|
137
|
+
]),
|
|
138
|
+
_: 1
|
|
139
|
+
})
|
|
140
|
+
]),
|
|
141
|
+
_: 1
|
|
142
|
+
})
|
|
143
|
+
]),
|
|
144
|
+
_: 1
|
|
145
|
+
}, 8, ["model"]),
|
|
146
|
+
o[13] || (o[13] = u("div", { class: "clear" }, null, -1))
|
|
147
|
+
]),
|
|
148
|
+
r(X, {
|
|
149
|
+
shadow: "never",
|
|
150
|
+
class: "table-container"
|
|
151
|
+
}, {
|
|
152
|
+
header: t(() => [
|
|
153
|
+
r(Q, null, {
|
|
154
|
+
default: t(() => [
|
|
155
|
+
r(V, { span: 17 }, {
|
|
156
|
+
default: t(() => [
|
|
157
|
+
_((i(), f(b, {
|
|
158
|
+
type: "primary",
|
|
159
|
+
onClick: D
|
|
160
|
+
}, {
|
|
161
|
+
default: t(() => [
|
|
162
|
+
m(a(n.$t("common.add")), 1)
|
|
163
|
+
]),
|
|
164
|
+
_: 1
|
|
165
|
+
})), [
|
|
166
|
+
[g, ["goods:goods_brand_info:add"]]
|
|
167
|
+
]),
|
|
168
|
+
_((i(), f(b, {
|
|
169
|
+
type: "primary",
|
|
170
|
+
onClick: o[2] || (o[2] = (e) => l(d).deleteRecords())
|
|
171
|
+
}, {
|
|
172
|
+
default: t(() => [
|
|
173
|
+
m(a(n.$t("common.batchDelete")), 1)
|
|
174
|
+
]),
|
|
175
|
+
_: 1
|
|
176
|
+
})), [
|
|
177
|
+
[g, ["goods:goods_brand_info:delete"]]
|
|
178
|
+
])
|
|
179
|
+
]),
|
|
180
|
+
_: 1
|
|
181
|
+
}),
|
|
182
|
+
r(V, {
|
|
183
|
+
span: 7,
|
|
184
|
+
class: "container-float"
|
|
185
|
+
}, {
|
|
186
|
+
default: t(() => [
|
|
187
|
+
_((i(), f(b, {
|
|
188
|
+
plain: "",
|
|
189
|
+
type: "primary",
|
|
190
|
+
onClick: o[3] || (o[3] = (e) => C.value = !0)
|
|
191
|
+
}, {
|
|
192
|
+
default: t(() => [
|
|
193
|
+
m(a(n.$t("common.import")), 1)
|
|
194
|
+
]),
|
|
195
|
+
_: 1
|
|
196
|
+
})), [
|
|
197
|
+
[g, ["goods:goods_brand_info:import"]]
|
|
198
|
+
]),
|
|
199
|
+
_((i(), f(b, {
|
|
200
|
+
plain: "",
|
|
201
|
+
type: "primary",
|
|
202
|
+
onClick: o[4] || (o[4] = (e) => l(d).handleExport(l(c)("goods.goodsBrandInfo.name")))
|
|
203
|
+
}, {
|
|
204
|
+
default: t(() => [
|
|
205
|
+
m(a(n.$t("common.export")), 1)
|
|
206
|
+
]),
|
|
207
|
+
_: 1
|
|
208
|
+
})), [
|
|
209
|
+
[g, ["goods:goods_brand_info:export"]]
|
|
210
|
+
]),
|
|
211
|
+
_((i(), f(b, {
|
|
212
|
+
plain: "",
|
|
213
|
+
type: "primary",
|
|
214
|
+
onClick: o[5] || (o[5] = (e) => l(d).handleExportPdf(l(c)("goods.goodsBrandInfo.name")))
|
|
215
|
+
}, {
|
|
216
|
+
default: t(() => [
|
|
217
|
+
m(a(n.$t("common.print")), 1)
|
|
218
|
+
]),
|
|
219
|
+
_: 1
|
|
220
|
+
})), [
|
|
221
|
+
[g, ["goods:goods_brand_info:print"]]
|
|
222
|
+
]),
|
|
223
|
+
r(H, {
|
|
224
|
+
modelValue: l(y),
|
|
225
|
+
"onUpdate:modelValue": o[6] || (o[6] = (e) => E(y) ? y.value = e : y = e),
|
|
226
|
+
"label-name": "goods/goods-brand-info"
|
|
227
|
+
}, null, 8, ["modelValue"])
|
|
228
|
+
]),
|
|
229
|
+
_: 1
|
|
230
|
+
})
|
|
231
|
+
]),
|
|
232
|
+
_: 1
|
|
233
|
+
})
|
|
234
|
+
]),
|
|
235
|
+
footer: t(() => [
|
|
236
|
+
l(I) > 0 ? (i(), f(W, {
|
|
237
|
+
key: 0,
|
|
238
|
+
total: l(I),
|
|
239
|
+
"onUpdate:total": o[7] || (o[7] = (e) => E(I) ? I.value = e : null),
|
|
240
|
+
"current-page": v.value.curPage,
|
|
241
|
+
"onUpdate:currentPage": o[8] || (o[8] = (e) => v.value.curPage = e),
|
|
242
|
+
"page-size": v.value.pageSize,
|
|
243
|
+
"onUpdate:pageSize": o[9] || (o[9] = (e) => v.value.pageSize = e),
|
|
244
|
+
onPagination: o[10] || (o[10] = (e) => l(d).getList())
|
|
245
|
+
}, null, 8, ["total", "current-page", "page-size"])) : $("", !0)
|
|
246
|
+
]),
|
|
247
|
+
default: t(() => [
|
|
248
|
+
r(J, {
|
|
249
|
+
ref_key: "multipleTableRef",
|
|
250
|
+
ref: N,
|
|
251
|
+
"row-key": "brandId",
|
|
252
|
+
"list-loading": l(T),
|
|
253
|
+
data: l(j),
|
|
254
|
+
"table-label": l(y),
|
|
255
|
+
onSelectionChange: z,
|
|
256
|
+
onSortChange: L
|
|
257
|
+
}, {
|
|
258
|
+
tenantId: t((e) => [
|
|
259
|
+
u("span", null, a(e.data.row.tenantId), 1)
|
|
260
|
+
]),
|
|
261
|
+
brandId: t((e) => [
|
|
262
|
+
u("span", null, a(e.data.row.brandId), 1)
|
|
263
|
+
]),
|
|
264
|
+
shopId: t((e) => [
|
|
265
|
+
u("span", null, a(e.data.row.shopId), 1)
|
|
266
|
+
]),
|
|
267
|
+
brandName: t((e) => [
|
|
268
|
+
u("span", null, a(e.data.row.brandName), 1)
|
|
269
|
+
]),
|
|
270
|
+
logoUrl: t((e) => [
|
|
271
|
+
u("span", null, a(e.data.row.logoUrl), 1)
|
|
272
|
+
]),
|
|
273
|
+
description: t((e) => [
|
|
274
|
+
u("span", null, a(e.data.row.description), 1)
|
|
275
|
+
]),
|
|
276
|
+
orderBy: t((e) => [
|
|
277
|
+
u("span", null, a(e.data.row.orderBy), 1)
|
|
278
|
+
]),
|
|
279
|
+
status: t((e) => [
|
|
280
|
+
u("span", null, a(e.data.row.status), 1)
|
|
281
|
+
]),
|
|
282
|
+
listOrder: t((e) => [
|
|
283
|
+
r(U, {
|
|
284
|
+
size: "16",
|
|
285
|
+
onClick: (w) => l(d).handleMove(e.data.row, !1)
|
|
286
|
+
}, {
|
|
287
|
+
default: t(() => [
|
|
288
|
+
r(K)
|
|
289
|
+
]),
|
|
290
|
+
_: 2
|
|
291
|
+
}, 1032, ["onClick"]),
|
|
292
|
+
r(U, {
|
|
293
|
+
size: "16",
|
|
294
|
+
onClick: (w) => l(d).handleMove(e.data.row, !0)
|
|
295
|
+
}, {
|
|
296
|
+
default: t(() => [
|
|
297
|
+
r(O)
|
|
298
|
+
]),
|
|
299
|
+
_: 2
|
|
300
|
+
}, 1032, ["onClick"])
|
|
301
|
+
]),
|
|
302
|
+
enable: t((e) => [
|
|
303
|
+
r(G, {
|
|
304
|
+
modelValue: e.data.row.enable,
|
|
305
|
+
"onUpdate:modelValue": (w) => e.data.row.enable = w,
|
|
306
|
+
onChange: (w) => l(d).enableRecord(e.data.row, e.data.row.enable)
|
|
307
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
308
|
+
]),
|
|
309
|
+
operation: t((e) => [
|
|
310
|
+
_((i(), B("span", {
|
|
311
|
+
class: "el-button-color",
|
|
312
|
+
onClick: (w) => P(e.data.row)
|
|
313
|
+
}, [
|
|
314
|
+
m(a(n.$t("common.edit")), 1)
|
|
315
|
+
], 8, re)), [
|
|
316
|
+
[g, ["goods:goods_brand_info:update"]]
|
|
317
|
+
]),
|
|
318
|
+
_((i(), B("span", {
|
|
319
|
+
class: "el-button-color dropdown-left",
|
|
320
|
+
onClick: (w) => l(d).deleteRecord(e.data.row)
|
|
321
|
+
}, [
|
|
322
|
+
m(a(n.$t("common.delete")), 1)
|
|
323
|
+
], 8, se)), [
|
|
324
|
+
[g, ["goods:goods_brand_info:delete"]]
|
|
325
|
+
])
|
|
326
|
+
]),
|
|
327
|
+
_: 1
|
|
328
|
+
}, 8, ["list-loading", "data", "table-label"])
|
|
329
|
+
]),
|
|
330
|
+
_: 1
|
|
331
|
+
}),
|
|
332
|
+
p.value.visible ? (i(), f(le, {
|
|
333
|
+
key: 0,
|
|
334
|
+
modelValue: p.value.visible,
|
|
335
|
+
"onUpdate:modelValue": o[11] || (o[11] = (e) => p.value.visible = e),
|
|
336
|
+
title: p.value.title,
|
|
337
|
+
"entity-key": l(h),
|
|
338
|
+
onRefresh: q,
|
|
339
|
+
width: "900px"
|
|
340
|
+
}, null, 8, ["modelValue", "title", "entity-key"])) : $("", !0),
|
|
341
|
+
C.value ? (i(), f(Y, {
|
|
342
|
+
key: 1,
|
|
343
|
+
"upload-visible": C.value,
|
|
344
|
+
"template-title": n.$t("sysUser.templateDownload"),
|
|
345
|
+
onTemplateDown: o[12] || (o[12] = (e) => l(d).downloadTemplate(l(c)("goods.goodsBrandInfo.name"))),
|
|
346
|
+
onImportEvents: M,
|
|
347
|
+
onUploadClosed: x
|
|
348
|
+
}, null, 8, ["upload-visible", "template-title"])) : $("", !0)
|
|
349
|
+
]);
|
|
350
|
+
};
|
|
351
|
+
}
|
|
352
|
+
});
|
|
353
|
+
export {
|
|
354
|
+
ce as default
|
|
355
|
+
};
|
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
import { defineComponent as Z, ref as I, reactive as B, resolveComponent as r, resolveDirective as ee, openBlock as i, createElementBlock as $, createElementVNode as u, createVNode as d, withCtx as l, unref as a, createTextVNode as m, toDisplayString as s, withDirectives as _, createBlock as b, isRef as E, createCommentVNode as L } from "vue";
|
|
2
|
+
import { useTableHooks as oe } from "jmash-core";
|
|
3
|
+
import { useI18n as le } from "vue-i18n";
|
|
4
|
+
import { g as te, a as ae } from "./edit-B3Ripwo1.mjs";
|
|
5
|
+
const ne = { class: "app-container" }, se = { class: "search-container" }, de = ["onClick"], re = ["onClick"], fe = /* @__PURE__ */ Z({
|
|
6
|
+
__name: "index",
|
|
7
|
+
setup(ie) {
|
|
8
|
+
const { t: f } = le(), v = I({}), {
|
|
9
|
+
tableHooks: n,
|
|
10
|
+
multipleTableRef: N,
|
|
11
|
+
queryFormRef: S,
|
|
12
|
+
listLoading: T,
|
|
13
|
+
tableData: U,
|
|
14
|
+
total: k
|
|
15
|
+
} = oe(f, te, v);
|
|
16
|
+
let C = I([
|
|
17
|
+
{
|
|
18
|
+
label: "goodsLabelInfo.tenantId",
|
|
19
|
+
prop: "tenantId",
|
|
20
|
+
width: "150",
|
|
21
|
+
sortable: "custom",
|
|
22
|
+
isColumn: !0
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
label: "goodsLabelInfo.labelId",
|
|
26
|
+
prop: "labelId",
|
|
27
|
+
width: "150",
|
|
28
|
+
sortable: "custom",
|
|
29
|
+
isColumn: !0
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
label: "goodsLabelInfo.labelName",
|
|
33
|
+
prop: "labelName",
|
|
34
|
+
width: "150",
|
|
35
|
+
sortable: "custom",
|
|
36
|
+
isColumn: !0
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
label: "goodsLabelInfo.labelCode",
|
|
40
|
+
prop: "labelCode",
|
|
41
|
+
width: "150",
|
|
42
|
+
sortable: "custom",
|
|
43
|
+
isColumn: !0
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
label: "goodsLabelInfo.orderBy",
|
|
47
|
+
prop: "orderBy",
|
|
48
|
+
width: "150",
|
|
49
|
+
sortable: "custom",
|
|
50
|
+
isColumn: !0
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
label: "goodsLabelInfo.status",
|
|
54
|
+
prop: "status",
|
|
55
|
+
width: "150",
|
|
56
|
+
sortable: "custom",
|
|
57
|
+
isColumn: !0
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
label: "goodsLabelInfo.note",
|
|
61
|
+
prop: "note",
|
|
62
|
+
width: "150",
|
|
63
|
+
sortable: "custom",
|
|
64
|
+
isColumn: !0
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
label: "common.operate",
|
|
68
|
+
width: "200",
|
|
69
|
+
slotName: "operation",
|
|
70
|
+
columnType: "slot",
|
|
71
|
+
fixed: "right",
|
|
72
|
+
isColumn: !0
|
|
73
|
+
}
|
|
74
|
+
]);
|
|
75
|
+
const p = I({
|
|
76
|
+
title: f("common.edit"),
|
|
77
|
+
visible: !1
|
|
78
|
+
}), y = I(!1);
|
|
79
|
+
let h = B({});
|
|
80
|
+
function j() {
|
|
81
|
+
h = B({}), p.value.title = f("common.add"), p.value.visible = !0;
|
|
82
|
+
}
|
|
83
|
+
function D(t) {
|
|
84
|
+
h.labelId = t.labelId, p.value.title = f("common.edit"), p.value.visible = !0;
|
|
85
|
+
}
|
|
86
|
+
function P(t) {
|
|
87
|
+
n.selectionRows.value = t;
|
|
88
|
+
}
|
|
89
|
+
function z(t) {
|
|
90
|
+
n.handleSort(t.prop, t.order);
|
|
91
|
+
}
|
|
92
|
+
function q(t) {
|
|
93
|
+
t && n.getList();
|
|
94
|
+
}
|
|
95
|
+
function x() {
|
|
96
|
+
y.value = !1;
|
|
97
|
+
}
|
|
98
|
+
function M(t) {
|
|
99
|
+
t.updateMask = "", n.importExcel(t).then((o) => {
|
|
100
|
+
y.value = !1;
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
return n.getList(), (t, o) => {
|
|
104
|
+
const c = r("el-button"), A = r("el-form-item"), F = r("el-form"), V = r("el-col"), H = r("jmash-column-select"), Q = r("el-row"), K = r("Bottom"), R = r("el-icon"), O = r("Top"), G = r("el-switch"), J = r("jmash-table"), W = r("jmash-pagination"), X = r("el-card"), Y = r("jmash-import-upload"), g = ee("hasPerm");
|
|
105
|
+
return i(), $("div", ne, [
|
|
106
|
+
u("div", se, [
|
|
107
|
+
d(F, {
|
|
108
|
+
ref_key: "queryFormRef",
|
|
109
|
+
ref: S,
|
|
110
|
+
model: v.value,
|
|
111
|
+
inline: !0
|
|
112
|
+
}, {
|
|
113
|
+
default: l(() => [
|
|
114
|
+
d(A, { class: "search-btn" }, {
|
|
115
|
+
default: l(() => [
|
|
116
|
+
d(c, {
|
|
117
|
+
type: "primary",
|
|
118
|
+
onClick: o[0] || (o[0] = (e) => a(n).handleQuery())
|
|
119
|
+
}, {
|
|
120
|
+
default: l(() => [
|
|
121
|
+
m(s(t.$t("common.search")), 1)
|
|
122
|
+
]),
|
|
123
|
+
_: 1
|
|
124
|
+
}),
|
|
125
|
+
d(c, {
|
|
126
|
+
onClick: o[1] || (o[1] = (e) => a(n).resetQuery())
|
|
127
|
+
}, {
|
|
128
|
+
default: l(() => [
|
|
129
|
+
m(s(t.$t("common.reset")), 1)
|
|
130
|
+
]),
|
|
131
|
+
_: 1
|
|
132
|
+
})
|
|
133
|
+
]),
|
|
134
|
+
_: 1
|
|
135
|
+
})
|
|
136
|
+
]),
|
|
137
|
+
_: 1
|
|
138
|
+
}, 8, ["model"]),
|
|
139
|
+
o[13] || (o[13] = u("div", { class: "clear" }, null, -1))
|
|
140
|
+
]),
|
|
141
|
+
d(X, {
|
|
142
|
+
shadow: "never",
|
|
143
|
+
class: "table-container"
|
|
144
|
+
}, {
|
|
145
|
+
header: l(() => [
|
|
146
|
+
d(Q, null, {
|
|
147
|
+
default: l(() => [
|
|
148
|
+
d(V, { span: 17 }, {
|
|
149
|
+
default: l(() => [
|
|
150
|
+
_((i(), b(c, {
|
|
151
|
+
type: "primary",
|
|
152
|
+
onClick: j
|
|
153
|
+
}, {
|
|
154
|
+
default: l(() => [
|
|
155
|
+
m(s(t.$t("common.add")), 1)
|
|
156
|
+
]),
|
|
157
|
+
_: 1
|
|
158
|
+
})), [
|
|
159
|
+
[g, ["goods:goods_label_info:add"]]
|
|
160
|
+
]),
|
|
161
|
+
_((i(), b(c, {
|
|
162
|
+
type: "primary",
|
|
163
|
+
onClick: o[2] || (o[2] = (e) => a(n).deleteRecords())
|
|
164
|
+
}, {
|
|
165
|
+
default: l(() => [
|
|
166
|
+
m(s(t.$t("common.batchDelete")), 1)
|
|
167
|
+
]),
|
|
168
|
+
_: 1
|
|
169
|
+
})), [
|
|
170
|
+
[g, ["goods:goods_label_info:delete"]]
|
|
171
|
+
])
|
|
172
|
+
]),
|
|
173
|
+
_: 1
|
|
174
|
+
}),
|
|
175
|
+
d(V, {
|
|
176
|
+
span: 7,
|
|
177
|
+
class: "container-float"
|
|
178
|
+
}, {
|
|
179
|
+
default: l(() => [
|
|
180
|
+
_((i(), b(c, {
|
|
181
|
+
plain: "",
|
|
182
|
+
type: "primary",
|
|
183
|
+
onClick: o[3] || (o[3] = (e) => y.value = !0)
|
|
184
|
+
}, {
|
|
185
|
+
default: l(() => [
|
|
186
|
+
m(s(t.$t("common.import")), 1)
|
|
187
|
+
]),
|
|
188
|
+
_: 1
|
|
189
|
+
})), [
|
|
190
|
+
[g, ["goods:goods_label_info:import"]]
|
|
191
|
+
]),
|
|
192
|
+
_((i(), b(c, {
|
|
193
|
+
plain: "",
|
|
194
|
+
type: "primary",
|
|
195
|
+
onClick: o[4] || (o[4] = (e) => a(n).handleExport(a(f)("goods.goodsLabelInfo.name")))
|
|
196
|
+
}, {
|
|
197
|
+
default: l(() => [
|
|
198
|
+
m(s(t.$t("common.export")), 1)
|
|
199
|
+
]),
|
|
200
|
+
_: 1
|
|
201
|
+
})), [
|
|
202
|
+
[g, ["goods:goods_label_info:export"]]
|
|
203
|
+
]),
|
|
204
|
+
_((i(), b(c, {
|
|
205
|
+
plain: "",
|
|
206
|
+
type: "primary",
|
|
207
|
+
onClick: o[5] || (o[5] = (e) => a(n).handleExportPdf(a(f)("goods.goodsLabelInfo.name")))
|
|
208
|
+
}, {
|
|
209
|
+
default: l(() => [
|
|
210
|
+
m(s(t.$t("common.print")), 1)
|
|
211
|
+
]),
|
|
212
|
+
_: 1
|
|
213
|
+
})), [
|
|
214
|
+
[g, ["goods:goods_label_info:print"]]
|
|
215
|
+
]),
|
|
216
|
+
d(H, {
|
|
217
|
+
modelValue: a(C),
|
|
218
|
+
"onUpdate:modelValue": o[6] || (o[6] = (e) => E(C) ? C.value = e : C = e),
|
|
219
|
+
"label-name": "goods/goods-label-info"
|
|
220
|
+
}, null, 8, ["modelValue"])
|
|
221
|
+
]),
|
|
222
|
+
_: 1
|
|
223
|
+
})
|
|
224
|
+
]),
|
|
225
|
+
_: 1
|
|
226
|
+
})
|
|
227
|
+
]),
|
|
228
|
+
footer: l(() => [
|
|
229
|
+
a(k) > 0 ? (i(), b(W, {
|
|
230
|
+
key: 0,
|
|
231
|
+
total: a(k),
|
|
232
|
+
"onUpdate:total": o[7] || (o[7] = (e) => E(k) ? k.value = e : null),
|
|
233
|
+
"current-page": v.value.curPage,
|
|
234
|
+
"onUpdate:currentPage": o[8] || (o[8] = (e) => v.value.curPage = e),
|
|
235
|
+
"page-size": v.value.pageSize,
|
|
236
|
+
"onUpdate:pageSize": o[9] || (o[9] = (e) => v.value.pageSize = e),
|
|
237
|
+
onPagination: o[10] || (o[10] = (e) => a(n).getList())
|
|
238
|
+
}, null, 8, ["total", "current-page", "page-size"])) : L("", !0)
|
|
239
|
+
]),
|
|
240
|
+
default: l(() => [
|
|
241
|
+
d(J, {
|
|
242
|
+
ref_key: "multipleTableRef",
|
|
243
|
+
ref: N,
|
|
244
|
+
"row-key": "labelId",
|
|
245
|
+
"list-loading": a(T),
|
|
246
|
+
data: a(U),
|
|
247
|
+
"table-label": a(C),
|
|
248
|
+
onSelectionChange: P,
|
|
249
|
+
onSortChange: z
|
|
250
|
+
}, {
|
|
251
|
+
tenantId: l((e) => [
|
|
252
|
+
u("span", null, s(e.data.row.tenantId), 1)
|
|
253
|
+
]),
|
|
254
|
+
labelId: l((e) => [
|
|
255
|
+
u("span", null, s(e.data.row.labelId), 1)
|
|
256
|
+
]),
|
|
257
|
+
labelName: l((e) => [
|
|
258
|
+
u("span", null, s(e.data.row.labelName), 1)
|
|
259
|
+
]),
|
|
260
|
+
labelCode: l((e) => [
|
|
261
|
+
u("span", null, s(e.data.row.labelCode), 1)
|
|
262
|
+
]),
|
|
263
|
+
orderBy: l((e) => [
|
|
264
|
+
u("span", null, s(e.data.row.orderBy), 1)
|
|
265
|
+
]),
|
|
266
|
+
status: l((e) => [
|
|
267
|
+
u("span", null, s(e.data.row.status), 1)
|
|
268
|
+
]),
|
|
269
|
+
note: l((e) => [
|
|
270
|
+
u("span", null, s(e.data.row.note), 1)
|
|
271
|
+
]),
|
|
272
|
+
listOrder: l((e) => [
|
|
273
|
+
d(R, {
|
|
274
|
+
size: "16",
|
|
275
|
+
onClick: (w) => a(n).handleMove(e.data.row, !1)
|
|
276
|
+
}, {
|
|
277
|
+
default: l(() => [
|
|
278
|
+
d(K)
|
|
279
|
+
]),
|
|
280
|
+
_: 2
|
|
281
|
+
}, 1032, ["onClick"]),
|
|
282
|
+
d(R, {
|
|
283
|
+
size: "16",
|
|
284
|
+
onClick: (w) => a(n).handleMove(e.data.row, !0)
|
|
285
|
+
}, {
|
|
286
|
+
default: l(() => [
|
|
287
|
+
d(O)
|
|
288
|
+
]),
|
|
289
|
+
_: 2
|
|
290
|
+
}, 1032, ["onClick"])
|
|
291
|
+
]),
|
|
292
|
+
enable: l((e) => [
|
|
293
|
+
d(G, {
|
|
294
|
+
modelValue: e.data.row.enable,
|
|
295
|
+
"onUpdate:modelValue": (w) => e.data.row.enable = w,
|
|
296
|
+
onChange: (w) => a(n).enableRecord(e.data.row, e.data.row.enable)
|
|
297
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
298
|
+
]),
|
|
299
|
+
operation: l((e) => [
|
|
300
|
+
_((i(), $("span", {
|
|
301
|
+
class: "el-button-color",
|
|
302
|
+
onClick: (w) => D(e.data.row)
|
|
303
|
+
}, [
|
|
304
|
+
m(s(t.$t("common.edit")), 1)
|
|
305
|
+
], 8, de)), [
|
|
306
|
+
[g, ["goods:goods_label_info:update"]]
|
|
307
|
+
]),
|
|
308
|
+
_((i(), $("span", {
|
|
309
|
+
class: "el-button-color dropdown-left",
|
|
310
|
+
onClick: (w) => a(n).deleteRecord(e.data.row)
|
|
311
|
+
}, [
|
|
312
|
+
m(s(t.$t("common.delete")), 1)
|
|
313
|
+
], 8, re)), [
|
|
314
|
+
[g, ["goods:goods_label_info:delete"]]
|
|
315
|
+
])
|
|
316
|
+
]),
|
|
317
|
+
_: 1
|
|
318
|
+
}, 8, ["list-loading", "data", "table-label"])
|
|
319
|
+
]),
|
|
320
|
+
_: 1
|
|
321
|
+
}),
|
|
322
|
+
p.value.visible ? (i(), b(ae, {
|
|
323
|
+
key: 0,
|
|
324
|
+
modelValue: p.value.visible,
|
|
325
|
+
"onUpdate:modelValue": o[11] || (o[11] = (e) => p.value.visible = e),
|
|
326
|
+
title: p.value.title,
|
|
327
|
+
"entity-key": a(h),
|
|
328
|
+
onRefresh: q,
|
|
329
|
+
width: "900px"
|
|
330
|
+
}, null, 8, ["modelValue", "title", "entity-key"])) : L("", !0),
|
|
331
|
+
y.value ? (i(), b(Y, {
|
|
332
|
+
key: 1,
|
|
333
|
+
"upload-visible": y.value,
|
|
334
|
+
"template-title": t.$t("sysUser.templateDownload"),
|
|
335
|
+
onTemplateDown: o[12] || (o[12] = (e) => a(n).downloadTemplate(a(f)("goods.goodsLabelInfo.name"))),
|
|
336
|
+
onImportEvents: M,
|
|
337
|
+
onUploadClosed: x
|
|
338
|
+
}, null, 8, ["upload-visible", "template-title"])) : L("", !0)
|
|
339
|
+
]);
|
|
340
|
+
};
|
|
341
|
+
}
|
|
342
|
+
});
|
|
343
|
+
export {
|
|
344
|
+
fe as default
|
|
345
|
+
};
|