@bit-sun/business-component 2.3.20 → 2.3.22-beta1
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/AllFunc/drawContent.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/AllFunc/index.d.ts +1 -1
- 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/BsLayouts/Components/RightContent/index.d.ts +2 -2
- package/dist/components/Business/BsLayouts/Components/SearchFunc/index.d.ts +2 -2
- package/dist/components/Business/BsLayouts/index.d.ts +2 -2
- package/dist/components/Business/BsLayouts/service.d.ts +1 -1
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +2 -2
- package/dist/components/Business/SearchSelect/index.d.ts +1 -1
- package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
- package/dist/components/Functional/AddSelect/helps.d.ts +13 -0
- package/dist/components/Functional/BsAntdSula/BsCascader/index.d.ts +1 -1
- package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
- package/dist/components/Solution/RuleComponent/services.d.ts +1 -1
- package/dist/index.esm.js +1401 -1292
- package/dist/index.js +1401 -1292
- package/dist/utils/TableUtils.d.ts +2 -2
- package/dist/utils/utils.d.ts +1 -1
- package/docs/index.md +21 -21
- package/lib/assets/drag.svg +17 -17
- package/lib/assets/exportFail.svg +37 -37
- package/lib/assets/exportProcessing.svg +28 -28
- package/lib/assets/exportSuccess.svg +34 -34
- package/lib/assets/label_icon_bottom.svg +25 -25
- package/lib/assets/upExport.svg +22 -22
- package/package.json +78 -78
- package/src/assets/32.svg +27 -27
- package/src/assets/addIcon.svg +17 -17
- package/src/assets/allfunc.svg +27 -27
- package/src/assets/arrowRight.svg +24 -24
- package/src/assets/btn-delete.svg +29 -29
- package/src/assets/btn-edit.svg +19 -19
- package/src/assets/btn-more.svg +17 -17
- package/src/assets/btn-submit.svg +19 -19
- package/src/assets/caidan.svg +11 -11
- package/src/assets/close.svg +26 -26
- package/src/assets/drag.svg +17 -17
- package/src/assets/exportFail.svg +37 -37
- package/src/assets/exportProcessing.svg +28 -28
- package/src/assets/exportSuccess.svg +34 -34
- package/src/assets/fixed-left-active.svg +11 -11
- package/src/assets/fixed-left.svg +15 -15
- package/src/assets/fixed-right-active.svg +11 -11
- package/src/assets/fixed-right.svg +15 -15
- package/src/assets/guanbi.svg +15 -15
- package/src/assets/icon-quanping.svg +15 -15
- package/src/assets/icon-shezhi.svg +17 -17
- package/src/assets/label_icon_bottom.svg +25 -25
- package/src/assets/list-no-img.svg +21 -21
- package/src/assets/morentouxiang-32.svg +23 -23
- package/src/assets/scanning.svg +24 -24
- package/src/assets/upExport.svg +22 -22
- package/src/common/ENUM.ts +41 -41
- package/src/components/Business/AddSelectBusiness/index.md +162 -162
- package/src/components/Business/AddSelectBusiness/index.tsx +1060 -895
- package/src/components/Business/BsLayouts/Components/AllFunc/drawContent.tsx +111 -111
- package/src/components/Business/BsLayouts/Components/AllFunc/index.less +153 -153
- package/src/components/Business/BsLayouts/Components/AllFunc/index.tsx +70 -70
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.less +90 -90
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.tsx +37 -37
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.tsx +242 -242
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.tsx +384 -384
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.tsx +285 -285
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.tsx +74 -74
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/drawContent.less +170 -170
- package/src/components/Business/BsLayouts/Components/CustomerMenu/index.less +64 -64
- package/src/components/Business/BsLayouts/Components/CustomerMenu/index.tsx +153 -153
- package/src/components/Business/BsLayouts/Components/GlobalHeader/index.less +72 -72
- package/src/components/Business/BsLayouts/Components/GlobalHeader/index.tsx +157 -157
- package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +85 -85
- package/src/components/Business/BsLayouts/Components/RightContent/home.less +218 -218
- package/src/components/Business/BsLayouts/Components/RightContent/index.tsx +155 -155
- package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +160 -160
- package/src/components/Business/BsLayouts/Components/SearchFunc/index.tsx +75 -75
- package/src/components/Business/BsLayouts/index.less +79 -79
- package/src/components/Business/BsLayouts/index.tsx +1484 -1484
- package/src/components/Business/BsLayouts/service.ts +10 -10
- package/src/components/Business/BsLayouts/utils.tsx +203 -203
- package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +564 -564
- package/src/components/Business/BsSulaQueryTable/index.less +221 -221
- package/src/components/Business/BsSulaQueryTable/index.tsx +535 -535
- package/src/components/Business/BsSulaQueryTable/setting.tsx +852 -852
- package/src/components/Business/BsSulaQueryTable/utils.less +65 -65
- package/src/components/Business/BsSulaQueryTable/utils.tsx +690 -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 +1762 -1762
- package/src/components/Business/SearchSelect/common.ts +75 -75
- package/src/components/Business/SearchSelect/index.md +1329 -1329
- package/src/components/Business/SearchSelect/index.tsx +55 -55
- package/src/components/Business/SearchSelect/utils.ts +100 -100
- package/src/components/Business/StateFlow/index.less +130 -130
- package/src/components/Business/StateFlow/index.md +60 -60
- package/src/components/Business/StateFlow/index.tsx +29 -29
- package/src/components/Business/TreeSearchSelect/index.md +156 -156
- package/src/components/Business/TreeSearchSelect/index.tsx +33 -33
- package/src/components/Business/TreeSearchSelect/utils.ts +75 -75
- package/src/components/Business/columnSettingTable/columnSetting.tsx +764 -764
- package/src/components/Business/columnSettingTable/index.less +247 -247
- package/src/components/Business/columnSettingTable/index.md +357 -357
- package/src/components/Business/columnSettingTable/index.tsx +232 -232
- package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +240 -240
- package/src/components/Business/columnSettingTable/utils.tsx +71 -69
- package/src/components/Business/moreTreeTable/FixedScrollBar.tsx +87 -87
- package/src/components/Business/moreTreeTable/hooks/useSticky.ts +21 -21
- package/src/components/Business/moreTreeTable/index.less +99 -99
- package/src/components/Business/moreTreeTable/index.md +448 -448
- package/src/components/Business/moreTreeTable/index.tsx +387 -387
- package/src/components/Business/moreTreeTable/utils.ts +126 -126
- package/src/components/Functional/AddSelect/helps.ts +79 -14
- package/src/components/Functional/AddSelect/index.less +367 -367
- package/src/components/Functional/AddSelect/index.md +155 -155
- package/src/components/Functional/AddSelect/index.tsx +1170 -1282
- package/src/components/Functional/BillEntry/index.less +371 -371
- package/src/components/Functional/BillEntry/index.md +39 -39
- package/src/components/Functional/BillEntry/index.tsx +772 -772
- package/src/components/Functional/BsAntdSula/BsCascader/index.md +62 -62
- package/src/components/Functional/BsAntdSula/BsCascader/index.tsx +178 -178
- package/src/components/Functional/BsAntdSula/index.ts +2 -2
- package/src/components/Functional/DataImport/index.less +63 -63
- package/src/components/Functional/DataImport/index.md +44 -44
- package/src/components/Functional/DataImport/index.tsx +695 -695
- package/src/components/Functional/DataValidation/index.less +63 -63
- package/src/components/Functional/DataValidation/index.md +39 -39
- package/src/components/Functional/DataValidation/index.tsx +687 -687
- package/src/components/Functional/EllipsisTooltip/index.d.ts +5 -5
- package/src/components/Functional/EllipsisTooltip/index.js +36 -36
- package/src/components/Functional/EllipsisTooltip/index.md +30 -30
- package/src/components/Functional/ExportFunctions/ExportIcon/index.md +37 -37
- package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +59 -59
- package/src/components/Functional/QueryMutipleInput/index.less +37 -37
- package/src/components/Functional/QueryMutipleInput/index.md +33 -33
- package/src/components/Functional/QueryMutipleInput/index.tsx +128 -128
- package/src/components/Functional/SearchSelect/index.less +115 -115
- package/src/components/Functional/SearchSelect/index.md +141 -141
- package/src/components/Functional/SearchSelect/index.tsx +879 -879
- package/src/components/Functional/SearchSelect/utils.ts +3 -3
- package/src/components/Functional/TreeSearchSelect/index.md +47 -47
- package/src/components/Functional/TreeSearchSelect/index.tsx +199 -199
- package/src/components/Solution/RuleComponent/Formula.tsx +335 -335
- package/src/components/Solution/RuleComponent/index.d.ts +29 -29
- package/src/components/Solution/RuleComponent/index.js +2032 -2032
- package/src/components/Solution/RuleComponent/index.less +230 -230
- package/src/components/Solution/RuleComponent/renderSpecificAction.js +99 -99
- package/src/components/Solution/RuleComponent/ruleFiled.js +2107 -2107
- package/src/components/Solution/RuleComponent/services.ts +13 -13
- package/src/components/Solution/RuleComponent/util.js +139 -139
- package/src/index.ts +38 -38
- package/src/plugin/TableColumnSetting/index.less +247 -247
- package/src/plugin/TableColumnSetting/index.md +50 -50
- package/src/plugin/TableColumnSetting/index.tsx +724 -724
- package/src/plugin/TableColumnSetting/utils.ts +19 -19
- package/src/styles/bsDefault.less +1912 -1912
- package/src/utils/CheckOneUser/index.md +39 -39
- package/src/utils/CheckOneUser/index.ts +51 -51
- package/src/utils/LocalstorageUtils.ts +95 -95
- package/src/utils/TableUtils.tsx +18 -18
- package/src/utils/checkUtils.ts +39 -39
- package/src/utils/enumConfig.ts +11 -11
- package/src/utils/getFormMode.js +12 -12
- package/src/utils/index.ts +4 -4
- package/src/utils/requestUtils.ts +34 -34
- package/src/utils/serialize.js +7 -7
- package/src/utils/utils.ts +212 -212
- package/tsconfig.json +29 -29
- package/typings.d.ts +4 -4
package/dist/index.esm.js
CHANGED
|
@@ -136,6 +136,33 @@ axios.interceptors.request.use(function (config) {
|
|
|
136
136
|
return config;
|
|
137
137
|
});
|
|
138
138
|
|
|
139
|
+
function _iterableToArrayLimit(arr, i) {
|
|
140
|
+
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
141
|
+
if (null != _i) {
|
|
142
|
+
var _s,
|
|
143
|
+
_e,
|
|
144
|
+
_x,
|
|
145
|
+
_r,
|
|
146
|
+
_arr = [],
|
|
147
|
+
_n = !0,
|
|
148
|
+
_d = !1;
|
|
149
|
+
try {
|
|
150
|
+
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
151
|
+
if (Object(_i) !== _i) return;
|
|
152
|
+
_n = !1;
|
|
153
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
154
|
+
} catch (err) {
|
|
155
|
+
_d = !0, _e = err;
|
|
156
|
+
} finally {
|
|
157
|
+
try {
|
|
158
|
+
if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
|
|
159
|
+
} finally {
|
|
160
|
+
if (_d) throw _e;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
return _arr;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
139
166
|
function ownKeys(object, enumerableOnly) {
|
|
140
167
|
var keys = Object.keys(object);
|
|
141
168
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -292,14 +319,9 @@ function _regeneratorRuntime() {
|
|
|
292
319
|
};
|
|
293
320
|
}
|
|
294
321
|
function maybeInvokeDelegate(delegate, context) {
|
|
295
|
-
var
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
299
|
-
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
300
|
-
}
|
|
301
|
-
return ContinueSentinel;
|
|
302
|
-
}
|
|
322
|
+
var methodName = context.method,
|
|
323
|
+
method = delegate.iterator[methodName];
|
|
324
|
+
if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
|
|
303
325
|
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
304
326
|
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
305
327
|
var info = record.arg;
|
|
@@ -513,7 +535,7 @@ function _defineProperties(target, props) {
|
|
|
513
535
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
514
536
|
descriptor.configurable = true;
|
|
515
537
|
if ("value" in descriptor) descriptor.writable = true;
|
|
516
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
538
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
517
539
|
}
|
|
518
540
|
}
|
|
519
541
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
@@ -525,6 +547,7 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
525
547
|
return Constructor;
|
|
526
548
|
}
|
|
527
549
|
function _defineProperty(obj, key, value) {
|
|
550
|
+
key = _toPropertyKey(key);
|
|
528
551
|
if (key in obj) {
|
|
529
552
|
Object.defineProperty(obj, key, {
|
|
530
553
|
value: value,
|
|
@@ -667,30 +690,6 @@ function _arrayWithHoles(arr) {
|
|
|
667
690
|
function _iterableToArray(iter) {
|
|
668
691
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
669
692
|
}
|
|
670
|
-
function _iterableToArrayLimit(arr, i) {
|
|
671
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
672
|
-
if (_i == null) return;
|
|
673
|
-
var _arr = [];
|
|
674
|
-
var _n = true;
|
|
675
|
-
var _d = false;
|
|
676
|
-
var _s, _e;
|
|
677
|
-
try {
|
|
678
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
679
|
-
_arr.push(_s.value);
|
|
680
|
-
if (i && _arr.length === i) break;
|
|
681
|
-
}
|
|
682
|
-
} catch (err) {
|
|
683
|
-
_d = true;
|
|
684
|
-
_e = err;
|
|
685
|
-
} finally {
|
|
686
|
-
try {
|
|
687
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
688
|
-
} finally {
|
|
689
|
-
if (_d) throw _e;
|
|
690
|
-
}
|
|
691
|
-
}
|
|
692
|
-
return _arr;
|
|
693
|
-
}
|
|
694
693
|
function _unsupportedIterableToArray(o, minLen) {
|
|
695
694
|
if (!o) return;
|
|
696
695
|
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
@@ -710,6 +709,20 @@ function _nonIterableSpread() {
|
|
|
710
709
|
function _nonIterableRest() {
|
|
711
710
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
712
711
|
}
|
|
712
|
+
function _toPrimitive(input, hint) {
|
|
713
|
+
if (typeof input !== "object" || input === null) return input;
|
|
714
|
+
var prim = input[Symbol.toPrimitive];
|
|
715
|
+
if (prim !== undefined) {
|
|
716
|
+
var res = prim.call(input, hint || "default");
|
|
717
|
+
if (typeof res !== "object") return res;
|
|
718
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
719
|
+
}
|
|
720
|
+
return (hint === "string" ? String : Number)(input);
|
|
721
|
+
}
|
|
722
|
+
function _toPropertyKey(arg) {
|
|
723
|
+
var key = _toPrimitive(arg, "string");
|
|
724
|
+
return typeof key === "symbol" ? key : String(key);
|
|
725
|
+
}
|
|
713
726
|
|
|
714
727
|
var checkQuantityAccuracy = function checkQuantityAccuracy(value, accuracy, errorInfo) {
|
|
715
728
|
var errorMessage = _objectSpread2({
|
|
@@ -962,32 +975,35 @@ function handleCommonTimeRender(text, format) {
|
|
|
962
975
|
}
|
|
963
976
|
//设置queryTable默认列宽
|
|
964
977
|
var getItemDefaultWidth = function getItemDefaultWidth(item) {
|
|
978
|
+
var _ref;
|
|
965
979
|
var defaultWidth = 200;
|
|
966
|
-
var lowerCaseKey = (item.key || item.dataIndex).toLowerCase();
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
980
|
+
var lowerCaseKey = (_ref = item.key || item.dataIndex) === null || _ref === void 0 ? void 0 : _ref.toLowerCase();
|
|
981
|
+
if (lowerCaseKey) {
|
|
982
|
+
switch (true) {
|
|
983
|
+
case (item === null || item === void 0 ? void 0 : item.title) === '操作' || lowerCaseKey === 'operate':
|
|
984
|
+
defaultWidth = 60;
|
|
985
|
+
break;
|
|
986
|
+
case lowerCaseKey.indexOf('number') > -1:
|
|
987
|
+
case lowerCaseKey.indexOf('quantity') > -1:
|
|
988
|
+
case lowerCaseKey.indexOf('amount') > -1:
|
|
989
|
+
defaultWidth = 90;
|
|
990
|
+
break;
|
|
991
|
+
case lowerCaseKey.indexOf('no') > -1:
|
|
992
|
+
defaultWidth = 200;
|
|
993
|
+
break;
|
|
994
|
+
case lowerCaseKey.indexOf('code') > -1:
|
|
995
|
+
defaultWidth = 170;
|
|
996
|
+
break;
|
|
997
|
+
case lowerCaseKey.indexOf('time') > -1:
|
|
998
|
+
defaultWidth = 130;
|
|
999
|
+
break;
|
|
1000
|
+
case lowerCaseKey.indexOf('status') > -1:
|
|
1001
|
+
defaultWidth = 100;
|
|
1002
|
+
break;
|
|
1003
|
+
case lowerCaseKey.indexOf('user') > -1:
|
|
1004
|
+
defaultWidth = 130;
|
|
1005
|
+
break;
|
|
1006
|
+
}
|
|
991
1007
|
}
|
|
992
1008
|
return defaultWidth;
|
|
993
1009
|
};
|
|
@@ -997,58 +1013,59 @@ var getItemDefaultWidth = function getItemDefaultWidth(item) {
|
|
|
997
1013
|
* @returns 返回处理后的查询参数
|
|
998
1014
|
*/
|
|
999
1015
|
function queryParams(params, flag) {
|
|
1000
|
-
|
|
1016
|
+
var _loop = function _loop() {
|
|
1001
1017
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
params[value] = moment$1(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
1026
|
-
} else {
|
|
1027
|
-
params[value] = moment$1(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
1028
|
-
}
|
|
1029
|
-
});
|
|
1030
|
-
delete params[key];
|
|
1031
|
-
} else if (element && key.indexOf('*') >= 0) {
|
|
1032
|
-
var _dataParams4 = key.split('*');
|
|
1033
|
-
_dataParams4.forEach(function (value, index) {
|
|
1034
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
1035
|
-
});
|
|
1036
|
-
delete params[key];
|
|
1037
|
-
} else if (element && key.indexOf('_likeIn_') >= 0) {
|
|
1038
|
-
var _dataParams5 = key.split('_likeIn_');
|
|
1039
|
-
if (element.indexOf(',') >= 0) {
|
|
1040
|
-
params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
|
|
1041
|
-
params["qp-".concat(_dataParams5[0], "-like")] = null;
|
|
1018
|
+
var element = params[key];
|
|
1019
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
1020
|
+
var dataParams = key.split('*number*');
|
|
1021
|
+
dataParams.forEach(function (value, index) {
|
|
1022
|
+
params[value] = element[index];
|
|
1023
|
+
});
|
|
1024
|
+
delete params[key];
|
|
1025
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
1026
|
+
var _dataParams = key.split('*address*');
|
|
1027
|
+
_dataParams.forEach(function (value, index) {
|
|
1028
|
+
params[value] = element.PCDCode[index];
|
|
1029
|
+
});
|
|
1030
|
+
delete params[key];
|
|
1031
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
1032
|
+
var _dataParams2 = key.split('*costType*');
|
|
1033
|
+
// eslint-disable-next-line prefer-destructuring
|
|
1034
|
+
params[_dataParams2[0]] = element[1];
|
|
1035
|
+
delete params[key];
|
|
1036
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
1037
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
1038
|
+
_dataParams3.forEach(function (value, index) {
|
|
1039
|
+
if (index === 0) {
|
|
1040
|
+
params[value] = moment$1(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
1042
1041
|
} else {
|
|
1043
|
-
params[
|
|
1044
|
-
params["qp-".concat(_dataParams5[0], "-in")] = null;
|
|
1042
|
+
params[value] = moment$1(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
1045
1043
|
}
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1044
|
+
});
|
|
1045
|
+
delete params[key];
|
|
1046
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
1047
|
+
var _dataParams4 = key.split('*');
|
|
1048
|
+
_dataParams4.forEach(function (value, index) {
|
|
1049
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
1050
|
+
});
|
|
1051
|
+
delete params[key];
|
|
1052
|
+
} else if (element && key.indexOf('_likeIn_') >= 0) {
|
|
1053
|
+
var _dataParams5 = key.split('_likeIn_');
|
|
1054
|
+
if (element.indexOf(',') >= 0) {
|
|
1055
|
+
params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
|
|
1056
|
+
params["qp-".concat(_dataParams5[0], "-like")] = null;
|
|
1057
|
+
} else {
|
|
1058
|
+
params["qp-".concat(_dataParams5[0], "-like")] = element;
|
|
1059
|
+
params["qp-".concat(_dataParams5[0], "-in")] = null;
|
|
1049
1060
|
}
|
|
1050
|
-
|
|
1061
|
+
delete params[key];
|
|
1062
|
+
} else if (Array.isArray(element)) {
|
|
1063
|
+
params[key] = element.join(',');
|
|
1064
|
+
}
|
|
1051
1065
|
}
|
|
1066
|
+
};
|
|
1067
|
+
for (var key in params) {
|
|
1068
|
+
_loop();
|
|
1052
1069
|
}
|
|
1053
1070
|
return flag ? params : qs.stringify(params);
|
|
1054
1071
|
}
|
|
@@ -2777,84 +2794,85 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
2777
2794
|
});
|
|
2778
2795
|
}
|
|
2779
2796
|
// 数组对象处理,对带有特殊标记的name进行处理
|
|
2780
|
-
|
|
2797
|
+
var _loop = function _loop() {
|
|
2781
2798
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
2808
|
-
}
|
|
2809
|
-
});
|
|
2810
|
-
delete params[key];
|
|
2811
|
-
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
2812
|
-
var _dataParams4 = key.split('*checkBox*');
|
|
2813
|
-
if (element) {
|
|
2814
|
-
params[_dataParams4[0]] = 0;
|
|
2799
|
+
var element = params[key];
|
|
2800
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
2801
|
+
var dataParams = key.split('*number*');
|
|
2802
|
+
dataParams.forEach(function (value, index) {
|
|
2803
|
+
params[value] = element[index];
|
|
2804
|
+
});
|
|
2805
|
+
delete params[key];
|
|
2806
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
2807
|
+
var _dataParams = key.split('*address*');
|
|
2808
|
+
_dataParams.forEach(function (value, index) {
|
|
2809
|
+
params[value] = element.PCDCode[index];
|
|
2810
|
+
});
|
|
2811
|
+
delete params[key];
|
|
2812
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
2813
|
+
var _dataParams2 = key.split('*costType*');
|
|
2814
|
+
// eslint-disable-next-line prefer-destructuring
|
|
2815
|
+
params[_dataParams2[0]] = element[1];
|
|
2816
|
+
delete params[key];
|
|
2817
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
2818
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
2819
|
+
_dataParams3.forEach(function (value, index) {
|
|
2820
|
+
if (index === 0) {
|
|
2821
|
+
params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
2822
|
+
} else {
|
|
2823
|
+
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
2815
2824
|
}
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
_dataParams7.forEach(function (value, index) {
|
|
2834
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
2835
|
-
});
|
|
2836
|
-
delete params[key];
|
|
2837
|
-
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
2838
|
-
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
2839
|
-
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
2840
|
-
if (params[key][0] === 'range') {
|
|
2841
|
-
if (params[key][1][0]) {
|
|
2842
|
-
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
2843
|
-
}
|
|
2844
|
-
if (params[key][1][1]) {
|
|
2845
|
-
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
2846
|
-
}
|
|
2825
|
+
});
|
|
2826
|
+
delete params[key];
|
|
2827
|
+
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
2828
|
+
var _dataParams4 = key.split('*checkBox*');
|
|
2829
|
+
if (element) {
|
|
2830
|
+
params[_dataParams4[0]] = 0;
|
|
2831
|
+
}
|
|
2832
|
+
delete params[key];
|
|
2833
|
+
} else if (element && key.indexOf('*cascader*') >= 0) {
|
|
2834
|
+
var _dataParams5 = key.split('*cascader*');
|
|
2835
|
+
params[_dataParams5[0]] = element[element.length - 1];
|
|
2836
|
+
delete params[key];
|
|
2837
|
+
} else if (element && key.indexOf('*date*') >= 0) {
|
|
2838
|
+
var _dataParams6 = key.split('*date*');
|
|
2839
|
+
_dataParams6.forEach(function (value, index) {
|
|
2840
|
+
if (index === 0) {
|
|
2841
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
2847
2842
|
} else {
|
|
2848
|
-
params[
|
|
2843
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
2844
|
+
}
|
|
2845
|
+
});
|
|
2846
|
+
delete params[key];
|
|
2847
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
2848
|
+
var _dataParams7 = key.split('*');
|
|
2849
|
+
_dataParams7.forEach(function (value, index) {
|
|
2850
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
2851
|
+
});
|
|
2852
|
+
delete params[key];
|
|
2853
|
+
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
2854
|
+
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
2855
|
+
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
2856
|
+
if (params[key][0] === 'range') {
|
|
2857
|
+
if (params[key][1][0]) {
|
|
2858
|
+
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
2849
2859
|
}
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
} else
|
|
2854
|
-
|
|
2860
|
+
if (params[key][1][1]) {
|
|
2861
|
+
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
2862
|
+
}
|
|
2863
|
+
} else {
|
|
2864
|
+
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
2855
2865
|
}
|
|
2856
|
-
|
|
2866
|
+
delete params[key];
|
|
2867
|
+
} else if (Array.isArray(element)) {
|
|
2868
|
+
params[key] = element.join(',');
|
|
2869
|
+
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
2870
|
+
delete params[key];
|
|
2871
|
+
}
|
|
2857
2872
|
}
|
|
2873
|
+
};
|
|
2874
|
+
for (var key in params) {
|
|
2875
|
+
_loop();
|
|
2858
2876
|
}
|
|
2859
2877
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
2860
2878
|
pageSize: pageSize,
|
|
@@ -3251,7 +3269,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
3251
3269
|
}
|
|
3252
3270
|
};
|
|
3253
3271
|
var themeColor = {
|
|
3254
|
-
color: '#
|
|
3272
|
+
color: '#02B56E'
|
|
3255
3273
|
};
|
|
3256
3274
|
var formItem = function formItem(list) {
|
|
3257
3275
|
if (isModalVisible && (list === null || list === void 0 ? void 0 : list.length)) {
|
|
@@ -4203,30 +4221,32 @@ var getItemDefaultWidth$1 = function getItemDefaultWidth(item) {
|
|
|
4203
4221
|
var _ref;
|
|
4204
4222
|
var defaultWidth = 200;
|
|
4205
4223
|
var lowerCaseKey = (_ref = item.key || item.dataIndex) === null || _ref === void 0 ? void 0 : _ref.toLowerCase();
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4224
|
+
if (lowerCaseKey) {
|
|
4225
|
+
switch (true) {
|
|
4226
|
+
case (item === null || item === void 0 ? void 0 : item.title) === '操作' || lowerCaseKey === 'operate':
|
|
4227
|
+
defaultWidth = 60;
|
|
4228
|
+
break;
|
|
4229
|
+
case lowerCaseKey.indexOf('number') > -1:
|
|
4230
|
+
case lowerCaseKey.indexOf('quantity') > -1:
|
|
4231
|
+
case lowerCaseKey.indexOf('amount') > -1:
|
|
4232
|
+
defaultWidth = 90;
|
|
4233
|
+
break;
|
|
4234
|
+
case lowerCaseKey.indexOf('no') > -1:
|
|
4235
|
+
defaultWidth = 200;
|
|
4236
|
+
break;
|
|
4237
|
+
case lowerCaseKey.indexOf('code') > -1:
|
|
4238
|
+
defaultWidth = 170;
|
|
4239
|
+
break;
|
|
4240
|
+
case lowerCaseKey.indexOf('time') > -1:
|
|
4241
|
+
defaultWidth = 130;
|
|
4242
|
+
break;
|
|
4243
|
+
case lowerCaseKey.indexOf('status') > -1:
|
|
4244
|
+
defaultWidth = 100;
|
|
4245
|
+
break;
|
|
4246
|
+
case lowerCaseKey.indexOf('user') > -1:
|
|
4247
|
+
defaultWidth = 130;
|
|
4248
|
+
break;
|
|
4249
|
+
}
|
|
4230
4250
|
}
|
|
4231
4251
|
return defaultWidth;
|
|
4232
4252
|
};
|
|
@@ -4251,8 +4271,6 @@ var getSelectDataList = function getSelectDataList(record, item, selectKey) {
|
|
|
4251
4271
|
}
|
|
4252
4272
|
return result;
|
|
4253
4273
|
};
|
|
4254
|
-
|
|
4255
|
-
var _excluded$3 = ["onResize", "width"];
|
|
4256
4274
|
var loadSelectSource = function loadSelectSource(url, params) {
|
|
4257
4275
|
return new Promise(function (resolve, reject) {
|
|
4258
4276
|
axios.get("".concat(url, "?").concat(stringify(params))).then(function (result) {
|
|
@@ -4260,6 +4278,7 @@ var loadSelectSource = function loadSelectSource(url, params) {
|
|
|
4260
4278
|
result = result.data;
|
|
4261
4279
|
if (((_result = result) === null || _result === void 0 ? void 0 : _result.status) && result.status !== '0' || ((_result2 = result) === null || _result2 === void 0 ? void 0 : _result2.code) && result.code !== '000000') {
|
|
4262
4280
|
message$1.error(result.msg);
|
|
4281
|
+
resolve(result);
|
|
4263
4282
|
return;
|
|
4264
4283
|
}
|
|
4265
4284
|
resolve(result);
|
|
@@ -4268,38 +4287,6 @@ var loadSelectSource = function loadSelectSource(url, params) {
|
|
|
4268
4287
|
});
|
|
4269
4288
|
});
|
|
4270
4289
|
};
|
|
4271
|
-
var checkSpuMatchCode = function checkSpuMatchCode(data) {
|
|
4272
|
-
return new Promise(function (resolve, reject) {
|
|
4273
|
-
axios.post("/stock/rwFrontRecordSkcDetail/checkSpuMatchCode", data).then(function (result) {
|
|
4274
|
-
var _result3, _result4;
|
|
4275
|
-
result = result.data;
|
|
4276
|
-
if (((_result3 = result) === null || _result3 === void 0 ? void 0 : _result3.status) && result.status !== '0' || ((_result4 = result) === null || _result4 === void 0 ? void 0 : _result4.code) && result.code !== '000000') {
|
|
4277
|
-
message$1.error(result.msg);
|
|
4278
|
-
reject(false);
|
|
4279
|
-
return;
|
|
4280
|
-
}
|
|
4281
|
-
resolve(result);
|
|
4282
|
-
}).catch(function (err) {
|
|
4283
|
-
reject(err);
|
|
4284
|
-
});
|
|
4285
|
-
});
|
|
4286
|
-
};
|
|
4287
|
-
var ResizeableTitle = function ResizeableTitle(props) {
|
|
4288
|
-
var onResize = props.onResize,
|
|
4289
|
-
width = props.width,
|
|
4290
|
-
restProps = _objectWithoutProperties(props, _excluded$3);
|
|
4291
|
-
if (!width) {
|
|
4292
|
-
return /*#__PURE__*/React.createElement("th", _objectSpread2({}, restProps));
|
|
4293
|
-
}
|
|
4294
|
-
return /*#__PURE__*/React.createElement(Resizable, {
|
|
4295
|
-
width: width,
|
|
4296
|
-
height: 0,
|
|
4297
|
-
onResize: onResize,
|
|
4298
|
-
draggableOpts: {
|
|
4299
|
-
enableUserSelectHack: false
|
|
4300
|
-
}
|
|
4301
|
-
}, /*#__PURE__*/React.createElement("th", _objectSpread2({}, restProps)));
|
|
4302
|
-
};
|
|
4303
4290
|
var formatSource = function formatSource(reData, position, changePosition, changeSearchForm) {
|
|
4304
4291
|
var _reData$position;
|
|
4305
4292
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['code', 'name'];
|
|
@@ -4339,6 +4326,52 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
4339
4326
|
}) || [];
|
|
4340
4327
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
4341
4328
|
};
|
|
4329
|
+
var formatFormSourceList = function formatFormSourceList(x, loadList, tableSearchForm) {
|
|
4330
|
+
loadList.forEach(function (i, index) {
|
|
4331
|
+
if (i.resType == 'list') {
|
|
4332
|
+
var resKeyValue = i.resKeyValue || ['code', 'name'];
|
|
4333
|
+
formatSource(x, index, i.resPosition, tableSearchForm, resKeyValue);
|
|
4334
|
+
}
|
|
4335
|
+
if (i.resType == 'treeList') {
|
|
4336
|
+
var _resKeyValue = i.resKeyValue || ['id', 'name'];
|
|
4337
|
+
formatTreeDataSource(x, index, i.resPosition, tableSearchForm, _resKeyValue);
|
|
4338
|
+
}
|
|
4339
|
+
});
|
|
4340
|
+
};
|
|
4341
|
+
|
|
4342
|
+
var _excluded$3 = ["onResize", "width"];
|
|
4343
|
+
var checkSpuMatchCode = function checkSpuMatchCode(data) {
|
|
4344
|
+
return new Promise(function (resolve, reject) {
|
|
4345
|
+
axios.post("/stock/rwFrontRecordSkcDetail/checkSpuMatchCode", data).then(function (result) {
|
|
4346
|
+
var _result, _result2;
|
|
4347
|
+
result = result.data;
|
|
4348
|
+
if (((_result = result) === null || _result === void 0 ? void 0 : _result.status) && result.status !== '0' || ((_result2 = result) === null || _result2 === void 0 ? void 0 : _result2.code) && result.code !== '000000') {
|
|
4349
|
+
message$1.error(result.msg);
|
|
4350
|
+
reject(false);
|
|
4351
|
+
return;
|
|
4352
|
+
}
|
|
4353
|
+
resolve(result);
|
|
4354
|
+
}).catch(function (err) {
|
|
4355
|
+
reject(err);
|
|
4356
|
+
});
|
|
4357
|
+
});
|
|
4358
|
+
};
|
|
4359
|
+
var ResizeableTitle = function ResizeableTitle(props) {
|
|
4360
|
+
var onResize = props.onResize,
|
|
4361
|
+
width = props.width,
|
|
4362
|
+
restProps = _objectWithoutProperties(props, _excluded$3);
|
|
4363
|
+
if (!width) {
|
|
4364
|
+
return /*#__PURE__*/React.createElement("th", _objectSpread2({}, restProps));
|
|
4365
|
+
}
|
|
4366
|
+
return /*#__PURE__*/React.createElement(Resizable, {
|
|
4367
|
+
width: width,
|
|
4368
|
+
height: 0,
|
|
4369
|
+
onResize: onResize,
|
|
4370
|
+
draggableOpts: {
|
|
4371
|
+
enableUserSelectHack: false
|
|
4372
|
+
}
|
|
4373
|
+
}, /*#__PURE__*/React.createElement("th", _objectSpread2({}, restProps)));
|
|
4374
|
+
};
|
|
4342
4375
|
var initTableCode = {
|
|
4343
4376
|
'sku': ['skuSelect-tableOptionsToChoosePartCode', 'skuSelect-tableSelectedItemPartCode'],
|
|
4344
4377
|
'skc': ['skcSelect-tableOptionsToChoosePartCode', 'skcSelect-tableSelectedItemPartCode'],
|
|
@@ -4371,9 +4404,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
4371
4404
|
_props$businessType = props.businessType,
|
|
4372
4405
|
businessType = _props$businessType === void 0 ? 'sku' : _props$businessType,
|
|
4373
4406
|
_props$isAllowRepeate = props.isAllowRepeatedSelect,
|
|
4374
|
-
isAllowRepeatedSelect = _props$isAllowRepeate === void 0 ? false : _props$isAllowRepeate
|
|
4375
|
-
_props$noUseItemEanco = props.noUseItemEancode,
|
|
4376
|
-
noUseItemEancode = _props$noUseItemEanco === void 0 ? true : _props$noUseItemEanco;
|
|
4407
|
+
isAllowRepeatedSelect = _props$isAllowRepeate === void 0 ? false : _props$isAllowRepeate;
|
|
4377
4408
|
var _ref = requestConfig || {},
|
|
4378
4409
|
url = _ref.url,
|
|
4379
4410
|
otherParams = _ref.otherParams,
|
|
@@ -4530,76 +4561,74 @@ var AddSelect = function AddSelect(props) {
|
|
|
4530
4561
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
4531
4562
|
var result;
|
|
4532
4563
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
4533
|
-
while (1) {
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
_context.next = 3;
|
|
4540
|
-
break;
|
|
4541
|
-
}
|
|
4542
|
-
message$1.warning('相同skc配码不可设置相同哦');
|
|
4543
|
-
return _context.abrupt("return", false);
|
|
4544
|
-
case 3:
|
|
4545
|
-
if (!(bType == 'spu')) {
|
|
4546
|
-
_context.next = 26;
|
|
4547
|
-
break;
|
|
4548
|
-
}
|
|
4549
|
-
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
4550
|
-
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
4551
|
-
}))) {
|
|
4552
|
-
_context.next = 7;
|
|
4553
|
-
break;
|
|
4554
|
-
}
|
|
4555
|
-
message$1.warning('相同商品相同配码颜色不可设置相同哦');
|
|
4556
|
-
return _context.abrupt("return", false);
|
|
4557
|
-
case 7:
|
|
4558
|
-
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
4559
|
-
_context.next = 10;
|
|
4560
|
-
break;
|
|
4561
|
-
}
|
|
4562
|
-
message$1.warning('请先选择颜色!');
|
|
4563
|
-
return _context.abrupt("return", false);
|
|
4564
|
-
case 10:
|
|
4565
|
-
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
4566
|
-
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
4567
|
-
}))) {
|
|
4568
|
-
_context.next = 13;
|
|
4569
|
-
break;
|
|
4570
|
-
}
|
|
4571
|
-
message$1.warning('相同商品相同颜色配码不可设置相同哦');
|
|
4572
|
-
return _context.abrupt("return", false);
|
|
4573
|
-
case 13:
|
|
4574
|
-
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
4575
|
-
_context.next = 26;
|
|
4576
|
-
break;
|
|
4577
|
-
}
|
|
4578
|
-
result = true;
|
|
4579
|
-
_context.prev = 15;
|
|
4580
|
-
_context.next = 18;
|
|
4581
|
-
return checkSpuMatchCode({
|
|
4582
|
-
skcCode: recordItem[recordKey],
|
|
4583
|
-
matchingCode: changeValue,
|
|
4584
|
-
ext1: recordItem.colorName
|
|
4585
|
-
});
|
|
4586
|
-
case 18:
|
|
4587
|
-
result = _context.sent;
|
|
4588
|
-
result = true;
|
|
4589
|
-
_context.next = 25;
|
|
4564
|
+
while (1) switch (_context.prev = _context.next) {
|
|
4565
|
+
case 0:
|
|
4566
|
+
if (!(bType == 'skc' && tList.some(function (i) {
|
|
4567
|
+
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
4568
|
+
}))) {
|
|
4569
|
+
_context.next = 3;
|
|
4590
4570
|
break;
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4571
|
+
}
|
|
4572
|
+
message$1.warning('相同skc配码不可设置相同哦');
|
|
4573
|
+
return _context.abrupt("return", false);
|
|
4574
|
+
case 3:
|
|
4575
|
+
if (!(bType == 'spu')) {
|
|
4576
|
+
_context.next = 26;
|
|
4577
|
+
break;
|
|
4578
|
+
}
|
|
4579
|
+
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
4580
|
+
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
4581
|
+
}))) {
|
|
4582
|
+
_context.next = 7;
|
|
4583
|
+
break;
|
|
4584
|
+
}
|
|
4585
|
+
message$1.warning('相同商品相同配码颜色不可设置相同哦');
|
|
4586
|
+
return _context.abrupt("return", false);
|
|
4587
|
+
case 7:
|
|
4588
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
4589
|
+
_context.next = 10;
|
|
4590
|
+
break;
|
|
4591
|
+
}
|
|
4592
|
+
message$1.warning('请先选择颜色!');
|
|
4593
|
+
return _context.abrupt("return", false);
|
|
4594
|
+
case 10:
|
|
4595
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
4596
|
+
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
4597
|
+
}))) {
|
|
4598
|
+
_context.next = 13;
|
|
4599
|
+
break;
|
|
4600
|
+
}
|
|
4601
|
+
message$1.warning('相同商品相同颜色配码不可设置相同哦');
|
|
4602
|
+
return _context.abrupt("return", false);
|
|
4603
|
+
case 13:
|
|
4604
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
4605
|
+
_context.next = 26;
|
|
4606
|
+
break;
|
|
4607
|
+
}
|
|
4608
|
+
result = true;
|
|
4609
|
+
_context.prev = 15;
|
|
4610
|
+
_context.next = 18;
|
|
4611
|
+
return checkSpuMatchCode({
|
|
4612
|
+
skcCode: recordItem[recordKey],
|
|
4613
|
+
matchingCode: changeValue,
|
|
4614
|
+
ext1: recordItem.colorName
|
|
4615
|
+
});
|
|
4616
|
+
case 18:
|
|
4617
|
+
result = _context.sent;
|
|
4618
|
+
result = true;
|
|
4619
|
+
_context.next = 25;
|
|
4620
|
+
break;
|
|
4621
|
+
case 22:
|
|
4622
|
+
_context.prev = 22;
|
|
4623
|
+
_context.t0 = _context["catch"](15);
|
|
4624
|
+
result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
|
|
4625
|
+
case 25:
|
|
4626
|
+
return _context.abrupt("return", result);
|
|
4627
|
+
case 26:
|
|
4628
|
+
return _context.abrupt("return", true);
|
|
4629
|
+
case 27:
|
|
4630
|
+
case "end":
|
|
4631
|
+
return _context.stop();
|
|
4603
4632
|
}
|
|
4604
4633
|
}, _callee, null, [[15, 22]]);
|
|
4605
4634
|
}));
|
|
@@ -4791,29 +4820,27 @@ var AddSelect = function AddSelect(props) {
|
|
|
4791
4820
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
4792
4821
|
var isConformToTheRules, newPopValue;
|
|
4793
4822
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
4794
|
-
while (1) {
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4823
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
4824
|
+
case 0:
|
|
4825
|
+
_context2.next = 2;
|
|
4826
|
+
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
4827
|
+
case 2:
|
|
4828
|
+
isConformToTheRules = _context2.sent;
|
|
4829
|
+
if (isConformToTheRules) {
|
|
4830
|
+
record[item.dataIndex] = value;
|
|
4831
|
+
} else {
|
|
4832
|
+
record[item.dataIndex] = null;
|
|
4833
|
+
}
|
|
4834
|
+
newPopValue = popvalue.map(function (i, innerIndex) {
|
|
4835
|
+
if (innerIndex == index) {
|
|
4836
|
+
i[item.dataIndex] = record[item.dataIndex];
|
|
4805
4837
|
}
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
setPopValue(newPopValue);
|
|
4813
|
-
case 6:
|
|
4814
|
-
case "end":
|
|
4815
|
-
return _context2.stop();
|
|
4816
|
-
}
|
|
4838
|
+
return i;
|
|
4839
|
+
});
|
|
4840
|
+
setPopValue(newPopValue);
|
|
4841
|
+
case 6:
|
|
4842
|
+
case "end":
|
|
4843
|
+
return _context2.stop();
|
|
4817
4844
|
}
|
|
4818
4845
|
}, _callee2);
|
|
4819
4846
|
}));
|
|
@@ -4873,94 +4900,95 @@ var AddSelect = function AddSelect(props) {
|
|
|
4873
4900
|
});
|
|
4874
4901
|
}
|
|
4875
4902
|
// 数组对象处理,对带有特殊标记的name进行处理
|
|
4876
|
-
|
|
4903
|
+
var _loop = function _loop() {
|
|
4877
4904
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
4904
|
-
}
|
|
4905
|
-
});
|
|
4906
|
-
delete params[key];
|
|
4907
|
-
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
4908
|
-
var _dataParams4 = key.split('*checkBox*');
|
|
4909
|
-
if (element) {
|
|
4910
|
-
params[_dataParams4[0]] = 0;
|
|
4905
|
+
var element = params[key];
|
|
4906
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
4907
|
+
var dataParams = key.split('*number*');
|
|
4908
|
+
dataParams.forEach(function (value, index) {
|
|
4909
|
+
params[value] = element[index];
|
|
4910
|
+
});
|
|
4911
|
+
delete params[key];
|
|
4912
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
4913
|
+
var _dataParams = key.split('*address*');
|
|
4914
|
+
_dataParams.forEach(function (value, index) {
|
|
4915
|
+
params[value] = element.PCDCode[index];
|
|
4916
|
+
});
|
|
4917
|
+
delete params[key];
|
|
4918
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
4919
|
+
var _dataParams2 = key.split('*costType*');
|
|
4920
|
+
// eslint-disable-next-line prefer-destructuring
|
|
4921
|
+
params[_dataParams2[0]] = element[1];
|
|
4922
|
+
delete params[key];
|
|
4923
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
4924
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
4925
|
+
_dataParams3.forEach(function (value, index) {
|
|
4926
|
+
if (index === 0) {
|
|
4927
|
+
params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
4928
|
+
} else {
|
|
4929
|
+
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
4911
4930
|
}
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
_dataParams7.forEach(function (value, index) {
|
|
4930
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
4931
|
-
});
|
|
4932
|
-
delete params[key];
|
|
4933
|
-
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
4934
|
-
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
4935
|
-
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
4936
|
-
if (params[key][0] === 'range') {
|
|
4937
|
-
if (params[key][1][0]) {
|
|
4938
|
-
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
4939
|
-
}
|
|
4940
|
-
if (params[key][1][1]) {
|
|
4941
|
-
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
4942
|
-
}
|
|
4931
|
+
});
|
|
4932
|
+
delete params[key];
|
|
4933
|
+
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
4934
|
+
var _dataParams4 = key.split('*checkBox*');
|
|
4935
|
+
if (element) {
|
|
4936
|
+
params[_dataParams4[0]] = 0;
|
|
4937
|
+
}
|
|
4938
|
+
delete params[key];
|
|
4939
|
+
} else if (element && key.indexOf('*cascader*') >= 0) {
|
|
4940
|
+
var _dataParams5 = key.split('*cascader*');
|
|
4941
|
+
params[_dataParams5[0]] = element[element.length - 1];
|
|
4942
|
+
delete params[key];
|
|
4943
|
+
} else if (element && key.indexOf('*date*') >= 0) {
|
|
4944
|
+
var _dataParams6 = key.split('*date*');
|
|
4945
|
+
_dataParams6.forEach(function (value, index) {
|
|
4946
|
+
if (index === 0) {
|
|
4947
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
4943
4948
|
} else {
|
|
4944
|
-
params[
|
|
4949
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
4945
4950
|
}
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
+
});
|
|
4952
|
+
delete params[key];
|
|
4953
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
4954
|
+
var _dataParams7 = key.split('*');
|
|
4955
|
+
_dataParams7.forEach(function (value, index) {
|
|
4956
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
4957
|
+
});
|
|
4958
|
+
delete params[key];
|
|
4959
|
+
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
4960
|
+
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
4961
|
+
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
4962
|
+
if (params[key][0] === 'range') {
|
|
4963
|
+
if (params[key][1][0]) {
|
|
4964
|
+
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
4965
|
+
}
|
|
4966
|
+
if (params[key][1][1]) {
|
|
4967
|
+
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
4968
|
+
}
|
|
4969
|
+
} else {
|
|
4970
|
+
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
4951
4971
|
}
|
|
4952
|
-
|
|
4972
|
+
delete params[key];
|
|
4973
|
+
} else if (Array.isArray(element)) {
|
|
4974
|
+
params[key] = element.join(',');
|
|
4975
|
+
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
4976
|
+
delete params[key];
|
|
4977
|
+
}
|
|
4953
4978
|
}
|
|
4979
|
+
};
|
|
4980
|
+
for (var key in params) {
|
|
4981
|
+
_loop();
|
|
4954
4982
|
}
|
|
4955
4983
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
4956
4984
|
pageSize: pageSize,
|
|
4957
4985
|
currentPage: currentPage
|
|
4958
4986
|
}, otherParams), fixedParam), params);
|
|
4959
4987
|
axios.get("".concat(url, "?").concat(stringify(queryParams))).then(function (result) {
|
|
4960
|
-
var
|
|
4988
|
+
var _result3, _result4;
|
|
4961
4989
|
setFetching(false);
|
|
4962
4990
|
result = result.data;
|
|
4963
|
-
if (((
|
|
4991
|
+
if (((_result3 = result) === null || _result3 === void 0 ? void 0 : _result3.status) && result.status !== '0' || ((_result4 = result) === null || _result4 === void 0 ? void 0 : _result4.code) && result.code !== '000000') {
|
|
4964
4992
|
message$1.error(result.msg);
|
|
4965
4993
|
return;
|
|
4966
4994
|
}
|
|
@@ -5041,65 +5069,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
5041
5069
|
};
|
|
5042
5070
|
|
|
5043
5071
|
useEffect(function () {
|
|
5044
|
-
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
})]).then(function (x) {
|
|
5053
|
-
var searchPosition1 = noUseItemEancode ? 3 : 2;
|
|
5054
|
-
var searchPosition2 = noUseItemEancode ? 4 : 3;
|
|
5055
|
-
formatSource(x, 0, searchPosition1, tableSearchForm, ['id', 'name']);
|
|
5056
|
-
formatTreeDataSource(x, 1, searchPosition2, tableSearchForm);
|
|
5057
|
-
});
|
|
5058
|
-
}
|
|
5059
|
-
if (businessType == 'skc') {
|
|
5060
|
-
Promise.all([loadSelectSource("/items/item/propertyValue/sizeBySkcConfig", {
|
|
5061
|
-
pageSize: 10000,
|
|
5062
|
-
currentPage: 1,
|
|
5063
|
-
type: 2 // 类型:1尺码;2颜色
|
|
5064
|
-
}), loadSelectSource("/items/category/queryCategoryTree", {
|
|
5065
|
-
pageSize: 5000,
|
|
5066
|
-
currentPage: 1
|
|
5067
|
-
}), loadSelectSource("/items/class/withProperty", {
|
|
5068
|
-
pageSize: 5000,
|
|
5069
|
-
currentPage: 1
|
|
5070
|
-
}), loadSelectSource("/items/brand/queryBrandList", {
|
|
5071
|
-
pageSize: 5000,
|
|
5072
|
-
currentPage: 1,
|
|
5073
|
-
'ctl-withAuth': true
|
|
5074
|
-
})]).then(function (x) {
|
|
5075
|
-
formatSource(x, 0, 3, tableSearchForm, ['value', 'value']);
|
|
5076
|
-
formatTreeDataSource(x, 1, 4, tableSearchForm);
|
|
5077
|
-
formatSource(x, 2, 5, tableSearchForm, ['id', 'name']);
|
|
5078
|
-
formatSource(x, 3, 6, tableSearchForm, ['id', 'name']);
|
|
5079
|
-
});
|
|
5080
|
-
}
|
|
5081
|
-
if (businessType == 'spu') {
|
|
5082
|
-
Promise.all([loadSelectSource("/user/orgViewNode/listNoPage", {
|
|
5083
|
-
'qp-employeeId-eq': getEmployeeId(),
|
|
5084
|
-
'qp-orgViewCode-eq': 'business-organizational-view',
|
|
5085
|
-
'ctl-withDefaultOrg': true
|
|
5086
|
-
}), loadSelectSource("/items/brand/queryBrandList", {
|
|
5087
|
-
pageSize: 5000,
|
|
5088
|
-
currentPage: 1,
|
|
5089
|
-
'ctl-withAuth': true
|
|
5090
|
-
}), loadSelectSource("/items/category/queryCategoryTree", {
|
|
5091
|
-
pageSize: 5000,
|
|
5092
|
-
currentPage: 1
|
|
5093
|
-
}), loadSelectSource("/items/class/withProperty", {
|
|
5094
|
-
pageSize: 5000,
|
|
5095
|
-
currentPage: 1
|
|
5096
|
-
})]).then(function (x) {
|
|
5097
|
-
formatSource(x, 0, 2, tableSearchForm, ['targetId', 'name']);
|
|
5098
|
-
formatSource(x, 1, 3, tableSearchForm, ['id', 'name']);
|
|
5099
|
-
formatTreeDataSource(x, 2, 4, tableSearchForm);
|
|
5100
|
-
formatSource(x, 3, 5, tableSearchForm, ['id', 'name']);
|
|
5101
|
-
});
|
|
5102
|
-
}
|
|
5072
|
+
var pList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.promiseLoadList) || [];
|
|
5073
|
+
if (!(pList === null || pList === void 0 ? void 0 : pList.length)) return;
|
|
5074
|
+
var list = pList.map(function (i) {
|
|
5075
|
+
return loadSelectSource(i.url, i.params);
|
|
5076
|
+
});
|
|
5077
|
+
Promise.all(list).then(function (x) {
|
|
5078
|
+
formatFormSourceList(x, pList, tableSearchForm);
|
|
5079
|
+
});
|
|
5103
5080
|
}, [businessType]);
|
|
5104
5081
|
useEffect(function () {
|
|
5105
5082
|
if (value) {
|
|
@@ -5380,10 +5357,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
5380
5357
|
setSelectedRowKeys([]);
|
|
5381
5358
|
} else {
|
|
5382
5359
|
setPopValue(popvalue.filter(function (item) {
|
|
5383
|
-
return item
|
|
5360
|
+
return item[selectRowKey] !== record[selectRowKey];
|
|
5384
5361
|
}));
|
|
5385
5362
|
setSelectedRowKeys(_toConsumableArray(selectedRowKeys.filter(function (item) {
|
|
5386
|
-
return item !== record
|
|
5363
|
+
return item !== record[selectRowKey];
|
|
5387
5364
|
})));
|
|
5388
5365
|
}
|
|
5389
5366
|
};
|
|
@@ -6407,72 +6384,70 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
6407
6384
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
6408
6385
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
6409
6386
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
6410
|
-
while (1) {
|
|
6411
|
-
|
|
6412
|
-
|
|
6413
|
-
|
|
6414
|
-
|
|
6415
|
-
|
|
6416
|
-
|
|
6417
|
-
|
|
6418
|
-
|
|
6419
|
-
|
|
6420
|
-
|
|
6421
|
-
|
|
6422
|
-
|
|
6423
|
-
|
|
6424
|
-
|
|
6425
|
-
|
|
6426
|
-
|
|
6427
|
-
|
|
6428
|
-
|
|
6429
|
-
|
|
6430
|
-
|
|
6431
|
-
|
|
6432
|
-
|
|
6433
|
-
|
|
6434
|
-
|
|
6435
|
-
|
|
6436
|
-
|
|
6437
|
-
|
|
6438
|
-
|
|
6439
|
-
|
|
6440
|
-
|
|
6441
|
-
|
|
6442
|
-
|
|
6443
|
-
|
|
6444
|
-
|
|
6445
|
-
|
|
6446
|
-
|
|
6447
|
-
|
|
6448
|
-
|
|
6449
|
-
messageInfo
|
|
6450
|
-
|
|
6451
|
-
|
|
6452
|
-
|
|
6453
|
-
|
|
6454
|
-
|
|
6455
|
-
|
|
6456
|
-
|
|
6457
|
-
|
|
6458
|
-
|
|
6459
|
-
|
|
6460
|
-
|
|
6461
|
-
|
|
6462
|
-
|
|
6463
|
-
|
|
6464
|
-
message$1.success(initSuccessMessage);
|
|
6465
|
-
}
|
|
6387
|
+
while (1) switch (_context.prev = _context.next) {
|
|
6388
|
+
case 0:
|
|
6389
|
+
if (data === null || data === void 0 ? void 0 : data.length) {
|
|
6390
|
+
_context.next = 3;
|
|
6391
|
+
break;
|
|
6392
|
+
}
|
|
6393
|
+
message$1.warning('至少录入一条数据');
|
|
6394
|
+
return _context.abrupt("return");
|
|
6395
|
+
case 3:
|
|
6396
|
+
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
6397
|
+
return d.skuCode && d.name;
|
|
6398
|
+
})) {
|
|
6399
|
+
_context.next = 6;
|
|
6400
|
+
break;
|
|
6401
|
+
}
|
|
6402
|
+
message$1.warning('请选择商品!');
|
|
6403
|
+
return _context.abrupt("return");
|
|
6404
|
+
case 6:
|
|
6405
|
+
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
6406
|
+
return d.count;
|
|
6407
|
+
})) {
|
|
6408
|
+
_context.next = 9;
|
|
6409
|
+
break;
|
|
6410
|
+
}
|
|
6411
|
+
message$1.warning('请填写商品数量!');
|
|
6412
|
+
return _context.abrupt("return");
|
|
6413
|
+
case 9:
|
|
6414
|
+
_context.next = 11;
|
|
6415
|
+
return isSkuCanEntry(data);
|
|
6416
|
+
case 11:
|
|
6417
|
+
canEntryObject = _context.sent;
|
|
6418
|
+
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
6419
|
+
_context.next = 16;
|
|
6420
|
+
break;
|
|
6421
|
+
}
|
|
6422
|
+
messageInfo = (canEntryObject === null || canEntryObject === void 0 ? void 0 : (_canEntryObject$error = canEntryObject.errorList) === null || _canEntryObject$error === void 0 ? void 0 : _canEntryObject$error.length) && (canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.errorList.map(function (i) {
|
|
6423
|
+
return /*#__PURE__*/React.createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
|
|
6424
|
+
}));
|
|
6425
|
+
messageInfo && message$1.warning({
|
|
6426
|
+
content: messageInfo,
|
|
6427
|
+
duration: 6
|
|
6428
|
+
});
|
|
6429
|
+
return _context.abrupt("return");
|
|
6430
|
+
case 16:
|
|
6431
|
+
setLoading(true);
|
|
6432
|
+
onSaveCallback(data).then(function (res) {
|
|
6433
|
+
{
|
|
6434
|
+
var _Object$keys;
|
|
6435
|
+
var initSuccessMessage = '保存成功';
|
|
6436
|
+
var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
|
|
6437
|
+
if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
|
|
6438
|
+
(rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? message$1.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
|
|
6439
|
+
} else {
|
|
6440
|
+
message$1.success(initSuccessMessage);
|
|
6466
6441
|
}
|
|
6467
|
-
|
|
6468
|
-
|
|
6469
|
-
|
|
6470
|
-
|
|
6471
|
-
|
|
6472
|
-
|
|
6473
|
-
|
|
6474
|
-
|
|
6475
|
-
|
|
6442
|
+
}
|
|
6443
|
+
setLoading(false);
|
|
6444
|
+
}).catch(function (Error) {
|
|
6445
|
+
message$1.error(Error);
|
|
6446
|
+
setLoading(false);
|
|
6447
|
+
});
|
|
6448
|
+
case 18:
|
|
6449
|
+
case "end":
|
|
6450
|
+
return _context.stop();
|
|
6476
6451
|
}
|
|
6477
6452
|
}, _callee);
|
|
6478
6453
|
}));
|
|
@@ -8716,9 +8691,16 @@ var BusinessSearchSelect$1 = /*#__PURE__*/React.memo(BusinessSearchSelect, funct
|
|
|
8716
8691
|
// import { getCurrentTargetBgId } from '@/utils/LocalstorageUtils';
|
|
8717
8692
|
function handleSelectColumn(c, parentProps) {
|
|
8718
8693
|
var result = c;
|
|
8694
|
+
var showColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.showColumns) || [];
|
|
8719
8695
|
var exceptColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.exceptColumns) || [];
|
|
8720
8696
|
var coverColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.coverColumns) || [];
|
|
8721
8697
|
var additionColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.additionColumns) || [];
|
|
8698
|
+
// 仅展示内容
|
|
8699
|
+
if (showColumns === null || showColumns === void 0 ? void 0 : showColumns.length) {
|
|
8700
|
+
result = result.filter(function (i) {
|
|
8701
|
+
return showColumns.includes(i.dataIndex);
|
|
8702
|
+
});
|
|
8703
|
+
}
|
|
8722
8704
|
// 过滤不需要展示内容
|
|
8723
8705
|
if (exceptColumns === null || exceptColumns === void 0 ? void 0 : exceptColumns.length) {
|
|
8724
8706
|
result = result.filter(function (i) {
|
|
@@ -8737,6 +8719,57 @@ function handleSelectColumn(c, parentProps) {
|
|
|
8737
8719
|
}
|
|
8738
8720
|
return result;
|
|
8739
8721
|
}
|
|
8722
|
+
function handleSearchForm(c, parentProps) {
|
|
8723
|
+
var result = c;
|
|
8724
|
+
var showTableSearchForm = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.showTableSearchForm) || [];
|
|
8725
|
+
var exceptTableSearchForm = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.exceptTableSearchForm) || [];
|
|
8726
|
+
var coverTableSearchForm = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.coverTableSearchForm) || [];
|
|
8727
|
+
// 仅展示内容
|
|
8728
|
+
if (showTableSearchForm === null || showTableSearchForm === void 0 ? void 0 : showTableSearchForm.length) {
|
|
8729
|
+
result = result.filter(function (i) {
|
|
8730
|
+
return showTableSearchForm.includes(i.name);
|
|
8731
|
+
});
|
|
8732
|
+
}
|
|
8733
|
+
// 过滤不需要展示内容
|
|
8734
|
+
if (exceptTableSearchForm === null || exceptTableSearchForm === void 0 ? void 0 : exceptTableSearchForm.length) {
|
|
8735
|
+
result = result.filter(function (i) {
|
|
8736
|
+
return !exceptTableSearchForm.includes(i.name);
|
|
8737
|
+
});
|
|
8738
|
+
}
|
|
8739
|
+
// 覆盖内容
|
|
8740
|
+
if (coverTableSearchForm === null || coverTableSearchForm === void 0 ? void 0 : coverTableSearchForm.length) {
|
|
8741
|
+
result = coverTableSearchForm;
|
|
8742
|
+
}
|
|
8743
|
+
return result;
|
|
8744
|
+
}
|
|
8745
|
+
function handleFormSearchSourceLoad(c, parentProps) {
|
|
8746
|
+
var result = c;
|
|
8747
|
+
var showTableFormSearchSourceLoad = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.showTableFormSearchSourceLoad) || [];
|
|
8748
|
+
var exceptTableFormSearchSourceLoad = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.exceptTableFormSearchSourceLoad) || [];
|
|
8749
|
+
var coverTableFormSearchSourceLoad = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.coverTableFormSearchSourceLoad) || [];
|
|
8750
|
+
var noNeedTableFormSearchSourceLoad = parentProps === null || parentProps === void 0 ? void 0 : parentProps.noNeedTableFormSearchSourceLoad;
|
|
8751
|
+
// 仅展示内容
|
|
8752
|
+
if (showTableFormSearchSourceLoad === null || showTableFormSearchSourceLoad === void 0 ? void 0 : showTableFormSearchSourceLoad.length) {
|
|
8753
|
+
result = result.filter(function (i) {
|
|
8754
|
+
return showTableFormSearchSourceLoad.includes(i.url);
|
|
8755
|
+
});
|
|
8756
|
+
}
|
|
8757
|
+
// 过滤不需要展示内容
|
|
8758
|
+
if (exceptTableFormSearchSourceLoad === null || exceptTableFormSearchSourceLoad === void 0 ? void 0 : exceptTableFormSearchSourceLoad.length) {
|
|
8759
|
+
result = result.filter(function (i) {
|
|
8760
|
+
return !exceptTableFormSearchSourceLoad.includes(i.url);
|
|
8761
|
+
});
|
|
8762
|
+
}
|
|
8763
|
+
// 覆盖内容
|
|
8764
|
+
if (coverTableFormSearchSourceLoad === null || coverTableFormSearchSourceLoad === void 0 ? void 0 : coverTableFormSearchSourceLoad.length) {
|
|
8765
|
+
result = coverTableFormSearchSourceLoad;
|
|
8766
|
+
}
|
|
8767
|
+
// 不需要默认请求
|
|
8768
|
+
if (noNeedTableFormSearchSourceLoad) {
|
|
8769
|
+
result = [];
|
|
8770
|
+
}
|
|
8771
|
+
return result;
|
|
8772
|
+
}
|
|
8740
8773
|
var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
8741
8774
|
var _parProps$requestConf, _parProps$requestConf2;
|
|
8742
8775
|
var selectProps = {
|
|
@@ -8843,234 +8876,258 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
8843
8876
|
dataIndex: 'propertyNameAndValue'
|
|
8844
8877
|
}]);
|
|
8845
8878
|
var mTpSelectColumn = handleSelectColumn(initialSelectColumn, parProps);
|
|
8846
|
-
var
|
|
8847
|
-
|
|
8848
|
-
|
|
8849
|
-
|
|
8850
|
-
|
|
8851
|
-
|
|
8852
|
-
|
|
8853
|
-
|
|
8854
|
-
|
|
8855
|
-
otherParams: _objectSpread2({
|
|
8856
|
-
'qp-combination-eq': false,
|
|
8857
|
-
'qp-approveStatus-eq': 1,
|
|
8858
|
-
'qp-status-eq': 1
|
|
8859
|
-
}, (parProps === null || parProps === void 0 ? void 0 : (_parProps$requestConf = parProps.requestConfig) === null || _parProps$requestConf === void 0 ? void 0 : _parProps$requestConf.addOtherParams) || {}),
|
|
8860
|
-
mappingTextField: 'name',
|
|
8861
|
-
mappingValueField: 'skuCode'
|
|
8862
|
-
}, parProps.requestConfig),
|
|
8863
|
-
selectProps: selectProps,
|
|
8864
|
-
onChange: function onChange(value) {
|
|
8865
|
-
console.log(value);
|
|
8866
|
-
setValue(value);
|
|
8879
|
+
var initialTableColumn = [{
|
|
8880
|
+
title: 'SKU编码',
|
|
8881
|
+
width: 150,
|
|
8882
|
+
dataIndex: 'skuCode'
|
|
8883
|
+
}, {
|
|
8884
|
+
title: 'SKU名称',
|
|
8885
|
+
width: 200,
|
|
8886
|
+
ellipsis: {
|
|
8887
|
+
showTitle: false
|
|
8867
8888
|
},
|
|
8868
|
-
|
|
8869
|
-
|
|
8870
|
-
|
|
8871
|
-
|
|
8872
|
-
|
|
8873
|
-
|
|
8874
|
-
|
|
8875
|
-
|
|
8876
|
-
|
|
8877
|
-
|
|
8878
|
-
|
|
8879
|
-
|
|
8880
|
-
|
|
8881
|
-
|
|
8882
|
-
|
|
8883
|
-
|
|
8884
|
-
|
|
8885
|
-
|
|
8886
|
-
|
|
8887
|
-
|
|
8888
|
-
|
|
8889
|
-
|
|
8890
|
-
|
|
8889
|
+
render: function render(text) {
|
|
8890
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
8891
|
+
placement: "topLeft",
|
|
8892
|
+
title: text
|
|
8893
|
+
}, text);
|
|
8894
|
+
},
|
|
8895
|
+
dataIndex: 'name'
|
|
8896
|
+
}, {
|
|
8897
|
+
title: '图片',
|
|
8898
|
+
dataIndex: 'itemUrl',
|
|
8899
|
+
width: 200,
|
|
8900
|
+
ellipsis: {
|
|
8901
|
+
showTitle: false
|
|
8902
|
+
},
|
|
8903
|
+
render: function render(text, record) {
|
|
8904
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
8905
|
+
placement: "topLeft",
|
|
8906
|
+
title: text
|
|
8907
|
+
}, tableColumnsImage(getSkuImg(record), {
|
|
8908
|
+
width: 20,
|
|
8909
|
+
height: 20
|
|
8910
|
+
}));
|
|
8911
|
+
}
|
|
8912
|
+
}].concat(_toConsumableArray(isNoUseItemBarcode ? [] : [{
|
|
8913
|
+
title: '商品条码',
|
|
8914
|
+
width: 100,
|
|
8915
|
+
ellipsis: {
|
|
8916
|
+
showTitle: false
|
|
8917
|
+
},
|
|
8918
|
+
dataIndex: 'itemEancode',
|
|
8919
|
+
render: function render(text) {
|
|
8920
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
8921
|
+
placement: "topLeft",
|
|
8922
|
+
title: text
|
|
8923
|
+
}, text);
|
|
8924
|
+
}
|
|
8925
|
+
}]), [{
|
|
8926
|
+
title: '所属SPU名称',
|
|
8927
|
+
width: 100,
|
|
8928
|
+
ellipsis: {
|
|
8929
|
+
showTitle: false
|
|
8930
|
+
},
|
|
8931
|
+
dataIndex: 'itemName',
|
|
8932
|
+
render: function render(text) {
|
|
8933
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
8934
|
+
placement: "topLeft",
|
|
8935
|
+
title: text
|
|
8936
|
+
}, text);
|
|
8937
|
+
}
|
|
8938
|
+
}, {
|
|
8939
|
+
title: '所属SPU编码',
|
|
8940
|
+
width: 100,
|
|
8941
|
+
ellipsis: {
|
|
8942
|
+
showTitle: false
|
|
8943
|
+
},
|
|
8944
|
+
dataIndex: 'itemCode',
|
|
8945
|
+
render: function render(text) {
|
|
8946
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
8947
|
+
placement: "topLeft",
|
|
8948
|
+
title: text
|
|
8949
|
+
}, text);
|
|
8950
|
+
}
|
|
8951
|
+
}, {
|
|
8952
|
+
title: '外部编码',
|
|
8953
|
+
width: 100,
|
|
8954
|
+
ellipsis: {
|
|
8955
|
+
showTitle: false
|
|
8956
|
+
},
|
|
8957
|
+
render: function render(text) {
|
|
8958
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
8959
|
+
placement: "topLeft",
|
|
8960
|
+
title: text
|
|
8961
|
+
}, text);
|
|
8962
|
+
},
|
|
8963
|
+
dataIndex: 'externalCode'
|
|
8964
|
+
}, {
|
|
8965
|
+
title: '规格',
|
|
8966
|
+
width: 100,
|
|
8967
|
+
ellipsis: {
|
|
8968
|
+
showTitle: false
|
|
8969
|
+
},
|
|
8970
|
+
render: function render(text) {
|
|
8971
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
8972
|
+
placement: "topLeft",
|
|
8973
|
+
title: text
|
|
8974
|
+
}, text);
|
|
8975
|
+
},
|
|
8976
|
+
dataIndex: 'propertyNameAndValue'
|
|
8977
|
+
}, {
|
|
8978
|
+
title: '类目',
|
|
8979
|
+
width: 100,
|
|
8980
|
+
ellipsis: {
|
|
8981
|
+
showTitle: false
|
|
8982
|
+
},
|
|
8983
|
+
render: function render(text) {
|
|
8984
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
8985
|
+
placement: "topLeft",
|
|
8986
|
+
title: text
|
|
8987
|
+
}, text);
|
|
8988
|
+
},
|
|
8989
|
+
dataIndex: 'categoryName'
|
|
8990
|
+
}, {
|
|
8991
|
+
title: '品类',
|
|
8992
|
+
width: 100,
|
|
8993
|
+
ellipsis: {
|
|
8994
|
+
showTitle: false
|
|
8995
|
+
},
|
|
8996
|
+
render: function render(text) {
|
|
8997
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
8998
|
+
placement: "topLeft",
|
|
8999
|
+
title: text
|
|
9000
|
+
}, text);
|
|
9001
|
+
},
|
|
9002
|
+
dataIndex: 'className'
|
|
9003
|
+
}, {
|
|
9004
|
+
title: '品牌',
|
|
9005
|
+
width: 100,
|
|
9006
|
+
ellipsis: {
|
|
9007
|
+
showTitle: false
|
|
9008
|
+
},
|
|
9009
|
+
render: function render(text) {
|
|
9010
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
9011
|
+
placement: "topLeft",
|
|
9012
|
+
title: text
|
|
9013
|
+
}, text);
|
|
9014
|
+
},
|
|
9015
|
+
dataIndex: 'brandName'
|
|
9016
|
+
}]);
|
|
9017
|
+
var mTpTableColumn = handleSelectColumn(initialTableColumn, parProps);
|
|
9018
|
+
var initialTableSearchForm = [{
|
|
9019
|
+
name: 'qp-skuCode-like',
|
|
9020
|
+
label: 'SKU编码'
|
|
9021
|
+
}, {
|
|
9022
|
+
name: 'qp-skuName-like',
|
|
9023
|
+
label: 'SKU名称'
|
|
9024
|
+
}].concat(_toConsumableArray(isNoUseItemBarcode ? [] : [{
|
|
9025
|
+
name: 'qp-code-in',
|
|
9026
|
+
label: '商品条码',
|
|
9027
|
+
field: {
|
|
9028
|
+
type: 'multipleQueryInput',
|
|
9029
|
+
props: _objectSpread2({}, ((_parProps$requestConf = parProps.requestConfig) === null || _parProps$requestConf === void 0 ? void 0 : _parProps$requestConf.itemEancodeValueRequestConfig) || {})
|
|
9030
|
+
}
|
|
9031
|
+
}]), [{
|
|
9032
|
+
name: 'qp-brandId-in',
|
|
9033
|
+
type: 'select',
|
|
9034
|
+
label: '品牌',
|
|
9035
|
+
field: {
|
|
8891
9036
|
type: 'select',
|
|
8892
|
-
|
|
8893
|
-
|
|
8894
|
-
|
|
8895
|
-
|
|
8896
|
-
|
|
8897
|
-
|
|
8898
|
-
|
|
8899
|
-
|
|
8900
|
-
|
|
8901
|
-
|
|
8902
|
-
optionFilterProp: 'children',
|
|
8903
|
-
filterOption: function filterOption(input, option) {
|
|
8904
|
-
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
8905
|
-
}
|
|
8906
|
-
}
|
|
8907
|
-
}
|
|
8908
|
-
}, {
|
|
8909
|
-
name: 'qp-categoryId-in',
|
|
8910
|
-
type: 'treeSelect',
|
|
8911
|
-
label: '类目',
|
|
8912
|
-
field: {
|
|
8913
|
-
type: 'treeSelect',
|
|
8914
|
-
props: {
|
|
8915
|
-
treeData: [],
|
|
8916
|
-
treeCheckable: true,
|
|
8917
|
-
showSearch: true,
|
|
8918
|
-
allowClear: true,
|
|
8919
|
-
showArrow: true,
|
|
8920
|
-
treeNodeFilterProp: 'title',
|
|
8921
|
-
treeDefaultExpandAll: true,
|
|
8922
|
-
maxTagCount: 1,
|
|
8923
|
-
placeholder: '请选择',
|
|
8924
|
-
style: {
|
|
8925
|
-
width: '100%'
|
|
8926
|
-
},
|
|
8927
|
-
dropdownStyle: {
|
|
8928
|
-
maxHeight: 400,
|
|
8929
|
-
maxWidth: 100,
|
|
8930
|
-
overflow: 'auto'
|
|
8931
|
-
}
|
|
9037
|
+
props: {
|
|
9038
|
+
mode: 'multiple',
|
|
9039
|
+
notFoundContent: '暂无数据',
|
|
9040
|
+
allowClear: true,
|
|
9041
|
+
showSearch: true,
|
|
9042
|
+
showArrow: true,
|
|
9043
|
+
maxTagCount: 1,
|
|
9044
|
+
optionFilterProp: 'children',
|
|
9045
|
+
filterOption: function filterOption(input, option) {
|
|
9046
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
8932
9047
|
}
|
|
8933
9048
|
}
|
|
8934
|
-
}
|
|
8935
|
-
|
|
8936
|
-
|
|
8937
|
-
|
|
8938
|
-
|
|
8939
|
-
|
|
8940
|
-
|
|
8941
|
-
|
|
8942
|
-
|
|
8943
|
-
|
|
8944
|
-
|
|
8945
|
-
|
|
8946
|
-
|
|
8947
|
-
|
|
8948
|
-
|
|
8949
|
-
|
|
8950
|
-
|
|
8951
|
-
|
|
8952
|
-
|
|
8953
|
-
|
|
8954
|
-
|
|
8955
|
-
|
|
8956
|
-
|
|
8957
|
-
|
|
8958
|
-
|
|
8959
|
-
render: function render(text, record) {
|
|
8960
|
-
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
8961
|
-
placement: "topLeft",
|
|
8962
|
-
title: text
|
|
8963
|
-
}, tableColumnsImage(getSkuImg(record), {
|
|
8964
|
-
width: 20,
|
|
8965
|
-
height: 20
|
|
8966
|
-
}));
|
|
8967
|
-
}
|
|
8968
|
-
}].concat(_toConsumableArray(isNoUseItemBarcode ? [] : [{
|
|
8969
|
-
title: '商品条码',
|
|
8970
|
-
width: 100,
|
|
8971
|
-
ellipsis: {
|
|
8972
|
-
showTitle: false
|
|
8973
|
-
},
|
|
8974
|
-
dataIndex: 'itemEancode',
|
|
8975
|
-
render: function render(text) {
|
|
8976
|
-
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
8977
|
-
placement: "topLeft",
|
|
8978
|
-
title: text
|
|
8979
|
-
}, text);
|
|
8980
|
-
}
|
|
8981
|
-
}]), [{
|
|
8982
|
-
title: '所属SPU名称',
|
|
8983
|
-
width: 100,
|
|
8984
|
-
ellipsis: {
|
|
8985
|
-
showTitle: false
|
|
8986
|
-
},
|
|
8987
|
-
dataIndex: 'itemName',
|
|
8988
|
-
render: function render(text) {
|
|
8989
|
-
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
8990
|
-
placement: "topLeft",
|
|
8991
|
-
title: text
|
|
8992
|
-
}, text);
|
|
8993
|
-
}
|
|
8994
|
-
}, {
|
|
8995
|
-
title: '所属SPU编码',
|
|
8996
|
-
width: 100,
|
|
8997
|
-
ellipsis: {
|
|
8998
|
-
showTitle: false
|
|
8999
|
-
},
|
|
9000
|
-
dataIndex: 'itemCode',
|
|
9001
|
-
render: function render(text) {
|
|
9002
|
-
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
9003
|
-
placement: "topLeft",
|
|
9004
|
-
title: text
|
|
9005
|
-
}, text);
|
|
9049
|
+
}
|
|
9050
|
+
}, {
|
|
9051
|
+
name: 'qp-categoryId-in',
|
|
9052
|
+
type: 'treeSelect',
|
|
9053
|
+
label: '类目',
|
|
9054
|
+
field: {
|
|
9055
|
+
type: 'treeSelect',
|
|
9056
|
+
props: {
|
|
9057
|
+
treeData: [],
|
|
9058
|
+
treeCheckable: true,
|
|
9059
|
+
showSearch: true,
|
|
9060
|
+
allowClear: true,
|
|
9061
|
+
showArrow: true,
|
|
9062
|
+
treeNodeFilterProp: 'title',
|
|
9063
|
+
treeDefaultExpandAll: true,
|
|
9064
|
+
maxTagCount: 1,
|
|
9065
|
+
placeholder: '请选择',
|
|
9066
|
+
style: {
|
|
9067
|
+
width: '100%'
|
|
9068
|
+
},
|
|
9069
|
+
dropdownStyle: {
|
|
9070
|
+
maxHeight: 400,
|
|
9071
|
+
maxWidth: 100,
|
|
9072
|
+
overflow: 'auto'
|
|
9073
|
+
}
|
|
9006
9074
|
}
|
|
9007
|
-
}
|
|
9008
|
-
|
|
9009
|
-
|
|
9010
|
-
|
|
9011
|
-
|
|
9012
|
-
|
|
9013
|
-
|
|
9014
|
-
|
|
9015
|
-
|
|
9016
|
-
|
|
9017
|
-
|
|
9018
|
-
|
|
9019
|
-
|
|
9020
|
-
|
|
9021
|
-
|
|
9022
|
-
|
|
9023
|
-
|
|
9024
|
-
|
|
9025
|
-
|
|
9026
|
-
|
|
9027
|
-
|
|
9028
|
-
|
|
9029
|
-
|
|
9030
|
-
|
|
9031
|
-
|
|
9032
|
-
|
|
9033
|
-
|
|
9034
|
-
|
|
9035
|
-
|
|
9036
|
-
|
|
9037
|
-
|
|
9038
|
-
|
|
9039
|
-
|
|
9040
|
-
|
|
9041
|
-
|
|
9042
|
-
|
|
9043
|
-
|
|
9044
|
-
|
|
9045
|
-
|
|
9046
|
-
},
|
|
9047
|
-
|
|
9048
|
-
|
|
9049
|
-
|
|
9050
|
-
|
|
9051
|
-
|
|
9052
|
-
|
|
9053
|
-
|
|
9054
|
-
|
|
9055
|
-
|
|
9056
|
-
|
|
9057
|
-
|
|
9058
|
-
|
|
9059
|
-
|
|
9060
|
-
|
|
9061
|
-
|
|
9062
|
-
|
|
9063
|
-
showTitle: false
|
|
9064
|
-
},
|
|
9065
|
-
render: function render(text) {
|
|
9066
|
-
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
9067
|
-
placement: "topLeft",
|
|
9068
|
-
title: text
|
|
9069
|
-
}, text);
|
|
9070
|
-
},
|
|
9071
|
-
dataIndex: 'brandName'
|
|
9072
|
-
}]),
|
|
9073
|
-
selectColumn: mTpSelectColumn
|
|
9075
|
+
}
|
|
9076
|
+
}], _toConsumableArray((parProps === null || parProps === void 0 ? void 0 : parProps.addTableSearchForm) || []));
|
|
9077
|
+
var mTpTableSearchForm = handleSearchForm(initialTableSearchForm, parProps);
|
|
9078
|
+
var initialPromiseLoadList = [{
|
|
9079
|
+
url: "/items/brand/queryBrandList",
|
|
9080
|
+
params: {
|
|
9081
|
+
pageSize: 5000,
|
|
9082
|
+
currentPage: 1,
|
|
9083
|
+
'ctl-withAuth': true
|
|
9084
|
+
},
|
|
9085
|
+
resType: 'list',
|
|
9086
|
+
resPosition: isNoUseItemBarcode ? 2 : 3,
|
|
9087
|
+
resKeyValue: ['id', 'name']
|
|
9088
|
+
}, {
|
|
9089
|
+
url: "/items/category/queryCategoryTree",
|
|
9090
|
+
params: {
|
|
9091
|
+
pageSize: 5000,
|
|
9092
|
+
currentPage: 1
|
|
9093
|
+
},
|
|
9094
|
+
resType: 'treeList',
|
|
9095
|
+
resPosition: isNoUseItemBarcode ? 3 : 4
|
|
9096
|
+
}];
|
|
9097
|
+
var mTpPromiseLoadList = handleFormSearchSourceLoad(initialPromiseLoadList, parProps);
|
|
9098
|
+
var props = {
|
|
9099
|
+
buttonText: parProps.buttonText || '新增',
|
|
9100
|
+
buttonProps: parProps.buttonProps || {},
|
|
9101
|
+
tableCodeList: parProps.tableCodeList || [],
|
|
9102
|
+
value: value,
|
|
9103
|
+
// labelInValue: true, // 非必填 默认为false
|
|
9104
|
+
requestConfig: _objectSpread2({
|
|
9105
|
+
url: "/items/sku/pager/v2",
|
|
9106
|
+
filter: 'qp-name-like',
|
|
9107
|
+
otherParams: _objectSpread2({
|
|
9108
|
+
'qp-combination-eq': false,
|
|
9109
|
+
'qp-approveStatus-eq': 1,
|
|
9110
|
+
'qp-status-eq': 1
|
|
9111
|
+
}, (parProps === null || parProps === void 0 ? void 0 : (_parProps$requestConf2 = parProps.requestConfig) === null || _parProps$requestConf2 === void 0 ? void 0 : _parProps$requestConf2.addOtherParams) || {}),
|
|
9112
|
+
mappingTextField: 'name',
|
|
9113
|
+
mappingValueField: 'skuCode'
|
|
9114
|
+
}, parProps.requestConfig),
|
|
9115
|
+
selectProps: selectProps,
|
|
9116
|
+
onChange: function onChange(value) {
|
|
9117
|
+
console.log(value);
|
|
9118
|
+
setValue(value);
|
|
9119
|
+
},
|
|
9120
|
+
beforeShowModal: parProps === null || parProps === void 0 ? void 0 : parProps.beforeShowModal,
|
|
9121
|
+
onSaveCallback: parProps.onSaveCallback,
|
|
9122
|
+
businessType: 'sku',
|
|
9123
|
+
isAllowRepeatedSelect: !!(parProps === null || parProps === void 0 ? void 0 : parProps.isAllowRepeatedSelect)
|
|
9124
|
+
};
|
|
9125
|
+
var modalTableProps = {
|
|
9126
|
+
modalTableTitle: '选择商品',
|
|
9127
|
+
tableSearchForm: mTpTableSearchForm,
|
|
9128
|
+
tableColumns: mTpTableColumn,
|
|
9129
|
+
selectColumn: mTpSelectColumn,
|
|
9130
|
+
promiseLoadList: mTpPromiseLoadList
|
|
9074
9131
|
};
|
|
9075
9132
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(AddSelect, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
9076
9133
|
modalTableProps: modalTableProps
|
|
@@ -9146,6 +9203,45 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
|
|
|
9146
9203
|
dataIndex: 'count'
|
|
9147
9204
|
}];
|
|
9148
9205
|
var mTpSelectColumn = handleSelectColumn(initialSelectColumn, parProps);
|
|
9206
|
+
var initialPromiseLoadList = [{
|
|
9207
|
+
url: "/items/item/propertyValue/sizeBySkcConfig",
|
|
9208
|
+
params: {
|
|
9209
|
+
pageSize: 10000,
|
|
9210
|
+
currentPage: 1,
|
|
9211
|
+
type: 2 // 类型:1尺码;2颜色
|
|
9212
|
+
},
|
|
9213
|
+
|
|
9214
|
+
resType: 'list',
|
|
9215
|
+
resPosition: 3,
|
|
9216
|
+
resKeyValue: ['value', 'value']
|
|
9217
|
+
}, {
|
|
9218
|
+
url: "/items/category/queryCategoryTree",
|
|
9219
|
+
params: {
|
|
9220
|
+
pageSize: 5000,
|
|
9221
|
+
currentPage: 1
|
|
9222
|
+
},
|
|
9223
|
+
resType: 'treeList',
|
|
9224
|
+
resPosition: 4
|
|
9225
|
+
}, {
|
|
9226
|
+
url: "/items/class/withProperty",
|
|
9227
|
+
params: {
|
|
9228
|
+
pageSize: 5000,
|
|
9229
|
+
currentPage: 1
|
|
9230
|
+
},
|
|
9231
|
+
resType: 'list',
|
|
9232
|
+
resPosition: 5,
|
|
9233
|
+
resKeyValue: ['id', 'name']
|
|
9234
|
+
}, {
|
|
9235
|
+
url: "/items/brand/queryBrandList",
|
|
9236
|
+
params: {
|
|
9237
|
+
pageSize: 5000,
|
|
9238
|
+
currentPage: 1,
|
|
9239
|
+
'ctl-withAuth': true
|
|
9240
|
+
},
|
|
9241
|
+
resType: 'list',
|
|
9242
|
+
resPosition: 6,
|
|
9243
|
+
resKeyValue: ['id', 'name']
|
|
9244
|
+
}];
|
|
9149
9245
|
var props = {
|
|
9150
9246
|
buttonText: parProps.buttonText || '新增',
|
|
9151
9247
|
buttonProps: parProps.buttonProps || {},
|
|
@@ -9350,7 +9446,8 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
|
|
|
9350
9446
|
},
|
|
9351
9447
|
dataIndex: 'brandName'
|
|
9352
9448
|
}],
|
|
9353
|
-
selectColumn: mTpSelectColumn
|
|
9449
|
+
selectColumn: mTpSelectColumn,
|
|
9450
|
+
promiseLoadList: initialPromiseLoadList
|
|
9354
9451
|
};
|
|
9355
9452
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(AddSelect, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
9356
9453
|
modalTableProps: modalTableProps
|
|
@@ -9435,6 +9532,44 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
9435
9532
|
dataIndex: 'className'
|
|
9436
9533
|
}];
|
|
9437
9534
|
var mTpSelectColumn = handleSelectColumn(initialSelectColumn, parProps);
|
|
9535
|
+
var initialPromiseLoadList = [{
|
|
9536
|
+
url: "/user/orgViewNode/listNoPage",
|
|
9537
|
+
params: {
|
|
9538
|
+
'qp-employeeId-eq': getEmployeeId(),
|
|
9539
|
+
'qp-orgViewCode-eq': 'business-organizational-view',
|
|
9540
|
+
'ctl-withDefaultOrg': true
|
|
9541
|
+
},
|
|
9542
|
+
resType: 'list',
|
|
9543
|
+
resPosition: 2,
|
|
9544
|
+
resKeyValue: ['targetId', 'name']
|
|
9545
|
+
}, {
|
|
9546
|
+
url: "/items/brand/queryBrandList",
|
|
9547
|
+
params: {
|
|
9548
|
+
pageSize: 5000,
|
|
9549
|
+
currentPage: 1,
|
|
9550
|
+
'ctl-withAuth': true
|
|
9551
|
+
},
|
|
9552
|
+
resType: 'list',
|
|
9553
|
+
resPosition: 3,
|
|
9554
|
+
resKeyValue: ['id', 'name']
|
|
9555
|
+
}, {
|
|
9556
|
+
url: "/items/category/queryCategoryTree",
|
|
9557
|
+
params: {
|
|
9558
|
+
pageSize: 5000,
|
|
9559
|
+
currentPage: 1
|
|
9560
|
+
},
|
|
9561
|
+
resType: 'treeList',
|
|
9562
|
+
resPosition: 4
|
|
9563
|
+
}, {
|
|
9564
|
+
url: "/items/class/withProperty",
|
|
9565
|
+
params: {
|
|
9566
|
+
pageSize: 5000,
|
|
9567
|
+
currentPage: 1
|
|
9568
|
+
},
|
|
9569
|
+
resType: 'list',
|
|
9570
|
+
resPosition: 5,
|
|
9571
|
+
resKeyValue: ['id', 'name']
|
|
9572
|
+
}];
|
|
9438
9573
|
var props = {
|
|
9439
9574
|
buttonText: parProps.buttonText || '新增',
|
|
9440
9575
|
buttonProps: parProps.buttonProps || {},
|
|
@@ -9624,7 +9759,8 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
9624
9759
|
},
|
|
9625
9760
|
dataIndex: 'className'
|
|
9626
9761
|
}],
|
|
9627
|
-
selectColumn: mTpSelectColumn
|
|
9762
|
+
selectColumn: mTpSelectColumn,
|
|
9763
|
+
promiseLoadList: initialPromiseLoadList
|
|
9628
9764
|
};
|
|
9629
9765
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(AddSelect, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
9630
9766
|
modalTableProps: modalTableProps
|
|
@@ -9843,44 +9979,42 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
9843
9979
|
var _ctx$form;
|
|
9844
9980
|
var resData, coverData, data, dataList;
|
|
9845
9981
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9846
|
-
while (1) {
|
|
9847
|
-
|
|
9848
|
-
|
|
9849
|
-
|
|
9850
|
-
|
|
9851
|
-
_context.next = 13;
|
|
9852
|
-
break;
|
|
9853
|
-
}
|
|
9854
|
-
data = resData.data;
|
|
9855
|
-
if (!remoteSource.converter) {
|
|
9856
|
-
_context.next = 9;
|
|
9857
|
-
break;
|
|
9858
|
-
}
|
|
9859
|
-
_context.next = 6;
|
|
9860
|
-
return remoteSource.converter({
|
|
9861
|
-
data: [data]
|
|
9862
|
-
});
|
|
9863
|
-
case 6:
|
|
9864
|
-
coverData = _context.sent;
|
|
9865
|
-
_context.next = 11;
|
|
9982
|
+
while (1) switch (_context.prev = _context.next) {
|
|
9983
|
+
case 0:
|
|
9984
|
+
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
9985
|
+
if (!(resData.status === '0' || resData.code === '000000')) {
|
|
9986
|
+
_context.next = 13;
|
|
9866
9987
|
break;
|
|
9867
|
-
|
|
9868
|
-
|
|
9869
|
-
|
|
9870
|
-
|
|
9871
|
-
}) || [];
|
|
9872
|
-
case 11:
|
|
9873
|
-
_context.next = 14;
|
|
9988
|
+
}
|
|
9989
|
+
data = resData.data;
|
|
9990
|
+
if (!remoteSource.converter) {
|
|
9991
|
+
_context.next = 9;
|
|
9874
9992
|
break;
|
|
9875
|
-
|
|
9876
|
-
|
|
9877
|
-
|
|
9878
|
-
|
|
9879
|
-
|
|
9880
|
-
|
|
9881
|
-
|
|
9882
|
-
|
|
9883
|
-
|
|
9993
|
+
}
|
|
9994
|
+
_context.next = 6;
|
|
9995
|
+
return remoteSource.converter({
|
|
9996
|
+
data: [data]
|
|
9997
|
+
});
|
|
9998
|
+
case 6:
|
|
9999
|
+
coverData = _context.sent;
|
|
10000
|
+
_context.next = 11;
|
|
10001
|
+
break;
|
|
10002
|
+
case 9:
|
|
10003
|
+
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
10004
|
+
coverData = dataList.length && dataList.map(function (ites) {
|
|
10005
|
+
return mapSearchTree(ites);
|
|
10006
|
+
}) || [];
|
|
10007
|
+
case 11:
|
|
10008
|
+
_context.next = 14;
|
|
10009
|
+
break;
|
|
10010
|
+
case 13:
|
|
10011
|
+
coverData = [];
|
|
10012
|
+
case 14:
|
|
10013
|
+
setTreeData(coverData);
|
|
10014
|
+
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
|
|
10015
|
+
case 16:
|
|
10016
|
+
case "end":
|
|
10017
|
+
return _context.stop();
|
|
9884
10018
|
}
|
|
9885
10019
|
}, _callee);
|
|
9886
10020
|
}));
|
|
@@ -13854,7 +13988,7 @@ var AllFunc = function AllFunc(props) {
|
|
|
13854
13988
|
})))));
|
|
13855
13989
|
};
|
|
13856
13990
|
|
|
13857
|
-
var css_248z$g = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #
|
|
13991
|
+
var css_248z$g = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #02B56E;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.dark .action:hover {\n background: #252a3d;\n}\n.dark .action .opened {\n background: #252a3d;\n}\n.warp_allfunc {\n z-index: 100;\n}\n.warp_allfunc .drawerWarp {\n -moz-column-count: 4;\n column-count: 4;\n}\n.warp_allfunc .drawer_header_warp .ant-list-header {\n padding: 0 0 0 10px !important;\n line-height: 40px;\n border: 0px !important;\n}\n.warp_allfunc .drawer_header_warp .ant-list-header b {\n width: 100%;\n display: inline-block;\n border-bottom: 1px solid #f0f0f0;\n}\n.warp_allfunc .drawer_header_warp .ant-list-item {\n padding: 0 0 0 10px !important;\n line-height: 30px !important;\n}\n.warp_allfunc .drawer_header_warp .ant-drawer-close {\n position: absolute;\n right: 0;\n}\n.warp_allfunc .p {\n color: #b1bad4;\n font-weight: 400;\n font-size: 12px;\n margin-bottom: 10px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 16px;\n text-align: left;\n opacity: 0.8;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n text-align: center;\n margin-left: 8px;\n}\n.warp_allfunc .btn {\n display: flex;\n align-items: center;\n height: 44px;\n color: #b1bad4;\n background: #10234c;\n border-radius: 8px;\n width: 130px;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.warp_allfunc .btn:hover,\n.warp_allfunc .btnSpan1:hover,\n.warp_allfunc .btnSpan2:hover {\n cursor: pointer;\n color: #b1bad4;\n}\n.warp_allfunc .btnSpan1 {\n margin: 0 7px;\n}\n.allfunc_drawcontent .allFunsList {\n margin-bottom: 10px;\n}\n.allfunc_drawcontent .allFunsListWarp {\n width: 200px;\n margin-right: 10px;\n border-radius: 4px;\n -moz-column-break-inside: avoid;\n break-inside: avoid;\n}\n.allfunc_drawcontent .drawerWarp_p {\n color: #8c8c8c;\n font-weight: 400;\n font-size: 14px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 20px;\n text-align: left;\n}\n";
|
|
13858
13992
|
styleInject(css_248z$g);
|
|
13859
13993
|
|
|
13860
13994
|
var allfunc = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%220%200%2024%2024%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3Eicon%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Crect%20id%3D%22path-1%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3C%2Frect%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22%E5%85%A8%E5%B1%80%E5%AF%BC%E8%88%AA%E7%9B%B8%E5%85%B3%E5%8A%9F%E8%83%BD%E9%9C%80%E6%B1%82%E8%AE%BE%E8%AE%A1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E8%87%AA%E5%AE%9A%E4%B9%89%E5%B7%A6%E4%BE%A7%E8%8F%9C%E5%8D%95%22%20transform%3D%22translate%28-20.000000%2C%20-1016.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-6%22%20transform%3D%22translate%280.000000%2C%2060.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-5%E5%A4%87%E4%BB%BD%22%20transform%3D%22translate%280.000000%2C%20900.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E6%9F%A5%E7%9C%8B%E5%85%A8%E9%83%A8%E5%8A%9F%E8%83%BD%22%20transform%3D%22translate%2810.000000%2C%2046.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22icon%22%20transform%3D%22translate%2810.000000%2C%2010.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cmask%20id%3D%22mask-2%22%20fill%3D%22white%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fmask%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20id%3D%22navigation-icon-allfunctions%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22category%22%20mask%3D%22url%28%23mask-2%29%22%20fill%3D%22%23B1BAD4%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22translate%283.000000%2C%205.000000%29%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M2.24999999%2C12.3585414%20L2.24999999%2C14%20L0%2C14%20L0%2C12.3585414%20L2.24999999%2C12.3585414%20Z%20M18%2C12.3585414%20L18%2C14%20L3.375%2C14%20L3.375%2C12.3585414%20L18%2C12.3585414%20Z%20M2.24999999%2C6.17954431%20L2.24999999%2C7.82100286%20L0%2C7.82100286%20L0%2C6.17954431%20L2.24999999%2C6.17954431%20L2.24999999%2C6.17954431%20Z%20M18%2C6.17954431%20L18%2C7.82100286%20L3.375%2C7.82100286%20L3.375%2C6.17954431%20L18%2C6.17954431%20L18%2C6.17954431%20Z%20M2.24999999%2C0%20L2.24999999%2C1.64145855%20L0%2C1.64145855%20L0%2C0%20L2.24999999%2C0%20L2.24999999%2C0%20Z%20M18%2C0%20L18%2C1.64145855%20L3.375%2C1.64145855%20L3.375%2C0%20L18%2C0%20L18%2C0%20Z%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
@@ -14070,21 +14204,19 @@ function _outLogin() {
|
|
|
14070
14204
|
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
14071
14205
|
var res;
|
|
14072
14206
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
14073
|
-
while (1) {
|
|
14074
|
-
|
|
14075
|
-
|
|
14076
|
-
|
|
14077
|
-
|
|
14078
|
-
|
|
14079
|
-
|
|
14080
|
-
|
|
14081
|
-
|
|
14082
|
-
|
|
14083
|
-
|
|
14084
|
-
|
|
14085
|
-
|
|
14086
|
-
return _context.stop();
|
|
14087
|
-
}
|
|
14207
|
+
while (1) switch (_context.prev = _context.next) {
|
|
14208
|
+
case 0:
|
|
14209
|
+
_context.next = 2;
|
|
14210
|
+
return axios({
|
|
14211
|
+
url: '/user/web/loginOut',
|
|
14212
|
+
method: 'GET'
|
|
14213
|
+
});
|
|
14214
|
+
case 2:
|
|
14215
|
+
res = _context.sent;
|
|
14216
|
+
return _context.abrupt("return", res);
|
|
14217
|
+
case 4:
|
|
14218
|
+
case "end":
|
|
14219
|
+
return _context.stop();
|
|
14088
14220
|
}
|
|
14089
14221
|
}, _callee);
|
|
14090
14222
|
}));
|
|
@@ -14213,31 +14345,29 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
14213
14345
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
14214
14346
|
var sessionId;
|
|
14215
14347
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
14216
|
-
while (1) {
|
|
14217
|
-
|
|
14218
|
-
|
|
14219
|
-
|
|
14220
|
-
|
|
14221
|
-
|
|
14222
|
-
|
|
14223
|
-
|
|
14224
|
-
|
|
14225
|
-
|
|
14348
|
+
while (1) switch (_context.prev = _context.next) {
|
|
14349
|
+
case 0:
|
|
14350
|
+
_context.next = 2;
|
|
14351
|
+
return getSessionId();
|
|
14352
|
+
case 2:
|
|
14353
|
+
sessionId = _context.sent;
|
|
14354
|
+
_context.next = 5;
|
|
14355
|
+
return outLogin({
|
|
14356
|
+
sessionId: sessionId
|
|
14357
|
+
});
|
|
14358
|
+
case 5:
|
|
14359
|
+
// @ts-ignore
|
|
14360
|
+
if (BUILD_TYPE) {
|
|
14361
|
+
message$1.success('退出登录成功');
|
|
14362
|
+
history.replace({
|
|
14363
|
+
pathname: '/user/login'
|
|
14226
14364
|
});
|
|
14227
|
-
|
|
14228
|
-
|
|
14229
|
-
|
|
14230
|
-
|
|
14231
|
-
|
|
14232
|
-
|
|
14233
|
-
});
|
|
14234
|
-
} else {
|
|
14235
|
-
setLoginOutPath();
|
|
14236
|
-
}
|
|
14237
|
-
case 6:
|
|
14238
|
-
case "end":
|
|
14239
|
-
return _context.stop();
|
|
14240
|
-
}
|
|
14365
|
+
} else {
|
|
14366
|
+
setLoginOutPath();
|
|
14367
|
+
}
|
|
14368
|
+
case 6:
|
|
14369
|
+
case "end":
|
|
14370
|
+
return _context.stop();
|
|
14241
14371
|
}
|
|
14242
14372
|
}, _callee);
|
|
14243
14373
|
}));
|
|
@@ -14383,7 +14513,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
14383
14513
|
var afterStr = newName.substr(index + keyWord.length);
|
|
14384
14514
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", null, beforeStr), /*#__PURE__*/React.createElement("span", {
|
|
14385
14515
|
style: {
|
|
14386
|
-
color: '#
|
|
14516
|
+
color: '#02B56E'
|
|
14387
14517
|
}
|
|
14388
14518
|
}, keyWord), /*#__PURE__*/React.createElement("span", null, afterStr));
|
|
14389
14519
|
}
|
|
@@ -15228,7 +15358,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
15228
15358
|
})));
|
|
15229
15359
|
});
|
|
15230
15360
|
|
|
15231
|
-
var css_248z$l = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #
|
|
15361
|
+
var css_248z$l = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #02B56E;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.dark .action:hover {\n background: #252a3d;\n}\n.dark .action .opened {\n background: #252a3d;\n}\n.global_menu_draw_content {\n display: flex;\n height: 100%;\n}\n.global_menu_draw_content .allFunsList {\n margin-bottom: 10px;\n}\n.global_menu_draw_content .drawerWarp_left {\n width: 150px;\n height: 100%;\n flex-shrink: 0;\n border-right: 1px solid #f0f0f0;\n}\n.global_menu_draw_content .drawerWarp_left .left_item_title {\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #8c8c8c;\n letter-spacing: 0;\n line-height: 20px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n margin: 20px 0px;\n padding-left: 10px;\n}\n.global_menu_draw_content .drawerWarp_left .left_item {\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n line-height: 20px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n cursor: pointer;\n margin: 20px 0px;\n padding-left: 10px;\n}\n.global_menu_draw_content .drawerWarp_left .left_item:hover {\n color: #02B56E !important;\n}\n.global_menu_draw_content .drawerWarp_right {\n -moz-column-count: 4;\n column-count: 4;\n flex-grow: 1;\n padding-left: 10px;\n}\n.global_menu_draw_content .drawerWarp_right .ant-list-header {\n padding: 0 0 0 10px !important;\n line-height: 30px;\n border: 0px !important;\n}\n.global_menu_draw_content .drawerWarp_right .ant-list-header b {\n width: 100%;\n box-sizing: border-box;\n display: inline-block;\n border-bottom: 1px solid #f0f0f0;\n}\n.global_menu_draw_content .drawerWarp_right .ant-list-item {\n padding: 0 0 0 10px !important;\n line-height: 30px !important;\n}\n.global_menu_draw_content .drawerWarp_right .ant-drawer-close {\n position: absolute;\n right: 0;\n}\n.global_menu_draw_content .search_menu_content {\n flex-grow: 1;\n display: flex;\n flex-wrap: wrap;\n background-color: #ffffff;\n}\n.global_menu_draw_content .search_menu_content div {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 8px 20px;\n font-size: 14px;\n font-weight: 400;\n color: #000000;\n background: #f8f9fa;\n border-radius: 100px;\n margin-right: 10px;\n margin-bottom: 10px;\n}\n.global_menu_draw_content .search_menu_content div:hover {\n cursor: pointer;\n}\n.global_menu_draw_content .allFunsListWarp {\n width: 200px;\n margin-right: 10px;\n border-radius: 4px;\n -moz-column-break-inside: avoid;\n break-inside: avoid;\n}\n.global_menu_draw_content .choosedStyle .ant-list-header {\n background-color: #005CFF;\n opacity: 0.8;\n}\n.global_menu_draw_content .choosedStyle .ant-list-header b {\n border-bottom: 1px solid #005CFF;\n}\n";
|
|
15232
15362
|
styleInject(css_248z$l);
|
|
15233
15363
|
|
|
15234
15364
|
var closeicon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAiZJREFUSEvFll1LVFEUhh/1QqjAxALrot+ggR9RQWh1UZl9kNCtv8ALf0Q3/YVuiyIqLKOUyI80RP0VXVSU+UGKF2W88q7hzPacOY4QHhiGmVn7fdZe691rTwP/+WlI9Bv9eQfQq55HWqH3NxamgOz3+q0SWEJSYpFQVWIBUIDE+oARYBj4ATQBf0rEI+Yk8Ah4CHwEdjUDoHeRnwN3gBngJrBaAgnxVmAMOA88A4aKAAp8A5wzZABYK4Dkic8CWqPEdpPO9iB20Qa8BnqBae9EkCijKhbixx2rzOeAG8CvEFdg2uRYKIh20mOIslo3RGvUlxaLXwDmgesWr+pbnovyIFPe+oYbLnHV/CLw2eIreaUssmlATngn3YAg17yL8f2I55Uo68is/VSuLuC9AZeBBQN/1nJa0Q4ClHVKuEu/fXJZihxWSbQMEM5pBlQWHUQ9E+7JduKuPWeyFiDEj7mhl2xFrdE5+WAL/64FKQJkxV858yXgqq09CXQAer8FFELyAFnxl0A/sOiaf3cN2u2usy7X7SJI3rjW0DsKSFxuUeY6RN/sFjF00ARRXzrtLkE203LljQqJvwCuAMu2YojHZA13nTJE5XrnQSlIjJ3KqIgvjlhctZa4Mv9aMuxOu1yCvAXuAlvpsAvAU+DePsTTc5KFPAHup+M6GjsIjDrgS50XzhngMfDAtq66cNIRoUYf5MqUaNUNeCiXfsUB9fylcOyetf8AAkCfGYuSNSEAAAAASUVORK5CYII=";
|
|
@@ -15393,8 +15523,8 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
15393
15523
|
return /*#__PURE__*/React.createElement("div", {
|
|
15394
15524
|
className: 'left_item',
|
|
15395
15525
|
style: {
|
|
15396
|
-
borderLeft: currentOneLevel === item.path ? '2px solid #
|
|
15397
|
-
color: currentOneLevel === item.path ? '#
|
|
15526
|
+
borderLeft: currentOneLevel === item.path ? '2px solid #02B56E' : 'none',
|
|
15527
|
+
color: currentOneLevel === item.path ? '#02B56E' : '#000000'
|
|
15398
15528
|
},
|
|
15399
15529
|
onClick: function onClick(e) {
|
|
15400
15530
|
e.stopPropagation();
|
|
@@ -15644,7 +15774,7 @@ var CustomerMenuHeader = function CustomerMenuHeader(_ref) {
|
|
|
15644
15774
|
})));
|
|
15645
15775
|
};
|
|
15646
15776
|
|
|
15647
|
-
var css_248z$m = ".customer_menu_content {\n color: #b1bad4;\n background: #141620;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 18px;\n height: 40px;\n border-bottom: 1px solid #3d4047;\n}\n.customer_menu_content .ant-btn-link {\n color: #b1bad4 !important;\n font-size: 16px;\n height: 36px;\n}\n.menu_item {\n line-height: 30px;\n height: 30px;\n color: rgba(44, 47, 46);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.link_style:hover {\n background-color: #e4e7ed;\n cursor: pointer;\n color: #
|
|
15777
|
+
var css_248z$m = ".customer_menu_content {\n color: #b1bad4;\n background: #141620;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 18px;\n height: 40px;\n border-bottom: 1px solid #3d4047;\n}\n.customer_menu_content .ant-btn-link {\n color: #b1bad4 !important;\n font-size: 16px;\n height: 36px;\n}\n.menu_item {\n line-height: 30px;\n height: 30px;\n color: rgba(44, 47, 46);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.link_style:hover {\n background-color: #e4e7ed;\n cursor: pointer;\n color: #02B56E;\n}\n.sub_menu_content {\n box-shadow: 2px 0px 4px 0px rgba(185, 185, 185, 0.5);\n position: fixed;\n top: 50px;\n left: 140px;\n width: 200px;\n height: 100%;\n background-color: #fff;\n padding-top: 10px;\n z-index: 9999;\n}\n.tab_left_operate {\n display: flex;\n height: 28px;\n align-items: center;\n}\n.tab_left_operate > div {\n width: 28px;\n font-size: 12px;\n color: #2C2F2ECC;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n border-right: 1px solid #E4E4E4;\n background-color: #fff;\n cursor: pointer;\n}\n.tab_left_operate > div:last-child {\n box-shadow: 2px -2px 4px 0px rgba(185, 185, 185, 0.9);\n z-index: 99;\n}\n.tab_right_operate {\n height: 28px;\n width: 28px;\n font-size: 12px;\n color: #2C2F2ECC;\n display: flex;\n align-items: center;\n justify-content: center;\n border-right: 1px solid #E4E4E4;\n background-color: #fff;\n box-shadow: -2px -2px 4px 0px rgba(185, 185, 185, 0.9);\n z-index: 99;\n cursor: pointer;\n position: relative;\n}\n";
|
|
15648
15778
|
styleInject(css_248z$m);
|
|
15649
15779
|
|
|
15650
15780
|
var _excluded$g = ["route"];
|
|
@@ -16065,6 +16195,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
16065
16195
|
showSubMenu: isShow
|
|
16066
16196
|
});
|
|
16067
16197
|
}, 500);
|
|
16198
|
+
//设置tabs标签左右滚动
|
|
16068
16199
|
_this.setTabNavTransLate = function (num) {
|
|
16069
16200
|
var _document$getElementB, _document$getElementB2, _document$getElementB3, _document$getElementB4, _document$defaultView;
|
|
16070
16201
|
var globalTabsNav = (_document$getElementB = document.getElementById('globalTabs')) === null || _document$getElementB === void 0 ? void 0 : (_document$getElementB2 = _document$getElementB.getElementsByClassName('ant-tabs-nav-list')) === null || _document$getElementB2 === void 0 ? void 0 : _document$getElementB2[0];
|
|
@@ -16744,15 +16875,13 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
16744
16875
|
menu: {
|
|
16745
16876
|
request: function () {
|
|
16746
16877
|
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
16747
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
16748
|
-
while (1) {
|
|
16749
|
-
|
|
16750
|
-
|
|
16751
|
-
|
|
16752
|
-
|
|
16753
|
-
|
|
16754
|
-
return _context.stop();
|
|
16755
|
-
}
|
|
16878
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
16879
|
+
while (1) switch (_context.prev = _context.next) {
|
|
16880
|
+
case 0:
|
|
16881
|
+
return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
|
|
16882
|
+
case 1:
|
|
16883
|
+
case "end":
|
|
16884
|
+
return _context.stop();
|
|
16756
16885
|
}
|
|
16757
16886
|
}, _callee);
|
|
16758
16887
|
}));
|
|
@@ -23482,7 +23611,7 @@ function registerSuggestions(monaco) {
|
|
|
23482
23611
|
});
|
|
23483
23612
|
}
|
|
23484
23613
|
|
|
23485
|
-
var css_248z$p = ":global .si-editor-highlight {\n background: #1990ffab;\n}\n.title {\n color: #
|
|
23614
|
+
var css_248z$p = ":global .si-editor-highlight {\n background: #1990ffab;\n}\n.title {\n color: #02B56E;\n padding: 12px;\n font-weight: bold;\n}\n.editorWrapper {\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n padding: 24px;\n background-color: #fff;\n z-index: 10000;\n}\n";
|
|
23486
23615
|
styleInject(css_248z$p);
|
|
23487
23616
|
|
|
23488
23617
|
var Title = Typography.Title;
|
|
@@ -24433,28 +24562,26 @@ var valueType = {
|
|
|
24433
24562
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
24434
24563
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
24435
24564
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
24436
|
-
while (1) {
|
|
24437
|
-
|
|
24438
|
-
|
|
24439
|
-
|
|
24440
|
-
|
|
24441
|
-
|
|
24442
|
-
|
|
24443
|
-
|
|
24444
|
-
return
|
|
24445
|
-
|
|
24446
|
-
|
|
24447
|
-
|
|
24448
|
-
|
|
24449
|
-
|
|
24450
|
-
|
|
24451
|
-
|
|
24452
|
-
|
|
24453
|
-
|
|
24454
|
-
|
|
24455
|
-
|
|
24456
|
-
return _context.stop();
|
|
24457
|
-
}
|
|
24565
|
+
while (1) switch (_context.prev = _context.next) {
|
|
24566
|
+
case 0:
|
|
24567
|
+
_context.next = 2;
|
|
24568
|
+
return request$1({
|
|
24569
|
+
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
24570
|
+
converter: function converter(_ref2) {
|
|
24571
|
+
var data = _ref2.data;
|
|
24572
|
+
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
24573
|
+
return {
|
|
24574
|
+
text: d.name,
|
|
24575
|
+
value: d.code || d.brandCode
|
|
24576
|
+
};
|
|
24577
|
+
});
|
|
24578
|
+
}
|
|
24579
|
+
});
|
|
24580
|
+
case 2:
|
|
24581
|
+
return _context.abrupt("return", _context.sent);
|
|
24582
|
+
case 3:
|
|
24583
|
+
case "end":
|
|
24584
|
+
return _context.stop();
|
|
24458
24585
|
}
|
|
24459
24586
|
}, _callee);
|
|
24460
24587
|
}));
|
|
@@ -24504,55 +24631,53 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
24504
24631
|
useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
24505
24632
|
var _ref$current, source;
|
|
24506
24633
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
24507
|
-
while (1) {
|
|
24508
|
-
|
|
24509
|
-
|
|
24510
|
-
|
|
24511
|
-
|
|
24512
|
-
|
|
24513
|
-
|
|
24514
|
-
|
|
24515
|
-
|
|
24516
|
-
|
|
24517
|
-
};
|
|
24518
|
-
}
|
|
24519
|
-
return prev;
|
|
24520
|
-
});
|
|
24521
|
-
case 2:
|
|
24522
|
-
if (!record.dictionaryCode) {
|
|
24523
|
-
_context.next = 17;
|
|
24524
|
-
break;
|
|
24525
|
-
}
|
|
24526
|
-
if (!(record.choiceType == 20)) {
|
|
24527
|
-
_context.next = 7;
|
|
24528
|
-
break;
|
|
24634
|
+
while (1) switch (_context.prev = _context.next) {
|
|
24635
|
+
case 0:
|
|
24636
|
+
_context.next = 2;
|
|
24637
|
+
return setIsShowAndType(function (prev) {
|
|
24638
|
+
if (record.inputType === 20 || record.inputType === 30) {
|
|
24639
|
+
return {
|
|
24640
|
+
isShow: true,
|
|
24641
|
+
singleOrMultiple: record.inputType,
|
|
24642
|
+
type: record.choiceType
|
|
24643
|
+
};
|
|
24529
24644
|
}
|
|
24530
|
-
|
|
24531
|
-
|
|
24645
|
+
return prev;
|
|
24646
|
+
});
|
|
24647
|
+
case 2:
|
|
24648
|
+
if (!record.dictionaryCode) {
|
|
24649
|
+
_context.next = 17;
|
|
24532
24650
|
break;
|
|
24533
|
-
|
|
24534
|
-
|
|
24535
|
-
|
|
24536
|
-
break;
|
|
24537
|
-
}
|
|
24538
|
-
_context.next = 10;
|
|
24539
|
-
return getDynamicDict(record.dictionaryCode);
|
|
24540
|
-
case 10:
|
|
24541
|
-
_context.t1 = _context.sent;
|
|
24542
|
-
_context.next = 14;
|
|
24651
|
+
}
|
|
24652
|
+
if (!(record.choiceType == 20)) {
|
|
24653
|
+
_context.next = 7;
|
|
24543
24654
|
break;
|
|
24544
|
-
|
|
24545
|
-
|
|
24546
|
-
|
|
24547
|
-
|
|
24548
|
-
|
|
24549
|
-
|
|
24550
|
-
|
|
24551
|
-
|
|
24552
|
-
|
|
24553
|
-
|
|
24554
|
-
|
|
24555
|
-
|
|
24655
|
+
}
|
|
24656
|
+
_context.t0 = getDictionarySource(record.dictionaryCode);
|
|
24657
|
+
_context.next = 15;
|
|
24658
|
+
break;
|
|
24659
|
+
case 7:
|
|
24660
|
+
if (!(record.choiceType == 30)) {
|
|
24661
|
+
_context.next = 13;
|
|
24662
|
+
break;
|
|
24663
|
+
}
|
|
24664
|
+
_context.next = 10;
|
|
24665
|
+
return getDynamicDict(record.dictionaryCode);
|
|
24666
|
+
case 10:
|
|
24667
|
+
_context.t1 = _context.sent;
|
|
24668
|
+
_context.next = 14;
|
|
24669
|
+
break;
|
|
24670
|
+
case 13:
|
|
24671
|
+
_context.t1 = [];
|
|
24672
|
+
case 14:
|
|
24673
|
+
_context.t0 = _context.t1;
|
|
24674
|
+
case 15:
|
|
24675
|
+
source = _context.t0;
|
|
24676
|
+
// @ts-ignore
|
|
24677
|
+
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
24678
|
+
case 17:
|
|
24679
|
+
case "end":
|
|
24680
|
+
return _context.stop();
|
|
24556
24681
|
}
|
|
24557
24682
|
}, _callee);
|
|
24558
24683
|
})));
|
|
@@ -24620,30 +24745,28 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
24620
24745
|
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
24621
24746
|
var form, values, name, relates, source;
|
|
24622
24747
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
24623
|
-
while (1) {
|
|
24624
|
-
|
|
24625
|
-
|
|
24626
|
-
|
|
24627
|
-
if (values[0]) {
|
|
24628
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
24629
|
-
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
24630
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
24631
|
-
}
|
|
24632
|
-
if (!values[1]) {
|
|
24633
|
-
_context2.next = 9;
|
|
24634
|
-
break;
|
|
24635
|
-
}
|
|
24636
|
-
_context2.next = 5;
|
|
24637
|
-
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
24638
|
-
case 5:
|
|
24639
|
-
source = _context2.sent;
|
|
24748
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
24749
|
+
case 0:
|
|
24750
|
+
form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
|
|
24751
|
+
if (values[0]) {
|
|
24640
24752
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
24641
24753
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
24642
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0],
|
|
24643
|
-
|
|
24644
|
-
|
|
24645
|
-
|
|
24646
|
-
|
|
24754
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
24755
|
+
}
|
|
24756
|
+
if (!values[1]) {
|
|
24757
|
+
_context2.next = 9;
|
|
24758
|
+
break;
|
|
24759
|
+
}
|
|
24760
|
+
_context2.next = 5;
|
|
24761
|
+
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
24762
|
+
case 5:
|
|
24763
|
+
source = _context2.sent;
|
|
24764
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
24765
|
+
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
24766
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
24767
|
+
case 9:
|
|
24768
|
+
case "end":
|
|
24769
|
+
return _context2.stop();
|
|
24647
24770
|
}
|
|
24648
24771
|
}, _callee2);
|
|
24649
24772
|
}));
|
|
@@ -25103,43 +25226,41 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
25103
25226
|
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
25104
25227
|
var values, name, form, source;
|
|
25105
25228
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
25106
|
-
while (1) {
|
|
25107
|
-
|
|
25108
|
-
|
|
25109
|
-
|
|
25110
|
-
|
|
25111
|
-
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
25112
|
-
form.setFieldVisible(name, false);
|
|
25113
|
-
}
|
|
25114
|
-
if (!(values[0] === 30)) {
|
|
25115
|
-
_context3.next = 10;
|
|
25116
|
-
break;
|
|
25117
|
-
}
|
|
25118
|
-
_context3.next = 5;
|
|
25119
|
-
return request$1({
|
|
25120
|
-
url: '/basic/dictDynamicItem/queryList',
|
|
25121
|
-
converter: function converter(_ref11) {
|
|
25122
|
-
var data = _ref11.data;
|
|
25123
|
-
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
25124
|
-
return {
|
|
25125
|
-
text: d.dictCode,
|
|
25126
|
-
value: d.dictCode
|
|
25127
|
-
};
|
|
25128
|
-
});
|
|
25129
|
-
}
|
|
25130
|
-
});
|
|
25131
|
-
case 5:
|
|
25132
|
-
source = _context3.sent;
|
|
25133
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
25134
|
-
form.setFieldVisible(name, true);
|
|
25135
|
-
_context3.next = 11;
|
|
25136
|
-
break;
|
|
25137
|
-
case 10:
|
|
25229
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
25230
|
+
case 0:
|
|
25231
|
+
values = _ref10.values, name = _ref10.name, form = _ref10.form;
|
|
25232
|
+
if (values[1] === 40) {
|
|
25233
|
+
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
25138
25234
|
form.setFieldVisible(name, false);
|
|
25139
|
-
|
|
25140
|
-
|
|
25141
|
-
|
|
25142
|
-
|
|
25235
|
+
}
|
|
25236
|
+
if (!(values[0] === 30)) {
|
|
25237
|
+
_context3.next = 10;
|
|
25238
|
+
break;
|
|
25239
|
+
}
|
|
25240
|
+
_context3.next = 5;
|
|
25241
|
+
return request$1({
|
|
25242
|
+
url: '/basic/dictDynamicItem/queryList',
|
|
25243
|
+
converter: function converter(_ref11) {
|
|
25244
|
+
var data = _ref11.data;
|
|
25245
|
+
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
25246
|
+
return {
|
|
25247
|
+
text: d.dictCode,
|
|
25248
|
+
value: d.dictCode
|
|
25249
|
+
};
|
|
25250
|
+
});
|
|
25251
|
+
}
|
|
25252
|
+
});
|
|
25253
|
+
case 5:
|
|
25254
|
+
source = _context3.sent;
|
|
25255
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
25256
|
+
form.setFieldVisible(name, true);
|
|
25257
|
+
_context3.next = 11;
|
|
25258
|
+
break;
|
|
25259
|
+
case 10:
|
|
25260
|
+
form.setFieldVisible(name, false);
|
|
25261
|
+
case 11:
|
|
25262
|
+
case "end":
|
|
25263
|
+
return _context3.stop();
|
|
25143
25264
|
}
|
|
25144
25265
|
}, _callee3);
|
|
25145
25266
|
}));
|
|
@@ -25328,66 +25449,64 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
25328
25449
|
var _ref$current4, _res$editableStatus;
|
|
25329
25450
|
var res, _res$defaultValue;
|
|
25330
25451
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
25331
|
-
while (1) {
|
|
25332
|
-
|
|
25333
|
-
|
|
25334
|
-
|
|
25335
|
-
|
|
25336
|
-
|
|
25337
|
-
|
|
25338
|
-
|
|
25339
|
-
|
|
25340
|
-
|
|
25341
|
-
res.
|
|
25342
|
-
|
|
25343
|
-
|
|
25344
|
-
|
|
25345
|
-
|
|
25346
|
-
|
|
25347
|
-
|
|
25348
|
-
|
|
25349
|
-
|
|
25350
|
-
|
|
25351
|
-
|
|
25352
|
-
|
|
25452
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
25453
|
+
case 0:
|
|
25454
|
+
_context4.next = 2;
|
|
25455
|
+
return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
|
|
25456
|
+
case 2:
|
|
25457
|
+
res = _context4.sent;
|
|
25458
|
+
res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
|
|
25459
|
+
res.fieldGroup = record.fieldGroup;
|
|
25460
|
+
res.businessType = record.businessType;
|
|
25461
|
+
res.info = {
|
|
25462
|
+
enumeration: res.enumeration,
|
|
25463
|
+
dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
|
|
25464
|
+
formula: res.formula,
|
|
25465
|
+
scale: res.scale,
|
|
25466
|
+
variable: res.variable
|
|
25467
|
+
};
|
|
25468
|
+
res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
|
|
25469
|
+
res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
|
|
25470
|
+
res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
|
|
25471
|
+
if (res.inputType === 40) {
|
|
25472
|
+
res.valueType = 22;
|
|
25473
|
+
}
|
|
25474
|
+
// 把数组处理成文本
|
|
25475
|
+
if (res.inputType === 30) {
|
|
25476
|
+
if (res.defaultValue) {
|
|
25477
|
+
res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
|
|
25353
25478
|
}
|
|
25354
|
-
|
|
25355
|
-
|
|
25356
|
-
|
|
25357
|
-
|
|
25358
|
-
|
|
25479
|
+
}
|
|
25480
|
+
res.fieldMapping = res.fieldMapping || '';
|
|
25481
|
+
delete res.formula;
|
|
25482
|
+
delete res.showValue;
|
|
25483
|
+
if (!(mode === 'create')) {
|
|
25484
|
+
_context4.next = 18;
|
|
25485
|
+
break;
|
|
25486
|
+
}
|
|
25487
|
+
request$1({
|
|
25488
|
+
url: "/basic/flow/businessField",
|
|
25489
|
+
method: 'POST',
|
|
25490
|
+
params: res,
|
|
25491
|
+
successMessage: '创建成功!',
|
|
25492
|
+
converter: function converter() {
|
|
25493
|
+
onParentOk();
|
|
25359
25494
|
}
|
|
25360
|
-
|
|
25361
|
-
|
|
25362
|
-
|
|
25363
|
-
|
|
25364
|
-
|
|
25365
|
-
|
|
25495
|
+
});
|
|
25496
|
+
return _context4.abrupt("return");
|
|
25497
|
+
case 18:
|
|
25498
|
+
request$1({
|
|
25499
|
+
url: "/basic/flow/businessField/".concat(record.id),
|
|
25500
|
+
method: 'PATCH',
|
|
25501
|
+
params: res,
|
|
25502
|
+
successMessage: '修改成功!',
|
|
25503
|
+
converter: function converter() {
|
|
25504
|
+
onParentOk();
|
|
25366
25505
|
}
|
|
25367
|
-
|
|
25368
|
-
|
|
25369
|
-
|
|
25370
|
-
|
|
25371
|
-
successMessage: '创建成功!',
|
|
25372
|
-
converter: function converter() {
|
|
25373
|
-
onParentOk();
|
|
25374
|
-
}
|
|
25375
|
-
});
|
|
25376
|
-
return _context4.abrupt("return");
|
|
25377
|
-
case 18:
|
|
25378
|
-
request$1({
|
|
25379
|
-
url: "/basic/flow/businessField/".concat(record.id),
|
|
25380
|
-
method: 'PATCH',
|
|
25381
|
-
params: res,
|
|
25382
|
-
successMessage: '修改成功!',
|
|
25383
|
-
converter: function converter() {
|
|
25384
|
-
onParentOk();
|
|
25385
|
-
}
|
|
25386
|
-
});
|
|
25387
|
-
case 19:
|
|
25388
|
-
case "end":
|
|
25389
|
-
return _context4.stop();
|
|
25390
|
-
}
|
|
25506
|
+
});
|
|
25507
|
+
case 19:
|
|
25508
|
+
case "end":
|
|
25509
|
+
return _context4.stop();
|
|
25391
25510
|
}
|
|
25392
25511
|
}, _callee4);
|
|
25393
25512
|
}));
|
|
@@ -26172,28 +26291,26 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
26172
26291
|
useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
26173
26292
|
var resData, data;
|
|
26174
26293
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26175
|
-
while (1) {
|
|
26176
|
-
|
|
26177
|
-
|
|
26178
|
-
|
|
26179
|
-
|
|
26180
|
-
|
|
26181
|
-
|
|
26182
|
-
|
|
26183
|
-
|
|
26184
|
-
|
|
26185
|
-
|
|
26186
|
-
|
|
26187
|
-
|
|
26188
|
-
|
|
26189
|
-
|
|
26190
|
-
|
|
26191
|
-
|
|
26192
|
-
|
|
26193
|
-
|
|
26194
|
-
|
|
26195
|
-
return _context.stop();
|
|
26196
|
-
}
|
|
26294
|
+
while (1) switch (_context.prev = _context.next) {
|
|
26295
|
+
case 0:
|
|
26296
|
+
if (!(!source && initRequestSource)) {
|
|
26297
|
+
_context.next = 6;
|
|
26298
|
+
break;
|
|
26299
|
+
}
|
|
26300
|
+
_context.next = 3;
|
|
26301
|
+
return initRequestSource();
|
|
26302
|
+
case 3:
|
|
26303
|
+
resData = _context.sent;
|
|
26304
|
+
data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
|
|
26305
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
26306
|
+
label: item.text,
|
|
26307
|
+
isLeaf: false
|
|
26308
|
+
});
|
|
26309
|
+
})) || [];
|
|
26310
|
+
setHandSource(data);
|
|
26311
|
+
case 6:
|
|
26312
|
+
case "end":
|
|
26313
|
+
return _context.stop();
|
|
26197
26314
|
}
|
|
26198
26315
|
}, _callee);
|
|
26199
26316
|
})), []);
|
|
@@ -26325,20 +26442,18 @@ function getRegularThresholdRange(_x) {
|
|
|
26325
26442
|
function _getRegularThresholdRange() {
|
|
26326
26443
|
_getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
26327
26444
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26328
|
-
while (1) {
|
|
26329
|
-
|
|
26330
|
-
|
|
26331
|
-
|
|
26332
|
-
|
|
26333
|
-
|
|
26334
|
-
|
|
26335
|
-
|
|
26336
|
-
|
|
26337
|
-
|
|
26338
|
-
|
|
26339
|
-
|
|
26340
|
-
return _context.stop();
|
|
26341
|
-
}
|
|
26445
|
+
while (1) switch (_context.prev = _context.next) {
|
|
26446
|
+
case 0:
|
|
26447
|
+
return _context.abrupt("return", axios({
|
|
26448
|
+
url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
|
|
26449
|
+
method: 'POST',
|
|
26450
|
+
data: _objectSpread2(_objectSpread2({}, params), {}, {
|
|
26451
|
+
queryIdentify: undefined
|
|
26452
|
+
})
|
|
26453
|
+
}));
|
|
26454
|
+
case 1:
|
|
26455
|
+
case "end":
|
|
26456
|
+
return _context.stop();
|
|
26342
26457
|
}
|
|
26343
26458
|
}, _callee);
|
|
26344
26459
|
}));
|
|
@@ -26477,137 +26592,136 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26477
26592
|
_this.getRegularThresholdRange(queryIdentify, propertyCode, queryIdentifyType);
|
|
26478
26593
|
});
|
|
26479
26594
|
};
|
|
26595
|
+
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
26480
26596
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
26481
26597
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
26482
26598
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
26483
26599
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26484
|
-
while (1) {
|
|
26485
|
-
|
|
26486
|
-
|
|
26487
|
-
|
|
26488
|
-
|
|
26489
|
-
|
|
26490
|
-
|
|
26491
|
-
|
|
26492
|
-
|
|
26493
|
-
|
|
26494
|
-
|
|
26495
|
-
|
|
26496
|
-
|
|
26497
|
-
|
|
26498
|
-
|
|
26499
|
-
|
|
26500
|
-
|
|
26501
|
-
|
|
26502
|
-
|
|
26503
|
-
|
|
26504
|
-
|
|
26505
|
-
|
|
26506
|
-
|
|
26507
|
-
|
|
26508
|
-
|
|
26509
|
-
|
|
26510
|
-
|
|
26511
|
-
|
|
26512
|
-
|
|
26513
|
-
|
|
26514
|
-
|
|
26515
|
-
|
|
26516
|
-
|
|
26517
|
-
|
|
26518
|
-
|
|
26519
|
-
|
|
26520
|
-
|
|
26521
|
-
|
|
26522
|
-
|
|
26523
|
-
|
|
26524
|
-
|
|
26525
|
-
|
|
26526
|
-
|
|
26527
|
-
|
|
26528
|
-
|
|
26529
|
-
|
|
26530
|
-
|
|
26531
|
-
|
|
26532
|
-
|
|
26533
|
-
|
|
26534
|
-
|
|
26535
|
-
|
|
26536
|
-
|
|
26537
|
-
|
|
26538
|
-
|
|
26539
|
-
|
|
26540
|
-
|
|
26541
|
-
|
|
26542
|
-
|
|
26543
|
-
|
|
26544
|
-
|
|
26545
|
-
|
|
26546
|
-
|
|
26547
|
-
|
|
26548
|
-
|
|
26549
|
-
|
|
26550
|
-
|
|
26551
|
-
|
|
26552
|
-
|
|
26553
|
-
|
|
26554
|
-
|
|
26555
|
-
}) : [];
|
|
26556
|
-
}
|
|
26557
|
-
if (queryIdentifyType === 'dynamicDictCodeIdentify') {
|
|
26558
|
-
var _handleData3;
|
|
26559
|
-
_handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
|
|
26560
|
-
return {
|
|
26561
|
-
code: i.code.toString(),
|
|
26562
|
-
name: i.name
|
|
26563
|
-
};
|
|
26564
|
-
}) : [];
|
|
26565
|
-
}
|
|
26566
|
-
_this.setState({
|
|
26567
|
-
thresholdList: _handleData
|
|
26568
|
-
});
|
|
26600
|
+
while (1) switch (_context.prev = _context.next) {
|
|
26601
|
+
case 0:
|
|
26602
|
+
if (queryIdentify) {
|
|
26603
|
+
_context.next = 2;
|
|
26604
|
+
break;
|
|
26605
|
+
}
|
|
26606
|
+
return _context.abrupt("return");
|
|
26607
|
+
case 2:
|
|
26608
|
+
thresholdQuery = _this.state.thresholdQuery;
|
|
26609
|
+
extraRequestUrl = '';
|
|
26610
|
+
querParams = setParams(propertyCode, thresholdQuery);
|
|
26611
|
+
if (!queryIdentityInfo.find(function (item) {
|
|
26612
|
+
return item.identity == propertyCode;
|
|
26613
|
+
})) {
|
|
26614
|
+
_context.next = 10;
|
|
26615
|
+
break;
|
|
26616
|
+
}
|
|
26617
|
+
//判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
|
|
26618
|
+
needQueryList = queryIdentityInfo.find(function (item) {
|
|
26619
|
+
return item.identity == propertyCode;
|
|
26620
|
+
}).queryParam.filter(function (item) {
|
|
26621
|
+
return item.isRequired;
|
|
26622
|
+
}).map(function (item) {
|
|
26623
|
+
return item.queryKey;
|
|
26624
|
+
});
|
|
26625
|
+
if (!needQueryList.some(function (item) {
|
|
26626
|
+
return !querParams[item] || !querParams[item].length;
|
|
26627
|
+
})) {
|
|
26628
|
+
_context.next = 9;
|
|
26629
|
+
break;
|
|
26630
|
+
}
|
|
26631
|
+
return _context.abrupt("return");
|
|
26632
|
+
case 9:
|
|
26633
|
+
extraRequestUrl = queryIdentityInfo.find(function (item) {
|
|
26634
|
+
return item.identity == propertyCode;
|
|
26635
|
+
}).requestUrl || '';
|
|
26636
|
+
case 10:
|
|
26637
|
+
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
26638
|
+
extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
|
|
26639
|
+
querParams = {
|
|
26640
|
+
dictCode: queryIdentify
|
|
26641
|
+
};
|
|
26642
|
+
} else if (queryIdentifyType === 'dynamicDictCodeIdentify') {
|
|
26643
|
+
extraRequestUrl = "dictDynamicItem/getDynamicData/".concat(queryIdentify); // 字典接口
|
|
26644
|
+
// querParams = { dictCode: queryIdentify }
|
|
26645
|
+
}
|
|
26646
|
+
if (!extraRequestUrl) {
|
|
26647
|
+
_context.next = 16;
|
|
26648
|
+
break;
|
|
26649
|
+
}
|
|
26650
|
+
if (queryIdentify == 'maintain_area_code') {
|
|
26651
|
+
extraRequestUrl = "/basic/".concat(extraRequestUrl).concat(querParams.memberCardCode, "?").concat(stringify(querParams));
|
|
26652
|
+
} else if (queryIdentifyType == 'dictCodeIdentify') {
|
|
26653
|
+
extraRequestUrl = "/basic/".concat(extraRequestUrl, "?").concat(stringify(querParams));
|
|
26654
|
+
} else if (queryIdentifyType == 'dynamicDictCodeIdentify') {
|
|
26655
|
+
extraRequestUrl = "/basic/".concat(extraRequestUrl);
|
|
26656
|
+
}
|
|
26657
|
+
request$1({
|
|
26658
|
+
url: extraRequestUrl,
|
|
26659
|
+
method: 'get',
|
|
26660
|
+
converter: function converter(res) {
|
|
26661
|
+
if (handleError(res)) {
|
|
26662
|
+
var _handleData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
26663
|
+
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
26664
|
+
var _handleData2;
|
|
26665
|
+
_handleData = ((_handleData2 = _handleData) === null || _handleData2 === void 0 ? void 0 : _handleData2.length) ? _handleData.map(function (i) {
|
|
26666
|
+
return {
|
|
26667
|
+
code: i.dictItemCode,
|
|
26668
|
+
name: i.dictItemName
|
|
26669
|
+
};
|
|
26670
|
+
}) : [];
|
|
26569
26671
|
}
|
|
26570
|
-
|
|
26672
|
+
if (queryIdentifyType === 'dynamicDictCodeIdentify') {
|
|
26673
|
+
var _handleData3;
|
|
26674
|
+
_handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
|
|
26675
|
+
return {
|
|
26676
|
+
code: i.code.toString(),
|
|
26677
|
+
name: i.name
|
|
26678
|
+
};
|
|
26679
|
+
}) : [];
|
|
26680
|
+
}
|
|
26681
|
+
_this.setState({
|
|
26682
|
+
thresholdList: _handleData
|
|
26683
|
+
});
|
|
26571
26684
|
}
|
|
26572
|
-
|
|
26573
|
-
_context.next = 29;
|
|
26574
|
-
break;
|
|
26575
|
-
case 16:
|
|
26576
|
-
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
26577
|
-
_context.next = 20;
|
|
26578
|
-
break;
|
|
26685
|
+
return handleData;
|
|
26579
26686
|
}
|
|
26580
|
-
|
|
26581
|
-
|
|
26582
|
-
|
|
26583
|
-
|
|
26687
|
+
});
|
|
26688
|
+
_context.next = 29;
|
|
26689
|
+
break;
|
|
26690
|
+
case 16:
|
|
26691
|
+
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
26692
|
+
_context.next = 20;
|
|
26584
26693
|
break;
|
|
26585
|
-
|
|
26586
|
-
|
|
26587
|
-
|
|
26588
|
-
|
|
26589
|
-
|
|
26590
|
-
|
|
26694
|
+
}
|
|
26695
|
+
_this.setState({
|
|
26696
|
+
thresholdList: queryIdentify
|
|
26697
|
+
});
|
|
26698
|
+
_context.next = 29;
|
|
26699
|
+
break;
|
|
26700
|
+
case 20:
|
|
26701
|
+
if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
|
|
26702
|
+
_context.next = 24;
|
|
26703
|
+
break;
|
|
26704
|
+
}
|
|
26705
|
+
// TODO待处理
|
|
26706
|
+
_this.setState({
|
|
26707
|
+
thresholdList: []
|
|
26708
|
+
});
|
|
26709
|
+
_context.next = 29;
|
|
26710
|
+
break;
|
|
26711
|
+
case 24:
|
|
26712
|
+
querParams.queryIdentify = queryIdentify;
|
|
26713
|
+
_context.next = 27;
|
|
26714
|
+
return getRegularThresholdRange(querParams);
|
|
26715
|
+
case 27:
|
|
26716
|
+
res = _context.sent;
|
|
26717
|
+
if (handleError(res)) {
|
|
26591
26718
|
_this.setState({
|
|
26592
|
-
thresholdList: []
|
|
26719
|
+
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
26593
26720
|
});
|
|
26594
|
-
|
|
26595
|
-
|
|
26596
|
-
|
|
26597
|
-
|
|
26598
|
-
_context.next = 27;
|
|
26599
|
-
return getRegularThresholdRange(querParams);
|
|
26600
|
-
case 27:
|
|
26601
|
-
res = _context.sent;
|
|
26602
|
-
if (handleError(res)) {
|
|
26603
|
-
_this.setState({
|
|
26604
|
-
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
26605
|
-
});
|
|
26606
|
-
}
|
|
26607
|
-
case 29:
|
|
26608
|
-
case "end":
|
|
26609
|
-
return _context.stop();
|
|
26610
|
-
}
|
|
26721
|
+
}
|
|
26722
|
+
case 29:
|
|
26723
|
+
case "end":
|
|
26724
|
+
return _context.stop();
|
|
26611
26725
|
}
|
|
26612
26726
|
}, _callee);
|
|
26613
26727
|
}));
|
|
@@ -27426,32 +27540,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27426
27540
|
notChangeOnSelect: true,
|
|
27427
27541
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
27428
27542
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
27429
|
-
while (1) {
|
|
27430
|
-
|
|
27431
|
-
|
|
27432
|
-
|
|
27433
|
-
|
|
27434
|
-
|
|
27435
|
-
|
|
27436
|
-
|
|
27437
|
-
|
|
27438
|
-
|
|
27439
|
-
|
|
27440
|
-
|
|
27441
|
-
|
|
27442
|
-
|
|
27443
|
-
|
|
27444
|
-
|
|
27445
|
-
|
|
27446
|
-
|
|
27447
|
-
|
|
27448
|
-
|
|
27449
|
-
|
|
27450
|
-
|
|
27451
|
-
|
|
27452
|
-
|
|
27453
|
-
return _context2.stop();
|
|
27454
|
-
}
|
|
27543
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
27544
|
+
case 0:
|
|
27545
|
+
_context2.next = 2;
|
|
27546
|
+
return request$1({
|
|
27547
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
27548
|
+
method: 'get',
|
|
27549
|
+
converter: function converter(_ref3) {
|
|
27550
|
+
var data = _ref3.data;
|
|
27551
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27552
|
+
return {
|
|
27553
|
+
text: item.name,
|
|
27554
|
+
value: item.id,
|
|
27555
|
+
level: item.level,
|
|
27556
|
+
id: item.id
|
|
27557
|
+
};
|
|
27558
|
+
}) : [];
|
|
27559
|
+
return handleData;
|
|
27560
|
+
}
|
|
27561
|
+
});
|
|
27562
|
+
case 2:
|
|
27563
|
+
return _context2.abrupt("return", _context2.sent);
|
|
27564
|
+
case 3:
|
|
27565
|
+
case "end":
|
|
27566
|
+
return _context2.stop();
|
|
27455
27567
|
}
|
|
27456
27568
|
}, _callee2);
|
|
27457
27569
|
})),
|
|
@@ -27477,32 +27589,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27477
27589
|
notChangeOnSelect: true,
|
|
27478
27590
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
27479
27591
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
27480
|
-
while (1) {
|
|
27481
|
-
|
|
27482
|
-
|
|
27483
|
-
|
|
27484
|
-
|
|
27485
|
-
|
|
27486
|
-
|
|
27487
|
-
|
|
27488
|
-
|
|
27489
|
-
|
|
27490
|
-
|
|
27491
|
-
|
|
27492
|
-
|
|
27493
|
-
|
|
27494
|
-
|
|
27495
|
-
|
|
27496
|
-
|
|
27497
|
-
|
|
27498
|
-
|
|
27499
|
-
|
|
27500
|
-
|
|
27501
|
-
|
|
27502
|
-
|
|
27503
|
-
|
|
27504
|
-
return _context3.stop();
|
|
27505
|
-
}
|
|
27592
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
27593
|
+
case 0:
|
|
27594
|
+
_context3.next = 2;
|
|
27595
|
+
return request$1({
|
|
27596
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
27597
|
+
method: 'get',
|
|
27598
|
+
converter: function converter(_ref5) {
|
|
27599
|
+
var data = _ref5.data;
|
|
27600
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27601
|
+
return {
|
|
27602
|
+
text: item.name,
|
|
27603
|
+
value: item.id,
|
|
27604
|
+
level: item.level,
|
|
27605
|
+
id: item.id
|
|
27606
|
+
};
|
|
27607
|
+
}) : [];
|
|
27608
|
+
return handleData;
|
|
27609
|
+
}
|
|
27610
|
+
});
|
|
27611
|
+
case 2:
|
|
27612
|
+
return _context3.abrupt("return", _context3.sent);
|
|
27613
|
+
case 3:
|
|
27614
|
+
case "end":
|
|
27615
|
+
return _context3.stop();
|
|
27506
27616
|
}
|
|
27507
27617
|
}, _callee3);
|
|
27508
27618
|
})),
|
|
@@ -27530,32 +27640,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27530
27640
|
notChangeOnSelect: true,
|
|
27531
27641
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
27532
27642
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
27533
|
-
while (1) {
|
|
27534
|
-
|
|
27535
|
-
|
|
27536
|
-
|
|
27537
|
-
|
|
27538
|
-
|
|
27539
|
-
|
|
27540
|
-
|
|
27541
|
-
|
|
27542
|
-
|
|
27543
|
-
|
|
27544
|
-
|
|
27545
|
-
|
|
27546
|
-
|
|
27547
|
-
|
|
27548
|
-
|
|
27549
|
-
|
|
27550
|
-
|
|
27551
|
-
|
|
27552
|
-
|
|
27553
|
-
|
|
27554
|
-
|
|
27555
|
-
|
|
27556
|
-
|
|
27557
|
-
return _context4.stop();
|
|
27558
|
-
}
|
|
27643
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
27644
|
+
case 0:
|
|
27645
|
+
_context4.next = 2;
|
|
27646
|
+
return request$1({
|
|
27647
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
27648
|
+
method: 'get',
|
|
27649
|
+
converter: function converter(_ref7) {
|
|
27650
|
+
var data = _ref7.data;
|
|
27651
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27652
|
+
return {
|
|
27653
|
+
text: item.name,
|
|
27654
|
+
value: item.id,
|
|
27655
|
+
level: item.level,
|
|
27656
|
+
id: item.id
|
|
27657
|
+
};
|
|
27658
|
+
}) : [];
|
|
27659
|
+
return handleData;
|
|
27660
|
+
}
|
|
27661
|
+
});
|
|
27662
|
+
case 2:
|
|
27663
|
+
return _context4.abrupt("return", _context4.sent);
|
|
27664
|
+
case 3:
|
|
27665
|
+
case "end":
|
|
27666
|
+
return _context4.stop();
|
|
27559
27667
|
}
|
|
27560
27668
|
}, _callee4);
|
|
27561
27669
|
})),
|
|
@@ -28672,8 +28780,6 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
28672
28780
|
});
|
|
28673
28781
|
}
|
|
28674
28782
|
}
|
|
28675
|
-
|
|
28676
|
-
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
28677
28783
|
}, {
|
|
28678
28784
|
key: "render",
|
|
28679
28785
|
value: function render() {
|
|
@@ -29504,6 +29610,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29504
29610
|
callBack(ruleClassData);
|
|
29505
29611
|
});
|
|
29506
29612
|
};
|
|
29613
|
+
// 树结构 转化成 平行树 (递归函数)
|
|
29507
29614
|
_this.coverToParallel = function (treeData, result) {
|
|
29508
29615
|
treeData.forEach(function (el) {
|
|
29509
29616
|
result.push(el);
|
|
@@ -29759,6 +29866,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29759
29866
|
callBack(ruleClassData);
|
|
29760
29867
|
});
|
|
29761
29868
|
};
|
|
29869
|
+
// 场景需要返回值2022.11.15
|
|
29762
29870
|
_this.renderResItem = function (itemDetail, parentDetail, ruleReturnConfig, classDataIndex, disabled, boxStyle) {
|
|
29763
29871
|
var _ruleReturnConfig$rig;
|
|
29764
29872
|
var isShowResponse = itemDetail.response['enable'];
|
|
@@ -30056,32 +30164,30 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30056
30164
|
notChangeOnSelect: true,
|
|
30057
30165
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30058
30166
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30059
|
-
while (1) {
|
|
30060
|
-
|
|
30061
|
-
|
|
30062
|
-
|
|
30063
|
-
|
|
30064
|
-
|
|
30065
|
-
|
|
30066
|
-
|
|
30067
|
-
|
|
30068
|
-
|
|
30069
|
-
|
|
30070
|
-
|
|
30071
|
-
|
|
30072
|
-
|
|
30073
|
-
|
|
30074
|
-
|
|
30075
|
-
|
|
30076
|
-
|
|
30077
|
-
|
|
30078
|
-
|
|
30079
|
-
|
|
30080
|
-
|
|
30081
|
-
|
|
30082
|
-
|
|
30083
|
-
return _context.stop();
|
|
30084
|
-
}
|
|
30167
|
+
while (1) switch (_context.prev = _context.next) {
|
|
30168
|
+
case 0:
|
|
30169
|
+
_context.next = 2;
|
|
30170
|
+
return request$1({
|
|
30171
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
30172
|
+
method: 'get',
|
|
30173
|
+
converter: function converter(_ref2) {
|
|
30174
|
+
var data = _ref2.data;
|
|
30175
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
30176
|
+
return {
|
|
30177
|
+
text: item.name,
|
|
30178
|
+
value: item.id,
|
|
30179
|
+
level: item.level,
|
|
30180
|
+
id: item.id
|
|
30181
|
+
};
|
|
30182
|
+
}) : [];
|
|
30183
|
+
return handleData;
|
|
30184
|
+
}
|
|
30185
|
+
});
|
|
30186
|
+
case 2:
|
|
30187
|
+
return _context.abrupt("return", _context.sent);
|
|
30188
|
+
case 3:
|
|
30189
|
+
case "end":
|
|
30190
|
+
return _context.stop();
|
|
30085
30191
|
}
|
|
30086
30192
|
}, _callee);
|
|
30087
30193
|
})),
|
|
@@ -30415,6 +30521,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30415
30521
|
}
|
|
30416
30522
|
}, "\u65B0\u589E\u8FD4\u56DE\u503C")), isHaveRuleReturnConfig && _this.renderResItem(itemDetail, parentDetail, ruleReturnConfig, classDataIndex, disabled, RuleActionItemStyle) || null, isHaveRuleTypeData && _this.renderActionList(itemDetail, parentDetail, handleRuleTypeData, selectRuleActionData, classDataIndex, disabled, RuleActionItemStyle) || null);
|
|
30417
30523
|
};
|
|
30524
|
+
//添加同一层级条件
|
|
30418
30525
|
_this.addPeerRule = function (itemDetail) {
|
|
30419
30526
|
var ruleClassData = _this.state.ruleClassData;
|
|
30420
30527
|
var _this$props4 = _this.props,
|
|
@@ -30435,6 +30542,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30435
30542
|
callBack(ruleClassData);
|
|
30436
30543
|
});
|
|
30437
30544
|
};
|
|
30545
|
+
//添加子层级条件
|
|
30438
30546
|
_this.addChildRules = function (itemDetail) {
|
|
30439
30547
|
var ruleClassData = _this.state.ruleClassData;
|
|
30440
30548
|
var callBack = _this.props.callBack;
|
|
@@ -30510,6 +30618,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30510
30618
|
callBack(ruleClassData);
|
|
30511
30619
|
});
|
|
30512
30620
|
};
|
|
30621
|
+
// 新增执行顺序
|
|
30513
30622
|
_this.handleSelectRuleAction = function (keys, classDataIndex, callback) {
|
|
30514
30623
|
callback();
|
|
30515
30624
|
var callBack = _this.props.callBack;
|