@bit-sun/business-component 2.3.25 → 2.3.27
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/AddSelectBusiness/index.d.ts +4 -3
- package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +2 -1
- package/dist/components/Business/BsLayouts/index.d.ts +1 -1
- package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
- package/dist/components/Business/BsSulaQueryTable/index.d.ts +2 -1
- package/dist/components/Business/BsSulaQueryTable/setting.d.ts +5 -5
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +14 -13
- package/dist/components/Business/CommodityEntry/index.d.ts +2 -1
- package/dist/components/Business/CommonAlert/index.d.ts +2 -1
- package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
- package/dist/components/Business/DetailPageWrapper/index.d.ts +6 -5
- package/dist/components/Business/HomePageWrapper/index.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/static.d.ts +2 -0
- package/dist/components/Business/SearchSelect/index.d.ts +1 -1
- package/dist/components/Business/StateFlow/index.d.ts +2 -1
- package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
- package/dist/components/Business/columnSettingTable/columnSetting.d.ts +5 -5
- package/dist/components/Business/columnSettingTable/index.d.ts +2 -2
- package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +2 -2
- package/dist/components/Business/columnSettingTable/utils.d.ts +2 -1
- package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
- package/dist/components/Functional/AddSelect/index.d.ts +2 -1
- package/dist/components/Functional/DataImport/index.d.ts +3 -3
- package/dist/components/Functional/DataValidation/index.d.ts +3 -3
- package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +2 -1
- package/dist/components/Functional/QueryMutipleInput/index.d.ts +2 -1
- package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
- package/dist/components/Functional/TreeSearchSelect/index.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/Formula.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +12 -0
- package/dist/index.esm.js +1278 -952
- package/dist/index.js +1284 -958
- package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
- 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 +162 -162
- package/src/components/Business/AddSelectBusiness/index.tsx +1060 -1060
- 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 -535
- 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 +690 -690
- 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 +426 -390
- package/src/components/Business/SearchSelect/BusinessUtils.ts +1836 -1762
- package/src/components/Business/SearchSelect/common.ts +75 -75
- package/src/components/Business/SearchSelect/index.md +1386 -1329
- package/src/components/Business/SearchSelect/index.tsx +55 -55
- 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 +185 -156
- package/src/components/Business/TreeSearchSelect/index.tsx +33 -33
- package/src/components/Business/TreeSearchSelect/utils.ts +86 -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 +71 -71
- package/src/components/Business/moreTreeTable/FixedScrollBar.tsx +87 -87
- package/src/components/Business/moreTreeTable/hooks/useSticky.ts +21 -21
- package/src/components/Business/moreTreeTable/index.less +99 -99
- package/src/components/Business/moreTreeTable/index.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 +79 -79
- 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 +1170 -1170
- 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 +879 -882
- 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 +199 -199
- package/src/components/Solution/RuleComponent/Formula.tsx +335 -335
- package/src/components/Solution/RuleComponent/InnerSelect.tsx +62 -0
- package/src/components/Solution/RuleComponent/index.d.ts +29 -29
- package/src/components/Solution/RuleComponent/index.js +2041 -2032
- 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 +2281 -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 +95 -95
- 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, Image, Popover, Card, Avatar, Tooltip, 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) {
|
|
@@ -1024,58 +1013,59 @@ var getItemDefaultWidth = function getItemDefaultWidth(item) {
|
|
|
1024
1013
|
* @returns 返回处理后的查询参数
|
|
1025
1014
|
*/
|
|
1026
1015
|
function queryParams(params, flag) {
|
|
1027
|
-
|
|
1016
|
+
var _loop = function _loop() {
|
|
1028
1017
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
params[value] = moment$1(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
1053
|
-
} else {
|
|
1054
|
-
params[value] = moment$1(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
1055
|
-
}
|
|
1056
|
-
});
|
|
1057
|
-
delete params[key];
|
|
1058
|
-
} else if (element && key.indexOf('*') >= 0) {
|
|
1059
|
-
var _dataParams4 = key.split('*');
|
|
1060
|
-
_dataParams4.forEach(function (value, index) {
|
|
1061
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
1062
|
-
});
|
|
1063
|
-
delete params[key];
|
|
1064
|
-
} else if (element && key.indexOf('_likeIn_') >= 0) {
|
|
1065
|
-
var _dataParams5 = key.split('_likeIn_');
|
|
1066
|
-
if (element.indexOf(',') >= 0) {
|
|
1067
|
-
params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
|
|
1068
|
-
params["qp-".concat(_dataParams5[0], "-like")] = null;
|
|
1018
|
+
var element = params[key];
|
|
1019
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
1020
|
+
var dataParams = key.split('*number*');
|
|
1021
|
+
dataParams.forEach(function (value, index) {
|
|
1022
|
+
params[value] = element[index];
|
|
1023
|
+
});
|
|
1024
|
+
delete params[key];
|
|
1025
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
1026
|
+
var _dataParams = key.split('*address*');
|
|
1027
|
+
_dataParams.forEach(function (value, index) {
|
|
1028
|
+
params[value] = element.PCDCode[index];
|
|
1029
|
+
});
|
|
1030
|
+
delete params[key];
|
|
1031
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
1032
|
+
var _dataParams2 = key.split('*costType*');
|
|
1033
|
+
// eslint-disable-next-line prefer-destructuring
|
|
1034
|
+
params[_dataParams2[0]] = element[1];
|
|
1035
|
+
delete params[key];
|
|
1036
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
1037
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
1038
|
+
_dataParams3.forEach(function (value, index) {
|
|
1039
|
+
if (index === 0) {
|
|
1040
|
+
params[value] = moment$1(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
1069
1041
|
} else {
|
|
1070
|
-
params[
|
|
1071
|
-
params["qp-".concat(_dataParams5[0], "-in")] = null;
|
|
1042
|
+
params[value] = moment$1(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
1072
1043
|
}
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1044
|
+
});
|
|
1045
|
+
delete params[key];
|
|
1046
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
1047
|
+
var _dataParams4 = key.split('*');
|
|
1048
|
+
_dataParams4.forEach(function (value, index) {
|
|
1049
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
1050
|
+
});
|
|
1051
|
+
delete params[key];
|
|
1052
|
+
} else if (element && key.indexOf('_likeIn_') >= 0) {
|
|
1053
|
+
var _dataParams5 = key.split('_likeIn_');
|
|
1054
|
+
if (element.indexOf(',') >= 0) {
|
|
1055
|
+
params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
|
|
1056
|
+
params["qp-".concat(_dataParams5[0], "-like")] = null;
|
|
1057
|
+
} else {
|
|
1058
|
+
params["qp-".concat(_dataParams5[0], "-like")] = element;
|
|
1059
|
+
params["qp-".concat(_dataParams5[0], "-in")] = null;
|
|
1076
1060
|
}
|
|
1077
|
-
|
|
1061
|
+
delete params[key];
|
|
1062
|
+
} else if (Array.isArray(element)) {
|
|
1063
|
+
params[key] = element.join(',');
|
|
1064
|
+
}
|
|
1078
1065
|
}
|
|
1066
|
+
};
|
|
1067
|
+
for (var key in params) {
|
|
1068
|
+
_loop();
|
|
1079
1069
|
}
|
|
1080
1070
|
return flag ? params : qs.stringify(params);
|
|
1081
1071
|
}
|
|
@@ -1121,7 +1111,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1121
1111
|
return item;
|
|
1122
1112
|
});
|
|
1123
1113
|
};
|
|
1124
|
-
var memoizeOneFormatter =
|
|
1114
|
+
var memoizeOneFormatter = index$1(formatter, isEqual);
|
|
1125
1115
|
var go2BackAndClose = function go2BackAndClose() {
|
|
1126
1116
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1127
1117
|
history.goBack();
|
|
@@ -2804,84 +2794,85 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
2804
2794
|
});
|
|
2805
2795
|
}
|
|
2806
2796
|
// 数组对象处理,对带有特殊标记的name进行处理
|
|
2807
|
-
|
|
2797
|
+
var _loop = function _loop() {
|
|
2808
2798
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
2835
|
-
}
|
|
2836
|
-
});
|
|
2837
|
-
delete params[key];
|
|
2838
|
-
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
2839
|
-
var _dataParams4 = key.split('*checkBox*');
|
|
2840
|
-
if (element) {
|
|
2841
|
-
params[_dataParams4[0]] = 0;
|
|
2799
|
+
var element = params[key];
|
|
2800
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
2801
|
+
var dataParams = key.split('*number*');
|
|
2802
|
+
dataParams.forEach(function (value, index) {
|
|
2803
|
+
params[value] = element[index];
|
|
2804
|
+
});
|
|
2805
|
+
delete params[key];
|
|
2806
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
2807
|
+
var _dataParams = key.split('*address*');
|
|
2808
|
+
_dataParams.forEach(function (value, index) {
|
|
2809
|
+
params[value] = element.PCDCode[index];
|
|
2810
|
+
});
|
|
2811
|
+
delete params[key];
|
|
2812
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
2813
|
+
var _dataParams2 = key.split('*costType*');
|
|
2814
|
+
// eslint-disable-next-line prefer-destructuring
|
|
2815
|
+
params[_dataParams2[0]] = element[1];
|
|
2816
|
+
delete params[key];
|
|
2817
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
2818
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
2819
|
+
_dataParams3.forEach(function (value, index) {
|
|
2820
|
+
if (index === 0) {
|
|
2821
|
+
params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
2822
|
+
} else {
|
|
2823
|
+
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
2842
2824
|
}
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
_dataParams7.forEach(function (value, index) {
|
|
2861
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
2862
|
-
});
|
|
2863
|
-
delete params[key];
|
|
2864
|
-
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
2865
|
-
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
2866
|
-
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
2867
|
-
if (params[key][0] === 'range') {
|
|
2868
|
-
if (params[key][1][0]) {
|
|
2869
|
-
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
2870
|
-
}
|
|
2871
|
-
if (params[key][1][1]) {
|
|
2872
|
-
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
2873
|
-
}
|
|
2825
|
+
});
|
|
2826
|
+
delete params[key];
|
|
2827
|
+
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
2828
|
+
var _dataParams4 = key.split('*checkBox*');
|
|
2829
|
+
if (element) {
|
|
2830
|
+
params[_dataParams4[0]] = 0;
|
|
2831
|
+
}
|
|
2832
|
+
delete params[key];
|
|
2833
|
+
} else if (element && key.indexOf('*cascader*') >= 0) {
|
|
2834
|
+
var _dataParams5 = key.split('*cascader*');
|
|
2835
|
+
params[_dataParams5[0]] = element[element.length - 1];
|
|
2836
|
+
delete params[key];
|
|
2837
|
+
} else if (element && key.indexOf('*date*') >= 0) {
|
|
2838
|
+
var _dataParams6 = key.split('*date*');
|
|
2839
|
+
_dataParams6.forEach(function (value, index) {
|
|
2840
|
+
if (index === 0) {
|
|
2841
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
2874
2842
|
} else {
|
|
2875
|
-
params[
|
|
2843
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
2844
|
+
}
|
|
2845
|
+
});
|
|
2846
|
+
delete params[key];
|
|
2847
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
2848
|
+
var _dataParams7 = key.split('*');
|
|
2849
|
+
_dataParams7.forEach(function (value, index) {
|
|
2850
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
2851
|
+
});
|
|
2852
|
+
delete params[key];
|
|
2853
|
+
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
2854
|
+
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
2855
|
+
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
2856
|
+
if (params[key][0] === 'range') {
|
|
2857
|
+
if (params[key][1][0]) {
|
|
2858
|
+
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
2876
2859
|
}
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
} else
|
|
2881
|
-
|
|
2860
|
+
if (params[key][1][1]) {
|
|
2861
|
+
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
2862
|
+
}
|
|
2863
|
+
} else {
|
|
2864
|
+
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
2882
2865
|
}
|
|
2883
|
-
|
|
2866
|
+
delete params[key];
|
|
2867
|
+
} else if (Array.isArray(element)) {
|
|
2868
|
+
params[key] = element.join(',');
|
|
2869
|
+
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
2870
|
+
delete params[key];
|
|
2871
|
+
}
|
|
2884
2872
|
}
|
|
2873
|
+
};
|
|
2874
|
+
for (var key in params) {
|
|
2875
|
+
_loop();
|
|
2885
2876
|
}
|
|
2886
2877
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
2887
2878
|
pageSize: pageSize,
|
|
@@ -3462,9 +3453,6 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
3462
3453
|
}, currentSelectProps), {}, {
|
|
3463
3454
|
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
3464
3455
|
return _getPopupContainer && _getPopupContainer(triggerNode) || triggerNode.parentElement;
|
|
3465
|
-
},
|
|
3466
|
-
onClear: function onClear() {
|
|
3467
|
-
run();
|
|
3468
3456
|
}
|
|
3469
3457
|
}), items.map(function (item) {
|
|
3470
3458
|
return /*#__PURE__*/React.createElement(Option$1, {
|
|
@@ -4573,76 +4561,74 @@ var AddSelect = function AddSelect(props) {
|
|
|
4573
4561
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
4574
4562
|
var result;
|
|
4575
4563
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
4576
|
-
while (1) {
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
_context.next = 3;
|
|
4583
|
-
break;
|
|
4584
|
-
}
|
|
4585
|
-
message$1.warning('相同skc配码不可设置相同哦');
|
|
4586
|
-
return _context.abrupt("return", false);
|
|
4587
|
-
case 3:
|
|
4588
|
-
if (!(bType == 'spu')) {
|
|
4589
|
-
_context.next = 26;
|
|
4590
|
-
break;
|
|
4591
|
-
}
|
|
4592
|
-
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
4593
|
-
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
4594
|
-
}))) {
|
|
4595
|
-
_context.next = 7;
|
|
4596
|
-
break;
|
|
4597
|
-
}
|
|
4598
|
-
message$1.warning('相同商品相同配码颜色不可设置相同哦');
|
|
4599
|
-
return _context.abrupt("return", false);
|
|
4600
|
-
case 7:
|
|
4601
|
-
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
4602
|
-
_context.next = 10;
|
|
4603
|
-
break;
|
|
4604
|
-
}
|
|
4605
|
-
message$1.warning('请先选择颜色!');
|
|
4606
|
-
return _context.abrupt("return", false);
|
|
4607
|
-
case 10:
|
|
4608
|
-
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
4609
|
-
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
4610
|
-
}))) {
|
|
4611
|
-
_context.next = 13;
|
|
4612
|
-
break;
|
|
4613
|
-
}
|
|
4614
|
-
message$1.warning('相同商品相同颜色配码不可设置相同哦');
|
|
4615
|
-
return _context.abrupt("return", false);
|
|
4616
|
-
case 13:
|
|
4617
|
-
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
4618
|
-
_context.next = 26;
|
|
4619
|
-
break;
|
|
4620
|
-
}
|
|
4621
|
-
result = true;
|
|
4622
|
-
_context.prev = 15;
|
|
4623
|
-
_context.next = 18;
|
|
4624
|
-
return checkSpuMatchCode({
|
|
4625
|
-
skcCode: recordItem[recordKey],
|
|
4626
|
-
matchingCode: changeValue,
|
|
4627
|
-
ext1: recordItem.colorName
|
|
4628
|
-
});
|
|
4629
|
-
case 18:
|
|
4630
|
-
result = _context.sent;
|
|
4631
|
-
result = true;
|
|
4632
|
-
_context.next = 25;
|
|
4564
|
+
while (1) switch (_context.prev = _context.next) {
|
|
4565
|
+
case 0:
|
|
4566
|
+
if (!(bType == 'skc' && tList.some(function (i) {
|
|
4567
|
+
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
4568
|
+
}))) {
|
|
4569
|
+
_context.next = 3;
|
|
4633
4570
|
break;
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4571
|
+
}
|
|
4572
|
+
message$1.warning('相同skc配码不可设置相同哦');
|
|
4573
|
+
return _context.abrupt("return", false);
|
|
4574
|
+
case 3:
|
|
4575
|
+
if (!(bType == 'spu')) {
|
|
4576
|
+
_context.next = 26;
|
|
4577
|
+
break;
|
|
4578
|
+
}
|
|
4579
|
+
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
4580
|
+
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
4581
|
+
}))) {
|
|
4582
|
+
_context.next = 7;
|
|
4583
|
+
break;
|
|
4584
|
+
}
|
|
4585
|
+
message$1.warning('相同商品相同配码颜色不可设置相同哦');
|
|
4586
|
+
return _context.abrupt("return", false);
|
|
4587
|
+
case 7:
|
|
4588
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
4589
|
+
_context.next = 10;
|
|
4590
|
+
break;
|
|
4591
|
+
}
|
|
4592
|
+
message$1.warning('请先选择颜色!');
|
|
4593
|
+
return _context.abrupt("return", false);
|
|
4594
|
+
case 10:
|
|
4595
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
4596
|
+
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
4597
|
+
}))) {
|
|
4598
|
+
_context.next = 13;
|
|
4599
|
+
break;
|
|
4600
|
+
}
|
|
4601
|
+
message$1.warning('相同商品相同颜色配码不可设置相同哦');
|
|
4602
|
+
return _context.abrupt("return", false);
|
|
4603
|
+
case 13:
|
|
4604
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
4605
|
+
_context.next = 26;
|
|
4606
|
+
break;
|
|
4607
|
+
}
|
|
4608
|
+
result = true;
|
|
4609
|
+
_context.prev = 15;
|
|
4610
|
+
_context.next = 18;
|
|
4611
|
+
return checkSpuMatchCode({
|
|
4612
|
+
skcCode: recordItem[recordKey],
|
|
4613
|
+
matchingCode: changeValue,
|
|
4614
|
+
ext1: recordItem.colorName
|
|
4615
|
+
});
|
|
4616
|
+
case 18:
|
|
4617
|
+
result = _context.sent;
|
|
4618
|
+
result = true;
|
|
4619
|
+
_context.next = 25;
|
|
4620
|
+
break;
|
|
4621
|
+
case 22:
|
|
4622
|
+
_context.prev = 22;
|
|
4623
|
+
_context.t0 = _context["catch"](15);
|
|
4624
|
+
result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
|
|
4625
|
+
case 25:
|
|
4626
|
+
return _context.abrupt("return", result);
|
|
4627
|
+
case 26:
|
|
4628
|
+
return _context.abrupt("return", true);
|
|
4629
|
+
case 27:
|
|
4630
|
+
case "end":
|
|
4631
|
+
return _context.stop();
|
|
4646
4632
|
}
|
|
4647
4633
|
}, _callee, null, [[15, 22]]);
|
|
4648
4634
|
}));
|
|
@@ -4834,29 +4820,27 @@ var AddSelect = function AddSelect(props) {
|
|
|
4834
4820
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
4835
4821
|
var isConformToTheRules, newPopValue;
|
|
4836
4822
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
4837
|
-
while (1) {
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4823
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
4824
|
+
case 0:
|
|
4825
|
+
_context2.next = 2;
|
|
4826
|
+
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
4827
|
+
case 2:
|
|
4828
|
+
isConformToTheRules = _context2.sent;
|
|
4829
|
+
if (isConformToTheRules) {
|
|
4830
|
+
record[item.dataIndex] = value;
|
|
4831
|
+
} else {
|
|
4832
|
+
record[item.dataIndex] = null;
|
|
4833
|
+
}
|
|
4834
|
+
newPopValue = popvalue.map(function (i, innerIndex) {
|
|
4835
|
+
if (innerIndex == index) {
|
|
4836
|
+
i[item.dataIndex] = record[item.dataIndex];
|
|
4848
4837
|
}
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
setPopValue(newPopValue);
|
|
4856
|
-
case 6:
|
|
4857
|
-
case "end":
|
|
4858
|
-
return _context2.stop();
|
|
4859
|
-
}
|
|
4838
|
+
return i;
|
|
4839
|
+
});
|
|
4840
|
+
setPopValue(newPopValue);
|
|
4841
|
+
case 6:
|
|
4842
|
+
case "end":
|
|
4843
|
+
return _context2.stop();
|
|
4860
4844
|
}
|
|
4861
4845
|
}, _callee2);
|
|
4862
4846
|
}));
|
|
@@ -4916,84 +4900,85 @@ var AddSelect = function AddSelect(props) {
|
|
|
4916
4900
|
});
|
|
4917
4901
|
}
|
|
4918
4902
|
// 数组对象处理,对带有特殊标记的name进行处理
|
|
4919
|
-
|
|
4903
|
+
var _loop = function _loop() {
|
|
4920
4904
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
4947
|
-
}
|
|
4948
|
-
});
|
|
4949
|
-
delete params[key];
|
|
4950
|
-
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
4951
|
-
var _dataParams4 = key.split('*checkBox*');
|
|
4952
|
-
if (element) {
|
|
4953
|
-
params[_dataParams4[0]] = 0;
|
|
4905
|
+
var element = params[key];
|
|
4906
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
4907
|
+
var dataParams = key.split('*number*');
|
|
4908
|
+
dataParams.forEach(function (value, index) {
|
|
4909
|
+
params[value] = element[index];
|
|
4910
|
+
});
|
|
4911
|
+
delete params[key];
|
|
4912
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
4913
|
+
var _dataParams = key.split('*address*');
|
|
4914
|
+
_dataParams.forEach(function (value, index) {
|
|
4915
|
+
params[value] = element.PCDCode[index];
|
|
4916
|
+
});
|
|
4917
|
+
delete params[key];
|
|
4918
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
4919
|
+
var _dataParams2 = key.split('*costType*');
|
|
4920
|
+
// eslint-disable-next-line prefer-destructuring
|
|
4921
|
+
params[_dataParams2[0]] = element[1];
|
|
4922
|
+
delete params[key];
|
|
4923
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
4924
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
4925
|
+
_dataParams3.forEach(function (value, index) {
|
|
4926
|
+
if (index === 0) {
|
|
4927
|
+
params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
4928
|
+
} else {
|
|
4929
|
+
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
4954
4930
|
}
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
_dataParams7.forEach(function (value, index) {
|
|
4973
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
4974
|
-
});
|
|
4975
|
-
delete params[key];
|
|
4976
|
-
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
4977
|
-
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
4978
|
-
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
4979
|
-
if (params[key][0] === 'range') {
|
|
4980
|
-
if (params[key][1][0]) {
|
|
4981
|
-
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
4982
|
-
}
|
|
4983
|
-
if (params[key][1][1]) {
|
|
4984
|
-
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
4985
|
-
}
|
|
4931
|
+
});
|
|
4932
|
+
delete params[key];
|
|
4933
|
+
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
4934
|
+
var _dataParams4 = key.split('*checkBox*');
|
|
4935
|
+
if (element) {
|
|
4936
|
+
params[_dataParams4[0]] = 0;
|
|
4937
|
+
}
|
|
4938
|
+
delete params[key];
|
|
4939
|
+
} else if (element && key.indexOf('*cascader*') >= 0) {
|
|
4940
|
+
var _dataParams5 = key.split('*cascader*');
|
|
4941
|
+
params[_dataParams5[0]] = element[element.length - 1];
|
|
4942
|
+
delete params[key];
|
|
4943
|
+
} else if (element && key.indexOf('*date*') >= 0) {
|
|
4944
|
+
var _dataParams6 = key.split('*date*');
|
|
4945
|
+
_dataParams6.forEach(function (value, index) {
|
|
4946
|
+
if (index === 0) {
|
|
4947
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
4986
4948
|
} else {
|
|
4987
|
-
params[
|
|
4949
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
4950
|
+
}
|
|
4951
|
+
});
|
|
4952
|
+
delete params[key];
|
|
4953
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
4954
|
+
var _dataParams7 = key.split('*');
|
|
4955
|
+
_dataParams7.forEach(function (value, index) {
|
|
4956
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
4957
|
+
});
|
|
4958
|
+
delete params[key];
|
|
4959
|
+
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
4960
|
+
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
4961
|
+
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
4962
|
+
if (params[key][0] === 'range') {
|
|
4963
|
+
if (params[key][1][0]) {
|
|
4964
|
+
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
4965
|
+
}
|
|
4966
|
+
if (params[key][1][1]) {
|
|
4967
|
+
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
4988
4968
|
}
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
params[key] = element.join(',');
|
|
4992
|
-
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
4993
|
-
delete params[key];
|
|
4969
|
+
} else {
|
|
4970
|
+
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
4994
4971
|
}
|
|
4995
|
-
|
|
4972
|
+
delete params[key];
|
|
4973
|
+
} else if (Array.isArray(element)) {
|
|
4974
|
+
params[key] = element.join(',');
|
|
4975
|
+
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
4976
|
+
delete params[key];
|
|
4977
|
+
}
|
|
4996
4978
|
}
|
|
4979
|
+
};
|
|
4980
|
+
for (var key in params) {
|
|
4981
|
+
_loop();
|
|
4997
4982
|
}
|
|
4998
4983
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
4999
4984
|
pageSize: pageSize,
|
|
@@ -6399,72 +6384,70 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
6399
6384
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
6400
6385
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
6401
6386
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
6402
|
-
while (1) {
|
|
6403
|
-
|
|
6404
|
-
|
|
6405
|
-
|
|
6406
|
-
|
|
6407
|
-
|
|
6408
|
-
|
|
6409
|
-
|
|
6410
|
-
|
|
6411
|
-
|
|
6412
|
-
|
|
6413
|
-
|
|
6414
|
-
|
|
6415
|
-
|
|
6416
|
-
|
|
6417
|
-
|
|
6418
|
-
|
|
6419
|
-
|
|
6420
|
-
|
|
6421
|
-
|
|
6422
|
-
|
|
6423
|
-
|
|
6424
|
-
|
|
6425
|
-
|
|
6387
|
+
while (1) switch (_context.prev = _context.next) {
|
|
6388
|
+
case 0:
|
|
6389
|
+
if (data === null || data === void 0 ? void 0 : data.length) {
|
|
6390
|
+
_context.next = 3;
|
|
6391
|
+
break;
|
|
6392
|
+
}
|
|
6393
|
+
message$1.warning('至少录入一条数据');
|
|
6394
|
+
return _context.abrupt("return");
|
|
6395
|
+
case 3:
|
|
6396
|
+
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
6397
|
+
return d.skuCode && d.name;
|
|
6398
|
+
})) {
|
|
6399
|
+
_context.next = 6;
|
|
6400
|
+
break;
|
|
6401
|
+
}
|
|
6402
|
+
message$1.warning('请选择商品!');
|
|
6403
|
+
return _context.abrupt("return");
|
|
6404
|
+
case 6:
|
|
6405
|
+
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
6406
|
+
return d.count;
|
|
6407
|
+
})) {
|
|
6408
|
+
_context.next = 9;
|
|
6409
|
+
break;
|
|
6410
|
+
}
|
|
6411
|
+
message$1.warning('请填写商品数量!');
|
|
6412
|
+
return _context.abrupt("return");
|
|
6413
|
+
case 9:
|
|
6414
|
+
_context.next = 11;
|
|
6415
|
+
return isSkuCanEntry(data);
|
|
6416
|
+
case 11:
|
|
6417
|
+
canEntryObject = _context.sent;
|
|
6418
|
+
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
6419
|
+
_context.next = 16;
|
|
6420
|
+
break;
|
|
6421
|
+
}
|
|
6422
|
+
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) {
|
|
6423
|
+
return /*#__PURE__*/React.createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
|
|
6424
|
+
}));
|
|
6425
|
+
messageInfo && message$1.warning({
|
|
6426
|
+
content: messageInfo,
|
|
6427
|
+
duration: 6
|
|
6428
|
+
});
|
|
6429
|
+
return _context.abrupt("return");
|
|
6430
|
+
case 16:
|
|
6431
|
+
setLoading(true);
|
|
6432
|
+
onSaveCallback(data).then(function (res) {
|
|
6433
|
+
{
|
|
6434
|
+
var _Object$keys;
|
|
6435
|
+
var initSuccessMessage = '保存成功';
|
|
6436
|
+
var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
|
|
6437
|
+
if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
|
|
6438
|
+
(rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? message$1.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
|
|
6439
|
+
} else {
|
|
6440
|
+
message$1.success(initSuccessMessage);
|
|
6441
|
+
}
|
|
6426
6442
|
}
|
|
6427
|
-
|
|
6428
|
-
|
|
6429
|
-
|
|
6430
|
-
|
|
6431
|
-
|
|
6432
|
-
|
|
6433
|
-
|
|
6434
|
-
|
|
6435
|
-
_context.next = 16;
|
|
6436
|
-
break;
|
|
6437
|
-
}
|
|
6438
|
-
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) {
|
|
6439
|
-
return /*#__PURE__*/React.createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
|
|
6440
|
-
}));
|
|
6441
|
-
messageInfo && message$1.warning({
|
|
6442
|
-
content: messageInfo,
|
|
6443
|
-
duration: 6
|
|
6444
|
-
});
|
|
6445
|
-
return _context.abrupt("return");
|
|
6446
|
-
case 16:
|
|
6447
|
-
setLoading(true);
|
|
6448
|
-
onSaveCallback(data).then(function (res) {
|
|
6449
|
-
{
|
|
6450
|
-
var _Object$keys;
|
|
6451
|
-
var initSuccessMessage = '保存成功';
|
|
6452
|
-
var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
|
|
6453
|
-
if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
|
|
6454
|
-
(rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? message$1.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
|
|
6455
|
-
} else {
|
|
6456
|
-
message$1.success(initSuccessMessage);
|
|
6457
|
-
}
|
|
6458
|
-
}
|
|
6459
|
-
setLoading(false);
|
|
6460
|
-
}).catch(function (Error) {
|
|
6461
|
-
message$1.error(Error);
|
|
6462
|
-
setLoading(false);
|
|
6463
|
-
});
|
|
6464
|
-
case 18:
|
|
6465
|
-
case "end":
|
|
6466
|
-
return _context.stop();
|
|
6467
|
-
}
|
|
6443
|
+
setLoading(false);
|
|
6444
|
+
}).catch(function (Error) {
|
|
6445
|
+
message$1.error(Error);
|
|
6446
|
+
setLoading(false);
|
|
6447
|
+
});
|
|
6448
|
+
case 18:
|
|
6449
|
+
case "end":
|
|
6450
|
+
return _context.stop();
|
|
6468
6451
|
}
|
|
6469
6452
|
}, _callee);
|
|
6470
6453
|
}));
|
|
@@ -6697,6 +6680,7 @@ var handleDefaultPrefixUrl = function handleDefaultPrefixUrl(type) {
|
|
|
6697
6680
|
case 'purchaseOrg':
|
|
6698
6681
|
case 'salesOrg':
|
|
6699
6682
|
case 'employee2':
|
|
6683
|
+
case 'role':
|
|
6700
6684
|
result = '/user';
|
|
6701
6685
|
break;
|
|
6702
6686
|
case 'deliveryMode':
|
|
@@ -8652,6 +8636,84 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
8652
8636
|
}]
|
|
8653
8637
|
}, modalTableBusProps);
|
|
8654
8638
|
}
|
|
8639
|
+
// 角色选择器
|
|
8640
|
+
if (type === 'role') {
|
|
8641
|
+
requestConfig = _objectSpread2({
|
|
8642
|
+
url: "".concat(prefixUrl.selectPrefix, "/role"),
|
|
8643
|
+
filter: 'qp-name,code-orGroup,like',
|
|
8644
|
+
mappingTextField: 'name',
|
|
8645
|
+
mappingTextShowKeyField: 'code',
|
|
8646
|
+
mappingValueField: 'code',
|
|
8647
|
+
otherParams: {
|
|
8648
|
+
'qp-status-eq': 10,
|
|
8649
|
+
sorter: 'desc-id'
|
|
8650
|
+
},
|
|
8651
|
+
sourceName: 'roleCode'
|
|
8652
|
+
}, requestConfigProp);
|
|
8653
|
+
tableSearchForm = [{
|
|
8654
|
+
name: 'qp-name-like',
|
|
8655
|
+
label: '角色名称'
|
|
8656
|
+
}, {
|
|
8657
|
+
name: 'qp-code-like',
|
|
8658
|
+
label: '角色编码'
|
|
8659
|
+
}, {
|
|
8660
|
+
name: 'qp-categoryCode-eq',
|
|
8661
|
+
type: 'select',
|
|
8662
|
+
label: '角色分类',
|
|
8663
|
+
field: {
|
|
8664
|
+
type: 'select',
|
|
8665
|
+
props: {
|
|
8666
|
+
notFoundContent: '暂无数据',
|
|
8667
|
+
allowClear: true,
|
|
8668
|
+
showSearch: true,
|
|
8669
|
+
showArrow: true,
|
|
8670
|
+
maxTagCount: 1,
|
|
8671
|
+
optionFilterProp: 'children',
|
|
8672
|
+
filterOption: function filterOption(input, option) {
|
|
8673
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
8674
|
+
}
|
|
8675
|
+
}
|
|
8676
|
+
}
|
|
8677
|
+
}];
|
|
8678
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
|
|
8679
|
+
pageSize: 5000,
|
|
8680
|
+
currentPage: 1
|
|
8681
|
+
})]).then(function (x) {
|
|
8682
|
+
formatSource(x, 0, 2, tableSearchForm);
|
|
8683
|
+
});
|
|
8684
|
+
modalTableProps = _objectSpread2({
|
|
8685
|
+
modalTableTitle: '选择角色',
|
|
8686
|
+
tableSearchForm: tableSearchForm,
|
|
8687
|
+
tableColumns: [{
|
|
8688
|
+
title: '角色编码',
|
|
8689
|
+
dataIndex: 'code'
|
|
8690
|
+
}, {
|
|
8691
|
+
title: '角色名称',
|
|
8692
|
+
dataIndex: 'name',
|
|
8693
|
+
render: function render(text) {
|
|
8694
|
+
return handleTextOverflow(text);
|
|
8695
|
+
}
|
|
8696
|
+
}, {
|
|
8697
|
+
title: '角色分类',
|
|
8698
|
+
dataIndex: 'categoryName',
|
|
8699
|
+
render: function render(text) {
|
|
8700
|
+
return handleTextOverflow(text);
|
|
8701
|
+
}
|
|
8702
|
+
}, {
|
|
8703
|
+
dataIndex: 'remark',
|
|
8704
|
+
title: '角色描述',
|
|
8705
|
+
render: function render(text) {
|
|
8706
|
+
return handleTextOverflow(text);
|
|
8707
|
+
}
|
|
8708
|
+
}, {
|
|
8709
|
+
dataIndex: 'applicationName',
|
|
8710
|
+
title: '应用',
|
|
8711
|
+
render: function render(text) {
|
|
8712
|
+
return handleTextOverflow(text);
|
|
8713
|
+
}
|
|
8714
|
+
}]
|
|
8715
|
+
}, modalTableBusProps);
|
|
8716
|
+
}
|
|
8655
8717
|
return {
|
|
8656
8718
|
modalTableProps: modalTableProps,
|
|
8657
8719
|
requestConfig: requestConfig,
|
|
@@ -9869,7 +9931,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
9869
9931
|
* @LastEditTime: 2022-01-14 17:17:26
|
|
9870
9932
|
* @LastEditors: rodchen
|
|
9871
9933
|
*/
|
|
9872
|
-
var index$
|
|
9934
|
+
var index$2 = (function (storageKeyString) {
|
|
9873
9935
|
var seconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
|
|
9874
9936
|
var tipsCallFunction = arguments.length > 2 ? arguments[2] : undefined;
|
|
9875
9937
|
if (typeof seconds !== 'number') throw new Error('seconds should be number');
|
|
@@ -9996,44 +10058,42 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
9996
10058
|
var _ctx$form;
|
|
9997
10059
|
var resData, coverData, data, dataList;
|
|
9998
10060
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9999
|
-
while (1) {
|
|
10000
|
-
|
|
10001
|
-
|
|
10002
|
-
|
|
10003
|
-
|
|
10004
|
-
_context.next = 13;
|
|
10005
|
-
break;
|
|
10006
|
-
}
|
|
10007
|
-
data = resData.data;
|
|
10008
|
-
if (!remoteSource.converter) {
|
|
10009
|
-
_context.next = 9;
|
|
10010
|
-
break;
|
|
10011
|
-
}
|
|
10012
|
-
_context.next = 6;
|
|
10013
|
-
return remoteSource.converter({
|
|
10014
|
-
data: [data]
|
|
10015
|
-
});
|
|
10016
|
-
case 6:
|
|
10017
|
-
coverData = _context.sent;
|
|
10018
|
-
_context.next = 11;
|
|
10061
|
+
while (1) switch (_context.prev = _context.next) {
|
|
10062
|
+
case 0:
|
|
10063
|
+
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
10064
|
+
if (!(resData.status === '0' || resData.code === '000000')) {
|
|
10065
|
+
_context.next = 13;
|
|
10019
10066
|
break;
|
|
10020
|
-
|
|
10021
|
-
|
|
10022
|
-
|
|
10023
|
-
|
|
10024
|
-
}) || [];
|
|
10025
|
-
case 11:
|
|
10026
|
-
_context.next = 14;
|
|
10067
|
+
}
|
|
10068
|
+
data = resData.data;
|
|
10069
|
+
if (!remoteSource.converter) {
|
|
10070
|
+
_context.next = 9;
|
|
10027
10071
|
break;
|
|
10028
|
-
|
|
10029
|
-
|
|
10030
|
-
|
|
10031
|
-
|
|
10032
|
-
|
|
10033
|
-
|
|
10034
|
-
|
|
10035
|
-
|
|
10036
|
-
|
|
10072
|
+
}
|
|
10073
|
+
_context.next = 6;
|
|
10074
|
+
return remoteSource.converter({
|
|
10075
|
+
data: [data]
|
|
10076
|
+
});
|
|
10077
|
+
case 6:
|
|
10078
|
+
coverData = _context.sent;
|
|
10079
|
+
_context.next = 11;
|
|
10080
|
+
break;
|
|
10081
|
+
case 9:
|
|
10082
|
+
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
10083
|
+
coverData = dataList.length && dataList.map(function (ites) {
|
|
10084
|
+
return mapSearchTree(ites);
|
|
10085
|
+
}) || [];
|
|
10086
|
+
case 11:
|
|
10087
|
+
_context.next = 14;
|
|
10088
|
+
break;
|
|
10089
|
+
case 13:
|
|
10090
|
+
coverData = [];
|
|
10091
|
+
case 14:
|
|
10092
|
+
setTreeData(coverData);
|
|
10093
|
+
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
|
|
10094
|
+
case 16:
|
|
10095
|
+
case "end":
|
|
10096
|
+
return _context.stop();
|
|
10037
10097
|
}
|
|
10038
10098
|
}, _callee);
|
|
10039
10099
|
}));
|
|
@@ -10233,6 +10293,20 @@ var handleDefaultProps = function handleDefaultProps(type, otherRequestConfig) {
|
|
|
10233
10293
|
}
|
|
10234
10294
|
};
|
|
10235
10295
|
break;
|
|
10296
|
+
case 'settle-organization':
|
|
10297
|
+
result = {
|
|
10298
|
+
isChoose: true,
|
|
10299
|
+
remoteSource: {
|
|
10300
|
+
url: "/user/orgViewNode/common/getTreeForOrgViewAndTenant",
|
|
10301
|
+
headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
|
|
10302
|
+
initialParams: {
|
|
10303
|
+
'orgViewCode': 'settlement-organizational-view',
|
|
10304
|
+
'qp-status-eq': 10
|
|
10305
|
+
},
|
|
10306
|
+
resKeyValue: ['code', 'name']
|
|
10307
|
+
}
|
|
10308
|
+
};
|
|
10309
|
+
break;
|
|
10236
10310
|
case 'market-area':
|
|
10237
10311
|
result = {
|
|
10238
10312
|
isChoose: true,
|
|
@@ -10283,7 +10357,7 @@ var BusinessTreeSearchSelect$1 = /*#__PURE__*/React.memo(BusinessTreeSearchSelec
|
|
|
10283
10357
|
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";
|
|
10284
10358
|
styleInject(css_248z$8);
|
|
10285
10359
|
|
|
10286
|
-
var index$
|
|
10360
|
+
var index$3 = (function (props) {
|
|
10287
10361
|
var _props$formStatusMapp = props.formStatusMapping,
|
|
10288
10362
|
formStatusMapping = _props$formStatusMapp === void 0 ? [] : _props$formStatusMapp;
|
|
10289
10363
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -11707,7 +11781,7 @@ var iconMap = {
|
|
|
11707
11781
|
src: moreIcon
|
|
11708
11782
|
})
|
|
11709
11783
|
};
|
|
11710
|
-
var index$
|
|
11784
|
+
var index$4 = (function (props) {
|
|
11711
11785
|
var _useLocation = useLocation(),
|
|
11712
11786
|
pathname = _useLocation.pathname;
|
|
11713
11787
|
var _useState = useState(pathname + 'id'),
|
|
@@ -11924,7 +11998,7 @@ var css_248z$d = ".home_page_head {\n height: 54px;\n display: flex;\n justif
|
|
|
11924
11998
|
styleInject(css_248z$d);
|
|
11925
11999
|
|
|
11926
12000
|
var _excluded$c = ["children"];
|
|
11927
|
-
var index$
|
|
12001
|
+
var index$5 = (function (props) {
|
|
11928
12002
|
var _useLocation = useLocation(),
|
|
11929
12003
|
pathname = _useLocation.pathname;
|
|
11930
12004
|
var _useState = useState(pathname + 'id'),
|
|
@@ -14223,21 +14297,19 @@ function _outLogin() {
|
|
|
14223
14297
|
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
14224
14298
|
var res;
|
|
14225
14299
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
14226
|
-
while (1) {
|
|
14227
|
-
|
|
14228
|
-
|
|
14229
|
-
|
|
14230
|
-
|
|
14231
|
-
|
|
14232
|
-
|
|
14233
|
-
|
|
14234
|
-
|
|
14235
|
-
|
|
14236
|
-
|
|
14237
|
-
|
|
14238
|
-
|
|
14239
|
-
return _context.stop();
|
|
14240
|
-
}
|
|
14300
|
+
while (1) switch (_context.prev = _context.next) {
|
|
14301
|
+
case 0:
|
|
14302
|
+
_context.next = 2;
|
|
14303
|
+
return axios({
|
|
14304
|
+
url: '/user/web/loginOut',
|
|
14305
|
+
method: 'GET'
|
|
14306
|
+
});
|
|
14307
|
+
case 2:
|
|
14308
|
+
res = _context.sent;
|
|
14309
|
+
return _context.abrupt("return", res);
|
|
14310
|
+
case 4:
|
|
14311
|
+
case "end":
|
|
14312
|
+
return _context.stop();
|
|
14241
14313
|
}
|
|
14242
14314
|
}, _callee);
|
|
14243
14315
|
}));
|
|
@@ -14366,31 +14438,29 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
14366
14438
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
14367
14439
|
var sessionId;
|
|
14368
14440
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
14369
|
-
while (1) {
|
|
14370
|
-
|
|
14371
|
-
|
|
14372
|
-
|
|
14373
|
-
|
|
14374
|
-
|
|
14375
|
-
|
|
14376
|
-
|
|
14377
|
-
|
|
14378
|
-
|
|
14441
|
+
while (1) switch (_context.prev = _context.next) {
|
|
14442
|
+
case 0:
|
|
14443
|
+
_context.next = 2;
|
|
14444
|
+
return getSessionId();
|
|
14445
|
+
case 2:
|
|
14446
|
+
sessionId = _context.sent;
|
|
14447
|
+
_context.next = 5;
|
|
14448
|
+
return outLogin({
|
|
14449
|
+
sessionId: sessionId
|
|
14450
|
+
});
|
|
14451
|
+
case 5:
|
|
14452
|
+
// @ts-ignore
|
|
14453
|
+
if (BUILD_TYPE) {
|
|
14454
|
+
message$1.success('退出登录成功');
|
|
14455
|
+
history.replace({
|
|
14456
|
+
pathname: '/user/login'
|
|
14379
14457
|
});
|
|
14380
|
-
|
|
14381
|
-
|
|
14382
|
-
|
|
14383
|
-
|
|
14384
|
-
|
|
14385
|
-
|
|
14386
|
-
});
|
|
14387
|
-
} else {
|
|
14388
|
-
setLoginOutPath();
|
|
14389
|
-
}
|
|
14390
|
-
case 6:
|
|
14391
|
-
case "end":
|
|
14392
|
-
return _context.stop();
|
|
14393
|
-
}
|
|
14458
|
+
} else {
|
|
14459
|
+
setLoginOutPath();
|
|
14460
|
+
}
|
|
14461
|
+
case 6:
|
|
14462
|
+
case "end":
|
|
14463
|
+
return _context.stop();
|
|
14394
14464
|
}
|
|
14395
14465
|
}, _callee);
|
|
14396
14466
|
}));
|
|
@@ -16218,6 +16288,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
16218
16288
|
showSubMenu: isShow
|
|
16219
16289
|
});
|
|
16220
16290
|
}, 500);
|
|
16291
|
+
//设置tabs标签左右滚动
|
|
16221
16292
|
_this.setTabNavTransLate = function (num) {
|
|
16222
16293
|
var _document$getElementB, _document$getElementB2, _document$getElementB3, _document$getElementB4, _document$defaultView;
|
|
16223
16294
|
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];
|
|
@@ -16898,14 +16969,12 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
16898
16969
|
request: function () {
|
|
16899
16970
|
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
16900
16971
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
16901
|
-
while (1) {
|
|
16902
|
-
|
|
16903
|
-
|
|
16904
|
-
|
|
16905
|
-
|
|
16906
|
-
|
|
16907
|
-
return _context.stop();
|
|
16908
|
-
}
|
|
16972
|
+
while (1) switch (_context.prev = _context.next) {
|
|
16973
|
+
case 0:
|
|
16974
|
+
return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
|
|
16975
|
+
case 1:
|
|
16976
|
+
case "end":
|
|
16977
|
+
return _context.stop();
|
|
16909
16978
|
}
|
|
16910
16979
|
}, _callee);
|
|
16911
16980
|
}));
|
|
@@ -17043,7 +17112,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
17043
17112
|
}]);
|
|
17044
17113
|
return WrapperComponent;
|
|
17045
17114
|
}(React.Component);
|
|
17046
|
-
var index$
|
|
17115
|
+
var index$6 = (function (props) {
|
|
17047
17116
|
var _useModel = useModel('@@initialState'),
|
|
17048
17117
|
_useModel$initialStat = _useModel.initialState,
|
|
17049
17118
|
initialState = _useModel$initialStat === void 0 ? {} : _useModel$initialStat;
|
|
@@ -17285,7 +17354,7 @@ var FixedScrollBar = function FixedScrollBar(_ref, ref) {
|
|
|
17285
17354
|
};
|
|
17286
17355
|
var FixedScrollBar$1 = /*#__PURE__*/React.forwardRef(FixedScrollBar);
|
|
17287
17356
|
|
|
17288
|
-
var index$
|
|
17357
|
+
var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
17289
17358
|
var _useState = useState(false),
|
|
17290
17359
|
_useState2 = _slicedToArray(_useState, 2),
|
|
17291
17360
|
show = _useState2[0],
|
|
@@ -24357,8 +24426,7 @@ var inputTypes = {
|
|
|
24357
24426
|
type: 'bs-employeeSearchSelect',
|
|
24358
24427
|
props: _objectSpread2(_objectSpread2({}, normalSingleSelectProps), {}, {
|
|
24359
24428
|
requestConfig: {
|
|
24360
|
-
mappingValueField: 'employeeNumber'
|
|
24361
|
-
filterInit: 'qp-employeeNumber-like'
|
|
24429
|
+
mappingValueField: 'employeeNumber'
|
|
24362
24430
|
}
|
|
24363
24431
|
})
|
|
24364
24432
|
},
|
|
@@ -24369,6 +24437,13 @@ var inputTypes = {
|
|
|
24369
24437
|
treeCheckable: false
|
|
24370
24438
|
}, normalSingleSelectProps)
|
|
24371
24439
|
},
|
|
24440
|
+
290: {
|
|
24441
|
+
// 库存组织
|
|
24442
|
+
type: 'bs-settleOrgSelect',
|
|
24443
|
+
props: _objectSpread2({
|
|
24444
|
+
treeCheckable: false
|
|
24445
|
+
}, normalSingleSelectProps)
|
|
24446
|
+
},
|
|
24372
24447
|
310: {
|
|
24373
24448
|
type: 'bs-deliveryModeSearchSelect',
|
|
24374
24449
|
props: _objectSpread2({}, normalSingleSelectProps)
|
|
@@ -24386,6 +24461,14 @@ var inputTypes = {
|
|
|
24386
24461
|
props: _objectSpread2({
|
|
24387
24462
|
treeCheckable: false
|
|
24388
24463
|
}, normalSingleSelectProps)
|
|
24464
|
+
},
|
|
24465
|
+
360: {
|
|
24466
|
+
type: 'bs-roleSelect',
|
|
24467
|
+
props: _objectSpread2(_objectSpread2({}, normalSingleSelectProps), {}, {
|
|
24468
|
+
requestConfig: {
|
|
24469
|
+
filter: 'qp-name,code-orGroup-in'
|
|
24470
|
+
}
|
|
24471
|
+
})
|
|
24389
24472
|
}
|
|
24390
24473
|
},
|
|
24391
24474
|
30: {
|
|
@@ -24504,8 +24587,7 @@ var inputTypes = {
|
|
|
24504
24587
|
type: 'bs-employeeSearchSelect',
|
|
24505
24588
|
props: _objectSpread2(_objectSpread2({}, normalMultipleSelectProps), {}, {
|
|
24506
24589
|
requestConfig: {
|
|
24507
|
-
mappingValueField: 'employeeNumber'
|
|
24508
|
-
filterInit: 'qp-employeeNumber-like'
|
|
24590
|
+
mappingValueField: 'employeeNumber'
|
|
24509
24591
|
}
|
|
24510
24592
|
})
|
|
24511
24593
|
},
|
|
@@ -24516,6 +24598,13 @@ var inputTypes = {
|
|
|
24516
24598
|
treeCheckable: true
|
|
24517
24599
|
}, normalMultipleSelectProps)
|
|
24518
24600
|
},
|
|
24601
|
+
290: {
|
|
24602
|
+
// 结算组织
|
|
24603
|
+
type: 'bs-settleOrgSelect',
|
|
24604
|
+
props: _objectSpread2({
|
|
24605
|
+
treeCheckable: true
|
|
24606
|
+
}, normalMultipleSelectProps)
|
|
24607
|
+
},
|
|
24519
24608
|
310: {
|
|
24520
24609
|
type: 'bs-deliveryModeSearchSelect',
|
|
24521
24610
|
props: _objectSpread2(_objectSpread2({}, normalMultipleSelectProps), {}, {
|
|
@@ -24537,6 +24626,14 @@ var inputTypes = {
|
|
|
24537
24626
|
props: _objectSpread2({
|
|
24538
24627
|
treeCheckable: false
|
|
24539
24628
|
}, normalSingleSelectProps)
|
|
24629
|
+
},
|
|
24630
|
+
360: {
|
|
24631
|
+
type: 'bs-roleSelect',
|
|
24632
|
+
props: _objectSpread2(_objectSpread2({}, normalMultipleSelectProps), {}, {
|
|
24633
|
+
requestConfig: {
|
|
24634
|
+
filter: 'qp-name,code-orGroup-in'
|
|
24635
|
+
}
|
|
24636
|
+
})
|
|
24540
24637
|
}
|
|
24541
24638
|
}
|
|
24542
24639
|
};
|
|
@@ -24564,10 +24661,12 @@ var choiceType = Object.freeze({
|
|
|
24564
24661
|
260: '店铺选择器',
|
|
24565
24662
|
270: '员工选择器',
|
|
24566
24663
|
280: '库存组织选择器',
|
|
24664
|
+
290: '结算组织选择器',
|
|
24567
24665
|
310: '配送方式选择器',
|
|
24568
24666
|
330: '变量',
|
|
24569
24667
|
340: '规则模板选择器',
|
|
24570
|
-
350: '营销区域选择器'
|
|
24668
|
+
350: '营销区域选择器',
|
|
24669
|
+
360: '角色选择器'
|
|
24571
24670
|
});
|
|
24572
24671
|
var inputType = {
|
|
24573
24672
|
10: '输入',
|
|
@@ -24588,28 +24687,26 @@ var valueType = {
|
|
|
24588
24687
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
24589
24688
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
24590
24689
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
24591
|
-
while (1) {
|
|
24592
|
-
|
|
24593
|
-
|
|
24594
|
-
|
|
24595
|
-
|
|
24596
|
-
|
|
24597
|
-
|
|
24598
|
-
|
|
24599
|
-
return
|
|
24600
|
-
|
|
24601
|
-
|
|
24602
|
-
|
|
24603
|
-
|
|
24604
|
-
|
|
24605
|
-
|
|
24606
|
-
|
|
24607
|
-
|
|
24608
|
-
|
|
24609
|
-
|
|
24610
|
-
|
|
24611
|
-
return _context.stop();
|
|
24612
|
-
}
|
|
24690
|
+
while (1) switch (_context.prev = _context.next) {
|
|
24691
|
+
case 0:
|
|
24692
|
+
_context.next = 2;
|
|
24693
|
+
return request$1({
|
|
24694
|
+
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
24695
|
+
converter: function converter(_ref2) {
|
|
24696
|
+
var data = _ref2.data;
|
|
24697
|
+
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
24698
|
+
return {
|
|
24699
|
+
text: d.name,
|
|
24700
|
+
value: d.code || d.brandCode
|
|
24701
|
+
};
|
|
24702
|
+
});
|
|
24703
|
+
}
|
|
24704
|
+
});
|
|
24705
|
+
case 2:
|
|
24706
|
+
return _context.abrupt("return", _context.sent);
|
|
24707
|
+
case 3:
|
|
24708
|
+
case "end":
|
|
24709
|
+
return _context.stop();
|
|
24613
24710
|
}
|
|
24614
24711
|
}, _callee);
|
|
24615
24712
|
}));
|
|
@@ -24659,55 +24756,53 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
24659
24756
|
useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
24660
24757
|
var _ref$current, source;
|
|
24661
24758
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
24662
|
-
while (1) {
|
|
24663
|
-
|
|
24664
|
-
|
|
24665
|
-
|
|
24666
|
-
|
|
24667
|
-
|
|
24668
|
-
|
|
24669
|
-
|
|
24670
|
-
|
|
24671
|
-
|
|
24672
|
-
};
|
|
24673
|
-
}
|
|
24674
|
-
return prev;
|
|
24675
|
-
});
|
|
24676
|
-
case 2:
|
|
24677
|
-
if (!record.dictionaryCode) {
|
|
24678
|
-
_context.next = 17;
|
|
24679
|
-
break;
|
|
24680
|
-
}
|
|
24681
|
-
if (!(record.choiceType == 20)) {
|
|
24682
|
-
_context.next = 7;
|
|
24683
|
-
break;
|
|
24759
|
+
while (1) switch (_context.prev = _context.next) {
|
|
24760
|
+
case 0:
|
|
24761
|
+
_context.next = 2;
|
|
24762
|
+
return setIsShowAndType(function (prev) {
|
|
24763
|
+
if (record.inputType === 20 || record.inputType === 30) {
|
|
24764
|
+
return {
|
|
24765
|
+
isShow: true,
|
|
24766
|
+
singleOrMultiple: record.inputType,
|
|
24767
|
+
type: record.choiceType
|
|
24768
|
+
};
|
|
24684
24769
|
}
|
|
24685
|
-
|
|
24686
|
-
|
|
24770
|
+
return prev;
|
|
24771
|
+
});
|
|
24772
|
+
case 2:
|
|
24773
|
+
if (!record.dictionaryCode) {
|
|
24774
|
+
_context.next = 17;
|
|
24687
24775
|
break;
|
|
24688
|
-
|
|
24689
|
-
|
|
24690
|
-
|
|
24691
|
-
break;
|
|
24692
|
-
}
|
|
24693
|
-
_context.next = 10;
|
|
24694
|
-
return getDynamicDict(record.dictionaryCode);
|
|
24695
|
-
case 10:
|
|
24696
|
-
_context.t1 = _context.sent;
|
|
24697
|
-
_context.next = 14;
|
|
24776
|
+
}
|
|
24777
|
+
if (!(record.choiceType == 20)) {
|
|
24778
|
+
_context.next = 7;
|
|
24698
24779
|
break;
|
|
24699
|
-
|
|
24700
|
-
|
|
24701
|
-
|
|
24702
|
-
|
|
24703
|
-
|
|
24704
|
-
|
|
24705
|
-
|
|
24706
|
-
|
|
24707
|
-
|
|
24708
|
-
|
|
24709
|
-
|
|
24710
|
-
|
|
24780
|
+
}
|
|
24781
|
+
_context.t0 = getDictionarySource(record.dictionaryCode);
|
|
24782
|
+
_context.next = 15;
|
|
24783
|
+
break;
|
|
24784
|
+
case 7:
|
|
24785
|
+
if (!(record.choiceType == 30)) {
|
|
24786
|
+
_context.next = 13;
|
|
24787
|
+
break;
|
|
24788
|
+
}
|
|
24789
|
+
_context.next = 10;
|
|
24790
|
+
return getDynamicDict(record.dictionaryCode);
|
|
24791
|
+
case 10:
|
|
24792
|
+
_context.t1 = _context.sent;
|
|
24793
|
+
_context.next = 14;
|
|
24794
|
+
break;
|
|
24795
|
+
case 13:
|
|
24796
|
+
_context.t1 = [];
|
|
24797
|
+
case 14:
|
|
24798
|
+
_context.t0 = _context.t1;
|
|
24799
|
+
case 15:
|
|
24800
|
+
source = _context.t0;
|
|
24801
|
+
// @ts-ignore
|
|
24802
|
+
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
24803
|
+
case 17:
|
|
24804
|
+
case "end":
|
|
24805
|
+
return _context.stop();
|
|
24711
24806
|
}
|
|
24712
24807
|
}, _callee);
|
|
24713
24808
|
})));
|
|
@@ -24775,30 +24870,28 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
24775
24870
|
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
24776
24871
|
var form, values, name, relates, source;
|
|
24777
24872
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
24778
|
-
while (1) {
|
|
24779
|
-
|
|
24780
|
-
|
|
24781
|
-
|
|
24782
|
-
if (values[0]) {
|
|
24783
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
24784
|
-
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
24785
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
24786
|
-
}
|
|
24787
|
-
if (!values[1]) {
|
|
24788
|
-
_context2.next = 9;
|
|
24789
|
-
break;
|
|
24790
|
-
}
|
|
24791
|
-
_context2.next = 5;
|
|
24792
|
-
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
24793
|
-
case 5:
|
|
24794
|
-
source = _context2.sent;
|
|
24873
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
24874
|
+
case 0:
|
|
24875
|
+
form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
|
|
24876
|
+
if (values[0]) {
|
|
24795
24877
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
24796
24878
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
24797
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0],
|
|
24798
|
-
|
|
24799
|
-
|
|
24800
|
-
|
|
24801
|
-
|
|
24879
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
24880
|
+
}
|
|
24881
|
+
if (!values[1]) {
|
|
24882
|
+
_context2.next = 9;
|
|
24883
|
+
break;
|
|
24884
|
+
}
|
|
24885
|
+
_context2.next = 5;
|
|
24886
|
+
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
24887
|
+
case 5:
|
|
24888
|
+
source = _context2.sent;
|
|
24889
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
24890
|
+
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
24891
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
24892
|
+
case 9:
|
|
24893
|
+
case "end":
|
|
24894
|
+
return _context2.stop();
|
|
24802
24895
|
}
|
|
24803
24896
|
}, _callee2);
|
|
24804
24897
|
}));
|
|
@@ -25258,43 +25351,41 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
25258
25351
|
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
25259
25352
|
var values, name, form, source;
|
|
25260
25353
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
25261
|
-
while (1) {
|
|
25262
|
-
|
|
25263
|
-
|
|
25264
|
-
|
|
25265
|
-
|
|
25266
|
-
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
25267
|
-
form.setFieldVisible(name, false);
|
|
25268
|
-
}
|
|
25269
|
-
if (!(values[0] === 30)) {
|
|
25270
|
-
_context3.next = 10;
|
|
25271
|
-
break;
|
|
25272
|
-
}
|
|
25273
|
-
_context3.next = 5;
|
|
25274
|
-
return request$1({
|
|
25275
|
-
url: '/basic/dictDynamicItem/queryList',
|
|
25276
|
-
converter: function converter(_ref11) {
|
|
25277
|
-
var data = _ref11.data;
|
|
25278
|
-
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
25279
|
-
return {
|
|
25280
|
-
text: d.dictCode,
|
|
25281
|
-
value: d.dictCode
|
|
25282
|
-
};
|
|
25283
|
-
});
|
|
25284
|
-
}
|
|
25285
|
-
});
|
|
25286
|
-
case 5:
|
|
25287
|
-
source = _context3.sent;
|
|
25288
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
25289
|
-
form.setFieldVisible(name, true);
|
|
25290
|
-
_context3.next = 11;
|
|
25291
|
-
break;
|
|
25292
|
-
case 10:
|
|
25354
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
25355
|
+
case 0:
|
|
25356
|
+
values = _ref10.values, name = _ref10.name, form = _ref10.form;
|
|
25357
|
+
if (values[1] === 40) {
|
|
25358
|
+
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
25293
25359
|
form.setFieldVisible(name, false);
|
|
25294
|
-
|
|
25295
|
-
|
|
25296
|
-
|
|
25297
|
-
|
|
25360
|
+
}
|
|
25361
|
+
if (!(values[0] === 30)) {
|
|
25362
|
+
_context3.next = 10;
|
|
25363
|
+
break;
|
|
25364
|
+
}
|
|
25365
|
+
_context3.next = 5;
|
|
25366
|
+
return request$1({
|
|
25367
|
+
url: '/basic/dictDynamicItem/queryList',
|
|
25368
|
+
converter: function converter(_ref11) {
|
|
25369
|
+
var data = _ref11.data;
|
|
25370
|
+
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
25371
|
+
return {
|
|
25372
|
+
text: d.dictCode,
|
|
25373
|
+
value: d.dictCode
|
|
25374
|
+
};
|
|
25375
|
+
});
|
|
25376
|
+
}
|
|
25377
|
+
});
|
|
25378
|
+
case 5:
|
|
25379
|
+
source = _context3.sent;
|
|
25380
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
25381
|
+
form.setFieldVisible(name, true);
|
|
25382
|
+
_context3.next = 11;
|
|
25383
|
+
break;
|
|
25384
|
+
case 10:
|
|
25385
|
+
form.setFieldVisible(name, false);
|
|
25386
|
+
case 11:
|
|
25387
|
+
case "end":
|
|
25388
|
+
return _context3.stop();
|
|
25298
25389
|
}
|
|
25299
25390
|
}, _callee3);
|
|
25300
25391
|
}));
|
|
@@ -25483,66 +25574,64 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
25483
25574
|
var _ref$current4, _res$editableStatus;
|
|
25484
25575
|
var res, _res$defaultValue;
|
|
25485
25576
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
25486
|
-
while (1) {
|
|
25487
|
-
|
|
25488
|
-
|
|
25489
|
-
|
|
25490
|
-
|
|
25491
|
-
|
|
25492
|
-
|
|
25493
|
-
|
|
25494
|
-
|
|
25495
|
-
|
|
25496
|
-
res.
|
|
25497
|
-
|
|
25498
|
-
|
|
25499
|
-
|
|
25500
|
-
|
|
25501
|
-
|
|
25502
|
-
|
|
25503
|
-
|
|
25504
|
-
|
|
25505
|
-
|
|
25506
|
-
|
|
25507
|
-
|
|
25577
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
25578
|
+
case 0:
|
|
25579
|
+
_context4.next = 2;
|
|
25580
|
+
return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
|
|
25581
|
+
case 2:
|
|
25582
|
+
res = _context4.sent;
|
|
25583
|
+
res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
|
|
25584
|
+
res.fieldGroup = record.fieldGroup;
|
|
25585
|
+
res.businessType = record.businessType;
|
|
25586
|
+
res.info = {
|
|
25587
|
+
enumeration: res.enumeration,
|
|
25588
|
+
dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
|
|
25589
|
+
formula: res.formula,
|
|
25590
|
+
scale: res.scale,
|
|
25591
|
+
variable: res.variable
|
|
25592
|
+
};
|
|
25593
|
+
res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
|
|
25594
|
+
res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
|
|
25595
|
+
res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
|
|
25596
|
+
if (res.inputType === 40) {
|
|
25597
|
+
res.valueType = 22;
|
|
25598
|
+
}
|
|
25599
|
+
// 把数组处理成文本
|
|
25600
|
+
if (res.inputType === 30) {
|
|
25601
|
+
if (res.defaultValue) {
|
|
25602
|
+
res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
|
|
25508
25603
|
}
|
|
25509
|
-
|
|
25510
|
-
|
|
25511
|
-
|
|
25512
|
-
|
|
25513
|
-
|
|
25604
|
+
}
|
|
25605
|
+
res.fieldMapping = res.fieldMapping || '';
|
|
25606
|
+
delete res.formula;
|
|
25607
|
+
delete res.showValue;
|
|
25608
|
+
if (!(mode === 'create')) {
|
|
25609
|
+
_context4.next = 18;
|
|
25610
|
+
break;
|
|
25611
|
+
}
|
|
25612
|
+
request$1({
|
|
25613
|
+
url: "/basic/flow/businessField",
|
|
25614
|
+
method: 'POST',
|
|
25615
|
+
params: res,
|
|
25616
|
+
successMessage: '创建成功!',
|
|
25617
|
+
converter: function converter() {
|
|
25618
|
+
onParentOk();
|
|
25514
25619
|
}
|
|
25515
|
-
|
|
25516
|
-
|
|
25517
|
-
|
|
25518
|
-
|
|
25519
|
-
|
|
25520
|
-
|
|
25620
|
+
});
|
|
25621
|
+
return _context4.abrupt("return");
|
|
25622
|
+
case 18:
|
|
25623
|
+
request$1({
|
|
25624
|
+
url: "/basic/flow/businessField/".concat(record.id),
|
|
25625
|
+
method: 'PATCH',
|
|
25626
|
+
params: res,
|
|
25627
|
+
successMessage: '修改成功!',
|
|
25628
|
+
converter: function converter() {
|
|
25629
|
+
onParentOk();
|
|
25521
25630
|
}
|
|
25522
|
-
|
|
25523
|
-
|
|
25524
|
-
|
|
25525
|
-
|
|
25526
|
-
successMessage: '创建成功!',
|
|
25527
|
-
converter: function converter() {
|
|
25528
|
-
onParentOk();
|
|
25529
|
-
}
|
|
25530
|
-
});
|
|
25531
|
-
return _context4.abrupt("return");
|
|
25532
|
-
case 18:
|
|
25533
|
-
request$1({
|
|
25534
|
-
url: "/basic/flow/businessField/".concat(record.id),
|
|
25535
|
-
method: 'PATCH',
|
|
25536
|
-
params: res,
|
|
25537
|
-
successMessage: '修改成功!',
|
|
25538
|
-
converter: function converter() {
|
|
25539
|
-
onParentOk();
|
|
25540
|
-
}
|
|
25541
|
-
});
|
|
25542
|
-
case 19:
|
|
25543
|
-
case "end":
|
|
25544
|
-
return _context4.stop();
|
|
25545
|
-
}
|
|
25631
|
+
});
|
|
25632
|
+
case 19:
|
|
25633
|
+
case "end":
|
|
25634
|
+
return _context4.stop();
|
|
25546
25635
|
}
|
|
25547
25636
|
}, _callee4);
|
|
25548
25637
|
}));
|
|
@@ -26327,28 +26416,26 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
26327
26416
|
useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
26328
26417
|
var resData, data;
|
|
26329
26418
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26330
|
-
while (1) {
|
|
26331
|
-
|
|
26332
|
-
|
|
26333
|
-
|
|
26334
|
-
|
|
26335
|
-
|
|
26336
|
-
|
|
26337
|
-
|
|
26338
|
-
|
|
26339
|
-
|
|
26340
|
-
|
|
26341
|
-
|
|
26342
|
-
|
|
26343
|
-
|
|
26344
|
-
|
|
26345
|
-
|
|
26346
|
-
|
|
26347
|
-
|
|
26348
|
-
|
|
26349
|
-
|
|
26350
|
-
return _context.stop();
|
|
26351
|
-
}
|
|
26419
|
+
while (1) switch (_context.prev = _context.next) {
|
|
26420
|
+
case 0:
|
|
26421
|
+
if (!(!source && initRequestSource)) {
|
|
26422
|
+
_context.next = 6;
|
|
26423
|
+
break;
|
|
26424
|
+
}
|
|
26425
|
+
_context.next = 3;
|
|
26426
|
+
return initRequestSource();
|
|
26427
|
+
case 3:
|
|
26428
|
+
resData = _context.sent;
|
|
26429
|
+
data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
|
|
26430
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
26431
|
+
label: item.text,
|
|
26432
|
+
isLeaf: false
|
|
26433
|
+
});
|
|
26434
|
+
})) || [];
|
|
26435
|
+
setHandSource(data);
|
|
26436
|
+
case 6:
|
|
26437
|
+
case "end":
|
|
26438
|
+
return _context.stop();
|
|
26352
26439
|
}
|
|
26353
26440
|
}, _callee);
|
|
26354
26441
|
})), []);
|
|
@@ -26480,20 +26567,18 @@ function getRegularThresholdRange(_x) {
|
|
|
26480
26567
|
function _getRegularThresholdRange() {
|
|
26481
26568
|
_getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
26482
26569
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26483
|
-
while (1) {
|
|
26484
|
-
|
|
26485
|
-
|
|
26486
|
-
|
|
26487
|
-
|
|
26488
|
-
|
|
26489
|
-
|
|
26490
|
-
|
|
26491
|
-
|
|
26492
|
-
|
|
26493
|
-
|
|
26494
|
-
|
|
26495
|
-
return _context.stop();
|
|
26496
|
-
}
|
|
26570
|
+
while (1) switch (_context.prev = _context.next) {
|
|
26571
|
+
case 0:
|
|
26572
|
+
return _context.abrupt("return", axios({
|
|
26573
|
+
url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
|
|
26574
|
+
method: 'POST',
|
|
26575
|
+
data: _objectSpread2(_objectSpread2({}, params), {}, {
|
|
26576
|
+
queryIdentify: undefined
|
|
26577
|
+
})
|
|
26578
|
+
}));
|
|
26579
|
+
case 1:
|
|
26580
|
+
case "end":
|
|
26581
|
+
return _context.stop();
|
|
26497
26582
|
}
|
|
26498
26583
|
}, _callee);
|
|
26499
26584
|
}));
|
|
@@ -26632,137 +26717,134 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26632
26717
|
_this.getRegularThresholdRange(queryIdentify, propertyCode, queryIdentifyType);
|
|
26633
26718
|
});
|
|
26634
26719
|
};
|
|
26720
|
+
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
26635
26721
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
26636
26722
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
26637
26723
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
26638
26724
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26639
|
-
while (1) {
|
|
26640
|
-
|
|
26641
|
-
|
|
26642
|
-
|
|
26643
|
-
_context.next = 2;
|
|
26644
|
-
break;
|
|
26645
|
-
}
|
|
26646
|
-
return _context.abrupt("return");
|
|
26647
|
-
case 2:
|
|
26648
|
-
thresholdQuery = _this.state.thresholdQuery;
|
|
26649
|
-
extraRequestUrl = '';
|
|
26650
|
-
querParams = setParams(propertyCode, thresholdQuery);
|
|
26651
|
-
if (!queryIdentityInfo.find(function (item) {
|
|
26652
|
-
return item.identity == propertyCode;
|
|
26653
|
-
})) {
|
|
26654
|
-
_context.next = 10;
|
|
26655
|
-
break;
|
|
26656
|
-
}
|
|
26657
|
-
//判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
|
|
26658
|
-
needQueryList = queryIdentityInfo.find(function (item) {
|
|
26659
|
-
return item.identity == propertyCode;
|
|
26660
|
-
}).queryParam.filter(function (item) {
|
|
26661
|
-
return item.isRequired;
|
|
26662
|
-
}).map(function (item) {
|
|
26663
|
-
return item.queryKey;
|
|
26664
|
-
});
|
|
26665
|
-
if (!needQueryList.some(function (item) {
|
|
26666
|
-
return !querParams[item] || !querParams[item].length;
|
|
26667
|
-
})) {
|
|
26668
|
-
_context.next = 9;
|
|
26669
|
-
break;
|
|
26670
|
-
}
|
|
26671
|
-
return _context.abrupt("return");
|
|
26672
|
-
case 9:
|
|
26673
|
-
extraRequestUrl = queryIdentityInfo.find(function (item) {
|
|
26674
|
-
return item.identity == propertyCode;
|
|
26675
|
-
}).requestUrl || '';
|
|
26676
|
-
case 10:
|
|
26677
|
-
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
26678
|
-
extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
|
|
26679
|
-
querParams = {
|
|
26680
|
-
dictCode: queryIdentify
|
|
26681
|
-
};
|
|
26682
|
-
} else if (queryIdentifyType === 'dynamicDictCodeIdentify') {
|
|
26683
|
-
extraRequestUrl = "dictDynamicItem/getDynamicData/".concat(queryIdentify); // 字典接口
|
|
26684
|
-
// querParams = { dictCode: queryIdentify }
|
|
26685
|
-
}
|
|
26686
|
-
if (!extraRequestUrl) {
|
|
26687
|
-
_context.next = 16;
|
|
26688
|
-
break;
|
|
26689
|
-
}
|
|
26690
|
-
if (queryIdentify == 'maintain_area_code') {
|
|
26691
|
-
extraRequestUrl = "/basic/".concat(extraRequestUrl).concat(querParams.memberCardCode, "?").concat(stringify(querParams));
|
|
26692
|
-
} else if (queryIdentifyType == 'dictCodeIdentify') {
|
|
26693
|
-
extraRequestUrl = "/basic/".concat(extraRequestUrl, "?").concat(stringify(querParams));
|
|
26694
|
-
} else if (queryIdentifyType == 'dynamicDictCodeIdentify') {
|
|
26695
|
-
extraRequestUrl = "/basic/".concat(extraRequestUrl);
|
|
26696
|
-
}
|
|
26697
|
-
request$1({
|
|
26698
|
-
url: extraRequestUrl,
|
|
26699
|
-
method: 'get',
|
|
26700
|
-
converter: function converter(res) {
|
|
26701
|
-
if (handleError(res)) {
|
|
26702
|
-
var _handleData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
26703
|
-
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
26704
|
-
var _handleData2;
|
|
26705
|
-
_handleData = ((_handleData2 = _handleData) === null || _handleData2 === void 0 ? void 0 : _handleData2.length) ? _handleData.map(function (i) {
|
|
26706
|
-
return {
|
|
26707
|
-
code: i.dictItemCode,
|
|
26708
|
-
name: i.dictItemName
|
|
26709
|
-
};
|
|
26710
|
-
}) : [];
|
|
26711
|
-
}
|
|
26712
|
-
if (queryIdentifyType === 'dynamicDictCodeIdentify') {
|
|
26713
|
-
var _handleData3;
|
|
26714
|
-
_handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
|
|
26715
|
-
return {
|
|
26716
|
-
code: i.code.toString(),
|
|
26717
|
-
name: i.name
|
|
26718
|
-
};
|
|
26719
|
-
}) : [];
|
|
26720
|
-
}
|
|
26721
|
-
_this.setState({
|
|
26722
|
-
thresholdList: _handleData
|
|
26723
|
-
});
|
|
26724
|
-
}
|
|
26725
|
-
return handleData;
|
|
26726
|
-
}
|
|
26727
|
-
});
|
|
26728
|
-
_context.next = 29;
|
|
26725
|
+
while (1) switch (_context.prev = _context.next) {
|
|
26726
|
+
case 0:
|
|
26727
|
+
if (queryIdentify) {
|
|
26728
|
+
_context.next = 2;
|
|
26729
26729
|
break;
|
|
26730
|
-
|
|
26731
|
-
|
|
26732
|
-
|
|
26733
|
-
|
|
26734
|
-
|
|
26735
|
-
|
|
26736
|
-
|
|
26737
|
-
|
|
26738
|
-
|
|
26730
|
+
}
|
|
26731
|
+
return _context.abrupt("return");
|
|
26732
|
+
case 2:
|
|
26733
|
+
thresholdQuery = _this.state.thresholdQuery;
|
|
26734
|
+
extraRequestUrl = '';
|
|
26735
|
+
querParams = setParams(propertyCode, thresholdQuery);
|
|
26736
|
+
if (!queryIdentityInfo.find(function (item) {
|
|
26737
|
+
return item.identity == propertyCode;
|
|
26738
|
+
})) {
|
|
26739
|
+
_context.next = 10;
|
|
26739
26740
|
break;
|
|
26740
|
-
|
|
26741
|
-
|
|
26742
|
-
|
|
26743
|
-
|
|
26744
|
-
|
|
26745
|
-
|
|
26746
|
-
|
|
26747
|
-
|
|
26748
|
-
|
|
26749
|
-
|
|
26741
|
+
}
|
|
26742
|
+
//判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
|
|
26743
|
+
needQueryList = queryIdentityInfo.find(function (item) {
|
|
26744
|
+
return item.identity == propertyCode;
|
|
26745
|
+
}).queryParam.filter(function (item) {
|
|
26746
|
+
return item.isRequired;
|
|
26747
|
+
}).map(function (item) {
|
|
26748
|
+
return item.queryKey;
|
|
26749
|
+
});
|
|
26750
|
+
if (!needQueryList.some(function (item) {
|
|
26751
|
+
return !querParams[item] || !querParams[item].length;
|
|
26752
|
+
})) {
|
|
26753
|
+
_context.next = 9;
|
|
26754
|
+
break;
|
|
26755
|
+
}
|
|
26756
|
+
return _context.abrupt("return");
|
|
26757
|
+
case 9:
|
|
26758
|
+
extraRequestUrl = queryIdentityInfo.find(function (item) {
|
|
26759
|
+
return item.identity == propertyCode;
|
|
26760
|
+
}).requestUrl || '';
|
|
26761
|
+
case 10:
|
|
26762
|
+
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
26763
|
+
extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
|
|
26764
|
+
querParams = {
|
|
26765
|
+
dictCode: queryIdentify
|
|
26766
|
+
};
|
|
26767
|
+
} else if (queryIdentifyType === 'dynamicDictCodeIdentify') {
|
|
26768
|
+
extraRequestUrl = "dictDynamicItem/getDynamicData/".concat(queryIdentify); // 字典接口
|
|
26769
|
+
// querParams = { dictCode: queryIdentify }
|
|
26770
|
+
}
|
|
26771
|
+
if (!extraRequestUrl) {
|
|
26772
|
+
_context.next = 16;
|
|
26750
26773
|
break;
|
|
26751
|
-
|
|
26752
|
-
|
|
26753
|
-
|
|
26754
|
-
|
|
26755
|
-
|
|
26756
|
-
|
|
26757
|
-
|
|
26774
|
+
}
|
|
26775
|
+
if (queryIdentify == 'maintain_area_code') {
|
|
26776
|
+
extraRequestUrl = "/basic/".concat(extraRequestUrl).concat(querParams.memberCardCode, "?").concat(stringify(querParams));
|
|
26777
|
+
} else if (queryIdentifyType == 'dictCodeIdentify') {
|
|
26778
|
+
extraRequestUrl = "/basic/".concat(extraRequestUrl, "?").concat(stringify(querParams));
|
|
26779
|
+
} else if (queryIdentifyType == 'dynamicDictCodeIdentify') {
|
|
26780
|
+
extraRequestUrl = "/basic/".concat(extraRequestUrl);
|
|
26781
|
+
}
|
|
26782
|
+
request$1({
|
|
26783
|
+
url: extraRequestUrl,
|
|
26784
|
+
method: 'get',
|
|
26785
|
+
converter: function converter(res) {
|
|
26786
|
+
var handleData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
26787
|
+
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
26788
|
+
var _handleData;
|
|
26789
|
+
handleData = ((_handleData = handleData) === null || _handleData === void 0 ? void 0 : _handleData.length) ? handleData.map(function (i) {
|
|
26790
|
+
return {
|
|
26791
|
+
code: i.dictItemCode,
|
|
26792
|
+
name: i.dictItemName
|
|
26793
|
+
};
|
|
26794
|
+
}) : [];
|
|
26795
|
+
}
|
|
26796
|
+
if (queryIdentifyType === 'dynamicDictCodeIdentify') {
|
|
26797
|
+
var _handleData2;
|
|
26798
|
+
handleData = ((_handleData2 = handleData) === null || _handleData2 === void 0 ? void 0 : _handleData2.length) ? handleData.map(function (i) {
|
|
26799
|
+
return {
|
|
26800
|
+
code: i.code.toString(),
|
|
26801
|
+
name: i.name
|
|
26802
|
+
};
|
|
26803
|
+
}) : [];
|
|
26804
|
+
}
|
|
26758
26805
|
_this.setState({
|
|
26759
|
-
thresholdList:
|
|
26806
|
+
thresholdList: handleData
|
|
26760
26807
|
});
|
|
26808
|
+
return handleData;
|
|
26761
26809
|
}
|
|
26762
|
-
|
|
26763
|
-
|
|
26764
|
-
|
|
26765
|
-
|
|
26810
|
+
});
|
|
26811
|
+
_context.next = 29;
|
|
26812
|
+
break;
|
|
26813
|
+
case 16:
|
|
26814
|
+
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
26815
|
+
_context.next = 20;
|
|
26816
|
+
break;
|
|
26817
|
+
}
|
|
26818
|
+
_this.setState({
|
|
26819
|
+
thresholdList: queryIdentify
|
|
26820
|
+
});
|
|
26821
|
+
_context.next = 29;
|
|
26822
|
+
break;
|
|
26823
|
+
case 20:
|
|
26824
|
+
if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
|
|
26825
|
+
_context.next = 24;
|
|
26826
|
+
break;
|
|
26827
|
+
}
|
|
26828
|
+
// TODO待处理
|
|
26829
|
+
_this.setState({
|
|
26830
|
+
thresholdList: []
|
|
26831
|
+
});
|
|
26832
|
+
_context.next = 29;
|
|
26833
|
+
break;
|
|
26834
|
+
case 24:
|
|
26835
|
+
querParams.queryIdentify = queryIdentify;
|
|
26836
|
+
_context.next = 27;
|
|
26837
|
+
return getRegularThresholdRange(querParams);
|
|
26838
|
+
case 27:
|
|
26839
|
+
res = _context.sent;
|
|
26840
|
+
if (handleError(res)) {
|
|
26841
|
+
_this.setState({
|
|
26842
|
+
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
26843
|
+
});
|
|
26844
|
+
}
|
|
26845
|
+
case 29:
|
|
26846
|
+
case "end":
|
|
26847
|
+
return _context.stop();
|
|
26766
26848
|
}
|
|
26767
26849
|
}, _callee);
|
|
26768
26850
|
}));
|
|
@@ -27581,32 +27663,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27581
27663
|
notChangeOnSelect: true,
|
|
27582
27664
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
27583
27665
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
27584
|
-
while (1) {
|
|
27585
|
-
|
|
27586
|
-
|
|
27587
|
-
|
|
27588
|
-
|
|
27589
|
-
|
|
27590
|
-
|
|
27591
|
-
|
|
27592
|
-
|
|
27593
|
-
|
|
27594
|
-
|
|
27595
|
-
|
|
27596
|
-
|
|
27597
|
-
|
|
27598
|
-
|
|
27599
|
-
|
|
27600
|
-
|
|
27601
|
-
|
|
27602
|
-
|
|
27603
|
-
|
|
27604
|
-
|
|
27605
|
-
|
|
27606
|
-
|
|
27607
|
-
|
|
27608
|
-
return _context2.stop();
|
|
27609
|
-
}
|
|
27666
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
27667
|
+
case 0:
|
|
27668
|
+
_context2.next = 2;
|
|
27669
|
+
return request$1({
|
|
27670
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
27671
|
+
method: 'get',
|
|
27672
|
+
converter: function converter(_ref3) {
|
|
27673
|
+
var data = _ref3.data;
|
|
27674
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27675
|
+
return {
|
|
27676
|
+
text: item.name,
|
|
27677
|
+
value: item.id,
|
|
27678
|
+
level: item.level,
|
|
27679
|
+
id: item.id
|
|
27680
|
+
};
|
|
27681
|
+
}) : [];
|
|
27682
|
+
return handleData;
|
|
27683
|
+
}
|
|
27684
|
+
});
|
|
27685
|
+
case 2:
|
|
27686
|
+
return _context2.abrupt("return", _context2.sent);
|
|
27687
|
+
case 3:
|
|
27688
|
+
case "end":
|
|
27689
|
+
return _context2.stop();
|
|
27610
27690
|
}
|
|
27611
27691
|
}, _callee2);
|
|
27612
27692
|
})),
|
|
@@ -27632,32 +27712,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27632
27712
|
notChangeOnSelect: true,
|
|
27633
27713
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
27634
27714
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
27635
|
-
while (1) {
|
|
27636
|
-
|
|
27637
|
-
|
|
27638
|
-
|
|
27639
|
-
|
|
27640
|
-
|
|
27641
|
-
|
|
27642
|
-
|
|
27643
|
-
|
|
27644
|
-
|
|
27645
|
-
|
|
27646
|
-
|
|
27647
|
-
|
|
27648
|
-
|
|
27649
|
-
|
|
27650
|
-
|
|
27651
|
-
|
|
27652
|
-
|
|
27653
|
-
|
|
27654
|
-
|
|
27655
|
-
|
|
27656
|
-
|
|
27657
|
-
|
|
27658
|
-
|
|
27659
|
-
return _context3.stop();
|
|
27660
|
-
}
|
|
27715
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
27716
|
+
case 0:
|
|
27717
|
+
_context3.next = 2;
|
|
27718
|
+
return request$1({
|
|
27719
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
27720
|
+
method: 'get',
|
|
27721
|
+
converter: function converter(_ref5) {
|
|
27722
|
+
var data = _ref5.data;
|
|
27723
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27724
|
+
return {
|
|
27725
|
+
text: item.name,
|
|
27726
|
+
value: item.id,
|
|
27727
|
+
level: item.level,
|
|
27728
|
+
id: item.id
|
|
27729
|
+
};
|
|
27730
|
+
}) : [];
|
|
27731
|
+
return handleData;
|
|
27732
|
+
}
|
|
27733
|
+
});
|
|
27734
|
+
case 2:
|
|
27735
|
+
return _context3.abrupt("return", _context3.sent);
|
|
27736
|
+
case 3:
|
|
27737
|
+
case "end":
|
|
27738
|
+
return _context3.stop();
|
|
27661
27739
|
}
|
|
27662
27740
|
}, _callee3);
|
|
27663
27741
|
})),
|
|
@@ -27685,32 +27763,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27685
27763
|
notChangeOnSelect: true,
|
|
27686
27764
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
27687
27765
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
27688
|
-
while (1) {
|
|
27689
|
-
|
|
27690
|
-
|
|
27691
|
-
|
|
27692
|
-
|
|
27693
|
-
|
|
27694
|
-
|
|
27695
|
-
|
|
27696
|
-
|
|
27697
|
-
|
|
27698
|
-
|
|
27699
|
-
|
|
27700
|
-
|
|
27701
|
-
|
|
27702
|
-
|
|
27703
|
-
|
|
27704
|
-
|
|
27705
|
-
|
|
27706
|
-
|
|
27707
|
-
|
|
27708
|
-
|
|
27709
|
-
|
|
27710
|
-
|
|
27711
|
-
|
|
27712
|
-
return _context4.stop();
|
|
27713
|
-
}
|
|
27766
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
27767
|
+
case 0:
|
|
27768
|
+
_context4.next = 2;
|
|
27769
|
+
return request$1({
|
|
27770
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
27771
|
+
method: 'get',
|
|
27772
|
+
converter: function converter(_ref7) {
|
|
27773
|
+
var data = _ref7.data;
|
|
27774
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27775
|
+
return {
|
|
27776
|
+
text: item.name,
|
|
27777
|
+
value: item.id,
|
|
27778
|
+
level: item.level,
|
|
27779
|
+
id: item.id
|
|
27780
|
+
};
|
|
27781
|
+
}) : [];
|
|
27782
|
+
return handleData;
|
|
27783
|
+
}
|
|
27784
|
+
});
|
|
27785
|
+
case 2:
|
|
27786
|
+
return _context4.abrupt("return", _context4.sent);
|
|
27787
|
+
case 3:
|
|
27788
|
+
case "end":
|
|
27789
|
+
return _context4.stop();
|
|
27714
27790
|
}
|
|
27715
27791
|
}, _callee4);
|
|
27716
27792
|
})),
|
|
@@ -28507,6 +28583,86 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
28507
28583
|
});
|
|
28508
28584
|
}
|
|
28509
28585
|
}
|
|
28586
|
+
// 结算组织选择器
|
|
28587
|
+
if (dataChoiceBusinessType == 290) {
|
|
28588
|
+
if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
|
|
28589
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(BusinessTreeSearchSelect$1, {
|
|
28590
|
+
disabled: disabled,
|
|
28591
|
+
treeCheckable: dataInputBusinessType === 12,
|
|
28592
|
+
businessType: "settle-organization",
|
|
28593
|
+
labelInValue: true,
|
|
28594
|
+
value: values[0],
|
|
28595
|
+
style: styleCommon,
|
|
28596
|
+
onChange: function onChange(value) {
|
|
28597
|
+
if (dataInputBusinessType === 12) {
|
|
28598
|
+
values[0] = value.map(function (i) {
|
|
28599
|
+
return i.key;
|
|
28600
|
+
});
|
|
28601
|
+
valueNames[0] = value.map(function (i) {
|
|
28602
|
+
return i.label || '';
|
|
28603
|
+
});
|
|
28604
|
+
} else {
|
|
28605
|
+
values[0] = [value.key];
|
|
28606
|
+
valueNames[0] = [value.label || ''];
|
|
28607
|
+
}
|
|
28608
|
+
callback(values, valueNames);
|
|
28609
|
+
},
|
|
28610
|
+
getPopupContainer: function getPopupContainer() {
|
|
28611
|
+
return document.body;
|
|
28612
|
+
}
|
|
28613
|
+
}), /*#__PURE__*/React.createElement("span", null, "~"), /*#__PURE__*/React.createElement(BusinessTreeSearchSelect$1, {
|
|
28614
|
+
disabled: disabled,
|
|
28615
|
+
treeCheckable: dataInputBusinessType === 12,
|
|
28616
|
+
businessType: "settle-organization",
|
|
28617
|
+
labelInValue: true,
|
|
28618
|
+
value: values[0],
|
|
28619
|
+
style: styleCommon,
|
|
28620
|
+
onChange: function onChange(value) {
|
|
28621
|
+
if (dataInputBusinessType === 12) {
|
|
28622
|
+
values[1] = value.map(function (i) {
|
|
28623
|
+
return i.key;
|
|
28624
|
+
});
|
|
28625
|
+
valueNames[1] = value.map(function (i) {
|
|
28626
|
+
return i.label || '';
|
|
28627
|
+
});
|
|
28628
|
+
} else {
|
|
28629
|
+
values[1] = [value.key];
|
|
28630
|
+
valueNames[1] = [value.label || ''];
|
|
28631
|
+
}
|
|
28632
|
+
callback(values, valueNames);
|
|
28633
|
+
},
|
|
28634
|
+
getPopupContainer: function getPopupContainer() {
|
|
28635
|
+
return document.body;
|
|
28636
|
+
}
|
|
28637
|
+
}));
|
|
28638
|
+
} else {
|
|
28639
|
+
return /*#__PURE__*/React.createElement(BusinessTreeSearchSelect$1, {
|
|
28640
|
+
disabled: disabled,
|
|
28641
|
+
treeCheckable: dataInputBusinessType === 12,
|
|
28642
|
+
businessType: "settle-organization",
|
|
28643
|
+
labelInValue: true,
|
|
28644
|
+
value: values[0],
|
|
28645
|
+
style: styleCommon,
|
|
28646
|
+
onChange: function onChange(value) {
|
|
28647
|
+
if (dataInputBusinessType === 12) {
|
|
28648
|
+
values = value.map(function (i) {
|
|
28649
|
+
return i.key;
|
|
28650
|
+
}) || [];
|
|
28651
|
+
valueNames = value.map(function (i) {
|
|
28652
|
+
return i.label || '';
|
|
28653
|
+
}) || [];
|
|
28654
|
+
} else {
|
|
28655
|
+
values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
|
|
28656
|
+
valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
|
|
28657
|
+
}
|
|
28658
|
+
callback(values, valueNames);
|
|
28659
|
+
},
|
|
28660
|
+
getPopupContainer: function getPopupContainer() {
|
|
28661
|
+
return document.body;
|
|
28662
|
+
}
|
|
28663
|
+
});
|
|
28664
|
+
}
|
|
28665
|
+
}
|
|
28510
28666
|
// 配送方式选择器
|
|
28511
28667
|
if (dataChoiceBusinessType == 310) {
|
|
28512
28668
|
if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
|
|
@@ -28621,6 +28777,120 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
28621
28777
|
});
|
|
28622
28778
|
}
|
|
28623
28779
|
}
|
|
28780
|
+
// 角色选择器
|
|
28781
|
+
if (dataChoiceBusinessType == 360) {
|
|
28782
|
+
if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
|
|
28783
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
28784
|
+
selectBusinessType: "role",
|
|
28785
|
+
selectProps: _objectSpread2({
|
|
28786
|
+
style: styleCommon,
|
|
28787
|
+
placeholder: '请选择角色'
|
|
28788
|
+
}, dataInputBusinessType === 12 ? {
|
|
28789
|
+
mode: 'multiple',
|
|
28790
|
+
maxTagCount: 1
|
|
28791
|
+
} : {}),
|
|
28792
|
+
disabled: disabled,
|
|
28793
|
+
labelInValue: true,
|
|
28794
|
+
value: values[0],
|
|
28795
|
+
requestConfig: {
|
|
28796
|
+
filterInit: 'qp-code-in'
|
|
28797
|
+
},
|
|
28798
|
+
onChange: function onChange(value) {
|
|
28799
|
+
if (dataInputBusinessType === 12) {
|
|
28800
|
+
values[0] = value.map(function (i) {
|
|
28801
|
+
return i.key;
|
|
28802
|
+
});
|
|
28803
|
+
valueNames[0] = value.map(function (i) {
|
|
28804
|
+
return i.label || '';
|
|
28805
|
+
});
|
|
28806
|
+
} else {
|
|
28807
|
+
values[0] = [value.key];
|
|
28808
|
+
valueNames[0] = [value.label || ''];
|
|
28809
|
+
}
|
|
28810
|
+
callback(values, valueNames);
|
|
28811
|
+
},
|
|
28812
|
+
getPopupContainer: function getPopupContainer() {
|
|
28813
|
+
return document.body;
|
|
28814
|
+
}
|
|
28815
|
+
}), /*#__PURE__*/React.createElement("span", null, "~"), /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
28816
|
+
selectBusinessType: "role",
|
|
28817
|
+
selectProps: _objectSpread2({
|
|
28818
|
+
style: styleCommon,
|
|
28819
|
+
placeholder: '请选择角色'
|
|
28820
|
+
}, dataInputBusinessType === 12 ? {
|
|
28821
|
+
mode: 'multiple',
|
|
28822
|
+
maxTagCount: 1
|
|
28823
|
+
} : {}),
|
|
28824
|
+
disabled: disabled,
|
|
28825
|
+
labelInValue: true,
|
|
28826
|
+
value: values[1],
|
|
28827
|
+
requestConfig: {
|
|
28828
|
+
filterInit: 'qp-code-in'
|
|
28829
|
+
},
|
|
28830
|
+
onChange: function onChange(value) {
|
|
28831
|
+
if (dataInputBusinessType === 12) {
|
|
28832
|
+
values[1] = value.map(function (i) {
|
|
28833
|
+
return i.key;
|
|
28834
|
+
});
|
|
28835
|
+
valueNames[1] = value.map(function (i) {
|
|
28836
|
+
return i.label || '';
|
|
28837
|
+
});
|
|
28838
|
+
} else {
|
|
28839
|
+
values[1] = [value.key];
|
|
28840
|
+
valueNames[1] = [value.label || ''];
|
|
28841
|
+
}
|
|
28842
|
+
callback(values, valueNames);
|
|
28843
|
+
},
|
|
28844
|
+
getPopupContainer: function getPopupContainer() {
|
|
28845
|
+
return document.body;
|
|
28846
|
+
}
|
|
28847
|
+
}));
|
|
28848
|
+
} else {
|
|
28849
|
+
var _values12;
|
|
28850
|
+
var _currentValue11 = dataInputBusinessType === 12 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
|
|
28851
|
+
return {
|
|
28852
|
+
key: s,
|
|
28853
|
+
label: valueNames[vIndex]
|
|
28854
|
+
};
|
|
28855
|
+
})) || [] : values[0] && {
|
|
28856
|
+
key: values[0],
|
|
28857
|
+
label: valueNames[0]
|
|
28858
|
+
} || {};
|
|
28859
|
+
return /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
28860
|
+
selectBusinessType: "role",
|
|
28861
|
+
selectProps: _objectSpread2({
|
|
28862
|
+
style: styleCommon,
|
|
28863
|
+
placeholder: '请选择角色'
|
|
28864
|
+
}, dataInputBusinessType === 12 ? {
|
|
28865
|
+
mode: 'multiple',
|
|
28866
|
+
maxTagCount: 1
|
|
28867
|
+
} : {}),
|
|
28868
|
+
disabled: disabled,
|
|
28869
|
+
labelInValue: true,
|
|
28870
|
+
value: _currentValue11,
|
|
28871
|
+
requestConfig: {
|
|
28872
|
+
filterInit: 'qp-code-in'
|
|
28873
|
+
},
|
|
28874
|
+
onChange: function onChange(value) {
|
|
28875
|
+
if (dataInputBusinessType === 12) {
|
|
28876
|
+
values = value.map(function (i) {
|
|
28877
|
+
return i.key;
|
|
28878
|
+
}) || [];
|
|
28879
|
+
valueNames = value.map(function (i) {
|
|
28880
|
+
return i.label || '';
|
|
28881
|
+
}) || [];
|
|
28882
|
+
} else {
|
|
28883
|
+
values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
|
|
28884
|
+
valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
|
|
28885
|
+
}
|
|
28886
|
+
callback(values, valueNames);
|
|
28887
|
+
},
|
|
28888
|
+
getPopupContainer: function getPopupContainer() {
|
|
28889
|
+
return document.body;
|
|
28890
|
+
}
|
|
28891
|
+
});
|
|
28892
|
+
}
|
|
28893
|
+
}
|
|
28624
28894
|
} else {
|
|
28625
28895
|
if (dataTypeCode == 22 || dataTypeCode == 21 || dataTypeCode == 24 || dataTypeCode == 23) {
|
|
28626
28896
|
//数值22, 字符串21, 布尔类型24, long23
|
|
@@ -28827,8 +29097,6 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
28827
29097
|
});
|
|
28828
29098
|
}
|
|
28829
29099
|
}
|
|
28830
|
-
|
|
28831
|
-
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
28832
29100
|
}, {
|
|
28833
29101
|
key: "render",
|
|
28834
29102
|
value: function render() {
|
|
@@ -29306,6 +29574,54 @@ var RuleField$1 = /*#__PURE__*/function (_Component) {
|
|
|
29306
29574
|
return RuleField;
|
|
29307
29575
|
}(Component);
|
|
29308
29576
|
|
|
29577
|
+
var InnerSelect = (function (props) {
|
|
29578
|
+
var disabled = props.disabled,
|
|
29579
|
+
inputType = props.inputType,
|
|
29580
|
+
defaultValue = props.defaultValue,
|
|
29581
|
+
styleCommon = props.styleCommon,
|
|
29582
|
+
value = props.value,
|
|
29583
|
+
_onChange = props.onChange,
|
|
29584
|
+
dictionaryCode = props.dictionaryCode;
|
|
29585
|
+
var _useState = useState(getDictionarySource(dictionaryCode !== null && dictionaryCode !== void 0 ? dictionaryCode : '') || []),
|
|
29586
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
29587
|
+
dataSource = _useState2[0],
|
|
29588
|
+
setDataSource = _useState2[1];
|
|
29589
|
+
useEffect(function () {
|
|
29590
|
+
if (!!dictionaryCode && !getDictionarySource(dictionaryCode)) {
|
|
29591
|
+
request$1({
|
|
29592
|
+
url: "/basic/bscDictItem/allItemList?qp-code-eq=".concat(dictionaryCode),
|
|
29593
|
+
method: 'get',
|
|
29594
|
+
converter: function converter(_ref) {
|
|
29595
|
+
var _data$map;
|
|
29596
|
+
var data = _ref.data;
|
|
29597
|
+
var dataList = (data === null || data === void 0 ? void 0 : (_data$map = data.map) === null || _data$map === void 0 ? void 0 : _data$map.call(data, function (item) {
|
|
29598
|
+
return {
|
|
29599
|
+
label: item.dictItemName,
|
|
29600
|
+
value: item.dictItemCode
|
|
29601
|
+
};
|
|
29602
|
+
})) || [];
|
|
29603
|
+
setDataSource(dataList);
|
|
29604
|
+
return dataList;
|
|
29605
|
+
}
|
|
29606
|
+
});
|
|
29607
|
+
}
|
|
29608
|
+
}, [dictionaryCode]);
|
|
29609
|
+
return /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({
|
|
29610
|
+
disabled: disabled
|
|
29611
|
+
}, inputType === 30 ? {
|
|
29612
|
+
mode: 'multiple'
|
|
29613
|
+
} : {}), {}, {
|
|
29614
|
+
defaultValue: defaultValue,
|
|
29615
|
+
style: styleCommon,
|
|
29616
|
+
value: value === null || value === void 0 ? void 0 : value.split(','),
|
|
29617
|
+
onChange: function onChange(changeValue) {
|
|
29618
|
+
_onChange(changeValue);
|
|
29619
|
+
// handleEdit(ites.code, value);
|
|
29620
|
+
},
|
|
29621
|
+
options: dataSource
|
|
29622
|
+
}));
|
|
29623
|
+
});
|
|
29624
|
+
|
|
29309
29625
|
var RangePicker$1 = DatePicker.RangePicker;
|
|
29310
29626
|
var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
29311
29627
|
_inherits(RuleObjectComponent, _Component);
|
|
@@ -29659,6 +29975,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29659
29975
|
callBack(ruleClassData);
|
|
29660
29976
|
});
|
|
29661
29977
|
};
|
|
29978
|
+
// 树结构 转化成 平行树 (递归函数)
|
|
29662
29979
|
_this.coverToParallel = function (treeData, result) {
|
|
29663
29980
|
treeData.forEach(function (el) {
|
|
29664
29981
|
result.push(el);
|
|
@@ -29722,18 +30039,18 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29722
30039
|
onClick: function onClick() {
|
|
29723
30040
|
_this.handleLogicalTypeChange(itemDetail, 'or');
|
|
29724
30041
|
}
|
|
29725
|
-
}, "
|
|
30042
|
+
}, "\u6216\u8005"), /*#__PURE__*/React.createElement("p", {
|
|
29726
30043
|
className: 'choose_logical_type',
|
|
29727
30044
|
onClick: function onClick() {
|
|
29728
30045
|
_this.handleLogicalTypeChange(itemDetail, 'and');
|
|
29729
30046
|
}
|
|
29730
|
-
}, "
|
|
30047
|
+
}, "\u5E76\u4E14")),
|
|
29731
30048
|
trigger: "focus"
|
|
29732
30049
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
29733
30050
|
disabled: disabled,
|
|
29734
30051
|
type: "link",
|
|
29735
30052
|
className: 'logical_item_btn'
|
|
29736
|
-
}, (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.operationCode) == 'or' ? '
|
|
30053
|
+
}, (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.operationCode) == 'or' ? '或者' : '并且', /*#__PURE__*/React.createElement(DownOutlined, {
|
|
29737
30054
|
style: {
|
|
29738
30055
|
marginLeft: '6px'
|
|
29739
30056
|
}
|
|
@@ -29914,6 +30231,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29914
30231
|
callBack(ruleClassData);
|
|
29915
30232
|
});
|
|
29916
30233
|
};
|
|
30234
|
+
// 场景需要返回值2022.11.15
|
|
29917
30235
|
_this.renderResItem = function (itemDetail, parentDetail, ruleReturnConfig, classDataIndex, disabled, boxStyle) {
|
|
29918
30236
|
var _ruleReturnConfig$rig;
|
|
29919
30237
|
var isShowResponse = itemDetail.response['enable'];
|
|
@@ -30058,23 +30376,17 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30058
30376
|
key: it,
|
|
30059
30377
|
value: it
|
|
30060
30378
|
}, ites.enumeration[it]);
|
|
30061
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 20 && /*#__PURE__*/React.createElement(
|
|
30062
|
-
disabled: disabled
|
|
30063
|
-
|
|
30064
|
-
mode: 'multiple'
|
|
30065
|
-
} : {}, {
|
|
30379
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 20 && /*#__PURE__*/React.createElement(InnerSelect, {
|
|
30380
|
+
disabled: disabled,
|
|
30381
|
+
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
30066
30382
|
defaultValue: ites.defaultValue,
|
|
30067
|
-
|
|
30383
|
+
styleCommon: styleCommon,
|
|
30068
30384
|
value: showValue(ites.code),
|
|
30069
30385
|
onChange: function onChange(value) {
|
|
30070
30386
|
handleEdit(ites.code, value);
|
|
30071
|
-
}
|
|
30072
|
-
|
|
30073
|
-
|
|
30074
|
-
key: it.value,
|
|
30075
|
-
value: it.value
|
|
30076
|
-
}, it.text);
|
|
30077
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 110 && /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
30387
|
+
},
|
|
30388
|
+
dictionaryCode: ites.dictionaryCode
|
|
30389
|
+
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 110 && /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
30078
30390
|
selectBusinessType: "physicalWarehouse",
|
|
30079
30391
|
selectProps: _objectSpread2({
|
|
30080
30392
|
style: styleCommon,
|
|
@@ -30211,32 +30523,30 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30211
30523
|
notChangeOnSelect: true,
|
|
30212
30524
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30213
30525
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30214
|
-
while (1) {
|
|
30215
|
-
|
|
30216
|
-
|
|
30217
|
-
|
|
30218
|
-
|
|
30219
|
-
|
|
30220
|
-
|
|
30221
|
-
|
|
30222
|
-
|
|
30223
|
-
|
|
30224
|
-
|
|
30225
|
-
|
|
30226
|
-
|
|
30227
|
-
|
|
30228
|
-
|
|
30229
|
-
|
|
30230
|
-
|
|
30231
|
-
|
|
30232
|
-
|
|
30233
|
-
|
|
30234
|
-
|
|
30235
|
-
|
|
30236
|
-
|
|
30237
|
-
|
|
30238
|
-
return _context.stop();
|
|
30239
|
-
}
|
|
30526
|
+
while (1) switch (_context.prev = _context.next) {
|
|
30527
|
+
case 0:
|
|
30528
|
+
_context.next = 2;
|
|
30529
|
+
return request$1({
|
|
30530
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
30531
|
+
method: 'get',
|
|
30532
|
+
converter: function converter(_ref2) {
|
|
30533
|
+
var data = _ref2.data;
|
|
30534
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
30535
|
+
return {
|
|
30536
|
+
text: item.name,
|
|
30537
|
+
value: item.id,
|
|
30538
|
+
level: item.level,
|
|
30539
|
+
id: item.id
|
|
30540
|
+
};
|
|
30541
|
+
}) : [];
|
|
30542
|
+
return handleData;
|
|
30543
|
+
}
|
|
30544
|
+
});
|
|
30545
|
+
case 2:
|
|
30546
|
+
return _context.abrupt("return", _context.sent);
|
|
30547
|
+
case 3:
|
|
30548
|
+
case "end":
|
|
30549
|
+
return _context.stop();
|
|
30240
30550
|
}
|
|
30241
30551
|
}, _callee);
|
|
30242
30552
|
})),
|
|
@@ -30383,6 +30693,19 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30383
30693
|
getPopupContainer: function getPopupContainer() {
|
|
30384
30694
|
return document.body;
|
|
30385
30695
|
}
|
|
30696
|
+
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 290 && /*#__PURE__*/React.createElement(BusinessTreeSearchSelect$1, {
|
|
30697
|
+
disabled: disabled,
|
|
30698
|
+
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
30699
|
+
businessType: "settle-organization",
|
|
30700
|
+
labelInValue: true,
|
|
30701
|
+
value: showValue(ites.code),
|
|
30702
|
+
style: styleCommon,
|
|
30703
|
+
onChange: function onChange(value) {
|
|
30704
|
+
handleEdit(ites.code, value);
|
|
30705
|
+
},
|
|
30706
|
+
getPopupContainer: function getPopupContainer() {
|
|
30707
|
+
return document.body;
|
|
30708
|
+
}
|
|
30386
30709
|
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 && /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
30387
30710
|
selectBusinessType: "deliveryMode",
|
|
30388
30711
|
selectProps: _objectSpread2({
|
|
@@ -30570,6 +30893,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30570
30893
|
}
|
|
30571
30894
|
}, "\u65B0\u589E\u8FD4\u56DE\u503C")), isHaveRuleReturnConfig && _this.renderResItem(itemDetail, parentDetail, ruleReturnConfig, classDataIndex, disabled, RuleActionItemStyle) || null, isHaveRuleTypeData && _this.renderActionList(itemDetail, parentDetail, handleRuleTypeData, selectRuleActionData, classDataIndex, disabled, RuleActionItemStyle) || null);
|
|
30572
30895
|
};
|
|
30896
|
+
//添加同一层级条件
|
|
30573
30897
|
_this.addPeerRule = function (itemDetail) {
|
|
30574
30898
|
var ruleClassData = _this.state.ruleClassData;
|
|
30575
30899
|
var _this$props4 = _this.props,
|
|
@@ -30590,6 +30914,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30590
30914
|
callBack(ruleClassData);
|
|
30591
30915
|
});
|
|
30592
30916
|
};
|
|
30917
|
+
//添加子层级条件
|
|
30593
30918
|
_this.addChildRules = function (itemDetail) {
|
|
30594
30919
|
var ruleClassData = _this.state.ruleClassData;
|
|
30595
30920
|
var callBack = _this.props.callBack;
|
|
@@ -30665,6 +30990,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30665
30990
|
callBack(ruleClassData);
|
|
30666
30991
|
});
|
|
30667
30992
|
};
|
|
30993
|
+
// 新增执行顺序
|
|
30668
30994
|
_this.handleSelectRuleAction = function (keys, classDataIndex, callback) {
|
|
30669
30995
|
callback();
|
|
30670
30996
|
var callBack = _this.props.callBack;
|
|
@@ -30815,4 +31141,4 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30815
31141
|
return RuleObjectComponent;
|
|
30816
31142
|
}(Component);
|
|
30817
31143
|
|
|
30818
|
-
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, BillEntry, BsCascader, index$
|
|
31144
|
+
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 };
|