xyvcard-goods 0.0.33 → 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.
Files changed (92) hide show
  1. package/dist/{GoodsBaseForm-6rzBkBTh.mjs → GoodsBaseForm-BSvXc_XA.mjs} +1 -1
  2. package/dist/{GoodsBaseForm.vue_vue_type_script_setup_true_lang-BmIR352P.mjs → GoodsBaseForm.vue_vue_type_script_setup_true_lang-rsmqHXbJ.mjs} +60 -53
  3. package/dist/GoodsLogisticsForm-1Bbd4Z52.mjs +4 -0
  4. package/dist/GoodsLogisticsForm.vue_vue_type_script_setup_true_lang-PSnPNbmT.mjs +434 -0
  5. package/dist/{GoodsSpecForm-BqaN71rS.mjs → GoodsSpecForm-Ddo1IZLZ.mjs} +1 -1
  6. package/dist/GoodsSpecForm.vue_vue_type_script_setup_true_lang-CdWIufm4.mjs +338 -0
  7. package/dist/edit copy 2-Yzf_M31V.mjs +59 -0
  8. package/dist/{edit copy-tfwJCdiV.mjs → edit copy-CCnzlrgL.mjs } +3 -3
  9. package/dist/{edit-D2zcGl_U.mjs → edit-BgtwinSN.mjs} +1 -1
  10. package/dist/{edit-Db2EJ9dq.mjs → edit-Dke5sWct.mjs} +3 -3
  11. package/dist/{edit-CZwlbL9o.mjs → edit-e5-aXV6K.mjs} +18 -18
  12. package/dist/{edit-DBTNknBy.mjs → edit-lfXK_dUp.mjs} +3 -3
  13. package/dist/{edit-1Lv_dvlq.mjs → edit-pUKONjxH.mjs} +1 -1
  14. package/dist/{edit.vue_vue_type_script_setup_true_lang-BmOhw098.mjs → edit.vue_vue_type_script_setup_true_lang-BtGT564r.mjs} +32 -32
  15. package/dist/{index-BXa-atkT.mjs → index-BSzOTWcG.mjs} +1 -1
  16. package/dist/{index-Cl4wz2yF.mjs → index-BpKiAhvt.mjs} +3 -3
  17. package/dist/{index-DXIGHcIv.mjs → index-ChQ-ZxD1.mjs} +2 -2
  18. package/dist/{index-BpXZNA11.mjs → index-CkJncbVf.mjs} +3 -3
  19. package/dist/{index-DGYGNHfx.mjs → index-CkMWas2b.mjs} +3 -3
  20. package/dist/index-Da2R0n8O.mjs +374 -0
  21. package/dist/{index-CRfiEzkA.mjs → index-DhS4AuWf.mjs} +509 -481
  22. package/dist/{index-BhUD_X30.mjs → index-DyLLV1NK.mjs} +2 -2
  23. package/dist/index.mjs +1 -1
  24. package/dist/{info-DfbU-CWk.mjs → info-DOKoSi7a.mjs} +34 -34
  25. package/dist/{info-DDi6GKQH.mjs → info-De_pBN6A.mjs} +19 -19
  26. package/dist/{skuForm-DoIpxDvq.mjs → skuForm-DVGkw6rD.mjs} +21 -21
  27. package/dist/{skuForm-DWIoveRP.mjs → skuForm-YXHrhyPI.mjs} +110 -109
  28. package/dist/{skuTable-BVBtWrf9.mjs → skuTable-DOIQ9kiV.mjs} +62 -62
  29. package/dist/style.css +1 -1
  30. package/dts/xyvcard-goods/src/App.vue.d.ts +2 -0
  31. package/dts/xyvcard-goods/src/api/dict.d.ts +35 -0
  32. package/dts/xyvcard-goods/src/api/goods-base/index.d.ts +11 -0
  33. package/dts/xyvcard-goods/src/api/goods-base/types.d.ts +33 -0
  34. package/dts/xyvcard-goods/src/api/goods-brand-info/index.d.ts +20 -0
  35. package/dts/xyvcard-goods/src/api/goods-brand-info/types.d.ts +73 -0
  36. package/dts/xyvcard-goods/src/api/goods-category/index.d.ts +23 -0
  37. package/dts/xyvcard-goods/src/api/goods-category/types.d.ts +70 -0
  38. package/dts/xyvcard-goods/src/api/goods-ensure/index.d.ts +13 -0
  39. package/dts/xyvcard-goods/src/api/goods-ensure/types.d.ts +13 -0
  40. package/dts/xyvcard-goods/src/api/goods-label-info/index.d.ts +20 -0
  41. package/dts/xyvcard-goods/src/api/goods-label-info/types.d.ts +70 -0
  42. package/dts/xyvcard-goods/src/api/goods-logistics/index.d.ts +8 -0
  43. package/dts/xyvcard-goods/src/api/goods-logistics/types.d.ts +16 -0
  44. package/dts/xyvcard-goods/src/api/goods-sku/types.d.ts +18 -0
  45. package/dts/xyvcard-goods/src/api/goods-spec/index.d.ts +8 -0
  46. package/dts/xyvcard-goods/src/api/goods-spec/types.d.ts +15 -0
  47. package/dts/xyvcard-goods/src/api/goods-spu/index.d.ts +69 -0
  48. package/dts/xyvcard-goods/src/api/goods-spu/types.d.ts +245 -0
  49. package/dts/xyvcard-goods/src/api/goods-stock/index.d.ts +8 -0
  50. package/dts/xyvcard-goods/src/api/goods-stock/types.d.ts +32 -0
  51. package/dts/xyvcard-goods/src/api/index.d.ts +29 -0
  52. package/dts/xyvcard-goods/src/api/shop-branch/index.d.ts +9 -0
  53. package/dts/xyvcard-goods/src/api/shop-branch/types.d.ts +28 -0
  54. package/dts/xyvcard-goods/src/components/ImageUpload.vue.d.ts +36 -0
  55. package/dts/xyvcard-goods/src/constant.d.ts +107 -0
  56. package/dts/xyvcard-goods/src/index.d.ts +12 -0
  57. package/dts/xyvcard-goods/src/lang/goods/en.d.ts +2 -0
  58. package/dts/xyvcard-goods/src/lang/goods/zh-cn.d.ts +141 -0
  59. package/dts/xyvcard-goods/src/lang/index.d.ts +1 -0
  60. package/dts/xyvcard-goods/src/main.d.ts +7 -0
  61. package/dts/xyvcard-goods/src/permission.d.ts +1 -0
  62. package/dts/xyvcard-goods/src/router/index.d.ts +6 -0
  63. package/dts/xyvcard-goods/src/utils/momentPlugin.d.ts +5 -0
  64. package/dts/xyvcard-goods/src/utils/returnBizLay.d.ts +2 -0
  65. package/dts/xyvcard-goods/src/utils/sku.d.ts +19 -0
  66. package/dts/xyvcard-goods/src/views/goods/goods-brand-info/edit.vue.d.ts +22 -0
  67. package/dts/xyvcard-goods/src/views/goods/goods-brand-info/index.vue.d.ts +2 -0
  68. package/dts/xyvcard-goods/src/views/goods/goods-category/edit.vue.d.ts +22 -0
  69. package/dts/xyvcard-goods/src/views/goods/goods-category/index.vue.d.ts +2 -0
  70. package/dts/xyvcard-goods/src/views/goods/goods-combination/edit.vue.d.ts +2 -0
  71. package/dts/xyvcard-goods/src/views/goods/goods-combination/index.vue.d.ts +2 -0
  72. package/dts/xyvcard-goods/src/views/goods/goods-combination/info.vue.d.ts +2 -0
  73. package/dts/xyvcard-goods/src/views/goods/goods-combination/skuForm.vue.d.ts +20 -0
  74. package/dts/xyvcard-goods/src/views/goods/goods-label-info/edit.vue.d.ts +22 -0
  75. package/dts/xyvcard-goods/src/views/goods/goods-label-info/index.vue.d.ts +2 -0
  76. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsBaseForm.vue.d.ts +34 -0
  77. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsLogisticsForm.vue.d.ts +42 -0
  78. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsSpecForm.vue.d.ts +42 -0
  79. package/dts/xyvcard-goods/src/views/goods/goods-spu/edit copy 2.vue.d.ts +2 -0
  80. package/dts/xyvcard-goods/src/views/goods/goods-spu/edit copy.vue.d.ts +2 -0
  81. package/dts/xyvcard-goods/src/views/goods/goods-spu/edit.vue.d.ts +2 -0
  82. package/dts/xyvcard-goods/src/views/goods/goods-spu/index.vue.d.ts +2 -0
  83. package/dts/xyvcard-goods/src/views/goods/goods-spu/info.vue.d.ts +2 -0
  84. package/dts/xyvcard-goods/src/views/goods/goods-spu/skuForm.vue.d.ts +29 -0
  85. package/dts/xyvcard-goods/src/views/goods/goods-spu/skuTable.vue.d.ts +40 -0
  86. package/dts/xyvcard-shop/src/api/shop-branch/index.d.ts +14 -0
  87. package/dts/xyvcard-shop/src/api/shop-branch/types.d.ts +76 -0
  88. package/package.json +4 -4
  89. package/dist/GoodsLogisticsForm-CHyQ99Mt.mjs +0 -10
  90. package/dist/GoodsSpecForm.vue_vue_type_script_setup_true_lang-BTFKRiNW.mjs +0 -140
  91. package/dist/edit copy 2-DnKLaz3I.mjs +0 -45
  92. package/dist/index-Df-F10aZ.mjs +0 -264
