@bit-sun/business-component 2.3.25 → 2.3.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +16 -16
- package/.fatherrc.ts +5 -5
- package/.gitlab-ci.yml +179 -179
- package/.prettierignore +7 -7
- package/.prettierrc +11 -11
- package/.umirc.ts +74 -74
- package/README.md +27 -27
- package/dist/components/Business/AddSelectBusiness/index.d.ts +4 -3
- package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +2 -1
- package/dist/components/Business/BsLayouts/index.d.ts +1 -1
- package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
- package/dist/components/Business/BsSulaQueryTable/index.d.ts +2 -1
- package/dist/components/Business/BsSulaQueryTable/setting.d.ts +5 -5
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +14 -13
- package/dist/components/Business/CommodityEntry/index.d.ts +2 -1
- package/dist/components/Business/CommonAlert/index.d.ts +2 -1
- package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
- package/dist/components/Business/DetailPageWrapper/index.d.ts +6 -5
- package/dist/components/Business/HomePageWrapper/index.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/static.d.ts +2 -0
- package/dist/components/Business/SearchSelect/index.d.ts +1 -1
- package/dist/components/Business/StateFlow/index.d.ts +2 -1
- package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
- package/dist/components/Business/columnSettingTable/columnSetting.d.ts +5 -5
- package/dist/components/Business/columnSettingTable/index.d.ts +2 -2
- package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +2 -2
- package/dist/components/Business/columnSettingTable/utils.d.ts +2 -1
- package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
- package/dist/components/Functional/AddSelect/index.d.ts +2 -1
- package/dist/components/Functional/DataImport/index.d.ts +3 -3
- package/dist/components/Functional/DataValidation/index.d.ts +3 -3
- package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +2 -1
- package/dist/components/Functional/QueryMutipleInput/index.d.ts +2 -1
- package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
- package/dist/components/Functional/TreeSearchSelect/index.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/Formula.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +12 -0
- package/dist/index.esm.js +1278 -952
- package/dist/index.js +1284 -958
- package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
- package/dist/utils/utils.d.ts +1 -1
- package/docs/index.md +21 -21
- package/lib/assets/drag.svg +17 -17
- package/lib/assets/exportFail.svg +37 -37
- package/lib/assets/exportProcessing.svg +28 -28
- package/lib/assets/exportSuccess.svg +34 -34
- package/lib/assets/label_icon_bottom.svg +25 -25
- package/lib/assets/upExport.svg +22 -22
- package/package.json +78 -78
- package/src/assets/32.svg +27 -27
- package/src/assets/addIcon.svg +17 -17
- package/src/assets/allfunc.svg +27 -27
- package/src/assets/arrowRight.svg +24 -24
- package/src/assets/btn-delete.svg +29 -29
- package/src/assets/btn-edit.svg +19 -19
- package/src/assets/btn-more.svg +17 -17
- package/src/assets/btn-submit.svg +19 -19
- package/src/assets/caidan.svg +11 -11
- package/src/assets/close.svg +26 -26
- package/src/assets/drag.svg +17 -17
- package/src/assets/exportFail.svg +37 -37
- package/src/assets/exportProcessing.svg +28 -28
- package/src/assets/exportSuccess.svg +34 -34
- package/src/assets/fixed-left-active.svg +11 -11
- package/src/assets/fixed-left.svg +15 -15
- package/src/assets/fixed-right-active.svg +11 -11
- package/src/assets/fixed-right.svg +15 -15
- package/src/assets/guanbi.svg +15 -15
- package/src/assets/icon-quanping.svg +15 -15
- package/src/assets/icon-shezhi.svg +17 -17
- package/src/assets/label_icon_bottom.svg +25 -25
- package/src/assets/list-no-img.svg +21 -21
- package/src/assets/morentouxiang-32.svg +23 -23
- package/src/assets/scanning.svg +24 -24
- package/src/assets/upExport.svg +22 -22
- package/src/common/ENUM.ts +41 -41
- package/src/components/Business/AddSelectBusiness/index.md +162 -162
- package/src/components/Business/AddSelectBusiness/index.tsx +1060 -1060
- package/src/components/Business/BsLayouts/Components/AllFunc/drawContent.tsx +111 -111
- package/src/components/Business/BsLayouts/Components/AllFunc/index.less +153 -153
- package/src/components/Business/BsLayouts/Components/AllFunc/index.tsx +70 -70
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.less +90 -90
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.tsx +37 -37
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.tsx +242 -242
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.tsx +384 -384
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.tsx +285 -285
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.tsx +74 -74
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/drawContent.less +170 -170
- package/src/components/Business/BsLayouts/Components/CustomerMenu/index.less +64 -64
- package/src/components/Business/BsLayouts/Components/CustomerMenu/index.tsx +153 -153
- package/src/components/Business/BsLayouts/Components/GlobalHeader/index.less +72 -72
- package/src/components/Business/BsLayouts/Components/GlobalHeader/index.tsx +157 -157
- package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +85 -85
- package/src/components/Business/BsLayouts/Components/RightContent/home.less +218 -218
- package/src/components/Business/BsLayouts/Components/RightContent/index.tsx +155 -155
- package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +160 -160
- package/src/components/Business/BsLayouts/Components/SearchFunc/index.tsx +75 -75
- package/src/components/Business/BsLayouts/index.less +79 -79
- package/src/components/Business/BsLayouts/index.tsx +1484 -1484
- package/src/components/Business/BsLayouts/service.ts +10 -10
- package/src/components/Business/BsLayouts/utils.tsx +203 -203
- package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +564 -564
- package/src/components/Business/BsSulaQueryTable/index.less +221 -221
- package/src/components/Business/BsSulaQueryTable/index.tsx +535 -535
- package/src/components/Business/BsSulaQueryTable/setting.tsx +852 -852
- package/src/components/Business/BsSulaQueryTable/utils.less +65 -65
- package/src/components/Business/BsSulaQueryTable/utils.tsx +690 -690
- package/src/components/Business/CommodityEntry/index.md +70 -70
- package/src/components/Business/CommodityEntry/index.tsx +80 -80
- package/src/components/Business/CommonAlert/index.tsx +23 -23
- package/src/components/Business/CommonGuideWrapper/index.less +111 -111
- package/src/components/Business/CommonGuideWrapper/index.md +39 -39
- package/src/components/Business/CommonGuideWrapper/index.tsx +83 -83
- package/src/components/Business/DetailPageWrapper/index.less +79 -79
- package/src/components/Business/DetailPageWrapper/index.tsx +313 -313
- package/src/components/Business/DetailPageWrapper/utils.tsx +100 -100
- package/src/components/Business/HomePageWrapper/index.less +33 -33
- package/src/components/Business/HomePageWrapper/index.md +45 -45
- package/src/components/Business/HomePageWrapper/index.tsx +162 -162
- package/src/components/Business/JsonQueryTable/components/FieldsModifyModal.tsx +824 -824
- package/src/components/Business/JsonQueryTable/components/FieldsSettingsTable.tsx +205 -205
- package/src/components/Business/JsonQueryTable/components/Formula.tsx +205 -205
- package/src/components/Business/JsonQueryTable/components/MaintainOptions.tsx +127 -127
- package/src/components/Business/JsonQueryTable/configButton/index.js +20 -20
- package/src/components/Business/JsonQueryTable/configTree/component/compactArrayView.js +25 -25
- package/src/components/Business/JsonQueryTable/configTree/component/compactObjectView.js +30 -30
- package/src/components/Business/JsonQueryTable/configTree/index.js +82 -82
- package/src/components/Business/JsonQueryTable/configTree/index.less +44 -44
- package/src/components/Business/JsonQueryTable/configTree/parser/highlight.js +57 -57
- package/src/components/Business/JsonQueryTable/configTree/parser/index.js +124 -124
- package/src/components/Business/JsonQueryTable/configTree/render/iconRender.js +29 -29
- package/src/components/Business/JsonQueryTable/configTree/render/nameRender.js +22 -22
- package/src/components/Business/JsonQueryTable/configTree/treeNode.js +116 -116
- package/src/components/Business/JsonQueryTable/drawer/index.tsx +12 -12
- package/src/components/Business/JsonQueryTable/function.ts +62 -62
- package/src/components/Business/JsonQueryTable/index.less +16 -16
- package/src/components/Business/JsonQueryTable/index.md +328 -328
- package/src/components/Business/JsonQueryTable/index.tsx +535 -535
- package/src/components/Business/JsonQueryTable/jsonEditor/index.js +346 -346
- package/src/components/Business/JsonQueryTable/jsonEditor/index.less +22 -22
- package/src/components/Business/JsonQueryTable/jsonEditor/lint/basicType.js +147 -147
- package/src/components/Business/JsonQueryTable/jsonEditor/lint/index.js +389 -389
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/actions.js +118 -118
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/dependency.js +22 -22
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/index.js +21 -21
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/request.js +65 -65
- package/src/components/Business/JsonQueryTable/static.ts +426 -390
- package/src/components/Business/SearchSelect/BusinessUtils.ts +1836 -1762
- package/src/components/Business/SearchSelect/common.ts +75 -75
- package/src/components/Business/SearchSelect/index.md +1386 -1329
- package/src/components/Business/SearchSelect/index.tsx +55 -55
- package/src/components/Business/SearchSelect/utils.ts +100 -100
- package/src/components/Business/StateFlow/index.less +130 -130
- package/src/components/Business/StateFlow/index.md +60 -60
- package/src/components/Business/StateFlow/index.tsx +29 -29
- package/src/components/Business/TreeSearchSelect/index.md +185 -156
- package/src/components/Business/TreeSearchSelect/index.tsx +33 -33
- package/src/components/Business/TreeSearchSelect/utils.ts +86 -75
- package/src/components/Business/columnSettingTable/columnSetting.tsx +764 -764
- package/src/components/Business/columnSettingTable/index.less +247 -247
- package/src/components/Business/columnSettingTable/index.md +357 -357
- package/src/components/Business/columnSettingTable/index.tsx +232 -232
- package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +240 -240
- package/src/components/Business/columnSettingTable/utils.tsx +71 -71
- package/src/components/Business/moreTreeTable/FixedScrollBar.tsx +87 -87
- package/src/components/Business/moreTreeTable/hooks/useSticky.ts +21 -21
- package/src/components/Business/moreTreeTable/index.less +99 -99
- package/src/components/Business/moreTreeTable/index.md +448 -448
- package/src/components/Business/moreTreeTable/index.tsx +387 -387
- package/src/components/Business/moreTreeTable/utils.ts +126 -126
- package/src/components/Functional/AddSelect/helps.ts +79 -79
- package/src/components/Functional/AddSelect/index.less +367 -367
- package/src/components/Functional/AddSelect/index.md +155 -155
- package/src/components/Functional/AddSelect/index.tsx +1170 -1170
- package/src/components/Functional/BillEntry/index.less +371 -371
- package/src/components/Functional/BillEntry/index.md +39 -39
- package/src/components/Functional/BillEntry/index.tsx +772 -772
- package/src/components/Functional/BsAntdSula/BsCascader/index.md +62 -62
- package/src/components/Functional/BsAntdSula/BsCascader/index.tsx +178 -178
- package/src/components/Functional/BsAntdSula/index.ts +2 -2
- package/src/components/Functional/DataImport/index.less +63 -63
- package/src/components/Functional/DataImport/index.md +44 -44
- package/src/components/Functional/DataImport/index.tsx +695 -695
- package/src/components/Functional/DataValidation/index.less +63 -63
- package/src/components/Functional/DataValidation/index.md +39 -39
- package/src/components/Functional/DataValidation/index.tsx +687 -687
- package/src/components/Functional/EllipsisTooltip/index.d.ts +5 -5
- package/src/components/Functional/EllipsisTooltip/index.js +36 -36
- package/src/components/Functional/EllipsisTooltip/index.md +30 -30
- package/src/components/Functional/ExportFunctions/ExportIcon/index.md +37 -37
- package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +59 -59
- package/src/components/Functional/QueryMutipleInput/index.less +37 -37
- package/src/components/Functional/QueryMutipleInput/index.md +33 -33
- package/src/components/Functional/QueryMutipleInput/index.tsx +128 -128
- package/src/components/Functional/SearchSelect/index.less +115 -115
- package/src/components/Functional/SearchSelect/index.md +141 -141
- package/src/components/Functional/SearchSelect/index.tsx +879 -882
- package/src/components/Functional/SearchSelect/utils.ts +3 -3
- package/src/components/Functional/TreeSearchSelect/index.md +47 -47
- package/src/components/Functional/TreeSearchSelect/index.tsx +199 -199
- package/src/components/Solution/RuleComponent/Formula.tsx +335 -335
- package/src/components/Solution/RuleComponent/InnerSelect.tsx +62 -0
- package/src/components/Solution/RuleComponent/index.d.ts +29 -29
- package/src/components/Solution/RuleComponent/index.js +2041 -2032
- package/src/components/Solution/RuleComponent/index.less +230 -230
- package/src/components/Solution/RuleComponent/renderSpecificAction.js +99 -99
- package/src/components/Solution/RuleComponent/ruleFiled.js +2281 -2107
- package/src/components/Solution/RuleComponent/services.ts +13 -13
- package/src/components/Solution/RuleComponent/util.js +139 -139
- package/src/index.ts +38 -38
- package/src/plugin/TableColumnSetting/index.less +247 -247
- package/src/plugin/TableColumnSetting/index.md +50 -50
- package/src/plugin/TableColumnSetting/index.tsx +724 -724
- package/src/plugin/TableColumnSetting/utils.ts +19 -19
- package/src/styles/bsDefault.less +1912 -1912
- package/src/utils/CheckOneUser/index.md +39 -39
- package/src/utils/CheckOneUser/index.ts +51 -51
- package/src/utils/LocalstorageUtils.ts +95 -95
- package/src/utils/TableUtils.tsx +18 -18
- package/src/utils/checkUtils.ts +39 -39
- package/src/utils/enumConfig.ts +11 -11
- package/src/utils/getFormMode.js +12 -12
- package/src/utils/index.ts +4 -4
- package/src/utils/requestUtils.ts +34 -34
- package/src/utils/serialize.js +7 -7
- package/src/utils/utils.ts +212 -212
- package/tsconfig.json +29 -29
- package/typings.d.ts +4 -4
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ var axios = require('axios');
|
|
|
6
6
|
var antd = require('antd');
|
|
7
7
|
var _ = require('lodash');
|
|
8
8
|
var umi = require('umi');
|
|
9
|
-
var isEqual
|
|
9
|
+
var isEqual = require('lodash/isEqual');
|
|
10
10
|
var React = require('react');
|
|
11
11
|
var moment$1 = require('moment');
|
|
12
12
|
var icons = require('@ant-design/icons');
|
|
@@ -33,7 +33,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
33
33
|
|
|
34
34
|
var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
|
|
35
35
|
var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
|
|
36
|
-
var isEqual__default = /*#__PURE__*/_interopDefaultLegacy(isEqual
|
|
36
|
+
var isEqual__default = /*#__PURE__*/_interopDefaultLegacy(isEqual);
|
|
37
37
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
38
38
|
var moment__default = /*#__PURE__*/_interopDefaultLegacy(moment$1);
|
|
39
39
|
var ProLayout__default = /*#__PURE__*/_interopDefaultLegacy(ProLayout);
|
|
@@ -781,52 +781,41 @@ var precisionQuantity = function precisionQuantity(num, accuracy) {
|
|
|
781
781
|
return '';
|
|
782
782
|
};
|
|
783
783
|
|
|
784
|
-
var
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
function
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
784
|
+
var simpleIsEqual = function simpleIsEqual(a, b) {
|
|
785
|
+
return a === b;
|
|
786
|
+
};
|
|
787
|
+
|
|
788
|
+
function index$1 (resultFn, isEqual) {
|
|
789
|
+
if (isEqual === void 0) {
|
|
790
|
+
isEqual = simpleIsEqual;
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
var lastThis;
|
|
794
|
+
var lastArgs = [];
|
|
795
|
+
var lastResult;
|
|
796
|
+
var calledOnce = false;
|
|
797
|
+
|
|
798
|
+
var isNewArgEqualToLast = function isNewArgEqualToLast(newArg, index) {
|
|
799
|
+
return isEqual(newArg, lastArgs[index], index);
|
|
800
|
+
};
|
|
801
|
+
|
|
802
|
+
var result = function result() {
|
|
803
|
+
for (var _len = arguments.length, newArgs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
804
|
+
newArgs[_key] = arguments[_key];
|
|
800
805
|
}
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
}
|
|
806
|
+
|
|
807
|
+
if (calledOnce && lastThis === this && newArgs.length === lastArgs.length && newArgs.every(isNewArgEqualToLast)) {
|
|
808
|
+
return lastResult;
|
|
805
809
|
}
|
|
806
|
-
return true;
|
|
807
|
-
}
|
|
808
810
|
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
818
|
-
newArgs[_i] = arguments[_i];
|
|
819
|
-
}
|
|
820
|
-
if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {
|
|
821
|
-
return lastResult;
|
|
822
|
-
}
|
|
823
|
-
lastResult = resultFn.apply(this, newArgs);
|
|
824
|
-
calledOnce = true;
|
|
825
|
-
lastThis = this;
|
|
826
|
-
lastArgs = newArgs;
|
|
827
|
-
return lastResult;
|
|
828
|
-
}
|
|
829
|
-
return memoized;
|
|
811
|
+
lastResult = resultFn.apply(this, newArgs);
|
|
812
|
+
calledOnce = true;
|
|
813
|
+
lastThis = this;
|
|
814
|
+
lastArgs = newArgs;
|
|
815
|
+
return lastResult;
|
|
816
|
+
};
|
|
817
|
+
|
|
818
|
+
return result;
|
|
830
819
|
}
|
|
831
820
|
|
|
832
821
|
function styleInject(css, ref) {
|
|
@@ -1043,58 +1032,59 @@ var getItemDefaultWidth = function getItemDefaultWidth(item) {
|
|
|
1043
1032
|
* @returns 返回处理后的查询参数
|
|
1044
1033
|
*/
|
|
1045
1034
|
function queryParams(params, flag) {
|
|
1046
|
-
|
|
1035
|
+
var _loop = function _loop() {
|
|
1047
1036
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
params[value] = moment__default['default'](element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
1072
|
-
} else {
|
|
1073
|
-
params[value] = moment__default['default'](element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
1074
|
-
}
|
|
1075
|
-
});
|
|
1076
|
-
delete params[key];
|
|
1077
|
-
} else if (element && key.indexOf('*') >= 0) {
|
|
1078
|
-
var _dataParams4 = key.split('*');
|
|
1079
|
-
_dataParams4.forEach(function (value, index) {
|
|
1080
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
1081
|
-
});
|
|
1082
|
-
delete params[key];
|
|
1083
|
-
} else if (element && key.indexOf('_likeIn_') >= 0) {
|
|
1084
|
-
var _dataParams5 = key.split('_likeIn_');
|
|
1085
|
-
if (element.indexOf(',') >= 0) {
|
|
1086
|
-
params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
|
|
1087
|
-
params["qp-".concat(_dataParams5[0], "-like")] = null;
|
|
1037
|
+
var element = params[key];
|
|
1038
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
1039
|
+
var dataParams = key.split('*number*');
|
|
1040
|
+
dataParams.forEach(function (value, index) {
|
|
1041
|
+
params[value] = element[index];
|
|
1042
|
+
});
|
|
1043
|
+
delete params[key];
|
|
1044
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
1045
|
+
var _dataParams = key.split('*address*');
|
|
1046
|
+
_dataParams.forEach(function (value, index) {
|
|
1047
|
+
params[value] = element.PCDCode[index];
|
|
1048
|
+
});
|
|
1049
|
+
delete params[key];
|
|
1050
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
1051
|
+
var _dataParams2 = key.split('*costType*');
|
|
1052
|
+
// eslint-disable-next-line prefer-destructuring
|
|
1053
|
+
params[_dataParams2[0]] = element[1];
|
|
1054
|
+
delete params[key];
|
|
1055
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
1056
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
1057
|
+
_dataParams3.forEach(function (value, index) {
|
|
1058
|
+
if (index === 0) {
|
|
1059
|
+
params[value] = moment__default['default'](element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
1088
1060
|
} else {
|
|
1089
|
-
params[
|
|
1090
|
-
params["qp-".concat(_dataParams5[0], "-in")] = null;
|
|
1061
|
+
params[value] = moment__default['default'](element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
1091
1062
|
}
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1063
|
+
});
|
|
1064
|
+
delete params[key];
|
|
1065
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
1066
|
+
var _dataParams4 = key.split('*');
|
|
1067
|
+
_dataParams4.forEach(function (value, index) {
|
|
1068
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
1069
|
+
});
|
|
1070
|
+
delete params[key];
|
|
1071
|
+
} else if (element && key.indexOf('_likeIn_') >= 0) {
|
|
1072
|
+
var _dataParams5 = key.split('_likeIn_');
|
|
1073
|
+
if (element.indexOf(',') >= 0) {
|
|
1074
|
+
params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
|
|
1075
|
+
params["qp-".concat(_dataParams5[0], "-like")] = null;
|
|
1076
|
+
} else {
|
|
1077
|
+
params["qp-".concat(_dataParams5[0], "-like")] = element;
|
|
1078
|
+
params["qp-".concat(_dataParams5[0], "-in")] = null;
|
|
1095
1079
|
}
|
|
1096
|
-
|
|
1080
|
+
delete params[key];
|
|
1081
|
+
} else if (Array.isArray(element)) {
|
|
1082
|
+
params[key] = element.join(',');
|
|
1083
|
+
}
|
|
1097
1084
|
}
|
|
1085
|
+
};
|
|
1086
|
+
for (var key in params) {
|
|
1087
|
+
_loop();
|
|
1098
1088
|
}
|
|
1099
1089
|
return flag ? params : qs.stringify(params);
|
|
1100
1090
|
}
|
|
@@ -1140,7 +1130,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1140
1130
|
return item;
|
|
1141
1131
|
});
|
|
1142
1132
|
};
|
|
1143
|
-
var memoizeOneFormatter =
|
|
1133
|
+
var memoizeOneFormatter = index$1(formatter, isEqual__default['default']);
|
|
1144
1134
|
var go2BackAndClose = function go2BackAndClose() {
|
|
1145
1135
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1146
1136
|
umi.history.goBack();
|
|
@@ -2823,84 +2813,85 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
2823
2813
|
});
|
|
2824
2814
|
}
|
|
2825
2815
|
// 数组对象处理,对带有特殊标记的name进行处理
|
|
2826
|
-
|
|
2816
|
+
var _loop = function _loop() {
|
|
2827
2817
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
2854
|
-
}
|
|
2855
|
-
});
|
|
2856
|
-
delete params[key];
|
|
2857
|
-
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
2858
|
-
var _dataParams4 = key.split('*checkBox*');
|
|
2859
|
-
if (element) {
|
|
2860
|
-
params[_dataParams4[0]] = 0;
|
|
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');
|
|
2861
2843
|
}
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
_dataParams7.forEach(function (value, index) {
|
|
2880
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
2881
|
-
});
|
|
2882
|
-
delete params[key];
|
|
2883
|
-
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
2884
|
-
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
2885
|
-
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
2886
|
-
if (params[key][0] === 'range') {
|
|
2887
|
-
if (params[key][1][0]) {
|
|
2888
|
-
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
2889
|
-
}
|
|
2890
|
-
if (params[key][1][1]) {
|
|
2891
|
-
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
2892
|
-
}
|
|
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;
|
|
2850
|
+
}
|
|
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');
|
|
2893
2861
|
} else {
|
|
2894
|
-
params[
|
|
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];
|
|
2895
2878
|
}
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
} else
|
|
2900
|
-
|
|
2879
|
+
if (params[key][1][1]) {
|
|
2880
|
+
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
2881
|
+
}
|
|
2882
|
+
} else {
|
|
2883
|
+
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
2901
2884
|
}
|
|
2902
|
-
|
|
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];
|
|
2890
|
+
}
|
|
2903
2891
|
}
|
|
2892
|
+
};
|
|
2893
|
+
for (var key in params) {
|
|
2894
|
+
_loop();
|
|
2904
2895
|
}
|
|
2905
2896
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
2906
2897
|
pageSize: pageSize,
|
|
@@ -3481,9 +3472,6 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3481
3472
|
}, currentSelectProps), {}, {
|
|
3482
3473
|
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
3483
3474
|
return _getPopupContainer && _getPopupContainer(triggerNode) || triggerNode.parentElement;
|
|
3484
|
-
},
|
|
3485
|
-
onClear: function onClear() {
|
|
3486
|
-
run();
|
|
3487
3475
|
}
|
|
3488
3476
|
}), items.map(function (item) {
|
|
3489
3477
|
return /*#__PURE__*/React__default['default'].createElement(Option$1, {
|
|
@@ -4592,76 +4580,74 @@ var AddSelect = function AddSelect(props) {
|
|
|
4592
4580
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
4593
4581
|
var result;
|
|
4594
4582
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
4595
|
-
while (1) {
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
_context.next = 3;
|
|
4602
|
-
break;
|
|
4603
|
-
}
|
|
4604
|
-
antd.message.warning('相同skc配码不可设置相同哦');
|
|
4605
|
-
return _context.abrupt("return", false);
|
|
4606
|
-
case 3:
|
|
4607
|
-
if (!(bType == 'spu')) {
|
|
4608
|
-
_context.next = 26;
|
|
4609
|
-
break;
|
|
4610
|
-
}
|
|
4611
|
-
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
4612
|
-
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
4613
|
-
}))) {
|
|
4614
|
-
_context.next = 7;
|
|
4615
|
-
break;
|
|
4616
|
-
}
|
|
4617
|
-
antd.message.warning('相同商品相同配码颜色不可设置相同哦');
|
|
4618
|
-
return _context.abrupt("return", false);
|
|
4619
|
-
case 7:
|
|
4620
|
-
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
4621
|
-
_context.next = 10;
|
|
4622
|
-
break;
|
|
4623
|
-
}
|
|
4624
|
-
antd.message.warning('请先选择颜色!');
|
|
4625
|
-
return _context.abrupt("return", false);
|
|
4626
|
-
case 10:
|
|
4627
|
-
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
4628
|
-
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
4629
|
-
}))) {
|
|
4630
|
-
_context.next = 13;
|
|
4631
|
-
break;
|
|
4632
|
-
}
|
|
4633
|
-
antd.message.warning('相同商品相同颜色配码不可设置相同哦');
|
|
4634
|
-
return _context.abrupt("return", false);
|
|
4635
|
-
case 13:
|
|
4636
|
-
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
4637
|
-
_context.next = 26;
|
|
4638
|
-
break;
|
|
4639
|
-
}
|
|
4640
|
-
result = true;
|
|
4641
|
-
_context.prev = 15;
|
|
4642
|
-
_context.next = 18;
|
|
4643
|
-
return checkSpuMatchCode({
|
|
4644
|
-
skcCode: recordItem[recordKey],
|
|
4645
|
-
matchingCode: changeValue,
|
|
4646
|
-
ext1: recordItem.colorName
|
|
4647
|
-
});
|
|
4648
|
-
case 18:
|
|
4649
|
-
result = _context.sent;
|
|
4650
|
-
result = true;
|
|
4651
|
-
_context.next = 25;
|
|
4583
|
+
while (1) switch (_context.prev = _context.next) {
|
|
4584
|
+
case 0:
|
|
4585
|
+
if (!(bType == 'skc' && tList.some(function (i) {
|
|
4586
|
+
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
4587
|
+
}))) {
|
|
4588
|
+
_context.next = 3;
|
|
4652
4589
|
break;
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4590
|
+
}
|
|
4591
|
+
antd.message.warning('相同skc配码不可设置相同哦');
|
|
4592
|
+
return _context.abrupt("return", false);
|
|
4593
|
+
case 3:
|
|
4594
|
+
if (!(bType == 'spu')) {
|
|
4595
|
+
_context.next = 26;
|
|
4596
|
+
break;
|
|
4597
|
+
}
|
|
4598
|
+
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
4599
|
+
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
4600
|
+
}))) {
|
|
4601
|
+
_context.next = 7;
|
|
4602
|
+
break;
|
|
4603
|
+
}
|
|
4604
|
+
antd.message.warning('相同商品相同配码颜色不可设置相同哦');
|
|
4605
|
+
return _context.abrupt("return", false);
|
|
4606
|
+
case 7:
|
|
4607
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
4608
|
+
_context.next = 10;
|
|
4609
|
+
break;
|
|
4610
|
+
}
|
|
4611
|
+
antd.message.warning('请先选择颜色!');
|
|
4612
|
+
return _context.abrupt("return", false);
|
|
4613
|
+
case 10:
|
|
4614
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
4615
|
+
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
4616
|
+
}))) {
|
|
4617
|
+
_context.next = 13;
|
|
4618
|
+
break;
|
|
4619
|
+
}
|
|
4620
|
+
antd.message.warning('相同商品相同颜色配码不可设置相同哦');
|
|
4621
|
+
return _context.abrupt("return", false);
|
|
4622
|
+
case 13:
|
|
4623
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
4624
|
+
_context.next = 26;
|
|
4625
|
+
break;
|
|
4626
|
+
}
|
|
4627
|
+
result = true;
|
|
4628
|
+
_context.prev = 15;
|
|
4629
|
+
_context.next = 18;
|
|
4630
|
+
return checkSpuMatchCode({
|
|
4631
|
+
skcCode: recordItem[recordKey],
|
|
4632
|
+
matchingCode: changeValue,
|
|
4633
|
+
ext1: recordItem.colorName
|
|
4634
|
+
});
|
|
4635
|
+
case 18:
|
|
4636
|
+
result = _context.sent;
|
|
4637
|
+
result = true;
|
|
4638
|
+
_context.next = 25;
|
|
4639
|
+
break;
|
|
4640
|
+
case 22:
|
|
4641
|
+
_context.prev = 22;
|
|
4642
|
+
_context.t0 = _context["catch"](15);
|
|
4643
|
+
result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
|
|
4644
|
+
case 25:
|
|
4645
|
+
return _context.abrupt("return", result);
|
|
4646
|
+
case 26:
|
|
4647
|
+
return _context.abrupt("return", true);
|
|
4648
|
+
case 27:
|
|
4649
|
+
case "end":
|
|
4650
|
+
return _context.stop();
|
|
4665
4651
|
}
|
|
4666
4652
|
}, _callee, null, [[15, 22]]);
|
|
4667
4653
|
}));
|
|
@@ -4853,29 +4839,27 @@ var AddSelect = function AddSelect(props) {
|
|
|
4853
4839
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
4854
4840
|
var isConformToTheRules, newPopValue;
|
|
4855
4841
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
4856
|
-
while (1) {
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4842
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
4843
|
+
case 0:
|
|
4844
|
+
_context2.next = 2;
|
|
4845
|
+
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
4846
|
+
case 2:
|
|
4847
|
+
isConformToTheRules = _context2.sent;
|
|
4848
|
+
if (isConformToTheRules) {
|
|
4849
|
+
record[item.dataIndex] = value;
|
|
4850
|
+
} else {
|
|
4851
|
+
record[item.dataIndex] = null;
|
|
4852
|
+
}
|
|
4853
|
+
newPopValue = popvalue.map(function (i, innerIndex) {
|
|
4854
|
+
if (innerIndex == index) {
|
|
4855
|
+
i[item.dataIndex] = record[item.dataIndex];
|
|
4867
4856
|
}
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
setPopValue(newPopValue);
|
|
4875
|
-
case 6:
|
|
4876
|
-
case "end":
|
|
4877
|
-
return _context2.stop();
|
|
4878
|
-
}
|
|
4857
|
+
return i;
|
|
4858
|
+
});
|
|
4859
|
+
setPopValue(newPopValue);
|
|
4860
|
+
case 6:
|
|
4861
|
+
case "end":
|
|
4862
|
+
return _context2.stop();
|
|
4879
4863
|
}
|
|
4880
4864
|
}, _callee2);
|
|
4881
4865
|
}));
|
|
@@ -4935,84 +4919,85 @@ var AddSelect = function AddSelect(props) {
|
|
|
4935
4919
|
});
|
|
4936
4920
|
}
|
|
4937
4921
|
// 数组对象处理,对带有特殊标记的name进行处理
|
|
4938
|
-
|
|
4922
|
+
var _loop = function _loop() {
|
|
4939
4923
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
4966
|
-
}
|
|
4967
|
-
});
|
|
4968
|
-
delete params[key];
|
|
4969
|
-
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
4970
|
-
var _dataParams4 = key.split('*checkBox*');
|
|
4971
|
-
if (element) {
|
|
4972
|
-
params[_dataParams4[0]] = 0;
|
|
4924
|
+
var element = params[key];
|
|
4925
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
4926
|
+
var dataParams = key.split('*number*');
|
|
4927
|
+
dataParams.forEach(function (value, index) {
|
|
4928
|
+
params[value] = element[index];
|
|
4929
|
+
});
|
|
4930
|
+
delete params[key];
|
|
4931
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
4932
|
+
var _dataParams = key.split('*address*');
|
|
4933
|
+
_dataParams.forEach(function (value, index) {
|
|
4934
|
+
params[value] = element.PCDCode[index];
|
|
4935
|
+
});
|
|
4936
|
+
delete params[key];
|
|
4937
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
4938
|
+
var _dataParams2 = key.split('*costType*');
|
|
4939
|
+
// eslint-disable-next-line prefer-destructuring
|
|
4940
|
+
params[_dataParams2[0]] = element[1];
|
|
4941
|
+
delete params[key];
|
|
4942
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
4943
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
4944
|
+
_dataParams3.forEach(function (value, index) {
|
|
4945
|
+
if (index === 0) {
|
|
4946
|
+
params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
4947
|
+
} else {
|
|
4948
|
+
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
4973
4949
|
}
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
_dataParams7.forEach(function (value, index) {
|
|
4992
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
4993
|
-
});
|
|
4994
|
-
delete params[key];
|
|
4995
|
-
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
4996
|
-
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
4997
|
-
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
4998
|
-
if (params[key][0] === 'range') {
|
|
4999
|
-
if (params[key][1][0]) {
|
|
5000
|
-
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
5001
|
-
}
|
|
5002
|
-
if (params[key][1][1]) {
|
|
5003
|
-
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
5004
|
-
}
|
|
4950
|
+
});
|
|
4951
|
+
delete params[key];
|
|
4952
|
+
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
4953
|
+
var _dataParams4 = key.split('*checkBox*');
|
|
4954
|
+
if (element) {
|
|
4955
|
+
params[_dataParams4[0]] = 0;
|
|
4956
|
+
}
|
|
4957
|
+
delete params[key];
|
|
4958
|
+
} else if (element && key.indexOf('*cascader*') >= 0) {
|
|
4959
|
+
var _dataParams5 = key.split('*cascader*');
|
|
4960
|
+
params[_dataParams5[0]] = element[element.length - 1];
|
|
4961
|
+
delete params[key];
|
|
4962
|
+
} else if (element && key.indexOf('*date*') >= 0) {
|
|
4963
|
+
var _dataParams6 = key.split('*date*');
|
|
4964
|
+
_dataParams6.forEach(function (value, index) {
|
|
4965
|
+
if (index === 0) {
|
|
4966
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
5005
4967
|
} else {
|
|
5006
|
-
params[
|
|
4968
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
4969
|
+
}
|
|
4970
|
+
});
|
|
4971
|
+
delete params[key];
|
|
4972
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
4973
|
+
var _dataParams7 = key.split('*');
|
|
4974
|
+
_dataParams7.forEach(function (value, index) {
|
|
4975
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
4976
|
+
});
|
|
4977
|
+
delete params[key];
|
|
4978
|
+
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
4979
|
+
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
4980
|
+
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
4981
|
+
if (params[key][0] === 'range') {
|
|
4982
|
+
if (params[key][1][0]) {
|
|
4983
|
+
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
4984
|
+
}
|
|
4985
|
+
if (params[key][1][1]) {
|
|
4986
|
+
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
5007
4987
|
}
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
params[key] = element.join(',');
|
|
5011
|
-
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
5012
|
-
delete params[key];
|
|
4988
|
+
} else {
|
|
4989
|
+
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
5013
4990
|
}
|
|
5014
|
-
|
|
4991
|
+
delete params[key];
|
|
4992
|
+
} else if (Array.isArray(element)) {
|
|
4993
|
+
params[key] = element.join(',');
|
|
4994
|
+
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
4995
|
+
delete params[key];
|
|
4996
|
+
}
|
|
5015
4997
|
}
|
|
4998
|
+
};
|
|
4999
|
+
for (var key in params) {
|
|
5000
|
+
_loop();
|
|
5016
5001
|
}
|
|
5017
5002
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
5018
5003
|
pageSize: pageSize,
|
|
@@ -6418,72 +6403,70 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
6418
6403
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
6419
6404
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
6420
6405
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
6421
|
-
while (1) {
|
|
6422
|
-
|
|
6423
|
-
|
|
6424
|
-
|
|
6425
|
-
|
|
6426
|
-
|
|
6427
|
-
|
|
6428
|
-
|
|
6429
|
-
|
|
6430
|
-
|
|
6431
|
-
|
|
6432
|
-
|
|
6433
|
-
|
|
6434
|
-
|
|
6435
|
-
|
|
6436
|
-
|
|
6437
|
-
|
|
6438
|
-
|
|
6439
|
-
|
|
6440
|
-
|
|
6441
|
-
|
|
6442
|
-
|
|
6443
|
-
|
|
6444
|
-
|
|
6406
|
+
while (1) switch (_context.prev = _context.next) {
|
|
6407
|
+
case 0:
|
|
6408
|
+
if (data === null || data === void 0 ? void 0 : data.length) {
|
|
6409
|
+
_context.next = 3;
|
|
6410
|
+
break;
|
|
6411
|
+
}
|
|
6412
|
+
antd.message.warning('至少录入一条数据');
|
|
6413
|
+
return _context.abrupt("return");
|
|
6414
|
+
case 3:
|
|
6415
|
+
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
6416
|
+
return d.skuCode && d.name;
|
|
6417
|
+
})) {
|
|
6418
|
+
_context.next = 6;
|
|
6419
|
+
break;
|
|
6420
|
+
}
|
|
6421
|
+
antd.message.warning('请选择商品!');
|
|
6422
|
+
return _context.abrupt("return");
|
|
6423
|
+
case 6:
|
|
6424
|
+
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
6425
|
+
return d.count;
|
|
6426
|
+
})) {
|
|
6427
|
+
_context.next = 9;
|
|
6428
|
+
break;
|
|
6429
|
+
}
|
|
6430
|
+
antd.message.warning('请填写商品数量!');
|
|
6431
|
+
return _context.abrupt("return");
|
|
6432
|
+
case 9:
|
|
6433
|
+
_context.next = 11;
|
|
6434
|
+
return isSkuCanEntry(data);
|
|
6435
|
+
case 11:
|
|
6436
|
+
canEntryObject = _context.sent;
|
|
6437
|
+
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
6438
|
+
_context.next = 16;
|
|
6439
|
+
break;
|
|
6440
|
+
}
|
|
6441
|
+
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) {
|
|
6442
|
+
return /*#__PURE__*/React__default['default'].createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
|
|
6443
|
+
}));
|
|
6444
|
+
messageInfo && antd.message.warning({
|
|
6445
|
+
content: messageInfo,
|
|
6446
|
+
duration: 6
|
|
6447
|
+
});
|
|
6448
|
+
return _context.abrupt("return");
|
|
6449
|
+
case 16:
|
|
6450
|
+
setLoading(true);
|
|
6451
|
+
onSaveCallback(data).then(function (res) {
|
|
6452
|
+
{
|
|
6453
|
+
var _Object$keys;
|
|
6454
|
+
var initSuccessMessage = '保存成功';
|
|
6455
|
+
var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
|
|
6456
|
+
if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
|
|
6457
|
+
(rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? antd.message.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
|
|
6458
|
+
} else {
|
|
6459
|
+
antd.message.success(initSuccessMessage);
|
|
6460
|
+
}
|
|
6445
6461
|
}
|
|
6446
|
-
|
|
6447
|
-
|
|
6448
|
-
|
|
6449
|
-
|
|
6450
|
-
|
|
6451
|
-
|
|
6452
|
-
|
|
6453
|
-
|
|
6454
|
-
_context.next = 16;
|
|
6455
|
-
break;
|
|
6456
|
-
}
|
|
6457
|
-
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) {
|
|
6458
|
-
return /*#__PURE__*/React__default['default'].createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
|
|
6459
|
-
}));
|
|
6460
|
-
messageInfo && antd.message.warning({
|
|
6461
|
-
content: messageInfo,
|
|
6462
|
-
duration: 6
|
|
6463
|
-
});
|
|
6464
|
-
return _context.abrupt("return");
|
|
6465
|
-
case 16:
|
|
6466
|
-
setLoading(true);
|
|
6467
|
-
onSaveCallback(data).then(function (res) {
|
|
6468
|
-
{
|
|
6469
|
-
var _Object$keys;
|
|
6470
|
-
var initSuccessMessage = '保存成功';
|
|
6471
|
-
var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
|
|
6472
|
-
if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
|
|
6473
|
-
(rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? antd.message.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
|
|
6474
|
-
} else {
|
|
6475
|
-
antd.message.success(initSuccessMessage);
|
|
6476
|
-
}
|
|
6477
|
-
}
|
|
6478
|
-
setLoading(false);
|
|
6479
|
-
}).catch(function (Error) {
|
|
6480
|
-
antd.message.error(Error);
|
|
6481
|
-
setLoading(false);
|
|
6482
|
-
});
|
|
6483
|
-
case 18:
|
|
6484
|
-
case "end":
|
|
6485
|
-
return _context.stop();
|
|
6486
|
-
}
|
|
6462
|
+
setLoading(false);
|
|
6463
|
+
}).catch(function (Error) {
|
|
6464
|
+
antd.message.error(Error);
|
|
6465
|
+
setLoading(false);
|
|
6466
|
+
});
|
|
6467
|
+
case 18:
|
|
6468
|
+
case "end":
|
|
6469
|
+
return _context.stop();
|
|
6487
6470
|
}
|
|
6488
6471
|
}, _callee);
|
|
6489
6472
|
}));
|
|
@@ -6716,6 +6699,7 @@ var handleDefaultPrefixUrl = function handleDefaultPrefixUrl(type) {
|
|
|
6716
6699
|
case 'purchaseOrg':
|
|
6717
6700
|
case 'salesOrg':
|
|
6718
6701
|
case 'employee2':
|
|
6702
|
+
case 'role':
|
|
6719
6703
|
result = '/user';
|
|
6720
6704
|
break;
|
|
6721
6705
|
case 'deliveryMode':
|
|
@@ -8671,6 +8655,84 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
8671
8655
|
}]
|
|
8672
8656
|
}, modalTableBusProps);
|
|
8673
8657
|
}
|
|
8658
|
+
// 角色选择器
|
|
8659
|
+
if (type === 'role') {
|
|
8660
|
+
requestConfig = _objectSpread2({
|
|
8661
|
+
url: "".concat(prefixUrl.selectPrefix, "/role"),
|
|
8662
|
+
filter: 'qp-name,code-orGroup,like',
|
|
8663
|
+
mappingTextField: 'name',
|
|
8664
|
+
mappingTextShowKeyField: 'code',
|
|
8665
|
+
mappingValueField: 'code',
|
|
8666
|
+
otherParams: {
|
|
8667
|
+
'qp-status-eq': 10,
|
|
8668
|
+
sorter: 'desc-id'
|
|
8669
|
+
},
|
|
8670
|
+
sourceName: 'roleCode'
|
|
8671
|
+
}, requestConfigProp);
|
|
8672
|
+
tableSearchForm = [{
|
|
8673
|
+
name: 'qp-name-like',
|
|
8674
|
+
label: '角色名称'
|
|
8675
|
+
}, {
|
|
8676
|
+
name: 'qp-code-like',
|
|
8677
|
+
label: '角色编码'
|
|
8678
|
+
}, {
|
|
8679
|
+
name: 'qp-categoryCode-eq',
|
|
8680
|
+
type: 'select',
|
|
8681
|
+
label: '角色分类',
|
|
8682
|
+
field: {
|
|
8683
|
+
type: 'select',
|
|
8684
|
+
props: {
|
|
8685
|
+
notFoundContent: '暂无数据',
|
|
8686
|
+
allowClear: true,
|
|
8687
|
+
showSearch: true,
|
|
8688
|
+
showArrow: true,
|
|
8689
|
+
maxTagCount: 1,
|
|
8690
|
+
optionFilterProp: 'children',
|
|
8691
|
+
filterOption: function filterOption(input, option) {
|
|
8692
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
8693
|
+
}
|
|
8694
|
+
}
|
|
8695
|
+
}
|
|
8696
|
+
}];
|
|
8697
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
|
|
8698
|
+
pageSize: 5000,
|
|
8699
|
+
currentPage: 1
|
|
8700
|
+
})]).then(function (x) {
|
|
8701
|
+
formatSource(x, 0, 2, tableSearchForm);
|
|
8702
|
+
});
|
|
8703
|
+
modalTableProps = _objectSpread2({
|
|
8704
|
+
modalTableTitle: '选择角色',
|
|
8705
|
+
tableSearchForm: tableSearchForm,
|
|
8706
|
+
tableColumns: [{
|
|
8707
|
+
title: '角色编码',
|
|
8708
|
+
dataIndex: 'code'
|
|
8709
|
+
}, {
|
|
8710
|
+
title: '角色名称',
|
|
8711
|
+
dataIndex: 'name',
|
|
8712
|
+
render: function render(text) {
|
|
8713
|
+
return handleTextOverflow(text);
|
|
8714
|
+
}
|
|
8715
|
+
}, {
|
|
8716
|
+
title: '角色分类',
|
|
8717
|
+
dataIndex: 'categoryName',
|
|
8718
|
+
render: function render(text) {
|
|
8719
|
+
return handleTextOverflow(text);
|
|
8720
|
+
}
|
|
8721
|
+
}, {
|
|
8722
|
+
dataIndex: 'remark',
|
|
8723
|
+
title: '角色描述',
|
|
8724
|
+
render: function render(text) {
|
|
8725
|
+
return handleTextOverflow(text);
|
|
8726
|
+
}
|
|
8727
|
+
}, {
|
|
8728
|
+
dataIndex: 'applicationName',
|
|
8729
|
+
title: '应用',
|
|
8730
|
+
render: function render(text) {
|
|
8731
|
+
return handleTextOverflow(text);
|
|
8732
|
+
}
|
|
8733
|
+
}]
|
|
8734
|
+
}, modalTableBusProps);
|
|
8735
|
+
}
|
|
8674
8736
|
return {
|
|
8675
8737
|
modalTableProps: modalTableProps,
|
|
8676
8738
|
requestConfig: requestConfig,
|
|
@@ -9888,7 +9950,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
9888
9950
|
* @LastEditTime: 2022-01-14 17:17:26
|
|
9889
9951
|
* @LastEditors: rodchen
|
|
9890
9952
|
*/
|
|
9891
|
-
var index$
|
|
9953
|
+
var index$2 = (function (storageKeyString) {
|
|
9892
9954
|
var seconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
|
|
9893
9955
|
var tipsCallFunction = arguments.length > 2 ? arguments[2] : undefined;
|
|
9894
9956
|
if (typeof seconds !== 'number') throw new Error('seconds should be number');
|
|
@@ -10015,44 +10077,42 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
10015
10077
|
var _ctx$form;
|
|
10016
10078
|
var resData, coverData, data, dataList;
|
|
10017
10079
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10018
|
-
while (1) {
|
|
10019
|
-
|
|
10020
|
-
|
|
10021
|
-
|
|
10022
|
-
|
|
10023
|
-
_context.next = 13;
|
|
10024
|
-
break;
|
|
10025
|
-
}
|
|
10026
|
-
data = resData.data;
|
|
10027
|
-
if (!remoteSource.converter) {
|
|
10028
|
-
_context.next = 9;
|
|
10029
|
-
break;
|
|
10030
|
-
}
|
|
10031
|
-
_context.next = 6;
|
|
10032
|
-
return remoteSource.converter({
|
|
10033
|
-
data: [data]
|
|
10034
|
-
});
|
|
10035
|
-
case 6:
|
|
10036
|
-
coverData = _context.sent;
|
|
10037
|
-
_context.next = 11;
|
|
10080
|
+
while (1) switch (_context.prev = _context.next) {
|
|
10081
|
+
case 0:
|
|
10082
|
+
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
10083
|
+
if (!(resData.status === '0' || resData.code === '000000')) {
|
|
10084
|
+
_context.next = 13;
|
|
10038
10085
|
break;
|
|
10039
|
-
|
|
10040
|
-
|
|
10041
|
-
|
|
10042
|
-
|
|
10043
|
-
}) || [];
|
|
10044
|
-
case 11:
|
|
10045
|
-
_context.next = 14;
|
|
10086
|
+
}
|
|
10087
|
+
data = resData.data;
|
|
10088
|
+
if (!remoteSource.converter) {
|
|
10089
|
+
_context.next = 9;
|
|
10046
10090
|
break;
|
|
10047
|
-
|
|
10048
|
-
|
|
10049
|
-
|
|
10050
|
-
|
|
10051
|
-
|
|
10052
|
-
|
|
10053
|
-
|
|
10054
|
-
|
|
10055
|
-
|
|
10091
|
+
}
|
|
10092
|
+
_context.next = 6;
|
|
10093
|
+
return remoteSource.converter({
|
|
10094
|
+
data: [data]
|
|
10095
|
+
});
|
|
10096
|
+
case 6:
|
|
10097
|
+
coverData = _context.sent;
|
|
10098
|
+
_context.next = 11;
|
|
10099
|
+
break;
|
|
10100
|
+
case 9:
|
|
10101
|
+
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
10102
|
+
coverData = dataList.length && dataList.map(function (ites) {
|
|
10103
|
+
return mapSearchTree(ites);
|
|
10104
|
+
}) || [];
|
|
10105
|
+
case 11:
|
|
10106
|
+
_context.next = 14;
|
|
10107
|
+
break;
|
|
10108
|
+
case 13:
|
|
10109
|
+
coverData = [];
|
|
10110
|
+
case 14:
|
|
10111
|
+
setTreeData(coverData);
|
|
10112
|
+
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
|
|
10113
|
+
case 16:
|
|
10114
|
+
case "end":
|
|
10115
|
+
return _context.stop();
|
|
10056
10116
|
}
|
|
10057
10117
|
}, _callee);
|
|
10058
10118
|
}));
|
|
@@ -10252,6 +10312,20 @@ var handleDefaultProps = function handleDefaultProps(type, otherRequestConfig) {
|
|
|
10252
10312
|
}
|
|
10253
10313
|
};
|
|
10254
10314
|
break;
|
|
10315
|
+
case 'settle-organization':
|
|
10316
|
+
result = {
|
|
10317
|
+
isChoose: true,
|
|
10318
|
+
remoteSource: {
|
|
10319
|
+
url: "/user/orgViewNode/common/getTreeForOrgViewAndTenant",
|
|
10320
|
+
headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
|
|
10321
|
+
initialParams: {
|
|
10322
|
+
'orgViewCode': 'settlement-organizational-view',
|
|
10323
|
+
'qp-status-eq': 10
|
|
10324
|
+
},
|
|
10325
|
+
resKeyValue: ['code', 'name']
|
|
10326
|
+
}
|
|
10327
|
+
};
|
|
10328
|
+
break;
|
|
10255
10329
|
case 'market-area':
|
|
10256
10330
|
result = {
|
|
10257
10331
|
isChoose: true,
|
|
@@ -10302,7 +10376,7 @@ var BusinessTreeSearchSelect$1 = /*#__PURE__*/React__default['default'].memo(Bus
|
|
|
10302
10376
|
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";
|
|
10303
10377
|
styleInject(css_248z$8);
|
|
10304
10378
|
|
|
10305
|
-
var index$
|
|
10379
|
+
var index$3 = (function (props) {
|
|
10306
10380
|
var _props$formStatusMapp = props.formStatusMapping,
|
|
10307
10381
|
formStatusMapping = _props$formStatusMapp === void 0 ? [] : _props$formStatusMapp;
|
|
10308
10382
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -11726,7 +11800,7 @@ var iconMap = {
|
|
|
11726
11800
|
src: moreIcon
|
|
11727
11801
|
})
|
|
11728
11802
|
};
|
|
11729
|
-
var index$
|
|
11803
|
+
var index$4 = (function (props) {
|
|
11730
11804
|
var _useLocation = umi.useLocation(),
|
|
11731
11805
|
pathname = _useLocation.pathname;
|
|
11732
11806
|
var _useState = React.useState(pathname + 'id'),
|
|
@@ -11943,7 +12017,7 @@ var css_248z$d = ".home_page_head {\n height: 54px;\n display: flex;\n justif
|
|
|
11943
12017
|
styleInject(css_248z$d);
|
|
11944
12018
|
|
|
11945
12019
|
var _excluded$c = ["children"];
|
|
11946
|
-
var index$
|
|
12020
|
+
var index$5 = (function (props) {
|
|
11947
12021
|
var _useLocation = umi.useLocation(),
|
|
11948
12022
|
pathname = _useLocation.pathname;
|
|
11949
12023
|
var _useState = React.useState(pathname + 'id'),
|
|
@@ -14242,21 +14316,19 @@ function _outLogin() {
|
|
|
14242
14316
|
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
14243
14317
|
var res;
|
|
14244
14318
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
14245
|
-
while (1) {
|
|
14246
|
-
|
|
14247
|
-
|
|
14248
|
-
|
|
14249
|
-
|
|
14250
|
-
|
|
14251
|
-
|
|
14252
|
-
|
|
14253
|
-
|
|
14254
|
-
|
|
14255
|
-
|
|
14256
|
-
|
|
14257
|
-
|
|
14258
|
-
return _context.stop();
|
|
14259
|
-
}
|
|
14319
|
+
while (1) switch (_context.prev = _context.next) {
|
|
14320
|
+
case 0:
|
|
14321
|
+
_context.next = 2;
|
|
14322
|
+
return axios__default['default']({
|
|
14323
|
+
url: '/user/web/loginOut',
|
|
14324
|
+
method: 'GET'
|
|
14325
|
+
});
|
|
14326
|
+
case 2:
|
|
14327
|
+
res = _context.sent;
|
|
14328
|
+
return _context.abrupt("return", res);
|
|
14329
|
+
case 4:
|
|
14330
|
+
case "end":
|
|
14331
|
+
return _context.stop();
|
|
14260
14332
|
}
|
|
14261
14333
|
}, _callee);
|
|
14262
14334
|
}));
|
|
@@ -14385,31 +14457,29 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
14385
14457
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
14386
14458
|
var sessionId;
|
|
14387
14459
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
14388
|
-
while (1) {
|
|
14389
|
-
|
|
14390
|
-
|
|
14391
|
-
|
|
14392
|
-
|
|
14393
|
-
|
|
14394
|
-
|
|
14395
|
-
|
|
14396
|
-
|
|
14397
|
-
|
|
14460
|
+
while (1) switch (_context.prev = _context.next) {
|
|
14461
|
+
case 0:
|
|
14462
|
+
_context.next = 2;
|
|
14463
|
+
return getSessionId();
|
|
14464
|
+
case 2:
|
|
14465
|
+
sessionId = _context.sent;
|
|
14466
|
+
_context.next = 5;
|
|
14467
|
+
return outLogin({
|
|
14468
|
+
sessionId: sessionId
|
|
14469
|
+
});
|
|
14470
|
+
case 5:
|
|
14471
|
+
// @ts-ignore
|
|
14472
|
+
if (BUILD_TYPE) {
|
|
14473
|
+
antd.message.success('退出登录成功');
|
|
14474
|
+
umi.history.replace({
|
|
14475
|
+
pathname: '/user/login'
|
|
14398
14476
|
});
|
|
14399
|
-
|
|
14400
|
-
|
|
14401
|
-
|
|
14402
|
-
|
|
14403
|
-
|
|
14404
|
-
|
|
14405
|
-
});
|
|
14406
|
-
} else {
|
|
14407
|
-
setLoginOutPath();
|
|
14408
|
-
}
|
|
14409
|
-
case 6:
|
|
14410
|
-
case "end":
|
|
14411
|
-
return _context.stop();
|
|
14412
|
-
}
|
|
14477
|
+
} else {
|
|
14478
|
+
setLoginOutPath();
|
|
14479
|
+
}
|
|
14480
|
+
case 6:
|
|
14481
|
+
case "end":
|
|
14482
|
+
return _context.stop();
|
|
14413
14483
|
}
|
|
14414
14484
|
}, _callee);
|
|
14415
14485
|
}));
|
|
@@ -16237,6 +16307,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
16237
16307
|
showSubMenu: isShow
|
|
16238
16308
|
});
|
|
16239
16309
|
}, 500);
|
|
16310
|
+
//设置tabs标签左右滚动
|
|
16240
16311
|
_this.setTabNavTransLate = function (num) {
|
|
16241
16312
|
var _document$getElementB, _document$getElementB2, _document$getElementB3, _document$getElementB4, _document$defaultView;
|
|
16242
16313
|
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];
|
|
@@ -16917,14 +16988,12 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
16917
16988
|
request: function () {
|
|
16918
16989
|
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
16919
16990
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
16920
|
-
while (1) {
|
|
16921
|
-
|
|
16922
|
-
|
|
16923
|
-
|
|
16924
|
-
|
|
16925
|
-
|
|
16926
|
-
return _context.stop();
|
|
16927
|
-
}
|
|
16991
|
+
while (1) switch (_context.prev = _context.next) {
|
|
16992
|
+
case 0:
|
|
16993
|
+
return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
|
|
16994
|
+
case 1:
|
|
16995
|
+
case "end":
|
|
16996
|
+
return _context.stop();
|
|
16928
16997
|
}
|
|
16929
16998
|
}, _callee);
|
|
16930
16999
|
}));
|
|
@@ -17062,7 +17131,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
17062
17131
|
}]);
|
|
17063
17132
|
return WrapperComponent;
|
|
17064
17133
|
}(React__default['default'].Component);
|
|
17065
|
-
var index$
|
|
17134
|
+
var index$6 = (function (props) {
|
|
17066
17135
|
var _useModel = umi.useModel('@@initialState'),
|
|
17067
17136
|
_useModel$initialStat = _useModel.initialState,
|
|
17068
17137
|
initialState = _useModel$initialStat === void 0 ? {} : _useModel$initialStat;
|
|
@@ -17304,7 +17373,7 @@ var FixedScrollBar = function FixedScrollBar(_ref, ref) {
|
|
|
17304
17373
|
};
|
|
17305
17374
|
var FixedScrollBar$1 = /*#__PURE__*/React__default['default'].forwardRef(FixedScrollBar);
|
|
17306
17375
|
|
|
17307
|
-
var index$
|
|
17376
|
+
var index$7 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
17308
17377
|
var _useState = React.useState(false),
|
|
17309
17378
|
_useState2 = _slicedToArray(_useState, 2),
|
|
17310
17379
|
show = _useState2[0],
|
|
@@ -24376,8 +24445,7 @@ var inputTypes = {
|
|
|
24376
24445
|
type: 'bs-employeeSearchSelect',
|
|
24377
24446
|
props: _objectSpread2(_objectSpread2({}, normalSingleSelectProps), {}, {
|
|
24378
24447
|
requestConfig: {
|
|
24379
|
-
mappingValueField: 'employeeNumber'
|
|
24380
|
-
filterInit: 'qp-employeeNumber-like'
|
|
24448
|
+
mappingValueField: 'employeeNumber'
|
|
24381
24449
|
}
|
|
24382
24450
|
})
|
|
24383
24451
|
},
|
|
@@ -24388,6 +24456,13 @@ var inputTypes = {
|
|
|
24388
24456
|
treeCheckable: false
|
|
24389
24457
|
}, normalSingleSelectProps)
|
|
24390
24458
|
},
|
|
24459
|
+
290: {
|
|
24460
|
+
// 库存组织
|
|
24461
|
+
type: 'bs-settleOrgSelect',
|
|
24462
|
+
props: _objectSpread2({
|
|
24463
|
+
treeCheckable: false
|
|
24464
|
+
}, normalSingleSelectProps)
|
|
24465
|
+
},
|
|
24391
24466
|
310: {
|
|
24392
24467
|
type: 'bs-deliveryModeSearchSelect',
|
|
24393
24468
|
props: _objectSpread2({}, normalSingleSelectProps)
|
|
@@ -24405,6 +24480,14 @@ var inputTypes = {
|
|
|
24405
24480
|
props: _objectSpread2({
|
|
24406
24481
|
treeCheckable: false
|
|
24407
24482
|
}, normalSingleSelectProps)
|
|
24483
|
+
},
|
|
24484
|
+
360: {
|
|
24485
|
+
type: 'bs-roleSelect',
|
|
24486
|
+
props: _objectSpread2(_objectSpread2({}, normalSingleSelectProps), {}, {
|
|
24487
|
+
requestConfig: {
|
|
24488
|
+
filter: 'qp-name,code-orGroup-in'
|
|
24489
|
+
}
|
|
24490
|
+
})
|
|
24408
24491
|
}
|
|
24409
24492
|
},
|
|
24410
24493
|
30: {
|
|
@@ -24523,8 +24606,7 @@ var inputTypes = {
|
|
|
24523
24606
|
type: 'bs-employeeSearchSelect',
|
|
24524
24607
|
props: _objectSpread2(_objectSpread2({}, normalMultipleSelectProps), {}, {
|
|
24525
24608
|
requestConfig: {
|
|
24526
|
-
mappingValueField: 'employeeNumber'
|
|
24527
|
-
filterInit: 'qp-employeeNumber-like'
|
|
24609
|
+
mappingValueField: 'employeeNumber'
|
|
24528
24610
|
}
|
|
24529
24611
|
})
|
|
24530
24612
|
},
|
|
@@ -24535,6 +24617,13 @@ var inputTypes = {
|
|
|
24535
24617
|
treeCheckable: true
|
|
24536
24618
|
}, normalMultipleSelectProps)
|
|
24537
24619
|
},
|
|
24620
|
+
290: {
|
|
24621
|
+
// 结算组织
|
|
24622
|
+
type: 'bs-settleOrgSelect',
|
|
24623
|
+
props: _objectSpread2({
|
|
24624
|
+
treeCheckable: true
|
|
24625
|
+
}, normalMultipleSelectProps)
|
|
24626
|
+
},
|
|
24538
24627
|
310: {
|
|
24539
24628
|
type: 'bs-deliveryModeSearchSelect',
|
|
24540
24629
|
props: _objectSpread2(_objectSpread2({}, normalMultipleSelectProps), {}, {
|
|
@@ -24556,6 +24645,14 @@ var inputTypes = {
|
|
|
24556
24645
|
props: _objectSpread2({
|
|
24557
24646
|
treeCheckable: false
|
|
24558
24647
|
}, normalSingleSelectProps)
|
|
24648
|
+
},
|
|
24649
|
+
360: {
|
|
24650
|
+
type: 'bs-roleSelect',
|
|
24651
|
+
props: _objectSpread2(_objectSpread2({}, normalMultipleSelectProps), {}, {
|
|
24652
|
+
requestConfig: {
|
|
24653
|
+
filter: 'qp-name,code-orGroup-in'
|
|
24654
|
+
}
|
|
24655
|
+
})
|
|
24559
24656
|
}
|
|
24560
24657
|
}
|
|
24561
24658
|
};
|
|
@@ -24583,10 +24680,12 @@ var choiceType = Object.freeze({
|
|
|
24583
24680
|
260: '店铺选择器',
|
|
24584
24681
|
270: '员工选择器',
|
|
24585
24682
|
280: '库存组织选择器',
|
|
24683
|
+
290: '结算组织选择器',
|
|
24586
24684
|
310: '配送方式选择器',
|
|
24587
24685
|
330: '变量',
|
|
24588
24686
|
340: '规则模板选择器',
|
|
24589
|
-
350: '营销区域选择器'
|
|
24687
|
+
350: '营销区域选择器',
|
|
24688
|
+
360: '角色选择器'
|
|
24590
24689
|
});
|
|
24591
24690
|
var inputType = {
|
|
24592
24691
|
10: '输入',
|
|
@@ -24607,28 +24706,26 @@ var valueType = {
|
|
|
24607
24706
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
24608
24707
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
24609
24708
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
24610
|
-
while (1) {
|
|
24611
|
-
|
|
24612
|
-
|
|
24613
|
-
|
|
24614
|
-
|
|
24615
|
-
|
|
24616
|
-
|
|
24617
|
-
|
|
24618
|
-
return
|
|
24619
|
-
|
|
24620
|
-
|
|
24621
|
-
|
|
24622
|
-
|
|
24623
|
-
|
|
24624
|
-
|
|
24625
|
-
|
|
24626
|
-
|
|
24627
|
-
|
|
24628
|
-
|
|
24629
|
-
|
|
24630
|
-
return _context.stop();
|
|
24631
|
-
}
|
|
24709
|
+
while (1) switch (_context.prev = _context.next) {
|
|
24710
|
+
case 0:
|
|
24711
|
+
_context.next = 2;
|
|
24712
|
+
return bssula.request({
|
|
24713
|
+
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
24714
|
+
converter: function converter(_ref2) {
|
|
24715
|
+
var data = _ref2.data;
|
|
24716
|
+
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
24717
|
+
return {
|
|
24718
|
+
text: d.name,
|
|
24719
|
+
value: d.code || d.brandCode
|
|
24720
|
+
};
|
|
24721
|
+
});
|
|
24722
|
+
}
|
|
24723
|
+
});
|
|
24724
|
+
case 2:
|
|
24725
|
+
return _context.abrupt("return", _context.sent);
|
|
24726
|
+
case 3:
|
|
24727
|
+
case "end":
|
|
24728
|
+
return _context.stop();
|
|
24632
24729
|
}
|
|
24633
24730
|
}, _callee);
|
|
24634
24731
|
}));
|
|
@@ -24678,55 +24775,53 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
24678
24775
|
ahooks.useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
24679
24776
|
var _ref$current, source;
|
|
24680
24777
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
24681
|
-
while (1) {
|
|
24682
|
-
|
|
24683
|
-
|
|
24684
|
-
|
|
24685
|
-
|
|
24686
|
-
|
|
24687
|
-
|
|
24688
|
-
|
|
24689
|
-
|
|
24690
|
-
|
|
24691
|
-
};
|
|
24692
|
-
}
|
|
24693
|
-
return prev;
|
|
24694
|
-
});
|
|
24695
|
-
case 2:
|
|
24696
|
-
if (!record.dictionaryCode) {
|
|
24697
|
-
_context.next = 17;
|
|
24698
|
-
break;
|
|
24699
|
-
}
|
|
24700
|
-
if (!(record.choiceType == 20)) {
|
|
24701
|
-
_context.next = 7;
|
|
24702
|
-
break;
|
|
24778
|
+
while (1) switch (_context.prev = _context.next) {
|
|
24779
|
+
case 0:
|
|
24780
|
+
_context.next = 2;
|
|
24781
|
+
return setIsShowAndType(function (prev) {
|
|
24782
|
+
if (record.inputType === 20 || record.inputType === 30) {
|
|
24783
|
+
return {
|
|
24784
|
+
isShow: true,
|
|
24785
|
+
singleOrMultiple: record.inputType,
|
|
24786
|
+
type: record.choiceType
|
|
24787
|
+
};
|
|
24703
24788
|
}
|
|
24704
|
-
|
|
24705
|
-
|
|
24789
|
+
return prev;
|
|
24790
|
+
});
|
|
24791
|
+
case 2:
|
|
24792
|
+
if (!record.dictionaryCode) {
|
|
24793
|
+
_context.next = 17;
|
|
24706
24794
|
break;
|
|
24707
|
-
|
|
24708
|
-
|
|
24709
|
-
|
|
24710
|
-
break;
|
|
24711
|
-
}
|
|
24712
|
-
_context.next = 10;
|
|
24713
|
-
return getDynamicDict(record.dictionaryCode);
|
|
24714
|
-
case 10:
|
|
24715
|
-
_context.t1 = _context.sent;
|
|
24716
|
-
_context.next = 14;
|
|
24795
|
+
}
|
|
24796
|
+
if (!(record.choiceType == 20)) {
|
|
24797
|
+
_context.next = 7;
|
|
24717
24798
|
break;
|
|
24718
|
-
|
|
24719
|
-
|
|
24720
|
-
|
|
24721
|
-
|
|
24722
|
-
|
|
24723
|
-
|
|
24724
|
-
|
|
24725
|
-
|
|
24726
|
-
|
|
24727
|
-
|
|
24728
|
-
|
|
24729
|
-
|
|
24799
|
+
}
|
|
24800
|
+
_context.t0 = getDictionarySource(record.dictionaryCode);
|
|
24801
|
+
_context.next = 15;
|
|
24802
|
+
break;
|
|
24803
|
+
case 7:
|
|
24804
|
+
if (!(record.choiceType == 30)) {
|
|
24805
|
+
_context.next = 13;
|
|
24806
|
+
break;
|
|
24807
|
+
}
|
|
24808
|
+
_context.next = 10;
|
|
24809
|
+
return getDynamicDict(record.dictionaryCode);
|
|
24810
|
+
case 10:
|
|
24811
|
+
_context.t1 = _context.sent;
|
|
24812
|
+
_context.next = 14;
|
|
24813
|
+
break;
|
|
24814
|
+
case 13:
|
|
24815
|
+
_context.t1 = [];
|
|
24816
|
+
case 14:
|
|
24817
|
+
_context.t0 = _context.t1;
|
|
24818
|
+
case 15:
|
|
24819
|
+
source = _context.t0;
|
|
24820
|
+
// @ts-ignore
|
|
24821
|
+
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
24822
|
+
case 17:
|
|
24823
|
+
case "end":
|
|
24824
|
+
return _context.stop();
|
|
24730
24825
|
}
|
|
24731
24826
|
}, _callee);
|
|
24732
24827
|
})));
|
|
@@ -24794,30 +24889,28 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
24794
24889
|
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
24795
24890
|
var form, values, name, relates, source;
|
|
24796
24891
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
24797
|
-
while (1) {
|
|
24798
|
-
|
|
24799
|
-
|
|
24800
|
-
|
|
24801
|
-
if (values[0]) {
|
|
24802
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
24803
|
-
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
24804
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
24805
|
-
}
|
|
24806
|
-
if (!values[1]) {
|
|
24807
|
-
_context2.next = 9;
|
|
24808
|
-
break;
|
|
24809
|
-
}
|
|
24810
|
-
_context2.next = 5;
|
|
24811
|
-
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
24812
|
-
case 5:
|
|
24813
|
-
source = _context2.sent;
|
|
24892
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
24893
|
+
case 0:
|
|
24894
|
+
form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
|
|
24895
|
+
if (values[0]) {
|
|
24814
24896
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
24815
24897
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
24816
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0],
|
|
24817
|
-
|
|
24818
|
-
|
|
24819
|
-
|
|
24820
|
-
|
|
24898
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
24899
|
+
}
|
|
24900
|
+
if (!values[1]) {
|
|
24901
|
+
_context2.next = 9;
|
|
24902
|
+
break;
|
|
24903
|
+
}
|
|
24904
|
+
_context2.next = 5;
|
|
24905
|
+
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
24906
|
+
case 5:
|
|
24907
|
+
source = _context2.sent;
|
|
24908
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
24909
|
+
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
24910
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
24911
|
+
case 9:
|
|
24912
|
+
case "end":
|
|
24913
|
+
return _context2.stop();
|
|
24821
24914
|
}
|
|
24822
24915
|
}, _callee2);
|
|
24823
24916
|
}));
|
|
@@ -25277,43 +25370,41 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
25277
25370
|
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
25278
25371
|
var values, name, form, source;
|
|
25279
25372
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
25280
|
-
while (1) {
|
|
25281
|
-
|
|
25282
|
-
|
|
25283
|
-
|
|
25284
|
-
|
|
25285
|
-
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
25286
|
-
form.setFieldVisible(name, false);
|
|
25287
|
-
}
|
|
25288
|
-
if (!(values[0] === 30)) {
|
|
25289
|
-
_context3.next = 10;
|
|
25290
|
-
break;
|
|
25291
|
-
}
|
|
25292
|
-
_context3.next = 5;
|
|
25293
|
-
return bssula.request({
|
|
25294
|
-
url: '/basic/dictDynamicItem/queryList',
|
|
25295
|
-
converter: function converter(_ref11) {
|
|
25296
|
-
var data = _ref11.data;
|
|
25297
|
-
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
25298
|
-
return {
|
|
25299
|
-
text: d.dictCode,
|
|
25300
|
-
value: d.dictCode
|
|
25301
|
-
};
|
|
25302
|
-
});
|
|
25303
|
-
}
|
|
25304
|
-
});
|
|
25305
|
-
case 5:
|
|
25306
|
-
source = _context3.sent;
|
|
25307
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
25308
|
-
form.setFieldVisible(name, true);
|
|
25309
|
-
_context3.next = 11;
|
|
25310
|
-
break;
|
|
25311
|
-
case 10:
|
|
25373
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
25374
|
+
case 0:
|
|
25375
|
+
values = _ref10.values, name = _ref10.name, form = _ref10.form;
|
|
25376
|
+
if (values[1] === 40) {
|
|
25377
|
+
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
25312
25378
|
form.setFieldVisible(name, false);
|
|
25313
|
-
|
|
25314
|
-
|
|
25315
|
-
|
|
25316
|
-
|
|
25379
|
+
}
|
|
25380
|
+
if (!(values[0] === 30)) {
|
|
25381
|
+
_context3.next = 10;
|
|
25382
|
+
break;
|
|
25383
|
+
}
|
|
25384
|
+
_context3.next = 5;
|
|
25385
|
+
return bssula.request({
|
|
25386
|
+
url: '/basic/dictDynamicItem/queryList',
|
|
25387
|
+
converter: function converter(_ref11) {
|
|
25388
|
+
var data = _ref11.data;
|
|
25389
|
+
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
25390
|
+
return {
|
|
25391
|
+
text: d.dictCode,
|
|
25392
|
+
value: d.dictCode
|
|
25393
|
+
};
|
|
25394
|
+
});
|
|
25395
|
+
}
|
|
25396
|
+
});
|
|
25397
|
+
case 5:
|
|
25398
|
+
source = _context3.sent;
|
|
25399
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
25400
|
+
form.setFieldVisible(name, true);
|
|
25401
|
+
_context3.next = 11;
|
|
25402
|
+
break;
|
|
25403
|
+
case 10:
|
|
25404
|
+
form.setFieldVisible(name, false);
|
|
25405
|
+
case 11:
|
|
25406
|
+
case "end":
|
|
25407
|
+
return _context3.stop();
|
|
25317
25408
|
}
|
|
25318
25409
|
}, _callee3);
|
|
25319
25410
|
}));
|
|
@@ -25502,66 +25593,64 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
25502
25593
|
var _ref$current4, _res$editableStatus;
|
|
25503
25594
|
var res, _res$defaultValue;
|
|
25504
25595
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
25505
|
-
while (1) {
|
|
25506
|
-
|
|
25507
|
-
|
|
25508
|
-
|
|
25509
|
-
|
|
25510
|
-
|
|
25511
|
-
|
|
25512
|
-
|
|
25513
|
-
|
|
25514
|
-
|
|
25515
|
-
res.
|
|
25516
|
-
|
|
25517
|
-
|
|
25518
|
-
|
|
25519
|
-
|
|
25520
|
-
|
|
25521
|
-
|
|
25522
|
-
|
|
25523
|
-
|
|
25524
|
-
|
|
25525
|
-
|
|
25526
|
-
|
|
25596
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
25597
|
+
case 0:
|
|
25598
|
+
_context4.next = 2;
|
|
25599
|
+
return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
|
|
25600
|
+
case 2:
|
|
25601
|
+
res = _context4.sent;
|
|
25602
|
+
res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
|
|
25603
|
+
res.fieldGroup = record.fieldGroup;
|
|
25604
|
+
res.businessType = record.businessType;
|
|
25605
|
+
res.info = {
|
|
25606
|
+
enumeration: res.enumeration,
|
|
25607
|
+
dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
|
|
25608
|
+
formula: res.formula,
|
|
25609
|
+
scale: res.scale,
|
|
25610
|
+
variable: res.variable
|
|
25611
|
+
};
|
|
25612
|
+
res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
|
|
25613
|
+
res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
|
|
25614
|
+
res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
|
|
25615
|
+
if (res.inputType === 40) {
|
|
25616
|
+
res.valueType = 22;
|
|
25617
|
+
}
|
|
25618
|
+
// 把数组处理成文本
|
|
25619
|
+
if (res.inputType === 30) {
|
|
25620
|
+
if (res.defaultValue) {
|
|
25621
|
+
res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
|
|
25527
25622
|
}
|
|
25528
|
-
|
|
25529
|
-
|
|
25530
|
-
|
|
25531
|
-
|
|
25532
|
-
|
|
25623
|
+
}
|
|
25624
|
+
res.fieldMapping = res.fieldMapping || '';
|
|
25625
|
+
delete res.formula;
|
|
25626
|
+
delete res.showValue;
|
|
25627
|
+
if (!(mode === 'create')) {
|
|
25628
|
+
_context4.next = 18;
|
|
25629
|
+
break;
|
|
25630
|
+
}
|
|
25631
|
+
bssula.request({
|
|
25632
|
+
url: "/basic/flow/businessField",
|
|
25633
|
+
method: 'POST',
|
|
25634
|
+
params: res,
|
|
25635
|
+
successMessage: '创建成功!',
|
|
25636
|
+
converter: function converter() {
|
|
25637
|
+
onParentOk();
|
|
25533
25638
|
}
|
|
25534
|
-
|
|
25535
|
-
|
|
25536
|
-
|
|
25537
|
-
|
|
25538
|
-
|
|
25539
|
-
|
|
25639
|
+
});
|
|
25640
|
+
return _context4.abrupt("return");
|
|
25641
|
+
case 18:
|
|
25642
|
+
bssula.request({
|
|
25643
|
+
url: "/basic/flow/businessField/".concat(record.id),
|
|
25644
|
+
method: 'PATCH',
|
|
25645
|
+
params: res,
|
|
25646
|
+
successMessage: '修改成功!',
|
|
25647
|
+
converter: function converter() {
|
|
25648
|
+
onParentOk();
|
|
25540
25649
|
}
|
|
25541
|
-
|
|
25542
|
-
|
|
25543
|
-
|
|
25544
|
-
|
|
25545
|
-
successMessage: '创建成功!',
|
|
25546
|
-
converter: function converter() {
|
|
25547
|
-
onParentOk();
|
|
25548
|
-
}
|
|
25549
|
-
});
|
|
25550
|
-
return _context4.abrupt("return");
|
|
25551
|
-
case 18:
|
|
25552
|
-
bssula.request({
|
|
25553
|
-
url: "/basic/flow/businessField/".concat(record.id),
|
|
25554
|
-
method: 'PATCH',
|
|
25555
|
-
params: res,
|
|
25556
|
-
successMessage: '修改成功!',
|
|
25557
|
-
converter: function converter() {
|
|
25558
|
-
onParentOk();
|
|
25559
|
-
}
|
|
25560
|
-
});
|
|
25561
|
-
case 19:
|
|
25562
|
-
case "end":
|
|
25563
|
-
return _context4.stop();
|
|
25564
|
-
}
|
|
25650
|
+
});
|
|
25651
|
+
case 19:
|
|
25652
|
+
case "end":
|
|
25653
|
+
return _context4.stop();
|
|
25565
25654
|
}
|
|
25566
25655
|
}, _callee4);
|
|
25567
25656
|
}));
|
|
@@ -26346,28 +26435,26 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
26346
26435
|
React.useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
26347
26436
|
var resData, data;
|
|
26348
26437
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26349
|
-
while (1) {
|
|
26350
|
-
|
|
26351
|
-
|
|
26352
|
-
|
|
26353
|
-
|
|
26354
|
-
|
|
26355
|
-
|
|
26356
|
-
|
|
26357
|
-
|
|
26358
|
-
|
|
26359
|
-
|
|
26360
|
-
|
|
26361
|
-
|
|
26362
|
-
|
|
26363
|
-
|
|
26364
|
-
|
|
26365
|
-
|
|
26366
|
-
|
|
26367
|
-
|
|
26368
|
-
|
|
26369
|
-
return _context.stop();
|
|
26370
|
-
}
|
|
26438
|
+
while (1) switch (_context.prev = _context.next) {
|
|
26439
|
+
case 0:
|
|
26440
|
+
if (!(!source && initRequestSource)) {
|
|
26441
|
+
_context.next = 6;
|
|
26442
|
+
break;
|
|
26443
|
+
}
|
|
26444
|
+
_context.next = 3;
|
|
26445
|
+
return initRequestSource();
|
|
26446
|
+
case 3:
|
|
26447
|
+
resData = _context.sent;
|
|
26448
|
+
data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
|
|
26449
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
26450
|
+
label: item.text,
|
|
26451
|
+
isLeaf: false
|
|
26452
|
+
});
|
|
26453
|
+
})) || [];
|
|
26454
|
+
setHandSource(data);
|
|
26455
|
+
case 6:
|
|
26456
|
+
case "end":
|
|
26457
|
+
return _context.stop();
|
|
26371
26458
|
}
|
|
26372
26459
|
}, _callee);
|
|
26373
26460
|
})), []);
|
|
@@ -26499,20 +26586,18 @@ function getRegularThresholdRange(_x) {
|
|
|
26499
26586
|
function _getRegularThresholdRange() {
|
|
26500
26587
|
_getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
26501
26588
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26502
|
-
while (1) {
|
|
26503
|
-
|
|
26504
|
-
|
|
26505
|
-
|
|
26506
|
-
|
|
26507
|
-
|
|
26508
|
-
|
|
26509
|
-
|
|
26510
|
-
|
|
26511
|
-
|
|
26512
|
-
|
|
26513
|
-
|
|
26514
|
-
return _context.stop();
|
|
26515
|
-
}
|
|
26589
|
+
while (1) switch (_context.prev = _context.next) {
|
|
26590
|
+
case 0:
|
|
26591
|
+
return _context.abrupt("return", axios__default['default']({
|
|
26592
|
+
url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
|
|
26593
|
+
method: 'POST',
|
|
26594
|
+
data: _objectSpread2(_objectSpread2({}, params), {}, {
|
|
26595
|
+
queryIdentify: undefined
|
|
26596
|
+
})
|
|
26597
|
+
}));
|
|
26598
|
+
case 1:
|
|
26599
|
+
case "end":
|
|
26600
|
+
return _context.stop();
|
|
26516
26601
|
}
|
|
26517
26602
|
}, _callee);
|
|
26518
26603
|
}));
|
|
@@ -26651,137 +26736,134 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26651
26736
|
_this.getRegularThresholdRange(queryIdentify, propertyCode, queryIdentifyType);
|
|
26652
26737
|
});
|
|
26653
26738
|
};
|
|
26739
|
+
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
26654
26740
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
26655
26741
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
26656
26742
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
26657
26743
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26658
|
-
while (1) {
|
|
26659
|
-
|
|
26660
|
-
|
|
26661
|
-
|
|
26662
|
-
_context.next = 2;
|
|
26663
|
-
break;
|
|
26664
|
-
}
|
|
26665
|
-
return _context.abrupt("return");
|
|
26666
|
-
case 2:
|
|
26667
|
-
thresholdQuery = _this.state.thresholdQuery;
|
|
26668
|
-
extraRequestUrl = '';
|
|
26669
|
-
querParams = setParams(propertyCode, thresholdQuery);
|
|
26670
|
-
if (!queryIdentityInfo.find(function (item) {
|
|
26671
|
-
return item.identity == propertyCode;
|
|
26672
|
-
})) {
|
|
26673
|
-
_context.next = 10;
|
|
26674
|
-
break;
|
|
26675
|
-
}
|
|
26676
|
-
//判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
|
|
26677
|
-
needQueryList = queryIdentityInfo.find(function (item) {
|
|
26678
|
-
return item.identity == propertyCode;
|
|
26679
|
-
}).queryParam.filter(function (item) {
|
|
26680
|
-
return item.isRequired;
|
|
26681
|
-
}).map(function (item) {
|
|
26682
|
-
return item.queryKey;
|
|
26683
|
-
});
|
|
26684
|
-
if (!needQueryList.some(function (item) {
|
|
26685
|
-
return !querParams[item] || !querParams[item].length;
|
|
26686
|
-
})) {
|
|
26687
|
-
_context.next = 9;
|
|
26688
|
-
break;
|
|
26689
|
-
}
|
|
26690
|
-
return _context.abrupt("return");
|
|
26691
|
-
case 9:
|
|
26692
|
-
extraRequestUrl = queryIdentityInfo.find(function (item) {
|
|
26693
|
-
return item.identity == propertyCode;
|
|
26694
|
-
}).requestUrl || '';
|
|
26695
|
-
case 10:
|
|
26696
|
-
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
26697
|
-
extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
|
|
26698
|
-
querParams = {
|
|
26699
|
-
dictCode: queryIdentify
|
|
26700
|
-
};
|
|
26701
|
-
} else if (queryIdentifyType === 'dynamicDictCodeIdentify') {
|
|
26702
|
-
extraRequestUrl = "dictDynamicItem/getDynamicData/".concat(queryIdentify); // 字典接口
|
|
26703
|
-
// querParams = { dictCode: queryIdentify }
|
|
26704
|
-
}
|
|
26705
|
-
if (!extraRequestUrl) {
|
|
26706
|
-
_context.next = 16;
|
|
26707
|
-
break;
|
|
26708
|
-
}
|
|
26709
|
-
if (queryIdentify == 'maintain_area_code') {
|
|
26710
|
-
extraRequestUrl = "/basic/".concat(extraRequestUrl).concat(querParams.memberCardCode, "?").concat(querystring.stringify(querParams));
|
|
26711
|
-
} else if (queryIdentifyType == 'dictCodeIdentify') {
|
|
26712
|
-
extraRequestUrl = "/basic/".concat(extraRequestUrl, "?").concat(querystring.stringify(querParams));
|
|
26713
|
-
} else if (queryIdentifyType == 'dynamicDictCodeIdentify') {
|
|
26714
|
-
extraRequestUrl = "/basic/".concat(extraRequestUrl);
|
|
26715
|
-
}
|
|
26716
|
-
bssula.request({
|
|
26717
|
-
url: extraRequestUrl,
|
|
26718
|
-
method: 'get',
|
|
26719
|
-
converter: function converter(res) {
|
|
26720
|
-
if (handleError(res)) {
|
|
26721
|
-
var _handleData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
26722
|
-
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
26723
|
-
var _handleData2;
|
|
26724
|
-
_handleData = ((_handleData2 = _handleData) === null || _handleData2 === void 0 ? void 0 : _handleData2.length) ? _handleData.map(function (i) {
|
|
26725
|
-
return {
|
|
26726
|
-
code: i.dictItemCode,
|
|
26727
|
-
name: i.dictItemName
|
|
26728
|
-
};
|
|
26729
|
-
}) : [];
|
|
26730
|
-
}
|
|
26731
|
-
if (queryIdentifyType === 'dynamicDictCodeIdentify') {
|
|
26732
|
-
var _handleData3;
|
|
26733
|
-
_handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
|
|
26734
|
-
return {
|
|
26735
|
-
code: i.code.toString(),
|
|
26736
|
-
name: i.name
|
|
26737
|
-
};
|
|
26738
|
-
}) : [];
|
|
26739
|
-
}
|
|
26740
|
-
_this.setState({
|
|
26741
|
-
thresholdList: _handleData
|
|
26742
|
-
});
|
|
26743
|
-
}
|
|
26744
|
-
return handleData;
|
|
26745
|
-
}
|
|
26746
|
-
});
|
|
26747
|
-
_context.next = 29;
|
|
26744
|
+
while (1) switch (_context.prev = _context.next) {
|
|
26745
|
+
case 0:
|
|
26746
|
+
if (queryIdentify) {
|
|
26747
|
+
_context.next = 2;
|
|
26748
26748
|
break;
|
|
26749
|
-
|
|
26750
|
-
|
|
26751
|
-
|
|
26752
|
-
|
|
26753
|
-
|
|
26754
|
-
|
|
26755
|
-
|
|
26756
|
-
|
|
26757
|
-
|
|
26749
|
+
}
|
|
26750
|
+
return _context.abrupt("return");
|
|
26751
|
+
case 2:
|
|
26752
|
+
thresholdQuery = _this.state.thresholdQuery;
|
|
26753
|
+
extraRequestUrl = '';
|
|
26754
|
+
querParams = setParams(propertyCode, thresholdQuery);
|
|
26755
|
+
if (!queryIdentityInfo.find(function (item) {
|
|
26756
|
+
return item.identity == propertyCode;
|
|
26757
|
+
})) {
|
|
26758
|
+
_context.next = 10;
|
|
26758
26759
|
break;
|
|
26759
|
-
|
|
26760
|
-
|
|
26761
|
-
|
|
26762
|
-
|
|
26763
|
-
|
|
26764
|
-
|
|
26765
|
-
|
|
26766
|
-
|
|
26767
|
-
|
|
26768
|
-
|
|
26760
|
+
}
|
|
26761
|
+
//判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
|
|
26762
|
+
needQueryList = queryIdentityInfo.find(function (item) {
|
|
26763
|
+
return item.identity == propertyCode;
|
|
26764
|
+
}).queryParam.filter(function (item) {
|
|
26765
|
+
return item.isRequired;
|
|
26766
|
+
}).map(function (item) {
|
|
26767
|
+
return item.queryKey;
|
|
26768
|
+
});
|
|
26769
|
+
if (!needQueryList.some(function (item) {
|
|
26770
|
+
return !querParams[item] || !querParams[item].length;
|
|
26771
|
+
})) {
|
|
26772
|
+
_context.next = 9;
|
|
26773
|
+
break;
|
|
26774
|
+
}
|
|
26775
|
+
return _context.abrupt("return");
|
|
26776
|
+
case 9:
|
|
26777
|
+
extraRequestUrl = queryIdentityInfo.find(function (item) {
|
|
26778
|
+
return item.identity == propertyCode;
|
|
26779
|
+
}).requestUrl || '';
|
|
26780
|
+
case 10:
|
|
26781
|
+
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
26782
|
+
extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
|
|
26783
|
+
querParams = {
|
|
26784
|
+
dictCode: queryIdentify
|
|
26785
|
+
};
|
|
26786
|
+
} else if (queryIdentifyType === 'dynamicDictCodeIdentify') {
|
|
26787
|
+
extraRequestUrl = "dictDynamicItem/getDynamicData/".concat(queryIdentify); // 字典接口
|
|
26788
|
+
// querParams = { dictCode: queryIdentify }
|
|
26789
|
+
}
|
|
26790
|
+
if (!extraRequestUrl) {
|
|
26791
|
+
_context.next = 16;
|
|
26769
26792
|
break;
|
|
26770
|
-
|
|
26771
|
-
|
|
26772
|
-
|
|
26773
|
-
|
|
26774
|
-
|
|
26775
|
-
|
|
26776
|
-
|
|
26793
|
+
}
|
|
26794
|
+
if (queryIdentify == 'maintain_area_code') {
|
|
26795
|
+
extraRequestUrl = "/basic/".concat(extraRequestUrl).concat(querParams.memberCardCode, "?").concat(querystring.stringify(querParams));
|
|
26796
|
+
} else if (queryIdentifyType == 'dictCodeIdentify') {
|
|
26797
|
+
extraRequestUrl = "/basic/".concat(extraRequestUrl, "?").concat(querystring.stringify(querParams));
|
|
26798
|
+
} else if (queryIdentifyType == 'dynamicDictCodeIdentify') {
|
|
26799
|
+
extraRequestUrl = "/basic/".concat(extraRequestUrl);
|
|
26800
|
+
}
|
|
26801
|
+
bssula.request({
|
|
26802
|
+
url: extraRequestUrl,
|
|
26803
|
+
method: 'get',
|
|
26804
|
+
converter: function converter(res) {
|
|
26805
|
+
var handleData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
26806
|
+
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
26807
|
+
var _handleData;
|
|
26808
|
+
handleData = ((_handleData = handleData) === null || _handleData === void 0 ? void 0 : _handleData.length) ? handleData.map(function (i) {
|
|
26809
|
+
return {
|
|
26810
|
+
code: i.dictItemCode,
|
|
26811
|
+
name: i.dictItemName
|
|
26812
|
+
};
|
|
26813
|
+
}) : [];
|
|
26814
|
+
}
|
|
26815
|
+
if (queryIdentifyType === 'dynamicDictCodeIdentify') {
|
|
26816
|
+
var _handleData2;
|
|
26817
|
+
handleData = ((_handleData2 = handleData) === null || _handleData2 === void 0 ? void 0 : _handleData2.length) ? handleData.map(function (i) {
|
|
26818
|
+
return {
|
|
26819
|
+
code: i.code.toString(),
|
|
26820
|
+
name: i.name
|
|
26821
|
+
};
|
|
26822
|
+
}) : [];
|
|
26823
|
+
}
|
|
26777
26824
|
_this.setState({
|
|
26778
|
-
thresholdList:
|
|
26825
|
+
thresholdList: handleData
|
|
26779
26826
|
});
|
|
26827
|
+
return handleData;
|
|
26780
26828
|
}
|
|
26781
|
-
|
|
26782
|
-
|
|
26783
|
-
|
|
26784
|
-
|
|
26829
|
+
});
|
|
26830
|
+
_context.next = 29;
|
|
26831
|
+
break;
|
|
26832
|
+
case 16:
|
|
26833
|
+
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
26834
|
+
_context.next = 20;
|
|
26835
|
+
break;
|
|
26836
|
+
}
|
|
26837
|
+
_this.setState({
|
|
26838
|
+
thresholdList: queryIdentify
|
|
26839
|
+
});
|
|
26840
|
+
_context.next = 29;
|
|
26841
|
+
break;
|
|
26842
|
+
case 20:
|
|
26843
|
+
if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
|
|
26844
|
+
_context.next = 24;
|
|
26845
|
+
break;
|
|
26846
|
+
}
|
|
26847
|
+
// TODO待处理
|
|
26848
|
+
_this.setState({
|
|
26849
|
+
thresholdList: []
|
|
26850
|
+
});
|
|
26851
|
+
_context.next = 29;
|
|
26852
|
+
break;
|
|
26853
|
+
case 24:
|
|
26854
|
+
querParams.queryIdentify = queryIdentify;
|
|
26855
|
+
_context.next = 27;
|
|
26856
|
+
return getRegularThresholdRange(querParams);
|
|
26857
|
+
case 27:
|
|
26858
|
+
res = _context.sent;
|
|
26859
|
+
if (handleError(res)) {
|
|
26860
|
+
_this.setState({
|
|
26861
|
+
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
26862
|
+
});
|
|
26863
|
+
}
|
|
26864
|
+
case 29:
|
|
26865
|
+
case "end":
|
|
26866
|
+
return _context.stop();
|
|
26785
26867
|
}
|
|
26786
26868
|
}, _callee);
|
|
26787
26869
|
}));
|
|
@@ -27600,32 +27682,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27600
27682
|
notChangeOnSelect: true,
|
|
27601
27683
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
27602
27684
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
27603
|
-
while (1) {
|
|
27604
|
-
|
|
27605
|
-
|
|
27606
|
-
|
|
27607
|
-
|
|
27608
|
-
|
|
27609
|
-
|
|
27610
|
-
|
|
27611
|
-
|
|
27612
|
-
|
|
27613
|
-
|
|
27614
|
-
|
|
27615
|
-
|
|
27616
|
-
|
|
27617
|
-
|
|
27618
|
-
|
|
27619
|
-
|
|
27620
|
-
|
|
27621
|
-
|
|
27622
|
-
|
|
27623
|
-
|
|
27624
|
-
|
|
27625
|
-
|
|
27626
|
-
|
|
27627
|
-
return _context2.stop();
|
|
27628
|
-
}
|
|
27685
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
27686
|
+
case 0:
|
|
27687
|
+
_context2.next = 2;
|
|
27688
|
+
return bssula.request({
|
|
27689
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
27690
|
+
method: 'get',
|
|
27691
|
+
converter: function converter(_ref3) {
|
|
27692
|
+
var data = _ref3.data;
|
|
27693
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27694
|
+
return {
|
|
27695
|
+
text: item.name,
|
|
27696
|
+
value: item.id,
|
|
27697
|
+
level: item.level,
|
|
27698
|
+
id: item.id
|
|
27699
|
+
};
|
|
27700
|
+
}) : [];
|
|
27701
|
+
return handleData;
|
|
27702
|
+
}
|
|
27703
|
+
});
|
|
27704
|
+
case 2:
|
|
27705
|
+
return _context2.abrupt("return", _context2.sent);
|
|
27706
|
+
case 3:
|
|
27707
|
+
case "end":
|
|
27708
|
+
return _context2.stop();
|
|
27629
27709
|
}
|
|
27630
27710
|
}, _callee2);
|
|
27631
27711
|
})),
|
|
@@ -27651,32 +27731,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27651
27731
|
notChangeOnSelect: true,
|
|
27652
27732
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
27653
27733
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
27654
|
-
while (1) {
|
|
27655
|
-
|
|
27656
|
-
|
|
27657
|
-
|
|
27658
|
-
|
|
27659
|
-
|
|
27660
|
-
|
|
27661
|
-
|
|
27662
|
-
|
|
27663
|
-
|
|
27664
|
-
|
|
27665
|
-
|
|
27666
|
-
|
|
27667
|
-
|
|
27668
|
-
|
|
27669
|
-
|
|
27670
|
-
|
|
27671
|
-
|
|
27672
|
-
|
|
27673
|
-
|
|
27674
|
-
|
|
27675
|
-
|
|
27676
|
-
|
|
27677
|
-
|
|
27678
|
-
return _context3.stop();
|
|
27679
|
-
}
|
|
27734
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
27735
|
+
case 0:
|
|
27736
|
+
_context3.next = 2;
|
|
27737
|
+
return bssula.request({
|
|
27738
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
27739
|
+
method: 'get',
|
|
27740
|
+
converter: function converter(_ref5) {
|
|
27741
|
+
var data = _ref5.data;
|
|
27742
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27743
|
+
return {
|
|
27744
|
+
text: item.name,
|
|
27745
|
+
value: item.id,
|
|
27746
|
+
level: item.level,
|
|
27747
|
+
id: item.id
|
|
27748
|
+
};
|
|
27749
|
+
}) : [];
|
|
27750
|
+
return handleData;
|
|
27751
|
+
}
|
|
27752
|
+
});
|
|
27753
|
+
case 2:
|
|
27754
|
+
return _context3.abrupt("return", _context3.sent);
|
|
27755
|
+
case 3:
|
|
27756
|
+
case "end":
|
|
27757
|
+
return _context3.stop();
|
|
27680
27758
|
}
|
|
27681
27759
|
}, _callee3);
|
|
27682
27760
|
})),
|
|
@@ -27704,32 +27782,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27704
27782
|
notChangeOnSelect: true,
|
|
27705
27783
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
27706
27784
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
27707
|
-
while (1) {
|
|
27708
|
-
|
|
27709
|
-
|
|
27710
|
-
|
|
27711
|
-
|
|
27712
|
-
|
|
27713
|
-
|
|
27714
|
-
|
|
27715
|
-
|
|
27716
|
-
|
|
27717
|
-
|
|
27718
|
-
|
|
27719
|
-
|
|
27720
|
-
|
|
27721
|
-
|
|
27722
|
-
|
|
27723
|
-
|
|
27724
|
-
|
|
27725
|
-
|
|
27726
|
-
|
|
27727
|
-
|
|
27728
|
-
|
|
27729
|
-
|
|
27730
|
-
|
|
27731
|
-
return _context4.stop();
|
|
27732
|
-
}
|
|
27785
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
27786
|
+
case 0:
|
|
27787
|
+
_context4.next = 2;
|
|
27788
|
+
return bssula.request({
|
|
27789
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
27790
|
+
method: 'get',
|
|
27791
|
+
converter: function converter(_ref7) {
|
|
27792
|
+
var data = _ref7.data;
|
|
27793
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27794
|
+
return {
|
|
27795
|
+
text: item.name,
|
|
27796
|
+
value: item.id,
|
|
27797
|
+
level: item.level,
|
|
27798
|
+
id: item.id
|
|
27799
|
+
};
|
|
27800
|
+
}) : [];
|
|
27801
|
+
return handleData;
|
|
27802
|
+
}
|
|
27803
|
+
});
|
|
27804
|
+
case 2:
|
|
27805
|
+
return _context4.abrupt("return", _context4.sent);
|
|
27806
|
+
case 3:
|
|
27807
|
+
case "end":
|
|
27808
|
+
return _context4.stop();
|
|
27733
27809
|
}
|
|
27734
27810
|
}, _callee4);
|
|
27735
27811
|
})),
|
|
@@ -28526,6 +28602,86 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
28526
28602
|
});
|
|
28527
28603
|
}
|
|
28528
28604
|
}
|
|
28605
|
+
// 结算组织选择器
|
|
28606
|
+
if (dataChoiceBusinessType == 290) {
|
|
28607
|
+
if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
|
|
28608
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
28609
|
+
disabled: disabled,
|
|
28610
|
+
treeCheckable: dataInputBusinessType === 12,
|
|
28611
|
+
businessType: "settle-organization",
|
|
28612
|
+
labelInValue: true,
|
|
28613
|
+
value: values[0],
|
|
28614
|
+
style: styleCommon,
|
|
28615
|
+
onChange: function onChange(value) {
|
|
28616
|
+
if (dataInputBusinessType === 12) {
|
|
28617
|
+
values[0] = value.map(function (i) {
|
|
28618
|
+
return i.key;
|
|
28619
|
+
});
|
|
28620
|
+
valueNames[0] = value.map(function (i) {
|
|
28621
|
+
return i.label || '';
|
|
28622
|
+
});
|
|
28623
|
+
} else {
|
|
28624
|
+
values[0] = [value.key];
|
|
28625
|
+
valueNames[0] = [value.label || ''];
|
|
28626
|
+
}
|
|
28627
|
+
callback(values, valueNames);
|
|
28628
|
+
},
|
|
28629
|
+
getPopupContainer: function getPopupContainer() {
|
|
28630
|
+
return document.body;
|
|
28631
|
+
}
|
|
28632
|
+
}), /*#__PURE__*/React__default['default'].createElement("span", null, "~"), /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
28633
|
+
disabled: disabled,
|
|
28634
|
+
treeCheckable: dataInputBusinessType === 12,
|
|
28635
|
+
businessType: "settle-organization",
|
|
28636
|
+
labelInValue: true,
|
|
28637
|
+
value: values[0],
|
|
28638
|
+
style: styleCommon,
|
|
28639
|
+
onChange: function onChange(value) {
|
|
28640
|
+
if (dataInputBusinessType === 12) {
|
|
28641
|
+
values[1] = value.map(function (i) {
|
|
28642
|
+
return i.key;
|
|
28643
|
+
});
|
|
28644
|
+
valueNames[1] = value.map(function (i) {
|
|
28645
|
+
return i.label || '';
|
|
28646
|
+
});
|
|
28647
|
+
} else {
|
|
28648
|
+
values[1] = [value.key];
|
|
28649
|
+
valueNames[1] = [value.label || ''];
|
|
28650
|
+
}
|
|
28651
|
+
callback(values, valueNames);
|
|
28652
|
+
},
|
|
28653
|
+
getPopupContainer: function getPopupContainer() {
|
|
28654
|
+
return document.body;
|
|
28655
|
+
}
|
|
28656
|
+
}));
|
|
28657
|
+
} else {
|
|
28658
|
+
return /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
28659
|
+
disabled: disabled,
|
|
28660
|
+
treeCheckable: dataInputBusinessType === 12,
|
|
28661
|
+
businessType: "settle-organization",
|
|
28662
|
+
labelInValue: true,
|
|
28663
|
+
value: values[0],
|
|
28664
|
+
style: styleCommon,
|
|
28665
|
+
onChange: function onChange(value) {
|
|
28666
|
+
if (dataInputBusinessType === 12) {
|
|
28667
|
+
values = value.map(function (i) {
|
|
28668
|
+
return i.key;
|
|
28669
|
+
}) || [];
|
|
28670
|
+
valueNames = value.map(function (i) {
|
|
28671
|
+
return i.label || '';
|
|
28672
|
+
}) || [];
|
|
28673
|
+
} else {
|
|
28674
|
+
values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
|
|
28675
|
+
valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
|
|
28676
|
+
}
|
|
28677
|
+
callback(values, valueNames);
|
|
28678
|
+
},
|
|
28679
|
+
getPopupContainer: function getPopupContainer() {
|
|
28680
|
+
return document.body;
|
|
28681
|
+
}
|
|
28682
|
+
});
|
|
28683
|
+
}
|
|
28684
|
+
}
|
|
28529
28685
|
// 配送方式选择器
|
|
28530
28686
|
if (dataChoiceBusinessType == 310) {
|
|
28531
28687
|
if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
|
|
@@ -28640,6 +28796,120 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
28640
28796
|
});
|
|
28641
28797
|
}
|
|
28642
28798
|
}
|
|
28799
|
+
// 角色选择器
|
|
28800
|
+
if (dataChoiceBusinessType == 360) {
|
|
28801
|
+
if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
|
|
28802
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
28803
|
+
selectBusinessType: "role",
|
|
28804
|
+
selectProps: _objectSpread2({
|
|
28805
|
+
style: styleCommon,
|
|
28806
|
+
placeholder: '请选择角色'
|
|
28807
|
+
}, dataInputBusinessType === 12 ? {
|
|
28808
|
+
mode: 'multiple',
|
|
28809
|
+
maxTagCount: 1
|
|
28810
|
+
} : {}),
|
|
28811
|
+
disabled: disabled,
|
|
28812
|
+
labelInValue: true,
|
|
28813
|
+
value: values[0],
|
|
28814
|
+
requestConfig: {
|
|
28815
|
+
filterInit: 'qp-code-in'
|
|
28816
|
+
},
|
|
28817
|
+
onChange: function onChange(value) {
|
|
28818
|
+
if (dataInputBusinessType === 12) {
|
|
28819
|
+
values[0] = value.map(function (i) {
|
|
28820
|
+
return i.key;
|
|
28821
|
+
});
|
|
28822
|
+
valueNames[0] = value.map(function (i) {
|
|
28823
|
+
return i.label || '';
|
|
28824
|
+
});
|
|
28825
|
+
} else {
|
|
28826
|
+
values[0] = [value.key];
|
|
28827
|
+
valueNames[0] = [value.label || ''];
|
|
28828
|
+
}
|
|
28829
|
+
callback(values, valueNames);
|
|
28830
|
+
},
|
|
28831
|
+
getPopupContainer: function getPopupContainer() {
|
|
28832
|
+
return document.body;
|
|
28833
|
+
}
|
|
28834
|
+
}), /*#__PURE__*/React__default['default'].createElement("span", null, "~"), /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
28835
|
+
selectBusinessType: "role",
|
|
28836
|
+
selectProps: _objectSpread2({
|
|
28837
|
+
style: styleCommon,
|
|
28838
|
+
placeholder: '请选择角色'
|
|
28839
|
+
}, dataInputBusinessType === 12 ? {
|
|
28840
|
+
mode: 'multiple',
|
|
28841
|
+
maxTagCount: 1
|
|
28842
|
+
} : {}),
|
|
28843
|
+
disabled: disabled,
|
|
28844
|
+
labelInValue: true,
|
|
28845
|
+
value: values[1],
|
|
28846
|
+
requestConfig: {
|
|
28847
|
+
filterInit: 'qp-code-in'
|
|
28848
|
+
},
|
|
28849
|
+
onChange: function onChange(value) {
|
|
28850
|
+
if (dataInputBusinessType === 12) {
|
|
28851
|
+
values[1] = value.map(function (i) {
|
|
28852
|
+
return i.key;
|
|
28853
|
+
});
|
|
28854
|
+
valueNames[1] = value.map(function (i) {
|
|
28855
|
+
return i.label || '';
|
|
28856
|
+
});
|
|
28857
|
+
} else {
|
|
28858
|
+
values[1] = [value.key];
|
|
28859
|
+
valueNames[1] = [value.label || ''];
|
|
28860
|
+
}
|
|
28861
|
+
callback(values, valueNames);
|
|
28862
|
+
},
|
|
28863
|
+
getPopupContainer: function getPopupContainer() {
|
|
28864
|
+
return document.body;
|
|
28865
|
+
}
|
|
28866
|
+
}));
|
|
28867
|
+
} else {
|
|
28868
|
+
var _values12;
|
|
28869
|
+
var _currentValue11 = dataInputBusinessType === 12 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
|
|
28870
|
+
return {
|
|
28871
|
+
key: s,
|
|
28872
|
+
label: valueNames[vIndex]
|
|
28873
|
+
};
|
|
28874
|
+
})) || [] : values[0] && {
|
|
28875
|
+
key: values[0],
|
|
28876
|
+
label: valueNames[0]
|
|
28877
|
+
} || {};
|
|
28878
|
+
return /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
28879
|
+
selectBusinessType: "role",
|
|
28880
|
+
selectProps: _objectSpread2({
|
|
28881
|
+
style: styleCommon,
|
|
28882
|
+
placeholder: '请选择角色'
|
|
28883
|
+
}, dataInputBusinessType === 12 ? {
|
|
28884
|
+
mode: 'multiple',
|
|
28885
|
+
maxTagCount: 1
|
|
28886
|
+
} : {}),
|
|
28887
|
+
disabled: disabled,
|
|
28888
|
+
labelInValue: true,
|
|
28889
|
+
value: _currentValue11,
|
|
28890
|
+
requestConfig: {
|
|
28891
|
+
filterInit: 'qp-code-in'
|
|
28892
|
+
},
|
|
28893
|
+
onChange: function onChange(value) {
|
|
28894
|
+
if (dataInputBusinessType === 12) {
|
|
28895
|
+
values = value.map(function (i) {
|
|
28896
|
+
return i.key;
|
|
28897
|
+
}) || [];
|
|
28898
|
+
valueNames = value.map(function (i) {
|
|
28899
|
+
return i.label || '';
|
|
28900
|
+
}) || [];
|
|
28901
|
+
} else {
|
|
28902
|
+
values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
|
|
28903
|
+
valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
|
|
28904
|
+
}
|
|
28905
|
+
callback(values, valueNames);
|
|
28906
|
+
},
|
|
28907
|
+
getPopupContainer: function getPopupContainer() {
|
|
28908
|
+
return document.body;
|
|
28909
|
+
}
|
|
28910
|
+
});
|
|
28911
|
+
}
|
|
28912
|
+
}
|
|
28643
28913
|
} else {
|
|
28644
28914
|
if (dataTypeCode == 22 || dataTypeCode == 21 || dataTypeCode == 24 || dataTypeCode == 23) {
|
|
28645
28915
|
//数值22, 字符串21, 布尔类型24, long23
|
|
@@ -28846,8 +29116,6 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
28846
29116
|
});
|
|
28847
29117
|
}
|
|
28848
29118
|
}
|
|
28849
|
-
|
|
28850
|
-
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
28851
29119
|
}, {
|
|
28852
29120
|
key: "render",
|
|
28853
29121
|
value: function render() {
|
|
@@ -29325,6 +29593,54 @@ var RuleField$1 = /*#__PURE__*/function (_Component) {
|
|
|
29325
29593
|
return RuleField;
|
|
29326
29594
|
}(React.Component);
|
|
29327
29595
|
|
|
29596
|
+
var InnerSelect = (function (props) {
|
|
29597
|
+
var disabled = props.disabled,
|
|
29598
|
+
inputType = props.inputType,
|
|
29599
|
+
defaultValue = props.defaultValue,
|
|
29600
|
+
styleCommon = props.styleCommon,
|
|
29601
|
+
value = props.value,
|
|
29602
|
+
_onChange = props.onChange,
|
|
29603
|
+
dictionaryCode = props.dictionaryCode;
|
|
29604
|
+
var _useState = React.useState(getDictionarySource(dictionaryCode !== null && dictionaryCode !== void 0 ? dictionaryCode : '') || []),
|
|
29605
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
29606
|
+
dataSource = _useState2[0],
|
|
29607
|
+
setDataSource = _useState2[1];
|
|
29608
|
+
React.useEffect(function () {
|
|
29609
|
+
if (!!dictionaryCode && !getDictionarySource(dictionaryCode)) {
|
|
29610
|
+
bssula.request({
|
|
29611
|
+
url: "/basic/bscDictItem/allItemList?qp-code-eq=".concat(dictionaryCode),
|
|
29612
|
+
method: 'get',
|
|
29613
|
+
converter: function converter(_ref) {
|
|
29614
|
+
var _data$map;
|
|
29615
|
+
var data = _ref.data;
|
|
29616
|
+
var dataList = (data === null || data === void 0 ? void 0 : (_data$map = data.map) === null || _data$map === void 0 ? void 0 : _data$map.call(data, function (item) {
|
|
29617
|
+
return {
|
|
29618
|
+
label: item.dictItemName,
|
|
29619
|
+
value: item.dictItemCode
|
|
29620
|
+
};
|
|
29621
|
+
})) || [];
|
|
29622
|
+
setDataSource(dataList);
|
|
29623
|
+
return dataList;
|
|
29624
|
+
}
|
|
29625
|
+
});
|
|
29626
|
+
}
|
|
29627
|
+
}, [dictionaryCode]);
|
|
29628
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({
|
|
29629
|
+
disabled: disabled
|
|
29630
|
+
}, inputType === 30 ? {
|
|
29631
|
+
mode: 'multiple'
|
|
29632
|
+
} : {}), {}, {
|
|
29633
|
+
defaultValue: defaultValue,
|
|
29634
|
+
style: styleCommon,
|
|
29635
|
+
value: value === null || value === void 0 ? void 0 : value.split(','),
|
|
29636
|
+
onChange: function onChange(changeValue) {
|
|
29637
|
+
_onChange(changeValue);
|
|
29638
|
+
// handleEdit(ites.code, value);
|
|
29639
|
+
},
|
|
29640
|
+
options: dataSource
|
|
29641
|
+
}));
|
|
29642
|
+
});
|
|
29643
|
+
|
|
29328
29644
|
var RangePicker$1 = antd.DatePicker.RangePicker;
|
|
29329
29645
|
var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
29330
29646
|
_inherits(RuleObjectComponent, _Component);
|
|
@@ -29678,6 +29994,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29678
29994
|
callBack(ruleClassData);
|
|
29679
29995
|
});
|
|
29680
29996
|
};
|
|
29997
|
+
// 树结构 转化成 平行树 (递归函数)
|
|
29681
29998
|
_this.coverToParallel = function (treeData, result) {
|
|
29682
29999
|
treeData.forEach(function (el) {
|
|
29683
30000
|
result.push(el);
|
|
@@ -29741,18 +30058,18 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29741
30058
|
onClick: function onClick() {
|
|
29742
30059
|
_this.handleLogicalTypeChange(itemDetail, 'or');
|
|
29743
30060
|
}
|
|
29744
|
-
}, "
|
|
30061
|
+
}, "\u6216\u8005"), /*#__PURE__*/React__default['default'].createElement("p", {
|
|
29745
30062
|
className: 'choose_logical_type',
|
|
29746
30063
|
onClick: function onClick() {
|
|
29747
30064
|
_this.handleLogicalTypeChange(itemDetail, 'and');
|
|
29748
30065
|
}
|
|
29749
|
-
}, "
|
|
30066
|
+
}, "\u5E76\u4E14")),
|
|
29750
30067
|
trigger: "focus"
|
|
29751
30068
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
29752
30069
|
disabled: disabled,
|
|
29753
30070
|
type: "link",
|
|
29754
30071
|
className: 'logical_item_btn'
|
|
29755
|
-
}, (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.operationCode) == 'or' ? '
|
|
30072
|
+
}, (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.operationCode) == 'or' ? '或者' : '并且', /*#__PURE__*/React__default['default'].createElement(icons.DownOutlined, {
|
|
29756
30073
|
style: {
|
|
29757
30074
|
marginLeft: '6px'
|
|
29758
30075
|
}
|
|
@@ -29933,6 +30250,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29933
30250
|
callBack(ruleClassData);
|
|
29934
30251
|
});
|
|
29935
30252
|
};
|
|
30253
|
+
// 场景需要返回值2022.11.15
|
|
29936
30254
|
_this.renderResItem = function (itemDetail, parentDetail, ruleReturnConfig, classDataIndex, disabled, boxStyle) {
|
|
29937
30255
|
var _ruleReturnConfig$rig;
|
|
29938
30256
|
var isShowResponse = itemDetail.response['enable'];
|
|
@@ -30077,23 +30395,17 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30077
30395
|
key: it,
|
|
30078
30396
|
value: it
|
|
30079
30397
|
}, ites.enumeration[it]);
|
|
30080
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 20 && /*#__PURE__*/React__default['default'].createElement(
|
|
30081
|
-
disabled: disabled
|
|
30082
|
-
|
|
30083
|
-
mode: 'multiple'
|
|
30084
|
-
} : {}, {
|
|
30398
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 20 && /*#__PURE__*/React__default['default'].createElement(InnerSelect, {
|
|
30399
|
+
disabled: disabled,
|
|
30400
|
+
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
30085
30401
|
defaultValue: ites.defaultValue,
|
|
30086
|
-
|
|
30402
|
+
styleCommon: styleCommon,
|
|
30087
30403
|
value: showValue(ites.code),
|
|
30088
30404
|
onChange: function onChange(value) {
|
|
30089
30405
|
handleEdit(ites.code, value);
|
|
30090
|
-
}
|
|
30091
|
-
|
|
30092
|
-
|
|
30093
|
-
key: it.value,
|
|
30094
|
-
value: it.value
|
|
30095
|
-
}, it.text);
|
|
30096
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 110 && /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
30406
|
+
},
|
|
30407
|
+
dictionaryCode: ites.dictionaryCode
|
|
30408
|
+
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 110 && /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
30097
30409
|
selectBusinessType: "physicalWarehouse",
|
|
30098
30410
|
selectProps: _objectSpread2({
|
|
30099
30411
|
style: styleCommon,
|
|
@@ -30230,32 +30542,30 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30230
30542
|
notChangeOnSelect: true,
|
|
30231
30543
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30232
30544
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30233
|
-
while (1) {
|
|
30234
|
-
|
|
30235
|
-
|
|
30236
|
-
|
|
30237
|
-
|
|
30238
|
-
|
|
30239
|
-
|
|
30240
|
-
|
|
30241
|
-
|
|
30242
|
-
|
|
30243
|
-
|
|
30244
|
-
|
|
30245
|
-
|
|
30246
|
-
|
|
30247
|
-
|
|
30248
|
-
|
|
30249
|
-
|
|
30250
|
-
|
|
30251
|
-
|
|
30252
|
-
|
|
30253
|
-
|
|
30254
|
-
|
|
30255
|
-
|
|
30256
|
-
|
|
30257
|
-
return _context.stop();
|
|
30258
|
-
}
|
|
30545
|
+
while (1) switch (_context.prev = _context.next) {
|
|
30546
|
+
case 0:
|
|
30547
|
+
_context.next = 2;
|
|
30548
|
+
return bssula.request({
|
|
30549
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
30550
|
+
method: 'get',
|
|
30551
|
+
converter: function converter(_ref2) {
|
|
30552
|
+
var data = _ref2.data;
|
|
30553
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
30554
|
+
return {
|
|
30555
|
+
text: item.name,
|
|
30556
|
+
value: item.id,
|
|
30557
|
+
level: item.level,
|
|
30558
|
+
id: item.id
|
|
30559
|
+
};
|
|
30560
|
+
}) : [];
|
|
30561
|
+
return handleData;
|
|
30562
|
+
}
|
|
30563
|
+
});
|
|
30564
|
+
case 2:
|
|
30565
|
+
return _context.abrupt("return", _context.sent);
|
|
30566
|
+
case 3:
|
|
30567
|
+
case "end":
|
|
30568
|
+
return _context.stop();
|
|
30259
30569
|
}
|
|
30260
30570
|
}, _callee);
|
|
30261
30571
|
})),
|
|
@@ -30402,6 +30712,19 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30402
30712
|
getPopupContainer: function getPopupContainer() {
|
|
30403
30713
|
return document.body;
|
|
30404
30714
|
}
|
|
30715
|
+
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 290 && /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
30716
|
+
disabled: disabled,
|
|
30717
|
+
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
30718
|
+
businessType: "settle-organization",
|
|
30719
|
+
labelInValue: true,
|
|
30720
|
+
value: showValue(ites.code),
|
|
30721
|
+
style: styleCommon,
|
|
30722
|
+
onChange: function onChange(value) {
|
|
30723
|
+
handleEdit(ites.code, value);
|
|
30724
|
+
},
|
|
30725
|
+
getPopupContainer: function getPopupContainer() {
|
|
30726
|
+
return document.body;
|
|
30727
|
+
}
|
|
30405
30728
|
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 && /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
30406
30729
|
selectBusinessType: "deliveryMode",
|
|
30407
30730
|
selectProps: _objectSpread2({
|
|
@@ -30589,6 +30912,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30589
30912
|
}
|
|
30590
30913
|
}, "\u65B0\u589E\u8FD4\u56DE\u503C")), isHaveRuleReturnConfig && _this.renderResItem(itemDetail, parentDetail, ruleReturnConfig, classDataIndex, disabled, RuleActionItemStyle) || null, isHaveRuleTypeData && _this.renderActionList(itemDetail, parentDetail, handleRuleTypeData, selectRuleActionData, classDataIndex, disabled, RuleActionItemStyle) || null);
|
|
30591
30914
|
};
|
|
30915
|
+
//添加同一层级条件
|
|
30592
30916
|
_this.addPeerRule = function (itemDetail) {
|
|
30593
30917
|
var ruleClassData = _this.state.ruleClassData;
|
|
30594
30918
|
var _this$props4 = _this.props,
|
|
@@ -30609,6 +30933,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30609
30933
|
callBack(ruleClassData);
|
|
30610
30934
|
});
|
|
30611
30935
|
};
|
|
30936
|
+
//添加子层级条件
|
|
30612
30937
|
_this.addChildRules = function (itemDetail) {
|
|
30613
30938
|
var ruleClassData = _this.state.ruleClassData;
|
|
30614
30939
|
var callBack = _this.props.callBack;
|
|
@@ -30684,6 +31009,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30684
31009
|
callBack(ruleClassData);
|
|
30685
31010
|
});
|
|
30686
31011
|
};
|
|
31012
|
+
// 新增执行顺序
|
|
30687
31013
|
_this.handleSelectRuleAction = function (keys, classDataIndex, callback) {
|
|
30688
31014
|
callback();
|
|
30689
31015
|
var callBack = _this.props.callBack;
|
|
@@ -30840,26 +31166,26 @@ exports.AddSkuSelect = AddSkuSelect;
|
|
|
30840
31166
|
exports.AddSpuSelect = AddSpuSelect;
|
|
30841
31167
|
exports.BillEntry = BillEntry;
|
|
30842
31168
|
exports.BsCascader = BsCascader;
|
|
30843
|
-
exports.BsLayout = index$
|
|
31169
|
+
exports.BsLayout = index$6;
|
|
30844
31170
|
exports.BsSulaQueryTable = BsSulaQueryTable;
|
|
30845
31171
|
exports.BusinessSearchSelect = BusinessSearchSelect$1;
|
|
30846
31172
|
exports.BusinessTreeSearchSelect = BusinessTreeSearchSelect$1;
|
|
30847
|
-
exports.CheckOneUser = index$
|
|
31173
|
+
exports.CheckOneUser = index$2;
|
|
30848
31174
|
exports.ColumnSettingTable = ColumnSettingTable;
|
|
30849
31175
|
exports.CommodityEntry = CommodityEntry;
|
|
30850
31176
|
exports.DataImport = DataImport;
|
|
30851
31177
|
exports.DataValidation = DataValidation;
|
|
30852
|
-
exports.DetailPageWrapper = index$
|
|
31178
|
+
exports.DetailPageWrapper = index$4;
|
|
30853
31179
|
exports.EllipsisTooltip = EllipsisTooltip;
|
|
30854
31180
|
exports.ExportIcon = ExportIcon;
|
|
30855
31181
|
exports.GuideWrapper = GuideWrapper;
|
|
30856
|
-
exports.HomePageWrapper = index$
|
|
31182
|
+
exports.HomePageWrapper = index$5;
|
|
30857
31183
|
exports.JsonQueryTable = JsonQueryTable;
|
|
30858
|
-
exports.MoreTreeTable = index$
|
|
31184
|
+
exports.MoreTreeTable = index$7;
|
|
30859
31185
|
exports.QueryMutipleInput = QueryMutipleInput;
|
|
30860
31186
|
exports.RuleComponent = RuleObjectComponent;
|
|
30861
31187
|
exports.SearchSelect = SearchSelect;
|
|
30862
|
-
exports.StateFlow = index$
|
|
31188
|
+
exports.StateFlow = index$3;
|
|
30863
31189
|
exports.SulaColumnSettingTable = ColumnSettingSulaTable;
|
|
30864
31190
|
exports.TableColumnSetting = TableColumnSetting;
|
|
30865
31191
|
exports.TreeSearchSelect = TreeSearchSelect;
|