wt-enjoy-link-antd-repack 4.1.32 → 4.1.36

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.
Files changed (22) hide show
  1. package/dist/esm/component/BiuAButton/index.d.ts +4 -4
  2. package/dist/esm/component/BiuComSelect/index.d.ts +1 -1
  3. package/dist/esm/component/BiuField/component/DepartOrgSelect/index.js +3 -3
  4. package/dist/esm/component/BiuField/component/appliedgoodsTypeSelect.d.ts +1 -1
  5. package/dist/esm/component/BiuField/component/dicNameSelect.d.ts +1 -1
  6. package/dist/esm/component/BiuField/component/dicTypeSelect.d.ts +1 -1
  7. package/dist/esm/component/BiuField/component/dockingPartySelect.d.ts +1 -1
  8. package/dist/esm/component/BiuField/component/editLocationSelect.d.ts +1 -1
  9. package/dist/esm/component/BiuField/component/electronicFaceSheet/addresSelect.d.ts +1 -1
  10. package/dist/esm/component/BiuField/component/electronicFaceSheet/platformSelect.d.ts +1 -1
  11. package/dist/esm/component/BiuField/component/goodsTypeSelect.d.ts +1 -1
  12. package/dist/esm/component/BiuField/component/interfaceNameSelect.d.ts +1 -1
  13. package/dist/esm/component/BiuField/component/lpnSelect.js +9 -5
  14. package/dist/esm/component/BiuField/component/lpnSelectNew.js +2 -2
  15. package/dist/esm/component/BiuField/component/orderTypeSelect.d.ts +1 -1
  16. package/dist/esm/component/BiuField/component/parkSelect.d.ts +1 -1
  17. package/dist/esm/component/BiuField/component/propertNameSelect.d.ts +2 -2
  18. package/dist/esm/component/BiuField/component/warehouseAreaSelect.d.ts +1 -1
  19. package/dist/esm/component/BiuField/component/warehouseInfoSelect.d.ts +1 -1
  20. package/dist/esm/component/BiuField/component/warehouseLoctionSelect.d.ts +1 -1
  21. package/dist/esm/component/BiuTableSelect/index.d.ts +1 -1
  22. package/package.json +1 -1
@@ -3,16 +3,16 @@ export declare const BiuAButton: React.MemoExoticComponent<import("styled-compon
3
3
  href: string;
4
4
  target?: string | undefined;
5
5
  onClick?: React.MouseEventHandler<HTMLElement> | undefined;
6
- } & import("antd/lib/button/button").BaseButtonProps & Omit<React.AnchorHTMLAttributes<any>, "type" | "onClick"> & {
6
+ } & import("antd/lib/button/button").BaseButtonProps & Omit<React.AnchorHTMLAttributes<any>, "onClick" | "type"> & {
7
7
  htmlType?: "button" | "submit" | "reset" | undefined;
8
8
  onClick?: React.MouseEventHandler<HTMLElement> | undefined;
9
- } & Omit<React.ButtonHTMLAttributes<any>, "type" | "onClick">> & React.RefAttributes<HTMLElement>, never>> & Omit<React.ForwardRefExoticComponent<Partial<{
9
+ } & Omit<React.ButtonHTMLAttributes<any>, "onClick" | "type">> & React.RefAttributes<HTMLElement>, never>> & Omit<React.ForwardRefExoticComponent<Partial<{
10
10
  href: string;
11
11
  target?: string | undefined;
12
12
  onClick?: React.MouseEventHandler<HTMLElement> | undefined;
13
- } & import("antd/lib/button/button").BaseButtonProps & Omit<React.AnchorHTMLAttributes<any>, "type" | "onClick"> & {
13
+ } & import("antd/lib/button/button").BaseButtonProps & Omit<React.AnchorHTMLAttributes<any>, "onClick" | "type"> & {
14
14
  htmlType?: "button" | "submit" | "reset" | undefined;
15
15
  onClick?: React.MouseEventHandler<HTMLElement> | undefined;
16
- } & Omit<React.ButtonHTMLAttributes<any>, "type" | "onClick">> & React.RefAttributes<HTMLElement>> & {
16
+ } & Omit<React.ButtonHTMLAttributes<any>, "onClick" | "type">> & React.RefAttributes<HTMLElement>> & {
17
17
  Group: React.FC<import("antd/lib/button").ButtonGroupProps>;
18
18
  }, keyof React.Component<any, {}, any>>>;
