@bit-sun/business-component 2.2.46 → 2.2.48
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 +683 -685
- package/dist/index.js +689 -691
- package/dist/utils/LocalstorageUtils.d.ts +0 -1
- 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 -887
- 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 +52 -55
- package/src/components/Business/SearchSelect/utils.ts +100 -100
- package/src/components/Business/StateFlow/index.less +130 -130
- package/src/components/Business/StateFlow/index.md +60 -60
- package/src/components/Business/StateFlow/index.tsx +29 -29
- package/src/components/Business/TreeSearchSelect/index.md +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 +1282 -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 -858
- 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 -95
- package/src/utils/TableUtils.tsx +18 -18
- package/src/utils/checkUtils.ts +39 -39
- package/src/utils/enumConfig.ts +11 -11
- package/src/utils/getFormMode.js +12 -12
- package/src/utils/index.ts +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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
|
-
import { message, Menu, Space, Dropdown, Tooltip, Button, Checkbox, Input, Modal, Select, Form, Divider, Spin, Table, TreeSelect, Tag,
|
|
2
|
+
import { message, Menu, Space, Dropdown, Tooltip, Button, Checkbox, Input, Modal, Select, Form, Divider, Spin, Table, TreeSelect, Tag, Popover, Card, Avatar, Image, InputNumber, Typography, Alert, Anchor, Breadcrumb, Drawer as Drawer$1, List, Tree, Row, Col, Tabs, Affix } from 'antd';
|
|
3
3
|
import _, { omit, debounce, cloneDeep as cloneDeep$1, throttle, isEmpty } from 'lodash';
|
|
4
4
|
import React, { useState, useEffect, forwardRef, useImperativeHandle, useRef, useMemo, Component, useLayoutEffect, createRef } from 'react';
|
|
5
5
|
import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
|
|
@@ -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';
|
|
@@ -2075,8 +2075,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
2075
2075
|
needModalTable = _props$needModalTable === void 0 ? true : _props$needModalTable,
|
|
2076
2076
|
_props$getPopupContai = props.getPopupContainer,
|
|
2077
2077
|
_getPopupContainer = _props$getPopupContai === void 0 ? undefined : _props$getPopupContai,
|
|
2078
|
-
fieldComponent = props.fieldComponent
|
|
2079
|
-
selectBusinessType = props.selectBusinessType;
|
|
2078
|
+
fieldComponent = props.fieldComponent;
|
|
2080
2079
|
var _ref = requestConfig || {},
|
|
2081
2080
|
url = _ref.url,
|
|
2082
2081
|
otherParams = _ref.otherParams,
|
|
@@ -2280,85 +2279,84 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
2280
2279
|
});
|
|
2281
2280
|
}
|
|
2282
2281
|
// 数组对象处理,对带有特殊标记的name进行处理
|
|
2283
|
-
var
|
|
2282
|
+
for (var key in params) {
|
|
2284
2283
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
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
|
-
|
|
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;
|
|
2310
2317
|
}
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
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
|
+
}
|
|
2328
2349
|
} else {
|
|
2329
|
-
params[
|
|
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];
|
|
2350
|
+
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
2348
2351
|
}
|
|
2349
|
-
|
|
2350
|
-
|
|
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];
|
|
2351
2357
|
}
|
|
2352
|
-
|
|
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];
|
|
2357
|
-
}
|
|
2358
|
+
})();
|
|
2358
2359
|
}
|
|
2359
|
-
};
|
|
2360
|
-
for (var key in params) {
|
|
2361
|
-
_loop();
|
|
2362
2360
|
}
|
|
2363
2361
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
2364
2362
|
pageSize: pageSize,
|
|
@@ -2482,13 +2480,6 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
2482
2480
|
useEffect(function () {
|
|
2483
2481
|
makeUniqueValue();
|
|
2484
2482
|
}, [resultSourceKey]);
|
|
2485
|
-
useEffect(function () {
|
|
2486
|
-
if (init) {
|
|
2487
|
-
setItems([]);
|
|
2488
|
-
setItemsTotal(0);
|
|
2489
|
-
run('init');
|
|
2490
|
-
}
|
|
2491
|
-
}, [selectBusinessType]);
|
|
2492
2483
|
var showModal = function showModal() {
|
|
2493
2484
|
getData({
|
|
2494
2485
|
pageSize: tableInitPageSize,
|
|
@@ -3684,41 +3675,52 @@ var setInitialShowColumn = function setInitialShowColumn(tableCode, columns, cal
|
|
|
3684
3675
|
callback(showColumns);
|
|
3685
3676
|
};
|
|
3686
3677
|
|
|
3687
|
-
var
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
function
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
}
|
|
3695
|
-
|
|
3696
|
-
var lastThis;
|
|
3697
|
-
var lastArgs = [];
|
|
3698
|
-
var lastResult;
|
|
3699
|
-
var calledOnce = false;
|
|
3700
|
-
|
|
3701
|
-
var isNewArgEqualToLast = function isNewArgEqualToLast(newArg, index) {
|
|
3702
|
-
return isEqual(newArg, lastArgs[index], index);
|
|
3703
|
-
};
|
|
3704
|
-
|
|
3705
|
-
var result = function result() {
|
|
3706
|
-
for (var _len = arguments.length, newArgs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
3707
|
-
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;
|
|
3708
3685
|
}
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
return lastResult;
|
|
3686
|
+
if (safeIsNaN(first) && safeIsNaN(second)) {
|
|
3687
|
+
return true;
|
|
3712
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
|
+
}
|
|
3713
3702
|
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
lastThis
|
|
3717
|
-
lastArgs =
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
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;
|
|
3722
3724
|
}
|
|
3723
3725
|
|
|
3724
3726
|
//! moment.js
|
|
@@ -9581,59 +9583,58 @@ var getItemDefaultWidth = function getItemDefaultWidth(item) {
|
|
|
9581
9583
|
* @returns 返回处理后的查询参数
|
|
9582
9584
|
*/
|
|
9583
9585
|
function queryParams(params, flag) {
|
|
9584
|
-
var
|
|
9586
|
+
for (var key in params) {
|
|
9585
9587
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
9586
|
-
|
|
9587
|
-
|
|
9588
|
-
|
|
9589
|
-
|
|
9590
|
-
|
|
9591
|
-
|
|
9592
|
-
|
|
9593
|
-
|
|
9594
|
-
|
|
9595
|
-
|
|
9596
|
-
|
|
9597
|
-
|
|
9598
|
-
|
|
9599
|
-
|
|
9600
|
-
|
|
9601
|
-
|
|
9602
|
-
|
|
9603
|
-
|
|
9604
|
-
|
|
9605
|
-
|
|
9606
|
-
|
|
9607
|
-
|
|
9608
|
-
|
|
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;
|
|
9609
9628
|
} else {
|
|
9610
|
-
params[
|
|
9629
|
+
params["qp-".concat(_dataParams5[0], "-like")] = element;
|
|
9630
|
+
params["qp-".concat(_dataParams5[0], "-in")] = null;
|
|
9611
9631
|
}
|
|
9612
|
-
|
|
9613
|
-
|
|
9614
|
-
|
|
9615
|
-
var _dataParams4 = key.split('*');
|
|
9616
|
-
_dataParams4.forEach(function (value, index) {
|
|
9617
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
9618
|
-
});
|
|
9619
|
-
delete params[key];
|
|
9620
|
-
} else if (element && key.indexOf('_likeIn_') >= 0) {
|
|
9621
|
-
var _dataParams5 = key.split('_likeIn_');
|
|
9622
|
-
if (element.indexOf(',') >= 0) {
|
|
9623
|
-
params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
|
|
9624
|
-
params["qp-".concat(_dataParams5[0], "-like")] = null;
|
|
9625
|
-
} else {
|
|
9626
|
-
params["qp-".concat(_dataParams5[0], "-like")] = element;
|
|
9627
|
-
params["qp-".concat(_dataParams5[0], "-in")] = null;
|
|
9632
|
+
delete params[key];
|
|
9633
|
+
} else if (Array.isArray(element)) {
|
|
9634
|
+
params[key] = element.join(',');
|
|
9628
9635
|
}
|
|
9629
|
-
|
|
9630
|
-
} else if (Array.isArray(element)) {
|
|
9631
|
-
params[key] = element.join(',');
|
|
9632
|
-
}
|
|
9636
|
+
})();
|
|
9633
9637
|
}
|
|
9634
|
-
};
|
|
9635
|
-
for (var key in params) {
|
|
9636
|
-
_loop();
|
|
9637
9638
|
}
|
|
9638
9639
|
return flag ? params : qs.stringify(params);
|
|
9639
9640
|
}
|
|
@@ -9679,7 +9680,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
9679
9680
|
return item;
|
|
9680
9681
|
});
|
|
9681
9682
|
};
|
|
9682
|
-
var memoizeOneFormatter =
|
|
9683
|
+
var memoizeOneFormatter = memoizeOne(formatter, isEqual$1);
|
|
9683
9684
|
var go2BackAndClose = function go2BackAndClose() {
|
|
9684
9685
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
9685
9686
|
history.goBack();
|
|
@@ -10163,74 +10164,76 @@ var AddSelect = function AddSelect(props) {
|
|
|
10163
10164
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
10164
10165
|
var result;
|
|
10165
10166
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10166
|
-
while (1)
|
|
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
|
-
|
|
10200
|
-
|
|
10201
|
-
|
|
10202
|
-
|
|
10203
|
-
|
|
10204
|
-
|
|
10205
|
-
|
|
10206
|
-
|
|
10207
|
-
|
|
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;
|
|
10208
10224
|
break;
|
|
10209
|
-
|
|
10210
|
-
|
|
10211
|
-
|
|
10212
|
-
|
|
10213
|
-
|
|
10214
|
-
|
|
10215
|
-
|
|
10216
|
-
|
|
10217
|
-
|
|
10218
|
-
|
|
10219
|
-
|
|
10220
|
-
|
|
10221
|
-
_context.next = 25;
|
|
10222
|
-
break;
|
|
10223
|
-
case 22:
|
|
10224
|
-
_context.prev = 22;
|
|
10225
|
-
_context.t0 = _context["catch"](15);
|
|
10226
|
-
result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
|
|
10227
|
-
case 25:
|
|
10228
|
-
return _context.abrupt("return", result);
|
|
10229
|
-
case 26:
|
|
10230
|
-
return _context.abrupt("return", true);
|
|
10231
|
-
case 27:
|
|
10232
|
-
case "end":
|
|
10233
|
-
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
|
+
}
|
|
10234
10237
|
}
|
|
10235
10238
|
}, _callee, null, [[15, 22]]);
|
|
10236
10239
|
}));
|
|
@@ -10422,27 +10425,29 @@ var AddSelect = function AddSelect(props) {
|
|
|
10422
10425
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
10423
10426
|
var isConformToTheRules, newPopValue;
|
|
10424
10427
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
10425
|
-
while (1)
|
|
10426
|
-
|
|
10427
|
-
|
|
10428
|
-
|
|
10429
|
-
|
|
10430
|
-
|
|
10431
|
-
|
|
10432
|
-
|
|
10433
|
-
|
|
10434
|
-
|
|
10435
|
-
|
|
10436
|
-
newPopValue = popvalue.map(function (i, innerIndex) {
|
|
10437
|
-
if (innerIndex == index) {
|
|
10438
|
-
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;
|
|
10439
10439
|
}
|
|
10440
|
-
|
|
10441
|
-
|
|
10442
|
-
|
|
10443
|
-
|
|
10444
|
-
|
|
10445
|
-
|
|
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
|
+
}
|
|
10446
10451
|
}
|
|
10447
10452
|
}, _callee2);
|
|
10448
10453
|
}));
|
|
@@ -10502,85 +10507,84 @@ var AddSelect = function AddSelect(props) {
|
|
|
10502
10507
|
});
|
|
10503
10508
|
}
|
|
10504
10509
|
// 数组对象处理,对带有特殊标记的name进行处理
|
|
10505
|
-
var
|
|
10510
|
+
for (var key in params) {
|
|
10506
10511
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
10507
|
-
|
|
10508
|
-
|
|
10509
|
-
|
|
10510
|
-
|
|
10511
|
-
|
|
10512
|
-
|
|
10513
|
-
|
|
10514
|
-
|
|
10515
|
-
|
|
10516
|
-
|
|
10517
|
-
|
|
10518
|
-
|
|
10519
|
-
|
|
10520
|
-
|
|
10521
|
-
|
|
10522
|
-
|
|
10523
|
-
|
|
10524
|
-
|
|
10525
|
-
|
|
10526
|
-
|
|
10527
|
-
|
|
10528
|
-
|
|
10529
|
-
|
|
10530
|
-
|
|
10531
|
-
|
|
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;
|
|
10532
10545
|
}
|
|
10533
|
-
|
|
10534
|
-
|
|
10535
|
-
|
|
10536
|
-
|
|
10537
|
-
|
|
10538
|
-
|
|
10539
|
-
|
|
10540
|
-
|
|
10541
|
-
|
|
10542
|
-
|
|
10543
|
-
|
|
10544
|
-
|
|
10545
|
-
|
|
10546
|
-
|
|
10547
|
-
|
|
10548
|
-
|
|
10549
|
-
|
|
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
|
+
}
|
|
10550
10577
|
} else {
|
|
10551
|
-
params[
|
|
10552
|
-
}
|
|
10553
|
-
});
|
|
10554
|
-
delete params[key];
|
|
10555
|
-
} else if (element && key.indexOf('*') >= 0) {
|
|
10556
|
-
var _dataParams7 = key.split('*');
|
|
10557
|
-
_dataParams7.forEach(function (value, index) {
|
|
10558
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
10559
|
-
});
|
|
10560
|
-
delete params[key];
|
|
10561
|
-
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
10562
|
-
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
10563
|
-
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
10564
|
-
if (params[key][0] === 'range') {
|
|
10565
|
-
if (params[key][1][0]) {
|
|
10566
|
-
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
10578
|
+
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
10567
10579
|
}
|
|
10568
|
-
|
|
10569
|
-
|
|
10570
|
-
|
|
10571
|
-
} else {
|
|
10572
|
-
|
|
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];
|
|
10573
10585
|
}
|
|
10574
|
-
|
|
10575
|
-
} else if (Array.isArray(element)) {
|
|
10576
|
-
params[key] = element.join(',');
|
|
10577
|
-
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
10578
|
-
delete params[key];
|
|
10579
|
-
}
|
|
10586
|
+
})();
|
|
10580
10587
|
}
|
|
10581
|
-
};
|
|
10582
|
-
for (var key in params) {
|
|
10583
|
-
_loop();
|
|
10584
10588
|
}
|
|
10585
10589
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
10586
10590
|
pageSize: pageSize,
|
|
@@ -10680,8 +10684,8 @@ var AddSelect = function AddSelect(props) {
|
|
|
10680
10684
|
pageSize: 5000,
|
|
10681
10685
|
currentPage: 1
|
|
10682
10686
|
})]).then(function (x) {
|
|
10683
|
-
formatSource(x, 0,
|
|
10684
|
-
formatTreeDataSource(x, 1,
|
|
10687
|
+
formatSource(x, 0, 2, tableSearchForm, ['id', 'name']);
|
|
10688
|
+
formatTreeDataSource(x, 1, 3, tableSearchForm);
|
|
10685
10689
|
});
|
|
10686
10690
|
}
|
|
10687
10691
|
if (businessType == 'skc') {
|
|
@@ -10814,13 +10818,15 @@ var AddSelect = function AddSelect(props) {
|
|
|
10814
10818
|
(_document$getElementB3 = document.getElementById('first-query')) === null || _document$getElementB3 === void 0 ? void 0 : _document$getElementB3.focus();
|
|
10815
10819
|
!isContinue && handleCancel();
|
|
10816
10820
|
}
|
|
10817
|
-
handleLoading(isContinue,
|
|
10821
|
+
// handleLoading(isContinue,false)
|
|
10818
10822
|
}).catch(function (Error) {
|
|
10819
10823
|
if (_typeof(Error) === 'object') {
|
|
10820
10824
|
!Error.needThrowError ? null : message.error(Error.message);
|
|
10821
10825
|
} else {
|
|
10822
10826
|
message.error(Error);
|
|
10823
10827
|
}
|
|
10828
|
+
// handleLoading(isContinue,false)
|
|
10829
|
+
}).finally(function () {
|
|
10824
10830
|
handleLoading(isContinue, false);
|
|
10825
10831
|
});
|
|
10826
10832
|
} else {
|
|
@@ -12035,70 +12041,72 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
12035
12041
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
12036
12042
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
12037
12043
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
12038
|
-
while (1)
|
|
12039
|
-
|
|
12040
|
-
|
|
12041
|
-
|
|
12042
|
-
|
|
12043
|
-
|
|
12044
|
-
message.warning('至少录入一条数据');
|
|
12045
|
-
return _context.abrupt("return");
|
|
12046
|
-
case 3:
|
|
12047
|
-
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
12048
|
-
return d.skuCode && d.name;
|
|
12049
|
-
})) {
|
|
12050
|
-
_context.next = 6;
|
|
12051
|
-
break;
|
|
12052
|
-
}
|
|
12053
|
-
message.warning('请选择商品!');
|
|
12054
|
-
return _context.abrupt("return");
|
|
12055
|
-
case 6:
|
|
12056
|
-
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
12057
|
-
return d.count;
|
|
12058
|
-
})) {
|
|
12059
|
-
_context.next = 9;
|
|
12060
|
-
break;
|
|
12061
|
-
}
|
|
12062
|
-
message.warning('请填写商品数量!');
|
|
12063
|
-
return _context.abrupt("return");
|
|
12064
|
-
case 9:
|
|
12065
|
-
_context.next = 11;
|
|
12066
|
-
return isSkuCanEntry(data);
|
|
12067
|
-
case 11:
|
|
12068
|
-
canEntryObject = _context.sent;
|
|
12069
|
-
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
12070
|
-
_context.next = 16;
|
|
12071
|
-
break;
|
|
12072
|
-
}
|
|
12073
|
-
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) {
|
|
12074
|
-
return /*#__PURE__*/React.createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
|
|
12075
|
-
}));
|
|
12076
|
-
messageInfo && message.warning({
|
|
12077
|
-
content: messageInfo,
|
|
12078
|
-
duration: 6
|
|
12079
|
-
});
|
|
12080
|
-
return _context.abrupt("return");
|
|
12081
|
-
case 16:
|
|
12082
|
-
setLoading(true);
|
|
12083
|
-
onSaveCallback(data).then(function (res) {
|
|
12084
|
-
{
|
|
12085
|
-
var _Object$keys;
|
|
12086
|
-
var initSuccessMessage = '保存成功';
|
|
12087
|
-
var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
|
|
12088
|
-
if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
|
|
12089
|
-
(rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? message.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
|
|
12090
|
-
} else {
|
|
12091
|
-
message.success(initSuccessMessage);
|
|
12092
|
-
}
|
|
12044
|
+
while (1) {
|
|
12045
|
+
switch (_context.prev = _context.next) {
|
|
12046
|
+
case 0:
|
|
12047
|
+
if (data === null || data === void 0 ? void 0 : data.length) {
|
|
12048
|
+
_context.next = 3;
|
|
12049
|
+
break;
|
|
12093
12050
|
}
|
|
12094
|
-
|
|
12095
|
-
|
|
12096
|
-
|
|
12097
|
-
|
|
12098
|
-
|
|
12099
|
-
|
|
12100
|
-
|
|
12101
|
-
|
|
12051
|
+
message.warning('至少录入一条数据');
|
|
12052
|
+
return _context.abrupt("return");
|
|
12053
|
+
case 3:
|
|
12054
|
+
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
12055
|
+
return d.skuCode && d.name;
|
|
12056
|
+
})) {
|
|
12057
|
+
_context.next = 6;
|
|
12058
|
+
break;
|
|
12059
|
+
}
|
|
12060
|
+
message.warning('请选择商品!');
|
|
12061
|
+
return _context.abrupt("return");
|
|
12062
|
+
case 6:
|
|
12063
|
+
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
12064
|
+
return d.count;
|
|
12065
|
+
})) {
|
|
12066
|
+
_context.next = 9;
|
|
12067
|
+
break;
|
|
12068
|
+
}
|
|
12069
|
+
message.warning('请填写商品数量!');
|
|
12070
|
+
return _context.abrupt("return");
|
|
12071
|
+
case 9:
|
|
12072
|
+
_context.next = 11;
|
|
12073
|
+
return isSkuCanEntry(data);
|
|
12074
|
+
case 11:
|
|
12075
|
+
canEntryObject = _context.sent;
|
|
12076
|
+
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
12077
|
+
_context.next = 16;
|
|
12078
|
+
break;
|
|
12079
|
+
}
|
|
12080
|
+
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) {
|
|
12081
|
+
return /*#__PURE__*/React.createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
|
|
12082
|
+
}));
|
|
12083
|
+
messageInfo && message.warning({
|
|
12084
|
+
content: messageInfo,
|
|
12085
|
+
duration: 6
|
|
12086
|
+
});
|
|
12087
|
+
return _context.abrupt("return");
|
|
12088
|
+
case 16:
|
|
12089
|
+
setLoading(true);
|
|
12090
|
+
onSaveCallback(data).then(function (res) {
|
|
12091
|
+
{
|
|
12092
|
+
var _Object$keys;
|
|
12093
|
+
var initSuccessMessage = '保存成功';
|
|
12094
|
+
var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
|
|
12095
|
+
if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
|
|
12096
|
+
(rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? message.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
|
|
12097
|
+
} else {
|
|
12098
|
+
message.success(initSuccessMessage);
|
|
12099
|
+
}
|
|
12100
|
+
}
|
|
12101
|
+
setLoading(false);
|
|
12102
|
+
}).catch(function (Error) {
|
|
12103
|
+
message.error(Error);
|
|
12104
|
+
setLoading(false);
|
|
12105
|
+
});
|
|
12106
|
+
case 18:
|
|
12107
|
+
case "end":
|
|
12108
|
+
return _context.stop();
|
|
12109
|
+
}
|
|
12102
12110
|
}
|
|
12103
12111
|
}, _callee);
|
|
12104
12112
|
}));
|
|
@@ -14231,7 +14239,7 @@ var BusinessSearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
14231
14239
|
needModalTable: needModalTable,
|
|
14232
14240
|
modalTableProps: modalTableProps
|
|
14233
14241
|
});
|
|
14234
|
-
}, [props === null || props === void 0 ? void 0 : props.value, props.disabled
|
|
14242
|
+
}, [props === null || props === void 0 ? void 0 : props.value, props.disabled]);
|
|
14235
14243
|
useImperativeHandle(ref, function () {
|
|
14236
14244
|
return {
|
|
14237
14245
|
getRef: function getRef() {
|
|
@@ -14253,13 +14261,9 @@ var BusinessSearchSelect$1 = /*#__PURE__*/React.memo(BusinessSearchSelect, funct
|
|
|
14253
14261
|
if (props && props.disabled !== nextProps.disabled) {
|
|
14254
14262
|
return false;
|
|
14255
14263
|
}
|
|
14256
|
-
if (props && props.selectBusinessType !== nextProps.selectBusinessType) {
|
|
14257
|
-
return false;
|
|
14258
|
-
}
|
|
14259
14264
|
return true;
|
|
14260
14265
|
});
|
|
14261
14266
|
|
|
14262
|
-
// import { getCurrentTargetBgId } from '@/utils/LocalstorageUtils';
|
|
14263
14267
|
function handleSelectColumn(c, parentProps) {
|
|
14264
14268
|
var result = c;
|
|
14265
14269
|
var exceptColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.exceptColumns) || [];
|
|
@@ -14271,7 +14275,7 @@ function handleSelectColumn(c, parentProps) {
|
|
|
14271
14275
|
return !exceptColumns.includes(i.dataIndex);
|
|
14272
14276
|
});
|
|
14273
14277
|
}
|
|
14274
|
-
// 追加
|
|
14278
|
+
// 追加
|
|
14275
14279
|
if (additionColumns === null || additionColumns === void 0 ? void 0 : additionColumns.length) {
|
|
14276
14280
|
additionColumns.forEach(function (i) {
|
|
14277
14281
|
result.splice(i.position, 0, i.column);
|
|
@@ -14284,7 +14288,6 @@ function handleSelectColumn(c, parentProps) {
|
|
|
14284
14288
|
return result;
|
|
14285
14289
|
}
|
|
14286
14290
|
var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
14287
|
-
var _parProps$requestConf, _parProps$requestConf2;
|
|
14288
14291
|
var selectProps = {
|
|
14289
14292
|
mode: 'multiple'
|
|
14290
14293
|
};
|
|
@@ -14297,19 +14300,6 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
14297
14300
|
title: 'SKU编码',
|
|
14298
14301
|
width: 150,
|
|
14299
14302
|
dataIndex: 'skuCode'
|
|
14300
|
-
}, {
|
|
14301
|
-
title: '商品条码',
|
|
14302
|
-
width: 100,
|
|
14303
|
-
ellipsis: {
|
|
14304
|
-
showTitle: false
|
|
14305
|
-
},
|
|
14306
|
-
dataIndex: 'itemEancode',
|
|
14307
|
-
render: function render(text) {
|
|
14308
|
-
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
14309
|
-
placement: "topLeft",
|
|
14310
|
-
title: text
|
|
14311
|
-
}, text);
|
|
14312
|
-
}
|
|
14313
14303
|
}, {
|
|
14314
14304
|
title: 'SKU名称',
|
|
14315
14305
|
width: 200,
|
|
@@ -14397,11 +14387,11 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
14397
14387
|
requestConfig: _objectSpread2({
|
|
14398
14388
|
url: "/items/sku/pager/v2",
|
|
14399
14389
|
filter: 'qp-name-like',
|
|
14400
|
-
otherParams:
|
|
14390
|
+
otherParams: {
|
|
14401
14391
|
'qp-combination-eq': false,
|
|
14402
14392
|
'qp-approveStatus-eq': 1,
|
|
14403
14393
|
'qp-status-eq': 1
|
|
14404
|
-
},
|
|
14394
|
+
},
|
|
14405
14395
|
mappingTextField: 'name',
|
|
14406
14396
|
mappingValueField: 'skuCode'
|
|
14407
14397
|
}, parProps.requestConfig),
|
|
@@ -14423,13 +14413,6 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
14423
14413
|
}, {
|
|
14424
14414
|
name: 'qp-skuName-like',
|
|
14425
14415
|
label: 'SKU名称'
|
|
14426
|
-
}, {
|
|
14427
|
-
name: 'qp-code-in',
|
|
14428
|
-
label: '商品条码',
|
|
14429
|
-
field: {
|
|
14430
|
-
type: 'multipleQueryInput',
|
|
14431
|
-
props: _objectSpread2({}, ((_parProps$requestConf2 = parProps.requestConfig) === null || _parProps$requestConf2 === void 0 ? void 0 : _parProps$requestConf2.itemEancodeValueRequestConfig) || {})
|
|
14432
|
-
}
|
|
14433
14416
|
}, {
|
|
14434
14417
|
name: 'qp-brandId-in',
|
|
14435
14418
|
type: 'select',
|
|
@@ -14510,12 +14493,12 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
14510
14493
|
}));
|
|
14511
14494
|
}
|
|
14512
14495
|
}, {
|
|
14513
|
-
title: '
|
|
14496
|
+
title: '国际条码',
|
|
14514
14497
|
width: 100,
|
|
14515
14498
|
ellipsis: {
|
|
14516
14499
|
showTitle: false
|
|
14517
14500
|
},
|
|
14518
|
-
dataIndex: '
|
|
14501
|
+
dataIndex: 'barCode',
|
|
14519
14502
|
render: function render(text) {
|
|
14520
14503
|
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
14521
14504
|
placement: "topLeft",
|
|
@@ -14621,7 +14604,6 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
14621
14604
|
})));
|
|
14622
14605
|
};
|
|
14623
14606
|
var AddSkcSelect = function AddSkcSelect(parProps) {
|
|
14624
|
-
var _parProps$requestConf3;
|
|
14625
14607
|
var selectProps = {
|
|
14626
14608
|
mode: 'multiple'
|
|
14627
14609
|
};
|
|
@@ -14699,9 +14681,9 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
|
|
|
14699
14681
|
requestConfig: _objectSpread2({
|
|
14700
14682
|
url: "/items/skc/skcSelect",
|
|
14701
14683
|
filter: 'qp-name-like',
|
|
14702
|
-
otherParams:
|
|
14684
|
+
otherParams: {
|
|
14703
14685
|
'qp-skcStatus-eq': 1
|
|
14704
|
-
},
|
|
14686
|
+
},
|
|
14705
14687
|
mappingTextField: 'name',
|
|
14706
14688
|
mappingValueField: 'code'
|
|
14707
14689
|
}, parProps.requestConfig),
|
|
@@ -14901,7 +14883,6 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
|
|
|
14901
14883
|
})));
|
|
14902
14884
|
};
|
|
14903
14885
|
var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
14904
|
-
var _parProps$requestConf4;
|
|
14905
14886
|
var selectProps = {
|
|
14906
14887
|
mode: 'multiple'
|
|
14907
14888
|
};
|
|
@@ -14988,11 +14969,11 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
14988
14969
|
requestConfig: _objectSpread2({
|
|
14989
14970
|
url: "/items/item",
|
|
14990
14971
|
filter: 'qp-itemCode,name-orGroup,like',
|
|
14991
|
-
otherParams:
|
|
14972
|
+
otherParams: {
|
|
14992
14973
|
'qp-approveStatus-eq': 1,
|
|
14993
14974
|
'qp-status-eq': 1,
|
|
14994
14975
|
sorter: 'desc-id'
|
|
14995
|
-
},
|
|
14976
|
+
},
|
|
14996
14977
|
mappingTextField: 'name',
|
|
14997
14978
|
mappingValueField: 'itemCode'
|
|
14998
14979
|
}, parProps.requestConfig),
|
|
@@ -15260,7 +15241,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
15260
15241
|
* @LastEditTime: 2022-01-14 17:17:26
|
|
15261
15242
|
* @LastEditors: rodchen
|
|
15262
15243
|
*/
|
|
15263
|
-
var index
|
|
15244
|
+
var index = (function (storageKeyString) {
|
|
15264
15245
|
var seconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
|
|
15265
15246
|
var tipsCallFunction = arguments.length > 2 ? arguments[2] : undefined;
|
|
15266
15247
|
if (typeof seconds !== 'number') throw new Error('seconds should be number');
|
|
@@ -15378,42 +15359,44 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
15378
15359
|
var _ctx$form;
|
|
15379
15360
|
var resData, coverData, data, dataList;
|
|
15380
15361
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
15381
|
-
while (1)
|
|
15382
|
-
|
|
15383
|
-
|
|
15384
|
-
|
|
15385
|
-
|
|
15362
|
+
while (1) {
|
|
15363
|
+
switch (_context.prev = _context.next) {
|
|
15364
|
+
case 0:
|
|
15365
|
+
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
15366
|
+
if (!(resData.status === '0' || resData.code === '000000')) {
|
|
15367
|
+
_context.next = 13;
|
|
15368
|
+
break;
|
|
15369
|
+
}
|
|
15370
|
+
data = resData.data;
|
|
15371
|
+
if (!remoteSource.converter) {
|
|
15372
|
+
_context.next = 9;
|
|
15373
|
+
break;
|
|
15374
|
+
}
|
|
15375
|
+
_context.next = 6;
|
|
15376
|
+
return remoteSource.converter({
|
|
15377
|
+
data: [data]
|
|
15378
|
+
});
|
|
15379
|
+
case 6:
|
|
15380
|
+
coverData = _context.sent;
|
|
15381
|
+
_context.next = 11;
|
|
15386
15382
|
break;
|
|
15387
|
-
|
|
15388
|
-
|
|
15389
|
-
|
|
15390
|
-
|
|
15383
|
+
case 9:
|
|
15384
|
+
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
15385
|
+
coverData = dataList.length && dataList.map(function (ites) {
|
|
15386
|
+
return mapSearchTree(ites);
|
|
15387
|
+
}) || [];
|
|
15388
|
+
case 11:
|
|
15389
|
+
_context.next = 14;
|
|
15391
15390
|
break;
|
|
15392
|
-
|
|
15393
|
-
|
|
15394
|
-
|
|
15395
|
-
|
|
15396
|
-
|
|
15397
|
-
|
|
15398
|
-
|
|
15399
|
-
|
|
15400
|
-
|
|
15401
|
-
case 9:
|
|
15402
|
-
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
15403
|
-
coverData = dataList.length && dataList.map(function (ites) {
|
|
15404
|
-
return mapSearchTree(ites);
|
|
15405
|
-
}) || [];
|
|
15406
|
-
case 11:
|
|
15407
|
-
_context.next = 14;
|
|
15408
|
-
break;
|
|
15409
|
-
case 13:
|
|
15410
|
-
coverData = [];
|
|
15411
|
-
case 14:
|
|
15412
|
-
setTreeData(coverData);
|
|
15413
|
-
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
|
|
15414
|
-
case 16:
|
|
15415
|
-
case "end":
|
|
15416
|
-
return _context.stop();
|
|
15391
|
+
case 13:
|
|
15392
|
+
coverData = [];
|
|
15393
|
+
case 14:
|
|
15394
|
+
setTreeData(coverData);
|
|
15395
|
+
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
|
|
15396
|
+
case 16:
|
|
15397
|
+
case "end":
|
|
15398
|
+
return _context.stop();
|
|
15399
|
+
}
|
|
15417
15400
|
}
|
|
15418
15401
|
}, _callee);
|
|
15419
15402
|
}));
|
|
@@ -15601,7 +15584,7 @@ var BusinessTreeSearchSelect = function BusinessTreeSearchSelect(props) {
|
|
|
15601
15584
|
}, [props === null || props === void 0 ? void 0 : props.value]);
|
|
15602
15585
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(MemoTreeSearchSelect, _objectSpread2({}, currentProps)));
|
|
15603
15586
|
};
|
|
15604
|
-
var index$
|
|
15587
|
+
var index$1 = /*#__PURE__*/React.memo(BusinessTreeSearchSelect, function (props, nextProps) {
|
|
15605
15588
|
if (props && props.labelInValue && props.value && JSON.stringify(props.value) !== JSON.stringify(nextProps.value)) {
|
|
15606
15589
|
return false;
|
|
15607
15590
|
}
|
|
@@ -15614,7 +15597,7 @@ var index$2 = /*#__PURE__*/React.memo(BusinessTreeSearchSelect, function (props,
|
|
|
15614
15597
|
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";
|
|
15615
15598
|
styleInject(css_248z$8);
|
|
15616
15599
|
|
|
15617
|
-
var index$
|
|
15600
|
+
var index$2 = (function (props) {
|
|
15618
15601
|
var _props$formStatusMapp = props.formStatusMapping,
|
|
15619
15602
|
formStatusMapping = _props$formStatusMapp === void 0 ? [] : _props$formStatusMapp;
|
|
15620
15603
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -17038,7 +17021,7 @@ var iconMap = {
|
|
|
17038
17021
|
src: moreIcon
|
|
17039
17022
|
})
|
|
17040
17023
|
};
|
|
17041
|
-
var index$
|
|
17024
|
+
var index$3 = (function (props) {
|
|
17042
17025
|
var _useLocation = useLocation(),
|
|
17043
17026
|
pathname = _useLocation.pathname;
|
|
17044
17027
|
var _useState = useState(pathname + 'id'),
|
|
@@ -17255,7 +17238,7 @@ var css_248z$d = ".home_page_head {\n height: 54px;\n display: flex;\n justif
|
|
|
17255
17238
|
styleInject(css_248z$d);
|
|
17256
17239
|
|
|
17257
17240
|
var _excluded$c = ["children"];
|
|
17258
|
-
var index$
|
|
17241
|
+
var index$4 = (function (props) {
|
|
17259
17242
|
var _useLocation = useLocation(),
|
|
17260
17243
|
pathname = _useLocation.pathname;
|
|
17261
17244
|
var _useState = useState(pathname + 'id'),
|
|
@@ -19531,19 +19514,21 @@ function _outLogin() {
|
|
|
19531
19514
|
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19532
19515
|
var res;
|
|
19533
19516
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19534
|
-
while (1)
|
|
19535
|
-
|
|
19536
|
-
|
|
19537
|
-
|
|
19538
|
-
|
|
19539
|
-
|
|
19540
|
-
|
|
19541
|
-
|
|
19542
|
-
|
|
19543
|
-
|
|
19544
|
-
|
|
19545
|
-
|
|
19546
|
-
|
|
19517
|
+
while (1) {
|
|
19518
|
+
switch (_context.prev = _context.next) {
|
|
19519
|
+
case 0:
|
|
19520
|
+
_context.next = 2;
|
|
19521
|
+
return axios({
|
|
19522
|
+
url: '/user/web/loginOut',
|
|
19523
|
+
method: 'GET'
|
|
19524
|
+
});
|
|
19525
|
+
case 2:
|
|
19526
|
+
res = _context.sent;
|
|
19527
|
+
return _context.abrupt("return", res);
|
|
19528
|
+
case 4:
|
|
19529
|
+
case "end":
|
|
19530
|
+
return _context.stop();
|
|
19531
|
+
}
|
|
19547
19532
|
}
|
|
19548
19533
|
}, _callee);
|
|
19549
19534
|
}));
|
|
@@ -19672,29 +19657,31 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
19672
19657
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
19673
19658
|
var sessionId;
|
|
19674
19659
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19675
|
-
while (1)
|
|
19676
|
-
|
|
19677
|
-
|
|
19678
|
-
|
|
19679
|
-
|
|
19680
|
-
|
|
19681
|
-
|
|
19682
|
-
|
|
19683
|
-
|
|
19684
|
-
|
|
19685
|
-
case 5:
|
|
19686
|
-
// @ts-ignore
|
|
19687
|
-
if (BUILD_TYPE) {
|
|
19688
|
-
message.success('退出登录成功');
|
|
19689
|
-
history.replace({
|
|
19690
|
-
pathname: '/user/login'
|
|
19660
|
+
while (1) {
|
|
19661
|
+
switch (_context.prev = _context.next) {
|
|
19662
|
+
case 0:
|
|
19663
|
+
_context.next = 2;
|
|
19664
|
+
return getSessionId();
|
|
19665
|
+
case 2:
|
|
19666
|
+
sessionId = _context.sent;
|
|
19667
|
+
_context.next = 5;
|
|
19668
|
+
return outLogin({
|
|
19669
|
+
sessionId: sessionId
|
|
19691
19670
|
});
|
|
19692
|
-
|
|
19693
|
-
|
|
19694
|
-
|
|
19695
|
-
|
|
19696
|
-
|
|
19697
|
-
|
|
19671
|
+
case 5:
|
|
19672
|
+
// @ts-ignore
|
|
19673
|
+
if (BUILD_TYPE) {
|
|
19674
|
+
message.success('退出登录成功');
|
|
19675
|
+
history.replace({
|
|
19676
|
+
pathname: '/user/login'
|
|
19677
|
+
});
|
|
19678
|
+
} else {
|
|
19679
|
+
setLoginOutPath();
|
|
19680
|
+
}
|
|
19681
|
+
case 6:
|
|
19682
|
+
case "end":
|
|
19683
|
+
return _context.stop();
|
|
19684
|
+
}
|
|
19698
19685
|
}
|
|
19699
19686
|
}, _callee);
|
|
19700
19687
|
}));
|
|
@@ -21522,7 +21509,6 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21522
21509
|
showSubMenu: isShow
|
|
21523
21510
|
});
|
|
21524
21511
|
}, 500);
|
|
21525
|
-
//设置tabs标签左右滚动
|
|
21526
21512
|
_this.setTabNavTransLate = function (num) {
|
|
21527
21513
|
var _document$getElementB, _document$getElementB2, _document$getElementB3, _document$getElementB4, _document$defaultView;
|
|
21528
21514
|
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];
|
|
@@ -22203,12 +22189,14 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22203
22189
|
request: function () {
|
|
22204
22190
|
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
22205
22191
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
22206
|
-
while (1)
|
|
22207
|
-
|
|
22208
|
-
|
|
22209
|
-
|
|
22210
|
-
|
|
22211
|
-
|
|
22192
|
+
while (1) {
|
|
22193
|
+
switch (_context.prev = _context.next) {
|
|
22194
|
+
case 0:
|
|
22195
|
+
return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
|
|
22196
|
+
case 1:
|
|
22197
|
+
case "end":
|
|
22198
|
+
return _context.stop();
|
|
22199
|
+
}
|
|
22212
22200
|
}
|
|
22213
22201
|
}, _callee);
|
|
22214
22202
|
}));
|
|
@@ -22346,7 +22334,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
22346
22334
|
}]);
|
|
22347
22335
|
return WrapperComponent;
|
|
22348
22336
|
}(React.Component);
|
|
22349
|
-
var index$
|
|
22337
|
+
var index$5 = (function (props) {
|
|
22350
22338
|
var _useModel = useModel('@@initialState'),
|
|
22351
22339
|
_useModel$initialStat = _useModel.initialState,
|
|
22352
22340
|
initialState = _useModel$initialStat === void 0 ? {} : _useModel$initialStat;
|
|
@@ -22587,7 +22575,7 @@ var FixedScrollBar = function FixedScrollBar(_ref, ref) {
|
|
|
22587
22575
|
};
|
|
22588
22576
|
var FixedScrollBar$1 = /*#__PURE__*/React.forwardRef(FixedScrollBar);
|
|
22589
22577
|
|
|
22590
|
-
var index$
|
|
22578
|
+
var index$6 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
22591
22579
|
var _useState = useState(false),
|
|
22592
22580
|
_useState2 = _slicedToArray(_useState, 2),
|
|
22593
22581
|
show = _useState2[0],
|
|
@@ -29880,26 +29868,28 @@ var valueType = {
|
|
|
29880
29868
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
29881
29869
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
29882
29870
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29883
|
-
while (1)
|
|
29884
|
-
|
|
29885
|
-
|
|
29886
|
-
|
|
29887
|
-
|
|
29888
|
-
|
|
29889
|
-
|
|
29890
|
-
|
|
29891
|
-
return {
|
|
29892
|
-
|
|
29893
|
-
|
|
29894
|
-
|
|
29895
|
-
|
|
29896
|
-
|
|
29897
|
-
|
|
29898
|
-
|
|
29899
|
-
|
|
29900
|
-
|
|
29901
|
-
|
|
29902
|
-
|
|
29871
|
+
while (1) {
|
|
29872
|
+
switch (_context.prev = _context.next) {
|
|
29873
|
+
case 0:
|
|
29874
|
+
_context.next = 2;
|
|
29875
|
+
return request$1({
|
|
29876
|
+
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
29877
|
+
converter: function converter(_ref2) {
|
|
29878
|
+
var data = _ref2.data;
|
|
29879
|
+
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
29880
|
+
return {
|
|
29881
|
+
text: d.name,
|
|
29882
|
+
value: d.code || d.brandCode
|
|
29883
|
+
};
|
|
29884
|
+
});
|
|
29885
|
+
}
|
|
29886
|
+
});
|
|
29887
|
+
case 2:
|
|
29888
|
+
return _context.abrupt("return", _context.sent);
|
|
29889
|
+
case 3:
|
|
29890
|
+
case "end":
|
|
29891
|
+
return _context.stop();
|
|
29892
|
+
}
|
|
29903
29893
|
}
|
|
29904
29894
|
}, _callee);
|
|
29905
29895
|
}));
|
|
@@ -29949,53 +29939,55 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29949
29939
|
useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29950
29940
|
var _ref$current, source;
|
|
29951
29941
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29952
|
-
while (1)
|
|
29953
|
-
|
|
29954
|
-
|
|
29955
|
-
|
|
29956
|
-
|
|
29957
|
-
|
|
29958
|
-
|
|
29959
|
-
|
|
29960
|
-
|
|
29961
|
-
|
|
29942
|
+
while (1) {
|
|
29943
|
+
switch (_context.prev = _context.next) {
|
|
29944
|
+
case 0:
|
|
29945
|
+
_context.next = 2;
|
|
29946
|
+
return setIsShowAndType(function (prev) {
|
|
29947
|
+
if (record.inputType === 20 || record.inputType === 30) {
|
|
29948
|
+
return {
|
|
29949
|
+
isShow: true,
|
|
29950
|
+
singleOrMultiple: record.inputType,
|
|
29951
|
+
type: record.choiceType
|
|
29952
|
+
};
|
|
29953
|
+
}
|
|
29954
|
+
return prev;
|
|
29955
|
+
});
|
|
29956
|
+
case 2:
|
|
29957
|
+
if (!record.dictionaryCode) {
|
|
29958
|
+
_context.next = 17;
|
|
29959
|
+
break;
|
|
29962
29960
|
}
|
|
29963
|
-
|
|
29964
|
-
|
|
29965
|
-
|
|
29966
|
-
|
|
29967
|
-
_context.
|
|
29968
|
-
|
|
29969
|
-
}
|
|
29970
|
-
if (!(record.choiceType == 20)) {
|
|
29971
|
-
_context.next = 7;
|
|
29961
|
+
if (!(record.choiceType == 20)) {
|
|
29962
|
+
_context.next = 7;
|
|
29963
|
+
break;
|
|
29964
|
+
}
|
|
29965
|
+
_context.t0 = getDictionarySource(record.dictionaryCode);
|
|
29966
|
+
_context.next = 15;
|
|
29972
29967
|
break;
|
|
29973
|
-
|
|
29974
|
-
|
|
29975
|
-
|
|
29976
|
-
|
|
29977
|
-
|
|
29978
|
-
|
|
29979
|
-
|
|
29968
|
+
case 7:
|
|
29969
|
+
if (!(record.choiceType == 30)) {
|
|
29970
|
+
_context.next = 13;
|
|
29971
|
+
break;
|
|
29972
|
+
}
|
|
29973
|
+
_context.next = 10;
|
|
29974
|
+
return getDynamicDict(record.dictionaryCode);
|
|
29975
|
+
case 10:
|
|
29976
|
+
_context.t1 = _context.sent;
|
|
29977
|
+
_context.next = 14;
|
|
29980
29978
|
break;
|
|
29981
|
-
|
|
29982
|
-
|
|
29983
|
-
|
|
29984
|
-
|
|
29985
|
-
|
|
29986
|
-
|
|
29987
|
-
|
|
29988
|
-
|
|
29989
|
-
|
|
29990
|
-
|
|
29991
|
-
|
|
29992
|
-
|
|
29993
|
-
source = _context.t0;
|
|
29994
|
-
// @ts-ignore
|
|
29995
|
-
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
29996
|
-
case 17:
|
|
29997
|
-
case "end":
|
|
29998
|
-
return _context.stop();
|
|
29979
|
+
case 13:
|
|
29980
|
+
_context.t1 = [];
|
|
29981
|
+
case 14:
|
|
29982
|
+
_context.t0 = _context.t1;
|
|
29983
|
+
case 15:
|
|
29984
|
+
source = _context.t0;
|
|
29985
|
+
// @ts-ignore
|
|
29986
|
+
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
29987
|
+
case 17:
|
|
29988
|
+
case "end":
|
|
29989
|
+
return _context.stop();
|
|
29990
|
+
}
|
|
29999
29991
|
}
|
|
30000
29992
|
}, _callee);
|
|
30001
29993
|
})));
|
|
@@ -30063,28 +30055,30 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30063
30055
|
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
30064
30056
|
var form, values, name, relates, source;
|
|
30065
30057
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
30066
|
-
while (1)
|
|
30067
|
-
|
|
30068
|
-
|
|
30069
|
-
|
|
30058
|
+
while (1) {
|
|
30059
|
+
switch (_context2.prev = _context2.next) {
|
|
30060
|
+
case 0:
|
|
30061
|
+
form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
|
|
30062
|
+
if (values[0]) {
|
|
30063
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
30064
|
+
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
30065
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
30066
|
+
}
|
|
30067
|
+
if (!values[1]) {
|
|
30068
|
+
_context2.next = 9;
|
|
30069
|
+
break;
|
|
30070
|
+
}
|
|
30071
|
+
_context2.next = 5;
|
|
30072
|
+
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
30073
|
+
case 5:
|
|
30074
|
+
source = _context2.sent;
|
|
30070
30075
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
30071
30076
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
30072
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0],
|
|
30073
|
-
|
|
30074
|
-
|
|
30075
|
-
_context2.
|
|
30076
|
-
|
|
30077
|
-
}
|
|
30078
|
-
_context2.next = 5;
|
|
30079
|
-
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
30080
|
-
case 5:
|
|
30081
|
-
source = _context2.sent;
|
|
30082
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
30083
|
-
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
30084
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
30085
|
-
case 9:
|
|
30086
|
-
case "end":
|
|
30087
|
-
return _context2.stop();
|
|
30077
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
30078
|
+
case 9:
|
|
30079
|
+
case "end":
|
|
30080
|
+
return _context2.stop();
|
|
30081
|
+
}
|
|
30088
30082
|
}
|
|
30089
30083
|
}, _callee2);
|
|
30090
30084
|
}));
|
|
@@ -30544,41 +30538,43 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30544
30538
|
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
30545
30539
|
var values, name, form, source;
|
|
30546
30540
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
30547
|
-
while (1)
|
|
30548
|
-
|
|
30549
|
-
|
|
30550
|
-
|
|
30551
|
-
|
|
30552
|
-
|
|
30553
|
-
|
|
30554
|
-
if (!(values[0] === 30)) {
|
|
30555
|
-
_context3.next = 10;
|
|
30556
|
-
break;
|
|
30557
|
-
}
|
|
30558
|
-
_context3.next = 5;
|
|
30559
|
-
return request$1({
|
|
30560
|
-
url: '/basic/dictDynamicItem/queryList',
|
|
30561
|
-
converter: function converter(_ref11) {
|
|
30562
|
-
var data = _ref11.data;
|
|
30563
|
-
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
30564
|
-
return {
|
|
30565
|
-
text: d.dictCode,
|
|
30566
|
-
value: d.dictCode
|
|
30567
|
-
};
|
|
30568
|
-
});
|
|
30541
|
+
while (1) {
|
|
30542
|
+
switch (_context3.prev = _context3.next) {
|
|
30543
|
+
case 0:
|
|
30544
|
+
values = _ref10.values, name = _ref10.name, form = _ref10.form;
|
|
30545
|
+
if (values[1] === 40) {
|
|
30546
|
+
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
30547
|
+
form.setFieldVisible(name, false);
|
|
30569
30548
|
}
|
|
30570
|
-
|
|
30571
|
-
|
|
30572
|
-
|
|
30573
|
-
|
|
30574
|
-
|
|
30575
|
-
|
|
30576
|
-
|
|
30577
|
-
|
|
30578
|
-
|
|
30579
|
-
|
|
30580
|
-
|
|
30581
|
-
|
|
30549
|
+
if (!(values[0] === 30)) {
|
|
30550
|
+
_context3.next = 10;
|
|
30551
|
+
break;
|
|
30552
|
+
}
|
|
30553
|
+
_context3.next = 5;
|
|
30554
|
+
return request$1({
|
|
30555
|
+
url: '/basic/dictDynamicItem/queryList',
|
|
30556
|
+
converter: function converter(_ref11) {
|
|
30557
|
+
var data = _ref11.data;
|
|
30558
|
+
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
30559
|
+
return {
|
|
30560
|
+
text: d.dictCode,
|
|
30561
|
+
value: d.dictCode
|
|
30562
|
+
};
|
|
30563
|
+
});
|
|
30564
|
+
}
|
|
30565
|
+
});
|
|
30566
|
+
case 5:
|
|
30567
|
+
source = _context3.sent;
|
|
30568
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
30569
|
+
form.setFieldVisible(name, true);
|
|
30570
|
+
_context3.next = 11;
|
|
30571
|
+
break;
|
|
30572
|
+
case 10:
|
|
30573
|
+
form.setFieldVisible(name, false);
|
|
30574
|
+
case 11:
|
|
30575
|
+
case "end":
|
|
30576
|
+
return _context3.stop();
|
|
30577
|
+
}
|
|
30582
30578
|
}
|
|
30583
30579
|
}, _callee3);
|
|
30584
30580
|
}));
|
|
@@ -30767,64 +30763,66 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30767
30763
|
var _ref$current4, _res$editableStatus;
|
|
30768
30764
|
var res, _res$defaultValue;
|
|
30769
30765
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
30770
|
-
while (1)
|
|
30771
|
-
|
|
30772
|
-
|
|
30773
|
-
|
|
30774
|
-
|
|
30775
|
-
|
|
30776
|
-
|
|
30777
|
-
|
|
30778
|
-
|
|
30779
|
-
|
|
30780
|
-
|
|
30781
|
-
|
|
30782
|
-
|
|
30783
|
-
|
|
30784
|
-
|
|
30785
|
-
|
|
30786
|
-
|
|
30787
|
-
|
|
30788
|
-
|
|
30789
|
-
|
|
30790
|
-
res.
|
|
30791
|
-
|
|
30792
|
-
// 把数组处理成文本
|
|
30793
|
-
if (res.inputType === 30) {
|
|
30794
|
-
if (res.defaultValue) {
|
|
30795
|
-
res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
|
|
30766
|
+
while (1) {
|
|
30767
|
+
switch (_context4.prev = _context4.next) {
|
|
30768
|
+
case 0:
|
|
30769
|
+
_context4.next = 2;
|
|
30770
|
+
return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
|
|
30771
|
+
case 2:
|
|
30772
|
+
res = _context4.sent;
|
|
30773
|
+
res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
|
|
30774
|
+
res.fieldGroup = record.fieldGroup;
|
|
30775
|
+
res.businessType = record.businessType;
|
|
30776
|
+
res.info = {
|
|
30777
|
+
enumeration: res.enumeration,
|
|
30778
|
+
dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
|
|
30779
|
+
formula: res.formula,
|
|
30780
|
+
scale: res.scale,
|
|
30781
|
+
variable: res.variable
|
|
30782
|
+
};
|
|
30783
|
+
res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
|
|
30784
|
+
res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
|
|
30785
|
+
res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
|
|
30786
|
+
if (res.inputType === 40) {
|
|
30787
|
+
res.valueType = 22;
|
|
30796
30788
|
}
|
|
30797
|
-
|
|
30798
|
-
|
|
30799
|
-
|
|
30800
|
-
|
|
30801
|
-
|
|
30802
|
-
_context4.next = 18;
|
|
30803
|
-
break;
|
|
30804
|
-
}
|
|
30805
|
-
request$1({
|
|
30806
|
-
url: "/basic/flow/businessField",
|
|
30807
|
-
method: 'POST',
|
|
30808
|
-
params: res,
|
|
30809
|
-
successMessage: '创建成功!',
|
|
30810
|
-
converter: function converter() {
|
|
30811
|
-
onParentOk();
|
|
30789
|
+
// 把数组处理成文本
|
|
30790
|
+
if (res.inputType === 30) {
|
|
30791
|
+
if (res.defaultValue) {
|
|
30792
|
+
res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
|
|
30793
|
+
}
|
|
30812
30794
|
}
|
|
30813
|
-
|
|
30814
|
-
|
|
30815
|
-
|
|
30816
|
-
|
|
30817
|
-
|
|
30818
|
-
|
|
30819
|
-
params: res,
|
|
30820
|
-
successMessage: '修改成功!',
|
|
30821
|
-
converter: function converter() {
|
|
30822
|
-
onParentOk();
|
|
30795
|
+
res.fieldMapping = res.fieldMapping || '';
|
|
30796
|
+
delete res.formula;
|
|
30797
|
+
delete res.showValue;
|
|
30798
|
+
if (!(mode === 'create')) {
|
|
30799
|
+
_context4.next = 18;
|
|
30800
|
+
break;
|
|
30823
30801
|
}
|
|
30824
|
-
|
|
30825
|
-
|
|
30826
|
-
|
|
30827
|
-
|
|
30802
|
+
request$1({
|
|
30803
|
+
url: "/basic/flow/businessField",
|
|
30804
|
+
method: 'POST',
|
|
30805
|
+
params: res,
|
|
30806
|
+
successMessage: '创建成功!',
|
|
30807
|
+
converter: function converter() {
|
|
30808
|
+
onParentOk();
|
|
30809
|
+
}
|
|
30810
|
+
});
|
|
30811
|
+
return _context4.abrupt("return");
|
|
30812
|
+
case 18:
|
|
30813
|
+
request$1({
|
|
30814
|
+
url: "/basic/flow/businessField/".concat(record.id),
|
|
30815
|
+
method: 'PATCH',
|
|
30816
|
+
params: res,
|
|
30817
|
+
successMessage: '修改成功!',
|
|
30818
|
+
converter: function converter() {
|
|
30819
|
+
onParentOk();
|
|
30820
|
+
}
|
|
30821
|
+
});
|
|
30822
|
+
case 19:
|
|
30823
|
+
case "end":
|
|
30824
|
+
return _context4.stop();
|
|
30825
|
+
}
|
|
30828
30826
|
}
|
|
30829
30827
|
}, _callee4);
|
|
30830
30828
|
}));
|
|
@@ -31289,4 +31287,4 @@ var JsonQueryTable = /*#__PURE__*/React.memo(function (props) {
|
|
|
31289
31287
|
}, "setting"));
|
|
31290
31288
|
});
|
|
31291
31289
|
|
|
31292
|
-
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, BillEntry, index$
|
|
31290
|
+
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 };
|