@bit-sun/business-component 2.3.21 → 2.3.23
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/AddSelect/helps.d.ts +13 -0
- package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
- package/dist/index.esm.js +1338 -1258
- package/dist/index.js +1344 -1264
- package/dist/utils/utils.d.ts +1 -1
- package/docs/index.md +21 -21
- package/lib/assets/drag.svg +17 -17
- package/lib/assets/exportFail.svg +37 -37
- package/lib/assets/exportProcessing.svg +28 -28
- package/lib/assets/exportSuccess.svg +34 -34
- package/lib/assets/label_icon_bottom.svg +25 -25
- package/lib/assets/upExport.svg +22 -22
- package/package.json +78 -78
- package/src/assets/32.svg +27 -27
- package/src/assets/addIcon.svg +17 -17
- package/src/assets/allfunc.svg +27 -27
- package/src/assets/arrowRight.svg +24 -24
- package/src/assets/btn-delete.svg +29 -29
- package/src/assets/btn-edit.svg +19 -19
- package/src/assets/btn-more.svg +17 -17
- package/src/assets/btn-submit.svg +19 -19
- package/src/assets/caidan.svg +11 -11
- package/src/assets/close.svg +26 -26
- package/src/assets/drag.svg +17 -17
- package/src/assets/exportFail.svg +37 -37
- package/src/assets/exportProcessing.svg +28 -28
- package/src/assets/exportSuccess.svg +34 -34
- package/src/assets/fixed-left-active.svg +11 -11
- package/src/assets/fixed-left.svg +15 -15
- package/src/assets/fixed-right-active.svg +11 -11
- package/src/assets/fixed-right.svg +15 -15
- package/src/assets/guanbi.svg +15 -15
- package/src/assets/icon-quanping.svg +15 -15
- package/src/assets/icon-shezhi.svg +17 -17
- package/src/assets/label_icon_bottom.svg +25 -25
- package/src/assets/list-no-img.svg +21 -21
- package/src/assets/morentouxiang-32.svg +23 -23
- package/src/assets/scanning.svg +24 -24
- package/src/assets/upExport.svg +22 -22
- package/src/common/ENUM.ts +41 -41
- package/src/components/Business/AddSelectBusiness/index.md +162 -162
- package/src/components/Business/AddSelectBusiness/index.tsx +1060 -895
- package/src/components/Business/BsLayouts/Components/AllFunc/drawContent.tsx +111 -111
- package/src/components/Business/BsLayouts/Components/AllFunc/index.less +153 -153
- package/src/components/Business/BsLayouts/Components/AllFunc/index.tsx +70 -70
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.less +90 -90
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.tsx +37 -37
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.tsx +242 -242
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.tsx +384 -384
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.tsx +285 -285
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.tsx +74 -74
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/drawContent.less +170 -170
- package/src/components/Business/BsLayouts/Components/CustomerMenu/index.less +64 -64
- package/src/components/Business/BsLayouts/Components/CustomerMenu/index.tsx +153 -153
- package/src/components/Business/BsLayouts/Components/GlobalHeader/index.less +72 -72
- package/src/components/Business/BsLayouts/Components/GlobalHeader/index.tsx +157 -157
- package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +85 -85
- package/src/components/Business/BsLayouts/Components/RightContent/home.less +218 -218
- package/src/components/Business/BsLayouts/Components/RightContent/index.tsx +155 -155
- package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +160 -160
- package/src/components/Business/BsLayouts/Components/SearchFunc/index.tsx +75 -75
- package/src/components/Business/BsLayouts/index.less +79 -79
- package/src/components/Business/BsLayouts/index.tsx +1484 -1484
- package/src/components/Business/BsLayouts/service.ts +10 -10
- package/src/components/Business/BsLayouts/utils.tsx +203 -203
- package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +564 -564
- package/src/components/Business/BsSulaQueryTable/index.less +221 -221
- package/src/components/Business/BsSulaQueryTable/index.tsx +535 -535
- package/src/components/Business/BsSulaQueryTable/setting.tsx +852 -852
- package/src/components/Business/BsSulaQueryTable/utils.less +65 -65
- package/src/components/Business/BsSulaQueryTable/utils.tsx +690 -690
- package/src/components/Business/CommodityEntry/index.md +70 -70
- package/src/components/Business/CommodityEntry/index.tsx +80 -80
- package/src/components/Business/CommonAlert/index.tsx +23 -23
- package/src/components/Business/CommonGuideWrapper/index.less +111 -111
- package/src/components/Business/CommonGuideWrapper/index.md +39 -39
- package/src/components/Business/CommonGuideWrapper/index.tsx +83 -83
- package/src/components/Business/DetailPageWrapper/index.less +79 -79
- package/src/components/Business/DetailPageWrapper/index.tsx +313 -313
- package/src/components/Business/DetailPageWrapper/utils.tsx +100 -100
- package/src/components/Business/HomePageWrapper/index.less +33 -33
- package/src/components/Business/HomePageWrapper/index.md +45 -45
- package/src/components/Business/HomePageWrapper/index.tsx +162 -162
- package/src/components/Business/JsonQueryTable/components/FieldsModifyModal.tsx +824 -824
- package/src/components/Business/JsonQueryTable/components/FieldsSettingsTable.tsx +205 -205
- package/src/components/Business/JsonQueryTable/components/Formula.tsx +205 -205
- package/src/components/Business/JsonQueryTable/components/MaintainOptions.tsx +127 -127
- package/src/components/Business/JsonQueryTable/configButton/index.js +20 -20
- package/src/components/Business/JsonQueryTable/configTree/component/compactArrayView.js +25 -25
- package/src/components/Business/JsonQueryTable/configTree/component/compactObjectView.js +30 -30
- package/src/components/Business/JsonQueryTable/configTree/index.js +82 -82
- package/src/components/Business/JsonQueryTable/configTree/index.less +44 -44
- package/src/components/Business/JsonQueryTable/configTree/parser/highlight.js +57 -57
- package/src/components/Business/JsonQueryTable/configTree/parser/index.js +124 -124
- package/src/components/Business/JsonQueryTable/configTree/render/iconRender.js +29 -29
- package/src/components/Business/JsonQueryTable/configTree/render/nameRender.js +22 -22
- package/src/components/Business/JsonQueryTable/configTree/treeNode.js +116 -116
- package/src/components/Business/JsonQueryTable/drawer/index.tsx +12 -12
- package/src/components/Business/JsonQueryTable/function.ts +62 -62
- package/src/components/Business/JsonQueryTable/index.less +16 -16
- package/src/components/Business/JsonQueryTable/index.md +328 -328
- package/src/components/Business/JsonQueryTable/index.tsx +535 -535
- package/src/components/Business/JsonQueryTable/jsonEditor/index.js +346 -346
- package/src/components/Business/JsonQueryTable/jsonEditor/index.less +22 -22
- package/src/components/Business/JsonQueryTable/jsonEditor/lint/basicType.js +147 -147
- package/src/components/Business/JsonQueryTable/jsonEditor/lint/index.js +389 -389
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/actions.js +118 -118
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/dependency.js +22 -22
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/index.js +21 -21
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/request.js +65 -65
- package/src/components/Business/JsonQueryTable/static.ts +390 -390
- package/src/components/Business/SearchSelect/BusinessUtils.ts +1762 -1762
- package/src/components/Business/SearchSelect/common.ts +75 -75
- package/src/components/Business/SearchSelect/index.md +1329 -1329
- package/src/components/Business/SearchSelect/index.tsx +55 -55
- package/src/components/Business/SearchSelect/utils.ts +100 -100
- package/src/components/Business/StateFlow/index.less +130 -130
- package/src/components/Business/StateFlow/index.md +60 -60
- package/src/components/Business/StateFlow/index.tsx +29 -29
- package/src/components/Business/TreeSearchSelect/index.md +156 -156
- 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 +71 -71
- package/src/components/Business/moreTreeTable/FixedScrollBar.tsx +87 -87
- package/src/components/Business/moreTreeTable/hooks/useSticky.ts +21 -21
- package/src/components/Business/moreTreeTable/index.less +99 -99
- package/src/components/Business/moreTreeTable/index.md +448 -448
- package/src/components/Business/moreTreeTable/index.tsx +387 -387
- package/src/components/Business/moreTreeTable/utils.ts +126 -126
- package/src/components/Functional/AddSelect/helps.ts +79 -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 +1170 -1282
- package/src/components/Functional/BillEntry/index.less +371 -371
- package/src/components/Functional/BillEntry/index.md +39 -39
- package/src/components/Functional/BillEntry/index.tsx +772 -772
- package/src/components/Functional/BsAntdSula/BsCascader/index.md +62 -62
- package/src/components/Functional/BsAntdSula/BsCascader/index.tsx +178 -178
- package/src/components/Functional/BsAntdSula/index.ts +2 -2
- package/src/components/Functional/DataImport/index.less +63 -63
- package/src/components/Functional/DataImport/index.md +44 -44
- package/src/components/Functional/DataImport/index.tsx +695 -695
- package/src/components/Functional/DataValidation/index.less +63 -63
- package/src/components/Functional/DataValidation/index.md +39 -39
- package/src/components/Functional/DataValidation/index.tsx +687 -687
- package/src/components/Functional/EllipsisTooltip/index.d.ts +5 -5
- package/src/components/Functional/EllipsisTooltip/index.js +36 -36
- package/src/components/Functional/EllipsisTooltip/index.md +30 -30
- package/src/components/Functional/ExportFunctions/ExportIcon/index.md +37 -37
- package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +59 -59
- package/src/components/Functional/QueryMutipleInput/index.less +37 -37
- package/src/components/Functional/QueryMutipleInput/index.md +33 -33
- package/src/components/Functional/QueryMutipleInput/index.tsx +128 -128
- package/src/components/Functional/SearchSelect/index.less +115 -115
- package/src/components/Functional/SearchSelect/index.md +141 -141
- package/src/components/Functional/SearchSelect/index.tsx +879 -879
- package/src/components/Functional/SearchSelect/utils.ts +3 -3
- package/src/components/Functional/TreeSearchSelect/index.md +47 -47
- package/src/components/Functional/TreeSearchSelect/index.tsx +199 -199
- package/src/components/Solution/RuleComponent/Formula.tsx +335 -335
- package/src/components/Solution/RuleComponent/index.d.ts +29 -29
- package/src/components/Solution/RuleComponent/index.js +2032 -2032
- package/src/components/Solution/RuleComponent/index.less +230 -230
- package/src/components/Solution/RuleComponent/renderSpecificAction.js +99 -99
- package/src/components/Solution/RuleComponent/ruleFiled.js +2107 -2107
- package/src/components/Solution/RuleComponent/services.ts +13 -13
- package/src/components/Solution/RuleComponent/util.js +139 -139
- package/src/index.ts +38 -38
- package/src/plugin/TableColumnSetting/index.less +247 -247
- package/src/plugin/TableColumnSetting/index.md +50 -50
- package/src/plugin/TableColumnSetting/index.tsx +724 -724
- package/src/plugin/TableColumnSetting/utils.ts +19 -19
- package/src/styles/bsDefault.less +1912 -1912
- package/src/utils/CheckOneUser/index.md +39 -39
- package/src/utils/CheckOneUser/index.ts +51 -51
- package/src/utils/LocalstorageUtils.ts +95 -95
- package/src/utils/TableUtils.tsx +18 -18
- package/src/utils/checkUtils.ts +39 -39
- package/src/utils/enumConfig.ts +11 -11
- package/src/utils/getFormMode.js +12 -12
- package/src/utils/index.ts +4 -4
- package/src/utils/requestUtils.ts +34 -34
- package/src/utils/serialize.js +7 -7
- package/src/utils/utils.ts +212 -212
- package/tsconfig.json +29 -29
- package/typings.d.ts +4 -4
package/dist/index.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ import axios from 'axios';
|
|
|
2
2
|
import { message as message$1, Image, Popover, Card, Avatar, Tooltip, Menu, Space, Dropdown, Button, Checkbox, Input, Modal, Select, Form, Divider, Spin, Table, TreeSelect, Tag, InputNumber, Typography, Alert, Anchor, Breadcrumb, Drawer as Drawer$1, List, Tree, Row, Col, Tabs, Affix, Cascader, DatePicker, TimePicker, Switch } from 'antd';
|
|
3
3
|
import _, { omit, debounce, cloneDeep as cloneDeep$1, throttle, isEmpty } from 'lodash';
|
|
4
4
|
import { history, formatMessage, useLocation, Link, useModel, useIntl } from 'umi';
|
|
5
|
-
import isEqual
|
|
5
|
+
import isEqual from 'lodash/isEqual';
|
|
6
6
|
import React, { useState, useEffect, forwardRef, useImperativeHandle, useRef, useMemo, Component, useLayoutEffect, createRef } from 'react';
|
|
7
7
|
import moment$1 from 'moment';
|
|
8
8
|
import { UnorderedListOutlined, ProfileTwoTone, ExclamationCircleOutlined, DownOutlined, CopyOutlined, SearchOutlined, CaretLeftOutlined, CloseCircleOutlined, ArrowLeftOutlined, FolderOutlined, EllipsisOutlined, CaretDownOutlined, HomeOutlined, DoubleLeftOutlined, DoubleRightOutlined, MenuUnfoldOutlined, DashOutlined, SettingOutlined, BulbOutlined, PlayCircleOutlined, SaveOutlined, FullscreenExitOutlined, EditOutlined, MinusCircleOutlined, PlusCircleOutlined } from '@ant-design/icons';
|
|
@@ -762,52 +762,41 @@ var precisionQuantity = function precisionQuantity(num, accuracy) {
|
|
|
762
762
|
return '';
|
|
763
763
|
};
|
|
764
764
|
|
|
765
|
-
var
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
function
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
765
|
+
var simpleIsEqual = function simpleIsEqual(a, b) {
|
|
766
|
+
return a === b;
|
|
767
|
+
};
|
|
768
|
+
|
|
769
|
+
function index$1 (resultFn, isEqual) {
|
|
770
|
+
if (isEqual === void 0) {
|
|
771
|
+
isEqual = simpleIsEqual;
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
var lastThis;
|
|
775
|
+
var lastArgs = [];
|
|
776
|
+
var lastResult;
|
|
777
|
+
var calledOnce = false;
|
|
778
|
+
|
|
779
|
+
var isNewArgEqualToLast = function isNewArgEqualToLast(newArg, index) {
|
|
780
|
+
return isEqual(newArg, lastArgs[index], index);
|
|
781
|
+
};
|
|
782
|
+
|
|
783
|
+
var result = function result() {
|
|
784
|
+
for (var _len = arguments.length, newArgs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
785
|
+
newArgs[_key] = arguments[_key];
|
|
781
786
|
}
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
}
|
|
787
|
+
|
|
788
|
+
if (calledOnce && lastThis === this && newArgs.length === lastArgs.length && newArgs.every(isNewArgEqualToLast)) {
|
|
789
|
+
return lastResult;
|
|
786
790
|
}
|
|
787
|
-
return true;
|
|
788
|
-
}
|
|
789
791
|
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
799
|
-
newArgs[_i] = arguments[_i];
|
|
800
|
-
}
|
|
801
|
-
if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {
|
|
802
|
-
return lastResult;
|
|
803
|
-
}
|
|
804
|
-
lastResult = resultFn.apply(this, newArgs);
|
|
805
|
-
calledOnce = true;
|
|
806
|
-
lastThis = this;
|
|
807
|
-
lastArgs = newArgs;
|
|
808
|
-
return lastResult;
|
|
809
|
-
}
|
|
810
|
-
return memoized;
|
|
792
|
+
lastResult = resultFn.apply(this, newArgs);
|
|
793
|
+
calledOnce = true;
|
|
794
|
+
lastThis = this;
|
|
795
|
+
lastArgs = newArgs;
|
|
796
|
+
return lastResult;
|
|
797
|
+
};
|
|
798
|
+
|
|
799
|
+
return result;
|
|
811
800
|
}
|
|
812
801
|
|
|
813
802
|
function styleInject(css, ref) {
|
|
@@ -1024,58 +1013,59 @@ var getItemDefaultWidth = function getItemDefaultWidth(item) {
|
|
|
1024
1013
|
* @returns 返回处理后的查询参数
|
|
1025
1014
|
*/
|
|
1026
1015
|
function queryParams(params, flag) {
|
|
1027
|
-
|
|
1016
|
+
var _loop = function _loop() {
|
|
1028
1017
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
params[value] = moment$1(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
1053
|
-
} else {
|
|
1054
|
-
params[value] = moment$1(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
1055
|
-
}
|
|
1056
|
-
});
|
|
1057
|
-
delete params[key];
|
|
1058
|
-
} else if (element && key.indexOf('*') >= 0) {
|
|
1059
|
-
var _dataParams4 = key.split('*');
|
|
1060
|
-
_dataParams4.forEach(function (value, index) {
|
|
1061
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
1062
|
-
});
|
|
1063
|
-
delete params[key];
|
|
1064
|
-
} else if (element && key.indexOf('_likeIn_') >= 0) {
|
|
1065
|
-
var _dataParams5 = key.split('_likeIn_');
|
|
1066
|
-
if (element.indexOf(',') >= 0) {
|
|
1067
|
-
params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
|
|
1068
|
-
params["qp-".concat(_dataParams5[0], "-like")] = null;
|
|
1018
|
+
var element = params[key];
|
|
1019
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
1020
|
+
var dataParams = key.split('*number*');
|
|
1021
|
+
dataParams.forEach(function (value, index) {
|
|
1022
|
+
params[value] = element[index];
|
|
1023
|
+
});
|
|
1024
|
+
delete params[key];
|
|
1025
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
1026
|
+
var _dataParams = key.split('*address*');
|
|
1027
|
+
_dataParams.forEach(function (value, index) {
|
|
1028
|
+
params[value] = element.PCDCode[index];
|
|
1029
|
+
});
|
|
1030
|
+
delete params[key];
|
|
1031
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
1032
|
+
var _dataParams2 = key.split('*costType*');
|
|
1033
|
+
// eslint-disable-next-line prefer-destructuring
|
|
1034
|
+
params[_dataParams2[0]] = element[1];
|
|
1035
|
+
delete params[key];
|
|
1036
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
1037
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
1038
|
+
_dataParams3.forEach(function (value, index) {
|
|
1039
|
+
if (index === 0) {
|
|
1040
|
+
params[value] = moment$1(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
1069
1041
|
} else {
|
|
1070
|
-
params[
|
|
1071
|
-
params["qp-".concat(_dataParams5[0], "-in")] = null;
|
|
1042
|
+
params[value] = moment$1(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
1072
1043
|
}
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1044
|
+
});
|
|
1045
|
+
delete params[key];
|
|
1046
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
1047
|
+
var _dataParams4 = key.split('*');
|
|
1048
|
+
_dataParams4.forEach(function (value, index) {
|
|
1049
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
1050
|
+
});
|
|
1051
|
+
delete params[key];
|
|
1052
|
+
} else if (element && key.indexOf('_likeIn_') >= 0) {
|
|
1053
|
+
var _dataParams5 = key.split('_likeIn_');
|
|
1054
|
+
if (element.indexOf(',') >= 0) {
|
|
1055
|
+
params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
|
|
1056
|
+
params["qp-".concat(_dataParams5[0], "-like")] = null;
|
|
1057
|
+
} else {
|
|
1058
|
+
params["qp-".concat(_dataParams5[0], "-like")] = element;
|
|
1059
|
+
params["qp-".concat(_dataParams5[0], "-in")] = null;
|
|
1076
1060
|
}
|
|
1077
|
-
|
|
1061
|
+
delete params[key];
|
|
1062
|
+
} else if (Array.isArray(element)) {
|
|
1063
|
+
params[key] = element.join(',');
|
|
1064
|
+
}
|
|
1078
1065
|
}
|
|
1066
|
+
};
|
|
1067
|
+
for (var key in params) {
|
|
1068
|
+
_loop();
|
|
1079
1069
|
}
|
|
1080
1070
|
return flag ? params : qs.stringify(params);
|
|
1081
1071
|
}
|
|
@@ -1121,7 +1111,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1121
1111
|
return item;
|
|
1122
1112
|
});
|
|
1123
1113
|
};
|
|
1124
|
-
var memoizeOneFormatter =
|
|
1114
|
+
var memoizeOneFormatter = index$1(formatter, isEqual);
|
|
1125
1115
|
var go2BackAndClose = function go2BackAndClose() {
|
|
1126
1116
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1127
1117
|
history.goBack();
|
|
@@ -2804,84 +2794,85 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
2804
2794
|
});
|
|
2805
2795
|
}
|
|
2806
2796
|
// 数组对象处理,对带有特殊标记的name进行处理
|
|
2807
|
-
|
|
2797
|
+
var _loop = function _loop() {
|
|
2808
2798
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
2835
|
-
}
|
|
2836
|
-
});
|
|
2837
|
-
delete params[key];
|
|
2838
|
-
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
2839
|
-
var _dataParams4 = key.split('*checkBox*');
|
|
2840
|
-
if (element) {
|
|
2841
|
-
params[_dataParams4[0]] = 0;
|
|
2799
|
+
var element = params[key];
|
|
2800
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
2801
|
+
var dataParams = key.split('*number*');
|
|
2802
|
+
dataParams.forEach(function (value, index) {
|
|
2803
|
+
params[value] = element[index];
|
|
2804
|
+
});
|
|
2805
|
+
delete params[key];
|
|
2806
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
2807
|
+
var _dataParams = key.split('*address*');
|
|
2808
|
+
_dataParams.forEach(function (value, index) {
|
|
2809
|
+
params[value] = element.PCDCode[index];
|
|
2810
|
+
});
|
|
2811
|
+
delete params[key];
|
|
2812
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
2813
|
+
var _dataParams2 = key.split('*costType*');
|
|
2814
|
+
// eslint-disable-next-line prefer-destructuring
|
|
2815
|
+
params[_dataParams2[0]] = element[1];
|
|
2816
|
+
delete params[key];
|
|
2817
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
2818
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
2819
|
+
_dataParams3.forEach(function (value, index) {
|
|
2820
|
+
if (index === 0) {
|
|
2821
|
+
params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
2822
|
+
} else {
|
|
2823
|
+
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
2842
2824
|
}
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
_dataParams7.forEach(function (value, index) {
|
|
2861
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
2862
|
-
});
|
|
2863
|
-
delete params[key];
|
|
2864
|
-
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
2865
|
-
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
2866
|
-
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
2867
|
-
if (params[key][0] === 'range') {
|
|
2868
|
-
if (params[key][1][0]) {
|
|
2869
|
-
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
2870
|
-
}
|
|
2871
|
-
if (params[key][1][1]) {
|
|
2872
|
-
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
2873
|
-
}
|
|
2825
|
+
});
|
|
2826
|
+
delete params[key];
|
|
2827
|
+
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
2828
|
+
var _dataParams4 = key.split('*checkBox*');
|
|
2829
|
+
if (element) {
|
|
2830
|
+
params[_dataParams4[0]] = 0;
|
|
2831
|
+
}
|
|
2832
|
+
delete params[key];
|
|
2833
|
+
} else if (element && key.indexOf('*cascader*') >= 0) {
|
|
2834
|
+
var _dataParams5 = key.split('*cascader*');
|
|
2835
|
+
params[_dataParams5[0]] = element[element.length - 1];
|
|
2836
|
+
delete params[key];
|
|
2837
|
+
} else if (element && key.indexOf('*date*') >= 0) {
|
|
2838
|
+
var _dataParams6 = key.split('*date*');
|
|
2839
|
+
_dataParams6.forEach(function (value, index) {
|
|
2840
|
+
if (index === 0) {
|
|
2841
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
2874
2842
|
} else {
|
|
2875
|
-
params[
|
|
2843
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
2844
|
+
}
|
|
2845
|
+
});
|
|
2846
|
+
delete params[key];
|
|
2847
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
2848
|
+
var _dataParams7 = key.split('*');
|
|
2849
|
+
_dataParams7.forEach(function (value, index) {
|
|
2850
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
2851
|
+
});
|
|
2852
|
+
delete params[key];
|
|
2853
|
+
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
2854
|
+
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
2855
|
+
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
2856
|
+
if (params[key][0] === 'range') {
|
|
2857
|
+
if (params[key][1][0]) {
|
|
2858
|
+
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
2876
2859
|
}
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
} else
|
|
2881
|
-
|
|
2860
|
+
if (params[key][1][1]) {
|
|
2861
|
+
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
2862
|
+
}
|
|
2863
|
+
} else {
|
|
2864
|
+
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
2882
2865
|
}
|
|
2883
|
-
|
|
2866
|
+
delete params[key];
|
|
2867
|
+
} else if (Array.isArray(element)) {
|
|
2868
|
+
params[key] = element.join(',');
|
|
2869
|
+
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
2870
|
+
delete params[key];
|
|
2871
|
+
}
|
|
2884
2872
|
}
|
|
2873
|
+
};
|
|
2874
|
+
for (var key in params) {
|
|
2875
|
+
_loop();
|
|
2885
2876
|
}
|
|
2886
2877
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
2887
2878
|
pageSize: pageSize,
|
|
@@ -4280,8 +4271,6 @@ var getSelectDataList = function getSelectDataList(record, item, selectKey) {
|
|
|
4280
4271
|
}
|
|
4281
4272
|
return result;
|
|
4282
4273
|
};
|
|
4283
|
-
|
|
4284
|
-
var _excluded$3 = ["onResize", "width"];
|
|
4285
4274
|
var loadSelectSource = function loadSelectSource(url, params) {
|
|
4286
4275
|
return new Promise(function (resolve, reject) {
|
|
4287
4276
|
axios.get("".concat(url, "?").concat(stringify(params))).then(function (result) {
|
|
@@ -4289,6 +4278,7 @@ var loadSelectSource = function loadSelectSource(url, params) {
|
|
|
4289
4278
|
result = result.data;
|
|
4290
4279
|
if (((_result = result) === null || _result === void 0 ? void 0 : _result.status) && result.status !== '0' || ((_result2 = result) === null || _result2 === void 0 ? void 0 : _result2.code) && result.code !== '000000') {
|
|
4291
4280
|
message$1.error(result.msg);
|
|
4281
|
+
resolve(result);
|
|
4292
4282
|
return;
|
|
4293
4283
|
}
|
|
4294
4284
|
resolve(result);
|
|
@@ -4297,38 +4287,6 @@ var loadSelectSource = function loadSelectSource(url, params) {
|
|
|
4297
4287
|
});
|
|
4298
4288
|
});
|
|
4299
4289
|
};
|
|
4300
|
-
var checkSpuMatchCode = function checkSpuMatchCode(data) {
|
|
4301
|
-
return new Promise(function (resolve, reject) {
|
|
4302
|
-
axios.post("/stock/rwFrontRecordSkcDetail/checkSpuMatchCode", data).then(function (result) {
|
|
4303
|
-
var _result3, _result4;
|
|
4304
|
-
result = result.data;
|
|
4305
|
-
if (((_result3 = result) === null || _result3 === void 0 ? void 0 : _result3.status) && result.status !== '0' || ((_result4 = result) === null || _result4 === void 0 ? void 0 : _result4.code) && result.code !== '000000') {
|
|
4306
|
-
message$1.error(result.msg);
|
|
4307
|
-
reject(false);
|
|
4308
|
-
return;
|
|
4309
|
-
}
|
|
4310
|
-
resolve(result);
|
|
4311
|
-
}).catch(function (err) {
|
|
4312
|
-
reject(err);
|
|
4313
|
-
});
|
|
4314
|
-
});
|
|
4315
|
-
};
|
|
4316
|
-
var ResizeableTitle = function ResizeableTitle(props) {
|
|
4317
|
-
var onResize = props.onResize,
|
|
4318
|
-
width = props.width,
|
|
4319
|
-
restProps = _objectWithoutProperties(props, _excluded$3);
|
|
4320
|
-
if (!width) {
|
|
4321
|
-
return /*#__PURE__*/React.createElement("th", _objectSpread2({}, restProps));
|
|
4322
|
-
}
|
|
4323
|
-
return /*#__PURE__*/React.createElement(Resizable, {
|
|
4324
|
-
width: width,
|
|
4325
|
-
height: 0,
|
|
4326
|
-
onResize: onResize,
|
|
4327
|
-
draggableOpts: {
|
|
4328
|
-
enableUserSelectHack: false
|
|
4329
|
-
}
|
|
4330
|
-
}, /*#__PURE__*/React.createElement("th", _objectSpread2({}, restProps)));
|
|
4331
|
-
};
|
|
4332
4290
|
var formatSource = function formatSource(reData, position, changePosition, changeSearchForm) {
|
|
4333
4291
|
var _reData$position;
|
|
4334
4292
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['code', 'name'];
|
|
@@ -4368,6 +4326,52 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
4368
4326
|
}) || [];
|
|
4369
4327
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
4370
4328
|
};
|
|
4329
|
+
var formatFormSourceList = function formatFormSourceList(x, loadList, tableSearchForm) {
|
|
4330
|
+
loadList.forEach(function (i, index) {
|
|
4331
|
+
if (i.resType == 'list') {
|
|
4332
|
+
var resKeyValue = i.resKeyValue || ['code', 'name'];
|
|
4333
|
+
formatSource(x, index, i.resPosition, tableSearchForm, resKeyValue);
|
|
4334
|
+
}
|
|
4335
|
+
if (i.resType == 'treeList') {
|
|
4336
|
+
var _resKeyValue = i.resKeyValue || ['id', 'name'];
|
|
4337
|
+
formatTreeDataSource(x, index, i.resPosition, tableSearchForm, _resKeyValue);
|
|
4338
|
+
}
|
|
4339
|
+
});
|
|
4340
|
+
};
|
|
4341
|
+
|
|
4342
|
+
var _excluded$3 = ["onResize", "width"];
|
|
4343
|
+
var checkSpuMatchCode = function checkSpuMatchCode(data) {
|
|
4344
|
+
return new Promise(function (resolve, reject) {
|
|
4345
|
+
axios.post("/stock/rwFrontRecordSkcDetail/checkSpuMatchCode", data).then(function (result) {
|
|
4346
|
+
var _result, _result2;
|
|
4347
|
+
result = result.data;
|
|
4348
|
+
if (((_result = result) === null || _result === void 0 ? void 0 : _result.status) && result.status !== '0' || ((_result2 = result) === null || _result2 === void 0 ? void 0 : _result2.code) && result.code !== '000000') {
|
|
4349
|
+
message$1.error(result.msg);
|
|
4350
|
+
reject(false);
|
|
4351
|
+
return;
|
|
4352
|
+
}
|
|
4353
|
+
resolve(result);
|
|
4354
|
+
}).catch(function (err) {
|
|
4355
|
+
reject(err);
|
|
4356
|
+
});
|
|
4357
|
+
});
|
|
4358
|
+
};
|
|
4359
|
+
var ResizeableTitle = function ResizeableTitle(props) {
|
|
4360
|
+
var onResize = props.onResize,
|
|
4361
|
+
width = props.width,
|
|
4362
|
+
restProps = _objectWithoutProperties(props, _excluded$3);
|
|
4363
|
+
if (!width) {
|
|
4364
|
+
return /*#__PURE__*/React.createElement("th", _objectSpread2({}, restProps));
|
|
4365
|
+
}
|
|
4366
|
+
return /*#__PURE__*/React.createElement(Resizable, {
|
|
4367
|
+
width: width,
|
|
4368
|
+
height: 0,
|
|
4369
|
+
onResize: onResize,
|
|
4370
|
+
draggableOpts: {
|
|
4371
|
+
enableUserSelectHack: false
|
|
4372
|
+
}
|
|
4373
|
+
}, /*#__PURE__*/React.createElement("th", _objectSpread2({}, restProps)));
|
|
4374
|
+
};
|
|
4371
4375
|
var initTableCode = {
|
|
4372
4376
|
'sku': ['skuSelect-tableOptionsToChoosePartCode', 'skuSelect-tableSelectedItemPartCode'],
|
|
4373
4377
|
'skc': ['skcSelect-tableOptionsToChoosePartCode', 'skcSelect-tableSelectedItemPartCode'],
|
|
@@ -4400,9 +4404,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
4400
4404
|
_props$businessType = props.businessType,
|
|
4401
4405
|
businessType = _props$businessType === void 0 ? 'sku' : _props$businessType,
|
|
4402
4406
|
_props$isAllowRepeate = props.isAllowRepeatedSelect,
|
|
4403
|
-
isAllowRepeatedSelect = _props$isAllowRepeate === void 0 ? false : _props$isAllowRepeate
|
|
4404
|
-
_props$noUseItemEanco = props.noUseItemEancode,
|
|
4405
|
-
noUseItemEancode = _props$noUseItemEanco === void 0 ? true : _props$noUseItemEanco;
|
|
4407
|
+
isAllowRepeatedSelect = _props$isAllowRepeate === void 0 ? false : _props$isAllowRepeate;
|
|
4406
4408
|
var _ref = requestConfig || {},
|
|
4407
4409
|
url = _ref.url,
|
|
4408
4410
|
otherParams = _ref.otherParams,
|
|
@@ -4559,76 +4561,74 @@ var AddSelect = function AddSelect(props) {
|
|
|
4559
4561
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
4560
4562
|
var result;
|
|
4561
4563
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
4562
|
-
while (1) {
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
_context.next = 3;
|
|
4569
|
-
break;
|
|
4570
|
-
}
|
|
4571
|
-
message$1.warning('相同skc配码不可设置相同哦');
|
|
4572
|
-
return _context.abrupt("return", false);
|
|
4573
|
-
case 3:
|
|
4574
|
-
if (!(bType == 'spu')) {
|
|
4575
|
-
_context.next = 26;
|
|
4576
|
-
break;
|
|
4577
|
-
}
|
|
4578
|
-
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
4579
|
-
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
4580
|
-
}))) {
|
|
4581
|
-
_context.next = 7;
|
|
4582
|
-
break;
|
|
4583
|
-
}
|
|
4584
|
-
message$1.warning('相同商品相同配码颜色不可设置相同哦');
|
|
4585
|
-
return _context.abrupt("return", false);
|
|
4586
|
-
case 7:
|
|
4587
|
-
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
4588
|
-
_context.next = 10;
|
|
4589
|
-
break;
|
|
4590
|
-
}
|
|
4591
|
-
message$1.warning('请先选择颜色!');
|
|
4592
|
-
return _context.abrupt("return", false);
|
|
4593
|
-
case 10:
|
|
4594
|
-
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
4595
|
-
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
4596
|
-
}))) {
|
|
4597
|
-
_context.next = 13;
|
|
4598
|
-
break;
|
|
4599
|
-
}
|
|
4600
|
-
message$1.warning('相同商品相同颜色配码不可设置相同哦');
|
|
4601
|
-
return _context.abrupt("return", false);
|
|
4602
|
-
case 13:
|
|
4603
|
-
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
4604
|
-
_context.next = 26;
|
|
4605
|
-
break;
|
|
4606
|
-
}
|
|
4607
|
-
result = true;
|
|
4608
|
-
_context.prev = 15;
|
|
4609
|
-
_context.next = 18;
|
|
4610
|
-
return checkSpuMatchCode({
|
|
4611
|
-
skcCode: recordItem[recordKey],
|
|
4612
|
-
matchingCode: changeValue,
|
|
4613
|
-
ext1: recordItem.colorName
|
|
4614
|
-
});
|
|
4615
|
-
case 18:
|
|
4616
|
-
result = _context.sent;
|
|
4617
|
-
result = true;
|
|
4618
|
-
_context.next = 25;
|
|
4564
|
+
while (1) switch (_context.prev = _context.next) {
|
|
4565
|
+
case 0:
|
|
4566
|
+
if (!(bType == 'skc' && tList.some(function (i) {
|
|
4567
|
+
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
4568
|
+
}))) {
|
|
4569
|
+
_context.next = 3;
|
|
4619
4570
|
break;
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4571
|
+
}
|
|
4572
|
+
message$1.warning('相同skc配码不可设置相同哦');
|
|
4573
|
+
return _context.abrupt("return", false);
|
|
4574
|
+
case 3:
|
|
4575
|
+
if (!(bType == 'spu')) {
|
|
4576
|
+
_context.next = 26;
|
|
4577
|
+
break;
|
|
4578
|
+
}
|
|
4579
|
+
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
4580
|
+
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
4581
|
+
}))) {
|
|
4582
|
+
_context.next = 7;
|
|
4583
|
+
break;
|
|
4584
|
+
}
|
|
4585
|
+
message$1.warning('相同商品相同配码颜色不可设置相同哦');
|
|
4586
|
+
return _context.abrupt("return", false);
|
|
4587
|
+
case 7:
|
|
4588
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
4589
|
+
_context.next = 10;
|
|
4590
|
+
break;
|
|
4591
|
+
}
|
|
4592
|
+
message$1.warning('请先选择颜色!');
|
|
4593
|
+
return _context.abrupt("return", false);
|
|
4594
|
+
case 10:
|
|
4595
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
4596
|
+
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
4597
|
+
}))) {
|
|
4598
|
+
_context.next = 13;
|
|
4599
|
+
break;
|
|
4600
|
+
}
|
|
4601
|
+
message$1.warning('相同商品相同颜色配码不可设置相同哦');
|
|
4602
|
+
return _context.abrupt("return", false);
|
|
4603
|
+
case 13:
|
|
4604
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
4605
|
+
_context.next = 26;
|
|
4606
|
+
break;
|
|
4607
|
+
}
|
|
4608
|
+
result = true;
|
|
4609
|
+
_context.prev = 15;
|
|
4610
|
+
_context.next = 18;
|
|
4611
|
+
return checkSpuMatchCode({
|
|
4612
|
+
skcCode: recordItem[recordKey],
|
|
4613
|
+
matchingCode: changeValue,
|
|
4614
|
+
ext1: recordItem.colorName
|
|
4615
|
+
});
|
|
4616
|
+
case 18:
|
|
4617
|
+
result = _context.sent;
|
|
4618
|
+
result = true;
|
|
4619
|
+
_context.next = 25;
|
|
4620
|
+
break;
|
|
4621
|
+
case 22:
|
|
4622
|
+
_context.prev = 22;
|
|
4623
|
+
_context.t0 = _context["catch"](15);
|
|
4624
|
+
result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
|
|
4625
|
+
case 25:
|
|
4626
|
+
return _context.abrupt("return", result);
|
|
4627
|
+
case 26:
|
|
4628
|
+
return _context.abrupt("return", true);
|
|
4629
|
+
case 27:
|
|
4630
|
+
case "end":
|
|
4631
|
+
return _context.stop();
|
|
4632
4632
|
}
|
|
4633
4633
|
}, _callee, null, [[15, 22]]);
|
|
4634
4634
|
}));
|
|
@@ -4820,29 +4820,27 @@ var AddSelect = function AddSelect(props) {
|
|
|
4820
4820
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
4821
4821
|
var isConformToTheRules, newPopValue;
|
|
4822
4822
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
4823
|
-
while (1) {
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4823
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
4824
|
+
case 0:
|
|
4825
|
+
_context2.next = 2;
|
|
4826
|
+
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
4827
|
+
case 2:
|
|
4828
|
+
isConformToTheRules = _context2.sent;
|
|
4829
|
+
if (isConformToTheRules) {
|
|
4830
|
+
record[item.dataIndex] = value;
|
|
4831
|
+
} else {
|
|
4832
|
+
record[item.dataIndex] = null;
|
|
4833
|
+
}
|
|
4834
|
+
newPopValue = popvalue.map(function (i, innerIndex) {
|
|
4835
|
+
if (innerIndex == index) {
|
|
4836
|
+
i[item.dataIndex] = record[item.dataIndex];
|
|
4834
4837
|
}
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
setPopValue(newPopValue);
|
|
4842
|
-
case 6:
|
|
4843
|
-
case "end":
|
|
4844
|
-
return _context2.stop();
|
|
4845
|
-
}
|
|
4838
|
+
return i;
|
|
4839
|
+
});
|
|
4840
|
+
setPopValue(newPopValue);
|
|
4841
|
+
case 6:
|
|
4842
|
+
case "end":
|
|
4843
|
+
return _context2.stop();
|
|
4846
4844
|
}
|
|
4847
4845
|
}, _callee2);
|
|
4848
4846
|
}));
|
|
@@ -4902,94 +4900,95 @@ var AddSelect = function AddSelect(props) {
|
|
|
4902
4900
|
});
|
|
4903
4901
|
}
|
|
4904
4902
|
// 数组对象处理,对带有特殊标记的name进行处理
|
|
4905
|
-
|
|
4903
|
+
var _loop = function _loop() {
|
|
4906
4904
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
if (params[key][0]
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
4974
|
-
}
|
|
4975
|
-
delete params[key];
|
|
4976
|
-
} else if (Array.isArray(element)) {
|
|
4977
|
-
params[key] = element.join(',');
|
|
4978
|
-
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
4979
|
-
delete params[key];
|
|
4905
|
+
var element = params[key];
|
|
4906
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
4907
|
+
var dataParams = key.split('*number*');
|
|
4908
|
+
dataParams.forEach(function (value, index) {
|
|
4909
|
+
params[value] = element[index];
|
|
4910
|
+
});
|
|
4911
|
+
delete params[key];
|
|
4912
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
4913
|
+
var _dataParams = key.split('*address*');
|
|
4914
|
+
_dataParams.forEach(function (value, index) {
|
|
4915
|
+
params[value] = element.PCDCode[index];
|
|
4916
|
+
});
|
|
4917
|
+
delete params[key];
|
|
4918
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
4919
|
+
var _dataParams2 = key.split('*costType*');
|
|
4920
|
+
// eslint-disable-next-line prefer-destructuring
|
|
4921
|
+
params[_dataParams2[0]] = element[1];
|
|
4922
|
+
delete params[key];
|
|
4923
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
4924
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
4925
|
+
_dataParams3.forEach(function (value, index) {
|
|
4926
|
+
if (index === 0) {
|
|
4927
|
+
params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
4928
|
+
} else {
|
|
4929
|
+
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
4930
|
+
}
|
|
4931
|
+
});
|
|
4932
|
+
delete params[key];
|
|
4933
|
+
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
4934
|
+
var _dataParams4 = key.split('*checkBox*');
|
|
4935
|
+
if (element) {
|
|
4936
|
+
params[_dataParams4[0]] = 0;
|
|
4937
|
+
}
|
|
4938
|
+
delete params[key];
|
|
4939
|
+
} else if (element && key.indexOf('*cascader*') >= 0) {
|
|
4940
|
+
var _dataParams5 = key.split('*cascader*');
|
|
4941
|
+
params[_dataParams5[0]] = element[element.length - 1];
|
|
4942
|
+
delete params[key];
|
|
4943
|
+
} else if (element && key.indexOf('*date*') >= 0) {
|
|
4944
|
+
var _dataParams6 = key.split('*date*');
|
|
4945
|
+
_dataParams6.forEach(function (value, index) {
|
|
4946
|
+
if (index === 0) {
|
|
4947
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
4948
|
+
} else {
|
|
4949
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
4950
|
+
}
|
|
4951
|
+
});
|
|
4952
|
+
delete params[key];
|
|
4953
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
4954
|
+
var _dataParams7 = key.split('*');
|
|
4955
|
+
_dataParams7.forEach(function (value, index) {
|
|
4956
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
4957
|
+
});
|
|
4958
|
+
delete params[key];
|
|
4959
|
+
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
4960
|
+
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
4961
|
+
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
4962
|
+
if (params[key][0] === 'range') {
|
|
4963
|
+
if (params[key][1][0]) {
|
|
4964
|
+
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
4965
|
+
}
|
|
4966
|
+
if (params[key][1][1]) {
|
|
4967
|
+
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
4968
|
+
}
|
|
4969
|
+
} else {
|
|
4970
|
+
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
4980
4971
|
}
|
|
4981
|
-
|
|
4972
|
+
delete params[key];
|
|
4973
|
+
} else if (Array.isArray(element)) {
|
|
4974
|
+
params[key] = element.join(',');
|
|
4975
|
+
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
4976
|
+
delete params[key];
|
|
4977
|
+
}
|
|
4982
4978
|
}
|
|
4979
|
+
};
|
|
4980
|
+
for (var key in params) {
|
|
4981
|
+
_loop();
|
|
4983
4982
|
}
|
|
4984
4983
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
4985
4984
|
pageSize: pageSize,
|
|
4986
4985
|
currentPage: currentPage
|
|
4987
4986
|
}, otherParams), fixedParam), params);
|
|
4988
4987
|
axios.get("".concat(url, "?").concat(stringify(queryParams))).then(function (result) {
|
|
4989
|
-
var
|
|
4988
|
+
var _result3, _result4;
|
|
4990
4989
|
setFetching(false);
|
|
4991
4990
|
result = result.data;
|
|
4992
|
-
if (((
|
|
4991
|
+
if (((_result3 = result) === null || _result3 === void 0 ? void 0 : _result3.status) && result.status !== '0' || ((_result4 = result) === null || _result4 === void 0 ? void 0 : _result4.code) && result.code !== '000000') {
|
|
4993
4992
|
message$1.error(result.msg);
|
|
4994
4993
|
return;
|
|
4995
4994
|
}
|
|
@@ -5070,65 +5069,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
5070
5069
|
};
|
|
5071
5070
|
|
|
5072
5071
|
useEffect(function () {
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
|
|
5076
|
-
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
})]).then(function (x) {
|
|
5082
|
-
var searchPosition1 = noUseItemEancode ? 3 : 2;
|
|
5083
|
-
var searchPosition2 = noUseItemEancode ? 4 : 3;
|
|
5084
|
-
formatSource(x, 0, searchPosition1, tableSearchForm, ['id', 'name']);
|
|
5085
|
-
formatTreeDataSource(x, 1, searchPosition2, tableSearchForm);
|
|
5086
|
-
});
|
|
5087
|
-
}
|
|
5088
|
-
if (businessType == 'skc') {
|
|
5089
|
-
Promise.all([loadSelectSource("/items/item/propertyValue/sizeBySkcConfig", {
|
|
5090
|
-
pageSize: 10000,
|
|
5091
|
-
currentPage: 1,
|
|
5092
|
-
type: 2 // 类型:1尺码;2颜色
|
|
5093
|
-
}), loadSelectSource("/items/category/queryCategoryTree", {
|
|
5094
|
-
pageSize: 5000,
|
|
5095
|
-
currentPage: 1
|
|
5096
|
-
}), loadSelectSource("/items/class/withProperty", {
|
|
5097
|
-
pageSize: 5000,
|
|
5098
|
-
currentPage: 1
|
|
5099
|
-
}), loadSelectSource("/items/brand/queryBrandList", {
|
|
5100
|
-
pageSize: 5000,
|
|
5101
|
-
currentPage: 1,
|
|
5102
|
-
'ctl-withAuth': true
|
|
5103
|
-
})]).then(function (x) {
|
|
5104
|
-
formatSource(x, 0, 3, tableSearchForm, ['value', 'value']);
|
|
5105
|
-
formatTreeDataSource(x, 1, 4, tableSearchForm);
|
|
5106
|
-
formatSource(x, 2, 5, tableSearchForm, ['id', 'name']);
|
|
5107
|
-
formatSource(x, 3, 6, tableSearchForm, ['id', 'name']);
|
|
5108
|
-
});
|
|
5109
|
-
}
|
|
5110
|
-
if (businessType == 'spu') {
|
|
5111
|
-
Promise.all([loadSelectSource("/user/orgViewNode/listNoPage", {
|
|
5112
|
-
'qp-employeeId-eq': getEmployeeId(),
|
|
5113
|
-
'qp-orgViewCode-eq': 'business-organizational-view',
|
|
5114
|
-
'ctl-withDefaultOrg': true
|
|
5115
|
-
}), loadSelectSource("/items/brand/queryBrandList", {
|
|
5116
|
-
pageSize: 5000,
|
|
5117
|
-
currentPage: 1,
|
|
5118
|
-
'ctl-withAuth': true
|
|
5119
|
-
}), loadSelectSource("/items/category/queryCategoryTree", {
|
|
5120
|
-
pageSize: 5000,
|
|
5121
|
-
currentPage: 1
|
|
5122
|
-
}), loadSelectSource("/items/class/withProperty", {
|
|
5123
|
-
pageSize: 5000,
|
|
5124
|
-
currentPage: 1
|
|
5125
|
-
})]).then(function (x) {
|
|
5126
|
-
formatSource(x, 0, 2, tableSearchForm, ['targetId', 'name']);
|
|
5127
|
-
formatSource(x, 1, 3, tableSearchForm, ['id', 'name']);
|
|
5128
|
-
formatTreeDataSource(x, 2, 4, tableSearchForm);
|
|
5129
|
-
formatSource(x, 3, 5, tableSearchForm, ['id', 'name']);
|
|
5130
|
-
});
|
|
5131
|
-
}
|
|
5072
|
+
var pList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.promiseLoadList) || [];
|
|
5073
|
+
if (!(pList === null || pList === void 0 ? void 0 : pList.length)) return;
|
|
5074
|
+
var list = pList.map(function (i) {
|
|
5075
|
+
return loadSelectSource(i.url, i.params);
|
|
5076
|
+
});
|
|
5077
|
+
Promise.all(list).then(function (x) {
|
|
5078
|
+
formatFormSourceList(x, pList, tableSearchForm);
|
|
5079
|
+
});
|
|
5132
5080
|
}, [businessType]);
|
|
5133
5081
|
useEffect(function () {
|
|
5134
5082
|
if (value) {
|
|
@@ -5409,10 +5357,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
5409
5357
|
setSelectedRowKeys([]);
|
|
5410
5358
|
} else {
|
|
5411
5359
|
setPopValue(popvalue.filter(function (item) {
|
|
5412
|
-
return item
|
|
5360
|
+
return item[selectRowKey] !== record[selectRowKey];
|
|
5413
5361
|
}));
|
|
5414
5362
|
setSelectedRowKeys(_toConsumableArray(selectedRowKeys.filter(function (item) {
|
|
5415
|
-
return item !== record
|
|
5363
|
+
return item !== record[selectRowKey];
|
|
5416
5364
|
})));
|
|
5417
5365
|
}
|
|
5418
5366
|
};
|
|
@@ -6436,72 +6384,70 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
6436
6384
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
6437
6385
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
6438
6386
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
6439
|
-
while (1) {
|
|
6440
|
-
|
|
6441
|
-
|
|
6442
|
-
|
|
6443
|
-
|
|
6444
|
-
|
|
6445
|
-
|
|
6446
|
-
|
|
6447
|
-
|
|
6448
|
-
|
|
6449
|
-
|
|
6450
|
-
|
|
6451
|
-
|
|
6452
|
-
|
|
6453
|
-
|
|
6454
|
-
|
|
6455
|
-
|
|
6456
|
-
|
|
6457
|
-
|
|
6458
|
-
|
|
6459
|
-
|
|
6460
|
-
|
|
6461
|
-
|
|
6462
|
-
|
|
6463
|
-
|
|
6464
|
-
|
|
6465
|
-
|
|
6466
|
-
|
|
6467
|
-
|
|
6468
|
-
|
|
6469
|
-
|
|
6470
|
-
|
|
6471
|
-
|
|
6472
|
-
|
|
6473
|
-
|
|
6474
|
-
|
|
6475
|
-
|
|
6476
|
-
|
|
6477
|
-
|
|
6478
|
-
messageInfo
|
|
6479
|
-
|
|
6480
|
-
|
|
6481
|
-
|
|
6482
|
-
|
|
6483
|
-
|
|
6484
|
-
|
|
6485
|
-
|
|
6486
|
-
|
|
6487
|
-
|
|
6488
|
-
|
|
6489
|
-
|
|
6490
|
-
|
|
6491
|
-
|
|
6492
|
-
|
|
6493
|
-
message$1.success(initSuccessMessage);
|
|
6494
|
-
}
|
|
6387
|
+
while (1) switch (_context.prev = _context.next) {
|
|
6388
|
+
case 0:
|
|
6389
|
+
if (data === null || data === void 0 ? void 0 : data.length) {
|
|
6390
|
+
_context.next = 3;
|
|
6391
|
+
break;
|
|
6392
|
+
}
|
|
6393
|
+
message$1.warning('至少录入一条数据');
|
|
6394
|
+
return _context.abrupt("return");
|
|
6395
|
+
case 3:
|
|
6396
|
+
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
6397
|
+
return d.skuCode && d.name;
|
|
6398
|
+
})) {
|
|
6399
|
+
_context.next = 6;
|
|
6400
|
+
break;
|
|
6401
|
+
}
|
|
6402
|
+
message$1.warning('请选择商品!');
|
|
6403
|
+
return _context.abrupt("return");
|
|
6404
|
+
case 6:
|
|
6405
|
+
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
6406
|
+
return d.count;
|
|
6407
|
+
})) {
|
|
6408
|
+
_context.next = 9;
|
|
6409
|
+
break;
|
|
6410
|
+
}
|
|
6411
|
+
message$1.warning('请填写商品数量!');
|
|
6412
|
+
return _context.abrupt("return");
|
|
6413
|
+
case 9:
|
|
6414
|
+
_context.next = 11;
|
|
6415
|
+
return isSkuCanEntry(data);
|
|
6416
|
+
case 11:
|
|
6417
|
+
canEntryObject = _context.sent;
|
|
6418
|
+
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
6419
|
+
_context.next = 16;
|
|
6420
|
+
break;
|
|
6421
|
+
}
|
|
6422
|
+
messageInfo = (canEntryObject === null || canEntryObject === void 0 ? void 0 : (_canEntryObject$error = canEntryObject.errorList) === null || _canEntryObject$error === void 0 ? void 0 : _canEntryObject$error.length) && (canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.errorList.map(function (i) {
|
|
6423
|
+
return /*#__PURE__*/React.createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
|
|
6424
|
+
}));
|
|
6425
|
+
messageInfo && message$1.warning({
|
|
6426
|
+
content: messageInfo,
|
|
6427
|
+
duration: 6
|
|
6428
|
+
});
|
|
6429
|
+
return _context.abrupt("return");
|
|
6430
|
+
case 16:
|
|
6431
|
+
setLoading(true);
|
|
6432
|
+
onSaveCallback(data).then(function (res) {
|
|
6433
|
+
{
|
|
6434
|
+
var _Object$keys;
|
|
6435
|
+
var initSuccessMessage = '保存成功';
|
|
6436
|
+
var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
|
|
6437
|
+
if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
|
|
6438
|
+
(rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? message$1.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
|
|
6439
|
+
} else {
|
|
6440
|
+
message$1.success(initSuccessMessage);
|
|
6495
6441
|
}
|
|
6496
|
-
|
|
6497
|
-
|
|
6498
|
-
|
|
6499
|
-
|
|
6500
|
-
|
|
6501
|
-
|
|
6502
|
-
|
|
6503
|
-
|
|
6504
|
-
|
|
6442
|
+
}
|
|
6443
|
+
setLoading(false);
|
|
6444
|
+
}).catch(function (Error) {
|
|
6445
|
+
message$1.error(Error);
|
|
6446
|
+
setLoading(false);
|
|
6447
|
+
});
|
|
6448
|
+
case 18:
|
|
6449
|
+
case "end":
|
|
6450
|
+
return _context.stop();
|
|
6505
6451
|
}
|
|
6506
6452
|
}, _callee);
|
|
6507
6453
|
}));
|
|
@@ -8745,9 +8691,16 @@ var BusinessSearchSelect$1 = /*#__PURE__*/React.memo(BusinessSearchSelect, funct
|
|
|
8745
8691
|
// import { getCurrentTargetBgId } from '@/utils/LocalstorageUtils';
|
|
8746
8692
|
function handleSelectColumn(c, parentProps) {
|
|
8747
8693
|
var result = c;
|
|
8694
|
+
var showColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.showColumns) || [];
|
|
8748
8695
|
var exceptColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.exceptColumns) || [];
|
|
8749
8696
|
var coverColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.coverColumns) || [];
|
|
8750
8697
|
var additionColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.additionColumns) || [];
|
|
8698
|
+
// 仅展示内容
|
|
8699
|
+
if (showColumns === null || showColumns === void 0 ? void 0 : showColumns.length) {
|
|
8700
|
+
result = result.filter(function (i) {
|
|
8701
|
+
return showColumns.includes(i.dataIndex);
|
|
8702
|
+
});
|
|
8703
|
+
}
|
|
8751
8704
|
// 过滤不需要展示内容
|
|
8752
8705
|
if (exceptColumns === null || exceptColumns === void 0 ? void 0 : exceptColumns.length) {
|
|
8753
8706
|
result = result.filter(function (i) {
|
|
@@ -8766,6 +8719,57 @@ function handleSelectColumn(c, parentProps) {
|
|
|
8766
8719
|
}
|
|
8767
8720
|
return result;
|
|
8768
8721
|
}
|
|
8722
|
+
function handleSearchForm(c, parentProps) {
|
|
8723
|
+
var result = c;
|
|
8724
|
+
var showTableSearchForm = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.showTableSearchForm) || [];
|
|
8725
|
+
var exceptTableSearchForm = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.exceptTableSearchForm) || [];
|
|
8726
|
+
var coverTableSearchForm = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.coverTableSearchForm) || [];
|
|
8727
|
+
// 仅展示内容
|
|
8728
|
+
if (showTableSearchForm === null || showTableSearchForm === void 0 ? void 0 : showTableSearchForm.length) {
|
|
8729
|
+
result = result.filter(function (i) {
|
|
8730
|
+
return showTableSearchForm.includes(i.name);
|
|
8731
|
+
});
|
|
8732
|
+
}
|
|
8733
|
+
// 过滤不需要展示内容
|
|
8734
|
+
if (exceptTableSearchForm === null || exceptTableSearchForm === void 0 ? void 0 : exceptTableSearchForm.length) {
|
|
8735
|
+
result = result.filter(function (i) {
|
|
8736
|
+
return !exceptTableSearchForm.includes(i.name);
|
|
8737
|
+
});
|
|
8738
|
+
}
|
|
8739
|
+
// 覆盖内容
|
|
8740
|
+
if (coverTableSearchForm === null || coverTableSearchForm === void 0 ? void 0 : coverTableSearchForm.length) {
|
|
8741
|
+
result = coverTableSearchForm;
|
|
8742
|
+
}
|
|
8743
|
+
return result;
|
|
8744
|
+
}
|
|
8745
|
+
function handleFormSearchSourceLoad(c, parentProps) {
|
|
8746
|
+
var result = c;
|
|
8747
|
+
var showTableFormSearchSourceLoad = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.showTableFormSearchSourceLoad) || [];
|
|
8748
|
+
var exceptTableFormSearchSourceLoad = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.exceptTableFormSearchSourceLoad) || [];
|
|
8749
|
+
var coverTableFormSearchSourceLoad = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.coverTableFormSearchSourceLoad) || [];
|
|
8750
|
+
var noNeedTableFormSearchSourceLoad = parentProps === null || parentProps === void 0 ? void 0 : parentProps.noNeedTableFormSearchSourceLoad;
|
|
8751
|
+
// 仅展示内容
|
|
8752
|
+
if (showTableFormSearchSourceLoad === null || showTableFormSearchSourceLoad === void 0 ? void 0 : showTableFormSearchSourceLoad.length) {
|
|
8753
|
+
result = result.filter(function (i) {
|
|
8754
|
+
return showTableFormSearchSourceLoad.includes(i.url);
|
|
8755
|
+
});
|
|
8756
|
+
}
|
|
8757
|
+
// 过滤不需要展示内容
|
|
8758
|
+
if (exceptTableFormSearchSourceLoad === null || exceptTableFormSearchSourceLoad === void 0 ? void 0 : exceptTableFormSearchSourceLoad.length) {
|
|
8759
|
+
result = result.filter(function (i) {
|
|
8760
|
+
return !exceptTableFormSearchSourceLoad.includes(i.url);
|
|
8761
|
+
});
|
|
8762
|
+
}
|
|
8763
|
+
// 覆盖内容
|
|
8764
|
+
if (coverTableFormSearchSourceLoad === null || coverTableFormSearchSourceLoad === void 0 ? void 0 : coverTableFormSearchSourceLoad.length) {
|
|
8765
|
+
result = coverTableFormSearchSourceLoad;
|
|
8766
|
+
}
|
|
8767
|
+
// 不需要默认请求
|
|
8768
|
+
if (noNeedTableFormSearchSourceLoad) {
|
|
8769
|
+
result = [];
|
|
8770
|
+
}
|
|
8771
|
+
return result;
|
|
8772
|
+
}
|
|
8769
8773
|
var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
8770
8774
|
var _parProps$requestConf, _parProps$requestConf2;
|
|
8771
8775
|
var selectProps = {
|
|
@@ -8872,234 +8876,258 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
8872
8876
|
dataIndex: 'propertyNameAndValue'
|
|
8873
8877
|
}]);
|
|
8874
8878
|
var mTpSelectColumn = handleSelectColumn(initialSelectColumn, parProps);
|
|
8875
|
-
var
|
|
8876
|
-
|
|
8877
|
-
|
|
8878
|
-
|
|
8879
|
-
|
|
8880
|
-
|
|
8881
|
-
|
|
8882
|
-
|
|
8883
|
-
|
|
8884
|
-
otherParams: _objectSpread2({
|
|
8885
|
-
'qp-combination-eq': false,
|
|
8886
|
-
'qp-approveStatus-eq': 1,
|
|
8887
|
-
'qp-status-eq': 1
|
|
8888
|
-
}, (parProps === null || parProps === void 0 ? void 0 : (_parProps$requestConf = parProps.requestConfig) === null || _parProps$requestConf === void 0 ? void 0 : _parProps$requestConf.addOtherParams) || {}),
|
|
8889
|
-
mappingTextField: 'name',
|
|
8890
|
-
mappingValueField: 'skuCode'
|
|
8891
|
-
}, parProps.requestConfig),
|
|
8892
|
-
selectProps: selectProps,
|
|
8893
|
-
onChange: function onChange(value) {
|
|
8894
|
-
console.log(value);
|
|
8895
|
-
setValue(value);
|
|
8879
|
+
var initialTableColumn = [{
|
|
8880
|
+
title: 'SKU编码',
|
|
8881
|
+
width: 150,
|
|
8882
|
+
dataIndex: 'skuCode'
|
|
8883
|
+
}, {
|
|
8884
|
+
title: 'SKU名称',
|
|
8885
|
+
width: 200,
|
|
8886
|
+
ellipsis: {
|
|
8887
|
+
showTitle: false
|
|
8896
8888
|
},
|
|
8897
|
-
|
|
8898
|
-
|
|
8899
|
-
|
|
8900
|
-
|
|
8901
|
-
|
|
8902
|
-
|
|
8903
|
-
|
|
8904
|
-
|
|
8905
|
-
|
|
8906
|
-
|
|
8907
|
-
|
|
8908
|
-
|
|
8909
|
-
|
|
8910
|
-
|
|
8911
|
-
|
|
8912
|
-
|
|
8913
|
-
|
|
8914
|
-
|
|
8915
|
-
|
|
8916
|
-
|
|
8917
|
-
|
|
8918
|
-
|
|
8919
|
-
|
|
8920
|
-
|
|
8921
|
-
|
|
8922
|
-
|
|
8923
|
-
|
|
8924
|
-
|
|
8925
|
-
|
|
8926
|
-
|
|
8927
|
-
|
|
8928
|
-
|
|
8929
|
-
|
|
8930
|
-
|
|
8931
|
-
|
|
8932
|
-
|
|
8933
|
-
|
|
8934
|
-
|
|
8935
|
-
|
|
8936
|
-
|
|
8937
|
-
|
|
8938
|
-
|
|
8939
|
-
|
|
8940
|
-
|
|
8941
|
-
|
|
8942
|
-
|
|
8943
|
-
|
|
8944
|
-
|
|
8945
|
-
|
|
8946
|
-
|
|
8947
|
-
|
|
8948
|
-
|
|
8949
|
-
|
|
8950
|
-
|
|
8951
|
-
|
|
8952
|
-
|
|
8953
|
-
|
|
8954
|
-
|
|
8955
|
-
|
|
8956
|
-
|
|
8957
|
-
|
|
8958
|
-
|
|
8959
|
-
|
|
8960
|
-
|
|
8961
|
-
|
|
8962
|
-
|
|
8963
|
-
|
|
8964
|
-
|
|
8965
|
-
|
|
8966
|
-
|
|
8967
|
-
|
|
8968
|
-
|
|
8969
|
-
|
|
8970
|
-
|
|
8971
|
-
|
|
8972
|
-
|
|
8973
|
-
|
|
8974
|
-
|
|
8975
|
-
|
|
8976
|
-
|
|
8977
|
-
|
|
8978
|
-
|
|
8979
|
-
|
|
8980
|
-
|
|
8981
|
-
|
|
8982
|
-
|
|
8983
|
-
|
|
8984
|
-
|
|
8985
|
-
|
|
8986
|
-
|
|
8987
|
-
|
|
8988
|
-
|
|
8989
|
-
|
|
8990
|
-
|
|
8991
|
-
|
|
8992
|
-
|
|
8993
|
-
|
|
8994
|
-
|
|
8995
|
-
|
|
8996
|
-
|
|
8997
|
-
|
|
8998
|
-
|
|
8999
|
-
|
|
9000
|
-
|
|
9001
|
-
|
|
9002
|
-
|
|
9003
|
-
|
|
9004
|
-
|
|
9005
|
-
|
|
9006
|
-
|
|
9007
|
-
|
|
9008
|
-
|
|
9009
|
-
|
|
9010
|
-
|
|
9011
|
-
|
|
9012
|
-
|
|
9013
|
-
|
|
9014
|
-
|
|
9015
|
-
|
|
9016
|
-
|
|
9017
|
-
|
|
9018
|
-
|
|
9019
|
-
|
|
9020
|
-
|
|
9021
|
-
|
|
8889
|
+
render: function render(text) {
|
|
8890
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
8891
|
+
placement: "topLeft",
|
|
8892
|
+
title: text
|
|
8893
|
+
}, text);
|
|
8894
|
+
},
|
|
8895
|
+
dataIndex: 'name'
|
|
8896
|
+
}, {
|
|
8897
|
+
title: '图片',
|
|
8898
|
+
dataIndex: 'itemUrl',
|
|
8899
|
+
width: 200,
|
|
8900
|
+
ellipsis: {
|
|
8901
|
+
showTitle: false
|
|
8902
|
+
},
|
|
8903
|
+
render: function render(text, record) {
|
|
8904
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
8905
|
+
placement: "topLeft",
|
|
8906
|
+
title: text
|
|
8907
|
+
}, tableColumnsImage(getSkuImg(record), {
|
|
8908
|
+
width: 20,
|
|
8909
|
+
height: 20
|
|
8910
|
+
}));
|
|
8911
|
+
}
|
|
8912
|
+
}].concat(_toConsumableArray(isNoUseItemBarcode ? [] : [{
|
|
8913
|
+
title: '商品条码',
|
|
8914
|
+
width: 100,
|
|
8915
|
+
ellipsis: {
|
|
8916
|
+
showTitle: false
|
|
8917
|
+
},
|
|
8918
|
+
dataIndex: 'itemEancode',
|
|
8919
|
+
render: function render(text) {
|
|
8920
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
8921
|
+
placement: "topLeft",
|
|
8922
|
+
title: text
|
|
8923
|
+
}, text);
|
|
8924
|
+
}
|
|
8925
|
+
}]), [{
|
|
8926
|
+
title: '所属SPU名称',
|
|
8927
|
+
width: 100,
|
|
8928
|
+
ellipsis: {
|
|
8929
|
+
showTitle: false
|
|
8930
|
+
},
|
|
8931
|
+
dataIndex: 'itemName',
|
|
8932
|
+
render: function render(text) {
|
|
8933
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
8934
|
+
placement: "topLeft",
|
|
8935
|
+
title: text
|
|
8936
|
+
}, text);
|
|
8937
|
+
}
|
|
8938
|
+
}, {
|
|
8939
|
+
title: '所属SPU编码',
|
|
8940
|
+
width: 100,
|
|
8941
|
+
ellipsis: {
|
|
8942
|
+
showTitle: false
|
|
8943
|
+
},
|
|
8944
|
+
dataIndex: 'itemCode',
|
|
8945
|
+
render: function render(text) {
|
|
8946
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
8947
|
+
placement: "topLeft",
|
|
8948
|
+
title: text
|
|
8949
|
+
}, text);
|
|
8950
|
+
}
|
|
8951
|
+
}, {
|
|
8952
|
+
title: '外部编码',
|
|
8953
|
+
width: 100,
|
|
8954
|
+
ellipsis: {
|
|
8955
|
+
showTitle: false
|
|
8956
|
+
},
|
|
8957
|
+
render: function render(text) {
|
|
8958
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
8959
|
+
placement: "topLeft",
|
|
8960
|
+
title: text
|
|
8961
|
+
}, text);
|
|
8962
|
+
},
|
|
8963
|
+
dataIndex: 'externalCode'
|
|
8964
|
+
}, {
|
|
8965
|
+
title: '规格',
|
|
8966
|
+
width: 100,
|
|
8967
|
+
ellipsis: {
|
|
8968
|
+
showTitle: false
|
|
8969
|
+
},
|
|
8970
|
+
render: function render(text) {
|
|
8971
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
8972
|
+
placement: "topLeft",
|
|
8973
|
+
title: text
|
|
8974
|
+
}, text);
|
|
8975
|
+
},
|
|
8976
|
+
dataIndex: 'propertyNameAndValue'
|
|
8977
|
+
}, {
|
|
8978
|
+
title: '类目',
|
|
8979
|
+
width: 100,
|
|
8980
|
+
ellipsis: {
|
|
8981
|
+
showTitle: false
|
|
8982
|
+
},
|
|
8983
|
+
render: function render(text) {
|
|
8984
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
8985
|
+
placement: "topLeft",
|
|
8986
|
+
title: text
|
|
8987
|
+
}, text);
|
|
8988
|
+
},
|
|
8989
|
+
dataIndex: 'categoryName'
|
|
8990
|
+
}, {
|
|
8991
|
+
title: '品类',
|
|
8992
|
+
width: 100,
|
|
8993
|
+
ellipsis: {
|
|
8994
|
+
showTitle: false
|
|
8995
|
+
},
|
|
8996
|
+
render: function render(text) {
|
|
8997
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
8998
|
+
placement: "topLeft",
|
|
8999
|
+
title: text
|
|
9000
|
+
}, text);
|
|
9001
|
+
},
|
|
9002
|
+
dataIndex: 'className'
|
|
9003
|
+
}, {
|
|
9004
|
+
title: '品牌',
|
|
9005
|
+
width: 100,
|
|
9006
|
+
ellipsis: {
|
|
9007
|
+
showTitle: false
|
|
9008
|
+
},
|
|
9009
|
+
render: function render(text) {
|
|
9010
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
9011
|
+
placement: "topLeft",
|
|
9012
|
+
title: text
|
|
9013
|
+
}, text);
|
|
9014
|
+
},
|
|
9015
|
+
dataIndex: 'brandName'
|
|
9016
|
+
}]);
|
|
9017
|
+
var mTpTableColumn = handleSelectColumn(initialTableColumn, parProps);
|
|
9018
|
+
var initialTableSearchForm = [{
|
|
9019
|
+
name: 'qp-skuCode-like',
|
|
9020
|
+
label: 'SKU编码'
|
|
9021
|
+
}, {
|
|
9022
|
+
name: 'qp-skuName-like',
|
|
9023
|
+
label: 'SKU名称'
|
|
9024
|
+
}].concat(_toConsumableArray(isNoUseItemBarcode ? [] : [{
|
|
9025
|
+
name: 'qp-code-in',
|
|
9026
|
+
label: '商品条码',
|
|
9027
|
+
field: {
|
|
9028
|
+
type: 'multipleQueryInput',
|
|
9029
|
+
props: _objectSpread2({}, ((_parProps$requestConf = parProps.requestConfig) === null || _parProps$requestConf === void 0 ? void 0 : _parProps$requestConf.itemEancodeValueRequestConfig) || {})
|
|
9030
|
+
}
|
|
9031
|
+
}]), [{
|
|
9032
|
+
name: 'qp-brandId-in',
|
|
9033
|
+
type: 'select',
|
|
9034
|
+
label: '品牌',
|
|
9035
|
+
field: {
|
|
9036
|
+
type: 'select',
|
|
9037
|
+
props: {
|
|
9038
|
+
mode: 'multiple',
|
|
9039
|
+
notFoundContent: '暂无数据',
|
|
9040
|
+
allowClear: true,
|
|
9041
|
+
showSearch: true,
|
|
9042
|
+
showArrow: true,
|
|
9043
|
+
maxTagCount: 1,
|
|
9044
|
+
optionFilterProp: 'children',
|
|
9045
|
+
filterOption: function filterOption(input, option) {
|
|
9046
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
9047
|
+
}
|
|
9022
9048
|
}
|
|
9023
|
-
}
|
|
9024
|
-
|
|
9025
|
-
|
|
9026
|
-
|
|
9027
|
-
|
|
9028
|
-
|
|
9029
|
-
|
|
9030
|
-
|
|
9031
|
-
|
|
9032
|
-
|
|
9033
|
-
|
|
9034
|
-
|
|
9049
|
+
}
|
|
9050
|
+
}, {
|
|
9051
|
+
name: 'qp-categoryId-in',
|
|
9052
|
+
type: 'treeSelect',
|
|
9053
|
+
label: '类目',
|
|
9054
|
+
field: {
|
|
9055
|
+
type: 'treeSelect',
|
|
9056
|
+
props: {
|
|
9057
|
+
treeData: [],
|
|
9058
|
+
treeCheckable: true,
|
|
9059
|
+
showSearch: true,
|
|
9060
|
+
allowClear: true,
|
|
9061
|
+
showArrow: true,
|
|
9062
|
+
treeNodeFilterProp: 'title',
|
|
9063
|
+
treeDefaultExpandAll: true,
|
|
9064
|
+
maxTagCount: 1,
|
|
9065
|
+
placeholder: '请选择',
|
|
9066
|
+
style: {
|
|
9067
|
+
width: '100%'
|
|
9068
|
+
},
|
|
9069
|
+
dropdownStyle: {
|
|
9070
|
+
maxHeight: 400,
|
|
9071
|
+
maxWidth: 100,
|
|
9072
|
+
overflow: 'auto'
|
|
9073
|
+
}
|
|
9035
9074
|
}
|
|
9036
|
-
}
|
|
9037
|
-
|
|
9038
|
-
|
|
9039
|
-
|
|
9040
|
-
|
|
9041
|
-
|
|
9042
|
-
|
|
9043
|
-
|
|
9044
|
-
|
|
9045
|
-
|
|
9046
|
-
|
|
9047
|
-
|
|
9048
|
-
|
|
9049
|
-
|
|
9050
|
-
|
|
9051
|
-
|
|
9052
|
-
|
|
9053
|
-
|
|
9054
|
-
|
|
9055
|
-
|
|
9056
|
-
|
|
9057
|
-
|
|
9058
|
-
|
|
9059
|
-
|
|
9060
|
-
|
|
9061
|
-
|
|
9062
|
-
|
|
9063
|
-
|
|
9064
|
-
|
|
9065
|
-
|
|
9066
|
-
|
|
9067
|
-
|
|
9068
|
-
|
|
9069
|
-
|
|
9070
|
-
|
|
9071
|
-
|
|
9072
|
-
|
|
9073
|
-
|
|
9074
|
-
|
|
9075
|
-
},
|
|
9076
|
-
|
|
9077
|
-
|
|
9078
|
-
|
|
9079
|
-
|
|
9080
|
-
|
|
9081
|
-
|
|
9082
|
-
|
|
9083
|
-
|
|
9084
|
-
|
|
9085
|
-
|
|
9086
|
-
|
|
9087
|
-
|
|
9088
|
-
|
|
9089
|
-
|
|
9090
|
-
|
|
9091
|
-
|
|
9092
|
-
showTitle: false
|
|
9093
|
-
},
|
|
9094
|
-
render: function render(text) {
|
|
9095
|
-
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
9096
|
-
placement: "topLeft",
|
|
9097
|
-
title: text
|
|
9098
|
-
}, text);
|
|
9099
|
-
},
|
|
9100
|
-
dataIndex: 'brandName'
|
|
9101
|
-
}]),
|
|
9102
|
-
selectColumn: mTpSelectColumn
|
|
9075
|
+
}
|
|
9076
|
+
}], _toConsumableArray((parProps === null || parProps === void 0 ? void 0 : parProps.addTableSearchForm) || []));
|
|
9077
|
+
var mTpTableSearchForm = handleSearchForm(initialTableSearchForm, parProps);
|
|
9078
|
+
var initialPromiseLoadList = [{
|
|
9079
|
+
url: "/items/brand/queryBrandList",
|
|
9080
|
+
params: {
|
|
9081
|
+
pageSize: 5000,
|
|
9082
|
+
currentPage: 1,
|
|
9083
|
+
'ctl-withAuth': true
|
|
9084
|
+
},
|
|
9085
|
+
resType: 'list',
|
|
9086
|
+
resPosition: isNoUseItemBarcode ? 2 : 3,
|
|
9087
|
+
resKeyValue: ['id', 'name']
|
|
9088
|
+
}, {
|
|
9089
|
+
url: "/items/category/queryCategoryTree",
|
|
9090
|
+
params: {
|
|
9091
|
+
pageSize: 5000,
|
|
9092
|
+
currentPage: 1
|
|
9093
|
+
},
|
|
9094
|
+
resType: 'treeList',
|
|
9095
|
+
resPosition: isNoUseItemBarcode ? 3 : 4
|
|
9096
|
+
}];
|
|
9097
|
+
var mTpPromiseLoadList = handleFormSearchSourceLoad(initialPromiseLoadList, parProps);
|
|
9098
|
+
var props = {
|
|
9099
|
+
buttonText: parProps.buttonText || '新增',
|
|
9100
|
+
buttonProps: parProps.buttonProps || {},
|
|
9101
|
+
tableCodeList: parProps.tableCodeList || [],
|
|
9102
|
+
value: value,
|
|
9103
|
+
// labelInValue: true, // 非必填 默认为false
|
|
9104
|
+
requestConfig: _objectSpread2({
|
|
9105
|
+
url: "/items/sku/pager/v2",
|
|
9106
|
+
filter: 'qp-name-like',
|
|
9107
|
+
otherParams: _objectSpread2({
|
|
9108
|
+
'qp-combination-eq': false,
|
|
9109
|
+
'qp-approveStatus-eq': 1,
|
|
9110
|
+
'qp-status-eq': 1
|
|
9111
|
+
}, (parProps === null || parProps === void 0 ? void 0 : (_parProps$requestConf2 = parProps.requestConfig) === null || _parProps$requestConf2 === void 0 ? void 0 : _parProps$requestConf2.addOtherParams) || {}),
|
|
9112
|
+
mappingTextField: 'name',
|
|
9113
|
+
mappingValueField: 'skuCode'
|
|
9114
|
+
}, parProps.requestConfig),
|
|
9115
|
+
selectProps: selectProps,
|
|
9116
|
+
onChange: function onChange(value) {
|
|
9117
|
+
console.log(value);
|
|
9118
|
+
setValue(value);
|
|
9119
|
+
},
|
|
9120
|
+
beforeShowModal: parProps === null || parProps === void 0 ? void 0 : parProps.beforeShowModal,
|
|
9121
|
+
onSaveCallback: parProps.onSaveCallback,
|
|
9122
|
+
businessType: 'sku',
|
|
9123
|
+
isAllowRepeatedSelect: !!(parProps === null || parProps === void 0 ? void 0 : parProps.isAllowRepeatedSelect)
|
|
9124
|
+
};
|
|
9125
|
+
var modalTableProps = {
|
|
9126
|
+
modalTableTitle: '选择商品',
|
|
9127
|
+
tableSearchForm: mTpTableSearchForm,
|
|
9128
|
+
tableColumns: mTpTableColumn,
|
|
9129
|
+
selectColumn: mTpSelectColumn,
|
|
9130
|
+
promiseLoadList: mTpPromiseLoadList
|
|
9103
9131
|
};
|
|
9104
9132
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(AddSelect, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
9105
9133
|
modalTableProps: modalTableProps
|
|
@@ -9175,6 +9203,45 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
|
|
|
9175
9203
|
dataIndex: 'count'
|
|
9176
9204
|
}];
|
|
9177
9205
|
var mTpSelectColumn = handleSelectColumn(initialSelectColumn, parProps);
|
|
9206
|
+
var initialPromiseLoadList = [{
|
|
9207
|
+
url: "/items/item/propertyValue/sizeBySkcConfig",
|
|
9208
|
+
params: {
|
|
9209
|
+
pageSize: 10000,
|
|
9210
|
+
currentPage: 1,
|
|
9211
|
+
type: 2 // 类型:1尺码;2颜色
|
|
9212
|
+
},
|
|
9213
|
+
|
|
9214
|
+
resType: 'list',
|
|
9215
|
+
resPosition: 3,
|
|
9216
|
+
resKeyValue: ['value', 'value']
|
|
9217
|
+
}, {
|
|
9218
|
+
url: "/items/category/queryCategoryTree",
|
|
9219
|
+
params: {
|
|
9220
|
+
pageSize: 5000,
|
|
9221
|
+
currentPage: 1
|
|
9222
|
+
},
|
|
9223
|
+
resType: 'treeList',
|
|
9224
|
+
resPosition: 4
|
|
9225
|
+
}, {
|
|
9226
|
+
url: "/items/class/withProperty",
|
|
9227
|
+
params: {
|
|
9228
|
+
pageSize: 5000,
|
|
9229
|
+
currentPage: 1
|
|
9230
|
+
},
|
|
9231
|
+
resType: 'list',
|
|
9232
|
+
resPosition: 5,
|
|
9233
|
+
resKeyValue: ['id', 'name']
|
|
9234
|
+
}, {
|
|
9235
|
+
url: "/items/brand/queryBrandList",
|
|
9236
|
+
params: {
|
|
9237
|
+
pageSize: 5000,
|
|
9238
|
+
currentPage: 1,
|
|
9239
|
+
'ctl-withAuth': true
|
|
9240
|
+
},
|
|
9241
|
+
resType: 'list',
|
|
9242
|
+
resPosition: 6,
|
|
9243
|
+
resKeyValue: ['id', 'name']
|
|
9244
|
+
}];
|
|
9178
9245
|
var props = {
|
|
9179
9246
|
buttonText: parProps.buttonText || '新增',
|
|
9180
9247
|
buttonProps: parProps.buttonProps || {},
|
|
@@ -9379,7 +9446,8 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
|
|
|
9379
9446
|
},
|
|
9380
9447
|
dataIndex: 'brandName'
|
|
9381
9448
|
}],
|
|
9382
|
-
selectColumn: mTpSelectColumn
|
|
9449
|
+
selectColumn: mTpSelectColumn,
|
|
9450
|
+
promiseLoadList: initialPromiseLoadList
|
|
9383
9451
|
};
|
|
9384
9452
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(AddSelect, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
9385
9453
|
modalTableProps: modalTableProps
|
|
@@ -9464,6 +9532,44 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
9464
9532
|
dataIndex: 'className'
|
|
9465
9533
|
}];
|
|
9466
9534
|
var mTpSelectColumn = handleSelectColumn(initialSelectColumn, parProps);
|
|
9535
|
+
var initialPromiseLoadList = [{
|
|
9536
|
+
url: "/user/orgViewNode/listNoPage",
|
|
9537
|
+
params: {
|
|
9538
|
+
'qp-employeeId-eq': getEmployeeId(),
|
|
9539
|
+
'qp-orgViewCode-eq': 'business-organizational-view',
|
|
9540
|
+
'ctl-withDefaultOrg': true
|
|
9541
|
+
},
|
|
9542
|
+
resType: 'list',
|
|
9543
|
+
resPosition: 2,
|
|
9544
|
+
resKeyValue: ['targetId', 'name']
|
|
9545
|
+
}, {
|
|
9546
|
+
url: "/items/brand/queryBrandList",
|
|
9547
|
+
params: {
|
|
9548
|
+
pageSize: 5000,
|
|
9549
|
+
currentPage: 1,
|
|
9550
|
+
'ctl-withAuth': true
|
|
9551
|
+
},
|
|
9552
|
+
resType: 'list',
|
|
9553
|
+
resPosition: 3,
|
|
9554
|
+
resKeyValue: ['id', 'name']
|
|
9555
|
+
}, {
|
|
9556
|
+
url: "/items/category/queryCategoryTree",
|
|
9557
|
+
params: {
|
|
9558
|
+
pageSize: 5000,
|
|
9559
|
+
currentPage: 1
|
|
9560
|
+
},
|
|
9561
|
+
resType: 'treeList',
|
|
9562
|
+
resPosition: 4
|
|
9563
|
+
}, {
|
|
9564
|
+
url: "/items/class/withProperty",
|
|
9565
|
+
params: {
|
|
9566
|
+
pageSize: 5000,
|
|
9567
|
+
currentPage: 1
|
|
9568
|
+
},
|
|
9569
|
+
resType: 'list',
|
|
9570
|
+
resPosition: 5,
|
|
9571
|
+
resKeyValue: ['id', 'name']
|
|
9572
|
+
}];
|
|
9467
9573
|
var props = {
|
|
9468
9574
|
buttonText: parProps.buttonText || '新增',
|
|
9469
9575
|
buttonProps: parProps.buttonProps || {},
|
|
@@ -9653,7 +9759,8 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
9653
9759
|
},
|
|
9654
9760
|
dataIndex: 'className'
|
|
9655
9761
|
}],
|
|
9656
|
-
selectColumn: mTpSelectColumn
|
|
9762
|
+
selectColumn: mTpSelectColumn,
|
|
9763
|
+
promiseLoadList: initialPromiseLoadList
|
|
9657
9764
|
};
|
|
9658
9765
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(AddSelect, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
9659
9766
|
modalTableProps: modalTableProps
|
|
@@ -9745,7 +9852,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
9745
9852
|
* @LastEditTime: 2022-01-14 17:17:26
|
|
9746
9853
|
* @LastEditors: rodchen
|
|
9747
9854
|
*/
|
|
9748
|
-
var index$
|
|
9855
|
+
var index$2 = (function (storageKeyString) {
|
|
9749
9856
|
var seconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
|
|
9750
9857
|
var tipsCallFunction = arguments.length > 2 ? arguments[2] : undefined;
|
|
9751
9858
|
if (typeof seconds !== 'number') throw new Error('seconds should be number');
|
|
@@ -9872,44 +9979,42 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
9872
9979
|
var _ctx$form;
|
|
9873
9980
|
var resData, coverData, data, dataList;
|
|
9874
9981
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9875
|
-
while (1) {
|
|
9876
|
-
|
|
9877
|
-
|
|
9878
|
-
|
|
9879
|
-
|
|
9880
|
-
_context.next = 13;
|
|
9881
|
-
break;
|
|
9882
|
-
}
|
|
9883
|
-
data = resData.data;
|
|
9884
|
-
if (!remoteSource.converter) {
|
|
9885
|
-
_context.next = 9;
|
|
9886
|
-
break;
|
|
9887
|
-
}
|
|
9888
|
-
_context.next = 6;
|
|
9889
|
-
return remoteSource.converter({
|
|
9890
|
-
data: [data]
|
|
9891
|
-
});
|
|
9892
|
-
case 6:
|
|
9893
|
-
coverData = _context.sent;
|
|
9894
|
-
_context.next = 11;
|
|
9982
|
+
while (1) switch (_context.prev = _context.next) {
|
|
9983
|
+
case 0:
|
|
9984
|
+
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
9985
|
+
if (!(resData.status === '0' || resData.code === '000000')) {
|
|
9986
|
+
_context.next = 13;
|
|
9895
9987
|
break;
|
|
9896
|
-
|
|
9897
|
-
|
|
9898
|
-
|
|
9899
|
-
|
|
9900
|
-
}) || [];
|
|
9901
|
-
case 11:
|
|
9902
|
-
_context.next = 14;
|
|
9988
|
+
}
|
|
9989
|
+
data = resData.data;
|
|
9990
|
+
if (!remoteSource.converter) {
|
|
9991
|
+
_context.next = 9;
|
|
9903
9992
|
break;
|
|
9904
|
-
|
|
9905
|
-
|
|
9906
|
-
|
|
9907
|
-
|
|
9908
|
-
|
|
9909
|
-
|
|
9910
|
-
|
|
9911
|
-
|
|
9912
|
-
|
|
9993
|
+
}
|
|
9994
|
+
_context.next = 6;
|
|
9995
|
+
return remoteSource.converter({
|
|
9996
|
+
data: [data]
|
|
9997
|
+
});
|
|
9998
|
+
case 6:
|
|
9999
|
+
coverData = _context.sent;
|
|
10000
|
+
_context.next = 11;
|
|
10001
|
+
break;
|
|
10002
|
+
case 9:
|
|
10003
|
+
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
10004
|
+
coverData = dataList.length && dataList.map(function (ites) {
|
|
10005
|
+
return mapSearchTree(ites);
|
|
10006
|
+
}) || [];
|
|
10007
|
+
case 11:
|
|
10008
|
+
_context.next = 14;
|
|
10009
|
+
break;
|
|
10010
|
+
case 13:
|
|
10011
|
+
coverData = [];
|
|
10012
|
+
case 14:
|
|
10013
|
+
setTreeData(coverData);
|
|
10014
|
+
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
|
|
10015
|
+
case 16:
|
|
10016
|
+
case "end":
|
|
10017
|
+
return _context.stop();
|
|
9913
10018
|
}
|
|
9914
10019
|
}, _callee);
|
|
9915
10020
|
}));
|
|
@@ -10159,7 +10264,7 @@ var BusinessTreeSearchSelect$1 = /*#__PURE__*/React.memo(BusinessTreeSearchSelec
|
|
|
10159
10264
|
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";
|
|
10160
10265
|
styleInject(css_248z$8);
|
|
10161
10266
|
|
|
10162
|
-
var index$
|
|
10267
|
+
var index$3 = (function (props) {
|
|
10163
10268
|
var _props$formStatusMapp = props.formStatusMapping,
|
|
10164
10269
|
formStatusMapping = _props$formStatusMapp === void 0 ? [] : _props$formStatusMapp;
|
|
10165
10270
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -11583,7 +11688,7 @@ var iconMap = {
|
|
|
11583
11688
|
src: moreIcon
|
|
11584
11689
|
})
|
|
11585
11690
|
};
|
|
11586
|
-
var index$
|
|
11691
|
+
var index$4 = (function (props) {
|
|
11587
11692
|
var _useLocation = useLocation(),
|
|
11588
11693
|
pathname = _useLocation.pathname;
|
|
11589
11694
|
var _useState = useState(pathname + 'id'),
|
|
@@ -11800,7 +11905,7 @@ var css_248z$d = ".home_page_head {\n height: 54px;\n display: flex;\n justif
|
|
|
11800
11905
|
styleInject(css_248z$d);
|
|
11801
11906
|
|
|
11802
11907
|
var _excluded$c = ["children"];
|
|
11803
|
-
var index$
|
|
11908
|
+
var index$5 = (function (props) {
|
|
11804
11909
|
var _useLocation = useLocation(),
|
|
11805
11910
|
pathname = _useLocation.pathname;
|
|
11806
11911
|
var _useState = useState(pathname + 'id'),
|
|
@@ -14099,21 +14204,19 @@ function _outLogin() {
|
|
|
14099
14204
|
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
14100
14205
|
var res;
|
|
14101
14206
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
14102
|
-
while (1) {
|
|
14103
|
-
|
|
14104
|
-
|
|
14105
|
-
|
|
14106
|
-
|
|
14107
|
-
|
|
14108
|
-
|
|
14109
|
-
|
|
14110
|
-
|
|
14111
|
-
|
|
14112
|
-
|
|
14113
|
-
|
|
14114
|
-
|
|
14115
|
-
return _context.stop();
|
|
14116
|
-
}
|
|
14207
|
+
while (1) switch (_context.prev = _context.next) {
|
|
14208
|
+
case 0:
|
|
14209
|
+
_context.next = 2;
|
|
14210
|
+
return axios({
|
|
14211
|
+
url: '/user/web/loginOut',
|
|
14212
|
+
method: 'GET'
|
|
14213
|
+
});
|
|
14214
|
+
case 2:
|
|
14215
|
+
res = _context.sent;
|
|
14216
|
+
return _context.abrupt("return", res);
|
|
14217
|
+
case 4:
|
|
14218
|
+
case "end":
|
|
14219
|
+
return _context.stop();
|
|
14117
14220
|
}
|
|
14118
14221
|
}, _callee);
|
|
14119
14222
|
}));
|
|
@@ -14242,31 +14345,29 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
14242
14345
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
14243
14346
|
var sessionId;
|
|
14244
14347
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
14245
|
-
while (1) {
|
|
14246
|
-
|
|
14247
|
-
|
|
14248
|
-
|
|
14249
|
-
|
|
14250
|
-
|
|
14251
|
-
|
|
14252
|
-
|
|
14253
|
-
|
|
14254
|
-
|
|
14348
|
+
while (1) switch (_context.prev = _context.next) {
|
|
14349
|
+
case 0:
|
|
14350
|
+
_context.next = 2;
|
|
14351
|
+
return getSessionId();
|
|
14352
|
+
case 2:
|
|
14353
|
+
sessionId = _context.sent;
|
|
14354
|
+
_context.next = 5;
|
|
14355
|
+
return outLogin({
|
|
14356
|
+
sessionId: sessionId
|
|
14357
|
+
});
|
|
14358
|
+
case 5:
|
|
14359
|
+
// @ts-ignore
|
|
14360
|
+
if (BUILD_TYPE) {
|
|
14361
|
+
message$1.success('退出登录成功');
|
|
14362
|
+
history.replace({
|
|
14363
|
+
pathname: '/user/login'
|
|
14255
14364
|
});
|
|
14256
|
-
|
|
14257
|
-
|
|
14258
|
-
|
|
14259
|
-
|
|
14260
|
-
|
|
14261
|
-
|
|
14262
|
-
});
|
|
14263
|
-
} else {
|
|
14264
|
-
setLoginOutPath();
|
|
14265
|
-
}
|
|
14266
|
-
case 6:
|
|
14267
|
-
case "end":
|
|
14268
|
-
return _context.stop();
|
|
14269
|
-
}
|
|
14365
|
+
} else {
|
|
14366
|
+
setLoginOutPath();
|
|
14367
|
+
}
|
|
14368
|
+
case 6:
|
|
14369
|
+
case "end":
|
|
14370
|
+
return _context.stop();
|
|
14270
14371
|
}
|
|
14271
14372
|
}, _callee);
|
|
14272
14373
|
}));
|
|
@@ -16094,6 +16195,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
16094
16195
|
showSubMenu: isShow
|
|
16095
16196
|
});
|
|
16096
16197
|
}, 500);
|
|
16198
|
+
//设置tabs标签左右滚动
|
|
16097
16199
|
_this.setTabNavTransLate = function (num) {
|
|
16098
16200
|
var _document$getElementB, _document$getElementB2, _document$getElementB3, _document$getElementB4, _document$defaultView;
|
|
16099
16201
|
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];
|
|
@@ -16774,14 +16876,12 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
16774
16876
|
request: function () {
|
|
16775
16877
|
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
16776
16878
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
16777
|
-
while (1) {
|
|
16778
|
-
|
|
16779
|
-
|
|
16780
|
-
|
|
16781
|
-
|
|
16782
|
-
|
|
16783
|
-
return _context.stop();
|
|
16784
|
-
}
|
|
16879
|
+
while (1) switch (_context.prev = _context.next) {
|
|
16880
|
+
case 0:
|
|
16881
|
+
return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
|
|
16882
|
+
case 1:
|
|
16883
|
+
case "end":
|
|
16884
|
+
return _context.stop();
|
|
16785
16885
|
}
|
|
16786
16886
|
}, _callee);
|
|
16787
16887
|
}));
|
|
@@ -16919,7 +17019,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
16919
17019
|
}]);
|
|
16920
17020
|
return WrapperComponent;
|
|
16921
17021
|
}(React.Component);
|
|
16922
|
-
var index$
|
|
17022
|
+
var index$6 = (function (props) {
|
|
16923
17023
|
var _useModel = useModel('@@initialState'),
|
|
16924
17024
|
_useModel$initialStat = _useModel.initialState,
|
|
16925
17025
|
initialState = _useModel$initialStat === void 0 ? {} : _useModel$initialStat;
|
|
@@ -17161,7 +17261,7 @@ var FixedScrollBar = function FixedScrollBar(_ref, ref) {
|
|
|
17161
17261
|
};
|
|
17162
17262
|
var FixedScrollBar$1 = /*#__PURE__*/React.forwardRef(FixedScrollBar);
|
|
17163
17263
|
|
|
17164
|
-
var index$
|
|
17264
|
+
var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
17165
17265
|
var _useState = useState(false),
|
|
17166
17266
|
_useState2 = _slicedToArray(_useState, 2),
|
|
17167
17267
|
show = _useState2[0],
|
|
@@ -24462,28 +24562,26 @@ var valueType = {
|
|
|
24462
24562
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
24463
24563
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
24464
24564
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
24465
|
-
while (1) {
|
|
24466
|
-
|
|
24467
|
-
|
|
24468
|
-
|
|
24469
|
-
|
|
24470
|
-
|
|
24471
|
-
|
|
24472
|
-
|
|
24473
|
-
return
|
|
24474
|
-
|
|
24475
|
-
|
|
24476
|
-
|
|
24477
|
-
|
|
24478
|
-
|
|
24479
|
-
|
|
24480
|
-
|
|
24481
|
-
|
|
24482
|
-
|
|
24483
|
-
|
|
24484
|
-
|
|
24485
|
-
return _context.stop();
|
|
24486
|
-
}
|
|
24565
|
+
while (1) switch (_context.prev = _context.next) {
|
|
24566
|
+
case 0:
|
|
24567
|
+
_context.next = 2;
|
|
24568
|
+
return request$1({
|
|
24569
|
+
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
24570
|
+
converter: function converter(_ref2) {
|
|
24571
|
+
var data = _ref2.data;
|
|
24572
|
+
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
24573
|
+
return {
|
|
24574
|
+
text: d.name,
|
|
24575
|
+
value: d.code || d.brandCode
|
|
24576
|
+
};
|
|
24577
|
+
});
|
|
24578
|
+
}
|
|
24579
|
+
});
|
|
24580
|
+
case 2:
|
|
24581
|
+
return _context.abrupt("return", _context.sent);
|
|
24582
|
+
case 3:
|
|
24583
|
+
case "end":
|
|
24584
|
+
return _context.stop();
|
|
24487
24585
|
}
|
|
24488
24586
|
}, _callee);
|
|
24489
24587
|
}));
|
|
@@ -24533,55 +24631,53 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
24533
24631
|
useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
24534
24632
|
var _ref$current, source;
|
|
24535
24633
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
24536
|
-
while (1) {
|
|
24537
|
-
|
|
24538
|
-
|
|
24539
|
-
|
|
24540
|
-
|
|
24541
|
-
|
|
24542
|
-
|
|
24543
|
-
|
|
24544
|
-
|
|
24545
|
-
|
|
24546
|
-
};
|
|
24547
|
-
}
|
|
24548
|
-
return prev;
|
|
24549
|
-
});
|
|
24550
|
-
case 2:
|
|
24551
|
-
if (!record.dictionaryCode) {
|
|
24552
|
-
_context.next = 17;
|
|
24553
|
-
break;
|
|
24554
|
-
}
|
|
24555
|
-
if (!(record.choiceType == 20)) {
|
|
24556
|
-
_context.next = 7;
|
|
24557
|
-
break;
|
|
24634
|
+
while (1) switch (_context.prev = _context.next) {
|
|
24635
|
+
case 0:
|
|
24636
|
+
_context.next = 2;
|
|
24637
|
+
return setIsShowAndType(function (prev) {
|
|
24638
|
+
if (record.inputType === 20 || record.inputType === 30) {
|
|
24639
|
+
return {
|
|
24640
|
+
isShow: true,
|
|
24641
|
+
singleOrMultiple: record.inputType,
|
|
24642
|
+
type: record.choiceType
|
|
24643
|
+
};
|
|
24558
24644
|
}
|
|
24559
|
-
|
|
24560
|
-
|
|
24645
|
+
return prev;
|
|
24646
|
+
});
|
|
24647
|
+
case 2:
|
|
24648
|
+
if (!record.dictionaryCode) {
|
|
24649
|
+
_context.next = 17;
|
|
24561
24650
|
break;
|
|
24562
|
-
|
|
24563
|
-
|
|
24564
|
-
|
|
24565
|
-
break;
|
|
24566
|
-
}
|
|
24567
|
-
_context.next = 10;
|
|
24568
|
-
return getDynamicDict(record.dictionaryCode);
|
|
24569
|
-
case 10:
|
|
24570
|
-
_context.t1 = _context.sent;
|
|
24571
|
-
_context.next = 14;
|
|
24651
|
+
}
|
|
24652
|
+
if (!(record.choiceType == 20)) {
|
|
24653
|
+
_context.next = 7;
|
|
24572
24654
|
break;
|
|
24573
|
-
|
|
24574
|
-
|
|
24575
|
-
|
|
24576
|
-
|
|
24577
|
-
|
|
24578
|
-
|
|
24579
|
-
|
|
24580
|
-
|
|
24581
|
-
|
|
24582
|
-
|
|
24583
|
-
|
|
24584
|
-
|
|
24655
|
+
}
|
|
24656
|
+
_context.t0 = getDictionarySource(record.dictionaryCode);
|
|
24657
|
+
_context.next = 15;
|
|
24658
|
+
break;
|
|
24659
|
+
case 7:
|
|
24660
|
+
if (!(record.choiceType == 30)) {
|
|
24661
|
+
_context.next = 13;
|
|
24662
|
+
break;
|
|
24663
|
+
}
|
|
24664
|
+
_context.next = 10;
|
|
24665
|
+
return getDynamicDict(record.dictionaryCode);
|
|
24666
|
+
case 10:
|
|
24667
|
+
_context.t1 = _context.sent;
|
|
24668
|
+
_context.next = 14;
|
|
24669
|
+
break;
|
|
24670
|
+
case 13:
|
|
24671
|
+
_context.t1 = [];
|
|
24672
|
+
case 14:
|
|
24673
|
+
_context.t0 = _context.t1;
|
|
24674
|
+
case 15:
|
|
24675
|
+
source = _context.t0;
|
|
24676
|
+
// @ts-ignore
|
|
24677
|
+
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
24678
|
+
case 17:
|
|
24679
|
+
case "end":
|
|
24680
|
+
return _context.stop();
|
|
24585
24681
|
}
|
|
24586
24682
|
}, _callee);
|
|
24587
24683
|
})));
|
|
@@ -24649,30 +24745,28 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
24649
24745
|
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
24650
24746
|
var form, values, name, relates, source;
|
|
24651
24747
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
24652
|
-
while (1) {
|
|
24653
|
-
|
|
24654
|
-
|
|
24655
|
-
|
|
24656
|
-
if (values[0]) {
|
|
24657
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
24658
|
-
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
24659
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
24660
|
-
}
|
|
24661
|
-
if (!values[1]) {
|
|
24662
|
-
_context2.next = 9;
|
|
24663
|
-
break;
|
|
24664
|
-
}
|
|
24665
|
-
_context2.next = 5;
|
|
24666
|
-
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
24667
|
-
case 5:
|
|
24668
|
-
source = _context2.sent;
|
|
24748
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
24749
|
+
case 0:
|
|
24750
|
+
form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
|
|
24751
|
+
if (values[0]) {
|
|
24669
24752
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
24670
24753
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
24671
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0],
|
|
24672
|
-
|
|
24673
|
-
|
|
24674
|
-
|
|
24675
|
-
|
|
24754
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
24755
|
+
}
|
|
24756
|
+
if (!values[1]) {
|
|
24757
|
+
_context2.next = 9;
|
|
24758
|
+
break;
|
|
24759
|
+
}
|
|
24760
|
+
_context2.next = 5;
|
|
24761
|
+
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
24762
|
+
case 5:
|
|
24763
|
+
source = _context2.sent;
|
|
24764
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
24765
|
+
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
24766
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
24767
|
+
case 9:
|
|
24768
|
+
case "end":
|
|
24769
|
+
return _context2.stop();
|
|
24676
24770
|
}
|
|
24677
24771
|
}, _callee2);
|
|
24678
24772
|
}));
|
|
@@ -25132,43 +25226,41 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
25132
25226
|
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
25133
25227
|
var values, name, form, source;
|
|
25134
25228
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
25135
|
-
while (1) {
|
|
25136
|
-
|
|
25137
|
-
|
|
25138
|
-
|
|
25139
|
-
|
|
25140
|
-
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
25141
|
-
form.setFieldVisible(name, false);
|
|
25142
|
-
}
|
|
25143
|
-
if (!(values[0] === 30)) {
|
|
25144
|
-
_context3.next = 10;
|
|
25145
|
-
break;
|
|
25146
|
-
}
|
|
25147
|
-
_context3.next = 5;
|
|
25148
|
-
return request$1({
|
|
25149
|
-
url: '/basic/dictDynamicItem/queryList',
|
|
25150
|
-
converter: function converter(_ref11) {
|
|
25151
|
-
var data = _ref11.data;
|
|
25152
|
-
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
25153
|
-
return {
|
|
25154
|
-
text: d.dictCode,
|
|
25155
|
-
value: d.dictCode
|
|
25156
|
-
};
|
|
25157
|
-
});
|
|
25158
|
-
}
|
|
25159
|
-
});
|
|
25160
|
-
case 5:
|
|
25161
|
-
source = _context3.sent;
|
|
25162
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
25163
|
-
form.setFieldVisible(name, true);
|
|
25164
|
-
_context3.next = 11;
|
|
25165
|
-
break;
|
|
25166
|
-
case 10:
|
|
25229
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
25230
|
+
case 0:
|
|
25231
|
+
values = _ref10.values, name = _ref10.name, form = _ref10.form;
|
|
25232
|
+
if (values[1] === 40) {
|
|
25233
|
+
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
25167
25234
|
form.setFieldVisible(name, false);
|
|
25168
|
-
|
|
25169
|
-
|
|
25170
|
-
|
|
25171
|
-
|
|
25235
|
+
}
|
|
25236
|
+
if (!(values[0] === 30)) {
|
|
25237
|
+
_context3.next = 10;
|
|
25238
|
+
break;
|
|
25239
|
+
}
|
|
25240
|
+
_context3.next = 5;
|
|
25241
|
+
return request$1({
|
|
25242
|
+
url: '/basic/dictDynamicItem/queryList',
|
|
25243
|
+
converter: function converter(_ref11) {
|
|
25244
|
+
var data = _ref11.data;
|
|
25245
|
+
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
25246
|
+
return {
|
|
25247
|
+
text: d.dictCode,
|
|
25248
|
+
value: d.dictCode
|
|
25249
|
+
};
|
|
25250
|
+
});
|
|
25251
|
+
}
|
|
25252
|
+
});
|
|
25253
|
+
case 5:
|
|
25254
|
+
source = _context3.sent;
|
|
25255
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
25256
|
+
form.setFieldVisible(name, true);
|
|
25257
|
+
_context3.next = 11;
|
|
25258
|
+
break;
|
|
25259
|
+
case 10:
|
|
25260
|
+
form.setFieldVisible(name, false);
|
|
25261
|
+
case 11:
|
|
25262
|
+
case "end":
|
|
25263
|
+
return _context3.stop();
|
|
25172
25264
|
}
|
|
25173
25265
|
}, _callee3);
|
|
25174
25266
|
}));
|
|
@@ -25357,66 +25449,64 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
25357
25449
|
var _ref$current4, _res$editableStatus;
|
|
25358
25450
|
var res, _res$defaultValue;
|
|
25359
25451
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
25360
|
-
while (1) {
|
|
25361
|
-
|
|
25362
|
-
|
|
25363
|
-
|
|
25364
|
-
|
|
25365
|
-
|
|
25366
|
-
|
|
25367
|
-
|
|
25368
|
-
|
|
25369
|
-
|
|
25370
|
-
res.
|
|
25371
|
-
|
|
25372
|
-
|
|
25373
|
-
|
|
25374
|
-
|
|
25375
|
-
|
|
25376
|
-
|
|
25377
|
-
|
|
25378
|
-
|
|
25379
|
-
|
|
25380
|
-
|
|
25381
|
-
|
|
25452
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
25453
|
+
case 0:
|
|
25454
|
+
_context4.next = 2;
|
|
25455
|
+
return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
|
|
25456
|
+
case 2:
|
|
25457
|
+
res = _context4.sent;
|
|
25458
|
+
res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
|
|
25459
|
+
res.fieldGroup = record.fieldGroup;
|
|
25460
|
+
res.businessType = record.businessType;
|
|
25461
|
+
res.info = {
|
|
25462
|
+
enumeration: res.enumeration,
|
|
25463
|
+
dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
|
|
25464
|
+
formula: res.formula,
|
|
25465
|
+
scale: res.scale,
|
|
25466
|
+
variable: res.variable
|
|
25467
|
+
};
|
|
25468
|
+
res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
|
|
25469
|
+
res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
|
|
25470
|
+
res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
|
|
25471
|
+
if (res.inputType === 40) {
|
|
25472
|
+
res.valueType = 22;
|
|
25473
|
+
}
|
|
25474
|
+
// 把数组处理成文本
|
|
25475
|
+
if (res.inputType === 30) {
|
|
25476
|
+
if (res.defaultValue) {
|
|
25477
|
+
res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
|
|
25382
25478
|
}
|
|
25383
|
-
|
|
25384
|
-
|
|
25385
|
-
|
|
25386
|
-
|
|
25387
|
-
|
|
25479
|
+
}
|
|
25480
|
+
res.fieldMapping = res.fieldMapping || '';
|
|
25481
|
+
delete res.formula;
|
|
25482
|
+
delete res.showValue;
|
|
25483
|
+
if (!(mode === 'create')) {
|
|
25484
|
+
_context4.next = 18;
|
|
25485
|
+
break;
|
|
25486
|
+
}
|
|
25487
|
+
request$1({
|
|
25488
|
+
url: "/basic/flow/businessField",
|
|
25489
|
+
method: 'POST',
|
|
25490
|
+
params: res,
|
|
25491
|
+
successMessage: '创建成功!',
|
|
25492
|
+
converter: function converter() {
|
|
25493
|
+
onParentOk();
|
|
25388
25494
|
}
|
|
25389
|
-
|
|
25390
|
-
|
|
25391
|
-
|
|
25392
|
-
|
|
25393
|
-
|
|
25394
|
-
|
|
25495
|
+
});
|
|
25496
|
+
return _context4.abrupt("return");
|
|
25497
|
+
case 18:
|
|
25498
|
+
request$1({
|
|
25499
|
+
url: "/basic/flow/businessField/".concat(record.id),
|
|
25500
|
+
method: 'PATCH',
|
|
25501
|
+
params: res,
|
|
25502
|
+
successMessage: '修改成功!',
|
|
25503
|
+
converter: function converter() {
|
|
25504
|
+
onParentOk();
|
|
25395
25505
|
}
|
|
25396
|
-
|
|
25397
|
-
|
|
25398
|
-
|
|
25399
|
-
|
|
25400
|
-
successMessage: '创建成功!',
|
|
25401
|
-
converter: function converter() {
|
|
25402
|
-
onParentOk();
|
|
25403
|
-
}
|
|
25404
|
-
});
|
|
25405
|
-
return _context4.abrupt("return");
|
|
25406
|
-
case 18:
|
|
25407
|
-
request$1({
|
|
25408
|
-
url: "/basic/flow/businessField/".concat(record.id),
|
|
25409
|
-
method: 'PATCH',
|
|
25410
|
-
params: res,
|
|
25411
|
-
successMessage: '修改成功!',
|
|
25412
|
-
converter: function converter() {
|
|
25413
|
-
onParentOk();
|
|
25414
|
-
}
|
|
25415
|
-
});
|
|
25416
|
-
case 19:
|
|
25417
|
-
case "end":
|
|
25418
|
-
return _context4.stop();
|
|
25419
|
-
}
|
|
25506
|
+
});
|
|
25507
|
+
case 19:
|
|
25508
|
+
case "end":
|
|
25509
|
+
return _context4.stop();
|
|
25420
25510
|
}
|
|
25421
25511
|
}, _callee4);
|
|
25422
25512
|
}));
|
|
@@ -26201,28 +26291,26 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
26201
26291
|
useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
26202
26292
|
var resData, data;
|
|
26203
26293
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26204
|
-
while (1) {
|
|
26205
|
-
|
|
26206
|
-
|
|
26207
|
-
|
|
26208
|
-
|
|
26209
|
-
|
|
26210
|
-
|
|
26211
|
-
|
|
26212
|
-
|
|
26213
|
-
|
|
26214
|
-
|
|
26215
|
-
|
|
26216
|
-
|
|
26217
|
-
|
|
26218
|
-
|
|
26219
|
-
|
|
26220
|
-
|
|
26221
|
-
|
|
26222
|
-
|
|
26223
|
-
|
|
26224
|
-
return _context.stop();
|
|
26225
|
-
}
|
|
26294
|
+
while (1) switch (_context.prev = _context.next) {
|
|
26295
|
+
case 0:
|
|
26296
|
+
if (!(!source && initRequestSource)) {
|
|
26297
|
+
_context.next = 6;
|
|
26298
|
+
break;
|
|
26299
|
+
}
|
|
26300
|
+
_context.next = 3;
|
|
26301
|
+
return initRequestSource();
|
|
26302
|
+
case 3:
|
|
26303
|
+
resData = _context.sent;
|
|
26304
|
+
data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
|
|
26305
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
26306
|
+
label: item.text,
|
|
26307
|
+
isLeaf: false
|
|
26308
|
+
});
|
|
26309
|
+
})) || [];
|
|
26310
|
+
setHandSource(data);
|
|
26311
|
+
case 6:
|
|
26312
|
+
case "end":
|
|
26313
|
+
return _context.stop();
|
|
26226
26314
|
}
|
|
26227
26315
|
}, _callee);
|
|
26228
26316
|
})), []);
|
|
@@ -26354,20 +26442,18 @@ function getRegularThresholdRange(_x) {
|
|
|
26354
26442
|
function _getRegularThresholdRange() {
|
|
26355
26443
|
_getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
26356
26444
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26357
|
-
while (1) {
|
|
26358
|
-
|
|
26359
|
-
|
|
26360
|
-
|
|
26361
|
-
|
|
26362
|
-
|
|
26363
|
-
|
|
26364
|
-
|
|
26365
|
-
|
|
26366
|
-
|
|
26367
|
-
|
|
26368
|
-
|
|
26369
|
-
return _context.stop();
|
|
26370
|
-
}
|
|
26445
|
+
while (1) switch (_context.prev = _context.next) {
|
|
26446
|
+
case 0:
|
|
26447
|
+
return _context.abrupt("return", axios({
|
|
26448
|
+
url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
|
|
26449
|
+
method: 'POST',
|
|
26450
|
+
data: _objectSpread2(_objectSpread2({}, params), {}, {
|
|
26451
|
+
queryIdentify: undefined
|
|
26452
|
+
})
|
|
26453
|
+
}));
|
|
26454
|
+
case 1:
|
|
26455
|
+
case "end":
|
|
26456
|
+
return _context.stop();
|
|
26371
26457
|
}
|
|
26372
26458
|
}, _callee);
|
|
26373
26459
|
}));
|
|
@@ -26506,137 +26592,136 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26506
26592
|
_this.getRegularThresholdRange(queryIdentify, propertyCode, queryIdentifyType);
|
|
26507
26593
|
});
|
|
26508
26594
|
};
|
|
26595
|
+
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
26509
26596
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
26510
26597
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
26511
26598
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
26512
26599
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26513
|
-
while (1) {
|
|
26514
|
-
|
|
26515
|
-
|
|
26516
|
-
|
|
26517
|
-
|
|
26518
|
-
|
|
26519
|
-
|
|
26520
|
-
|
|
26521
|
-
|
|
26522
|
-
|
|
26523
|
-
|
|
26524
|
-
|
|
26525
|
-
|
|
26526
|
-
|
|
26527
|
-
|
|
26528
|
-
|
|
26529
|
-
|
|
26530
|
-
|
|
26531
|
-
|
|
26532
|
-
|
|
26533
|
-
|
|
26534
|
-
|
|
26535
|
-
|
|
26536
|
-
|
|
26537
|
-
|
|
26538
|
-
|
|
26539
|
-
|
|
26540
|
-
|
|
26541
|
-
|
|
26542
|
-
|
|
26543
|
-
|
|
26544
|
-
|
|
26545
|
-
|
|
26546
|
-
|
|
26547
|
-
|
|
26548
|
-
|
|
26549
|
-
|
|
26550
|
-
|
|
26551
|
-
|
|
26552
|
-
|
|
26553
|
-
|
|
26554
|
-
|
|
26555
|
-
|
|
26556
|
-
|
|
26557
|
-
|
|
26558
|
-
|
|
26559
|
-
|
|
26560
|
-
|
|
26561
|
-
|
|
26562
|
-
|
|
26563
|
-
|
|
26564
|
-
|
|
26565
|
-
|
|
26566
|
-
|
|
26567
|
-
|
|
26568
|
-
|
|
26569
|
-
|
|
26570
|
-
|
|
26571
|
-
|
|
26572
|
-
|
|
26573
|
-
|
|
26574
|
-
|
|
26575
|
-
|
|
26576
|
-
|
|
26577
|
-
|
|
26578
|
-
|
|
26579
|
-
|
|
26580
|
-
|
|
26581
|
-
|
|
26582
|
-
|
|
26583
|
-
|
|
26584
|
-
}) : [];
|
|
26585
|
-
}
|
|
26586
|
-
if (queryIdentifyType === 'dynamicDictCodeIdentify') {
|
|
26587
|
-
var _handleData3;
|
|
26588
|
-
_handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
|
|
26589
|
-
return {
|
|
26590
|
-
code: i.code.toString(),
|
|
26591
|
-
name: i.name
|
|
26592
|
-
};
|
|
26593
|
-
}) : [];
|
|
26594
|
-
}
|
|
26595
|
-
_this.setState({
|
|
26596
|
-
thresholdList: _handleData
|
|
26597
|
-
});
|
|
26600
|
+
while (1) switch (_context.prev = _context.next) {
|
|
26601
|
+
case 0:
|
|
26602
|
+
if (queryIdentify) {
|
|
26603
|
+
_context.next = 2;
|
|
26604
|
+
break;
|
|
26605
|
+
}
|
|
26606
|
+
return _context.abrupt("return");
|
|
26607
|
+
case 2:
|
|
26608
|
+
thresholdQuery = _this.state.thresholdQuery;
|
|
26609
|
+
extraRequestUrl = '';
|
|
26610
|
+
querParams = setParams(propertyCode, thresholdQuery);
|
|
26611
|
+
if (!queryIdentityInfo.find(function (item) {
|
|
26612
|
+
return item.identity == propertyCode;
|
|
26613
|
+
})) {
|
|
26614
|
+
_context.next = 10;
|
|
26615
|
+
break;
|
|
26616
|
+
}
|
|
26617
|
+
//判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
|
|
26618
|
+
needQueryList = queryIdentityInfo.find(function (item) {
|
|
26619
|
+
return item.identity == propertyCode;
|
|
26620
|
+
}).queryParam.filter(function (item) {
|
|
26621
|
+
return item.isRequired;
|
|
26622
|
+
}).map(function (item) {
|
|
26623
|
+
return item.queryKey;
|
|
26624
|
+
});
|
|
26625
|
+
if (!needQueryList.some(function (item) {
|
|
26626
|
+
return !querParams[item] || !querParams[item].length;
|
|
26627
|
+
})) {
|
|
26628
|
+
_context.next = 9;
|
|
26629
|
+
break;
|
|
26630
|
+
}
|
|
26631
|
+
return _context.abrupt("return");
|
|
26632
|
+
case 9:
|
|
26633
|
+
extraRequestUrl = queryIdentityInfo.find(function (item) {
|
|
26634
|
+
return item.identity == propertyCode;
|
|
26635
|
+
}).requestUrl || '';
|
|
26636
|
+
case 10:
|
|
26637
|
+
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
26638
|
+
extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
|
|
26639
|
+
querParams = {
|
|
26640
|
+
dictCode: queryIdentify
|
|
26641
|
+
};
|
|
26642
|
+
} else if (queryIdentifyType === 'dynamicDictCodeIdentify') {
|
|
26643
|
+
extraRequestUrl = "dictDynamicItem/getDynamicData/".concat(queryIdentify); // 字典接口
|
|
26644
|
+
// querParams = { dictCode: queryIdentify }
|
|
26645
|
+
}
|
|
26646
|
+
if (!extraRequestUrl) {
|
|
26647
|
+
_context.next = 16;
|
|
26648
|
+
break;
|
|
26649
|
+
}
|
|
26650
|
+
if (queryIdentify == 'maintain_area_code') {
|
|
26651
|
+
extraRequestUrl = "/basic/".concat(extraRequestUrl).concat(querParams.memberCardCode, "?").concat(stringify(querParams));
|
|
26652
|
+
} else if (queryIdentifyType == 'dictCodeIdentify') {
|
|
26653
|
+
extraRequestUrl = "/basic/".concat(extraRequestUrl, "?").concat(stringify(querParams));
|
|
26654
|
+
} else if (queryIdentifyType == 'dynamicDictCodeIdentify') {
|
|
26655
|
+
extraRequestUrl = "/basic/".concat(extraRequestUrl);
|
|
26656
|
+
}
|
|
26657
|
+
request$1({
|
|
26658
|
+
url: extraRequestUrl,
|
|
26659
|
+
method: 'get',
|
|
26660
|
+
converter: function converter(res) {
|
|
26661
|
+
if (handleError(res)) {
|
|
26662
|
+
var _handleData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
26663
|
+
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
26664
|
+
var _handleData2;
|
|
26665
|
+
_handleData = ((_handleData2 = _handleData) === null || _handleData2 === void 0 ? void 0 : _handleData2.length) ? _handleData.map(function (i) {
|
|
26666
|
+
return {
|
|
26667
|
+
code: i.dictItemCode,
|
|
26668
|
+
name: i.dictItemName
|
|
26669
|
+
};
|
|
26670
|
+
}) : [];
|
|
26598
26671
|
}
|
|
26599
|
-
|
|
26672
|
+
if (queryIdentifyType === 'dynamicDictCodeIdentify') {
|
|
26673
|
+
var _handleData3;
|
|
26674
|
+
_handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
|
|
26675
|
+
return {
|
|
26676
|
+
code: i.code.toString(),
|
|
26677
|
+
name: i.name
|
|
26678
|
+
};
|
|
26679
|
+
}) : [];
|
|
26680
|
+
}
|
|
26681
|
+
_this.setState({
|
|
26682
|
+
thresholdList: _handleData
|
|
26683
|
+
});
|
|
26600
26684
|
}
|
|
26601
|
-
|
|
26602
|
-
_context.next = 29;
|
|
26603
|
-
break;
|
|
26604
|
-
case 16:
|
|
26605
|
-
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
26606
|
-
_context.next = 20;
|
|
26607
|
-
break;
|
|
26685
|
+
return handleData;
|
|
26608
26686
|
}
|
|
26609
|
-
|
|
26610
|
-
|
|
26611
|
-
|
|
26612
|
-
|
|
26687
|
+
});
|
|
26688
|
+
_context.next = 29;
|
|
26689
|
+
break;
|
|
26690
|
+
case 16:
|
|
26691
|
+
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
26692
|
+
_context.next = 20;
|
|
26613
26693
|
break;
|
|
26614
|
-
|
|
26615
|
-
|
|
26616
|
-
|
|
26617
|
-
|
|
26618
|
-
|
|
26619
|
-
|
|
26694
|
+
}
|
|
26695
|
+
_this.setState({
|
|
26696
|
+
thresholdList: queryIdentify
|
|
26697
|
+
});
|
|
26698
|
+
_context.next = 29;
|
|
26699
|
+
break;
|
|
26700
|
+
case 20:
|
|
26701
|
+
if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
|
|
26702
|
+
_context.next = 24;
|
|
26703
|
+
break;
|
|
26704
|
+
}
|
|
26705
|
+
// TODO待处理
|
|
26706
|
+
_this.setState({
|
|
26707
|
+
thresholdList: []
|
|
26708
|
+
});
|
|
26709
|
+
_context.next = 29;
|
|
26710
|
+
break;
|
|
26711
|
+
case 24:
|
|
26712
|
+
querParams.queryIdentify = queryIdentify;
|
|
26713
|
+
_context.next = 27;
|
|
26714
|
+
return getRegularThresholdRange(querParams);
|
|
26715
|
+
case 27:
|
|
26716
|
+
res = _context.sent;
|
|
26717
|
+
if (handleError(res)) {
|
|
26620
26718
|
_this.setState({
|
|
26621
|
-
thresholdList: []
|
|
26719
|
+
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
26622
26720
|
});
|
|
26623
|
-
|
|
26624
|
-
|
|
26625
|
-
|
|
26626
|
-
|
|
26627
|
-
_context.next = 27;
|
|
26628
|
-
return getRegularThresholdRange(querParams);
|
|
26629
|
-
case 27:
|
|
26630
|
-
res = _context.sent;
|
|
26631
|
-
if (handleError(res)) {
|
|
26632
|
-
_this.setState({
|
|
26633
|
-
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
26634
|
-
});
|
|
26635
|
-
}
|
|
26636
|
-
case 29:
|
|
26637
|
-
case "end":
|
|
26638
|
-
return _context.stop();
|
|
26639
|
-
}
|
|
26721
|
+
}
|
|
26722
|
+
case 29:
|
|
26723
|
+
case "end":
|
|
26724
|
+
return _context.stop();
|
|
26640
26725
|
}
|
|
26641
26726
|
}, _callee);
|
|
26642
26727
|
}));
|
|
@@ -27455,32 +27540,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27455
27540
|
notChangeOnSelect: true,
|
|
27456
27541
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
27457
27542
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
27458
|
-
while (1) {
|
|
27459
|
-
|
|
27460
|
-
|
|
27461
|
-
|
|
27462
|
-
|
|
27463
|
-
|
|
27464
|
-
|
|
27465
|
-
|
|
27466
|
-
|
|
27467
|
-
|
|
27468
|
-
|
|
27469
|
-
|
|
27470
|
-
|
|
27471
|
-
|
|
27472
|
-
|
|
27473
|
-
|
|
27474
|
-
|
|
27475
|
-
|
|
27476
|
-
|
|
27477
|
-
|
|
27478
|
-
|
|
27479
|
-
|
|
27480
|
-
|
|
27481
|
-
|
|
27482
|
-
return _context2.stop();
|
|
27483
|
-
}
|
|
27543
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
27544
|
+
case 0:
|
|
27545
|
+
_context2.next = 2;
|
|
27546
|
+
return request$1({
|
|
27547
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
27548
|
+
method: 'get',
|
|
27549
|
+
converter: function converter(_ref3) {
|
|
27550
|
+
var data = _ref3.data;
|
|
27551
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27552
|
+
return {
|
|
27553
|
+
text: item.name,
|
|
27554
|
+
value: item.id,
|
|
27555
|
+
level: item.level,
|
|
27556
|
+
id: item.id
|
|
27557
|
+
};
|
|
27558
|
+
}) : [];
|
|
27559
|
+
return handleData;
|
|
27560
|
+
}
|
|
27561
|
+
});
|
|
27562
|
+
case 2:
|
|
27563
|
+
return _context2.abrupt("return", _context2.sent);
|
|
27564
|
+
case 3:
|
|
27565
|
+
case "end":
|
|
27566
|
+
return _context2.stop();
|
|
27484
27567
|
}
|
|
27485
27568
|
}, _callee2);
|
|
27486
27569
|
})),
|
|
@@ -27506,32 +27589,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27506
27589
|
notChangeOnSelect: true,
|
|
27507
27590
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
27508
27591
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
27509
|
-
while (1) {
|
|
27510
|
-
|
|
27511
|
-
|
|
27512
|
-
|
|
27513
|
-
|
|
27514
|
-
|
|
27515
|
-
|
|
27516
|
-
|
|
27517
|
-
|
|
27518
|
-
|
|
27519
|
-
|
|
27520
|
-
|
|
27521
|
-
|
|
27522
|
-
|
|
27523
|
-
|
|
27524
|
-
|
|
27525
|
-
|
|
27526
|
-
|
|
27527
|
-
|
|
27528
|
-
|
|
27529
|
-
|
|
27530
|
-
|
|
27531
|
-
|
|
27532
|
-
|
|
27533
|
-
return _context3.stop();
|
|
27534
|
-
}
|
|
27592
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
27593
|
+
case 0:
|
|
27594
|
+
_context3.next = 2;
|
|
27595
|
+
return request$1({
|
|
27596
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
27597
|
+
method: 'get',
|
|
27598
|
+
converter: function converter(_ref5) {
|
|
27599
|
+
var data = _ref5.data;
|
|
27600
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27601
|
+
return {
|
|
27602
|
+
text: item.name,
|
|
27603
|
+
value: item.id,
|
|
27604
|
+
level: item.level,
|
|
27605
|
+
id: item.id
|
|
27606
|
+
};
|
|
27607
|
+
}) : [];
|
|
27608
|
+
return handleData;
|
|
27609
|
+
}
|
|
27610
|
+
});
|
|
27611
|
+
case 2:
|
|
27612
|
+
return _context3.abrupt("return", _context3.sent);
|
|
27613
|
+
case 3:
|
|
27614
|
+
case "end":
|
|
27615
|
+
return _context3.stop();
|
|
27535
27616
|
}
|
|
27536
27617
|
}, _callee3);
|
|
27537
27618
|
})),
|
|
@@ -27559,32 +27640,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27559
27640
|
notChangeOnSelect: true,
|
|
27560
27641
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
27561
27642
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
27562
|
-
while (1) {
|
|
27563
|
-
|
|
27564
|
-
|
|
27565
|
-
|
|
27566
|
-
|
|
27567
|
-
|
|
27568
|
-
|
|
27569
|
-
|
|
27570
|
-
|
|
27571
|
-
|
|
27572
|
-
|
|
27573
|
-
|
|
27574
|
-
|
|
27575
|
-
|
|
27576
|
-
|
|
27577
|
-
|
|
27578
|
-
|
|
27579
|
-
|
|
27580
|
-
|
|
27581
|
-
|
|
27582
|
-
|
|
27583
|
-
|
|
27584
|
-
|
|
27585
|
-
|
|
27586
|
-
return _context4.stop();
|
|
27587
|
-
}
|
|
27643
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
27644
|
+
case 0:
|
|
27645
|
+
_context4.next = 2;
|
|
27646
|
+
return request$1({
|
|
27647
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
27648
|
+
method: 'get',
|
|
27649
|
+
converter: function converter(_ref7) {
|
|
27650
|
+
var data = _ref7.data;
|
|
27651
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27652
|
+
return {
|
|
27653
|
+
text: item.name,
|
|
27654
|
+
value: item.id,
|
|
27655
|
+
level: item.level,
|
|
27656
|
+
id: item.id
|
|
27657
|
+
};
|
|
27658
|
+
}) : [];
|
|
27659
|
+
return handleData;
|
|
27660
|
+
}
|
|
27661
|
+
});
|
|
27662
|
+
case 2:
|
|
27663
|
+
return _context4.abrupt("return", _context4.sent);
|
|
27664
|
+
case 3:
|
|
27665
|
+
case "end":
|
|
27666
|
+
return _context4.stop();
|
|
27588
27667
|
}
|
|
27589
27668
|
}, _callee4);
|
|
27590
27669
|
})),
|
|
@@ -28701,8 +28780,6 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
28701
28780
|
});
|
|
28702
28781
|
}
|
|
28703
28782
|
}
|
|
28704
|
-
|
|
28705
|
-
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
28706
28783
|
}, {
|
|
28707
28784
|
key: "render",
|
|
28708
28785
|
value: function render() {
|
|
@@ -29533,6 +29610,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29533
29610
|
callBack(ruleClassData);
|
|
29534
29611
|
});
|
|
29535
29612
|
};
|
|
29613
|
+
// 树结构 转化成 平行树 (递归函数)
|
|
29536
29614
|
_this.coverToParallel = function (treeData, result) {
|
|
29537
29615
|
treeData.forEach(function (el) {
|
|
29538
29616
|
result.push(el);
|
|
@@ -29788,6 +29866,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29788
29866
|
callBack(ruleClassData);
|
|
29789
29867
|
});
|
|
29790
29868
|
};
|
|
29869
|
+
// 场景需要返回值2022.11.15
|
|
29791
29870
|
_this.renderResItem = function (itemDetail, parentDetail, ruleReturnConfig, classDataIndex, disabled, boxStyle) {
|
|
29792
29871
|
var _ruleReturnConfig$rig;
|
|
29793
29872
|
var isShowResponse = itemDetail.response['enable'];
|
|
@@ -30085,32 +30164,30 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30085
30164
|
notChangeOnSelect: true,
|
|
30086
30165
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30087
30166
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30088
|
-
while (1) {
|
|
30089
|
-
|
|
30090
|
-
|
|
30091
|
-
|
|
30092
|
-
|
|
30093
|
-
|
|
30094
|
-
|
|
30095
|
-
|
|
30096
|
-
|
|
30097
|
-
|
|
30098
|
-
|
|
30099
|
-
|
|
30100
|
-
|
|
30101
|
-
|
|
30102
|
-
|
|
30103
|
-
|
|
30104
|
-
|
|
30105
|
-
|
|
30106
|
-
|
|
30107
|
-
|
|
30108
|
-
|
|
30109
|
-
|
|
30110
|
-
|
|
30111
|
-
|
|
30112
|
-
return _context.stop();
|
|
30113
|
-
}
|
|
30167
|
+
while (1) switch (_context.prev = _context.next) {
|
|
30168
|
+
case 0:
|
|
30169
|
+
_context.next = 2;
|
|
30170
|
+
return request$1({
|
|
30171
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
30172
|
+
method: 'get',
|
|
30173
|
+
converter: function converter(_ref2) {
|
|
30174
|
+
var data = _ref2.data;
|
|
30175
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
30176
|
+
return {
|
|
30177
|
+
text: item.name,
|
|
30178
|
+
value: item.id,
|
|
30179
|
+
level: item.level,
|
|
30180
|
+
id: item.id
|
|
30181
|
+
};
|
|
30182
|
+
}) : [];
|
|
30183
|
+
return handleData;
|
|
30184
|
+
}
|
|
30185
|
+
});
|
|
30186
|
+
case 2:
|
|
30187
|
+
return _context.abrupt("return", _context.sent);
|
|
30188
|
+
case 3:
|
|
30189
|
+
case "end":
|
|
30190
|
+
return _context.stop();
|
|
30114
30191
|
}
|
|
30115
30192
|
}, _callee);
|
|
30116
30193
|
})),
|
|
@@ -30444,6 +30521,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30444
30521
|
}
|
|
30445
30522
|
}, "\u65B0\u589E\u8FD4\u56DE\u503C")), isHaveRuleReturnConfig && _this.renderResItem(itemDetail, parentDetail, ruleReturnConfig, classDataIndex, disabled, RuleActionItemStyle) || null, isHaveRuleTypeData && _this.renderActionList(itemDetail, parentDetail, handleRuleTypeData, selectRuleActionData, classDataIndex, disabled, RuleActionItemStyle) || null);
|
|
30446
30523
|
};
|
|
30524
|
+
//添加同一层级条件
|
|
30447
30525
|
_this.addPeerRule = function (itemDetail) {
|
|
30448
30526
|
var ruleClassData = _this.state.ruleClassData;
|
|
30449
30527
|
var _this$props4 = _this.props,
|
|
@@ -30464,6 +30542,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30464
30542
|
callBack(ruleClassData);
|
|
30465
30543
|
});
|
|
30466
30544
|
};
|
|
30545
|
+
//添加子层级条件
|
|
30467
30546
|
_this.addChildRules = function (itemDetail) {
|
|
30468
30547
|
var ruleClassData = _this.state.ruleClassData;
|
|
30469
30548
|
var callBack = _this.props.callBack;
|
|
@@ -30539,6 +30618,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30539
30618
|
callBack(ruleClassData);
|
|
30540
30619
|
});
|
|
30541
30620
|
};
|
|
30621
|
+
// 新增执行顺序
|
|
30542
30622
|
_this.handleSelectRuleAction = function (keys, classDataIndex, callback) {
|
|
30543
30623
|
callback();
|
|
30544
30624
|
var callBack = _this.props.callBack;
|
|
@@ -30689,4 +30769,4 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30689
30769
|
return RuleObjectComponent;
|
|
30690
30770
|
}(Component);
|
|
30691
30771
|
|
|
30692
|
-
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, BillEntry, BsCascader, index$
|
|
30772
|
+
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 };
|