xyvcard-goods 0.0.21 → 0.0.22

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 (33) hide show
  1. package/dist/ImageUpload-Dk6GY6PA.mjs +93 -0
  2. package/dist/{edit-CkR-I5aJ.mjs → edit-Byv9oYAC.mjs} +1 -1
  3. package/dist/{edit-tCGa_9Kt.mjs → edit-Nuaz9WSB.mjs} +170 -171
  4. package/dist/edit-exVf8d8b.mjs +367 -0
  5. package/dist/edit.vue_vue_type_script_setup_true_lang-DuSBj1Mm.mjs +24172 -0
  6. package/dist/{goodsList-HmPAwD_C.mjs → goodsList-CZUqc4nm.mjs} +1 -1
  7. package/dist/{goodsList-TX2ZnRR9.mjs → goodsList-IWDAvKOx.mjs} +1 -1
  8. package/dist/{goodsList.vue_vue_type_script_setup_true_lang-f1Fc6pbd.mjs → goodsList.vue_vue_type_script_setup_true_lang-BhJn02Ym.mjs} +1 -1
  9. package/dist/{goodsList.vue_vue_type_script_setup_true_lang-CGV1dm3W.mjs → goodsList.vue_vue_type_script_setup_true_lang-CuzIDtTN.mjs} +1 -1
  10. package/dist/{index-B0SXNsHW.mjs → index-4i7TnWvV.mjs} +2 -3
  11. package/dist/{index-Dt3PP8dN.mjs → index-BVGn6Q_T.mjs} +2 -2
  12. package/dist/{index-BZw9XfQo.mjs → index-B_U2s9fI.mjs} +2 -2
  13. package/dist/{index-Ctva-XF0.mjs → index-CQIttgns.mjs} +1 -1
  14. package/dist/{index-CqOoZ5xQ.mjs → index-Dvaotk7B.mjs} +88 -68
  15. package/dist/{index-VFsDup14.mjs → index-_xxSoBUe.mjs} +1 -1
  16. package/dist/index.mjs +192 -181
  17. package/dist/{info-CrghLmS4.mjs → info-BH4MW3Sw.mjs} +2 -2
  18. package/dist/{info-BTKv0IRt.mjs → info-BQaaTFry.mjs} +2 -2
  19. package/dist/skuForm-AMIoZkH-.mjs +287 -0
  20. package/dist/{skuForm-D2n8sQJo.mjs → skuForm-CgjMd46J.mjs} +5 -5
  21. package/dist/{skuTable-CEwT-I1Q.mjs → skuTable-CyGQuTvR.mjs} +1 -1
  22. package/dist/{skuTable-D-awlXgj.mjs → skuTable-DDWSmvoz.mjs} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dts/api/dict.d.ts +3 -0
  25. package/dts/api/goods-spu/index.d.ts +1 -0
  26. package/dts/api/goods-spu/types.d.ts +17 -0
  27. package/dts/api/index.d.ts +2 -1
  28. package/dts/lang/goods/zh-cn.d.ts +5 -1
  29. package/dts/views/goods/goods-combination/skuForm.vue.d.ts +0 -9
  30. package/package.json +3 -2
  31. package/dist/edit-DFc_TNP3.mjs +0 -590
  32. package/dist/edit.vue_vue_type_script_setup_true_lang-BlNwikUO.mjs +0 -234
  33. package/dist/skuForm-C7rF2noo.mjs +0 -475
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./goodsList.vue_vue_type_script_setup_true_lang-CGV1dm3W.mjs";
1
+ import { _ as f } from "./goodsList.vue_vue_type_script_setup_true_lang-BhJn02Ym.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./goodsList.vue_vue_type_script_setup_true_lang-f1Fc6pbd.mjs";
1
+ import { _ as f } from "./goodsList.vue_vue_type_script_setup_true_lang-CuzIDtTN.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -4,7 +4,7 @@ import { useRouter as ye } from "vue-router";
4
4
  import { useTableHooks as we, fileApi as H } from "jmash-core";
5
5
  import { useI18n as he } from "vue-i18n";
6
6
  import { goodsSpuApi as P } from "./index.mjs";
