@kengic/vue 0.1.1-beta.2 → 0.1.1-beta.3
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/kengic-vue.js +19 -19
- package/dist/src/apis/WMS/Controllers/{VarCatController → VarCatalogController}/Add.d.ts +1 -1
- package/dist/src/apis/WMS/Controllers/{VarCatController → VarCatalogController}/Edit.d.ts +1 -1
- package/dist/src/apis/WMS/Controllers/{VarCatController → VarCatalogController}/ExportXls.d.ts +6 -6
- package/dist/src/apis/WMS/Controllers/{VarCatController → VarCatalogController}/List.d.ts +7 -7
- package/dist/src/apis/WMS/Controllers/{VarCatController → VarCatalogController}/QueryById.d.ts +1 -1
- package/dist/src/apis/WMS/Controllers/VarContextController/ExportXls.d.ts +4 -4
- package/dist/src/apis/WMS/Controllers/VarContextController/List.d.ts +4 -4
- package/dist/src/apis/WMS/Controllers/index.d.ts +1 -1
- package/dist/src/apis/WMS/models.d.ts +16 -16
- package/dist/src/components/KgVar/hooks/index.d.ts +2 -2
- package/dist/src/components/KgVar/store/index.d.ts +2 -2
- package/dist/src/components/KgVar/store/index.data.d.ts +2 -2
- package/package.json +1 -1
- /package/dist/src/apis/WMS/Controllers/{VarCatController → VarCatalogController}/Delete.d.ts +0 -0
- /package/dist/src/apis/WMS/Controllers/{VarCatController → VarCatalogController}/DeleteBatch.d.ts +0 -0
- /package/dist/src/apis/WMS/Controllers/{VarCatController → VarCatalogController}/ImportExcel.d.ts +0 -0
- /package/dist/src/apis/WMS/Controllers/{VarCatController → VarCatalogController}/index.d.ts +0 -0
package/dist/kengic-vue.js
CHANGED
|
@@ -78,10 +78,10 @@ class jl {
|
|
|
78
78
|
}
|
|
79
79
|
class Vl {
|
|
80
80
|
constructor(t) {
|
|
81
|
-
u(this, "
|
|
81
|
+
u(this, "varCatalogs");
|
|
82
82
|
w(t != null ? t : {}).forEach((r) => {
|
|
83
83
|
switch (r) {
|
|
84
|
-
case "
|
|
84
|
+
case "varCatalogs":
|
|
85
85
|
Reflect.set(this, r, Reflect.get(t != null ? t : {}, r));
|
|
86
86
|
break;
|
|
87
87
|
}
|
|
@@ -136,7 +136,7 @@ function _e(e, t) {
|
|
|
136
136
|
);
|
|
137
137
|
}
|
|
138
138
|
_e.method = "POST";
|
|
139
|
-
_e.url = "/var/
|
|
139
|
+
_e.url = "/var/VarCatalog/add";
|
|
140
140
|
class ia {
|
|
141
141
|
constructor(t) {
|
|
142
142
|
u(this, "id");
|
|
@@ -160,7 +160,7 @@ function we(e, t) {
|
|
|
160
160
|
);
|
|
161
161
|
}
|
|
162
162
|
we.method = "DELETE";
|
|
163
|
-
we.url = "/var/
|
|
163
|
+
we.url = "/var/VarCatalog/delete";
|
|
164
164
|
class ca {
|
|
165
165
|
constructor(t) {
|
|
166
166
|
u(this, "ids");
|
|
@@ -184,7 +184,7 @@ function Te(e, t) {
|
|
|
184
184
|
);
|
|
185
185
|
}
|
|
186
186
|
Te.method = "DELETE";
|
|
187
|
-
Te.url = "/var/
|
|
187
|
+
Te.url = "/var/VarCatalog/deleteBatch";
|
|
188
188
|
class sa {
|
|
189
189
|
}
|
|
190
190
|
function ke(e, t) {
|
|
@@ -198,7 +198,7 @@ function ke(e, t) {
|
|
|
198
198
|
);
|
|
199
199
|
}
|
|
200
200
|
ke.method = "POST";
|
|
201
|
-
ke.url = "/var/
|
|
201
|
+
ke.url = "/var/VarCatalog/edit";
|
|
202
202
|
class ua {
|
|
203
203
|
constructor(t) {
|
|
204
204
|
u(this, "custLvl");
|
|
@@ -234,7 +234,7 @@ function Pe(e, t) {
|
|
|
234
234
|
);
|
|
235
235
|
}
|
|
236
236
|
Pe.method = "GET";
|
|
237
|
-
Pe.url = "/var/
|
|
237
|
+
Pe.url = "/var/VarCatalog/exportXls";
|
|
238
238
|
class la {
|
|
239
239
|
}
|
|
240
240
|
function Ie(e, t) {
|
|
@@ -248,7 +248,7 @@ function Ie(e, t) {
|
|
|
248
248
|
);
|
|
249
249
|
}
|
|
250
250
|
Ie.method = "POST";
|
|
251
|
-
Ie.url = "/var/
|
|
251
|
+
Ie.url = "/var/VarCatalog/importExcel";
|
|
252
252
|
class fa {
|
|
253
253
|
constructor(t) {
|
|
254
254
|
u(this, "column");
|
|
@@ -292,7 +292,7 @@ function xe(e, t) {
|
|
|
292
292
|
);
|
|
293
293
|
}
|
|
294
294
|
xe.method = "GET";
|
|
295
|
-
xe.url = "/var/
|
|
295
|
+
xe.url = "/var/VarCatalog/list";
|
|
296
296
|
class da {
|
|
297
297
|
constructor(t) {
|
|
298
298
|
u(this, "id");
|
|
@@ -316,7 +316,7 @@ function De(e, t) {
|
|
|
316
316
|
);
|
|
317
317
|
}
|
|
318
318
|
De.method = "GET";
|
|
319
|
-
De.url = "/var/
|
|
319
|
+
De.url = "/var/VarCatalog/queryById";
|
|
320
320
|
const ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
321
321
|
__proto__: null,
|
|
322
322
|
Add: _e,
|
|
@@ -543,7 +543,7 @@ const Aa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
543
543
|
}, Symbol.toStringTag, { value: "Module" })), Ea = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
544
544
|
__proto__: null,
|
|
545
545
|
VarController: aa,
|
|
546
|
-
|
|
546
|
+
VarCatalogController: ga,
|
|
547
547
|
VarContextController: Aa
|
|
548
548
|
}, Symbol.toStringTag, { value: "Module" })), Ll = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
549
549
|
__proto__: null,
|
|
@@ -2766,11 +2766,11 @@ let Et = null;
|
|
|
2766
2766
|
const _l = () => (Et || (Et = $l("KgVar", {
|
|
2767
2767
|
state: () => ({
|
|
2768
2768
|
formIDs: [],
|
|
2769
|
-
|
|
2769
|
+
varCatalogs: /* @__PURE__ */ new Map()
|
|
2770
2770
|
}),
|
|
2771
2771
|
getters: {
|
|
2772
|
-
|
|
2773
|
-
return this.
|
|
2772
|
+
getVarCatalogs() {
|
|
2773
|
+
return this.varCatalogs;
|
|
2774
2774
|
},
|
|
2775
2775
|
getTopFormID() {
|
|
2776
2776
|
var e;
|
|
@@ -2788,16 +2788,16 @@ const _l = () => (Et || (Et = $l("KgVar", {
|
|
|
2788
2788
|
async retrieveAll(e) {
|
|
2789
2789
|
if (!e)
|
|
2790
2790
|
return;
|
|
2791
|
-
const t = Ee(tu), {
|
|
2791
|
+
const t = Ee(tu), { varCatalogs: r } = await oe({
|
|
2792
2792
|
params: {
|
|
2793
2793
|
frmId: e,
|
|
2794
2794
|
localeId: Gn(t != null ? t : "en")
|
|
2795
2795
|
}
|
|
2796
2796
|
});
|
|
2797
|
-
this.
|
|
2797
|
+
this.varCatalogs.set(e, r != null ? r : []);
|
|
2798
2798
|
},
|
|
2799
2799
|
deleteAll(e) {
|
|
2800
|
-
this.
|
|
2800
|
+
this.varCatalogs.delete(e);
|
|
2801
2801
|
}
|
|
2802
2802
|
}
|
|
2803
2803
|
}).bind(null, Ee(ru))), Et);
|
|
@@ -2807,7 +2807,7 @@ function wl(e) {
|
|
|
2807
2807
|
var i, c;
|
|
2808
2808
|
if (!a)
|
|
2809
2809
|
return "";
|
|
2810
|
-
const o = t.
|
|
2810
|
+
const o = t.getVarCatalogs.get(e);
|
|
2811
2811
|
return o && (c = (i = o.find((s) => s.varNam === a)) == null ? void 0 : i.varText) != null ? c : a;
|
|
2812
2812
|
}
|
|
2813
2813
|
return Ft() ? (rn(() => {
|
|
@@ -3113,7 +3113,7 @@ export {
|
|
|
3113
3113
|
ql as KgUtil,
|
|
3114
3114
|
Jl as KgYesOrNo,
|
|
3115
3115
|
W as Logger,
|
|
3116
|
-
Ml as
|
|
3116
|
+
Ml as VarCatalog,
|
|
3117
3117
|
jl as VarContext,
|
|
3118
3118
|
Vl as VarDTO,
|
|
3119
3119
|
eu as addOnlineRoutesForAllApps,
|
|
@@ -9,7 +9,7 @@ export declare class AddQuery {
|
|
|
9
9
|
* @param config 请求配置.
|
|
10
10
|
* @param option 请求选项.
|
|
11
11
|
*/
|
|
12
|
-
export declare function Add(config?: IRequestConfig<AddQuery, DEF.WMS.
|
|
12
|
+
export declare function Add(config?: IRequestConfig<AddQuery, DEF.WMS.VarCatalog>, option?: IRequestOptions): Promise<string>;
|
|
13
13
|
export declare namespace Add {
|
|
14
14
|
var method: "POST";
|
|
15
15
|
var url: string;
|
|
@@ -9,7 +9,7 @@ export declare class EditQuery {
|
|
|
9
9
|
* @param config 请求配置.
|
|
10
10
|
* @param option 请求选项.
|
|
11
11
|
*/
|
|
12
|
-
export declare function Edit(config?: IRequestConfig<EditQuery, DEF.WMS.
|
|
12
|
+
export declare function Edit(config?: IRequestConfig<EditQuery, DEF.WMS.VarCatalog>, option?: IRequestOptions): Promise<string>;
|
|
13
13
|
export declare namespace Edit {
|
|
14
14
|
var method: "POST";
|
|
15
15
|
var url: string;
|
package/dist/src/apis/WMS/Controllers/{VarCatController → VarCatalogController}/ExportXls.d.ts
RENAMED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { IRequestConfig, IRequestOptions } from '../../../../services';
|
|
2
2
|
/** 请求参数. */
|
|
3
3
|
export declare class ExportXlsQuery {
|
|
4
|
-
/**
|
|
4
|
+
/** 定制级别. */
|
|
5
5
|
custLvl?: string | null;
|
|
6
|
-
/**
|
|
6
|
+
/** 界面标识. */
|
|
7
7
|
frmId?: string | null;
|
|
8
|
-
/**
|
|
8
|
+
/** 分组. */
|
|
9
9
|
grpNam?: string | null;
|
|
10
10
|
/** 主键. */
|
|
11
11
|
id?: string | null;
|
|
12
|
-
/**
|
|
12
|
+
/** 语言. */
|
|
13
13
|
localeId?: string | null;
|
|
14
|
-
/**
|
|
14
|
+
/** 变量名称. */
|
|
15
15
|
varNam?: string | null;
|
|
16
|
-
/**
|
|
16
|
+
/** 显示文本. */
|
|
17
17
|
varText?: string | null;
|
|
18
18
|
constructor(obj?: ExportXlsQuery);
|
|
19
19
|
}
|
|
@@ -4,15 +4,15 @@ import * as DEF from '../../../def';
|
|
|
4
4
|
export declare class ListQuery {
|
|
5
5
|
/** 排序字段. */
|
|
6
6
|
column?: string | null;
|
|
7
|
-
/**
|
|
7
|
+
/** 定制级别. */
|
|
8
8
|
custLvl?: string | null;
|
|
9
|
-
/**
|
|
9
|
+
/** 界面标识. */
|
|
10
10
|
frmId?: string | null;
|
|
11
|
-
/**
|
|
11
|
+
/** 分组. */
|
|
12
12
|
grpNam?: string | null;
|
|
13
13
|
/** 主键. */
|
|
14
14
|
id?: string | null;
|
|
15
|
-
/**
|
|
15
|
+
/** 语言. */
|
|
16
16
|
localeId?: string | null;
|
|
17
17
|
/** 排序方式. */
|
|
18
18
|
order?: 'asc' | 'desc' | null;
|
|
@@ -20,9 +20,9 @@ export declare class ListQuery {
|
|
|
20
20
|
pageNo?: number | null;
|
|
21
21
|
/** 每页条数. */
|
|
22
22
|
pageSize?: number | null;
|
|
23
|
-
/**
|
|
23
|
+
/** 变量名称. */
|
|
24
24
|
varNam?: string | null;
|
|
25
|
-
/**
|
|
25
|
+
/** 显示文本. */
|
|
26
26
|
varText?: string | null;
|
|
27
27
|
constructor(obj?: ListQuery);
|
|
28
28
|
}
|
|
@@ -32,7 +32,7 @@ export declare class ListQuery {
|
|
|
32
32
|
* @param config 请求配置.
|
|
33
33
|
* @param option 请求选项.
|
|
34
34
|
*/
|
|
35
|
-
export declare function List(config?: IRequestConfig<ListQuery, {}>, option?: IRequestOptions): Promise<DEF.WMS.IPage<DEF.WMS.
|
|
35
|
+
export declare function List(config?: IRequestConfig<ListQuery, {}>, option?: IRequestOptions): Promise<DEF.WMS.IPage<DEF.WMS.VarCatalog>>;
|
|
36
36
|
export declare namespace List {
|
|
37
37
|
var method: "GET";
|
|
38
38
|
var url: string;
|
package/dist/src/apis/WMS/Controllers/{VarCatController → VarCatalogController}/QueryById.d.ts
RENAMED
|
@@ -12,7 +12,7 @@ export declare class QueryByIdQuery {
|
|
|
12
12
|
* @param config 请求配置.
|
|
13
13
|
* @param option 请求选项.
|
|
14
14
|
*/
|
|
15
|
-
export declare function QueryById(config?: IRequestConfig<QueryByIdQuery, {}>, option?: IRequestOptions): Promise<DEF.WMS.
|
|
15
|
+
export declare function QueryById(config?: IRequestConfig<QueryByIdQuery, {}>, option?: IRequestOptions): Promise<DEF.WMS.VarCatalog>;
|
|
16
16
|
export declare namespace QueryById {
|
|
17
17
|
var method: "GET";
|
|
18
18
|
var url: string;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { IRequestConfig, IRequestOptions } from '../../../../services';
|
|
2
2
|
/** 请求参数. */
|
|
3
3
|
export declare class ExportXlsQuery {
|
|
4
|
-
/**
|
|
4
|
+
/** 界面标识. */
|
|
5
5
|
frmId?: string | null;
|
|
6
|
-
/**
|
|
6
|
+
/** 界面名称. */
|
|
7
7
|
frmNam?: string | null;
|
|
8
|
-
/**
|
|
8
|
+
/** 分组. */
|
|
9
9
|
grpNam?: string | null;
|
|
10
10
|
/** 主键. */
|
|
11
11
|
id?: string | null;
|
|
12
|
-
/**
|
|
12
|
+
/** 变量名称. */
|
|
13
13
|
varNam?: string | null;
|
|
14
14
|
constructor(obj?: ExportXlsQuery);
|
|
15
15
|
}
|
|
@@ -4,11 +4,11 @@ import * as DEF from '../../../def';
|
|
|
4
4
|
export declare class ListQuery {
|
|
5
5
|
/** 排序字段. */
|
|
6
6
|
column?: string | null;
|
|
7
|
-
/**
|
|
7
|
+
/** 界面标识. */
|
|
8
8
|
frmId?: string | null;
|
|
9
|
-
/**
|
|
9
|
+
/** 界面名称. */
|
|
10
10
|
frmNam?: string | null;
|
|
11
|
-
/**
|
|
11
|
+
/** 分组. */
|
|
12
12
|
grpNam?: string | null;
|
|
13
13
|
/** 主键. */
|
|
14
14
|
id?: string | null;
|
|
@@ -18,7 +18,7 @@ export declare class ListQuery {
|
|
|
18
18
|
pageNo?: number | null;
|
|
19
19
|
/** 每页条数. */
|
|
20
20
|
pageSize?: number | null;
|
|
21
|
-
/**
|
|
21
|
+
/** 变量名称. */
|
|
22
22
|
varNam?: string | null;
|
|
23
23
|
constructor(obj?: ListQuery);
|
|
24
24
|
}
|
|
@@ -12,38 +12,38 @@ export declare class IPage<T0> {
|
|
|
12
12
|
constructor(obj?: IPage<T0>);
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
|
-
* 变量别名
|
|
15
|
+
* 变量别名
|
|
16
16
|
*/
|
|
17
|
-
export declare class
|
|
18
|
-
/**
|
|
17
|
+
export declare class VarCatalog {
|
|
18
|
+
/** 定制级别. */
|
|
19
19
|
custLvl?: string | null;
|
|
20
|
-
/**
|
|
20
|
+
/** 界面标识. */
|
|
21
21
|
frmId?: string | null;
|
|
22
|
-
/**
|
|
22
|
+
/** 分组. */
|
|
23
23
|
grpNam?: string | null;
|
|
24
24
|
/** 主键. */
|
|
25
25
|
id?: string | null;
|
|
26
|
-
/**
|
|
26
|
+
/** 语言. */
|
|
27
27
|
localeId?: string | null;
|
|
28
|
-
/**
|
|
28
|
+
/** 变量名称. */
|
|
29
29
|
varNam?: string | null;
|
|
30
|
-
/**
|
|
30
|
+
/** 显示文本. */
|
|
31
31
|
varText?: string | null;
|
|
32
|
-
constructor(obj?:
|
|
32
|
+
constructor(obj?: VarCatalog);
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* 变量
|
|
36
36
|
*/
|
|
37
37
|
export declare class VarContext {
|
|
38
|
-
/**
|
|
38
|
+
/** 界面标识. */
|
|
39
39
|
frmId?: string | null;
|
|
40
|
-
/**
|
|
40
|
+
/** 界面名称. */
|
|
41
41
|
frmNam?: string | null;
|
|
42
|
-
/**
|
|
42
|
+
/** 分组. */
|
|
43
43
|
grpNam?: string | null;
|
|
44
44
|
/** 主键. */
|
|
45
45
|
id?: string | null;
|
|
46
|
-
/**
|
|
46
|
+
/** 变量名称. */
|
|
47
47
|
varNam?: string | null;
|
|
48
48
|
constructor(obj?: VarContext);
|
|
49
49
|
}
|
|
@@ -51,8 +51,8 @@ export declare class VarContext {
|
|
|
51
51
|
* 变量配置.
|
|
52
52
|
*/
|
|
53
53
|
export declare class VarDTO {
|
|
54
|
-
/**
|
|
55
|
-
|
|
54
|
+
/** 变量别名. */
|
|
55
|
+
varCatalogs?: Array<VarCatalog> | null;
|
|
56
56
|
constructor(obj?: VarDTO);
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
@@ -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
|
-
|
|
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
|
-
|
|
31
|
+
getVarCatalogs(): Map<string, import("../../..").VarCatalog[]>;
|
|
32
32
|
}, {
|
|
33
33
|
leave(formID: string): void;
|
|
34
34
|
deleteAll(formID: string): void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type StoreDefinition } from 'pinia';
|
|
2
2
|
import { KgVarState } from './index.data';
|
|
3
|
-
import {
|
|
3
|
+
import { VarCatalog } from '../../../apis/WMS/models';
|
|
4
4
|
declare type IKgVarStore = StoreDefinition<'KgVar', KgVarState, {
|
|
5
5
|
getTopFormID(): string | null;
|
|
6
|
-
|
|
6
|
+
getVarCatalogs(): Map<string, Array<VarCatalog>>;
|
|
7
7
|
}, {
|
|
8
8
|
leave(formID: string): void;
|
|
9
9
|
deleteAll(formID: string): void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VarCatalog } from '../../../apis/WMS/models';
|
|
2
2
|
export interface KgVarState {
|
|
3
3
|
/**
|
|
4
4
|
* 当前可能打开了多个界面, 需要按照先后顺序记录下来, 当打开变量配置弹窗时, 打开的是最近那个页面的变量配置.
|
|
5
5
|
*/
|
|
6
6
|
formIDs: Array<string>;
|
|
7
7
|
/** 变量别名. */
|
|
8
|
-
|
|
8
|
+
varCatalogs: Map<string, Array<VarCatalog>>;
|
|
9
9
|
}
|
package/package.json
CHANGED
/package/dist/src/apis/WMS/Controllers/{VarCatController → VarCatalogController}/Delete.d.ts
RENAMED
|
File without changes
|
/package/dist/src/apis/WMS/Controllers/{VarCatController → VarCatalogController}/DeleteBatch.d.ts
RENAMED
|
File without changes
|
/package/dist/src/apis/WMS/Controllers/{VarCatController → VarCatalogController}/ImportExcel.d.ts
RENAMED
|
File without changes
|
|
File without changes
|