xyvcard-goods 0.0.3 → 0.0.4

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 (24) hide show
  1. package/dist/{approveFailIndex-C2BhoVKC.mjs → approveFailIndex-F3GtuNeX.mjs} +1 -1
  2. package/dist/{approveFailIndex.vue_vue_type_script_setup_true_lang-CSBlBFQo.mjs → approveFailIndex.vue_vue_type_script_setup_true_lang-8ykH4NF1.mjs} +1 -1
  3. package/dist/{auditIndex-BjjiwYrm.mjs → auditIndex-BXUxPTBo.mjs} +1 -1
  4. package/dist/{auditIndex.vue_vue_type_script_setup_true_lang-UrMEjXo-.mjs → auditIndex.vue_vue_type_script_setup_true_lang-2LQeWrbt.mjs} +9 -9
  5. package/dist/edit-B_KK1orD.mjs +2976 -0
  6. package/dist/{el-message-BBB-S2MS.mjs → el-message-D15RmjW3.mjs} +454 -472
  7. package/dist/index-D5_GsXR7.mjs +142 -0
  8. package/dist/{index-vE-TE0cx.mjs → index-PA3Mh5x6.mjs} +14 -14
  9. package/dist/index.mjs +2 -2
  10. package/dist/{info-Bm6Ifv7W.mjs → info-8-HEtfzY.mjs} +2 -2
  11. package/dist/{saleIndex-C9AD4DIj.mjs → saleIndex-vZV2Dq0y.mjs} +1 -1
  12. package/dist/{saleIndex.vue_vue_type_script_setup_true_lang-qDsRE8JX.mjs → saleIndex.vue_vue_type_script_setup_true_lang-BpHE0pi0.mjs} +9 -9
  13. package/dist/{shelfIndex-CyAp6rf5.mjs → shelfIndex-Ciis-I11.mjs} +1 -1
  14. package/dist/{shelfIndex.vue_vue_type_script_setup_true_lang-D3xUiFR2.mjs → shelfIndex.vue_vue_type_script_setup_true_lang-GCWPCxCX.mjs} +9 -9
  15. package/dist/{skuForm-Ctu0Vbym.mjs → skuForm-DaxgHBOV.mjs} +40 -37
  16. package/dist/{skuTable-BbTTCq2m.mjs → skuTable-C4mHW-e9.mjs} +138 -129
  17. package/dist/style.css +1 -1
  18. package/dts/main.d.ts +2 -0
  19. package/dts/views/goods/goods-spu/approvedIndex.vue.d.ts +2 -0
  20. package/dts/views/goods/goods-spu/sku-form.vue.d.ts +31 -0
  21. package/dts/views/goods/goods-spu/sku-table.vue.d.ts +14 -0
  22. package/package.json +4 -2
  23. package/dist/edit-B1_IbaHc.mjs +0 -13974
  24. package/dist/index-CZD7OAWo.mjs +0 -213
