@bit-sun/business-component 2.2.45 → 2.2.47
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/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
- package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
- package/dist/index.esm.js +635 -666
- package/dist/index.js +642 -673
- 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 +564 -564
- package/src/components/Business/BsSulaQueryTable/index.less +221 -221
- package/src/components/Business/BsSulaQueryTable/index.tsx +527 -527
- package/src/components/Business/BsSulaQueryTable/setting.tsx +832 -832
- 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 -1732
- 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/FixedScrollBar.tsx +86 -86
- package/src/components/Business/moreTreeTable/hooks/useSticky.ts +21 -21
- package/src/components/Business/moreTreeTable/index.less +99 -99
- package/src/components/Business/moreTreeTable/index.md +448 -448
- package/src/components/Business/moreTreeTable/index.tsx +380 -380
- 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
|
|
13
|
+
import isEqual 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,84 +2279,85 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
2279
2279
|
});
|
|
2280
2280
|
}
|
|
2281
2281
|
// 数组对象处理,对带有特殊标记的name进行处理
|
|
2282
|
-
|
|
2282
|
+
var _loop = function _loop() {
|
|
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
|
-
|
|
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;
|
|
2284
|
+
var element = params[key];
|
|
2285
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
2286
|
+
var dataParams = key.split('*number*');
|
|
2287
|
+
dataParams.forEach(function (value, index) {
|
|
2288
|
+
params[value] = element[index];
|
|
2289
|
+
});
|
|
2290
|
+
delete params[key];
|
|
2291
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
2292
|
+
var _dataParams = key.split('*address*');
|
|
2293
|
+
_dataParams.forEach(function (value, index) {
|
|
2294
|
+
params[value] = element.PCDCode[index];
|
|
2295
|
+
});
|
|
2296
|
+
delete params[key];
|
|
2297
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
2298
|
+
var _dataParams2 = key.split('*costType*');
|
|
2299
|
+
// eslint-disable-next-line prefer-destructuring
|
|
2300
|
+
params[_dataParams2[0]] = element[1];
|
|
2301
|
+
delete params[key];
|
|
2302
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
2303
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
2304
|
+
_dataParams3.forEach(function (value, index) {
|
|
2305
|
+
if (index === 0) {
|
|
2306
|
+
params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
2307
|
+
} else {
|
|
2308
|
+
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
2317
2309
|
}
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
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
|
-
}
|
|
2310
|
+
});
|
|
2311
|
+
delete params[key];
|
|
2312
|
+
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
2313
|
+
var _dataParams4 = key.split('*checkBox*');
|
|
2314
|
+
if (element) {
|
|
2315
|
+
params[_dataParams4[0]] = 0;
|
|
2316
|
+
}
|
|
2317
|
+
delete params[key];
|
|
2318
|
+
} else if (element && key.indexOf('*cascader*') >= 0) {
|
|
2319
|
+
var _dataParams5 = key.split('*cascader*');
|
|
2320
|
+
params[_dataParams5[0]] = element[element.length - 1];
|
|
2321
|
+
delete params[key];
|
|
2322
|
+
} else if (element && key.indexOf('*date*') >= 0) {
|
|
2323
|
+
var _dataParams6 = key.split('*date*');
|
|
2324
|
+
_dataParams6.forEach(function (value, index) {
|
|
2325
|
+
if (index === 0) {
|
|
2326
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
2349
2327
|
} else {
|
|
2350
|
-
params[
|
|
2328
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
2351
2329
|
}
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
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];
|
|
2347
|
+
}
|
|
2348
|
+
} else {
|
|
2349
|
+
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
2357
2350
|
}
|
|
2358
|
-
|
|
2351
|
+
delete params[key];
|
|
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
|
+
}
|
|
2359
2357
|
}
|
|
2358
|
+
};
|
|
2359
|
+
for (var key in params) {
|
|
2360
|
+
_loop();
|
|
2360
2361
|
}
|
|
2361
2362
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
2362
2363
|
pageSize: pageSize,
|
|
@@ -3675,52 +3676,41 @@ var setInitialShowColumn = function setInitialShowColumn(tableCode, columns, cal
|
|
|
3675
3676
|
callback(showColumns);
|
|
3676
3677
|
};
|
|
3677
3678
|
|
|
3678
|
-
var
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
function
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3679
|
+
var simpleIsEqual = function simpleIsEqual(a, b) {
|
|
3680
|
+
return a === b;
|
|
3681
|
+
};
|
|
3682
|
+
|
|
3683
|
+
function index (resultFn, isEqual) {
|
|
3684
|
+
if (isEqual === void 0) {
|
|
3685
|
+
isEqual = simpleIsEqual;
|
|
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];
|
|
3699
3700
|
}
|
|
3700
|
-
return true;
|
|
3701
|
-
}
|
|
3702
3701
|
|
|
3703
|
-
|
|
3704
|
-
|
|
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;
|
|
3702
|
+
if (calledOnce && lastThis === this && newArgs.length === lastArgs.length && newArgs.every(isNewArgEqualToLast)) {
|
|
3703
|
+
return lastResult;
|
|
3722
3704
|
}
|
|
3723
|
-
|
|
3705
|
+
|
|
3706
|
+
lastResult = resultFn.apply(this, newArgs);
|
|
3707
|
+
calledOnce = true;
|
|
3708
|
+
lastThis = this;
|
|
3709
|
+
lastArgs = newArgs;
|
|
3710
|
+
return lastResult;
|
|
3711
|
+
};
|
|
3712
|
+
|
|
3713
|
+
return result;
|
|
3724
3714
|
}
|
|
3725
3715
|
|
|
3726
3716
|
//! moment.js
|
|
@@ -9583,58 +9573,59 @@ var getItemDefaultWidth = function getItemDefaultWidth(item) {
|
|
|
9583
9573
|
* @returns 返回处理后的查询参数
|
|
9584
9574
|
*/
|
|
9585
9575
|
function queryParams(params, flag) {
|
|
9586
|
-
|
|
9576
|
+
var _loop = function _loop() {
|
|
9587
9577
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
9588
|
-
|
|
9589
|
-
|
|
9590
|
-
|
|
9591
|
-
|
|
9592
|
-
|
|
9593
|
-
|
|
9594
|
-
|
|
9595
|
-
|
|
9596
|
-
|
|
9597
|
-
|
|
9598
|
-
|
|
9599
|
-
|
|
9600
|
-
|
|
9601
|
-
|
|
9602
|
-
|
|
9603
|
-
|
|
9604
|
-
|
|
9605
|
-
|
|
9606
|
-
|
|
9607
|
-
|
|
9608
|
-
|
|
9609
|
-
|
|
9610
|
-
|
|
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;
|
|
9578
|
+
var element = params[key];
|
|
9579
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
9580
|
+
var dataParams = key.split('*number*');
|
|
9581
|
+
dataParams.forEach(function (value, index) {
|
|
9582
|
+
params[value] = element[index];
|
|
9583
|
+
});
|
|
9584
|
+
delete params[key];
|
|
9585
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
9586
|
+
var _dataParams = key.split('*address*');
|
|
9587
|
+
_dataParams.forEach(function (value, index) {
|
|
9588
|
+
params[value] = element.PCDCode[index];
|
|
9589
|
+
});
|
|
9590
|
+
delete params[key];
|
|
9591
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
9592
|
+
var _dataParams2 = key.split('*costType*');
|
|
9593
|
+
// eslint-disable-next-line prefer-destructuring
|
|
9594
|
+
params[_dataParams2[0]] = element[1];
|
|
9595
|
+
delete params[key];
|
|
9596
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
9597
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
9598
|
+
_dataParams3.forEach(function (value, index) {
|
|
9599
|
+
if (index === 0) {
|
|
9600
|
+
params[value] = hooks(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
9628
9601
|
} else {
|
|
9629
|
-
params[
|
|
9630
|
-
params["qp-".concat(_dataParams5[0], "-in")] = null;
|
|
9602
|
+
params[value] = hooks(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
9631
9603
|
}
|
|
9632
|
-
|
|
9633
|
-
|
|
9634
|
-
|
|
9604
|
+
});
|
|
9605
|
+
delete params[key];
|
|
9606
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
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;
|
|
9635
9620
|
}
|
|
9636
|
-
|
|
9621
|
+
delete params[key];
|
|
9622
|
+
} else if (Array.isArray(element)) {
|
|
9623
|
+
params[key] = element.join(',');
|
|
9624
|
+
}
|
|
9637
9625
|
}
|
|
9626
|
+
};
|
|
9627
|
+
for (var key in params) {
|
|
9628
|
+
_loop();
|
|
9638
9629
|
}
|
|
9639
9630
|
return flag ? params : qs.stringify(params);
|
|
9640
9631
|
}
|
|
@@ -9680,7 +9671,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
9680
9671
|
return item;
|
|
9681
9672
|
});
|
|
9682
9673
|
};
|
|
9683
|
-
var memoizeOneFormatter =
|
|
9674
|
+
var memoizeOneFormatter = index(formatter, isEqual);
|
|
9684
9675
|
var go2BackAndClose = function go2BackAndClose() {
|
|
9685
9676
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
9686
9677
|
history.goBack();
|
|
@@ -10164,76 +10155,74 @@ var AddSelect = function AddSelect(props) {
|
|
|
10164
10155
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
10165
10156
|
var result;
|
|
10166
10157
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10167
|
-
while (1) {
|
|
10168
|
-
|
|
10169
|
-
|
|
10170
|
-
|
|
10171
|
-
|
|
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;
|
|
10158
|
+
while (1) switch (_context.prev = _context.next) {
|
|
10159
|
+
case 0:
|
|
10160
|
+
if (!(bType == 'skc' && tList.some(function (i) {
|
|
10161
|
+
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
10162
|
+
}))) {
|
|
10163
|
+
_context.next = 3;
|
|
10224
10164
|
break;
|
|
10225
|
-
|
|
10226
|
-
|
|
10227
|
-
|
|
10228
|
-
|
|
10229
|
-
|
|
10230
|
-
|
|
10231
|
-
|
|
10232
|
-
|
|
10233
|
-
|
|
10234
|
-
|
|
10235
|
-
|
|
10236
|
-
|
|
10165
|
+
}
|
|
10166
|
+
message.warning('相同skc配码不可设置相同哦');
|
|
10167
|
+
return _context.abrupt("return", false);
|
|
10168
|
+
case 3:
|
|
10169
|
+
if (!(bType == 'spu')) {
|
|
10170
|
+
_context.next = 26;
|
|
10171
|
+
break;
|
|
10172
|
+
}
|
|
10173
|
+
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
10174
|
+
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
10175
|
+
}))) {
|
|
10176
|
+
_context.next = 7;
|
|
10177
|
+
break;
|
|
10178
|
+
}
|
|
10179
|
+
message.warning('相同商品相同配码颜色不可设置相同哦');
|
|
10180
|
+
return _context.abrupt("return", false);
|
|
10181
|
+
case 7:
|
|
10182
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
10183
|
+
_context.next = 10;
|
|
10184
|
+
break;
|
|
10185
|
+
}
|
|
10186
|
+
message.warning('请先选择颜色!');
|
|
10187
|
+
return _context.abrupt("return", false);
|
|
10188
|
+
case 10:
|
|
10189
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
10190
|
+
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
10191
|
+
}))) {
|
|
10192
|
+
_context.next = 13;
|
|
10193
|
+
break;
|
|
10194
|
+
}
|
|
10195
|
+
message.warning('相同商品相同颜色配码不可设置相同哦');
|
|
10196
|
+
return _context.abrupt("return", false);
|
|
10197
|
+
case 13:
|
|
10198
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
10199
|
+
_context.next = 26;
|
|
10200
|
+
break;
|
|
10201
|
+
}
|
|
10202
|
+
result = true;
|
|
10203
|
+
_context.prev = 15;
|
|
10204
|
+
_context.next = 18;
|
|
10205
|
+
return checkSpuMatchCode({
|
|
10206
|
+
skcCode: recordItem[recordKey],
|
|
10207
|
+
matchingCode: changeValue,
|
|
10208
|
+
ext1: recordItem.colorName
|
|
10209
|
+
});
|
|
10210
|
+
case 18:
|
|
10211
|
+
result = _context.sent;
|
|
10212
|
+
result = true;
|
|
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();
|
|
10237
10226
|
}
|
|
10238
10227
|
}, _callee, null, [[15, 22]]);
|
|
10239
10228
|
}));
|
|
@@ -10425,29 +10414,27 @@ var AddSelect = function AddSelect(props) {
|
|
|
10425
10414
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
10426
10415
|
var isConformToTheRules, newPopValue;
|
|
10427
10416
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
10428
|
-
while (1) {
|
|
10429
|
-
|
|
10430
|
-
|
|
10431
|
-
|
|
10432
|
-
|
|
10433
|
-
|
|
10434
|
-
|
|
10435
|
-
|
|
10436
|
-
|
|
10437
|
-
|
|
10438
|
-
|
|
10417
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
10418
|
+
case 0:
|
|
10419
|
+
_context2.next = 2;
|
|
10420
|
+
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
10421
|
+
case 2:
|
|
10422
|
+
isConformToTheRules = _context2.sent;
|
|
10423
|
+
if (isConformToTheRules) {
|
|
10424
|
+
record[item.dataIndex] = value;
|
|
10425
|
+
} else {
|
|
10426
|
+
record[item.dataIndex] = null;
|
|
10427
|
+
}
|
|
10428
|
+
newPopValue = popvalue.map(function (i, innerIndex) {
|
|
10429
|
+
if (innerIndex == index) {
|
|
10430
|
+
i[item.dataIndex] = record[item.dataIndex];
|
|
10439
10431
|
}
|
|
10440
|
-
|
|
10441
|
-
|
|
10442
|
-
|
|
10443
|
-
|
|
10444
|
-
|
|
10445
|
-
|
|
10446
|
-
setPopValue(newPopValue);
|
|
10447
|
-
case 6:
|
|
10448
|
-
case "end":
|
|
10449
|
-
return _context2.stop();
|
|
10450
|
-
}
|
|
10432
|
+
return i;
|
|
10433
|
+
});
|
|
10434
|
+
setPopValue(newPopValue);
|
|
10435
|
+
case 6:
|
|
10436
|
+
case "end":
|
|
10437
|
+
return _context2.stop();
|
|
10451
10438
|
}
|
|
10452
10439
|
}, _callee2);
|
|
10453
10440
|
}));
|
|
@@ -10507,84 +10494,85 @@ var AddSelect = function AddSelect(props) {
|
|
|
10507
10494
|
});
|
|
10508
10495
|
}
|
|
10509
10496
|
// 数组对象处理,对带有特殊标记的name进行处理
|
|
10510
|
-
|
|
10497
|
+
var _loop = function _loop() {
|
|
10511
10498
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
10512
|
-
|
|
10513
|
-
|
|
10514
|
-
|
|
10515
|
-
|
|
10516
|
-
|
|
10517
|
-
|
|
10518
|
-
|
|
10519
|
-
|
|
10520
|
-
|
|
10521
|
-
|
|
10522
|
-
|
|
10523
|
-
|
|
10524
|
-
|
|
10525
|
-
|
|
10526
|
-
|
|
10527
|
-
|
|
10528
|
-
|
|
10529
|
-
|
|
10530
|
-
|
|
10531
|
-
|
|
10532
|
-
|
|
10533
|
-
|
|
10534
|
-
|
|
10535
|
-
|
|
10536
|
-
|
|
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;
|
|
10499
|
+
var element = params[key];
|
|
10500
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
10501
|
+
var dataParams = key.split('*number*');
|
|
10502
|
+
dataParams.forEach(function (value, index) {
|
|
10503
|
+
params[value] = element[index];
|
|
10504
|
+
});
|
|
10505
|
+
delete params[key];
|
|
10506
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
10507
|
+
var _dataParams = key.split('*address*');
|
|
10508
|
+
_dataParams.forEach(function (value, index) {
|
|
10509
|
+
params[value] = element.PCDCode[index];
|
|
10510
|
+
});
|
|
10511
|
+
delete params[key];
|
|
10512
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
10513
|
+
var _dataParams2 = key.split('*costType*');
|
|
10514
|
+
// eslint-disable-next-line prefer-destructuring
|
|
10515
|
+
params[_dataParams2[0]] = element[1];
|
|
10516
|
+
delete params[key];
|
|
10517
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
10518
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
10519
|
+
_dataParams3.forEach(function (value, index) {
|
|
10520
|
+
if (index === 0) {
|
|
10521
|
+
params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
10522
|
+
} else {
|
|
10523
|
+
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
10545
10524
|
}
|
|
10546
|
-
|
|
10547
|
-
|
|
10548
|
-
|
|
10549
|
-
|
|
10550
|
-
|
|
10551
|
-
|
|
10552
|
-
|
|
10553
|
-
|
|
10554
|
-
|
|
10555
|
-
|
|
10556
|
-
|
|
10557
|
-
|
|
10558
|
-
|
|
10559
|
-
|
|
10560
|
-
|
|
10561
|
-
|
|
10562
|
-
|
|
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
|
-
}
|
|
10525
|
+
});
|
|
10526
|
+
delete params[key];
|
|
10527
|
+
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
10528
|
+
var _dataParams4 = key.split('*checkBox*');
|
|
10529
|
+
if (element) {
|
|
10530
|
+
params[_dataParams4[0]] = 0;
|
|
10531
|
+
}
|
|
10532
|
+
delete params[key];
|
|
10533
|
+
} else if (element && key.indexOf('*cascader*') >= 0) {
|
|
10534
|
+
var _dataParams5 = key.split('*cascader*');
|
|
10535
|
+
params[_dataParams5[0]] = element[element.length - 1];
|
|
10536
|
+
delete params[key];
|
|
10537
|
+
} else if (element && key.indexOf('*date*') >= 0) {
|
|
10538
|
+
var _dataParams6 = key.split('*date*');
|
|
10539
|
+
_dataParams6.forEach(function (value, index) {
|
|
10540
|
+
if (index === 0) {
|
|
10541
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
10577
10542
|
} else {
|
|
10578
|
-
params[
|
|
10543
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
10579
10544
|
}
|
|
10580
|
-
|
|
10581
|
-
|
|
10582
|
-
|
|
10583
|
-
|
|
10584
|
-
|
|
10545
|
+
});
|
|
10546
|
+
delete params[key];
|
|
10547
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
10548
|
+
var _dataParams7 = key.split('*');
|
|
10549
|
+
_dataParams7.forEach(function (value, index) {
|
|
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];
|
|
10585
10565
|
}
|
|
10586
|
-
|
|
10566
|
+
delete params[key];
|
|
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
|
+
}
|
|
10587
10572
|
}
|
|
10573
|
+
};
|
|
10574
|
+
for (var key in params) {
|
|
10575
|
+
_loop();
|
|
10588
10576
|
}
|
|
10589
10577
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
10590
10578
|
pageSize: pageSize,
|
|
@@ -12039,72 +12027,70 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
12039
12027
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
12040
12028
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
12041
12029
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
12042
|
-
while (1) {
|
|
12043
|
-
|
|
12044
|
-
|
|
12045
|
-
|
|
12046
|
-
|
|
12047
|
-
|
|
12048
|
-
|
|
12049
|
-
|
|
12050
|
-
|
|
12051
|
-
|
|
12052
|
-
|
|
12053
|
-
|
|
12054
|
-
|
|
12055
|
-
|
|
12056
|
-
|
|
12057
|
-
|
|
12058
|
-
|
|
12059
|
-
|
|
12060
|
-
|
|
12061
|
-
|
|
12062
|
-
|
|
12063
|
-
|
|
12064
|
-
|
|
12065
|
-
|
|
12066
|
-
|
|
12067
|
-
|
|
12068
|
-
|
|
12069
|
-
|
|
12070
|
-
|
|
12071
|
-
|
|
12072
|
-
|
|
12073
|
-
|
|
12074
|
-
|
|
12075
|
-
|
|
12076
|
-
|
|
12077
|
-
|
|
12078
|
-
|
|
12079
|
-
|
|
12080
|
-
|
|
12081
|
-
messageInfo
|
|
12082
|
-
|
|
12083
|
-
|
|
12084
|
-
|
|
12085
|
-
|
|
12086
|
-
|
|
12087
|
-
|
|
12088
|
-
|
|
12089
|
-
|
|
12090
|
-
|
|
12091
|
-
|
|
12092
|
-
|
|
12093
|
-
|
|
12094
|
-
|
|
12095
|
-
|
|
12096
|
-
message.success(initSuccessMessage);
|
|
12097
|
-
}
|
|
12030
|
+
while (1) switch (_context.prev = _context.next) {
|
|
12031
|
+
case 0:
|
|
12032
|
+
if (data === null || data === void 0 ? void 0 : data.length) {
|
|
12033
|
+
_context.next = 3;
|
|
12034
|
+
break;
|
|
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);
|
|
12098
12084
|
}
|
|
12099
|
-
|
|
12100
|
-
|
|
12101
|
-
|
|
12102
|
-
|
|
12103
|
-
|
|
12104
|
-
|
|
12105
|
-
|
|
12106
|
-
|
|
12107
|
-
|
|
12085
|
+
}
|
|
12086
|
+
setLoading(false);
|
|
12087
|
+
}).catch(function (Error) {
|
|
12088
|
+
message.error(Error);
|
|
12089
|
+
setLoading(false);
|
|
12090
|
+
});
|
|
12091
|
+
case 18:
|
|
12092
|
+
case "end":
|
|
12093
|
+
return _context.stop();
|
|
12108
12094
|
}
|
|
12109
12095
|
}, _callee);
|
|
12110
12096
|
}));
|
|
@@ -15239,7 +15225,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
15239
15225
|
* @LastEditTime: 2022-01-14 17:17:26
|
|
15240
15226
|
* @LastEditors: rodchen
|
|
15241
15227
|
*/
|
|
15242
|
-
var index = (function (storageKeyString) {
|
|
15228
|
+
var index$1 = (function (storageKeyString) {
|
|
15243
15229
|
var seconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
|
|
15244
15230
|
var tipsCallFunction = arguments.length > 2 ? arguments[2] : undefined;
|
|
15245
15231
|
if (typeof seconds !== 'number') throw new Error('seconds should be number');
|
|
@@ -15357,44 +15343,42 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
15357
15343
|
var _ctx$form;
|
|
15358
15344
|
var resData, coverData, data, dataList;
|
|
15359
15345
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
15360
|
-
while (1) {
|
|
15361
|
-
|
|
15362
|
-
|
|
15363
|
-
|
|
15364
|
-
|
|
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;
|
|
15346
|
+
while (1) switch (_context.prev = _context.next) {
|
|
15347
|
+
case 0:
|
|
15348
|
+
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
15349
|
+
if (!(resData.status === '0' || resData.code === '000000')) {
|
|
15350
|
+
_context.next = 13;
|
|
15380
15351
|
break;
|
|
15381
|
-
|
|
15382
|
-
|
|
15383
|
-
|
|
15384
|
-
|
|
15385
|
-
}) || [];
|
|
15386
|
-
case 11:
|
|
15387
|
-
_context.next = 14;
|
|
15352
|
+
}
|
|
15353
|
+
data = resData.data;
|
|
15354
|
+
if (!remoteSource.converter) {
|
|
15355
|
+
_context.next = 9;
|
|
15388
15356
|
break;
|
|
15389
|
-
|
|
15390
|
-
|
|
15391
|
-
|
|
15392
|
-
|
|
15393
|
-
|
|
15394
|
-
|
|
15395
|
-
|
|
15396
|
-
|
|
15397
|
-
|
|
15357
|
+
}
|
|
15358
|
+
_context.next = 6;
|
|
15359
|
+
return remoteSource.converter({
|
|
15360
|
+
data: [data]
|
|
15361
|
+
});
|
|
15362
|
+
case 6:
|
|
15363
|
+
coverData = _context.sent;
|
|
15364
|
+
_context.next = 11;
|
|
15365
|
+
break;
|
|
15366
|
+
case 9:
|
|
15367
|
+
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
15368
|
+
coverData = dataList.length && dataList.map(function (ites) {
|
|
15369
|
+
return mapSearchTree(ites);
|
|
15370
|
+
}) || [];
|
|
15371
|
+
case 11:
|
|
15372
|
+
_context.next = 14;
|
|
15373
|
+
break;
|
|
15374
|
+
case 13:
|
|
15375
|
+
coverData = [];
|
|
15376
|
+
case 14:
|
|
15377
|
+
setTreeData(coverData);
|
|
15378
|
+
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
|
|
15379
|
+
case 16:
|
|
15380
|
+
case "end":
|
|
15381
|
+
return _context.stop();
|
|
15398
15382
|
}
|
|
15399
15383
|
}, _callee);
|
|
15400
15384
|
}));
|
|
@@ -15582,7 +15566,7 @@ var BusinessTreeSearchSelect = function BusinessTreeSearchSelect(props) {
|
|
|
15582
15566
|
}, [props === null || props === void 0 ? void 0 : props.value]);
|
|
15583
15567
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(MemoTreeSearchSelect, _objectSpread2({}, currentProps)));
|
|
15584
15568
|
};
|
|
15585
|
-
var index$
|
|
15569
|
+
var index$2 = /*#__PURE__*/React.memo(BusinessTreeSearchSelect, function (props, nextProps) {
|
|
15586
15570
|
if (props && props.labelInValue && props.value && JSON.stringify(props.value) !== JSON.stringify(nextProps.value)) {
|
|
15587
15571
|
return false;
|
|
15588
15572
|
}
|
|
@@ -15595,7 +15579,7 @@ var index$1 = /*#__PURE__*/React.memo(BusinessTreeSearchSelect, function (props,
|
|
|
15595
15579
|
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";
|
|
15596
15580
|
styleInject(css_248z$8);
|
|
15597
15581
|
|
|
15598
|
-
var index$
|
|
15582
|
+
var index$3 = (function (props) {
|
|
15599
15583
|
var _props$formStatusMapp = props.formStatusMapping,
|
|
15600
15584
|
formStatusMapping = _props$formStatusMapp === void 0 ? [] : _props$formStatusMapp;
|
|
15601
15585
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -17019,7 +17003,7 @@ var iconMap = {
|
|
|
17019
17003
|
src: moreIcon
|
|
17020
17004
|
})
|
|
17021
17005
|
};
|
|
17022
|
-
var index$
|
|
17006
|
+
var index$4 = (function (props) {
|
|
17023
17007
|
var _useLocation = useLocation(),
|
|
17024
17008
|
pathname = _useLocation.pathname;
|
|
17025
17009
|
var _useState = useState(pathname + 'id'),
|
|
@@ -17236,7 +17220,7 @@ var css_248z$d = ".home_page_head {\n height: 54px;\n display: flex;\n justif
|
|
|
17236
17220
|
styleInject(css_248z$d);
|
|
17237
17221
|
|
|
17238
17222
|
var _excluded$c = ["children"];
|
|
17239
|
-
var index$
|
|
17223
|
+
var index$5 = (function (props) {
|
|
17240
17224
|
var _useLocation = useLocation(),
|
|
17241
17225
|
pathname = _useLocation.pathname;
|
|
17242
17226
|
var _useState = useState(pathname + 'id'),
|
|
@@ -19512,21 +19496,19 @@ function _outLogin() {
|
|
|
19512
19496
|
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19513
19497
|
var res;
|
|
19514
19498
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19515
|
-
while (1) {
|
|
19516
|
-
|
|
19517
|
-
|
|
19518
|
-
|
|
19519
|
-
|
|
19520
|
-
|
|
19521
|
-
|
|
19522
|
-
|
|
19523
|
-
|
|
19524
|
-
|
|
19525
|
-
|
|
19526
|
-
|
|
19527
|
-
|
|
19528
|
-
return _context.stop();
|
|
19529
|
-
}
|
|
19499
|
+
while (1) switch (_context.prev = _context.next) {
|
|
19500
|
+
case 0:
|
|
19501
|
+
_context.next = 2;
|
|
19502
|
+
return axios({
|
|
19503
|
+
url: '/user/web/loginOut',
|
|
19504
|
+
method: 'GET'
|
|
19505
|
+
});
|
|
19506
|
+
case 2:
|
|
19507
|
+
res = _context.sent;
|
|
19508
|
+
return _context.abrupt("return", res);
|
|
19509
|
+
case 4:
|
|
19510
|
+
case "end":
|
|
19511
|
+
return _context.stop();
|
|
19530
19512
|
}
|
|
19531
19513
|
}, _callee);
|
|
19532
19514
|
}));
|
|
@@ -19655,31 +19637,29 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
19655
19637
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
19656
19638
|
var sessionId;
|
|
19657
19639
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19658
|
-
while (1) {
|
|
19659
|
-
|
|
19660
|
-
|
|
19661
|
-
|
|
19662
|
-
|
|
19663
|
-
|
|
19664
|
-
|
|
19665
|
-
|
|
19666
|
-
|
|
19667
|
-
|
|
19640
|
+
while (1) switch (_context.prev = _context.next) {
|
|
19641
|
+
case 0:
|
|
19642
|
+
_context.next = 2;
|
|
19643
|
+
return getSessionId();
|
|
19644
|
+
case 2:
|
|
19645
|
+
sessionId = _context.sent;
|
|
19646
|
+
_context.next = 5;
|
|
19647
|
+
return outLogin({
|
|
19648
|
+
sessionId: sessionId
|
|
19649
|
+
});
|
|
19650
|
+
case 5:
|
|
19651
|
+
// @ts-ignore
|
|
19652
|
+
if (BUILD_TYPE) {
|
|
19653
|
+
message.success('退出登录成功');
|
|
19654
|
+
history.replace({
|
|
19655
|
+
pathname: '/user/login'
|
|
19668
19656
|
});
|
|
19669
|
-
|
|
19670
|
-
|
|
19671
|
-
|
|
19672
|
-
|
|
19673
|
-
|
|
19674
|
-
|
|
19675
|
-
});
|
|
19676
|
-
} else {
|
|
19677
|
-
setLoginOutPath();
|
|
19678
|
-
}
|
|
19679
|
-
case 6:
|
|
19680
|
-
case "end":
|
|
19681
|
-
return _context.stop();
|
|
19682
|
-
}
|
|
19657
|
+
} else {
|
|
19658
|
+
setLoginOutPath();
|
|
19659
|
+
}
|
|
19660
|
+
case 6:
|
|
19661
|
+
case "end":
|
|
19662
|
+
return _context.stop();
|
|
19683
19663
|
}
|
|
19684
19664
|
}, _callee);
|
|
19685
19665
|
}));
|
|
@@ -21507,6 +21487,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21507
21487
|
showSubMenu: isShow
|
|
21508
21488
|
});
|
|
21509
21489
|
}, 500);
|
|
21490
|
+
//设置tabs标签左右滚动
|
|
21510
21491
|
_this.setTabNavTransLate = function (num) {
|
|
21511
21492
|
var _document$getElementB, _document$getElementB2, _document$getElementB3, _document$getElementB4, _document$defaultView;
|
|
21512
21493
|
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];
|
|
@@ -22187,14 +22168,12 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22187
22168
|
request: function () {
|
|
22188
22169
|
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
22189
22170
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
22190
|
-
while (1) {
|
|
22191
|
-
|
|
22192
|
-
|
|
22193
|
-
|
|
22194
|
-
|
|
22195
|
-
|
|
22196
|
-
return _context.stop();
|
|
22197
|
-
}
|
|
22171
|
+
while (1) switch (_context.prev = _context.next) {
|
|
22172
|
+
case 0:
|
|
22173
|
+
return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
|
|
22174
|
+
case 1:
|
|
22175
|
+
case "end":
|
|
22176
|
+
return _context.stop();
|
|
22198
22177
|
}
|
|
22199
22178
|
}, _callee);
|
|
22200
22179
|
}));
|
|
@@ -22332,7 +22311,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
22332
22311
|
}]);
|
|
22333
22312
|
return WrapperComponent;
|
|
22334
22313
|
}(React.Component);
|
|
22335
|
-
var index$
|
|
22314
|
+
var index$6 = (function (props) {
|
|
22336
22315
|
var _useModel = useModel('@@initialState'),
|
|
22337
22316
|
_useModel$initialStat = _useModel.initialState,
|
|
22338
22317
|
initialState = _useModel$initialStat === void 0 ? {} : _useModel$initialStat;
|
|
@@ -22573,7 +22552,7 @@ var FixedScrollBar = function FixedScrollBar(_ref, ref) {
|
|
|
22573
22552
|
};
|
|
22574
22553
|
var FixedScrollBar$1 = /*#__PURE__*/React.forwardRef(FixedScrollBar);
|
|
22575
22554
|
|
|
22576
|
-
var index$
|
|
22555
|
+
var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
22577
22556
|
var _useState = useState(false),
|
|
22578
22557
|
_useState2 = _slicedToArray(_useState, 2),
|
|
22579
22558
|
show = _useState2[0],
|
|
@@ -29866,28 +29845,26 @@ var valueType = {
|
|
|
29866
29845
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
29867
29846
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
29868
29847
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29869
|
-
while (1) {
|
|
29870
|
-
|
|
29871
|
-
|
|
29872
|
-
|
|
29873
|
-
|
|
29874
|
-
|
|
29875
|
-
|
|
29876
|
-
|
|
29877
|
-
return
|
|
29878
|
-
|
|
29879
|
-
|
|
29880
|
-
|
|
29881
|
-
|
|
29882
|
-
|
|
29883
|
-
|
|
29884
|
-
|
|
29885
|
-
|
|
29886
|
-
|
|
29887
|
-
|
|
29888
|
-
|
|
29889
|
-
return _context.stop();
|
|
29890
|
-
}
|
|
29848
|
+
while (1) switch (_context.prev = _context.next) {
|
|
29849
|
+
case 0:
|
|
29850
|
+
_context.next = 2;
|
|
29851
|
+
return request$1({
|
|
29852
|
+
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
29853
|
+
converter: function converter(_ref2) {
|
|
29854
|
+
var data = _ref2.data;
|
|
29855
|
+
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
29856
|
+
return {
|
|
29857
|
+
text: d.name,
|
|
29858
|
+
value: d.code || d.brandCode
|
|
29859
|
+
};
|
|
29860
|
+
});
|
|
29861
|
+
}
|
|
29862
|
+
});
|
|
29863
|
+
case 2:
|
|
29864
|
+
return _context.abrupt("return", _context.sent);
|
|
29865
|
+
case 3:
|
|
29866
|
+
case "end":
|
|
29867
|
+
return _context.stop();
|
|
29891
29868
|
}
|
|
29892
29869
|
}, _callee);
|
|
29893
29870
|
}));
|
|
@@ -29937,55 +29914,53 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29937
29914
|
useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29938
29915
|
var _ref$current, source;
|
|
29939
29916
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29940
|
-
while (1) {
|
|
29941
|
-
|
|
29942
|
-
|
|
29943
|
-
|
|
29944
|
-
|
|
29945
|
-
|
|
29946
|
-
|
|
29947
|
-
|
|
29948
|
-
|
|
29949
|
-
|
|
29950
|
-
};
|
|
29951
|
-
}
|
|
29952
|
-
return prev;
|
|
29953
|
-
});
|
|
29954
|
-
case 2:
|
|
29955
|
-
if (!record.dictionaryCode) {
|
|
29956
|
-
_context.next = 17;
|
|
29957
|
-
break;
|
|
29958
|
-
}
|
|
29959
|
-
if (!(record.choiceType == 20)) {
|
|
29960
|
-
_context.next = 7;
|
|
29961
|
-
break;
|
|
29917
|
+
while (1) switch (_context.prev = _context.next) {
|
|
29918
|
+
case 0:
|
|
29919
|
+
_context.next = 2;
|
|
29920
|
+
return setIsShowAndType(function (prev) {
|
|
29921
|
+
if (record.inputType === 20 || record.inputType === 30) {
|
|
29922
|
+
return {
|
|
29923
|
+
isShow: true,
|
|
29924
|
+
singleOrMultiple: record.inputType,
|
|
29925
|
+
type: record.choiceType
|
|
29926
|
+
};
|
|
29962
29927
|
}
|
|
29963
|
-
|
|
29964
|
-
|
|
29928
|
+
return prev;
|
|
29929
|
+
});
|
|
29930
|
+
case 2:
|
|
29931
|
+
if (!record.dictionaryCode) {
|
|
29932
|
+
_context.next = 17;
|
|
29965
29933
|
break;
|
|
29966
|
-
|
|
29967
|
-
|
|
29968
|
-
|
|
29969
|
-
break;
|
|
29970
|
-
}
|
|
29971
|
-
_context.next = 10;
|
|
29972
|
-
return getDynamicDict(record.dictionaryCode);
|
|
29973
|
-
case 10:
|
|
29974
|
-
_context.t1 = _context.sent;
|
|
29975
|
-
_context.next = 14;
|
|
29934
|
+
}
|
|
29935
|
+
if (!(record.choiceType == 20)) {
|
|
29936
|
+
_context.next = 7;
|
|
29976
29937
|
break;
|
|
29977
|
-
|
|
29978
|
-
|
|
29979
|
-
|
|
29980
|
-
|
|
29981
|
-
|
|
29982
|
-
|
|
29983
|
-
|
|
29984
|
-
|
|
29985
|
-
|
|
29986
|
-
|
|
29987
|
-
|
|
29988
|
-
|
|
29938
|
+
}
|
|
29939
|
+
_context.t0 = getDictionarySource(record.dictionaryCode);
|
|
29940
|
+
_context.next = 15;
|
|
29941
|
+
break;
|
|
29942
|
+
case 7:
|
|
29943
|
+
if (!(record.choiceType == 30)) {
|
|
29944
|
+
_context.next = 13;
|
|
29945
|
+
break;
|
|
29946
|
+
}
|
|
29947
|
+
_context.next = 10;
|
|
29948
|
+
return getDynamicDict(record.dictionaryCode);
|
|
29949
|
+
case 10:
|
|
29950
|
+
_context.t1 = _context.sent;
|
|
29951
|
+
_context.next = 14;
|
|
29952
|
+
break;
|
|
29953
|
+
case 13:
|
|
29954
|
+
_context.t1 = [];
|
|
29955
|
+
case 14:
|
|
29956
|
+
_context.t0 = _context.t1;
|
|
29957
|
+
case 15:
|
|
29958
|
+
source = _context.t0;
|
|
29959
|
+
// @ts-ignore
|
|
29960
|
+
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
29961
|
+
case 17:
|
|
29962
|
+
case "end":
|
|
29963
|
+
return _context.stop();
|
|
29989
29964
|
}
|
|
29990
29965
|
}, _callee);
|
|
29991
29966
|
})));
|
|
@@ -30053,30 +30028,28 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30053
30028
|
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
30054
30029
|
var form, values, name, relates, source;
|
|
30055
30030
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
30056
|
-
while (1) {
|
|
30057
|
-
|
|
30058
|
-
|
|
30059
|
-
|
|
30060
|
-
if (values[0]) {
|
|
30061
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
30062
|
-
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
30063
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
30064
|
-
}
|
|
30065
|
-
if (!values[1]) {
|
|
30066
|
-
_context2.next = 9;
|
|
30067
|
-
break;
|
|
30068
|
-
}
|
|
30069
|
-
_context2.next = 5;
|
|
30070
|
-
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
30071
|
-
case 5:
|
|
30072
|
-
source = _context2.sent;
|
|
30031
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
30032
|
+
case 0:
|
|
30033
|
+
form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
|
|
30034
|
+
if (values[0]) {
|
|
30073
30035
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
30074
30036
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
30075
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0],
|
|
30076
|
-
|
|
30077
|
-
|
|
30078
|
-
|
|
30079
|
-
|
|
30037
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
30038
|
+
}
|
|
30039
|
+
if (!values[1]) {
|
|
30040
|
+
_context2.next = 9;
|
|
30041
|
+
break;
|
|
30042
|
+
}
|
|
30043
|
+
_context2.next = 5;
|
|
30044
|
+
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
30045
|
+
case 5:
|
|
30046
|
+
source = _context2.sent;
|
|
30047
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
30048
|
+
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
30049
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
30050
|
+
case 9:
|
|
30051
|
+
case "end":
|
|
30052
|
+
return _context2.stop();
|
|
30080
30053
|
}
|
|
30081
30054
|
}, _callee2);
|
|
30082
30055
|
}));
|
|
@@ -30536,43 +30509,41 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30536
30509
|
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
30537
30510
|
var values, name, form, source;
|
|
30538
30511
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
30539
|
-
while (1) {
|
|
30540
|
-
|
|
30541
|
-
|
|
30542
|
-
|
|
30543
|
-
|
|
30544
|
-
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
30545
|
-
form.setFieldVisible(name, false);
|
|
30546
|
-
}
|
|
30547
|
-
if (!(values[0] === 30)) {
|
|
30548
|
-
_context3.next = 10;
|
|
30549
|
-
break;
|
|
30550
|
-
}
|
|
30551
|
-
_context3.next = 5;
|
|
30552
|
-
return request$1({
|
|
30553
|
-
url: '/basic/dictDynamicItem/queryList',
|
|
30554
|
-
converter: function converter(_ref11) {
|
|
30555
|
-
var data = _ref11.data;
|
|
30556
|
-
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
30557
|
-
return {
|
|
30558
|
-
text: d.dictCode,
|
|
30559
|
-
value: d.dictCode
|
|
30560
|
-
};
|
|
30561
|
-
});
|
|
30562
|
-
}
|
|
30563
|
-
});
|
|
30564
|
-
case 5:
|
|
30565
|
-
source = _context3.sent;
|
|
30566
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
30567
|
-
form.setFieldVisible(name, true);
|
|
30568
|
-
_context3.next = 11;
|
|
30569
|
-
break;
|
|
30570
|
-
case 10:
|
|
30512
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
30513
|
+
case 0:
|
|
30514
|
+
values = _ref10.values, name = _ref10.name, form = _ref10.form;
|
|
30515
|
+
if (values[1] === 40) {
|
|
30516
|
+
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
30571
30517
|
form.setFieldVisible(name, false);
|
|
30572
|
-
|
|
30573
|
-
|
|
30574
|
-
|
|
30575
|
-
|
|
30518
|
+
}
|
|
30519
|
+
if (!(values[0] === 30)) {
|
|
30520
|
+
_context3.next = 10;
|
|
30521
|
+
break;
|
|
30522
|
+
}
|
|
30523
|
+
_context3.next = 5;
|
|
30524
|
+
return request$1({
|
|
30525
|
+
url: '/basic/dictDynamicItem/queryList',
|
|
30526
|
+
converter: function converter(_ref11) {
|
|
30527
|
+
var data = _ref11.data;
|
|
30528
|
+
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
30529
|
+
return {
|
|
30530
|
+
text: d.dictCode,
|
|
30531
|
+
value: d.dictCode
|
|
30532
|
+
};
|
|
30533
|
+
});
|
|
30534
|
+
}
|
|
30535
|
+
});
|
|
30536
|
+
case 5:
|
|
30537
|
+
source = _context3.sent;
|
|
30538
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
30539
|
+
form.setFieldVisible(name, true);
|
|
30540
|
+
_context3.next = 11;
|
|
30541
|
+
break;
|
|
30542
|
+
case 10:
|
|
30543
|
+
form.setFieldVisible(name, false);
|
|
30544
|
+
case 11:
|
|
30545
|
+
case "end":
|
|
30546
|
+
return _context3.stop();
|
|
30576
30547
|
}
|
|
30577
30548
|
}, _callee3);
|
|
30578
30549
|
}));
|
|
@@ -30761,66 +30732,64 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30761
30732
|
var _ref$current4, _res$editableStatus;
|
|
30762
30733
|
var res, _res$defaultValue;
|
|
30763
30734
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
30764
|
-
while (1) {
|
|
30765
|
-
|
|
30766
|
-
|
|
30767
|
-
|
|
30768
|
-
|
|
30769
|
-
|
|
30770
|
-
|
|
30771
|
-
|
|
30772
|
-
|
|
30773
|
-
|
|
30774
|
-
res.
|
|
30775
|
-
|
|
30776
|
-
|
|
30777
|
-
|
|
30778
|
-
|
|
30779
|
-
|
|
30780
|
-
|
|
30781
|
-
|
|
30782
|
-
|
|
30783
|
-
|
|
30784
|
-
|
|
30785
|
-
|
|
30735
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
30736
|
+
case 0:
|
|
30737
|
+
_context4.next = 2;
|
|
30738
|
+
return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
|
|
30739
|
+
case 2:
|
|
30740
|
+
res = _context4.sent;
|
|
30741
|
+
res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
|
|
30742
|
+
res.fieldGroup = record.fieldGroup;
|
|
30743
|
+
res.businessType = record.businessType;
|
|
30744
|
+
res.info = {
|
|
30745
|
+
enumeration: res.enumeration,
|
|
30746
|
+
dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
|
|
30747
|
+
formula: res.formula,
|
|
30748
|
+
scale: res.scale,
|
|
30749
|
+
variable: res.variable
|
|
30750
|
+
};
|
|
30751
|
+
res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
|
|
30752
|
+
res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
|
|
30753
|
+
res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
|
|
30754
|
+
if (res.inputType === 40) {
|
|
30755
|
+
res.valueType = 22;
|
|
30756
|
+
}
|
|
30757
|
+
// 把数组处理成文本
|
|
30758
|
+
if (res.inputType === 30) {
|
|
30759
|
+
if (res.defaultValue) {
|
|
30760
|
+
res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
|
|
30786
30761
|
}
|
|
30787
|
-
|
|
30788
|
-
|
|
30789
|
-
|
|
30790
|
-
|
|
30791
|
-
|
|
30762
|
+
}
|
|
30763
|
+
res.fieldMapping = res.fieldMapping || '';
|
|
30764
|
+
delete res.formula;
|
|
30765
|
+
delete res.showValue;
|
|
30766
|
+
if (!(mode === 'create')) {
|
|
30767
|
+
_context4.next = 18;
|
|
30768
|
+
break;
|
|
30769
|
+
}
|
|
30770
|
+
request$1({
|
|
30771
|
+
url: "/basic/flow/businessField",
|
|
30772
|
+
method: 'POST',
|
|
30773
|
+
params: res,
|
|
30774
|
+
successMessage: '创建成功!',
|
|
30775
|
+
converter: function converter() {
|
|
30776
|
+
onParentOk();
|
|
30792
30777
|
}
|
|
30793
|
-
|
|
30794
|
-
|
|
30795
|
-
|
|
30796
|
-
|
|
30797
|
-
|
|
30798
|
-
|
|
30778
|
+
});
|
|
30779
|
+
return _context4.abrupt("return");
|
|
30780
|
+
case 18:
|
|
30781
|
+
request$1({
|
|
30782
|
+
url: "/basic/flow/businessField/".concat(record.id),
|
|
30783
|
+
method: 'PATCH',
|
|
30784
|
+
params: res,
|
|
30785
|
+
successMessage: '修改成功!',
|
|
30786
|
+
converter: function converter() {
|
|
30787
|
+
onParentOk();
|
|
30799
30788
|
}
|
|
30800
|
-
|
|
30801
|
-
|
|
30802
|
-
|
|
30803
|
-
|
|
30804
|
-
successMessage: '创建成功!',
|
|
30805
|
-
converter: function converter() {
|
|
30806
|
-
onParentOk();
|
|
30807
|
-
}
|
|
30808
|
-
});
|
|
30809
|
-
return _context4.abrupt("return");
|
|
30810
|
-
case 18:
|
|
30811
|
-
request$1({
|
|
30812
|
-
url: "/basic/flow/businessField/".concat(record.id),
|
|
30813
|
-
method: 'PATCH',
|
|
30814
|
-
params: res,
|
|
30815
|
-
successMessage: '修改成功!',
|
|
30816
|
-
converter: function converter() {
|
|
30817
|
-
onParentOk();
|
|
30818
|
-
}
|
|
30819
|
-
});
|
|
30820
|
-
case 19:
|
|
30821
|
-
case "end":
|
|
30822
|
-
return _context4.stop();
|
|
30823
|
-
}
|
|
30789
|
+
});
|
|
30790
|
+
case 19:
|
|
30791
|
+
case "end":
|
|
30792
|
+
return _context4.stop();
|
|
30824
30793
|
}
|
|
30825
30794
|
}, _callee4);
|
|
30826
30795
|
}));
|
|
@@ -31285,4 +31254,4 @@ var JsonQueryTable = /*#__PURE__*/React.memo(function (props) {
|
|
|
31285
31254
|
}, "setting"));
|
|
31286
31255
|
});
|
|
31287
31256
|
|
|
31288
|
-
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, BillEntry, index$
|
|
31257
|
+
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, BillEntry, index$6 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, index$2 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, CommodityEntry, DataImport, DataValidation, index$4 as DetailPageWrapper, ExportIcon, GuideWrapper, index$5 as HomePageWrapper, JsonQueryTable, index$7 as MoreTreeTable, QueryMutipleInput, SearchSelect, index$3 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect };
|