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