xyvcard-goods 0.0.17 → 0.0.19
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/dist/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
- package/dist/edit-B3Ripwo1.mjs +437 -0
- package/dist/{edit-C80KQhPy.mjs → edit-DEdWUJfi.mjs} +7 -7
- package/dist/edit-SYuN1_Fg.mjs +465 -0
- package/dist/index-C0nlTW8F.mjs +355 -0
- package/dist/index-DH3UH0QC.mjs +345 -0
- package/dist/index-DR7GlHNd.mjs +1288 -0
- package/dist/index.mjs +211 -188
- package/dist/{info-D6MWRZ1y.mjs → info-5OkZzwEV.mjs} +51 -45
- package/dist/{skuForm-H9IDa7ys.mjs → skuForm-DyYIl6H4.mjs} +44 -43
- package/dist/{skuTable-DbNThlFG.mjs → skuTable-B8v1DVIO.mjs} +179 -189
- package/dist/style.css +1 -1
- package/dts/api/goods-brand-info/index.d.ts +20 -0
- package/dts/api/goods-brand-info/types.d.ts +70 -0
- package/dts/api/goods-label-info/index.d.ts +20 -0
- package/dts/api/goods-label-info/types.d.ts +67 -0
- package/dts/api/goods-spu/types.d.ts +3 -0
- package/dts/lang/goods/zh-cn.d.ts +21 -0
- package/dts/views/goods/goods-brand-info/edit.vue.d.ts +22 -0
- package/dts/views/goods/goods-brand-info/index.vue.d.ts +2 -0
- package/dts/views/goods/goods-label-info/edit.vue.d.ts +22 -0
- package/dts/views/goods/goods-label-info/index.vue.d.ts +2 -0
- package/package.json +1 -1
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-84542ec3]{display:flex;align-items:center;font-size:14px;padding:0 0 10px}.goods-spec[data-v-859a9f0c]{border:1px solid #ccc;margin-bottom:5px}.goods-title[data-v-859a9f0c]{display:flex;align-items:center;border-bottom:1px solid #ccc;padding:10px 20px}.goods-title .goods-delete[data-v-859a9f0c]{display:flex;align-items:center;margin-left:auto;color:red;font-size:14px}.goods-content[data-v-859a9f0c]{padding:10px 20px}.goods-tag[data-v-859a9f0c]{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}
|
|
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-84542ec3]{display:flex;align-items:center;font-size:14px;padding:0 0 10px}.goods-spec[data-v-859a9f0c]{border:1px solid #ccc;margin-bottom:5px}.goods-title[data-v-859a9f0c]{display:flex;align-items:center;border-bottom:1px solid #ccc;padding:10px 20px}.goods-title .goods-delete[data-v-859a9f0c]{display:flex;align-items:center;margin-left:auto;color:red;font-size:14px}.goods-content[data-v-859a9f0c]{padding:10px 20px}.goods-tag[data-v-859a9f0c]{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}.position-center[data-v-375e37af]{position:absolute;right:0;top:30%;transform:translateY(-30%)}.plus-position[data-v-375e37af]{position:absolute;right:0;top:0;margin-top:8px}.position-center[data-v-7ccfb445]{position:absolute;right:0;top:30%;transform:translateY(-30%)}.plus-position[data-v-7ccfb445]{position:absolute;right:0;top:0;margin-top:8px}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { AxiosPromise } from "axios";
|
|
2
|
+
import type { GoodsBrandInfoApi, GoodsBrandInfoReq, GoodsBrandInfoModel, GoodsBrandInfoPage, GoodsBrandInfoList, GoodsBrandInfoKey, GoodsBrandInfoCreateReq, GoodsBrandInfoUpdateReq, GoodsBrandInfoExportReq, GoodsBrandInfoImportReq } from "./types";
|
|
3
|
+
declare class GoodsBrandInfoApiImpl implements GoodsBrandInfoApi {
|
|
4
|
+
getKey(model: GoodsBrandInfoModel): GoodsBrandInfoKey;
|
|
5
|
+
findPage(query?: GoodsBrandInfoReq): AxiosPromise<GoodsBrandInfoPage>;
|
|
6
|
+
findList(query?: GoodsBrandInfoReq): AxiosPromise<GoodsBrandInfoList>;
|
|
7
|
+
findById(query: GoodsBrandInfoKey): AxiosPromise<GoodsBrandInfoModel>;
|
|
8
|
+
create(data: GoodsBrandInfoCreateReq): AxiosPromise<GoodsBrandInfoModel>;
|
|
9
|
+
update(data: GoodsBrandInfoUpdateReq): AxiosPromise<GoodsBrandInfoModel>;
|
|
10
|
+
move(key: GoodsBrandInfoKey, up: boolean): AxiosPromise<boolean>;
|
|
11
|
+
enable(key: GoodsBrandInfoKey, enable: boolean): AxiosPromise<boolean>;
|
|
12
|
+
delete(query: GoodsBrandInfoKey): AxiosPromise<GoodsBrandInfoModel>;
|
|
13
|
+
batchDelete(keys: GoodsBrandInfoKey[]): AxiosPromise<number>;
|
|
14
|
+
downloadTemplate(): AxiosPromise;
|
|
15
|
+
importExcel(data: GoodsBrandInfoImportReq): AxiosPromise<string>;
|
|
16
|
+
exportExcel(queryParams: GoodsBrandInfoExportReq): AxiosPromise;
|
|
17
|
+
exportPdf(queryParams: GoodsBrandInfoExportReq): AxiosPromise;
|
|
18
|
+
}
|
|
19
|
+
declare const goodsBrandInfoApi: GoodsBrandInfoApiImpl;
|
|
20
|
+
export { goodsBrandInfoApi };
|
|
@@ -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 GoodsBrandInfoApi extends EntityApi {
|
|
3
|
+
}
|
|
4
|
+
export interface GoodsBrandInfoReq extends EntityReq {
|
|
5
|
+
}
|
|
6
|
+
export interface GoodsBrandInfoModel extends EntityModel {
|
|
7
|
+
tenantId?: string;
|
|
8
|
+
brandId?: string;
|
|
9
|
+
shopId?: string;
|
|
10
|
+
brandName?: string;
|
|
11
|
+
logoUrl?: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
orderBy?: string;
|
|
14
|
+
status?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface GoodsBrandInfoList extends EntityList {
|
|
17
|
+
results: Array<GoodsBrandInfoModel>;
|
|
18
|
+
}
|
|
19
|
+
export interface GoodsBrandInfoPage extends EntityPage {
|
|
20
|
+
results: Array<GoodsBrandInfoModel>;
|
|
21
|
+
subTotalDto: GoodsBrandInfoModelTotal;
|
|
22
|
+
totalDto: GoodsBrandInfoModelTotal;
|
|
23
|
+
}
|
|
24
|
+
export interface GoodsBrandInfoModelTotal extends EntityTotal {
|
|
25
|
+
totalSize: number;
|
|
26
|
+
}
|
|
27
|
+
export interface GoodsBrandInfoKey extends EntityKey {
|
|
28
|
+
tenant?: string;
|
|
29
|
+
brandId?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface GoodsBrandInfoKeyList extends EntityKeyList {
|
|
32
|
+
tenant?: string;
|
|
33
|
+
brandId?: Array<string>;
|
|
34
|
+
}
|
|
35
|
+
export interface GoodsBrandInfoCreateReq extends EntityCreateReq {
|
|
36
|
+
tenantId?: string;
|
|
37
|
+
brandId?: string;
|
|
38
|
+
shopId?: string;
|
|
39
|
+
brandName?: string;
|
|
40
|
+
logoUrl?: string;
|
|
41
|
+
description?: string;
|
|
42
|
+
orderBy?: string;
|
|
43
|
+
status?: boolean;
|
|
44
|
+
}
|
|
45
|
+
export interface GoodsBrandInfoUpdateReq extends EntityUpdateReq {
|
|
46
|
+
tenantId?: string;
|
|
47
|
+
brandId?: string;
|
|
48
|
+
shopId?: string;
|
|
49
|
+
brandName?: string;
|
|
50
|
+
logoUrl?: string;
|
|
51
|
+
description?: string;
|
|
52
|
+
orderBy?: string;
|
|
53
|
+
status?: boolean;
|
|
54
|
+
}
|
|
55
|
+
export type GoodsBrandInfoFormReq = (GoodsBrandInfoCreateReq | GoodsBrandInfoUpdateReq);
|
|
56
|
+
export interface GoodsBrandInfoExportReq extends EntityExportReq {
|
|
57
|
+
req: GoodsBrandInfoReq;
|
|
58
|
+
}
|
|
59
|
+
export interface GoodsBrandInfoImportReq extends EntityImportReq {
|
|
60
|
+
}
|
|
61
|
+
export interface GoodsBrandInfoMoveKey {
|
|
62
|
+
tenant?: string;
|
|
63
|
+
brandId?: string;
|
|
64
|
+
up?: boolean;
|
|
65
|
+
}
|
|
66
|
+
export interface GoodsBrandInfoEnableKey {
|
|
67
|
+
tenant?: string;
|
|
68
|
+
brandId?: string;
|
|
69
|
+
enable?: boolean;
|
|
70
|
+
}
|
|
@@ -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,67 @@
|
|
|
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
|
+
}
|
|
6
|
+
export interface GoodsLabelInfoModel extends EntityModel {
|
|
7
|
+
tenantId?: string;
|
|
8
|
+
labelId?: string;
|
|
9
|
+
labelName?: string;
|
|
10
|
+
labelCode?: string;
|
|
11
|
+
orderBy?: string;
|
|
12
|
+
status?: boolean;
|
|
13
|
+
note?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface GoodsLabelInfoList extends EntityList {
|
|
16
|
+
results: Array<GoodsLabelInfoModel>;
|
|
17
|
+
}
|
|
18
|
+
export interface GoodsLabelInfoPage extends EntityPage {
|
|
19
|
+
results: Array<GoodsLabelInfoModel>;
|
|
20
|
+
subTotalDto: GoodsLabelInfoModelTotal;
|
|
21
|
+
totalDto: GoodsLabelInfoModelTotal;
|
|
22
|
+
}
|
|
23
|
+
export interface GoodsLabelInfoModelTotal extends EntityTotal {
|
|
24
|
+
totalSize: number;
|
|
25
|
+
}
|
|
26
|
+
export interface GoodsLabelInfoKey extends EntityKey {
|
|
27
|
+
tenant?: string;
|
|
28
|
+
labelId?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface GoodsLabelInfoKeyList extends EntityKeyList {
|
|
31
|
+
tenant?: string;
|
|
32
|
+
labelId?: Array<string>;
|
|
33
|
+
}
|
|
34
|
+
export interface GoodsLabelInfoCreateReq extends EntityCreateReq {
|
|
35
|
+
tenantId?: string;
|
|
36
|
+
labelId?: string;
|
|
37
|
+
labelName?: string;
|
|
38
|
+
labelCode?: string;
|
|
39
|
+
orderBy?: string;
|
|
40
|
+
status?: boolean;
|
|
41
|
+
note?: string;
|
|
42
|
+
}
|
|
43
|
+
export interface GoodsLabelInfoUpdateReq extends EntityUpdateReq {
|
|
44
|
+
tenantId?: string;
|
|
45
|
+
labelId?: string;
|
|
46
|
+
labelName?: string;
|
|
47
|
+
labelCode?: string;
|
|
48
|
+
orderBy?: string;
|
|
49
|
+
status?: boolean;
|
|
50
|
+
note?: string;
|
|
51
|
+
}
|
|
52
|
+
export type GoodsLabelInfoFormReq = (GoodsLabelInfoCreateReq | GoodsLabelInfoUpdateReq);
|
|
53
|
+
export interface GoodsLabelInfoExportReq extends EntityExportReq {
|
|
54
|
+
req: GoodsLabelInfoReq;
|
|
55
|
+
}
|
|
56
|
+
export interface GoodsLabelInfoImportReq extends EntityImportReq {
|
|
57
|
+
}
|
|
58
|
+
export interface GoodsLabelInfoMoveKey {
|
|
59
|
+
tenant?: string;
|
|
60
|
+
labelId?: string;
|
|
61
|
+
up?: boolean;
|
|
62
|
+
}
|
|
63
|
+
export interface GoodsLabelInfoEnableKey {
|
|
64
|
+
tenant?: string;
|
|
65
|
+
labelId?: string;
|
|
66
|
+
enable?: boolean;
|
|
67
|
+
}
|
|
@@ -27,6 +27,7 @@ export interface GoodsSpuModel extends EntityModel {
|
|
|
27
27
|
specType?: string;
|
|
28
28
|
skuList?: GoodsSkuList;
|
|
29
29
|
ensureIds?: Array<string>;
|
|
30
|
+
categoryIds?: Array<string>;
|
|
30
31
|
}
|
|
31
32
|
export interface GoodsSpuList extends EntityList {
|
|
32
33
|
results: Array<GoodsSpuModel>;
|
|
@@ -63,6 +64,7 @@ export interface GoodsSpuCreateReq extends EntityCreateReq {
|
|
|
63
64
|
specType?: string;
|
|
64
65
|
specId?: Array<string>;
|
|
65
66
|
skuSpecValues: Array<GoodsSkuModel>;
|
|
67
|
+
categoryIds?: Array<string>;
|
|
66
68
|
}
|
|
67
69
|
export interface GoodsSpuUpdateReq extends EntityUpdateReq {
|
|
68
70
|
spuId?: string;
|
|
@@ -81,6 +83,7 @@ export interface GoodsSpuUpdateReq extends EntityUpdateReq {
|
|
|
81
83
|
ensureIds?: Array<string>;
|
|
82
84
|
specId?: Array<string>;
|
|
83
85
|
skuSpecValues: Array<GoodsSkuModel>;
|
|
86
|
+
categoryIds?: Array<string>;
|
|
84
87
|
}
|
|
85
88
|
export type GoodsSpuFormReq = GoodsSpuCreateReq | GoodsSpuUpdateReq;
|
|
86
89
|
export interface GoodsSpuEnableKey {
|
|
@@ -53,5 +53,26 @@ declare const _default: {
|
|
|
53
53
|
successFilled: string;
|
|
54
54
|
successApproval: string;
|
|
55
55
|
};
|
|
56
|
+
goodsBrandInfo: {
|
|
57
|
+
name: string;
|
|
58
|
+
tenantId: string;
|
|
59
|
+
brandId: string;
|
|
60
|
+
shopId: string;
|
|
61
|
+
brandName: string;
|
|
62
|
+
logoUrl: string;
|
|
63
|
+
description: string;
|
|
64
|
+
orderBy: string;
|
|
65
|
+
status: string;
|
|
66
|
+
};
|
|
67
|
+
goodsLabelInfo: {
|
|
68
|
+
name: string;
|
|
69
|
+
tenantId: string;
|
|
70
|
+
labelId: string;
|
|
71
|
+
labelName: string;
|
|
72
|
+
labelCode: string;
|
|
73
|
+
orderBy: string;
|
|
74
|
+
status: string;
|
|
75
|
+
note: string;
|
|
76
|
+
};
|
|
56
77
|
};
|
|
57
78
|
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type PropType } from "vue";
|
|
2
|
+
import type { GoodsBrandInfoKey } from "@/api/goods-brand-info/types";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
|
|
4
|
+
modelValue: PropType<boolean>;
|
|
5
|
+
entityKey: {
|
|
6
|
+
type: PropType<GoodsBrandInfoKey>;
|
|
7
|
+
default: () => void;
|
|
8
|
+
};
|
|
9
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
refresh: (...args: any[]) => void;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
12
|
+
modelValue: PropType<boolean>;
|
|
13
|
+
entityKey: {
|
|
14
|
+
type: PropType<GoodsBrandInfoKey>;
|
|
15
|
+
default: () => void;
|
|
16
|
+
};
|
|
17
|
+
}>> & Readonly<{
|
|
18
|
+
onRefresh?: ((...args: any[]) => any) | undefined;
|
|
19
|
+
}>, {
|
|
20
|
+
entityKey: GoodsBrandInfoKey;
|
|
21
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type PropType } from "vue";
|
|
2
|
+
import type { GoodsLabelInfoKey } from "@/api/goods-label-info/types";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
|
|
4
|
+
modelValue: PropType<boolean>;
|
|
5
|
+
entityKey: {
|
|
6
|
+
type: PropType<GoodsLabelInfoKey>;
|
|
7
|
+
default: () => void;
|
|
8
|
+
};
|
|
9
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
refresh: (...args: any[]) => void;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
12
|
+
modelValue: PropType<boolean>;
|
|
13
|
+
entityKey: {
|
|
14
|
+
type: PropType<GoodsLabelInfoKey>;
|
|
15
|
+
default: () => void;
|
|
16
|
+
};
|
|
17
|
+
}>> & Readonly<{
|
|
18
|
+
onRefresh?: ((...args: any[]) => any) | undefined;
|
|
19
|
+
}>, {
|
|
20
|
+
entityKey: GoodsLabelInfoKey;
|
|
21
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|