@@ -17,7 +17,7 @@ export type BiuComSelectPropsType = {
17
17
  * @returns
18
18
  */
19
19
  export declare const BiuComSelect: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
20
- value?: string | number | string[] | number[] | undefined;
20
+ value?: string | number | number[] | string[] | undefined;
21
21
  loginCode?: string | undefined;
22
22
  isForce?: boolean | undefined;
23
23
  isVaild?: boolean | undefined;
@@ -91,7 +91,7 @@ var UnSubDepartSelect = /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(functio
91
91
  disabled: disabled,
92
92
  treeDataSimpleMode: true,
93
93
  autoClearSearchValue: true,
94
- dropdownMatchSelectWidth: 256,
94
+ dropdownMatchSelectWidth: false,
95
95
  onChange: setState,
96
96
  value: !treeData || treeData.length <= 0 ? undefined : state,
97
97
  allowClear: allowClear,
@@ -150,7 +150,7 @@ var SubDepartSelect = /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function
150
150
  autoClearSearchValue: true,
151
151
  treeDefaultExpandAll: true,
152
152
  treeNodeFilterProp: 'title',
153
- dropdownMatchSelectWidth: 200,
153
+ dropdownMatchSelectWidth: false,
154
154
  onChange: setState,
155
155
  loading: loading,
156
156
  value: !treeData || treeData.length <= 0 || !state || state == null ? undefined : +state,
@@ -220,7 +220,7 @@ var InSubDepartSelect = /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(functio
220
220
  disabled: disabled,
221
221
  treeDataSimpleMode: true,
222
222
  autoClearSearchValue: true,
223
- dropdownMatchSelectWidth: 256,
223
+ dropdownMatchSelectWidth: false,
224
224
  onChange: setState,
225
225
  value: !treeData || treeData.length <= 0 ? undefined : state,
226
226
  allowClear: allowClear
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
4
4
  id?: string | undefined;
5
5
  ownerId?: string | undefined;
6
- value?: string | number | string[] | number[] | undefined;
6
+ value?: string | number | number[] | string[] | undefined;
7
7
  noOwnerContent?: string | undefined;
8
8
  } & Pick<SelectProps<any, import("antd/lib/select").DefaultOptionType>, "onChange"> & React.RefAttributes<unknown>>>;
9
9
  export default _default;
@@ -5,7 +5,7 @@ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponen
5
5
  typename?: string | undefined;
6
6
  page?: number | undefined;
7
7
  pageSize?: number | undefined;
8
- values?: string | number | string[] | number[] | undefined;
8
+ values?: string | number | number[] | string[] | undefined;
9
9
  invalid?: number | undefined;
10
10
  queryType?: number | undefined;
11
11
  } & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
@@ -20,7 +20,7 @@ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponen
20
20
  /**
21
21
  * 绑定值 value: string | string[] | number | number[];
22
22
  */
23
- value?: string | number | string[] | number[] | undefined;
23
+ value?: string | number | number[] | string[] | undefined;
24
24
  invalid?: number | undefined;
25
25
  /**
26
26
  * 数据状态 invalid: number;
@@ -1,7 +1,7 @@
1
1
  import type { SelectProps } from 'antd';
2
2
  import React from 'react';
3
3
  declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
4
- value?: string | number | string[] | number[] | undefined;
4
+ value?: string | number | number[] | string[] | undefined;
5
5
  onChangeData?: ((value: any, record: any) => void) | undefined;
6
6
  type?: string | undefined;
7
7
  } & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
@@ -7,7 +7,7 @@ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponen
7
7
  warehouseIds?: string | undefined;
8
8
  locationCode?: string | undefined;
9
9
  warehouseAreaId?: number | undefined;
10
- value?: string | number | string[] | number[] | undefined;
10
+ value?: string | number | number[] | string[] | undefined;
11
11
  onChangeData?: ((value: any, record: any) => any) | undefined;
12
12
  areaType?: string | undefined;
13
13
  interfaceType?: string | undefined;
@@ -6,7 +6,7 @@ import React from 'react';
6
6
  * @returns
7
7
  */
8
8
  declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
9
- value?: string | number | string[] | number[] | undefined;
9
+ value?: string | number | number[] | string[] | undefined;
10
10
  onChangeData?: ((value: any, record: any) => void) | undefined;
11
11
  accountId: string | number;
12
12
  carrierId: string | number;
@@ -1,7 +1,7 @@
1
1
  import type { SelectProps } from 'antd';
2
2
  import React from 'react';
3
3
  declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
4
- value?: string | number | string[] | number[] | undefined;
4
+ value?: string | number | number[] | string[] | undefined;
5
5
  onChangeData?: ((value: any, record: any) => void) | undefined;
6
6
  } & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
