@bit-sun/business-component 2.2.36 → 2.2.37
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/CustomerMenu/MenuSetting/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
- 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 +667 -635
- package/dist/index.js +674 -642
- 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 +365 -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
|
@@ -10,7 +10,7 @@ import { Resizable } from 'react-resizable';
|
|
|
10
10
|
import { SortableHandle, SortableElement, SortableContainer } from 'react-sortable-hoc';
|
|
11
11
|
import { arrayMoveImmutable } from 'array-move';
|
|
12
12
|
import { history, formatMessage, useLocation, Link, useModel, useIntl } from 'umi';
|
|
13
|
-
import isEqual from 'lodash/isEqual';
|
|
13
|
+
import isEqual$1 from 'lodash/isEqual';
|
|
14
14
|
import { Table as Table$1, request as request$1, QueryTable, Form as Form$1 } from 'bssula';
|
|
15
15
|
import ProLayout from '@ant-design/pro-layout';
|
|
16
16
|
import cloneDeep from 'lodash/cloneDeep';
|
|
@@ -2279,85 +2279,84 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
2279
2279
|
});
|
|
2280
2280
|
}
|
|
2281
2281
|
// 数组对象处理,对带有特殊标记的name进行处理
|
|
2282
|
-
var
|
|
2282
|
+
for (var key in params) {
|
|
2283
2283
|
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
|
-
|
|
2284
|
+
(function () {
|
|
2285
|
+
var element = params[key];
|
|
2286
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
2287
|
+
var dataParams = key.split('*number*');
|
|
2288
|
+
dataParams.forEach(function (value, index) {
|
|
2289
|
+
params[value] = element[index];
|
|
2290
|
+
});
|
|
2291
|
+
delete params[key];
|
|
2292
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
2293
|
+
var _dataParams = key.split('*address*');
|
|
2294
|
+
_dataParams.forEach(function (value, index) {
|
|
2295
|
+
params[value] = element.PCDCode[index];
|
|
2296
|
+
});
|
|
2297
|
+
delete params[key];
|
|
2298
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
2299
|
+
var _dataParams2 = key.split('*costType*');
|
|
2300
|
+
// eslint-disable-next-line prefer-destructuring
|
|
2301
|
+
params[_dataParams2[0]] = element[1];
|
|
2302
|
+
delete params[key];
|
|
2303
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
2304
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
2305
|
+
_dataParams3.forEach(function (value, index) {
|
|
2306
|
+
if (index === 0) {
|
|
2307
|
+
params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
2308
|
+
} else {
|
|
2309
|
+
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
2310
|
+
}
|
|
2311
|
+
});
|
|
2312
|
+
delete params[key];
|
|
2313
|
+
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
2314
|
+
var _dataParams4 = key.split('*checkBox*');
|
|
2315
|
+
if (element) {
|
|
2316
|
+
params[_dataParams4[0]] = 0;
|
|
2309
2317
|
}
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2318
|
+
delete params[key];
|
|
2319
|
+
} else if (element && key.indexOf('*cascader*') >= 0) {
|
|
2320
|
+
var _dataParams5 = key.split('*cascader*');
|
|
2321
|
+
params[_dataParams5[0]] = element[element.length - 1];
|
|
2322
|
+
delete params[key];
|
|
2323
|
+
} else if (element && key.indexOf('*date*') >= 0) {
|
|
2324
|
+
var _dataParams6 = key.split('*date*');
|
|
2325
|
+
_dataParams6.forEach(function (value, index) {
|
|
2326
|
+
if (index === 0) {
|
|
2327
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
2328
|
+
} else {
|
|
2329
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
2330
|
+
}
|
|
2331
|
+
});
|
|
2332
|
+
delete params[key];
|
|
2333
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
2334
|
+
var _dataParams7 = key.split('*');
|
|
2335
|
+
_dataParams7.forEach(function (value, index) {
|
|
2336
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
2337
|
+
});
|
|
2338
|
+
delete params[key];
|
|
2339
|
+
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
2340
|
+
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
2341
|
+
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
2342
|
+
if (params[key][0] === 'range') {
|
|
2343
|
+
if (params[key][1][0]) {
|
|
2344
|
+
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
2345
|
+
}
|
|
2346
|
+
if (params[key][1][1]) {
|
|
2347
|
+
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
2348
|
+
}
|
|
2327
2349
|
} else {
|
|
2328
|
-
params[
|
|
2350
|
+
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
2329
2351
|
}
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
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];
|
|
2347
|
-
}
|
|
2348
|
-
} else {
|
|
2349
|
-
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
2352
|
+
delete params[key];
|
|
2353
|
+
} else if (Array.isArray(element)) {
|
|
2354
|
+
params[key] = element.join(',');
|
|
2355
|
+
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
2356
|
+
delete params[key];
|
|
2350
2357
|
}
|
|
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
|
-
}
|
|
2358
|
+
})();
|
|
2357
2359
|
}
|
|
2358
|
-
};
|
|
2359
|
-
for (var key in params) {
|
|
2360
|
-
_loop();
|
|
2361
2360
|
}
|
|
2362
2361
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
2363
2362
|
pageSize: pageSize,
|
|
@@ -3676,41 +3675,52 @@ var setInitialShowColumn = function setInitialShowColumn(tableCode, columns, cal
|
|
|
3676
3675
|
callback(showColumns);
|
|
3677
3676
|
};
|
|
3678
3677
|
|
|
3679
|
-
var
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
function
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
}
|
|
3687
|
-
|
|
3688
|
-
var lastThis;
|
|
3689
|
-
var lastArgs = [];
|
|
3690
|
-
var lastResult;
|
|
3691
|
-
var calledOnce = false;
|
|
3692
|
-
|
|
3693
|
-
var isNewArgEqualToLast = function isNewArgEqualToLast(newArg, index) {
|
|
3694
|
-
return isEqual(newArg, lastArgs[index], index);
|
|
3695
|
-
};
|
|
3696
|
-
|
|
3697
|
-
var result = function result() {
|
|
3698
|
-
for (var _len = arguments.length, newArgs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
3699
|
-
newArgs[_key] = arguments[_key];
|
|
3678
|
+
var safeIsNaN = Number.isNaN ||
|
|
3679
|
+
function ponyfill(value) {
|
|
3680
|
+
return typeof value === 'number' && value !== value;
|
|
3681
|
+
};
|
|
3682
|
+
function isEqual(first, second) {
|
|
3683
|
+
if (first === second) {
|
|
3684
|
+
return true;
|
|
3700
3685
|
}
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
return lastResult;
|
|
3686
|
+
if (safeIsNaN(first) && safeIsNaN(second)) {
|
|
3687
|
+
return true;
|
|
3704
3688
|
}
|
|
3689
|
+
return false;
|
|
3690
|
+
}
|
|
3691
|
+
function areInputsEqual(newInputs, lastInputs) {
|
|
3692
|
+
if (newInputs.length !== lastInputs.length) {
|
|
3693
|
+
return false;
|
|
3694
|
+
}
|
|
3695
|
+
for (var i = 0; i < newInputs.length; i++) {
|
|
3696
|
+
if (!isEqual(newInputs[i], lastInputs[i])) {
|
|
3697
|
+
return false;
|
|
3698
|
+
}
|
|
3699
|
+
}
|
|
3700
|
+
return true;
|
|
3701
|
+
}
|
|
3705
3702
|
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
lastThis
|
|
3709
|
-
lastArgs =
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3703
|
+
function memoizeOne(resultFn, isEqual) {
|
|
3704
|
+
if (isEqual === void 0) { isEqual = areInputsEqual; }
|
|
3705
|
+
var lastThis;
|
|
3706
|
+
var lastArgs = [];
|
|
3707
|
+
var lastResult;
|
|
3708
|
+
var calledOnce = false;
|
|
3709
|
+
function memoized() {
|
|
3710
|
+
var newArgs = [];
|
|
3711
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
3712
|
+
newArgs[_i] = arguments[_i];
|
|
3713
|
+
}
|
|
3714
|
+
if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {
|
|
3715
|
+
return lastResult;
|
|
3716
|
+
}
|
|
3717
|
+
lastResult = resultFn.apply(this, newArgs);
|
|
3718
|
+
calledOnce = true;
|
|
3719
|
+
lastThis = this;
|
|
3720
|
+
lastArgs = newArgs;
|
|
3721
|
+
return lastResult;
|
|
3722
|
+
}
|
|
3723
|
+
return memoized;
|
|
3714
3724
|
}
|
|
3715
3725
|
|
|
3716
3726
|
//! moment.js
|
|
@@ -9573,59 +9583,58 @@ var getItemDefaultWidth = function getItemDefaultWidth(item) {
|
|
|
9573
9583
|
* @returns 返回处理后的查询参数
|
|
9574
9584
|
*/
|
|
9575
9585
|
function queryParams(params, flag) {
|
|
9576
|
-
var
|
|
9586
|
+
for (var key in params) {
|
|
9577
9587
|
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
|
-
|
|
9588
|
+
(function () {
|
|
9589
|
+
var element = params[key];
|
|
9590
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
9591
|
+
var dataParams = key.split('*number*');
|
|
9592
|
+
dataParams.forEach(function (value, index) {
|
|
9593
|
+
params[value] = element[index];
|
|
9594
|
+
});
|
|
9595
|
+
delete params[key];
|
|
9596
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
9597
|
+
var _dataParams = key.split('*address*');
|
|
9598
|
+
_dataParams.forEach(function (value, index) {
|
|
9599
|
+
params[value] = element.PCDCode[index];
|
|
9600
|
+
});
|
|
9601
|
+
delete params[key];
|
|
9602
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
9603
|
+
var _dataParams2 = key.split('*costType*');
|
|
9604
|
+
// eslint-disable-next-line prefer-destructuring
|
|
9605
|
+
params[_dataParams2[0]] = element[1];
|
|
9606
|
+
delete params[key];
|
|
9607
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
9608
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
9609
|
+
_dataParams3.forEach(function (value, index) {
|
|
9610
|
+
if (index === 0) {
|
|
9611
|
+
params[value] = hooks(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
9612
|
+
} else {
|
|
9613
|
+
params[value] = hooks(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
9614
|
+
}
|
|
9615
|
+
});
|
|
9616
|
+
delete params[key];
|
|
9617
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
9618
|
+
var _dataParams4 = key.split('*');
|
|
9619
|
+
_dataParams4.forEach(function (value, index) {
|
|
9620
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
9621
|
+
});
|
|
9622
|
+
delete params[key];
|
|
9623
|
+
} else if (element && key.indexOf('_likeIn_') >= 0) {
|
|
9624
|
+
var _dataParams5 = key.split('_likeIn_');
|
|
9625
|
+
if (element.indexOf(',') >= 0) {
|
|
9626
|
+
params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
|
|
9627
|
+
params["qp-".concat(_dataParams5[0], "-like")] = null;
|
|
9601
9628
|
} else {
|
|
9602
|
-
params[
|
|
9629
|
+
params["qp-".concat(_dataParams5[0], "-like")] = element;
|
|
9630
|
+
params["qp-".concat(_dataParams5[0], "-in")] = null;
|
|
9603
9631
|
}
|
|
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;
|
|
9632
|
+
delete params[key];
|
|
9633
|
+
} else if (Array.isArray(element)) {
|
|
9634
|
+
params[key] = element.join(',');
|
|
9620
9635
|
}
|
|
9621
|
-
|
|
9622
|
-
} else if (Array.isArray(element)) {
|
|
9623
|
-
params[key] = element.join(',');
|
|
9624
|
-
}
|
|
9636
|
+
})();
|
|
9625
9637
|
}
|
|
9626
|
-
};
|
|
9627
|
-
for (var key in params) {
|
|
9628
|
-
_loop();
|
|
9629
9638
|
}
|
|
9630
9639
|
return flag ? params : qs.stringify(params);
|
|
9631
9640
|
}
|
|
@@ -9671,7 +9680,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
9671
9680
|
return item;
|
|
9672
9681
|
});
|
|
9673
9682
|
};
|
|
9674
|
-
var memoizeOneFormatter =
|
|
9683
|
+
var memoizeOneFormatter = memoizeOne(formatter, isEqual$1);
|
|
9675
9684
|
var go2BackAndClose = function go2BackAndClose() {
|
|
9676
9685
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
9677
9686
|
history.goBack();
|
|
@@ -10155,74 +10164,76 @@ var AddSelect = function AddSelect(props) {
|
|
|
10155
10164
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
10156
10165
|
var result;
|
|
10157
10166
|
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
|
-
|
|
10167
|
+
while (1) {
|
|
10168
|
+
switch (_context.prev = _context.next) {
|
|
10169
|
+
case 0:
|
|
10170
|
+
if (!(bType == 'skc' && tList.some(function (i) {
|
|
10171
|
+
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
10172
|
+
}))) {
|
|
10173
|
+
_context.next = 3;
|
|
10174
|
+
break;
|
|
10175
|
+
}
|
|
10176
|
+
message.warning('相同skc配码不可设置相同哦');
|
|
10177
|
+
return _context.abrupt("return", false);
|
|
10178
|
+
case 3:
|
|
10179
|
+
if (!(bType == 'spu')) {
|
|
10180
|
+
_context.next = 26;
|
|
10181
|
+
break;
|
|
10182
|
+
}
|
|
10183
|
+
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
10184
|
+
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
10185
|
+
}))) {
|
|
10186
|
+
_context.next = 7;
|
|
10187
|
+
break;
|
|
10188
|
+
}
|
|
10189
|
+
message.warning('相同商品相同配码颜色不可设置相同哦');
|
|
10190
|
+
return _context.abrupt("return", false);
|
|
10191
|
+
case 7:
|
|
10192
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
10193
|
+
_context.next = 10;
|
|
10194
|
+
break;
|
|
10195
|
+
}
|
|
10196
|
+
message.warning('请先选择颜色!');
|
|
10197
|
+
return _context.abrupt("return", false);
|
|
10198
|
+
case 10:
|
|
10199
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
10200
|
+
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
10201
|
+
}))) {
|
|
10202
|
+
_context.next = 13;
|
|
10203
|
+
break;
|
|
10204
|
+
}
|
|
10205
|
+
message.warning('相同商品相同颜色配码不可设置相同哦');
|
|
10206
|
+
return _context.abrupt("return", false);
|
|
10207
|
+
case 13:
|
|
10208
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
10209
|
+
_context.next = 26;
|
|
10210
|
+
break;
|
|
10211
|
+
}
|
|
10212
|
+
result = true;
|
|
10213
|
+
_context.prev = 15;
|
|
10214
|
+
_context.next = 18;
|
|
10215
|
+
return checkSpuMatchCode({
|
|
10216
|
+
skcCode: recordItem[recordKey],
|
|
10217
|
+
matchingCode: changeValue,
|
|
10218
|
+
ext1: recordItem.colorName
|
|
10219
|
+
});
|
|
10220
|
+
case 18:
|
|
10221
|
+
result = _context.sent;
|
|
10222
|
+
result = true;
|
|
10223
|
+
_context.next = 25;
|
|
10200
10224
|
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();
|
|
10225
|
+
case 22:
|
|
10226
|
+
_context.prev = 22;
|
|
10227
|
+
_context.t0 = _context["catch"](15);
|
|
10228
|
+
result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
|
|
10229
|
+
case 25:
|
|
10230
|
+
return _context.abrupt("return", result);
|
|
10231
|
+
case 26:
|
|
10232
|
+
return _context.abrupt("return", true);
|
|
10233
|
+
case 27:
|
|
10234
|
+
case "end":
|
|
10235
|
+
return _context.stop();
|
|
10236
|
+
}
|
|
10226
10237
|
}
|
|
10227
10238
|
}, _callee, null, [[15, 22]]);
|
|
10228
10239
|
}));
|
|
@@ -10414,27 +10425,29 @@ var AddSelect = function AddSelect(props) {
|
|
|
10414
10425
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
10415
10426
|
var isConformToTheRules, newPopValue;
|
|
10416
10427
|
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];
|
|
10428
|
+
while (1) {
|
|
10429
|
+
switch (_context2.prev = _context2.next) {
|
|
10430
|
+
case 0:
|
|
10431
|
+
_context2.next = 2;
|
|
10432
|
+
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
10433
|
+
case 2:
|
|
10434
|
+
isConformToTheRules = _context2.sent;
|
|
10435
|
+
if (isConformToTheRules) {
|
|
10436
|
+
record[item.dataIndex] = value;
|
|
10437
|
+
} else {
|
|
10438
|
+
record[item.dataIndex] = null;
|
|
10431
10439
|
}
|
|
10432
|
-
|
|
10433
|
-
|
|
10434
|
-
|
|
10435
|
-
|
|
10436
|
-
|
|
10437
|
-
|
|
10440
|
+
newPopValue = popvalue.map(function (i, innerIndex) {
|
|
10441
|
+
if (innerIndex == index) {
|
|
10442
|
+
i[item.dataIndex] = record[item.dataIndex];
|
|
10443
|
+
}
|
|
10444
|
+
return i;
|
|
10445
|
+
});
|
|
10446
|
+
setPopValue(newPopValue);
|
|
10447
|
+
case 6:
|
|
10448
|
+
case "end":
|
|
10449
|
+
return _context2.stop();
|
|
10450
|
+
}
|
|
10438
10451
|
}
|
|
10439
10452
|
}, _callee2);
|
|
10440
10453
|
}));
|
|
@@ -10494,85 +10507,84 @@ var AddSelect = function AddSelect(props) {
|
|
|
10494
10507
|
});
|
|
10495
10508
|
}
|
|
10496
10509
|
// 数组对象处理,对带有特殊标记的name进行处理
|
|
10497
|
-
var
|
|
10510
|
+
for (var key in params) {
|
|
10498
10511
|
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
|
-
|
|
10512
|
+
(function () {
|
|
10513
|
+
var element = params[key];
|
|
10514
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
10515
|
+
var dataParams = key.split('*number*');
|
|
10516
|
+
dataParams.forEach(function (value, index) {
|
|
10517
|
+
params[value] = element[index];
|
|
10518
|
+
});
|
|
10519
|
+
delete params[key];
|
|
10520
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
10521
|
+
var _dataParams = key.split('*address*');
|
|
10522
|
+
_dataParams.forEach(function (value, index) {
|
|
10523
|
+
params[value] = element.PCDCode[index];
|
|
10524
|
+
});
|
|
10525
|
+
delete params[key];
|
|
10526
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
10527
|
+
var _dataParams2 = key.split('*costType*');
|
|
10528
|
+
// eslint-disable-next-line prefer-destructuring
|
|
10529
|
+
params[_dataParams2[0]] = element[1];
|
|
10530
|
+
delete params[key];
|
|
10531
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
10532
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
10533
|
+
_dataParams3.forEach(function (value, index) {
|
|
10534
|
+
if (index === 0) {
|
|
10535
|
+
params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
10536
|
+
} else {
|
|
10537
|
+
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
10538
|
+
}
|
|
10539
|
+
});
|
|
10540
|
+
delete params[key];
|
|
10541
|
+
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
10542
|
+
var _dataParams4 = key.split('*checkBox*');
|
|
10543
|
+
if (element) {
|
|
10544
|
+
params[_dataParams4[0]] = 0;
|
|
10524
10545
|
}
|
|
10525
|
-
|
|
10526
|
-
|
|
10527
|
-
|
|
10528
|
-
|
|
10529
|
-
|
|
10530
|
-
|
|
10531
|
-
|
|
10532
|
-
|
|
10533
|
-
|
|
10534
|
-
|
|
10535
|
-
|
|
10536
|
-
|
|
10537
|
-
|
|
10538
|
-
|
|
10539
|
-
|
|
10540
|
-
|
|
10541
|
-
|
|
10546
|
+
delete params[key];
|
|
10547
|
+
} else if (element && key.indexOf('*cascader*') >= 0) {
|
|
10548
|
+
var _dataParams5 = key.split('*cascader*');
|
|
10549
|
+
params[_dataParams5[0]] = element[element.length - 1];
|
|
10550
|
+
delete params[key];
|
|
10551
|
+
} else if (element && key.indexOf('*date*') >= 0) {
|
|
10552
|
+
var _dataParams6 = key.split('*date*');
|
|
10553
|
+
_dataParams6.forEach(function (value, index) {
|
|
10554
|
+
if (index === 0) {
|
|
10555
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
10556
|
+
} else {
|
|
10557
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
10558
|
+
}
|
|
10559
|
+
});
|
|
10560
|
+
delete params[key];
|
|
10561
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
10562
|
+
var _dataParams7 = key.split('*');
|
|
10563
|
+
_dataParams7.forEach(function (value, index) {
|
|
10564
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
10565
|
+
});
|
|
10566
|
+
delete params[key];
|
|
10567
|
+
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
10568
|
+
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
10569
|
+
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
10570
|
+
if (params[key][0] === 'range') {
|
|
10571
|
+
if (params[key][1][0]) {
|
|
10572
|
+
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
10573
|
+
}
|
|
10574
|
+
if (params[key][1][1]) {
|
|
10575
|
+
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
10576
|
+
}
|
|
10542
10577
|
} else {
|
|
10543
|
-
params[
|
|
10578
|
+
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
10544
10579
|
}
|
|
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];
|
|
10580
|
+
delete params[key];
|
|
10581
|
+
} else if (Array.isArray(element)) {
|
|
10582
|
+
params[key] = element.join(',');
|
|
10583
|
+
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
10584
|
+
delete params[key];
|
|
10565
10585
|
}
|
|
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
|
-
}
|
|
10586
|
+
})();
|
|
10572
10587
|
}
|
|
10573
|
-
};
|
|
10574
|
-
for (var key in params) {
|
|
10575
|
-
_loop();
|
|
10576
10588
|
}
|
|
10577
10589
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
10578
10590
|
pageSize: pageSize,
|
|
@@ -12027,70 +12039,72 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
12027
12039
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
12028
12040
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
12029
12041
|
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
|
-
}
|
|
12042
|
+
while (1) {
|
|
12043
|
+
switch (_context.prev = _context.next) {
|
|
12044
|
+
case 0:
|
|
12045
|
+
if (data === null || data === void 0 ? void 0 : data.length) {
|
|
12046
|
+
_context.next = 3;
|
|
12047
|
+
break;
|
|
12085
12048
|
}
|
|
12086
|
-
|
|
12087
|
-
|
|
12088
|
-
|
|
12089
|
-
|
|
12090
|
-
|
|
12091
|
-
|
|
12092
|
-
|
|
12093
|
-
|
|
12049
|
+
message.warning('至少录入一条数据');
|
|
12050
|
+
return _context.abrupt("return");
|
|
12051
|
+
case 3:
|
|
12052
|
+
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
12053
|
+
return d.skuCode && d.name;
|
|
12054
|
+
})) {
|
|
12055
|
+
_context.next = 6;
|
|
12056
|
+
break;
|
|
12057
|
+
}
|
|
12058
|
+
message.warning('请选择商品!');
|
|
12059
|
+
return _context.abrupt("return");
|
|
12060
|
+
case 6:
|
|
12061
|
+
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
12062
|
+
return d.count;
|
|
12063
|
+
})) {
|
|
12064
|
+
_context.next = 9;
|
|
12065
|
+
break;
|
|
12066
|
+
}
|
|
12067
|
+
message.warning('请填写商品数量!');
|
|
12068
|
+
return _context.abrupt("return");
|
|
12069
|
+
case 9:
|
|
12070
|
+
_context.next = 11;
|
|
12071
|
+
return isSkuCanEntry(data);
|
|
12072
|
+
case 11:
|
|
12073
|
+
canEntryObject = _context.sent;
|
|
12074
|
+
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
12075
|
+
_context.next = 16;
|
|
12076
|
+
break;
|
|
12077
|
+
}
|
|
12078
|
+
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) {
|
|
12079
|
+
return /*#__PURE__*/React.createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
|
|
12080
|
+
}));
|
|
12081
|
+
messageInfo && message.warning({
|
|
12082
|
+
content: messageInfo,
|
|
12083
|
+
duration: 6
|
|
12084
|
+
});
|
|
12085
|
+
return _context.abrupt("return");
|
|
12086
|
+
case 16:
|
|
12087
|
+
setLoading(true);
|
|
12088
|
+
onSaveCallback(data).then(function (res) {
|
|
12089
|
+
{
|
|
12090
|
+
var _Object$keys;
|
|
12091
|
+
var initSuccessMessage = '保存成功';
|
|
12092
|
+
var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
|
|
12093
|
+
if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
|
|
12094
|
+
(rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? message.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
|
|
12095
|
+
} else {
|
|
12096
|
+
message.success(initSuccessMessage);
|
|
12097
|
+
}
|
|
12098
|
+
}
|
|
12099
|
+
setLoading(false);
|
|
12100
|
+
}).catch(function (Error) {
|
|
12101
|
+
message.error(Error);
|
|
12102
|
+
setLoading(false);
|
|
12103
|
+
});
|
|
12104
|
+
case 18:
|
|
12105
|
+
case "end":
|
|
12106
|
+
return _context.stop();
|
|
12107
|
+
}
|
|
12094
12108
|
}
|
|
12095
12109
|
}, _callee);
|
|
12096
12110
|
}));
|
|
@@ -13505,6 +13519,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
13505
13519
|
mappingTextField: 'name',
|
|
13506
13520
|
mappingValueField: 'code',
|
|
13507
13521
|
otherParams: {
|
|
13522
|
+
'qp-isMain-eq': 1,
|
|
13508
13523
|
'qp-status-eq': 1,
|
|
13509
13524
|
sorter: 'desc-id'
|
|
13510
13525
|
},
|
|
@@ -15224,7 +15239,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
15224
15239
|
* @LastEditTime: 2022-01-14 17:17:26
|
|
15225
15240
|
* @LastEditors: rodchen
|
|
15226
15241
|
*/
|
|
15227
|
-
var index
|
|
15242
|
+
var index = (function (storageKeyString) {
|
|
15228
15243
|
var seconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
|
|
15229
15244
|
var tipsCallFunction = arguments.length > 2 ? arguments[2] : undefined;
|
|
15230
15245
|
if (typeof seconds !== 'number') throw new Error('seconds should be number');
|
|
@@ -15342,42 +15357,44 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
15342
15357
|
var _ctx$form;
|
|
15343
15358
|
var resData, coverData, data, dataList;
|
|
15344
15359
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
15345
|
-
while (1)
|
|
15346
|
-
|
|
15347
|
-
|
|
15348
|
-
|
|
15349
|
-
|
|
15360
|
+
while (1) {
|
|
15361
|
+
switch (_context.prev = _context.next) {
|
|
15362
|
+
case 0:
|
|
15363
|
+
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
15364
|
+
if (!(resData.status === '0' || resData.code === '000000')) {
|
|
15365
|
+
_context.next = 13;
|
|
15366
|
+
break;
|
|
15367
|
+
}
|
|
15368
|
+
data = resData.data;
|
|
15369
|
+
if (!remoteSource.converter) {
|
|
15370
|
+
_context.next = 9;
|
|
15371
|
+
break;
|
|
15372
|
+
}
|
|
15373
|
+
_context.next = 6;
|
|
15374
|
+
return remoteSource.converter({
|
|
15375
|
+
data: [data]
|
|
15376
|
+
});
|
|
15377
|
+
case 6:
|
|
15378
|
+
coverData = _context.sent;
|
|
15379
|
+
_context.next = 11;
|
|
15350
15380
|
break;
|
|
15351
|
-
|
|
15352
|
-
|
|
15353
|
-
|
|
15354
|
-
|
|
15381
|
+
case 9:
|
|
15382
|
+
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
15383
|
+
coverData = dataList.length && dataList.map(function (ites) {
|
|
15384
|
+
return mapSearchTree(ites);
|
|
15385
|
+
}) || [];
|
|
15386
|
+
case 11:
|
|
15387
|
+
_context.next = 14;
|
|
15355
15388
|
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();
|
|
15389
|
+
case 13:
|
|
15390
|
+
coverData = [];
|
|
15391
|
+
case 14:
|
|
15392
|
+
setTreeData(coverData);
|
|
15393
|
+
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
|
|
15394
|
+
case 16:
|
|
15395
|
+
case "end":
|
|
15396
|
+
return _context.stop();
|
|
15397
|
+
}
|
|
15381
15398
|
}
|
|
15382
15399
|
}, _callee);
|
|
15383
15400
|
}));
|
|
@@ -15565,7 +15582,7 @@ var BusinessTreeSearchSelect = function BusinessTreeSearchSelect(props) {
|
|
|
15565
15582
|
}, [props === null || props === void 0 ? void 0 : props.value]);
|
|
15566
15583
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(MemoTreeSearchSelect, _objectSpread2({}, currentProps)));
|
|
15567
15584
|
};
|
|
15568
|
-
var index$
|
|
15585
|
+
var index$1 = /*#__PURE__*/React.memo(BusinessTreeSearchSelect, function (props, nextProps) {
|
|
15569
15586
|
if (props && props.labelInValue && props.value && JSON.stringify(props.value) !== JSON.stringify(nextProps.value)) {
|
|
15570
15587
|
return false;
|
|
15571
15588
|
}
|
|
@@ -15578,7 +15595,7 @@ var index$2 = /*#__PURE__*/React.memo(BusinessTreeSearchSelect, function (props,
|
|
|
15578
15595
|
var css_248z$8 = ".form-status-label {\n height: 48px;\n margin-right: 12px;\n display: inline-block;\n position: relative;\n background-color: #B0B4B7;\n align-items: center;\n}\n.choosed-status-label.form-status-label {\n background-color: #005CFF;\n}\n.form-status-label:last-child {\n margin-right: 0px;\n}\n.form-status-label:first-child::after {\n position: absolute;\n display: block;\n content: '';\n right: -48px;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.choosed-status-label.form-status-label::after {\n border-left: 12px solid #005CFF;\n}\n.choosed-status-label.form-status-label:not(:first-child):not(:last-child)::after {\n border-left: 12px solid #005CFF;\n}\n.form-status-label:last-child::after {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.form-status-label:not(:first-child):not(:last-child)::before {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.form-status-label:not(:first-child):not(:last-child)::after {\n position: absolute;\n display: block;\n content: '';\n right: -48px;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.status-label-index {\n display: inline-block;\n width: 24px;\n height: 24px;\n border: 1px solid #FFFFFF;\n color: #FFFFFF;\n border-radius: 50%;\n font-family: Montserrat;\n font-size: 14px;\n line-height: 24px;\n text-align: center;\n margin: 0 6px 0 20px;\n}\n.status-label-key {\n width: 50px;\n height: 100%;\n display: inline-flex;\n float: left;\n align-items: center;\n justify-content: center;\n}\n.status-label-operate {\n float: left;\n width: calc(100% - 50px);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 100%;\n margin: 4px 0;\n}\n.status-label-operate > div {\n font-size: 12px;\n height: 20px;\n line-height: 20px;\n color: #FFFFFF;\n font-family: PingFangSC;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.status-label-operate > div:first-child {\n font-size: 14px;\n font-weight: 600;\n}\n.only-one-child.form-status-label::after,\n.only-one-child.form-status-label::before {\n border-left: 0px;\n}\n";
|
|
15579
15596
|
styleInject(css_248z$8);
|
|
15580
15597
|
|
|
15581
|
-
var index$
|
|
15598
|
+
var index$2 = (function (props) {
|
|
15582
15599
|
var _props$formStatusMapp = props.formStatusMapping,
|
|
15583
15600
|
formStatusMapping = _props$formStatusMapp === void 0 ? [] : _props$formStatusMapp;
|
|
15584
15601
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -17002,7 +17019,7 @@ var iconMap = {
|
|
|
17002
17019
|
src: moreIcon
|
|
17003
17020
|
})
|
|
17004
17021
|
};
|
|
17005
|
-
var index$
|
|
17022
|
+
var index$3 = (function (props) {
|
|
17006
17023
|
var _useLocation = useLocation(),
|
|
17007
17024
|
pathname = _useLocation.pathname;
|
|
17008
17025
|
var _useState = useState(pathname + 'id'),
|
|
@@ -17219,7 +17236,7 @@ var css_248z$d = ".home_page_head {\n height: 54px;\n display: flex;\n justif
|
|
|
17219
17236
|
styleInject(css_248z$d);
|
|
17220
17237
|
|
|
17221
17238
|
var _excluded$c = ["children"];
|
|
17222
|
-
var index$
|
|
17239
|
+
var index$4 = (function (props) {
|
|
17223
17240
|
var _useLocation = useLocation(),
|
|
17224
17241
|
pathname = _useLocation.pathname;
|
|
17225
17242
|
var _useState = useState(pathname + 'id'),
|
|
@@ -19415,19 +19432,21 @@ function _outLogin() {
|
|
|
19415
19432
|
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19416
19433
|
var res;
|
|
19417
19434
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19418
|
-
while (1)
|
|
19419
|
-
|
|
19420
|
-
|
|
19421
|
-
|
|
19422
|
-
|
|
19423
|
-
|
|
19424
|
-
|
|
19425
|
-
|
|
19426
|
-
|
|
19427
|
-
|
|
19428
|
-
|
|
19429
|
-
|
|
19430
|
-
|
|
19435
|
+
while (1) {
|
|
19436
|
+
switch (_context.prev = _context.next) {
|
|
19437
|
+
case 0:
|
|
19438
|
+
_context.next = 2;
|
|
19439
|
+
return axios({
|
|
19440
|
+
url: '/user/web/loginOut',
|
|
19441
|
+
method: 'GET'
|
|
19442
|
+
});
|
|
19443
|
+
case 2:
|
|
19444
|
+
res = _context.sent;
|
|
19445
|
+
return _context.abrupt("return", res);
|
|
19446
|
+
case 4:
|
|
19447
|
+
case "end":
|
|
19448
|
+
return _context.stop();
|
|
19449
|
+
}
|
|
19431
19450
|
}
|
|
19432
19451
|
}, _callee);
|
|
19433
19452
|
}));
|
|
@@ -19556,29 +19575,31 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
19556
19575
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
19557
19576
|
var sessionId;
|
|
19558
19577
|
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'
|
|
19578
|
+
while (1) {
|
|
19579
|
+
switch (_context.prev = _context.next) {
|
|
19580
|
+
case 0:
|
|
19581
|
+
_context.next = 2;
|
|
19582
|
+
return getSessionId();
|
|
19583
|
+
case 2:
|
|
19584
|
+
sessionId = _context.sent;
|
|
19585
|
+
_context.next = 5;
|
|
19586
|
+
return outLogin({
|
|
19587
|
+
sessionId: sessionId
|
|
19575
19588
|
});
|
|
19576
|
-
|
|
19577
|
-
|
|
19578
|
-
|
|
19579
|
-
|
|
19580
|
-
|
|
19581
|
-
|
|
19589
|
+
case 5:
|
|
19590
|
+
// @ts-ignore
|
|
19591
|
+
if (BUILD_TYPE) {
|
|
19592
|
+
message.success('退出登录成功');
|
|
19593
|
+
history.replace({
|
|
19594
|
+
pathname: '/user/login'
|
|
19595
|
+
});
|
|
19596
|
+
} else {
|
|
19597
|
+
setLoginOutPath();
|
|
19598
|
+
}
|
|
19599
|
+
case 6:
|
|
19600
|
+
case "end":
|
|
19601
|
+
return _context.stop();
|
|
19602
|
+
}
|
|
19582
19603
|
}
|
|
19583
19604
|
}, _callee);
|
|
19584
19605
|
}));
|
|
@@ -21406,7 +21427,6 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21406
21427
|
showSubMenu: isShow
|
|
21407
21428
|
});
|
|
21408
21429
|
}, 500);
|
|
21409
|
-
//设置tabs标签左右滚动
|
|
21410
21430
|
_this.setTabNavTransLate = function (num) {
|
|
21411
21431
|
var _document$getElementB, _document$getElementB2, _document$getElementB3, _document$getElementB4, _document$defaultView;
|
|
21412
21432
|
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 +22107,14 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22087
22107
|
request: function () {
|
|
22088
22108
|
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
22089
22109
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
22090
|
-
while (1)
|
|
22091
|
-
|
|
22092
|
-
|
|
22093
|
-
|
|
22094
|
-
|
|
22095
|
-
|
|
22110
|
+
while (1) {
|
|
22111
|
+
switch (_context.prev = _context.next) {
|
|
22112
|
+
case 0:
|
|
22113
|
+
return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
|
|
22114
|
+
case 1:
|
|
22115
|
+
case "end":
|
|
22116
|
+
return _context.stop();
|
|
22117
|
+
}
|
|
22096
22118
|
}
|
|
22097
22119
|
}, _callee);
|
|
22098
22120
|
}));
|
|
@@ -22230,7 +22252,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
22230
22252
|
}]);
|
|
22231
22253
|
return WrapperComponent;
|
|
22232
22254
|
}(React.Component);
|
|
22233
|
-
var index$
|
|
22255
|
+
var index$5 = (function (props) {
|
|
22234
22256
|
var _useModel = useModel('@@initialState'),
|
|
22235
22257
|
_useModel$initialStat = _useModel.initialState,
|
|
22236
22258
|
initialState = _useModel$initialStat === void 0 ? {} : _useModel$initialStat;
|
|
@@ -22373,7 +22395,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
22373
22395
|
var css_248z$n = ".editTableWrapper {\n width: 1000px;\n height: 500px;\n overflow: auto;\n position: relative;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.editTableWrapper table {\n table-layout: fixed;\n}\n.editTableWrapper .editTable {\n position: relative;\n overflow: hidden;\n border-top: 0;\n background: #fff;\n}\n.editTableWrapper .north__west {\n position: sticky;\n background-color: #f7f8fb;\n left: 0px;\n top: 0px;\n font-size: 14px;\n color: #606266;\n z-index: 5;\n}\n.editTableWrapper .north__west th {\n background: #fff;\n font-size: 14px;\n color: #606266;\n z-index: 5;\n}\n.editTableWrapper .south__west {\n z-index: 4;\n position: absolute;\n left: 0px;\n top: 0;\n}\n.editTableWrapper .south__west th {\n background: #fff;\n font-size: 14px;\n color: #606266;\n z-index: 4;\n}\n.editTableWrapper .south__west td {\n font-size: 12px;\n background: #fff;\n color: #6a6a6a;\n}\n.editTableWrapper .south__west td svg {\n width: 20px;\n height: 20px;\n vertical-align: middle;\n}\n.editTableWrapper .editTable__block {\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n position: absolute;\n border-collapse: collapse;\n padding: 0;\n}\n.editTableWrapper .editTable__block th,\n.editTableWrapper .editTable__block td {\n box-sizing: border-box;\n font-size: 11px;\n color: #6a6a6a;\n}\n.editTableWrapper .value_table table {\n table-layout: fixed;\n min-width: 100%;\n}\n.editTableWrapper .table_border_style {\n border-collapse: separate;\n border-spacing: 0;\n border-left: 1px solid #f0f0f0;\n border-top: 1px solid #f0f0f0;\n}\n.editTableWrapper .table_border_style td {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n box-sizing: border-box;\n border-right: 1px solid #f0f0f0;\n border-bottom: 1px solid #f0f0f0;\n padding: 0 10px;\n font-size: 14px;\n line-height: 28px;\n}\n";
|
|
22374
22396
|
styleInject(css_248z$n);
|
|
22375
22397
|
|
|
22376
|
-
var index$
|
|
22398
|
+
var index$6 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
22377
22399
|
var _useState = useState(false),
|
|
22378
22400
|
_useState2 = _slicedToArray(_useState, 2),
|
|
22379
22401
|
show = _useState2[0],
|
|
@@ -29652,26 +29674,28 @@ var valueType = {
|
|
|
29652
29674
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
29653
29675
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
29654
29676
|
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
|
-
|
|
29677
|
+
while (1) {
|
|
29678
|
+
switch (_context.prev = _context.next) {
|
|
29679
|
+
case 0:
|
|
29680
|
+
_context.next = 2;
|
|
29681
|
+
return request$1({
|
|
29682
|
+
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
29683
|
+
converter: function converter(_ref2) {
|
|
29684
|
+
var data = _ref2.data;
|
|
29685
|
+
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
29686
|
+
return {
|
|
29687
|
+
text: d.name,
|
|
29688
|
+
value: d.code || d.brandCode
|
|
29689
|
+
};
|
|
29690
|
+
});
|
|
29691
|
+
}
|
|
29692
|
+
});
|
|
29693
|
+
case 2:
|
|
29694
|
+
return _context.abrupt("return", _context.sent);
|
|
29695
|
+
case 3:
|
|
29696
|
+
case "end":
|
|
29697
|
+
return _context.stop();
|
|
29698
|
+
}
|
|
29675
29699
|
}
|
|
29676
29700
|
}, _callee);
|
|
29677
29701
|
}));
|
|
@@ -29721,53 +29745,55 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29721
29745
|
useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29722
29746
|
var _ref$current, source;
|
|
29723
29747
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29724
|
-
while (1)
|
|
29725
|
-
|
|
29726
|
-
|
|
29727
|
-
|
|
29728
|
-
|
|
29729
|
-
|
|
29730
|
-
|
|
29731
|
-
|
|
29732
|
-
|
|
29733
|
-
|
|
29748
|
+
while (1) {
|
|
29749
|
+
switch (_context.prev = _context.next) {
|
|
29750
|
+
case 0:
|
|
29751
|
+
_context.next = 2;
|
|
29752
|
+
return setIsShowAndType(function (prev) {
|
|
29753
|
+
if (record.inputType === 20 || record.inputType === 30) {
|
|
29754
|
+
return {
|
|
29755
|
+
isShow: true,
|
|
29756
|
+
singleOrMultiple: record.inputType,
|
|
29757
|
+
type: record.choiceType
|
|
29758
|
+
};
|
|
29759
|
+
}
|
|
29760
|
+
return prev;
|
|
29761
|
+
});
|
|
29762
|
+
case 2:
|
|
29763
|
+
if (!record.dictionaryCode) {
|
|
29764
|
+
_context.next = 17;
|
|
29765
|
+
break;
|
|
29734
29766
|
}
|
|
29735
|
-
|
|
29736
|
-
|
|
29737
|
-
|
|
29738
|
-
|
|
29739
|
-
_context.
|
|
29740
|
-
|
|
29741
|
-
}
|
|
29742
|
-
if (!(record.choiceType == 20)) {
|
|
29743
|
-
_context.next = 7;
|
|
29767
|
+
if (!(record.choiceType == 20)) {
|
|
29768
|
+
_context.next = 7;
|
|
29769
|
+
break;
|
|
29770
|
+
}
|
|
29771
|
+
_context.t0 = getDictionarySource(record.dictionaryCode);
|
|
29772
|
+
_context.next = 15;
|
|
29744
29773
|
break;
|
|
29745
|
-
|
|
29746
|
-
|
|
29747
|
-
|
|
29748
|
-
|
|
29749
|
-
|
|
29750
|
-
|
|
29751
|
-
|
|
29774
|
+
case 7:
|
|
29775
|
+
if (!(record.choiceType == 30)) {
|
|
29776
|
+
_context.next = 13;
|
|
29777
|
+
break;
|
|
29778
|
+
}
|
|
29779
|
+
_context.next = 10;
|
|
29780
|
+
return getDynamicDict(record.dictionaryCode);
|
|
29781
|
+
case 10:
|
|
29782
|
+
_context.t1 = _context.sent;
|
|
29783
|
+
_context.next = 14;
|
|
29752
29784
|
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();
|
|
29785
|
+
case 13:
|
|
29786
|
+
_context.t1 = [];
|
|
29787
|
+
case 14:
|
|
29788
|
+
_context.t0 = _context.t1;
|
|
29789
|
+
case 15:
|
|
29790
|
+
source = _context.t0;
|
|
29791
|
+
// @ts-ignore
|
|
29792
|
+
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
29793
|
+
case 17:
|
|
29794
|
+
case "end":
|
|
29795
|
+
return _context.stop();
|
|
29796
|
+
}
|
|
29771
29797
|
}
|
|
29772
29798
|
}, _callee);
|
|
29773
29799
|
})));
|
|
@@ -29835,28 +29861,30 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29835
29861
|
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
29836
29862
|
var form, values, name, relates, source;
|
|
29837
29863
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
29838
|
-
while (1)
|
|
29839
|
-
|
|
29840
|
-
|
|
29841
|
-
|
|
29864
|
+
while (1) {
|
|
29865
|
+
switch (_context2.prev = _context2.next) {
|
|
29866
|
+
case 0:
|
|
29867
|
+
form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
|
|
29868
|
+
if (values[0]) {
|
|
29869
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
29870
|
+
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
29871
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
29872
|
+
}
|
|
29873
|
+
if (!values[1]) {
|
|
29874
|
+
_context2.next = 9;
|
|
29875
|
+
break;
|
|
29876
|
+
}
|
|
29877
|
+
_context2.next = 5;
|
|
29878
|
+
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
29879
|
+
case 5:
|
|
29880
|
+
source = _context2.sent;
|
|
29842
29881
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
29843
29882
|
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();
|
|
29883
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
29884
|
+
case 9:
|
|
29885
|
+
case "end":
|
|
29886
|
+
return _context2.stop();
|
|
29887
|
+
}
|
|
29860
29888
|
}
|
|
29861
29889
|
}, _callee2);
|
|
29862
29890
|
}));
|
|
@@ -30316,41 +30344,43 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30316
30344
|
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
30317
30345
|
var values, name, form, source;
|
|
30318
30346
|
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
|
-
});
|
|
30347
|
+
while (1) {
|
|
30348
|
+
switch (_context3.prev = _context3.next) {
|
|
30349
|
+
case 0:
|
|
30350
|
+
values = _ref10.values, name = _ref10.name, form = _ref10.form;
|
|
30351
|
+
if (values[1] === 40) {
|
|
30352
|
+
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
30353
|
+
form.setFieldVisible(name, false);
|
|
30341
30354
|
}
|
|
30342
|
-
|
|
30343
|
-
|
|
30344
|
-
|
|
30345
|
-
|
|
30346
|
-
|
|
30347
|
-
|
|
30348
|
-
|
|
30349
|
-
|
|
30350
|
-
|
|
30351
|
-
|
|
30352
|
-
|
|
30353
|
-
|
|
30355
|
+
if (!(values[0] === 30)) {
|
|
30356
|
+
_context3.next = 10;
|
|
30357
|
+
break;
|
|
30358
|
+
}
|
|
30359
|
+
_context3.next = 5;
|
|
30360
|
+
return request$1({
|
|
30361
|
+
url: '/basic/dictDynamicItem/queryList',
|
|
30362
|
+
converter: function converter(_ref11) {
|
|
30363
|
+
var data = _ref11.data;
|
|
30364
|
+
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
30365
|
+
return {
|
|
30366
|
+
text: d.dictCode,
|
|
30367
|
+
value: d.dictCode
|
|
30368
|
+
};
|
|
30369
|
+
});
|
|
30370
|
+
}
|
|
30371
|
+
});
|
|
30372
|
+
case 5:
|
|
30373
|
+
source = _context3.sent;
|
|
30374
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
30375
|
+
form.setFieldVisible(name, true);
|
|
30376
|
+
_context3.next = 11;
|
|
30377
|
+
break;
|
|
30378
|
+
case 10:
|
|
30379
|
+
form.setFieldVisible(name, false);
|
|
30380
|
+
case 11:
|
|
30381
|
+
case "end":
|
|
30382
|
+
return _context3.stop();
|
|
30383
|
+
}
|
|
30354
30384
|
}
|
|
30355
30385
|
}, _callee3);
|
|
30356
30386
|
}));
|
|
@@ -30539,64 +30569,66 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30539
30569
|
var _ref$current4, _res$editableStatus;
|
|
30540
30570
|
var res, _res$defaultValue;
|
|
30541
30571
|
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(',');
|
|
30572
|
+
while (1) {
|
|
30573
|
+
switch (_context4.prev = _context4.next) {
|
|
30574
|
+
case 0:
|
|
30575
|
+
_context4.next = 2;
|
|
30576
|
+
return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
|
|
30577
|
+
case 2:
|
|
30578
|
+
res = _context4.sent;
|
|
30579
|
+
res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
|
|
30580
|
+
res.fieldGroup = record.fieldGroup;
|
|
30581
|
+
res.businessType = record.businessType;
|
|
30582
|
+
res.info = {
|
|
30583
|
+
enumeration: res.enumeration,
|
|
30584
|
+
dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
|
|
30585
|
+
formula: res.formula,
|
|
30586
|
+
scale: res.scale,
|
|
30587
|
+
variable: res.variable
|
|
30588
|
+
};
|
|
30589
|
+
res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
|
|
30590
|
+
res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
|
|
30591
|
+
res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
|
|
30592
|
+
if (res.inputType === 40) {
|
|
30593
|
+
res.valueType = 22;
|
|
30568
30594
|
}
|
|
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();
|
|
30595
|
+
// 把数组处理成文本
|
|
30596
|
+
if (res.inputType === 30) {
|
|
30597
|
+
if (res.defaultValue) {
|
|
30598
|
+
res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
|
|
30599
|
+
}
|
|
30584
30600
|
}
|
|
30585
|
-
|
|
30586
|
-
|
|
30587
|
-
|
|
30588
|
-
|
|
30589
|
-
|
|
30590
|
-
|
|
30591
|
-
params: res,
|
|
30592
|
-
successMessage: '修改成功!',
|
|
30593
|
-
converter: function converter() {
|
|
30594
|
-
onParentOk();
|
|
30601
|
+
res.fieldMapping = res.fieldMapping || '';
|
|
30602
|
+
delete res.formula;
|
|
30603
|
+
delete res.showValue;
|
|
30604
|
+
if (!(mode === 'create')) {
|
|
30605
|
+
_context4.next = 18;
|
|
30606
|
+
break;
|
|
30595
30607
|
}
|
|
30596
|
-
|
|
30597
|
-
|
|
30598
|
-
|
|
30599
|
-
|
|
30608
|
+
request$1({
|
|
30609
|
+
url: "/basic/flow/businessField",
|
|
30610
|
+
method: 'POST',
|
|
30611
|
+
params: res,
|
|
30612
|
+
successMessage: '创建成功!',
|
|
30613
|
+
converter: function converter() {
|
|
30614
|
+
onParentOk();
|
|
30615
|
+
}
|
|
30616
|
+
});
|
|
30617
|
+
return _context4.abrupt("return");
|
|
30618
|
+
case 18:
|
|
30619
|
+
request$1({
|
|
30620
|
+
url: "/basic/flow/businessField/".concat(record.id),
|
|
30621
|
+
method: 'PATCH',
|
|
30622
|
+
params: res,
|
|
30623
|
+
successMessage: '修改成功!',
|
|
30624
|
+
converter: function converter() {
|
|
30625
|
+
onParentOk();
|
|
30626
|
+
}
|
|
30627
|
+
});
|
|
30628
|
+
case 19:
|
|
30629
|
+
case "end":
|
|
30630
|
+
return _context4.stop();
|
|
30631
|
+
}
|
|
30600
30632
|
}
|
|
30601
30633
|
}, _callee4);
|
|
30602
30634
|
}));
|
|
@@ -31061,4 +31093,4 @@ var JsonQueryTable = /*#__PURE__*/React.memo(function (props) {
|
|
|
31061
31093
|
}, "setting"));
|
|
31062
31094
|
});
|
|
31063
31095
|
|
|
31064
|
-
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, BillEntry, index$
|
|
31096
|
+
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, BillEntry, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, index$1 as BusinessTreeSearchSelect, index as CheckOneUser, ColumnSettingTable, CommodityEntry, DataImport, DataValidation, index$3 as DetailPageWrapper, ExportIcon, GuideWrapper, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, QueryMutipleInput, SearchSelect, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect };
|