@@ -0,0 +1,70 @@
1
+ import type { AxiosPromise } from "axios";
2
+ import type { LayEntry, EntityApi, EntityReq, EntityModel, EntityList, EntityPage, EntityTotal, EntityKey, EntityKeyList, EntityCreateReq, EntityUpdateReq } from "jmash-core";
3
+ export interface GoodsCategoryTree {
4
+ results: LayEntry[];
5
+ }
6
+ export interface GoodsCategoryApi extends EntityApi {
7
+ findTreeListApi(query?: GoodsCategoryReq): AxiosPromise<GoodsCategoryTree>;
8
+ }
9
+ export interface GoodsCategoryReq extends EntityReq {
10
+ likeCategoryName?: string;
11
+ status?: boolean;
12
+ hasStatus?: boolean;
13
+ excludeId?: string;
14
+ }
15
+ export interface GoodsCategoryModel extends EntityModel {
16
+ categoryId?: string;
17
+ categoryName?: string;
18
+ categoryCode?: string;
19
+ picUrl?: string;
20
+ description?: string;
21
+ status?: boolean;
22
+ parentId?: string;
23
+ children?: GoodsCategoryModel[];
24
+ }
25
+ export interface GoodsCategoryList extends EntityList {
26
+ results: Array<GoodsCategoryModel>;
27
+ }
28
+ export interface GoodsCategoryPage extends EntityPage {
29
+ results: Array<GoodsCategoryModel>;
30
+ subTotalDto: GoodsCategoryModelTotal;
31
+ totalDto: GoodsCategoryModelTotal;
32
+ }
33
+ export interface GoodsCategoryModelTotal extends EntityTotal {
34
+ totalSize: number;
35
+ }
36
+ export interface GoodsCategoryKey extends EntityKey {
37
+ tenant?: string;
38
+ categoryId?: string;
39
+ }
40
+ export interface GoodsCategoryKeyList extends EntityKeyList {
41
+ tenant?: string;
42
+ categoryId?: Array<string>;
43
+ }
44
+ export interface GoodsCategoryCreateReq extends EntityCreateReq {
45
+ categoryId?: string;
46
+ categoryName?: string;
47
+ categoryCode?: string;
48
+ parentId?: string;
49
+ picUrl?: string;
50
+ description?: string;
51
+ }
52
+ export interface GoodsCategoryUpdateReq extends EntityUpdateReq {
53
+ categoryId?: string;
54
+ categoryName?: string;
55
+ categoryCode?: string;
56
+ parentId?: string;
57
+ picUrl?: string;
58
+ description?: string;
59
+ }
60
+ export type GoodsCategoryFormReq = GoodsCategoryCreateReq | GoodsCategoryUpdateReq;
61
+ export interface GoodsCategoryMoveKey {
62
+ tenant?: string;
63
+ categoryId?: string;
64
+ up?: boolean;
65
+ }
66
+ export interface GoodsCategoryEnableKey {
67
+ tenant?: string;
68
+ categoryId?: string;
69
+ enable?: boolean;
70
+ }
@@ -0,0 +1,13 @@
1
+ import type { AxiosPromise } from "axios";
2
+ import type { GoodsEnsureApi, GoodsEnsureModel, GoodsEnsureKey, GoodsEnsures } from "./types";
3
+ declare class GoodsEnsureApiImpl implements GoodsEnsureApi {
4
+ getKey(model: GoodsEnsureModel): GoodsEnsureKey;
5
+ /**
6
+ * 查询商品保障信息
7
+ * @param query 查询参数对象,包含需要查询的商品保障的关键信息
8
+ * @returns 返回一个Promise对象,包含商品保障信息
9
+ */
10
+ findById(query: GoodsEnsureKey): AxiosPromise<GoodsEnsures>;
11
+ }
12
+ declare const goodsEnsureApi: GoodsEnsureApiImpl;
13
+ export { goodsEnsureApi };
@@ -0,0 +1,13 @@
1
+ import type { EntityApi, EntityKey, EntityModel } from "jmash-core";
2
+ export interface GoodsEnsureApi extends EntityApi {
3
+ }
4
+ export interface GoodsEnsureKey extends EntityKey {
5
+ tenant?: string;
6
+ spuId?: string;
7
+ }
8
+ export interface GoodsEnsureModel extends EntityModel {
9
+ spuId?: string;
10
+ }
11
+ export interface GoodsEnsures {
12
+ ensures: Array<string>;
13
+ }
@@ -0,0 +1,20 @@
1
+ import type { AxiosPromise } from "axios";
2
+ import type { GoodsLabelInfoApi, GoodsLabelInfoReq, GoodsLabelInfoModel, GoodsLabelInfoPage, GoodsLabelInfoList, GoodsLabelInfoKey, GoodsLabelInfoCreateReq, GoodsLabelInfoUpdateReq, GoodsLabelInfoExportReq, GoodsLabelInfoImportReq } from "./types";
3
+ declare class GoodsLabelInfoApiImpl implements GoodsLabelInfoApi {
4
+ getKey(model: GoodsLabelInfoModel): GoodsLabelInfoKey;
5
+ findPage(query?: GoodsLabelInfoReq): AxiosPromise<GoodsLabelInfoPage>;
6
+ findList(query?: GoodsLabelInfoReq): AxiosPromise<GoodsLabelInfoList>;
7
+ findById(query: GoodsLabelInfoKey): AxiosPromise<GoodsLabelInfoModel>;
8
+ create(data: GoodsLabelInfoCreateReq): AxiosPromise<GoodsLabelInfoModel>;
9
+ update(data: GoodsLabelInfoUpdateReq): AxiosPromise<GoodsLabelInfoModel>;
10
+ move(key: GoodsLabelInfoKey, up: boolean): AxiosPromise<boolean>;
11
+ enable(key: GoodsLabelInfoKey, enable: boolean): AxiosPromise<boolean>;
12
+ delete(query: GoodsLabelInfoKey): AxiosPromise<GoodsLabelInfoModel>;
13
+ batchDelete(keys: GoodsLabelInfoKey[]): AxiosPromise<number>;
14
+ downloadTemplate(): AxiosPromise;
15
+ importExcel(data: GoodsLabelInfoImportReq): AxiosPromise<string>;
16
+ exportExcel(queryParams: GoodsLabelInfoExportReq): AxiosPromise;
17
+ exportPdf(queryParams: GoodsLabelInfoExportReq): AxiosPromise;
18
+ }
19
+ declare const goodsLabelInfoApi: GoodsLabelInfoApiImpl;
20
+ export { goodsLabelInfoApi };
@@ -0,0 +1,70 @@
1
+ import type { EntityApi, EntityReq, EntityModel, EntityList, EntityPage, EntityTotal, EntityKey, EntityKeyList, EntityCreateReq, EntityUpdateReq, EntityExportReq, EntityImportReq } from "jmash-core";
2
+ export interface GoodsLabelInfoApi extends EntityApi {
3
+ }
4
+ export interface GoodsLabelInfoReq extends EntityReq {
5
+ likeLableName?: string;
6
+ status?: boolean;
7
+ hasStatus?: boolean;
8
+ }
9
+ export interface GoodsLabelInfoModel extends EntityModel {
10
+ tenantId?: string;
11
+ labelId?: string;
12
+ labelName?: string;
13
+ labelCode?: string;
14
+ orderBy?: string;
15
+ status?: boolean;
16
+ note?: string;
17
+ }
18
+ export interface GoodsLabelInfoList extends EntityList {
19
+ results: Array<GoodsLabelInfoModel>;
20
+ }
21
+ export interface GoodsLabelInfoPage extends EntityPage {
22
+ results: Array<GoodsLabelInfoModel>;
23
+ subTotalDto: GoodsLabelInfoModelTotal;
24
+ totalDto: GoodsLabelInfoModelTotal;
25
+ }
26
+ export interface GoodsLabelInfoModelTotal extends EntityTotal {
27
+ totalSize: number;
28
+ }
29
+ export interface GoodsLabelInfoKey extends EntityKey {
30
+ tenant?: string;
31
+ labelId?: string;
32
+ }
33
+ export interface GoodsLabelInfoKeyList extends EntityKeyList {
34
+ tenant?: string;
35
+ labelId?: Array<string>;
36
+ }
37
+ export interface GoodsLabelInfoCreateReq extends EntityCreateReq {
38
+ tenantId?: string;
39
+ labelId?: string;
40
+ labelName?: string;
41
+ labelCode?: string;
42
+ orderBy?: string;
43
+ status?: boolean;
44
+ note?: string;
45
+ }
46
+ export interface GoodsLabelInfoUpdateReq extends EntityUpdateReq {
47
+ tenantId?: string;
48
+ labelId?: string;
49
+ labelName?: string;
50
+ labelCode?: string;
51
+ orderBy?: string;
52
+ status?: boolean;
53
+ note?: string;
54
+ }
55
+ export type GoodsLabelInfoFormReq = (GoodsLabelInfoCreateReq | GoodsLabelInfoUpdateReq);
56
+ export interface GoodsLabelInfoExportReq extends EntityExportReq {
57
+ req: GoodsLabelInfoReq;
58
+ }
59
+ export interface GoodsLabelInfoImportReq extends EntityImportReq {
60
+ }
61
+ export interface GoodsLabelInfoMoveKey {
62
+ tenant?: string;
63
+ labelId?: string;
64
+ up?: boolean;
65
+ }
66
+ export interface GoodsLabelInfoEnableKey {
67
+ tenant?: string;
68
+ labelId?: string;
69
+ enable?: boolean;
70
+ }
@@ -0,0 +1,8 @@
1
+ import type { GoodsSpuModel } from "../goods-spu/types";
2
+ import type { AxiosPromise } from "axios";
3
+ import type { GoodsLogisticsCreateReq } from "./types";
4
+ declare class GoodsLogisticsApiImpl {
5
+ create(data: GoodsLogisticsCreateReq): AxiosPromise<GoodsSpuModel>;
6
+ }
7
+ declare const goodsLogisticsApi: GoodsLogisticsApiImpl;
8
+ export { goodsLogisticsApi };
@@ -0,0 +1,16 @@
1
+ import type { EntityUpdateReq } from "jmash-core";
2
+ export interface GoodsLogisticsCreateReq extends EntityUpdateReq {
3
+ spuId: string;
4
+ deliveryType: string;
5
+ deliverySpotDate: string;
6
+ deliveryPresaleDate: string;
7
+ freightType: string;
8
+ freightAmount: number;
9
+ note: string;
10
+ useBranch: string;
11
+ branchIds?: string[];
12
+ validityType?: string;
13
+ validityDays?: number;
14
+ validityDate?: string;
15
+ ensureIds?: string[];
16
+ }
@@ -0,0 +1,18 @@
1
+ import type { EntityModel } from "jmash-core";
2
+ import type { SkuSpecValue } from "../goods-spu/types";
3
+ export interface GoodsSkuModel extends EntityModel {
4
+ skuId?: string;
5
+ spuId?: string;
6
+ skuCode?: string;
7
+ picUrl?: string;
8
+ salePrice?: number;
9
+ salePriceV2?: number;
10
+ salePriceV3?: number;
11
+ marketPrice?: number;
12
+ costPrice?: number;
13
+ stock?: number;
14
+ weight?: number;
15
+ volume?: number;
16
+ status?: boolean;
17
+ specValues?: Array<SkuSpecValue>;
18
+ }
@@ -0,0 +1,8 @@
1
+ import type { GoodsSpuModel } from "../goods-spu/types";
2
+ import type { GoodsSpecCreateReq } from "./types";
3
+ import type { AxiosPromise } from "axios";
4
+ declare class GoodsSpecApiImpl {
5
+ create(data: GoodsSpecCreateReq): AxiosPromise<GoodsSpuModel>;
6
+ }
7
+ declare const goodsSpecApi: GoodsSpecApiImpl;
8
+ export { goodsSpecApi };
@@ -0,0 +1,15 @@
1
+ import type { EntityUpdateReq } from "jmash-core";
2
+ import type { GoodsSkuCreateReq } from "../goods-spu/types";
3
+ export interface GoodsSpecCreateReq extends EntityUpdateReq {
4
+ spuId: string;
5
+ presaleType: string;
6
+ isPointsGift: boolean;
7
+ isPointsDeduct: boolean;
8
+ purchaseLimit?: number;
9
+ balancePaymentType?: string;
10
+ balancePaymentDays?: number;
11
+ balancePaymentDate?: string;
12
+ specType?: string;
13
+ specId?: string[];
14
+ skuSpecValues: GoodsSkuCreateReq[];
15
+ }
@@ -0,0 +1,69 @@
1
+ import type { AxiosPromise } from "axios";
2
+ import type { GoodsSpuApi, GoodsSpuReq, GoodsSpuModel, GoodsSpuPage, GoodsSpuList, GoodsSpuKey, GoodsSpuCreateReq, GoodsSpuUpdateReq, GoodsGroupInfoList, GoodsGroupInfoReq } 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
+ }
68
+ declare const goodsSpuApi: GoodsSpuApiImpl;
69
+ export { goodsSpuApi };
@@ -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
+ }