xyvcard-goods 0.0.19 → 0.0.21

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.
Files changed (52) hide show
  1. package/dist/edit-BcokSKfN.mjs +183 -0
  2. package/dist/{edit-E57LIt5x.mjs → edit-CkR-I5aJ.mjs} +1 -1
  3. package/dist/edit-DFc_TNP3.mjs +590 -0
  4. package/dist/edit-DxnsmaXV.mjs +186 -0
  5. package/dist/edit-tCGa_9Kt.mjs +507 -0
  6. package/dist/{edit.vue_vue_type_script_setup_true_lang-BHplO2tN.mjs → edit.vue_vue_type_script_setup_true_lang-BlNwikUO.mjs} +1 -1
  7. package/dist/{goodsList-0TMcPn_Q.mjs → goodsList-HmPAwD_C.mjs} +1 -1
  8. package/dist/goodsList-TX2ZnRR9.mjs +4 -0
  9. package/dist/goodsList.vue_vue_type_script_setup_true_lang-CGV1dm3W.mjs +714 -0
  10. package/dist/goodsList.vue_vue_type_script_setup_true_lang-f1Fc6pbd.mjs +576 -0
  11. package/dist/{index-CnyW3rxw.mjs → index-B0SXNsHW.mjs} +2 -2
  12. package/dist/{index-nSAowuoJ.mjs → index-BZw9XfQo.mjs} +2 -2
  13. package/dist/index-CqOoZ5xQ.mjs +305 -0
  14. package/dist/index-Ctva-XF0.mjs +318 -0
  15. package/dist/index-Dt3PP8dN.mjs +53 -0
  16. package/dist/index-VFsDup14.mjs +324 -0
  17. package/dist/index-jTDhsbYM.mjs +141 -0
  18. package/dist/index-r0u-27m7.mjs +141 -0
  19. package/dist/index.mjs +557 -531
  20. package/dist/info-BTKv0IRt.mjs +365 -0
  21. package/dist/info-CrghLmS4.mjs +365 -0
  22. package/dist/sku-B-IzfYLq.mjs +52 -0
  23. package/dist/skuForm-C7rF2noo.mjs +475 -0
  24. package/dist/{skuForm-DyYIl6H4.mjs → skuForm-D2n8sQJo.mjs} +154 -106
  25. package/dist/skuTable-CEwT-I1Q.mjs +592 -0
  26. package/dist/skuTable-D-awlXgj.mjs +592 -0
  27. package/dist/style.css +1 -1
  28. package/dts/api/dict.d.ts +6 -0
  29. package/dts/api/goods-brand-info/types.d.ts +4 -1
  30. package/dts/api/goods-label-info/types.d.ts +3 -0
  31. package/dts/api/goods-sku/types.d.ts +2 -0
  32. package/dts/api/goods-spu/types.d.ts +12 -0
  33. package/dts/api/index.d.ts +3 -1
  34. package/dts/constant.d.ts +4 -0
  35. package/dts/lang/goods/zh-cn.d.ts +19 -4
  36. package/dts/router/index.d.ts +1 -0
  37. package/dts/views/goods/goods-combination/edit.vue.d.ts +2 -0
  38. package/dts/views/goods/goods-combination/goodsList.vue.d.ts +14 -0
  39. package/dts/views/goods/goods-combination/index.vue.d.ts +2 -0
  40. package/dts/views/goods/goods-combination/info.vue.d.ts +2 -0
  41. package/dts/views/goods/goods-combination/skuForm.vue.d.ts +29 -0
  42. package/dts/views/goods/goods-combination/skuTable.vue.d.ts +40 -0
  43. package/package.json +61 -61
  44. package/dist/edit-B3Ripwo1.mjs +0 -437
  45. package/dist/edit-DEdWUJfi.mjs +0 -529
  46. package/dist/edit-SYuN1_Fg.mjs +0 -465
  47. package/dist/goodsList.vue_vue_type_script_setup_true_lang-Cd7-ryQA.mjs +0 -626
  48. package/dist/index-C0nlTW8F.mjs +0 -355
  49. package/dist/index-CmKF2zdn.mjs +0 -272
  50. package/dist/index-DH3UH0QC.mjs +0 -345
  51. package/dist/info-5OkZzwEV.mjs +0 -312
  52. package/dist/skuTable-B8v1DVIO.mjs +0 -543
