@bit-sun/business-component 2.4.24 → 2.4.26-beta01
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/service.d.ts +1 -1
- package/dist/components/Business/BsSulaQueryTable/index.d.ts +0 -1
- package/dist/components/Business/BsSulaQueryTable/setting.d.ts +1 -1
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +0 -1
- package/dist/components/Business/columnSettingTable/columnSetting.d.ts +0 -1
- package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +1 -1
- package/dist/components/Functional/QueryMutipleInput/index.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/services.d.ts +1 -1
- package/dist/index.esm.js +1185 -1739
- package/dist/index.js +1179 -1735
- package/dist/utils/TableUtils.d.ts +2 -93
- package/dist/utils/index.d.ts +4 -6
- package/dist/utils/utils.d.ts +0 -13
- package/package.json +4 -7
- package/src/assets/32.svg +27 -27
- package/src/assets/addIcon.svg +17 -17
- package/src/assets/allfunc.svg +27 -27
- package/src/assets/arrowRight.svg +24 -24
- package/src/assets/btn-delete.svg +29 -29
- package/src/assets/btn-edit.svg +19 -19
- package/src/assets/btn-more.svg +17 -17
- package/src/assets/btn-submit.svg +19 -19
- package/src/assets/close.svg +26 -26
- package/src/assets/drag.svg +17 -17
- package/src/assets/fixed-left.svg +15 -15
- package/src/assets/fixed-right.svg +15 -15
- package/src/assets/guanbi.svg +15 -15
- package/src/assets/icon-quanping.svg +15 -15
- package/src/assets/icon-shezhi.svg +17 -17
- package/src/assets/label_icon_bottom.svg +25 -25
- package/src/assets/list-no-img.svg +21 -21
- package/src/assets/morentouxiang-32.svg +23 -23
- package/src/assets/scanning.svg +24 -24
- package/src/assets/upExport.svg +22 -22
- package/src/common/ENUM.ts +41 -41
- package/src/components/Business/AddSelectBusiness/index.tsx +22 -40
- package/src/components/Business/BsLayouts/Components/AllFunc/index.less +153 -153
- package/src/components/Business/BsLayouts/Components/AllFunc/index.tsx +70 -70
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.less +90 -90
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.tsx +37 -37
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.tsx +242 -242
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.tsx +384 -384
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.tsx +74 -74
- package/src/components/Business/BsLayouts/Components/CustomerMenu/index.less +64 -64
- package/src/components/Business/BsLayouts/Components/CustomerMenu/index.tsx +153 -153
- package/src/components/Business/BsLayouts/Components/GlobalHeader/index.tsx +157 -163
- package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +85 -85
- package/src/components/Business/BsLayouts/Components/RightContent/index.tsx +2 -19
- package/src/components/Business/BsLayouts/Components/SearchFunc/index.tsx +75 -75
- package/src/components/Business/BsLayouts/index.less +79 -79
- package/src/components/Business/BsLayouts/index.tsx +1484 -1494
- package/src/components/Business/BsLayouts/service.ts +2 -2
- package/src/components/Business/BsLayouts/utils.tsx +203 -203
- package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +9 -9
- package/src/components/Business/BsSulaQueryTable/index.less +221 -221
- package/src/components/Business/BsSulaQueryTable/index.tsx +175 -346
- package/src/components/Business/BsSulaQueryTable/setting.tsx +87 -125
- package/src/components/Business/BsSulaQueryTable/utils.tsx +34 -57
- package/src/components/Business/CommodityEntry/index.md +70 -70
- package/src/components/Business/CommodityEntry/index.tsx +81 -80
- package/src/components/Business/CommonGuideWrapper/index.less +112 -121
- package/src/components/Business/CommonGuideWrapper/index.md +39 -39
- package/src/components/Business/CommonGuideWrapper/index.tsx +84 -94
- package/src/components/Business/DetailPageWrapper/index.less +1 -9
- package/src/components/Business/DetailPageWrapper/index.tsx +110 -121
- package/src/components/Business/HomePageWrapper/index.md +45 -45
- package/src/components/Business/HomePageWrapper/index.tsx +162 -162
- package/src/components/Business/JsonQueryTable/configButton/index.js +20 -20
- package/src/components/Business/JsonQueryTable/configTree/component/compactArrayView.js +25 -25
- package/src/components/Business/JsonQueryTable/configTree/component/compactObjectView.js +30 -30
- package/src/components/Business/JsonQueryTable/configTree/index.js +82 -82
- package/src/components/Business/JsonQueryTable/configTree/index.less +44 -44
- package/src/components/Business/JsonQueryTable/configTree/parser/highlight.js +57 -57
- package/src/components/Business/JsonQueryTable/configTree/parser/index.js +124 -124
- package/src/components/Business/JsonQueryTable/configTree/render/iconRender.js +29 -29
- package/src/components/Business/JsonQueryTable/configTree/render/nameRender.js +22 -22
- package/src/components/Business/JsonQueryTable/configTree/treeNode.js +116 -116
- package/src/components/Business/JsonQueryTable/drawer/index.tsx +12 -12
- package/src/components/Business/JsonQueryTable/index.less +16 -16
- package/src/components/Business/JsonQueryTable/index.md +328 -328
- package/src/components/Business/JsonQueryTable/index.tsx +537 -535
- package/src/components/Business/JsonQueryTable/jsonEditor/index.js +346 -346
- package/src/components/Business/JsonQueryTable/jsonEditor/index.less +22 -22
- package/src/components/Business/JsonQueryTable/jsonEditor/lint/basicType.js +147 -147
- package/src/components/Business/JsonQueryTable/jsonEditor/lint/index.js +389 -389
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/actions.js +118 -118
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/dependency.js +22 -22
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/index.js +21 -21
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/request.js +65 -65
- package/src/components/Business/SearchSelect/utils.ts +3 -3
- package/src/components/Business/StateFlow/index.md +60 -60
- package/src/components/Business/StateFlow/index.tsx +29 -29
- package/src/components/Business/columnSettingTable/columnSetting.tsx +8 -10
- package/src/components/Business/columnSettingTable/index.less +247 -247
- package/src/components/Business/columnSettingTable/index.md +357 -357
- package/src/components/Business/columnSettingTable/utils.tsx +71 -71
- package/src/components/Business/moreTreeTable/FixedScrollBar.tsx +87 -87
- package/src/components/Business/moreTreeTable/hooks/useSticky.ts +21 -21
- package/src/components/Business/moreTreeTable/index.less +99 -99
- package/src/components/Business/moreTreeTable/index.tsx +387 -387
- package/src/components/Business/moreTreeTable/utils.ts +126 -126
- package/src/components/Functional/AddSelect/helps.ts +3 -4
- package/src/components/Functional/AddSelect/index.less +367 -367
- package/src/components/Functional/AddSelect/index.tsx +33 -79
- package/src/components/Functional/BillEntry/index.less +371 -371
- package/src/components/Functional/BillEntry/index.tsx +3 -3
- package/src/components/Functional/BsAntdSula/index.ts +2 -2
- package/src/components/Functional/DataImport/index.less +63 -63
- package/src/components/Functional/DataImport/index.tsx +3 -3
- package/src/components/Functional/DataValidation/index.less +63 -63
- package/src/components/Functional/DataValidation/index.tsx +3 -3
- package/src/components/Functional/EllipsisTooltip/index.d.ts +5 -5
- package/src/components/Functional/EllipsisTooltip/index.js +36 -36
- package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +5 -10
- package/src/components/Functional/QueryMutipleInput/index.less +37 -37
- package/src/components/Functional/QueryMutipleInput/index.tsx +1 -2
- package/src/components/Functional/SearchSelect/index.less +0 -6
- package/src/components/Functional/SearchSelect/index.tsx +45 -152
- package/src/components/Functional/SearchSelect/utils.ts +3 -3
- package/src/components/Functional/TreeSearchSelect/index.tsx +22 -24
- package/src/components/Solution/RuleComponent/Formula.tsx +335 -335
- package/src/components/Solution/RuleComponent/index.d.ts +29 -29
- package/src/components/Solution/RuleComponent/index.js +652 -7
- package/src/components/Solution/RuleComponent/index.less +230 -230
- package/src/components/Solution/RuleComponent/renderSpecificAction.js +99 -99
- package/src/components/Solution/RuleComponent/services.ts +13 -13
- package/src/plugin/TableColumnSetting/index.less +247 -247
- package/src/plugin/TableColumnSetting/index.md +50 -50
- package/src/plugin/TableColumnSetting/index.tsx +2 -2
- package/src/plugin/TableColumnSetting/utils.ts +19 -19
- package/src/utils/CheckOneUser/index.md +39 -39
- package/src/utils/CheckOneUser/index.ts +51 -51
- package/src/utils/LocalstorageUtils.ts +95 -95
- package/src/utils/TableUtils.tsx +18 -691
- package/src/utils/checkUtils.ts +39 -39
- package/src/utils/enumConfig.ts +11 -11
- package/src/utils/getFormMode.js +12 -12
- package/src/utils/index.ts +4 -6
- package/src/utils/requestUtils.ts +2 -29
- package/src/utils/serialize.js +7 -7
- package/src/utils/utils.ts +21 -64
- package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +0 -3
- package/dist/components/Business/BsLayouts/Components/ChooseStore/services.d.ts +0 -1
- package/dist/components/Business/BsLayouts/Components/RightContent/i18n.d.ts +0 -9
- package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +0 -2
- package/dist/utils/businessUtils.d.ts +0 -27
- package/dist/utils/constant.d.ts +0 -37
- package/dist/utils/request.d.ts +0 -2
- package/src/assets/arrow_top.svg +0 -18
- package/src/components/Business/BsLayouts/Components/ChooseStore/index.less +0 -0
- package/src/components/Business/BsLayouts/Components/ChooseStore/index.tsx +0 -193
- package/src/components/Business/BsLayouts/Components/ChooseStore/services.ts +0 -10
- package/src/components/Business/BsLayouts/Components/RightContent/i18n.ts +0 -9
- package/src/components/Business/BsSulaQueryTable/bssulaquerytable.less +0 -5
- package/src/components/Solution/RuleComponent/RenderCompItem.tsx +0 -637
- package/src/utils/TableUtils.less +0 -52
- package/src/utils/businessUtils.ts +0 -441
- package/src/utils/constant.ts +0 -39
- package/src/utils/request.ts +0 -53
package/dist/index.js
CHANGED
|
@@ -3,28 +3,24 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var axios = require('axios');
|
|
6
|
-
var request$1 = require('umi-request');
|
|
7
6
|
var cookie = require('js-cookie');
|
|
8
7
|
var antd = require('antd');
|
|
9
8
|
var _ = require('lodash');
|
|
9
|
+
var umi = require('umi');
|
|
10
|
+
var isEqual = require('lodash/isEqual');
|
|
10
11
|
var React = require('react');
|
|
11
12
|
var moment$1 = require('moment');
|
|
12
|
-
require('@/assets/list-no-img.svg');
|
|
13
|
-
var bssula = require('bssula');
|
|
14
13
|
var icons = require('@ant-design/icons');
|
|
15
|
-
var
|
|
16
|
-
var isEqual = require('lodash/isEqual');
|
|
17
|
-
require('qs');
|
|
14
|
+
var bssula = require('bssula');
|
|
18
15
|
var reactBeautifulDnd = require('react-beautiful-dnd');
|
|
19
16
|
var ahooks = require('ahooks');
|
|
20
17
|
var querystring = require('querystring');
|
|
21
18
|
var reactResizable = require('react-resizable');
|
|
22
19
|
var reactSortableHoc = require('react-sortable-hoc');
|
|
23
20
|
var arrayMove = require('array-move');
|
|
24
|
-
var classNames = require('classnames');
|
|
25
21
|
var ProLayout = require('@ant-design/pro-layout');
|
|
26
22
|
var cloneDeep = require('lodash/cloneDeep');
|
|
27
|
-
var
|
|
23
|
+
var classNames = require('classnames');
|
|
28
24
|
var reactDnd = require('react-dnd');
|
|
29
25
|
var reactDndHtml5Backend = require('react-dnd-html5-backend');
|
|
30
26
|
var Editor$1 = require('@monaco-editor/react');
|
|
@@ -37,16 +33,14 @@ var isArray$1 = require('lodash/isArray');
|
|
|
37
33
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
38
34
|
|
|
39
35
|
var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
|
|
40
|
-
var request__default = /*#__PURE__*/_interopDefaultLegacy(request$1);
|
|
41
36
|
var cookie__default = /*#__PURE__*/_interopDefaultLegacy(cookie);
|
|
42
37
|
var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
|
|
38
|
+
var isEqual__default = /*#__PURE__*/_interopDefaultLegacy(isEqual);
|
|
43
39
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
44
40
|
var moment__default = /*#__PURE__*/_interopDefaultLegacy(moment$1);
|
|
45
|
-
var isEqual__default = /*#__PURE__*/_interopDefaultLegacy(isEqual);
|
|
46
|
-
var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
47
41
|
var ProLayout__default = /*#__PURE__*/_interopDefaultLegacy(ProLayout);
|
|
48
42
|
var cloneDeep__default = /*#__PURE__*/_interopDefaultLegacy(cloneDeep);
|
|
49
|
-
var
|
|
43
|
+
var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
50
44
|
var Editor__default = /*#__PURE__*/_interopDefaultLegacy(Editor$1);
|
|
51
45
|
var serialize__default = /*#__PURE__*/_interopDefaultLegacy(serialize);
|
|
52
46
|
var castArray__default = /*#__PURE__*/_interopDefaultLegacy(castArray);
|
|
@@ -501,6 +495,20 @@ function _defineProperty(obj, key, value) {
|
|
|
501
495
|
}
|
|
502
496
|
return obj;
|
|
503
497
|
}
|
|
498
|
+
function _extends() {
|
|
499
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
500
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
501
|
+
var source = arguments[i];
|
|
502
|
+
for (var key in source) {
|
|
503
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
504
|
+
target[key] = source[key];
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
return target;
|
|
509
|
+
};
|
|
510
|
+
return _extends.apply(this, arguments);
|
|
511
|
+
}
|
|
504
512
|
function _inherits(subClass, superClass) {
|
|
505
513
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
506
514
|
throw new TypeError("Super expression must either be null or a function");
|
|
@@ -625,9 +633,7 @@ var ENUM = {
|
|
|
625
633
|
}
|
|
626
634
|
};
|
|
627
635
|
|
|
628
|
-
var resposne =
|
|
629
|
-
return JSON.parse(localStorage.getItem(ENUM.BROWSER_CACHE.USER_INFO) || '{}');
|
|
630
|
-
};
|
|
636
|
+
var resposne = JSON.parse(localStorage.getItem(ENUM.BROWSER_CACHE.USER_INFO) || '{}');
|
|
631
637
|
// 存储表头
|
|
632
638
|
var setConfigTableColumns = function setConfigTableColumns(configvalue, tableCode) {
|
|
633
639
|
var config = localStorage.getItem(ENUM.BROWSER_CACHE.COLUMN_CONDITION) || '[]';
|
|
@@ -662,36 +668,35 @@ var getCurrentTenantId = function getCurrentTenantId() {
|
|
|
662
668
|
return localStorage.getItem('current_tenant_id') || 1;
|
|
663
669
|
};
|
|
664
670
|
function getEmployeeId() {
|
|
665
|
-
var _resposne
|
|
666
|
-
return (
|
|
671
|
+
var _resposne$employeeRes;
|
|
672
|
+
return (resposne === null || resposne === void 0 ? void 0 : (_resposne$employeeRes = resposne.employeeResVo) === null || _resposne$employeeRes === void 0 ? void 0 : _resposne$employeeRes.id) || 2;
|
|
667
673
|
}
|
|
668
674
|
function getEmployeeCode() {
|
|
669
|
-
var
|
|
670
|
-
return
|
|
675
|
+
var _resposne$employeeRes2;
|
|
676
|
+
return resposne === null || resposne === void 0 ? void 0 : (_resposne$employeeRes2 = resposne.employeeResVo) === null || _resposne$employeeRes2 === void 0 ? void 0 : _resposne$employeeRes2.employeeNumber;
|
|
671
677
|
}
|
|
672
678
|
function getSessionId() {
|
|
673
|
-
|
|
674
|
-
return ((_resposne3 = resposne()) === null || _resposne3 === void 0 ? void 0 : _resposne3.sessionId) || '';
|
|
679
|
+
return (resposne === null || resposne === void 0 ? void 0 : resposne.sessionId) || '';
|
|
675
680
|
}
|
|
676
681
|
function getAccountId() {
|
|
677
|
-
var
|
|
678
|
-
return (
|
|
682
|
+
var _resposne$accountPers;
|
|
683
|
+
return (resposne === null || resposne === void 0 ? void 0 : (_resposne$accountPers = resposne.accountPersonDetail) === null || _resposne$accountPers === void 0 ? void 0 : _resposne$accountPers.accountId) || -1;
|
|
679
684
|
}
|
|
680
685
|
function getUserId() {
|
|
681
|
-
var _resposne$
|
|
682
|
-
return (_resposne$
|
|
686
|
+
var _resposne$accountPers2;
|
|
687
|
+
return (_resposne$accountPers2 = resposne.accountPersonDetail) === null || _resposne$accountPers2 === void 0 ? void 0 : _resposne$accountPers2.username;
|
|
683
688
|
}
|
|
684
689
|
function getAccountID() {
|
|
685
|
-
var
|
|
686
|
-
return
|
|
690
|
+
var _resposne$accountPers3;
|
|
691
|
+
return resposne === null || resposne === void 0 ? void 0 : (_resposne$accountPers3 = resposne.accountPersonDetail) === null || _resposne$accountPers3 === void 0 ? void 0 : _resposne$accountPers3.id;
|
|
687
692
|
}
|
|
688
693
|
function getUserName() {
|
|
689
|
-
var
|
|
690
|
-
return
|
|
694
|
+
var _resposne$accountPers4;
|
|
695
|
+
return resposne === null || resposne === void 0 ? void 0 : (_resposne$accountPers4 = resposne.accountPersonDetail) === null || _resposne$accountPers4 === void 0 ? void 0 : _resposne$accountPers4.employeeName;
|
|
691
696
|
}
|
|
692
697
|
function handleUserPhone() {
|
|
693
|
-
var
|
|
694
|
-
var str = (
|
|
698
|
+
var _resposne$person;
|
|
699
|
+
var str = (resposne === null || resposne === void 0 ? void 0 : (_resposne$person = resposne.person) === null || _resposne$person === void 0 ? void 0 : _resposne$person.phone) || '';
|
|
695
700
|
var enStr = str && str.slice(0, 3) + '****' + str.slice(str.length - 4);
|
|
696
701
|
return enStr;
|
|
697
702
|
}
|
|
@@ -820,7 +825,7 @@ var handleCommonHeader = function handleCommonHeader() {
|
|
|
820
825
|
* 处理请求头方法-包含一般请求头、权限请求头。组件默认统一处理一遍,若组件使用处需要可以单独在组件处传参进来处理
|
|
821
826
|
* @param {*} config 请求参数配置
|
|
822
827
|
* */
|
|
823
|
-
var
|
|
828
|
+
var handleRequestHeader = function handleRequestHeader(config) {
|
|
824
829
|
var commonHeaders = handleCommonHeader();
|
|
825
830
|
if (localStorage.getItem('x-user-auth-context')) {
|
|
826
831
|
// @ts-ignore
|
|
@@ -831,30 +836,9 @@ var handleAxioRequestHeader = function handleAxioRequestHeader(config) {
|
|
|
831
836
|
};
|
|
832
837
|
// 拦截器
|
|
833
838
|
axios__default['default'].interceptors.request.use(function (config) {
|
|
834
|
-
|
|
839
|
+
handleRequestHeader(config);
|
|
835
840
|
return config;
|
|
836
841
|
});
|
|
837
|
-
var handleRequestHeader = function handleRequestHeader(url, options) {
|
|
838
|
-
var commonHeaders = handleCommonHeader();
|
|
839
|
-
var config = {
|
|
840
|
-
url: url,
|
|
841
|
-
headers: _objectSpread2({}, options === null || options === void 0 ? void 0 : options.headers)
|
|
842
|
-
};
|
|
843
|
-
if (localStorage.getItem('x-user-auth-context')) {
|
|
844
|
-
// @ts-ignore
|
|
845
|
-
commonHeaders['x-user-auth-context'] = localStorage.getItem('x-user-auth-context');
|
|
846
|
-
}
|
|
847
|
-
!!!config.headers['x-biz-code'] && handleRequestAuthHeader(config);
|
|
848
|
-
config.headers = _objectSpread2(_objectSpread2({}, commonHeaders), config.headers);
|
|
849
|
-
options.headers = config.headers;
|
|
850
|
-
};
|
|
851
|
-
request__default['default'].interceptors.request.use(function (url, options) {
|
|
852
|
-
handleRequestHeader(url, options);
|
|
853
|
-
return {
|
|
854
|
-
url: url,
|
|
855
|
-
options: options
|
|
856
|
-
};
|
|
857
|
-
});
|
|
858
842
|
/**
|
|
859
843
|
* 处理请求路径前缀/请求路径等使用不一的问题
|
|
860
844
|
* @param {*} defaultUrl 默认请求路径
|
|
@@ -951,76 +935,6 @@ var precisionQuantity = function precisionQuantity(num, accuracy) {
|
|
|
951
935
|
return '';
|
|
952
936
|
};
|
|
953
937
|
|
|
954
|
-
/* 字面量 */
|
|
955
|
-
// 字面量数字
|
|
956
|
-
var NUMBER_VALUE = Object.freeze({
|
|
957
|
-
ZERO: 0,
|
|
958
|
-
ONE: 1,
|
|
959
|
-
TWO: 2,
|
|
960
|
-
THREE: 3,
|
|
961
|
-
FOUR: 4,
|
|
962
|
-
FIVE: 5,
|
|
963
|
-
SIX: 6,
|
|
964
|
-
SEVEN: 7,
|
|
965
|
-
EIGHT: 8,
|
|
966
|
-
NINE: 9,
|
|
967
|
-
TEN: 10,
|
|
968
|
-
ELEVEN: 11,
|
|
969
|
-
TWELVE: 12,
|
|
970
|
-
THIRTEEN: 13,
|
|
971
|
-
FOURTEEN: 14,
|
|
972
|
-
FIFTEEN: 15,
|
|
973
|
-
SIXTEEN: 16,
|
|
974
|
-
SEVENTEEN: 17,
|
|
975
|
-
EIGHTEEN: 18,
|
|
976
|
-
NINETEEN: 19,
|
|
977
|
-
TWENTY: 20,
|
|
978
|
-
TWENTY_ONE: 21,
|
|
979
|
-
TWENTY_TWO: 22,
|
|
980
|
-
TWENTY_THREE: 23,
|
|
981
|
-
TWENTY_FOUR: 24
|
|
982
|
-
});
|
|
983
|
-
|
|
984
|
-
function styleInject(css, ref) {
|
|
985
|
-
if ( ref === void 0 ) ref = {};
|
|
986
|
-
var insertAt = ref.insertAt;
|
|
987
|
-
|
|
988
|
-
if (!css || typeof document === 'undefined') { return; }
|
|
989
|
-
|
|
990
|
-
var head = document.head || document.getElementsByTagName('head')[0];
|
|
991
|
-
var style = document.createElement('style');
|
|
992
|
-
style.type = 'text/css';
|
|
993
|
-
|
|
994
|
-
if (insertAt === 'top') {
|
|
995
|
-
if (head.firstChild) {
|
|
996
|
-
head.insertBefore(style, head.firstChild);
|
|
997
|
-
} else {
|
|
998
|
-
head.appendChild(style);
|
|
999
|
-
}
|
|
1000
|
-
} else {
|
|
1001
|
-
head.appendChild(style);
|
|
1002
|
-
}
|
|
1003
|
-
|
|
1004
|
-
if (style.styleSheet) {
|
|
1005
|
-
style.styleSheet.cssText = css;
|
|
1006
|
-
} else {
|
|
1007
|
-
style.appendChild(document.createTextNode(css));
|
|
1008
|
-
}
|
|
1009
|
-
}
|
|
1010
|
-
|
|
1011
|
-
var css_248z = ".user_info_card :global .ant-popover-inner-content {\n padding: 0px !important;\n}\n.user_info_card :global .ant-card-body {\n padding: 0px !important;\n}\n.cardContent {\n font-family: PingFangSC, PingFangSC-Regular;\n}\n.user_card_header {\n margin-top: -32px;\n}\n.user_card_header .card_name {\n font-size: 14px;\n font-weight: 600;\n line-height: 20px;\n color: #000000;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n margin-top: 6px;\n}\n.card_company {\n font-size: 12px;\n font-weight: 400;\n color: #848484;\n line-height: 20px;\n margin-bottom: 16px;\n}\n.card_detailInfo {\n font-size: 12px;\n font-weight: 400;\n color: #848484;\n line-height: 20px;\n margin: 0 0 5px !important;\n}\n.card_department {\n color: #005cff !important;\n}\n";
|
|
1012
|
-
styleInject(css_248z);
|
|
1013
|
-
|
|
1014
|
-
var getSkuImg = function getSkuImg(record) {
|
|
1015
|
-
var _record$mediaList;
|
|
1016
|
-
// 默认取sku图片、当没有设置时取商品图片,商品图片也没有返回空
|
|
1017
|
-
var ImgList = ((_record$mediaList = record.mediaList) === null || _record$mediaList === void 0 ? void 0 : _record$mediaList.length) && record.mediaList.filter(function (i) {
|
|
1018
|
-
return i.type == 1;
|
|
1019
|
-
}) || []; // 获取SKU、SPU图片数组集合
|
|
1020
|
-
var imgShow = (ImgList === null || ImgList === void 0 ? void 0 : ImgList.length) && ImgList[0].url || null;
|
|
1021
|
-
return imgShow;
|
|
1022
|
-
};
|
|
1023
|
-
|
|
1024
938
|
var simpleIsEqual = function simpleIsEqual(a, b) {
|
|
1025
939
|
return a === b;
|
|
1026
940
|
};
|
|
@@ -1058,8 +972,35 @@ function index$1 (resultFn, isEqual) {
|
|
|
1058
972
|
return result;
|
|
1059
973
|
}
|
|
1060
974
|
|
|
1061
|
-
|
|
1062
|
-
|
|
975
|
+
function styleInject(css, ref) {
|
|
976
|
+
if ( ref === void 0 ) ref = {};
|
|
977
|
+
var insertAt = ref.insertAt;
|
|
978
|
+
|
|
979
|
+
if (!css || typeof document === 'undefined') { return; }
|
|
980
|
+
|
|
981
|
+
var head = document.head || document.getElementsByTagName('head')[0];
|
|
982
|
+
var style = document.createElement('style');
|
|
983
|
+
style.type = 'text/css';
|
|
984
|
+
|
|
985
|
+
if (insertAt === 'top') {
|
|
986
|
+
if (head.firstChild) {
|
|
987
|
+
head.insertBefore(style, head.firstChild);
|
|
988
|
+
} else {
|
|
989
|
+
head.appendChild(style);
|
|
990
|
+
}
|
|
991
|
+
} else {
|
|
992
|
+
head.appendChild(style);
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
if (style.styleSheet) {
|
|
996
|
+
style.styleSheet.cssText = css;
|
|
997
|
+
} else {
|
|
998
|
+
style.appendChild(document.createTextNode(css));
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
var css_248z = ".cardContent {\n font-family: PingFangSC, PingFangSC-Regular;\n}\n.user_card_header {\n margin-top: -32px;\n}\n.user_card_header .card_name {\n font-size: 14px;\n font-weight: 600;\n line-height: 20px;\n color: #000000;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n margin-top: 6px;\n}\n.card_company {\n font-size: 12px;\n font-weight: 400;\n color: #848484;\n line-height: 20px;\n margin-bottom: 16px;\n}\n.card_detailInfo {\n font-size: 12px;\n font-weight: 400;\n color: #848484;\n line-height: 20px;\n margin: 0 0 5px !important;\n}\n.card_department {\n color: #005cff !important;\n}\n.user_info_card .ant-popover-inner-content {\n padding: 0px !important;\n}\n.user_info_card .ant-card-body {\n padding: 0px !important;\n}\n";
|
|
1003
|
+
styleInject(css_248z);
|
|
1063
1004
|
|
|
1064
1005
|
var noImg = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2244px%22%20height%3D%2244px%22%20viewBox%3D%220%200%2044%2044%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E8%92%99%E7%89%88%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Cpolygon%20id%3D%22path-1%22%20points%3D%22-1.56319402e-13%201.84741111e-13%2044%201.84741111e-13%2044%2044%20-1.56319402e-13%2044%22%3E%3C%2Fpolygon%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22%E5%88%97%E8%A1%A8%E5%8A%9F%E8%83%BD%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E6%98%9F%E6%BE%9C-%E6%90%9C%E7%B4%A2-%E6%90%9C%E7%B4%A2%E5%8A%9F%E8%83%BD%22%20transform%3D%22translate%28-354.000000%2C%20-672.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E5%88%97%E8%A1%A8%E4%B8%80%E5%A4%87%E4%BB%BD%22%20transform%3D%22translate%28240.000000%2C%20664.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E5%8D%95%E6%8D%AE%E7%BC%96%E5%8F%B7%22%20transform%3D%22translate%28106.000000%2C%200.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E5%BD%A2%E7%8A%B6%22%20transform%3D%22translate%288.000000%2C%208.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cmask%20id%3D%22mask-2%22%20fill%3D%22white%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fmask%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20id%3D%22%E8%92%99%E7%89%88%22%20fill%3D%22%23E6F3FF%22%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M28.4962332%2C15%20C29.4007284%2C15%2030.1339666%2C15.7383979%2030.1339666%2C16.6492578%20L30.1339666%2C27.5596481%20C30.1339666%2C28.4705081%2029.4007284%2C29.208906%2028.4962332%2C29.208906%20L14.6377334%2C29.208906%20C13.7332382%2C29.208906%2013%2C28.4705081%2013%2C27.5596481%20L13%2C16.6492578%20C13%2C15.7383979%2013.7332382%2C15%2014.6377334%2C15%20L28.4956873%2C15%20L28.4962332%2C15%20Z%20M28.4962332%2C16.6492578%20L14.6377334%2C16.6492578%20L14.6377334%2C27.5596481%20L28.4956873%2C27.5596481%20L28.4956873%2C16.6492578%20L28.4962332%2C16.6492578%20Z%20M26.6996397%2C18.6899395%20L26.6996397%2C20.3369983%20C24.5001638%2C20.357889%2023.12283%2C21.0967565%2022.4448084%2C22.5305113%20L22.3847582%2C22.6624519%20L22.3137897%2C22.8224299%20C21.2241511%2C25.1880154%2019.0819959%2C26.322155%2016.0560105%2C26.1940627%20L16.243258%2C26.2001099%20L16.2443498%2C24.5508521%20C18.5633803%2C24.6206707%2020.0357026%2C23.8290269%2020.8190851%2C22.1473337%20L20.8824107%2C22.006597%20L20.9479201%2C21.8603628%20C21.9158205%2C19.7680044%2023.8767333%2C18.7196262%2026.6996397%2C18.6899395%20L26.6996397%2C18.6899395%20Z%20M17.5583579%2C18.3435954%20C18.1149239%2C18.3435954%2018.5661099%2C18.7979562%2018.5661099%2C19.3584387%20C18.5661099%2C19.9189212%2018.1149239%2C20.373282%2017.5583579%2C20.373282%20C17.0016411%2C20.373282%2016.550333%2C19.9187981%2016.550333%2C19.3581638%20C16.550333%2C18.7975295%2017.0016411%2C18.3430456%2017.5583579%2C18.3430456%20L17.5583579%2C18.3435954%20Z%22%20fill%3D%22%23A3D1FF%22%20fill-rule%3D%22nonzero%22%20mask%3D%22url%28%23mask-2%29%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
1065
1006
|
|
|
@@ -1209,57 +1150,109 @@ function handleCommonTimeRender(text, format) {
|
|
|
1209
1150
|
var getItemDefaultWidth = function getItemDefaultWidth(item) {
|
|
1210
1151
|
var _ref;
|
|
1211
1152
|
var defaultWidth = 200;
|
|
1212
|
-
if (Array.isArray(item.key) || Array.isArray(item.dataIndex)) return defaultWidth;
|
|
1213
1153
|
var lowerCaseKey = (_ref = item.key || item.dataIndex) === null || _ref === void 0 ? void 0 : _ref.toLowerCase();
|
|
1214
|
-
if (
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1154
|
+
if (lowerCaseKey) {
|
|
1155
|
+
switch (true) {
|
|
1156
|
+
case (item === null || item === void 0 ? void 0 : item.title) === '操作' || lowerCaseKey === 'operate':
|
|
1157
|
+
defaultWidth = 60;
|
|
1158
|
+
break;
|
|
1159
|
+
case lowerCaseKey.indexOf('number') > -1:
|
|
1160
|
+
case lowerCaseKey.indexOf('quantity') > -1:
|
|
1161
|
+
case lowerCaseKey.indexOf('amount') > -1:
|
|
1162
|
+
defaultWidth = 90;
|
|
1163
|
+
break;
|
|
1164
|
+
case lowerCaseKey.indexOf('no') > -1:
|
|
1165
|
+
defaultWidth = 200;
|
|
1166
|
+
break;
|
|
1167
|
+
case lowerCaseKey.indexOf('code') > -1:
|
|
1168
|
+
defaultWidth = 170;
|
|
1169
|
+
break;
|
|
1170
|
+
case lowerCaseKey.indexOf('time') > -1:
|
|
1171
|
+
defaultWidth = 130;
|
|
1172
|
+
break;
|
|
1173
|
+
case lowerCaseKey.indexOf('status') > -1:
|
|
1174
|
+
defaultWidth = 100;
|
|
1175
|
+
break;
|
|
1176
|
+
case lowerCaseKey.indexOf('user') > -1:
|
|
1177
|
+
defaultWidth = 130;
|
|
1178
|
+
break;
|
|
1179
|
+
}
|
|
1239
1180
|
}
|
|
1240
1181
|
return defaultWidth;
|
|
1241
1182
|
};
|
|
1183
|
+
/**
|
|
1184
|
+
* 查询参数处理
|
|
1185
|
+
* @param params 要应用于查询的参数
|
|
1186
|
+
* @returns 返回处理后的查询参数
|
|
1187
|
+
*/
|
|
1188
|
+
function queryParams(params, flag) {
|
|
1189
|
+
var _loop = function _loop() {
|
|
1190
|
+
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
1191
|
+
var element = params[key];
|
|
1192
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
1193
|
+
var dataParams = key.split('*number*');
|
|
1194
|
+
dataParams.forEach(function (value, index) {
|
|
1195
|
+
params[value] = element[index];
|
|
1196
|
+
});
|
|
1197
|
+
delete params[key];
|
|
1198
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
1199
|
+
var _dataParams = key.split('*address*');
|
|
1200
|
+
_dataParams.forEach(function (value, index) {
|
|
1201
|
+
params[value] = element.PCDCode[index];
|
|
1202
|
+
});
|
|
1203
|
+
delete params[key];
|
|
1204
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
1205
|
+
var _dataParams2 = key.split('*costType*');
|
|
1206
|
+
// eslint-disable-next-line prefer-destructuring
|
|
1207
|
+
params[_dataParams2[0]] = element[1];
|
|
1208
|
+
delete params[key];
|
|
1209
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
1210
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
1211
|
+
_dataParams3.forEach(function (value, index) {
|
|
1212
|
+
if (index === 0) {
|
|
1213
|
+
params[value] = moment__default['default'](element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
1214
|
+
} else {
|
|
1215
|
+
params[value] = moment__default['default'](element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
1216
|
+
}
|
|
1217
|
+
});
|
|
1218
|
+
delete params[key];
|
|
1219
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
1220
|
+
var _dataParams4 = key.split('*');
|
|
1221
|
+
_dataParams4.forEach(function (value, index) {
|
|
1222
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
1223
|
+
});
|
|
1224
|
+
delete params[key];
|
|
1225
|
+
} else if (element && key.indexOf('_likeIn_') >= 0) {
|
|
1226
|
+
var _dataParams5 = key.split('_likeIn_');
|
|
1227
|
+
if (element.indexOf(',') >= 0) {
|
|
1228
|
+
params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
|
|
1229
|
+
params["qp-".concat(_dataParams5[0], "-like")] = null;
|
|
1230
|
+
} else {
|
|
1231
|
+
params["qp-".concat(_dataParams5[0], "-like")] = element;
|
|
1232
|
+
params["qp-".concat(_dataParams5[0], "-in")] = null;
|
|
1233
|
+
}
|
|
1234
|
+
delete params[key];
|
|
1235
|
+
} else if (Array.isArray(element)) {
|
|
1236
|
+
params[key] = element.join(',');
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
};
|
|
1240
|
+
for (var key in params) {
|
|
1241
|
+
_loop();
|
|
1242
|
+
}
|
|
1243
|
+
return flag ? params : qs.stringify(params);
|
|
1244
|
+
}
|
|
1242
1245
|
/**
|
|
1243
1246
|
* 根据用户权限检验对应按钮是够显示 !!!!现在先去掉
|
|
1244
1247
|
* @param code 对应权限值
|
|
1245
1248
|
* @returns boolean
|
|
1246
1249
|
*/
|
|
1247
1250
|
var authFn = function authFn(code) {
|
|
1248
|
-
if (!code) {
|
|
1249
|
-
return true;
|
|
1250
|
-
}
|
|
1251
1251
|
var authButton = localStorage.getItem(ENUM.BROWSER_CACHE.MAIN_AUTH_CODES) ? JSON.parse(localStorage.getItem(ENUM.BROWSER_CACHE.MAIN_AUTH_CODES)) : [];
|
|
1252
1252
|
return authButton.findIndex(function (d) {
|
|
1253
1253
|
return d === code;
|
|
1254
1254
|
}) !== -1;
|
|
1255
1255
|
};
|
|
1256
|
-
// 可以将普通字符串 或者tsx 转换成字符串
|
|
1257
|
-
var renderToString = function renderToString(render) {
|
|
1258
|
-
return render;
|
|
1259
|
-
// return typeof render === 'string'
|
|
1260
|
-
// ? render
|
|
1261
|
-
// : ReactDOMServer.renderToString(render);
|
|
1262
|
-
};
|
|
1263
1256
|
|
|
1264
1257
|
var formatter = function formatter(data, parentAuthority, parentName) {
|
|
1265
1258
|
return data.map(function (item) {
|
|
@@ -1310,49 +1303,52 @@ var handleBssulaColumnsSpecialParams = function handleBssulaColumnsSpecialParams
|
|
|
1310
1303
|
var text = _ref.text;
|
|
1311
1304
|
return handleTooltipHours(text, col.timeRenderHour);
|
|
1312
1305
|
};
|
|
1313
|
-
}
|
|
1314
|
-
|
|
1306
|
+
}
|
|
1307
|
+
// 处理不显示 时分秒的时间
|
|
1308
|
+
if (col.timeRender) {
|
|
1315
1309
|
col.render = function (_ref2) {
|
|
1316
1310
|
var text = _ref2.text;
|
|
1317
1311
|
return handleTooltip(text, col.timeRender);
|
|
1318
1312
|
};
|
|
1319
|
-
}
|
|
1320
|
-
|
|
1313
|
+
}
|
|
1314
|
+
// 处理文字太长
|
|
1315
|
+
if (col.textOverflow) {
|
|
1321
1316
|
col.render = function (_ref3) {
|
|
1322
1317
|
var text = _ref3.text;
|
|
1323
1318
|
return handleTextOverflow(text, col.width);
|
|
1324
1319
|
};
|
|
1325
|
-
}
|
|
1320
|
+
}
|
|
1321
|
+
if (col.images) {
|
|
1326
1322
|
col.render = function (_ref4) {
|
|
1327
1323
|
var text = _ref4.text;
|
|
1328
1324
|
return tableColumnsImage(text);
|
|
1329
1325
|
};
|
|
1330
|
-
}
|
|
1326
|
+
}
|
|
1327
|
+
if (col.double) {
|
|
1331
1328
|
col.render = function (_ref5) {
|
|
1332
1329
|
var record = _ref5.record;
|
|
1333
1330
|
return handleTextDouble(record[col.textOne], record[col.textTwo]);
|
|
1334
1331
|
};
|
|
1335
|
-
}
|
|
1332
|
+
}
|
|
1333
|
+
if (col.lineFeed) {
|
|
1336
1334
|
col.render = function (_ref6) {
|
|
1337
1335
|
var text = _ref6.text;
|
|
1338
1336
|
return handleTextLineFeed(text);
|
|
1339
1337
|
};
|
|
1340
|
-
}
|
|
1341
|
-
|
|
1338
|
+
}
|
|
1339
|
+
// 处理序号
|
|
1340
|
+
if (col.indexNumber) {
|
|
1342
1341
|
col.render = function (_ref7) {
|
|
1343
1342
|
var index = _ref7.index;
|
|
1344
1343
|
return index + 1;
|
|
1345
1344
|
};
|
|
1346
|
-
}
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
});
|
|
1350
|
-
} else if (!col.render) {
|
|
1351
|
-
// 没有值默认显示 - -
|
|
1345
|
+
}
|
|
1346
|
+
// 没有值默认显示 - -
|
|
1347
|
+
if (!col.render) {
|
|
1352
1348
|
// col.render = ({ text }: any) => text || '- -';
|
|
1353
1349
|
col.render = function (_ref8) {
|
|
1354
1350
|
var text = _ref8.text;
|
|
1355
|
-
return text
|
|
1351
|
+
return text || '--';
|
|
1356
1352
|
};
|
|
1357
1353
|
}
|
|
1358
1354
|
};
|
|
@@ -1446,64 +1442,10 @@ var judgeIsEmpty = function judgeIsEmpty(value) {
|
|
|
1446
1442
|
return false;
|
|
1447
1443
|
};
|
|
1448
1444
|
|
|
1449
|
-
var
|
|
1450
|
-
|
|
1451
|
-
return request__default['default'].get(url, _objectSpread2({}, params)).then(handleResponseData);
|
|
1452
|
-
};
|
|
1453
|
-
var post = function post(url, data) {
|
|
1454
|
-
return request__default['default'].post(url, {
|
|
1455
|
-
data: data
|
|
1456
|
-
}).then(handleResponseData);
|
|
1457
|
-
};
|
|
1458
|
-
var patch = function patch(url, data) {
|
|
1459
|
-
return request__default['default'].patch(url, {
|
|
1460
|
-
data: data
|
|
1461
|
-
}).then(handleResponseData);
|
|
1462
|
-
};
|
|
1463
|
-
var put = function put(url, data) {
|
|
1464
|
-
return request__default['default'].put(url, {
|
|
1465
|
-
data: data
|
|
1466
|
-
}).then(handleResponseData);
|
|
1467
|
-
};
|
|
1468
|
-
var deleteS = function deleteS(url, data) {
|
|
1469
|
-
return request__default['default'].delete(url, {
|
|
1470
|
-
data: data
|
|
1471
|
-
}).then(handleResponseData);
|
|
1472
|
-
};
|
|
1473
|
-
var requestUtil = function requestUtil(_ref) {
|
|
1474
|
-
var url = _ref.url,
|
|
1475
|
-
parms = _objectWithoutProperties(_ref, _excluded);
|
|
1476
|
-
return request__default['default'](url, parms).then(handleResponseData);
|
|
1477
|
-
};
|
|
1478
|
-
var handleResponseData = /*#__PURE__*/function () {
|
|
1479
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
1480
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1481
|
-
while (1) switch (_context.prev = _context.next) {
|
|
1482
|
-
case 0:
|
|
1483
|
-
return _context.abrupt("return", Promise.resolve({
|
|
1484
|
-
data: response,
|
|
1485
|
-
status: response.status
|
|
1486
|
-
}));
|
|
1487
|
-
case 1:
|
|
1488
|
-
case "end":
|
|
1489
|
-
return _context.stop();
|
|
1490
|
-
}
|
|
1491
|
-
}, _callee);
|
|
1492
|
-
}));
|
|
1493
|
-
return function handleResponseData(_x) {
|
|
1494
|
-
return _ref2.apply(this, arguments);
|
|
1495
|
-
};
|
|
1496
|
-
}();
|
|
1497
|
-
requestUtil.get = get;
|
|
1498
|
-
requestUtil.post = post;
|
|
1499
|
-
requestUtil.patch = patch;
|
|
1500
|
-
requestUtil.put = put;
|
|
1501
|
-
requestUtil.delete = deleteS;
|
|
1502
|
-
|
|
1503
|
-
var css_248z$2 = ".luckysheet {\n overflow: hidden;\n}\n.luckysheet .luckysheet-work-area.luckysheet-noselected-text {\n display: none;\n}\n.sheet_table_top {\n height: 50px;\n background: #f2f2f2;\n width: 100%;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 0 20px;\n border: 1px solid #d8d8d8;\n}\n.sheet_table_top .menu_item_text {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.sheet_table_footer {\n height: 50px;\n background: #f2f2f2;\n width: 100%;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 0 20px;\n border: 1px solid #d8d8d8;\n}\n.sheet_table_text {\n color: #8f8f8f;\n}\n.sheet_table_dnd_text {\n background: #f2f2f2;\n border: 1px solid #d8d8d8;\n display: inline-block;\n width: 100px;\n height: 30px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n";
|
|
1504
|
-
styleInject(css_248z$2);
|
|
1445
|
+
var css_248z$1 = ".luckysheet {\n overflow: hidden;\n}\n.luckysheet .luckysheet-work-area.luckysheet-noselected-text {\n display: none;\n}\n.sheet_table_top {\n height: 50px;\n background: #f2f2f2;\n width: 100%;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 0 20px;\n border: 1px solid #d8d8d8;\n}\n.sheet_table_top .menu_item_text {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.sheet_table_footer {\n height: 50px;\n background: #f2f2f2;\n width: 100%;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 0 20px;\n border: 1px solid #d8d8d8;\n}\n.sheet_table_text {\n color: #8f8f8f;\n}\n.sheet_table_dnd_text {\n background: #f2f2f2;\n border: 1px solid #d8d8d8;\n display: inline-block;\n width: 100px;\n height: 30px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n";
|
|
1446
|
+
styleInject(css_248z$1);
|
|
1505
1447
|
|
|
1506
|
-
var _excluded
|
|
1448
|
+
var _excluded = ["flag", "checkResults"],
|
|
1507
1449
|
_excluded2 = ["flag", "checkResults"];
|
|
1508
1450
|
// const luckysheet = window.luckysheet;
|
|
1509
1451
|
var itemsTemp = [];
|
|
@@ -1765,7 +1707,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
1765
1707
|
}).map(function (_ref2) {
|
|
1766
1708
|
var flag = _ref2.flag,
|
|
1767
1709
|
checkResults = _ref2.checkResults,
|
|
1768
|
-
item = _objectWithoutProperties(_ref2, _excluded
|
|
1710
|
+
item = _objectWithoutProperties(_ref2, _excluded);
|
|
1769
1711
|
return item;
|
|
1770
1712
|
}),
|
|
1771
1713
|
failData: resultData.filter(function (item) {
|
|
@@ -1811,7 +1753,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
1811
1753
|
brandAuth: 'ctl-withAuth'
|
|
1812
1754
|
};
|
|
1813
1755
|
}
|
|
1814
|
-
|
|
1756
|
+
axios__default['default'].post(validDataUrl, _objectSpread2(_objectSpread2(_objectSpread2({}, otherParams), validDataParams), {}, {
|
|
1815
1757
|
columns: columns,
|
|
1816
1758
|
data: resultData,
|
|
1817
1759
|
checkStockNum: isCheckStockNum
|
|
@@ -2068,10 +2010,10 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2068
2010
|
return DataValidation;
|
|
2069
2011
|
}(React__default['default'].Component);
|
|
2070
2012
|
|
|
2071
|
-
var css_248z$
|
|
2072
|
-
styleInject(css_248z$
|
|
2013
|
+
var css_248z$2 = ".luckysheet {\n overflow: hidden;\n}\n.luckysheet .luckysheet-work-area.luckysheet-noselected-text {\n display: none;\n}\n.sheet_table_top {\n height: 50px;\n background: #f2f2f2;\n width: 100%;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 0 20px;\n border: 1px solid #d8d8d8;\n}\n.sheet_table_top .menu_item_text {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.sheet_table_footer {\n height: 50px;\n background: #f2f2f2;\n width: 100%;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 0 20px;\n border: 1px solid #d8d8d8;\n}\n.sheet_table_text {\n color: #8f8f8f;\n}\n.sheet_table_dnd_text {\n background: #f2f2f2;\n border: 1px solid #d8d8d8;\n display: inline-block;\n width: 100px;\n height: 30px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n";
|
|
2014
|
+
styleInject(css_248z$2);
|
|
2073
2015
|
|
|
2074
|
-
var _excluded$
|
|
2016
|
+
var _excluded$1 = ["flag", "checkResults"],
|
|
2075
2017
|
_excluded2$1 = ["flag", "checkResults"];
|
|
2076
2018
|
// const luckysheet = window.luckysheet;
|
|
2077
2019
|
var itemsTemp$1 = [];
|
|
@@ -2334,7 +2276,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
2334
2276
|
}).map(function (_ref2) {
|
|
2335
2277
|
var flag = _ref2.flag,
|
|
2336
2278
|
checkResults = _ref2.checkResults,
|
|
2337
|
-
item = _objectWithoutProperties(_ref2, _excluded$
|
|
2279
|
+
item = _objectWithoutProperties(_ref2, _excluded$1);
|
|
2338
2280
|
return item;
|
|
2339
2281
|
}),
|
|
2340
2282
|
failData: resultData.filter(function (item) {
|
|
@@ -2371,7 +2313,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
2371
2313
|
var resultData = _this.getData().filter(function (d) {
|
|
2372
2314
|
return ___default['default'].compact(Object.values(d)).length;
|
|
2373
2315
|
});
|
|
2374
|
-
|
|
2316
|
+
axios__default['default'].post(validDataUrl, {
|
|
2375
2317
|
columns: columns,
|
|
2376
2318
|
data: resultData
|
|
2377
2319
|
}).then(function (result) {
|
|
@@ -2644,12 +2586,11 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
2644
2586
|
return DataImport;
|
|
2645
2587
|
}(React__default['default'].Component);
|
|
2646
2588
|
|
|
2647
|
-
var css_248z$
|
|
2648
|
-
styleInject(css_248z$
|
|
2589
|
+
var css_248z$3 = ".query_input_show {\n display: flex;\n}\n.query_input_expand_button {\n position: relative;\n width: 30px;\n color: #ffffff;\n cursor: pointer;\n}\n.query_input_expand_button span {\n position: absolute;\n height: 20px;\n line-height: 14px;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.query_input_wrapper {\n display: flex;\n}\n.query_input_wrapper_left {\n width: 100px;\n}\n.query_input_wrapper_right {\n color: #9e9e9e;\n}\n.query_input_textArea {\n margin-top: 15px;\n}\n";
|
|
2590
|
+
styleInject(css_248z$3);
|
|
2649
2591
|
|
|
2650
2592
|
var QueryMutipleInput = function QueryMutipleInput(_ref) {
|
|
2651
|
-
var onValueChange = _ref.onValueChange
|
|
2652
|
-
_onPressEnter = _ref.onPressEnter;
|
|
2593
|
+
var onValueChange = _ref.onValueChange;
|
|
2653
2594
|
var _useState = React.useState(false),
|
|
2654
2595
|
_useState2 = _slicedToArray(_useState, 2),
|
|
2655
2596
|
isModalVisible = _useState2[0],
|
|
@@ -2712,10 +2653,7 @@ var QueryMutipleInput = function QueryMutipleInput(_ref) {
|
|
|
2712
2653
|
style: {
|
|
2713
2654
|
width: 'calc(100% - 30px)'
|
|
2714
2655
|
},
|
|
2715
|
-
placeholder: "\u8BF7\u8F93\u5165\uFF08\u67E5\u8BE2\u591A\u4E2A\u503C\u8BF7\u7528 ; \u6216 , \u5206\u5272\uFF09"
|
|
2716
|
-
onPressEnter: function onPressEnter() {
|
|
2717
|
-
return _onPressEnter === null || _onPressEnter === void 0 ? void 0 : _onPressEnter();
|
|
2718
|
-
}
|
|
2656
|
+
placeholder: "\u8BF7\u8F93\u5165\uFF08\u67E5\u8BE2\u591A\u4E2A\u503C\u8BF7\u7528 ; \u6216 , \u5206\u5272\uFF09"
|
|
2719
2657
|
}), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
2720
2658
|
style: {
|
|
2721
2659
|
width: '30px',
|
|
@@ -2765,8 +2703,8 @@ function ToCDB(str) {
|
|
|
2765
2703
|
return tmp;
|
|
2766
2704
|
}
|
|
2767
2705
|
|
|
2768
|
-
var css_248z$
|
|
2769
|
-
styleInject(css_248z$
|
|
2706
|
+
var css_248z$4 = ".search_select_show {\n display: flex;\n}\n.search_select_expand_button {\n position: relative;\n width: 30px;\n color: #ffffff;\n cursor: pointer;\n}\n.search_select_expand_button span {\n position: absolute;\n height: 20px;\n line-height: 14px;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.search_select_wrapper {\n position: relative;\n display: flex;\n min-height: 60vh;\n max-height: 60vh;\n overflow: hidden;\n font-size: 14px;\n}\n.search_select_wrapper_click_flag {\n position: absolute;\n z-index: 10;\n}\n.search_select_wrapper_click_flag_arrow {\n transform: rotate(0deg);\n transition: transform 0.5s;\n}\n.search_select_wrapper_click_flag_arrow_1 {\n transform: rotate(-180deg);\n transition: transform 0.5s;\n}\n.search_select_wrapper_left {\n width: 28%;\n overflow-y: hidden;\n transition: all 0.3s;\n margin-left: 20px;\n}\n.search_select_wrapper_left1 {\n width: 0;\n height: 0;\n transition: all 0.3s;\n display: none;\n}\n.search_select_wrapper_right {\n width: 70%;\n margin-left: 1%;\n}\n.search_select_wrapper_right1 {\n width: 100%;\n margin-left: 20px;\n}\n.search_select_wrapper_right,\n.search_select_wrapper_right1 {\n overflow-x: auto;\n}\n.search_select_wrapper .select_list_columns {\n width: 100%;\n height: calc(60vh - 60px);\n overflow-y: auto;\n border: 1px solid #d8d8d8;\n}\n.search_select_wrapper .select_list_columns_tips {\n background: #eee;\n padding: 6px 20px;\n margin-bottom: 10px;\n}\n.search_select_wrapper .select_list_columns_formItems {\n padding: 0 20px;\n}\n.search_select_wrapper .select_list_searchButton {\n display: flex;\n margin: 10px 0px;\n justify-content: flex-end;\n}\n.search_select_wrapper .select_list_button_space {\n margin-right: 10px;\n}\n.search_select_wrapper .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 34px;\n line-height: 32px;\n background-color: #eee;\n margin-bottom: 10px;\n padding: 0 12px;\n}\n.search_select_wrapper .select_list_selectAll {\n position: relative;\n top: -40px;\n left: 20px;\n width: 160px;\n}\n";
|
|
2707
|
+
styleInject(css_248z$4);
|
|
2770
2708
|
|
|
2771
2709
|
var handleSourceName = function handleSourceName(sName) {
|
|
2772
2710
|
return sName;
|
|
@@ -3053,16 +2991,6 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3053
2991
|
}
|
|
3054
2992
|
});
|
|
3055
2993
|
delete params[key];
|
|
3056
|
-
} else if (element && key.indexOf('*multiInput') >= 0) {
|
|
3057
|
-
var name = '',
|
|
3058
|
-
_value = element['value'];
|
|
3059
|
-
if (_value.indexOf(',') >= 0) {
|
|
3060
|
-
name = "qp-".concat(element['name'], "-in");
|
|
3061
|
-
} else {
|
|
3062
|
-
name = "qp-".concat(element['name'], "-like");
|
|
3063
|
-
}
|
|
3064
|
-
params[name] = _value;
|
|
3065
|
-
delete params[key];
|
|
3066
2994
|
} else if (element && key.indexOf('*') >= 0) {
|
|
3067
2995
|
var _dataParams7 = key.split('*');
|
|
3068
2996
|
_dataParams7.forEach(function (value, index) {
|
|
@@ -3097,10 +3025,7 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3097
3025
|
pageSize: pageSize,
|
|
3098
3026
|
currentPage: currentPage
|
|
3099
3027
|
}, otherParams), fixedParam), params);
|
|
3100
|
-
|
|
3101
|
-
queryParams[selectParamsKey] = searchValue;
|
|
3102
|
-
}
|
|
3103
|
-
requestUtil.get("".concat(url, "?").concat(querystring.stringify(queryParams)), {
|
|
3028
|
+
axios__default['default'].get("".concat(url, "?").concat(querystring.stringify(queryParams)), {
|
|
3104
3029
|
headers: _objectSpread2({}, extralHeaders)
|
|
3105
3030
|
}).then(function (result) {
|
|
3106
3031
|
setFetching(false);
|
|
@@ -3427,9 +3352,8 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3427
3352
|
if (heightTxt === '') {
|
|
3428
3353
|
return text;
|
|
3429
3354
|
}
|
|
3430
|
-
var searchString = _.escapeRegExp(heightTxt);
|
|
3431
3355
|
// 前面filterOption 不区分大小写,这里用i
|
|
3432
|
-
var regexp = new RegExp(
|
|
3356
|
+
var regexp = new RegExp(heightTxt, 'gi');
|
|
3433
3357
|
return text.replace(regexp, "<span style=\"color:red\">".concat(heightTxt, "</span>"));
|
|
3434
3358
|
};
|
|
3435
3359
|
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
@@ -3662,10 +3586,9 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3662
3586
|
}
|
|
3663
3587
|
}), menu);
|
|
3664
3588
|
},
|
|
3665
|
-
notFoundContent: fetching ?
|
|
3666
|
-
size: "small"
|
|
3667
|
-
|
|
3668
|
-
})) : ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
3589
|
+
notFoundContent: fetching ? /*#__PURE__*/React__default['default'].createElement(antd.Spin, {
|
|
3590
|
+
size: "small"
|
|
3591
|
+
}) : /*#__PURE__*/React__default['default'].createElement("div", {
|
|
3669
3592
|
style: {
|
|
3670
3593
|
textAlign: 'center'
|
|
3671
3594
|
}
|
|
@@ -3677,7 +3600,7 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3677
3600
|
style: {
|
|
3678
3601
|
fontSize: '50px'
|
|
3679
3602
|
}
|
|
3680
|
-
})), /*#__PURE__*/React__default['default'].createElement("div", null, "\u65E0\u5339\u914D\u7ED3\u679C\uFF0C\u8BF7\u66F4\u6362\u5176\u4ED6\u5185\u5BB9\u518D\u8BD5"))
|
|
3603
|
+
})), /*#__PURE__*/React__default['default'].createElement("div", null, "\u65E0\u5339\u914D\u7ED3\u679C\uFF0C\u8BF7\u66F4\u6362\u5176\u4ED6\u5185\u5BB9\u518D\u8BD5")),
|
|
3681
3604
|
onPopupScroll: SelectScroll,
|
|
3682
3605
|
style: {
|
|
3683
3606
|
width: needModalTable ? 'calc(100% - 30px)' : 'calc(100%)'
|
|
@@ -3705,7 +3628,7 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3705
3628
|
onClick: showModal,
|
|
3706
3629
|
type: "primary"
|
|
3707
3630
|
}, /*#__PURE__*/React__default['default'].createElement(icons.SearchOutlined, null))))), needModalTable && isModalVisible && ( /*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2({
|
|
3708
|
-
width:
|
|
3631
|
+
width: '80%',
|
|
3709
3632
|
title: modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.modalTableTitle,
|
|
3710
3633
|
visible: isModalVisible,
|
|
3711
3634
|
onOk: handleOk,
|
|
@@ -3738,16 +3661,16 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3738
3661
|
className: 'select_list_columns_formItems'
|
|
3739
3662
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Form, {
|
|
3740
3663
|
form: form,
|
|
3741
|
-
layout:
|
|
3742
|
-
key:
|
|
3664
|
+
layout: 'vertical',
|
|
3665
|
+
key: 'modalForm'
|
|
3743
3666
|
}, formItem(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm)))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
3744
3667
|
className: 'select_list_searchButton'
|
|
3745
3668
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
3746
|
-
key:
|
|
3669
|
+
key: 'reset',
|
|
3747
3670
|
className: 'select_list_button_space',
|
|
3748
3671
|
onClick: onResetTable
|
|
3749
3672
|
}, "\u91CD\u7F6E"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
3750
|
-
key:
|
|
3673
|
+
key: 'search',
|
|
3751
3674
|
type: "primary",
|
|
3752
3675
|
onClick: onSearchTable
|
|
3753
3676
|
}, "\u67E5\u8BE2"))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -3760,14 +3683,14 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3760
3683
|
}
|
|
3761
3684
|
}, "\u641C\u7D22\u7ED3\u679C\u5171", /*#__PURE__*/React__default['default'].createElement("span", {
|
|
3762
3685
|
style: themeColor
|
|
3763
|
-
}, (tablePagination === null || tablePagination === void 0 ? void 0 : tablePagination.total) || 0), "\u9879", selectMode ?
|
|
3686
|
+
}, (tablePagination === null || tablePagination === void 0 ? void 0 : tablePagination.total) || 0), "\u9879", selectMode ? /*#__PURE__*/React__default['default'].createElement("span", null, "\uFF0C \u672C\u6B21\u5DF2\u9009", /*#__PURE__*/React__default['default'].createElement("span", {
|
|
3764
3687
|
style: themeColor
|
|
3765
|
-
}, (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0), "\u9879")
|
|
3688
|
+
}, (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0), "\u9879") : ''), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
3766
3689
|
style: {
|
|
3767
3690
|
color: 'rgba(127, 127, 127, 0.6470588235294118)'
|
|
3768
3691
|
}
|
|
3769
3692
|
}, selectMode ? '勾选后点击确定按钮完成选择' : '双击数据行或点击单选图标完成选择')), /*#__PURE__*/React__default['default'].createElement(antd.Table, {
|
|
3770
|
-
size:
|
|
3693
|
+
size: 'small',
|
|
3771
3694
|
rowSelection: rowSelection,
|
|
3772
3695
|
columns: modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns,
|
|
3773
3696
|
dataSource: tableData,
|
|
@@ -3785,18 +3708,18 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3785
3708
|
}
|
|
3786
3709
|
};
|
|
3787
3710
|
}
|
|
3788
|
-
}), selectMode ?
|
|
3711
|
+
}), selectMode ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
3789
3712
|
className: 'select_list_selectAll'
|
|
3790
3713
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
3791
3714
|
indeterminate: indeterminate,
|
|
3792
3715
|
checked: checkedAll,
|
|
3793
3716
|
onChange: onChangeCheckAll,
|
|
3794
3717
|
disabled: (selectProps === null || selectProps === void 0 ? void 0 : selectProps.disabled) || (props === null || props === void 0 ? void 0 : props.disabled)
|
|
3795
|
-
}),
|
|
3718
|
+
}), " \u5168\u9009\u6240\u6709\u9875\u9762") : ''))))));
|
|
3796
3719
|
});
|
|
3797
3720
|
|
|
3798
|
-
var css_248z$
|
|
3799
|
-
styleInject(css_248z$
|
|
3721
|
+
var css_248z$5 = ".add_select_show {\n display: flex;\n}\n.add_select_expand_button {\n position: relative;\n width: 30px;\n color: #ffffff;\n cursor: pointer;\n}\n.add_select_expand_button span {\n position: absolute;\n height: 20px;\n line-height: 14px;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.add_select_header {\n border-bottom: 1px solid #D9D9D9;\n height: 24px;\n height: 40px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n line-height: 40px;\n margin-bottom: 10px;\n padding-left: 10px;\n}\n.add_select_header > span {\n margin-left: 20px;\n font-weight: 400;\n font-size: 12px;\n color: #666666;\n letter-spacing: 0;\n line-height: 40px;\n}\n.add_select_header > span > span {\n color: #ff0000;\n}\n.add_select_header_close span {\n position: absolute;\n color: black !important;\n right: 10px;\n top: 10px;\n}\n.add_select_quick_header {\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.add_select_quick_header_title {\n display: flex;\n justify-content: space-between;\n}\n.add_select_quick_header > span {\n font-weight: 400;\n font-size: 12px;\n color: #666666;\n letter-spacing: 0;\n line-height: 20px;\n}\n.add_select_quick_header > span > span {\n color: #ff0000;\n}\n.add_select_quick_header_close span {\n position: absolute;\n color: black !important;\n right: 10px;\n top: 10px;\n}\n.add_select_wrapper {\n position: relative;\n display: flex;\n max-height: 60vh;\n overflow: hidden;\n font-size: 14px;\n margin: 5px 10px;\n}\n.add_select_wrapper .ant-table-pagination.ant-pagination {\n margin: 5px;\n padding-right: 5px;\n}\n.add_select_wrapper .ant-checkbox-wrapper {\n justify-content: center;\n}\n.add_select_wrapper .ant-form-item-label {\n padding: 0PX;\n line-height: 23px !important;\n}\n.add_select_wrapper .ant-form-item-label > label {\n font-size: 12px;\n}\n.add_select_wrapper .ant-table-thead th {\n height: 20px !important;\n padding: 0px 8px !important;\n font-size: 12px !important;\n font-weight: 600 !important;\n line-height: 20px !important;\n}\n.add_select_wrapper .ant-modal-body {\n padding: 10px;\n}\n.add_select_wrapper .ant-table-wrapper {\n padding: 0px !important;\n}\n.add_select_wrapper .row-class {\n height: 24px;\n}\n.add_select_wrapper .row-class td {\n font-size: 12px !important;\n height: 24px !important;\n padding: 0px 8px !important;\n line-height: 20px !important;\n}\n.add_select_wrapper .ant-table-body {\n height: 240px;\n overflow-y: auto !important;\n}\n.add_select_wrapper .ant-row.ant-form-item {\n margin-bottom: 10px;\n}\n.add_select_wrapper_click_flag {\n position: absolute;\n z-index: 10;\n}\n.add_select_wrapper_click_flag_arrow {\n transform: rotate(0deg);\n transition: transform 0.5s;\n}\n.add_select_wrapper_click_flag_arrow_1 {\n transform: rotate(-180deg);\n transition: transform 0.5s;\n}\n.add_select_wrapper_left {\n flex-basis: 298px;\n width: 298px;\n overflow-y: hidden;\n transition: all 0.3s;\n margin-right: 10px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n}\n.add_select_wrapper_left1 {\n width: 0;\n height: 0;\n transition: all 0.3s;\n display: none;\n}\n.add_select_wrapper_right {\n width: 872px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n}\n.add_select_wrapper_right1 {\n width: 100%;\n margin-left: 10px;\n}\n.add_select_wrapper_right,\n.add_select_wrapper_right1 {\n overflow-x: auto;\n}\n.add_select_wrapper .select_list_columns {\n height: 272px;\n overflow-y: auto;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper .select_list_columns_tips {\n background: #eee;\n padding: 6px 20px;\n margin-bottom: 10px;\n}\n.add_select_wrapper .select_list_columns_formItems {\n padding: 7px 10px;\n}\n.add_select_wrapper .select_list_searchButton {\n display: flex;\n margin: 10px;\n justify-content: flex-end;\n}\n.add_select_wrapper .select_list_button_space {\n margin-right: 10px;\n}\n.add_select_wrapper .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 24px;\n font-size: 12px;\n line-height: 24px;\n background: #F7F8FB;\n padding: 0 5px;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper .select_list_selectAll {\n position: relative;\n top: -40px;\n left: 20px;\n width: 160px;\n}\n.add_select_wrapper_select {\n margin-top: 4px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n margin: 5px 10px;\n}\n.add_select_wrapper_select .ant-table-pagination.ant-pagination {\n margin: 9px;\n padding-right: 5px;\n}\n.add_select_wrapper_select .ant-modal-body {\n padding: 10px;\n}\n.add_select_wrapper_select .ant-table-wrapper {\n padding: 0px !important;\n}\n.add_select_wrapper_select .ant-table-thead th {\n height: 23px !important;\n padding: 0px 8px !important;\n font-size: 12px !important;\n font-weight: 600 !important;\n line-height: 23px !important;\n}\n.add_select_wrapper_select .ant-modal-close-x {\n height: 30px;\n}\n.add_select_wrapper_select .row-class {\n height: 30px;\n}\n.add_select_wrapper_select .row-class td {\n font-size: 12px !important;\n height: 30px !important;\n padding: 4px 8px !important;\n}\n.add_select_wrapper_select .ant-table-body {\n height: 200px;\n overflow-y: auto !important;\n}\n.add_select_wrapper_select .ant-row.ant-form-item {\n margin-bottom: 10px;\n}\n.add_select_wrapper_select .ant-input-number-input,\n.add_select_wrapper_select .ant-input {\n height: auto;\n height: 22px;\n padding: 0px 10px;\n font-size: 12px;\n}\n.add_select_wrapper_select .ant-select-selection-search-input {\n height: auto;\n height: 22px !important;\n padding: 0px 10px;\n font-size: 12px;\n}\n.add_select_wrapper_select .ant-select .ant-select-arrow {\n top: 13px;\n}\n.add_select_wrapper_select .ant-select-selector {\n position: relative;\n top: 1px;\n height: 23px !important;\n line-height: 23px !important;\n}\n.add_select_wrapper_select .ant-select-selector .ant-select-selection-item,\n.add_select_wrapper_select .ant-select-selector ant-select-selection-search {\n height: 23px !important;\n line-height: 23px !important;\n font-size: 12px;\n}\n.add_select_wrapper_select .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 24px;\n font-size: 12px;\n line-height: 24px;\n background: #F7F8FB;\n padding: 0 3px;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper_select_quick {\n margin: 0;\n}\n.react-resizable {\n position: relative;\n background-clip: padding-box;\n}\n.react-resizable-handle {\n position: absolute;\n width: 10px;\n height: 100%;\n bottom: 0;\n right: -5px;\n cursor: col-resize;\n z-index: 1;\n}\n";
|
|
3722
|
+
styleInject(css_248z$5);
|
|
3800
3723
|
|
|
3801
3724
|
var shezhi = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2234px%22%20height%3D%2234px%22%20viewBox%3D%220%200%2034%2034%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%9F%A9%E5%BD%A2%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E5%88%97%E8%A1%A8%E5%8A%9F%E8%83%BD%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E6%98%9F%E6%BE%9C-%E6%90%9C%E7%B4%A2-%E6%90%9C%E7%B4%A2%E5%8A%9F%E8%83%BD%22%20transform%3D%22translate%28-1865.000000%2C%20-297.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E6%90%9C%E7%B4%A2%E7%BB%84%E4%BB%B6-%E6%A0%B7%E5%BC%8F%E4%B8%80%22%20transform%3D%22translate%28230.000000%2C%20284.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%A1%AE%E5%AE%9A%E5%A4%87%E4%BB%BD-2%22%20transform%3D%22translate%281636.000000%2C%2014.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M4.55801813%2C-4.10857923e-16%20L27.4419819%2C1.84149388e-16%20C29.0269041%2C-1.06996098e-16%2029.6016352%2C0.165023309%2030.181059%2C0.474902584%20C30.7604829%2C0.78478186%2031.2152181%2C1.2395171%2031.5250974%2C1.81894097%20C31.8349767%2C2.39836484%2032%2C2.97309593%2032%2C4.55801813%20L32%2C27.4419819%20C32%2C29.0269041%2031.8349767%2C29.6016352%2031.5250974%2C30.181059%20C31.2152181%2C30.7604829%2030.7604829%2C31.2152181%2030.181059%2C31.5250974%20C29.6016352%2C31.8349767%2029.0269041%2C32%2027.4419819%2C32%20L4.55801813%2C32%20C2.97309593%2C32%202.39836484%2C31.8349767%201.81894097%2C31.5250974%20C1.2395171%2C31.2152181%200.78478186%2C30.7604829%200.474902584%2C30.181059%20C0.165023309%2C29.6016352%202.03054919e-16%2C29.0269041%20-3.49474794e-16%2C27.4419819%20L1.22766259e-16%2C4.55801813%20C-7.13307317e-17%2C2.97309593%200.165023309%2C2.39836484%200.474902584%2C1.81894097%20C0.78478186%2C1.2395171%201.2395171%2C0.78478186%201.81894097%2C0.474902584%20C2.39836484%2C0.165023309%202.97309593%2C2.38720285e-16%204.55801813%2C-4.10857923e-16%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20stroke%3D%22%23D9D9D9%22%20stroke-width%3D%220.888888889%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22scanning%22%20transform%3D%22translate%288.000000%2C%208.000000%29%22%20fill%3D%22%23000000%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M6.7386444%2C0%20L9.31914658%2C0.00400859106%20C10.1203579%2C0.00538861113%2010.7694605%2C0.676782175%2010.7705276%2C1.50523181%20L10.7714968%2C1.94016563%20C11.2713795%2C2.15465212%2011.7449087%2C2.42965745%2012.1821713%2C2.75942463%20L12.5276921%2C2.55398355%20C13.2221154%2C2.14077391%2014.108963%2C2.38638205%2014.5106808%2C3.10316266%20L15.8040818%2C5.41212013%20C16.1892138%2C6.09972811%2015.990279%2C6.97849852%2015.3500104%2C7.41792671%20L15.2710204%2C7.46803431%20L14.9240458%2C7.67497861%20C14.9836517%2C8.24420078%2014.9763827%2C8.82244228%2014.8983619%2C9.39717628%20L15.1435702%2C9.54399151%20C15.8102761%2C9.94190072%2016.0614337%2C10.8082131%2015.716369%2C11.5197335%20L15.6761471%2C11.5974003%20L14.4646437%2C13.7670587%20C14.079817%2C14.4564299%2013.2419875%2C14.7161258%2012.5538606%2C14.3593303%20L12.4782628%2C14.3172399%20L12.1434032%2C14.1168096%20C11.7223166%2C14.4300773%2011.2678576%2C14.692352%2010.7889425%2C14.8984879%20L10.7889425%2C15.4947682%20C10.7899403%2C16.2891527%2010.1930007%2C16.9472128%209.42624347%2C16.9969935%20L9.33368462%2C17%20L6.75318244%2C16.9959914%20C5.95216%2C16.9946121%205.30313532%2C16.3235232%205.30180138%2C15.4952693%20L5.30034758%2C14.7762254%20C4.90043094%2C14.5820591%204.5195493%2C14.3484795%204.16298822%2C14.0787278%20L3.54463691%2C14.4465175%20C2.85008695%2C14.8596428%201.96320036%2C14.6137998%201.56164819%2C13.8968373%20L0.268247179%2C11.5883809%20C-0.117195104%2C10.9006602%200.0817705641%2C10.0215335%200.722318635%2C9.58207327%20L0.80130867%2C9.53196569%20L1.43032121%2C9.15766204%20C1.38186108%2C8.68163998%201.37943806%2C8.20010611%201.42595979%2C7.71957437%20L0.727649258%2C7.30217819%20C0.0607645902%2C6.90443662%20-0.19061709%2C6.03808438%200.154365869%2C5.32643616%20L0.195072383%2C5.2487694%20L1.40657575%2C3.07911102%20C1.7914024%2C2.38973985%202.62923197%2C2.13004387%203.31735886%2C2.48683938%20L3.39247208%2C2.52892975%20L4.00113138%2C2.89220974%20C4.39780188%2C2.57239271%204.82771303%2C2.29929047%205.28290193%2C2.0779615%20L5.28290193%2C1.50573288%20C5.28164777%2C0.711155235%205.87865691%2C0.0527989874%206.64560094%2C0.00300645504%20L6.73815978%2C0%20L6.7386444%2C0%20Z%20M6.73670598%2C1.50322752%20L6.73815978%2C3.03150881%20L5.90270707%2C3.43788133%20C5.54507128%2C3.61175466%205.20730414%2C3.8262151%204.89619006%2C4.0772541%20L4.12373551%2C4.70059245%20L2.70239975%2C3.85176997%20L2.66605465%2C3.83072478%20L1.45455128%2C6.00038316%20L2.96650749%2C6.90282076%20L2.87249482%2C7.86939606%20C2.83614972%2C8.24470187%202.83760352%2C8.6235152%202.87588705%2C8.99882099%20L2.97571491%2C9.97191026%20L1.52675689%2C10.8347629%20L2.81967328%2C13.1432193%20L4.2584547%2C12.2878828%20L5.02170182%2C12.8656232%20C5.3027003%2C13.0784515%205.60293338%2C13.2627017%205.9182143%2C13.4158045%20L6.75269782%2C13.8211749%20L6.75560543%2C15.4927639%20L9.33562302%2C15.4967725%20L9.33416922%2C13.8958352%20L10.2306817%2C13.5100068%20C10.6067559%2C13.348282%2010.9636539%2C13.1424989%2011.2943817%2C12.8966899%20L12.0571442%2C12.3299732%20L13.2056494%2C13.0154449%20L14.4161836%2C10.8452855%20L13.3229229%2C10.1918826%20L13.4586113%2C9.18922982%20C13.5191865%2C8.74076695%2013.5259709%2C8.28679224%2013.4789646%2C7.83632505%20L13.3771983%2C6.86273469%20L14.5460567%2C6.16523712%20L13.2526557%2C3.85678072%20L12.0896125%2C4.54976861%20L11.3258808%2C3.97403247%20C10.9812567%2C3.71415335%2010.6081041%2C3.4973506%2010.2142053%2C3.32814572%20L9.31963118%2C2.94432162%20L9.31672357%2C1.50723611%20L6.73670598%2C1.50322752%20L6.73670598%2C1.50322752%20Z%20M9.63026065%2C5.81849263%20C11.020555%2C6.64989539%2011.4971522%2C8.48836517%2010.6954144%2C9.92731453%20C10.31057%2C10.6180868%209.67584239%2C11.1222493%208.93115445%2C11.3286616%20C8.18646651%2C11.5350739%207.39296008%2C11.4267887%206.72556016%2C11.0276771%20C5.33544167%2C10.1961028%204.85907177%2C8.35767345%205.66089098%2C6.91885517%20C6.04573388%2C6.22821897%206.68037324%2C5.72415423%207.42494422%2C5.51774917%20C8.16951519%2C5.3113441%208.9629043%2C5.41954018%209.63026065%2C5.81849263%20L9.63026065%2C5.81849263%20Z%20M6.91988529%2C7.6694668%20C6.5185962%2C8.38978735%206.75708884%2C9.31005529%207.45294678%2C9.72638311%20C7.78629255%2C9.92588707%208.18270902%2C9.98005276%208.55473096%2C9.87692908%20C8.92675291%2C9.7738054%209.24380592%2C9.5218675%209.4359355%2C9.17670291%20C9.82059563%2C8.48612828%209.61887592%2C7.60527314%208.97556421%2C7.16638665%20L8.90287401%2C7.11978659%20L8.82776082%2C7.07819729%20C8.14078385%2C6.72100469%207.30360294%2C6.98045534%206.91988529%2C7.6694668%20L6.91988529%2C7.6694668%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
3802
3725
|
|
|
@@ -3812,10 +3735,10 @@ var fixedRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
3812
3735
|
|
|
3813
3736
|
var fixedRightActive = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2218px%22%20height%3D%2218px%22%20viewBox%3D%220%200%2018%2018%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%BC%96%E7%BB%84%209%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E6%98%9F%E6%BE%9C-%E4%B8%AA%E6%80%A7%E5%8C%96%E8%AE%BE%E7%BD%AE%26amp%3B%E9%94%81%E5%AE%9A%E5%88%97%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%94%BB%E6%9D%BF%22%20transform%3D%22translate%28-89.000000%2C%20-43.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-9%22%20transform%3D%22translate%2889.000000%2C%2043.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20stroke%3D%22%23979797%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20x%3D%220.5%22%20y%3D%220.5%22%20width%3D%2217%22%20height%3D%2217%22%3E%3C%2Frect%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M9.49980555%2C4.20269836%20L15%2C9.65415997%20L14.1747569%2C10.4721491%20L10.0757645%2C6.40841633%20L10.0757645%2C15%20L8.90867951%2C15%20L8.90906842%2C6.4246065%20L4.82524306%2C10.4721491%20L4%2C9.65493094%20L9.49980555%2C4.20269836%20Z%20M14.9824996%2C3%20L14.9824996%2C4.15644073%20L4.09333569%2C4.15644073%20L4.09333569%2C3%20L14.9824996%2C3%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%E7%BB%93%E5%90%88%22%20fill%3D%22%23005CFF%22%20fill-rule%3D%22nonzero%22%20transform%3D%22translate%289.500000%2C%209.000000%29%20rotate%28-180.000000%29%20translate%28-9.500000%2C%20-9.000000%29%20%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
3814
3737
|
|
|
3815
|
-
var css_248z$
|
|
3816
|
-
styleInject(css_248z$
|
|
3738
|
+
var css_248z$6 = ".sort_table_wrapper .sort_table {\n display: flex;\n}\n.sort_table_wrapper .sort_table .sort_table_column_wrapper {\n width: 560px;\n margin-right: 10px;\n}\n.sort_table_wrapper .sort_table .sort_table_content_wrapper {\n width: 210px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count,\n.sort_table_wrapper .sort_table .sort_table_content_count {\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count span,\n.sort_table_wrapper .sort_table .sort_table_content_count span {\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column {\n margin-top: 10px;\n width: 560px;\n height: 430px;\n overflow: auto;\n padding: 10px;\n background: #ffffff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all_empty {\n width: 538px;\n line-height: 360px;\n text-align: center;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column_special {\n margin-top: 40px;\n width: 100px;\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #848484;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper {\n width: 144px;\n margin-top: 16px;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper + .ant-checkbox-wrapper {\n margin-left: 0px;\n}\n.sort_table_wrapper .sort_table .sort_table_content {\n margin-top: 10px;\n padding-top: 10px;\n padding-bottom: 10px;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_content .ant-table-wrapper {\n padding: 0px !important;\n}\n.sort_table_wrapper .sort_table .sort_table_content .sort_table_title {\n height: 32px;\n line-height: 32px;\n padding-left: 10px;\n color: gray;\n}\n.sort_table_wrapper div.ant-modal-header {\n width: 820px;\n height: 64px;\n background: #ffffff;\n padding: 20px;\n border: 0px;\n}\n.sort_table_wrapper div.ant-modal-header div.ant-modal-title {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n line-height: 24px;\n}\n.sort_table_wrapper .ant-modal-body {\n padding: 0 20px !important;\n}\n.sort_table_wrapper .ant-modal-close-x {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-input-affix-wrapper {\n padding: 0px;\n padding-right: 10px;\n}\n.sort_table_wrapper input {\n height: 32px;\n padding: 6px 4px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-input-prefix {\n width: 24px;\n height: 24px;\n margin: 4px;\n display: flex;\n justify-content: center;\n}\n.sort_table_wrapper .ant-modal-footer {\n height: 70px;\n border: 0;\n padding: 20px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn {\n width: 80px;\n height: 34px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn span {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 14px;\n letter-spacing: 0;\n text-align: center;\n line-height: 20px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn:first-child {\n margin-right: 524px;\n}\n.sort_table_wrapper .ant-table-wrapper::-webkit-scrollbar {\n display: none;\n}\n.sort_table_wrapper .ant-table-wrapper {\n margin-top: 10px;\n height: 364px;\n overflow: scroll;\n padding-bottom: 50px;\n}\n.sort_table_wrapper .ant-table-wrapper tr {\n height: 36px;\n}\n.sort_table_wrapper .ant-table-wrapper tr td {\n width: 24px !important;\n height: 36px !important;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:first-child {\n padding-left: 10px !important;\n padding-right: 0px !important;\n width: 115px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td img {\n cursor: pointer;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:not(:first-child) {\n padding-left: 0px !important;\n padding-right: 0px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child {\n padding-left: 0px !important;\n padding-right: 3px !important;\n width: 34px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child img {\n position: relative;\n top: 1px;\n}\n.global_tab_nav_style {\n top: 2px !important;\n}\n.row-dragging {\n background: #fafafa;\n border: 1px solid #ccc;\n z-index: 10000;\n}\n.row-dragging td {\n padding: 7px 16px;\n display: none;\n}\n.row-dragging td:first-child {\n display: inline-block;\n}\n.row-dragging .drag-visible {\n visibility: visible;\n}\n";
|
|
3739
|
+
styleInject(css_248z$6);
|
|
3817
3740
|
|
|
3818
|
-
var _excluded$
|
|
3741
|
+
var _excluded$2 = ["className", "style"];
|
|
3819
3742
|
var Search = antd.Input.Search;
|
|
3820
3743
|
var DragHandle = reactSortableHoc.SortableHandle(function () {
|
|
3821
3744
|
return /*#__PURE__*/React__default['default'].createElement("img", {
|
|
@@ -3860,7 +3783,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
3860
3783
|
fixed: item.fixed
|
|
3861
3784
|
};
|
|
3862
3785
|
});
|
|
3863
|
-
|
|
3786
|
+
axios__default['default']({
|
|
3864
3787
|
url: handleRequestUrl('/user', '/appConfig/saveUserOrder', appRequestConfig),
|
|
3865
3788
|
method: 'POST',
|
|
3866
3789
|
data: {
|
|
@@ -4168,7 +4091,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
4168
4091
|
_this.DraggableBodyRow = function (_ref2) {
|
|
4169
4092
|
var className = _ref2.className,
|
|
4170
4093
|
style = _ref2.style,
|
|
4171
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
4094
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$2);
|
|
4172
4095
|
var sortDataSource = _this.state.sortDataSource;
|
|
4173
4096
|
// function findIndex base on Table rowKey props and should always be a right array index
|
|
4174
4097
|
var index = sortDataSource.findIndex(function (x) {
|
|
@@ -4454,33 +4377,33 @@ var noEmptyArray = function noEmptyArray(arr) {
|
|
|
4454
4377
|
var getItemDefaultWidth$1 = function getItemDefaultWidth(item) {
|
|
4455
4378
|
var _ref;
|
|
4456
4379
|
var defaultWidth = 200;
|
|
4457
|
-
if (Array.isArray(item.key) || Array.isArray(item.dataIndex)) return defaultWidth;
|
|
4458
4380
|
var lowerCaseKey = (_ref = item.key || item.dataIndex) === null || _ref === void 0 ? void 0 : _ref.toLowerCase();
|
|
4459
|
-
if (
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4381
|
+
if (lowerCaseKey) {
|
|
4382
|
+
switch (true) {
|
|
4383
|
+
case (item === null || item === void 0 ? void 0 : item.title) === '操作' || lowerCaseKey === 'operate':
|
|
4384
|
+
defaultWidth = 60;
|
|
4385
|
+
break;
|
|
4386
|
+
case lowerCaseKey.indexOf('number') > -1:
|
|
4387
|
+
case lowerCaseKey.indexOf('quantity') > -1:
|
|
4388
|
+
case lowerCaseKey.indexOf('amount') > -1:
|
|
4389
|
+
defaultWidth = 90;
|
|
4390
|
+
break;
|
|
4391
|
+
case lowerCaseKey.indexOf('no') > -1:
|
|
4392
|
+
defaultWidth = 200;
|
|
4393
|
+
break;
|
|
4394
|
+
case lowerCaseKey.indexOf('code') > -1:
|
|
4395
|
+
defaultWidth = 170;
|
|
4396
|
+
break;
|
|
4397
|
+
case lowerCaseKey.indexOf('time') > -1:
|
|
4398
|
+
defaultWidth = 130;
|
|
4399
|
+
break;
|
|
4400
|
+
case lowerCaseKey.indexOf('status') > -1:
|
|
4401
|
+
defaultWidth = 100;
|
|
4402
|
+
break;
|
|
4403
|
+
case lowerCaseKey.indexOf('user') > -1:
|
|
4404
|
+
defaultWidth = 130;
|
|
4405
|
+
break;
|
|
4406
|
+
}
|
|
4484
4407
|
}
|
|
4485
4408
|
return defaultWidth;
|
|
4486
4409
|
};
|
|
@@ -4507,7 +4430,7 @@ var getSelectDataList = function getSelectDataList(record, item, selectKey) {
|
|
|
4507
4430
|
};
|
|
4508
4431
|
var loadSelectSource = function loadSelectSource(url, params) {
|
|
4509
4432
|
return new Promise(function (resolve, reject) {
|
|
4510
|
-
|
|
4433
|
+
axios__default['default'].get("".concat(url, "?").concat(querystring.stringify(params))).then(function (result) {
|
|
4511
4434
|
result = result.data;
|
|
4512
4435
|
if (judgeIsRequestError(result)) {
|
|
4513
4436
|
antd.message.error(result.msg);
|
|
@@ -4572,11 +4495,10 @@ var formatFormSourceList = function formatFormSourceList(x, loadList, tableSearc
|
|
|
4572
4495
|
});
|
|
4573
4496
|
};
|
|
4574
4497
|
|
|
4575
|
-
var _excluded$
|
|
4576
|
-
_excluded2$2 = ["name", "label", "field", "type", "filterFormItem", "initialSource"];
|
|
4498
|
+
var _excluded$3 = ["onResize", "width"];
|
|
4577
4499
|
var checkSpuMatchCode = function checkSpuMatchCode(data) {
|
|
4578
4500
|
return new Promise(function (resolve, reject) {
|
|
4579
|
-
|
|
4501
|
+
axios__default['default'].post("/stock/rwFrontRecordSkcDetail/checkSpuMatchCode", data).then(function (result) {
|
|
4580
4502
|
result = result.data;
|
|
4581
4503
|
if (judgeIsRequestError(result)) {
|
|
4582
4504
|
antd.message.error(result.msg);
|
|
@@ -4592,7 +4514,7 @@ var checkSpuMatchCode = function checkSpuMatchCode(data) {
|
|
|
4592
4514
|
var ResizeableTitle = function ResizeableTitle(props) {
|
|
4593
4515
|
var onResize = props.onResize,
|
|
4594
4516
|
width = props.width,
|
|
4595
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
4517
|
+
restProps = _objectWithoutProperties(props, _excluded$3);
|
|
4596
4518
|
if (!width) {
|
|
4597
4519
|
return /*#__PURE__*/React__default['default'].createElement("th", _objectSpread2({}, restProps));
|
|
4598
4520
|
}
|
|
@@ -4627,7 +4549,6 @@ var AddSelect = function AddSelect(props) {
|
|
|
4627
4549
|
needModalTable = _props$needModalTable === void 0 ? true : _props$needModalTable,
|
|
4628
4550
|
_props$getPopupContai = props.getPopupContainer,
|
|
4629
4551
|
onSaveCallback = props.onSaveCallback,
|
|
4630
|
-
onCancelCallback = props.onCancelCallback,
|
|
4631
4552
|
_props$buttonText = props.buttonText,
|
|
4632
4553
|
buttonText = _props$buttonText === void 0 ? '添加' : _props$buttonText,
|
|
4633
4554
|
_props$buttonProps = props.buttonProps,
|
|
@@ -4638,8 +4559,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
4638
4559
|
_props$businessType = props.businessType,
|
|
4639
4560
|
businessType = _props$businessType === void 0 ? 'sku' : _props$businessType,
|
|
4640
4561
|
_props$isAllowRepeate = props.isAllowRepeatedSelect,
|
|
4641
|
-
isAllowRepeatedSelect = _props$isAllowRepeate === void 0 ? false : _props$isAllowRepeate
|
|
4642
|
-
clearTitle = props.clearTitle;
|
|
4562
|
+
isAllowRepeatedSelect = _props$isAllowRepeate === void 0 ? false : _props$isAllowRepeate;
|
|
4643
4563
|
var _ref = requestConfig || {},
|
|
4644
4564
|
url = _ref.url,
|
|
4645
4565
|
otherParams = _ref.otherParams,
|
|
@@ -4792,7 +4712,6 @@ var AddSelect = function AddSelect(props) {
|
|
|
4792
4712
|
setShowToChooseColumns = _useState46[1];
|
|
4793
4713
|
var codeToChoose = tableCodeList[0] || initTableCode[businessType][0];
|
|
4794
4714
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
4795
|
-
// FIXME: 特殊业务逻辑
|
|
4796
4715
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
4797
4716
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
4798
4717
|
var result;
|
|
@@ -4874,7 +4793,6 @@ var AddSelect = function AddSelect(props) {
|
|
|
4874
4793
|
}();
|
|
4875
4794
|
var setBusinessDefaultValue = function setBusinessDefaultValue(list, recordList) {
|
|
4876
4795
|
var result = list;
|
|
4877
|
-
// FIXME: 特殊业务逻辑
|
|
4878
4796
|
if (businessType == 'spu' && ((recordList === null || recordList === void 0 ? void 0 : recordList.some(function (i) {
|
|
4879
4797
|
var _i$colorValues;
|
|
4880
4798
|
return (i === null || i === void 0 ? void 0 : (_i$colorValues = i.colorValues) === null || _i$colorValues === void 0 ? void 0 : _i$colorValues.length) == 1;
|
|
@@ -4913,7 +4831,6 @@ var AddSelect = function AddSelect(props) {
|
|
|
4913
4831
|
var _record$packingUnitLi, _record$packingUnitLi2;
|
|
4914
4832
|
// let
|
|
4915
4833
|
if (record.needFocus === true && currentIndex === 0) ;
|
|
4916
|
-
// FIXME: 特殊业务逻辑
|
|
4917
4834
|
var precisionObj = businessType == 'skc' ? {
|
|
4918
4835
|
precision: 0
|
|
4919
4836
|
} : {};
|
|
@@ -5186,16 +5103,6 @@ var AddSelect = function AddSelect(props) {
|
|
|
5186
5103
|
}
|
|
5187
5104
|
});
|
|
5188
5105
|
delete params[key];
|
|
5189
|
-
} else if (element && key.indexOf('*multiInput') >= 0) {
|
|
5190
|
-
var name = '',
|
|
5191
|
-
_value = element['value'];
|
|
5192
|
-
if (_value.indexOf(',') >= 0) {
|
|
5193
|
-
name = "qp-".concat(element['name'], "-in");
|
|
5194
|
-
} else {
|
|
5195
|
-
name = "qp-".concat(element['name'], "-like");
|
|
5196
|
-
}
|
|
5197
|
-
params[name] = _value;
|
|
5198
|
-
delete params[key];
|
|
5199
5106
|
} else if (element && key.indexOf('*') >= 0) {
|
|
5200
5107
|
var _dataParams7 = key.split('*');
|
|
5201
5108
|
_dataParams7.forEach(function (value, index) {
|
|
@@ -5230,18 +5137,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
5230
5137
|
pageSize: pageSize,
|
|
5231
5138
|
currentPage: currentPage
|
|
5232
5139
|
}, otherParams), fixedParam), params);
|
|
5233
|
-
|
|
5234
|
-
if (!queryParams.unConvert) {
|
|
5235
|
-
Object.keys(queryParams).forEach(function (key) {
|
|
5236
|
-
if (String(queryParams[key]).includes(',')) {
|
|
5237
|
-
if (key.includes('like')) {
|
|
5238
|
-
queryParams[key.replace('like', 'in')] = queryParams[key];
|
|
5239
|
-
delete queryParams[key];
|
|
5240
|
-
}
|
|
5241
|
-
}
|
|
5242
|
-
});
|
|
5243
|
-
}
|
|
5244
|
-
requestUtil.get("".concat(url).concat(url.includes("?") ? "&" : "?").concat(querystring.stringify(queryParams))).then(function (result) {
|
|
5140
|
+
axios__default['default'].get("".concat(url, "?").concat(querystring.stringify(queryParams))).then(function (result) {
|
|
5245
5141
|
setFetching(false);
|
|
5246
5142
|
result = result.data;
|
|
5247
5143
|
if (judgeIsRequestError(result)) {
|
|
@@ -5436,31 +5332,27 @@ var AddSelect = function AddSelect(props) {
|
|
|
5436
5332
|
setTableFormParams({});
|
|
5437
5333
|
setIsModalVisible(false);
|
|
5438
5334
|
setTableData([]);
|
|
5439
|
-
onCancelCallback && onCancelCallback();
|
|
5440
5335
|
// if (selectMode) {
|
|
5441
5336
|
// run();
|
|
5442
5337
|
// }
|
|
5443
5338
|
};
|
|
5444
5339
|
var onSearchTable = function onSearchTable() {
|
|
5445
|
-
form.
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
|
|
5340
|
+
var params = form.getFieldsValue();
|
|
5341
|
+
setTableFormParams(params);
|
|
5342
|
+
getData(_objectSpread2(_objectSpread2({}, params), {}, {
|
|
5343
|
+
pageSize: tableInitPageSize
|
|
5344
|
+
}), 2);
|
|
5345
|
+
// if (selectMode) {
|
|
5346
|
+
// getData(params)
|
|
5347
|
+
// }
|
|
5452
5348
|
};
|
|
5453
5349
|
var onResetTable = function onResetTable() {
|
|
5454
5350
|
form.resetFields();
|
|
5455
5351
|
setTableFormParams({});
|
|
5456
|
-
|
|
5457
|
-
|
|
5458
|
-
|
|
5459
|
-
|
|
5460
|
-
}, 2);
|
|
5461
|
-
}).catch(function () {
|
|
5462
|
-
setTableData([]);
|
|
5463
|
-
});
|
|
5352
|
+
getData({
|
|
5353
|
+
pageSize: tableInitPageSize,
|
|
5354
|
+
currentPage: 1
|
|
5355
|
+
}, 2);
|
|
5464
5356
|
};
|
|
5465
5357
|
var handleTableChange = function handleTableChange(pagination) {
|
|
5466
5358
|
getData(_objectSpread2(_objectSpread2({}, tableFormParams), {}, {
|
|
@@ -5528,82 +5420,75 @@ var AddSelect = function AddSelect(props) {
|
|
|
5528
5420
|
var formItem = function formItem(list) {
|
|
5529
5421
|
if (isModalVisible && (list === null || list === void 0 ? void 0 : list.length)) {
|
|
5530
5422
|
return list.map(function (i, index) {
|
|
5531
|
-
var
|
|
5532
|
-
|
|
5533
|
-
|
|
5534
|
-
|
|
5535
|
-
|
|
5536
|
-
|
|
5537
|
-
|
|
5538
|
-
|
|
5539
|
-
restProps = _objectWithoutProperties(i, _excluded2$2);
|
|
5540
|
-
if (type === 'custom_filter_form_item') return filterFormItem;
|
|
5541
|
-
if (type === 'select' || (field === null || field === void 0 ? void 0 : field.type) === 'select') {
|
|
5542
|
-
return /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, _objectSpread2({
|
|
5543
|
-
name: name,
|
|
5544
|
-
label: label,
|
|
5545
|
-
key: name
|
|
5546
|
-
}, restProps), /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2({
|
|
5423
|
+
var _i$field, _i$field3, _i$field5, _i$field6, _i$field7;
|
|
5424
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'select' || (i === null || i === void 0 ? void 0 : (_i$field = i.field) === null || _i$field === void 0 ? void 0 : _i$field.type) === 'select') {
|
|
5425
|
+
var _i$field2, _i$initialSource;
|
|
5426
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
5427
|
+
name: i.name,
|
|
5428
|
+
label: i.label,
|
|
5429
|
+
key: i.name
|
|
5430
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2({
|
|
5547
5431
|
style: {
|
|
5548
5432
|
width: '100%'
|
|
5549
5433
|
},
|
|
5550
5434
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
5551
|
-
},
|
|
5435
|
+
}, i === null || i === void 0 ? void 0 : (_i$field2 = i.field) === null || _i$field2 === void 0 ? void 0 : _i$field2.props), (i === null || i === void 0 ? void 0 : (_i$initialSource = i.initialSource) === null || _i$initialSource === void 0 ? void 0 : _i$initialSource.length) && (i === null || i === void 0 ? void 0 : i.initialSource.map(function (m) {
|
|
5552
5436
|
return /*#__PURE__*/React__default['default'].createElement(Option$2, {
|
|
5553
5437
|
value: m.value,
|
|
5554
5438
|
key: m.value
|
|
5555
5439
|
}, m.text);
|
|
5556
|
-
})));
|
|
5440
|
+
}))));
|
|
5557
5441
|
}
|
|
5558
|
-
if (type === 'treeSelect' || (
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5442
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'treeSelect' || (i === null || i === void 0 ? void 0 : (_i$field3 = i.field) === null || _i$field3 === void 0 ? void 0 : _i$field3.type) === 'treeSelect') {
|
|
5443
|
+
var _i$field4;
|
|
5444
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
5445
|
+
name: i.name,
|
|
5446
|
+
label: i.label,
|
|
5447
|
+
key: i.name
|
|
5448
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.TreeSelect, _objectSpread2({
|
|
5564
5449
|
style: {
|
|
5565
5450
|
width: '100%'
|
|
5566
5451
|
},
|
|
5567
5452
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
5568
|
-
},
|
|
5569
|
-
}
|
|
5570
|
-
if (type === 'BusinessSearchSelect' || (field === null || field === void 0 ? void 0 : field.type) === 'BusinessSearchSelect') {
|
|
5571
|
-
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, _objectSpread2({
|
|
5572
|
-
name: name,
|
|
5573
|
-
label: label,
|
|
5574
|
-
key: name
|
|
5575
|
-
}, restProps), /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, _objectSpread2({}, field === null || field === void 0 ? void 0 : field.props))));
|
|
5576
|
-
}
|
|
5577
|
-
if (type === 'multipleQueryInput' || (field === null || field === void 0 ? void 0 : field.type) === 'multipleQueryInput') {
|
|
5578
|
-
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, _objectSpread2({
|
|
5579
|
-
name: name,
|
|
5580
|
-
label: label,
|
|
5581
|
-
key: name
|
|
5582
|
-
}, restProps), /*#__PURE__*/React__default['default'].createElement(QueryMutipleInput, {
|
|
5583
|
-
onValueChange: function onValueChange(value) {
|
|
5584
|
-
form.setFieldsValue(_defineProperty({}, name, value));
|
|
5585
|
-
}
|
|
5586
|
-
})));
|
|
5453
|
+
}, i === null || i === void 0 ? void 0 : (_i$field4 = i.field) === null || _i$field4 === void 0 ? void 0 : _i$field4.props)));
|
|
5587
5454
|
}
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
-
|
|
5598
|
-
|
|
5599
|
-
|
|
5600
|
-
|
|
5601
|
-
|
|
5455
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'BusinessSearchSelect' || (i === null || i === void 0 ? void 0 : (_i$field5 = i.field) === null || _i$field5 === void 0 ? void 0 : _i$field5.type) === 'BusinessSearchSelect') {
|
|
5456
|
+
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
5457
|
+
name: i.name,
|
|
5458
|
+
label: i.label,
|
|
5459
|
+
key: i.name
|
|
5460
|
+
}, /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, _objectSpread2({}, i.field.props))));
|
|
5461
|
+
}
|
|
5462
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$field6 = i.field) === null || _i$field6 === void 0 ? void 0 : _i$field6.type) === 'multipleQueryInput') {
|
|
5463
|
+
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
5464
|
+
name: i.name,
|
|
5465
|
+
label: i.label,
|
|
5466
|
+
key: i.name
|
|
5467
|
+
}, /*#__PURE__*/React__default['default'].createElement(QueryMutipleInput, {
|
|
5468
|
+
onValueChange: function onValueChange(value) {
|
|
5469
|
+
form.setFieldsValue(_defineProperty({}, i.name, value));
|
|
5470
|
+
}
|
|
5471
|
+
})));
|
|
5472
|
+
}
|
|
5473
|
+
// 默认type是input
|
|
5474
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
5475
|
+
name: i.name,
|
|
5476
|
+
label: i.label,
|
|
5477
|
+
key: i.name
|
|
5478
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, _objectSpread2({
|
|
5479
|
+
id: index === 0 ? "first-query" : 'index',
|
|
5480
|
+
style: {
|
|
5481
|
+
width: '100%'
|
|
5482
|
+
},
|
|
5483
|
+
onKeyDown: function onKeyDown(e) {
|
|
5484
|
+
if (e.keyCode === 13) {
|
|
5485
|
+
onSearchTable();
|
|
5486
|
+
}
|
|
5602
5487
|
},
|
|
5603
5488
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
5604
5489
|
allowClear: true,
|
|
5605
5490
|
maxLength: 100
|
|
5606
|
-
},
|
|
5491
|
+
}, i === null || i === void 0 ? void 0 : (_i$field7 = i.field) === null || _i$field7 === void 0 ? void 0 : _i$field7.props)));
|
|
5607
5492
|
});
|
|
5608
5493
|
} else {
|
|
5609
5494
|
return null;
|
|
@@ -5855,7 +5740,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
5855
5740
|
style: _objectSpread2(_objectSpread2({}, themeColor), {}, {
|
|
5856
5741
|
cursor: 'pointer'
|
|
5857
5742
|
})
|
|
5858
|
-
},
|
|
5743
|
+
}, "\u6E05\u7A7A\u6240\u9009\u5546\u54C1")))), /*#__PURE__*/React__default['default'].createElement(antd.Table, {
|
|
5859
5744
|
size: 'small',
|
|
5860
5745
|
columns: showSelectedCol,
|
|
5861
5746
|
dataSource: popvalue,
|
|
@@ -5881,10 +5766,20 @@ var AddSelect = function AddSelect(props) {
|
|
|
5881
5766
|
}))))));
|
|
5882
5767
|
};
|
|
5883
5768
|
|
|
5884
|
-
var css_248z$
|
|
5885
|
-
styleInject(css_248z$
|
|
5769
|
+
var css_248z$7 = ".add_select_show {\n display: flex;\n}\n.add_select_expand_button {\n position: relative;\n width: 30px;\n color: #ffffff;\n cursor: pointer;\n}\n.add_select_expand_button span {\n position: absolute;\n height: 20px;\n line-height: 14px;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.add_select_header {\n border-bottom: 1px solid #D9D9D9;\n height: 24px;\n height: 40px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n line-height: 40px;\n margin-bottom: 10px;\n padding-left: 10px;\n}\n.add_select_header > span {\n margin-left: 20px;\n font-weight: 400;\n font-size: 12px;\n color: #666666;\n letter-spacing: 0;\n line-height: 40px;\n}\n.add_select_header > span > span {\n color: #ff0000;\n}\n.add_select_header_close span {\n position: absolute;\n color: black !important;\n right: 10px;\n top: 10px;\n}\n.add_select_quick_header {\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.add_select_quick_header_title {\n display: flex;\n justify-content: space-between;\n}\n.add_select_quick_header > span {\n font-weight: 400;\n font-size: 12px;\n color: #666666;\n letter-spacing: 0;\n line-height: 20px;\n}\n.add_select_quick_header > span > span {\n color: #ff0000;\n}\n.add_select_quick_header_close span {\n position: absolute;\n color: black !important;\n right: 10px;\n top: 10px;\n}\n.add_select_wrapper {\n position: relative;\n display: flex;\n max-height: 60vh;\n overflow: hidden;\n font-size: 14px;\n margin: 5px 10px;\n}\n.add_select_wrapper .ant-table-pagination.ant-pagination {\n margin: 5px;\n padding-right: 5px;\n}\n.add_select_wrapper .ant-checkbox-wrapper {\n justify-content: center;\n}\n.add_select_wrapper .ant-form-item-label {\n padding: 0PX;\n line-height: 23px !important;\n}\n.add_select_wrapper .ant-form-item-label > label {\n font-size: 12px;\n}\n.add_select_wrapper .ant-table-thead th {\n height: 20px !important;\n padding: 0px 8px !important;\n font-size: 12px !important;\n font-weight: 600 !important;\n line-height: 20px !important;\n}\n.add_select_wrapper .ant-modal-body {\n padding: 10px;\n}\n.add_select_wrapper .ant-table-wrapper {\n padding: 0px !important;\n}\n.add_select_wrapper .row-class {\n height: 24px;\n}\n.add_select_wrapper .row-class td {\n font-size: 12px !important;\n height: 24px !important;\n padding: 0px 8px !important;\n line-height: 20px !important;\n}\n.add_select_wrapper .ant-table-body {\n height: 240px;\n overflow-y: auto !important;\n}\n.add_select_wrapper .ant-row.ant-form-item {\n margin-bottom: 10px;\n}\n.add_select_wrapper_click_flag {\n position: absolute;\n z-index: 10;\n}\n.add_select_wrapper_click_flag_arrow {\n transform: rotate(0deg);\n transition: transform 0.5s;\n}\n.add_select_wrapper_click_flag_arrow_1 {\n transform: rotate(-180deg);\n transition: transform 0.5s;\n}\n.add_select_wrapper_left {\n flex-basis: 298px;\n width: 298px;\n overflow-y: hidden;\n transition: all 0.3s;\n margin-right: 10px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n}\n.add_select_wrapper_left1 {\n width: 0;\n height: 0;\n transition: all 0.3s;\n display: none;\n}\n.add_select_wrapper_right {\n width: 872px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n}\n.add_select_wrapper_right1 {\n width: 100%;\n margin-left: 10px;\n}\n.add_select_wrapper_right,\n.add_select_wrapper_right1 {\n overflow-x: auto;\n}\n.add_select_wrapper .select_list_columns {\n height: 272px;\n overflow-y: auto;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper .select_list_columns_tips {\n background: #eee;\n padding: 6px 20px;\n margin-bottom: 10px;\n}\n.add_select_wrapper .select_list_columns_formItems {\n padding: 7px 10px;\n}\n.add_select_wrapper .select_list_searchButton {\n display: flex;\n margin: 10px;\n justify-content: flex-end;\n}\n.add_select_wrapper .select_list_button_space {\n margin-right: 10px;\n}\n.add_select_wrapper .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 24px;\n font-size: 12px;\n line-height: 24px;\n background: #F7F8FB;\n padding: 0 5px;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper .select_list_selectAll {\n position: relative;\n top: -40px;\n left: 20px;\n width: 160px;\n}\n.add_select_wrapper_select {\n margin-top: 4px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n margin: 5px 10px;\n}\n.add_select_wrapper_select .ant-table-pagination.ant-pagination {\n margin: 9px;\n padding-right: 5px;\n}\n.add_select_wrapper_select .ant-modal-body {\n padding: 10px;\n}\n.add_select_wrapper_select .ant-table-wrapper {\n padding: 0px !important;\n}\n.add_select_wrapper_select .ant-table-thead th {\n height: 23px !important;\n padding: 0px 8px !important;\n font-size: 12px !important;\n font-weight: 600 !important;\n line-height: 23px !important;\n}\n.add_select_wrapper_select .ant-modal-close-x {\n height: 30px;\n}\n.add_select_wrapper_select .row-class {\n height: 30px;\n}\n.add_select_wrapper_select .row-class td {\n font-size: 12px !important;\n height: 30px !important;\n padding: 4px 8px !important;\n}\n.add_select_wrapper_select .ant-table-body {\n height: 200px;\n overflow-y: auto !important;\n}\n.add_select_wrapper_select .ant-row.ant-form-item {\n margin-bottom: 10px;\n}\n.add_select_wrapper_select .ant-input-number-input,\n.add_select_wrapper_select .ant-input {\n height: auto;\n height: 22px;\n padding: 0px 10px;\n font-size: 12px;\n}\n.add_select_wrapper_select .ant-select-selection-search-input {\n height: auto;\n height: 22px !important;\n padding: 0px 10px;\n font-size: 12px;\n}\n.add_select_wrapper_select .ant-select .ant-select-arrow {\n top: 13px;\n}\n.add_select_wrapper_select .ant-select-selector {\n position: relative;\n top: 1px;\n height: 23px !important;\n line-height: 23px !important;\n}\n.add_select_wrapper_select .ant-select-selector .ant-select-selection-item,\n.add_select_wrapper_select .ant-select-selector ant-select-selection-search {\n height: 23px !important;\n line-height: 23px !important;\n font-size: 12px;\n}\n.add_select_wrapper_select .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 24px;\n font-size: 12px;\n line-height: 24px;\n background: #F7F8FB;\n padding: 0 3px;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick {\n margin: 0;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .ant-table-body {\n height: 240px;\n overflow-y: auto !important;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .table_base {\n background: #fff;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .table_odd {\n background: #f7f8fb;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .ant-table-cell-fix-left,\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .ant-table-cell-fix-right {\n background: #FFFFFF !important;\n}\n";
|
|
5770
|
+
styleInject(css_248z$7);
|
|
5771
|
+
|
|
5772
|
+
var getSkuImg = function getSkuImg(record) {
|
|
5773
|
+
var _record$mediaList;
|
|
5774
|
+
// 默认取sku图片、当没有设置时取商品图片,商品图片也没有返回空
|
|
5775
|
+
var ImgList = ((_record$mediaList = record.mediaList) === null || _record$mediaList === void 0 ? void 0 : _record$mediaList.length) && record.mediaList.filter(function (i) {
|
|
5776
|
+
return i.type == 1;
|
|
5777
|
+
}) || []; // 获取SKU、SPU图片数组集合
|
|
5778
|
+
var imgShow = (ImgList === null || ImgList === void 0 ? void 0 : ImgList.length) && ImgList[0].url || null;
|
|
5779
|
+
return imgShow;
|
|
5780
|
+
};
|
|
5886
5781
|
|
|
5887
|
-
var _excluded$
|
|
5782
|
+
var _excluded$4 = ["onResize", "width"];
|
|
5888
5783
|
var _this = undefined;
|
|
5889
5784
|
var InputElement = function InputElement(_ref) {
|
|
5890
5785
|
var _record$packingUnitLi, _record$packingUnitLi2;
|
|
@@ -5912,7 +5807,7 @@ var InputElement = function InputElement(_ref) {
|
|
|
5912
5807
|
setValue = _useState6[1];
|
|
5913
5808
|
var inputRef = React.useRef(false);
|
|
5914
5809
|
var onSerchdata = function onSerchdata(name) {
|
|
5915
|
-
|
|
5810
|
+
axios__default['default'].get("/items/sku/pager/v2?".concat(querystring.stringify({
|
|
5916
5811
|
'skuCodeAndSkuName': name,
|
|
5917
5812
|
'pageSize': 100,
|
|
5918
5813
|
'qp-combination-eq': false,
|
|
@@ -6387,7 +6282,7 @@ var InputElement = function InputElement(_ref) {
|
|
|
6387
6282
|
var ResizeableTitle$1 = function ResizeableTitle(props) {
|
|
6388
6283
|
var onResize = props.onResize,
|
|
6389
6284
|
width = props.width,
|
|
6390
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
6285
|
+
restProps = _objectWithoutProperties(props, _excluded$4);
|
|
6391
6286
|
if (!width) {
|
|
6392
6287
|
return /*#__PURE__*/React__default['default'].createElement("th", _objectSpread2({}, restProps));
|
|
6393
6288
|
}
|
|
@@ -6596,7 +6491,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
6596
6491
|
brandAuth: 'ctl-withAuth'
|
|
6597
6492
|
};
|
|
6598
6493
|
}
|
|
6599
|
-
return
|
|
6494
|
+
return axios__default['default'].post(validDataUrl, _objectSpread2(_objectSpread2({}, otherParams), {}, {
|
|
6600
6495
|
columns: ["skuCode", "quantity"],
|
|
6601
6496
|
data: resultData.map(function (i) {
|
|
6602
6497
|
return {
|
|
@@ -6931,7 +6826,7 @@ var getDictionaryTextByValue = function getDictionaryTextByValue(dicCode, value)
|
|
|
6931
6826
|
};
|
|
6932
6827
|
var loadSelectSource$1 = function loadSelectSource(url, params) {
|
|
6933
6828
|
return new Promise(function (resolve, reject) {
|
|
6934
|
-
|
|
6829
|
+
axios__default['default'].get("".concat(url, "?").concat(querystring.stringify(params))).then(function (result) {
|
|
6935
6830
|
result = result.data;
|
|
6936
6831
|
if (judgeIsRequestError(result)) {
|
|
6937
6832
|
antd.message.error(result.msg);
|
|
@@ -9290,28 +9185,24 @@ function handleSelectColumn(c, parentProps) {
|
|
|
9290
9185
|
var coverColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.coverColumns) || [];
|
|
9291
9186
|
var additionColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.additionColumns) || [];
|
|
9292
9187
|
// 仅展示内容
|
|
9293
|
-
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
|
|
9294
9188
|
if (showColumns === null || showColumns === void 0 ? void 0 : showColumns.length) {
|
|
9295
9189
|
result = result.filter(function (i) {
|
|
9296
9190
|
return showColumns.includes(i.dataIndex);
|
|
9297
9191
|
});
|
|
9298
9192
|
}
|
|
9299
9193
|
// 过滤不需要展示内容
|
|
9300
|
-
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
|
|
9301
9194
|
if (exceptColumns === null || exceptColumns === void 0 ? void 0 : exceptColumns.length) {
|
|
9302
9195
|
result = result.filter(function (i) {
|
|
9303
9196
|
return !exceptColumns.includes(i.dataIndex);
|
|
9304
9197
|
});
|
|
9305
9198
|
}
|
|
9306
9199
|
// 追加(最好不用这个,当组件不固定时候会有影响)
|
|
9307
|
-
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
|
|
9308
9200
|
if (additionColumns === null || additionColumns === void 0 ? void 0 : additionColumns.length) {
|
|
9309
9201
|
additionColumns.forEach(function (i) {
|
|
9310
9202
|
result.splice(i.position, 0, i.column);
|
|
9311
9203
|
});
|
|
9312
9204
|
}
|
|
9313
9205
|
// 覆盖内容
|
|
9314
|
-
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
|
|
9315
9206
|
if (coverColumns === null || coverColumns === void 0 ? void 0 : coverColumns.length) {
|
|
9316
9207
|
result = coverColumns;
|
|
9317
9208
|
}
|
|
@@ -9323,21 +9214,18 @@ function handleSearchForm(c, parentProps) {
|
|
|
9323
9214
|
var exceptTableSearchForm = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.exceptTableSearchForm) || [];
|
|
9324
9215
|
var coverTableSearchForm = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.coverTableSearchForm) || [];
|
|
9325
9216
|
// 仅展示内容
|
|
9326
|
-
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
|
|
9327
9217
|
if (showTableSearchForm === null || showTableSearchForm === void 0 ? void 0 : showTableSearchForm.length) {
|
|
9328
9218
|
result = result.filter(function (i) {
|
|
9329
9219
|
return showTableSearchForm.includes(i.name);
|
|
9330
9220
|
});
|
|
9331
9221
|
}
|
|
9332
9222
|
// 过滤不需要展示内容
|
|
9333
|
-
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
|
|
9334
9223
|
if (exceptTableSearchForm === null || exceptTableSearchForm === void 0 ? void 0 : exceptTableSearchForm.length) {
|
|
9335
9224
|
result = result.filter(function (i) {
|
|
9336
9225
|
return !exceptTableSearchForm.includes(i.name);
|
|
9337
9226
|
});
|
|
9338
9227
|
}
|
|
9339
9228
|
// 覆盖内容
|
|
9340
|
-
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
|
|
9341
9229
|
if (coverTableSearchForm === null || coverTableSearchForm === void 0 ? void 0 : coverTableSearchForm.length) {
|
|
9342
9230
|
result = coverTableSearchForm;
|
|
9343
9231
|
}
|
|
@@ -9350,21 +9238,18 @@ function handleFormSearchSourceLoad(c, parentProps) {
|
|
|
9350
9238
|
var coverTableFormSearchSourceLoad = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.coverTableFormSearchSourceLoad) || [];
|
|
9351
9239
|
var noNeedTableFormSearchSourceLoad = parentProps === null || parentProps === void 0 ? void 0 : parentProps.noNeedTableFormSearchSourceLoad;
|
|
9352
9240
|
// 仅展示内容
|
|
9353
|
-
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
|
|
9354
9241
|
if (showTableFormSearchSourceLoad === null || showTableFormSearchSourceLoad === void 0 ? void 0 : showTableFormSearchSourceLoad.length) {
|
|
9355
9242
|
result = result.filter(function (i) {
|
|
9356
9243
|
return showTableFormSearchSourceLoad.includes(i.url);
|
|
9357
9244
|
});
|
|
9358
9245
|
}
|
|
9359
9246
|
// 过滤不需要展示内容
|
|
9360
|
-
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
|
|
9361
9247
|
if (exceptTableFormSearchSourceLoad === null || exceptTableFormSearchSourceLoad === void 0 ? void 0 : exceptTableFormSearchSourceLoad.length) {
|
|
9362
9248
|
result = result.filter(function (i) {
|
|
9363
9249
|
return !exceptTableFormSearchSourceLoad.includes(i.url);
|
|
9364
9250
|
});
|
|
9365
9251
|
}
|
|
9366
9252
|
// 覆盖内容
|
|
9367
|
-
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
|
|
9368
9253
|
if (coverTableFormSearchSourceLoad === null || coverTableFormSearchSourceLoad === void 0 ? void 0 : coverTableFormSearchSourceLoad.length) {
|
|
9369
9254
|
result = coverTableFormSearchSourceLoad;
|
|
9370
9255
|
}
|
|
@@ -9396,7 +9281,6 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
9396
9281
|
showTitle: false
|
|
9397
9282
|
},
|
|
9398
9283
|
dataIndex: 'itemEancode',
|
|
9399
|
-
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115627
|
|
9400
9284
|
render: function render(text) {
|
|
9401
9285
|
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
9402
9286
|
placement: "topLeft",
|
|
@@ -9446,7 +9330,6 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
9446
9330
|
},
|
|
9447
9331
|
render: function render(text, record) {
|
|
9448
9332
|
var _record$packingUnitLi;
|
|
9449
|
-
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115636
|
|
9450
9333
|
if (record === null || record === void 0 ? void 0 : (_record$packingUnitLi = record.packingUnitList) === null || _record$packingUnitLi === void 0 ? void 0 : _record$packingUnitLi.length) {
|
|
9451
9334
|
var basePackUnit = record === null || record === void 0 ? void 0 : record.packingUnitList[0];
|
|
9452
9335
|
record.selectUnitCode = basePackUnit.unitCode;
|
|
@@ -9529,10 +9412,6 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
9529
9412
|
}, text);
|
|
9530
9413
|
}
|
|
9531
9414
|
}]), [{
|
|
9532
|
-
title: 'SKC编码',
|
|
9533
|
-
width: 150,
|
|
9534
|
-
dataIndex: 'skcCode'
|
|
9535
|
-
}, {
|
|
9536
9415
|
title: '所属SPU名称',
|
|
9537
9416
|
width: 100,
|
|
9538
9417
|
ellipsis: {
|
|
@@ -9627,19 +9506,13 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
9627
9506
|
var mTpTableColumn = handleSelectColumn(initialTableColumn, parProps);
|
|
9628
9507
|
var initialTableSearchForm = [{
|
|
9629
9508
|
name: 'qp-skuCode-like',
|
|
9630
|
-
label: 'SKU编码'
|
|
9631
|
-
type: 'multipleQueryInput'
|
|
9509
|
+
label: 'SKU编码'
|
|
9632
9510
|
}, {
|
|
9633
9511
|
name: 'qp-skuName-like',
|
|
9634
9512
|
label: 'SKU名称'
|
|
9635
9513
|
}, {
|
|
9636
|
-
name: 'qp-
|
|
9637
|
-
label: '
|
|
9638
|
-
type: 'multipleQueryInput'
|
|
9639
|
-
}, {
|
|
9640
|
-
name: 'qp-itemCode-like',
|
|
9641
|
-
label: 'SPU编码',
|
|
9642
|
-
type: 'multipleQueryInput'
|
|
9514
|
+
name: 'qp-externalCode-like',
|
|
9515
|
+
label: '外部SPU编码'
|
|
9643
9516
|
}].concat(_toConsumableArray(isNoUseItemBarcode ? [] : [{
|
|
9644
9517
|
name: 'qp-code-in',
|
|
9645
9518
|
label: '商品条码',
|
|
@@ -9702,7 +9575,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
9702
9575
|
'ctl-withAuth': true
|
|
9703
9576
|
},
|
|
9704
9577
|
resType: 'list',
|
|
9705
|
-
resPosition: isNoUseItemBarcode ?
|
|
9578
|
+
resPosition: isNoUseItemBarcode ? 3 : 4,
|
|
9706
9579
|
resKeyValue: ['id', 'name']
|
|
9707
9580
|
}, {
|
|
9708
9581
|
url: "/items/category/queryCategoryTree",
|
|
@@ -9711,7 +9584,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
9711
9584
|
currentPage: 1
|
|
9712
9585
|
},
|
|
9713
9586
|
resType: 'treeList',
|
|
9714
|
-
resPosition: isNoUseItemBarcode ?
|
|
9587
|
+
resPosition: isNoUseItemBarcode ? 4 : 5
|
|
9715
9588
|
}];
|
|
9716
9589
|
var mTpPromiseLoadList = handleFormSearchSourceLoad(initialPromiseLoadList, parProps);
|
|
9717
9590
|
var props = {
|
|
@@ -9767,7 +9640,7 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
|
|
|
9767
9640
|
setPropertyList = _useState6[1];
|
|
9768
9641
|
React.useEffect(function () {
|
|
9769
9642
|
// type: 1 尺码组; 2 配码组
|
|
9770
|
-
|
|
9643
|
+
axios__default['default'].get("/items/itemPropertyValueGroup/listNoPage?qp-type-eq=2&qp-status-eq=1").then(function (result) {
|
|
9771
9644
|
result = result.data;
|
|
9772
9645
|
if (judgeIsRequestError(result)) {
|
|
9773
9646
|
antd.message.error(result.msg);
|
|
@@ -9824,7 +9697,7 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
|
|
|
9824
9697
|
var initialPromiseLoadList = [{
|
|
9825
9698
|
url: "/items/item/propertyValue/sizeBySkcConfig",
|
|
9826
9699
|
params: {
|
|
9827
|
-
pageSize:
|
|
9700
|
+
pageSize: 10000,
|
|
9828
9701
|
currentPage: 1,
|
|
9829
9702
|
type: 2 // 类型:1尺码;2颜色
|
|
9830
9703
|
},
|
|
@@ -9834,7 +9707,7 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
|
|
|
9834
9707
|
}, {
|
|
9835
9708
|
url: "/items/category/queryCategoryTree",
|
|
9836
9709
|
params: {
|
|
9837
|
-
pageSize:
|
|
9710
|
+
pageSize: 5000,
|
|
9838
9711
|
currentPage: 1
|
|
9839
9712
|
},
|
|
9840
9713
|
resType: 'treeList',
|
|
@@ -10085,7 +9958,7 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
10085
9958
|
React.useEffect(function () {
|
|
10086
9959
|
if (parProps === null || parProps === void 0 ? void 0 : parProps.isSingleColor) {
|
|
10087
9960
|
// type: 1 尺码组; 2 配码组
|
|
10088
|
-
|
|
9961
|
+
axios__default['default'].get("/items/itemPropertyValueGroup/listNoPage?qp-type-eq=2&qp-status-eq=1").then(function (result) {
|
|
10089
9962
|
result = result.data;
|
|
10090
9963
|
if (judgeIsRequestError(result)) {
|
|
10091
9964
|
antd.message.error(result.msg);
|
|
@@ -10170,7 +10043,7 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
10170
10043
|
}, {
|
|
10171
10044
|
url: "/items/category/queryCategoryTree",
|
|
10172
10045
|
params: {
|
|
10173
|
-
pageSize:
|
|
10046
|
+
pageSize: 5000,
|
|
10174
10047
|
currentPage: 1
|
|
10175
10048
|
},
|
|
10176
10049
|
resType: 'treeList',
|
|
@@ -10399,7 +10272,9 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
10399
10272
|
_props$isBrandAuth = props.isBrandAuth,
|
|
10400
10273
|
isBrandAuth = _props$isBrandAuth === void 0 ? true : _props$isBrandAuth,
|
|
10401
10274
|
_props$isCheckStockNu = props.isCheckStockNum,
|
|
10402
|
-
isCheckStockNum = _props$isCheckStockNu === void 0 ? true : _props$isCheckStockNu
|
|
10275
|
+
isCheckStockNum = _props$isCheckStockNu === void 0 ? true : _props$isCheckStockNu,
|
|
10276
|
+
_props$otherModalProp = props.otherModalProps,
|
|
10277
|
+
otherModalProps = _props$otherModalProp === void 0 ? {} : _props$otherModalProp;
|
|
10403
10278
|
var _useState = React.useState({
|
|
10404
10279
|
maskClosable: false,
|
|
10405
10280
|
width: 800,
|
|
@@ -10449,7 +10324,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
10449
10324
|
onCancel: handleCancel,
|
|
10450
10325
|
destroyOnClose: true,
|
|
10451
10326
|
zIndex: 15
|
|
10452
|
-
}), /*#__PURE__*/React__default['default'].createElement(DataValidation, {
|
|
10327
|
+
}, otherModalProps), /*#__PURE__*/React__default['default'].createElement(DataValidation, {
|
|
10453
10328
|
onRef: function onRef(ref) {
|
|
10454
10329
|
dataValidationRef = ref;
|
|
10455
10330
|
},
|
|
@@ -10508,7 +10383,7 @@ function getStorageVale(storageKeyString) {
|
|
|
10508
10383
|
return "";
|
|
10509
10384
|
}
|
|
10510
10385
|
|
|
10511
|
-
var _excluded$
|
|
10386
|
+
var _excluded$5 = ["ctx", "value", "valueName", "onChange", "onChangeName", "placeholder", "remoteSource", "initialValue", "treeCheckable", "showSearch", "maxTagCount", "multiple", "isChoose", "rootDisabled", "mode", "getPopupContainer", "labelInValue", "showArrow", "allowClear", "showCheckedStrategy", "style", "getTreeData", "disabled"];
|
|
10512
10387
|
var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
10513
10388
|
var _useState = React.useState([]),
|
|
10514
10389
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -10550,7 +10425,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
10550
10425
|
} : _props$style,
|
|
10551
10426
|
getTreeData = props.getTreeData,
|
|
10552
10427
|
disabled = props.disabled,
|
|
10553
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
10428
|
+
restProps = _objectWithoutProperties(props, _excluded$5);
|
|
10554
10429
|
var url = remoteSource.url,
|
|
10555
10430
|
headers = remoteSource.headers,
|
|
10556
10431
|
_remoteSource$paramsK = remoteSource.paramsKey,
|
|
@@ -10591,7 +10466,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
10591
10466
|
/* 实时查询 但是目前用的直接是完整数据源, 所以没有使用 */
|
|
10592
10467
|
var handleSearch = function handleSearch(q) {
|
|
10593
10468
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
10594
|
-
|
|
10469
|
+
axios__default['default'].get("".concat(url, "?").concat(querystring.stringify(paramsData)), {
|
|
10595
10470
|
headers: headers
|
|
10596
10471
|
}).then( /*#__PURE__*/function () {
|
|
10597
10472
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
@@ -10904,8 +10779,8 @@ var BusinessTreeSearchSelect$1 = /*#__PURE__*/React__default['default'].memo(Bus
|
|
|
10904
10779
|
return true;
|
|
10905
10780
|
});
|
|
10906
10781
|
|
|
10907
|
-
var css_248z$
|
|
10908
|
-
styleInject(css_248z$
|
|
10782
|
+
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";
|
|
10783
|
+
styleInject(css_248z$8);
|
|
10909
10784
|
|
|
10910
10785
|
var index$3 = (function (props) {
|
|
10911
10786
|
var _props$formStatusMapp = props.formStatusMapping,
|
|
@@ -10947,20 +10822,20 @@ var label_icon_bottom = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20en
|
|
|
10947
10822
|
|
|
10948
10823
|
var arrow_top = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAuBJREFUaEPtl0urjlEUx3/HXUkpErkkJAYoGbhkJB2SW2IgBibKVL6Cz2BgQMqAXCKXiHIGBhiIDJEJyjXlfu2vtWp36nj2fvZ+HG/tXW/n7bz7Wft/WXut9fTR46uvx/FTCQy3g9WB6kCmAjWFMgXMfrw6kC1hZoDqQKaA2Y//Cwd0xq9spEME6JLACOCnnRt+L8qlKwIOeDT8GRi/Ap2Q6ILASOAHsAo4DEwGDgAnAP+tmAulCTjANcBpA6/812e3kRgFfC/FoCQBByblzxl4Tx399hnYA5wq6UQpAq78ClN+mqWR/q+llNL3T8BO4AJQxIkSBBz8cgM2FfgCjAXOAC+A/cA3QJf6vZG4UoJELgEHvww4C8wMgF40oB+BI8Bey30p/xbYDtzITaccAg5+CXAJmB4oL3UF8IMBVD84DuwK9rwCNgO3cki0JeDgF9uFnRMof83AK1VU+7VEYBxwDNgR7H0GbAVutyXRhoCDXwhcBmYHql4HtlmeD+7EKqW6A6pCm4JnRGI9cL8NiVQCDn6RKT/fuuwY4CawBXg3BBAnNAE4aaD9Yj+ydHqYSiKFgIOfByjH5wYqDlgqvGkYGZzERCu3a4MYIrEOeJxCIpaAT5RSXE1KDqhJSXldQqXE68iDXYhJwHlgdRDrgTnxxGaoxik2hoCrNgu4CiwIVBN4pc3LxGHNY04xQVYGMXUX+oHnMTFjCPjYouoiyzUSqKLcBTYY+DZd1Z1Q41NKLg1iq4dsjJmXmgh46owHngJSTOuOKa8KkjMmh+4qndRTtHSXZtjo8dcXoiYCCuYB1IQOAfeAfTYitFF+sLDuhMrxUXPioHXvxre5GALhgarjGszUmBqDx6SA7fFYEkSENEtFrRQCfoj+6uOvi1EHRWxyLKo80eKkEIjAUGRLNHjP7yKnDleQ/9GBJC0qgSS5OthcHehA1KSQ1YEkuTrYXB3oQNSkkNWBJLk62NzzDvwGGnWoMahVpG4AAAAASUVORK5CYII=";
|
|
10949
10824
|
|
|
10950
|
-
var css_248z$
|
|
10951
|
-
styleInject(css_248z$
|
|
10825
|
+
var css_248z$9 = ".form-guide {\n cursor: pointer;\n position: fixed;\n right: 5px;\n color: #B1BAD4;\n padding: 5px 0;\n width: 48px;\n z-index: 10;\n top: 50%;\n transform: translateY(-50%);\n background-color: #141620;\n border-radius: 5px;\n}\n.form-guide .form-guide-top {\n padding: 0px 10px;\n display: flex;\n justify-content: center;\n}\n.form-guide .form-guide-center {\n border-top: 1px solid #6E7588;\n border-bottom: 1px solid #6E7588;\n padding: 0px 10px;\n}\n.form-guide .form-guide-item {\n width: 28px;\n padding: 5px 0;\n display: block;\n word-break: break-all;\n color: #B1BAD4;\n font-size: 14px;\n line-height: 16px;\n position: relative;\n}\n.form-guide .form-guide-item::after {\n content: '';\n display: block;\n width: 15px;\n height: 1px;\n background-color: #6E7588;\n position: absolute;\n bottom: 0px;\n left: 7px;\n}\n.form-guide .form-guide-bottom {\n padding: 5px 10px;\n display: flex;\n justify-content: center;\n}\n.form-guide .form-guide-item:last-child::after {\n content: '';\n display: none;\n width: 15px;\n height: 1px;\n background-color: #6E7588;\n position: absolute;\n bottom: 0px;\n left: 7px;\n}\n.white-card.bitsun-form-card-class .ant-card-body {\n background-color: #FFFFFF;\n padding: 0px;\n}\n.bitsun-form-card-class > .ant-card-body {\n margin-bottom: 10px;\n}\n.bitsun-form-card-class .ant-card-head {\n border: 0px;\n padding: 0px;\n height: 48px;\n}\n.bitsun-form-card-class .ant-card-body {\n padding: 12px 0 0;\n margin-top: -4px;\n background-color: #F3F3F3;\n}\n.bitsun-form-card-class .ant-card-head-title {\n display: flex;\n align-items: center;\n font-size: 16px;\n color: #000000;\n font-weight: 600;\n font-family: PingFangSC;\n background-color: #FFFFFF;\n padding: 8px 0;\n margin: 0px;\n}\n.bitsun-form-card-class .ant-card-head-title .title-left-line {\n display: inline-block;\n width: 4px;\n height: 100%;\n background-color: #005CFF;\n height: 20px;\n margin-right: 16px;\n}\n.field-group-hidden .ant-card-body {\n display: none !important;\n}\n";
|
|
10826
|
+
styleInject(css_248z$9);
|
|
10952
10827
|
|
|
10953
|
-
var _excluded$
|
|
10954
|
-
_excluded2$
|
|
10828
|
+
var _excluded$6 = ["children"],
|
|
10829
|
+
_excluded2$2 = ["children"];
|
|
10955
10830
|
var Field = function Field(_ref) {
|
|
10956
10831
|
var children = _ref.children,
|
|
10957
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
10832
|
+
props = _objectWithoutProperties(_ref, _excluded$6);
|
|
10958
10833
|
var _React$useState = React__default['default'].useState(true),
|
|
10959
10834
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
10960
10835
|
fieldGroupVisible = _React$useState2[0],
|
|
10961
10836
|
setVisible = _React$useState2[1];
|
|
10962
10837
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
10963
|
-
className: "bitsun-form-card-class\n ".concat(fieldGroupVisible ? '' : 'field-group-hidden', "\n ").concat(props.isWhiteCard ? 'white-card' : '', "\n "),
|
|
10838
|
+
className: "bitsun-form-card-class \n ".concat(fieldGroupVisible ? '' : 'field-group-hidden', " \n ").concat(props.isWhiteCard ? 'white-card' : '', "\n "),
|
|
10964
10839
|
id: props.id
|
|
10965
10840
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
10966
10841
|
className: "ant-card-head"
|
|
@@ -10999,16 +10874,12 @@ var GuideWrapper = /*#__PURE__*/function (_Component) {
|
|
|
10999
10874
|
var _this$props = this.props,
|
|
11000
10875
|
_this$props$children = _this$props.children,
|
|
11001
10876
|
children = _this$props$children === void 0 ? [] : _this$props$children,
|
|
11002
|
-
props = _objectWithoutProperties(_this$props, _excluded2$
|
|
11003
|
-
|
|
11004
|
-
var domList = Array.isArray(children) ? children : [children];
|
|
11005
|
-
var cardGroups = domList.filter(function (item) {
|
|
10877
|
+
props = _objectWithoutProperties(_this$props, _excluded2$2);
|
|
10878
|
+
var cardGroups = children.filter(function (item) {
|
|
11006
10879
|
var _item$props, _item$props2;
|
|
11007
10880
|
return (item === null || item === void 0 ? void 0 : (_item$props = item.props) === null || _item$props === void 0 ? void 0 : _item$props.id) && (item === null || item === void 0 ? void 0 : (_item$props2 = item.props) === null || _item$props2 === void 0 ? void 0 : _item$props2.title);
|
|
11008
10881
|
});
|
|
11009
|
-
return /*#__PURE__*/React__default['default'].createElement("div", _objectSpread2(
|
|
11010
|
-
className: classNames__default['default']('guide-wrapper', props === null || props === void 0 ? void 0 : props.className)
|
|
11011
|
-
}), children, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
10882
|
+
return /*#__PURE__*/React__default['default'].createElement("div", _objectSpread2({}, props), children, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
11012
10883
|
className: 'form-guide'
|
|
11013
10884
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
11014
10885
|
className: 'form-guide-top'
|
|
@@ -11026,12 +10897,6 @@ var GuideWrapper = /*#__PURE__*/function (_Component) {
|
|
|
11026
10897
|
block: 'center',
|
|
11027
10898
|
behavior: 'smooth'
|
|
11028
10899
|
});
|
|
11029
|
-
// 高亮
|
|
11030
|
-
var heightLight = currentDom.getElementsByClassName('ant-card-head-title');
|
|
11031
|
-
heightLight[0].style.backgroundColor = '#2065c7';
|
|
11032
|
-
setTimeout(function () {
|
|
11033
|
-
heightLight[0].style.backgroundColor = '';
|
|
11034
|
-
}, 800);
|
|
11035
10900
|
}
|
|
11036
10901
|
}, item.props.title);
|
|
11037
10902
|
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -11049,13 +10914,11 @@ GuideWrapper.Field = Field;
|
|
|
11049
10914
|
var exportlogo = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEQAAABECAYAAAA4E5OyAAAAAXNSR0IArs4c6QAAB0JJREFUeF7tnFtsFFUYx/9nehFaaMGooDZWrTvdRAwoog8SbdUHL4nRwJPxRtRo1GC8JxLwghDvGowvGi8RDC/iAw/6YLDVaLwiqKjbWVepbUhRDLTSUtsyx/zX85FhmHZnlu6yu51JGtjd2dnz/eb/Xc539qyC79BaW0op1/u01rqqt7e3tqamxvKfXw6PR0dH3aamphGl1EGfXUfYqoJOyGQyja7rXuO67mVa69OVUg0AagFUlQOAgDESxIjWekAptdOyrC2WZW1uaWnp9wvgEBB5wXGcJQDWaa1PAaABDALYC2DUT7hc4FDhAGoAzAZQD0AppXYBWG7b9iYvlCwQD4yVWusnCcGyrHUANluWtau2tnb/4ODg6KxZsw5zpXIBsm/fPqu+vr5mZGRkhuu6vNFU/3LCUUqtsm17tTBQpMc7T2Vord8D8JtSaolt29u11iRJlVTMITY5jrNAa70JwJlKqaVGKVVZhaTT6Qat9Q6t9Ryl1MW2bX/V0dFRzdfa2tpEFeUOJmtrZ2dnNjG0t7ePOY5zodb6U6XUbqXUvEQiMSBAbnBdd71lWWsTicQKwuAbKkYWAYaIjel0eo3ruo9alnVjIpHYkAXS1dX1FoBbtNaLk8nk5+JGlQxEbEylUhcppT4D8HZra+uyLBDHcTq01gurq6vntbS0/BFUi1QaHLExk8mcNjY2tkMptdW27XYG1WrHcb4GcMK0adPmNzc3751KQLq7u2cPDw9/D2CPbdsXqJ6enulDQ0PfAJiutV6QTCb/qcTsElCRZzNoKpWaqZTaDuBAXV3dItXX11ff39//rVKqqqGh4dy5c+cOTiUgtH9gYGCb1vpgY2Pj+TGQGMj/ziNeUO4KYVElBeJRFYqVAEQmogKCj/OGUu5AxPizALwAYA0AlgqcxR7W4whbL5UzELoJ51NnAODk8zxOQAGwTcF0mReUYgHh4CjjiaQcVeYC5HoA77LRY5pVvQCuAvBjPlCKAeSofDqH1OXadwF4lc0q0/DJALguHyiFBiIDngdgKYCmAAN5p/8F8BCA/SEA8Hx/IGW8uM/EEboRFdltlPJzFKUUEohIejGADwHMMC7j7dfSTfj4AIBmAH+Zx3734TkSE4JcSz7rVgCvmc/h+WmjlJ/Gue4R/AsJRD7sIwCXe+R8WP86BxDp5kszajqAswGcCuBEAHOMiwjkYQA3AUgCYN+GzaxfAVwLgFAE3LhCLBQQcZU6AAxybOJygOsB7ARwnCfA8lwGxOcADHlG6oXBTHIHgEsAnGMawmEyqcSU9032yfmeYgDZbdyFbkGDOIPOlRLl9ZMA3MMuOIDGAJfzG0glETD/GFd4nS7jNr+UikIECOXcDuBLI3N/4SRuIbJmIN4AYL7HOAKg0n43QfNP85jPMzDTNehK4i6EwedSxzqGeF2Gg+aaB4FQIRNVkqIMxpyNbE55Yg9djS7HjjgzB42WoMx/7zdZRpTBIu0KE1hzKfKQ0orhMmGBiDIYND8GQHehcXyea0FPA+jz3Wl5z4MmBgUF0tAwCjnbjaoQOZ9xYguAhQYGDbyTjV4DRs6TWEFlrATARTSBQSVdadyEWSbSKkGpKEQG/hSAFR7jWFe8adInIXhXCAUO647bjebpJqxQfwgRuAMzTikAEdm3AvjE1BYc7EsmLhAWXSeoWJMY8rqpSi/NVxlCp5SAiPQ5th4ze90TMjuwYOPaLOcwkWLGeE3mye6YRY0hVAHrkwVmgI8AeDakcd6pgPzfW9RFWog/1goRcMws35npOwu4toiNHinGIhkfFESONRCRt/Q0OEbWKQRCMPm0DhYBYAeNKtlmapbQ1ykVIJy6v2ju2AcArg7pLkE3mc0iAubxBIDHw5TspRJUJd0+A+BhM6h3ANxsyntOzsIeogJmnNvMm5jC15YjkJcB3GuMeMMYFLWoEiCsW5aZa60CsLocgdBd6DY8YiAAXjHTfAIRl5nSCnkMwN1G2pQ848mUBCIB83gA/M4r48AAgL/zSLkVEUPCZpAw51UUEKk0aXiuBa3x4JQlEM5GvzAlel5rrxNIhUDY+2DvhHUMj5JMu9JTZUedJXmYJnMYF/GfE9QfKUkgbPvNNEsNzCRbTY/1qCdiPiIEwsqWEFj682BLgU2nnOsxhS7d5fr8Yj27V1w4EheJuqgdVS00nmC49sOKlS4UOoUXanJHI+SuPADgedP+K8a+GiqPn8MVO3b5ubuhJBQiPs39NFxsYrP4ZM9CddQ7H+Z8WSdm4Ka78HsioWFkU5zZ2DDZHTPv4AUM3Yd/hT7oklwDOhQWonxgsYAQymQH0Vx2RlJGsYJqUGrMZchkvJ534C6GQibDwKJdIwbiQx0DiYFM7H3jKiTeHuLbHhJvIPJtIKKw4i1mni1mBBJvQvRtQkyn0/E2Ve821Xgjs2cjc7zVPWCre/xjCJ4fQ/DM/rI/LhL/XIa3oWB+XSb+QZUAKN7Cdyr95M5/xzmpLRDiZSsAAAAASUVORK5CYII=";
|
|
11050
10915
|
|
|
11051
10916
|
var ExportIcon = function ExportIcon(_ref) {
|
|
11052
|
-
var
|
|
11053
|
-
tableRef = _ref.tableRef
|
|
11054
|
-
|
|
11055
|
-
|
|
11056
|
-
|
|
11057
|
-
params = exportRequest.params,
|
|
11058
|
-
others = exportRequest.others;
|
|
10917
|
+
var request = _ref.request,
|
|
10918
|
+
tableRef = _ref.tableRef;
|
|
10919
|
+
var url = request.url,
|
|
10920
|
+
params = request.params,
|
|
10921
|
+
others = request.others;
|
|
11059
10922
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
11060
10923
|
style: {
|
|
11061
10924
|
cursor: 'pointer'
|
|
@@ -11066,27 +10929,21 @@ var ExportIcon = function ExportIcon(_ref) {
|
|
|
11066
10929
|
width: 32,
|
|
11067
10930
|
src: exportlogo,
|
|
11068
10931
|
onClick: function onClick() {
|
|
11069
|
-
var _tableRef$current;
|
|
10932
|
+
var _tableRef$current, _convertedParams$sele, _convertedParams$sele2;
|
|
11070
10933
|
var convertedParams = tableRef === null || tableRef === void 0 ? void 0 : (_tableRef$current = tableRef.current) === null || _tableRef$current === void 0 ? void 0 : _tableRef$current.getExportParams();
|
|
11071
10934
|
var requestData;
|
|
11072
10935
|
if (typeof params === 'function') {
|
|
11073
10936
|
requestData = _objectSpread2({}, _.omit(params(convertedParams), 'selectedRows'));
|
|
11074
|
-
requestData.pageSize = 100000;
|
|
11075
10937
|
} else if (_typeof(params) === 'object') {
|
|
11076
10938
|
requestData = _objectSpread2({}, params);
|
|
11077
10939
|
}
|
|
11078
10940
|
if (!params) {
|
|
11079
10941
|
requestData = _.omit(convertedParams, 'selectedRows');
|
|
11080
|
-
requestData.pageSize = 100000;
|
|
11081
10942
|
}
|
|
11082
|
-
|
|
11083
|
-
|
|
11084
|
-
|
|
11085
|
-
|
|
11086
|
-
return d[selectKey];
|
|
11087
|
-
})) === null || _convertedParams$sele2 === void 0 ? void 0 : _convertedParams$sele2.join(',');
|
|
11088
|
-
}
|
|
11089
|
-
requestUtil(_objectSpread2({
|
|
10943
|
+
requestData['qp-id-in'] = convertedParams === null || convertedParams === void 0 ? void 0 : (_convertedParams$sele = convertedParams.selectedRows) === null || _convertedParams$sele === void 0 ? void 0 : (_convertedParams$sele2 = _convertedParams$sele.map(function (d) {
|
|
10944
|
+
return d.id;
|
|
10945
|
+
})) === null || _convertedParams$sele2 === void 0 ? void 0 : _convertedParams$sele2.join(',');
|
|
10946
|
+
axios__default['default'](_objectSpread2({
|
|
11090
10947
|
url: url,
|
|
11091
10948
|
method: 'POST',
|
|
11092
10949
|
data: requestData
|
|
@@ -11103,10 +10960,10 @@ var ExportIcon = function ExportIcon(_ref) {
|
|
|
11103
10960
|
})));
|
|
11104
10961
|
};
|
|
11105
10962
|
|
|
11106
|
-
var css_248z$
|
|
11107
|
-
styleInject(css_248z$
|
|
10963
|
+
var css_248z$a = ".sort_table_wrapper .sort_table {\n display: flex;\n}\n.sort_table_wrapper .sort_table .sort_table_column_wrapper {\n width: 560px;\n margin-right: 10px;\n}\n.sort_table_wrapper .sort_table .sort_table_content_wrapper {\n width: 210px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count,\n.sort_table_wrapper .sort_table .sort_table_content_count {\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count span,\n.sort_table_wrapper .sort_table .sort_table_content_count span {\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column {\n margin-top: 10px;\n width: 560px;\n height: 430px;\n overflow: auto;\n padding: 10px;\n background: #ffffff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all_empty {\n width: 538px;\n line-height: 360px;\n text-align: center;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column_special {\n margin-top: 40px;\n width: 100px;\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #848484;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper {\n width: 144px;\n margin-top: 16px;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper + .ant-checkbox-wrapper {\n margin-left: 0px;\n}\n.sort_table_wrapper .sort_table .sort_table_content {\n margin-top: 10px;\n padding-top: 10px;\n padding-bottom: 10px;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_content .ant-table-wrapper {\n padding: 0px !important;\n}\n.sort_table_wrapper .sort_table .sort_table_content .sort_table_title {\n height: 32px;\n line-height: 32px;\n padding-left: 10px;\n color: gray;\n}\n.sort_table_wrapper div.ant-modal-header {\n width: 820px;\n height: 64px;\n background: #ffffff;\n padding: 20px;\n border: 0px;\n}\n.sort_table_wrapper div.ant-modal-header div.ant-modal-title {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n line-height: 24px;\n}\n.sort_table_wrapper .ant-modal-body {\n padding: 0 20px !important;\n}\n.sort_table_wrapper .ant-modal-close-x {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-input-affix-wrapper {\n padding: 0px;\n padding-right: 10px;\n}\n.sort_table_wrapper input {\n height: 32px;\n padding: 6px 4px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-input-prefix {\n width: 24px;\n height: 24px;\n margin: 4px;\n display: flex;\n justify-content: center;\n}\n.sort_table_wrapper .ant-modal-footer {\n height: 70px;\n border: 0;\n padding: 20px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn {\n width: 80px;\n height: 34px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn span {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 14px;\n letter-spacing: 0;\n text-align: center;\n line-height: 20px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn:first-child {\n margin-right: 524px;\n}\n.sort_table_wrapper .ant-table-wrapper::-webkit-scrollbar {\n display: none;\n}\n.sort_table_wrapper .ant-table-wrapper {\n margin-top: 10px;\n height: 364px;\n overflow: scroll;\n padding-bottom: 50px;\n}\n.sort_table_wrapper .ant-table-wrapper tr {\n height: 36px;\n}\n.sort_table_wrapper .ant-table-wrapper tr td {\n width: 24px !important;\n height: 36px !important;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:first-child {\n padding-left: 10px !important;\n padding-right: 0px !important;\n width: 115px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td img {\n cursor: pointer;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:not(:first-child) {\n padding-left: 0px !important;\n padding-right: 0px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child {\n padding-left: 0px !important;\n padding-right: 3px !important;\n width: 34px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child img {\n position: relative;\n top: 1px;\n}\n.global_tab_nav_style {\n top: 2px !important;\n}\n.row-dragging {\n background: #fafafa;\n border: 1px solid #ccc;\n z-index: 10000;\n}\n.row-dragging td {\n padding: 7px 16px;\n display: none;\n}\n.row-dragging td:first-child {\n display: inline-block;\n}\n.row-dragging .drag-visible {\n visibility: visible;\n}\n";
|
|
10964
|
+
styleInject(css_248z$a);
|
|
11108
10965
|
|
|
11109
|
-
var _excluded$
|
|
10966
|
+
var _excluded$7 = ["className", "style"];
|
|
11110
10967
|
var Search$1 = antd.Input.Search;
|
|
11111
10968
|
var DragHandle$1 = reactSortableHoc.SortableHandle(function () {
|
|
11112
10969
|
return /*#__PURE__*/React__default['default'].createElement("img", {
|
|
@@ -11151,7 +11008,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
11151
11008
|
fixed: item.fixed
|
|
11152
11009
|
};
|
|
11153
11010
|
});
|
|
11154
|
-
|
|
11011
|
+
axios__default['default']({
|
|
11155
11012
|
url: handleRequestUrl('/user', '/appConfig/saveUserOrder', appRequestConfig),
|
|
11156
11013
|
method: 'POST',
|
|
11157
11014
|
data: {
|
|
@@ -11217,17 +11074,6 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
11217
11074
|
})
|
|
11218
11075
|
});
|
|
11219
11076
|
};
|
|
11220
|
-
_this.isColumnsChange = function () {
|
|
11221
|
-
var pre = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
11222
|
-
var next = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
11223
|
-
var preKeyStr = pre.map(function (item) {
|
|
11224
|
-
return item.key || item.dataIndex;
|
|
11225
|
-
}).join(',');
|
|
11226
|
-
var nextKeyStr = next.map(function (item) {
|
|
11227
|
-
return item.key || item.dataIndex;
|
|
11228
|
-
}).join(',');
|
|
11229
|
-
return preKeyStr !== nextKeyStr;
|
|
11230
|
-
};
|
|
11231
11077
|
_this.columns = [{
|
|
11232
11078
|
title: '列名称',
|
|
11233
11079
|
dataIndex: 'title',
|
|
@@ -11484,7 +11330,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
11484
11330
|
_this.DraggableBodyRow = function (_ref2) {
|
|
11485
11331
|
var className = _ref2.className,
|
|
11486
11332
|
style = _ref2.style,
|
|
11487
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
11333
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$7);
|
|
11488
11334
|
var sortDataSource = _this.state.sortDataSource;
|
|
11489
11335
|
// function findIndex base on Table rowKey props and should always be a right array index
|
|
11490
11336
|
var index = sortDataSource.findIndex(function (x) {
|
|
@@ -11577,8 +11423,8 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
11577
11423
|
_createClass(SortableTable, [{
|
|
11578
11424
|
key: "componentWillReceiveProps",
|
|
11579
11425
|
value: function componentWillReceiveProps(nextProps) {
|
|
11580
|
-
var _this$props3;
|
|
11581
|
-
if (
|
|
11426
|
+
var _this$props3, _this$props4;
|
|
11427
|
+
if (((_this$props3 = this.props) === null || _this$props3 === void 0 ? void 0 : _this$props3.datasource) && JSON.stringify((_this$props4 = this.props) === null || _this$props4 === void 0 ? void 0 : _this$props4.datasource) != JSON.stringify(nextProps === null || nextProps === void 0 ? void 0 : nextProps.datasource)) {
|
|
11582
11428
|
this.setInitValue((nextProps === null || nextProps === void 0 ? void 0 : nextProps.datasource) || []);
|
|
11583
11429
|
}
|
|
11584
11430
|
}
|
|
@@ -11751,8 +11597,8 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
11751
11597
|
return SortableTable;
|
|
11752
11598
|
}(React__default['default'].Component);
|
|
11753
11599
|
|
|
11754
|
-
var _excluded$
|
|
11755
|
-
_excluded2$
|
|
11600
|
+
var _excluded$8 = ["onResize", "width"],
|
|
11601
|
+
_excluded2$3 = ["style", "columns", "tableCode", "appRequestConfig", "summary", "dynamicColumns", "scroll"];
|
|
11756
11602
|
var Text = antd.Typography.Text;
|
|
11757
11603
|
var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
11758
11604
|
_inherits(ColumnSettingSulaTable, _React$Component);
|
|
@@ -11865,7 +11711,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
11865
11711
|
_this.ResizeableTitle = function (props) {
|
|
11866
11712
|
var onResize = props.onResize,
|
|
11867
11713
|
width = props.width,
|
|
11868
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
11714
|
+
restProps = _objectWithoutProperties(props, _excluded$8);
|
|
11869
11715
|
if (!width) {
|
|
11870
11716
|
return /*#__PURE__*/React__default['default'].createElement("th", _objectSpread2({}, restProps));
|
|
11871
11717
|
}
|
|
@@ -11924,7 +11770,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
11924
11770
|
dynamicColumns = _this$props3$dynamicC === void 0 ? [] : _this$props3$dynamicC,
|
|
11925
11771
|
_this$props3$scroll = _this$props3.scroll,
|
|
11926
11772
|
scroll = _this$props3$scroll === void 0 ? {} : _this$props3$scroll,
|
|
11927
|
-
restProps = _objectWithoutProperties(_this$props3, _excluded2$
|
|
11773
|
+
restProps = _objectWithoutProperties(_this$props3, _excluded2$3);
|
|
11928
11774
|
var otherTableInfo = _objectSpread2({}, restProps);
|
|
11929
11775
|
var showSummary = null;
|
|
11930
11776
|
if (this.state.showColumns.length) {
|
|
@@ -11999,8 +11845,8 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
11999
11845
|
return ColumnSettingSulaTable;
|
|
12000
11846
|
}(React__default['default'].Component);
|
|
12001
11847
|
|
|
12002
|
-
var _excluded$
|
|
12003
|
-
_excluded2$
|
|
11848
|
+
var _excluded$9 = ["onResize", "width"],
|
|
11849
|
+
_excluded2$4 = ["columns", "tableCode", "appRequestConfig", "summary", "dynamicColumns", "scroll"];
|
|
12004
11850
|
var Text$1 = antd.Typography.Text;
|
|
12005
11851
|
var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
12006
11852
|
_inherits(ColumnSettingTable, _React$Component);
|
|
@@ -12112,7 +11958,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
12112
11958
|
_this.ResizeableTitle = function (props) {
|
|
12113
11959
|
var onResize = props.onResize,
|
|
12114
11960
|
width = props.width,
|
|
12115
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
11961
|
+
restProps = _objectWithoutProperties(props, _excluded$9);
|
|
12116
11962
|
if (!width) {
|
|
12117
11963
|
return /*#__PURE__*/React__default['default'].createElement("th", _objectSpread2({}, restProps));
|
|
12118
11964
|
}
|
|
@@ -12168,7 +12014,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
12168
12014
|
dynamicColumns = _this$props3$dynamicC === void 0 ? [] : _this$props3$dynamicC,
|
|
12169
12015
|
_this$props3$scroll = _this$props3.scroll,
|
|
12170
12016
|
scroll = _this$props3$scroll === void 0 ? {} : _this$props3$scroll,
|
|
12171
|
-
restProps = _objectWithoutProperties(_this$props3, _excluded2$
|
|
12017
|
+
restProps = _objectWithoutProperties(_this$props3, _excluded2$4);
|
|
12172
12018
|
var otherTableInfo = _objectSpread2({}, restProps);
|
|
12173
12019
|
var showSummary = null;
|
|
12174
12020
|
if (this.state.showColumns.length) {
|
|
@@ -12311,8 +12157,8 @@ var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
|
12311
12157
|
return routerMap;
|
|
12312
12158
|
};
|
|
12313
12159
|
|
|
12314
|
-
var css_248z$
|
|
12315
|
-
styleInject(css_248z$
|
|
12160
|
+
var css_248z$b = ".detail_page_head {\n height: 54px;\n display: flex;\n align-items: center;\n background-color: #FFFFFF;\n border-bottom: 1px solid #f0f0f0;\n}\n.detail_page_head .ant-breadcrumb {\n display: block !important;\n}\n.detail_page_head .ant-breadcrumb .ant-breadcrumb-separator {\n margin: 0 2px;\n}\n.detail_page_head .ant-breadcrumb li .bread_name {\n color: #8A8F8D;\n font-size: 12px;\n cursor: pointer;\n}\n.detail_page_head .ant-breadcrumb li .bread_name:hover {\n color: #000000d9;\n}\n.back_home_img_content {\n display: inline-block;\n height: 28px;\n width: 28px;\n border: 1px solid #BABABA;\n margin: 0 12px 0 20px;\n border-radius: 14px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n}\n.back_home_img_content .anticon-arrow-left {\n color: #BABABA;\n}\n.back_home_img_content:hover {\n background-color: #005CFF;\n border: 1px solid #005CFF;\n}\n.back_home_img_content:hover .anticon-arrow-left {\n color: #FFFFFF;\n}\n.detail_page_title_box {\n flex-grow: 1;\n}\n.detail_page_title {\n height: 20px;\n font-family: PingFangSC;\n font-weight: 600;\n font-size: 16px;\n margin-top: 2px;\n color: #000000;\n letter-spacing: 0;\n line-height: 20px;\n}\n.detail_page_btns {\n display: flex;\n gap: 8px;\n margin-right: 20px;\n}\n.detail_page_btns button {\n height: 32px !important;\n display: flex;\n align-items: center;\n gap: 2px;\n border-radius: 3px;\n padding: 0 10px;\n}\n.detail_page_btns .ant-btn-dangerous {\n background-color: #EC5246 !important;\n}\n";
|
|
12161
|
+
styleInject(css_248z$b);
|
|
12316
12162
|
|
|
12317
12163
|
var quanping = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2234px%22%20height%3D%2234px%22%20viewBox%3D%220%200%2034%2034%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%9F%A9%E5%BD%A2%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E5%88%97%E8%A1%A8%E5%8A%9F%E8%83%BD%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E6%98%9F%E6%BE%9C-%E6%90%9C%E7%B4%A2-%E6%90%9C%E7%B4%A2%E5%8A%9F%E8%83%BD%22%20transform%3D%22translate%28-1823.000000%2C%20-297.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E6%90%9C%E7%B4%A2%E7%BB%84%E4%BB%B6-%E6%A0%B7%E5%BC%8F%E4%B8%80%22%20transform%3D%22translate%28230.000000%2C%20284.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%A1%AE%E5%AE%9A%E5%A4%87%E4%BB%BD-2%22%20transform%3D%22translate%281593.000000%2C%2013.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M5.55801813%2C1%20L28.4419819%2C1%20C30.0269041%2C1%2030.6016352%2C1.16502331%2031.181059%2C1.47490258%20C31.7604829%2C1.78478186%2032.2152181%2C2.2395171%2032.5250974%2C2.81894097%20C32.8349767%2C3.39836484%2033%2C3.97309593%2033%2C5.55801813%20L33%2C28.4419819%20C33%2C30.0269041%2032.8349767%2C30.6016352%2032.5250974%2C31.181059%20C32.2152181%2C31.7604829%2031.7604829%2C32.2152181%2031.181059%2C32.5250974%20C30.6016352%2C32.8349767%2030.0269041%2C33%2028.4419819%2C33%20L5.55801813%2C33%20C3.97309593%2C33%203.39836484%2C32.8349767%202.81894097%2C32.5250974%20C2.2395171%2C32.2152181%201.78478186%2C31.7604829%201.47490258%2C31.181059%20C1.16502331%2C30.6016352%201%2C30.0269041%201%2C28.4419819%20L1%2C5.55801813%20C1%2C3.97309593%201.16502331%2C3.39836484%201.47490258%2C2.81894097%20C1.78478186%2C2.2395171%202.2395171%2C1.78478186%202.81894097%2C1.47490258%20C3.39836484%2C1.16502331%203.97309593%2C1%205.55801813%2C1%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20stroke%3D%22%23D9D9D9%22%20stroke-width%3D%220.888888889%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22scanning%22%20transform%3D%22translate%289.000000%2C%209.000000%29%22%20fill%3D%22%23000000%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M5.21873562%2C9.69278114%20L6.28954184%2C10.7432953%20L2.532%2C14.5%20L5.24949999%2C14.5%20L5.24949999%2C16%20L1.5%2C16%20C0.671572876%2C16%200%2C15.3284271%200%2C14.5%20L0%2C11%20L1.5%2C11%20L1.5%2C13.41%20L5.21873562%2C9.69278114%20Z%20M10.7898541%2C9.72266777%20L14.499%2C13.431%20L14.5%2C11%20L16%2C11%20L16%2C14.5%20C16%2C15.3284271%2015.3284271%2C16%2014.5%2C16%20L10.7495%2C16%20L10.7495%2C14.5%20L13.446%2C14.5%20L9.71904783%2C10.7731819%20L10.7898541%2C9.72266777%20Z%20M14.5%2C0%20C15.3284271%2C0%2016%2C0.671572876%2016%2C1.5%20L16%2C5%20L14.5%2C5%20L14.499%2C2.588%20L10.779708%2C6.3074783%20L9.71904783%2C5.24681813%20L13.465%2C1.5%20L10.75%2C1.5%20L10.75%2C0%20L14.5%2C0%20Z%20M5.25000001%2C0%20L5.25000001%2C1.5%20L2.567%2C1.5%20L6.31400442%2C5.24681813%20L5.25334424%2C6.3074783%20L1.5%2C2.554%20L1.5%2C5%20L0%2C5%20L0%2C1.5%20C0%2C0.671572876%200.671572876%2C0%201.5%2C0%20L5.25000001%2C0%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
12318
12164
|
|
|
@@ -12326,15 +12172,15 @@ var deleteIcon = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
12326
12172
|
|
|
12327
12173
|
var moreIcon = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2220px%22%20height%3D%2220px%22%20viewBox%3D%220%200%2020%2020%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%BC%96%E7%BB%84%2014%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E9%A1%B6%E9%83%A8%E5%AF%BC%E8%88%AA%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E6%9C%80%E6%96%B0%E6%A1%86%E6%9E%B6-%E4%B8%8B%E6%8B%89%E5%BC%8F%E5%B1%95%E5%BC%80%22%20transform%3D%22translate%28-1743.000000%2C%20-94.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-7%22%20transform%3D%22translate%28160.000000%2C%2050.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22tab%E5%AF%BC%E8%88%AA%E5%A4%87%E4%BB%BD-7%22%20transform%3D%22translate%280.000000%2C%2026.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-3%22%20transform%3D%22translate%281573.000000%2C%2012.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-2%22%20transform%3D%22translate%2810.000000%2C%206.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20id%3D%22%E8%92%99%E7%89%88%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2220%22%20height%3D%2220%22%3E%3C%2Frect%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpolygon%20id%3D%22%E8%B7%AF%E5%BE%84%22%20fill%3D%22%23FFFFFF%22%20fill-rule%3D%22nonzero%22%20transform%3D%22translate%2810.500000%2C%2010.022232%29%20rotate%28-90.000000%29%20translate%28-10.500000%2C%20-10.022232%29%20%22%20points%3D%2214%204.9775377%2013.0224623%204%207%2010.0252289%2013.0220012%2016.0444635%2014%2015.0660036%208.95599763%2010.0247678%22%3E%3C%2Fpolygon%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
12328
12174
|
|
|
12329
|
-
var css_248z$
|
|
12330
|
-
styleInject(css_248z$
|
|
12175
|
+
var css_248z$c = "";
|
|
12176
|
+
styleInject(css_248z$c);
|
|
12331
12177
|
|
|
12332
|
-
var _excluded$
|
|
12178
|
+
var _excluded$a = ["message", "type"];
|
|
12333
12179
|
var CommonAlert = (function (props) {
|
|
12334
12180
|
var message = props.message,
|
|
12335
12181
|
_props$type = props.type,
|
|
12336
12182
|
type = _props$type === void 0 ? 'info' : _props$type,
|
|
12337
|
-
reset = _objectWithoutProperties(props, _excluded$
|
|
12183
|
+
reset = _objectWithoutProperties(props, _excluded$a);
|
|
12338
12184
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
12339
12185
|
style: {
|
|
12340
12186
|
width: '100%',
|
|
@@ -12355,7 +12201,7 @@ var CommonAlert = (function (props) {
|
|
|
12355
12201
|
}, reset)));
|
|
12356
12202
|
});
|
|
12357
12203
|
|
|
12358
|
-
var _excluded$
|
|
12204
|
+
var _excluded$b = ["children"];
|
|
12359
12205
|
var iconMap = {
|
|
12360
12206
|
edit: /*#__PURE__*/React__default['default'].createElement("img", {
|
|
12361
12207
|
src: editIcon
|
|
@@ -12377,7 +12223,7 @@ var index$4 = (function (props) {
|
|
|
12377
12223
|
_useState2 = _slicedToArray(_useState, 1),
|
|
12378
12224
|
id = _useState2[0];
|
|
12379
12225
|
var children = props.children,
|
|
12380
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
12226
|
+
restProps = _objectWithoutProperties(props, _excluded$b);
|
|
12381
12227
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
12382
12228
|
id: id,
|
|
12383
12229
|
className: 'detail_page_wrapper'
|
|
@@ -12386,7 +12232,7 @@ var index$4 = (function (props) {
|
|
|
12386
12232
|
}, restProps)), children);
|
|
12387
12233
|
});
|
|
12388
12234
|
var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref) {
|
|
12389
|
-
var
|
|
12235
|
+
var _routes$find;
|
|
12390
12236
|
var pathname = _ref.pathname,
|
|
12391
12237
|
_ref$actionList = _ref.actionList,
|
|
12392
12238
|
actionList = _ref$actionList === void 0 ? [] : _ref$actionList,
|
|
@@ -12398,8 +12244,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
12398
12244
|
donotNeedShowScreenIcon = _ref$donotNeedShowScr === void 0 ? false : _ref$donotNeedShowScr,
|
|
12399
12245
|
title = _ref.title,
|
|
12400
12246
|
pathToRegexp = _ref.pathToRegexp,
|
|
12401
|
-
backHistoryPath = _ref.backHistoryPath
|
|
12402
|
-
onBack = _ref.onBack;
|
|
12247
|
+
backHistoryPath = _ref.backHistoryPath;
|
|
12403
12248
|
var _useState3 = React.useState(false),
|
|
12404
12249
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
12405
12250
|
isFullScreen = _useState4[0],
|
|
@@ -12408,9 +12253,6 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
12408
12253
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
12409
12254
|
breadcrumbArr = _useState6[0],
|
|
12410
12255
|
setBreadCrumbArr = _useState6[1];
|
|
12411
|
-
var wrapperContainerRef = React.useRef(null);
|
|
12412
|
-
var asideWidth = (_clientWidth = (_ref2 = document.querySelector('.ant-layout-sider') || ((_window$parent = window.parent) === null || _window$parent === void 0 ? void 0 : (_window$parent$docume = _window$parent.document) === null || _window$parent$docume === void 0 ? void 0 : (_window$parent$docume2 = _window$parent$docume.querySelector) === null || _window$parent$docume2 === void 0 ? void 0 : _window$parent$docume2.call(_window$parent$docume, '.ant-layout-sider'))) === null || _ref2 === void 0 ? void 0 : _ref2.clientWidth) !== null && _clientWidth !== void 0 ? _clientWidth : 0;
|
|
12413
|
-
var wrapperSize = ahooks.useSize(wrapperContainerRef);
|
|
12414
12256
|
var basePath = window.top == window ? '' : "/".concat(itemPath);
|
|
12415
12257
|
var menuRoutes = window.top == window ? ((_routes$find = routes.find(function (item) {
|
|
12416
12258
|
return item.path === '/';
|
|
@@ -12518,17 +12360,11 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
12518
12360
|
src: moreIcon
|
|
12519
12361
|
}))));
|
|
12520
12362
|
};
|
|
12521
|
-
return /*#__PURE__*/React__default['default'].createElement(
|
|
12522
|
-
|
|
12523
|
-
|
|
12524
|
-
|
|
12525
|
-
|
|
12526
|
-
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
12527
|
-
className: 'detail_page_head',
|
|
12528
|
-
style: {
|
|
12529
|
-
width: (_wrapperSize$width = wrapperSize === null || wrapperSize === void 0 ? void 0 : wrapperSize.width) !== null && _wrapperSize$width !== void 0 ? _wrapperSize$width : "calc( 100vh - ".concat(asideWidth, "px )"),
|
|
12530
|
-
left: asideWidth
|
|
12531
|
-
}
|
|
12363
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Anchor, {
|
|
12364
|
+
key: "".concat(pathname, "_anchor"),
|
|
12365
|
+
offsetTop: window.top == window ? 78 : 0
|
|
12366
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
12367
|
+
className: 'detail_page_head'
|
|
12532
12368
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
12533
12369
|
className: 'back_home_img_content',
|
|
12534
12370
|
onClick: function onClick() {
|
|
@@ -12586,7 +12422,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
12586
12422
|
},
|
|
12587
12423
|
width: 32,
|
|
12588
12424
|
src: quanping
|
|
12589
|
-
}))))) : null)), alertProps && ( /*#__PURE__*/React__default['default'].createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
12425
|
+
}))))) : null)), alertProps && ( /*#__PURE__*/React__default['default'].createElement(CommonAlert, _objectSpread2({}, alertProps)))));
|
|
12590
12426
|
}, function (prevProps, nextProps) {
|
|
12591
12427
|
if (JSON.stringify(prevProps.actionList) != JSON.stringify(nextProps.actionList) || prevProps.title !== nextProps.title) {
|
|
12592
12428
|
return false;
|
|
@@ -12594,10 +12430,10 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
12594
12430
|
return true;
|
|
12595
12431
|
});
|
|
12596
12432
|
|
|
12597
|
-
var css_248z$
|
|
12598
|
-
styleInject(css_248z$
|
|
12433
|
+
var css_248z$d = ".home_page_head {\n height: 54px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n background-color: #FFFFFF;\n border-bottom: 1px solid #f0f0f0;\n padding: 0 20px;\n}\n.home_page_head .home_page_title {\n height: 20px;\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 16px;\n color: #000000;\n letter-spacing: 0;\n line-height: 20px;\n flex-grow: 1;\n margin-top: 2px;\n}\n.home_page_head .ant-breadcrumb {\n display: block !important;\n}\n.home_page_head .ant-breadcrumb .ant-breadcrumb-separator {\n margin: 0 2px;\n}\n.home_page_head .ant-breadcrumb li .bread_name {\n color: #8A8F8D;\n font-size: 12px;\n line-height: 16px;\n cursor: pointer;\n}\n";
|
|
12434
|
+
styleInject(css_248z$d);
|
|
12599
12435
|
|
|
12600
|
-
var _excluded$
|
|
12436
|
+
var _excluded$c = ["children"];
|
|
12601
12437
|
var index$5 = (function (props) {
|
|
12602
12438
|
var _useLocation = umi.useLocation(),
|
|
12603
12439
|
pathname = _useLocation.pathname;
|
|
@@ -12605,7 +12441,7 @@ var index$5 = (function (props) {
|
|
|
12605
12441
|
_useState2 = _slicedToArray(_useState, 1),
|
|
12606
12442
|
id = _useState2[0];
|
|
12607
12443
|
var children = props.children,
|
|
12608
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
12444
|
+
restProps = _objectWithoutProperties(props, _excluded$c);
|
|
12609
12445
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
12610
12446
|
id: id,
|
|
12611
12447
|
className: 'home_page_wrapper'
|
|
@@ -12705,10 +12541,10 @@ var HeaderWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
12705
12541
|
return true;
|
|
12706
12542
|
});
|
|
12707
12543
|
|
|
12708
|
-
var css_248z$
|
|
12709
|
-
styleInject(css_248z$
|
|
12544
|
+
var css_248z$e = ".sort_table_wrapper .sort_table {\n display: flex;\n}\n.sort_table_wrapper .sort_table .sort_table_column_wrapper {\n width: 560px;\n margin-right: 10px;\n}\n.sort_table_wrapper .sort_table .sort_table_content_wrapper {\n width: 210px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count,\n.sort_table_wrapper .sort_table .sort_table_content_count {\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count span,\n.sort_table_wrapper .sort_table .sort_table_content_count span {\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column {\n margin-top: 10px;\n width: 560px;\n height: 430px;\n overflow: auto;\n padding: 10px;\n background: #ffffff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all_empty {\n width: 538px;\n line-height: 360px;\n text-align: center;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column_special {\n margin-top: 40px;\n width: 100px;\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #848484;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper {\n width: 144px;\n margin-top: 16px;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper + .ant-checkbox-wrapper {\n margin-left: 0px;\n}\n.sort_table_wrapper .sort_table .sort_table_content {\n margin-top: 10px;\n padding-top: 10px;\n padding-bottom: 10px;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_content .ant-table-wrapper {\n padding: 0px !important;\n}\n.sort_table_wrapper .sort_table .sort_table_content .sort_table_title {\n height: 32px;\n line-height: 32px;\n padding-left: 10px;\n color: gray;\n}\n.sort_table_wrapper div.ant-modal-header {\n width: 820px;\n height: 64px;\n background: #ffffff;\n padding: 20px;\n border: 0px;\n}\n.sort_table_wrapper div.ant-modal-header div.ant-modal-title {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n line-height: 24px;\n}\n.sort_table_wrapper .ant-modal-body {\n padding: 0 20px !important;\n}\n.sort_table_wrapper .ant-modal-close-x {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-input-affix-wrapper {\n padding: 0px;\n padding-right: 10px;\n}\n.sort_table_wrapper input {\n height: 32px;\n padding: 6px 4px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-input-prefix {\n width: 24px;\n height: 24px;\n margin: 4px;\n display: flex;\n justify-content: center;\n}\n.sort_table_wrapper .ant-modal-footer {\n height: 70px;\n border: 0;\n padding: 20px;\n display: flex;\n justify-content: space-between;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn {\n width: 80px;\n height: 34px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn span {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 14px;\n letter-spacing: 0;\n text-align: center;\n line-height: 20px;\n}\n.sort_table_wrapper .ant-table-wrapper::-webkit-scrollbar {\n display: none;\n}\n.sort_table_wrapper .ant-table-wrapper {\n margin-top: 10px;\n height: 364px;\n overflow: scroll;\n padding-bottom: 50px;\n}\n.sort_table_wrapper .ant-table-wrapper tr {\n height: 36px;\n}\n.sort_table_wrapper .ant-table-wrapper tr td {\n width: 24px !important;\n height: 36px !important;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:first-child {\n padding-left: 10px !important;\n padding-right: 0px !important;\n width: 115px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td img {\n cursor: pointer;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:not(:first-child) {\n padding-left: 0px !important;\n padding-right: 0px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child {\n padding-left: 0px !important;\n padding-right: 3px !important;\n width: 34px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child img {\n position: relative;\n top: 1px;\n}\n";
|
|
12545
|
+
styleInject(css_248z$e);
|
|
12710
12546
|
|
|
12711
|
-
var _excluded$
|
|
12547
|
+
var _excluded$d = ["className", "style"];
|
|
12712
12548
|
var DragHandle$2 = reactSortableHoc.SortableHandle(function () {
|
|
12713
12549
|
return /*#__PURE__*/React__default['default'].createElement("img", {
|
|
12714
12550
|
width: 25,
|
|
@@ -12754,7 +12590,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
12754
12590
|
};
|
|
12755
12591
|
}) : '';
|
|
12756
12592
|
return new Promise(function (resolve, reject) {
|
|
12757
|
-
|
|
12593
|
+
axios__default['default']({
|
|
12758
12594
|
url: handleRequestUrl('/user', '/appConfig/saveUserOrder', appRequestConfig),
|
|
12759
12595
|
method: 'POST',
|
|
12760
12596
|
data: {
|
|
@@ -12802,8 +12638,8 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
12802
12638
|
currentSetting[0].detail = JSON.stringify(configvalue);
|
|
12803
12639
|
} else {
|
|
12804
12640
|
configArray.push({
|
|
12805
|
-
code: bsTableCode,
|
|
12806
|
-
detail: JSON.stringify(configvalue)
|
|
12641
|
+
"code": bsTableCode,
|
|
12642
|
+
"detail": JSON.stringify(configvalue)
|
|
12807
12643
|
});
|
|
12808
12644
|
}
|
|
12809
12645
|
localStorage.setItem(ENUM.BROWSER_CACHE.COLUMN_CONDITION, JSON.stringify(configArray));
|
|
@@ -13075,9 +12911,10 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
13075
12911
|
// this.patchUserColumnConfig('');
|
|
13076
12912
|
// return;
|
|
13077
12913
|
// }
|
|
13078
|
-
_this.patchUserColumnConfig(sortDataSource);
|
|
12914
|
+
return _this.patchUserColumnConfig(sortDataSource);
|
|
13079
12915
|
};
|
|
13080
12916
|
_this.handleCancel = function (e) {
|
|
12917
|
+
console.log(e);
|
|
13081
12918
|
_this.setState({
|
|
13082
12919
|
visible: false
|
|
13083
12920
|
});
|
|
@@ -13140,7 +12977,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
13140
12977
|
_this.DraggableBodyRow = function (_ref2) {
|
|
13141
12978
|
var className = _ref2.className,
|
|
13142
12979
|
style = _ref2.style,
|
|
13143
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
12980
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$d);
|
|
13144
12981
|
var sortDataSource = _this.state.sortDataSource;
|
|
13145
12982
|
// function findIndex base on Table rowKey props and should always be a right array index
|
|
13146
12983
|
var index = sortDataSource.findIndex(function (x) {
|
|
@@ -13157,11 +12994,11 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
13157
12994
|
if (!e.target.checked) {
|
|
13158
12995
|
_this.setState({
|
|
13159
12996
|
sortDataSource: sortDataSource.filter(function (item) {
|
|
13160
|
-
return
|
|
12997
|
+
return item.title !== title;
|
|
13161
12998
|
}),
|
|
13162
12999
|
isDefaultValue: false,
|
|
13163
13000
|
dataSource: _toConsumableArray(dataSource.map(function (item) {
|
|
13164
|
-
if (
|
|
13001
|
+
if (item.title === title) {
|
|
13165
13002
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
13166
13003
|
hidden: true
|
|
13167
13004
|
});
|
|
@@ -13174,7 +13011,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
13174
13011
|
var _fixedRight = [];
|
|
13175
13012
|
var noFixedSortSource = [];
|
|
13176
13013
|
var newSortData = [].concat(_toConsumableArray(sortDataSource), _toConsumableArray(dataSource.filter(function (item) {
|
|
13177
|
-
return
|
|
13014
|
+
return item.title === title;
|
|
13178
13015
|
}).map(function (source) {
|
|
13179
13016
|
return _objectSpread2(_objectSpread2({}, source), {}, {
|
|
13180
13017
|
hidden: false
|
|
@@ -13193,7 +13030,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
13193
13030
|
sortDataSource: [].concat(_fixedLeft, noFixedSortSource, _fixedRight),
|
|
13194
13031
|
isDefaultValue: false,
|
|
13195
13032
|
dataSource: _toConsumableArray(dataSource.map(function (item) {
|
|
13196
|
-
if (
|
|
13033
|
+
if (item.title === title) {
|
|
13197
13034
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
13198
13035
|
hidden: false
|
|
13199
13036
|
});
|
|
@@ -13284,8 +13121,8 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
13284
13121
|
visible = _this$state5.visible,
|
|
13285
13122
|
onSearchSort = _this$state5.onSearchSort;
|
|
13286
13123
|
var seatchDataSource = dataSource.filter(function (item) {
|
|
13287
|
-
var
|
|
13288
|
-
return (
|
|
13124
|
+
var _item$title;
|
|
13125
|
+
return (item === null || item === void 0 ? void 0 : (_item$title = item.title) === null || _item$title === void 0 ? void 0 : _item$title.indexOf(searchDataSource || '')) > -1;
|
|
13289
13126
|
});
|
|
13290
13127
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13291
13128
|
className: 'sort_table_wrapper'
|
|
@@ -13302,7 +13139,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
13302
13139
|
style: {
|
|
13303
13140
|
marginRight: 0
|
|
13304
13141
|
}
|
|
13305
|
-
}, "\u6062\u590D\u9ED8\u8BA4"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
13142
|
+
}, "\u6062\u590D\u9ED8\u8BA4"), ",", /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
13306
13143
|
key: "back",
|
|
13307
13144
|
onClick: this.handleResetSetting
|
|
13308
13145
|
}, "\u91CD\u7F6E\u8BBE\u7F6E")), /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
@@ -13311,7 +13148,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
13311
13148
|
style: {
|
|
13312
13149
|
marginRight: 0
|
|
13313
13150
|
}
|
|
13314
|
-
}, "\u53D6\u6D88"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
13151
|
+
}, "\u53D6\u6D88"), ",", /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
13315
13152
|
key: "submit",
|
|
13316
13153
|
type: "primary",
|
|
13317
13154
|
onClick: this.handleOk
|
|
@@ -13378,9 +13215,8 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
13378
13215
|
}
|
|
13379
13216
|
}, item.title);
|
|
13380
13217
|
}) : dataSource.filter(function (item) {
|
|
13381
|
-
var
|
|
13382
|
-
|
|
13383
|
-
return (title === null || title === void 0 ? void 0 : (_title$indexOf = title.indexOf) === null || _title$indexOf === void 0 ? void 0 : _title$indexOf.call(title, '人')) === -1 && (title === null || title === void 0 ? void 0 : (_title$indexOf2 = title.indexOf) === null || _title$indexOf2 === void 0 ? void 0 : _title$indexOf2.call(title, '日期')) === -1;
|
|
13218
|
+
var _item$title2, _item$title3;
|
|
13219
|
+
return (item === null || item === void 0 ? void 0 : (_item$title2 = item.title) === null || _item$title2 === void 0 ? void 0 : _item$title2.indexOf('人')) === -1 && (item === null || item === void 0 ? void 0 : (_item$title3 = item.title) === null || _item$title3 === void 0 ? void 0 : _item$title3.indexOf('日期')) === -1;
|
|
13384
13220
|
}).map(function (item) {
|
|
13385
13221
|
return /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
13386
13222
|
checked: !item.hidden,
|
|
@@ -13399,8 +13235,8 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
13399
13235
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13400
13236
|
className: 'sort_table_column_all'
|
|
13401
13237
|
}, _toConsumableArray(dataSource).filter(function (item) {
|
|
13402
|
-
var _item$
|
|
13403
|
-
return (item === null || item === void 0 ? void 0 : (_item$
|
|
13238
|
+
var _item$title4, _item$title5;
|
|
13239
|
+
return (item === null || item === void 0 ? void 0 : (_item$title4 = item.title) === null || _item$title4 === void 0 ? void 0 : _item$title4.indexOf('人')) > -1 || (item === null || item === void 0 ? void 0 : (_item$title5 = item.title) === null || _item$title5 === void 0 ? void 0 : _item$title5.indexOf('日期')) > -1;
|
|
13404
13240
|
}).map(function (item) {
|
|
13405
13241
|
return /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
13406
13242
|
checked: !item.hidden,
|
|
@@ -13436,8 +13272,8 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
13436
13272
|
pagination: false,
|
|
13437
13273
|
showHeader: false,
|
|
13438
13274
|
dataSource: onSearchSort ? sortDataSource.filter(function (item) {
|
|
13439
|
-
var
|
|
13440
|
-
return (
|
|
13275
|
+
var _item$title6;
|
|
13276
|
+
return (item === null || item === void 0 ? void 0 : (_item$title6 = item.title) === null || _item$title6 === void 0 ? void 0 : _item$title6.indexOf(onSearchSort)) > -1;
|
|
13441
13277
|
}) : sortDataSource,
|
|
13442
13278
|
columns: this.columns,
|
|
13443
13279
|
rowKey: "key",
|
|
@@ -13459,7 +13295,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
13459
13295
|
return SortableTable;
|
|
13460
13296
|
}(React__default['default'].Component);
|
|
13461
13297
|
|
|
13462
|
-
var _excluded$
|
|
13298
|
+
var _excluded$e = ["className", "style"];
|
|
13463
13299
|
var DragHandle$3 = reactSortableHoc.SortableHandle(function () {
|
|
13464
13300
|
return /*#__PURE__*/React__default['default'].createElement("img", {
|
|
13465
13301
|
width: 25,
|
|
@@ -13501,7 +13337,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13501
13337
|
hidden: item.hidden
|
|
13502
13338
|
};
|
|
13503
13339
|
}) : '';
|
|
13504
|
-
|
|
13340
|
+
axios__default['default']({
|
|
13505
13341
|
url: handleRequestUrl('/user', '/appConfig/saveQueryCriteria', appRequestConfig),
|
|
13506
13342
|
method: 'POST',
|
|
13507
13343
|
data: {
|
|
@@ -13710,7 +13546,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13710
13546
|
_this.DraggableBodyRow = function (_ref2) {
|
|
13711
13547
|
var className = _ref2.className,
|
|
13712
13548
|
style = _ref2.style,
|
|
13713
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
13549
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$e);
|
|
13714
13550
|
var sortDataSource = _this.state.sortDataSource;
|
|
13715
13551
|
var index = sortDataSource.findIndex(function (x) {
|
|
13716
13552
|
return x.name === restProps['data-row-key'];
|
|
@@ -13845,7 +13681,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13845
13681
|
style: {
|
|
13846
13682
|
marginRight: 0
|
|
13847
13683
|
}
|
|
13848
|
-
}, "\u6062\u590D\u9ED8\u8BA4"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
13684
|
+
}, "\u6062\u590D\u9ED8\u8BA4"), ",", /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
13849
13685
|
key: "back",
|
|
13850
13686
|
onClick: this.handleResetSetting
|
|
13851
13687
|
}, "\u91CD\u7F6E\u8BBE\u7F6E")), /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
@@ -13854,7 +13690,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13854
13690
|
style: {
|
|
13855
13691
|
marginRight: 0
|
|
13856
13692
|
}
|
|
13857
|
-
}, "\u53D6\u6D88"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
13693
|
+
}, "\u53D6\u6D88"), ",", /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
13858
13694
|
key: "submit",
|
|
13859
13695
|
type: "primary",
|
|
13860
13696
|
onClick: this.handleOk
|
|
@@ -13966,16 +13802,12 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13966
13802
|
return SearchItemTable;
|
|
13967
13803
|
}(React__default['default'].Component);
|
|
13968
13804
|
|
|
13969
|
-
var
|
|
13970
|
-
styleInject(css_248z$g);
|
|
13971
|
-
|
|
13972
|
-
var _excluded$g = ["onResize", "width"];
|
|
13805
|
+
var _excluded$f = ["onResize", "width"];
|
|
13973
13806
|
var MemoQueryTable = /*#__PURE__*/React__default['default'].memo(bssula.QueryTable);
|
|
13974
|
-
var Text$2 = antd.Typography.Text;
|
|
13975
13807
|
var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
13976
13808
|
var onResize = props.onResize,
|
|
13977
13809
|
width = props.width,
|
|
13978
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
13810
|
+
restProps = _objectWithoutProperties(props, _excluded$f);
|
|
13979
13811
|
if (!width) {
|
|
13980
13812
|
return /*#__PURE__*/React__default['default'].createElement("th", _objectSpread2({}, restProps));
|
|
13981
13813
|
}
|
|
@@ -13989,52 +13821,80 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
13989
13821
|
}, /*#__PURE__*/React__default['default'].createElement("th", _objectSpread2({}, restProps)));
|
|
13990
13822
|
};
|
|
13991
13823
|
var BsSulaQueryTable = (function (props) {
|
|
13992
|
-
var
|
|
13993
|
-
var
|
|
13994
|
-
|
|
13995
|
-
|
|
13824
|
+
var bsTableCode = (props === null || props === void 0 ? void 0 : props.tableCode) || window.location.hash; //设置列字段的唯一标识
|
|
13825
|
+
var getConfigFromlocalstorage = function getConfigFromlocalstorage(type) {
|
|
13826
|
+
var config = localStorage.getItem(type) || '[]';
|
|
13827
|
+
var configArray = JSON.parse(config);
|
|
13828
|
+
var configSetting = configArray.filter(function (item) {
|
|
13829
|
+
return item.code === bsTableCode;
|
|
13830
|
+
});
|
|
13831
|
+
if (configSetting.length && configSetting[0].detail) {
|
|
13832
|
+
return JSON.parse(configSetting[0].detail);
|
|
13833
|
+
}
|
|
13834
|
+
return [];
|
|
13835
|
+
};
|
|
13836
|
+
var getInitialSearchFieldsInfo = function getInitialSearchFieldsInfo() {
|
|
13837
|
+
//获取搜索字段的缓存配置
|
|
13838
|
+
var _props$fields = props.fields,
|
|
13839
|
+
fields = _props$fields === void 0 ? [] : _props$fields;
|
|
13840
|
+
var searchFieldsConfig = getConfigFromlocalstorage(ENUM.BROWSER_CACHE.SEARCH_FIELDS_CONDITION);
|
|
13841
|
+
var showSearchFields = searchFieldsConfig.length ? searchFieldsConfig.map(function (item) {
|
|
13842
|
+
var inner = fields.filter(function (inneritem) {
|
|
13843
|
+
var innerKey = Array.isArray(inneritem.name) ? JSON.stringify(inneritem.name) : inneritem.name;
|
|
13844
|
+
var itemKey = Array.isArray(item.name) ? JSON.stringify(item.name) : item.name;
|
|
13845
|
+
return innerKey && innerKey === itemKey;
|
|
13846
|
+
})[0];
|
|
13847
|
+
return _objectSpread2(_objectSpread2({}, inner), item);
|
|
13848
|
+
}) : fields;
|
|
13849
|
+
return _toConsumableArray(showSearchFields);
|
|
13850
|
+
};
|
|
13996
13851
|
var refs = React.useRef(null);
|
|
13997
13852
|
var _useState = React.useState(''),
|
|
13998
13853
|
_useState2 = _slicedToArray(_useState, 2),
|
|
13999
13854
|
pagePath = _useState2[0],
|
|
14000
13855
|
setPagePath = _useState2[1];
|
|
14001
13856
|
// 获取 table columns中所有的 key 防止有的地方是 dataindex
|
|
14002
|
-
var
|
|
14003
|
-
|
|
14004
|
-
|
|
14005
|
-
|
|
14006
|
-
|
|
14007
|
-
var _useLocation = umi.useLocation(),
|
|
14008
|
-
pathname = _useLocation.pathname,
|
|
14009
|
-
_useLocation$state = _useLocation.state,
|
|
14010
|
-
state = _useLocation$state === void 0 ? {} : _useLocation$state;
|
|
14011
|
-
var _useState3 = React.useState(false),
|
|
13857
|
+
var _useState3 = React.useState(props.columns.filter(function (col) {
|
|
13858
|
+
return !col.hidden;
|
|
13859
|
+
}).map(function (d) {
|
|
13860
|
+
return Array.isArray(d.key || d.dataIndex) ? JSON.stringify(d.key || d.dataIndex) : d.key || d.dataIndex;
|
|
13861
|
+
})),
|
|
14012
13862
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
14013
|
-
|
|
14014
|
-
|
|
14015
|
-
|
|
14016
|
-
|
|
14017
|
-
var _useState5 = React.useState(
|
|
14018
|
-
_useState6 = _slicedToArray(_useState5,
|
|
14019
|
-
|
|
14020
|
-
|
|
14021
|
-
var _useState7 = React.useState(props.fields || []),
|
|
13863
|
+
checkedList = _useState4[0],
|
|
13864
|
+
setCheckedList = _useState4[1];
|
|
13865
|
+
var _useLocation = umi.useLocation(),
|
|
13866
|
+
pathname = _useLocation.pathname;
|
|
13867
|
+
var _useState5 = React.useState(Number(Math.random().toString().substr(2, 0) + Date.now()).toString(36)),
|
|
13868
|
+
_useState6 = _slicedToArray(_useState5, 1),
|
|
13869
|
+
id = _useState6[0];
|
|
13870
|
+
var _useState7 = React.useState(false),
|
|
14022
13871
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
14023
|
-
|
|
14024
|
-
|
|
14025
|
-
|
|
13872
|
+
isFullScreen = _useState8[0],
|
|
13873
|
+
setIsFnllScreen = _useState8[1];
|
|
13874
|
+
// @ts-nocheck
|
|
13875
|
+
var _useState9 = React.useState(props),
|
|
14026
13876
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
14027
|
-
|
|
14028
|
-
|
|
14029
|
-
var _useState11 = React.useState(
|
|
13877
|
+
value = _useState10[0],
|
|
13878
|
+
setValue = _useState10[1];
|
|
13879
|
+
var _useState11 = React.useState([]),
|
|
14030
13880
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
14031
|
-
|
|
14032
|
-
|
|
13881
|
+
showColumn = _useState12[0],
|
|
13882
|
+
setShowColumns = _useState12[1]; // 列字段
|
|
13883
|
+
var originSearchFields = getInitialSearchFieldsInfo();
|
|
13884
|
+
var _useState13 = React.useState(originSearchFields),
|
|
13885
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
13886
|
+
showSearchFields = _useState14[0],
|
|
13887
|
+
setShowSearchFields = _useState14[1]; //搜索项字段
|
|
13888
|
+
var _props$isPage = props.isPage,
|
|
13889
|
+
pagination = props.pagination,
|
|
13890
|
+
tableCode = props.tableCode,
|
|
13891
|
+
appRequestConfig = props.appRequestConfig;
|
|
13892
|
+
var _useState15 = React.useState('100vh'),
|
|
13893
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
13894
|
+
height = _useState16[0],
|
|
13895
|
+
setHeight = _useState16[1];
|
|
14033
13896
|
var sortTableRef = React.useRef(null);
|
|
14034
13897
|
var searchTableRef = React.useRef(null);
|
|
14035
|
-
var exportTableRef = React.useRef(null);
|
|
14036
|
-
var bsTableCode = tableCode || window.location.hash; //设置列字段的唯一标识
|
|
14037
|
-
var bsTableCodeExport = "".concat(bsTableCode, "___Export"); //设置导出列字段的唯一标识
|
|
14038
13898
|
// 获取table高度
|
|
14039
13899
|
var getTableHeight = function getTableHeight() {
|
|
14040
13900
|
setTimeout(function () {
|
|
@@ -14047,6 +13907,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
14047
13907
|
var listTabHeight = document.querySelector(".ant-tabs-tabpane-active .list_top_tab .ant-tabs-nav") ? ((_document$querySelect2 = document.querySelector(".ant-tabs-tabpane-active .list_top_tab .ant-tabs-nav")) === null || _document$querySelect2 === void 0 ? void 0 : _document$querySelect2.clientHeight) || 48 : 0;
|
|
14048
13908
|
var h = realIframeClientHeight - summaryHeight - listTabHeight - (((_document$querySelect3 = document.querySelector(".ant-tabs-tabpane-active .ant-form ant-form-horizontal")) === null || _document$querySelect3 === void 0 ? void 0 : _document$querySelect3.clientHeight) || 0) - (isFullScreen ? 0 : ((_document$querySelect4 = document.querySelector(".ant-tabs-tabpane-active .ant-pro-page-container-warp")) === null || _document$querySelect4 === void 0 ? void 0 : _document$querySelect4.clientHeight) || 0) - cancelHeight + 'px';
|
|
14049
13909
|
setHeight(h);
|
|
13910
|
+
setValue(_objectSpread2({}, value));
|
|
14050
13911
|
}, 0);
|
|
14051
13912
|
};
|
|
14052
13913
|
//监测是否按下esc键
|
|
@@ -14057,18 +13918,6 @@ var BsSulaQueryTable = (function (props) {
|
|
|
14057
13918
|
if (isFull == undefined) isFull = false;
|
|
14058
13919
|
return isFull;
|
|
14059
13920
|
}
|
|
14060
|
-
var getConfigFromlocalstorage = function getConfigFromlocalstorage(type) {
|
|
14061
|
-
var tableCode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : bsTableCode;
|
|
14062
|
-
var config = localStorage.getItem(type) || '[]';
|
|
14063
|
-
var configArray = JSON.parse(config);
|
|
14064
|
-
var configSetting = configArray.filter(function (item) {
|
|
14065
|
-
return item.code === tableCode;
|
|
14066
|
-
});
|
|
14067
|
-
if (configSetting.length && configSetting[0].detail) {
|
|
14068
|
-
return JSON.parse(configSetting[0].detail);
|
|
14069
|
-
}
|
|
14070
|
-
return [];
|
|
14071
|
-
};
|
|
14072
13921
|
var setInitialTableInfo = function setInitialTableInfo() {
|
|
14073
13922
|
var resourceCodeArray = {};
|
|
14074
13923
|
if (props.actionsRender && props.actionsRender.length) {
|
|
@@ -14111,23 +13960,22 @@ var BsSulaQueryTable = (function (props) {
|
|
|
14111
13960
|
}
|
|
14112
13961
|
});
|
|
14113
13962
|
}
|
|
14114
|
-
|
|
14115
|
-
|
|
14116
|
-
|
|
14117
|
-
|
|
14118
|
-
var inner = columns.filter(function (inneritem) {
|
|
14119
|
-
var innerKey = Array.isArray(inneritem.key || inneritem.dataIndex) ? JSON.stringify(inneritem.key || inneritem.dataIndex) : inneritem.key || inneritem.dataIndex;
|
|
14120
|
-
var itemKey = Array.isArray(item.key || item.dataIndex) ? JSON.stringify(item.key || item.dataIndex) : item.key || item.dataIndex;
|
|
14121
|
-
return innerKey && innerKey === itemKey;
|
|
14122
|
-
})[0];
|
|
14123
|
-
return _objectSpread2(_objectSpread2({}, inner), item);
|
|
14124
|
-
}) : columns.filter(function (column) {
|
|
14125
|
-
var columnKey = Array.isArray(column.key || column.dataIndex) ? JSON.stringify(column.key || column.dataIndex) : column.key || column.dataIndex;
|
|
14126
|
-
return column.notRegularCheckList || checkedList.indexOf(columnKey) > -1;
|
|
14127
|
-
});
|
|
14128
|
-
};
|
|
13963
|
+
setValue(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
13964
|
+
columns: _toConsumableArray(props.columns)
|
|
13965
|
+
}));
|
|
13966
|
+
var columns = props.columns;
|
|
14129
13967
|
var columnConfig = getConfigFromlocalstorage(ENUM.BROWSER_CACHE.COLUMN_CONDITION);
|
|
14130
|
-
var showColumns =
|
|
13968
|
+
var showColumns = columnConfig.length ? columnConfig.map(function (item) {
|
|
13969
|
+
var inner = columns.filter(function (inneritem) {
|
|
13970
|
+
var innerKey = Array.isArray(inneritem.key || inneritem.dataIndex) ? JSON.stringify(inneritem.key || inneritem.dataIndex) : inneritem.key || inneritem.dataIndex;
|
|
13971
|
+
var itemKey = Array.isArray(item.key || item.dataIndex) ? JSON.stringify(item.key || item.dataIndex) : item.key || item.dataIndex;
|
|
13972
|
+
return innerKey && innerKey === itemKey;
|
|
13973
|
+
})[0];
|
|
13974
|
+
return _objectSpread2(_objectSpread2({}, inner), item);
|
|
13975
|
+
}) : columns.filter(function (column) {
|
|
13976
|
+
var columnKey = Array.isArray(column.key || column.dataIndex) ? JSON.stringify(column.key || column.dataIndex) : column.key || column.dataIndex;
|
|
13977
|
+
return column.notRegularCheckList || checkedList.indexOf(columnKey) > -1;
|
|
13978
|
+
});
|
|
14131
13979
|
showColumns.forEach(function (item, index) {
|
|
14132
13980
|
item.width = item.width || getItemDefaultWidth(item);
|
|
14133
13981
|
handleBssulaColumnsSpecialParams(item);
|
|
@@ -14139,24 +13987,11 @@ var BsSulaQueryTable = (function (props) {
|
|
|
14139
13987
|
};
|
|
14140
13988
|
});
|
|
14141
13989
|
setShowColumns(_toConsumableArray(showColumns));
|
|
14142
|
-
var exportColumnConfig = getConfigFromlocalstorage(ENUM.BROWSER_CACHE.COLUMN_CONDITION, bsTableCodeExport);
|
|
14143
|
-
var showExportColumns = getShowColumns(exportColumnConfig, columns);
|
|
14144
|
-
showExportColumns.forEach(function (item, index) {
|
|
14145
|
-
item.width = item.width || getItemDefaultWidth(item);
|
|
14146
|
-
handleBssulaColumnsSpecialParams(item);
|
|
14147
|
-
item.onHeaderCell = function (column) {
|
|
14148
|
-
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
14149
|
-
width: typeof column.width === 'number' ? column.width : parseInt(column.width.replace('px', '')),
|
|
14150
|
-
onResize: handleResize(index)
|
|
14151
|
-
});
|
|
14152
|
-
};
|
|
14153
|
-
});
|
|
14154
|
-
setShowExportColumns(_toConsumableArray(showExportColumns));
|
|
14155
13990
|
};
|
|
14156
13991
|
var setInitialSearchFieldsInfo = function setInitialSearchFieldsInfo() {
|
|
14157
13992
|
//获取搜索字段的缓存配置
|
|
14158
|
-
var _props$
|
|
14159
|
-
fields = _props$
|
|
13993
|
+
var _props$fields2 = props.fields,
|
|
13994
|
+
fields = _props$fields2 === void 0 ? [] : _props$fields2;
|
|
14160
13995
|
var searchFieldsConfig = getConfigFromlocalstorage(ENUM.BROWSER_CACHE.SEARCH_FIELDS_CONDITION);
|
|
14161
13996
|
var showSearchFields = searchFieldsConfig.length ? searchFieldsConfig.map(function (item) {
|
|
14162
13997
|
var inner = fields.filter(function (inneritem) {
|
|
@@ -14249,7 +14084,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
14249
14084
|
}
|
|
14250
14085
|
},
|
|
14251
14086
|
initialSelectedRowKeys: value.initialSelectedRowKeys || [],
|
|
14252
|
-
expandable:
|
|
14087
|
+
expandable: value.expandable,
|
|
14253
14088
|
scroll: {
|
|
14254
14089
|
x: props.overScrollX || 'max-content',
|
|
14255
14090
|
y: height
|
|
@@ -14297,7 +14132,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
14297
14132
|
}
|
|
14298
14133
|
};
|
|
14299
14134
|
var handleTimeValue = function handleTimeValue() {
|
|
14300
|
-
var _sortTableRef$current, _value$exportConfig,
|
|
14135
|
+
var _sortTableRef$current, _value$exportConfig, _value$exportConfig2, _value$exportConfig3;
|
|
14301
14136
|
var actionsRender = value.actionsRender || [];
|
|
14302
14137
|
actionsRender = [].concat(_toConsumableArray(actionsRender), [{
|
|
14303
14138
|
type: 'text',
|
|
@@ -14316,14 +14151,9 @@ var BsSulaQueryTable = (function (props) {
|
|
|
14316
14151
|
setShowSearchFields: setShowSearchFields,
|
|
14317
14152
|
showSearchFields: showSearchFields,
|
|
14318
14153
|
datasource: (value === null || value === void 0 ? void 0 : value.fields) || [],
|
|
14319
|
-
bsTableCode: bsTableCode
|
|
14320
|
-
|
|
14321
|
-
|
|
14322
|
-
style: {
|
|
14323
|
-
fontSize: 14,
|
|
14324
|
-
textAlign: 'center'
|
|
14325
|
-
}
|
|
14326
|
-
}, "\u5BFC\u51FA\u5B57\u6BB5\u8BBE\u7F6E")))),
|
|
14154
|
+
bsTableCode: bsTableCode,
|
|
14155
|
+
appRequestConfig: appRequestConfig
|
|
14156
|
+
}))),
|
|
14327
14157
|
placement: "bottomRight"
|
|
14328
14158
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
14329
14159
|
className: "ant-dropdown-link"
|
|
@@ -14356,14 +14186,12 @@ var BsSulaQueryTable = (function (props) {
|
|
|
14356
14186
|
}, {
|
|
14357
14187
|
type: 'text',
|
|
14358
14188
|
props: {
|
|
14359
|
-
children: (value === null || value === void 0 ? void 0 : value.exportConfig) && authFn(value === null || value === void 0 ? void 0 : (_value$
|
|
14189
|
+
children: (value === null || value === void 0 ? void 0 : value.exportConfig) && authFn(value === null || value === void 0 ? void 0 : (_value$exportConfig = value.exportConfig) === null || _value$exportConfig === void 0 ? void 0 : _value$exportConfig.code) ? ( /*#__PURE__*/React__default['default'].createElement(ExportIcon, {
|
|
14360
14190
|
request: {
|
|
14361
|
-
url:
|
|
14362
|
-
params: value === null || value === void 0 ? void 0 : (_value$
|
|
14191
|
+
url: "/oms-ops/excel/exportAsync/".concat(value === null || value === void 0 ? void 0 : (_value$exportConfig2 = value.exportConfig) === null || _value$exportConfig2 === void 0 ? void 0 : _value$exportConfig2.type),
|
|
14192
|
+
params: (value === null || value === void 0 ? void 0 : (_value$exportConfig3 = value.exportConfig) === null || _value$exportConfig3 === void 0 ? void 0 : _value$exportConfig3.params) || queryParams
|
|
14363
14193
|
},
|
|
14364
|
-
tableRef: props.forwardedRef || refs
|
|
14365
|
-
allowSelect: value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.allowSelect,
|
|
14366
|
-
columnsRowKey: value === null || value === void 0 ? void 0 : value.rowKey
|
|
14194
|
+
tableRef: props.forwardedRef || refs
|
|
14367
14195
|
})) : ( /*#__PURE__*/React__default['default'].createElement("span", null))
|
|
14368
14196
|
}
|
|
14369
14197
|
}]);
|
|
@@ -14393,29 +14221,6 @@ var BsSulaQueryTable = (function (props) {
|
|
|
14393
14221
|
var _sortTableRef$current2, _sortTableRef$current3;
|
|
14394
14222
|
sortTableRef === null || sortTableRef === void 0 ? void 0 : (_sortTableRef$current2 = sortTableRef.current) === null || _sortTableRef$current2 === void 0 ? void 0 : (_sortTableRef$current3 = _sortTableRef$current2.handleTableHeadHidden) === null || _sortTableRef$current3 === void 0 ? void 0 : _sortTableRef$current3.call(_sortTableRef$current2, columnTitle);
|
|
14395
14223
|
};
|
|
14396
|
-
var toMapByKey = function toMapByKey(arr, key, fn) {
|
|
14397
|
-
var map = {};
|
|
14398
|
-
arr.forEach(function (i) {
|
|
14399
|
-
return map[renderToString(i[key])] = i;
|
|
14400
|
-
});
|
|
14401
|
-
return map;
|
|
14402
|
-
};
|
|
14403
|
-
var getColumns = function getColumns() {
|
|
14404
|
-
// 优化一下 减少复杂度
|
|
14405
|
-
var titleMap = toMapByKey(value.columns, 'title');
|
|
14406
|
-
// 加上排序
|
|
14407
|
-
var cols = showColumn.map(function (i) {
|
|
14408
|
-
var _titleMap$renderToStr, _titleMap$renderToStr2;
|
|
14409
|
-
return _objectSpread2(_objectSpread2({}, i), {}, {
|
|
14410
|
-
isPermissionColumn: (_titleMap$renderToStr = titleMap[renderToString(i.title)]) === null || _titleMap$renderToStr === void 0 ? void 0 : _titleMap$renderToStr.isPermissionColumn,
|
|
14411
|
-
render: (_titleMap$renderToStr2 = titleMap[renderToString(i.title)]) === null || _titleMap$renderToStr2 === void 0 ? void 0 : _titleMap$renderToStr2.render
|
|
14412
|
-
});
|
|
14413
|
-
});
|
|
14414
|
-
cols.forEach(function (i) {
|
|
14415
|
-
return handleBssulaColumnsSpecialParams(i);
|
|
14416
|
-
});
|
|
14417
|
-
return cols;
|
|
14418
|
-
};
|
|
14419
14224
|
var config = _objectSpread2(_objectSpread2({
|
|
14420
14225
|
visibleFieldsCount: 3,
|
|
14421
14226
|
tableWrapperStyle: {
|
|
@@ -14437,109 +14242,45 @@ var BsSulaQueryTable = (function (props) {
|
|
|
14437
14242
|
rowSelection: false
|
|
14438
14243
|
}, handleTimeValue()), {}, {
|
|
14439
14244
|
tableProps: setTableProps(),
|
|
14440
|
-
columns:
|
|
14245
|
+
columns: _toConsumableArray(showColumn),
|
|
14441
14246
|
fields: _toConsumableArray(showSearchFields),
|
|
14442
14247
|
ref: props.forwardedRef || refs,
|
|
14443
14248
|
isFullScreen: isFullScreen
|
|
14444
14249
|
});
|
|
14445
14250
|
React.useEffect(function () {
|
|
14446
|
-
if (!localStorage.getItem('isTabChange')
|
|
14251
|
+
if (!localStorage.getItem('isTabChange')) {
|
|
14447
14252
|
if (pagePath === pathname) {
|
|
14448
14253
|
var _config$ref, _config$ref$current, _config$ref$current$t, _config$ref$current$t2;
|
|
14449
14254
|
// @ts-ignore
|
|
14450
14255
|
(_config$ref = config.ref) === null || _config$ref === void 0 ? void 0 : (_config$ref$current = _config$ref.current) === null || _config$ref$current === void 0 ? void 0 : (_config$ref$current$t = _config$ref$current.tableRef) === null || _config$ref$current$t === void 0 ? void 0 : (_config$ref$current$t2 = _config$ref$current$t.current) === null || _config$ref$current$t2 === void 0 ? void 0 : _config$ref$current$t2.refreshTable();
|
|
14451
14256
|
}
|
|
14452
|
-
}
|
|
14453
|
-
setTimeout(function () {
|
|
14454
|
-
// 处理页面刷新两面
|
|
14455
|
-
localStorage.removeItem('isTabChange');
|
|
14456
|
-
}, 0);
|
|
14457
|
-
}, [pathname]);
|
|
14458
|
-
var expandedRowKeys = props === null || props === void 0 ? void 0 : (_props$expandable = props.expandable) === null || _props$expandable === void 0 ? void 0 : _props$expandable.expandedRowKeys;
|
|
14459
|
-
//todo summary属性已经被使用,为了兼容之前的,现在使用 summaryList
|
|
14460
|
-
//结构为了实现多行总结栏 定义如下(lableShow: boolean 是否显示列文本)
|
|
14461
|
-
/**
|
|
14462
|
-
* [
|
|
14463
|
-
* {
|
|
14464
|
-
* cont:[{key: 'spuCode',value: 100,labelShow: false}]
|
|
14465
|
-
* }
|
|
14466
|
-
* ]
|
|
14467
|
-
* @returns []
|
|
14468
|
-
*/
|
|
14469
|
-
var getTableSummaryInfo = function getTableSummaryInfo() {
|
|
14470
|
-
var summaryList = props.summaryList,
|
|
14471
|
-
rowSelection = props.rowSelection,
|
|
14472
|
-
expandable = props.expandable;
|
|
14473
|
-
if (summaryList && Array.isArray(summaryList)) {
|
|
14474
|
-
var summaryRow = rowSelection ? [{}].concat(_toConsumableArray(showColumn)) : _toConsumableArray(showColumn);
|
|
14475
|
-
if (expandable) {
|
|
14476
|
-
summaryRow.unshift({});
|
|
14477
|
-
}
|
|
14478
|
-
// let summaryInitial = summary().cont;
|
|
14479
|
-
return /*#__PURE__*/React__default['default'].createElement(antd.Table.Summary, {
|
|
14480
|
-
fixed: true
|
|
14481
|
-
}, Array.isArray(summaryList) && summaryList.map(function (summaryItem, summaryIndex) {
|
|
14482
|
-
return /*#__PURE__*/React__default['default'].createElement(antd.Table.Summary.Row, {
|
|
14483
|
-
key: summaryIndex
|
|
14484
|
-
}, summaryRow.map(function (item, index) {
|
|
14485
|
-
var _summaryItem$cout = summaryItem.cout,
|
|
14486
|
-
cout = _summaryItem$cout === void 0 ? [] : _summaryItem$cout;
|
|
14487
|
-
var target = cout.filter(function (inner) {
|
|
14488
|
-
return inner.key && (inner.key === item.dataIndex || inner.key === item.key);
|
|
14489
|
-
})[0];
|
|
14490
|
-
if (target) {
|
|
14491
|
-
var _target$value;
|
|
14492
|
-
var labelText = target.labelShow ? "".concat(item.title, ":") : "";
|
|
14493
|
-
return /*#__PURE__*/React__default['default'].createElement(antd.Table.Summary.Cell, {
|
|
14494
|
-
index: index,
|
|
14495
|
-
key: "Table.Summary.Cell_".concat(item.index)
|
|
14496
|
-
}, /*#__PURE__*/React__default['default'].createElement(Text$2, {
|
|
14497
|
-
type: "danger"
|
|
14498
|
-
}, "".concat(labelText, " ").concat((_target$value = target.value) !== null && _target$value !== void 0 ? _target$value : '')));
|
|
14499
|
-
} else {
|
|
14500
|
-
return /*#__PURE__*/React__default['default'].createElement(antd.Table.Summary.Cell, {
|
|
14501
|
-
index: index,
|
|
14502
|
-
key: "Table.Summary.Cell_".concat(item.index)
|
|
14503
|
-
}, /*#__PURE__*/React__default['default'].createElement(Text$2, {
|
|
14504
|
-
type: "danger"
|
|
14505
|
-
}, " "));
|
|
14506
|
-
}
|
|
14507
|
-
}));
|
|
14508
|
-
}));
|
|
14509
14257
|
} else {
|
|
14510
|
-
|
|
14258
|
+
setTimeout(function () {
|
|
14259
|
+
// 处理页面刷新两面
|
|
14260
|
+
localStorage.removeItem('isTabChange');
|
|
14261
|
+
}, 0);
|
|
14511
14262
|
}
|
|
14512
|
-
};
|
|
14263
|
+
}, [pathname]);
|
|
14513
14264
|
var memoConfig = React.useMemo(function () {
|
|
14514
14265
|
return _objectSpread2(_objectSpread2({}, config), {}, {
|
|
14515
14266
|
summary: props.summary,
|
|
14516
|
-
|
|
14517
|
-
|
|
14267
|
+
statusMapping: props.statusMapping,
|
|
14268
|
+
appRequestConfig: props.appRequestConfig
|
|
14518
14269
|
});
|
|
14519
|
-
}, [
|
|
14520
|
-
|
|
14521
|
-
checkedList, showColumn, props.statusMapping, showSearchFields, expandedRowKeys]);
|
|
14522
|
-
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14523
|
-
id: "bs-sula-query-table"
|
|
14524
|
-
}, /*#__PURE__*/React__default['default'].createElement(MemoQueryTable, _objectSpread2({}, memoConfig)), /*#__PURE__*/React__default['default'].createElement(SortableTable$1, {
|
|
14270
|
+
}, [value, checkedList, showColumn, props.statusMapping, showSearchFields]);
|
|
14271
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(MemoQueryTable, _objectSpread2({}, memoConfig)), /*#__PURE__*/React__default['default'].createElement(SortableTable$1, {
|
|
14525
14272
|
ref: sortTableRef,
|
|
14526
14273
|
setShowColumns: setShowColumns,
|
|
14527
14274
|
showColumn: showColumn,
|
|
14528
14275
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
14529
14276
|
bsTableCode: bsTableCode,
|
|
14277
|
+
appRequestConfig: appRequestConfig,
|
|
14530
14278
|
onlyModal: true
|
|
14531
|
-
})
|
|
14532
|
-
ref: exportTableRef,
|
|
14533
|
-
setShowColumns: setShowExportColumns,
|
|
14534
|
-
showColumn: showExportColumn,
|
|
14535
|
-
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
14536
|
-
bsTableCode: bsTableCodeExport,
|
|
14537
|
-
onlyModal: true
|
|
14538
|
-
})));
|
|
14279
|
+
}));
|
|
14539
14280
|
});
|
|
14540
14281
|
|
|
14541
|
-
var css_248z$
|
|
14542
|
-
styleInject(css_248z$
|
|
14282
|
+
var css_248z$f = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #005cff;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.dark .action:hover {\n background: #252a3d;\n}\n.dark .action .opened {\n background: #252a3d;\n}\n.allFunsList {\n margin-bottom: 10px;\n}\n.isClons {\n position: relative;\n left: -8px;\n width: 30px;\n height: 36px;\n}\n.drawerWarp {\n -moz-column-count: 3;\n column-count: 3;\n}\n.allFunsListWarp {\n width: 200px;\n margin-right: 10px;\n border-radius: 4px;\n -moz-column-break-inside: avoid;\n break-inside: avoid;\n}\n.drawerWarp_p {\n color: #8c8c8c;\n font-weight: 400;\n font-size: 14px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 20px;\n text-align: left;\n}\n.searchTop {\n display: flex;\n align-items: center;\n}\n.searchTopInp {\n width: 528px;\n height: 40px;\n background: #f8f9fa;\n border: 1px solid #d9d9d9;\n border-radius: 4px;\n}\n.searchTopInp .ant-input {\n background: #f8f9fa;\n}\n.searchTopBtn {\n position: relative;\n left: -1px;\n width: 92px;\n height: 40px;\n background: #005cff;\n border-radius: 0px 4px 4px 0px;\n}\n.contentWarp {\n margin-top: 54px;\n font-size: 14px;\n font-weight: 400;\n text-align: left;\n color: #8c8c8c;\n}\n.themeColor {\n color: #005CFF;\n}\n.serachView {\n margin-top: 36px;\n margin-bottom: 32px;\n}\n.content {\n display: flex;\n flex-wrap: wrap;\n}\n.content div {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 8px 20px;\n font-size: 14px;\n font-weight: 400;\n color: #000000;\n background: #f8f9fa;\n border-radius: 100px;\n margin-right: 10px;\n margin-bottom: 10px;\n}\n.content div:hover {\n cursor: pointer;\n}\n";
|
|
14283
|
+
styleInject(css_248z$f);
|
|
14543
14284
|
|
|
14544
14285
|
var cache = {};
|
|
14545
14286
|
var cacheLimit = 10000;
|
|
@@ -14795,8 +14536,8 @@ var AllFunc = function AllFunc(props) {
|
|
|
14795
14536
|
})))));
|
|
14796
14537
|
};
|
|
14797
14538
|
|
|
14798
|
-
var css_248z$
|
|
14799
|
-
styleInject(css_248z$
|
|
14539
|
+
var css_248z$g = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #1890ff;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.dark .action:hover {\n background: #252a3d;\n}\n.dark .action .opened {\n background: #252a3d;\n}\n.warp_allfunc {\n z-index: 100;\n}\n.warp_allfunc .drawerWarp {\n -moz-column-count: 4;\n column-count: 4;\n}\n.warp_allfunc .drawer_header_warp .ant-list-header {\n padding: 0 0 0 10px !important;\n line-height: 40px;\n border: 0px !important;\n}\n.warp_allfunc .drawer_header_warp .ant-list-header b {\n width: 100%;\n display: inline-block;\n border-bottom: 1px solid #f0f0f0;\n}\n.warp_allfunc .drawer_header_warp .ant-list-item {\n padding: 0 0 0 10px !important;\n line-height: 30px !important;\n}\n.warp_allfunc .drawer_header_warp .ant-drawer-close {\n position: absolute;\n right: 0;\n}\n.warp_allfunc .p {\n color: #b1bad4;\n font-weight: 400;\n font-size: 12px;\n margin-bottom: 10px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 16px;\n text-align: left;\n opacity: 0.8;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n text-align: center;\n margin-left: 8px;\n}\n.warp_allfunc .btn {\n display: flex;\n align-items: center;\n height: 44px;\n color: #b1bad4;\n background: #10234c;\n border-radius: 8px;\n width: 130px;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.warp_allfunc .btn:hover,\n.warp_allfunc .btnSpan1:hover,\n.warp_allfunc .btnSpan2:hover {\n cursor: pointer;\n color: #b1bad4;\n}\n.warp_allfunc .btnSpan1 {\n margin: 0 7px;\n}\n.allfunc_drawcontent .allFunsList {\n margin-bottom: 10px;\n}\n.allfunc_drawcontent .allFunsListWarp {\n width: 200px;\n margin-right: 10px;\n border-radius: 4px;\n -moz-column-break-inside: avoid;\n break-inside: avoid;\n}\n.allfunc_drawcontent .drawerWarp_p {\n color: #8c8c8c;\n font-weight: 400;\n font-size: 14px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 20px;\n text-align: left;\n}\n";
|
|
14540
|
+
styleInject(css_248z$g);
|
|
14800
14541
|
|
|
14801
14542
|
var allfunc = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%220%200%2024%2024%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3Eicon%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Crect%20id%3D%22path-1%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3C%2Frect%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22%E5%85%A8%E5%B1%80%E5%AF%BC%E8%88%AA%E7%9B%B8%E5%85%B3%E5%8A%9F%E8%83%BD%E9%9C%80%E6%B1%82%E8%AE%BE%E8%AE%A1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E8%87%AA%E5%AE%9A%E4%B9%89%E5%B7%A6%E4%BE%A7%E8%8F%9C%E5%8D%95%22%20transform%3D%22translate%28-20.000000%2C%20-1016.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-6%22%20transform%3D%22translate%280.000000%2C%2060.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-5%E5%A4%87%E4%BB%BD%22%20transform%3D%22translate%280.000000%2C%20900.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E6%9F%A5%E7%9C%8B%E5%85%A8%E9%83%A8%E5%8A%9F%E8%83%BD%22%20transform%3D%22translate%2810.000000%2C%2046.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22icon%22%20transform%3D%22translate%2810.000000%2C%2010.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cmask%20id%3D%22mask-2%22%20fill%3D%22white%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fmask%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20id%3D%22navigation-icon-allfunctions%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22category%22%20mask%3D%22url%28%23mask-2%29%22%20fill%3D%22%23B1BAD4%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22translate%283.000000%2C%205.000000%29%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M2.24999999%2C12.3585414%20L2.24999999%2C14%20L0%2C14%20L0%2C12.3585414%20L2.24999999%2C12.3585414%20Z%20M18%2C12.3585414%20L18%2C14%20L3.375%2C14%20L3.375%2C12.3585414%20L18%2C12.3585414%20Z%20M2.24999999%2C6.17954431%20L2.24999999%2C7.82100286%20L0%2C7.82100286%20L0%2C6.17954431%20L2.24999999%2C6.17954431%20L2.24999999%2C6.17954431%20Z%20M18%2C6.17954431%20L18%2C7.82100286%20L3.375%2C7.82100286%20L3.375%2C6.17954431%20L18%2C6.17954431%20L18%2C6.17954431%20Z%20M2.24999999%2C0%20L2.24999999%2C1.64145855%20L0%2C1.64145855%20L0%2C0%20L2.24999999%2C0%20L2.24999999%2C0%20Z%20M18%2C0%20L18%2C1.64145855%20L3.375%2C1.64145855%20L3.375%2C0%20L18%2C0%20L18%2C0%20Z%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
14802
14543
|
|
|
@@ -14995,17 +14736,8 @@ var AllFunc$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
14995
14736
|
}))));
|
|
14996
14737
|
});
|
|
14997
14738
|
|
|
14998
|
-
var
|
|
14999
|
-
|
|
15000
|
-
lang: '中文'
|
|
15001
|
-
},
|
|
15002
|
-
'en-US': {
|
|
15003
|
-
lang: 'English'
|
|
15004
|
-
}
|
|
15005
|
-
};
|
|
15006
|
-
|
|
15007
|
-
var css_248z$j = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.rcom_right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.rcom_right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.rcom_right .action > span {\n vertical-align: middle;\n}\n.rcom_right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.rcom_right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.rcom_right .search {\n padding: 0 12px;\n}\n.rcom_right .search:hover {\n background: transparent;\n}\n.rcom_right .account .avatar {\n margin-right: 8px;\n color: #005cff;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.rcom_right .ant-space-item {\n margin: 0 10px 0 0;\n}\n.rcom_dark .action:hover {\n background: #252a3d;\n}\n.rcom_dark .action .opened {\n background: #252a3d;\n}\n.rcom_dark .ant-space-item {\n margin: 0 10px 0 0;\n}\n.rcom_imgWap {\n position: relative;\n display: flex;\n align-items: center;\n}\n.rcom_imgWap .rcom_headLine {\n width: 1px;\n height: 16px;\n margin-right: 20px;\n background: #cacaca;\n}\n.rcom_imgWap img {\n width: 22px;\n height: 22px;\n margin-right: 20px;\n}\n.rcom_userWarp {\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 142px;\n height: 35px;\n margin-right: 10px;\n border: 1px solid #c8c8c8;\n border-radius: 4px;\n}\n.rcom_userWarp .rcom_l {\n margin-left: 4px;\n}\n.rcom_userWarp .rcom_l img {\n margin-right: 0;\n width: 36px;\n height: 36px;\n}\n.rcom_userWarp .rcom_c {\n display: flex;\n flex-direction: column;\n}\n.rcom_userWarp .rcom_c .rcom_ct {\n color: #000000;\n font-weight: 500;\n font-size: 12px;\n font-family: Montserrat, Montserrat-Medium;\n line-height: 14px;\n text-align: left;\n}\n.rcom_userWarp .rcom_c .rcom_cb {\n color: #bfbfbf;\n font-weight: 400;\n font-size: 10px;\n font-family: Montserrat, Montserrat-Regular;\n line-height: 14px;\n text-align: left;\n}\n.rcom_userWarp .rcom_r {\n margin-right: 9px;\n}\n.rcom_.userWarp:hover,\n.rcom_c:hover,\n.rcom_l:hover,\n.rcom_r:hover {\n cursor: pointer;\n}\n.userDownWarp {\n width: 217px;\n margin-top: 4px;\n background: #ffffff;\n box-shadow: 0px 2px 4px 0px rgba(185, 185, 185, 0.5);\n}\n.userDownWarp .userDownTop {\n display: flex;\n flex-direction: column;\n align-items: center;\n height: 155px;\n padding: 20px 0;\n border-bottom: 1px solid #d9d9d9;\n}\n.userDownWarp .userDownTop .userDownTopT {\n width: 68px;\n height: 68px;\n border-radius: 50%;\n}\n.userDownWarp .userDownTop .userDownTopC {\n color: #000000;\n font-weight: 500;\n font-size: 14px;\n font-family: Montserrat, Montserrat-Medium;\n line-height: 26px;\n text-align: center;\n}\n.userDownWarp .userDownTop .userDownTopB {\n color: #bfbfbf;\n font-weight: 400;\n font-size: 12px;\n font-family: Montserrat, Montserrat-Regular;\n line-height: 15px;\n text-align: center;\n}\n.userDownWarp .userDownB .userDownBList,\n.userDownWarp .userDownB .userDownOut {\n display: flex;\n align-items: center;\n height: 36px;\n background: #ffffff;\n border-bottom: 1px solid #f3f3f3;\n}\n.userDownWarp .userDownB .userDownBList .rcom_label,\n.userDownWarp .userDownB .userDownOut .rcom_label {\n margin: 0 4px 0 20px;\n}\n.userDownWarp .userDownB .userDownBList .rcom_label img,\n.userDownWarp .userDownB .userDownOut .rcom_label img {\n width: 16px;\n height: 16px;\n}\n.userDownWarp .userDownB .userDownBList .rcom_name,\n.userDownWarp .userDownB .userDownOut .rcom_name {\n color: #000000;\n font-weight: 400;\n font-size: 12px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 16px;\n text-align: left;\n}\n.userDownWarp .userDownB .userDownBList:hover,\n.userDownWarp .userDownB .userDownOut:hover {\n cursor: pointer;\n}\n.userDownWarp .userDownB .userDownOut {\n height: 46px;\n border-bottom: none;\n}\n.userDownWarp .userDownB .userDownOut .rcom_name {\n color: #fe0300;\n}\n";
|
|
15008
|
-
styleInject(css_248z$j);
|
|
14739
|
+
var css_248z$h = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.rcom_right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.rcom_right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.rcom_right .action > span {\n vertical-align: middle;\n}\n.rcom_right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.rcom_right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.rcom_right .search {\n padding: 0 12px;\n}\n.rcom_right .search:hover {\n background: transparent;\n}\n.rcom_right .account .avatar {\n margin-right: 8px;\n color: #005cff;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.rcom_right .ant-space-item {\n margin: 0 10px 0 0;\n}\n.rcom_dark .action:hover {\n background: #252a3d;\n}\n.rcom_dark .action .opened {\n background: #252a3d;\n}\n.rcom_dark .ant-space-item {\n margin: 0 10px 0 0;\n}\n.rcom_imgWap {\n position: relative;\n display: flex;\n align-items: center;\n}\n.rcom_imgWap .rcom_headLine {\n width: 1px;\n height: 16px;\n margin-right: 20px;\n background: #cacaca;\n}\n.rcom_imgWap img {\n width: 22px;\n height: 22px;\n margin-right: 20px;\n}\n.rcom_userWarp {\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 142px;\n height: 35px;\n margin-right: 10px;\n border: 1px solid #c8c8c8;\n border-radius: 4px;\n}\n.rcom_userWarp .rcom_l {\n margin-left: 4px;\n}\n.rcom_userWarp .rcom_l img {\n margin-right: 0;\n width: 36px;\n height: 36px;\n}\n.rcom_userWarp .rcom_c {\n display: flex;\n flex-direction: column;\n}\n.rcom_userWarp .rcom_c .rcom_ct {\n color: #000000;\n font-weight: 500;\n font-size: 12px;\n font-family: Montserrat, Montserrat-Medium;\n line-height: 14px;\n text-align: left;\n}\n.rcom_userWarp .rcom_c .rcom_cb {\n color: #bfbfbf;\n font-weight: 400;\n font-size: 10px;\n font-family: Montserrat, Montserrat-Regular;\n line-height: 14px;\n text-align: left;\n}\n.rcom_userWarp .rcom_r {\n margin-right: 9px;\n}\n.rcom_.userWarp:hover,\n.rcom_c:hover,\n.rcom_l:hover,\n.rcom_r:hover {\n cursor: pointer;\n}\n.userDownWarp {\n width: 217px;\n margin-top: 4px;\n background: #ffffff;\n box-shadow: 0px 2px 4px 0px rgba(185, 185, 185, 0.5);\n}\n.userDownWarp .userDownTop {\n display: flex;\n flex-direction: column;\n align-items: center;\n height: 155px;\n padding: 20px 0;\n border-bottom: 1px solid #d9d9d9;\n}\n.userDownWarp .userDownTop .userDownTopT {\n width: 68px;\n height: 68px;\n border-radius: 50%;\n}\n.userDownWarp .userDownTop .userDownTopC {\n color: #000000;\n font-weight: 500;\n font-size: 14px;\n font-family: Montserrat, Montserrat-Medium;\n line-height: 26px;\n text-align: center;\n}\n.userDownWarp .userDownTop .userDownTopB {\n color: #bfbfbf;\n font-weight: 400;\n font-size: 12px;\n font-family: Montserrat, Montserrat-Regular;\n line-height: 15px;\n text-align: center;\n}\n.userDownWarp .userDownB .userDownBList,\n.userDownWarp .userDownB .userDownOut {\n display: flex;\n align-items: center;\n height: 36px;\n background: #ffffff;\n border-bottom: 1px solid #f3f3f3;\n}\n.userDownWarp .userDownB .userDownBList .rcom_label,\n.userDownWarp .userDownB .userDownOut .rcom_label {\n margin: 0 4px 0 20px;\n}\n.userDownWarp .userDownB .userDownBList .rcom_label img,\n.userDownWarp .userDownB .userDownOut .rcom_label img {\n width: 16px;\n height: 16px;\n}\n.userDownWarp .userDownB .userDownBList .rcom_name,\n.userDownWarp .userDownB .userDownOut .rcom_name {\n color: #000000;\n font-weight: 400;\n font-size: 12px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 16px;\n text-align: left;\n}\n.userDownWarp .userDownB .userDownBList:hover,\n.userDownWarp .userDownB .userDownOut:hover {\n cursor: pointer;\n}\n.userDownWarp .userDownB .userDownOut {\n height: 46px;\n border-bottom: none;\n}\n.userDownWarp .userDownB .userDownOut .rcom_name {\n color: #fe0300;\n}\n";
|
|
14740
|
+
styleInject(css_248z$h);
|
|
15009
14741
|
|
|
15010
14742
|
var Morentouxiang = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2240px%22%20height%3D%2240px%22%20viewBox%3D%220%200%2040%2040%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E32%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Ccircle%20id%3D%22path-1%22%20cx%3D%2213%22%20cy%3D%2213%22%20r%3D%2213%22%3E%3C%2Fcircle%3E%20%20%20%20%20%20%20%20%3Cfilter%20x%3D%22-40.4%25%22%20y%3D%22-40.4%25%22%20width%3D%22180.8%25%22%20height%3D%22180.8%25%22%20filterUnits%3D%22objectBoundingBox%22%20id%3D%22filter-2%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3CfeOffset%20dx%3D%220%22%20dy%3D%220%22%20in%3D%22SourceAlpha%22%20result%3D%22shadowOffsetOuter1%22%3E%3C%2FfeOffset%3E%20%20%20%20%20%20%20%20%20%20%20%20%3CfeGaussianBlur%20stdDeviation%3D%223.5%22%20in%3D%22shadowOffsetOuter1%22%20result%3D%22shadowBlurOuter1%22%3E%3C%2FfeGaussianBlur%3E%20%20%20%20%20%20%20%20%20%20%20%20%3CfeComposite%20in%3D%22shadowBlurOuter1%22%20in2%3D%22SourceAlpha%22%20operator%3D%22out%22%20result%3D%22shadowBlurOuter1%22%3E%3C%2FfeComposite%3E%20%20%20%20%20%20%20%20%20%20%20%20%3CfeColorMatrix%20values%3D%220%200%200%200%200.949019608%20%20%200%200%200%200%200.949019608%20%20%200%200%200%200%200.949019608%20%200%200%200%201%200%22%20type%3D%22matrix%22%20in%3D%22shadowBlurOuter1%22%3E%3C%2FfeColorMatrix%3E%20%20%20%20%20%20%20%20%3C%2Ffilter%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22-----6.1-%E9%BB%98%E8%AE%A4%E5%9B%BE%E7%89%87%2F-Default-picture%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22B-Design-%E4%BD%93%E9%AA%8C%E8%A7%84%E8%8C%83%22%20transform%3D%22translate%28-1119.000000%2C%20-988.000000%29%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%2232%22%20transform%3D%22translate%281126.000000%2C%20995.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E5%9C%86%E5%BD%A2%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20fill%3D%22black%22%20fill-opacity%3D%221%22%20filter%3D%22url%28%23filter-2%29%22%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Ccircle%20stroke%3D%22%23FFFFFF%22%20stroke-width%3D%220.8328125%22%20stroke-linejoin%3D%22square%22%20fill%3D%22%23EDF4FF%22%20fill-rule%3D%22evenodd%22%20cx%3D%2213%22%20cy%3D%2213%22%20r%3D%2212.5835938%22%3E%3C%2Fcircle%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M15.644709%2C13.6190476%20L18.9119048%2C15.0892857%20L18.9119048%2C19.5%20L7.15%2C19.5%20L7.15%2C15.0892857%20L10.4171958%2C13.6190476%20L15.644709%2C13.6190476%20Z%20M16.1261905%2C16.4047619%20L13.65%2C16.4047619%20L13.65%2C17.6428571%20L16.1261905%2C17.6428571%20L16.1261905%2C16.4047619%20Z%20M13.1857143%2C6.5%20C14.9806397%2C6.5%2016.4357143%2C7.95507456%2016.4357143%2C9.75%20C16.4357143%2C11.5449254%2014.9806397%2C13%2013.1857143%2C13%20C11.3907888%2C13%209.93571429%2C11.5449254%209.93571429%2C9.75%20C9.93571429%2C7.95507456%2011.3907888%2C6.5%2013.1857143%2C6.5%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%20fill%3D%22%239AC4FF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
15011
14743
|
|
|
@@ -15023,7 +14755,7 @@ function _outLogin() {
|
|
|
15023
14755
|
while (1) switch (_context.prev = _context.next) {
|
|
15024
14756
|
case 0:
|
|
15025
14757
|
_context.next = 2;
|
|
15026
|
-
return
|
|
14758
|
+
return axios__default['default']({
|
|
15027
14759
|
url: '/user/web/loginOut',
|
|
15028
14760
|
method: 'GET'
|
|
15029
14761
|
});
|
|
@@ -15056,11 +14788,11 @@ var LoginModal = (function (props) {
|
|
|
15056
14788
|
}, "\u53D6\u6D88"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
15057
14789
|
onClick: function onClick() {
|
|
15058
14790
|
form.validateFields().then(function (res) {
|
|
15059
|
-
|
|
14791
|
+
axios__default['default']({
|
|
15060
14792
|
url: "/bop/api/account/changePassWord/".concat(getAccountID()),
|
|
15061
14793
|
method: 'patch',
|
|
15062
14794
|
params: res
|
|
15063
|
-
}).then(function () {
|
|
14795
|
+
}).then(function (res) {
|
|
15064
14796
|
loginOut();
|
|
15065
14797
|
});
|
|
15066
14798
|
});
|
|
@@ -15114,7 +14846,6 @@ var LoginModal = (function (props) {
|
|
|
15114
14846
|
});
|
|
15115
14847
|
|
|
15116
14848
|
var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
15117
|
-
var _i18n$language;
|
|
15118
14849
|
var menu = _ref.menu;
|
|
15119
14850
|
var _useModel = umi.useModel('@@initialState'),
|
|
15120
14851
|
initialState = _useModel.initialState;
|
|
@@ -15223,25 +14954,12 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
15223
14954
|
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15224
14955
|
className: 'rcom_name'
|
|
15225
14956
|
}, "\u9000\u51FA\u767B\u5F55"))));
|
|
15226
|
-
var changeLanguage = function changeLanguage(lang) {
|
|
15227
|
-
localStorage.setItem('umi_locale', lang || "zh-CN");
|
|
15228
|
-
umi.setLocale(lang || "zh-CN");
|
|
15229
|
-
window.location.reload();
|
|
15230
|
-
};
|
|
15231
|
-
var language = localStorage.getItem('umi_locale') || 'zh-CN';
|
|
15232
14957
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15233
14958
|
className: className,
|
|
15234
14959
|
style: divStyle()
|
|
15235
14960
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15236
14961
|
className: 'rcom_imgWap'
|
|
15237
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.
|
|
15238
|
-
style: {
|
|
15239
|
-
marginRight: '20px'
|
|
15240
|
-
},
|
|
15241
|
-
onClick: function onClick() {
|
|
15242
|
-
changeLanguage(language === 'zh-CN' ? 'en-US' : 'zh-CN');
|
|
15243
|
-
}
|
|
15244
|
-
}, ((_i18n$language = i18n[language]) === null || _i18n$language === void 0 ? void 0 : _i18n$language.lang) || "English"), /*#__PURE__*/React__default['default'].createElement(antd.Dropdown, {
|
|
14962
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Dropdown, {
|
|
15245
14963
|
overlay: menus,
|
|
15246
14964
|
trigger: ['click']
|
|
15247
14965
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -15266,292 +14984,19 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
15266
14984
|
}))))), loginModalParams.visible && ( /*#__PURE__*/React__default['default'].createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
15267
14985
|
};
|
|
15268
14986
|
|
|
15269
|
-
|
|
15270
|
-
|
|
15271
|
-
return _getStoreByName.apply(this, arguments);
|
|
15272
|
-
}
|
|
15273
|
-
function _getStoreByName() {
|
|
15274
|
-
_getStoreByName = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
15275
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
15276
|
-
while (1) switch (_context.prev = _context.next) {
|
|
15277
|
-
case 0:
|
|
15278
|
-
return _context.abrupt("return", requestUtil({
|
|
15279
|
-
url: '/store-house/orgViewNode/listNoPage',
|
|
15280
|
-
method: 'GET',
|
|
15281
|
-
params: _objectSpread2({}, params)
|
|
15282
|
-
}));
|
|
15283
|
-
case 1:
|
|
15284
|
-
case "end":
|
|
15285
|
-
return _context.stop();
|
|
15286
|
-
}
|
|
15287
|
-
}, _callee);
|
|
15288
|
-
}));
|
|
15289
|
-
return _getStoreByName.apply(this, arguments);
|
|
15290
|
-
}
|
|
14987
|
+
var css_248z$i = ".headerContent {\n position: relative;\n display: flex;\n align-items: center;\n height: 100%;\n background: #F3F3F3;\n box-shadow: 0 1px 4px #EBECEC;\n padding-left: 47px;\n}\n.navigationBtn {\n display: inline-block;\n height: 32px;\n line-height: 32px;\n border-radius: 5px;\n margin-right: 15px;\n padding: 0 10px;\n background-color: #F4F6F7;\n cursor: pointer;\n color: rgba(0, 0, 0, 0.5);\n}\n.navigationBtn:hover {\n border-color: #297eff;\n border-right-width: 1px;\n z-index: 1;\n}\n.headerContent {\n background-color: #ffffff;\n}\n.headerContent .ant-input-affix-wrapper,\n.headerContent .ant-input {\n color: rgba(0, 0, 0, 0.5);\n}\n.searchPanel {\n position: absolute;\n top: 36;\n left: 0;\n min-width: 268px;\n height: 220px;\n box-shadow: 0 1px 4px #EBECEC;\n background-color: #FFFFFF;\n overflow-y: auto;\n box-shadow: 0px 2px 4px 0px rgba(185, 185, 185, 0.5);\n padding: 0 10px;\n}\n.searchTitle {\n margin-top: 20px;\n font-size: 14px;\n font-weight: 400;\n text-align: left;\n color: #8c8c8c;\n}\n.themeColor {\n color: #005cff;\n}\n.itemPath {\n height: 30px;\n line-height: 30px;\n width: 100%;\n cursor: pointer;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.itemPath:hover {\n background-color: #E6EEFF;\n}\n";
|
|
14988
|
+
styleInject(css_248z$i);
|
|
15291
14989
|
|
|
15292
|
-
var
|
|
15293
|
-
|
|
15294
|
-
|
|
15295
|
-
|
|
15296
|
-
|
|
15297
|
-
|
|
15298
|
-
|
|
15299
|
-
var
|
|
15300
|
-
|
|
15301
|
-
|
|
15302
|
-
setIndex = _useState2[1];
|
|
15303
|
-
var _useState3 = React.useState([{
|
|
15304
|
-
label: name,
|
|
15305
|
-
value: code
|
|
15306
|
-
}]),
|
|
15307
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
15308
|
-
value = _useState4[0],
|
|
15309
|
-
setValue = _useState4[1];
|
|
15310
|
-
// const [ key, setKey ] = useState(undefined);
|
|
15311
|
-
var _useState5 = React.useState(undefined),
|
|
15312
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
15313
|
-
key = _useState6[0],
|
|
15314
|
-
setKey = _useState6[1];
|
|
15315
|
-
var _useState7 = React.useState(false),
|
|
15316
|
-
_useState8 = _slicedToArray(_useState7, 2),
|
|
15317
|
-
openSelect = _useState8[0],
|
|
15318
|
-
setOpenSelect = _useState8[1];
|
|
15319
|
-
var _useState9 = React.useState([]),
|
|
15320
|
-
_useState10 = _slicedToArray(_useState9, 2),
|
|
15321
|
-
options = _useState10[0],
|
|
15322
|
-
setOptions = _useState10[1];
|
|
15323
|
-
var _useState11 = React.useState([]),
|
|
15324
|
-
_useState12 = _slicedToArray(_useState11, 2),
|
|
15325
|
-
rescouse = _useState12[0],
|
|
15326
|
-
setRescouse = _useState12[1];
|
|
15327
|
-
var _useState13 = React.useState(''),
|
|
15328
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
15329
|
-
searchValue = _useState14[0],
|
|
15330
|
-
setSearchValue = _useState14[1];
|
|
15331
|
-
var _useState15 = React.useState([{
|
|
15332
|
-
label: name,
|
|
15333
|
-
value: code
|
|
15334
|
-
}]),
|
|
15335
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
15336
|
-
store = _useState16[0],
|
|
15337
|
-
setStore = _useState16[1];
|
|
15338
|
-
function fetchUserList(_x, _x2) {
|
|
15339
|
-
return _fetchUserList.apply(this, arguments);
|
|
15340
|
-
}
|
|
15341
|
-
function _fetchUserList() {
|
|
15342
|
-
_fetchUserList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
15343
|
-
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
15344
|
-
while (1) switch (_context3.prev = _context3.next) {
|
|
15345
|
-
case 0:
|
|
15346
|
-
return _context3.abrupt("return", getStoreByName({
|
|
15347
|
-
orgName: storeName ? storeName : undefined,
|
|
15348
|
-
platCompanyCode: init ? undefined : key,
|
|
15349
|
-
'qp-employeeCode-eq': employeeCode || 'EMP231011000002',
|
|
15350
|
-
'qp-orgViewCode-eq': 'business-organizational-view'
|
|
15351
|
-
}).then(function (res) {
|
|
15352
|
-
var data = res.data;
|
|
15353
|
-
if (data.code != '000000') {
|
|
15354
|
-
return;
|
|
15355
|
-
}
|
|
15356
|
-
return data.data.map(function (item) {
|
|
15357
|
-
return {
|
|
15358
|
-
label: item.orgName,
|
|
15359
|
-
value: item.orgCode,
|
|
15360
|
-
defaultOrg: item.defaultOrg,
|
|
15361
|
-
platCompanyCode: item.platCompanyCode
|
|
15362
|
-
};
|
|
15363
|
-
});
|
|
15364
|
-
}));
|
|
15365
|
-
case 1:
|
|
15366
|
-
case "end":
|
|
15367
|
-
return _context3.stop();
|
|
15368
|
-
}
|
|
15369
|
-
}, _callee3);
|
|
15370
|
-
}));
|
|
15371
|
-
return _fetchUserList.apply(this, arguments);
|
|
15372
|
-
}
|
|
15373
|
-
var debounceFetcher = React.useMemo(function () {
|
|
15374
|
-
var loadOptions = function loadOptions(str) {
|
|
15375
|
-
fetchRef.current += 1;
|
|
15376
|
-
var fetchId = fetchRef.current;
|
|
15377
|
-
setOptions([]);
|
|
15378
|
-
setRescouse([]);
|
|
15379
|
-
fetchUserList(str).then(function (newOptions) {
|
|
15380
|
-
if (fetchId !== fetchRef.current) {
|
|
15381
|
-
return;
|
|
15382
|
-
}
|
|
15383
|
-
setOptions(newOptions);
|
|
15384
|
-
setRescouse(newOptions);
|
|
15385
|
-
});
|
|
15386
|
-
};
|
|
15387
|
-
return debounce__default['default'](loadOptions, debounceTimeout);
|
|
15388
|
-
}, [debounceTimeout, key]);
|
|
15389
|
-
var changeInput = /*#__PURE__*/function () {
|
|
15390
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
15391
|
-
var res;
|
|
15392
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
15393
|
-
while (1) switch (_context.prev = _context.next) {
|
|
15394
|
-
case 0:
|
|
15395
|
-
_context.next = 2;
|
|
15396
|
-
return debounceFetcher(str);
|
|
15397
|
-
case 2:
|
|
15398
|
-
res = _context.sent;
|
|
15399
|
-
setOptions(res);
|
|
15400
|
-
setRescouse(res);
|
|
15401
|
-
case 5:
|
|
15402
|
-
case "end":
|
|
15403
|
-
return _context.stop();
|
|
15404
|
-
}
|
|
15405
|
-
}, _callee);
|
|
15406
|
-
}));
|
|
15407
|
-
return function changeInput(_x3) {
|
|
15408
|
-
return _ref.apply(this, arguments);
|
|
15409
|
-
};
|
|
15410
|
-
}();
|
|
15411
|
-
React.useEffect(function () {
|
|
15412
|
-
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
15413
|
-
var res;
|
|
15414
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
15415
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
15416
|
-
case 0:
|
|
15417
|
-
_context2.next = 2;
|
|
15418
|
-
return fetchUserList(undefined, true);
|
|
15419
|
-
case 2:
|
|
15420
|
-
res = _context2.sent;
|
|
15421
|
-
res.map(function (item, indexNumber) {
|
|
15422
|
-
if (item.label === name) {
|
|
15423
|
-
setIndex(indexNumber);
|
|
15424
|
-
}
|
|
15425
|
-
if (item.defaultOrg) {
|
|
15426
|
-
if (name) {
|
|
15427
|
-
return;
|
|
15428
|
-
}
|
|
15429
|
-
localStorage.setItem('WARE_HOUSE_NAME', item === null || item === void 0 ? void 0 : item.label);
|
|
15430
|
-
localStorage.setItem('WARE_HOUSE_CODE', item === null || item === void 0 ? void 0 : item.value);
|
|
15431
|
-
setValue([item]);
|
|
15432
|
-
}
|
|
15433
|
-
});
|
|
15434
|
-
setOptions(res);
|
|
15435
|
-
setRescouse(res);
|
|
15436
|
-
case 6:
|
|
15437
|
-
case "end":
|
|
15438
|
-
return _context2.stop();
|
|
15439
|
-
}
|
|
15440
|
-
}, _callee2);
|
|
15441
|
-
}))();
|
|
15442
|
-
}, []);
|
|
15443
|
-
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
15444
|
-
value: value,
|
|
15445
|
-
style: {
|
|
15446
|
-
width: 280,
|
|
15447
|
-
marginRight: 20
|
|
15448
|
-
},
|
|
15449
|
-
open: false,
|
|
15450
|
-
onClick: function onClick() {
|
|
15451
|
-
setOpenSelect(true);
|
|
15452
|
-
}
|
|
15453
|
-
}), /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
15454
|
-
open: openSelect,
|
|
15455
|
-
onCancel: function onCancel() {
|
|
15456
|
-
setOpenSelect(false);
|
|
15457
|
-
},
|
|
15458
|
-
onOk: function onOk() {
|
|
15459
|
-
var _store$, _store$2;
|
|
15460
|
-
localStorage.setItem('WARE_HOUSE_NAME', (_store$ = store[0]) === null || _store$ === void 0 ? void 0 : _store$.label);
|
|
15461
|
-
localStorage.setItem('WARE_HOUSE_CODE', (_store$2 = store[0]) === null || _store$2 === void 0 ? void 0 : _store$2.value);
|
|
15462
|
-
window.location.reload();
|
|
15463
|
-
}
|
|
15464
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Form, {
|
|
15465
|
-
style: {
|
|
15466
|
-
height: 300,
|
|
15467
|
-
marginTop: 20
|
|
15468
|
-
},
|
|
15469
|
-
labelCol: {
|
|
15470
|
-
span: 3
|
|
15471
|
-
},
|
|
15472
|
-
wrapperCol: {
|
|
15473
|
-
span: 16
|
|
15474
|
-
}
|
|
15475
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
15476
|
-
label: "\u54C1\u724C",
|
|
15477
|
-
name: "brand"
|
|
15478
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Radio.Group, {
|
|
15479
|
-
options: plainOptions,
|
|
15480
|
-
onChange: function onChange(item) {
|
|
15481
|
-
var _item$target;
|
|
15482
|
-
var str = item === null || item === void 0 ? void 0 : (_item$target = item.target) === null || _item$target === void 0 ? void 0 : _item$target.value;
|
|
15483
|
-
setKey(str === 'UR' ? 'UR' : 'BL');
|
|
15484
|
-
if (str === 'UR') {
|
|
15485
|
-
var res = rescouse === null || rescouse === void 0 ? void 0 : rescouse.filter(function (current) {
|
|
15486
|
-
return current.platCompanyCode === 'UR';
|
|
15487
|
-
});
|
|
15488
|
-
setOptions(res);
|
|
15489
|
-
setSearchValue('');
|
|
15490
|
-
} else {
|
|
15491
|
-
var _res = rescouse === null || rescouse === void 0 ? void 0 : rescouse.filter(function (current) {
|
|
15492
|
-
return current.platCompanyCode === 'BL';
|
|
15493
|
-
});
|
|
15494
|
-
setOptions(_res);
|
|
15495
|
-
setSearchValue('');
|
|
15496
|
-
}
|
|
15497
|
-
},
|
|
15498
|
-
optionType: "button",
|
|
15499
|
-
buttonStyle: "solid"
|
|
15500
|
-
})), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
15501
|
-
label: "\u95E8\u5E97",
|
|
15502
|
-
name: "store",
|
|
15503
|
-
rules: [{
|
|
15504
|
-
required: true,
|
|
15505
|
-
message: '请选择门店'
|
|
15506
|
-
}]
|
|
15507
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
15508
|
-
placeholder: "\u8F93\u5165\u95E8\u5E97\u540D\u79F0",
|
|
15509
|
-
value: searchValue,
|
|
15510
|
-
onChange: function onChange(e) {
|
|
15511
|
-
changeInput(e.target.value);
|
|
15512
|
-
setSearchValue(e.target.value);
|
|
15513
|
-
}
|
|
15514
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15515
|
-
style: {
|
|
15516
|
-
height: 220,
|
|
15517
|
-
overflowY: 'scroll'
|
|
15518
|
-
}
|
|
15519
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.List, {
|
|
15520
|
-
dataSource: options,
|
|
15521
|
-
bordered: true,
|
|
15522
|
-
renderItem: function renderItem(item, indexNumber) {
|
|
15523
|
-
return /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
15524
|
-
style: indexNumber === index ? {
|
|
15525
|
-
// opacity
|
|
15526
|
-
color: '#0047bb'
|
|
15527
|
-
} : {},
|
|
15528
|
-
onClick: function onClick(current) {
|
|
15529
|
-
// setValue([item]);
|
|
15530
|
-
setStore([item]);
|
|
15531
|
-
setIndex(indexNumber);
|
|
15532
|
-
}
|
|
15533
|
-
}, item.label);
|
|
15534
|
-
}
|
|
15535
|
-
}))))));
|
|
15536
|
-
};
|
|
15537
|
-
|
|
15538
|
-
var css_248z$k = ".headerContent {\n position: relative;\n display: flex;\n align-items: center;\n height: 100%;\n background: #F3F3F3;\n box-shadow: 0 1px 4px #EBECEC;\n padding-left: 47px;\n}\n.navigationBtn {\n display: inline-block;\n height: 32px;\n line-height: 32px;\n border-radius: 5px;\n margin-right: 15px;\n padding: 0 10px;\n background-color: #F4F6F7;\n cursor: pointer;\n color: rgba(0, 0, 0, 0.5);\n}\n.navigationBtn:hover {\n border-color: #297eff;\n border-right-width: 1px;\n z-index: 1;\n}\n.headerContent {\n background-color: #ffffff;\n}\n.headerContent .ant-input-affix-wrapper,\n.headerContent .ant-input {\n color: rgba(0, 0, 0, 0.5);\n}\n.searchPanel {\n position: absolute;\n top: 36;\n left: 0;\n min-width: 268px;\n height: 220px;\n box-shadow: 0 1px 4px #EBECEC;\n background-color: #FFFFFF;\n overflow-y: auto;\n box-shadow: 0px 2px 4px 0px rgba(185, 185, 185, 0.5);\n padding: 0 10px;\n}\n.searchTitle {\n margin-top: 20px;\n font-size: 14px;\n font-weight: 400;\n text-align: left;\n color: #8c8c8c;\n}\n.themeColor {\n color: #005cff;\n}\n.itemPath {\n height: 30px;\n line-height: 30px;\n width: 100%;\n cursor: pointer;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.itemPath:hover {\n background-color: #E6EEFF;\n}\n";
|
|
15539
|
-
styleInject(css_248z$k);
|
|
15540
|
-
|
|
15541
|
-
var judgeIsEmpty$2 = function judgeIsEmpty(value) {
|
|
15542
|
-
if (value == null || value == undefined || String(value).trim() == '') {
|
|
15543
|
-
return true;
|
|
15544
|
-
}
|
|
15545
|
-
return false;
|
|
15546
|
-
};
|
|
15547
|
-
var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
15548
|
-
var _props$route$routes = props.route.routes,
|
|
15549
|
-
routes = _props$route$routes === void 0 ? [] : _props$route$routes,
|
|
15550
|
-
_props$showSelectStor = props.showSelectStore,
|
|
15551
|
-
showSelectStore = _props$showSelectStor === void 0 ? false : _props$showSelectStor,
|
|
15552
|
-
_props$employeeCode = props.employeeCode,
|
|
15553
|
-
employeeCode = _props$employeeCode === void 0 ? "EMP231011000002" : _props$employeeCode;
|
|
15554
|
-
var _useState = React.useState(''),
|
|
14990
|
+
var judgeIsEmpty$2 = function judgeIsEmpty(value) {
|
|
14991
|
+
if (value == null || value == undefined || String(value).trim() == '') {
|
|
14992
|
+
return true;
|
|
14993
|
+
}
|
|
14994
|
+
return false;
|
|
14995
|
+
};
|
|
14996
|
+
var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
14997
|
+
var _props$route$routes = props.route.routes,
|
|
14998
|
+
routes = _props$route$routes === void 0 ? [] : _props$route$routes;
|
|
14999
|
+
var _useState = React.useState(''),
|
|
15555
15000
|
_useState2 = _slicedToArray(_useState, 2),
|
|
15556
15001
|
keyWord = _useState2[0],
|
|
15557
15002
|
setKeyWord = _useState2[1];
|
|
@@ -15687,15 +15132,13 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
15687
15132
|
},
|
|
15688
15133
|
title: item.fullPathName
|
|
15689
15134
|
}, renderLineStyl(item.fullPathName));
|
|
15690
|
-
}))))),
|
|
15691
|
-
employeeCode: employeeCode
|
|
15692
|
-
})), /*#__PURE__*/React__default['default'].createElement(GlobalHeaderRight, null));
|
|
15135
|
+
}))))), /*#__PURE__*/React__default['default'].createElement(GlobalHeaderRight, null));
|
|
15693
15136
|
};
|
|
15694
15137
|
|
|
15695
15138
|
var addIcon = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%220%200%2024%2024%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%BC%96%E7%BB%84%2014%401x%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E5%85%A8%E5%B1%80%E5%AF%BC%E8%88%AA%E7%9B%B8%E5%85%B3%E5%8A%9F%E8%83%BD%E9%9C%80%E6%B1%82%E8%AE%BE%E8%AE%A1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E8%87%AA%E5%AE%9A%E4%B9%89%E5%B7%A6%E4%BE%A7%E8%8F%9C%E5%8D%95%22%20transform%3D%22translate%28-21.000000%2C%20-71.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-6%22%20transform%3D%22translate%280.000000%2C%2060.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-15%22%20transform%3D%22translate%2821.000000%2C%2010.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-14%22%20transform%3D%22translate%280.000000%2C%201.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3C%2Frect%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84%22%20transform%3D%22translate%284.000000%2C%204.000000%29%22%20fill%3D%22%23B1BAD4%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M8%2C0%20C12.4183529%2C0%2016%2C3.58164706%2016%2C8%20C16%2C12.4183529%2012.4183529%2C16%208%2C16%20C3.58164706%2C16%200%2C12.4183529%200%2C8%20C0%2C3.58164706%203.58164706%2C0%208%2C0%20Z%20M8%2C1.4117647%20C4.36141178%2C1.4117647%201.4117647%2C4.36141175%201.4117647%2C8%20C1.4117647%2C11.6385882%204.36141175%2C14.5882353%208%2C14.5882353%20C11.6385882%2C14.5882353%2014.5882353%2C11.6385882%2014.5882353%2C8%20C14.5882353%2C4.36141175%2011.6385882%2C1.4117647%208%2C1.4117647%20Z%20M8.70588235%2C3.76470589%20L8.70588235%2C7.29411765%20L12.2352941%2C7.29411765%20L12.2352941%2C8.70588235%20L8.70588235%2C8.70588235%20L8.70588235%2C12.2352941%20L7.29411765%2C12.2352941%20L7.29411765%2C8.70541177%20L3.76470589%2C8.70588235%20L3.76470589%2C7.29411765%20L7.29411765%2C7.29364707%20L7.29411765%2C3.76470589%20L8.70588235%2C3.76470589%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
15696
15139
|
|
|
15697
|
-
var css_248z$
|
|
15698
|
-
styleInject(css_248z$
|
|
15140
|
+
var css_248z$j = ".setting_content > div {\n width: 50%;\n box-sizing: border-box;\n margin: 0 10px;\n}\n.setting_content {\n display: flex;\n}\n.tree_title {\n height: 50px;\n}\n.tree_content {\n height: 400px;\n overflow: auto;\n border: 1px solid #d9d9d9;\n padding: 5px;\n}\n.setting_content::after {\n clear: both;\n display: block;\n content: '';\n}\n.choosed_label_color {\n color: #f50;\n}\n.left_tree_content .ant-tree .ant-tree-node-content-wrapper {\n flex-grow: 1;\n}\n.left_tree_content .ant-tree .ant-tree-node-content-wrapper .ant-tree-title {\n width: 100%;\n}\n.left_tree_content .ant-tree .ant-tree-treenode {\n width: 100%;\n}\n.right_tree_content .ant-tree .ant-tree-node-content-wrapper,\n.left_tree_content .ant-tree .ant-tree-node-content-wrapper {\n display: flex;\n margin-left: -3px;\n}\n.right_tree_content .ant-tree-checkbox,\n.left_tree_content .ant-tree-checkbox {\n top: auto;\n top: initial;\n}\n.node_title_content:hover .right_arrow {\n display: block !important;\n}\n.right_arrow {\n float: right;\n display: none;\n color: #999999;\n margin-right: 10px;\n}\n.right_tree_content .ant-tree-title {\n width: 100%;\n display: inline-block;\n padding-right: 10px;\n}\n.right_tree_content .ant-dropdown-trigger {\n color: gray !important;\n}\n.right_tree_content .tree_node_title {\n font-size: 20px;\n color: #d9d9d9;\n float: right;\n}\n.right_tree_content .tree_node_title span {\n margin-right: 5px;\n}\n";
|
|
15141
|
+
styleInject(css_248z$j);
|
|
15699
15142
|
|
|
15700
15143
|
var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%220%200%2024%2024%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%BC%96%E7%BB%84%20186%E5%A4%87%E4%BB%BD%203%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E5%85%A8%E5%B1%80%E5%AF%BC%E8%88%AA%E7%9B%B8%E5%85%B3%E5%8A%9F%E8%83%BD%E9%9C%80%E6%B1%82%E8%AE%BE%E8%AE%A1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E8%87%AA%E5%AE%9A%E4%B9%89%E8%8F%9C%E5%8D%95%22%20transform%3D%22translate%28-949.000000%2C%20-484.000000%29%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-8%22%20transform%3D%22translate%28534.000000%2C%20180.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%B1%BB%E7%9B%AE%E4%B8%80%E5%A4%87%E4%BB%BD-101%22%20transform%3D%22translate%2831.000000%2C%20298.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-186%E5%A4%87%E4%BB%BD-2%22%20transform%3D%22translate%28384.000000%2C%206.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-132%E5%A4%87%E4%BB%BD-85%22%20opacity%3D%220%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M24%2C0%20L24%2C24%20L0%2C24%20L0%2C0%20L24%2C0%20Z%20M23.765625%2C0.234375%20L0.234375%2C0.234375%20L0.234375%2C23.765625%20L23.765625%2C23.765625%20L23.765625%2C0.234375%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-235%22%20fill%3D%22%23979797%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M21.39%2C2.64%20L21.39%2C21.39%20L2.64%2C21.39%20L2.64%2C2.64%20L21.39%2C2.64%20Z%20M21.155625%2C2.874375%20L2.874375%2C2.874375%20L2.874375%2C21.155625%20L21.155625%2C21.155625%20L21.155625%2C2.874375%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-236%22%20fill%3D%22%23979797%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M20.22%2C1.56%20L20.22%2C22.56%20L3.72%2C22.56%20L3.72%2C1.56%20L20.22%2C1.56%20Z%20M19.985625%2C1.794375%20L3.954375%2C1.794375%20L3.954375%2C22.325625%20L19.985625%2C22.325625%20L19.985625%2C1.794375%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-237%22%20fill%3D%22%23FA6400%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M22.56%2C3.72%20L22.56%2C20.22%20L1.56%2C20.22%20L1.56%2C3.72%20L22.56%2C3.72%20Z%20M22.325625%2C3.954375%20L1.794375%2C3.954375%20L1.794375%2C19.985625%20L22.325625%2C19.985625%20L22.325625%2C3.954375%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-238%22%20fill%3D%22%2344D7B6%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M12.06%2C1.56%20C17.8589899%2C1.56%2022.56%2C6.26101013%2022.56%2C12.06%20C22.56%2C17.8589899%2017.8589899%2C22.56%2012.06%2C22.56%20C6.26101013%2C22.56%201.56%2C17.8589899%201.56%2C12.06%20C1.56%2C6.26101013%206.26101013%2C1.56%2012.06%2C1.56%20Z%20M12.06%2C1.794375%20C6.39045187%2C1.794375%201.794375%2C6.39045187%201.794375%2C12.06%20C1.794375%2C17.7295481%206.39045187%2C22.325625%2012.06%2C22.325625%20C17.7295481%2C22.325625%2022.325625%2C17.7295481%2022.325625%2C12.06%20C22.325625%2C6.39045187%2017.7295481%2C1.794375%2012.06%2C1.794375%20Z%22%20id%3D%22%E6%A4%AD%E5%9C%86%E5%BD%A2%E5%A4%87%E4%BB%BD-59%22%20fill%3D%22%23F7B500%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84%E5%A4%87%E4%BB%BD-43%22%20transform%3D%22translate%281.560000%2C%201.680000%29%22%20fill%3D%22%23999999%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M10.44%2C0%20C16.2059506%2C0%2020.88%2C4.67404941%2020.88%2C10.44%20C20.88%2C16.2059506%2016.2059506%2C20.88%2010.44%2C20.88%20C4.67404941%2C20.88%200%2C16.2059506%200%2C10.44%20C0%2C4.67404941%204.67404941%2C0%2010.44%2C0%20Z%20M10.44%2C1.84235294%20C5.69164237%2C1.84235294%201.84235294%2C5.69164234%201.84235294%2C10.44%20C1.84235294%2C15.1883577%205.69164234%2C19.0376471%2010.44%2C19.0376471%20C15.1883577%2C19.0376471%2019.0376471%2C15.1883577%2019.0376471%2C10.44%20C19.0376471%2C5.69164234%2015.1883577%2C1.84235294%2010.44%2C1.84235294%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpolygon%20id%3D%22%E5%BD%A2%E7%8A%B6%22%20points%3D%2210.4408066%206.32%2014.3966662%2010.2757133%2010.4408066%2014.2314265%209.2540487%2013.0447125%2011.1949264%2011.1039067%206%2011.1033618%206%209.42518043%2011.1725861%209.42518043%209.25459358%207.50671398%2010.4408066%206.32%22%3E%3C%2Fpolygon%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
15701
15144
|
|
|
@@ -16324,8 +15767,8 @@ var MenuSetting = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
16324
15767
|
}));
|
|
16325
15768
|
});
|
|
16326
15769
|
|
|
16327
|
-
var css_248z$
|
|
16328
|
-
styleInject(css_248z$
|
|
15770
|
+
var css_248z$k = ".customer_menu_content {\n color: #b1bad4;\n background: #141620;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 18px;\n height: 45px;\n border-bottom: 1px solid #3d4047;\n}\n.customer_menu_content .ant-btn-link {\n color: #b1bad4 !important;\n font-size: 16px;\n height: 36px;\n}\n.customer_menu_content .ant-drawer-body {\n padding: 10px !important;\n}\n.menu_drawer_header_warp .ant-drawer-body {\n background-color: #F8F9FA;\n padding: 10px 0 0 0 !important;\n}\n.menu_title_line {\n font-size: 16px;\n font-weight: bold;\n color: #b1bad4;\n text-align: center;\n margin-bottom: 10px;\n}\n.menu_item {\n line-height: 30px;\n color: rgba(44, 47, 46);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.link_style:hover {\n background-color: #E4E7ED;\n cursor: pointer;\n}\n.header_style {\n height: 50px;\n position: fixed;\n top: 0;\n left: 0;\n padding: 0;\n display: flex;\n align-items: center;\n background-color: #ffffff;\n}\n.global_menu_draw .ant-drawer-body {\n padding: 10px !important;\n}\n";
|
|
15771
|
+
styleInject(css_248z$k);
|
|
16329
15772
|
|
|
16330
15773
|
var CustomerMenu = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
16331
15774
|
var isCollapse = _ref.isCollapse,
|
|
@@ -16461,8 +15904,8 @@ var CustomerMenu = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
16461
15904
|
})));
|
|
16462
15905
|
});
|
|
16463
15906
|
|
|
16464
|
-
var css_248z$
|
|
16465
|
-
styleInject(css_248z$
|
|
15907
|
+
var css_248z$l = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #1890ff;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.dark .action:hover {\n background: #252a3d;\n}\n.dark .action .opened {\n background: #252a3d;\n}\n.global_menu_draw_content {\n display: flex;\n height: 100%;\n}\n.global_menu_draw_content .allFunsList {\n margin-bottom: 10px;\n}\n.global_menu_draw_content .drawerWarp_left {\n width: 150px;\n height: 100%;\n flex-shrink: 0;\n border-right: 1px solid #f0f0f0;\n}\n.global_menu_draw_content .drawerWarp_left .left_item_title {\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #8c8c8c;\n letter-spacing: 0;\n line-height: 20px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n margin: 20px 0px;\n padding-left: 10px;\n}\n.global_menu_draw_content .drawerWarp_left .left_item {\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n line-height: 20px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n cursor: pointer;\n margin: 20px 0px;\n padding-left: 10px;\n}\n.global_menu_draw_content .drawerWarp_left .left_item:hover {\n color: #1890ff !important;\n}\n.global_menu_draw_content .drawerWarp_right {\n -moz-column-count: 4;\n column-count: 4;\n flex-grow: 1;\n padding-left: 10px;\n}\n.global_menu_draw_content .drawerWarp_right .ant-list-header {\n padding: 0 0 0 10px !important;\n line-height: 30px;\n border: 0px !important;\n}\n.global_menu_draw_content .drawerWarp_right .ant-list-header b {\n width: 100%;\n box-sizing: border-box;\n display: inline-block;\n border-bottom: 1px solid #f0f0f0;\n}\n.global_menu_draw_content .drawerWarp_right .ant-list-item {\n padding: 0 0 0 10px !important;\n line-height: 30px !important;\n}\n.global_menu_draw_content .drawerWarp_right .ant-drawer-close {\n position: absolute;\n right: 0;\n}\n.global_menu_draw_content .search_menu_content {\n flex-grow: 1;\n display: flex;\n flex-wrap: wrap;\n background-color: #ffffff;\n}\n.global_menu_draw_content .search_menu_content div {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 8px 20px;\n font-size: 14px;\n font-weight: 400;\n color: #000000;\n background: #f8f9fa;\n border-radius: 100px;\n margin-right: 10px;\n margin-bottom: 10px;\n}\n.global_menu_draw_content .search_menu_content div:hover {\n cursor: pointer;\n}\n.global_menu_draw_content .allFunsListWarp {\n width: 200px;\n margin-right: 10px;\n border-radius: 4px;\n -moz-column-break-inside: avoid;\n break-inside: avoid;\n}\n.global_menu_draw_content .choosedStyle .ant-list-header {\n background-color: #005CFF;\n opacity: 0.8;\n}\n.global_menu_draw_content .choosedStyle .ant-list-header b {\n border-bottom: 1px solid #005CFF;\n}\n";
|
|
15908
|
+
styleInject(css_248z$l);
|
|
16466
15909
|
|
|
16467
15910
|
var closeicon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAiZJREFUSEvFll1LVFEUhh/1QqjAxALrot+ggR9RQWh1UZl9kNCtv8ALf0Q3/YVuiyIqLKOUyI80RP0VXVSU+UGKF2W88q7hzPacOY4QHhiGmVn7fdZe691rTwP/+WlI9Bv9eQfQq55HWqH3NxamgOz3+q0SWEJSYpFQVWIBUIDE+oARYBj4ATQBf0rEI+Yk8Ah4CHwEdjUDoHeRnwN3gBngJrBaAgnxVmAMOA88A4aKAAp8A5wzZABYK4Dkic8CWqPEdpPO9iB20Qa8BnqBae9EkCijKhbixx2rzOeAG8CvEFdg2uRYKIh20mOIslo3RGvUlxaLXwDmgesWr+pbnovyIFPe+oYbLnHV/CLw2eIreaUssmlATngn3YAg17yL8f2I55Uo68is/VSuLuC9AZeBBQN/1nJa0Q4ClHVKuEu/fXJZihxWSbQMEM5pBlQWHUQ9E+7JduKuPWeyFiDEj7mhl2xFrdE5+WAL/64FKQJkxV858yXgqq09CXQAer8FFELyAFnxl0A/sOiaf3cN2u2usy7X7SJI3rjW0DsKSFxuUeY6RN/sFjF00ARRXzrtLkE203LljQqJvwCuAMu2YojHZA13nTJE5XrnQSlIjJ3KqIgvjlhctZa4Mv9aMuxOu1yCvAXuAlvpsAvAU+DePsTTc5KFPAHup+M6GjsIjDrgS50XzhngMfDAtq66cNIRoUYf5MqUaNUNeCiXfsUB9fylcOyetf8AAkCfGYuSNSEAAAAASUVORK5CYII=";
|
|
16468
15911
|
|
|
@@ -16877,10 +16320,10 @@ var CustomerMenuHeader = function CustomerMenuHeader(_ref) {
|
|
|
16877
16320
|
})));
|
|
16878
16321
|
};
|
|
16879
16322
|
|
|
16880
|
-
var css_248z$
|
|
16881
|
-
styleInject(css_248z$
|
|
16323
|
+
var css_248z$m = ".customer_menu_content {\n color: #b1bad4;\n background: #141620;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 18px;\n height: 40px;\n border-bottom: 1px solid #3d4047;\n}\n.customer_menu_content .ant-btn-link {\n color: #b1bad4 !important;\n font-size: 16px;\n height: 36px;\n}\n.menu_item {\n line-height: 30px;\n height: 30px;\n color: rgba(44, 47, 46);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.link_style:hover {\n background-color: #e4e7ed;\n cursor: pointer;\n color: #1890ff;\n}\n.sub_menu_content {\n box-shadow: 2px 0px 4px 0px rgba(185, 185, 185, 0.5);\n position: fixed;\n top: 50px;\n left: 140px;\n width: 200px;\n height: 100%;\n background-color: #fff;\n padding-top: 10px;\n z-index: 9999;\n}\n.tab_left_operate {\n display: flex;\n height: 28px;\n align-items: center;\n}\n.tab_left_operate > div {\n width: 28px;\n font-size: 12px;\n color: #2C2F2ECC;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n border-right: 1px solid #E4E4E4;\n background-color: #fff;\n cursor: pointer;\n}\n.tab_left_operate > div:last-child {\n box-shadow: 2px -2px 4px 0px rgba(185, 185, 185, 0.9);\n z-index: 99;\n}\n.tab_right_operate {\n height: 28px;\n width: 28px;\n font-size: 12px;\n color: #2C2F2ECC;\n display: flex;\n align-items: center;\n justify-content: center;\n border-right: 1px solid #E4E4E4;\n background-color: #fff;\n box-shadow: -2px -2px 4px 0px rgba(185, 185, 185, 0.9);\n z-index: 99;\n cursor: pointer;\n position: relative;\n}\n";
|
|
16324
|
+
styleInject(css_248z$m);
|
|
16882
16325
|
|
|
16883
|
-
var _excluded$
|
|
16326
|
+
var _excluded$g = ["route"];
|
|
16884
16327
|
var TabPane = antd.Tabs.TabPane;
|
|
16885
16328
|
var UN_LISTTEN_DRP;
|
|
16886
16329
|
var routerArray = [];
|
|
@@ -17565,7 +17008,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
17565
17008
|
if (!istParent) {
|
|
17566
17009
|
var _window$$wujie2;
|
|
17567
17010
|
if (route.pathname === '/') return;
|
|
17568
|
-
(_window$$wujie2 = window.$wujie) === null || _window$$wujie2 === void 0 ? void 0 : _window$$wujie2.bus.$emit('sub-route-change', itemPath, currentKey
|
|
17011
|
+
(_window$$wujie2 = window.$wujie) === null || _window$$wujie2 === void 0 ? void 0 : _window$$wujie2.bus.$emit('sub-route-change', itemPath, currentKey);
|
|
17569
17012
|
// window.parent.postMessage(`/parent/${itemPath}${currentKey}`, '*');
|
|
17570
17013
|
}
|
|
17571
17014
|
// 防止出错
|
|
@@ -17603,49 +17046,39 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
17603
17046
|
newListenRouterKey = [].concat(_toConsumableArray(listenRouterKey), [currentKey]);
|
|
17604
17047
|
}
|
|
17605
17048
|
}
|
|
17606
|
-
//
|
|
17049
|
+
// 处理hideMenu页面自动关闭
|
|
17607
17050
|
lastTwoRouterArray.push(route.pathname);
|
|
17608
17051
|
lastTwoRouterArray.shift();
|
|
17609
|
-
|
|
17610
|
-
|
|
17611
|
-
|
|
17612
|
-
|
|
17613
|
-
|
|
17614
|
-
|
|
17615
|
-
|
|
17616
|
-
|
|
17617
|
-
|
|
17618
|
-
|
|
17619
|
-
|
|
17620
|
-
|
|
17052
|
+
if (!localStorage.getItem('isTabChange') && !localStorage.getItem('isMenuClick')) {
|
|
17053
|
+
if (lastTwoRouterArray[0] && typeof lastTwoRouterArray[0] === 'string') {
|
|
17054
|
+
var _route$state;
|
|
17055
|
+
var needRemoveKeyArray = hideMenuArray.filter(function (itemRoute) {
|
|
17056
|
+
return pathToRegexp(itemRoute.path || '').test(lastTwoRouterArray[0]);
|
|
17057
|
+
});
|
|
17058
|
+
// lastTwoRouterArray[0] != lastTwoRouterArray[1] 该判断条件用于判断是否是tab删除操作,如果是tab页删除操作,删除的是不是最后一个打开的tab页,执行history.push会导致错误的将最后打开的那个tab页也删除掉
|
|
17059
|
+
if (needRemoveKeyArray.length && lastTwoRouterArray[0] != lastTwoRouterArray[1] && !((_route$state = route.state) === null || _route$state === void 0 ? void 0 : _route$state.thisHideInMenuDoNotClose)) {
|
|
17060
|
+
newListenRouterState = newListenRouterState.filter(function (item) {
|
|
17061
|
+
var _ref3 = item.key ? item.key.split('?') : [],
|
|
17062
|
+
_ref4 = _slicedToArray(_ref3, 1),
|
|
17063
|
+
pathname = _ref4[0];
|
|
17064
|
+
return pathname && pathname !== lastTwoRouterArray[0];
|
|
17065
|
+
});
|
|
17066
|
+
newListenRouterKey = newListenRouterKey.filter(function (item) {
|
|
17067
|
+
var _ref5 = item ? item.split('?') : [],
|
|
17068
|
+
_ref6 = _slicedToArray(_ref5, 1),
|
|
17069
|
+
pathname = _ref6[0];
|
|
17070
|
+
return pathname && pathname !== lastTwoRouterArray[0];
|
|
17071
|
+
});
|
|
17072
|
+
}
|
|
17073
|
+
}
|
|
17074
|
+
// refs?.tableRef?.current?.refreshTable();
|
|
17621
17075
|
} else {
|
|
17622
|
-
|
|
17623
|
-
|
|
17624
|
-
|
|
17625
|
-
|
|
17626
|
-
})
|
|
17627
|
-
needRemoveKey = needRemoveKeyArray.length && notSamePageFlag && !thisHideInMenuDoNotClose ? needRemoveKeyArray[0] : '';
|
|
17628
|
-
}
|
|
17629
|
-
if (needRemoveKey) {
|
|
17630
|
-
newListenRouterState = newListenRouterState.filter(function (item) {
|
|
17631
|
-
var _ref4 = item.key ? item.key.split('?') : [],
|
|
17632
|
-
_ref5 = _slicedToArray(_ref4, 1),
|
|
17633
|
-
pathname = _ref5[0];
|
|
17634
|
-
return pathname && pathname !== lastTwoRouterArray[0];
|
|
17635
|
-
});
|
|
17636
|
-
newListenRouterKey = newListenRouterKey.filter(function (item) {
|
|
17637
|
-
var _ref6 = item ? item.split('?') : [],
|
|
17638
|
-
_ref7 = _slicedToArray(_ref6, 1),
|
|
17639
|
-
pathname = _ref7[0];
|
|
17640
|
-
return pathname && pathname !== lastTwoRouterArray[0];
|
|
17641
|
-
});
|
|
17076
|
+
setTimeout(function () {
|
|
17077
|
+
// 处理页面刷新两面
|
|
17078
|
+
localStorage.removeItem('isTabChange');
|
|
17079
|
+
localStorage.removeItem('isMenuClick');
|
|
17080
|
+
}, 0);
|
|
17642
17081
|
}
|
|
17643
|
-
setTimeout(function () {
|
|
17644
|
-
// 处理页面刷新两面
|
|
17645
|
-
localStorage.removeItem('isTabChange');
|
|
17646
|
-
localStorage.removeItem('isMenuClick');
|
|
17647
|
-
}, 0);
|
|
17648
|
-
// -------------------处理页签关闭 end----------------------------
|
|
17649
17082
|
_this2.setState({
|
|
17650
17083
|
//路由监听函数最后执行setState,避免处理hideMenu类型页面自动关闭的逻辑块内获取不到最新state的listenRouterState和listenRouterKey
|
|
17651
17084
|
activeKey: currentKey,
|
|
@@ -17693,10 +17126,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
17693
17126
|
defaultSettings = _this$props2.defaultSettings,
|
|
17694
17127
|
_this$props2$transpar = _this$props2.transparentProps,
|
|
17695
17128
|
transparentProps = _this$props2$transpar === void 0 ? {} : _this$props2$transpar;
|
|
17696
|
-
var TabTitle = function TabTitle(
|
|
17697
|
-
var item =
|
|
17698
|
-
index =
|
|
17699
|
-
updateState =
|
|
17129
|
+
var TabTitle = function TabTitle(_ref7) {
|
|
17130
|
+
var item = _ref7.item,
|
|
17131
|
+
index = _ref7.index,
|
|
17132
|
+
updateState = _ref7.updateState;
|
|
17700
17133
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17701
17134
|
className: "tab_title_content"
|
|
17702
17135
|
}, item.tab, item.key !== '/' && ( /*#__PURE__*/React__default['default'].createElement(ItemMenu, {
|
|
@@ -17711,7 +17144,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
17711
17144
|
}); // 添加数据大屏
|
|
17712
17145
|
var _this$props3 = this.props,
|
|
17713
17146
|
route = _this$props3.route,
|
|
17714
|
-
restPrpos = _objectWithoutProperties(_this$props3, _excluded$
|
|
17147
|
+
restPrpos = _objectWithoutProperties(_this$props3, _excluded$g);
|
|
17715
17148
|
var exist = route.routes.find(function (route) {
|
|
17716
17149
|
return route.path === '/homePage/data-show';
|
|
17717
17150
|
});
|
|
@@ -17866,8 +17299,8 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
17866
17299
|
onMenuHeaderClick: function onMenuHeaderClick() {
|
|
17867
17300
|
return umi.history.push('/');
|
|
17868
17301
|
},
|
|
17869
|
-
menuHeaderRender: function menuHeaderRender(
|
|
17870
|
-
_objectDestructuringEmpty(
|
|
17302
|
+
menuHeaderRender: function menuHeaderRender(_ref8) {
|
|
17303
|
+
_objectDestructuringEmpty(_ref8);
|
|
17871
17304
|
return /*#__PURE__*/React__default['default'].createElement(CustomerMenuHeader, {
|
|
17872
17305
|
originRoutes: originRoutes,
|
|
17873
17306
|
itemPath: itemPath,
|
|
@@ -18270,8 +17703,8 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
18270
17703
|
};
|
|
18271
17704
|
};
|
|
18272
17705
|
|
|
18273
|
-
var css_248z$
|
|
18274
|
-
styleInject(css_248z$
|
|
17706
|
+
var css_248z$n = ".editTableWrapper {\n width: 1000px;\n height: 500px;\n overflow: auto;\n position: relative;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.editTableWrapper table {\n table-layout: fixed;\n}\n.editTableWrapper .editTable {\n position: relative;\n overflow: hidden;\n border-top: 0;\n background: #fff;\n}\n.editTableWrapper .north__west {\n position: sticky;\n background-color: #f7f8fb;\n left: 0px;\n top: 0px;\n font-size: 14px;\n color: #606266;\n z-index: 5;\n}\n.editTableWrapper .north__west th {\n background: #fff;\n font-size: 14px;\n color: #606266;\n z-index: 5;\n}\n.editTableWrapper .south__west {\n z-index: 4;\n position: absolute;\n left: 0px;\n top: 0;\n}\n.editTableWrapper .south__west th {\n background: #fff;\n font-size: 14px;\n color: #606266;\n z-index: 4;\n}\n.editTableWrapper .south__west td {\n font-size: 12px;\n background: #fff;\n color: #6a6a6a;\n}\n.editTableWrapper .south__west td svg {\n width: 20px;\n height: 20px;\n vertical-align: middle;\n}\n.editTableWrapper .editTable__block {\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n position: absolute;\n border-collapse: collapse;\n padding: 0;\n}\n.editTableWrapper .editTable__block th,\n.editTableWrapper .editTable__block td {\n box-sizing: border-box;\n font-size: 11px;\n color: #6a6a6a;\n}\n.editTableWrapper .value_table table {\n table-layout: fixed;\n min-width: 100%;\n}\n.editTableWrapper .table_border_style {\n border-collapse: separate;\n border-spacing: 0;\n border-left: 1px solid #f0f0f0;\n border-top: 1px solid #f0f0f0;\n}\n.editTableWrapper .table_border_style td {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n box-sizing: border-box;\n border-right: 1px solid #f0f0f0;\n border-bottom: 1px solid #f0f0f0;\n padding: 0 10px;\n font-size: 14px;\n line-height: 28px;\n}\n";
|
|
17707
|
+
styleInject(css_248z$n);
|
|
18275
17708
|
|
|
18276
17709
|
var useSticky = function useSticky(sticky) {
|
|
18277
17710
|
var _ref = _typeof(sticky) === 'object' ? sticky : {},
|
|
@@ -18683,10 +18116,10 @@ var index$7 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
18683
18116
|
}))))));
|
|
18684
18117
|
});
|
|
18685
18118
|
|
|
18686
|
-
var _excluded$
|
|
18119
|
+
var _excluded$h = ["children"];
|
|
18687
18120
|
var Drawer = (function (props) {
|
|
18688
18121
|
var children = props.children,
|
|
18689
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
18122
|
+
restProps = _objectWithoutProperties(props, _excluded$h);
|
|
18690
18123
|
return /*#__PURE__*/React__default['default'].createElement(antd.Drawer, _objectSpread2({
|
|
18691
18124
|
mask: true,
|
|
18692
18125
|
closable: false,
|
|
@@ -24508,8 +23941,8 @@ var nameRender = (function (data) {
|
|
|
24508
23941
|
}, " ");
|
|
24509
23942
|
});
|
|
24510
23943
|
|
|
24511
|
-
var css_248z$
|
|
24512
|
-
styleInject(css_248z$
|
|
23944
|
+
var css_248z$o = ".si-tree {\n font-size: 14px;\n}\n.si-tree-node-block {\n display: flex;\n align-items: center;\n padding: 2px 4px;\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.si-tree-node-block:hover {\n background-color: #1990ffab;\n color: #fff;\n}\n.si-tree-node-block-actived {\n background-color: #1990ffab;\n color: #fff;\n}\n.si-tree-node-switcher {\n margin-right: 2px;\n}\n.si-tree-node-icon {\n margin-right: 4px;\n display: flex;\n}\n.tree-compact {\n margin-left: 4px;\n font-size: 13px;\n font-style: italic;\n color: #49aa19;\n}\n";
|
|
23945
|
+
styleInject(css_248z$o);
|
|
24513
23946
|
|
|
24514
23947
|
function parseData(data) {
|
|
24515
23948
|
var res;
|
|
@@ -24720,8 +24153,8 @@ function registerSuggestions(monaco) {
|
|
|
24720
24153
|
});
|
|
24721
24154
|
}
|
|
24722
24155
|
|
|
24723
|
-
var css_248z$
|
|
24724
|
-
styleInject(css_248z$
|
|
24156
|
+
var css_248z$p = ":global .si-editor-highlight {\n background: #1990ffab;\n}\n.title {\n color: #1890ff;\n padding: 12px;\n font-weight: bold;\n}\n.editorWrapper {\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n padding: 24px;\n background-color: #fff;\n z-index: 10000;\n}\n";
|
|
24157
|
+
styleInject(css_248z$p);
|
|
24725
24158
|
|
|
24726
24159
|
var Title = antd.Typography.Title;
|
|
24727
24160
|
var STRTEMP = 'const config = ';
|
|
@@ -24915,7 +24348,7 @@ var Editor = (function (props) {
|
|
|
24915
24348
|
}, [shallowHeight]);
|
|
24916
24349
|
var hasConfigTree = type !== 'editor';
|
|
24917
24350
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
24918
|
-
className: isFull ? css_248z$
|
|
24351
|
+
className: isFull ? css_248z$p.editorWrapper : ''
|
|
24919
24352
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
24920
24353
|
style: {
|
|
24921
24354
|
overflow: 'hidden'
|
|
@@ -24983,7 +24416,7 @@ var Editor = (function (props) {
|
|
|
24983
24416
|
})), hasConfigTree && /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
24984
24417
|
span: 8
|
|
24985
24418
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
24986
|
-
className: css_248z$
|
|
24419
|
+
className: css_248z$p.title
|
|
24987
24420
|
}, "\u5C5E\u6027\u8282\u70B9\u6811"), /*#__PURE__*/React__default['default'].createElement(ConfigTree, {
|
|
24988
24421
|
style: {
|
|
24989
24422
|
height: 'calc(100vh - 300px)',
|
|
@@ -26866,8 +26299,8 @@ var FieldsSettingsTable = (function (props) {
|
|
|
26866
26299
|
})), fieldsModify.visible && /*#__PURE__*/React__default['default'].createElement(FieldsModifyModal, _objectSpread2({}, fieldsModify)));
|
|
26867
26300
|
});
|
|
26868
26301
|
|
|
26869
|
-
var css_248z$
|
|
26870
|
-
styleInject(css_248z$
|
|
26302
|
+
var css_248z$q = ".customFieldsDrawer .ant-col-8 {\n flex: 0 0 100%!important;\n max-width: 100%!important;\n}\n.customFieldsDrawer .ant-form-item {\n margin-bottom: 0!important;\n}\n.customFieldsDrawer .ant-form {\n margin-bottom: 15px;\n}\n.customFieldsDrawer .sula-template-query-table-fields-wrapper {\n align-items: center;\n}\n";
|
|
26303
|
+
styleInject(css_248z$q);
|
|
26871
26304
|
|
|
26872
26305
|
function iterFileds(fields) {
|
|
26873
26306
|
var filedsValue = [];
|
|
@@ -26933,7 +26366,7 @@ function convertFileds(fields, falltValue, faltFieldRange, containerName) {
|
|
|
26933
26366
|
if (item.dependency) {
|
|
26934
26367
|
targetValue.dependency = {
|
|
26935
26368
|
visible: _objectSpread2(_objectSpread2({}, item.dependency.visible), {}, {
|
|
26936
|
-
type: new Function('
|
|
26369
|
+
type: new Function('axios', 'ctx', item.dependency.visible.type).bind(null, axios__default['default'])
|
|
26937
26370
|
})
|
|
26938
26371
|
};
|
|
26939
26372
|
}
|
|
@@ -27148,13 +26581,12 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
27148
26581
|
tableJsonEditorValsArr = _useState16[0],
|
|
27149
26582
|
setTableJsonEditorValsArr = _useState16[1];
|
|
27150
26583
|
React.useEffect(function () {
|
|
27151
|
-
Promise.all([
|
|
26584
|
+
Promise.all([axios__default['default'].get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
|
|
27152
26585
|
var _ref3 = _slicedToArray(_ref2, 1),
|
|
27153
26586
|
res = _ref3[0];
|
|
27154
|
-
var
|
|
27155
|
-
|
|
27156
|
-
|
|
27157
|
-
if (code === '000000') {
|
|
26587
|
+
var resD = (res === null || res === void 0 ? void 0 : res.data) || {};
|
|
26588
|
+
var data = resD.data;
|
|
26589
|
+
if (judgeIsRequestSuccess(resD)) {
|
|
27158
26590
|
if (data) {
|
|
27159
26591
|
var businessType = data.businessType,
|
|
27160
26592
|
fieldGroup = data.code,
|
|
@@ -27173,17 +26605,17 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
27173
26605
|
React.useEffect(function () {
|
|
27174
26606
|
//明细表的配置数据
|
|
27175
26607
|
var axiosArr = detailTablesSetting.map(function (item) {
|
|
27176
|
-
return
|
|
26608
|
+
return axios__default['default'].get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(item.tableCode));
|
|
27177
26609
|
});
|
|
27178
|
-
Promise.all(axiosArr).then(function (
|
|
27179
|
-
var
|
|
27180
|
-
resArr =
|
|
26610
|
+
Promise.all(axiosArr).then(function (_ref4) {
|
|
26611
|
+
var _ref5 = _toArray(_ref4),
|
|
26612
|
+
resArr = _ref5.slice(0);
|
|
27181
26613
|
var configParams = {};
|
|
27182
26614
|
detailTablesSetting.map(function (item, index) {
|
|
27183
26615
|
var _resArr$index;
|
|
27184
|
-
var
|
|
27185
|
-
code =
|
|
27186
|
-
data =
|
|
26616
|
+
var _ref6 = ((_resArr$index = resArr[index]) === null || _resArr$index === void 0 ? void 0 : _resArr$index.data) || {},
|
|
26617
|
+
code = _ref6.code,
|
|
26618
|
+
data = _ref6.data;
|
|
27187
26619
|
if (data) {
|
|
27188
26620
|
var businessType = data.businessType,
|
|
27189
26621
|
fieldGroup = data.code,
|
|
@@ -27599,8 +27031,8 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
27599
27031
|
});
|
|
27600
27032
|
};
|
|
27601
27033
|
|
|
27602
|
-
var css_248z$
|
|
27603
|
-
styleInject(css_248z$
|
|
27034
|
+
var css_248z$r = ".base_rule p {\n margin: 0;\n}\n.base_rule .base_rule_content {\n min-height: 80px;\n margin-bottom: 20px;\n}\n.base_rule .base_rule_line_title {\n position: relative;\n height: 40px;\n}\n.base_rule .base_rule_line_title .rule_title {\n height: 35px;\n padding: 0 10px;\n font-weight: bold;\n font-size: 16px;\n line-height: 35px;\n}\n.base_rule .base_rule_line_title .base_rule_btn_style {\n position: absolute;\n right: 0px;\n}\n.base_rule .base_rule_line_title :global .ant-btn-link {\n color: #008fe0;\n font-weight: bold;\n border: 0px !important;\n}\n.base_rule .base_rule_line_title :global .ant-btn-link:hover,\n.base_rule .base_rule_line_title :global .ant-btn-link:focus {\n color: #008fe0;\n background-color: transparent;\n border: 0px;\n border-color: #008fe0;\n}\n.base_rule .base_rule_line_title :global .ant-btn:not(.ant-btn-primary .ant-btn-danger):hover,\n.base_rule .base_rule_line_title :global .ant-btn:not(.ant-btn-primary .ant-btn-danger):active,\n.base_rule .base_rule_line_title :global .ant-btn:not(.ant-btn-primary .ant-btn-danger):focus {\n color: #008fe0;\n}\n.base_rule .base_rule_line_content {\n display: flex;\n padding: 15px;\n overflow-x: auto;\n}\n.base_rule .base_rule_line_content .base_rule_icon_btn {\n margin-right: 10px;\n color: #89b9cf;\n font-size: 20px;\n}\n.base_rule .base_rule_line_content .base_rule_icon_btn:hover {\n cursor: pointer;\n}\n.base_rule .base_rule_line_content .base_rule_item_desc_content {\n height: 45px;\n line-height: 45px;\n}\n.base_rule .base_rule_line_content .base_rule_item_desc {\n margin-right: 15px;\n}\n.base_rule .base_rule_line_content .base_rule_item1 {\n align-items: center;\n width: 120px;\n color: #f8ab3c;\n font-size: 16px;\n}\n.base_rule .base_rule_line_content .base_rule_item2 {\n width: 1200px;\n}\n.base_rule .base_rule_line_content .base_rule_item3 {\n display: flex;\n align-items: center;\n justify-content: space-around;\n margin-top: -20px;\n padding-left: 20px;\n}\n.base_rule .base_rule_line_content .line_color_red {\n color: #ed869b;\n}\n.base_rule .base_rule_line_content .base_rule_item4 {\n width: 80px;\n}\n.base_rule .footer_line > span {\n color: #008fe0;\n font-weight: bold;\n font-size: 16px;\n}\n.rule_name_title {\n display: inline-block;\n height: 30px;\n margin-right: 10px;\n margin-bottom: 10px;\n padding-left: 10px;\n color: #f8ab3c;\n font-size: 16px;\n line-height: 30px;\n}\n.logical_operate_content {\n position: relative;\n}\n.logical_operate_content .top_line {\n position: absolute;\n top: 0;\n left: 50%;\n z-index: 999;\n width: 15px;\n height: 2px;\n background-color: #d6efe8;\n}\n.logical_operate_content .bottom_line {\n position: absolute;\n bottom: 0;\n left: 50%;\n z-index: 999;\n width: 15px;\n height: 2px;\n background-color: #d6efe8;\n}\n.logical_operate_content::before {\n position: absolute;\n top: 0;\n left: 50%;\n z-index: 998;\n width: 2px;\n height: 100%;\n overflow: hidden;\n background: #d6efe8;\n content: ' ';\n}\n.logical_item_btn {\n position: absolute !important;\n top: 50%;\n left: 50%;\n z-index: 999;\n display: flex !important;\n align-items: center;\n width: 50px;\n height: 30px !important;\n margin-top: -15px;\n margin-left: -25px;\n padding: 0px !important;\n color: #008fe0 !important;\n line-height: 30px !important;\n text-align: center !important;\n background-color: #ffffff !important;\n cursor: pointer !important;\n}\n.logical_item_btn1 {\n position: absolute;\n bottom: 0;\n left: 50%;\n z-index: 999;\n display: inline-block;\n width: 30px;\n height: 30px;\n margin-left: -15px;\n color: #008fe0;\n line-height: 30px;\n text-align: center;\n background-color: #ffffff;\n cursor: pointer;\n}\n.rule_field_style {\n display: inline-block;\n}\n.icon_btn_style {\n margin-right: 10px;\n font-size: 20px;\n}\n.choose_logical_type {\n height: 25px;\n margin: 0px;\n padding: 0 10px;\n line-height: 25px;\n cursor: pointer;\n}\n.choose_logical_type:first-child {\n border-bottom: 1px solid #d9d9d9;\n}\n.choose_logical_type:hover {\n color: white;\n background-color: #008fe0;\n}\n.action_list_item {\n display: flex;\n justify-content: space-between;\n margin-bottom: 10px;\n padding: 10px;\n border: 1px solid #e1e1f0;\n border-radius: 2px;\n cursor: pointer;\n}\n:global .ant-popover-inner-content {\n padding: 0px;\n}\n";
|
|
27035
|
+
styleInject(css_248z$r);
|
|
27604
27036
|
|
|
27605
27037
|
// 查询规则对象属性thresholdList
|
|
27606
27038
|
function getRegularThresholdRange(_x) {
|
|
@@ -27611,7 +27043,7 @@ function _getRegularThresholdRange() {
|
|
|
27611
27043
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
27612
27044
|
while (1) switch (_context.prev = _context.next) {
|
|
27613
27045
|
case 0:
|
|
27614
|
-
return _context.abrupt("return",
|
|
27046
|
+
return _context.abrupt("return", axios__default['default']({
|
|
27615
27047
|
url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
|
|
27616
27048
|
method: 'POST',
|
|
27617
27049
|
data: _objectSpread2(_objectSpread2({}, params), {}, {
|
|
@@ -30145,7 +29577,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
30145
29577
|
style: {
|
|
30146
29578
|
marginLeft: '10px'
|
|
30147
29579
|
},
|
|
30148
|
-
className: css_248z$
|
|
29580
|
+
className: css_248z$r.rule_field_style
|
|
30149
29581
|
}, this.renderConditionField());
|
|
30150
29582
|
}
|
|
30151
29583
|
}]);
|
|
@@ -30587,7 +30019,7 @@ var RuleField$1 = /*#__PURE__*/function (_Component) {
|
|
|
30587
30019
|
disabled = _this$props.disabled;
|
|
30588
30020
|
return /*#__PURE__*/React__default['default'].createElement("div", null, ruleTypeData.map(function (i) {
|
|
30589
30021
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
30590
|
-
className: css_248z$
|
|
30022
|
+
className: css_248z$r.action_list_item
|
|
30591
30023
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
30592
30024
|
onClick: function onClick() {
|
|
30593
30025
|
return handleOperatingAction(i.code, 'view');
|
|
@@ -30611,533 +30043,55 @@ var RuleField$1 = /*#__PURE__*/function (_Component) {
|
|
|
30611
30043
|
return RuleField;
|
|
30612
30044
|
}(React.Component);
|
|
30613
30045
|
|
|
30614
|
-
var
|
|
30615
|
-
|
|
30616
|
-
|
|
30617
|
-
|
|
30618
|
-
|
|
30619
|
-
|
|
30620
|
-
|
|
30621
|
-
|
|
30622
|
-
var
|
|
30623
|
-
var Item = {
|
|
30624
|
-
id: item.id,
|
|
30625
|
-
code: item.code,
|
|
30626
|
-
name: item.name,
|
|
30627
|
-
value: item.code
|
|
30628
|
-
};
|
|
30629
|
-
if (item.propertyList) {
|
|
30630
|
-
// @ts-ignore
|
|
30631
|
-
Item.propertyList = item.propertyList.map(function (field) {
|
|
30632
|
-
return {
|
|
30633
|
-
id: field.id,
|
|
30634
|
-
code: field.code,
|
|
30635
|
-
name: field.name,
|
|
30636
|
-
value: "".concat(item.code, ".").concat(field.code),
|
|
30637
|
-
valueText: "".concat(item.name, ".").concat(field.name)
|
|
30638
|
-
};
|
|
30639
|
-
});
|
|
30640
|
-
}
|
|
30641
|
-
return Item;
|
|
30642
|
-
});
|
|
30643
|
-
console.log((ites === null || ites === void 0 ? void 0 : ites.dictionaryCode) && !getDictionarySource(ites.dictionaryCode));
|
|
30644
|
-
var _useState = React.useState(getDictionarySource(ites.dictionaryCode) || []),
|
|
30046
|
+
var InnerSelect = (function (props) {
|
|
30047
|
+
var disabled = props.disabled,
|
|
30048
|
+
inputType = props.inputType,
|
|
30049
|
+
defaultValue = props.defaultValue,
|
|
30050
|
+
styleCommon = props.styleCommon,
|
|
30051
|
+
value = props.value,
|
|
30052
|
+
_onChange = props.onChange,
|
|
30053
|
+
dictionaryCode = props.dictionaryCode;
|
|
30054
|
+
var _useState = React.useState(getDictionarySource(dictionaryCode !== null && dictionaryCode !== void 0 ? dictionaryCode : '') || []),
|
|
30645
30055
|
_useState2 = _slicedToArray(_useState, 2),
|
|
30646
|
-
|
|
30647
|
-
|
|
30648
|
-
var getDictData = /*#__PURE__*/function () {
|
|
30649
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30650
|
-
var _data$map;
|
|
30651
|
-
var data;
|
|
30652
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30653
|
-
while (1) switch (_context.prev = _context.next) {
|
|
30654
|
-
case 0:
|
|
30655
|
-
_context.next = 2;
|
|
30656
|
-
return bssula.request({
|
|
30657
|
-
url: "/basic/bscDictItem/allItemList?qp-code-eq=".concat(ites.dictionaryCode)
|
|
30658
|
-
});
|
|
30659
|
-
case 2:
|
|
30660
|
-
data = _context.sent;
|
|
30661
|
-
setDictData(data === null || data === void 0 ? void 0 : (_data$map = data.map) === null || _data$map === void 0 ? void 0 : _data$map.call(data, function (item) {
|
|
30662
|
-
return {
|
|
30663
|
-
text: item.dictItemName,
|
|
30664
|
-
value: item.dictItemCode
|
|
30665
|
-
};
|
|
30666
|
-
}));
|
|
30667
|
-
case 4:
|
|
30668
|
-
case "end":
|
|
30669
|
-
return _context.stop();
|
|
30670
|
-
}
|
|
30671
|
-
}, _callee);
|
|
30672
|
-
}));
|
|
30673
|
-
return function getDictData() {
|
|
30674
|
-
return _ref.apply(this, arguments);
|
|
30675
|
-
};
|
|
30676
|
-
}();
|
|
30056
|
+
dataSource = _useState2[0],
|
|
30057
|
+
setDataSource = _useState2[1];
|
|
30677
30058
|
React.useEffect(function () {
|
|
30678
|
-
if (
|
|
30679
|
-
|
|
30680
|
-
|
|
30681
|
-
|
|
30682
|
-
|
|
30683
|
-
|
|
30684
|
-
|
|
30685
|
-
|
|
30686
|
-
|
|
30687
|
-
|
|
30688
|
-
|
|
30689
|
-
|
|
30690
|
-
|
|
30691
|
-
|
|
30692
|
-
|
|
30693
|
-
|
|
30694
|
-
|
|
30695
|
-
return handleEdit(ites.code, undefined);
|
|
30696
|
-
},
|
|
30697
|
-
defaultValue: showValue(ites.code, 'input'),
|
|
30698
|
-
style: styleCommon,
|
|
30699
|
-
onBlur: function onBlur(e) {
|
|
30700
|
-
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
30701
|
-
}
|
|
30702
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 22) && ( /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
30703
|
-
disabled: disabled,
|
|
30704
|
-
max: Number.MAX_SAFE_INTEGER,
|
|
30705
|
-
min: (ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 ? 0 : Number.MIN_SAFE_INTEGER,
|
|
30706
|
-
precision: (ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 ? 0 : 2,
|
|
30707
|
-
defaultValue: ites.defaultValue,
|
|
30708
|
-
style: style2,
|
|
30709
|
-
value: showValue(ites.code),
|
|
30710
|
-
onChange: function onChange(value) {
|
|
30711
|
-
handleEdit(ites.code, value);
|
|
30712
|
-
}
|
|
30713
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 41 && ( /*#__PURE__*/React__default['default'].createElement(antd.DatePicker, {
|
|
30714
|
-
disabled: disabled,
|
|
30715
|
-
defaultValue: ites.defaultValue,
|
|
30716
|
-
style: style2,
|
|
30717
|
-
value: showValue(ites.code),
|
|
30718
|
-
onChange: function onChange(value) {
|
|
30719
|
-
handleEdit(ites.code, value);
|
|
30720
|
-
}
|
|
30721
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && ( /*#__PURE__*/React__default['default'].createElement(RangePicker$1, {
|
|
30722
|
-
showTime: true,
|
|
30723
|
-
disabled: disabled,
|
|
30724
|
-
defaultValue: ites.defaultValue,
|
|
30725
|
-
style: style2,
|
|
30726
|
-
value: showValue(ites.code),
|
|
30727
|
-
onChange: function onChange(value) {
|
|
30728
|
-
handleEdit(ites.code, value);
|
|
30729
|
-
}
|
|
30730
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && ( /*#__PURE__*/React__default['default'].createElement(antd.Switch, {
|
|
30731
|
-
disabled: disabled,
|
|
30732
|
-
defaultChecked: !!ites.defaultValue,
|
|
30733
|
-
style: style2,
|
|
30734
|
-
checked: showValue(ites.code),
|
|
30735
|
-
onChange: function onChange(value) {
|
|
30736
|
-
handleEdit(ites.code, value);
|
|
30059
|
+
if (!!dictionaryCode && !getDictionarySource(dictionaryCode)) {
|
|
30060
|
+
bssula.request({
|
|
30061
|
+
url: "/basic/bscDictItem/allItemList?qp-code-eq=".concat(dictionaryCode),
|
|
30062
|
+
method: 'get',
|
|
30063
|
+
converter: function converter(_ref) {
|
|
30064
|
+
var _data$map;
|
|
30065
|
+
var data = _ref.data;
|
|
30066
|
+
var dataList = (data === null || data === void 0 ? void 0 : (_data$map = data.map) === null || _data$map === void 0 ? void 0 : _data$map.call(data, function (item) {
|
|
30067
|
+
return {
|
|
30068
|
+
label: item.dictItemName,
|
|
30069
|
+
value: item.dictItemCode
|
|
30070
|
+
};
|
|
30071
|
+
})) || [];
|
|
30072
|
+
setDataSource(dataList);
|
|
30073
|
+
return dataList;
|
|
30074
|
+
}
|
|
30075
|
+
});
|
|
30737
30076
|
}
|
|
30738
|
-
}
|
|
30739
|
-
|
|
30740
|
-
allowClear: true,
|
|
30741
|
-
showArrow: true
|
|
30742
|
-
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30743
|
-
mode: 'multiple'
|
|
30744
|
-
} : {}), {}, {
|
|
30745
|
-
defaultValue: ites.defaultValue,
|
|
30746
|
-
style: styleCommon,
|
|
30747
|
-
value: showValue(ites.code),
|
|
30748
|
-
onChange: function onChange(value) {
|
|
30749
|
-
handleEdit(ites.code, value);
|
|
30750
|
-
}
|
|
30751
|
-
}), Object.keys(ites.enumeration).map(function (it) {
|
|
30752
|
-
return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
|
|
30753
|
-
key: it,
|
|
30754
|
-
value: it
|
|
30755
|
-
}, ites.enumeration[it]);
|
|
30756
|
-
}))) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 20 && ( /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({
|
|
30077
|
+
}, [dictionaryCode]);
|
|
30078
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({
|
|
30757
30079
|
disabled: disabled
|
|
30758
|
-
},
|
|
30080
|
+
}, inputType === 30 ? {
|
|
30759
30081
|
mode: 'multiple'
|
|
30760
30082
|
} : {}), {}, {
|
|
30761
|
-
defaultValue:
|
|
30762
|
-
style: styleCommon,
|
|
30763
|
-
value: (_showValue = showValue(ites.code)) === null || _showValue === void 0 ? void 0 : _showValue.split(','),
|
|
30764
|
-
onChange: function onChange(value) {
|
|
30765
|
-
handleEdit(ites.code, value);
|
|
30766
|
-
},
|
|
30767
|
-
showSearch: true,
|
|
30768
|
-
optionFilterProp: "children",
|
|
30769
|
-
filterOption: function filterOption(input, option) {
|
|
30770
|
-
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
30771
|
-
}
|
|
30772
|
-
}), dictData === null || dictData === void 0 ? void 0 : dictData.map(function (it) {
|
|
30773
|
-
return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
|
|
30774
|
-
key: it.value,
|
|
30775
|
-
value: it.value
|
|
30776
|
-
}, it.text);
|
|
30777
|
-
}))) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 110 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
30778
|
-
selectBusinessType: "physicalWarehouse",
|
|
30779
|
-
selectProps: _objectSpread2({
|
|
30780
|
-
style: styleCommon,
|
|
30781
|
-
placeholder: '请选择物理仓'
|
|
30782
|
-
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30783
|
-
mode: 'multiple',
|
|
30784
|
-
maxTagCount: 1
|
|
30785
|
-
} : {}),
|
|
30786
|
-
disabled: disabled,
|
|
30787
|
-
labelInValue: true,
|
|
30788
|
-
value: showValue(ites.code),
|
|
30789
|
-
requestConfig: {
|
|
30790
|
-
mappingValueField: 'physicalWarehouseCode',
|
|
30791
|
-
filterInit: 'qp-physicalWarehouseCode-in'
|
|
30792
|
-
},
|
|
30793
|
-
onChange: function onChange(value) {
|
|
30794
|
-
handleEdit(ites.code, value);
|
|
30795
|
-
},
|
|
30796
|
-
getPopupContainer: function getPopupContainer() {
|
|
30797
|
-
return document.body;
|
|
30798
|
-
}
|
|
30799
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 120 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
30800
|
-
selectBusinessType: "realWarehouse",
|
|
30801
|
-
selectProps: _objectSpread2({
|
|
30802
|
-
style: styleCommon,
|
|
30803
|
-
placeholder: '请选择逻辑仓'
|
|
30804
|
-
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30805
|
-
mode: 'multiple',
|
|
30806
|
-
maxTagCount: 1
|
|
30807
|
-
} : {}),
|
|
30808
|
-
disabled: disabled,
|
|
30809
|
-
labelInValue: true,
|
|
30810
|
-
value: showValue(ites.code),
|
|
30811
|
-
requestConfig: {
|
|
30812
|
-
mappingValueField: 'realWarehouseCode',
|
|
30813
|
-
filterInit: 'qp-realWarehouseCode-in'
|
|
30814
|
-
},
|
|
30815
|
-
onChange: function onChange(value) {
|
|
30816
|
-
handleEdit(ites.code, value);
|
|
30817
|
-
},
|
|
30818
|
-
getPopupContainer: function getPopupContainer() {
|
|
30819
|
-
return document.body;
|
|
30820
|
-
}
|
|
30821
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 130 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
30822
|
-
selectBusinessType: "virtualWarehouse",
|
|
30823
|
-
selectProps: _objectSpread2({
|
|
30824
|
-
style: styleCommon,
|
|
30825
|
-
placeholder: '请选择虚拟仓'
|
|
30826
|
-
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30827
|
-
mode: 'multiple',
|
|
30828
|
-
maxTagCount: 1
|
|
30829
|
-
} : {}),
|
|
30830
|
-
disabled: disabled,
|
|
30831
|
-
labelInValue: true,
|
|
30832
|
-
value: showValue(ites.code),
|
|
30833
|
-
requestConfig: {
|
|
30834
|
-
mappingValueField: 'virtualWarehouseCode',
|
|
30835
|
-
filterInit: 'qp-virtualWarehouseCode-in'
|
|
30836
|
-
},
|
|
30837
|
-
onChange: function onChange(value) {
|
|
30838
|
-
handleEdit(ites.code, value);
|
|
30839
|
-
},
|
|
30840
|
-
getPopupContainer: function getPopupContainer() {
|
|
30841
|
-
return document.body;
|
|
30842
|
-
}
|
|
30843
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 140 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
30844
|
-
selectBusinessType: "channelWarehouse",
|
|
30845
|
-
selectProps: _objectSpread2({
|
|
30846
|
-
style: styleCommon,
|
|
30847
|
-
placeholder: '请选择渠道仓'
|
|
30848
|
-
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30849
|
-
mode: 'multiple',
|
|
30850
|
-
maxTagCount: 1
|
|
30851
|
-
} : {}),
|
|
30852
|
-
disabled: disabled,
|
|
30853
|
-
labelInValue: true,
|
|
30854
|
-
value: showValue(ites.code),
|
|
30855
|
-
requestConfig: {
|
|
30856
|
-
mappingValueField: 'channelWarehouseCode',
|
|
30857
|
-
filterInit: 'qp-channelWarehouseCode-in'
|
|
30858
|
-
},
|
|
30859
|
-
onChange: function onChange(value) {
|
|
30860
|
-
handleEdit(ites.code, value);
|
|
30861
|
-
},
|
|
30862
|
-
getPopupContainer: function getPopupContainer() {
|
|
30863
|
-
return document.body;
|
|
30864
|
-
}
|
|
30865
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 150 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
30866
|
-
selectBusinessType: "spuCommodity",
|
|
30867
|
-
selectProps: _objectSpread2({
|
|
30868
|
-
style: styleCommon,
|
|
30869
|
-
placeholder: '请选择SPU'
|
|
30870
|
-
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30871
|
-
mode: 'multiple',
|
|
30872
|
-
maxTagCount: 1
|
|
30873
|
-
} : {}),
|
|
30874
|
-
disabled: disabled,
|
|
30875
|
-
labelInValue: true,
|
|
30876
|
-
value: showValue(ites.code),
|
|
30877
|
-
requestConfig: {
|
|
30878
|
-
filterInit: 'qp-itemCode-in'
|
|
30879
|
-
},
|
|
30880
|
-
onChange: function onChange(value) {
|
|
30881
|
-
handleEdit(ites.code, value);
|
|
30882
|
-
},
|
|
30883
|
-
getPopupContainer: function getPopupContainer() {
|
|
30884
|
-
return document.body;
|
|
30885
|
-
}
|
|
30886
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 160 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
30887
|
-
selectBusinessType: "skuCommodity",
|
|
30888
|
-
selectProps: _objectSpread2({
|
|
30889
|
-
style: styleCommon,
|
|
30890
|
-
placeholder: '请选择商品'
|
|
30891
|
-
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30892
|
-
mode: 'multiple',
|
|
30893
|
-
maxTagCount: 1
|
|
30894
|
-
} : {}),
|
|
30895
|
-
disabled: disabled,
|
|
30896
|
-
labelInValue: true,
|
|
30897
|
-
value: showValue(ites.code),
|
|
30898
|
-
requestConfig: {
|
|
30899
|
-
filterInit: 'qp-skuCode-in'
|
|
30900
|
-
},
|
|
30901
|
-
onChange: function onChange(value) {
|
|
30902
|
-
handleEdit(ites.code, value);
|
|
30903
|
-
},
|
|
30904
|
-
getPopupContainer: function getPopupContainer() {
|
|
30905
|
-
return document.body;
|
|
30906
|
-
}
|
|
30907
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 190 && ( /*#__PURE__*/React__default['default'].createElement(BsCascader, {
|
|
30908
|
-
disabled: disabled,
|
|
30909
|
-
isAll: true,
|
|
30910
|
-
needNameAndCode: true,
|
|
30911
|
-
notChangeOnSelect: true,
|
|
30912
|
-
initRequestSource: function () {
|
|
30913
|
-
var _initRequestSource = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
30914
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
30915
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
30916
|
-
case 0:
|
|
30917
|
-
_context2.next = 2;
|
|
30918
|
-
return bssula.request({
|
|
30919
|
-
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
30920
|
-
method: 'get',
|
|
30921
|
-
converter: function converter(_ref2) {
|
|
30922
|
-
var data = _ref2.data;
|
|
30923
|
-
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115629
|
|
30924
|
-
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
30925
|
-
return {
|
|
30926
|
-
text: item.name,
|
|
30927
|
-
value: item.id,
|
|
30928
|
-
level: item.level,
|
|
30929
|
-
id: item.id
|
|
30930
|
-
};
|
|
30931
|
-
}) : [];
|
|
30932
|
-
return handleData;
|
|
30933
|
-
}
|
|
30934
|
-
});
|
|
30935
|
-
case 2:
|
|
30936
|
-
return _context2.abrupt("return", _context2.sent);
|
|
30937
|
-
case 3:
|
|
30938
|
-
case "end":
|
|
30939
|
-
return _context2.stop();
|
|
30940
|
-
}
|
|
30941
|
-
}, _callee2);
|
|
30942
|
-
}));
|
|
30943
|
-
function initRequestSource() {
|
|
30944
|
-
return _initRequestSource.apply(this, arguments);
|
|
30945
|
-
}
|
|
30946
|
-
return initRequestSource;
|
|
30947
|
-
}(),
|
|
30948
|
-
value: showValue(ites.code),
|
|
30949
|
-
onChange: function onChange(value) {
|
|
30950
|
-
handleEdit(ites.code, value);
|
|
30951
|
-
},
|
|
30952
|
-
getPopupContainer: function getPopupContainer() {
|
|
30953
|
-
return document.body;
|
|
30954
|
-
}
|
|
30955
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 210 && ( /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
30956
|
-
disabled: disabled,
|
|
30957
|
-
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
30958
|
-
businessType: "department",
|
|
30959
|
-
labelInValue: true,
|
|
30960
|
-
value: showValue(ites.code),
|
|
30961
|
-
style: styleCommon,
|
|
30962
|
-
onChange: function onChange(value) {
|
|
30963
|
-
handleEdit(ites.code, value);
|
|
30964
|
-
},
|
|
30965
|
-
getPopupContainer: function getPopupContainer() {
|
|
30966
|
-
return document.body;
|
|
30967
|
-
}
|
|
30968
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 220 && ( /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
30969
|
-
disabled: disabled,
|
|
30970
|
-
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
30971
|
-
businessType: "purchase-organization",
|
|
30972
|
-
labelInValue: true,
|
|
30973
|
-
value: showValue(ites.code),
|
|
30974
|
-
style: styleCommon,
|
|
30975
|
-
onChange: function onChange(value) {
|
|
30976
|
-
handleEdit(ites.code, value);
|
|
30977
|
-
},
|
|
30978
|
-
getPopupContainer: function getPopupContainer() {
|
|
30979
|
-
return document.body;
|
|
30980
|
-
}
|
|
30981
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 230 && ( /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
30982
|
-
disabled: disabled,
|
|
30983
|
-
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
30984
|
-
businessType: "sales-organization",
|
|
30985
|
-
labelInValue: true,
|
|
30986
|
-
value: showValue(ites.code),
|
|
30987
|
-
style: styleCommon,
|
|
30988
|
-
onChange: function onChange(value) {
|
|
30989
|
-
handleEdit(ites.code, value);
|
|
30990
|
-
},
|
|
30991
|
-
getPopupContainer: function getPopupContainer() {
|
|
30992
|
-
return document.body;
|
|
30993
|
-
}
|
|
30994
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 240 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
30995
|
-
selectBusinessType: "supplier2",
|
|
30996
|
-
selectProps: _objectSpread2({
|
|
30997
|
-
style: styleCommon,
|
|
30998
|
-
placeholder: '请选择供应商'
|
|
30999
|
-
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
31000
|
-
mode: 'multiple',
|
|
31001
|
-
maxTagCount: 1
|
|
31002
|
-
} : {}),
|
|
31003
|
-
disabled: disabled,
|
|
31004
|
-
labelInValue: true,
|
|
31005
|
-
value: showValue(ites.code),
|
|
31006
|
-
requestConfig: {
|
|
31007
|
-
filterInit: 'qp-code-in'
|
|
31008
|
-
},
|
|
31009
|
-
onChange: function onChange(value) {
|
|
31010
|
-
handleEdit(ites.code, value);
|
|
31011
|
-
},
|
|
31012
|
-
getPopupContainer: function getPopupContainer() {
|
|
31013
|
-
return document.body;
|
|
31014
|
-
}
|
|
31015
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 250 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
31016
|
-
selectBusinessType: "customer2",
|
|
31017
|
-
selectProps: _objectSpread2({
|
|
31018
|
-
style: styleCommon,
|
|
31019
|
-
placeholder: '请选择客户'
|
|
31020
|
-
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
31021
|
-
mode: 'multiple',
|
|
31022
|
-
maxTagCount: 1
|
|
31023
|
-
} : {}),
|
|
31024
|
-
disabled: disabled,
|
|
31025
|
-
labelInValue: true,
|
|
31026
|
-
value: showValue(ites.code),
|
|
31027
|
-
requestConfig: {
|
|
31028
|
-
filterInit: 'qp-code-in'
|
|
31029
|
-
},
|
|
31030
|
-
onChange: function onChange(value) {
|
|
31031
|
-
handleEdit(ites.code, value);
|
|
31032
|
-
},
|
|
31033
|
-
getPopupContainer: function getPopupContainer() {
|
|
31034
|
-
return document.body;
|
|
31035
|
-
}
|
|
31036
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 260 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
31037
|
-
selectBusinessType: "shopFile2",
|
|
31038
|
-
selectProps: _objectSpread2({
|
|
31039
|
-
style: styleCommon,
|
|
31040
|
-
placeholder: '请选择店铺'
|
|
31041
|
-
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
31042
|
-
mode: 'multiple',
|
|
31043
|
-
maxTagCount: 1
|
|
31044
|
-
} : {}),
|
|
31045
|
-
disabled: disabled,
|
|
31046
|
-
labelInValue: true,
|
|
31047
|
-
value: showValue(ites.code),
|
|
31048
|
-
requestConfig: {
|
|
31049
|
-
filterInit: 'qp-code-in'
|
|
31050
|
-
},
|
|
31051
|
-
onChange: function onChange(value) {
|
|
31052
|
-
handleEdit(ites.code, value);
|
|
31053
|
-
},
|
|
31054
|
-
getPopupContainer: function getPopupContainer() {
|
|
31055
|
-
return document.body;
|
|
31056
|
-
}
|
|
31057
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 270 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
31058
|
-
selectBusinessType: "employee2",
|
|
31059
|
-
selectProps: _objectSpread2({
|
|
31060
|
-
style: styleCommon,
|
|
31061
|
-
placeholder: '请选择员工'
|
|
31062
|
-
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
31063
|
-
mode: 'multiple',
|
|
31064
|
-
maxTagCount: 1
|
|
31065
|
-
} : {}),
|
|
31066
|
-
disabled: disabled,
|
|
31067
|
-
labelInValue: true,
|
|
31068
|
-
value: showValue(ites.code),
|
|
31069
|
-
requestConfig: {
|
|
31070
|
-
filterInit: 'qp-id-in'
|
|
31071
|
-
},
|
|
31072
|
-
onChange: function onChange(value) {
|
|
31073
|
-
handleEdit(ites.code, value);
|
|
31074
|
-
},
|
|
31075
|
-
getPopupContainer: function getPopupContainer() {
|
|
31076
|
-
return document.body;
|
|
31077
|
-
}
|
|
31078
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 280 && ( /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
31079
|
-
disabled: disabled,
|
|
31080
|
-
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
31081
|
-
businessType: "stock-organization",
|
|
31082
|
-
labelInValue: true,
|
|
31083
|
-
value: showValue(ites.code),
|
|
30083
|
+
defaultValue: defaultValue,
|
|
31084
30084
|
style: styleCommon,
|
|
31085
|
-
|
|
31086
|
-
|
|
31087
|
-
|
|
31088
|
-
|
|
31089
|
-
return document.body;
|
|
31090
|
-
}
|
|
31091
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
31092
|
-
selectBusinessType: "deliveryMode",
|
|
31093
|
-
selectProps: _objectSpread2({
|
|
31094
|
-
style: styleCommon,
|
|
31095
|
-
placeholder: '请选择配送方式'
|
|
31096
|
-
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
31097
|
-
mode: 'multiple',
|
|
31098
|
-
maxTagCount: 1
|
|
31099
|
-
} : {}),
|
|
31100
|
-
disabled: disabled,
|
|
31101
|
-
labelInValue: true,
|
|
31102
|
-
value: showValue(ites.code),
|
|
31103
|
-
requestConfig: {
|
|
31104
|
-
filterInit: 'qp-code-in'
|
|
31105
|
-
},
|
|
31106
|
-
onChange: function onChange(value) {
|
|
31107
|
-
handleEdit(ites.code, value);
|
|
31108
|
-
},
|
|
31109
|
-
getPopupContainer: function getPopupContainer() {
|
|
31110
|
-
return document.body;
|
|
31111
|
-
}
|
|
31112
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31113
|
-
style: {
|
|
31114
|
-
display: 'flex'
|
|
31115
|
-
}
|
|
31116
|
-
}, /*#__PURE__*/React__default['default'].createElement(App$1, {
|
|
31117
|
-
disabled: disabled,
|
|
31118
|
-
key: showValue(ites.code),
|
|
31119
|
-
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115667
|
|
31120
|
-
setValue: function setValue(val, formulaName) {
|
|
31121
|
-
console.log(val, 'val');
|
|
31122
|
-
var value = val.map(function (item) {
|
|
31123
|
-
return item.value.replace(/[a-zA-Z_]+\.\w+/g, function (i) {
|
|
31124
|
-
return '{' + i + '}';
|
|
31125
|
-
});
|
|
31126
|
-
});
|
|
31127
|
-
handleEdit(ites.code, value.join(''));
|
|
31128
|
-
handleEdit({
|
|
31129
|
-
inputType: 40,
|
|
31130
|
-
formulaName: formulaName
|
|
31131
|
-
});
|
|
30085
|
+
value: value === null || value === void 0 ? void 0 : value.split(','),
|
|
30086
|
+
onChange: function onChange(changeValue) {
|
|
30087
|
+
_onChange(changeValue);
|
|
30088
|
+
// handleEdit(ites.code, value);
|
|
31132
30089
|
},
|
|
31133
|
-
|
|
31134
|
-
|
|
31135
|
-
|
|
31136
|
-
sourceData: fieldListGroup
|
|
31137
|
-
}))));
|
|
31138
|
-
}
|
|
30090
|
+
options: dataSource
|
|
30091
|
+
}));
|
|
30092
|
+
});
|
|
31139
30093
|
|
|
31140
|
-
var RangePicker$
|
|
30094
|
+
var RangePicker$1 = antd.DatePicker.RangePicker;
|
|
31141
30095
|
var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
31142
30096
|
_inherits(RuleObjectComponent, _Component);
|
|
31143
30097
|
function RuleObjectComponent(props) {
|
|
@@ -31205,7 +30159,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
31205
30159
|
} else if (element.choiceType === 20) {
|
|
31206
30160
|
_this.dictCodeToRangeIdMap["".concat(rootObjCode, ".").concat(parentKey, ".").concat(element.code)] = infoVo === null || infoVo === void 0 ? void 0 : infoVo.dictionaryCode;
|
|
31207
30161
|
} else if (element.choiceType === 10) {
|
|
31208
|
-
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115669
|
|
31209
30162
|
var _list = Object.keys(infoVo).length && infoVo.enumeration && Object.keys(infoVo.enumeration).map(function (i) {
|
|
31210
30163
|
return {
|
|
31211
30164
|
code: i,
|
|
@@ -31550,18 +30503,18 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
31550
30503
|
onClick: function onClick() {
|
|
31551
30504
|
_this.handleLogicalTypeChange(itemDetail, 'or');
|
|
31552
30505
|
}
|
|
31553
|
-
}, "
|
|
30506
|
+
}, "\u6216\u8005"), /*#__PURE__*/React__default['default'].createElement("p", {
|
|
31554
30507
|
className: 'choose_logical_type',
|
|
31555
30508
|
onClick: function onClick() {
|
|
31556
30509
|
_this.handleLogicalTypeChange(itemDetail, 'and');
|
|
31557
30510
|
}
|
|
31558
|
-
}, "
|
|
30511
|
+
}, "\u5E76\u4E14")),
|
|
31559
30512
|
trigger: "focus"
|
|
31560
30513
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
31561
30514
|
disabled: disabled,
|
|
31562
30515
|
type: "link",
|
|
31563
30516
|
className: 'logical_item_btn'
|
|
31564
|
-
}, (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.operationCode) == 'or' ? '
|
|
30517
|
+
}, (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.operationCode) == 'or' ? '或者' : '并且', /*#__PURE__*/React__default['default'].createElement(icons.DownOutlined, {
|
|
31565
30518
|
style: {
|
|
31566
30519
|
marginLeft: '6px'
|
|
31567
30520
|
}
|
|
@@ -31656,6 +30609,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
31656
30609
|
onChange: function onChange(value) {
|
|
31657
30610
|
var _systemVariableList$f;
|
|
31658
30611
|
var ruleClassData = _this.state.ruleClassData;
|
|
30612
|
+
console.log(itemDetail);
|
|
31659
30613
|
itemDetail.params = [value && "{".concat(value, "}") || ''];
|
|
31660
30614
|
var name = (_systemVariableList$f = systemVariableList.find(function (i) {
|
|
31661
30615
|
return i.code == value;
|
|
@@ -31790,7 +30744,503 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
31790
30744
|
}
|
|
31791
30745
|
})) || null;
|
|
31792
30746
|
};
|
|
31793
|
-
_this.
|
|
30747
|
+
_this.renderCompItem = function (ites, showValue, handleEdit, disabled) {
|
|
30748
|
+
var regularDataList = _this.props.regularDataList;
|
|
30749
|
+
var fieldListGroup = regularDataList.map(function (item) {
|
|
30750
|
+
var Item = {
|
|
30751
|
+
id: item.id,
|
|
30752
|
+
code: item.code,
|
|
30753
|
+
name: item.name,
|
|
30754
|
+
value: item.code
|
|
30755
|
+
};
|
|
30756
|
+
if (item.propertyList) {
|
|
30757
|
+
Item.propertyList = item.propertyList.map(function (field) {
|
|
30758
|
+
return {
|
|
30759
|
+
id: field.id,
|
|
30760
|
+
code: field.code,
|
|
30761
|
+
name: field.name,
|
|
30762
|
+
value: "".concat(item.code, ".").concat(field.code),
|
|
30763
|
+
valueText: "".concat(item.name, ".").concat(field.name)
|
|
30764
|
+
};
|
|
30765
|
+
});
|
|
30766
|
+
}
|
|
30767
|
+
return Item;
|
|
30768
|
+
});
|
|
30769
|
+
if (!ites) return;
|
|
30770
|
+
var styleCommon = _objectSpread2({
|
|
30771
|
+
width: '200px'
|
|
30772
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.rightText) ? {
|
|
30773
|
+
marginLeft: 10
|
|
30774
|
+
} : {});
|
|
30775
|
+
var style2 = {
|
|
30776
|
+
width: '100px'
|
|
30777
|
+
};
|
|
30778
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
30779
|
+
disabled: disabled,
|
|
30780
|
+
allowClear: true,
|
|
30781
|
+
onClear: function onClear() {
|
|
30782
|
+
handleEdit(ites.code, undefined);
|
|
30783
|
+
},
|
|
30784
|
+
defaultValue: showValue(ites.code, 'input'),
|
|
30785
|
+
style: styleCommon,
|
|
30786
|
+
onBlur: function onBlur(e) {
|
|
30787
|
+
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
30788
|
+
}
|
|
30789
|
+
}) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 22) && /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
30790
|
+
disabled: disabled,
|
|
30791
|
+
max: Number.MAX_SAFE_INTEGER,
|
|
30792
|
+
min: (ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 ? 0 : Number.MIN_SAFE_INTEGER,
|
|
30793
|
+
precision: (ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 ? 0 : 2,
|
|
30794
|
+
defaultValue: ites.defaultValue,
|
|
30795
|
+
style: style2,
|
|
30796
|
+
value: showValue(ites.code),
|
|
30797
|
+
onChange: function onChange(value) {
|
|
30798
|
+
handleEdit(ites.code, value);
|
|
30799
|
+
}
|
|
30800
|
+
}) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 41 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 32) && /*#__PURE__*/React__default['default'].createElement(antd.DatePicker, {
|
|
30801
|
+
showTime: dataTypeCode == 32,
|
|
30802
|
+
format: dataTypeCode == 41 ? dateFormat : fullDateFormat,
|
|
30803
|
+
disabled: disabled,
|
|
30804
|
+
defaultValue: ites.defaultValue,
|
|
30805
|
+
style: style2,
|
|
30806
|
+
value: showValue(ites.code),
|
|
30807
|
+
onChange: function onChange(value) {
|
|
30808
|
+
handleEdit(ites.code, value);
|
|
30809
|
+
}
|
|
30810
|
+
}) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && /*#__PURE__*/React__default['default'].createElement(RangePicker$1, {
|
|
30811
|
+
showTime: true,
|
|
30812
|
+
disabled: disabled,
|
|
30813
|
+
defaultValue: ites.defaultValue,
|
|
30814
|
+
style: style2,
|
|
30815
|
+
value: showValue(ites.code),
|
|
30816
|
+
onChange: function onChange(value) {
|
|
30817
|
+
handleEdit(ites.code, value);
|
|
30818
|
+
}
|
|
30819
|
+
}) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && /*#__PURE__*/React__default['default'].createElement(antd.Switch, {
|
|
30820
|
+
disabled: disabled,
|
|
30821
|
+
defaultChecked: !!ites.defaultValue,
|
|
30822
|
+
style: style2,
|
|
30823
|
+
checked: showValue(ites.code),
|
|
30824
|
+
onChange: function onChange(value) {
|
|
30825
|
+
handleEdit(ites.code, value);
|
|
30826
|
+
}
|
|
30827
|
+
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 10 && /*#__PURE__*/React__default['default'].createElement(antd.Select, _extends({
|
|
30828
|
+
disabled: disabled,
|
|
30829
|
+
allowClear: true,
|
|
30830
|
+
showArrow: true
|
|
30831
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30832
|
+
mode: 'multiple'
|
|
30833
|
+
} : {}, {
|
|
30834
|
+
defaultValue: ites.defaultValue,
|
|
30835
|
+
style: styleCommon,
|
|
30836
|
+
value: showValue(ites.code),
|
|
30837
|
+
onChange: function onChange(value) {
|
|
30838
|
+
handleEdit(ites.code, value);
|
|
30839
|
+
}
|
|
30840
|
+
}), Object.keys(ites.enumeration).map(function (it) {
|
|
30841
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
|
|
30842
|
+
key: it,
|
|
30843
|
+
value: it
|
|
30844
|
+
}, ites.enumeration[it]);
|
|
30845
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 20 && /*#__PURE__*/React__default['default'].createElement(InnerSelect, {
|
|
30846
|
+
disabled: disabled,
|
|
30847
|
+
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
30848
|
+
defaultValue: ites.defaultValue,
|
|
30849
|
+
styleCommon: styleCommon,
|
|
30850
|
+
value: showValue(ites.code),
|
|
30851
|
+
onChange: function onChange(value) {
|
|
30852
|
+
handleEdit(ites.code, value);
|
|
30853
|
+
},
|
|
30854
|
+
dictionaryCode: ites.dictionaryCode
|
|
30855
|
+
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 110 && /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
30856
|
+
selectBusinessType: "physicalWarehouse",
|
|
30857
|
+
selectProps: _objectSpread2({
|
|
30858
|
+
style: styleCommon,
|
|
30859
|
+
placeholder: '请选择物理仓'
|
|
30860
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30861
|
+
mode: 'multiple',
|
|
30862
|
+
maxTagCount: 1
|
|
30863
|
+
} : {}),
|
|
30864
|
+
disabled: disabled,
|
|
30865
|
+
labelInValue: true,
|
|
30866
|
+
value: showValue(ites.code),
|
|
30867
|
+
requestConfig: {
|
|
30868
|
+
mappingValueField: 'physicalWarehouseCode',
|
|
30869
|
+
filterInit: 'qp-physicalWarehouseCode-in'
|
|
30870
|
+
},
|
|
30871
|
+
onChange: function onChange(value) {
|
|
30872
|
+
handleEdit(ites.code, value);
|
|
30873
|
+
},
|
|
30874
|
+
getPopupContainer: function getPopupContainer() {
|
|
30875
|
+
return document.body;
|
|
30876
|
+
}
|
|
30877
|
+
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 120 && /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
30878
|
+
selectBusinessType: "realWarehouse",
|
|
30879
|
+
selectProps: _objectSpread2({
|
|
30880
|
+
style: styleCommon,
|
|
30881
|
+
placeholder: '请选择逻辑仓'
|
|
30882
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30883
|
+
mode: 'multiple',
|
|
30884
|
+
maxTagCount: 1
|
|
30885
|
+
} : {}),
|
|
30886
|
+
disabled: disabled,
|
|
30887
|
+
labelInValue: true,
|
|
30888
|
+
value: showValue(ites.code),
|
|
30889
|
+
requestConfig: {
|
|
30890
|
+
mappingValueField: 'realWarehouseCode',
|
|
30891
|
+
filterInit: 'qp-realWarehouseCode-in'
|
|
30892
|
+
},
|
|
30893
|
+
onChange: function onChange(value) {
|
|
30894
|
+
handleEdit(ites.code, value);
|
|
30895
|
+
},
|
|
30896
|
+
getPopupContainer: function getPopupContainer() {
|
|
30897
|
+
return document.body;
|
|
30898
|
+
}
|
|
30899
|
+
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 130 && /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
30900
|
+
selectBusinessType: "virtualWarehouse",
|
|
30901
|
+
selectProps: _objectSpread2({
|
|
30902
|
+
style: styleCommon,
|
|
30903
|
+
placeholder: '请选择虚拟仓'
|
|
30904
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30905
|
+
mode: 'multiple',
|
|
30906
|
+
maxTagCount: 1
|
|
30907
|
+
} : {}),
|
|
30908
|
+
disabled: disabled,
|
|
30909
|
+
labelInValue: true,
|
|
30910
|
+
value: showValue(ites.code),
|
|
30911
|
+
requestConfig: {
|
|
30912
|
+
mappingValueField: 'virtualWarehouseCode',
|
|
30913
|
+
filterInit: 'qp-virtualWarehouseCode-in'
|
|
30914
|
+
},
|
|
30915
|
+
onChange: function onChange(value) {
|
|
30916
|
+
handleEdit(ites.code, value);
|
|
30917
|
+
},
|
|
30918
|
+
getPopupContainer: function getPopupContainer() {
|
|
30919
|
+
return document.body;
|
|
30920
|
+
}
|
|
30921
|
+
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 140 && /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
30922
|
+
selectBusinessType: "channelWarehouse",
|
|
30923
|
+
selectProps: _objectSpread2({
|
|
30924
|
+
style: styleCommon,
|
|
30925
|
+
placeholder: '请选择渠道仓'
|
|
30926
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30927
|
+
mode: 'multiple',
|
|
30928
|
+
maxTagCount: 1
|
|
30929
|
+
} : {}),
|
|
30930
|
+
disabled: disabled,
|
|
30931
|
+
labelInValue: true,
|
|
30932
|
+
value: showValue(ites.code),
|
|
30933
|
+
requestConfig: {
|
|
30934
|
+
mappingValueField: 'channelWarehouseCode',
|
|
30935
|
+
filterInit: 'qp-channelWarehouseCode-in'
|
|
30936
|
+
},
|
|
30937
|
+
onChange: function onChange(value) {
|
|
30938
|
+
handleEdit(ites.code, value);
|
|
30939
|
+
},
|
|
30940
|
+
getPopupContainer: function getPopupContainer() {
|
|
30941
|
+
return document.body;
|
|
30942
|
+
}
|
|
30943
|
+
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 150 && /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
30944
|
+
selectBusinessType: "spuCommodity",
|
|
30945
|
+
selectProps: _objectSpread2({
|
|
30946
|
+
style: styleCommon,
|
|
30947
|
+
placeholder: '请选择SPU'
|
|
30948
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30949
|
+
mode: 'multiple',
|
|
30950
|
+
maxTagCount: 1
|
|
30951
|
+
} : {}),
|
|
30952
|
+
disabled: disabled,
|
|
30953
|
+
labelInValue: true,
|
|
30954
|
+
value: showValue(ites.code),
|
|
30955
|
+
requestConfig: {
|
|
30956
|
+
filterInit: 'qp-itemCode-in'
|
|
30957
|
+
},
|
|
30958
|
+
onChange: function onChange(value) {
|
|
30959
|
+
handleEdit(ites.code, value);
|
|
30960
|
+
},
|
|
30961
|
+
getPopupContainer: function getPopupContainer() {
|
|
30962
|
+
return document.body;
|
|
30963
|
+
}
|
|
30964
|
+
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 160 && /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
30965
|
+
selectBusinessType: "skuCommodity",
|
|
30966
|
+
selectProps: _objectSpread2({
|
|
30967
|
+
style: styleCommon,
|
|
30968
|
+
placeholder: '请选择商品'
|
|
30969
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30970
|
+
mode: 'multiple',
|
|
30971
|
+
maxTagCount: 1
|
|
30972
|
+
} : {}),
|
|
30973
|
+
disabled: disabled,
|
|
30974
|
+
labelInValue: true,
|
|
30975
|
+
value: showValue(ites.code),
|
|
30976
|
+
requestConfig: {
|
|
30977
|
+
filterInit: 'qp-skuCode-in'
|
|
30978
|
+
},
|
|
30979
|
+
onChange: function onChange(value) {
|
|
30980
|
+
handleEdit(ites.code, value);
|
|
30981
|
+
},
|
|
30982
|
+
getPopupContainer: function getPopupContainer() {
|
|
30983
|
+
return document.body;
|
|
30984
|
+
}
|
|
30985
|
+
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 190 && /*#__PURE__*/React__default['default'].createElement(BsCascader, {
|
|
30986
|
+
disabled: disabled,
|
|
30987
|
+
isAll: true,
|
|
30988
|
+
needNameAndCode: true,
|
|
30989
|
+
notChangeOnSelect: true,
|
|
30990
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30991
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30992
|
+
while (1) switch (_context.prev = _context.next) {
|
|
30993
|
+
case 0:
|
|
30994
|
+
_context.next = 2;
|
|
30995
|
+
return bssula.request({
|
|
30996
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
30997
|
+
method: 'get',
|
|
30998
|
+
converter: function converter(_ref2) {
|
|
30999
|
+
var data = _ref2.data;
|
|
31000
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
31001
|
+
return {
|
|
31002
|
+
text: item.name,
|
|
31003
|
+
value: item.id,
|
|
31004
|
+
level: item.level,
|
|
31005
|
+
id: item.id
|
|
31006
|
+
};
|
|
31007
|
+
}) : [];
|
|
31008
|
+
return handleData;
|
|
31009
|
+
}
|
|
31010
|
+
});
|
|
31011
|
+
case 2:
|
|
31012
|
+
return _context.abrupt("return", _context.sent);
|
|
31013
|
+
case 3:
|
|
31014
|
+
case "end":
|
|
31015
|
+
return _context.stop();
|
|
31016
|
+
}
|
|
31017
|
+
}, _callee);
|
|
31018
|
+
})),
|
|
31019
|
+
value: showValue(ites.code),
|
|
31020
|
+
onChange: function onChange(value) {
|
|
31021
|
+
handleEdit(ites.code, value);
|
|
31022
|
+
},
|
|
31023
|
+
getPopupContainer: function getPopupContainer() {
|
|
31024
|
+
return document.body;
|
|
31025
|
+
}
|
|
31026
|
+
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 210 && /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
31027
|
+
disabled: disabled,
|
|
31028
|
+
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
31029
|
+
businessType: "department",
|
|
31030
|
+
labelInValue: true,
|
|
31031
|
+
value: showValue(ites.code),
|
|
31032
|
+
style: styleCommon,
|
|
31033
|
+
onChange: function onChange(value) {
|
|
31034
|
+
handleEdit(ites.code, value);
|
|
31035
|
+
},
|
|
31036
|
+
getPopupContainer: function getPopupContainer() {
|
|
31037
|
+
return document.body;
|
|
31038
|
+
}
|
|
31039
|
+
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 220 && /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
31040
|
+
disabled: disabled,
|
|
31041
|
+
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
31042
|
+
businessType: "purchase-organization",
|
|
31043
|
+
labelInValue: true,
|
|
31044
|
+
value: showValue(ites.code),
|
|
31045
|
+
style: styleCommon,
|
|
31046
|
+
onChange: function onChange(value) {
|
|
31047
|
+
handleEdit(ites.code, value);
|
|
31048
|
+
},
|
|
31049
|
+
getPopupContainer: function getPopupContainer() {
|
|
31050
|
+
return document.body;
|
|
31051
|
+
}
|
|
31052
|
+
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 230 && /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
31053
|
+
disabled: disabled,
|
|
31054
|
+
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
31055
|
+
businessType: "sales-organization",
|
|
31056
|
+
labelInValue: true,
|
|
31057
|
+
value: showValue(ites.code),
|
|
31058
|
+
style: styleCommon,
|
|
31059
|
+
onChange: function onChange(value) {
|
|
31060
|
+
handleEdit(ites.code, value);
|
|
31061
|
+
},
|
|
31062
|
+
getPopupContainer: function getPopupContainer() {
|
|
31063
|
+
return document.body;
|
|
31064
|
+
}
|
|
31065
|
+
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 240 && /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
31066
|
+
selectBusinessType: "supplier2",
|
|
31067
|
+
selectProps: _objectSpread2({
|
|
31068
|
+
style: styleCommon,
|
|
31069
|
+
placeholder: '请选择供应商'
|
|
31070
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
31071
|
+
mode: 'multiple',
|
|
31072
|
+
maxTagCount: 1
|
|
31073
|
+
} : {}),
|
|
31074
|
+
disabled: disabled,
|
|
31075
|
+
labelInValue: true,
|
|
31076
|
+
value: showValue(ites.code),
|
|
31077
|
+
requestConfig: {
|
|
31078
|
+
filterInit: 'qp-code-in'
|
|
31079
|
+
},
|
|
31080
|
+
onChange: function onChange(value) {
|
|
31081
|
+
handleEdit(ites.code, value);
|
|
31082
|
+
},
|
|
31083
|
+
getPopupContainer: function getPopupContainer() {
|
|
31084
|
+
return document.body;
|
|
31085
|
+
}
|
|
31086
|
+
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 250 && /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
31087
|
+
selectBusinessType: "customer2",
|
|
31088
|
+
selectProps: _objectSpread2({
|
|
31089
|
+
style: styleCommon,
|
|
31090
|
+
placeholder: '请选择客户'
|
|
31091
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
31092
|
+
mode: 'multiple',
|
|
31093
|
+
maxTagCount: 1
|
|
31094
|
+
} : {}),
|
|
31095
|
+
disabled: disabled,
|
|
31096
|
+
labelInValue: true,
|
|
31097
|
+
value: showValue(ites.code),
|
|
31098
|
+
requestConfig: {
|
|
31099
|
+
filterInit: 'qp-code-in'
|
|
31100
|
+
},
|
|
31101
|
+
onChange: function onChange(value) {
|
|
31102
|
+
handleEdit(ites.code, value);
|
|
31103
|
+
},
|
|
31104
|
+
getPopupContainer: function getPopupContainer() {
|
|
31105
|
+
return document.body;
|
|
31106
|
+
}
|
|
31107
|
+
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 260 && /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
31108
|
+
selectBusinessType: "shopFile2",
|
|
31109
|
+
selectProps: _objectSpread2({
|
|
31110
|
+
style: styleCommon,
|
|
31111
|
+
placeholder: '请选择店铺'
|
|
31112
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
31113
|
+
mode: 'multiple',
|
|
31114
|
+
maxTagCount: 1
|
|
31115
|
+
} : {}),
|
|
31116
|
+
disabled: disabled,
|
|
31117
|
+
labelInValue: true,
|
|
31118
|
+
value: showValue(ites.code),
|
|
31119
|
+
requestConfig: {
|
|
31120
|
+
filterInit: 'qp-code-in'
|
|
31121
|
+
},
|
|
31122
|
+
onChange: function onChange(value) {
|
|
31123
|
+
handleEdit(ites.code, value);
|
|
31124
|
+
},
|
|
31125
|
+
getPopupContainer: function getPopupContainer() {
|
|
31126
|
+
return document.body;
|
|
31127
|
+
}
|
|
31128
|
+
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 270 && /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
31129
|
+
selectBusinessType: "employee2",
|
|
31130
|
+
selectProps: _objectSpread2({
|
|
31131
|
+
style: styleCommon,
|
|
31132
|
+
placeholder: '请选择员工'
|
|
31133
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
31134
|
+
mode: 'multiple',
|
|
31135
|
+
maxTagCount: 1
|
|
31136
|
+
} : {}),
|
|
31137
|
+
disabled: disabled,
|
|
31138
|
+
labelInValue: true,
|
|
31139
|
+
value: showValue(ites.code),
|
|
31140
|
+
requestConfig: {
|
|
31141
|
+
filterInit: 'qp-id-in'
|
|
31142
|
+
},
|
|
31143
|
+
onChange: function onChange(value) {
|
|
31144
|
+
handleEdit(ites.code, value);
|
|
31145
|
+
},
|
|
31146
|
+
getPopupContainer: function getPopupContainer() {
|
|
31147
|
+
return document.body;
|
|
31148
|
+
}
|
|
31149
|
+
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 280 && /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
31150
|
+
disabled: disabled,
|
|
31151
|
+
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
31152
|
+
businessType: "stock-organization",
|
|
31153
|
+
labelInValue: true,
|
|
31154
|
+
value: showValue(ites.code),
|
|
31155
|
+
style: styleCommon,
|
|
31156
|
+
onChange: function onChange(value) {
|
|
31157
|
+
handleEdit(ites.code, value);
|
|
31158
|
+
},
|
|
31159
|
+
getPopupContainer: function getPopupContainer() {
|
|
31160
|
+
return document.body;
|
|
31161
|
+
}
|
|
31162
|
+
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 290 && /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
31163
|
+
disabled: disabled,
|
|
31164
|
+
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
31165
|
+
businessType: "settle-organization",
|
|
31166
|
+
labelInValue: true,
|
|
31167
|
+
value: showValue(ites.code),
|
|
31168
|
+
style: styleCommon,
|
|
31169
|
+
onChange: function onChange(value) {
|
|
31170
|
+
handleEdit(ites.code, value);
|
|
31171
|
+
},
|
|
31172
|
+
getPopupContainer: function getPopupContainer() {
|
|
31173
|
+
return document.body;
|
|
31174
|
+
}
|
|
31175
|
+
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 && /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
31176
|
+
selectBusinessType: "deliveryMode",
|
|
31177
|
+
selectProps: _objectSpread2({
|
|
31178
|
+
style: styleCommon,
|
|
31179
|
+
placeholder: '请选择配送方式'
|
|
31180
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
31181
|
+
mode: 'multiple',
|
|
31182
|
+
maxTagCount: 1
|
|
31183
|
+
} : {}),
|
|
31184
|
+
disabled: disabled,
|
|
31185
|
+
labelInValue: true,
|
|
31186
|
+
value: showValue(ites.code),
|
|
31187
|
+
requestConfig: {
|
|
31188
|
+
filterInit: 'qp-code-in'
|
|
31189
|
+
},
|
|
31190
|
+
onChange: function onChange(value) {
|
|
31191
|
+
handleEdit(ites.code, value);
|
|
31192
|
+
},
|
|
31193
|
+
getPopupContainer: function getPopupContainer() {
|
|
31194
|
+
return document.body;
|
|
31195
|
+
}
|
|
31196
|
+
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 360 && /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
31197
|
+
selectBusinessType: "role",
|
|
31198
|
+
selectProps: _objectSpread2({
|
|
31199
|
+
style: styleCommon,
|
|
31200
|
+
placeholder: '请选择角色'
|
|
31201
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
31202
|
+
mode: 'multiple',
|
|
31203
|
+
maxTagCount: 1
|
|
31204
|
+
} : {}),
|
|
31205
|
+
disabled: disabled,
|
|
31206
|
+
labelInValue: true,
|
|
31207
|
+
value: showValue(ites.code),
|
|
31208
|
+
requestConfig: {
|
|
31209
|
+
filterInit: 'qp-code-in'
|
|
31210
|
+
},
|
|
31211
|
+
onChange: function onChange(value) {
|
|
31212
|
+
handleEdit(ites.code, value);
|
|
31213
|
+
},
|
|
31214
|
+
getPopupContainer: function getPopupContainer() {
|
|
31215
|
+
return document.body;
|
|
31216
|
+
}
|
|
31217
|
+
}) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31218
|
+
style: {
|
|
31219
|
+
display: 'flex'
|
|
31220
|
+
}
|
|
31221
|
+
}, /*#__PURE__*/React__default['default'].createElement(App$1, {
|
|
31222
|
+
disabled: disabled,
|
|
31223
|
+
key: showValue(ites.code),
|
|
31224
|
+
setValue: function setValue(val, formulaName) {
|
|
31225
|
+
console.log(val, 'val');
|
|
31226
|
+
var value = val.map(function (item) {
|
|
31227
|
+
return item.value.replace(/[a-zA-Z_]+\.\w+/g, function (i) {
|
|
31228
|
+
return '{' + i + '}';
|
|
31229
|
+
});
|
|
31230
|
+
});
|
|
31231
|
+
handleEdit(ites.code, value.join(''));
|
|
31232
|
+
handleEdit({
|
|
31233
|
+
inputType: 40,
|
|
31234
|
+
formulaName: formulaName
|
|
31235
|
+
});
|
|
31236
|
+
},
|
|
31237
|
+
record: {
|
|
31238
|
+
expression: showValue(ites.code)
|
|
31239
|
+
},
|
|
31240
|
+
sourceData: fieldListGroup
|
|
31241
|
+
})));
|
|
31242
|
+
};
|
|
31243
|
+
_this.renderFormCompItem = function (config, showValue, handleEdit, parentItem, boxStyle, disabled) {
|
|
31794
31244
|
if (!config) return;
|
|
31795
31245
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31796
31246
|
style: boxStyle
|
|
@@ -31808,21 +31258,15 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
31808
31258
|
}
|
|
31809
31259
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
31810
31260
|
className: "requiredMark"
|
|
31811
|
-
})) || null,
|
|
31812
|
-
|
|
31813
|
-
|
|
31814
|
-
|
|
31815
|
-
|
|
31816
|
-
|
|
31817
|
-
|
|
31818
|
-
|
|
31819
|
-
|
|
31820
|
-
var c = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : parentItem;
|
|
31821
|
-
var d = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : config;
|
|
31822
|
-
return _handleEdit(a, b, c, d);
|
|
31823
|
-
},
|
|
31824
|
-
disabled: disabled
|
|
31825
|
-
}), (config === null || config === void 0 ? void 0 : config.rightText) && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31261
|
+
})) || null, _this.renderCompItem(config, function (a, b) {
|
|
31262
|
+
var c = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : parentItem;
|
|
31263
|
+
var d = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : config;
|
|
31264
|
+
return showValue(a, b, c, d);
|
|
31265
|
+
}, function (a, b) {
|
|
31266
|
+
var c = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : parentItem;
|
|
31267
|
+
var d = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : config;
|
|
31268
|
+
return handleEdit(a, b, c, d);
|
|
31269
|
+
}, disabled), (config === null || config === void 0 ? void 0 : config.rightText) && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31826
31270
|
style: {
|
|
31827
31271
|
flex: 'none',
|
|
31828
31272
|
marginLeft: 10
|