@bit-sun/business-component 2.3.20 → 2.3.22-beta1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +16 -16
- package/.fatherrc.ts +5 -5
- package/.gitlab-ci.yml +179 -179
- package/.prettierignore +7 -7
- package/.prettierrc +11 -11
- package/.umirc.ts +74 -74
- package/README.md +27 -27
- package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/AllFunc/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/RightContent/index.d.ts +2 -2
- package/dist/components/Business/BsLayouts/Components/SearchFunc/index.d.ts +2 -2
- package/dist/components/Business/BsLayouts/index.d.ts +2 -2
- package/dist/components/Business/BsLayouts/service.d.ts +1 -1
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +2 -2
- package/dist/components/Business/SearchSelect/index.d.ts +1 -1
- package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
- package/dist/components/Functional/AddSelect/helps.d.ts +13 -0
- package/dist/components/Functional/BsAntdSula/BsCascader/index.d.ts +1 -1
- package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
- package/dist/components/Solution/RuleComponent/services.d.ts +1 -1
- package/dist/index.esm.js +1401 -1292
- package/dist/index.js +1401 -1292
- package/dist/utils/TableUtils.d.ts +2 -2
- package/dist/utils/utils.d.ts +1 -1
- package/docs/index.md +21 -21
- package/lib/assets/drag.svg +17 -17
- package/lib/assets/exportFail.svg +37 -37
- package/lib/assets/exportProcessing.svg +28 -28
- package/lib/assets/exportSuccess.svg +34 -34
- package/lib/assets/label_icon_bottom.svg +25 -25
- package/lib/assets/upExport.svg +22 -22
- package/package.json +78 -78
- package/src/assets/32.svg +27 -27
- package/src/assets/addIcon.svg +17 -17
- package/src/assets/allfunc.svg +27 -27
- package/src/assets/arrowRight.svg +24 -24
- package/src/assets/btn-delete.svg +29 -29
- package/src/assets/btn-edit.svg +19 -19
- package/src/assets/btn-more.svg +17 -17
- package/src/assets/btn-submit.svg +19 -19
- package/src/assets/caidan.svg +11 -11
- package/src/assets/close.svg +26 -26
- package/src/assets/drag.svg +17 -17
- package/src/assets/exportFail.svg +37 -37
- package/src/assets/exportProcessing.svg +28 -28
- package/src/assets/exportSuccess.svg +34 -34
- package/src/assets/fixed-left-active.svg +11 -11
- package/src/assets/fixed-left.svg +15 -15
- package/src/assets/fixed-right-active.svg +11 -11
- package/src/assets/fixed-right.svg +15 -15
- package/src/assets/guanbi.svg +15 -15
- package/src/assets/icon-quanping.svg +15 -15
- package/src/assets/icon-shezhi.svg +17 -17
- package/src/assets/label_icon_bottom.svg +25 -25
- package/src/assets/list-no-img.svg +21 -21
- package/src/assets/morentouxiang-32.svg +23 -23
- package/src/assets/scanning.svg +24 -24
- package/src/assets/upExport.svg +22 -22
- package/src/common/ENUM.ts +41 -41
- package/src/components/Business/AddSelectBusiness/index.md +162 -162
- package/src/components/Business/AddSelectBusiness/index.tsx +1060 -895
- package/src/components/Business/BsLayouts/Components/AllFunc/drawContent.tsx +111 -111
- package/src/components/Business/BsLayouts/Components/AllFunc/index.less +153 -153
- package/src/components/Business/BsLayouts/Components/AllFunc/index.tsx +70 -70
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.less +90 -90
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.tsx +37 -37
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.tsx +242 -242
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.tsx +384 -384
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.tsx +285 -285
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.tsx +74 -74
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/drawContent.less +170 -170
- package/src/components/Business/BsLayouts/Components/CustomerMenu/index.less +64 -64
- package/src/components/Business/BsLayouts/Components/CustomerMenu/index.tsx +153 -153
- package/src/components/Business/BsLayouts/Components/GlobalHeader/index.less +72 -72
- package/src/components/Business/BsLayouts/Components/GlobalHeader/index.tsx +157 -157
- package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +85 -85
- package/src/components/Business/BsLayouts/Components/RightContent/home.less +218 -218
- package/src/components/Business/BsLayouts/Components/RightContent/index.tsx +155 -155
- package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +160 -160
- package/src/components/Business/BsLayouts/Components/SearchFunc/index.tsx +75 -75
- package/src/components/Business/BsLayouts/index.less +79 -79
- package/src/components/Business/BsLayouts/index.tsx +1484 -1484
- package/src/components/Business/BsLayouts/service.ts +10 -10
- package/src/components/Business/BsLayouts/utils.tsx +203 -203
- package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +564 -564
- package/src/components/Business/BsSulaQueryTable/index.less +221 -221
- package/src/components/Business/BsSulaQueryTable/index.tsx +535 -535
- package/src/components/Business/BsSulaQueryTable/setting.tsx +852 -852
- package/src/components/Business/BsSulaQueryTable/utils.less +65 -65
- package/src/components/Business/BsSulaQueryTable/utils.tsx +690 -688
- package/src/components/Business/CommodityEntry/index.md +70 -70
- package/src/components/Business/CommodityEntry/index.tsx +80 -80
- package/src/components/Business/CommonAlert/index.tsx +23 -23
- package/src/components/Business/CommonGuideWrapper/index.less +111 -111
- package/src/components/Business/CommonGuideWrapper/index.md +39 -39
- package/src/components/Business/CommonGuideWrapper/index.tsx +83 -83
- package/src/components/Business/DetailPageWrapper/index.less +79 -79
- package/src/components/Business/DetailPageWrapper/index.tsx +313 -313
- package/src/components/Business/DetailPageWrapper/utils.tsx +100 -100
- package/src/components/Business/HomePageWrapper/index.less +33 -33
- package/src/components/Business/HomePageWrapper/index.md +45 -45
- package/src/components/Business/HomePageWrapper/index.tsx +162 -162
- package/src/components/Business/JsonQueryTable/components/FieldsModifyModal.tsx +824 -824
- package/src/components/Business/JsonQueryTable/components/FieldsSettingsTable.tsx +205 -205
- package/src/components/Business/JsonQueryTable/components/Formula.tsx +205 -205
- package/src/components/Business/JsonQueryTable/components/MaintainOptions.tsx +127 -127
- package/src/components/Business/JsonQueryTable/configButton/index.js +20 -20
- package/src/components/Business/JsonQueryTable/configTree/component/compactArrayView.js +25 -25
- package/src/components/Business/JsonQueryTable/configTree/component/compactObjectView.js +30 -30
- package/src/components/Business/JsonQueryTable/configTree/index.js +82 -82
- package/src/components/Business/JsonQueryTable/configTree/index.less +44 -44
- package/src/components/Business/JsonQueryTable/configTree/parser/highlight.js +57 -57
- package/src/components/Business/JsonQueryTable/configTree/parser/index.js +124 -124
- package/src/components/Business/JsonQueryTable/configTree/render/iconRender.js +29 -29
- package/src/components/Business/JsonQueryTable/configTree/render/nameRender.js +22 -22
- package/src/components/Business/JsonQueryTable/configTree/treeNode.js +116 -116
- package/src/components/Business/JsonQueryTable/drawer/index.tsx +12 -12
- package/src/components/Business/JsonQueryTable/function.ts +62 -62
- package/src/components/Business/JsonQueryTable/index.less +16 -16
- package/src/components/Business/JsonQueryTable/index.md +328 -328
- package/src/components/Business/JsonQueryTable/index.tsx +535 -535
- package/src/components/Business/JsonQueryTable/jsonEditor/index.js +346 -346
- package/src/components/Business/JsonQueryTable/jsonEditor/index.less +22 -22
- package/src/components/Business/JsonQueryTable/jsonEditor/lint/basicType.js +147 -147
- package/src/components/Business/JsonQueryTable/jsonEditor/lint/index.js +389 -389
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/actions.js +118 -118
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/dependency.js +22 -22
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/index.js +21 -21
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/request.js +65 -65
- package/src/components/Business/JsonQueryTable/static.ts +390 -390
- package/src/components/Business/SearchSelect/BusinessUtils.ts +1762 -1762
- package/src/components/Business/SearchSelect/common.ts +75 -75
- package/src/components/Business/SearchSelect/index.md +1329 -1329
- package/src/components/Business/SearchSelect/index.tsx +55 -55
- package/src/components/Business/SearchSelect/utils.ts +100 -100
- package/src/components/Business/StateFlow/index.less +130 -130
- package/src/components/Business/StateFlow/index.md +60 -60
- package/src/components/Business/StateFlow/index.tsx +29 -29
- package/src/components/Business/TreeSearchSelect/index.md +156 -156
- package/src/components/Business/TreeSearchSelect/index.tsx +33 -33
- package/src/components/Business/TreeSearchSelect/utils.ts +75 -75
- package/src/components/Business/columnSettingTable/columnSetting.tsx +764 -764
- package/src/components/Business/columnSettingTable/index.less +247 -247
- package/src/components/Business/columnSettingTable/index.md +357 -357
- package/src/components/Business/columnSettingTable/index.tsx +232 -232
- package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +240 -240
- package/src/components/Business/columnSettingTable/utils.tsx +71 -69
- package/src/components/Business/moreTreeTable/FixedScrollBar.tsx +87 -87
- package/src/components/Business/moreTreeTable/hooks/useSticky.ts +21 -21
- package/src/components/Business/moreTreeTable/index.less +99 -99
- package/src/components/Business/moreTreeTable/index.md +448 -448
- package/src/components/Business/moreTreeTable/index.tsx +387 -387
- package/src/components/Business/moreTreeTable/utils.ts +126 -126
- package/src/components/Functional/AddSelect/helps.ts +79 -14
- package/src/components/Functional/AddSelect/index.less +367 -367
- package/src/components/Functional/AddSelect/index.md +155 -155
- package/src/components/Functional/AddSelect/index.tsx +1170 -1282
- package/src/components/Functional/BillEntry/index.less +371 -371
- package/src/components/Functional/BillEntry/index.md +39 -39
- package/src/components/Functional/BillEntry/index.tsx +772 -772
- package/src/components/Functional/BsAntdSula/BsCascader/index.md +62 -62
- package/src/components/Functional/BsAntdSula/BsCascader/index.tsx +178 -178
- package/src/components/Functional/BsAntdSula/index.ts +2 -2
- package/src/components/Functional/DataImport/index.less +63 -63
- package/src/components/Functional/DataImport/index.md +44 -44
- package/src/components/Functional/DataImport/index.tsx +695 -695
- package/src/components/Functional/DataValidation/index.less +63 -63
- package/src/components/Functional/DataValidation/index.md +39 -39
- package/src/components/Functional/DataValidation/index.tsx +687 -687
- package/src/components/Functional/EllipsisTooltip/index.d.ts +5 -5
- package/src/components/Functional/EllipsisTooltip/index.js +36 -36
- package/src/components/Functional/EllipsisTooltip/index.md +30 -30
- package/src/components/Functional/ExportFunctions/ExportIcon/index.md +37 -37
- package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +59 -59
- package/src/components/Functional/QueryMutipleInput/index.less +37 -37
- package/src/components/Functional/QueryMutipleInput/index.md +33 -33
- package/src/components/Functional/QueryMutipleInput/index.tsx +128 -128
- package/src/components/Functional/SearchSelect/index.less +115 -115
- package/src/components/Functional/SearchSelect/index.md +141 -141
- package/src/components/Functional/SearchSelect/index.tsx +879 -879
- package/src/components/Functional/SearchSelect/utils.ts +3 -3
- package/src/components/Functional/TreeSearchSelect/index.md +47 -47
- package/src/components/Functional/TreeSearchSelect/index.tsx +199 -199
- package/src/components/Solution/RuleComponent/Formula.tsx +335 -335
- package/src/components/Solution/RuleComponent/index.d.ts +29 -29
- package/src/components/Solution/RuleComponent/index.js +2032 -2032
- package/src/components/Solution/RuleComponent/index.less +230 -230
- package/src/components/Solution/RuleComponent/renderSpecificAction.js +99 -99
- package/src/components/Solution/RuleComponent/ruleFiled.js +2107 -2107
- package/src/components/Solution/RuleComponent/services.ts +13 -13
- package/src/components/Solution/RuleComponent/util.js +139 -139
- package/src/index.ts +38 -38
- package/src/plugin/TableColumnSetting/index.less +247 -247
- package/src/plugin/TableColumnSetting/index.md +50 -50
- package/src/plugin/TableColumnSetting/index.tsx +724 -724
- package/src/plugin/TableColumnSetting/utils.ts +19 -19
- package/src/styles/bsDefault.less +1912 -1912
- package/src/utils/CheckOneUser/index.md +39 -39
- package/src/utils/CheckOneUser/index.ts +51 -51
- package/src/utils/LocalstorageUtils.ts +95 -95
- package/src/utils/TableUtils.tsx +18 -18
- package/src/utils/checkUtils.ts +39 -39
- package/src/utils/enumConfig.ts +11 -11
- package/src/utils/getFormMode.js +12 -12
- package/src/utils/index.ts +4 -4
- package/src/utils/requestUtils.ts +34 -34
- package/src/utils/serialize.js +7 -7
- package/src/utils/utils.ts +212 -212
- package/tsconfig.json +29 -29
- package/typings.d.ts +4 -4
package/dist/index.js
CHANGED
|
@@ -155,6 +155,33 @@ 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
|
+
}
|
|
158
185
|
function ownKeys(object, enumerableOnly) {
|
|
159
186
|
var keys = Object.keys(object);
|
|
160
187
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -311,14 +338,9 @@ function _regeneratorRuntime() {
|
|
|
311
338
|
};
|
|
312
339
|
}
|
|
313
340
|
function maybeInvokeDelegate(delegate, context) {
|
|
314
|
-
var
|
|
315
|
-
|
|
316
|
-
|
|
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
|
-
}
|
|
341
|
+
var methodName = context.method,
|
|
342
|
+
method = delegate.iterator[methodName];
|
|
343
|
+
if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
|
|
322
344
|
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
323
345
|
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
324
346
|
var info = record.arg;
|
|
@@ -532,7 +554,7 @@ function _defineProperties(target, props) {
|
|
|
532
554
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
533
555
|
descriptor.configurable = true;
|
|
534
556
|
if ("value" in descriptor) descriptor.writable = true;
|
|
535
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
557
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
536
558
|
}
|
|
537
559
|
}
|
|
538
560
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
@@ -544,6 +566,7 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
544
566
|
return Constructor;
|
|
545
567
|
}
|
|
546
568
|
function _defineProperty(obj, key, value) {
|
|
569
|
+
key = _toPropertyKey(key);
|
|
547
570
|
if (key in obj) {
|
|
548
571
|
Object.defineProperty(obj, key, {
|
|
549
572
|
value: value,
|
|
@@ -686,30 +709,6 @@ function _arrayWithHoles(arr) {
|
|
|
686
709
|
function _iterableToArray(iter) {
|
|
687
710
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
688
711
|
}
|
|
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
|
-
}
|
|
713
712
|
function _unsupportedIterableToArray(o, minLen) {
|
|
714
713
|
if (!o) return;
|
|
715
714
|
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
@@ -729,6 +728,20 @@ function _nonIterableSpread() {
|
|
|
729
728
|
function _nonIterableRest() {
|
|
730
729
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
731
730
|
}
|
|
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
|
+
}
|
|
732
745
|
|
|
733
746
|
var checkQuantityAccuracy = function checkQuantityAccuracy(value, accuracy, errorInfo) {
|
|
734
747
|
var errorMessage = _objectSpread2({
|
|
@@ -981,32 +994,35 @@ function handleCommonTimeRender(text, format) {
|
|
|
981
994
|
}
|
|
982
995
|
//设置queryTable默认列宽
|
|
983
996
|
var getItemDefaultWidth = function getItemDefaultWidth(item) {
|
|
997
|
+
var _ref;
|
|
984
998
|
var defaultWidth = 200;
|
|
985
|
-
var lowerCaseKey = (item.key || item.dataIndex).toLowerCase();
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
999
|
+
var lowerCaseKey = (_ref = item.key || item.dataIndex) === null || _ref === void 0 ? void 0 : _ref.toLowerCase();
|
|
1000
|
+
if (lowerCaseKey) {
|
|
1001
|
+
switch (true) {
|
|
1002
|
+
case (item === null || item === void 0 ? void 0 : item.title) === '操作' || lowerCaseKey === 'operate':
|
|
1003
|
+
defaultWidth = 60;
|
|
1004
|
+
break;
|
|
1005
|
+
case lowerCaseKey.indexOf('number') > -1:
|
|
1006
|
+
case lowerCaseKey.indexOf('quantity') > -1:
|
|
1007
|
+
case lowerCaseKey.indexOf('amount') > -1:
|
|
1008
|
+
defaultWidth = 90;
|
|
1009
|
+
break;
|
|
1010
|
+
case lowerCaseKey.indexOf('no') > -1:
|
|
1011
|
+
defaultWidth = 200;
|
|
1012
|
+
break;
|
|
1013
|
+
case lowerCaseKey.indexOf('code') > -1:
|
|
1014
|
+
defaultWidth = 170;
|
|
1015
|
+
break;
|
|
1016
|
+
case lowerCaseKey.indexOf('time') > -1:
|
|
1017
|
+
defaultWidth = 130;
|
|
1018
|
+
break;
|
|
1019
|
+
case lowerCaseKey.indexOf('status') > -1:
|
|
1020
|
+
defaultWidth = 100;
|
|
1021
|
+
break;
|
|
1022
|
+
case lowerCaseKey.indexOf('user') > -1:
|
|
1023
|
+
defaultWidth = 130;
|
|
1024
|
+
break;
|
|
1025
|
+
}
|
|
1010
1026
|
}
|
|
1011
1027
|
return defaultWidth;
|
|
1012
1028
|
};
|
|
@@ -1016,58 +1032,59 @@ var getItemDefaultWidth = function getItemDefaultWidth(item) {
|
|
|
1016
1032
|
* @returns 返回处理后的查询参数
|
|
1017
1033
|
*/
|
|
1018
1034
|
function queryParams(params, flag) {
|
|
1019
|
-
|
|
1035
|
+
var _loop = function _loop() {
|
|
1020
1036
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
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;
|
|
1037
|
+
var element = params[key];
|
|
1038
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
1039
|
+
var dataParams = key.split('*number*');
|
|
1040
|
+
dataParams.forEach(function (value, index) {
|
|
1041
|
+
params[value] = element[index];
|
|
1042
|
+
});
|
|
1043
|
+
delete params[key];
|
|
1044
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
1045
|
+
var _dataParams = key.split('*address*');
|
|
1046
|
+
_dataParams.forEach(function (value, index) {
|
|
1047
|
+
params[value] = element.PCDCode[index];
|
|
1048
|
+
});
|
|
1049
|
+
delete params[key];
|
|
1050
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
1051
|
+
var _dataParams2 = key.split('*costType*');
|
|
1052
|
+
// eslint-disable-next-line prefer-destructuring
|
|
1053
|
+
params[_dataParams2[0]] = element[1];
|
|
1054
|
+
delete params[key];
|
|
1055
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
1056
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
1057
|
+
_dataParams3.forEach(function (value, index) {
|
|
1058
|
+
if (index === 0) {
|
|
1059
|
+
params[value] = moment__default['default'](element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
1061
1060
|
} else {
|
|
1062
|
-
params[
|
|
1063
|
-
params["qp-".concat(_dataParams5[0], "-in")] = null;
|
|
1061
|
+
params[value] = moment__default['default'](element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
1064
1062
|
}
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1063
|
+
});
|
|
1064
|
+
delete params[key];
|
|
1065
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
1066
|
+
var _dataParams4 = key.split('*');
|
|
1067
|
+
_dataParams4.forEach(function (value, index) {
|
|
1068
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
1069
|
+
});
|
|
1070
|
+
delete params[key];
|
|
1071
|
+
} else if (element && key.indexOf('_likeIn_') >= 0) {
|
|
1072
|
+
var _dataParams5 = key.split('_likeIn_');
|
|
1073
|
+
if (element.indexOf(',') >= 0) {
|
|
1074
|
+
params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
|
|
1075
|
+
params["qp-".concat(_dataParams5[0], "-like")] = null;
|
|
1076
|
+
} else {
|
|
1077
|
+
params["qp-".concat(_dataParams5[0], "-like")] = element;
|
|
1078
|
+
params["qp-".concat(_dataParams5[0], "-in")] = null;
|
|
1068
1079
|
}
|
|
1069
|
-
|
|
1080
|
+
delete params[key];
|
|
1081
|
+
} else if (Array.isArray(element)) {
|
|
1082
|
+
params[key] = element.join(',');
|
|
1083
|
+
}
|
|
1070
1084
|
}
|
|
1085
|
+
};
|
|
1086
|
+
for (var key in params) {
|
|
1087
|
+
_loop();
|
|
1071
1088
|
}
|
|
1072
1089
|
return flag ? params : qs.stringify(params);
|
|
1073
1090
|
}
|
|
@@ -2796,84 +2813,85 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
2796
2813
|
});
|
|
2797
2814
|
}
|
|
2798
2815
|
// 数组对象处理,对带有特殊标记的name进行处理
|
|
2799
|
-
|
|
2816
|
+
var _loop = function _loop() {
|
|
2800
2817
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
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;
|
|
2818
|
+
var element = params[key];
|
|
2819
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
2820
|
+
var dataParams = key.split('*number*');
|
|
2821
|
+
dataParams.forEach(function (value, index) {
|
|
2822
|
+
params[value] = element[index];
|
|
2823
|
+
});
|
|
2824
|
+
delete params[key];
|
|
2825
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
2826
|
+
var _dataParams = key.split('*address*');
|
|
2827
|
+
_dataParams.forEach(function (value, index) {
|
|
2828
|
+
params[value] = element.PCDCode[index];
|
|
2829
|
+
});
|
|
2830
|
+
delete params[key];
|
|
2831
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
2832
|
+
var _dataParams2 = key.split('*costType*');
|
|
2833
|
+
// eslint-disable-next-line prefer-destructuring
|
|
2834
|
+
params[_dataParams2[0]] = element[1];
|
|
2835
|
+
delete params[key];
|
|
2836
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
2837
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
2838
|
+
_dataParams3.forEach(function (value, index) {
|
|
2839
|
+
if (index === 0) {
|
|
2840
|
+
params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
2841
|
+
} else {
|
|
2842
|
+
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
2834
2843
|
}
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
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
|
-
}
|
|
2844
|
+
});
|
|
2845
|
+
delete params[key];
|
|
2846
|
+
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
2847
|
+
var _dataParams4 = key.split('*checkBox*');
|
|
2848
|
+
if (element) {
|
|
2849
|
+
params[_dataParams4[0]] = 0;
|
|
2850
|
+
}
|
|
2851
|
+
delete params[key];
|
|
2852
|
+
} else if (element && key.indexOf('*cascader*') >= 0) {
|
|
2853
|
+
var _dataParams5 = key.split('*cascader*');
|
|
2854
|
+
params[_dataParams5[0]] = element[element.length - 1];
|
|
2855
|
+
delete params[key];
|
|
2856
|
+
} else if (element && key.indexOf('*date*') >= 0) {
|
|
2857
|
+
var _dataParams6 = key.split('*date*');
|
|
2858
|
+
_dataParams6.forEach(function (value, index) {
|
|
2859
|
+
if (index === 0) {
|
|
2860
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
2866
2861
|
} else {
|
|
2867
|
-
params[
|
|
2862
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
2863
|
+
}
|
|
2864
|
+
});
|
|
2865
|
+
delete params[key];
|
|
2866
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
2867
|
+
var _dataParams7 = key.split('*');
|
|
2868
|
+
_dataParams7.forEach(function (value, index) {
|
|
2869
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
2870
|
+
});
|
|
2871
|
+
delete params[key];
|
|
2872
|
+
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
2873
|
+
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
2874
|
+
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
2875
|
+
if (params[key][0] === 'range') {
|
|
2876
|
+
if (params[key][1][0]) {
|
|
2877
|
+
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
2868
2878
|
}
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
} else
|
|
2873
|
-
|
|
2879
|
+
if (params[key][1][1]) {
|
|
2880
|
+
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
2881
|
+
}
|
|
2882
|
+
} else {
|
|
2883
|
+
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
2874
2884
|
}
|
|
2875
|
-
|
|
2885
|
+
delete params[key];
|
|
2886
|
+
} else if (Array.isArray(element)) {
|
|
2887
|
+
params[key] = element.join(',');
|
|
2888
|
+
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
2889
|
+
delete params[key];
|
|
2890
|
+
}
|
|
2876
2891
|
}
|
|
2892
|
+
};
|
|
2893
|
+
for (var key in params) {
|
|
2894
|
+
_loop();
|
|
2877
2895
|
}
|
|
2878
2896
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
2879
2897
|
pageSize: pageSize,
|
|
@@ -3270,7 +3288,7 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3270
3288
|
}
|
|
3271
3289
|
};
|
|
3272
3290
|
var themeColor = {
|
|
3273
|
-
color: '#
|
|
3291
|
+
color: '#02B56E'
|
|
3274
3292
|
};
|
|
3275
3293
|
var formItem = function formItem(list) {
|
|
3276
3294
|
if (isModalVisible && (list === null || list === void 0 ? void 0 : list.length)) {
|
|
@@ -4222,30 +4240,32 @@ var getItemDefaultWidth$1 = function getItemDefaultWidth(item) {
|
|
|
4222
4240
|
var _ref;
|
|
4223
4241
|
var defaultWidth = 200;
|
|
4224
4242
|
var lowerCaseKey = (_ref = item.key || item.dataIndex) === null || _ref === void 0 ? void 0 : _ref.toLowerCase();
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4243
|
+
if (lowerCaseKey) {
|
|
4244
|
+
switch (true) {
|
|
4245
|
+
case (item === null || item === void 0 ? void 0 : item.title) === '操作' || lowerCaseKey === 'operate':
|
|
4246
|
+
defaultWidth = 60;
|
|
4247
|
+
break;
|
|
4248
|
+
case lowerCaseKey.indexOf('number') > -1:
|
|
4249
|
+
case lowerCaseKey.indexOf('quantity') > -1:
|
|
4250
|
+
case lowerCaseKey.indexOf('amount') > -1:
|
|
4251
|
+
defaultWidth = 90;
|
|
4252
|
+
break;
|
|
4253
|
+
case lowerCaseKey.indexOf('no') > -1:
|
|
4254
|
+
defaultWidth = 200;
|
|
4255
|
+
break;
|
|
4256
|
+
case lowerCaseKey.indexOf('code') > -1:
|
|
4257
|
+
defaultWidth = 170;
|
|
4258
|
+
break;
|
|
4259
|
+
case lowerCaseKey.indexOf('time') > -1:
|
|
4260
|
+
defaultWidth = 130;
|
|
4261
|
+
break;
|
|
4262
|
+
case lowerCaseKey.indexOf('status') > -1:
|
|
4263
|
+
defaultWidth = 100;
|
|
4264
|
+
break;
|
|
4265
|
+
case lowerCaseKey.indexOf('user') > -1:
|
|
4266
|
+
defaultWidth = 130;
|
|
4267
|
+
break;
|
|
4268
|
+
}
|
|
4249
4269
|
}
|
|
4250
4270
|
return defaultWidth;
|
|
4251
4271
|
};
|
|
@@ -4270,8 +4290,6 @@ var getSelectDataList = function getSelectDataList(record, item, selectKey) {
|
|
|
4270
4290
|
}
|
|
4271
4291
|
return result;
|
|
4272
4292
|
};
|
|
4273
|
-
|
|
4274
|
-
var _excluded$3 = ["onResize", "width"];
|
|
4275
4293
|
var loadSelectSource = function loadSelectSource(url, params) {
|
|
4276
4294
|
return new Promise(function (resolve, reject) {
|
|
4277
4295
|
axios__default['default'].get("".concat(url, "?").concat(querystring.stringify(params))).then(function (result) {
|
|
@@ -4279,6 +4297,7 @@ var loadSelectSource = function loadSelectSource(url, params) {
|
|
|
4279
4297
|
result = result.data;
|
|
4280
4298
|
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') {
|
|
4281
4299
|
antd.message.error(result.msg);
|
|
4300
|
+
resolve(result);
|
|
4282
4301
|
return;
|
|
4283
4302
|
}
|
|
4284
4303
|
resolve(result);
|
|
@@ -4287,38 +4306,6 @@ var loadSelectSource = function loadSelectSource(url, params) {
|
|
|
4287
4306
|
});
|
|
4288
4307
|
});
|
|
4289
4308
|
};
|
|
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
|
-
};
|
|
4322
4309
|
var formatSource = function formatSource(reData, position, changePosition, changeSearchForm) {
|
|
4323
4310
|
var _reData$position;
|
|
4324
4311
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['code', 'name'];
|
|
@@ -4358,6 +4345,52 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
4358
4345
|
}) || [];
|
|
4359
4346
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
4360
4347
|
};
|
|
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
|
+
};
|
|
4361
4394
|
var initTableCode = {
|
|
4362
4395
|
'sku': ['skuSelect-tableOptionsToChoosePartCode', 'skuSelect-tableSelectedItemPartCode'],
|
|
4363
4396
|
'skc': ['skcSelect-tableOptionsToChoosePartCode', 'skcSelect-tableSelectedItemPartCode'],
|
|
@@ -4390,9 +4423,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
4390
4423
|
_props$businessType = props.businessType,
|
|
4391
4424
|
businessType = _props$businessType === void 0 ? 'sku' : _props$businessType,
|
|
4392
4425
|
_props$isAllowRepeate = props.isAllowRepeatedSelect,
|
|
4393
|
-
isAllowRepeatedSelect = _props$isAllowRepeate === void 0 ? false : _props$isAllowRepeate
|
|
4394
|
-
_props$noUseItemEanco = props.noUseItemEancode,
|
|
4395
|
-
noUseItemEancode = _props$noUseItemEanco === void 0 ? true : _props$noUseItemEanco;
|
|
4426
|
+
isAllowRepeatedSelect = _props$isAllowRepeate === void 0 ? false : _props$isAllowRepeate;
|
|
4396
4427
|
var _ref = requestConfig || {},
|
|
4397
4428
|
url = _ref.url,
|
|
4398
4429
|
otherParams = _ref.otherParams,
|
|
@@ -4549,76 +4580,74 @@ var AddSelect = function AddSelect(props) {
|
|
|
4549
4580
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
4550
4581
|
var result;
|
|
4551
4582
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
4552
|
-
while (1) {
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
_context.next = 3;
|
|
4559
|
-
break;
|
|
4560
|
-
}
|
|
4561
|
-
antd.message.warning('相同skc配码不可设置相同哦');
|
|
4562
|
-
return _context.abrupt("return", false);
|
|
4563
|
-
case 3:
|
|
4564
|
-
if (!(bType == 'spu')) {
|
|
4565
|
-
_context.next = 26;
|
|
4566
|
-
break;
|
|
4567
|
-
}
|
|
4568
|
-
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
4569
|
-
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
4570
|
-
}))) {
|
|
4571
|
-
_context.next = 7;
|
|
4572
|
-
break;
|
|
4573
|
-
}
|
|
4574
|
-
antd.message.warning('相同商品相同配码颜色不可设置相同哦');
|
|
4575
|
-
return _context.abrupt("return", false);
|
|
4576
|
-
case 7:
|
|
4577
|
-
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
4578
|
-
_context.next = 10;
|
|
4579
|
-
break;
|
|
4580
|
-
}
|
|
4581
|
-
antd.message.warning('请先选择颜色!');
|
|
4582
|
-
return _context.abrupt("return", false);
|
|
4583
|
-
case 10:
|
|
4584
|
-
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
4585
|
-
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
4586
|
-
}))) {
|
|
4587
|
-
_context.next = 13;
|
|
4588
|
-
break;
|
|
4589
|
-
}
|
|
4590
|
-
antd.message.warning('相同商品相同颜色配码不可设置相同哦');
|
|
4591
|
-
return _context.abrupt("return", false);
|
|
4592
|
-
case 13:
|
|
4593
|
-
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
4594
|
-
_context.next = 26;
|
|
4595
|
-
break;
|
|
4596
|
-
}
|
|
4597
|
-
result = true;
|
|
4598
|
-
_context.prev = 15;
|
|
4599
|
-
_context.next = 18;
|
|
4600
|
-
return checkSpuMatchCode({
|
|
4601
|
-
skcCode: recordItem[recordKey],
|
|
4602
|
-
matchingCode: changeValue,
|
|
4603
|
-
ext1: recordItem.colorName
|
|
4604
|
-
});
|
|
4605
|
-
case 18:
|
|
4606
|
-
result = _context.sent;
|
|
4607
|
-
result = true;
|
|
4608
|
-
_context.next = 25;
|
|
4583
|
+
while (1) switch (_context.prev = _context.next) {
|
|
4584
|
+
case 0:
|
|
4585
|
+
if (!(bType == 'skc' && tList.some(function (i) {
|
|
4586
|
+
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
4587
|
+
}))) {
|
|
4588
|
+
_context.next = 3;
|
|
4609
4589
|
break;
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4590
|
+
}
|
|
4591
|
+
antd.message.warning('相同skc配码不可设置相同哦');
|
|
4592
|
+
return _context.abrupt("return", false);
|
|
4593
|
+
case 3:
|
|
4594
|
+
if (!(bType == 'spu')) {
|
|
4595
|
+
_context.next = 26;
|
|
4596
|
+
break;
|
|
4597
|
+
}
|
|
4598
|
+
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
4599
|
+
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
4600
|
+
}))) {
|
|
4601
|
+
_context.next = 7;
|
|
4602
|
+
break;
|
|
4603
|
+
}
|
|
4604
|
+
antd.message.warning('相同商品相同配码颜色不可设置相同哦');
|
|
4605
|
+
return _context.abrupt("return", false);
|
|
4606
|
+
case 7:
|
|
4607
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
4608
|
+
_context.next = 10;
|
|
4609
|
+
break;
|
|
4610
|
+
}
|
|
4611
|
+
antd.message.warning('请先选择颜色!');
|
|
4612
|
+
return _context.abrupt("return", false);
|
|
4613
|
+
case 10:
|
|
4614
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
4615
|
+
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
4616
|
+
}))) {
|
|
4617
|
+
_context.next = 13;
|
|
4618
|
+
break;
|
|
4619
|
+
}
|
|
4620
|
+
antd.message.warning('相同商品相同颜色配码不可设置相同哦');
|
|
4621
|
+
return _context.abrupt("return", false);
|
|
4622
|
+
case 13:
|
|
4623
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
4624
|
+
_context.next = 26;
|
|
4625
|
+
break;
|
|
4626
|
+
}
|
|
4627
|
+
result = true;
|
|
4628
|
+
_context.prev = 15;
|
|
4629
|
+
_context.next = 18;
|
|
4630
|
+
return checkSpuMatchCode({
|
|
4631
|
+
skcCode: recordItem[recordKey],
|
|
4632
|
+
matchingCode: changeValue,
|
|
4633
|
+
ext1: recordItem.colorName
|
|
4634
|
+
});
|
|
4635
|
+
case 18:
|
|
4636
|
+
result = _context.sent;
|
|
4637
|
+
result = true;
|
|
4638
|
+
_context.next = 25;
|
|
4639
|
+
break;
|
|
4640
|
+
case 22:
|
|
4641
|
+
_context.prev = 22;
|
|
4642
|
+
_context.t0 = _context["catch"](15);
|
|
4643
|
+
result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
|
|
4644
|
+
case 25:
|
|
4645
|
+
return _context.abrupt("return", result);
|
|
4646
|
+
case 26:
|
|
4647
|
+
return _context.abrupt("return", true);
|
|
4648
|
+
case 27:
|
|
4649
|
+
case "end":
|
|
4650
|
+
return _context.stop();
|
|
4622
4651
|
}
|
|
4623
4652
|
}, _callee, null, [[15, 22]]);
|
|
4624
4653
|
}));
|
|
@@ -4810,29 +4839,27 @@ var AddSelect = function AddSelect(props) {
|
|
|
4810
4839
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
4811
4840
|
var isConformToTheRules, newPopValue;
|
|
4812
4841
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
4813
|
-
while (1) {
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4842
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
4843
|
+
case 0:
|
|
4844
|
+
_context2.next = 2;
|
|
4845
|
+
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
4846
|
+
case 2:
|
|
4847
|
+
isConformToTheRules = _context2.sent;
|
|
4848
|
+
if (isConformToTheRules) {
|
|
4849
|
+
record[item.dataIndex] = value;
|
|
4850
|
+
} else {
|
|
4851
|
+
record[item.dataIndex] = null;
|
|
4852
|
+
}
|
|
4853
|
+
newPopValue = popvalue.map(function (i, innerIndex) {
|
|
4854
|
+
if (innerIndex == index) {
|
|
4855
|
+
i[item.dataIndex] = record[item.dataIndex];
|
|
4824
4856
|
}
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
setPopValue(newPopValue);
|
|
4832
|
-
case 6:
|
|
4833
|
-
case "end":
|
|
4834
|
-
return _context2.stop();
|
|
4835
|
-
}
|
|
4857
|
+
return i;
|
|
4858
|
+
});
|
|
4859
|
+
setPopValue(newPopValue);
|
|
4860
|
+
case 6:
|
|
4861
|
+
case "end":
|
|
4862
|
+
return _context2.stop();
|
|
4836
4863
|
}
|
|
4837
4864
|
}, _callee2);
|
|
4838
4865
|
}));
|
|
@@ -4892,94 +4919,95 @@ var AddSelect = function AddSelect(props) {
|
|
|
4892
4919
|
});
|
|
4893
4920
|
}
|
|
4894
4921
|
// 数组对象处理,对带有特殊标记的name进行处理
|
|
4895
|
-
|
|
4922
|
+
var _loop = function _loop() {
|
|
4896
4923
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
4923
|
-
}
|
|
4924
|
-
});
|
|
4925
|
-
delete params[key];
|
|
4926
|
-
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
4927
|
-
var _dataParams4 = key.split('*checkBox*');
|
|
4928
|
-
if (element) {
|
|
4929
|
-
params[_dataParams4[0]] = 0;
|
|
4924
|
+
var element = params[key];
|
|
4925
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
4926
|
+
var dataParams = key.split('*number*');
|
|
4927
|
+
dataParams.forEach(function (value, index) {
|
|
4928
|
+
params[value] = element[index];
|
|
4929
|
+
});
|
|
4930
|
+
delete params[key];
|
|
4931
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
4932
|
+
var _dataParams = key.split('*address*');
|
|
4933
|
+
_dataParams.forEach(function (value, index) {
|
|
4934
|
+
params[value] = element.PCDCode[index];
|
|
4935
|
+
});
|
|
4936
|
+
delete params[key];
|
|
4937
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
4938
|
+
var _dataParams2 = key.split('*costType*');
|
|
4939
|
+
// eslint-disable-next-line prefer-destructuring
|
|
4940
|
+
params[_dataParams2[0]] = element[1];
|
|
4941
|
+
delete params[key];
|
|
4942
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
4943
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
4944
|
+
_dataParams3.forEach(function (value, index) {
|
|
4945
|
+
if (index === 0) {
|
|
4946
|
+
params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
4947
|
+
} else {
|
|
4948
|
+
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
4930
4949
|
}
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
_dataParams7.forEach(function (value, index) {
|
|
4949
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
4950
|
-
});
|
|
4951
|
-
delete params[key];
|
|
4952
|
-
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
4953
|
-
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
4954
|
-
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
4955
|
-
if (params[key][0] === 'range') {
|
|
4956
|
-
if (params[key][1][0]) {
|
|
4957
|
-
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
4958
|
-
}
|
|
4959
|
-
if (params[key][1][1]) {
|
|
4960
|
-
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
4961
|
-
}
|
|
4950
|
+
});
|
|
4951
|
+
delete params[key];
|
|
4952
|
+
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
4953
|
+
var _dataParams4 = key.split('*checkBox*');
|
|
4954
|
+
if (element) {
|
|
4955
|
+
params[_dataParams4[0]] = 0;
|
|
4956
|
+
}
|
|
4957
|
+
delete params[key];
|
|
4958
|
+
} else if (element && key.indexOf('*cascader*') >= 0) {
|
|
4959
|
+
var _dataParams5 = key.split('*cascader*');
|
|
4960
|
+
params[_dataParams5[0]] = element[element.length - 1];
|
|
4961
|
+
delete params[key];
|
|
4962
|
+
} else if (element && key.indexOf('*date*') >= 0) {
|
|
4963
|
+
var _dataParams6 = key.split('*date*');
|
|
4964
|
+
_dataParams6.forEach(function (value, index) {
|
|
4965
|
+
if (index === 0) {
|
|
4966
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
4962
4967
|
} else {
|
|
4963
|
-
params[
|
|
4968
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
4964
4969
|
}
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
+
});
|
|
4971
|
+
delete params[key];
|
|
4972
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
4973
|
+
var _dataParams7 = key.split('*');
|
|
4974
|
+
_dataParams7.forEach(function (value, index) {
|
|
4975
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
4976
|
+
});
|
|
4977
|
+
delete params[key];
|
|
4978
|
+
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
4979
|
+
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
4980
|
+
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
4981
|
+
if (params[key][0] === 'range') {
|
|
4982
|
+
if (params[key][1][0]) {
|
|
4983
|
+
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
4984
|
+
}
|
|
4985
|
+
if (params[key][1][1]) {
|
|
4986
|
+
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
4987
|
+
}
|
|
4988
|
+
} else {
|
|
4989
|
+
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
4970
4990
|
}
|
|
4971
|
-
|
|
4991
|
+
delete params[key];
|
|
4992
|
+
} else if (Array.isArray(element)) {
|
|
4993
|
+
params[key] = element.join(',');
|
|
4994
|
+
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
4995
|
+
delete params[key];
|
|
4996
|
+
}
|
|
4972
4997
|
}
|
|
4998
|
+
};
|
|
4999
|
+
for (var key in params) {
|
|
5000
|
+
_loop();
|
|
4973
5001
|
}
|
|
4974
5002
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
4975
5003
|
pageSize: pageSize,
|
|
4976
5004
|
currentPage: currentPage
|
|
4977
5005
|
}, otherParams), fixedParam), params);
|
|
4978
5006
|
axios__default['default'].get("".concat(url, "?").concat(querystring.stringify(queryParams))).then(function (result) {
|
|
4979
|
-
var
|
|
5007
|
+
var _result3, _result4;
|
|
4980
5008
|
setFetching(false);
|
|
4981
5009
|
result = result.data;
|
|
4982
|
-
if (((
|
|
5010
|
+
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') {
|
|
4983
5011
|
antd.message.error(result.msg);
|
|
4984
5012
|
return;
|
|
4985
5013
|
}
|
|
@@ -5060,65 +5088,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
5060
5088
|
};
|
|
5061
5089
|
|
|
5062
5090
|
React.useEffect(function () {
|
|
5063
|
-
|
|
5064
|
-
|
|
5065
|
-
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
|
|
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
|
-
}
|
|
5091
|
+
var pList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.promiseLoadList) || [];
|
|
5092
|
+
if (!(pList === null || pList === void 0 ? void 0 : pList.length)) return;
|
|
5093
|
+
var list = pList.map(function (i) {
|
|
5094
|
+
return loadSelectSource(i.url, i.params);
|
|
5095
|
+
});
|
|
5096
|
+
Promise.all(list).then(function (x) {
|
|
5097
|
+
formatFormSourceList(x, pList, tableSearchForm);
|
|
5098
|
+
});
|
|
5122
5099
|
}, [businessType]);
|
|
5123
5100
|
React.useEffect(function () {
|
|
5124
5101
|
if (value) {
|
|
@@ -5399,10 +5376,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
5399
5376
|
setSelectedRowKeys([]);
|
|
5400
5377
|
} else {
|
|
5401
5378
|
setPopValue(popvalue.filter(function (item) {
|
|
5402
|
-
return item
|
|
5379
|
+
return item[selectRowKey] !== record[selectRowKey];
|
|
5403
5380
|
}));
|
|
5404
5381
|
setSelectedRowKeys(_toConsumableArray(selectedRowKeys.filter(function (item) {
|
|
5405
|
-
return item !== record
|
|
5382
|
+
return item !== record[selectRowKey];
|
|
5406
5383
|
})));
|
|
5407
5384
|
}
|
|
5408
5385
|
};
|
|
@@ -6426,72 +6403,70 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
6426
6403
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
6427
6404
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
6428
6405
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
6429
|
-
while (1) {
|
|
6430
|
-
|
|
6431
|
-
|
|
6432
|
-
|
|
6433
|
-
|
|
6434
|
-
|
|
6435
|
-
|
|
6436
|
-
|
|
6437
|
-
|
|
6438
|
-
|
|
6439
|
-
|
|
6440
|
-
|
|
6441
|
-
|
|
6442
|
-
|
|
6443
|
-
|
|
6444
|
-
|
|
6445
|
-
|
|
6446
|
-
|
|
6447
|
-
|
|
6448
|
-
|
|
6449
|
-
|
|
6450
|
-
|
|
6451
|
-
|
|
6452
|
-
|
|
6453
|
-
|
|
6454
|
-
|
|
6455
|
-
|
|
6456
|
-
|
|
6457
|
-
|
|
6458
|
-
|
|
6459
|
-
|
|
6460
|
-
|
|
6461
|
-
|
|
6462
|
-
|
|
6463
|
-
|
|
6464
|
-
|
|
6465
|
-
|
|
6466
|
-
|
|
6467
|
-
|
|
6468
|
-
messageInfo
|
|
6469
|
-
|
|
6470
|
-
|
|
6471
|
-
|
|
6472
|
-
|
|
6473
|
-
|
|
6474
|
-
|
|
6475
|
-
|
|
6476
|
-
|
|
6477
|
-
|
|
6478
|
-
|
|
6479
|
-
|
|
6480
|
-
|
|
6481
|
-
|
|
6482
|
-
|
|
6483
|
-
antd.message.success(initSuccessMessage);
|
|
6484
|
-
}
|
|
6406
|
+
while (1) switch (_context.prev = _context.next) {
|
|
6407
|
+
case 0:
|
|
6408
|
+
if (data === null || data === void 0 ? void 0 : data.length) {
|
|
6409
|
+
_context.next = 3;
|
|
6410
|
+
break;
|
|
6411
|
+
}
|
|
6412
|
+
antd.message.warning('至少录入一条数据');
|
|
6413
|
+
return _context.abrupt("return");
|
|
6414
|
+
case 3:
|
|
6415
|
+
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
6416
|
+
return d.skuCode && d.name;
|
|
6417
|
+
})) {
|
|
6418
|
+
_context.next = 6;
|
|
6419
|
+
break;
|
|
6420
|
+
}
|
|
6421
|
+
antd.message.warning('请选择商品!');
|
|
6422
|
+
return _context.abrupt("return");
|
|
6423
|
+
case 6:
|
|
6424
|
+
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
6425
|
+
return d.count;
|
|
6426
|
+
})) {
|
|
6427
|
+
_context.next = 9;
|
|
6428
|
+
break;
|
|
6429
|
+
}
|
|
6430
|
+
antd.message.warning('请填写商品数量!');
|
|
6431
|
+
return _context.abrupt("return");
|
|
6432
|
+
case 9:
|
|
6433
|
+
_context.next = 11;
|
|
6434
|
+
return isSkuCanEntry(data);
|
|
6435
|
+
case 11:
|
|
6436
|
+
canEntryObject = _context.sent;
|
|
6437
|
+
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
6438
|
+
_context.next = 16;
|
|
6439
|
+
break;
|
|
6440
|
+
}
|
|
6441
|
+
messageInfo = (canEntryObject === null || canEntryObject === void 0 ? void 0 : (_canEntryObject$error = canEntryObject.errorList) === null || _canEntryObject$error === void 0 ? void 0 : _canEntryObject$error.length) && (canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.errorList.map(function (i) {
|
|
6442
|
+
return /*#__PURE__*/React__default['default'].createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
|
|
6443
|
+
}));
|
|
6444
|
+
messageInfo && antd.message.warning({
|
|
6445
|
+
content: messageInfo,
|
|
6446
|
+
duration: 6
|
|
6447
|
+
});
|
|
6448
|
+
return _context.abrupt("return");
|
|
6449
|
+
case 16:
|
|
6450
|
+
setLoading(true);
|
|
6451
|
+
onSaveCallback(data).then(function (res) {
|
|
6452
|
+
{
|
|
6453
|
+
var _Object$keys;
|
|
6454
|
+
var initSuccessMessage = '保存成功';
|
|
6455
|
+
var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
|
|
6456
|
+
if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
|
|
6457
|
+
(rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? antd.message.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
|
|
6458
|
+
} else {
|
|
6459
|
+
antd.message.success(initSuccessMessage);
|
|
6485
6460
|
}
|
|
6486
|
-
|
|
6487
|
-
|
|
6488
|
-
|
|
6489
|
-
|
|
6490
|
-
|
|
6491
|
-
|
|
6492
|
-
|
|
6493
|
-
|
|
6494
|
-
|
|
6461
|
+
}
|
|
6462
|
+
setLoading(false);
|
|
6463
|
+
}).catch(function (Error) {
|
|
6464
|
+
antd.message.error(Error);
|
|
6465
|
+
setLoading(false);
|
|
6466
|
+
});
|
|
6467
|
+
case 18:
|
|
6468
|
+
case "end":
|
|
6469
|
+
return _context.stop();
|
|
6495
6470
|
}
|
|
6496
6471
|
}, _callee);
|
|
6497
6472
|
}));
|
|
@@ -8735,9 +8710,16 @@ var BusinessSearchSelect$1 = /*#__PURE__*/React__default['default'].memo(Busines
|
|
|
8735
8710
|
// import { getCurrentTargetBgId } from '@/utils/LocalstorageUtils';
|
|
8736
8711
|
function handleSelectColumn(c, parentProps) {
|
|
8737
8712
|
var result = c;
|
|
8713
|
+
var showColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.showColumns) || [];
|
|
8738
8714
|
var exceptColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.exceptColumns) || [];
|
|
8739
8715
|
var coverColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.coverColumns) || [];
|
|
8740
8716
|
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
|
+
}
|
|
8741
8723
|
// 过滤不需要展示内容
|
|
8742
8724
|
if (exceptColumns === null || exceptColumns === void 0 ? void 0 : exceptColumns.length) {
|
|
8743
8725
|
result = result.filter(function (i) {
|
|
@@ -8756,6 +8738,57 @@ function handleSelectColumn(c, parentProps) {
|
|
|
8756
8738
|
}
|
|
8757
8739
|
return result;
|
|
8758
8740
|
}
|
|
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
|
+
}
|
|
8759
8792
|
var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
8760
8793
|
var _parProps$requestConf, _parProps$requestConf2;
|
|
8761
8794
|
var selectProps = {
|
|
@@ -8862,234 +8895,258 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
8862
8895
|
dataIndex: 'propertyNameAndValue'
|
|
8863
8896
|
}]);
|
|
8864
8897
|
var mTpSelectColumn = handleSelectColumn(initialSelectColumn, parProps);
|
|
8865
|
-
var
|
|
8866
|
-
|
|
8867
|
-
|
|
8868
|
-
|
|
8869
|
-
|
|
8870
|
-
|
|
8871
|
-
|
|
8872
|
-
|
|
8873
|
-
|
|
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);
|
|
8898
|
+
var initialTableColumn = [{
|
|
8899
|
+
title: 'SKU编码',
|
|
8900
|
+
width: 150,
|
|
8901
|
+
dataIndex: 'skuCode'
|
|
8902
|
+
}, {
|
|
8903
|
+
title: 'SKU名称',
|
|
8904
|
+
width: 200,
|
|
8905
|
+
ellipsis: {
|
|
8906
|
+
showTitle: false
|
|
8886
8907
|
},
|
|
8887
|
-
|
|
8888
|
-
|
|
8889
|
-
|
|
8890
|
-
|
|
8891
|
-
|
|
8892
|
-
|
|
8893
|
-
|
|
8894
|
-
|
|
8895
|
-
|
|
8896
|
-
|
|
8897
|
-
|
|
8898
|
-
|
|
8899
|
-
|
|
8900
|
-
|
|
8901
|
-
|
|
8902
|
-
|
|
8903
|
-
|
|
8904
|
-
|
|
8905
|
-
|
|
8906
|
-
|
|
8907
|
-
|
|
8908
|
-
|
|
8909
|
-
|
|
8908
|
+
render: function render(text) {
|
|
8909
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
8910
|
+
placement: "topLeft",
|
|
8911
|
+
title: text
|
|
8912
|
+
}, text);
|
|
8913
|
+
},
|
|
8914
|
+
dataIndex: 'name'
|
|
8915
|
+
}, {
|
|
8916
|
+
title: '图片',
|
|
8917
|
+
dataIndex: 'itemUrl',
|
|
8918
|
+
width: 200,
|
|
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);
|
|
9033
|
+
},
|
|
9034
|
+
dataIndex: 'brandName'
|
|
9035
|
+
}]);
|
|
9036
|
+
var mTpTableColumn = handleSelectColumn(initialTableColumn, parProps);
|
|
9037
|
+
var initialTableSearchForm = [{
|
|
9038
|
+
name: 'qp-skuCode-like',
|
|
9039
|
+
label: 'SKU编码'
|
|
9040
|
+
}, {
|
|
9041
|
+
name: 'qp-skuName-like',
|
|
9042
|
+
label: 'SKU名称'
|
|
9043
|
+
}].concat(_toConsumableArray(isNoUseItemBarcode ? [] : [{
|
|
9044
|
+
name: 'qp-code-in',
|
|
9045
|
+
label: '商品条码',
|
|
9046
|
+
field: {
|
|
9047
|
+
type: 'multipleQueryInput',
|
|
9048
|
+
props: _objectSpread2({}, ((_parProps$requestConf = parProps.requestConfig) === null || _parProps$requestConf === void 0 ? void 0 : _parProps$requestConf.itemEancodeValueRequestConfig) || {})
|
|
9049
|
+
}
|
|
9050
|
+
}]), [{
|
|
9051
|
+
name: 'qp-brandId-in',
|
|
9052
|
+
type: 'select',
|
|
9053
|
+
label: '品牌',
|
|
9054
|
+
field: {
|
|
8910
9055
|
type: 'select',
|
|
8911
|
-
|
|
8912
|
-
|
|
8913
|
-
|
|
8914
|
-
|
|
8915
|
-
|
|
8916
|
-
|
|
8917
|
-
|
|
8918
|
-
|
|
8919
|
-
|
|
8920
|
-
|
|
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
|
-
}
|
|
9056
|
+
props: {
|
|
9057
|
+
mode: 'multiple',
|
|
9058
|
+
notFoundContent: '暂无数据',
|
|
9059
|
+
allowClear: true,
|
|
9060
|
+
showSearch: true,
|
|
9061
|
+
showArrow: true,
|
|
9062
|
+
maxTagCount: 1,
|
|
9063
|
+
optionFilterProp: 'children',
|
|
9064
|
+
filterOption: function filterOption(input, option) {
|
|
9065
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
8951
9066
|
}
|
|
8952
9067
|
}
|
|
8953
|
-
}
|
|
8954
|
-
|
|
8955
|
-
|
|
8956
|
-
|
|
8957
|
-
|
|
8958
|
-
|
|
8959
|
-
|
|
8960
|
-
|
|
8961
|
-
|
|
8962
|
-
|
|
8963
|
-
|
|
8964
|
-
|
|
8965
|
-
|
|
8966
|
-
|
|
8967
|
-
|
|
8968
|
-
|
|
8969
|
-
|
|
8970
|
-
|
|
8971
|
-
|
|
8972
|
-
|
|
8973
|
-
|
|
8974
|
-
|
|
8975
|
-
|
|
8976
|
-
|
|
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
|
-
}));
|
|
8986
|
-
}
|
|
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);
|
|
9068
|
+
}
|
|
9069
|
+
}, {
|
|
9070
|
+
name: 'qp-categoryId-in',
|
|
9071
|
+
type: 'treeSelect',
|
|
9072
|
+
label: '类目',
|
|
9073
|
+
field: {
|
|
9074
|
+
type: 'treeSelect',
|
|
9075
|
+
props: {
|
|
9076
|
+
treeData: [],
|
|
9077
|
+
treeCheckable: true,
|
|
9078
|
+
showSearch: true,
|
|
9079
|
+
allowClear: true,
|
|
9080
|
+
showArrow: true,
|
|
9081
|
+
treeNodeFilterProp: 'title',
|
|
9082
|
+
treeDefaultExpandAll: true,
|
|
9083
|
+
maxTagCount: 1,
|
|
9084
|
+
placeholder: '请选择',
|
|
9085
|
+
style: {
|
|
9086
|
+
width: '100%'
|
|
9087
|
+
},
|
|
9088
|
+
dropdownStyle: {
|
|
9089
|
+
maxHeight: 400,
|
|
9090
|
+
maxWidth: 100,
|
|
9091
|
+
overflow: 'auto'
|
|
9092
|
+
}
|
|
9025
9093
|
}
|
|
9026
|
-
}
|
|
9027
|
-
|
|
9028
|
-
|
|
9029
|
-
|
|
9030
|
-
|
|
9031
|
-
|
|
9032
|
-
|
|
9033
|
-
|
|
9034
|
-
|
|
9035
|
-
|
|
9036
|
-
|
|
9037
|
-
|
|
9038
|
-
|
|
9039
|
-
|
|
9040
|
-
|
|
9041
|
-
|
|
9042
|
-
|
|
9043
|
-
|
|
9044
|
-
|
|
9045
|
-
|
|
9046
|
-
|
|
9047
|
-
|
|
9048
|
-
|
|
9049
|
-
|
|
9050
|
-
|
|
9051
|
-
|
|
9052
|
-
|
|
9053
|
-
|
|
9054
|
-
|
|
9055
|
-
|
|
9056
|
-
|
|
9057
|
-
|
|
9058
|
-
|
|
9059
|
-
|
|
9060
|
-
|
|
9061
|
-
|
|
9062
|
-
|
|
9063
|
-
|
|
9064
|
-
|
|
9065
|
-
},
|
|
9066
|
-
|
|
9067
|
-
|
|
9068
|
-
|
|
9069
|
-
|
|
9070
|
-
|
|
9071
|
-
|
|
9072
|
-
|
|
9073
|
-
|
|
9074
|
-
|
|
9075
|
-
|
|
9076
|
-
|
|
9077
|
-
|
|
9078
|
-
|
|
9079
|
-
|
|
9080
|
-
|
|
9081
|
-
|
|
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
|
|
9094
|
+
}
|
|
9095
|
+
}], _toConsumableArray((parProps === null || parProps === void 0 ? void 0 : parProps.addTableSearchForm) || []));
|
|
9096
|
+
var mTpTableSearchForm = handleSearchForm(initialTableSearchForm, parProps);
|
|
9097
|
+
var initialPromiseLoadList = [{
|
|
9098
|
+
url: "/items/brand/queryBrandList",
|
|
9099
|
+
params: {
|
|
9100
|
+
pageSize: 5000,
|
|
9101
|
+
currentPage: 1,
|
|
9102
|
+
'ctl-withAuth': true
|
|
9103
|
+
},
|
|
9104
|
+
resType: 'list',
|
|
9105
|
+
resPosition: isNoUseItemBarcode ? 2 : 3,
|
|
9106
|
+
resKeyValue: ['id', 'name']
|
|
9107
|
+
}, {
|
|
9108
|
+
url: "/items/category/queryCategoryTree",
|
|
9109
|
+
params: {
|
|
9110
|
+
pageSize: 5000,
|
|
9111
|
+
currentPage: 1
|
|
9112
|
+
},
|
|
9113
|
+
resType: 'treeList',
|
|
9114
|
+
resPosition: isNoUseItemBarcode ? 3 : 4
|
|
9115
|
+
}];
|
|
9116
|
+
var mTpPromiseLoadList = handleFormSearchSourceLoad(initialPromiseLoadList, parProps);
|
|
9117
|
+
var props = {
|
|
9118
|
+
buttonText: parProps.buttonText || '新增',
|
|
9119
|
+
buttonProps: parProps.buttonProps || {},
|
|
9120
|
+
tableCodeList: parProps.tableCodeList || [],
|
|
9121
|
+
value: value,
|
|
9122
|
+
// labelInValue: true, // 非必填 默认为false
|
|
9123
|
+
requestConfig: _objectSpread2({
|
|
9124
|
+
url: "/items/sku/pager/v2",
|
|
9125
|
+
filter: 'qp-name-like',
|
|
9126
|
+
otherParams: _objectSpread2({
|
|
9127
|
+
'qp-combination-eq': false,
|
|
9128
|
+
'qp-approveStatus-eq': 1,
|
|
9129
|
+
'qp-status-eq': 1
|
|
9130
|
+
}, (parProps === null || parProps === void 0 ? void 0 : (_parProps$requestConf2 = parProps.requestConfig) === null || _parProps$requestConf2 === void 0 ? void 0 : _parProps$requestConf2.addOtherParams) || {}),
|
|
9131
|
+
mappingTextField: 'name',
|
|
9132
|
+
mappingValueField: 'skuCode'
|
|
9133
|
+
}, parProps.requestConfig),
|
|
9134
|
+
selectProps: selectProps,
|
|
9135
|
+
onChange: function onChange(value) {
|
|
9136
|
+
console.log(value);
|
|
9137
|
+
setValue(value);
|
|
9138
|
+
},
|
|
9139
|
+
beforeShowModal: parProps === null || parProps === void 0 ? void 0 : parProps.beforeShowModal,
|
|
9140
|
+
onSaveCallback: parProps.onSaveCallback,
|
|
9141
|
+
businessType: 'sku',
|
|
9142
|
+
isAllowRepeatedSelect: !!(parProps === null || parProps === void 0 ? void 0 : parProps.isAllowRepeatedSelect)
|
|
9143
|
+
};
|
|
9144
|
+
var modalTableProps = {
|
|
9145
|
+
modalTableTitle: '选择商品',
|
|
9146
|
+
tableSearchForm: mTpTableSearchForm,
|
|
9147
|
+
tableColumns: mTpTableColumn,
|
|
9148
|
+
selectColumn: mTpSelectColumn,
|
|
9149
|
+
promiseLoadList: mTpPromiseLoadList
|
|
9093
9150
|
};
|
|
9094
9151
|
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(AddSelect, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
9095
9152
|
modalTableProps: modalTableProps
|
|
@@ -9165,6 +9222,45 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
|
|
|
9165
9222
|
dataIndex: 'count'
|
|
9166
9223
|
}];
|
|
9167
9224
|
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
|
+
}];
|
|
9168
9264
|
var props = {
|
|
9169
9265
|
buttonText: parProps.buttonText || '新增',
|
|
9170
9266
|
buttonProps: parProps.buttonProps || {},
|
|
@@ -9369,7 +9465,8 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
|
|
|
9369
9465
|
},
|
|
9370
9466
|
dataIndex: 'brandName'
|
|
9371
9467
|
}],
|
|
9372
|
-
selectColumn: mTpSelectColumn
|
|
9468
|
+
selectColumn: mTpSelectColumn,
|
|
9469
|
+
promiseLoadList: initialPromiseLoadList
|
|
9373
9470
|
};
|
|
9374
9471
|
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(AddSelect, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
9375
9472
|
modalTableProps: modalTableProps
|
|
@@ -9454,6 +9551,44 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
9454
9551
|
dataIndex: 'className'
|
|
9455
9552
|
}];
|
|
9456
9553
|
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
|
+
}];
|
|
9457
9592
|
var props = {
|
|
9458
9593
|
buttonText: parProps.buttonText || '新增',
|
|
9459
9594
|
buttonProps: parProps.buttonProps || {},
|
|
@@ -9643,7 +9778,8 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
9643
9778
|
},
|
|
9644
9779
|
dataIndex: 'className'
|
|
9645
9780
|
}],
|
|
9646
|
-
selectColumn: mTpSelectColumn
|
|
9781
|
+
selectColumn: mTpSelectColumn,
|
|
9782
|
+
promiseLoadList: initialPromiseLoadList
|
|
9647
9783
|
};
|
|
9648
9784
|
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(AddSelect, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
9649
9785
|
modalTableProps: modalTableProps
|
|
@@ -9862,44 +9998,42 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
9862
9998
|
var _ctx$form;
|
|
9863
9999
|
var resData, coverData, data, dataList;
|
|
9864
10000
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9865
|
-
while (1) {
|
|
9866
|
-
|
|
9867
|
-
|
|
9868
|
-
|
|
9869
|
-
|
|
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;
|
|
10001
|
+
while (1) switch (_context.prev = _context.next) {
|
|
10002
|
+
case 0:
|
|
10003
|
+
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
10004
|
+
if (!(resData.status === '0' || resData.code === '000000')) {
|
|
10005
|
+
_context.next = 13;
|
|
9885
10006
|
break;
|
|
9886
|
-
|
|
9887
|
-
|
|
9888
|
-
|
|
9889
|
-
|
|
9890
|
-
}) || [];
|
|
9891
|
-
case 11:
|
|
9892
|
-
_context.next = 14;
|
|
10007
|
+
}
|
|
10008
|
+
data = resData.data;
|
|
10009
|
+
if (!remoteSource.converter) {
|
|
10010
|
+
_context.next = 9;
|
|
9893
10011
|
break;
|
|
9894
|
-
|
|
9895
|
-
|
|
9896
|
-
|
|
9897
|
-
|
|
9898
|
-
|
|
9899
|
-
|
|
9900
|
-
|
|
9901
|
-
|
|
9902
|
-
|
|
10012
|
+
}
|
|
10013
|
+
_context.next = 6;
|
|
10014
|
+
return remoteSource.converter({
|
|
10015
|
+
data: [data]
|
|
10016
|
+
});
|
|
10017
|
+
case 6:
|
|
10018
|
+
coverData = _context.sent;
|
|
10019
|
+
_context.next = 11;
|
|
10020
|
+
break;
|
|
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();
|
|
9903
10037
|
}
|
|
9904
10038
|
}, _callee);
|
|
9905
10039
|
}));
|
|
@@ -13873,7 +14007,7 @@ var AllFunc = function AllFunc(props) {
|
|
|
13873
14007
|
})))));
|
|
13874
14008
|
};
|
|
13875
14009
|
|
|
13876
|
-
var css_248z$g = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #
|
|
14010
|
+
var css_248z$g = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #02B56E;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.dark .action:hover {\n background: #252a3d;\n}\n.dark .action .opened {\n background: #252a3d;\n}\n.warp_allfunc {\n z-index: 100;\n}\n.warp_allfunc .drawerWarp {\n -moz-column-count: 4;\n column-count: 4;\n}\n.warp_allfunc .drawer_header_warp .ant-list-header {\n padding: 0 0 0 10px !important;\n line-height: 40px;\n border: 0px !important;\n}\n.warp_allfunc .drawer_header_warp .ant-list-header b {\n width: 100%;\n display: inline-block;\n border-bottom: 1px solid #f0f0f0;\n}\n.warp_allfunc .drawer_header_warp .ant-list-item {\n padding: 0 0 0 10px !important;\n line-height: 30px !important;\n}\n.warp_allfunc .drawer_header_warp .ant-drawer-close {\n position: absolute;\n right: 0;\n}\n.warp_allfunc .p {\n color: #b1bad4;\n font-weight: 400;\n font-size: 12px;\n margin-bottom: 10px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 16px;\n text-align: left;\n opacity: 0.8;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n text-align: center;\n margin-left: 8px;\n}\n.warp_allfunc .btn {\n display: flex;\n align-items: center;\n height: 44px;\n color: #b1bad4;\n background: #10234c;\n border-radius: 8px;\n width: 130px;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.warp_allfunc .btn:hover,\n.warp_allfunc .btnSpan1:hover,\n.warp_allfunc .btnSpan2:hover {\n cursor: pointer;\n color: #b1bad4;\n}\n.warp_allfunc .btnSpan1 {\n margin: 0 7px;\n}\n.allfunc_drawcontent .allFunsList {\n margin-bottom: 10px;\n}\n.allfunc_drawcontent .allFunsListWarp {\n width: 200px;\n margin-right: 10px;\n border-radius: 4px;\n -moz-column-break-inside: avoid;\n break-inside: avoid;\n}\n.allfunc_drawcontent .drawerWarp_p {\n color: #8c8c8c;\n font-weight: 400;\n font-size: 14px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 20px;\n text-align: left;\n}\n";
|
|
13877
14011
|
styleInject(css_248z$g);
|
|
13878
14012
|
|
|
13879
14013
|
var allfunc = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%220%200%2024%2024%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3Eicon%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Crect%20id%3D%22path-1%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3C%2Frect%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22%E5%85%A8%E5%B1%80%E5%AF%BC%E8%88%AA%E7%9B%B8%E5%85%B3%E5%8A%9F%E8%83%BD%E9%9C%80%E6%B1%82%E8%AE%BE%E8%AE%A1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E8%87%AA%E5%AE%9A%E4%B9%89%E5%B7%A6%E4%BE%A7%E8%8F%9C%E5%8D%95%22%20transform%3D%22translate%28-20.000000%2C%20-1016.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-6%22%20transform%3D%22translate%280.000000%2C%2060.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-5%E5%A4%87%E4%BB%BD%22%20transform%3D%22translate%280.000000%2C%20900.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E6%9F%A5%E7%9C%8B%E5%85%A8%E9%83%A8%E5%8A%9F%E8%83%BD%22%20transform%3D%22translate%2810.000000%2C%2046.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22icon%22%20transform%3D%22translate%2810.000000%2C%2010.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cmask%20id%3D%22mask-2%22%20fill%3D%22white%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fmask%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20id%3D%22navigation-icon-allfunctions%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22category%22%20mask%3D%22url%28%23mask-2%29%22%20fill%3D%22%23B1BAD4%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22translate%283.000000%2C%205.000000%29%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M2.24999999%2C12.3585414%20L2.24999999%2C14%20L0%2C14%20L0%2C12.3585414%20L2.24999999%2C12.3585414%20Z%20M18%2C12.3585414%20L18%2C14%20L3.375%2C14%20L3.375%2C12.3585414%20L18%2C12.3585414%20Z%20M2.24999999%2C6.17954431%20L2.24999999%2C7.82100286%20L0%2C7.82100286%20L0%2C6.17954431%20L2.24999999%2C6.17954431%20L2.24999999%2C6.17954431%20Z%20M18%2C6.17954431%20L18%2C7.82100286%20L3.375%2C7.82100286%20L3.375%2C6.17954431%20L18%2C6.17954431%20L18%2C6.17954431%20Z%20M2.24999999%2C0%20L2.24999999%2C1.64145855%20L0%2C1.64145855%20L0%2C0%20L2.24999999%2C0%20L2.24999999%2C0%20Z%20M18%2C0%20L18%2C1.64145855%20L3.375%2C1.64145855%20L3.375%2C0%20L18%2C0%20L18%2C0%20Z%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
@@ -14089,21 +14223,19 @@ function _outLogin() {
|
|
|
14089
14223
|
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
14090
14224
|
var res;
|
|
14091
14225
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
14092
|
-
while (1) {
|
|
14093
|
-
|
|
14094
|
-
|
|
14095
|
-
|
|
14096
|
-
|
|
14097
|
-
|
|
14098
|
-
|
|
14099
|
-
|
|
14100
|
-
|
|
14101
|
-
|
|
14102
|
-
|
|
14103
|
-
|
|
14104
|
-
|
|
14105
|
-
return _context.stop();
|
|
14106
|
-
}
|
|
14226
|
+
while (1) switch (_context.prev = _context.next) {
|
|
14227
|
+
case 0:
|
|
14228
|
+
_context.next = 2;
|
|
14229
|
+
return axios__default['default']({
|
|
14230
|
+
url: '/user/web/loginOut',
|
|
14231
|
+
method: 'GET'
|
|
14232
|
+
});
|
|
14233
|
+
case 2:
|
|
14234
|
+
res = _context.sent;
|
|
14235
|
+
return _context.abrupt("return", res);
|
|
14236
|
+
case 4:
|
|
14237
|
+
case "end":
|
|
14238
|
+
return _context.stop();
|
|
14107
14239
|
}
|
|
14108
14240
|
}, _callee);
|
|
14109
14241
|
}));
|
|
@@ -14232,31 +14364,29 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
14232
14364
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
14233
14365
|
var sessionId;
|
|
14234
14366
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
14235
|
-
while (1) {
|
|
14236
|
-
|
|
14237
|
-
|
|
14238
|
-
|
|
14239
|
-
|
|
14240
|
-
|
|
14241
|
-
|
|
14242
|
-
|
|
14243
|
-
|
|
14244
|
-
|
|
14367
|
+
while (1) switch (_context.prev = _context.next) {
|
|
14368
|
+
case 0:
|
|
14369
|
+
_context.next = 2;
|
|
14370
|
+
return getSessionId();
|
|
14371
|
+
case 2:
|
|
14372
|
+
sessionId = _context.sent;
|
|
14373
|
+
_context.next = 5;
|
|
14374
|
+
return outLogin({
|
|
14375
|
+
sessionId: sessionId
|
|
14376
|
+
});
|
|
14377
|
+
case 5:
|
|
14378
|
+
// @ts-ignore
|
|
14379
|
+
if (BUILD_TYPE) {
|
|
14380
|
+
antd.message.success('退出登录成功');
|
|
14381
|
+
umi.history.replace({
|
|
14382
|
+
pathname: '/user/login'
|
|
14245
14383
|
});
|
|
14246
|
-
|
|
14247
|
-
|
|
14248
|
-
|
|
14249
|
-
|
|
14250
|
-
|
|
14251
|
-
|
|
14252
|
-
});
|
|
14253
|
-
} else {
|
|
14254
|
-
setLoginOutPath();
|
|
14255
|
-
}
|
|
14256
|
-
case 6:
|
|
14257
|
-
case "end":
|
|
14258
|
-
return _context.stop();
|
|
14259
|
-
}
|
|
14384
|
+
} else {
|
|
14385
|
+
setLoginOutPath();
|
|
14386
|
+
}
|
|
14387
|
+
case 6:
|
|
14388
|
+
case "end":
|
|
14389
|
+
return _context.stop();
|
|
14260
14390
|
}
|
|
14261
14391
|
}, _callee);
|
|
14262
14392
|
}));
|
|
@@ -14402,7 +14532,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
14402
14532
|
var afterStr = newName.substr(index + keyWord.length);
|
|
14403
14533
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("span", null, beforeStr), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
14404
14534
|
style: {
|
|
14405
|
-
color: '#
|
|
14535
|
+
color: '#02B56E'
|
|
14406
14536
|
}
|
|
14407
14537
|
}, keyWord), /*#__PURE__*/React__default['default'].createElement("span", null, afterStr));
|
|
14408
14538
|
}
|
|
@@ -15247,7 +15377,7 @@ var CustomerMenu = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
15247
15377
|
})));
|
|
15248
15378
|
});
|
|
15249
15379
|
|
|
15250
|
-
var css_248z$l = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #
|
|
15380
|
+
var css_248z$l = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #02B56E;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.dark .action:hover {\n background: #252a3d;\n}\n.dark .action .opened {\n background: #252a3d;\n}\n.global_menu_draw_content {\n display: flex;\n height: 100%;\n}\n.global_menu_draw_content .allFunsList {\n margin-bottom: 10px;\n}\n.global_menu_draw_content .drawerWarp_left {\n width: 150px;\n height: 100%;\n flex-shrink: 0;\n border-right: 1px solid #f0f0f0;\n}\n.global_menu_draw_content .drawerWarp_left .left_item_title {\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #8c8c8c;\n letter-spacing: 0;\n line-height: 20px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n margin: 20px 0px;\n padding-left: 10px;\n}\n.global_menu_draw_content .drawerWarp_left .left_item {\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n line-height: 20px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n cursor: pointer;\n margin: 20px 0px;\n padding-left: 10px;\n}\n.global_menu_draw_content .drawerWarp_left .left_item:hover {\n color: #02B56E !important;\n}\n.global_menu_draw_content .drawerWarp_right {\n -moz-column-count: 4;\n column-count: 4;\n flex-grow: 1;\n padding-left: 10px;\n}\n.global_menu_draw_content .drawerWarp_right .ant-list-header {\n padding: 0 0 0 10px !important;\n line-height: 30px;\n border: 0px !important;\n}\n.global_menu_draw_content .drawerWarp_right .ant-list-header b {\n width: 100%;\n box-sizing: border-box;\n display: inline-block;\n border-bottom: 1px solid #f0f0f0;\n}\n.global_menu_draw_content .drawerWarp_right .ant-list-item {\n padding: 0 0 0 10px !important;\n line-height: 30px !important;\n}\n.global_menu_draw_content .drawerWarp_right .ant-drawer-close {\n position: absolute;\n right: 0;\n}\n.global_menu_draw_content .search_menu_content {\n flex-grow: 1;\n display: flex;\n flex-wrap: wrap;\n background-color: #ffffff;\n}\n.global_menu_draw_content .search_menu_content div {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 8px 20px;\n font-size: 14px;\n font-weight: 400;\n color: #000000;\n background: #f8f9fa;\n border-radius: 100px;\n margin-right: 10px;\n margin-bottom: 10px;\n}\n.global_menu_draw_content .search_menu_content div:hover {\n cursor: pointer;\n}\n.global_menu_draw_content .allFunsListWarp {\n width: 200px;\n margin-right: 10px;\n border-radius: 4px;\n -moz-column-break-inside: avoid;\n break-inside: avoid;\n}\n.global_menu_draw_content .choosedStyle .ant-list-header {\n background-color: #005CFF;\n opacity: 0.8;\n}\n.global_menu_draw_content .choosedStyle .ant-list-header b {\n border-bottom: 1px solid #005CFF;\n}\n";
|
|
15251
15381
|
styleInject(css_248z$l);
|
|
15252
15382
|
|
|
15253
15383
|
var closeicon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAiZJREFUSEvFll1LVFEUhh/1QqjAxALrot+ggR9RQWh1UZl9kNCtv8ALf0Q3/YVuiyIqLKOUyI80RP0VXVSU+UGKF2W88q7hzPacOY4QHhiGmVn7fdZe691rTwP/+WlI9Bv9eQfQq55HWqH3NxamgOz3+q0SWEJSYpFQVWIBUIDE+oARYBj4ATQBf0rEI+Yk8Ah4CHwEdjUDoHeRnwN3gBngJrBaAgnxVmAMOA88A4aKAAp8A5wzZABYK4Dkic8CWqPEdpPO9iB20Qa8BnqBae9EkCijKhbixx2rzOeAG8CvEFdg2uRYKIh20mOIslo3RGvUlxaLXwDmgesWr+pbnovyIFPe+oYbLnHV/CLw2eIreaUssmlATngn3YAg17yL8f2I55Uo68is/VSuLuC9AZeBBQN/1nJa0Q4ClHVKuEu/fXJZihxWSbQMEM5pBlQWHUQ9E+7JduKuPWeyFiDEj7mhl2xFrdE5+WAL/64FKQJkxV858yXgqq09CXQAer8FFELyAFnxl0A/sOiaf3cN2u2usy7X7SJI3rjW0DsKSFxuUeY6RN/sFjF00ARRXzrtLkE203LljQqJvwCuAMu2YojHZA13nTJE5XrnQSlIjJ3KqIgvjlhctZa4Mv9aMuxOu1yCvAXuAlvpsAvAU+DePsTTc5KFPAHup+M6GjsIjDrgS50XzhngMfDAtq66cNIRoUYf5MqUaNUNeCiXfsUB9fylcOyetf8AAkCfGYuSNSEAAAAASUVORK5CYII=";
|
|
@@ -15412,8 +15542,8 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
15412
15542
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15413
15543
|
className: 'left_item',
|
|
15414
15544
|
style: {
|
|
15415
|
-
borderLeft: currentOneLevel === item.path ? '2px solid #
|
|
15416
|
-
color: currentOneLevel === item.path ? '#
|
|
15545
|
+
borderLeft: currentOneLevel === item.path ? '2px solid #02B56E' : 'none',
|
|
15546
|
+
color: currentOneLevel === item.path ? '#02B56E' : '#000000'
|
|
15417
15547
|
},
|
|
15418
15548
|
onClick: function onClick(e) {
|
|
15419
15549
|
e.stopPropagation();
|
|
@@ -15663,7 +15793,7 @@ var CustomerMenuHeader = function CustomerMenuHeader(_ref) {
|
|
|
15663
15793
|
})));
|
|
15664
15794
|
};
|
|
15665
15795
|
|
|
15666
|
-
var css_248z$m = ".customer_menu_content {\n color: #b1bad4;\n background: #141620;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 18px;\n height: 40px;\n border-bottom: 1px solid #3d4047;\n}\n.customer_menu_content .ant-btn-link {\n color: #b1bad4 !important;\n font-size: 16px;\n height: 36px;\n}\n.menu_item {\n line-height: 30px;\n height: 30px;\n color: rgba(44, 47, 46);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.link_style:hover {\n background-color: #e4e7ed;\n cursor: pointer;\n color: #
|
|
15796
|
+
var css_248z$m = ".customer_menu_content {\n color: #b1bad4;\n background: #141620;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 18px;\n height: 40px;\n border-bottom: 1px solid #3d4047;\n}\n.customer_menu_content .ant-btn-link {\n color: #b1bad4 !important;\n font-size: 16px;\n height: 36px;\n}\n.menu_item {\n line-height: 30px;\n height: 30px;\n color: rgba(44, 47, 46);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.link_style:hover {\n background-color: #e4e7ed;\n cursor: pointer;\n color: #02B56E;\n}\n.sub_menu_content {\n box-shadow: 2px 0px 4px 0px rgba(185, 185, 185, 0.5);\n position: fixed;\n top: 50px;\n left: 140px;\n width: 200px;\n height: 100%;\n background-color: #fff;\n padding-top: 10px;\n z-index: 9999;\n}\n.tab_left_operate {\n display: flex;\n height: 28px;\n align-items: center;\n}\n.tab_left_operate > div {\n width: 28px;\n font-size: 12px;\n color: #2C2F2ECC;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n border-right: 1px solid #E4E4E4;\n background-color: #fff;\n cursor: pointer;\n}\n.tab_left_operate > div:last-child {\n box-shadow: 2px -2px 4px 0px rgba(185, 185, 185, 0.9);\n z-index: 99;\n}\n.tab_right_operate {\n height: 28px;\n width: 28px;\n font-size: 12px;\n color: #2C2F2ECC;\n display: flex;\n align-items: center;\n justify-content: center;\n border-right: 1px solid #E4E4E4;\n background-color: #fff;\n box-shadow: -2px -2px 4px 0px rgba(185, 185, 185, 0.9);\n z-index: 99;\n cursor: pointer;\n position: relative;\n}\n";
|
|
15667
15797
|
styleInject(css_248z$m);
|
|
15668
15798
|
|
|
15669
15799
|
var _excluded$g = ["route"];
|
|
@@ -16084,6 +16214,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
16084
16214
|
showSubMenu: isShow
|
|
16085
16215
|
});
|
|
16086
16216
|
}, 500);
|
|
16217
|
+
//设置tabs标签左右滚动
|
|
16087
16218
|
_this.setTabNavTransLate = function (num) {
|
|
16088
16219
|
var _document$getElementB, _document$getElementB2, _document$getElementB3, _document$getElementB4, _document$defaultView;
|
|
16089
16220
|
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];
|
|
@@ -16763,15 +16894,13 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
16763
16894
|
menu: {
|
|
16764
16895
|
request: function () {
|
|
16765
16896
|
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
16766
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
16767
|
-
while (1) {
|
|
16768
|
-
|
|
16769
|
-
|
|
16770
|
-
|
|
16771
|
-
|
|
16772
|
-
|
|
16773
|
-
return _context.stop();
|
|
16774
|
-
}
|
|
16897
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
16898
|
+
while (1) switch (_context.prev = _context.next) {
|
|
16899
|
+
case 0:
|
|
16900
|
+
return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
|
|
16901
|
+
case 1:
|
|
16902
|
+
case "end":
|
|
16903
|
+
return _context.stop();
|
|
16775
16904
|
}
|
|
16776
16905
|
}, _callee);
|
|
16777
16906
|
}));
|
|
@@ -23501,7 +23630,7 @@ function registerSuggestions(monaco) {
|
|
|
23501
23630
|
});
|
|
23502
23631
|
}
|
|
23503
23632
|
|
|
23504
|
-
var css_248z$p = ":global .si-editor-highlight {\n background: #1990ffab;\n}\n.title {\n color: #
|
|
23633
|
+
var css_248z$p = ":global .si-editor-highlight {\n background: #1990ffab;\n}\n.title {\n color: #02B56E;\n padding: 12px;\n font-weight: bold;\n}\n.editorWrapper {\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n padding: 24px;\n background-color: #fff;\n z-index: 10000;\n}\n";
|
|
23505
23634
|
styleInject(css_248z$p);
|
|
23506
23635
|
|
|
23507
23636
|
var Title = antd.Typography.Title;
|
|
@@ -24452,28 +24581,26 @@ var valueType = {
|
|
|
24452
24581
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
24453
24582
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
24454
24583
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
24455
|
-
while (1) {
|
|
24456
|
-
|
|
24457
|
-
|
|
24458
|
-
|
|
24459
|
-
|
|
24460
|
-
|
|
24461
|
-
|
|
24462
|
-
|
|
24463
|
-
return
|
|
24464
|
-
|
|
24465
|
-
|
|
24466
|
-
|
|
24467
|
-
|
|
24468
|
-
|
|
24469
|
-
|
|
24470
|
-
|
|
24471
|
-
|
|
24472
|
-
|
|
24473
|
-
|
|
24474
|
-
|
|
24475
|
-
return _context.stop();
|
|
24476
|
-
}
|
|
24584
|
+
while (1) switch (_context.prev = _context.next) {
|
|
24585
|
+
case 0:
|
|
24586
|
+
_context.next = 2;
|
|
24587
|
+
return bssula.request({
|
|
24588
|
+
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
24589
|
+
converter: function converter(_ref2) {
|
|
24590
|
+
var data = _ref2.data;
|
|
24591
|
+
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
24592
|
+
return {
|
|
24593
|
+
text: d.name,
|
|
24594
|
+
value: d.code || d.brandCode
|
|
24595
|
+
};
|
|
24596
|
+
});
|
|
24597
|
+
}
|
|
24598
|
+
});
|
|
24599
|
+
case 2:
|
|
24600
|
+
return _context.abrupt("return", _context.sent);
|
|
24601
|
+
case 3:
|
|
24602
|
+
case "end":
|
|
24603
|
+
return _context.stop();
|
|
24477
24604
|
}
|
|
24478
24605
|
}, _callee);
|
|
24479
24606
|
}));
|
|
@@ -24523,55 +24650,53 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
24523
24650
|
ahooks.useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
24524
24651
|
var _ref$current, source;
|
|
24525
24652
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
24526
|
-
while (1) {
|
|
24527
|
-
|
|
24528
|
-
|
|
24529
|
-
|
|
24530
|
-
|
|
24531
|
-
|
|
24532
|
-
|
|
24533
|
-
|
|
24534
|
-
|
|
24535
|
-
|
|
24536
|
-
};
|
|
24537
|
-
}
|
|
24538
|
-
return prev;
|
|
24539
|
-
});
|
|
24540
|
-
case 2:
|
|
24541
|
-
if (!record.dictionaryCode) {
|
|
24542
|
-
_context.next = 17;
|
|
24543
|
-
break;
|
|
24544
|
-
}
|
|
24545
|
-
if (!(record.choiceType == 20)) {
|
|
24546
|
-
_context.next = 7;
|
|
24547
|
-
break;
|
|
24653
|
+
while (1) switch (_context.prev = _context.next) {
|
|
24654
|
+
case 0:
|
|
24655
|
+
_context.next = 2;
|
|
24656
|
+
return setIsShowAndType(function (prev) {
|
|
24657
|
+
if (record.inputType === 20 || record.inputType === 30) {
|
|
24658
|
+
return {
|
|
24659
|
+
isShow: true,
|
|
24660
|
+
singleOrMultiple: record.inputType,
|
|
24661
|
+
type: record.choiceType
|
|
24662
|
+
};
|
|
24548
24663
|
}
|
|
24549
|
-
|
|
24550
|
-
|
|
24664
|
+
return prev;
|
|
24665
|
+
});
|
|
24666
|
+
case 2:
|
|
24667
|
+
if (!record.dictionaryCode) {
|
|
24668
|
+
_context.next = 17;
|
|
24551
24669
|
break;
|
|
24552
|
-
|
|
24553
|
-
|
|
24554
|
-
|
|
24555
|
-
break;
|
|
24556
|
-
}
|
|
24557
|
-
_context.next = 10;
|
|
24558
|
-
return getDynamicDict(record.dictionaryCode);
|
|
24559
|
-
case 10:
|
|
24560
|
-
_context.t1 = _context.sent;
|
|
24561
|
-
_context.next = 14;
|
|
24670
|
+
}
|
|
24671
|
+
if (!(record.choiceType == 20)) {
|
|
24672
|
+
_context.next = 7;
|
|
24562
24673
|
break;
|
|
24563
|
-
|
|
24564
|
-
|
|
24565
|
-
|
|
24566
|
-
|
|
24567
|
-
|
|
24568
|
-
|
|
24569
|
-
|
|
24570
|
-
|
|
24571
|
-
|
|
24572
|
-
|
|
24573
|
-
|
|
24574
|
-
|
|
24674
|
+
}
|
|
24675
|
+
_context.t0 = getDictionarySource(record.dictionaryCode);
|
|
24676
|
+
_context.next = 15;
|
|
24677
|
+
break;
|
|
24678
|
+
case 7:
|
|
24679
|
+
if (!(record.choiceType == 30)) {
|
|
24680
|
+
_context.next = 13;
|
|
24681
|
+
break;
|
|
24682
|
+
}
|
|
24683
|
+
_context.next = 10;
|
|
24684
|
+
return getDynamicDict(record.dictionaryCode);
|
|
24685
|
+
case 10:
|
|
24686
|
+
_context.t1 = _context.sent;
|
|
24687
|
+
_context.next = 14;
|
|
24688
|
+
break;
|
|
24689
|
+
case 13:
|
|
24690
|
+
_context.t1 = [];
|
|
24691
|
+
case 14:
|
|
24692
|
+
_context.t0 = _context.t1;
|
|
24693
|
+
case 15:
|
|
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();
|
|
24575
24700
|
}
|
|
24576
24701
|
}, _callee);
|
|
24577
24702
|
})));
|
|
@@ -24639,30 +24764,28 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
24639
24764
|
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
24640
24765
|
var form, values, name, relates, source;
|
|
24641
24766
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
24642
|
-
while (1) {
|
|
24643
|
-
|
|
24644
|
-
|
|
24645
|
-
|
|
24646
|
-
if (values[0]) {
|
|
24647
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
24648
|
-
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
24649
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
24650
|
-
}
|
|
24651
|
-
if (!values[1]) {
|
|
24652
|
-
_context2.next = 9;
|
|
24653
|
-
break;
|
|
24654
|
-
}
|
|
24655
|
-
_context2.next = 5;
|
|
24656
|
-
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
24657
|
-
case 5:
|
|
24658
|
-
source = _context2.sent;
|
|
24767
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
24768
|
+
case 0:
|
|
24769
|
+
form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
|
|
24770
|
+
if (values[0]) {
|
|
24659
24771
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
24660
24772
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
24661
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0],
|
|
24662
|
-
|
|
24663
|
-
|
|
24664
|
-
|
|
24665
|
-
|
|
24773
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
24774
|
+
}
|
|
24775
|
+
if (!values[1]) {
|
|
24776
|
+
_context2.next = 9;
|
|
24777
|
+
break;
|
|
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();
|
|
24666
24789
|
}
|
|
24667
24790
|
}, _callee2);
|
|
24668
24791
|
}));
|
|
@@ -25122,43 +25245,41 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
25122
25245
|
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
25123
25246
|
var values, name, form, source;
|
|
25124
25247
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
25125
|
-
while (1) {
|
|
25126
|
-
|
|
25127
|
-
|
|
25128
|
-
|
|
25129
|
-
|
|
25130
|
-
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
25131
|
-
form.setFieldVisible(name, false);
|
|
25132
|
-
}
|
|
25133
|
-
if (!(values[0] === 30)) {
|
|
25134
|
-
_context3.next = 10;
|
|
25135
|
-
break;
|
|
25136
|
-
}
|
|
25137
|
-
_context3.next = 5;
|
|
25138
|
-
return bssula.request({
|
|
25139
|
-
url: '/basic/dictDynamicItem/queryList',
|
|
25140
|
-
converter: function converter(_ref11) {
|
|
25141
|
-
var data = _ref11.data;
|
|
25142
|
-
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
25143
|
-
return {
|
|
25144
|
-
text: d.dictCode,
|
|
25145
|
-
value: d.dictCode
|
|
25146
|
-
};
|
|
25147
|
-
});
|
|
25148
|
-
}
|
|
25149
|
-
});
|
|
25150
|
-
case 5:
|
|
25151
|
-
source = _context3.sent;
|
|
25152
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
25153
|
-
form.setFieldVisible(name, true);
|
|
25154
|
-
_context3.next = 11;
|
|
25155
|
-
break;
|
|
25156
|
-
case 10:
|
|
25248
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
25249
|
+
case 0:
|
|
25250
|
+
values = _ref10.values, name = _ref10.name, form = _ref10.form;
|
|
25251
|
+
if (values[1] === 40) {
|
|
25252
|
+
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
25157
25253
|
form.setFieldVisible(name, false);
|
|
25158
|
-
|
|
25159
|
-
|
|
25160
|
-
|
|
25161
|
-
|
|
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
|
+
});
|
|
25270
|
+
}
|
|
25271
|
+
});
|
|
25272
|
+
case 5:
|
|
25273
|
+
source = _context3.sent;
|
|
25274
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
25275
|
+
form.setFieldVisible(name, true);
|
|
25276
|
+
_context3.next = 11;
|
|
25277
|
+
break;
|
|
25278
|
+
case 10:
|
|
25279
|
+
form.setFieldVisible(name, false);
|
|
25280
|
+
case 11:
|
|
25281
|
+
case "end":
|
|
25282
|
+
return _context3.stop();
|
|
25162
25283
|
}
|
|
25163
25284
|
}, _callee3);
|
|
25164
25285
|
}));
|
|
@@ -25347,66 +25468,64 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
25347
25468
|
var _ref$current4, _res$editableStatus;
|
|
25348
25469
|
var res, _res$defaultValue;
|
|
25349
25470
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
25350
|
-
while (1) {
|
|
25351
|
-
|
|
25352
|
-
|
|
25353
|
-
|
|
25354
|
-
|
|
25355
|
-
|
|
25356
|
-
|
|
25357
|
-
|
|
25358
|
-
|
|
25359
|
-
|
|
25360
|
-
res.
|
|
25361
|
-
|
|
25362
|
-
|
|
25363
|
-
|
|
25364
|
-
|
|
25365
|
-
|
|
25366
|
-
|
|
25367
|
-
|
|
25368
|
-
|
|
25369
|
-
|
|
25370
|
-
|
|
25371
|
-
|
|
25471
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
25472
|
+
case 0:
|
|
25473
|
+
_context4.next = 2;
|
|
25474
|
+
return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
|
|
25475
|
+
case 2:
|
|
25476
|
+
res = _context4.sent;
|
|
25477
|
+
res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
|
|
25478
|
+
res.fieldGroup = record.fieldGroup;
|
|
25479
|
+
res.businessType = record.businessType;
|
|
25480
|
+
res.info = {
|
|
25481
|
+
enumeration: res.enumeration,
|
|
25482
|
+
dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
|
|
25483
|
+
formula: res.formula,
|
|
25484
|
+
scale: res.scale,
|
|
25485
|
+
variable: res.variable
|
|
25486
|
+
};
|
|
25487
|
+
res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
|
|
25488
|
+
res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
|
|
25489
|
+
res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
|
|
25490
|
+
if (res.inputType === 40) {
|
|
25491
|
+
res.valueType = 22;
|
|
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(',');
|
|
25372
25497
|
}
|
|
25373
|
-
|
|
25374
|
-
|
|
25375
|
-
|
|
25376
|
-
|
|
25377
|
-
|
|
25498
|
+
}
|
|
25499
|
+
res.fieldMapping = res.fieldMapping || '';
|
|
25500
|
+
delete res.formula;
|
|
25501
|
+
delete res.showValue;
|
|
25502
|
+
if (!(mode === 'create')) {
|
|
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();
|
|
25378
25513
|
}
|
|
25379
|
-
|
|
25380
|
-
|
|
25381
|
-
|
|
25382
|
-
|
|
25383
|
-
|
|
25384
|
-
|
|
25514
|
+
});
|
|
25515
|
+
return _context4.abrupt("return");
|
|
25516
|
+
case 18:
|
|
25517
|
+
bssula.request({
|
|
25518
|
+
url: "/basic/flow/businessField/".concat(record.id),
|
|
25519
|
+
method: 'PATCH',
|
|
25520
|
+
params: res,
|
|
25521
|
+
successMessage: '修改成功!',
|
|
25522
|
+
converter: function converter() {
|
|
25523
|
+
onParentOk();
|
|
25385
25524
|
}
|
|
25386
|
-
|
|
25387
|
-
|
|
25388
|
-
|
|
25389
|
-
|
|
25390
|
-
successMessage: '创建成功!',
|
|
25391
|
-
converter: function converter() {
|
|
25392
|
-
onParentOk();
|
|
25393
|
-
}
|
|
25394
|
-
});
|
|
25395
|
-
return _context4.abrupt("return");
|
|
25396
|
-
case 18:
|
|
25397
|
-
bssula.request({
|
|
25398
|
-
url: "/basic/flow/businessField/".concat(record.id),
|
|
25399
|
-
method: 'PATCH',
|
|
25400
|
-
params: res,
|
|
25401
|
-
successMessage: '修改成功!',
|
|
25402
|
-
converter: function converter() {
|
|
25403
|
-
onParentOk();
|
|
25404
|
-
}
|
|
25405
|
-
});
|
|
25406
|
-
case 19:
|
|
25407
|
-
case "end":
|
|
25408
|
-
return _context4.stop();
|
|
25409
|
-
}
|
|
25525
|
+
});
|
|
25526
|
+
case 19:
|
|
25527
|
+
case "end":
|
|
25528
|
+
return _context4.stop();
|
|
25410
25529
|
}
|
|
25411
25530
|
}, _callee4);
|
|
25412
25531
|
}));
|
|
@@ -26191,28 +26310,26 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
26191
26310
|
React.useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
26192
26311
|
var resData, data;
|
|
26193
26312
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26194
|
-
while (1) {
|
|
26195
|
-
|
|
26196
|
-
|
|
26197
|
-
|
|
26198
|
-
|
|
26199
|
-
|
|
26200
|
-
|
|
26201
|
-
|
|
26202
|
-
|
|
26203
|
-
|
|
26204
|
-
|
|
26205
|
-
|
|
26206
|
-
|
|
26207
|
-
|
|
26208
|
-
|
|
26209
|
-
|
|
26210
|
-
|
|
26211
|
-
|
|
26212
|
-
|
|
26213
|
-
|
|
26214
|
-
return _context.stop();
|
|
26215
|
-
}
|
|
26313
|
+
while (1) switch (_context.prev = _context.next) {
|
|
26314
|
+
case 0:
|
|
26315
|
+
if (!(!source && initRequestSource)) {
|
|
26316
|
+
_context.next = 6;
|
|
26317
|
+
break;
|
|
26318
|
+
}
|
|
26319
|
+
_context.next = 3;
|
|
26320
|
+
return initRequestSource();
|
|
26321
|
+
case 3:
|
|
26322
|
+
resData = _context.sent;
|
|
26323
|
+
data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
|
|
26324
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
26325
|
+
label: item.text,
|
|
26326
|
+
isLeaf: false
|
|
26327
|
+
});
|
|
26328
|
+
})) || [];
|
|
26329
|
+
setHandSource(data);
|
|
26330
|
+
case 6:
|
|
26331
|
+
case "end":
|
|
26332
|
+
return _context.stop();
|
|
26216
26333
|
}
|
|
26217
26334
|
}, _callee);
|
|
26218
26335
|
})), []);
|
|
@@ -26344,20 +26461,18 @@ function getRegularThresholdRange(_x) {
|
|
|
26344
26461
|
function _getRegularThresholdRange() {
|
|
26345
26462
|
_getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
26346
26463
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26347
|
-
while (1) {
|
|
26348
|
-
|
|
26349
|
-
|
|
26350
|
-
|
|
26351
|
-
|
|
26352
|
-
|
|
26353
|
-
|
|
26354
|
-
|
|
26355
|
-
|
|
26356
|
-
|
|
26357
|
-
|
|
26358
|
-
|
|
26359
|
-
return _context.stop();
|
|
26360
|
-
}
|
|
26464
|
+
while (1) switch (_context.prev = _context.next) {
|
|
26465
|
+
case 0:
|
|
26466
|
+
return _context.abrupt("return", axios__default['default']({
|
|
26467
|
+
url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
|
|
26468
|
+
method: 'POST',
|
|
26469
|
+
data: _objectSpread2(_objectSpread2({}, params), {}, {
|
|
26470
|
+
queryIdentify: undefined
|
|
26471
|
+
})
|
|
26472
|
+
}));
|
|
26473
|
+
case 1:
|
|
26474
|
+
case "end":
|
|
26475
|
+
return _context.stop();
|
|
26361
26476
|
}
|
|
26362
26477
|
}, _callee);
|
|
26363
26478
|
}));
|
|
@@ -26496,137 +26611,136 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26496
26611
|
_this.getRegularThresholdRange(queryIdentify, propertyCode, queryIdentifyType);
|
|
26497
26612
|
});
|
|
26498
26613
|
};
|
|
26614
|
+
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
26499
26615
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
26500
26616
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
26501
26617
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
26502
26618
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26503
|
-
while (1) {
|
|
26504
|
-
|
|
26505
|
-
|
|
26506
|
-
|
|
26507
|
-
|
|
26508
|
-
|
|
26509
|
-
|
|
26510
|
-
|
|
26511
|
-
|
|
26512
|
-
|
|
26513
|
-
|
|
26514
|
-
|
|
26515
|
-
|
|
26516
|
-
|
|
26517
|
-
|
|
26518
|
-
|
|
26519
|
-
|
|
26520
|
-
|
|
26521
|
-
|
|
26522
|
-
|
|
26523
|
-
|
|
26524
|
-
|
|
26525
|
-
|
|
26526
|
-
|
|
26527
|
-
|
|
26528
|
-
|
|
26529
|
-
|
|
26530
|
-
|
|
26531
|
-
|
|
26532
|
-
|
|
26533
|
-
|
|
26534
|
-
|
|
26535
|
-
|
|
26536
|
-
|
|
26537
|
-
|
|
26538
|
-
|
|
26539
|
-
|
|
26540
|
-
|
|
26541
|
-
|
|
26542
|
-
|
|
26543
|
-
|
|
26544
|
-
|
|
26545
|
-
|
|
26546
|
-
|
|
26547
|
-
|
|
26548
|
-
|
|
26549
|
-
|
|
26550
|
-
|
|
26551
|
-
|
|
26552
|
-
|
|
26553
|
-
|
|
26554
|
-
|
|
26555
|
-
|
|
26556
|
-
|
|
26557
|
-
|
|
26558
|
-
|
|
26559
|
-
|
|
26560
|
-
|
|
26561
|
-
|
|
26562
|
-
|
|
26563
|
-
|
|
26564
|
-
|
|
26565
|
-
|
|
26566
|
-
|
|
26567
|
-
|
|
26568
|
-
|
|
26569
|
-
|
|
26570
|
-
|
|
26571
|
-
|
|
26572
|
-
|
|
26573
|
-
|
|
26574
|
-
}) : [];
|
|
26575
|
-
}
|
|
26576
|
-
if (queryIdentifyType === 'dynamicDictCodeIdentify') {
|
|
26577
|
-
var _handleData3;
|
|
26578
|
-
_handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
|
|
26579
|
-
return {
|
|
26580
|
-
code: i.code.toString(),
|
|
26581
|
-
name: i.name
|
|
26582
|
-
};
|
|
26583
|
-
}) : [];
|
|
26584
|
-
}
|
|
26585
|
-
_this.setState({
|
|
26586
|
-
thresholdList: _handleData
|
|
26587
|
-
});
|
|
26619
|
+
while (1) switch (_context.prev = _context.next) {
|
|
26620
|
+
case 0:
|
|
26621
|
+
if (queryIdentify) {
|
|
26622
|
+
_context.next = 2;
|
|
26623
|
+
break;
|
|
26624
|
+
}
|
|
26625
|
+
return _context.abrupt("return");
|
|
26626
|
+
case 2:
|
|
26627
|
+
thresholdQuery = _this.state.thresholdQuery;
|
|
26628
|
+
extraRequestUrl = '';
|
|
26629
|
+
querParams = setParams(propertyCode, thresholdQuery);
|
|
26630
|
+
if (!queryIdentityInfo.find(function (item) {
|
|
26631
|
+
return item.identity == propertyCode;
|
|
26632
|
+
})) {
|
|
26633
|
+
_context.next = 10;
|
|
26634
|
+
break;
|
|
26635
|
+
}
|
|
26636
|
+
//判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
|
|
26637
|
+
needQueryList = queryIdentityInfo.find(function (item) {
|
|
26638
|
+
return item.identity == propertyCode;
|
|
26639
|
+
}).queryParam.filter(function (item) {
|
|
26640
|
+
return item.isRequired;
|
|
26641
|
+
}).map(function (item) {
|
|
26642
|
+
return item.queryKey;
|
|
26643
|
+
});
|
|
26644
|
+
if (!needQueryList.some(function (item) {
|
|
26645
|
+
return !querParams[item] || !querParams[item].length;
|
|
26646
|
+
})) {
|
|
26647
|
+
_context.next = 9;
|
|
26648
|
+
break;
|
|
26649
|
+
}
|
|
26650
|
+
return _context.abrupt("return");
|
|
26651
|
+
case 9:
|
|
26652
|
+
extraRequestUrl = queryIdentityInfo.find(function (item) {
|
|
26653
|
+
return item.identity == propertyCode;
|
|
26654
|
+
}).requestUrl || '';
|
|
26655
|
+
case 10:
|
|
26656
|
+
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
26657
|
+
extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
|
|
26658
|
+
querParams = {
|
|
26659
|
+
dictCode: queryIdentify
|
|
26660
|
+
};
|
|
26661
|
+
} else if (queryIdentifyType === 'dynamicDictCodeIdentify') {
|
|
26662
|
+
extraRequestUrl = "dictDynamicItem/getDynamicData/".concat(queryIdentify); // 字典接口
|
|
26663
|
+
// querParams = { dictCode: queryIdentify }
|
|
26664
|
+
}
|
|
26665
|
+
if (!extraRequestUrl) {
|
|
26666
|
+
_context.next = 16;
|
|
26667
|
+
break;
|
|
26668
|
+
}
|
|
26669
|
+
if (queryIdentify == 'maintain_area_code') {
|
|
26670
|
+
extraRequestUrl = "/basic/".concat(extraRequestUrl).concat(querParams.memberCardCode, "?").concat(querystring.stringify(querParams));
|
|
26671
|
+
} else if (queryIdentifyType == 'dictCodeIdentify') {
|
|
26672
|
+
extraRequestUrl = "/basic/".concat(extraRequestUrl, "?").concat(querystring.stringify(querParams));
|
|
26673
|
+
} else if (queryIdentifyType == 'dynamicDictCodeIdentify') {
|
|
26674
|
+
extraRequestUrl = "/basic/".concat(extraRequestUrl);
|
|
26675
|
+
}
|
|
26676
|
+
bssula.request({
|
|
26677
|
+
url: extraRequestUrl,
|
|
26678
|
+
method: 'get',
|
|
26679
|
+
converter: function converter(res) {
|
|
26680
|
+
if (handleError(res)) {
|
|
26681
|
+
var _handleData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
26682
|
+
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
26683
|
+
var _handleData2;
|
|
26684
|
+
_handleData = ((_handleData2 = _handleData) === null || _handleData2 === void 0 ? void 0 : _handleData2.length) ? _handleData.map(function (i) {
|
|
26685
|
+
return {
|
|
26686
|
+
code: i.dictItemCode,
|
|
26687
|
+
name: i.dictItemName
|
|
26688
|
+
};
|
|
26689
|
+
}) : [];
|
|
26588
26690
|
}
|
|
26589
|
-
|
|
26691
|
+
if (queryIdentifyType === 'dynamicDictCodeIdentify') {
|
|
26692
|
+
var _handleData3;
|
|
26693
|
+
_handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
|
|
26694
|
+
return {
|
|
26695
|
+
code: i.code.toString(),
|
|
26696
|
+
name: i.name
|
|
26697
|
+
};
|
|
26698
|
+
}) : [];
|
|
26699
|
+
}
|
|
26700
|
+
_this.setState({
|
|
26701
|
+
thresholdList: _handleData
|
|
26702
|
+
});
|
|
26590
26703
|
}
|
|
26591
|
-
|
|
26592
|
-
_context.next = 29;
|
|
26593
|
-
break;
|
|
26594
|
-
case 16:
|
|
26595
|
-
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
26596
|
-
_context.next = 20;
|
|
26597
|
-
break;
|
|
26704
|
+
return handleData;
|
|
26598
26705
|
}
|
|
26599
|
-
|
|
26600
|
-
|
|
26601
|
-
|
|
26602
|
-
|
|
26706
|
+
});
|
|
26707
|
+
_context.next = 29;
|
|
26708
|
+
break;
|
|
26709
|
+
case 16:
|
|
26710
|
+
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
26711
|
+
_context.next = 20;
|
|
26603
26712
|
break;
|
|
26604
|
-
|
|
26605
|
-
|
|
26606
|
-
|
|
26607
|
-
|
|
26608
|
-
|
|
26609
|
-
|
|
26713
|
+
}
|
|
26714
|
+
_this.setState({
|
|
26715
|
+
thresholdList: queryIdentify
|
|
26716
|
+
});
|
|
26717
|
+
_context.next = 29;
|
|
26718
|
+
break;
|
|
26719
|
+
case 20:
|
|
26720
|
+
if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
|
|
26721
|
+
_context.next = 24;
|
|
26722
|
+
break;
|
|
26723
|
+
}
|
|
26724
|
+
// TODO待处理
|
|
26725
|
+
_this.setState({
|
|
26726
|
+
thresholdList: []
|
|
26727
|
+
});
|
|
26728
|
+
_context.next = 29;
|
|
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)) {
|
|
26610
26737
|
_this.setState({
|
|
26611
|
-
thresholdList: []
|
|
26738
|
+
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
26612
26739
|
});
|
|
26613
|
-
|
|
26614
|
-
|
|
26615
|
-
|
|
26616
|
-
|
|
26617
|
-
_context.next = 27;
|
|
26618
|
-
return getRegularThresholdRange(querParams);
|
|
26619
|
-
case 27:
|
|
26620
|
-
res = _context.sent;
|
|
26621
|
-
if (handleError(res)) {
|
|
26622
|
-
_this.setState({
|
|
26623
|
-
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
26624
|
-
});
|
|
26625
|
-
}
|
|
26626
|
-
case 29:
|
|
26627
|
-
case "end":
|
|
26628
|
-
return _context.stop();
|
|
26629
|
-
}
|
|
26740
|
+
}
|
|
26741
|
+
case 29:
|
|
26742
|
+
case "end":
|
|
26743
|
+
return _context.stop();
|
|
26630
26744
|
}
|
|
26631
26745
|
}, _callee);
|
|
26632
26746
|
}));
|
|
@@ -27445,32 +27559,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27445
27559
|
notChangeOnSelect: true,
|
|
27446
27560
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
27447
27561
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
27448
|
-
while (1) {
|
|
27449
|
-
|
|
27450
|
-
|
|
27451
|
-
|
|
27452
|
-
|
|
27453
|
-
|
|
27454
|
-
|
|
27455
|
-
|
|
27456
|
-
|
|
27457
|
-
|
|
27458
|
-
|
|
27459
|
-
|
|
27460
|
-
|
|
27461
|
-
|
|
27462
|
-
|
|
27463
|
-
|
|
27464
|
-
|
|
27465
|
-
|
|
27466
|
-
|
|
27467
|
-
|
|
27468
|
-
|
|
27469
|
-
|
|
27470
|
-
|
|
27471
|
-
|
|
27472
|
-
return _context2.stop();
|
|
27473
|
-
}
|
|
27562
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
27563
|
+
case 0:
|
|
27564
|
+
_context2.next = 2;
|
|
27565
|
+
return bssula.request({
|
|
27566
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
27567
|
+
method: 'get',
|
|
27568
|
+
converter: function converter(_ref3) {
|
|
27569
|
+
var data = _ref3.data;
|
|
27570
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27571
|
+
return {
|
|
27572
|
+
text: item.name,
|
|
27573
|
+
value: item.id,
|
|
27574
|
+
level: item.level,
|
|
27575
|
+
id: item.id
|
|
27576
|
+
};
|
|
27577
|
+
}) : [];
|
|
27578
|
+
return handleData;
|
|
27579
|
+
}
|
|
27580
|
+
});
|
|
27581
|
+
case 2:
|
|
27582
|
+
return _context2.abrupt("return", _context2.sent);
|
|
27583
|
+
case 3:
|
|
27584
|
+
case "end":
|
|
27585
|
+
return _context2.stop();
|
|
27474
27586
|
}
|
|
27475
27587
|
}, _callee2);
|
|
27476
27588
|
})),
|
|
@@ -27496,32 +27608,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27496
27608
|
notChangeOnSelect: true,
|
|
27497
27609
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
27498
27610
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
27499
|
-
while (1) {
|
|
27500
|
-
|
|
27501
|
-
|
|
27502
|
-
|
|
27503
|
-
|
|
27504
|
-
|
|
27505
|
-
|
|
27506
|
-
|
|
27507
|
-
|
|
27508
|
-
|
|
27509
|
-
|
|
27510
|
-
|
|
27511
|
-
|
|
27512
|
-
|
|
27513
|
-
|
|
27514
|
-
|
|
27515
|
-
|
|
27516
|
-
|
|
27517
|
-
|
|
27518
|
-
|
|
27519
|
-
|
|
27520
|
-
|
|
27521
|
-
|
|
27522
|
-
|
|
27523
|
-
return _context3.stop();
|
|
27524
|
-
}
|
|
27611
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
27612
|
+
case 0:
|
|
27613
|
+
_context3.next = 2;
|
|
27614
|
+
return bssula.request({
|
|
27615
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
27616
|
+
method: 'get',
|
|
27617
|
+
converter: function converter(_ref5) {
|
|
27618
|
+
var data = _ref5.data;
|
|
27619
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27620
|
+
return {
|
|
27621
|
+
text: item.name,
|
|
27622
|
+
value: item.id,
|
|
27623
|
+
level: item.level,
|
|
27624
|
+
id: item.id
|
|
27625
|
+
};
|
|
27626
|
+
}) : [];
|
|
27627
|
+
return handleData;
|
|
27628
|
+
}
|
|
27629
|
+
});
|
|
27630
|
+
case 2:
|
|
27631
|
+
return _context3.abrupt("return", _context3.sent);
|
|
27632
|
+
case 3:
|
|
27633
|
+
case "end":
|
|
27634
|
+
return _context3.stop();
|
|
27525
27635
|
}
|
|
27526
27636
|
}, _callee3);
|
|
27527
27637
|
})),
|
|
@@ -27549,32 +27659,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27549
27659
|
notChangeOnSelect: true,
|
|
27550
27660
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
27551
27661
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
27552
|
-
while (1) {
|
|
27553
|
-
|
|
27554
|
-
|
|
27555
|
-
|
|
27556
|
-
|
|
27557
|
-
|
|
27558
|
-
|
|
27559
|
-
|
|
27560
|
-
|
|
27561
|
-
|
|
27562
|
-
|
|
27563
|
-
|
|
27564
|
-
|
|
27565
|
-
|
|
27566
|
-
|
|
27567
|
-
|
|
27568
|
-
|
|
27569
|
-
|
|
27570
|
-
|
|
27571
|
-
|
|
27572
|
-
|
|
27573
|
-
|
|
27574
|
-
|
|
27575
|
-
|
|
27576
|
-
return _context4.stop();
|
|
27577
|
-
}
|
|
27662
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
27663
|
+
case 0:
|
|
27664
|
+
_context4.next = 2;
|
|
27665
|
+
return bssula.request({
|
|
27666
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
27667
|
+
method: 'get',
|
|
27668
|
+
converter: function converter(_ref7) {
|
|
27669
|
+
var data = _ref7.data;
|
|
27670
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27671
|
+
return {
|
|
27672
|
+
text: item.name,
|
|
27673
|
+
value: item.id,
|
|
27674
|
+
level: item.level,
|
|
27675
|
+
id: item.id
|
|
27676
|
+
};
|
|
27677
|
+
}) : [];
|
|
27678
|
+
return handleData;
|
|
27679
|
+
}
|
|
27680
|
+
});
|
|
27681
|
+
case 2:
|
|
27682
|
+
return _context4.abrupt("return", _context4.sent);
|
|
27683
|
+
case 3:
|
|
27684
|
+
case "end":
|
|
27685
|
+
return _context4.stop();
|
|
27578
27686
|
}
|
|
27579
27687
|
}, _callee4);
|
|
27580
27688
|
})),
|
|
@@ -28691,8 +28799,6 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
28691
28799
|
});
|
|
28692
28800
|
}
|
|
28693
28801
|
}
|
|
28694
|
-
|
|
28695
|
-
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
28696
28802
|
}, {
|
|
28697
28803
|
key: "render",
|
|
28698
28804
|
value: function render() {
|
|
@@ -29523,6 +29629,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29523
29629
|
callBack(ruleClassData);
|
|
29524
29630
|
});
|
|
29525
29631
|
};
|
|
29632
|
+
// 树结构 转化成 平行树 (递归函数)
|
|
29526
29633
|
_this.coverToParallel = function (treeData, result) {
|
|
29527
29634
|
treeData.forEach(function (el) {
|
|
29528
29635
|
result.push(el);
|
|
@@ -29778,6 +29885,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29778
29885
|
callBack(ruleClassData);
|
|
29779
29886
|
});
|
|
29780
29887
|
};
|
|
29888
|
+
// 场景需要返回值2022.11.15
|
|
29781
29889
|
_this.renderResItem = function (itemDetail, parentDetail, ruleReturnConfig, classDataIndex, disabled, boxStyle) {
|
|
29782
29890
|
var _ruleReturnConfig$rig;
|
|
29783
29891
|
var isShowResponse = itemDetail.response['enable'];
|
|
@@ -30075,32 +30183,30 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30075
30183
|
notChangeOnSelect: true,
|
|
30076
30184
|
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30077
30185
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30078
|
-
while (1) {
|
|
30079
|
-
|
|
30080
|
-
|
|
30081
|
-
|
|
30082
|
-
|
|
30083
|
-
|
|
30084
|
-
|
|
30085
|
-
|
|
30086
|
-
|
|
30087
|
-
|
|
30088
|
-
|
|
30089
|
-
|
|
30090
|
-
|
|
30091
|
-
|
|
30092
|
-
|
|
30093
|
-
|
|
30094
|
-
|
|
30095
|
-
|
|
30096
|
-
|
|
30097
|
-
|
|
30098
|
-
|
|
30099
|
-
|
|
30100
|
-
|
|
30101
|
-
|
|
30102
|
-
return _context.stop();
|
|
30103
|
-
}
|
|
30186
|
+
while (1) switch (_context.prev = _context.next) {
|
|
30187
|
+
case 0:
|
|
30188
|
+
_context.next = 2;
|
|
30189
|
+
return bssula.request({
|
|
30190
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
30191
|
+
method: 'get',
|
|
30192
|
+
converter: function converter(_ref2) {
|
|
30193
|
+
var data = _ref2.data;
|
|
30194
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
30195
|
+
return {
|
|
30196
|
+
text: item.name,
|
|
30197
|
+
value: item.id,
|
|
30198
|
+
level: item.level,
|
|
30199
|
+
id: item.id
|
|
30200
|
+
};
|
|
30201
|
+
}) : [];
|
|
30202
|
+
return handleData;
|
|
30203
|
+
}
|
|
30204
|
+
});
|
|
30205
|
+
case 2:
|
|
30206
|
+
return _context.abrupt("return", _context.sent);
|
|
30207
|
+
case 3:
|
|
30208
|
+
case "end":
|
|
30209
|
+
return _context.stop();
|
|
30104
30210
|
}
|
|
30105
30211
|
}, _callee);
|
|
30106
30212
|
})),
|
|
@@ -30434,6 +30540,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30434
30540
|
}
|
|
30435
30541
|
}, "\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);
|
|
30436
30542
|
};
|
|
30543
|
+
//添加同一层级条件
|
|
30437
30544
|
_this.addPeerRule = function (itemDetail) {
|
|
30438
30545
|
var ruleClassData = _this.state.ruleClassData;
|
|
30439
30546
|
var _this$props4 = _this.props,
|
|
@@ -30454,6 +30561,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30454
30561
|
callBack(ruleClassData);
|
|
30455
30562
|
});
|
|
30456
30563
|
};
|
|
30564
|
+
//添加子层级条件
|
|
30457
30565
|
_this.addChildRules = function (itemDetail) {
|
|
30458
30566
|
var ruleClassData = _this.state.ruleClassData;
|
|
30459
30567
|
var callBack = _this.props.callBack;
|
|
@@ -30529,6 +30637,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30529
30637
|
callBack(ruleClassData);
|
|
30530
30638
|
});
|
|
30531
30639
|
};
|
|
30640
|
+
// 新增执行顺序
|
|
30532
30641
|
_this.handleSelectRuleAction = function (keys, classDataIndex, callback) {
|
|
30533
30642
|
callback();
|
|
30534
30643
|
var callBack = _this.props.callBack;
|