xyvcard-goods 0.0.34 → 0.0.35

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 (64) hide show
  1. package/dist/BatchSetting-B1LcBFPD.mjs +333 -0
  2. package/dist/ChannelProfit-CNSIK87d.mjs +4 -0
  3. package/dist/ChannelProfit.vue_vue_type_script_setup_true_lang-BVTifRY8.mjs +320 -0
  4. package/dist/{GoodsBaseForm-BSvXc_XA.mjs → GoodsBaseForm-BZ2fZmmp.mjs} +1 -1
  5. package/dist/GoodsBaseForm.vue_vue_type_script_setup_true_lang-BxBTTLdA.mjs +407 -0
  6. package/dist/{GoodsLogisticsForm-1Bbd4Z52.mjs → GoodsLogisticsForm-BqlwdGQ1.mjs} +1 -1
  7. package/dist/{GoodsLogisticsForm.vue_vue_type_script_setup_true_lang-PSnPNbmT.mjs → GoodsLogisticsForm.vue_vue_type_script_setup_true_lang-DJREiSkD.mjs} +56 -57
  8. package/dist/GoodsProfitForm-COYRi8sx.mjs +4 -0
  9. package/dist/GoodsProfitForm.vue_vue_type_script_setup_true_lang-BYPWP95J.mjs +2550 -0
  10. package/dist/{GoodsSpecForm-Ddo1IZLZ.mjs → GoodsSpecForm-B4MtETRy.mjs} +1 -1
  11. package/dist/{GoodsSpecForm.vue_vue_type_script_setup_true_lang-CdWIufm4.mjs → GoodsSpecForm.vue_vue_type_script_setup_true_lang-BbVK_KNz.mjs} +130 -121
  12. package/dist/SingleSku-rWv9vVhv.mjs +351 -0
  13. package/dist/constant-sVd2JbJt.mjs +115 -0
  14. package/dist/edit-B1cmsJpy.mjs +70 -0
  15. package/dist/{edit-lfXK_dUp.mjs → edit-Br1Y569l.mjs} +8 -7
  16. package/dist/{edit-e5-aXV6K.mjs → edit-CET8Fr-t.mjs} +1 -1
  17. package/dist/{edit-pUKONjxH.mjs → edit-CagYTFKr.mjs} +1 -1
  18. package/dist/{edit-BgtwinSN.mjs → edit-iJGrWlSv.mjs} +1 -1
  19. package/dist/{edit.vue_vue_type_script_setup_true_lang-BtGT564r.mjs → edit.vue_vue_type_script_setup_true_lang-D_0YivhL.mjs} +2 -2
  20. package/dist/{el-message-BB2-39XJ.mjs → el-message-Dj6aaz4G.mjs} +490 -373
  21. package/dist/{index-DyLLV1NK.mjs → index copy-kNLE7fPg.mjs } +6 -5
  22. package/dist/index-C61SQFSx.mjs +264 -0
  23. package/dist/index-CeWPdEJD.mjs +713 -0
  24. package/dist/{index-CkJncbVf.mjs → index-Cg6GUdSP.mjs} +3 -3
  25. package/dist/index-CyxnVWnL.mjs +182 -0
  26. package/dist/{index-CkMWas2b.mjs → index-D9s8hsVw.mjs} +3 -3
  27. package/dist/{index-BSzOTWcG.mjs → index-DbnKa_BJ.mjs} +1 -1
  28. package/dist/{index-ChQ-ZxD1.mjs → index-DoxTu4kg.mjs} +5 -4
  29. package/dist/{index-BpKiAhvt.mjs → index-kw0UYOIu.mjs} +3 -3
  30. package/dist/{index-DhS4AuWf.mjs → index-xQgC-8Gd.mjs} +1106 -1038
  31. package/dist/index.mjs +1 -1
  32. package/dist/info-CTElDVo6.mjs +376 -0
  33. package/dist/{info-DOKoSi7a.mjs → info-DpGJgdac.mjs} +5 -4
  34. package/dist/{skuForm-DVGkw6rD.mjs → skuForm-C7w9YIDe.mjs} +24 -23
  35. package/dist/skuForm-CPlnCToi.mjs +279 -0
  36. package/dist/skuTable-C-LcASbX.mjs +594 -0
  37. package/dist/spec-DkiGCkuM.mjs +44 -0
  38. package/dist/style.css +1 -1
  39. package/dts/xyvcard-goods/src/api/dict.d.ts +5 -4
  40. package/dts/xyvcard-goods/src/api/goods-sku/types.d.ts +3 -0
  41. package/dts/xyvcard-goods/src/api/goods-spu/index.d.ts +4 -1
  42. package/dts/xyvcard-goods/src/api/goods-spu/types.d.ts +35 -9
  43. package/dts/xyvcard-goods/src/api/types.d.ts +4 -0
  44. package/dts/xyvcard-goods/src/lang/goods/zh-cn.d.ts +32 -0
  45. package/dts/xyvcard-goods/src/router/index.d.ts +1 -0
  46. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/BatchSetting.vue.d.ts +35 -0
  47. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/ChannelProfit.vue.d.ts +22 -0
  48. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsProfitForm.vue.d.ts +34 -0
  49. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/SingleSku.vue.d.ts +23 -0
  50. package/dts/xyvcard-goods/src/views/goods/goods-spu/index copy.vue.d.ts +2 -0
  51. package/dts/xyvcard-goods/src/views/goods/goods-spu/skuForm.vue.d.ts +17 -4
  52. package/dts/xyvcard-goods/src/views/goods/goods-spu/skuTable.vue.d.ts +14 -1
  53. package/dts/xyvcard-goods/src/views/goods/goods-spu/spec.vue.d.ts +2 -0
  54. package/package.json +4 -3
  55. package/dist/GoodsBaseForm.vue_vue_type_script_setup_true_lang-rsmqHXbJ.mjs +0 -381
  56. package/dist/edit copy 2-Yzf_M31V.mjs +0 -59
  57. package/dist/edit copy-CCnzlrgL.mjs +0 -526
  58. package/dist/edit-Dke5sWct.mjs +0 -526
  59. package/dist/index-BHmGYIuc.mjs +0 -24
  60. package/dist/index-Da2R0n8O.mjs +0 -374
  61. package/dist/index-vHQhUQSO.mjs +0 -95
  62. package/dist/info-De_pBN6A.mjs +0 -365
  63. package/dist/skuForm-YXHrhyPI.mjs +0 -476
  64. package/dist/skuTable-DOIQ9kiV.mjs +0 -639
