@bit-sun/business-component 2.3.6 → 2.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +16 -16
- package/.fatherrc.ts +5 -5
- package/.gitlab-ci.yml +179 -179
- package/.prettierignore +7 -7
- package/.prettierrc +11 -11
- package/.umirc.ts +74 -74
- package/README.md +27 -27
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
- package/dist/components/Business/SearchSelect/index.d.ts +1 -1
- package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
- package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
- package/dist/index.esm.js +1071 -999
- package/dist/index.js +1077 -1005
- package/dist/utils/utils.d.ts +1 -1
- package/docs/index.md +21 -21
- package/lib/assets/drag.svg +17 -17
- package/lib/assets/exportFail.svg +37 -37
- package/lib/assets/exportProcessing.svg +28 -28
- package/lib/assets/exportSuccess.svg +34 -34
- package/lib/assets/label_icon_bottom.svg +25 -25
- package/lib/assets/upExport.svg +22 -22
- package/package.json +78 -78
- package/src/assets/32.svg +27 -27
- package/src/assets/addIcon.svg +17 -17
- package/src/assets/allfunc.svg +27 -27
- package/src/assets/arrowRight.svg +24 -24
- package/src/assets/btn-delete.svg +29 -29
- package/src/assets/btn-edit.svg +19 -19
- package/src/assets/btn-more.svg +17 -17
- package/src/assets/btn-submit.svg +19 -19
- package/src/assets/caidan.svg +11 -11
- package/src/assets/close.svg +26 -26
- package/src/assets/drag.svg +17 -17
- package/src/assets/exportFail.svg +37 -37
- package/src/assets/exportProcessing.svg +28 -28
- package/src/assets/exportSuccess.svg +34 -34
- package/src/assets/fixed-left-active.svg +11 -11
- package/src/assets/fixed-left.svg +15 -15
- package/src/assets/fixed-right-active.svg +11 -11
- package/src/assets/fixed-right.svg +15 -15
- package/src/assets/guanbi.svg +15 -15
- package/src/assets/icon-quanping.svg +15 -15
- package/src/assets/icon-shezhi.svg +17 -17
- package/src/assets/label_icon_bottom.svg +25 -25
- package/src/assets/list-no-img.svg +21 -21
- package/src/assets/morentouxiang-32.svg +23 -23
- package/src/assets/scanning.svg +24 -24
- package/src/assets/upExport.svg +22 -22
- package/src/common/ENUM.ts +41 -41
- package/src/components/Business/AddSelectBusiness/index.md +161 -161
- package/src/components/Business/AddSelectBusiness/index.tsx +861 -861
- package/src/components/Business/BsLayouts/Components/AllFunc/drawContent.tsx +111 -111
- package/src/components/Business/BsLayouts/Components/AllFunc/index.less +153 -153
- package/src/components/Business/BsLayouts/Components/AllFunc/index.tsx +70 -70
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.less +90 -90
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.tsx +37 -37
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.tsx +242 -242
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.tsx +384 -384
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.tsx +285 -285
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.tsx +74 -74
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/drawContent.less +170 -170
- package/src/components/Business/BsLayouts/Components/CustomerMenu/index.less +64 -64
- package/src/components/Business/BsLayouts/Components/CustomerMenu/index.tsx +153 -153
- package/src/components/Business/BsLayouts/Components/GlobalHeader/index.less +72 -72
- package/src/components/Business/BsLayouts/Components/GlobalHeader/index.tsx +157 -157
- package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +85 -85
- package/src/components/Business/BsLayouts/Components/RightContent/home.less +218 -218
- package/src/components/Business/BsLayouts/Components/RightContent/index.tsx +155 -155
- package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +160 -160
- package/src/components/Business/BsLayouts/Components/SearchFunc/index.tsx +75 -75
- package/src/components/Business/BsLayouts/index.less +79 -79
- package/src/components/Business/BsLayouts/index.tsx +1484 -1484
- package/src/components/Business/BsLayouts/service.ts +10 -10
- package/src/components/Business/BsLayouts/utils.tsx +203 -203
- package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +564 -564
- package/src/components/Business/BsSulaQueryTable/index.less +221 -221
- package/src/components/Business/BsSulaQueryTable/index.tsx +527 -527
- package/src/components/Business/BsSulaQueryTable/setting.tsx +832 -832
- package/src/components/Business/BsSulaQueryTable/utils.less +65 -65
- package/src/components/Business/BsSulaQueryTable/utils.tsx +688 -688
- package/src/components/Business/CommodityEntry/index.md +70 -70
- package/src/components/Business/CommodityEntry/index.tsx +80 -80
- package/src/components/Business/CommonAlert/index.tsx +23 -23
- package/src/components/Business/CommonGuideWrapper/index.less +111 -111
- package/src/components/Business/CommonGuideWrapper/index.md +39 -39
- package/src/components/Business/CommonGuideWrapper/index.tsx +83 -83
- package/src/components/Business/DetailPageWrapper/index.less +79 -79
- package/src/components/Business/DetailPageWrapper/index.tsx +313 -313
- package/src/components/Business/DetailPageWrapper/utils.tsx +100 -100
- package/src/components/Business/HomePageWrapper/index.less +33 -33
- package/src/components/Business/HomePageWrapper/index.md +45 -45
- package/src/components/Business/HomePageWrapper/index.tsx +162 -162
- package/src/components/Business/JsonQueryTable/components/FieldsModifyModal.tsx +824 -824
- package/src/components/Business/JsonQueryTable/components/FieldsSettingsTable.tsx +205 -205
- package/src/components/Business/JsonQueryTable/components/Formula.tsx +205 -205
- package/src/components/Business/JsonQueryTable/components/MaintainOptions.tsx +127 -127
- package/src/components/Business/JsonQueryTable/configButton/index.js +20 -20
- package/src/components/Business/JsonQueryTable/configTree/component/compactArrayView.js +25 -25
- package/src/components/Business/JsonQueryTable/configTree/component/compactObjectView.js +30 -30
- package/src/components/Business/JsonQueryTable/configTree/index.js +82 -82
- package/src/components/Business/JsonQueryTable/configTree/index.less +44 -44
- package/src/components/Business/JsonQueryTable/configTree/parser/highlight.js +57 -57
- package/src/components/Business/JsonQueryTable/configTree/parser/index.js +124 -124
- package/src/components/Business/JsonQueryTable/configTree/render/iconRender.js +29 -29
- package/src/components/Business/JsonQueryTable/configTree/render/nameRender.js +22 -22
- package/src/components/Business/JsonQueryTable/configTree/treeNode.js +116 -116
- package/src/components/Business/JsonQueryTable/drawer/index.tsx +12 -12
- package/src/components/Business/JsonQueryTable/function.ts +62 -62
- package/src/components/Business/JsonQueryTable/index.less +16 -16
- package/src/components/Business/JsonQueryTable/index.md +328 -328
- package/src/components/Business/JsonQueryTable/index.tsx +535 -535
- package/src/components/Business/JsonQueryTable/jsonEditor/index.js +346 -346
- package/src/components/Business/JsonQueryTable/jsonEditor/index.less +22 -22
- package/src/components/Business/JsonQueryTable/jsonEditor/lint/basicType.js +147 -147
- package/src/components/Business/JsonQueryTable/jsonEditor/lint/index.js +389 -389
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/actions.js +118 -118
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/dependency.js +22 -22
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/index.js +21 -21
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/request.js +65 -65
- package/src/components/Business/JsonQueryTable/static.ts +390 -390
- package/src/components/Business/SearchSelect/BusinessUtils.ts +1732 -1732
- package/src/components/Business/SearchSelect/common.ts +53 -53
- package/src/components/Business/SearchSelect/index.md +1319 -1319
- package/src/components/Business/SearchSelect/index.tsx +51 -51
- package/src/components/Business/SearchSelect/utils.ts +100 -100
- package/src/components/Business/StateFlow/index.less +130 -130
- package/src/components/Business/StateFlow/index.md +60 -60
- package/src/components/Business/StateFlow/index.tsx +29 -29
- package/src/components/Business/TreeSearchSelect/index.md +154 -154
- package/src/components/Business/TreeSearchSelect/index.tsx +33 -33
- package/src/components/Business/TreeSearchSelect/utils.ts +75 -75
- package/src/components/Business/columnSettingTable/columnSetting.tsx +764 -764
- package/src/components/Business/columnSettingTable/index.less +247 -247
- package/src/components/Business/columnSettingTable/index.md +357 -357
- package/src/components/Business/columnSettingTable/index.tsx +232 -232
- package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +240 -240
- package/src/components/Business/columnSettingTable/utils.tsx +68 -68
- package/src/components/Business/moreTreeTable/FixedScrollBar.tsx +86 -86
- package/src/components/Business/moreTreeTable/hooks/useSticky.ts +21 -21
- package/src/components/Business/moreTreeTable/index.less +99 -99
- package/src/components/Business/moreTreeTable/index.md +448 -448
- package/src/components/Business/moreTreeTable/index.tsx +387 -387
- package/src/components/Business/moreTreeTable/utils.ts +126 -126
- package/src/components/Functional/AddSelect/helps.ts +14 -14
- package/src/components/Functional/AddSelect/index.less +367 -367
- package/src/components/Functional/AddSelect/index.md +155 -155
- package/src/components/Functional/AddSelect/index.tsx +1279 -1279
- package/src/components/Functional/BillEntry/index.less +371 -371
- package/src/components/Functional/BillEntry/index.md +39 -39
- package/src/components/Functional/BillEntry/index.tsx +772 -772
- package/src/components/Functional/BsAntdSula/BsCascader/index.md +62 -62
- package/src/components/Functional/BsAntdSula/BsCascader/index.tsx +178 -178
- package/src/components/Functional/BsAntdSula/index.ts +2 -2
- package/src/components/Functional/DataImport/index.less +63 -63
- package/src/components/Functional/DataImport/index.md +44 -44
- package/src/components/Functional/DataImport/index.tsx +695 -695
- package/src/components/Functional/DataValidation/index.less +63 -63
- package/src/components/Functional/DataValidation/index.md +39 -39
- package/src/components/Functional/DataValidation/index.tsx +687 -687
- package/src/components/Functional/EllipsisTooltip/index.d.ts +5 -5
- package/src/components/Functional/EllipsisTooltip/index.js +36 -36
- package/src/components/Functional/EllipsisTooltip/index.md +30 -30
- package/src/components/Functional/ExportFunctions/ExportIcon/index.md +37 -37
- package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +59 -59
- package/src/components/Functional/QueryMutipleInput/index.less +37 -37
- package/src/components/Functional/QueryMutipleInput/index.md +33 -33
- package/src/components/Functional/QueryMutipleInput/index.tsx +128 -128
- package/src/components/Functional/SearchSelect/index.less +115 -115
- package/src/components/Functional/SearchSelect/index.md +141 -141
- package/src/components/Functional/SearchSelect/index.tsx +858 -855
- package/src/components/Functional/SearchSelect/utils.ts +3 -3
- package/src/components/Functional/TreeSearchSelect/index.md +47 -47
- package/src/components/Functional/TreeSearchSelect/index.tsx +163 -163
- package/src/components/Solution/RuleComponent/Formula.tsx +335 -335
- package/src/components/Solution/RuleComponent/index.d.ts +29 -29
- package/src/components/Solution/RuleComponent/index.js +2028 -2028
- package/src/components/Solution/RuleComponent/index.less +230 -230
- package/src/components/Solution/RuleComponent/renderSpecificAction.js +99 -99
- package/src/components/Solution/RuleComponent/ruleFiled.js +2107 -2074
- package/src/components/Solution/RuleComponent/services.ts +13 -13
- package/src/components/Solution/RuleComponent/util.js +139 -139
- package/src/index.ts +38 -38
- package/src/plugin/TableColumnSetting/index.less +247 -247
- package/src/plugin/TableColumnSetting/index.md +50 -50
- package/src/plugin/TableColumnSetting/index.tsx +724 -724
- package/src/plugin/TableColumnSetting/utils.ts +19 -19
- package/src/styles/bsDefault.less +1912 -1912
- package/src/utils/CheckOneUser/index.md +39 -39
- package/src/utils/CheckOneUser/index.ts +51 -51
- package/src/utils/LocalstorageUtils.ts +90 -90
- package/src/utils/TableUtils.tsx +18 -18
- package/src/utils/checkUtils.ts +39 -39
- package/src/utils/enumConfig.ts +11 -11
- package/src/utils/getFormMode.js +12 -12
- package/src/utils/index.ts +4 -4
- package/src/utils/requestUtils.ts +34 -34
- package/src/utils/serialize.js +7 -7
- package/src/utils/utils.ts +212 -212
- package/tsconfig.json +29 -29
- package/typings.d.ts +4 -4
package/dist/index.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ import axios from 'axios';
|
|
|
2
2
|
import { message as message$1, Popover, Card, Avatar, Tooltip, Image, Menu, Space, Dropdown, Button, Checkbox, Input, Modal, Select, Form, Divider, Spin, Table, TreeSelect, Tag, InputNumber, Typography, Alert, Anchor, Breadcrumb, Drawer as Drawer$1, List, Tree, Row, Col, Tabs, Affix, Cascader, DatePicker, TimePicker, Switch } from 'antd';
|
|
3
3
|
import _, { omit, debounce, cloneDeep as cloneDeep$1, throttle, isEmpty } from 'lodash';
|
|
4
4
|
import { history, formatMessage, useLocation, Link, useModel, useIntl } from 'umi';
|
|
5
|
-
import isEqual
|
|
5
|
+
import isEqual from 'lodash/isEqual';
|
|
6
6
|
import React, { useState, useEffect, forwardRef, useImperativeHandle, useRef, useMemo, Component, useLayoutEffect, createRef } from 'react';
|
|
7
7
|
import moment$1 from 'moment';
|
|
8
8
|
import { UnorderedListOutlined, ProfileTwoTone, ExclamationCircleOutlined, DownOutlined, CopyOutlined, SearchOutlined, CaretLeftOutlined, CloseCircleOutlined, ArrowLeftOutlined, FolderOutlined, EllipsisOutlined, CaretDownOutlined, HomeOutlined, DoubleLeftOutlined, DoubleRightOutlined, MenuUnfoldOutlined, DashOutlined, SettingOutlined, BulbOutlined, PlayCircleOutlined, SaveOutlined, FullscreenExitOutlined, EditOutlined, MinusCircleOutlined, PlusCircleOutlined } from '@ant-design/icons';
|
|
@@ -762,52 +762,41 @@ var precisionQuantity = function precisionQuantity(num, accuracy) {
|
|
|
762
762
|
return '';
|
|
763
763
|
};
|
|
764
764
|
|
|
765
|
-
var
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
function
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
765
|
+
var simpleIsEqual = function simpleIsEqual(a, b) {
|
|
766
|
+
return a === b;
|
|
767
|
+
};
|
|
768
|
+
|
|
769
|
+
function index$1 (resultFn, isEqual) {
|
|
770
|
+
if (isEqual === void 0) {
|
|
771
|
+
isEqual = simpleIsEqual;
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
var lastThis;
|
|
775
|
+
var lastArgs = [];
|
|
776
|
+
var lastResult;
|
|
777
|
+
var calledOnce = false;
|
|
778
|
+
|
|
779
|
+
var isNewArgEqualToLast = function isNewArgEqualToLast(newArg, index) {
|
|
780
|
+
return isEqual(newArg, lastArgs[index], index);
|
|
781
|
+
};
|
|
782
|
+
|
|
783
|
+
var result = function result() {
|
|
784
|
+
for (var _len = arguments.length, newArgs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
785
|
+
newArgs[_key] = arguments[_key];
|
|
781
786
|
}
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
}
|
|
787
|
+
|
|
788
|
+
if (calledOnce && lastThis === this && newArgs.length === lastArgs.length && newArgs.every(isNewArgEqualToLast)) {
|
|
789
|
+
return lastResult;
|
|
786
790
|
}
|
|
787
|
-
return true;
|
|
788
|
-
}
|
|
789
791
|
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
799
|
-
newArgs[_i] = arguments[_i];
|
|
800
|
-
}
|
|
801
|
-
if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {
|
|
802
|
-
return lastResult;
|
|
803
|
-
}
|
|
804
|
-
lastResult = resultFn.apply(this, newArgs);
|
|
805
|
-
calledOnce = true;
|
|
806
|
-
lastThis = this;
|
|
807
|
-
lastArgs = newArgs;
|
|
808
|
-
return lastResult;
|
|
809
|
-
}
|
|
810
|
-
return memoized;
|
|
792
|
+
lastResult = resultFn.apply(this, newArgs);
|
|
793
|
+
calledOnce = true;
|
|
794
|
+
lastThis = this;
|
|
795
|
+
lastArgs = newArgs;
|
|
796
|
+
return lastResult;
|
|
797
|
+
};
|
|
798
|
+
|
|
799
|
+
return result;
|
|
811
800
|
}
|
|
812
801
|
|
|
813
802
|
function styleInject(css, ref) {
|
|
@@ -1021,58 +1010,59 @@ var getItemDefaultWidth = function getItemDefaultWidth(item) {
|
|
|
1021
1010
|
* @returns 返回处理后的查询参数
|
|
1022
1011
|
*/
|
|
1023
1012
|
function queryParams(params, flag) {
|
|
1024
|
-
|
|
1013
|
+
var _loop = function _loop() {
|
|
1025
1014
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
params[value] = moment$1(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
1050
|
-
} else {
|
|
1051
|
-
params[value] = moment$1(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
1052
|
-
}
|
|
1053
|
-
});
|
|
1054
|
-
delete params[key];
|
|
1055
|
-
} else if (element && key.indexOf('*') >= 0) {
|
|
1056
|
-
var _dataParams4 = key.split('*');
|
|
1057
|
-
_dataParams4.forEach(function (value, index) {
|
|
1058
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
1059
|
-
});
|
|
1060
|
-
delete params[key];
|
|
1061
|
-
} else if (element && key.indexOf('_likeIn_') >= 0) {
|
|
1062
|
-
var _dataParams5 = key.split('_likeIn_');
|
|
1063
|
-
if (element.indexOf(',') >= 0) {
|
|
1064
|
-
params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
|
|
1065
|
-
params["qp-".concat(_dataParams5[0], "-like")] = null;
|
|
1015
|
+
var element = params[key];
|
|
1016
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
1017
|
+
var dataParams = key.split('*number*');
|
|
1018
|
+
dataParams.forEach(function (value, index) {
|
|
1019
|
+
params[value] = element[index];
|
|
1020
|
+
});
|
|
1021
|
+
delete params[key];
|
|
1022
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
1023
|
+
var _dataParams = key.split('*address*');
|
|
1024
|
+
_dataParams.forEach(function (value, index) {
|
|
1025
|
+
params[value] = element.PCDCode[index];
|
|
1026
|
+
});
|
|
1027
|
+
delete params[key];
|
|
1028
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
1029
|
+
var _dataParams2 = key.split('*costType*');
|
|
1030
|
+
// eslint-disable-next-line prefer-destructuring
|
|
1031
|
+
params[_dataParams2[0]] = element[1];
|
|
1032
|
+
delete params[key];
|
|
1033
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
1034
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
1035
|
+
_dataParams3.forEach(function (value, index) {
|
|
1036
|
+
if (index === 0) {
|
|
1037
|
+
params[value] = moment$1(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
1066
1038
|
} else {
|
|
1067
|
-
params[
|
|
1068
|
-
params["qp-".concat(_dataParams5[0], "-in")] = null;
|
|
1039
|
+
params[value] = moment$1(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
1069
1040
|
}
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1041
|
+
});
|
|
1042
|
+
delete params[key];
|
|
1043
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
1044
|
+
var _dataParams4 = key.split('*');
|
|
1045
|
+
_dataParams4.forEach(function (value, index) {
|
|
1046
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
1047
|
+
});
|
|
1048
|
+
delete params[key];
|
|
1049
|
+
} else if (element && key.indexOf('_likeIn_') >= 0) {
|
|
1050
|
+
var _dataParams5 = key.split('_likeIn_');
|
|
1051
|
+
if (element.indexOf(',') >= 0) {
|
|
1052
|
+
params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
|
|
1053
|
+
params["qp-".concat(_dataParams5[0], "-like")] = null;
|
|
1054
|
+
} else {
|
|
1055
|
+
params["qp-".concat(_dataParams5[0], "-like")] = element;
|
|
1056
|
+
params["qp-".concat(_dataParams5[0], "-in")] = null;
|
|
1073
1057
|
}
|
|
1074
|
-
|
|
1058
|
+
delete params[key];
|
|
1059
|
+
} else if (Array.isArray(element)) {
|
|
1060
|
+
params[key] = element.join(',');
|
|
1061
|
+
}
|
|
1075
1062
|
}
|
|
1063
|
+
};
|
|
1064
|
+
for (var key in params) {
|
|
1065
|
+
_loop();
|
|
1076
1066
|
}
|
|
1077
1067
|
return flag ? params : qs.stringify(params);
|
|
1078
1068
|
}
|
|
@@ -1118,7 +1108,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1118
1108
|
return item;
|
|
1119
1109
|
});
|
|
1120
1110
|
};
|
|
1121
|
-
var memoizeOneFormatter =
|
|
1111
|
+
var memoizeOneFormatter = index$1(formatter, isEqual);
|
|
1122
1112
|
var go2BackAndClose = function go2BackAndClose() {
|
|
1123
1113
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1124
1114
|
history.goBack();
|
|
@@ -2797,84 +2787,85 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
2797
2787
|
});
|
|
2798
2788
|
}
|
|
2799
2789
|
// 数组对象处理,对带有特殊标记的name进行处理
|
|
2800
|
-
|
|
2790
|
+
var _loop = function _loop() {
|
|
2801
2791
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
2828
|
-
}
|
|
2829
|
-
});
|
|
2830
|
-
delete params[key];
|
|
2831
|
-
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
2832
|
-
var _dataParams4 = key.split('*checkBox*');
|
|
2833
|
-
if (element) {
|
|
2834
|
-
params[_dataParams4[0]] = 0;
|
|
2792
|
+
var element = params[key];
|
|
2793
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
2794
|
+
var dataParams = key.split('*number*');
|
|
2795
|
+
dataParams.forEach(function (value, index) {
|
|
2796
|
+
params[value] = element[index];
|
|
2797
|
+
});
|
|
2798
|
+
delete params[key];
|
|
2799
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
2800
|
+
var _dataParams = key.split('*address*');
|
|
2801
|
+
_dataParams.forEach(function (value, index) {
|
|
2802
|
+
params[value] = element.PCDCode[index];
|
|
2803
|
+
});
|
|
2804
|
+
delete params[key];
|
|
2805
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
2806
|
+
var _dataParams2 = key.split('*costType*');
|
|
2807
|
+
// eslint-disable-next-line prefer-destructuring
|
|
2808
|
+
params[_dataParams2[0]] = element[1];
|
|
2809
|
+
delete params[key];
|
|
2810
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
2811
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
2812
|
+
_dataParams3.forEach(function (value, index) {
|
|
2813
|
+
if (index === 0) {
|
|
2814
|
+
params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
2815
|
+
} else {
|
|
2816
|
+
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
2835
2817
|
}
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
_dataParams7.forEach(function (value, index) {
|
|
2854
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
2855
|
-
});
|
|
2856
|
-
delete params[key];
|
|
2857
|
-
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
2858
|
-
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
2859
|
-
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
2860
|
-
if (params[key][0] === 'range') {
|
|
2861
|
-
if (params[key][1][0]) {
|
|
2862
|
-
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
2863
|
-
}
|
|
2864
|
-
if (params[key][1][1]) {
|
|
2865
|
-
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
2866
|
-
}
|
|
2818
|
+
});
|
|
2819
|
+
delete params[key];
|
|
2820
|
+
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
2821
|
+
var _dataParams4 = key.split('*checkBox*');
|
|
2822
|
+
if (element) {
|
|
2823
|
+
params[_dataParams4[0]] = 0;
|
|
2824
|
+
}
|
|
2825
|
+
delete params[key];
|
|
2826
|
+
} else if (element && key.indexOf('*cascader*') >= 0) {
|
|
2827
|
+
var _dataParams5 = key.split('*cascader*');
|
|
2828
|
+
params[_dataParams5[0]] = element[element.length - 1];
|
|
2829
|
+
delete params[key];
|
|
2830
|
+
} else if (element && key.indexOf('*date*') >= 0) {
|
|
2831
|
+
var _dataParams6 = key.split('*date*');
|
|
2832
|
+
_dataParams6.forEach(function (value, index) {
|
|
2833
|
+
if (index === 0) {
|
|
2834
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
2867
2835
|
} else {
|
|
2868
|
-
params[
|
|
2836
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
2837
|
+
}
|
|
2838
|
+
});
|
|
2839
|
+
delete params[key];
|
|
2840
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
2841
|
+
var _dataParams7 = key.split('*');
|
|
2842
|
+
_dataParams7.forEach(function (value, index) {
|
|
2843
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
2844
|
+
});
|
|
2845
|
+
delete params[key];
|
|
2846
|
+
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
2847
|
+
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
2848
|
+
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
2849
|
+
if (params[key][0] === 'range') {
|
|
2850
|
+
if (params[key][1][0]) {
|
|
2851
|
+
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
2869
2852
|
}
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
} else
|
|
2874
|
-
|
|
2853
|
+
if (params[key][1][1]) {
|
|
2854
|
+
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
2855
|
+
}
|
|
2856
|
+
} else {
|
|
2857
|
+
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
2875
2858
|
}
|
|
2876
|
-
|
|
2859
|
+
delete params[key];
|
|
2860
|
+
} else if (Array.isArray(element)) {
|
|
2861
|
+
params[key] = element.join(',');
|
|
2862
|
+
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
2863
|
+
delete params[key];
|
|
2864
|
+
}
|
|
2877
2865
|
}
|
|
2866
|
+
};
|
|
2867
|
+
for (var key in params) {
|
|
2868
|
+
_loop();
|
|
2878
2869
|
}
|
|
2879
2870
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
2880
2871
|
pageSize: pageSize,
|
|
@@ -3045,6 +3036,9 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
3045
3036
|
ctx === null || ctx === void 0 ? void 0 : (_ctx$form2 = ctx.form) === null || _ctx$form2 === void 0 ? void 0 : _ctx$form2.setFieldSource(resultSourceKey, source);
|
|
3046
3037
|
setItems(source);
|
|
3047
3038
|
formaData(selectedValue, source);
|
|
3039
|
+
} else {
|
|
3040
|
+
var formatResult = selectMode ? [] : null;
|
|
3041
|
+
onChange(formatResult, selectedValue);
|
|
3048
3042
|
}
|
|
3049
3043
|
};
|
|
3050
3044
|
var handleOk = function handleOk() {
|
|
@@ -4530,76 +4524,74 @@ var AddSelect = function AddSelect(props) {
|
|
|
4530
4524
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
4531
4525
|
var result;
|
|
4532
4526
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
4533
|
-
while (1) {
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
_context.next = 3;
|
|
4540
|
-
break;
|
|
4541
|
-
}
|
|
4542
|
-
message$1.warning('相同skc配码不可设置相同哦');
|
|
4543
|
-
return _context.abrupt("return", false);
|
|
4544
|
-
case 3:
|
|
4545
|
-
if (!(bType == 'spu')) {
|
|
4546
|
-
_context.next = 26;
|
|
4547
|
-
break;
|
|
4548
|
-
}
|
|
4549
|
-
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
4550
|
-
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
4551
|
-
}))) {
|
|
4552
|
-
_context.next = 7;
|
|
4553
|
-
break;
|
|
4554
|
-
}
|
|
4555
|
-
message$1.warning('相同商品相同配码颜色不可设置相同哦');
|
|
4556
|
-
return _context.abrupt("return", false);
|
|
4557
|
-
case 7:
|
|
4558
|
-
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
4559
|
-
_context.next = 10;
|
|
4560
|
-
break;
|
|
4561
|
-
}
|
|
4562
|
-
message$1.warning('请先选择颜色!');
|
|
4563
|
-
return _context.abrupt("return", false);
|
|
4564
|
-
case 10:
|
|
4565
|
-
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
4566
|
-
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
4567
|
-
}))) {
|
|
4568
|
-
_context.next = 13;
|
|
4569
|
-
break;
|
|
4570
|
-
}
|
|
4571
|
-
message$1.warning('相同商品相同颜色配码不可设置相同哦');
|
|
4572
|
-
return _context.abrupt("return", false);
|
|
4573
|
-
case 13:
|
|
4574
|
-
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
4575
|
-
_context.next = 26;
|
|
4576
|
-
break;
|
|
4577
|
-
}
|
|
4578
|
-
result = true;
|
|
4579
|
-
_context.prev = 15;
|
|
4580
|
-
_context.next = 18;
|
|
4581
|
-
return checkSpuMatchCode({
|
|
4582
|
-
skcCode: recordItem[recordKey],
|
|
4583
|
-
matchingCode: changeValue,
|
|
4584
|
-
ext1: recordItem.colorName
|
|
4585
|
-
});
|
|
4586
|
-
case 18:
|
|
4587
|
-
result = _context.sent;
|
|
4588
|
-
result = true;
|
|
4589
|
-
_context.next = 25;
|
|
4527
|
+
while (1) switch (_context.prev = _context.next) {
|
|
4528
|
+
case 0:
|
|
4529
|
+
if (!(bType == 'skc' && tList.some(function (i) {
|
|
4530
|
+
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
4531
|
+
}))) {
|
|
4532
|
+
_context.next = 3;
|
|
4590
4533
|
break;
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4534
|
+
}
|
|
4535
|
+
message$1.warning('相同skc配码不可设置相同哦');
|
|
4536
|
+
return _context.abrupt("return", false);
|
|
4537
|
+
case 3:
|
|
4538
|
+
if (!(bType == 'spu')) {
|
|
4539
|
+
_context.next = 26;
|
|
4540
|
+
break;
|
|
4541
|
+
}
|
|
4542
|
+
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
4543
|
+
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
4544
|
+
}))) {
|
|
4545
|
+
_context.next = 7;
|
|
4546
|
+
break;
|
|
4547
|
+
}
|
|
4548
|
+
message$1.warning('相同商品相同配码颜色不可设置相同哦');
|
|
4549
|
+
return _context.abrupt("return", false);
|
|
4550
|
+
case 7:
|
|
4551
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
4552
|
+
_context.next = 10;
|
|
4553
|
+
break;
|
|
4554
|
+
}
|
|
4555
|
+
message$1.warning('请先选择颜色!');
|
|
4556
|
+
return _context.abrupt("return", false);
|
|
4557
|
+
case 10:
|
|
4558
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
4559
|
+
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
4560
|
+
}))) {
|
|
4561
|
+
_context.next = 13;
|
|
4562
|
+
break;
|
|
4563
|
+
}
|
|
4564
|
+
message$1.warning('相同商品相同颜色配码不可设置相同哦');
|
|
4565
|
+
return _context.abrupt("return", false);
|
|
4566
|
+
case 13:
|
|
4567
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
4568
|
+
_context.next = 26;
|
|
4569
|
+
break;
|
|
4570
|
+
}
|
|
4571
|
+
result = true;
|
|
4572
|
+
_context.prev = 15;
|
|
4573
|
+
_context.next = 18;
|
|
4574
|
+
return checkSpuMatchCode({
|
|
4575
|
+
skcCode: recordItem[recordKey],
|
|
4576
|
+
matchingCode: changeValue,
|
|
4577
|
+
ext1: recordItem.colorName
|
|
4578
|
+
});
|
|
4579
|
+
case 18:
|
|
4580
|
+
result = _context.sent;
|
|
4581
|
+
result = true;
|
|
4582
|
+
_context.next = 25;
|
|
4583
|
+
break;
|
|
4584
|
+
case 22:
|
|
4585
|
+
_context.prev = 22;
|
|
4586
|
+
_context.t0 = _context["catch"](15);
|
|
4587
|
+
result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
|
|
4588
|
+
case 25:
|
|
4589
|
+
return _context.abrupt("return", result);
|
|
4590
|
+
case 26:
|
|
4591
|
+
return _context.abrupt("return", true);
|
|
4592
|
+
case 27:
|
|
4593
|
+
case "end":
|
|
4594
|
+
return _context.stop();
|
|
4603
4595
|
}
|
|
4604
4596
|
}, _callee, null, [[15, 22]]);
|
|
4605
4597
|
}));
|
|
@@ -4791,29 +4783,27 @@ var AddSelect = function AddSelect(props) {
|
|
|
4791
4783
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
4792
4784
|
var isConformToTheRules, newPopValue;
|
|
4793
4785
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
4794
|
-
while (1) {
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4786
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
4787
|
+
case 0:
|
|
4788
|
+
_context2.next = 2;
|
|
4789
|
+
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
4790
|
+
case 2:
|
|
4791
|
+
isConformToTheRules = _context2.sent;
|
|
4792
|
+
if (isConformToTheRules) {
|
|
4793
|
+
record[item.dataIndex] = value;
|
|
4794
|
+
} else {
|
|
4795
|
+
record[item.dataIndex] = null;
|
|
4796
|
+
}
|
|
4797
|
+
newPopValue = popvalue.map(function (i, innerIndex) {
|
|
4798
|
+
if (innerIndex == index) {
|
|
4799
|
+
i[item.dataIndex] = record[item.dataIndex];
|
|
4805
4800
|
}
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
setPopValue(newPopValue);
|
|
4813
|
-
case 6:
|
|
4814
|
-
case "end":
|
|
4815
|
-
return _context2.stop();
|
|
4816
|
-
}
|
|
4801
|
+
return i;
|
|
4802
|
+
});
|
|
4803
|
+
setPopValue(newPopValue);
|
|
4804
|
+
case 6:
|
|
4805
|
+
case "end":
|
|
4806
|
+
return _context2.stop();
|
|
4817
4807
|
}
|
|
4818
4808
|
}, _callee2);
|
|
4819
4809
|
}));
|
|
@@ -4873,84 +4863,85 @@ var AddSelect = function AddSelect(props) {
|
|
|
4873
4863
|
});
|
|
4874
4864
|
}
|
|
4875
4865
|
// 数组对象处理,对带有特殊标记的name进行处理
|
|
4876
|
-
|
|
4866
|
+
var _loop = function _loop() {
|
|
4877
4867
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
4904
|
-
}
|
|
4905
|
-
});
|
|
4906
|
-
delete params[key];
|
|
4907
|
-
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
4908
|
-
var _dataParams4 = key.split('*checkBox*');
|
|
4909
|
-
if (element) {
|
|
4910
|
-
params[_dataParams4[0]] = 0;
|
|
4868
|
+
var element = params[key];
|
|
4869
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
4870
|
+
var dataParams = key.split('*number*');
|
|
4871
|
+
dataParams.forEach(function (value, index) {
|
|
4872
|
+
params[value] = element[index];
|
|
4873
|
+
});
|
|
4874
|
+
delete params[key];
|
|
4875
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
4876
|
+
var _dataParams = key.split('*address*');
|
|
4877
|
+
_dataParams.forEach(function (value, index) {
|
|
4878
|
+
params[value] = element.PCDCode[index];
|
|
4879
|
+
});
|
|
4880
|
+
delete params[key];
|
|
4881
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
4882
|
+
var _dataParams2 = key.split('*costType*');
|
|
4883
|
+
// eslint-disable-next-line prefer-destructuring
|
|
4884
|
+
params[_dataParams2[0]] = element[1];
|
|
4885
|
+
delete params[key];
|
|
4886
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
4887
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
4888
|
+
_dataParams3.forEach(function (value, index) {
|
|
4889
|
+
if (index === 0) {
|
|
4890
|
+
params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
4891
|
+
} else {
|
|
4892
|
+
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
4911
4893
|
}
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
_dataParams7.forEach(function (value, index) {
|
|
4930
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
4931
|
-
});
|
|
4932
|
-
delete params[key];
|
|
4933
|
-
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
4934
|
-
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
4935
|
-
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
4936
|
-
if (params[key][0] === 'range') {
|
|
4937
|
-
if (params[key][1][0]) {
|
|
4938
|
-
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
4939
|
-
}
|
|
4940
|
-
if (params[key][1][1]) {
|
|
4941
|
-
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
4942
|
-
}
|
|
4894
|
+
});
|
|
4895
|
+
delete params[key];
|
|
4896
|
+
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
4897
|
+
var _dataParams4 = key.split('*checkBox*');
|
|
4898
|
+
if (element) {
|
|
4899
|
+
params[_dataParams4[0]] = 0;
|
|
4900
|
+
}
|
|
4901
|
+
delete params[key];
|
|
4902
|
+
} else if (element && key.indexOf('*cascader*') >= 0) {
|
|
4903
|
+
var _dataParams5 = key.split('*cascader*');
|
|
4904
|
+
params[_dataParams5[0]] = element[element.length - 1];
|
|
4905
|
+
delete params[key];
|
|
4906
|
+
} else if (element && key.indexOf('*date*') >= 0) {
|
|
4907
|
+
var _dataParams6 = key.split('*date*');
|
|
4908
|
+
_dataParams6.forEach(function (value, index) {
|
|
4909
|
+
if (index === 0) {
|
|
4910
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
4943
4911
|
} else {
|
|
4944
|
-
params[
|
|
4912
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
4913
|
+
}
|
|
4914
|
+
});
|
|
4915
|
+
delete params[key];
|
|
4916
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
4917
|
+
var _dataParams7 = key.split('*');
|
|
4918
|
+
_dataParams7.forEach(function (value, index) {
|
|
4919
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
4920
|
+
});
|
|
4921
|
+
delete params[key];
|
|
4922
|
+
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
4923
|
+
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
4924
|
+
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
4925
|
+
if (params[key][0] === 'range') {
|
|
4926
|
+
if (params[key][1][0]) {
|
|
4927
|
+
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
4945
4928
|
}
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
} else
|
|
4950
|
-
|
|
4929
|
+
if (params[key][1][1]) {
|
|
4930
|
+
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
4931
|
+
}
|
|
4932
|
+
} else {
|
|
4933
|
+
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
4951
4934
|
}
|
|
4952
|
-
|
|
4935
|
+
delete params[key];
|
|
4936
|
+
} else if (Array.isArray(element)) {
|
|
4937
|
+
params[key] = element.join(',');
|
|
4938
|
+
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
4939
|
+
delete params[key];
|
|
4940
|
+
}
|
|
4953
4941
|
}
|
|
4942
|
+
};
|
|
4943
|
+
for (var key in params) {
|
|
4944
|
+
_loop();
|
|
4954
4945
|
}
|
|
4955
4946
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
4956
4947
|
pageSize: pageSize,
|
|
@@ -6405,72 +6396,70 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
6405
6396
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
6406
6397
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
6407
6398
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
6408
|
-
while (1) {
|
|
6409
|
-
|
|
6410
|
-
|
|
6411
|
-
|
|
6412
|
-
|
|
6413
|
-
|
|
6414
|
-
|
|
6415
|
-
|
|
6416
|
-
|
|
6417
|
-
|
|
6418
|
-
|
|
6419
|
-
|
|
6420
|
-
|
|
6421
|
-
|
|
6422
|
-
|
|
6423
|
-
|
|
6424
|
-
|
|
6425
|
-
|
|
6426
|
-
|
|
6427
|
-
|
|
6428
|
-
|
|
6429
|
-
|
|
6430
|
-
|
|
6431
|
-
|
|
6399
|
+
while (1) switch (_context.prev = _context.next) {
|
|
6400
|
+
case 0:
|
|
6401
|
+
if (data === null || data === void 0 ? void 0 : data.length) {
|
|
6402
|
+
_context.next = 3;
|
|
6403
|
+
break;
|
|
6404
|
+
}
|
|
6405
|
+
message$1.warning('至少录入一条数据');
|
|
6406
|
+
return _context.abrupt("return");
|
|
6407
|
+
case 3:
|
|
6408
|
+
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
6409
|
+
return d.skuCode && d.name;
|
|
6410
|
+
})) {
|
|
6411
|
+
_context.next = 6;
|
|
6412
|
+
break;
|
|
6413
|
+
}
|
|
6414
|
+
message$1.warning('请选择商品!');
|
|
6415
|
+
return _context.abrupt("return");
|
|
6416
|
+
case 6:
|
|
6417
|
+
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
6418
|
+
return d.count;
|
|
6419
|
+
})) {
|
|
6420
|
+
_context.next = 9;
|
|
6421
|
+
break;
|
|
6422
|
+
}
|
|
6423
|
+
message$1.warning('请填写商品数量!');
|
|
6424
|
+
return _context.abrupt("return");
|
|
6425
|
+
case 9:
|
|
6426
|
+
_context.next = 11;
|
|
6427
|
+
return isSkuCanEntry(data);
|
|
6428
|
+
case 11:
|
|
6429
|
+
canEntryObject = _context.sent;
|
|
6430
|
+
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
6431
|
+
_context.next = 16;
|
|
6432
|
+
break;
|
|
6433
|
+
}
|
|
6434
|
+
messageInfo = (canEntryObject === null || canEntryObject === void 0 ? void 0 : (_canEntryObject$error = canEntryObject.errorList) === null || _canEntryObject$error === void 0 ? void 0 : _canEntryObject$error.length) && (canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.errorList.map(function (i) {
|
|
6435
|
+
return /*#__PURE__*/React.createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
|
|
6436
|
+
}));
|
|
6437
|
+
messageInfo && message$1.warning({
|
|
6438
|
+
content: messageInfo,
|
|
6439
|
+
duration: 6
|
|
6440
|
+
});
|
|
6441
|
+
return _context.abrupt("return");
|
|
6442
|
+
case 16:
|
|
6443
|
+
setLoading(true);
|
|
6444
|
+
onSaveCallback(data).then(function (res) {
|
|
6445
|
+
{
|
|
6446
|
+
var _Object$keys;
|
|
6447
|
+
var initSuccessMessage = '保存成功';
|
|
6448
|
+
var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
|
|
6449
|
+
if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
|
|
6450
|
+
(rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? message$1.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
|
|
6451
|
+
} else {
|
|
6452
|
+
message$1.success(initSuccessMessage);
|
|
6453
|
+
}
|
|
6432
6454
|
}
|
|
6433
|
-
|
|
6434
|
-
|
|
6435
|
-
|
|
6436
|
-
|
|
6437
|
-
|
|
6438
|
-
|
|
6439
|
-
|
|
6440
|
-
|
|
6441
|
-
_context.next = 16;
|
|
6442
|
-
break;
|
|
6443
|
-
}
|
|
6444
|
-
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) {
|
|
6445
|
-
return /*#__PURE__*/React.createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
|
|
6446
|
-
}));
|
|
6447
|
-
messageInfo && message$1.warning({
|
|
6448
|
-
content: messageInfo,
|
|
6449
|
-
duration: 6
|
|
6450
|
-
});
|
|
6451
|
-
return _context.abrupt("return");
|
|
6452
|
-
case 16:
|
|
6453
|
-
setLoading(true);
|
|
6454
|
-
onSaveCallback(data).then(function (res) {
|
|
6455
|
-
{
|
|
6456
|
-
var _Object$keys;
|
|
6457
|
-
var initSuccessMessage = '保存成功';
|
|
6458
|
-
var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
|
|
6459
|
-
if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
|
|
6460
|
-
(rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? message$1.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
|
|
6461
|
-
} else {
|
|
6462
|
-
message$1.success(initSuccessMessage);
|
|
6463
|
-
}
|
|
6464
|
-
}
|
|
6465
|
-
setLoading(false);
|
|
6466
|
-
}).catch(function (Error) {
|
|
6467
|
-
message$1.error(Error);
|
|
6468
|
-
setLoading(false);
|
|
6469
|
-
});
|
|
6470
|
-
case 18:
|
|
6471
|
-
case "end":
|
|
6472
|
-
return _context.stop();
|
|
6473
|
-
}
|
|
6455
|
+
setLoading(false);
|
|
6456
|
+
}).catch(function (Error) {
|
|
6457
|
+
message$1.error(Error);
|
|
6458
|
+
setLoading(false);
|
|
6459
|
+
});
|
|
6460
|
+
case 18:
|
|
6461
|
+
case "end":
|
|
6462
|
+
return _context.stop();
|
|
6474
6463
|
}
|
|
6475
6464
|
}, _callee);
|
|
6476
6465
|
}));
|
|
@@ -9605,7 +9594,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
9605
9594
|
* @LastEditTime: 2022-01-14 17:17:26
|
|
9606
9595
|
* @LastEditors: rodchen
|
|
9607
9596
|
*/
|
|
9608
|
-
var index$
|
|
9597
|
+
var index$2 = (function (storageKeyString) {
|
|
9609
9598
|
var seconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
|
|
9610
9599
|
var tipsCallFunction = arguments.length > 2 ? arguments[2] : undefined;
|
|
9611
9600
|
if (typeof seconds !== 'number') throw new Error('seconds should be number');
|
|
@@ -9726,44 +9715,42 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
9726
9715
|
var _ctx$form;
|
|
9727
9716
|
var resData, coverData, data, dataList;
|
|
9728
9717
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9729
|
-
while (1) {
|
|
9730
|
-
|
|
9731
|
-
|
|
9732
|
-
|
|
9733
|
-
|
|
9734
|
-
_context.next = 13;
|
|
9735
|
-
break;
|
|
9736
|
-
}
|
|
9737
|
-
data = resData.data;
|
|
9738
|
-
if (!remoteSource.converter) {
|
|
9739
|
-
_context.next = 9;
|
|
9740
|
-
break;
|
|
9741
|
-
}
|
|
9742
|
-
_context.next = 6;
|
|
9743
|
-
return remoteSource.converter({
|
|
9744
|
-
data: [data]
|
|
9745
|
-
});
|
|
9746
|
-
case 6:
|
|
9747
|
-
coverData = _context.sent;
|
|
9748
|
-
_context.next = 11;
|
|
9718
|
+
while (1) switch (_context.prev = _context.next) {
|
|
9719
|
+
case 0:
|
|
9720
|
+
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
9721
|
+
if (!(resData.status === '0' || resData.code === '000000')) {
|
|
9722
|
+
_context.next = 13;
|
|
9749
9723
|
break;
|
|
9750
|
-
|
|
9751
|
-
|
|
9752
|
-
|
|
9753
|
-
|
|
9754
|
-
}) || [];
|
|
9755
|
-
case 11:
|
|
9756
|
-
_context.next = 14;
|
|
9724
|
+
}
|
|
9725
|
+
data = resData.data;
|
|
9726
|
+
if (!remoteSource.converter) {
|
|
9727
|
+
_context.next = 9;
|
|
9757
9728
|
break;
|
|
9758
|
-
|
|
9759
|
-
|
|
9760
|
-
|
|
9761
|
-
|
|
9762
|
-
|
|
9763
|
-
|
|
9764
|
-
|
|
9765
|
-
|
|
9766
|
-
|
|
9729
|
+
}
|
|
9730
|
+
_context.next = 6;
|
|
9731
|
+
return remoteSource.converter({
|
|
9732
|
+
data: [data]
|
|
9733
|
+
});
|
|
9734
|
+
case 6:
|
|
9735
|
+
coverData = _context.sent;
|
|
9736
|
+
_context.next = 11;
|
|
9737
|
+
break;
|
|
9738
|
+
case 9:
|
|
9739
|
+
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
9740
|
+
coverData = dataList.length && dataList.map(function (ites) {
|
|
9741
|
+
return mapSearchTree(ites);
|
|
9742
|
+
}) || [];
|
|
9743
|
+
case 11:
|
|
9744
|
+
_context.next = 14;
|
|
9745
|
+
break;
|
|
9746
|
+
case 13:
|
|
9747
|
+
coverData = [];
|
|
9748
|
+
case 14:
|
|
9749
|
+
setTreeData(coverData);
|
|
9750
|
+
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
|
|
9751
|
+
case 16:
|
|
9752
|
+
case "end":
|
|
9753
|
+
return _context.stop();
|
|
9767
9754
|
}
|
|
9768
9755
|
}, _callee);
|
|
9769
9756
|
}));
|
|
@@ -9970,7 +9957,7 @@ var BusinessTreeSearchSelect$1 = /*#__PURE__*/React.memo(BusinessTreeSearchSelec
|
|
|
9970
9957
|
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";
|
|
9971
9958
|
styleInject(css_248z$8);
|
|
9972
9959
|
|
|
9973
|
-
var index$
|
|
9960
|
+
var index$3 = (function (props) {
|
|
9974
9961
|
var _props$formStatusMapp = props.formStatusMapping,
|
|
9975
9962
|
formStatusMapping = _props$formStatusMapp === void 0 ? [] : _props$formStatusMapp;
|
|
9976
9963
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -11394,7 +11381,7 @@ var iconMap = {
|
|
|
11394
11381
|
src: moreIcon
|
|
11395
11382
|
})
|
|
11396
11383
|
};
|
|
11397
|
-
var index$
|
|
11384
|
+
var index$4 = (function (props) {
|
|
11398
11385
|
var _useLocation = useLocation(),
|
|
11399
11386
|
pathname = _useLocation.pathname;
|
|
11400
11387
|
var _useState = useState(pathname + 'id'),
|
|
@@ -11611,7 +11598,7 @@ var css_248z$d = ".home_page_head {\n height: 54px;\n display: flex;\n justif
|
|
|
11611
11598
|
styleInject(css_248z$d);
|
|
11612
11599
|
|
|
11613
11600
|
var _excluded$c = ["children"];
|
|
11614
|
-
var index$
|
|
11601
|
+
var index$5 = (function (props) {
|
|
11615
11602
|
var _useLocation = useLocation(),
|
|
11616
11603
|
pathname = _useLocation.pathname;
|
|
11617
11604
|
var _useState = useState(pathname + 'id'),
|
|
@@ -13887,21 +13874,19 @@ function _outLogin() {
|
|
|
13887
13874
|
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
13888
13875
|
var res;
|
|
13889
13876
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
13890
|
-
while (1) {
|
|
13891
|
-
|
|
13892
|
-
|
|
13893
|
-
|
|
13894
|
-
|
|
13895
|
-
|
|
13896
|
-
|
|
13897
|
-
|
|
13898
|
-
|
|
13899
|
-
|
|
13900
|
-
|
|
13901
|
-
|
|
13902
|
-
|
|
13903
|
-
return _context.stop();
|
|
13904
|
-
}
|
|
13877
|
+
while (1) switch (_context.prev = _context.next) {
|
|
13878
|
+
case 0:
|
|
13879
|
+
_context.next = 2;
|
|
13880
|
+
return axios({
|
|
13881
|
+
url: '/user/web/loginOut',
|
|
13882
|
+
method: 'GET'
|
|
13883
|
+
});
|
|
13884
|
+
case 2:
|
|
13885
|
+
res = _context.sent;
|
|
13886
|
+
return _context.abrupt("return", res);
|
|
13887
|
+
case 4:
|
|
13888
|
+
case "end":
|
|
13889
|
+
return _context.stop();
|
|
13905
13890
|
}
|
|
13906
13891
|
}, _callee);
|
|
13907
13892
|
}));
|
|
@@ -14030,31 +14015,29 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
14030
14015
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
14031
14016
|
var sessionId;
|
|
14032
14017
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
14033
|
-
while (1) {
|
|
14034
|
-
|
|
14035
|
-
|
|
14036
|
-
|
|
14037
|
-
|
|
14038
|
-
|
|
14039
|
-
|
|
14040
|
-
|
|
14041
|
-
|
|
14042
|
-
|
|
14018
|
+
while (1) switch (_context.prev = _context.next) {
|
|
14019
|
+
case 0:
|
|
14020
|
+
_context.next = 2;
|
|
14021
|
+
return getSessionId();
|
|
14022
|
+
case 2:
|
|
14023
|
+
sessionId = _context.sent;
|
|
14024
|
+
_context.next = 5;
|
|
14025
|
+
return outLogin({
|
|
14026
|
+
sessionId: sessionId
|
|
14027
|
+
});
|
|
14028
|
+
case 5:
|
|
14029
|
+
// @ts-ignore
|
|
14030
|
+
if (BUILD_TYPE) {
|
|
14031
|
+
message$1.success('退出登录成功');
|
|
14032
|
+
history.replace({
|
|
14033
|
+
pathname: '/user/login'
|
|
14043
14034
|
});
|
|
14044
|
-
|
|
14045
|
-
|
|
14046
|
-
|
|
14047
|
-
|
|
14048
|
-
|
|
14049
|
-
|
|
14050
|
-
});
|
|
14051
|
-
} else {
|
|
14052
|
-
setLoginOutPath();
|
|
14053
|
-
}
|
|
14054
|
-
case 6:
|
|
14055
|
-
case "end":
|
|
14056
|
-
return _context.stop();
|
|
14057
|
-
}
|
|
14035
|
+
} else {
|
|
14036
|
+
setLoginOutPath();
|
|
14037
|
+
}
|
|
14038
|
+
case 6:
|
|
14039
|
+
case "end":
|
|
14040
|
+
return _context.stop();
|
|
14058
14041
|
}
|
|
14059
14042
|
}, _callee);
|
|
14060
14043
|
}));
|
|
@@ -15882,6 +15865,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
15882
15865
|
showSubMenu: isShow
|
|
15883
15866
|
});
|
|
15884
15867
|
}, 500);
|
|
15868
|
+
//设置tabs标签左右滚动
|
|
15885
15869
|
_this.setTabNavTransLate = function (num) {
|
|
15886
15870
|
var _document$getElementB, _document$getElementB2, _document$getElementB3, _document$getElementB4, _document$defaultView;
|
|
15887
15871
|
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];
|
|
@@ -16562,14 +16546,12 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
16562
16546
|
request: function () {
|
|
16563
16547
|
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
16564
16548
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
16565
|
-
while (1) {
|
|
16566
|
-
|
|
16567
|
-
|
|
16568
|
-
|
|
16569
|
-
|
|
16570
|
-
|
|
16571
|
-
return _context.stop();
|
|
16572
|
-
}
|
|
16549
|
+
while (1) switch (_context.prev = _context.next) {
|
|
16550
|
+
case 0:
|
|
16551
|
+
return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
|
|
16552
|
+
case 1:
|
|
16553
|
+
case "end":
|
|
16554
|
+
return _context.stop();
|
|
16573
16555
|
}
|
|
16574
16556
|
}, _callee);
|
|
16575
16557
|
}));
|
|
@@ -16707,7 +16689,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
16707
16689
|
}]);
|
|
16708
16690
|
return WrapperComponent;
|
|
16709
16691
|
}(React.Component);
|
|
16710
|
-
var index$
|
|
16692
|
+
var index$6 = (function (props) {
|
|
16711
16693
|
var _useModel = useModel('@@initialState'),
|
|
16712
16694
|
_useModel$initialStat = _useModel.initialState,
|
|
16713
16695
|
initialState = _useModel$initialStat === void 0 ? {} : _useModel$initialStat;
|
|
@@ -16948,7 +16930,7 @@ var FixedScrollBar = function FixedScrollBar(_ref, ref) {
|
|
|
16948
16930
|
};
|
|
16949
16931
|
var FixedScrollBar$1 = /*#__PURE__*/React.forwardRef(FixedScrollBar);
|
|
16950
16932
|
|
|
16951
|
-
var index$
|
|
16933
|
+
var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
16952
16934
|
var _useState = useState(false),
|
|
16953
16935
|
_useState2 = _slicedToArray(_useState, 2),
|
|
16954
16936
|
show = _useState2[0],
|
|
@@ -24249,28 +24231,26 @@ var valueType = {
|
|
|
24249
24231
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
24250
24232
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
24251
24233
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
24252
|
-
while (1) {
|
|
24253
|
-
|
|
24254
|
-
|
|
24255
|
-
|
|
24256
|
-
|
|
24257
|
-
|
|
24258
|
-
|
|
24259
|
-
|
|
24260
|
-
return
|
|
24261
|
-
|
|
24262
|
-
|
|
24263
|
-
|
|
24264
|
-
|
|
24265
|
-
|
|
24266
|
-
|
|
24267
|
-
|
|
24268
|
-
|
|
24269
|
-
|
|
24270
|
-
|
|
24271
|
-
|
|
24272
|
-
return _context.stop();
|
|
24273
|
-
}
|
|
24234
|
+
while (1) switch (_context.prev = _context.next) {
|
|
24235
|
+
case 0:
|
|
24236
|
+
_context.next = 2;
|
|
24237
|
+
return request$1({
|
|
24238
|
+
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
24239
|
+
converter: function converter(_ref2) {
|
|
24240
|
+
var data = _ref2.data;
|
|
24241
|
+
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
24242
|
+
return {
|
|
24243
|
+
text: d.name,
|
|
24244
|
+
value: d.code || d.brandCode
|
|
24245
|
+
};
|
|
24246
|
+
});
|
|
24247
|
+
}
|
|
24248
|
+
});
|
|
24249
|
+
case 2:
|
|
24250
|
+
return _context.abrupt("return", _context.sent);
|
|
24251
|
+
case 3:
|
|
24252
|
+
case "end":
|
|
24253
|
+
return _context.stop();
|
|
24274
24254
|
}
|
|
24275
24255
|
}, _callee);
|
|
24276
24256
|
}));
|
|
@@ -24320,55 +24300,53 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
24320
24300
|
useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
24321
24301
|
var _ref$current, source;
|
|
24322
24302
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
24323
|
-
while (1) {
|
|
24324
|
-
|
|
24325
|
-
|
|
24326
|
-
|
|
24327
|
-
|
|
24328
|
-
|
|
24329
|
-
|
|
24330
|
-
|
|
24331
|
-
|
|
24332
|
-
|
|
24333
|
-
};
|
|
24334
|
-
}
|
|
24335
|
-
return prev;
|
|
24336
|
-
});
|
|
24337
|
-
case 2:
|
|
24338
|
-
if (!record.dictionaryCode) {
|
|
24339
|
-
_context.next = 17;
|
|
24340
|
-
break;
|
|
24341
|
-
}
|
|
24342
|
-
if (!(record.choiceType == 20)) {
|
|
24343
|
-
_context.next = 7;
|
|
24344
|
-
break;
|
|
24303
|
+
while (1) switch (_context.prev = _context.next) {
|
|
24304
|
+
case 0:
|
|
24305
|
+
_context.next = 2;
|
|
24306
|
+
return setIsShowAndType(function (prev) {
|
|
24307
|
+
if (record.inputType === 20 || record.inputType === 30) {
|
|
24308
|
+
return {
|
|
24309
|
+
isShow: true,
|
|
24310
|
+
singleOrMultiple: record.inputType,
|
|
24311
|
+
type: record.choiceType
|
|
24312
|
+
};
|
|
24345
24313
|
}
|
|
24346
|
-
|
|
24347
|
-
|
|
24314
|
+
return prev;
|
|
24315
|
+
});
|
|
24316
|
+
case 2:
|
|
24317
|
+
if (!record.dictionaryCode) {
|
|
24318
|
+
_context.next = 17;
|
|
24348
24319
|
break;
|
|
24349
|
-
|
|
24350
|
-
|
|
24351
|
-
|
|
24352
|
-
break;
|
|
24353
|
-
}
|
|
24354
|
-
_context.next = 10;
|
|
24355
|
-
return getDynamicDict(record.dictionaryCode);
|
|
24356
|
-
case 10:
|
|
24357
|
-
_context.t1 = _context.sent;
|
|
24358
|
-
_context.next = 14;
|
|
24320
|
+
}
|
|
24321
|
+
if (!(record.choiceType == 20)) {
|
|
24322
|
+
_context.next = 7;
|
|
24359
24323
|
break;
|
|
24360
|
-
|
|
24361
|
-
|
|
24362
|
-
|
|
24363
|
-
|
|
24364
|
-
|
|
24365
|
-
|
|
24366
|
-
|
|
24367
|
-
|
|
24368
|
-
|
|
24369
|
-
|
|
24370
|
-
|
|
24371
|
-
|
|
24324
|
+
}
|
|
24325
|
+
_context.t0 = getDictionarySource(record.dictionaryCode);
|
|
24326
|
+
_context.next = 15;
|
|
24327
|
+
break;
|
|
24328
|
+
case 7:
|
|
24329
|
+
if (!(record.choiceType == 30)) {
|
|
24330
|
+
_context.next = 13;
|
|
24331
|
+
break;
|
|
24332
|
+
}
|
|
24333
|
+
_context.next = 10;
|
|
24334
|
+
return getDynamicDict(record.dictionaryCode);
|
|
24335
|
+
case 10:
|
|
24336
|
+
_context.t1 = _context.sent;
|
|
24337
|
+
_context.next = 14;
|
|
24338
|
+
break;
|
|
24339
|
+
case 13:
|
|
24340
|
+
_context.t1 = [];
|
|
24341
|
+
case 14:
|
|
24342
|
+
_context.t0 = _context.t1;
|
|
24343
|
+
case 15:
|
|
24344
|
+
source = _context.t0;
|
|
24345
|
+
// @ts-ignore
|
|
24346
|
+
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
24347
|
+
case 17:
|
|
24348
|
+
case "end":
|
|
24349
|
+
return _context.stop();
|
|
24372
24350
|
}
|
|
24373
24351
|
}, _callee);
|
|
24374
24352
|
})));
|
|
@@ -24436,30 +24414,28 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
24436
24414
|
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
24437
24415
|
var form, values, name, relates, source;
|
|
24438
24416
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
24439
|
-
while (1) {
|
|
24440
|
-
|
|
24441
|
-
|
|
24442
|
-
|
|
24443
|
-
if (values[0]) {
|
|
24444
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
24445
|
-
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
24446
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
24447
|
-
}
|
|
24448
|
-
if (!values[1]) {
|
|
24449
|
-
_context2.next = 9;
|
|
24450
|
-
break;
|
|
24451
|
-
}
|
|
24452
|
-
_context2.next = 5;
|
|
24453
|
-
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
24454
|
-
case 5:
|
|
24455
|
-
source = _context2.sent;
|
|
24417
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
24418
|
+
case 0:
|
|
24419
|
+
form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
|
|
24420
|
+
if (values[0]) {
|
|
24456
24421
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
24457
24422
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
24458
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0],
|
|
24459
|
-
|
|
24460
|
-
|
|
24461
|
-
|
|
24462
|
-
|
|
24423
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
24424
|
+
}
|
|
24425
|
+
if (!values[1]) {
|
|
24426
|
+
_context2.next = 9;
|
|
24427
|
+
break;
|
|
24428
|
+
}
|
|
24429
|
+
_context2.next = 5;
|
|
24430
|
+
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
24431
|
+
case 5:
|
|
24432
|
+
source = _context2.sent;
|
|
24433
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
24434
|
+
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
24435
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
24436
|
+
case 9:
|
|
24437
|
+
case "end":
|
|
24438
|
+
return _context2.stop();
|
|
24463
24439
|
}
|
|
24464
24440
|
}, _callee2);
|
|
24465
24441
|
}));
|
|
@@ -24919,43 +24895,41 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
24919
24895
|
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
24920
24896
|
var values, name, form, source;
|
|
24921
24897
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
24922
|
-
while (1) {
|
|
24923
|
-
|
|
24924
|
-
|
|
24925
|
-
|
|
24926
|
-
|
|
24927
|
-
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
24928
|
-
form.setFieldVisible(name, false);
|
|
24929
|
-
}
|
|
24930
|
-
if (!(values[0] === 30)) {
|
|
24931
|
-
_context3.next = 10;
|
|
24932
|
-
break;
|
|
24933
|
-
}
|
|
24934
|
-
_context3.next = 5;
|
|
24935
|
-
return request$1({
|
|
24936
|
-
url: '/basic/dictDynamicItem/queryList',
|
|
24937
|
-
converter: function converter(_ref11) {
|
|
24938
|
-
var data = _ref11.data;
|
|
24939
|
-
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
24940
|
-
return {
|
|
24941
|
-
text: d.dictCode,
|
|
24942
|
-
value: d.dictCode
|
|
24943
|
-
};
|
|
24944
|
-
});
|
|
24945
|
-
}
|
|
24946
|
-
});
|
|
24947
|
-
case 5:
|
|
24948
|
-
source = _context3.sent;
|
|
24949
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
24950
|
-
form.setFieldVisible(name, true);
|
|
24951
|
-
_context3.next = 11;
|
|
24952
|
-
break;
|
|
24953
|
-
case 10:
|
|
24898
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
24899
|
+
case 0:
|
|
24900
|
+
values = _ref10.values, name = _ref10.name, form = _ref10.form;
|
|
24901
|
+
if (values[1] === 40) {
|
|
24902
|
+
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
24954
24903
|
form.setFieldVisible(name, false);
|
|
24955
|
-
|
|
24956
|
-
|
|
24957
|
-
|
|
24958
|
-
|
|
24904
|
+
}
|
|
24905
|
+
if (!(values[0] === 30)) {
|
|
24906
|
+
_context3.next = 10;
|
|
24907
|
+
break;
|
|
24908
|
+
}
|
|
24909
|
+
_context3.next = 5;
|
|
24910
|
+
return request$1({
|
|
24911
|
+
url: '/basic/dictDynamicItem/queryList',
|
|
24912
|
+
converter: function converter(_ref11) {
|
|
24913
|
+
var data = _ref11.data;
|
|
24914
|
+
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
24915
|
+
return {
|
|
24916
|
+
text: d.dictCode,
|
|
24917
|
+
value: d.dictCode
|
|
24918
|
+
};
|
|
24919
|
+
});
|
|
24920
|
+
}
|
|
24921
|
+
});
|
|
24922
|
+
case 5:
|
|
24923
|
+
source = _context3.sent;
|
|
24924
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
24925
|
+
form.setFieldVisible(name, true);
|
|
24926
|
+
_context3.next = 11;
|
|
24927
|
+
break;
|
|
24928
|
+
case 10:
|
|
24929
|
+
form.setFieldVisible(name, false);
|
|
24930
|
+
case 11:
|
|
24931
|
+
case "end":
|
|
24932
|
+
return _context3.stop();
|
|
24959
24933
|
}
|
|
24960
24934
|
}, _callee3);
|
|
24961
24935
|
}));
|
|
@@ -25144,66 +25118,64 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
25144
25118
|
var _ref$current4, _res$editableStatus;
|
|
25145
25119
|
var res, _res$defaultValue;
|
|
25146
25120
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
25147
|
-
while (1) {
|
|
25148
|
-
|
|
25149
|
-
|
|
25150
|
-
|
|
25151
|
-
|
|
25152
|
-
|
|
25153
|
-
|
|
25154
|
-
|
|
25155
|
-
|
|
25156
|
-
|
|
25157
|
-
res.
|
|
25158
|
-
|
|
25159
|
-
|
|
25160
|
-
|
|
25161
|
-
|
|
25162
|
-
|
|
25163
|
-
|
|
25164
|
-
|
|
25165
|
-
|
|
25166
|
-
|
|
25167
|
-
|
|
25168
|
-
|
|
25121
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
25122
|
+
case 0:
|
|
25123
|
+
_context4.next = 2;
|
|
25124
|
+
return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
|
|
25125
|
+
case 2:
|
|
25126
|
+
res = _context4.sent;
|
|
25127
|
+
res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
|
|
25128
|
+
res.fieldGroup = record.fieldGroup;
|
|
25129
|
+
res.businessType = record.businessType;
|
|
25130
|
+
res.info = {
|
|
25131
|
+
enumeration: res.enumeration,
|
|
25132
|
+
dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
|
|
25133
|
+
formula: res.formula,
|
|
25134
|
+
scale: res.scale,
|
|
25135
|
+
variable: res.variable
|
|
25136
|
+
};
|
|
25137
|
+
res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
|
|
25138
|
+
res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
|
|
25139
|
+
res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
|
|
25140
|
+
if (res.inputType === 40) {
|
|
25141
|
+
res.valueType = 22;
|
|
25142
|
+
}
|
|
25143
|
+
// 把数组处理成文本
|
|
25144
|
+
if (res.inputType === 30) {
|
|
25145
|
+
if (res.defaultValue) {
|
|
25146
|
+
res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
|
|
25169
25147
|
}
|
|
25170
|
-
|
|
25171
|
-
|
|
25172
|
-
|
|
25173
|
-
|
|
25174
|
-
|
|
25148
|
+
}
|
|
25149
|
+
res.fieldMapping = res.fieldMapping || '';
|
|
25150
|
+
delete res.formula;
|
|
25151
|
+
delete res.showValue;
|
|
25152
|
+
if (!(mode === 'create')) {
|
|
25153
|
+
_context4.next = 18;
|
|
25154
|
+
break;
|
|
25155
|
+
}
|
|
25156
|
+
request$1({
|
|
25157
|
+
url: "/basic/flow/businessField",
|
|
25158
|
+
method: 'POST',
|
|
25159
|
+
params: res,
|
|
25160
|
+
successMessage: '创建成功!',
|
|
25161
|
+
converter: function converter() {
|
|
25162
|
+
onParentOk();
|
|
25175
25163
|
}
|
|
25176
|
-
|
|
25177
|
-
|
|
25178
|
-
|
|
25179
|
-
|
|
25180
|
-
|
|
25181
|
-
|
|
25164
|
+
});
|
|
25165
|
+
return _context4.abrupt("return");
|
|
25166
|
+
case 18:
|
|
25167
|
+
request$1({
|
|
25168
|
+
url: "/basic/flow/businessField/".concat(record.id),
|
|
25169
|
+
method: 'PATCH',
|
|
25170
|
+
params: res,
|
|
25171
|
+
successMessage: '修改成功!',
|
|
25172
|
+
converter: function converter() {
|
|
25173
|
+
onParentOk();
|
|
25182
25174
|
}
|
|
25183
|
-
|
|
25184
|
-
|
|
25185
|
-
|
|
25186
|
-
|
|
25187
|
-
successMessage: '创建成功!',
|
|
25188
|
-
converter: function converter() {
|
|
25189
|
-
onParentOk();
|
|
25190
|
-
}
|
|
25191
|
-
});
|
|
25192
|
-
return _context4.abrupt("return");
|
|
25193
|
-
case 18:
|
|
25194
|
-
request$1({
|
|
25195
|
-
url: "/basic/flow/businessField/".concat(record.id),
|
|
25196
|
-
method: 'PATCH',
|
|
25197
|
-
params: res,
|
|
25198
|
-
successMessage: '修改成功!',
|
|
25199
|
-
converter: function converter() {
|
|
25200
|
-
onParentOk();
|
|
25201
|
-
}
|
|
25202
|
-
});
|
|
25203
|
-
case 19:
|
|
25204
|
-
case "end":
|
|
25205
|
-
return _context4.stop();
|
|
25206
|
-
}
|
|
25175
|
+
});
|
|
25176
|
+
case 19:
|
|
25177
|
+
case "end":
|
|
25178
|
+
return _context4.stop();
|
|
25207
25179
|
}
|
|
25208
25180
|
}, _callee4);
|
|
25209
25181
|
}));
|
|
@@ -25988,28 +25960,26 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
25988
25960
|
useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
25989
25961
|
var resData, data;
|
|
25990
25962
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
25991
|
-
while (1) {
|
|
25992
|
-
|
|
25993
|
-
|
|
25994
|
-
|
|
25995
|
-
|
|
25996
|
-
|
|
25997
|
-
|
|
25998
|
-
|
|
25999
|
-
|
|
26000
|
-
|
|
26001
|
-
|
|
26002
|
-
|
|
26003
|
-
|
|
26004
|
-
|
|
26005
|
-
|
|
26006
|
-
|
|
26007
|
-
|
|
26008
|
-
|
|
26009
|
-
|
|
26010
|
-
|
|
26011
|
-
return _context.stop();
|
|
26012
|
-
}
|
|
25963
|
+
while (1) switch (_context.prev = _context.next) {
|
|
25964
|
+
case 0:
|
|
25965
|
+
if (!(!source && initRequestSource)) {
|
|
25966
|
+
_context.next = 6;
|
|
25967
|
+
break;
|
|
25968
|
+
}
|
|
25969
|
+
_context.next = 3;
|
|
25970
|
+
return initRequestSource();
|
|
25971
|
+
case 3:
|
|
25972
|
+
resData = _context.sent;
|
|
25973
|
+
data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
|
|
25974
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
25975
|
+
label: item.text,
|
|
25976
|
+
isLeaf: false
|
|
25977
|
+
});
|
|
25978
|
+
})) || [];
|
|
25979
|
+
setHandSource(data);
|
|
25980
|
+
case 6:
|
|
25981
|
+
case "end":
|
|
25982
|
+
return _context.stop();
|
|
26013
25983
|
}
|
|
26014
25984
|
}, _callee);
|
|
26015
25985
|
})), []);
|
|
@@ -26141,20 +26111,18 @@ function getRegularThresholdRange(_x) {
|
|
|
26141
26111
|
function _getRegularThresholdRange() {
|
|
26142
26112
|
_getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
26143
26113
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26144
|
-
while (1) {
|
|
26145
|
-
|
|
26146
|
-
|
|
26147
|
-
|
|
26148
|
-
|
|
26149
|
-
|
|
26150
|
-
|
|
26151
|
-
|
|
26152
|
-
|
|
26153
|
-
|
|
26154
|
-
|
|
26155
|
-
|
|
26156
|
-
return _context.stop();
|
|
26157
|
-
}
|
|
26114
|
+
while (1) switch (_context.prev = _context.next) {
|
|
26115
|
+
case 0:
|
|
26116
|
+
return _context.abrupt("return", axios({
|
|
26117
|
+
url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
|
|
26118
|
+
method: 'POST',
|
|
26119
|
+
data: _objectSpread2(_objectSpread2({}, params), {}, {
|
|
26120
|
+
queryIdentify: undefined
|
|
26121
|
+
})
|
|
26122
|
+
}));
|
|
26123
|
+
case 1:
|
|
26124
|
+
case "end":
|
|
26125
|
+
return _context.stop();
|
|
26158
26126
|
}
|
|
26159
26127
|
}, _callee);
|
|
26160
26128
|
}));
|
|
@@ -26293,137 +26261,136 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26293
26261
|
_this.getRegularThresholdRange(queryIdentify, propertyCode, queryIdentifyType);
|
|
26294
26262
|
});
|
|
26295
26263
|
};
|
|
26264
|
+
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
26296
26265
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
26297
26266
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
26298
26267
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
26299
26268
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26300
|
-
while (1) {
|
|
26301
|
-
|
|
26302
|
-
|
|
26303
|
-
|
|
26304
|
-
|
|
26305
|
-
|
|
26306
|
-
|
|
26307
|
-
|
|
26308
|
-
|
|
26309
|
-
|
|
26310
|
-
|
|
26311
|
-
|
|
26312
|
-
|
|
26313
|
-
|
|
26314
|
-
|
|
26315
|
-
|
|
26316
|
-
|
|
26317
|
-
|
|
26318
|
-
|
|
26319
|
-
|
|
26320
|
-
|
|
26321
|
-
|
|
26322
|
-
|
|
26323
|
-
|
|
26324
|
-
|
|
26325
|
-
|
|
26326
|
-
|
|
26327
|
-
|
|
26328
|
-
|
|
26329
|
-
|
|
26330
|
-
|
|
26331
|
-
|
|
26332
|
-
|
|
26333
|
-
|
|
26334
|
-
|
|
26335
|
-
|
|
26336
|
-
|
|
26337
|
-
|
|
26338
|
-
|
|
26339
|
-
|
|
26340
|
-
|
|
26341
|
-
|
|
26342
|
-
|
|
26343
|
-
|
|
26344
|
-
|
|
26345
|
-
|
|
26346
|
-
|
|
26347
|
-
|
|
26348
|
-
|
|
26349
|
-
|
|
26350
|
-
|
|
26351
|
-
|
|
26352
|
-
|
|
26353
|
-
|
|
26354
|
-
|
|
26355
|
-
|
|
26356
|
-
|
|
26357
|
-
|
|
26358
|
-
|
|
26359
|
-
|
|
26360
|
-
|
|
26361
|
-
|
|
26362
|
-
|
|
26363
|
-
|
|
26364
|
-
|
|
26365
|
-
|
|
26366
|
-
|
|
26367
|
-
|
|
26368
|
-
|
|
26369
|
-
|
|
26370
|
-
|
|
26371
|
-
}) : [];
|
|
26372
|
-
}
|
|
26373
|
-
if (queryIdentifyType === 'dynamicDictCodeIdentify') {
|
|
26374
|
-
var _handleData3;
|
|
26375
|
-
_handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
|
|
26376
|
-
return {
|
|
26377
|
-
code: i.code.toString(),
|
|
26378
|
-
name: i.name
|
|
26379
|
-
};
|
|
26380
|
-
}) : [];
|
|
26381
|
-
}
|
|
26382
|
-
_this.setState({
|
|
26383
|
-
thresholdList: _handleData
|
|
26384
|
-
});
|
|
26269
|
+
while (1) switch (_context.prev = _context.next) {
|
|
26270
|
+
case 0:
|
|
26271
|
+
if (queryIdentify) {
|
|
26272
|
+
_context.next = 2;
|
|
26273
|
+
break;
|
|
26274
|
+
}
|
|
26275
|
+
return _context.abrupt("return");
|
|
26276
|
+
case 2:
|
|
26277
|
+
thresholdQuery = _this.state.thresholdQuery;
|
|
26278
|
+
extraRequestUrl = '';
|
|
26279
|
+
querParams = setParams(propertyCode, thresholdQuery);
|
|
26280
|
+
if (!queryIdentityInfo.find(function (item) {
|
|
26281
|
+
return item.identity == propertyCode;
|
|
26282
|
+
})) {
|
|
26283
|
+
_context.next = 10;
|
|
26284
|
+
break;
|
|
26285
|
+
}
|
|
26286
|
+
//判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
|
|
26287
|
+
needQueryList = queryIdentityInfo.find(function (item) {
|
|
26288
|
+
return item.identity == propertyCode;
|
|
26289
|
+
}).queryParam.filter(function (item) {
|
|
26290
|
+
return item.isRequired;
|
|
26291
|
+
}).map(function (item) {
|
|
26292
|
+
return item.queryKey;
|
|
26293
|
+
});
|
|
26294
|
+
if (!needQueryList.some(function (item) {
|
|
26295
|
+
return !querParams[item] || !querParams[item].length;
|
|
26296
|
+
})) {
|
|
26297
|
+
_context.next = 9;
|
|
26298
|
+
break;
|
|
26299
|
+
}
|
|
26300
|
+
return _context.abrupt("return");
|
|
26301
|
+
case 9:
|
|
26302
|
+
extraRequestUrl = queryIdentityInfo.find(function (item) {
|
|
26303
|
+
return item.identity == propertyCode;
|
|
26304
|
+
}).requestUrl || '';
|
|
26305
|
+
case 10:
|
|
26306
|
+
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
26307
|
+
extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
|
|
26308
|
+
querParams = {
|
|
26309
|
+
dictCode: queryIdentify
|
|
26310
|
+
};
|
|
26311
|
+
} else if (queryIdentifyType === 'dynamicDictCodeIdentify') {
|
|
26312
|
+
extraRequestUrl = "dictDynamicItem/getDynamicData/".concat(queryIdentify); // 字典接口
|
|
26313
|
+
// querParams = { dictCode: queryIdentify }
|
|
26314
|
+
}
|
|
26315
|
+
if (!extraRequestUrl) {
|
|
26316
|
+
_context.next = 16;
|
|
26317
|
+
break;
|
|
26318
|
+
}
|
|
26319
|
+
if (queryIdentify == 'maintain_area_code') {
|
|
26320
|
+
extraRequestUrl = "/basic/".concat(extraRequestUrl).concat(querParams.memberCardCode, "?").concat(stringify(querParams));
|
|
26321
|
+
} else if (queryIdentifyType == 'dictCodeIdentify') {
|
|
26322
|
+
extraRequestUrl = "/basic/".concat(extraRequestUrl, "?").concat(stringify(querParams));
|
|
26323
|
+
} else if (queryIdentifyType == 'dynamicDictCodeIdentify') {
|
|
26324
|
+
extraRequestUrl = "/basic/".concat(extraRequestUrl);
|
|
26325
|
+
}
|
|
26326
|
+
request$1({
|
|
26327
|
+
url: extraRequestUrl,
|
|
26328
|
+
method: 'get',
|
|
26329
|
+
converter: function converter(res) {
|
|
26330
|
+
if (handleError(res)) {
|
|
26331
|
+
var _handleData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
26332
|
+
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
26333
|
+
var _handleData2;
|
|
26334
|
+
_handleData = ((_handleData2 = _handleData) === null || _handleData2 === void 0 ? void 0 : _handleData2.length) ? _handleData.map(function (i) {
|
|
26335
|
+
return {
|
|
26336
|
+
code: i.dictItemCode,
|
|
26337
|
+
name: i.dictItemName
|
|
26338
|
+
};
|
|
26339
|
+
}) : [];
|
|
26385
26340
|
}
|
|
26386
|
-
|
|
26341
|
+
if (queryIdentifyType === 'dynamicDictCodeIdentify') {
|
|
26342
|
+
var _handleData3;
|
|
26343
|
+
_handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
|
|
26344
|
+
return {
|
|
26345
|
+
code: i.code.toString(),
|
|
26346
|
+
name: i.name
|
|
26347
|
+
};
|
|
26348
|
+
}) : [];
|
|
26349
|
+
}
|
|
26350
|
+
_this.setState({
|
|
26351
|
+
thresholdList: _handleData
|
|
26352
|
+
});
|
|
26387
26353
|
}
|
|
26388
|
-
|
|
26389
|
-
_context.next = 29;
|
|
26390
|
-
break;
|
|
26391
|
-
case 16:
|
|
26392
|
-
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
26393
|
-
_context.next = 20;
|
|
26394
|
-
break;
|
|
26354
|
+
return handleData;
|
|
26395
26355
|
}
|
|
26396
|
-
|
|
26397
|
-
|
|
26398
|
-
|
|
26399
|
-
|
|
26356
|
+
});
|
|
26357
|
+
_context.next = 29;
|
|
26358
|
+
break;
|
|
26359
|
+
case 16:
|
|
26360
|
+
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
26361
|
+
_context.next = 20;
|
|
26400
26362
|
break;
|
|
26401
|
-
|
|
26402
|
-
|
|
26403
|
-
|
|
26404
|
-
|
|
26405
|
-
|
|
26406
|
-
|
|
26363
|
+
}
|
|
26364
|
+
_this.setState({
|
|
26365
|
+
thresholdList: queryIdentify
|
|
26366
|
+
});
|
|
26367
|
+
_context.next = 29;
|
|
26368
|
+
break;
|
|
26369
|
+
case 20:
|
|
26370
|
+
if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
|
|
26371
|
+
_context.next = 24;
|
|
26372
|
+
break;
|
|
26373
|
+
}
|
|
26374
|
+
// TODO待处理
|
|
26375
|
+
_this.setState({
|
|
26376
|
+
thresholdList: []
|
|
26377
|
+
});
|
|
26378
|
+
_context.next = 29;
|
|
26379
|
+
break;
|
|
26380
|
+
case 24:
|
|
26381
|
+
querParams.queryIdentify = queryIdentify;
|
|
26382
|
+
_context.next = 27;
|
|
26383
|
+
return getRegularThresholdRange(querParams);
|
|
26384
|
+
case 27:
|
|
26385
|
+
res = _context.sent;
|
|
26386
|
+
if (handleError(res)) {
|
|
26407
26387
|
_this.setState({
|
|
26408
|
-
thresholdList: []
|
|
26388
|
+
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
26409
26389
|
});
|
|
26410
|
-
|
|
26411
|
-
|
|
26412
|
-
|
|
26413
|
-
|
|
26414
|
-
_context.next = 27;
|
|
26415
|
-
return getRegularThresholdRange(querParams);
|
|
26416
|
-
case 27:
|
|
26417
|
-
res = _context.sent;
|
|
26418
|
-
if (handleError(res)) {
|
|
26419
|
-
_this.setState({
|
|
26420
|
-
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
26421
|
-
});
|
|
26422
|
-
}
|
|
26423
|
-
case 29:
|
|
26424
|
-
case "end":
|
|
26425
|
-
return _context.stop();
|
|
26426
|
-
}
|
|
26390
|
+
}
|
|
26391
|
+
case 29:
|
|
26392
|
+
case "end":
|
|
26393
|
+
return _context.stop();
|
|
26427
26394
|
}
|
|
26428
26395
|
}, _callee);
|
|
26429
26396
|
}));
|
|
@@ -26607,6 +26574,16 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26607
26574
|
}
|
|
26608
26575
|
}));
|
|
26609
26576
|
} else {
|
|
26577
|
+
var _values;
|
|
26578
|
+
var currentValue = dataInputBusinessType === 12 ? ((_values = values) === null || _values === void 0 ? void 0 : _values.map(function (s, vIndex) {
|
|
26579
|
+
return {
|
|
26580
|
+
key: s,
|
|
26581
|
+
label: valueNames[vIndex]
|
|
26582
|
+
};
|
|
26583
|
+
})) || [] : values[0] && {
|
|
26584
|
+
key: values[0],
|
|
26585
|
+
label: valueNames[0]
|
|
26586
|
+
} || {};
|
|
26610
26587
|
return /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
26611
26588
|
selectBusinessType: "physicalWarehouse",
|
|
26612
26589
|
selectProps: _objectSpread2({
|
|
@@ -26618,7 +26595,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26618
26595
|
} : {}),
|
|
26619
26596
|
disabled: disabled,
|
|
26620
26597
|
labelInValue: true,
|
|
26621
|
-
value:
|
|
26598
|
+
value: currentValue,
|
|
26622
26599
|
requestConfig: {
|
|
26623
26600
|
mappingValueField: 'physicalWarehouseCode',
|
|
26624
26601
|
filterInit: 'qp-physicalWarehouseCode-in'
|
|
@@ -26627,13 +26604,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26627
26604
|
if (dataInputBusinessType === 12) {
|
|
26628
26605
|
values = value.map(function (i) {
|
|
26629
26606
|
return i.key;
|
|
26630
|
-
});
|
|
26607
|
+
}) || [];
|
|
26631
26608
|
valueNames = value.map(function (i) {
|
|
26632
26609
|
return i.label || '';
|
|
26633
|
-
});
|
|
26610
|
+
}) || [];
|
|
26634
26611
|
} else {
|
|
26635
|
-
values = [value.key];
|
|
26636
|
-
valueNames = [value.label
|
|
26612
|
+
values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
|
|
26613
|
+
valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
|
|
26637
26614
|
}
|
|
26638
26615
|
callback(values, valueNames);
|
|
26639
26616
|
},
|
|
@@ -26714,6 +26691,16 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26714
26691
|
}
|
|
26715
26692
|
}));
|
|
26716
26693
|
} else {
|
|
26694
|
+
var _values2;
|
|
26695
|
+
var _currentValue = dataInputBusinessType === 12 ? ((_values2 = values) === null || _values2 === void 0 ? void 0 : _values2.map(function (s, vIndex) {
|
|
26696
|
+
return {
|
|
26697
|
+
key: s,
|
|
26698
|
+
label: valueNames[vIndex]
|
|
26699
|
+
};
|
|
26700
|
+
})) || [] : values[0] && {
|
|
26701
|
+
key: values[0],
|
|
26702
|
+
label: valueNames[0]
|
|
26703
|
+
} || {};
|
|
26717
26704
|
return /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
26718
26705
|
selectBusinessType: "realWarehouse",
|
|
26719
26706
|
selectProps: _objectSpread2({
|
|
@@ -26725,7 +26712,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26725
26712
|
} : {}),
|
|
26726
26713
|
disabled: disabled,
|
|
26727
26714
|
labelInValue: true,
|
|
26728
|
-
value:
|
|
26715
|
+
value: _currentValue,
|
|
26729
26716
|
requestConfig: {
|
|
26730
26717
|
mappingValueField: 'realWarehouseCode',
|
|
26731
26718
|
filterInit: 'qp-realWarehouseCode-in'
|
|
@@ -26734,13 +26721,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26734
26721
|
if (dataInputBusinessType === 12) {
|
|
26735
26722
|
values = value.map(function (i) {
|
|
26736
26723
|
return i.key;
|
|
26737
|
-
});
|
|
26724
|
+
}) || [];
|
|
26738
26725
|
valueNames = value.map(function (i) {
|
|
26739
26726
|
return i.label || '';
|
|
26740
|
-
});
|
|
26727
|
+
}) || [];
|
|
26741
26728
|
} else {
|
|
26742
|
-
values = [value.key];
|
|
26743
|
-
valueNames = [value.label
|
|
26729
|
+
values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
|
|
26730
|
+
valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
|
|
26744
26731
|
}
|
|
26745
26732
|
callback(values, valueNames);
|
|
26746
26733
|
},
|
|
@@ -26821,6 +26808,16 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26821
26808
|
}
|
|
26822
26809
|
}));
|
|
26823
26810
|
} else {
|
|
26811
|
+
var _values3;
|
|
26812
|
+
var _currentValue2 = dataInputBusinessType === 12 ? ((_values3 = values) === null || _values3 === void 0 ? void 0 : _values3.map(function (s, vIndex) {
|
|
26813
|
+
return {
|
|
26814
|
+
key: s,
|
|
26815
|
+
label: valueNames[vIndex]
|
|
26816
|
+
};
|
|
26817
|
+
})) || [] : values[0] && {
|
|
26818
|
+
key: values[0],
|
|
26819
|
+
label: valueNames[0]
|
|
26820
|
+
} || {};
|
|
26824
26821
|
return /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
26825
26822
|
selectBusinessType: "virtualWarehouse",
|
|
26826
26823
|
selectProps: _objectSpread2({
|
|
@@ -26832,7 +26829,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26832
26829
|
} : {}),
|
|
26833
26830
|
disabled: disabled,
|
|
26834
26831
|
labelInValue: true,
|
|
26835
|
-
value:
|
|
26832
|
+
value: _currentValue2,
|
|
26836
26833
|
requestConfig: {
|
|
26837
26834
|
mappingValueField: 'virtualWarehouseCode',
|
|
26838
26835
|
filterInit: 'qp-virtualWarehouseCode-in'
|
|
@@ -26841,13 +26838,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26841
26838
|
if (dataInputBusinessType === 12) {
|
|
26842
26839
|
values = value.map(function (i) {
|
|
26843
26840
|
return i.key;
|
|
26844
|
-
});
|
|
26841
|
+
}) || [];
|
|
26845
26842
|
valueNames = value.map(function (i) {
|
|
26846
26843
|
return i.label || '';
|
|
26847
|
-
});
|
|
26844
|
+
}) || [];
|
|
26848
26845
|
} else {
|
|
26849
|
-
values = [value.key];
|
|
26850
|
-
valueNames = [value.label
|
|
26846
|
+
values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
|
|
26847
|
+
valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
|
|
26851
26848
|
}
|
|
26852
26849
|
callback(values, valueNames);
|
|
26853
26850
|
},
|
|
@@ -26928,6 +26925,16 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26928
26925
|
}
|
|
26929
26926
|
}));
|
|
26930
26927
|
} else {
|
|
26928
|
+
var _values4;
|
|
26929
|
+
var _currentValue3 = dataInputBusinessType === 12 ? ((_values4 = values) === null || _values4 === void 0 ? void 0 : _values4.map(function (s, vIndex) {
|
|
26930
|
+
return {
|
|
26931
|
+
key: s,
|
|
26932
|
+
label: valueNames[vIndex]
|
|
26933
|
+
};
|
|
26934
|
+
})) || [] : values[0] && {
|
|
26935
|
+
key: values[0],
|
|
26936
|
+
label: valueNames[0]
|
|
26937
|
+
} || {};
|
|
26931
26938
|
return /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
26932
26939
|
selectBusinessType: "channelWarehouse",
|
|
26933
26940
|
selectProps: _objectSpread2({
|
|
@@ -26939,7 +26946,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26939
26946
|
} : {}),
|
|
26940
26947
|
disabled: disabled,
|
|
26941
26948
|
labelInValue: true,
|
|
26942
|
-
value:
|
|
26949
|
+
value: _currentValue3,
|
|
26943
26950
|
requestConfig: {
|
|
26944
26951
|
mappingValueField: 'channelWarehouseCode',
|
|
26945
26952
|
filterInit: 'qp-channelWarehouseCode-in'
|
|
@@ -26948,13 +26955,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26948
26955
|
if (dataInputBusinessType === 12) {
|
|
26949
26956
|
values = value.map(function (i) {
|
|
26950
26957
|
return i.key;
|
|
26951
|
-
});
|
|
26958
|
+
}) || [];
|
|
26952
26959
|
valueNames = value.map(function (i) {
|
|
26953
26960
|
return i.label || '';
|
|
26954
|
-
});
|
|
26961
|
+
}) || [];
|
|
26955
26962
|
} else {
|
|
26956
|
-
values = [value.key];
|
|
26957
|
-
valueNames = [value.label
|
|
26963
|
+
values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
|
|
26964
|
+
valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
|
|
26958
26965
|
}
|
|
26959
26966
|
callback(values, valueNames);
|
|
26960
26967
|
},
|
|
@@ -27033,6 +27040,16 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27033
27040
|
}
|
|
27034
27041
|
}));
|
|
27035
27042
|
} else {
|
|
27043
|
+
var _values5;
|
|
27044
|
+
var _currentValue4 = dataInputBusinessType === 12 ? ((_values5 = values) === null || _values5 === void 0 ? void 0 : _values5.map(function (s, vIndex) {
|
|
27045
|
+
return {
|
|
27046
|
+
key: s,
|
|
27047
|
+
label: valueNames[vIndex]
|
|
27048
|
+
};
|
|
27049
|
+
})) || [] : values[0] && {
|
|
27050
|
+
key: values[0],
|
|
27051
|
+
label: valueNames[0]
|
|
27052
|
+
} || {};
|
|
27036
27053
|
return /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
27037
27054
|
selectBusinessType: "spuCommodity",
|
|
27038
27055
|
selectProps: _objectSpread2({
|
|
@@ -27044,7 +27061,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27044
27061
|
} : {}),
|
|
27045
27062
|
disabled: disabled,
|
|
27046
27063
|
labelInValue: true,
|
|
27047
|
-
value:
|
|
27064
|
+
value: _currentValue4,
|
|
27048
27065
|
requestConfig: {
|
|
27049
27066
|
filterInit: 'qp-itemCode-in'
|
|
27050
27067
|
},
|
|
@@ -27052,13 +27069,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27052
27069
|
if (dataInputBusinessType === 12) {
|
|
27053
27070
|
values = value.map(function (i) {
|
|
27054
27071
|
return i.key;
|
|
27055
|
-
});
|
|
27072
|
+
}) || [];
|
|
27056
27073
|
valueNames = value.map(function (i) {
|
|
27057
27074
|
return i.label || '';
|
|
27058
|
-
});
|
|
27075
|
+
}) || [];
|
|
27059
27076
|
} else {
|
|
27060
|
-
values = [value.key];
|
|
27061
|
-
valueNames = [value.label
|
|
27077
|
+
values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
|
|
27078
|
+
valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
|
|
27062
27079
|
}
|
|
27063
27080
|
callback(values, valueNames);
|
|
27064
27081
|
},
|
|
@@ -27137,6 +27154,16 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27137
27154
|
}
|
|
27138
27155
|
}));
|
|
27139
27156
|
} else {
|
|
27157
|
+
var _values6;
|
|
27158
|
+
var _currentValue5 = dataInputBusinessType === 12 ? ((_values6 = values) === null || _values6 === void 0 ? void 0 : _values6.map(function (s, vIndex) {
|
|
27159
|
+
return {
|
|
27160
|
+
key: s,
|
|
27161
|
+
label: valueNames[vIndex]
|
|
27162
|
+
};
|
|
27163
|
+
})) || [] : values[0] && {
|
|
27164
|
+
key: values[0],
|
|
27165
|
+
label: valueNames[0]
|
|
27166
|
+
} || {};
|
|
27140
27167
|
return /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
27141
27168
|
selectBusinessType: "skuCommodity",
|
|
27142
27169
|
selectProps: _objectSpread2({
|
|
@@ -27148,7 +27175,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27148
27175
|
} : {}),
|
|
27149
27176
|
disabled: disabled,
|
|
27150
27177
|
labelInValue: true,
|
|
27151
|
-
value:
|
|
27178
|
+
value: _currentValue5,
|
|
27152
27179
|
requestConfig: {
|
|
27153
27180
|
filterInit: 'qp-skuCode-in'
|
|
27154
27181
|
},
|
|
@@ -27156,13 +27183,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27156
27183
|
if (dataInputBusinessType === 12) {
|
|
27157
27184
|
values = value.map(function (i) {
|
|
27158
27185
|
return i.key;
|
|
27159
|
-
});
|
|
27186
|
+
}) || [];
|
|
27160
27187
|
valueNames = value.map(function (i) {
|
|
27161
27188
|
return i.label || '';
|
|
27162
|
-
});
|
|
27189
|
+
}) || [];
|
|
27163
27190
|
} else {
|
|
27164
|
-
values = [value.key];
|
|
27165
|
-
valueNames = [value.label
|
|
27191
|
+
values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
|
|
27192
|
+
valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
|
|
27166
27193
|
}
|
|
27167
27194
|
callback(values, valueNames);
|
|
27168
27195
|
},
|
|
@@ -27182,32 +27209,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27182
27209
|
notChangeOnSelect: true,
|
|
27183
27210
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
27184
27211
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
27185
|
-
while (1) {
|
|
27186
|
-
|
|
27187
|
-
|
|
27188
|
-
|
|
27189
|
-
|
|
27190
|
-
|
|
27191
|
-
|
|
27192
|
-
|
|
27193
|
-
|
|
27194
|
-
|
|
27195
|
-
|
|
27196
|
-
|
|
27197
|
-
|
|
27198
|
-
|
|
27199
|
-
|
|
27200
|
-
|
|
27201
|
-
|
|
27202
|
-
|
|
27203
|
-
|
|
27204
|
-
|
|
27205
|
-
|
|
27206
|
-
|
|
27207
|
-
|
|
27208
|
-
|
|
27209
|
-
return _context2.stop();
|
|
27210
|
-
}
|
|
27212
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
27213
|
+
case 0:
|
|
27214
|
+
_context2.next = 2;
|
|
27215
|
+
return request$1({
|
|
27216
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
27217
|
+
method: 'get',
|
|
27218
|
+
converter: function converter(_ref3) {
|
|
27219
|
+
var data = _ref3.data;
|
|
27220
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27221
|
+
return {
|
|
27222
|
+
text: item.name,
|
|
27223
|
+
value: item.id,
|
|
27224
|
+
level: item.level,
|
|
27225
|
+
id: item.id
|
|
27226
|
+
};
|
|
27227
|
+
}) : [];
|
|
27228
|
+
return handleData;
|
|
27229
|
+
}
|
|
27230
|
+
});
|
|
27231
|
+
case 2:
|
|
27232
|
+
return _context2.abrupt("return", _context2.sent);
|
|
27233
|
+
case 3:
|
|
27234
|
+
case "end":
|
|
27235
|
+
return _context2.stop();
|
|
27211
27236
|
}
|
|
27212
27237
|
}, _callee2);
|
|
27213
27238
|
})),
|
|
@@ -27233,32 +27258,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27233
27258
|
notChangeOnSelect: true,
|
|
27234
27259
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
27235
27260
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
27236
|
-
while (1) {
|
|
27237
|
-
|
|
27238
|
-
|
|
27239
|
-
|
|
27240
|
-
|
|
27241
|
-
|
|
27242
|
-
|
|
27243
|
-
|
|
27244
|
-
|
|
27245
|
-
|
|
27246
|
-
|
|
27247
|
-
|
|
27248
|
-
|
|
27249
|
-
|
|
27250
|
-
|
|
27251
|
-
|
|
27252
|
-
|
|
27253
|
-
|
|
27254
|
-
|
|
27255
|
-
|
|
27256
|
-
|
|
27257
|
-
|
|
27258
|
-
|
|
27259
|
-
|
|
27260
|
-
return _context3.stop();
|
|
27261
|
-
}
|
|
27261
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
27262
|
+
case 0:
|
|
27263
|
+
_context3.next = 2;
|
|
27264
|
+
return request$1({
|
|
27265
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
27266
|
+
method: 'get',
|
|
27267
|
+
converter: function converter(_ref5) {
|
|
27268
|
+
var data = _ref5.data;
|
|
27269
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27270
|
+
return {
|
|
27271
|
+
text: item.name,
|
|
27272
|
+
value: item.id,
|
|
27273
|
+
level: item.level,
|
|
27274
|
+
id: item.id
|
|
27275
|
+
};
|
|
27276
|
+
}) : [];
|
|
27277
|
+
return handleData;
|
|
27278
|
+
}
|
|
27279
|
+
});
|
|
27280
|
+
case 2:
|
|
27281
|
+
return _context3.abrupt("return", _context3.sent);
|
|
27282
|
+
case 3:
|
|
27283
|
+
case "end":
|
|
27284
|
+
return _context3.stop();
|
|
27262
27285
|
}
|
|
27263
27286
|
}, _callee3);
|
|
27264
27287
|
})),
|
|
@@ -27286,32 +27309,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27286
27309
|
notChangeOnSelect: true,
|
|
27287
27310
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
27288
27311
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
27289
|
-
while (1) {
|
|
27290
|
-
|
|
27291
|
-
|
|
27292
|
-
|
|
27293
|
-
|
|
27294
|
-
|
|
27295
|
-
|
|
27296
|
-
|
|
27297
|
-
|
|
27298
|
-
|
|
27299
|
-
|
|
27300
|
-
|
|
27301
|
-
|
|
27302
|
-
|
|
27303
|
-
|
|
27304
|
-
|
|
27305
|
-
|
|
27306
|
-
|
|
27307
|
-
|
|
27308
|
-
|
|
27309
|
-
|
|
27310
|
-
|
|
27311
|
-
|
|
27312
|
-
|
|
27313
|
-
return _context4.stop();
|
|
27314
|
-
}
|
|
27312
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
27313
|
+
case 0:
|
|
27314
|
+
_context4.next = 2;
|
|
27315
|
+
return request$1({
|
|
27316
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
27317
|
+
method: 'get',
|
|
27318
|
+
converter: function converter(_ref7) {
|
|
27319
|
+
var data = _ref7.data;
|
|
27320
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27321
|
+
return {
|
|
27322
|
+
text: item.name,
|
|
27323
|
+
value: item.id,
|
|
27324
|
+
level: item.level,
|
|
27325
|
+
id: item.id
|
|
27326
|
+
};
|
|
27327
|
+
}) : [];
|
|
27328
|
+
return handleData;
|
|
27329
|
+
}
|
|
27330
|
+
});
|
|
27331
|
+
case 2:
|
|
27332
|
+
return _context4.abrupt("return", _context4.sent);
|
|
27333
|
+
case 3:
|
|
27334
|
+
case "end":
|
|
27335
|
+
return _context4.stop();
|
|
27315
27336
|
}
|
|
27316
27337
|
}, _callee4);
|
|
27317
27338
|
})),
|
|
@@ -27396,13 +27417,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27396
27417
|
if (dataInputBusinessType === 12) {
|
|
27397
27418
|
values = value.map(function (i) {
|
|
27398
27419
|
return i.key;
|
|
27399
|
-
});
|
|
27420
|
+
}) || [];
|
|
27400
27421
|
valueNames = value.map(function (i) {
|
|
27401
27422
|
return i.label || '';
|
|
27402
|
-
});
|
|
27423
|
+
}) || [];
|
|
27403
27424
|
} else {
|
|
27404
|
-
values = [value.key];
|
|
27405
|
-
valueNames = [value.label
|
|
27425
|
+
values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
|
|
27426
|
+
valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
|
|
27406
27427
|
}
|
|
27407
27428
|
callback(values, valueNames);
|
|
27408
27429
|
},
|
|
@@ -27476,13 +27497,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27476
27497
|
if (dataInputBusinessType === 12) {
|
|
27477
27498
|
values = value.map(function (i) {
|
|
27478
27499
|
return i.key;
|
|
27479
|
-
});
|
|
27500
|
+
}) || [];
|
|
27480
27501
|
valueNames = value.map(function (i) {
|
|
27481
27502
|
return i.label || '';
|
|
27482
|
-
});
|
|
27503
|
+
}) || [];
|
|
27483
27504
|
} else {
|
|
27484
|
-
values = [value.key];
|
|
27485
|
-
valueNames = [value.label
|
|
27505
|
+
values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
|
|
27506
|
+
valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
|
|
27486
27507
|
}
|
|
27487
27508
|
callback(values, valueNames);
|
|
27488
27509
|
},
|
|
@@ -27556,13 +27577,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27556
27577
|
if (dataInputBusinessType === 12) {
|
|
27557
27578
|
values = value.map(function (i) {
|
|
27558
27579
|
return i.key;
|
|
27559
|
-
});
|
|
27580
|
+
}) || [];
|
|
27560
27581
|
valueNames = value.map(function (i) {
|
|
27561
27582
|
return i.label || '';
|
|
27562
|
-
});
|
|
27583
|
+
}) || [];
|
|
27563
27584
|
} else {
|
|
27564
|
-
values = [value.key];
|
|
27565
|
-
valueNames = [value.label
|
|
27585
|
+
values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
|
|
27586
|
+
valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
|
|
27566
27587
|
}
|
|
27567
27588
|
callback(values, valueNames);
|
|
27568
27589
|
},
|
|
@@ -27641,6 +27662,16 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27641
27662
|
}
|
|
27642
27663
|
}));
|
|
27643
27664
|
} else {
|
|
27665
|
+
var _values7;
|
|
27666
|
+
var _currentValue6 = dataInputBusinessType === 12 ? ((_values7 = values) === null || _values7 === void 0 ? void 0 : _values7.map(function (s, vIndex) {
|
|
27667
|
+
return {
|
|
27668
|
+
key: s,
|
|
27669
|
+
label: valueNames[vIndex]
|
|
27670
|
+
};
|
|
27671
|
+
})) || [] : values[0] && {
|
|
27672
|
+
key: values[0],
|
|
27673
|
+
label: valueNames[0]
|
|
27674
|
+
} || {};
|
|
27644
27675
|
return /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
27645
27676
|
selectBusinessType: "supplier2",
|
|
27646
27677
|
selectProps: _objectSpread2({
|
|
@@ -27652,7 +27683,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27652
27683
|
} : {}),
|
|
27653
27684
|
disabled: disabled,
|
|
27654
27685
|
labelInValue: true,
|
|
27655
|
-
value:
|
|
27686
|
+
value: _currentValue6,
|
|
27656
27687
|
requestConfig: {
|
|
27657
27688
|
filterInit: 'qp-code-in'
|
|
27658
27689
|
},
|
|
@@ -27660,13 +27691,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27660
27691
|
if (dataInputBusinessType === 12) {
|
|
27661
27692
|
values = value.map(function (i) {
|
|
27662
27693
|
return i.key;
|
|
27663
|
-
});
|
|
27694
|
+
}) || [];
|
|
27664
27695
|
valueNames = value.map(function (i) {
|
|
27665
27696
|
return i.label || '';
|
|
27666
|
-
});
|
|
27697
|
+
}) || [];
|
|
27667
27698
|
} else {
|
|
27668
|
-
values = [value.key];
|
|
27669
|
-
valueNames = [value.label
|
|
27699
|
+
values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
|
|
27700
|
+
valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
|
|
27670
27701
|
}
|
|
27671
27702
|
callback(values, valueNames);
|
|
27672
27703
|
},
|
|
@@ -27745,6 +27776,16 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27745
27776
|
}
|
|
27746
27777
|
}));
|
|
27747
27778
|
} else {
|
|
27779
|
+
var _values8;
|
|
27780
|
+
var _currentValue7 = dataInputBusinessType === 12 ? ((_values8 = values) === null || _values8 === void 0 ? void 0 : _values8.map(function (s, vIndex) {
|
|
27781
|
+
return {
|
|
27782
|
+
key: s,
|
|
27783
|
+
label: valueNames[vIndex]
|
|
27784
|
+
};
|
|
27785
|
+
})) || [] : values[0] && {
|
|
27786
|
+
key: values[0],
|
|
27787
|
+
label: valueNames[0]
|
|
27788
|
+
} || {};
|
|
27748
27789
|
return /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
27749
27790
|
selectBusinessType: "customer2",
|
|
27750
27791
|
selectProps: _objectSpread2({
|
|
@@ -27756,7 +27797,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27756
27797
|
} : {}),
|
|
27757
27798
|
disabled: disabled,
|
|
27758
27799
|
labelInValue: true,
|
|
27759
|
-
value:
|
|
27800
|
+
value: _currentValue7,
|
|
27760
27801
|
requestConfig: {
|
|
27761
27802
|
filterInit: 'qp-code-in'
|
|
27762
27803
|
},
|
|
@@ -27764,13 +27805,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27764
27805
|
if (dataInputBusinessType === 12) {
|
|
27765
27806
|
values = value.map(function (i) {
|
|
27766
27807
|
return i.key;
|
|
27767
|
-
});
|
|
27808
|
+
}) || [];
|
|
27768
27809
|
valueNames = value.map(function (i) {
|
|
27769
27810
|
return i.label || '';
|
|
27770
|
-
});
|
|
27811
|
+
}) || [];
|
|
27771
27812
|
} else {
|
|
27772
|
-
values = [value.key];
|
|
27773
|
-
valueNames = [value.label
|
|
27813
|
+
values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
|
|
27814
|
+
valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
|
|
27774
27815
|
}
|
|
27775
27816
|
callback(values, valueNames);
|
|
27776
27817
|
},
|
|
@@ -27849,6 +27890,16 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27849
27890
|
}
|
|
27850
27891
|
}));
|
|
27851
27892
|
} else {
|
|
27893
|
+
var _values9;
|
|
27894
|
+
var _currentValue8 = dataInputBusinessType === 12 ? ((_values9 = values) === null || _values9 === void 0 ? void 0 : _values9.map(function (s, vIndex) {
|
|
27895
|
+
return {
|
|
27896
|
+
key: s,
|
|
27897
|
+
label: valueNames[vIndex]
|
|
27898
|
+
};
|
|
27899
|
+
})) || [] : values[0] && {
|
|
27900
|
+
key: values[0],
|
|
27901
|
+
label: valueNames[0]
|
|
27902
|
+
} || {};
|
|
27852
27903
|
return /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
27853
27904
|
selectBusinessType: "shopFile2",
|
|
27854
27905
|
selectProps: _objectSpread2({
|
|
@@ -27860,7 +27911,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27860
27911
|
} : {}),
|
|
27861
27912
|
disabled: disabled,
|
|
27862
27913
|
labelInValue: true,
|
|
27863
|
-
value:
|
|
27914
|
+
value: _currentValue8,
|
|
27864
27915
|
requestConfig: {
|
|
27865
27916
|
filterInit: 'qp-code-in'
|
|
27866
27917
|
},
|
|
@@ -27868,13 +27919,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27868
27919
|
if (dataInputBusinessType === 12) {
|
|
27869
27920
|
values = value.map(function (i) {
|
|
27870
27921
|
return i.key;
|
|
27871
|
-
});
|
|
27922
|
+
}) || [];
|
|
27872
27923
|
valueNames = value.map(function (i) {
|
|
27873
27924
|
return i.label || '';
|
|
27874
|
-
});
|
|
27925
|
+
}) || [];
|
|
27875
27926
|
} else {
|
|
27876
|
-
values = [value.key];
|
|
27877
|
-
valueNames = [value.label
|
|
27927
|
+
values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
|
|
27928
|
+
valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
|
|
27878
27929
|
}
|
|
27879
27930
|
callback(values, valueNames);
|
|
27880
27931
|
},
|
|
@@ -27953,6 +28004,16 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27953
28004
|
}
|
|
27954
28005
|
}));
|
|
27955
28006
|
} else {
|
|
28007
|
+
var _values10;
|
|
28008
|
+
var _currentValue9 = dataInputBusinessType === 12 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
|
|
28009
|
+
return {
|
|
28010
|
+
key: s,
|
|
28011
|
+
label: valueNames[vIndex]
|
|
28012
|
+
};
|
|
28013
|
+
})) || [] : values[0] && {
|
|
28014
|
+
key: values[0],
|
|
28015
|
+
label: valueNames[0]
|
|
28016
|
+
} || {};
|
|
27956
28017
|
return /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
27957
28018
|
selectBusinessType: "employee2",
|
|
27958
28019
|
selectProps: _objectSpread2({
|
|
@@ -27964,7 +28025,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27964
28025
|
} : {}),
|
|
27965
28026
|
disabled: disabled,
|
|
27966
28027
|
labelInValue: true,
|
|
27967
|
-
value:
|
|
28028
|
+
value: _currentValue9,
|
|
27968
28029
|
requestConfig: {
|
|
27969
28030
|
filterInit: 'qp-id-in'
|
|
27970
28031
|
},
|
|
@@ -27972,13 +28033,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27972
28033
|
if (dataInputBusinessType === 12) {
|
|
27973
28034
|
values = value.map(function (i) {
|
|
27974
28035
|
return i.key;
|
|
27975
|
-
});
|
|
28036
|
+
}) || [];
|
|
27976
28037
|
valueNames = value.map(function (i) {
|
|
27977
28038
|
return i.label || '';
|
|
27978
|
-
});
|
|
28039
|
+
}) || [];
|
|
27979
28040
|
} else {
|
|
27980
|
-
values = [value.key];
|
|
27981
|
-
valueNames = [value.label
|
|
28041
|
+
values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
|
|
28042
|
+
valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
|
|
27982
28043
|
}
|
|
27983
28044
|
callback(values, valueNames);
|
|
27984
28045
|
},
|
|
@@ -28052,13 +28113,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
28052
28113
|
if (dataInputBusinessType === 12) {
|
|
28053
28114
|
values = value.map(function (i) {
|
|
28054
28115
|
return i.key;
|
|
28055
|
-
});
|
|
28116
|
+
}) || [];
|
|
28056
28117
|
valueNames = value.map(function (i) {
|
|
28057
28118
|
return i.label || '';
|
|
28058
|
-
});
|
|
28119
|
+
}) || [];
|
|
28059
28120
|
} else {
|
|
28060
|
-
values = [value.key];
|
|
28061
|
-
valueNames = [value.label
|
|
28121
|
+
values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
|
|
28122
|
+
valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
|
|
28062
28123
|
}
|
|
28063
28124
|
callback(values, valueNames);
|
|
28064
28125
|
},
|
|
@@ -28137,6 +28198,16 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
28137
28198
|
}
|
|
28138
28199
|
}));
|
|
28139
28200
|
} else {
|
|
28201
|
+
var _values11;
|
|
28202
|
+
var _currentValue10 = dataInputBusinessType === 12 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
|
|
28203
|
+
return {
|
|
28204
|
+
key: s,
|
|
28205
|
+
label: valueNames[vIndex]
|
|
28206
|
+
};
|
|
28207
|
+
})) || [] : values[0] && {
|
|
28208
|
+
key: values[0],
|
|
28209
|
+
label: valueNames[0]
|
|
28210
|
+
} || {};
|
|
28140
28211
|
return /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
28141
28212
|
selectBusinessType: "deliveryMode",
|
|
28142
28213
|
selectProps: _objectSpread2({
|
|
@@ -28148,7 +28219,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
28148
28219
|
} : {}),
|
|
28149
28220
|
disabled: disabled,
|
|
28150
28221
|
labelInValue: true,
|
|
28151
|
-
value:
|
|
28222
|
+
value: _currentValue10,
|
|
28152
28223
|
requestConfig: {
|
|
28153
28224
|
filterInit: 'qp-code-in'
|
|
28154
28225
|
},
|
|
@@ -28156,13 +28227,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
28156
28227
|
if (dataInputBusinessType === 12) {
|
|
28157
28228
|
values = value.map(function (i) {
|
|
28158
28229
|
return i.key;
|
|
28159
|
-
});
|
|
28230
|
+
}) || [];
|
|
28160
28231
|
valueNames = value.map(function (i) {
|
|
28161
28232
|
return i.label || '';
|
|
28162
|
-
});
|
|
28233
|
+
}) || [];
|
|
28163
28234
|
} else {
|
|
28164
|
-
values = [value.key];
|
|
28165
|
-
valueNames = [value.label
|
|
28235
|
+
values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
|
|
28236
|
+
valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
|
|
28166
28237
|
}
|
|
28167
28238
|
callback(values, valueNames);
|
|
28168
28239
|
},
|
|
@@ -28378,8 +28449,6 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
28378
28449
|
});
|
|
28379
28450
|
}
|
|
28380
28451
|
}
|
|
28381
|
-
|
|
28382
|
-
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
28383
28452
|
}, {
|
|
28384
28453
|
key: "render",
|
|
28385
28454
|
value: function render() {
|
|
@@ -29210,6 +29279,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29210
29279
|
callBack(ruleClassData);
|
|
29211
29280
|
});
|
|
29212
29281
|
};
|
|
29282
|
+
// 树结构 转化成 平行树 (递归函数)
|
|
29213
29283
|
_this.coverToParallel = function (treeData, result) {
|
|
29214
29284
|
treeData.forEach(function (el) {
|
|
29215
29285
|
result.push(el);
|
|
@@ -29463,6 +29533,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29463
29533
|
callBack(ruleClassData);
|
|
29464
29534
|
});
|
|
29465
29535
|
};
|
|
29536
|
+
// 场景需要返回值2022.11.15
|
|
29466
29537
|
_this.renderResItem = function (itemDetail, parentDetail, ruleReturnConfig, disabled, boxStyle) {
|
|
29467
29538
|
var _ruleReturnConfig$rig;
|
|
29468
29539
|
var isShowResponse = itemDetail.response['enable'];
|
|
@@ -29760,32 +29831,30 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29760
29831
|
notChangeOnSelect: true,
|
|
29761
29832
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29762
29833
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29763
|
-
while (1) {
|
|
29764
|
-
|
|
29765
|
-
|
|
29766
|
-
|
|
29767
|
-
|
|
29768
|
-
|
|
29769
|
-
|
|
29770
|
-
|
|
29771
|
-
|
|
29772
|
-
|
|
29773
|
-
|
|
29774
|
-
|
|
29775
|
-
|
|
29776
|
-
|
|
29777
|
-
|
|
29778
|
-
|
|
29779
|
-
|
|
29780
|
-
|
|
29781
|
-
|
|
29782
|
-
|
|
29783
|
-
|
|
29784
|
-
|
|
29785
|
-
|
|
29786
|
-
|
|
29787
|
-
return _context.stop();
|
|
29788
|
-
}
|
|
29834
|
+
while (1) switch (_context.prev = _context.next) {
|
|
29835
|
+
case 0:
|
|
29836
|
+
_context.next = 2;
|
|
29837
|
+
return request$1({
|
|
29838
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
29839
|
+
method: 'get',
|
|
29840
|
+
converter: function converter(_ref2) {
|
|
29841
|
+
var data = _ref2.data;
|
|
29842
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
29843
|
+
return {
|
|
29844
|
+
text: item.name,
|
|
29845
|
+
value: item.id,
|
|
29846
|
+
level: item.level,
|
|
29847
|
+
id: item.id
|
|
29848
|
+
};
|
|
29849
|
+
}) : [];
|
|
29850
|
+
return handleData;
|
|
29851
|
+
}
|
|
29852
|
+
});
|
|
29853
|
+
case 2:
|
|
29854
|
+
return _context.abrupt("return", _context.sent);
|
|
29855
|
+
case 3:
|
|
29856
|
+
case "end":
|
|
29857
|
+
return _context.stop();
|
|
29789
29858
|
}
|
|
29790
29859
|
}, _callee);
|
|
29791
29860
|
})),
|
|
@@ -30119,6 +30188,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30119
30188
|
}
|
|
30120
30189
|
}, "\u65B0\u589E\u8FD4\u56DE\u503C")), isHaveRuleReturnConfig && _this.renderResItem(itemDetail, parentDetail, ruleReturnConfig, disabled, RuleActionItemStyle) || null, isHaveRuleTypeData && _this.renderActionList(itemDetail, parentDetail, handleRuleTypeData, selectRuleActionData, classDataIndex, disabled, RuleActionItemStyle) || null);
|
|
30121
30190
|
};
|
|
30191
|
+
//添加同一层级条件
|
|
30122
30192
|
_this.addPeerRule = function (itemDetail) {
|
|
30123
30193
|
var ruleClassData = _this.state.ruleClassData;
|
|
30124
30194
|
var _this$props4 = _this.props,
|
|
@@ -30139,6 +30209,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30139
30209
|
callBack(ruleClassData);
|
|
30140
30210
|
});
|
|
30141
30211
|
};
|
|
30212
|
+
//添加子层级条件
|
|
30142
30213
|
_this.addChildRules = function (itemDetail) {
|
|
30143
30214
|
var ruleClassData = _this.state.ruleClassData;
|
|
30144
30215
|
var callBack = _this.props.callBack;
|
|
@@ -30214,6 +30285,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30214
30285
|
callBack(ruleClassData);
|
|
30215
30286
|
});
|
|
30216
30287
|
};
|
|
30288
|
+
// 新增执行顺序
|
|
30217
30289
|
_this.handleSelectRuleAction = function (keys, classDataIndex, callback) {
|
|
30218
30290
|
callback();
|
|
30219
30291
|
var callBack = _this.props.callBack;
|
|
@@ -30364,4 +30436,4 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30364
30436
|
return RuleObjectComponent;
|
|
30365
30437
|
}(Component);
|
|
30366
30438
|
|
|
30367
|
-
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, BillEntry, BsCascader, index$
|
|
30439
|
+
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 };
|