@kmkf-fe-packages/basic-components 2.2.41 → 2.2.44-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.
- package/README.md +1 -1
- package/dist/index.esm.js +2640 -1023
- package/dist/index.js +2640 -1021
- package/dist/src/apaas/SubForm/index.d.ts +3 -3
- package/dist/src/apaas/SubForm/render.d.ts +3 -0
- package/dist/src/bs/component/model/Columns/Erp/jky.d.ts +38 -0
- 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/components/SearchForm/components.d.ts +2 -0
- package/dist/src/bs/component/model/components/SearchForm/index.d.ts +4 -3
- package/dist/src/bs/component/model/components/SearchForm/utils.d.ts +5 -0
- package/dist/src/constants/index.d.ts +1 -0
- package/dist/src/constants/jky.d.ts +3 -0
- package/dist/src/constants/systemOrderColumnsMap.d.ts +7 -2
- package/dist/src/index.d.ts +1 -1
- package/dist/src/jky/common/index.d.ts +3 -0
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { renderMap } from './render';
|
|
2
|
+
import { renderMap, renderSplitMap } from './render';
|
|
3
3
|
type subConfigType = {
|
|
4
4
|
name: string;
|
|
5
5
|
key: string;
|
|
@@ -26,9 +26,9 @@ type SubFormProps = {
|
|
|
26
26
|
tableHeader: subConfigType[];
|
|
27
27
|
disabled: boolean;
|
|
28
28
|
platform: string;
|
|
29
|
-
manual?: boolean;
|
|
30
29
|
maxCount?: number;
|
|
30
|
+
manual?: boolean;
|
|
31
31
|
};
|
|
32
32
|
declare const SubForm: (props: SubFormProps) => React.JSX.Element;
|
|
33
33
|
export default SubForm;
|
|
34
|
-
export { renderMap };
|
|
34
|
+
export { renderMap, renderSplitMap };
|
|
@@ -9,6 +9,7 @@ export declare const PictureRender: ({ value, width, }: {
|
|
|
9
9
|
export declare const RadioRender: ({ value }: {
|
|
10
10
|
value: any;
|
|
11
11
|
}) => React.JSX.Element;
|
|
12
|
+
export declare const LogisticsCompanyRender: (value: string) => string | number;
|
|
12
13
|
export declare const CheckboxRender: ({ value }: {
|
|
13
14
|
value: any;
|
|
14
15
|
}) => any;
|
|
@@ -16,7 +17,9 @@ export declare const MultipleSelectRender: ({ value }: {
|
|
|
16
17
|
value: any;
|
|
17
18
|
}) => any;
|
|
18
19
|
export declare const renderMap: Record<string, (props: any, platform?: string) => React.ReactNode>;
|
|
20
|
+
export declare const renderSplitMap: Record<string, (props: any) => React.ReactNode>;
|
|
19
21
|
export declare const EditPictureRender: ({ val, index, t, updateHandle, disabled, hostUrl, platform, }: any) => React.JSX.Element;
|
|
20
22
|
export declare const EditFileRender: ({ val, index, t, updateHandle, disabled, hostUrl, platform, }: any) => React.JSX.Element;
|
|
21
23
|
export declare const EditRenderMap: Record<string, (props: any) => React.ReactNode>;
|
|
24
|
+
export declare const EditSplitRenderMap: Record<string, (props: any) => React.ReactNode>;
|
|
22
25
|
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
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: (val: string) => React.JSX.Element;
|
|
9
|
+
} | {
|
|
10
|
+
dataIndex: string;
|
|
11
|
+
title: string;
|
|
12
|
+
width: number;
|
|
13
|
+
render: (val: any) => string;
|
|
14
|
+
align?: undefined;
|
|
15
|
+
ellipsis?: undefined;
|
|
16
|
+
} | {
|
|
17
|
+
dataIndex: string;
|
|
18
|
+
title: string;
|
|
19
|
+
width: number;
|
|
20
|
+
align?: undefined;
|
|
21
|
+
ellipsis?: undefined;
|
|
22
|
+
render?: undefined;
|
|
23
|
+
} | {
|
|
24
|
+
dataIndex: string;
|
|
25
|
+
title: string;
|
|
26
|
+
width: number;
|
|
27
|
+
render: (val: string) => React.JSX.Element;
|
|
28
|
+
align?: undefined;
|
|
29
|
+
ellipsis?: undefined;
|
|
30
|
+
} | {
|
|
31
|
+
dataIndex: string;
|
|
32
|
+
title: string;
|
|
33
|
+
ellipsis: boolean;
|
|
34
|
+
width: number;
|
|
35
|
+
render: (value: any) => React.JSX.Element;
|
|
36
|
+
align?: undefined;
|
|
37
|
+
})[];
|
|
38
|
+
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: '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: () => 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;
|
|
@@ -8,12 +8,13 @@ type Props = {
|
|
|
8
8
|
submit: () => void;
|
|
9
9
|
reset: () => void;
|
|
10
10
|
};
|
|
11
|
-
export type
|
|
11
|
+
export type SearchFormItem = {
|
|
12
12
|
label: string;
|
|
13
13
|
name: string;
|
|
14
14
|
dataIndex?: string;
|
|
15
|
-
type?: undefined | 'input' | 'select';
|
|
15
|
+
type?: undefined | 'input' | 'select' | 'optionalInput';
|
|
16
16
|
formItemProps?: Record<string, any>;
|
|
17
|
-
}
|
|
17
|
+
};
|
|
18
|
+
export type SearchFormData = SearchFormItem[];
|
|
18
19
|
declare function SearchForm({ searchFormData, form, showColumnsDataIndexList, submit, reset, }: Props): React.JSX.Element;
|
|
19
20
|
export default SearchForm;
|
|
@@ -5,4 +5,5 @@ export { default as getWdtColumns } from './wdt';
|
|
|
5
5
|
export { default as getKmColumns } from './km';
|
|
6
6
|
export { default as getJyColumns } from './jy';
|
|
7
7
|
export { default as getSkxColumns } from './skx';
|
|
8
|
+
export { default as getJkyColumns } from './jky';
|
|
8
9
|
export { default as orderSubFormConstants } from './orderSubForm';
|
|
@@ -14,8 +14,8 @@ declare const SYSTEM_ORDER_COLUMNS_MAP: {
|
|
|
14
14
|
dataIndex: string;
|
|
15
15
|
title: string;
|
|
16
16
|
width: number;
|
|
17
|
-
render: (val: "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_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;
|
|
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
19
|
} | {
|
|
20
20
|
dataIndex: string;
|
|
21
21
|
title: string;
|
|
@@ -64,6 +64,11 @@ declare const SYSTEM_ORDER_COLUMNS_MAP: {
|
|
|
64
64
|
title: string;
|
|
65
65
|
width: number;
|
|
66
66
|
}[];
|
|
67
|
+
JKY_SYSTEM_ORDER: {
|
|
68
|
+
dataIndex: string;
|
|
69
|
+
title: string;
|
|
70
|
+
width: number;
|
|
71
|
+
}[];
|
|
67
72
|
WDT_RETURN_BILL_NO: ({
|
|
68
73
|
title: string;
|
|
69
74
|
dataIndex: string;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export { default as ApaasAddress } from './apaas/ApaasAddress';
|
|
|
18
18
|
export { default as ApaasPosting } from './apaas/ApaasPosting';
|
|
19
19
|
export { default as ApaasLogistics } from './apaas/ApaasLogistics';
|
|
20
20
|
export { default as ApaasHoc } from './apaas/hoc/withFormItem';
|
|
21
|
-
export { default as SubForm, renderMap } from './apaas/SubForm';
|
|
21
|
+
export { default as SubForm, renderMap, renderSplitMap } from './apaas/SubForm';
|
|
22
22
|
export { default as CopyTextIcon } from './apaas/CopyTextIcon';
|
|
23
23
|
export { default as BuyerNick } from './business/BuyerNick';
|
|
24
24
|
export { default as TradeId } from './business/TradeId';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.44-beta.0",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -20,7 +20,7 @@
|
|
|
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.2.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "2.2.44-beta.0",
|
|
24
24
|
"ahooks": "^3.7.4",
|
|
25
25
|
"ali-react-table": "2.6.1",
|
|
26
26
|
"bignumber.js": "^9.1.2",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"publishConfig": {
|
|
67
67
|
"access": "public"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "716ed4f64a6fd45217b1ba041f5f7eb3a35496c0"
|
|
70
70
|
}
|