@kmkf-fe-packages/basic-components 2.5.0-rc.0 → 2.5.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.
Files changed (62) hide show
  1. package/dist/index.esm.js +15741 -7845
  2. package/dist/index.js +15748 -7844
  3. package/dist/src/apaas/ApaasAddress/index.d.ts +1 -1
  4. package/dist/src/apaas/ApaasImage/index.d.ts +4 -0
  5. package/dist/src/apaas/ApaasPosting/index.d.ts +1 -1
  6. package/dist/src/apaas/SubForm/index.d.ts +2 -0
  7. package/dist/src/apaas/SubForm/render.d.ts +25 -0
  8. package/dist/src/apaas/SubForm/transformWorkOrderData.d.ts +15 -0
  9. package/dist/src/bs/SystemOrder/index.d.ts +5 -0
  10. package/dist/src/bs/component/GoodItem/constants/bsE3ReissueGoodsColumns.d.ts +1 -1
  11. package/dist/src/bs/component/GoodItem/constants/index.d.ts +2 -1
  12. package/dist/src/bs/component/GoodItem/constants/wdtReissueGoodsColumns.d.ts +4 -3
  13. package/dist/src/bs/component/GoodItem/index.d.ts +23 -3
  14. package/dist/src/bs/component/GoodsModal.d.ts +2 -0
  15. package/dist/src/bs/component/model/BsE3GoodList.d.ts +1 -0
  16. package/dist/src/bs/component/model/BsE3GoodsModal.d.ts +2 -10
  17. package/dist/src/bs/component/model/Columns/Erp/bse3.d.ts +2 -0
  18. package/dist/src/bs/component/model/Columns/Erp/common.d.ts +2 -0
  19. package/dist/src/bs/component/model/Columns/Erp/gy.d.ts +1 -1
  20. package/dist/src/bs/component/model/Columns/Erp/jky.d.ts +24 -0
  21. package/dist/src/bs/component/model/Columns/Erp/jst.d.ts +1 -7
  22. package/dist/src/bs/component/model/Columns/Erp/jy.d.ts +21 -0
  23. package/dist/src/bs/component/model/Columns/Erp/km.d.ts +4 -4
  24. package/dist/src/bs/component/model/Columns/Erp/wdt.d.ts +8 -2
  25. package/dist/src/bs/component/model/GyGoodsList.d.ts +2 -0
  26. package/dist/src/bs/component/model/GyGoodsModal.d.ts +2 -10
  27. package/dist/src/bs/component/model/JkyGoodsModal/GoodsList.d.ts +32 -0
  28. package/dist/src/bs/component/model/JkyGoodsModal/index.d.ts +5 -0
  29. package/dist/src/bs/component/model/JstGoodsModal/GoodsList.d.ts +1 -0
  30. package/dist/src/bs/component/model/JyGoodsModal/GoodsList.d.ts +32 -0
  31. package/dist/src/bs/component/model/JyGoodsModal/index.d.ts +5 -0
  32. package/dist/src/bs/component/model/KmGoodsModal/GoodsList.d.ts +1 -0
  33. package/dist/src/bs/component/model/WdtGoodList.d.ts +1 -0
  34. package/dist/src/bs/component/model/WdtGoodsModal.d.ts +2 -10
  35. package/dist/src/bs/component/model/WorkOrderList/SearchFormForWorkOrder/FilterSelectOption/Rate/index.d.ts +10 -0
  36. package/dist/src/bs/component/model/WorkOrderList/SearchFormForWorkOrder/FilterSelectOption/TrimInput/index.d.ts +3 -0
  37. package/dist/src/bs/component/model/WorkOrderList/SearchFormForWorkOrder/FilterSelectOption/index.d.ts +3 -0
  38. package/dist/src/bs/component/model/WorkOrderList/SearchFormForWorkOrder/SearchHeader/index.d.ts +18 -0
  39. package/dist/src/bs/component/model/WorkOrderList/SearchFormForWorkOrder/index.d.ts +10 -0
  40. package/dist/src/bs/component/model/WorkOrderList/index.d.ts +7 -0
  41. package/dist/src/bs/component/model/WorkOrderList/useDefaultSearchValue.d.ts +10 -0
  42. package/dist/src/bs/component/model/components/SearchForm/components.d.ts +2 -0
  43. package/dist/src/bs/component/model/components/SearchForm/index.d.ts +5 -3
  44. package/dist/src/bs/component/model/components/SearchForm/utils.d.ts +5 -0
  45. package/dist/src/bs/component/model/type.d.ts +48 -1
  46. package/dist/src/business/LogisticsInterception/index.d.ts +2 -0
  47. package/dist/src/common/CommonGoods/index.d.ts +4 -1
  48. package/dist/src/common/HighPerformanceTable/index.d.ts +16 -0
  49. package/dist/src/common/HighPerformanceTable/multiSelect.d.ts +31 -0
  50. package/dist/src/common/IdentifyAddress/index.d.ts +1 -1
  51. package/dist/src/common/Reissue/index.d.ts +4 -1
  52. package/dist/src/constants/columnsBaseInfoMap.d.ts +2 -2
  53. package/dist/src/constants/index.d.ts +2 -0
  54. package/dist/src/constants/jky.d.ts +3 -0
  55. package/dist/src/constants/jy.d.ts +3 -0
  56. package/dist/src/constants/systemOrderColumnsMap.d.ts +94 -0
  57. package/dist/src/index.d.ts +3 -2
  58. package/dist/src/jky/common/index.d.ts +3 -0
  59. package/dist/src/jst/Goods/index.d.ts +1 -0
  60. package/dist/src/jy/common/index.d.ts +3 -0
  61. package/package.json +4 -3
  62. 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;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ImageProps } from 'antd';
