@bit-sun/business-component 2.3.23 → 2.3.24-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +16 -16
- package/.fatherrc.ts +5 -5
- package/.gitlab-ci.yml +179 -179
- package/.prettierignore +7 -7
- package/.prettierrc +11 -11
- package/.umirc.ts +74 -74
- package/README.md +27 -27
- package/dist/components/Business/BsLayouts/Components/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/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 +0 -13
- package/dist/components/Functional/BsAntdSula/BsCascader/index.d.ts +1 -1
- package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
- package/dist/index.esm.js +1287 -1393
- package/dist/index.js +1287 -1393
- 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 +895 -1060
- package/src/components/Business/BsLayouts/Components/AllFunc/drawContent.tsx +111 -111
- package/src/components/Business/BsLayouts/Components/AllFunc/index.less +153 -153
- package/src/components/Business/BsLayouts/Components/AllFunc/index.tsx +70 -70
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.less +90 -90
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.tsx +37 -37
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.tsx +242 -242
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.tsx +384 -384
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.tsx +285 -285
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.tsx +74 -74
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/drawContent.less +170 -170
- package/src/components/Business/BsLayouts/Components/CustomerMenu/index.less +64 -64
- package/src/components/Business/BsLayouts/Components/CustomerMenu/index.tsx +153 -153
- package/src/components/Business/BsLayouts/Components/GlobalHeader/index.less +72 -72
- package/src/components/Business/BsLayouts/Components/GlobalHeader/index.tsx +157 -157
- package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +85 -85
- package/src/components/Business/BsLayouts/Components/RightContent/home.less +218 -218
- package/src/components/Business/BsLayouts/Components/RightContent/index.tsx +155 -155
- package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +160 -160
- package/src/components/Business/BsLayouts/Components/SearchFunc/index.tsx +75 -75
- package/src/components/Business/BsLayouts/index.less +79 -79
- package/src/components/Business/BsLayouts/index.tsx +1484 -1484
- package/src/components/Business/BsLayouts/service.ts +10 -10
- package/src/components/Business/BsLayouts/utils.tsx +203 -203
- package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +564 -564
- package/src/components/Business/BsSulaQueryTable/index.less +221 -221
- package/src/components/Business/BsSulaQueryTable/index.tsx +535 -535
- package/src/components/Business/BsSulaQueryTable/setting.tsx +852 -852
- package/src/components/Business/BsSulaQueryTable/utils.less +65 -65
- package/src/components/Business/BsSulaQueryTable/utils.tsx +688 -690
- package/src/components/Business/CommodityEntry/index.md +70 -70
- package/src/components/Business/CommodityEntry/index.tsx +80 -80
- package/src/components/Business/CommonAlert/index.tsx +23 -23
- package/src/components/Business/CommonGuideWrapper/index.less +111 -111
- package/src/components/Business/CommonGuideWrapper/index.md +39 -39
- package/src/components/Business/CommonGuideWrapper/index.tsx +83 -83
- package/src/components/Business/DetailPageWrapper/index.less +79 -79
- package/src/components/Business/DetailPageWrapper/index.tsx +314 -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 +69 -71
- package/src/components/Business/moreTreeTable/FixedScrollBar.tsx +87 -87
- package/src/components/Business/moreTreeTable/hooks/useSticky.ts +21 -21
- package/src/components/Business/moreTreeTable/index.less +99 -99
- package/src/components/Business/moreTreeTable/index.md +448 -448
- package/src/components/Business/moreTreeTable/index.tsx +387 -387
- package/src/components/Business/moreTreeTable/utils.ts +126 -126
- package/src/components/Functional/AddSelect/helps.ts +14 -79
- package/src/components/Functional/AddSelect/index.less +367 -367
- package/src/components/Functional/AddSelect/index.md +155 -155
- package/src/components/Functional/AddSelect/index.tsx +1282 -1170
- package/src/components/Functional/BillEntry/index.less +371 -371
- package/src/components/Functional/BillEntry/index.md +39 -39
- package/src/components/Functional/BillEntry/index.tsx +772 -772
- package/src/components/Functional/BsAntdSula/BsCascader/index.md +62 -62
- package/src/components/Functional/BsAntdSula/BsCascader/index.tsx +178 -178
- package/src/components/Functional/BsAntdSula/index.ts +2 -2
- package/src/components/Functional/DataImport/index.less +63 -63
- package/src/components/Functional/DataImport/index.md +44 -44
- package/src/components/Functional/DataImport/index.tsx +695 -695
- package/src/components/Functional/DataValidation/index.less +63 -63
- package/src/components/Functional/DataValidation/index.md +39 -39
- package/src/components/Functional/DataValidation/index.tsx +687 -687
- package/src/components/Functional/EllipsisTooltip/index.d.ts +5 -5
- package/src/components/Functional/EllipsisTooltip/index.js +36 -36
- package/src/components/Functional/EllipsisTooltip/index.md +30 -30
- package/src/components/Functional/ExportFunctions/ExportIcon/index.md +37 -37
- package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +59 -59
- package/src/components/Functional/QueryMutipleInput/index.less +37 -37
- package/src/components/Functional/QueryMutipleInput/index.md +33 -33
- package/src/components/Functional/QueryMutipleInput/index.tsx +128 -128
- package/src/components/Functional/SearchSelect/index.less +115 -115
- package/src/components/Functional/SearchSelect/index.md +141 -141
- package/src/components/Functional/SearchSelect/index.tsx +879 -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,33 +136,6 @@ 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
|
-
}
|
|
166
139
|
function ownKeys(object, enumerableOnly) {
|
|
167
140
|
var keys = Object.keys(object);
|
|
168
141
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -319,9 +292,14 @@ function _regeneratorRuntime() {
|
|
|
319
292
|
};
|
|
320
293
|
}
|
|
321
294
|
function maybeInvokeDelegate(delegate, context) {
|
|
322
|
-
var
|
|
323
|
-
|
|
324
|
-
|
|
295
|
+
var method = delegate.iterator[context.method];
|
|
296
|
+
if (undefined === method) {
|
|
297
|
+
if (context.delegate = null, "throw" === context.method) {
|
|
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
|
+
}
|
|
325
303
|
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
326
304
|
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
327
305
|
var info = record.arg;
|
|
@@ -535,7 +513,7 @@ function _defineProperties(target, props) {
|
|
|
535
513
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
536
514
|
descriptor.configurable = true;
|
|
537
515
|
if ("value" in descriptor) descriptor.writable = true;
|
|
538
|
-
Object.defineProperty(target,
|
|
516
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
539
517
|
}
|
|
540
518
|
}
|
|
541
519
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
@@ -547,7 +525,6 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
547
525
|
return Constructor;
|
|
548
526
|
}
|
|
549
527
|
function _defineProperty(obj, key, value) {
|
|
550
|
-
key = _toPropertyKey(key);
|
|
551
528
|
if (key in obj) {
|
|
552
529
|
Object.defineProperty(obj, key, {
|
|
553
530
|
value: value,
|
|
@@ -690,6 +667,30 @@ function _arrayWithHoles(arr) {
|
|
|
690
667
|
function _iterableToArray(iter) {
|
|
691
668
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
692
669
|
}
|
|
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
|
+
}
|
|
693
694
|
function _unsupportedIterableToArray(o, minLen) {
|
|
694
695
|
if (!o) return;
|
|
695
696
|
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
@@ -709,20 +710,6 @@ function _nonIterableSpread() {
|
|
|
709
710
|
function _nonIterableRest() {
|
|
710
711
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
711
712
|
}
|
|
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
|
-
}
|
|
726
713
|
|
|
727
714
|
var checkQuantityAccuracy = function checkQuantityAccuracy(value, accuracy, errorInfo) {
|
|
728
715
|
var errorMessage = _objectSpread2({
|
|
@@ -975,35 +962,32 @@ function handleCommonTimeRender(text, format) {
|
|
|
975
962
|
}
|
|
976
963
|
//设置queryTable默认列宽
|
|
977
964
|
var getItemDefaultWidth = function getItemDefaultWidth(item) {
|
|
978
|
-
var _ref;
|
|
979
965
|
var defaultWidth = 200;
|
|
980
|
-
var lowerCaseKey = (
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
break;
|
|
1006
|
-
}
|
|
966
|
+
var lowerCaseKey = (item.key || item.dataIndex).toLowerCase();
|
|
967
|
+
switch (true) {
|
|
968
|
+
case (item === null || item === void 0 ? void 0 : item.title) === '操作' || lowerCaseKey === 'operate':
|
|
969
|
+
defaultWidth = 60;
|
|
970
|
+
break;
|
|
971
|
+
case lowerCaseKey.indexOf('number') > -1:
|
|
972
|
+
case lowerCaseKey.indexOf('quantity') > -1:
|
|
973
|
+
case lowerCaseKey.indexOf('amount') > -1:
|
|
974
|
+
defaultWidth = 90;
|
|
975
|
+
break;
|
|
976
|
+
case lowerCaseKey.indexOf('no') > -1:
|
|
977
|
+
defaultWidth = 200;
|
|
978
|
+
break;
|
|
979
|
+
case lowerCaseKey.indexOf('code') > -1:
|
|
980
|
+
defaultWidth = 170;
|
|
981
|
+
break;
|
|
982
|
+
case lowerCaseKey.indexOf('time') > -1:
|
|
983
|
+
defaultWidth = 130;
|
|
984
|
+
break;
|
|
985
|
+
case lowerCaseKey.indexOf('status') > -1:
|
|
986
|
+
defaultWidth = 100;
|
|
987
|
+
break;
|
|
988
|
+
case lowerCaseKey.indexOf('user') > -1:
|
|
989
|
+
defaultWidth = 130;
|
|
990
|
+
break;
|
|
1007
991
|
}
|
|
1008
992
|
return defaultWidth;
|
|
1009
993
|
};
|
|
@@ -1013,59 +997,58 @@ var getItemDefaultWidth = function getItemDefaultWidth(item) {
|
|
|
1013
997
|
* @returns 返回处理后的查询参数
|
|
1014
998
|
*/
|
|
1015
999
|
function queryParams(params, flag) {
|
|
1016
|
-
var
|
|
1000
|
+
for (var key in params) {
|
|
1017
1001
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1002
|
+
(function () {
|
|
1003
|
+
var element = params[key];
|
|
1004
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
1005
|
+
var dataParams = key.split('*number*');
|
|
1006
|
+
dataParams.forEach(function (value, index) {
|
|
1007
|
+
params[value] = element[index];
|
|
1008
|
+
});
|
|
1009
|
+
delete params[key];
|
|
1010
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
1011
|
+
var _dataParams = key.split('*address*');
|
|
1012
|
+
_dataParams.forEach(function (value, index) {
|
|
1013
|
+
params[value] = element.PCDCode[index];
|
|
1014
|
+
});
|
|
1015
|
+
delete params[key];
|
|
1016
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
1017
|
+
var _dataParams2 = key.split('*costType*');
|
|
1018
|
+
// eslint-disable-next-line prefer-destructuring
|
|
1019
|
+
params[_dataParams2[0]] = element[1];
|
|
1020
|
+
delete params[key];
|
|
1021
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
1022
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
1023
|
+
_dataParams3.forEach(function (value, index) {
|
|
1024
|
+
if (index === 0) {
|
|
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;
|
|
1041
1042
|
} else {
|
|
1042
|
-
params[
|
|
1043
|
+
params["qp-".concat(_dataParams5[0], "-like")] = element;
|
|
1044
|
+
params["qp-".concat(_dataParams5[0], "-in")] = null;
|
|
1043
1045
|
}
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
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;
|
|
1046
|
+
delete params[key];
|
|
1047
|
+
} else if (Array.isArray(element)) {
|
|
1048
|
+
params[key] = element.join(',');
|
|
1060
1049
|
}
|
|
1061
|
-
|
|
1062
|
-
} else if (Array.isArray(element)) {
|
|
1063
|
-
params[key] = element.join(',');
|
|
1064
|
-
}
|
|
1050
|
+
})();
|
|
1065
1051
|
}
|
|
1066
|
-
};
|
|
1067
|
-
for (var key in params) {
|
|
1068
|
-
_loop();
|
|
1069
1052
|
}
|
|
1070
1053
|
return flag ? params : qs.stringify(params);
|
|
1071
1054
|
}
|
|
@@ -2794,85 +2777,84 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
2794
2777
|
});
|
|
2795
2778
|
}
|
|
2796
2779
|
// 数组对象处理,对带有特殊标记的name进行处理
|
|
2797
|
-
var
|
|
2780
|
+
for (var key in params) {
|
|
2798
2781
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2782
|
+
(function () {
|
|
2783
|
+
var element = params[key];
|
|
2784
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
2785
|
+
var dataParams = key.split('*number*');
|
|
2786
|
+
dataParams.forEach(function (value, index) {
|
|
2787
|
+
params[value] = element[index];
|
|
2788
|
+
});
|
|
2789
|
+
delete params[key];
|
|
2790
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
2791
|
+
var _dataParams = key.split('*address*');
|
|
2792
|
+
_dataParams.forEach(function (value, index) {
|
|
2793
|
+
params[value] = element.PCDCode[index];
|
|
2794
|
+
});
|
|
2795
|
+
delete params[key];
|
|
2796
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
2797
|
+
var _dataParams2 = key.split('*costType*');
|
|
2798
|
+
// eslint-disable-next-line prefer-destructuring
|
|
2799
|
+
params[_dataParams2[0]] = element[1];
|
|
2800
|
+
delete params[key];
|
|
2801
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
2802
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
2803
|
+
_dataParams3.forEach(function (value, index) {
|
|
2804
|
+
if (index === 0) {
|
|
2805
|
+
params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
2806
|
+
} else {
|
|
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;
|
|
2824
2815
|
}
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2816
|
+
delete params[key];
|
|
2817
|
+
} else if (element && key.indexOf('*cascader*') >= 0) {
|
|
2818
|
+
var _dataParams5 = key.split('*cascader*');
|
|
2819
|
+
params[_dataParams5[0]] = element[element.length - 1];
|
|
2820
|
+
delete params[key];
|
|
2821
|
+
} else if (element && key.indexOf('*date*') >= 0) {
|
|
2822
|
+
var _dataParams6 = key.split('*date*');
|
|
2823
|
+
_dataParams6.forEach(function (value, index) {
|
|
2824
|
+
if (index === 0) {
|
|
2825
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
2826
|
+
} else {
|
|
2827
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
2828
|
+
}
|
|
2829
|
+
});
|
|
2830
|
+
delete params[key];
|
|
2831
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
2832
|
+
var _dataParams7 = key.split('*');
|
|
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
|
+
}
|
|
2842
2847
|
} else {
|
|
2843
|
-
params[
|
|
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];
|
|
2848
|
+
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
2859
2849
|
}
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
} else {
|
|
2864
|
-
|
|
2850
|
+
delete params[key];
|
|
2851
|
+
} else if (Array.isArray(element)) {
|
|
2852
|
+
params[key] = element.join(',');
|
|
2853
|
+
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
2854
|
+
delete params[key];
|
|
2865
2855
|
}
|
|
2866
|
-
|
|
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
|
-
}
|
|
2856
|
+
})();
|
|
2872
2857
|
}
|
|
2873
|
-
};
|
|
2874
|
-
for (var key in params) {
|
|
2875
|
-
_loop();
|
|
2876
2858
|
}
|
|
2877
2859
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
2878
2860
|
pageSize: pageSize,
|
|
@@ -4221,32 +4203,30 @@ var getItemDefaultWidth$1 = function getItemDefaultWidth(item) {
|
|
|
4221
4203
|
var _ref;
|
|
4222
4204
|
var defaultWidth = 200;
|
|
4223
4205
|
var lowerCaseKey = (_ref = item.key || item.dataIndex) === null || _ref === void 0 ? void 0 : _ref.toLowerCase();
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
break;
|
|
4249
|
-
}
|
|
4206
|
+
switch (true) {
|
|
4207
|
+
case (item === null || item === void 0 ? void 0 : item.title) === '操作' || lowerCaseKey === 'operate':
|
|
4208
|
+
defaultWidth = 60;
|
|
4209
|
+
break;
|
|
4210
|
+
case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('number')) > -1:
|
|
4211
|
+
case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('quantity')) > -1:
|
|
4212
|
+
case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('amount')) > -1:
|
|
4213
|
+
defaultWidth = 90;
|
|
4214
|
+
break;
|
|
4215
|
+
case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('no')) > -1:
|
|
4216
|
+
defaultWidth = 200;
|
|
4217
|
+
break;
|
|
4218
|
+
case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('code')) > -1:
|
|
4219
|
+
defaultWidth = 170;
|
|
4220
|
+
break;
|
|
4221
|
+
case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('time')) > -1:
|
|
4222
|
+
defaultWidth = 130;
|
|
4223
|
+
break;
|
|
4224
|
+
case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('status')) > -1:
|
|
4225
|
+
defaultWidth = 100;
|
|
4226
|
+
break;
|
|
4227
|
+
case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('user')) > -1:
|
|
4228
|
+
defaultWidth = 130;
|
|
4229
|
+
break;
|
|
4250
4230
|
}
|
|
4251
4231
|
return defaultWidth;
|
|
4252
4232
|
};
|
|
@@ -4271,6 +4251,8 @@ var getSelectDataList = function getSelectDataList(record, item, selectKey) {
|
|
|
4271
4251
|
}
|
|
4272
4252
|
return result;
|
|
4273
4253
|
};
|
|
4254
|
+
|
|
4255
|
+
var _excluded$3 = ["onResize", "width"];
|
|
4274
4256
|
var loadSelectSource = function loadSelectSource(url, params) {
|
|
4275
4257
|
return new Promise(function (resolve, reject) {
|
|
4276
4258
|
axios.get("".concat(url, "?").concat(stringify(params))).then(function (result) {
|
|
@@ -4278,7 +4260,6 @@ var loadSelectSource = function loadSelectSource(url, params) {
|
|
|
4278
4260
|
result = result.data;
|
|
4279
4261
|
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') {
|
|
4280
4262
|
message$1.error(result.msg);
|
|
4281
|
-
resolve(result);
|
|
4282
4263
|
return;
|
|
4283
4264
|
}
|
|
4284
4265
|
resolve(result);
|
|
@@ -4287,6 +4268,38 @@ var loadSelectSource = function loadSelectSource(url, params) {
|
|
|
4287
4268
|
});
|
|
4288
4269
|
});
|
|
4289
4270
|
};
|
|
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
|
+
};
|
|
4290
4303
|
var formatSource = function formatSource(reData, position, changePosition, changeSearchForm) {
|
|
4291
4304
|
var _reData$position;
|
|
4292
4305
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['code', 'name'];
|
|
@@ -4326,52 +4339,6 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
4326
4339
|
}) || [];
|
|
4327
4340
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
4328
4341
|
};
|
|
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
|
-
};
|
|
4375
4342
|
var initTableCode = {
|
|
4376
4343
|
'sku': ['skuSelect-tableOptionsToChoosePartCode', 'skuSelect-tableSelectedItemPartCode'],
|
|
4377
4344
|
'skc': ['skcSelect-tableOptionsToChoosePartCode', 'skcSelect-tableSelectedItemPartCode'],
|
|
@@ -4404,7 +4371,9 @@ var AddSelect = function AddSelect(props) {
|
|
|
4404
4371
|
_props$businessType = props.businessType,
|
|
4405
4372
|
businessType = _props$businessType === void 0 ? 'sku' : _props$businessType,
|
|
4406
4373
|
_props$isAllowRepeate = props.isAllowRepeatedSelect,
|
|
4407
|
-
isAllowRepeatedSelect = _props$isAllowRepeate === void 0 ? false : _props$isAllowRepeate
|
|
4374
|
+
isAllowRepeatedSelect = _props$isAllowRepeate === void 0 ? false : _props$isAllowRepeate,
|
|
4375
|
+
_props$noUseItemEanco = props.noUseItemEancode,
|
|
4376
|
+
noUseItemEancode = _props$noUseItemEanco === void 0 ? true : _props$noUseItemEanco;
|
|
4408
4377
|
var _ref = requestConfig || {},
|
|
4409
4378
|
url = _ref.url,
|
|
4410
4379
|
otherParams = _ref.otherParams,
|
|
@@ -4561,74 +4530,76 @@ var AddSelect = function AddSelect(props) {
|
|
|
4561
4530
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
4562
4531
|
var result;
|
|
4563
4532
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
4564
|
-
while (1)
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4533
|
+
while (1) {
|
|
4534
|
+
switch (_context.prev = _context.next) {
|
|
4535
|
+
case 0:
|
|
4536
|
+
if (!(bType == 'skc' && tList.some(function (i) {
|
|
4537
|
+
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
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;
|
|
4606
4590
|
break;
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
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();
|
|
4591
|
+
case 22:
|
|
4592
|
+
_context.prev = 22;
|
|
4593
|
+
_context.t0 = _context["catch"](15);
|
|
4594
|
+
result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
|
|
4595
|
+
case 25:
|
|
4596
|
+
return _context.abrupt("return", result);
|
|
4597
|
+
case 26:
|
|
4598
|
+
return _context.abrupt("return", true);
|
|
4599
|
+
case 27:
|
|
4600
|
+
case "end":
|
|
4601
|
+
return _context.stop();
|
|
4602
|
+
}
|
|
4632
4603
|
}
|
|
4633
4604
|
}, _callee, null, [[15, 22]]);
|
|
4634
4605
|
}));
|
|
@@ -4820,27 +4791,29 @@ var AddSelect = function AddSelect(props) {
|
|
|
4820
4791
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
4821
4792
|
var isConformToTheRules, newPopValue;
|
|
4822
4793
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
4823
|
-
while (1)
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
newPopValue = popvalue.map(function (i, innerIndex) {
|
|
4835
|
-
if (innerIndex == index) {
|
|
4836
|
-
i[item.dataIndex] = record[item.dataIndex];
|
|
4794
|
+
while (1) {
|
|
4795
|
+
switch (_context2.prev = _context2.next) {
|
|
4796
|
+
case 0:
|
|
4797
|
+
_context2.next = 2;
|
|
4798
|
+
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
4799
|
+
case 2:
|
|
4800
|
+
isConformToTheRules = _context2.sent;
|
|
4801
|
+
if (isConformToTheRules) {
|
|
4802
|
+
record[item.dataIndex] = value;
|
|
4803
|
+
} else {
|
|
4804
|
+
record[item.dataIndex] = null;
|
|
4837
4805
|
}
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
|
|
4806
|
+
newPopValue = popvalue.map(function (i, innerIndex) {
|
|
4807
|
+
if (innerIndex == index) {
|
|
4808
|
+
i[item.dataIndex] = record[item.dataIndex];
|
|
4809
|
+
}
|
|
4810
|
+
return i;
|
|
4811
|
+
});
|
|
4812
|
+
setPopValue(newPopValue);
|
|
4813
|
+
case 6:
|
|
4814
|
+
case "end":
|
|
4815
|
+
return _context2.stop();
|
|
4816
|
+
}
|
|
4844
4817
|
}
|
|
4845
4818
|
}, _callee2);
|
|
4846
4819
|
}));
|
|
@@ -4900,95 +4873,94 @@ var AddSelect = function AddSelect(props) {
|
|
|
4900
4873
|
});
|
|
4901
4874
|
}
|
|
4902
4875
|
// 数组对象处理,对带有特殊标记的name进行处理
|
|
4903
|
-
var
|
|
4876
|
+
for (var key in params) {
|
|
4904
4877
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4878
|
+
(function () {
|
|
4879
|
+
var element = params[key];
|
|
4880
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
4881
|
+
var dataParams = key.split('*number*');
|
|
4882
|
+
dataParams.forEach(function (value, index) {
|
|
4883
|
+
params[value] = element[index];
|
|
4884
|
+
});
|
|
4885
|
+
delete params[key];
|
|
4886
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
4887
|
+
var _dataParams = key.split('*address*');
|
|
4888
|
+
_dataParams.forEach(function (value, index) {
|
|
4889
|
+
params[value] = element.PCDCode[index];
|
|
4890
|
+
});
|
|
4891
|
+
delete params[key];
|
|
4892
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
4893
|
+
var _dataParams2 = key.split('*costType*');
|
|
4894
|
+
// eslint-disable-next-line prefer-destructuring
|
|
4895
|
+
params[_dataParams2[0]] = element[1];
|
|
4896
|
+
delete params[key];
|
|
4897
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
4898
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
4899
|
+
_dataParams3.forEach(function (value, index) {
|
|
4900
|
+
if (index === 0) {
|
|
4901
|
+
params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
4902
|
+
} else {
|
|
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;
|
|
4930
4911
|
}
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4912
|
+
delete params[key];
|
|
4913
|
+
} else if (element && key.indexOf('*cascader*') >= 0) {
|
|
4914
|
+
var _dataParams5 = key.split('*cascader*');
|
|
4915
|
+
params[_dataParams5[0]] = element[element.length - 1];
|
|
4916
|
+
delete params[key];
|
|
4917
|
+
} else if (element && key.indexOf('*date*') >= 0) {
|
|
4918
|
+
var _dataParams6 = key.split('*date*');
|
|
4919
|
+
_dataParams6.forEach(function (value, index) {
|
|
4920
|
+
if (index === 0) {
|
|
4921
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
4922
|
+
} else {
|
|
4923
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
4924
|
+
}
|
|
4925
|
+
});
|
|
4926
|
+
delete params[key];
|
|
4927
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
4928
|
+
var _dataParams7 = key.split('*');
|
|
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
|
+
}
|
|
4948
4943
|
} else {
|
|
4949
|
-
params[
|
|
4944
|
+
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
4950
4945
|
}
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
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];
|
|
4946
|
+
delete params[key];
|
|
4947
|
+
} else if (Array.isArray(element)) {
|
|
4948
|
+
params[key] = element.join(',');
|
|
4949
|
+
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
4950
|
+
delete params[key];
|
|
4971
4951
|
}
|
|
4972
|
-
|
|
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
|
-
}
|
|
4952
|
+
})();
|
|
4978
4953
|
}
|
|
4979
|
-
};
|
|
4980
|
-
for (var key in params) {
|
|
4981
|
-
_loop();
|
|
4982
4954
|
}
|
|
4983
4955
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
4984
4956
|
pageSize: pageSize,
|
|
4985
4957
|
currentPage: currentPage
|
|
4986
4958
|
}, otherParams), fixedParam), params);
|
|
4987
4959
|
axios.get("".concat(url, "?").concat(stringify(queryParams))).then(function (result) {
|
|
4988
|
-
var
|
|
4960
|
+
var _result5, _result6;
|
|
4989
4961
|
setFetching(false);
|
|
4990
4962
|
result = result.data;
|
|
4991
|
-
if (((
|
|
4963
|
+
if (((_result5 = result) === null || _result5 === void 0 ? void 0 : _result5.status) && result.status !== '0' || ((_result6 = result) === null || _result6 === void 0 ? void 0 : _result6.code) && result.code !== '000000') {
|
|
4992
4964
|
message$1.error(result.msg);
|
|
4993
4965
|
return;
|
|
4994
4966
|
}
|
|
@@ -5069,14 +5041,65 @@ var AddSelect = function AddSelect(props) {
|
|
|
5069
5041
|
};
|
|
5070
5042
|
|
|
5071
5043
|
useEffect(function () {
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
|
|
5076
|
-
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
|
|
5044
|
+
if (businessType == 'sku') {
|
|
5045
|
+
Promise.all([loadSelectSource("/items/brand/queryBrandList", {
|
|
5046
|
+
pageSize: 5000,
|
|
5047
|
+
currentPage: 1,
|
|
5048
|
+
'ctl-withAuth': true
|
|
5049
|
+
}), loadSelectSource("/items/category/queryCategoryTree", {
|
|
5050
|
+
pageSize: 5000,
|
|
5051
|
+
currentPage: 1
|
|
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
|
+
}
|
|
5080
5103
|
}, [businessType]);
|
|
5081
5104
|
useEffect(function () {
|
|
5082
5105
|
if (value) {
|
|
@@ -5357,10 +5380,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
5357
5380
|
setSelectedRowKeys([]);
|
|
5358
5381
|
} else {
|
|
5359
5382
|
setPopValue(popvalue.filter(function (item) {
|
|
5360
|
-
return item
|
|
5383
|
+
return item.skuCode !== record.skuCode;
|
|
5361
5384
|
}));
|
|
5362
5385
|
setSelectedRowKeys(_toConsumableArray(selectedRowKeys.filter(function (item) {
|
|
5363
|
-
return item !== record
|
|
5386
|
+
return item !== record.skuCode;
|
|
5364
5387
|
})));
|
|
5365
5388
|
}
|
|
5366
5389
|
};
|
|
@@ -6384,70 +6407,72 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
6384
6407
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
6385
6408
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
6386
6409
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
6387
|
-
while (1)
|
|
6388
|
-
|
|
6389
|
-
|
|
6390
|
-
|
|
6391
|
-
|
|
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);
|
|
6441
|
-
}
|
|
6410
|
+
while (1) {
|
|
6411
|
+
switch (_context.prev = _context.next) {
|
|
6412
|
+
case 0:
|
|
6413
|
+
if (data === null || data === void 0 ? void 0 : data.length) {
|
|
6414
|
+
_context.next = 3;
|
|
6415
|
+
break;
|
|
6442
6416
|
}
|
|
6443
|
-
|
|
6444
|
-
|
|
6445
|
-
|
|
6446
|
-
|
|
6447
|
-
|
|
6448
|
-
|
|
6449
|
-
|
|
6450
|
-
|
|
6417
|
+
message$1.warning('至少录入一条数据');
|
|
6418
|
+
return _context.abrupt("return");
|
|
6419
|
+
case 3:
|
|
6420
|
+
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
6421
|
+
return d.skuCode && d.name;
|
|
6422
|
+
})) {
|
|
6423
|
+
_context.next = 6;
|
|
6424
|
+
break;
|
|
6425
|
+
}
|
|
6426
|
+
message$1.warning('请选择商品!');
|
|
6427
|
+
return _context.abrupt("return");
|
|
6428
|
+
case 6:
|
|
6429
|
+
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
6430
|
+
return d.count;
|
|
6431
|
+
})) {
|
|
6432
|
+
_context.next = 9;
|
|
6433
|
+
break;
|
|
6434
|
+
}
|
|
6435
|
+
message$1.warning('请填写商品数量!');
|
|
6436
|
+
return _context.abrupt("return");
|
|
6437
|
+
case 9:
|
|
6438
|
+
_context.next = 11;
|
|
6439
|
+
return isSkuCanEntry(data);
|
|
6440
|
+
case 11:
|
|
6441
|
+
canEntryObject = _context.sent;
|
|
6442
|
+
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
6443
|
+
_context.next = 16;
|
|
6444
|
+
break;
|
|
6445
|
+
}
|
|
6446
|
+
messageInfo = (canEntryObject === null || canEntryObject === void 0 ? void 0 : (_canEntryObject$error = canEntryObject.errorList) === null || _canEntryObject$error === void 0 ? void 0 : _canEntryObject$error.length) && (canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.errorList.map(function (i) {
|
|
6447
|
+
return /*#__PURE__*/React.createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
|
|
6448
|
+
}));
|
|
6449
|
+
messageInfo && message$1.warning({
|
|
6450
|
+
content: messageInfo,
|
|
6451
|
+
duration: 6
|
|
6452
|
+
});
|
|
6453
|
+
return _context.abrupt("return");
|
|
6454
|
+
case 16:
|
|
6455
|
+
setLoading(true);
|
|
6456
|
+
onSaveCallback(data).then(function (res) {
|
|
6457
|
+
{
|
|
6458
|
+
var _Object$keys;
|
|
6459
|
+
var initSuccessMessage = '保存成功';
|
|
6460
|
+
var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
|
|
6461
|
+
if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
|
|
6462
|
+
(rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? message$1.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
|
|
6463
|
+
} else {
|
|
6464
|
+
message$1.success(initSuccessMessage);
|
|
6465
|
+
}
|
|
6466
|
+
}
|
|
6467
|
+
setLoading(false);
|
|
6468
|
+
}).catch(function (Error) {
|
|
6469
|
+
message$1.error(Error);
|
|
6470
|
+
setLoading(false);
|
|
6471
|
+
});
|
|
6472
|
+
case 18:
|
|
6473
|
+
case "end":
|
|
6474
|
+
return _context.stop();
|
|
6475
|
+
}
|
|
6451
6476
|
}
|
|
6452
6477
|
}, _callee);
|
|
6453
6478
|
}));
|
|
@@ -8691,16 +8716,9 @@ var BusinessSearchSelect$1 = /*#__PURE__*/React.memo(BusinessSearchSelect, funct
|
|
|
8691
8716
|
// import { getCurrentTargetBgId } from '@/utils/LocalstorageUtils';
|
|
8692
8717
|
function handleSelectColumn(c, parentProps) {
|
|
8693
8718
|
var result = c;
|
|
8694
|
-
var showColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.showColumns) || [];
|
|
8695
8719
|
var exceptColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.exceptColumns) || [];
|
|
8696
8720
|
var coverColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.coverColumns) || [];
|
|
8697
8721
|
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
|
-
}
|
|
8704
8722
|
// 过滤不需要展示内容
|
|
8705
8723
|
if (exceptColumns === null || exceptColumns === void 0 ? void 0 : exceptColumns.length) {
|
|
8706
8724
|
result = result.filter(function (i) {
|
|
@@ -8719,57 +8737,6 @@ function handleSelectColumn(c, parentProps) {
|
|
|
8719
8737
|
}
|
|
8720
8738
|
return result;
|
|
8721
8739
|
}
|
|
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
|
-
}
|
|
8773
8740
|
var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
8774
8741
|
var _parProps$requestConf, _parProps$requestConf2;
|
|
8775
8742
|
var selectProps = {
|
|
@@ -8876,258 +8843,234 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
8876
8843
|
dataIndex: 'propertyNameAndValue'
|
|
8877
8844
|
}]);
|
|
8878
8845
|
var mTpSelectColumn = handleSelectColumn(initialSelectColumn, parProps);
|
|
8879
|
-
var
|
|
8880
|
-
|
|
8881
|
-
|
|
8882
|
-
|
|
8883
|
-
|
|
8884
|
-
|
|
8885
|
-
|
|
8886
|
-
|
|
8887
|
-
|
|
8888
|
-
|
|
8889
|
-
|
|
8890
|
-
|
|
8891
|
-
|
|
8892
|
-
|
|
8893
|
-
|
|
8894
|
-
|
|
8895
|
-
|
|
8896
|
-
|
|
8897
|
-
|
|
8898
|
-
|
|
8899
|
-
|
|
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);
|
|
8846
|
+
var props = {
|
|
8847
|
+
buttonText: parProps.buttonText || '新增',
|
|
8848
|
+
buttonProps: parProps.buttonProps || {},
|
|
8849
|
+
tableCodeList: parProps.tableCodeList || [],
|
|
8850
|
+
value: value,
|
|
8851
|
+
// labelInValue: true, // 非必填 默认为false
|
|
8852
|
+
requestConfig: _objectSpread2({
|
|
8853
|
+
url: "/items/sku/pager/v2",
|
|
8854
|
+
filter: 'qp-name-like',
|
|
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);
|
|
9014
8867
|
},
|
|
9015
|
-
|
|
9016
|
-
|
|
9017
|
-
|
|
9018
|
-
|
|
9019
|
-
|
|
9020
|
-
|
|
9021
|
-
|
|
9022
|
-
|
|
9023
|
-
|
|
9024
|
-
|
|
9025
|
-
|
|
9026
|
-
|
|
9027
|
-
|
|
9028
|
-
|
|
9029
|
-
|
|
9030
|
-
|
|
9031
|
-
|
|
9032
|
-
|
|
9033
|
-
|
|
9034
|
-
|
|
9035
|
-
|
|
8868
|
+
beforeShowModal: parProps === null || parProps === void 0 ? void 0 : parProps.beforeShowModal,
|
|
8869
|
+
onSaveCallback: parProps.onSaveCallback,
|
|
8870
|
+
businessType: 'sku',
|
|
8871
|
+
isAllowRepeatedSelect: !!(parProps === null || parProps === void 0 ? void 0 : parProps.isAllowRepeatedSelect),
|
|
8872
|
+
noUseItemEancode: isNoUseItemBarcode
|
|
8873
|
+
};
|
|
8874
|
+
var modalTableProps = {
|
|
8875
|
+
modalTableTitle: '选择商品',
|
|
8876
|
+
tableSearchForm: [{
|
|
8877
|
+
name: 'qp-skuCode-like',
|
|
8878
|
+
label: 'SKU编码'
|
|
8879
|
+
}, {
|
|
8880
|
+
name: 'qp-skuName-like',
|
|
8881
|
+
label: 'SKU名称'
|
|
8882
|
+
}].concat(_toConsumableArray(isNoUseItemBarcode ? [] : [{
|
|
8883
|
+
name: 'qp-code-in',
|
|
8884
|
+
label: '商品条码',
|
|
8885
|
+
field: {
|
|
8886
|
+
type: 'multipleQueryInput',
|
|
8887
|
+
props: _objectSpread2({}, ((_parProps$requestConf2 = parProps.requestConfig) === null || _parProps$requestConf2 === void 0 ? void 0 : _parProps$requestConf2.itemEancodeValueRequestConfig) || {})
|
|
8888
|
+
}
|
|
8889
|
+
}]), [{
|
|
8890
|
+
name: 'qp-brandId-in',
|
|
9036
8891
|
type: 'select',
|
|
9037
|
-
|
|
9038
|
-
|
|
9039
|
-
|
|
9040
|
-
|
|
9041
|
-
|
|
9042
|
-
|
|
9043
|
-
|
|
9044
|
-
|
|
9045
|
-
|
|
9046
|
-
|
|
8892
|
+
label: '品牌',
|
|
8893
|
+
field: {
|
|
8894
|
+
type: 'select',
|
|
8895
|
+
props: {
|
|
8896
|
+
mode: 'multiple',
|
|
8897
|
+
notFoundContent: '暂无数据',
|
|
8898
|
+
allowClear: true,
|
|
8899
|
+
showSearch: true,
|
|
8900
|
+
showArrow: true,
|
|
8901
|
+
maxTagCount: 1,
|
|
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
|
+
}
|
|
9047
8932
|
}
|
|
9048
8933
|
}
|
|
9049
|
-
}
|
|
9050
|
-
|
|
9051
|
-
|
|
9052
|
-
|
|
9053
|
-
|
|
9054
|
-
|
|
9055
|
-
|
|
9056
|
-
|
|
9057
|
-
|
|
9058
|
-
|
|
9059
|
-
|
|
9060
|
-
|
|
9061
|
-
|
|
9062
|
-
|
|
9063
|
-
|
|
9064
|
-
|
|
9065
|
-
|
|
9066
|
-
|
|
9067
|
-
|
|
9068
|
-
|
|
9069
|
-
|
|
9070
|
-
|
|
9071
|
-
|
|
9072
|
-
|
|
9073
|
-
|
|
8934
|
+
}]),
|
|
8935
|
+
tableColumns: [{
|
|
8936
|
+
title: 'SKU编码',
|
|
8937
|
+
width: 150,
|
|
8938
|
+
dataIndex: 'skuCode'
|
|
8939
|
+
}, {
|
|
8940
|
+
title: 'SKU名称',
|
|
8941
|
+
width: 200,
|
|
8942
|
+
ellipsis: {
|
|
8943
|
+
showTitle: false
|
|
8944
|
+
},
|
|
8945
|
+
render: function render(text) {
|
|
8946
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
8947
|
+
placement: "topLeft",
|
|
8948
|
+
title: text
|
|
8949
|
+
}, text);
|
|
8950
|
+
},
|
|
8951
|
+
dataIndex: 'name'
|
|
8952
|
+
}, {
|
|
8953
|
+
title: '图片',
|
|
8954
|
+
dataIndex: 'itemUrl',
|
|
8955
|
+
width: 200,
|
|
8956
|
+
ellipsis: {
|
|
8957
|
+
showTitle: false
|
|
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
|
+
}));
|
|
9074
8967
|
}
|
|
9075
|
-
}
|
|
9076
|
-
|
|
9077
|
-
|
|
9078
|
-
|
|
9079
|
-
|
|
9080
|
-
|
|
9081
|
-
|
|
9082
|
-
|
|
9083
|
-
|
|
9084
|
-
|
|
9085
|
-
|
|
9086
|
-
|
|
9087
|
-
|
|
9088
|
-
|
|
9089
|
-
|
|
9090
|
-
|
|
9091
|
-
|
|
9092
|
-
|
|
9093
|
-
|
|
9094
|
-
|
|
9095
|
-
|
|
9096
|
-
|
|
9097
|
-
|
|
9098
|
-
|
|
9099
|
-
|
|
9100
|
-
|
|
9101
|
-
|
|
9102
|
-
|
|
9103
|
-
|
|
9104
|
-
|
|
9105
|
-
|
|
9106
|
-
|
|
9107
|
-
|
|
9108
|
-
|
|
9109
|
-
|
|
9110
|
-
|
|
9111
|
-
|
|
9112
|
-
|
|
9113
|
-
|
|
9114
|
-
},
|
|
9115
|
-
|
|
9116
|
-
|
|
9117
|
-
|
|
9118
|
-
|
|
9119
|
-
|
|
9120
|
-
|
|
9121
|
-
|
|
9122
|
-
|
|
9123
|
-
|
|
9124
|
-
|
|
9125
|
-
|
|
9126
|
-
|
|
9127
|
-
|
|
9128
|
-
|
|
9129
|
-
|
|
9130
|
-
|
|
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);
|
|
9006
|
+
}
|
|
9007
|
+
}, {
|
|
9008
|
+
title: '外部编码',
|
|
9009
|
+
width: 100,
|
|
9010
|
+
ellipsis: {
|
|
9011
|
+
showTitle: false
|
|
9012
|
+
},
|
|
9013
|
+
render: function render(text) {
|
|
9014
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
9015
|
+
placement: "topLeft",
|
|
9016
|
+
title: text
|
|
9017
|
+
}, text);
|
|
9018
|
+
},
|
|
9019
|
+
dataIndex: 'externalCode'
|
|
9020
|
+
}, {
|
|
9021
|
+
title: '规格',
|
|
9022
|
+
width: 100,
|
|
9023
|
+
ellipsis: {
|
|
9024
|
+
showTitle: false
|
|
9025
|
+
},
|
|
9026
|
+
render: function render(text) {
|
|
9027
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
9028
|
+
placement: "topLeft",
|
|
9029
|
+
title: text
|
|
9030
|
+
}, text);
|
|
9031
|
+
},
|
|
9032
|
+
dataIndex: 'propertyNameAndValue'
|
|
9033
|
+
}, {
|
|
9034
|
+
title: '类目',
|
|
9035
|
+
width: 100,
|
|
9036
|
+
ellipsis: {
|
|
9037
|
+
showTitle: false
|
|
9038
|
+
},
|
|
9039
|
+
render: function render(text) {
|
|
9040
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
9041
|
+
placement: "topLeft",
|
|
9042
|
+
title: text
|
|
9043
|
+
}, text);
|
|
9044
|
+
},
|
|
9045
|
+
dataIndex: 'categoryName'
|
|
9046
|
+
}, {
|
|
9047
|
+
title: '品类',
|
|
9048
|
+
width: 100,
|
|
9049
|
+
ellipsis: {
|
|
9050
|
+
showTitle: false
|
|
9051
|
+
},
|
|
9052
|
+
render: function render(text) {
|
|
9053
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
9054
|
+
placement: "topLeft",
|
|
9055
|
+
title: text
|
|
9056
|
+
}, text);
|
|
9057
|
+
},
|
|
9058
|
+
dataIndex: 'className'
|
|
9059
|
+
}, {
|
|
9060
|
+
title: '品牌',
|
|
9061
|
+
width: 100,
|
|
9062
|
+
ellipsis: {
|
|
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
|
|
9131
9074
|
};
|
|
9132
9075
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(AddSelect, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
9133
9076
|
modalTableProps: modalTableProps
|
|
@@ -9203,45 +9146,6 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
|
|
|
9203
9146
|
dataIndex: 'count'
|
|
9204
9147
|
}];
|
|
9205
9148
|
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
|
-
}];
|
|
9245
9149
|
var props = {
|
|
9246
9150
|
buttonText: parProps.buttonText || '新增',
|
|
9247
9151
|
buttonProps: parProps.buttonProps || {},
|
|
@@ -9446,8 +9350,7 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
|
|
|
9446
9350
|
},
|
|
9447
9351
|
dataIndex: 'brandName'
|
|
9448
9352
|
}],
|
|
9449
|
-
selectColumn: mTpSelectColumn
|
|
9450
|
-
promiseLoadList: initialPromiseLoadList
|
|
9353
|
+
selectColumn: mTpSelectColumn
|
|
9451
9354
|
};
|
|
9452
9355
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(AddSelect, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
9453
9356
|
modalTableProps: modalTableProps
|
|
@@ -9532,44 +9435,6 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
9532
9435
|
dataIndex: 'className'
|
|
9533
9436
|
}];
|
|
9534
9437
|
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
|
-
}];
|
|
9573
9438
|
var props = {
|
|
9574
9439
|
buttonText: parProps.buttonText || '新增',
|
|
9575
9440
|
buttonProps: parProps.buttonProps || {},
|
|
@@ -9759,8 +9624,7 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
9759
9624
|
},
|
|
9760
9625
|
dataIndex: 'className'
|
|
9761
9626
|
}],
|
|
9762
|
-
selectColumn: mTpSelectColumn
|
|
9763
|
-
promiseLoadList: initialPromiseLoadList
|
|
9627
|
+
selectColumn: mTpSelectColumn
|
|
9764
9628
|
};
|
|
9765
9629
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(AddSelect, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
9766
9630
|
modalTableProps: modalTableProps
|
|
@@ -9979,42 +9843,44 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
9979
9843
|
var _ctx$form;
|
|
9980
9844
|
var resData, coverData, data, dataList;
|
|
9981
9845
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9982
|
-
while (1)
|
|
9983
|
-
|
|
9984
|
-
|
|
9985
|
-
|
|
9986
|
-
|
|
9846
|
+
while (1) {
|
|
9847
|
+
switch (_context.prev = _context.next) {
|
|
9848
|
+
case 0:
|
|
9849
|
+
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
9850
|
+
if (!(resData.status === '0' || resData.code === '000000')) {
|
|
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;
|
|
9987
9866
|
break;
|
|
9988
|
-
|
|
9989
|
-
|
|
9990
|
-
|
|
9991
|
-
|
|
9867
|
+
case 9:
|
|
9868
|
+
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
9869
|
+
coverData = dataList.length && dataList.map(function (ites) {
|
|
9870
|
+
return mapSearchTree(ites);
|
|
9871
|
+
}) || [];
|
|
9872
|
+
case 11:
|
|
9873
|
+
_context.next = 14;
|
|
9992
9874
|
break;
|
|
9993
|
-
|
|
9994
|
-
|
|
9995
|
-
|
|
9996
|
-
|
|
9997
|
-
|
|
9998
|
-
|
|
9999
|
-
|
|
10000
|
-
|
|
10001
|
-
|
|
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();
|
|
9875
|
+
case 13:
|
|
9876
|
+
coverData = [];
|
|
9877
|
+
case 14:
|
|
9878
|
+
setTreeData(coverData);
|
|
9879
|
+
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
|
|
9880
|
+
case 16:
|
|
9881
|
+
case "end":
|
|
9882
|
+
return _context.stop();
|
|
9883
|
+
}
|
|
10018
9884
|
}
|
|
10019
9885
|
}, _callee);
|
|
10020
9886
|
}));
|
|
@@ -11833,7 +11699,10 @@ var DetailWrapper = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
11833
11699
|
};
|
|
11834
11700
|
return /*#__PURE__*/React.createElement(Anchor, {
|
|
11835
11701
|
key: "".concat(pathname, "_anchor"),
|
|
11836
|
-
offsetTop: window.top == window ? 78 : 0
|
|
11702
|
+
offsetTop: window.top == window ? 78 : 0,
|
|
11703
|
+
getContainer: function getContainer() {
|
|
11704
|
+
return window.document.body;
|
|
11705
|
+
}
|
|
11837
11706
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
11838
11707
|
className: 'detail_page_head'
|
|
11839
11708
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -14204,19 +14073,21 @@ function _outLogin() {
|
|
|
14204
14073
|
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
14205
14074
|
var res;
|
|
14206
14075
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
14207
|
-
while (1)
|
|
14208
|
-
|
|
14209
|
-
|
|
14210
|
-
|
|
14211
|
-
|
|
14212
|
-
|
|
14213
|
-
|
|
14214
|
-
|
|
14215
|
-
|
|
14216
|
-
|
|
14217
|
-
|
|
14218
|
-
|
|
14219
|
-
|
|
14076
|
+
while (1) {
|
|
14077
|
+
switch (_context.prev = _context.next) {
|
|
14078
|
+
case 0:
|
|
14079
|
+
_context.next = 2;
|
|
14080
|
+
return axios({
|
|
14081
|
+
url: '/user/web/loginOut',
|
|
14082
|
+
method: 'GET'
|
|
14083
|
+
});
|
|
14084
|
+
case 2:
|
|
14085
|
+
res = _context.sent;
|
|
14086
|
+
return _context.abrupt("return", res);
|
|
14087
|
+
case 4:
|
|
14088
|
+
case "end":
|
|
14089
|
+
return _context.stop();
|
|
14090
|
+
}
|
|
14220
14091
|
}
|
|
14221
14092
|
}, _callee);
|
|
14222
14093
|
}));
|
|
@@ -14345,29 +14216,31 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
14345
14216
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
14346
14217
|
var sessionId;
|
|
14347
14218
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
14348
|
-
while (1)
|
|
14349
|
-
|
|
14350
|
-
|
|
14351
|
-
|
|
14352
|
-
|
|
14353
|
-
|
|
14354
|
-
|
|
14355
|
-
|
|
14356
|
-
|
|
14357
|
-
|
|
14358
|
-
case 5:
|
|
14359
|
-
// @ts-ignore
|
|
14360
|
-
if (BUILD_TYPE) {
|
|
14361
|
-
message$1.success('退出登录成功');
|
|
14362
|
-
history.replace({
|
|
14363
|
-
pathname: '/user/login'
|
|
14219
|
+
while (1) {
|
|
14220
|
+
switch (_context.prev = _context.next) {
|
|
14221
|
+
case 0:
|
|
14222
|
+
_context.next = 2;
|
|
14223
|
+
return getSessionId();
|
|
14224
|
+
case 2:
|
|
14225
|
+
sessionId = _context.sent;
|
|
14226
|
+
_context.next = 5;
|
|
14227
|
+
return outLogin({
|
|
14228
|
+
sessionId: sessionId
|
|
14364
14229
|
});
|
|
14365
|
-
|
|
14366
|
-
|
|
14367
|
-
|
|
14368
|
-
|
|
14369
|
-
|
|
14370
|
-
|
|
14230
|
+
case 5:
|
|
14231
|
+
// @ts-ignore
|
|
14232
|
+
if (BUILD_TYPE) {
|
|
14233
|
+
message$1.success('退出登录成功');
|
|
14234
|
+
history.replace({
|
|
14235
|
+
pathname: '/user/login'
|
|
14236
|
+
});
|
|
14237
|
+
} else {
|
|
14238
|
+
setLoginOutPath();
|
|
14239
|
+
}
|
|
14240
|
+
case 6:
|
|
14241
|
+
case "end":
|
|
14242
|
+
return _context.stop();
|
|
14243
|
+
}
|
|
14371
14244
|
}
|
|
14372
14245
|
}, _callee);
|
|
14373
14246
|
}));
|
|
@@ -16195,7 +16068,6 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
16195
16068
|
showSubMenu: isShow
|
|
16196
16069
|
});
|
|
16197
16070
|
}, 500);
|
|
16198
|
-
//设置tabs标签左右滚动
|
|
16199
16071
|
_this.setTabNavTransLate = function (num) {
|
|
16200
16072
|
var _document$getElementB, _document$getElementB2, _document$getElementB3, _document$getElementB4, _document$defaultView;
|
|
16201
16073
|
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];
|
|
@@ -16876,12 +16748,14 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
16876
16748
|
request: function () {
|
|
16877
16749
|
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
16878
16750
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
16879
|
-
while (1)
|
|
16880
|
-
|
|
16881
|
-
|
|
16882
|
-
|
|
16883
|
-
|
|
16884
|
-
|
|
16751
|
+
while (1) {
|
|
16752
|
+
switch (_context.prev = _context.next) {
|
|
16753
|
+
case 0:
|
|
16754
|
+
return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
|
|
16755
|
+
case 1:
|
|
16756
|
+
case "end":
|
|
16757
|
+
return _context.stop();
|
|
16758
|
+
}
|
|
16885
16759
|
}
|
|
16886
16760
|
}, _callee);
|
|
16887
16761
|
}));
|
|
@@ -24562,26 +24436,28 @@ var valueType = {
|
|
|
24562
24436
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
24563
24437
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
24564
24438
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
24565
|
-
while (1)
|
|
24566
|
-
|
|
24567
|
-
|
|
24568
|
-
|
|
24569
|
-
|
|
24570
|
-
|
|
24571
|
-
|
|
24572
|
-
|
|
24573
|
-
return {
|
|
24574
|
-
|
|
24575
|
-
|
|
24576
|
-
|
|
24577
|
-
|
|
24578
|
-
|
|
24579
|
-
|
|
24580
|
-
|
|
24581
|
-
|
|
24582
|
-
|
|
24583
|
-
|
|
24584
|
-
|
|
24439
|
+
while (1) {
|
|
24440
|
+
switch (_context.prev = _context.next) {
|
|
24441
|
+
case 0:
|
|
24442
|
+
_context.next = 2;
|
|
24443
|
+
return request$1({
|
|
24444
|
+
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
24445
|
+
converter: function converter(_ref2) {
|
|
24446
|
+
var data = _ref2.data;
|
|
24447
|
+
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
24448
|
+
return {
|
|
24449
|
+
text: d.name,
|
|
24450
|
+
value: d.code || d.brandCode
|
|
24451
|
+
};
|
|
24452
|
+
});
|
|
24453
|
+
}
|
|
24454
|
+
});
|
|
24455
|
+
case 2:
|
|
24456
|
+
return _context.abrupt("return", _context.sent);
|
|
24457
|
+
case 3:
|
|
24458
|
+
case "end":
|
|
24459
|
+
return _context.stop();
|
|
24460
|
+
}
|
|
24585
24461
|
}
|
|
24586
24462
|
}, _callee);
|
|
24587
24463
|
}));
|
|
@@ -24631,53 +24507,55 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
24631
24507
|
useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
24632
24508
|
var _ref$current, source;
|
|
24633
24509
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
24634
|
-
while (1)
|
|
24635
|
-
|
|
24636
|
-
|
|
24637
|
-
|
|
24638
|
-
|
|
24639
|
-
|
|
24640
|
-
|
|
24641
|
-
|
|
24642
|
-
|
|
24643
|
-
|
|
24510
|
+
while (1) {
|
|
24511
|
+
switch (_context.prev = _context.next) {
|
|
24512
|
+
case 0:
|
|
24513
|
+
_context.next = 2;
|
|
24514
|
+
return setIsShowAndType(function (prev) {
|
|
24515
|
+
if (record.inputType === 20 || record.inputType === 30) {
|
|
24516
|
+
return {
|
|
24517
|
+
isShow: true,
|
|
24518
|
+
singleOrMultiple: record.inputType,
|
|
24519
|
+
type: record.choiceType
|
|
24520
|
+
};
|
|
24521
|
+
}
|
|
24522
|
+
return prev;
|
|
24523
|
+
});
|
|
24524
|
+
case 2:
|
|
24525
|
+
if (!record.dictionaryCode) {
|
|
24526
|
+
_context.next = 17;
|
|
24527
|
+
break;
|
|
24644
24528
|
}
|
|
24645
|
-
|
|
24646
|
-
|
|
24647
|
-
|
|
24648
|
-
|
|
24649
|
-
_context.
|
|
24650
|
-
|
|
24651
|
-
}
|
|
24652
|
-
if (!(record.choiceType == 20)) {
|
|
24653
|
-
_context.next = 7;
|
|
24529
|
+
if (!(record.choiceType == 20)) {
|
|
24530
|
+
_context.next = 7;
|
|
24531
|
+
break;
|
|
24532
|
+
}
|
|
24533
|
+
_context.t0 = getDictionarySource(record.dictionaryCode);
|
|
24534
|
+
_context.next = 15;
|
|
24654
24535
|
break;
|
|
24655
|
-
|
|
24656
|
-
|
|
24657
|
-
|
|
24658
|
-
|
|
24659
|
-
|
|
24660
|
-
|
|
24661
|
-
|
|
24536
|
+
case 7:
|
|
24537
|
+
if (!(record.choiceType == 30)) {
|
|
24538
|
+
_context.next = 13;
|
|
24539
|
+
break;
|
|
24540
|
+
}
|
|
24541
|
+
_context.next = 10;
|
|
24542
|
+
return getDynamicDict(record.dictionaryCode);
|
|
24543
|
+
case 10:
|
|
24544
|
+
_context.t1 = _context.sent;
|
|
24545
|
+
_context.next = 14;
|
|
24662
24546
|
break;
|
|
24663
|
-
|
|
24664
|
-
|
|
24665
|
-
|
|
24666
|
-
|
|
24667
|
-
|
|
24668
|
-
|
|
24669
|
-
|
|
24670
|
-
|
|
24671
|
-
|
|
24672
|
-
|
|
24673
|
-
|
|
24674
|
-
|
|
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();
|
|
24547
|
+
case 13:
|
|
24548
|
+
_context.t1 = [];
|
|
24549
|
+
case 14:
|
|
24550
|
+
_context.t0 = _context.t1;
|
|
24551
|
+
case 15:
|
|
24552
|
+
source = _context.t0;
|
|
24553
|
+
// @ts-ignore
|
|
24554
|
+
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
24555
|
+
case 17:
|
|
24556
|
+
case "end":
|
|
24557
|
+
return _context.stop();
|
|
24558
|
+
}
|
|
24681
24559
|
}
|
|
24682
24560
|
}, _callee);
|
|
24683
24561
|
})));
|
|
@@ -24745,28 +24623,30 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
24745
24623
|
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
24746
24624
|
var form, values, name, relates, source;
|
|
24747
24625
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
24748
|
-
while (1)
|
|
24749
|
-
|
|
24750
|
-
|
|
24751
|
-
|
|
24626
|
+
while (1) {
|
|
24627
|
+
switch (_context2.prev = _context2.next) {
|
|
24628
|
+
case 0:
|
|
24629
|
+
form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
|
|
24630
|
+
if (values[0]) {
|
|
24631
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
24632
|
+
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
24633
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
24634
|
+
}
|
|
24635
|
+
if (!values[1]) {
|
|
24636
|
+
_context2.next = 9;
|
|
24637
|
+
break;
|
|
24638
|
+
}
|
|
24639
|
+
_context2.next = 5;
|
|
24640
|
+
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
24641
|
+
case 5:
|
|
24642
|
+
source = _context2.sent;
|
|
24752
24643
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
24753
24644
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
24754
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0],
|
|
24755
|
-
|
|
24756
|
-
|
|
24757
|
-
_context2.
|
|
24758
|
-
|
|
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();
|
|
24645
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
24646
|
+
case 9:
|
|
24647
|
+
case "end":
|
|
24648
|
+
return _context2.stop();
|
|
24649
|
+
}
|
|
24770
24650
|
}
|
|
24771
24651
|
}, _callee2);
|
|
24772
24652
|
}));
|
|
@@ -25226,41 +25106,43 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
25226
25106
|
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
25227
25107
|
var values, name, form, source;
|
|
25228
25108
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
25229
|
-
while (1)
|
|
25230
|
-
|
|
25231
|
-
|
|
25232
|
-
|
|
25233
|
-
|
|
25234
|
-
|
|
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
|
-
});
|
|
25109
|
+
while (1) {
|
|
25110
|
+
switch (_context3.prev = _context3.next) {
|
|
25111
|
+
case 0:
|
|
25112
|
+
values = _ref10.values, name = _ref10.name, form = _ref10.form;
|
|
25113
|
+
if (values[1] === 40) {
|
|
25114
|
+
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
25115
|
+
form.setFieldVisible(name, false);
|
|
25251
25116
|
}
|
|
25252
|
-
|
|
25253
|
-
|
|
25254
|
-
|
|
25255
|
-
|
|
25256
|
-
|
|
25257
|
-
|
|
25258
|
-
|
|
25259
|
-
|
|
25260
|
-
|
|
25261
|
-
|
|
25262
|
-
|
|
25263
|
-
|
|
25117
|
+
if (!(values[0] === 30)) {
|
|
25118
|
+
_context3.next = 10;
|
|
25119
|
+
break;
|
|
25120
|
+
}
|
|
25121
|
+
_context3.next = 5;
|
|
25122
|
+
return request$1({
|
|
25123
|
+
url: '/basic/dictDynamicItem/queryList',
|
|
25124
|
+
converter: function converter(_ref11) {
|
|
25125
|
+
var data = _ref11.data;
|
|
25126
|
+
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
25127
|
+
return {
|
|
25128
|
+
text: d.dictCode,
|
|
25129
|
+
value: d.dictCode
|
|
25130
|
+
};
|
|
25131
|
+
});
|
|
25132
|
+
}
|
|
25133
|
+
});
|
|
25134
|
+
case 5:
|
|
25135
|
+
source = _context3.sent;
|
|
25136
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
25137
|
+
form.setFieldVisible(name, true);
|
|
25138
|
+
_context3.next = 11;
|
|
25139
|
+
break;
|
|
25140
|
+
case 10:
|
|
25141
|
+
form.setFieldVisible(name, false);
|
|
25142
|
+
case 11:
|
|
25143
|
+
case "end":
|
|
25144
|
+
return _context3.stop();
|
|
25145
|
+
}
|
|
25264
25146
|
}
|
|
25265
25147
|
}, _callee3);
|
|
25266
25148
|
}));
|
|
@@ -25449,64 +25331,66 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
25449
25331
|
var _ref$current4, _res$editableStatus;
|
|
25450
25332
|
var res, _res$defaultValue;
|
|
25451
25333
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
25452
|
-
while (1)
|
|
25453
|
-
|
|
25454
|
-
|
|
25455
|
-
|
|
25456
|
-
|
|
25457
|
-
|
|
25458
|
-
|
|
25459
|
-
|
|
25460
|
-
|
|
25461
|
-
|
|
25462
|
-
|
|
25463
|
-
|
|
25464
|
-
|
|
25465
|
-
|
|
25466
|
-
|
|
25467
|
-
|
|
25468
|
-
|
|
25469
|
-
|
|
25470
|
-
|
|
25471
|
-
|
|
25472
|
-
res.
|
|
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(',');
|
|
25334
|
+
while (1) {
|
|
25335
|
+
switch (_context4.prev = _context4.next) {
|
|
25336
|
+
case 0:
|
|
25337
|
+
_context4.next = 2;
|
|
25338
|
+
return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
|
|
25339
|
+
case 2:
|
|
25340
|
+
res = _context4.sent;
|
|
25341
|
+
res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
|
|
25342
|
+
res.fieldGroup = record.fieldGroup;
|
|
25343
|
+
res.businessType = record.businessType;
|
|
25344
|
+
res.info = {
|
|
25345
|
+
enumeration: res.enumeration,
|
|
25346
|
+
dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
|
|
25347
|
+
formula: res.formula,
|
|
25348
|
+
scale: res.scale,
|
|
25349
|
+
variable: res.variable
|
|
25350
|
+
};
|
|
25351
|
+
res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
|
|
25352
|
+
res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
|
|
25353
|
+
res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
|
|
25354
|
+
if (res.inputType === 40) {
|
|
25355
|
+
res.valueType = 22;
|
|
25478
25356
|
}
|
|
25479
|
-
|
|
25480
|
-
|
|
25481
|
-
|
|
25482
|
-
|
|
25483
|
-
|
|
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();
|
|
25357
|
+
// 把数组处理成文本
|
|
25358
|
+
if (res.inputType === 30) {
|
|
25359
|
+
if (res.defaultValue) {
|
|
25360
|
+
res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
|
|
25361
|
+
}
|
|
25494
25362
|
}
|
|
25495
|
-
|
|
25496
|
-
|
|
25497
|
-
|
|
25498
|
-
|
|
25499
|
-
|
|
25500
|
-
|
|
25501
|
-
params: res,
|
|
25502
|
-
successMessage: '修改成功!',
|
|
25503
|
-
converter: function converter() {
|
|
25504
|
-
onParentOk();
|
|
25363
|
+
res.fieldMapping = res.fieldMapping || '';
|
|
25364
|
+
delete res.formula;
|
|
25365
|
+
delete res.showValue;
|
|
25366
|
+
if (!(mode === 'create')) {
|
|
25367
|
+
_context4.next = 18;
|
|
25368
|
+
break;
|
|
25505
25369
|
}
|
|
25506
|
-
|
|
25507
|
-
|
|
25508
|
-
|
|
25509
|
-
|
|
25370
|
+
request$1({
|
|
25371
|
+
url: "/basic/flow/businessField",
|
|
25372
|
+
method: 'POST',
|
|
25373
|
+
params: res,
|
|
25374
|
+
successMessage: '创建成功!',
|
|
25375
|
+
converter: function converter() {
|
|
25376
|
+
onParentOk();
|
|
25377
|
+
}
|
|
25378
|
+
});
|
|
25379
|
+
return _context4.abrupt("return");
|
|
25380
|
+
case 18:
|
|
25381
|
+
request$1({
|
|
25382
|
+
url: "/basic/flow/businessField/".concat(record.id),
|
|
25383
|
+
method: 'PATCH',
|
|
25384
|
+
params: res,
|
|
25385
|
+
successMessage: '修改成功!',
|
|
25386
|
+
converter: function converter() {
|
|
25387
|
+
onParentOk();
|
|
25388
|
+
}
|
|
25389
|
+
});
|
|
25390
|
+
case 19:
|
|
25391
|
+
case "end":
|
|
25392
|
+
return _context4.stop();
|
|
25393
|
+
}
|
|
25510
25394
|
}
|
|
25511
25395
|
}, _callee4);
|
|
25512
25396
|
}));
|
|
@@ -26291,26 +26175,28 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
26291
26175
|
useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
26292
26176
|
var resData, data;
|
|
26293
26177
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26294
|
-
while (1)
|
|
26295
|
-
|
|
26296
|
-
|
|
26297
|
-
|
|
26298
|
-
|
|
26299
|
-
|
|
26300
|
-
|
|
26301
|
-
|
|
26302
|
-
|
|
26303
|
-
|
|
26304
|
-
|
|
26305
|
-
|
|
26306
|
-
|
|
26307
|
-
|
|
26308
|
-
|
|
26309
|
-
|
|
26310
|
-
|
|
26311
|
-
|
|
26312
|
-
|
|
26313
|
-
|
|
26178
|
+
while (1) {
|
|
26179
|
+
switch (_context.prev = _context.next) {
|
|
26180
|
+
case 0:
|
|
26181
|
+
if (!(!source && initRequestSource)) {
|
|
26182
|
+
_context.next = 6;
|
|
26183
|
+
break;
|
|
26184
|
+
}
|
|
26185
|
+
_context.next = 3;
|
|
26186
|
+
return initRequestSource();
|
|
26187
|
+
case 3:
|
|
26188
|
+
resData = _context.sent;
|
|
26189
|
+
data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
|
|
26190
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
26191
|
+
label: item.text,
|
|
26192
|
+
isLeaf: false
|
|
26193
|
+
});
|
|
26194
|
+
})) || [];
|
|
26195
|
+
setHandSource(data);
|
|
26196
|
+
case 6:
|
|
26197
|
+
case "end":
|
|
26198
|
+
return _context.stop();
|
|
26199
|
+
}
|
|
26314
26200
|
}
|
|
26315
26201
|
}, _callee);
|
|
26316
26202
|
})), []);
|
|
@@ -26442,18 +26328,20 @@ function getRegularThresholdRange(_x) {
|
|
|
26442
26328
|
function _getRegularThresholdRange() {
|
|
26443
26329
|
_getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
26444
26330
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26445
|
-
while (1)
|
|
26446
|
-
|
|
26447
|
-
|
|
26448
|
-
|
|
26449
|
-
|
|
26450
|
-
|
|
26451
|
-
|
|
26452
|
-
|
|
26453
|
-
|
|
26454
|
-
|
|
26455
|
-
|
|
26456
|
-
|
|
26331
|
+
while (1) {
|
|
26332
|
+
switch (_context.prev = _context.next) {
|
|
26333
|
+
case 0:
|
|
26334
|
+
return _context.abrupt("return", axios({
|
|
26335
|
+
url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
|
|
26336
|
+
method: 'POST',
|
|
26337
|
+
data: _objectSpread2(_objectSpread2({}, params), {}, {
|
|
26338
|
+
queryIdentify: undefined
|
|
26339
|
+
})
|
|
26340
|
+
}));
|
|
26341
|
+
case 1:
|
|
26342
|
+
case "end":
|
|
26343
|
+
return _context.stop();
|
|
26344
|
+
}
|
|
26457
26345
|
}
|
|
26458
26346
|
}, _callee);
|
|
26459
26347
|
}));
|
|
@@ -26592,136 +26480,137 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26592
26480
|
_this.getRegularThresholdRange(queryIdentify, propertyCode, queryIdentifyType);
|
|
26593
26481
|
});
|
|
26594
26482
|
};
|
|
26595
|
-
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
26596
26483
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
26597
26484
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
26598
26485
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
26599
26486
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26600
|
-
while (1)
|
|
26601
|
-
|
|
26602
|
-
|
|
26603
|
-
|
|
26604
|
-
|
|
26605
|
-
|
|
26606
|
-
|
|
26607
|
-
|
|
26608
|
-
|
|
26609
|
-
|
|
26610
|
-
|
|
26611
|
-
|
|
26612
|
-
|
|
26613
|
-
|
|
26614
|
-
|
|
26615
|
-
|
|
26616
|
-
|
|
26617
|
-
|
|
26618
|
-
|
|
26619
|
-
|
|
26620
|
-
|
|
26621
|
-
|
|
26622
|
-
|
|
26623
|
-
|
|
26624
|
-
|
|
26625
|
-
|
|
26626
|
-
|
|
26627
|
-
|
|
26628
|
-
|
|
26629
|
-
|
|
26630
|
-
|
|
26631
|
-
|
|
26632
|
-
|
|
26633
|
-
|
|
26634
|
-
|
|
26635
|
-
|
|
26636
|
-
|
|
26637
|
-
|
|
26638
|
-
|
|
26639
|
-
|
|
26640
|
-
|
|
26641
|
-
|
|
26642
|
-
|
|
26643
|
-
|
|
26644
|
-
|
|
26645
|
-
|
|
26646
|
-
|
|
26647
|
-
|
|
26648
|
-
|
|
26649
|
-
|
|
26650
|
-
|
|
26651
|
-
|
|
26652
|
-
|
|
26653
|
-
|
|
26654
|
-
|
|
26655
|
-
|
|
26656
|
-
|
|
26657
|
-
|
|
26658
|
-
|
|
26659
|
-
|
|
26660
|
-
|
|
26661
|
-
|
|
26662
|
-
|
|
26663
|
-
|
|
26664
|
-
|
|
26665
|
-
|
|
26666
|
-
|
|
26667
|
-
|
|
26668
|
-
|
|
26669
|
-
|
|
26670
|
-
|
|
26671
|
-
|
|
26672
|
-
|
|
26673
|
-
|
|
26674
|
-
|
|
26675
|
-
|
|
26676
|
-
|
|
26677
|
-
|
|
26678
|
-
|
|
26679
|
-
|
|
26487
|
+
while (1) {
|
|
26488
|
+
switch (_context.prev = _context.next) {
|
|
26489
|
+
case 0:
|
|
26490
|
+
if (queryIdentify) {
|
|
26491
|
+
_context.next = 2;
|
|
26492
|
+
break;
|
|
26493
|
+
}
|
|
26494
|
+
return _context.abrupt("return");
|
|
26495
|
+
case 2:
|
|
26496
|
+
thresholdQuery = _this.state.thresholdQuery;
|
|
26497
|
+
extraRequestUrl = '';
|
|
26498
|
+
querParams = setParams(propertyCode, thresholdQuery);
|
|
26499
|
+
if (!queryIdentityInfo.find(function (item) {
|
|
26500
|
+
return item.identity == propertyCode;
|
|
26501
|
+
})) {
|
|
26502
|
+
_context.next = 10;
|
|
26503
|
+
break;
|
|
26504
|
+
}
|
|
26505
|
+
//判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
|
|
26506
|
+
needQueryList = queryIdentityInfo.find(function (item) {
|
|
26507
|
+
return item.identity == propertyCode;
|
|
26508
|
+
}).queryParam.filter(function (item) {
|
|
26509
|
+
return item.isRequired;
|
|
26510
|
+
}).map(function (item) {
|
|
26511
|
+
return item.queryKey;
|
|
26512
|
+
});
|
|
26513
|
+
if (!needQueryList.some(function (item) {
|
|
26514
|
+
return !querParams[item] || !querParams[item].length;
|
|
26515
|
+
})) {
|
|
26516
|
+
_context.next = 9;
|
|
26517
|
+
break;
|
|
26518
|
+
}
|
|
26519
|
+
return _context.abrupt("return");
|
|
26520
|
+
case 9:
|
|
26521
|
+
extraRequestUrl = queryIdentityInfo.find(function (item) {
|
|
26522
|
+
return item.identity == propertyCode;
|
|
26523
|
+
}).requestUrl || '';
|
|
26524
|
+
case 10:
|
|
26525
|
+
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
26526
|
+
extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
|
|
26527
|
+
querParams = {
|
|
26528
|
+
dictCode: queryIdentify
|
|
26529
|
+
};
|
|
26530
|
+
} else if (queryIdentifyType === 'dynamicDictCodeIdentify') {
|
|
26531
|
+
extraRequestUrl = "dictDynamicItem/getDynamicData/".concat(queryIdentify); // 字典接口
|
|
26532
|
+
// querParams = { dictCode: queryIdentify }
|
|
26533
|
+
}
|
|
26534
|
+
if (!extraRequestUrl) {
|
|
26535
|
+
_context.next = 16;
|
|
26536
|
+
break;
|
|
26537
|
+
}
|
|
26538
|
+
if (queryIdentify == 'maintain_area_code') {
|
|
26539
|
+
extraRequestUrl = "/basic/".concat(extraRequestUrl).concat(querParams.memberCardCode, "?").concat(stringify(querParams));
|
|
26540
|
+
} else if (queryIdentifyType == 'dictCodeIdentify') {
|
|
26541
|
+
extraRequestUrl = "/basic/".concat(extraRequestUrl, "?").concat(stringify(querParams));
|
|
26542
|
+
} else if (queryIdentifyType == 'dynamicDictCodeIdentify') {
|
|
26543
|
+
extraRequestUrl = "/basic/".concat(extraRequestUrl);
|
|
26544
|
+
}
|
|
26545
|
+
request$1({
|
|
26546
|
+
url: extraRequestUrl,
|
|
26547
|
+
method: 'get',
|
|
26548
|
+
converter: function converter(res) {
|
|
26549
|
+
if (handleError(res)) {
|
|
26550
|
+
var _handleData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
26551
|
+
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
26552
|
+
var _handleData2;
|
|
26553
|
+
_handleData = ((_handleData2 = _handleData) === null || _handleData2 === void 0 ? void 0 : _handleData2.length) ? _handleData.map(function (i) {
|
|
26554
|
+
return {
|
|
26555
|
+
code: i.dictItemCode,
|
|
26556
|
+
name: i.dictItemName
|
|
26557
|
+
};
|
|
26558
|
+
}) : [];
|
|
26559
|
+
}
|
|
26560
|
+
if (queryIdentifyType === 'dynamicDictCodeIdentify') {
|
|
26561
|
+
var _handleData3;
|
|
26562
|
+
_handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
|
|
26563
|
+
return {
|
|
26564
|
+
code: i.code.toString(),
|
|
26565
|
+
name: i.name
|
|
26566
|
+
};
|
|
26567
|
+
}) : [];
|
|
26568
|
+
}
|
|
26569
|
+
_this.setState({
|
|
26570
|
+
thresholdList: _handleData
|
|
26571
|
+
});
|
|
26680
26572
|
}
|
|
26681
|
-
|
|
26682
|
-
thresholdList: _handleData
|
|
26683
|
-
});
|
|
26573
|
+
return handleData;
|
|
26684
26574
|
}
|
|
26685
|
-
|
|
26686
|
-
|
|
26687
|
-
});
|
|
26688
|
-
_context.next = 29;
|
|
26689
|
-
break;
|
|
26690
|
-
case 16:
|
|
26691
|
-
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
26692
|
-
_context.next = 20;
|
|
26575
|
+
});
|
|
26576
|
+
_context.next = 29;
|
|
26693
26577
|
break;
|
|
26694
|
-
|
|
26695
|
-
|
|
26696
|
-
|
|
26697
|
-
|
|
26698
|
-
|
|
26699
|
-
|
|
26700
|
-
|
|
26701
|
-
|
|
26702
|
-
_context.next =
|
|
26578
|
+
case 16:
|
|
26579
|
+
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
26580
|
+
_context.next = 20;
|
|
26581
|
+
break;
|
|
26582
|
+
}
|
|
26583
|
+
_this.setState({
|
|
26584
|
+
thresholdList: queryIdentify
|
|
26585
|
+
});
|
|
26586
|
+
_context.next = 29;
|
|
26703
26587
|
break;
|
|
26704
|
-
|
|
26705
|
-
|
|
26706
|
-
|
|
26707
|
-
|
|
26708
|
-
|
|
26709
|
-
|
|
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)) {
|
|
26588
|
+
case 20:
|
|
26589
|
+
if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
|
|
26590
|
+
_context.next = 24;
|
|
26591
|
+
break;
|
|
26592
|
+
}
|
|
26593
|
+
// TODO待处理
|
|
26718
26594
|
_this.setState({
|
|
26719
|
-
thresholdList:
|
|
26595
|
+
thresholdList: []
|
|
26720
26596
|
});
|
|
26721
|
-
|
|
26722
|
-
|
|
26723
|
-
|
|
26724
|
-
|
|
26597
|
+
_context.next = 29;
|
|
26598
|
+
break;
|
|
26599
|
+
case 24:
|
|
26600
|
+
querParams.queryIdentify = queryIdentify;
|
|
26601
|
+
_context.next = 27;
|
|
26602
|
+
return getRegularThresholdRange(querParams);
|
|
26603
|
+
case 27:
|
|
26604
|
+
res = _context.sent;
|
|
26605
|
+
if (handleError(res)) {
|
|
26606
|
+
_this.setState({
|
|
26607
|
+
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
26608
|
+
});
|
|
26609
|
+
}
|
|
26610
|
+
case 29:
|
|
26611
|
+
case "end":
|
|
26612
|
+
return _context.stop();
|
|
26613
|
+
}
|
|
26725
26614
|
}
|
|
26726
26615
|
}, _callee);
|
|
26727
26616
|
}));
|
|
@@ -27540,30 +27429,32 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27540
27429
|
notChangeOnSelect: true,
|
|
27541
27430
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
27542
27431
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
27543
|
-
while (1)
|
|
27544
|
-
|
|
27545
|
-
|
|
27546
|
-
|
|
27547
|
-
|
|
27548
|
-
|
|
27549
|
-
|
|
27550
|
-
|
|
27551
|
-
|
|
27552
|
-
|
|
27553
|
-
|
|
27554
|
-
|
|
27555
|
-
|
|
27556
|
-
|
|
27557
|
-
|
|
27558
|
-
|
|
27559
|
-
|
|
27560
|
-
|
|
27561
|
-
|
|
27562
|
-
|
|
27563
|
-
|
|
27564
|
-
|
|
27565
|
-
|
|
27566
|
-
|
|
27432
|
+
while (1) {
|
|
27433
|
+
switch (_context2.prev = _context2.next) {
|
|
27434
|
+
case 0:
|
|
27435
|
+
_context2.next = 2;
|
|
27436
|
+
return request$1({
|
|
27437
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
27438
|
+
method: 'get',
|
|
27439
|
+
converter: function converter(_ref3) {
|
|
27440
|
+
var data = _ref3.data;
|
|
27441
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27442
|
+
return {
|
|
27443
|
+
text: item.name,
|
|
27444
|
+
value: item.id,
|
|
27445
|
+
level: item.level,
|
|
27446
|
+
id: item.id
|
|
27447
|
+
};
|
|
27448
|
+
}) : [];
|
|
27449
|
+
return handleData;
|
|
27450
|
+
}
|
|
27451
|
+
});
|
|
27452
|
+
case 2:
|
|
27453
|
+
return _context2.abrupt("return", _context2.sent);
|
|
27454
|
+
case 3:
|
|
27455
|
+
case "end":
|
|
27456
|
+
return _context2.stop();
|
|
27457
|
+
}
|
|
27567
27458
|
}
|
|
27568
27459
|
}, _callee2);
|
|
27569
27460
|
})),
|
|
@@ -27589,30 +27480,32 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27589
27480
|
notChangeOnSelect: true,
|
|
27590
27481
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
27591
27482
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
27592
|
-
while (1)
|
|
27593
|
-
|
|
27594
|
-
|
|
27595
|
-
|
|
27596
|
-
|
|
27597
|
-
|
|
27598
|
-
|
|
27599
|
-
|
|
27600
|
-
|
|
27601
|
-
|
|
27602
|
-
|
|
27603
|
-
|
|
27604
|
-
|
|
27605
|
-
|
|
27606
|
-
|
|
27607
|
-
|
|
27608
|
-
|
|
27609
|
-
|
|
27610
|
-
|
|
27611
|
-
|
|
27612
|
-
|
|
27613
|
-
|
|
27614
|
-
|
|
27615
|
-
|
|
27483
|
+
while (1) {
|
|
27484
|
+
switch (_context3.prev = _context3.next) {
|
|
27485
|
+
case 0:
|
|
27486
|
+
_context3.next = 2;
|
|
27487
|
+
return request$1({
|
|
27488
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
27489
|
+
method: 'get',
|
|
27490
|
+
converter: function converter(_ref5) {
|
|
27491
|
+
var data = _ref5.data;
|
|
27492
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27493
|
+
return {
|
|
27494
|
+
text: item.name,
|
|
27495
|
+
value: item.id,
|
|
27496
|
+
level: item.level,
|
|
27497
|
+
id: item.id
|
|
27498
|
+
};
|
|
27499
|
+
}) : [];
|
|
27500
|
+
return handleData;
|
|
27501
|
+
}
|
|
27502
|
+
});
|
|
27503
|
+
case 2:
|
|
27504
|
+
return _context3.abrupt("return", _context3.sent);
|
|
27505
|
+
case 3:
|
|
27506
|
+
case "end":
|
|
27507
|
+
return _context3.stop();
|
|
27508
|
+
}
|
|
27616
27509
|
}
|
|
27617
27510
|
}, _callee3);
|
|
27618
27511
|
})),
|
|
@@ -27640,30 +27533,32 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27640
27533
|
notChangeOnSelect: true,
|
|
27641
27534
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
27642
27535
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
27643
|
-
while (1)
|
|
27644
|
-
|
|
27645
|
-
|
|
27646
|
-
|
|
27647
|
-
|
|
27648
|
-
|
|
27649
|
-
|
|
27650
|
-
|
|
27651
|
-
|
|
27652
|
-
|
|
27653
|
-
|
|
27654
|
-
|
|
27655
|
-
|
|
27656
|
-
|
|
27657
|
-
|
|
27658
|
-
|
|
27659
|
-
|
|
27660
|
-
|
|
27661
|
-
|
|
27662
|
-
|
|
27663
|
-
|
|
27664
|
-
|
|
27665
|
-
|
|
27666
|
-
|
|
27536
|
+
while (1) {
|
|
27537
|
+
switch (_context4.prev = _context4.next) {
|
|
27538
|
+
case 0:
|
|
27539
|
+
_context4.next = 2;
|
|
27540
|
+
return request$1({
|
|
27541
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
27542
|
+
method: 'get',
|
|
27543
|
+
converter: function converter(_ref7) {
|
|
27544
|
+
var data = _ref7.data;
|
|
27545
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27546
|
+
return {
|
|
27547
|
+
text: item.name,
|
|
27548
|
+
value: item.id,
|
|
27549
|
+
level: item.level,
|
|
27550
|
+
id: item.id
|
|
27551
|
+
};
|
|
27552
|
+
}) : [];
|
|
27553
|
+
return handleData;
|
|
27554
|
+
}
|
|
27555
|
+
});
|
|
27556
|
+
case 2:
|
|
27557
|
+
return _context4.abrupt("return", _context4.sent);
|
|
27558
|
+
case 3:
|
|
27559
|
+
case "end":
|
|
27560
|
+
return _context4.stop();
|
|
27561
|
+
}
|
|
27667
27562
|
}
|
|
27668
27563
|
}, _callee4);
|
|
27669
27564
|
})),
|
|
@@ -28780,6 +28675,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
28780
28675
|
});
|
|
28781
28676
|
}
|
|
28782
28677
|
}
|
|
28678
|
+
|
|
28679
|
+
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
28783
28680
|
}, {
|
|
28784
28681
|
key: "render",
|
|
28785
28682
|
value: function render() {
|
|
@@ -29610,7 +29507,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29610
29507
|
callBack(ruleClassData);
|
|
29611
29508
|
});
|
|
29612
29509
|
};
|
|
29613
|
-
// 树结构 转化成 平行树 (递归函数)
|
|
29614
29510
|
_this.coverToParallel = function (treeData, result) {
|
|
29615
29511
|
treeData.forEach(function (el) {
|
|
29616
29512
|
result.push(el);
|
|
@@ -29866,7 +29762,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29866
29762
|
callBack(ruleClassData);
|
|
29867
29763
|
});
|
|
29868
29764
|
};
|
|
29869
|
-
// 场景需要返回值2022.11.15
|
|
29870
29765
|
_this.renderResItem = function (itemDetail, parentDetail, ruleReturnConfig, classDataIndex, disabled, boxStyle) {
|
|
29871
29766
|
var _ruleReturnConfig$rig;
|
|
29872
29767
|
var isShowResponse = itemDetail.response['enable'];
|
|
@@ -30164,30 +30059,32 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30164
30059
|
notChangeOnSelect: true,
|
|
30165
30060
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30166
30061
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30167
|
-
while (1)
|
|
30168
|
-
|
|
30169
|
-
|
|
30170
|
-
|
|
30171
|
-
|
|
30172
|
-
|
|
30173
|
-
|
|
30174
|
-
|
|
30175
|
-
|
|
30176
|
-
|
|
30177
|
-
|
|
30178
|
-
|
|
30179
|
-
|
|
30180
|
-
|
|
30181
|
-
|
|
30182
|
-
|
|
30183
|
-
|
|
30184
|
-
|
|
30185
|
-
|
|
30186
|
-
|
|
30187
|
-
|
|
30188
|
-
|
|
30189
|
-
|
|
30190
|
-
|
|
30062
|
+
while (1) {
|
|
30063
|
+
switch (_context.prev = _context.next) {
|
|
30064
|
+
case 0:
|
|
30065
|
+
_context.next = 2;
|
|
30066
|
+
return request$1({
|
|
30067
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
30068
|
+
method: 'get',
|
|
30069
|
+
converter: function converter(_ref2) {
|
|
30070
|
+
var data = _ref2.data;
|
|
30071
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
30072
|
+
return {
|
|
30073
|
+
text: item.name,
|
|
30074
|
+
value: item.id,
|
|
30075
|
+
level: item.level,
|
|
30076
|
+
id: item.id
|
|
30077
|
+
};
|
|
30078
|
+
}) : [];
|
|
30079
|
+
return handleData;
|
|
30080
|
+
}
|
|
30081
|
+
});
|
|
30082
|
+
case 2:
|
|
30083
|
+
return _context.abrupt("return", _context.sent);
|
|
30084
|
+
case 3:
|
|
30085
|
+
case "end":
|
|
30086
|
+
return _context.stop();
|
|
30087
|
+
}
|
|
30191
30088
|
}
|
|
30192
30089
|
}, _callee);
|
|
30193
30090
|
})),
|
|
@@ -30521,7 +30418,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30521
30418
|
}
|
|
30522
30419
|
}, "\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);
|
|
30523
30420
|
};
|
|
30524
|
-
//添加同一层级条件
|
|
30525
30421
|
_this.addPeerRule = function (itemDetail) {
|
|
30526
30422
|
var ruleClassData = _this.state.ruleClassData;
|
|
30527
30423
|
var _this$props4 = _this.props,
|
|
@@ -30542,7 +30438,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30542
30438
|
callBack(ruleClassData);
|
|
30543
30439
|
});
|
|
30544
30440
|
};
|
|
30545
|
-
//添加子层级条件
|
|
30546
30441
|
_this.addChildRules = function (itemDetail) {
|
|
30547
30442
|
var ruleClassData = _this.state.ruleClassData;
|
|
30548
30443
|
var callBack = _this.props.callBack;
|
|
@@ -30618,7 +30513,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30618
30513
|
callBack(ruleClassData);
|
|
30619
30514
|
});
|
|
30620
30515
|
};
|
|
30621
|
-
// 新增执行顺序
|
|
30622
30516
|
_this.handleSelectRuleAction = function (keys, classDataIndex, callback) {
|
|
30623
30517
|
callback();
|
|
30624
30518
|
var callBack = _this.props.callBack;
|