@bit-sun/business-component 2.3.11 → 2.3.13
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/common.d.ts +5 -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 +965 -947
- package/dist/index.js +971 -953
- 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 +535 -532
- package/src/components/Business/BsSulaQueryTable/setting.tsx +852 -852
- 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 -205
- 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 -535
- package/src/components/Business/JsonQueryTable/jsonEditor/index.js +346 -346
- package/src/components/Business/JsonQueryTable/jsonEditor/index.less +22 -22
- package/src/components/Business/JsonQueryTable/jsonEditor/lint/basicType.js +147 -147
- package/src/components/Business/JsonQueryTable/jsonEditor/lint/index.js +389 -389
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/actions.js +118 -118
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/dependency.js +22 -22
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/index.js +21 -21
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/request.js +65 -65
- package/src/components/Business/JsonQueryTable/static.ts +390 -390
- package/src/components/Business/SearchSelect/BusinessUtils.ts +1756 -1732
- package/src/components/Business/SearchSelect/common.ts +64 -53
- package/src/components/Business/SearchSelect/index.md +1326 -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 +33 -33
- package/src/components/Business/TreeSearchSelect/utils.ts +75 -75
- 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 +387 -387
- 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 +858 -858
- 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 +163 -163
- 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 +2107 -2107
- 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
|
|
5
|
+
import isEqual from 'lodash/isEqual';
|
|
6
6
|
import React, { useState, useEffect, forwardRef, useImperativeHandle, useRef, useMemo, Component, useLayoutEffect, createRef } from 'react';
|
|
7
7
|
import moment$1 from 'moment';
|
|
8
8
|
import { UnorderedListOutlined, ProfileTwoTone, ExclamationCircleOutlined, DownOutlined, CopyOutlined, SearchOutlined, CaretLeftOutlined, CloseCircleOutlined, ArrowLeftOutlined, FolderOutlined, EllipsisOutlined, CaretDownOutlined, HomeOutlined, DoubleLeftOutlined, DoubleRightOutlined, MenuUnfoldOutlined, DashOutlined, SettingOutlined, BulbOutlined, PlayCircleOutlined, SaveOutlined, FullscreenExitOutlined, EditOutlined, MinusCircleOutlined, PlusCircleOutlined } from '@ant-design/icons';
|
|
@@ -762,52 +762,41 @@ 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
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
765
|
+
var simpleIsEqual = function simpleIsEqual(a, b) {
|
|
766
|
+
return a === b;
|
|
767
|
+
};
|
|
768
|
+
|
|
769
|
+
function index$1 (resultFn, isEqual) {
|
|
770
|
+
if (isEqual === void 0) {
|
|
771
|
+
isEqual = simpleIsEqual;
|
|
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];
|
|
781
786
|
}
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
}
|
|
787
|
+
|
|
788
|
+
if (calledOnce && lastThis === this && newArgs.length === lastArgs.length && newArgs.every(isNewArgEqualToLast)) {
|
|
789
|
+
return lastResult;
|
|
786
790
|
}
|
|
787
|
-
return true;
|
|
788
|
-
}
|
|
789
791
|
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
799
|
-
newArgs[_i] = arguments[_i];
|
|
800
|
-
}
|
|
801
|
-
if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {
|
|
802
|
-
return lastResult;
|
|
803
|
-
}
|
|
804
|
-
lastResult = resultFn.apply(this, newArgs);
|
|
805
|
-
calledOnce = true;
|
|
806
|
-
lastThis = this;
|
|
807
|
-
lastArgs = newArgs;
|
|
808
|
-
return lastResult;
|
|
809
|
-
}
|
|
810
|
-
return memoized;
|
|
792
|
+
lastResult = resultFn.apply(this, newArgs);
|
|
793
|
+
calledOnce = true;
|
|
794
|
+
lastThis = this;
|
|
795
|
+
lastArgs = newArgs;
|
|
796
|
+
return lastResult;
|
|
797
|
+
};
|
|
798
|
+
|
|
799
|
+
return result;
|
|
811
800
|
}
|
|
812
801
|
|
|
813
802
|
function styleInject(css, ref) {
|
|
@@ -1021,58 +1010,59 @@ var getItemDefaultWidth = function getItemDefaultWidth(item) {
|
|
|
1021
1010
|
* @returns 返回处理后的查询参数
|
|
1022
1011
|
*/
|
|
1023
1012
|
function queryParams(params, flag) {
|
|
1024
|
-
|
|
1013
|
+
var _loop = function _loop() {
|
|
1025
1014
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
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;
|
|
1015
|
+
var element = params[key];
|
|
1016
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
1017
|
+
var dataParams = key.split('*number*');
|
|
1018
|
+
dataParams.forEach(function (value, index) {
|
|
1019
|
+
params[value] = element[index];
|
|
1020
|
+
});
|
|
1021
|
+
delete params[key];
|
|
1022
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
1023
|
+
var _dataParams = key.split('*address*');
|
|
1024
|
+
_dataParams.forEach(function (value, index) {
|
|
1025
|
+
params[value] = element.PCDCode[index];
|
|
1026
|
+
});
|
|
1027
|
+
delete params[key];
|
|
1028
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
1029
|
+
var _dataParams2 = key.split('*costType*');
|
|
1030
|
+
// eslint-disable-next-line prefer-destructuring
|
|
1031
|
+
params[_dataParams2[0]] = element[1];
|
|
1032
|
+
delete params[key];
|
|
1033
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
1034
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
1035
|
+
_dataParams3.forEach(function (value, index) {
|
|
1036
|
+
if (index === 0) {
|
|
1037
|
+
params[value] = moment$1(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
1066
1038
|
} else {
|
|
1067
|
-
params[
|
|
1068
|
-
params["qp-".concat(_dataParams5[0], "-in")] = null;
|
|
1039
|
+
params[value] = moment$1(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
1069
1040
|
}
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1041
|
+
});
|
|
1042
|
+
delete params[key];
|
|
1043
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
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;
|
|
1073
1057
|
}
|
|
1074
|
-
|
|
1058
|
+
delete params[key];
|
|
1059
|
+
} else if (Array.isArray(element)) {
|
|
1060
|
+
params[key] = element.join(',');
|
|
1061
|
+
}
|
|
1075
1062
|
}
|
|
1063
|
+
};
|
|
1064
|
+
for (var key in params) {
|
|
1065
|
+
_loop();
|
|
1076
1066
|
}
|
|
1077
1067
|
return flag ? params : qs.stringify(params);
|
|
1078
1068
|
}
|
|
@@ -1118,7 +1108,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1118
1108
|
return item;
|
|
1119
1109
|
});
|
|
1120
1110
|
};
|
|
1121
|
-
var memoizeOneFormatter =
|
|
1111
|
+
var memoizeOneFormatter = index$1(formatter, isEqual);
|
|
1122
1112
|
var go2BackAndClose = function go2BackAndClose() {
|
|
1123
1113
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1124
1114
|
history.goBack();
|
|
@@ -2797,84 +2787,85 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
2797
2787
|
});
|
|
2798
2788
|
}
|
|
2799
2789
|
// 数组对象处理,对带有特殊标记的name进行处理
|
|
2800
|
-
|
|
2790
|
+
var _loop = function _loop() {
|
|
2801
2791
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
2828
|
-
}
|
|
2829
|
-
});
|
|
2830
|
-
delete params[key];
|
|
2831
|
-
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
2832
|
-
var _dataParams4 = key.split('*checkBox*');
|
|
2833
|
-
if (element) {
|
|
2834
|
-
params[_dataParams4[0]] = 0;
|
|
2792
|
+
var element = params[key];
|
|
2793
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
2794
|
+
var dataParams = key.split('*number*');
|
|
2795
|
+
dataParams.forEach(function (value, index) {
|
|
2796
|
+
params[value] = element[index];
|
|
2797
|
+
});
|
|
2798
|
+
delete params[key];
|
|
2799
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
2800
|
+
var _dataParams = key.split('*address*');
|
|
2801
|
+
_dataParams.forEach(function (value, index) {
|
|
2802
|
+
params[value] = element.PCDCode[index];
|
|
2803
|
+
});
|
|
2804
|
+
delete params[key];
|
|
2805
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
2806
|
+
var _dataParams2 = key.split('*costType*');
|
|
2807
|
+
// eslint-disable-next-line prefer-destructuring
|
|
2808
|
+
params[_dataParams2[0]] = element[1];
|
|
2809
|
+
delete params[key];
|
|
2810
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
2811
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
2812
|
+
_dataParams3.forEach(function (value, index) {
|
|
2813
|
+
if (index === 0) {
|
|
2814
|
+
params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
2815
|
+
} else {
|
|
2816
|
+
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
2835
2817
|
}
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
_dataParams7.forEach(function (value, index) {
|
|
2854
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
2855
|
-
});
|
|
2856
|
-
delete params[key];
|
|
2857
|
-
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
2858
|
-
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
2859
|
-
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
2860
|
-
if (params[key][0] === 'range') {
|
|
2861
|
-
if (params[key][1][0]) {
|
|
2862
|
-
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
2863
|
-
}
|
|
2864
|
-
if (params[key][1][1]) {
|
|
2865
|
-
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
2866
|
-
}
|
|
2818
|
+
});
|
|
2819
|
+
delete params[key];
|
|
2820
|
+
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
2821
|
+
var _dataParams4 = key.split('*checkBox*');
|
|
2822
|
+
if (element) {
|
|
2823
|
+
params[_dataParams4[0]] = 0;
|
|
2824
|
+
}
|
|
2825
|
+
delete params[key];
|
|
2826
|
+
} else if (element && key.indexOf('*cascader*') >= 0) {
|
|
2827
|
+
var _dataParams5 = key.split('*cascader*');
|
|
2828
|
+
params[_dataParams5[0]] = element[element.length - 1];
|
|
2829
|
+
delete params[key];
|
|
2830
|
+
} else if (element && key.indexOf('*date*') >= 0) {
|
|
2831
|
+
var _dataParams6 = key.split('*date*');
|
|
2832
|
+
_dataParams6.forEach(function (value, index) {
|
|
2833
|
+
if (index === 0) {
|
|
2834
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
2867
2835
|
} else {
|
|
2868
|
-
params[
|
|
2836
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
2837
|
+
}
|
|
2838
|
+
});
|
|
2839
|
+
delete params[key];
|
|
2840
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
2841
|
+
var _dataParams7 = key.split('*');
|
|
2842
|
+
_dataParams7.forEach(function (value, index) {
|
|
2843
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
2844
|
+
});
|
|
2845
|
+
delete params[key];
|
|
2846
|
+
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
2847
|
+
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
2848
|
+
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
2849
|
+
if (params[key][0] === 'range') {
|
|
2850
|
+
if (params[key][1][0]) {
|
|
2851
|
+
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
2869
2852
|
}
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
} else
|
|
2874
|
-
|
|
2853
|
+
if (params[key][1][1]) {
|
|
2854
|
+
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
2855
|
+
}
|
|
2856
|
+
} else {
|
|
2857
|
+
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
2875
2858
|
}
|
|
2876
|
-
|
|
2859
|
+
delete params[key];
|
|
2860
|
+
} else if (Array.isArray(element)) {
|
|
2861
|
+
params[key] = element.join(',');
|
|
2862
|
+
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
2863
|
+
delete params[key];
|
|
2864
|
+
}
|
|
2877
2865
|
}
|
|
2866
|
+
};
|
|
2867
|
+
for (var key in params) {
|
|
2868
|
+
_loop();
|
|
2878
2869
|
}
|
|
2879
2870
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
2880
2871
|
pageSize: pageSize,
|
|
@@ -4533,76 +4524,74 @@ var AddSelect = function AddSelect(props) {
|
|
|
4533
4524
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
4534
4525
|
var result;
|
|
4535
4526
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
4536
|
-
while (1) {
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
_context.next = 3;
|
|
4543
|
-
break;
|
|
4544
|
-
}
|
|
4545
|
-
message$1.warning('相同skc配码不可设置相同哦');
|
|
4546
|
-
return _context.abrupt("return", false);
|
|
4547
|
-
case 3:
|
|
4548
|
-
if (!(bType == 'spu')) {
|
|
4549
|
-
_context.next = 26;
|
|
4550
|
-
break;
|
|
4551
|
-
}
|
|
4552
|
-
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
4553
|
-
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
4554
|
-
}))) {
|
|
4555
|
-
_context.next = 7;
|
|
4556
|
-
break;
|
|
4557
|
-
}
|
|
4558
|
-
message$1.warning('相同商品相同配码颜色不可设置相同哦');
|
|
4559
|
-
return _context.abrupt("return", false);
|
|
4560
|
-
case 7:
|
|
4561
|
-
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
4562
|
-
_context.next = 10;
|
|
4563
|
-
break;
|
|
4564
|
-
}
|
|
4565
|
-
message$1.warning('请先选择颜色!');
|
|
4566
|
-
return _context.abrupt("return", false);
|
|
4567
|
-
case 10:
|
|
4568
|
-
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
4569
|
-
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
4570
|
-
}))) {
|
|
4571
|
-
_context.next = 13;
|
|
4572
|
-
break;
|
|
4573
|
-
}
|
|
4574
|
-
message$1.warning('相同商品相同颜色配码不可设置相同哦');
|
|
4575
|
-
return _context.abrupt("return", false);
|
|
4576
|
-
case 13:
|
|
4577
|
-
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
4578
|
-
_context.next = 26;
|
|
4579
|
-
break;
|
|
4580
|
-
}
|
|
4581
|
-
result = true;
|
|
4582
|
-
_context.prev = 15;
|
|
4583
|
-
_context.next = 18;
|
|
4584
|
-
return checkSpuMatchCode({
|
|
4585
|
-
skcCode: recordItem[recordKey],
|
|
4586
|
-
matchingCode: changeValue,
|
|
4587
|
-
ext1: recordItem.colorName
|
|
4588
|
-
});
|
|
4589
|
-
case 18:
|
|
4590
|
-
result = _context.sent;
|
|
4591
|
-
result = true;
|
|
4592
|
-
_context.next = 25;
|
|
4527
|
+
while (1) switch (_context.prev = _context.next) {
|
|
4528
|
+
case 0:
|
|
4529
|
+
if (!(bType == 'skc' && tList.some(function (i) {
|
|
4530
|
+
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
4531
|
+
}))) {
|
|
4532
|
+
_context.next = 3;
|
|
4593
4533
|
break;
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4534
|
+
}
|
|
4535
|
+
message$1.warning('相同skc配码不可设置相同哦');
|
|
4536
|
+
return _context.abrupt("return", false);
|
|
4537
|
+
case 3:
|
|
4538
|
+
if (!(bType == 'spu')) {
|
|
4539
|
+
_context.next = 26;
|
|
4540
|
+
break;
|
|
4541
|
+
}
|
|
4542
|
+
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
4543
|
+
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
4544
|
+
}))) {
|
|
4545
|
+
_context.next = 7;
|
|
4546
|
+
break;
|
|
4547
|
+
}
|
|
4548
|
+
message$1.warning('相同商品相同配码颜色不可设置相同哦');
|
|
4549
|
+
return _context.abrupt("return", false);
|
|
4550
|
+
case 7:
|
|
4551
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
4552
|
+
_context.next = 10;
|
|
4553
|
+
break;
|
|
4554
|
+
}
|
|
4555
|
+
message$1.warning('请先选择颜色!');
|
|
4556
|
+
return _context.abrupt("return", false);
|
|
4557
|
+
case 10:
|
|
4558
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
4559
|
+
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
4560
|
+
}))) {
|
|
4561
|
+
_context.next = 13;
|
|
4562
|
+
break;
|
|
4563
|
+
}
|
|
4564
|
+
message$1.warning('相同商品相同颜色配码不可设置相同哦');
|
|
4565
|
+
return _context.abrupt("return", false);
|
|
4566
|
+
case 13:
|
|
4567
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
4568
|
+
_context.next = 26;
|
|
4569
|
+
break;
|
|
4570
|
+
}
|
|
4571
|
+
result = true;
|
|
4572
|
+
_context.prev = 15;
|
|
4573
|
+
_context.next = 18;
|
|
4574
|
+
return checkSpuMatchCode({
|
|
4575
|
+
skcCode: recordItem[recordKey],
|
|
4576
|
+
matchingCode: changeValue,
|
|
4577
|
+
ext1: recordItem.colorName
|
|
4578
|
+
});
|
|
4579
|
+
case 18:
|
|
4580
|
+
result = _context.sent;
|
|
4581
|
+
result = true;
|
|
4582
|
+
_context.next = 25;
|
|
4583
|
+
break;
|
|
4584
|
+
case 22:
|
|
4585
|
+
_context.prev = 22;
|
|
4586
|
+
_context.t0 = _context["catch"](15);
|
|
4587
|
+
result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
|
|
4588
|
+
case 25:
|
|
4589
|
+
return _context.abrupt("return", result);
|
|
4590
|
+
case 26:
|
|
4591
|
+
return _context.abrupt("return", true);
|
|
4592
|
+
case 27:
|
|
4593
|
+
case "end":
|
|
4594
|
+
return _context.stop();
|
|
4606
4595
|
}
|
|
4607
4596
|
}, _callee, null, [[15, 22]]);
|
|
4608
4597
|
}));
|
|
@@ -4794,29 +4783,27 @@ var AddSelect = function AddSelect(props) {
|
|
|
4794
4783
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
4795
4784
|
var isConformToTheRules, newPopValue;
|
|
4796
4785
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
4797
|
-
while (1) {
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4786
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
4787
|
+
case 0:
|
|
4788
|
+
_context2.next = 2;
|
|
4789
|
+
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
4790
|
+
case 2:
|
|
4791
|
+
isConformToTheRules = _context2.sent;
|
|
4792
|
+
if (isConformToTheRules) {
|
|
4793
|
+
record[item.dataIndex] = value;
|
|
4794
|
+
} else {
|
|
4795
|
+
record[item.dataIndex] = null;
|
|
4796
|
+
}
|
|
4797
|
+
newPopValue = popvalue.map(function (i, innerIndex) {
|
|
4798
|
+
if (innerIndex == index) {
|
|
4799
|
+
i[item.dataIndex] = record[item.dataIndex];
|
|
4808
4800
|
}
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
setPopValue(newPopValue);
|
|
4816
|
-
case 6:
|
|
4817
|
-
case "end":
|
|
4818
|
-
return _context2.stop();
|
|
4819
|
-
}
|
|
4801
|
+
return i;
|
|
4802
|
+
});
|
|
4803
|
+
setPopValue(newPopValue);
|
|
4804
|
+
case 6:
|
|
4805
|
+
case "end":
|
|
4806
|
+
return _context2.stop();
|
|
4820
4807
|
}
|
|
4821
4808
|
}, _callee2);
|
|
4822
4809
|
}));
|
|
@@ -4876,84 +4863,85 @@ var AddSelect = function AddSelect(props) {
|
|
|
4876
4863
|
});
|
|
4877
4864
|
}
|
|
4878
4865
|
// 数组对象处理,对带有特殊标记的name进行处理
|
|
4879
|
-
|
|
4866
|
+
var _loop = function _loop() {
|
|
4880
4867
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
4907
|
-
}
|
|
4908
|
-
});
|
|
4909
|
-
delete params[key];
|
|
4910
|
-
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
4911
|
-
var _dataParams4 = key.split('*checkBox*');
|
|
4912
|
-
if (element) {
|
|
4913
|
-
params[_dataParams4[0]] = 0;
|
|
4868
|
+
var element = params[key];
|
|
4869
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
4870
|
+
var dataParams = key.split('*number*');
|
|
4871
|
+
dataParams.forEach(function (value, index) {
|
|
4872
|
+
params[value] = element[index];
|
|
4873
|
+
});
|
|
4874
|
+
delete params[key];
|
|
4875
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
4876
|
+
var _dataParams = key.split('*address*');
|
|
4877
|
+
_dataParams.forEach(function (value, index) {
|
|
4878
|
+
params[value] = element.PCDCode[index];
|
|
4879
|
+
});
|
|
4880
|
+
delete params[key];
|
|
4881
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
4882
|
+
var _dataParams2 = key.split('*costType*');
|
|
4883
|
+
// eslint-disable-next-line prefer-destructuring
|
|
4884
|
+
params[_dataParams2[0]] = element[1];
|
|
4885
|
+
delete params[key];
|
|
4886
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
4887
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
4888
|
+
_dataParams3.forEach(function (value, index) {
|
|
4889
|
+
if (index === 0) {
|
|
4890
|
+
params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
4891
|
+
} else {
|
|
4892
|
+
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
4914
4893
|
}
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
_dataParams7.forEach(function (value, index) {
|
|
4933
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
4934
|
-
});
|
|
4935
|
-
delete params[key];
|
|
4936
|
-
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
4937
|
-
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
4938
|
-
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
4939
|
-
if (params[key][0] === 'range') {
|
|
4940
|
-
if (params[key][1][0]) {
|
|
4941
|
-
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
4942
|
-
}
|
|
4943
|
-
if (params[key][1][1]) {
|
|
4944
|
-
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
4945
|
-
}
|
|
4894
|
+
});
|
|
4895
|
+
delete params[key];
|
|
4896
|
+
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
4897
|
+
var _dataParams4 = key.split('*checkBox*');
|
|
4898
|
+
if (element) {
|
|
4899
|
+
params[_dataParams4[0]] = 0;
|
|
4900
|
+
}
|
|
4901
|
+
delete params[key];
|
|
4902
|
+
} else if (element && key.indexOf('*cascader*') >= 0) {
|
|
4903
|
+
var _dataParams5 = key.split('*cascader*');
|
|
4904
|
+
params[_dataParams5[0]] = element[element.length - 1];
|
|
4905
|
+
delete params[key];
|
|
4906
|
+
} else if (element && key.indexOf('*date*') >= 0) {
|
|
4907
|
+
var _dataParams6 = key.split('*date*');
|
|
4908
|
+
_dataParams6.forEach(function (value, index) {
|
|
4909
|
+
if (index === 0) {
|
|
4910
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
4946
4911
|
} else {
|
|
4947
|
-
params[
|
|
4912
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
4948
4913
|
}
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4914
|
+
});
|
|
4915
|
+
delete params[key];
|
|
4916
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
4917
|
+
var _dataParams7 = key.split('*');
|
|
4918
|
+
_dataParams7.forEach(function (value, index) {
|
|
4919
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
4920
|
+
});
|
|
4921
|
+
delete params[key];
|
|
4922
|
+
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
4923
|
+
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
4924
|
+
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
4925
|
+
if (params[key][0] === 'range') {
|
|
4926
|
+
if (params[key][1][0]) {
|
|
4927
|
+
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
4928
|
+
}
|
|
4929
|
+
if (params[key][1][1]) {
|
|
4930
|
+
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
4931
|
+
}
|
|
4932
|
+
} else {
|
|
4933
|
+
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
4954
4934
|
}
|
|
4955
|
-
|
|
4935
|
+
delete params[key];
|
|
4936
|
+
} else if (Array.isArray(element)) {
|
|
4937
|
+
params[key] = element.join(',');
|
|
4938
|
+
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
4939
|
+
delete params[key];
|
|
4940
|
+
}
|
|
4956
4941
|
}
|
|
4942
|
+
};
|
|
4943
|
+
for (var key in params) {
|
|
4944
|
+
_loop();
|
|
4957
4945
|
}
|
|
4958
4946
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
4959
4947
|
pageSize: pageSize,
|
|
@@ -6408,72 +6396,70 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
6408
6396
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
6409
6397
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
6410
6398
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
6411
|
-
while (1) {
|
|
6412
|
-
|
|
6413
|
-
|
|
6414
|
-
|
|
6415
|
-
|
|
6416
|
-
|
|
6417
|
-
|
|
6418
|
-
|
|
6419
|
-
|
|
6420
|
-
|
|
6421
|
-
|
|
6422
|
-
|
|
6423
|
-
|
|
6424
|
-
|
|
6425
|
-
|
|
6426
|
-
|
|
6427
|
-
|
|
6428
|
-
|
|
6429
|
-
|
|
6430
|
-
|
|
6431
|
-
|
|
6432
|
-
|
|
6433
|
-
|
|
6434
|
-
|
|
6435
|
-
|
|
6436
|
-
|
|
6437
|
-
|
|
6438
|
-
|
|
6439
|
-
|
|
6440
|
-
|
|
6441
|
-
|
|
6442
|
-
|
|
6443
|
-
|
|
6444
|
-
|
|
6445
|
-
|
|
6446
|
-
|
|
6447
|
-
|
|
6448
|
-
|
|
6449
|
-
|
|
6450
|
-
messageInfo
|
|
6451
|
-
|
|
6452
|
-
|
|
6453
|
-
|
|
6454
|
-
|
|
6455
|
-
|
|
6456
|
-
|
|
6457
|
-
|
|
6458
|
-
|
|
6459
|
-
|
|
6460
|
-
|
|
6461
|
-
|
|
6462
|
-
|
|
6463
|
-
|
|
6464
|
-
|
|
6465
|
-
message$1.success(initSuccessMessage);
|
|
6466
|
-
}
|
|
6399
|
+
while (1) switch (_context.prev = _context.next) {
|
|
6400
|
+
case 0:
|
|
6401
|
+
if (data === null || data === void 0 ? void 0 : data.length) {
|
|
6402
|
+
_context.next = 3;
|
|
6403
|
+
break;
|
|
6404
|
+
}
|
|
6405
|
+
message$1.warning('至少录入一条数据');
|
|
6406
|
+
return _context.abrupt("return");
|
|
6407
|
+
case 3:
|
|
6408
|
+
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
6409
|
+
return d.skuCode && d.name;
|
|
6410
|
+
})) {
|
|
6411
|
+
_context.next = 6;
|
|
6412
|
+
break;
|
|
6413
|
+
}
|
|
6414
|
+
message$1.warning('请选择商品!');
|
|
6415
|
+
return _context.abrupt("return");
|
|
6416
|
+
case 6:
|
|
6417
|
+
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
6418
|
+
return d.count;
|
|
6419
|
+
})) {
|
|
6420
|
+
_context.next = 9;
|
|
6421
|
+
break;
|
|
6422
|
+
}
|
|
6423
|
+
message$1.warning('请填写商品数量!');
|
|
6424
|
+
return _context.abrupt("return");
|
|
6425
|
+
case 9:
|
|
6426
|
+
_context.next = 11;
|
|
6427
|
+
return isSkuCanEntry(data);
|
|
6428
|
+
case 11:
|
|
6429
|
+
canEntryObject = _context.sent;
|
|
6430
|
+
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
6431
|
+
_context.next = 16;
|
|
6432
|
+
break;
|
|
6433
|
+
}
|
|
6434
|
+
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) {
|
|
6435
|
+
return /*#__PURE__*/React.createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
|
|
6436
|
+
}));
|
|
6437
|
+
messageInfo && message$1.warning({
|
|
6438
|
+
content: messageInfo,
|
|
6439
|
+
duration: 6
|
|
6440
|
+
});
|
|
6441
|
+
return _context.abrupt("return");
|
|
6442
|
+
case 16:
|
|
6443
|
+
setLoading(true);
|
|
6444
|
+
onSaveCallback(data).then(function (res) {
|
|
6445
|
+
{
|
|
6446
|
+
var _Object$keys;
|
|
6447
|
+
var initSuccessMessage = '保存成功';
|
|
6448
|
+
var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
|
|
6449
|
+
if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
|
|
6450
|
+
(rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? message$1.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
|
|
6451
|
+
} else {
|
|
6452
|
+
message$1.success(initSuccessMessage);
|
|
6467
6453
|
}
|
|
6468
|
-
|
|
6469
|
-
|
|
6470
|
-
|
|
6471
|
-
|
|
6472
|
-
|
|
6473
|
-
|
|
6474
|
-
|
|
6475
|
-
|
|
6476
|
-
|
|
6454
|
+
}
|
|
6455
|
+
setLoading(false);
|
|
6456
|
+
}).catch(function (Error) {
|
|
6457
|
+
message$1.error(Error);
|
|
6458
|
+
setLoading(false);
|
|
6459
|
+
});
|
|
6460
|
+
case 18:
|
|
6461
|
+
case "end":
|
|
6462
|
+
return _context.stop();
|
|
6477
6463
|
}
|
|
6478
6464
|
}, _callee);
|
|
6479
6465
|
}));
|
|
@@ -6599,6 +6585,13 @@ var shopFile2Type = [{
|
|
|
6599
6585
|
text: "自营B2C",
|
|
6600
6586
|
value: 'B2C'
|
|
6601
6587
|
}];
|
|
6588
|
+
var shopFile2Status = [{
|
|
6589
|
+
text: "启用",
|
|
6590
|
+
value: 10
|
|
6591
|
+
}, {
|
|
6592
|
+
text: "禁用",
|
|
6593
|
+
value: 20
|
|
6594
|
+
}];
|
|
6602
6595
|
var arrivalPaySupportList = [{
|
|
6603
6596
|
text: "支持",
|
|
6604
6597
|
value: 1
|
|
@@ -7554,10 +7547,11 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
7554
7547
|
mappingTextField: 'physicalWarehouseName',
|
|
7555
7548
|
mappingTextShowKeyField: 'physicalWarehouseCode',
|
|
7556
7549
|
mappingValueField: 'id',
|
|
7557
|
-
otherParams: {
|
|
7558
|
-
'qp-isEnable-eq': 1
|
|
7550
|
+
otherParams: _objectSpread2(_objectSpread2({}, (modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? {} : {
|
|
7551
|
+
'qp-isEnable-eq': 1
|
|
7552
|
+
}), {}, {
|
|
7559
7553
|
sorter: 'desc-id'
|
|
7560
|
-
},
|
|
7554
|
+
}),
|
|
7561
7555
|
sourceName: 'warehouseIds'
|
|
7562
7556
|
}, requestConfigProp);
|
|
7563
7557
|
tableSearchForm = [{
|
|
@@ -7590,7 +7584,12 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
7590
7584
|
}
|
|
7591
7585
|
}
|
|
7592
7586
|
}
|
|
7593
|
-
}]
|
|
7587
|
+
}].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
|
|
7588
|
+
name: 'qp-isEnable-eq',
|
|
7589
|
+
type: 'select',
|
|
7590
|
+
label: '物理仓状态',
|
|
7591
|
+
initialSource: getDictionarySource$1('SC00001')
|
|
7592
|
+
}] : []));
|
|
7594
7593
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
7595
7594
|
pageSize: 5000,
|
|
7596
7595
|
currentPage: 1,
|
|
@@ -7613,10 +7612,16 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
7613
7612
|
render: function render(text) {
|
|
7614
7613
|
return getDictionaryTextByValue('SC00002', text);
|
|
7615
7614
|
}
|
|
7616
|
-
}
|
|
7615
|
+
}].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
|
|
7616
|
+
title: '状态',
|
|
7617
|
+
dataIndex: 'isEnable',
|
|
7618
|
+
render: function render(text) {
|
|
7619
|
+
return getDictionaryTextByValue('SC00001', text);
|
|
7620
|
+
}
|
|
7621
|
+
}] : []), [{
|
|
7617
7622
|
title: '所属公司',
|
|
7618
7623
|
dataIndex: 'companyName'
|
|
7619
|
-
}]
|
|
7624
|
+
}])
|
|
7620
7625
|
}, modalTableBusProps);
|
|
7621
7626
|
}
|
|
7622
7627
|
if (type === 'realWarehouse') {
|
|
@@ -7626,10 +7631,11 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
7626
7631
|
mappingTextField: 'realWarehouseName',
|
|
7627
7632
|
mappingTextShowKeyField: 'realWarehouseCode',
|
|
7628
7633
|
mappingValueField: 'id',
|
|
7629
|
-
otherParams: {
|
|
7630
|
-
'qp-isEnable-eq': 1
|
|
7634
|
+
otherParams: _objectSpread2(_objectSpread2({}, (modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? {} : {
|
|
7635
|
+
'qp-isEnable-eq': 1
|
|
7636
|
+
}), {}, {
|
|
7631
7637
|
sorter: 'desc-id'
|
|
7632
|
-
},
|
|
7638
|
+
}),
|
|
7633
7639
|
sourceName: 'warehouseIds'
|
|
7634
7640
|
}, requestConfigProp);
|
|
7635
7641
|
tableSearchForm = [{
|
|
@@ -7643,7 +7649,12 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
7643
7649
|
type: 'select',
|
|
7644
7650
|
label: '逻辑仓类型',
|
|
7645
7651
|
initialSource: getDictionarySource$1('SC00004')
|
|
7646
|
-
}]
|
|
7652
|
+
}].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
|
|
7653
|
+
name: 'qp-isEnable-eq',
|
|
7654
|
+
type: 'select',
|
|
7655
|
+
label: '逻辑仓状态',
|
|
7656
|
+
initialSource: getDictionarySource$1('SC00001')
|
|
7657
|
+
}] : []));
|
|
7647
7658
|
modalTableProps = _objectSpread2({
|
|
7648
7659
|
modalTableTitle: '选择逻辑仓',
|
|
7649
7660
|
tableSearchForm: tableSearchForm,
|
|
@@ -7659,7 +7670,13 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
7659
7670
|
render: function render(text) {
|
|
7660
7671
|
return getDictionaryTextByValue('SC00004', text);
|
|
7661
7672
|
}
|
|
7662
|
-
}]
|
|
7673
|
+
}].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
|
|
7674
|
+
title: '状态',
|
|
7675
|
+
dataIndex: 'isEnable',
|
|
7676
|
+
render: function render(text) {
|
|
7677
|
+
return getDictionaryTextByValue('SC00001', text);
|
|
7678
|
+
}
|
|
7679
|
+
}] : []))
|
|
7663
7680
|
}, modalTableBusProps);
|
|
7664
7681
|
}
|
|
7665
7682
|
if (type === 'ownerWarehouse') {
|
|
@@ -7669,10 +7686,11 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
7669
7686
|
mappingTextField: 'name',
|
|
7670
7687
|
mappingTextShowKeyField: 'operationWarehouseCode',
|
|
7671
7688
|
mappingValueField: 'operationWarehouseCode',
|
|
7672
|
-
otherParams: {
|
|
7673
|
-
'qp-status-eq': 1
|
|
7689
|
+
otherParams: _objectSpread2(_objectSpread2({}, (modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? {} : {
|
|
7690
|
+
'qp-status-eq': 1
|
|
7691
|
+
}), {}, {
|
|
7674
7692
|
sorter: 'desc-id'
|
|
7675
|
-
},
|
|
7693
|
+
}),
|
|
7676
7694
|
sourceName: 'qp-operationWarehouseCode-in'
|
|
7677
7695
|
}, requestConfigProp);
|
|
7678
7696
|
tableSearchForm = [{
|
|
@@ -7700,7 +7718,12 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
7700
7718
|
}
|
|
7701
7719
|
}
|
|
7702
7720
|
}
|
|
7703
|
-
}]
|
|
7721
|
+
}].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
|
|
7722
|
+
name: 'qp-status-eq',
|
|
7723
|
+
type: 'select',
|
|
7724
|
+
label: '运营仓状态',
|
|
7725
|
+
initialSource: getDictionarySource$1('SC00001')
|
|
7726
|
+
}] : []));
|
|
7704
7727
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/groupInfo/listNoPage"), {
|
|
7705
7728
|
'qp-status-eq': 1
|
|
7706
7729
|
})]).then(function (x) {
|
|
@@ -7718,7 +7741,13 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
7718
7741
|
}, {
|
|
7719
7742
|
title: '运营组',
|
|
7720
7743
|
dataIndex: 'groupName'
|
|
7721
|
-
}]
|
|
7744
|
+
}].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
|
|
7745
|
+
title: '状态',
|
|
7746
|
+
dataIndex: 'status',
|
|
7747
|
+
render: function render(text) {
|
|
7748
|
+
return getDictionaryTextByValue('SC00001', text);
|
|
7749
|
+
}
|
|
7750
|
+
}] : []))
|
|
7722
7751
|
}, modalTableBusProps);
|
|
7723
7752
|
}
|
|
7724
7753
|
// 仓库选择器(虚拟、渠道仓)(无弹窗)
|
|
@@ -8137,6 +8166,11 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
8137
8166
|
type: 'select',
|
|
8138
8167
|
label: '商店类型',
|
|
8139
8168
|
initialSource: shopFile2Type
|
|
8169
|
+
}, {
|
|
8170
|
+
name: 'qp-status-in',
|
|
8171
|
+
type: 'select',
|
|
8172
|
+
label: '商店状态',
|
|
8173
|
+
initialSource: shopFile2Status
|
|
8140
8174
|
}, {
|
|
8141
8175
|
name: 'qp-orgCode-in',
|
|
8142
8176
|
type: 'select',
|
|
@@ -8162,7 +8196,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
8162
8196
|
'qp-realOrg-eq': true,
|
|
8163
8197
|
'qp-status-eq': 10
|
|
8164
8198
|
})]).then(function (x) {
|
|
8165
|
-
formatSource(x, 0,
|
|
8199
|
+
formatSource(x, 0, 4, tableSearchForm);
|
|
8166
8200
|
});
|
|
8167
8201
|
modalTableProps = _objectSpread2({
|
|
8168
8202
|
modalTableTitle: '选择商店',
|
|
@@ -8182,6 +8216,15 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
8182
8216
|
return i.value === text;
|
|
8183
8217
|
})) === null || _shopFile2Type$find === void 0 ? void 0 : _shopFile2Type$find.text;
|
|
8184
8218
|
}
|
|
8219
|
+
}, {
|
|
8220
|
+
title: '启用状态',
|
|
8221
|
+
dataIndex: 'status',
|
|
8222
|
+
render: function render(text) {
|
|
8223
|
+
var _shopFile2Status$find;
|
|
8224
|
+
return (_shopFile2Status$find = shopFile2Status.find(function (i) {
|
|
8225
|
+
return i.value === text;
|
|
8226
|
+
})) === null || _shopFile2Status$find === void 0 ? void 0 : _shopFile2Status$find.text;
|
|
8227
|
+
}
|
|
8185
8228
|
}, {
|
|
8186
8229
|
title: '所属销售组织',
|
|
8187
8230
|
dataIndex: 'orgName'
|
|
@@ -9608,7 +9651,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
9608
9651
|
* @LastEditTime: 2022-01-14 17:17:26
|
|
9609
9652
|
* @LastEditors: rodchen
|
|
9610
9653
|
*/
|
|
9611
|
-
var index$
|
|
9654
|
+
var index$2 = (function (storageKeyString) {
|
|
9612
9655
|
var seconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
|
|
9613
9656
|
var tipsCallFunction = arguments.length > 2 ? arguments[2] : undefined;
|
|
9614
9657
|
if (typeof seconds !== 'number') throw new Error('seconds should be number');
|
|
@@ -9729,44 +9772,42 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
9729
9772
|
var _ctx$form;
|
|
9730
9773
|
var resData, coverData, data, dataList;
|
|
9731
9774
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9732
|
-
while (1) {
|
|
9733
|
-
|
|
9734
|
-
|
|
9735
|
-
|
|
9736
|
-
|
|
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;
|
|
9775
|
+
while (1) switch (_context.prev = _context.next) {
|
|
9776
|
+
case 0:
|
|
9777
|
+
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
9778
|
+
if (!(resData.status === '0' || resData.code === '000000')) {
|
|
9779
|
+
_context.next = 13;
|
|
9752
9780
|
break;
|
|
9753
|
-
|
|
9754
|
-
|
|
9755
|
-
|
|
9756
|
-
|
|
9757
|
-
}) || [];
|
|
9758
|
-
case 11:
|
|
9759
|
-
_context.next = 14;
|
|
9781
|
+
}
|
|
9782
|
+
data = resData.data;
|
|
9783
|
+
if (!remoteSource.converter) {
|
|
9784
|
+
_context.next = 9;
|
|
9760
9785
|
break;
|
|
9761
|
-
|
|
9762
|
-
|
|
9763
|
-
|
|
9764
|
-
|
|
9765
|
-
|
|
9766
|
-
|
|
9767
|
-
|
|
9768
|
-
|
|
9769
|
-
|
|
9786
|
+
}
|
|
9787
|
+
_context.next = 6;
|
|
9788
|
+
return remoteSource.converter({
|
|
9789
|
+
data: [data]
|
|
9790
|
+
});
|
|
9791
|
+
case 6:
|
|
9792
|
+
coverData = _context.sent;
|
|
9793
|
+
_context.next = 11;
|
|
9794
|
+
break;
|
|
9795
|
+
case 9:
|
|
9796
|
+
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
9797
|
+
coverData = dataList.length && dataList.map(function (ites) {
|
|
9798
|
+
return mapSearchTree(ites);
|
|
9799
|
+
}) || [];
|
|
9800
|
+
case 11:
|
|
9801
|
+
_context.next = 14;
|
|
9802
|
+
break;
|
|
9803
|
+
case 13:
|
|
9804
|
+
coverData = [];
|
|
9805
|
+
case 14:
|
|
9806
|
+
setTreeData(coverData);
|
|
9807
|
+
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
|
|
9808
|
+
case 16:
|
|
9809
|
+
case "end":
|
|
9810
|
+
return _context.stop();
|
|
9770
9811
|
}
|
|
9771
9812
|
}, _callee);
|
|
9772
9813
|
}));
|
|
@@ -9973,7 +10014,7 @@ var BusinessTreeSearchSelect$1 = /*#__PURE__*/React.memo(BusinessTreeSearchSelec
|
|
|
9973
10014
|
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";
|
|
9974
10015
|
styleInject(css_248z$8);
|
|
9975
10016
|
|
|
9976
|
-
var index$
|
|
10017
|
+
var index$3 = (function (props) {
|
|
9977
10018
|
var _props$formStatusMapp = props.formStatusMapping,
|
|
9978
10019
|
formStatusMapping = _props$formStatusMapp === void 0 ? [] : _props$formStatusMapp;
|
|
9979
10020
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -11397,7 +11438,7 @@ var iconMap = {
|
|
|
11397
11438
|
src: moreIcon
|
|
11398
11439
|
})
|
|
11399
11440
|
};
|
|
11400
|
-
var index$
|
|
11441
|
+
var index$4 = (function (props) {
|
|
11401
11442
|
var _useLocation = useLocation(),
|
|
11402
11443
|
pathname = _useLocation.pathname;
|
|
11403
11444
|
var _useState = useState(pathname + 'id'),
|
|
@@ -11614,7 +11655,7 @@ var css_248z$d = ".home_page_head {\n height: 54px;\n display: flex;\n justif
|
|
|
11614
11655
|
styleInject(css_248z$d);
|
|
11615
11656
|
|
|
11616
11657
|
var _excluded$c = ["children"];
|
|
11617
|
-
var index$
|
|
11658
|
+
var index$5 = (function (props) {
|
|
11618
11659
|
var _useLocation = useLocation(),
|
|
11619
11660
|
pathname = _useLocation.pathname;
|
|
11620
11661
|
var _useState = useState(pathname + 'id'),
|
|
@@ -12975,7 +13016,8 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
12975
13016
|
}))))), /*#__PURE__*/React.createElement("div", {
|
|
12976
13017
|
onClick: this.showModal,
|
|
12977
13018
|
style: {
|
|
12978
|
-
fontSize: 14
|
|
13019
|
+
fontSize: 14,
|
|
13020
|
+
textAlign: 'center'
|
|
12979
13021
|
}
|
|
12980
13022
|
}, "\u641C\u7D22\u9879\u8BBE\u7F6E"));
|
|
12981
13023
|
}
|
|
@@ -13307,7 +13349,8 @@ var BsSulaQueryTable = (function (props) {
|
|
|
13307
13349
|
overlay: /*#__PURE__*/React.createElement(Menu, null, /*#__PURE__*/React.createElement(Menu.Item, null, /*#__PURE__*/React.createElement("div", {
|
|
13308
13350
|
onClick: sortTableRef === null || sortTableRef === void 0 ? void 0 : (_sortTableRef$current = sortTableRef.current) === null || _sortTableRef$current === void 0 ? void 0 : _sortTableRef$current.showModal,
|
|
13309
13351
|
style: {
|
|
13310
|
-
fontSize: 14
|
|
13352
|
+
fontSize: 14,
|
|
13353
|
+
textAlign: 'center'
|
|
13311
13354
|
}
|
|
13312
13355
|
}, "\u5217\u8BBE\u7F6E")), /*#__PURE__*/React.createElement(Menu.Item, null, /*#__PURE__*/React.createElement(SearchItemTable, {
|
|
13313
13356
|
ref: searchTableRef,
|
|
@@ -13911,21 +13954,19 @@ function _outLogin() {
|
|
|
13911
13954
|
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
13912
13955
|
var res;
|
|
13913
13956
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
13914
|
-
while (1) {
|
|
13915
|
-
|
|
13916
|
-
|
|
13917
|
-
|
|
13918
|
-
|
|
13919
|
-
|
|
13920
|
-
|
|
13921
|
-
|
|
13922
|
-
|
|
13923
|
-
|
|
13924
|
-
|
|
13925
|
-
|
|
13926
|
-
|
|
13927
|
-
return _context.stop();
|
|
13928
|
-
}
|
|
13957
|
+
while (1) switch (_context.prev = _context.next) {
|
|
13958
|
+
case 0:
|
|
13959
|
+
_context.next = 2;
|
|
13960
|
+
return axios({
|
|
13961
|
+
url: '/user/web/loginOut',
|
|
13962
|
+
method: 'GET'
|
|
13963
|
+
});
|
|
13964
|
+
case 2:
|
|
13965
|
+
res = _context.sent;
|
|
13966
|
+
return _context.abrupt("return", res);
|
|
13967
|
+
case 4:
|
|
13968
|
+
case "end":
|
|
13969
|
+
return _context.stop();
|
|
13929
13970
|
}
|
|
13930
13971
|
}, _callee);
|
|
13931
13972
|
}));
|
|
@@ -14054,31 +14095,29 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
14054
14095
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
14055
14096
|
var sessionId;
|
|
14056
14097
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
14057
|
-
while (1) {
|
|
14058
|
-
|
|
14059
|
-
|
|
14060
|
-
|
|
14061
|
-
|
|
14062
|
-
|
|
14063
|
-
|
|
14064
|
-
|
|
14065
|
-
|
|
14066
|
-
|
|
14098
|
+
while (1) switch (_context.prev = _context.next) {
|
|
14099
|
+
case 0:
|
|
14100
|
+
_context.next = 2;
|
|
14101
|
+
return getSessionId();
|
|
14102
|
+
case 2:
|
|
14103
|
+
sessionId = _context.sent;
|
|
14104
|
+
_context.next = 5;
|
|
14105
|
+
return outLogin({
|
|
14106
|
+
sessionId: sessionId
|
|
14107
|
+
});
|
|
14108
|
+
case 5:
|
|
14109
|
+
// @ts-ignore
|
|
14110
|
+
if (BUILD_TYPE) {
|
|
14111
|
+
message$1.success('退出登录成功');
|
|
14112
|
+
history.replace({
|
|
14113
|
+
pathname: '/user/login'
|
|
14067
14114
|
});
|
|
14068
|
-
|
|
14069
|
-
|
|
14070
|
-
|
|
14071
|
-
|
|
14072
|
-
|
|
14073
|
-
|
|
14074
|
-
});
|
|
14075
|
-
} else {
|
|
14076
|
-
setLoginOutPath();
|
|
14077
|
-
}
|
|
14078
|
-
case 6:
|
|
14079
|
-
case "end":
|
|
14080
|
-
return _context.stop();
|
|
14081
|
-
}
|
|
14115
|
+
} else {
|
|
14116
|
+
setLoginOutPath();
|
|
14117
|
+
}
|
|
14118
|
+
case 6:
|
|
14119
|
+
case "end":
|
|
14120
|
+
return _context.stop();
|
|
14082
14121
|
}
|
|
14083
14122
|
}, _callee);
|
|
14084
14123
|
}));
|
|
@@ -15906,6 +15945,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
15906
15945
|
showSubMenu: isShow
|
|
15907
15946
|
});
|
|
15908
15947
|
}, 500);
|
|
15948
|
+
//设置tabs标签左右滚动
|
|
15909
15949
|
_this.setTabNavTransLate = function (num) {
|
|
15910
15950
|
var _document$getElementB, _document$getElementB2, _document$getElementB3, _document$getElementB4, _document$defaultView;
|
|
15911
15951
|
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];
|
|
@@ -16586,14 +16626,12 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
16586
16626
|
request: function () {
|
|
16587
16627
|
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
16588
16628
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
16589
|
-
while (1) {
|
|
16590
|
-
|
|
16591
|
-
|
|
16592
|
-
|
|
16593
|
-
|
|
16594
|
-
|
|
16595
|
-
return _context.stop();
|
|
16596
|
-
}
|
|
16629
|
+
while (1) switch (_context.prev = _context.next) {
|
|
16630
|
+
case 0:
|
|
16631
|
+
return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
|
|
16632
|
+
case 1:
|
|
16633
|
+
case "end":
|
|
16634
|
+
return _context.stop();
|
|
16597
16635
|
}
|
|
16598
16636
|
}, _callee);
|
|
16599
16637
|
}));
|
|
@@ -16731,7 +16769,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
16731
16769
|
}]);
|
|
16732
16770
|
return WrapperComponent;
|
|
16733
16771
|
}(React.Component);
|
|
16734
|
-
var index$
|
|
16772
|
+
var index$6 = (function (props) {
|
|
16735
16773
|
var _useModel = useModel('@@initialState'),
|
|
16736
16774
|
_useModel$initialStat = _useModel.initialState,
|
|
16737
16775
|
initialState = _useModel$initialStat === void 0 ? {} : _useModel$initialStat;
|
|
@@ -16972,7 +17010,7 @@ var FixedScrollBar = function FixedScrollBar(_ref, ref) {
|
|
|
16972
17010
|
};
|
|
16973
17011
|
var FixedScrollBar$1 = /*#__PURE__*/React.forwardRef(FixedScrollBar);
|
|
16974
17012
|
|
|
16975
|
-
var index$
|
|
17013
|
+
var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
16976
17014
|
var _useState = useState(false),
|
|
16977
17015
|
_useState2 = _slicedToArray(_useState, 2),
|
|
16978
17016
|
show = _useState2[0],
|
|
@@ -24273,28 +24311,26 @@ var valueType = {
|
|
|
24273
24311
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
24274
24312
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
24275
24313
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
24276
|
-
while (1) {
|
|
24277
|
-
|
|
24278
|
-
|
|
24279
|
-
|
|
24280
|
-
|
|
24281
|
-
|
|
24282
|
-
|
|
24283
|
-
|
|
24284
|
-
return
|
|
24285
|
-
|
|
24286
|
-
|
|
24287
|
-
|
|
24288
|
-
|
|
24289
|
-
|
|
24290
|
-
|
|
24291
|
-
|
|
24292
|
-
|
|
24293
|
-
|
|
24294
|
-
|
|
24295
|
-
|
|
24296
|
-
return _context.stop();
|
|
24297
|
-
}
|
|
24314
|
+
while (1) switch (_context.prev = _context.next) {
|
|
24315
|
+
case 0:
|
|
24316
|
+
_context.next = 2;
|
|
24317
|
+
return request$1({
|
|
24318
|
+
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
24319
|
+
converter: function converter(_ref2) {
|
|
24320
|
+
var data = _ref2.data;
|
|
24321
|
+
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
24322
|
+
return {
|
|
24323
|
+
text: d.name,
|
|
24324
|
+
value: d.code || d.brandCode
|
|
24325
|
+
};
|
|
24326
|
+
});
|
|
24327
|
+
}
|
|
24328
|
+
});
|
|
24329
|
+
case 2:
|
|
24330
|
+
return _context.abrupt("return", _context.sent);
|
|
24331
|
+
case 3:
|
|
24332
|
+
case "end":
|
|
24333
|
+
return _context.stop();
|
|
24298
24334
|
}
|
|
24299
24335
|
}, _callee);
|
|
24300
24336
|
}));
|
|
@@ -24344,55 +24380,53 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
24344
24380
|
useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
24345
24381
|
var _ref$current, source;
|
|
24346
24382
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
24347
|
-
while (1) {
|
|
24348
|
-
|
|
24349
|
-
|
|
24350
|
-
|
|
24351
|
-
|
|
24352
|
-
|
|
24353
|
-
|
|
24354
|
-
|
|
24355
|
-
|
|
24356
|
-
|
|
24357
|
-
};
|
|
24358
|
-
}
|
|
24359
|
-
return prev;
|
|
24360
|
-
});
|
|
24361
|
-
case 2:
|
|
24362
|
-
if (!record.dictionaryCode) {
|
|
24363
|
-
_context.next = 17;
|
|
24364
|
-
break;
|
|
24365
|
-
}
|
|
24366
|
-
if (!(record.choiceType == 20)) {
|
|
24367
|
-
_context.next = 7;
|
|
24368
|
-
break;
|
|
24383
|
+
while (1) switch (_context.prev = _context.next) {
|
|
24384
|
+
case 0:
|
|
24385
|
+
_context.next = 2;
|
|
24386
|
+
return setIsShowAndType(function (prev) {
|
|
24387
|
+
if (record.inputType === 20 || record.inputType === 30) {
|
|
24388
|
+
return {
|
|
24389
|
+
isShow: true,
|
|
24390
|
+
singleOrMultiple: record.inputType,
|
|
24391
|
+
type: record.choiceType
|
|
24392
|
+
};
|
|
24369
24393
|
}
|
|
24370
|
-
|
|
24371
|
-
|
|
24394
|
+
return prev;
|
|
24395
|
+
});
|
|
24396
|
+
case 2:
|
|
24397
|
+
if (!record.dictionaryCode) {
|
|
24398
|
+
_context.next = 17;
|
|
24372
24399
|
break;
|
|
24373
|
-
|
|
24374
|
-
|
|
24375
|
-
|
|
24376
|
-
break;
|
|
24377
|
-
}
|
|
24378
|
-
_context.next = 10;
|
|
24379
|
-
return getDynamicDict(record.dictionaryCode);
|
|
24380
|
-
case 10:
|
|
24381
|
-
_context.t1 = _context.sent;
|
|
24382
|
-
_context.next = 14;
|
|
24400
|
+
}
|
|
24401
|
+
if (!(record.choiceType == 20)) {
|
|
24402
|
+
_context.next = 7;
|
|
24383
24403
|
break;
|
|
24384
|
-
|
|
24385
|
-
|
|
24386
|
-
|
|
24387
|
-
|
|
24388
|
-
|
|
24389
|
-
|
|
24390
|
-
|
|
24391
|
-
|
|
24392
|
-
|
|
24393
|
-
|
|
24394
|
-
|
|
24395
|
-
|
|
24404
|
+
}
|
|
24405
|
+
_context.t0 = getDictionarySource(record.dictionaryCode);
|
|
24406
|
+
_context.next = 15;
|
|
24407
|
+
break;
|
|
24408
|
+
case 7:
|
|
24409
|
+
if (!(record.choiceType == 30)) {
|
|
24410
|
+
_context.next = 13;
|
|
24411
|
+
break;
|
|
24412
|
+
}
|
|
24413
|
+
_context.next = 10;
|
|
24414
|
+
return getDynamicDict(record.dictionaryCode);
|
|
24415
|
+
case 10:
|
|
24416
|
+
_context.t1 = _context.sent;
|
|
24417
|
+
_context.next = 14;
|
|
24418
|
+
break;
|
|
24419
|
+
case 13:
|
|
24420
|
+
_context.t1 = [];
|
|
24421
|
+
case 14:
|
|
24422
|
+
_context.t0 = _context.t1;
|
|
24423
|
+
case 15:
|
|
24424
|
+
source = _context.t0;
|
|
24425
|
+
// @ts-ignore
|
|
24426
|
+
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
24427
|
+
case 17:
|
|
24428
|
+
case "end":
|
|
24429
|
+
return _context.stop();
|
|
24396
24430
|
}
|
|
24397
24431
|
}, _callee);
|
|
24398
24432
|
})));
|
|
@@ -24460,30 +24494,28 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
24460
24494
|
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
24461
24495
|
var form, values, name, relates, source;
|
|
24462
24496
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
24463
|
-
while (1) {
|
|
24464
|
-
|
|
24465
|
-
|
|
24466
|
-
|
|
24467
|
-
if (values[0]) {
|
|
24468
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
24469
|
-
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
24470
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
24471
|
-
}
|
|
24472
|
-
if (!values[1]) {
|
|
24473
|
-
_context2.next = 9;
|
|
24474
|
-
break;
|
|
24475
|
-
}
|
|
24476
|
-
_context2.next = 5;
|
|
24477
|
-
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
24478
|
-
case 5:
|
|
24479
|
-
source = _context2.sent;
|
|
24497
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
24498
|
+
case 0:
|
|
24499
|
+
form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
|
|
24500
|
+
if (values[0]) {
|
|
24480
24501
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
24481
24502
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
24482
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0],
|
|
24483
|
-
|
|
24484
|
-
|
|
24485
|
-
|
|
24486
|
-
|
|
24503
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
24504
|
+
}
|
|
24505
|
+
if (!values[1]) {
|
|
24506
|
+
_context2.next = 9;
|
|
24507
|
+
break;
|
|
24508
|
+
}
|
|
24509
|
+
_context2.next = 5;
|
|
24510
|
+
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
24511
|
+
case 5:
|
|
24512
|
+
source = _context2.sent;
|
|
24513
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
24514
|
+
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
24515
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
24516
|
+
case 9:
|
|
24517
|
+
case "end":
|
|
24518
|
+
return _context2.stop();
|
|
24487
24519
|
}
|
|
24488
24520
|
}, _callee2);
|
|
24489
24521
|
}));
|
|
@@ -24943,43 +24975,41 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
24943
24975
|
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
24944
24976
|
var values, name, form, source;
|
|
24945
24977
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
24946
|
-
while (1) {
|
|
24947
|
-
|
|
24948
|
-
|
|
24949
|
-
|
|
24950
|
-
|
|
24951
|
-
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
24952
|
-
form.setFieldVisible(name, false);
|
|
24953
|
-
}
|
|
24954
|
-
if (!(values[0] === 30)) {
|
|
24955
|
-
_context3.next = 10;
|
|
24956
|
-
break;
|
|
24957
|
-
}
|
|
24958
|
-
_context3.next = 5;
|
|
24959
|
-
return request$1({
|
|
24960
|
-
url: '/basic/dictDynamicItem/queryList',
|
|
24961
|
-
converter: function converter(_ref11) {
|
|
24962
|
-
var data = _ref11.data;
|
|
24963
|
-
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
24964
|
-
return {
|
|
24965
|
-
text: d.dictCode,
|
|
24966
|
-
value: d.dictCode
|
|
24967
|
-
};
|
|
24968
|
-
});
|
|
24969
|
-
}
|
|
24970
|
-
});
|
|
24971
|
-
case 5:
|
|
24972
|
-
source = _context3.sent;
|
|
24973
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
24974
|
-
form.setFieldVisible(name, true);
|
|
24975
|
-
_context3.next = 11;
|
|
24976
|
-
break;
|
|
24977
|
-
case 10:
|
|
24978
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
24979
|
+
case 0:
|
|
24980
|
+
values = _ref10.values, name = _ref10.name, form = _ref10.form;
|
|
24981
|
+
if (values[1] === 40) {
|
|
24982
|
+
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
24978
24983
|
form.setFieldVisible(name, false);
|
|
24979
|
-
|
|
24980
|
-
|
|
24981
|
-
|
|
24982
|
-
|
|
24984
|
+
}
|
|
24985
|
+
if (!(values[0] === 30)) {
|
|
24986
|
+
_context3.next = 10;
|
|
24987
|
+
break;
|
|
24988
|
+
}
|
|
24989
|
+
_context3.next = 5;
|
|
24990
|
+
return request$1({
|
|
24991
|
+
url: '/basic/dictDynamicItem/queryList',
|
|
24992
|
+
converter: function converter(_ref11) {
|
|
24993
|
+
var data = _ref11.data;
|
|
24994
|
+
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
24995
|
+
return {
|
|
24996
|
+
text: d.dictCode,
|
|
24997
|
+
value: d.dictCode
|
|
24998
|
+
};
|
|
24999
|
+
});
|
|
25000
|
+
}
|
|
25001
|
+
});
|
|
25002
|
+
case 5:
|
|
25003
|
+
source = _context3.sent;
|
|
25004
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
25005
|
+
form.setFieldVisible(name, true);
|
|
25006
|
+
_context3.next = 11;
|
|
25007
|
+
break;
|
|
25008
|
+
case 10:
|
|
25009
|
+
form.setFieldVisible(name, false);
|
|
25010
|
+
case 11:
|
|
25011
|
+
case "end":
|
|
25012
|
+
return _context3.stop();
|
|
24983
25013
|
}
|
|
24984
25014
|
}, _callee3);
|
|
24985
25015
|
}));
|
|
@@ -25168,66 +25198,64 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
25168
25198
|
var _ref$current4, _res$editableStatus;
|
|
25169
25199
|
var res, _res$defaultValue;
|
|
25170
25200
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
25171
|
-
while (1) {
|
|
25172
|
-
|
|
25173
|
-
|
|
25174
|
-
|
|
25175
|
-
|
|
25176
|
-
|
|
25177
|
-
|
|
25178
|
-
|
|
25179
|
-
|
|
25180
|
-
|
|
25181
|
-
res.
|
|
25182
|
-
|
|
25183
|
-
|
|
25184
|
-
|
|
25185
|
-
|
|
25186
|
-
|
|
25187
|
-
|
|
25188
|
-
|
|
25189
|
-
|
|
25190
|
-
|
|
25191
|
-
|
|
25192
|
-
|
|
25201
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
25202
|
+
case 0:
|
|
25203
|
+
_context4.next = 2;
|
|
25204
|
+
return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
|
|
25205
|
+
case 2:
|
|
25206
|
+
res = _context4.sent;
|
|
25207
|
+
res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
|
|
25208
|
+
res.fieldGroup = record.fieldGroup;
|
|
25209
|
+
res.businessType = record.businessType;
|
|
25210
|
+
res.info = {
|
|
25211
|
+
enumeration: res.enumeration,
|
|
25212
|
+
dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
|
|
25213
|
+
formula: res.formula,
|
|
25214
|
+
scale: res.scale,
|
|
25215
|
+
variable: res.variable
|
|
25216
|
+
};
|
|
25217
|
+
res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
|
|
25218
|
+
res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
|
|
25219
|
+
res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
|
|
25220
|
+
if (res.inputType === 40) {
|
|
25221
|
+
res.valueType = 22;
|
|
25222
|
+
}
|
|
25223
|
+
// 把数组处理成文本
|
|
25224
|
+
if (res.inputType === 30) {
|
|
25225
|
+
if (res.defaultValue) {
|
|
25226
|
+
res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
|
|
25193
25227
|
}
|
|
25194
|
-
|
|
25195
|
-
|
|
25196
|
-
|
|
25197
|
-
|
|
25198
|
-
|
|
25228
|
+
}
|
|
25229
|
+
res.fieldMapping = res.fieldMapping || '';
|
|
25230
|
+
delete res.formula;
|
|
25231
|
+
delete res.showValue;
|
|
25232
|
+
if (!(mode === 'create')) {
|
|
25233
|
+
_context4.next = 18;
|
|
25234
|
+
break;
|
|
25235
|
+
}
|
|
25236
|
+
request$1({
|
|
25237
|
+
url: "/basic/flow/businessField",
|
|
25238
|
+
method: 'POST',
|
|
25239
|
+
params: res,
|
|
25240
|
+
successMessage: '创建成功!',
|
|
25241
|
+
converter: function converter() {
|
|
25242
|
+
onParentOk();
|
|
25199
25243
|
}
|
|
25200
|
-
|
|
25201
|
-
|
|
25202
|
-
|
|
25203
|
-
|
|
25204
|
-
|
|
25205
|
-
|
|
25244
|
+
});
|
|
25245
|
+
return _context4.abrupt("return");
|
|
25246
|
+
case 18:
|
|
25247
|
+
request$1({
|
|
25248
|
+
url: "/basic/flow/businessField/".concat(record.id),
|
|
25249
|
+
method: 'PATCH',
|
|
25250
|
+
params: res,
|
|
25251
|
+
successMessage: '修改成功!',
|
|
25252
|
+
converter: function converter() {
|
|
25253
|
+
onParentOk();
|
|
25206
25254
|
}
|
|
25207
|
-
|
|
25208
|
-
|
|
25209
|
-
|
|
25210
|
-
|
|
25211
|
-
successMessage: '创建成功!',
|
|
25212
|
-
converter: function converter() {
|
|
25213
|
-
onParentOk();
|
|
25214
|
-
}
|
|
25215
|
-
});
|
|
25216
|
-
return _context4.abrupt("return");
|
|
25217
|
-
case 18:
|
|
25218
|
-
request$1({
|
|
25219
|
-
url: "/basic/flow/businessField/".concat(record.id),
|
|
25220
|
-
method: 'PATCH',
|
|
25221
|
-
params: res,
|
|
25222
|
-
successMessage: '修改成功!',
|
|
25223
|
-
converter: function converter() {
|
|
25224
|
-
onParentOk();
|
|
25225
|
-
}
|
|
25226
|
-
});
|
|
25227
|
-
case 19:
|
|
25228
|
-
case "end":
|
|
25229
|
-
return _context4.stop();
|
|
25230
|
-
}
|
|
25255
|
+
});
|
|
25256
|
+
case 19:
|
|
25257
|
+
case "end":
|
|
25258
|
+
return _context4.stop();
|
|
25231
25259
|
}
|
|
25232
25260
|
}, _callee4);
|
|
25233
25261
|
}));
|
|
@@ -26012,28 +26040,26 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
26012
26040
|
useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
26013
26041
|
var resData, data;
|
|
26014
26042
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26015
|
-
while (1) {
|
|
26016
|
-
|
|
26017
|
-
|
|
26018
|
-
|
|
26019
|
-
|
|
26020
|
-
|
|
26021
|
-
|
|
26022
|
-
|
|
26023
|
-
|
|
26024
|
-
|
|
26025
|
-
|
|
26026
|
-
|
|
26027
|
-
|
|
26028
|
-
|
|
26029
|
-
|
|
26030
|
-
|
|
26031
|
-
|
|
26032
|
-
|
|
26033
|
-
|
|
26034
|
-
|
|
26035
|
-
return _context.stop();
|
|
26036
|
-
}
|
|
26043
|
+
while (1) switch (_context.prev = _context.next) {
|
|
26044
|
+
case 0:
|
|
26045
|
+
if (!(!source && initRequestSource)) {
|
|
26046
|
+
_context.next = 6;
|
|
26047
|
+
break;
|
|
26048
|
+
}
|
|
26049
|
+
_context.next = 3;
|
|
26050
|
+
return initRequestSource();
|
|
26051
|
+
case 3:
|
|
26052
|
+
resData = _context.sent;
|
|
26053
|
+
data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
|
|
26054
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
26055
|
+
label: item.text,
|
|
26056
|
+
isLeaf: false
|
|
26057
|
+
});
|
|
26058
|
+
})) || [];
|
|
26059
|
+
setHandSource(data);
|
|
26060
|
+
case 6:
|
|
26061
|
+
case "end":
|
|
26062
|
+
return _context.stop();
|
|
26037
26063
|
}
|
|
26038
26064
|
}, _callee);
|
|
26039
26065
|
})), []);
|
|
@@ -26165,20 +26191,18 @@ function getRegularThresholdRange(_x) {
|
|
|
26165
26191
|
function _getRegularThresholdRange() {
|
|
26166
26192
|
_getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
26167
26193
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26168
|
-
while (1) {
|
|
26169
|
-
|
|
26170
|
-
|
|
26171
|
-
|
|
26172
|
-
|
|
26173
|
-
|
|
26174
|
-
|
|
26175
|
-
|
|
26176
|
-
|
|
26177
|
-
|
|
26178
|
-
|
|
26179
|
-
|
|
26180
|
-
return _context.stop();
|
|
26181
|
-
}
|
|
26194
|
+
while (1) switch (_context.prev = _context.next) {
|
|
26195
|
+
case 0:
|
|
26196
|
+
return _context.abrupt("return", axios({
|
|
26197
|
+
url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
|
|
26198
|
+
method: 'POST',
|
|
26199
|
+
data: _objectSpread2(_objectSpread2({}, params), {}, {
|
|
26200
|
+
queryIdentify: undefined
|
|
26201
|
+
})
|
|
26202
|
+
}));
|
|
26203
|
+
case 1:
|
|
26204
|
+
case "end":
|
|
26205
|
+
return _context.stop();
|
|
26182
26206
|
}
|
|
26183
26207
|
}, _callee);
|
|
26184
26208
|
}));
|
|
@@ -26317,137 +26341,136 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26317
26341
|
_this.getRegularThresholdRange(queryIdentify, propertyCode, queryIdentifyType);
|
|
26318
26342
|
});
|
|
26319
26343
|
};
|
|
26344
|
+
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
26320
26345
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
26321
26346
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
26322
26347
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
26323
26348
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26324
|
-
while (1) {
|
|
26325
|
-
|
|
26326
|
-
|
|
26327
|
-
|
|
26328
|
-
|
|
26329
|
-
|
|
26330
|
-
|
|
26331
|
-
|
|
26332
|
-
|
|
26333
|
-
|
|
26334
|
-
|
|
26335
|
-
|
|
26336
|
-
|
|
26337
|
-
|
|
26338
|
-
|
|
26339
|
-
|
|
26340
|
-
|
|
26341
|
-
|
|
26342
|
-
|
|
26343
|
-
|
|
26344
|
-
|
|
26345
|
-
|
|
26346
|
-
|
|
26347
|
-
|
|
26348
|
-
|
|
26349
|
-
|
|
26350
|
-
|
|
26351
|
-
|
|
26352
|
-
|
|
26353
|
-
|
|
26354
|
-
|
|
26355
|
-
|
|
26356
|
-
|
|
26357
|
-
|
|
26358
|
-
|
|
26359
|
-
|
|
26360
|
-
|
|
26361
|
-
|
|
26362
|
-
|
|
26363
|
-
|
|
26364
|
-
|
|
26365
|
-
|
|
26366
|
-
|
|
26367
|
-
|
|
26368
|
-
|
|
26369
|
-
|
|
26370
|
-
|
|
26371
|
-
|
|
26372
|
-
|
|
26373
|
-
|
|
26374
|
-
|
|
26375
|
-
|
|
26376
|
-
|
|
26377
|
-
|
|
26378
|
-
|
|
26379
|
-
|
|
26380
|
-
|
|
26381
|
-
|
|
26382
|
-
|
|
26383
|
-
|
|
26384
|
-
|
|
26385
|
-
|
|
26386
|
-
|
|
26387
|
-
|
|
26388
|
-
|
|
26389
|
-
|
|
26390
|
-
|
|
26391
|
-
|
|
26392
|
-
|
|
26393
|
-
|
|
26394
|
-
|
|
26395
|
-
}) : [];
|
|
26396
|
-
}
|
|
26397
|
-
if (queryIdentifyType === 'dynamicDictCodeIdentify') {
|
|
26398
|
-
var _handleData3;
|
|
26399
|
-
_handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
|
|
26400
|
-
return {
|
|
26401
|
-
code: i.code.toString(),
|
|
26402
|
-
name: i.name
|
|
26403
|
-
};
|
|
26404
|
-
}) : [];
|
|
26405
|
-
}
|
|
26406
|
-
_this.setState({
|
|
26407
|
-
thresholdList: _handleData
|
|
26408
|
-
});
|
|
26349
|
+
while (1) switch (_context.prev = _context.next) {
|
|
26350
|
+
case 0:
|
|
26351
|
+
if (queryIdentify) {
|
|
26352
|
+
_context.next = 2;
|
|
26353
|
+
break;
|
|
26354
|
+
}
|
|
26355
|
+
return _context.abrupt("return");
|
|
26356
|
+
case 2:
|
|
26357
|
+
thresholdQuery = _this.state.thresholdQuery;
|
|
26358
|
+
extraRequestUrl = '';
|
|
26359
|
+
querParams = setParams(propertyCode, thresholdQuery);
|
|
26360
|
+
if (!queryIdentityInfo.find(function (item) {
|
|
26361
|
+
return item.identity == propertyCode;
|
|
26362
|
+
})) {
|
|
26363
|
+
_context.next = 10;
|
|
26364
|
+
break;
|
|
26365
|
+
}
|
|
26366
|
+
//判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
|
|
26367
|
+
needQueryList = queryIdentityInfo.find(function (item) {
|
|
26368
|
+
return item.identity == propertyCode;
|
|
26369
|
+
}).queryParam.filter(function (item) {
|
|
26370
|
+
return item.isRequired;
|
|
26371
|
+
}).map(function (item) {
|
|
26372
|
+
return item.queryKey;
|
|
26373
|
+
});
|
|
26374
|
+
if (!needQueryList.some(function (item) {
|
|
26375
|
+
return !querParams[item] || !querParams[item].length;
|
|
26376
|
+
})) {
|
|
26377
|
+
_context.next = 9;
|
|
26378
|
+
break;
|
|
26379
|
+
}
|
|
26380
|
+
return _context.abrupt("return");
|
|
26381
|
+
case 9:
|
|
26382
|
+
extraRequestUrl = queryIdentityInfo.find(function (item) {
|
|
26383
|
+
return item.identity == propertyCode;
|
|
26384
|
+
}).requestUrl || '';
|
|
26385
|
+
case 10:
|
|
26386
|
+
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
26387
|
+
extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
|
|
26388
|
+
querParams = {
|
|
26389
|
+
dictCode: queryIdentify
|
|
26390
|
+
};
|
|
26391
|
+
} else if (queryIdentifyType === 'dynamicDictCodeIdentify') {
|
|
26392
|
+
extraRequestUrl = "dictDynamicItem/getDynamicData/".concat(queryIdentify); // 字典接口
|
|
26393
|
+
// querParams = { dictCode: queryIdentify }
|
|
26394
|
+
}
|
|
26395
|
+
if (!extraRequestUrl) {
|
|
26396
|
+
_context.next = 16;
|
|
26397
|
+
break;
|
|
26398
|
+
}
|
|
26399
|
+
if (queryIdentify == 'maintain_area_code') {
|
|
26400
|
+
extraRequestUrl = "/basic/".concat(extraRequestUrl).concat(querParams.memberCardCode, "?").concat(stringify(querParams));
|
|
26401
|
+
} else if (queryIdentifyType == 'dictCodeIdentify') {
|
|
26402
|
+
extraRequestUrl = "/basic/".concat(extraRequestUrl, "?").concat(stringify(querParams));
|
|
26403
|
+
} else if (queryIdentifyType == 'dynamicDictCodeIdentify') {
|
|
26404
|
+
extraRequestUrl = "/basic/".concat(extraRequestUrl);
|
|
26405
|
+
}
|
|
26406
|
+
request$1({
|
|
26407
|
+
url: extraRequestUrl,
|
|
26408
|
+
method: 'get',
|
|
26409
|
+
converter: function converter(res) {
|
|
26410
|
+
if (handleError(res)) {
|
|
26411
|
+
var _handleData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
26412
|
+
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
26413
|
+
var _handleData2;
|
|
26414
|
+
_handleData = ((_handleData2 = _handleData) === null || _handleData2 === void 0 ? void 0 : _handleData2.length) ? _handleData.map(function (i) {
|
|
26415
|
+
return {
|
|
26416
|
+
code: i.dictItemCode,
|
|
26417
|
+
name: i.dictItemName
|
|
26418
|
+
};
|
|
26419
|
+
}) : [];
|
|
26409
26420
|
}
|
|
26410
|
-
|
|
26421
|
+
if (queryIdentifyType === 'dynamicDictCodeIdentify') {
|
|
26422
|
+
var _handleData3;
|
|
26423
|
+
_handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
|
|
26424
|
+
return {
|
|
26425
|
+
code: i.code.toString(),
|
|
26426
|
+
name: i.name
|
|
26427
|
+
};
|
|
26428
|
+
}) : [];
|
|
26429
|
+
}
|
|
26430
|
+
_this.setState({
|
|
26431
|
+
thresholdList: _handleData
|
|
26432
|
+
});
|
|
26411
26433
|
}
|
|
26412
|
-
|
|
26413
|
-
_context.next = 29;
|
|
26414
|
-
break;
|
|
26415
|
-
case 16:
|
|
26416
|
-
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
26417
|
-
_context.next = 20;
|
|
26418
|
-
break;
|
|
26434
|
+
return handleData;
|
|
26419
26435
|
}
|
|
26420
|
-
|
|
26421
|
-
|
|
26422
|
-
|
|
26423
|
-
|
|
26436
|
+
});
|
|
26437
|
+
_context.next = 29;
|
|
26438
|
+
break;
|
|
26439
|
+
case 16:
|
|
26440
|
+
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
26441
|
+
_context.next = 20;
|
|
26424
26442
|
break;
|
|
26425
|
-
|
|
26426
|
-
|
|
26427
|
-
|
|
26428
|
-
|
|
26429
|
-
|
|
26430
|
-
|
|
26443
|
+
}
|
|
26444
|
+
_this.setState({
|
|
26445
|
+
thresholdList: queryIdentify
|
|
26446
|
+
});
|
|
26447
|
+
_context.next = 29;
|
|
26448
|
+
break;
|
|
26449
|
+
case 20:
|
|
26450
|
+
if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
|
|
26451
|
+
_context.next = 24;
|
|
26452
|
+
break;
|
|
26453
|
+
}
|
|
26454
|
+
// TODO待处理
|
|
26455
|
+
_this.setState({
|
|
26456
|
+
thresholdList: []
|
|
26457
|
+
});
|
|
26458
|
+
_context.next = 29;
|
|
26459
|
+
break;
|
|
26460
|
+
case 24:
|
|
26461
|
+
querParams.queryIdentify = queryIdentify;
|
|
26462
|
+
_context.next = 27;
|
|
26463
|
+
return getRegularThresholdRange(querParams);
|
|
26464
|
+
case 27:
|
|
26465
|
+
res = _context.sent;
|
|
26466
|
+
if (handleError(res)) {
|
|
26431
26467
|
_this.setState({
|
|
26432
|
-
thresholdList: []
|
|
26468
|
+
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
26433
26469
|
});
|
|
26434
|
-
|
|
26435
|
-
|
|
26436
|
-
|
|
26437
|
-
|
|
26438
|
-
_context.next = 27;
|
|
26439
|
-
return getRegularThresholdRange(querParams);
|
|
26440
|
-
case 27:
|
|
26441
|
-
res = _context.sent;
|
|
26442
|
-
if (handleError(res)) {
|
|
26443
|
-
_this.setState({
|
|
26444
|
-
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
26445
|
-
});
|
|
26446
|
-
}
|
|
26447
|
-
case 29:
|
|
26448
|
-
case "end":
|
|
26449
|
-
return _context.stop();
|
|
26450
|
-
}
|
|
26470
|
+
}
|
|
26471
|
+
case 29:
|
|
26472
|
+
case "end":
|
|
26473
|
+
return _context.stop();
|
|
26451
26474
|
}
|
|
26452
26475
|
}, _callee);
|
|
26453
26476
|
}));
|
|
@@ -27266,32 +27289,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27266
27289
|
notChangeOnSelect: true,
|
|
27267
27290
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
27268
27291
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
27269
|
-
while (1) {
|
|
27270
|
-
|
|
27271
|
-
|
|
27272
|
-
|
|
27273
|
-
|
|
27274
|
-
|
|
27275
|
-
|
|
27276
|
-
|
|
27277
|
-
|
|
27278
|
-
|
|
27279
|
-
|
|
27280
|
-
|
|
27281
|
-
|
|
27282
|
-
|
|
27283
|
-
|
|
27284
|
-
|
|
27285
|
-
|
|
27286
|
-
|
|
27287
|
-
|
|
27288
|
-
|
|
27289
|
-
|
|
27290
|
-
|
|
27291
|
-
|
|
27292
|
-
|
|
27293
|
-
return _context2.stop();
|
|
27294
|
-
}
|
|
27292
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
27293
|
+
case 0:
|
|
27294
|
+
_context2.next = 2;
|
|
27295
|
+
return request$1({
|
|
27296
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
27297
|
+
method: 'get',
|
|
27298
|
+
converter: function converter(_ref3) {
|
|
27299
|
+
var data = _ref3.data;
|
|
27300
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27301
|
+
return {
|
|
27302
|
+
text: item.name,
|
|
27303
|
+
value: item.id,
|
|
27304
|
+
level: item.level,
|
|
27305
|
+
id: item.id
|
|
27306
|
+
};
|
|
27307
|
+
}) : [];
|
|
27308
|
+
return handleData;
|
|
27309
|
+
}
|
|
27310
|
+
});
|
|
27311
|
+
case 2:
|
|
27312
|
+
return _context2.abrupt("return", _context2.sent);
|
|
27313
|
+
case 3:
|
|
27314
|
+
case "end":
|
|
27315
|
+
return _context2.stop();
|
|
27295
27316
|
}
|
|
27296
27317
|
}, _callee2);
|
|
27297
27318
|
})),
|
|
@@ -27317,32 +27338,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27317
27338
|
notChangeOnSelect: true,
|
|
27318
27339
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
27319
27340
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
27320
|
-
while (1) {
|
|
27321
|
-
|
|
27322
|
-
|
|
27323
|
-
|
|
27324
|
-
|
|
27325
|
-
|
|
27326
|
-
|
|
27327
|
-
|
|
27328
|
-
|
|
27329
|
-
|
|
27330
|
-
|
|
27331
|
-
|
|
27332
|
-
|
|
27333
|
-
|
|
27334
|
-
|
|
27335
|
-
|
|
27336
|
-
|
|
27337
|
-
|
|
27338
|
-
|
|
27339
|
-
|
|
27340
|
-
|
|
27341
|
-
|
|
27342
|
-
|
|
27343
|
-
|
|
27344
|
-
return _context3.stop();
|
|
27345
|
-
}
|
|
27341
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
27342
|
+
case 0:
|
|
27343
|
+
_context3.next = 2;
|
|
27344
|
+
return request$1({
|
|
27345
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
27346
|
+
method: 'get',
|
|
27347
|
+
converter: function converter(_ref5) {
|
|
27348
|
+
var data = _ref5.data;
|
|
27349
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27350
|
+
return {
|
|
27351
|
+
text: item.name,
|
|
27352
|
+
value: item.id,
|
|
27353
|
+
level: item.level,
|
|
27354
|
+
id: item.id
|
|
27355
|
+
};
|
|
27356
|
+
}) : [];
|
|
27357
|
+
return handleData;
|
|
27358
|
+
}
|
|
27359
|
+
});
|
|
27360
|
+
case 2:
|
|
27361
|
+
return _context3.abrupt("return", _context3.sent);
|
|
27362
|
+
case 3:
|
|
27363
|
+
case "end":
|
|
27364
|
+
return _context3.stop();
|
|
27346
27365
|
}
|
|
27347
27366
|
}, _callee3);
|
|
27348
27367
|
})),
|
|
@@ -27370,32 +27389,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27370
27389
|
notChangeOnSelect: true,
|
|
27371
27390
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
27372
27391
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
27373
|
-
while (1) {
|
|
27374
|
-
|
|
27375
|
-
|
|
27376
|
-
|
|
27377
|
-
|
|
27378
|
-
|
|
27379
|
-
|
|
27380
|
-
|
|
27381
|
-
|
|
27382
|
-
|
|
27383
|
-
|
|
27384
|
-
|
|
27385
|
-
|
|
27386
|
-
|
|
27387
|
-
|
|
27388
|
-
|
|
27389
|
-
|
|
27390
|
-
|
|
27391
|
-
|
|
27392
|
-
|
|
27393
|
-
|
|
27394
|
-
|
|
27395
|
-
|
|
27396
|
-
|
|
27397
|
-
return _context4.stop();
|
|
27398
|
-
}
|
|
27392
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
27393
|
+
case 0:
|
|
27394
|
+
_context4.next = 2;
|
|
27395
|
+
return request$1({
|
|
27396
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
27397
|
+
method: 'get',
|
|
27398
|
+
converter: function converter(_ref7) {
|
|
27399
|
+
var data = _ref7.data;
|
|
27400
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27401
|
+
return {
|
|
27402
|
+
text: item.name,
|
|
27403
|
+
value: item.id,
|
|
27404
|
+
level: item.level,
|
|
27405
|
+
id: item.id
|
|
27406
|
+
};
|
|
27407
|
+
}) : [];
|
|
27408
|
+
return handleData;
|
|
27409
|
+
}
|
|
27410
|
+
});
|
|
27411
|
+
case 2:
|
|
27412
|
+
return _context4.abrupt("return", _context4.sent);
|
|
27413
|
+
case 3:
|
|
27414
|
+
case "end":
|
|
27415
|
+
return _context4.stop();
|
|
27399
27416
|
}
|
|
27400
27417
|
}, _callee4);
|
|
27401
27418
|
})),
|
|
@@ -28512,8 +28529,6 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
28512
28529
|
});
|
|
28513
28530
|
}
|
|
28514
28531
|
}
|
|
28515
|
-
|
|
28516
|
-
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
28517
28532
|
}, {
|
|
28518
28533
|
key: "render",
|
|
28519
28534
|
value: function render() {
|
|
@@ -29344,6 +29359,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29344
29359
|
callBack(ruleClassData);
|
|
29345
29360
|
});
|
|
29346
29361
|
};
|
|
29362
|
+
// 树结构 转化成 平行树 (递归函数)
|
|
29347
29363
|
_this.coverToParallel = function (treeData, result) {
|
|
29348
29364
|
treeData.forEach(function (el) {
|
|
29349
29365
|
result.push(el);
|
|
@@ -29597,6 +29613,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29597
29613
|
callBack(ruleClassData);
|
|
29598
29614
|
});
|
|
29599
29615
|
};
|
|
29616
|
+
// 场景需要返回值2022.11.15
|
|
29600
29617
|
_this.renderResItem = function (itemDetail, parentDetail, ruleReturnConfig, disabled, boxStyle) {
|
|
29601
29618
|
var _ruleReturnConfig$rig;
|
|
29602
29619
|
var isShowResponse = itemDetail.response['enable'];
|
|
@@ -29894,32 +29911,30 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29894
29911
|
notChangeOnSelect: true,
|
|
29895
29912
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29896
29913
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29897
|
-
while (1) {
|
|
29898
|
-
|
|
29899
|
-
|
|
29900
|
-
|
|
29901
|
-
|
|
29902
|
-
|
|
29903
|
-
|
|
29904
|
-
|
|
29905
|
-
|
|
29906
|
-
|
|
29907
|
-
|
|
29908
|
-
|
|
29909
|
-
|
|
29910
|
-
|
|
29911
|
-
|
|
29912
|
-
|
|
29913
|
-
|
|
29914
|
-
|
|
29915
|
-
|
|
29916
|
-
|
|
29917
|
-
|
|
29918
|
-
|
|
29919
|
-
|
|
29920
|
-
|
|
29921
|
-
return _context.stop();
|
|
29922
|
-
}
|
|
29914
|
+
while (1) switch (_context.prev = _context.next) {
|
|
29915
|
+
case 0:
|
|
29916
|
+
_context.next = 2;
|
|
29917
|
+
return request$1({
|
|
29918
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
29919
|
+
method: 'get',
|
|
29920
|
+
converter: function converter(_ref2) {
|
|
29921
|
+
var data = _ref2.data;
|
|
29922
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
29923
|
+
return {
|
|
29924
|
+
text: item.name,
|
|
29925
|
+
value: item.id,
|
|
29926
|
+
level: item.level,
|
|
29927
|
+
id: item.id
|
|
29928
|
+
};
|
|
29929
|
+
}) : [];
|
|
29930
|
+
return handleData;
|
|
29931
|
+
}
|
|
29932
|
+
});
|
|
29933
|
+
case 2:
|
|
29934
|
+
return _context.abrupt("return", _context.sent);
|
|
29935
|
+
case 3:
|
|
29936
|
+
case "end":
|
|
29937
|
+
return _context.stop();
|
|
29923
29938
|
}
|
|
29924
29939
|
}, _callee);
|
|
29925
29940
|
})),
|
|
@@ -30253,6 +30268,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30253
30268
|
}
|
|
30254
30269
|
}, "\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);
|
|
30255
30270
|
};
|
|
30271
|
+
//添加同一层级条件
|
|
30256
30272
|
_this.addPeerRule = function (itemDetail) {
|
|
30257
30273
|
var ruleClassData = _this.state.ruleClassData;
|
|
30258
30274
|
var _this$props4 = _this.props,
|
|
@@ -30273,6 +30289,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30273
30289
|
callBack(ruleClassData);
|
|
30274
30290
|
});
|
|
30275
30291
|
};
|
|
30292
|
+
//添加子层级条件
|
|
30276
30293
|
_this.addChildRules = function (itemDetail) {
|
|
30277
30294
|
var ruleClassData = _this.state.ruleClassData;
|
|
30278
30295
|
var callBack = _this.props.callBack;
|
|
@@ -30348,6 +30365,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30348
30365
|
callBack(ruleClassData);
|
|
30349
30366
|
});
|
|
30350
30367
|
};
|
|
30368
|
+
// 新增执行顺序
|
|
30351
30369
|
_this.handleSelectRuleAction = function (keys, classDataIndex, callback) {
|
|
30352
30370
|
callback();
|
|
30353
30371
|
var callBack = _this.props.callBack;
|
|
@@ -30498,4 +30516,4 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30498
30516
|
return RuleObjectComponent;
|
|
30499
30517
|
}(Component);
|
|
30500
30518
|
|
|
30501
|
-
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, BillEntry, BsCascader, index$
|
|
30519
|
+
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, BillEntry, BsCascader, index$6 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$2 as CheckOneUser, ColumnSettingTable, CommodityEntry, DataImport, DataValidation, index$4 as DetailPageWrapper, EllipsisTooltip, ExportIcon, GuideWrapper, index$5 as HomePageWrapper, JsonQueryTable, index$7 as MoreTreeTable, QueryMutipleInput, RuleObjectComponent as RuleComponent, SearchSelect, index$3 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect };
|