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.
@@ -1,10 +1,10 @@
1
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";
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 O {
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 = i().user.tenant;
41
- return e && (e.hasStatus = e.status != null), n(e), c({
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 = i().user.tenant;
50
- return n(e), c({
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 = i().user.tenant;
59
- return n(e), c({
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 = i().user.tenant, n(e), c({
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 = i().user.tenant, n(e), c({
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 o = { ...e };
83
- return o.tenant = i().user.tenant, o.up = t, n(o), c({
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: o
86
+ data: r
87
87
  });
88
88
  }
89
89
  // 启用/禁用
90
90
  enable(e, t) {
91
- const o = { ...e };
92
- return o.tenant = i().user.tenant, o.enable = t, n(o), c({
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: o
95
+ data: r
96
96
  });
97
97
  }
98
98
  // 删除商城商品分类
99
99
  delete(e) {
100
- return e.tenant = i().user.tenant, n(e), c({
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((l) => l.categoryId), o = {
109
- tenant: i().user.tenant,
108
+ const t = e.map((n) => n.categoryId), r = {
109
+ tenant: c().user.tenant,
110
110
  categoryId: t
111
111
  };
112
- return n(o), c({
112
+ return l(r), d({
113
113
  url: "/v1/goods/goods_category/batch",
114
114
  method: "put",
115
- data: o
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 = i().user.tenant;
126
- return n(e), c({
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 f = new O();
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", P([]));
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
- L.findList(this.query).then(({ data: o }) => {
154
- const l = o.results;
164
+ m.findList(this.query).then(({ data: r }) => {
165
+ const n = r.results;
155
166
  this.values.length = 0, this.values.push(
156
- ...l.map(
157
- (d) => ({
158
- key: d.shopId,
159
- value: d.shopName
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 I extends v {
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(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);
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 D extends p {
201
+ class T extends p {
178
202
  // 实现 useValues 方法
179
203
  useValues() {
180
204
  return new Promise((e, t) => {
181
- A.findList(this.query).then(({ data: o }) => {
182
- const l = o.results;
205
+ O.findList(this.query).then(({ data: r }) => {
206
+ const n = r.results;
183
207
  this.values.length = 0, this.values.push(
184
- ...l.map(
185
- (d) => ({
186
- key: d.specId,
187
- value: d.specName,
188
- disabled: d.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 T extends p {
220
+ class N extends p {
197
221
  // 实现 useValues 方法
198
222
  useValues() {
199
223
  return new Promise((e, t) => {
200
- y.findList(this.query).then(({ data: o }) => {
201
- const l = o.results;
224
+ P.findList(this.query).then(({ data: r }) => {
225
+ const n = r.results;
202
226
  this.values.length = 0, this.values.push(
203
- ...l.map(
204
- (d) => ({
205
- key: d.specValueId,
206
- value: d.valueName
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 u {
238
+ class i {
215
239
  }
216
240
  // 店铺列表
217
- s(u, "shopInfoBizDict", new U({})), // 商品分类
241
+ s(i, "shopInfoBizDict", new U({})), // 商品分类
218
242
  // static readonly goodsCategoryDict = new GoodsCategoryBizLayDict({});
219
243
  // 规格列表
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(
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(u, "goodsEnsureDict", new m(a.DICT_GOODS_ENSURE)), // 规格类型
228
- s(u, "specTypeEnum", new g(
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(u, "goodsSpuListSortEnum", new g(
256
+ s(i, "goodsSpuListSortEnum", new g(
233
257
  a.MODULE_GOODS,
234
258
  a.ENUM_GOODS_SPU_List_SORT
235
259
  )), // 审核状态
236
- s(u, "approvalStatusEnum", new g(
260
+ s(i, "approvalStatusEnum", new g(
237
261
  a.MODULE_GOODS,
238
262
  a.ENUM_APPROVAL_STATUS
239
263
  )), // 启用禁用
240
- s(u, "enableDict", new _(a.ENABLE_VALUES, {})), // 商品分类
241
- s(u, "goodsCategoryListBizLayDict", new I({}));
264
+ s(i, "enableDict", new _(a.ENABLE_VALUES, {})), // 商品分类
265
+ s(i, "goodsCategoryListBizLayDict", new D({}));
242
266
  export {
243
267
  a as C,
244
- u as D,
245
- T as S,
246
- D as a,
247
- f as g
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 te, openBlock as u, createElementBlock as $, createElementVNode as U, createVNode as o, withCtx as l, withKeys as oe, unref as n, createTextVNode as p, toDisplayString as c, withDirectives as C, createBlock as w, isRef as T, createCommentVNode as D } from "vue";
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-DZJVaUh3.mjs";
5
- import { _ as se } from "./edit.vue_vue_type_script_setup_true_lang-DRAXgRwD.mjs";
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, t) => {
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 = te("hasPerm");
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
- o(I, {
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
- o(N, null, {
104
+ t(N, null, {
105
105
  default: l(() => [
106
- o(f, { span: 6 }, {
106
+ t(f, { span: 6 }, {
107
107
  default: l(() => [
108
- o(k, {
108
+ t(k, {
109
109
  label: a.$t("goodsCategory.categoryName"),
110
110
  prop: "likeCategoryName"
111
111
  }, {
112
112
  default: l(() => [
113
- o(F, {
113
+ t(F, {
114
114
  modelValue: i.value.likeCategoryName,
115
- "onUpdate:modelValue": t[0] || (t[0] = (e) => i.value.likeCategoryName = e),
115
+ "onUpdate:modelValue": o[0] || (o[0] = (e) => i.value.likeCategoryName = e),
116
116
  placeholder: a.$t("goodsCategory.categoryNameRequired"),
117
- onKeyup: t[1] || (t[1] = oe((e) => n(s).handleQuery(), ["enter"])),
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
- o(f, { span: 6 }, {
127
+ t(f, { span: 6 }, {
128
128
  default: l(() => [
129
- o(k, {
129
+ t(k, {
130
130
  label: a.$t("goodsCategory.status"),
131
131
  prop: "status"
132
132
  }, {
133
133
  default: l(() => [
134
- o(H, {
134
+ t(H, {
135
135
  modelValue: i.value.status,
136
- "onUpdate:modelValue": t[2] || (t[2] = (e) => i.value.status = e),
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
- o(f, { span: 12 }, {
147
+ t(f, { span: 12 }, {
148
148
  default: l(() => [
149
- o(k, { class: "search-btn" }, {
149
+ t(k, { class: "search-btn" }, {
150
150
  default: l(() => [
151
- o(v, {
151
+ t(v, {
152
152
  type: "primary",
153
- onClick: t[3] || (t[3] = (e) => n(s).handleQuery())
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
- o(v, {
161
- onClick: t[4] || (t[4] = (e) => n(s).resetQuery())
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
- t[12] || (t[12] = U("div", { class: "clear" }, null, -1))
180
+ o[12] || (o[12] = U("div", { class: "clear" }, null, -1))
181
181
  ]),
182
- o(Z, {
182
+ t(Z, {
183
183
  shadow: "never",
184
184
  class: "table-container"
185
185
  }, {
186
186
  header: l(() => [
187
- o(N, null, {
187
+ t(N, null, {
188
188
  default: l(() => [
189
- o(f, { span: 17 }, {
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, ["emall:goods_category:add"]]
200
+ [b, ["goods:goods_category:add"]]
201
201
  ]),
202
202
  C((u(), w(v, {
203
203
  type: "primary",
204
- onClick: t[5] || (t[5] = (e) => n(s).deleteRecords())
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, ["emall:goods_category:delete"]]
211
+ [b, ["goods:goods_category:delete"]]
212
212
  ])
213
213
  ]),
214
214
  _: 1
215
215
  }),
216
- o(f, {
216
+ t(f, {
217
217
  span: 7,
218
218
  class: "container-float"
219
219
  }, {
220
220
  default: l(() => [
221
- o(M, {
221
+ t(M, {
222
222
  modelValue: n(g),
223
- "onUpdate:modelValue": t[6] || (t[6] = (e) => T(g) ? g.value = e : g = e),
224
- "label-name": "emall/emall-goods-category"
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": t[7] || (t[7] = (e) => T(y) ? y.value = e : null),
237
+ "onUpdate:total": o[7] || (o[7] = (e) => T(y) ? y.value = e : null),
238
238
  "current-page": i.value.curPage,
239
- "onUpdate:currentPage": t[8] || (t[8] = (e) => i.value.curPage = e),
239
+ "onUpdate:currentPage": o[8] || (o[8] = (e) => i.value.curPage = e),
240
240
  "page-size": i.value.pageSize,
241
- "onUpdate:pageSize": t[9] || (t[9] = (e) => i.value.pageSize = e),
242
- onPagination: t[10] || (t[10] = (e) => n(s).getList())
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
- o(X, {
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
- o(O, {
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
- o(W, {
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
- o(R, {
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
- o(G)
281
+ t(G)
282
282
  ]),
283
283
  _: 2
284
284
  }, 1032, ["onClick"]),
285
- o(R, {
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
- o(J)
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, ["emall:goods_category:update"]]
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, ["emall:goods_category:delete"]]
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": t[11] || (t[11] = (e) => d.value.visible = e),
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-DZJVaUh3.mjs";
4
- import { _ as k } from "./goodsList.vue_vue_type_script_setup_true_lang-CWJQd86q.mjs";
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-BlnYCDI4.mjs"), Ws = () => import("./info-wrevnU3P.mjs"), Fs = [
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-BsaWxeqY.mjs"), "./views/goods/goods-category/index.vue": () => import("./index-Ct0LRSwV.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 = {
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
  }