xyvcard-goods 0.0.13 → 0.0.15
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-h0S6bHag.mjs → edit-BlnYCDI4.mjs} +34 -32
- package/dist/edit-BsaWxeqY.mjs +4 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-DRAXgRwD.mjs +236 -0
- package/dist/{goodsList-BtEY_SNz.mjs → goodsList-Dvsh76f7.mjs} +1 -1
- package/dist/{goodsList.vue_vue_type_script_setup_true_lang-BGajxpZV.mjs → goodsList.vue_vue_type_script_setup_true_lang-CWJQd86q.mjs} +98 -96
- package/dist/{index-BQz1LNIa.mjs → index-BF7PDcd4.mjs} +13 -13
- package/dist/index-DZJVaUh3.mjs +248 -0
- package/dist/index-Dp9QMOea.mjs +333 -0
- package/dist/index.mjs +2 -2
- package/dist/{info-lDMLR1ZW.mjs → info-wrevnU3P.mjs} +19 -18
- package/dist/{skuForm-ChaaXJgn.mjs → skuForm-B7yYjwdJ.mjs} +23 -21
- package/dist/{skuTable-BBiyXctZ.mjs → skuTable-YDBH_oRN.mjs} +18 -17
- package/dist/style.css +1 -1
- package/dts/api/dict.d.ts +2 -2
- package/dts/api/goods-category/index.d.ts +23 -0
- package/dts/api/goods-category/types.d.ts +68 -0
- package/dts/api/index.d.ts +3 -2
- package/dts/constant.d.ts +10 -0
- package/dts/views/goods/goods-category/edit.vue.d.ts +22 -0
- package/package.json +12 -12
- package/dist/index-CKeHa-Cx.mjs +0 -139
- package/dts/components/EnumRadio/index.vue.d.ts +0 -18
- package/dts/components/GoodsUpload/ImageUpload.vue.d.ts +0 -40
- package/dts/components/GoodsUpload/MultiUpload.vue.d.ts +0 -24
- package/dts/components/GoodsUpload/index.vue.d.ts +0 -18
- package/dts/views/goods/goods-spu/auditIndex.vue.d.ts +0 -2
- package/dts/views/goods/goods-spu/saleIndex.vue.d.ts +0 -2
- package/dts/views/goods/goods-spu/shelfIndex.vue.d.ts +0 -2
- /package/dts/views/goods/{goods-spu/approveFailIndex.vue.d.ts → goods-category/index.vue.d.ts} +0 -0
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
var S = Object.defineProperty;
|
|
2
|
+
var E = (r, e, t) => e in r ? S(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
|
+
var s = (r, e, t) => E(r, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { useUserStore as i, clearEmpty as n, request as c, BizDict as p, BizLayDict as v, EnumDict as g } from "jmash-core";
|
|
5
|
+
import { EntryDict as m } from "jmash-dict";
|
|
6
|
+
import { ref as h, reactive as P } from "vue";
|
|
7
|
+
import { specValueApi as y, infoApi as L, specInfoApi as A } from "xyvcard-shop";
|
|
8
|
+
class a {
|
|
9
|
+
}
|
|
10
|
+
// 模块
|
|
11
|
+
s(a, "MODULE_GOODS", "goods"), // 商品规格类型
|
|
12
|
+
s(a, "SPEC_TYPE", {
|
|
13
|
+
UNIFIED_SPEC: "UNIFIED_SPEC",
|
|
14
|
+
//统一规格
|
|
15
|
+
MULTI_SPEC: "MULTI_SPEC"
|
|
16
|
+
//多规格
|
|
17
|
+
}), // 启用禁用
|
|
18
|
+
s(a, "SHELF_VALUES", h([
|
|
19
|
+
{ key: !0, value: "上架" },
|
|
20
|
+
{ key: !1, value: "下架" }
|
|
21
|
+
])), // 运费类型
|
|
22
|
+
s(a, "ENUM_FREIGHT_TYPE", "xyvcard.goods.protobuf.FreightType"), // 保障服务
|
|
23
|
+
s(a, "DICT_GOODS_ENSURE", "goods_ensure"), // 规格类型
|
|
24
|
+
s(a, "ENUM_SPEC_TYPE", "xyvcard.goods.protobuf.SpecType"), // 商品查询枚举
|
|
25
|
+
s(a, "ENUM_GOODS_SPU_List_SORT", "xyvcard.goods.protobuf.GoodsSpuListSort"), // 审核状态
|
|
26
|
+
s(a, "ENUM_APPROVAL_STATUS", "xyvcard.goods.protobuf.ApprovalStatus"), // 审核状态常量
|
|
27
|
+
s(a, "APPROVAL_NOT_PASS", "APPROVAL_NOT_PASS"), s(a, "APPROVAL_PASS", "APPROVAL_PASS"), s(a, "APPROVALING", "APPROVALING"), // 启用禁用
|
|
28
|
+
s(a, "ENABLE_VALUES", h([
|
|
29
|
+
{ key: "true", value: "启用" },
|
|
30
|
+
{ key: "false", value: "禁用" }
|
|
31
|
+
]));
|
|
32
|
+
class O {
|
|
33
|
+
getKey(e) {
|
|
34
|
+
return {
|
|
35
|
+
categoryId: e.categoryId
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
// 查询翻页信息商城商品分类
|
|
39
|
+
findPage(e) {
|
|
40
|
+
const t = i().user.tenant;
|
|
41
|
+
return e && (e.hasStatus = e.status != null), n(e), c({
|
|
42
|
+
url: "/v1/goods/goods_category/list/" + t,
|
|
43
|
+
method: "get",
|
|
44
|
+
params: e
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
// 查询列表信息商城商品分类
|
|
48
|
+
findList(e) {
|
|
49
|
+
const t = i().user.tenant;
|
|
50
|
+
return n(e), c({
|
|
51
|
+
url: "/v1/goods/goods_category/list/" + t,
|
|
52
|
+
method: "get",
|
|
53
|
+
params: e
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
// 查询商城商品分类
|
|
57
|
+
findById(e) {
|
|
58
|
+
const t = i().user.tenant;
|
|
59
|
+
return n(e), c({
|
|
60
|
+
url: "/v1/goods/goods_category/id/" + t + "/" + e.categoryId,
|
|
61
|
+
method: "get"
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
// 创建实体商城商品分类
|
|
65
|
+
create(e) {
|
|
66
|
+
return e.tenant = i().user.tenant, n(e), c({
|
|
67
|
+
url: "/v1/goods/goods_category",
|
|
68
|
+
method: "post",
|
|
69
|
+
data: e
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
// 修改实体商城商品分类
|
|
73
|
+
update(e) {
|
|
74
|
+
return e.tenant = i().user.tenant, n(e), c({
|
|
75
|
+
url: "/v1/goods/goods_category",
|
|
76
|
+
method: "patch",
|
|
77
|
+
data: e
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
// 上移下移
|
|
81
|
+
move(e, t) {
|
|
82
|
+
const o = { ...e };
|
|
83
|
+
return o.tenant = i().user.tenant, o.up = t, n(o), c({
|
|
84
|
+
url: "/v1/goods/goods_category/move",
|
|
85
|
+
method: "put",
|
|
86
|
+
data: o
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
// 启用/禁用
|
|
90
|
+
enable(e, t) {
|
|
91
|
+
const o = { ...e };
|
|
92
|
+
return o.tenant = i().user.tenant, o.enable = t, n(o), c({
|
|
93
|
+
url: "/v1/goods/goods_category/enable",
|
|
94
|
+
method: "put",
|
|
95
|
+
data: o
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
// 删除商城商品分类
|
|
99
|
+
delete(e) {
|
|
100
|
+
return e.tenant = i().user.tenant, n(e), c({
|
|
101
|
+
url: "/v1/goods/goods_category/id",
|
|
102
|
+
method: "delete",
|
|
103
|
+
params: e
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
// 批量删除商城商品分类
|
|
107
|
+
batchDelete(e) {
|
|
108
|
+
const t = e.map((l) => l.categoryId), o = {
|
|
109
|
+
tenant: i().user.tenant,
|
|
110
|
+
categoryId: t
|
|
111
|
+
};
|
|
112
|
+
return n(o), c({
|
|
113
|
+
url: "/v1/goods/goods_category/batch",
|
|
114
|
+
method: "put",
|
|
115
|
+
data: o
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* 查询商品树列表的API接口
|
|
120
|
+
*
|
|
121
|
+
* @param query 可选的查询参数,符合GoodsCategoryReq接口的实例
|
|
122
|
+
* @returns 返回一个AxiosPromise,包含GoodsCategoryTree类型的响应数据
|
|
123
|
+
*/
|
|
124
|
+
findTreeListApi(e) {
|
|
125
|
+
const t = i().user.tenant;
|
|
126
|
+
return n(e), c({
|
|
127
|
+
url: "/v1/goods/goods_category/treelist/" + t,
|
|
128
|
+
method: "get",
|
|
129
|
+
params: e
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
const f = new O();
|
|
134
|
+
class _ {
|
|
135
|
+
constructor(e, t) {
|
|
136
|
+
s(this, "values", P([]));
|
|
137
|
+
// 查询条件
|
|
138
|
+
s(this, "query");
|
|
139
|
+
this.values.length = 0, this.values.push(...e.value), this.query = t;
|
|
140
|
+
}
|
|
141
|
+
// 根据给定键获取业务数据项的值的方法
|
|
142
|
+
getValue(e) {
|
|
143
|
+
for (const t of this.values)
|
|
144
|
+
if (t.key == e)
|
|
145
|
+
return t.value;
|
|
146
|
+
return "";
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
class U extends p {
|
|
150
|
+
// 实现 useValues 方法
|
|
151
|
+
useValues() {
|
|
152
|
+
return new Promise((e, t) => {
|
|
153
|
+
L.findList(this.query).then(({ data: o }) => {
|
|
154
|
+
const l = o.results;
|
|
155
|
+
this.values.length = 0, this.values.push(
|
|
156
|
+
...l.map(
|
|
157
|
+
(d) => ({
|
|
158
|
+
key: d.shopId,
|
|
159
|
+
value: d.shopName
|
|
160
|
+
})
|
|
161
|
+
)
|
|
162
|
+
), e(this.values);
|
|
163
|
+
}).catch(t);
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
class I extends v {
|
|
168
|
+
// 实现 useValues 方法
|
|
169
|
+
useValues(e) {
|
|
170
|
+
return new Promise((t, o) => {
|
|
171
|
+
f.findTreeListApi({ excludeId: e }).then(({ data: l }) => {
|
|
172
|
+
this.values.length = 0, this.values.push(...l.results), t(this.values);
|
|
173
|
+
}).catch(o);
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
class D extends p {
|
|
178
|
+
// 实现 useValues 方法
|
|
179
|
+
useValues() {
|
|
180
|
+
return new Promise((e, t) => {
|
|
181
|
+
A.findList(this.query).then(({ data: o }) => {
|
|
182
|
+
const l = o.results;
|
|
183
|
+
this.values.length = 0, this.values.push(
|
|
184
|
+
...l.map(
|
|
185
|
+
(d) => ({
|
|
186
|
+
key: d.specId,
|
|
187
|
+
value: d.specName,
|
|
188
|
+
disabled: d.disabled
|
|
189
|
+
})
|
|
190
|
+
)
|
|
191
|
+
), e(this.values);
|
|
192
|
+
}).catch(t);
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
class T extends p {
|
|
197
|
+
// 实现 useValues 方法
|
|
198
|
+
useValues() {
|
|
199
|
+
return new Promise((e, t) => {
|
|
200
|
+
y.findList(this.query).then(({ data: o }) => {
|
|
201
|
+
const l = o.results;
|
|
202
|
+
this.values.length = 0, this.values.push(
|
|
203
|
+
...l.map(
|
|
204
|
+
(d) => ({
|
|
205
|
+
key: d.specValueId,
|
|
206
|
+
value: d.valueName
|
|
207
|
+
})
|
|
208
|
+
)
|
|
209
|
+
), e(this.values);
|
|
210
|
+
}).catch(t);
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
class u {
|
|
215
|
+
}
|
|
216
|
+
// 店铺列表
|
|
217
|
+
s(u, "shopInfoBizDict", new U({})), // 商品分类
|
|
218
|
+
// static readonly goodsCategoryDict = new GoodsCategoryBizLayDict({});
|
|
219
|
+
// 规格列表
|
|
220
|
+
s(u, "specInfoDict", new D({})), // 规格值
|
|
221
|
+
s(u, "specValueDict", new T({})), // 上架下架
|
|
222
|
+
s(u, "shelfDict", new _(a.SHELF_VALUES, {})), // 运费类型
|
|
223
|
+
s(u, "freightTypeEnum", new g(
|
|
224
|
+
a.MODULE_GOODS,
|
|
225
|
+
a.ENUM_FREIGHT_TYPE
|
|
226
|
+
)), // 保障服务
|
|
227
|
+
s(u, "goodsEnsureDict", new m(a.DICT_GOODS_ENSURE)), // 规格类型
|
|
228
|
+
s(u, "specTypeEnum", new g(
|
|
229
|
+
a.MODULE_GOODS,
|
|
230
|
+
a.ENUM_SPEC_TYPE
|
|
231
|
+
)), // 商品查询枚举
|
|
232
|
+
s(u, "goodsSpuListSortEnum", new g(
|
|
233
|
+
a.MODULE_GOODS,
|
|
234
|
+
a.ENUM_GOODS_SPU_List_SORT
|
|
235
|
+
)), // 审核状态
|
|
236
|
+
s(u, "approvalStatusEnum", new g(
|
|
237
|
+
a.MODULE_GOODS,
|
|
238
|
+
a.ENUM_APPROVAL_STATUS
|
|
239
|
+
)), // 启用禁用
|
|
240
|
+
s(u, "enableDict", new _(a.ENABLE_VALUES, {})), // 商品分类
|
|
241
|
+
s(u, "goodsCategoryListBizLayDict", new I({}));
|
|
242
|
+
export {
|
|
243
|
+
a as C,
|
|
244
|
+
u as D,
|
|
245
|
+
T as S,
|
|
246
|
+
D as a,
|
|
247
|
+
f as g
|
|
248
|
+
};
|
|
@@ -0,0 +1,333 @@
|
|
|
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
|
+
import { useI18n as le } from "vue-i18n";
|
|
3
|
+
import { useTableHooks as ae, fileApi as j } from "jmash-core";
|
|
4
|
+
import { g as ne, D as re } from "./index-DZJVaUh3.mjs";
|
|
5
|
+
import { _ as se } from "./edit.vue_vue_type_script_setup_true_lang-DRAXgRwD.mjs";
|
|
6
|
+
const ie = { class: "app-container" }, de = { class: "search-container" }, ue = ["onClick"], me = ["onClick"], ve = /* @__PURE__ */ x({
|
|
7
|
+
__name: "index",
|
|
8
|
+
setup(pe) {
|
|
9
|
+
const { t: _ } = le(), i = V({
|
|
10
|
+
curPage: 1,
|
|
11
|
+
pageSize: 10
|
|
12
|
+
}), {
|
|
13
|
+
tableHooks: s,
|
|
14
|
+
multipleTableRef: z,
|
|
15
|
+
queryFormRef: P,
|
|
16
|
+
listLoading: B,
|
|
17
|
+
tableData: q,
|
|
18
|
+
total: y
|
|
19
|
+
} = ae(_, ne, i);
|
|
20
|
+
let g = V([
|
|
21
|
+
{
|
|
22
|
+
label: "goodsCategory.categoryName",
|
|
23
|
+
prop: "categoryName",
|
|
24
|
+
width: "200",
|
|
25
|
+
isColumn: !0
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
label: "goodsCategory.categoryCode",
|
|
29
|
+
prop: "categoryCode",
|
|
30
|
+
width: "200",
|
|
31
|
+
isColumn: !0
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
label: "goodsCategory.picUrl",
|
|
35
|
+
prop: "picUrl",
|
|
36
|
+
width: "90",
|
|
37
|
+
slotName: "picUrl",
|
|
38
|
+
columnType: "slot",
|
|
39
|
+
isColumn: !0
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
label: "goodsCategory.description",
|
|
43
|
+
prop: "description",
|
|
44
|
+
minWidth: "200",
|
|
45
|
+
isColumn: !0
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
label: "goodsCategory.status",
|
|
49
|
+
prop: "status",
|
|
50
|
+
slotName: "status",
|
|
51
|
+
columnType: "slot",
|
|
52
|
+
width: "90",
|
|
53
|
+
isColumn: !0
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
label: "goodsCategory.orderBy",
|
|
57
|
+
width: "60",
|
|
58
|
+
columnType: "slot",
|
|
59
|
+
slotName: "listOrder",
|
|
60
|
+
isColumn: !0
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
label: "common.operate",
|
|
64
|
+
width: "100",
|
|
65
|
+
slotName: "operation",
|
|
66
|
+
columnType: "slot",
|
|
67
|
+
fixed: "right",
|
|
68
|
+
isColumn: !0
|
|
69
|
+
}
|
|
70
|
+
]);
|
|
71
|
+
const d = V({
|
|
72
|
+
title: _("common.edit"),
|
|
73
|
+
visible: !1
|
|
74
|
+
});
|
|
75
|
+
let h = S({});
|
|
76
|
+
function L() {
|
|
77
|
+
h = S({}), d.value.title = _("common.add"), d.value.visible = !0;
|
|
78
|
+
}
|
|
79
|
+
function A(a) {
|
|
80
|
+
h = { ...a }, d.value.title = _("common.edit"), d.value.visible = !0;
|
|
81
|
+
}
|
|
82
|
+
function E(a) {
|
|
83
|
+
s.selectionRows.value = a;
|
|
84
|
+
}
|
|
85
|
+
function K(a) {
|
|
86
|
+
s.handleSort(a.prop, a.order);
|
|
87
|
+
}
|
|
88
|
+
function Q(a) {
|
|
89
|
+
a && s.getList();
|
|
90
|
+
}
|
|
91
|
+
return ee(() => {
|
|
92
|
+
s.getList();
|
|
93
|
+
}), (a, o) => {
|
|
94
|
+
const F = r("el-input"), k = r("el-form-item"), f = r("el-col"), H = r("jmash-select"), v = 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"), b = oe("hasPerm");
|
|
95
|
+
return u(), $("div", ie, [
|
|
96
|
+
U("div", de, [
|
|
97
|
+
t(I, {
|
|
98
|
+
ref_key: "queryFormRef",
|
|
99
|
+
ref: P,
|
|
100
|
+
model: i.value,
|
|
101
|
+
inline: !0
|
|
102
|
+
}, {
|
|
103
|
+
default: l(() => [
|
|
104
|
+
t(N, null, {
|
|
105
|
+
default: l(() => [
|
|
106
|
+
t(f, { span: 6 }, {
|
|
107
|
+
default: l(() => [
|
|
108
|
+
t(k, {
|
|
109
|
+
label: a.$t("goodsCategory.categoryName"),
|
|
110
|
+
prop: "likeCategoryName"
|
|
111
|
+
}, {
|
|
112
|
+
default: l(() => [
|
|
113
|
+
t(F, {
|
|
114
|
+
modelValue: i.value.likeCategoryName,
|
|
115
|
+
"onUpdate:modelValue": o[0] || (o[0] = (e) => i.value.likeCategoryName = e),
|
|
116
|
+
placeholder: a.$t("goodsCategory.categoryNameRequired"),
|
|
117
|
+
onKeyup: o[1] || (o[1] = te((e) => n(s).handleQuery(), ["enter"])),
|
|
118
|
+
class: "!w-[203px]",
|
|
119
|
+
clearable: ""
|
|
120
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
121
|
+
]),
|
|
122
|
+
_: 1
|
|
123
|
+
}, 8, ["label"])
|
|
124
|
+
]),
|
|
125
|
+
_: 1
|
|
126
|
+
}),
|
|
127
|
+
t(f, { span: 6 }, {
|
|
128
|
+
default: l(() => [
|
|
129
|
+
t(k, {
|
|
130
|
+
label: a.$t("goodsCategory.status"),
|
|
131
|
+
prop: "status"
|
|
132
|
+
}, {
|
|
133
|
+
default: l(() => [
|
|
134
|
+
t(H, {
|
|
135
|
+
modelValue: i.value.status,
|
|
136
|
+
"onUpdate:modelValue": o[2] || (o[2] = (e) => i.value.status = e),
|
|
137
|
+
placeholder: a.$t("goodsCategory.statusRequired"),
|
|
138
|
+
data: n(re).enableDict.values,
|
|
139
|
+
clearable: ""
|
|
140
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
141
|
+
]),
|
|
142
|
+
_: 1
|
|
143
|
+
}, 8, ["label"])
|
|
144
|
+
]),
|
|
145
|
+
_: 1
|
|
146
|
+
}),
|
|
147
|
+
t(f, { span: 12 }, {
|
|
148
|
+
default: l(() => [
|
|
149
|
+
t(k, { class: "search-btn" }, {
|
|
150
|
+
default: l(() => [
|
|
151
|
+
t(v, {
|
|
152
|
+
type: "primary",
|
|
153
|
+
onClick: o[3] || (o[3] = (e) => n(s).handleQuery())
|
|
154
|
+
}, {
|
|
155
|
+
default: l(() => [
|
|
156
|
+
p(c(a.$t("common.search")), 1)
|
|
157
|
+
]),
|
|
158
|
+
_: 1
|
|
159
|
+
}),
|
|
160
|
+
t(v, {
|
|
161
|
+
onClick: o[4] || (o[4] = (e) => n(s).resetQuery())
|
|
162
|
+
}, {
|
|
163
|
+
default: l(() => [
|
|
164
|
+
p(c(a.$t("common.reset")), 1)
|
|
165
|
+
]),
|
|
166
|
+
_: 1
|
|
167
|
+
})
|
|
168
|
+
]),
|
|
169
|
+
_: 1
|
|
170
|
+
})
|
|
171
|
+
]),
|
|
172
|
+
_: 1
|
|
173
|
+
})
|
|
174
|
+
]),
|
|
175
|
+
_: 1
|
|
176
|
+
})
|
|
177
|
+
]),
|
|
178
|
+
_: 1
|
|
179
|
+
}, 8, ["model"]),
|
|
180
|
+
o[12] || (o[12] = U("div", { class: "clear" }, null, -1))
|
|
181
|
+
]),
|
|
182
|
+
t(Z, {
|
|
183
|
+
shadow: "never",
|
|
184
|
+
class: "table-container"
|
|
185
|
+
}, {
|
|
186
|
+
header: l(() => [
|
|
187
|
+
t(N, null, {
|
|
188
|
+
default: l(() => [
|
|
189
|
+
t(f, { span: 17 }, {
|
|
190
|
+
default: l(() => [
|
|
191
|
+
C((u(), w(v, {
|
|
192
|
+
type: "primary",
|
|
193
|
+
onClick: L
|
|
194
|
+
}, {
|
|
195
|
+
default: l(() => [
|
|
196
|
+
p(c(a.$t("common.add")), 1)
|
|
197
|
+
]),
|
|
198
|
+
_: 1
|
|
199
|
+
})), [
|
|
200
|
+
[b, ["goods:goods_category:add"]]
|
|
201
|
+
]),
|
|
202
|
+
C((u(), w(v, {
|
|
203
|
+
type: "primary",
|
|
204
|
+
onClick: o[5] || (o[5] = (e) => n(s).deleteRecords())
|
|
205
|
+
}, {
|
|
206
|
+
default: l(() => [
|
|
207
|
+
p(c(a.$t("common.batchDelete")), 1)
|
|
208
|
+
]),
|
|
209
|
+
_: 1
|
|
210
|
+
})), [
|
|
211
|
+
[b, ["goods:goods_category:delete"]]
|
|
212
|
+
])
|
|
213
|
+
]),
|
|
214
|
+
_: 1
|
|
215
|
+
}),
|
|
216
|
+
t(f, {
|
|
217
|
+
span: 7,
|
|
218
|
+
class: "container-float"
|
|
219
|
+
}, {
|
|
220
|
+
default: l(() => [
|
|
221
|
+
t(M, {
|
|
222
|
+
modelValue: n(g),
|
|
223
|
+
"onUpdate:modelValue": o[6] || (o[6] = (e) => T(g) ? g.value = e : g = e),
|
|
224
|
+
"label-name": "goods/goods-spu"
|
|
225
|
+
}, null, 8, ["modelValue"])
|
|
226
|
+
]),
|
|
227
|
+
_: 1
|
|
228
|
+
})
|
|
229
|
+
]),
|
|
230
|
+
_: 1
|
|
231
|
+
})
|
|
232
|
+
]),
|
|
233
|
+
footer: l(() => [
|
|
234
|
+
n(y) > 0 ? (u(), w(Y, {
|
|
235
|
+
key: 0,
|
|
236
|
+
total: n(y),
|
|
237
|
+
"onUpdate:total": o[7] || (o[7] = (e) => T(y) ? y.value = e : null),
|
|
238
|
+
"current-page": i.value.curPage,
|
|
239
|
+
"onUpdate:currentPage": o[8] || (o[8] = (e) => i.value.curPage = e),
|
|
240
|
+
"page-size": i.value.pageSize,
|
|
241
|
+
"onUpdate:pageSize": o[9] || (o[9] = (e) => i.value.pageSize = e),
|
|
242
|
+
onPagination: o[10] || (o[10] = (e) => n(s).getList())
|
|
243
|
+
}, null, 8, ["total", "current-page", "page-size"])) : D("", !0)
|
|
244
|
+
]),
|
|
245
|
+
default: l(() => [
|
|
246
|
+
t(X, {
|
|
247
|
+
ref_key: "multipleTableRef",
|
|
248
|
+
ref: z,
|
|
249
|
+
"row-key": "categoryId",
|
|
250
|
+
"list-loading": n(B),
|
|
251
|
+
data: n(q),
|
|
252
|
+
"table-label": n(g),
|
|
253
|
+
"default-expand-all": "",
|
|
254
|
+
onSelectionChange: E,
|
|
255
|
+
onSortChange: K
|
|
256
|
+
}, {
|
|
257
|
+
picUrl: l((e) => [
|
|
258
|
+
t(O, {
|
|
259
|
+
src: n(j).imageUrl(e.data.row.picUrl, 0, 0),
|
|
260
|
+
"preview-src-list": [n(j).imageUrl(e.data.row.picUrl)],
|
|
261
|
+
"preview-teleported": "",
|
|
262
|
+
"hide-on-click-modal": "",
|
|
263
|
+
fit: "contain"
|
|
264
|
+
}, null, 8, ["src", "preview-src-list"])
|
|
265
|
+
]),
|
|
266
|
+
status: l((e) => [
|
|
267
|
+
U("span", null, [
|
|
268
|
+
t(W, {
|
|
269
|
+
modelValue: e.data.row.status,
|
|
270
|
+
"onUpdate:modelValue": (m) => e.data.row.status = m,
|
|
271
|
+
onChange: (m) => n(s).enableRecord(e.data.row, e.data.row.status)
|
|
272
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
273
|
+
])
|
|
274
|
+
]),
|
|
275
|
+
listOrder: l((e) => [
|
|
276
|
+
t(R, {
|
|
277
|
+
size: "16",
|
|
278
|
+
onClick: (m) => n(s).handleMove(e.data.row, !1)
|
|
279
|
+
}, {
|
|
280
|
+
default: l(() => [
|
|
281
|
+
t(G)
|
|
282
|
+
]),
|
|
283
|
+
_: 2
|
|
284
|
+
}, 1032, ["onClick"]),
|
|
285
|
+
t(R, {
|
|
286
|
+
size: "16",
|
|
287
|
+
onClick: (m) => n(s).handleMove(e.data.row, !0)
|
|
288
|
+
}, {
|
|
289
|
+
default: l(() => [
|
|
290
|
+
t(J)
|
|
291
|
+
]),
|
|
292
|
+
_: 2
|
|
293
|
+
}, 1032, ["onClick"])
|
|
294
|
+
]),
|
|
295
|
+
operation: l((e) => [
|
|
296
|
+
C((u(), $("span", {
|
|
297
|
+
class: "el-button-color",
|
|
298
|
+
onClick: (m) => A(e.data.row)
|
|
299
|
+
}, [
|
|
300
|
+
p(c(a.$t("common.edit")), 1)
|
|
301
|
+
], 8, ue)), [
|
|
302
|
+
[b, ["goods:goods_category:update"]]
|
|
303
|
+
]),
|
|
304
|
+
C((u(), $("span", {
|
|
305
|
+
class: "el-button-color dropdown-left",
|
|
306
|
+
onClick: (m) => n(s).deleteRecord(e.data.row)
|
|
307
|
+
}, [
|
|
308
|
+
p(c(a.$t("common.delete")), 1)
|
|
309
|
+
], 8, me)), [
|
|
310
|
+
[b, ["goods:goods_category:delete"]]
|
|
311
|
+
])
|
|
312
|
+
]),
|
|
313
|
+
_: 1
|
|
314
|
+
}, 8, ["list-loading", "data", "table-label"])
|
|
315
|
+
]),
|
|
316
|
+
_: 1
|
|
317
|
+
}),
|
|
318
|
+
d.value.visible ? (u(), w(se, {
|
|
319
|
+
key: 0,
|
|
320
|
+
modelValue: d.value.visible,
|
|
321
|
+
"onUpdate:modelValue": o[11] || (o[11] = (e) => d.value.visible = e),
|
|
322
|
+
title: d.value.title,
|
|
323
|
+
"entity-key": n(h),
|
|
324
|
+
onRefresh: Q,
|
|
325
|
+
width: "600px"
|
|
326
|
+
}, null, 8, ["modelValue", "title", "entity-key"])) : D("", !0)
|
|
327
|
+
]);
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
});
|
|
331
|
+
export {
|
|
332
|
+
ve as default
|
|
333
|
+
};
|
package/dist/index.mjs
CHANGED
|
@@ -62,7 +62,7 @@ function Ps(e) {
|
|
|
62
62
|
let s = e.global.getLocaleMessage("en");
|
|
63
63
|
s = Tt(s, xs), e.global.setLocaleMessage("zh-cn", t), e.global.setLocaleMessage("en", s);
|
|
64
64
|
}
|
|
65
|
-
const Ns = () => import("./edit-
|
|
65
|
+
const Ns = () => import("./edit-BlnYCDI4.mjs"), Ws = () => import("./info-wrevnU3P.mjs"), Fs = [
|
|
66
66
|
{
|
|
67
67
|
path: "/rawgoods",
|
|
68
68
|
component: Ys,
|
|
@@ -2806,7 +2806,7 @@ class Ii {
|
|
|
2806
2806
|
});
|
|
2807
2807
|
}
|
|
2808
2808
|
}
|
|
2809
|
-
const Hi = new Ii(), Ui = /* @__PURE__ */ Object.assign({ "./views/goods/goods-spu/edit.vue": () => import("./edit-
|
|
2809
|
+
const Hi = new Ii(), Ui = /* @__PURE__ */ Object.assign({ "./views/goods/goods-category/edit.vue": () => import("./edit-BsaWxeqY.mjs"), "./views/goods/goods-category/index.vue": () => import("./index-Dp9QMOea.mjs"), "./views/goods/goods-spu/edit.vue": () => import("./edit-BlnYCDI4.mjs"), "./views/goods/goods-spu/goodsList.vue": () => import("./goodsList-Dvsh76f7.mjs"), "./views/goods/goods-spu/index.vue": () => import("./index-BF7PDcd4.mjs"), "./views/goods/goods-spu/info.vue": () => import("./info-wrevnU3P.mjs"), "./views/goods/goods-spu/skuForm.vue": () => import("./skuForm-B7yYjwdJ.mjs"), "./views/goods/goods-spu/skuTable.vue": () => import("./skuTable-YDBH_oRN.mjs").then((e) => e.a) }), Ei = {
|
|
2810
2810
|
install(e) {
|
|
2811
2811
|
Os(Ui, 7), Ps(bs), Ts(Fs), e.use(Ci);
|
|
2812
2812
|
}
|