@kengic/vue 0.13.2 → 0.13.4-beta.0
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.
@@ -2,12 +2,14 @@ import { IRequestConfig, IRequestOptions } from '../../../../services';
|
|
2
2
|
import * as DEF from '../../../def';
|
3
3
|
/** 请求参数. */
|
4
4
|
export declare class ListVOQuery {
|
5
|
-
/**
|
5
|
+
/** 是否可用 */
|
6
6
|
activeFlg?: number | null;
|
7
7
|
/** 地址编号 */
|
8
8
|
adrId?: string | null;
|
9
|
-
/**
|
9
|
+
/** 地址名 */
|
10
10
|
adrnam?: string | null;
|
11
|
+
/** 公司代码 */
|
12
|
+
comCod?: string | null;
|
11
13
|
/** 默认仓库 */
|
12
14
|
defWhFlg?: number | null;
|
13
15
|
/** 主键. */
|
@@ -669,12 +669,14 @@ export declare class VarVariableInput {
|
|
669
669
|
}
|
670
670
|
/** 仓库(Warehouse). */
|
671
671
|
export declare class WhDTO {
|
672
|
-
/**
|
672
|
+
/** 是否可用 */
|
673
673
|
activeFlg?: number | null;
|
674
674
|
/** 地址编号 */
|
675
675
|
adrId?: string | null;
|
676
|
-
/**
|
676
|
+
/** 地址名 */
|
677
677
|
adrnam?: string | null;
|
678
|
+
/** 公司代码 */
|
679
|
+
comCod?: string | null;
|
678
680
|
/** 默认仓库 */
|
679
681
|
defWhFlg?: number | null;
|
680
682
|
/** 主键. */
|
@@ -223,8 +223,12 @@ export declare enum KG_DYNAMIC_QUERY_OPERATOR {
|
|
223
223
|
export declare enum KG_HTTP_HEADERS {
|
224
224
|
/** 是否启用高级查询. */
|
225
225
|
KG_DYNAMIC_QUERY = "Kg-Dynamic-Query",
|
226
|
-
/** 拼接后的查询 SQL. */
|
227
|
-
KG_QUERY_SQL = "Kg-Query-Sql"
|
226
|
+
/** 拼接后的查询 SQL: WHERE + ORDER BY. */
|
227
|
+
KG_QUERY_SQL = "Kg-Query-Sql",
|
228
|
+
/** 拼接后的查询 SQL: WHERE. */
|
229
|
+
KG_QUERY_WHERE_SQL = "Kg-Query-Where-Sql",
|
230
|
+
/** 拼接后的查询 SQL: ORDER BY. */
|
231
|
+
KG_QUERY_ORDER_BY_SQL = "Kg-Query-Order-By-Sql"
|
228
232
|
}
|
229
233
|
/** 特殊属性:请求返回的原始响应数据 */
|
230
234
|
export declare const __KG__RESPONSE__ = "__KG__RESPONSE__";
|
@@ -39,6 +39,13 @@ export declare class KgUtil {
|
|
39
39
|
static parseParams(params?: Record<string, any> | null, formID?: string | null, $dayjs?: typeof dayjs): any;
|
40
40
|
/**
|
41
41
|
* <p>处理查询参数, 最终拼接为一个 SQL 格式如下: `WHERE ... ORDER BY ...`.</p>
|
42
|
+
* <p>
|
43
|
+
* 参数 formID 和 operators 只能其中一个传值.
|
44
|
+
* <ul>
|
45
|
+
* <li>如果 formID 传值, 表示通过变量配置获取各个字段的高级查询操作符.</li>
|
46
|
+
* <li>如果 operators 传值, 表示直接使用传入的 operators 作为各个字段的高级查询操作符.</li>
|
47
|
+
* </ul>
|
48
|
+
* </p>
|
42
49
|
* <ol>
|
43
50
|
* <li>填充通用参数的值:
|
44
51
|
* <ul>
|
@@ -48,10 +55,15 @@ export declare class KgUtil {
|
|
48
55
|
* </ol>
|
49
56
|
* @param params 请求参数.
|
50
57
|
* @param formID 界面标识.
|
58
|
+
* @param operators 各个字段的高级查询操作符.
|
51
59
|
* @param $dayjs dayjs.
|
52
60
|
* @return 拼接好的 SQL.
|
53
61
|
*/
|
54
|
-
static getQuerySql(params: Record<string, any> | null | undefined, formID: string | null | undefined, $dayjs: typeof dayjs):
|
62
|
+
static getQuerySql(params: Record<string, any> | null | undefined, formID: string | null | undefined, operators: Record<string, any> | null | undefined, $dayjs: typeof dayjs): {
|
63
|
+
sql: string;
|
64
|
+
whereSql: string;
|
65
|
+
orderBySql: string;
|
66
|
+
};
|
55
67
|
/**
|
56
68
|
* 处理请求参数: 解析字符串类型的参数值.
|
57
69
|
* @param value 参数的原始值.
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@kengic/vue",
|
3
|
-
"version": "0.13.
|
3
|
+
"version": "0.13.4-beta.0",
|
4
4
|
"scripts": {
|
5
5
|
"build": "rimraf dist && vue-tsc && vite build",
|
6
6
|
"build:dev": "rimraf dist && vue-tsc && vite build --mode development",
|
@@ -48,7 +48,7 @@
|
|
48
48
|
"vue-router": "4.1.6"
|
49
49
|
},
|
50
50
|
"devDependencies": {
|
51
|
-
"@kengic/pont": "1.2.
|
51
|
+
"@kengic/pont": "1.2.11",
|
52
52
|
"@types/lodash-es": "4.17.9",
|
53
53
|
"@types/node": "18.18.4",
|
54
54
|
"@types/semver": "7.5.3",
|