7
7
  export default _default;
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
4
4
  id?: string | undefined;
5
5
  ownerId?: string | undefined;
6
- value?: string | number | string[] | number[] | undefined;
6
+ value?: string | number | number[] | string[] | undefined;
7
7
  noOwnerContent?: string | undefined;
8
8
  isFirstLoad?: boolean | undefined;
9
9
  } & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
@@ -2,7 +2,7 @@ import type { SelectProps } from 'antd';
2
2
  import React from 'react';
3
3
  declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
4
4
  dockingCode?: string | undefined;
5
- value?: string | number | string[] | number[] | undefined;
5
+ value?: string | number | number[] | string[] | undefined;
6
6
  onChangeData?: ((value: any, record: any) => void) | undefined;
7
7
  type?: string | undefined;
8
8
  } & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
@@ -1,5 +1,5 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- var _excluded = ["warehouseId", "onChange", "onChangeData", "isFirstLoad"];
2
+ var _excluded = ["warehouseId", "onChange", "onChangeData", "isFirstLoad", "isDelete"];
3
3
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
4
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
5
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
@@ -33,6 +33,8 @@ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props,
33
33
  onChangeData = props.onChangeData,
34
34
  _props$isFirstLoad = props.isFirstLoad,
35
35
  isFirstLoad = _props$isFirstLoad === void 0 ? true : _props$isFirstLoad,
36
+ _props$isDelete = props.isDelete,
37
+ isDelete = _props$isDelete === void 0 ? 0 : _props$isDelete,
36
38
  restProps = _objectWithoutProperties(props, _excluded);
37
39
  var _useState = useState([]),
38
40
  _useState2 = _slicedToArray(_useState, 2),
@@ -47,22 +49,24 @@ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props,
47
49
  setLoading(true);
48
50
  getLpnPager({
49
51
  page: 1,
50
- size: 20
52
+ size: 20,
53
+ isDelete: isDelete
51
54
  }).then(function (data) {
52
55
  SetLpnData(data === null || data === void 0 ? void 0 : data.rows);
53
56
  setLoading(false);
54
57
  });
55
58
  }
