xyvcard-goods 0.0.32 → 0.0.34
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.
- package/README.md +51 -51
- package/dist/GoodsBaseForm-BSvXc_XA.mjs +4 -0
- package/dist/GoodsBaseForm.vue_vue_type_script_setup_true_lang-rsmqHXbJ.mjs +381 -0
- package/dist/GoodsLogisticsForm-1Bbd4Z52.mjs +4 -0
- package/dist/GoodsLogisticsForm.vue_vue_type_script_setup_true_lang-PSnPNbmT.mjs +434 -0
- package/dist/GoodsSpecForm-Ddo1IZLZ.mjs +4 -0
- package/dist/GoodsSpecForm.vue_vue_type_script_setup_true_lang-CdWIufm4.mjs +338 -0
- package/dist/{ImageUpload-BMw9FVJL.mjs → ImageUpload-Bf2jhRs5.mjs} +1 -1
- package/dist/edit copy 2-Yzf_M31V.mjs +59 -0
- package/dist/edit copy-CCnzlrgL.mjs +526 -0
- package/dist/{edit-DvO1wYIL.mjs → edit-BgtwinSN.mjs} +1 -1
- package/dist/{edit-BlQj1xVR.mjs → edit-Dke5sWct.mjs} +4 -4
- package/dist/{edit-CuGiM5xu.mjs → edit-e5-aXV6K.mjs} +15 -15
- package/dist/{edit-Bh5jT6eo.mjs → edit-lfXK_dUp.mjs} +4 -4
- package/dist/{edit-CyhVo22f.mjs → edit-pUKONjxH.mjs} +7 -7
- package/dist/{edit.vue_vue_type_script_setup_true_lang-Bx32ZXck.mjs → edit.vue_vue_type_script_setup_true_lang-BtGT564r.mjs} +33 -33
- package/dist/el-message-BB2-39XJ.mjs +1221 -0
- package/dist/{index-BrBipAPq.mjs → index-BSzOTWcG.mjs} +1 -1
- package/dist/{index-CVM7nBhM.mjs → index-BpKiAhvt.mjs} +3 -3
- package/dist/{index-Dk9-_0Ir.mjs → index-ChQ-ZxD1.mjs} +2 -2
- package/dist/{index-Dz9NSJh1.mjs → index-CkJncbVf.mjs} +3 -3
- package/dist/{index-DzUSeIbT.mjs → index-CkMWas2b.mjs} +3 -3
- package/dist/index-Da2R0n8O.mjs +374 -0
- package/dist/{index-BlZupHNB.mjs → index-DhS4AuWf.mjs} +1593 -1554
- package/dist/{index-8JQB4NmH.mjs → index-DyLLV1NK.mjs} +281 -250
- package/dist/index-vHQhUQSO.mjs +95 -0
- package/dist/index.mjs +1 -1
- package/dist/{info-CLt9Ea38.mjs → info-DOKoSi7a.mjs} +34 -34
- package/dist/{info-NFU_3fNY.mjs → info-De_pBN6A.mjs} +19 -19
- package/dist/{skuForm-Dr6dKGa4.mjs → skuForm-DVGkw6rD.mjs} +71 -86
- package/dist/{skuForm-8WZm2j5V.mjs → skuForm-YXHrhyPI.mjs} +111 -110
- package/dist/{skuTable-BwIc5hr5.mjs → skuTable-DOIQ9kiV.mjs} +71 -71
- package/dist/style.css +1 -1
- package/dts/api/goods-base/index.d.ts +11 -0
- package/dts/api/goods-base/types.d.ts +33 -0
- package/dts/api/goods-logistics/index.d.ts +8 -0
- package/dts/api/goods-logistics/types.d.ts +16 -0
- package/dts/api/goods-spec/index.d.ts +8 -0
- package/dts/api/goods-spec/types.d.ts +15 -0
- package/dts/api/goods-spu/index.d.ts +3 -0
- package/dts/api/goods-stock/index.d.ts +8 -0
- package/dts/api/goods-stock/types.d.ts +32 -0
- package/dts/api/index.d.ts +3 -0
- package/dts/constant.d.ts +26 -0
- package/dts/lang/goods/zh-cn.d.ts +12 -0
- package/dts/views/goods/goods-spu/components/GoodsBaseForm.vue.d.ts +7 -0
- package/dts/views/goods/goods-spu/components/GoodsLogisticsForm.vue.d.ts +2 -0
- package/dts/views/goods/goods-spu/components/GoodsSpecForm.vue.d.ts +7 -0
- package/dts/views/goods/goods-spu/edit copy 2.vue.d.ts +2 -0
- package/dts/views/goods/goods-spu/edit copy.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/App.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/api/dict.d.ts +35 -0
- package/dts/xyvcard-goods/src/api/goods-base/index.d.ts +11 -0
- package/dts/xyvcard-goods/src/api/goods-base/types.d.ts +33 -0
- package/dts/xyvcard-goods/src/api/goods-brand-info/index.d.ts +20 -0
- package/dts/xyvcard-goods/src/api/goods-brand-info/types.d.ts +73 -0
- package/dts/xyvcard-goods/src/api/goods-category/index.d.ts +23 -0
- package/dts/xyvcard-goods/src/api/goods-category/types.d.ts +70 -0
- package/dts/xyvcard-goods/src/api/goods-ensure/index.d.ts +13 -0
- package/dts/xyvcard-goods/src/api/goods-ensure/types.d.ts +13 -0
- package/dts/xyvcard-goods/src/api/goods-label-info/index.d.ts +20 -0
- package/dts/xyvcard-goods/src/api/goods-label-info/types.d.ts +70 -0
- package/dts/xyvcard-goods/src/api/goods-logistics/index.d.ts +8 -0
- package/dts/xyvcard-goods/src/api/goods-logistics/types.d.ts +16 -0
- package/dts/xyvcard-goods/src/api/goods-sku/types.d.ts +18 -0
- package/dts/xyvcard-goods/src/api/goods-spec/index.d.ts +8 -0
- package/dts/xyvcard-goods/src/api/goods-spec/types.d.ts +15 -0
- package/dts/xyvcard-goods/src/api/goods-spu/index.d.ts +69 -0
- package/dts/xyvcard-goods/src/api/goods-spu/types.d.ts +245 -0
- package/dts/xyvcard-goods/src/api/goods-stock/index.d.ts +8 -0
- package/dts/xyvcard-goods/src/api/goods-stock/types.d.ts +32 -0
- package/dts/xyvcard-goods/src/api/index.d.ts +29 -0
- package/dts/xyvcard-goods/src/api/shop-branch/index.d.ts +9 -0
- package/dts/xyvcard-goods/src/api/shop-branch/types.d.ts +28 -0
- package/dts/xyvcard-goods/src/components/ImageUpload.vue.d.ts +36 -0
- package/dts/xyvcard-goods/src/constant.d.ts +107 -0
- package/dts/xyvcard-goods/src/index.d.ts +12 -0
- package/dts/xyvcard-goods/src/lang/goods/en.d.ts +2 -0
- package/dts/xyvcard-goods/src/lang/goods/zh-cn.d.ts +141 -0
- package/dts/xyvcard-goods/src/lang/index.d.ts +1 -0
- package/dts/xyvcard-goods/src/main.d.ts +7 -0
- package/dts/xyvcard-goods/src/permission.d.ts +1 -0
- package/dts/xyvcard-goods/src/router/index.d.ts +6 -0
- package/dts/xyvcard-goods/src/utils/momentPlugin.d.ts +5 -0
- package/dts/xyvcard-goods/src/utils/returnBizLay.d.ts +2 -0
- package/dts/xyvcard-goods/src/utils/sku.d.ts +19 -0
- package/dts/xyvcard-goods/src/views/goods/goods-brand-info/edit.vue.d.ts +22 -0
- package/dts/xyvcard-goods/src/views/goods/goods-brand-info/index.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-category/edit.vue.d.ts +22 -0
- package/dts/xyvcard-goods/src/views/goods/goods-category/index.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-combination/edit.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-combination/index.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-combination/info.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-combination/skuForm.vue.d.ts +20 -0
- package/dts/xyvcard-goods/src/views/goods/goods-label-info/edit.vue.d.ts +22 -0
- package/dts/xyvcard-goods/src/views/goods/goods-label-info/index.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsBaseForm.vue.d.ts +34 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsLogisticsForm.vue.d.ts +42 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsSpecForm.vue.d.ts +42 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/edit copy 2.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/edit copy.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/edit.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/index.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/info.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/skuForm.vue.d.ts +29 -0
- package/dts/xyvcard-shop/src/api/shop-branch/index.d.ts +14 -0
- package/dts/xyvcard-shop/src/api/shop-branch/types.d.ts +76 -0
- package/package.json +63 -63
- package/dist/index-B7_M6fAN.mjs +0 -228
- package/dts/views/goods/goods-combination/goodsList.vue.d.ts +0 -14
- package/dts/views/goods/goods-spu/goodsList.vue.d.ts +0 -23
- /package/dts/{views/goods/goods-combination → xyvcard-goods/src/views/goods/goods-spu}/skuTable.vue.d.ts +0 -0
|
@@ -0,0 +1,245 @@
|
|
|
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
|
+
}
|
|
19
|
+
export interface GoodsSpuModel extends EntityModel {
|
|
20
|
+
shopId?: string;
|
|
21
|
+
freightType?: string;
|
|
22
|
+
freightAmount?: number;
|
|
23
|
+
spuCode?: string;
|
|
24
|
+
spuName?: string;
|
|
25
|
+
picUrls?: string;
|
|
26
|
+
sellPoint?: string;
|
|
27
|
+
description?: string;
|
|
28
|
+
shelf?: boolean;
|
|
29
|
+
saleNum?: number;
|
|
30
|
+
specType?: string;
|
|
31
|
+
skuList?: GoodsSkuList;
|
|
32
|
+
ensureIds?: Array<string>;
|
|
33
|
+
categoryIds?: Array<string>;
|
|
34
|
+
brandId?: string;
|
|
35
|
+
labelIds?: Array<string>;
|
|
36
|
+
groupInfos?: Array<GoodsGroupInfoCreateReq>;
|
|
37
|
+
minPrice?: number;
|
|
38
|
+
maxPrice?: number;
|
|
39
|
+
categoryId?: string;
|
|
40
|
+
freightTemplatId?: string;
|
|
41
|
+
orderBy?: number;
|
|
42
|
+
approvalStatus?: string;
|
|
43
|
+
approvalDetail?: string;
|
|
44
|
+
updateTime?: string;
|
|
45
|
+
goodsGoodsSkuModel?: string;
|
|
46
|
+
skuId?: string;
|
|
47
|
+
spuId?: string;
|
|
48
|
+
skuCode?: string;
|
|
49
|
+
picUrl?: string;
|
|
50
|
+
salePrice?: number;
|
|
51
|
+
salePriceV2?: number;
|
|
52
|
+
salePriceV3?: number;
|
|
53
|
+
marketPrice?: number;
|
|
54
|
+
costPrice?: number;
|
|
55
|
+
stock?: number;
|
|
56
|
+
weight?: number;
|
|
57
|
+
volume?: number;
|
|
58
|
+
status?: boolean;
|
|
59
|
+
specValues?: GoodsSkuCreateReq;
|
|
60
|
+
sphfwssflhbbm?: string;
|
|
61
|
+
sphfwmc?: string;
|
|
62
|
+
xmmc?: string;
|
|
63
|
+
goodsStartDate?: string;
|
|
64
|
+
goodsEndDate?: string;
|
|
65
|
+
saleStartDate?: string;
|
|
66
|
+
saleEndDate?: string;
|
|
67
|
+
goodsType?: string;
|
|
68
|
+
ggxh?: string;
|
|
69
|
+
dw?: string;
|
|
70
|
+
generalTaxRate?: string;
|
|
71
|
+
smallTaxRate?: string;
|
|
72
|
+
supClass?: string;
|
|
73
|
+
isBranchPickup?: boolean;
|
|
74
|
+
useBranch?: string;
|
|
75
|
+
presaleType?: string;
|
|
76
|
+
isPointsGift?: boolean;
|
|
77
|
+
isPointsDeduct?: boolean;
|
|
78
|
+
purchaseLimit?: number;
|
|
79
|
+
balancePaymentType?: string;
|
|
80
|
+
balancePaymentDays?: number;
|
|
81
|
+
balancePaymentDate?: string;
|
|
82
|
+
deliveryType?: string;
|
|
83
|
+
deliverySpotDate?: string;
|
|
84
|
+
validityType?: string;
|
|
85
|
+
validityDays?: number;
|
|
86
|
+
validityDate?: string;
|
|
87
|
+
branchIds?: string[];
|
|
88
|
+
profitList?: GoodsSpuProfitList[];
|
|
89
|
+
}
|
|
90
|
+
export interface GoodsSpuProfitList extends EntityList {
|
|
91
|
+
results: Array<GoodsSpuProfitModel>;
|
|
92
|
+
}
|
|
93
|
+
export interface GoodsSpuProfitModel {
|
|
94
|
+
tenantId: string;
|
|
95
|
+
spuId: string;
|
|
96
|
+
profitId: string;
|
|
97
|
+
channelId: string;
|
|
98
|
+
}
|
|
99
|
+
export interface GoodsSpuList extends EntityList {
|
|
100
|
+
results: Array<GoodsSpuModel>;
|
|
101
|
+
}
|
|
102
|
+
export interface GoodsSpuPage extends EntityPage {
|
|
103
|
+
results: Array<GoodsSpuModel>;
|
|
104
|
+
subTotalDto: GoodsSpuModelTotal;
|
|
105
|
+
totalDto: GoodsSpuModelTotal;
|
|
106
|
+
}
|
|
107
|
+
export interface GoodsSpuModelTotal extends EntityTotal {
|
|
108
|
+
totalSize: number;
|
|
109
|
+
}
|
|
110
|
+
export interface GoodsSpuKey extends EntityKey {
|
|
111
|
+
tenant?: string;
|
|
112
|
+
spuId?: string | Array<string>;
|
|
113
|
+
}
|
|
114
|
+
export interface GoodsSpuKeyList extends EntityKeyList {
|
|
115
|
+
tenant?: string;
|
|
116
|
+
spuId?: Array<string>;
|
|
117
|
+
}
|
|
118
|
+
export interface GoodsSpuCreateReq extends EntityCreateReq {
|
|
119
|
+
shopId?: string;
|
|
120
|
+
categoryId?: Array<string>;
|
|
121
|
+
freightType?: string;
|
|
122
|
+
freightAmount?: number;
|
|
123
|
+
spuCode?: string;
|
|
124
|
+
spuName?: string;
|
|
125
|
+
picUrls?: string;
|
|
126
|
+
sellPoint?: string;
|
|
127
|
+
ensureIds?: Array<string>;
|
|
128
|
+
description?: string;
|
|
129
|
+
shelf?: boolean;
|
|
130
|
+
saleNum?: number;
|
|
131
|
+
specType?: string;
|
|
132
|
+
specId?: Array<string>;
|
|
133
|
+
skuSpecValues: Array<GoodsSkuModel>;
|
|
134
|
+
categoryIds?: Array<string>;
|
|
135
|
+
brandId?: string;
|
|
136
|
+
labelIds?: Array<string>;
|
|
137
|
+
groupInfos?: Array<GoodsGroupInfoCreateReq>;
|
|
138
|
+
goodsType?: string;
|
|
139
|
+
note?: string;
|
|
140
|
+
minPrice?: number;
|
|
141
|
+
maxPrice?: number;
|
|
142
|
+
}
|
|
143
|
+
export interface GoodsSpuUpdateReq extends EntityUpdateReq {
|
|
144
|
+
spuId?: string;
|
|
145
|
+
shopId?: string;
|
|
146
|
+
categoryId?: Array<string>;
|
|
147
|
+
freightType?: string;
|
|
148
|
+
freightAmount?: number;
|
|
149
|
+
spuCode?: string;
|
|
150
|
+
spuName?: string;
|
|
151
|
+
picUrls?: string;
|
|
152
|
+
sellPoint?: string;
|
|
153
|
+
description?: string;
|
|
154
|
+
shelf?: boolean;
|
|
155
|
+
saleNum?: number;
|
|
156
|
+
specType?: string;
|
|
157
|
+
ensureIds?: Array<string>;
|
|
158
|
+
specId?: Array<string>;
|
|
159
|
+
skuSpecValues: Array<GoodsSkuModel>;
|
|
160
|
+
categoryIds?: Array<string>;
|
|
161
|
+
brandId?: string;
|
|
162
|
+
labelIds?: Array<string>;
|
|
163
|
+
groupInfos?: Array<GoodsGroupInfoCreateReq>;
|
|
164
|
+
goodsType?: string;
|
|
165
|
+
note?: string;
|
|
166
|
+
minPrice?: number;
|
|
167
|
+
maxPrice?: number;
|
|
168
|
+
}
|
|
169
|
+
export type GoodsSpuFormReq = GoodsSpuCreateReq | GoodsSpuUpdateReq;
|
|
170
|
+
export interface GoodsSpuEnableKey {
|
|
171
|
+
tenant?: string;
|
|
172
|
+
spuId?: string | Array<string>;
|
|
173
|
+
shelf?: boolean;
|
|
174
|
+
}
|
|
175
|
+
export interface GoodsSkuCreateReq {
|
|
176
|
+
picUrl?: string;
|
|
177
|
+
salePrice?: number;
|
|
178
|
+
salePriceV2?: number;
|
|
179
|
+
salePriceV3?: number;
|
|
180
|
+
marketPrice?: number;
|
|
181
|
+
costPrice?: number;
|
|
182
|
+
weight?: number;
|
|
183
|
+
volume?: number;
|
|
184
|
+
stock?: number;
|
|
185
|
+
specValues?: Array<SkuSpecValue>;
|
|
186
|
+
skuCode?: string;
|
|
187
|
+
skuId?: string;
|
|
188
|
+
status?: boolean;
|
|
189
|
+
specIds?: string;
|
|
190
|
+
saleNum?: number;
|
|
191
|
+
}
|
|
192
|
+
export interface SkuSpecValue {
|
|
193
|
+
specId: string;
|
|
194
|
+
specValueId: string;
|
|
195
|
+
}
|
|
196
|
+
export interface GoodsSpuAuditReq {
|
|
197
|
+
tenant?: string;
|
|
198
|
+
spuId?: string | Array<string>;
|
|
199
|
+
status?: string;
|
|
200
|
+
}
|
|
201
|
+
export interface SkuSpecValueModel {
|
|
202
|
+
id?: string;
|
|
203
|
+
name?: string;
|
|
204
|
+
specValueList: Array<SkuSpecValueItem>;
|
|
205
|
+
specValueId?: string;
|
|
206
|
+
}
|
|
207
|
+
export interface SkuSpecValueItem {
|
|
208
|
+
id: string;
|
|
209
|
+
name: string;
|
|
210
|
+
}
|
|
211
|
+
export interface SkuSpecValueModelItem {
|
|
212
|
+
specId?: string;
|
|
213
|
+
specName?: string;
|
|
214
|
+
specValueId?: string;
|
|
215
|
+
specValueName?: string;
|
|
216
|
+
}
|
|
217
|
+
export interface TableContext {
|
|
218
|
+
prop: string;
|
|
219
|
+
label: string;
|
|
220
|
+
}
|
|
221
|
+
export interface GoodsSkuList {
|
|
222
|
+
results: Array<GoodsSkuModel>;
|
|
223
|
+
}
|
|
224
|
+
export interface GoodsGroupInfoCreateReq {
|
|
225
|
+
goodsId?: string;
|
|
226
|
+
skuId?: string;
|
|
227
|
+
spuId?: string;
|
|
228
|
+
specInfo?: string;
|
|
229
|
+
picUrl?: string;
|
|
230
|
+
saleNum?: number;
|
|
231
|
+
salePrice?: number;
|
|
232
|
+
marketPrice?: number;
|
|
233
|
+
specType?: string;
|
|
234
|
+
skuName?: string;
|
|
235
|
+
skuOptions?: {
|
|
236
|
+
key: string;
|
|
237
|
+
value: string;
|
|
238
|
+
}[];
|
|
239
|
+
}
|
|
240
|
+
export interface GoodsGroupInfoList {
|
|
241
|
+
results: Array<GoodsGroupInfoCreateReq>;
|
|
242
|
+
}
|
|
243
|
+
export interface GoodsGroupInfoReq {
|
|
244
|
+
goodsId?: string;
|
|
245
|
+
}
|
|
@@ -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,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,141 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
goodsSpu: {
|
|
3
|
+
templateDownload: string;
|
|
4
|
+
name: string;
|
|
5
|
+
shopId: string;
|
|
6
|
+
categoryId: string;
|
|
7
|
+
freightType: string;
|
|
8
|
+
freightAmount: string;
|
|
9
|
+
spuCode: string;
|
|
10
|
+
spuName: string;
|
|
11
|
+
picUrls: string;
|
|
12
|
+
sellPoint: string;
|
|
13
|
+
ensureIds: string;
|
|
14
|
+
description: string;
|
|
15
|
+
shelf: string;
|
|
16
|
+
price: string;
|
|
17
|
+
salePrice: string;
|
|
18
|
+
salePriceV1: string;
|
|
19
|
+
salePriceV2: string;
|
|
20
|
+
salePriceV2Required: string;
|
|
21
|
+
salePriceV3: string;
|
|
22
|
+
salePriceV3Required: string;
|
|
23
|
+
marketPrice: string;
|
|
24
|
+
marketPriceRequired: string;
|
|
25
|
+
costPrice: string;
|
|
26
|
+
costPriceRequired: string;
|
|
27
|
+
stock: string;
|
|
28
|
+
stockRequired: string;
|
|
29
|
+
weight: string;
|
|
30
|
+
weightRequired: string;
|
|
31
|
+
volume: string;
|
|
32
|
+
volumeRequired: string;
|
|
33
|
+
saleNum: string;
|
|
34
|
+
saleNums: string;
|
|
35
|
+
specType: string;
|
|
36
|
+
approvalStatus: string;
|
|
37
|
+
batchShelf: string;
|
|
38
|
+
batchOffShelf: string;
|
|
39
|
+
batchApprovaled: string;
|
|
40
|
+
batchRejected: string;
|
|
41
|
+
batchApproval: string;
|
|
42
|
+
updateTime: string;
|
|
43
|
+
shopIdRequired: string;
|
|
44
|
+
spuNameRequired: string;
|
|
45
|
+
spuNameRequireds: string;
|
|
46
|
+
freightAmountRequired: string;
|
|
47
|
+
saleNumRequired: string;
|
|
48
|
+
saleNumRequireds: string;
|
|
49
|
+
sellPointRequired: string;
|
|
50
|
+
categoryIdRequired: string;
|
|
51
|
+
spuCodeRequired: string;
|
|
52
|
+
freightTypeRequired: string;
|
|
53
|
+
specRequired: string;
|
|
54
|
+
shelfRequired: string;
|
|
55
|
+
specTypeRequired: string;
|
|
56
|
+
picUrlsRequired: string;
|
|
57
|
+
imageListsErrors: string;
|
|
58
|
+
salePriceRequired: string;
|
|
59
|
+
salePriceV1Required: string;
|
|
60
|
+
specValueRequired: string;
|
|
61
|
+
chooseShelf: string;
|
|
62
|
+
successShelf: string;
|
|
63
|
+
successOffShelf: string;
|
|
64
|
+
successFilled: string;
|
|
65
|
+
successApproval: string;
|
|
66
|
+
brandId: string;
|
|
67
|
+
brandIdRequired: string;
|
|
68
|
+
labelIds: string;
|
|
69
|
+
labelIdsRequired: string;
|
|
70
|
+
minPrice: string;
|
|
71
|
+
minPriceRequired: string;
|
|
72
|
+
maxPrice: string;
|
|
73
|
+
maxPriceRequired: string;
|
|
74
|
+
supClass: string;
|
|
75
|
+
supClassRequired: string;
|
|
76
|
+
isBranchPickup: string;
|
|
77
|
+
isBranchPickupRequired: string;
|
|
78
|
+
isPointsGift: string;
|
|
79
|
+
isPointsGiftRequired: string;
|
|
80
|
+
isPointsDeduct: string;
|
|
81
|
+
isPointsDeductRequired: string;
|
|
82
|
+
presaleType: string;
|
|
83
|
+
presaleTypeRequired: string;
|
|
84
|
+
balancePaymentType: string;
|
|
85
|
+
balancePaymentTypeRequired: string;
|
|
86
|
+
balancePaymentDays: string;
|
|
87
|
+
balancePaymentDaysRequired: string;
|
|
88
|
+
balancePaymentDate: string;
|
|
89
|
+
balancePaymentDateRequired: string;
|
|
90
|
+
purchaseLimit: string;
|
|
91
|
+
purchaseLimitRequired: string;
|
|
92
|
+
deliveryType: string;
|
|
93
|
+
deliveryTypeRequired: string;
|
|
94
|
+
deliverySpotDate: string;
|
|
95
|
+
deliverySpotDateRequireds: string;
|
|
96
|
+
deliveryPresaleDate: string;
|
|
97
|
+
deliveryPresaleDateRequired: string;
|
|
98
|
+
useBranch: string;
|
|
99
|
+
useBranchRequired: string;
|
|
100
|
+
validityType: string;
|
|
101
|
+
validityTypeRequired: string;
|
|
102
|
+
validityDays: string;
|
|
103
|
+
validityDaysRequired: string;
|
|
104
|
+
validityDate: string;
|
|
105
|
+
validityDateRequired: string;
|
|
106
|
+
note: string;
|
|
107
|
+
noteRequired: string;
|
|
108
|
+
branchIds: string;
|
|
109
|
+
branchIdsRequired: string;
|
|
110
|
+
};
|
|
111
|
+
goodsBrandInfo: {
|
|
112
|
+
name: string;
|
|
113
|
+
brandId: string;
|
|
114
|
+
brandName: string;
|
|
115
|
+
brandNameRequired: string;
|
|
116
|
+
logoUrl: string;
|
|
117
|
+
logoUrlRequired: string;
|
|
118
|
+
description: string;
|
|
119
|
+
descriptionRequired: string;
|
|
120
|
+
orderBy: string;
|
|
121
|
+
status: string;
|
|
122
|
+
statusRequired: string;
|
|
123
|
+
likeBrandName: string;
|
|
124
|
+
likeBrandNameRequired: string;
|
|
125
|
+
};
|
|
126
|
+
goodsLabelInfo: {
|
|
127
|
+
name: string;
|
|
128
|
+
likeLableName: string;
|
|
129
|
+
likeLableNameRequired: string;
|
|
130
|
+
labelName: string;
|
|
131
|
+
labelCode: string;
|
|
132
|
+
orderBy: string;
|
|
133
|
+
status: string;
|
|
134
|
+
statusRequired: string;
|
|
135
|
+
note: string;
|
|
136
|
+
labelNameRequired: string;
|
|
137
|
+
labelCodeRequired: string;
|
|
138
|
+
noteRequired: string;
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function loadLang(i18n: any): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "nprogress/nprogress.css";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { RouteRecordRaw } from "vue-router";
|
|
2
|
+
export declare const goodsSpuEdit: () => Promise<typeof import("@/views/goods/goods-spu/edit.vue")>;
|
|
3
|
+
export declare const goodsSpuInfo: () => Promise<typeof import("@/views/goods/goods-spu/info.vue")>;
|
|
4
|
+
export declare const goodsCombinationEdit: () => Promise<typeof import("@/views/goods/goods-combination/edit.vue")>;
|
|
5
|
+
export declare const goodsCombinationInfo: () => Promise<typeof import("@/views/goods/goods-combination/info.vue")>;
|
|
6
|
+
export declare const goodsRoutes: RouteRecordRaw[];
|