@bit-sun/business-component 2.3.3 → 2.3.4
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/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/AllFunc/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/RightContent/index.d.ts +2 -2
- package/dist/components/Business/BsLayouts/Components/SearchFunc/index.d.ts +2 -2
- package/dist/components/Business/BsLayouts/index.d.ts +2 -2
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +2 -2
- package/dist/components/Business/TreeSearchSelect/utils.d.ts +3 -1
- package/dist/components/Functional/BsAntdSula/BsCascader/index.d.ts +1 -1
- package/dist/index.esm.js +86 -101
- package/dist/index.js +92 -107
- package/dist/utils/TableUtils.d.ts +2 -2
- package/package.json +1 -1
- package/src/components/Business/TreeSearchSelect/index.tsx +1 -2
- package/src/components/Business/TreeSearchSelect/utils.ts +7 -1
- package/src/components/Functional/TreeSearchSelect/index.tsx +2 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './home.less';
|
|
3
|
-
export type SiderTheme = 'light' | 'dark';
|
|
4
|
-
export type GlobalHeaderRightProps = {
|
|
3
|
+
export declare type SiderTheme = 'light' | 'dark';
|
|
4
|
+
export declare type GlobalHeaderRightProps = {
|
|
5
5
|
menu?: boolean;
|
|
6
6
|
};
|
|
7
7
|
declare const GlobalHeaderRight: React.FC<GlobalHeaderRightProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './index.less';
|
|
3
|
-
export type SiderTheme = 'light' | 'dark';
|
|
4
|
-
export type GlobalHeaderRightProps = {
|
|
3
|
+
export declare type SiderTheme = 'light' | 'dark';
|
|
4
|
+
export declare type GlobalHeaderRightProps = {
|
|
5
5
|
menu?: boolean;
|
|
6
6
|
};
|
|
7
7
|
declare const AllFunc: React.FC<GlobalHeaderRightProps>;
|
|
@@ -2,14 +2,14 @@ import type { MenuDataItem, BasicLayoutProps as ProLayoutProps, Settings } from
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import './index.less';
|
|
4
4
|
export declare const RouterContext: React.Context<{}>;
|
|
5
|
-
export type BasicLayoutProps = {
|
|
5
|
+
export declare type BasicLayoutProps = {
|
|
6
6
|
breadcrumbNameMap: Record<string, MenuDataItem>;
|
|
7
7
|
route: ProLayoutProps['route'] & {
|
|
8
8
|
authority: string[];
|
|
9
9
|
};
|
|
10
10
|
settings: Settings;
|
|
11
11
|
} & ProLayoutProps;
|
|
12
|
-
export type BasicLayoutContext = {
|
|
12
|
+
export declare type BasicLayoutContext = {
|
|
13
13
|
[K in 'location']: BasicLayoutProps[K];
|
|
14
14
|
} & {
|
|
15
15
|
breadcrumbNameMap: Record<string, MenuDataItem>;
|
|
@@ -46,13 +46,13 @@ export declare const handleTextLineFeed: (text: string | undefined, width?: numb
|
|
|
46
46
|
export declare const handleTextOverflow: (text: string | undefined, width?: number) => JSX.Element;
|
|
47
47
|
export declare const handleTooltip: (text: any, timeTrue?: boolean) => JSX.Element;
|
|
48
48
|
export declare const handleTooltipHours: (text: any, timeTrue?: boolean) => JSX.Element;
|
|
49
|
-
type tableColumnsImageType = {
|
|
49
|
+
declare type tableColumnsImageType = {
|
|
50
50
|
width?: number | string;
|
|
51
51
|
height?: number | string;
|
|
52
52
|
[key: string]: any;
|
|
53
53
|
};
|
|
54
54
|
export declare const tableColumnsImage: (url?: string, paramsObj?: tableColumnsImageType) => JSX.Element;
|
|
55
|
-
type UserColumnsType = {
|
|
55
|
+
declare type UserColumnsType = {
|
|
56
56
|
name: string;
|
|
57
57
|
department?: string;
|
|
58
58
|
position?: string;
|
package/dist/index.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ import axios from 'axios';
|
|
|
2
2
|
import { message as message$1, Popover, Card, Avatar, Tooltip, Image, Menu, Space, Dropdown, Button, Checkbox, Input, Modal, Select, Form, Divider, Spin, Table, TreeSelect, Tag, InputNumber, Typography, Alert, Anchor, Breadcrumb, Drawer as Drawer$1, List, Tree, Row, Col, Tabs, Affix, Cascader, DatePicker, TimePicker, Switch } from 'antd';
|
|
3
3
|
import _, { omit, debounce, cloneDeep as cloneDeep$1, throttle, isEmpty } from 'lodash';
|
|
4
4
|
import { history, formatMessage, useLocation, Link, useModel, useIntl } from 'umi';
|
|
5
|
-
import isEqual
|
|
5
|
+
import isEqual from 'lodash/isEqual';
|
|
6
6
|
import React, { useState, useEffect, forwardRef, useImperativeHandle, useRef, useMemo, Component, useLayoutEffect, createRef } from 'react';
|
|
7
7
|
import moment$1 from 'moment';
|
|
8
8
|
import { UnorderedListOutlined, ProfileTwoTone, ExclamationCircleOutlined, DownOutlined, CopyOutlined, SearchOutlined, CaretLeftOutlined, CloseCircleOutlined, ArrowLeftOutlined, FolderOutlined, EllipsisOutlined, CaretDownOutlined, HomeOutlined, DoubleLeftOutlined, DoubleRightOutlined, MenuUnfoldOutlined, DashOutlined, SettingOutlined, BulbOutlined, PlayCircleOutlined, SaveOutlined, FullscreenExitOutlined, EditOutlined, MinusCircleOutlined, PlusCircleOutlined } from '@ant-design/icons';
|
|
@@ -136,33 +136,6 @@ axios.interceptors.request.use(function (config) {
|
|
|
136
136
|
return config;
|
|
137
137
|
});
|
|
138
138
|
|
|
139
|
-
function _iterableToArrayLimit(arr, i) {
|
|
140
|
-
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
141
|
-
if (null != _i) {
|
|
142
|
-
var _s,
|
|
143
|
-
_e,
|
|
144
|
-
_x,
|
|
145
|
-
_r,
|
|
146
|
-
_arr = [],
|
|
147
|
-
_n = !0,
|
|
148
|
-
_d = !1;
|
|
149
|
-
try {
|
|
150
|
-
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
151
|
-
if (Object(_i) !== _i) return;
|
|
152
|
-
_n = !1;
|
|
153
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
154
|
-
} catch (err) {
|
|
155
|
-
_d = !0, _e = err;
|
|
156
|
-
} finally {
|
|
157
|
-
try {
|
|
158
|
-
if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
|
|
159
|
-
} finally {
|
|
160
|
-
if (_d) throw _e;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
return _arr;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
139
|
function ownKeys(object, enumerableOnly) {
|
|
167
140
|
var keys = Object.keys(object);
|
|
168
141
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -319,9 +292,14 @@ function _regeneratorRuntime() {
|
|
|
319
292
|
};
|
|
320
293
|
}
|
|
321
294
|
function maybeInvokeDelegate(delegate, context) {
|
|
322
|
-
var
|
|
323
|
-
|
|
324
|
-
|
|
295
|
+
var method = delegate.iterator[context.method];
|
|
296
|
+
if (undefined === method) {
|
|
297
|
+
if (context.delegate = null, "throw" === context.method) {
|
|
298
|
+
if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
299
|
+
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
300
|
+
}
|
|
301
|
+
return ContinueSentinel;
|
|
302
|
+
}
|
|
325
303
|
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
326
304
|
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
327
305
|
var info = record.arg;
|
|
@@ -535,7 +513,7 @@ function _defineProperties(target, props) {
|
|
|
535
513
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
536
514
|
descriptor.configurable = true;
|
|
537
515
|
if ("value" in descriptor) descriptor.writable = true;
|
|
538
|
-
Object.defineProperty(target,
|
|
516
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
539
517
|
}
|
|
540
518
|
}
|
|
541
519
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
@@ -547,7 +525,6 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
547
525
|
return Constructor;
|
|
548
526
|
}
|
|
549
527
|
function _defineProperty(obj, key, value) {
|
|
550
|
-
key = _toPropertyKey(key);
|
|
551
528
|
if (key in obj) {
|
|
552
529
|
Object.defineProperty(obj, key, {
|
|
553
530
|
value: value,
|
|
@@ -690,6 +667,30 @@ function _arrayWithHoles(arr) {
|
|
|
690
667
|
function _iterableToArray(iter) {
|
|
691
668
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
692
669
|
}
|
|
670
|
+
function _iterableToArrayLimit(arr, i) {
|
|
671
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
672
|
+
if (_i == null) return;
|
|
673
|
+
var _arr = [];
|
|
674
|
+
var _n = true;
|
|
675
|
+
var _d = false;
|
|
676
|
+
var _s, _e;
|
|
677
|
+
try {
|
|
678
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
679
|
+
_arr.push(_s.value);
|
|
680
|
+
if (i && _arr.length === i) break;
|
|
681
|
+
}
|
|
682
|
+
} catch (err) {
|
|
683
|
+
_d = true;
|
|
684
|
+
_e = err;
|
|
685
|
+
} finally {
|
|
686
|
+
try {
|
|
687
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
688
|
+
} finally {
|
|
689
|
+
if (_d) throw _e;
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
return _arr;
|
|
693
|
+
}
|
|
693
694
|
function _unsupportedIterableToArray(o, minLen) {
|
|
694
695
|
if (!o) return;
|
|
695
696
|
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
@@ -709,20 +710,6 @@ function _nonIterableSpread() {
|
|
|
709
710
|
function _nonIterableRest() {
|
|
710
711
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
711
712
|
}
|
|
712
|
-
function _toPrimitive(input, hint) {
|
|
713
|
-
if (typeof input !== "object" || input === null) return input;
|
|
714
|
-
var prim = input[Symbol.toPrimitive];
|
|
715
|
-
if (prim !== undefined) {
|
|
716
|
-
var res = prim.call(input, hint || "default");
|
|
717
|
-
if (typeof res !== "object") return res;
|
|
718
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
719
|
-
}
|
|
720
|
-
return (hint === "string" ? String : Number)(input);
|
|
721
|
-
}
|
|
722
|
-
function _toPropertyKey(arg) {
|
|
723
|
-
var key = _toPrimitive(arg, "string");
|
|
724
|
-
return typeof key === "symbol" ? key : String(key);
|
|
725
|
-
}
|
|
726
713
|
|
|
727
714
|
var checkQuantityAccuracy = function checkQuantityAccuracy(value, accuracy, errorInfo) {
|
|
728
715
|
var errorMessage = _objectSpread2({
|
|
@@ -762,52 +749,41 @@ var precisionQuantity = function precisionQuantity(num, accuracy) {
|
|
|
762
749
|
return '';
|
|
763
750
|
};
|
|
764
751
|
|
|
765
|
-
var
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
function
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
752
|
+
var simpleIsEqual = function simpleIsEqual(a, b) {
|
|
753
|
+
return a === b;
|
|
754
|
+
};
|
|
755
|
+
|
|
756
|
+
function index$1 (resultFn, isEqual) {
|
|
757
|
+
if (isEqual === void 0) {
|
|
758
|
+
isEqual = simpleIsEqual;
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
var lastThis;
|
|
762
|
+
var lastArgs = [];
|
|
763
|
+
var lastResult;
|
|
764
|
+
var calledOnce = false;
|
|
765
|
+
|
|
766
|
+
var isNewArgEqualToLast = function isNewArgEqualToLast(newArg, index) {
|
|
767
|
+
return isEqual(newArg, lastArgs[index], index);
|
|
768
|
+
};
|
|
769
|
+
|
|
770
|
+
var result = function result() {
|
|
771
|
+
for (var _len = arguments.length, newArgs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
772
|
+
newArgs[_key] = arguments[_key];
|
|
781
773
|
}
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
}
|
|
774
|
+
|
|
775
|
+
if (calledOnce && lastThis === this && newArgs.length === lastArgs.length && newArgs.every(isNewArgEqualToLast)) {
|
|
776
|
+
return lastResult;
|
|
786
777
|
}
|
|
787
|
-
return true;
|
|
788
|
-
}
|
|
789
778
|
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
799
|
-
newArgs[_i] = arguments[_i];
|
|
800
|
-
}
|
|
801
|
-
if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {
|
|
802
|
-
return lastResult;
|
|
803
|
-
}
|
|
804
|
-
lastResult = resultFn.apply(this, newArgs);
|
|
805
|
-
calledOnce = true;
|
|
806
|
-
lastThis = this;
|
|
807
|
-
lastArgs = newArgs;
|
|
808
|
-
return lastResult;
|
|
809
|
-
}
|
|
810
|
-
return memoized;
|
|
779
|
+
lastResult = resultFn.apply(this, newArgs);
|
|
780
|
+
calledOnce = true;
|
|
781
|
+
lastThis = this;
|
|
782
|
+
lastArgs = newArgs;
|
|
783
|
+
return lastResult;
|
|
784
|
+
};
|
|
785
|
+
|
|
786
|
+
return result;
|
|
811
787
|
}
|
|
812
788
|
|
|
813
789
|
function styleInject(css, ref) {
|
|
@@ -1118,7 +1094,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1118
1094
|
return item;
|
|
1119
1095
|
});
|
|
1120
1096
|
};
|
|
1121
|
-
var memoizeOneFormatter =
|
|
1097
|
+
var memoizeOneFormatter = index$1(formatter, isEqual);
|
|
1122
1098
|
var go2BackAndClose = function go2BackAndClose() {
|
|
1123
1099
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1124
1100
|
history.goBack();
|
|
@@ -9605,7 +9581,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
9605
9581
|
* @LastEditTime: 2022-01-14 17:17:26
|
|
9606
9582
|
* @LastEditors: rodchen
|
|
9607
9583
|
*/
|
|
9608
|
-
var index$
|
|
9584
|
+
var index$2 = (function (storageKeyString) {
|
|
9609
9585
|
var seconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
|
|
9610
9586
|
var tipsCallFunction = arguments.length > 2 ? arguments[2] : undefined;
|
|
9611
9587
|
if (typeof seconds !== 'number') throw new Error('seconds should be number');
|
|
@@ -9688,6 +9664,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
9688
9664
|
disabled = props.disabled,
|
|
9689
9665
|
restProps = _objectWithoutProperties(props, _excluded$5);
|
|
9690
9666
|
var url = remoteSource.url,
|
|
9667
|
+
headers = remoteSource.headers,
|
|
9691
9668
|
_remoteSource$paramsK = remoteSource.paramsKey,
|
|
9692
9669
|
paramsKey = _remoteSource$paramsK === void 0 ? 'qp-name-like' : _remoteSource$paramsK,
|
|
9693
9670
|
_remoteSource$resKeyV = remoteSource.resKeyValue,
|
|
@@ -9718,7 +9695,9 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
9718
9695
|
/* 实时查询 但是目前用的直接是完整数据源, 所以没有使用 */
|
|
9719
9696
|
var handleSearch = function handleSearch(q) {
|
|
9720
9697
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
9721
|
-
axios.get("".concat(url, "?").concat(stringify(paramsData))
|
|
9698
|
+
axios.get("".concat(url, "?").concat(stringify(paramsData)), {
|
|
9699
|
+
headers: headers
|
|
9700
|
+
}).then( /*#__PURE__*/function () {
|
|
9722
9701
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
9723
9702
|
var _ctx$form;
|
|
9724
9703
|
var resData, coverData, data, dataList;
|
|
@@ -9858,7 +9837,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
9858
9837
|
})));
|
|
9859
9838
|
};
|
|
9860
9839
|
|
|
9861
|
-
var handleDefaultProps = function handleDefaultProps(type) {
|
|
9840
|
+
var handleDefaultProps = function handleDefaultProps(type, otherRequestConfig) {
|
|
9862
9841
|
var result = {};
|
|
9863
9842
|
switch (type) {
|
|
9864
9843
|
case 'department':
|
|
@@ -9867,6 +9846,7 @@ var handleDefaultProps = function handleDefaultProps(type) {
|
|
|
9867
9846
|
isChoose: true,
|
|
9868
9847
|
remoteSource: {
|
|
9869
9848
|
url: "/user/orgViewNode/common/getTreeForOrgViewAndTenant",
|
|
9849
|
+
headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
|
|
9870
9850
|
initialParams: {
|
|
9871
9851
|
'orgViewCode': 'administrative-organization-view'
|
|
9872
9852
|
},
|
|
@@ -9879,6 +9859,7 @@ var handleDefaultProps = function handleDefaultProps(type) {
|
|
|
9879
9859
|
isChoose: true,
|
|
9880
9860
|
remoteSource: {
|
|
9881
9861
|
url: "/user/orgViewNode/common/getTreeForOrgViewAndTenant",
|
|
9862
|
+
headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
|
|
9882
9863
|
initialParams: {
|
|
9883
9864
|
'orgViewCode': 'sales-organizational-view',
|
|
9884
9865
|
'qp-status-eq': 10
|
|
@@ -9892,6 +9873,7 @@ var handleDefaultProps = function handleDefaultProps(type) {
|
|
|
9892
9873
|
isChoose: true,
|
|
9893
9874
|
remoteSource: {
|
|
9894
9875
|
url: "/user/orgViewNode/common/getTreeForOrgViewAndTenant",
|
|
9876
|
+
headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
|
|
9895
9877
|
initialParams: {
|
|
9896
9878
|
'orgViewCode': 'purchase-organizational-view',
|
|
9897
9879
|
'qp-status-eq': 10
|
|
@@ -9905,6 +9887,7 @@ var handleDefaultProps = function handleDefaultProps(type) {
|
|
|
9905
9887
|
isChoose: true,
|
|
9906
9888
|
remoteSource: {
|
|
9907
9889
|
url: "/user/orgViewNode/common/getTreeForOrgViewAndTenant",
|
|
9890
|
+
headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
|
|
9908
9891
|
initialParams: {
|
|
9909
9892
|
'orgViewCode': 'stock-organizational-view',
|
|
9910
9893
|
'qp-status-eq': 10
|
|
@@ -9918,6 +9901,7 @@ var handleDefaultProps = function handleDefaultProps(type) {
|
|
|
9918
9901
|
isChoose: true,
|
|
9919
9902
|
remoteSource: {
|
|
9920
9903
|
url: "/channel-manage/tagNode/getTree/10",
|
|
9904
|
+
headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
|
|
9921
9905
|
resKeyValue: ['code', 'name']
|
|
9922
9906
|
}
|
|
9923
9907
|
};
|
|
@@ -9928,6 +9912,7 @@ var handleDefaultProps = function handleDefaultProps(type) {
|
|
|
9928
9912
|
isChoose: true,
|
|
9929
9913
|
remoteSource: {
|
|
9930
9914
|
url: "/user/orgViewNode/common/getTreeForOrgViewAndTenant",
|
|
9915
|
+
headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
|
|
9931
9916
|
initialParams: {
|
|
9932
9917
|
'orgViewCode': 'administrative-organization-view'
|
|
9933
9918
|
},
|
|
@@ -9942,7 +9927,7 @@ var handleDefaultProps = function handleDefaultProps(type) {
|
|
|
9942
9927
|
var MemoTreeSearchSelect = /*#__PURE__*/React.memo(TreeSearchSelect);
|
|
9943
9928
|
var BusinessTreeSearchSelect = function BusinessTreeSearchSelect(props) {
|
|
9944
9929
|
var businessType = (props === null || props === void 0 ? void 0 : props.businessType) || 'department';
|
|
9945
|
-
var handleBusinessProps = handleDefaultProps(businessType);
|
|
9930
|
+
var handleBusinessProps = handleDefaultProps(businessType, props === null || props === void 0 ? void 0 : props.requestConfig);
|
|
9946
9931
|
var currentProps = useMemo(function () {
|
|
9947
9932
|
return _objectSpread2(_objectSpread2({}, handleBusinessProps), props);
|
|
9948
9933
|
}, [props === null || props === void 0 ? void 0 : props.value]);
|
|
@@ -9961,7 +9946,7 @@ var BusinessTreeSearchSelect$1 = /*#__PURE__*/React.memo(BusinessTreeSearchSelec
|
|
|
9961
9946
|
var css_248z$8 = ".form-status-label {\n height: 48px;\n margin-right: 12px;\n display: inline-block;\n position: relative;\n background-color: #B0B4B7;\n align-items: center;\n}\n.choosed-status-label.form-status-label {\n background-color: #005CFF;\n}\n.form-status-label:last-child {\n margin-right: 0px;\n}\n.form-status-label:first-child::after {\n position: absolute;\n display: block;\n content: '';\n right: -48px;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.choosed-status-label.form-status-label::after {\n border-left: 12px solid #005CFF;\n}\n.choosed-status-label.form-status-label:not(:first-child):not(:last-child)::after {\n border-left: 12px solid #005CFF;\n}\n.form-status-label:last-child::after {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.form-status-label:not(:first-child):not(:last-child)::before {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.form-status-label:not(:first-child):not(:last-child)::after {\n position: absolute;\n display: block;\n content: '';\n right: -48px;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.status-label-index {\n display: inline-block;\n width: 24px;\n height: 24px;\n border: 1px solid #FFFFFF;\n color: #FFFFFF;\n border-radius: 50%;\n font-family: Montserrat;\n font-size: 14px;\n line-height: 24px;\n text-align: center;\n margin: 0 6px 0 20px;\n}\n.status-label-key {\n width: 50px;\n height: 100%;\n display: inline-flex;\n float: left;\n align-items: center;\n justify-content: center;\n}\n.status-label-operate {\n float: left;\n width: calc(100% - 50px);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 100%;\n margin: 4px 0;\n}\n.status-label-operate > div {\n font-size: 12px;\n height: 20px;\n line-height: 20px;\n color: #FFFFFF;\n font-family: PingFangSC;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.status-label-operate > div:first-child {\n font-size: 14px;\n font-weight: 600;\n}\n.only-one-child.form-status-label::after,\n.only-one-child.form-status-label::before {\n border-left: 0px;\n}\n";
|
|
9962
9947
|
styleInject(css_248z$8);
|
|
9963
9948
|
|
|
9964
|
-
var index$
|
|
9949
|
+
var index$3 = (function (props) {
|
|
9965
9950
|
var _props$formStatusMapp = props.formStatusMapping,
|
|
9966
9951
|
formStatusMapping = _props$formStatusMapp === void 0 ? [] : _props$formStatusMapp;
|
|
9967
9952
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -11385,7 +11370,7 @@ var iconMap = {
|
|
|
11385
11370
|
src: moreIcon
|
|
11386
11371
|
})
|
|
11387
11372
|
};
|
|
11388
|
-
var index$
|
|
11373
|
+
var index$4 = (function (props) {
|
|
11389
11374
|
var _useLocation = useLocation(),
|
|
11390
11375
|
pathname = _useLocation.pathname;
|
|
11391
11376
|
var _useState = useState(pathname + 'id'),
|
|
@@ -11602,7 +11587,7 @@ var css_248z$d = ".home_page_head {\n height: 54px;\n display: flex;\n justif
|
|
|
11602
11587
|
styleInject(css_248z$d);
|
|
11603
11588
|
|
|
11604
11589
|
var _excluded$c = ["children"];
|
|
11605
|
-
var index$
|
|
11590
|
+
var index$5 = (function (props) {
|
|
11606
11591
|
var _useLocation = useLocation(),
|
|
11607
11592
|
pathname = _useLocation.pathname;
|
|
11608
11593
|
var _useState = useState(pathname + 'id'),
|
|
@@ -16698,7 +16683,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
16698
16683
|
}]);
|
|
16699
16684
|
return WrapperComponent;
|
|
16700
16685
|
}(React.Component);
|
|
16701
|
-
var index$
|
|
16686
|
+
var index$6 = (function (props) {
|
|
16702
16687
|
var _useModel = useModel('@@initialState'),
|
|
16703
16688
|
_useModel$initialStat = _useModel.initialState,
|
|
16704
16689
|
initialState = _useModel$initialStat === void 0 ? {} : _useModel$initialStat;
|
|
@@ -16939,7 +16924,7 @@ var FixedScrollBar = function FixedScrollBar(_ref, ref) {
|
|
|
16939
16924
|
};
|
|
16940
16925
|
var FixedScrollBar$1 = /*#__PURE__*/React.forwardRef(FixedScrollBar);
|
|
16941
16926
|
|
|
16942
|
-
var index$
|
|
16927
|
+
var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
16943
16928
|
var _useState = useState(false),
|
|
16944
16929
|
_useState2 = _slicedToArray(_useState, 2),
|
|
16945
16930
|
show = _useState2[0],
|
|
@@ -30347,4 +30332,4 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30347
30332
|
return RuleObjectComponent;
|
|
30348
30333
|
}(Component);
|
|
30349
30334
|
|
|
30350
|
-
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, BillEntry, BsCascader, index$
|
|
30335
|
+
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, BillEntry, BsCascader, index$6 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$2 as CheckOneUser, ColumnSettingTable, CommodityEntry, DataImport, DataValidation, index$4 as DetailPageWrapper, EllipsisTooltip, ExportIcon, GuideWrapper, index$5 as HomePageWrapper, JsonQueryTable, index$7 as MoreTreeTable, QueryMutipleInput, RuleObjectComponent as RuleComponent, SearchSelect, index$3 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect };
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ var axios = require('axios');
|
|
|
6
6
|
var antd = require('antd');
|
|
7
7
|
var _ = require('lodash');
|
|
8
8
|
var umi = require('umi');
|
|
9
|
-
var isEqual
|
|
9
|
+
var isEqual = require('lodash/isEqual');
|
|
10
10
|
var React = require('react');
|
|
11
11
|
var moment$1 = require('moment');
|
|
12
12
|
var icons = require('@ant-design/icons');
|
|
@@ -33,7 +33,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
33
33
|
|
|
34
34
|
var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
|
|
35
35
|
var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
|
|
36
|
-
var isEqual__default = /*#__PURE__*/_interopDefaultLegacy(isEqual
|
|
36
|
+
var isEqual__default = /*#__PURE__*/_interopDefaultLegacy(isEqual);
|
|
37
37
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
38
38
|
var moment__default = /*#__PURE__*/_interopDefaultLegacy(moment$1);
|
|
39
39
|
var ProLayout__default = /*#__PURE__*/_interopDefaultLegacy(ProLayout);
|
|
@@ -155,33 +155,6 @@ axios__default['default'].interceptors.request.use(function (config) {
|
|
|
155
155
|
return config;
|
|
156
156
|
});
|
|
157
157
|
|
|
158
|
-
function _iterableToArrayLimit(arr, i) {
|
|
159
|
-
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
160
|
-
if (null != _i) {
|
|
161
|
-
var _s,
|
|
162
|
-
_e,
|
|
163
|
-
_x,
|
|
164
|
-
_r,
|
|
165
|
-
_arr = [],
|
|
166
|
-
_n = !0,
|
|
167
|
-
_d = !1;
|
|
168
|
-
try {
|
|
169
|
-
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
170
|
-
if (Object(_i) !== _i) return;
|
|
171
|
-
_n = !1;
|
|
172
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
173
|
-
} catch (err) {
|
|
174
|
-
_d = !0, _e = err;
|
|
175
|
-
} finally {
|
|
176
|
-
try {
|
|
177
|
-
if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
|
|
178
|
-
} finally {
|
|
179
|
-
if (_d) throw _e;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
return _arr;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
158
|
function ownKeys(object, enumerableOnly) {
|
|
186
159
|
var keys = Object.keys(object);
|
|
187
160
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -338,9 +311,14 @@ function _regeneratorRuntime() {
|
|
|
338
311
|
};
|
|
339
312
|
}
|
|
340
313
|
function maybeInvokeDelegate(delegate, context) {
|
|
341
|
-
var
|
|
342
|
-
|
|
343
|
-
|
|
314
|
+
var method = delegate.iterator[context.method];
|
|
315
|
+
if (undefined === method) {
|
|
316
|
+
if (context.delegate = null, "throw" === context.method) {
|
|
317
|
+
if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
318
|
+
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
319
|
+
}
|
|
320
|
+
return ContinueSentinel;
|
|
321
|
+
}
|
|
344
322
|
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
345
323
|
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
346
324
|
var info = record.arg;
|
|
@@ -554,7 +532,7 @@ function _defineProperties(target, props) {
|
|
|
554
532
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
555
533
|
descriptor.configurable = true;
|
|
556
534
|
if ("value" in descriptor) descriptor.writable = true;
|
|
557
|
-
Object.defineProperty(target,
|
|
535
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
558
536
|
}
|
|
559
537
|
}
|
|
560
538
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
@@ -566,7 +544,6 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
566
544
|
return Constructor;
|
|
567
545
|
}
|
|
568
546
|
function _defineProperty(obj, key, value) {
|
|
569
|
-
key = _toPropertyKey(key);
|
|
570
547
|
if (key in obj) {
|
|
571
548
|
Object.defineProperty(obj, key, {
|
|
572
549
|
value: value,
|
|
@@ -709,6 +686,30 @@ function _arrayWithHoles(arr) {
|
|
|
709
686
|
function _iterableToArray(iter) {
|
|
710
687
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
711
688
|
}
|
|
689
|
+
function _iterableToArrayLimit(arr, i) {
|
|
690
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
691
|
+
if (_i == null) return;
|
|
692
|
+
var _arr = [];
|
|
693
|
+
var _n = true;
|
|
694
|
+
var _d = false;
|
|
695
|
+
var _s, _e;
|
|
696
|
+
try {
|
|
697
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
698
|
+
_arr.push(_s.value);
|
|
699
|
+
if (i && _arr.length === i) break;
|
|
700
|
+
}
|
|
701
|
+
} catch (err) {
|
|
702
|
+
_d = true;
|
|
703
|
+
_e = err;
|
|
704
|
+
} finally {
|
|
705
|
+
try {
|
|
706
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
707
|
+
} finally {
|
|
708
|
+
if (_d) throw _e;
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
return _arr;
|
|
712
|
+
}
|
|
712
713
|
function _unsupportedIterableToArray(o, minLen) {
|
|
713
714
|
if (!o) return;
|
|
714
715
|
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
@@ -728,20 +729,6 @@ function _nonIterableSpread() {
|
|
|
728
729
|
function _nonIterableRest() {
|
|
729
730
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
730
731
|
}
|
|
731
|
-
function _toPrimitive(input, hint) {
|
|
732
|
-
if (typeof input !== "object" || input === null) return input;
|
|
733
|
-
var prim = input[Symbol.toPrimitive];
|
|
734
|
-
if (prim !== undefined) {
|
|
735
|
-
var res = prim.call(input, hint || "default");
|
|
736
|
-
if (typeof res !== "object") return res;
|
|
737
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
738
|
-
}
|
|
739
|
-
return (hint === "string" ? String : Number)(input);
|
|
740
|
-
}
|
|
741
|
-
function _toPropertyKey(arg) {
|
|
742
|
-
var key = _toPrimitive(arg, "string");
|
|
743
|
-
return typeof key === "symbol" ? key : String(key);
|
|
744
|
-
}
|
|
745
732
|
|
|
746
733
|
var checkQuantityAccuracy = function checkQuantityAccuracy(value, accuracy, errorInfo) {
|
|
747
734
|
var errorMessage = _objectSpread2({
|
|
@@ -781,52 +768,41 @@ var precisionQuantity = function precisionQuantity(num, accuracy) {
|
|
|
781
768
|
return '';
|
|
782
769
|
};
|
|
783
770
|
|
|
784
|
-
var
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
function
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
771
|
+
var simpleIsEqual = function simpleIsEqual(a, b) {
|
|
772
|
+
return a === b;
|
|
773
|
+
};
|
|
774
|
+
|
|
775
|
+
function index$1 (resultFn, isEqual) {
|
|
776
|
+
if (isEqual === void 0) {
|
|
777
|
+
isEqual = simpleIsEqual;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
var lastThis;
|
|
781
|
+
var lastArgs = [];
|
|
782
|
+
var lastResult;
|
|
783
|
+
var calledOnce = false;
|
|
784
|
+
|
|
785
|
+
var isNewArgEqualToLast = function isNewArgEqualToLast(newArg, index) {
|
|
786
|
+
return isEqual(newArg, lastArgs[index], index);
|
|
787
|
+
};
|
|
788
|
+
|
|
789
|
+
var result = function result() {
|
|
790
|
+
for (var _len = arguments.length, newArgs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
791
|
+
newArgs[_key] = arguments[_key];
|
|
800
792
|
}
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
}
|
|
793
|
+
|
|
794
|
+
if (calledOnce && lastThis === this && newArgs.length === lastArgs.length && newArgs.every(isNewArgEqualToLast)) {
|
|
795
|
+
return lastResult;
|
|
805
796
|
}
|
|
806
|
-
return true;
|
|
807
|
-
}
|
|
808
797
|
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
818
|
-
newArgs[_i] = arguments[_i];
|
|
819
|
-
}
|
|
820
|
-
if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {
|
|
821
|
-
return lastResult;
|
|
822
|
-
}
|
|
823
|
-
lastResult = resultFn.apply(this, newArgs);
|
|
824
|
-
calledOnce = true;
|
|
825
|
-
lastThis = this;
|
|
826
|
-
lastArgs = newArgs;
|
|
827
|
-
return lastResult;
|
|
828
|
-
}
|
|
829
|
-
return memoized;
|
|
798
|
+
lastResult = resultFn.apply(this, newArgs);
|
|
799
|
+
calledOnce = true;
|
|
800
|
+
lastThis = this;
|
|
801
|
+
lastArgs = newArgs;
|
|
802
|
+
return lastResult;
|
|
803
|
+
};
|
|
804
|
+
|
|
805
|
+
return result;
|
|
830
806
|
}
|
|
831
807
|
|
|
832
808
|
function styleInject(css, ref) {
|
|
@@ -1137,7 +1113,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1137
1113
|
return item;
|
|
1138
1114
|
});
|
|
1139
1115
|
};
|
|
1140
|
-
var memoizeOneFormatter =
|
|
1116
|
+
var memoizeOneFormatter = index$1(formatter, isEqual__default['default']);
|
|
1141
1117
|
var go2BackAndClose = function go2BackAndClose() {
|
|
1142
1118
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1143
1119
|
umi.history.goBack();
|
|
@@ -9624,7 +9600,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
9624
9600
|
* @LastEditTime: 2022-01-14 17:17:26
|
|
9625
9601
|
* @LastEditors: rodchen
|
|
9626
9602
|
*/
|
|
9627
|
-
var index$
|
|
9603
|
+
var index$2 = (function (storageKeyString) {
|
|
9628
9604
|
var seconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
|
|
9629
9605
|
var tipsCallFunction = arguments.length > 2 ? arguments[2] : undefined;
|
|
9630
9606
|
if (typeof seconds !== 'number') throw new Error('seconds should be number');
|
|
@@ -9707,6 +9683,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
9707
9683
|
disabled = props.disabled,
|
|
9708
9684
|
restProps = _objectWithoutProperties(props, _excluded$5);
|
|
9709
9685
|
var url = remoteSource.url,
|
|
9686
|
+
headers = remoteSource.headers,
|
|
9710
9687
|
_remoteSource$paramsK = remoteSource.paramsKey,
|
|
9711
9688
|
paramsKey = _remoteSource$paramsK === void 0 ? 'qp-name-like' : _remoteSource$paramsK,
|
|
9712
9689
|
_remoteSource$resKeyV = remoteSource.resKeyValue,
|
|
@@ -9737,7 +9714,9 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
9737
9714
|
/* 实时查询 但是目前用的直接是完整数据源, 所以没有使用 */
|
|
9738
9715
|
var handleSearch = function handleSearch(q) {
|
|
9739
9716
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
9740
|
-
axios__default['default'].get("".concat(url, "?").concat(querystring.stringify(paramsData))
|
|
9717
|
+
axios__default['default'].get("".concat(url, "?").concat(querystring.stringify(paramsData)), {
|
|
9718
|
+
headers: headers
|
|
9719
|
+
}).then( /*#__PURE__*/function () {
|
|
9741
9720
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
9742
9721
|
var _ctx$form;
|
|
9743
9722
|
var resData, coverData, data, dataList;
|
|
@@ -9877,7 +9856,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
9877
9856
|
})));
|
|
9878
9857
|
};
|
|
9879
9858
|
|
|
9880
|
-
var handleDefaultProps = function handleDefaultProps(type) {
|
|
9859
|
+
var handleDefaultProps = function handleDefaultProps(type, otherRequestConfig) {
|
|
9881
9860
|
var result = {};
|
|
9882
9861
|
switch (type) {
|
|
9883
9862
|
case 'department':
|
|
@@ -9886,6 +9865,7 @@ var handleDefaultProps = function handleDefaultProps(type) {
|
|
|
9886
9865
|
isChoose: true,
|
|
9887
9866
|
remoteSource: {
|
|
9888
9867
|
url: "/user/orgViewNode/common/getTreeForOrgViewAndTenant",
|
|
9868
|
+
headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
|
|
9889
9869
|
initialParams: {
|
|
9890
9870
|
'orgViewCode': 'administrative-organization-view'
|
|
9891
9871
|
},
|
|
@@ -9898,6 +9878,7 @@ var handleDefaultProps = function handleDefaultProps(type) {
|
|
|
9898
9878
|
isChoose: true,
|
|
9899
9879
|
remoteSource: {
|
|
9900
9880
|
url: "/user/orgViewNode/common/getTreeForOrgViewAndTenant",
|
|
9881
|
+
headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
|
|
9901
9882
|
initialParams: {
|
|
9902
9883
|
'orgViewCode': 'sales-organizational-view',
|
|
9903
9884
|
'qp-status-eq': 10
|
|
@@ -9911,6 +9892,7 @@ var handleDefaultProps = function handleDefaultProps(type) {
|
|
|
9911
9892
|
isChoose: true,
|
|
9912
9893
|
remoteSource: {
|
|
9913
9894
|
url: "/user/orgViewNode/common/getTreeForOrgViewAndTenant",
|
|
9895
|
+
headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
|
|
9914
9896
|
initialParams: {
|
|
9915
9897
|
'orgViewCode': 'purchase-organizational-view',
|
|
9916
9898
|
'qp-status-eq': 10
|
|
@@ -9924,6 +9906,7 @@ var handleDefaultProps = function handleDefaultProps(type) {
|
|
|
9924
9906
|
isChoose: true,
|
|
9925
9907
|
remoteSource: {
|
|
9926
9908
|
url: "/user/orgViewNode/common/getTreeForOrgViewAndTenant",
|
|
9909
|
+
headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
|
|
9927
9910
|
initialParams: {
|
|
9928
9911
|
'orgViewCode': 'stock-organizational-view',
|
|
9929
9912
|
'qp-status-eq': 10
|
|
@@ -9937,6 +9920,7 @@ var handleDefaultProps = function handleDefaultProps(type) {
|
|
|
9937
9920
|
isChoose: true,
|
|
9938
9921
|
remoteSource: {
|
|
9939
9922
|
url: "/channel-manage/tagNode/getTree/10",
|
|
9923
|
+
headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
|
|
9940
9924
|
resKeyValue: ['code', 'name']
|
|
9941
9925
|
}
|
|
9942
9926
|
};
|
|
@@ -9947,6 +9931,7 @@ var handleDefaultProps = function handleDefaultProps(type) {
|
|
|
9947
9931
|
isChoose: true,
|
|
9948
9932
|
remoteSource: {
|
|
9949
9933
|
url: "/user/orgViewNode/common/getTreeForOrgViewAndTenant",
|
|
9934
|
+
headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
|
|
9950
9935
|
initialParams: {
|
|
9951
9936
|
'orgViewCode': 'administrative-organization-view'
|
|
9952
9937
|
},
|
|
@@ -9961,7 +9946,7 @@ var handleDefaultProps = function handleDefaultProps(type) {
|
|
|
9961
9946
|
var MemoTreeSearchSelect = /*#__PURE__*/React__default['default'].memo(TreeSearchSelect);
|
|
9962
9947
|
var BusinessTreeSearchSelect = function BusinessTreeSearchSelect(props) {
|
|
9963
9948
|
var businessType = (props === null || props === void 0 ? void 0 : props.businessType) || 'department';
|
|
9964
|
-
var handleBusinessProps = handleDefaultProps(businessType);
|
|
9949
|
+
var handleBusinessProps = handleDefaultProps(businessType, props === null || props === void 0 ? void 0 : props.requestConfig);
|
|
9965
9950
|
var currentProps = React.useMemo(function () {
|
|
9966
9951
|
return _objectSpread2(_objectSpread2({}, handleBusinessProps), props);
|
|
9967
9952
|
}, [props === null || props === void 0 ? void 0 : props.value]);
|
|
@@ -9980,7 +9965,7 @@ var BusinessTreeSearchSelect$1 = /*#__PURE__*/React__default['default'].memo(Bus
|
|
|
9980
9965
|
var css_248z$8 = ".form-status-label {\n height: 48px;\n margin-right: 12px;\n display: inline-block;\n position: relative;\n background-color: #B0B4B7;\n align-items: center;\n}\n.choosed-status-label.form-status-label {\n background-color: #005CFF;\n}\n.form-status-label:last-child {\n margin-right: 0px;\n}\n.form-status-label:first-child::after {\n position: absolute;\n display: block;\n content: '';\n right: -48px;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.choosed-status-label.form-status-label::after {\n border-left: 12px solid #005CFF;\n}\n.choosed-status-label.form-status-label:not(:first-child):not(:last-child)::after {\n border-left: 12px solid #005CFF;\n}\n.form-status-label:last-child::after {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.form-status-label:not(:first-child):not(:last-child)::before {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.form-status-label:not(:first-child):not(:last-child)::after {\n position: absolute;\n display: block;\n content: '';\n right: -48px;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.status-label-index {\n display: inline-block;\n width: 24px;\n height: 24px;\n border: 1px solid #FFFFFF;\n color: #FFFFFF;\n border-radius: 50%;\n font-family: Montserrat;\n font-size: 14px;\n line-height: 24px;\n text-align: center;\n margin: 0 6px 0 20px;\n}\n.status-label-key {\n width: 50px;\n height: 100%;\n display: inline-flex;\n float: left;\n align-items: center;\n justify-content: center;\n}\n.status-label-operate {\n float: left;\n width: calc(100% - 50px);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 100%;\n margin: 4px 0;\n}\n.status-label-operate > div {\n font-size: 12px;\n height: 20px;\n line-height: 20px;\n color: #FFFFFF;\n font-family: PingFangSC;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.status-label-operate > div:first-child {\n font-size: 14px;\n font-weight: 600;\n}\n.only-one-child.form-status-label::after,\n.only-one-child.form-status-label::before {\n border-left: 0px;\n}\n";
|
|
9981
9966
|
styleInject(css_248z$8);
|
|
9982
9967
|
|
|
9983
|
-
var index$
|
|
9968
|
+
var index$3 = (function (props) {
|
|
9984
9969
|
var _props$formStatusMapp = props.formStatusMapping,
|
|
9985
9970
|
formStatusMapping = _props$formStatusMapp === void 0 ? [] : _props$formStatusMapp;
|
|
9986
9971
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -11404,7 +11389,7 @@ var iconMap = {
|
|
|
11404
11389
|
src: moreIcon
|
|
11405
11390
|
})
|
|
11406
11391
|
};
|
|
11407
|
-
var index$
|
|
11392
|
+
var index$4 = (function (props) {
|
|
11408
11393
|
var _useLocation = umi.useLocation(),
|
|
11409
11394
|
pathname = _useLocation.pathname;
|
|
11410
11395
|
var _useState = React.useState(pathname + 'id'),
|
|
@@ -11621,7 +11606,7 @@ var css_248z$d = ".home_page_head {\n height: 54px;\n display: flex;\n justif
|
|
|
11621
11606
|
styleInject(css_248z$d);
|
|
11622
11607
|
|
|
11623
11608
|
var _excluded$c = ["children"];
|
|
11624
|
-
var index$
|
|
11609
|
+
var index$5 = (function (props) {
|
|
11625
11610
|
var _useLocation = umi.useLocation(),
|
|
11626
11611
|
pathname = _useLocation.pathname;
|
|
11627
11612
|
var _useState = React.useState(pathname + 'id'),
|
|
@@ -16717,7 +16702,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
16717
16702
|
}]);
|
|
16718
16703
|
return WrapperComponent;
|
|
16719
16704
|
}(React__default['default'].Component);
|
|
16720
|
-
var index$
|
|
16705
|
+
var index$6 = (function (props) {
|
|
16721
16706
|
var _useModel = umi.useModel('@@initialState'),
|
|
16722
16707
|
_useModel$initialStat = _useModel.initialState,
|
|
16723
16708
|
initialState = _useModel$initialStat === void 0 ? {} : _useModel$initialStat;
|
|
@@ -16958,7 +16943,7 @@ var FixedScrollBar = function FixedScrollBar(_ref, ref) {
|
|
|
16958
16943
|
};
|
|
16959
16944
|
var FixedScrollBar$1 = /*#__PURE__*/React__default['default'].forwardRef(FixedScrollBar);
|
|
16960
16945
|
|
|
16961
|
-
var index$
|
|
16946
|
+
var index$7 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
16962
16947
|
var _useState = React.useState(false),
|
|
16963
16948
|
_useState2 = _slicedToArray(_useState, 2),
|
|
16964
16949
|
show = _useState2[0],
|
|
@@ -30372,26 +30357,26 @@ exports.AddSkuSelect = AddSkuSelect;
|
|
|
30372
30357
|
exports.AddSpuSelect = AddSpuSelect;
|
|
30373
30358
|
exports.BillEntry = BillEntry;
|
|
30374
30359
|
exports.BsCascader = BsCascader;
|
|
30375
|
-
exports.BsLayout = index$
|
|
30360
|
+
exports.BsLayout = index$6;
|
|
30376
30361
|
exports.BsSulaQueryTable = BsSulaQueryTable;
|
|
30377
30362
|
exports.BusinessSearchSelect = BusinessSearchSelect$1;
|
|
30378
30363
|
exports.BusinessTreeSearchSelect = BusinessTreeSearchSelect$1;
|
|
30379
|
-
exports.CheckOneUser = index$
|
|
30364
|
+
exports.CheckOneUser = index$2;
|
|
30380
30365
|
exports.ColumnSettingTable = ColumnSettingTable;
|
|
30381
30366
|
exports.CommodityEntry = CommodityEntry;
|
|
30382
30367
|
exports.DataImport = DataImport;
|
|
30383
30368
|
exports.DataValidation = DataValidation;
|
|
30384
|
-
exports.DetailPageWrapper = index$
|
|
30369
|
+
exports.DetailPageWrapper = index$4;
|
|
30385
30370
|
exports.EllipsisTooltip = EllipsisTooltip;
|
|
30386
30371
|
exports.ExportIcon = ExportIcon;
|
|
30387
30372
|
exports.GuideWrapper = GuideWrapper;
|
|
30388
|
-
exports.HomePageWrapper = index$
|
|
30373
|
+
exports.HomePageWrapper = index$5;
|
|
30389
30374
|
exports.JsonQueryTable = JsonQueryTable;
|
|
30390
|
-
exports.MoreTreeTable = index$
|
|
30375
|
+
exports.MoreTreeTable = index$7;
|
|
30391
30376
|
exports.QueryMutipleInput = QueryMutipleInput;
|
|
30392
30377
|
exports.RuleComponent = RuleObjectComponent;
|
|
30393
30378
|
exports.SearchSelect = SearchSelect;
|
|
30394
|
-
exports.StateFlow = index$
|
|
30379
|
+
exports.StateFlow = index$3;
|
|
30395
30380
|
exports.SulaColumnSettingTable = ColumnSettingSulaTable;
|
|
30396
30381
|
exports.TableColumnSetting = TableColumnSetting;
|
|
30397
30382
|
exports.TreeSearchSelect = TreeSearchSelect;
|
package/package.json
CHANGED
|
@@ -7,8 +7,7 @@ const MemoTreeSearchSelect = React.memo(TreeSearchSelect)
|
|
|
7
7
|
const BusinessTreeSearchSelect = (props: any) => {
|
|
8
8
|
const businessType = props?.businessType || 'department';
|
|
9
9
|
|
|
10
|
-
const handleBusinessProps = handleDefaultProps(businessType);
|
|
11
|
-
|
|
10
|
+
const handleBusinessProps = handleDefaultProps(businessType, props?.requestConfig);
|
|
12
11
|
const currentProps = useMemo(() => {
|
|
13
12
|
return {
|
|
14
13
|
...handleBusinessProps,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const handleDefaultProps = (type: string) => {
|
|
1
|
+
const handleDefaultProps = (type: string, otherRequestConfig: {extralHeaders?: string}|undefined) => {
|
|
2
2
|
let result = {};
|
|
3
3
|
switch (type){
|
|
4
4
|
case 'department':
|
|
@@ -7,6 +7,7 @@ const handleDefaultProps = (type: string) => {
|
|
|
7
7
|
isChoose: true,
|
|
8
8
|
remoteSource: {
|
|
9
9
|
url: `/user/orgViewNode/common/getTreeForOrgViewAndTenant`,
|
|
10
|
+
headers: otherRequestConfig?.extralHeaders,
|
|
10
11
|
initialParams: { 'orgViewCode': 'administrative-organization-view' },
|
|
11
12
|
resKeyValue: ['code', 'name'],
|
|
12
13
|
},
|
|
@@ -17,6 +18,7 @@ const handleDefaultProps = (type: string) => {
|
|
|
17
18
|
isChoose: true,
|
|
18
19
|
remoteSource: {
|
|
19
20
|
url: `/user/orgViewNode/common/getTreeForOrgViewAndTenant`,
|
|
21
|
+
headers: otherRequestConfig?.extralHeaders,
|
|
20
22
|
initialParams: { 'orgViewCode': 'sales-organizational-view', 'qp-status-eq': 10 }, // status: 10启用 20禁用
|
|
21
23
|
resKeyValue: ['code', 'name'],
|
|
22
24
|
},
|
|
@@ -27,6 +29,7 @@ const handleDefaultProps = (type: string) => {
|
|
|
27
29
|
isChoose: true,
|
|
28
30
|
remoteSource: {
|
|
29
31
|
url: `/user/orgViewNode/common/getTreeForOrgViewAndTenant`,
|
|
32
|
+
headers: otherRequestConfig?.extralHeaders,
|
|
30
33
|
initialParams: { 'orgViewCode': 'purchase-organizational-view', 'qp-status-eq': 10 },
|
|
31
34
|
resKeyValue: ['code', 'name'],
|
|
32
35
|
},
|
|
@@ -37,6 +40,7 @@ const handleDefaultProps = (type: string) => {
|
|
|
37
40
|
isChoose: true,
|
|
38
41
|
remoteSource: {
|
|
39
42
|
url: `/user/orgViewNode/common/getTreeForOrgViewAndTenant`,
|
|
43
|
+
headers: otherRequestConfig?.extralHeaders,
|
|
40
44
|
initialParams: { 'orgViewCode': 'stock-organizational-view', 'qp-status-eq': 10 },
|
|
41
45
|
resKeyValue: ['code', 'name'],
|
|
42
46
|
},
|
|
@@ -47,6 +51,7 @@ const handleDefaultProps = (type: string) => {
|
|
|
47
51
|
isChoose: true,
|
|
48
52
|
remoteSource: {
|
|
49
53
|
url: `/channel-manage/tagNode/getTree/10`,
|
|
54
|
+
headers: otherRequestConfig?.extralHeaders,
|
|
50
55
|
resKeyValue: ['code', 'name'],
|
|
51
56
|
},
|
|
52
57
|
};
|
|
@@ -57,6 +62,7 @@ const handleDefaultProps = (type: string) => {
|
|
|
57
62
|
isChoose: true,
|
|
58
63
|
remoteSource: {
|
|
59
64
|
url: `/user/orgViewNode/common/getTreeForOrgViewAndTenant`,
|
|
65
|
+
headers: otherRequestConfig?.extralHeaders,
|
|
60
66
|
initialParams: { 'orgViewCode': 'administrative-organization-view' },
|
|
61
67
|
resKeyValue: ['code', 'name'],
|
|
62
68
|
},
|
|
@@ -34,6 +34,7 @@ const TreeSearchSelect = (props: any) => {
|
|
|
34
34
|
|
|
35
35
|
const {
|
|
36
36
|
url,
|
|
37
|
+
headers,
|
|
37
38
|
paramsKey = 'qp-name-like',
|
|
38
39
|
resKeyValue = ['id', 'name'],
|
|
39
40
|
initialParams = {},
|
|
@@ -66,7 +67,7 @@ const TreeSearchSelect = (props: any) => {
|
|
|
66
67
|
[`${paramsKey}`]: q,
|
|
67
68
|
...initialParams,
|
|
68
69
|
}
|
|
69
|
-
axios.get(`${url}?${stringify(paramsData)}
|
|
70
|
+
axios.get(`${url}?${stringify(paramsData)}`, {headers}).then(async (res: any) => {
|
|
70
71
|
const resData = res?.data || [];
|
|
71
72
|
let coverData;
|
|
72
73
|
|