@kmkf-fe-packages/basic-components 2.4.0-rc.0 → 2.4.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.
- package/dist/index.esm.js +16456 -7772
- package/dist/index.js +16466 -7771
- 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/OrderSubForm/components/customizeUpload.d.ts +15 -0
- package/dist/src/apaas/OrderSubForm/index.d.ts +27 -0
- package/dist/src/apaas/OrderSubForm/utils.d.ts +22 -0
- 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 +35 -1
- 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 +2 -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 +3 -0
- package/dist/src/constants/jky.d.ts +3 -0
- package/dist/src/constants/jy.d.ts +3 -0
- package/dist/src/constants/orderSubForm.d.ts +62 -0
- package/dist/src/constants/systemOrderColumnsMap.d.ts +94 -0
- package/dist/src/index.d.ts +5 -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
|
@@ -3,7 +3,7 @@ interface ProvinceType {
|
|
|
3
3
|
value: string[];
|
|
4
4
|
disabled: boolean;
|
|
5
5
|
onChange: (value: any, selectedOptions: any) => void;
|
|
6
|
-
type?: 'workOrder' | 'bs' | 'wdt' | 'gy' | 'km';
|
|
6
|
+
type?: 'workOrder' | 'bs' | 'wdt' | 'gy' | 'km' | 'jst';
|
|
7
7
|
}
|
|
8
8
|
declare const Province: (props: Partial<ProvinceType>) => React.JSX.Element;
|
|
9
9
|
export default Province;
|
|
@@ -9,7 +9,7 @@ interface ApaasPostingProps {
|
|
|
9
9
|
value: Partial<PostingValueType>;
|
|
10
10
|
disabled: boolean;
|
|
11
11
|
onChange: (val: any) => void;
|
|
12
|
-
type?: 'workOrder' | 'bs' | 'wdt';
|
|
12
|
+
type?: 'workOrder' | 'bs' | 'wdt' | 'gy' | 'km' | 'jst';
|
|
13
13
|
}
|
|
14
14
|
declare function ApaasPosting(props: Partial<ApaasPostingProps>): React.JSX.Element;
|
|
15
15
|
export default ApaasPosting;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface CustomizeUploadProps {
|
|
3
|
+
value?: string;
|
|
4
|
+
onChange?: (value: string) => void;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
maxCount?: number;
|
|
7
|
+
maxSize?: number;
|
|
8
|
+
uniqueKey?: string;
|
|
9
|
+
hostUrl?: string;
|
|
10
|
+
actionUrl?: string;
|
|
11
|
+
platform?: string;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
}
|
|
14
|
+
declare const CustomizeUpload: React.FC<CustomizeUploadProps>;
|
|
15
|
+
export default CustomizeUpload;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComponentInterface } from '@kmkf-fe-packages/services-components/src/type';
|
|
3
|
+
type subConfigType = {
|
|
4
|
+
name: string;
|
|
5
|
+
key: string;
|
|
6
|
+
workOrderComponentType: string;
|
|
7
|
+
isShow: boolean;
|
|
8
|
+
isEdit: boolean;
|
|
9
|
+
isRequired: boolean;
|
|
10
|
+
width: number;
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
settingName?: string;
|
|
13
|
+
};
|
|
14
|
+
type SubFormProps = {
|
|
15
|
+
value: any;
|
|
16
|
+
onChange: (val: any) => void;
|
|
17
|
+
tableHeader: subConfigType[];
|
|
18
|
+
subConfig: {
|
|
19
|
+
correlationList: subConfigType[];
|
|
20
|
+
};
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
manual?: boolean;
|
|
23
|
+
maxCount?: number;
|
|
24
|
+
effects: ComponentInterface['effects'];
|
|
25
|
+
};
|
|
26
|
+
declare const OrderSubForm: (props: SubFormProps) => React.JSX.Element;
|
|
27
|
+
export default OrderSubForm;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ChildItemType } from '../../constants/orderSubForm';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
type Parmas = {
|
|
4
|
+
orderNo: string;
|
|
5
|
+
shopId: string;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: {
|
|
8
|
+
getOrderListSingleton: (parmas: Parmas) => Promise<any>;
|
|
9
|
+
renderEditItem: ({ item, val, disabled, index, type, updateHandle, }: {
|
|
10
|
+
item: ChildItemType;
|
|
11
|
+
val: any;
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
index: number;
|
|
14
|
+
type: string;
|
|
15
|
+
updateHandle: (val: any, index: number, type: string) => void;
|
|
16
|
+
}) => React.ReactNode;
|
|
17
|
+
renderDetailItem: ({ item, val }: {
|
|
18
|
+
item: ChildItemType;
|
|
19
|
+
val: any;
|
|
20
|
+
}) => React.ReactNode;
|
|
21
|
+
};
|
|
22
|
+
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { renderMap, renderSplitMap } from './render';
|
|
2
3
|
type subConfigType = {
|
|
3
4
|
name: string;
|
|
4
5
|
key: string;
|
|
@@ -30,3 +31,4 @@ type SubFormProps = {
|
|
|
30
31
|
};
|
|
31
32
|
declare const SubForm: (props: SubFormProps) => React.JSX.Element;
|
|
32
33
|
export default SubForm;
|
|
34
|
+
export { renderMap, renderSplitMap };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const hostUrl = "https://kefu.kuaimai.com";
|
|
3
|
+
export declare const FileRender: ({ fileList, canDownload, id }: any) => React.JSX.Element;
|
|
4
|
+
export declare const PictureRender: ({ value, width, }: {
|
|
5
|
+
value: any;
|
|
6
|
+
hostUrl?: string | undefined;
|
|
7
|
+
width?: number | undefined;
|
|
8
|
+
}) => React.JSX.Element;
|
|
9
|
+
export declare const RadioRender: ({ value }: {
|
|
10
|
+
value: any;
|
|
11
|
+
}) => React.JSX.Element;
|
|
12
|
+
export declare const LogisticsCompanyRender: (value: string) => string | number;
|
|
13
|
+
export declare const CheckboxRender: ({ value }: {
|
|
14
|
+
value: any;
|
|
15
|
+
}) => any;
|
|
16
|
+
export declare const MultipleSelectRender: ({ value }: {
|
|
17
|
+
value: any;
|
|
18
|
+
}) => any;
|
|
19
|
+
export declare const renderMap: Record<string, (props: any, platform?: string) => React.ReactNode>;
|
|
20
|
+
export declare const renderSplitMap: Record<string, (props: any) => React.ReactNode>;
|
|
21
|
+
export declare const EditPictureRender: ({ val, index, t, updateHandle, disabled, hostUrl, platform, }: any) => React.JSX.Element;
|
|
22
|
+
export declare const EditFileRender: ({ val, index, t, updateHandle, disabled, hostUrl, platform, }: any) => React.JSX.Element;
|
|
23
|
+
export declare const EditRenderMap: Record<string, (props: any) => React.ReactNode>;
|
|
24
|
+
export declare const EditSplitRenderMap: Record<string, (props: any) => React.ReactNode>;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const updateWorkTypeKeys: any;
|
|
2
|
+
export declare const systemOrderMap: any;
|
|
3
|
+
export declare const processSingleFieldTypeMapping: {
|
|
4
|
+
SKX_OUTBOUND_NOTICE_NO: string;
|
|
5
|
+
SKX_SHOP_NAME: string;
|
|
6
|
+
SKX_WAREHOUSE: string;
|
|
7
|
+
SKX_ORDER_TYPE: string;
|
|
8
|
+
SKX_ORDER_STATUS: string;
|
|
9
|
+
SKX_CREATE_TIME: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const jsonParseSecurity: (value: string, securityValue: any) => any;
|
|
12
|
+
export declare const transTextToNumber: (value: string | number) => string | number;
|
|
13
|
+
export declare const formatPictures: (pictures: any) => any;
|
|
14
|
+
declare const transformWorkOrderData: (templateColumns: any[], type?: string) => (item: any) => any;
|
|
15
|
+
export default transformWorkOrderData;
|
|
@@ -10,6 +10,6 @@ export declare const getBsE3ReissueGoodColumns: ({ disabled, updateHandle, opera
|
|
|
10
10
|
align: string;
|
|
11
11
|
ellipsis: boolean;
|
|
12
12
|
render?: ((val: any, record: any, index: number) => any) | undefined;
|
|
13
|
-
validator?: ((rule: any, value: any,
|
|
13
|
+
validator?: ((rule: any, value: any, extraParams?: Record<string, any> | undefined) => Promise<void> | undefined) | undefined;
|
|
14
14
|
}[];
|
|
15
15
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export declare const processGoods: ({ list, type, canUpdateNumber, }: {
|
|
1
|
+
export declare const processGoods: ({ list, type, canUpdateNumber, source, }: {
|
|
2
2
|
list: any[];
|
|
3
3
|
type: string;
|
|
4
4
|
canUpdateNumber: boolean;
|
|
5
|
+
source?: "erp" | "workOrder" | undefined;
|
|
5
6
|
}) => any[];
|
|
@@ -4,15 +4,16 @@ type P = {
|
|
|
4
4
|
disabled: boolean | undefined;
|
|
5
5
|
updateHandle: (v: any, index: number, key: string) => void;
|
|
6
6
|
operate?: boolean;
|
|
7
|
+
updateDataHandle: (v: any, index: number) => void;
|
|
7
8
|
};
|
|
8
|
-
export declare const getWdtReissueGoodColumns: ({ disabled, updateHandle, operate, }: P) => ({
|
|
9
|
+
export declare const getWdtReissueGoodColumns: ({ disabled, updateHandle, updateDataHandle, operate, }: P) => ({
|
|
9
10
|
dataIndex: string;
|
|
10
11
|
title: string;
|
|
11
12
|
width?: number | undefined;
|
|
12
13
|
align: string;
|
|
13
14
|
ellipsis: boolean;
|
|
14
15
|
render?: ((val: any, record: any, index: number) => any) | undefined;
|
|
15
|
-
validator?: ((rule: any, value: any,
|
|
16
|
+
validator?: ((rule: any, value: any, extraParams?: Record<string, any> | undefined) => Promise<void> | undefined) | undefined;
|
|
16
17
|
} | {
|
|
17
18
|
render: ((val: number) => React.JSX.Element) | ((val: any, record: any, index: number) => React.JSX.Element);
|
|
18
19
|
dataIndex: string;
|
|
@@ -20,6 +21,6 @@ export declare const getWdtReissueGoodColumns: ({ disabled, updateHandle, operat
|
|
|
20
21
|
width?: number | undefined;
|
|
21
22
|
align: string;
|
|
22
23
|
ellipsis: boolean;
|
|
23
|
-
validator?: ((rule: any, value: any,
|
|
24
|
+
validator?: ((rule: any, value: any, extraParams?: Record<string, any> | undefined) => Promise<void> | undefined) | undefined;
|
|
24
25
|
})[];
|
|
25
26
|
export {};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { GoodsSourceFormatType, GoodsSourceType } from '../model/type';
|
|
2
3
|
import { FormInstance } from 'antd/es/form';
|
|
4
|
+
import '../model/Columns/columns.less';
|
|
3
5
|
interface BsGoodsProps {
|
|
6
|
+
templateDetail?: any;
|
|
4
7
|
form: FormInstance;
|
|
5
8
|
value: any[];
|
|
6
9
|
type: string;
|
|
@@ -16,6 +19,7 @@ interface BsGoodsProps {
|
|
|
16
19
|
shopId: string | number;
|
|
17
20
|
maxLength: number;
|
|
18
21
|
showChangeBtn: boolean;
|
|
22
|
+
hasSelectedSystemOrder: boolean;
|
|
19
23
|
showErpGoodsBtn: boolean;
|
|
20
24
|
showModeBtn: boolean;
|
|
21
25
|
alwaysShowChooseErpGoodsBtn?: boolean;
|
|
@@ -30,6 +34,8 @@ interface BsGoodsProps {
|
|
|
30
34
|
onSelect: (val: any[]) => void;
|
|
31
35
|
onDelete: (val: any[]) => void;
|
|
32
36
|
onModeChange: (val: boolean) => void;
|
|
37
|
+
goodsSource?: GoodsSourceType;
|
|
38
|
+
useGoodsSourceFormat: (goodsSource?: GoodsSourceType) => GoodsSourceFormatType;
|
|
33
39
|
tradeGoods?: {
|
|
34
40
|
uniqueKey?: string;
|
|
35
41
|
originDataSource: Array<any>;
|
|
@@ -38,6 +44,34 @@ interface BsGoodsProps {
|
|
|
38
44
|
};
|
|
39
45
|
systemOrders?: any[];
|
|
40
46
|
selectedSystemOrders?: any[];
|
|
47
|
+
isReloadSelectTable?: boolean;
|
|
48
|
+
validSystemOrderFn?: () => boolean | undefined;
|
|
41
49
|
}
|
|
42
|
-
|
|
50
|
+
type MakeRequired<T, K extends keyof T> = {
|
|
51
|
+
[P in K]-?: T[P];
|
|
52
|
+
} & {
|
|
53
|
+
[P in Exclude<keyof T, K>]: T[P];
|
|
54
|
+
};
|
|
55
|
+
type SelectTradeGoodsProps = {
|
|
56
|
+
columns: Array<any>;
|
|
57
|
+
dataSource: Array<any>;
|
|
58
|
+
getDataSourceAsync?: () => Promise<any>;
|
|
59
|
+
uniqueKey?: string;
|
|
60
|
+
selectedRowKeys: Array<React.Key>;
|
|
61
|
+
onChangeSelectedKeys: (p: React.Key[]) => void;
|
|
62
|
+
isShowSelect?: boolean;
|
|
63
|
+
systemOrders?: any[];
|
|
64
|
+
selectedSystemOrders?: any[];
|
|
65
|
+
type?: string;
|
|
66
|
+
width?: number;
|
|
67
|
+
validSystemOrder?: boolean;
|
|
68
|
+
isReissueType?: boolean;
|
|
69
|
+
isReloadSelectTable?: boolean;
|
|
70
|
+
validSystemOrderFn?: () => boolean | undefined;
|
|
71
|
+
};
|
|
72
|
+
export declare const SelectTradeGoods: {
|
|
73
|
+
({ columns, dataSource, getDataSourceAsync, selectedRowKeys, onChangeSelectedKeys, uniqueKey, isShowSelect, systemOrders, selectedSystemOrders, validSystemOrder, type, width, isReissueType, isReloadSelectTable, validSystemOrderFn, }: SelectTradeGoodsProps): React.JSX.Element;
|
|
74
|
+
displayName: string;
|
|
75
|
+
};
|
|
76
|
+
declare const GoodItem: (props: MakeRequired<Partial<BsGoodsProps>, 'useGoodsSourceFormat'>) => React.JSX.Element;
|
|
43
77
|
export default GoodItem;
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
maxLength: number;
|
|
5
|
-
shopList: any[];
|
|
6
|
-
width?: string | number;
|
|
7
|
-
shopCode?: string;
|
|
8
|
-
companyKey: string;
|
|
9
|
-
onSubmit: (...args: any[]) => any;
|
|
10
|
-
}
|
|
11
|
-
declare const _default: React.ForwardRefExoticComponent<GoodModelProps & React.RefAttributes<unknown>>;
|
|
2
|
+
import type { ErpGoodModelProps } from './type';
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<ErpGoodModelProps<any[]> & React.RefAttributes<unknown>>;
|
|
12
4
|
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: ({
|
|
3
|
+
dataIndex: string;
|
|
4
|
+
title: string;
|
|
5
|
+
align: string;
|
|
6
|
+
ellipsis: boolean;
|
|
7
|
+
width: number;
|
|
8
|
+
render: (picUrl: string) => React.JSX.Element;
|
|
9
|
+
} | {
|
|
10
|
+
dataIndex: string;
|
|
11
|
+
title: string;
|
|
12
|
+
align: string;
|
|
13
|
+
ellipsis: boolean;
|
|
14
|
+
width: number;
|
|
15
|
+
render: (val: boolean) => React.JSX.Element;
|
|
16
|
+
} | {
|
|
17
|
+
dataIndex: string;
|
|
18
|
+
title: string;
|
|
19
|
+
ellipsis: boolean;
|
|
20
|
+
width: number;
|
|
21
|
+
render: (val: string) => React.JSX.Element;
|
|
22
|
+
align?: undefined;
|
|
23
|
+
})[];
|
|
24
|
+
export default _default;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
declare const _default: ({
|
|
3
|
-
dataIndex: string;
|
|
4
|
-
title: string;
|
|
5
|
-
width: number;
|
|
6
|
-
ellipsis: boolean;
|
|
7
|
-
render?: undefined;
|
|
8
|
-
} | {
|
|
9
3
|
dataIndex: string;
|
|
10
4
|
title: string;
|
|
11
5
|
width: number;
|
|
@@ -16,6 +10,6 @@ declare const _default: ({
|
|
|
16
10
|
title: string;
|
|
17
11
|
ellipsis: boolean;
|
|
18
12
|
width: number;
|
|
19
|
-
render: (type?: 'normal' | 'combine') =>
|
|
13
|
+
render: (type?: 'normal' | 'combine') => React.JSX.Element;
|
|
20
14
|
})[];
|
|
21
15
|
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: ({
|
|
3
|
+
dataIndex: string;
|
|
4
|
+
title: string;
|
|
5
|
+
width: number;
|
|
6
|
+
render: (picUrl: string) => React.JSX.Element | null;
|
|
7
|
+
ellipsis?: undefined;
|
|
8
|
+
} | {
|
|
9
|
+
dataIndex: string;
|
|
10
|
+
title: string;
|
|
11
|
+
ellipsis: boolean;
|
|
12
|
+
width: number;
|
|
13
|
+
render: (val: boolean) => React.JSX.Element;
|
|
14
|
+
} | {
|
|
15
|
+
dataIndex: string;
|
|
16
|
+
title: string;
|
|
17
|
+
ellipsis: boolean;
|
|
18
|
+
width: number;
|
|
19
|
+
render: (val: string) => React.JSX.Element;
|
|
20
|
+
})[];
|
|
21
|
+
export default _default;
|
|
@@ -3,14 +3,14 @@ declare const _default: ({
|
|
|
3
3
|
dataIndex: string;
|
|
4
4
|
title: string;
|
|
5
5
|
width: number;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
render: (val: string) => React.JSX.Element;
|
|
7
|
+
ellipsis?: undefined;
|
|
8
8
|
} | {
|
|
9
9
|
dataIndex: string;
|
|
10
10
|
title: string;
|
|
11
|
+
ellipsis: boolean;
|
|
11
12
|
width: number;
|
|
12
|
-
render: (
|
|
13
|
-
ellipsis?: undefined;
|
|
13
|
+
render: (type: number) => React.JSX.Element;
|
|
14
14
|
} | {
|
|
15
15
|
dataIndex: string;
|
|
16
16
|
title: string;
|
|
@@ -4,7 +4,7 @@ declare const _default: ({
|
|
|
4
4
|
title: string;
|
|
5
5
|
width: number;
|
|
6
6
|
ellipsis: boolean;
|
|
7
|
-
render
|
|
7
|
+
render: (value: any) => React.JSX.Element;
|
|
8
8
|
} | {
|
|
9
9
|
dataIndex: string;
|
|
10
10
|
title: string;
|
|
@@ -15,7 +15,7 @@ declare const _default: ({
|
|
|
15
15
|
dataIndex: string;
|
|
16
16
|
title: string;
|
|
17
17
|
width: number;
|
|
18
|
-
render: (price: string) => string;
|
|
18
|
+
render: (price: string | number) => string;
|
|
19
19
|
ellipsis?: undefined;
|
|
20
20
|
})[];
|
|
21
21
|
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import './Columns/columns.less';
|
|
2
3
|
export declare namespace BsE3Goods {
|
|
3
4
|
interface GoodsInfo {
|
|
4
5
|
deleted: 0 | 1;
|
|
@@ -30,6 +31,7 @@ export declare namespace BsE3Goods {
|
|
|
30
31
|
}
|
|
31
32
|
interface SelectDrawerRefObject {
|
|
32
33
|
getSelectGoodList: () => BsE3Goods.GoodsInfo[];
|
|
34
|
+
setDefaultSearchValue?: (value: Record<string, any>) => void;
|
|
33
35
|
}
|
|
34
36
|
}
|
|
35
37
|
declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<BsE3Goods.SelectDrawerRefObject>>;
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
maxLength: number;
|
|
5
|
-
shopList: any[];
|
|
6
|
-
width?: string | number;
|
|
7
|
-
shopCode?: string;
|
|
8
|
-
companyKey: string;
|
|
9
|
-
onSubmit: (...args: any[]) => any;
|
|
10
|
-
}
|
|
11
|
-
declare const _default: React.ForwardRefExoticComponent<GoodModelProps & React.RefAttributes<unknown>>;
|
|
2
|
+
import type { ErpGoodModelProps } from './type';
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<ErpGoodModelProps<any[]> & React.RefAttributes<unknown>>;
|
|
12
4
|
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import '../Columns/columns.less';
|
|
3
|
+
export declare namespace JkyGoods {
|
|
4
|
+
interface GoodsInfo {
|
|
5
|
+
companyKey: string;
|
|
6
|
+
id: number;
|
|
7
|
+
platform: 'JKY_ERP';
|
|
8
|
+
goodNo: string;
|
|
9
|
+
goodName: string;
|
|
10
|
+
imageUrl: string;
|
|
11
|
+
goodShortName: string;
|
|
12
|
+
categoryName: string;
|
|
13
|
+
productType: string;
|
|
14
|
+
brandName: string;
|
|
15
|
+
specName: string;
|
|
16
|
+
specNo: string;
|
|
17
|
+
specBarcode: string;
|
|
18
|
+
specImgUrl: string;
|
|
19
|
+
colorName: string;
|
|
20
|
+
sizeName: string;
|
|
21
|
+
marketPrice: string;
|
|
22
|
+
retailPrice: string;
|
|
23
|
+
costPrice: string;
|
|
24
|
+
isGift: boolean;
|
|
25
|
+
skuType: string;
|
|
26
|
+
}
|
|
27
|
+
interface SelectDrawerRefObject {
|
|
28
|
+
getSelectGoodList: () => JkyGoods.GoodsInfo[];
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<JkyGoods.SelectDrawerRefObject>>;
|
|
32
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { JkyGoods } from './GoodsList';
|
|
3
|
+
import type { ErpGoodModelProps } from '../type';
|
|
4
|
+
declare const _default: React.ForwardRefExoticComponent<ErpGoodModelProps<JkyGoods.GoodsInfo[]> & React.RefAttributes<unknown>>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import '../Columns/columns.less';
|
|
3
|
+
export declare namespace JyGoods {
|
|
4
|
+
interface GoodsInfo {
|
|
5
|
+
companyKey: string;
|
|
6
|
+
id: number;
|
|
7
|
+
platform: 'JY_ERP';
|
|
8
|
+
goodNo: string;
|
|
9
|
+
goodName: string;
|
|
10
|
+
imageUrl: string;
|
|
11
|
+
goodShortName: string;
|
|
12
|
+
categoryName: string;
|
|
13
|
+
productType: string;
|
|
14
|
+
brandName: string;
|
|
15
|
+
specName: string;
|
|
16
|
+
specNo: string;
|
|
17
|
+
specBarcode: string;
|
|
18
|
+
specImgUrl: string;
|
|
19
|
+
colorName: string;
|
|
20
|
+
sizeName: string;
|
|
21
|
+
marketPrice: string;
|
|
22
|
+
retailPrice: string;
|
|
23
|
+
costPrice: string;
|
|
24
|
+
isGift: boolean;
|
|
25
|
+
skuType: string;
|
|
26
|
+
}
|
|
27
|
+
interface SelectDrawerRefObject {
|
|
28
|
+
getSelectGoodList: () => JyGoods.GoodsInfo[];
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<JyGoods.SelectDrawerRefObject>>;
|
|
32
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { JyGoods } from './GoodsList';
|
|
3
|
+
import type { ErpGoodModelProps } from '../type';
|
|
4
|
+
declare const _default: React.ForwardRefExoticComponent<ErpGoodModelProps<JyGoods.GoodsInfo[]> & React.RefAttributes<unknown>>;
|
|
5
|
+
export default _default;
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
maxLength: number;
|
|
5
|
-
shopList: any[];
|
|
6
|
-
width?: string | number;
|
|
7
|
-
shopCode?: string;
|
|
8
|
-
companyKey: string;
|
|
9
|
-
onSubmit: (...args: any[]) => any;
|
|
10
|
-
}
|
|
11
|
-
declare const _default: React.ForwardRefExoticComponent<GoodModelProps & React.RefAttributes<unknown>>;
|
|
2
|
+
import type { ErpGoodModelProps } from './type';
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<ErpGoodModelProps<any[]> & React.RefAttributes<unknown>>;
|
|
12
4
|
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type RateProps = {
|
|
3
|
+
value: (number | null)[];
|
|
4
|
+
onChange: (v: (number | null)[]) => void;
|
|
5
|
+
placeholder: string[];
|
|
6
|
+
prefix: string;
|
|
7
|
+
onSubmit: () => void;
|
|
8
|
+
};
|
|
9
|
+
declare const Rate: ({ value, onChange, placeholder, prefix, onSubmit }: RateProps) => React.JSX.Element;
|
|
10
|
+
export default Rate;
|
package/dist/src/bs/component/model/WorkOrderList/SearchFormForWorkOrder/SearchHeader/index.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PropsWithChildren } from 'react';
|
|
3
|
+
import './index.less';
|
|
4
|
+
type SearchHeaderPropsType = {
|
|
5
|
+
fixedFields: string[];
|
|
6
|
+
allFields: any[];
|
|
7
|
+
status: boolean;
|
|
8
|
+
layout?: 'inner' | 'block';
|
|
9
|
+
isShowTime?: boolean;
|
|
10
|
+
timeOptions?: {
|
|
11
|
+
label: string;
|
|
12
|
+
value: string;
|
|
13
|
+
}[];
|
|
14
|
+
ShopList: React.JSX.Element;
|
|
15
|
+
onSubmit: () => void;
|
|
16
|
+
};
|
|
17
|
+
declare const SearchHeader: ({ allFields, children, status, layout, isShowTime, timeOptions, ShopList, onSubmit, }: PropsWithChildren<SearchHeaderPropsType>) => React.JSX.Element;
|
|
18
|
+
export default SearchHeader;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { FormInstance } from 'antd';
|
|
3
|
+
declare const SearchForm: (props: {
|
|
4
|
+
filterItems?: any[];
|
|
5
|
+
form: FormInstance;
|
|
6
|
+
ShopList: React.JSX.Element;
|
|
7
|
+
submit: () => void;
|
|
8
|
+
reset: () => void;
|
|
9
|
+
}) => React.JSX.Element;
|
|
10
|
+
export default SearchForm;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface SelectDrawerRefObject {
|
|
3
|
+
getSelectGoodList: () => any[];
|
|
4
|
+
setDefaultSearchValue?: (value: Record<string, any>) => void;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<SelectDrawerRefObject>>;
|
|
7
|
+
export default _default;
|