@bit-sun/business-component 2.3.6 → 2.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +16 -16
- package/.fatherrc.ts +5 -5
- package/.gitlab-ci.yml +179 -179
- package/.prettierignore +7 -7
- package/.prettierrc +11 -11
- package/.umirc.ts +74 -74
- package/README.md +27 -27
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
- package/dist/components/Business/SearchSelect/index.d.ts +1 -1
- package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
- package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
- package/dist/index.esm.js +1071 -999
- package/dist/index.js +1077 -1005
- package/dist/utils/utils.d.ts +1 -1
- package/docs/index.md +21 -21
- package/lib/assets/drag.svg +17 -17
- package/lib/assets/exportFail.svg +37 -37
- package/lib/assets/exportProcessing.svg +28 -28
- package/lib/assets/exportSuccess.svg +34 -34
- package/lib/assets/label_icon_bottom.svg +25 -25
- package/lib/assets/upExport.svg +22 -22
- package/package.json +78 -78
- package/src/assets/32.svg +27 -27
- package/src/assets/addIcon.svg +17 -17
- package/src/assets/allfunc.svg +27 -27
- package/src/assets/arrowRight.svg +24 -24
- package/src/assets/btn-delete.svg +29 -29
- package/src/assets/btn-edit.svg +19 -19
- package/src/assets/btn-more.svg +17 -17
- package/src/assets/btn-submit.svg +19 -19
- package/src/assets/caidan.svg +11 -11
- package/src/assets/close.svg +26 -26
- package/src/assets/drag.svg +17 -17
- package/src/assets/exportFail.svg +37 -37
- package/src/assets/exportProcessing.svg +28 -28
- package/src/assets/exportSuccess.svg +34 -34
- package/src/assets/fixed-left-active.svg +11 -11
- package/src/assets/fixed-left.svg +15 -15
- package/src/assets/fixed-right-active.svg +11 -11
- package/src/assets/fixed-right.svg +15 -15
- package/src/assets/guanbi.svg +15 -15
- package/src/assets/icon-quanping.svg +15 -15
- package/src/assets/icon-shezhi.svg +17 -17
- package/src/assets/label_icon_bottom.svg +25 -25
- package/src/assets/list-no-img.svg +21 -21
- package/src/assets/morentouxiang-32.svg +23 -23
- package/src/assets/scanning.svg +24 -24
- package/src/assets/upExport.svg +22 -22
- package/src/common/ENUM.ts +41 -41
- package/src/components/Business/AddSelectBusiness/index.md +161 -161
- package/src/components/Business/AddSelectBusiness/index.tsx +861 -861
- package/src/components/Business/BsLayouts/Components/AllFunc/drawContent.tsx +111 -111
- package/src/components/Business/BsLayouts/Components/AllFunc/index.less +153 -153
- package/src/components/Business/BsLayouts/Components/AllFunc/index.tsx +70 -70
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.less +90 -90
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.tsx +37 -37
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.tsx +242 -242
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.tsx +384 -384
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.tsx +285 -285
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.tsx +74 -74
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/drawContent.less +170 -170
- package/src/components/Business/BsLayouts/Components/CustomerMenu/index.less +64 -64
- package/src/components/Business/BsLayouts/Components/CustomerMenu/index.tsx +153 -153
- package/src/components/Business/BsLayouts/Components/GlobalHeader/index.less +72 -72
- package/src/components/Business/BsLayouts/Components/GlobalHeader/index.tsx +157 -157
- package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +85 -85
- package/src/components/Business/BsLayouts/Components/RightContent/home.less +218 -218
- package/src/components/Business/BsLayouts/Components/RightContent/index.tsx +155 -155
- package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +160 -160
- package/src/components/Business/BsLayouts/Components/SearchFunc/index.tsx +75 -75
- package/src/components/Business/BsLayouts/index.less +79 -79
- package/src/components/Business/BsLayouts/index.tsx +1484 -1484
- package/src/components/Business/BsLayouts/service.ts +10 -10
- package/src/components/Business/BsLayouts/utils.tsx +203 -203
- package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +564 -564
- package/src/components/Business/BsSulaQueryTable/index.less +221 -221
- package/src/components/Business/BsSulaQueryTable/index.tsx +527 -527
- package/src/components/Business/BsSulaQueryTable/setting.tsx +832 -832
- package/src/components/Business/BsSulaQueryTable/utils.less +65 -65
- package/src/components/Business/BsSulaQueryTable/utils.tsx +688 -688
- package/src/components/Business/CommodityEntry/index.md +70 -70
- package/src/components/Business/CommodityEntry/index.tsx +80 -80
- package/src/components/Business/CommonAlert/index.tsx +23 -23
- package/src/components/Business/CommonGuideWrapper/index.less +111 -111
- package/src/components/Business/CommonGuideWrapper/index.md +39 -39
- package/src/components/Business/CommonGuideWrapper/index.tsx +83 -83
- package/src/components/Business/DetailPageWrapper/index.less +79 -79
- package/src/components/Business/DetailPageWrapper/index.tsx +313 -313
- package/src/components/Business/DetailPageWrapper/utils.tsx +100 -100
- package/src/components/Business/HomePageWrapper/index.less +33 -33
- package/src/components/Business/HomePageWrapper/index.md +45 -45
- package/src/components/Business/HomePageWrapper/index.tsx +162 -162
- package/src/components/Business/JsonQueryTable/components/FieldsModifyModal.tsx +824 -824
- package/src/components/Business/JsonQueryTable/components/FieldsSettingsTable.tsx +205 -205
- package/src/components/Business/JsonQueryTable/components/Formula.tsx +205 -205
- package/src/components/Business/JsonQueryTable/components/MaintainOptions.tsx +127 -127
- package/src/components/Business/JsonQueryTable/configButton/index.js +20 -20
- package/src/components/Business/JsonQueryTable/configTree/component/compactArrayView.js +25 -25
- package/src/components/Business/JsonQueryTable/configTree/component/compactObjectView.js +30 -30
- package/src/components/Business/JsonQueryTable/configTree/index.js +82 -82
- package/src/components/Business/JsonQueryTable/configTree/index.less +44 -44
- package/src/components/Business/JsonQueryTable/configTree/parser/highlight.js +57 -57
- package/src/components/Business/JsonQueryTable/configTree/parser/index.js +124 -124
- package/src/components/Business/JsonQueryTable/configTree/render/iconRender.js +29 -29
- package/src/components/Business/JsonQueryTable/configTree/render/nameRender.js +22 -22
- package/src/components/Business/JsonQueryTable/configTree/treeNode.js +116 -116
- package/src/components/Business/JsonQueryTable/drawer/index.tsx +12 -12
- package/src/components/Business/JsonQueryTable/function.ts +62 -62
- package/src/components/Business/JsonQueryTable/index.less +16 -16
- package/src/components/Business/JsonQueryTable/index.md +328 -328
- package/src/components/Business/JsonQueryTable/index.tsx +535 -535
- package/src/components/Business/JsonQueryTable/jsonEditor/index.js +346 -346
- package/src/components/Business/JsonQueryTable/jsonEditor/index.less +22 -22
- package/src/components/Business/JsonQueryTable/jsonEditor/lint/basicType.js +147 -147
- package/src/components/Business/JsonQueryTable/jsonEditor/lint/index.js +389 -389
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/actions.js +118 -118
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/dependency.js +22 -22
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/index.js +21 -21
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/request.js +65 -65
- package/src/components/Business/JsonQueryTable/static.ts +390 -390
- package/src/components/Business/SearchSelect/BusinessUtils.ts +1732 -1732
- package/src/components/Business/SearchSelect/common.ts +53 -53
- package/src/components/Business/SearchSelect/index.md +1319 -1319
- package/src/components/Business/SearchSelect/index.tsx +51 -51
- package/src/components/Business/SearchSelect/utils.ts +100 -100
- package/src/components/Business/StateFlow/index.less +130 -130
- package/src/components/Business/StateFlow/index.md +60 -60
- package/src/components/Business/StateFlow/index.tsx +29 -29
- package/src/components/Business/TreeSearchSelect/index.md +154 -154
- package/src/components/Business/TreeSearchSelect/index.tsx +33 -33
- package/src/components/Business/TreeSearchSelect/utils.ts +75 -75
- package/src/components/Business/columnSettingTable/columnSetting.tsx +764 -764
- package/src/components/Business/columnSettingTable/index.less +247 -247
- package/src/components/Business/columnSettingTable/index.md +357 -357
- package/src/components/Business/columnSettingTable/index.tsx +232 -232
- package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +240 -240
- package/src/components/Business/columnSettingTable/utils.tsx +68 -68
- package/src/components/Business/moreTreeTable/FixedScrollBar.tsx +86 -86
- package/src/components/Business/moreTreeTable/hooks/useSticky.ts +21 -21
- package/src/components/Business/moreTreeTable/index.less +99 -99
- package/src/components/Business/moreTreeTable/index.md +448 -448
- package/src/components/Business/moreTreeTable/index.tsx +387 -387
- package/src/components/Business/moreTreeTable/utils.ts +126 -126
- package/src/components/Functional/AddSelect/helps.ts +14 -14
- package/src/components/Functional/AddSelect/index.less +367 -367
- package/src/components/Functional/AddSelect/index.md +155 -155
- package/src/components/Functional/AddSelect/index.tsx +1279 -1279
- package/src/components/Functional/BillEntry/index.less +371 -371
- package/src/components/Functional/BillEntry/index.md +39 -39
- package/src/components/Functional/BillEntry/index.tsx +772 -772
- package/src/components/Functional/BsAntdSula/BsCascader/index.md +62 -62
- package/src/components/Functional/BsAntdSula/BsCascader/index.tsx +178 -178
- package/src/components/Functional/BsAntdSula/index.ts +2 -2
- package/src/components/Functional/DataImport/index.less +63 -63
- package/src/components/Functional/DataImport/index.md +44 -44
- package/src/components/Functional/DataImport/index.tsx +695 -695
- package/src/components/Functional/DataValidation/index.less +63 -63
- package/src/components/Functional/DataValidation/index.md +39 -39
- package/src/components/Functional/DataValidation/index.tsx +687 -687
- package/src/components/Functional/EllipsisTooltip/index.d.ts +5 -5
- package/src/components/Functional/EllipsisTooltip/index.js +36 -36
- package/src/components/Functional/EllipsisTooltip/index.md +30 -30
- package/src/components/Functional/ExportFunctions/ExportIcon/index.md +37 -37
- package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +59 -59
- package/src/components/Functional/QueryMutipleInput/index.less +37 -37
- package/src/components/Functional/QueryMutipleInput/index.md +33 -33
- package/src/components/Functional/QueryMutipleInput/index.tsx +128 -128
- package/src/components/Functional/SearchSelect/index.less +115 -115
- package/src/components/Functional/SearchSelect/index.md +141 -141
- package/src/components/Functional/SearchSelect/index.tsx +858 -855
- package/src/components/Functional/SearchSelect/utils.ts +3 -3
- package/src/components/Functional/TreeSearchSelect/index.md +47 -47
- package/src/components/Functional/TreeSearchSelect/index.tsx +163 -163
- package/src/components/Solution/RuleComponent/Formula.tsx +335 -335
- package/src/components/Solution/RuleComponent/index.d.ts +29 -29
- package/src/components/Solution/RuleComponent/index.js +2028 -2028
- package/src/components/Solution/RuleComponent/index.less +230 -230
- package/src/components/Solution/RuleComponent/renderSpecificAction.js +99 -99
- package/src/components/Solution/RuleComponent/ruleFiled.js +2107 -2074
- package/src/components/Solution/RuleComponent/services.ts +13 -13
- package/src/components/Solution/RuleComponent/util.js +139 -139
- package/src/index.ts +38 -38
- package/src/plugin/TableColumnSetting/index.less +247 -247
- package/src/plugin/TableColumnSetting/index.md +50 -50
- package/src/plugin/TableColumnSetting/index.tsx +724 -724
- package/src/plugin/TableColumnSetting/utils.ts +19 -19
- package/src/styles/bsDefault.less +1912 -1912
- package/src/utils/CheckOneUser/index.md +39 -39
- package/src/utils/CheckOneUser/index.ts +51 -51
- package/src/utils/LocalstorageUtils.ts +90 -90
- package/src/utils/TableUtils.tsx +18 -18
- package/src/utils/checkUtils.ts +39 -39
- package/src/utils/enumConfig.ts +11 -11
- package/src/utils/getFormMode.js +12 -12
- package/src/utils/index.ts +4 -4
- package/src/utils/requestUtils.ts +34 -34
- package/src/utils/serialize.js +7 -7
- package/src/utils/utils.ts +212 -212
- package/tsconfig.json +29 -29
- package/typings.d.ts +4 -4
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ var axios = require('axios');
|
|
|
6
6
|
var antd = require('antd');
|
|
7
7
|
var _ = require('lodash');
|
|
8
8
|
var umi = require('umi');
|
|
9
|
-
var isEqual
|
|
9
|
+
var isEqual = require('lodash/isEqual');
|
|
10
10
|
var React = require('react');
|
|
11
11
|
var moment$1 = require('moment');
|
|
12
12
|
var icons = require('@ant-design/icons');
|
|
@@ -33,7 +33,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
33
33
|
|
|
34
34
|
var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
|
|
35
35
|
var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
|
|
36
|
-
var isEqual__default = /*#__PURE__*/_interopDefaultLegacy(isEqual
|
|
36
|
+
var isEqual__default = /*#__PURE__*/_interopDefaultLegacy(isEqual);
|
|
37
37
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
38
38
|
var moment__default = /*#__PURE__*/_interopDefaultLegacy(moment$1);
|
|
39
39
|
var ProLayout__default = /*#__PURE__*/_interopDefaultLegacy(ProLayout);
|
|
@@ -781,52 +781,41 @@ var precisionQuantity = function precisionQuantity(num, accuracy) {
|
|
|
781
781
|
return '';
|
|
782
782
|
};
|
|
783
783
|
|
|
784
|
-
var
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
function
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
784
|
+
var simpleIsEqual = function simpleIsEqual(a, b) {
|
|
785
|
+
return a === b;
|
|
786
|
+
};
|
|
787
|
+
|
|
788
|
+
function index$1 (resultFn, isEqual) {
|
|
789
|
+
if (isEqual === void 0) {
|
|
790
|
+
isEqual = simpleIsEqual;
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
var lastThis;
|
|
794
|
+
var lastArgs = [];
|
|
795
|
+
var lastResult;
|
|
796
|
+
var calledOnce = false;
|
|
797
|
+
|
|
798
|
+
var isNewArgEqualToLast = function isNewArgEqualToLast(newArg, index) {
|
|
799
|
+
return isEqual(newArg, lastArgs[index], index);
|
|
800
|
+
};
|
|
801
|
+
|
|
802
|
+
var result = function result() {
|
|
803
|
+
for (var _len = arguments.length, newArgs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
804
|
+
newArgs[_key] = arguments[_key];
|
|
800
805
|
}
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
}
|
|
806
|
+
|
|
807
|
+
if (calledOnce && lastThis === this && newArgs.length === lastArgs.length && newArgs.every(isNewArgEqualToLast)) {
|
|
808
|
+
return lastResult;
|
|
805
809
|
}
|
|
806
|
-
return true;
|
|
807
|
-
}
|
|
808
810
|
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
818
|
-
newArgs[_i] = arguments[_i];
|
|
819
|
-
}
|
|
820
|
-
if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {
|
|
821
|
-
return lastResult;
|
|
822
|
-
}
|
|
823
|
-
lastResult = resultFn.apply(this, newArgs);
|
|
824
|
-
calledOnce = true;
|
|
825
|
-
lastThis = this;
|
|
826
|
-
lastArgs = newArgs;
|
|
827
|
-
return lastResult;
|
|
828
|
-
}
|
|
829
|
-
return memoized;
|
|
811
|
+
lastResult = resultFn.apply(this, newArgs);
|
|
812
|
+
calledOnce = true;
|
|
813
|
+
lastThis = this;
|
|
814
|
+
lastArgs = newArgs;
|
|
815
|
+
return lastResult;
|
|
816
|
+
};
|
|
817
|
+
|
|
818
|
+
return result;
|
|
830
819
|
}
|
|
831
820
|
|
|
832
821
|
function styleInject(css, ref) {
|
|
@@ -1040,58 +1029,59 @@ var getItemDefaultWidth = function getItemDefaultWidth(item) {
|
|
|
1040
1029
|
* @returns 返回处理后的查询参数
|
|
1041
1030
|
*/
|
|
1042
1031
|
function queryParams(params, flag) {
|
|
1043
|
-
|
|
1032
|
+
var _loop = function _loop() {
|
|
1044
1033
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
params[value] = moment__default['default'](element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
1069
|
-
} else {
|
|
1070
|
-
params[value] = moment__default['default'](element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
1071
|
-
}
|
|
1072
|
-
});
|
|
1073
|
-
delete params[key];
|
|
1074
|
-
} else if (element && key.indexOf('*') >= 0) {
|
|
1075
|
-
var _dataParams4 = key.split('*');
|
|
1076
|
-
_dataParams4.forEach(function (value, index) {
|
|
1077
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
1078
|
-
});
|
|
1079
|
-
delete params[key];
|
|
1080
|
-
} else if (element && key.indexOf('_likeIn_') >= 0) {
|
|
1081
|
-
var _dataParams5 = key.split('_likeIn_');
|
|
1082
|
-
if (element.indexOf(',') >= 0) {
|
|
1083
|
-
params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
|
|
1084
|
-
params["qp-".concat(_dataParams5[0], "-like")] = null;
|
|
1034
|
+
var element = params[key];
|
|
1035
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
1036
|
+
var dataParams = key.split('*number*');
|
|
1037
|
+
dataParams.forEach(function (value, index) {
|
|
1038
|
+
params[value] = element[index];
|
|
1039
|
+
});
|
|
1040
|
+
delete params[key];
|
|
1041
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
1042
|
+
var _dataParams = key.split('*address*');
|
|
1043
|
+
_dataParams.forEach(function (value, index) {
|
|
1044
|
+
params[value] = element.PCDCode[index];
|
|
1045
|
+
});
|
|
1046
|
+
delete params[key];
|
|
1047
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
1048
|
+
var _dataParams2 = key.split('*costType*');
|
|
1049
|
+
// eslint-disable-next-line prefer-destructuring
|
|
1050
|
+
params[_dataParams2[0]] = element[1];
|
|
1051
|
+
delete params[key];
|
|
1052
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
1053
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
1054
|
+
_dataParams3.forEach(function (value, index) {
|
|
1055
|
+
if (index === 0) {
|
|
1056
|
+
params[value] = moment__default['default'](element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
1085
1057
|
} else {
|
|
1086
|
-
params[
|
|
1087
|
-
params["qp-".concat(_dataParams5[0], "-in")] = null;
|
|
1058
|
+
params[value] = moment__default['default'](element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
1088
1059
|
}
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1060
|
+
});
|
|
1061
|
+
delete params[key];
|
|
1062
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
1063
|
+
var _dataParams4 = key.split('*');
|
|
1064
|
+
_dataParams4.forEach(function (value, index) {
|
|
1065
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
1066
|
+
});
|
|
1067
|
+
delete params[key];
|
|
1068
|
+
} else if (element && key.indexOf('_likeIn_') >= 0) {
|
|
1069
|
+
var _dataParams5 = key.split('_likeIn_');
|
|
1070
|
+
if (element.indexOf(',') >= 0) {
|
|
1071
|
+
params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
|
|
1072
|
+
params["qp-".concat(_dataParams5[0], "-like")] = null;
|
|
1073
|
+
} else {
|
|
1074
|
+
params["qp-".concat(_dataParams5[0], "-like")] = element;
|
|
1075
|
+
params["qp-".concat(_dataParams5[0], "-in")] = null;
|
|
1092
1076
|
}
|
|
1093
|
-
|
|
1077
|
+
delete params[key];
|
|
1078
|
+
} else if (Array.isArray(element)) {
|
|
1079
|
+
params[key] = element.join(',');
|
|
1080
|
+
}
|
|
1094
1081
|
}
|
|
1082
|
+
};
|
|
1083
|
+
for (var key in params) {
|
|
1084
|
+
_loop();
|
|
1095
1085
|
}
|
|
1096
1086
|
return flag ? params : qs.stringify(params);
|
|
1097
1087
|
}
|
|
@@ -1137,7 +1127,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1137
1127
|
return item;
|
|
1138
1128
|
});
|
|
1139
1129
|
};
|
|
1140
|
-
var memoizeOneFormatter =
|
|
1130
|
+
var memoizeOneFormatter = index$1(formatter, isEqual__default['default']);
|
|
1141
1131
|
var go2BackAndClose = function go2BackAndClose() {
|
|
1142
1132
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1143
1133
|
umi.history.goBack();
|
|
@@ -2816,84 +2806,85 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
2816
2806
|
});
|
|
2817
2807
|
}
|
|
2818
2808
|
// 数组对象处理,对带有特殊标记的name进行处理
|
|
2819
|
-
|
|
2809
|
+
var _loop = function _loop() {
|
|
2820
2810
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
2847
|
-
}
|
|
2848
|
-
});
|
|
2849
|
-
delete params[key];
|
|
2850
|
-
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
2851
|
-
var _dataParams4 = key.split('*checkBox*');
|
|
2852
|
-
if (element) {
|
|
2853
|
-
params[_dataParams4[0]] = 0;
|
|
2811
|
+
var element = params[key];
|
|
2812
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
2813
|
+
var dataParams = key.split('*number*');
|
|
2814
|
+
dataParams.forEach(function (value, index) {
|
|
2815
|
+
params[value] = element[index];
|
|
2816
|
+
});
|
|
2817
|
+
delete params[key];
|
|
2818
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
2819
|
+
var _dataParams = key.split('*address*');
|
|
2820
|
+
_dataParams.forEach(function (value, index) {
|
|
2821
|
+
params[value] = element.PCDCode[index];
|
|
2822
|
+
});
|
|
2823
|
+
delete params[key];
|
|
2824
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
2825
|
+
var _dataParams2 = key.split('*costType*');
|
|
2826
|
+
// eslint-disable-next-line prefer-destructuring
|
|
2827
|
+
params[_dataParams2[0]] = element[1];
|
|
2828
|
+
delete params[key];
|
|
2829
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
2830
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
2831
|
+
_dataParams3.forEach(function (value, index) {
|
|
2832
|
+
if (index === 0) {
|
|
2833
|
+
params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
2834
|
+
} else {
|
|
2835
|
+
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
2854
2836
|
}
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
_dataParams7.forEach(function (value, index) {
|
|
2873
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
2874
|
-
});
|
|
2875
|
-
delete params[key];
|
|
2876
|
-
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
2877
|
-
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
2878
|
-
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
2879
|
-
if (params[key][0] === 'range') {
|
|
2880
|
-
if (params[key][1][0]) {
|
|
2881
|
-
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
2882
|
-
}
|
|
2883
|
-
if (params[key][1][1]) {
|
|
2884
|
-
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
2885
|
-
}
|
|
2837
|
+
});
|
|
2838
|
+
delete params[key];
|
|
2839
|
+
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
2840
|
+
var _dataParams4 = key.split('*checkBox*');
|
|
2841
|
+
if (element) {
|
|
2842
|
+
params[_dataParams4[0]] = 0;
|
|
2843
|
+
}
|
|
2844
|
+
delete params[key];
|
|
2845
|
+
} else if (element && key.indexOf('*cascader*') >= 0) {
|
|
2846
|
+
var _dataParams5 = key.split('*cascader*');
|
|
2847
|
+
params[_dataParams5[0]] = element[element.length - 1];
|
|
2848
|
+
delete params[key];
|
|
2849
|
+
} else if (element && key.indexOf('*date*') >= 0) {
|
|
2850
|
+
var _dataParams6 = key.split('*date*');
|
|
2851
|
+
_dataParams6.forEach(function (value, index) {
|
|
2852
|
+
if (index === 0) {
|
|
2853
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
2886
2854
|
} else {
|
|
2887
|
-
params[
|
|
2855
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
2856
|
+
}
|
|
2857
|
+
});
|
|
2858
|
+
delete params[key];
|
|
2859
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
2860
|
+
var _dataParams7 = key.split('*');
|
|
2861
|
+
_dataParams7.forEach(function (value, index) {
|
|
2862
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
2863
|
+
});
|
|
2864
|
+
delete params[key];
|
|
2865
|
+
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
2866
|
+
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
2867
|
+
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
2868
|
+
if (params[key][0] === 'range') {
|
|
2869
|
+
if (params[key][1][0]) {
|
|
2870
|
+
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
2888
2871
|
}
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
} else
|
|
2893
|
-
|
|
2872
|
+
if (params[key][1][1]) {
|
|
2873
|
+
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
2874
|
+
}
|
|
2875
|
+
} else {
|
|
2876
|
+
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
2894
2877
|
}
|
|
2895
|
-
|
|
2878
|
+
delete params[key];
|
|
2879
|
+
} else if (Array.isArray(element)) {
|
|
2880
|
+
params[key] = element.join(',');
|
|
2881
|
+
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
2882
|
+
delete params[key];
|
|
2883
|
+
}
|
|
2896
2884
|
}
|
|
2885
|
+
};
|
|
2886
|
+
for (var key in params) {
|
|
2887
|
+
_loop();
|
|
2897
2888
|
}
|
|
2898
2889
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
2899
2890
|
pageSize: pageSize,
|
|
@@ -3064,6 +3055,9 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3064
3055
|
ctx === null || ctx === void 0 ? void 0 : (_ctx$form2 = ctx.form) === null || _ctx$form2 === void 0 ? void 0 : _ctx$form2.setFieldSource(resultSourceKey, source);
|
|
3065
3056
|
setItems(source);
|
|
3066
3057
|
formaData(selectedValue, source);
|
|
3058
|
+
} else {
|
|
3059
|
+
var formatResult = selectMode ? [] : null;
|
|
3060
|
+
onChange(formatResult, selectedValue);
|
|
3067
3061
|
}
|
|
3068
3062
|
};
|
|
3069
3063
|
var handleOk = function handleOk() {
|
|
@@ -4549,76 +4543,74 @@ var AddSelect = function AddSelect(props) {
|
|
|
4549
4543
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
4550
4544
|
var result;
|
|
4551
4545
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
4552
|
-
while (1) {
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
_context.next = 3;
|
|
4559
|
-
break;
|
|
4560
|
-
}
|
|
4561
|
-
antd.message.warning('相同skc配码不可设置相同哦');
|
|
4562
|
-
return _context.abrupt("return", false);
|
|
4563
|
-
case 3:
|
|
4564
|
-
if (!(bType == 'spu')) {
|
|
4565
|
-
_context.next = 26;
|
|
4566
|
-
break;
|
|
4567
|
-
}
|
|
4568
|
-
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
4569
|
-
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
4570
|
-
}))) {
|
|
4571
|
-
_context.next = 7;
|
|
4572
|
-
break;
|
|
4573
|
-
}
|
|
4574
|
-
antd.message.warning('相同商品相同配码颜色不可设置相同哦');
|
|
4575
|
-
return _context.abrupt("return", false);
|
|
4576
|
-
case 7:
|
|
4577
|
-
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
4578
|
-
_context.next = 10;
|
|
4579
|
-
break;
|
|
4580
|
-
}
|
|
4581
|
-
antd.message.warning('请先选择颜色!');
|
|
4582
|
-
return _context.abrupt("return", false);
|
|
4583
|
-
case 10:
|
|
4584
|
-
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
4585
|
-
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
4586
|
-
}))) {
|
|
4587
|
-
_context.next = 13;
|
|
4588
|
-
break;
|
|
4589
|
-
}
|
|
4590
|
-
antd.message.warning('相同商品相同颜色配码不可设置相同哦');
|
|
4591
|
-
return _context.abrupt("return", false);
|
|
4592
|
-
case 13:
|
|
4593
|
-
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
4594
|
-
_context.next = 26;
|
|
4595
|
-
break;
|
|
4596
|
-
}
|
|
4597
|
-
result = true;
|
|
4598
|
-
_context.prev = 15;
|
|
4599
|
-
_context.next = 18;
|
|
4600
|
-
return checkSpuMatchCode({
|
|
4601
|
-
skcCode: recordItem[recordKey],
|
|
4602
|
-
matchingCode: changeValue,
|
|
4603
|
-
ext1: recordItem.colorName
|
|
4604
|
-
});
|
|
4605
|
-
case 18:
|
|
4606
|
-
result = _context.sent;
|
|
4607
|
-
result = true;
|
|
4608
|
-
_context.next = 25;
|
|
4546
|
+
while (1) switch (_context.prev = _context.next) {
|
|
4547
|
+
case 0:
|
|
4548
|
+
if (!(bType == 'skc' && tList.some(function (i) {
|
|
4549
|
+
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
4550
|
+
}))) {
|
|
4551
|
+
_context.next = 3;
|
|
4609
4552
|
break;
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4553
|
+
}
|
|
4554
|
+
antd.message.warning('相同skc配码不可设置相同哦');
|
|
4555
|
+
return _context.abrupt("return", false);
|
|
4556
|
+
case 3:
|
|
4557
|
+
if (!(bType == 'spu')) {
|
|
4558
|
+
_context.next = 26;
|
|
4559
|
+
break;
|
|
4560
|
+
}
|
|
4561
|
+
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
4562
|
+
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
4563
|
+
}))) {
|
|
4564
|
+
_context.next = 7;
|
|
4565
|
+
break;
|
|
4566
|
+
}
|
|
4567
|
+
antd.message.warning('相同商品相同配码颜色不可设置相同哦');
|
|
4568
|
+
return _context.abrupt("return", false);
|
|
4569
|
+
case 7:
|
|
4570
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
4571
|
+
_context.next = 10;
|
|
4572
|
+
break;
|
|
4573
|
+
}
|
|
4574
|
+
antd.message.warning('请先选择颜色!');
|
|
4575
|
+
return _context.abrupt("return", false);
|
|
4576
|
+
case 10:
|
|
4577
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
4578
|
+
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
4579
|
+
}))) {
|
|
4580
|
+
_context.next = 13;
|
|
4581
|
+
break;
|
|
4582
|
+
}
|
|
4583
|
+
antd.message.warning('相同商品相同颜色配码不可设置相同哦');
|
|
4584
|
+
return _context.abrupt("return", false);
|
|
4585
|
+
case 13:
|
|
4586
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
4587
|
+
_context.next = 26;
|
|
4588
|
+
break;
|
|
4589
|
+
}
|
|
4590
|
+
result = true;
|
|
4591
|
+
_context.prev = 15;
|
|
4592
|
+
_context.next = 18;
|
|
4593
|
+
return checkSpuMatchCode({
|
|
4594
|
+
skcCode: recordItem[recordKey],
|
|
4595
|
+
matchingCode: changeValue,
|
|
4596
|
+
ext1: recordItem.colorName
|
|
4597
|
+
});
|
|
4598
|
+
case 18:
|
|
4599
|
+
result = _context.sent;
|
|
4600
|
+
result = true;
|
|
4601
|
+
_context.next = 25;
|
|
4602
|
+
break;
|
|
4603
|
+
case 22:
|
|
4604
|
+
_context.prev = 22;
|
|
4605
|
+
_context.t0 = _context["catch"](15);
|
|
4606
|
+
result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
|
|
4607
|
+
case 25:
|
|
4608
|
+
return _context.abrupt("return", result);
|
|
4609
|
+
case 26:
|
|
4610
|
+
return _context.abrupt("return", true);
|
|
4611
|
+
case 27:
|
|
4612
|
+
case "end":
|
|
4613
|
+
return _context.stop();
|
|
4622
4614
|
}
|
|
4623
4615
|
}, _callee, null, [[15, 22]]);
|
|
4624
4616
|
}));
|
|
@@ -4810,29 +4802,27 @@ var AddSelect = function AddSelect(props) {
|
|
|
4810
4802
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
4811
4803
|
var isConformToTheRules, newPopValue;
|
|
4812
4804
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
4813
|
-
while (1) {
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4805
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
4806
|
+
case 0:
|
|
4807
|
+
_context2.next = 2;
|
|
4808
|
+
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
4809
|
+
case 2:
|
|
4810
|
+
isConformToTheRules = _context2.sent;
|
|
4811
|
+
if (isConformToTheRules) {
|
|
4812
|
+
record[item.dataIndex] = value;
|
|
4813
|
+
} else {
|
|
4814
|
+
record[item.dataIndex] = null;
|
|
4815
|
+
}
|
|
4816
|
+
newPopValue = popvalue.map(function (i, innerIndex) {
|
|
4817
|
+
if (innerIndex == index) {
|
|
4818
|
+
i[item.dataIndex] = record[item.dataIndex];
|
|
4824
4819
|
}
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
setPopValue(newPopValue);
|
|
4832
|
-
case 6:
|
|
4833
|
-
case "end":
|
|
4834
|
-
return _context2.stop();
|
|
4835
|
-
}
|
|
4820
|
+
return i;
|
|
4821
|
+
});
|
|
4822
|
+
setPopValue(newPopValue);
|
|
4823
|
+
case 6:
|
|
4824
|
+
case "end":
|
|
4825
|
+
return _context2.stop();
|
|
4836
4826
|
}
|
|
4837
4827
|
}, _callee2);
|
|
4838
4828
|
}));
|
|
@@ -4892,84 +4882,85 @@ var AddSelect = function AddSelect(props) {
|
|
|
4892
4882
|
});
|
|
4893
4883
|
}
|
|
4894
4884
|
// 数组对象处理,对带有特殊标记的name进行处理
|
|
4895
|
-
|
|
4885
|
+
var _loop = function _loop() {
|
|
4896
4886
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
4923
|
-
}
|
|
4924
|
-
});
|
|
4925
|
-
delete params[key];
|
|
4926
|
-
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
4927
|
-
var _dataParams4 = key.split('*checkBox*');
|
|
4928
|
-
if (element) {
|
|
4929
|
-
params[_dataParams4[0]] = 0;
|
|
4887
|
+
var element = params[key];
|
|
4888
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
4889
|
+
var dataParams = key.split('*number*');
|
|
4890
|
+
dataParams.forEach(function (value, index) {
|
|
4891
|
+
params[value] = element[index];
|
|
4892
|
+
});
|
|
4893
|
+
delete params[key];
|
|
4894
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
4895
|
+
var _dataParams = key.split('*address*');
|
|
4896
|
+
_dataParams.forEach(function (value, index) {
|
|
4897
|
+
params[value] = element.PCDCode[index];
|
|
4898
|
+
});
|
|
4899
|
+
delete params[key];
|
|
4900
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
4901
|
+
var _dataParams2 = key.split('*costType*');
|
|
4902
|
+
// eslint-disable-next-line prefer-destructuring
|
|
4903
|
+
params[_dataParams2[0]] = element[1];
|
|
4904
|
+
delete params[key];
|
|
4905
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
4906
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
4907
|
+
_dataParams3.forEach(function (value, index) {
|
|
4908
|
+
if (index === 0) {
|
|
4909
|
+
params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
4910
|
+
} else {
|
|
4911
|
+
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
4930
4912
|
}
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
_dataParams7.forEach(function (value, index) {
|
|
4949
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
4950
|
-
});
|
|
4951
|
-
delete params[key];
|
|
4952
|
-
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
4953
|
-
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
4954
|
-
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
4955
|
-
if (params[key][0] === 'range') {
|
|
4956
|
-
if (params[key][1][0]) {
|
|
4957
|
-
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
4958
|
-
}
|
|
4959
|
-
if (params[key][1][1]) {
|
|
4960
|
-
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
4961
|
-
}
|
|
4913
|
+
});
|
|
4914
|
+
delete params[key];
|
|
4915
|
+
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
4916
|
+
var _dataParams4 = key.split('*checkBox*');
|
|
4917
|
+
if (element) {
|
|
4918
|
+
params[_dataParams4[0]] = 0;
|
|
4919
|
+
}
|
|
4920
|
+
delete params[key];
|
|
4921
|
+
} else if (element && key.indexOf('*cascader*') >= 0) {
|
|
4922
|
+
var _dataParams5 = key.split('*cascader*');
|
|
4923
|
+
params[_dataParams5[0]] = element[element.length - 1];
|
|
4924
|
+
delete params[key];
|
|
4925
|
+
} else if (element && key.indexOf('*date*') >= 0) {
|
|
4926
|
+
var _dataParams6 = key.split('*date*');
|
|
4927
|
+
_dataParams6.forEach(function (value, index) {
|
|
4928
|
+
if (index === 0) {
|
|
4929
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
4962
4930
|
} else {
|
|
4963
|
-
params[
|
|
4931
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
4932
|
+
}
|
|
4933
|
+
});
|
|
4934
|
+
delete params[key];
|
|
4935
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
4936
|
+
var _dataParams7 = key.split('*');
|
|
4937
|
+
_dataParams7.forEach(function (value, index) {
|
|
4938
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
4939
|
+
});
|
|
4940
|
+
delete params[key];
|
|
4941
|
+
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
4942
|
+
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
4943
|
+
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
4944
|
+
if (params[key][0] === 'range') {
|
|
4945
|
+
if (params[key][1][0]) {
|
|
4946
|
+
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
4964
4947
|
}
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
} else
|
|
4969
|
-
|
|
4948
|
+
if (params[key][1][1]) {
|
|
4949
|
+
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
4950
|
+
}
|
|
4951
|
+
} else {
|
|
4952
|
+
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
4970
4953
|
}
|
|
4971
|
-
|
|
4954
|
+
delete params[key];
|
|
4955
|
+
} else if (Array.isArray(element)) {
|
|
4956
|
+
params[key] = element.join(',');
|
|
4957
|
+
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
4958
|
+
delete params[key];
|
|
4959
|
+
}
|
|
4972
4960
|
}
|
|
4961
|
+
};
|
|
4962
|
+
for (var key in params) {
|
|
4963
|
+
_loop();
|
|
4973
4964
|
}
|
|
4974
4965
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
4975
4966
|
pageSize: pageSize,
|
|
@@ -6424,72 +6415,70 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
6424
6415
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
6425
6416
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
6426
6417
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
6427
|
-
while (1) {
|
|
6428
|
-
|
|
6429
|
-
|
|
6430
|
-
|
|
6431
|
-
|
|
6432
|
-
|
|
6433
|
-
|
|
6434
|
-
|
|
6435
|
-
|
|
6436
|
-
|
|
6437
|
-
|
|
6438
|
-
|
|
6439
|
-
|
|
6440
|
-
|
|
6441
|
-
|
|
6442
|
-
|
|
6443
|
-
|
|
6444
|
-
|
|
6445
|
-
|
|
6446
|
-
|
|
6447
|
-
|
|
6448
|
-
|
|
6449
|
-
|
|
6450
|
-
|
|
6418
|
+
while (1) switch (_context.prev = _context.next) {
|
|
6419
|
+
case 0:
|
|
6420
|
+
if (data === null || data === void 0 ? void 0 : data.length) {
|
|
6421
|
+
_context.next = 3;
|
|
6422
|
+
break;
|
|
6423
|
+
}
|
|
6424
|
+
antd.message.warning('至少录入一条数据');
|
|
6425
|
+
return _context.abrupt("return");
|
|
6426
|
+
case 3:
|
|
6427
|
+
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
6428
|
+
return d.skuCode && d.name;
|
|
6429
|
+
})) {
|
|
6430
|
+
_context.next = 6;
|
|
6431
|
+
break;
|
|
6432
|
+
}
|
|
6433
|
+
antd.message.warning('请选择商品!');
|
|
6434
|
+
return _context.abrupt("return");
|
|
6435
|
+
case 6:
|
|
6436
|
+
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
6437
|
+
return d.count;
|
|
6438
|
+
})) {
|
|
6439
|
+
_context.next = 9;
|
|
6440
|
+
break;
|
|
6441
|
+
}
|
|
6442
|
+
antd.message.warning('请填写商品数量!');
|
|
6443
|
+
return _context.abrupt("return");
|
|
6444
|
+
case 9:
|
|
6445
|
+
_context.next = 11;
|
|
6446
|
+
return isSkuCanEntry(data);
|
|
6447
|
+
case 11:
|
|
6448
|
+
canEntryObject = _context.sent;
|
|
6449
|
+
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
6450
|
+
_context.next = 16;
|
|
6451
|
+
break;
|
|
6452
|
+
}
|
|
6453
|
+
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) {
|
|
6454
|
+
return /*#__PURE__*/React__default['default'].createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
|
|
6455
|
+
}));
|
|
6456
|
+
messageInfo && antd.message.warning({
|
|
6457
|
+
content: messageInfo,
|
|
6458
|
+
duration: 6
|
|
6459
|
+
});
|
|
6460
|
+
return _context.abrupt("return");
|
|
6461
|
+
case 16:
|
|
6462
|
+
setLoading(true);
|
|
6463
|
+
onSaveCallback(data).then(function (res) {
|
|
6464
|
+
{
|
|
6465
|
+
var _Object$keys;
|
|
6466
|
+
var initSuccessMessage = '保存成功';
|
|
6467
|
+
var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
|
|
6468
|
+
if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
|
|
6469
|
+
(rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? antd.message.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
|
|
6470
|
+
} else {
|
|
6471
|
+
antd.message.success(initSuccessMessage);
|
|
6472
|
+
}
|
|
6451
6473
|
}
|
|
6452
|
-
|
|
6453
|
-
|
|
6454
|
-
|
|
6455
|
-
|
|
6456
|
-
|
|
6457
|
-
|
|
6458
|
-
|
|
6459
|
-
|
|
6460
|
-
_context.next = 16;
|
|
6461
|
-
break;
|
|
6462
|
-
}
|
|
6463
|
-
messageInfo = (canEntryObject === null || canEntryObject === void 0 ? void 0 : (_canEntryObject$error = canEntryObject.errorList) === null || _canEntryObject$error === void 0 ? void 0 : _canEntryObject$error.length) && (canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.errorList.map(function (i) {
|
|
6464
|
-
return /*#__PURE__*/React__default['default'].createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
|
|
6465
|
-
}));
|
|
6466
|
-
messageInfo && antd.message.warning({
|
|
6467
|
-
content: messageInfo,
|
|
6468
|
-
duration: 6
|
|
6469
|
-
});
|
|
6470
|
-
return _context.abrupt("return");
|
|
6471
|
-
case 16:
|
|
6472
|
-
setLoading(true);
|
|
6473
|
-
onSaveCallback(data).then(function (res) {
|
|
6474
|
-
{
|
|
6475
|
-
var _Object$keys;
|
|
6476
|
-
var initSuccessMessage = '保存成功';
|
|
6477
|
-
var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
|
|
6478
|
-
if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
|
|
6479
|
-
(rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? antd.message.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
|
|
6480
|
-
} else {
|
|
6481
|
-
antd.message.success(initSuccessMessage);
|
|
6482
|
-
}
|
|
6483
|
-
}
|
|
6484
|
-
setLoading(false);
|
|
6485
|
-
}).catch(function (Error) {
|
|
6486
|
-
antd.message.error(Error);
|
|
6487
|
-
setLoading(false);
|
|
6488
|
-
});
|
|
6489
|
-
case 18:
|
|
6490
|
-
case "end":
|
|
6491
|
-
return _context.stop();
|
|
6492
|
-
}
|
|
6474
|
+
setLoading(false);
|
|
6475
|
+
}).catch(function (Error) {
|
|
6476
|
+
antd.message.error(Error);
|
|
6477
|
+
setLoading(false);
|
|
6478
|
+
});
|
|
6479
|
+
case 18:
|
|
6480
|
+
case "end":
|
|
6481
|
+
return _context.stop();
|
|
6493
6482
|
}
|
|
6494
6483
|
}, _callee);
|
|
6495
6484
|
}));
|
|
@@ -9624,7 +9613,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
9624
9613
|
* @LastEditTime: 2022-01-14 17:17:26
|
|
9625
9614
|
* @LastEditors: rodchen
|
|
9626
9615
|
*/
|
|
9627
|
-
var index$
|
|
9616
|
+
var index$2 = (function (storageKeyString) {
|
|
9628
9617
|
var seconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
|
|
9629
9618
|
var tipsCallFunction = arguments.length > 2 ? arguments[2] : undefined;
|
|
9630
9619
|
if (typeof seconds !== 'number') throw new Error('seconds should be number');
|
|
@@ -9745,44 +9734,42 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
9745
9734
|
var _ctx$form;
|
|
9746
9735
|
var resData, coverData, data, dataList;
|
|
9747
9736
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9748
|
-
while (1) {
|
|
9749
|
-
|
|
9750
|
-
|
|
9751
|
-
|
|
9752
|
-
|
|
9753
|
-
_context.next = 13;
|
|
9754
|
-
break;
|
|
9755
|
-
}
|
|
9756
|
-
data = resData.data;
|
|
9757
|
-
if (!remoteSource.converter) {
|
|
9758
|
-
_context.next = 9;
|
|
9759
|
-
break;
|
|
9760
|
-
}
|
|
9761
|
-
_context.next = 6;
|
|
9762
|
-
return remoteSource.converter({
|
|
9763
|
-
data: [data]
|
|
9764
|
-
});
|
|
9765
|
-
case 6:
|
|
9766
|
-
coverData = _context.sent;
|
|
9767
|
-
_context.next = 11;
|
|
9737
|
+
while (1) switch (_context.prev = _context.next) {
|
|
9738
|
+
case 0:
|
|
9739
|
+
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
9740
|
+
if (!(resData.status === '0' || resData.code === '000000')) {
|
|
9741
|
+
_context.next = 13;
|
|
9768
9742
|
break;
|
|
9769
|
-
|
|
9770
|
-
|
|
9771
|
-
|
|
9772
|
-
|
|
9773
|
-
}) || [];
|
|
9774
|
-
case 11:
|
|
9775
|
-
_context.next = 14;
|
|
9743
|
+
}
|
|
9744
|
+
data = resData.data;
|
|
9745
|
+
if (!remoteSource.converter) {
|
|
9746
|
+
_context.next = 9;
|
|
9776
9747
|
break;
|
|
9777
|
-
|
|
9778
|
-
|
|
9779
|
-
|
|
9780
|
-
|
|
9781
|
-
|
|
9782
|
-
|
|
9783
|
-
|
|
9784
|
-
|
|
9785
|
-
|
|
9748
|
+
}
|
|
9749
|
+
_context.next = 6;
|
|
9750
|
+
return remoteSource.converter({
|
|
9751
|
+
data: [data]
|
|
9752
|
+
});
|
|
9753
|
+
case 6:
|
|
9754
|
+
coverData = _context.sent;
|
|
9755
|
+
_context.next = 11;
|
|
9756
|
+
break;
|
|
9757
|
+
case 9:
|
|
9758
|
+
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
9759
|
+
coverData = dataList.length && dataList.map(function (ites) {
|
|
9760
|
+
return mapSearchTree(ites);
|
|
9761
|
+
}) || [];
|
|
9762
|
+
case 11:
|
|
9763
|
+
_context.next = 14;
|
|
9764
|
+
break;
|
|
9765
|
+
case 13:
|
|
9766
|
+
coverData = [];
|
|
9767
|
+
case 14:
|
|
9768
|
+
setTreeData(coverData);
|
|
9769
|
+
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
|
|
9770
|
+
case 16:
|
|
9771
|
+
case "end":
|
|
9772
|
+
return _context.stop();
|
|
9786
9773
|
}
|
|
9787
9774
|
}, _callee);
|
|
9788
9775
|
}));
|
|
@@ -9989,7 +9976,7 @@ var BusinessTreeSearchSelect$1 = /*#__PURE__*/React__default['default'].memo(Bus
|
|
|
9989
9976
|
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";
|
|
9990
9977
|
styleInject(css_248z$8);
|
|
9991
9978
|
|
|
9992
|
-
var index$
|
|
9979
|
+
var index$3 = (function (props) {
|
|
9993
9980
|
var _props$formStatusMapp = props.formStatusMapping,
|
|
9994
9981
|
formStatusMapping = _props$formStatusMapp === void 0 ? [] : _props$formStatusMapp;
|
|
9995
9982
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -11413,7 +11400,7 @@ var iconMap = {
|
|
|
11413
11400
|
src: moreIcon
|
|
11414
11401
|
})
|
|
11415
11402
|
};
|
|
11416
|
-
var index$
|
|
11403
|
+
var index$4 = (function (props) {
|
|
11417
11404
|
var _useLocation = umi.useLocation(),
|
|
11418
11405
|
pathname = _useLocation.pathname;
|
|
11419
11406
|
var _useState = React.useState(pathname + 'id'),
|
|
@@ -11630,7 +11617,7 @@ var css_248z$d = ".home_page_head {\n height: 54px;\n display: flex;\n justif
|
|
|
11630
11617
|
styleInject(css_248z$d);
|
|
11631
11618
|
|
|
11632
11619
|
var _excluded$c = ["children"];
|
|
11633
|
-
var index$
|
|
11620
|
+
var index$5 = (function (props) {
|
|
11634
11621
|
var _useLocation = umi.useLocation(),
|
|
11635
11622
|
pathname = _useLocation.pathname;
|
|
11636
11623
|
var _useState = React.useState(pathname + 'id'),
|
|
@@ -13906,21 +13893,19 @@ function _outLogin() {
|
|
|
13906
13893
|
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
13907
13894
|
var res;
|
|
13908
13895
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
13909
|
-
while (1) {
|
|
13910
|
-
|
|
13911
|
-
|
|
13912
|
-
|
|
13913
|
-
|
|
13914
|
-
|
|
13915
|
-
|
|
13916
|
-
|
|
13917
|
-
|
|
13918
|
-
|
|
13919
|
-
|
|
13920
|
-
|
|
13921
|
-
|
|
13922
|
-
return _context.stop();
|
|
13923
|
-
}
|
|
13896
|
+
while (1) switch (_context.prev = _context.next) {
|
|
13897
|
+
case 0:
|
|
13898
|
+
_context.next = 2;
|
|
13899
|
+
return axios__default['default']({
|
|
13900
|
+
url: '/user/web/loginOut',
|
|
13901
|
+
method: 'GET'
|
|
13902
|
+
});
|
|
13903
|
+
case 2:
|
|
13904
|
+
res = _context.sent;
|
|
13905
|
+
return _context.abrupt("return", res);
|
|
13906
|
+
case 4:
|
|
13907
|
+
case "end":
|
|
13908
|
+
return _context.stop();
|
|
13924
13909
|
}
|
|
13925
13910
|
}, _callee);
|
|
13926
13911
|
}));
|
|
@@ -14049,31 +14034,29 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
14049
14034
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
14050
14035
|
var sessionId;
|
|
14051
14036
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
14052
|
-
while (1) {
|
|
14053
|
-
|
|
14054
|
-
|
|
14055
|
-
|
|
14056
|
-
|
|
14057
|
-
|
|
14058
|
-
|
|
14059
|
-
|
|
14060
|
-
|
|
14061
|
-
|
|
14037
|
+
while (1) switch (_context.prev = _context.next) {
|
|
14038
|
+
case 0:
|
|
14039
|
+
_context.next = 2;
|
|
14040
|
+
return getSessionId();
|
|
14041
|
+
case 2:
|
|
14042
|
+
sessionId = _context.sent;
|
|
14043
|
+
_context.next = 5;
|
|
14044
|
+
return outLogin({
|
|
14045
|
+
sessionId: sessionId
|
|
14046
|
+
});
|
|
14047
|
+
case 5:
|
|
14048
|
+
// @ts-ignore
|
|
14049
|
+
if (BUILD_TYPE) {
|
|
14050
|
+
antd.message.success('退出登录成功');
|
|
14051
|
+
umi.history.replace({
|
|
14052
|
+
pathname: '/user/login'
|
|
14062
14053
|
});
|
|
14063
|
-
|
|
14064
|
-
|
|
14065
|
-
|
|
14066
|
-
|
|
14067
|
-
|
|
14068
|
-
|
|
14069
|
-
});
|
|
14070
|
-
} else {
|
|
14071
|
-
setLoginOutPath();
|
|
14072
|
-
}
|
|
14073
|
-
case 6:
|
|
14074
|
-
case "end":
|
|
14075
|
-
return _context.stop();
|
|
14076
|
-
}
|
|
14054
|
+
} else {
|
|
14055
|
+
setLoginOutPath();
|
|
14056
|
+
}
|
|
14057
|
+
case 6:
|
|
14058
|
+
case "end":
|
|
14059
|
+
return _context.stop();
|
|
14077
14060
|
}
|
|
14078
14061
|
}, _callee);
|
|
14079
14062
|
}));
|
|
@@ -15901,6 +15884,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
15901
15884
|
showSubMenu: isShow
|
|
15902
15885
|
});
|
|
15903
15886
|
}, 500);
|
|
15887
|
+
//设置tabs标签左右滚动
|
|
15904
15888
|
_this.setTabNavTransLate = function (num) {
|
|
15905
15889
|
var _document$getElementB, _document$getElementB2, _document$getElementB3, _document$getElementB4, _document$defaultView;
|
|
15906
15890
|
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];
|
|
@@ -16581,14 +16565,12 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
16581
16565
|
request: function () {
|
|
16582
16566
|
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
16583
16567
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
16584
|
-
while (1) {
|
|
16585
|
-
|
|
16586
|
-
|
|
16587
|
-
|
|
16588
|
-
|
|
16589
|
-
|
|
16590
|
-
return _context.stop();
|
|
16591
|
-
}
|
|
16568
|
+
while (1) switch (_context.prev = _context.next) {
|
|
16569
|
+
case 0:
|
|
16570
|
+
return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
|
|
16571
|
+
case 1:
|
|
16572
|
+
case "end":
|
|
16573
|
+
return _context.stop();
|
|
16592
16574
|
}
|
|
16593
16575
|
}, _callee);
|
|
16594
16576
|
}));
|
|
@@ -16726,7 +16708,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
16726
16708
|
}]);
|
|
16727
16709
|
return WrapperComponent;
|
|
16728
16710
|
}(React__default['default'].Component);
|
|
16729
|
-
var index$
|
|
16711
|
+
var index$6 = (function (props) {
|
|
16730
16712
|
var _useModel = umi.useModel('@@initialState'),
|
|
16731
16713
|
_useModel$initialStat = _useModel.initialState,
|
|
16732
16714
|
initialState = _useModel$initialStat === void 0 ? {} : _useModel$initialStat;
|
|
@@ -16967,7 +16949,7 @@ var FixedScrollBar = function FixedScrollBar(_ref, ref) {
|
|
|
16967
16949
|
};
|
|
16968
16950
|
var FixedScrollBar$1 = /*#__PURE__*/React__default['default'].forwardRef(FixedScrollBar);
|
|
16969
16951
|
|
|
16970
|
-
var index$
|
|
16952
|
+
var index$7 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
16971
16953
|
var _useState = React.useState(false),
|
|
16972
16954
|
_useState2 = _slicedToArray(_useState, 2),
|
|
16973
16955
|
show = _useState2[0],
|
|
@@ -24268,28 +24250,26 @@ var valueType = {
|
|
|
24268
24250
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
24269
24251
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
24270
24252
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
24271
|
-
while (1) {
|
|
24272
|
-
|
|
24273
|
-
|
|
24274
|
-
|
|
24275
|
-
|
|
24276
|
-
|
|
24277
|
-
|
|
24278
|
-
|
|
24279
|
-
return
|
|
24280
|
-
|
|
24281
|
-
|
|
24282
|
-
|
|
24283
|
-
|
|
24284
|
-
|
|
24285
|
-
|
|
24286
|
-
|
|
24287
|
-
|
|
24288
|
-
|
|
24289
|
-
|
|
24290
|
-
|
|
24291
|
-
return _context.stop();
|
|
24292
|
-
}
|
|
24253
|
+
while (1) switch (_context.prev = _context.next) {
|
|
24254
|
+
case 0:
|
|
24255
|
+
_context.next = 2;
|
|
24256
|
+
return bssula.request({
|
|
24257
|
+
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
24258
|
+
converter: function converter(_ref2) {
|
|
24259
|
+
var data = _ref2.data;
|
|
24260
|
+
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
24261
|
+
return {
|
|
24262
|
+
text: d.name,
|
|
24263
|
+
value: d.code || d.brandCode
|
|
24264
|
+
};
|
|
24265
|
+
});
|
|
24266
|
+
}
|
|
24267
|
+
});
|
|
24268
|
+
case 2:
|
|
24269
|
+
return _context.abrupt("return", _context.sent);
|
|
24270
|
+
case 3:
|
|
24271
|
+
case "end":
|
|
24272
|
+
return _context.stop();
|
|
24293
24273
|
}
|
|
24294
24274
|
}, _callee);
|
|
24295
24275
|
}));
|
|
@@ -24339,55 +24319,53 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
24339
24319
|
ahooks.useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
24340
24320
|
var _ref$current, source;
|
|
24341
24321
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
24342
|
-
while (1) {
|
|
24343
|
-
|
|
24344
|
-
|
|
24345
|
-
|
|
24346
|
-
|
|
24347
|
-
|
|
24348
|
-
|
|
24349
|
-
|
|
24350
|
-
|
|
24351
|
-
|
|
24352
|
-
};
|
|
24353
|
-
}
|
|
24354
|
-
return prev;
|
|
24355
|
-
});
|
|
24356
|
-
case 2:
|
|
24357
|
-
if (!record.dictionaryCode) {
|
|
24358
|
-
_context.next = 17;
|
|
24359
|
-
break;
|
|
24360
|
-
}
|
|
24361
|
-
if (!(record.choiceType == 20)) {
|
|
24362
|
-
_context.next = 7;
|
|
24363
|
-
break;
|
|
24322
|
+
while (1) switch (_context.prev = _context.next) {
|
|
24323
|
+
case 0:
|
|
24324
|
+
_context.next = 2;
|
|
24325
|
+
return setIsShowAndType(function (prev) {
|
|
24326
|
+
if (record.inputType === 20 || record.inputType === 30) {
|
|
24327
|
+
return {
|
|
24328
|
+
isShow: true,
|
|
24329
|
+
singleOrMultiple: record.inputType,
|
|
24330
|
+
type: record.choiceType
|
|
24331
|
+
};
|
|
24364
24332
|
}
|
|
24365
|
-
|
|
24366
|
-
|
|
24333
|
+
return prev;
|
|
24334
|
+
});
|
|
24335
|
+
case 2:
|
|
24336
|
+
if (!record.dictionaryCode) {
|
|
24337
|
+
_context.next = 17;
|
|
24367
24338
|
break;
|
|
24368
|
-
|
|
24369
|
-
|
|
24370
|
-
|
|
24371
|
-
break;
|
|
24372
|
-
}
|
|
24373
|
-
_context.next = 10;
|
|
24374
|
-
return getDynamicDict(record.dictionaryCode);
|
|
24375
|
-
case 10:
|
|
24376
|
-
_context.t1 = _context.sent;
|
|
24377
|
-
_context.next = 14;
|
|
24339
|
+
}
|
|
24340
|
+
if (!(record.choiceType == 20)) {
|
|
24341
|
+
_context.next = 7;
|
|
24378
24342
|
break;
|
|
24379
|
-
|
|
24380
|
-
|
|
24381
|
-
|
|
24382
|
-
|
|
24383
|
-
|
|
24384
|
-
|
|
24385
|
-
|
|
24386
|
-
|
|
24387
|
-
|
|
24388
|
-
|
|
24389
|
-
|
|
24390
|
-
|
|
24343
|
+
}
|
|
24344
|
+
_context.t0 = getDictionarySource(record.dictionaryCode);
|
|
24345
|
+
_context.next = 15;
|
|
24346
|
+
break;
|
|
24347
|
+
case 7:
|
|
24348
|
+
if (!(record.choiceType == 30)) {
|
|
24349
|
+
_context.next = 13;
|
|
24350
|
+
break;
|
|
24351
|
+
}
|
|
24352
|
+
_context.next = 10;
|
|
24353
|
+
return getDynamicDict(record.dictionaryCode);
|
|
24354
|
+
case 10:
|
|
24355
|
+
_context.t1 = _context.sent;
|
|
24356
|
+
_context.next = 14;
|
|
24357
|
+
break;
|
|
24358
|
+
case 13:
|
|
24359
|
+
_context.t1 = [];
|
|
24360
|
+
case 14:
|
|
24361
|
+
_context.t0 = _context.t1;
|
|
24362
|
+
case 15:
|
|
24363
|
+
source = _context.t0;
|
|
24364
|
+
// @ts-ignore
|
|
24365
|
+
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
24366
|
+
case 17:
|
|
24367
|
+
case "end":
|
|
24368
|
+
return _context.stop();
|
|
24391
24369
|
}
|
|
24392
24370
|
}, _callee);
|
|
24393
24371
|
})));
|
|
@@ -24455,30 +24433,28 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
24455
24433
|
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
24456
24434
|
var form, values, name, relates, source;
|
|
24457
24435
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
24458
|
-
while (1) {
|
|
24459
|
-
|
|
24460
|
-
|
|
24461
|
-
|
|
24462
|
-
if (values[0]) {
|
|
24463
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
24464
|
-
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
24465
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
24466
|
-
}
|
|
24467
|
-
if (!values[1]) {
|
|
24468
|
-
_context2.next = 9;
|
|
24469
|
-
break;
|
|
24470
|
-
}
|
|
24471
|
-
_context2.next = 5;
|
|
24472
|
-
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
24473
|
-
case 5:
|
|
24474
|
-
source = _context2.sent;
|
|
24436
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
24437
|
+
case 0:
|
|
24438
|
+
form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
|
|
24439
|
+
if (values[0]) {
|
|
24475
24440
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
24476
24441
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
24477
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0],
|
|
24478
|
-
|
|
24479
|
-
|
|
24480
|
-
|
|
24481
|
-
|
|
24442
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
24443
|
+
}
|
|
24444
|
+
if (!values[1]) {
|
|
24445
|
+
_context2.next = 9;
|
|
24446
|
+
break;
|
|
24447
|
+
}
|
|
24448
|
+
_context2.next = 5;
|
|
24449
|
+
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
24450
|
+
case 5:
|
|
24451
|
+
source = _context2.sent;
|
|
24452
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
24453
|
+
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
24454
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
24455
|
+
case 9:
|
|
24456
|
+
case "end":
|
|
24457
|
+
return _context2.stop();
|
|
24482
24458
|
}
|
|
24483
24459
|
}, _callee2);
|
|
24484
24460
|
}));
|
|
@@ -24938,43 +24914,41 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
24938
24914
|
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
24939
24915
|
var values, name, form, source;
|
|
24940
24916
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
24941
|
-
while (1) {
|
|
24942
|
-
|
|
24943
|
-
|
|
24944
|
-
|
|
24945
|
-
|
|
24946
|
-
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
24947
|
-
form.setFieldVisible(name, false);
|
|
24948
|
-
}
|
|
24949
|
-
if (!(values[0] === 30)) {
|
|
24950
|
-
_context3.next = 10;
|
|
24951
|
-
break;
|
|
24952
|
-
}
|
|
24953
|
-
_context3.next = 5;
|
|
24954
|
-
return bssula.request({
|
|
24955
|
-
url: '/basic/dictDynamicItem/queryList',
|
|
24956
|
-
converter: function converter(_ref11) {
|
|
24957
|
-
var data = _ref11.data;
|
|
24958
|
-
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
24959
|
-
return {
|
|
24960
|
-
text: d.dictCode,
|
|
24961
|
-
value: d.dictCode
|
|
24962
|
-
};
|
|
24963
|
-
});
|
|
24964
|
-
}
|
|
24965
|
-
});
|
|
24966
|
-
case 5:
|
|
24967
|
-
source = _context3.sent;
|
|
24968
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
24969
|
-
form.setFieldVisible(name, true);
|
|
24970
|
-
_context3.next = 11;
|
|
24971
|
-
break;
|
|
24972
|
-
case 10:
|
|
24917
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
24918
|
+
case 0:
|
|
24919
|
+
values = _ref10.values, name = _ref10.name, form = _ref10.form;
|
|
24920
|
+
if (values[1] === 40) {
|
|
24921
|
+
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
24973
24922
|
form.setFieldVisible(name, false);
|
|
24974
|
-
|
|
24975
|
-
|
|
24976
|
-
|
|
24977
|
-
|
|
24923
|
+
}
|
|
24924
|
+
if (!(values[0] === 30)) {
|
|
24925
|
+
_context3.next = 10;
|
|
24926
|
+
break;
|
|
24927
|
+
}
|
|
24928
|
+
_context3.next = 5;
|
|
24929
|
+
return bssula.request({
|
|
24930
|
+
url: '/basic/dictDynamicItem/queryList',
|
|
24931
|
+
converter: function converter(_ref11) {
|
|
24932
|
+
var data = _ref11.data;
|
|
24933
|
+
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
24934
|
+
return {
|
|
24935
|
+
text: d.dictCode,
|
|
24936
|
+
value: d.dictCode
|
|
24937
|
+
};
|
|
24938
|
+
});
|
|
24939
|
+
}
|
|
24940
|
+
});
|
|
24941
|
+
case 5:
|
|
24942
|
+
source = _context3.sent;
|
|
24943
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
24944
|
+
form.setFieldVisible(name, true);
|
|
24945
|
+
_context3.next = 11;
|
|
24946
|
+
break;
|
|
24947
|
+
case 10:
|
|
24948
|
+
form.setFieldVisible(name, false);
|
|
24949
|
+
case 11:
|
|
24950
|
+
case "end":
|
|
24951
|
+
return _context3.stop();
|
|
24978
24952
|
}
|
|
24979
24953
|
}, _callee3);
|
|
24980
24954
|
}));
|
|
@@ -25163,66 +25137,64 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
25163
25137
|
var _ref$current4, _res$editableStatus;
|
|
25164
25138
|
var res, _res$defaultValue;
|
|
25165
25139
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
25166
|
-
while (1) {
|
|
25167
|
-
|
|
25168
|
-
|
|
25169
|
-
|
|
25170
|
-
|
|
25171
|
-
|
|
25172
|
-
|
|
25173
|
-
|
|
25174
|
-
|
|
25175
|
-
|
|
25176
|
-
res.
|
|
25177
|
-
|
|
25178
|
-
|
|
25179
|
-
|
|
25180
|
-
|
|
25181
|
-
|
|
25182
|
-
|
|
25183
|
-
|
|
25184
|
-
|
|
25185
|
-
|
|
25186
|
-
|
|
25187
|
-
|
|
25140
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
25141
|
+
case 0:
|
|
25142
|
+
_context4.next = 2;
|
|
25143
|
+
return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
|
|
25144
|
+
case 2:
|
|
25145
|
+
res = _context4.sent;
|
|
25146
|
+
res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
|
|
25147
|
+
res.fieldGroup = record.fieldGroup;
|
|
25148
|
+
res.businessType = record.businessType;
|
|
25149
|
+
res.info = {
|
|
25150
|
+
enumeration: res.enumeration,
|
|
25151
|
+
dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
|
|
25152
|
+
formula: res.formula,
|
|
25153
|
+
scale: res.scale,
|
|
25154
|
+
variable: res.variable
|
|
25155
|
+
};
|
|
25156
|
+
res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
|
|
25157
|
+
res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
|
|
25158
|
+
res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
|
|
25159
|
+
if (res.inputType === 40) {
|
|
25160
|
+
res.valueType = 22;
|
|
25161
|
+
}
|
|
25162
|
+
// 把数组处理成文本
|
|
25163
|
+
if (res.inputType === 30) {
|
|
25164
|
+
if (res.defaultValue) {
|
|
25165
|
+
res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
|
|
25188
25166
|
}
|
|
25189
|
-
|
|
25190
|
-
|
|
25191
|
-
|
|
25192
|
-
|
|
25193
|
-
|
|
25167
|
+
}
|
|
25168
|
+
res.fieldMapping = res.fieldMapping || '';
|
|
25169
|
+
delete res.formula;
|
|
25170
|
+
delete res.showValue;
|
|
25171
|
+
if (!(mode === 'create')) {
|
|
25172
|
+
_context4.next = 18;
|
|
25173
|
+
break;
|
|
25174
|
+
}
|
|
25175
|
+
bssula.request({
|
|
25176
|
+
url: "/basic/flow/businessField",
|
|
25177
|
+
method: 'POST',
|
|
25178
|
+
params: res,
|
|
25179
|
+
successMessage: '创建成功!',
|
|
25180
|
+
converter: function converter() {
|
|
25181
|
+
onParentOk();
|
|
25194
25182
|
}
|
|
25195
|
-
|
|
25196
|
-
|
|
25197
|
-
|
|
25198
|
-
|
|
25199
|
-
|
|
25200
|
-
|
|
25183
|
+
});
|
|
25184
|
+
return _context4.abrupt("return");
|
|
25185
|
+
case 18:
|
|
25186
|
+
bssula.request({
|
|
25187
|
+
url: "/basic/flow/businessField/".concat(record.id),
|
|
25188
|
+
method: 'PATCH',
|
|
25189
|
+
params: res,
|
|
25190
|
+
successMessage: '修改成功!',
|
|
25191
|
+
converter: function converter() {
|
|
25192
|
+
onParentOk();
|
|
25201
25193
|
}
|
|
25202
|
-
|
|
25203
|
-
|
|
25204
|
-
|
|
25205
|
-
|
|
25206
|
-
successMessage: '创建成功!',
|
|
25207
|
-
converter: function converter() {
|
|
25208
|
-
onParentOk();
|
|
25209
|
-
}
|
|
25210
|
-
});
|
|
25211
|
-
return _context4.abrupt("return");
|
|
25212
|
-
case 18:
|
|
25213
|
-
bssula.request({
|
|
25214
|
-
url: "/basic/flow/businessField/".concat(record.id),
|
|
25215
|
-
method: 'PATCH',
|
|
25216
|
-
params: res,
|
|
25217
|
-
successMessage: '修改成功!',
|
|
25218
|
-
converter: function converter() {
|
|
25219
|
-
onParentOk();
|
|
25220
|
-
}
|
|
25221
|
-
});
|
|
25222
|
-
case 19:
|
|
25223
|
-
case "end":
|
|
25224
|
-
return _context4.stop();
|
|
25225
|
-
}
|
|
25194
|
+
});
|
|
25195
|
+
case 19:
|
|
25196
|
+
case "end":
|
|
25197
|
+
return _context4.stop();
|
|
25226
25198
|
}
|
|
25227
25199
|
}, _callee4);
|
|
25228
25200
|
}));
|
|
@@ -26007,28 +25979,26 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
26007
25979
|
React.useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
26008
25980
|
var resData, data;
|
|
26009
25981
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26010
|
-
while (1) {
|
|
26011
|
-
|
|
26012
|
-
|
|
26013
|
-
|
|
26014
|
-
|
|
26015
|
-
|
|
26016
|
-
|
|
26017
|
-
|
|
26018
|
-
|
|
26019
|
-
|
|
26020
|
-
|
|
26021
|
-
|
|
26022
|
-
|
|
26023
|
-
|
|
26024
|
-
|
|
26025
|
-
|
|
26026
|
-
|
|
26027
|
-
|
|
26028
|
-
|
|
26029
|
-
|
|
26030
|
-
return _context.stop();
|
|
26031
|
-
}
|
|
25982
|
+
while (1) switch (_context.prev = _context.next) {
|
|
25983
|
+
case 0:
|
|
25984
|
+
if (!(!source && initRequestSource)) {
|
|
25985
|
+
_context.next = 6;
|
|
25986
|
+
break;
|
|
25987
|
+
}
|
|
25988
|
+
_context.next = 3;
|
|
25989
|
+
return initRequestSource();
|
|
25990
|
+
case 3:
|
|
25991
|
+
resData = _context.sent;
|
|
25992
|
+
data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
|
|
25993
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
25994
|
+
label: item.text,
|
|
25995
|
+
isLeaf: false
|
|
25996
|
+
});
|
|
25997
|
+
})) || [];
|
|
25998
|
+
setHandSource(data);
|
|
25999
|
+
case 6:
|
|
26000
|
+
case "end":
|
|
26001
|
+
return _context.stop();
|
|
26032
26002
|
}
|
|
26033
26003
|
}, _callee);
|
|
26034
26004
|
})), []);
|
|
@@ -26160,20 +26130,18 @@ function getRegularThresholdRange(_x) {
|
|
|
26160
26130
|
function _getRegularThresholdRange() {
|
|
26161
26131
|
_getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
26162
26132
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26163
|
-
while (1) {
|
|
26164
|
-
|
|
26165
|
-
|
|
26166
|
-
|
|
26167
|
-
|
|
26168
|
-
|
|
26169
|
-
|
|
26170
|
-
|
|
26171
|
-
|
|
26172
|
-
|
|
26173
|
-
|
|
26174
|
-
|
|
26175
|
-
return _context.stop();
|
|
26176
|
-
}
|
|
26133
|
+
while (1) switch (_context.prev = _context.next) {
|
|
26134
|
+
case 0:
|
|
26135
|
+
return _context.abrupt("return", axios__default['default']({
|
|
26136
|
+
url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
|
|
26137
|
+
method: 'POST',
|
|
26138
|
+
data: _objectSpread2(_objectSpread2({}, params), {}, {
|
|
26139
|
+
queryIdentify: undefined
|
|
26140
|
+
})
|
|
26141
|
+
}));
|
|
26142
|
+
case 1:
|
|
26143
|
+
case "end":
|
|
26144
|
+
return _context.stop();
|
|
26177
26145
|
}
|
|
26178
26146
|
}, _callee);
|
|
26179
26147
|
}));
|
|
@@ -26312,137 +26280,136 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26312
26280
|
_this.getRegularThresholdRange(queryIdentify, propertyCode, queryIdentifyType);
|
|
26313
26281
|
});
|
|
26314
26282
|
};
|
|
26283
|
+
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
26315
26284
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
26316
26285
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
26317
26286
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
26318
26287
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26319
|
-
while (1) {
|
|
26320
|
-
|
|
26321
|
-
|
|
26322
|
-
|
|
26323
|
-
|
|
26324
|
-
|
|
26325
|
-
|
|
26326
|
-
|
|
26327
|
-
|
|
26328
|
-
|
|
26329
|
-
|
|
26330
|
-
|
|
26331
|
-
|
|
26332
|
-
|
|
26333
|
-
|
|
26334
|
-
|
|
26335
|
-
|
|
26336
|
-
|
|
26337
|
-
|
|
26338
|
-
|
|
26339
|
-
|
|
26340
|
-
|
|
26341
|
-
|
|
26342
|
-
|
|
26343
|
-
|
|
26344
|
-
|
|
26345
|
-
|
|
26346
|
-
|
|
26347
|
-
|
|
26348
|
-
|
|
26349
|
-
|
|
26350
|
-
|
|
26351
|
-
|
|
26352
|
-
|
|
26353
|
-
|
|
26354
|
-
|
|
26355
|
-
|
|
26356
|
-
|
|
26357
|
-
|
|
26358
|
-
|
|
26359
|
-
|
|
26360
|
-
|
|
26361
|
-
|
|
26362
|
-
|
|
26363
|
-
|
|
26364
|
-
|
|
26365
|
-
|
|
26366
|
-
|
|
26367
|
-
|
|
26368
|
-
|
|
26369
|
-
|
|
26370
|
-
|
|
26371
|
-
|
|
26372
|
-
|
|
26373
|
-
|
|
26374
|
-
|
|
26375
|
-
|
|
26376
|
-
|
|
26377
|
-
|
|
26378
|
-
|
|
26379
|
-
|
|
26380
|
-
|
|
26381
|
-
|
|
26382
|
-
|
|
26383
|
-
|
|
26384
|
-
|
|
26385
|
-
|
|
26386
|
-
|
|
26387
|
-
|
|
26388
|
-
|
|
26389
|
-
|
|
26390
|
-
}) : [];
|
|
26391
|
-
}
|
|
26392
|
-
if (queryIdentifyType === 'dynamicDictCodeIdentify') {
|
|
26393
|
-
var _handleData3;
|
|
26394
|
-
_handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
|
|
26395
|
-
return {
|
|
26396
|
-
code: i.code.toString(),
|
|
26397
|
-
name: i.name
|
|
26398
|
-
};
|
|
26399
|
-
}) : [];
|
|
26400
|
-
}
|
|
26401
|
-
_this.setState({
|
|
26402
|
-
thresholdList: _handleData
|
|
26403
|
-
});
|
|
26288
|
+
while (1) switch (_context.prev = _context.next) {
|
|
26289
|
+
case 0:
|
|
26290
|
+
if (queryIdentify) {
|
|
26291
|
+
_context.next = 2;
|
|
26292
|
+
break;
|
|
26293
|
+
}
|
|
26294
|
+
return _context.abrupt("return");
|
|
26295
|
+
case 2:
|
|
26296
|
+
thresholdQuery = _this.state.thresholdQuery;
|
|
26297
|
+
extraRequestUrl = '';
|
|
26298
|
+
querParams = setParams(propertyCode, thresholdQuery);
|
|
26299
|
+
if (!queryIdentityInfo.find(function (item) {
|
|
26300
|
+
return item.identity == propertyCode;
|
|
26301
|
+
})) {
|
|
26302
|
+
_context.next = 10;
|
|
26303
|
+
break;
|
|
26304
|
+
}
|
|
26305
|
+
//判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
|
|
26306
|
+
needQueryList = queryIdentityInfo.find(function (item) {
|
|
26307
|
+
return item.identity == propertyCode;
|
|
26308
|
+
}).queryParam.filter(function (item) {
|
|
26309
|
+
return item.isRequired;
|
|
26310
|
+
}).map(function (item) {
|
|
26311
|
+
return item.queryKey;
|
|
26312
|
+
});
|
|
26313
|
+
if (!needQueryList.some(function (item) {
|
|
26314
|
+
return !querParams[item] || !querParams[item].length;
|
|
26315
|
+
})) {
|
|
26316
|
+
_context.next = 9;
|
|
26317
|
+
break;
|
|
26318
|
+
}
|
|
26319
|
+
return _context.abrupt("return");
|
|
26320
|
+
case 9:
|
|
26321
|
+
extraRequestUrl = queryIdentityInfo.find(function (item) {
|
|
26322
|
+
return item.identity == propertyCode;
|
|
26323
|
+
}).requestUrl || '';
|
|
26324
|
+
case 10:
|
|
26325
|
+
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
26326
|
+
extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
|
|
26327
|
+
querParams = {
|
|
26328
|
+
dictCode: queryIdentify
|
|
26329
|
+
};
|
|
26330
|
+
} else if (queryIdentifyType === 'dynamicDictCodeIdentify') {
|
|
26331
|
+
extraRequestUrl = "dictDynamicItem/getDynamicData/".concat(queryIdentify); // 字典接口
|
|
26332
|
+
// querParams = { dictCode: queryIdentify }
|
|
26333
|
+
}
|
|
26334
|
+
if (!extraRequestUrl) {
|
|
26335
|
+
_context.next = 16;
|
|
26336
|
+
break;
|
|
26337
|
+
}
|
|
26338
|
+
if (queryIdentify == 'maintain_area_code') {
|
|
26339
|
+
extraRequestUrl = "/basic/".concat(extraRequestUrl).concat(querParams.memberCardCode, "?").concat(querystring.stringify(querParams));
|
|
26340
|
+
} else if (queryIdentifyType == 'dictCodeIdentify') {
|
|
26341
|
+
extraRequestUrl = "/basic/".concat(extraRequestUrl, "?").concat(querystring.stringify(querParams));
|
|
26342
|
+
} else if (queryIdentifyType == 'dynamicDictCodeIdentify') {
|
|
26343
|
+
extraRequestUrl = "/basic/".concat(extraRequestUrl);
|
|
26344
|
+
}
|
|
26345
|
+
bssula.request({
|
|
26346
|
+
url: extraRequestUrl,
|
|
26347
|
+
method: 'get',
|
|
26348
|
+
converter: function converter(res) {
|
|
26349
|
+
if (handleError(res)) {
|
|
26350
|
+
var _handleData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
26351
|
+
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
26352
|
+
var _handleData2;
|
|
26353
|
+
_handleData = ((_handleData2 = _handleData) === null || _handleData2 === void 0 ? void 0 : _handleData2.length) ? _handleData.map(function (i) {
|
|
26354
|
+
return {
|
|
26355
|
+
code: i.dictItemCode,
|
|
26356
|
+
name: i.dictItemName
|
|
26357
|
+
};
|
|
26358
|
+
}) : [];
|
|
26404
26359
|
}
|
|
26405
|
-
|
|
26360
|
+
if (queryIdentifyType === 'dynamicDictCodeIdentify') {
|
|
26361
|
+
var _handleData3;
|
|
26362
|
+
_handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
|
|
26363
|
+
return {
|
|
26364
|
+
code: i.code.toString(),
|
|
26365
|
+
name: i.name
|
|
26366
|
+
};
|
|
26367
|
+
}) : [];
|
|
26368
|
+
}
|
|
26369
|
+
_this.setState({
|
|
26370
|
+
thresholdList: _handleData
|
|
26371
|
+
});
|
|
26406
26372
|
}
|
|
26407
|
-
|
|
26408
|
-
_context.next = 29;
|
|
26409
|
-
break;
|
|
26410
|
-
case 16:
|
|
26411
|
-
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
26412
|
-
_context.next = 20;
|
|
26413
|
-
break;
|
|
26373
|
+
return handleData;
|
|
26414
26374
|
}
|
|
26415
|
-
|
|
26416
|
-
|
|
26417
|
-
|
|
26418
|
-
|
|
26375
|
+
});
|
|
26376
|
+
_context.next = 29;
|
|
26377
|
+
break;
|
|
26378
|
+
case 16:
|
|
26379
|
+
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
26380
|
+
_context.next = 20;
|
|
26419
26381
|
break;
|
|
26420
|
-
|
|
26421
|
-
|
|
26422
|
-
|
|
26423
|
-
|
|
26424
|
-
|
|
26425
|
-
|
|
26382
|
+
}
|
|
26383
|
+
_this.setState({
|
|
26384
|
+
thresholdList: queryIdentify
|
|
26385
|
+
});
|
|
26386
|
+
_context.next = 29;
|
|
26387
|
+
break;
|
|
26388
|
+
case 20:
|
|
26389
|
+
if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
|
|
26390
|
+
_context.next = 24;
|
|
26391
|
+
break;
|
|
26392
|
+
}
|
|
26393
|
+
// TODO待处理
|
|
26394
|
+
_this.setState({
|
|
26395
|
+
thresholdList: []
|
|
26396
|
+
});
|
|
26397
|
+
_context.next = 29;
|
|
26398
|
+
break;
|
|
26399
|
+
case 24:
|
|
26400
|
+
querParams.queryIdentify = queryIdentify;
|
|
26401
|
+
_context.next = 27;
|
|
26402
|
+
return getRegularThresholdRange(querParams);
|
|
26403
|
+
case 27:
|
|
26404
|
+
res = _context.sent;
|
|
26405
|
+
if (handleError(res)) {
|
|
26426
26406
|
_this.setState({
|
|
26427
|
-
thresholdList: []
|
|
26407
|
+
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
26428
26408
|
});
|
|
26429
|
-
|
|
26430
|
-
|
|
26431
|
-
|
|
26432
|
-
|
|
26433
|
-
_context.next = 27;
|
|
26434
|
-
return getRegularThresholdRange(querParams);
|
|
26435
|
-
case 27:
|
|
26436
|
-
res = _context.sent;
|
|
26437
|
-
if (handleError(res)) {
|
|
26438
|
-
_this.setState({
|
|
26439
|
-
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
26440
|
-
});
|
|
26441
|
-
}
|
|
26442
|
-
case 29:
|
|
26443
|
-
case "end":
|
|
26444
|
-
return _context.stop();
|
|
26445
|
-
}
|
|
26409
|
+
}
|
|
26410
|
+
case 29:
|
|
26411
|
+
case "end":
|
|
26412
|
+
return _context.stop();
|
|
26446
26413
|
}
|
|
26447
26414
|
}, _callee);
|
|
26448
26415
|
}));
|
|
@@ -26626,6 +26593,16 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26626
26593
|
}
|
|
26627
26594
|
}));
|
|
26628
26595
|
} else {
|
|
26596
|
+
var _values;
|
|
26597
|
+
var currentValue = dataInputBusinessType === 12 ? ((_values = values) === null || _values === void 0 ? void 0 : _values.map(function (s, vIndex) {
|
|
26598
|
+
return {
|
|
26599
|
+
key: s,
|
|
26600
|
+
label: valueNames[vIndex]
|
|
26601
|
+
};
|
|
26602
|
+
})) || [] : values[0] && {
|
|
26603
|
+
key: values[0],
|
|
26604
|
+
label: valueNames[0]
|
|
26605
|
+
} || {};
|
|
26629
26606
|
return /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
26630
26607
|
selectBusinessType: "physicalWarehouse",
|
|
26631
26608
|
selectProps: _objectSpread2({
|
|
@@ -26637,7 +26614,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26637
26614
|
} : {}),
|
|
26638
26615
|
disabled: disabled,
|
|
26639
26616
|
labelInValue: true,
|
|
26640
|
-
value:
|
|
26617
|
+
value: currentValue,
|
|
26641
26618
|
requestConfig: {
|
|
26642
26619
|
mappingValueField: 'physicalWarehouseCode',
|
|
26643
26620
|
filterInit: 'qp-physicalWarehouseCode-in'
|
|
@@ -26646,13 +26623,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26646
26623
|
if (dataInputBusinessType === 12) {
|
|
26647
26624
|
values = value.map(function (i) {
|
|
26648
26625
|
return i.key;
|
|
26649
|
-
});
|
|
26626
|
+
}) || [];
|
|
26650
26627
|
valueNames = value.map(function (i) {
|
|
26651
26628
|
return i.label || '';
|
|
26652
|
-
});
|
|
26629
|
+
}) || [];
|
|
26653
26630
|
} else {
|
|
26654
|
-
values = [value.key];
|
|
26655
|
-
valueNames = [value.label
|
|
26631
|
+
values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
|
|
26632
|
+
valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
|
|
26656
26633
|
}
|
|
26657
26634
|
callback(values, valueNames);
|
|
26658
26635
|
},
|
|
@@ -26733,6 +26710,16 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26733
26710
|
}
|
|
26734
26711
|
}));
|
|
26735
26712
|
} else {
|
|
26713
|
+
var _values2;
|
|
26714
|
+
var _currentValue = dataInputBusinessType === 12 ? ((_values2 = values) === null || _values2 === void 0 ? void 0 : _values2.map(function (s, vIndex) {
|
|
26715
|
+
return {
|
|
26716
|
+
key: s,
|
|
26717
|
+
label: valueNames[vIndex]
|
|
26718
|
+
};
|
|
26719
|
+
})) || [] : values[0] && {
|
|
26720
|
+
key: values[0],
|
|
26721
|
+
label: valueNames[0]
|
|
26722
|
+
} || {};
|
|
26736
26723
|
return /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
26737
26724
|
selectBusinessType: "realWarehouse",
|
|
26738
26725
|
selectProps: _objectSpread2({
|
|
@@ -26744,7 +26731,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26744
26731
|
} : {}),
|
|
26745
26732
|
disabled: disabled,
|
|
26746
26733
|
labelInValue: true,
|
|
26747
|
-
value:
|
|
26734
|
+
value: _currentValue,
|
|
26748
26735
|
requestConfig: {
|
|
26749
26736
|
mappingValueField: 'realWarehouseCode',
|
|
26750
26737
|
filterInit: 'qp-realWarehouseCode-in'
|
|
@@ -26753,13 +26740,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26753
26740
|
if (dataInputBusinessType === 12) {
|
|
26754
26741
|
values = value.map(function (i) {
|
|
26755
26742
|
return i.key;
|
|
26756
|
-
});
|
|
26743
|
+
}) || [];
|
|
26757
26744
|
valueNames = value.map(function (i) {
|
|
26758
26745
|
return i.label || '';
|
|
26759
|
-
});
|
|
26746
|
+
}) || [];
|
|
26760
26747
|
} else {
|
|
26761
|
-
values = [value.key];
|
|
26762
|
-
valueNames = [value.label
|
|
26748
|
+
values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
|
|
26749
|
+
valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
|
|
26763
26750
|
}
|
|
26764
26751
|
callback(values, valueNames);
|
|
26765
26752
|
},
|
|
@@ -26840,6 +26827,16 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26840
26827
|
}
|
|
26841
26828
|
}));
|
|
26842
26829
|
} else {
|
|
26830
|
+
var _values3;
|
|
26831
|
+
var _currentValue2 = dataInputBusinessType === 12 ? ((_values3 = values) === null || _values3 === void 0 ? void 0 : _values3.map(function (s, vIndex) {
|
|
26832
|
+
return {
|
|
26833
|
+
key: s,
|
|
26834
|
+
label: valueNames[vIndex]
|
|
26835
|
+
};
|
|
26836
|
+
})) || [] : values[0] && {
|
|
26837
|
+
key: values[0],
|
|
26838
|
+
label: valueNames[0]
|
|
26839
|
+
} || {};
|
|
26843
26840
|
return /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
26844
26841
|
selectBusinessType: "virtualWarehouse",
|
|
26845
26842
|
selectProps: _objectSpread2({
|
|
@@ -26851,7 +26848,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26851
26848
|
} : {}),
|
|
26852
26849
|
disabled: disabled,
|
|
26853
26850
|
labelInValue: true,
|
|
26854
|
-
value:
|
|
26851
|
+
value: _currentValue2,
|
|
26855
26852
|
requestConfig: {
|
|
26856
26853
|
mappingValueField: 'virtualWarehouseCode',
|
|
26857
26854
|
filterInit: 'qp-virtualWarehouseCode-in'
|
|
@@ -26860,13 +26857,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26860
26857
|
if (dataInputBusinessType === 12) {
|
|
26861
26858
|
values = value.map(function (i) {
|
|
26862
26859
|
return i.key;
|
|
26863
|
-
});
|
|
26860
|
+
}) || [];
|
|
26864
26861
|
valueNames = value.map(function (i) {
|
|
26865
26862
|
return i.label || '';
|
|
26866
|
-
});
|
|
26863
|
+
}) || [];
|
|
26867
26864
|
} else {
|
|
26868
|
-
values = [value.key];
|
|
26869
|
-
valueNames = [value.label
|
|
26865
|
+
values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
|
|
26866
|
+
valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
|
|
26870
26867
|
}
|
|
26871
26868
|
callback(values, valueNames);
|
|
26872
26869
|
},
|
|
@@ -26947,6 +26944,16 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26947
26944
|
}
|
|
26948
26945
|
}));
|
|
26949
26946
|
} else {
|
|
26947
|
+
var _values4;
|
|
26948
|
+
var _currentValue3 = dataInputBusinessType === 12 ? ((_values4 = values) === null || _values4 === void 0 ? void 0 : _values4.map(function (s, vIndex) {
|
|
26949
|
+
return {
|
|
26950
|
+
key: s,
|
|
26951
|
+
label: valueNames[vIndex]
|
|
26952
|
+
};
|
|
26953
|
+
})) || [] : values[0] && {
|
|
26954
|
+
key: values[0],
|
|
26955
|
+
label: valueNames[0]
|
|
26956
|
+
} || {};
|
|
26950
26957
|
return /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
26951
26958
|
selectBusinessType: "channelWarehouse",
|
|
26952
26959
|
selectProps: _objectSpread2({
|
|
@@ -26958,7 +26965,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26958
26965
|
} : {}),
|
|
26959
26966
|
disabled: disabled,
|
|
26960
26967
|
labelInValue: true,
|
|
26961
|
-
value:
|
|
26968
|
+
value: _currentValue3,
|
|
26962
26969
|
requestConfig: {
|
|
26963
26970
|
mappingValueField: 'channelWarehouseCode',
|
|
26964
26971
|
filterInit: 'qp-channelWarehouseCode-in'
|
|
@@ -26967,13 +26974,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26967
26974
|
if (dataInputBusinessType === 12) {
|
|
26968
26975
|
values = value.map(function (i) {
|
|
26969
26976
|
return i.key;
|
|
26970
|
-
});
|
|
26977
|
+
}) || [];
|
|
26971
26978
|
valueNames = value.map(function (i) {
|
|
26972
26979
|
return i.label || '';
|
|
26973
|
-
});
|
|
26980
|
+
}) || [];
|
|
26974
26981
|
} else {
|
|
26975
|
-
values = [value.key];
|
|
26976
|
-
valueNames = [value.label
|
|
26982
|
+
values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
|
|
26983
|
+
valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
|
|
26977
26984
|
}
|
|
26978
26985
|
callback(values, valueNames);
|
|
26979
26986
|
},
|
|
@@ -27052,6 +27059,16 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27052
27059
|
}
|
|
27053
27060
|
}));
|
|
27054
27061
|
} else {
|
|
27062
|
+
var _values5;
|
|
27063
|
+
var _currentValue4 = dataInputBusinessType === 12 ? ((_values5 = values) === null || _values5 === void 0 ? void 0 : _values5.map(function (s, vIndex) {
|
|
27064
|
+
return {
|
|
27065
|
+
key: s,
|
|
27066
|
+
label: valueNames[vIndex]
|
|
27067
|
+
};
|
|
27068
|
+
})) || [] : values[0] && {
|
|
27069
|
+
key: values[0],
|
|
27070
|
+
label: valueNames[0]
|
|
27071
|
+
} || {};
|
|
27055
27072
|
return /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
27056
27073
|
selectBusinessType: "spuCommodity",
|
|
27057
27074
|
selectProps: _objectSpread2({
|
|
@@ -27063,7 +27080,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27063
27080
|
} : {}),
|
|
27064
27081
|
disabled: disabled,
|
|
27065
27082
|
labelInValue: true,
|
|
27066
|
-
value:
|
|
27083
|
+
value: _currentValue4,
|
|
27067
27084
|
requestConfig: {
|
|
27068
27085
|
filterInit: 'qp-itemCode-in'
|
|
27069
27086
|
},
|
|
@@ -27071,13 +27088,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27071
27088
|
if (dataInputBusinessType === 12) {
|
|
27072
27089
|
values = value.map(function (i) {
|
|
27073
27090
|
return i.key;
|
|
27074
|
-
});
|
|
27091
|
+
}) || [];
|
|
27075
27092
|
valueNames = value.map(function (i) {
|
|
27076
27093
|
return i.label || '';
|
|
27077
|
-
});
|
|
27094
|
+
}) || [];
|
|
27078
27095
|
} else {
|
|
27079
|
-
values = [value.key];
|
|
27080
|
-
valueNames = [value.label
|
|
27096
|
+
values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
|
|
27097
|
+
valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
|
|
27081
27098
|
}
|
|
27082
27099
|
callback(values, valueNames);
|
|
27083
27100
|
},
|
|
@@ -27156,6 +27173,16 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27156
27173
|
}
|
|
27157
27174
|
}));
|
|
27158
27175
|
} else {
|
|
27176
|
+
var _values6;
|
|
27177
|
+
var _currentValue5 = dataInputBusinessType === 12 ? ((_values6 = values) === null || _values6 === void 0 ? void 0 : _values6.map(function (s, vIndex) {
|
|
27178
|
+
return {
|
|
27179
|
+
key: s,
|
|
27180
|
+
label: valueNames[vIndex]
|
|
27181
|
+
};
|
|
27182
|
+
})) || [] : values[0] && {
|
|
27183
|
+
key: values[0],
|
|
27184
|
+
label: valueNames[0]
|
|
27185
|
+
} || {};
|
|
27159
27186
|
return /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
27160
27187
|
selectBusinessType: "skuCommodity",
|
|
27161
27188
|
selectProps: _objectSpread2({
|
|
@@ -27167,7 +27194,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27167
27194
|
} : {}),
|
|
27168
27195
|
disabled: disabled,
|
|
27169
27196
|
labelInValue: true,
|
|
27170
|
-
value:
|
|
27197
|
+
value: _currentValue5,
|
|
27171
27198
|
requestConfig: {
|
|
27172
27199
|
filterInit: 'qp-skuCode-in'
|
|
27173
27200
|
},
|
|
@@ -27175,13 +27202,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27175
27202
|
if (dataInputBusinessType === 12) {
|
|
27176
27203
|
values = value.map(function (i) {
|
|
27177
27204
|
return i.key;
|
|
27178
|
-
});
|
|
27205
|
+
}) || [];
|
|
27179
27206
|
valueNames = value.map(function (i) {
|
|
27180
27207
|
return i.label || '';
|
|
27181
|
-
});
|
|
27208
|
+
}) || [];
|
|
27182
27209
|
} else {
|
|
27183
|
-
values = [value.key];
|
|
27184
|
-
valueNames = [value.label
|
|
27210
|
+
values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
|
|
27211
|
+
valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
|
|
27185
27212
|
}
|
|
27186
27213
|
callback(values, valueNames);
|
|
27187
27214
|
},
|
|
@@ -27201,32 +27228,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27201
27228
|
notChangeOnSelect: true,
|
|
27202
27229
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
27203
27230
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
27204
|
-
while (1) {
|
|
27205
|
-
|
|
27206
|
-
|
|
27207
|
-
|
|
27208
|
-
|
|
27209
|
-
|
|
27210
|
-
|
|
27211
|
-
|
|
27212
|
-
|
|
27213
|
-
|
|
27214
|
-
|
|
27215
|
-
|
|
27216
|
-
|
|
27217
|
-
|
|
27218
|
-
|
|
27219
|
-
|
|
27220
|
-
|
|
27221
|
-
|
|
27222
|
-
|
|
27223
|
-
|
|
27224
|
-
|
|
27225
|
-
|
|
27226
|
-
|
|
27227
|
-
|
|
27228
|
-
return _context2.stop();
|
|
27229
|
-
}
|
|
27231
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
27232
|
+
case 0:
|
|
27233
|
+
_context2.next = 2;
|
|
27234
|
+
return bssula.request({
|
|
27235
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
27236
|
+
method: 'get',
|
|
27237
|
+
converter: function converter(_ref3) {
|
|
27238
|
+
var data = _ref3.data;
|
|
27239
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27240
|
+
return {
|
|
27241
|
+
text: item.name,
|
|
27242
|
+
value: item.id,
|
|
27243
|
+
level: item.level,
|
|
27244
|
+
id: item.id
|
|
27245
|
+
};
|
|
27246
|
+
}) : [];
|
|
27247
|
+
return handleData;
|
|
27248
|
+
}
|
|
27249
|
+
});
|
|
27250
|
+
case 2:
|
|
27251
|
+
return _context2.abrupt("return", _context2.sent);
|
|
27252
|
+
case 3:
|
|
27253
|
+
case "end":
|
|
27254
|
+
return _context2.stop();
|
|
27230
27255
|
}
|
|
27231
27256
|
}, _callee2);
|
|
27232
27257
|
})),
|
|
@@ -27252,32 +27277,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27252
27277
|
notChangeOnSelect: true,
|
|
27253
27278
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
27254
27279
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
27255
|
-
while (1) {
|
|
27256
|
-
|
|
27257
|
-
|
|
27258
|
-
|
|
27259
|
-
|
|
27260
|
-
|
|
27261
|
-
|
|
27262
|
-
|
|
27263
|
-
|
|
27264
|
-
|
|
27265
|
-
|
|
27266
|
-
|
|
27267
|
-
|
|
27268
|
-
|
|
27269
|
-
|
|
27270
|
-
|
|
27271
|
-
|
|
27272
|
-
|
|
27273
|
-
|
|
27274
|
-
|
|
27275
|
-
|
|
27276
|
-
|
|
27277
|
-
|
|
27278
|
-
|
|
27279
|
-
return _context3.stop();
|
|
27280
|
-
}
|
|
27280
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
27281
|
+
case 0:
|
|
27282
|
+
_context3.next = 2;
|
|
27283
|
+
return bssula.request({
|
|
27284
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
27285
|
+
method: 'get',
|
|
27286
|
+
converter: function converter(_ref5) {
|
|
27287
|
+
var data = _ref5.data;
|
|
27288
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27289
|
+
return {
|
|
27290
|
+
text: item.name,
|
|
27291
|
+
value: item.id,
|
|
27292
|
+
level: item.level,
|
|
27293
|
+
id: item.id
|
|
27294
|
+
};
|
|
27295
|
+
}) : [];
|
|
27296
|
+
return handleData;
|
|
27297
|
+
}
|
|
27298
|
+
});
|
|
27299
|
+
case 2:
|
|
27300
|
+
return _context3.abrupt("return", _context3.sent);
|
|
27301
|
+
case 3:
|
|
27302
|
+
case "end":
|
|
27303
|
+
return _context3.stop();
|
|
27281
27304
|
}
|
|
27282
27305
|
}, _callee3);
|
|
27283
27306
|
})),
|
|
@@ -27305,32 +27328,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27305
27328
|
notChangeOnSelect: true,
|
|
27306
27329
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
27307
27330
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
27308
|
-
while (1) {
|
|
27309
|
-
|
|
27310
|
-
|
|
27311
|
-
|
|
27312
|
-
|
|
27313
|
-
|
|
27314
|
-
|
|
27315
|
-
|
|
27316
|
-
|
|
27317
|
-
|
|
27318
|
-
|
|
27319
|
-
|
|
27320
|
-
|
|
27321
|
-
|
|
27322
|
-
|
|
27323
|
-
|
|
27324
|
-
|
|
27325
|
-
|
|
27326
|
-
|
|
27327
|
-
|
|
27328
|
-
|
|
27329
|
-
|
|
27330
|
-
|
|
27331
|
-
|
|
27332
|
-
return _context4.stop();
|
|
27333
|
-
}
|
|
27331
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
27332
|
+
case 0:
|
|
27333
|
+
_context4.next = 2;
|
|
27334
|
+
return bssula.request({
|
|
27335
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
27336
|
+
method: 'get',
|
|
27337
|
+
converter: function converter(_ref7) {
|
|
27338
|
+
var data = _ref7.data;
|
|
27339
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27340
|
+
return {
|
|
27341
|
+
text: item.name,
|
|
27342
|
+
value: item.id,
|
|
27343
|
+
level: item.level,
|
|
27344
|
+
id: item.id
|
|
27345
|
+
};
|
|
27346
|
+
}) : [];
|
|
27347
|
+
return handleData;
|
|
27348
|
+
}
|
|
27349
|
+
});
|
|
27350
|
+
case 2:
|
|
27351
|
+
return _context4.abrupt("return", _context4.sent);
|
|
27352
|
+
case 3:
|
|
27353
|
+
case "end":
|
|
27354
|
+
return _context4.stop();
|
|
27334
27355
|
}
|
|
27335
27356
|
}, _callee4);
|
|
27336
27357
|
})),
|
|
@@ -27415,13 +27436,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27415
27436
|
if (dataInputBusinessType === 12) {
|
|
27416
27437
|
values = value.map(function (i) {
|
|
27417
27438
|
return i.key;
|
|
27418
|
-
});
|
|
27439
|
+
}) || [];
|
|
27419
27440
|
valueNames = value.map(function (i) {
|
|
27420
27441
|
return i.label || '';
|
|
27421
|
-
});
|
|
27442
|
+
}) || [];
|
|
27422
27443
|
} else {
|
|
27423
|
-
values = [value.key];
|
|
27424
|
-
valueNames = [value.label
|
|
27444
|
+
values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
|
|
27445
|
+
valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
|
|
27425
27446
|
}
|
|
27426
27447
|
callback(values, valueNames);
|
|
27427
27448
|
},
|
|
@@ -27495,13 +27516,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27495
27516
|
if (dataInputBusinessType === 12) {
|
|
27496
27517
|
values = value.map(function (i) {
|
|
27497
27518
|
return i.key;
|
|
27498
|
-
});
|
|
27519
|
+
}) || [];
|
|
27499
27520
|
valueNames = value.map(function (i) {
|
|
27500
27521
|
return i.label || '';
|
|
27501
|
-
});
|
|
27522
|
+
}) || [];
|
|
27502
27523
|
} else {
|
|
27503
|
-
values = [value.key];
|
|
27504
|
-
valueNames = [value.label
|
|
27524
|
+
values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
|
|
27525
|
+
valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
|
|
27505
27526
|
}
|
|
27506
27527
|
callback(values, valueNames);
|
|
27507
27528
|
},
|
|
@@ -27575,13 +27596,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27575
27596
|
if (dataInputBusinessType === 12) {
|
|
27576
27597
|
values = value.map(function (i) {
|
|
27577
27598
|
return i.key;
|
|
27578
|
-
});
|
|
27599
|
+
}) || [];
|
|
27579
27600
|
valueNames = value.map(function (i) {
|
|
27580
27601
|
return i.label || '';
|
|
27581
|
-
});
|
|
27602
|
+
}) || [];
|
|
27582
27603
|
} else {
|
|
27583
|
-
values = [value.key];
|
|
27584
|
-
valueNames = [value.label
|
|
27604
|
+
values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
|
|
27605
|
+
valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
|
|
27585
27606
|
}
|
|
27586
27607
|
callback(values, valueNames);
|
|
27587
27608
|
},
|
|
@@ -27660,6 +27681,16 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27660
27681
|
}
|
|
27661
27682
|
}));
|
|
27662
27683
|
} else {
|
|
27684
|
+
var _values7;
|
|
27685
|
+
var _currentValue6 = dataInputBusinessType === 12 ? ((_values7 = values) === null || _values7 === void 0 ? void 0 : _values7.map(function (s, vIndex) {
|
|
27686
|
+
return {
|
|
27687
|
+
key: s,
|
|
27688
|
+
label: valueNames[vIndex]
|
|
27689
|
+
};
|
|
27690
|
+
})) || [] : values[0] && {
|
|
27691
|
+
key: values[0],
|
|
27692
|
+
label: valueNames[0]
|
|
27693
|
+
} || {};
|
|
27663
27694
|
return /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
27664
27695
|
selectBusinessType: "supplier2",
|
|
27665
27696
|
selectProps: _objectSpread2({
|
|
@@ -27671,7 +27702,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27671
27702
|
} : {}),
|
|
27672
27703
|
disabled: disabled,
|
|
27673
27704
|
labelInValue: true,
|
|
27674
|
-
value:
|
|
27705
|
+
value: _currentValue6,
|
|
27675
27706
|
requestConfig: {
|
|
27676
27707
|
filterInit: 'qp-code-in'
|
|
27677
27708
|
},
|
|
@@ -27679,13 +27710,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27679
27710
|
if (dataInputBusinessType === 12) {
|
|
27680
27711
|
values = value.map(function (i) {
|
|
27681
27712
|
return i.key;
|
|
27682
|
-
});
|
|
27713
|
+
}) || [];
|
|
27683
27714
|
valueNames = value.map(function (i) {
|
|
27684
27715
|
return i.label || '';
|
|
27685
|
-
});
|
|
27716
|
+
}) || [];
|
|
27686
27717
|
} else {
|
|
27687
|
-
values = [value.key];
|
|
27688
|
-
valueNames = [value.label
|
|
27718
|
+
values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
|
|
27719
|
+
valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
|
|
27689
27720
|
}
|
|
27690
27721
|
callback(values, valueNames);
|
|
27691
27722
|
},
|
|
@@ -27764,6 +27795,16 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27764
27795
|
}
|
|
27765
27796
|
}));
|
|
27766
27797
|
} else {
|
|
27798
|
+
var _values8;
|
|
27799
|
+
var _currentValue7 = dataInputBusinessType === 12 ? ((_values8 = values) === null || _values8 === void 0 ? void 0 : _values8.map(function (s, vIndex) {
|
|
27800
|
+
return {
|
|
27801
|
+
key: s,
|
|
27802
|
+
label: valueNames[vIndex]
|
|
27803
|
+
};
|
|
27804
|
+
})) || [] : values[0] && {
|
|
27805
|
+
key: values[0],
|
|
27806
|
+
label: valueNames[0]
|
|
27807
|
+
} || {};
|
|
27767
27808
|
return /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
27768
27809
|
selectBusinessType: "customer2",
|
|
27769
27810
|
selectProps: _objectSpread2({
|
|
@@ -27775,7 +27816,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27775
27816
|
} : {}),
|
|
27776
27817
|
disabled: disabled,
|
|
27777
27818
|
labelInValue: true,
|
|
27778
|
-
value:
|
|
27819
|
+
value: _currentValue7,
|
|
27779
27820
|
requestConfig: {
|
|
27780
27821
|
filterInit: 'qp-code-in'
|
|
27781
27822
|
},
|
|
@@ -27783,13 +27824,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27783
27824
|
if (dataInputBusinessType === 12) {
|
|
27784
27825
|
values = value.map(function (i) {
|
|
27785
27826
|
return i.key;
|
|
27786
|
-
});
|
|
27827
|
+
}) || [];
|
|
27787
27828
|
valueNames = value.map(function (i) {
|
|
27788
27829
|
return i.label || '';
|
|
27789
|
-
});
|
|
27830
|
+
}) || [];
|
|
27790
27831
|
} else {
|
|
27791
|
-
values = [value.key];
|
|
27792
|
-
valueNames = [value.label
|
|
27832
|
+
values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
|
|
27833
|
+
valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
|
|
27793
27834
|
}
|
|
27794
27835
|
callback(values, valueNames);
|
|
27795
27836
|
},
|
|
@@ -27868,6 +27909,16 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27868
27909
|
}
|
|
27869
27910
|
}));
|
|
27870
27911
|
} else {
|
|
27912
|
+
var _values9;
|
|
27913
|
+
var _currentValue8 = dataInputBusinessType === 12 ? ((_values9 = values) === null || _values9 === void 0 ? void 0 : _values9.map(function (s, vIndex) {
|
|
27914
|
+
return {
|
|
27915
|
+
key: s,
|
|
27916
|
+
label: valueNames[vIndex]
|
|
27917
|
+
};
|
|
27918
|
+
})) || [] : values[0] && {
|
|
27919
|
+
key: values[0],
|
|
27920
|
+
label: valueNames[0]
|
|
27921
|
+
} || {};
|
|
27871
27922
|
return /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
27872
27923
|
selectBusinessType: "shopFile2",
|
|
27873
27924
|
selectProps: _objectSpread2({
|
|
@@ -27879,7 +27930,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27879
27930
|
} : {}),
|
|
27880
27931
|
disabled: disabled,
|
|
27881
27932
|
labelInValue: true,
|
|
27882
|
-
value:
|
|
27933
|
+
value: _currentValue8,
|
|
27883
27934
|
requestConfig: {
|
|
27884
27935
|
filterInit: 'qp-code-in'
|
|
27885
27936
|
},
|
|
@@ -27887,13 +27938,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27887
27938
|
if (dataInputBusinessType === 12) {
|
|
27888
27939
|
values = value.map(function (i) {
|
|
27889
27940
|
return i.key;
|
|
27890
|
-
});
|
|
27941
|
+
}) || [];
|
|
27891
27942
|
valueNames = value.map(function (i) {
|
|
27892
27943
|
return i.label || '';
|
|
27893
|
-
});
|
|
27944
|
+
}) || [];
|
|
27894
27945
|
} else {
|
|
27895
|
-
values = [value.key];
|
|
27896
|
-
valueNames = [value.label
|
|
27946
|
+
values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
|
|
27947
|
+
valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
|
|
27897
27948
|
}
|
|
27898
27949
|
callback(values, valueNames);
|
|
27899
27950
|
},
|
|
@@ -27972,6 +28023,16 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27972
28023
|
}
|
|
27973
28024
|
}));
|
|
27974
28025
|
} else {
|
|
28026
|
+
var _values10;
|
|
28027
|
+
var _currentValue9 = dataInputBusinessType === 12 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
|
|
28028
|
+
return {
|
|
28029
|
+
key: s,
|
|
28030
|
+
label: valueNames[vIndex]
|
|
28031
|
+
};
|
|
28032
|
+
})) || [] : values[0] && {
|
|
28033
|
+
key: values[0],
|
|
28034
|
+
label: valueNames[0]
|
|
28035
|
+
} || {};
|
|
27975
28036
|
return /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
27976
28037
|
selectBusinessType: "employee2",
|
|
27977
28038
|
selectProps: _objectSpread2({
|
|
@@ -27983,7 +28044,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27983
28044
|
} : {}),
|
|
27984
28045
|
disabled: disabled,
|
|
27985
28046
|
labelInValue: true,
|
|
27986
|
-
value:
|
|
28047
|
+
value: _currentValue9,
|
|
27987
28048
|
requestConfig: {
|
|
27988
28049
|
filterInit: 'qp-id-in'
|
|
27989
28050
|
},
|
|
@@ -27991,13 +28052,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27991
28052
|
if (dataInputBusinessType === 12) {
|
|
27992
28053
|
values = value.map(function (i) {
|
|
27993
28054
|
return i.key;
|
|
27994
|
-
});
|
|
28055
|
+
}) || [];
|
|
27995
28056
|
valueNames = value.map(function (i) {
|
|
27996
28057
|
return i.label || '';
|
|
27997
|
-
});
|
|
28058
|
+
}) || [];
|
|
27998
28059
|
} else {
|
|
27999
|
-
values = [value.key];
|
|
28000
|
-
valueNames = [value.label
|
|
28060
|
+
values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
|
|
28061
|
+
valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
|
|
28001
28062
|
}
|
|
28002
28063
|
callback(values, valueNames);
|
|
28003
28064
|
},
|
|
@@ -28071,13 +28132,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
28071
28132
|
if (dataInputBusinessType === 12) {
|
|
28072
28133
|
values = value.map(function (i) {
|
|
28073
28134
|
return i.key;
|
|
28074
|
-
});
|
|
28135
|
+
}) || [];
|
|
28075
28136
|
valueNames = value.map(function (i) {
|
|
28076
28137
|
return i.label || '';
|
|
28077
|
-
});
|
|
28138
|
+
}) || [];
|
|
28078
28139
|
} else {
|
|
28079
|
-
values = [value.key];
|
|
28080
|
-
valueNames = [value.label
|
|
28140
|
+
values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
|
|
28141
|
+
valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
|
|
28081
28142
|
}
|
|
28082
28143
|
callback(values, valueNames);
|
|
28083
28144
|
},
|
|
@@ -28156,6 +28217,16 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
28156
28217
|
}
|
|
28157
28218
|
}));
|
|
28158
28219
|
} else {
|
|
28220
|
+
var _values11;
|
|
28221
|
+
var _currentValue10 = dataInputBusinessType === 12 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
|
|
28222
|
+
return {
|
|
28223
|
+
key: s,
|
|
28224
|
+
label: valueNames[vIndex]
|
|
28225
|
+
};
|
|
28226
|
+
})) || [] : values[0] && {
|
|
28227
|
+
key: values[0],
|
|
28228
|
+
label: valueNames[0]
|
|
28229
|
+
} || {};
|
|
28159
28230
|
return /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
28160
28231
|
selectBusinessType: "deliveryMode",
|
|
28161
28232
|
selectProps: _objectSpread2({
|
|
@@ -28167,7 +28238,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
28167
28238
|
} : {}),
|
|
28168
28239
|
disabled: disabled,
|
|
28169
28240
|
labelInValue: true,
|
|
28170
|
-
value:
|
|
28241
|
+
value: _currentValue10,
|
|
28171
28242
|
requestConfig: {
|
|
28172
28243
|
filterInit: 'qp-code-in'
|
|
28173
28244
|
},
|
|
@@ -28175,13 +28246,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
28175
28246
|
if (dataInputBusinessType === 12) {
|
|
28176
28247
|
values = value.map(function (i) {
|
|
28177
28248
|
return i.key;
|
|
28178
|
-
});
|
|
28249
|
+
}) || [];
|
|
28179
28250
|
valueNames = value.map(function (i) {
|
|
28180
28251
|
return i.label || '';
|
|
28181
|
-
});
|
|
28252
|
+
}) || [];
|
|
28182
28253
|
} else {
|
|
28183
|
-
values = [value.key];
|
|
28184
|
-
valueNames = [value.label
|
|
28254
|
+
values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
|
|
28255
|
+
valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
|
|
28185
28256
|
}
|
|
28186
28257
|
callback(values, valueNames);
|
|
28187
28258
|
},
|
|
@@ -28397,8 +28468,6 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
28397
28468
|
});
|
|
28398
28469
|
}
|
|
28399
28470
|
}
|
|
28400
|
-
|
|
28401
|
-
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
28402
28471
|
}, {
|
|
28403
28472
|
key: "render",
|
|
28404
28473
|
value: function render() {
|
|
@@ -29229,6 +29298,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29229
29298
|
callBack(ruleClassData);
|
|
29230
29299
|
});
|
|
29231
29300
|
};
|
|
29301
|
+
// 树结构 转化成 平行树 (递归函数)
|
|
29232
29302
|
_this.coverToParallel = function (treeData, result) {
|
|
29233
29303
|
treeData.forEach(function (el) {
|
|
29234
29304
|
result.push(el);
|
|
@@ -29482,6 +29552,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29482
29552
|
callBack(ruleClassData);
|
|
29483
29553
|
});
|
|
29484
29554
|
};
|
|
29555
|
+
// 场景需要返回值2022.11.15
|
|
29485
29556
|
_this.renderResItem = function (itemDetail, parentDetail, ruleReturnConfig, disabled, boxStyle) {
|
|
29486
29557
|
var _ruleReturnConfig$rig;
|
|
29487
29558
|
var isShowResponse = itemDetail.response['enable'];
|
|
@@ -29779,32 +29850,30 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29779
29850
|
notChangeOnSelect: true,
|
|
29780
29851
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29781
29852
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29782
|
-
while (1) {
|
|
29783
|
-
|
|
29784
|
-
|
|
29785
|
-
|
|
29786
|
-
|
|
29787
|
-
|
|
29788
|
-
|
|
29789
|
-
|
|
29790
|
-
|
|
29791
|
-
|
|
29792
|
-
|
|
29793
|
-
|
|
29794
|
-
|
|
29795
|
-
|
|
29796
|
-
|
|
29797
|
-
|
|
29798
|
-
|
|
29799
|
-
|
|
29800
|
-
|
|
29801
|
-
|
|
29802
|
-
|
|
29803
|
-
|
|
29804
|
-
|
|
29805
|
-
|
|
29806
|
-
return _context.stop();
|
|
29807
|
-
}
|
|
29853
|
+
while (1) switch (_context.prev = _context.next) {
|
|
29854
|
+
case 0:
|
|
29855
|
+
_context.next = 2;
|
|
29856
|
+
return bssula.request({
|
|
29857
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
29858
|
+
method: 'get',
|
|
29859
|
+
converter: function converter(_ref2) {
|
|
29860
|
+
var data = _ref2.data;
|
|
29861
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
29862
|
+
return {
|
|
29863
|
+
text: item.name,
|
|
29864
|
+
value: item.id,
|
|
29865
|
+
level: item.level,
|
|
29866
|
+
id: item.id
|
|
29867
|
+
};
|
|
29868
|
+
}) : [];
|
|
29869
|
+
return handleData;
|
|
29870
|
+
}
|
|
29871
|
+
});
|
|
29872
|
+
case 2:
|
|
29873
|
+
return _context.abrupt("return", _context.sent);
|
|
29874
|
+
case 3:
|
|
29875
|
+
case "end":
|
|
29876
|
+
return _context.stop();
|
|
29808
29877
|
}
|
|
29809
29878
|
}, _callee);
|
|
29810
29879
|
})),
|
|
@@ -30138,6 +30207,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30138
30207
|
}
|
|
30139
30208
|
}, "\u65B0\u589E\u8FD4\u56DE\u503C")), isHaveRuleReturnConfig && _this.renderResItem(itemDetail, parentDetail, ruleReturnConfig, disabled, RuleActionItemStyle) || null, isHaveRuleTypeData && _this.renderActionList(itemDetail, parentDetail, handleRuleTypeData, selectRuleActionData, classDataIndex, disabled, RuleActionItemStyle) || null);
|
|
30140
30209
|
};
|
|
30210
|
+
//添加同一层级条件
|
|
30141
30211
|
_this.addPeerRule = function (itemDetail) {
|
|
30142
30212
|
var ruleClassData = _this.state.ruleClassData;
|
|
30143
30213
|
var _this$props4 = _this.props,
|
|
@@ -30158,6 +30228,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30158
30228
|
callBack(ruleClassData);
|
|
30159
30229
|
});
|
|
30160
30230
|
};
|
|
30231
|
+
//添加子层级条件
|
|
30161
30232
|
_this.addChildRules = function (itemDetail) {
|
|
30162
30233
|
var ruleClassData = _this.state.ruleClassData;
|
|
30163
30234
|
var callBack = _this.props.callBack;
|
|
@@ -30233,6 +30304,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30233
30304
|
callBack(ruleClassData);
|
|
30234
30305
|
});
|
|
30235
30306
|
};
|
|
30307
|
+
// 新增执行顺序
|
|
30236
30308
|
_this.handleSelectRuleAction = function (keys, classDataIndex, callback) {
|
|
30237
30309
|
callback();
|
|
30238
30310
|
var callBack = _this.props.callBack;
|
|
@@ -30389,26 +30461,26 @@ exports.AddSkuSelect = AddSkuSelect;
|
|
|
30389
30461
|
exports.AddSpuSelect = AddSpuSelect;
|
|
30390
30462
|
exports.BillEntry = BillEntry;
|
|
30391
30463
|
exports.BsCascader = BsCascader;
|
|
30392
|
-
exports.BsLayout = index$
|
|
30464
|
+
exports.BsLayout = index$6;
|
|
30393
30465
|
exports.BsSulaQueryTable = BsSulaQueryTable;
|
|
30394
30466
|
exports.BusinessSearchSelect = BusinessSearchSelect$1;
|
|
30395
30467
|
exports.BusinessTreeSearchSelect = BusinessTreeSearchSelect$1;
|
|
30396
|
-
exports.CheckOneUser = index$
|
|
30468
|
+
exports.CheckOneUser = index$2;
|
|
30397
30469
|
exports.ColumnSettingTable = ColumnSettingTable;
|
|
30398
30470
|
exports.CommodityEntry = CommodityEntry;
|
|
30399
30471
|
exports.DataImport = DataImport;
|
|
30400
30472
|
exports.DataValidation = DataValidation;
|
|
30401
|
-
exports.DetailPageWrapper = index$
|
|
30473
|
+
exports.DetailPageWrapper = index$4;
|
|
30402
30474
|
exports.EllipsisTooltip = EllipsisTooltip;
|
|
30403
30475
|
exports.ExportIcon = ExportIcon;
|
|
30404
30476
|
exports.GuideWrapper = GuideWrapper;
|
|
30405
|
-
exports.HomePageWrapper = index$
|
|
30477
|
+
exports.HomePageWrapper = index$5;
|
|
30406
30478
|
exports.JsonQueryTable = JsonQueryTable;
|
|
30407
|
-
exports.MoreTreeTable = index$
|
|
30479
|
+
exports.MoreTreeTable = index$7;
|
|
30408
30480
|
exports.QueryMutipleInput = QueryMutipleInput;
|
|
30409
30481
|
exports.RuleComponent = RuleObjectComponent;
|
|
30410
30482
|
exports.SearchSelect = SearchSelect;
|
|
30411
|
-
exports.StateFlow = index$
|
|
30483
|
+
exports.StateFlow = index$3;
|
|
30412
30484
|
exports.SulaColumnSettingTable = ColumnSettingSulaTable;
|
|
30413
30485
|
exports.TableColumnSetting = TableColumnSetting;
|
|
30414
30486
|
exports.TreeSearchSelect = TreeSearchSelect;
|