@kengic/vue 0.1.0 → 0.1.1-beta.1

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 (24) hide show
  1. package/dist/kengic-vue.js +1469 -1056
  2. package/dist/src/apis/WMS/Controllers/VarCatalogController/Add.d.ts +16 -0
  3. package/dist/src/apis/WMS/Controllers/VarCatalogController/Delete.d.ts +18 -0
  4. package/dist/src/apis/WMS/Controllers/VarCatalogController/DeleteBatch.d.ts +18 -0
  5. package/dist/src/apis/WMS/Controllers/VarCatalogController/Edit.d.ts +16 -0
  6. package/dist/src/apis/WMS/Controllers/VarCatalogController/ExportXls.d.ts +30 -0
  7. package/dist/src/apis/WMS/Controllers/VarCatalogController/ImportExcel.d.ts +15 -0
  8. package/dist/src/apis/WMS/Controllers/VarCatalogController/List.d.ts +39 -0
  9. package/dist/src/apis/WMS/Controllers/VarCatalogController/QueryById.d.ts +19 -0
  10. package/dist/src/apis/WMS/Controllers/VarCatalogController/index.d.ts +8 -0
  11. package/dist/src/apis/WMS/Controllers/VarContextController/Add.d.ts +16 -0
  12. package/dist/src/apis/WMS/Controllers/VarContextController/Delete.d.ts +18 -0
  13. package/dist/src/apis/WMS/Controllers/VarContextController/DeleteBatch.d.ts +18 -0
  14. package/dist/src/apis/WMS/Controllers/VarContextController/Edit.d.ts +16 -0
  15. package/dist/src/apis/WMS/Controllers/VarContextController/ExportXls.d.ts +26 -0
  16. package/dist/src/apis/WMS/Controllers/VarContextController/ImportExcel.d.ts +15 -0
  17. package/dist/src/apis/WMS/Controllers/VarContextController/List.d.ts +35 -0
  18. package/dist/src/apis/WMS/Controllers/VarContextController/QueryById.d.ts +19 -0
  19. package/dist/src/apis/WMS/Controllers/VarContextController/index.d.ts +8 -0
  20. package/dist/src/apis/WMS/Controllers/index.d.ts +2 -0
  21. package/dist/src/components/KgVar/hooks/index.d.ts +2 -2
  22. package/dist/src/index.d.ts +2 -1
  23. package/kg.config.ts +2 -0
  24. package/package.json +1 -1
