wt-enjoy-link-antd-repack 4.2.21 → 4.2.23
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.
- package/dist/esm/component/BiuAForm/index.d.ts +1 -1
- package/dist/esm/component/BiuField/component/lpnSelectNew.js +54 -28
- package/dist/esm/component/BiuField/component/orderTypeSelect.d.ts +1 -1
- package/dist/esm/component/BiuTableSelect/index.d.ts +1 -1
- package/dist/esm/utils/sysUtils.d.ts +1 -1
- package/package.json +60 -60
|
@@ -2,6 +2,6 @@ import React from 'react';
|
|
|
2
2
|
export { Form as BiuAForm } from 'antd';
|
|
3
3
|
export declare const BiuAFormItem: React.MemoExoticComponent<(<Values = any>(props: import("antd").FormItemProps<Values>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & {
|
|
4
4
|
useStatus: () => {
|
|
5
|
-
status?: "" | "
|
|
5
|
+
status?: "" | "warning" | "error" | "success" | "validating" | undefined;
|
|
6
6
|
};
|
|
7
7
|
}>;
|
|
@@ -18,6 +18,7 @@ import React, { forwardRef, useCallback, useEffect, useState } from 'react';
|
|
|
18
18
|
import { BiuASelect, BiuASelectOption } from "../../BiuASelect";
|
|
19
19
|
import { GATEWAY_ROUTE_WMS } from "../../../constant";
|
|
20
20
|
import { request } from "../../../package";
|
|
21
|
+
import { debounce } from 'lodash';
|
|
21
22
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
22
23
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
23
24
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -69,41 +70,66 @@ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props,
|
|
|
69
70
|
setDefaultValue('');
|
|
70
71
|
}
|
|
71
72
|
}, [defaultValues, locationId]);
|
|
73
|
+
var fetchData = useCallback(function () {
|
|
74
|
+
if (!locationType) return;
|
|
75
|
+
if (locationType === 2 && !locationId) return;
|
|
76
|
+
getLpnList({
|
|
77
|
+
locationId: locationId,
|
|
78
|
+
locationType: locationType,
|
|
79
|
+
goodsId: goodsId,
|
|
80
|
+
qty: qty,
|
|
81
|
+
lpnId: lpnId,
|
|
82
|
+
isGoodType: isGoodType,
|
|
83
|
+
lpnCode: lpnCode
|
|
84
|
+
}).then(function (res) {
|
|
85
|
+
var data = res === null || res === void 0 ? void 0 : res.map(function (item) {
|
|
86
|
+
return _objectSpread(_objectSpread({}, item), {}, {
|
|
87
|
+
title: item.lpn,
|
|
88
|
+
label: item.lpn,
|
|
89
|
+
value: item.lpn
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
// console.log('datadata', data)
|
|
93
|
+
setResult(data || []);
|
|
94
|
+
setIsFirstLoadSearch(false);
|
|
95
|
+
});
|
|
96
|
+
}, [locationId, locationType, goodsId, qty, lpnId, isGoodType, lpnCode]);
|
|
97
|
+
var debounceFetchData = debounce(function () {
|
|
98
|
+
return fetchData();
|
|
99
|
+
}, 300);
|
|
72
100
|
useEffect(function () {
|
|
101
|
+
// console.log(
|
|
102
|
+
// 'useEffect',
|
|
103
|
+
// `locationType: ${locationType}`,
|
|
104
|
+
// `locationId: ${locationId}`,
|
|
105
|
+
// `defaultValues: ${defaultValues}`
|
|
106
|
+
// )
|
|
107
|
+
|
|
108
|
+
setResult([]);
|
|
73
109
|
if (!locationType && !locationId) {
|
|
74
|
-
|
|
110
|
+
setDefaultValue('');
|
|
75
111
|
return;
|
|
76
112
|
}
|
|
77
113
|
if (locationType == 2 && !locationId) {
|
|
78
|
-
setResult([]);
|
|
79
|
-
return;
|
|
80
|
-
}
|
|
81
|
-
if (locationType == 3 && !defaultValues && !locationId) {
|
|
82
114
|
setDefaultValue('');
|
|
83
|
-
|
|
84
|
-
setDefaultValue(defaultValues);
|
|
115
|
+
return;
|
|
85
116
|
}
|
|
86
|
-
if (
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
lpnId: lpnId,
|
|
93
|
-
isGoodType: isGoodType,
|
|
94
|
-
lpnCode: lpnCode
|
|
95
|
-
}).then(function (res) {
|
|
96
|
-
var data = res === null || res === void 0 ? void 0 : res.map(function (item) {
|
|
97
|
-
return _objectSpread(_objectSpread({}, item), {}, {
|
|
98
|
-
title: item.lpn,
|
|
99
|
-
label: item.lpn,
|
|
100
|
-
value: item.lpn
|
|
101
|
-
});
|
|
102
|
-
});
|
|
103
|
-
setResult(data || []);
|
|
104
|
-
});
|
|
117
|
+
if (locationType == 3) {
|
|
118
|
+
if (!defaultValues && !locationId) {
|
|
119
|
+
setDefaultValue('');
|
|
120
|
+
} else {
|
|
121
|
+
setDefaultValue(defaultValues);
|
|
122
|
+
}
|
|
105
123
|
}
|
|
106
|
-
|
|
124
|
+
debounceFetchData();
|
|
125
|
+
}, [locationId, locationType, defaultValues]);
|
|
126
|
+
useEffect(function () {
|
|
127
|
+
if (isFirstLoadSearch) debounceFetchData();
|
|
128
|
+
}, [isFirstLoadSearch]);
|
|
129
|
+
useEffect(function () {
|
|
130
|
+
// console.log('lpnCode', lpnCode)
|
|
131
|
+
debounceFetchData();
|
|
132
|
+
}, [lpnCode]);
|
|
107
133
|
var onSearch = useCallback(function (value) {
|
|
108
134
|
setLpnCode(value);
|
|
109
135
|
}, []);
|
|
@@ -120,7 +146,7 @@ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props,
|
|
|
120
146
|
onSearch: onSearch,
|
|
121
147
|
value: defaultValue,
|
|
122
148
|
onChange: function onChange(values, option) {
|
|
123
|
-
|
|
149
|
+
setDefaultValue(values);
|
|
124
150
|
if (_onChange) {
|
|
125
151
|
_onChange(values, option);
|
|
126
152
|
}
|
|
@@ -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 |
|
|
12
|
+
orderType: 0 | 3 | 1 | 4 | 2 | 5;
|
|
13
13
|
isFirstLoad: boolean;
|
|
14
14
|
onFetchData?: ((res: any) => any) | undefined;
|
|
15
15
|
} & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
|
|
@@ -50,4 +50,4 @@ export declare const BiuTableSelect: React.MemoExoticComponent<React.ForwardRefE
|
|
|
50
50
|
* 是否多选
|
|
51
51
|
*/
|
|
52
52
|
mode?: string | undefined;
|
|
53
|
-
} & Pick<SelectProps<any, import("antd/lib/select").DefaultOptionType>, "showSearch" | "allowClear"> & Pick<TableProps<any>, "
|
|
53
|
+
} & Pick<SelectProps<any, import("antd/lib/select").DefaultOptionType>, "showSearch" | "allowClear"> & Pick<TableProps<any>, "dataSource" | "onRow"> & React.RefAttributes<unknown>>>;
|
|
@@ -3,6 +3,6 @@ import { UpdateVersionData } from '..';
|
|
|
3
3
|
* 判断是否为子系统
|
|
4
4
|
*/
|
|
5
5
|
export declare const IsSubSYS: boolean;
|
|
6
|
-
export declare const compareVersions: (version1: string, version2: string | undefined | null) =>
|
|
6
|
+
export declare const compareVersions: (version1: string, version2: string | undefined | null) => 0 | 1 | -1;
|
|
7
7
|
export declare const getSystemByUrl: (route: string) => "wms" | "mdm" | "sso" | undefined;
|
|
8
8
|
export declare const updateVersionHandle: (data: UpdateVersionData) => void;
|
package/package.json
CHANGED
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "wt-enjoy-link-antd-repack",
|
|
3
|
-
"version": "4.2.
|
|
4
|
-
"description": "万通业务组件",
|
|
5
|
-
"sideEffects": false,
|
|
6
|
-
"main": "dist/esm/index.js",
|
|
7
|
-
"module": "dist/esm/index.js",
|
|
8
|
-
"typings": "dist/esm/index.d.ts",
|
|
9
|
-
"files": [
|
|
10
|
-
"dist"
|
|
11
|
-
],
|
|
12
|
-
"scripts": {
|
|
13
|
-
"start": "dumi dev",
|
|
14
|
-
"start:hot-rebuild": "father dev",
|
|
15
|
-
"build": "father build",
|
|
16
|
-
"repack": "pnpm run build && npm publish --no-git-checks && npx cnpm sync wt-enjoy-link-antd-repack"
|
|
17
|
-
},
|
|
18
|
-
"dependencies": {
|
|
19
|
-
"@amap/amap-jsapi-loader": "^1.0.1",
|
|
20
|
-
"@ant-design/icons": "^5.3.0",
|
|
21
|
-
"ahooks": "^3.8.4",
|
|
22
|
-
"antd": "^4.24.14",
|
|
23
|
-
"classnames": "^2.5.1",
|
|
24
|
-
"dumi": "^2.2.17",
|
|
25
|
-
"idb": "^7.1.1",
|
|
26
|
-
"jsbarcode": "^3.11.6",
|
|
27
|
-
"lodash": "^4.17.20",
|
|
28
|
-
"moment": "^2.30.1",
|
|
29
|
-
"path": "^0.12.7",
|
|
30
|
-
"rc-resize-observer": "^1.4.3",
|
|
31
|
-
"react": "^18.2.0",
|
|
32
|
-
"react-dom": "^18.2.0",
|
|
33
|
-
"react-drag-listview": "^2.0.0",
|
|
34
|
-
"react-draggable": "^4.4.6",
|
|
35
|
-
"react-resizable": "^3.0.5",
|
|
36
|
-
"react-window": "^1.8.10",
|
|
37
|
-
"styled-components": "^6.1.8",
|
|
38
|
-
"umi-request": "^1.3.9",
|
|
39
|
-
"use-media-antd-query": "^1.1.0",
|
|
40
|
-
"xlsx": "^0.18.5"
|
|
41
|
-
},
|
|
42
|
-
"devDependencies": {
|
|
43
|
-
"@types/lodash": "^4.14.202",
|
|
44
|
-
"@types/node": "^20.11.14",
|
|
45
|
-
"@types/react": "^18.2.48",
|
|
46
|
-
"@types/react-dom": "^18.2.17",
|
|
47
|
-
"@types/react-resizable": "^3.0.7",
|
|
48
|
-
"@types/react-window": "^1.8.8",
|
|
49
|
-
"@umijs/fabric": "^4.0.1",
|
|
50
|
-
"eslint": "^8.54.0",
|
|
51
|
-
"eslint-import-resolver-typescript": "^3.6.1",
|
|
52
|
-
"eslint-plugin-import": "^2.29.0",
|
|
53
|
-
"father": "^4.4.0",
|
|
54
|
-
"prettier": "^3.2.4",
|
|
55
|
-
"typescript": "^5.3.2"
|
|
56
|
-
},
|
|
57
|
-
"publishConfig": {
|
|
58
|
-
"registry": "https://registry.npmjs.org"
|
|
59
|
-
}
|
|
60
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "wt-enjoy-link-antd-repack",
|
|
3
|
+
"version": "4.2.23",
|
|
4
|
+
"description": "万通业务组件",
|
|
5
|
+
"sideEffects": false,
|
|
6
|
+
"main": "dist/esm/index.js",
|
|
7
|
+
"module": "dist/esm/index.js",
|
|
8
|
+
"typings": "dist/esm/index.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"start": "dumi dev",
|
|
14
|
+
"start:hot-rebuild": "father dev",
|
|
15
|
+
"build": "father build",
|
|
16
|
+
"repack": "pnpm run build && npm publish --no-git-checks && npx cnpm sync wt-enjoy-link-antd-repack"
|
|
17
|
+
},
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@amap/amap-jsapi-loader": "^1.0.1",
|
|
20
|
+
"@ant-design/icons": "^5.3.0",
|
|
21
|
+
"ahooks": "^3.8.4",
|
|
22
|
+
"antd": "^4.24.14",
|
|
23
|
+
"classnames": "^2.5.1",
|
|
24
|
+
"dumi": "^2.2.17",
|
|
25
|
+
"idb": "^7.1.1",
|
|
26
|
+
"jsbarcode": "^3.11.6",
|
|
27
|
+
"lodash": "^4.17.20",
|
|
28
|
+
"moment": "^2.30.1",
|
|
29
|
+
"path": "^0.12.7",
|
|
30
|
+
"rc-resize-observer": "^1.4.3",
|
|
31
|
+
"react": "^18.2.0",
|
|
32
|
+
"react-dom": "^18.2.0",
|
|
33
|
+
"react-drag-listview": "^2.0.0",
|
|
34
|
+
"react-draggable": "^4.4.6",
|
|
35
|
+
"react-resizable": "^3.0.5",
|
|
36
|
+
"react-window": "^1.8.10",
|
|
37
|
+
"styled-components": "^6.1.8",
|
|
38
|
+
"umi-request": "^1.3.9",
|
|
39
|
+
"use-media-antd-query": "^1.1.0",
|
|
40
|
+
"xlsx": "^0.18.5"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@types/lodash": "^4.14.202",
|
|
44
|
+
"@types/node": "^20.11.14",
|
|
45
|
+
"@types/react": "^18.2.48",
|
|
46
|
+
"@types/react-dom": "^18.2.17",
|
|
47
|
+
"@types/react-resizable": "^3.0.7",
|
|
48
|
+
"@types/react-window": "^1.8.8",
|
|
49
|
+
"@umijs/fabric": "^4.0.1",
|
|
50
|
+
"eslint": "^8.54.0",
|
|
51
|
+
"eslint-import-resolver-typescript": "^3.6.1",
|
|
52
|
+
"eslint-plugin-import": "^2.29.0",
|
|
53
|
+
"father": "^4.4.0",
|
|
54
|
+
"prettier": "^3.2.4",
|
|
55
|
+
"typescript": "^5.3.2"
|
|
56
|
+
},
|
|
57
|
+
"publishConfig": {
|
|
58
|
+
"registry": "https://registry.npmjs.org"
|
|
59
|
+
}
|
|
60
|
+
}
|