@bit-sun/business-component 2.3.0 → 2.3.2
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/.editorconfig +16 -16
- package/.fatherrc.ts +5 -5
- package/.gitlab-ci.yml +179 -179
- package/.prettierignore +7 -7
- package/.prettierrc +11 -11
- package/.umirc.ts +74 -74
- package/README.md +27 -27
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
- package/dist/components/Business/SearchSelect/index.d.ts +1 -1
- package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
- package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
- package/dist/index.esm.js +1212 -906
- package/dist/index.js +1218 -912
- package/dist/utils/utils.d.ts +1 -1
- package/docs/index.md +21 -21
- package/lib/assets/drag.svg +17 -17
- package/lib/assets/exportFail.svg +37 -37
- package/lib/assets/exportProcessing.svg +28 -28
- package/lib/assets/exportSuccess.svg +34 -34
- package/lib/assets/label_icon_bottom.svg +25 -25
- package/lib/assets/upExport.svg +22 -22
- package/package.json +78 -78
- 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/caidan.svg +11 -11
- package/src/assets/close.svg +26 -26
- package/src/assets/drag.svg +17 -17
- package/src/assets/exportFail.svg +37 -37
- package/src/assets/exportProcessing.svg +28 -28
- package/src/assets/exportSuccess.svg +34 -34
- package/src/assets/fixed-left-active.svg +11 -11
- package/src/assets/fixed-left.svg +15 -15
- package/src/assets/fixed-right-active.svg +11 -11
- 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.md +161 -161
- package/src/components/Business/AddSelectBusiness/index.tsx +861 -861
- package/src/components/Business/BsLayouts/Components/AllFunc/drawContent.tsx +111 -111
- 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/DrawContent.tsx +285 -285
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.tsx +74 -74
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/drawContent.less +170 -170
- 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.less +72 -72
- package/src/components/Business/BsLayouts/Components/GlobalHeader/index.tsx +157 -157
- package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +85 -85
- package/src/components/Business/BsLayouts/Components/RightContent/home.less +218 -218
- package/src/components/Business/BsLayouts/Components/RightContent/index.tsx +155 -155
- package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +160 -160
- 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 -1484
- package/src/components/Business/BsLayouts/service.ts +10 -10
- package/src/components/Business/BsLayouts/utils.tsx +203 -203
- package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +564 -564
- package/src/components/Business/BsSulaQueryTable/index.less +221 -221
- package/src/components/Business/BsSulaQueryTable/index.tsx +527 -527
- package/src/components/Business/BsSulaQueryTable/setting.tsx +832 -832
- package/src/components/Business/BsSulaQueryTable/utils.less +65 -65
- package/src/components/Business/BsSulaQueryTable/utils.tsx +688 -688
- package/src/components/Business/CommodityEntry/index.md +70 -70
- package/src/components/Business/CommodityEntry/index.tsx +80 -80
- package/src/components/Business/CommonAlert/index.tsx +23 -23
- package/src/components/Business/CommonGuideWrapper/index.less +111 -111
- package/src/components/Business/CommonGuideWrapper/index.md +39 -39
- package/src/components/Business/CommonGuideWrapper/index.tsx +83 -83
- package/src/components/Business/DetailPageWrapper/index.less +79 -79
- package/src/components/Business/DetailPageWrapper/index.tsx +313 -313
- package/src/components/Business/DetailPageWrapper/utils.tsx +100 -100
- package/src/components/Business/HomePageWrapper/index.less +33 -33
- package/src/components/Business/HomePageWrapper/index.md +45 -45
- package/src/components/Business/HomePageWrapper/index.tsx +162 -162
- package/src/components/Business/JsonQueryTable/components/FieldsModifyModal.tsx +824 -824
- package/src/components/Business/JsonQueryTable/components/FieldsSettingsTable.tsx +205 -201
- package/src/components/Business/JsonQueryTable/components/Formula.tsx +205 -205
- package/src/components/Business/JsonQueryTable/components/MaintainOptions.tsx +127 -127
- 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/function.ts +62 -62
- 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 +535 -320
- 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/JsonQueryTable/static.ts +390 -390
- package/src/components/Business/SearchSelect/BusinessUtils.ts +1732 -1732
- package/src/components/Business/SearchSelect/common.ts +53 -53
- package/src/components/Business/SearchSelect/index.md +1319 -1319
- package/src/components/Business/SearchSelect/index.tsx +51 -51
- package/src/components/Business/SearchSelect/utils.ts +100 -100
- package/src/components/Business/StateFlow/index.less +130 -130
- package/src/components/Business/StateFlow/index.md +60 -60
- package/src/components/Business/StateFlow/index.tsx +29 -29
- package/src/components/Business/TreeSearchSelect/index.md +154 -154
- package/src/components/Business/TreeSearchSelect/index.tsx +34 -34
- package/src/components/Business/TreeSearchSelect/utils.ts +69 -69
- package/src/components/Business/columnSettingTable/columnSetting.tsx +764 -764
- package/src/components/Business/columnSettingTable/index.less +247 -247
- package/src/components/Business/columnSettingTable/index.md +357 -357
- package/src/components/Business/columnSettingTable/index.tsx +232 -232
- package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +240 -240
- package/src/components/Business/columnSettingTable/utils.tsx +68 -68
- package/src/components/Business/moreTreeTable/FixedScrollBar.tsx +86 -86
- 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.md +448 -448
- package/src/components/Business/moreTreeTable/index.tsx +380 -380
- package/src/components/Business/moreTreeTable/utils.ts +126 -126
- package/src/components/Functional/AddSelect/helps.ts +14 -14
- package/src/components/Functional/AddSelect/index.less +367 -367
- package/src/components/Functional/AddSelect/index.md +155 -155
- package/src/components/Functional/AddSelect/index.tsx +1279 -1279
- package/src/components/Functional/BillEntry/index.less +371 -371
- package/src/components/Functional/BillEntry/index.md +39 -39
- package/src/components/Functional/BillEntry/index.tsx +772 -772
- package/src/components/Functional/BsAntdSula/BsCascader/index.md +62 -62
- package/src/components/Functional/BsAntdSula/BsCascader/index.tsx +178 -178
- package/src/components/Functional/BsAntdSula/index.ts +2 -2
- package/src/components/Functional/DataImport/index.less +63 -63
- package/src/components/Functional/DataImport/index.md +44 -44
- package/src/components/Functional/DataImport/index.tsx +695 -695
- package/src/components/Functional/DataValidation/index.less +63 -63
- package/src/components/Functional/DataValidation/index.md +39 -39
- package/src/components/Functional/DataValidation/index.tsx +687 -687
- package/src/components/Functional/EllipsisTooltip/index.d.ts +5 -5
- package/src/components/Functional/EllipsisTooltip/index.js +36 -36
- package/src/components/Functional/EllipsisTooltip/index.md +30 -30
- package/src/components/Functional/ExportFunctions/ExportIcon/index.md +37 -37
- package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +59 -59
- package/src/components/Functional/QueryMutipleInput/index.less +37 -37
- package/src/components/Functional/QueryMutipleInput/index.md +33 -33
- package/src/components/Functional/QueryMutipleInput/index.tsx +128 -128
- package/src/components/Functional/SearchSelect/index.less +115 -115
- package/src/components/Functional/SearchSelect/index.md +141 -141
- package/src/components/Functional/SearchSelect/index.tsx +859 -849
- package/src/components/Functional/SearchSelect/utils.ts +3 -3
- package/src/components/Functional/TreeSearchSelect/index.md +47 -47
- package/src/components/Functional/TreeSearchSelect/index.tsx +162 -162
- 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 +2028 -2028
- package/src/components/Solution/RuleComponent/index.less +230 -230
- package/src/components/Solution/RuleComponent/renderSpecificAction.js +99 -99
- package/src/components/Solution/RuleComponent/ruleFiled.js +2074 -2074
- package/src/components/Solution/RuleComponent/services.ts +13 -13
- package/src/components/Solution/RuleComponent/util.js +139 -139
- package/src/index.ts +38 -38
- package/src/plugin/TableColumnSetting/index.less +247 -247
- package/src/plugin/TableColumnSetting/index.md +50 -50
- package/src/plugin/TableColumnSetting/index.tsx +724 -724
- package/src/plugin/TableColumnSetting/utils.ts +19 -19
- package/src/styles/bsDefault.less +1912 -1912
- package/src/utils/CheckOneUser/index.md +39 -39
- package/src/utils/CheckOneUser/index.ts +51 -51
- package/src/utils/LocalstorageUtils.ts +90 -90
- package/src/utils/TableUtils.tsx +18 -18
- 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 -4
- package/src/utils/requestUtils.ts +34 -34
- package/src/utils/serialize.js +7 -7
- package/src/utils/utils.ts +212 -212
- package/tsconfig.json +29 -29
- package/typings.d.ts +4 -4
package/dist/index.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ import axios from 'axios';
|
|
|
2
2
|
import { message as message$1, Popover, Card, Avatar, Tooltip, Image, Menu, Space, Dropdown, Button, Checkbox, Input, Modal, Select, Form, Divider, Spin, Table, TreeSelect, Tag, InputNumber, Typography, Alert, Anchor, Breadcrumb, Drawer as Drawer$1, List, Tree, Row, Col, Tabs, Affix, Cascader, DatePicker, TimePicker, Switch } from 'antd';
|
|
3
3
|
import _, { omit, debounce, cloneDeep as cloneDeep$1, throttle, isEmpty } from 'lodash';
|
|
4
4
|
import { history, formatMessage, useLocation, Link, useModel, useIntl } from 'umi';
|
|
5
|
-
import isEqual from 'lodash/isEqual';
|
|
5
|
+
import isEqual$1 from 'lodash/isEqual';
|
|
6
6
|
import React, { useState, useEffect, forwardRef, useImperativeHandle, useRef, useMemo, Component, useLayoutEffect, createRef } from 'react';
|
|
7
7
|
import moment$1 from 'moment';
|
|
8
8
|
import { UnorderedListOutlined, ProfileTwoTone, ExclamationCircleOutlined, DownOutlined, CopyOutlined, SearchOutlined, CaretLeftOutlined, CloseCircleOutlined, ArrowLeftOutlined, FolderOutlined, EllipsisOutlined, CaretDownOutlined, HomeOutlined, DoubleLeftOutlined, DoubleRightOutlined, MenuUnfoldOutlined, DashOutlined, SettingOutlined, BulbOutlined, PlayCircleOutlined, SaveOutlined, FullscreenExitOutlined, EditOutlined, MinusCircleOutlined, PlusCircleOutlined } from '@ant-design/icons';
|
|
@@ -762,41 +762,52 @@ var precisionQuantity = function precisionQuantity(num, accuracy) {
|
|
|
762
762
|
return '';
|
|
763
763
|
};
|
|
764
764
|
|
|
765
|
-
var
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
function
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
}
|
|
773
|
-
|
|
774
|
-
var lastThis;
|
|
775
|
-
var lastArgs = [];
|
|
776
|
-
var lastResult;
|
|
777
|
-
var calledOnce = false;
|
|
778
|
-
|
|
779
|
-
var isNewArgEqualToLast = function isNewArgEqualToLast(newArg, index) {
|
|
780
|
-
return isEqual(newArg, lastArgs[index], index);
|
|
781
|
-
};
|
|
782
|
-
|
|
783
|
-
var result = function result() {
|
|
784
|
-
for (var _len = arguments.length, newArgs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
785
|
-
newArgs[_key] = arguments[_key];
|
|
765
|
+
var safeIsNaN = Number.isNaN ||
|
|
766
|
+
function ponyfill(value) {
|
|
767
|
+
return typeof value === 'number' && value !== value;
|
|
768
|
+
};
|
|
769
|
+
function isEqual(first, second) {
|
|
770
|
+
if (first === second) {
|
|
771
|
+
return true;
|
|
786
772
|
}
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
return lastResult;
|
|
773
|
+
if (safeIsNaN(first) && safeIsNaN(second)) {
|
|
774
|
+
return true;
|
|
790
775
|
}
|
|
776
|
+
return false;
|
|
777
|
+
}
|
|
778
|
+
function areInputsEqual(newInputs, lastInputs) {
|
|
779
|
+
if (newInputs.length !== lastInputs.length) {
|
|
780
|
+
return false;
|
|
781
|
+
}
|
|
782
|
+
for (var i = 0; i < newInputs.length; i++) {
|
|
783
|
+
if (!isEqual(newInputs[i], lastInputs[i])) {
|
|
784
|
+
return false;
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
return true;
|
|
788
|
+
}
|
|
791
789
|
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
lastThis
|
|
795
|
-
lastArgs =
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
790
|
+
function memoizeOne(resultFn, isEqual) {
|
|
791
|
+
if (isEqual === void 0) { isEqual = areInputsEqual; }
|
|
792
|
+
var lastThis;
|
|
793
|
+
var lastArgs = [];
|
|
794
|
+
var lastResult;
|
|
795
|
+
var calledOnce = false;
|
|
796
|
+
function memoized() {
|
|
797
|
+
var newArgs = [];
|
|
798
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
799
|
+
newArgs[_i] = arguments[_i];
|
|
800
|
+
}
|
|
801
|
+
if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {
|
|
802
|
+
return lastResult;
|
|
803
|
+
}
|
|
804
|
+
lastResult = resultFn.apply(this, newArgs);
|
|
805
|
+
calledOnce = true;
|
|
806
|
+
lastThis = this;
|
|
807
|
+
lastArgs = newArgs;
|
|
808
|
+
return lastResult;
|
|
809
|
+
}
|
|
810
|
+
return memoized;
|
|
800
811
|
}
|
|
801
812
|
|
|
802
813
|
function styleInject(css, ref) {
|
|
@@ -1010,59 +1021,58 @@ var getItemDefaultWidth = function getItemDefaultWidth(item) {
|
|
|
1010
1021
|
* @returns 返回处理后的查询参数
|
|
1011
1022
|
*/
|
|
1012
1023
|
function queryParams(params, flag) {
|
|
1013
|
-
var
|
|
1024
|
+
for (var key in params) {
|
|
1014
1025
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1026
|
+
(function () {
|
|
1027
|
+
var element = params[key];
|
|
1028
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
1029
|
+
var dataParams = key.split('*number*');
|
|
1030
|
+
dataParams.forEach(function (value, index) {
|
|
1031
|
+
params[value] = element[index];
|
|
1032
|
+
});
|
|
1033
|
+
delete params[key];
|
|
1034
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
1035
|
+
var _dataParams = key.split('*address*');
|
|
1036
|
+
_dataParams.forEach(function (value, index) {
|
|
1037
|
+
params[value] = element.PCDCode[index];
|
|
1038
|
+
});
|
|
1039
|
+
delete params[key];
|
|
1040
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
1041
|
+
var _dataParams2 = key.split('*costType*');
|
|
1042
|
+
// eslint-disable-next-line prefer-destructuring
|
|
1043
|
+
params[_dataParams2[0]] = element[1];
|
|
1044
|
+
delete params[key];
|
|
1045
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
1046
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
1047
|
+
_dataParams3.forEach(function (value, index) {
|
|
1048
|
+
if (index === 0) {
|
|
1049
|
+
params[value] = moment$1(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
1050
|
+
} else {
|
|
1051
|
+
params[value] = moment$1(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
1052
|
+
}
|
|
1053
|
+
});
|
|
1054
|
+
delete params[key];
|
|
1055
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
1056
|
+
var _dataParams4 = key.split('*');
|
|
1057
|
+
_dataParams4.forEach(function (value, index) {
|
|
1058
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
1059
|
+
});
|
|
1060
|
+
delete params[key];
|
|
1061
|
+
} else if (element && key.indexOf('_likeIn_') >= 0) {
|
|
1062
|
+
var _dataParams5 = key.split('_likeIn_');
|
|
1063
|
+
if (element.indexOf(',') >= 0) {
|
|
1064
|
+
params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
|
|
1065
|
+
params["qp-".concat(_dataParams5[0], "-like")] = null;
|
|
1038
1066
|
} else {
|
|
1039
|
-
params[
|
|
1067
|
+
params["qp-".concat(_dataParams5[0], "-like")] = element;
|
|
1068
|
+
params["qp-".concat(_dataParams5[0], "-in")] = null;
|
|
1040
1069
|
}
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
var _dataParams4 = key.split('*');
|
|
1045
|
-
_dataParams4.forEach(function (value, index) {
|
|
1046
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
1047
|
-
});
|
|
1048
|
-
delete params[key];
|
|
1049
|
-
} else if (element && key.indexOf('_likeIn_') >= 0) {
|
|
1050
|
-
var _dataParams5 = key.split('_likeIn_');
|
|
1051
|
-
if (element.indexOf(',') >= 0) {
|
|
1052
|
-
params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
|
|
1053
|
-
params["qp-".concat(_dataParams5[0], "-like")] = null;
|
|
1054
|
-
} else {
|
|
1055
|
-
params["qp-".concat(_dataParams5[0], "-like")] = element;
|
|
1056
|
-
params["qp-".concat(_dataParams5[0], "-in")] = null;
|
|
1070
|
+
delete params[key];
|
|
1071
|
+
} else if (Array.isArray(element)) {
|
|
1072
|
+
params[key] = element.join(',');
|
|
1057
1073
|
}
|
|
1058
|
-
|
|
1059
|
-
} else if (Array.isArray(element)) {
|
|
1060
|
-
params[key] = element.join(',');
|
|
1061
|
-
}
|
|
1074
|
+
})();
|
|
1062
1075
|
}
|
|
1063
|
-
};
|
|
1064
|
-
for (var key in params) {
|
|
1065
|
-
_loop();
|
|
1066
1076
|
}
|
|
1067
1077
|
return flag ? params : qs.stringify(params);
|
|
1068
1078
|
}
|
|
@@ -1108,7 +1118,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1108
1118
|
return item;
|
|
1109
1119
|
});
|
|
1110
1120
|
};
|
|
1111
|
-
var memoizeOneFormatter =
|
|
1121
|
+
var memoizeOneFormatter = memoizeOne(formatter, isEqual$1);
|
|
1112
1122
|
var go2BackAndClose = function go2BackAndClose() {
|
|
1113
1123
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1114
1124
|
history.goBack();
|
|
@@ -2783,85 +2793,84 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
2783
2793
|
});
|
|
2784
2794
|
}
|
|
2785
2795
|
// 数组对象处理,对带有特殊标记的name进行处理
|
|
2786
|
-
var
|
|
2796
|
+
for (var key in params) {
|
|
2787
2797
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2798
|
+
(function () {
|
|
2799
|
+
var element = params[key];
|
|
2800
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
2801
|
+
var dataParams = key.split('*number*');
|
|
2802
|
+
dataParams.forEach(function (value, index) {
|
|
2803
|
+
params[value] = element[index];
|
|
2804
|
+
});
|
|
2805
|
+
delete params[key];
|
|
2806
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
2807
|
+
var _dataParams = key.split('*address*');
|
|
2808
|
+
_dataParams.forEach(function (value, index) {
|
|
2809
|
+
params[value] = element.PCDCode[index];
|
|
2810
|
+
});
|
|
2811
|
+
delete params[key];
|
|
2812
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
2813
|
+
var _dataParams2 = key.split('*costType*');
|
|
2814
|
+
// eslint-disable-next-line prefer-destructuring
|
|
2815
|
+
params[_dataParams2[0]] = element[1];
|
|
2816
|
+
delete params[key];
|
|
2817
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
2818
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
2819
|
+
_dataParams3.forEach(function (value, index) {
|
|
2820
|
+
if (index === 0) {
|
|
2821
|
+
params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
2822
|
+
} else {
|
|
2823
|
+
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
2824
|
+
}
|
|
2825
|
+
});
|
|
2826
|
+
delete params[key];
|
|
2827
|
+
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
2828
|
+
var _dataParams4 = key.split('*checkBox*');
|
|
2829
|
+
if (element) {
|
|
2830
|
+
params[_dataParams4[0]] = 0;
|
|
2813
2831
|
}
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2832
|
+
delete params[key];
|
|
2833
|
+
} else if (element && key.indexOf('*cascader*') >= 0) {
|
|
2834
|
+
var _dataParams5 = key.split('*cascader*');
|
|
2835
|
+
params[_dataParams5[0]] = element[element.length - 1];
|
|
2836
|
+
delete params[key];
|
|
2837
|
+
} else if (element && key.indexOf('*date*') >= 0) {
|
|
2838
|
+
var _dataParams6 = key.split('*date*');
|
|
2839
|
+
_dataParams6.forEach(function (value, index) {
|
|
2840
|
+
if (index === 0) {
|
|
2841
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
2842
|
+
} else {
|
|
2843
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
2844
|
+
}
|
|
2845
|
+
});
|
|
2846
|
+
delete params[key];
|
|
2847
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
2848
|
+
var _dataParams7 = key.split('*');
|
|
2849
|
+
_dataParams7.forEach(function (value, index) {
|
|
2850
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
2851
|
+
});
|
|
2852
|
+
delete params[key];
|
|
2853
|
+
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
2854
|
+
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
2855
|
+
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
2856
|
+
if (params[key][0] === 'range') {
|
|
2857
|
+
if (params[key][1][0]) {
|
|
2858
|
+
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
2859
|
+
}
|
|
2860
|
+
if (params[key][1][1]) {
|
|
2861
|
+
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
2862
|
+
}
|
|
2831
2863
|
} else {
|
|
2832
|
-
params[
|
|
2833
|
-
}
|
|
2834
|
-
});
|
|
2835
|
-
delete params[key];
|
|
2836
|
-
} else if (element && key.indexOf('*') >= 0) {
|
|
2837
|
-
var _dataParams7 = key.split('*');
|
|
2838
|
-
_dataParams7.forEach(function (value, index) {
|
|
2839
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
2840
|
-
});
|
|
2841
|
-
delete params[key];
|
|
2842
|
-
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
2843
|
-
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
2844
|
-
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
2845
|
-
if (params[key][0] === 'range') {
|
|
2846
|
-
if (params[key][1][0]) {
|
|
2847
|
-
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
2864
|
+
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
2848
2865
|
}
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
} else {
|
|
2853
|
-
|
|
2866
|
+
delete params[key];
|
|
2867
|
+
} else if (Array.isArray(element)) {
|
|
2868
|
+
params[key] = element.join(',');
|
|
2869
|
+
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
2870
|
+
delete params[key];
|
|
2854
2871
|
}
|
|
2855
|
-
|
|
2856
|
-
} else if (Array.isArray(element)) {
|
|
2857
|
-
params[key] = element.join(',');
|
|
2858
|
-
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
2859
|
-
delete params[key];
|
|
2860
|
-
}
|
|
2872
|
+
})();
|
|
2861
2873
|
}
|
|
2862
|
-
};
|
|
2863
|
-
for (var key in params) {
|
|
2864
|
-
_loop();
|
|
2865
2874
|
}
|
|
2866
2875
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
2867
2876
|
pageSize: pageSize,
|
|
@@ -3112,7 +3121,17 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
3112
3121
|
};
|
|
3113
3122
|
var onResetTable = function onResetTable() {
|
|
3114
3123
|
form.resetFields();
|
|
3115
|
-
|
|
3124
|
+
// 判断是否存在默认不可变的依赖值
|
|
3125
|
+
var fixedParam = {};
|
|
3126
|
+
if (fixedparamsDisabled) {
|
|
3127
|
+
if (fixedparameter && fieldValToParam && ctx) {
|
|
3128
|
+
fixedparameter.forEach(function (item, index) {
|
|
3129
|
+
fixedParam[item] = ctx.form.getFieldValue(fieldValToParam[index]);
|
|
3130
|
+
});
|
|
3131
|
+
}
|
|
3132
|
+
form.setFieldsValue(_objectSpread2({}, fixedParam));
|
|
3133
|
+
}
|
|
3134
|
+
setTableFormParams(_objectSpread2({}, fixedParam));
|
|
3116
3135
|
getData({
|
|
3117
3136
|
pageSize: tableInitPageSize,
|
|
3118
3137
|
currentPage: 1
|
|
@@ -4517,74 +4536,76 @@ var AddSelect = function AddSelect(props) {
|
|
|
4517
4536
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
4518
4537
|
var result;
|
|
4519
4538
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
4520
|
-
while (1)
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4539
|
+
while (1) {
|
|
4540
|
+
switch (_context.prev = _context.next) {
|
|
4541
|
+
case 0:
|
|
4542
|
+
if (!(bType == 'skc' && tList.some(function (i) {
|
|
4543
|
+
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
4544
|
+
}))) {
|
|
4545
|
+
_context.next = 3;
|
|
4546
|
+
break;
|
|
4547
|
+
}
|
|
4548
|
+
message$1.warning('相同skc配码不可设置相同哦');
|
|
4549
|
+
return _context.abrupt("return", false);
|
|
4550
|
+
case 3:
|
|
4551
|
+
if (!(bType == 'spu')) {
|
|
4552
|
+
_context.next = 26;
|
|
4553
|
+
break;
|
|
4554
|
+
}
|
|
4555
|
+
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
4556
|
+
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
4557
|
+
}))) {
|
|
4558
|
+
_context.next = 7;
|
|
4559
|
+
break;
|
|
4560
|
+
}
|
|
4561
|
+
message$1.warning('相同商品相同配码颜色不可设置相同哦');
|
|
4562
|
+
return _context.abrupt("return", false);
|
|
4563
|
+
case 7:
|
|
4564
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
4565
|
+
_context.next = 10;
|
|
4566
|
+
break;
|
|
4567
|
+
}
|
|
4568
|
+
message$1.warning('请先选择颜色!');
|
|
4569
|
+
return _context.abrupt("return", false);
|
|
4570
|
+
case 10:
|
|
4571
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
4572
|
+
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
4573
|
+
}))) {
|
|
4574
|
+
_context.next = 13;
|
|
4575
|
+
break;
|
|
4576
|
+
}
|
|
4577
|
+
message$1.warning('相同商品相同颜色配码不可设置相同哦');
|
|
4578
|
+
return _context.abrupt("return", false);
|
|
4579
|
+
case 13:
|
|
4580
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
4581
|
+
_context.next = 26;
|
|
4582
|
+
break;
|
|
4583
|
+
}
|
|
4584
|
+
result = true;
|
|
4585
|
+
_context.prev = 15;
|
|
4586
|
+
_context.next = 18;
|
|
4587
|
+
return checkSpuMatchCode({
|
|
4588
|
+
skcCode: recordItem[recordKey],
|
|
4589
|
+
matchingCode: changeValue,
|
|
4590
|
+
ext1: recordItem.colorName
|
|
4591
|
+
});
|
|
4592
|
+
case 18:
|
|
4593
|
+
result = _context.sent;
|
|
4594
|
+
result = true;
|
|
4595
|
+
_context.next = 25;
|
|
4562
4596
|
break;
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
_context.next = 25;
|
|
4576
|
-
break;
|
|
4577
|
-
case 22:
|
|
4578
|
-
_context.prev = 22;
|
|
4579
|
-
_context.t0 = _context["catch"](15);
|
|
4580
|
-
result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
|
|
4581
|
-
case 25:
|
|
4582
|
-
return _context.abrupt("return", result);
|
|
4583
|
-
case 26:
|
|
4584
|
-
return _context.abrupt("return", true);
|
|
4585
|
-
case 27:
|
|
4586
|
-
case "end":
|
|
4587
|
-
return _context.stop();
|
|
4597
|
+
case 22:
|
|
4598
|
+
_context.prev = 22;
|
|
4599
|
+
_context.t0 = _context["catch"](15);
|
|
4600
|
+
result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
|
|
4601
|
+
case 25:
|
|
4602
|
+
return _context.abrupt("return", result);
|
|
4603
|
+
case 26:
|
|
4604
|
+
return _context.abrupt("return", true);
|
|
4605
|
+
case 27:
|
|
4606
|
+
case "end":
|
|
4607
|
+
return _context.stop();
|
|
4608
|
+
}
|
|
4588
4609
|
}
|
|
4589
4610
|
}, _callee, null, [[15, 22]]);
|
|
4590
4611
|
}));
|
|
@@ -4776,27 +4797,29 @@ var AddSelect = function AddSelect(props) {
|
|
|
4776
4797
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
4777
4798
|
var isConformToTheRules, newPopValue;
|
|
4778
4799
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
4779
|
-
while (1)
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
newPopValue = popvalue.map(function (i, innerIndex) {
|
|
4791
|
-
if (innerIndex == index) {
|
|
4792
|
-
i[item.dataIndex] = record[item.dataIndex];
|
|
4800
|
+
while (1) {
|
|
4801
|
+
switch (_context2.prev = _context2.next) {
|
|
4802
|
+
case 0:
|
|
4803
|
+
_context2.next = 2;
|
|
4804
|
+
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
4805
|
+
case 2:
|
|
4806
|
+
isConformToTheRules = _context2.sent;
|
|
4807
|
+
if (isConformToTheRules) {
|
|
4808
|
+
record[item.dataIndex] = value;
|
|
4809
|
+
} else {
|
|
4810
|
+
record[item.dataIndex] = null;
|
|
4793
4811
|
}
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4812
|
+
newPopValue = popvalue.map(function (i, innerIndex) {
|
|
4813
|
+
if (innerIndex == index) {
|
|
4814
|
+
i[item.dataIndex] = record[item.dataIndex];
|
|
4815
|
+
}
|
|
4816
|
+
return i;
|
|
4817
|
+
});
|
|
4818
|
+
setPopValue(newPopValue);
|
|
4819
|
+
case 6:
|
|
4820
|
+
case "end":
|
|
4821
|
+
return _context2.stop();
|
|
4822
|
+
}
|
|
4800
4823
|
}
|
|
4801
4824
|
}, _callee2);
|
|
4802
4825
|
}));
|
|
@@ -4856,85 +4879,84 @@ var AddSelect = function AddSelect(props) {
|
|
|
4856
4879
|
});
|
|
4857
4880
|
}
|
|
4858
4881
|
// 数组对象处理,对带有特殊标记的name进行处理
|
|
4859
|
-
var
|
|
4882
|
+
for (var key in params) {
|
|
4860
4883
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
4884
|
+
(function () {
|
|
4885
|
+
var element = params[key];
|
|
4886
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
4887
|
+
var dataParams = key.split('*number*');
|
|
4888
|
+
dataParams.forEach(function (value, index) {
|
|
4889
|
+
params[value] = element[index];
|
|
4890
|
+
});
|
|
4891
|
+
delete params[key];
|
|
4892
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
4893
|
+
var _dataParams = key.split('*address*');
|
|
4894
|
+
_dataParams.forEach(function (value, index) {
|
|
4895
|
+
params[value] = element.PCDCode[index];
|
|
4896
|
+
});
|
|
4897
|
+
delete params[key];
|
|
4898
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
4899
|
+
var _dataParams2 = key.split('*costType*');
|
|
4900
|
+
// eslint-disable-next-line prefer-destructuring
|
|
4901
|
+
params[_dataParams2[0]] = element[1];
|
|
4902
|
+
delete params[key];
|
|
4903
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
4904
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
4905
|
+
_dataParams3.forEach(function (value, index) {
|
|
4906
|
+
if (index === 0) {
|
|
4907
|
+
params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
4908
|
+
} else {
|
|
4909
|
+
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
4910
|
+
}
|
|
4911
|
+
});
|
|
4912
|
+
delete params[key];
|
|
4913
|
+
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
4914
|
+
var _dataParams4 = key.split('*checkBox*');
|
|
4915
|
+
if (element) {
|
|
4916
|
+
params[_dataParams4[0]] = 0;
|
|
4886
4917
|
}
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4918
|
+
delete params[key];
|
|
4919
|
+
} else if (element && key.indexOf('*cascader*') >= 0) {
|
|
4920
|
+
var _dataParams5 = key.split('*cascader*');
|
|
4921
|
+
params[_dataParams5[0]] = element[element.length - 1];
|
|
4922
|
+
delete params[key];
|
|
4923
|
+
} else if (element && key.indexOf('*date*') >= 0) {
|
|
4924
|
+
var _dataParams6 = key.split('*date*');
|
|
4925
|
+
_dataParams6.forEach(function (value, index) {
|
|
4926
|
+
if (index === 0) {
|
|
4927
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
4928
|
+
} else {
|
|
4929
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
4930
|
+
}
|
|
4931
|
+
});
|
|
4932
|
+
delete params[key];
|
|
4933
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
4934
|
+
var _dataParams7 = key.split('*');
|
|
4935
|
+
_dataParams7.forEach(function (value, index) {
|
|
4936
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
4937
|
+
});
|
|
4938
|
+
delete params[key];
|
|
4939
|
+
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
4940
|
+
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
4941
|
+
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
4942
|
+
if (params[key][0] === 'range') {
|
|
4943
|
+
if (params[key][1][0]) {
|
|
4944
|
+
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
4945
|
+
}
|
|
4946
|
+
if (params[key][1][1]) {
|
|
4947
|
+
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
4948
|
+
}
|
|
4904
4949
|
} else {
|
|
4905
|
-
params[
|
|
4906
|
-
}
|
|
4907
|
-
});
|
|
4908
|
-
delete params[key];
|
|
4909
|
-
} else if (element && key.indexOf('*') >= 0) {
|
|
4910
|
-
var _dataParams7 = key.split('*');
|
|
4911
|
-
_dataParams7.forEach(function (value, index) {
|
|
4912
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
4913
|
-
});
|
|
4914
|
-
delete params[key];
|
|
4915
|
-
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
4916
|
-
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
4917
|
-
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
4918
|
-
if (params[key][0] === 'range') {
|
|
4919
|
-
if (params[key][1][0]) {
|
|
4920
|
-
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
4950
|
+
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
4921
4951
|
}
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
} else {
|
|
4926
|
-
|
|
4952
|
+
delete params[key];
|
|
4953
|
+
} else if (Array.isArray(element)) {
|
|
4954
|
+
params[key] = element.join(',');
|
|
4955
|
+
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
4956
|
+
delete params[key];
|
|
4927
4957
|
}
|
|
4928
|
-
|
|
4929
|
-
} else if (Array.isArray(element)) {
|
|
4930
|
-
params[key] = element.join(',');
|
|
4931
|
-
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
4932
|
-
delete params[key];
|
|
4933
|
-
}
|
|
4958
|
+
})();
|
|
4934
4959
|
}
|
|
4935
|
-
};
|
|
4936
|
-
for (var key in params) {
|
|
4937
|
-
_loop();
|
|
4938
4960
|
}
|
|
4939
4961
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
4940
4962
|
pageSize: pageSize,
|
|
@@ -6389,74 +6411,76 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
6389
6411
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
6390
6412
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
6391
6413
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
6392
|
-
while (1)
|
|
6393
|
-
|
|
6394
|
-
|
|
6395
|
-
|
|
6396
|
-
|
|
6397
|
-
|
|
6398
|
-
message$1.warning('至少录入一条数据');
|
|
6399
|
-
return _context.abrupt("return");
|
|
6400
|
-
case 3:
|
|
6401
|
-
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
6402
|
-
return d.skuCode && d.name;
|
|
6403
|
-
})) {
|
|
6404
|
-
_context.next = 6;
|
|
6405
|
-
break;
|
|
6406
|
-
}
|
|
6407
|
-
message$1.warning('请选择商品!');
|
|
6408
|
-
return _context.abrupt("return");
|
|
6409
|
-
case 6:
|
|
6410
|
-
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
6411
|
-
return d.count;
|
|
6412
|
-
})) {
|
|
6413
|
-
_context.next = 9;
|
|
6414
|
-
break;
|
|
6415
|
-
}
|
|
6416
|
-
message$1.warning('请填写商品数量!');
|
|
6417
|
-
return _context.abrupt("return");
|
|
6418
|
-
case 9:
|
|
6419
|
-
_context.next = 11;
|
|
6420
|
-
return isSkuCanEntry(data);
|
|
6421
|
-
case 11:
|
|
6422
|
-
canEntryObject = _context.sent;
|
|
6423
|
-
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
6424
|
-
_context.next = 16;
|
|
6425
|
-
break;
|
|
6426
|
-
}
|
|
6427
|
-
messageInfo = (canEntryObject === null || canEntryObject === void 0 ? void 0 : (_canEntryObject$error = canEntryObject.errorList) === null || _canEntryObject$error === void 0 ? void 0 : _canEntryObject$error.length) && (canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.errorList.map(function (i) {
|
|
6428
|
-
return /*#__PURE__*/React.createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
|
|
6429
|
-
}));
|
|
6430
|
-
messageInfo && message$1.warning({
|
|
6431
|
-
content: messageInfo,
|
|
6432
|
-
duration: 6
|
|
6433
|
-
});
|
|
6434
|
-
return _context.abrupt("return");
|
|
6435
|
-
case 16:
|
|
6436
|
-
setLoading(true);
|
|
6437
|
-
onSaveCallback(data).then(function (res) {
|
|
6438
|
-
{
|
|
6439
|
-
var _Object$keys;
|
|
6440
|
-
var initSuccessMessage = '保存成功';
|
|
6441
|
-
var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
|
|
6442
|
-
if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
|
|
6443
|
-
(rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? message$1.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
|
|
6444
|
-
} else {
|
|
6445
|
-
message$1.success(initSuccessMessage);
|
|
6446
|
-
}
|
|
6414
|
+
while (1) {
|
|
6415
|
+
switch (_context.prev = _context.next) {
|
|
6416
|
+
case 0:
|
|
6417
|
+
if (data === null || data === void 0 ? void 0 : data.length) {
|
|
6418
|
+
_context.next = 3;
|
|
6419
|
+
break;
|
|
6447
6420
|
}
|
|
6448
|
-
|
|
6449
|
-
|
|
6450
|
-
|
|
6451
|
-
|
|
6452
|
-
|
|
6453
|
-
|
|
6454
|
-
|
|
6455
|
-
|
|
6456
|
-
|
|
6457
|
-
|
|
6458
|
-
|
|
6459
|
-
|
|
6421
|
+
message$1.warning('至少录入一条数据');
|
|
6422
|
+
return _context.abrupt("return");
|
|
6423
|
+
case 3:
|
|
6424
|
+
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
6425
|
+
return d.skuCode && d.name;
|
|
6426
|
+
})) {
|
|
6427
|
+
_context.next = 6;
|
|
6428
|
+
break;
|
|
6429
|
+
}
|
|
6430
|
+
message$1.warning('请选择商品!');
|
|
6431
|
+
return _context.abrupt("return");
|
|
6432
|
+
case 6:
|
|
6433
|
+
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
6434
|
+
return d.count;
|
|
6435
|
+
})) {
|
|
6436
|
+
_context.next = 9;
|
|
6437
|
+
break;
|
|
6438
|
+
}
|
|
6439
|
+
message$1.warning('请填写商品数量!');
|
|
6440
|
+
return _context.abrupt("return");
|
|
6441
|
+
case 9:
|
|
6442
|
+
_context.next = 11;
|
|
6443
|
+
return isSkuCanEntry(data);
|
|
6444
|
+
case 11:
|
|
6445
|
+
canEntryObject = _context.sent;
|
|
6446
|
+
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
6447
|
+
_context.next = 16;
|
|
6448
|
+
break;
|
|
6449
|
+
}
|
|
6450
|
+
messageInfo = (canEntryObject === null || canEntryObject === void 0 ? void 0 : (_canEntryObject$error = canEntryObject.errorList) === null || _canEntryObject$error === void 0 ? void 0 : _canEntryObject$error.length) && (canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.errorList.map(function (i) {
|
|
6451
|
+
return /*#__PURE__*/React.createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
|
|
6452
|
+
}));
|
|
6453
|
+
messageInfo && message$1.warning({
|
|
6454
|
+
content: messageInfo,
|
|
6455
|
+
duration: 6
|
|
6456
|
+
});
|
|
6457
|
+
return _context.abrupt("return");
|
|
6458
|
+
case 16:
|
|
6459
|
+
setLoading(true);
|
|
6460
|
+
onSaveCallback(data).then(function (res) {
|
|
6461
|
+
{
|
|
6462
|
+
var _Object$keys;
|
|
6463
|
+
var initSuccessMessage = '保存成功';
|
|
6464
|
+
var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
|
|
6465
|
+
if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
|
|
6466
|
+
(rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? message$1.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
|
|
6467
|
+
} else {
|
|
6468
|
+
message$1.success(initSuccessMessage);
|
|
6469
|
+
}
|
|
6470
|
+
}
|
|
6471
|
+
setLoading(false);
|
|
6472
|
+
}).catch(function (Error) {
|
|
6473
|
+
message$1.error(Error);
|
|
6474
|
+
setLoading(false);
|
|
6475
|
+
});
|
|
6476
|
+
case 18:
|
|
6477
|
+
case "end":
|
|
6478
|
+
return _context.stop();
|
|
6479
|
+
}
|
|
6480
|
+
}
|
|
6481
|
+
}, _callee);
|
|
6482
|
+
}));
|
|
6483
|
+
return function handleSubmit() {
|
|
6460
6484
|
return _ref4.apply(this, arguments);
|
|
6461
6485
|
};
|
|
6462
6486
|
}();
|
|
@@ -9587,7 +9611,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
9587
9611
|
* @LastEditTime: 2022-01-14 17:17:26
|
|
9588
9612
|
* @LastEditors: rodchen
|
|
9589
9613
|
*/
|
|
9590
|
-
var index$
|
|
9614
|
+
var index$1 = (function (storageKeyString) {
|
|
9591
9615
|
var seconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
|
|
9592
9616
|
var tipsCallFunction = arguments.length > 2 ? arguments[2] : undefined;
|
|
9593
9617
|
if (typeof seconds !== 'number') throw new Error('seconds should be number');
|
|
@@ -9705,42 +9729,44 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
9705
9729
|
var _ctx$form;
|
|
9706
9730
|
var resData, coverData, data, dataList;
|
|
9707
9731
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9708
|
-
while (1)
|
|
9709
|
-
|
|
9710
|
-
|
|
9711
|
-
|
|
9712
|
-
|
|
9732
|
+
while (1) {
|
|
9733
|
+
switch (_context.prev = _context.next) {
|
|
9734
|
+
case 0:
|
|
9735
|
+
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
9736
|
+
if (!(resData.status === '0' || resData.code === '000000')) {
|
|
9737
|
+
_context.next = 13;
|
|
9738
|
+
break;
|
|
9739
|
+
}
|
|
9740
|
+
data = resData.data;
|
|
9741
|
+
if (!remoteSource.converter) {
|
|
9742
|
+
_context.next = 9;
|
|
9743
|
+
break;
|
|
9744
|
+
}
|
|
9745
|
+
_context.next = 6;
|
|
9746
|
+
return remoteSource.converter({
|
|
9747
|
+
data: [data]
|
|
9748
|
+
});
|
|
9749
|
+
case 6:
|
|
9750
|
+
coverData = _context.sent;
|
|
9751
|
+
_context.next = 11;
|
|
9713
9752
|
break;
|
|
9714
|
-
|
|
9715
|
-
|
|
9716
|
-
|
|
9717
|
-
|
|
9753
|
+
case 9:
|
|
9754
|
+
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
9755
|
+
coverData = dataList.length && dataList.map(function (ites) {
|
|
9756
|
+
return mapSearchTree(ites);
|
|
9757
|
+
}) || [];
|
|
9758
|
+
case 11:
|
|
9759
|
+
_context.next = 14;
|
|
9718
9760
|
break;
|
|
9719
|
-
|
|
9720
|
-
|
|
9721
|
-
|
|
9722
|
-
|
|
9723
|
-
|
|
9724
|
-
|
|
9725
|
-
|
|
9726
|
-
|
|
9727
|
-
|
|
9728
|
-
case 9:
|
|
9729
|
-
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
9730
|
-
coverData = dataList.length && dataList.map(function (ites) {
|
|
9731
|
-
return mapSearchTree(ites);
|
|
9732
|
-
}) || [];
|
|
9733
|
-
case 11:
|
|
9734
|
-
_context.next = 14;
|
|
9735
|
-
break;
|
|
9736
|
-
case 13:
|
|
9737
|
-
coverData = [];
|
|
9738
|
-
case 14:
|
|
9739
|
-
setTreeData(coverData);
|
|
9740
|
-
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
|
|
9741
|
-
case 16:
|
|
9742
|
-
case "end":
|
|
9743
|
-
return _context.stop();
|
|
9761
|
+
case 13:
|
|
9762
|
+
coverData = [];
|
|
9763
|
+
case 14:
|
|
9764
|
+
setTreeData(coverData);
|
|
9765
|
+
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
|
|
9766
|
+
case 16:
|
|
9767
|
+
case "end":
|
|
9768
|
+
return _context.stop();
|
|
9769
|
+
}
|
|
9744
9770
|
}
|
|
9745
9771
|
}, _callee);
|
|
9746
9772
|
}));
|
|
@@ -9941,7 +9967,7 @@ var BusinessTreeSearchSelect$1 = /*#__PURE__*/React.memo(BusinessTreeSearchSelec
|
|
|
9941
9967
|
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";
|
|
9942
9968
|
styleInject(css_248z$8);
|
|
9943
9969
|
|
|
9944
|
-
var index$
|
|
9970
|
+
var index$2 = (function (props) {
|
|
9945
9971
|
var _props$formStatusMapp = props.formStatusMapping,
|
|
9946
9972
|
formStatusMapping = _props$formStatusMapp === void 0 ? [] : _props$formStatusMapp;
|
|
9947
9973
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -11365,7 +11391,7 @@ var iconMap = {
|
|
|
11365
11391
|
src: moreIcon
|
|
11366
11392
|
})
|
|
11367
11393
|
};
|
|
11368
|
-
var index$
|
|
11394
|
+
var index$3 = (function (props) {
|
|
11369
11395
|
var _useLocation = useLocation(),
|
|
11370
11396
|
pathname = _useLocation.pathname;
|
|
11371
11397
|
var _useState = useState(pathname + 'id'),
|
|
@@ -11582,7 +11608,7 @@ var css_248z$d = ".home_page_head {\n height: 54px;\n display: flex;\n justif
|
|
|
11582
11608
|
styleInject(css_248z$d);
|
|
11583
11609
|
|
|
11584
11610
|
var _excluded$c = ["children"];
|
|
11585
|
-
var index$
|
|
11611
|
+
var index$4 = (function (props) {
|
|
11586
11612
|
var _useLocation = useLocation(),
|
|
11587
11613
|
pathname = _useLocation.pathname;
|
|
11588
11614
|
var _useState = useState(pathname + 'id'),
|
|
@@ -13858,19 +13884,21 @@ function _outLogin() {
|
|
|
13858
13884
|
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
13859
13885
|
var res;
|
|
13860
13886
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
13861
|
-
while (1)
|
|
13862
|
-
|
|
13863
|
-
|
|
13864
|
-
|
|
13865
|
-
|
|
13866
|
-
|
|
13867
|
-
|
|
13868
|
-
|
|
13869
|
-
|
|
13870
|
-
|
|
13871
|
-
|
|
13872
|
-
|
|
13873
|
-
|
|
13887
|
+
while (1) {
|
|
13888
|
+
switch (_context.prev = _context.next) {
|
|
13889
|
+
case 0:
|
|
13890
|
+
_context.next = 2;
|
|
13891
|
+
return axios({
|
|
13892
|
+
url: '/user/web/loginOut',
|
|
13893
|
+
method: 'GET'
|
|
13894
|
+
});
|
|
13895
|
+
case 2:
|
|
13896
|
+
res = _context.sent;
|
|
13897
|
+
return _context.abrupt("return", res);
|
|
13898
|
+
case 4:
|
|
13899
|
+
case "end":
|
|
13900
|
+
return _context.stop();
|
|
13901
|
+
}
|
|
13874
13902
|
}
|
|
13875
13903
|
}, _callee);
|
|
13876
13904
|
}));
|
|
@@ -13999,29 +14027,31 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
13999
14027
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
14000
14028
|
var sessionId;
|
|
14001
14029
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
14002
|
-
while (1)
|
|
14003
|
-
|
|
14004
|
-
|
|
14005
|
-
|
|
14006
|
-
|
|
14007
|
-
|
|
14008
|
-
|
|
14009
|
-
|
|
14010
|
-
|
|
14011
|
-
|
|
14012
|
-
case 5:
|
|
14013
|
-
// @ts-ignore
|
|
14014
|
-
if (BUILD_TYPE) {
|
|
14015
|
-
message$1.success('退出登录成功');
|
|
14016
|
-
history.replace({
|
|
14017
|
-
pathname: '/user/login'
|
|
14030
|
+
while (1) {
|
|
14031
|
+
switch (_context.prev = _context.next) {
|
|
14032
|
+
case 0:
|
|
14033
|
+
_context.next = 2;
|
|
14034
|
+
return getSessionId();
|
|
14035
|
+
case 2:
|
|
14036
|
+
sessionId = _context.sent;
|
|
14037
|
+
_context.next = 5;
|
|
14038
|
+
return outLogin({
|
|
14039
|
+
sessionId: sessionId
|
|
14018
14040
|
});
|
|
14019
|
-
|
|
14020
|
-
|
|
14021
|
-
|
|
14022
|
-
|
|
14023
|
-
|
|
14024
|
-
|
|
14041
|
+
case 5:
|
|
14042
|
+
// @ts-ignore
|
|
14043
|
+
if (BUILD_TYPE) {
|
|
14044
|
+
message$1.success('退出登录成功');
|
|
14045
|
+
history.replace({
|
|
14046
|
+
pathname: '/user/login'
|
|
14047
|
+
});
|
|
14048
|
+
} else {
|
|
14049
|
+
setLoginOutPath();
|
|
14050
|
+
}
|
|
14051
|
+
case 6:
|
|
14052
|
+
case "end":
|
|
14053
|
+
return _context.stop();
|
|
14054
|
+
}
|
|
14025
14055
|
}
|
|
14026
14056
|
}, _callee);
|
|
14027
14057
|
}));
|
|
@@ -15849,7 +15879,6 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
15849
15879
|
showSubMenu: isShow
|
|
15850
15880
|
});
|
|
15851
15881
|
}, 500);
|
|
15852
|
-
//设置tabs标签左右滚动
|
|
15853
15882
|
_this.setTabNavTransLate = function (num) {
|
|
15854
15883
|
var _document$getElementB, _document$getElementB2, _document$getElementB3, _document$getElementB4, _document$defaultView;
|
|
15855
15884
|
var globalTabsNav = (_document$getElementB = document.getElementById('globalTabs')) === null || _document$getElementB === void 0 ? void 0 : (_document$getElementB2 = _document$getElementB.getElementsByClassName('ant-tabs-nav-list')) === null || _document$getElementB2 === void 0 ? void 0 : _document$getElementB2[0];
|
|
@@ -16530,12 +16559,14 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
16530
16559
|
request: function () {
|
|
16531
16560
|
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
16532
16561
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
16533
|
-
while (1)
|
|
16534
|
-
|
|
16535
|
-
|
|
16536
|
-
|
|
16537
|
-
|
|
16538
|
-
|
|
16562
|
+
while (1) {
|
|
16563
|
+
switch (_context.prev = _context.next) {
|
|
16564
|
+
case 0:
|
|
16565
|
+
return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
|
|
16566
|
+
case 1:
|
|
16567
|
+
case "end":
|
|
16568
|
+
return _context.stop();
|
|
16569
|
+
}
|
|
16539
16570
|
}
|
|
16540
16571
|
}, _callee);
|
|
16541
16572
|
}));
|
|
@@ -16673,7 +16704,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
16673
16704
|
}]);
|
|
16674
16705
|
return WrapperComponent;
|
|
16675
16706
|
}(React.Component);
|
|
16676
|
-
var index$
|
|
16707
|
+
var index$5 = (function (props) {
|
|
16677
16708
|
var _useModel = useModel('@@initialState'),
|
|
16678
16709
|
_useModel$initialStat = _useModel.initialState,
|
|
16679
16710
|
initialState = _useModel$initialStat === void 0 ? {} : _useModel$initialStat;
|
|
@@ -16914,7 +16945,7 @@ var FixedScrollBar = function FixedScrollBar(_ref, ref) {
|
|
|
16914
16945
|
};
|
|
16915
16946
|
var FixedScrollBar$1 = /*#__PURE__*/React.forwardRef(FixedScrollBar);
|
|
16916
16947
|
|
|
16917
|
-
var index$
|
|
16948
|
+
var index$6 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
16918
16949
|
var _useState = useState(false),
|
|
16919
16950
|
_useState2 = _slicedToArray(_useState, 2),
|
|
16920
16951
|
show = _useState2[0],
|
|
@@ -24207,26 +24238,28 @@ var valueType = {
|
|
|
24207
24238
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
24208
24239
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
24209
24240
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
24210
|
-
while (1)
|
|
24211
|
-
|
|
24212
|
-
|
|
24213
|
-
|
|
24214
|
-
|
|
24215
|
-
|
|
24216
|
-
|
|
24217
|
-
|
|
24218
|
-
return {
|
|
24219
|
-
|
|
24220
|
-
|
|
24221
|
-
|
|
24222
|
-
|
|
24223
|
-
|
|
24224
|
-
|
|
24225
|
-
|
|
24226
|
-
|
|
24227
|
-
|
|
24228
|
-
|
|
24229
|
-
|
|
24241
|
+
while (1) {
|
|
24242
|
+
switch (_context.prev = _context.next) {
|
|
24243
|
+
case 0:
|
|
24244
|
+
_context.next = 2;
|
|
24245
|
+
return request$1({
|
|
24246
|
+
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
24247
|
+
converter: function converter(_ref2) {
|
|
24248
|
+
var data = _ref2.data;
|
|
24249
|
+
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
24250
|
+
return {
|
|
24251
|
+
text: d.name,
|
|
24252
|
+
value: d.code || d.brandCode
|
|
24253
|
+
};
|
|
24254
|
+
});
|
|
24255
|
+
}
|
|
24256
|
+
});
|
|
24257
|
+
case 2:
|
|
24258
|
+
return _context.abrupt("return", _context.sent);
|
|
24259
|
+
case 3:
|
|
24260
|
+
case "end":
|
|
24261
|
+
return _context.stop();
|
|
24262
|
+
}
|
|
24230
24263
|
}
|
|
24231
24264
|
}, _callee);
|
|
24232
24265
|
}));
|
|
@@ -24276,53 +24309,55 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
24276
24309
|
useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
24277
24310
|
var _ref$current, source;
|
|
24278
24311
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
24279
|
-
while (1)
|
|
24280
|
-
|
|
24281
|
-
|
|
24282
|
-
|
|
24283
|
-
|
|
24284
|
-
|
|
24285
|
-
|
|
24286
|
-
|
|
24287
|
-
|
|
24288
|
-
|
|
24312
|
+
while (1) {
|
|
24313
|
+
switch (_context.prev = _context.next) {
|
|
24314
|
+
case 0:
|
|
24315
|
+
_context.next = 2;
|
|
24316
|
+
return setIsShowAndType(function (prev) {
|
|
24317
|
+
if (record.inputType === 20 || record.inputType === 30) {
|
|
24318
|
+
return {
|
|
24319
|
+
isShow: true,
|
|
24320
|
+
singleOrMultiple: record.inputType,
|
|
24321
|
+
type: record.choiceType
|
|
24322
|
+
};
|
|
24323
|
+
}
|
|
24324
|
+
return prev;
|
|
24325
|
+
});
|
|
24326
|
+
case 2:
|
|
24327
|
+
if (!record.dictionaryCode) {
|
|
24328
|
+
_context.next = 17;
|
|
24329
|
+
break;
|
|
24289
24330
|
}
|
|
24290
|
-
|
|
24291
|
-
|
|
24292
|
-
|
|
24293
|
-
|
|
24294
|
-
_context.
|
|
24295
|
-
|
|
24296
|
-
}
|
|
24297
|
-
if (!(record.choiceType == 20)) {
|
|
24298
|
-
_context.next = 7;
|
|
24331
|
+
if (!(record.choiceType == 20)) {
|
|
24332
|
+
_context.next = 7;
|
|
24333
|
+
break;
|
|
24334
|
+
}
|
|
24335
|
+
_context.t0 = getDictionarySource(record.dictionaryCode);
|
|
24336
|
+
_context.next = 15;
|
|
24299
24337
|
break;
|
|
24300
|
-
|
|
24301
|
-
|
|
24302
|
-
|
|
24303
|
-
|
|
24304
|
-
|
|
24305
|
-
|
|
24306
|
-
|
|
24338
|
+
case 7:
|
|
24339
|
+
if (!(record.choiceType == 30)) {
|
|
24340
|
+
_context.next = 13;
|
|
24341
|
+
break;
|
|
24342
|
+
}
|
|
24343
|
+
_context.next = 10;
|
|
24344
|
+
return getDynamicDict(record.dictionaryCode);
|
|
24345
|
+
case 10:
|
|
24346
|
+
_context.t1 = _context.sent;
|
|
24347
|
+
_context.next = 14;
|
|
24307
24348
|
break;
|
|
24308
|
-
|
|
24309
|
-
|
|
24310
|
-
|
|
24311
|
-
|
|
24312
|
-
|
|
24313
|
-
|
|
24314
|
-
|
|
24315
|
-
|
|
24316
|
-
|
|
24317
|
-
|
|
24318
|
-
|
|
24319
|
-
|
|
24320
|
-
source = _context.t0;
|
|
24321
|
-
// @ts-ignore
|
|
24322
|
-
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
24323
|
-
case 17:
|
|
24324
|
-
case "end":
|
|
24325
|
-
return _context.stop();
|
|
24349
|
+
case 13:
|
|
24350
|
+
_context.t1 = [];
|
|
24351
|
+
case 14:
|
|
24352
|
+
_context.t0 = _context.t1;
|
|
24353
|
+
case 15:
|
|
24354
|
+
source = _context.t0;
|
|
24355
|
+
// @ts-ignore
|
|
24356
|
+
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
24357
|
+
case 17:
|
|
24358
|
+
case "end":
|
|
24359
|
+
return _context.stop();
|
|
24360
|
+
}
|
|
24326
24361
|
}
|
|
24327
24362
|
}, _callee);
|
|
24328
24363
|
})));
|
|
@@ -24390,28 +24425,30 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
24390
24425
|
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
24391
24426
|
var form, values, name, relates, source;
|
|
24392
24427
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
24393
|
-
while (1)
|
|
24394
|
-
|
|
24395
|
-
|
|
24396
|
-
|
|
24428
|
+
while (1) {
|
|
24429
|
+
switch (_context2.prev = _context2.next) {
|
|
24430
|
+
case 0:
|
|
24431
|
+
form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
|
|
24432
|
+
if (values[0]) {
|
|
24433
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
24434
|
+
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
24435
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
24436
|
+
}
|
|
24437
|
+
if (!values[1]) {
|
|
24438
|
+
_context2.next = 9;
|
|
24439
|
+
break;
|
|
24440
|
+
}
|
|
24441
|
+
_context2.next = 5;
|
|
24442
|
+
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
24443
|
+
case 5:
|
|
24444
|
+
source = _context2.sent;
|
|
24397
24445
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
24398
24446
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
24399
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0],
|
|
24400
|
-
|
|
24401
|
-
|
|
24402
|
-
_context2.
|
|
24403
|
-
|
|
24404
|
-
}
|
|
24405
|
-
_context2.next = 5;
|
|
24406
|
-
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
24407
|
-
case 5:
|
|
24408
|
-
source = _context2.sent;
|
|
24409
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
24410
|
-
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
24411
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
24412
|
-
case 9:
|
|
24413
|
-
case "end":
|
|
24414
|
-
return _context2.stop();
|
|
24447
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
24448
|
+
case 9:
|
|
24449
|
+
case "end":
|
|
24450
|
+
return _context2.stop();
|
|
24451
|
+
}
|
|
24415
24452
|
}
|
|
24416
24453
|
}, _callee2);
|
|
24417
24454
|
}));
|
|
@@ -24871,41 +24908,43 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
24871
24908
|
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
24872
24909
|
var values, name, form, source;
|
|
24873
24910
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
24874
|
-
while (1)
|
|
24875
|
-
|
|
24876
|
-
|
|
24877
|
-
|
|
24878
|
-
|
|
24879
|
-
|
|
24880
|
-
|
|
24881
|
-
if (!(values[0] === 30)) {
|
|
24882
|
-
_context3.next = 10;
|
|
24883
|
-
break;
|
|
24884
|
-
}
|
|
24885
|
-
_context3.next = 5;
|
|
24886
|
-
return request$1({
|
|
24887
|
-
url: '/basic/dictDynamicItem/queryList',
|
|
24888
|
-
converter: function converter(_ref11) {
|
|
24889
|
-
var data = _ref11.data;
|
|
24890
|
-
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
24891
|
-
return {
|
|
24892
|
-
text: d.dictCode,
|
|
24893
|
-
value: d.dictCode
|
|
24894
|
-
};
|
|
24895
|
-
});
|
|
24911
|
+
while (1) {
|
|
24912
|
+
switch (_context3.prev = _context3.next) {
|
|
24913
|
+
case 0:
|
|
24914
|
+
values = _ref10.values, name = _ref10.name, form = _ref10.form;
|
|
24915
|
+
if (values[1] === 40) {
|
|
24916
|
+
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
24917
|
+
form.setFieldVisible(name, false);
|
|
24896
24918
|
}
|
|
24897
|
-
|
|
24898
|
-
|
|
24899
|
-
|
|
24900
|
-
|
|
24901
|
-
|
|
24902
|
-
|
|
24903
|
-
|
|
24904
|
-
|
|
24905
|
-
|
|
24906
|
-
|
|
24907
|
-
|
|
24908
|
-
|
|
24919
|
+
if (!(values[0] === 30)) {
|
|
24920
|
+
_context3.next = 10;
|
|
24921
|
+
break;
|
|
24922
|
+
}
|
|
24923
|
+
_context3.next = 5;
|
|
24924
|
+
return request$1({
|
|
24925
|
+
url: '/basic/dictDynamicItem/queryList',
|
|
24926
|
+
converter: function converter(_ref11) {
|
|
24927
|
+
var data = _ref11.data;
|
|
24928
|
+
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
24929
|
+
return {
|
|
24930
|
+
text: d.dictCode,
|
|
24931
|
+
value: d.dictCode
|
|
24932
|
+
};
|
|
24933
|
+
});
|
|
24934
|
+
}
|
|
24935
|
+
});
|
|
24936
|
+
case 5:
|
|
24937
|
+
source = _context3.sent;
|
|
24938
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
24939
|
+
form.setFieldVisible(name, true);
|
|
24940
|
+
_context3.next = 11;
|
|
24941
|
+
break;
|
|
24942
|
+
case 10:
|
|
24943
|
+
form.setFieldVisible(name, false);
|
|
24944
|
+
case 11:
|
|
24945
|
+
case "end":
|
|
24946
|
+
return _context3.stop();
|
|
24947
|
+
}
|
|
24909
24948
|
}
|
|
24910
24949
|
}, _callee3);
|
|
24911
24950
|
}));
|
|
@@ -25094,64 +25133,66 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
25094
25133
|
var _ref$current4, _res$editableStatus;
|
|
25095
25134
|
var res, _res$defaultValue;
|
|
25096
25135
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
25097
|
-
while (1)
|
|
25098
|
-
|
|
25099
|
-
|
|
25100
|
-
|
|
25101
|
-
|
|
25102
|
-
|
|
25103
|
-
|
|
25104
|
-
|
|
25105
|
-
|
|
25106
|
-
|
|
25107
|
-
|
|
25108
|
-
|
|
25109
|
-
|
|
25110
|
-
|
|
25111
|
-
|
|
25112
|
-
|
|
25113
|
-
|
|
25114
|
-
|
|
25115
|
-
|
|
25116
|
-
|
|
25117
|
-
res.
|
|
25118
|
-
|
|
25119
|
-
// 把数组处理成文本
|
|
25120
|
-
if (res.inputType === 30) {
|
|
25121
|
-
if (res.defaultValue) {
|
|
25122
|
-
res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
|
|
25136
|
+
while (1) {
|
|
25137
|
+
switch (_context4.prev = _context4.next) {
|
|
25138
|
+
case 0:
|
|
25139
|
+
_context4.next = 2;
|
|
25140
|
+
return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
|
|
25141
|
+
case 2:
|
|
25142
|
+
res = _context4.sent;
|
|
25143
|
+
res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
|
|
25144
|
+
res.fieldGroup = record.fieldGroup;
|
|
25145
|
+
res.businessType = record.businessType;
|
|
25146
|
+
res.info = {
|
|
25147
|
+
enumeration: res.enumeration,
|
|
25148
|
+
dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
|
|
25149
|
+
formula: res.formula,
|
|
25150
|
+
scale: res.scale,
|
|
25151
|
+
variable: res.variable
|
|
25152
|
+
};
|
|
25153
|
+
res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
|
|
25154
|
+
res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
|
|
25155
|
+
res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
|
|
25156
|
+
if (res.inputType === 40) {
|
|
25157
|
+
res.valueType = 22;
|
|
25123
25158
|
}
|
|
25124
|
-
|
|
25125
|
-
|
|
25126
|
-
|
|
25127
|
-
|
|
25128
|
-
|
|
25129
|
-
_context4.next = 18;
|
|
25130
|
-
break;
|
|
25131
|
-
}
|
|
25132
|
-
request$1({
|
|
25133
|
-
url: "/basic/flow/businessField",
|
|
25134
|
-
method: 'POST',
|
|
25135
|
-
params: res,
|
|
25136
|
-
successMessage: '创建成功!',
|
|
25137
|
-
converter: function converter() {
|
|
25138
|
-
onParentOk();
|
|
25159
|
+
// 把数组处理成文本
|
|
25160
|
+
if (res.inputType === 30) {
|
|
25161
|
+
if (res.defaultValue) {
|
|
25162
|
+
res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
|
|
25163
|
+
}
|
|
25139
25164
|
}
|
|
25140
|
-
|
|
25141
|
-
|
|
25142
|
-
|
|
25143
|
-
|
|
25144
|
-
|
|
25145
|
-
|
|
25146
|
-
params: res,
|
|
25147
|
-
successMessage: '修改成功!',
|
|
25148
|
-
converter: function converter() {
|
|
25149
|
-
onParentOk();
|
|
25165
|
+
res.fieldMapping = res.fieldMapping || '';
|
|
25166
|
+
delete res.formula;
|
|
25167
|
+
delete res.showValue;
|
|
25168
|
+
if (!(mode === 'create')) {
|
|
25169
|
+
_context4.next = 18;
|
|
25170
|
+
break;
|
|
25150
25171
|
}
|
|
25151
|
-
|
|
25152
|
-
|
|
25153
|
-
|
|
25154
|
-
|
|
25172
|
+
request$1({
|
|
25173
|
+
url: "/basic/flow/businessField",
|
|
25174
|
+
method: 'POST',
|
|
25175
|
+
params: res,
|
|
25176
|
+
successMessage: '创建成功!',
|
|
25177
|
+
converter: function converter() {
|
|
25178
|
+
onParentOk();
|
|
25179
|
+
}
|
|
25180
|
+
});
|
|
25181
|
+
return _context4.abrupt("return");
|
|
25182
|
+
case 18:
|
|
25183
|
+
request$1({
|
|
25184
|
+
url: "/basic/flow/businessField/".concat(record.id),
|
|
25185
|
+
method: 'PATCH',
|
|
25186
|
+
params: res,
|
|
25187
|
+
successMessage: '修改成功!',
|
|
25188
|
+
converter: function converter() {
|
|
25189
|
+
onParentOk();
|
|
25190
|
+
}
|
|
25191
|
+
});
|
|
25192
|
+
case 19:
|
|
25193
|
+
case "end":
|
|
25194
|
+
return _context4.stop();
|
|
25195
|
+
}
|
|
25155
25196
|
}
|
|
25156
25197
|
}, _callee4);
|
|
25157
25198
|
}));
|
|
@@ -25173,7 +25214,9 @@ var FieldsSettingsTable = (function (props) {
|
|
|
25173
25214
|
_props$codeProps = props.codeProps,
|
|
25174
25215
|
codeProps = _props$codeProps === void 0 ? '' : _props$codeProps,
|
|
25175
25216
|
moduleType = props.moduleType,
|
|
25176
|
-
moduleRelationId = props.moduleRelationId
|
|
25217
|
+
moduleRelationId = props.moduleRelationId,
|
|
25218
|
+
_props$tableFlag = props.tableFlag,
|
|
25219
|
+
tableFlag = _props$tableFlag === void 0 ? false : _props$tableFlag;
|
|
25177
25220
|
var ref = useRef(null);
|
|
25178
25221
|
var _useState = useState({
|
|
25179
25222
|
visible: false,
|
|
@@ -25262,6 +25305,9 @@ var FieldsSettingsTable = (function (props) {
|
|
|
25262
25305
|
render: function render(_ref2) {
|
|
25263
25306
|
var text = _ref2.text,
|
|
25264
25307
|
record = _ref2.record;
|
|
25308
|
+
if (tableFlag) {
|
|
25309
|
+
return /*#__PURE__*/React.createElement("div", null, " \u5217\u8868\uFF1A", "{\"key\": \"extensionFields,".concat(record.code, "\",\"dataIndex\": \"extensionFields,").concat(record.code, "\",\"title\": \"").concat(record.name, "\"},"));
|
|
25310
|
+
}
|
|
25265
25311
|
if (!codeProps.columns) {
|
|
25266
25312
|
return /*#__PURE__*/React.createElement("div", null, "\u8868\u5355\uFF1A", "{\"name\": \"extensionFields,".concat(record.code, "\",\"label\": \"").concat(record.name, "\"},"));
|
|
25267
25313
|
}
|
|
@@ -25402,6 +25448,13 @@ function convertFileds(fields, falltValue, faltFieldRange, containerName) {
|
|
|
25402
25448
|
var _field$container6;
|
|
25403
25449
|
var targetValue = convertFileds(item, falltValue, faltFieldRange, field === null || field === void 0 ? void 0 : (_field$container6 = field.container) === null || _field$container6 === void 0 ? void 0 : _field$container6.name);
|
|
25404
25450
|
if (targetValue) {
|
|
25451
|
+
if (item.dependency) {
|
|
25452
|
+
targetValue.dependency = {
|
|
25453
|
+
visible: _objectSpread2(_objectSpread2({}, item.dependency.visible), {}, {
|
|
25454
|
+
type: new Function('axios', 'ctx', item.dependency.visible.type).bind(null, axios)
|
|
25455
|
+
})
|
|
25456
|
+
};
|
|
25457
|
+
}
|
|
25405
25458
|
filedsValue.push(targetValue);
|
|
25406
25459
|
}
|
|
25407
25460
|
});
|
|
@@ -25410,6 +25463,14 @@ function convertFileds(fields, falltValue, faltFieldRange, containerName) {
|
|
|
25410
25463
|
if (returnField) {
|
|
25411
25464
|
var _returnField$name;
|
|
25412
25465
|
returnField.label = field === null || field === void 0 ? void 0 : field.label;
|
|
25466
|
+
if (field === null || field === void 0 ? void 0 : field.disabled) {
|
|
25467
|
+
// 字段设置只读属性
|
|
25468
|
+
returnField.field.props.disabled = true;
|
|
25469
|
+
}
|
|
25470
|
+
if (field === null || field === void 0 ? void 0 : field.invisible) {
|
|
25471
|
+
// 字段设置不可见属性
|
|
25472
|
+
returnField.initialVisible = false;
|
|
25473
|
+
}
|
|
25413
25474
|
if (Array.isArray(returnField.name) && ((_returnField$name = returnField.name) === null || _returnField$name === void 0 ? void 0 : _returnField$name.includes("extensionFields"))) {
|
|
25414
25475
|
returnField.notShowLabel = true;
|
|
25415
25476
|
}
|
|
@@ -25439,10 +25500,39 @@ function faltCustomerFieldRange(fileds) {
|
|
|
25439
25500
|
});
|
|
25440
25501
|
return columnsValue;
|
|
25441
25502
|
}
|
|
25503
|
+
//form存在新加container属性分组得情况 组合操作
|
|
25504
|
+
function combineContainer(originFields, currentFields) {
|
|
25505
|
+
var newCurrentFields = _toConsumableArray(originFields);
|
|
25506
|
+
currentFields.map(function (item) {
|
|
25507
|
+
if (!originFields.find(function (i) {
|
|
25508
|
+
var _i$container, _i$container$props, _item$container;
|
|
25509
|
+
return (i === null || i === void 0 ? void 0 : (_i$container = i.container) === null || _i$container === void 0 ? void 0 : (_i$container$props = _i$container.props) === null || _i$container$props === void 0 ? void 0 : _i$container$props.name) == (item === null || item === void 0 ? void 0 : (_item$container = item.container) === null || _item$container === void 0 ? void 0 : _item$container.name);
|
|
25510
|
+
})) {
|
|
25511
|
+
var _item$container2, _item$container3;
|
|
25512
|
+
newCurrentFields = [].concat(_toConsumableArray(newCurrentFields), [{
|
|
25513
|
+
container: {
|
|
25514
|
+
type: 'card',
|
|
25515
|
+
props: {
|
|
25516
|
+
title: item === null || item === void 0 ? void 0 : (_item$container2 = item.container) === null || _item$container2 === void 0 ? void 0 : _item$container2.title,
|
|
25517
|
+
level: 1,
|
|
25518
|
+
id: Math.random(),
|
|
25519
|
+
isWhiteCard: true,
|
|
25520
|
+
bordered: false,
|
|
25521
|
+
name: item === null || item === void 0 ? void 0 : (_item$container3 = item.container) === null || _item$container3 === void 0 ? void 0 : _item$container3.name
|
|
25522
|
+
}
|
|
25523
|
+
},
|
|
25524
|
+
fields: (item === null || item === void 0 ? void 0 : item.fields) || []
|
|
25525
|
+
}]);
|
|
25526
|
+
}
|
|
25527
|
+
});
|
|
25528
|
+
return newCurrentFields;
|
|
25529
|
+
}
|
|
25442
25530
|
function hanleCallbackValue(codeProps, value, customerFields) {
|
|
25531
|
+
var cacheColumns = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
|
|
25443
25532
|
var faltFieldRange = faltCustomerFieldRange(customerFields);
|
|
25533
|
+
// const falltValue = flatFileds({fields: codeProps.fields})
|
|
25444
25534
|
var falltValue = flatFileds({
|
|
25445
|
-
fields: codeProps.fields
|
|
25535
|
+
fields: combineContainer(codeProps.fields, value === null || value === void 0 ? void 0 : value.fields)
|
|
25446
25536
|
});
|
|
25447
25537
|
var newCodeProps = _objectSpread2({}, codeProps);
|
|
25448
25538
|
newCodeProps.fields = convertFileds({
|
|
@@ -25452,7 +25542,10 @@ function hanleCallbackValue(codeProps, value, customerFields) {
|
|
|
25452
25542
|
var faltColumnsValue = faltColumns(codeProps.columns);
|
|
25453
25543
|
newCodeProps.columns = value.columns.map(function (item) {
|
|
25454
25544
|
if (item.isStaticCode) {
|
|
25455
|
-
|
|
25545
|
+
var cacheFieldProperty = cacheColumns.find(function (k) {
|
|
25546
|
+
return (k.key || k.dataIndex) == (item.key || item.dataIndex);
|
|
25547
|
+
});
|
|
25548
|
+
return _objectSpread2(_objectSpread2({}, faltColumnsValue[item.key]), cacheFieldProperty);
|
|
25456
25549
|
} else {
|
|
25457
25550
|
//自定义字段-列字段
|
|
25458
25551
|
if ((item === null || item === void 0 ? void 0 : item.key) && (item === null || item === void 0 ? void 0 : item.key.includes('extensionFields')) && (item === null || item === void 0 ? void 0 : item.key.includes(','))) {
|
|
@@ -25460,10 +25553,26 @@ function hanleCallbackValue(codeProps, value, customerFields) {
|
|
|
25460
25553
|
render: function render(_ref) {
|
|
25461
25554
|
var record = _ref.record;
|
|
25462
25555
|
try {
|
|
25463
|
-
var
|
|
25464
|
-
|
|
25465
|
-
var
|
|
25466
|
-
|
|
25556
|
+
var _record$extensionFiel = record.extensionFields,
|
|
25557
|
+
extensionFields = _record$extensionFiel === void 0 ? {} : _record$extensionFiel;
|
|
25558
|
+
var fieldName1 = item === null || item === void 0 ? void 0 : item.key.split(',')[1]; //兼容没有fieldName的情况
|
|
25559
|
+
var fieldName2 = "".concat(fieldName1, "Name");
|
|
25560
|
+
if (customerFields.length) {
|
|
25561
|
+
var targetField = customerFields.find(function (k) {
|
|
25562
|
+
return k.name.includes(fieldName1);
|
|
25563
|
+
});
|
|
25564
|
+
if (targetField) {
|
|
25565
|
+
var _targetField$initialS = targetField.initialSource,
|
|
25566
|
+
initialSource = _targetField$initialS === void 0 ? [] : _targetField$initialS;
|
|
25567
|
+
if (initialSource.length) {
|
|
25568
|
+
var _initialSource$find;
|
|
25569
|
+
return ((_initialSource$find = initialSource.find(function (d) {
|
|
25570
|
+
return d.value == extensionFields[fieldName1];
|
|
25571
|
+
})) === null || _initialSource$find === void 0 ? void 0 : _initialSource$find.text) || extensionFields[fieldName1];
|
|
25572
|
+
}
|
|
25573
|
+
}
|
|
25574
|
+
}
|
|
25575
|
+
return extensionFields[fieldName2] || extensionFields[fieldName1] || '';
|
|
25467
25576
|
} catch (e) {
|
|
25468
25577
|
console.log('e', e);
|
|
25469
25578
|
}
|
|
@@ -25496,7 +25605,10 @@ var JsonQueryTable = /*#__PURE__*/React.memo(function (props) {
|
|
|
25496
25605
|
codeProps = props.codeProps,
|
|
25497
25606
|
customerFields = props.customerFields,
|
|
25498
25607
|
initialSetting = props.initialSetting,
|
|
25499
|
-
pageType = props.pageType
|
|
25608
|
+
pageType = props.pageType,
|
|
25609
|
+
_props$detailTablesSe = props.detailTablesSetting,
|
|
25610
|
+
detailTablesSetting = _props$detailTablesSe === void 0 ? [] : _props$detailTablesSe,
|
|
25611
|
+
saveTableCallBack = props.saveTableCallBack;
|
|
25500
25612
|
var codeFilter = {};
|
|
25501
25613
|
if (codeProps.columns) {
|
|
25502
25614
|
// table
|
|
@@ -25520,7 +25632,6 @@ var JsonQueryTable = /*#__PURE__*/React.memo(function (props) {
|
|
|
25520
25632
|
fields: codeProps.fields
|
|
25521
25633
|
}).fields;
|
|
25522
25634
|
}
|
|
25523
|
-
console.log('codeFilter', codeFilter);
|
|
25524
25635
|
var styleRef = useRef(null);
|
|
25525
25636
|
var _useState = useState(false),
|
|
25526
25637
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -25542,6 +25653,18 @@ var JsonQueryTable = /*#__PURE__*/React.memo(function (props) {
|
|
|
25542
25653
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
25543
25654
|
moduleParams = _useState10[0],
|
|
25544
25655
|
setModuleParams = _useState10[1];
|
|
25656
|
+
var _useState11 = useState('main'),
|
|
25657
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
25658
|
+
activeKey = _useState12[0],
|
|
25659
|
+
setActiveKey = _useState12[1]; //默认详情页配置
|
|
25660
|
+
var _useState13 = useState({}),
|
|
25661
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
25662
|
+
tablesConfigParams = _useState14[0],
|
|
25663
|
+
setTablesConfigParams = _useState14[1];
|
|
25664
|
+
var _useState15 = useState([]),
|
|
25665
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
25666
|
+
tableJsonEditorValsArr = _useState16[0],
|
|
25667
|
+
setTableJsonEditorValsArr = _useState16[1];
|
|
25545
25668
|
useEffect(function () {
|
|
25546
25669
|
Promise.all([axios.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
|
|
25547
25670
|
var _ref3 = _slicedToArray(_ref2, 1),
|
|
@@ -25565,6 +25688,73 @@ var JsonQueryTable = /*#__PURE__*/React.memo(function (props) {
|
|
|
25565
25688
|
}
|
|
25566
25689
|
});
|
|
25567
25690
|
}, []);
|
|
25691
|
+
useEffect(function () {
|
|
25692
|
+
//明细表的配置数据
|
|
25693
|
+
var axiosArr = detailTablesSetting.map(function (item) {
|
|
25694
|
+
return axios.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(item.tableCode));
|
|
25695
|
+
});
|
|
25696
|
+
Promise.all(axiosArr).then(function (_ref5) {
|
|
25697
|
+
var _ref6 = _toArray(_ref5),
|
|
25698
|
+
resArr = _ref6.slice(0);
|
|
25699
|
+
var configParams = {};
|
|
25700
|
+
detailTablesSetting.map(function (item, index) {
|
|
25701
|
+
var _resArr$index;
|
|
25702
|
+
var _ref7 = ((_resArr$index = resArr[index]) === null || _resArr$index === void 0 ? void 0 : _resArr$index.data) || {},
|
|
25703
|
+
code = _ref7.code,
|
|
25704
|
+
data = _ref7.data;
|
|
25705
|
+
if (data) {
|
|
25706
|
+
var businessType = data.businessType,
|
|
25707
|
+
fieldGroup = data.code,
|
|
25708
|
+
moduleType = data.moduleType;
|
|
25709
|
+
configParams[item.tableCode] = {
|
|
25710
|
+
businessType: businessType,
|
|
25711
|
+
fieldGroup: fieldGroup,
|
|
25712
|
+
moduleType: moduleType,
|
|
25713
|
+
tableFlag: true
|
|
25714
|
+
};
|
|
25715
|
+
}
|
|
25716
|
+
});
|
|
25717
|
+
setTablesConfigParams(_objectSpread2({}, configParams));
|
|
25718
|
+
});
|
|
25719
|
+
var detailTableCodeFilter = detailTablesSetting.map(function (item) {
|
|
25720
|
+
if ((item === null || item === void 0 ? void 0 : item.initialSetting) && (item === null || item === void 0 ? void 0 : item.initialSetting.length)) {
|
|
25721
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
25722
|
+
columns: item === null || item === void 0 ? void 0 : item.initialSetting
|
|
25723
|
+
});
|
|
25724
|
+
}
|
|
25725
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
25726
|
+
columns: item === null || item === void 0 ? void 0 : item.columns.map(function (childItem) {
|
|
25727
|
+
return {
|
|
25728
|
+
key: childItem.key || childItem.dataIndex,
|
|
25729
|
+
dataIndex: childItem.dataIndex || childItem.key,
|
|
25730
|
+
isStaticCode: true,
|
|
25731
|
+
title: childItem.title
|
|
25732
|
+
};
|
|
25733
|
+
})
|
|
25734
|
+
});
|
|
25735
|
+
});
|
|
25736
|
+
setTableJsonEditorValsArr(_toConsumableArray(detailTableCodeFilter));
|
|
25737
|
+
var lastRes = detailTableCodeFilter.map(function (item) {
|
|
25738
|
+
if ((item === null || item === void 0 ? void 0 : item.initialSetting) && (item === null || item === void 0 ? void 0 : item.initialSetting.length)) {
|
|
25739
|
+
var _codeProps = {
|
|
25740
|
+
fields: [],
|
|
25741
|
+
columns: item === null || item === void 0 ? void 0 : item.columns
|
|
25742
|
+
};
|
|
25743
|
+
var newValue = {
|
|
25744
|
+
fields: [],
|
|
25745
|
+
columns: item.initialSetting
|
|
25746
|
+
};
|
|
25747
|
+
var result = hanleCallbackValue(_codeProps, newValue, item === null || item === void 0 ? void 0 : item.customerFields, item === null || item === void 0 ? void 0 : item.cacheColumns);
|
|
25748
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
25749
|
+
columns: result === null || result === void 0 ? void 0 : result.columns
|
|
25750
|
+
});
|
|
25751
|
+
}
|
|
25752
|
+
return item;
|
|
25753
|
+
});
|
|
25754
|
+
if (lastRes.length) {
|
|
25755
|
+
saveTableCallBack(lastRes, false);
|
|
25756
|
+
}
|
|
25757
|
+
}, [detailTablesSetting.length]);
|
|
25568
25758
|
var onClickRun = function onClickRun(value, isSave) {
|
|
25569
25759
|
setJsonEditorVal(value);
|
|
25570
25760
|
try {
|
|
@@ -25574,6 +25764,40 @@ var JsonQueryTable = /*#__PURE__*/React.memo(function (props) {
|
|
|
25574
25764
|
message$1.error(e);
|
|
25575
25765
|
}
|
|
25576
25766
|
};
|
|
25767
|
+
//明细表保存
|
|
25768
|
+
var onClickRunDetailTables = function onClickRunDetailTables(value, isSave, tableCode, tableSouce) {
|
|
25769
|
+
var targetCode = tableCode || activeKey;
|
|
25770
|
+
var targetTableSource = tableSouce || tableJsonEditorValsArr;
|
|
25771
|
+
var newArr = targetTableSource.map(function (item) {
|
|
25772
|
+
if (item.tableCode == targetCode) {
|
|
25773
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
25774
|
+
columns: value
|
|
25775
|
+
});
|
|
25776
|
+
}
|
|
25777
|
+
return item;
|
|
25778
|
+
});
|
|
25779
|
+
setTableJsonEditorValsArr(_toConsumableArray(newArr));
|
|
25780
|
+
try {
|
|
25781
|
+
var target = targetTableSource.find(function (item) {
|
|
25782
|
+
return item.tableCode == targetCode;
|
|
25783
|
+
});
|
|
25784
|
+
var _codeProps2 = {
|
|
25785
|
+
fields: [],
|
|
25786
|
+
columns: target === null || target === void 0 ? void 0 : target.columns
|
|
25787
|
+
};
|
|
25788
|
+
var newValue = {
|
|
25789
|
+
fields: [],
|
|
25790
|
+
columns: value
|
|
25791
|
+
};
|
|
25792
|
+
var result = hanleCallbackValue(_codeProps2, newValue, target === null || target === void 0 ? void 0 : target.customerFields, target === null || target === void 0 ? void 0 : target.cacheColumns);
|
|
25793
|
+
saveTableCallBack({
|
|
25794
|
+
columns: result.columns,
|
|
25795
|
+
tableCode: targetCode
|
|
25796
|
+
}, isSave, value);
|
|
25797
|
+
} catch (e) {
|
|
25798
|
+
message$1.error(e);
|
|
25799
|
+
}
|
|
25800
|
+
};
|
|
25577
25801
|
React.useEffect(function () {
|
|
25578
25802
|
localStorage.setItem('jsonEditorVal', JSON.stringify(jsonEditorVal || {}));
|
|
25579
25803
|
}, [jsonEditorVal]);
|
|
@@ -25590,25 +25814,97 @@ var JsonQueryTable = /*#__PURE__*/React.memo(function (props) {
|
|
|
25590
25814
|
});
|
|
25591
25815
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Drawer, {
|
|
25592
25816
|
visible: visible,
|
|
25593
|
-
width:
|
|
25817
|
+
width: 1400,
|
|
25594
25818
|
onClose: function onClose() {
|
|
25595
25819
|
return setVisible(false);
|
|
25596
25820
|
},
|
|
25597
25821
|
className: 'customFieldsDrawer'
|
|
25822
|
+
}, detailTablesSetting.length == 0 && /*#__PURE__*/React.createElement("div", {
|
|
25823
|
+
style: {
|
|
25824
|
+
display: 'flex'
|
|
25825
|
+
}
|
|
25826
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
25827
|
+
style: {
|
|
25828
|
+
flex: 1,
|
|
25829
|
+
width: 500
|
|
25830
|
+
}
|
|
25831
|
+
}, isEmpty(moduleParams) ? /*#__PURE__*/React.createElement("div", {
|
|
25832
|
+
style: {
|
|
25833
|
+
padding: "10px 0",
|
|
25834
|
+
fontSize: "16px",
|
|
25835
|
+
fontWeight: "bolder"
|
|
25836
|
+
}
|
|
25837
|
+
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61") : /*#__PURE__*/React.createElement(FieldsSettingsTable, _objectSpread2({}, tableParams))), /*#__PURE__*/React.createElement("div", {
|
|
25838
|
+
style: {
|
|
25839
|
+
flex: 1
|
|
25840
|
+
}
|
|
25841
|
+
}, /*#__PURE__*/React.createElement(Editor, {
|
|
25842
|
+
type: "table",
|
|
25843
|
+
onRun: onClickRun,
|
|
25844
|
+
value: jsonEditorVal,
|
|
25845
|
+
shallowHeight: height
|
|
25846
|
+
}))), detailTablesSetting.length > 0 && /*#__PURE__*/React.createElement(Tabs, {
|
|
25847
|
+
defaultActiveKey: activeKey,
|
|
25848
|
+
onChange: function onChange(v) {
|
|
25849
|
+
return setActiveKey(v);
|
|
25850
|
+
}
|
|
25851
|
+
}, /*#__PURE__*/React.createElement(Tabs.TabPane, {
|
|
25852
|
+
tab: "\u8BE6\u60C5\u9875\u914D\u7F6E",
|
|
25853
|
+
key: "main"
|
|
25854
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
25855
|
+
style: {
|
|
25856
|
+
display: 'flex'
|
|
25857
|
+
}
|
|
25598
25858
|
}, /*#__PURE__*/React.createElement("div", {
|
|
25599
|
-
|
|
25600
|
-
|
|
25859
|
+
style: {
|
|
25860
|
+
flex: 1,
|
|
25861
|
+
width: 500
|
|
25862
|
+
}
|
|
25863
|
+
}, isEmpty(moduleParams) ? /*#__PURE__*/React.createElement("div", {
|
|
25601
25864
|
style: {
|
|
25602
25865
|
padding: "10px 0",
|
|
25603
25866
|
fontSize: "16px",
|
|
25604
25867
|
fontWeight: "bolder"
|
|
25605
25868
|
}
|
|
25606
|
-
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61") : /*#__PURE__*/React.createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)), /*#__PURE__*/React.createElement(
|
|
25869
|
+
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61") : /*#__PURE__*/React.createElement(FieldsSettingsTable, _objectSpread2({}, tableParams))), /*#__PURE__*/React.createElement("div", {
|
|
25870
|
+
style: {
|
|
25871
|
+
flex: 1
|
|
25872
|
+
}
|
|
25873
|
+
}, /*#__PURE__*/React.createElement(Editor, {
|
|
25607
25874
|
type: "table",
|
|
25608
25875
|
onRun: onClickRun,
|
|
25609
25876
|
value: jsonEditorVal,
|
|
25610
25877
|
shallowHeight: height
|
|
25611
|
-
})),
|
|
25878
|
+
})))), tableJsonEditorValsArr.map(function (k) {
|
|
25879
|
+
return /*#__PURE__*/React.createElement(Tabs.TabPane, {
|
|
25880
|
+
tab: k.title,
|
|
25881
|
+
key: k.tableCode
|
|
25882
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
25883
|
+
style: {
|
|
25884
|
+
display: 'flex'
|
|
25885
|
+
}
|
|
25886
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
25887
|
+
style: {
|
|
25888
|
+
flex: 1,
|
|
25889
|
+
width: 500
|
|
25890
|
+
}
|
|
25891
|
+
}, !tablesConfigParams[k.tableCode] ? /*#__PURE__*/React.createElement("div", {
|
|
25892
|
+
style: {
|
|
25893
|
+
padding: "10px 0",
|
|
25894
|
+
fontSize: "16px",
|
|
25895
|
+
fontWeight: "bolder"
|
|
25896
|
+
}
|
|
25897
|
+
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61") : /*#__PURE__*/React.createElement(FieldsSettingsTable, _objectSpread2({}, tablesConfigParams[k.tableCode]))), /*#__PURE__*/React.createElement("div", {
|
|
25898
|
+
style: {
|
|
25899
|
+
flex: 1
|
|
25900
|
+
}
|
|
25901
|
+
}, /*#__PURE__*/React.createElement(Editor, {
|
|
25902
|
+
type: "table",
|
|
25903
|
+
onRun: onClickRunDetailTables,
|
|
25904
|
+
value: k.columns,
|
|
25905
|
+
shallowHeight: height
|
|
25906
|
+
}))));
|
|
25907
|
+
}))), !visible && isAdmin() && /*#__PURE__*/React.createElement(ConfigButton, {
|
|
25612
25908
|
type: 'primary',
|
|
25613
25909
|
onClick: function onClick() {
|
|
25614
25910
|
return setVisible(true);
|
|
@@ -25681,26 +25977,28 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
25681
25977
|
useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
25682
25978
|
var resData, data;
|
|
25683
25979
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
25684
|
-
while (1)
|
|
25685
|
-
|
|
25686
|
-
|
|
25687
|
-
|
|
25688
|
-
|
|
25689
|
-
|
|
25690
|
-
|
|
25691
|
-
|
|
25692
|
-
|
|
25693
|
-
|
|
25694
|
-
|
|
25695
|
-
|
|
25696
|
-
|
|
25697
|
-
|
|
25698
|
-
|
|
25699
|
-
|
|
25700
|
-
|
|
25701
|
-
|
|
25702
|
-
|
|
25703
|
-
|
|
25980
|
+
while (1) {
|
|
25981
|
+
switch (_context.prev = _context.next) {
|
|
25982
|
+
case 0:
|
|
25983
|
+
if (!(!source && initRequestSource)) {
|
|
25984
|
+
_context.next = 6;
|
|
25985
|
+
break;
|
|
25986
|
+
}
|
|
25987
|
+
_context.next = 3;
|
|
25988
|
+
return initRequestSource();
|
|
25989
|
+
case 3:
|
|
25990
|
+
resData = _context.sent;
|
|
25991
|
+
data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
|
|
25992
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
25993
|
+
label: item.text,
|
|
25994
|
+
isLeaf: false
|
|
25995
|
+
});
|
|
25996
|
+
})) || [];
|
|
25997
|
+
setHandSource(data);
|
|
25998
|
+
case 6:
|
|
25999
|
+
case "end":
|
|
26000
|
+
return _context.stop();
|
|
26001
|
+
}
|
|
25704
26002
|
}
|
|
25705
26003
|
}, _callee);
|
|
25706
26004
|
})), []);
|
|
@@ -25832,18 +26130,20 @@ function getRegularThresholdRange(_x) {
|
|
|
25832
26130
|
function _getRegularThresholdRange() {
|
|
25833
26131
|
_getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
25834
26132
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
25835
|
-
while (1)
|
|
25836
|
-
|
|
25837
|
-
|
|
25838
|
-
|
|
25839
|
-
|
|
25840
|
-
|
|
25841
|
-
|
|
25842
|
-
|
|
25843
|
-
|
|
25844
|
-
|
|
25845
|
-
|
|
25846
|
-
|
|
26133
|
+
while (1) {
|
|
26134
|
+
switch (_context.prev = _context.next) {
|
|
26135
|
+
case 0:
|
|
26136
|
+
return _context.abrupt("return", axios({
|
|
26137
|
+
url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
|
|
26138
|
+
method: 'POST',
|
|
26139
|
+
data: _objectSpread2(_objectSpread2({}, params), {}, {
|
|
26140
|
+
queryIdentify: undefined
|
|
26141
|
+
})
|
|
26142
|
+
}));
|
|
26143
|
+
case 1:
|
|
26144
|
+
case "end":
|
|
26145
|
+
return _context.stop();
|
|
26146
|
+
}
|
|
25847
26147
|
}
|
|
25848
26148
|
}, _callee);
|
|
25849
26149
|
}));
|
|
@@ -25982,136 +26282,137 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
25982
26282
|
_this.getRegularThresholdRange(queryIdentify, propertyCode, queryIdentifyType);
|
|
25983
26283
|
});
|
|
25984
26284
|
};
|
|
25985
|
-
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
25986
26285
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
25987
26286
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
25988
26287
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
25989
26288
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
25990
|
-
while (1)
|
|
25991
|
-
|
|
25992
|
-
|
|
25993
|
-
|
|
25994
|
-
|
|
25995
|
-
|
|
25996
|
-
|
|
25997
|
-
|
|
25998
|
-
|
|
25999
|
-
|
|
26000
|
-
|
|
26001
|
-
|
|
26002
|
-
|
|
26003
|
-
|
|
26004
|
-
|
|
26005
|
-
|
|
26006
|
-
|
|
26007
|
-
|
|
26008
|
-
|
|
26009
|
-
|
|
26010
|
-
|
|
26011
|
-
|
|
26012
|
-
|
|
26013
|
-
|
|
26014
|
-
|
|
26015
|
-
|
|
26016
|
-
|
|
26017
|
-
|
|
26018
|
-
|
|
26019
|
-
|
|
26020
|
-
|
|
26021
|
-
|
|
26022
|
-
|
|
26023
|
-
|
|
26024
|
-
|
|
26025
|
-
|
|
26026
|
-
|
|
26027
|
-
|
|
26028
|
-
|
|
26029
|
-
|
|
26030
|
-
|
|
26031
|
-
|
|
26032
|
-
|
|
26033
|
-
|
|
26034
|
-
|
|
26035
|
-
|
|
26036
|
-
|
|
26037
|
-
|
|
26038
|
-
|
|
26039
|
-
|
|
26040
|
-
|
|
26041
|
-
|
|
26042
|
-
|
|
26043
|
-
|
|
26044
|
-
|
|
26045
|
-
|
|
26046
|
-
|
|
26047
|
-
|
|
26048
|
-
|
|
26049
|
-
|
|
26050
|
-
|
|
26051
|
-
|
|
26052
|
-
|
|
26053
|
-
|
|
26054
|
-
|
|
26055
|
-
|
|
26056
|
-
|
|
26057
|
-
|
|
26058
|
-
|
|
26059
|
-
|
|
26060
|
-
|
|
26061
|
-
|
|
26062
|
-
|
|
26063
|
-
|
|
26064
|
-
|
|
26065
|
-
|
|
26066
|
-
|
|
26067
|
-
|
|
26068
|
-
|
|
26069
|
-
|
|
26289
|
+
while (1) {
|
|
26290
|
+
switch (_context.prev = _context.next) {
|
|
26291
|
+
case 0:
|
|
26292
|
+
if (queryIdentify) {
|
|
26293
|
+
_context.next = 2;
|
|
26294
|
+
break;
|
|
26295
|
+
}
|
|
26296
|
+
return _context.abrupt("return");
|
|
26297
|
+
case 2:
|
|
26298
|
+
thresholdQuery = _this.state.thresholdQuery;
|
|
26299
|
+
extraRequestUrl = '';
|
|
26300
|
+
querParams = setParams(propertyCode, thresholdQuery);
|
|
26301
|
+
if (!queryIdentityInfo.find(function (item) {
|
|
26302
|
+
return item.identity == propertyCode;
|
|
26303
|
+
})) {
|
|
26304
|
+
_context.next = 10;
|
|
26305
|
+
break;
|
|
26306
|
+
}
|
|
26307
|
+
//判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
|
|
26308
|
+
needQueryList = queryIdentityInfo.find(function (item) {
|
|
26309
|
+
return item.identity == propertyCode;
|
|
26310
|
+
}).queryParam.filter(function (item) {
|
|
26311
|
+
return item.isRequired;
|
|
26312
|
+
}).map(function (item) {
|
|
26313
|
+
return item.queryKey;
|
|
26314
|
+
});
|
|
26315
|
+
if (!needQueryList.some(function (item) {
|
|
26316
|
+
return !querParams[item] || !querParams[item].length;
|
|
26317
|
+
})) {
|
|
26318
|
+
_context.next = 9;
|
|
26319
|
+
break;
|
|
26320
|
+
}
|
|
26321
|
+
return _context.abrupt("return");
|
|
26322
|
+
case 9:
|
|
26323
|
+
extraRequestUrl = queryIdentityInfo.find(function (item) {
|
|
26324
|
+
return item.identity == propertyCode;
|
|
26325
|
+
}).requestUrl || '';
|
|
26326
|
+
case 10:
|
|
26327
|
+
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
26328
|
+
extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
|
|
26329
|
+
querParams = {
|
|
26330
|
+
dictCode: queryIdentify
|
|
26331
|
+
};
|
|
26332
|
+
} else if (queryIdentifyType === 'dynamicDictCodeIdentify') {
|
|
26333
|
+
extraRequestUrl = "dictDynamicItem/getDynamicData/".concat(queryIdentify); // 字典接口
|
|
26334
|
+
// querParams = { dictCode: queryIdentify }
|
|
26335
|
+
}
|
|
26336
|
+
if (!extraRequestUrl) {
|
|
26337
|
+
_context.next = 16;
|
|
26338
|
+
break;
|
|
26339
|
+
}
|
|
26340
|
+
if (queryIdentify == 'maintain_area_code') {
|
|
26341
|
+
extraRequestUrl = "/basic/".concat(extraRequestUrl).concat(querParams.memberCardCode, "?").concat(stringify(querParams));
|
|
26342
|
+
} else if (queryIdentifyType == 'dictCodeIdentify') {
|
|
26343
|
+
extraRequestUrl = "/basic/".concat(extraRequestUrl, "?").concat(stringify(querParams));
|
|
26344
|
+
} else if (queryIdentifyType == 'dynamicDictCodeIdentify') {
|
|
26345
|
+
extraRequestUrl = "/basic/".concat(extraRequestUrl);
|
|
26346
|
+
}
|
|
26347
|
+
request$1({
|
|
26348
|
+
url: extraRequestUrl,
|
|
26349
|
+
method: 'get',
|
|
26350
|
+
converter: function converter(res) {
|
|
26351
|
+
if (handleError(res)) {
|
|
26352
|
+
var _handleData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
26353
|
+
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
26354
|
+
var _handleData2;
|
|
26355
|
+
_handleData = ((_handleData2 = _handleData) === null || _handleData2 === void 0 ? void 0 : _handleData2.length) ? _handleData.map(function (i) {
|
|
26356
|
+
return {
|
|
26357
|
+
code: i.dictItemCode,
|
|
26358
|
+
name: i.dictItemName
|
|
26359
|
+
};
|
|
26360
|
+
}) : [];
|
|
26361
|
+
}
|
|
26362
|
+
if (queryIdentifyType === 'dynamicDictCodeIdentify') {
|
|
26363
|
+
var _handleData3;
|
|
26364
|
+
_handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
|
|
26365
|
+
return {
|
|
26366
|
+
code: i.code.toString(),
|
|
26367
|
+
name: i.name
|
|
26368
|
+
};
|
|
26369
|
+
}) : [];
|
|
26370
|
+
}
|
|
26371
|
+
_this.setState({
|
|
26372
|
+
thresholdList: _handleData
|
|
26373
|
+
});
|
|
26070
26374
|
}
|
|
26071
|
-
|
|
26072
|
-
thresholdList: _handleData
|
|
26073
|
-
});
|
|
26375
|
+
return handleData;
|
|
26074
26376
|
}
|
|
26075
|
-
|
|
26076
|
-
|
|
26077
|
-
});
|
|
26078
|
-
_context.next = 29;
|
|
26079
|
-
break;
|
|
26080
|
-
case 16:
|
|
26081
|
-
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
26082
|
-
_context.next = 20;
|
|
26377
|
+
});
|
|
26378
|
+
_context.next = 29;
|
|
26083
26379
|
break;
|
|
26084
|
-
|
|
26085
|
-
|
|
26086
|
-
|
|
26087
|
-
|
|
26088
|
-
|
|
26089
|
-
|
|
26090
|
-
|
|
26091
|
-
|
|
26092
|
-
_context.next =
|
|
26380
|
+
case 16:
|
|
26381
|
+
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
26382
|
+
_context.next = 20;
|
|
26383
|
+
break;
|
|
26384
|
+
}
|
|
26385
|
+
_this.setState({
|
|
26386
|
+
thresholdList: queryIdentify
|
|
26387
|
+
});
|
|
26388
|
+
_context.next = 29;
|
|
26093
26389
|
break;
|
|
26094
|
-
|
|
26095
|
-
|
|
26096
|
-
|
|
26097
|
-
|
|
26098
|
-
|
|
26099
|
-
|
|
26100
|
-
break;
|
|
26101
|
-
case 24:
|
|
26102
|
-
querParams.queryIdentify = queryIdentify;
|
|
26103
|
-
_context.next = 27;
|
|
26104
|
-
return getRegularThresholdRange(querParams);
|
|
26105
|
-
case 27:
|
|
26106
|
-
res = _context.sent;
|
|
26107
|
-
if (handleError(res)) {
|
|
26390
|
+
case 20:
|
|
26391
|
+
if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
|
|
26392
|
+
_context.next = 24;
|
|
26393
|
+
break;
|
|
26394
|
+
}
|
|
26395
|
+
// TODO待处理
|
|
26108
26396
|
_this.setState({
|
|
26109
|
-
thresholdList:
|
|
26397
|
+
thresholdList: []
|
|
26110
26398
|
});
|
|
26111
|
-
|
|
26112
|
-
|
|
26113
|
-
|
|
26114
|
-
|
|
26399
|
+
_context.next = 29;
|
|
26400
|
+
break;
|
|
26401
|
+
case 24:
|
|
26402
|
+
querParams.queryIdentify = queryIdentify;
|
|
26403
|
+
_context.next = 27;
|
|
26404
|
+
return getRegularThresholdRange(querParams);
|
|
26405
|
+
case 27:
|
|
26406
|
+
res = _context.sent;
|
|
26407
|
+
if (handleError(res)) {
|
|
26408
|
+
_this.setState({
|
|
26409
|
+
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
26410
|
+
});
|
|
26411
|
+
}
|
|
26412
|
+
case 29:
|
|
26413
|
+
case "end":
|
|
26414
|
+
return _context.stop();
|
|
26415
|
+
}
|
|
26115
26416
|
}
|
|
26116
26417
|
}, _callee);
|
|
26117
26418
|
}));
|
|
@@ -26870,30 +27171,32 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26870
27171
|
notChangeOnSelect: true,
|
|
26871
27172
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
26872
27173
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
26873
|
-
while (1)
|
|
26874
|
-
|
|
26875
|
-
|
|
26876
|
-
|
|
26877
|
-
|
|
26878
|
-
|
|
26879
|
-
|
|
26880
|
-
|
|
26881
|
-
|
|
26882
|
-
|
|
26883
|
-
|
|
26884
|
-
|
|
26885
|
-
|
|
26886
|
-
|
|
26887
|
-
|
|
26888
|
-
|
|
26889
|
-
|
|
26890
|
-
|
|
26891
|
-
|
|
26892
|
-
|
|
26893
|
-
|
|
26894
|
-
|
|
26895
|
-
|
|
26896
|
-
|
|
27174
|
+
while (1) {
|
|
27175
|
+
switch (_context2.prev = _context2.next) {
|
|
27176
|
+
case 0:
|
|
27177
|
+
_context2.next = 2;
|
|
27178
|
+
return request$1({
|
|
27179
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
27180
|
+
method: 'get',
|
|
27181
|
+
converter: function converter(_ref3) {
|
|
27182
|
+
var data = _ref3.data;
|
|
27183
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27184
|
+
return {
|
|
27185
|
+
text: item.name,
|
|
27186
|
+
value: item.id,
|
|
27187
|
+
level: item.level,
|
|
27188
|
+
id: item.id
|
|
27189
|
+
};
|
|
27190
|
+
}) : [];
|
|
27191
|
+
return handleData;
|
|
27192
|
+
}
|
|
27193
|
+
});
|
|
27194
|
+
case 2:
|
|
27195
|
+
return _context2.abrupt("return", _context2.sent);
|
|
27196
|
+
case 3:
|
|
27197
|
+
case "end":
|
|
27198
|
+
return _context2.stop();
|
|
27199
|
+
}
|
|
26897
27200
|
}
|
|
26898
27201
|
}, _callee2);
|
|
26899
27202
|
})),
|
|
@@ -26919,30 +27222,32 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26919
27222
|
notChangeOnSelect: true,
|
|
26920
27223
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
26921
27224
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
26922
|
-
while (1)
|
|
26923
|
-
|
|
26924
|
-
|
|
26925
|
-
|
|
26926
|
-
|
|
26927
|
-
|
|
26928
|
-
|
|
26929
|
-
|
|
26930
|
-
|
|
26931
|
-
|
|
26932
|
-
|
|
26933
|
-
|
|
26934
|
-
|
|
26935
|
-
|
|
26936
|
-
|
|
26937
|
-
|
|
26938
|
-
|
|
26939
|
-
|
|
26940
|
-
|
|
26941
|
-
|
|
26942
|
-
|
|
26943
|
-
|
|
26944
|
-
|
|
26945
|
-
|
|
27225
|
+
while (1) {
|
|
27226
|
+
switch (_context3.prev = _context3.next) {
|
|
27227
|
+
case 0:
|
|
27228
|
+
_context3.next = 2;
|
|
27229
|
+
return request$1({
|
|
27230
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
27231
|
+
method: 'get',
|
|
27232
|
+
converter: function converter(_ref5) {
|
|
27233
|
+
var data = _ref5.data;
|
|
27234
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27235
|
+
return {
|
|
27236
|
+
text: item.name,
|
|
27237
|
+
value: item.id,
|
|
27238
|
+
level: item.level,
|
|
27239
|
+
id: item.id
|
|
27240
|
+
};
|
|
27241
|
+
}) : [];
|
|
27242
|
+
return handleData;
|
|
27243
|
+
}
|
|
27244
|
+
});
|
|
27245
|
+
case 2:
|
|
27246
|
+
return _context3.abrupt("return", _context3.sent);
|
|
27247
|
+
case 3:
|
|
27248
|
+
case "end":
|
|
27249
|
+
return _context3.stop();
|
|
27250
|
+
}
|
|
26946
27251
|
}
|
|
26947
27252
|
}, _callee3);
|
|
26948
27253
|
})),
|
|
@@ -26970,30 +27275,32 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26970
27275
|
notChangeOnSelect: true,
|
|
26971
27276
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
26972
27277
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
26973
|
-
while (1)
|
|
26974
|
-
|
|
26975
|
-
|
|
26976
|
-
|
|
26977
|
-
|
|
26978
|
-
|
|
26979
|
-
|
|
26980
|
-
|
|
26981
|
-
|
|
26982
|
-
|
|
26983
|
-
|
|
26984
|
-
|
|
26985
|
-
|
|
26986
|
-
|
|
26987
|
-
|
|
26988
|
-
|
|
26989
|
-
|
|
26990
|
-
|
|
26991
|
-
|
|
26992
|
-
|
|
26993
|
-
|
|
26994
|
-
|
|
26995
|
-
|
|
26996
|
-
|
|
27278
|
+
while (1) {
|
|
27279
|
+
switch (_context4.prev = _context4.next) {
|
|
27280
|
+
case 0:
|
|
27281
|
+
_context4.next = 2;
|
|
27282
|
+
return request$1({
|
|
27283
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
27284
|
+
method: 'get',
|
|
27285
|
+
converter: function converter(_ref7) {
|
|
27286
|
+
var data = _ref7.data;
|
|
27287
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27288
|
+
return {
|
|
27289
|
+
text: item.name,
|
|
27290
|
+
value: item.id,
|
|
27291
|
+
level: item.level,
|
|
27292
|
+
id: item.id
|
|
27293
|
+
};
|
|
27294
|
+
}) : [];
|
|
27295
|
+
return handleData;
|
|
27296
|
+
}
|
|
27297
|
+
});
|
|
27298
|
+
case 2:
|
|
27299
|
+
return _context4.abrupt("return", _context4.sent);
|
|
27300
|
+
case 3:
|
|
27301
|
+
case "end":
|
|
27302
|
+
return _context4.stop();
|
|
27303
|
+
}
|
|
26997
27304
|
}
|
|
26998
27305
|
}, _callee4);
|
|
26999
27306
|
})),
|
|
@@ -28060,6 +28367,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
28060
28367
|
});
|
|
28061
28368
|
}
|
|
28062
28369
|
}
|
|
28370
|
+
|
|
28371
|
+
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
28063
28372
|
}, {
|
|
28064
28373
|
key: "render",
|
|
28065
28374
|
value: function render() {
|
|
@@ -28890,7 +29199,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
28890
29199
|
callBack(ruleClassData);
|
|
28891
29200
|
});
|
|
28892
29201
|
};
|
|
28893
|
-
// 树结构 转化成 平行树 (递归函数)
|
|
28894
29202
|
_this.coverToParallel = function (treeData, result) {
|
|
28895
29203
|
treeData.forEach(function (el) {
|
|
28896
29204
|
result.push(el);
|
|
@@ -29144,7 +29452,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29144
29452
|
callBack(ruleClassData);
|
|
29145
29453
|
});
|
|
29146
29454
|
};
|
|
29147
|
-
// 场景需要返回值2022.11.15
|
|
29148
29455
|
_this.renderResItem = function (itemDetail, parentDetail, ruleReturnConfig, disabled, boxStyle) {
|
|
29149
29456
|
var _ruleReturnConfig$rig;
|
|
29150
29457
|
var isShowResponse = itemDetail.response['enable'];
|
|
@@ -29442,30 +29749,32 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29442
29749
|
notChangeOnSelect: true,
|
|
29443
29750
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29444
29751
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29445
|
-
while (1)
|
|
29446
|
-
|
|
29447
|
-
|
|
29448
|
-
|
|
29449
|
-
|
|
29450
|
-
|
|
29451
|
-
|
|
29452
|
-
|
|
29453
|
-
|
|
29454
|
-
|
|
29455
|
-
|
|
29456
|
-
|
|
29457
|
-
|
|
29458
|
-
|
|
29459
|
-
|
|
29460
|
-
|
|
29461
|
-
|
|
29462
|
-
|
|
29463
|
-
|
|
29464
|
-
|
|
29465
|
-
|
|
29466
|
-
|
|
29467
|
-
|
|
29468
|
-
|
|
29752
|
+
while (1) {
|
|
29753
|
+
switch (_context.prev = _context.next) {
|
|
29754
|
+
case 0:
|
|
29755
|
+
_context.next = 2;
|
|
29756
|
+
return request$1({
|
|
29757
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
29758
|
+
method: 'get',
|
|
29759
|
+
converter: function converter(_ref2) {
|
|
29760
|
+
var data = _ref2.data;
|
|
29761
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
29762
|
+
return {
|
|
29763
|
+
text: item.name,
|
|
29764
|
+
value: item.id,
|
|
29765
|
+
level: item.level,
|
|
29766
|
+
id: item.id
|
|
29767
|
+
};
|
|
29768
|
+
}) : [];
|
|
29769
|
+
return handleData;
|
|
29770
|
+
}
|
|
29771
|
+
});
|
|
29772
|
+
case 2:
|
|
29773
|
+
return _context.abrupt("return", _context.sent);
|
|
29774
|
+
case 3:
|
|
29775
|
+
case "end":
|
|
29776
|
+
return _context.stop();
|
|
29777
|
+
}
|
|
29469
29778
|
}
|
|
29470
29779
|
}, _callee);
|
|
29471
29780
|
})),
|
|
@@ -29799,7 +30108,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29799
30108
|
}
|
|
29800
30109
|
}, "\u65B0\u589E\u8FD4\u56DE\u503C")), isHaveRuleReturnConfig && _this.renderResItem(itemDetail, parentDetail, ruleReturnConfig, disabled, RuleActionItemStyle) || null, isHaveRuleTypeData && _this.renderActionList(itemDetail, parentDetail, handleRuleTypeData, selectRuleActionData, classDataIndex, disabled, RuleActionItemStyle) || null);
|
|
29801
30110
|
};
|
|
29802
|
-
//添加同一层级条件
|
|
29803
30111
|
_this.addPeerRule = function (itemDetail) {
|
|
29804
30112
|
var ruleClassData = _this.state.ruleClassData;
|
|
29805
30113
|
var _this$props4 = _this.props,
|
|
@@ -29820,7 +30128,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29820
30128
|
callBack(ruleClassData);
|
|
29821
30129
|
});
|
|
29822
30130
|
};
|
|
29823
|
-
//添加子层级条件
|
|
29824
30131
|
_this.addChildRules = function (itemDetail) {
|
|
29825
30132
|
var ruleClassData = _this.state.ruleClassData;
|
|
29826
30133
|
var callBack = _this.props.callBack;
|
|
@@ -29896,7 +30203,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29896
30203
|
callBack(ruleClassData);
|
|
29897
30204
|
});
|
|
29898
30205
|
};
|
|
29899
|
-
// 新增执行顺序
|
|
29900
30206
|
_this.handleSelectRuleAction = function (keys, classDataIndex, callback) {
|
|
29901
30207
|
callback();
|
|
29902
30208
|
var callBack = _this.props.callBack;
|
|
@@ -30047,4 +30353,4 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30047
30353
|
return RuleObjectComponent;
|
|
30048
30354
|
}(Component);
|
|
30049
30355
|
|
|
30050
|
-
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, BillEntry, BsCascader, index$
|
|
30356
|
+
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, CommodityEntry, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, GuideWrapper, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, QueryMutipleInput, RuleObjectComponent as RuleComponent, SearchSelect, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect };
|