@@ -0,0 +1,16 @@
1
+ import { IRequestConfig, IRequestOptions } from '../../../../services';
2
+ import * as DEF from '../../../def';
3
+ /** 请求参数. */
4
+ export declare class AddQuery {
5
+ }
6
+ /**
7
+ * 变量别名-添加
8
+ *
9
+ * @param config 请求配置.
10
+ * @param option 请求选项.
11
+ */
12
+ export declare function Add(config?: IRequestConfig<AddQuery, DEF.WMS.VarCatalog>, option?: IRequestOptions): Promise<string>;
13
+ export declare namespace Add {
14
+ var method: "POST";
15
+ var url: string;
16
+ }
@@ -0,0 +1,18 @@
1
+ import { IRequestConfig, IRequestOptions } from '../../../../services';
2
+ /** 请求参数. */
3
+ export declare class DeleteQuery {
4
+ /** id */
5
+ id: string | null;
6
+ constructor(obj?: DeleteQuery);
7
+ }
8
+ /**
9
+ * 变量别名-通过id删除
10
+ *
11
+ * @param config 请求配置.
12
+ * @param option 请求选项.
13
+ */
14
+ export declare function Delete(config?: IRequestConfig<DeleteQuery, {}>, option?: IRequestOptions): Promise<string>;
15
+ export declare namespace Delete {
16
+ var method: "DELETE";
17
+ var url: string;
18
+ }
@@ -0,0 +1,18 @@
1
+ import { IRequestConfig, IRequestOptions } from '../../../../services';
2
+ /** 请求参数. */
3
+ export declare class DeleteBatchQuery {
4
+ /** ids */
5
+ ids: string | null;
6
+ constructor(obj?: DeleteBatchQuery);
7
+ }
8
+ /**
9
+ * 变量别名-批量删除
10
+ *
11
+ * @param config 请求配置.
12
+ * @param option 请求选项.
13
+ */
14
+ export declare function DeleteBatch(config?: IRequestConfig<DeleteBatchQuery, {}>, option?: IRequestOptions): Promise<string>;
15
+ export declare namespace DeleteBatch {
16
+ var method: "DELETE";
17
+ var url: string;
18
+ }
@@ -0,0 +1,16 @@
1
+ import { IRequestConfig, IRequestOptions } from '../../../../services';
2
+ import * as DEF from '../../../def';
3
+ /** 请求参数. */
4
+ export declare class EditQuery {
5
+ }
6
+ /**
7
+ * 变量别名-编辑
8
+ *
9
+ * @param config 请求配置.
10
+ * @param option 请求选项.
11
+ */
12
+ export declare function Edit(config?: IRequestConfig<EditQuery, DEF.WMS.VarCatalog>, option?: IRequestOptions): Promise<string>;
13
+ export declare namespace Edit {
14
+ var method: "POST";
15
+ var url: string;
16
+ }
@@ -0,0 +1,30 @@
1
+ import { IRequestConfig, IRequestOptions } from '../../../../services';
2
+ /** 请求参数. */
3
+ export declare class ExportXlsQuery {
4
+ /** 定制级别. */
5
+ custLvl?: string | null;
6
+ /** 界面标识. */
7
+ frmId?: string | null;
8
+ /** 分组. */
9
+ grpNam?: string | null;
10
+ /** 主键. */
11
+ id?: string | null;
12
+ /** 语言. */
13
+ localeId?: string | null;
14
+ /** 变量名称. */
15
+ varNam?: string | null;
16
+ /** 显示文本. */
17
+ varText?: string | null;
18
+ constructor(obj?: ExportXlsQuery);
19
+ }
20
+ /**
21
+ * 变量别名-导出
22
+ *
23
+ * @param config 请求配置.
24
+ * @param option 请求选项.
25
+ */
26
+ export declare function ExportXls(config?: IRequestConfig<ExportXlsQuery, {}>, option?: IRequestOptions): Promise<any>;
27
+ export declare namespace ExportXls {
28
+ var method: "GET";
29
+ var url: string;
30
+ }
@@ -0,0 +1,15 @@
1
+ import { IRequestConfig, IRequestOptions } from '../../../../services';
2
+ /** 请求参数. */
3
+ export declare class ImportExcelQuery {
4
+ }
5
+ /**
6
+ * 变量别名-导入
7
+ *
8
+ * @param config 请求配置.
9
+ * @param option 请求选项.
10
+ */
11
+ export declare function ImportExcel(config?: IRequestConfig<ImportExcelQuery, {}>, option?: IRequestOptions): Promise<Record<any, any>>;
12
+ export declare namespace ImportExcel {
13
+ var method: "POST";
14
+ var url: string;
15
+ }
@@ -0,0 +1,39 @@
1
+ import { IRequestConfig, IRequestOptions } from '../../../../services';
2
+ import * as DEF from '../../../def';
3
+ /** 请求参数. */
4
+ export declare class ListQuery {
5
+ /** 排序字段. */
6
+ column?: string | null;
7
+ /** 定制级别. */
8
+ custLvl?: string | null;
9
+ /** 界面标识. */
10
+ frmId?: string | null;
11
+ /** 分组. */
12
+ grpNam?: string | null;
13
+ /** 主键. */
14
+ id?: string | null;
15
+ /** 语言. */
16
+ localeId?: string | null;
17
+ /** 排序方式. */
18
+ order?: 'asc' | 'desc' | null;
19
+ /** 页码. */
20
+ pageNo?: number | null;
21
+ /** 每页条数. */
22
+ pageSize?: number | null;
23
+ /** 变量名称. */
24
+ varNam?: string | null;
25
+ /** 显示文本. */
26
+ varText?: string | null;
27
+ constructor(obj?: ListQuery);
28
+ }
29
+ /**
30
+ * 变量别名-分页列表查询
31
+ *
32
+ * @param config 请求配置.
33
+ * @param option 请求选项.
34
+ */
35
+ export declare function List(config?: IRequestConfig<ListQuery, {}>, option?: IRequestOptions): Promise<DEF.WMS.IPage<DEF.WMS.VarCatalog>>;
36
+ export declare namespace List {
37
+ var method: "GET";
38
+ var url: string;
39
+ }
@@ -0,0 +1,19 @@
1
+ import { IRequestConfig, IRequestOptions } from '../../../../services';
2
+ import * as DEF from '../../../def';
3
+ /** 请求参数. */
4
+ export declare class QueryByIdQuery {
5
+ /** id */
6
+ id: string | null;
7
+ constructor(obj?: QueryByIdQuery);
8
+ }
9
+ /**
10
+ * 变量别名-通过id查询
11
+ *
12
+ * @param config 请求配置.
13
+ * @param option 请求选项.
14
+ */
15
+ export declare function QueryById(config?: IRequestConfig<QueryByIdQuery, {}>, option?: IRequestOptions): Promise<DEF.WMS.VarCatalog>;
16
+ export declare namespace QueryById {
17
+ var method: "GET";
18
+ var url: string;
19
+ }
@@ -0,0 +1,8 @@
1
+ export { Add, AddQuery } from './Add';
2
+ export { Delete, DeleteQuery } from './Delete';
3
+ export { DeleteBatch, DeleteBatchQuery } from './DeleteBatch';
4
+ export { Edit, EditQuery } from './Edit';
5
+ export { ExportXls, ExportXlsQuery } from './ExportXls';
6
+ export { ImportExcel, ImportExcelQuery } from './ImportExcel';
7
+ export { List, ListQuery } from './List';
8
+ export { QueryById, QueryByIdQuery } from './QueryById';
@@ -0,0 +1,16 @@
1
+ import { IRequestConfig, IRequestOptions } from '../../../../services';
2
+ import * as DEF from '../../../def';
3
+ /** 请求参数. */
4
+ export declare class AddQuery {
5
+ }
6
+ /**
7
+ * 变量-添加
8
+ *
9
+ * @param config 请求配置.
10
+ * @param option 请求选项.
11
+ */
12
+ export declare function Add(config?: IRequestConfig<AddQuery, DEF.WMS.VarContext>, option?: IRequestOptions): Promise<string>;
13
+ export declare namespace Add {
14
+ var method: "POST";
15
+ var url: string;
16
+ }
@@ -0,0 +1,18 @@
1
+ import { IRequestConfig, IRequestOptions } from '../../../../services';
2
+ /** 请求参数. */
3
+ export declare class DeleteQuery {
4
+ /** id */
5
+ id: string | null;
6
+ constructor(obj?: DeleteQuery);
7
+ }
8
+ /**
9
+ * 变量-通过id删除
10
+ *
11
+ * @param config 请求配置.
12
+ * @param option 请求选项.
13
+ */
14
+ export declare function Delete(config?: IRequestConfig<DeleteQuery, {}>, option?: IRequestOptions): Promise<string>;
15
+ export declare namespace Delete {
16
+ var method: "DELETE";
17
+ var url: string;
18
+ }
@@ -0,0 +1,18 @@
1
+ import { IRequestConfig, IRequestOptions } from '../../../../services';
2
+ /** 请求参数. */
3
+ export declare class DeleteBatchQuery {
4
+ /** ids */
5
+ ids: string | null;
6
+ constructor(obj?: DeleteBatchQuery);
7
+ }
8
+ /**
9
+ * 变量-批量删除
10
+ *
11
+ * @param config 请求配置.
12
+ * @param option 请求选项.
13
+ */
14
+ export declare function DeleteBatch(config?: IRequestConfig<DeleteBatchQuery, {}>, option?: IRequestOptions): Promise<string>;
15
+ export declare namespace DeleteBatch {
16
+ var method: "DELETE";
17
+ var url: string;
18
+ }
@@ -0,0 +1,16 @@
1
+ import { IRequestConfig, IRequestOptions } from '../../../../services';
2
+ import * as DEF from '../../../def';
3
+ /** 请求参数. */
4
+ export declare class EditQuery {
5
+ }
6
+ /**
7
+ * 变量-编辑
8
+ *
9
+ * @param config 请求配置.
10
+ * @param option 请求选项.
11
+ */
12
+ export declare function Edit(config?: IRequestConfig<EditQuery, DEF.WMS.VarContext>, option?: IRequestOptions): Promise<string>;
13
+ export declare namespace Edit {
14
+ var method: "POST";
15
+ var url: string;
16
+ }
@@ -0,0 +1,26 @@
1
+ import { IRequestConfig, IRequestOptions } from '../../../../services';
2
+ /** 请求参数. */
3
+ export declare class ExportXlsQuery {
4
+ /** 界面标识. */
5
+ frmId?: string | null;
6
+ /** 界面名称. */
7
+ frmNam?: string | null;
8
+ /** 分组. */
9
+ grpNam?: string | null;
10
+ /** 主键. */
11
+ id?: string | null;
12
+ /** 变量名称. */
13
+ varNam?: string | null;
14
+ constructor(obj?: ExportXlsQuery);
15
+ }
16
+ /**
17
+ * 变量-导出
18
+ *
19
+ * @param config 请求配置.
20
+ * @param option 请求选项.
21
+ */
22
+ export declare function ExportXls(config?: IRequestConfig<ExportXlsQuery, {}>, option?: IRequestOptions): Promise<any>;
23
+ export declare namespace ExportXls {
24
+ var method: "GET";
25
+ var url: string;
26
+ }
@@ -0,0 +1,15 @@
1
+ import { IRequestConfig, IRequestOptions } from '../../../../services';
2
+ /** 请求参数. */
3
+ export declare class ImportExcelQuery {
4
+ }
5
+ /**
6
+ * 变量-导入
7
+ *
8
+ * @param config 请求配置.
9
+ * @param option 请求选项.
10
+ */
11
+ export declare function ImportExcel(config?: IRequestConfig<ImportExcelQuery, {}>, option?: IRequestOptions): Promise<Record<any, any>>;
12
+ export declare namespace ImportExcel {
13
+ var method: "POST";
14
+ var url: string;
15
+ }
@@ -0,0 +1,35 @@
1
+ import { IRequestConfig, IRequestOptions } from '../../../../services';
2
+ import * as DEF from '../../../def';
3
+ /** 请求参数. */
4
+ export declare class ListQuery {
5
+ /** 排序字段. */
6
+ column?: string | null;
7
+ /** 界面标识. */
8
+ frmId?: string | null;
9
+ /** 界面名称. */
10
+ frmNam?: string | null;
11
+ /** 分组. */
12
+ grpNam?: string | null;
13
+ /** 主键. */
14
+ id?: string | null;
15
+ /** 排序方式. */
16
+ order?: 'asc' | 'desc' | null;
17
+ /** 页码. */
18
+ pageNo?: number | null;
19
+ /** 每页条数. */
20
+ pageSize?: number | null;
21
+ /** 变量名称. */
22
+ varNam?: string | null;
23
+ constructor(obj?: ListQuery);
24
+ }
25
+ /**
26
+ * 变量-分页列表查询
27
+ *
28
+ * @param config 请求配置.
29
+ * @param option 请求选项.
30
+ */
31
+ export declare function List(config?: IRequestConfig<ListQuery, {}>, option?: IRequestOptions): Promise<DEF.WMS.IPage<DEF.WMS.VarContext>>;
32
+ export declare namespace List {
33
+ var method: "GET";
34
+ var url: string;
35
+ }
@@ -0,0 +1,19 @@
1
+ import { IRequestConfig, IRequestOptions } from '../../../../services';
2
+ import * as DEF from '../../../def';
3
+ /** 请求参数. */
4
+ export declare class QueryByIdQuery {
5
+ /** id */
6
+ id: string | null;
7
+ constructor(obj?: QueryByIdQuery);
8
+ }
9
+ /**
10
+ * 变量-通过id查询
11
+ *
12
+ * @param config 请求配置.
13
+ * @param option 请求选项.
14
+ */
15
+ export declare function QueryById(config?: IRequestConfig<QueryByIdQuery, {}>, option?: IRequestOptions): Promise<DEF.WMS.VarContext>;
16
+ export declare namespace QueryById {
17
+ var method: "GET";
18
+ var url: string;
19
+ }
@@ -0,0 +1,8 @@
1
+ export { Add, AddQuery } from './Add';
2
+ export { Delete, DeleteQuery } from './Delete';
3
+ export { DeleteBatch, DeleteBatchQuery } from './DeleteBatch';
4
+ export { Edit, EditQuery } from './Edit';
5
+ export { ExportXls, ExportXlsQuery } from './ExportXls';
6
+ export { ImportExcel, ImportExcelQuery } from './ImportExcel';
7
+ export { List, ListQuery } from './List';
8
+ export { QueryById, QueryByIdQuery } from './QueryById';
@@ -1 +1,3 @@
1
1
  export * as VarController from './VarController';