@@ -3,13 +3,14 @@ import { useRoute as Ae, useRouter as Ie } from "vue-router";
3
3
  import { ElMessage as P } from "element-plus";
4
4
  import { useI18n as Re } from "vue-i18n";
5
5
  import { useTableHooks as Le, fileApi as K } from "jmash-core";
6
- import { D as g, C as f } from "./index-Da2R0n8O.mjs";
7
- import { a as T } from "./index-DhS4AuWf.mjs";
6
+ import { D as g } from "./index-C61SQFSx.mjs";
7
+ import { C as f } from "./constant-sVd2JbJt.mjs";
8
+ import { a as T } from "./index-xQgC-8Gd.mjs";
8
9
  const $e = { class: "app-container" }, Te = {
9
10
  key: 0,
10
11
  class: "app-container"
11
- }, De = { class: "search-container" }, Ne = ["onClick"], Ue = ["onClick"], Oe = ["onClick"], Ge = /* @__PURE__ */ _e({
12
- __name: "index",
12
+ }, De = { class: "search-container" }, Ne = ["onClick"], Ue = ["onClick"], Oe = ["onClick"], He = /* @__PURE__ */ _e({
13
+ __name: "index copy",
13
14
  setup(ze) {
14
15
  g.goodsCategoryListBizLayDict.useValues(), g.brandListBizDict.useValues(), g.labelListBizDict.useValues(), g.shopInfoBizDict.useValues();
15
16
  const { t: c } = Re(), j = Ae(), B = Ie(), u = U(0), r = {
@@ -679,5 +680,5 @@ const $e = { class: "app-container" }, Te = {
679
680
  }
680
681
  });
681
682
  export {
682
- Ge as default
683
+ He as default
683
684
  };
@@ -0,0 +1,264 @@
1
+ var S = Object.defineProperty;
2
+ var O = (u, s, e) => s in u ? S(u, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : u[s] = e;
3
+ var t = (u, s, e) => O(u, typeof s != "symbol" ? s + "" : s, e);
4
+ import { useUserStore as p, clearEmpty as d, request as E, BizDict as o, BizLayDict as v, EnumDict as h } from "jmash-core";
5
+ import { EntryDict as L } from "jmash-dict";
6
+ import { C as a } from "./constant-sVd2JbJt.mjs";
7
+ import { reactive as y } from "vue";
8
+ import { specValueApi as _, infoApi as f, specInfoApi as D } from "xyvcard-shop";
9
+ import { g, b as w, a as A } from "./index-xQgC-8Gd.mjs";
10
+ import { g as B } from "./index-DbnKa_BJ.mjs";
11
+ function m(u, s, e) {
12
+ return !Array.isArray(u) || u.length === 0 ? [] : u.map((r) => {
13
+ let n = [];
14
+ return Array.isArray(r.children) && r.children.length > 0 && (n = m(r.children, s, e)), {
15
+ value: r[e],
16
+ label: r[s],
17
+ parentId: r.parentId,
18
+ children: n
19
+ };
20
+ });
21
+ }
22
+ class I {
23
+ getKey(s) {
24
+ return {
25
+ branchId: s.branchId
26
+ };
27
+ }
28
+ // 查询列表信息门店管理
29
+ findList(s) {
30
+ const e = p().user.tenant;
31
+ return s && (s.hasIsHq = s.isHq != null), d(s), E({
32
+ url: "/v1/shop/branch/list/" + e,
33
+ method: "get",
34
+ params: s
35
+ });
36
+ }
37
+ // 查询门店管理
38
+ findById(s) {
39
+ const e = p().user.tenant;
40
+ return d(s), E({
41
+ url: "/v1/shop/branch/id/" + e + "/" + s.branchId,
42
+ method: "get"
43
+ });
44
+ }
45
+ }
46
+ const P = new I();
47
+ class c {
48
+ constructor(s, e) {
49
+ t(this, "values", y([]));
50
+ // 查询条件
51
+ t(this, "query");
52
+ this.values.length = 0, this.values.push(...s.value), this.query = e;
53
+ }
54
+ // 根据给定键获取业务数据项的值的方法
55
+ getValue(s) {
56
+ for (const e of this.values)
57
+ if (e.key == s)
58
+ return e.value;
59
+ return "";
60
+ }
61
+ }
62
+ class b extends o {
63
+ // 实现 useValues 方法
64
+ useValues() {
65
+ return new Promise((s, e) => {
66
+ f.findList(this.query).then(({ data: l }) => {
67
+ const r = l.results;
68
+ this.values.length = 0, this.values.push(
69
+ ...r.map(
70
+ (n) => ({
71
+ key: n.shopId,
72
+ value: n.shopName
73
+ })
74
+ )
75
+ ), s(this.values);
76
+ }).catch(e);
77
+ });
78
+ }
79
+ }
80
+ class U extends o {
81
+ // 实现 useValues 方法
82
+ useValues() {
83
+ return new Promise((s, e) => {
84
+ P.findList(this.query).then(({ data: l }) => {
85
+ const r = l.results;
86
+ this.values.length = 0, this.values.push(
87
+ ...r.map(
88
+ (n) => ({
89
+ key: n.branchId,
90
+ value: n.facadeName
91
+ })
92
+ )
93
+ ), s(this.values);
94
+ }).catch(e);
95
+ });
96
+ }
97
+ }
98
+ class T extends v {
99
+ // 实现 useValues 方法
100
+ useValues() {
101
+ return new Promise((s, e) => {
102
+ g.findTreeListApi(this.query).then(({ data: l }) => {
103
+ this.values.length = 0, this.values.push(...m(l.results, "label", "value")), s(this.values);
104
+ }).catch(e);
105
+ });
106
+ }
107
+ }
108
+ class V extends o {
109
+ // 实现 useValues 方法
110
+ useValues() {
111
+ return new Promise((s, e) => {
112
+ D.findList(this.query).then(({ data: l }) => {
113
+ const r = l.results;
114
+ this.values.length = 0, this.values.push(
115
+ ...r.map((n) => ({
116
+ key: n.specId || "",
117
+ value: n.specName || "",
118
+ disabled: n.disabled || !1
119
+ }))
120
+ ), s(this.values);
121
+ }).catch(e);
122
+ });
123
+ }
124
+ }
125
+ class G extends o {
126
+ // 实现 useValues 方法
127
+ useValues() {
128
+ return new Promise((s, e) => {
129
+ _.findList(this.query).then(({ data: l }) => {
130
+ const r = l.results;
131
+ this.values.length = 0, this.values.push(
132
+ ...r.map((n) => ({
133
+ key: n.specValueId || "",
134
+ value: n.valueName || "",
135
+ disabled: n.disabled || !1
136
+ }))
137
+ ), s(this.values);
138
+ }).catch(e);
139
+ });
140
+ }
141
+ }
142
+ class z extends o {
143
+ // 实现 useValues 方法
144
+ useValues() {
145
+ return new Promise((s, e) => {
146
+ B.findList(this.query).then(({ data: l }) => {
147
+ const r = l.results;
148
+ this.values.length = 0, this.values.push(
149
+ ...r.map(
150
+ (n) => ({
151
+ key: n.brandId,
152
+ value: n.brandName
153
+ })
154
+ )
155
+ ), s(this.values);
156
+ }).catch(e);
157
+ });
158
+ }
159
+ }
160
+ class N extends o {
161
+ // 实现 useValues 方法
162
+ useValues() {
163
+ return new Promise((s, e) => {
164
+ w.findList(this.query).then(({ data: l }) => {
165
+ const r = l.results;
166
+ this.values.length = 0, this.values.push(
167
+ ...r.map(
168
+ (n) => ({
169
+ key: n.labelId,
170
+ value: n.labelName
171
+ })
172
+ )
173
+ ), s(this.values);
174
+ }).catch(e);
175
+ });
176
+ }
177
+ }
178
+ class M extends o {
179
+ // 实现 useValues 方法
180
+ useValues() {
181
+ return new Promise((s, e) => {
182
+ A.findList(this.query).then(({ data: l }) => {
183
+ const r = l.results;
184
+ this.values.length = 0, this.values.push(
185
+ ...r.map(
186
+ (n) => ({
187
+ key: n.spuId,
188
+ value: n.spuName
189
+ })
190
+ )
191
+ ), s(this.values);
192
+ }).catch(e);
193
+ });
194
+ }
195
+ }
196
+ class i {
197
+ }
198
+ // 店铺列表
199
+ t(i, "shopInfoBizDict", new b({})), // 门店列表
200
+ t(i, "shopBranchBizDict", new U({})), // 规格列表
201
+ t(i, "specInfoDict", new V({})), // 规格值
202
+ t(i, "specValueDict", new G({})), // 上架下架
203
+ t(i, "shelfDict", new c(a.SHELF_VALUES, {})), // 运费类型
204
+ t(i, "freightTypeEnum", new h(
205
+ a.MODULE_GOODS,
206
+ a.ENUM_FREIGHT_TYPE
207
+ )), // 保障服务
208
+ t(i, "goodsEnsureDict", new L(a.DICT_GOODS_ENSURE)), // 规格类型
209
+ t(i, "specTypeEnum", new h(
210
+ a.MODULE_GOODS,
211
+ a.SPEC_TYPE
212
+ )), // 商品查询枚举
213
+ t(i, "goodsSpuListSortEnum", new h(
214
+ a.MODULE_GOODS,
215
+ a.ENUM_GOODS_SPU_List_SORT
216
+ )), t(i, "goodsSpuListSortDict", new c(
217
+ a.GOODS_SPU_VALUES,
218
+ {}
219
+ )), // 审核状态
220
+ t(i, "approvalStatusEnum", new h(
221
+ a.MODULE_GOODS,
222
+ a.ENUM_APPROVAL_STATUS
223
+ )), // 启用禁用
224
+ t(i, "enableDict", new c(a.ENABLE_VALUES, {})), // 商品分类
225
+ t(i, "goodsCategoryListBizLayDict", new T(
226
+ {}
227
+ )), // 品牌列表
228
+ t(i, "brandListBizDict", new z({})), // 标签列表
229
+ t(i, "labelListBizDict", new N({})), // 商品列表
230
+ t(i, "goodsSpuBizDict", new M({})), // 商品品类
231
+ t(i, "goodsSupClassEnum", new h(
232
+ a.MODULE_GOODS,
233
+ a.GOODS_SUP_CLASS
234
+ )), // 是或否
235
+ t(i, "yesOrNoEnum", new c(a.YES_OR_NO, {})), // 预售类型
236
+ t(i, "presaleTypeEnum", new h(
237
+ a.MODULE_GOODS,
238
+ a.GOODS_PRESALE_TYPE
239
+ )), // 尾款支付期限
240
+ t(i, "balancePaymentTypeEnum", new h(
241
+ a.MODULE_GOODS,
242
+ a.BALANCE_PAYMENT_TYPE
243
+ )), // 发货模式
244
+ t(i, "goodsDeliveryTypeEnum", new h(
245
+ a.MODULE_GOODS,
246
+ a.DELIVERY_TYPE
247
+ )), // 发货模式(现货发售:24小时内、48小时内、72小时内).
248
+ t(i, "goodsDeliverySpotTypeEnum", new h(
249
+ a.MODULE_GOODS,
250
+ a.DELIVERY_SPOT_TYPE
251
+ )), // 核销有效期限.
252
+ t(i, "validityTypeEnum", new h(
253
+ a.MODULE_GOODS,
254
+ a.VALIDITY_TYPE
255
+ )), // 可用门店.
256
+ t(i, "useBranchEnum", new h(
257
+ a.MODULE_GOODS,
258
+ a.USE_BRANCH
259
+ ));
260
+ export {
261
+ i as D,
262
+ G as S,
263
+ V as a
264
+ };