@kmkf-fe-packages/basic-components 2.2.13-beta.5 → 2.2.13-beta.51

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.
@@ -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
+ }[] | string[];
9
14
  type: string;
10
15
  disabled: boolean;
11
16
  onChange: (val: any) => void;
@@ -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;
@@ -9,7 +9,7 @@ declare const _default: ({
9
9
  dataIndex: string;
10
10
  title: string;
11
11
  width: number;
12
- render: (picUrl: string) => React.JSX.Element;
12
+ render: (picUrl: string) => React.JSX.Element | null;
13
13
  ellipsis?: undefined;
14
14
  } | {
15
15
  dataIndex: string;
@@ -17,5 +17,11 @@ declare const _default: ({
17
17
  ellipsis: boolean;
18
18
  width: number;
19
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;
20
26
  })[];
21
27
  export default _default;
@@ -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;
@@ -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>>;
@@ -4,24 +4,24 @@ export declare namespace JyGoods {
4
4
  companyKey: string;
5
5
  id: number;
6
6
  platform: 'JY_ERP';
7
- productCode: string;
8
- productName: string;
7
+ goodNo: string;
8
+ goodName: string;
9
9
  imageUrl: string;
10
- productShortName: string;
11
- productGroupName: string;
10
+ goodShortName: string;
11
+ categoryName: string;
12
12
  productType: string;
13
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;
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
22
  costPrice: string;
23
- gift: number;
24
- combination: number;
23
+ isGift: boolean;
24
+ skuType: string;
25
25
  }
26
26
  interface SelectDrawerRefObject {
27
27
  getSelectGoodList: () => JyGoods.GoodsInfo[];
@@ -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,68 @@
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
+ };
68
+ export default SYSTEM_ORDER_COLUMNS_MAP;
@@ -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.5",
3
+ "version": "2.2.13-beta.51",
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.3",
23
+ "@kmkf-fe-packages/kmkf-utils": "2.2.13-beta.51",
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": "3358a388585f748bd1439157578b8dd05532428a"
69
+ "gitHead": "b3b690348bd329c23e4b27923237ea56215fb710"
70
70
  }