xyvcard-goods 0.0.21 → 0.0.23

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 (44) hide show
  1. package/dist/ImageUpload-Dk6GY6PA.mjs +93 -0
  2. package/dist/{edit-DFc_TNP3.mjs → edit-9jPSycsG.mjs} +148 -212
  3. package/dist/edit-CJpoa4Ck.mjs +368 -0
  4. package/dist/{edit-DxnsmaXV.mjs → edit-CWQMgvVP.mjs} +38 -38
  5. package/dist/{edit-CkR-I5aJ.mjs → edit-DU-BEAcq.mjs} +1 -1
  6. package/dist/{edit-BcokSKfN.mjs → edit-Ziwv43v0.mjs} +27 -27
  7. package/dist/edit.vue_vue_type_script_setup_true_lang-BP0C4d2-.mjs +24173 -0
  8. package/dist/{goodsList-HmPAwD_C.mjs → goodsList-2AwsJVoO.mjs} +1 -1
  9. package/dist/{goodsList-TX2ZnRR9.mjs → goodsList-CyWliLjg.mjs} +1 -1
  10. package/dist/{goodsList.vue_vue_type_script_setup_true_lang-CGV1dm3W.mjs → goodsList.vue_vue_type_script_setup_true_lang-Bq06GIMe.mjs} +2 -2
  11. package/dist/{goodsList.vue_vue_type_script_setup_true_lang-f1Fc6pbd.mjs → goodsList.vue_vue_type_script_setup_true_lang-DjKzEAB7.mjs} +136 -147
  12. package/dist/{index-B0SXNsHW.mjs → index-8E7BciYp.mjs} +7 -7
  13. package/dist/{index-Dt3PP8dN.mjs → index-B1H5hqEi.mjs} +2 -2
  14. package/dist/{index-BZw9XfQo.mjs → index-B88acg0Q.mjs} +2 -2
  15. package/dist/{index-VFsDup14.mjs → index-BdP_dXBK.mjs} +3 -3
  16. package/dist/index-C7oatDPl.mjs +4432 -0
  17. package/dist/{index-Ctva-XF0.mjs → index-DPjR32Kv.mjs} +3 -3
  18. package/dist/{index-r0u-27m7.mjs → index-DR3Gk44r.mjs} +1 -1
  19. package/dist/index-jCpYt-EU.mjs +221 -0
  20. package/dist/index.mjs +6 -2864
  21. package/dist/info-BEMxnD6-.mjs +325 -0
  22. package/dist/{info-BTKv0IRt.mjs → info-DFIeVs66.mjs} +3 -3
  23. package/dist/{skuForm-C7rF2noo.mjs → skuForm-BhAbf2AG.mjs} +2 -2
  24. package/dist/skuForm-C2aQcL90.mjs +314 -0
  25. package/dist/{skuTable-CEwT-I1Q.mjs → skuTable-9JJqGeRx.mjs} +255 -208
  26. package/dist/style.css +1 -1
  27. package/dts/api/dict.d.ts +3 -0
  28. package/dts/api/goods-spu/index.d.ts +4 -1
  29. package/dts/api/goods-spu/types.d.ts +28 -0
  30. package/dts/api/index.d.ts +2 -1
  31. package/dts/index.d.ts +4 -0
  32. package/dts/lang/goods/zh-cn.d.ts +5 -1
  33. package/dts/router/index.d.ts +1 -0
  34. package/dts/views/goods/goods-combination/skuForm.vue.d.ts +0 -9
  35. package/package.json +3 -2
  36. package/dist/edit-tCGa_9Kt.mjs +0 -507
  37. package/dist/edit.vue_vue_type_script_setup_true_lang-BlNwikUO.mjs +0 -234
  38. package/dist/index-CqOoZ5xQ.mjs +0 -305
  39. package/dist/index-DR7GlHNd.mjs +0 -1288
  40. package/dist/index-jTDhsbYM.mjs +0 -141
  41. package/dist/info-CrghLmS4.mjs +0 -365
  42. package/dist/sku-B-IzfYLq.mjs +0 -52
  43. package/dist/skuForm-D2n8sQJo.mjs +0 -475
  44. package/dist/skuTable-D-awlXgj.mjs +0 -592
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .w-full{width:100%!important}.right-dis{margin-right:10px}.top-dis{margin-top:25px}.cell-item{display:flex;align-items:center;justify-content:flex-end}.el-descriptions__label{width:15%;text-align:right}.el-descriptions__content{width:35%}.title-set[data-v-6fc718ce]{display:flex;align-items:center;font-size:14px;padding:0 0 10px}.goods-spec[data-v-e6aa4b01]{border:1px solid #ccc;margin-bottom:5px}.goods-title[data-v-e6aa4b01]{display:flex;align-items:center;border-bottom:1px solid #ccc;padding:10px 20px}.goods-title .goods-delete[data-v-e6aa4b01]{display:flex;align-items:center;margin-left:auto;color:red;font-size:14px}.goods-content[data-v-e6aa4b01]{padding:10px 20px}.goods-tag[data-v-e6aa4b01]{margin-bottom:10px}[data-v-f10f6f7e] .el-upload--picture-card{width:80px;height:80px;border-radius:0}[data-v-f10f6f7e] .el-upload-list--picture-card .el-upload-list__item{width:80px;height:80px}.title-set[data-v-5e9b6e63]{display:flex;align-items:center;font-size:14px;padding:0 0 10px}.goods-spec[data-v-c88d5f27]{border:1px solid #ccc;margin-bottom:5px}.goods-title[data-v-c88d5f27]{display:flex;align-items:center;border-bottom:1px solid #ccc;padding:10px 20px}.goods-title .goods-delete[data-v-c88d5f27]{display:flex;align-items:center;margin-left:auto;color:red;font-size:14px}.goods-content[data-v-c88d5f27]{padding:10px 20px}.goods-tag[data-v-c88d5f27]{margin-bottom:10px}.position-center[data-v-90ddc8d1]{position:absolute;right:0;top:30%;transform:translateY(-30%)}.plus-position[data-v-90ddc8d1]{position:absolute;right:0;top:0;margin-top:8px}.position-center[data-v-7e1c2961]{position:absolute;right:0;top:30%;transform:translateY(-30%)}.plus-position[data-v-7e1c2961]{position:absolute;right:0;top:0;margin-top:8px}
1
+ @charset "UTF-8";.w-full{width:100%!important}.right-dis{margin-right:10px}.top-dis{margin-top:25px}.cell-item{display:flex;align-items:center;justify-content:flex-end}.el-descriptions__label{width:15%;text-align:right}.el-descriptions__content{width:35%}[data-v-f10f6f7e] .el-upload--picture-card{width:80px;height:80px;border-radius:0}[data-v-f10f6f7e] .el-upload-list--picture-card .el-upload-list__item{width:80px;height:80px}.title-set[data-v-6fc718ce]{display:flex;align-items:center;font-size:14px;padding:0 0 10px}.goods-spec[data-v-e6aa4b01]{border:1px solid #ccc;margin-bottom:5px}.goods-title[data-v-e6aa4b01]{display:flex;align-items:center;border-bottom:1px solid #ccc;padding:10px 20px}.goods-title .goods-delete[data-v-e6aa4b01]{display:flex;align-items:center;margin-left:auto;color:red;font-size:14px}.goods-content[data-v-e6aa4b01]{padding:10px 20px}.goods-tag[data-v-e6aa4b01]{margin-bottom:10px}.addButton[data-v-f953fc89]{margin-top:15px;margin-bottom:20px;width:100%}.hover-blue[data-v-f953fc89]:hover{color:#409eff!important}.position-center[data-v-05285e5f]{position:absolute;right:0;top:30%;transform:translateY(-30%)}.plus-position[data-v-05285e5f]{position:absolute;right:0;top:0;margin-top:8px}.position-center[data-v-3bb58ee1]{position:absolute;right:0;top:30%;transform:translateY(-30%)}.plus-position[data-v-3bb58ee1]{position:absolute;right:0;top:0;margin-top:8px}
package/dts/api/dict.d.ts CHANGED
@@ -27,3 +27,6 @@ export declare class BrandListBizDict extends BizDict {
27
27
  export declare class LableListBizDict extends BizDict {
28
28
  useValues(): Promise<Entry[]>;
29
29
  }
30
+ export declare class GoodsSpuBizDict extends BizDict {
31
+ useValues(): Promise<Entry[]>;
32
+ }
@@ -1,5 +1,5 @@
1
1
  import type { AxiosPromise } from "axios";
2
- import type { GoodsSpuApi, GoodsSpuReq, GoodsSpuModel, GoodsSpuPage, GoodsSpuList, GoodsSpuKey, GoodsSpuCreateReq, GoodsSpuUpdateReq } from "./types";
2
+ import type { GoodsSpuApi, GoodsSpuReq, GoodsSpuModel, GoodsSpuPage, GoodsSpuList, GoodsSpuKey, GoodsSpuCreateReq, GoodsSpuUpdateReq, GoodsGroupInfoList, GoodsGroupInfoReq } from "./types";
3
3
  declare class GoodsSpuApiImpl implements GoodsSpuApi {
4
4
  getKey(model: GoodsSpuModel): GoodsSpuKey;
5
5
  /**
@@ -14,6 +14,7 @@ declare class GoodsSpuApiImpl implements GoodsSpuApi {
14
14
  * @returns 返回一个AxiosPromise,解析后提供商品SPU列表
15
15
  */
16
16
  findList(query?: GoodsSpuReq): AxiosPromise<GoodsSpuList>;
17
+ findGroupList(query?: GoodsGroupInfoReq): AxiosPromise<GoodsGroupInfoList>;
17
18
  /**
18
19
  * 根据商品SPU的ID进行查询
19
20
  * @param query 商品SPU的查询键,包含需要查询的SPU ID
@@ -26,12 +27,14 @@ declare class GoodsSpuApiImpl implements GoodsSpuApi {
26
27
  * @returns 返回一个Promise对象,解析为创建的商品SPU模型
27
28
  */
28
29
  create(data: GoodsSpuCreateReq): AxiosPromise<GoodsSpuModel>;
30
+ createList(data: GoodsSpuCreateReq): AxiosPromise<GoodsSpuModel>;
29
31
  /**
30
32
  * 修改实体商品SPU
31
33
  * @param data 包含要更新的商品SPU信息的对象
32
34
  * @returns 返回一个Promise,解析为更新后的商品SPU模型
33
35
  */
34
36
  update(data: GoodsSpuUpdateReq): AxiosPromise<GoodsSpuModel>;
37
+ updateList(data: GoodsSpuUpdateReq): AxiosPromise<GoodsSpuModel>;
35
38
  /**
36
39
  * 上架或下架商品
37
40
  * @param key 商品的唯一键包含商品的必要标识信息
@@ -14,6 +14,7 @@ export interface GoodsSpuReq extends EntityReq {
14
14
  labelIds?: Array<string>;
15
15
  brandId?: string;
16
16
  goodsType?: string;
17
+ hasGoodsType?: boolean;
17
18
  }
18
19
  export interface GoodsSpuModel extends EntityModel {
19
20
  spuId?: string;
@@ -34,6 +35,7 @@ export interface GoodsSpuModel extends EntityModel {
34
35
  categoryIds?: Array<string>;
35
36
  brandId?: string;
36
37
  labelIds?: Array<string>;
38
+ groupInfos?: Array<GoodsGroupInfoCreateReq>;
37
39
  }
38
40
  export interface GoodsSpuList extends EntityList {
39
41
  results: Array<GoodsSpuModel>;
@@ -73,6 +75,9 @@ export interface GoodsSpuCreateReq extends EntityCreateReq {
73
75
  categoryIds?: Array<string>;
74
76
  brandId?: string;
75
77
  labelIds?: Array<string>;
78
+ groupInfos?: Array<GoodsGroupInfoCreateReq>;
79
+ goodsType?: string;
80
+ note?: string;
76
81
  }
77
82
  export interface GoodsSpuUpdateReq extends EntityUpdateReq {
78
83
  spuId?: string;
@@ -94,6 +99,9 @@ export interface GoodsSpuUpdateReq extends EntityUpdateReq {
94
99
  categoryIds?: Array<string>;
95
100
  brandId?: string;
96
101
  labelIds?: Array<string>;
102
+ groupInfos?: Array<GoodsGroupInfoCreateReq>;
103
+ goodsType?: string;
104
+ note?: string;
97
105
  }
98
106
  export type GoodsSpuFormReq = GoodsSpuCreateReq | GoodsSpuUpdateReq;
99
107
  export interface GoodsSpuEnableKey {
@@ -149,3 +157,23 @@ export interface TableContext {
149
157
  export interface GoodsSkuList {
150
158
  results: Array<GoodsSkuModel>;
151
159
  }
160
+ export interface GoodsGroupInfoCreateReq {
161
+ goodsId?: string;
162
+ skuId?: string;
163
+ spuId?: string;
164
+ specInfo?: string;
165
+ picUrl?: string;
166
+ saleNum?: number;
167
+ salePrice?: number;
168
+ specType?: string;
169
+ skuOptions?: {
170
+ key: string;
171
+ value: string;
172
+ }[];
173
+ }
174
+ export interface GoodsGroupInfoList {
175
+ results: Array<GoodsGroupInfoCreateReq>;
176
+ }
177
+ export interface GoodsGroupInfoReq {
178
+ goodsId?: string;
179
+ }
@@ -1,6 +1,6 @@
1
1
  import { EnumDict } from "jmash-core";
2
2
  import { EntryDict } from "jmash-dict";
3
- import { CustomBizDict, ShopInfoBizDict, SpecInfoBizDict, SpecValueBizDict, GoodsCategoryListBizLayDict, BrandListBizDict, LableListBizDict } from "./dict";
3
+ import { CustomBizDict, ShopInfoBizDict, SpecInfoBizDict, SpecValueBizDict, GoodsCategoryListBizLayDict, BrandListBizDict, LableListBizDict, GoodsSpuBizDict } from "./dict";
4
4
  export declare class Dict {
5
5
  static readonly shopInfoBizDict: ShopInfoBizDict;
6
6
  static readonly specInfoDict: SpecInfoBizDict;
@@ -15,4 +15,5 @@ export declare class Dict {
15
15
  static readonly goodsCategoryListBizLayDict: GoodsCategoryListBizLayDict;
16
16
  static readonly brandListBizDict: BrandListBizDict;
17
17
  static readonly labelListBizDict: LableListBizDict;
18
+ static readonly goodsSpuBizDict: GoodsSpuBizDict;
18
19
  }
package/dts/index.d.ts CHANGED
@@ -2,6 +2,10 @@ import type { App } from "vue";
2
2
  import "./styles/index.scss";
3
3
  export { goodsSpuApi } from "./api/goods-spu/index";
4
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";
5
9
  declare const goods: {
6
10
  install(app: App): void;
7
11
  };
@@ -13,6 +13,7 @@ declare const _default: {
13
13
  shelf: string;
14
14
  price: string;
15
15
  salePrice: string;
16
+ salePriceV1: string;
16
17
  salePriceV2: string;
17
18
  salePriceV3: string;
18
19
  marketPrice: string;
@@ -21,6 +22,7 @@ declare const _default: {
21
22
  weight: string;
22
23
  volume: string;
23
24
  saleNum: string;
25
+ saleNums: string;
24
26
  specType: string;
25
27
  approvalStatus: string;
26
28
  batchShelf: string;
@@ -31,8 +33,10 @@ declare const _default: {
31
33
  updateTime: string;
32
34
  shopIdRequired: string;
33
35
  spuNameRequired: string;
36
+ spuNameRequireds: string;
34
37
  freightAmountRequired: string;
35
38
  saleNumRequired: string;
39
+ saleNumRequireds: string;
36
40
  sellPointRequired: string;
37
41
  categoryIdRequired: string;
38
42
  spuCodeRequired: string;
@@ -41,9 +45,9 @@ declare const _default: {
41
45
  shelfRequired: string;
42
46
  specTypeRequired: string;
43
47
  picUrlsRequired: string;
44
- imageListsError: string;
45
48
  imageListsErrors: string;
46
49
  salePriceRequired: string;
50
+ salePriceV1Required: string;
47
51
  marketPriceRequired: string;
48
52
  costPriceRequired: string;
49
53
  stockRequired: string;
@@ -2,4 +2,5 @@ import type { RouteRecordRaw } from "vue-router";
2
2
  export declare const goodsSpuEdit: () => Promise<typeof import("@/views/goods/goods-spu/edit.vue")>;
3
3
  export declare const goodsSpuInfo: () => Promise<typeof import("@/views/goods/goods-spu/info.vue")>;
4
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")>;
5
6
  export declare const goodsRoutes: RouteRecordRaw[];
@@ -1,8 +1,4 @@
1
1
  declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
2
- specType: {
3
- type: StringConstructor;
4
- default: () => string;
5
- };
6
2
  form: {
7
3
  type: ObjectConstructor;
8
4
  default: () => void;
@@ -11,10 +7,6 @@ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropType
11
7
  getGoodsSku: (...args: any[]) => void;
12
8
  getFormData: (...args: any[]) => void;
13
9
  }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
14
- specType: {
15
- type: StringConstructor;
16
- default: () => string;
17
- };
18
10
  form: {
19
11
  type: ObjectConstructor;
20
12
  default: () => void;
@@ -24,6 +16,5 @@ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropType
24
16
  onGetFormData?: ((...args: any[]) => any) | undefined;
25
17
  }>, {
26
18
  form: Record<string, any>;
27
- specType: string;
28
19
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
29
20
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xyvcard-goods",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
4
  "private": false,
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dts/index.d.ts",
@@ -57,6 +57,7 @@
57
57
  "@vueuse/core": "^10.9.0",
58
58
  "file-saver": "^2.0.5",
59
59
  "nprogress": "^0.2.0",
60
- "qs": "^6.12.0"
60
+ "qs": "^6.12.0",
61
+ "pinyin-pro": "^3.25.0"
61
62
  }
62
63
  }