xyvcard-goods 0.0.14 → 0.0.16
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-BlnYCDI4.mjs → edit-CN1CKgoW.mjs} +206 -234
- package/dist/{edit-BsaWxeqY.mjs → edit-E57LIt5x.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DRAXgRwD.mjs → edit.vue_vue_type_script_setup_true_lang-BHplO2tN.mjs} +13 -15
- package/dist/{goodsList-Dvsh76f7.mjs → goodsList-C2113q3G.mjs} +1 -1
- package/dist/{goodsList.vue_vue_type_script_setup_true_lang-CWJQd86q.mjs → goodsList.vue_vue_type_script_setup_true_lang-C7lnUpja.mjs} +202 -225
- package/dist/{index-DZJVaUh3.mjs → index-CmKF2zdn.mjs} +97 -73
- package/dist/{index-Ct0LRSwV.mjs → index-CnyW3rxw.mjs} +47 -47
- package/dist/{index-BF7PDcd4.mjs → index-DO2m_h7R.mjs} +2 -2
- package/dist/index.mjs +2 -2
- package/dist/{info-wrevnU3P.mjs → info-D6MWRZ1y.mjs} +52 -59
- package/dist/{skuForm-B7yYjwdJ.mjs → skuForm-BW2yrv5Z.mjs} +2 -2
- package/dist/{skuTable-YDBH_oRN.mjs → skuTable-DbNThlFG.mjs} +1 -1
- package/dts/api/dict.d.ts +1 -1
- package/dts/api/goods-spu/types.d.ts +2 -2
- package/dts/utils/returnBizLay.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var S = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var s = (
|
|
4
|
-
import { useUserStore as
|
|
5
|
-
import { EntryDict as
|
|
6
|
-
import { ref as h, reactive as
|
|
7
|
-
import { specValueApi as
|
|
2
|
+
var y = (o, e, t) => e in o ? S(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
|
+
var s = (o, e, t) => y(o, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { useUserStore as c, clearEmpty as l, request as d, BizDict as p, BizLayDict as v, EnumDict as g } from "jmash-core";
|
|
5
|
+
import { EntryDict as A } from "jmash-dict";
|
|
6
|
+
import { ref as h, reactive as L } from "vue";
|
|
7
|
+
import { specValueApi as P, infoApi as m, specInfoApi as O } from "xyvcard-shop";
|
|
8
8
|
class a {
|
|
9
9
|
}
|
|
10
10
|
// 模块
|
|
@@ -29,7 +29,7 @@ s(a, "ENABLE_VALUES", h([
|
|
|
29
29
|
{ key: "true", value: "启用" },
|
|
30
30
|
{ key: "false", value: "禁用" }
|
|
31
31
|
]));
|
|
32
|
-
class
|
|
32
|
+
class f {
|
|
33
33
|
getKey(e) {
|
|
34
34
|
return {
|
|
35
35
|
categoryId: e.categoryId
|
|
@@ -37,8 +37,8 @@ class O {
|
|
|
37
37
|
}
|
|
38
38
|
// 查询翻页信息商城商品分类
|
|
39
39
|
findPage(e) {
|
|
40
|
-
const t =
|
|
41
|
-
return e && (e.hasStatus = e.status != null),
|
|
40
|
+
const t = c().user.tenant;
|
|
41
|
+
return e && (e.hasStatus = e.status != null), l(e), d({
|
|
42
42
|
url: "/v1/goods/goods_category/list/" + t,
|
|
43
43
|
method: "get",
|
|
44
44
|
params: e
|
|
@@ -46,8 +46,8 @@ class O {
|
|
|
46
46
|
}
|
|
47
47
|
// 查询列表信息商城商品分类
|
|
48
48
|
findList(e) {
|
|
49
|
-
const t =
|
|
50
|
-
return
|
|
49
|
+
const t = c().user.tenant;
|
|
50
|
+
return l(e), d({
|
|
51
51
|
url: "/v1/goods/goods_category/list/" + t,
|
|
52
52
|
method: "get",
|
|
53
53
|
params: e
|
|
@@ -55,15 +55,15 @@ class O {
|
|
|
55
55
|
}
|
|
56
56
|
// 查询商城商品分类
|
|
57
57
|
findById(e) {
|
|
58
|
-
const t =
|
|
59
|
-
return
|
|
58
|
+
const t = c().user.tenant;
|
|
59
|
+
return l(e), d({
|
|
60
60
|
url: "/v1/goods/goods_category/id/" + t + "/" + e.categoryId,
|
|
61
61
|
method: "get"
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
64
|
// 创建实体商城商品分类
|
|
65
65
|
create(e) {
|
|
66
|
-
return e.tenant =
|
|
66
|
+
return e.tenant = c().user.tenant, l(e), d({
|
|
67
67
|
url: "/v1/goods/goods_category",
|
|
68
68
|
method: "post",
|
|
69
69
|
data: e
|
|
@@ -71,7 +71,7 @@ class O {
|
|
|
71
71
|
}
|
|
72
72
|
// 修改实体商城商品分类
|
|
73
73
|
update(e) {
|
|
74
|
-
return e.tenant =
|
|
74
|
+
return e.tenant = c().user.tenant, l(e), d({
|
|
75
75
|
url: "/v1/goods/goods_category",
|
|
76
76
|
method: "patch",
|
|
77
77
|
data: e
|
|
@@ -79,25 +79,25 @@ class O {
|
|
|
79
79
|
}
|
|
80
80
|
// 上移下移
|
|
81
81
|
move(e, t) {
|
|
82
|
-
const
|
|
83
|
-
return
|
|
82
|
+
const r = { ...e };
|
|
83
|
+
return r.tenant = c().user.tenant, r.up = t, l(r), d({
|
|
84
84
|
url: "/v1/goods/goods_category/move",
|
|
85
85
|
method: "put",
|
|
86
|
-
data:
|
|
86
|
+
data: r
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
// 启用/禁用
|
|
90
90
|
enable(e, t) {
|
|
91
|
-
const
|
|
92
|
-
return
|
|
91
|
+
const r = { ...e };
|
|
92
|
+
return r.tenant = c().user.tenant, r.enable = t, l(r), d({
|
|
93
93
|
url: "/v1/goods/goods_category/enable",
|
|
94
94
|
method: "put",
|
|
95
|
-
data:
|
|
95
|
+
data: r
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
98
|
// 删除商城商品分类
|
|
99
99
|
delete(e) {
|
|
100
|
-
return e.tenant =
|
|
100
|
+
return e.tenant = c().user.tenant, l(e), d({
|
|
101
101
|
url: "/v1/goods/goods_category/id",
|
|
102
102
|
method: "delete",
|
|
103
103
|
params: e
|
|
@@ -105,14 +105,14 @@ class O {
|
|
|
105
105
|
}
|
|
106
106
|
// 批量删除商城商品分类
|
|
107
107
|
batchDelete(e) {
|
|
108
|
-
const t = e.map((
|
|
109
|
-
tenant:
|
|
108
|
+
const t = e.map((n) => n.categoryId), r = {
|
|
109
|
+
tenant: c().user.tenant,
|
|
110
110
|
categoryId: t
|
|
111
111
|
};
|
|
112
|
-
return
|
|
112
|
+
return l(r), d({
|
|
113
113
|
url: "/v1/goods/goods_category/batch",
|
|
114
114
|
method: "put",
|
|
115
|
-
data:
|
|
115
|
+
data: r
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
118
|
/**
|
|
@@ -122,18 +122,29 @@ class O {
|
|
|
122
122
|
* @returns 返回一个AxiosPromise,包含GoodsCategoryTree类型的响应数据
|
|
123
123
|
*/
|
|
124
124
|
findTreeListApi(e) {
|
|
125
|
-
const t =
|
|
126
|
-
return
|
|
125
|
+
const t = c().user.tenant;
|
|
126
|
+
return l(e), d({
|
|
127
127
|
url: "/v1/goods/goods_category/treelist/" + t,
|
|
128
128
|
method: "get",
|
|
129
129
|
params: e
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
|
-
const
|
|
133
|
+
const I = new f();
|
|
134
|
+
function E(o, e, t) {
|
|
135
|
+
return !Array.isArray(o) || o.length === 0 ? [] : o.map((n) => {
|
|
136
|
+
let u = [];
|
|
137
|
+
return Array.isArray(n.children) && n.children.length > 0 && (u = E(n.children, e, t)), {
|
|
138
|
+
value: n[t],
|
|
139
|
+
label: n[e],
|
|
140
|
+
parentId: n.parentId,
|
|
141
|
+
children: u
|
|
142
|
+
};
|
|
143
|
+
});
|
|
144
|
+
}
|
|
134
145
|
class _ {
|
|
135
146
|
constructor(e, t) {
|
|
136
|
-
s(this, "values",
|
|
147
|
+
s(this, "values", L([]));
|
|
137
148
|
// 查询条件
|
|
138
149
|
s(this, "query");
|
|
139
150
|
this.values.length = 0, this.values.push(...e.value), this.query = t;
|
|
@@ -150,13 +161,13 @@ class U extends p {
|
|
|
150
161
|
// 实现 useValues 方法
|
|
151
162
|
useValues() {
|
|
152
163
|
return new Promise((e, t) => {
|
|
153
|
-
|
|
154
|
-
const
|
|
164
|
+
m.findList(this.query).then(({ data: r }) => {
|
|
165
|
+
const n = r.results;
|
|
155
166
|
this.values.length = 0, this.values.push(
|
|
156
|
-
...
|
|
157
|
-
(
|
|
158
|
-
key:
|
|
159
|
-
value:
|
|
167
|
+
...n.map(
|
|
168
|
+
(u) => ({
|
|
169
|
+
key: u.shopId,
|
|
170
|
+
value: u.shopName
|
|
160
171
|
})
|
|
161
172
|
)
|
|
162
173
|
), e(this.values);
|
|
@@ -164,28 +175,41 @@ class U extends p {
|
|
|
164
175
|
});
|
|
165
176
|
}
|
|
166
177
|
}
|
|
167
|
-
class
|
|
178
|
+
class D extends v {
|
|
179
|
+
// // 实现 useValues 方法
|
|
180
|
+
// useValues(excludeId?: string): Promise<LayEntry[]> {
|
|
181
|
+
// return new Promise((resolve, reject) => {
|
|
182
|
+
// goodsCategoryApi
|
|
183
|
+
// .findTreeListApi({ excludeId })
|
|
184
|
+
// .then(({ data }) => {
|
|
185
|
+
// this.values.length = 0;
|
|
186
|
+
// this.values.push(...data.results);
|
|
187
|
+
// resolve(this.values);
|
|
188
|
+
// })
|
|
189
|
+
// .catch(reject);
|
|
190
|
+
// });
|
|
191
|
+
// }
|
|
168
192
|
// 实现 useValues 方法
|
|
169
|
-
useValues(
|
|
170
|
-
return new Promise((
|
|
171
|
-
|
|
172
|
-
this.values.length = 0, this.values.push(...
|
|
173
|
-
}).catch(
|
|
193
|
+
useValues() {
|
|
194
|
+
return new Promise((e, t) => {
|
|
195
|
+
I.findTreeListApi(this.query).then(({ data: r }) => {
|
|
196
|
+
this.values.length = 0, this.values.push(...E(r.results, "label", "value")), e(this.values);
|
|
197
|
+
}).catch(t);
|
|
174
198
|
});
|
|
175
199
|
}
|
|
176
200
|
}
|
|
177
|
-
class
|
|
201
|
+
class T extends p {
|
|
178
202
|
// 实现 useValues 方法
|
|
179
203
|
useValues() {
|
|
180
204
|
return new Promise((e, t) => {
|
|
181
|
-
|
|
182
|
-
const
|
|
205
|
+
O.findList(this.query).then(({ data: r }) => {
|
|
206
|
+
const n = r.results;
|
|
183
207
|
this.values.length = 0, this.values.push(
|
|
184
|
-
...
|
|
185
|
-
(
|
|
186
|
-
key:
|
|
187
|
-
value:
|
|
188
|
-
disabled:
|
|
208
|
+
...n.map(
|
|
209
|
+
(u) => ({
|
|
210
|
+
key: u.specId,
|
|
211
|
+
value: u.specName,
|
|
212
|
+
disabled: u.disabled
|
|
189
213
|
})
|
|
190
214
|
)
|
|
191
215
|
), e(this.values);
|
|
@@ -193,17 +217,17 @@ class D extends p {
|
|
|
193
217
|
});
|
|
194
218
|
}
|
|
195
219
|
}
|
|
196
|
-
class
|
|
220
|
+
class N extends p {
|
|
197
221
|
// 实现 useValues 方法
|
|
198
222
|
useValues() {
|
|
199
223
|
return new Promise((e, t) => {
|
|
200
|
-
|
|
201
|
-
const
|
|
224
|
+
P.findList(this.query).then(({ data: r }) => {
|
|
225
|
+
const n = r.results;
|
|
202
226
|
this.values.length = 0, this.values.push(
|
|
203
|
-
...
|
|
204
|
-
(
|
|
205
|
-
key:
|
|
206
|
-
value:
|
|
227
|
+
...n.map(
|
|
228
|
+
(u) => ({
|
|
229
|
+
key: u.specValueId,
|
|
230
|
+
value: u.valueName
|
|
207
231
|
})
|
|
208
232
|
)
|
|
209
233
|
), e(this.values);
|
|
@@ -211,38 +235,38 @@ class T extends p {
|
|
|
211
235
|
});
|
|
212
236
|
}
|
|
213
237
|
}
|
|
214
|
-
class
|
|
238
|
+
class i {
|
|
215
239
|
}
|
|
216
240
|
// 店铺列表
|
|
217
|
-
s(
|
|
241
|
+
s(i, "shopInfoBizDict", new U({})), // 商品分类
|
|
218
242
|
// static readonly goodsCategoryDict = new GoodsCategoryBizLayDict({});
|
|
219
243
|
// 规格列表
|
|
220
|
-
s(
|
|
221
|
-
s(
|
|
222
|
-
s(
|
|
223
|
-
s(
|
|
244
|
+
s(i, "specInfoDict", new T({})), // 规格值
|
|
245
|
+
s(i, "specValueDict", new N({})), // 上架下架
|
|
246
|
+
s(i, "shelfDict", new _(a.SHELF_VALUES, {})), // 运费类型
|
|
247
|
+
s(i, "freightTypeEnum", new g(
|
|
224
248
|
a.MODULE_GOODS,
|
|
225
249
|
a.ENUM_FREIGHT_TYPE
|
|
226
250
|
)), // 保障服务
|
|
227
|
-
s(
|
|
228
|
-
s(
|
|
251
|
+
s(i, "goodsEnsureDict", new A(a.DICT_GOODS_ENSURE)), // 规格类型
|
|
252
|
+
s(i, "specTypeEnum", new g(
|
|
229
253
|
a.MODULE_GOODS,
|
|
230
254
|
a.ENUM_SPEC_TYPE
|
|
231
255
|
)), // 商品查询枚举
|
|
232
|
-
s(
|
|
256
|
+
s(i, "goodsSpuListSortEnum", new g(
|
|
233
257
|
a.MODULE_GOODS,
|
|
234
258
|
a.ENUM_GOODS_SPU_List_SORT
|
|
235
259
|
)), // 审核状态
|
|
236
|
-
s(
|
|
260
|
+
s(i, "approvalStatusEnum", new g(
|
|
237
261
|
a.MODULE_GOODS,
|
|
238
262
|
a.ENUM_APPROVAL_STATUS
|
|
239
263
|
)), // 启用禁用
|
|
240
|
-
s(
|
|
241
|
-
s(
|
|
264
|
+
s(i, "enableDict", new _(a.ENABLE_VALUES, {})), // 商品分类
|
|
265
|
+
s(i, "goodsCategoryListBizLayDict", new D({}));
|
|
242
266
|
export {
|
|
243
267
|
a as C,
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
268
|
+
i as D,
|
|
269
|
+
N as S,
|
|
270
|
+
T as a,
|
|
271
|
+
I as g
|
|
248
272
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as x, ref as V, reactive as S, onActivated as ee, resolveComponent as r, resolveDirective as
|
|
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-CmKF2zdn.mjs";
|
|
5
|
+
import { _ as se } from "./edit.vue_vue_type_script_setup_true_lang-BHplO2tN.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) {
|
|
@@ -90,31 +90,31 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
90
90
|
}
|
|
91
91
|
return ee(() => {
|
|
92
92
|
s.getList();
|
|
93
|
-
}), (a,
|
|
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 =
|
|
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
95
|
return u(), $("div", ie, [
|
|
96
96
|
U("div", de, [
|
|
97
|
-
|
|
97
|
+
t(I, {
|
|
98
98
|
ref_key: "queryFormRef",
|
|
99
99
|
ref: P,
|
|
100
100
|
model: i.value,
|
|
101
101
|
inline: !0
|
|
102
102
|
}, {
|
|
103
103
|
default: l(() => [
|
|
104
|
-
|
|
104
|
+
t(N, null, {
|
|
105
105
|
default: l(() => [
|
|
106
|
-
|
|
106
|
+
t(f, { span: 6 }, {
|
|
107
107
|
default: l(() => [
|
|
108
|
-
|
|
108
|
+
t(k, {
|
|
109
109
|
label: a.$t("goodsCategory.categoryName"),
|
|
110
110
|
prop: "likeCategoryName"
|
|
111
111
|
}, {
|
|
112
112
|
default: l(() => [
|
|
113
|
-
|
|
113
|
+
t(F, {
|
|
114
114
|
modelValue: i.value.likeCategoryName,
|
|
115
|
-
"onUpdate:modelValue":
|
|
115
|
+
"onUpdate:modelValue": o[0] || (o[0] = (e) => i.value.likeCategoryName = e),
|
|
116
116
|
placeholder: a.$t("goodsCategory.categoryNameRequired"),
|
|
117
|
-
onKeyup:
|
|
117
|
+
onKeyup: o[1] || (o[1] = te((e) => n(s).handleQuery(), ["enter"])),
|
|
118
118
|
class: "!w-[203px]",
|
|
119
119
|
clearable: ""
|
|
120
120
|
}, null, 8, ["modelValue", "placeholder"])
|
|
@@ -124,16 +124,16 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
124
124
|
]),
|
|
125
125
|
_: 1
|
|
126
126
|
}),
|
|
127
|
-
|
|
127
|
+
t(f, { span: 6 }, {
|
|
128
128
|
default: l(() => [
|
|
129
|
-
|
|
129
|
+
t(k, {
|
|
130
130
|
label: a.$t("goodsCategory.status"),
|
|
131
131
|
prop: "status"
|
|
132
132
|
}, {
|
|
133
133
|
default: l(() => [
|
|
134
|
-
|
|
134
|
+
t(H, {
|
|
135
135
|
modelValue: i.value.status,
|
|
136
|
-
"onUpdate:modelValue":
|
|
136
|
+
"onUpdate:modelValue": o[2] || (o[2] = (e) => i.value.status = e),
|
|
137
137
|
placeholder: a.$t("goodsCategory.statusRequired"),
|
|
138
138
|
data: n(re).enableDict.values,
|
|
139
139
|
clearable: ""
|
|
@@ -144,21 +144,21 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
144
144
|
]),
|
|
145
145
|
_: 1
|
|
146
146
|
}),
|
|
147
|
-
|
|
147
|
+
t(f, { span: 12 }, {
|
|
148
148
|
default: l(() => [
|
|
149
|
-
|
|
149
|
+
t(k, { class: "search-btn" }, {
|
|
150
150
|
default: l(() => [
|
|
151
|
-
|
|
151
|
+
t(v, {
|
|
152
152
|
type: "primary",
|
|
153
|
-
onClick:
|
|
153
|
+
onClick: o[3] || (o[3] = (e) => n(s).handleQuery())
|
|
154
154
|
}, {
|
|
155
155
|
default: l(() => [
|
|
156
156
|
p(c(a.$t("common.search")), 1)
|
|
157
157
|
]),
|
|
158
158
|
_: 1
|
|
159
159
|
}),
|
|
160
|
-
|
|
161
|
-
onClick:
|
|
160
|
+
t(v, {
|
|
161
|
+
onClick: o[4] || (o[4] = (e) => n(s).resetQuery())
|
|
162
162
|
}, {
|
|
163
163
|
default: l(() => [
|
|
164
164
|
p(c(a.$t("common.reset")), 1)
|
|
@@ -177,16 +177,16 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
177
177
|
]),
|
|
178
178
|
_: 1
|
|
179
179
|
}, 8, ["model"]),
|
|
180
|
-
|
|
180
|
+
o[12] || (o[12] = U("div", { class: "clear" }, null, -1))
|
|
181
181
|
]),
|
|
182
|
-
|
|
182
|
+
t(Z, {
|
|
183
183
|
shadow: "never",
|
|
184
184
|
class: "table-container"
|
|
185
185
|
}, {
|
|
186
186
|
header: l(() => [
|
|
187
|
-
|
|
187
|
+
t(N, null, {
|
|
188
188
|
default: l(() => [
|
|
189
|
-
|
|
189
|
+
t(f, { span: 17 }, {
|
|
190
190
|
default: l(() => [
|
|
191
191
|
C((u(), w(v, {
|
|
192
192
|
type: "primary",
|
|
@@ -197,31 +197,31 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
197
197
|
]),
|
|
198
198
|
_: 1
|
|
199
199
|
})), [
|
|
200
|
-
[b, ["
|
|
200
|
+
[b, ["goods:goods_category:add"]]
|
|
201
201
|
]),
|
|
202
202
|
C((u(), w(v, {
|
|
203
203
|
type: "primary",
|
|
204
|
-
onClick:
|
|
204
|
+
onClick: o[5] || (o[5] = (e) => n(s).deleteRecords())
|
|
205
205
|
}, {
|
|
206
206
|
default: l(() => [
|
|
207
207
|
p(c(a.$t("common.batchDelete")), 1)
|
|
208
208
|
]),
|
|
209
209
|
_: 1
|
|
210
210
|
})), [
|
|
211
|
-
[b, ["
|
|
211
|
+
[b, ["goods:goods_category:delete"]]
|
|
212
212
|
])
|
|
213
213
|
]),
|
|
214
214
|
_: 1
|
|
215
215
|
}),
|
|
216
|
-
|
|
216
|
+
t(f, {
|
|
217
217
|
span: 7,
|
|
218
218
|
class: "container-float"
|
|
219
219
|
}, {
|
|
220
220
|
default: l(() => [
|
|
221
|
-
|
|
221
|
+
t(M, {
|
|
222
222
|
modelValue: n(g),
|
|
223
|
-
"onUpdate:modelValue":
|
|
224
|
-
"label-name": "
|
|
223
|
+
"onUpdate:modelValue": o[6] || (o[6] = (e) => T(g) ? g.value = e : g = e),
|
|
224
|
+
"label-name": "goods/goods-spu"
|
|
225
225
|
}, null, 8, ["modelValue"])
|
|
226
226
|
]),
|
|
227
227
|
_: 1
|
|
@@ -234,16 +234,16 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
234
234
|
n(y) > 0 ? (u(), w(Y, {
|
|
235
235
|
key: 0,
|
|
236
236
|
total: n(y),
|
|
237
|
-
"onUpdate:total":
|
|
237
|
+
"onUpdate:total": o[7] || (o[7] = (e) => T(y) ? y.value = e : null),
|
|
238
238
|
"current-page": i.value.curPage,
|
|
239
|
-
"onUpdate:currentPage":
|
|
239
|
+
"onUpdate:currentPage": o[8] || (o[8] = (e) => i.value.curPage = e),
|
|
240
240
|
"page-size": i.value.pageSize,
|
|
241
|
-
"onUpdate:pageSize":
|
|
242
|
-
onPagination:
|
|
241
|
+
"onUpdate:pageSize": o[9] || (o[9] = (e) => i.value.pageSize = e),
|
|
242
|
+
onPagination: o[10] || (o[10] = (e) => n(s).getList())
|
|
243
243
|
}, null, 8, ["total", "current-page", "page-size"])) : D("", !0)
|
|
244
244
|
]),
|
|
245
245
|
default: l(() => [
|
|
246
|
-
|
|
246
|
+
t(X, {
|
|
247
247
|
ref_key: "multipleTableRef",
|
|
248
248
|
ref: z,
|
|
249
249
|
"row-key": "categoryId",
|
|
@@ -255,7 +255,7 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
255
255
|
onSortChange: K
|
|
256
256
|
}, {
|
|
257
257
|
picUrl: l((e) => [
|
|
258
|
-
|
|
258
|
+
t(O, {
|
|
259
259
|
src: n(j).imageUrl(e.data.row.picUrl, 0, 0),
|
|
260
260
|
"preview-src-list": [n(j).imageUrl(e.data.row.picUrl)],
|
|
261
261
|
"preview-teleported": "",
|
|
@@ -265,7 +265,7 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
265
265
|
]),
|
|
266
266
|
status: l((e) => [
|
|
267
267
|
U("span", null, [
|
|
268
|
-
|
|
268
|
+
t(W, {
|
|
269
269
|
modelValue: e.data.row.status,
|
|
270
270
|
"onUpdate:modelValue": (m) => e.data.row.status = m,
|
|
271
271
|
onChange: (m) => n(s).enableRecord(e.data.row, e.data.row.status)
|
|
@@ -273,21 +273,21 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
273
273
|
])
|
|
274
274
|
]),
|
|
275
275
|
listOrder: l((e) => [
|
|
276
|
-
|
|
276
|
+
t(R, {
|
|
277
277
|
size: "16",
|
|
278
278
|
onClick: (m) => n(s).handleMove(e.data.row, !1)
|
|
279
279
|
}, {
|
|
280
280
|
default: l(() => [
|
|
281
|
-
|
|
281
|
+
t(G)
|
|
282
282
|
]),
|
|
283
283
|
_: 2
|
|
284
284
|
}, 1032, ["onClick"]),
|
|
285
|
-
|
|
285
|
+
t(R, {
|
|
286
286
|
size: "16",
|
|
287
287
|
onClick: (m) => n(s).handleMove(e.data.row, !0)
|
|
288
288
|
}, {
|
|
289
289
|
default: l(() => [
|
|
290
|
-
|
|
290
|
+
t(J)
|
|
291
291
|
]),
|
|
292
292
|
_: 2
|
|
293
293
|
}, 1032, ["onClick"])
|
|
@@ -299,7 +299,7 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
299
299
|
}, [
|
|
300
300
|
p(c(a.$t("common.edit")), 1)
|
|
301
301
|
], 8, ue)), [
|
|
302
|
-
[b, ["
|
|
302
|
+
[b, ["goods:goods_category:update"]]
|
|
303
303
|
]),
|
|
304
304
|
C((u(), $("span", {
|
|
305
305
|
class: "el-button-color dropdown-left",
|
|
@@ -307,7 +307,7 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
307
307
|
}, [
|
|
308
308
|
p(c(a.$t("common.delete")), 1)
|
|
309
309
|
], 8, me)), [
|
|
310
|
-
[b, ["
|
|
310
|
+
[b, ["goods:goods_category:delete"]]
|
|
311
311
|
])
|
|
312
312
|
]),
|
|
313
313
|
_: 1
|
|
@@ -318,7 +318,7 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
318
318
|
d.value.visible ? (u(), w(se, {
|
|
319
319
|
key: 0,
|
|
320
320
|
modelValue: d.value.visible,
|
|
321
|
-
"onUpdate:modelValue":
|
|
321
|
+
"onUpdate:modelValue": o[11] || (o[11] = (e) => d.value.visible = e),
|
|
322
322
|
title: d.value.title,
|
|
323
323
|
"entity-key": n(h),
|
|
324
324
|
onRefresh: Q,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as b, ref as S, onMounted as A, resolveComponent as p, openBlock as t, createElementBlock as c, createVNode as V, withCtx as m, Fragment as C, renderList as P, unref as h, createBlock as i, createCommentVNode as y } from "vue";
|
|
2
2
|
import { useRoute as L } from "vue-router";
|
|
3
|
-
import { D as _, C as l } from "./index-
|
|
4
|
-
import { _ as k } from "./goodsList.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { D as _, C as l } from "./index-CmKF2zdn.mjs";
|
|
4
|
+
import { _ as k } from "./goodsList.vue_vue_type_script_setup_true_lang-C7lnUpja.mjs";
|
|
5
5
|
const N = { class: "app-container" }, x = /* @__PURE__ */ b({
|
|
6
6
|
__name: "index",
|
|
7
7
|
setup(g) {
|
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-CN1CKgoW.mjs"), Ws = () => import("./info-D6MWRZ1y.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-category/edit.vue": () => import("./edit-
|
|
2809
|
+
const Hi = new Ii(), Ui = /* @__PURE__ */ Object.assign({ "./views/goods/goods-category/edit.vue": () => import("./edit-E57LIt5x.mjs"), "./views/goods/goods-category/index.vue": () => import("./index-CnyW3rxw.mjs"), "./views/goods/goods-spu/edit.vue": () => import("./edit-CN1CKgoW.mjs"), "./views/goods/goods-spu/goodsList.vue": () => import("./goodsList-C2113q3G.mjs"), "./views/goods/goods-spu/index.vue": () => import("./index-DO2m_h7R.mjs"), "./views/goods/goods-spu/info.vue": () => import("./info-D6MWRZ1y.mjs"), "./views/goods/goods-spu/skuForm.vue": () => import("./skuForm-BW2yrv5Z.mjs"), "./views/goods/goods-spu/skuTable.vue": () => import("./skuTable-DbNThlFG.mjs").then((e) => e.a) }), Ei = {
|
|
2810
2810
|
install(e) {
|
|
2811
2811
|
Os(Ui, 7), Ps(bs), Ts(Fs), e.use(Ci);
|
|
2812
2812
|
}
|