@bit-sun/business-component 2.3.14 → 2.3.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +16 -16
- package/.fatherrc.ts +5 -5
- package/.gitlab-ci.yml +179 -179
- package/.prettierignore +7 -7
- package/.prettierrc +11 -11
- package/.umirc.ts +74 -74
- package/README.md +27 -27
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
- package/dist/components/Business/SearchSelect/index.d.ts +1 -1
- package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
- package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
- package/dist/index.esm.js +965 -1002
- package/dist/index.js +971 -1008
- package/dist/utils/utils.d.ts +1 -1
- package/docs/index.md +21 -21
- package/lib/assets/drag.svg +17 -17
- package/lib/assets/exportFail.svg +37 -37
- package/lib/assets/exportProcessing.svg +28 -28
- package/lib/assets/exportSuccess.svg +34 -34
- package/lib/assets/label_icon_bottom.svg +25 -25
- package/lib/assets/upExport.svg +22 -22
- package/package.json +78 -78
- package/src/assets/32.svg +27 -27
- package/src/assets/addIcon.svg +17 -17
- package/src/assets/allfunc.svg +27 -27
- package/src/assets/arrowRight.svg +24 -24
- package/src/assets/btn-delete.svg +29 -29
- package/src/assets/btn-edit.svg +19 -19
- package/src/assets/btn-more.svg +17 -17
- package/src/assets/btn-submit.svg +19 -19
- package/src/assets/caidan.svg +11 -11
- package/src/assets/close.svg +26 -26
- package/src/assets/drag.svg +17 -17
- package/src/assets/exportFail.svg +37 -37
- package/src/assets/exportProcessing.svg +28 -28
- package/src/assets/exportSuccess.svg +34 -34
- package/src/assets/fixed-left-active.svg +11 -11
- package/src/assets/fixed-left.svg +15 -15
- package/src/assets/fixed-right-active.svg +11 -11
- package/src/assets/fixed-right.svg +15 -15
- package/src/assets/guanbi.svg +15 -15
- package/src/assets/icon-quanping.svg +15 -15
- package/src/assets/icon-shezhi.svg +17 -17
- package/src/assets/label_icon_bottom.svg +25 -25
- package/src/assets/list-no-img.svg +21 -21
- package/src/assets/morentouxiang-32.svg +23 -23
- package/src/assets/scanning.svg +24 -24
- package/src/assets/upExport.svg +22 -22
- package/src/common/ENUM.ts +41 -41
- package/src/components/Business/AddSelectBusiness/index.md +161 -161
- package/src/components/Business/AddSelectBusiness/index.tsx +861 -861
- package/src/components/Business/BsLayouts/Components/AllFunc/drawContent.tsx +111 -111
- package/src/components/Business/BsLayouts/Components/AllFunc/index.less +153 -153
- package/src/components/Business/BsLayouts/Components/AllFunc/index.tsx +70 -70
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.less +90 -90
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.tsx +37 -37
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.tsx +242 -242
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.tsx +384 -384
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.tsx +285 -285
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.tsx +74 -74
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/drawContent.less +170 -170
- package/src/components/Business/BsLayouts/Components/CustomerMenu/index.less +64 -64
- package/src/components/Business/BsLayouts/Components/CustomerMenu/index.tsx +153 -153
- package/src/components/Business/BsLayouts/Components/GlobalHeader/index.less +72 -72
- package/src/components/Business/BsLayouts/Components/GlobalHeader/index.tsx +157 -157
- package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +85 -85
- package/src/components/Business/BsLayouts/Components/RightContent/home.less +218 -218
- package/src/components/Business/BsLayouts/Components/RightContent/index.tsx +155 -155
- package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +160 -160
- package/src/components/Business/BsLayouts/Components/SearchFunc/index.tsx +75 -75
- package/src/components/Business/BsLayouts/index.less +79 -79
- package/src/components/Business/BsLayouts/index.tsx +1484 -1484
- package/src/components/Business/BsLayouts/service.ts +10 -10
- package/src/components/Business/BsLayouts/utils.tsx +203 -203
- package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +564 -564
- package/src/components/Business/BsSulaQueryTable/index.less +221 -221
- package/src/components/Business/BsSulaQueryTable/index.tsx +535 -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 +688 -688
- package/src/components/Business/CommodityEntry/index.md +70 -70
- package/src/components/Business/CommodityEntry/index.tsx +80 -80
- package/src/components/Business/CommonAlert/index.tsx +23 -23
- package/src/components/Business/CommonGuideWrapper/index.less +111 -111
- package/src/components/Business/CommonGuideWrapper/index.md +39 -39
- package/src/components/Business/CommonGuideWrapper/index.tsx +83 -83
- package/src/components/Business/DetailPageWrapper/index.less +79 -79
- package/src/components/Business/DetailPageWrapper/index.tsx +313 -313
- package/src/components/Business/DetailPageWrapper/utils.tsx +100 -100
- package/src/components/Business/HomePageWrapper/index.less +33 -33
- package/src/components/Business/HomePageWrapper/index.md +45 -45
- package/src/components/Business/HomePageWrapper/index.tsx +162 -162
- package/src/components/Business/JsonQueryTable/components/FieldsModifyModal.tsx +824 -824
- package/src/components/Business/JsonQueryTable/components/FieldsSettingsTable.tsx +205 -205
- package/src/components/Business/JsonQueryTable/components/Formula.tsx +205 -205
- package/src/components/Business/JsonQueryTable/components/MaintainOptions.tsx +127 -127
- package/src/components/Business/JsonQueryTable/configButton/index.js +20 -20
- package/src/components/Business/JsonQueryTable/configTree/component/compactArrayView.js +25 -25
- package/src/components/Business/JsonQueryTable/configTree/component/compactObjectView.js +30 -30
- package/src/components/Business/JsonQueryTable/configTree/index.js +82 -82
- package/src/components/Business/JsonQueryTable/configTree/index.less +44 -44
- package/src/components/Business/JsonQueryTable/configTree/parser/highlight.js +57 -57
- package/src/components/Business/JsonQueryTable/configTree/parser/index.js +124 -124
- package/src/components/Business/JsonQueryTable/configTree/render/iconRender.js +29 -29
- package/src/components/Business/JsonQueryTable/configTree/render/nameRender.js +22 -22
- package/src/components/Business/JsonQueryTable/configTree/treeNode.js +116 -116
- package/src/components/Business/JsonQueryTable/drawer/index.tsx +12 -12
- package/src/components/Business/JsonQueryTable/function.ts +62 -62
- package/src/components/Business/JsonQueryTable/index.less +16 -16
- package/src/components/Business/JsonQueryTable/index.md +328 -328
- package/src/components/Business/JsonQueryTable/index.tsx +535 -535
- package/src/components/Business/JsonQueryTable/jsonEditor/index.js +346 -346
- package/src/components/Business/JsonQueryTable/jsonEditor/index.less +22 -22
- package/src/components/Business/JsonQueryTable/jsonEditor/lint/basicType.js +147 -147
- package/src/components/Business/JsonQueryTable/jsonEditor/lint/index.js +389 -389
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/actions.js +118 -118
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/dependency.js +22 -22
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/index.js +21 -21
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/request.js +65 -65
- package/src/components/Business/JsonQueryTable/static.ts +390 -390
- package/src/components/Business/SearchSelect/BusinessUtils.ts +1756 -1756
- package/src/components/Business/SearchSelect/common.ts +64 -64
- package/src/components/Business/SearchSelect/index.md +1326 -1326
- package/src/components/Business/SearchSelect/index.tsx +51 -51
- package/src/components/Business/SearchSelect/utils.ts +100 -100
- package/src/components/Business/StateFlow/index.less +130 -130
- package/src/components/Business/StateFlow/index.md +60 -60
- package/src/components/Business/StateFlow/index.tsx +29 -29
- package/src/components/Business/TreeSearchSelect/index.md +154 -154
- package/src/components/Business/TreeSearchSelect/index.tsx +33 -33
- package/src/components/Business/TreeSearchSelect/utils.ts +75 -75
- package/src/components/Business/columnSettingTable/columnSetting.tsx +764 -764
- package/src/components/Business/columnSettingTable/index.less +247 -247
- package/src/components/Business/columnSettingTable/index.md +357 -357
- package/src/components/Business/columnSettingTable/index.tsx +232 -232
- package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +240 -240
- package/src/components/Business/columnSettingTable/utils.tsx +68 -68
- package/src/components/Business/moreTreeTable/FixedScrollBar.tsx +86 -86
- package/src/components/Business/moreTreeTable/hooks/useSticky.ts +21 -21
- package/src/components/Business/moreTreeTable/index.less +99 -99
- package/src/components/Business/moreTreeTable/index.md +448 -448
- package/src/components/Business/moreTreeTable/index.tsx +387 -387
- package/src/components/Business/moreTreeTable/utils.ts +126 -126
- package/src/components/Functional/AddSelect/helps.ts +14 -14
- package/src/components/Functional/AddSelect/index.less +367 -367
- package/src/components/Functional/AddSelect/index.md +155 -155
- package/src/components/Functional/AddSelect/index.tsx +1279 -1279
- package/src/components/Functional/BillEntry/index.less +371 -371
- package/src/components/Functional/BillEntry/index.md +39 -39
- package/src/components/Functional/BillEntry/index.tsx +772 -772
- package/src/components/Functional/BsAntdSula/BsCascader/index.md +62 -62
- package/src/components/Functional/BsAntdSula/BsCascader/index.tsx +178 -178
- package/src/components/Functional/BsAntdSula/index.ts +2 -2
- package/src/components/Functional/DataImport/index.less +63 -63
- package/src/components/Functional/DataImport/index.md +44 -44
- package/src/components/Functional/DataImport/index.tsx +695 -695
- package/src/components/Functional/DataValidation/index.less +63 -63
- package/src/components/Functional/DataValidation/index.md +39 -39
- package/src/components/Functional/DataValidation/index.tsx +687 -687
- package/src/components/Functional/EllipsisTooltip/index.d.ts +5 -5
- package/src/components/Functional/EllipsisTooltip/index.js +36 -36
- package/src/components/Functional/EllipsisTooltip/index.md +30 -30
- package/src/components/Functional/ExportFunctions/ExportIcon/index.md +37 -37
- package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +59 -59
- package/src/components/Functional/QueryMutipleInput/index.less +37 -37
- package/src/components/Functional/QueryMutipleInput/index.md +33 -33
- package/src/components/Functional/QueryMutipleInput/index.tsx +128 -128
- package/src/components/Functional/SearchSelect/index.less +115 -115
- package/src/components/Functional/SearchSelect/index.md +141 -141
- package/src/components/Functional/SearchSelect/index.tsx +870 -874
- package/src/components/Functional/SearchSelect/utils.ts +3 -3
- package/src/components/Functional/TreeSearchSelect/index.md +47 -47
- package/src/components/Functional/TreeSearchSelect/index.tsx +163 -163
- package/src/components/Solution/RuleComponent/Formula.tsx +335 -335
- package/src/components/Solution/RuleComponent/index.d.ts +29 -29
- package/src/components/Solution/RuleComponent/index.js +2028 -2028
- package/src/components/Solution/RuleComponent/index.less +230 -230
- package/src/components/Solution/RuleComponent/renderSpecificAction.js +99 -99
- package/src/components/Solution/RuleComponent/ruleFiled.js +2107 -2107
- package/src/components/Solution/RuleComponent/services.ts +13 -13
- package/src/components/Solution/RuleComponent/util.js +139 -139
- package/src/index.ts +38 -38
- package/src/plugin/TableColumnSetting/index.less +247 -247
- package/src/plugin/TableColumnSetting/index.md +50 -50
- package/src/plugin/TableColumnSetting/index.tsx +724 -724
- package/src/plugin/TableColumnSetting/utils.ts +19 -19
- package/src/styles/bsDefault.less +1912 -1912
- package/src/utils/CheckOneUser/index.md +39 -39
- package/src/utils/CheckOneUser/index.ts +51 -51
- package/src/utils/LocalstorageUtils.ts +90 -90
- package/src/utils/TableUtils.tsx +18 -18
- package/src/utils/checkUtils.ts +39 -39
- package/src/utils/enumConfig.ts +11 -11
- package/src/utils/getFormMode.js +12 -12
- package/src/utils/index.ts +4 -4
- package/src/utils/requestUtils.ts +34 -34
- package/src/utils/serialize.js +7 -7
- package/src/utils/utils.ts +212 -212
- package/tsconfig.json +29 -29
- package/typings.d.ts +4 -4
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ var axios = require('axios');
|
|
|
6
6
|
var antd = require('antd');
|
|
7
7
|
var _ = require('lodash');
|
|
8
8
|
var umi = require('umi');
|
|
9
|
-
var isEqual
|
|
9
|
+
var isEqual = require('lodash/isEqual');
|
|
10
10
|
var React = require('react');
|
|
11
11
|
var moment$1 = require('moment');
|
|
12
12
|
var icons = require('@ant-design/icons');
|
|
@@ -33,7 +33,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
33
33
|
|
|
34
34
|
var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
|
|
35
35
|
var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
|
|
36
|
-
var isEqual__default = /*#__PURE__*/_interopDefaultLegacy(isEqual
|
|
36
|
+
var isEqual__default = /*#__PURE__*/_interopDefaultLegacy(isEqual);
|
|
37
37
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
38
38
|
var moment__default = /*#__PURE__*/_interopDefaultLegacy(moment$1);
|
|
39
39
|
var ProLayout__default = /*#__PURE__*/_interopDefaultLegacy(ProLayout);
|
|
@@ -781,52 +781,41 @@ var precisionQuantity = function precisionQuantity(num, accuracy) {
|
|
|
781
781
|
return '';
|
|
782
782
|
};
|
|
783
783
|
|
|
784
|
-
var
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
function
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
784
|
+
var simpleIsEqual = function simpleIsEqual(a, b) {
|
|
785
|
+
return a === b;
|
|
786
|
+
};
|
|
787
|
+
|
|
788
|
+
function index$1 (resultFn, isEqual) {
|
|
789
|
+
if (isEqual === void 0) {
|
|
790
|
+
isEqual = simpleIsEqual;
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
var lastThis;
|
|
794
|
+
var lastArgs = [];
|
|
795
|
+
var lastResult;
|
|
796
|
+
var calledOnce = false;
|
|
797
|
+
|
|
798
|
+
var isNewArgEqualToLast = function isNewArgEqualToLast(newArg, index) {
|
|
799
|
+
return isEqual(newArg, lastArgs[index], index);
|
|
800
|
+
};
|
|
801
|
+
|
|
802
|
+
var result = function result() {
|
|
803
|
+
for (var _len = arguments.length, newArgs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
804
|
+
newArgs[_key] = arguments[_key];
|
|
800
805
|
}
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
}
|
|
806
|
+
|
|
807
|
+
if (calledOnce && lastThis === this && newArgs.length === lastArgs.length && newArgs.every(isNewArgEqualToLast)) {
|
|
808
|
+
return lastResult;
|
|
805
809
|
}
|
|
806
|
-
return true;
|
|
807
|
-
}
|
|
808
810
|
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
818
|
-
newArgs[_i] = arguments[_i];
|
|
819
|
-
}
|
|
820
|
-
if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {
|
|
821
|
-
return lastResult;
|
|
822
|
-
}
|
|
823
|
-
lastResult = resultFn.apply(this, newArgs);
|
|
824
|
-
calledOnce = true;
|
|
825
|
-
lastThis = this;
|
|
826
|
-
lastArgs = newArgs;
|
|
827
|
-
return lastResult;
|
|
828
|
-
}
|
|
829
|
-
return memoized;
|
|
811
|
+
lastResult = resultFn.apply(this, newArgs);
|
|
812
|
+
calledOnce = true;
|
|
813
|
+
lastThis = this;
|
|
814
|
+
lastArgs = newArgs;
|
|
815
|
+
return lastResult;
|
|
816
|
+
};
|
|
817
|
+
|
|
818
|
+
return result;
|
|
830
819
|
}
|
|
831
820
|
|
|
832
821
|
function styleInject(css, ref) {
|
|
@@ -1040,58 +1029,59 @@ var getItemDefaultWidth = function getItemDefaultWidth(item) {
|
|
|
1040
1029
|
* @returns 返回处理后的查询参数
|
|
1041
1030
|
*/
|
|
1042
1031
|
function queryParams(params, flag) {
|
|
1043
|
-
|
|
1032
|
+
var _loop = function _loop() {
|
|
1044
1033
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
params[value] = moment__default['default'](element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
1069
|
-
} else {
|
|
1070
|
-
params[value] = moment__default['default'](element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
1071
|
-
}
|
|
1072
|
-
});
|
|
1073
|
-
delete params[key];
|
|
1074
|
-
} else if (element && key.indexOf('*') >= 0) {
|
|
1075
|
-
var _dataParams4 = key.split('*');
|
|
1076
|
-
_dataParams4.forEach(function (value, index) {
|
|
1077
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
1078
|
-
});
|
|
1079
|
-
delete params[key];
|
|
1080
|
-
} else if (element && key.indexOf('_likeIn_') >= 0) {
|
|
1081
|
-
var _dataParams5 = key.split('_likeIn_');
|
|
1082
|
-
if (element.indexOf(',') >= 0) {
|
|
1083
|
-
params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
|
|
1084
|
-
params["qp-".concat(_dataParams5[0], "-like")] = null;
|
|
1034
|
+
var element = params[key];
|
|
1035
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
1036
|
+
var dataParams = key.split('*number*');
|
|
1037
|
+
dataParams.forEach(function (value, index) {
|
|
1038
|
+
params[value] = element[index];
|
|
1039
|
+
});
|
|
1040
|
+
delete params[key];
|
|
1041
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
1042
|
+
var _dataParams = key.split('*address*');
|
|
1043
|
+
_dataParams.forEach(function (value, index) {
|
|
1044
|
+
params[value] = element.PCDCode[index];
|
|
1045
|
+
});
|
|
1046
|
+
delete params[key];
|
|
1047
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
1048
|
+
var _dataParams2 = key.split('*costType*');
|
|
1049
|
+
// eslint-disable-next-line prefer-destructuring
|
|
1050
|
+
params[_dataParams2[0]] = element[1];
|
|
1051
|
+
delete params[key];
|
|
1052
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
1053
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
1054
|
+
_dataParams3.forEach(function (value, index) {
|
|
1055
|
+
if (index === 0) {
|
|
1056
|
+
params[value] = moment__default['default'](element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
1085
1057
|
} else {
|
|
1086
|
-
params[
|
|
1087
|
-
params["qp-".concat(_dataParams5[0], "-in")] = null;
|
|
1058
|
+
params[value] = moment__default['default'](element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
1088
1059
|
}
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1060
|
+
});
|
|
1061
|
+
delete params[key];
|
|
1062
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
1063
|
+
var _dataParams4 = key.split('*');
|
|
1064
|
+
_dataParams4.forEach(function (value, index) {
|
|
1065
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
1066
|
+
});
|
|
1067
|
+
delete params[key];
|
|
1068
|
+
} else if (element && key.indexOf('_likeIn_') >= 0) {
|
|
1069
|
+
var _dataParams5 = key.split('_likeIn_');
|
|
1070
|
+
if (element.indexOf(',') >= 0) {
|
|
1071
|
+
params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
|
|
1072
|
+
params["qp-".concat(_dataParams5[0], "-like")] = null;
|
|
1073
|
+
} else {
|
|
1074
|
+
params["qp-".concat(_dataParams5[0], "-like")] = element;
|
|
1075
|
+
params["qp-".concat(_dataParams5[0], "-in")] = null;
|
|
1092
1076
|
}
|
|
1093
|
-
|
|
1077
|
+
delete params[key];
|
|
1078
|
+
} else if (Array.isArray(element)) {
|
|
1079
|
+
params[key] = element.join(',');
|
|
1080
|
+
}
|
|
1094
1081
|
}
|
|
1082
|
+
};
|
|
1083
|
+
for (var key in params) {
|
|
1084
|
+
_loop();
|
|
1095
1085
|
}
|
|
1096
1086
|
return flag ? params : qs.stringify(params);
|
|
1097
1087
|
}
|
|
@@ -1137,7 +1127,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1137
1127
|
return item;
|
|
1138
1128
|
});
|
|
1139
1129
|
};
|
|
1140
|
-
var memoizeOneFormatter =
|
|
1130
|
+
var memoizeOneFormatter = index$1(formatter, isEqual__default['default']);
|
|
1141
1131
|
var go2BackAndClose = function go2BackAndClose() {
|
|
1142
1132
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1143
1133
|
umi.history.goBack();
|
|
@@ -2730,8 +2720,8 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
2730
2720
|
setSelectedRowKeys = _useState24[1];
|
|
2731
2721
|
var _useState25 = React.useState([]),
|
|
2732
2722
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
2733
|
-
|
|
2734
|
-
|
|
2723
|
+
selectedRows = _useState26[0],
|
|
2724
|
+
setSelectedRows = _useState26[1];
|
|
2735
2725
|
var _useState27 = React.useState(false),
|
|
2736
2726
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
2737
2727
|
checkedAll = _useState28[0],
|
|
@@ -2787,6 +2777,7 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
2787
2777
|
var getData = function getData() {
|
|
2788
2778
|
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
2789
2779
|
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
2780
|
+
var callback = arguments.length > 2 ? arguments[2] : undefined;
|
|
2790
2781
|
if (!requestConfig) return;
|
|
2791
2782
|
setFetching(true);
|
|
2792
2783
|
// 处理dependence参数
|
|
@@ -2818,84 +2809,85 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
2818
2809
|
});
|
|
2819
2810
|
}
|
|
2820
2811
|
// 数组对象处理,对带有特殊标记的name进行处理
|
|
2821
|
-
|
|
2812
|
+
var _loop = function _loop() {
|
|
2822
2813
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
2849
|
-
}
|
|
2850
|
-
});
|
|
2851
|
-
delete params[key];
|
|
2852
|
-
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
2853
|
-
var _dataParams4 = key.split('*checkBox*');
|
|
2854
|
-
if (element) {
|
|
2855
|
-
params[_dataParams4[0]] = 0;
|
|
2814
|
+
var element = params[key];
|
|
2815
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
2816
|
+
var dataParams = key.split('*number*');
|
|
2817
|
+
dataParams.forEach(function (value, index) {
|
|
2818
|
+
params[value] = element[index];
|
|
2819
|
+
});
|
|
2820
|
+
delete params[key];
|
|
2821
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
2822
|
+
var _dataParams = key.split('*address*');
|
|
2823
|
+
_dataParams.forEach(function (value, index) {
|
|
2824
|
+
params[value] = element.PCDCode[index];
|
|
2825
|
+
});
|
|
2826
|
+
delete params[key];
|
|
2827
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
2828
|
+
var _dataParams2 = key.split('*costType*');
|
|
2829
|
+
// eslint-disable-next-line prefer-destructuring
|
|
2830
|
+
params[_dataParams2[0]] = element[1];
|
|
2831
|
+
delete params[key];
|
|
2832
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
2833
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
2834
|
+
_dataParams3.forEach(function (value, index) {
|
|
2835
|
+
if (index === 0) {
|
|
2836
|
+
params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
2837
|
+
} else {
|
|
2838
|
+
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
2856
2839
|
}
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
_dataParams7.forEach(function (value, index) {
|
|
2875
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
2876
|
-
});
|
|
2877
|
-
delete params[key];
|
|
2878
|
-
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
2879
|
-
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
2880
|
-
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
2881
|
-
if (params[key][0] === 'range') {
|
|
2882
|
-
if (params[key][1][0]) {
|
|
2883
|
-
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
2884
|
-
}
|
|
2885
|
-
if (params[key][1][1]) {
|
|
2886
|
-
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
2887
|
-
}
|
|
2840
|
+
});
|
|
2841
|
+
delete params[key];
|
|
2842
|
+
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
2843
|
+
var _dataParams4 = key.split('*checkBox*');
|
|
2844
|
+
if (element) {
|
|
2845
|
+
params[_dataParams4[0]] = 0;
|
|
2846
|
+
}
|
|
2847
|
+
delete params[key];
|
|
2848
|
+
} else if (element && key.indexOf('*cascader*') >= 0) {
|
|
2849
|
+
var _dataParams5 = key.split('*cascader*');
|
|
2850
|
+
params[_dataParams5[0]] = element[element.length - 1];
|
|
2851
|
+
delete params[key];
|
|
2852
|
+
} else if (element && key.indexOf('*date*') >= 0) {
|
|
2853
|
+
var _dataParams6 = key.split('*date*');
|
|
2854
|
+
_dataParams6.forEach(function (value, index) {
|
|
2855
|
+
if (index === 0) {
|
|
2856
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
2888
2857
|
} else {
|
|
2889
|
-
params[
|
|
2858
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
2890
2859
|
}
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2860
|
+
});
|
|
2861
|
+
delete params[key];
|
|
2862
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
2863
|
+
var _dataParams7 = key.split('*');
|
|
2864
|
+
_dataParams7.forEach(function (value, index) {
|
|
2865
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
2866
|
+
});
|
|
2867
|
+
delete params[key];
|
|
2868
|
+
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
2869
|
+
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
2870
|
+
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
2871
|
+
if (params[key][0] === 'range') {
|
|
2872
|
+
if (params[key][1][0]) {
|
|
2873
|
+
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
2874
|
+
}
|
|
2875
|
+
if (params[key][1][1]) {
|
|
2876
|
+
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
2877
|
+
}
|
|
2878
|
+
} else {
|
|
2879
|
+
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
2896
2880
|
}
|
|
2897
|
-
|
|
2881
|
+
delete params[key];
|
|
2882
|
+
} else if (Array.isArray(element)) {
|
|
2883
|
+
params[key] = element.join(',');
|
|
2884
|
+
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
2885
|
+
delete params[key];
|
|
2886
|
+
}
|
|
2898
2887
|
}
|
|
2888
|
+
};
|
|
2889
|
+
for (var key in params) {
|
|
2890
|
+
_loop();
|
|
2899
2891
|
}
|
|
2900
2892
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
2901
2893
|
pageSize: pageSize,
|
|
@@ -2961,18 +2953,22 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
2961
2953
|
})) : [];
|
|
2962
2954
|
}
|
|
2963
2955
|
source = Array.isArray(source) ? source : [];
|
|
2964
|
-
if (
|
|
2965
|
-
|
|
2966
|
-
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(resultSourceKey, source);
|
|
2967
|
-
setItems(source);
|
|
2968
|
-
setItemsTotal(Number((res === null || res === void 0 ? void 0 : res.total) || (res === null || res === void 0 ? void 0 : res.totalCount) || source.length));
|
|
2956
|
+
if (callback) {
|
|
2957
|
+
callback(source);
|
|
2969
2958
|
} else {
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
}
|
|
2959
|
+
if (type === 1) {
|
|
2960
|
+
var _ctx$form;
|
|
2961
|
+
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(resultSourceKey, source);
|
|
2962
|
+
setItems(source);
|
|
2963
|
+
setItemsTotal(Number((res === null || res === void 0 ? void 0 : res.total) || (res === null || res === void 0 ? void 0 : res.totalCount) || source.length));
|
|
2964
|
+
} else {
|
|
2965
|
+
setTableData(source);
|
|
2966
|
+
setTablePagination(_objectSpread2(_objectSpread2({}, tablePagination), {}, {
|
|
2967
|
+
total: Number((res === null || res === void 0 ? void 0 : res.total) || (res === null || res === void 0 ? void 0 : res.totalCount) || source.length),
|
|
2968
|
+
pageSize: Number((res === null || res === void 0 ? void 0 : res.size) || (res === null || res === void 0 ? void 0 : res.pageSize) || (params === null || params === void 0 ? void 0 : params.pageSize) || pageSize),
|
|
2969
|
+
current: Number((res === null || res === void 0 ? void 0 : res.page) || (res === null || res === void 0 ? void 0 : res.currentPage) || (params === null || params === void 0 ? void 0 : params.currentPage) || currentPage)
|
|
2970
|
+
}));
|
|
2971
|
+
}
|
|
2976
2972
|
}
|
|
2977
2973
|
}).catch(function (err) {
|
|
2978
2974
|
setFetching(false);
|
|
@@ -3031,6 +3027,13 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3031
3027
|
setSelectedRowKeys(labelInValue ? value.map(function (i) {
|
|
3032
3028
|
return i.key;
|
|
3033
3029
|
}) : value);
|
|
3030
|
+
setSelectedRows(labelInValue ? value.map(function (i) {
|
|
3031
|
+
var _ref4;
|
|
3032
|
+
return _ref4 = {}, _defineProperty(_ref4, mappingValueField, i.key), _defineProperty(_ref4, "value", i.key), _defineProperty(_ref4, "text", i.label), _ref4;
|
|
3033
|
+
}) : value.map(function (i) {
|
|
3034
|
+
var _ref5;
|
|
3035
|
+
return _ref5 = {}, _defineProperty(_ref5, mappingValueField, i), _defineProperty(_ref5, "value", i), _ref5;
|
|
3036
|
+
}));
|
|
3034
3037
|
setPopValue(labelInValue ? value.map(function (i) {
|
|
3035
3038
|
return {
|
|
3036
3039
|
value: i.key,
|
|
@@ -3043,12 +3046,10 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3043
3046
|
}));
|
|
3044
3047
|
setIndeterminate(!!value.length && value.length < itemsTotal);
|
|
3045
3048
|
setCheckedAll(itemsTotal && value.length === itemsTotal);
|
|
3046
|
-
// 需清空数据
|
|
3047
|
-
if (!value.length) {
|
|
3048
|
-
setDoubleArr([]);
|
|
3049
|
-
}
|
|
3050
3049
|
} else {
|
|
3050
|
+
var _ref6, _ref7;
|
|
3051
3051
|
setSelectedRowKeys(labelInValue ? [value.key] : [value]);
|
|
3052
|
+
setSelectedRows(labelInValue ? [(_ref6 = {}, _defineProperty(_ref6, mappingValueField, value.key), _defineProperty(_ref6, "value", value.key), _defineProperty(_ref6, "text", value.label), _ref6)] : [(_ref7 = {}, _defineProperty(_ref7, mappingValueField, value), _defineProperty(_ref7, "value", value), _ref7)]);
|
|
3052
3053
|
setPopValue(labelInValue ? [{
|
|
3053
3054
|
value: value.key,
|
|
3054
3055
|
text: value.label
|
|
@@ -3098,7 +3099,7 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3098
3099
|
setTableData([]);
|
|
3099
3100
|
setTablePagination(tableInitPagination);
|
|
3100
3101
|
setSelectedRowKeys([]);
|
|
3101
|
-
|
|
3102
|
+
setSelectedRows([]);
|
|
3102
3103
|
setCheckedAll(false);
|
|
3103
3104
|
setIndeterminate(false);
|
|
3104
3105
|
};
|
|
@@ -3161,25 +3162,39 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3161
3162
|
currentPage: pagination.current
|
|
3162
3163
|
}), 2);
|
|
3163
3164
|
};
|
|
3165
|
+
var onCheckAllData = function onCheckAllData(pSize) {
|
|
3166
|
+
getData(_objectSpread2(_objectSpread2({}, tableFormParams), {}, {
|
|
3167
|
+
pageSize: pSize,
|
|
3168
|
+
currentPage: 1
|
|
3169
|
+
}), 2, function (source) {
|
|
3170
|
+
var currentItemsData = JSON.parse(JSON.stringify(source));
|
|
3171
|
+
setSelectedRowKeys(currentItemsData.map(function (i) {
|
|
3172
|
+
return i.value;
|
|
3173
|
+
}));
|
|
3174
|
+
setPopValue(currentItemsData);
|
|
3175
|
+
setSelectedRows(currentItemsData);
|
|
3176
|
+
});
|
|
3177
|
+
};
|
|
3164
3178
|
var onChangeCheckAll = function onChangeCheckAll(e) {
|
|
3165
3179
|
if (e.target.checked) {
|
|
3166
3180
|
// 如果下拉框有所有数据就处理选中所有【items.length === itemsTotal】(最多可选100条)
|
|
3167
3181
|
// 如果超过100条 就默认查出所有数据
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3182
|
+
if (items.length < itemsTotal) {
|
|
3183
|
+
var totalPage = Math.ceil(itemsTotal / (tablePagination === null || tablePagination === void 0 ? void 0 : tablePagination.pageSize));
|
|
3184
|
+
var allPageSize = totalPage * (tablePagination === null || tablePagination === void 0 ? void 0 : tablePagination.pageSize);
|
|
3185
|
+
onCheckAllData(allPageSize);
|
|
3186
|
+
} else {
|
|
3187
|
+
var currentItemsData = JSON.parse(JSON.stringify(items));
|
|
3188
|
+
setSelectedRowKeys(currentItemsData.map(function (i) {
|
|
3189
|
+
return i.value;
|
|
3190
|
+
}));
|
|
3191
|
+
setPopValue(currentItemsData);
|
|
3192
|
+
setSelectedRows(currentItemsData);
|
|
3172
3193
|
}
|
|
3173
|
-
setDoubleArr(doubleArr);
|
|
3174
|
-
setSelectedRowKeys(currentItemsData.map(function (i) {
|
|
3175
|
-
return i.value;
|
|
3176
|
-
}));
|
|
3177
|
-
setPopValue(currentItemsData);
|
|
3178
|
-
if (items.length < itemsTotal) ;
|
|
3179
3194
|
} else {
|
|
3180
3195
|
setSelectedRowKeys([]);
|
|
3181
3196
|
setPopValue([]);
|
|
3182
|
-
|
|
3197
|
+
setSelectedRows([]);
|
|
3183
3198
|
}
|
|
3184
3199
|
setIndeterminate(false);
|
|
3185
3200
|
setCheckedAll(e.target.checked);
|
|
@@ -3205,54 +3220,21 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3205
3220
|
}
|
|
3206
3221
|
}));
|
|
3207
3222
|
};
|
|
3208
|
-
// 扁平化二维数组的方法
|
|
3209
|
-
var mapRows = function mapRows(params) {
|
|
3210
|
-
var res = [];
|
|
3211
|
-
for (var i = 0; i < params.length; i++) {
|
|
3212
|
-
if (Array.isArray(params[i])) {
|
|
3213
|
-
// 去重
|
|
3214
|
-
res = ___default['default'].uniqBy(res.concat(mapRows(params[i])), 'value');
|
|
3215
|
-
} else {
|
|
3216
|
-
res.push(params[i]);
|
|
3217
|
-
// 去重
|
|
3218
|
-
res = ___default['default'].uniqBy(res, 'value');
|
|
3219
|
-
}
|
|
3220
|
-
}
|
|
3221
|
-
return res.filter(Boolean); //去掉undefined的情况
|
|
3222
|
-
};
|
|
3223
3223
|
|
|
3224
3224
|
var onChangeSelectedKeys = function onChangeSelectedKeys(selectKeys, selectRows) {
|
|
3225
|
-
var
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
// console.log(doubleArr)
|
|
3233
|
-
setDoubleArr(doubleArr);
|
|
3234
|
-
// 这块扁平化成为一位数组
|
|
3235
|
-
filterRows = mapRows(doubleArr);
|
|
3236
|
-
// console.log(filterRows)
|
|
3237
|
-
sksResult = filterRows.map(function (i) {
|
|
3238
|
-
return i.value;
|
|
3239
|
-
});
|
|
3240
|
-
} else {
|
|
3241
|
-
// 处理单选
|
|
3242
|
-
filterRows = selectRows;
|
|
3243
|
-
sksResult = selectRows.map(function (i) {
|
|
3244
|
-
return i.value;
|
|
3245
|
-
});
|
|
3246
|
-
// 单选 默认直接选中 不需要确定 配置了modalRadioNeedFooter就需要确定
|
|
3247
|
-
if (!(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.modalRadioNeedFooter)) {
|
|
3248
|
-
handleSelectOver(filterRows);
|
|
3249
|
-
handleCancel();
|
|
3250
|
-
}
|
|
3225
|
+
var sksResult = selectRows.map(function (i) {
|
|
3226
|
+
return i.value;
|
|
3227
|
+
});
|
|
3228
|
+
// 单选 默认直接选中 不需要确定 配置了modalRadioNeedFooter就需要确定
|
|
3229
|
+
if (!selectMode && !(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.modalRadioNeedFooter)) {
|
|
3230
|
+
handleSelectOver(selectRows);
|
|
3231
|
+
handleCancel();
|
|
3251
3232
|
}
|
|
3252
3233
|
setSelectedRowKeys(sksResult);
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3234
|
+
setSelectedRows(selectRows);
|
|
3235
|
+
setPopValue(selectRows);
|
|
3236
|
+
setIndeterminate(!!selectRows.length && selectRows.length < (tablePagination === null || tablePagination === void 0 ? void 0 : tablePagination.total));
|
|
3237
|
+
setCheckedAll(selectRows.length === (tablePagination === null || tablePagination === void 0 ? void 0 : tablePagination.total));
|
|
3256
3238
|
};
|
|
3257
3239
|
// 生成唯一值
|
|
3258
3240
|
var makeUniqueValue = function makeUniqueValue() {
|
|
@@ -3263,8 +3245,21 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3263
3245
|
var rowSelection = {
|
|
3264
3246
|
type: selectMode ? 'checkbox' : 'radio',
|
|
3265
3247
|
selectedRowKeys: selectedRowKeys,
|
|
3248
|
+
preserveSelectedRowKeys: true,
|
|
3266
3249
|
onChange: function onChange(sks, srs) {
|
|
3267
|
-
|
|
3250
|
+
// 处理翻页后,之前存储的selectedRows变为undefined
|
|
3251
|
+
// selectedRows合并新数组,过滤undefined,过滤留下对应selectedRowKeys的集合
|
|
3252
|
+
var tmpSelectedRows = selectedRows.concat(srs).filter(function (item) {
|
|
3253
|
+
return item != undefined;
|
|
3254
|
+
});
|
|
3255
|
+
var totalSelectedRows = sks.map(function (key) {
|
|
3256
|
+
return tmpSelectedRows.filter(function (item) {
|
|
3257
|
+
return item[mappingValueField] == key;
|
|
3258
|
+
})[0];
|
|
3259
|
+
}).filter(function (item) {
|
|
3260
|
+
return item != undefined;
|
|
3261
|
+
});
|
|
3262
|
+
onChangeSelectedKeys(sks, totalSelectedRows);
|
|
3268
3263
|
},
|
|
3269
3264
|
getCheckboxProps: function getCheckboxProps() {
|
|
3270
3265
|
return {
|
|
@@ -4558,76 +4553,74 @@ var AddSelect = function AddSelect(props) {
|
|
|
4558
4553
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
4559
4554
|
var result;
|
|
4560
4555
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
4561
|
-
while (1) {
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
_context.next = 3;
|
|
4568
|
-
break;
|
|
4569
|
-
}
|
|
4570
|
-
antd.message.warning('相同skc配码不可设置相同哦');
|
|
4571
|
-
return _context.abrupt("return", false);
|
|
4572
|
-
case 3:
|
|
4573
|
-
if (!(bType == 'spu')) {
|
|
4574
|
-
_context.next = 26;
|
|
4575
|
-
break;
|
|
4576
|
-
}
|
|
4577
|
-
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
4578
|
-
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
4579
|
-
}))) {
|
|
4580
|
-
_context.next = 7;
|
|
4581
|
-
break;
|
|
4582
|
-
}
|
|
4583
|
-
antd.message.warning('相同商品相同配码颜色不可设置相同哦');
|
|
4584
|
-
return _context.abrupt("return", false);
|
|
4585
|
-
case 7:
|
|
4586
|
-
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
4587
|
-
_context.next = 10;
|
|
4588
|
-
break;
|
|
4589
|
-
}
|
|
4590
|
-
antd.message.warning('请先选择颜色!');
|
|
4591
|
-
return _context.abrupt("return", false);
|
|
4592
|
-
case 10:
|
|
4593
|
-
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
4594
|
-
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
4595
|
-
}))) {
|
|
4596
|
-
_context.next = 13;
|
|
4597
|
-
break;
|
|
4598
|
-
}
|
|
4599
|
-
antd.message.warning('相同商品相同颜色配码不可设置相同哦');
|
|
4600
|
-
return _context.abrupt("return", false);
|
|
4601
|
-
case 13:
|
|
4602
|
-
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
4603
|
-
_context.next = 26;
|
|
4604
|
-
break;
|
|
4605
|
-
}
|
|
4606
|
-
result = true;
|
|
4607
|
-
_context.prev = 15;
|
|
4608
|
-
_context.next = 18;
|
|
4609
|
-
return checkSpuMatchCode({
|
|
4610
|
-
skcCode: recordItem[recordKey],
|
|
4611
|
-
matchingCode: changeValue,
|
|
4612
|
-
ext1: recordItem.colorName
|
|
4613
|
-
});
|
|
4614
|
-
case 18:
|
|
4615
|
-
result = _context.sent;
|
|
4616
|
-
result = true;
|
|
4617
|
-
_context.next = 25;
|
|
4556
|
+
while (1) switch (_context.prev = _context.next) {
|
|
4557
|
+
case 0:
|
|
4558
|
+
if (!(bType == 'skc' && tList.some(function (i) {
|
|
4559
|
+
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
4560
|
+
}))) {
|
|
4561
|
+
_context.next = 3;
|
|
4618
4562
|
break;
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4563
|
+
}
|
|
4564
|
+
antd.message.warning('相同skc配码不可设置相同哦');
|
|
4565
|
+
return _context.abrupt("return", false);
|
|
4566
|
+
case 3:
|
|
4567
|
+
if (!(bType == 'spu')) {
|
|
4568
|
+
_context.next = 26;
|
|
4569
|
+
break;
|
|
4570
|
+
}
|
|
4571
|
+
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
4572
|
+
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
4573
|
+
}))) {
|
|
4574
|
+
_context.next = 7;
|
|
4575
|
+
break;
|
|
4576
|
+
}
|
|
4577
|
+
antd.message.warning('相同商品相同配码颜色不可设置相同哦');
|
|
4578
|
+
return _context.abrupt("return", false);
|
|
4579
|
+
case 7:
|
|
4580
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
4581
|
+
_context.next = 10;
|
|
4582
|
+
break;
|
|
4583
|
+
}
|
|
4584
|
+
antd.message.warning('请先选择颜色!');
|
|
4585
|
+
return _context.abrupt("return", false);
|
|
4586
|
+
case 10:
|
|
4587
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
4588
|
+
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
4589
|
+
}))) {
|
|
4590
|
+
_context.next = 13;
|
|
4591
|
+
break;
|
|
4592
|
+
}
|
|
4593
|
+
antd.message.warning('相同商品相同颜色配码不可设置相同哦');
|
|
4594
|
+
return _context.abrupt("return", false);
|
|
4595
|
+
case 13:
|
|
4596
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
4597
|
+
_context.next = 26;
|
|
4598
|
+
break;
|
|
4599
|
+
}
|
|
4600
|
+
result = true;
|
|
4601
|
+
_context.prev = 15;
|
|
4602
|
+
_context.next = 18;
|
|
4603
|
+
return checkSpuMatchCode({
|
|
4604
|
+
skcCode: recordItem[recordKey],
|
|
4605
|
+
matchingCode: changeValue,
|
|
4606
|
+
ext1: recordItem.colorName
|
|
4607
|
+
});
|
|
4608
|
+
case 18:
|
|
4609
|
+
result = _context.sent;
|
|
4610
|
+
result = true;
|
|
4611
|
+
_context.next = 25;
|
|
4612
|
+
break;
|
|
4613
|
+
case 22:
|
|
4614
|
+
_context.prev = 22;
|
|
4615
|
+
_context.t0 = _context["catch"](15);
|
|
4616
|
+
result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
|
|
4617
|
+
case 25:
|
|
4618
|
+
return _context.abrupt("return", result);
|
|
4619
|
+
case 26:
|
|
4620
|
+
return _context.abrupt("return", true);
|
|
4621
|
+
case 27:
|
|
4622
|
+
case "end":
|
|
4623
|
+
return _context.stop();
|
|
4631
4624
|
}
|
|
4632
4625
|
}, _callee, null, [[15, 22]]);
|
|
4633
4626
|
}));
|
|
@@ -4819,29 +4812,27 @@ var AddSelect = function AddSelect(props) {
|
|
|
4819
4812
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
4820
4813
|
var isConformToTheRules, newPopValue;
|
|
4821
4814
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
4822
|
-
while (1) {
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4815
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
4816
|
+
case 0:
|
|
4817
|
+
_context2.next = 2;
|
|
4818
|
+
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
4819
|
+
case 2:
|
|
4820
|
+
isConformToTheRules = _context2.sent;
|
|
4821
|
+
if (isConformToTheRules) {
|
|
4822
|
+
record[item.dataIndex] = value;
|
|
4823
|
+
} else {
|
|
4824
|
+
record[item.dataIndex] = null;
|
|
4825
|
+
}
|
|
4826
|
+
newPopValue = popvalue.map(function (i, innerIndex) {
|
|
4827
|
+
if (innerIndex == index) {
|
|
4828
|
+
i[item.dataIndex] = record[item.dataIndex];
|
|
4833
4829
|
}
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
setPopValue(newPopValue);
|
|
4841
|
-
case 6:
|
|
4842
|
-
case "end":
|
|
4843
|
-
return _context2.stop();
|
|
4844
|
-
}
|
|
4830
|
+
return i;
|
|
4831
|
+
});
|
|
4832
|
+
setPopValue(newPopValue);
|
|
4833
|
+
case 6:
|
|
4834
|
+
case "end":
|
|
4835
|
+
return _context2.stop();
|
|
4845
4836
|
}
|
|
4846
4837
|
}, _callee2);
|
|
4847
4838
|
}));
|
|
@@ -4901,84 +4892,85 @@ var AddSelect = function AddSelect(props) {
|
|
|
4901
4892
|
});
|
|
4902
4893
|
}
|
|
4903
4894
|
// 数组对象处理,对带有特殊标记的name进行处理
|
|
4904
|
-
|
|
4895
|
+
var _loop = function _loop() {
|
|
4905
4896
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
4906
|
-
|
|
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
|
-
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
4932
|
-
}
|
|
4933
|
-
});
|
|
4934
|
-
delete params[key];
|
|
4935
|
-
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
4936
|
-
var _dataParams4 = key.split('*checkBox*');
|
|
4937
|
-
if (element) {
|
|
4938
|
-
params[_dataParams4[0]] = 0;
|
|
4897
|
+
var element = params[key];
|
|
4898
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
4899
|
+
var dataParams = key.split('*number*');
|
|
4900
|
+
dataParams.forEach(function (value, index) {
|
|
4901
|
+
params[value] = element[index];
|
|
4902
|
+
});
|
|
4903
|
+
delete params[key];
|
|
4904
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
4905
|
+
var _dataParams = key.split('*address*');
|
|
4906
|
+
_dataParams.forEach(function (value, index) {
|
|
4907
|
+
params[value] = element.PCDCode[index];
|
|
4908
|
+
});
|
|
4909
|
+
delete params[key];
|
|
4910
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
4911
|
+
var _dataParams2 = key.split('*costType*');
|
|
4912
|
+
// eslint-disable-next-line prefer-destructuring
|
|
4913
|
+
params[_dataParams2[0]] = element[1];
|
|
4914
|
+
delete params[key];
|
|
4915
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
4916
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
4917
|
+
_dataParams3.forEach(function (value, index) {
|
|
4918
|
+
if (index === 0) {
|
|
4919
|
+
params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
4920
|
+
} else {
|
|
4921
|
+
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
4939
4922
|
}
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
_dataParams7.forEach(function (value, index) {
|
|
4958
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
4959
|
-
});
|
|
4960
|
-
delete params[key];
|
|
4961
|
-
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
4962
|
-
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
4963
|
-
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
4964
|
-
if (params[key][0] === 'range') {
|
|
4965
|
-
if (params[key][1][0]) {
|
|
4966
|
-
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
4967
|
-
}
|
|
4968
|
-
if (params[key][1][1]) {
|
|
4969
|
-
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
4970
|
-
}
|
|
4923
|
+
});
|
|
4924
|
+
delete params[key];
|
|
4925
|
+
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
4926
|
+
var _dataParams4 = key.split('*checkBox*');
|
|
4927
|
+
if (element) {
|
|
4928
|
+
params[_dataParams4[0]] = 0;
|
|
4929
|
+
}
|
|
4930
|
+
delete params[key];
|
|
4931
|
+
} else if (element && key.indexOf('*cascader*') >= 0) {
|
|
4932
|
+
var _dataParams5 = key.split('*cascader*');
|
|
4933
|
+
params[_dataParams5[0]] = element[element.length - 1];
|
|
4934
|
+
delete params[key];
|
|
4935
|
+
} else if (element && key.indexOf('*date*') >= 0) {
|
|
4936
|
+
var _dataParams6 = key.split('*date*');
|
|
4937
|
+
_dataParams6.forEach(function (value, index) {
|
|
4938
|
+
if (index === 0) {
|
|
4939
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
4971
4940
|
} else {
|
|
4972
|
-
params[
|
|
4941
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
4942
|
+
}
|
|
4943
|
+
});
|
|
4944
|
+
delete params[key];
|
|
4945
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
4946
|
+
var _dataParams7 = key.split('*');
|
|
4947
|
+
_dataParams7.forEach(function (value, index) {
|
|
4948
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
4949
|
+
});
|
|
4950
|
+
delete params[key];
|
|
4951
|
+
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
4952
|
+
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
4953
|
+
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
4954
|
+
if (params[key][0] === 'range') {
|
|
4955
|
+
if (params[key][1][0]) {
|
|
4956
|
+
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
4973
4957
|
}
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
} else
|
|
4978
|
-
|
|
4958
|
+
if (params[key][1][1]) {
|
|
4959
|
+
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
4960
|
+
}
|
|
4961
|
+
} else {
|
|
4962
|
+
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
4979
4963
|
}
|
|
4980
|
-
|
|
4964
|
+
delete params[key];
|
|
4965
|
+
} else if (Array.isArray(element)) {
|
|
4966
|
+
params[key] = element.join(',');
|
|
4967
|
+
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
4968
|
+
delete params[key];
|
|
4969
|
+
}
|
|
4981
4970
|
}
|
|
4971
|
+
};
|
|
4972
|
+
for (var key in params) {
|
|
4973
|
+
_loop();
|
|
4982
4974
|
}
|
|
4983
4975
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
4984
4976
|
pageSize: pageSize,
|
|
@@ -6433,72 +6425,70 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
6433
6425
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
6434
6426
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
6435
6427
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
6436
|
-
while (1) {
|
|
6437
|
-
|
|
6438
|
-
|
|
6439
|
-
|
|
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
|
-
messageInfo
|
|
6476
|
-
|
|
6477
|
-
|
|
6478
|
-
|
|
6479
|
-
|
|
6480
|
-
|
|
6481
|
-
|
|
6482
|
-
|
|
6483
|
-
|
|
6484
|
-
|
|
6485
|
-
|
|
6486
|
-
|
|
6487
|
-
|
|
6488
|
-
|
|
6489
|
-
|
|
6490
|
-
antd.message.success(initSuccessMessage);
|
|
6491
|
-
}
|
|
6428
|
+
while (1) switch (_context.prev = _context.next) {
|
|
6429
|
+
case 0:
|
|
6430
|
+
if (data === null || data === void 0 ? void 0 : data.length) {
|
|
6431
|
+
_context.next = 3;
|
|
6432
|
+
break;
|
|
6433
|
+
}
|
|
6434
|
+
antd.message.warning('至少录入一条数据');
|
|
6435
|
+
return _context.abrupt("return");
|
|
6436
|
+
case 3:
|
|
6437
|
+
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
6438
|
+
return d.skuCode && d.name;
|
|
6439
|
+
})) {
|
|
6440
|
+
_context.next = 6;
|
|
6441
|
+
break;
|
|
6442
|
+
}
|
|
6443
|
+
antd.message.warning('请选择商品!');
|
|
6444
|
+
return _context.abrupt("return");
|
|
6445
|
+
case 6:
|
|
6446
|
+
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
6447
|
+
return d.count;
|
|
6448
|
+
})) {
|
|
6449
|
+
_context.next = 9;
|
|
6450
|
+
break;
|
|
6451
|
+
}
|
|
6452
|
+
antd.message.warning('请填写商品数量!');
|
|
6453
|
+
return _context.abrupt("return");
|
|
6454
|
+
case 9:
|
|
6455
|
+
_context.next = 11;
|
|
6456
|
+
return isSkuCanEntry(data);
|
|
6457
|
+
case 11:
|
|
6458
|
+
canEntryObject = _context.sent;
|
|
6459
|
+
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
6460
|
+
_context.next = 16;
|
|
6461
|
+
break;
|
|
6462
|
+
}
|
|
6463
|
+
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) {
|
|
6464
|
+
return /*#__PURE__*/React__default['default'].createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
|
|
6465
|
+
}));
|
|
6466
|
+
messageInfo && antd.message.warning({
|
|
6467
|
+
content: messageInfo,
|
|
6468
|
+
duration: 6
|
|
6469
|
+
});
|
|
6470
|
+
return _context.abrupt("return");
|
|
6471
|
+
case 16:
|
|
6472
|
+
setLoading(true);
|
|
6473
|
+
onSaveCallback(data).then(function (res) {
|
|
6474
|
+
{
|
|
6475
|
+
var _Object$keys;
|
|
6476
|
+
var initSuccessMessage = '保存成功';
|
|
6477
|
+
var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
|
|
6478
|
+
if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
|
|
6479
|
+
(rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? antd.message.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
|
|
6480
|
+
} else {
|
|
6481
|
+
antd.message.success(initSuccessMessage);
|
|
6492
6482
|
}
|
|
6493
|
-
|
|
6494
|
-
|
|
6495
|
-
|
|
6496
|
-
|
|
6497
|
-
|
|
6498
|
-
|
|
6499
|
-
|
|
6500
|
-
|
|
6501
|
-
|
|
6483
|
+
}
|
|
6484
|
+
setLoading(false);
|
|
6485
|
+
}).catch(function (Error) {
|
|
6486
|
+
antd.message.error(Error);
|
|
6487
|
+
setLoading(false);
|
|
6488
|
+
});
|
|
6489
|
+
case 18:
|
|
6490
|
+
case "end":
|
|
6491
|
+
return _context.stop();
|
|
6502
6492
|
}
|
|
6503
6493
|
}, _callee);
|
|
6504
6494
|
}));
|
|
@@ -9690,7 +9680,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
9690
9680
|
* @LastEditTime: 2022-01-14 17:17:26
|
|
9691
9681
|
* @LastEditors: rodchen
|
|
9692
9682
|
*/
|
|
9693
|
-
var index$
|
|
9683
|
+
var index$2 = (function (storageKeyString) {
|
|
9694
9684
|
var seconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
|
|
9695
9685
|
var tipsCallFunction = arguments.length > 2 ? arguments[2] : undefined;
|
|
9696
9686
|
if (typeof seconds !== 'number') throw new Error('seconds should be number');
|
|
@@ -9811,44 +9801,42 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
9811
9801
|
var _ctx$form;
|
|
9812
9802
|
var resData, coverData, data, dataList;
|
|
9813
9803
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9814
|
-
while (1) {
|
|
9815
|
-
|
|
9816
|
-
|
|
9817
|
-
|
|
9818
|
-
|
|
9819
|
-
_context.next = 13;
|
|
9820
|
-
break;
|
|
9821
|
-
}
|
|
9822
|
-
data = resData.data;
|
|
9823
|
-
if (!remoteSource.converter) {
|
|
9824
|
-
_context.next = 9;
|
|
9825
|
-
break;
|
|
9826
|
-
}
|
|
9827
|
-
_context.next = 6;
|
|
9828
|
-
return remoteSource.converter({
|
|
9829
|
-
data: [data]
|
|
9830
|
-
});
|
|
9831
|
-
case 6:
|
|
9832
|
-
coverData = _context.sent;
|
|
9833
|
-
_context.next = 11;
|
|
9804
|
+
while (1) switch (_context.prev = _context.next) {
|
|
9805
|
+
case 0:
|
|
9806
|
+
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
9807
|
+
if (!(resData.status === '0' || resData.code === '000000')) {
|
|
9808
|
+
_context.next = 13;
|
|
9834
9809
|
break;
|
|
9835
|
-
|
|
9836
|
-
|
|
9837
|
-
|
|
9838
|
-
|
|
9839
|
-
}) || [];
|
|
9840
|
-
case 11:
|
|
9841
|
-
_context.next = 14;
|
|
9810
|
+
}
|
|
9811
|
+
data = resData.data;
|
|
9812
|
+
if (!remoteSource.converter) {
|
|
9813
|
+
_context.next = 9;
|
|
9842
9814
|
break;
|
|
9843
|
-
|
|
9844
|
-
|
|
9845
|
-
|
|
9846
|
-
|
|
9847
|
-
|
|
9848
|
-
|
|
9849
|
-
|
|
9850
|
-
|
|
9851
|
-
|
|
9815
|
+
}
|
|
9816
|
+
_context.next = 6;
|
|
9817
|
+
return remoteSource.converter({
|
|
9818
|
+
data: [data]
|
|
9819
|
+
});
|
|
9820
|
+
case 6:
|
|
9821
|
+
coverData = _context.sent;
|
|
9822
|
+
_context.next = 11;
|
|
9823
|
+
break;
|
|
9824
|
+
case 9:
|
|
9825
|
+
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
9826
|
+
coverData = dataList.length && dataList.map(function (ites) {
|
|
9827
|
+
return mapSearchTree(ites);
|
|
9828
|
+
}) || [];
|
|
9829
|
+
case 11:
|
|
9830
|
+
_context.next = 14;
|
|
9831
|
+
break;
|
|
9832
|
+
case 13:
|
|
9833
|
+
coverData = [];
|
|
9834
|
+
case 14:
|
|
9835
|
+
setTreeData(coverData);
|
|
9836
|
+
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
|
|
9837
|
+
case 16:
|
|
9838
|
+
case "end":
|
|
9839
|
+
return _context.stop();
|
|
9852
9840
|
}
|
|
9853
9841
|
}, _callee);
|
|
9854
9842
|
}));
|
|
@@ -10055,7 +10043,7 @@ var BusinessTreeSearchSelect$1 = /*#__PURE__*/React__default['default'].memo(Bus
|
|
|
10055
10043
|
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";
|
|
10056
10044
|
styleInject(css_248z$8);
|
|
10057
10045
|
|
|
10058
|
-
var index$
|
|
10046
|
+
var index$3 = (function (props) {
|
|
10059
10047
|
var _props$formStatusMapp = props.formStatusMapping,
|
|
10060
10048
|
formStatusMapping = _props$formStatusMapp === void 0 ? [] : _props$formStatusMapp;
|
|
10061
10049
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -11479,7 +11467,7 @@ var iconMap = {
|
|
|
11479
11467
|
src: moreIcon
|
|
11480
11468
|
})
|
|
11481
11469
|
};
|
|
11482
|
-
var index$
|
|
11470
|
+
var index$4 = (function (props) {
|
|
11483
11471
|
var _useLocation = umi.useLocation(),
|
|
11484
11472
|
pathname = _useLocation.pathname;
|
|
11485
11473
|
var _useState = React.useState(pathname + 'id'),
|
|
@@ -11696,7 +11684,7 @@ var css_248z$d = ".home_page_head {\n height: 54px;\n display: flex;\n justif
|
|
|
11696
11684
|
styleInject(css_248z$d);
|
|
11697
11685
|
|
|
11698
11686
|
var _excluded$c = ["children"];
|
|
11699
|
-
var index$
|
|
11687
|
+
var index$5 = (function (props) {
|
|
11700
11688
|
var _useLocation = umi.useLocation(),
|
|
11701
11689
|
pathname = _useLocation.pathname;
|
|
11702
11690
|
var _useState = React.useState(pathname + 'id'),
|
|
@@ -13995,21 +13983,19 @@ function _outLogin() {
|
|
|
13995
13983
|
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
13996
13984
|
var res;
|
|
13997
13985
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
13998
|
-
while (1) {
|
|
13999
|
-
|
|
14000
|
-
|
|
14001
|
-
|
|
14002
|
-
|
|
14003
|
-
|
|
14004
|
-
|
|
14005
|
-
|
|
14006
|
-
|
|
14007
|
-
|
|
14008
|
-
|
|
14009
|
-
|
|
14010
|
-
|
|
14011
|
-
return _context.stop();
|
|
14012
|
-
}
|
|
13986
|
+
while (1) switch (_context.prev = _context.next) {
|
|
13987
|
+
case 0:
|
|
13988
|
+
_context.next = 2;
|
|
13989
|
+
return axios__default['default']({
|
|
13990
|
+
url: '/user/web/loginOut',
|
|
13991
|
+
method: 'GET'
|
|
13992
|
+
});
|
|
13993
|
+
case 2:
|
|
13994
|
+
res = _context.sent;
|
|
13995
|
+
return _context.abrupt("return", res);
|
|
13996
|
+
case 4:
|
|
13997
|
+
case "end":
|
|
13998
|
+
return _context.stop();
|
|
14013
13999
|
}
|
|
14014
14000
|
}, _callee);
|
|
14015
14001
|
}));
|
|
@@ -14138,31 +14124,29 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
14138
14124
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
14139
14125
|
var sessionId;
|
|
14140
14126
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
14141
|
-
while (1) {
|
|
14142
|
-
|
|
14143
|
-
|
|
14144
|
-
|
|
14145
|
-
|
|
14146
|
-
|
|
14147
|
-
|
|
14148
|
-
|
|
14149
|
-
|
|
14150
|
-
|
|
14127
|
+
while (1) switch (_context.prev = _context.next) {
|
|
14128
|
+
case 0:
|
|
14129
|
+
_context.next = 2;
|
|
14130
|
+
return getSessionId();
|
|
14131
|
+
case 2:
|
|
14132
|
+
sessionId = _context.sent;
|
|
14133
|
+
_context.next = 5;
|
|
14134
|
+
return outLogin({
|
|
14135
|
+
sessionId: sessionId
|
|
14136
|
+
});
|
|
14137
|
+
case 5:
|
|
14138
|
+
// @ts-ignore
|
|
14139
|
+
if (BUILD_TYPE) {
|
|
14140
|
+
antd.message.success('退出登录成功');
|
|
14141
|
+
umi.history.replace({
|
|
14142
|
+
pathname: '/user/login'
|
|
14151
14143
|
});
|
|
14152
|
-
|
|
14153
|
-
|
|
14154
|
-
|
|
14155
|
-
|
|
14156
|
-
|
|
14157
|
-
|
|
14158
|
-
});
|
|
14159
|
-
} else {
|
|
14160
|
-
setLoginOutPath();
|
|
14161
|
-
}
|
|
14162
|
-
case 6:
|
|
14163
|
-
case "end":
|
|
14164
|
-
return _context.stop();
|
|
14165
|
-
}
|
|
14144
|
+
} else {
|
|
14145
|
+
setLoginOutPath();
|
|
14146
|
+
}
|
|
14147
|
+
case 6:
|
|
14148
|
+
case "end":
|
|
14149
|
+
return _context.stop();
|
|
14166
14150
|
}
|
|
14167
14151
|
}, _callee);
|
|
14168
14152
|
}));
|
|
@@ -15990,6 +15974,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
15990
15974
|
showSubMenu: isShow
|
|
15991
15975
|
});
|
|
15992
15976
|
}, 500);
|
|
15977
|
+
//设置tabs标签左右滚动
|
|
15993
15978
|
_this.setTabNavTransLate = function (num) {
|
|
15994
15979
|
var _document$getElementB, _document$getElementB2, _document$getElementB3, _document$getElementB4, _document$defaultView;
|
|
15995
15980
|
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];
|
|
@@ -16670,14 +16655,12 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
16670
16655
|
request: function () {
|
|
16671
16656
|
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
16672
16657
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
16673
|
-
while (1) {
|
|
16674
|
-
|
|
16675
|
-
|
|
16676
|
-
|
|
16677
|
-
|
|
16678
|
-
|
|
16679
|
-
return _context.stop();
|
|
16680
|
-
}
|
|
16658
|
+
while (1) switch (_context.prev = _context.next) {
|
|
16659
|
+
case 0:
|
|
16660
|
+
return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
|
|
16661
|
+
case 1:
|
|
16662
|
+
case "end":
|
|
16663
|
+
return _context.stop();
|
|
16681
16664
|
}
|
|
16682
16665
|
}, _callee);
|
|
16683
16666
|
}));
|
|
@@ -16815,7 +16798,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
16815
16798
|
}]);
|
|
16816
16799
|
return WrapperComponent;
|
|
16817
16800
|
}(React__default['default'].Component);
|
|
16818
|
-
var index$
|
|
16801
|
+
var index$6 = (function (props) {
|
|
16819
16802
|
var _useModel = umi.useModel('@@initialState'),
|
|
16820
16803
|
_useModel$initialStat = _useModel.initialState,
|
|
16821
16804
|
initialState = _useModel$initialStat === void 0 ? {} : _useModel$initialStat;
|
|
@@ -17056,7 +17039,7 @@ var FixedScrollBar = function FixedScrollBar(_ref, ref) {
|
|
|
17056
17039
|
};
|
|
17057
17040
|
var FixedScrollBar$1 = /*#__PURE__*/React__default['default'].forwardRef(FixedScrollBar);
|
|
17058
17041
|
|
|
17059
|
-
var index$
|
|
17042
|
+
var index$7 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
17060
17043
|
var _useState = React.useState(false),
|
|
17061
17044
|
_useState2 = _slicedToArray(_useState, 2),
|
|
17062
17045
|
show = _useState2[0],
|
|
@@ -24357,28 +24340,26 @@ var valueType = {
|
|
|
24357
24340
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
24358
24341
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
24359
24342
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
24360
|
-
while (1) {
|
|
24361
|
-
|
|
24362
|
-
|
|
24363
|
-
|
|
24364
|
-
|
|
24365
|
-
|
|
24366
|
-
|
|
24367
|
-
|
|
24368
|
-
return
|
|
24369
|
-
|
|
24370
|
-
|
|
24371
|
-
|
|
24372
|
-
|
|
24373
|
-
|
|
24374
|
-
|
|
24375
|
-
|
|
24376
|
-
|
|
24377
|
-
|
|
24378
|
-
|
|
24379
|
-
|
|
24380
|
-
return _context.stop();
|
|
24381
|
-
}
|
|
24343
|
+
while (1) switch (_context.prev = _context.next) {
|
|
24344
|
+
case 0:
|
|
24345
|
+
_context.next = 2;
|
|
24346
|
+
return bssula.request({
|
|
24347
|
+
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
24348
|
+
converter: function converter(_ref2) {
|
|
24349
|
+
var data = _ref2.data;
|
|
24350
|
+
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
24351
|
+
return {
|
|
24352
|
+
text: d.name,
|
|
24353
|
+
value: d.code || d.brandCode
|
|
24354
|
+
};
|
|
24355
|
+
});
|
|
24356
|
+
}
|
|
24357
|
+
});
|
|
24358
|
+
case 2:
|
|
24359
|
+
return _context.abrupt("return", _context.sent);
|
|
24360
|
+
case 3:
|
|
24361
|
+
case "end":
|
|
24362
|
+
return _context.stop();
|
|
24382
24363
|
}
|
|
24383
24364
|
}, _callee);
|
|
24384
24365
|
}));
|
|
@@ -24428,55 +24409,53 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
24428
24409
|
ahooks.useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
24429
24410
|
var _ref$current, source;
|
|
24430
24411
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
24431
|
-
while (1) {
|
|
24432
|
-
|
|
24433
|
-
|
|
24434
|
-
|
|
24435
|
-
|
|
24436
|
-
|
|
24437
|
-
|
|
24438
|
-
|
|
24439
|
-
|
|
24440
|
-
|
|
24441
|
-
};
|
|
24442
|
-
}
|
|
24443
|
-
return prev;
|
|
24444
|
-
});
|
|
24445
|
-
case 2:
|
|
24446
|
-
if (!record.dictionaryCode) {
|
|
24447
|
-
_context.next = 17;
|
|
24448
|
-
break;
|
|
24449
|
-
}
|
|
24450
|
-
if (!(record.choiceType == 20)) {
|
|
24451
|
-
_context.next = 7;
|
|
24452
|
-
break;
|
|
24412
|
+
while (1) switch (_context.prev = _context.next) {
|
|
24413
|
+
case 0:
|
|
24414
|
+
_context.next = 2;
|
|
24415
|
+
return setIsShowAndType(function (prev) {
|
|
24416
|
+
if (record.inputType === 20 || record.inputType === 30) {
|
|
24417
|
+
return {
|
|
24418
|
+
isShow: true,
|
|
24419
|
+
singleOrMultiple: record.inputType,
|
|
24420
|
+
type: record.choiceType
|
|
24421
|
+
};
|
|
24453
24422
|
}
|
|
24454
|
-
|
|
24455
|
-
|
|
24423
|
+
return prev;
|
|
24424
|
+
});
|
|
24425
|
+
case 2:
|
|
24426
|
+
if (!record.dictionaryCode) {
|
|
24427
|
+
_context.next = 17;
|
|
24456
24428
|
break;
|
|
24457
|
-
|
|
24458
|
-
|
|
24459
|
-
|
|
24460
|
-
break;
|
|
24461
|
-
}
|
|
24462
|
-
_context.next = 10;
|
|
24463
|
-
return getDynamicDict(record.dictionaryCode);
|
|
24464
|
-
case 10:
|
|
24465
|
-
_context.t1 = _context.sent;
|
|
24466
|
-
_context.next = 14;
|
|
24429
|
+
}
|
|
24430
|
+
if (!(record.choiceType == 20)) {
|
|
24431
|
+
_context.next = 7;
|
|
24467
24432
|
break;
|
|
24468
|
-
|
|
24469
|
-
|
|
24470
|
-
|
|
24471
|
-
|
|
24472
|
-
|
|
24473
|
-
|
|
24474
|
-
|
|
24475
|
-
|
|
24476
|
-
|
|
24477
|
-
|
|
24478
|
-
|
|
24479
|
-
|
|
24433
|
+
}
|
|
24434
|
+
_context.t0 = getDictionarySource(record.dictionaryCode);
|
|
24435
|
+
_context.next = 15;
|
|
24436
|
+
break;
|
|
24437
|
+
case 7:
|
|
24438
|
+
if (!(record.choiceType == 30)) {
|
|
24439
|
+
_context.next = 13;
|
|
24440
|
+
break;
|
|
24441
|
+
}
|
|
24442
|
+
_context.next = 10;
|
|
24443
|
+
return getDynamicDict(record.dictionaryCode);
|
|
24444
|
+
case 10:
|
|
24445
|
+
_context.t1 = _context.sent;
|
|
24446
|
+
_context.next = 14;
|
|
24447
|
+
break;
|
|
24448
|
+
case 13:
|
|
24449
|
+
_context.t1 = [];
|
|
24450
|
+
case 14:
|
|
24451
|
+
_context.t0 = _context.t1;
|
|
24452
|
+
case 15:
|
|
24453
|
+
source = _context.t0;
|
|
24454
|
+
// @ts-ignore
|
|
24455
|
+
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
24456
|
+
case 17:
|
|
24457
|
+
case "end":
|
|
24458
|
+
return _context.stop();
|
|
24480
24459
|
}
|
|
24481
24460
|
}, _callee);
|
|
24482
24461
|
})));
|
|
@@ -24544,30 +24523,28 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
24544
24523
|
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
24545
24524
|
var form, values, name, relates, source;
|
|
24546
24525
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
24547
|
-
while (1) {
|
|
24548
|
-
|
|
24549
|
-
|
|
24550
|
-
|
|
24551
|
-
if (values[0]) {
|
|
24552
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
24553
|
-
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
24554
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
24555
|
-
}
|
|
24556
|
-
if (!values[1]) {
|
|
24557
|
-
_context2.next = 9;
|
|
24558
|
-
break;
|
|
24559
|
-
}
|
|
24560
|
-
_context2.next = 5;
|
|
24561
|
-
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
24562
|
-
case 5:
|
|
24563
|
-
source = _context2.sent;
|
|
24526
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
24527
|
+
case 0:
|
|
24528
|
+
form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
|
|
24529
|
+
if (values[0]) {
|
|
24564
24530
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
24565
24531
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
24566
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0],
|
|
24567
|
-
|
|
24568
|
-
|
|
24569
|
-
|
|
24570
|
-
|
|
24532
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
24533
|
+
}
|
|
24534
|
+
if (!values[1]) {
|
|
24535
|
+
_context2.next = 9;
|
|
24536
|
+
break;
|
|
24537
|
+
}
|
|
24538
|
+
_context2.next = 5;
|
|
24539
|
+
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
24540
|
+
case 5:
|
|
24541
|
+
source = _context2.sent;
|
|
24542
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
24543
|
+
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
24544
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
24545
|
+
case 9:
|
|
24546
|
+
case "end":
|
|
24547
|
+
return _context2.stop();
|
|
24571
24548
|
}
|
|
24572
24549
|
}, _callee2);
|
|
24573
24550
|
}));
|
|
@@ -25027,43 +25004,41 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
25027
25004
|
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
25028
25005
|
var values, name, form, source;
|
|
25029
25006
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
25030
|
-
while (1) {
|
|
25031
|
-
|
|
25032
|
-
|
|
25033
|
-
|
|
25034
|
-
|
|
25035
|
-
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
25036
|
-
form.setFieldVisible(name, false);
|
|
25037
|
-
}
|
|
25038
|
-
if (!(values[0] === 30)) {
|
|
25039
|
-
_context3.next = 10;
|
|
25040
|
-
break;
|
|
25041
|
-
}
|
|
25042
|
-
_context3.next = 5;
|
|
25043
|
-
return bssula.request({
|
|
25044
|
-
url: '/basic/dictDynamicItem/queryList',
|
|
25045
|
-
converter: function converter(_ref11) {
|
|
25046
|
-
var data = _ref11.data;
|
|
25047
|
-
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
25048
|
-
return {
|
|
25049
|
-
text: d.dictCode,
|
|
25050
|
-
value: d.dictCode
|
|
25051
|
-
};
|
|
25052
|
-
});
|
|
25053
|
-
}
|
|
25054
|
-
});
|
|
25055
|
-
case 5:
|
|
25056
|
-
source = _context3.sent;
|
|
25057
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
25058
|
-
form.setFieldVisible(name, true);
|
|
25059
|
-
_context3.next = 11;
|
|
25060
|
-
break;
|
|
25061
|
-
case 10:
|
|
25007
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
25008
|
+
case 0:
|
|
25009
|
+
values = _ref10.values, name = _ref10.name, form = _ref10.form;
|
|
25010
|
+
if (values[1] === 40) {
|
|
25011
|
+
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
25062
25012
|
form.setFieldVisible(name, false);
|
|
25063
|
-
|
|
25064
|
-
|
|
25065
|
-
|
|
25066
|
-
|
|
25013
|
+
}
|
|
25014
|
+
if (!(values[0] === 30)) {
|
|
25015
|
+
_context3.next = 10;
|
|
25016
|
+
break;
|
|
25017
|
+
}
|
|
25018
|
+
_context3.next = 5;
|
|
25019
|
+
return bssula.request({
|
|
25020
|
+
url: '/basic/dictDynamicItem/queryList',
|
|
25021
|
+
converter: function converter(_ref11) {
|
|
25022
|
+
var data = _ref11.data;
|
|
25023
|
+
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
25024
|
+
return {
|
|
25025
|
+
text: d.dictCode,
|
|
25026
|
+
value: d.dictCode
|
|
25027
|
+
};
|
|
25028
|
+
});
|
|
25029
|
+
}
|
|
25030
|
+
});
|
|
25031
|
+
case 5:
|
|
25032
|
+
source = _context3.sent;
|
|
25033
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
25034
|
+
form.setFieldVisible(name, true);
|
|
25035
|
+
_context3.next = 11;
|
|
25036
|
+
break;
|
|
25037
|
+
case 10:
|
|
25038
|
+
form.setFieldVisible(name, false);
|
|
25039
|
+
case 11:
|
|
25040
|
+
case "end":
|
|
25041
|
+
return _context3.stop();
|
|
25067
25042
|
}
|
|
25068
25043
|
}, _callee3);
|
|
25069
25044
|
}));
|
|
@@ -25252,66 +25227,64 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
25252
25227
|
var _ref$current4, _res$editableStatus;
|
|
25253
25228
|
var res, _res$defaultValue;
|
|
25254
25229
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
25255
|
-
while (1) {
|
|
25256
|
-
|
|
25257
|
-
|
|
25258
|
-
|
|
25259
|
-
|
|
25260
|
-
|
|
25261
|
-
|
|
25262
|
-
|
|
25263
|
-
|
|
25264
|
-
|
|
25265
|
-
res.
|
|
25266
|
-
|
|
25267
|
-
|
|
25268
|
-
|
|
25269
|
-
|
|
25270
|
-
|
|
25271
|
-
|
|
25272
|
-
|
|
25273
|
-
|
|
25274
|
-
|
|
25275
|
-
|
|
25276
|
-
|
|
25230
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
25231
|
+
case 0:
|
|
25232
|
+
_context4.next = 2;
|
|
25233
|
+
return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
|
|
25234
|
+
case 2:
|
|
25235
|
+
res = _context4.sent;
|
|
25236
|
+
res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
|
|
25237
|
+
res.fieldGroup = record.fieldGroup;
|
|
25238
|
+
res.businessType = record.businessType;
|
|
25239
|
+
res.info = {
|
|
25240
|
+
enumeration: res.enumeration,
|
|
25241
|
+
dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
|
|
25242
|
+
formula: res.formula,
|
|
25243
|
+
scale: res.scale,
|
|
25244
|
+
variable: res.variable
|
|
25245
|
+
};
|
|
25246
|
+
res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
|
|
25247
|
+
res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
|
|
25248
|
+
res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
|
|
25249
|
+
if (res.inputType === 40) {
|
|
25250
|
+
res.valueType = 22;
|
|
25251
|
+
}
|
|
25252
|
+
// 把数组处理成文本
|
|
25253
|
+
if (res.inputType === 30) {
|
|
25254
|
+
if (res.defaultValue) {
|
|
25255
|
+
res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
|
|
25277
25256
|
}
|
|
25278
|
-
|
|
25279
|
-
|
|
25280
|
-
|
|
25281
|
-
|
|
25282
|
-
|
|
25257
|
+
}
|
|
25258
|
+
res.fieldMapping = res.fieldMapping || '';
|
|
25259
|
+
delete res.formula;
|
|
25260
|
+
delete res.showValue;
|
|
25261
|
+
if (!(mode === 'create')) {
|
|
25262
|
+
_context4.next = 18;
|
|
25263
|
+
break;
|
|
25264
|
+
}
|
|
25265
|
+
bssula.request({
|
|
25266
|
+
url: "/basic/flow/businessField",
|
|
25267
|
+
method: 'POST',
|
|
25268
|
+
params: res,
|
|
25269
|
+
successMessage: '创建成功!',
|
|
25270
|
+
converter: function converter() {
|
|
25271
|
+
onParentOk();
|
|
25283
25272
|
}
|
|
25284
|
-
|
|
25285
|
-
|
|
25286
|
-
|
|
25287
|
-
|
|
25288
|
-
|
|
25289
|
-
|
|
25273
|
+
});
|
|
25274
|
+
return _context4.abrupt("return");
|
|
25275
|
+
case 18:
|
|
25276
|
+
bssula.request({
|
|
25277
|
+
url: "/basic/flow/businessField/".concat(record.id),
|
|
25278
|
+
method: 'PATCH',
|
|
25279
|
+
params: res,
|
|
25280
|
+
successMessage: '修改成功!',
|
|
25281
|
+
converter: function converter() {
|
|
25282
|
+
onParentOk();
|
|
25290
25283
|
}
|
|
25291
|
-
|
|
25292
|
-
|
|
25293
|
-
|
|
25294
|
-
|
|
25295
|
-
successMessage: '创建成功!',
|
|
25296
|
-
converter: function converter() {
|
|
25297
|
-
onParentOk();
|
|
25298
|
-
}
|
|
25299
|
-
});
|
|
25300
|
-
return _context4.abrupt("return");
|
|
25301
|
-
case 18:
|
|
25302
|
-
bssula.request({
|
|
25303
|
-
url: "/basic/flow/businessField/".concat(record.id),
|
|
25304
|
-
method: 'PATCH',
|
|
25305
|
-
params: res,
|
|
25306
|
-
successMessage: '修改成功!',
|
|
25307
|
-
converter: function converter() {
|
|
25308
|
-
onParentOk();
|
|
25309
|
-
}
|
|
25310
|
-
});
|
|
25311
|
-
case 19:
|
|
25312
|
-
case "end":
|
|
25313
|
-
return _context4.stop();
|
|
25314
|
-
}
|
|
25284
|
+
});
|
|
25285
|
+
case 19:
|
|
25286
|
+
case "end":
|
|
25287
|
+
return _context4.stop();
|
|
25315
25288
|
}
|
|
25316
25289
|
}, _callee4);
|
|
25317
25290
|
}));
|
|
@@ -26096,28 +26069,26 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
26096
26069
|
React.useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
26097
26070
|
var resData, data;
|
|
26098
26071
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26099
|
-
while (1) {
|
|
26100
|
-
|
|
26101
|
-
|
|
26102
|
-
|
|
26103
|
-
|
|
26104
|
-
|
|
26105
|
-
|
|
26106
|
-
|
|
26107
|
-
|
|
26108
|
-
|
|
26109
|
-
|
|
26110
|
-
|
|
26111
|
-
|
|
26112
|
-
|
|
26113
|
-
|
|
26114
|
-
|
|
26115
|
-
|
|
26116
|
-
|
|
26117
|
-
|
|
26118
|
-
|
|
26119
|
-
return _context.stop();
|
|
26120
|
-
}
|
|
26072
|
+
while (1) switch (_context.prev = _context.next) {
|
|
26073
|
+
case 0:
|
|
26074
|
+
if (!(!source && initRequestSource)) {
|
|
26075
|
+
_context.next = 6;
|
|
26076
|
+
break;
|
|
26077
|
+
}
|
|
26078
|
+
_context.next = 3;
|
|
26079
|
+
return initRequestSource();
|
|
26080
|
+
case 3:
|
|
26081
|
+
resData = _context.sent;
|
|
26082
|
+
data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
|
|
26083
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
26084
|
+
label: item.text,
|
|
26085
|
+
isLeaf: false
|
|
26086
|
+
});
|
|
26087
|
+
})) || [];
|
|
26088
|
+
setHandSource(data);
|
|
26089
|
+
case 6:
|
|
26090
|
+
case "end":
|
|
26091
|
+
return _context.stop();
|
|
26121
26092
|
}
|
|
26122
26093
|
}, _callee);
|
|
26123
26094
|
})), []);
|
|
@@ -26249,20 +26220,18 @@ function getRegularThresholdRange(_x) {
|
|
|
26249
26220
|
function _getRegularThresholdRange() {
|
|
26250
26221
|
_getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
26251
26222
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26252
|
-
while (1) {
|
|
26253
|
-
|
|
26254
|
-
|
|
26255
|
-
|
|
26256
|
-
|
|
26257
|
-
|
|
26258
|
-
|
|
26259
|
-
|
|
26260
|
-
|
|
26261
|
-
|
|
26262
|
-
|
|
26263
|
-
|
|
26264
|
-
return _context.stop();
|
|
26265
|
-
}
|
|
26223
|
+
while (1) switch (_context.prev = _context.next) {
|
|
26224
|
+
case 0:
|
|
26225
|
+
return _context.abrupt("return", axios__default['default']({
|
|
26226
|
+
url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
|
|
26227
|
+
method: 'POST',
|
|
26228
|
+
data: _objectSpread2(_objectSpread2({}, params), {}, {
|
|
26229
|
+
queryIdentify: undefined
|
|
26230
|
+
})
|
|
26231
|
+
}));
|
|
26232
|
+
case 1:
|
|
26233
|
+
case "end":
|
|
26234
|
+
return _context.stop();
|
|
26266
26235
|
}
|
|
26267
26236
|
}, _callee);
|
|
26268
26237
|
}));
|
|
@@ -26401,137 +26370,136 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26401
26370
|
_this.getRegularThresholdRange(queryIdentify, propertyCode, queryIdentifyType);
|
|
26402
26371
|
});
|
|
26403
26372
|
};
|
|
26373
|
+
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
26404
26374
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
26405
26375
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
26406
26376
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
26407
26377
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26408
|
-
while (1) {
|
|
26409
|
-
|
|
26410
|
-
|
|
26411
|
-
|
|
26412
|
-
|
|
26413
|
-
|
|
26414
|
-
|
|
26415
|
-
|
|
26416
|
-
|
|
26417
|
-
|
|
26418
|
-
|
|
26419
|
-
|
|
26420
|
-
|
|
26421
|
-
|
|
26422
|
-
|
|
26423
|
-
|
|
26424
|
-
|
|
26425
|
-
|
|
26426
|
-
|
|
26427
|
-
|
|
26428
|
-
|
|
26429
|
-
|
|
26430
|
-
|
|
26431
|
-
|
|
26432
|
-
|
|
26433
|
-
|
|
26434
|
-
|
|
26435
|
-
|
|
26436
|
-
|
|
26437
|
-
|
|
26438
|
-
|
|
26439
|
-
|
|
26440
|
-
|
|
26441
|
-
|
|
26442
|
-
|
|
26443
|
-
|
|
26444
|
-
|
|
26445
|
-
|
|
26446
|
-
|
|
26447
|
-
|
|
26448
|
-
|
|
26449
|
-
|
|
26450
|
-
|
|
26451
|
-
|
|
26452
|
-
|
|
26453
|
-
|
|
26454
|
-
|
|
26455
|
-
|
|
26456
|
-
|
|
26457
|
-
|
|
26458
|
-
|
|
26459
|
-
|
|
26460
|
-
|
|
26461
|
-
|
|
26462
|
-
|
|
26463
|
-
|
|
26464
|
-
|
|
26465
|
-
|
|
26466
|
-
|
|
26467
|
-
|
|
26468
|
-
|
|
26469
|
-
|
|
26470
|
-
|
|
26471
|
-
|
|
26472
|
-
|
|
26473
|
-
|
|
26474
|
-
|
|
26475
|
-
|
|
26476
|
-
|
|
26477
|
-
|
|
26478
|
-
|
|
26479
|
-
}) : [];
|
|
26480
|
-
}
|
|
26481
|
-
if (queryIdentifyType === 'dynamicDictCodeIdentify') {
|
|
26482
|
-
var _handleData3;
|
|
26483
|
-
_handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
|
|
26484
|
-
return {
|
|
26485
|
-
code: i.code.toString(),
|
|
26486
|
-
name: i.name
|
|
26487
|
-
};
|
|
26488
|
-
}) : [];
|
|
26489
|
-
}
|
|
26490
|
-
_this.setState({
|
|
26491
|
-
thresholdList: _handleData
|
|
26492
|
-
});
|
|
26378
|
+
while (1) switch (_context.prev = _context.next) {
|
|
26379
|
+
case 0:
|
|
26380
|
+
if (queryIdentify) {
|
|
26381
|
+
_context.next = 2;
|
|
26382
|
+
break;
|
|
26383
|
+
}
|
|
26384
|
+
return _context.abrupt("return");
|
|
26385
|
+
case 2:
|
|
26386
|
+
thresholdQuery = _this.state.thresholdQuery;
|
|
26387
|
+
extraRequestUrl = '';
|
|
26388
|
+
querParams = setParams(propertyCode, thresholdQuery);
|
|
26389
|
+
if (!queryIdentityInfo.find(function (item) {
|
|
26390
|
+
return item.identity == propertyCode;
|
|
26391
|
+
})) {
|
|
26392
|
+
_context.next = 10;
|
|
26393
|
+
break;
|
|
26394
|
+
}
|
|
26395
|
+
//判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
|
|
26396
|
+
needQueryList = queryIdentityInfo.find(function (item) {
|
|
26397
|
+
return item.identity == propertyCode;
|
|
26398
|
+
}).queryParam.filter(function (item) {
|
|
26399
|
+
return item.isRequired;
|
|
26400
|
+
}).map(function (item) {
|
|
26401
|
+
return item.queryKey;
|
|
26402
|
+
});
|
|
26403
|
+
if (!needQueryList.some(function (item) {
|
|
26404
|
+
return !querParams[item] || !querParams[item].length;
|
|
26405
|
+
})) {
|
|
26406
|
+
_context.next = 9;
|
|
26407
|
+
break;
|
|
26408
|
+
}
|
|
26409
|
+
return _context.abrupt("return");
|
|
26410
|
+
case 9:
|
|
26411
|
+
extraRequestUrl = queryIdentityInfo.find(function (item) {
|
|
26412
|
+
return item.identity == propertyCode;
|
|
26413
|
+
}).requestUrl || '';
|
|
26414
|
+
case 10:
|
|
26415
|
+
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
26416
|
+
extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
|
|
26417
|
+
querParams = {
|
|
26418
|
+
dictCode: queryIdentify
|
|
26419
|
+
};
|
|
26420
|
+
} else if (queryIdentifyType === 'dynamicDictCodeIdentify') {
|
|
26421
|
+
extraRequestUrl = "dictDynamicItem/getDynamicData/".concat(queryIdentify); // 字典接口
|
|
26422
|
+
// querParams = { dictCode: queryIdentify }
|
|
26423
|
+
}
|
|
26424
|
+
if (!extraRequestUrl) {
|
|
26425
|
+
_context.next = 16;
|
|
26426
|
+
break;
|
|
26427
|
+
}
|
|
26428
|
+
if (queryIdentify == 'maintain_area_code') {
|
|
26429
|
+
extraRequestUrl = "/basic/".concat(extraRequestUrl).concat(querParams.memberCardCode, "?").concat(querystring.stringify(querParams));
|
|
26430
|
+
} else if (queryIdentifyType == 'dictCodeIdentify') {
|
|
26431
|
+
extraRequestUrl = "/basic/".concat(extraRequestUrl, "?").concat(querystring.stringify(querParams));
|
|
26432
|
+
} else if (queryIdentifyType == 'dynamicDictCodeIdentify') {
|
|
26433
|
+
extraRequestUrl = "/basic/".concat(extraRequestUrl);
|
|
26434
|
+
}
|
|
26435
|
+
bssula.request({
|
|
26436
|
+
url: extraRequestUrl,
|
|
26437
|
+
method: 'get',
|
|
26438
|
+
converter: function converter(res) {
|
|
26439
|
+
if (handleError(res)) {
|
|
26440
|
+
var _handleData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
26441
|
+
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
26442
|
+
var _handleData2;
|
|
26443
|
+
_handleData = ((_handleData2 = _handleData) === null || _handleData2 === void 0 ? void 0 : _handleData2.length) ? _handleData.map(function (i) {
|
|
26444
|
+
return {
|
|
26445
|
+
code: i.dictItemCode,
|
|
26446
|
+
name: i.dictItemName
|
|
26447
|
+
};
|
|
26448
|
+
}) : [];
|
|
26493
26449
|
}
|
|
26494
|
-
|
|
26450
|
+
if (queryIdentifyType === 'dynamicDictCodeIdentify') {
|
|
26451
|
+
var _handleData3;
|
|
26452
|
+
_handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
|
|
26453
|
+
return {
|
|
26454
|
+
code: i.code.toString(),
|
|
26455
|
+
name: i.name
|
|
26456
|
+
};
|
|
26457
|
+
}) : [];
|
|
26458
|
+
}
|
|
26459
|
+
_this.setState({
|
|
26460
|
+
thresholdList: _handleData
|
|
26461
|
+
});
|
|
26495
26462
|
}
|
|
26496
|
-
|
|
26497
|
-
_context.next = 29;
|
|
26498
|
-
break;
|
|
26499
|
-
case 16:
|
|
26500
|
-
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
26501
|
-
_context.next = 20;
|
|
26502
|
-
break;
|
|
26463
|
+
return handleData;
|
|
26503
26464
|
}
|
|
26504
|
-
|
|
26505
|
-
|
|
26506
|
-
|
|
26507
|
-
|
|
26465
|
+
});
|
|
26466
|
+
_context.next = 29;
|
|
26467
|
+
break;
|
|
26468
|
+
case 16:
|
|
26469
|
+
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
26470
|
+
_context.next = 20;
|
|
26508
26471
|
break;
|
|
26509
|
-
|
|
26510
|
-
|
|
26511
|
-
|
|
26512
|
-
|
|
26513
|
-
|
|
26514
|
-
|
|
26472
|
+
}
|
|
26473
|
+
_this.setState({
|
|
26474
|
+
thresholdList: queryIdentify
|
|
26475
|
+
});
|
|
26476
|
+
_context.next = 29;
|
|
26477
|
+
break;
|
|
26478
|
+
case 20:
|
|
26479
|
+
if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
|
|
26480
|
+
_context.next = 24;
|
|
26481
|
+
break;
|
|
26482
|
+
}
|
|
26483
|
+
// TODO待处理
|
|
26484
|
+
_this.setState({
|
|
26485
|
+
thresholdList: []
|
|
26486
|
+
});
|
|
26487
|
+
_context.next = 29;
|
|
26488
|
+
break;
|
|
26489
|
+
case 24:
|
|
26490
|
+
querParams.queryIdentify = queryIdentify;
|
|
26491
|
+
_context.next = 27;
|
|
26492
|
+
return getRegularThresholdRange(querParams);
|
|
26493
|
+
case 27:
|
|
26494
|
+
res = _context.sent;
|
|
26495
|
+
if (handleError(res)) {
|
|
26515
26496
|
_this.setState({
|
|
26516
|
-
thresholdList: []
|
|
26497
|
+
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
26517
26498
|
});
|
|
26518
|
-
|
|
26519
|
-
|
|
26520
|
-
|
|
26521
|
-
|
|
26522
|
-
_context.next = 27;
|
|
26523
|
-
return getRegularThresholdRange(querParams);
|
|
26524
|
-
case 27:
|
|
26525
|
-
res = _context.sent;
|
|
26526
|
-
if (handleError(res)) {
|
|
26527
|
-
_this.setState({
|
|
26528
|
-
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
26529
|
-
});
|
|
26530
|
-
}
|
|
26531
|
-
case 29:
|
|
26532
|
-
case "end":
|
|
26533
|
-
return _context.stop();
|
|
26534
|
-
}
|
|
26499
|
+
}
|
|
26500
|
+
case 29:
|
|
26501
|
+
case "end":
|
|
26502
|
+
return _context.stop();
|
|
26535
26503
|
}
|
|
26536
26504
|
}, _callee);
|
|
26537
26505
|
}));
|
|
@@ -27350,32 +27318,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27350
27318
|
notChangeOnSelect: true,
|
|
27351
27319
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
27352
27320
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
27353
|
-
while (1) {
|
|
27354
|
-
|
|
27355
|
-
|
|
27356
|
-
|
|
27357
|
-
|
|
27358
|
-
|
|
27359
|
-
|
|
27360
|
-
|
|
27361
|
-
|
|
27362
|
-
|
|
27363
|
-
|
|
27364
|
-
|
|
27365
|
-
|
|
27366
|
-
|
|
27367
|
-
|
|
27368
|
-
|
|
27369
|
-
|
|
27370
|
-
|
|
27371
|
-
|
|
27372
|
-
|
|
27373
|
-
|
|
27374
|
-
|
|
27375
|
-
|
|
27376
|
-
|
|
27377
|
-
return _context2.stop();
|
|
27378
|
-
}
|
|
27321
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
27322
|
+
case 0:
|
|
27323
|
+
_context2.next = 2;
|
|
27324
|
+
return bssula.request({
|
|
27325
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
27326
|
+
method: 'get',
|
|
27327
|
+
converter: function converter(_ref3) {
|
|
27328
|
+
var data = _ref3.data;
|
|
27329
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27330
|
+
return {
|
|
27331
|
+
text: item.name,
|
|
27332
|
+
value: item.id,
|
|
27333
|
+
level: item.level,
|
|
27334
|
+
id: item.id
|
|
27335
|
+
};
|
|
27336
|
+
}) : [];
|
|
27337
|
+
return handleData;
|
|
27338
|
+
}
|
|
27339
|
+
});
|
|
27340
|
+
case 2:
|
|
27341
|
+
return _context2.abrupt("return", _context2.sent);
|
|
27342
|
+
case 3:
|
|
27343
|
+
case "end":
|
|
27344
|
+
return _context2.stop();
|
|
27379
27345
|
}
|
|
27380
27346
|
}, _callee2);
|
|
27381
27347
|
})),
|
|
@@ -27401,32 +27367,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27401
27367
|
notChangeOnSelect: true,
|
|
27402
27368
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
27403
27369
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
27404
|
-
while (1) {
|
|
27405
|
-
|
|
27406
|
-
|
|
27407
|
-
|
|
27408
|
-
|
|
27409
|
-
|
|
27410
|
-
|
|
27411
|
-
|
|
27412
|
-
|
|
27413
|
-
|
|
27414
|
-
|
|
27415
|
-
|
|
27416
|
-
|
|
27417
|
-
|
|
27418
|
-
|
|
27419
|
-
|
|
27420
|
-
|
|
27421
|
-
|
|
27422
|
-
|
|
27423
|
-
|
|
27424
|
-
|
|
27425
|
-
|
|
27426
|
-
|
|
27427
|
-
|
|
27428
|
-
return _context3.stop();
|
|
27429
|
-
}
|
|
27370
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
27371
|
+
case 0:
|
|
27372
|
+
_context3.next = 2;
|
|
27373
|
+
return bssula.request({
|
|
27374
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
27375
|
+
method: 'get',
|
|
27376
|
+
converter: function converter(_ref5) {
|
|
27377
|
+
var data = _ref5.data;
|
|
27378
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27379
|
+
return {
|
|
27380
|
+
text: item.name,
|
|
27381
|
+
value: item.id,
|
|
27382
|
+
level: item.level,
|
|
27383
|
+
id: item.id
|
|
27384
|
+
};
|
|
27385
|
+
}) : [];
|
|
27386
|
+
return handleData;
|
|
27387
|
+
}
|
|
27388
|
+
});
|
|
27389
|
+
case 2:
|
|
27390
|
+
return _context3.abrupt("return", _context3.sent);
|
|
27391
|
+
case 3:
|
|
27392
|
+
case "end":
|
|
27393
|
+
return _context3.stop();
|
|
27430
27394
|
}
|
|
27431
27395
|
}, _callee3);
|
|
27432
27396
|
})),
|
|
@@ -27454,32 +27418,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27454
27418
|
notChangeOnSelect: true,
|
|
27455
27419
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
27456
27420
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
27457
|
-
while (1) {
|
|
27458
|
-
|
|
27459
|
-
|
|
27460
|
-
|
|
27461
|
-
|
|
27462
|
-
|
|
27463
|
-
|
|
27464
|
-
|
|
27465
|
-
|
|
27466
|
-
|
|
27467
|
-
|
|
27468
|
-
|
|
27469
|
-
|
|
27470
|
-
|
|
27471
|
-
|
|
27472
|
-
|
|
27473
|
-
|
|
27474
|
-
|
|
27475
|
-
|
|
27476
|
-
|
|
27477
|
-
|
|
27478
|
-
|
|
27479
|
-
|
|
27480
|
-
|
|
27481
|
-
return _context4.stop();
|
|
27482
|
-
}
|
|
27421
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
27422
|
+
case 0:
|
|
27423
|
+
_context4.next = 2;
|
|
27424
|
+
return bssula.request({
|
|
27425
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
27426
|
+
method: 'get',
|
|
27427
|
+
converter: function converter(_ref7) {
|
|
27428
|
+
var data = _ref7.data;
|
|
27429
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27430
|
+
return {
|
|
27431
|
+
text: item.name,
|
|
27432
|
+
value: item.id,
|
|
27433
|
+
level: item.level,
|
|
27434
|
+
id: item.id
|
|
27435
|
+
};
|
|
27436
|
+
}) : [];
|
|
27437
|
+
return handleData;
|
|
27438
|
+
}
|
|
27439
|
+
});
|
|
27440
|
+
case 2:
|
|
27441
|
+
return _context4.abrupt("return", _context4.sent);
|
|
27442
|
+
case 3:
|
|
27443
|
+
case "end":
|
|
27444
|
+
return _context4.stop();
|
|
27483
27445
|
}
|
|
27484
27446
|
}, _callee4);
|
|
27485
27447
|
})),
|
|
@@ -28596,8 +28558,6 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
28596
28558
|
});
|
|
28597
28559
|
}
|
|
28598
28560
|
}
|
|
28599
|
-
|
|
28600
|
-
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
28601
28561
|
}, {
|
|
28602
28562
|
key: "render",
|
|
28603
28563
|
value: function render() {
|
|
@@ -29428,6 +29388,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29428
29388
|
callBack(ruleClassData);
|
|
29429
29389
|
});
|
|
29430
29390
|
};
|
|
29391
|
+
// 树结构 转化成 平行树 (递归函数)
|
|
29431
29392
|
_this.coverToParallel = function (treeData, result) {
|
|
29432
29393
|
treeData.forEach(function (el) {
|
|
29433
29394
|
result.push(el);
|
|
@@ -29681,6 +29642,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29681
29642
|
callBack(ruleClassData);
|
|
29682
29643
|
});
|
|
29683
29644
|
};
|
|
29645
|
+
// 场景需要返回值2022.11.15
|
|
29684
29646
|
_this.renderResItem = function (itemDetail, parentDetail, ruleReturnConfig, disabled, boxStyle) {
|
|
29685
29647
|
var _ruleReturnConfig$rig;
|
|
29686
29648
|
var isShowResponse = itemDetail.response['enable'];
|
|
@@ -29978,32 +29940,30 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29978
29940
|
notChangeOnSelect: true,
|
|
29979
29941
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29980
29942
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29981
|
-
while (1) {
|
|
29982
|
-
|
|
29983
|
-
|
|
29984
|
-
|
|
29985
|
-
|
|
29986
|
-
|
|
29987
|
-
|
|
29988
|
-
|
|
29989
|
-
|
|
29990
|
-
|
|
29991
|
-
|
|
29992
|
-
|
|
29993
|
-
|
|
29994
|
-
|
|
29995
|
-
|
|
29996
|
-
|
|
29997
|
-
|
|
29998
|
-
|
|
29999
|
-
|
|
30000
|
-
|
|
30001
|
-
|
|
30002
|
-
|
|
30003
|
-
|
|
30004
|
-
|
|
30005
|
-
return _context.stop();
|
|
30006
|
-
}
|
|
29943
|
+
while (1) switch (_context.prev = _context.next) {
|
|
29944
|
+
case 0:
|
|
29945
|
+
_context.next = 2;
|
|
29946
|
+
return bssula.request({
|
|
29947
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
29948
|
+
method: 'get',
|
|
29949
|
+
converter: function converter(_ref2) {
|
|
29950
|
+
var data = _ref2.data;
|
|
29951
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
29952
|
+
return {
|
|
29953
|
+
text: item.name,
|
|
29954
|
+
value: item.id,
|
|
29955
|
+
level: item.level,
|
|
29956
|
+
id: item.id
|
|
29957
|
+
};
|
|
29958
|
+
}) : [];
|
|
29959
|
+
return handleData;
|
|
29960
|
+
}
|
|
29961
|
+
});
|
|
29962
|
+
case 2:
|
|
29963
|
+
return _context.abrupt("return", _context.sent);
|
|
29964
|
+
case 3:
|
|
29965
|
+
case "end":
|
|
29966
|
+
return _context.stop();
|
|
30007
29967
|
}
|
|
30008
29968
|
}, _callee);
|
|
30009
29969
|
})),
|
|
@@ -30337,6 +30297,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30337
30297
|
}
|
|
30338
30298
|
}, "\u65B0\u589E\u8FD4\u56DE\u503C")), isHaveRuleReturnConfig && _this.renderResItem(itemDetail, parentDetail, ruleReturnConfig, disabled, RuleActionItemStyle) || null, isHaveRuleTypeData && _this.renderActionList(itemDetail, parentDetail, handleRuleTypeData, selectRuleActionData, classDataIndex, disabled, RuleActionItemStyle) || null);
|
|
30339
30299
|
};
|
|
30300
|
+
//添加同一层级条件
|
|
30340
30301
|
_this.addPeerRule = function (itemDetail) {
|
|
30341
30302
|
var ruleClassData = _this.state.ruleClassData;
|
|
30342
30303
|
var _this$props4 = _this.props,
|
|
@@ -30357,6 +30318,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30357
30318
|
callBack(ruleClassData);
|
|
30358
30319
|
});
|
|
30359
30320
|
};
|
|
30321
|
+
//添加子层级条件
|
|
30360
30322
|
_this.addChildRules = function (itemDetail) {
|
|
30361
30323
|
var ruleClassData = _this.state.ruleClassData;
|
|
30362
30324
|
var callBack = _this.props.callBack;
|
|
@@ -30432,6 +30394,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30432
30394
|
callBack(ruleClassData);
|
|
30433
30395
|
});
|
|
30434
30396
|
};
|
|
30397
|
+
// 新增执行顺序
|
|
30435
30398
|
_this.handleSelectRuleAction = function (keys, classDataIndex, callback) {
|
|
30436
30399
|
callback();
|
|
30437
30400
|
var callBack = _this.props.callBack;
|
|
@@ -30588,26 +30551,26 @@ exports.AddSkuSelect = AddSkuSelect;
|
|
|
30588
30551
|
exports.AddSpuSelect = AddSpuSelect;
|
|
30589
30552
|
exports.BillEntry = BillEntry;
|
|
30590
30553
|
exports.BsCascader = BsCascader;
|
|
30591
|
-
exports.BsLayout = index$
|
|
30554
|
+
exports.BsLayout = index$6;
|
|
30592
30555
|
exports.BsSulaQueryTable = BsSulaQueryTable;
|
|
30593
30556
|
exports.BusinessSearchSelect = BusinessSearchSelect$1;
|
|
30594
30557
|
exports.BusinessTreeSearchSelect = BusinessTreeSearchSelect$1;
|
|
30595
|
-
exports.CheckOneUser = index$
|
|
30558
|
+
exports.CheckOneUser = index$2;
|
|
30596
30559
|
exports.ColumnSettingTable = ColumnSettingTable;
|
|
30597
30560
|
exports.CommodityEntry = CommodityEntry;
|
|
30598
30561
|
exports.DataImport = DataImport;
|
|
30599
30562
|
exports.DataValidation = DataValidation;
|
|
30600
|
-
exports.DetailPageWrapper = index$
|
|
30563
|
+
exports.DetailPageWrapper = index$4;
|
|
30601
30564
|
exports.EllipsisTooltip = EllipsisTooltip;
|
|
30602
30565
|
exports.ExportIcon = ExportIcon;
|
|
30603
30566
|
exports.GuideWrapper = GuideWrapper;
|
|
30604
|
-
exports.HomePageWrapper = index$
|
|
30567
|
+
exports.HomePageWrapper = index$5;
|
|
30605
30568
|
exports.JsonQueryTable = JsonQueryTable;
|
|
30606
|
-
exports.MoreTreeTable = index$
|
|
30569
|
+
exports.MoreTreeTable = index$7;
|
|
30607
30570
|
exports.QueryMutipleInput = QueryMutipleInput;
|
|
30608
30571
|
exports.RuleComponent = RuleObjectComponent;
|
|
30609
30572
|
exports.SearchSelect = SearchSelect;
|
|
30610
|
-
exports.StateFlow = index$
|
|
30573
|
+
exports.StateFlow = index$3;
|
|
30611
30574
|
exports.SulaColumnSettingTable = ColumnSettingSulaTable;
|
|
30612
30575
|
exports.TableColumnSetting = TableColumnSetting;
|
|
30613
30576
|
exports.TreeSearchSelect = TreeSearchSelect;
|