@kmkf-fe-packages/basic-components 2.2.12 → 2.2.13-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.
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { renderMap } from './render';
2
3
  type subConfigType = {
3
4
  name: string;
4
5
  key: string;
@@ -25,8 +26,9 @@ type SubFormProps = {
25
26
  tableHeader: subConfigType[];
26
27
  disabled: boolean;
27
28
  platform: string;
28
- manual?: boolean;
29
29
  maxCount?: number;
30
+ manual?: boolean;
30
31
  };
31
32
  declare const SubForm: (props: SubFormProps) => React.JSX.Element;
32
33
  export default SubForm;
34
+ export { renderMap };
@@ -0,0 +1,22 @@
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 CheckboxRender: ({ value }: {
13
+ value: any;
14
+ }) => any;
15
+ export declare const MultipleSelectRender: ({ value }: {
16
+ value: any;
17
+ }) => any;
18
+ export declare const renderMap: Record<string, (props: any, platform?: string) => React.ReactNode>;
19
+ export declare const EditPictureRender: ({ val, index, t, updateHandle, disabled, hostUrl, platform, }: any) => React.JSX.Element;
20
+ export declare const EditFileRender: ({ val, index, t, updateHandle, disabled, hostUrl, platform, }: any) => React.JSX.Element;
21
+ export declare const EditRenderMap: Record<string, (props: any) => React.ReactNode>;
22
+ 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;
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ declare const _default: ({
3
+ dataIndex: string;
4
+ title: string;
5
+ width: number;
6
+ ellipsis: boolean;
7
+ render?: undefined;
8
+ } | {
9
+ dataIndex: string;
10
+ title: string;
11
+ width: number;
12
+ render: (picUrl: string) => React.JSX.Element;
13
+ ellipsis?: undefined;
14
+ } | {
15
+ dataIndex: string;
16
+ title: string;
17
+ ellipsis: boolean;
18
+ width: number;
19
+ render: (val: boolean) => React.JSX.Element;
20
+ })[];
21
+ export default _default;
@@ -0,0 +1,31 @@
1
+ import React from 'react';
2
+ export declare namespace JyGoods {
3
+ interface GoodsInfo {
4
+ companyKey: string;
5
+ id: number;
6
+ platform: 'JY_ERP';
7
+ productCode: string;
8
+ productName: string;
9
+ imageUrl: string;
10
+ productShortName: string;
11
+ productGroupName: string;
12
+ productType: string;
13
+ brandName: string;
14
+ skuName: string;
15
+ skuCode: string;
16
+ barcode: string;
17
+ skuImage: string;
18
+ color: string;
19
+ size: string;
20
+ markedPrice: string;
21
+ sellingPrice: string;
22
+ costPrice: string;
23
+ gift: number;
24
+ combination: number;
25
+ }
26
+ interface SelectDrawerRefObject {
27
+ getSelectGoodList: () => JyGoods.GoodsInfo[];
28
+ }
29
+ }
30
+ declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<JyGoods.SelectDrawerRefObject>>;
31
+ 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;
@@ -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;
@@ -3,5 +3,6 @@ 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';
7
8
  export { default as orderSubFormConstants } from './orderSubForm';
@@ -0,0 +1,3 @@
1
+ import { GetColumnsBaseInfoMapFnType } from './columnsBaseInfoMap';
2
+ declare const getColumns: GetColumnsBaseInfoMapFnType;
3
+ export default getColumns;
@@ -17,7 +17,7 @@ export { default as ApaasAddress } from './apaas/ApaasAddress';
17
17
  export { default as ApaasPosting } from './apaas/ApaasPosting';
18
18
  export { default as ApaasLogistics } from './apaas/ApaasLogistics';
19
19
  export { default as ApaasHoc } from './apaas/hoc/withFormItem';
20
- export { default as SubForm } from './apaas/SubForm';
20
+ export { default as SubForm, renderMap } from './apaas/SubForm';
21
21
  export { default as CopyTextIcon } from './apaas/CopyTextIcon';
22
22
  export { default as BuyerNick } from './business/BuyerNick';
23
23
  export { default as TradeId } from './business/TradeId';
@@ -0,0 +1,3 @@
1
+ export declare const jyUtils: {
2
+ getJyOrderListSingleton: (orderNo: string) => Promise<any>;
3
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "2.2.12",
3
+ "version": "2.2.13-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.11",
23
+ "@kmkf-fe-packages/kmkf-utils": "2.2.13-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": "5cd274e95ebaeba0c49da41667f1df8222873017"
69
+ "gitHead": "78391ac3335d8498a1315527ea1bd5ff9a3ae098"
70
70
  }