@kmkf-fe-packages/basic-components 2.2.39-beta.11 → 2.2.39-beta.15

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.
@@ -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;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const OptionalInput: (props: any) => React.JSX.Element;
@@ -8,12 +8,13 @@ type Props = {
8
8
  submit: () => void;
9
9
  reset: () => void;
10
10
  };
11
- export type SearchFormData = {
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;
@@ -0,0 +1,5 @@
1
+ export declare const transformFormData: (formData: Record<string, any>) => {
2
+ leftValue: string;
3
+ compareSymbol: any;
4
+ rightValue: any;
5
+ }[];
@@ -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';
@@ -0,0 +1,3 @@
1
+ import { GetColumnsBaseInfoMapFnType } from './columnsBaseInfoMap';
2
+ declare const getColumns: GetColumnsBaseInfoMapFnType;
3
+ export default getColumns;
@@ -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;
@@ -0,0 +1,3 @@
1
+ export declare const jkyUtils: {
2
+ getJkyOrderListSingleton: (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.39-beta.11",
3
+ "version": "2.2.39-beta.15",
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.39-beta.10",
23
+ "@kmkf-fe-packages/kmkf-utils": "2.2.39-beta.14",
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": "17a8d05bf0a340d025a4cd3a4c3a233f1f33f087"
69
+ "gitHead": "05d77d06b33492d280a6c829b6c88cae7977afc5"
70
70
  }