56
- }, [warehouseId, isFirstLoad]);
59
+ }, [warehouseId, isFirstLoad, isDelete]);
57
60
  var onSearch = useCallback(function (value) {
58
61
  setLoading(true);
59
62
  getLpnPager({
60
- lpn: value
63
+ lpn: value,
64
+ isDelete: isDelete
61
65
  }).then(function (data) {
62
66
  SetLpnData(data === null || data === void 0 ? void 0 : data.rows);
63
67
  setLoading(false);
64
68
  });
65
- }, []);
69
+ }, [isDelete]);
66
70
  return /*#__PURE__*/_jsx(BiuASelect, _objectSpread(_objectSpread({
67
71
  ref: ref,
68
72
  showSearch: true,
@@ -55,10 +55,10 @@ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props,
55
55
  defaultValue = _useState6[0],
56
56
  setDefaultValue = _useState6[1];
57
57
  useEffect(function () {
58
- if (locationId) {
58
+ if (locationId && !defaultValues) {
59
59
  setDefaultValue('');
60
60
  }
61
- }, [locationId]);
61
+ }, [defaultValues, locationId]);
62
62
  useEffect(function () {
63
63
  if (!locationType && !locationId) {
64
64
  setResult([]);
@@ -9,7 +9,7 @@ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponen
9
9
  /**
10
10
  * 0:入库 1:出库 2:移库 3:冻结 4:调整 5:属性变更
11
11
  */
12
- orderType: 0 | 3 | 1 | 4 | 2 | 5;
12
+ orderType: 0 | 2 | 1 | 3 | 4 | 5;
13
13
  isFirstLoad: boolean;
14
14
  } & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
15
15
  export default _default;
@@ -4,7 +4,7 @@ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponen
4
4
  distributionCentreCodeOrName?: string | undefined;
5
5
  page?: number | undefined;
6
6
  pageSize?: number | undefined;
7
- value?: string | number | string[] | number[] | undefined;
7
+ value?: string | number | number[] | string[] | undefined;
8
8
  companyId?: string | undefined;
9
9
  noDisContent?: string | undefined;
10
10
  isFirstLoad?: boolean | undefined;
@@ -1,9 +1,9 @@
1
1
  import type { SelectProps } from 'antd';
2
2
  import React from 'react';
3
3
  declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
4
- returnOwnerArray?: string[] | number[] | undefined;
4
+ returnOwnerArray?: number[] | string[] | undefined;
5
5
  serialNumber: string;
6
- value?: string | number | string[] | number[] | undefined;
6
+ value?: string | number | number[] | string[] | undefined;
7
7
  openType?: string | undefined;
8
8
  } & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
9
9
  export default _default;
@@ -2,7 +2,7 @@ import type { SelectProps } from 'antd';
2
2
  import React from 'react';
3
3
  declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
4
4
  warehouseId?: number | undefined;
5
- value?: string | number | string[] | number[] | undefined;
5
+ value?: string | number | number[] | string[] | undefined;
6
6
  onChangeData?: ((value: any, record: any) => void) | undefined;
7
7
  isFirstLoad?: boolean | undefined;
8
8
  } & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
@@ -2,7 +2,7 @@ import type { SelectProps } from 'antd';
2
2
  import React from 'react';
3
3
  declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
4
4
  warehouseName?: string | undefined;
5
- value?: string | number | string[] | number[] | undefined;
5
+ value?: string | number | number[] | string[] | undefined;
6
6
  ownerId?: string | undefined;
7
7
  clientid?: string | undefined;
8
8
  employeecode?: string | undefined;
@@ -5,7 +5,7 @@ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponen
5
5
  warehouseId?: number | undefined;
6
6
  locationCode?: string | undefined;
7
7
  warehouseAreaId?: number | undefined;
8
- value?: string | number | string[] | number[] | undefined;
8
+ value?: string | number | number[] | string[] | undefined;
9
9
  onSelectChange?: ((value: any, record: any) => any) | undefined;
10
10
  isFirstLoad?: true | undefined;
11
11
  warehouseAreaType?: string | undefined;
@@ -46,4 +46,4 @@ export declare const BiuTableSelect: React.MemoExoticComponent<React.ForwardRefE
46
46
  * 转换下绑定到组件上的数据源
47
47
  */
48
48
  dataOption?: ((value: Record<string, any>) => Record<string, any>[]) | undefined;
49
- } & Pick<SelectProps<any, import("antd/lib/select").DefaultOptionType>, "showSearch" | "allowClear"> & Pick<TableProps<any>, "dataSource" | "onRow"> & React.RefAttributes<unknown>>>;
49
+ } & Pick<SelectProps<any, import("antd/lib/select").DefaultOptionType>, "allowClear" | "showSearch"> & Pick<TableProps<any>, "dataSource" | "onRow"> & React.RefAttributes<unknown>>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wt-enjoy-link-antd-repack",
3
- "version": "4.1.32",
3
+ "version": "4.1.36",
4
4
  "description": "万通业务组件",
5
5
  "sideEffects": false,
6
6
  "main": "dist/index.js",