@kmkf-fe-packages/basic-components 2.10.9-beta.5 → 2.10.9-beta.53

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.
@@ -45,6 +45,7 @@ interface BsGoodsProps {
45
45
  systemOrders?: any[];
46
46
  selectedSystemOrders?: any[];
47
47
  isReloadSelectTable?: boolean;
48
+ notAllowedOperation?: boolean;
48
49
  validSystemOrderFn?: () => boolean | undefined;
49
50
  }
50
51
  type MakeRequired<T, K extends keyof T> = {
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { type ReSyncPlatform } from './utils';
3
+ export type ReSyncQueryState = {
4
+ total: number | null;
5
+ formData: Record<string, any>;
6
+ };
7
+ type QueryService<TFormData, TResult extends {
8
+ total: number;
9
+ }> = (pagination: any, formData: TFormData) => Promise<TResult>;
10
+ export declare const useGoodsReSyncQuery: <TFormData, TResult extends {
11
+ total: number;
12
+ }>(service: QueryService<TFormData, TResult>) => readonly [(pagination: any, formData: TFormData) => Promise<TResult>, ReSyncQueryState];
13
+ type Props = {
14
+ platform: ReSyncPlatform;
15
+ queryState: ReSyncQueryState;
16
+ onSuccess: () => void | Promise<void>;
17
+ };
18
+ declare const GoodsReSync: ({ platform, queryState, onSuccess }: Props) => React.JSX.Element;
19
+ export default GoodsReSync;
@@ -0,0 +1,15 @@
1
+ export type ReSyncPlatform = 'JST_ERP' | 'WLN_ERP' | 'WDT_ERP' | 'GY_ERP' | 'JY_ERP' | 'KM_ERP';
2
+ export type ReSyncAction = {
3
+ key: 'goods';
4
+ label: '同步商品';
5
+ targetName: '商品';
6
+ value: string;
7
+ requestData: {
8
+ platform: ReSyncPlatform;
9
+ goodNos?: string[];
10
+ skuCodes?: string[];
11
+ styleCodes?: string[];
12
+ skuType?: 'normal' | 'combine';
13
+ };
14
+ };
15
+ export declare const getReSyncActions: (platform: ReSyncPlatform, total: number | null, formData: Record<string, any>) => ReSyncAction[];
@@ -3,3 +3,4 @@ export declare const transformFormData: (formData: Record<string, any>) => {
3
3
  compareSymbol: any;
4
4
  rightValue: any;
5
5
  }[];
6
+ export declare const shouldSubmitOnBlur: (relatedTarget: EventTarget | null) => boolean;
@@ -19,6 +19,7 @@ interface LogisticsInterceptionValueType {
19
19
  interceptLogisticsApiStatusReason: string;
20
20
  interceptLogisticsUserKCode: string;
21
21
  interceptLogisticsUserSecretKey: string;
22
+ interceptLogisticsCustomerCode: string;
22
23
  }
23
24
  interface LogisticsInterceptionProps {
24
25
  value: Partial<LogisticsInterceptionValueType>;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export interface YouzanStarProps {
3
+ disabled?: boolean;
4
+ compact?: boolean;
5
+ value?: number | string;
6
+ onChange?: (value?: number) => void;
7
+ }
8
+ declare const YouzanStar: ({ disabled, compact, value, onChange }: YouzanStarProps) => React.JSX.Element | null;
9
+ export default YouzanStar;
@@ -1,13 +1,16 @@
1
1
  import React from 'react';
2
+ import YouzanStar from './YouzanStar';
2
3
  interface ValueType {
3
4
  remark?: string;
4
- flag?: number;
5
+ flag?: number | string;
5
6
  }
6
7
  interface RemarkType {
7
8
  isShowFlag: boolean;
9
+ isYouzan?: boolean;
8
10
  disabled?: boolean;
9
11
  value: ValueType;
10
12
  onChange: (value: ValueType) => void;
11
13
  }
12
14
  declare const RemarkInput: (props: Partial<RemarkType>) => React.JSX.Element;
15
+ export { YouzanStar };
13
16
  export default RemarkInput;
@@ -9,6 +9,9 @@ type ColumnsItemType = {
9
9
  };
10
10
  type ColumnsMapType = Record<string, ColumnsItemType[]>;
11
11
  export type GetColumnsBaseInfoMapFnType = (...args: any[]) => ColumnsMapType;
12
+ export declare const MIN_COLUMN_WIDTH = 80;
13
+ export declare const MAX_COLUMN_WIDTH = 600;
14
+ export declare const resolveColumnWidth: (width: unknown, defaultWidth?: number) => number | undefined;
12
15
  export declare const getColumnsMap: GetColumnsBaseInfoMapFnType;
13
16
  export declare const erpColumnsMap: ColumnsMapType;
14
17
  export declare const erpFormValidator: (_rule: any, value: any, type: string, extraParams?: Record<string, any>) => any;
@@ -1 +1 @@
1
- export declare const getYesOrNo: (val: boolean | string | number) => "是" | "否" | null;
1
+ export declare const getYesOrNo: (val: boolean | string | number, content?: string[]) => string;
@@ -7,4 +7,5 @@ export { default as getJyColumns } from './jy';
7
7
  export { default as getSkxColumns } from './skx';
8
8
  export { default as getJkyColumns } from './jky';
9
9
  export { default as getDxdColumns } from './dxd';
10
+ export { default as getTtxColumns } from './ttx';
10
11
  export { default as orderSubFormConstants } from './orderSubForm';
@@ -48,12 +48,36 @@ declare const SYSTEM_ORDER_COLUMNS_MAP: {
48
48
  render: (val: any, record: any, _?: any, parent?: any, index?: number | undefined) => any;
49
49
  renderExport: (val: any, record: any, _?: any, parent?: any, index?: number | undefined) => any;
50
50
  })[];
51
- WDT_SYSTEM_ORDER: {
51
+ WDT_SYSTEM_ORDER: ({
52
52
  title: string;
53
53
  dataIndex: string;
54
54
  width: number;
55
55
  ellipsis: boolean;
56
- }[];
56
+ conditionOptionsSetting?: undefined;
57
+ } | {
58
+ title: string;
59
+ dataIndex: string;
60
+ width: number;
61
+ ellipsis: boolean;
62
+ conditionOptionsSetting: {
63
+ dataType: string;
64
+ getOptions: () => any[];
65
+ };
66
+ } | {
67
+ title: string;
68
+ dataIndex: string;
69
+ width: number;
70
+ ellipsis: boolean;
71
+ conditionOptionsSetting: {
72
+ dataType: string;
73
+ getOptions: ({ wdtVersion }: {
74
+ wdtVersion: string;
75
+ }) => {
76
+ value: string;
77
+ label: string;
78
+ }[];
79
+ };
80
+ })[];
57
81
  BS_E3_SYSTEM_ORDER: ({
58
82
  title: string;
59
83
  dataIndex: string;
@@ -138,6 +162,19 @@ declare const SYSTEM_ORDER_COLUMNS_MAP: {
138
162
  renderExport: (val: boolean) => "否" | "是";
139
163
  conditionOptionsSetting?: undefined;
140
164
  })[];
165
+ TTX_SYSTEM_ORDER: ({
166
+ dataIndex: string;
167
+ title: string;
168
+ width: number;
169
+ render?: undefined;
170
+ renderExport?: undefined;
171
+ } | {
172
+ dataIndex: string;
173
+ title: string;
174
+ width: number;
175
+ render: (value: any) => any;
176
+ renderExport: (value: any) => any;
177
+ })[];
141
178
  };
142
179
  export declare const FIELD_COLUMNS_MAP: {
143
180
  PLATFORM_AFTER_SALES_ORDER: any[];
@@ -0,0 +1,5 @@
1
+ import { GetColumnsBaseInfoMapFnType } from './columnsBaseInfoMap';
2
+ export declare const TTX_BOM_TYPE_MAP: Record<string, string>;
3
+ export declare const getTtxBomTypeName: (value: any) => string;
4
+ declare const getColumns: GetColumnsBaseInfoMapFnType;
5
+ export default getColumns;
@@ -25,6 +25,7 @@ export { default as TradeId } from './business/TradeId';
25
25
  export { default as ShopName } from './business/ShopName';
26
26
  export { default as Address } from './business/Address';
27
27
  export { default as Remark } from './business/Remark';
28
+ export { YouzanStar } from './business/Remark';
28
29
  export { default as ExpressLogistics } from './business/ExpressLogistics';
29
30
  export { default as ReturnLogistics } from './business/ExpressLogistics';
30
31
  export { default as AliPay } from './business/AliPay';
@@ -73,6 +74,6 @@ export { default as KmVideo } from './km/KmVideo';
73
74
  export { default as OrderSubFormUtils } from './apaas/OrderSubForm/utils';
74
75
  export { default as SkxIdInputSelect } from './skx/IdInputSelect';
75
76
  export { default as SkxGoods } from './skx/Goods';
76
- export { default as columnsBaseInfoMap, erpColumnsMap, erpFormValidator, } from './constants/columnsBaseInfoMap';
77
+ export { default as columnsBaseInfoMap, erpColumnsMap, erpFormValidator, MAX_COLUMN_WIDTH, MIN_COLUMN_WIDTH, resolveColumnWidth, } from './constants/columnsBaseInfoMap';
77
78
  export { default as SYSTEM_ORDER_COLUMNS_MAP, FIELD_COLUMNS_MAP } from './constants/systemOrderColumnsMap';
78
79
  export { default as erpModalColumnsMap } from './bs/component/model/Columns';
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { FormInstance } from 'antd';
2
3
  import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
3
4
  interface JstGoodsProps {
4
5
  value: any[];
@@ -9,9 +10,10 @@ interface JstGoodsProps {
9
10
  onBlur?: (val: any) => void;
10
11
  showField: string;
11
12
  platformType?: string;
12
- onlyShowFieldSelect: boolean;
13
+ onlyShowFieldSelect?: boolean;
13
14
  expressDateInstance: InstanceType<typeof ExpressData>;
14
15
  logisticsCompanyFormType?: string;
16
+ form?: FormInstance;
15
17
  }
16
18
  declare const jstGoods: (props: Partial<JstGoodsProps>) => React.JSX.Element;
17
19
  export default jstGoods;
@@ -0,0 +1,3 @@
1
+ export declare const ttxUtils: {
2
+ getOrderListSingleton: (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.10.9-beta.5",
3
+ "version": "2.10.9-beta.53",
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.10.9-beta.2",
23
+ "@kmkf-fe-packages/kmkf-utils": "2.10.9-beta.53",
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": "d2940af2e53941664024c54d7c2aa372a1df4476"
69
+ "gitHead": "2b33e941ade36298495ea83b762c57cbd52e3c12"
70
70
  }