xyvcard-goods 0.0.33 → 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 (116) 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-6rzBkBTh.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-BqlwdGQ1.mjs +4 -0
  7. package/dist/GoodsLogisticsForm.vue_vue_type_script_setup_true_lang-DJREiSkD.mjs +433 -0
  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-BqaN71rS.mjs → GoodsSpecForm-B4MtETRy.mjs} +1 -1
  11. package/dist/GoodsSpecForm.vue_vue_type_script_setup_true_lang-BbVK_KNz.mjs +347 -0
  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-DBTNknBy.mjs → edit-Br1Y569l.mjs} +8 -7
  16. package/dist/{edit-CZwlbL9o.mjs → edit-CET8Fr-t.mjs} +18 -18
  17. package/dist/{edit-1Lv_dvlq.mjs → edit-CagYTFKr.mjs} +1 -1
  18. package/dist/{edit-D2zcGl_U.mjs → edit-iJGrWlSv.mjs} +1 -1
  19. package/dist/{edit.vue_vue_type_script_setup_true_lang-BmOhw098.mjs → edit.vue_vue_type_script_setup_true_lang-D_0YivhL.mjs} +32 -32
  20. package/dist/{el-message-BB2-39XJ.mjs → el-message-Dj6aaz4G.mjs} +490 -373
  21. package/dist/{index-BhUD_X30.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-BpXZNA11.mjs → index-Cg6GUdSP.mjs} +3 -3
  25. package/dist/index-CyxnVWnL.mjs +182 -0
  26. package/dist/{index-DGYGNHfx.mjs → index-D9s8hsVw.mjs} +3 -3
  27. package/dist/{index-BXa-atkT.mjs → index-DbnKa_BJ.mjs} +1 -1
  28. package/dist/{index-DXIGHcIv.mjs → index-DoxTu4kg.mjs} +5 -4
  29. package/dist/{index-Cl4wz2yF.mjs → index-kw0UYOIu.mjs} +3 -3
  30. package/dist/{index-CRfiEzkA.mjs → index-xQgC-8Gd.mjs} +1237 -1141
  31. package/dist/index.mjs +1 -1
  32. package/dist/info-CTElDVo6.mjs +376 -0
  33. package/dist/{info-DfbU-CWk.mjs → info-DpGJgdac.mjs} +37 -36
  34. package/dist/{skuForm-DoIpxDvq.mjs → skuForm-C7w9YIDe.mjs} +40 -39
  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/App.vue.d.ts +2 -0
  40. package/dts/xyvcard-goods/src/api/dict.d.ts +36 -0
  41. package/dts/xyvcard-goods/src/api/goods-base/index.d.ts +11 -0
  42. package/dts/xyvcard-goods/src/api/goods-base/types.d.ts +33 -0
  43. package/dts/xyvcard-goods/src/api/goods-brand-info/index.d.ts +20 -0
  44. package/dts/xyvcard-goods/src/api/goods-brand-info/types.d.ts +73 -0
  45. package/dts/xyvcard-goods/src/api/goods-category/index.d.ts +23 -0
  46. package/dts/xyvcard-goods/src/api/goods-category/types.d.ts +70 -0
  47. package/dts/xyvcard-goods/src/api/goods-ensure/index.d.ts +13 -0
  48. package/dts/xyvcard-goods/src/api/goods-ensure/types.d.ts +13 -0
  49. package/dts/xyvcard-goods/src/api/goods-label-info/index.d.ts +20 -0
  50. package/dts/xyvcard-goods/src/api/goods-label-info/types.d.ts +70 -0
  51. package/dts/xyvcard-goods/src/api/goods-logistics/index.d.ts +8 -0
  52. package/dts/xyvcard-goods/src/api/goods-logistics/types.d.ts +16 -0
  53. package/dts/xyvcard-goods/src/api/goods-sku/types.d.ts +21 -0
  54. package/dts/xyvcard-goods/src/api/goods-spec/index.d.ts +8 -0
  55. package/dts/xyvcard-goods/src/api/goods-spec/types.d.ts +15 -0
  56. package/dts/xyvcard-goods/src/api/goods-spu/index.d.ts +72 -0
  57. package/dts/xyvcard-goods/src/api/goods-spu/types.d.ts +271 -0
  58. package/dts/xyvcard-goods/src/api/goods-stock/index.d.ts +8 -0
  59. package/dts/xyvcard-goods/src/api/goods-stock/types.d.ts +32 -0
  60. package/dts/xyvcard-goods/src/api/index.d.ts +29 -0
  61. package/dts/xyvcard-goods/src/api/shop-branch/index.d.ts +9 -0
  62. package/dts/xyvcard-goods/src/api/shop-branch/types.d.ts +28 -0
  63. package/dts/xyvcard-goods/src/api/types.d.ts +4 -0
  64. package/dts/xyvcard-goods/src/components/ImageUpload.vue.d.ts +36 -0
  65. package/dts/xyvcard-goods/src/constant.d.ts +107 -0
  66. package/dts/xyvcard-goods/src/index.d.ts +12 -0
  67. package/dts/xyvcard-goods/src/lang/goods/en.d.ts +2 -0
  68. package/dts/xyvcard-goods/src/lang/goods/zh-cn.d.ts +173 -0
  69. package/dts/xyvcard-goods/src/lang/index.d.ts +1 -0
  70. package/dts/xyvcard-goods/src/main.d.ts +7 -0
  71. package/dts/xyvcard-goods/src/permission.d.ts +1 -0
  72. package/dts/xyvcard-goods/src/router/index.d.ts +7 -0
  73. package/dts/xyvcard-goods/src/utils/momentPlugin.d.ts +5 -0
  74. package/dts/xyvcard-goods/src/utils/returnBizLay.d.ts +2 -0
  75. package/dts/xyvcard-goods/src/utils/sku.d.ts +19 -0
  76. package/dts/xyvcard-goods/src/views/goods/goods-brand-info/edit.vue.d.ts +22 -0
  77. package/dts/xyvcard-goods/src/views/goods/goods-brand-info/index.vue.d.ts +2 -0
  78. package/dts/xyvcard-goods/src/views/goods/goods-category/edit.vue.d.ts +22 -0
  79. package/dts/xyvcard-goods/src/views/goods/goods-category/index.vue.d.ts +2 -0
  80. package/dts/xyvcard-goods/src/views/goods/goods-combination/edit.vue.d.ts +2 -0
  81. package/dts/xyvcard-goods/src/views/goods/goods-combination/index.vue.d.ts +2 -0
  82. package/dts/xyvcard-goods/src/views/goods/goods-combination/info.vue.d.ts +2 -0
  83. package/dts/xyvcard-goods/src/views/goods/goods-combination/skuForm.vue.d.ts +20 -0
  84. package/dts/xyvcard-goods/src/views/goods/goods-label-info/edit.vue.d.ts +22 -0
  85. package/dts/xyvcard-goods/src/views/goods/goods-label-info/index.vue.d.ts +2 -0
  86. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/BatchSetting.vue.d.ts +35 -0
  87. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/ChannelProfit.vue.d.ts +22 -0
  88. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsBaseForm.vue.d.ts +34 -0
  89. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsLogisticsForm.vue.d.ts +42 -0
  90. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsProfitForm.vue.d.ts +34 -0
  91. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsSpecForm.vue.d.ts +42 -0
  92. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/SingleSku.vue.d.ts +23 -0
  93. package/dts/xyvcard-goods/src/views/goods/goods-spu/edit copy 2.vue.d.ts +2 -0
  94. package/dts/xyvcard-goods/src/views/goods/goods-spu/edit copy.vue.d.ts +2 -0
  95. package/dts/xyvcard-goods/src/views/goods/goods-spu/edit.vue.d.ts +2 -0
  96. package/dts/xyvcard-goods/src/views/goods/goods-spu/index copy.vue.d.ts +2 -0
  97. package/dts/xyvcard-goods/src/views/goods/goods-spu/index.vue.d.ts +2 -0
  98. package/dts/xyvcard-goods/src/views/goods/goods-spu/info.vue.d.ts +2 -0
  99. package/dts/xyvcard-goods/src/views/goods/goods-spu/skuForm.vue.d.ts +42 -0
  100. package/dts/xyvcard-goods/src/views/goods/goods-spu/skuTable.vue.d.ts +53 -0
  101. package/dts/xyvcard-goods/src/views/goods/goods-spu/spec.vue.d.ts +2 -0
  102. package/dts/xyvcard-shop/src/api/shop-branch/index.d.ts +14 -0
  103. package/dts/xyvcard-shop/src/api/shop-branch/types.d.ts +76 -0
  104. package/package.json +6 -5
  105. package/dist/GoodsBaseForm.vue_vue_type_script_setup_true_lang-BmIR352P.mjs +0 -374
  106. package/dist/GoodsLogisticsForm-CHyQ99Mt.mjs +0 -10
  107. package/dist/GoodsSpecForm.vue_vue_type_script_setup_true_lang-BTFKRiNW.mjs +0 -140
  108. package/dist/edit copy 2-DnKLaz3I.mjs +0 -45
  109. package/dist/edit copy-tfwJCdiV.mjs +0 -526
  110. package/dist/edit-Db2EJ9dq.mjs +0 -526
  111. package/dist/index-BHmGYIuc.mjs +0 -24
  112. package/dist/index-Df-F10aZ.mjs +0 -264
  113. package/dist/index-vHQhUQSO.mjs +0 -95
  114. package/dist/info-DDi6GKQH.mjs +0 -365
  115. package/dist/skuForm-DWIoveRP.mjs +0 -475
  116. package/dist/skuTable-BVBtWrf9.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-Df-F10aZ.mjs";
7
- import { a as T } from "./index-CRfiEzkA.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
+ };