@@ -1,213 +0,0 @@
1
- var d = Object.defineProperty;
2
- var _ = (o, e, s) => e in o ? d(o, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : o[e] = s;
3
- var t = (o, e, s) => _(o, typeof e != "symbol" ? e + "" : e, s);
4
- import { useUserStore as n, clearEmpty as p, request as h, BizDict as S, BizLayDict as E, EnumDict as l } from "jmash-core";
5
- import { EntryDict as v } from "jmash-dict";
6
- import { ref as g, reactive as m } from "vue";
7
- class a {
8
- }
9
- // 模块
10
- t(a, "MODULE_GOODS", "goods"), // 商品规格类型
11
- t(a, "specType", {
12
- UNIFIED_SPEC: "UNIFIED_SPEC",
13
- //统一规格
14
- MULTI_SPEC: "MULTI_SPEC"
15
- //多规格
16
- }), // 启用禁用
17
- t(a, "SHELF_VALUES", g([
18
- { key: "true", value: "上架" },
19
- { key: "false", value: "下架" }
20
- ])), // 运费类型
21
- t(a, "ENUM_FREIGHT_TYPE", "xyvcard.goods.protobuf.FreightType"), // 保障服务
22
- t(a, "DICT_GOODS_ENSURE", "goods_ensure"), // 规格类型
23
- t(a, "ENUM_SPEC_TYPE", "xyvcard.goods.protobuf.SpecType"), // 商品查询枚举
24
- t(a, "ENUM_GOODS_SPU_List_SORT", "xyvcard.goods.protobuf.GoodsSpuListSort"), // 审核状态
25
- t(a, "ENUM_APPROVAL_STATUS", "xyvcard.goods.protobuf.ApprovalStatus"), // 审核状态常量
26
- t(a, "approval_not_pass", "APPROVAL_NOT_PASS"), t(a, "approval_pass", "APPROVAL_PASS"), t(a, "approvaling", "APPROVALING");
27
- class I {
28
- getKey(e) {
29
- return {
30
- shopId: e.shopId
31
- };
32
- }
33
- // 查询列表信息商品SPU
34
- findList(e) {
35
- const s = n().user.tenant;
36
- return p(e), h({
37
- url: "/v1/shop/info/list/" + s,
38
- method: "get",
39
- params: e
40
- });
41
- }
42
- }
43
- const f = new I();
44
- class y {
45
- getKey(e) {
46
- return {
47
- categoryId: e.categoryId
48
- };
49
- }
50
- /**
51
- * 查询商品树列表的API接口
52
- *
53
- * @param query 可选的查询参数,符合GoodsCategoryReq接口的实例
54
- * @returns 返回一个AxiosPromise,包含GoodsCategoryTree类型的响应数据
55
- */
56
- findTreeListApi(e) {
57
- const s = n().user.tenant;
58
- return p(e), h({
59
- url: "/v1/emall/goods_category/treelist/" + s,
60
- method: "get",
61
- params: e
62
- });
63
- }
64
- }
65
- const O = new y();
66
- class L {
67
- getKey(e) {
68
- return {
69
- specId: e.specId
70
- };
71
- }
72
- // 查询列表信息规格管理
73
- findList(e) {
74
- const s = n().user.tenant;
75
- return p(e), h({
76
- url: "/v1/shop/spec_info/list/" + s,
77
- method: "get",
78
- params: e
79
- });
80
- }
81
- }
82
- const P = new L();
83
- class A {
84
- getKey(e) {
85
- return {
86
- specValueId: e.specValueId
87
- };
88
- }
89
- // 查询列表信息规格值
90
- findList(e) {
91
- const s = n().user.tenant;
92
- return p(e), h({
93
- url: "/v1/shop/spec_value/list/" + s,
94
- method: "get",
95
- params: e
96
- });
97
- }
98
- }
99
- const U = new A();
100
- class D {
101
- constructor(e, s) {
102
- t(this, "values", m([]));
103
- // 查询条件
104
- t(this, "query");
105
- this.values.length = 0, this.values.push(...e.value), this.query = s;
106
- }
107
- // 根据给定键获取业务数据项的值的方法
108
- getValue(e) {
109
- for (const s of this.values)
110
- if (s.key == e)
111
- return s.value;
112
- return "";
113
- }
114
- }
115
- class T extends S {
116
- // 实现 useValues 方法
117
- useValues() {
118
- return new Promise((e, s) => {
119
- f.findList(this.query).then(({ data: i }) => {
120
- console.log(i);
121
- const c = i.results;
122
- this.values.length = 0, this.values.push(
123
- ...c.map(
124
- (u) => ({
125
- key: u.shopId,
126
- value: u.shopName
127
- })
128
- )
129
- ), e(this.values);
130
- }).catch(s);
131
- });
132
- }
133
- }
134
- class V extends E {
135
- // 实现 useValues 方法
136
- useValues() {
137
- return new Promise((e, s) => {
138
- O.findTreeListApi().then(({ data: i }) => {
139
- this.values.length = 0, this.values.push(...i.results), e(this.values);
140
- }).catch(s);
141
- });
142
- }
143
- }
144
- class w extends S {
145
- // 实现 useValues 方法
146
- useValues() {
147
- return new Promise((e, s) => {
148
- P.findList(this.query).then(({ data: i }) => {
149
- console.log(i);
150
- const c = i.results;
151
- this.values.length = 0, this.values.push(
152
- ...c.map(
153
- (u) => ({
154
- key: u.specId,
155
- value: u.specName,
156
- disabled: u.disabled
157
- })
158
- )
159
- ), e(this.values);
160
- }).catch(s);
161
- });
162
- }
163
- }
164
- class N extends S {
165
- // 实现 useValues 方法
166
- useValues() {
167
- return new Promise((e, s) => {
168
- U.findList(this.query).then(({ data: i }) => {
169
- console.log(i);
170
- const c = i.results;
171
- this.values.length = 0, this.values.push(
172
- ...c.map(
173
- (u) => ({
174
- key: u.specValueId,
175
- value: u.valueName
176
- })
177
- )
178
- ), e(this.values);
179
- }).catch(s);
180
- });
181
- }
182
- }
183
- class r {
184
- }
185
- // 店铺列表
186
- t(r, "shopInfoBizDict", new T({})), // 商品分类
187
- t(r, "goodsCategoryDict", new V({})), // 规格列表
188
- t(r, "specInfoDict", new w({})), // 规格值
189
- t(r, "specValueDict", new N({})), // 上架下架
190
- t(r, "shelfDict", new D(a.SHELF_VALUES, {})), // 运费类型
191
- t(r, "freightTypeEnum", new l(
192
- a.MODULE_GOODS,
193
- a.ENUM_FREIGHT_TYPE
194
- )), // 保障服务
195
- t(r, "goodsEnsureDict", new v(a.DICT_GOODS_ENSURE)), // 规格类型
196
- t(r, "specTypeEnum", new l(
197
- a.MODULE_GOODS,
198
- a.ENUM_SPEC_TYPE
199
- )), // 商品查询枚举
200
- t(r, "goodsSpuListSortEnum", new l(
201
- a.MODULE_GOODS,
202
- a.ENUM_GOODS_SPU_List_SORT
203
- )), // 审核状态
204
- t(r, "approvalStatusEnum", new l(
205
- a.MODULE_GOODS,
206
- a.ENUM_APPROVAL_STATUS
207
- ));
208
- export {
209
- a as C,
210
- r as D,
211
- N as S,
212
- w as a
213
- };