@kmkf-fe-packages/basic-components 2.2.13-beta.11 → 2.2.13-beta.113
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 +1836 -834
- package/dist/index.js +1835 -832
- package/dist/src/bs/SystemOrder/index.d.ts +5 -0
- package/dist/src/bs/component/GoodItem/constants/wdtReissueGoodsColumns.d.ts +2 -1
- package/dist/src/bs/component/GoodItem/index.d.ts +7 -2
- 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/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/jst.d.ts +1 -7
- package/dist/src/bs/component/model/Columns/Erp/jy.d.ts +0 -6
- package/dist/src/bs/component/model/Columns/Erp/km.d.ts +0 -6
- 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/JstGoodsModal/GoodsList.d.ts +1 -0
- package/dist/src/bs/component/model/JyGoodsModal/GoodsList.d.ts +1 -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/WorkOrderList/index.d.ts +1 -0
- package/dist/src/bs/component/model/WorkOrderList/useDefaultSearchValue.d.ts +10 -0
- package/dist/src/bs/component/model/components/SearchForm/index.d.ts +1 -0
- package/dist/src/bs/component/model/type.d.ts +3 -0
- package/dist/src/constants/systemOrderColumnsMap.d.ts +74 -0
- package/dist/src/index.d.ts +1 -0
- package/package.json +3 -3
|
@@ -4,8 +4,9 @@ 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;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { GoodsSourceFormatType, GoodsSourceType } from '../model/type';
|
|
3
3
|
import { FormInstance } from 'antd/es/form';
|
|
4
|
+
import '../model/Columns/columns.less';
|
|
4
5
|
interface BsGoodsProps {
|
|
6
|
+
templateDetail?: any;
|
|
5
7
|
form: FormInstance;
|
|
6
8
|
value: any[];
|
|
7
9
|
type: string;
|
|
@@ -17,6 +19,7 @@ interface BsGoodsProps {
|
|
|
17
19
|
shopId: string | number;
|
|
18
20
|
maxLength: number;
|
|
19
21
|
showChangeBtn: boolean;
|
|
22
|
+
hasSelectedSystemOrder: boolean;
|
|
20
23
|
showErpGoodsBtn: boolean;
|
|
21
24
|
showModeBtn: boolean;
|
|
22
25
|
alwaysShowChooseErpGoodsBtn?: boolean;
|
|
@@ -54,12 +57,14 @@ type SelectTradeGoodsProps = {
|
|
|
54
57
|
uniqueKey?: string;
|
|
55
58
|
selectedRowKeys: Array<React.Key>;
|
|
56
59
|
onChangeSelectedKeys: (p: React.Key[]) => void;
|
|
57
|
-
|
|
60
|
+
isShowSelect?: boolean;
|
|
58
61
|
systemOrders?: any[];
|
|
59
62
|
selectedSystemOrders?: any[];
|
|
60
63
|
type?: string;
|
|
61
64
|
width?: number;
|
|
65
|
+
validSystemOrder?: boolean;
|
|
66
|
+
isReissueType?: boolean;
|
|
62
67
|
};
|
|
63
|
-
export declare const SelectTradeGoods: ({ columns, dataSource, getDataSourceAsync, selectedRowKeys, onChangeSelectedKeys, uniqueKey,
|
|
68
|
+
export declare const SelectTradeGoods: ({ columns, dataSource, getDataSourceAsync, selectedRowKeys, onChangeSelectedKeys, uniqueKey, isShowSelect, systemOrders, selectedSystemOrders, validSystemOrder, type, width, isReissueType, }: SelectTradeGoodsProps) => React.JSX.Element;
|
|
64
69
|
declare const GoodItem: (props: MakeRequired<Partial<BsGoodsProps>, 'useGoodsSourceFormat'>) => React.JSX.Element;
|
|
65
70
|
export default GoodItem;
|
|
@@ -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;
|
|
@@ -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,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
interface SelectDrawerRefObject {
|
|
3
3
|
getSelectGoodList: () => any[];
|
|
4
|
+
setDefaultSearchValue?: (value: Record<string, any>) => void;
|
|
4
5
|
}
|
|
5
6
|
declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<SelectDrawerRefObject>>;
|
|
6
7
|
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { FormInstance } from 'antd/es/form';
|
|
2
|
+
type PropsType = {
|
|
3
|
+
form: FormInstance;
|
|
4
|
+
companyKey: string;
|
|
5
|
+
source?: 'workOrder' | 'erp';
|
|
6
|
+
erp: string;
|
|
7
|
+
templateDetail?: any;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: (props: PropsType) => "" | Record<string, any>;
|
|
10
|
+
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import type { FormInstance } from 'antd/es/form';
|
|
2
3
|
export type GoodsSourceFormatType = {
|
|
3
4
|
filterItems?: any[];
|
|
4
5
|
flowNodeId: string;
|
|
@@ -41,12 +42,14 @@ export type GoodsSourceType = {
|
|
|
41
42
|
};
|
|
42
43
|
};
|
|
43
44
|
export interface ErpGoodModelProps<T = any[]> {
|
|
45
|
+
templateDetail?: any;
|
|
44
46
|
shopId: number | string;
|
|
45
47
|
maxLength: number;
|
|
46
48
|
shopList: any[];
|
|
47
49
|
width?: string | number;
|
|
48
50
|
shopCode?: string;
|
|
49
51
|
companyKey: string;
|
|
52
|
+
form?: FormInstance;
|
|
50
53
|
useGoodsSourceFormat: (goodsSource?: GoodsSourceType) => GoodsSourceFormatType;
|
|
51
54
|
goodsSource?: GoodsSourceType;
|
|
52
55
|
onSubmit: (goodsList: T) => any;
|
|
@@ -0,0 +1,74 @@
|
|
|
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_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;
|
|
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
|
+
WDT_RETURN_BILL_NO: {
|
|
68
|
+
title: string;
|
|
69
|
+
dataIndex: string;
|
|
70
|
+
width: number;
|
|
71
|
+
ellipsis: boolean;
|
|
72
|
+
}[];
|
|
73
|
+
};
|
|
74
|
+
export default SYSTEM_ORDER_COLUMNS_MAP;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -73,4 +73,5 @@ export { default as OrderSubFormUtils } from './apaas/OrderSubForm/utils';
|
|
|
73
73
|
export { default as SkxIdInputSelect } from './skx/IdInputSelect';
|
|
74
74
|
export { default as SkxGoods } from './skx/Goods';
|
|
75
75
|
export { default as columnsBaseInfoMap, erpColumnsMap, erpFormValidator, } from './constants/columnsBaseInfoMap';
|
|
76
|
+
export { default as SYSTEM_ORDER_COLUMNS_MAP } from './constants/systemOrderColumnsMap';
|
|
76
77
|
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.2.13-beta.
|
|
3
|
+
"version": "2.2.13-beta.113",
|
|
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.13-beta.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "2.2.13-beta.113",
|
|
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": "01d730ab8c59f46c5466da21a5c5ac3ca607824e"
|
|
70
70
|
}
|