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
@@ -0,0 +1,72 @@
1
+ import type { AxiosPromise } from "axios";
2
+ import type { GoodsSpuApi, GoodsSpuReq, GoodsSpuModel, GoodsSpuPage, GoodsSpuList, GoodsSpuKey, GoodsSpuCreateReq, GoodsSpuUpdateReq, GoodsGroupInfoList, GoodsGroupInfoReq, GoodsSpuProfitCreateReq, GoodsSpuProfitList, GoodsSpuProfitKey, GoodsSpuProfitModel } from "./types";
3
+ import type { GoodsBaseImportReq } from "../goods-base/types";
4
+ declare class GoodsSpuApiImpl implements GoodsSpuApi {
5
+ getKey(model: GoodsSpuModel): GoodsSpuKey;
6
+ /**
7
+ * 查询翻页信息商品SPU
8
+ * @param query 可选的查询条件,用于过滤商品SPU的分页结果
9
+ * @returns 返回一个AxiosPromise,解析为商品SPU的分页信息
10
+ */
11
+ findPage(query?: GoodsSpuReq): AxiosPromise<GoodsSpuPage>;
12
+ /**
13
+ * 查询列表信息商品SPU
14
+ * @param query 可选的查询参数,用于指定商品SPU的查询条件
15
+ * @returns 返回一个AxiosPromise,解析后提供商品SPU列表
16
+ */
17
+ findList(query?: GoodsSpuReq): AxiosPromise<GoodsSpuList>;
18
+ findGroupList(query?: GoodsGroupInfoReq): AxiosPromise<GoodsGroupInfoList>;
19
+ /**
20
+ * 根据商品SPU的ID进行查询
21
+ * @param query 商品SPU的查询键,包含需要查询的SPU ID
22
+ * @returns 返回一个AxiosPromise对象,解析为商品SPU模型
23
+ */
24
+ findById(query: GoodsSpuKey): AxiosPromise<GoodsSpuModel>;
25
+ /**
26
+ * 创建实体商品SPU
27
+ * @param data 商品SPU创建所需的数据对象,包含商品的各种信息
28
+ * @returns 返回一个Promise对象,解析为创建的商品SPU模型
29
+ */
30
+ create(data: GoodsSpuCreateReq): AxiosPromise<GoodsSpuModel>;
31
+ createList(data: GoodsSpuCreateReq): AxiosPromise<GoodsSpuModel>;
32
+ /**
33
+ * 修改实体商品SPU
34
+ * @param data 包含要更新的商品SPU信息的对象
35
+ * @returns 返回一个Promise,解析为更新后的商品SPU模型
36
+ */
37
+ update(data: GoodsSpuUpdateReq): AxiosPromise<GoodsSpuModel>;
38
+ updateList(data: GoodsSpuUpdateReq): AxiosPromise<GoodsSpuModel>;
39
+ /**
40
+ * 上架或下架商品
41
+ * @param key 商品的唯一键包含商品的必要标识信息
42
+ * @param enable 一个布尔值指示商品是否应被上架true表示上架false表示下架
43
+ * @returns 返回一个AxiosPromise对象解析为一个布尔值表示操作是否成功
44
+ */
45
+ enable(key: GoodsSpuKey, enable: boolean): AxiosPromise<boolean>;
46
+ /**
47
+ * 删除商品SPU
48
+ * @param query 包含商品SPU关键信息的查询对象,用于指定需要删除的商品SPU
49
+ * @returns 返回一个AxiosPromise对象,包含删除操作的结果信息
50
+ */
51
+ delete(query: GoodsSpuKey): AxiosPromise<GoodsSpuModel>;
52
+ /**
53
+ * 批量删除商品SPU
54
+ * @param keys - 一个包含多个商品SPU键的数组,每个键包含一个SPU的标识信息
55
+ * @returns 返回一个AxiosPromise,解析后提供删除操作的影响行数
56
+ */
57
+ batchDelete(keys: GoodsSpuKey[]): AxiosPromise<number>;
58
+ /**
59
+ * 审核商品SPU
60
+ * @param key 商品SPU的关键信息,包括需要审核的商品SPU的唯一标识符等
61
+ * @param status 商品SPU的审核状态,决定商品SPU的审核结果
62
+ * @returns 返回一个AxiosPromise,包含审核操作的结果,通常是一个数字状态码
63
+ */
64
+ audit(key: GoodsSpuKey, status: string): AxiosPromise<number>;
65
+ downloadTemplate(): AxiosPromise;
66
+ importExcel(data: GoodsBaseImportReq): AxiosPromise<string>;
67
+ createGoodsSpuProfit(data: GoodsSpuProfitCreateReq): AxiosPromise<boolean>;
68
+ findGoodsSpuProfitList(query?: GoodsSpuKey): AxiosPromise<GoodsSpuProfitList>;
69
+ deleteGoodsSpuProfit(query: GoodsSpuProfitKey): AxiosPromise<GoodsSpuProfitModel>;
70
+ }
71
+ declare const goodsSpuApi: GoodsSpuApiImpl;
72
+ export { goodsSpuApi };
@@ -0,0 +1,271 @@
1
+ import type { EntityApi, EntityReq, EntityModel, EntityList, EntityPage, EntityTotal, EntityKey, EntityKeyList, EntityCreateReq, EntityUpdateReq } from "jmash-core";
2
+ import type { GoodsSkuModel } from "../goods-sku/types";
3
+ export interface GoodsSpuApi extends EntityApi {
4
+ }
5
+ export interface GoodsSpuReq extends EntityReq {
6
+ shopId?: string;
7
+ spuCode?: string;
8
+ likeSpuName?: string;
9
+ approvalStatus?: string;
10
+ hasApproval?: boolean;
11
+ shelf?: string;
12
+ hasShelf?: boolean;
13
+ categoryIds?: Array<string>;
14
+ labelIds?: Array<string>;
15
+ brandId?: string;
16
+ goodsType?: string;
17
+ hasGoodsType?: boolean;
18
+ supClass?: string;
19
+ hasSupClass?: boolean;
20
+ presaleType?: string;
21
+ hasPresaleType?: boolean;
22
+ specType?: string;
23
+ hasSpecType?: boolean;
24
+ stock?: number;
25
+ channelId?: string;
26
+ }
27
+ export interface GoodsSpuModel extends EntityModel {
28
+ shopId?: string;
29
+ freightType?: string;
30
+ freightAmount?: number;
31
+ spuCode?: string;
32
+ spuName?: string;
33
+ picUrls?: string;
34
+ sellPoint?: string;
35
+ description?: string;
36
+ shelf?: boolean;
37
+ saleNum?: number;
38
+ specType?: string;
39
+ skuList?: GoodsSkuList;
40
+ ensureIds?: Array<string>;
41
+ categoryIds?: Array<string>;
42
+ brandId?: string;
43
+ labelIds?: Array<string>;
44
+ groupInfos?: Array<GoodsGroupInfoCreateReq>;
45
+ minPrice?: number;
46
+ maxPrice?: number;
47
+ categoryId?: string;
48
+ freightTemplatId?: string;
49
+ orderBy?: number;
50
+ approvalStatus?: string;
51
+ approvalDetail?: string;
52
+ updateTime?: string;
53
+ goodsGoodsSkuModel?: string;
54
+ skuId?: string;
55
+ spuId?: string;
56
+ skuCode?: string;
57
+ picUrl?: string;
58
+ salePrice?: number;
59
+ salePriceV2?: number;
60
+ salePriceV3?: number;
61
+ marketPrice?: number;
62
+ costPrice?: number;
63
+ stock?: number;
64
+ weight?: number;
65
+ volume?: number;
66
+ status?: boolean;
67
+ specValues?: GoodsSkuCreateReq;
68
+ sphfwssflhbbm?: string;
69
+ sphfwmc?: string;
70
+ xmmc?: string;
71
+ goodsStartDate?: string;
72
+ goodsEndDate?: string;
73
+ saleStartDate?: string;
74
+ saleEndDate?: string;
75
+ goodsType?: string;
76
+ ggxh?: string;
77
+ dw?: string;
78
+ generalTaxRate?: string;
79
+ smallTaxRate?: string;
80
+ supClass?: string;
81
+ isBranchPickup?: boolean;
82
+ useBranch?: string;
83
+ presaleType?: string;
84
+ isPointsGift?: boolean;
85
+ isPointsDeduct?: boolean;
86
+ purchaseLimit?: number;
87
+ balancePaymentType?: string;
88
+ balancePaymentDays?: number;
89
+ balancePaymentDate?: string;
90
+ deliveryType?: string;
91
+ deliverySpotDate?: string;
92
+ validityType?: string;
93
+ validityDays?: number;
94
+ validityDate?: string;
95
+ branchIds?: string[];
96
+ profitList?: GoodsSpuProfitList;
97
+ }
98
+ export interface GoodsSpuProfitList extends EntityList {
99
+ results: Array<GoodsSpuProfitModel>;
100
+ }
101
+ export interface GoodsSpuProfitModel {
102
+ tenantId?: string;
103
+ spuId?: string;
104
+ profitId?: string;
105
+ channelId?: string;
106
+ }
107
+ export interface GoodsSpuList extends EntityList {
108
+ results: Array<GoodsSpuModel>;
109
+ }
110
+ export interface GoodsSpuPage extends EntityPage {
111
+ results: Array<GoodsSpuModel>;
112
+ subTotalDto: GoodsSpuModelTotal;
113
+ totalDto: GoodsSpuModelTotal;
114
+ }
115
+ export interface GoodsSpuModelTotal extends EntityTotal {
116
+ totalSize: number;
117
+ }
118
+ export interface GoodsSpuKey extends EntityKey {
119
+ tenant?: string;
120
+ spuId?: string | Array<string>;
121
+ }
122
+ export interface GoodsSpuKeyList extends EntityKeyList {
123
+ tenant?: string;
124
+ spuId?: Array<string>;
125
+ }
126
+ export interface GoodsSpuCreateReq extends EntityCreateReq {
127
+ shopId?: string;
128
+ categoryId?: Array<string>;
129
+ freightType?: string;
130
+ freightAmount?: number;
131
+ spuCode?: string;
132
+ spuName?: string;
133
+ picUrls?: string;
134
+ sellPoint?: string;
135
+ ensureIds?: Array<string>;
136
+ description?: string;
137
+ shelf?: boolean;
138
+ saleNum?: number;
139
+ specType?: string;
140
+ specId?: Array<string>;
141
+ skuSpecValues: Array<GoodsSkuModel>;
142
+ categoryIds?: Array<string>;
143
+ brandId?: string;
144
+ labelIds?: Array<string>;
145
+ groupInfos?: Array<GoodsGroupInfoCreateReq>;
146
+ goodsType?: string;
147
+ note?: string;
148
+ minPrice?: number;
149
+ maxPrice?: number;
150
+ }
151
+ export interface GoodsSpuUpdateReq extends EntityUpdateReq {
152
+ spuId?: string;
153
+ shopId?: string;
154
+ categoryId?: Array<string>;
155
+ freightType?: string;
156
+ freightAmount?: number;
157
+ spuCode?: string;
158
+ spuName?: string;
159
+ picUrls?: string;
160
+ sellPoint?: string;
161
+ description?: string;
162
+ shelf?: boolean;
163
+ saleNum?: number;
164
+ specType?: string;
165
+ ensureIds?: Array<string>;
166
+ specId?: Array<string>;
167
+ skuSpecValues: Array<GoodsSkuModel>;
168
+ categoryIds?: Array<string>;
169
+ brandId?: string;
170
+ labelIds?: Array<string>;
171
+ groupInfos?: Array<GoodsGroupInfoCreateReq>;
172
+ goodsType?: string;
173
+ note?: string;
174
+ minPrice?: number;
175
+ maxPrice?: number;
176
+ }
177
+ export type GoodsSpuFormReq = GoodsSpuCreateReq | GoodsSpuUpdateReq;
178
+ export interface GoodsSpuEnableKey {
179
+ tenant?: string;
180
+ spuId?: string | Array<string>;
181
+ shelf?: boolean;
182
+ }
183
+ export interface GoodsSkuCreateReq {
184
+ picUrl?: string;
185
+ salePrice?: number | null;
186
+ salePriceV2?: number;
187
+ salePriceV3?: number;
188
+ marketPrice?: number | null;
189
+ costPrice?: number | null;
190
+ weight?: number;
191
+ volume?: number;
192
+ stock?: number | null;
193
+ specValues?: Array<SkuSpecValue>;
194
+ skuCode?: string;
195
+ skuId?: string;
196
+ status?: boolean;
197
+ specIds?: string;
198
+ saleNum?: number;
199
+ pointsDeduct?: number | null;
200
+ earnestAmount?: number | string | null;
201
+ depositAmount?: number | string | null;
202
+ }
203
+ export interface SkuSpecValue {
204
+ specId: string;
205
+ specValueId: string;
206
+ }
207
+ export interface GoodsSpuAuditReq {
208
+ tenant?: string;
209
+ spuId?: string | Array<string>;
210
+ status?: string;
211
+ }
212
+ export interface SkuSpecValueModel {
213
+ id?: string;
214
+ name?: string;
215
+ specValueList: Array<SkuSpecValueItem>;
216
+ specValueId?: string;
217
+ }
218
+ export interface SkuSpecValueItem {
219
+ id: string;
220
+ name: string;
221
+ }
222
+ export interface SkuSpecValueModelItem {
223
+ specId?: string;
224
+ specName?: string;
225
+ specValueId?: string;
226
+ specValueName?: string;
227
+ }
228
+ export interface TableContext {
229
+ prop: string;
230
+ label: string;
231
+ }
232
+ export interface GoodsSkuList {
233
+ results: Array<GoodsSkuModel>;
234
+ }
235
+ export interface GoodsGroupInfoCreateReq {
236
+ goodsId?: string;
237
+ skuId?: string;
238
+ spuId?: string;
239
+ specInfo?: string;
240
+ picUrl?: string;
241
+ saleNum?: number;
242
+ salePrice?: number;
243
+ marketPrice?: number;
244
+ specType?: string;
245
+ skuName?: string;
246
+ skuOptions?: {
247
+ key: string;
248
+ value: string;
249
+ }[];
250
+ }
251
+ export interface GoodsGroupInfoList {
252
+ results: Array<GoodsGroupInfoCreateReq>;
253
+ }
254
+ export interface GoodsGroupInfoReq {
255
+ goodsId?: string;
256
+ }
257
+ export interface GoodsSpuProfitCreateReq {
258
+ tenant?: string;
259
+ requestId?: string;
260
+ spuIds?: Array<string>;
261
+ profitId?: string;
262
+ channelId?: string;
263
+ profitFirst?: string;
264
+ profitSecond?: string;
265
+ profitThird?: string;
266
+ }
267
+ export interface GoodsSpuProfitKey {
268
+ tenant?: string;
269
+ spuId?: string;
270
+ profitId?: string;
271
+ }
@@ -0,0 +1,8 @@
1
+ import type { AxiosPromise } from "axios";
2
+ import type { GoodsSpuModel } from "../goods-spu/types";
3
+ import type { GoodsStockUpdateReq } from "./types";
4
+ declare class GoodsStockApiImpl {
5
+ update(data: GoodsStockUpdateReq): AxiosPromise<GoodsSpuModel>;
6
+ }
7
+ declare const goodsStockApi: GoodsStockApiImpl;
8
+ export { goodsStockApi };
@@ -0,0 +1,32 @@
1
+ import type { EntityUpdateReq } from "jmash-core";
2
+ export interface GoodsStockUpdateReq extends EntityUpdateReq {
3
+ spuId: string;
4
+ spu_id: string;
5
+ skuSpecValues: string;
6
+ presaleType: string;
7
+ isPointsGift: boolean;
8
+ isPointsDeduct: boolean;
9
+ purchaseLimit: number;
10
+ }
11
+ export interface GoodsSkuCreateReq {
12
+ picUrl: string;
13
+ salePrice: number;
14
+ salePriceV2: number;
15
+ salePriceV3: number;
16
+ marketPrice: number;
17
+ costPrice: number;
18
+ stock: number;
19
+ weight: number;
20
+ volume: number;
21
+ status: boolean;
22
+ specValues: SpecValue[];
23
+ skuCode: string;
24
+ skuId: string;
25
+ pointsDeduct: number;
26
+ depositAmount: string;
27
+ earnestAmount: string;
28
+ }
29
+ export interface SpecValue {
30
+ specId: string;
31
+ specValueId: string;
32
+ }
@@ -0,0 +1,29 @@
1
+ import { EnumDict } from "jmash-core";
2
+ import { EntryDict } from "jmash-dict";
3
+ import { CustomBizDict, ShopInfoBizDict, SpecInfoBizDict, SpecValueBizDict, GoodsCategoryListBizLayDict, BrandListBizDict, LableListBizDict, GoodsSpuBizDict, ShopBranchBizDict } from "./dict";
4
+ export declare class Dict {
5
+ static readonly shopInfoBizDict: ShopInfoBizDict;
6
+ static readonly shopBranchBizDict: ShopBranchBizDict;
7
+ static readonly specInfoDict: SpecInfoBizDict;
8
+ static readonly specValueDict: SpecValueBizDict;
9
+ static readonly shelfDict: CustomBizDict;
10
+ static readonly freightTypeEnum: EnumDict;
11
+ static readonly goodsEnsureDict: EntryDict;
12
+ static readonly specTypeEnum: EnumDict;
13
+ static readonly goodsSpuListSortEnum: EnumDict;
14
+ static readonly goodsSpuListSortDict: CustomBizDict;
15
+ static readonly approvalStatusEnum: EnumDict;
16
+ static readonly enableDict: CustomBizDict;
17
+ static readonly goodsCategoryListBizLayDict: GoodsCategoryListBizLayDict;
18
+ static readonly brandListBizDict: BrandListBizDict;
19
+ static readonly labelListBizDict: LableListBizDict;
20
+ static readonly goodsSpuBizDict: GoodsSpuBizDict;
21
+ static readonly goodsSupClassEnum: EnumDict;
22
+ static readonly yesOrNoEnum: CustomBizDict;
23
+ static readonly presaleTypeEnum: EnumDict;
24
+ static readonly balancePaymentTypeEnum: EnumDict;
25
+ static readonly goodsDeliveryTypeEnum: EnumDict;
26
+ static readonly goodsDeliverySpotTypeEnum: EnumDict;
27
+ static readonly validityTypeEnum: EnumDict;
28
+ static readonly useBranchEnum: EnumDict;
29
+ }
@@ -0,0 +1,9 @@
1
+ import type { AxiosPromise } from "axios";
2
+ import type { BranchApi, BranchReq, BranchModel, BranchList, BranchKey } from "./types";
3
+ declare class BranchApiImpl implements BranchApi {
4
+ getKey(model: BranchModel): BranchKey;
5
+ findList(query?: BranchReq): AxiosPromise<BranchList>;
6
+ findById(query: BranchKey): AxiosPromise<BranchModel>;
7
+ }
8
+ declare const branchApi: BranchApiImpl;
9
+ export { branchApi };
@@ -0,0 +1,28 @@
1
+ import type { EntityApi, EntityReq, EntityModel, EntityList, EntityKey } from "jmash-core";
2
+ export interface BranchApi extends EntityApi {
3
+ }
4
+ export interface BranchReq extends EntityReq {
5
+ likeFacadeName?: string;
6
+ shopId?: string;
7
+ isHq?: boolean;
8
+ hasIsHq?: boolean;
9
+ }
10
+ export interface BranchModel extends EntityModel {
11
+ branchId?: string;
12
+ facadeName?: string;
13
+ picUrl?: string;
14
+ note?: string;
15
+ contacts?: string;
16
+ mobileEncrypt?: boolean;
17
+ businessStartHour?: string;
18
+ businessEndHour?: string;
19
+ shopId?: string;
20
+ address?: string;
21
+ }
22
+ export interface BranchList extends EntityList {
23
+ results: Array<BranchModel>;
24
+ }
25
+ export interface BranchKey extends EntityKey {
26
+ tenant?: string;
27
+ branchId?: string;
28
+ }
@@ -0,0 +1,4 @@
1
+ import type { Entry } from "jmash-core";
2
+ export interface SpecDisabledEntry extends Entry {
3
+ disabled?: boolean;
4
+ }
@@ -0,0 +1,36 @@
1
+ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
2
+ modelValue: {
3
+ type: StringConstructor;
4
+ default: () => string;
5
+ };
6
+ listType: {
7
+ type: () => "text" | "picture" | "picture-card";
8
+ default: string;
9
+ };
10
+ limit: {
11
+ type: NumberConstructor;
12
+ default: number;
13
+ };
14
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
+ "update:modelValue": (...args: any[]) => void;
16
+ }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
17
+ modelValue: {
18
+ type: StringConstructor;
19
+ default: () => string;
20
+ };
21
+ listType: {
22
+ type: () => "text" | "picture" | "picture-card";
23
+ default: string;
24
+ };
25
+ limit: {
26
+ type: NumberConstructor;
27
+ default: number;
28
+ };
29
+ }>> & Readonly<{
30
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
31
+ }>, {
32
+ listType: "picture" | "text" | "picture-card";
33
+ limit: number;
34
+ modelValue: string;
35
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
36
+ export default _default;
@@ -0,0 +1,107 @@
1
+ export declare class Constant {
2
+ static readonly MODULE_GOODS = "goods";
3
+ static readonly SHELF_VALUES: globalThis.Ref<{
4
+ key: boolean;
5
+ value: string;
6
+ }[], {
7
+ key: boolean;
8
+ value: string;
9
+ }[] | {
10
+ key: boolean;
11
+ value: string;
12
+ }[]>;
13
+ static readonly ENUM_FREIGHT_TYPE = "xyvcard.goods.protobuf.FreightType";
14
+ static readonly FREIGHT_TYPE_VALUES: {
15
+ FREIGHT_FREE: string;
16
+ FREIGHT_FIXED: string;
17
+ FREIGHT_TEMPLATE: string;
18
+ };
19
+ static readonly DICT_GOODS_ENSURE = "goods_ensure";
20
+ static readonly ENUM_GOODS_SPU_List_SORT = "xyvcard.goods.protobuf.GoodsSpuListSort";
21
+ static readonly GOODS_SPU_VALUES: globalThis.Ref<{
22
+ key: string;
23
+ value: string;
24
+ }[], {
25
+ key: string;
26
+ value: string;
27
+ }[] | {
28
+ key: string;
29
+ value: string;
30
+ }[]>;
31
+ static readonly ENUM_APPROVAL_STATUS = "xyvcard.goods.protobuf.ApprovalStatus";
32
+ static readonly APPROVAL_NOT_PASS = "APPROVAL_NOT_PASS";
33
+ static readonly APPROVAL_PASS = "APPROVAL_PASS";
34
+ static readonly APPROVALING = "APPROVALING";
35
+ static readonly ENABLE_VALUES: globalThis.Ref<{
36
+ key: string;
37
+ value: string;
38
+ }[], {
39
+ key: string;
40
+ value: string;
41
+ }[] | {
42
+ key: string;
43
+ value: string;
44
+ }[]>;
45
+ static readonly GOODS_TYPE: {
46
+ NORMAL: string;
47
+ GROUP: string;
48
+ };
49
+ static readonly GOODS_SUP_CLASS = "xyvcard.goods.protobuf.SupClass";
50
+ static readonly GOODS_SUP_CLASS_VALUES: {
51
+ GOODS_TYPE_REAL: string;
52
+ GOODS_TYPE_VIRTUAL: string;
53
+ GOODS_TYPE_LIFE: string;
54
+ };
55
+ static readonly YES_OR_NO: globalThis.Ref<{
56
+ key: boolean;
57
+ value: string;
58
+ }[], {
59
+ key: boolean;
60
+ value: string;
61
+ }[] | {
62
+ key: boolean;
63
+ value: string;
64
+ }[]>;
65
+ static readonly TAB_ENUM: import("vue").Reactive<{
66
+ key: string;
67
+ value: string;
68
+ }[]>;
69
+ static readonly GOODS_PRESALE_TYPE = "xyvcard.goods.protobuf.PresaleType";
70
+ static readonly GOODS_PRESALE_TYPE_VALUES: {
71
+ NONE: string;
72
+ DEPOSIT: string;
73
+ DEPOSIT_RETURN: string;
74
+ };
75
+ static readonly BALANCE_PAYMENT_TYPE = "xyvcard.goods.protobuf.BalancePaymentType";
76
+ static readonly BALANCE_PAYMENT_TYPE_VALUES: {
77
+ DYNAMIC_DATE: string;
78
+ FIXED_DATE: string;
79
+ };
80
+ static readonly SPEC_TYPE = "xyvcard.goods.protobuf.SpecType";
81
+ static readonly SPEC_TYPE_VALUES: {
82
+ UNIFIED_SPEC: string;
83
+ MULTI_SPEC: string;
84
+ };
85
+ static readonly DELIVERY_TYPE = "xyvcard.goods.protobuf.DeliveryType";
86
+ static readonly DELIVERY_TYPE_VALUES: {
87
+ SPOT_ONLY: string;
88
+ PRESALE: string;
89
+ };
90
+ static readonly DELIVERY_SPOT_TYPE = "xyvcard.goods.protobuf.DeliverySpotType";
91
+ static readonly DELIVERY_SPOT_TYPE_VALUES: {
92
+ SPOT_24: string;
93
+ SPOT_48: string;
94
+ SPOT_72: string;
95
+ };
96
+ static readonly VALIDITY_TYPE = "xyvcard.goods.protobuf.ValidityType";
97
+ static readonly VALIDITY_TYPE_VALUES: {
98
+ DYNAMIC_TIME: string;
99
+ FIXED_TIME: string;
100
+ UNLIMITED_TIME: string;
101
+ };
102
+ static readonly USE_BRANCH = "xyvcard.goods.protobuf.UseBranch";
103
+ static readonly USE_BRANCH_VALUES: {
104
+ USE_BRANCH_ALL: string;
105
+ USE_BRANCH_PART: string;
106
+ };
107
+ }
@@ -0,0 +1,12 @@
1
+ import type { App } from "vue";
2
+ import "./styles/index.scss";
3
+ export { goodsSpuApi } from "./api/goods-spu/index";
4
+ export type { GoodsSpuReq, GoodsSpuModel, GoodsSpuPage, } from "./api/goods-spu/types";
5
+ export { goodsCategoryApi } from "./api/goods-category/index";
6
+ export type { GoodsCategoryReq, GoodsCategoryModel, } from "./api/goods-category/types";
7
+ export { goodsLabelInfoApi } from "./api/goods-label-info/index";
8
+ export type { GoodsLabelInfoReq, GoodsLabelInfoModel, } from "./api/goods-label-info/types";
9
+ declare const goods: {
10
+ install(app: App): void;
11
+ };
12
+ export default goods;
@@ -0,0 +1,2 @@
1
+ declare const _default: {};
2
+ export default _default;