@bit-sun/business-component 2.2.36 → 2.2.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +16 -16
- package/.fatherrc.ts +5 -5
- package/.gitlab-ci.yml +179 -179
- package/.prettierignore +7 -7
- package/.prettierrc +11 -11
- package/.umirc.ts +74 -74
- package/README.md +27 -27
- package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/AllFunc/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/RightContent/index.d.ts +2 -2
- package/dist/components/Business/BsLayouts/Components/SearchFunc/index.d.ts +2 -2
- package/dist/components/Business/BsLayouts/index.d.ts +2 -2
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +2 -2
- package/dist/components/Business/SearchSelect/index.d.ts +1 -1
- package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
- package/dist/index.esm.js +653 -642
- package/dist/index.js +653 -642
- 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 +77 -77
- 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/components/Business/AddSelectBusiness/index.md +161 -161
- package/src/components/Business/AddSelectBusiness/index.tsx +861 -861
- package/src/components/Business/BsLayouts/Components/AllFunc/drawContent.tsx +111 -111
- package/src/components/Business/BsLayouts/Components/AllFunc/index.less +153 -153
- package/src/components/Business/BsLayouts/Components/AllFunc/index.tsx +70 -70
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.less +90 -90
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.tsx +37 -37
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.tsx +242 -242
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.tsx +384 -384
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.tsx +285 -285
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.tsx +74 -74
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/drawContent.less +170 -170
- package/src/components/Business/BsLayouts/Components/CustomerMenu/index.less +64 -64
- package/src/components/Business/BsLayouts/Components/CustomerMenu/index.tsx +153 -153
- package/src/components/Business/BsLayouts/Components/GlobalHeader/index.less +72 -72
- package/src/components/Business/BsLayouts/Components/GlobalHeader/index.tsx +157 -157
- package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +85 -85
- package/src/components/Business/BsLayouts/Components/RightContent/home.less +218 -218
- package/src/components/Business/BsLayouts/Components/RightContent/index.tsx +155 -155
- package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +160 -160
- package/src/components/Business/BsLayouts/Components/SearchFunc/index.tsx +75 -75
- package/src/components/Business/BsLayouts/index.less +79 -79
- package/src/components/Business/BsLayouts/index.tsx +1484 -1484
- package/src/components/Business/BsLayouts/service.ts +10 -10
- package/src/components/Business/BsLayouts/utils.tsx +203 -203
- package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +538 -538
- package/src/components/Business/BsSulaQueryTable/index.less +219 -219
- package/src/components/Business/BsSulaQueryTable/index.tsx +527 -527
- package/src/components/Business/BsSulaQueryTable/setting.tsx +802 -802
- package/src/components/Business/BsSulaQueryTable/utils.less +65 -65
- package/src/components/Business/BsSulaQueryTable/utils.tsx +688 -688
- package/src/components/Business/CommodityEntry/index.md +70 -70
- package/src/components/Business/CommodityEntry/index.tsx +80 -80
- package/src/components/Business/CommonAlert/index.tsx +23 -23
- package/src/components/Business/CommonGuideWrapper/index.less +111 -111
- package/src/components/Business/CommonGuideWrapper/index.md +39 -39
- package/src/components/Business/CommonGuideWrapper/index.tsx +83 -83
- package/src/components/Business/DetailPageWrapper/index.less +79 -79
- package/src/components/Business/DetailPageWrapper/index.tsx +313 -313
- package/src/components/Business/DetailPageWrapper/utils.tsx +100 -100
- package/src/components/Business/HomePageWrapper/index.less +33 -33
- package/src/components/Business/HomePageWrapper/index.md +45 -45
- package/src/components/Business/HomePageWrapper/index.tsx +162 -162
- package/src/components/Business/JsonQueryTable/components/FieldsModifyModal.tsx +824 -824
- package/src/components/Business/JsonQueryTable/components/FieldsSettingsTable.tsx +201 -201
- 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 +320 -320
- package/src/components/Business/JsonQueryTable/jsonEditor/index.js +346 -346
- package/src/components/Business/JsonQueryTable/jsonEditor/index.less +22 -22
- package/src/components/Business/JsonQueryTable/jsonEditor/lint/basicType.js +147 -147
- package/src/components/Business/JsonQueryTable/jsonEditor/lint/index.js +389 -389
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/actions.js +118 -118
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/dependency.js +22 -22
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/index.js +21 -21
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/request.js +65 -65
- package/src/components/Business/JsonQueryTable/static.ts +390 -390
- package/src/components/Business/SearchSelect/BusinessUtils.ts +1732 -1731
- package/src/components/Business/SearchSelect/common.ts +53 -53
- package/src/components/Business/SearchSelect/index.md +1319 -1319
- package/src/components/Business/SearchSelect/index.tsx +51 -51
- package/src/components/Business/SearchSelect/utils.ts +100 -100
- package/src/components/Business/StateFlow/index.less +130 -130
- package/src/components/Business/StateFlow/index.md +60 -60
- package/src/components/Business/StateFlow/index.tsx +29 -29
- package/src/components/Business/TreeSearchSelect/index.md +154 -154
- package/src/components/Business/TreeSearchSelect/index.tsx +34 -34
- package/src/components/Business/TreeSearchSelect/utils.ts +69 -69
- package/src/components/Business/columnSettingTable/columnSetting.tsx +764 -764
- package/src/components/Business/columnSettingTable/index.less +247 -247
- package/src/components/Business/columnSettingTable/index.md +357 -357
- package/src/components/Business/columnSettingTable/index.tsx +232 -232
- package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +240 -240
- package/src/components/Business/columnSettingTable/utils.tsx +68 -68
- package/src/components/Business/moreTreeTable/index.less +99 -99
- package/src/components/Business/moreTreeTable/index.md +448 -448
- package/src/components/Business/moreTreeTable/index.tsx +368 -365
- package/src/components/Business/moreTreeTable/utils.ts +126 -126
- package/src/components/Functional/AddSelect/helps.ts +14 -14
- package/src/components/Functional/AddSelect/index.less +367 -367
- package/src/components/Functional/AddSelect/index.md +155 -155
- package/src/components/Functional/AddSelect/index.tsx +1279 -1279
- package/src/components/Functional/BillEntry/index.less +371 -371
- package/src/components/Functional/BillEntry/index.md +39 -39
- package/src/components/Functional/BillEntry/index.tsx +772 -772
- package/src/components/Functional/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/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 +849 -849
- 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 +162 -162
- package/src/index.ts +34 -34
- package/src/plugin/TableColumnSetting/index.less +247 -247
- package/src/plugin/TableColumnSetting/index.md +50 -50
- package/src/plugin/TableColumnSetting/index.tsx +724 -724
- package/src/plugin/TableColumnSetting/utils.ts +19 -19
- package/src/styles/bsDefault.less +1912 -1912
- package/src/utils/CheckOneUser/index.md +39 -39
- package/src/utils/CheckOneUser/index.ts +51 -51
- package/src/utils/LocalstorageUtils.ts +90 -90
- package/src/utils/TableUtils.tsx +18 -18
- package/src/utils/checkUtils.ts +39 -39
- package/src/utils/enumConfig.ts +11 -11
- package/src/utils/getFormMode.js +12 -12
- package/src/utils/index.ts +3 -3
- package/src/utils/requestUtils.ts +34 -34
- package/src/utils/serialize.js +7 -7
- package/src/utils/utils.ts +183 -183
- package/tsconfig.json +29 -29
- package/typings.d.ts +4 -4
package/dist/index.esm.js
CHANGED
|
@@ -135,33 +135,6 @@ axios.interceptors.request.use(function (config) {
|
|
|
135
135
|
return config;
|
|
136
136
|
});
|
|
137
137
|
|
|
138
|
-
function _iterableToArrayLimit(arr, i) {
|
|
139
|
-
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
140
|
-
if (null != _i) {
|
|
141
|
-
var _s,
|
|
142
|
-
_e,
|
|
143
|
-
_x,
|
|
144
|
-
_r,
|
|
145
|
-
_arr = [],
|
|
146
|
-
_n = !0,
|
|
147
|
-
_d = !1;
|
|
148
|
-
try {
|
|
149
|
-
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
150
|
-
if (Object(_i) !== _i) return;
|
|
151
|
-
_n = !1;
|
|
152
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
153
|
-
} catch (err) {
|
|
154
|
-
_d = !0, _e = err;
|
|
155
|
-
} finally {
|
|
156
|
-
try {
|
|
157
|
-
if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
|
|
158
|
-
} finally {
|
|
159
|
-
if (_d) throw _e;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
return _arr;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
138
|
function ownKeys(object, enumerableOnly) {
|
|
166
139
|
var keys = Object.keys(object);
|
|
167
140
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -318,9 +291,14 @@ function _regeneratorRuntime() {
|
|
|
318
291
|
};
|
|
319
292
|
}
|
|
320
293
|
function maybeInvokeDelegate(delegate, context) {
|
|
321
|
-
var
|
|
322
|
-
|
|
323
|
-
|
|
294
|
+
var method = delegate.iterator[context.method];
|
|
295
|
+
if (undefined === method) {
|
|
296
|
+
if (context.delegate = null, "throw" === context.method) {
|
|
297
|
+
if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
298
|
+
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
299
|
+
}
|
|
300
|
+
return ContinueSentinel;
|
|
301
|
+
}
|
|
324
302
|
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
325
303
|
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
326
304
|
var info = record.arg;
|
|
@@ -534,7 +512,7 @@ function _defineProperties(target, props) {
|
|
|
534
512
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
535
513
|
descriptor.configurable = true;
|
|
536
514
|
if ("value" in descriptor) descriptor.writable = true;
|
|
537
|
-
Object.defineProperty(target,
|
|
515
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
538
516
|
}
|
|
539
517
|
}
|
|
540
518
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
@@ -546,7 +524,6 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
546
524
|
return Constructor;
|
|
547
525
|
}
|
|
548
526
|
function _defineProperty(obj, key, value) {
|
|
549
|
-
key = _toPropertyKey(key);
|
|
550
527
|
if (key in obj) {
|
|
551
528
|
Object.defineProperty(obj, key, {
|
|
552
529
|
value: value,
|
|
@@ -675,6 +652,30 @@ function _arrayWithHoles(arr) {
|
|
|
675
652
|
function _iterableToArray(iter) {
|
|
676
653
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
677
654
|
}
|
|
655
|
+
function _iterableToArrayLimit(arr, i) {
|
|
656
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
657
|
+
if (_i == null) return;
|
|
658
|
+
var _arr = [];
|
|
659
|
+
var _n = true;
|
|
660
|
+
var _d = false;
|
|
661
|
+
var _s, _e;
|
|
662
|
+
try {
|
|
663
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
664
|
+
_arr.push(_s.value);
|
|
665
|
+
if (i && _arr.length === i) break;
|
|
666
|
+
}
|
|
667
|
+
} catch (err) {
|
|
668
|
+
_d = true;
|
|
669
|
+
_e = err;
|
|
670
|
+
} finally {
|
|
671
|
+
try {
|
|
672
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
673
|
+
} finally {
|
|
674
|
+
if (_d) throw _e;
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
return _arr;
|
|
678
|
+
}
|
|
678
679
|
function _unsupportedIterableToArray(o, minLen) {
|
|
679
680
|
if (!o) return;
|
|
680
681
|
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
@@ -694,20 +695,6 @@ function _nonIterableSpread() {
|
|
|
694
695
|
function _nonIterableRest() {
|
|
695
696
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
696
697
|
}
|
|
697
|
-
function _toPrimitive(input, hint) {
|
|
698
|
-
if (typeof input !== "object" || input === null) return input;
|
|
699
|
-
var prim = input[Symbol.toPrimitive];
|
|
700
|
-
if (prim !== undefined) {
|
|
701
|
-
var res = prim.call(input, hint || "default");
|
|
702
|
-
if (typeof res !== "object") return res;
|
|
703
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
704
|
-
}
|
|
705
|
-
return (hint === "string" ? String : Number)(input);
|
|
706
|
-
}
|
|
707
|
-
function _toPropertyKey(arg) {
|
|
708
|
-
var key = _toPrimitive(arg, "string");
|
|
709
|
-
return typeof key === "symbol" ? key : String(key);
|
|
710
|
-
}
|
|
711
698
|
|
|
712
699
|
var checkQuantityAccuracy = function checkQuantityAccuracy(value, accuracy, errorInfo) {
|
|
713
700
|
var errorMessage = _objectSpread2({
|
|
@@ -2279,85 +2266,84 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
2279
2266
|
});
|
|
2280
2267
|
}
|
|
2281
2268
|
// 数组对象处理,对带有特殊标记的name进行处理
|
|
2282
|
-
var
|
|
2269
|
+
for (var key in params) {
|
|
2283
2270
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2271
|
+
(function () {
|
|
2272
|
+
var element = params[key];
|
|
2273
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
2274
|
+
var dataParams = key.split('*number*');
|
|
2275
|
+
dataParams.forEach(function (value, index) {
|
|
2276
|
+
params[value] = element[index];
|
|
2277
|
+
});
|
|
2278
|
+
delete params[key];
|
|
2279
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
2280
|
+
var _dataParams = key.split('*address*');
|
|
2281
|
+
_dataParams.forEach(function (value, index) {
|
|
2282
|
+
params[value] = element.PCDCode[index];
|
|
2283
|
+
});
|
|
2284
|
+
delete params[key];
|
|
2285
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
2286
|
+
var _dataParams2 = key.split('*costType*');
|
|
2287
|
+
// eslint-disable-next-line prefer-destructuring
|
|
2288
|
+
params[_dataParams2[0]] = element[1];
|
|
2289
|
+
delete params[key];
|
|
2290
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
2291
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
2292
|
+
_dataParams3.forEach(function (value, index) {
|
|
2293
|
+
if (index === 0) {
|
|
2294
|
+
params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
2295
|
+
} else {
|
|
2296
|
+
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
2297
|
+
}
|
|
2298
|
+
});
|
|
2299
|
+
delete params[key];
|
|
2300
|
+
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
2301
|
+
var _dataParams4 = key.split('*checkBox*');
|
|
2302
|
+
if (element) {
|
|
2303
|
+
params[_dataParams4[0]] = 0;
|
|
2309
2304
|
}
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2305
|
+
delete params[key];
|
|
2306
|
+
} else if (element && key.indexOf('*cascader*') >= 0) {
|
|
2307
|
+
var _dataParams5 = key.split('*cascader*');
|
|
2308
|
+
params[_dataParams5[0]] = element[element.length - 1];
|
|
2309
|
+
delete params[key];
|
|
2310
|
+
} else if (element && key.indexOf('*date*') >= 0) {
|
|
2311
|
+
var _dataParams6 = key.split('*date*');
|
|
2312
|
+
_dataParams6.forEach(function (value, index) {
|
|
2313
|
+
if (index === 0) {
|
|
2314
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
2315
|
+
} else {
|
|
2316
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
2317
|
+
}
|
|
2318
|
+
});
|
|
2319
|
+
delete params[key];
|
|
2320
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
2321
|
+
var _dataParams7 = key.split('*');
|
|
2322
|
+
_dataParams7.forEach(function (value, index) {
|
|
2323
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
2324
|
+
});
|
|
2325
|
+
delete params[key];
|
|
2326
|
+
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
2327
|
+
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
2328
|
+
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
2329
|
+
if (params[key][0] === 'range') {
|
|
2330
|
+
if (params[key][1][0]) {
|
|
2331
|
+
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
2332
|
+
}
|
|
2333
|
+
if (params[key][1][1]) {
|
|
2334
|
+
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
2335
|
+
}
|
|
2327
2336
|
} else {
|
|
2328
|
-
params[
|
|
2329
|
-
}
|
|
2330
|
-
});
|
|
2331
|
-
delete params[key];
|
|
2332
|
-
} else if (element && key.indexOf('*') >= 0) {
|
|
2333
|
-
var _dataParams7 = key.split('*');
|
|
2334
|
-
_dataParams7.forEach(function (value, index) {
|
|
2335
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
2336
|
-
});
|
|
2337
|
-
delete params[key];
|
|
2338
|
-
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
2339
|
-
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
2340
|
-
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
2341
|
-
if (params[key][0] === 'range') {
|
|
2342
|
-
if (params[key][1][0]) {
|
|
2343
|
-
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
2344
|
-
}
|
|
2345
|
-
if (params[key][1][1]) {
|
|
2346
|
-
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
2337
|
+
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
2347
2338
|
}
|
|
2348
|
-
|
|
2349
|
-
|
|
2339
|
+
delete params[key];
|
|
2340
|
+
} else if (Array.isArray(element)) {
|
|
2341
|
+
params[key] = element.join(',');
|
|
2342
|
+
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
2343
|
+
delete params[key];
|
|
2350
2344
|
}
|
|
2351
|
-
|
|
2352
|
-
} else if (Array.isArray(element)) {
|
|
2353
|
-
params[key] = element.join(',');
|
|
2354
|
-
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
2355
|
-
delete params[key];
|
|
2356
|
-
}
|
|
2345
|
+
})();
|
|
2357
2346
|
}
|
|
2358
|
-
};
|
|
2359
|
-
for (var key in params) {
|
|
2360
|
-
_loop();
|
|
2361
2347
|
}
|
|
2362
2348
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
2363
2349
|
pageSize: pageSize,
|
|
@@ -9573,59 +9559,58 @@ var getItemDefaultWidth = function getItemDefaultWidth(item) {
|
|
|
9573
9559
|
* @returns 返回处理后的查询参数
|
|
9574
9560
|
*/
|
|
9575
9561
|
function queryParams(params, flag) {
|
|
9576
|
-
var
|
|
9562
|
+
for (var key in params) {
|
|
9577
9563
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
9578
|
-
|
|
9579
|
-
|
|
9580
|
-
|
|
9581
|
-
|
|
9582
|
-
|
|
9583
|
-
|
|
9584
|
-
|
|
9585
|
-
|
|
9586
|
-
|
|
9587
|
-
|
|
9588
|
-
|
|
9589
|
-
|
|
9590
|
-
|
|
9591
|
-
|
|
9592
|
-
|
|
9593
|
-
|
|
9594
|
-
|
|
9595
|
-
|
|
9596
|
-
|
|
9597
|
-
|
|
9598
|
-
|
|
9599
|
-
|
|
9600
|
-
|
|
9564
|
+
(function () {
|
|
9565
|
+
var element = params[key];
|
|
9566
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
9567
|
+
var dataParams = key.split('*number*');
|
|
9568
|
+
dataParams.forEach(function (value, index) {
|
|
9569
|
+
params[value] = element[index];
|
|
9570
|
+
});
|
|
9571
|
+
delete params[key];
|
|
9572
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
9573
|
+
var _dataParams = key.split('*address*');
|
|
9574
|
+
_dataParams.forEach(function (value, index) {
|
|
9575
|
+
params[value] = element.PCDCode[index];
|
|
9576
|
+
});
|
|
9577
|
+
delete params[key];
|
|
9578
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
9579
|
+
var _dataParams2 = key.split('*costType*');
|
|
9580
|
+
// eslint-disable-next-line prefer-destructuring
|
|
9581
|
+
params[_dataParams2[0]] = element[1];
|
|
9582
|
+
delete params[key];
|
|
9583
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
9584
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
9585
|
+
_dataParams3.forEach(function (value, index) {
|
|
9586
|
+
if (index === 0) {
|
|
9587
|
+
params[value] = hooks(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
9588
|
+
} else {
|
|
9589
|
+
params[value] = hooks(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
9590
|
+
}
|
|
9591
|
+
});
|
|
9592
|
+
delete params[key];
|
|
9593
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
9594
|
+
var _dataParams4 = key.split('*');
|
|
9595
|
+
_dataParams4.forEach(function (value, index) {
|
|
9596
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
9597
|
+
});
|
|
9598
|
+
delete params[key];
|
|
9599
|
+
} else if (element && key.indexOf('_likeIn_') >= 0) {
|
|
9600
|
+
var _dataParams5 = key.split('_likeIn_');
|
|
9601
|
+
if (element.indexOf(',') >= 0) {
|
|
9602
|
+
params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
|
|
9603
|
+
params["qp-".concat(_dataParams5[0], "-like")] = null;
|
|
9601
9604
|
} else {
|
|
9602
|
-
params[
|
|
9605
|
+
params["qp-".concat(_dataParams5[0], "-like")] = element;
|
|
9606
|
+
params["qp-".concat(_dataParams5[0], "-in")] = null;
|
|
9603
9607
|
}
|
|
9604
|
-
|
|
9605
|
-
|
|
9606
|
-
|
|
9607
|
-
var _dataParams4 = key.split('*');
|
|
9608
|
-
_dataParams4.forEach(function (value, index) {
|
|
9609
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
9610
|
-
});
|
|
9611
|
-
delete params[key];
|
|
9612
|
-
} else if (element && key.indexOf('_likeIn_') >= 0) {
|
|
9613
|
-
var _dataParams5 = key.split('_likeIn_');
|
|
9614
|
-
if (element.indexOf(',') >= 0) {
|
|
9615
|
-
params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
|
|
9616
|
-
params["qp-".concat(_dataParams5[0], "-like")] = null;
|
|
9617
|
-
} else {
|
|
9618
|
-
params["qp-".concat(_dataParams5[0], "-like")] = element;
|
|
9619
|
-
params["qp-".concat(_dataParams5[0], "-in")] = null;
|
|
9608
|
+
delete params[key];
|
|
9609
|
+
} else if (Array.isArray(element)) {
|
|
9610
|
+
params[key] = element.join(',');
|
|
9620
9611
|
}
|
|
9621
|
-
|
|
9622
|
-
} else if (Array.isArray(element)) {
|
|
9623
|
-
params[key] = element.join(',');
|
|
9624
|
-
}
|
|
9612
|
+
})();
|
|
9625
9613
|
}
|
|
9626
|
-
};
|
|
9627
|
-
for (var key in params) {
|
|
9628
|
-
_loop();
|
|
9629
9614
|
}
|
|
9630
9615
|
return flag ? params : qs.stringify(params);
|
|
9631
9616
|
}
|
|
@@ -10155,74 +10140,76 @@ var AddSelect = function AddSelect(props) {
|
|
|
10155
10140
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
10156
10141
|
var result;
|
|
10157
10142
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10158
|
-
while (1)
|
|
10159
|
-
|
|
10160
|
-
|
|
10161
|
-
|
|
10162
|
-
|
|
10163
|
-
|
|
10164
|
-
|
|
10165
|
-
|
|
10166
|
-
|
|
10167
|
-
|
|
10168
|
-
|
|
10169
|
-
|
|
10170
|
-
|
|
10171
|
-
|
|
10172
|
-
|
|
10173
|
-
|
|
10174
|
-
|
|
10175
|
-
|
|
10176
|
-
|
|
10177
|
-
|
|
10178
|
-
|
|
10179
|
-
|
|
10180
|
-
|
|
10181
|
-
|
|
10182
|
-
|
|
10183
|
-
|
|
10184
|
-
|
|
10185
|
-
|
|
10186
|
-
|
|
10187
|
-
|
|
10188
|
-
|
|
10189
|
-
|
|
10190
|
-
|
|
10191
|
-
|
|
10192
|
-
|
|
10193
|
-
|
|
10194
|
-
|
|
10195
|
-
|
|
10196
|
-
|
|
10197
|
-
|
|
10198
|
-
|
|
10199
|
-
|
|
10143
|
+
while (1) {
|
|
10144
|
+
switch (_context.prev = _context.next) {
|
|
10145
|
+
case 0:
|
|
10146
|
+
if (!(bType == 'skc' && tList.some(function (i) {
|
|
10147
|
+
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
10148
|
+
}))) {
|
|
10149
|
+
_context.next = 3;
|
|
10150
|
+
break;
|
|
10151
|
+
}
|
|
10152
|
+
message.warning('相同skc配码不可设置相同哦');
|
|
10153
|
+
return _context.abrupt("return", false);
|
|
10154
|
+
case 3:
|
|
10155
|
+
if (!(bType == 'spu')) {
|
|
10156
|
+
_context.next = 26;
|
|
10157
|
+
break;
|
|
10158
|
+
}
|
|
10159
|
+
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
10160
|
+
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
10161
|
+
}))) {
|
|
10162
|
+
_context.next = 7;
|
|
10163
|
+
break;
|
|
10164
|
+
}
|
|
10165
|
+
message.warning('相同商品相同配码颜色不可设置相同哦');
|
|
10166
|
+
return _context.abrupt("return", false);
|
|
10167
|
+
case 7:
|
|
10168
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
10169
|
+
_context.next = 10;
|
|
10170
|
+
break;
|
|
10171
|
+
}
|
|
10172
|
+
message.warning('请先选择颜色!');
|
|
10173
|
+
return _context.abrupt("return", false);
|
|
10174
|
+
case 10:
|
|
10175
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
10176
|
+
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
10177
|
+
}))) {
|
|
10178
|
+
_context.next = 13;
|
|
10179
|
+
break;
|
|
10180
|
+
}
|
|
10181
|
+
message.warning('相同商品相同颜色配码不可设置相同哦');
|
|
10182
|
+
return _context.abrupt("return", false);
|
|
10183
|
+
case 13:
|
|
10184
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
10185
|
+
_context.next = 26;
|
|
10186
|
+
break;
|
|
10187
|
+
}
|
|
10188
|
+
result = true;
|
|
10189
|
+
_context.prev = 15;
|
|
10190
|
+
_context.next = 18;
|
|
10191
|
+
return checkSpuMatchCode({
|
|
10192
|
+
skcCode: recordItem[recordKey],
|
|
10193
|
+
matchingCode: changeValue,
|
|
10194
|
+
ext1: recordItem.colorName
|
|
10195
|
+
});
|
|
10196
|
+
case 18:
|
|
10197
|
+
result = _context.sent;
|
|
10198
|
+
result = true;
|
|
10199
|
+
_context.next = 25;
|
|
10200
10200
|
break;
|
|
10201
|
-
|
|
10202
|
-
|
|
10203
|
-
|
|
10204
|
-
|
|
10205
|
-
|
|
10206
|
-
|
|
10207
|
-
|
|
10208
|
-
|
|
10209
|
-
|
|
10210
|
-
|
|
10211
|
-
|
|
10212
|
-
|
|
10213
|
-
_context.next = 25;
|
|
10214
|
-
break;
|
|
10215
|
-
case 22:
|
|
10216
|
-
_context.prev = 22;
|
|
10217
|
-
_context.t0 = _context["catch"](15);
|
|
10218
|
-
result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
|
|
10219
|
-
case 25:
|
|
10220
|
-
return _context.abrupt("return", result);
|
|
10221
|
-
case 26:
|
|
10222
|
-
return _context.abrupt("return", true);
|
|
10223
|
-
case 27:
|
|
10224
|
-
case "end":
|
|
10225
|
-
return _context.stop();
|
|
10201
|
+
case 22:
|
|
10202
|
+
_context.prev = 22;
|
|
10203
|
+
_context.t0 = _context["catch"](15);
|
|
10204
|
+
result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
|
|
10205
|
+
case 25:
|
|
10206
|
+
return _context.abrupt("return", result);
|
|
10207
|
+
case 26:
|
|
10208
|
+
return _context.abrupt("return", true);
|
|
10209
|
+
case 27:
|
|
10210
|
+
case "end":
|
|
10211
|
+
return _context.stop();
|
|
10212
|
+
}
|
|
10226
10213
|
}
|
|
10227
10214
|
}, _callee, null, [[15, 22]]);
|
|
10228
10215
|
}));
|
|
@@ -10414,27 +10401,29 @@ var AddSelect = function AddSelect(props) {
|
|
|
10414
10401
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
10415
10402
|
var isConformToTheRules, newPopValue;
|
|
10416
10403
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
10417
|
-
while (1)
|
|
10418
|
-
|
|
10419
|
-
|
|
10420
|
-
|
|
10421
|
-
|
|
10422
|
-
|
|
10423
|
-
|
|
10424
|
-
|
|
10425
|
-
|
|
10426
|
-
|
|
10427
|
-
|
|
10428
|
-
newPopValue = popvalue.map(function (i, innerIndex) {
|
|
10429
|
-
if (innerIndex == index) {
|
|
10430
|
-
i[item.dataIndex] = record[item.dataIndex];
|
|
10404
|
+
while (1) {
|
|
10405
|
+
switch (_context2.prev = _context2.next) {
|
|
10406
|
+
case 0:
|
|
10407
|
+
_context2.next = 2;
|
|
10408
|
+
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
10409
|
+
case 2:
|
|
10410
|
+
isConformToTheRules = _context2.sent;
|
|
10411
|
+
if (isConformToTheRules) {
|
|
10412
|
+
record[item.dataIndex] = value;
|
|
10413
|
+
} else {
|
|
10414
|
+
record[item.dataIndex] = null;
|
|
10431
10415
|
}
|
|
10432
|
-
|
|
10433
|
-
|
|
10434
|
-
|
|
10435
|
-
|
|
10436
|
-
|
|
10437
|
-
|
|
10416
|
+
newPopValue = popvalue.map(function (i, innerIndex) {
|
|
10417
|
+
if (innerIndex == index) {
|
|
10418
|
+
i[item.dataIndex] = record[item.dataIndex];
|
|
10419
|
+
}
|
|
10420
|
+
return i;
|
|
10421
|
+
});
|
|
10422
|
+
setPopValue(newPopValue);
|
|
10423
|
+
case 6:
|
|
10424
|
+
case "end":
|
|
10425
|
+
return _context2.stop();
|
|
10426
|
+
}
|
|
10438
10427
|
}
|
|
10439
10428
|
}, _callee2);
|
|
10440
10429
|
}));
|
|
@@ -10494,85 +10483,84 @@ var AddSelect = function AddSelect(props) {
|
|
|
10494
10483
|
});
|
|
10495
10484
|
}
|
|
10496
10485
|
// 数组对象处理,对带有特殊标记的name进行处理
|
|
10497
|
-
var
|
|
10486
|
+
for (var key in params) {
|
|
10498
10487
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
10499
|
-
|
|
10500
|
-
|
|
10501
|
-
|
|
10502
|
-
|
|
10503
|
-
|
|
10504
|
-
|
|
10505
|
-
|
|
10506
|
-
|
|
10507
|
-
|
|
10508
|
-
|
|
10509
|
-
|
|
10510
|
-
|
|
10511
|
-
|
|
10512
|
-
|
|
10513
|
-
|
|
10514
|
-
|
|
10515
|
-
|
|
10516
|
-
|
|
10517
|
-
|
|
10518
|
-
|
|
10519
|
-
|
|
10520
|
-
|
|
10521
|
-
|
|
10522
|
-
|
|
10523
|
-
|
|
10488
|
+
(function () {
|
|
10489
|
+
var element = params[key];
|
|
10490
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
10491
|
+
var dataParams = key.split('*number*');
|
|
10492
|
+
dataParams.forEach(function (value, index) {
|
|
10493
|
+
params[value] = element[index];
|
|
10494
|
+
});
|
|
10495
|
+
delete params[key];
|
|
10496
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
10497
|
+
var _dataParams = key.split('*address*');
|
|
10498
|
+
_dataParams.forEach(function (value, index) {
|
|
10499
|
+
params[value] = element.PCDCode[index];
|
|
10500
|
+
});
|
|
10501
|
+
delete params[key];
|
|
10502
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
10503
|
+
var _dataParams2 = key.split('*costType*');
|
|
10504
|
+
// eslint-disable-next-line prefer-destructuring
|
|
10505
|
+
params[_dataParams2[0]] = element[1];
|
|
10506
|
+
delete params[key];
|
|
10507
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
10508
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
10509
|
+
_dataParams3.forEach(function (value, index) {
|
|
10510
|
+
if (index === 0) {
|
|
10511
|
+
params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
10512
|
+
} else {
|
|
10513
|
+
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
10514
|
+
}
|
|
10515
|
+
});
|
|
10516
|
+
delete params[key];
|
|
10517
|
+
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
10518
|
+
var _dataParams4 = key.split('*checkBox*');
|
|
10519
|
+
if (element) {
|
|
10520
|
+
params[_dataParams4[0]] = 0;
|
|
10524
10521
|
}
|
|
10525
|
-
|
|
10526
|
-
|
|
10527
|
-
|
|
10528
|
-
|
|
10529
|
-
|
|
10530
|
-
|
|
10531
|
-
|
|
10532
|
-
|
|
10533
|
-
|
|
10534
|
-
|
|
10535
|
-
|
|
10536
|
-
|
|
10537
|
-
|
|
10538
|
-
|
|
10539
|
-
|
|
10540
|
-
|
|
10541
|
-
|
|
10522
|
+
delete params[key];
|
|
10523
|
+
} else if (element && key.indexOf('*cascader*') >= 0) {
|
|
10524
|
+
var _dataParams5 = key.split('*cascader*');
|
|
10525
|
+
params[_dataParams5[0]] = element[element.length - 1];
|
|
10526
|
+
delete params[key];
|
|
10527
|
+
} else if (element && key.indexOf('*date*') >= 0) {
|
|
10528
|
+
var _dataParams6 = key.split('*date*');
|
|
10529
|
+
_dataParams6.forEach(function (value, index) {
|
|
10530
|
+
if (index === 0) {
|
|
10531
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
10532
|
+
} else {
|
|
10533
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
10534
|
+
}
|
|
10535
|
+
});
|
|
10536
|
+
delete params[key];
|
|
10537
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
10538
|
+
var _dataParams7 = key.split('*');
|
|
10539
|
+
_dataParams7.forEach(function (value, index) {
|
|
10540
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
10541
|
+
});
|
|
10542
|
+
delete params[key];
|
|
10543
|
+
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
10544
|
+
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
10545
|
+
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
10546
|
+
if (params[key][0] === 'range') {
|
|
10547
|
+
if (params[key][1][0]) {
|
|
10548
|
+
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
10549
|
+
}
|
|
10550
|
+
if (params[key][1][1]) {
|
|
10551
|
+
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
10552
|
+
}
|
|
10542
10553
|
} else {
|
|
10543
|
-
params[
|
|
10554
|
+
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
10544
10555
|
}
|
|
10545
|
-
|
|
10546
|
-
|
|
10547
|
-
|
|
10548
|
-
|
|
10549
|
-
|
|
10550
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
10551
|
-
});
|
|
10552
|
-
delete params[key];
|
|
10553
|
-
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
10554
|
-
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
10555
|
-
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
10556
|
-
if (params[key][0] === 'range') {
|
|
10557
|
-
if (params[key][1][0]) {
|
|
10558
|
-
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
10559
|
-
}
|
|
10560
|
-
if (params[key][1][1]) {
|
|
10561
|
-
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
10562
|
-
}
|
|
10563
|
-
} else {
|
|
10564
|
-
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
10556
|
+
delete params[key];
|
|
10557
|
+
} else if (Array.isArray(element)) {
|
|
10558
|
+
params[key] = element.join(',');
|
|
10559
|
+
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
10560
|
+
delete params[key];
|
|
10565
10561
|
}
|
|
10566
|
-
|
|
10567
|
-
} else if (Array.isArray(element)) {
|
|
10568
|
-
params[key] = element.join(',');
|
|
10569
|
-
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
10570
|
-
delete params[key];
|
|
10571
|
-
}
|
|
10562
|
+
})();
|
|
10572
10563
|
}
|
|
10573
|
-
};
|
|
10574
|
-
for (var key in params) {
|
|
10575
|
-
_loop();
|
|
10576
10564
|
}
|
|
10577
10565
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
10578
10566
|
pageSize: pageSize,
|
|
@@ -12027,70 +12015,72 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
12027
12015
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
12028
12016
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
12029
12017
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
12030
|
-
while (1)
|
|
12031
|
-
|
|
12032
|
-
|
|
12033
|
-
|
|
12034
|
-
|
|
12035
|
-
|
|
12036
|
-
message.warning('至少录入一条数据');
|
|
12037
|
-
return _context.abrupt("return");
|
|
12038
|
-
case 3:
|
|
12039
|
-
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
12040
|
-
return d.skuCode && d.name;
|
|
12041
|
-
})) {
|
|
12042
|
-
_context.next = 6;
|
|
12043
|
-
break;
|
|
12044
|
-
}
|
|
12045
|
-
message.warning('请选择商品!');
|
|
12046
|
-
return _context.abrupt("return");
|
|
12047
|
-
case 6:
|
|
12048
|
-
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
12049
|
-
return d.count;
|
|
12050
|
-
})) {
|
|
12051
|
-
_context.next = 9;
|
|
12052
|
-
break;
|
|
12053
|
-
}
|
|
12054
|
-
message.warning('请填写商品数量!');
|
|
12055
|
-
return _context.abrupt("return");
|
|
12056
|
-
case 9:
|
|
12057
|
-
_context.next = 11;
|
|
12058
|
-
return isSkuCanEntry(data);
|
|
12059
|
-
case 11:
|
|
12060
|
-
canEntryObject = _context.sent;
|
|
12061
|
-
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
12062
|
-
_context.next = 16;
|
|
12063
|
-
break;
|
|
12064
|
-
}
|
|
12065
|
-
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) {
|
|
12066
|
-
return /*#__PURE__*/React.createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
|
|
12067
|
-
}));
|
|
12068
|
-
messageInfo && message.warning({
|
|
12069
|
-
content: messageInfo,
|
|
12070
|
-
duration: 6
|
|
12071
|
-
});
|
|
12072
|
-
return _context.abrupt("return");
|
|
12073
|
-
case 16:
|
|
12074
|
-
setLoading(true);
|
|
12075
|
-
onSaveCallback(data).then(function (res) {
|
|
12076
|
-
{
|
|
12077
|
-
var _Object$keys;
|
|
12078
|
-
var initSuccessMessage = '保存成功';
|
|
12079
|
-
var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
|
|
12080
|
-
if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
|
|
12081
|
-
(rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? message.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
|
|
12082
|
-
} else {
|
|
12083
|
-
message.success(initSuccessMessage);
|
|
12084
|
-
}
|
|
12018
|
+
while (1) {
|
|
12019
|
+
switch (_context.prev = _context.next) {
|
|
12020
|
+
case 0:
|
|
12021
|
+
if (data === null || data === void 0 ? void 0 : data.length) {
|
|
12022
|
+
_context.next = 3;
|
|
12023
|
+
break;
|
|
12085
12024
|
}
|
|
12086
|
-
|
|
12087
|
-
|
|
12088
|
-
|
|
12089
|
-
|
|
12090
|
-
|
|
12091
|
-
|
|
12092
|
-
|
|
12093
|
-
|
|
12025
|
+
message.warning('至少录入一条数据');
|
|
12026
|
+
return _context.abrupt("return");
|
|
12027
|
+
case 3:
|
|
12028
|
+
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
12029
|
+
return d.skuCode && d.name;
|
|
12030
|
+
})) {
|
|
12031
|
+
_context.next = 6;
|
|
12032
|
+
break;
|
|
12033
|
+
}
|
|
12034
|
+
message.warning('请选择商品!');
|
|
12035
|
+
return _context.abrupt("return");
|
|
12036
|
+
case 6:
|
|
12037
|
+
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
12038
|
+
return d.count;
|
|
12039
|
+
})) {
|
|
12040
|
+
_context.next = 9;
|
|
12041
|
+
break;
|
|
12042
|
+
}
|
|
12043
|
+
message.warning('请填写商品数量!');
|
|
12044
|
+
return _context.abrupt("return");
|
|
12045
|
+
case 9:
|
|
12046
|
+
_context.next = 11;
|
|
12047
|
+
return isSkuCanEntry(data);
|
|
12048
|
+
case 11:
|
|
12049
|
+
canEntryObject = _context.sent;
|
|
12050
|
+
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
12051
|
+
_context.next = 16;
|
|
12052
|
+
break;
|
|
12053
|
+
}
|
|
12054
|
+
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) {
|
|
12055
|
+
return /*#__PURE__*/React.createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
|
|
12056
|
+
}));
|
|
12057
|
+
messageInfo && message.warning({
|
|
12058
|
+
content: messageInfo,
|
|
12059
|
+
duration: 6
|
|
12060
|
+
});
|
|
12061
|
+
return _context.abrupt("return");
|
|
12062
|
+
case 16:
|
|
12063
|
+
setLoading(true);
|
|
12064
|
+
onSaveCallback(data).then(function (res) {
|
|
12065
|
+
{
|
|
12066
|
+
var _Object$keys;
|
|
12067
|
+
var initSuccessMessage = '保存成功';
|
|
12068
|
+
var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
|
|
12069
|
+
if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
|
|
12070
|
+
(rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? message.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
|
|
12071
|
+
} else {
|
|
12072
|
+
message.success(initSuccessMessage);
|
|
12073
|
+
}
|
|
12074
|
+
}
|
|
12075
|
+
setLoading(false);
|
|
12076
|
+
}).catch(function (Error) {
|
|
12077
|
+
message.error(Error);
|
|
12078
|
+
setLoading(false);
|
|
12079
|
+
});
|
|
12080
|
+
case 18:
|
|
12081
|
+
case "end":
|
|
12082
|
+
return _context.stop();
|
|
12083
|
+
}
|
|
12094
12084
|
}
|
|
12095
12085
|
}, _callee);
|
|
12096
12086
|
}));
|
|
@@ -13505,6 +13495,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
13505
13495
|
mappingTextField: 'name',
|
|
13506
13496
|
mappingValueField: 'code',
|
|
13507
13497
|
otherParams: {
|
|
13498
|
+
'qp-isMain-eq': 1,
|
|
13508
13499
|
'qp-status-eq': 1,
|
|
13509
13500
|
sorter: 'desc-id'
|
|
13510
13501
|
},
|
|
@@ -15342,42 +15333,44 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
15342
15333
|
var _ctx$form;
|
|
15343
15334
|
var resData, coverData, data, dataList;
|
|
15344
15335
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
15345
|
-
while (1)
|
|
15346
|
-
|
|
15347
|
-
|
|
15348
|
-
|
|
15349
|
-
|
|
15336
|
+
while (1) {
|
|
15337
|
+
switch (_context.prev = _context.next) {
|
|
15338
|
+
case 0:
|
|
15339
|
+
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
15340
|
+
if (!(resData.status === '0' || resData.code === '000000')) {
|
|
15341
|
+
_context.next = 13;
|
|
15342
|
+
break;
|
|
15343
|
+
}
|
|
15344
|
+
data = resData.data;
|
|
15345
|
+
if (!remoteSource.converter) {
|
|
15346
|
+
_context.next = 9;
|
|
15347
|
+
break;
|
|
15348
|
+
}
|
|
15349
|
+
_context.next = 6;
|
|
15350
|
+
return remoteSource.converter({
|
|
15351
|
+
data: [data]
|
|
15352
|
+
});
|
|
15353
|
+
case 6:
|
|
15354
|
+
coverData = _context.sent;
|
|
15355
|
+
_context.next = 11;
|
|
15350
15356
|
break;
|
|
15351
|
-
|
|
15352
|
-
|
|
15353
|
-
|
|
15354
|
-
|
|
15357
|
+
case 9:
|
|
15358
|
+
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
15359
|
+
coverData = dataList.length && dataList.map(function (ites) {
|
|
15360
|
+
return mapSearchTree(ites);
|
|
15361
|
+
}) || [];
|
|
15362
|
+
case 11:
|
|
15363
|
+
_context.next = 14;
|
|
15355
15364
|
break;
|
|
15356
|
-
|
|
15357
|
-
|
|
15358
|
-
|
|
15359
|
-
|
|
15360
|
-
|
|
15361
|
-
|
|
15362
|
-
|
|
15363
|
-
|
|
15364
|
-
|
|
15365
|
-
case 9:
|
|
15366
|
-
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
15367
|
-
coverData = dataList.length && dataList.map(function (ites) {
|
|
15368
|
-
return mapSearchTree(ites);
|
|
15369
|
-
}) || [];
|
|
15370
|
-
case 11:
|
|
15371
|
-
_context.next = 14;
|
|
15372
|
-
break;
|
|
15373
|
-
case 13:
|
|
15374
|
-
coverData = [];
|
|
15375
|
-
case 14:
|
|
15376
|
-
setTreeData(coverData);
|
|
15377
|
-
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
|
|
15378
|
-
case 16:
|
|
15379
|
-
case "end":
|
|
15380
|
-
return _context.stop();
|
|
15365
|
+
case 13:
|
|
15366
|
+
coverData = [];
|
|
15367
|
+
case 14:
|
|
15368
|
+
setTreeData(coverData);
|
|
15369
|
+
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
|
|
15370
|
+
case 16:
|
|
15371
|
+
case "end":
|
|
15372
|
+
return _context.stop();
|
|
15373
|
+
}
|
|
15381
15374
|
}
|
|
15382
15375
|
}, _callee);
|
|
15383
15376
|
}));
|
|
@@ -19415,19 +19408,21 @@ function _outLogin() {
|
|
|
19415
19408
|
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19416
19409
|
var res;
|
|
19417
19410
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19418
|
-
while (1)
|
|
19419
|
-
|
|
19420
|
-
|
|
19421
|
-
|
|
19422
|
-
|
|
19423
|
-
|
|
19424
|
-
|
|
19425
|
-
|
|
19426
|
-
|
|
19427
|
-
|
|
19428
|
-
|
|
19429
|
-
|
|
19430
|
-
|
|
19411
|
+
while (1) {
|
|
19412
|
+
switch (_context.prev = _context.next) {
|
|
19413
|
+
case 0:
|
|
19414
|
+
_context.next = 2;
|
|
19415
|
+
return axios({
|
|
19416
|
+
url: '/user/web/loginOut',
|
|
19417
|
+
method: 'GET'
|
|
19418
|
+
});
|
|
19419
|
+
case 2:
|
|
19420
|
+
res = _context.sent;
|
|
19421
|
+
return _context.abrupt("return", res);
|
|
19422
|
+
case 4:
|
|
19423
|
+
case "end":
|
|
19424
|
+
return _context.stop();
|
|
19425
|
+
}
|
|
19431
19426
|
}
|
|
19432
19427
|
}, _callee);
|
|
19433
19428
|
}));
|
|
@@ -19556,29 +19551,31 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
19556
19551
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
19557
19552
|
var sessionId;
|
|
19558
19553
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19559
|
-
while (1)
|
|
19560
|
-
|
|
19561
|
-
|
|
19562
|
-
|
|
19563
|
-
|
|
19564
|
-
|
|
19565
|
-
|
|
19566
|
-
|
|
19567
|
-
|
|
19568
|
-
|
|
19569
|
-
case 5:
|
|
19570
|
-
// @ts-ignore
|
|
19571
|
-
if (BUILD_TYPE) {
|
|
19572
|
-
message.success('退出登录成功');
|
|
19573
|
-
history.replace({
|
|
19574
|
-
pathname: '/user/login'
|
|
19554
|
+
while (1) {
|
|
19555
|
+
switch (_context.prev = _context.next) {
|
|
19556
|
+
case 0:
|
|
19557
|
+
_context.next = 2;
|
|
19558
|
+
return getSessionId();
|
|
19559
|
+
case 2:
|
|
19560
|
+
sessionId = _context.sent;
|
|
19561
|
+
_context.next = 5;
|
|
19562
|
+
return outLogin({
|
|
19563
|
+
sessionId: sessionId
|
|
19575
19564
|
});
|
|
19576
|
-
|
|
19577
|
-
|
|
19578
|
-
|
|
19579
|
-
|
|
19580
|
-
|
|
19581
|
-
|
|
19565
|
+
case 5:
|
|
19566
|
+
// @ts-ignore
|
|
19567
|
+
if (BUILD_TYPE) {
|
|
19568
|
+
message.success('退出登录成功');
|
|
19569
|
+
history.replace({
|
|
19570
|
+
pathname: '/user/login'
|
|
19571
|
+
});
|
|
19572
|
+
} else {
|
|
19573
|
+
setLoginOutPath();
|
|
19574
|
+
}
|
|
19575
|
+
case 6:
|
|
19576
|
+
case "end":
|
|
19577
|
+
return _context.stop();
|
|
19578
|
+
}
|
|
19582
19579
|
}
|
|
19583
19580
|
}, _callee);
|
|
19584
19581
|
}));
|
|
@@ -21406,7 +21403,6 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21406
21403
|
showSubMenu: isShow
|
|
21407
21404
|
});
|
|
21408
21405
|
}, 500);
|
|
21409
|
-
//设置tabs标签左右滚动
|
|
21410
21406
|
_this.setTabNavTransLate = function (num) {
|
|
21411
21407
|
var _document$getElementB, _document$getElementB2, _document$getElementB3, _document$getElementB4, _document$defaultView;
|
|
21412
21408
|
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];
|
|
@@ -22087,12 +22083,14 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22087
22083
|
request: function () {
|
|
22088
22084
|
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
22089
22085
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
22090
|
-
while (1)
|
|
22091
|
-
|
|
22092
|
-
|
|
22093
|
-
|
|
22094
|
-
|
|
22095
|
-
|
|
22086
|
+
while (1) {
|
|
22087
|
+
switch (_context.prev = _context.next) {
|
|
22088
|
+
case 0:
|
|
22089
|
+
return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
|
|
22090
|
+
case 1:
|
|
22091
|
+
case "end":
|
|
22092
|
+
return _context.stop();
|
|
22093
|
+
}
|
|
22096
22094
|
}
|
|
22097
22095
|
}, _callee);
|
|
22098
22096
|
}));
|
|
@@ -22618,10 +22616,13 @@ var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
22618
22616
|
}, /*#__PURE__*/React.createElement("tbody", null, config.colLastData.map(function (item, index) {
|
|
22619
22617
|
var fixedTop = item.fixed ? "".concat(index * 40 + config.colHeaderToTop, "px") : 0;
|
|
22620
22618
|
return /*#__PURE__*/React.createElement("tr", null, colTableData.map(function (record, index) {
|
|
22621
|
-
var _record$_rowConfig;
|
|
22619
|
+
var _record$_rowConfig, _item$onCell;
|
|
22622
22620
|
var tdHidden = (record === null || record === void 0 ? void 0 : (_record$_rowConfig = record['_rowConfig']) === null || _record$_rowConfig === void 0 ? void 0 : _record$_rowConfig.hidden) ? 'none' : 'table-cell';
|
|
22621
|
+
var onCellResult = ((_item$onCell = item.onCell) === null || _item$onCell === void 0 ? void 0 : _item$onCell.call(item, record, index)) || {};
|
|
22622
|
+
var _onCellResult$addStyl = onCellResult.addStyle,
|
|
22623
|
+
addStyle = _onCellResult$addStyl === void 0 ? {} : _onCellResult$addStyl;
|
|
22623
22624
|
return /*#__PURE__*/React.createElement("td", {
|
|
22624
|
-
style: {
|
|
22625
|
+
style: _objectSpread2(_objectSpread2({}, addStyle), {}, {
|
|
22625
22626
|
display: tdHidden,
|
|
22626
22627
|
background: index % 2 === 1 || item.fixed ? '#f7f8fb' : '#fff',
|
|
22627
22628
|
minWidth: '100px',
|
|
@@ -22631,7 +22632,7 @@ var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
22631
22632
|
top: fixedTop,
|
|
22632
22633
|
color: item.fixed ? '#000000' : 'inherit',
|
|
22633
22634
|
zIndex: item.fixed ? 10 : ''
|
|
22634
|
-
}
|
|
22635
|
+
})
|
|
22635
22636
|
}, item.render ? item.render({
|
|
22636
22637
|
text: record[item.key || item.dataIndex],
|
|
22637
22638
|
record: record,
|
|
@@ -29652,26 +29653,28 @@ var valueType = {
|
|
|
29652
29653
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
29653
29654
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
29654
29655
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29655
|
-
while (1)
|
|
29656
|
-
|
|
29657
|
-
|
|
29658
|
-
|
|
29659
|
-
|
|
29660
|
-
|
|
29661
|
-
|
|
29662
|
-
|
|
29663
|
-
return {
|
|
29664
|
-
|
|
29665
|
-
|
|
29666
|
-
|
|
29667
|
-
|
|
29668
|
-
|
|
29669
|
-
|
|
29670
|
-
|
|
29671
|
-
|
|
29672
|
-
|
|
29673
|
-
|
|
29674
|
-
|
|
29656
|
+
while (1) {
|
|
29657
|
+
switch (_context.prev = _context.next) {
|
|
29658
|
+
case 0:
|
|
29659
|
+
_context.next = 2;
|
|
29660
|
+
return request$1({
|
|
29661
|
+
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
29662
|
+
converter: function converter(_ref2) {
|
|
29663
|
+
var data = _ref2.data;
|
|
29664
|
+
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
29665
|
+
return {
|
|
29666
|
+
text: d.name,
|
|
29667
|
+
value: d.code || d.brandCode
|
|
29668
|
+
};
|
|
29669
|
+
});
|
|
29670
|
+
}
|
|
29671
|
+
});
|
|
29672
|
+
case 2:
|
|
29673
|
+
return _context.abrupt("return", _context.sent);
|
|
29674
|
+
case 3:
|
|
29675
|
+
case "end":
|
|
29676
|
+
return _context.stop();
|
|
29677
|
+
}
|
|
29675
29678
|
}
|
|
29676
29679
|
}, _callee);
|
|
29677
29680
|
}));
|
|
@@ -29721,53 +29724,55 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29721
29724
|
useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29722
29725
|
var _ref$current, source;
|
|
29723
29726
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29724
|
-
while (1)
|
|
29725
|
-
|
|
29726
|
-
|
|
29727
|
-
|
|
29728
|
-
|
|
29729
|
-
|
|
29730
|
-
|
|
29731
|
-
|
|
29732
|
-
|
|
29733
|
-
|
|
29727
|
+
while (1) {
|
|
29728
|
+
switch (_context.prev = _context.next) {
|
|
29729
|
+
case 0:
|
|
29730
|
+
_context.next = 2;
|
|
29731
|
+
return setIsShowAndType(function (prev) {
|
|
29732
|
+
if (record.inputType === 20 || record.inputType === 30) {
|
|
29733
|
+
return {
|
|
29734
|
+
isShow: true,
|
|
29735
|
+
singleOrMultiple: record.inputType,
|
|
29736
|
+
type: record.choiceType
|
|
29737
|
+
};
|
|
29738
|
+
}
|
|
29739
|
+
return prev;
|
|
29740
|
+
});
|
|
29741
|
+
case 2:
|
|
29742
|
+
if (!record.dictionaryCode) {
|
|
29743
|
+
_context.next = 17;
|
|
29744
|
+
break;
|
|
29734
29745
|
}
|
|
29735
|
-
|
|
29736
|
-
|
|
29737
|
-
|
|
29738
|
-
|
|
29739
|
-
_context.
|
|
29740
|
-
|
|
29741
|
-
}
|
|
29742
|
-
if (!(record.choiceType == 20)) {
|
|
29743
|
-
_context.next = 7;
|
|
29746
|
+
if (!(record.choiceType == 20)) {
|
|
29747
|
+
_context.next = 7;
|
|
29748
|
+
break;
|
|
29749
|
+
}
|
|
29750
|
+
_context.t0 = getDictionarySource(record.dictionaryCode);
|
|
29751
|
+
_context.next = 15;
|
|
29744
29752
|
break;
|
|
29745
|
-
|
|
29746
|
-
|
|
29747
|
-
|
|
29748
|
-
|
|
29749
|
-
|
|
29750
|
-
|
|
29751
|
-
|
|
29753
|
+
case 7:
|
|
29754
|
+
if (!(record.choiceType == 30)) {
|
|
29755
|
+
_context.next = 13;
|
|
29756
|
+
break;
|
|
29757
|
+
}
|
|
29758
|
+
_context.next = 10;
|
|
29759
|
+
return getDynamicDict(record.dictionaryCode);
|
|
29760
|
+
case 10:
|
|
29761
|
+
_context.t1 = _context.sent;
|
|
29762
|
+
_context.next = 14;
|
|
29752
29763
|
break;
|
|
29753
|
-
|
|
29754
|
-
|
|
29755
|
-
|
|
29756
|
-
|
|
29757
|
-
|
|
29758
|
-
|
|
29759
|
-
|
|
29760
|
-
|
|
29761
|
-
|
|
29762
|
-
|
|
29763
|
-
|
|
29764
|
-
|
|
29765
|
-
source = _context.t0;
|
|
29766
|
-
// @ts-ignore
|
|
29767
|
-
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
29768
|
-
case 17:
|
|
29769
|
-
case "end":
|
|
29770
|
-
return _context.stop();
|
|
29764
|
+
case 13:
|
|
29765
|
+
_context.t1 = [];
|
|
29766
|
+
case 14:
|
|
29767
|
+
_context.t0 = _context.t1;
|
|
29768
|
+
case 15:
|
|
29769
|
+
source = _context.t0;
|
|
29770
|
+
// @ts-ignore
|
|
29771
|
+
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
29772
|
+
case 17:
|
|
29773
|
+
case "end":
|
|
29774
|
+
return _context.stop();
|
|
29775
|
+
}
|
|
29771
29776
|
}
|
|
29772
29777
|
}, _callee);
|
|
29773
29778
|
})));
|
|
@@ -29835,28 +29840,30 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29835
29840
|
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
29836
29841
|
var form, values, name, relates, source;
|
|
29837
29842
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
29838
|
-
while (1)
|
|
29839
|
-
|
|
29840
|
-
|
|
29841
|
-
|
|
29843
|
+
while (1) {
|
|
29844
|
+
switch (_context2.prev = _context2.next) {
|
|
29845
|
+
case 0:
|
|
29846
|
+
form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
|
|
29847
|
+
if (values[0]) {
|
|
29848
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
29849
|
+
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
29850
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
29851
|
+
}
|
|
29852
|
+
if (!values[1]) {
|
|
29853
|
+
_context2.next = 9;
|
|
29854
|
+
break;
|
|
29855
|
+
}
|
|
29856
|
+
_context2.next = 5;
|
|
29857
|
+
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
29858
|
+
case 5:
|
|
29859
|
+
source = _context2.sent;
|
|
29842
29860
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
29843
29861
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
29844
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0],
|
|
29845
|
-
|
|
29846
|
-
|
|
29847
|
-
_context2.
|
|
29848
|
-
|
|
29849
|
-
}
|
|
29850
|
-
_context2.next = 5;
|
|
29851
|
-
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
29852
|
-
case 5:
|
|
29853
|
-
source = _context2.sent;
|
|
29854
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
29855
|
-
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
29856
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
29857
|
-
case 9:
|
|
29858
|
-
case "end":
|
|
29859
|
-
return _context2.stop();
|
|
29862
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
29863
|
+
case 9:
|
|
29864
|
+
case "end":
|
|
29865
|
+
return _context2.stop();
|
|
29866
|
+
}
|
|
29860
29867
|
}
|
|
29861
29868
|
}, _callee2);
|
|
29862
29869
|
}));
|
|
@@ -30316,41 +30323,43 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30316
30323
|
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
30317
30324
|
var values, name, form, source;
|
|
30318
30325
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
30319
|
-
while (1)
|
|
30320
|
-
|
|
30321
|
-
|
|
30322
|
-
|
|
30323
|
-
|
|
30324
|
-
|
|
30325
|
-
|
|
30326
|
-
if (!(values[0] === 30)) {
|
|
30327
|
-
_context3.next = 10;
|
|
30328
|
-
break;
|
|
30329
|
-
}
|
|
30330
|
-
_context3.next = 5;
|
|
30331
|
-
return request$1({
|
|
30332
|
-
url: '/basic/dictDynamicItem/queryList',
|
|
30333
|
-
converter: function converter(_ref11) {
|
|
30334
|
-
var data = _ref11.data;
|
|
30335
|
-
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
30336
|
-
return {
|
|
30337
|
-
text: d.dictCode,
|
|
30338
|
-
value: d.dictCode
|
|
30339
|
-
};
|
|
30340
|
-
});
|
|
30326
|
+
while (1) {
|
|
30327
|
+
switch (_context3.prev = _context3.next) {
|
|
30328
|
+
case 0:
|
|
30329
|
+
values = _ref10.values, name = _ref10.name, form = _ref10.form;
|
|
30330
|
+
if (values[1] === 40) {
|
|
30331
|
+
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
30332
|
+
form.setFieldVisible(name, false);
|
|
30341
30333
|
}
|
|
30342
|
-
|
|
30343
|
-
|
|
30344
|
-
|
|
30345
|
-
|
|
30346
|
-
|
|
30347
|
-
|
|
30348
|
-
|
|
30349
|
-
|
|
30350
|
-
|
|
30351
|
-
|
|
30352
|
-
|
|
30353
|
-
|
|
30334
|
+
if (!(values[0] === 30)) {
|
|
30335
|
+
_context3.next = 10;
|
|
30336
|
+
break;
|
|
30337
|
+
}
|
|
30338
|
+
_context3.next = 5;
|
|
30339
|
+
return request$1({
|
|
30340
|
+
url: '/basic/dictDynamicItem/queryList',
|
|
30341
|
+
converter: function converter(_ref11) {
|
|
30342
|
+
var data = _ref11.data;
|
|
30343
|
+
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
30344
|
+
return {
|
|
30345
|
+
text: d.dictCode,
|
|
30346
|
+
value: d.dictCode
|
|
30347
|
+
};
|
|
30348
|
+
});
|
|
30349
|
+
}
|
|
30350
|
+
});
|
|
30351
|
+
case 5:
|
|
30352
|
+
source = _context3.sent;
|
|
30353
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
30354
|
+
form.setFieldVisible(name, true);
|
|
30355
|
+
_context3.next = 11;
|
|
30356
|
+
break;
|
|
30357
|
+
case 10:
|
|
30358
|
+
form.setFieldVisible(name, false);
|
|
30359
|
+
case 11:
|
|
30360
|
+
case "end":
|
|
30361
|
+
return _context3.stop();
|
|
30362
|
+
}
|
|
30354
30363
|
}
|
|
30355
30364
|
}, _callee3);
|
|
30356
30365
|
}));
|
|
@@ -30539,64 +30548,66 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30539
30548
|
var _ref$current4, _res$editableStatus;
|
|
30540
30549
|
var res, _res$defaultValue;
|
|
30541
30550
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
30542
|
-
while (1)
|
|
30543
|
-
|
|
30544
|
-
|
|
30545
|
-
|
|
30546
|
-
|
|
30547
|
-
|
|
30548
|
-
|
|
30549
|
-
|
|
30550
|
-
|
|
30551
|
-
|
|
30552
|
-
|
|
30553
|
-
|
|
30554
|
-
|
|
30555
|
-
|
|
30556
|
-
|
|
30557
|
-
|
|
30558
|
-
|
|
30559
|
-
|
|
30560
|
-
|
|
30561
|
-
|
|
30562
|
-
res.
|
|
30563
|
-
|
|
30564
|
-
// 把数组处理成文本
|
|
30565
|
-
if (res.inputType === 30) {
|
|
30566
|
-
if (res.defaultValue) {
|
|
30567
|
-
res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
|
|
30551
|
+
while (1) {
|
|
30552
|
+
switch (_context4.prev = _context4.next) {
|
|
30553
|
+
case 0:
|
|
30554
|
+
_context4.next = 2;
|
|
30555
|
+
return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
|
|
30556
|
+
case 2:
|
|
30557
|
+
res = _context4.sent;
|
|
30558
|
+
res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
|
|
30559
|
+
res.fieldGroup = record.fieldGroup;
|
|
30560
|
+
res.businessType = record.businessType;
|
|
30561
|
+
res.info = {
|
|
30562
|
+
enumeration: res.enumeration,
|
|
30563
|
+
dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
|
|
30564
|
+
formula: res.formula,
|
|
30565
|
+
scale: res.scale,
|
|
30566
|
+
variable: res.variable
|
|
30567
|
+
};
|
|
30568
|
+
res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
|
|
30569
|
+
res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
|
|
30570
|
+
res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
|
|
30571
|
+
if (res.inputType === 40) {
|
|
30572
|
+
res.valueType = 22;
|
|
30568
30573
|
}
|
|
30569
|
-
|
|
30570
|
-
|
|
30571
|
-
|
|
30572
|
-
|
|
30573
|
-
|
|
30574
|
-
_context4.next = 18;
|
|
30575
|
-
break;
|
|
30576
|
-
}
|
|
30577
|
-
request$1({
|
|
30578
|
-
url: "/basic/flow/businessField",
|
|
30579
|
-
method: 'POST',
|
|
30580
|
-
params: res,
|
|
30581
|
-
successMessage: '创建成功!',
|
|
30582
|
-
converter: function converter() {
|
|
30583
|
-
onParentOk();
|
|
30574
|
+
// 把数组处理成文本
|
|
30575
|
+
if (res.inputType === 30) {
|
|
30576
|
+
if (res.defaultValue) {
|
|
30577
|
+
res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
|
|
30578
|
+
}
|
|
30584
30579
|
}
|
|
30585
|
-
|
|
30586
|
-
|
|
30587
|
-
|
|
30588
|
-
|
|
30589
|
-
|
|
30590
|
-
|
|
30591
|
-
params: res,
|
|
30592
|
-
successMessage: '修改成功!',
|
|
30593
|
-
converter: function converter() {
|
|
30594
|
-
onParentOk();
|
|
30580
|
+
res.fieldMapping = res.fieldMapping || '';
|
|
30581
|
+
delete res.formula;
|
|
30582
|
+
delete res.showValue;
|
|
30583
|
+
if (!(mode === 'create')) {
|
|
30584
|
+
_context4.next = 18;
|
|
30585
|
+
break;
|
|
30595
30586
|
}
|
|
30596
|
-
|
|
30597
|
-
|
|
30598
|
-
|
|
30599
|
-
|
|
30587
|
+
request$1({
|
|
30588
|
+
url: "/basic/flow/businessField",
|
|
30589
|
+
method: 'POST',
|
|
30590
|
+
params: res,
|
|
30591
|
+
successMessage: '创建成功!',
|
|
30592
|
+
converter: function converter() {
|
|
30593
|
+
onParentOk();
|
|
30594
|
+
}
|
|
30595
|
+
});
|
|
30596
|
+
return _context4.abrupt("return");
|
|
30597
|
+
case 18:
|
|
30598
|
+
request$1({
|
|
30599
|
+
url: "/basic/flow/businessField/".concat(record.id),
|
|
30600
|
+
method: 'PATCH',
|
|
30601
|
+
params: res,
|
|
30602
|
+
successMessage: '修改成功!',
|
|
30603
|
+
converter: function converter() {
|
|
30604
|
+
onParentOk();
|
|
30605
|
+
}
|
|
30606
|
+
});
|
|
30607
|
+
case 19:
|
|
30608
|
+
case "end":
|
|
30609
|
+
return _context4.stop();
|
|
30610
|
+
}
|
|
30600
30611
|
}
|
|
30601
30612
|
}, _callee4);
|
|
30602
30613
|
}));
|