@@ -0,0 +1,305 @@
1
+ var E = Object.defineProperty;
2
+ var S = (o, e, t) => e in o ? E(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
+ var s = (o, e, t) => S(o, typeof e != "symbol" ? e + "" : e, t);
4
+ import { useUserStore as l, clearEmpty as c, request as d, BizDict as h, BizLayDict as y, EnumDict as p } from "jmash-core";
5
+ import { EntryDict as m } from "jmash-dict";
6
+ import { ref as g, reactive as L } from "vue";
7
+ import { specValueApi as A, infoApi as P, specInfoApi as f } from "xyvcard-shop";
8
+ import { g as O } from "./index-r0u-27m7.mjs";
9
+ import { g as I } from "./index-jTDhsbYM.mjs";
10
+ class r {
11
+ }
12
+ // 模块
13
+ s(r, "MODULE_GOODS", "goods"), // 商品规格类型
14
+ s(r, "SPEC_TYPE", {
15
+ UNIFIED_SPEC: "UNIFIED_SPEC",
16
+ //统一规格
17
+ MULTI_SPEC: "MULTI_SPEC"
18
+ //多规格
19
+ }), // 启用禁用
20
+ s(r, "SHELF_VALUES", g([
21
+ { key: !0, value: "上架" },
22
+ { key: !1, value: "下架" }
23
+ ])), // 运费类型
24
+ s(r, "ENUM_FREIGHT_TYPE", "xyvcard.goods.protobuf.FreightType"), // 保障服务
25
+ s(r, "DICT_GOODS_ENSURE", "goods_ensure"), // 规格类型
26
+ s(r, "ENUM_SPEC_TYPE", "xyvcard.goods.protobuf.SpecType"), // 商品查询枚举
27
+ s(r, "ENUM_GOODS_SPU_List_SORT", "xyvcard.goods.protobuf.GoodsSpuListSort"), // 审核状态
28
+ s(r, "ENUM_APPROVAL_STATUS", "xyvcard.goods.protobuf.ApprovalStatus"), // 审核状态常量
29
+ s(r, "APPROVAL_NOT_PASS", "APPROVAL_NOT_PASS"), s(r, "APPROVAL_PASS", "APPROVAL_PASS"), s(r, "APPROVALING", "APPROVALING"), // 启用禁用
30
+ s(r, "ENABLE_VALUES", g([
31
+ { key: "true", value: "启用" },
32
+ { key: "false", value: "禁用" }
33
+ ])), // 商品类型
34
+ s(r, "GOODS_TYPE", {
35
+ NORMAL: "normal",
36
+ GROUP: "group"
37
+ });
38
+ class D {
39
+ getKey(e) {
40
+ return {
41
+ categoryId: e.categoryId
42
+ };
43
+ }
44
+ // 查询翻页信息商城商品分类
45
+ findPage(e) {
46
+ const t = l().user.tenant;
47
+ return e && (e.hasStatus = e.status != null), c(e), d({
48
+ url: "/v1/goods/goods_category/list/" + t,
49
+ method: "get",
50
+ params: e
51
+ });
52
+ }
53
+ // 查询列表信息商城商品分类
54
+ findList(e) {
55
+ const t = l().user.tenant;
56
+ return c(e), d({
57
+ url: "/v1/goods/goods_category/list/" + t,
58
+ method: "get",
59
+ params: e
60
+ });
61
+ }
62
+ // 查询商城商品分类
63
+ findById(e) {
64
+ const t = l().user.tenant;
65
+ return c(e), d({
66
+ url: "/v1/goods/goods_category/id/" + t + "/" + e.categoryId,
67
+ method: "get"
68
+ });
69
+ }
70
+ // 创建实体商城商品分类
71
+ create(e) {
72
+ return e.tenant = l().user.tenant, c(e), d({
73
+ url: "/v1/goods/goods_category",
74
+ method: "post",
75
+ data: e
76
+ });
77
+ }
78
+ // 修改实体商城商品分类
79
+ update(e) {
80
+ return e.tenant = l().user.tenant, c(e), d({
81
+ url: "/v1/goods/goods_category",
82
+ method: "patch",
83
+ data: e
84
+ });
85
+ }
86
+ // 上移下移
87
+ move(e, t) {
88
+ const a = { ...e };
89
+ return a.tenant = l().user.tenant, a.up = t, c(a), d({
90
+ url: "/v1/goods/goods_category/move",
91
+ method: "put",
92
+ data: a
93
+ });
94
+ }
95
+ // 启用/禁用
96
+ enable(e, t) {
97
+ const a = { ...e };
98
+ return a.tenant = l().user.tenant, a.enable = t, c(a), d({
99
+ url: "/v1/goods/goods_category/enable",
100
+ method: "put",
101
+ data: a
102
+ });
103
+ }
104
+ // 删除商城商品分类
105
+ delete(e) {
106
+ return e.tenant = l().user.tenant, c(e), d({
107
+ url: "/v1/goods/goods_category/id",
108
+ method: "delete",
109
+ params: e
110
+ });
111
+ }
112
+ // 批量删除商城商品分类
113
+ batchDelete(e) {
114
+ const t = e.map((n) => n.categoryId), a = {
115
+ tenant: l().user.tenant,
116
+ categoryId: t
117
+ };
118
+ return c(a), d({
119
+ url: "/v1/goods/goods_category/batch",
120
+ method: "put",
121
+ data: a
122
+ });
123
+ }
124
+ /**
125
+ * 查询商品树列表的API接口
126
+ *
127
+ * @param query 可选的查询参数,符合GoodsCategoryReq接口的实例
128
+ * @returns 返回一个AxiosPromise,包含GoodsCategoryTree类型的响应数据
129
+ */
130
+ findTreeListApi(e) {
131
+ const t = l().user.tenant;
132
+ return c(e), d({
133
+ url: "/v1/goods/goods_category/treelist/" + t,
134
+ method: "get",
135
+ params: e
136
+ });
137
+ }
138
+ }
139
+ const U = new D();
140
+ function v(o, e, t) {
141
+ return !Array.isArray(o) || o.length === 0 ? [] : o.map((n) => {
142
+ let i = [];
143
+ return Array.isArray(n.children) && n.children.length > 0 && (i = v(n.children, e, t)), {
144
+ value: n[t],
145
+ label: n[e],
146
+ parentId: n.parentId,
147
+ children: i
148
+ };
149
+ });
150
+ }
151
+ class _ {
152
+ constructor(e, t) {
153
+ s(this, "values", L([]));
154
+ // 查询条件
155
+ s(this, "query");
156
+ this.values.length = 0, this.values.push(...e.value), this.query = t;
157
+ }
158
+ // 根据给定键获取业务数据项的值的方法
159
+ getValue(e) {
160
+ for (const t of this.values)
161
+ if (t.key == e)
162
+ return t.value;
163
+ return "";
164
+ }
165
+ }
166
+ class T extends h {
167
+ // 实现 useValues 方法
168
+ useValues() {
169
+ return new Promise((e, t) => {
170
+ P.findList(this.query).then(({ data: a }) => {
171
+ const n = a.results;
172
+ this.values.length = 0, this.values.push(
173
+ ...n.map(
174
+ (i) => ({
175
+ key: i.shopId,
176
+ value: i.shopName
177
+ })
178
+ )
179
+ ), e(this.values);
180
+ }).catch(t);
181
+ });
182
+ }
183
+ }
184
+ class N extends y {
185
+ // 实现 useValues 方法
186
+ useValues() {
187
+ return new Promise((e, t) => {
188
+ U.findTreeListApi(this.query).then(({ data: a }) => {
189
+ this.values.length = 0, this.values.push(...v(a.results, "label", "value")), e(this.values);
190
+ }).catch(t);
191
+ });
192
+ }
193
+ }
194
+ class V extends h {
195
+ // 实现 useValues 方法
196
+ useValues() {
197
+ return new Promise((e, t) => {
198
+ f.findList(this.query).then(({ data: a }) => {
199
+ const n = a.results;
200
+ this.values.length = 0, this.values.push(
201
+ ...n.map(
202
+ (i) => ({
203
+ key: i.specId,
204
+ value: i.specName,
205
+ disabled: i.disabled
206
+ })
207
+ )
208
+ ), e(this.values);
209
+ }).catch(t);
210
+ });
211
+ }
212
+ }
213
+ class b extends h {
214
+ // 实现 useValues 方法
215
+ useValues() {
216
+ return new Promise((e, t) => {
217
+ A.findList(this.query).then(({ data: a }) => {
218
+ const n = a.results;
219
+ this.values.length = 0, this.values.push(
220
+ ...n.map(
221
+ (i) => ({
222
+ key: i.specValueId,
223
+ value: i.valueName
224
+ })
225
+ )
226
+ ), e(this.values);
227
+ }).catch(t);
228
+ });
229
+ }
230
+ }
231
+ class w extends h {
232
+ // 实现 useValues 方法
233
+ useValues() {
234
+ return new Promise((e, t) => {
235
+ O.findList(this.query).then(({ data: a }) => {
236
+ const n = a.results;
237
+ this.values.length = 0, this.values.push(
238
+ ...n.map(
239
+ (i) => ({
240
+ key: i.brandId,
241
+ value: i.brandName
242
+ })
243
+ )
244
+ ), e(this.values);
245
+ }).catch(t);
246
+ });
247
+ }
248
+ }
249
+ class B extends h {
250
+ // 实现 useValues 方法
251
+ useValues() {
252
+ return new Promise((e, t) => {
253
+ I.findList(this.query).then(({ data: a }) => {
254
+ const n = a.results;
255
+ this.values.length = 0, this.values.push(
256
+ ...n.map(
257
+ (i) => ({
258
+ key: i.labelId,
259
+ value: i.labelName
260
+ })
261
+ )
262
+ ), e(this.values);
263
+ }).catch(t);
264
+ });
265
+ }
266
+ }
267
+ class u {
268
+ }
269
+ // 店铺列表
270
+ s(u, "shopInfoBizDict", new T({})), // 商品分类
271
+ // static readonly goodsCategoryDict = new GoodsCategoryBizLayDict({});
272
+ // 规格列表
273
+ s(u, "specInfoDict", new V({})), // 规格值
274
+ s(u, "specValueDict", new b({})), // 上架下架
275
+ s(u, "shelfDict", new _(r.SHELF_VALUES, {})), // 运费类型
276
+ s(u, "freightTypeEnum", new p(
277
+ r.MODULE_GOODS,
278
+ r.ENUM_FREIGHT_TYPE
279
+ )), // 保障服务
280
+ s(u, "goodsEnsureDict", new m(r.DICT_GOODS_ENSURE)), // 规格类型
281
+ s(u, "specTypeEnum", new p(
282
+ r.MODULE_GOODS,
283
+ r.ENUM_SPEC_TYPE
284
+ )), // 商品查询枚举
285
+ s(u, "goodsSpuListSortEnum", new p(
286
+ r.MODULE_GOODS,
287
+ r.ENUM_GOODS_SPU_List_SORT
288
+ )), // 审核状态
289
+ s(u, "approvalStatusEnum", new p(
290
+ r.MODULE_GOODS,
291
+ r.ENUM_APPROVAL_STATUS
292
+ )), // 启用禁用
293
+ s(u, "enableDict", new _(r.ENABLE_VALUES, {})), // 商品分类
294
+ s(u, "goodsCategoryListBizLayDict", new N(
295
+ {}
296
+ )), // 品牌列表
297
+ s(u, "brandListBizDict", new w({})), // 标签列表
298
+ s(u, "labelListBizDict", new B({}));
299
+ export {
300
+ r as C,
301
+ u as D,
302
+ b as S,
303
+ V as a,
304
+ U as g
305
+ };
@@ -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-CqOoZ5xQ.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
+ };
@@ -0,0 +1,53 @@
1
+ import { defineComponent as v, ref as b, onMounted as h, resolveComponent as u, openBlock as t, createElementBlock as c, createVNode as y, withCtx as m, Fragment as k, renderList as C, unref as V, createBlock as p, createCommentVNode as g } from "vue";
2
+ import { useRoute as B } from "vue-router";
3
+ import { D as i } from "./index-CqOoZ5xQ.mjs";
4
+ import { _ as L } from "./goodsList.vue_vue_type_script_setup_true_lang-f1Fc6pbd.mjs";
5
+ const N = { class: "app-container" }, E = /* @__PURE__ */ v({
6
+ __name: "index",
7
+ setup(T) {
8
+ const l = B();
9
+ i.goodsCategoryListBizLayDict.useValues();
10
+ const e = b(0), n = {
11
+ 0: {},
12
+ 1: { shelf: "true" },
13
+ 2: { shelf: "false" }
14
+ };
15
+ function d(r) {
16
+ e.value = Number(r.index);
17
+ }
18
+ return h(() => {
19
+ l.query.activeTab && (e.value = Number(l.query.activeTab));
20
+ }), (r, s) => {
21
+ const f = u("el-tab-pane"), _ = u("el-tabs");
22
+ return t(), c("div", N, [
23
+ y(_, {
24
+ modelValue: e.value,
25
+ "onUpdate:modelValue": s[0] || (s[0] = (a) => e.value = a),
26
+ type: "border-card",
27
+ onTabClick: d
28
+ }, {
29
+ default: m(() => [
30
+ (t(!0), c(k, null, C(V(i).goodsSpuListSortEnum.values.slice(0, -2), (a, o) => (t(), p(f, {
31
+ key: o,
32
+ label: a.value,
33
+ name: o
34
+ }, {
35
+ default: m(() => [
36
+ e.value === o ? (t(), p(L, {
37
+ key: 0,
38
+ shelf: n[e.value].shelf,
39
+ "approval-status": n[e.value].approvalStatus
40
+ }, null, 8, ["shelf", "approval-status"])) : g("", !0)
41
+ ]),
42
+ _: 2
43
+ }, 1032, ["label", "name"]))), 128))
44
+ ]),
45
+ _: 1
46
+ }, 8, ["modelValue"])
47
+ ]);
48
+ };
49
+ }
50
+ });
51
+ export {
52
+ E as default
53
+ };