wt-enjoy-link-antd-repack 4.1.55 → 4.1.57

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.
@@ -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>>>;
@@ -15,7 +15,7 @@ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponen
15
15
  initialValue?: number | undefined;
16
16
  searchTimes?: number | undefined;
17
17
  rowLabel?: string | undefined;
18
- addresstype?: "1" | "2" | undefined;
18
+ addresstype?: "2" | "1" | undefined;
19
19
  clientidNull?: string | undefined;
20
20
  addresstypeStr?: string | undefined;
21
21
  addressAttrStr?: string | undefined;
@@ -21,5 +21,6 @@ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponen
21
21
  goodsId: string;
22
22
  isAutoGenerate?: string | undefined;
23
23
  filterInv?: boolean | undefined;
24
+ isGoodType?: string | number | undefined;
24
25
  } & React.RefAttributes<unknown>>>;
25
26
  export default _default;
@@ -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 = ["ownerId", "initialValue", "warehouseIds", "warehouseAreaId", "searchTimes", "rowLabel", "isDefWth", "goodsId", "batch", "isAutoGenerate", "filterInv"];
2
+ var _excluded = ["ownerId", "initialValue", "warehouseIds", "warehouseAreaId", "searchTimes", "rowLabel", "isDefWth", "goodsId", "batch", "isAutoGenerate", "filterInv", "isGoodType"];
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; }
@@ -73,6 +73,7 @@ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props,
73
73
  isAutoGenerate = _props$isAutoGenerate === void 0 ? '2' : _props$isAutoGenerate,
74
74
  _props$filterInv = props.filterInv,
75
75
  filterInv = _props$filterInv === void 0 ? false : _props$filterInv,
76
+ isGoodType = props.isGoodType,
76
77
  restProps = _objectWithoutProperties(props, _excluded);
77
78
  var _useState = useState(),
78
79
  _useState2 = _slicedToArray(_useState, 2),
@@ -101,7 +102,8 @@ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props,
101
102
  page: 1,
102
103
  size: 20,
103
104
  isAutoGenerate: isAutoGenerate,
104
- filterInv: filterInv
105
+ filterInv: filterInv,
106
+ isGoodType: isGoodType
105
107
  }).then(function (res) {
106
108
  if (res !== null && res !== void 0 && res.length && res[0].id) {
107
109
  setLocationList(res);
@@ -126,7 +128,7 @@ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props,
126
128
  setLoading(false);
127
129
  });
128
130
  }
129
- }, [initialValue, warehouseIds, goodsId, ownerId, isDefWth, batch, warehouseAreaId, props, isAutoGenerate, rowLabel, filterInv]);
131
+ }, [initialValue, warehouseIds, goodsId, ownerId, isDefWth, batch, warehouseAreaId, props, isAutoGenerate, rowLabel, filterInv, isGoodType]);
130
132
  var onSearch = useCallback(function (sValue) {
131
133
  if (timerRef.current) clearTimeout(timerRef.current);
132
134
  timerRef.current = setTimeout(function () {
@@ -141,14 +143,15 @@ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props,
141
143
  page: 1,
142
144
  size: 20,
143
145
  isAutoGenerate: isAutoGenerate,
144
- filterInv: filterInv
146
+ filterInv: filterInv,
147
+ isGoodType: isGoodType
145
148
  }).then(function (res) {
146
149
  setLocationList(res);
147
150
  }).finally(function () {
148
151
  setLoading(false);
149
152
  });
150
153
  }, searchTimes);
151
- }, [searchTimes, warehouseIds, goodsId, ownerId, isDefWth, batch, isAutoGenerate, filterInv]);
154
+ }, [searchTimes, warehouseIds, goodsId, ownerId, isDefWth, batch, isAutoGenerate, filterInv, isGoodType]);
152
155
  return /*#__PURE__*/_jsx(TableSelectBase, _objectSpread(_objectSpread({
153
156
  ref: ref
154
157
  }, restProps), {}, {
@@ -11,5 +11,6 @@ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponen
11
11
  goodsId?: string | undefined;
12
12
  qty?: string | number | undefined;
13
13
  lpnId?: string | number | undefined;
14
+ isGoodType?: string | number | undefined;
14
15
  } & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
15
16
  export default _default;
@@ -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 = ["locationId", "onChange", "onChangeData", "isFirstLoad", "isAutoComplete", "locationType", "defaultValues", "style", "goodsId", "qty", "lpnId"];
2
+ var _excluded = ["locationId", "onChange", "onChangeData", "isFirstLoad", "isAutoComplete", "locationType", "defaultValues", "style", "goodsId", "qty", "lpnId", "isGoodType"];
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; }
@@ -48,6 +48,7 @@ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props,
48
48
  goodsId = props.goodsId,
49
49
  qty = props.qty,
50
50
  lpnId = props.lpnId,
51
+ isGoodType = props.isGoodType,
51
52
  restProps = _objectWithoutProperties(props, _excluded);
52
53
  var _useState3 = useState(isFirstLoad),
53
54
  _useState4 = _slicedToArray(_useState3, 2),
@@ -81,7 +82,8 @@ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props,
81
82
  locationType: locationType,
82
83
  goodsId: goodsId,
83
84
  qty: qty,
84
- lpnId: lpnId
85
+ lpnId: lpnId,
86
+ isGoodType: isGoodType
85
87
  }).then(function (res) {
86
88
  var data = res === null || res === void 0 ? void 0 : res.map(function (item) {
87
89
  return _objectSpread(_objectSpread({}, item), {}, {
@@ -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 | 4 | 3 | 5;
13
13
  isFirstLoad: boolean;
14
14
  } & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
15
15
  export default _default;
@@ -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>, "showSearch" | "allowClear"> & Pick<TableProps<any>, "onRow" | "dataSource"> & 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.55",
3
+ "version": "4.1.57",
4
4
  "description": "万通业务组件",
5
5
  "sideEffects": false,
6
6
  "main": "dist/esm/index.js",