@kmkf-fe-packages/basic-components 2.5.0-rc.0 → 2.5.1-rc.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.
- package/dist/index.esm.js +15741 -7845
- package/dist/index.js +15748 -7844
- package/dist/src/apaas/ApaasAddress/index.d.ts +1 -1
- package/dist/src/apaas/ApaasImage/index.d.ts +4 -0
- package/dist/src/apaas/ApaasPosting/index.d.ts +1 -1
- package/dist/src/apaas/SubForm/index.d.ts +2 -0
- package/dist/src/apaas/SubForm/render.d.ts +25 -0
- package/dist/src/apaas/SubForm/transformWorkOrderData.d.ts +15 -0
- package/dist/src/bs/SystemOrder/index.d.ts +5 -0
- package/dist/src/bs/component/GoodItem/constants/bsE3ReissueGoodsColumns.d.ts +1 -1
- package/dist/src/bs/component/GoodItem/constants/index.d.ts +2 -1
- package/dist/src/bs/component/GoodItem/constants/wdtReissueGoodsColumns.d.ts +4 -3
- package/dist/src/bs/component/GoodItem/index.d.ts +23 -3
- package/dist/src/bs/component/GoodsModal.d.ts +2 -0
- package/dist/src/bs/component/model/BsE3GoodList.d.ts +1 -0
- package/dist/src/bs/component/model/BsE3GoodsModal.d.ts +2 -10
- package/dist/src/bs/component/model/Columns/Erp/bse3.d.ts +2 -0
- package/dist/src/bs/component/model/Columns/Erp/common.d.ts +2 -0
- package/dist/src/bs/component/model/Columns/Erp/gy.d.ts +1 -1
- package/dist/src/bs/component/model/Columns/Erp/jky.d.ts +24 -0
- package/dist/src/bs/component/model/Columns/Erp/jst.d.ts +1 -7
- package/dist/src/bs/component/model/Columns/Erp/jy.d.ts +21 -0
- package/dist/src/bs/component/model/Columns/Erp/km.d.ts +4 -4
- package/dist/src/bs/component/model/Columns/Erp/wdt.d.ts +8 -2
- package/dist/src/bs/component/model/GyGoodsList.d.ts +2 -0
- package/dist/src/bs/component/model/GyGoodsModal.d.ts +2 -10
- package/dist/src/bs/component/model/JkyGoodsModal/GoodsList.d.ts +32 -0
- package/dist/src/bs/component/model/JkyGoodsModal/index.d.ts +5 -0
- package/dist/src/bs/component/model/JstGoodsModal/GoodsList.d.ts +1 -0
- package/dist/src/bs/component/model/JyGoodsModal/GoodsList.d.ts +32 -0
- package/dist/src/bs/component/model/JyGoodsModal/index.d.ts +5 -0
- package/dist/src/bs/component/model/KmGoodsModal/GoodsList.d.ts +1 -0
- package/dist/src/bs/component/model/WdtGoodList.d.ts +1 -0
- package/dist/src/bs/component/model/WdtGoodsModal.d.ts +2 -10
- package/dist/src/bs/component/model/WorkOrderList/SearchFormForWorkOrder/FilterSelectOption/Rate/index.d.ts +10 -0
- package/dist/src/bs/component/model/WorkOrderList/SearchFormForWorkOrder/FilterSelectOption/TrimInput/index.d.ts +3 -0
- package/dist/src/bs/component/model/WorkOrderList/SearchFormForWorkOrder/FilterSelectOption/index.d.ts +3 -0
- package/dist/src/bs/component/model/WorkOrderList/SearchFormForWorkOrder/SearchHeader/index.d.ts +18 -0
- package/dist/src/bs/component/model/WorkOrderList/SearchFormForWorkOrder/index.d.ts +10 -0
- package/dist/src/bs/component/model/WorkOrderList/index.d.ts +7 -0
- package/dist/src/bs/component/model/WorkOrderList/useDefaultSearchValue.d.ts +10 -0
- package/dist/src/bs/component/model/components/SearchForm/components.d.ts +2 -0
- package/dist/src/bs/component/model/components/SearchForm/index.d.ts +5 -3
- package/dist/src/bs/component/model/components/SearchForm/utils.d.ts +5 -0
- package/dist/src/bs/component/model/type.d.ts +48 -1
- package/dist/src/business/LogisticsInterception/index.d.ts +2 -0
- package/dist/src/common/CommonGoods/index.d.ts +4 -1
- package/dist/src/common/HighPerformanceTable/index.d.ts +16 -0
- package/dist/src/common/HighPerformanceTable/multiSelect.d.ts +31 -0
- package/dist/src/common/IdentifyAddress/index.d.ts +1 -1
- package/dist/src/common/Reissue/index.d.ts +4 -1
- package/dist/src/constants/columnsBaseInfoMap.d.ts +2 -2
- package/dist/src/constants/index.d.ts +2 -0
- package/dist/src/constants/jky.d.ts +3 -0
- package/dist/src/constants/jy.d.ts +3 -0
- package/dist/src/constants/systemOrderColumnsMap.d.ts +94 -0
- package/dist/src/index.d.ts +3 -2
- package/dist/src/jky/common/index.d.ts +3 -0
- package/dist/src/jst/Goods/index.d.ts +1 -0
- package/dist/src/jy/common/index.d.ts +3 -0
- package/package.json +4 -3
- package/dist/src/skx/common/index.d.ts +0 -6
|
@@ -1,9 +1,56 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { FormInstance } from 'antd/es/form';
|
|
3
|
+
export type GoodsSourceFormatType = {
|
|
4
|
+
filterItems?: any[];
|
|
5
|
+
flowNodeId: string;
|
|
6
|
+
templateKey: string;
|
|
7
|
+
flowTemplateKey: string;
|
|
8
|
+
ShopList: React.JSX.Element;
|
|
9
|
+
tableColumns: any[];
|
|
10
|
+
workOrderDataToGoods: (data: Record<string, any>, erp: string) => Record<string, any>;
|
|
11
|
+
queryComponentsConfig: {
|
|
12
|
+
filterType: 'some' | 'every';
|
|
13
|
+
preQueryComponents: {
|
|
14
|
+
key: string;
|
|
15
|
+
symbol: string;
|
|
16
|
+
value?: any;
|
|
17
|
+
}[];
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export type GoodsSourceType = {
|
|
21
|
+
source?: 'workOrder' | 'erp';
|
|
22
|
+
sourceSettings?: {
|
|
23
|
+
filterMode?: 'some' | 'every';
|
|
24
|
+
filterRules?: {
|
|
25
|
+
leftValue: string;
|
|
26
|
+
compareSymbol: any;
|
|
27
|
+
rightValue?: any;
|
|
28
|
+
}[];
|
|
29
|
+
dataFilterConfig: {
|
|
30
|
+
[cpId: string]: {
|
|
31
|
+
isFilter?: boolean;
|
|
32
|
+
isShow?: boolean;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
keyMap: {
|
|
36
|
+
[key: string]: string;
|
|
37
|
+
};
|
|
38
|
+
workOrder: {
|
|
39
|
+
flowTemplateKey: string;
|
|
40
|
+
nodeId: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export interface ErpGoodModelProps<T = any[]> {
|
|
45
|
+
templateDetail?: any;
|
|
2
46
|
shopId: number | string;
|
|
3
47
|
maxLength: number;
|
|
4
48
|
shopList: any[];
|
|
5
49
|
width?: string | number;
|
|
6
50
|
shopCode?: string;
|
|
7
51
|
companyKey: string;
|
|
52
|
+
form?: FormInstance;
|
|
53
|
+
useGoodsSourceFormat: (goodsSource?: GoodsSourceType) => GoodsSourceFormatType;
|
|
54
|
+
goodsSource?: GoodsSourceType;
|
|
8
55
|
onSubmit: (goodsList: T) => any;
|
|
9
56
|
}
|
|
@@ -16,6 +16,7 @@ interface LogisticsInterceptionValueType {
|
|
|
16
16
|
status: string;
|
|
17
17
|
reason: string;
|
|
18
18
|
};
|
|
19
|
+
interceptLogisticsApiStatusReason: string;
|
|
19
20
|
interceptLogisticsUserKCode: string;
|
|
20
21
|
interceptLogisticsUserSecretKey: string;
|
|
21
22
|
}
|
|
@@ -27,6 +28,7 @@ interface LogisticsInterceptionProps {
|
|
|
27
28
|
isEditing: boolean;
|
|
28
29
|
onChange: (value: Partial<LogisticsInterceptionValueType>) => void;
|
|
29
30
|
platform: string;
|
|
31
|
+
showReason?: boolean;
|
|
30
32
|
onJumpPage?: (val: any) => void;
|
|
31
33
|
}
|
|
32
34
|
declare const LogisticsInterception: (props: Partial<LogisticsInterceptionProps>) => React.JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
interface HighPerformanceTableProps {
|
|
4
|
+
disabledIds?: string[];
|
|
5
|
+
selectedKeys?: string[];
|
|
6
|
+
useSelectCol?: boolean;
|
|
7
|
+
handleChangeSelectedKeys?: (keys: string[]) => void;
|
|
8
|
+
dataSource: any[];
|
|
9
|
+
columns: any[];
|
|
10
|
+
height: number;
|
|
11
|
+
loading: boolean;
|
|
12
|
+
className?: string;
|
|
13
|
+
onRow?: (record: any, rowIndex: number) => void;
|
|
14
|
+
}
|
|
15
|
+
declare const HighPerformanceTable: ({ disabledIds, useSelectCol, selectedKeys, handleChangeSelectedKeys, dataSource, columns, height, loading, className, onRow, }: HighPerformanceTableProps) => React.JSX.Element;
|
|
16
|
+
export default HighPerformanceTable;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ArtColumnStaticPart, TablePipeline } from 'ali-react-table';
|
|
2
|
+
export declare function always<T>(value: T): (...args: any[]) => T;
|
|
3
|
+
export declare const arrayUtils: {
|
|
4
|
+
readonly diff: (arr1: string[], arr2: Iterable<string>) => string[];
|
|
5
|
+
readonly merge: (arr1: string[], arr2: string[]) => string[];
|
|
6
|
+
};
|
|
7
|
+
export interface MultiSelectFeatureOptions {
|
|
8
|
+
/** 非受控用法:默认选中的值 */
|
|
9
|
+
defaultValue?: string[];
|
|
10
|
+
/** 非受控用法:默认 lastKey */
|
|
11
|
+
defaultLastKey?: string;
|
|
12
|
+
/** 受控用法:当前选中的 keys */
|
|
13
|
+
value?: string[];
|
|
14
|
+
/** 受控用法:上一次操作对应的 rowKey */
|
|
15
|
+
lastKey?: string;
|
|
16
|
+
/** 受控用法:状态改变回调 */
|
|
17
|
+
onChange?: (nextValue: string[], key: string, keys: string[], action: 'check' | 'uncheck' | 'check-all' | 'uncheck-all') => void;
|
|
18
|
+
/** 复选框所在列的位置 */
|
|
19
|
+
checkboxPlacement?: 'start' | 'end';
|
|
20
|
+
/** 复选框所在列的 column 配置,可指定 width,lock, title, align, features 等属性 */
|
|
21
|
+
checkboxColumn?: Partial<ArtColumnStaticPart>;
|
|
22
|
+
/** 是否高亮被选中的行 */
|
|
23
|
+
highlightRowWhenSelected?: boolean;
|
|
24
|
+
/** 判断一行中的 checkbox 是否要禁用 */
|
|
25
|
+
isDisabled?(row: any, rowIndex: number): boolean;
|
|
26
|
+
/** 点击事件的响应区域 */
|
|
27
|
+
clickArea?: 'checkbox' | 'cell' | 'row';
|
|
28
|
+
/** 是否对触发 onChange 的 click 事件调用 event.stopPropagation() */
|
|
29
|
+
stopClickEventPropagation?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export declare function multiSelect(opts?: MultiSelectFeatureOptions): (pipeline: TablePipeline) => TablePipeline;
|
|
@@ -9,7 +9,7 @@ interface IdentifyAddressProps {
|
|
|
9
9
|
onChange: (value: any) => void;
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
showIdentify?: boolean;
|
|
12
|
-
type?: 'workOrder' | 'bs' | 'wdt' | 'gy' | 'km';
|
|
12
|
+
type?: 'workOrder' | 'bs' | 'wdt' | 'gy' | 'km' | 'jst';
|
|
13
13
|
}
|
|
14
14
|
declare const IdentifyAddress: (props: IdentifyAddressProps) => React.JSX.Element;
|
|
15
15
|
export default IdentifyAddress;
|
|
@@ -5,12 +5,12 @@ type ColumnsItemType = {
|
|
|
5
5
|
align?: 'left' | 'center' | 'right';
|
|
6
6
|
ellipsis?: boolean;
|
|
7
7
|
render?: (val: any, record: any, index: number) => any;
|
|
8
|
-
validator?: (rule: any, value: any,
|
|
8
|
+
validator?: (rule: any, value: any, extraParams?: Record<string, any>) => Promise<void> | undefined;
|
|
9
9
|
};
|
|
10
10
|
type ColumnsMapType = Record<string, ColumnsItemType[]>;
|
|
11
11
|
export type GetColumnsBaseInfoMapFnType = (...args: any[]) => ColumnsMapType;
|
|
12
12
|
export declare const getColumnsMap: GetColumnsBaseInfoMapFnType;
|
|
13
13
|
export declare const erpColumnsMap: ColumnsMapType;
|
|
14
|
-
export declare const erpFormValidator: (_rule: any, value: any, type: string) => any;
|
|
14
|
+
export declare const erpFormValidator: (_rule: any, value: any, type: string, extraParams?: Record<string, any>) => any;
|
|
15
15
|
declare const _default: ColumnsMapType;
|
|
16
16
|
export default _default;
|
|
@@ -3,5 +3,7 @@ export { default as getWlnColumns } from './wln';
|
|
|
3
3
|
export { default as getGyColumns } from './gy';
|
|
4
4
|
export { default as getWdtColumns } from './wdt';
|
|
5
5
|
export { default as getKmColumns } from './km';
|
|
6
|
+
export { default as getJyColumns } from './jy';
|
|
6
7
|
export { default as getSkxColumns } from './skx';
|
|
8
|
+
export { default as getJkyColumns } from './jky';
|
|
7
9
|
export { default as orderSubFormConstants } from './orderSubForm';
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
declare const SYSTEM_ORDER_COLUMNS_MAP: {
|
|
2
|
+
BS_SYSTEM_ORDER: {
|
|
3
|
+
title: string;
|
|
4
|
+
dataIndex: string;
|
|
5
|
+
width: number;
|
|
6
|
+
}[];
|
|
7
|
+
KM_SYSTEM_ORDER: ({
|
|
8
|
+
dataIndex: string;
|
|
9
|
+
title: string;
|
|
10
|
+
width: number;
|
|
11
|
+
render?: undefined;
|
|
12
|
+
renderExport?: undefined;
|
|
13
|
+
} | {
|
|
14
|
+
dataIndex: string;
|
|
15
|
+
title: string;
|
|
16
|
+
width: number;
|
|
17
|
+
render: (val: "WAIT_BUYER_PAY" | "WAIT_AUDIT" | "WAIT_FINANCE_AUDIT" | "WAIT_MANUAL_AUDIT" | "FINISHED_AUDIT" | "WAIT_EXPRESS_PRINT" | "SYS_STATUS_WAIT_DELIVERY_PRINT" | "WAIT_PACKAGE" | "WAIT_WEIGHT" | "WAIT_SEND_GOODS" | "WAIT_DEST_SEND_GOODS" | "SELLER_SEND_GOODS" | "FINISHED" | "CLOSED" | "CANCEL") => string;
|
|
18
|
+
renderExport: (val: "WAIT_BUYER_PAY" | "WAIT_AUDIT" | "WAIT_FINANCE_AUDIT" | "WAIT_MANUAL_AUDIT" | "FINISHED_AUDIT" | "WAIT_EXPRESS_PRINT" | "SYS_STATUS_WAIT_DELIVERY_PRINT" | "WAIT_PACKAGE" | "WAIT_WEIGHT" | "WAIT_SEND_GOODS" | "WAIT_DEST_SEND_GOODS" | "SELLER_SEND_GOODS" | "FINISHED" | "CLOSED" | "CANCEL") => string;
|
|
19
|
+
} | {
|
|
20
|
+
dataIndex: string;
|
|
21
|
+
title: string;
|
|
22
|
+
width: number;
|
|
23
|
+
render: (val: string[]) => string;
|
|
24
|
+
renderExport: (val: string[]) => string;
|
|
25
|
+
})[];
|
|
26
|
+
WLN_SYSTEM_ORDER: {
|
|
27
|
+
title: string;
|
|
28
|
+
dataIndex: string;
|
|
29
|
+
width: number;
|
|
30
|
+
}[];
|
|
31
|
+
WDT_SYSTEM_ORDER: {
|
|
32
|
+
title: string;
|
|
33
|
+
dataIndex: string;
|
|
34
|
+
width: number;
|
|
35
|
+
ellipsis: boolean;
|
|
36
|
+
}[];
|
|
37
|
+
BS_E3_SYSTEM_ORDER: ({
|
|
38
|
+
title: string;
|
|
39
|
+
dataIndex: string;
|
|
40
|
+
width: number;
|
|
41
|
+
ellipsis: boolean;
|
|
42
|
+
render?: undefined;
|
|
43
|
+
renderExport?: undefined;
|
|
44
|
+
} | {
|
|
45
|
+
title: string;
|
|
46
|
+
dataIndex: string;
|
|
47
|
+
width: number;
|
|
48
|
+
ellipsis: boolean;
|
|
49
|
+
render: (val: any) => any;
|
|
50
|
+
renderExport: (val: any) => any;
|
|
51
|
+
})[];
|
|
52
|
+
GY_SYSTEM_ORDER: {
|
|
53
|
+
dataIndex: string;
|
|
54
|
+
title: string;
|
|
55
|
+
width: number;
|
|
56
|
+
}[];
|
|
57
|
+
JST_SYSTEM_ORDER: {
|
|
58
|
+
dataIndex: string;
|
|
59
|
+
title: string;
|
|
60
|
+
width: number;
|
|
61
|
+
}[];
|
|
62
|
+
JY_SYSTEM_ORDER: {
|
|
63
|
+
dataIndex: string;
|
|
64
|
+
title: string;
|
|
65
|
+
width: number;
|
|
66
|
+
}[];
|
|
67
|
+
JKY_SYSTEM_ORDER: ({
|
|
68
|
+
dataIndex: string;
|
|
69
|
+
title: string;
|
|
70
|
+
width: number;
|
|
71
|
+
render?: undefined;
|
|
72
|
+
renderExport?: undefined;
|
|
73
|
+
} | {
|
|
74
|
+
dataIndex: string;
|
|
75
|
+
title: string;
|
|
76
|
+
width: number;
|
|
77
|
+
render: (val: number) => "否" | "是";
|
|
78
|
+
renderExport: (val: number) => "否" | "是";
|
|
79
|
+
})[];
|
|
80
|
+
WDT_RETURN_BILL_NO: ({
|
|
81
|
+
title: string;
|
|
82
|
+
dataIndex: string;
|
|
83
|
+
width: number;
|
|
84
|
+
ellipsis: boolean;
|
|
85
|
+
disabled?: undefined;
|
|
86
|
+
} | {
|
|
87
|
+
title: string;
|
|
88
|
+
dataIndex: string;
|
|
89
|
+
width: number;
|
|
90
|
+
ellipsis: boolean;
|
|
91
|
+
disabled: boolean;
|
|
92
|
+
})[];
|
|
93
|
+
};
|
|
94
|
+
export default SYSTEM_ORDER_COLUMNS_MAP;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { default as ApaasCascader } from './apaas/ApaasCascader';
|
|
2
2
|
export { default as ApaasDate } from './apaas/ApaasDate';
|
|
3
|
+
export { default as ApaasImage } from './apaas/ApaasImage';
|
|
3
4
|
export { default as ApaasInput } from './apaas/ApaasInput';
|
|
4
5
|
export { default as ApaasInputNumber } from './apaas/ApaasInputNumber';
|
|
5
6
|
export { default as ApaasSelect } from './apaas/ApaasSelect';
|
|
@@ -17,7 +18,7 @@ export { default as ApaasAddress } from './apaas/ApaasAddress';
|
|
|
17
18
|
export { default as ApaasPosting } from './apaas/ApaasPosting';
|
|
18
19
|
export { default as ApaasLogistics } from './apaas/ApaasLogistics';
|
|
19
20
|
export { default as ApaasHoc } from './apaas/hoc/withFormItem';
|
|
20
|
-
export { default as SubForm } from './apaas/SubForm';
|
|
21
|
+
export { default as SubForm, renderMap, renderSplitMap } from './apaas/SubForm';
|
|
21
22
|
export { default as CopyTextIcon } from './apaas/CopyTextIcon';
|
|
22
23
|
export { default as BuyerNick } from './business/BuyerNick';
|
|
23
24
|
export { default as TradeId } from './business/TradeId';
|
|
@@ -72,6 +73,6 @@ export { default as KmVideo } from './km/KmVideo';
|
|
|
72
73
|
export { default as OrderSubFormUtils } from './apaas/OrderSubForm/utils';
|
|
73
74
|
export { default as SkxIdInputSelect } from './skx/IdInputSelect';
|
|
74
75
|
export { default as SkxGoods } from './skx/Goods';
|
|
75
|
-
export { skxUtils } from './skx/common';
|
|
76
76
|
export { default as columnsBaseInfoMap, erpColumnsMap, erpFormValidator, } from './constants/columnsBaseInfoMap';
|
|
77
|
+
export { default as SYSTEM_ORDER_COLUMNS_MAP } from './constants/systemOrderColumnsMap';
|
|
77
78
|
export { default as erpModalColumnsMap } from './bs/component/model/Columns';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.1-rc.0",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -20,8 +20,9 @@
|
|
|
20
20
|
"watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e ts,tsx,less --debug -x 'yarn async'"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@kmkf-fe-packages/kmkf-utils": "2.5.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "2.5.1-rc.0",
|
|
24
24
|
"ahooks": "^3.7.4",
|
|
25
|
+
"ali-react-table": "2.6.1",
|
|
25
26
|
"bignumber.js": "^9.1.2",
|
|
26
27
|
"kmkf-monitor": "^0.8.9",
|
|
27
28
|
"lodash": "^4.17.21",
|
|
@@ -65,5 +66,5 @@
|
|
|
65
66
|
"publishConfig": {
|
|
66
67
|
"access": "public"
|
|
67
68
|
},
|
|
68
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "d36e06faa887ec2f47039bb9d3c7a30b573a81ae"
|
|
69
70
|
}
|