@bit-sun/business-component 2.3.0 → 2.3.2
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 +1212 -906
- package/dist/index.js +1218 -912
- package/dist/utils/utils.d.ts +1 -1
- package/docs/index.md +21 -21
- package/lib/assets/drag.svg +17 -17
- package/lib/assets/exportFail.svg +37 -37
- package/lib/assets/exportProcessing.svg +28 -28
- package/lib/assets/exportSuccess.svg +34 -34
- package/lib/assets/label_icon_bottom.svg +25 -25
- package/lib/assets/upExport.svg +22 -22
- package/package.json +78 -78
- package/src/assets/32.svg +27 -27
- package/src/assets/addIcon.svg +17 -17
- package/src/assets/allfunc.svg +27 -27
- package/src/assets/arrowRight.svg +24 -24
- package/src/assets/btn-delete.svg +29 -29
- package/src/assets/btn-edit.svg +19 -19
- package/src/assets/btn-more.svg +17 -17
- package/src/assets/btn-submit.svg +19 -19
- package/src/assets/caidan.svg +11 -11
- package/src/assets/close.svg +26 -26
- package/src/assets/drag.svg +17 -17
- package/src/assets/exportFail.svg +37 -37
- package/src/assets/exportProcessing.svg +28 -28
- package/src/assets/exportSuccess.svg +34 -34
- package/src/assets/fixed-left-active.svg +11 -11
- package/src/assets/fixed-left.svg +15 -15
- package/src/assets/fixed-right-active.svg +11 -11
- package/src/assets/fixed-right.svg +15 -15
- package/src/assets/guanbi.svg +15 -15
- package/src/assets/icon-quanping.svg +15 -15
- package/src/assets/icon-shezhi.svg +17 -17
- package/src/assets/label_icon_bottom.svg +25 -25
- package/src/assets/list-no-img.svg +21 -21
- package/src/assets/morentouxiang-32.svg +23 -23
- package/src/assets/scanning.svg +24 -24
- package/src/assets/upExport.svg +22 -22
- package/src/common/ENUM.ts +41 -41
- package/src/components/Business/AddSelectBusiness/index.md +161 -161
- package/src/components/Business/AddSelectBusiness/index.tsx +861 -861
- package/src/components/Business/BsLayouts/Components/AllFunc/drawContent.tsx +111 -111
- package/src/components/Business/BsLayouts/Components/AllFunc/index.less +153 -153
- package/src/components/Business/BsLayouts/Components/AllFunc/index.tsx +70 -70
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.less +90 -90
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.tsx +37 -37
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.tsx +242 -242
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.tsx +384 -384
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.tsx +285 -285
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.tsx +74 -74
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/drawContent.less +170 -170
- package/src/components/Business/BsLayouts/Components/CustomerMenu/index.less +64 -64
- package/src/components/Business/BsLayouts/Components/CustomerMenu/index.tsx +153 -153
- package/src/components/Business/BsLayouts/Components/GlobalHeader/index.less +72 -72
- package/src/components/Business/BsLayouts/Components/GlobalHeader/index.tsx +157 -157
- package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +85 -85
- package/src/components/Business/BsLayouts/Components/RightContent/home.less +218 -218
- package/src/components/Business/BsLayouts/Components/RightContent/index.tsx +155 -155
- package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +160 -160
- package/src/components/Business/BsLayouts/Components/SearchFunc/index.tsx +75 -75
- package/src/components/Business/BsLayouts/index.less +79 -79
- package/src/components/Business/BsLayouts/index.tsx +1484 -1484
- package/src/components/Business/BsLayouts/service.ts +10 -10
- package/src/components/Business/BsLayouts/utils.tsx +203 -203
- package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +564 -564
- package/src/components/Business/BsSulaQueryTable/index.less +221 -221
- package/src/components/Business/BsSulaQueryTable/index.tsx +527 -527
- package/src/components/Business/BsSulaQueryTable/setting.tsx +832 -832
- package/src/components/Business/BsSulaQueryTable/utils.less +65 -65
- package/src/components/Business/BsSulaQueryTable/utils.tsx +688 -688
- package/src/components/Business/CommodityEntry/index.md +70 -70
- package/src/components/Business/CommodityEntry/index.tsx +80 -80
- package/src/components/Business/CommonAlert/index.tsx +23 -23
- package/src/components/Business/CommonGuideWrapper/index.less +111 -111
- package/src/components/Business/CommonGuideWrapper/index.md +39 -39
- package/src/components/Business/CommonGuideWrapper/index.tsx +83 -83
- package/src/components/Business/DetailPageWrapper/index.less +79 -79
- package/src/components/Business/DetailPageWrapper/index.tsx +313 -313
- package/src/components/Business/DetailPageWrapper/utils.tsx +100 -100
- package/src/components/Business/HomePageWrapper/index.less +33 -33
- package/src/components/Business/HomePageWrapper/index.md +45 -45
- package/src/components/Business/HomePageWrapper/index.tsx +162 -162
- package/src/components/Business/JsonQueryTable/components/FieldsModifyModal.tsx +824 -824
- package/src/components/Business/JsonQueryTable/components/FieldsSettingsTable.tsx +205 -201
- 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 -320
- package/src/components/Business/JsonQueryTable/jsonEditor/index.js +346 -346
- package/src/components/Business/JsonQueryTable/jsonEditor/index.less +22 -22
- package/src/components/Business/JsonQueryTable/jsonEditor/lint/basicType.js +147 -147
- package/src/components/Business/JsonQueryTable/jsonEditor/lint/index.js +389 -389
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/actions.js +118 -118
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/dependency.js +22 -22
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/index.js +21 -21
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/request.js +65 -65
- package/src/components/Business/JsonQueryTable/static.ts +390 -390
- package/src/components/Business/SearchSelect/BusinessUtils.ts +1732 -1732
- package/src/components/Business/SearchSelect/common.ts +53 -53
- package/src/components/Business/SearchSelect/index.md +1319 -1319
- package/src/components/Business/SearchSelect/index.tsx +51 -51
- package/src/components/Business/SearchSelect/utils.ts +100 -100
- package/src/components/Business/StateFlow/index.less +130 -130
- package/src/components/Business/StateFlow/index.md +60 -60
- package/src/components/Business/StateFlow/index.tsx +29 -29
- package/src/components/Business/TreeSearchSelect/index.md +154 -154
- package/src/components/Business/TreeSearchSelect/index.tsx +34 -34
- package/src/components/Business/TreeSearchSelect/utils.ts +69 -69
- 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 +380 -380
- 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 +859 -849
- 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 +162 -162
- 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 +2074 -2074
- package/src/components/Solution/RuleComponent/services.ts +13 -13
- package/src/components/Solution/RuleComponent/util.js +139 -139
- package/src/index.ts +38 -38
- package/src/plugin/TableColumnSetting/index.less +247 -247
- package/src/plugin/TableColumnSetting/index.md +50 -50
- package/src/plugin/TableColumnSetting/index.tsx +724 -724
- package/src/plugin/TableColumnSetting/utils.ts +19 -19
- package/src/styles/bsDefault.less +1912 -1912
- package/src/utils/CheckOneUser/index.md +39 -39
- package/src/utils/CheckOneUser/index.ts +51 -51
- package/src/utils/LocalstorageUtils.ts +90 -90
- package/src/utils/TableUtils.tsx +18 -18
- package/src/utils/checkUtils.ts +39 -39
- package/src/utils/enumConfig.ts +11 -11
- package/src/utils/getFormMode.js +12 -12
- package/src/utils/index.ts +4 -4
- package/src/utils/requestUtils.ts +34 -34
- package/src/utils/serialize.js +7 -7
- package/src/utils/utils.ts +212 -212
- package/tsconfig.json +29 -29
- package/typings.d.ts +4 -4
package/dist/index.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 = require('lodash/isEqual');
|
|
9
|
+
var isEqual$1 = 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$1);
|
|
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,41 +781,52 @@ 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
|
-
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];
|
|
784
|
+
var safeIsNaN = Number.isNaN ||
|
|
785
|
+
function ponyfill(value) {
|
|
786
|
+
return typeof value === 'number' && value !== value;
|
|
787
|
+
};
|
|
788
|
+
function isEqual(first, second) {
|
|
789
|
+
if (first === second) {
|
|
790
|
+
return true;
|
|
805
791
|
}
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
return lastResult;
|
|
792
|
+
if (safeIsNaN(first) && safeIsNaN(second)) {
|
|
793
|
+
return true;
|
|
809
794
|
}
|
|
795
|
+
return false;
|
|
796
|
+
}
|
|
797
|
+
function areInputsEqual(newInputs, lastInputs) {
|
|
798
|
+
if (newInputs.length !== lastInputs.length) {
|
|
799
|
+
return false;
|
|
800
|
+
}
|
|
801
|
+
for (var i = 0; i < newInputs.length; i++) {
|
|
802
|
+
if (!isEqual(newInputs[i], lastInputs[i])) {
|
|
803
|
+
return false;
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
return true;
|
|
807
|
+
}
|
|
810
808
|
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
lastThis
|
|
814
|
-
lastArgs =
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
809
|
+
function memoizeOne(resultFn, isEqual) {
|
|
810
|
+
if (isEqual === void 0) { isEqual = areInputsEqual; }
|
|
811
|
+
var lastThis;
|
|
812
|
+
var lastArgs = [];
|
|
813
|
+
var lastResult;
|
|
814
|
+
var calledOnce = false;
|
|
815
|
+
function memoized() {
|
|
816
|
+
var newArgs = [];
|
|
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;
|
|
819
830
|
}
|
|
820
831
|
|
|
821
832
|
function styleInject(css, ref) {
|
|
@@ -1029,59 +1040,58 @@ var getItemDefaultWidth = function getItemDefaultWidth(item) {
|
|
|
1029
1040
|
* @returns 返回处理后的查询参数
|
|
1030
1041
|
*/
|
|
1031
1042
|
function queryParams(params, flag) {
|
|
1032
|
-
var
|
|
1043
|
+
for (var key in params) {
|
|
1033
1044
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1045
|
+
(function () {
|
|
1046
|
+
var element = params[key];
|
|
1047
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
1048
|
+
var dataParams = key.split('*number*');
|
|
1049
|
+
dataParams.forEach(function (value, index) {
|
|
1050
|
+
params[value] = element[index];
|
|
1051
|
+
});
|
|
1052
|
+
delete params[key];
|
|
1053
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
1054
|
+
var _dataParams = key.split('*address*');
|
|
1055
|
+
_dataParams.forEach(function (value, index) {
|
|
1056
|
+
params[value] = element.PCDCode[index];
|
|
1057
|
+
});
|
|
1058
|
+
delete params[key];
|
|
1059
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
1060
|
+
var _dataParams2 = key.split('*costType*');
|
|
1061
|
+
// eslint-disable-next-line prefer-destructuring
|
|
1062
|
+
params[_dataParams2[0]] = element[1];
|
|
1063
|
+
delete params[key];
|
|
1064
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
1065
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
1066
|
+
_dataParams3.forEach(function (value, index) {
|
|
1067
|
+
if (index === 0) {
|
|
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;
|
|
1057
1085
|
} else {
|
|
1058
|
-
params[
|
|
1086
|
+
params["qp-".concat(_dataParams5[0], "-like")] = element;
|
|
1087
|
+
params["qp-".concat(_dataParams5[0], "-in")] = null;
|
|
1059
1088
|
}
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
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;
|
|
1089
|
+
delete params[key];
|
|
1090
|
+
} else if (Array.isArray(element)) {
|
|
1091
|
+
params[key] = element.join(',');
|
|
1076
1092
|
}
|
|
1077
|
-
|
|
1078
|
-
} else if (Array.isArray(element)) {
|
|
1079
|
-
params[key] = element.join(',');
|
|
1080
|
-
}
|
|
1093
|
+
})();
|
|
1081
1094
|
}
|
|
1082
|
-
};
|
|
1083
|
-
for (var key in params) {
|
|
1084
|
-
_loop();
|
|
1085
1095
|
}
|
|
1086
1096
|
return flag ? params : qs.stringify(params);
|
|
1087
1097
|
}
|
|
@@ -1127,7 +1137,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1127
1137
|
return item;
|
|
1128
1138
|
});
|
|
1129
1139
|
};
|
|
1130
|
-
var memoizeOneFormatter =
|
|
1140
|
+
var memoizeOneFormatter = memoizeOne(formatter, isEqual__default['default']);
|
|
1131
1141
|
var go2BackAndClose = function go2BackAndClose() {
|
|
1132
1142
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1133
1143
|
umi.history.goBack();
|
|
@@ -2802,85 +2812,84 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
2802
2812
|
});
|
|
2803
2813
|
}
|
|
2804
2814
|
// 数组对象处理,对带有特殊标记的name进行处理
|
|
2805
|
-
var
|
|
2815
|
+
for (var key in params) {
|
|
2806
2816
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2817
|
+
(function () {
|
|
2818
|
+
var element = params[key];
|
|
2819
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
2820
|
+
var dataParams = key.split('*number*');
|
|
2821
|
+
dataParams.forEach(function (value, index) {
|
|
2822
|
+
params[value] = element[index];
|
|
2823
|
+
});
|
|
2824
|
+
delete params[key];
|
|
2825
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
2826
|
+
var _dataParams = key.split('*address*');
|
|
2827
|
+
_dataParams.forEach(function (value, index) {
|
|
2828
|
+
params[value] = element.PCDCode[index];
|
|
2829
|
+
});
|
|
2830
|
+
delete params[key];
|
|
2831
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
2832
|
+
var _dataParams2 = key.split('*costType*');
|
|
2833
|
+
// eslint-disable-next-line prefer-destructuring
|
|
2834
|
+
params[_dataParams2[0]] = element[1];
|
|
2835
|
+
delete params[key];
|
|
2836
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
2837
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
2838
|
+
_dataParams3.forEach(function (value, index) {
|
|
2839
|
+
if (index === 0) {
|
|
2840
|
+
params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
2841
|
+
} else {
|
|
2842
|
+
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
2843
|
+
}
|
|
2844
|
+
});
|
|
2845
|
+
delete params[key];
|
|
2846
|
+
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
2847
|
+
var _dataParams4 = key.split('*checkBox*');
|
|
2848
|
+
if (element) {
|
|
2849
|
+
params[_dataParams4[0]] = 0;
|
|
2832
2850
|
}
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2851
|
+
delete params[key];
|
|
2852
|
+
} else if (element && key.indexOf('*cascader*') >= 0) {
|
|
2853
|
+
var _dataParams5 = key.split('*cascader*');
|
|
2854
|
+
params[_dataParams5[0]] = element[element.length - 1];
|
|
2855
|
+
delete params[key];
|
|
2856
|
+
} else if (element && key.indexOf('*date*') >= 0) {
|
|
2857
|
+
var _dataParams6 = key.split('*date*');
|
|
2858
|
+
_dataParams6.forEach(function (value, index) {
|
|
2859
|
+
if (index === 0) {
|
|
2860
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
2861
|
+
} else {
|
|
2862
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
2863
|
+
}
|
|
2864
|
+
});
|
|
2865
|
+
delete params[key];
|
|
2866
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
2867
|
+
var _dataParams7 = key.split('*');
|
|
2868
|
+
_dataParams7.forEach(function (value, index) {
|
|
2869
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
2870
|
+
});
|
|
2871
|
+
delete params[key];
|
|
2872
|
+
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
2873
|
+
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
2874
|
+
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
2875
|
+
if (params[key][0] === 'range') {
|
|
2876
|
+
if (params[key][1][0]) {
|
|
2877
|
+
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
2878
|
+
}
|
|
2879
|
+
if (params[key][1][1]) {
|
|
2880
|
+
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
2881
|
+
}
|
|
2850
2882
|
} else {
|
|
2851
|
-
params[
|
|
2852
|
-
}
|
|
2853
|
-
});
|
|
2854
|
-
delete params[key];
|
|
2855
|
-
} else if (element && key.indexOf('*') >= 0) {
|
|
2856
|
-
var _dataParams7 = key.split('*');
|
|
2857
|
-
_dataParams7.forEach(function (value, index) {
|
|
2858
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
2859
|
-
});
|
|
2860
|
-
delete params[key];
|
|
2861
|
-
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
2862
|
-
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
2863
|
-
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
2864
|
-
if (params[key][0] === 'range') {
|
|
2865
|
-
if (params[key][1][0]) {
|
|
2866
|
-
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
2883
|
+
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
2867
2884
|
}
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
} else {
|
|
2872
|
-
|
|
2885
|
+
delete params[key];
|
|
2886
|
+
} else if (Array.isArray(element)) {
|
|
2887
|
+
params[key] = element.join(',');
|
|
2888
|
+
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
2889
|
+
delete params[key];
|
|
2873
2890
|
}
|
|
2874
|
-
|
|
2875
|
-
} else if (Array.isArray(element)) {
|
|
2876
|
-
params[key] = element.join(',');
|
|
2877
|
-
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
2878
|
-
delete params[key];
|
|
2879
|
-
}
|
|
2891
|
+
})();
|
|
2880
2892
|
}
|
|
2881
|
-
};
|
|
2882
|
-
for (var key in params) {
|
|
2883
|
-
_loop();
|
|
2884
2893
|
}
|
|
2885
2894
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
2886
2895
|
pageSize: pageSize,
|
|
@@ -3131,7 +3140,17 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3131
3140
|
};
|
|
3132
3141
|
var onResetTable = function onResetTable() {
|
|
3133
3142
|
form.resetFields();
|
|
3134
|
-
|
|
3143
|
+
// 判断是否存在默认不可变的依赖值
|
|
3144
|
+
var fixedParam = {};
|
|
3145
|
+
if (fixedparamsDisabled) {
|
|
3146
|
+
if (fixedparameter && fieldValToParam && ctx) {
|
|
3147
|
+
fixedparameter.forEach(function (item, index) {
|
|
3148
|
+
fixedParam[item] = ctx.form.getFieldValue(fieldValToParam[index]);
|
|
3149
|
+
});
|
|
3150
|
+
}
|
|
3151
|
+
form.setFieldsValue(_objectSpread2({}, fixedParam));
|
|
3152
|
+
}
|
|
3153
|
+
setTableFormParams(_objectSpread2({}, fixedParam));
|
|
3135
3154
|
getData({
|
|
3136
3155
|
pageSize: tableInitPageSize,
|
|
3137
3156
|
currentPage: 1
|
|
@@ -4536,74 +4555,76 @@ var AddSelect = function AddSelect(props) {
|
|
|
4536
4555
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
4537
4556
|
var result;
|
|
4538
4557
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
4539
|
-
while (1)
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
|
|
4558
|
+
while (1) {
|
|
4559
|
+
switch (_context.prev = _context.next) {
|
|
4560
|
+
case 0:
|
|
4561
|
+
if (!(bType == 'skc' && tList.some(function (i) {
|
|
4562
|
+
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
4563
|
+
}))) {
|
|
4564
|
+
_context.next = 3;
|
|
4565
|
+
break;
|
|
4566
|
+
}
|
|
4567
|
+
antd.message.warning('相同skc配码不可设置相同哦');
|
|
4568
|
+
return _context.abrupt("return", false);
|
|
4569
|
+
case 3:
|
|
4570
|
+
if (!(bType == 'spu')) {
|
|
4571
|
+
_context.next = 26;
|
|
4572
|
+
break;
|
|
4573
|
+
}
|
|
4574
|
+
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
4575
|
+
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
4576
|
+
}))) {
|
|
4577
|
+
_context.next = 7;
|
|
4578
|
+
break;
|
|
4579
|
+
}
|
|
4580
|
+
antd.message.warning('相同商品相同配码颜色不可设置相同哦');
|
|
4581
|
+
return _context.abrupt("return", false);
|
|
4582
|
+
case 7:
|
|
4583
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
4584
|
+
_context.next = 10;
|
|
4585
|
+
break;
|
|
4586
|
+
}
|
|
4587
|
+
antd.message.warning('请先选择颜色!');
|
|
4588
|
+
return _context.abrupt("return", false);
|
|
4589
|
+
case 10:
|
|
4590
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
4591
|
+
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
4592
|
+
}))) {
|
|
4593
|
+
_context.next = 13;
|
|
4594
|
+
break;
|
|
4595
|
+
}
|
|
4596
|
+
antd.message.warning('相同商品相同颜色配码不可设置相同哦');
|
|
4597
|
+
return _context.abrupt("return", false);
|
|
4598
|
+
case 13:
|
|
4599
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
4600
|
+
_context.next = 26;
|
|
4601
|
+
break;
|
|
4602
|
+
}
|
|
4603
|
+
result = true;
|
|
4604
|
+
_context.prev = 15;
|
|
4605
|
+
_context.next = 18;
|
|
4606
|
+
return checkSpuMatchCode({
|
|
4607
|
+
skcCode: recordItem[recordKey],
|
|
4608
|
+
matchingCode: changeValue,
|
|
4609
|
+
ext1: recordItem.colorName
|
|
4610
|
+
});
|
|
4611
|
+
case 18:
|
|
4612
|
+
result = _context.sent;
|
|
4613
|
+
result = true;
|
|
4614
|
+
_context.next = 25;
|
|
4581
4615
|
break;
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
_context.next = 25;
|
|
4595
|
-
break;
|
|
4596
|
-
case 22:
|
|
4597
|
-
_context.prev = 22;
|
|
4598
|
-
_context.t0 = _context["catch"](15);
|
|
4599
|
-
result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
|
|
4600
|
-
case 25:
|
|
4601
|
-
return _context.abrupt("return", result);
|
|
4602
|
-
case 26:
|
|
4603
|
-
return _context.abrupt("return", true);
|
|
4604
|
-
case 27:
|
|
4605
|
-
case "end":
|
|
4606
|
-
return _context.stop();
|
|
4616
|
+
case 22:
|
|
4617
|
+
_context.prev = 22;
|
|
4618
|
+
_context.t0 = _context["catch"](15);
|
|
4619
|
+
result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
|
|
4620
|
+
case 25:
|
|
4621
|
+
return _context.abrupt("return", result);
|
|
4622
|
+
case 26:
|
|
4623
|
+
return _context.abrupt("return", true);
|
|
4624
|
+
case 27:
|
|
4625
|
+
case "end":
|
|
4626
|
+
return _context.stop();
|
|
4627
|
+
}
|
|
4607
4628
|
}
|
|
4608
4629
|
}, _callee, null, [[15, 22]]);
|
|
4609
4630
|
}));
|
|
@@ -4795,27 +4816,29 @@ var AddSelect = function AddSelect(props) {
|
|
|
4795
4816
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
4796
4817
|
var isConformToTheRules, newPopValue;
|
|
4797
4818
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
4798
|
-
while (1)
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
newPopValue = popvalue.map(function (i, innerIndex) {
|
|
4810
|
-
if (innerIndex == index) {
|
|
4811
|
-
i[item.dataIndex] = record[item.dataIndex];
|
|
4819
|
+
while (1) {
|
|
4820
|
+
switch (_context2.prev = _context2.next) {
|
|
4821
|
+
case 0:
|
|
4822
|
+
_context2.next = 2;
|
|
4823
|
+
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
4824
|
+
case 2:
|
|
4825
|
+
isConformToTheRules = _context2.sent;
|
|
4826
|
+
if (isConformToTheRules) {
|
|
4827
|
+
record[item.dataIndex] = value;
|
|
4828
|
+
} else {
|
|
4829
|
+
record[item.dataIndex] = null;
|
|
4812
4830
|
}
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4831
|
+
newPopValue = popvalue.map(function (i, innerIndex) {
|
|
4832
|
+
if (innerIndex == index) {
|
|
4833
|
+
i[item.dataIndex] = record[item.dataIndex];
|
|
4834
|
+
}
|
|
4835
|
+
return i;
|
|
4836
|
+
});
|
|
4837
|
+
setPopValue(newPopValue);
|
|
4838
|
+
case 6:
|
|
4839
|
+
case "end":
|
|
4840
|
+
return _context2.stop();
|
|
4841
|
+
}
|
|
4819
4842
|
}
|
|
4820
4843
|
}, _callee2);
|
|
4821
4844
|
}));
|
|
@@ -4875,85 +4898,84 @@ var AddSelect = function AddSelect(props) {
|
|
|
4875
4898
|
});
|
|
4876
4899
|
}
|
|
4877
4900
|
// 数组对象处理,对带有特殊标记的name进行处理
|
|
4878
|
-
var
|
|
4901
|
+
for (var key in params) {
|
|
4879
4902
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4903
|
+
(function () {
|
|
4904
|
+
var element = params[key];
|
|
4905
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
4906
|
+
var dataParams = key.split('*number*');
|
|
4907
|
+
dataParams.forEach(function (value, index) {
|
|
4908
|
+
params[value] = element[index];
|
|
4909
|
+
});
|
|
4910
|
+
delete params[key];
|
|
4911
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
4912
|
+
var _dataParams = key.split('*address*');
|
|
4913
|
+
_dataParams.forEach(function (value, index) {
|
|
4914
|
+
params[value] = element.PCDCode[index];
|
|
4915
|
+
});
|
|
4916
|
+
delete params[key];
|
|
4917
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
4918
|
+
var _dataParams2 = key.split('*costType*');
|
|
4919
|
+
// eslint-disable-next-line prefer-destructuring
|
|
4920
|
+
params[_dataParams2[0]] = element[1];
|
|
4921
|
+
delete params[key];
|
|
4922
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
4923
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
4924
|
+
_dataParams3.forEach(function (value, index) {
|
|
4925
|
+
if (index === 0) {
|
|
4926
|
+
params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
4927
|
+
} else {
|
|
4928
|
+
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
4929
|
+
}
|
|
4930
|
+
});
|
|
4931
|
+
delete params[key];
|
|
4932
|
+
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
4933
|
+
var _dataParams4 = key.split('*checkBox*');
|
|
4934
|
+
if (element) {
|
|
4935
|
+
params[_dataParams4[0]] = 0;
|
|
4905
4936
|
}
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
4937
|
+
delete params[key];
|
|
4938
|
+
} else if (element && key.indexOf('*cascader*') >= 0) {
|
|
4939
|
+
var _dataParams5 = key.split('*cascader*');
|
|
4940
|
+
params[_dataParams5[0]] = element[element.length - 1];
|
|
4941
|
+
delete params[key];
|
|
4942
|
+
} else if (element && key.indexOf('*date*') >= 0) {
|
|
4943
|
+
var _dataParams6 = key.split('*date*');
|
|
4944
|
+
_dataParams6.forEach(function (value, index) {
|
|
4945
|
+
if (index === 0) {
|
|
4946
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
4947
|
+
} else {
|
|
4948
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
4949
|
+
}
|
|
4950
|
+
});
|
|
4951
|
+
delete params[key];
|
|
4952
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
4953
|
+
var _dataParams7 = key.split('*');
|
|
4954
|
+
_dataParams7.forEach(function (value, index) {
|
|
4955
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
4956
|
+
});
|
|
4957
|
+
delete params[key];
|
|
4958
|
+
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
4959
|
+
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
4960
|
+
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
4961
|
+
if (params[key][0] === 'range') {
|
|
4962
|
+
if (params[key][1][0]) {
|
|
4963
|
+
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
4964
|
+
}
|
|
4965
|
+
if (params[key][1][1]) {
|
|
4966
|
+
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
4967
|
+
}
|
|
4923
4968
|
} else {
|
|
4924
|
-
params[
|
|
4925
|
-
}
|
|
4926
|
-
});
|
|
4927
|
-
delete params[key];
|
|
4928
|
-
} else if (element && key.indexOf('*') >= 0) {
|
|
4929
|
-
var _dataParams7 = key.split('*');
|
|
4930
|
-
_dataParams7.forEach(function (value, index) {
|
|
4931
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
4932
|
-
});
|
|
4933
|
-
delete params[key];
|
|
4934
|
-
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
4935
|
-
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
4936
|
-
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
4937
|
-
if (params[key][0] === 'range') {
|
|
4938
|
-
if (params[key][1][0]) {
|
|
4939
|
-
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
4969
|
+
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
4940
4970
|
}
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
} else {
|
|
4945
|
-
|
|
4971
|
+
delete params[key];
|
|
4972
|
+
} else if (Array.isArray(element)) {
|
|
4973
|
+
params[key] = element.join(',');
|
|
4974
|
+
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
4975
|
+
delete params[key];
|
|
4946
4976
|
}
|
|
4947
|
-
|
|
4948
|
-
} else if (Array.isArray(element)) {
|
|
4949
|
-
params[key] = element.join(',');
|
|
4950
|
-
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
4951
|
-
delete params[key];
|
|
4952
|
-
}
|
|
4977
|
+
})();
|
|
4953
4978
|
}
|
|
4954
|
-
};
|
|
4955
|
-
for (var key in params) {
|
|
4956
|
-
_loop();
|
|
4957
4979
|
}
|
|
4958
4980
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
4959
4981
|
pageSize: pageSize,
|
|
@@ -6408,74 +6430,76 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
6408
6430
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
6409
6431
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
6410
6432
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
6411
|
-
while (1)
|
|
6412
|
-
|
|
6413
|
-
|
|
6414
|
-
|
|
6415
|
-
|
|
6416
|
-
|
|
6417
|
-
antd.message.warning('至少录入一条数据');
|
|
6418
|
-
return _context.abrupt("return");
|
|
6419
|
-
case 3:
|
|
6420
|
-
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
6421
|
-
return d.skuCode && d.name;
|
|
6422
|
-
})) {
|
|
6423
|
-
_context.next = 6;
|
|
6424
|
-
break;
|
|
6425
|
-
}
|
|
6426
|
-
antd.message.warning('请选择商品!');
|
|
6427
|
-
return _context.abrupt("return");
|
|
6428
|
-
case 6:
|
|
6429
|
-
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
6430
|
-
return d.count;
|
|
6431
|
-
})) {
|
|
6432
|
-
_context.next = 9;
|
|
6433
|
-
break;
|
|
6434
|
-
}
|
|
6435
|
-
antd.message.warning('请填写商品数量!');
|
|
6436
|
-
return _context.abrupt("return");
|
|
6437
|
-
case 9:
|
|
6438
|
-
_context.next = 11;
|
|
6439
|
-
return isSkuCanEntry(data);
|
|
6440
|
-
case 11:
|
|
6441
|
-
canEntryObject = _context.sent;
|
|
6442
|
-
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
6443
|
-
_context.next = 16;
|
|
6444
|
-
break;
|
|
6445
|
-
}
|
|
6446
|
-
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) {
|
|
6447
|
-
return /*#__PURE__*/React__default['default'].createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
|
|
6448
|
-
}));
|
|
6449
|
-
messageInfo && antd.message.warning({
|
|
6450
|
-
content: messageInfo,
|
|
6451
|
-
duration: 6
|
|
6452
|
-
});
|
|
6453
|
-
return _context.abrupt("return");
|
|
6454
|
-
case 16:
|
|
6455
|
-
setLoading(true);
|
|
6456
|
-
onSaveCallback(data).then(function (res) {
|
|
6457
|
-
{
|
|
6458
|
-
var _Object$keys;
|
|
6459
|
-
var initSuccessMessage = '保存成功';
|
|
6460
|
-
var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
|
|
6461
|
-
if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
|
|
6462
|
-
(rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? antd.message.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
|
|
6463
|
-
} else {
|
|
6464
|
-
antd.message.success(initSuccessMessage);
|
|
6465
|
-
}
|
|
6433
|
+
while (1) {
|
|
6434
|
+
switch (_context.prev = _context.next) {
|
|
6435
|
+
case 0:
|
|
6436
|
+
if (data === null || data === void 0 ? void 0 : data.length) {
|
|
6437
|
+
_context.next = 3;
|
|
6438
|
+
break;
|
|
6466
6439
|
}
|
|
6467
|
-
|
|
6468
|
-
|
|
6469
|
-
|
|
6470
|
-
|
|
6471
|
-
|
|
6472
|
-
|
|
6473
|
-
|
|
6474
|
-
|
|
6475
|
-
|
|
6476
|
-
|
|
6477
|
-
|
|
6478
|
-
|
|
6440
|
+
antd.message.warning('至少录入一条数据');
|
|
6441
|
+
return _context.abrupt("return");
|
|
6442
|
+
case 3:
|
|
6443
|
+
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
6444
|
+
return d.skuCode && d.name;
|
|
6445
|
+
})) {
|
|
6446
|
+
_context.next = 6;
|
|
6447
|
+
break;
|
|
6448
|
+
}
|
|
6449
|
+
antd.message.warning('请选择商品!');
|
|
6450
|
+
return _context.abrupt("return");
|
|
6451
|
+
case 6:
|
|
6452
|
+
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
6453
|
+
return d.count;
|
|
6454
|
+
})) {
|
|
6455
|
+
_context.next = 9;
|
|
6456
|
+
break;
|
|
6457
|
+
}
|
|
6458
|
+
antd.message.warning('请填写商品数量!');
|
|
6459
|
+
return _context.abrupt("return");
|
|
6460
|
+
case 9:
|
|
6461
|
+
_context.next = 11;
|
|
6462
|
+
return isSkuCanEntry(data);
|
|
6463
|
+
case 11:
|
|
6464
|
+
canEntryObject = _context.sent;
|
|
6465
|
+
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
6466
|
+
_context.next = 16;
|
|
6467
|
+
break;
|
|
6468
|
+
}
|
|
6469
|
+
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) {
|
|
6470
|
+
return /*#__PURE__*/React__default['default'].createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
|
|
6471
|
+
}));
|
|
6472
|
+
messageInfo && antd.message.warning({
|
|
6473
|
+
content: messageInfo,
|
|
6474
|
+
duration: 6
|
|
6475
|
+
});
|
|
6476
|
+
return _context.abrupt("return");
|
|
6477
|
+
case 16:
|
|
6478
|
+
setLoading(true);
|
|
6479
|
+
onSaveCallback(data).then(function (res) {
|
|
6480
|
+
{
|
|
6481
|
+
var _Object$keys;
|
|
6482
|
+
var initSuccessMessage = '保存成功';
|
|
6483
|
+
var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
|
|
6484
|
+
if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
|
|
6485
|
+
(rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? antd.message.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
|
|
6486
|
+
} else {
|
|
6487
|
+
antd.message.success(initSuccessMessage);
|
|
6488
|
+
}
|
|
6489
|
+
}
|
|
6490
|
+
setLoading(false);
|
|
6491
|
+
}).catch(function (Error) {
|
|
6492
|
+
antd.message.error(Error);
|
|
6493
|
+
setLoading(false);
|
|
6494
|
+
});
|
|
6495
|
+
case 18:
|
|
6496
|
+
case "end":
|
|
6497
|
+
return _context.stop();
|
|
6498
|
+
}
|
|
6499
|
+
}
|
|
6500
|
+
}, _callee);
|
|
6501
|
+
}));
|
|
6502
|
+
return function handleSubmit() {
|
|
6479
6503
|
return _ref4.apply(this, arguments);
|
|
6480
6504
|
};
|
|
6481
6505
|
}();
|
|
@@ -9606,7 +9630,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
9606
9630
|
* @LastEditTime: 2022-01-14 17:17:26
|
|
9607
9631
|
* @LastEditors: rodchen
|
|
9608
9632
|
*/
|
|
9609
|
-
var index$
|
|
9633
|
+
var index$1 = (function (storageKeyString) {
|
|
9610
9634
|
var seconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
|
|
9611
9635
|
var tipsCallFunction = arguments.length > 2 ? arguments[2] : undefined;
|
|
9612
9636
|
if (typeof seconds !== 'number') throw new Error('seconds should be number');
|
|
@@ -9724,42 +9748,44 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
9724
9748
|
var _ctx$form;
|
|
9725
9749
|
var resData, coverData, data, dataList;
|
|
9726
9750
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9727
|
-
while (1)
|
|
9728
|
-
|
|
9729
|
-
|
|
9730
|
-
|
|
9731
|
-
|
|
9751
|
+
while (1) {
|
|
9752
|
+
switch (_context.prev = _context.next) {
|
|
9753
|
+
case 0:
|
|
9754
|
+
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
9755
|
+
if (!(resData.status === '0' || resData.code === '000000')) {
|
|
9756
|
+
_context.next = 13;
|
|
9757
|
+
break;
|
|
9758
|
+
}
|
|
9759
|
+
data = resData.data;
|
|
9760
|
+
if (!remoteSource.converter) {
|
|
9761
|
+
_context.next = 9;
|
|
9762
|
+
break;
|
|
9763
|
+
}
|
|
9764
|
+
_context.next = 6;
|
|
9765
|
+
return remoteSource.converter({
|
|
9766
|
+
data: [data]
|
|
9767
|
+
});
|
|
9768
|
+
case 6:
|
|
9769
|
+
coverData = _context.sent;
|
|
9770
|
+
_context.next = 11;
|
|
9732
9771
|
break;
|
|
9733
|
-
|
|
9734
|
-
|
|
9735
|
-
|
|
9736
|
-
|
|
9772
|
+
case 9:
|
|
9773
|
+
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
9774
|
+
coverData = dataList.length && dataList.map(function (ites) {
|
|
9775
|
+
return mapSearchTree(ites);
|
|
9776
|
+
}) || [];
|
|
9777
|
+
case 11:
|
|
9778
|
+
_context.next = 14;
|
|
9737
9779
|
break;
|
|
9738
|
-
|
|
9739
|
-
|
|
9740
|
-
|
|
9741
|
-
|
|
9742
|
-
|
|
9743
|
-
|
|
9744
|
-
|
|
9745
|
-
|
|
9746
|
-
|
|
9747
|
-
case 9:
|
|
9748
|
-
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
9749
|
-
coverData = dataList.length && dataList.map(function (ites) {
|
|
9750
|
-
return mapSearchTree(ites);
|
|
9751
|
-
}) || [];
|
|
9752
|
-
case 11:
|
|
9753
|
-
_context.next = 14;
|
|
9754
|
-
break;
|
|
9755
|
-
case 13:
|
|
9756
|
-
coverData = [];
|
|
9757
|
-
case 14:
|
|
9758
|
-
setTreeData(coverData);
|
|
9759
|
-
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
|
|
9760
|
-
case 16:
|
|
9761
|
-
case "end":
|
|
9762
|
-
return _context.stop();
|
|
9780
|
+
case 13:
|
|
9781
|
+
coverData = [];
|
|
9782
|
+
case 14:
|
|
9783
|
+
setTreeData(coverData);
|
|
9784
|
+
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
|
|
9785
|
+
case 16:
|
|
9786
|
+
case "end":
|
|
9787
|
+
return _context.stop();
|
|
9788
|
+
}
|
|
9763
9789
|
}
|
|
9764
9790
|
}, _callee);
|
|
9765
9791
|
}));
|
|
@@ -9960,7 +9986,7 @@ var BusinessTreeSearchSelect$1 = /*#__PURE__*/React__default['default'].memo(Bus
|
|
|
9960
9986
|
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";
|
|
9961
9987
|
styleInject(css_248z$8);
|
|
9962
9988
|
|
|
9963
|
-
var index$
|
|
9989
|
+
var index$2 = (function (props) {
|
|
9964
9990
|
var _props$formStatusMapp = props.formStatusMapping,
|
|
9965
9991
|
formStatusMapping = _props$formStatusMapp === void 0 ? [] : _props$formStatusMapp;
|
|
9966
9992
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -11384,7 +11410,7 @@ var iconMap = {
|
|
|
11384
11410
|
src: moreIcon
|
|
11385
11411
|
})
|
|
11386
11412
|
};
|
|
11387
|
-
var index$
|
|
11413
|
+
var index$3 = (function (props) {
|
|
11388
11414
|
var _useLocation = umi.useLocation(),
|
|
11389
11415
|
pathname = _useLocation.pathname;
|
|
11390
11416
|
var _useState = React.useState(pathname + 'id'),
|
|
@@ -11601,7 +11627,7 @@ var css_248z$d = ".home_page_head {\n height: 54px;\n display: flex;\n justif
|
|
|
11601
11627
|
styleInject(css_248z$d);
|
|
11602
11628
|
|
|
11603
11629
|
var _excluded$c = ["children"];
|
|
11604
|
-
var index$
|
|
11630
|
+
var index$4 = (function (props) {
|
|
11605
11631
|
var _useLocation = umi.useLocation(),
|
|
11606
11632
|
pathname = _useLocation.pathname;
|
|
11607
11633
|
var _useState = React.useState(pathname + 'id'),
|
|
@@ -13877,19 +13903,21 @@ function _outLogin() {
|
|
|
13877
13903
|
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
13878
13904
|
var res;
|
|
13879
13905
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
13880
|
-
while (1)
|
|
13881
|
-
|
|
13882
|
-
|
|
13883
|
-
|
|
13884
|
-
|
|
13885
|
-
|
|
13886
|
-
|
|
13887
|
-
|
|
13888
|
-
|
|
13889
|
-
|
|
13890
|
-
|
|
13891
|
-
|
|
13892
|
-
|
|
13906
|
+
while (1) {
|
|
13907
|
+
switch (_context.prev = _context.next) {
|
|
13908
|
+
case 0:
|
|
13909
|
+
_context.next = 2;
|
|
13910
|
+
return axios__default['default']({
|
|
13911
|
+
url: '/user/web/loginOut',
|
|
13912
|
+
method: 'GET'
|
|
13913
|
+
});
|
|
13914
|
+
case 2:
|
|
13915
|
+
res = _context.sent;
|
|
13916
|
+
return _context.abrupt("return", res);
|
|
13917
|
+
case 4:
|
|
13918
|
+
case "end":
|
|
13919
|
+
return _context.stop();
|
|
13920
|
+
}
|
|
13893
13921
|
}
|
|
13894
13922
|
}, _callee);
|
|
13895
13923
|
}));
|
|
@@ -14018,29 +14046,31 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
14018
14046
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
14019
14047
|
var sessionId;
|
|
14020
14048
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
14021
|
-
while (1)
|
|
14022
|
-
|
|
14023
|
-
|
|
14024
|
-
|
|
14025
|
-
|
|
14026
|
-
|
|
14027
|
-
|
|
14028
|
-
|
|
14029
|
-
|
|
14030
|
-
|
|
14031
|
-
case 5:
|
|
14032
|
-
// @ts-ignore
|
|
14033
|
-
if (BUILD_TYPE) {
|
|
14034
|
-
antd.message.success('退出登录成功');
|
|
14035
|
-
umi.history.replace({
|
|
14036
|
-
pathname: '/user/login'
|
|
14049
|
+
while (1) {
|
|
14050
|
+
switch (_context.prev = _context.next) {
|
|
14051
|
+
case 0:
|
|
14052
|
+
_context.next = 2;
|
|
14053
|
+
return getSessionId();
|
|
14054
|
+
case 2:
|
|
14055
|
+
sessionId = _context.sent;
|
|
14056
|
+
_context.next = 5;
|
|
14057
|
+
return outLogin({
|
|
14058
|
+
sessionId: sessionId
|
|
14037
14059
|
});
|
|
14038
|
-
|
|
14039
|
-
|
|
14040
|
-
|
|
14041
|
-
|
|
14042
|
-
|
|
14043
|
-
|
|
14060
|
+
case 5:
|
|
14061
|
+
// @ts-ignore
|
|
14062
|
+
if (BUILD_TYPE) {
|
|
14063
|
+
antd.message.success('退出登录成功');
|
|
14064
|
+
umi.history.replace({
|
|
14065
|
+
pathname: '/user/login'
|
|
14066
|
+
});
|
|
14067
|
+
} else {
|
|
14068
|
+
setLoginOutPath();
|
|
14069
|
+
}
|
|
14070
|
+
case 6:
|
|
14071
|
+
case "end":
|
|
14072
|
+
return _context.stop();
|
|
14073
|
+
}
|
|
14044
14074
|
}
|
|
14045
14075
|
}, _callee);
|
|
14046
14076
|
}));
|
|
@@ -15868,7 +15898,6 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
15868
15898
|
showSubMenu: isShow
|
|
15869
15899
|
});
|
|
15870
15900
|
}, 500);
|
|
15871
|
-
//设置tabs标签左右滚动
|
|
15872
15901
|
_this.setTabNavTransLate = function (num) {
|
|
15873
15902
|
var _document$getElementB, _document$getElementB2, _document$getElementB3, _document$getElementB4, _document$defaultView;
|
|
15874
15903
|
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];
|
|
@@ -16549,12 +16578,14 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
16549
16578
|
request: function () {
|
|
16550
16579
|
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
16551
16580
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
16552
|
-
while (1)
|
|
16553
|
-
|
|
16554
|
-
|
|
16555
|
-
|
|
16556
|
-
|
|
16557
|
-
|
|
16581
|
+
while (1) {
|
|
16582
|
+
switch (_context.prev = _context.next) {
|
|
16583
|
+
case 0:
|
|
16584
|
+
return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
|
|
16585
|
+
case 1:
|
|
16586
|
+
case "end":
|
|
16587
|
+
return _context.stop();
|
|
16588
|
+
}
|
|
16558
16589
|
}
|
|
16559
16590
|
}, _callee);
|
|
16560
16591
|
}));
|
|
@@ -16692,7 +16723,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
16692
16723
|
}]);
|
|
16693
16724
|
return WrapperComponent;
|
|
16694
16725
|
}(React__default['default'].Component);
|
|
16695
|
-
var index$
|
|
16726
|
+
var index$5 = (function (props) {
|
|
16696
16727
|
var _useModel = umi.useModel('@@initialState'),
|
|
16697
16728
|
_useModel$initialStat = _useModel.initialState,
|
|
16698
16729
|
initialState = _useModel$initialStat === void 0 ? {} : _useModel$initialStat;
|
|
@@ -16933,7 +16964,7 @@ var FixedScrollBar = function FixedScrollBar(_ref, ref) {
|
|
|
16933
16964
|
};
|
|
16934
16965
|
var FixedScrollBar$1 = /*#__PURE__*/React__default['default'].forwardRef(FixedScrollBar);
|
|
16935
16966
|
|
|
16936
|
-
var index$
|
|
16967
|
+
var index$6 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
16937
16968
|
var _useState = React.useState(false),
|
|
16938
16969
|
_useState2 = _slicedToArray(_useState, 2),
|
|
16939
16970
|
show = _useState2[0],
|
|
@@ -24226,26 +24257,28 @@ var valueType = {
|
|
|
24226
24257
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
24227
24258
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
24228
24259
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
24229
|
-
while (1)
|
|
24230
|
-
|
|
24231
|
-
|
|
24232
|
-
|
|
24233
|
-
|
|
24234
|
-
|
|
24235
|
-
|
|
24236
|
-
|
|
24237
|
-
return {
|
|
24238
|
-
|
|
24239
|
-
|
|
24240
|
-
|
|
24241
|
-
|
|
24242
|
-
|
|
24243
|
-
|
|
24244
|
-
|
|
24245
|
-
|
|
24246
|
-
|
|
24247
|
-
|
|
24248
|
-
|
|
24260
|
+
while (1) {
|
|
24261
|
+
switch (_context.prev = _context.next) {
|
|
24262
|
+
case 0:
|
|
24263
|
+
_context.next = 2;
|
|
24264
|
+
return bssula.request({
|
|
24265
|
+
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
24266
|
+
converter: function converter(_ref2) {
|
|
24267
|
+
var data = _ref2.data;
|
|
24268
|
+
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
24269
|
+
return {
|
|
24270
|
+
text: d.name,
|
|
24271
|
+
value: d.code || d.brandCode
|
|
24272
|
+
};
|
|
24273
|
+
});
|
|
24274
|
+
}
|
|
24275
|
+
});
|
|
24276
|
+
case 2:
|
|
24277
|
+
return _context.abrupt("return", _context.sent);
|
|
24278
|
+
case 3:
|
|
24279
|
+
case "end":
|
|
24280
|
+
return _context.stop();
|
|
24281
|
+
}
|
|
24249
24282
|
}
|
|
24250
24283
|
}, _callee);
|
|
24251
24284
|
}));
|
|
@@ -24295,53 +24328,55 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
24295
24328
|
ahooks.useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
24296
24329
|
var _ref$current, source;
|
|
24297
24330
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
24298
|
-
while (1)
|
|
24299
|
-
|
|
24300
|
-
|
|
24301
|
-
|
|
24302
|
-
|
|
24303
|
-
|
|
24304
|
-
|
|
24305
|
-
|
|
24306
|
-
|
|
24307
|
-
|
|
24331
|
+
while (1) {
|
|
24332
|
+
switch (_context.prev = _context.next) {
|
|
24333
|
+
case 0:
|
|
24334
|
+
_context.next = 2;
|
|
24335
|
+
return setIsShowAndType(function (prev) {
|
|
24336
|
+
if (record.inputType === 20 || record.inputType === 30) {
|
|
24337
|
+
return {
|
|
24338
|
+
isShow: true,
|
|
24339
|
+
singleOrMultiple: record.inputType,
|
|
24340
|
+
type: record.choiceType
|
|
24341
|
+
};
|
|
24342
|
+
}
|
|
24343
|
+
return prev;
|
|
24344
|
+
});
|
|
24345
|
+
case 2:
|
|
24346
|
+
if (!record.dictionaryCode) {
|
|
24347
|
+
_context.next = 17;
|
|
24348
|
+
break;
|
|
24308
24349
|
}
|
|
24309
|
-
|
|
24310
|
-
|
|
24311
|
-
|
|
24312
|
-
|
|
24313
|
-
_context.
|
|
24314
|
-
|
|
24315
|
-
}
|
|
24316
|
-
if (!(record.choiceType == 20)) {
|
|
24317
|
-
_context.next = 7;
|
|
24350
|
+
if (!(record.choiceType == 20)) {
|
|
24351
|
+
_context.next = 7;
|
|
24352
|
+
break;
|
|
24353
|
+
}
|
|
24354
|
+
_context.t0 = getDictionarySource(record.dictionaryCode);
|
|
24355
|
+
_context.next = 15;
|
|
24318
24356
|
break;
|
|
24319
|
-
|
|
24320
|
-
|
|
24321
|
-
|
|
24322
|
-
|
|
24323
|
-
|
|
24324
|
-
|
|
24325
|
-
|
|
24357
|
+
case 7:
|
|
24358
|
+
if (!(record.choiceType == 30)) {
|
|
24359
|
+
_context.next = 13;
|
|
24360
|
+
break;
|
|
24361
|
+
}
|
|
24362
|
+
_context.next = 10;
|
|
24363
|
+
return getDynamicDict(record.dictionaryCode);
|
|
24364
|
+
case 10:
|
|
24365
|
+
_context.t1 = _context.sent;
|
|
24366
|
+
_context.next = 14;
|
|
24326
24367
|
break;
|
|
24327
|
-
|
|
24328
|
-
|
|
24329
|
-
|
|
24330
|
-
|
|
24331
|
-
|
|
24332
|
-
|
|
24333
|
-
|
|
24334
|
-
|
|
24335
|
-
|
|
24336
|
-
|
|
24337
|
-
|
|
24338
|
-
|
|
24339
|
-
source = _context.t0;
|
|
24340
|
-
// @ts-ignore
|
|
24341
|
-
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
24342
|
-
case 17:
|
|
24343
|
-
case "end":
|
|
24344
|
-
return _context.stop();
|
|
24368
|
+
case 13:
|
|
24369
|
+
_context.t1 = [];
|
|
24370
|
+
case 14:
|
|
24371
|
+
_context.t0 = _context.t1;
|
|
24372
|
+
case 15:
|
|
24373
|
+
source = _context.t0;
|
|
24374
|
+
// @ts-ignore
|
|
24375
|
+
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
24376
|
+
case 17:
|
|
24377
|
+
case "end":
|
|
24378
|
+
return _context.stop();
|
|
24379
|
+
}
|
|
24345
24380
|
}
|
|
24346
24381
|
}, _callee);
|
|
24347
24382
|
})));
|
|
@@ -24409,28 +24444,30 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
24409
24444
|
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
24410
24445
|
var form, values, name, relates, source;
|
|
24411
24446
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
24412
|
-
while (1)
|
|
24413
|
-
|
|
24414
|
-
|
|
24415
|
-
|
|
24447
|
+
while (1) {
|
|
24448
|
+
switch (_context2.prev = _context2.next) {
|
|
24449
|
+
case 0:
|
|
24450
|
+
form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
|
|
24451
|
+
if (values[0]) {
|
|
24452
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
24453
|
+
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
24454
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
24455
|
+
}
|
|
24456
|
+
if (!values[1]) {
|
|
24457
|
+
_context2.next = 9;
|
|
24458
|
+
break;
|
|
24459
|
+
}
|
|
24460
|
+
_context2.next = 5;
|
|
24461
|
+
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
24462
|
+
case 5:
|
|
24463
|
+
source = _context2.sent;
|
|
24416
24464
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
24417
24465
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
24418
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0],
|
|
24419
|
-
|
|
24420
|
-
|
|
24421
|
-
_context2.
|
|
24422
|
-
|
|
24423
|
-
}
|
|
24424
|
-
_context2.next = 5;
|
|
24425
|
-
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
24426
|
-
case 5:
|
|
24427
|
-
source = _context2.sent;
|
|
24428
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
24429
|
-
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
24430
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
24431
|
-
case 9:
|
|
24432
|
-
case "end":
|
|
24433
|
-
return _context2.stop();
|
|
24466
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
24467
|
+
case 9:
|
|
24468
|
+
case "end":
|
|
24469
|
+
return _context2.stop();
|
|
24470
|
+
}
|
|
24434
24471
|
}
|
|
24435
24472
|
}, _callee2);
|
|
24436
24473
|
}));
|
|
@@ -24890,41 +24927,43 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
24890
24927
|
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
24891
24928
|
var values, name, form, source;
|
|
24892
24929
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
24893
|
-
while (1)
|
|
24894
|
-
|
|
24895
|
-
|
|
24896
|
-
|
|
24897
|
-
|
|
24898
|
-
|
|
24899
|
-
|
|
24900
|
-
if (!(values[0] === 30)) {
|
|
24901
|
-
_context3.next = 10;
|
|
24902
|
-
break;
|
|
24903
|
-
}
|
|
24904
|
-
_context3.next = 5;
|
|
24905
|
-
return bssula.request({
|
|
24906
|
-
url: '/basic/dictDynamicItem/queryList',
|
|
24907
|
-
converter: function converter(_ref11) {
|
|
24908
|
-
var data = _ref11.data;
|
|
24909
|
-
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
24910
|
-
return {
|
|
24911
|
-
text: d.dictCode,
|
|
24912
|
-
value: d.dictCode
|
|
24913
|
-
};
|
|
24914
|
-
});
|
|
24930
|
+
while (1) {
|
|
24931
|
+
switch (_context3.prev = _context3.next) {
|
|
24932
|
+
case 0:
|
|
24933
|
+
values = _ref10.values, name = _ref10.name, form = _ref10.form;
|
|
24934
|
+
if (values[1] === 40) {
|
|
24935
|
+
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
24936
|
+
form.setFieldVisible(name, false);
|
|
24915
24937
|
}
|
|
24916
|
-
|
|
24917
|
-
|
|
24918
|
-
|
|
24919
|
-
|
|
24920
|
-
|
|
24921
|
-
|
|
24922
|
-
|
|
24923
|
-
|
|
24924
|
-
|
|
24925
|
-
|
|
24926
|
-
|
|
24927
|
-
|
|
24938
|
+
if (!(values[0] === 30)) {
|
|
24939
|
+
_context3.next = 10;
|
|
24940
|
+
break;
|
|
24941
|
+
}
|
|
24942
|
+
_context3.next = 5;
|
|
24943
|
+
return bssula.request({
|
|
24944
|
+
url: '/basic/dictDynamicItem/queryList',
|
|
24945
|
+
converter: function converter(_ref11) {
|
|
24946
|
+
var data = _ref11.data;
|
|
24947
|
+
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
24948
|
+
return {
|
|
24949
|
+
text: d.dictCode,
|
|
24950
|
+
value: d.dictCode
|
|
24951
|
+
};
|
|
24952
|
+
});
|
|
24953
|
+
}
|
|
24954
|
+
});
|
|
24955
|
+
case 5:
|
|
24956
|
+
source = _context3.sent;
|
|
24957
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
24958
|
+
form.setFieldVisible(name, true);
|
|
24959
|
+
_context3.next = 11;
|
|
24960
|
+
break;
|
|
24961
|
+
case 10:
|
|
24962
|
+
form.setFieldVisible(name, false);
|
|
24963
|
+
case 11:
|
|
24964
|
+
case "end":
|
|
24965
|
+
return _context3.stop();
|
|
24966
|
+
}
|
|
24928
24967
|
}
|
|
24929
24968
|
}, _callee3);
|
|
24930
24969
|
}));
|
|
@@ -25113,64 +25152,66 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
25113
25152
|
var _ref$current4, _res$editableStatus;
|
|
25114
25153
|
var res, _res$defaultValue;
|
|
25115
25154
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
25116
|
-
while (1)
|
|
25117
|
-
|
|
25118
|
-
|
|
25119
|
-
|
|
25120
|
-
|
|
25121
|
-
|
|
25122
|
-
|
|
25123
|
-
|
|
25124
|
-
|
|
25125
|
-
|
|
25126
|
-
|
|
25127
|
-
|
|
25128
|
-
|
|
25129
|
-
|
|
25130
|
-
|
|
25131
|
-
|
|
25132
|
-
|
|
25133
|
-
|
|
25134
|
-
|
|
25135
|
-
|
|
25136
|
-
res.
|
|
25137
|
-
|
|
25138
|
-
// 把数组处理成文本
|
|
25139
|
-
if (res.inputType === 30) {
|
|
25140
|
-
if (res.defaultValue) {
|
|
25141
|
-
res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
|
|
25155
|
+
while (1) {
|
|
25156
|
+
switch (_context4.prev = _context4.next) {
|
|
25157
|
+
case 0:
|
|
25158
|
+
_context4.next = 2;
|
|
25159
|
+
return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
|
|
25160
|
+
case 2:
|
|
25161
|
+
res = _context4.sent;
|
|
25162
|
+
res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
|
|
25163
|
+
res.fieldGroup = record.fieldGroup;
|
|
25164
|
+
res.businessType = record.businessType;
|
|
25165
|
+
res.info = {
|
|
25166
|
+
enumeration: res.enumeration,
|
|
25167
|
+
dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
|
|
25168
|
+
formula: res.formula,
|
|
25169
|
+
scale: res.scale,
|
|
25170
|
+
variable: res.variable
|
|
25171
|
+
};
|
|
25172
|
+
res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
|
|
25173
|
+
res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
|
|
25174
|
+
res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
|
|
25175
|
+
if (res.inputType === 40) {
|
|
25176
|
+
res.valueType = 22;
|
|
25142
25177
|
}
|
|
25143
|
-
|
|
25144
|
-
|
|
25145
|
-
|
|
25146
|
-
|
|
25147
|
-
|
|
25148
|
-
_context4.next = 18;
|
|
25149
|
-
break;
|
|
25150
|
-
}
|
|
25151
|
-
bssula.request({
|
|
25152
|
-
url: "/basic/flow/businessField",
|
|
25153
|
-
method: 'POST',
|
|
25154
|
-
params: res,
|
|
25155
|
-
successMessage: '创建成功!',
|
|
25156
|
-
converter: function converter() {
|
|
25157
|
-
onParentOk();
|
|
25178
|
+
// 把数组处理成文本
|
|
25179
|
+
if (res.inputType === 30) {
|
|
25180
|
+
if (res.defaultValue) {
|
|
25181
|
+
res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
|
|
25182
|
+
}
|
|
25158
25183
|
}
|
|
25159
|
-
|
|
25160
|
-
|
|
25161
|
-
|
|
25162
|
-
|
|
25163
|
-
|
|
25164
|
-
|
|
25165
|
-
params: res,
|
|
25166
|
-
successMessage: '修改成功!',
|
|
25167
|
-
converter: function converter() {
|
|
25168
|
-
onParentOk();
|
|
25184
|
+
res.fieldMapping = res.fieldMapping || '';
|
|
25185
|
+
delete res.formula;
|
|
25186
|
+
delete res.showValue;
|
|
25187
|
+
if (!(mode === 'create')) {
|
|
25188
|
+
_context4.next = 18;
|
|
25189
|
+
break;
|
|
25169
25190
|
}
|
|
25170
|
-
|
|
25171
|
-
|
|
25172
|
-
|
|
25173
|
-
|
|
25191
|
+
bssula.request({
|
|
25192
|
+
url: "/basic/flow/businessField",
|
|
25193
|
+
method: 'POST',
|
|
25194
|
+
params: res,
|
|
25195
|
+
successMessage: '创建成功!',
|
|
25196
|
+
converter: function converter() {
|
|
25197
|
+
onParentOk();
|
|
25198
|
+
}
|
|
25199
|
+
});
|
|
25200
|
+
return _context4.abrupt("return");
|
|
25201
|
+
case 18:
|
|
25202
|
+
bssula.request({
|
|
25203
|
+
url: "/basic/flow/businessField/".concat(record.id),
|
|
25204
|
+
method: 'PATCH',
|
|
25205
|
+
params: res,
|
|
25206
|
+
successMessage: '修改成功!',
|
|
25207
|
+
converter: function converter() {
|
|
25208
|
+
onParentOk();
|
|
25209
|
+
}
|
|
25210
|
+
});
|
|
25211
|
+
case 19:
|
|
25212
|
+
case "end":
|
|
25213
|
+
return _context4.stop();
|
|
25214
|
+
}
|
|
25174
25215
|
}
|
|
25175
25216
|
}, _callee4);
|
|
25176
25217
|
}));
|
|
@@ -25192,7 +25233,9 @@ var FieldsSettingsTable = (function (props) {
|
|
|
25192
25233
|
_props$codeProps = props.codeProps,
|
|
25193
25234
|
codeProps = _props$codeProps === void 0 ? '' : _props$codeProps,
|
|
25194
25235
|
moduleType = props.moduleType,
|
|
25195
|
-
moduleRelationId = props.moduleRelationId
|
|
25236
|
+
moduleRelationId = props.moduleRelationId,
|
|
25237
|
+
_props$tableFlag = props.tableFlag,
|
|
25238
|
+
tableFlag = _props$tableFlag === void 0 ? false : _props$tableFlag;
|
|
25196
25239
|
var ref = React.useRef(null);
|
|
25197
25240
|
var _useState = React.useState({
|
|
25198
25241
|
visible: false,
|
|
@@ -25281,6 +25324,9 @@ var FieldsSettingsTable = (function (props) {
|
|
|
25281
25324
|
render: function render(_ref2) {
|
|
25282
25325
|
var text = _ref2.text,
|
|
25283
25326
|
record = _ref2.record;
|
|
25327
|
+
if (tableFlag) {
|
|
25328
|
+
return /*#__PURE__*/React__default['default'].createElement("div", null, " \u5217\u8868\uFF1A", "{\"key\": \"extensionFields,".concat(record.code, "\",\"dataIndex\": \"extensionFields,").concat(record.code, "\",\"title\": \"").concat(record.name, "\"},"));
|
|
25329
|
+
}
|
|
25284
25330
|
if (!codeProps.columns) {
|
|
25285
25331
|
return /*#__PURE__*/React__default['default'].createElement("div", null, "\u8868\u5355\uFF1A", "{\"name\": \"extensionFields,".concat(record.code, "\",\"label\": \"").concat(record.name, "\"},"));
|
|
25286
25332
|
}
|
|
@@ -25421,6 +25467,13 @@ function convertFileds(fields, falltValue, faltFieldRange, containerName) {
|
|
|
25421
25467
|
var _field$container6;
|
|
25422
25468
|
var targetValue = convertFileds(item, falltValue, faltFieldRange, field === null || field === void 0 ? void 0 : (_field$container6 = field.container) === null || _field$container6 === void 0 ? void 0 : _field$container6.name);
|
|
25423
25469
|
if (targetValue) {
|
|
25470
|
+
if (item.dependency) {
|
|
25471
|
+
targetValue.dependency = {
|
|
25472
|
+
visible: _objectSpread2(_objectSpread2({}, item.dependency.visible), {}, {
|
|
25473
|
+
type: new Function('axios', 'ctx', item.dependency.visible.type).bind(null, axios__default['default'])
|
|
25474
|
+
})
|
|
25475
|
+
};
|
|
25476
|
+
}
|
|
25424
25477
|
filedsValue.push(targetValue);
|
|
25425
25478
|
}
|
|
25426
25479
|
});
|
|
@@ -25429,6 +25482,14 @@ function convertFileds(fields, falltValue, faltFieldRange, containerName) {
|
|
|
25429
25482
|
if (returnField) {
|
|
25430
25483
|
var _returnField$name;
|
|
25431
25484
|
returnField.label = field === null || field === void 0 ? void 0 : field.label;
|
|
25485
|
+
if (field === null || field === void 0 ? void 0 : field.disabled) {
|
|
25486
|
+
// 字段设置只读属性
|
|
25487
|
+
returnField.field.props.disabled = true;
|
|
25488
|
+
}
|
|
25489
|
+
if (field === null || field === void 0 ? void 0 : field.invisible) {
|
|
25490
|
+
// 字段设置不可见属性
|
|
25491
|
+
returnField.initialVisible = false;
|
|
25492
|
+
}
|
|
25432
25493
|
if (Array.isArray(returnField.name) && ((_returnField$name = returnField.name) === null || _returnField$name === void 0 ? void 0 : _returnField$name.includes("extensionFields"))) {
|
|
25433
25494
|
returnField.notShowLabel = true;
|
|
25434
25495
|
}
|
|
@@ -25458,10 +25519,39 @@ function faltCustomerFieldRange(fileds) {
|
|
|
25458
25519
|
});
|
|
25459
25520
|
return columnsValue;
|
|
25460
25521
|
}
|
|
25522
|
+
//form存在新加container属性分组得情况 组合操作
|
|
25523
|
+
function combineContainer(originFields, currentFields) {
|
|
25524
|
+
var newCurrentFields = _toConsumableArray(originFields);
|
|
25525
|
+
currentFields.map(function (item) {
|
|
25526
|
+
if (!originFields.find(function (i) {
|
|
25527
|
+
var _i$container, _i$container$props, _item$container;
|
|
25528
|
+
return (i === null || i === void 0 ? void 0 : (_i$container = i.container) === null || _i$container === void 0 ? void 0 : (_i$container$props = _i$container.props) === null || _i$container$props === void 0 ? void 0 : _i$container$props.name) == (item === null || item === void 0 ? void 0 : (_item$container = item.container) === null || _item$container === void 0 ? void 0 : _item$container.name);
|
|
25529
|
+
})) {
|
|
25530
|
+
var _item$container2, _item$container3;
|
|
25531
|
+
newCurrentFields = [].concat(_toConsumableArray(newCurrentFields), [{
|
|
25532
|
+
container: {
|
|
25533
|
+
type: 'card',
|
|
25534
|
+
props: {
|
|
25535
|
+
title: item === null || item === void 0 ? void 0 : (_item$container2 = item.container) === null || _item$container2 === void 0 ? void 0 : _item$container2.title,
|
|
25536
|
+
level: 1,
|
|
25537
|
+
id: Math.random(),
|
|
25538
|
+
isWhiteCard: true,
|
|
25539
|
+
bordered: false,
|
|
25540
|
+
name: item === null || item === void 0 ? void 0 : (_item$container3 = item.container) === null || _item$container3 === void 0 ? void 0 : _item$container3.name
|
|
25541
|
+
}
|
|
25542
|
+
},
|
|
25543
|
+
fields: (item === null || item === void 0 ? void 0 : item.fields) || []
|
|
25544
|
+
}]);
|
|
25545
|
+
}
|
|
25546
|
+
});
|
|
25547
|
+
return newCurrentFields;
|
|
25548
|
+
}
|
|
25461
25549
|
function hanleCallbackValue(codeProps, value, customerFields) {
|
|
25550
|
+
var cacheColumns = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
|
|
25462
25551
|
var faltFieldRange = faltCustomerFieldRange(customerFields);
|
|
25552
|
+
// const falltValue = flatFileds({fields: codeProps.fields})
|
|
25463
25553
|
var falltValue = flatFileds({
|
|
25464
|
-
fields: codeProps.fields
|
|
25554
|
+
fields: combineContainer(codeProps.fields, value === null || value === void 0 ? void 0 : value.fields)
|
|
25465
25555
|
});
|
|
25466
25556
|
var newCodeProps = _objectSpread2({}, codeProps);
|
|
25467
25557
|
newCodeProps.fields = convertFileds({
|
|
@@ -25471,7 +25561,10 @@ function hanleCallbackValue(codeProps, value, customerFields) {
|
|
|
25471
25561
|
var faltColumnsValue = faltColumns(codeProps.columns);
|
|
25472
25562
|
newCodeProps.columns = value.columns.map(function (item) {
|
|
25473
25563
|
if (item.isStaticCode) {
|
|
25474
|
-
|
|
25564
|
+
var cacheFieldProperty = cacheColumns.find(function (k) {
|
|
25565
|
+
return (k.key || k.dataIndex) == (item.key || item.dataIndex);
|
|
25566
|
+
});
|
|
25567
|
+
return _objectSpread2(_objectSpread2({}, faltColumnsValue[item.key]), cacheFieldProperty);
|
|
25475
25568
|
} else {
|
|
25476
25569
|
//自定义字段-列字段
|
|
25477
25570
|
if ((item === null || item === void 0 ? void 0 : item.key) && (item === null || item === void 0 ? void 0 : item.key.includes('extensionFields')) && (item === null || item === void 0 ? void 0 : item.key.includes(','))) {
|
|
@@ -25479,10 +25572,26 @@ function hanleCallbackValue(codeProps, value, customerFields) {
|
|
|
25479
25572
|
render: function render(_ref) {
|
|
25480
25573
|
var record = _ref.record;
|
|
25481
25574
|
try {
|
|
25482
|
-
var
|
|
25483
|
-
|
|
25484
|
-
var
|
|
25485
|
-
|
|
25575
|
+
var _record$extensionFiel = record.extensionFields,
|
|
25576
|
+
extensionFields = _record$extensionFiel === void 0 ? {} : _record$extensionFiel;
|
|
25577
|
+
var fieldName1 = item === null || item === void 0 ? void 0 : item.key.split(',')[1]; //兼容没有fieldName的情况
|
|
25578
|
+
var fieldName2 = "".concat(fieldName1, "Name");
|
|
25579
|
+
if (customerFields.length) {
|
|
25580
|
+
var targetField = customerFields.find(function (k) {
|
|
25581
|
+
return k.name.includes(fieldName1);
|
|
25582
|
+
});
|
|
25583
|
+
if (targetField) {
|
|
25584
|
+
var _targetField$initialS = targetField.initialSource,
|
|
25585
|
+
initialSource = _targetField$initialS === void 0 ? [] : _targetField$initialS;
|
|
25586
|
+
if (initialSource.length) {
|
|
25587
|
+
var _initialSource$find;
|
|
25588
|
+
return ((_initialSource$find = initialSource.find(function (d) {
|
|
25589
|
+
return d.value == extensionFields[fieldName1];
|
|
25590
|
+
})) === null || _initialSource$find === void 0 ? void 0 : _initialSource$find.text) || extensionFields[fieldName1];
|
|
25591
|
+
}
|
|
25592
|
+
}
|
|
25593
|
+
}
|
|
25594
|
+
return extensionFields[fieldName2] || extensionFields[fieldName1] || '';
|
|
25486
25595
|
} catch (e) {
|
|
25487
25596
|
console.log('e', e);
|
|
25488
25597
|
}
|
|
@@ -25515,7 +25624,10 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
25515
25624
|
codeProps = props.codeProps,
|
|
25516
25625
|
customerFields = props.customerFields,
|
|
25517
25626
|
initialSetting = props.initialSetting,
|
|
25518
|
-
pageType = props.pageType
|
|
25627
|
+
pageType = props.pageType,
|
|
25628
|
+
_props$detailTablesSe = props.detailTablesSetting,
|
|
25629
|
+
detailTablesSetting = _props$detailTablesSe === void 0 ? [] : _props$detailTablesSe,
|
|
25630
|
+
saveTableCallBack = props.saveTableCallBack;
|
|
25519
25631
|
var codeFilter = {};
|
|
25520
25632
|
if (codeProps.columns) {
|
|
25521
25633
|
// table
|
|
@@ -25539,7 +25651,6 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
25539
25651
|
fields: codeProps.fields
|
|
25540
25652
|
}).fields;
|
|
25541
25653
|
}
|
|
25542
|
-
console.log('codeFilter', codeFilter);
|
|
25543
25654
|
var styleRef = React.useRef(null);
|
|
25544
25655
|
var _useState = React.useState(false),
|
|
25545
25656
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -25561,6 +25672,18 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
25561
25672
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
25562
25673
|
moduleParams = _useState10[0],
|
|
25563
25674
|
setModuleParams = _useState10[1];
|
|
25675
|
+
var _useState11 = React.useState('main'),
|
|
25676
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
25677
|
+
activeKey = _useState12[0],
|
|
25678
|
+
setActiveKey = _useState12[1]; //默认详情页配置
|
|
25679
|
+
var _useState13 = React.useState({}),
|
|
25680
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
25681
|
+
tablesConfigParams = _useState14[0],
|
|
25682
|
+
setTablesConfigParams = _useState14[1];
|
|
25683
|
+
var _useState15 = React.useState([]),
|
|
25684
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
25685
|
+
tableJsonEditorValsArr = _useState16[0],
|
|
25686
|
+
setTableJsonEditorValsArr = _useState16[1];
|
|
25564
25687
|
React.useEffect(function () {
|
|
25565
25688
|
Promise.all([axios__default['default'].get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
|
|
25566
25689
|
var _ref3 = _slicedToArray(_ref2, 1),
|
|
@@ -25584,6 +25707,73 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
25584
25707
|
}
|
|
25585
25708
|
});
|
|
25586
25709
|
}, []);
|
|
25710
|
+
React.useEffect(function () {
|
|
25711
|
+
//明细表的配置数据
|
|
25712
|
+
var axiosArr = detailTablesSetting.map(function (item) {
|
|
25713
|
+
return axios__default['default'].get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(item.tableCode));
|
|
25714
|
+
});
|
|
25715
|
+
Promise.all(axiosArr).then(function (_ref5) {
|
|
25716
|
+
var _ref6 = _toArray(_ref5),
|
|
25717
|
+
resArr = _ref6.slice(0);
|
|
25718
|
+
var configParams = {};
|
|
25719
|
+
detailTablesSetting.map(function (item, index) {
|
|
25720
|
+
var _resArr$index;
|
|
25721
|
+
var _ref7 = ((_resArr$index = resArr[index]) === null || _resArr$index === void 0 ? void 0 : _resArr$index.data) || {},
|
|
25722
|
+
code = _ref7.code,
|
|
25723
|
+
data = _ref7.data;
|
|
25724
|
+
if (data) {
|
|
25725
|
+
var businessType = data.businessType,
|
|
25726
|
+
fieldGroup = data.code,
|
|
25727
|
+
moduleType = data.moduleType;
|
|
25728
|
+
configParams[item.tableCode] = {
|
|
25729
|
+
businessType: businessType,
|
|
25730
|
+
fieldGroup: fieldGroup,
|
|
25731
|
+
moduleType: moduleType,
|
|
25732
|
+
tableFlag: true
|
|
25733
|
+
};
|
|
25734
|
+
}
|
|
25735
|
+
});
|
|
25736
|
+
setTablesConfigParams(_objectSpread2({}, configParams));
|
|
25737
|
+
});
|
|
25738
|
+
var detailTableCodeFilter = detailTablesSetting.map(function (item) {
|
|
25739
|
+
if ((item === null || item === void 0 ? void 0 : item.initialSetting) && (item === null || item === void 0 ? void 0 : item.initialSetting.length)) {
|
|
25740
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
25741
|
+
columns: item === null || item === void 0 ? void 0 : item.initialSetting
|
|
25742
|
+
});
|
|
25743
|
+
}
|
|
25744
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
25745
|
+
columns: item === null || item === void 0 ? void 0 : item.columns.map(function (childItem) {
|
|
25746
|
+
return {
|
|
25747
|
+
key: childItem.key || childItem.dataIndex,
|
|
25748
|
+
dataIndex: childItem.dataIndex || childItem.key,
|
|
25749
|
+
isStaticCode: true,
|
|
25750
|
+
title: childItem.title
|
|
25751
|
+
};
|
|
25752
|
+
})
|
|
25753
|
+
});
|
|
25754
|
+
});
|
|
25755
|
+
setTableJsonEditorValsArr(_toConsumableArray(detailTableCodeFilter));
|
|
25756
|
+
var lastRes = detailTableCodeFilter.map(function (item) {
|
|
25757
|
+
if ((item === null || item === void 0 ? void 0 : item.initialSetting) && (item === null || item === void 0 ? void 0 : item.initialSetting.length)) {
|
|
25758
|
+
var _codeProps = {
|
|
25759
|
+
fields: [],
|
|
25760
|
+
columns: item === null || item === void 0 ? void 0 : item.columns
|
|
25761
|
+
};
|
|
25762
|
+
var newValue = {
|
|
25763
|
+
fields: [],
|
|
25764
|
+
columns: item.initialSetting
|
|
25765
|
+
};
|
|
25766
|
+
var result = hanleCallbackValue(_codeProps, newValue, item === null || item === void 0 ? void 0 : item.customerFields, item === null || item === void 0 ? void 0 : item.cacheColumns);
|
|
25767
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
25768
|
+
columns: result === null || result === void 0 ? void 0 : result.columns
|
|
25769
|
+
});
|
|
25770
|
+
}
|
|
25771
|
+
return item;
|
|
25772
|
+
});
|
|
25773
|
+
if (lastRes.length) {
|
|
25774
|
+
saveTableCallBack(lastRes, false);
|
|
25775
|
+
}
|
|
25776
|
+
}, [detailTablesSetting.length]);
|
|
25587
25777
|
var onClickRun = function onClickRun(value, isSave) {
|
|
25588
25778
|
setJsonEditorVal(value);
|
|
25589
25779
|
try {
|
|
@@ -25593,6 +25783,40 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
25593
25783
|
antd.message.error(e);
|
|
25594
25784
|
}
|
|
25595
25785
|
};
|
|
25786
|
+
//明细表保存
|
|
25787
|
+
var onClickRunDetailTables = function onClickRunDetailTables(value, isSave, tableCode, tableSouce) {
|
|
25788
|
+
var targetCode = tableCode || activeKey;
|
|
25789
|
+
var targetTableSource = tableSouce || tableJsonEditorValsArr;
|
|
25790
|
+
var newArr = targetTableSource.map(function (item) {
|
|
25791
|
+
if (item.tableCode == targetCode) {
|
|
25792
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
25793
|
+
columns: value
|
|
25794
|
+
});
|
|
25795
|
+
}
|
|
25796
|
+
return item;
|
|
25797
|
+
});
|
|
25798
|
+
setTableJsonEditorValsArr(_toConsumableArray(newArr));
|
|
25799
|
+
try {
|
|
25800
|
+
var target = targetTableSource.find(function (item) {
|
|
25801
|
+
return item.tableCode == targetCode;
|
|
25802
|
+
});
|
|
25803
|
+
var _codeProps2 = {
|
|
25804
|
+
fields: [],
|
|
25805
|
+
columns: target === null || target === void 0 ? void 0 : target.columns
|
|
25806
|
+
};
|
|
25807
|
+
var newValue = {
|
|
25808
|
+
fields: [],
|
|
25809
|
+
columns: value
|
|
25810
|
+
};
|
|
25811
|
+
var result = hanleCallbackValue(_codeProps2, newValue, target === null || target === void 0 ? void 0 : target.customerFields, target === null || target === void 0 ? void 0 : target.cacheColumns);
|
|
25812
|
+
saveTableCallBack({
|
|
25813
|
+
columns: result.columns,
|
|
25814
|
+
tableCode: targetCode
|
|
25815
|
+
}, isSave, value);
|
|
25816
|
+
} catch (e) {
|
|
25817
|
+
antd.message.error(e);
|
|
25818
|
+
}
|
|
25819
|
+
};
|
|
25596
25820
|
React__default['default'].useEffect(function () {
|
|
25597
25821
|
localStorage.setItem('jsonEditorVal', JSON.stringify(jsonEditorVal || {}));
|
|
25598
25822
|
}, [jsonEditorVal]);
|
|
@@ -25609,25 +25833,97 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
25609
25833
|
});
|
|
25610
25834
|
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(Drawer, {
|
|
25611
25835
|
visible: visible,
|
|
25612
|
-
width:
|
|
25836
|
+
width: 1400,
|
|
25613
25837
|
onClose: function onClose() {
|
|
25614
25838
|
return setVisible(false);
|
|
25615
25839
|
},
|
|
25616
25840
|
className: 'customFieldsDrawer'
|
|
25841
|
+
}, detailTablesSetting.length == 0 && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
25842
|
+
style: {
|
|
25843
|
+
display: 'flex'
|
|
25844
|
+
}
|
|
25845
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
25846
|
+
style: {
|
|
25847
|
+
flex: 1,
|
|
25848
|
+
width: 500
|
|
25849
|
+
}
|
|
25850
|
+
}, _.isEmpty(moduleParams) ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
25851
|
+
style: {
|
|
25852
|
+
padding: "10px 0",
|
|
25853
|
+
fontSize: "16px",
|
|
25854
|
+
fontWeight: "bolder"
|
|
25855
|
+
}
|
|
25856
|
+
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61") : /*#__PURE__*/React__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tableParams))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
25857
|
+
style: {
|
|
25858
|
+
flex: 1
|
|
25859
|
+
}
|
|
25860
|
+
}, /*#__PURE__*/React__default['default'].createElement(Editor, {
|
|
25861
|
+
type: "table",
|
|
25862
|
+
onRun: onClickRun,
|
|
25863
|
+
value: jsonEditorVal,
|
|
25864
|
+
shallowHeight: height
|
|
25865
|
+
}))), detailTablesSetting.length > 0 && /*#__PURE__*/React__default['default'].createElement(antd.Tabs, {
|
|
25866
|
+
defaultActiveKey: activeKey,
|
|
25867
|
+
onChange: function onChange(v) {
|
|
25868
|
+
return setActiveKey(v);
|
|
25869
|
+
}
|
|
25870
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Tabs.TabPane, {
|
|
25871
|
+
tab: "\u8BE6\u60C5\u9875\u914D\u7F6E",
|
|
25872
|
+
key: "main"
|
|
25873
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
25874
|
+
style: {
|
|
25875
|
+
display: 'flex'
|
|
25876
|
+
}
|
|
25617
25877
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
25618
|
-
|
|
25619
|
-
|
|
25878
|
+
style: {
|
|
25879
|
+
flex: 1,
|
|
25880
|
+
width: 500
|
|
25881
|
+
}
|
|
25882
|
+
}, _.isEmpty(moduleParams) ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
25620
25883
|
style: {
|
|
25621
25884
|
padding: "10px 0",
|
|
25622
25885
|
fontSize: "16px",
|
|
25623
25886
|
fontWeight: "bolder"
|
|
25624
25887
|
}
|
|
25625
|
-
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61") : /*#__PURE__*/React__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)), /*#__PURE__*/React__default['default'].createElement(
|
|
25888
|
+
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61") : /*#__PURE__*/React__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tableParams))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
25889
|
+
style: {
|
|
25890
|
+
flex: 1
|
|
25891
|
+
}
|
|
25892
|
+
}, /*#__PURE__*/React__default['default'].createElement(Editor, {
|
|
25626
25893
|
type: "table",
|
|
25627
25894
|
onRun: onClickRun,
|
|
25628
25895
|
value: jsonEditorVal,
|
|
25629
25896
|
shallowHeight: height
|
|
25630
|
-
})),
|
|
25897
|
+
})))), tableJsonEditorValsArr.map(function (k) {
|
|
25898
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tabs.TabPane, {
|
|
25899
|
+
tab: k.title,
|
|
25900
|
+
key: k.tableCode
|
|
25901
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
25902
|
+
style: {
|
|
25903
|
+
display: 'flex'
|
|
25904
|
+
}
|
|
25905
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
25906
|
+
style: {
|
|
25907
|
+
flex: 1,
|
|
25908
|
+
width: 500
|
|
25909
|
+
}
|
|
25910
|
+
}, !tablesConfigParams[k.tableCode] ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
25911
|
+
style: {
|
|
25912
|
+
padding: "10px 0",
|
|
25913
|
+
fontSize: "16px",
|
|
25914
|
+
fontWeight: "bolder"
|
|
25915
|
+
}
|
|
25916
|
+
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61") : /*#__PURE__*/React__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tablesConfigParams[k.tableCode]))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
25917
|
+
style: {
|
|
25918
|
+
flex: 1
|
|
25919
|
+
}
|
|
25920
|
+
}, /*#__PURE__*/React__default['default'].createElement(Editor, {
|
|
25921
|
+
type: "table",
|
|
25922
|
+
onRun: onClickRunDetailTables,
|
|
25923
|
+
value: k.columns,
|
|
25924
|
+
shallowHeight: height
|
|
25925
|
+
}))));
|
|
25926
|
+
}))), !visible && isAdmin() && /*#__PURE__*/React__default['default'].createElement(ConfigButton, {
|
|
25631
25927
|
type: 'primary',
|
|
25632
25928
|
onClick: function onClick() {
|
|
25633
25929
|
return setVisible(true);
|
|
@@ -25700,26 +25996,28 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
25700
25996
|
React.useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
25701
25997
|
var resData, data;
|
|
25702
25998
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
25703
|
-
while (1)
|
|
25704
|
-
|
|
25705
|
-
|
|
25706
|
-
|
|
25707
|
-
|
|
25708
|
-
|
|
25709
|
-
|
|
25710
|
-
|
|
25711
|
-
|
|
25712
|
-
|
|
25713
|
-
|
|
25714
|
-
|
|
25715
|
-
|
|
25716
|
-
|
|
25717
|
-
|
|
25718
|
-
|
|
25719
|
-
|
|
25720
|
-
|
|
25721
|
-
|
|
25722
|
-
|
|
25999
|
+
while (1) {
|
|
26000
|
+
switch (_context.prev = _context.next) {
|
|
26001
|
+
case 0:
|
|
26002
|
+
if (!(!source && initRequestSource)) {
|
|
26003
|
+
_context.next = 6;
|
|
26004
|
+
break;
|
|
26005
|
+
}
|
|
26006
|
+
_context.next = 3;
|
|
26007
|
+
return initRequestSource();
|
|
26008
|
+
case 3:
|
|
26009
|
+
resData = _context.sent;
|
|
26010
|
+
data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
|
|
26011
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
26012
|
+
label: item.text,
|
|
26013
|
+
isLeaf: false
|
|
26014
|
+
});
|
|
26015
|
+
})) || [];
|
|
26016
|
+
setHandSource(data);
|
|
26017
|
+
case 6:
|
|
26018
|
+
case "end":
|
|
26019
|
+
return _context.stop();
|
|
26020
|
+
}
|
|
25723
26021
|
}
|
|
25724
26022
|
}, _callee);
|
|
25725
26023
|
})), []);
|
|
@@ -25851,18 +26149,20 @@ function getRegularThresholdRange(_x) {
|
|
|
25851
26149
|
function _getRegularThresholdRange() {
|
|
25852
26150
|
_getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
25853
26151
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
25854
|
-
while (1)
|
|
25855
|
-
|
|
25856
|
-
|
|
25857
|
-
|
|
25858
|
-
|
|
25859
|
-
|
|
25860
|
-
|
|
25861
|
-
|
|
25862
|
-
|
|
25863
|
-
|
|
25864
|
-
|
|
25865
|
-
|
|
26152
|
+
while (1) {
|
|
26153
|
+
switch (_context.prev = _context.next) {
|
|
26154
|
+
case 0:
|
|
26155
|
+
return _context.abrupt("return", axios__default['default']({
|
|
26156
|
+
url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
|
|
26157
|
+
method: 'POST',
|
|
26158
|
+
data: _objectSpread2(_objectSpread2({}, params), {}, {
|
|
26159
|
+
queryIdentify: undefined
|
|
26160
|
+
})
|
|
26161
|
+
}));
|
|
26162
|
+
case 1:
|
|
26163
|
+
case "end":
|
|
26164
|
+
return _context.stop();
|
|
26165
|
+
}
|
|
25866
26166
|
}
|
|
25867
26167
|
}, _callee);
|
|
25868
26168
|
}));
|
|
@@ -26001,136 +26301,137 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26001
26301
|
_this.getRegularThresholdRange(queryIdentify, propertyCode, queryIdentifyType);
|
|
26002
26302
|
});
|
|
26003
26303
|
};
|
|
26004
|
-
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
26005
26304
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
26006
26305
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
26007
26306
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
26008
26307
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26009
|
-
while (1)
|
|
26010
|
-
|
|
26011
|
-
|
|
26012
|
-
|
|
26013
|
-
|
|
26014
|
-
|
|
26015
|
-
|
|
26016
|
-
|
|
26017
|
-
|
|
26018
|
-
|
|
26019
|
-
|
|
26020
|
-
|
|
26021
|
-
|
|
26022
|
-
|
|
26023
|
-
|
|
26024
|
-
|
|
26025
|
-
|
|
26026
|
-
|
|
26027
|
-
|
|
26028
|
-
|
|
26029
|
-
|
|
26030
|
-
|
|
26031
|
-
|
|
26032
|
-
|
|
26033
|
-
|
|
26034
|
-
|
|
26035
|
-
|
|
26036
|
-
|
|
26037
|
-
|
|
26038
|
-
|
|
26039
|
-
|
|
26040
|
-
|
|
26041
|
-
|
|
26042
|
-
|
|
26043
|
-
|
|
26044
|
-
|
|
26045
|
-
|
|
26046
|
-
|
|
26047
|
-
|
|
26048
|
-
|
|
26049
|
-
|
|
26050
|
-
|
|
26051
|
-
|
|
26052
|
-
|
|
26053
|
-
|
|
26054
|
-
|
|
26055
|
-
|
|
26056
|
-
|
|
26057
|
-
|
|
26058
|
-
|
|
26059
|
-
|
|
26060
|
-
|
|
26061
|
-
|
|
26062
|
-
|
|
26063
|
-
|
|
26064
|
-
|
|
26065
|
-
|
|
26066
|
-
|
|
26067
|
-
|
|
26068
|
-
|
|
26069
|
-
|
|
26070
|
-
|
|
26071
|
-
|
|
26072
|
-
|
|
26073
|
-
|
|
26074
|
-
|
|
26075
|
-
|
|
26076
|
-
|
|
26077
|
-
|
|
26078
|
-
|
|
26079
|
-
|
|
26080
|
-
|
|
26081
|
-
|
|
26082
|
-
|
|
26083
|
-
|
|
26084
|
-
|
|
26085
|
-
|
|
26086
|
-
|
|
26087
|
-
|
|
26088
|
-
|
|
26308
|
+
while (1) {
|
|
26309
|
+
switch (_context.prev = _context.next) {
|
|
26310
|
+
case 0:
|
|
26311
|
+
if (queryIdentify) {
|
|
26312
|
+
_context.next = 2;
|
|
26313
|
+
break;
|
|
26314
|
+
}
|
|
26315
|
+
return _context.abrupt("return");
|
|
26316
|
+
case 2:
|
|
26317
|
+
thresholdQuery = _this.state.thresholdQuery;
|
|
26318
|
+
extraRequestUrl = '';
|
|
26319
|
+
querParams = setParams(propertyCode, thresholdQuery);
|
|
26320
|
+
if (!queryIdentityInfo.find(function (item) {
|
|
26321
|
+
return item.identity == propertyCode;
|
|
26322
|
+
})) {
|
|
26323
|
+
_context.next = 10;
|
|
26324
|
+
break;
|
|
26325
|
+
}
|
|
26326
|
+
//判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
|
|
26327
|
+
needQueryList = queryIdentityInfo.find(function (item) {
|
|
26328
|
+
return item.identity == propertyCode;
|
|
26329
|
+
}).queryParam.filter(function (item) {
|
|
26330
|
+
return item.isRequired;
|
|
26331
|
+
}).map(function (item) {
|
|
26332
|
+
return item.queryKey;
|
|
26333
|
+
});
|
|
26334
|
+
if (!needQueryList.some(function (item) {
|
|
26335
|
+
return !querParams[item] || !querParams[item].length;
|
|
26336
|
+
})) {
|
|
26337
|
+
_context.next = 9;
|
|
26338
|
+
break;
|
|
26339
|
+
}
|
|
26340
|
+
return _context.abrupt("return");
|
|
26341
|
+
case 9:
|
|
26342
|
+
extraRequestUrl = queryIdentityInfo.find(function (item) {
|
|
26343
|
+
return item.identity == propertyCode;
|
|
26344
|
+
}).requestUrl || '';
|
|
26345
|
+
case 10:
|
|
26346
|
+
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
26347
|
+
extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
|
|
26348
|
+
querParams = {
|
|
26349
|
+
dictCode: queryIdentify
|
|
26350
|
+
};
|
|
26351
|
+
} else if (queryIdentifyType === 'dynamicDictCodeIdentify') {
|
|
26352
|
+
extraRequestUrl = "dictDynamicItem/getDynamicData/".concat(queryIdentify); // 字典接口
|
|
26353
|
+
// querParams = { dictCode: queryIdentify }
|
|
26354
|
+
}
|
|
26355
|
+
if (!extraRequestUrl) {
|
|
26356
|
+
_context.next = 16;
|
|
26357
|
+
break;
|
|
26358
|
+
}
|
|
26359
|
+
if (queryIdentify == 'maintain_area_code') {
|
|
26360
|
+
extraRequestUrl = "/basic/".concat(extraRequestUrl).concat(querParams.memberCardCode, "?").concat(querystring.stringify(querParams));
|
|
26361
|
+
} else if (queryIdentifyType == 'dictCodeIdentify') {
|
|
26362
|
+
extraRequestUrl = "/basic/".concat(extraRequestUrl, "?").concat(querystring.stringify(querParams));
|
|
26363
|
+
} else if (queryIdentifyType == 'dynamicDictCodeIdentify') {
|
|
26364
|
+
extraRequestUrl = "/basic/".concat(extraRequestUrl);
|
|
26365
|
+
}
|
|
26366
|
+
bssula.request({
|
|
26367
|
+
url: extraRequestUrl,
|
|
26368
|
+
method: 'get',
|
|
26369
|
+
converter: function converter(res) {
|
|
26370
|
+
if (handleError(res)) {
|
|
26371
|
+
var _handleData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
26372
|
+
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
26373
|
+
var _handleData2;
|
|
26374
|
+
_handleData = ((_handleData2 = _handleData) === null || _handleData2 === void 0 ? void 0 : _handleData2.length) ? _handleData.map(function (i) {
|
|
26375
|
+
return {
|
|
26376
|
+
code: i.dictItemCode,
|
|
26377
|
+
name: i.dictItemName
|
|
26378
|
+
};
|
|
26379
|
+
}) : [];
|
|
26380
|
+
}
|
|
26381
|
+
if (queryIdentifyType === 'dynamicDictCodeIdentify') {
|
|
26382
|
+
var _handleData3;
|
|
26383
|
+
_handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
|
|
26384
|
+
return {
|
|
26385
|
+
code: i.code.toString(),
|
|
26386
|
+
name: i.name
|
|
26387
|
+
};
|
|
26388
|
+
}) : [];
|
|
26389
|
+
}
|
|
26390
|
+
_this.setState({
|
|
26391
|
+
thresholdList: _handleData
|
|
26392
|
+
});
|
|
26089
26393
|
}
|
|
26090
|
-
|
|
26091
|
-
thresholdList: _handleData
|
|
26092
|
-
});
|
|
26394
|
+
return handleData;
|
|
26093
26395
|
}
|
|
26094
|
-
|
|
26095
|
-
|
|
26096
|
-
});
|
|
26097
|
-
_context.next = 29;
|
|
26098
|
-
break;
|
|
26099
|
-
case 16:
|
|
26100
|
-
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
26101
|
-
_context.next = 20;
|
|
26396
|
+
});
|
|
26397
|
+
_context.next = 29;
|
|
26102
26398
|
break;
|
|
26103
|
-
|
|
26104
|
-
|
|
26105
|
-
|
|
26106
|
-
|
|
26107
|
-
|
|
26108
|
-
|
|
26109
|
-
|
|
26110
|
-
|
|
26111
|
-
_context.next =
|
|
26399
|
+
case 16:
|
|
26400
|
+
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
26401
|
+
_context.next = 20;
|
|
26402
|
+
break;
|
|
26403
|
+
}
|
|
26404
|
+
_this.setState({
|
|
26405
|
+
thresholdList: queryIdentify
|
|
26406
|
+
});
|
|
26407
|
+
_context.next = 29;
|
|
26112
26408
|
break;
|
|
26113
|
-
|
|
26114
|
-
|
|
26115
|
-
|
|
26116
|
-
|
|
26117
|
-
|
|
26118
|
-
|
|
26119
|
-
break;
|
|
26120
|
-
case 24:
|
|
26121
|
-
querParams.queryIdentify = queryIdentify;
|
|
26122
|
-
_context.next = 27;
|
|
26123
|
-
return getRegularThresholdRange(querParams);
|
|
26124
|
-
case 27:
|
|
26125
|
-
res = _context.sent;
|
|
26126
|
-
if (handleError(res)) {
|
|
26409
|
+
case 20:
|
|
26410
|
+
if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
|
|
26411
|
+
_context.next = 24;
|
|
26412
|
+
break;
|
|
26413
|
+
}
|
|
26414
|
+
// TODO待处理
|
|
26127
26415
|
_this.setState({
|
|
26128
|
-
thresholdList:
|
|
26416
|
+
thresholdList: []
|
|
26129
26417
|
});
|
|
26130
|
-
|
|
26131
|
-
|
|
26132
|
-
|
|
26133
|
-
|
|
26418
|
+
_context.next = 29;
|
|
26419
|
+
break;
|
|
26420
|
+
case 24:
|
|
26421
|
+
querParams.queryIdentify = queryIdentify;
|
|
26422
|
+
_context.next = 27;
|
|
26423
|
+
return getRegularThresholdRange(querParams);
|
|
26424
|
+
case 27:
|
|
26425
|
+
res = _context.sent;
|
|
26426
|
+
if (handleError(res)) {
|
|
26427
|
+
_this.setState({
|
|
26428
|
+
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
26429
|
+
});
|
|
26430
|
+
}
|
|
26431
|
+
case 29:
|
|
26432
|
+
case "end":
|
|
26433
|
+
return _context.stop();
|
|
26434
|
+
}
|
|
26134
26435
|
}
|
|
26135
26436
|
}, _callee);
|
|
26136
26437
|
}));
|
|
@@ -26889,30 +27190,32 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26889
27190
|
notChangeOnSelect: true,
|
|
26890
27191
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
26891
27192
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
26892
|
-
while (1)
|
|
26893
|
-
|
|
26894
|
-
|
|
26895
|
-
|
|
26896
|
-
|
|
26897
|
-
|
|
26898
|
-
|
|
26899
|
-
|
|
26900
|
-
|
|
26901
|
-
|
|
26902
|
-
|
|
26903
|
-
|
|
26904
|
-
|
|
26905
|
-
|
|
26906
|
-
|
|
26907
|
-
|
|
26908
|
-
|
|
26909
|
-
|
|
26910
|
-
|
|
26911
|
-
|
|
26912
|
-
|
|
26913
|
-
|
|
26914
|
-
|
|
26915
|
-
|
|
27193
|
+
while (1) {
|
|
27194
|
+
switch (_context2.prev = _context2.next) {
|
|
27195
|
+
case 0:
|
|
27196
|
+
_context2.next = 2;
|
|
27197
|
+
return bssula.request({
|
|
27198
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
27199
|
+
method: 'get',
|
|
27200
|
+
converter: function converter(_ref3) {
|
|
27201
|
+
var data = _ref3.data;
|
|
27202
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27203
|
+
return {
|
|
27204
|
+
text: item.name,
|
|
27205
|
+
value: item.id,
|
|
27206
|
+
level: item.level,
|
|
27207
|
+
id: item.id
|
|
27208
|
+
};
|
|
27209
|
+
}) : [];
|
|
27210
|
+
return handleData;
|
|
27211
|
+
}
|
|
27212
|
+
});
|
|
27213
|
+
case 2:
|
|
27214
|
+
return _context2.abrupt("return", _context2.sent);
|
|
27215
|
+
case 3:
|
|
27216
|
+
case "end":
|
|
27217
|
+
return _context2.stop();
|
|
27218
|
+
}
|
|
26916
27219
|
}
|
|
26917
27220
|
}, _callee2);
|
|
26918
27221
|
})),
|
|
@@ -26938,30 +27241,32 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26938
27241
|
notChangeOnSelect: true,
|
|
26939
27242
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
26940
27243
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
26941
|
-
while (1)
|
|
26942
|
-
|
|
26943
|
-
|
|
26944
|
-
|
|
26945
|
-
|
|
26946
|
-
|
|
26947
|
-
|
|
26948
|
-
|
|
26949
|
-
|
|
26950
|
-
|
|
26951
|
-
|
|
26952
|
-
|
|
26953
|
-
|
|
26954
|
-
|
|
26955
|
-
|
|
26956
|
-
|
|
26957
|
-
|
|
26958
|
-
|
|
26959
|
-
|
|
26960
|
-
|
|
26961
|
-
|
|
26962
|
-
|
|
26963
|
-
|
|
26964
|
-
|
|
27244
|
+
while (1) {
|
|
27245
|
+
switch (_context3.prev = _context3.next) {
|
|
27246
|
+
case 0:
|
|
27247
|
+
_context3.next = 2;
|
|
27248
|
+
return bssula.request({
|
|
27249
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
27250
|
+
method: 'get',
|
|
27251
|
+
converter: function converter(_ref5) {
|
|
27252
|
+
var data = _ref5.data;
|
|
27253
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27254
|
+
return {
|
|
27255
|
+
text: item.name,
|
|
27256
|
+
value: item.id,
|
|
27257
|
+
level: item.level,
|
|
27258
|
+
id: item.id
|
|
27259
|
+
};
|
|
27260
|
+
}) : [];
|
|
27261
|
+
return handleData;
|
|
27262
|
+
}
|
|
27263
|
+
});
|
|
27264
|
+
case 2:
|
|
27265
|
+
return _context3.abrupt("return", _context3.sent);
|
|
27266
|
+
case 3:
|
|
27267
|
+
case "end":
|
|
27268
|
+
return _context3.stop();
|
|
27269
|
+
}
|
|
26965
27270
|
}
|
|
26966
27271
|
}, _callee3);
|
|
26967
27272
|
})),
|
|
@@ -26989,30 +27294,32 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26989
27294
|
notChangeOnSelect: true,
|
|
26990
27295
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
26991
27296
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
26992
|
-
while (1)
|
|
26993
|
-
|
|
26994
|
-
|
|
26995
|
-
|
|
26996
|
-
|
|
26997
|
-
|
|
26998
|
-
|
|
26999
|
-
|
|
27000
|
-
|
|
27001
|
-
|
|
27002
|
-
|
|
27003
|
-
|
|
27004
|
-
|
|
27005
|
-
|
|
27006
|
-
|
|
27007
|
-
|
|
27008
|
-
|
|
27009
|
-
|
|
27010
|
-
|
|
27011
|
-
|
|
27012
|
-
|
|
27013
|
-
|
|
27014
|
-
|
|
27015
|
-
|
|
27297
|
+
while (1) {
|
|
27298
|
+
switch (_context4.prev = _context4.next) {
|
|
27299
|
+
case 0:
|
|
27300
|
+
_context4.next = 2;
|
|
27301
|
+
return bssula.request({
|
|
27302
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
27303
|
+
method: 'get',
|
|
27304
|
+
converter: function converter(_ref7) {
|
|
27305
|
+
var data = _ref7.data;
|
|
27306
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27307
|
+
return {
|
|
27308
|
+
text: item.name,
|
|
27309
|
+
value: item.id,
|
|
27310
|
+
level: item.level,
|
|
27311
|
+
id: item.id
|
|
27312
|
+
};
|
|
27313
|
+
}) : [];
|
|
27314
|
+
return handleData;
|
|
27315
|
+
}
|
|
27316
|
+
});
|
|
27317
|
+
case 2:
|
|
27318
|
+
return _context4.abrupt("return", _context4.sent);
|
|
27319
|
+
case 3:
|
|
27320
|
+
case "end":
|
|
27321
|
+
return _context4.stop();
|
|
27322
|
+
}
|
|
27016
27323
|
}
|
|
27017
27324
|
}, _callee4);
|
|
27018
27325
|
})),
|
|
@@ -28079,6 +28386,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
28079
28386
|
});
|
|
28080
28387
|
}
|
|
28081
28388
|
}
|
|
28389
|
+
|
|
28390
|
+
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
28082
28391
|
}, {
|
|
28083
28392
|
key: "render",
|
|
28084
28393
|
value: function render() {
|
|
@@ -28909,7 +29218,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
28909
29218
|
callBack(ruleClassData);
|
|
28910
29219
|
});
|
|
28911
29220
|
};
|
|
28912
|
-
// 树结构 转化成 平行树 (递归函数)
|
|
28913
29221
|
_this.coverToParallel = function (treeData, result) {
|
|
28914
29222
|
treeData.forEach(function (el) {
|
|
28915
29223
|
result.push(el);
|
|
@@ -29163,7 +29471,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29163
29471
|
callBack(ruleClassData);
|
|
29164
29472
|
});
|
|
29165
29473
|
};
|
|
29166
|
-
// 场景需要返回值2022.11.15
|
|
29167
29474
|
_this.renderResItem = function (itemDetail, parentDetail, ruleReturnConfig, disabled, boxStyle) {
|
|
29168
29475
|
var _ruleReturnConfig$rig;
|
|
29169
29476
|
var isShowResponse = itemDetail.response['enable'];
|
|
@@ -29461,30 +29768,32 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29461
29768
|
notChangeOnSelect: true,
|
|
29462
29769
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29463
29770
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29464
|
-
while (1)
|
|
29465
|
-
|
|
29466
|
-
|
|
29467
|
-
|
|
29468
|
-
|
|
29469
|
-
|
|
29470
|
-
|
|
29471
|
-
|
|
29472
|
-
|
|
29473
|
-
|
|
29474
|
-
|
|
29475
|
-
|
|
29476
|
-
|
|
29477
|
-
|
|
29478
|
-
|
|
29479
|
-
|
|
29480
|
-
|
|
29481
|
-
|
|
29482
|
-
|
|
29483
|
-
|
|
29484
|
-
|
|
29485
|
-
|
|
29486
|
-
|
|
29487
|
-
|
|
29771
|
+
while (1) {
|
|
29772
|
+
switch (_context.prev = _context.next) {
|
|
29773
|
+
case 0:
|
|
29774
|
+
_context.next = 2;
|
|
29775
|
+
return bssula.request({
|
|
29776
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
29777
|
+
method: 'get',
|
|
29778
|
+
converter: function converter(_ref2) {
|
|
29779
|
+
var data = _ref2.data;
|
|
29780
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
29781
|
+
return {
|
|
29782
|
+
text: item.name,
|
|
29783
|
+
value: item.id,
|
|
29784
|
+
level: item.level,
|
|
29785
|
+
id: item.id
|
|
29786
|
+
};
|
|
29787
|
+
}) : [];
|
|
29788
|
+
return handleData;
|
|
29789
|
+
}
|
|
29790
|
+
});
|
|
29791
|
+
case 2:
|
|
29792
|
+
return _context.abrupt("return", _context.sent);
|
|
29793
|
+
case 3:
|
|
29794
|
+
case "end":
|
|
29795
|
+
return _context.stop();
|
|
29796
|
+
}
|
|
29488
29797
|
}
|
|
29489
29798
|
}, _callee);
|
|
29490
29799
|
})),
|
|
@@ -29818,7 +30127,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29818
30127
|
}
|
|
29819
30128
|
}, "\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);
|
|
29820
30129
|
};
|
|
29821
|
-
//添加同一层级条件
|
|
29822
30130
|
_this.addPeerRule = function (itemDetail) {
|
|
29823
30131
|
var ruleClassData = _this.state.ruleClassData;
|
|
29824
30132
|
var _this$props4 = _this.props,
|
|
@@ -29839,7 +30147,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29839
30147
|
callBack(ruleClassData);
|
|
29840
30148
|
});
|
|
29841
30149
|
};
|
|
29842
|
-
//添加子层级条件
|
|
29843
30150
|
_this.addChildRules = function (itemDetail) {
|
|
29844
30151
|
var ruleClassData = _this.state.ruleClassData;
|
|
29845
30152
|
var callBack = _this.props.callBack;
|
|
@@ -29915,7 +30222,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29915
30222
|
callBack(ruleClassData);
|
|
29916
30223
|
});
|
|
29917
30224
|
};
|
|
29918
|
-
// 新增执行顺序
|
|
29919
30225
|
_this.handleSelectRuleAction = function (keys, classDataIndex, callback) {
|
|
29920
30226
|
callback();
|
|
29921
30227
|
var callBack = _this.props.callBack;
|
|
@@ -30072,26 +30378,26 @@ exports.AddSkuSelect = AddSkuSelect;
|
|
|
30072
30378
|
exports.AddSpuSelect = AddSpuSelect;
|
|
30073
30379
|
exports.BillEntry = BillEntry;
|
|
30074
30380
|
exports.BsCascader = BsCascader;
|
|
30075
|
-
exports.BsLayout = index$
|
|
30381
|
+
exports.BsLayout = index$5;
|
|
30076
30382
|
exports.BsSulaQueryTable = BsSulaQueryTable;
|
|
30077
30383
|
exports.BusinessSearchSelect = BusinessSearchSelect$1;
|
|
30078
30384
|
exports.BusinessTreeSearchSelect = BusinessTreeSearchSelect$1;
|
|
30079
|
-
exports.CheckOneUser = index$
|
|
30385
|
+
exports.CheckOneUser = index$1;
|
|
30080
30386
|
exports.ColumnSettingTable = ColumnSettingTable;
|
|
30081
30387
|
exports.CommodityEntry = CommodityEntry;
|
|
30082
30388
|
exports.DataImport = DataImport;
|
|
30083
30389
|
exports.DataValidation = DataValidation;
|
|
30084
|
-
exports.DetailPageWrapper = index$
|
|
30390
|
+
exports.DetailPageWrapper = index$3;
|
|
30085
30391
|
exports.EllipsisTooltip = EllipsisTooltip;
|
|
30086
30392
|
exports.ExportIcon = ExportIcon;
|
|
30087
30393
|
exports.GuideWrapper = GuideWrapper;
|
|
30088
|
-
exports.HomePageWrapper = index$
|
|
30394
|
+
exports.HomePageWrapper = index$4;
|
|
30089
30395
|
exports.JsonQueryTable = JsonQueryTable;
|
|
30090
|
-
exports.MoreTreeTable = index$
|
|
30396
|
+
exports.MoreTreeTable = index$6;
|
|
30091
30397
|
exports.QueryMutipleInput = QueryMutipleInput;
|
|
30092
30398
|
exports.RuleComponent = RuleObjectComponent;
|
|
30093
30399
|
exports.SearchSelect = SearchSelect;
|
|
30094
|
-
exports.StateFlow = index$
|
|
30400
|
+
exports.StateFlow = index$2;
|
|
30095
30401
|
exports.SulaColumnSettingTable = ColumnSettingSulaTable;
|
|
30096
30402
|
exports.TableColumnSetting = TableColumnSetting;
|
|
30097
30403
|
exports.TreeSearchSelect = TreeSearchSelect;
|