2
+ export * as VarCatalogController from './VarCatalogController';
3
+ export * as VarContextController from './VarContextController';
@@ -7,7 +7,7 @@ export declare function useKgVar(formID: string): {
7
7
  /** 变量配置数据. */
8
8
  kgVarStore: import("pinia").Store<"KgVar", import("../store/index.data").KgVarState, {
9
9
  getTopFormID(): string | null;
10
- getVarCatalogs(): Map<string, import("../../../apis/WMS/models").VarCatalog[]>;
10
+ getVarCatalogs(): Map<string, import("../../..").VarCatalog[]>;
11
11
  }, {
12
12
  leave(formID: string): void;
13
13
  deleteAll(formID: string): void;
@@ -28,7 +28,7 @@ export declare function useKgVar(formID: string): {
28
28
  /** 变量配置数据. */
29
29
  kgVarStore: import("pinia").Store<"KgVar", import("../store/index.data").KgVarState, {
30
30
  getTopFormID(): string | null;
31
- getVarCatalogs(): Map<string, import("../../../apis/WMS/models").VarCatalog[]>;
31
+ getVarCatalogs(): Map<string, import("../../..").VarCatalog[]>;
32
32
  }, {
33
33
  leave(formID: string): void;
34
34
  deleteAll(formID: string): void;
@@ -1,5 +1,6 @@
1
1
  import './assets/index.less';
2
- export * from './apis';
2
+ export { API as KG_API } from './apis';
3
+ export * from './apis/WMS/models';
3
4
  export * from './components';
4
5
  export * from './consts';
5
6
  export * from './services';
package/kg.config.ts CHANGED
@@ -10,6 +10,8 @@ const config: IPontConfig = {
10
10
  responseClassName: 'Result',
11
11
  includeControllers: {
12
12
  VarController: ['GetAll'],
13
+ VarContextController: ['Add', 'Delete', 'DeleteBatch', 'Edit', 'List', 'QueryById', 'ExportXls', 'ImportExcel'],
14
+ VarCatalogController: ['Add', 'Delete', 'DeleteBatch', 'Edit', 'List', 'QueryById', 'ExportXls', 'ImportExcel'],
13
15
  },
14
16
  includeClasses: ['IPage', 'VarCatalog', 'VarContext', 'VarDTO'],
15
17
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.1.0",
3
+ "version": "0.1.1-beta.1",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "rimraf dist && vue-tsc && vite build --mode development",