7
- import { D as g, C as ve } from "./index-CqOoZ5xQ.mjs";
7
+ import { D as g, C as ve } from "./index-Dvaotk7B.mjs";
8
8
  const Se = { class: "app-container" }, Ce = { class: "search-container" }, ke = ["onClick"], Ve = ["onClick"], Ie = ["onClick"], ze = /* @__PURE__ */ ge({
9
9
  __name: "goodsList",
10
10
  props: {
@@ -4,7 +4,7 @@ import { useRouter as we } from "vue-router";
4
4
  import { useTableHooks as Ce, fileApi as W } from "jmash-core";
5
5
  import { useI18n as ke } from "vue-i18n";
6
6
  import { goodsSpuApi as T } from "./index.mjs";
7
- import { D as S, C as h } from "./index-CqOoZ5xQ.mjs";
7
+ import { D as S, C as h } from "./index-Dvaotk7B.mjs";
8
8
  const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie = ["onClick"], $e = ["onClick"], Re = ["onClick"], Oe = /* @__PURE__ */ be({
9
9
  __name: "goodsList",
10
10
  props: {
@@ -1,8 +1,8 @@
1
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-CqOoZ5xQ.mjs";
5
- import { _ as se } from "./edit.vue_vue_type_script_setup_true_lang-BlNwikUO.mjs";
4
+ import { g as ne, D as re } from "./index-Dvaotk7B.mjs";
5
+ import { _ as se } from "./edit.vue_vue_type_script_setup_true_lang-DuSBj1Mm.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) {
@@ -250,7 +250,6 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
250
250
  "list-loading": n(B),
251
251
  data: n(q),
252
252
  "table-label": n(g),
253
- "default-expand-all": "",
254
253
  onSelectionChange: E,
255
254
  onSortChange: K
256
255
  }, {
@@ -1,7 +1,7 @@
1
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
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";
3
+ import { D as i } from "./index-Dvaotk7B.mjs";
4
+ import { _ as L } from "./goodsList.vue_vue_type_script_setup_true_lang-BhJn02Ym.mjs";
5
5
  const N = { class: "app-container" }, E = /* @__PURE__ */ v({
6
6
  __name: "index",
7
7
  setup(T) {
@@ -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-CqOoZ5xQ.mjs";
4
- import { _ as k } from "./goodsList.vue_vue_type_script_setup_true_lang-CGV1dm3W.mjs";
3
+ import { D as _, C as l } from "./index-Dvaotk7B.mjs";
4
+ import { _ as k } from "./goodsList.vue_vue_type_script_setup_true_lang-CuzIDtTN.mjs";
5
5
  const N = { class: "app-container" }, x = /* @__PURE__ */ b({
6
6
  __name: "index",
7
7
  setup(g) {
@@ -3,7 +3,7 @@ import { useTableHooks as oe } from "jmash-core";
3
3
  import { useI18n as le } from "vue-i18n";
4
4
  import { g as te } from "./index-jTDhsbYM.mjs";
5
5
  import ae from "./edit-BcokSKfN.mjs";
6
- import { D as ne } from "./index-CqOoZ5xQ.mjs";
6
+ import { D as ne } from "./index-Dvaotk7B.mjs";
7
7
  const se = { class: "app-container" }, de = { class: "search-container" }, ie = ["onClick"], re = ["onClick"], ve = /* @__PURE__ */ Y({
8
8
  __name: "index",
9
9
  setup(ue) {
@@ -1,12 +1,13 @@
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);
1
+ var _ = Object.defineProperty;
2
+ var m = (i, e, t) => e in i ? _(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
3
+ var s = (i, e, t) => m(i, typeof e != "symbol" ? e + "" : e, t);
4
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";
5
+ import { EntryDict as E } from "jmash-dict";
6
6
  import { ref as g, reactive as L } from "vue";
7
7
  import { specValueApi as A, infoApi as P, specInfoApi as f } from "xyvcard-shop";
8
8
  import { g as O } from "./index-r0u-27m7.mjs";
9
9
  import { g as I } from "./index-jTDhsbYM.mjs";
10
+ import { goodsSpuApi as D } from "./index.mjs";
10
11
  class r {
11
12
  }
12
13
  // 模块
@@ -35,7 +36,7 @@ s(r, "GOODS_TYPE", {
35
36
  NORMAL: "normal",
36
37
  GROUP: "group"
37
38
  });
38
- class D {
39
+ class U {
39
40
  getKey(e) {
40
41
  return {
41
42
  categoryId: e.categoryId
@@ -111,7 +112,7 @@ class D {
111
112
  }
112
113
  // 批量删除商城商品分类
113
114
  batchDelete(e) {
114
- const t = e.map((n) => n.categoryId), a = {
115
+ const t = e.map((u) => u.categoryId), a = {
115
116
  tenant: l().user.tenant,
116
117
  categoryId: t
117
118
  };
@@ -136,19 +137,19 @@ class D {
136
137
  });
137
138
  }
138
139
  }
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
140
+ const T = new U();
141
+ function S(i, e, t) {
142
+ return !Array.isArray(i) || i.length === 0 ? [] : i.map((u) => {
143
+ let o = [];
144
+ return Array.isArray(u.children) && u.children.length > 0 && (o = S(u.children, e, t)), {
145
+ value: u[t],
146
+ label: u[e],
147
+ parentId: u.parentId,
148
+ children: o
148
149
  };
149
150
  });
150
151
  }
151
- class _ {
152
+ class v {
152
153
  constructor(e, t) {
153
154
  s(this, "values", L([]));
154
155
  // 查询条件
@@ -163,17 +164,17 @@ class _ {
163
164
  return "";
164
165
  }
165
166
  }
166
- class T extends h {
167
+ class N extends h {
167
168
  // 实现 useValues 方法
168
169
  useValues() {
169
170
  return new Promise((e, t) => {
170
171
  P.findList(this.query).then(({ data: a }) => {
171
- const n = a.results;
172
+ const u = a.results;
172
173
  this.values.length = 0, this.values.push(
173
- ...n.map(
174
- (i) => ({
175
- key: i.shopId,
176
- value: i.shopName
174
+ ...u.map(
175
+ (o) => ({
176
+ key: o.shopId,
177
+ value: o.shopName
177
178
  })
178
179
  )
179
180
  ), e(this.values);
@@ -181,28 +182,28 @@ class T extends h {
181
182
  });
182
183
  }
183
184
  }
184
- class N extends y {
185
+ class V extends y {
185
186
  // 实现 useValues 方法
186
187
  useValues() {
187
188
  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);
189
+ T.findTreeListApi(this.query).then(({ data: a }) => {
190
+ this.values.length = 0, this.values.push(...S(a.results, "label", "value")), e(this.values);
190
191
  }).catch(t);
191
192
  });
192
193
  }
193
194
  }
194
- class V extends h {
195
+ class b extends h {
195
196
  // 实现 useValues 方法
196
197
  useValues() {
197
198
  return new Promise((e, t) => {
198
199
  f.findList(this.query).then(({ data: a }) => {
199
- const n = a.results;
200
+ const u = a.results;
200
201
  this.values.length = 0, this.values.push(
201
- ...n.map(
202
- (i) => ({
203
- key: i.specId,
204
- value: i.specName,
205
- disabled: i.disabled
202
+ ...u.map(
203
+ (o) => ({
204
+ key: o.specId,
205
+ value: o.specName,
206
+ disabled: o.disabled
206
207
  })
207
208
  )
208
209
  ), e(this.values);
@@ -210,17 +211,17 @@ class V extends h {
210
211
  });
211
212
  }
212
213
  }
213
- class b extends h {
214
+ class w extends h {
214
215
  // 实现 useValues 方法
215
216
  useValues() {
216
217
  return new Promise((e, t) => {
217
218
  A.findList(this.query).then(({ data: a }) => {
218
- const n = a.results;
219
+ const u = a.results;
219
220
  this.values.length = 0, this.values.push(
220
- ...n.map(
221
- (i) => ({
222
- key: i.specValueId,
223
- value: i.valueName
221
+ ...u.map(
222
+ (o) => ({
223
+ key: o.specValueId,
224
+ value: o.valueName
224
225
  })
225
226
  )
226
227
  ), e(this.values);
@@ -228,17 +229,17 @@ class b extends h {
228
229
  });
229
230
  }
230
231
  }
231
- class w extends h {
232
+ class B extends h {
232
233
  // 实现 useValues 方法
233
234
  useValues() {
234
235
  return new Promise((e, t) => {
235
236
  O.findList(this.query).then(({ data: a }) => {
236
- const n = a.results;
237
+ const u = a.results;
237
238
  this.values.length = 0, this.values.push(
238
- ...n.map(
239
- (i) => ({
240
- key: i.brandId,
241
- value: i.brandName
239
+ ...u.map(
240
+ (o) => ({
241
+ key: o.brandId,
242
+ value: o.brandName
242
243
  })
243
244
  )
244
245
  ), e(this.values);
@@ -246,17 +247,35 @@ class w extends h {
246
247
  });
247
248
  }
248
249
  }
249
- class B extends h {
250
+ class G extends h {
250
251
  // 实现 useValues 方法
251
252
  useValues() {
252
253
  return new Promise((e, t) => {
253
254
  I.findList(this.query).then(({ data: a }) => {
254
- const n = a.results;
255
+ const u = a.results;
256
+ this.values.length = 0, this.values.push(
257
+ ...u.map(
258
+ (o) => ({
259
+ key: o.labelId,
260
+ value: o.labelName
261
+ })
262
+ )
263
+ ), e(this.values);
264
+ }).catch(t);
265
+ });
266
+ }
267
+ }
268
+ class z extends h {
269
+ // 实现 useValues 方法
270
+ useValues() {
271
+ return new Promise((e, t) => {
272
+ D.findList(this.query).then(({ data: a }) => {
273
+ const u = a.results;
255
274
  this.values.length = 0, this.values.push(
256
- ...n.map(
257
- (i) => ({
258
- key: i.labelId,
259
- value: i.labelName
275
+ ...u.map(
276
+ (o) => ({
277
+ key: o.spuId,
278
+ value: o.spuName
260
279
  })
261
280
  )
262
281
  ), e(this.values);
@@ -264,42 +283,43 @@ class B extends h {
264
283
  });
265
284
  }
266
285
  }
267
- class u {
286
+ class n {
268
287
  }
269
288
  // 店铺列表
270
- s(u, "shopInfoBizDict", new T({})), // 商品分类
289
+ s(n, "shopInfoBizDict", new N({})), // 商品分类
271
290
  // static readonly goodsCategoryDict = new GoodsCategoryBizLayDict({});
272
291
  // 规格列表
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(
292
+ s(n, "specInfoDict", new b({})), // 规格值
293
+ s(n, "specValueDict", new w({})), // 上架下架
294
+ s(n, "shelfDict", new v(r.SHELF_VALUES, {})), // 运费类型
295
+ s(n, "freightTypeEnum", new p(
277
296
  r.MODULE_GOODS,
278
297
  r.ENUM_FREIGHT_TYPE
279
298
  )), // 保障服务
280
- s(u, "goodsEnsureDict", new m(r.DICT_GOODS_ENSURE)), // 规格类型
281
- s(u, "specTypeEnum", new p(
299
+ s(n, "goodsEnsureDict", new E(r.DICT_GOODS_ENSURE)), // 规格类型
300
+ s(n, "specTypeEnum", new p(
282
301
  r.MODULE_GOODS,
283
302
  r.ENUM_SPEC_TYPE
284
303
  )), // 商品查询枚举
285
- s(u, "goodsSpuListSortEnum", new p(
304
+ s(n, "goodsSpuListSortEnum", new p(
286
305
  r.MODULE_GOODS,
287
306
  r.ENUM_GOODS_SPU_List_SORT
288
307
  )), // 审核状态
289
- s(u, "approvalStatusEnum", new p(
308
+ s(n, "approvalStatusEnum", new p(
290
309
  r.MODULE_GOODS,
291
310
  r.ENUM_APPROVAL_STATUS
292
311
  )), // 启用禁用
293
- s(u, "enableDict", new _(r.ENABLE_VALUES, {})), // 商品分类
294
- s(u, "goodsCategoryListBizLayDict", new N(
312
+ s(n, "enableDict", new v(r.ENABLE_VALUES, {})), // 商品分类
313
+ s(n, "goodsCategoryListBizLayDict", new V(
295
314
  {}
296
315
  )), // 品牌列表
297
- s(u, "brandListBizDict", new w({})), // 标签列表
298
- s(u, "labelListBizDict", new B({}));
316
+ s(n, "brandListBizDict", new B({})), // 标签列表
317
+ s(n, "labelListBizDict", new G({})), // 商品列表
318
+ s(n, "goodsSpuBizDict", new z({}));
299
319
  export {
300
320
  r as C,
301
- u as D,
302
- b as S,
303
- V as a,
304
- U as g
321
+ n as D,
322
+ w as S,
323
+ b as a,
324
+ T as g
305
325
  };
@@ -3,7 +3,7 @@ import { useTableHooks as le, fileApi as D } from "jmash-core";
3
3
  import { useI18n as ae } from "vue-i18n";
4
4
  import { g as ne } from "./index-r0u-27m7.mjs";
5
5
  import re from "./edit-DxnsmaXV.mjs";
6
- import { D as de } from "./index-CqOoZ5xQ.mjs";
6
+ import { D as de } from "./index-Dvaotk7B.mjs";
7
7
  const se = { class: "app-container" }, ie = { class: "search-container" }, ue = ["onClick"], me = ["onClick"], ye = /* @__PURE__ */ x({
8
8
  __name: "index",
9
9
  setup(pe) {