@kmkf-fe-packages/basic-components 2.2.15 → 2.2.16

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.
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import type { GoodsSourceFormatType, GoodsSourceType } from '../model/type';
3
3
  import { FormInstance } from 'antd/es/form';
4
4
  interface BsGoodsProps {
5
+ templateDetail?: any;
5
6
  form: FormInstance;
6
7
  value: any[];
7
8
  type: string;
@@ -0,0 +1,27 @@
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 | null;
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
+ dataIndex: string;
22
+ title: string;
23
+ ellipsis: boolean;
24
+ width: number;
25
+ render: (val: string) => React.JSX.Element;
26
+ })[];
27
+ export default _default;
@@ -30,6 +30,7 @@ export declare namespace BsE3Goods {
30
30
  }
31
31
  interface SelectDrawerRefObject {
32
32
  getSelectGoodList: () => BsE3Goods.GoodsInfo[];
33
+ setDefaultSearchValue?: (value: Record<string, any>) => void;
33
34
  }
34
35
  }
35
36
  declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<BsE3Goods.SelectDrawerRefObject>>;
@@ -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
+ goodNo: string;
8
+ goodName: string;
9
+ imageUrl: string;
10
+ goodShortName: string;
11
+ categoryName: string;
12
+ productType: string;
13
+ brandName: string;
14
+ specName: string;
15
+ specNo: string;
16
+ specBarcode: string;
17
+ specImgUrl: string;
18
+ colorName: string;
19
+ sizeName: string;
20
+ marketPrice: string;
21
+ retailPrice: string;
22
+ costPrice: string;
23
+ isGift: boolean;
24
+ skuType: string;
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;
@@ -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;
@@ -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;
@@ -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.15",
3
+ "version": "2.2.16",
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.15",
23
+ "@kmkf-fe-packages/kmkf-utils": "2.2.16",
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": "fcfdedb4dd62e3aae672079a7dc7a285db5bf8dd"
69
+ "gitHead": "ed128b5e709f85cd442856005196efceeb7c29c5"
70
70
  }