@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.js
CHANGED
|
@@ -155,33 +155,6 @@ axios__default['default'].interceptors.request.use(function (config) {
|
|
|
155
155
|
return config;
|
|
156
156
|
});
|
|
157
157
|
|
|
158
|
-
function _iterableToArrayLimit(arr, i) {
|
|
159
|
-
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
160
|
-
if (null != _i) {
|
|
161
|
-
var _s,
|
|
162
|
-
_e,
|
|
163
|
-
_x,
|
|
164
|
-
_r,
|
|
165
|
-
_arr = [],
|
|
166
|
-
_n = !0,
|
|
167
|
-
_d = !1;
|
|
168
|
-
try {
|
|
169
|
-
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
170
|
-
if (Object(_i) !== _i) return;
|
|
171
|
-
_n = !1;
|
|
172
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
173
|
-
} catch (err) {
|
|
174
|
-
_d = !0, _e = err;
|
|
175
|
-
} finally {
|
|
176
|
-
try {
|
|
177
|
-
if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
|
|
178
|
-
} finally {
|
|
179
|
-
if (_d) throw _e;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
return _arr;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
158
|
function ownKeys(object, enumerableOnly) {
|
|
186
159
|
var keys = Object.keys(object);
|
|
187
160
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -338,9 +311,14 @@ function _regeneratorRuntime() {
|
|
|
338
311
|
};
|
|
339
312
|
}
|
|
340
313
|
function maybeInvokeDelegate(delegate, context) {
|
|
341
|
-
var
|
|
342
|
-
|
|
343
|
-
|
|
314
|
+
var method = delegate.iterator[context.method];
|
|
315
|
+
if (undefined === method) {
|
|
316
|
+
if (context.delegate = null, "throw" === context.method) {
|
|
317
|
+
if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
318
|
+
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
319
|
+
}
|
|
320
|
+
return ContinueSentinel;
|
|
321
|
+
}
|
|
344
322
|
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
345
323
|
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
346
324
|
var info = record.arg;
|
|
@@ -554,7 +532,7 @@ function _defineProperties(target, props) {
|
|
|
554
532
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
555
533
|
descriptor.configurable = true;
|
|
556
534
|
if ("value" in descriptor) descriptor.writable = true;
|
|
557
|
-
Object.defineProperty(target,
|
|
535
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
558
536
|
}
|
|
559
537
|
}
|
|
560
538
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
@@ -566,7 +544,6 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
566
544
|
return Constructor;
|
|
567
545
|
}
|
|
568
546
|
function _defineProperty(obj, key, value) {
|
|
569
|
-
key = _toPropertyKey(key);
|
|
570
547
|
if (key in obj) {
|
|
571
548
|
Object.defineProperty(obj, key, {
|
|
572
549
|
value: value,
|
|
@@ -709,6 +686,30 @@ function _arrayWithHoles(arr) {
|
|
|
709
686
|
function _iterableToArray(iter) {
|
|
710
687
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
711
688
|
}
|
|
689
|
+
function _iterableToArrayLimit(arr, i) {
|
|
690
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
691
|
+
if (_i == null) return;
|
|
692
|
+
var _arr = [];
|
|
693
|
+
var _n = true;
|
|
694
|
+
var _d = false;
|
|
695
|
+
var _s, _e;
|
|
696
|
+
try {
|
|
697
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
698
|
+
_arr.push(_s.value);
|
|
699
|
+
if (i && _arr.length === i) break;
|
|
700
|
+
}
|
|
701
|
+
} catch (err) {
|
|
702
|
+
_d = true;
|
|
703
|
+
_e = err;
|
|
704
|
+
} finally {
|
|
705
|
+
try {
|
|
706
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
707
|
+
} finally {
|
|
708
|
+
if (_d) throw _e;
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
return _arr;
|
|
712
|
+
}
|
|
712
713
|
function _unsupportedIterableToArray(o, minLen) {
|
|
713
714
|
if (!o) return;
|
|
714
715
|
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
@@ -728,20 +729,6 @@ function _nonIterableSpread() {
|
|
|
728
729
|
function _nonIterableRest() {
|
|
729
730
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
730
731
|
}
|
|
731
|
-
function _toPrimitive(input, hint) {
|
|
732
|
-
if (typeof input !== "object" || input === null) return input;
|
|
733
|
-
var prim = input[Symbol.toPrimitive];
|
|
734
|
-
if (prim !== undefined) {
|
|
735
|
-
var res = prim.call(input, hint || "default");
|
|
736
|
-
if (typeof res !== "object") return res;
|
|
737
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
738
|
-
}
|
|
739
|
-
return (hint === "string" ? String : Number)(input);
|
|
740
|
-
}
|
|
741
|
-
function _toPropertyKey(arg) {
|
|
742
|
-
var key = _toPrimitive(arg, "string");
|
|
743
|
-
return typeof key === "symbol" ? key : String(key);
|
|
744
|
-
}
|
|
745
732
|
|
|
746
733
|
var checkQuantityAccuracy = function checkQuantityAccuracy(value, accuracy, errorInfo) {
|
|
747
734
|
var errorMessage = _objectSpread2({
|
|
@@ -994,35 +981,32 @@ function handleCommonTimeRender(text, format) {
|
|
|
994
981
|
}
|
|
995
982
|
//设置queryTable默认列宽
|
|
996
983
|
var getItemDefaultWidth = function getItemDefaultWidth(item) {
|
|
997
|
-
var _ref;
|
|
998
984
|
var defaultWidth = 200;
|
|
999
|
-
var lowerCaseKey = (
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
break;
|
|
1025
|
-
}
|
|
985
|
+
var lowerCaseKey = (item.key || item.dataIndex).toLowerCase();
|
|
986
|
+
switch (true) {
|
|
987
|
+
case (item === null || item === void 0 ? void 0 : item.title) === '操作' || lowerCaseKey === 'operate':
|
|
988
|
+
defaultWidth = 60;
|
|
989
|
+
break;
|
|
990
|
+
case lowerCaseKey.indexOf('number') > -1:
|
|
991
|
+
case lowerCaseKey.indexOf('quantity') > -1:
|
|
992
|
+
case lowerCaseKey.indexOf('amount') > -1:
|
|
993
|
+
defaultWidth = 90;
|
|
994
|
+
break;
|
|
995
|
+
case lowerCaseKey.indexOf('no') > -1:
|
|
996
|
+
defaultWidth = 200;
|
|
997
|
+
break;
|
|
998
|
+
case lowerCaseKey.indexOf('code') > -1:
|
|
999
|
+
defaultWidth = 170;
|
|
1000
|
+
break;
|
|
1001
|
+
case lowerCaseKey.indexOf('time') > -1:
|
|
1002
|
+
defaultWidth = 130;
|
|
1003
|
+
break;
|
|
1004
|
+
case lowerCaseKey.indexOf('status') > -1:
|
|
1005
|
+
defaultWidth = 100;
|
|
1006
|
+
break;
|
|
1007
|
+
case lowerCaseKey.indexOf('user') > -1:
|
|
1008
|
+
defaultWidth = 130;
|
|
1009
|
+
break;
|
|
1026
1010
|
}
|
|
1027
1011
|
return defaultWidth;
|
|
1028
1012
|
};
|
|
@@ -1032,59 +1016,58 @@ var getItemDefaultWidth = function getItemDefaultWidth(item) {
|
|
|
1032
1016
|
* @returns 返回处理后的查询参数
|
|
1033
1017
|
*/
|
|
1034
1018
|
function queryParams(params, flag) {
|
|
1035
|
-
var
|
|
1019
|
+
for (var key in params) {
|
|
1036
1020
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1021
|
+
(function () {
|
|
1022
|
+
var element = params[key];
|
|
1023
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
1024
|
+
var dataParams = key.split('*number*');
|
|
1025
|
+
dataParams.forEach(function (value, index) {
|
|
1026
|
+
params[value] = element[index];
|
|
1027
|
+
});
|
|
1028
|
+
delete params[key];
|
|
1029
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
1030
|
+
var _dataParams = key.split('*address*');
|
|
1031
|
+
_dataParams.forEach(function (value, index) {
|
|
1032
|
+
params[value] = element.PCDCode[index];
|
|
1033
|
+
});
|
|
1034
|
+
delete params[key];
|
|
1035
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
1036
|
+
var _dataParams2 = key.split('*costType*');
|
|
1037
|
+
// eslint-disable-next-line prefer-destructuring
|
|
1038
|
+
params[_dataParams2[0]] = element[1];
|
|
1039
|
+
delete params[key];
|
|
1040
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
1041
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
1042
|
+
_dataParams3.forEach(function (value, index) {
|
|
1043
|
+
if (index === 0) {
|
|
1044
|
+
params[value] = moment__default['default'](element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
1045
|
+
} else {
|
|
1046
|
+
params[value] = moment__default['default'](element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
1047
|
+
}
|
|
1048
|
+
});
|
|
1049
|
+
delete params[key];
|
|
1050
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
1051
|
+
var _dataParams4 = key.split('*');
|
|
1052
|
+
_dataParams4.forEach(function (value, index) {
|
|
1053
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
1054
|
+
});
|
|
1055
|
+
delete params[key];
|
|
1056
|
+
} else if (element && key.indexOf('_likeIn_') >= 0) {
|
|
1057
|
+
var _dataParams5 = key.split('_likeIn_');
|
|
1058
|
+
if (element.indexOf(',') >= 0) {
|
|
1059
|
+
params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
|
|
1060
|
+
params["qp-".concat(_dataParams5[0], "-like")] = null;
|
|
1060
1061
|
} else {
|
|
1061
|
-
params[
|
|
1062
|
+
params["qp-".concat(_dataParams5[0], "-like")] = element;
|
|
1063
|
+
params["qp-".concat(_dataParams5[0], "-in")] = null;
|
|
1062
1064
|
}
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
var _dataParams4 = key.split('*');
|
|
1067
|
-
_dataParams4.forEach(function (value, index) {
|
|
1068
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
1069
|
-
});
|
|
1070
|
-
delete params[key];
|
|
1071
|
-
} else if (element && key.indexOf('_likeIn_') >= 0) {
|
|
1072
|
-
var _dataParams5 = key.split('_likeIn_');
|
|
1073
|
-
if (element.indexOf(',') >= 0) {
|
|
1074
|
-
params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
|
|
1075
|
-
params["qp-".concat(_dataParams5[0], "-like")] = null;
|
|
1076
|
-
} else {
|
|
1077
|
-
params["qp-".concat(_dataParams5[0], "-like")] = element;
|
|
1078
|
-
params["qp-".concat(_dataParams5[0], "-in")] = null;
|
|
1065
|
+
delete params[key];
|
|
1066
|
+
} else if (Array.isArray(element)) {
|
|
1067
|
+
params[key] = element.join(',');
|
|
1079
1068
|
}
|
|
1080
|
-
|
|
1081
|
-
} else if (Array.isArray(element)) {
|
|
1082
|
-
params[key] = element.join(',');
|
|
1083
|
-
}
|
|
1069
|
+
})();
|
|
1084
1070
|
}
|
|
1085
|
-
};
|
|
1086
|
-
for (var key in params) {
|
|
1087
|
-
_loop();
|
|
1088
1071
|
}
|
|
1089
1072
|
return flag ? params : qs.stringify(params);
|
|
1090
1073
|
}
|
|
@@ -2813,85 +2796,84 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
2813
2796
|
});
|
|
2814
2797
|
}
|
|
2815
2798
|
// 数组对象处理,对带有特殊标记的name进行处理
|
|
2816
|
-
var
|
|
2799
|
+
for (var key in params) {
|
|
2817
2800
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2801
|
+
(function () {
|
|
2802
|
+
var element = params[key];
|
|
2803
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
2804
|
+
var dataParams = key.split('*number*');
|
|
2805
|
+
dataParams.forEach(function (value, index) {
|
|
2806
|
+
params[value] = element[index];
|
|
2807
|
+
});
|
|
2808
|
+
delete params[key];
|
|
2809
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
2810
|
+
var _dataParams = key.split('*address*');
|
|
2811
|
+
_dataParams.forEach(function (value, index) {
|
|
2812
|
+
params[value] = element.PCDCode[index];
|
|
2813
|
+
});
|
|
2814
|
+
delete params[key];
|
|
2815
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
2816
|
+
var _dataParams2 = key.split('*costType*');
|
|
2817
|
+
// eslint-disable-next-line prefer-destructuring
|
|
2818
|
+
params[_dataParams2[0]] = element[1];
|
|
2819
|
+
delete params[key];
|
|
2820
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
2821
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
2822
|
+
_dataParams3.forEach(function (value, index) {
|
|
2823
|
+
if (index === 0) {
|
|
2824
|
+
params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
2825
|
+
} else {
|
|
2826
|
+
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
2827
|
+
}
|
|
2828
|
+
});
|
|
2829
|
+
delete params[key];
|
|
2830
|
+
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
2831
|
+
var _dataParams4 = key.split('*checkBox*');
|
|
2832
|
+
if (element) {
|
|
2833
|
+
params[_dataParams4[0]] = 0;
|
|
2843
2834
|
}
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2835
|
+
delete params[key];
|
|
2836
|
+
} else if (element && key.indexOf('*cascader*') >= 0) {
|
|
2837
|
+
var _dataParams5 = key.split('*cascader*');
|
|
2838
|
+
params[_dataParams5[0]] = element[element.length - 1];
|
|
2839
|
+
delete params[key];
|
|
2840
|
+
} else if (element && key.indexOf('*date*') >= 0) {
|
|
2841
|
+
var _dataParams6 = key.split('*date*');
|
|
2842
|
+
_dataParams6.forEach(function (value, index) {
|
|
2843
|
+
if (index === 0) {
|
|
2844
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
2845
|
+
} else {
|
|
2846
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
2847
|
+
}
|
|
2848
|
+
});
|
|
2849
|
+
delete params[key];
|
|
2850
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
2851
|
+
var _dataParams7 = key.split('*');
|
|
2852
|
+
_dataParams7.forEach(function (value, index) {
|
|
2853
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
2854
|
+
});
|
|
2855
|
+
delete params[key];
|
|
2856
|
+
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
2857
|
+
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
2858
|
+
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
2859
|
+
if (params[key][0] === 'range') {
|
|
2860
|
+
if (params[key][1][0]) {
|
|
2861
|
+
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
2862
|
+
}
|
|
2863
|
+
if (params[key][1][1]) {
|
|
2864
|
+
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
2865
|
+
}
|
|
2861
2866
|
} else {
|
|
2862
|
-
params[
|
|
2863
|
-
}
|
|
2864
|
-
});
|
|
2865
|
-
delete params[key];
|
|
2866
|
-
} else if (element && key.indexOf('*') >= 0) {
|
|
2867
|
-
var _dataParams7 = key.split('*');
|
|
2868
|
-
_dataParams7.forEach(function (value, index) {
|
|
2869
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
2870
|
-
});
|
|
2871
|
-
delete params[key];
|
|
2872
|
-
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
2873
|
-
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
2874
|
-
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
2875
|
-
if (params[key][0] === 'range') {
|
|
2876
|
-
if (params[key][1][0]) {
|
|
2877
|
-
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
2867
|
+
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
2878
2868
|
}
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
} else {
|
|
2883
|
-
|
|
2869
|
+
delete params[key];
|
|
2870
|
+
} else if (Array.isArray(element)) {
|
|
2871
|
+
params[key] = element.join(',');
|
|
2872
|
+
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
2873
|
+
delete params[key];
|
|
2884
2874
|
}
|
|
2885
|
-
|
|
2886
|
-
} else if (Array.isArray(element)) {
|
|
2887
|
-
params[key] = element.join(',');
|
|
2888
|
-
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
2889
|
-
delete params[key];
|
|
2890
|
-
}
|
|
2875
|
+
})();
|
|
2891
2876
|
}
|
|
2892
|
-
};
|
|
2893
|
-
for (var key in params) {
|
|
2894
|
-
_loop();
|
|
2895
2877
|
}
|
|
2896
2878
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
2897
2879
|
pageSize: pageSize,
|
|
@@ -4240,32 +4222,30 @@ var getItemDefaultWidth$1 = function getItemDefaultWidth(item) {
|
|
|
4240
4222
|
var _ref;
|
|
4241
4223
|
var defaultWidth = 200;
|
|
4242
4224
|
var lowerCaseKey = (_ref = item.key || item.dataIndex) === null || _ref === void 0 ? void 0 : _ref.toLowerCase();
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
break;
|
|
4268
|
-
}
|
|
4225
|
+
switch (true) {
|
|
4226
|
+
case (item === null || item === void 0 ? void 0 : item.title) === '操作' || lowerCaseKey === 'operate':
|
|
4227
|
+
defaultWidth = 60;
|
|
4228
|
+
break;
|
|
4229
|
+
case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('number')) > -1:
|
|
4230
|
+
case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('quantity')) > -1:
|
|
4231
|
+
case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('amount')) > -1:
|
|
4232
|
+
defaultWidth = 90;
|
|
4233
|
+
break;
|
|
4234
|
+
case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('no')) > -1:
|
|
4235
|
+
defaultWidth = 200;
|
|
4236
|
+
break;
|
|
4237
|
+
case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('code')) > -1:
|
|
4238
|
+
defaultWidth = 170;
|
|
4239
|
+
break;
|
|
4240
|
+
case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('time')) > -1:
|
|
4241
|
+
defaultWidth = 130;
|
|
4242
|
+
break;
|
|
4243
|
+
case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('status')) > -1:
|
|
4244
|
+
defaultWidth = 100;
|
|
4245
|
+
break;
|
|
4246
|
+
case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('user')) > -1:
|
|
4247
|
+
defaultWidth = 130;
|
|
4248
|
+
break;
|
|
4269
4249
|
}
|
|
4270
4250
|
return defaultWidth;
|
|
4271
4251
|
};
|
|
@@ -4290,6 +4270,8 @@ var getSelectDataList = function getSelectDataList(record, item, selectKey) {
|
|
|
4290
4270
|
}
|
|
4291
4271
|
return result;
|
|
4292
4272
|
};
|
|
4273
|
+
|
|
4274
|
+
var _excluded$3 = ["onResize", "width"];
|
|
4293
4275
|
var loadSelectSource = function loadSelectSource(url, params) {
|
|
4294
4276
|
return new Promise(function (resolve, reject) {
|
|
4295
4277
|
axios__default['default'].get("".concat(url, "?").concat(querystring.stringify(params))).then(function (result) {
|
|
@@ -4297,7 +4279,6 @@ var loadSelectSource = function loadSelectSource(url, params) {
|
|
|
4297
4279
|
result = result.data;
|
|
4298
4280
|
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') {
|
|
4299
4281
|
antd.message.error(result.msg);
|
|
4300
|
-
resolve(result);
|
|
4301
4282
|
return;
|
|
4302
4283
|
}
|
|
4303
4284
|
resolve(result);
|
|
@@ -4306,6 +4287,38 @@ var loadSelectSource = function loadSelectSource(url, params) {
|
|
|
4306
4287
|
});
|
|
4307
4288
|
});
|
|
4308
4289
|
};
|
|
4290
|
+
var checkSpuMatchCode = function checkSpuMatchCode(data) {
|
|
4291
|
+
return new Promise(function (resolve, reject) {
|
|
4292
|
+
axios__default['default'].post("/stock/rwFrontRecordSkcDetail/checkSpuMatchCode", data).then(function (result) {
|
|
4293
|
+
var _result3, _result4;
|
|
4294
|
+
result = result.data;
|
|
4295
|
+
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') {
|
|
4296
|
+
antd.message.error(result.msg);
|
|
4297
|
+
reject(false);
|
|
4298
|
+
return;
|
|
4299
|
+
}
|
|
4300
|
+
resolve(result);
|
|
4301
|
+
}).catch(function (err) {
|
|
4302
|
+
reject(err);
|
|
4303
|
+
});
|
|
4304
|
+
});
|
|
4305
|
+
};
|
|
4306
|
+
var ResizeableTitle = function ResizeableTitle(props) {
|
|
4307
|
+
var onResize = props.onResize,
|
|
4308
|
+
width = props.width,
|
|
4309
|
+
restProps = _objectWithoutProperties(props, _excluded$3);
|
|
4310
|
+
if (!width) {
|
|
4311
|
+
return /*#__PURE__*/React__default['default'].createElement("th", _objectSpread2({}, restProps));
|
|
4312
|
+
}
|
|
4313
|
+
return /*#__PURE__*/React__default['default'].createElement(reactResizable.Resizable, {
|
|
4314
|
+
width: width,
|
|
4315
|
+
height: 0,
|
|
4316
|
+
onResize: onResize,
|
|
4317
|
+
draggableOpts: {
|
|
4318
|
+
enableUserSelectHack: false
|
|
4319
|
+
}
|
|
4320
|
+
}, /*#__PURE__*/React__default['default'].createElement("th", _objectSpread2({}, restProps)));
|
|
4321
|
+
};
|
|
4309
4322
|
var formatSource = function formatSource(reData, position, changePosition, changeSearchForm) {
|
|
4310
4323
|
var _reData$position;
|
|
4311
4324
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['code', 'name'];
|
|
@@ -4345,52 +4358,6 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
4345
4358
|
}) || [];
|
|
4346
4359
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
4347
4360
|
};
|
|
4348
|
-
var formatFormSourceList = function formatFormSourceList(x, loadList, tableSearchForm) {
|
|
4349
|
-
loadList.forEach(function (i, index) {
|
|
4350
|
-
if (i.resType == 'list') {
|
|
4351
|
-
var resKeyValue = i.resKeyValue || ['code', 'name'];
|
|
4352
|
-
formatSource(x, index, i.resPosition, tableSearchForm, resKeyValue);
|
|
4353
|
-
}
|
|
4354
|
-
if (i.resType == 'treeList') {
|
|
4355
|
-
var _resKeyValue = i.resKeyValue || ['id', 'name'];
|
|
4356
|
-
formatTreeDataSource(x, index, i.resPosition, tableSearchForm, _resKeyValue);
|
|
4357
|
-
}
|
|
4358
|
-
});
|
|
4359
|
-
};
|
|
4360
|
-
|
|
4361
|
-
var _excluded$3 = ["onResize", "width"];
|
|
4362
|
-
var checkSpuMatchCode = function checkSpuMatchCode(data) {
|
|
4363
|
-
return new Promise(function (resolve, reject) {
|
|
4364
|
-
axios__default['default'].post("/stock/rwFrontRecordSkcDetail/checkSpuMatchCode", data).then(function (result) {
|
|
4365
|
-
var _result, _result2;
|
|
4366
|
-
result = result.data;
|
|
4367
|
-
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') {
|
|
4368
|
-
antd.message.error(result.msg);
|
|
4369
|
-
reject(false);
|
|
4370
|
-
return;
|
|
4371
|
-
}
|
|
4372
|
-
resolve(result);
|
|
4373
|
-
}).catch(function (err) {
|
|
4374
|
-
reject(err);
|
|
4375
|
-
});
|
|
4376
|
-
});
|
|
4377
|
-
};
|
|
4378
|
-
var ResizeableTitle = function ResizeableTitle(props) {
|
|
4379
|
-
var onResize = props.onResize,
|
|
4380
|
-
width = props.width,
|
|
4381
|
-
restProps = _objectWithoutProperties(props, _excluded$3);
|
|
4382
|
-
if (!width) {
|
|
4383
|
-
return /*#__PURE__*/React__default['default'].createElement("th", _objectSpread2({}, restProps));
|
|
4384
|
-
}
|
|
4385
|
-
return /*#__PURE__*/React__default['default'].createElement(reactResizable.Resizable, {
|
|
4386
|
-
width: width,
|
|
4387
|
-
height: 0,
|
|
4388
|
-
onResize: onResize,
|
|
4389
|
-
draggableOpts: {
|
|
4390
|
-
enableUserSelectHack: false
|
|
4391
|
-
}
|
|
4392
|
-
}, /*#__PURE__*/React__default['default'].createElement("th", _objectSpread2({}, restProps)));
|
|
4393
|
-
};
|
|
4394
4361
|
var initTableCode = {
|
|
4395
4362
|
'sku': ['skuSelect-tableOptionsToChoosePartCode', 'skuSelect-tableSelectedItemPartCode'],
|
|
4396
4363
|
'skc': ['skcSelect-tableOptionsToChoosePartCode', 'skcSelect-tableSelectedItemPartCode'],
|
|
@@ -4423,7 +4390,9 @@ var AddSelect = function AddSelect(props) {
|
|
|
4423
4390
|
_props$businessType = props.businessType,
|
|
4424
4391
|
businessType = _props$businessType === void 0 ? 'sku' : _props$businessType,
|
|
4425
4392
|
_props$isAllowRepeate = props.isAllowRepeatedSelect,
|
|
4426
|
-
isAllowRepeatedSelect = _props$isAllowRepeate === void 0 ? false : _props$isAllowRepeate
|
|
4393
|
+
isAllowRepeatedSelect = _props$isAllowRepeate === void 0 ? false : _props$isAllowRepeate,
|
|
4394
|
+
_props$noUseItemEanco = props.noUseItemEancode,
|
|
4395
|
+
noUseItemEancode = _props$noUseItemEanco === void 0 ? true : _props$noUseItemEanco;
|
|
4427
4396
|
var _ref = requestConfig || {},
|
|
4428
4397
|
url = _ref.url,
|
|
4429
4398
|
otherParams = _ref.otherParams,
|
|
@@ -4580,74 +4549,76 @@ var AddSelect = function AddSelect(props) {
|
|
|
4580
4549
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
4581
4550
|
var result;
|
|
4582
4551
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
4583
|
-
while (1)
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4552
|
+
while (1) {
|
|
4553
|
+
switch (_context.prev = _context.next) {
|
|
4554
|
+
case 0:
|
|
4555
|
+
if (!(bType == 'skc' && tList.some(function (i) {
|
|
4556
|
+
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
4557
|
+
}))) {
|
|
4558
|
+
_context.next = 3;
|
|
4559
|
+
break;
|
|
4560
|
+
}
|
|
4561
|
+
antd.message.warning('相同skc配码不可设置相同哦');
|
|
4562
|
+
return _context.abrupt("return", false);
|
|
4563
|
+
case 3:
|
|
4564
|
+
if (!(bType == 'spu')) {
|
|
4565
|
+
_context.next = 26;
|
|
4566
|
+
break;
|
|
4567
|
+
}
|
|
4568
|
+
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
4569
|
+
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
4570
|
+
}))) {
|
|
4571
|
+
_context.next = 7;
|
|
4572
|
+
break;
|
|
4573
|
+
}
|
|
4574
|
+
antd.message.warning('相同商品相同配码颜色不可设置相同哦');
|
|
4575
|
+
return _context.abrupt("return", false);
|
|
4576
|
+
case 7:
|
|
4577
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
4578
|
+
_context.next = 10;
|
|
4579
|
+
break;
|
|
4580
|
+
}
|
|
4581
|
+
antd.message.warning('请先选择颜色!');
|
|
4582
|
+
return _context.abrupt("return", false);
|
|
4583
|
+
case 10:
|
|
4584
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
4585
|
+
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
4586
|
+
}))) {
|
|
4587
|
+
_context.next = 13;
|
|
4588
|
+
break;
|
|
4589
|
+
}
|
|
4590
|
+
antd.message.warning('相同商品相同颜色配码不可设置相同哦');
|
|
4591
|
+
return _context.abrupt("return", false);
|
|
4592
|
+
case 13:
|
|
4593
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
4594
|
+
_context.next = 26;
|
|
4595
|
+
break;
|
|
4596
|
+
}
|
|
4597
|
+
result = true;
|
|
4598
|
+
_context.prev = 15;
|
|
4599
|
+
_context.next = 18;
|
|
4600
|
+
return checkSpuMatchCode({
|
|
4601
|
+
skcCode: recordItem[recordKey],
|
|
4602
|
+
matchingCode: changeValue,
|
|
4603
|
+
ext1: recordItem.colorName
|
|
4604
|
+
});
|
|
4605
|
+
case 18:
|
|
4606
|
+
result = _context.sent;
|
|
4607
|
+
result = true;
|
|
4608
|
+
_context.next = 25;
|
|
4625
4609
|
break;
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
_context.next = 25;
|
|
4639
|
-
break;
|
|
4640
|
-
case 22:
|
|
4641
|
-
_context.prev = 22;
|
|
4642
|
-
_context.t0 = _context["catch"](15);
|
|
4643
|
-
result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
|
|
4644
|
-
case 25:
|
|
4645
|
-
return _context.abrupt("return", result);
|
|
4646
|
-
case 26:
|
|
4647
|
-
return _context.abrupt("return", true);
|
|
4648
|
-
case 27:
|
|
4649
|
-
case "end":
|
|
4650
|
-
return _context.stop();
|
|
4610
|
+
case 22:
|
|
4611
|
+
_context.prev = 22;
|
|
4612
|
+
_context.t0 = _context["catch"](15);
|
|
4613
|
+
result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
|
|
4614
|
+
case 25:
|
|
4615
|
+
return _context.abrupt("return", result);
|
|
4616
|
+
case 26:
|
|
4617
|
+
return _context.abrupt("return", true);
|
|
4618
|
+
case 27:
|
|
4619
|
+
case "end":
|
|
4620
|
+
return _context.stop();
|
|
4621
|
+
}
|
|
4651
4622
|
}
|
|
4652
4623
|
}, _callee, null, [[15, 22]]);
|
|
4653
4624
|
}));
|
|
@@ -4839,27 +4810,29 @@ var AddSelect = function AddSelect(props) {
|
|
|
4839
4810
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
4840
4811
|
var isConformToTheRules, newPopValue;
|
|
4841
4812
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
4842
|
-
while (1)
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
newPopValue = popvalue.map(function (i, innerIndex) {
|
|
4854
|
-
if (innerIndex == index) {
|
|
4855
|
-
i[item.dataIndex] = record[item.dataIndex];
|
|
4813
|
+
while (1) {
|
|
4814
|
+
switch (_context2.prev = _context2.next) {
|
|
4815
|
+
case 0:
|
|
4816
|
+
_context2.next = 2;
|
|
4817
|
+
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
4818
|
+
case 2:
|
|
4819
|
+
isConformToTheRules = _context2.sent;
|
|
4820
|
+
if (isConformToTheRules) {
|
|
4821
|
+
record[item.dataIndex] = value;
|
|
4822
|
+
} else {
|
|
4823
|
+
record[item.dataIndex] = null;
|
|
4856
4824
|
}
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4825
|
+
newPopValue = popvalue.map(function (i, innerIndex) {
|
|
4826
|
+
if (innerIndex == index) {
|
|
4827
|
+
i[item.dataIndex] = record[item.dataIndex];
|
|
4828
|
+
}
|
|
4829
|
+
return i;
|
|
4830
|
+
});
|
|
4831
|
+
setPopValue(newPopValue);
|
|
4832
|
+
case 6:
|
|
4833
|
+
case "end":
|
|
4834
|
+
return _context2.stop();
|
|
4835
|
+
}
|
|
4863
4836
|
}
|
|
4864
4837
|
}, _callee2);
|
|
4865
4838
|
}));
|
|
@@ -4919,95 +4892,94 @@ var AddSelect = function AddSelect(props) {
|
|
|
4919
4892
|
});
|
|
4920
4893
|
}
|
|
4921
4894
|
// 数组对象处理,对带有特殊标记的name进行处理
|
|
4922
|
-
var
|
|
4895
|
+
for (var key in params) {
|
|
4923
4896
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4897
|
+
(function () {
|
|
4898
|
+
var element = params[key];
|
|
4899
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
4900
|
+
var dataParams = key.split('*number*');
|
|
4901
|
+
dataParams.forEach(function (value, index) {
|
|
4902
|
+
params[value] = element[index];
|
|
4903
|
+
});
|
|
4904
|
+
delete params[key];
|
|
4905
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
4906
|
+
var _dataParams = key.split('*address*');
|
|
4907
|
+
_dataParams.forEach(function (value, index) {
|
|
4908
|
+
params[value] = element.PCDCode[index];
|
|
4909
|
+
});
|
|
4910
|
+
delete params[key];
|
|
4911
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
4912
|
+
var _dataParams2 = key.split('*costType*');
|
|
4913
|
+
// eslint-disable-next-line prefer-destructuring
|
|
4914
|
+
params[_dataParams2[0]] = element[1];
|
|
4915
|
+
delete params[key];
|
|
4916
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
4917
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
4918
|
+
_dataParams3.forEach(function (value, index) {
|
|
4919
|
+
if (index === 0) {
|
|
4920
|
+
params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
4921
|
+
} else {
|
|
4922
|
+
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
4923
|
+
}
|
|
4924
|
+
});
|
|
4925
|
+
delete params[key];
|
|
4926
|
+
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
4927
|
+
var _dataParams4 = key.split('*checkBox*');
|
|
4928
|
+
if (element) {
|
|
4929
|
+
params[_dataParams4[0]] = 0;
|
|
4949
4930
|
}
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4931
|
+
delete params[key];
|
|
4932
|
+
} else if (element && key.indexOf('*cascader*') >= 0) {
|
|
4933
|
+
var _dataParams5 = key.split('*cascader*');
|
|
4934
|
+
params[_dataParams5[0]] = element[element.length - 1];
|
|
4935
|
+
delete params[key];
|
|
4936
|
+
} else if (element && key.indexOf('*date*') >= 0) {
|
|
4937
|
+
var _dataParams6 = key.split('*date*');
|
|
4938
|
+
_dataParams6.forEach(function (value, index) {
|
|
4939
|
+
if (index === 0) {
|
|
4940
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
4941
|
+
} else {
|
|
4942
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
4943
|
+
}
|
|
4944
|
+
});
|
|
4945
|
+
delete params[key];
|
|
4946
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
4947
|
+
var _dataParams7 = key.split('*');
|
|
4948
|
+
_dataParams7.forEach(function (value, index) {
|
|
4949
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
4950
|
+
});
|
|
4951
|
+
delete params[key];
|
|
4952
|
+
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
4953
|
+
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
4954
|
+
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
4955
|
+
if (params[key][0] === 'range') {
|
|
4956
|
+
if (params[key][1][0]) {
|
|
4957
|
+
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
4958
|
+
}
|
|
4959
|
+
if (params[key][1][1]) {
|
|
4960
|
+
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
4961
|
+
}
|
|
4967
4962
|
} else {
|
|
4968
|
-
params[
|
|
4963
|
+
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
4969
4964
|
}
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
4976
|
-
});
|
|
4977
|
-
delete params[key];
|
|
4978
|
-
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
4979
|
-
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
4980
|
-
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
4981
|
-
if (params[key][0] === 'range') {
|
|
4982
|
-
if (params[key][1][0]) {
|
|
4983
|
-
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
4984
|
-
}
|
|
4985
|
-
if (params[key][1][1]) {
|
|
4986
|
-
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
4987
|
-
}
|
|
4988
|
-
} else {
|
|
4989
|
-
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
4965
|
+
delete params[key];
|
|
4966
|
+
} else if (Array.isArray(element)) {
|
|
4967
|
+
params[key] = element.join(',');
|
|
4968
|
+
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
4969
|
+
delete params[key];
|
|
4990
4970
|
}
|
|
4991
|
-
|
|
4992
|
-
} else if (Array.isArray(element)) {
|
|
4993
|
-
params[key] = element.join(',');
|
|
4994
|
-
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
4995
|
-
delete params[key];
|
|
4996
|
-
}
|
|
4971
|
+
})();
|
|
4997
4972
|
}
|
|
4998
|
-
};
|
|
4999
|
-
for (var key in params) {
|
|
5000
|
-
_loop();
|
|
5001
4973
|
}
|
|
5002
4974
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
5003
4975
|
pageSize: pageSize,
|
|
5004
4976
|
currentPage: currentPage
|
|
5005
4977
|
}, otherParams), fixedParam), params);
|
|
5006
4978
|
axios__default['default'].get("".concat(url, "?").concat(querystring.stringify(queryParams))).then(function (result) {
|
|
5007
|
-
var
|
|
4979
|
+
var _result5, _result6;
|
|
5008
4980
|
setFetching(false);
|
|
5009
4981
|
result = result.data;
|
|
5010
|
-
if (((
|
|
4982
|
+
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') {
|
|
5011
4983
|
antd.message.error(result.msg);
|
|
5012
4984
|
return;
|
|
5013
4985
|
}
|
|
@@ -5088,14 +5060,65 @@ var AddSelect = function AddSelect(props) {
|
|
|
5088
5060
|
};
|
|
5089
5061
|
|
|
5090
5062
|
React.useEffect(function () {
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
|
|
5063
|
+
if (businessType == 'sku') {
|
|
5064
|
+
Promise.all([loadSelectSource("/items/brand/queryBrandList", {
|
|
5065
|
+
pageSize: 5000,
|
|
5066
|
+
currentPage: 1,
|
|
5067
|
+
'ctl-withAuth': true
|
|
5068
|
+
}), loadSelectSource("/items/category/queryCategoryTree", {
|
|
5069
|
+
pageSize: 5000,
|
|
5070
|
+
currentPage: 1
|
|
5071
|
+
})]).then(function (x) {
|
|
5072
|
+
var searchPosition1 = noUseItemEancode ? 3 : 2;
|
|
5073
|
+
var searchPosition2 = noUseItemEancode ? 4 : 3;
|
|
5074
|
+
formatSource(x, 0, searchPosition1, tableSearchForm, ['id', 'name']);
|
|
5075
|
+
formatTreeDataSource(x, 1, searchPosition2, tableSearchForm);
|
|
5076
|
+
});
|
|
5077
|
+
}
|
|
5078
|
+
if (businessType == 'skc') {
|
|
5079
|
+
Promise.all([loadSelectSource("/items/item/propertyValue/sizeBySkcConfig", {
|
|
5080
|
+
pageSize: 10000,
|
|
5081
|
+
currentPage: 1,
|
|
5082
|
+
type: 2 // 类型:1尺码;2颜色
|
|
5083
|
+
}), loadSelectSource("/items/category/queryCategoryTree", {
|
|
5084
|
+
pageSize: 5000,
|
|
5085
|
+
currentPage: 1
|
|
5086
|
+
}), loadSelectSource("/items/class/withProperty", {
|
|
5087
|
+
pageSize: 5000,
|
|
5088
|
+
currentPage: 1
|
|
5089
|
+
}), loadSelectSource("/items/brand/queryBrandList", {
|
|
5090
|
+
pageSize: 5000,
|
|
5091
|
+
currentPage: 1,
|
|
5092
|
+
'ctl-withAuth': true
|
|
5093
|
+
})]).then(function (x) {
|
|
5094
|
+
formatSource(x, 0, 3, tableSearchForm, ['value', 'value']);
|
|
5095
|
+
formatTreeDataSource(x, 1, 4, tableSearchForm);
|
|
5096
|
+
formatSource(x, 2, 5, tableSearchForm, ['id', 'name']);
|
|
5097
|
+
formatSource(x, 3, 6, tableSearchForm, ['id', 'name']);
|
|
5098
|
+
});
|
|
5099
|
+
}
|
|
5100
|
+
if (businessType == 'spu') {
|
|
5101
|
+
Promise.all([loadSelectSource("/user/orgViewNode/listNoPage", {
|
|
5102
|
+
'qp-employeeId-eq': getEmployeeId(),
|
|
5103
|
+
'qp-orgViewCode-eq': 'business-organizational-view',
|
|
5104
|
+
'ctl-withDefaultOrg': true
|
|
5105
|
+
}), loadSelectSource("/items/brand/queryBrandList", {
|
|
5106
|
+
pageSize: 5000,
|
|
5107
|
+
currentPage: 1,
|
|
5108
|
+
'ctl-withAuth': true
|
|
5109
|
+
}), loadSelectSource("/items/category/queryCategoryTree", {
|
|
5110
|
+
pageSize: 5000,
|
|
5111
|
+
currentPage: 1
|
|
5112
|
+
}), loadSelectSource("/items/class/withProperty", {
|
|
5113
|
+
pageSize: 5000,
|
|
5114
|
+
currentPage: 1
|
|
5115
|
+
})]).then(function (x) {
|
|
5116
|
+
formatSource(x, 0, 2, tableSearchForm, ['targetId', 'name']);
|
|
5117
|
+
formatSource(x, 1, 3, tableSearchForm, ['id', 'name']);
|
|
5118
|
+
formatTreeDataSource(x, 2, 4, tableSearchForm);
|
|
5119
|
+
formatSource(x, 3, 5, tableSearchForm, ['id', 'name']);
|
|
5120
|
+
});
|
|
5121
|
+
}
|
|
5099
5122
|
}, [businessType]);
|
|
5100
5123
|
React.useEffect(function () {
|
|
5101
5124
|
if (value) {
|
|
@@ -5376,10 +5399,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
5376
5399
|
setSelectedRowKeys([]);
|
|
5377
5400
|
} else {
|
|
5378
5401
|
setPopValue(popvalue.filter(function (item) {
|
|
5379
|
-
return item
|
|
5402
|
+
return item.skuCode !== record.skuCode;
|
|
5380
5403
|
}));
|
|
5381
5404
|
setSelectedRowKeys(_toConsumableArray(selectedRowKeys.filter(function (item) {
|
|
5382
|
-
return item !== record
|
|
5405
|
+
return item !== record.skuCode;
|
|
5383
5406
|
})));
|
|
5384
5407
|
}
|
|
5385
5408
|
};
|
|
@@ -6403,70 +6426,72 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
6403
6426
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
6404
6427
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
6405
6428
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
6406
|
-
while (1)
|
|
6407
|
-
|
|
6408
|
-
|
|
6409
|
-
|
|
6410
|
-
|
|
6411
|
-
|
|
6412
|
-
antd.message.warning('至少录入一条数据');
|
|
6413
|
-
return _context.abrupt("return");
|
|
6414
|
-
case 3:
|
|
6415
|
-
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
6416
|
-
return d.skuCode && d.name;
|
|
6417
|
-
})) {
|
|
6418
|
-
_context.next = 6;
|
|
6419
|
-
break;
|
|
6420
|
-
}
|
|
6421
|
-
antd.message.warning('请选择商品!');
|
|
6422
|
-
return _context.abrupt("return");
|
|
6423
|
-
case 6:
|
|
6424
|
-
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
6425
|
-
return d.count;
|
|
6426
|
-
})) {
|
|
6427
|
-
_context.next = 9;
|
|
6428
|
-
break;
|
|
6429
|
-
}
|
|
6430
|
-
antd.message.warning('请填写商品数量!');
|
|
6431
|
-
return _context.abrupt("return");
|
|
6432
|
-
case 9:
|
|
6433
|
-
_context.next = 11;
|
|
6434
|
-
return isSkuCanEntry(data);
|
|
6435
|
-
case 11:
|
|
6436
|
-
canEntryObject = _context.sent;
|
|
6437
|
-
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
6438
|
-
_context.next = 16;
|
|
6439
|
-
break;
|
|
6440
|
-
}
|
|
6441
|
-
messageInfo = (canEntryObject === null || canEntryObject === void 0 ? void 0 : (_canEntryObject$error = canEntryObject.errorList) === null || _canEntryObject$error === void 0 ? void 0 : _canEntryObject$error.length) && (canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.errorList.map(function (i) {
|
|
6442
|
-
return /*#__PURE__*/React__default['default'].createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
|
|
6443
|
-
}));
|
|
6444
|
-
messageInfo && antd.message.warning({
|
|
6445
|
-
content: messageInfo,
|
|
6446
|
-
duration: 6
|
|
6447
|
-
});
|
|
6448
|
-
return _context.abrupt("return");
|
|
6449
|
-
case 16:
|
|
6450
|
-
setLoading(true);
|
|
6451
|
-
onSaveCallback(data).then(function (res) {
|
|
6452
|
-
{
|
|
6453
|
-
var _Object$keys;
|
|
6454
|
-
var initSuccessMessage = '保存成功';
|
|
6455
|
-
var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
|
|
6456
|
-
if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
|
|
6457
|
-
(rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? antd.message.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
|
|
6458
|
-
} else {
|
|
6459
|
-
antd.message.success(initSuccessMessage);
|
|
6460
|
-
}
|
|
6429
|
+
while (1) {
|
|
6430
|
+
switch (_context.prev = _context.next) {
|
|
6431
|
+
case 0:
|
|
6432
|
+
if (data === null || data === void 0 ? void 0 : data.length) {
|
|
6433
|
+
_context.next = 3;
|
|
6434
|
+
break;
|
|
6461
6435
|
}
|
|
6462
|
-
|
|
6463
|
-
|
|
6464
|
-
|
|
6465
|
-
|
|
6466
|
-
|
|
6467
|
-
|
|
6468
|
-
|
|
6469
|
-
|
|
6436
|
+
antd.message.warning('至少录入一条数据');
|
|
6437
|
+
return _context.abrupt("return");
|
|
6438
|
+
case 3:
|
|
6439
|
+
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
6440
|
+
return d.skuCode && d.name;
|
|
6441
|
+
})) {
|
|
6442
|
+
_context.next = 6;
|
|
6443
|
+
break;
|
|
6444
|
+
}
|
|
6445
|
+
antd.message.warning('请选择商品!');
|
|
6446
|
+
return _context.abrupt("return");
|
|
6447
|
+
case 6:
|
|
6448
|
+
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
6449
|
+
return d.count;
|
|
6450
|
+
})) {
|
|
6451
|
+
_context.next = 9;
|
|
6452
|
+
break;
|
|
6453
|
+
}
|
|
6454
|
+
antd.message.warning('请填写商品数量!');
|
|
6455
|
+
return _context.abrupt("return");
|
|
6456
|
+
case 9:
|
|
6457
|
+
_context.next = 11;
|
|
6458
|
+
return isSkuCanEntry(data);
|
|
6459
|
+
case 11:
|
|
6460
|
+
canEntryObject = _context.sent;
|
|
6461
|
+
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
6462
|
+
_context.next = 16;
|
|
6463
|
+
break;
|
|
6464
|
+
}
|
|
6465
|
+
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) {
|
|
6466
|
+
return /*#__PURE__*/React__default['default'].createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
|
|
6467
|
+
}));
|
|
6468
|
+
messageInfo && antd.message.warning({
|
|
6469
|
+
content: messageInfo,
|
|
6470
|
+
duration: 6
|
|
6471
|
+
});
|
|
6472
|
+
return _context.abrupt("return");
|
|
6473
|
+
case 16:
|
|
6474
|
+
setLoading(true);
|
|
6475
|
+
onSaveCallback(data).then(function (res) {
|
|
6476
|
+
{
|
|
6477
|
+
var _Object$keys;
|
|
6478
|
+
var initSuccessMessage = '保存成功';
|
|
6479
|
+
var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
|
|
6480
|
+
if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
|
|
6481
|
+
(rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? antd.message.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
|
|
6482
|
+
} else {
|
|
6483
|
+
antd.message.success(initSuccessMessage);
|
|
6484
|
+
}
|
|
6485
|
+
}
|
|
6486
|
+
setLoading(false);
|
|
6487
|
+
}).catch(function (Error) {
|
|
6488
|
+
antd.message.error(Error);
|
|
6489
|
+
setLoading(false);
|
|
6490
|
+
});
|
|
6491
|
+
case 18:
|
|
6492
|
+
case "end":
|
|
6493
|
+
return _context.stop();
|
|
6494
|
+
}
|
|
6470
6495
|
}
|
|
6471
6496
|
}, _callee);
|
|
6472
6497
|
}));
|
|
@@ -8710,16 +8735,9 @@ var BusinessSearchSelect$1 = /*#__PURE__*/React__default['default'].memo(Busines
|
|
|
8710
8735
|
// import { getCurrentTargetBgId } from '@/utils/LocalstorageUtils';
|
|
8711
8736
|
function handleSelectColumn(c, parentProps) {
|
|
8712
8737
|
var result = c;
|
|
8713
|
-
var showColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.showColumns) || [];
|
|
8714
8738
|
var exceptColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.exceptColumns) || [];
|
|
8715
8739
|
var coverColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.coverColumns) || [];
|
|
8716
8740
|
var additionColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.additionColumns) || [];
|
|
8717
|
-
// 仅展示内容
|
|
8718
|
-
if (showColumns === null || showColumns === void 0 ? void 0 : showColumns.length) {
|
|
8719
|
-
result = result.filter(function (i) {
|
|
8720
|
-
return showColumns.includes(i.dataIndex);
|
|
8721
|
-
});
|
|
8722
|
-
}
|
|
8723
8741
|
// 过滤不需要展示内容
|
|
8724
8742
|
if (exceptColumns === null || exceptColumns === void 0 ? void 0 : exceptColumns.length) {
|
|
8725
8743
|
result = result.filter(function (i) {
|
|
@@ -8738,57 +8756,6 @@ function handleSelectColumn(c, parentProps) {
|
|
|
8738
8756
|
}
|
|
8739
8757
|
return result;
|
|
8740
8758
|
}
|
|
8741
|
-
function handleSearchForm(c, parentProps) {
|
|
8742
|
-
var result = c;
|
|
8743
|
-
var showTableSearchForm = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.showTableSearchForm) || [];
|
|
8744
|
-
var exceptTableSearchForm = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.exceptTableSearchForm) || [];
|
|
8745
|
-
var coverTableSearchForm = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.coverTableSearchForm) || [];
|
|
8746
|
-
// 仅展示内容
|
|
8747
|
-
if (showTableSearchForm === null || showTableSearchForm === void 0 ? void 0 : showTableSearchForm.length) {
|
|
8748
|
-
result = result.filter(function (i) {
|
|
8749
|
-
return showTableSearchForm.includes(i.name);
|
|
8750
|
-
});
|
|
8751
|
-
}
|
|
8752
|
-
// 过滤不需要展示内容
|
|
8753
|
-
if (exceptTableSearchForm === null || exceptTableSearchForm === void 0 ? void 0 : exceptTableSearchForm.length) {
|
|
8754
|
-
result = result.filter(function (i) {
|
|
8755
|
-
return !exceptTableSearchForm.includes(i.name);
|
|
8756
|
-
});
|
|
8757
|
-
}
|
|
8758
|
-
// 覆盖内容
|
|
8759
|
-
if (coverTableSearchForm === null || coverTableSearchForm === void 0 ? void 0 : coverTableSearchForm.length) {
|
|
8760
|
-
result = coverTableSearchForm;
|
|
8761
|
-
}
|
|
8762
|
-
return result;
|
|
8763
|
-
}
|
|
8764
|
-
function handleFormSearchSourceLoad(c, parentProps) {
|
|
8765
|
-
var result = c;
|
|
8766
|
-
var showTableFormSearchSourceLoad = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.showTableFormSearchSourceLoad) || [];
|
|
8767
|
-
var exceptTableFormSearchSourceLoad = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.exceptTableFormSearchSourceLoad) || [];
|
|
8768
|
-
var coverTableFormSearchSourceLoad = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.coverTableFormSearchSourceLoad) || [];
|
|
8769
|
-
var noNeedTableFormSearchSourceLoad = parentProps === null || parentProps === void 0 ? void 0 : parentProps.noNeedTableFormSearchSourceLoad;
|
|
8770
|
-
// 仅展示内容
|
|
8771
|
-
if (showTableFormSearchSourceLoad === null || showTableFormSearchSourceLoad === void 0 ? void 0 : showTableFormSearchSourceLoad.length) {
|
|
8772
|
-
result = result.filter(function (i) {
|
|
8773
|
-
return showTableFormSearchSourceLoad.includes(i.url);
|
|
8774
|
-
});
|
|
8775
|
-
}
|
|
8776
|
-
// 过滤不需要展示内容
|
|
8777
|
-
if (exceptTableFormSearchSourceLoad === null || exceptTableFormSearchSourceLoad === void 0 ? void 0 : exceptTableFormSearchSourceLoad.length) {
|
|
8778
|
-
result = result.filter(function (i) {
|
|
8779
|
-
return !exceptTableFormSearchSourceLoad.includes(i.url);
|
|
8780
|
-
});
|
|
8781
|
-
}
|
|
8782
|
-
// 覆盖内容
|
|
8783
|
-
if (coverTableFormSearchSourceLoad === null || coverTableFormSearchSourceLoad === void 0 ? void 0 : coverTableFormSearchSourceLoad.length) {
|
|
8784
|
-
result = coverTableFormSearchSourceLoad;
|
|
8785
|
-
}
|
|
8786
|
-
// 不需要默认请求
|
|
8787
|
-
if (noNeedTableFormSearchSourceLoad) {
|
|
8788
|
-
result = [];
|
|
8789
|
-
}
|
|
8790
|
-
return result;
|
|
8791
|
-
}
|
|
8792
8759
|
var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
8793
8760
|
var _parProps$requestConf, _parProps$requestConf2;
|
|
8794
8761
|
var selectProps = {
|
|
@@ -8895,258 +8862,234 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
8895
8862
|
dataIndex: 'propertyNameAndValue'
|
|
8896
8863
|
}]);
|
|
8897
8864
|
var mTpSelectColumn = handleSelectColumn(initialSelectColumn, parProps);
|
|
8898
|
-
var
|
|
8899
|
-
|
|
8900
|
-
|
|
8901
|
-
|
|
8902
|
-
|
|
8903
|
-
|
|
8904
|
-
|
|
8905
|
-
|
|
8906
|
-
|
|
8907
|
-
|
|
8908
|
-
|
|
8909
|
-
|
|
8910
|
-
|
|
8911
|
-
|
|
8912
|
-
|
|
8913
|
-
|
|
8914
|
-
|
|
8915
|
-
|
|
8916
|
-
|
|
8917
|
-
|
|
8918
|
-
|
|
8919
|
-
ellipsis: {
|
|
8920
|
-
showTitle: false
|
|
8921
|
-
},
|
|
8922
|
-
render: function render(text, record) {
|
|
8923
|
-
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
8924
|
-
placement: "topLeft",
|
|
8925
|
-
title: text
|
|
8926
|
-
}, tableColumnsImage(getSkuImg(record), {
|
|
8927
|
-
width: 20,
|
|
8928
|
-
height: 20
|
|
8929
|
-
}));
|
|
8930
|
-
}
|
|
8931
|
-
}].concat(_toConsumableArray(isNoUseItemBarcode ? [] : [{
|
|
8932
|
-
title: '商品条码',
|
|
8933
|
-
width: 100,
|
|
8934
|
-
ellipsis: {
|
|
8935
|
-
showTitle: false
|
|
8936
|
-
},
|
|
8937
|
-
dataIndex: 'itemEancode',
|
|
8938
|
-
render: function render(text) {
|
|
8939
|
-
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
8940
|
-
placement: "topLeft",
|
|
8941
|
-
title: text
|
|
8942
|
-
}, text);
|
|
8943
|
-
}
|
|
8944
|
-
}]), [{
|
|
8945
|
-
title: '所属SPU名称',
|
|
8946
|
-
width: 100,
|
|
8947
|
-
ellipsis: {
|
|
8948
|
-
showTitle: false
|
|
8949
|
-
},
|
|
8950
|
-
dataIndex: 'itemName',
|
|
8951
|
-
render: function render(text) {
|
|
8952
|
-
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
8953
|
-
placement: "topLeft",
|
|
8954
|
-
title: text
|
|
8955
|
-
}, text);
|
|
8956
|
-
}
|
|
8957
|
-
}, {
|
|
8958
|
-
title: '所属SPU编码',
|
|
8959
|
-
width: 100,
|
|
8960
|
-
ellipsis: {
|
|
8961
|
-
showTitle: false
|
|
8962
|
-
},
|
|
8963
|
-
dataIndex: 'itemCode',
|
|
8964
|
-
render: function render(text) {
|
|
8965
|
-
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
8966
|
-
placement: "topLeft",
|
|
8967
|
-
title: text
|
|
8968
|
-
}, text);
|
|
8969
|
-
}
|
|
8970
|
-
}, {
|
|
8971
|
-
title: '外部编码',
|
|
8972
|
-
width: 100,
|
|
8973
|
-
ellipsis: {
|
|
8974
|
-
showTitle: false
|
|
8975
|
-
},
|
|
8976
|
-
render: function render(text) {
|
|
8977
|
-
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
8978
|
-
placement: "topLeft",
|
|
8979
|
-
title: text
|
|
8980
|
-
}, text);
|
|
8981
|
-
},
|
|
8982
|
-
dataIndex: 'externalCode'
|
|
8983
|
-
}, {
|
|
8984
|
-
title: '规格',
|
|
8985
|
-
width: 100,
|
|
8986
|
-
ellipsis: {
|
|
8987
|
-
showTitle: false
|
|
8988
|
-
},
|
|
8989
|
-
render: function render(text) {
|
|
8990
|
-
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
8991
|
-
placement: "topLeft",
|
|
8992
|
-
title: text
|
|
8993
|
-
}, text);
|
|
8994
|
-
},
|
|
8995
|
-
dataIndex: 'propertyNameAndValue'
|
|
8996
|
-
}, {
|
|
8997
|
-
title: '类目',
|
|
8998
|
-
width: 100,
|
|
8999
|
-
ellipsis: {
|
|
9000
|
-
showTitle: false
|
|
9001
|
-
},
|
|
9002
|
-
render: function render(text) {
|
|
9003
|
-
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
9004
|
-
placement: "topLeft",
|
|
9005
|
-
title: text
|
|
9006
|
-
}, text);
|
|
9007
|
-
},
|
|
9008
|
-
dataIndex: 'categoryName'
|
|
9009
|
-
}, {
|
|
9010
|
-
title: '品类',
|
|
9011
|
-
width: 100,
|
|
9012
|
-
ellipsis: {
|
|
9013
|
-
showTitle: false
|
|
9014
|
-
},
|
|
9015
|
-
render: function render(text) {
|
|
9016
|
-
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
9017
|
-
placement: "topLeft",
|
|
9018
|
-
title: text
|
|
9019
|
-
}, text);
|
|
9020
|
-
},
|
|
9021
|
-
dataIndex: 'className'
|
|
9022
|
-
}, {
|
|
9023
|
-
title: '品牌',
|
|
9024
|
-
width: 100,
|
|
9025
|
-
ellipsis: {
|
|
9026
|
-
showTitle: false
|
|
9027
|
-
},
|
|
9028
|
-
render: function render(text) {
|
|
9029
|
-
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
9030
|
-
placement: "topLeft",
|
|
9031
|
-
title: text
|
|
9032
|
-
}, text);
|
|
8865
|
+
var props = {
|
|
8866
|
+
buttonText: parProps.buttonText || '新增',
|
|
8867
|
+
buttonProps: parProps.buttonProps || {},
|
|
8868
|
+
tableCodeList: parProps.tableCodeList || [],
|
|
8869
|
+
value: value,
|
|
8870
|
+
// labelInValue: true, // 非必填 默认为false
|
|
8871
|
+
requestConfig: _objectSpread2({
|
|
8872
|
+
url: "/items/sku/pager/v2",
|
|
8873
|
+
filter: 'qp-name-like',
|
|
8874
|
+
otherParams: _objectSpread2({
|
|
8875
|
+
'qp-combination-eq': false,
|
|
8876
|
+
'qp-approveStatus-eq': 1,
|
|
8877
|
+
'qp-status-eq': 1
|
|
8878
|
+
}, (parProps === null || parProps === void 0 ? void 0 : (_parProps$requestConf = parProps.requestConfig) === null || _parProps$requestConf === void 0 ? void 0 : _parProps$requestConf.addOtherParams) || {}),
|
|
8879
|
+
mappingTextField: 'name',
|
|
8880
|
+
mappingValueField: 'skuCode'
|
|
8881
|
+
}, parProps.requestConfig),
|
|
8882
|
+
selectProps: selectProps,
|
|
8883
|
+
onChange: function onChange(value) {
|
|
8884
|
+
console.log(value);
|
|
8885
|
+
setValue(value);
|
|
9033
8886
|
},
|
|
9034
|
-
|
|
9035
|
-
|
|
9036
|
-
|
|
9037
|
-
|
|
9038
|
-
|
|
9039
|
-
|
|
9040
|
-
|
|
9041
|
-
|
|
9042
|
-
|
|
9043
|
-
|
|
9044
|
-
|
|
9045
|
-
|
|
9046
|
-
|
|
9047
|
-
|
|
9048
|
-
|
|
9049
|
-
|
|
9050
|
-
|
|
9051
|
-
|
|
9052
|
-
|
|
9053
|
-
|
|
9054
|
-
|
|
8887
|
+
beforeShowModal: parProps === null || parProps === void 0 ? void 0 : parProps.beforeShowModal,
|
|
8888
|
+
onSaveCallback: parProps.onSaveCallback,
|
|
8889
|
+
businessType: 'sku',
|
|
8890
|
+
isAllowRepeatedSelect: !!(parProps === null || parProps === void 0 ? void 0 : parProps.isAllowRepeatedSelect),
|
|
8891
|
+
noUseItemEancode: isNoUseItemBarcode
|
|
8892
|
+
};
|
|
8893
|
+
var modalTableProps = {
|
|
8894
|
+
modalTableTitle: '选择商品',
|
|
8895
|
+
tableSearchForm: [{
|
|
8896
|
+
name: 'qp-skuCode-like',
|
|
8897
|
+
label: 'SKU编码'
|
|
8898
|
+
}, {
|
|
8899
|
+
name: 'qp-skuName-like',
|
|
8900
|
+
label: 'SKU名称'
|
|
8901
|
+
}].concat(_toConsumableArray(isNoUseItemBarcode ? [] : [{
|
|
8902
|
+
name: 'qp-code-in',
|
|
8903
|
+
label: '商品条码',
|
|
8904
|
+
field: {
|
|
8905
|
+
type: 'multipleQueryInput',
|
|
8906
|
+
props: _objectSpread2({}, ((_parProps$requestConf2 = parProps.requestConfig) === null || _parProps$requestConf2 === void 0 ? void 0 : _parProps$requestConf2.itemEancodeValueRequestConfig) || {})
|
|
8907
|
+
}
|
|
8908
|
+
}]), [{
|
|
8909
|
+
name: 'qp-brandId-in',
|
|
9055
8910
|
type: 'select',
|
|
9056
|
-
|
|
9057
|
-
|
|
9058
|
-
|
|
9059
|
-
|
|
9060
|
-
|
|
9061
|
-
|
|
9062
|
-
|
|
9063
|
-
|
|
9064
|
-
|
|
9065
|
-
|
|
8911
|
+
label: '品牌',
|
|
8912
|
+
field: {
|
|
8913
|
+
type: 'select',
|
|
8914
|
+
props: {
|
|
8915
|
+
mode: 'multiple',
|
|
8916
|
+
notFoundContent: '暂无数据',
|
|
8917
|
+
allowClear: true,
|
|
8918
|
+
showSearch: true,
|
|
8919
|
+
showArrow: true,
|
|
8920
|
+
maxTagCount: 1,
|
|
8921
|
+
optionFilterProp: 'children',
|
|
8922
|
+
filterOption: function filterOption(input, option) {
|
|
8923
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
8924
|
+
}
|
|
8925
|
+
}
|
|
8926
|
+
}
|
|
8927
|
+
}, {
|
|
8928
|
+
name: 'qp-categoryId-in',
|
|
8929
|
+
type: 'treeSelect',
|
|
8930
|
+
label: '类目',
|
|
8931
|
+
field: {
|
|
8932
|
+
type: 'treeSelect',
|
|
8933
|
+
props: {
|
|
8934
|
+
treeData: [],
|
|
8935
|
+
treeCheckable: true,
|
|
8936
|
+
showSearch: true,
|
|
8937
|
+
allowClear: true,
|
|
8938
|
+
showArrow: true,
|
|
8939
|
+
treeNodeFilterProp: 'title',
|
|
8940
|
+
treeDefaultExpandAll: true,
|
|
8941
|
+
maxTagCount: 1,
|
|
8942
|
+
placeholder: '请选择',
|
|
8943
|
+
style: {
|
|
8944
|
+
width: '100%'
|
|
8945
|
+
},
|
|
8946
|
+
dropdownStyle: {
|
|
8947
|
+
maxHeight: 400,
|
|
8948
|
+
maxWidth: 100,
|
|
8949
|
+
overflow: 'auto'
|
|
8950
|
+
}
|
|
9066
8951
|
}
|
|
9067
8952
|
}
|
|
9068
|
-
}
|
|
9069
|
-
|
|
9070
|
-
|
|
9071
|
-
|
|
9072
|
-
|
|
9073
|
-
|
|
9074
|
-
|
|
9075
|
-
|
|
9076
|
-
|
|
9077
|
-
|
|
9078
|
-
|
|
9079
|
-
|
|
9080
|
-
|
|
9081
|
-
|
|
9082
|
-
|
|
9083
|
-
|
|
9084
|
-
|
|
9085
|
-
|
|
9086
|
-
|
|
9087
|
-
|
|
9088
|
-
|
|
9089
|
-
|
|
9090
|
-
|
|
9091
|
-
|
|
9092
|
-
|
|
8953
|
+
}]),
|
|
8954
|
+
tableColumns: [{
|
|
8955
|
+
title: 'SKU编码',
|
|
8956
|
+
width: 150,
|
|
8957
|
+
dataIndex: 'skuCode'
|
|
8958
|
+
}, {
|
|
8959
|
+
title: 'SKU名称',
|
|
8960
|
+
width: 200,
|
|
8961
|
+
ellipsis: {
|
|
8962
|
+
showTitle: false
|
|
8963
|
+
},
|
|
8964
|
+
render: function render(text) {
|
|
8965
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
8966
|
+
placement: "topLeft",
|
|
8967
|
+
title: text
|
|
8968
|
+
}, text);
|
|
8969
|
+
},
|
|
8970
|
+
dataIndex: 'name'
|
|
8971
|
+
}, {
|
|
8972
|
+
title: '图片',
|
|
8973
|
+
dataIndex: 'itemUrl',
|
|
8974
|
+
width: 200,
|
|
8975
|
+
ellipsis: {
|
|
8976
|
+
showTitle: false
|
|
8977
|
+
},
|
|
8978
|
+
render: function render(text, record) {
|
|
8979
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
8980
|
+
placement: "topLeft",
|
|
8981
|
+
title: text
|
|
8982
|
+
}, tableColumnsImage(getSkuImg(record), {
|
|
8983
|
+
width: 20,
|
|
8984
|
+
height: 20
|
|
8985
|
+
}));
|
|
9093
8986
|
}
|
|
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
|
-
|
|
9131
|
-
|
|
9132
|
-
|
|
9133
|
-
},
|
|
9134
|
-
|
|
9135
|
-
|
|
9136
|
-
|
|
9137
|
-
|
|
9138
|
-
|
|
9139
|
-
|
|
9140
|
-
|
|
9141
|
-
|
|
9142
|
-
|
|
9143
|
-
|
|
9144
|
-
|
|
9145
|
-
|
|
9146
|
-
|
|
9147
|
-
|
|
9148
|
-
|
|
9149
|
-
|
|
8987
|
+
}].concat(_toConsumableArray(isNoUseItemBarcode ? [] : [{
|
|
8988
|
+
title: '商品条码',
|
|
8989
|
+
width: 100,
|
|
8990
|
+
ellipsis: {
|
|
8991
|
+
showTitle: false
|
|
8992
|
+
},
|
|
8993
|
+
dataIndex: 'itemEancode',
|
|
8994
|
+
render: function render(text) {
|
|
8995
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
8996
|
+
placement: "topLeft",
|
|
8997
|
+
title: text
|
|
8998
|
+
}, text);
|
|
8999
|
+
}
|
|
9000
|
+
}]), [{
|
|
9001
|
+
title: '所属SPU名称',
|
|
9002
|
+
width: 100,
|
|
9003
|
+
ellipsis: {
|
|
9004
|
+
showTitle: false
|
|
9005
|
+
},
|
|
9006
|
+
dataIndex: 'itemName',
|
|
9007
|
+
render: function render(text) {
|
|
9008
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
9009
|
+
placement: "topLeft",
|
|
9010
|
+
title: text
|
|
9011
|
+
}, text);
|
|
9012
|
+
}
|
|
9013
|
+
}, {
|
|
9014
|
+
title: '所属SPU编码',
|
|
9015
|
+
width: 100,
|
|
9016
|
+
ellipsis: {
|
|
9017
|
+
showTitle: false
|
|
9018
|
+
},
|
|
9019
|
+
dataIndex: 'itemCode',
|
|
9020
|
+
render: function render(text) {
|
|
9021
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
9022
|
+
placement: "topLeft",
|
|
9023
|
+
title: text
|
|
9024
|
+
}, text);
|
|
9025
|
+
}
|
|
9026
|
+
}, {
|
|
9027
|
+
title: '外部编码',
|
|
9028
|
+
width: 100,
|
|
9029
|
+
ellipsis: {
|
|
9030
|
+
showTitle: false
|
|
9031
|
+
},
|
|
9032
|
+
render: function render(text) {
|
|
9033
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
9034
|
+
placement: "topLeft",
|
|
9035
|
+
title: text
|
|
9036
|
+
}, text);
|
|
9037
|
+
},
|
|
9038
|
+
dataIndex: 'externalCode'
|
|
9039
|
+
}, {
|
|
9040
|
+
title: '规格',
|
|
9041
|
+
width: 100,
|
|
9042
|
+
ellipsis: {
|
|
9043
|
+
showTitle: false
|
|
9044
|
+
},
|
|
9045
|
+
render: function render(text) {
|
|
9046
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
9047
|
+
placement: "topLeft",
|
|
9048
|
+
title: text
|
|
9049
|
+
}, text);
|
|
9050
|
+
},
|
|
9051
|
+
dataIndex: 'propertyNameAndValue'
|
|
9052
|
+
}, {
|
|
9053
|
+
title: '类目',
|
|
9054
|
+
width: 100,
|
|
9055
|
+
ellipsis: {
|
|
9056
|
+
showTitle: false
|
|
9057
|
+
},
|
|
9058
|
+
render: function render(text) {
|
|
9059
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
9060
|
+
placement: "topLeft",
|
|
9061
|
+
title: text
|
|
9062
|
+
}, text);
|
|
9063
|
+
},
|
|
9064
|
+
dataIndex: 'categoryName'
|
|
9065
|
+
}, {
|
|
9066
|
+
title: '品类',
|
|
9067
|
+
width: 100,
|
|
9068
|
+
ellipsis: {
|
|
9069
|
+
showTitle: false
|
|
9070
|
+
},
|
|
9071
|
+
render: function render(text) {
|
|
9072
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
9073
|
+
placement: "topLeft",
|
|
9074
|
+
title: text
|
|
9075
|
+
}, text);
|
|
9076
|
+
},
|
|
9077
|
+
dataIndex: 'className'
|
|
9078
|
+
}, {
|
|
9079
|
+
title: '品牌',
|
|
9080
|
+
width: 100,
|
|
9081
|
+
ellipsis: {
|
|
9082
|
+
showTitle: false
|
|
9083
|
+
},
|
|
9084
|
+
render: function render(text) {
|
|
9085
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
9086
|
+
placement: "topLeft",
|
|
9087
|
+
title: text
|
|
9088
|
+
}, text);
|
|
9089
|
+
},
|
|
9090
|
+
dataIndex: 'brandName'
|
|
9091
|
+
}]),
|
|
9092
|
+
selectColumn: mTpSelectColumn
|
|
9150
9093
|
};
|
|
9151
9094
|
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(AddSelect, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
9152
9095
|
modalTableProps: modalTableProps
|
|
@@ -9222,45 +9165,6 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
|
|
|
9222
9165
|
dataIndex: 'count'
|
|
9223
9166
|
}];
|
|
9224
9167
|
var mTpSelectColumn = handleSelectColumn(initialSelectColumn, parProps);
|
|
9225
|
-
var initialPromiseLoadList = [{
|
|
9226
|
-
url: "/items/item/propertyValue/sizeBySkcConfig",
|
|
9227
|
-
params: {
|
|
9228
|
-
pageSize: 10000,
|
|
9229
|
-
currentPage: 1,
|
|
9230
|
-
type: 2 // 类型:1尺码;2颜色
|
|
9231
|
-
},
|
|
9232
|
-
|
|
9233
|
-
resType: 'list',
|
|
9234
|
-
resPosition: 3,
|
|
9235
|
-
resKeyValue: ['value', 'value']
|
|
9236
|
-
}, {
|
|
9237
|
-
url: "/items/category/queryCategoryTree",
|
|
9238
|
-
params: {
|
|
9239
|
-
pageSize: 5000,
|
|
9240
|
-
currentPage: 1
|
|
9241
|
-
},
|
|
9242
|
-
resType: 'treeList',
|
|
9243
|
-
resPosition: 4
|
|
9244
|
-
}, {
|
|
9245
|
-
url: "/items/class/withProperty",
|
|
9246
|
-
params: {
|
|
9247
|
-
pageSize: 5000,
|
|
9248
|
-
currentPage: 1
|
|
9249
|
-
},
|
|
9250
|
-
resType: 'list',
|
|
9251
|
-
resPosition: 5,
|
|
9252
|
-
resKeyValue: ['id', 'name']
|
|
9253
|
-
}, {
|
|
9254
|
-
url: "/items/brand/queryBrandList",
|
|
9255
|
-
params: {
|
|
9256
|
-
pageSize: 5000,
|
|
9257
|
-
currentPage: 1,
|
|
9258
|
-
'ctl-withAuth': true
|
|
9259
|
-
},
|
|
9260
|
-
resType: 'list',
|
|
9261
|
-
resPosition: 6,
|
|
9262
|
-
resKeyValue: ['id', 'name']
|
|
9263
|
-
}];
|
|
9264
9168
|
var props = {
|
|
9265
9169
|
buttonText: parProps.buttonText || '新增',
|
|
9266
9170
|
buttonProps: parProps.buttonProps || {},
|
|
@@ -9465,8 +9369,7 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
|
|
|
9465
9369
|
},
|
|
9466
9370
|
dataIndex: 'brandName'
|
|
9467
9371
|
}],
|
|
9468
|
-
selectColumn: mTpSelectColumn
|
|
9469
|
-
promiseLoadList: initialPromiseLoadList
|
|
9372
|
+
selectColumn: mTpSelectColumn
|
|
9470
9373
|
};
|
|
9471
9374
|
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(AddSelect, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
9472
9375
|
modalTableProps: modalTableProps
|
|
@@ -9551,44 +9454,6 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
9551
9454
|
dataIndex: 'className'
|
|
9552
9455
|
}];
|
|
9553
9456
|
var mTpSelectColumn = handleSelectColumn(initialSelectColumn, parProps);
|
|
9554
|
-
var initialPromiseLoadList = [{
|
|
9555
|
-
url: "/user/orgViewNode/listNoPage",
|
|
9556
|
-
params: {
|
|
9557
|
-
'qp-employeeId-eq': getEmployeeId(),
|
|
9558
|
-
'qp-orgViewCode-eq': 'business-organizational-view',
|
|
9559
|
-
'ctl-withDefaultOrg': true
|
|
9560
|
-
},
|
|
9561
|
-
resType: 'list',
|
|
9562
|
-
resPosition: 2,
|
|
9563
|
-
resKeyValue: ['targetId', 'name']
|
|
9564
|
-
}, {
|
|
9565
|
-
url: "/items/brand/queryBrandList",
|
|
9566
|
-
params: {
|
|
9567
|
-
pageSize: 5000,
|
|
9568
|
-
currentPage: 1,
|
|
9569
|
-
'ctl-withAuth': true
|
|
9570
|
-
},
|
|
9571
|
-
resType: 'list',
|
|
9572
|
-
resPosition: 3,
|
|
9573
|
-
resKeyValue: ['id', 'name']
|
|
9574
|
-
}, {
|
|
9575
|
-
url: "/items/category/queryCategoryTree",
|
|
9576
|
-
params: {
|
|
9577
|
-
pageSize: 5000,
|
|
9578
|
-
currentPage: 1
|
|
9579
|
-
},
|
|
9580
|
-
resType: 'treeList',
|
|
9581
|
-
resPosition: 4
|
|
9582
|
-
}, {
|
|
9583
|
-
url: "/items/class/withProperty",
|
|
9584
|
-
params: {
|
|
9585
|
-
pageSize: 5000,
|
|
9586
|
-
currentPage: 1
|
|
9587
|
-
},
|
|
9588
|
-
resType: 'list',
|
|
9589
|
-
resPosition: 5,
|
|
9590
|
-
resKeyValue: ['id', 'name']
|
|
9591
|
-
}];
|
|
9592
9457
|
var props = {
|
|
9593
9458
|
buttonText: parProps.buttonText || '新增',
|
|
9594
9459
|
buttonProps: parProps.buttonProps || {},
|
|
@@ -9778,8 +9643,7 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
9778
9643
|
},
|
|
9779
9644
|
dataIndex: 'className'
|
|
9780
9645
|
}],
|
|
9781
|
-
selectColumn: mTpSelectColumn
|
|
9782
|
-
promiseLoadList: initialPromiseLoadList
|
|
9646
|
+
selectColumn: mTpSelectColumn
|
|
9783
9647
|
};
|
|
9784
9648
|
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(AddSelect, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
9785
9649
|
modalTableProps: modalTableProps
|
|
@@ -9998,42 +9862,44 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
9998
9862
|
var _ctx$form;
|
|
9999
9863
|
var resData, coverData, data, dataList;
|
|
10000
9864
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10001
|
-
while (1)
|
|
10002
|
-
|
|
10003
|
-
|
|
10004
|
-
|
|
10005
|
-
|
|
9865
|
+
while (1) {
|
|
9866
|
+
switch (_context.prev = _context.next) {
|
|
9867
|
+
case 0:
|
|
9868
|
+
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
9869
|
+
if (!(resData.status === '0' || resData.code === '000000')) {
|
|
9870
|
+
_context.next = 13;
|
|
9871
|
+
break;
|
|
9872
|
+
}
|
|
9873
|
+
data = resData.data;
|
|
9874
|
+
if (!remoteSource.converter) {
|
|
9875
|
+
_context.next = 9;
|
|
9876
|
+
break;
|
|
9877
|
+
}
|
|
9878
|
+
_context.next = 6;
|
|
9879
|
+
return remoteSource.converter({
|
|
9880
|
+
data: [data]
|
|
9881
|
+
});
|
|
9882
|
+
case 6:
|
|
9883
|
+
coverData = _context.sent;
|
|
9884
|
+
_context.next = 11;
|
|
10006
9885
|
break;
|
|
10007
|
-
|
|
10008
|
-
|
|
10009
|
-
|
|
10010
|
-
|
|
9886
|
+
case 9:
|
|
9887
|
+
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
9888
|
+
coverData = dataList.length && dataList.map(function (ites) {
|
|
9889
|
+
return mapSearchTree(ites);
|
|
9890
|
+
}) || [];
|
|
9891
|
+
case 11:
|
|
9892
|
+
_context.next = 14;
|
|
10011
9893
|
break;
|
|
10012
|
-
|
|
10013
|
-
|
|
10014
|
-
|
|
10015
|
-
|
|
10016
|
-
|
|
10017
|
-
|
|
10018
|
-
|
|
10019
|
-
|
|
10020
|
-
|
|
10021
|
-
case 9:
|
|
10022
|
-
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
10023
|
-
coverData = dataList.length && dataList.map(function (ites) {
|
|
10024
|
-
return mapSearchTree(ites);
|
|
10025
|
-
}) || [];
|
|
10026
|
-
case 11:
|
|
10027
|
-
_context.next = 14;
|
|
10028
|
-
break;
|
|
10029
|
-
case 13:
|
|
10030
|
-
coverData = [];
|
|
10031
|
-
case 14:
|
|
10032
|
-
setTreeData(coverData);
|
|
10033
|
-
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
|
|
10034
|
-
case 16:
|
|
10035
|
-
case "end":
|
|
10036
|
-
return _context.stop();
|
|
9894
|
+
case 13:
|
|
9895
|
+
coverData = [];
|
|
9896
|
+
case 14:
|
|
9897
|
+
setTreeData(coverData);
|
|
9898
|
+
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
|
|
9899
|
+
case 16:
|
|
9900
|
+
case "end":
|
|
9901
|
+
return _context.stop();
|
|
9902
|
+
}
|
|
10037
9903
|
}
|
|
10038
9904
|
}, _callee);
|
|
10039
9905
|
}));
|
|
@@ -11852,7 +11718,10 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
11852
11718
|
};
|
|
11853
11719
|
return /*#__PURE__*/React__default['default'].createElement(antd.Anchor, {
|
|
11854
11720
|
key: "".concat(pathname, "_anchor"),
|
|
11855
|
-
offsetTop: window.top == window ? 78 : 0
|
|
11721
|
+
offsetTop: window.top == window ? 78 : 0,
|
|
11722
|
+
getContainer: function getContainer() {
|
|
11723
|
+
return window.document.body;
|
|
11724
|
+
}
|
|
11856
11725
|
}, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
11857
11726
|
className: 'detail_page_head'
|
|
11858
11727
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -14223,19 +14092,21 @@ function _outLogin() {
|
|
|
14223
14092
|
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
14224
14093
|
var res;
|
|
14225
14094
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
14226
|
-
while (1)
|
|
14227
|
-
|
|
14228
|
-
|
|
14229
|
-
|
|
14230
|
-
|
|
14231
|
-
|
|
14232
|
-
|
|
14233
|
-
|
|
14234
|
-
|
|
14235
|
-
|
|
14236
|
-
|
|
14237
|
-
|
|
14238
|
-
|
|
14095
|
+
while (1) {
|
|
14096
|
+
switch (_context.prev = _context.next) {
|
|
14097
|
+
case 0:
|
|
14098
|
+
_context.next = 2;
|
|
14099
|
+
return axios__default['default']({
|
|
14100
|
+
url: '/user/web/loginOut',
|
|
14101
|
+
method: 'GET'
|
|
14102
|
+
});
|
|
14103
|
+
case 2:
|
|
14104
|
+
res = _context.sent;
|
|
14105
|
+
return _context.abrupt("return", res);
|
|
14106
|
+
case 4:
|
|
14107
|
+
case "end":
|
|
14108
|
+
return _context.stop();
|
|
14109
|
+
}
|
|
14239
14110
|
}
|
|
14240
14111
|
}, _callee);
|
|
14241
14112
|
}));
|
|
@@ -14364,29 +14235,31 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
14364
14235
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
14365
14236
|
var sessionId;
|
|
14366
14237
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
14367
|
-
while (1)
|
|
14368
|
-
|
|
14369
|
-
|
|
14370
|
-
|
|
14371
|
-
|
|
14372
|
-
|
|
14373
|
-
|
|
14374
|
-
|
|
14375
|
-
|
|
14376
|
-
|
|
14377
|
-
case 5:
|
|
14378
|
-
// @ts-ignore
|
|
14379
|
-
if (BUILD_TYPE) {
|
|
14380
|
-
antd.message.success('退出登录成功');
|
|
14381
|
-
umi.history.replace({
|
|
14382
|
-
pathname: '/user/login'
|
|
14238
|
+
while (1) {
|
|
14239
|
+
switch (_context.prev = _context.next) {
|
|
14240
|
+
case 0:
|
|
14241
|
+
_context.next = 2;
|
|
14242
|
+
return getSessionId();
|
|
14243
|
+
case 2:
|
|
14244
|
+
sessionId = _context.sent;
|
|
14245
|
+
_context.next = 5;
|
|
14246
|
+
return outLogin({
|
|
14247
|
+
sessionId: sessionId
|
|
14383
14248
|
});
|
|
14384
|
-
|
|
14385
|
-
|
|
14386
|
-
|
|
14387
|
-
|
|
14388
|
-
|
|
14389
|
-
|
|
14249
|
+
case 5:
|
|
14250
|
+
// @ts-ignore
|
|
14251
|
+
if (BUILD_TYPE) {
|
|
14252
|
+
antd.message.success('退出登录成功');
|
|
14253
|
+
umi.history.replace({
|
|
14254
|
+
pathname: '/user/login'
|
|
14255
|
+
});
|
|
14256
|
+
} else {
|
|
14257
|
+
setLoginOutPath();
|
|
14258
|
+
}
|
|
14259
|
+
case 6:
|
|
14260
|
+
case "end":
|
|
14261
|
+
return _context.stop();
|
|
14262
|
+
}
|
|
14390
14263
|
}
|
|
14391
14264
|
}, _callee);
|
|
14392
14265
|
}));
|
|
@@ -16214,7 +16087,6 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
16214
16087
|
showSubMenu: isShow
|
|
16215
16088
|
});
|
|
16216
16089
|
}, 500);
|
|
16217
|
-
//设置tabs标签左右滚动
|
|
16218
16090
|
_this.setTabNavTransLate = function (num) {
|
|
16219
16091
|
var _document$getElementB, _document$getElementB2, _document$getElementB3, _document$getElementB4, _document$defaultView;
|
|
16220
16092
|
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];
|
|
@@ -16895,12 +16767,14 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
16895
16767
|
request: function () {
|
|
16896
16768
|
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
16897
16769
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
16898
|
-
while (1)
|
|
16899
|
-
|
|
16900
|
-
|
|
16901
|
-
|
|
16902
|
-
|
|
16903
|
-
|
|
16770
|
+
while (1) {
|
|
16771
|
+
switch (_context.prev = _context.next) {
|
|
16772
|
+
case 0:
|
|
16773
|
+
return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
|
|
16774
|
+
case 1:
|
|
16775
|
+
case "end":
|
|
16776
|
+
return _context.stop();
|
|
16777
|
+
}
|
|
16904
16778
|
}
|
|
16905
16779
|
}, _callee);
|
|
16906
16780
|
}));
|
|
@@ -24581,26 +24455,28 @@ var valueType = {
|
|
|
24581
24455
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
24582
24456
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
24583
24457
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
24584
|
-
while (1)
|
|
24585
|
-
|
|
24586
|
-
|
|
24587
|
-
|
|
24588
|
-
|
|
24589
|
-
|
|
24590
|
-
|
|
24591
|
-
|
|
24592
|
-
return {
|
|
24593
|
-
|
|
24594
|
-
|
|
24595
|
-
|
|
24596
|
-
|
|
24597
|
-
|
|
24598
|
-
|
|
24599
|
-
|
|
24600
|
-
|
|
24601
|
-
|
|
24602
|
-
|
|
24603
|
-
|
|
24458
|
+
while (1) {
|
|
24459
|
+
switch (_context.prev = _context.next) {
|
|
24460
|
+
case 0:
|
|
24461
|
+
_context.next = 2;
|
|
24462
|
+
return bssula.request({
|
|
24463
|
+
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
24464
|
+
converter: function converter(_ref2) {
|
|
24465
|
+
var data = _ref2.data;
|
|
24466
|
+
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
24467
|
+
return {
|
|
24468
|
+
text: d.name,
|
|
24469
|
+
value: d.code || d.brandCode
|
|
24470
|
+
};
|
|
24471
|
+
});
|
|
24472
|
+
}
|
|
24473
|
+
});
|
|
24474
|
+
case 2:
|
|
24475
|
+
return _context.abrupt("return", _context.sent);
|
|
24476
|
+
case 3:
|
|
24477
|
+
case "end":
|
|
24478
|
+
return _context.stop();
|
|
24479
|
+
}
|
|
24604
24480
|
}
|
|
24605
24481
|
}, _callee);
|
|
24606
24482
|
}));
|
|
@@ -24650,53 +24526,55 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
24650
24526
|
ahooks.useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
24651
24527
|
var _ref$current, source;
|
|
24652
24528
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
24653
|
-
while (1)
|
|
24654
|
-
|
|
24655
|
-
|
|
24656
|
-
|
|
24657
|
-
|
|
24658
|
-
|
|
24659
|
-
|
|
24660
|
-
|
|
24661
|
-
|
|
24662
|
-
|
|
24529
|
+
while (1) {
|
|
24530
|
+
switch (_context.prev = _context.next) {
|
|
24531
|
+
case 0:
|
|
24532
|
+
_context.next = 2;
|
|
24533
|
+
return setIsShowAndType(function (prev) {
|
|
24534
|
+
if (record.inputType === 20 || record.inputType === 30) {
|
|
24535
|
+
return {
|
|
24536
|
+
isShow: true,
|
|
24537
|
+
singleOrMultiple: record.inputType,
|
|
24538
|
+
type: record.choiceType
|
|
24539
|
+
};
|
|
24540
|
+
}
|
|
24541
|
+
return prev;
|
|
24542
|
+
});
|
|
24543
|
+
case 2:
|
|
24544
|
+
if (!record.dictionaryCode) {
|
|
24545
|
+
_context.next = 17;
|
|
24546
|
+
break;
|
|
24663
24547
|
}
|
|
24664
|
-
|
|
24665
|
-
|
|
24666
|
-
|
|
24667
|
-
|
|
24668
|
-
_context.
|
|
24669
|
-
|
|
24670
|
-
}
|
|
24671
|
-
if (!(record.choiceType == 20)) {
|
|
24672
|
-
_context.next = 7;
|
|
24548
|
+
if (!(record.choiceType == 20)) {
|
|
24549
|
+
_context.next = 7;
|
|
24550
|
+
break;
|
|
24551
|
+
}
|
|
24552
|
+
_context.t0 = getDictionarySource(record.dictionaryCode);
|
|
24553
|
+
_context.next = 15;
|
|
24673
24554
|
break;
|
|
24674
|
-
|
|
24675
|
-
|
|
24676
|
-
|
|
24677
|
-
|
|
24678
|
-
|
|
24679
|
-
|
|
24680
|
-
|
|
24555
|
+
case 7:
|
|
24556
|
+
if (!(record.choiceType == 30)) {
|
|
24557
|
+
_context.next = 13;
|
|
24558
|
+
break;
|
|
24559
|
+
}
|
|
24560
|
+
_context.next = 10;
|
|
24561
|
+
return getDynamicDict(record.dictionaryCode);
|
|
24562
|
+
case 10:
|
|
24563
|
+
_context.t1 = _context.sent;
|
|
24564
|
+
_context.next = 14;
|
|
24681
24565
|
break;
|
|
24682
|
-
|
|
24683
|
-
|
|
24684
|
-
|
|
24685
|
-
|
|
24686
|
-
|
|
24687
|
-
|
|
24688
|
-
|
|
24689
|
-
|
|
24690
|
-
|
|
24691
|
-
|
|
24692
|
-
|
|
24693
|
-
|
|
24694
|
-
source = _context.t0;
|
|
24695
|
-
// @ts-ignore
|
|
24696
|
-
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
24697
|
-
case 17:
|
|
24698
|
-
case "end":
|
|
24699
|
-
return _context.stop();
|
|
24566
|
+
case 13:
|
|
24567
|
+
_context.t1 = [];
|
|
24568
|
+
case 14:
|
|
24569
|
+
_context.t0 = _context.t1;
|
|
24570
|
+
case 15:
|
|
24571
|
+
source = _context.t0;
|
|
24572
|
+
// @ts-ignore
|
|
24573
|
+
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
24574
|
+
case 17:
|
|
24575
|
+
case "end":
|
|
24576
|
+
return _context.stop();
|
|
24577
|
+
}
|
|
24700
24578
|
}
|
|
24701
24579
|
}, _callee);
|
|
24702
24580
|
})));
|
|
@@ -24764,28 +24642,30 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
24764
24642
|
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
24765
24643
|
var form, values, name, relates, source;
|
|
24766
24644
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
24767
|
-
while (1)
|
|
24768
|
-
|
|
24769
|
-
|
|
24770
|
-
|
|
24645
|
+
while (1) {
|
|
24646
|
+
switch (_context2.prev = _context2.next) {
|
|
24647
|
+
case 0:
|
|
24648
|
+
form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
|
|
24649
|
+
if (values[0]) {
|
|
24650
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
24651
|
+
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
24652
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
24653
|
+
}
|
|
24654
|
+
if (!values[1]) {
|
|
24655
|
+
_context2.next = 9;
|
|
24656
|
+
break;
|
|
24657
|
+
}
|
|
24658
|
+
_context2.next = 5;
|
|
24659
|
+
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
24660
|
+
case 5:
|
|
24661
|
+
source = _context2.sent;
|
|
24771
24662
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
24772
24663
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
24773
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0],
|
|
24774
|
-
|
|
24775
|
-
|
|
24776
|
-
_context2.
|
|
24777
|
-
|
|
24778
|
-
}
|
|
24779
|
-
_context2.next = 5;
|
|
24780
|
-
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
24781
|
-
case 5:
|
|
24782
|
-
source = _context2.sent;
|
|
24783
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
24784
|
-
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
24785
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
24786
|
-
case 9:
|
|
24787
|
-
case "end":
|
|
24788
|
-
return _context2.stop();
|
|
24664
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
24665
|
+
case 9:
|
|
24666
|
+
case "end":
|
|
24667
|
+
return _context2.stop();
|
|
24668
|
+
}
|
|
24789
24669
|
}
|
|
24790
24670
|
}, _callee2);
|
|
24791
24671
|
}));
|
|
@@ -25245,41 +25125,43 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
25245
25125
|
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
25246
25126
|
var values, name, form, source;
|
|
25247
25127
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
25248
|
-
while (1)
|
|
25249
|
-
|
|
25250
|
-
|
|
25251
|
-
|
|
25252
|
-
|
|
25253
|
-
|
|
25254
|
-
|
|
25255
|
-
if (!(values[0] === 30)) {
|
|
25256
|
-
_context3.next = 10;
|
|
25257
|
-
break;
|
|
25258
|
-
}
|
|
25259
|
-
_context3.next = 5;
|
|
25260
|
-
return bssula.request({
|
|
25261
|
-
url: '/basic/dictDynamicItem/queryList',
|
|
25262
|
-
converter: function converter(_ref11) {
|
|
25263
|
-
var data = _ref11.data;
|
|
25264
|
-
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
25265
|
-
return {
|
|
25266
|
-
text: d.dictCode,
|
|
25267
|
-
value: d.dictCode
|
|
25268
|
-
};
|
|
25269
|
-
});
|
|
25128
|
+
while (1) {
|
|
25129
|
+
switch (_context3.prev = _context3.next) {
|
|
25130
|
+
case 0:
|
|
25131
|
+
values = _ref10.values, name = _ref10.name, form = _ref10.form;
|
|
25132
|
+
if (values[1] === 40) {
|
|
25133
|
+
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
25134
|
+
form.setFieldVisible(name, false);
|
|
25270
25135
|
}
|
|
25271
|
-
|
|
25272
|
-
|
|
25273
|
-
|
|
25274
|
-
|
|
25275
|
-
|
|
25276
|
-
|
|
25277
|
-
|
|
25278
|
-
|
|
25279
|
-
|
|
25280
|
-
|
|
25281
|
-
|
|
25282
|
-
|
|
25136
|
+
if (!(values[0] === 30)) {
|
|
25137
|
+
_context3.next = 10;
|
|
25138
|
+
break;
|
|
25139
|
+
}
|
|
25140
|
+
_context3.next = 5;
|
|
25141
|
+
return bssula.request({
|
|
25142
|
+
url: '/basic/dictDynamicItem/queryList',
|
|
25143
|
+
converter: function converter(_ref11) {
|
|
25144
|
+
var data = _ref11.data;
|
|
25145
|
+
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
25146
|
+
return {
|
|
25147
|
+
text: d.dictCode,
|
|
25148
|
+
value: d.dictCode
|
|
25149
|
+
};
|
|
25150
|
+
});
|
|
25151
|
+
}
|
|
25152
|
+
});
|
|
25153
|
+
case 5:
|
|
25154
|
+
source = _context3.sent;
|
|
25155
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
25156
|
+
form.setFieldVisible(name, true);
|
|
25157
|
+
_context3.next = 11;
|
|
25158
|
+
break;
|
|
25159
|
+
case 10:
|
|
25160
|
+
form.setFieldVisible(name, false);
|
|
25161
|
+
case 11:
|
|
25162
|
+
case "end":
|
|
25163
|
+
return _context3.stop();
|
|
25164
|
+
}
|
|
25283
25165
|
}
|
|
25284
25166
|
}, _callee3);
|
|
25285
25167
|
}));
|
|
@@ -25468,64 +25350,66 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
25468
25350
|
var _ref$current4, _res$editableStatus;
|
|
25469
25351
|
var res, _res$defaultValue;
|
|
25470
25352
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
25471
|
-
while (1)
|
|
25472
|
-
|
|
25473
|
-
|
|
25474
|
-
|
|
25475
|
-
|
|
25476
|
-
|
|
25477
|
-
|
|
25478
|
-
|
|
25479
|
-
|
|
25480
|
-
|
|
25481
|
-
|
|
25482
|
-
|
|
25483
|
-
|
|
25484
|
-
|
|
25485
|
-
|
|
25486
|
-
|
|
25487
|
-
|
|
25488
|
-
|
|
25489
|
-
|
|
25490
|
-
|
|
25491
|
-
res.
|
|
25492
|
-
|
|
25493
|
-
// 把数组处理成文本
|
|
25494
|
-
if (res.inputType === 30) {
|
|
25495
|
-
if (res.defaultValue) {
|
|
25496
|
-
res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
|
|
25353
|
+
while (1) {
|
|
25354
|
+
switch (_context4.prev = _context4.next) {
|
|
25355
|
+
case 0:
|
|
25356
|
+
_context4.next = 2;
|
|
25357
|
+
return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
|
|
25358
|
+
case 2:
|
|
25359
|
+
res = _context4.sent;
|
|
25360
|
+
res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
|
|
25361
|
+
res.fieldGroup = record.fieldGroup;
|
|
25362
|
+
res.businessType = record.businessType;
|
|
25363
|
+
res.info = {
|
|
25364
|
+
enumeration: res.enumeration,
|
|
25365
|
+
dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
|
|
25366
|
+
formula: res.formula,
|
|
25367
|
+
scale: res.scale,
|
|
25368
|
+
variable: res.variable
|
|
25369
|
+
};
|
|
25370
|
+
res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
|
|
25371
|
+
res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
|
|
25372
|
+
res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
|
|
25373
|
+
if (res.inputType === 40) {
|
|
25374
|
+
res.valueType = 22;
|
|
25497
25375
|
}
|
|
25498
|
-
|
|
25499
|
-
|
|
25500
|
-
|
|
25501
|
-
|
|
25502
|
-
|
|
25503
|
-
_context4.next = 18;
|
|
25504
|
-
break;
|
|
25505
|
-
}
|
|
25506
|
-
bssula.request({
|
|
25507
|
-
url: "/basic/flow/businessField",
|
|
25508
|
-
method: 'POST',
|
|
25509
|
-
params: res,
|
|
25510
|
-
successMessage: '创建成功!',
|
|
25511
|
-
converter: function converter() {
|
|
25512
|
-
onParentOk();
|
|
25376
|
+
// 把数组处理成文本
|
|
25377
|
+
if (res.inputType === 30) {
|
|
25378
|
+
if (res.defaultValue) {
|
|
25379
|
+
res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
|
|
25380
|
+
}
|
|
25513
25381
|
}
|
|
25514
|
-
|
|
25515
|
-
|
|
25516
|
-
|
|
25517
|
-
|
|
25518
|
-
|
|
25519
|
-
|
|
25520
|
-
params: res,
|
|
25521
|
-
successMessage: '修改成功!',
|
|
25522
|
-
converter: function converter() {
|
|
25523
|
-
onParentOk();
|
|
25382
|
+
res.fieldMapping = res.fieldMapping || '';
|
|
25383
|
+
delete res.formula;
|
|
25384
|
+
delete res.showValue;
|
|
25385
|
+
if (!(mode === 'create')) {
|
|
25386
|
+
_context4.next = 18;
|
|
25387
|
+
break;
|
|
25524
25388
|
}
|
|
25525
|
-
|
|
25526
|
-
|
|
25527
|
-
|
|
25528
|
-
|
|
25389
|
+
bssula.request({
|
|
25390
|
+
url: "/basic/flow/businessField",
|
|
25391
|
+
method: 'POST',
|
|
25392
|
+
params: res,
|
|
25393
|
+
successMessage: '创建成功!',
|
|
25394
|
+
converter: function converter() {
|
|
25395
|
+
onParentOk();
|
|
25396
|
+
}
|
|
25397
|
+
});
|
|
25398
|
+
return _context4.abrupt("return");
|
|
25399
|
+
case 18:
|
|
25400
|
+
bssula.request({
|
|
25401
|
+
url: "/basic/flow/businessField/".concat(record.id),
|
|
25402
|
+
method: 'PATCH',
|
|
25403
|
+
params: res,
|
|
25404
|
+
successMessage: '修改成功!',
|
|
25405
|
+
converter: function converter() {
|
|
25406
|
+
onParentOk();
|
|
25407
|
+
}
|
|
25408
|
+
});
|
|
25409
|
+
case 19:
|
|
25410
|
+
case "end":
|
|
25411
|
+
return _context4.stop();
|
|
25412
|
+
}
|
|
25529
25413
|
}
|
|
25530
25414
|
}, _callee4);
|
|
25531
25415
|
}));
|
|
@@ -26310,26 +26194,28 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
26310
26194
|
React.useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
26311
26195
|
var resData, data;
|
|
26312
26196
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26313
|
-
while (1)
|
|
26314
|
-
|
|
26315
|
-
|
|
26316
|
-
|
|
26317
|
-
|
|
26318
|
-
|
|
26319
|
-
|
|
26320
|
-
|
|
26321
|
-
|
|
26322
|
-
|
|
26323
|
-
|
|
26324
|
-
|
|
26325
|
-
|
|
26326
|
-
|
|
26327
|
-
|
|
26328
|
-
|
|
26329
|
-
|
|
26330
|
-
|
|
26331
|
-
|
|
26332
|
-
|
|
26197
|
+
while (1) {
|
|
26198
|
+
switch (_context.prev = _context.next) {
|
|
26199
|
+
case 0:
|
|
26200
|
+
if (!(!source && initRequestSource)) {
|
|
26201
|
+
_context.next = 6;
|
|
26202
|
+
break;
|
|
26203
|
+
}
|
|
26204
|
+
_context.next = 3;
|
|
26205
|
+
return initRequestSource();
|
|
26206
|
+
case 3:
|
|
26207
|
+
resData = _context.sent;
|
|
26208
|
+
data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
|
|
26209
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
26210
|
+
label: item.text,
|
|
26211
|
+
isLeaf: false
|
|
26212
|
+
});
|
|
26213
|
+
})) || [];
|
|
26214
|
+
setHandSource(data);
|
|
26215
|
+
case 6:
|
|
26216
|
+
case "end":
|
|
26217
|
+
return _context.stop();
|
|
26218
|
+
}
|
|
26333
26219
|
}
|
|
26334
26220
|
}, _callee);
|
|
26335
26221
|
})), []);
|
|
@@ -26461,18 +26347,20 @@ function getRegularThresholdRange(_x) {
|
|
|
26461
26347
|
function _getRegularThresholdRange() {
|
|
26462
26348
|
_getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
26463
26349
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26464
|
-
while (1)
|
|
26465
|
-
|
|
26466
|
-
|
|
26467
|
-
|
|
26468
|
-
|
|
26469
|
-
|
|
26470
|
-
|
|
26471
|
-
|
|
26472
|
-
|
|
26473
|
-
|
|
26474
|
-
|
|
26475
|
-
|
|
26350
|
+
while (1) {
|
|
26351
|
+
switch (_context.prev = _context.next) {
|
|
26352
|
+
case 0:
|
|
26353
|
+
return _context.abrupt("return", axios__default['default']({
|
|
26354
|
+
url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
|
|
26355
|
+
method: 'POST',
|
|
26356
|
+
data: _objectSpread2(_objectSpread2({}, params), {}, {
|
|
26357
|
+
queryIdentify: undefined
|
|
26358
|
+
})
|
|
26359
|
+
}));
|
|
26360
|
+
case 1:
|
|
26361
|
+
case "end":
|
|
26362
|
+
return _context.stop();
|
|
26363
|
+
}
|
|
26476
26364
|
}
|
|
26477
26365
|
}, _callee);
|
|
26478
26366
|
}));
|
|
@@ -26611,136 +26499,137 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26611
26499
|
_this.getRegularThresholdRange(queryIdentify, propertyCode, queryIdentifyType);
|
|
26612
26500
|
});
|
|
26613
26501
|
};
|
|
26614
|
-
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
26615
26502
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
26616
26503
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
26617
26504
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
26618
26505
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26619
|
-
while (1)
|
|
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
|
-
|
|
26680
|
-
|
|
26681
|
-
|
|
26682
|
-
|
|
26683
|
-
|
|
26684
|
-
|
|
26685
|
-
|
|
26686
|
-
|
|
26687
|
-
|
|
26688
|
-
|
|
26689
|
-
|
|
26690
|
-
|
|
26691
|
-
|
|
26692
|
-
|
|
26693
|
-
|
|
26694
|
-
|
|
26695
|
-
|
|
26696
|
-
|
|
26697
|
-
|
|
26698
|
-
|
|
26506
|
+
while (1) {
|
|
26507
|
+
switch (_context.prev = _context.next) {
|
|
26508
|
+
case 0:
|
|
26509
|
+
if (queryIdentify) {
|
|
26510
|
+
_context.next = 2;
|
|
26511
|
+
break;
|
|
26512
|
+
}
|
|
26513
|
+
return _context.abrupt("return");
|
|
26514
|
+
case 2:
|
|
26515
|
+
thresholdQuery = _this.state.thresholdQuery;
|
|
26516
|
+
extraRequestUrl = '';
|
|
26517
|
+
querParams = setParams(propertyCode, thresholdQuery);
|
|
26518
|
+
if (!queryIdentityInfo.find(function (item) {
|
|
26519
|
+
return item.identity == propertyCode;
|
|
26520
|
+
})) {
|
|
26521
|
+
_context.next = 10;
|
|
26522
|
+
break;
|
|
26523
|
+
}
|
|
26524
|
+
//判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
|
|
26525
|
+
needQueryList = queryIdentityInfo.find(function (item) {
|
|
26526
|
+
return item.identity == propertyCode;
|
|
26527
|
+
}).queryParam.filter(function (item) {
|
|
26528
|
+
return item.isRequired;
|
|
26529
|
+
}).map(function (item) {
|
|
26530
|
+
return item.queryKey;
|
|
26531
|
+
});
|
|
26532
|
+
if (!needQueryList.some(function (item) {
|
|
26533
|
+
return !querParams[item] || !querParams[item].length;
|
|
26534
|
+
})) {
|
|
26535
|
+
_context.next = 9;
|
|
26536
|
+
break;
|
|
26537
|
+
}
|
|
26538
|
+
return _context.abrupt("return");
|
|
26539
|
+
case 9:
|
|
26540
|
+
extraRequestUrl = queryIdentityInfo.find(function (item) {
|
|
26541
|
+
return item.identity == propertyCode;
|
|
26542
|
+
}).requestUrl || '';
|
|
26543
|
+
case 10:
|
|
26544
|
+
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
26545
|
+
extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
|
|
26546
|
+
querParams = {
|
|
26547
|
+
dictCode: queryIdentify
|
|
26548
|
+
};
|
|
26549
|
+
} else if (queryIdentifyType === 'dynamicDictCodeIdentify') {
|
|
26550
|
+
extraRequestUrl = "dictDynamicItem/getDynamicData/".concat(queryIdentify); // 字典接口
|
|
26551
|
+
// querParams = { dictCode: queryIdentify }
|
|
26552
|
+
}
|
|
26553
|
+
if (!extraRequestUrl) {
|
|
26554
|
+
_context.next = 16;
|
|
26555
|
+
break;
|
|
26556
|
+
}
|
|
26557
|
+
if (queryIdentify == 'maintain_area_code') {
|
|
26558
|
+
extraRequestUrl = "/basic/".concat(extraRequestUrl).concat(querParams.memberCardCode, "?").concat(querystring.stringify(querParams));
|
|
26559
|
+
} else if (queryIdentifyType == 'dictCodeIdentify') {
|
|
26560
|
+
extraRequestUrl = "/basic/".concat(extraRequestUrl, "?").concat(querystring.stringify(querParams));
|
|
26561
|
+
} else if (queryIdentifyType == 'dynamicDictCodeIdentify') {
|
|
26562
|
+
extraRequestUrl = "/basic/".concat(extraRequestUrl);
|
|
26563
|
+
}
|
|
26564
|
+
bssula.request({
|
|
26565
|
+
url: extraRequestUrl,
|
|
26566
|
+
method: 'get',
|
|
26567
|
+
converter: function converter(res) {
|
|
26568
|
+
if (handleError(res)) {
|
|
26569
|
+
var _handleData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
26570
|
+
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
26571
|
+
var _handleData2;
|
|
26572
|
+
_handleData = ((_handleData2 = _handleData) === null || _handleData2 === void 0 ? void 0 : _handleData2.length) ? _handleData.map(function (i) {
|
|
26573
|
+
return {
|
|
26574
|
+
code: i.dictItemCode,
|
|
26575
|
+
name: i.dictItemName
|
|
26576
|
+
};
|
|
26577
|
+
}) : [];
|
|
26578
|
+
}
|
|
26579
|
+
if (queryIdentifyType === 'dynamicDictCodeIdentify') {
|
|
26580
|
+
var _handleData3;
|
|
26581
|
+
_handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
|
|
26582
|
+
return {
|
|
26583
|
+
code: i.code.toString(),
|
|
26584
|
+
name: i.name
|
|
26585
|
+
};
|
|
26586
|
+
}) : [];
|
|
26587
|
+
}
|
|
26588
|
+
_this.setState({
|
|
26589
|
+
thresholdList: _handleData
|
|
26590
|
+
});
|
|
26699
26591
|
}
|
|
26700
|
-
|
|
26701
|
-
thresholdList: _handleData
|
|
26702
|
-
});
|
|
26592
|
+
return handleData;
|
|
26703
26593
|
}
|
|
26704
|
-
|
|
26705
|
-
|
|
26706
|
-
});
|
|
26707
|
-
_context.next = 29;
|
|
26708
|
-
break;
|
|
26709
|
-
case 16:
|
|
26710
|
-
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
26711
|
-
_context.next = 20;
|
|
26594
|
+
});
|
|
26595
|
+
_context.next = 29;
|
|
26712
26596
|
break;
|
|
26713
|
-
|
|
26714
|
-
|
|
26715
|
-
|
|
26716
|
-
|
|
26717
|
-
|
|
26718
|
-
|
|
26719
|
-
|
|
26720
|
-
|
|
26721
|
-
_context.next =
|
|
26597
|
+
case 16:
|
|
26598
|
+
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
26599
|
+
_context.next = 20;
|
|
26600
|
+
break;
|
|
26601
|
+
}
|
|
26602
|
+
_this.setState({
|
|
26603
|
+
thresholdList: queryIdentify
|
|
26604
|
+
});
|
|
26605
|
+
_context.next = 29;
|
|
26722
26606
|
break;
|
|
26723
|
-
|
|
26724
|
-
|
|
26725
|
-
|
|
26726
|
-
|
|
26727
|
-
|
|
26728
|
-
|
|
26729
|
-
break;
|
|
26730
|
-
case 24:
|
|
26731
|
-
querParams.queryIdentify = queryIdentify;
|
|
26732
|
-
_context.next = 27;
|
|
26733
|
-
return getRegularThresholdRange(querParams);
|
|
26734
|
-
case 27:
|
|
26735
|
-
res = _context.sent;
|
|
26736
|
-
if (handleError(res)) {
|
|
26607
|
+
case 20:
|
|
26608
|
+
if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
|
|
26609
|
+
_context.next = 24;
|
|
26610
|
+
break;
|
|
26611
|
+
}
|
|
26612
|
+
// TODO待处理
|
|
26737
26613
|
_this.setState({
|
|
26738
|
-
thresholdList:
|
|
26614
|
+
thresholdList: []
|
|
26739
26615
|
});
|
|
26740
|
-
|
|
26741
|
-
|
|
26742
|
-
|
|
26743
|
-
|
|
26616
|
+
_context.next = 29;
|
|
26617
|
+
break;
|
|
26618
|
+
case 24:
|
|
26619
|
+
querParams.queryIdentify = queryIdentify;
|
|
26620
|
+
_context.next = 27;
|
|
26621
|
+
return getRegularThresholdRange(querParams);
|
|
26622
|
+
case 27:
|
|
26623
|
+
res = _context.sent;
|
|
26624
|
+
if (handleError(res)) {
|
|
26625
|
+
_this.setState({
|
|
26626
|
+
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
26627
|
+
});
|
|
26628
|
+
}
|
|
26629
|
+
case 29:
|
|
26630
|
+
case "end":
|
|
26631
|
+
return _context.stop();
|
|
26632
|
+
}
|
|
26744
26633
|
}
|
|
26745
26634
|
}, _callee);
|
|
26746
26635
|
}));
|
|
@@ -27559,30 +27448,32 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27559
27448
|
notChangeOnSelect: true,
|
|
27560
27449
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
27561
27450
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
27562
|
-
while (1)
|
|
27563
|
-
|
|
27564
|
-
|
|
27565
|
-
|
|
27566
|
-
|
|
27567
|
-
|
|
27568
|
-
|
|
27569
|
-
|
|
27570
|
-
|
|
27571
|
-
|
|
27572
|
-
|
|
27573
|
-
|
|
27574
|
-
|
|
27575
|
-
|
|
27576
|
-
|
|
27577
|
-
|
|
27578
|
-
|
|
27579
|
-
|
|
27580
|
-
|
|
27581
|
-
|
|
27582
|
-
|
|
27583
|
-
|
|
27584
|
-
|
|
27585
|
-
|
|
27451
|
+
while (1) {
|
|
27452
|
+
switch (_context2.prev = _context2.next) {
|
|
27453
|
+
case 0:
|
|
27454
|
+
_context2.next = 2;
|
|
27455
|
+
return bssula.request({
|
|
27456
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
27457
|
+
method: 'get',
|
|
27458
|
+
converter: function converter(_ref3) {
|
|
27459
|
+
var data = _ref3.data;
|
|
27460
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27461
|
+
return {
|
|
27462
|
+
text: item.name,
|
|
27463
|
+
value: item.id,
|
|
27464
|
+
level: item.level,
|
|
27465
|
+
id: item.id
|
|
27466
|
+
};
|
|
27467
|
+
}) : [];
|
|
27468
|
+
return handleData;
|
|
27469
|
+
}
|
|
27470
|
+
});
|
|
27471
|
+
case 2:
|
|
27472
|
+
return _context2.abrupt("return", _context2.sent);
|
|
27473
|
+
case 3:
|
|
27474
|
+
case "end":
|
|
27475
|
+
return _context2.stop();
|
|
27476
|
+
}
|
|
27586
27477
|
}
|
|
27587
27478
|
}, _callee2);
|
|
27588
27479
|
})),
|
|
@@ -27608,30 +27499,32 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27608
27499
|
notChangeOnSelect: true,
|
|
27609
27500
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
27610
27501
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
27611
|
-
while (1)
|
|
27612
|
-
|
|
27613
|
-
|
|
27614
|
-
|
|
27615
|
-
|
|
27616
|
-
|
|
27617
|
-
|
|
27618
|
-
|
|
27619
|
-
|
|
27620
|
-
|
|
27621
|
-
|
|
27622
|
-
|
|
27623
|
-
|
|
27624
|
-
|
|
27625
|
-
|
|
27626
|
-
|
|
27627
|
-
|
|
27628
|
-
|
|
27629
|
-
|
|
27630
|
-
|
|
27631
|
-
|
|
27632
|
-
|
|
27633
|
-
|
|
27634
|
-
|
|
27502
|
+
while (1) {
|
|
27503
|
+
switch (_context3.prev = _context3.next) {
|
|
27504
|
+
case 0:
|
|
27505
|
+
_context3.next = 2;
|
|
27506
|
+
return bssula.request({
|
|
27507
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
27508
|
+
method: 'get',
|
|
27509
|
+
converter: function converter(_ref5) {
|
|
27510
|
+
var data = _ref5.data;
|
|
27511
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27512
|
+
return {
|
|
27513
|
+
text: item.name,
|
|
27514
|
+
value: item.id,
|
|
27515
|
+
level: item.level,
|
|
27516
|
+
id: item.id
|
|
27517
|
+
};
|
|
27518
|
+
}) : [];
|
|
27519
|
+
return handleData;
|
|
27520
|
+
}
|
|
27521
|
+
});
|
|
27522
|
+
case 2:
|
|
27523
|
+
return _context3.abrupt("return", _context3.sent);
|
|
27524
|
+
case 3:
|
|
27525
|
+
case "end":
|
|
27526
|
+
return _context3.stop();
|
|
27527
|
+
}
|
|
27635
27528
|
}
|
|
27636
27529
|
}, _callee3);
|
|
27637
27530
|
})),
|
|
@@ -27659,30 +27552,32 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27659
27552
|
notChangeOnSelect: true,
|
|
27660
27553
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
27661
27554
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
27662
|
-
while (1)
|
|
27663
|
-
|
|
27664
|
-
|
|
27665
|
-
|
|
27666
|
-
|
|
27667
|
-
|
|
27668
|
-
|
|
27669
|
-
|
|
27670
|
-
|
|
27671
|
-
|
|
27672
|
-
|
|
27673
|
-
|
|
27674
|
-
|
|
27675
|
-
|
|
27676
|
-
|
|
27677
|
-
|
|
27678
|
-
|
|
27679
|
-
|
|
27680
|
-
|
|
27681
|
-
|
|
27682
|
-
|
|
27683
|
-
|
|
27684
|
-
|
|
27685
|
-
|
|
27555
|
+
while (1) {
|
|
27556
|
+
switch (_context4.prev = _context4.next) {
|
|
27557
|
+
case 0:
|
|
27558
|
+
_context4.next = 2;
|
|
27559
|
+
return bssula.request({
|
|
27560
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
27561
|
+
method: 'get',
|
|
27562
|
+
converter: function converter(_ref7) {
|
|
27563
|
+
var data = _ref7.data;
|
|
27564
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27565
|
+
return {
|
|
27566
|
+
text: item.name,
|
|
27567
|
+
value: item.id,
|
|
27568
|
+
level: item.level,
|
|
27569
|
+
id: item.id
|
|
27570
|
+
};
|
|
27571
|
+
}) : [];
|
|
27572
|
+
return handleData;
|
|
27573
|
+
}
|
|
27574
|
+
});
|
|
27575
|
+
case 2:
|
|
27576
|
+
return _context4.abrupt("return", _context4.sent);
|
|
27577
|
+
case 3:
|
|
27578
|
+
case "end":
|
|
27579
|
+
return _context4.stop();
|
|
27580
|
+
}
|
|
27686
27581
|
}
|
|
27687
27582
|
}, _callee4);
|
|
27688
27583
|
})),
|
|
@@ -28799,6 +28694,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
28799
28694
|
});
|
|
28800
28695
|
}
|
|
28801
28696
|
}
|
|
28697
|
+
|
|
28698
|
+
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
28802
28699
|
}, {
|
|
28803
28700
|
key: "render",
|
|
28804
28701
|
value: function render() {
|
|
@@ -29629,7 +29526,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29629
29526
|
callBack(ruleClassData);
|
|
29630
29527
|
});
|
|
29631
29528
|
};
|
|
29632
|
-
// 树结构 转化成 平行树 (递归函数)
|
|
29633
29529
|
_this.coverToParallel = function (treeData, result) {
|
|
29634
29530
|
treeData.forEach(function (el) {
|
|
29635
29531
|
result.push(el);
|
|
@@ -29885,7 +29781,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29885
29781
|
callBack(ruleClassData);
|
|
29886
29782
|
});
|
|
29887
29783
|
};
|
|
29888
|
-
// 场景需要返回值2022.11.15
|
|
29889
29784
|
_this.renderResItem = function (itemDetail, parentDetail, ruleReturnConfig, classDataIndex, disabled, boxStyle) {
|
|
29890
29785
|
var _ruleReturnConfig$rig;
|
|
29891
29786
|
var isShowResponse = itemDetail.response['enable'];
|
|
@@ -30183,30 +30078,32 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30183
30078
|
notChangeOnSelect: true,
|
|
30184
30079
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30185
30080
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30186
|
-
while (1)
|
|
30187
|
-
|
|
30188
|
-
|
|
30189
|
-
|
|
30190
|
-
|
|
30191
|
-
|
|
30192
|
-
|
|
30193
|
-
|
|
30194
|
-
|
|
30195
|
-
|
|
30196
|
-
|
|
30197
|
-
|
|
30198
|
-
|
|
30199
|
-
|
|
30200
|
-
|
|
30201
|
-
|
|
30202
|
-
|
|
30203
|
-
|
|
30204
|
-
|
|
30205
|
-
|
|
30206
|
-
|
|
30207
|
-
|
|
30208
|
-
|
|
30209
|
-
|
|
30081
|
+
while (1) {
|
|
30082
|
+
switch (_context.prev = _context.next) {
|
|
30083
|
+
case 0:
|
|
30084
|
+
_context.next = 2;
|
|
30085
|
+
return bssula.request({
|
|
30086
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
30087
|
+
method: 'get',
|
|
30088
|
+
converter: function converter(_ref2) {
|
|
30089
|
+
var data = _ref2.data;
|
|
30090
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
30091
|
+
return {
|
|
30092
|
+
text: item.name,
|
|
30093
|
+
value: item.id,
|
|
30094
|
+
level: item.level,
|
|
30095
|
+
id: item.id
|
|
30096
|
+
};
|
|
30097
|
+
}) : [];
|
|
30098
|
+
return handleData;
|
|
30099
|
+
}
|
|
30100
|
+
});
|
|
30101
|
+
case 2:
|
|
30102
|
+
return _context.abrupt("return", _context.sent);
|
|
30103
|
+
case 3:
|
|
30104
|
+
case "end":
|
|
30105
|
+
return _context.stop();
|
|
30106
|
+
}
|
|
30210
30107
|
}
|
|
30211
30108
|
}, _callee);
|
|
30212
30109
|
})),
|
|
@@ -30540,7 +30437,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30540
30437
|
}
|
|
30541
30438
|
}, "\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);
|
|
30542
30439
|
};
|
|
30543
|
-
//添加同一层级条件
|
|
30544
30440
|
_this.addPeerRule = function (itemDetail) {
|
|
30545
30441
|
var ruleClassData = _this.state.ruleClassData;
|
|
30546
30442
|
var _this$props4 = _this.props,
|
|
@@ -30561,7 +30457,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30561
30457
|
callBack(ruleClassData);
|
|
30562
30458
|
});
|
|
30563
30459
|
};
|
|
30564
|
-
//添加子层级条件
|
|
30565
30460
|
_this.addChildRules = function (itemDetail) {
|
|
30566
30461
|
var ruleClassData = _this.state.ruleClassData;
|
|
30567
30462
|
var callBack = _this.props.callBack;
|
|
@@ -30637,7 +30532,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30637
30532
|
callBack(ruleClassData);
|
|
30638
30533
|
});
|
|
30639
30534
|
};
|
|
30640
|
-
// 新增执行顺序
|
|
30641
30535
|
_this.handleSelectRuleAction = function (keys, classDataIndex, callback) {
|
|
30642
30536
|
callback();
|
|
30643
30537
|
var callBack = _this.props.callBack;
|