@kengic/vue 0.12.0 → 0.13.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/kengic-vue.js +3508 -3353
- package/dist/src/apis/WMS/models.d.ts +4 -2
- package/dist/src/components/KgVar/index.store.service.d.ts +9 -2
- package/dist/src/config/index.store.d.ts +12 -2
- package/dist/src/config/setup.d.ts +5 -1
- package/dist/src/consts/index.d.ts +4 -2
- package/dist/src/utils/kg.util.d.ts +15 -0
- package/package.json +1 -1
@@ -397,7 +397,7 @@ export declare class VarProfileDetail {
|
|
397
397
|
grp_nam?: string | null;
|
398
398
|
/** 主键. */
|
399
399
|
id?: string | null;
|
400
|
-
/**
|
400
|
+
/** 提示文字. */
|
401
401
|
placeholder?: string | null;
|
402
402
|
/** 查询条件变量名称(ProfileVariableName). */
|
403
403
|
prf_var_nam?: string | null;
|
@@ -407,11 +407,13 @@ export declare class VarProfileDetail {
|
|
407
407
|
srtseq?: number | null;
|
408
408
|
/** 表的别名. */
|
409
409
|
table_alias?: string | null;
|
410
|
+
/** 高级查询时是否将字段转换为 underscore 命名方式. */
|
411
|
+
use_underscore_when_dynamic_query_flag?: number | null;
|
410
412
|
/** 变量名称(VariableName). */
|
411
413
|
var_nam?: string | null;
|
412
414
|
/** 是否可见(VisibleFlag). */
|
413
415
|
vis_flg?: number | null;
|
414
|
-
/**
|
416
|
+
/** 控件宽度. */
|
415
417
|
width?: number | null;
|
416
418
|
constructor(obj?: VarProfileDetail);
|
417
419
|
}
|
@@ -1,14 +1,21 @@
|
|
1
|
-
import { VarButton, VarButtonConfig, VarGridConfig, VarGridDetail, VarGridMasterDTO, VarProfileConfig, VarSubmitConfig, VarSubmitField } from '../../apis/WMS/models';
|
1
|
+
import { VarButton, VarButtonConfig, VarGridConfig, VarGridDetail, VarGridMasterDTO, VarProfileConfig, VarProfileDetail, VarProfileMasterDTO, VarSubmitConfig, VarSubmitField } from '../../apis/WMS/models';
|
2
2
|
export declare function transformVarProfileConfig(varProfileConfig?: VarProfileConfig | null): VarProfileConfig | null;
|
3
3
|
export declare function transformVarGridConfig(varGridConfig?: VarGridConfig | null): VarGridConfig | null;
|
4
4
|
export declare function transformVarGridMasterDTOs(varGridMasterDTOs?: Array<VarGridMasterDTO> | null): Array<VarGridMasterDTO>;
|
5
|
+
export declare function transformVarProfileMasterDTOs(varProfileMasterDTOs?: Array<VarProfileMasterDTO> | null): Array<VarProfileMasterDTO>;
|
5
6
|
export declare function transformVarSubmitConfig(varSubmitConfig?: VarSubmitConfig | null): VarSubmitConfig | null;
|
6
7
|
export declare function transformVarSubmitFields(varSubmitFields?: Array<VarSubmitField> | null): Array<VarSubmitField>;
|
7
8
|
export declare function transformVarButtons(varButtons?: Array<VarButton> | null): Array<VarButton>;
|
8
9
|
export declare function transformVarButtonConfig(varButtonConfig?: VarButtonConfig | null): VarButtonConfig | null;
|
9
10
|
/**
|
10
|
-
* 处理 VarGridDetail
|
11
|
+
* 处理 VarGridDetail 数据.
|
11
12
|
*
|
12
13
|
* @param varGridDetails 原始数据.
|
13
14
|
*/
|
14
15
|
export declare function transformVarGridDetails(varGridDetails?: Array<VarGridDetail> | null): Array<VarGridDetail>;
|
16
|
+
/**
|
17
|
+
* 处理 VarProfileDetail 数据.
|
18
|
+
*
|
19
|
+
* @param varProfileDetails 原始数据.
|
20
|
+
*/
|
21
|
+
export declare function transformVarProfileDetails(varProfileDetails?: Array<VarProfileDetail> | null): Array<VarProfileDetail>;
|
@@ -14,6 +14,16 @@ export declare type IKgStateOption = {
|
|
14
14
|
/** 默认为 '/sys/index'. */
|
15
15
|
[KG_APP.SYS]?: string;
|
16
16
|
};
|
17
|
+
KgSearch?: {
|
18
|
+
/** 高级查询. */
|
19
|
+
dynamicQuery?: {
|
20
|
+
/**
|
21
|
+
* 是否启用功能.
|
22
|
+
* @default false
|
23
|
+
*/
|
24
|
+
on?: boolean;
|
25
|
+
};
|
26
|
+
};
|
17
27
|
KgTable?: {
|
18
28
|
/** 列的过滤. */
|
19
29
|
filter?: {
|
@@ -41,8 +51,8 @@ export declare type IKgStateOption = {
|
|
41
51
|
* 是否启用功能.
|
42
52
|
* @default true
|
43
53
|
*/
|
44
|
-
|
45
|
-
/** 默认的仓库编码, 只有在 {@link IKgStateOption.KgWarehouse.
|
54
|
+
on?: boolean;
|
55
|
+
/** 默认的仓库编码, 只有在 {@link IKgStateOption.KgWarehouse.on} 为 false 时才生效. */
|
46
56
|
defaultWarehouseID?: string;
|
47
57
|
};
|
48
58
|
};
|
@@ -14,7 +14,6 @@ export declare function setPinia(pinia: Pinia): void;
|
|
14
14
|
export declare function pinia(): Pinia | null;
|
15
15
|
export declare type IKgOptions = {
|
16
16
|
app: App;
|
17
|
-
pinia: Pinia;
|
18
17
|
/** 当前语言. */
|
19
18
|
locale: ComputedRef<IKgLocale>;
|
20
19
|
/**
|
@@ -30,6 +29,11 @@ export declare type IKgOptions = {
|
|
30
29
|
/** 配置参数. */
|
31
30
|
option?: IKgStateOption;
|
32
31
|
};
|
32
|
+
/**
|
33
|
+
* 初始化 pinia.
|
34
|
+
* @param pinia pinia.
|
35
|
+
*/
|
36
|
+
export declare function setupKgStore(pinia: Pinia): void;
|
33
37
|
/**
|
34
38
|
* 初始化组件库.
|
35
39
|
* @param options 参数.
|
@@ -220,7 +220,9 @@ export declare enum KG_DYNAMIC_QUERY_OPERATOR {
|
|
220
220
|
BETWEEN = "between"
|
221
221
|
}
|
222
222
|
/** 请求头部. */
|
223
|
-
export declare enum
|
223
|
+
export declare enum KG_HTTP_HEADERS {
|
224
224
|
/** 是否启用高级查询. */
|
225
|
-
|
225
|
+
KG_DYNAMIC_QUERY_ON = "Kg-Dynamic-Query-On",
|
226
|
+
/** 高级查询拼接后的 SQL. */
|
227
|
+
KG_DYNAMIC_QUERY_SQL = "Kg-Dynamic-Query-Sql"
|
226
228
|
}
|
@@ -37,6 +37,21 @@ export declare class KgUtil {
|
|
37
37
|
* @param $dayjs dayjs.
|
38
38
|
*/
|
39
39
|
static parseParams(params?: Record<string, any> | null, formID?: string | null, $dayjs?: typeof dayjs): any;
|
40
|
+
/**
|
41
|
+
* <p>处理高级查询时的请求参数, 最终拼接为一个 SQL 格式如下: `WHERE ... ORDER BY ...`.</p>
|
42
|
+
* <ol>
|
43
|
+
* <li>填充通用参数的值:
|
44
|
+
* <ul>
|
45
|
+
* <li>仓库: '{WAREHOUSE}'</li>
|
46
|
+
* </ul>
|
47
|
+
* </li>
|
48
|
+
* </ol>
|
49
|
+
* @param params 请求参数.
|
50
|
+
* @param formID 界面标识.
|
51
|
+
* @param $dayjs dayjs.
|
52
|
+
* @return 拼接好的 SQL.
|
53
|
+
*/
|
54
|
+
static parseParamsForDynamicQuery(params: Record<string, any> | null | undefined, formID: string | null | undefined, $dayjs: typeof dayjs): string;
|
40
55
|
/**
|
41
56
|
* 处理请求参数: 解析字符串类型的参数值.
|
42
57
|
* @param value 参数的原始值.
|