xyvcard-goods 0.0.28 → 0.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{edit-CquWa3hI.mjs → edit-BY1AVieE.mjs} +131 -128
- package/dist/{edit-CYekSxUa.mjs → edit-BYxk3lFr.mjs} +3 -3
- package/dist/{edit-C_XCVJwM.mjs → edit-CRc6GqY4.mjs} +8 -8
- package/dist/{edit-CuZnQH9w.mjs → edit-D9JqZTHN.mjs} +1 -1
- package/dist/{edit-D1FAN3TA.mjs → edit-ehVvbusK.mjs} +23 -30
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BSxqVyG4.mjs → edit.vue_vue_type_script_setup_true_lang-d769FSho.mjs} +3 -3
- package/dist/index-BLO5ssji.mjs +562 -0
- package/dist/{index-nCeCw43N.mjs → index-BaX061kc.mjs} +87 -92
- package/dist/index-CNVwLggO.mjs +644 -0
- package/dist/{index-wH3Sgvus.mjs → index-DloS7z9I.mjs} +1 -1
- package/dist/{index-B27GuULR.mjs → index-Dpms2ryP.mjs} +9 -9
- package/dist/{index-B3vvD7JH.mjs → index-DvCC73mO.mjs} +61 -63
- package/dist/{index-Dd1dJx7i.mjs → index-R43ND-Ey.mjs} +32 -37
- package/dist/{index-COXyxAor.mjs → index-Vu01FEMS.mjs} +53 -46
- package/dist/index.mjs +1 -1
- package/dist/{info-NBnTd9fK.mjs → info-CJxN7XOi.mjs} +2 -2
- package/dist/{info-0Pf9u0GJ.mjs → info-CzhzwS5C.mjs} +3 -3
- package/dist/{skuForm-BsvKk2kD.mjs → skuForm-K3S131WX.mjs} +86 -83
- package/dist/{skuForm-CU0a2ltJ.mjs → skuForm-X1aeeUCX.mjs} +2 -2
- package/dist/{skuTable-DgDGWX-n.mjs → skuTable-7VaeJKGp.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dts/api/goods-spu/types.d.ts +1 -0
- package/dts/api/index.d.ts +1 -0
- package/dts/constant.d.ts +10 -0
- package/package.json +4 -4
- package/dist/goodsList-DZlaY5k0.mjs +0 -4
- package/dist/goodsList-wpPEPZqs.mjs +0 -4
- package/dist/goodsList.vue_vue_type_script_setup_true_lang-BFXFifWr.mjs +0 -565
- package/dist/goodsList.vue_vue_type_script_setup_true_lang-iXycU5oS.mjs +0 -714
- package/dist/index-DFxg3rmo.mjs +0 -55
- package/dist/index-Dy5JznUz.mjs +0 -53
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as x, ref as
|
|
1
|
+
import { defineComponent as x, ref as $, reactive as S, onActivated as ee, resolveComponent as r, resolveDirective as oe, openBlock as d, createElementBlock as w, createElementVNode as U, createVNode as l, withCtx as t, withKeys as te, unref as n, createTextVNode as p, toDisplayString as c, withDirectives as k, createBlock as _, 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 { D as ne } from "./index-
|
|
5
|
-
import { g as re } from "./index-
|
|
6
|
-
import { _ as se } from "./edit.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
const ie = { class: "app-container" }, de = { class: "search-container" }, ue = ["onClick"],
|
|
4
|
+
import { D as ne } from "./index-Vu01FEMS.mjs";
|
|
5
|
+
import { g as re } from "./index-Dpms2ryP.mjs";
|
|
6
|
+
import { _ as se } from "./edit.vue_vue_type_script_setup_true_lang-d769FSho.mjs";
|
|
7
|
+
const ie = { class: "app-container" }, de = { class: "search-container" }, ue = { key: 1 }, me = ["onClick"], pe = ["onClick"], Ce = /* @__PURE__ */ x({
|
|
8
8
|
__name: "index",
|
|
9
|
-
setup(
|
|
10
|
-
const { t:
|
|
9
|
+
setup(ce) {
|
|
10
|
+
const { t: y } = le(), i = $({
|
|
11
11
|
curPage: 1,
|
|
12
12
|
pageSize: 10
|
|
13
13
|
}), {
|
|
@@ -16,19 +16,19 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
16
16
|
queryFormRef: P,
|
|
17
17
|
listLoading: B,
|
|
18
18
|
tableData: q,
|
|
19
|
-
total:
|
|
20
|
-
} = ae(
|
|
21
|
-
let g =
|
|
19
|
+
total: v
|
|
20
|
+
} = ae(y, re, i);
|
|
21
|
+
let g = $([
|
|
22
22
|
{
|
|
23
23
|
label: "goodsCategory.categoryName",
|
|
24
24
|
prop: "categoryName",
|
|
25
|
-
|
|
25
|
+
minWidth: "200",
|
|
26
26
|
isColumn: !0
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
label: "goodsCategory.categoryCode",
|
|
30
30
|
prop: "categoryCode",
|
|
31
|
-
|
|
31
|
+
minWidth: "200",
|
|
32
32
|
isColumn: !0
|
|
33
33
|
},
|
|
34
34
|
{
|
|
@@ -40,13 +40,7 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
40
40
|
isColumn: !0
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
|
-
label: "
|
|
44
|
-
prop: "description",
|
|
45
|
-
minWidth: "200",
|
|
46
|
-
isColumn: !0
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
label: "goodsCategory.status",
|
|
43
|
+
label: "goodsSpu.shelf",
|
|
50
44
|
prop: "status",
|
|
51
45
|
slotName: "status",
|
|
52
46
|
columnType: "slot",
|
|
@@ -69,16 +63,16 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
69
63
|
isColumn: !0
|
|
70
64
|
}
|
|
71
65
|
]);
|
|
72
|
-
const
|
|
73
|
-
title:
|
|
66
|
+
const u = $({
|
|
67
|
+
title: y("common.edit"),
|
|
74
68
|
visible: !1
|
|
75
69
|
});
|
|
76
70
|
let h = S({});
|
|
77
71
|
function L() {
|
|
78
|
-
h = S({}),
|
|
72
|
+
h = S({}), u.value.title = y("common.add"), u.value.visible = !0;
|
|
79
73
|
}
|
|
80
74
|
function A(a) {
|
|
81
|
-
h = { ...a },
|
|
75
|
+
h = { ...a }, u.value.title = y("common.edit"), u.value.visible = !0;
|
|
82
76
|
}
|
|
83
77
|
function E(a) {
|
|
84
78
|
s.selectionRows.value = a;
|
|
@@ -92,26 +86,26 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
92
86
|
return ee(() => {
|
|
93
87
|
s.getList();
|
|
94
88
|
}), (a, o) => {
|
|
95
|
-
const F = r("el-input"),
|
|
96
|
-
return
|
|
89
|
+
const F = r("el-input"), V = r("el-form-item"), f = r("el-col"), H = r("jmash-select"), b = r("el-button"), N = r("el-row"), I = r("el-form"), M = r("jmash-column-select"), O = r("el-image"), W = r("el-switch"), G = r("Bottom"), R = r("el-icon"), J = r("Top"), X = r("jmash-table"), Y = r("jmash-pagination"), Z = r("el-card"), C = oe("hasPerm");
|
|
90
|
+
return d(), w("div", ie, [
|
|
97
91
|
U("div", de, [
|
|
98
|
-
|
|
92
|
+
l(I, {
|
|
99
93
|
ref_key: "queryFormRef",
|
|
100
94
|
ref: P,
|
|
101
95
|
model: i.value,
|
|
102
96
|
inline: !0
|
|
103
97
|
}, {
|
|
104
|
-
default:
|
|
105
|
-
|
|
106
|
-
default:
|
|
107
|
-
|
|
108
|
-
default:
|
|
109
|
-
|
|
98
|
+
default: t(() => [
|
|
99
|
+
l(N, null, {
|
|
100
|
+
default: t(() => [
|
|
101
|
+
l(f, { span: 6 }, {
|
|
102
|
+
default: t(() => [
|
|
103
|
+
l(V, {
|
|
110
104
|
label: a.$t("goodsCategory.categoryName"),
|
|
111
105
|
prop: "likeCategoryName"
|
|
112
106
|
}, {
|
|
113
|
-
default:
|
|
114
|
-
|
|
107
|
+
default: t(() => [
|
|
108
|
+
l(F, {
|
|
115
109
|
modelValue: i.value.likeCategoryName,
|
|
116
110
|
"onUpdate:modelValue": o[0] || (o[0] = (e) => i.value.likeCategoryName = e),
|
|
117
111
|
placeholder: a.$t("goodsCategory.categoryNameRequired"),
|
|
@@ -125,14 +119,14 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
125
119
|
]),
|
|
126
120
|
_: 1
|
|
127
121
|
}),
|
|
128
|
-
|
|
129
|
-
default:
|
|
130
|
-
|
|
122
|
+
l(f, { span: 6 }, {
|
|
123
|
+
default: t(() => [
|
|
124
|
+
l(V, {
|
|
131
125
|
label: a.$t("goodsCategory.status"),
|
|
132
126
|
prop: "status"
|
|
133
127
|
}, {
|
|
134
|
-
default:
|
|
135
|
-
|
|
128
|
+
default: t(() => [
|
|
129
|
+
l(H, {
|
|
136
130
|
modelValue: i.value.status,
|
|
137
131
|
"onUpdate:modelValue": o[2] || (o[2] = (e) => i.value.status = e),
|
|
138
132
|
placeholder: a.$t("goodsCategory.statusRequired"),
|
|
@@ -145,23 +139,23 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
145
139
|
]),
|
|
146
140
|
_: 1
|
|
147
141
|
}),
|
|
148
|
-
|
|
149
|
-
default:
|
|
150
|
-
|
|
151
|
-
default:
|
|
152
|
-
|
|
142
|
+
l(f, { span: 12 }, {
|
|
143
|
+
default: t(() => [
|
|
144
|
+
l(V, { class: "search-btn" }, {
|
|
145
|
+
default: t(() => [
|
|
146
|
+
l(b, {
|
|
153
147
|
type: "primary",
|
|
154
148
|
onClick: o[3] || (o[3] = (e) => n(s).handleQuery())
|
|
155
149
|
}, {
|
|
156
|
-
default:
|
|
150
|
+
default: t(() => [
|
|
157
151
|
p(c(a.$t("common.search")), 1)
|
|
158
152
|
]),
|
|
159
153
|
_: 1
|
|
160
154
|
}),
|
|
161
|
-
|
|
155
|
+
l(b, {
|
|
162
156
|
onClick: o[4] || (o[4] = (e) => n(s).resetQuery())
|
|
163
157
|
}, {
|
|
164
|
-
default:
|
|
158
|
+
default: t(() => [
|
|
165
159
|
p(c(a.$t("common.reset")), 1)
|
|
166
160
|
]),
|
|
167
161
|
_: 1
|
|
@@ -180,46 +174,46 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
180
174
|
}, 8, ["model"]),
|
|
181
175
|
o[12] || (o[12] = U("div", { class: "clear" }, null, -1))
|
|
182
176
|
]),
|
|
183
|
-
|
|
177
|
+
l(Z, {
|
|
184
178
|
shadow: "never",
|
|
185
179
|
class: "table-container"
|
|
186
180
|
}, {
|
|
187
|
-
header:
|
|
188
|
-
|
|
189
|
-
default:
|
|
190
|
-
|
|
191
|
-
default:
|
|
192
|
-
|
|
181
|
+
header: t(() => [
|
|
182
|
+
l(N, null, {
|
|
183
|
+
default: t(() => [
|
|
184
|
+
l(f, { span: 17 }, {
|
|
185
|
+
default: t(() => [
|
|
186
|
+
k((d(), _(b, {
|
|
193
187
|
type: "primary",
|
|
194
188
|
onClick: L
|
|
195
189
|
}, {
|
|
196
|
-
default:
|
|
190
|
+
default: t(() => [
|
|
197
191
|
p(c(a.$t("common.add")), 1)
|
|
198
192
|
]),
|
|
199
193
|
_: 1
|
|
200
194
|
})), [
|
|
201
|
-
[
|
|
195
|
+
[C, ["goods:goods_category:add"]]
|
|
202
196
|
]),
|
|
203
|
-
|
|
197
|
+
k((d(), _(b, {
|
|
204
198
|
type: "primary",
|
|
205
199
|
onClick: o[5] || (o[5] = (e) => n(s).deleteRecords())
|
|
206
200
|
}, {
|
|
207
|
-
default:
|
|
201
|
+
default: t(() => [
|
|
208
202
|
p(c(a.$t("common.batchDelete")), 1)
|
|
209
203
|
]),
|
|
210
204
|
_: 1
|
|
211
205
|
})), [
|
|
212
|
-
[
|
|
206
|
+
[C, ["goods:goods_category:delete"]]
|
|
213
207
|
])
|
|
214
208
|
]),
|
|
215
209
|
_: 1
|
|
216
210
|
}),
|
|
217
|
-
|
|
211
|
+
l(f, {
|
|
218
212
|
span: 7,
|
|
219
213
|
class: "container-float"
|
|
220
214
|
}, {
|
|
221
|
-
default:
|
|
222
|
-
|
|
215
|
+
default: t(() => [
|
|
216
|
+
l(M, {
|
|
223
217
|
modelValue: n(g),
|
|
224
218
|
"onUpdate:modelValue": o[6] || (o[6] = (e) => T(g) ? g.value = e : g = e),
|
|
225
219
|
"label-name": "goods/goods-spu"
|
|
@@ -231,11 +225,11 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
231
225
|
_: 1
|
|
232
226
|
})
|
|
233
227
|
]),
|
|
234
|
-
footer:
|
|
235
|
-
n(
|
|
228
|
+
footer: t(() => [
|
|
229
|
+
n(v) > 0 ? (d(), _(Y, {
|
|
236
230
|
key: 0,
|
|
237
|
-
total: n(
|
|
238
|
-
"onUpdate:total": o[7] || (o[7] = (e) => T(
|
|
231
|
+
total: n(v),
|
|
232
|
+
"onUpdate:total": o[7] || (o[7] = (e) => T(v) ? v.value = e : null),
|
|
239
233
|
"current-page": i.value.curPage,
|
|
240
234
|
"onUpdate:currentPage": o[8] || (o[8] = (e) => i.value.curPage = e),
|
|
241
235
|
"page-size": i.value.pageSize,
|
|
@@ -243,8 +237,8 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
243
237
|
onPagination: o[10] || (o[10] = (e) => n(s).getList())
|
|
244
238
|
}, null, 8, ["total", "current-page", "page-size"])) : D("", !0)
|
|
245
239
|
]),
|
|
246
|
-
default:
|
|
247
|
-
|
|
240
|
+
default: t(() => [
|
|
241
|
+
l(X, {
|
|
248
242
|
ref_key: "multipleTableRef",
|
|
249
243
|
ref: z,
|
|
250
244
|
"row-key": "categoryId",
|
|
@@ -254,60 +248,61 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
254
248
|
onSelectionChange: E,
|
|
255
249
|
onSortChange: K
|
|
256
250
|
}, {
|
|
257
|
-
picUrl:
|
|
258
|
-
|
|
251
|
+
picUrl: t((e) => [
|
|
252
|
+
e.data.row.picUrl ? (d(), _(O, {
|
|
253
|
+
key: 0,
|
|
259
254
|
src: n(j).imageUrl(e.data.row.picUrl, 0, 0),
|
|
260
255
|
"preview-src-list": [n(j).imageUrl(e.data.row.picUrl)],
|
|
261
256
|
"preview-teleported": "",
|
|
262
257
|
"hide-on-click-modal": "",
|
|
263
258
|
fit: "contain"
|
|
264
|
-
}, null, 8, ["src", "preview-src-list"])
|
|
259
|
+
}, null, 8, ["src", "preview-src-list"])) : (d(), w("span", ue, "-"))
|
|
265
260
|
]),
|
|
266
|
-
status:
|
|
261
|
+
status: t((e) => [
|
|
267
262
|
U("span", null, [
|
|
268
|
-
|
|
263
|
+
l(W, {
|
|
269
264
|
modelValue: e.data.row.status,
|
|
270
265
|
"onUpdate:modelValue": (m) => e.data.row.status = m,
|
|
271
266
|
onChange: (m) => n(s).enableRecord(e.data.row, e.data.row.status)
|
|
272
267
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
273
268
|
])
|
|
274
269
|
]),
|
|
275
|
-
listOrder:
|
|
276
|
-
|
|
270
|
+
listOrder: t((e) => [
|
|
271
|
+
l(R, {
|
|
277
272
|
size: "16",
|
|
278
273
|
onClick: (m) => n(s).handleMove(e.data.row, !1)
|
|
279
274
|
}, {
|
|
280
|
-
default:
|
|
281
|
-
|
|
275
|
+
default: t(() => [
|
|
276
|
+
l(G)
|
|
282
277
|
]),
|
|
283
278
|
_: 2
|
|
284
279
|
}, 1032, ["onClick"]),
|
|
285
|
-
|
|
280
|
+
l(R, {
|
|
286
281
|
size: "16",
|
|
287
282
|
onClick: (m) => n(s).handleMove(e.data.row, !0)
|
|
288
283
|
}, {
|
|
289
|
-
default:
|
|
290
|
-
|
|
284
|
+
default: t(() => [
|
|
285
|
+
l(J)
|
|
291
286
|
]),
|
|
292
287
|
_: 2
|
|
293
288
|
}, 1032, ["onClick"])
|
|
294
289
|
]),
|
|
295
|
-
operation:
|
|
296
|
-
|
|
290
|
+
operation: t((e) => [
|
|
291
|
+
k((d(), w("span", {
|
|
297
292
|
class: "el-button-color",
|
|
298
293
|
onClick: (m) => A(e.data.row)
|
|
299
294
|
}, [
|
|
300
295
|
p(c(a.$t("common.edit")), 1)
|
|
301
|
-
], 8,
|
|
302
|
-
[
|
|
296
|
+
], 8, me)), [
|
|
297
|
+
[C, ["goods:goods_category:update"]]
|
|
303
298
|
]),
|
|
304
|
-
|
|
299
|
+
k((d(), w("span", {
|
|
305
300
|
class: "el-button-color dropdown-left",
|
|
306
301
|
onClick: (m) => n(s).deleteRecord(e.data.row)
|
|
307
302
|
}, [
|
|
308
303
|
p(c(a.$t("common.delete")), 1)
|
|
309
|
-
], 8,
|
|
310
|
-
[
|
|
304
|
+
], 8, pe)), [
|
|
305
|
+
[C, ["goods:goods_category:delete"]]
|
|
311
306
|
])
|
|
312
307
|
]),
|
|
313
308
|
_: 1
|
|
@@ -315,11 +310,11 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
315
310
|
]),
|
|
316
311
|
_: 1
|
|
317
312
|
}),
|
|
318
|
-
|
|
313
|
+
u.value.visible ? (d(), _(se, {
|
|
319
314
|
key: 0,
|
|
320
|
-
modelValue:
|
|
321
|
-
"onUpdate:modelValue": o[11] || (o[11] = (e) =>
|
|
322
|
-
title:
|
|
315
|
+
modelValue: u.value.visible,
|
|
316
|
+
"onUpdate:modelValue": o[11] || (o[11] = (e) => u.value.visible = e),
|
|
317
|
+
title: u.value.title,
|
|
323
318
|
"entity-key": n(h),
|
|
324
319
|
onRefresh: Q,
|
|
325
320
|
width: "600px"
|
|
@@ -329,5 +324,5 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
329
324
|
}
|
|
330
325
|
});
|
|
331
326
|
export {
|
|
332
|
-
|
|
327
|
+
Ce as default
|
|
333
328
|
};
|