3
+ declare function ApaasImage(props: ImageProps): React.JSX.Element;
4
+ export default ApaasImage;
@@ -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;
@@ -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;
@@ -6,6 +6,11 @@ interface BsSystemOrderProps {
6
6
  selectIds: string[];
7
7
  showOrderInfo: any[];
8
8
  };
9
+ showHeader: {
10
+ title: string;
11
+ dataIndex: string;
12
+ show?: boolean;
13
+ }[];
9
14
  type: string;
10
15
  disabled: boolean;
11
16
  onChange: (val: any) => void;
@@ -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, callback?: any) => Promise<void> | undefined) | undefined;
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, callback?: any) => Promise<void> | undefined) | undefined;
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, callback?: any) => Promise<void> | undefined) | undefined;
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,7 +44,14 @@ interface BsGoodsProps {
38
44
  };
39
45
  systemOrders?: any[];
40
46
  selectedSystemOrders?: any[];
47
+ isReloadSelectTable?: boolean;
48
+ validSystemOrderFn?: () => boolean | undefined;
41
49
  }
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
+ };
42
55
  type SelectTradeGoodsProps = {
43
56
  columns: Array<any>;
44
57
  dataSource: Array<any>;
@@ -46,12 +59,19 @@ type SelectTradeGoodsProps = {
46
59
  uniqueKey?: string;
47
60
  selectedRowKeys: Array<React.Key>;
48
61
  onChangeSelectedKeys: (p: React.Key[]) => void;
49
- isGoods?: boolean;
62
+ isShowSelect?: boolean;
50
63
  systemOrders?: any[];
51
64
  selectedSystemOrders?: any[];
52
65
  type?: string;
53
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;
54
75
  };
55
- export declare const SelectTradeGoods: ({ columns, dataSource, getDataSourceAsync, selectedRowKeys, onChangeSelectedKeys, uniqueKey, isGoods, systemOrders, selectedSystemOrders, type, width, }: SelectTradeGoodsProps) => React.JSX.Element;
56
- declare const GoodItem: (props: Partial<BsGoodsProps>) => React.JSX.Element;
76
+ declare const GoodItem: (props: MakeRequired<Partial<BsGoodsProps>, 'useGoodsSourceFormat'>) => React.JSX.Element;
57
77
  export default GoodItem;
@@ -1,4 +1,6 @@
1
1
  import React from 'react';
2
+ import './model/Columns/columns.less';
3
+ import './model/components/SearchForm/index.less';
2
4
  interface GoodModelProps {
3
5
  shopId: number | string;
4
6
  maxLength: number;
@@ -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;
@@ -1,12 +1,4 @@
1
1
  import React from 'react';
2
- interface GoodModelProps {
3
- shopId: number | string;
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;
@@ -1,7 +1,9 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: {
2
3
  dataIndex: string;
3
4
  title: string;
4
5
  ellipsis: boolean;
5
6
  width: number;
7
+ render: (value: any) => import("react").JSX.Element;
6
8
  }[];
7
9
  export default _default;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const renderTextEllipsis: (value: any) => React.JSX.Element;
@@ -4,7 +4,7 @@ declare const _default: ({
4
4
  title: string;
5
5
  width: number;
6
6
  ellipsis: boolean;
7
- render?: undefined;
7
+ render: (value: any) => React.JSX.Element;
8
8
  } | {
9
9
  dataIndex: string;
10
10
  title: string;
@@ -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') => string;
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
- ellipsis: boolean;
7
- render?: undefined;
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: (val: string) => React.JSX.Element;
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?: undefined;
7
+ render: (value: any) => React.JSX.Element;
8
8
  } | {
9
9
  dataIndex: string;
10
10
  title: string;
@@ -15,7 +15,13 @@ 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
+ ellipsis?: undefined;
20
+ } | {
21
+ dataIndex: string;
22
+ title: string;
23
+ width: number;
24
+ render: (type: string) => "组合装" | "非组合装";
19
25
  ellipsis?: undefined;
20
26
  })[];
21
27
  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
- interface GoodModelProps {
3
- shopId: number | string;
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;
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import '../Columns/columns.less';
2
3
  export declare namespace JstGoods {
3
4
  interface GoodsInfo {
4
5
  brandName: string;
@@ -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,4 +1,5 @@
1
1
  import React from 'react';
2
+ import '../Columns/columns.less';
2
3
  export declare namespace ErpGoods {
3
4
  interface GoodsInfo {
4
5
  brandName: string;
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import './Columns/columns.less';
2
3
  export declare namespace WdtGoods {
3
4
  interface GoodsInfo {
4
5
  deleted: 0 | 1;
@@ -1,12 +1,4 @@
1
1
  import React from 'react';
2
- interface GoodModelProps {
3
- shopId: number | string;
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;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const TrimInput: (props: any) => React.JSX.Element;
3
+ export default TrimInput;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const FilterSelectOption: (props: any) => React.JSX.Element | null;
3
+ export default FilterSelectOption;
@@ -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;
@@ -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;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const OptionalInput: (props: any) => React.JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { FormInstance } from 'antd';
3
+ import './index.less';
3
4
  type Props = {
4
5
  searchFormData: SearchFormData;
5
6
  form: FormInstance;
@@ -7,12 +8,13 @@ type Props = {
7
8
  submit: () => void;
8
9
  reset: () => void;
9
10
  };
10
- export type SearchFormData = {
11
+ export type SearchFormItem = {
11
12
  label: string;
12
13
  name: string;
13
14
  dataIndex?: string;
14
- type?: undefined | 'input' | 'select';
15
+ type?: undefined | 'input' | 'select' | 'optionalInput';
15
16
  formItemProps?: Record<string, any>;
16
- }[];
17
+ };
18
+ export type SearchFormData = SearchFormItem[];
17
19
  declare function SearchForm({ searchFormData, form, showColumnsDataIndexList, submit, reset, }: Props): React.JSX.Element;
18
20
  export default SearchForm;
@@ -0,0 +1,5 @@
1
+ export declare const transformFormData: (formData: Record<string, any>) => {
2
+ leftValue: string;
3
+ compareSymbol: any;
4
+ rightValue: any;
5
+ }[];