@bit-sun/business-component 2.3.22-beta9 → 2.3.23-beta01
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/JsonQueryTable/static.d.ts +2 -0
- package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +12 -0
- package/dist/index.esm.js +1129 -580
- package/dist/index.js +1130 -580
- package/dist/utils/CustomLoginInfo.d.ts +11 -0
- package/dist/utils/LocalstorageUtils.d.ts +0 -5
- package/dist/utils/requestUtils.d.ts +28 -0
- package/dist/utils/utils.d.ts +0 -6
- package/dist 2/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +4 -0
- package/dist 2/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +4 -0
- package/dist 2/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +3 -0
- 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 +79 -78
- package/src/assets/32.svg +27 -27
- package/src/assets/addIcon.svg +17 -17
- package/src/assets/allfunc.svg +27 -27
- package/src/assets/arrowRight.svg +24 -24
- package/src/assets/btn-delete.svg +29 -29
- package/src/assets/btn-edit.svg +19 -19
- package/src/assets/btn-more.svg +17 -17
- package/src/assets/btn-submit.svg +19 -19
- package/src/assets/caidan.svg +11 -11
- package/src/assets/close.svg +26 -26
- package/src/assets/drag.svg +17 -17
- package/src/assets/exportFail.svg +37 -37
- package/src/assets/exportProcessing.svg +28 -28
- package/src/assets/exportSuccess.svg +34 -34
- package/src/assets/fixed-left-active.svg +11 -11
- package/src/assets/fixed-left.svg +15 -15
- package/src/assets/fixed-right-active.svg +11 -11
- package/src/assets/fixed-right.svg +15 -15
- package/src/assets/guanbi.svg +15 -15
- package/src/assets/icon-quanping.svg +15 -15
- package/src/assets/icon-shezhi.svg +17 -17
- package/src/assets/label_icon_bottom.svg +25 -25
- package/src/assets/list-no-img.svg +21 -21
- package/src/assets/morentouxiang-32.svg +23 -23
- package/src/assets/scanning.svg +24 -24
- package/src/assets/upExport.svg +22 -22
- package/src/common/ENUM.ts +41 -41
- package/src/components/Business/AddSelectBusiness/index.md +162 -162
- package/src/components/Business/AddSelectBusiness/index.tsx +1061 -1060
- 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 +566 -565
- package/src/components/Business/BsSulaQueryTable/index.less +221 -221
- package/src/components/Business/BsSulaQueryTable/index.tsx +538 -531
- package/src/components/Business/BsSulaQueryTable/setting.tsx +854 -853
- package/src/components/Business/BsSulaQueryTable/utils.less +65 -65
- package/src/components/Business/BsSulaQueryTable/utils.tsx +690 -690
- package/src/components/Business/CommodityEntry/index.md +70 -70
- package/src/components/Business/CommodityEntry/index.tsx +80 -80
- package/src/components/Business/CommonAlert/index.tsx +23 -23
- package/src/components/Business/CommonGuideWrapper/index.less +111 -111
- package/src/components/Business/CommonGuideWrapper/index.md +39 -39
- package/src/components/Business/CommonGuideWrapper/index.tsx +83 -83
- package/src/components/Business/DetailPageWrapper/index.less +79 -79
- package/src/components/Business/DetailPageWrapper/index.tsx +313 -313
- package/src/components/Business/DetailPageWrapper/utils.tsx +100 -100
- package/src/components/Business/HomePageWrapper/index.less +33 -33
- package/src/components/Business/HomePageWrapper/index.md +45 -45
- package/src/components/Business/HomePageWrapper/index.tsx +162 -162
- package/src/components/Business/JsonQueryTable/components/FieldsModifyModal.tsx +824 -824
- package/src/components/Business/JsonQueryTable/components/FieldsSettingsTable.tsx +205 -205
- package/src/components/Business/JsonQueryTable/components/Formula.tsx +206 -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 +537 -535
- package/src/components/Business/JsonQueryTable/jsonEditor/index.js +346 -346
- package/src/components/Business/JsonQueryTable/jsonEditor/index.less +22 -22
- package/src/components/Business/JsonQueryTable/jsonEditor/lint/basicType.js +147 -147
- package/src/components/Business/JsonQueryTable/jsonEditor/lint/index.js +389 -389
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/actions.js +118 -118
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/dependency.js +22 -22
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/index.js +21 -21
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/request.js +65 -65
- package/src/components/Business/JsonQueryTable/static.ts +426 -390
- package/src/components/Business/SearchSelect/BusinessUtils.ts +1836 -1762
- package/src/components/Business/SearchSelect/common.ts +75 -75
- package/src/components/Business/SearchSelect/index.md +1387 -1329
- package/src/components/Business/SearchSelect/index.tsx +55 -55
- package/src/components/Business/SearchSelect/utils.ts +101 -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 +185 -156
- package/src/components/Business/TreeSearchSelect/index.tsx +33 -33
- package/src/components/Business/TreeSearchSelect/utils.ts +104 -75
- package/src/components/Business/columnSettingTable/columnSetting.tsx +766 -766
- 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 +234 -233
- package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +242 -241
- package/src/components/Business/columnSettingTable/utils.tsx +71 -71
- package/src/components/Business/moreTreeTable/FixedScrollBar.tsx +87 -87
- package/src/components/Business/moreTreeTable/hooks/useSticky.ts +21 -21
- package/src/components/Business/moreTreeTable/index.less +99 -99
- package/src/components/Business/moreTreeTable/index.md +448 -448
- package/src/components/Business/moreTreeTable/index.tsx +387 -387
- package/src/components/Business/moreTreeTable/utils.ts +126 -126
- package/src/components/Functional/AddSelect/helps.ts +80 -79
- 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 +1171 -1170
- 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 +773 -772
- package/src/components/Functional/BsAntdSula/BsCascader/index.md +62 -62
- package/src/components/Functional/BsAntdSula/BsCascader/index.tsx +178 -178
- package/src/components/Functional/BsAntdSula/index.ts +2 -2
- package/src/components/Functional/DataImport/index.less +63 -63
- package/src/components/Functional/DataImport/index.md +44 -44
- package/src/components/Functional/DataImport/index.tsx +696 -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 +688 -687
- package/src/components/Functional/EllipsisTooltip/index.d.ts +5 -5
- package/src/components/Functional/EllipsisTooltip/index.js +36 -36
- package/src/components/Functional/EllipsisTooltip/index.md +30 -30
- package/src/components/Functional/ExportFunctions/ExportIcon/index.md +37 -37
- package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +60 -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 +885 -879
- package/src/components/Functional/SearchSelect/utils.ts +3 -3
- package/src/components/Functional/TreeSearchSelect/index.md +47 -47
- package/src/components/Functional/TreeSearchSelect/index.tsx +201 -199
- package/src/components/Solution/RuleComponent/Formula.tsx +335 -335
- package/src/components/Solution/RuleComponent/InnerSelect.tsx +62 -0
- package/src/components/Solution/RuleComponent/index.d.ts +29 -29
- package/src/components/Solution/RuleComponent/index.js +2073 -2032
- package/src/components/Solution/RuleComponent/index.less +230 -230
- package/src/components/Solution/RuleComponent/renderSpecificAction.js +99 -99
- package/src/components/Solution/RuleComponent/ruleFiled.js +2281 -2107
- package/src/components/Solution/RuleComponent/services.ts +13 -13
- package/src/components/Solution/RuleComponent/util.js +143 -139
- package/src/index.ts +38 -38
- package/src/plugin/TableColumnSetting/index.less +247 -247
- package/src/plugin/TableColumnSetting/index.md +50 -50
- package/src/plugin/TableColumnSetting/index.tsx +725 -725
- package/src/plugin/TableColumnSetting/utils.ts +19 -19
- package/src/styles/bsDefault.less +1912 -1890
- package/src/utils/CheckOneUser/index.md +39 -39
- package/src/utils/CheckOneUser/index.ts +51 -51
- package/src/utils/CustomLoginInfo.ts +55 -0
- package/src/utils/LocalstorageUtils.ts +95 -114
- package/src/utils/TableUtils.tsx +18 -18
- package/src/utils/checkUtils.ts +39 -39
- package/src/utils/enumConfig.ts +11 -11
- package/src/utils/getFormMode.js +12 -12
- package/src/utils/index.ts +4 -4
- package/src/utils/requestUtils.ts +166 -42
- package/src/utils/serialize.js +7 -7
- package/src/utils/utils.ts +191 -212
- package/tsconfig.json +29 -29
- package/typings.d.ts +4 -4
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
|
+
import cookie from 'js-cookie';
|
|
2
3
|
import { message as message$1, Image, Popover, Card, Avatar, Tooltip, Menu, Space, Dropdown, Button, Checkbox, Input, Modal, Select, Form, Divider, Spin, Table, TreeSelect, Tag, InputNumber, Typography, Alert, Anchor, Breadcrumb, Drawer as Drawer$1, List, Tree, Row, Col, Tabs, Affix, Cascader, DatePicker, TimePicker, Switch } from 'antd';
|
|
3
4
|
import _, { omit, debounce, cloneDeep as cloneDeep$1, throttle, isEmpty } from 'lodash';
|
|
4
5
|
import { history, formatMessage, useLocation, Link, useModel, useIntl } from 'umi';
|
|
@@ -25,492 +26,363 @@ import { parse as parse$1 } from '@babel/parser';
|
|
|
25
26
|
import { visit } from 'ast-types';
|
|
26
27
|
import isArray$1 from 'lodash/isArray';
|
|
27
28
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
var resposne = JSON.parse(localStorage.getItem(ENUM.BROWSER_CACHE.USER_INFO) || '{}');
|
|
42
|
-
// 存储表头
|
|
43
|
-
var setConfigTableColumns = function setConfigTableColumns(configvalue, tableCode) {
|
|
44
|
-
var config = localStorage.getItem(ENUM.BROWSER_CACHE.COLUMN_CONDITION) || '[]';
|
|
45
|
-
var configArray = JSON.parse(config);
|
|
46
|
-
var currentSetting = configArray.filter(function (item) {
|
|
47
|
-
return item.code === tableCode;
|
|
48
|
-
});
|
|
49
|
-
if (currentSetting.length) {
|
|
50
|
-
currentSetting[0].detail = JSON.stringify(configvalue);
|
|
51
|
-
} else {
|
|
52
|
-
configArray.push({
|
|
53
|
-
"code": tableCode,
|
|
54
|
-
"detail": JSON.stringify(configvalue)
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
localStorage.setItem(ENUM.BROWSER_CACHE.COLUMN_CONDITION, JSON.stringify(configArray));
|
|
58
|
-
};
|
|
59
|
-
// 取表头
|
|
60
|
-
var getConfigTableColumns = function getConfigTableColumns(tableCode) {
|
|
61
|
-
if (!tableCode) return [];
|
|
62
|
-
var config = localStorage.getItem(ENUM.BROWSER_CACHE.COLUMN_CONDITION) || '[]';
|
|
63
|
-
var configArray = JSON.parse(config);
|
|
64
|
-
var configSetting = configArray.filter(function (item) {
|
|
65
|
-
return item.code === tableCode;
|
|
66
|
-
});
|
|
67
|
-
if (configSetting.length) {
|
|
68
|
-
return JSON.parse(configSetting[0].detail || '[]');
|
|
69
|
-
}
|
|
70
|
-
return [];
|
|
71
|
-
};
|
|
72
|
-
function getEmployeeId() {
|
|
73
|
-
var _resposne$employeeRes;
|
|
74
|
-
return (resposne === null || resposne === void 0 ? void 0 : (_resposne$employeeRes = resposne.employeeResVo) === null || _resposne$employeeRes === void 0 ? void 0 : _resposne$employeeRes.id) || 2;
|
|
75
|
-
}
|
|
76
|
-
function getEmployeeCode() {
|
|
77
|
-
var _resposne$employeeRes2;
|
|
78
|
-
return resposne === null || resposne === void 0 ? void 0 : (_resposne$employeeRes2 = resposne.employeeResVo) === null || _resposne$employeeRes2 === void 0 ? void 0 : _resposne$employeeRes2.employeeNumber;
|
|
79
|
-
}
|
|
80
|
-
function getSessionId() {
|
|
81
|
-
return (resposne === null || resposne === void 0 ? void 0 : resposne.sessionId) || '';
|
|
82
|
-
}
|
|
83
|
-
//--------赢家项目登录信息---------
|
|
84
|
-
function getEekaSessionId() {
|
|
85
|
-
return (resposne === null || resposne === void 0 ? void 0 : resposne.sessionId) || '';
|
|
86
|
-
}
|
|
87
|
-
function getEekaAccountId() {
|
|
88
|
-
var _resposne$personDetai;
|
|
89
|
-
return (resposne === null || resposne === void 0 ? void 0 : (_resposne$personDetai = resposne.personDetailResDto) === null || _resposne$personDetai === void 0 ? void 0 : _resposne$personDetai.accountId) || -1;
|
|
90
|
-
}
|
|
91
|
-
function getEekaEmployeeId() {
|
|
92
|
-
var _resposne$personDetai2;
|
|
93
|
-
return (resposne === null || resposne === void 0 ? void 0 : (_resposne$personDetai2 = resposne.personDetailResDto) === null || _resposne$personDetai2 === void 0 ? void 0 : _resposne$personDetai2.employeeId) || 2;
|
|
94
|
-
}
|
|
95
|
-
function getEekaTenantId() {
|
|
96
|
-
var _resposne$personDetai3;
|
|
97
|
-
return (resposne === null || resposne === void 0 ? void 0 : (_resposne$personDetai3 = resposne.personDetailResDto) === null || _resposne$personDetai3 === void 0 ? void 0 : _resposne$personDetai3.tenantId) || 1;
|
|
98
|
-
}
|
|
99
|
-
function getEekaToken() {
|
|
100
|
-
return resposne === null || resposne === void 0 ? void 0 : resposne.token;
|
|
101
|
-
}
|
|
102
|
-
function getUserId() {
|
|
103
|
-
var _resposne$accountPers2;
|
|
104
|
-
return (_resposne$accountPers2 = resposne.accountPersonDetail) === null || _resposne$accountPers2 === void 0 ? void 0 : _resposne$accountPers2.username;
|
|
105
|
-
}
|
|
106
|
-
function getAccountID() {
|
|
107
|
-
var _resposne$accountPers3;
|
|
108
|
-
return resposne === null || resposne === void 0 ? void 0 : (_resposne$accountPers3 = resposne.accountPersonDetail) === null || _resposne$accountPers3 === void 0 ? void 0 : _resposne$accountPers3.id;
|
|
109
|
-
}
|
|
110
|
-
function getUserName() {
|
|
111
|
-
var _resposne$accountPers4;
|
|
112
|
-
return resposne === null || resposne === void 0 ? void 0 : (_resposne$accountPers4 = resposne.accountPersonDetail) === null || _resposne$accountPers4 === void 0 ? void 0 : _resposne$accountPers4.employeeName;
|
|
113
|
-
}
|
|
114
|
-
function handleUserPhone() {
|
|
115
|
-
var _resposne$person;
|
|
116
|
-
var str = (resposne === null || resposne === void 0 ? void 0 : (_resposne$person = resposne.person) === null || _resposne$person === void 0 ? void 0 : _resposne$person.phone) || '';
|
|
117
|
-
var enStr = str && str.slice(0, 3) + '****' + str.slice(str.length - 4);
|
|
118
|
-
return enStr;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
function handleRequestAuthHeader(config) {
|
|
122
|
-
var _config$url, _config$url2;
|
|
123
|
-
// https://www.kdocs.cn/l/coNbPpjamr5v这个表格里面涉及的接口,接口请求头里需要添加参数:x-biz-code 值就是列表里的code
|
|
124
|
-
// 例:x-biz-code=STORE_CODE
|
|
125
|
-
// 物理仓选择组件
|
|
126
|
-
if ((config === null || config === void 0 ? void 0 : (_config$url = config.url) === null || _config$url === void 0 ? void 0 : _config$url.indexOf('/stock/physicalWarehouse?')) > -1) {
|
|
127
|
-
config.headers['x-biz-code'] = 'PW_STOCK_CODE';
|
|
128
|
-
}
|
|
129
|
-
// 逻辑仓选择组件
|
|
130
|
-
if ((config === null || config === void 0 ? void 0 : (_config$url2 = config.url) === null || _config$url2 === void 0 ? void 0 : _config$url2.indexOf('/stock/realWarehouse?')) > -1) {
|
|
131
|
-
config.headers['x-biz-code'] = 'RW_STOCK_CODE';
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
// 处理请求头
|
|
135
|
-
var handleRequestHeader = function handleRequestHeader(config) {
|
|
136
|
-
// config.headers['sso-sessionid'] = getSessionId()
|
|
137
|
-
// config.headers['x-account-id'] = getAccountId()
|
|
138
|
-
// config.headers['x-employee-id'] = getEmployeeId()
|
|
139
|
-
// config.headers['x-tenant-id'] = getCurrentTenantId()
|
|
140
|
-
//赢家项目请求头
|
|
141
|
-
config.headers['x-sso-sessionid'] = getEekaSessionId();
|
|
142
|
-
config.headers['x-account-id'] = getEekaAccountId();
|
|
143
|
-
config.headers['x-employee-id'] = getEekaEmployeeId();
|
|
144
|
-
config.headers['x-tenant-id'] = getEekaTenantId();
|
|
145
|
-
config.headers['x-user-token'] = getEekaToken();
|
|
146
|
-
if (localStorage.getItem('x-user-auth-context')) {
|
|
147
|
-
config.headers['x-user-auth-context'] = localStorage.getItem('x-user-auth-context');
|
|
148
|
-
}
|
|
149
|
-
handleRequestAuthHeader(config);
|
|
150
|
-
};
|
|
151
|
-
// 拦截器
|
|
152
|
-
axios.interceptors.request.use(function (config) {
|
|
153
|
-
handleRequestHeader(config);
|
|
154
|
-
return config;
|
|
155
|
-
});
|
|
156
|
-
|
|
157
|
-
function _iterableToArrayLimit(arr, i) {
|
|
158
|
-
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
159
|
-
if (null != _i) {
|
|
160
|
-
var _s,
|
|
161
|
-
_e,
|
|
162
|
-
_x,
|
|
163
|
-
_r,
|
|
164
|
-
_arr = [],
|
|
165
|
-
_n = !0,
|
|
166
|
-
_d = !1;
|
|
29
|
+
function _iterableToArrayLimit(r, l) {
|
|
30
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
31
|
+
if (null != t) {
|
|
32
|
+
var e,
|
|
33
|
+
n,
|
|
34
|
+
i,
|
|
35
|
+
u,
|
|
36
|
+
a = [],
|
|
37
|
+
f = !0,
|
|
38
|
+
o = !1;
|
|
167
39
|
try {
|
|
168
|
-
if (
|
|
169
|
-
if (Object(
|
|
170
|
-
|
|
171
|
-
} else for (; !(
|
|
172
|
-
} catch (
|
|
173
|
-
|
|
40
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
41
|
+
if (Object(t) !== t) return;
|
|
42
|
+
f = !1;
|
|
43
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
44
|
+
} catch (r) {
|
|
45
|
+
o = !0, n = r;
|
|
174
46
|
} finally {
|
|
175
47
|
try {
|
|
176
|
-
if (!
|
|
48
|
+
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
177
49
|
} finally {
|
|
178
|
-
if (
|
|
50
|
+
if (o) throw n;
|
|
179
51
|
}
|
|
180
52
|
}
|
|
181
|
-
return
|
|
53
|
+
return a;
|
|
182
54
|
}
|
|
183
55
|
}
|
|
184
|
-
function ownKeys(
|
|
185
|
-
var
|
|
56
|
+
function ownKeys(e, r) {
|
|
57
|
+
var t = Object.keys(e);
|
|
186
58
|
if (Object.getOwnPropertySymbols) {
|
|
187
|
-
var
|
|
188
|
-
|
|
189
|
-
return Object.getOwnPropertyDescriptor(
|
|
190
|
-
})),
|
|
59
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
60
|
+
r && (o = o.filter(function (r) {
|
|
61
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
62
|
+
})), t.push.apply(t, o);
|
|
191
63
|
}
|
|
192
|
-
return
|
|
64
|
+
return t;
|
|
193
65
|
}
|
|
194
|
-
function _objectSpread2(
|
|
195
|
-
for (var
|
|
196
|
-
var
|
|
197
|
-
|
|
198
|
-
_defineProperty(
|
|
199
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
200
|
-
Object.defineProperty(
|
|
66
|
+
function _objectSpread2(e) {
|
|
67
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
68
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
69
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
70
|
+
_defineProperty(e, r, t[r]);
|
|
71
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
72
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
201
73
|
});
|
|
202
74
|
}
|
|
203
|
-
return
|
|
75
|
+
return e;
|
|
204
76
|
}
|
|
205
77
|
function _regeneratorRuntime() {
|
|
206
78
|
_regeneratorRuntime = function () {
|
|
207
|
-
return
|
|
79
|
+
return e;
|
|
208
80
|
};
|
|
209
|
-
var
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
81
|
+
var t,
|
|
82
|
+
e = {},
|
|
83
|
+
r = Object.prototype,
|
|
84
|
+
n = r.hasOwnProperty,
|
|
85
|
+
o = Object.defineProperty || function (t, e, r) {
|
|
86
|
+
t[e] = r.value;
|
|
214
87
|
},
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
function define(
|
|
220
|
-
return Object.defineProperty(
|
|
221
|
-
value:
|
|
88
|
+
i = "function" == typeof Symbol ? Symbol : {},
|
|
89
|
+
a = i.iterator || "@@iterator",
|
|
90
|
+
c = i.asyncIterator || "@@asyncIterator",
|
|
91
|
+
u = i.toStringTag || "@@toStringTag";
|
|
92
|
+
function define(t, e, r) {
|
|
93
|
+
return Object.defineProperty(t, e, {
|
|
94
|
+
value: r,
|
|
222
95
|
enumerable: !0,
|
|
223
96
|
configurable: !0,
|
|
224
97
|
writable: !0
|
|
225
|
-
}),
|
|
98
|
+
}), t[e];
|
|
226
99
|
}
|
|
227
100
|
try {
|
|
228
101
|
define({}, "");
|
|
229
|
-
} catch (
|
|
230
|
-
define = function (
|
|
231
|
-
return
|
|
102
|
+
} catch (t) {
|
|
103
|
+
define = function (t, e, r) {
|
|
104
|
+
return t[e] = r;
|
|
232
105
|
};
|
|
233
106
|
}
|
|
234
|
-
function wrap(
|
|
235
|
-
var
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
return
|
|
239
|
-
value: makeInvokeMethod(
|
|
240
|
-
}),
|
|
107
|
+
function wrap(t, e, r, n) {
|
|
108
|
+
var i = e && e.prototype instanceof Generator ? e : Generator,
|
|
109
|
+
a = Object.create(i.prototype),
|
|
110
|
+
c = new Context(n || []);
|
|
111
|
+
return o(a, "_invoke", {
|
|
112
|
+
value: makeInvokeMethod(t, r, c)
|
|
113
|
+
}), a;
|
|
241
114
|
}
|
|
242
|
-
function tryCatch(
|
|
115
|
+
function tryCatch(t, e, r) {
|
|
243
116
|
try {
|
|
244
117
|
return {
|
|
245
118
|
type: "normal",
|
|
246
|
-
arg:
|
|
119
|
+
arg: t.call(e, r)
|
|
247
120
|
};
|
|
248
|
-
} catch (
|
|
121
|
+
} catch (t) {
|
|
249
122
|
return {
|
|
250
123
|
type: "throw",
|
|
251
|
-
arg:
|
|
124
|
+
arg: t
|
|
252
125
|
};
|
|
253
126
|
}
|
|
254
127
|
}
|
|
255
|
-
|
|
256
|
-
var
|
|
128
|
+
e.wrap = wrap;
|
|
129
|
+
var h = "suspendedStart",
|
|
130
|
+
l = "suspendedYield",
|
|
131
|
+
f = "executing",
|
|
132
|
+
s = "completed",
|
|
133
|
+
y = {};
|
|
257
134
|
function Generator() {}
|
|
258
135
|
function GeneratorFunction() {}
|
|
259
136
|
function GeneratorFunctionPrototype() {}
|
|
260
|
-
var
|
|
261
|
-
define(
|
|
137
|
+
var p = {};
|
|
138
|
+
define(p, a, function () {
|
|
262
139
|
return this;
|
|
263
140
|
});
|
|
264
|
-
var
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
var
|
|
268
|
-
function defineIteratorMethods(
|
|
269
|
-
["next", "throw", "return"].forEach(function (
|
|
270
|
-
define(
|
|
271
|
-
return this._invoke(
|
|
141
|
+
var d = Object.getPrototypeOf,
|
|
142
|
+
v = d && d(d(values([])));
|
|
143
|
+
v && v !== r && n.call(v, a) && (p = v);
|
|
144
|
+
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
145
|
+
function defineIteratorMethods(t) {
|
|
146
|
+
["next", "throw", "return"].forEach(function (e) {
|
|
147
|
+
define(t, e, function (t) {
|
|
148
|
+
return this._invoke(e, t);
|
|
272
149
|
});
|
|
273
150
|
});
|
|
274
151
|
}
|
|
275
|
-
function AsyncIterator(
|
|
276
|
-
function invoke(
|
|
277
|
-
var
|
|
278
|
-
if ("throw" !==
|
|
279
|
-
var
|
|
280
|
-
|
|
281
|
-
return
|
|
282
|
-
invoke("next",
|
|
283
|
-
}, function (
|
|
284
|
-
invoke("throw",
|
|
285
|
-
}) :
|
|
286
|
-
|
|
287
|
-
}, function (
|
|
288
|
-
return invoke("throw",
|
|
152
|
+
function AsyncIterator(t, e) {
|
|
153
|
+
function invoke(r, o, i, a) {
|
|
154
|
+
var c = tryCatch(t[r], t, o);
|
|
155
|
+
if ("throw" !== c.type) {
|
|
156
|
+
var u = c.arg,
|
|
157
|
+
h = u.value;
|
|
158
|
+
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
159
|
+
invoke("next", t, i, a);
|
|
160
|
+
}, function (t) {
|
|
161
|
+
invoke("throw", t, i, a);
|
|
162
|
+
}) : e.resolve(h).then(function (t) {
|
|
163
|
+
u.value = t, i(u);
|
|
164
|
+
}, function (t) {
|
|
165
|
+
return invoke("throw", t, i, a);
|
|
289
166
|
});
|
|
290
167
|
}
|
|
291
|
-
|
|
168
|
+
a(c.arg);
|
|
292
169
|
}
|
|
293
|
-
var
|
|
294
|
-
|
|
295
|
-
value: function (
|
|
170
|
+
var r;
|
|
171
|
+
o(this, "_invoke", {
|
|
172
|
+
value: function (t, n) {
|
|
296
173
|
function callInvokeWithMethodAndArg() {
|
|
297
|
-
return new
|
|
298
|
-
invoke(
|
|
174
|
+
return new e(function (e, r) {
|
|
175
|
+
invoke(t, n, e, r);
|
|
299
176
|
});
|
|
300
177
|
}
|
|
301
|
-
return
|
|
178
|
+
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
302
179
|
}
|
|
303
180
|
});
|
|
304
181
|
}
|
|
305
|
-
function makeInvokeMethod(
|
|
306
|
-
var
|
|
307
|
-
return function (
|
|
308
|
-
if (
|
|
309
|
-
if (
|
|
310
|
-
if ("throw" ===
|
|
311
|
-
return
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
182
|
+
function makeInvokeMethod(e, r, n) {
|
|
183
|
+
var o = h;
|
|
184
|
+
return function (i, a) {
|
|
185
|
+
if (o === f) throw new Error("Generator is already running");
|
|
186
|
+
if (o === s) {
|
|
187
|
+
if ("throw" === i) throw a;
|
|
188
|
+
return {
|
|
189
|
+
value: t,
|
|
190
|
+
done: !0
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
for (n.method = i, n.arg = a;;) {
|
|
194
|
+
var c = n.delegate;
|
|
195
|
+
if (c) {
|
|
196
|
+
var u = maybeInvokeDelegate(c, n);
|
|
197
|
+
if (u) {
|
|
198
|
+
if (u === y) continue;
|
|
199
|
+
return u;
|
|
320
200
|
}
|
|
321
201
|
}
|
|
322
|
-
if ("next" ===
|
|
323
|
-
if (
|
|
324
|
-
|
|
325
|
-
} else "return" ===
|
|
326
|
-
|
|
327
|
-
var
|
|
328
|
-
if ("normal" ===
|
|
329
|
-
if (
|
|
202
|
+
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
203
|
+
if (o === h) throw o = s, n.arg;
|
|
204
|
+
n.dispatchException(n.arg);
|
|
205
|
+
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
206
|
+
o = f;
|
|
207
|
+
var p = tryCatch(e, r, n);
|
|
208
|
+
if ("normal" === p.type) {
|
|
209
|
+
if (o = n.done ? s : l, p.arg === y) continue;
|
|
330
210
|
return {
|
|
331
|
-
value:
|
|
332
|
-
done:
|
|
211
|
+
value: p.arg,
|
|
212
|
+
done: n.done
|
|
333
213
|
};
|
|
334
214
|
}
|
|
335
|
-
"throw" ===
|
|
215
|
+
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
336
216
|
}
|
|
337
217
|
};
|
|
338
218
|
}
|
|
339
|
-
function maybeInvokeDelegate(
|
|
340
|
-
var
|
|
341
|
-
|
|
342
|
-
if (
|
|
343
|
-
var
|
|
344
|
-
if ("throw" ===
|
|
345
|
-
var
|
|
346
|
-
return
|
|
347
|
-
}
|
|
348
|
-
function pushTryEntry(
|
|
349
|
-
var
|
|
350
|
-
tryLoc:
|
|
219
|
+
function maybeInvokeDelegate(e, r) {
|
|
220
|
+
var n = r.method,
|
|
221
|
+
o = e.iterator[n];
|
|
222
|
+
if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
|
223
|
+
var i = tryCatch(o, e.iterator, r.arg);
|
|
224
|
+
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
225
|
+
var a = i.arg;
|
|
226
|
+
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
|
227
|
+
}
|
|
228
|
+
function pushTryEntry(t) {
|
|
229
|
+
var e = {
|
|
230
|
+
tryLoc: t[0]
|
|
351
231
|
};
|
|
352
|
-
1 in
|
|
232
|
+
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
353
233
|
}
|
|
354
|
-
function resetTryEntry(
|
|
355
|
-
var
|
|
356
|
-
|
|
234
|
+
function resetTryEntry(t) {
|
|
235
|
+
var e = t.completion || {};
|
|
236
|
+
e.type = "normal", delete e.arg, t.completion = e;
|
|
357
237
|
}
|
|
358
|
-
function Context(
|
|
238
|
+
function Context(t) {
|
|
359
239
|
this.tryEntries = [{
|
|
360
240
|
tryLoc: "root"
|
|
361
|
-
}],
|
|
362
|
-
}
|
|
363
|
-
function values(
|
|
364
|
-
if (
|
|
365
|
-
var
|
|
366
|
-
if (
|
|
367
|
-
if ("function" == typeof
|
|
368
|
-
if (!isNaN(
|
|
369
|
-
var
|
|
370
|
-
|
|
371
|
-
for (; ++
|
|
372
|
-
return next.value =
|
|
241
|
+
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
242
|
+
}
|
|
243
|
+
function values(e) {
|
|
244
|
+
if (e || "" === e) {
|
|
245
|
+
var r = e[a];
|
|
246
|
+
if (r) return r.call(e);
|
|
247
|
+
if ("function" == typeof e.next) return e;
|
|
248
|
+
if (!isNaN(e.length)) {
|
|
249
|
+
var o = -1,
|
|
250
|
+
i = function next() {
|
|
251
|
+
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
252
|
+
return next.value = t, next.done = !0, next;
|
|
373
253
|
};
|
|
374
|
-
return
|
|
254
|
+
return i.next = i;
|
|
375
255
|
}
|
|
376
256
|
}
|
|
377
|
-
|
|
378
|
-
next: doneResult
|
|
379
|
-
};
|
|
257
|
+
throw new TypeError(typeof e + " is not iterable");
|
|
380
258
|
}
|
|
381
|
-
|
|
382
|
-
return {
|
|
383
|
-
value: undefined,
|
|
384
|
-
done: !0
|
|
385
|
-
};
|
|
386
|
-
}
|
|
387
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
|
259
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
388
260
|
value: GeneratorFunctionPrototype,
|
|
389
261
|
configurable: !0
|
|
390
|
-
}),
|
|
262
|
+
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
391
263
|
value: GeneratorFunction,
|
|
392
264
|
configurable: !0
|
|
393
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype,
|
|
394
|
-
var
|
|
395
|
-
return !!
|
|
396
|
-
},
|
|
397
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(
|
|
398
|
-
},
|
|
265
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
266
|
+
var e = "function" == typeof t && t.constructor;
|
|
267
|
+
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
268
|
+
}, e.mark = function (t) {
|
|
269
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
270
|
+
}, e.awrap = function (t) {
|
|
399
271
|
return {
|
|
400
|
-
__await:
|
|
272
|
+
__await: t
|
|
401
273
|
};
|
|
402
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype,
|
|
274
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
403
275
|
return this;
|
|
404
|
-
}),
|
|
405
|
-
void 0 ===
|
|
406
|
-
var
|
|
407
|
-
return
|
|
408
|
-
return
|
|
276
|
+
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
277
|
+
void 0 === i && (i = Promise);
|
|
278
|
+
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
279
|
+
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
280
|
+
return t.done ? t.value : a.next();
|
|
409
281
|
});
|
|
410
|
-
}, defineIteratorMethods(
|
|
282
|
+
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
411
283
|
return this;
|
|
412
|
-
}), define(
|
|
284
|
+
}), define(g, "toString", function () {
|
|
413
285
|
return "[object Generator]";
|
|
414
|
-
}),
|
|
415
|
-
var
|
|
416
|
-
|
|
417
|
-
for (var
|
|
418
|
-
return
|
|
419
|
-
for (;
|
|
420
|
-
var
|
|
421
|
-
if (
|
|
286
|
+
}), e.keys = function (t) {
|
|
287
|
+
var e = Object(t),
|
|
288
|
+
r = [];
|
|
289
|
+
for (var n in e) r.push(n);
|
|
290
|
+
return r.reverse(), function next() {
|
|
291
|
+
for (; r.length;) {
|
|
292
|
+
var t = r.pop();
|
|
293
|
+
if (t in e) return next.value = t, next.done = !1, next;
|
|
422
294
|
}
|
|
423
295
|
return next.done = !0, next;
|
|
424
296
|
};
|
|
425
|
-
},
|
|
297
|
+
}, e.values = values, Context.prototype = {
|
|
426
298
|
constructor: Context,
|
|
427
|
-
reset: function (
|
|
428
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent =
|
|
299
|
+
reset: function (e) {
|
|
300
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
|
429
301
|
},
|
|
430
302
|
stop: function () {
|
|
431
303
|
this.done = !0;
|
|
432
|
-
var
|
|
433
|
-
if ("throw" ===
|
|
304
|
+
var t = this.tryEntries[0].completion;
|
|
305
|
+
if ("throw" === t.type) throw t.arg;
|
|
434
306
|
return this.rval;
|
|
435
307
|
},
|
|
436
|
-
dispatchException: function (
|
|
437
|
-
if (this.done) throw
|
|
438
|
-
var
|
|
439
|
-
function handle(
|
|
440
|
-
return
|
|
441
|
-
}
|
|
442
|
-
for (var
|
|
443
|
-
var
|
|
444
|
-
|
|
445
|
-
if ("root" ===
|
|
446
|
-
if (
|
|
447
|
-
var
|
|
448
|
-
|
|
449
|
-
if (
|
|
450
|
-
if (this.prev <
|
|
451
|
-
if (this.prev <
|
|
452
|
-
} else if (
|
|
453
|
-
if (this.prev <
|
|
308
|
+
dispatchException: function (e) {
|
|
309
|
+
if (this.done) throw e;
|
|
310
|
+
var r = this;
|
|
311
|
+
function handle(n, o) {
|
|
312
|
+
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
313
|
+
}
|
|
314
|
+
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
315
|
+
var i = this.tryEntries[o],
|
|
316
|
+
a = i.completion;
|
|
317
|
+
if ("root" === i.tryLoc) return handle("end");
|
|
318
|
+
if (i.tryLoc <= this.prev) {
|
|
319
|
+
var c = n.call(i, "catchLoc"),
|
|
320
|
+
u = n.call(i, "finallyLoc");
|
|
321
|
+
if (c && u) {
|
|
322
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
323
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
324
|
+
} else if (c) {
|
|
325
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
454
326
|
} else {
|
|
455
|
-
if (!
|
|
456
|
-
if (this.prev <
|
|
327
|
+
if (!u) throw new Error("try statement without catch or finally");
|
|
328
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
457
329
|
}
|
|
458
330
|
}
|
|
459
331
|
}
|
|
460
332
|
},
|
|
461
|
-
abrupt: function (
|
|
462
|
-
for (var
|
|
463
|
-
var
|
|
464
|
-
if (
|
|
465
|
-
var
|
|
333
|
+
abrupt: function (t, e) {
|
|
334
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
335
|
+
var o = this.tryEntries[r];
|
|
336
|
+
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
337
|
+
var i = o;
|
|
466
338
|
break;
|
|
467
339
|
}
|
|
468
340
|
}
|
|
469
|
-
|
|
470
|
-
var
|
|
471
|
-
return
|
|
341
|
+
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
342
|
+
var a = i ? i.completion : {};
|
|
343
|
+
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
472
344
|
},
|
|
473
|
-
complete: function (
|
|
474
|
-
if ("throw" ===
|
|
475
|
-
return "break" ===
|
|
345
|
+
complete: function (t, e) {
|
|
346
|
+
if ("throw" === t.type) throw t.arg;
|
|
347
|
+
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
|
476
348
|
},
|
|
477
|
-
finish: function (
|
|
478
|
-
for (var
|
|
479
|
-
var
|
|
480
|
-
if (
|
|
349
|
+
finish: function (t) {
|
|
350
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
351
|
+
var r = this.tryEntries[e];
|
|
352
|
+
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
481
353
|
}
|
|
482
354
|
},
|
|
483
|
-
catch: function (
|
|
484
|
-
for (var
|
|
485
|
-
var
|
|
486
|
-
if (
|
|
487
|
-
var
|
|
488
|
-
if ("throw" ===
|
|
489
|
-
var
|
|
490
|
-
resetTryEntry(
|
|
355
|
+
catch: function (t) {
|
|
356
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
357
|
+
var r = this.tryEntries[e];
|
|
358
|
+
if (r.tryLoc === t) {
|
|
359
|
+
var n = r.completion;
|
|
360
|
+
if ("throw" === n.type) {
|
|
361
|
+
var o = n.arg;
|
|
362
|
+
resetTryEntry(r);
|
|
491
363
|
}
|
|
492
|
-
return
|
|
364
|
+
return o;
|
|
493
365
|
}
|
|
494
366
|
}
|
|
495
367
|
throw new Error("illegal catch attempt");
|
|
496
368
|
},
|
|
497
|
-
delegateYield: function (
|
|
369
|
+
delegateYield: function (e, r, n) {
|
|
498
370
|
return this.delegate = {
|
|
499
|
-
iterator: values(
|
|
500
|
-
resultName:
|
|
501
|
-
nextLoc:
|
|
502
|
-
}, "next" === this.method && (this.arg =
|
|
371
|
+
iterator: values(e),
|
|
372
|
+
resultName: r,
|
|
373
|
+
nextLoc: n
|
|
374
|
+
}, "next" === this.method && (this.arg = t), y;
|
|
503
375
|
}
|
|
504
|
-
},
|
|
376
|
+
}, e;
|
|
505
377
|
}
|
|
506
|
-
function _typeof(
|
|
378
|
+
function _typeof(o) {
|
|
507
379
|
"@babel/helpers - typeof";
|
|
508
380
|
|
|
509
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
510
|
-
return typeof
|
|
511
|
-
} : function (
|
|
512
|
-
return
|
|
513
|
-
}, _typeof(
|
|
381
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
382
|
+
return typeof o;
|
|
383
|
+
} : function (o) {
|
|
384
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
385
|
+
}, _typeof(o);
|
|
514
386
|
}
|
|
515
387
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
516
388
|
try {
|
|
@@ -742,6 +614,283 @@ function _toPropertyKey(arg) {
|
|
|
742
614
|
return typeof key === "symbol" ? key : String(key);
|
|
743
615
|
}
|
|
744
616
|
|
|
617
|
+
var ENUM = {
|
|
618
|
+
// 浏览器缓存信息
|
|
619
|
+
BROWSER_CACHE: {
|
|
620
|
+
COLUMN_CONDITION: 'columnCondition',
|
|
621
|
+
MAIN_AUTH_CODES: 'menuAuth_mainProject',
|
|
622
|
+
LIMIT_MENU_DATA: 'limitedMenuData',
|
|
623
|
+
USER_INFO: 'userInfo',
|
|
624
|
+
DICT_CODES: 'dicData',
|
|
625
|
+
CHILD_APP_BACK: 'child_app_back',
|
|
626
|
+
SEARCH_FIELDS_CONDITION: 'searchFieldsCondition' //表格搜索项信息缓存
|
|
627
|
+
}
|
|
628
|
+
};
|
|
629
|
+
|
|
630
|
+
var resposne = JSON.parse(localStorage.getItem(ENUM.BROWSER_CACHE.USER_INFO) || '{}');
|
|
631
|
+
// 存储表头
|
|
632
|
+
var setConfigTableColumns = function setConfigTableColumns(configvalue, tableCode) {
|
|
633
|
+
var config = localStorage.getItem(ENUM.BROWSER_CACHE.COLUMN_CONDITION) || '[]';
|
|
634
|
+
var configArray = JSON.parse(config);
|
|
635
|
+
var currentSetting = configArray.filter(function (item) {
|
|
636
|
+
return item.code === tableCode;
|
|
637
|
+
});
|
|
638
|
+
if (currentSetting.length) {
|
|
639
|
+
currentSetting[0].detail = JSON.stringify(configvalue);
|
|
640
|
+
} else {
|
|
641
|
+
configArray.push({
|
|
642
|
+
"code": tableCode,
|
|
643
|
+
"detail": JSON.stringify(configvalue)
|
|
644
|
+
});
|
|
645
|
+
}
|
|
646
|
+
localStorage.setItem(ENUM.BROWSER_CACHE.COLUMN_CONDITION, JSON.stringify(configArray));
|
|
647
|
+
};
|
|
648
|
+
// 取表头
|
|
649
|
+
var getConfigTableColumns = function getConfigTableColumns(tableCode) {
|
|
650
|
+
if (!tableCode) return [];
|
|
651
|
+
var config = localStorage.getItem(ENUM.BROWSER_CACHE.COLUMN_CONDITION) || '[]';
|
|
652
|
+
var configArray = JSON.parse(config);
|
|
653
|
+
var configSetting = configArray.filter(function (item) {
|
|
654
|
+
return item.code === tableCode;
|
|
655
|
+
});
|
|
656
|
+
if (configSetting.length) {
|
|
657
|
+
return JSON.parse(configSetting[0].detail || '[]');
|
|
658
|
+
}
|
|
659
|
+
return [];
|
|
660
|
+
};
|
|
661
|
+
var getCurrentTenantId = function getCurrentTenantId() {
|
|
662
|
+
return localStorage.getItem('current_tenant_id') || 1;
|
|
663
|
+
};
|
|
664
|
+
function getEmployeeId() {
|
|
665
|
+
var _resposne$employeeRes;
|
|
666
|
+
return (resposne === null || resposne === void 0 ? void 0 : (_resposne$employeeRes = resposne.employeeResVo) === null || _resposne$employeeRes === void 0 ? void 0 : _resposne$employeeRes.id) || 2;
|
|
667
|
+
}
|
|
668
|
+
function getEmployeeCode() {
|
|
669
|
+
var _resposne$employeeRes2;
|
|
670
|
+
return resposne === null || resposne === void 0 ? void 0 : (_resposne$employeeRes2 = resposne.employeeResVo) === null || _resposne$employeeRes2 === void 0 ? void 0 : _resposne$employeeRes2.employeeNumber;
|
|
671
|
+
}
|
|
672
|
+
function getSessionId() {
|
|
673
|
+
return (resposne === null || resposne === void 0 ? void 0 : resposne.sessionId) || '';
|
|
674
|
+
}
|
|
675
|
+
function getAccountId() {
|
|
676
|
+
var _resposne$accountPers;
|
|
677
|
+
return (resposne === null || resposne === void 0 ? void 0 : (_resposne$accountPers = resposne.accountPersonDetail) === null || _resposne$accountPers === void 0 ? void 0 : _resposne$accountPers.accountId) || -1;
|
|
678
|
+
}
|
|
679
|
+
function getUserId() {
|
|
680
|
+
var _resposne$accountPers2;
|
|
681
|
+
return (_resposne$accountPers2 = resposne.accountPersonDetail) === null || _resposne$accountPers2 === void 0 ? void 0 : _resposne$accountPers2.username;
|
|
682
|
+
}
|
|
683
|
+
function getAccountID() {
|
|
684
|
+
var _resposne$accountPers3;
|
|
685
|
+
return resposne === null || resposne === void 0 ? void 0 : (_resposne$accountPers3 = resposne.accountPersonDetail) === null || _resposne$accountPers3 === void 0 ? void 0 : _resposne$accountPers3.id;
|
|
686
|
+
}
|
|
687
|
+
function getUserName() {
|
|
688
|
+
var _resposne$accountPers4;
|
|
689
|
+
return resposne === null || resposne === void 0 ? void 0 : (_resposne$accountPers4 = resposne.accountPersonDetail) === null || _resposne$accountPers4 === void 0 ? void 0 : _resposne$accountPers4.employeeName;
|
|
690
|
+
}
|
|
691
|
+
function handleUserPhone() {
|
|
692
|
+
var _resposne$person;
|
|
693
|
+
var str = (resposne === null || resposne === void 0 ? void 0 : (_resposne$person = resposne.person) === null || _resposne$person === void 0 ? void 0 : _resposne$person.phone) || '';
|
|
694
|
+
var enStr = str && str.slice(0, 3) + '****' + str.slice(str.length - 4);
|
|
695
|
+
return enStr;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
var resposne$1 = JSON.parse(localStorage.getItem(ENUM.BROWSER_CACHE.USER_INFO) || '{}');
|
|
699
|
+
//--------赢家项目登录信息---------
|
|
700
|
+
function getEekaSessionId() {
|
|
701
|
+
return (resposne$1 === null || resposne$1 === void 0 ? void 0 : resposne$1.sessionId) || '';
|
|
702
|
+
}
|
|
703
|
+
function getEekaAccountId() {
|
|
704
|
+
var _resposne$personDetai;
|
|
705
|
+
return (resposne$1 === null || resposne$1 === void 0 ? void 0 : (_resposne$personDetai = resposne$1.personDetailResDto) === null || _resposne$personDetai === void 0 ? void 0 : _resposne$personDetai.accountId) || -1;
|
|
706
|
+
}
|
|
707
|
+
function getEekaEmployeeId() {
|
|
708
|
+
var _resposne$personDetai2;
|
|
709
|
+
return (resposne$1 === null || resposne$1 === void 0 ? void 0 : (_resposne$personDetai2 = resposne$1.personDetailResDto) === null || _resposne$personDetai2 === void 0 ? void 0 : _resposne$personDetai2.employeeId) || 2;
|
|
710
|
+
}
|
|
711
|
+
function getEekaTenantId() {
|
|
712
|
+
var _resposne$personDetai3;
|
|
713
|
+
return (resposne$1 === null || resposne$1 === void 0 ? void 0 : (_resposne$personDetai3 = resposne$1.personDetailResDto) === null || _resposne$personDetai3 === void 0 ? void 0 : _resposne$personDetai3.tenantId) || 1;
|
|
714
|
+
}
|
|
715
|
+
function getEekaToken() {
|
|
716
|
+
return resposne$1 === null || resposne$1 === void 0 ? void 0 : resposne$1.token;
|
|
717
|
+
}
|
|
718
|
+
//--------赢家项目登录信息---------
|
|
719
|
+
//--------国药项目登录信息---------
|
|
720
|
+
function getLoginHeaderInfo(headerkey) {
|
|
721
|
+
var storage = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'cookie';
|
|
722
|
+
if (storage) {
|
|
723
|
+
if ('localStorage' === storage) {
|
|
724
|
+
return localStorage.getItem(headerkey);
|
|
725
|
+
} else if ('sessionStorage' === storage) {
|
|
726
|
+
return sessionStorage.getItem(headerkey);
|
|
727
|
+
} else if ('cookie' === storage) {
|
|
728
|
+
return cookie.get(headerkey);
|
|
729
|
+
} else {
|
|
730
|
+
return localStorage.getItem(headerkey);
|
|
731
|
+
}
|
|
732
|
+
} else {
|
|
733
|
+
return localStorage.getItem(headerkey);
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
function getGuoyaoshukeCompanyId() {
|
|
737
|
+
return getLoginHeaderInfo('gksk-company-id');
|
|
738
|
+
}
|
|
739
|
+
function getGuoyaoshukeTenantCode() {
|
|
740
|
+
return getLoginHeaderInfo('gksk-tenant-code');
|
|
741
|
+
}
|
|
742
|
+
function getGuoyaoshukeTenantId() {
|
|
743
|
+
return getLoginHeaderInfo('gksk-tenant-id') || 1;
|
|
744
|
+
}
|
|
745
|
+
function getGuoyaoshukeToken() {
|
|
746
|
+
return getLoginHeaderInfo('gksk-access-token');
|
|
747
|
+
}
|
|
748
|
+
function getGuoyaoshukeUscCode() {
|
|
749
|
+
return getLoginHeaderInfo('gksk-usc-code');
|
|
750
|
+
}
|
|
751
|
+
//--------国药项目登录信息---------
|
|
752
|
+
|
|
753
|
+
function handleRequestAuthHeader(config) {
|
|
754
|
+
var _config$url, _config$url2;
|
|
755
|
+
// https://www.kdocs.cn/l/coNbPpjamr5v这个表格里面涉及的接口,接口请求头里需要添加参数:x-biz-code 值就是列表里的code
|
|
756
|
+
// 例:x-biz-code=STORE_CODE
|
|
757
|
+
// 物理仓选择组件
|
|
758
|
+
if ((config === null || config === void 0 ? void 0 : (_config$url = config.url) === null || _config$url === void 0 ? void 0 : _config$url.indexOf('/stock/physicalWarehouse?')) > -1) {
|
|
759
|
+
config.headers['x-biz-code'] = 'PW_STOCK_CODE';
|
|
760
|
+
}
|
|
761
|
+
// 逻辑仓选择组件
|
|
762
|
+
if ((config === null || config === void 0 ? void 0 : (_config$url2 = config.url) === null || _config$url2 === void 0 ? void 0 : _config$url2.indexOf('/stock/realWarehouse?')) > -1) {
|
|
763
|
+
config.headers['x-biz-code'] = 'RW_STOCK_CODE';
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
/*
|
|
767
|
+
* 获取当前组件服务项目
|
|
768
|
+
* */
|
|
769
|
+
var getCurrentUseProject = function getCurrentUseProject() {
|
|
770
|
+
var project = 'BitSun';
|
|
771
|
+
var hostname = window.location.hostname;
|
|
772
|
+
if ((hostname === null || hostname === void 0 ? void 0 : hostname.indexOf('omni')) > -1 || (hostname === null || hostname === void 0 ? void 0 : hostname.indexOf('eeka')) > -1 || (hostname === null || hostname === void 0 ? void 0 : hostname.indexOf('koradior')) > -1) {
|
|
773
|
+
project = 'YingJia';
|
|
774
|
+
}
|
|
775
|
+
if ((hostname === null || hostname === void 0 ? void 0 : hostname.indexOf('guoyaoshuke')) > -1 || (hostname === null || hostname === void 0 ? void 0 : hostname.indexOf('10.31.249.136')) > -1) {
|
|
776
|
+
project = 'GuoYao';
|
|
777
|
+
}
|
|
778
|
+
return project;
|
|
779
|
+
};
|
|
780
|
+
/*
|
|
781
|
+
* 处理一般请求头
|
|
782
|
+
* @param {*} config 请求参数配置
|
|
783
|
+
* */
|
|
784
|
+
var handleCommonHeader = function handleCommonHeader() {
|
|
785
|
+
var commonHeaders = {};
|
|
786
|
+
var defaultHeaders = {
|
|
787
|
+
'sso-sessionid': getSessionId(),
|
|
788
|
+
'x-account-id': getAccountId(),
|
|
789
|
+
'x-employee-id': getEmployeeId(),
|
|
790
|
+
'x-tenant-id': getCurrentTenantId()
|
|
791
|
+
};
|
|
792
|
+
var type = getCurrentUseProject();
|
|
793
|
+
switch (type) {
|
|
794
|
+
case 'YingJia':
|
|
795
|
+
commonHeaders = {
|
|
796
|
+
'x-sso-sessionid': getEekaSessionId(),
|
|
797
|
+
'x-account-id': getEekaAccountId(),
|
|
798
|
+
'x-employee-id': getEekaEmployeeId(),
|
|
799
|
+
'x-tenant-id': getEekaTenantId(),
|
|
800
|
+
'x-user-token': getEekaToken()
|
|
801
|
+
};
|
|
802
|
+
break;
|
|
803
|
+
case 'GuoYao':
|
|
804
|
+
commonHeaders = {
|
|
805
|
+
'gksk-company-id': getGuoyaoshukeCompanyId(),
|
|
806
|
+
'gksk-tenant-id': getGuoyaoshukeTenantId(),
|
|
807
|
+
'gksk-tenant-code': getGuoyaoshukeTenantCode(),
|
|
808
|
+
'gksk-access-token': getGuoyaoshukeToken(),
|
|
809
|
+
'gksk-usc-code': getGuoyaoshukeUscCode()
|
|
810
|
+
};
|
|
811
|
+
break;
|
|
812
|
+
default:
|
|
813
|
+
commonHeaders = defaultHeaders;
|
|
814
|
+
break;
|
|
815
|
+
}
|
|
816
|
+
return commonHeaders;
|
|
817
|
+
};
|
|
818
|
+
/*
|
|
819
|
+
* 处理请求头方法-包含一般请求头、权限请求头。组件默认统一处理一遍,若组件使用处需要可以单独在组件处传参进来处理
|
|
820
|
+
* @param {*} config 请求参数配置
|
|
821
|
+
* */
|
|
822
|
+
var handleRequestHeader = function handleRequestHeader(config) {
|
|
823
|
+
var commonHeaders = handleCommonHeader();
|
|
824
|
+
if (localStorage.getItem('x-user-auth-context')) {
|
|
825
|
+
// @ts-ignore
|
|
826
|
+
commonHeaders['x-user-auth-context'] = localStorage.getItem('x-user-auth-context');
|
|
827
|
+
}
|
|
828
|
+
!!!config.headers['x-biz-code'] && handleRequestAuthHeader(config);
|
|
829
|
+
config.headers = _objectSpread2(_objectSpread2({}, commonHeaders), config.headers);
|
|
830
|
+
};
|
|
831
|
+
// 拦截器
|
|
832
|
+
axios.interceptors.request.use(function (config) {
|
|
833
|
+
handleRequestHeader(config);
|
|
834
|
+
return config;
|
|
835
|
+
});
|
|
836
|
+
/**
|
|
837
|
+
* 处理请求路径前缀/请求路径等使用不一的问题
|
|
838
|
+
* @param {*} defaultUrl 默认请求路径
|
|
839
|
+
* @param {*} defaultPreFix 默认请求路径的前缀
|
|
840
|
+
* @param {*} config 更改请求前缀/路径集合
|
|
841
|
+
* 示例:
|
|
842
|
+
* appRequestConfig: {
|
|
843
|
+
* '/appConfig/saveUserOrder': ['/api/user-manage'],
|
|
844
|
+
* '/appConfig/saveQueryCriteria': ['/api/user-manage']
|
|
845
|
+
* }
|
|
846
|
+
*/
|
|
847
|
+
var handleRequestUrl = function handleRequestUrl(defaultPreFix, defaultUrl, config) {
|
|
848
|
+
var _Object$keys;
|
|
849
|
+
var rUrl = "".concat(defaultPreFix).concat(defaultUrl);
|
|
850
|
+
if (config && ((_Object$keys = Object.keys(config || {})) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
|
|
851
|
+
var value = config[defaultUrl] || [];
|
|
852
|
+
var newPreFix = value[0] || defaultPreFix;
|
|
853
|
+
var newUrl = value[1] || defaultUrl;
|
|
854
|
+
rUrl = "".concat(newPreFix).concat(newUrl);
|
|
855
|
+
}
|
|
856
|
+
return rUrl;
|
|
857
|
+
};
|
|
858
|
+
/**
|
|
859
|
+
* 处理错误请求
|
|
860
|
+
* @param {*} response 返回结果
|
|
861
|
+
* @param {*} needBackError 是否需要将错误回传到页面单独处理
|
|
862
|
+
*/
|
|
863
|
+
function handleError(response, needBackError) {
|
|
864
|
+
if (judgeIsRequestError(response)) {
|
|
865
|
+
if (response && !needBackError) {
|
|
866
|
+
// @ts-ignore
|
|
867
|
+
response.msg && message.error(response.msg);
|
|
868
|
+
}
|
|
869
|
+
return false;
|
|
870
|
+
}
|
|
871
|
+
return true;
|
|
872
|
+
}
|
|
873
|
+
/**
|
|
874
|
+
* 判断为请求错误
|
|
875
|
+
* @param {*} res 响应体
|
|
876
|
+
* */
|
|
877
|
+
var judgeIsRequestError = function judgeIsRequestError(res) {
|
|
878
|
+
if (!res || (res === null || res === void 0 ? void 0 : res.status) && res.status !== '0' || (res === null || res === void 0 ? void 0 : res.code) && res.code !== '000000' && res.code !== '0') {
|
|
879
|
+
return true;
|
|
880
|
+
}
|
|
881
|
+
return false;
|
|
882
|
+
};
|
|
883
|
+
/**
|
|
884
|
+
* 判断为请求成功
|
|
885
|
+
* @param {*} res 响应体
|
|
886
|
+
* */
|
|
887
|
+
var judgeIsRequestSuccess = function judgeIsRequestSuccess(res) {
|
|
888
|
+
if ((res === null || res === void 0 ? void 0 : res.status) === '0' || (res === null || res === void 0 ? void 0 : res.code) === '000000' || (res === null || res === void 0 ? void 0 : res.code) === '0') {
|
|
889
|
+
return true;
|
|
890
|
+
}
|
|
891
|
+
return false;
|
|
892
|
+
};
|
|
893
|
+
|
|
745
894
|
var checkQuantityAccuracy = function checkQuantityAccuracy(value, accuracy, errorInfo) {
|
|
746
895
|
var errorMessage = _objectSpread2({
|
|
747
896
|
showTips: true,
|
|
@@ -844,7 +993,7 @@ function styleInject(css, ref) {
|
|
|
844
993
|
}
|
|
845
994
|
}
|
|
846
995
|
|
|
847
|
-
var css_248z = ".cardContent {\n font-family: PingFangSC, PingFangSC-Regular;\n}\n.user_card_header {\n margin-top: -32px;\n}\n.user_card_header .card_name {\n font-size: 14px;\n font-weight: 600;\n line-height: 20px;\n color: #000000;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n margin-top: 6px;\n}\n.card_company {\n font-size: 12px;\n font-weight: 400;\n color: #848484;\n line-height: 20px;\n margin-bottom: 16px;\n}\n.card_detailInfo {\n font-size: 12px;\n font-weight: 400;\n color: #848484;\n line-height: 20px;\n margin: 0 0 5px !important;\n}\n.card_department {\n color: #
|
|
996
|
+
var css_248z = ".cardContent {\n font-family: PingFangSC, PingFangSC-Regular;\n}\n.user_card_header {\n margin-top: -32px;\n}\n.user_card_header .card_name {\n font-size: 14px;\n font-weight: 600;\n line-height: 20px;\n color: #000000;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n margin-top: 6px;\n}\n.card_company {\n font-size: 12px;\n font-weight: 400;\n color: #848484;\n line-height: 20px;\n margin-bottom: 16px;\n}\n.card_detailInfo {\n font-size: 12px;\n font-weight: 400;\n color: #848484;\n line-height: 20px;\n margin: 0 0 5px !important;\n}\n.card_department {\n color: #005cff !important;\n}\n.user_info_card .ant-popover-inner-content {\n padding: 0px !important;\n}\n.user_info_card .ant-card-body {\n padding: 0px !important;\n}\n";
|
|
848
997
|
styleInject(css_248z);
|
|
849
998
|
|
|
850
999
|
var noImg = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2244px%22%20height%3D%2244px%22%20viewBox%3D%220%200%2044%2044%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E8%92%99%E7%89%88%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Cpolygon%20id%3D%22path-1%22%20points%3D%22-1.56319402e-13%201.84741111e-13%2044%201.84741111e-13%2044%2044%20-1.56319402e-13%2044%22%3E%3C%2Fpolygon%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22%E5%88%97%E8%A1%A8%E5%8A%9F%E8%83%BD%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E6%98%9F%E6%BE%9C-%E6%90%9C%E7%B4%A2-%E6%90%9C%E7%B4%A2%E5%8A%9F%E8%83%BD%22%20transform%3D%22translate%28-354.000000%2C%20-672.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E5%88%97%E8%A1%A8%E4%B8%80%E5%A4%87%E4%BB%BD%22%20transform%3D%22translate%28240.000000%2C%20664.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E5%8D%95%E6%8D%AE%E7%BC%96%E5%8F%B7%22%20transform%3D%22translate%28106.000000%2C%200.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E5%BD%A2%E7%8A%B6%22%20transform%3D%22translate%288.000000%2C%208.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cmask%20id%3D%22mask-2%22%20fill%3D%22white%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fmask%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20id%3D%22%E8%92%99%E7%89%88%22%20fill%3D%22%23E6F3FF%22%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M28.4962332%2C15%20C29.4007284%2C15%2030.1339666%2C15.7383979%2030.1339666%2C16.6492578%20L30.1339666%2C27.5596481%20C30.1339666%2C28.4705081%2029.4007284%2C29.208906%2028.4962332%2C29.208906%20L14.6377334%2C29.208906%20C13.7332382%2C29.208906%2013%2C28.4705081%2013%2C27.5596481%20L13%2C16.6492578%20C13%2C15.7383979%2013.7332382%2C15%2014.6377334%2C15%20L28.4956873%2C15%20L28.4962332%2C15%20Z%20M28.4962332%2C16.6492578%20L14.6377334%2C16.6492578%20L14.6377334%2C27.5596481%20L28.4956873%2C27.5596481%20L28.4956873%2C16.6492578%20L28.4962332%2C16.6492578%20Z%20M26.6996397%2C18.6899395%20L26.6996397%2C20.3369983%20C24.5001638%2C20.357889%2023.12283%2C21.0967565%2022.4448084%2C22.5305113%20L22.3847582%2C22.6624519%20L22.3137897%2C22.8224299%20C21.2241511%2C25.1880154%2019.0819959%2C26.322155%2016.0560105%2C26.1940627%20L16.243258%2C26.2001099%20L16.2443498%2C24.5508521%20C18.5633803%2C24.6206707%2020.0357026%2C23.8290269%2020.8190851%2C22.1473337%20L20.8824107%2C22.006597%20L20.9479201%2C21.8603628%20C21.9158205%2C19.7680044%2023.8767333%2C18.7196262%2026.6996397%2C18.6899395%20L26.6996397%2C18.6899395%20Z%20M17.5583579%2C18.3435954%20C18.1149239%2C18.3435954%2018.5661099%2C18.7979562%2018.5661099%2C19.3584387%20C18.5661099%2C19.9189212%2018.1149239%2C20.373282%2017.5583579%2C20.373282%20C17.0016411%2C20.373282%2016.550333%2C19.9187981%2016.550333%2C19.3581638%20C16.550333%2C18.7975295%2017.0016411%2C18.3430456%2017.5583579%2C18.3430456%20L17.5583579%2C18.3435954%20Z%22%20fill%3D%22%23A3D1FF%22%20fill-rule%3D%22nonzero%22%20mask%3D%22url%28%23mask-2%29%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
@@ -1282,22 +1431,6 @@ var judgeIsEmpty = function judgeIsEmpty(value) {
|
|
|
1282
1431
|
}
|
|
1283
1432
|
return false;
|
|
1284
1433
|
};
|
|
1285
|
-
/**
|
|
1286
|
-
* 处理错误请求
|
|
1287
|
-
* @param {*} response 返回结果
|
|
1288
|
-
* @param {*} needBackError 是否需要将错误回传到页面单独处理
|
|
1289
|
-
*/
|
|
1290
|
-
function handleError(response, needBackError) {
|
|
1291
|
-
// @ts-ignore
|
|
1292
|
-
if (!response || (response.code ? response.code !== '000000' : response.status !== '0')) {
|
|
1293
|
-
if (response && !needBackError) {
|
|
1294
|
-
// @ts-ignore
|
|
1295
|
-
response.msg && message.error(response.msg);
|
|
1296
|
-
}
|
|
1297
|
-
return false;
|
|
1298
|
-
}
|
|
1299
|
-
return true;
|
|
1300
|
-
}
|
|
1301
1434
|
|
|
1302
1435
|
var css_248z$1 = ".luckysheet {\n overflow: hidden;\n}\n.luckysheet .luckysheet-work-area.luckysheet-noselected-text {\n display: none;\n}\n.sheet_table_top {\n height: 50px;\n background: #f2f2f2;\n width: 100%;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 0 20px;\n border: 1px solid #d8d8d8;\n}\n.sheet_table_top .menu_item_text {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.sheet_table_footer {\n height: 50px;\n background: #f2f2f2;\n width: 100%;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 0 20px;\n border: 1px solid #d8d8d8;\n}\n.sheet_table_text {\n color: #8f8f8f;\n}\n.sheet_table_dnd_text {\n background: #f2f2f2;\n border: 1px solid #d8d8d8;\n display: inline-block;\n width: 100px;\n height: 30px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n";
|
|
1303
1436
|
styleInject(css_248z$1);
|
|
@@ -1622,7 +1755,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
1622
1755
|
checkStockNum: isCheckStockNum
|
|
1623
1756
|
})).then(function (result) {
|
|
1624
1757
|
result = result.data;
|
|
1625
|
-
if (result
|
|
1758
|
+
if (judgeIsRequestError(result)) {
|
|
1626
1759
|
message$1.error(result.msg);
|
|
1627
1760
|
return;
|
|
1628
1761
|
}
|
|
@@ -2189,7 +2322,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
2189
2322
|
data: resultData
|
|
2190
2323
|
}).then(function (result) {
|
|
2191
2324
|
result = result.data;
|
|
2192
|
-
if (result
|
|
2325
|
+
if (judgeIsRequestError(result)) {
|
|
2193
2326
|
message$1.error(result.msg);
|
|
2194
2327
|
return;
|
|
2195
2328
|
}
|
|
@@ -2621,7 +2754,9 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
2621
2754
|
_ref$extralHeaders = _ref.extralHeaders,
|
|
2622
2755
|
extralHeaders = _ref$extralHeaders === void 0 ? {} : _ref$extralHeaders,
|
|
2623
2756
|
_ref$specialBracket = _ref.specialBracket,
|
|
2624
|
-
specialBracket = _ref$specialBracket === void 0 ? false : _ref$specialBracket
|
|
2757
|
+
specialBracket = _ref$specialBracket === void 0 ? false : _ref$specialBracket,
|
|
2758
|
+
_ref$noNeedSplit = _ref.noNeedSplit,
|
|
2759
|
+
noNeedSplit = _ref$noNeedSplit === void 0 ? false : _ref$noNeedSplit;
|
|
2625
2760
|
var resultSourceKey = handleSourceName(sourceName || (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.sourceName) || 'supplierCode');
|
|
2626
2761
|
var selectMode = selectProps === null || selectProps === void 0 ? void 0 : selectProps.mode; // 设定当前选择器 为单选或者多选模式 无设定为单选模式(默认)
|
|
2627
2762
|
var initVal = value || (selectMode ? [] : null);
|
|
@@ -2899,10 +3034,9 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
2899
3034
|
axios.get("".concat(url, "?").concat(stringify(queryParams)), {
|
|
2900
3035
|
headers: _objectSpread2({}, extralHeaders)
|
|
2901
3036
|
}).then(function (result) {
|
|
2902
|
-
var _result, _result2;
|
|
2903
3037
|
setFetching(false);
|
|
2904
3038
|
result = result.data;
|
|
2905
|
-
if ((
|
|
3039
|
+
if (judgeIsRequestError(result)) {
|
|
2906
3040
|
message$1.error(result.msg);
|
|
2907
3041
|
return;
|
|
2908
3042
|
}
|
|
@@ -3287,7 +3421,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
3287
3421
|
}
|
|
3288
3422
|
};
|
|
3289
3423
|
var themeColor = {
|
|
3290
|
-
color: '#
|
|
3424
|
+
color: '#1890ff'
|
|
3291
3425
|
};
|
|
3292
3426
|
var formItem = function formItem(list) {
|
|
3293
3427
|
if (isModalVisible && (list === null || list === void 0 ? void 0 : list.length)) {
|
|
@@ -3404,9 +3538,13 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
3404
3538
|
})
|
|
3405
3539
|
}, "+ ".concat(selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.length));
|
|
3406
3540
|
};
|
|
3407
|
-
var handleSelectOptionsShowValue = function handleSelectOptionsShowValue(specialBracket, item) {
|
|
3541
|
+
var handleSelectOptionsShowValue = function handleSelectOptionsShowValue(specialBracket, noNeedSplit, item) {
|
|
3408
3542
|
var showText = Array.isArray(item.textShowText) && item.textShowText.join(' ') || item.textShowText;
|
|
3409
|
-
|
|
3543
|
+
if (noNeedSplit) {
|
|
3544
|
+
return item.text;
|
|
3545
|
+
} else {
|
|
3546
|
+
return specialBracket ? "\u3010".concat(item.textShowKey, "\u3011").concat(showText) : "".concat(item.textShowKey, " ").concat(showText);
|
|
3547
|
+
}
|
|
3410
3548
|
};
|
|
3411
3549
|
return /*#__PURE__*/React.createElement("div", {
|
|
3412
3550
|
className: 'search_select'
|
|
@@ -3477,7 +3615,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
3477
3615
|
key: item.value,
|
|
3478
3616
|
label: item.text
|
|
3479
3617
|
}, LightHeightOption({
|
|
3480
|
-
text: handleSelectOptionsShowValue(specialBracket, item),
|
|
3618
|
+
text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
|
|
3481
3619
|
filterTxt: searchValue
|
|
3482
3620
|
}));
|
|
3483
3621
|
})), needModalTable && /*#__PURE__*/React.createElement(Button, {
|
|
@@ -3590,11 +3728,11 @@ var drag = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F200
|
|
|
3590
3728
|
|
|
3591
3729
|
var fixedLeft = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2218px%22%20height%3D%2218px%22%20viewBox%3D%220%200%2018%2018%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%BC%96%E7%BB%84%209%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E6%98%9F%E6%BE%9C-%E4%B8%AA%E6%80%A7%E5%8C%96%E8%AE%BE%E7%BD%AE%26amp%3B%E9%94%81%E5%AE%9A%E5%88%97%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E5%88%97%E8%A1%A8%E6%90%9C%E7%B4%A2%E5%8C%BA%E5%8A%9F%E8%83%BD%E8%BF%AD%E4%BB%A3%EF%BC%88%E5%8F%AF%E9%94%81%E5%AE%9A%E5%88%97%E8%A1%A8%EF%BC%89%22%20transform%3D%22translate%28-1256.000000%2C%20-596.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-8%22%20transform%3D%22translate%28550.000000%2C%20291.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-8%E5%A4%87%E4%BB%BD-3%22%20transform%3D%22translate%28590.000000%2C%20294.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-9%22%20transform%3D%22translate%28125.000000%2C%2020.000000%29%20scale%281%2C%20-1%29%20translate%28-125.000000%2C%20-20.000000%29%20translate%28116.000000%2C%2011.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20stroke%3D%22%23979797%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20x%3D%220.5%22%20y%3D%220.5%22%20width%3D%2217%22%20height%3D%2217%22%3E%3C%2Frect%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M9.49980555%2C4.20269836%20L15%2C9.65415997%20L14.1747569%2C10.4721491%20L10.0757645%2C6.40841633%20L10.0757645%2C15%20L8.90867951%2C15%20L8.90906842%2C6.4246065%20L4.82524306%2C10.4721491%20L4%2C9.65493094%20L9.49980555%2C4.20269836%20Z%20M14.9824996%2C3%20L14.9824996%2C4.15644073%20L4.09333569%2C4.15644073%20L4.09333569%2C3%20L14.9824996%2C3%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%E7%BB%93%E5%90%88%22%20fill%3D%22%23999999%22%20fill-rule%3D%22nonzero%22%20transform%3D%22translate%289.500000%2C%209.000000%29%20rotate%28-180.000000%29%20translate%28-9.500000%2C%20-9.000000%29%20%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
3592
3730
|
|
|
3593
|
-
var fixedLeftActive = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2218px%22%20height%3D%2218px%22%20viewBox%3D%220%200%2018%2018%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%BC%96%E7%BB%84%209%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E6%98%9F%E6%BE%9C-%E4%B8%AA%E6%80%A7%E5%8C%96%E8%AE%BE%E7%BD%AE%26amp%3B%E9%94%81%E5%AE%9A%E5%88%97%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%94%BB%E6%9D%BF%22%20transform%3D%22translate%28-67.000000%2C%20-43.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-9%22%20transform%3D%22translate%2876.000000%2C%2052.000000%29%20scale%281%2C%20-1%29%20translate%28-76.000000%2C%20-52.000000%29%20translate%2867.000000%2C%2043.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20stroke%3D%22%23979797%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20x%3D%220.5%22%20y%3D%220.5%22%20width%3D%2217%22%20height%3D%2217%22%3E%3C%2Frect%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M9.49980555%2C4.20269836%20L15%2C9.65415997%20L14.1747569%2C10.4721491%20L10.0757645%2C6.40841633%20L10.0757645%2C15%20L8.90867951%2C15%20L8.90906842%2C6.4246065%20L4.82524306%2C10.4721491%20L4%2C9.65493094%20L9.49980555%2C4.20269836%20Z%20M14.9824996%2C3%20L14.9824996%2C4.15644073%20L4.09333569%2C4.15644073%20L4.09333569%2C3%20L14.9824996%2C3%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%E7%BB%93%E5%90%88%22%20fill%3D%22%
|
|
3731
|
+
var fixedLeftActive = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2218px%22%20height%3D%2218px%22%20viewBox%3D%220%200%2018%2018%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%BC%96%E7%BB%84%209%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E6%98%9F%E6%BE%9C-%E4%B8%AA%E6%80%A7%E5%8C%96%E8%AE%BE%E7%BD%AE%26amp%3B%E9%94%81%E5%AE%9A%E5%88%97%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%94%BB%E6%9D%BF%22%20transform%3D%22translate%28-67.000000%2C%20-43.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-9%22%20transform%3D%22translate%2876.000000%2C%2052.000000%29%20scale%281%2C%20-1%29%20translate%28-76.000000%2C%20-52.000000%29%20translate%2867.000000%2C%2043.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20stroke%3D%22%23979797%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20x%3D%220.5%22%20y%3D%220.5%22%20width%3D%2217%22%20height%3D%2217%22%3E%3C%2Frect%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M9.49980555%2C4.20269836%20L15%2C9.65415997%20L14.1747569%2C10.4721491%20L10.0757645%2C6.40841633%20L10.0757645%2C15%20L8.90867951%2C15%20L8.90906842%2C6.4246065%20L4.82524306%2C10.4721491%20L4%2C9.65493094%20L9.49980555%2C4.20269836%20Z%20M14.9824996%2C3%20L14.9824996%2C4.15644073%20L4.09333569%2C4.15644073%20L4.09333569%2C3%20L14.9824996%2C3%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%E7%BB%93%E5%90%88%22%20fill%3D%22%23005CFF%22%20fill-rule%3D%22nonzero%22%20transform%3D%22translate%289.500000%2C%209.000000%29%20rotate%28-180.000000%29%20translate%28-9.500000%2C%20-9.000000%29%20%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
3594
3732
|
|
|
3595
3733
|
var fixedRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2218px%22%20height%3D%2218px%22%20viewBox%3D%220%200%2018%2018%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%BC%96%E7%BB%84%209%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E6%98%9F%E6%BE%9C-%E4%B8%AA%E6%80%A7%E5%8C%96%E8%AE%BE%E7%BD%AE%26amp%3B%E9%94%81%E5%AE%9A%E5%88%97%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E5%88%97%E8%A1%A8%E6%90%9C%E7%B4%A2%E5%8C%BA%E5%8A%9F%E8%83%BD%E8%BF%AD%E4%BB%A3%EF%BC%88%E5%8F%AF%E9%94%81%E5%AE%9A%E5%88%97%E8%A1%A8%EF%BC%89%22%20transform%3D%22translate%28-1278.000000%2C%20-596.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-8%22%20transform%3D%22translate%28550.000000%2C%20291.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-8%E5%A4%87%E4%BB%BD-3%22%20transform%3D%22translate%28590.000000%2C%20294.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-9%22%20transform%3D%22translate%28138.000000%2C%2011.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20stroke%3D%22%23979797%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20x%3D%220.5%22%20y%3D%220.5%22%20width%3D%2217%22%20height%3D%2217%22%3E%3C%2Frect%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M9.49980555%2C4.20269836%20L15%2C9.65415997%20L14.1747569%2C10.4721491%20L10.0757645%2C6.40841633%20L10.0757645%2C15%20L8.90867951%2C15%20L8.90906842%2C6.4246065%20L4.82524306%2C10.4721491%20L4%2C9.65493094%20L9.49980555%2C4.20269836%20Z%20M14.9824996%2C3%20L14.9824996%2C4.15644073%20L4.09333569%2C4.15644073%20L4.09333569%2C3%20L14.9824996%2C3%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%E7%BB%93%E5%90%88%22%20fill%3D%22%23999999%22%20fill-rule%3D%22nonzero%22%20transform%3D%22translate%289.500000%2C%209.000000%29%20rotate%28-180.000000%29%20translate%28-9.500000%2C%20-9.000000%29%20%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
3596
3734
|
|
|
3597
|
-
var fixedRightActive = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2218px%22%20height%3D%2218px%22%20viewBox%3D%220%200%2018%2018%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%BC%96%E7%BB%84%209%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E6%98%9F%E6%BE%9C-%E4%B8%AA%E6%80%A7%E5%8C%96%E8%AE%BE%E7%BD%AE%26amp%3B%E9%94%81%E5%AE%9A%E5%88%97%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%94%BB%E6%9D%BF%22%20transform%3D%22translate%28-89.000000%2C%20-43.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-9%22%20transform%3D%22translate%2889.000000%2C%2043.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20stroke%3D%22%23979797%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20x%3D%220.5%22%20y%3D%220.5%22%20width%3D%2217%22%20height%3D%2217%22%3E%3C%2Frect%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M9.49980555%2C4.20269836%20L15%2C9.65415997%20L14.1747569%2C10.4721491%20L10.0757645%2C6.40841633%20L10.0757645%2C15%20L8.90867951%2C15%20L8.90906842%2C6.4246065%20L4.82524306%2C10.4721491%20L4%2C9.65493094%20L9.49980555%2C4.20269836%20Z%20M14.9824996%2C3%20L14.9824996%2C4.15644073%20L4.09333569%2C4.15644073%20L4.09333569%2C3%20L14.9824996%2C3%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%E7%BB%93%E5%90%88%22%20fill%3D%22%
|
|
3735
|
+
var fixedRightActive = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2218px%22%20height%3D%2218px%22%20viewBox%3D%220%200%2018%2018%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%BC%96%E7%BB%84%209%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E6%98%9F%E6%BE%9C-%E4%B8%AA%E6%80%A7%E5%8C%96%E8%AE%BE%E7%BD%AE%26amp%3B%E9%94%81%E5%AE%9A%E5%88%97%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%94%BB%E6%9D%BF%22%20transform%3D%22translate%28-89.000000%2C%20-43.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-9%22%20transform%3D%22translate%2889.000000%2C%2043.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20stroke%3D%22%23979797%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20x%3D%220.5%22%20y%3D%220.5%22%20width%3D%2217%22%20height%3D%2217%22%3E%3C%2Frect%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M9.49980555%2C4.20269836%20L15%2C9.65415997%20L14.1747569%2C10.4721491%20L10.0757645%2C6.40841633%20L10.0757645%2C15%20L8.90867951%2C15%20L8.90906842%2C6.4246065%20L4.82524306%2C10.4721491%20L4%2C9.65493094%20L9.49980555%2C4.20269836%20Z%20M14.9824996%2C3%20L14.9824996%2C4.15644073%20L4.09333569%2C4.15644073%20L4.09333569%2C3%20L14.9824996%2C3%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%E7%BB%93%E5%90%88%22%20fill%3D%22%23005CFF%22%20fill-rule%3D%22nonzero%22%20transform%3D%22translate%289.500000%2C%209.000000%29%20rotate%28-180.000000%29%20translate%28-9.500000%2C%20-9.000000%29%20%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
3598
3736
|
|
|
3599
3737
|
var css_248z$6 = ".sort_table_wrapper .sort_table {\n display: flex;\n}\n.sort_table_wrapper .sort_table .sort_table_column_wrapper {\n width: 560px;\n margin-right: 10px;\n}\n.sort_table_wrapper .sort_table .sort_table_content_wrapper {\n width: 210px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count,\n.sort_table_wrapper .sort_table .sort_table_content_count {\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count span,\n.sort_table_wrapper .sort_table .sort_table_content_count span {\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column {\n margin-top: 10px;\n width: 560px;\n height: 430px;\n overflow: auto;\n padding: 10px;\n background: #ffffff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all_empty {\n width: 538px;\n line-height: 360px;\n text-align: center;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column_special {\n margin-top: 40px;\n width: 100px;\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #848484;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper {\n width: 144px;\n margin-top: 16px;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper + .ant-checkbox-wrapper {\n margin-left: 0px;\n}\n.sort_table_wrapper .sort_table .sort_table_content {\n margin-top: 10px;\n padding-top: 10px;\n padding-bottom: 10px;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_content .ant-table-wrapper {\n padding: 0px !important;\n}\n.sort_table_wrapper .sort_table .sort_table_content .sort_table_title {\n height: 32px;\n line-height: 32px;\n padding-left: 10px;\n color: gray;\n}\n.sort_table_wrapper div.ant-modal-header {\n width: 820px;\n height: 64px;\n background: #ffffff;\n padding: 20px;\n border: 0px;\n}\n.sort_table_wrapper div.ant-modal-header div.ant-modal-title {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n line-height: 24px;\n}\n.sort_table_wrapper .ant-modal-body {\n padding: 0 20px !important;\n}\n.sort_table_wrapper .ant-modal-close-x {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-input-affix-wrapper {\n padding: 0px;\n padding-right: 10px;\n}\n.sort_table_wrapper input {\n height: 32px;\n padding: 6px 4px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-input-prefix {\n width: 24px;\n height: 24px;\n margin: 4px;\n display: flex;\n justify-content: center;\n}\n.sort_table_wrapper .ant-modal-footer {\n height: 70px;\n border: 0;\n padding: 20px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn {\n width: 80px;\n height: 34px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn span {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 14px;\n letter-spacing: 0;\n text-align: center;\n line-height: 20px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn:first-child {\n margin-right: 524px;\n}\n.sort_table_wrapper .ant-table-wrapper::-webkit-scrollbar {\n display: none;\n}\n.sort_table_wrapper .ant-table-wrapper {\n margin-top: 10px;\n height: 364px;\n overflow: scroll;\n padding-bottom: 50px;\n}\n.sort_table_wrapper .ant-table-wrapper tr {\n height: 36px;\n}\n.sort_table_wrapper .ant-table-wrapper tr td {\n width: 24px !important;\n height: 36px !important;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:first-child {\n padding-left: 10px !important;\n padding-right: 0px !important;\n width: 115px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td img {\n cursor: pointer;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:not(:first-child) {\n padding-left: 0px !important;\n padding-right: 0px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child {\n padding-left: 0px !important;\n padding-right: 3px !important;\n width: 34px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child img {\n position: relative;\n top: 1px;\n}\n.global_tab_nav_style {\n top: 2px !important;\n}\n.row-dragging {\n background: #fafafa;\n border: 1px solid #ccc;\n z-index: 10000;\n}\n.row-dragging td {\n padding: 7px 16px;\n display: none;\n}\n.row-dragging td:first-child {\n display: inline-block;\n}\n.row-dragging .drag-visible {\n visibility: visible;\n}\n";
|
|
3600
3738
|
styleInject(css_248z$6);
|
|
@@ -3632,7 +3770,9 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
3632
3770
|
onSearchSort: false
|
|
3633
3771
|
};
|
|
3634
3772
|
_this.patchUserColumnConfig = function (config) {
|
|
3635
|
-
var
|
|
3773
|
+
var _this$props = _this.props,
|
|
3774
|
+
tableCode = _this$props.tableCode,
|
|
3775
|
+
appRequestConfig = _this$props.appRequestConfig;
|
|
3636
3776
|
if (!tableCode) return;
|
|
3637
3777
|
var configvalue = config.map(function (item) {
|
|
3638
3778
|
return {
|
|
@@ -3644,16 +3784,14 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
3644
3784
|
};
|
|
3645
3785
|
});
|
|
3646
3786
|
axios({
|
|
3647
|
-
|
|
3648
|
-
url: '/api/mallops/appConfig/saveUserOrder',
|
|
3787
|
+
url: handleRequestUrl('/user', '/appConfig/saveUserOrder', appRequestConfig),
|
|
3649
3788
|
method: 'POST',
|
|
3650
3789
|
data: {
|
|
3651
3790
|
"code": tableCode,
|
|
3652
3791
|
"detail": JSON.stringify(configvalue)
|
|
3653
3792
|
}
|
|
3654
3793
|
}).then(function (res) {
|
|
3655
|
-
|
|
3656
|
-
if ((res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.status) === '0') {
|
|
3794
|
+
if (judgeIsRequestSuccess(res === null || res === void 0 ? void 0 : res.data)) {
|
|
3657
3795
|
setConfigTableColumns(configvalue, tableCode);
|
|
3658
3796
|
} else {
|
|
3659
3797
|
message$1.error('保存表头列自定义失败,请稍后尝试');
|
|
@@ -3661,10 +3799,10 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
3661
3799
|
});
|
|
3662
3800
|
};
|
|
3663
3801
|
_this.setInitValue = function (datasource) {
|
|
3664
|
-
var _this$
|
|
3665
|
-
_this$
|
|
3666
|
-
showColumns = _this$
|
|
3667
|
-
tableCode = _this$
|
|
3802
|
+
var _this$props2 = _this.props,
|
|
3803
|
+
_this$props2$showColu = _this$props2.showColumns,
|
|
3804
|
+
showColumns = _this$props2$showColu === void 0 ? [] : _this$props2$showColu,
|
|
3805
|
+
tableCode = _this$props2.tableCode;
|
|
3668
3806
|
// 获取当前列表定义数据
|
|
3669
3807
|
var columnConfig = getConfigTableColumns(tableCode);
|
|
3670
3808
|
var initialDataSourceData = columnConfig.length ? datasource.map(function (item) {
|
|
@@ -3920,9 +4058,9 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
3920
4058
|
var oldIndex = _ref.oldIndex,
|
|
3921
4059
|
newIndex = _ref.newIndex;
|
|
3922
4060
|
var sortDataSource = _this.state.sortDataSource;
|
|
3923
|
-
var _this$
|
|
3924
|
-
value = _this$
|
|
3925
|
-
setValue = _this$
|
|
4061
|
+
var _this$props3 = _this.props,
|
|
4062
|
+
value = _this$props3.value,
|
|
4063
|
+
setValue = _this$props3.setValue;
|
|
3926
4064
|
// if (sortDataSource[oldIndex]['fixed']) {
|
|
3927
4065
|
// message.warning('固定列不可移动');
|
|
3928
4066
|
// return;
|
|
@@ -4033,8 +4171,8 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
4033
4171
|
_createClass(TableColumnSetting, [{
|
|
4034
4172
|
key: "componentWillReceiveProps",
|
|
4035
4173
|
value: function componentWillReceiveProps(nextProps) {
|
|
4036
|
-
var _this$
|
|
4037
|
-
if (((_this$
|
|
4174
|
+
var _this$props4, _this$props5;
|
|
4175
|
+
if (((_this$props4 = this.props) === null || _this$props4 === void 0 ? void 0 : _this$props4.datasource) && JSON.stringify((_this$props5 = this.props) === null || _this$props5 === void 0 ? void 0 : _this$props5.datasource) != JSON.stringify(nextProps === null || nextProps === void 0 ? void 0 : nextProps.datasource)) {
|
|
4038
4176
|
this.setInitValue((nextProps === null || nextProps === void 0 ? void 0 : nextProps.datasource) || []);
|
|
4039
4177
|
}
|
|
4040
4178
|
}
|
|
@@ -4293,9 +4431,8 @@ var getSelectDataList = function getSelectDataList(record, item, selectKey) {
|
|
|
4293
4431
|
var loadSelectSource = function loadSelectSource(url, params) {
|
|
4294
4432
|
return new Promise(function (resolve, reject) {
|
|
4295
4433
|
axios.get("".concat(url, "?").concat(stringify(params))).then(function (result) {
|
|
4296
|
-
var _result, _result2;
|
|
4297
4434
|
result = result.data;
|
|
4298
|
-
if ((
|
|
4435
|
+
if (judgeIsRequestError(result)) {
|
|
4299
4436
|
message$1.error(result.msg);
|
|
4300
4437
|
resolve(result);
|
|
4301
4438
|
return;
|
|
@@ -4362,9 +4499,8 @@ var _excluded$3 = ["onResize", "width"];
|
|
|
4362
4499
|
var checkSpuMatchCode = function checkSpuMatchCode(data) {
|
|
4363
4500
|
return new Promise(function (resolve, reject) {
|
|
4364
4501
|
axios.post("/stock/rwFrontRecordSkcDetail/checkSpuMatchCode", data).then(function (result) {
|
|
4365
|
-
var _result, _result2;
|
|
4366
4502
|
result = result.data;
|
|
4367
|
-
if ((
|
|
4503
|
+
if (judgeIsRequestError(result)) {
|
|
4368
4504
|
message$1.error(result.msg);
|
|
4369
4505
|
reject(false);
|
|
4370
4506
|
return;
|
|
@@ -4891,7 +5027,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
4891
5027
|
return /*#__PURE__*/React.createElement("span", {
|
|
4892
5028
|
style: {
|
|
4893
5029
|
cursor: 'pointer',
|
|
4894
|
-
color: '#
|
|
5030
|
+
color: '#005CFF'
|
|
4895
5031
|
},
|
|
4896
5032
|
onClick: function onClick() {
|
|
4897
5033
|
deleteRecord(record);
|
|
@@ -5004,10 +5140,9 @@ var AddSelect = function AddSelect(props) {
|
|
|
5004
5140
|
currentPage: currentPage
|
|
5005
5141
|
}, otherParams), fixedParam), params);
|
|
5006
5142
|
axios.get("".concat(url, "?").concat(stringify(queryParams))).then(function (result) {
|
|
5007
|
-
var _result3, _result4;
|
|
5008
5143
|
setFetching(false);
|
|
5009
5144
|
result = result.data;
|
|
5010
|
-
if ((
|
|
5145
|
+
if (judgeIsRequestError(result)) {
|
|
5011
5146
|
message$1.error(result.msg);
|
|
5012
5147
|
return;
|
|
5013
5148
|
}
|
|
@@ -5285,7 +5420,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
5285
5420
|
}
|
|
5286
5421
|
};
|
|
5287
5422
|
var themeColor = {
|
|
5288
|
-
color: '#
|
|
5423
|
+
color: '#005CFF'
|
|
5289
5424
|
};
|
|
5290
5425
|
var formItem = function formItem(list) {
|
|
5291
5426
|
if (isModalVisible && (list === null || list === void 0 ? void 0 : list.length)) {
|
|
@@ -5479,8 +5614,8 @@ var AddSelect = function AddSelect(props) {
|
|
|
5479
5614
|
}, "\u53D6\u6D88"), /*#__PURE__*/React.createElement(Button, {
|
|
5480
5615
|
key: "save-and-continue",
|
|
5481
5616
|
style: {
|
|
5482
|
-
color: '#
|
|
5483
|
-
borderColor: '#
|
|
5617
|
+
color: '#005CFF',
|
|
5618
|
+
borderColor: '#005CFF'
|
|
5484
5619
|
},
|
|
5485
5620
|
onClick: function onClick() {
|
|
5486
5621
|
handleOk(true);
|
|
@@ -5687,7 +5822,7 @@ var InputElement = function InputElement(_ref) {
|
|
|
5687
5822
|
var data = _ref2.data,
|
|
5688
5823
|
status = _ref2.status;
|
|
5689
5824
|
if (status === 200) {
|
|
5690
|
-
if (data
|
|
5825
|
+
if (judgeIsRequestSuccess(data)) {
|
|
5691
5826
|
var resultData = data.data.items.map(function (item, index) {
|
|
5692
5827
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
5693
5828
|
index: index
|
|
@@ -5730,7 +5865,7 @@ var InputElement = function InputElement(_ref) {
|
|
|
5730
5865
|
var _tableRef$current;
|
|
5731
5866
|
var dom = tableRef === null || tableRef === void 0 ? void 0 : (_tableRef$current = tableRef.current) === null || _tableRef$current === void 0 ? void 0 : _tableRef$current.getElementsByTagName('tbody')[0].getElementsByTagName('tr')[0];
|
|
5732
5867
|
if (dom) {
|
|
5733
|
-
dom.style.background = '#
|
|
5868
|
+
dom.style.background = '#005CFF30';
|
|
5734
5869
|
}
|
|
5735
5870
|
}
|
|
5736
5871
|
}, [hoverVisibled, tableRef === null || tableRef === void 0 ? void 0 : tableRef.current]);
|
|
@@ -5780,7 +5915,7 @@ var InputElement = function InputElement(_ref) {
|
|
|
5780
5915
|
if (dom) {
|
|
5781
5916
|
tableRef.current.getElementsByTagName('tbody')[0].getElementsByTagName('tr')[currentIndex].style.background = '';
|
|
5782
5917
|
setSelectIndex(currentIndex + 1);
|
|
5783
|
-
dom.style.background = '#
|
|
5918
|
+
dom.style.background = '#005CFF30';
|
|
5784
5919
|
dom.scrollIntoViewIfNeeded(false);
|
|
5785
5920
|
}
|
|
5786
5921
|
} else if (e.keyCode === 38) {
|
|
@@ -5788,7 +5923,7 @@ var InputElement = function InputElement(_ref) {
|
|
|
5788
5923
|
if (_dom) {
|
|
5789
5924
|
tableRef.current.getElementsByTagName('tbody')[0].getElementsByTagName('tr')[currentIndex].style.background = '';
|
|
5790
5925
|
setSelectIndex(currentIndex - 1);
|
|
5791
|
-
_dom.style.background = '#
|
|
5926
|
+
_dom.style.background = '#005CFF30';
|
|
5792
5927
|
_dom.scrollIntoViewIfNeeded(false);
|
|
5793
5928
|
}
|
|
5794
5929
|
}
|
|
@@ -5801,7 +5936,7 @@ var InputElement = function InputElement(_ref) {
|
|
|
5801
5936
|
// body: {
|
|
5802
5937
|
// cell: ({index, record, ...props}) => {
|
|
5803
5938
|
// debugger
|
|
5804
|
-
// return <td {...props} style={selectIndex === record?.index ? {background: '#
|
|
5939
|
+
// return <td {...props} style={selectIndex === record?.index ? {background: '#005CFF30'} : {} } />
|
|
5805
5940
|
// }
|
|
5806
5941
|
// }
|
|
5807
5942
|
// }
|
|
@@ -5814,7 +5949,7 @@ var InputElement = function InputElement(_ref) {
|
|
|
5814
5949
|
_toConsumableArray(tableRef.current.getElementsByTagName('tbody')[0].getElementsByTagName('tr')).map(function (item) {
|
|
5815
5950
|
item.style.background = '';
|
|
5816
5951
|
});
|
|
5817
|
-
dom.style.background = '#
|
|
5952
|
+
dom.style.background = '#005CFF30';
|
|
5818
5953
|
dom.scrollIntoViewIfNeeded(false);
|
|
5819
5954
|
}
|
|
5820
5955
|
setSelectIndex(index);
|
|
@@ -6321,7 +6456,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
6321
6456
|
return /*#__PURE__*/React.createElement("span", {
|
|
6322
6457
|
style: {
|
|
6323
6458
|
cursor: 'pointer',
|
|
6324
|
-
color: '#
|
|
6459
|
+
color: '#005CFF'
|
|
6325
6460
|
},
|
|
6326
6461
|
onClick: function onClick() {
|
|
6327
6462
|
deleteRecord(record);
|
|
@@ -6378,7 +6513,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
6378
6513
|
checkStockNum: isCheckStockNum
|
|
6379
6514
|
})).then(function (result) {
|
|
6380
6515
|
result = result.data;
|
|
6381
|
-
if (result
|
|
6516
|
+
if (judgeIsRequestError(result)) {
|
|
6382
6517
|
message$1.error(result.msg);
|
|
6383
6518
|
return {
|
|
6384
6519
|
flag: false
|
|
@@ -6662,9 +6797,8 @@ var getDictionaryTextByValue = function getDictionaryTextByValue(dicCode, value)
|
|
|
6662
6797
|
var loadSelectSource$1 = function loadSelectSource(url, params) {
|
|
6663
6798
|
return new Promise(function (resolve, reject) {
|
|
6664
6799
|
axios.get("".concat(url, "?").concat(stringify(params))).then(function (result) {
|
|
6665
|
-
var _result, _result2;
|
|
6666
6800
|
result = result.data;
|
|
6667
|
-
if ((
|
|
6801
|
+
if (judgeIsRequestError(result)) {
|
|
6668
6802
|
message$1.error(result.msg);
|
|
6669
6803
|
return;
|
|
6670
6804
|
}
|
|
@@ -6699,6 +6833,7 @@ var handleDefaultPrefixUrl = function handleDefaultPrefixUrl(type) {
|
|
|
6699
6833
|
case 'purchaseOrg':
|
|
6700
6834
|
case 'salesOrg':
|
|
6701
6835
|
case 'employee2':
|
|
6836
|
+
case 'role':
|
|
6702
6837
|
result = '/user';
|
|
6703
6838
|
break;
|
|
6704
6839
|
case 'deliveryMode':
|
|
@@ -8654,6 +8789,84 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
8654
8789
|
}]
|
|
8655
8790
|
}, modalTableBusProps);
|
|
8656
8791
|
}
|
|
8792
|
+
// 角色选择器
|
|
8793
|
+
if (type === 'role') {
|
|
8794
|
+
requestConfig = _objectSpread2({
|
|
8795
|
+
url: "".concat(prefixUrl.selectPrefix, "/role"),
|
|
8796
|
+
filter: 'qp-name,code-orGroup,like',
|
|
8797
|
+
mappingTextField: 'name',
|
|
8798
|
+
mappingTextShowKeyField: 'code',
|
|
8799
|
+
mappingValueField: 'code',
|
|
8800
|
+
otherParams: {
|
|
8801
|
+
'qp-status-eq': 10,
|
|
8802
|
+
sorter: 'desc-id'
|
|
8803
|
+
},
|
|
8804
|
+
sourceName: 'roleCode'
|
|
8805
|
+
}, requestConfigProp);
|
|
8806
|
+
tableSearchForm = [{
|
|
8807
|
+
name: 'qp-name-like',
|
|
8808
|
+
label: '角色名称'
|
|
8809
|
+
}, {
|
|
8810
|
+
name: 'qp-code-like',
|
|
8811
|
+
label: '角色编码'
|
|
8812
|
+
}, {
|
|
8813
|
+
name: 'qp-categoryCode-eq',
|
|
8814
|
+
type: 'select',
|
|
8815
|
+
label: '角色分类',
|
|
8816
|
+
field: {
|
|
8817
|
+
type: 'select',
|
|
8818
|
+
props: {
|
|
8819
|
+
notFoundContent: '暂无数据',
|
|
8820
|
+
allowClear: true,
|
|
8821
|
+
showSearch: true,
|
|
8822
|
+
showArrow: true,
|
|
8823
|
+
maxTagCount: 1,
|
|
8824
|
+
optionFilterProp: 'children',
|
|
8825
|
+
filterOption: function filterOption(input, option) {
|
|
8826
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
8827
|
+
}
|
|
8828
|
+
}
|
|
8829
|
+
}
|
|
8830
|
+
}];
|
|
8831
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
|
|
8832
|
+
pageSize: 5000,
|
|
8833
|
+
currentPage: 1
|
|
8834
|
+
})]).then(function (x) {
|
|
8835
|
+
formatSource(x, 0, 2, tableSearchForm);
|
|
8836
|
+
});
|
|
8837
|
+
modalTableProps = _objectSpread2({
|
|
8838
|
+
modalTableTitle: '选择角色',
|
|
8839
|
+
tableSearchForm: tableSearchForm,
|
|
8840
|
+
tableColumns: [{
|
|
8841
|
+
title: '角色编码',
|
|
8842
|
+
dataIndex: 'code'
|
|
8843
|
+
}, {
|
|
8844
|
+
title: '角色名称',
|
|
8845
|
+
dataIndex: 'name',
|
|
8846
|
+
render: function render(text) {
|
|
8847
|
+
return handleTextOverflow(text);
|
|
8848
|
+
}
|
|
8849
|
+
}, {
|
|
8850
|
+
title: '角色分类',
|
|
8851
|
+
dataIndex: 'categoryName',
|
|
8852
|
+
render: function render(text) {
|
|
8853
|
+
return handleTextOverflow(text);
|
|
8854
|
+
}
|
|
8855
|
+
}, {
|
|
8856
|
+
dataIndex: 'remark',
|
|
8857
|
+
title: '角色描述',
|
|
8858
|
+
render: function render(text) {
|
|
8859
|
+
return handleTextOverflow(text);
|
|
8860
|
+
}
|
|
8861
|
+
}, {
|
|
8862
|
+
dataIndex: 'applicationName',
|
|
8863
|
+
title: '应用',
|
|
8864
|
+
render: function render(text) {
|
|
8865
|
+
return handleTextOverflow(text);
|
|
8866
|
+
}
|
|
8867
|
+
}]
|
|
8868
|
+
}, modalTableBusProps);
|
|
8869
|
+
}
|
|
8657
8870
|
return {
|
|
8658
8871
|
modalTableProps: modalTableProps,
|
|
8659
8872
|
requestConfig: requestConfig,
|
|
@@ -9168,9 +9381,8 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
|
|
|
9168
9381
|
useEffect(function () {
|
|
9169
9382
|
// type: 1 尺码组; 2 配码组
|
|
9170
9383
|
axios.get("/items/itemPropertyValueGroup/listNoPage?qp-type-eq=2&qp-status-eq=1").then(function (result) {
|
|
9171
|
-
var _result, _result2;
|
|
9172
9384
|
result = result.data;
|
|
9173
|
-
if ((
|
|
9385
|
+
if (judgeIsRequestError(result)) {
|
|
9174
9386
|
message$1.error(result.msg);
|
|
9175
9387
|
return;
|
|
9176
9388
|
}
|
|
@@ -9489,9 +9701,8 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
9489
9701
|
if (parProps === null || parProps === void 0 ? void 0 : parProps.isSingleColor) {
|
|
9490
9702
|
// type: 1 尺码组; 2 配码组
|
|
9491
9703
|
axios.get("/items/itemPropertyValueGroup/listNoPage?qp-type-eq=2&qp-status-eq=1").then(function (result) {
|
|
9492
|
-
var _result3, _result4;
|
|
9493
9704
|
result = result.data;
|
|
9494
|
-
if ((
|
|
9705
|
+
if (judgeIsRequestError(result)) {
|
|
9495
9706
|
message$1.error(result.msg);
|
|
9496
9707
|
return;
|
|
9497
9708
|
}
|
|
@@ -9962,9 +10173,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
9962
10173
|
_remoteSource$resKeyV = remoteSource.resKeyValue,
|
|
9963
10174
|
resKeyValue = _remoteSource$resKeyV === void 0 ? ['id', 'name'] : _remoteSource$resKeyV,
|
|
9964
10175
|
_remoteSource$initial = remoteSource.initialParams,
|
|
9965
|
-
initialParams = _remoteSource$initial === void 0 ? {} : _remoteSource$initial
|
|
10176
|
+
initialParams = _remoteSource$initial === void 0 ? {} : _remoteSource$initial,
|
|
10177
|
+
_remoteSource$treeChi = remoteSource.treeChildrenRoom,
|
|
10178
|
+
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi;
|
|
9966
10179
|
var mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
9967
|
-
var haveChildren = Array.isArray(treeDataItem
|
|
10180
|
+
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
9968
10181
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
9969
10182
|
return {
|
|
9970
10183
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -9974,7 +10187,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
9974
10187
|
data: _objectSpread2({}, treeDataItem),
|
|
9975
10188
|
isLeaf: !haveChildren,
|
|
9976
10189
|
disabled: isDisabled(haveChildren, isRoot),
|
|
9977
|
-
children: haveChildren ? treeDataItem.
|
|
10190
|
+
children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
|
|
9978
10191
|
return mapSearchTree(i);
|
|
9979
10192
|
}) : []
|
|
9980
10193
|
};
|
|
@@ -10001,7 +10214,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
10001
10214
|
while (1) switch (_context.prev = _context.next) {
|
|
10002
10215
|
case 0:
|
|
10003
10216
|
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
10004
|
-
if (!(resData
|
|
10217
|
+
if (!judgeIsRequestSuccess(resData)) {
|
|
10005
10218
|
_context.next = 13;
|
|
10006
10219
|
break;
|
|
10007
10220
|
}
|
|
@@ -10062,8 +10275,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
10062
10275
|
var parallelData = function parallelData(data, result) {
|
|
10063
10276
|
data.forEach(function (i) {
|
|
10064
10277
|
result.push(i);
|
|
10065
|
-
if (i
|
|
10066
|
-
parallelData(i
|
|
10278
|
+
if (i[treeChildrenRoom]) {
|
|
10279
|
+
parallelData(i[treeChildrenRoom], result);
|
|
10067
10280
|
}
|
|
10068
10281
|
});
|
|
10069
10282
|
return result;
|
|
@@ -10181,20 +10394,20 @@ var handleDefaultProps = function handleDefaultProps(type, otherRequestConfig) {
|
|
|
10181
10394
|
result = {
|
|
10182
10395
|
treeCheckable: true,
|
|
10183
10396
|
isChoose: true,
|
|
10184
|
-
remoteSource: {
|
|
10397
|
+
remoteSource: _objectSpread2({
|
|
10185
10398
|
url: "/user/orgViewNode/common/getTreeForOrgViewAndTenant",
|
|
10186
10399
|
headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
|
|
10187
10400
|
initialParams: {
|
|
10188
10401
|
'orgViewCode': 'administrative-organization-view'
|
|
10189
10402
|
},
|
|
10190
10403
|
resKeyValue: ['code', 'name']
|
|
10191
|
-
}
|
|
10404
|
+
}, otherRequestConfig)
|
|
10192
10405
|
};
|
|
10193
10406
|
break;
|
|
10194
10407
|
case 'sales-organization':
|
|
10195
10408
|
result = {
|
|
10196
10409
|
isChoose: true,
|
|
10197
|
-
remoteSource: {
|
|
10410
|
+
remoteSource: _objectSpread2({
|
|
10198
10411
|
url: "/user/orgViewNode/common/getTreeForOrgViewAndTenant",
|
|
10199
10412
|
headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
|
|
10200
10413
|
initialParams: {
|
|
@@ -10202,13 +10415,13 @@ var handleDefaultProps = function handleDefaultProps(type, otherRequestConfig) {
|
|
|
10202
10415
|
'qp-status-eq': 10
|
|
10203
10416
|
},
|
|
10204
10417
|
resKeyValue: ['code', 'name']
|
|
10205
|
-
}
|
|
10418
|
+
}, otherRequestConfig)
|
|
10206
10419
|
};
|
|
10207
10420
|
break;
|
|
10208
10421
|
case 'purchase-organization':
|
|
10209
10422
|
result = {
|
|
10210
10423
|
isChoose: true,
|
|
10211
|
-
remoteSource: {
|
|
10424
|
+
remoteSource: _objectSpread2({
|
|
10212
10425
|
url: "/user/orgViewNode/common/getTreeForOrgViewAndTenant",
|
|
10213
10426
|
headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
|
|
10214
10427
|
initialParams: {
|
|
@@ -10216,13 +10429,13 @@ var handleDefaultProps = function handleDefaultProps(type, otherRequestConfig) {
|
|
|
10216
10429
|
'qp-status-eq': 10
|
|
10217
10430
|
},
|
|
10218
10431
|
resKeyValue: ['code', 'name']
|
|
10219
|
-
}
|
|
10432
|
+
}, otherRequestConfig)
|
|
10220
10433
|
};
|
|
10221
10434
|
break;
|
|
10222
10435
|
case 'stock-organization':
|
|
10223
10436
|
result = {
|
|
10224
10437
|
isChoose: true,
|
|
10225
|
-
remoteSource: {
|
|
10438
|
+
remoteSource: _objectSpread2({
|
|
10226
10439
|
url: "/user/orgViewNode/common/getTreeForOrgViewAndTenant",
|
|
10227
10440
|
headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
|
|
10228
10441
|
initialParams: {
|
|
@@ -10230,31 +10443,55 @@ var handleDefaultProps = function handleDefaultProps(type, otherRequestConfig) {
|
|
|
10230
10443
|
'qp-status-eq': 10
|
|
10231
10444
|
},
|
|
10232
10445
|
resKeyValue: ['code', 'name']
|
|
10233
|
-
}
|
|
10446
|
+
}, otherRequestConfig)
|
|
10447
|
+
};
|
|
10448
|
+
break;
|
|
10449
|
+
case 'settle-organization':
|
|
10450
|
+
result = {
|
|
10451
|
+
isChoose: true,
|
|
10452
|
+
remoteSource: _objectSpread2({
|
|
10453
|
+
url: "/user/orgViewNode/common/getTreeForOrgViewAndTenant",
|
|
10454
|
+
headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
|
|
10455
|
+
initialParams: {
|
|
10456
|
+
'orgViewCode': 'settlement-organizational-view',
|
|
10457
|
+
'qp-status-eq': 10
|
|
10458
|
+
},
|
|
10459
|
+
resKeyValue: ['code', 'name']
|
|
10460
|
+
}, otherRequestConfig)
|
|
10234
10461
|
};
|
|
10235
10462
|
break;
|
|
10236
10463
|
case 'market-area':
|
|
10237
10464
|
result = {
|
|
10238
10465
|
isChoose: true,
|
|
10239
|
-
remoteSource: {
|
|
10466
|
+
remoteSource: _objectSpread2({
|
|
10240
10467
|
url: "/channel-manage/tagNode/getTree/10",
|
|
10241
10468
|
headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
|
|
10242
10469
|
resKeyValue: ['code', 'name']
|
|
10243
|
-
}
|
|
10470
|
+
}, otherRequestConfig)
|
|
10471
|
+
};
|
|
10472
|
+
break;
|
|
10473
|
+
case 'market-channel':
|
|
10474
|
+
result = {
|
|
10475
|
+
isChoose: true,
|
|
10476
|
+
remoteSource: _objectSpread2({
|
|
10477
|
+
url: "/channel-manage/channelInfo/tree",
|
|
10478
|
+
headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
|
|
10479
|
+
resKeyValue: ['code', 'name']
|
|
10480
|
+
}, otherRequestConfig)
|
|
10244
10481
|
};
|
|
10245
10482
|
break;
|
|
10246
10483
|
default:
|
|
10247
10484
|
result = {
|
|
10248
10485
|
treeCheckable: true,
|
|
10249
10486
|
isChoose: true,
|
|
10250
|
-
remoteSource: {
|
|
10487
|
+
remoteSource: _objectSpread2({
|
|
10251
10488
|
url: "/user/orgViewNode/common/getTreeForOrgViewAndTenant",
|
|
10252
10489
|
headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
|
|
10253
10490
|
initialParams: {
|
|
10254
10491
|
'orgViewCode': 'administrative-organization-view'
|
|
10255
10492
|
},
|
|
10256
10493
|
resKeyValue: ['code', 'name']
|
|
10257
|
-
}
|
|
10494
|
+
}, otherRequestConfig)
|
|
10258
10495
|
};
|
|
10259
10496
|
break;
|
|
10260
10497
|
}
|
|
@@ -10280,7 +10517,7 @@ var BusinessTreeSearchSelect$1 = /*#__PURE__*/React.memo(BusinessTreeSearchSelec
|
|
|
10280
10517
|
return true;
|
|
10281
10518
|
});
|
|
10282
10519
|
|
|
10283
|
-
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: #
|
|
10520
|
+
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";
|
|
10284
10521
|
styleInject(css_248z$8);
|
|
10285
10522
|
|
|
10286
10523
|
var index$3 = (function (props) {
|
|
@@ -10323,7 +10560,7 @@ var label_icon_bottom = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20en
|
|
|
10323
10560
|
|
|
10324
10561
|
var arrow_top = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAuBJREFUaEPtl0urjlEUx3/HXUkpErkkJAYoGbhkJB2SW2IgBibKVL6Cz2BgQMqAXCKXiHIGBhiIDJEJyjXlfu2vtWp36nj2fvZ+HG/tXW/n7bz7Wft/WXut9fTR46uvx/FTCQy3g9WB6kCmAjWFMgXMfrw6kC1hZoDqQKaA2Y//Cwd0xq9spEME6JLACOCnnRt+L8qlKwIOeDT8GRi/Ap2Q6ILASOAHsAo4DEwGDgAnAP+tmAulCTjANcBpA6/812e3kRgFfC/FoCQBByblzxl4Tx399hnYA5wq6UQpAq78ClN+mqWR/q+llNL3T8BO4AJQxIkSBBz8cgM2FfgCjAXOAC+A/cA3QJf6vZG4UoJELgEHvww4C8wMgF40oB+BI8Bey30p/xbYDtzITaccAg5+CXAJmB4oL3UF8IMBVD84DuwK9rwCNgO3cki0JeDgF9uFnRMof83AK1VU+7VEYBxwDNgR7H0GbAVutyXRhoCDXwhcBmYHql4HtlmeD+7EKqW6A6pCm4JnRGI9cL8NiVQCDn6RKT/fuuwY4CawBXg3BBAnNAE4aaD9Yj+ydHqYSiKFgIOfByjH5wYqDlgqvGkYGZzERCu3a4MYIrEOeJxCIpaAT5RSXE1KDqhJSXldQqXE68iDXYhJwHlgdRDrgTnxxGaoxik2hoCrNgu4CiwIVBN4pc3LxGHNY04xQVYGMXUX+oHnMTFjCPjYouoiyzUSqKLcBTYY+DZd1Z1Q41NKLg1iq4dsjJmXmgh46owHngJSTOuOKa8KkjMmh+4qndRTtHSXZtjo8dcXoiYCCuYB1IQOAfeAfTYitFF+sLDuhMrxUXPioHXvxre5GALhgarjGszUmBqDx6SA7fFYEkSENEtFrRQCfoj+6uOvi1EHRWxyLKo80eKkEIjAUGRLNHjP7yKnDleQ/9GBJC0qgSS5OthcHehA1KSQ1YEkuTrYXB3oQNSkkNWBJLk62NzzDvwGGnWoMahVpG4AAAAASUVORK5CYII=";
|
|
10325
10562
|
|
|
10326
|
-
var css_248z$9 = ".form-guide {\n cursor: pointer;\n position: fixed;\n right: 5px;\n color: #B1BAD4;\n padding: 5px 0;\n width: 48px;\n z-index: 10;\n top: 50%;\n transform: translateY(-50%);\n background-color: #
|
|
10563
|
+
var css_248z$9 = ".form-guide {\n cursor: pointer;\n position: fixed;\n right: 5px;\n color: #B1BAD4;\n padding: 5px 0;\n width: 48px;\n z-index: 10;\n top: 50%;\n transform: translateY(-50%);\n background-color: #141620;\n border-radius: 5px;\n}\n.form-guide .form-guide-top {\n padding: 0px 10px;\n display: flex;\n justify-content: center;\n}\n.form-guide .form-guide-center {\n border-top: 1px solid #6E7588;\n border-bottom: 1px solid #6E7588;\n padding: 0px 10px;\n}\n.form-guide .form-guide-item {\n width: 28px;\n padding: 5px 0;\n display: block;\n word-break: break-all;\n color: #B1BAD4;\n font-size: 14px;\n line-height: 16px;\n position: relative;\n}\n.form-guide .form-guide-item::after {\n content: '';\n display: block;\n width: 15px;\n height: 1px;\n background-color: #6E7588;\n position: absolute;\n bottom: 0px;\n left: 7px;\n}\n.form-guide .form-guide-bottom {\n padding: 5px 10px;\n display: flex;\n justify-content: center;\n}\n.form-guide .form-guide-item:last-child::after {\n content: '';\n display: none;\n width: 15px;\n height: 1px;\n background-color: #6E7588;\n position: absolute;\n bottom: 0px;\n left: 7px;\n}\n.white-card.bitsun-form-card-class .ant-card-body {\n background-color: #FFFFFF;\n padding: 0px;\n}\n.bitsun-form-card-class > .ant-card-body {\n margin-bottom: 10px;\n}\n.bitsun-form-card-class .ant-card-head {\n border: 0px;\n padding: 0px;\n height: 48px;\n}\n.bitsun-form-card-class .ant-card-body {\n padding: 12px 0 0;\n margin-top: -4px;\n background-color: #F3F3F3;\n}\n.bitsun-form-card-class .ant-card-head-title {\n display: flex;\n align-items: center;\n font-size: 16px;\n color: #000000;\n font-weight: 600;\n font-family: PingFangSC;\n background-color: #FFFFFF;\n padding: 8px 0;\n margin: 0px;\n}\n.bitsun-form-card-class .ant-card-head-title .title-left-line {\n display: inline-block;\n width: 4px;\n height: 100%;\n background-color: #005CFF;\n height: 20px;\n margin-right: 16px;\n}\n.field-group-hidden .ant-card-body {\n display: none !important;\n}\n";
|
|
10327
10564
|
styleInject(css_248z$9);
|
|
10328
10565
|
|
|
10329
10566
|
var _excluded$6 = ["children"],
|
|
@@ -10451,7 +10688,7 @@ var ExportIcon = function ExportIcon(_ref) {
|
|
|
10451
10688
|
data: requestData
|
|
10452
10689
|
}, others)).then(function (result) {
|
|
10453
10690
|
result = result.data;
|
|
10454
|
-
if (result
|
|
10691
|
+
if (judgeIsRequestError(result)) {
|
|
10455
10692
|
var _result;
|
|
10456
10693
|
message$1.error((_result = result) === null || _result === void 0 ? void 0 : _result.msg);
|
|
10457
10694
|
return;
|
|
@@ -10498,7 +10735,9 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
10498
10735
|
onSearchSort: false
|
|
10499
10736
|
};
|
|
10500
10737
|
_this.patchUserColumnConfig = function (config) {
|
|
10501
|
-
var
|
|
10738
|
+
var _this$props = _this.props,
|
|
10739
|
+
tableCode = _this$props.tableCode,
|
|
10740
|
+
appRequestConfig = _this$props.appRequestConfig;
|
|
10502
10741
|
if (!tableCode) return;
|
|
10503
10742
|
var configvalue = config.map(function (item) {
|
|
10504
10743
|
return {
|
|
@@ -10510,16 +10749,14 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
10510
10749
|
};
|
|
10511
10750
|
});
|
|
10512
10751
|
axios({
|
|
10513
|
-
|
|
10514
|
-
url: '/api/mallops/appConfig/saveUserOrder',
|
|
10752
|
+
url: handleRequestUrl('/user', '/appConfig/saveUserOrder', appRequestConfig),
|
|
10515
10753
|
method: 'POST',
|
|
10516
10754
|
data: {
|
|
10517
10755
|
"code": tableCode,
|
|
10518
10756
|
"detail": JSON.stringify(configvalue)
|
|
10519
10757
|
}
|
|
10520
10758
|
}).then(function (res) {
|
|
10521
|
-
|
|
10522
|
-
if ((res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.status) === '0') {
|
|
10759
|
+
if (judgeIsRequestSuccess(res === null || res === void 0 ? void 0 : res.data)) {
|
|
10523
10760
|
_this.patchConfigToLocalstorage(configvalue, tableCode);
|
|
10524
10761
|
} else {
|
|
10525
10762
|
message$1.error('保存表头列自定义失败,请稍后尝试');
|
|
@@ -10800,9 +11037,9 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
10800
11037
|
var oldIndex = _ref.oldIndex,
|
|
10801
11038
|
newIndex = _ref.newIndex;
|
|
10802
11039
|
var sortDataSource = _this.state.sortDataSource;
|
|
10803
|
-
var _this$
|
|
10804
|
-
value = _this$
|
|
10805
|
-
setValue = _this$
|
|
11040
|
+
var _this$props2 = _this.props,
|
|
11041
|
+
value = _this$props2.value,
|
|
11042
|
+
setValue = _this$props2.setValue;
|
|
10806
11043
|
// if (sortDataSource[oldIndex]['fixed']) {
|
|
10807
11044
|
// message.warning('固定列不可移动');
|
|
10808
11045
|
// return;
|
|
@@ -10926,8 +11163,8 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
10926
11163
|
_createClass(SortableTable, [{
|
|
10927
11164
|
key: "componentWillReceiveProps",
|
|
10928
11165
|
value: function componentWillReceiveProps(nextProps) {
|
|
10929
|
-
var _this$
|
|
10930
|
-
if (((_this$
|
|
11166
|
+
var _this$props3, _this$props4;
|
|
11167
|
+
if (((_this$props3 = this.props) === null || _this$props3 === void 0 ? void 0 : _this$props3.datasource) && JSON.stringify((_this$props4 = this.props) === null || _this$props4 === void 0 ? void 0 : _this$props4.datasource) != JSON.stringify(nextProps === null || nextProps === void 0 ? void 0 : nextProps.datasource)) {
|
|
10931
11168
|
this.setInitValue((nextProps === null || nextProps === void 0 ? void 0 : nextProps.datasource) || []);
|
|
10932
11169
|
}
|
|
10933
11170
|
}
|
|
@@ -11101,7 +11338,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
11101
11338
|
}(React.Component);
|
|
11102
11339
|
|
|
11103
11340
|
var _excluded$8 = ["onResize", "width"],
|
|
11104
|
-
_excluded2$3 = ["style", "columns", "tableCode", "summary", "dynamicColumns", "scroll"];
|
|
11341
|
+
_excluded2$3 = ["style", "columns", "tableCode", "appRequestConfig", "summary", "dynamicColumns", "scroll"];
|
|
11105
11342
|
var Text = Typography.Text;
|
|
11106
11343
|
var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
11107
11344
|
_inherits(ColumnSettingSulaTable, _React$Component);
|
|
@@ -11265,6 +11502,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
11265
11502
|
style = _this$props3$style === void 0 ? null : _this$props3$style,
|
|
11266
11503
|
columns = _this$props3.columns,
|
|
11267
11504
|
tableCode = _this$props3.tableCode,
|
|
11505
|
+
appRequestConfig = _this$props3.appRequestConfig,
|
|
11268
11506
|
_this$props3$summary = _this$props3.summary,
|
|
11269
11507
|
summary = _this$props3$summary === void 0 ? undefined : _this$props3$summary,
|
|
11270
11508
|
_this$props3$dynamicC = _this$props3.dynamicColumns,
|
|
@@ -11329,7 +11567,8 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
11329
11567
|
setShowColumns: this.setShowColumns,
|
|
11330
11568
|
showColumns: this.state.showColumns,
|
|
11331
11569
|
datasource: columns || [],
|
|
11332
|
-
tableCode: tableCode
|
|
11570
|
+
tableCode: tableCode,
|
|
11571
|
+
appRequestConfig: appRequestConfig
|
|
11333
11572
|
}))), /*#__PURE__*/React.createElement(Table$1, _objectSpread2({
|
|
11334
11573
|
ref: this.sulaTableRef,
|
|
11335
11574
|
style: style,
|
|
@@ -11346,7 +11585,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
11346
11585
|
}(React.Component);
|
|
11347
11586
|
|
|
11348
11587
|
var _excluded$9 = ["onResize", "width"],
|
|
11349
|
-
_excluded2$4 = ["columns", "tableCode", "summary", "dynamicColumns", "scroll"];
|
|
11588
|
+
_excluded2$4 = ["columns", "tableCode", "appRequestConfig", "summary", "dynamicColumns", "scroll"];
|
|
11350
11589
|
var Text$1 = Typography.Text;
|
|
11351
11590
|
var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
11352
11591
|
_inherits(ColumnSettingTable, _React$Component);
|
|
@@ -11506,6 +11745,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
11506
11745
|
var _this$props3 = this.props,
|
|
11507
11746
|
columns = _this$props3.columns,
|
|
11508
11747
|
tableCode = _this$props3.tableCode,
|
|
11748
|
+
appRequestConfig = _this$props3.appRequestConfig,
|
|
11509
11749
|
_this$props3$summary = _this$props3.summary,
|
|
11510
11750
|
summary = _this$props3$summary === void 0 ? undefined : _this$props3$summary,
|
|
11511
11751
|
_this$props3$dynamicC = _this$props3.dynamicColumns,
|
|
@@ -11570,7 +11810,8 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
11570
11810
|
setShowColumns: this.setShowColumns,
|
|
11571
11811
|
showColumns: this.state.showColumns,
|
|
11572
11812
|
datasource: columns || [],
|
|
11573
|
-
tableCode: tableCode
|
|
11813
|
+
tableCode: tableCode,
|
|
11814
|
+
appRequestConfig: appRequestConfig
|
|
11574
11815
|
}))), /*#__PURE__*/React.createElement(Table, _objectSpread2({
|
|
11575
11816
|
columns: showCol,
|
|
11576
11817
|
components: {
|
|
@@ -11649,7 +11890,7 @@ var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
|
11649
11890
|
return routerMap;
|
|
11650
11891
|
};
|
|
11651
11892
|
|
|
11652
|
-
var css_248z$b = ".detail_page_head {\n height: 54px;\n display: flex;\n align-items: center;\n background-color: #FFFFFF;\n border-bottom: 1px solid #f0f0f0;\n}\n.detail_page_head .ant-breadcrumb {\n display: block !important;\n}\n.detail_page_head .ant-breadcrumb .ant-breadcrumb-separator {\n margin: 0 2px;\n}\n.detail_page_head .ant-breadcrumb li .bread_name {\n color: #8A8F8D;\n font-size: 12px;\n cursor: pointer;\n}\n.detail_page_head .ant-breadcrumb li .bread_name:hover {\n color: #000000d9;\n}\n.back_home_img_content {\n display: inline-block;\n height: 28px;\n width: 28px;\n border: 1px solid #BABABA;\n margin: 0 12px 0 20px;\n border-radius: 14px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n}\n.back_home_img_content .anticon-arrow-left {\n color: #BABABA;\n}\n.back_home_img_content:hover {\n background-color: #
|
|
11893
|
+
var css_248z$b = ".detail_page_head {\n height: 54px;\n display: flex;\n align-items: center;\n background-color: #FFFFFF;\n border-bottom: 1px solid #f0f0f0;\n}\n.detail_page_head .ant-breadcrumb {\n display: block !important;\n}\n.detail_page_head .ant-breadcrumb .ant-breadcrumb-separator {\n margin: 0 2px;\n}\n.detail_page_head .ant-breadcrumb li .bread_name {\n color: #8A8F8D;\n font-size: 12px;\n cursor: pointer;\n}\n.detail_page_head .ant-breadcrumb li .bread_name:hover {\n color: #000000d9;\n}\n.back_home_img_content {\n display: inline-block;\n height: 28px;\n width: 28px;\n border: 1px solid #BABABA;\n margin: 0 12px 0 20px;\n border-radius: 14px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n}\n.back_home_img_content .anticon-arrow-left {\n color: #BABABA;\n}\n.back_home_img_content:hover {\n background-color: #005CFF;\n border: 1px solid #005CFF;\n}\n.back_home_img_content:hover .anticon-arrow-left {\n color: #FFFFFF;\n}\n.detail_page_title_box {\n flex-grow: 1;\n}\n.detail_page_title {\n height: 20px;\n font-family: PingFangSC;\n font-weight: 600;\n font-size: 16px;\n margin-top: 2px;\n color: #000000;\n letter-spacing: 0;\n line-height: 20px;\n}\n.detail_page_btns {\n display: flex;\n gap: 8px;\n margin-right: 20px;\n}\n.detail_page_btns button {\n height: 32px !important;\n display: flex;\n align-items: center;\n gap: 2px;\n border-radius: 3px;\n padding: 0 10px;\n}\n.detail_page_btns .ant-btn-dangerous {\n background-color: #EC5246 !important;\n}\n";
|
|
11653
11894
|
styleInject(css_248z$b);
|
|
11654
11895
|
|
|
11655
11896
|
var quanping = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2234px%22%20height%3D%2234px%22%20viewBox%3D%220%200%2034%2034%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%9F%A9%E5%BD%A2%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E5%88%97%E8%A1%A8%E5%8A%9F%E8%83%BD%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E6%98%9F%E6%BE%9C-%E6%90%9C%E7%B4%A2-%E6%90%9C%E7%B4%A2%E5%8A%9F%E8%83%BD%22%20transform%3D%22translate%28-1823.000000%2C%20-297.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E6%90%9C%E7%B4%A2%E7%BB%84%E4%BB%B6-%E6%A0%B7%E5%BC%8F%E4%B8%80%22%20transform%3D%22translate%28230.000000%2C%20284.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%A1%AE%E5%AE%9A%E5%A4%87%E4%BB%BD-2%22%20transform%3D%22translate%281593.000000%2C%2013.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M5.55801813%2C1%20L28.4419819%2C1%20C30.0269041%2C1%2030.6016352%2C1.16502331%2031.181059%2C1.47490258%20C31.7604829%2C1.78478186%2032.2152181%2C2.2395171%2032.5250974%2C2.81894097%20C32.8349767%2C3.39836484%2033%2C3.97309593%2033%2C5.55801813%20L33%2C28.4419819%20C33%2C30.0269041%2032.8349767%2C30.6016352%2032.5250974%2C31.181059%20C32.2152181%2C31.7604829%2031.7604829%2C32.2152181%2031.181059%2C32.5250974%20C30.6016352%2C32.8349767%2030.0269041%2C33%2028.4419819%2C33%20L5.55801813%2C33%20C3.97309593%2C33%203.39836484%2C32.8349767%202.81894097%2C32.5250974%20C2.2395171%2C32.2152181%201.78478186%2C31.7604829%201.47490258%2C31.181059%20C1.16502331%2C30.6016352%201%2C30.0269041%201%2C28.4419819%20L1%2C5.55801813%20C1%2C3.97309593%201.16502331%2C3.39836484%201.47490258%2C2.81894097%20C1.78478186%2C2.2395171%202.2395171%2C1.78478186%202.81894097%2C1.47490258%20C3.39836484%2C1.16502331%203.97309593%2C1%205.55801813%2C1%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20stroke%3D%22%23D9D9D9%22%20stroke-width%3D%220.888888889%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22scanning%22%20transform%3D%22translate%289.000000%2C%209.000000%29%22%20fill%3D%22%23000000%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M5.21873562%2C9.69278114%20L6.28954184%2C10.7432953%20L2.532%2C14.5%20L5.24949999%2C14.5%20L5.24949999%2C16%20L1.5%2C16%20C0.671572876%2C16%200%2C15.3284271%200%2C14.5%20L0%2C11%20L1.5%2C11%20L1.5%2C13.41%20L5.21873562%2C9.69278114%20Z%20M10.7898541%2C9.72266777%20L14.499%2C13.431%20L14.5%2C11%20L16%2C11%20L16%2C14.5%20C16%2C15.3284271%2015.3284271%2C16%2014.5%2C16%20L10.7495%2C16%20L10.7495%2C14.5%20L13.446%2C14.5%20L9.71904783%2C10.7731819%20L10.7898541%2C9.72266777%20Z%20M14.5%2C0%20C15.3284271%2C0%2016%2C0.671572876%2016%2C1.5%20L16%2C5%20L14.5%2C5%20L14.499%2C2.588%20L10.779708%2C6.3074783%20L9.71904783%2C5.24681813%20L13.465%2C1.5%20L10.75%2C1.5%20L10.75%2C0%20L14.5%2C0%20Z%20M5.25000001%2C0%20L5.25000001%2C1.5%20L2.567%2C1.5%20L6.31400442%2C5.24681813%20L5.25334424%2C6.3074783%20L1.5%2C2.554%20L1.5%2C5%20L0%2C5%20L0%2C1.5%20C0%2C0.671572876%200.671572876%2C0%201.5%2C0%20L5.25000001%2C0%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
@@ -11682,7 +11923,7 @@ var CommonAlert = (function (props) {
|
|
|
11682
11923
|
className: 'common_Alert'
|
|
11683
11924
|
}, /*#__PURE__*/React.createElement(Alert, _objectSpread2({
|
|
11684
11925
|
style: {
|
|
11685
|
-
borderColor: '#
|
|
11926
|
+
borderColor: '#005CFF',
|
|
11686
11927
|
background: '#e5eeff',
|
|
11687
11928
|
borderRadius: '4px'
|
|
11688
11929
|
},
|
|
@@ -12070,6 +12311,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
12070
12311
|
bsTableCode: '' //设置table 列的标识
|
|
12071
12312
|
};
|
|
12072
12313
|
_this.patchUserColumnConfig = function (config) {
|
|
12314
|
+
var appRequestConfig = _this.props.appRequestConfig;
|
|
12073
12315
|
var that = _assertThisInitialized(_this);
|
|
12074
12316
|
var configvalue = config ? config.map(function (item) {
|
|
12075
12317
|
return {
|
|
@@ -12082,16 +12324,14 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
12082
12324
|
}) : '';
|
|
12083
12325
|
return new Promise(function (resolve, reject) {
|
|
12084
12326
|
axios({
|
|
12085
|
-
|
|
12086
|
-
url: '/api/mallops/appConfig/saveUserOrder',
|
|
12327
|
+
url: handleRequestUrl('/user', '/appConfig/saveUserOrder', appRequestConfig),
|
|
12087
12328
|
method: 'POST',
|
|
12088
12329
|
data: {
|
|
12089
12330
|
code: that.state.bsTableCode,
|
|
12090
12331
|
detail: configvalue ? JSON.stringify(configvalue) : ''
|
|
12091
12332
|
}
|
|
12092
12333
|
}).then(function (res) {
|
|
12093
|
-
|
|
12094
|
-
if ((res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.status) === '0') {
|
|
12334
|
+
if (judgeIsRequestSuccess(res === null || res === void 0 ? void 0 : res.data)) {
|
|
12095
12335
|
_this.patchConfigToLocalstorage(configvalue);
|
|
12096
12336
|
resolve({
|
|
12097
12337
|
status: '0'
|
|
@@ -12430,7 +12670,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
12430
12670
|
}))
|
|
12431
12671
|
}, function () {
|
|
12432
12672
|
_this.handleOk().then(function (res) {
|
|
12433
|
-
if (res
|
|
12673
|
+
if (judgeIsRequestSuccess(res)) {
|
|
12434
12674
|
message$1.success( /*#__PURE__*/React.createElement("span", null, "\u5B57\u6BB5\u5DF2\u9690\u85CF\uFF0C\u5982\u9700\u91CD\u65B0\u663E\u793A\u8BF7\u524D\u5F80", /*#__PURE__*/React.createElement(Typography.Link, {
|
|
12435
12675
|
underline: true,
|
|
12436
12676
|
onClick: _this.showModal
|
|
@@ -12823,6 +13063,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
12823
13063
|
bsTableCode: '' //设置table 列的标识
|
|
12824
13064
|
};
|
|
12825
13065
|
_this.patchUserSearchFieldsConfig = function (config) {
|
|
13066
|
+
var appRequestConfig = _this.props.appRequestConfig;
|
|
12826
13067
|
var that = _assertThisInitialized(_this);
|
|
12827
13068
|
var configvalue = config ? config.map(function (item) {
|
|
12828
13069
|
return {
|
|
@@ -12831,16 +13072,14 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
12831
13072
|
};
|
|
12832
13073
|
}) : '';
|
|
12833
13074
|
axios({
|
|
12834
|
-
|
|
12835
|
-
url: '/api/mallops/appConfig/saveQueryCriteria',
|
|
13075
|
+
url: handleRequestUrl('/user', '/appConfig/saveQueryCriteria', appRequestConfig),
|
|
12836
13076
|
method: 'POST',
|
|
12837
13077
|
data: {
|
|
12838
13078
|
code: that.state.bsTableCode,
|
|
12839
13079
|
detail: configvalue ? JSON.stringify(configvalue) : ''
|
|
12840
13080
|
}
|
|
12841
13081
|
}).then(function (res) {
|
|
12842
|
-
|
|
12843
|
-
if ((res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.status) === '0') {
|
|
13082
|
+
if (judgeIsRequestSuccess(res === null || res === void 0 ? void 0 : res.data)) {
|
|
12844
13083
|
_this.patchConfigToLocalstorage(configvalue);
|
|
12845
13084
|
} else {
|
|
12846
13085
|
message$1.error('保存搜索项自定义失败,请稍后尝试');
|
|
@@ -13354,7 +13593,8 @@ var BsSulaQueryTable = (function (props) {
|
|
|
13354
13593
|
setShowSearchFields = _useState14[1]; //搜索项字段
|
|
13355
13594
|
var _props$isPage = props.isPage,
|
|
13356
13595
|
pagination = props.pagination,
|
|
13357
|
-
tableCode = props.tableCode
|
|
13596
|
+
tableCode = props.tableCode,
|
|
13597
|
+
appRequestConfig = props.appRequestConfig;
|
|
13358
13598
|
var _useState15 = useState('100vh'),
|
|
13359
13599
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
13360
13600
|
height = _useState16[0],
|
|
@@ -13427,8 +13667,12 @@ var BsSulaQueryTable = (function (props) {
|
|
|
13427
13667
|
setCommonRenderFn(props.columns);
|
|
13428
13668
|
var authButton = localStorage.getItem(ENUM.BROWSER_CACHE.MAIN_AUTH_CODES) ? JSON.parse(localStorage.getItem(ENUM.BROWSER_CACHE.MAIN_AUTH_CODES)) : [];
|
|
13429
13669
|
Object.keys(resourceCodeArray).forEach(function (item) {
|
|
13670
|
+
var Item = item;
|
|
13671
|
+
if (Number(item.slice(-1)) >= 1) {
|
|
13672
|
+
Item = item.substr(0, item.length - 1);
|
|
13673
|
+
}
|
|
13430
13674
|
if (!authButton.filter(function (itemInner) {
|
|
13431
|
-
return
|
|
13675
|
+
return Item === itemInner;
|
|
13432
13676
|
}).length) {
|
|
13433
13677
|
resourceCodeArray[item].visible = false;
|
|
13434
13678
|
}
|
|
@@ -13625,7 +13869,8 @@ var BsSulaQueryTable = (function (props) {
|
|
|
13625
13869
|
setShowSearchFields: setShowSearchFields,
|
|
13626
13870
|
showSearchFields: showSearchFields,
|
|
13627
13871
|
datasource: (value === null || value === void 0 ? void 0 : value.fields) || [],
|
|
13628
|
-
bsTableCode: bsTableCode
|
|
13872
|
+
bsTableCode: bsTableCode,
|
|
13873
|
+
appRequestConfig: appRequestConfig
|
|
13629
13874
|
}))),
|
|
13630
13875
|
placement: "bottomRight"
|
|
13631
13876
|
}, /*#__PURE__*/React.createElement("span", {
|
|
@@ -13737,7 +13982,8 @@ var BsSulaQueryTable = (function (props) {
|
|
|
13737
13982
|
var memoConfig = useMemo(function () {
|
|
13738
13983
|
return _objectSpread2(_objectSpread2({}, config), {}, {
|
|
13739
13984
|
summary: props.summary,
|
|
13740
|
-
statusMapping: props.statusMapping
|
|
13985
|
+
statusMapping: props.statusMapping,
|
|
13986
|
+
appRequestConfig: props.appRequestConfig
|
|
13741
13987
|
});
|
|
13742
13988
|
}, [value, checkedList, showColumn, props.statusMapping, showSearchFields]);
|
|
13743
13989
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(MemoQueryTable, _objectSpread2({}, memoConfig)), /*#__PURE__*/React.createElement(SortableTable$1, {
|
|
@@ -13746,11 +13992,12 @@ var BsSulaQueryTable = (function (props) {
|
|
|
13746
13992
|
showColumn: showColumn,
|
|
13747
13993
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
13748
13994
|
bsTableCode: bsTableCode,
|
|
13995
|
+
appRequestConfig: appRequestConfig,
|
|
13749
13996
|
onlyModal: true
|
|
13750
13997
|
}));
|
|
13751
13998
|
});
|
|
13752
13999
|
|
|
13753
|
-
var css_248z$f = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #
|
|
14000
|
+
var css_248z$f = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #005cff;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.dark .action:hover {\n background: #252a3d;\n}\n.dark .action .opened {\n background: #252a3d;\n}\n.allFunsList {\n margin-bottom: 10px;\n}\n.isClons {\n position: relative;\n left: -8px;\n width: 30px;\n height: 36px;\n}\n.drawerWarp {\n -moz-column-count: 3;\n column-count: 3;\n}\n.allFunsListWarp {\n width: 200px;\n margin-right: 10px;\n border-radius: 4px;\n -moz-column-break-inside: avoid;\n break-inside: avoid;\n}\n.drawerWarp_p {\n color: #8c8c8c;\n font-weight: 400;\n font-size: 14px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 20px;\n text-align: left;\n}\n.searchTop {\n display: flex;\n align-items: center;\n}\n.searchTopInp {\n width: 528px;\n height: 40px;\n background: #f8f9fa;\n border: 1px solid #d9d9d9;\n border-radius: 4px;\n}\n.searchTopInp .ant-input {\n background: #f8f9fa;\n}\n.searchTopBtn {\n position: relative;\n left: -1px;\n width: 92px;\n height: 40px;\n background: #005cff;\n border-radius: 0px 4px 4px 0px;\n}\n.contentWarp {\n margin-top: 54px;\n font-size: 14px;\n font-weight: 400;\n text-align: left;\n color: #8c8c8c;\n}\n.themeColor {\n color: #005CFF;\n}\n.serachView {\n margin-top: 36px;\n margin-bottom: 32px;\n}\n.content {\n display: flex;\n flex-wrap: wrap;\n}\n.content div {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 8px 20px;\n font-size: 14px;\n font-weight: 400;\n color: #000000;\n background: #f8f9fa;\n border-radius: 100px;\n margin-right: 10px;\n margin-bottom: 10px;\n}\n.content div:hover {\n cursor: pointer;\n}\n";
|
|
13754
14001
|
styleInject(css_248z$f);
|
|
13755
14002
|
|
|
13756
14003
|
var cache = {};
|
|
@@ -13856,23 +14103,24 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
13856
14103
|
var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
13857
14104
|
var authButton = localStorage.getItem(ENUM.BROWSER_CACHE.MAIN_AUTH_CODES) ? JSON.parse(localStorage.getItem(ENUM.BROWSER_CACHE.MAIN_AUTH_CODES)) : [];
|
|
13858
14105
|
var _loop = function _loop(i) {
|
|
13859
|
-
|
|
13860
|
-
|
|
13861
|
-
|
|
13862
|
-
|
|
13863
|
-
|
|
13864
|
-
|
|
13865
|
-
|
|
13866
|
-
|
|
13867
|
-
|
|
13868
|
-
|
|
13869
|
-
|
|
13870
|
-
|
|
13871
|
-
|
|
13872
|
-
|
|
14106
|
+
if (routesData[i].hideInMenu) {
|
|
14107
|
+
routesData.splice(i, 1);
|
|
14108
|
+
return 0; // continue
|
|
14109
|
+
}
|
|
14110
|
+
if (routesData[i].code && authButton.every(function (item) {
|
|
14111
|
+
return routesData[i].code != item;
|
|
14112
|
+
})) {
|
|
14113
|
+
routesData.splice(i, 1);
|
|
14114
|
+
return 0; // continue
|
|
14115
|
+
}
|
|
14116
|
+
if (routesData[i].children) {
|
|
14117
|
+
setMenuTreeData(routesData[i].children);
|
|
14118
|
+
}
|
|
14119
|
+
},
|
|
14120
|
+
_ret;
|
|
13873
14121
|
for (var i = routesData.length - 1; i >= 0; i--) {
|
|
13874
|
-
|
|
13875
|
-
if (_ret ===
|
|
14122
|
+
_ret = _loop(i);
|
|
14123
|
+
if (_ret === 0) continue;
|
|
13876
14124
|
}
|
|
13877
14125
|
};
|
|
13878
14126
|
var setLoginOutPath = function setLoginOutPath() {
|
|
@@ -14006,7 +14254,7 @@ var AllFunc = function AllFunc(props) {
|
|
|
14006
14254
|
})))));
|
|
14007
14255
|
};
|
|
14008
14256
|
|
|
14009
|
-
var css_248z$g = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #
|
|
14257
|
+
var css_248z$g = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #1890ff;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.dark .action:hover {\n background: #252a3d;\n}\n.dark .action .opened {\n background: #252a3d;\n}\n.warp_allfunc {\n z-index: 100;\n}\n.warp_allfunc .drawerWarp {\n -moz-column-count: 4;\n column-count: 4;\n}\n.warp_allfunc .drawer_header_warp .ant-list-header {\n padding: 0 0 0 10px !important;\n line-height: 40px;\n border: 0px !important;\n}\n.warp_allfunc .drawer_header_warp .ant-list-header b {\n width: 100%;\n display: inline-block;\n border-bottom: 1px solid #f0f0f0;\n}\n.warp_allfunc .drawer_header_warp .ant-list-item {\n padding: 0 0 0 10px !important;\n line-height: 30px !important;\n}\n.warp_allfunc .drawer_header_warp .ant-drawer-close {\n position: absolute;\n right: 0;\n}\n.warp_allfunc .p {\n color: #b1bad4;\n font-weight: 400;\n font-size: 12px;\n margin-bottom: 10px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 16px;\n text-align: left;\n opacity: 0.8;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n text-align: center;\n margin-left: 8px;\n}\n.warp_allfunc .btn {\n display: flex;\n align-items: center;\n height: 44px;\n color: #b1bad4;\n background: #10234c;\n border-radius: 8px;\n width: 130px;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.warp_allfunc .btn:hover,\n.warp_allfunc .btnSpan1:hover,\n.warp_allfunc .btnSpan2:hover {\n cursor: pointer;\n color: #b1bad4;\n}\n.warp_allfunc .btnSpan1 {\n margin: 0 7px;\n}\n.allfunc_drawcontent .allFunsList {\n margin-bottom: 10px;\n}\n.allfunc_drawcontent .allFunsListWarp {\n width: 200px;\n margin-right: 10px;\n border-radius: 4px;\n -moz-column-break-inside: avoid;\n break-inside: avoid;\n}\n.allfunc_drawcontent .drawerWarp_p {\n color: #8c8c8c;\n font-weight: 400;\n font-size: 14px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 20px;\n text-align: left;\n}\n";
|
|
14010
14258
|
styleInject(css_248z$g);
|
|
14011
14259
|
|
|
14012
14260
|
var allfunc = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%220%200%2024%2024%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3Eicon%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Crect%20id%3D%22path-1%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3C%2Frect%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22%E5%85%A8%E5%B1%80%E5%AF%BC%E8%88%AA%E7%9B%B8%E5%85%B3%E5%8A%9F%E8%83%BD%E9%9C%80%E6%B1%82%E8%AE%BE%E8%AE%A1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E8%87%AA%E5%AE%9A%E4%B9%89%E5%B7%A6%E4%BE%A7%E8%8F%9C%E5%8D%95%22%20transform%3D%22translate%28-20.000000%2C%20-1016.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-6%22%20transform%3D%22translate%280.000000%2C%2060.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-5%E5%A4%87%E4%BB%BD%22%20transform%3D%22translate%280.000000%2C%20900.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E6%9F%A5%E7%9C%8B%E5%85%A8%E9%83%A8%E5%8A%9F%E8%83%BD%22%20transform%3D%22translate%2810.000000%2C%2046.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22icon%22%20transform%3D%22translate%2810.000000%2C%2010.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cmask%20id%3D%22mask-2%22%20fill%3D%22white%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fmask%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20id%3D%22navigation-icon-allfunctions%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22category%22%20mask%3D%22url%28%23mask-2%29%22%20fill%3D%22%23B1BAD4%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22translate%283.000000%2C%205.000000%29%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M2.24999999%2C12.3585414%20L2.24999999%2C14%20L0%2C14%20L0%2C12.3585414%20L2.24999999%2C12.3585414%20Z%20M18%2C12.3585414%20L18%2C14%20L3.375%2C14%20L3.375%2C12.3585414%20L18%2C12.3585414%20Z%20M2.24999999%2C6.17954431%20L2.24999999%2C7.82100286%20L0%2C7.82100286%20L0%2C6.17954431%20L2.24999999%2C6.17954431%20L2.24999999%2C6.17954431%20Z%20M18%2C6.17954431%20L18%2C7.82100286%20L3.375%2C7.82100286%20L3.375%2C6.17954431%20L18%2C6.17954431%20L18%2C6.17954431%20Z%20M2.24999999%2C0%20L2.24999999%2C1.64145855%20L0%2C1.64145855%20L0%2C0%20L2.24999999%2C0%20L2.24999999%2C0%20Z%20M18%2C0%20L18%2C1.64145855%20L3.375%2C1.64145855%20L3.375%2C0%20L18%2C0%20L18%2C0%20Z%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
@@ -14114,7 +14362,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
14114
14362
|
return /*#__PURE__*/React.createElement(List, {
|
|
14115
14363
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
14116
14364
|
style: {
|
|
14117
|
-
color: '#
|
|
14365
|
+
color: '#005CFF'
|
|
14118
14366
|
},
|
|
14119
14367
|
header: /*#__PURE__*/React.createElement("b", null, formatMessage({
|
|
14120
14368
|
id: "".concat(item.name)
|
|
@@ -14206,7 +14454,7 @@ var AllFunc$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
14206
14454
|
})));
|
|
14207
14455
|
});
|
|
14208
14456
|
|
|
14209
|
-
var css_248z$h = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.rcom_right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.rcom_right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.rcom_right .action > span {\n vertical-align: middle;\n}\n.rcom_right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.rcom_right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.rcom_right .search {\n padding: 0 12px;\n}\n.rcom_right .search:hover {\n background: transparent;\n}\n.rcom_right .account .avatar {\n margin-right: 8px;\n color: #
|
|
14457
|
+
var css_248z$h = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.rcom_right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.rcom_right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.rcom_right .action > span {\n vertical-align: middle;\n}\n.rcom_right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.rcom_right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.rcom_right .search {\n padding: 0 12px;\n}\n.rcom_right .search:hover {\n background: transparent;\n}\n.rcom_right .account .avatar {\n margin-right: 8px;\n color: #005cff;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.rcom_right .ant-space-item {\n margin: 0 10px 0 0;\n}\n.rcom_dark .action:hover {\n background: #252a3d;\n}\n.rcom_dark .action .opened {\n background: #252a3d;\n}\n.rcom_dark .ant-space-item {\n margin: 0 10px 0 0;\n}\n.rcom_imgWap {\n position: relative;\n display: flex;\n align-items: center;\n}\n.rcom_imgWap .rcom_headLine {\n width: 1px;\n height: 16px;\n margin-right: 20px;\n background: #cacaca;\n}\n.rcom_imgWap img {\n width: 22px;\n height: 22px;\n margin-right: 20px;\n}\n.rcom_userWarp {\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 142px;\n height: 35px;\n margin-right: 10px;\n border: 1px solid #c8c8c8;\n border-radius: 4px;\n}\n.rcom_userWarp .rcom_l {\n margin-left: 4px;\n}\n.rcom_userWarp .rcom_l img {\n margin-right: 0;\n width: 36px;\n height: 36px;\n}\n.rcom_userWarp .rcom_c {\n display: flex;\n flex-direction: column;\n}\n.rcom_userWarp .rcom_c .rcom_ct {\n color: #000000;\n font-weight: 500;\n font-size: 12px;\n font-family: Montserrat, Montserrat-Medium;\n line-height: 14px;\n text-align: left;\n}\n.rcom_userWarp .rcom_c .rcom_cb {\n color: #bfbfbf;\n font-weight: 400;\n font-size: 10px;\n font-family: Montserrat, Montserrat-Regular;\n line-height: 14px;\n text-align: left;\n}\n.rcom_userWarp .rcom_r {\n margin-right: 9px;\n}\n.rcom_.userWarp:hover,\n.rcom_c:hover,\n.rcom_l:hover,\n.rcom_r:hover {\n cursor: pointer;\n}\n.userDownWarp {\n width: 217px;\n margin-top: 4px;\n background: #ffffff;\n box-shadow: 0px 2px 4px 0px rgba(185, 185, 185, 0.5);\n}\n.userDownWarp .userDownTop {\n display: flex;\n flex-direction: column;\n align-items: center;\n height: 155px;\n padding: 20px 0;\n border-bottom: 1px solid #d9d9d9;\n}\n.userDownWarp .userDownTop .userDownTopT {\n width: 68px;\n height: 68px;\n border-radius: 50%;\n}\n.userDownWarp .userDownTop .userDownTopC {\n color: #000000;\n font-weight: 500;\n font-size: 14px;\n font-family: Montserrat, Montserrat-Medium;\n line-height: 26px;\n text-align: center;\n}\n.userDownWarp .userDownTop .userDownTopB {\n color: #bfbfbf;\n font-weight: 400;\n font-size: 12px;\n font-family: Montserrat, Montserrat-Regular;\n line-height: 15px;\n text-align: center;\n}\n.userDownWarp .userDownB .userDownBList,\n.userDownWarp .userDownB .userDownOut {\n display: flex;\n align-items: center;\n height: 36px;\n background: #ffffff;\n border-bottom: 1px solid #f3f3f3;\n}\n.userDownWarp .userDownB .userDownBList .rcom_label,\n.userDownWarp .userDownB .userDownOut .rcom_label {\n margin: 0 4px 0 20px;\n}\n.userDownWarp .userDownB .userDownBList .rcom_label img,\n.userDownWarp .userDownB .userDownOut .rcom_label img {\n width: 16px;\n height: 16px;\n}\n.userDownWarp .userDownB .userDownBList .rcom_name,\n.userDownWarp .userDownB .userDownOut .rcom_name {\n color: #000000;\n font-weight: 400;\n font-size: 12px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 16px;\n text-align: left;\n}\n.userDownWarp .userDownB .userDownBList:hover,\n.userDownWarp .userDownB .userDownOut:hover {\n cursor: pointer;\n}\n.userDownWarp .userDownB .userDownOut {\n height: 46px;\n border-bottom: none;\n}\n.userDownWarp .userDownB .userDownOut .rcom_name {\n color: #fe0300;\n}\n";
|
|
14210
14458
|
styleInject(css_248z$h);
|
|
14211
14459
|
|
|
14212
14460
|
var Morentouxiang = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2240px%22%20height%3D%2240px%22%20viewBox%3D%220%200%2040%2040%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E32%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Ccircle%20id%3D%22path-1%22%20cx%3D%2213%22%20cy%3D%2213%22%20r%3D%2213%22%3E%3C%2Fcircle%3E%20%20%20%20%20%20%20%20%3Cfilter%20x%3D%22-40.4%25%22%20y%3D%22-40.4%25%22%20width%3D%22180.8%25%22%20height%3D%22180.8%25%22%20filterUnits%3D%22objectBoundingBox%22%20id%3D%22filter-2%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3CfeOffset%20dx%3D%220%22%20dy%3D%220%22%20in%3D%22SourceAlpha%22%20result%3D%22shadowOffsetOuter1%22%3E%3C%2FfeOffset%3E%20%20%20%20%20%20%20%20%20%20%20%20%3CfeGaussianBlur%20stdDeviation%3D%223.5%22%20in%3D%22shadowOffsetOuter1%22%20result%3D%22shadowBlurOuter1%22%3E%3C%2FfeGaussianBlur%3E%20%20%20%20%20%20%20%20%20%20%20%20%3CfeComposite%20in%3D%22shadowBlurOuter1%22%20in2%3D%22SourceAlpha%22%20operator%3D%22out%22%20result%3D%22shadowBlurOuter1%22%3E%3C%2FfeComposite%3E%20%20%20%20%20%20%20%20%20%20%20%20%3CfeColorMatrix%20values%3D%220%200%200%200%200.949019608%20%20%200%200%200%200%200.949019608%20%20%200%200%200%200%200.949019608%20%200%200%200%201%200%22%20type%3D%22matrix%22%20in%3D%22shadowBlurOuter1%22%3E%3C%2FfeColorMatrix%3E%20%20%20%20%20%20%20%20%3C%2Ffilter%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22-----6.1-%E9%BB%98%E8%AE%A4%E5%9B%BE%E7%89%87%2F-Default-picture%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22B-Design-%E4%BD%93%E9%AA%8C%E8%A7%84%E8%8C%83%22%20transform%3D%22translate%28-1119.000000%2C%20-988.000000%29%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%2232%22%20transform%3D%22translate%281126.000000%2C%20995.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E5%9C%86%E5%BD%A2%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20fill%3D%22black%22%20fill-opacity%3D%221%22%20filter%3D%22url%28%23filter-2%29%22%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Ccircle%20stroke%3D%22%23FFFFFF%22%20stroke-width%3D%220.8328125%22%20stroke-linejoin%3D%22square%22%20fill%3D%22%23EDF4FF%22%20fill-rule%3D%22evenodd%22%20cx%3D%2213%22%20cy%3D%2213%22%20r%3D%2212.5835938%22%3E%3C%2Fcircle%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M15.644709%2C13.6190476%20L18.9119048%2C15.0892857%20L18.9119048%2C19.5%20L7.15%2C19.5%20L7.15%2C15.0892857%20L10.4171958%2C13.6190476%20L15.644709%2C13.6190476%20Z%20M16.1261905%2C16.4047619%20L13.65%2C16.4047619%20L13.65%2C17.6428571%20L16.1261905%2C17.6428571%20L16.1261905%2C16.4047619%20Z%20M13.1857143%2C6.5%20C14.9806397%2C6.5%2016.4357143%2C7.95507456%2016.4357143%2C9.75%20C16.4357143%2C11.5449254%2014.9806397%2C13%2013.1857143%2C13%20C11.3907888%2C13%209.93571429%2C11.5449254%209.93571429%2C9.75%20C9.93571429%2C7.95507456%2011.3907888%2C6.5%2013.1857143%2C6.5%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%20fill%3D%22%239AC4FF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
@@ -14454,7 +14702,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
14454
14702
|
}))))), loginModalParams.visible && /*#__PURE__*/React.createElement(LoginModal, _objectSpread2({}, loginModalParams)));
|
|
14455
14703
|
};
|
|
14456
14704
|
|
|
14457
|
-
var css_248z$i = ".headerContent {\n position: relative;\n display: flex;\n align-items: center;\n height: 100%;\n background: #F3F3F3;\n box-shadow: 0 1px 4px #EBECEC;\n padding-left: 47px;\n}\n.navigationBtn {\n display: inline-block;\n height: 32px;\n line-height: 32px;\n border-radius: 5px;\n margin-right: 15px;\n padding: 0 10px;\n background-color: #F4F6F7;\n cursor: pointer;\n color: rgba(0, 0, 0, 0.5);\n}\n.navigationBtn:hover {\n border-color: #297eff;\n border-right-width: 1px;\n z-index: 1;\n}\n.headerContent {\n background-color: #ffffff;\n}\n.headerContent .ant-input-affix-wrapper,\n.headerContent .ant-input {\n color: rgba(0, 0, 0, 0.5);\n}\n.searchPanel {\n position: absolute;\n top: 36;\n left: 0;\n min-width: 268px;\n height: 220px;\n box-shadow: 0 1px 4px #EBECEC;\n background-color: #FFFFFF;\n overflow-y: auto;\n box-shadow: 0px 2px 4px 0px rgba(185, 185, 185, 0.5);\n padding: 0 10px;\n}\n.searchTitle {\n margin-top: 20px;\n font-size: 14px;\n font-weight: 400;\n text-align: left;\n color: #8c8c8c;\n}\n.themeColor {\n color: #
|
|
14705
|
+
var css_248z$i = ".headerContent {\n position: relative;\n display: flex;\n align-items: center;\n height: 100%;\n background: #F3F3F3;\n box-shadow: 0 1px 4px #EBECEC;\n padding-left: 47px;\n}\n.navigationBtn {\n display: inline-block;\n height: 32px;\n line-height: 32px;\n border-radius: 5px;\n margin-right: 15px;\n padding: 0 10px;\n background-color: #F4F6F7;\n cursor: pointer;\n color: rgba(0, 0, 0, 0.5);\n}\n.navigationBtn:hover {\n border-color: #297eff;\n border-right-width: 1px;\n z-index: 1;\n}\n.headerContent {\n background-color: #ffffff;\n}\n.headerContent .ant-input-affix-wrapper,\n.headerContent .ant-input {\n color: rgba(0, 0, 0, 0.5);\n}\n.searchPanel {\n position: absolute;\n top: 36;\n left: 0;\n min-width: 268px;\n height: 220px;\n box-shadow: 0 1px 4px #EBECEC;\n background-color: #FFFFFF;\n overflow-y: auto;\n box-shadow: 0px 2px 4px 0px rgba(185, 185, 185, 0.5);\n padding: 0 10px;\n}\n.searchTitle {\n margin-top: 20px;\n font-size: 14px;\n font-weight: 400;\n text-align: left;\n color: #8c8c8c;\n}\n.themeColor {\n color: #005cff;\n}\n.itemPath {\n height: 30px;\n line-height: 30px;\n width: 100%;\n cursor: pointer;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.itemPath:hover {\n background-color: #E6EEFF;\n}\n";
|
|
14458
14706
|
styleInject(css_248z$i);
|
|
14459
14707
|
|
|
14460
14708
|
var judgeIsEmpty$2 = function judgeIsEmpty(value) {
|
|
@@ -14531,7 +14779,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
14531
14779
|
var afterStr = newName.substr(index + keyWord.length);
|
|
14532
14780
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", null, beforeStr), /*#__PURE__*/React.createElement("span", {
|
|
14533
14781
|
style: {
|
|
14534
|
-
color: '#
|
|
14782
|
+
color: '#1890ff'
|
|
14535
14783
|
}
|
|
14536
14784
|
}, keyWord), /*#__PURE__*/React.createElement("span", null, afterStr));
|
|
14537
14785
|
}
|
|
@@ -15239,7 +15487,7 @@ var MenuSetting = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
15239
15487
|
}));
|
|
15240
15488
|
});
|
|
15241
15489
|
|
|
15242
|
-
var css_248z$k = ".customer_menu_content {\n color: #b1bad4;\n background: #
|
|
15490
|
+
var css_248z$k = ".customer_menu_content {\n color: #b1bad4;\n background: #141620;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 18px;\n height: 45px;\n border-bottom: 1px solid #3d4047;\n}\n.customer_menu_content .ant-btn-link {\n color: #b1bad4 !important;\n font-size: 16px;\n height: 36px;\n}\n.customer_menu_content .ant-drawer-body {\n padding: 10px !important;\n}\n.menu_drawer_header_warp .ant-drawer-body {\n background-color: #F8F9FA;\n padding: 10px 0 0 0 !important;\n}\n.menu_title_line {\n font-size: 16px;\n font-weight: bold;\n color: #b1bad4;\n text-align: center;\n margin-bottom: 10px;\n}\n.menu_item {\n line-height: 30px;\n color: rgba(44, 47, 46);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.link_style:hover {\n background-color: #E4E7ED;\n cursor: pointer;\n}\n.header_style {\n height: 50px;\n position: fixed;\n top: 0;\n left: 0;\n padding: 0;\n display: flex;\n align-items: center;\n background-color: #ffffff;\n}\n.global_menu_draw .ant-drawer-body {\n padding: 10px !important;\n}\n";
|
|
15243
15491
|
styleInject(css_248z$k);
|
|
15244
15492
|
|
|
15245
15493
|
var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
@@ -15376,7 +15624,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
15376
15624
|
})));
|
|
15377
15625
|
});
|
|
15378
15626
|
|
|
15379
|
-
var css_248z$l = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #
|
|
15627
|
+
var css_248z$l = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #1890ff;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.dark .action:hover {\n background: #252a3d;\n}\n.dark .action .opened {\n background: #252a3d;\n}\n.global_menu_draw_content {\n display: flex;\n height: 100%;\n}\n.global_menu_draw_content .allFunsList {\n margin-bottom: 10px;\n}\n.global_menu_draw_content .drawerWarp_left {\n width: 150px;\n height: 100%;\n flex-shrink: 0;\n border-right: 1px solid #f0f0f0;\n}\n.global_menu_draw_content .drawerWarp_left .left_item_title {\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #8c8c8c;\n letter-spacing: 0;\n line-height: 20px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n margin: 20px 0px;\n padding-left: 10px;\n}\n.global_menu_draw_content .drawerWarp_left .left_item {\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n line-height: 20px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n cursor: pointer;\n margin: 20px 0px;\n padding-left: 10px;\n}\n.global_menu_draw_content .drawerWarp_left .left_item:hover {\n color: #1890ff !important;\n}\n.global_menu_draw_content .drawerWarp_right {\n -moz-column-count: 4;\n column-count: 4;\n flex-grow: 1;\n padding-left: 10px;\n}\n.global_menu_draw_content .drawerWarp_right .ant-list-header {\n padding: 0 0 0 10px !important;\n line-height: 30px;\n border: 0px !important;\n}\n.global_menu_draw_content .drawerWarp_right .ant-list-header b {\n width: 100%;\n box-sizing: border-box;\n display: inline-block;\n border-bottom: 1px solid #f0f0f0;\n}\n.global_menu_draw_content .drawerWarp_right .ant-list-item {\n padding: 0 0 0 10px !important;\n line-height: 30px !important;\n}\n.global_menu_draw_content .drawerWarp_right .ant-drawer-close {\n position: absolute;\n right: 0;\n}\n.global_menu_draw_content .search_menu_content {\n flex-grow: 1;\n display: flex;\n flex-wrap: wrap;\n background-color: #ffffff;\n}\n.global_menu_draw_content .search_menu_content div {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 8px 20px;\n font-size: 14px;\n font-weight: 400;\n color: #000000;\n background: #f8f9fa;\n border-radius: 100px;\n margin-right: 10px;\n margin-bottom: 10px;\n}\n.global_menu_draw_content .search_menu_content div:hover {\n cursor: pointer;\n}\n.global_menu_draw_content .allFunsListWarp {\n width: 200px;\n margin-right: 10px;\n border-radius: 4px;\n -moz-column-break-inside: avoid;\n break-inside: avoid;\n}\n.global_menu_draw_content .choosedStyle .ant-list-header {\n background-color: #005CFF;\n opacity: 0.8;\n}\n.global_menu_draw_content .choosedStyle .ant-list-header b {\n border-bottom: 1px solid #005CFF;\n}\n";
|
|
15380
15628
|
styleInject(css_248z$l);
|
|
15381
15629
|
|
|
15382
15630
|
var closeicon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAiZJREFUSEvFll1LVFEUhh/1QqjAxALrot+ggR9RQWh1UZl9kNCtv8ALf0Q3/YVuiyIqLKOUyI80RP0VXVSU+UGKF2W88q7hzPacOY4QHhiGmVn7fdZe691rTwP/+WlI9Bv9eQfQq55HWqH3NxamgOz3+q0SWEJSYpFQVWIBUIDE+oARYBj4ATQBf0rEI+Yk8Ah4CHwEdjUDoHeRnwN3gBngJrBaAgnxVmAMOA88A4aKAAp8A5wzZABYK4Dkic8CWqPEdpPO9iB20Qa8BnqBae9EkCijKhbixx2rzOeAG8CvEFdg2uRYKIh20mOIslo3RGvUlxaLXwDmgesWr+pbnovyIFPe+oYbLnHV/CLw2eIreaUssmlATngn3YAg17yL8f2I55Uo68is/VSuLuC9AZeBBQN/1nJa0Q4ClHVKuEu/fXJZihxWSbQMEM5pBlQWHUQ9E+7JduKuPWeyFiDEj7mhl2xFrdE5+WAL/64FKQJkxV858yXgqq09CXQAer8FFELyAFnxl0A/sOiaf3cN2u2usy7X7SJI3rjW0DsKSFxuUeY6RN/sFjF00ARRXzrtLkE203LljQqJvwCuAMu2YojHZA13nTJE5XrnQSlIjJ3KqIgvjlhctZa4Mv9aMuxOu1yCvAXuAlvpsAvAU+DePsTTc5KFPAHup+M6GjsIjDrgS50XzhngMfDAtq66cNIRoUYf5MqUaNUNeCiXfsUB9fylcOyetf8AAkCfGYuSNSEAAAAASUVORK5CYII=";
|
|
@@ -15541,8 +15789,8 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
15541
15789
|
return /*#__PURE__*/React.createElement("div", {
|
|
15542
15790
|
className: 'left_item',
|
|
15543
15791
|
style: {
|
|
15544
|
-
borderLeft: currentOneLevel === item.path ? '2px solid #
|
|
15545
|
-
color: currentOneLevel === item.path ? '#
|
|
15792
|
+
borderLeft: currentOneLevel === item.path ? '2px solid #1890ff' : 'none',
|
|
15793
|
+
color: currentOneLevel === item.path ? '#1890ff' : '#000000'
|
|
15546
15794
|
},
|
|
15547
15795
|
onClick: function onClick(e) {
|
|
15548
15796
|
e.stopPropagation();
|
|
@@ -15668,7 +15916,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
15668
15916
|
className: "allFunsList allFunsListWarp ".concat(currentOneLevel === item.path ? 'choosedStyle' : ''),
|
|
15669
15917
|
id: item.path,
|
|
15670
15918
|
style: {
|
|
15671
|
-
color: currentOneLevel === item.path ? '#fff' : '#
|
|
15919
|
+
color: currentOneLevel === item.path ? '#fff' : '#005CFF'
|
|
15672
15920
|
},
|
|
15673
15921
|
header: /*#__PURE__*/React.createElement("b", null, formatMessage({
|
|
15674
15922
|
id: "".concat(item.name)
|
|
@@ -15700,7 +15948,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
15700
15948
|
}, /*#__PURE__*/React.createElement(CaretDownOutlined, null), "\u4E0B\u6ED1\u52A0\u8F7D\u66F4\u591A"))))));
|
|
15701
15949
|
};
|
|
15702
15950
|
|
|
15703
|
-
var caidan = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2248px%22%20height%3D%2248px%22%20viewBox%3D%220%200%2048%2048%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%BC%96%E7%BB%84%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E5%85%A8%E5%B1%80%E5%AF%BC%E8%88%AA%E7%9B%B8%E5%85%B3%E5%8A%9F%E8%83%BD%E9%9C%80%E6%B1%82%E8%AE%BE%E8%AE%A1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%94%BB%E6%9D%BF%22%20transform%3D%22translate%28-20.000000%2C%20-19.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84%22%20transform%3D%22translate%2820.000000%2C%2019.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20fill%3D%22%
|
|
15951
|
+
var caidan = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2248px%22%20height%3D%2248px%22%20viewBox%3D%220%200%2048%2048%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%BC%96%E7%BB%84%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E5%85%A8%E5%B1%80%E5%AF%BC%E8%88%AA%E7%9B%B8%E5%85%B3%E5%8A%9F%E8%83%BD%E9%9C%80%E6%B1%82%E8%AE%BE%E8%AE%A1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%94%BB%E6%9D%BF%22%20transform%3D%22translate%28-20.000000%2C%20-19.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84%22%20transform%3D%22translate%2820.000000%2C%2019.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20fill%3D%22%23005CFF%22%20opacity%3D%220%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2248%22%20height%3D%2248%22%3E%3C%2Frect%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M34.4%2C30.5%20L34.4%2C33.1%20L13.6%2C33.1%20L13.6%2C30.5%20L34.4%2C30.5%20Z%20M34.4%2C22.7%20L34.4%2C25.3%20L13.6%2C25.3%20L13.6%2C22.7%20L34.4%2C22.7%20Z%20M34.4%2C14.9%20L34.4%2C17.5%20L13.6%2C17.5%20L13.6%2C14.9%20L34.4%2C14.9%20Z%22%20id%3D%22nav-line-%E5%AF%BC%E8%88%AA%E5%85%A5%E5%8F%A3%22%20fill%3D%22%23FFFFFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
15704
15952
|
|
|
15705
15953
|
var guanbi = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2249px%22%20height%3D%2249px%22%20viewBox%3D%220%200%2049%2049%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%BC%96%E7%BB%84%402x%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E5%85%A8%E5%B1%80%E5%AF%BC%E8%88%AA%E7%9B%B8%E5%85%B3%E5%8A%9F%E8%83%BD%E9%9C%80%E6%B1%82%E8%AE%BE%E8%AE%A1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22translate%28-327.000000%2C%20-7295.000000%29%22%20fill%3D%22%23FFFFFF%22%20id%3D%22%E7%BC%96%E7%BB%84-19%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22translate%28201.125000%2C%206939.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-12%22%20transform%3D%22translate%28120.750000%2C%20350.500000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84%22%20transform%3D%22translate%285.125000%2C%205.500000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20opacity%3D%220%22%20x%3D%220.875%22%20y%3D%220.5%22%20width%3D%2248%22%20height%3D%2248%22%3E%3C%2Frect%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpolygon%20id%3D%22%E8%B7%AF%E5%BE%84%22%20fill-rule%3D%22nonzero%22%20points%3D%2216.1903531%2014.2124746%2014.6278957%2015.7683177%2023.3198919%2024.5%2014.6278957%2033.2316823%2016.1903531%2034.7875254%2024.875%2026.0624574%2033.5596469%2034.7875254%2035.1221043%2033.2316823%2026.4308431%2024.5007349%2035.1221043%2015.7683177%2033.5596469%2014.2124746%2024.875%2022.9368077%2016.1903531%2014.2132096%22%3E%3C%2Fpolygon%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
15706
15954
|
|
|
@@ -15792,7 +16040,7 @@ var CustomerMenuHeader = function CustomerMenuHeader(_ref) {
|
|
|
15792
16040
|
})));
|
|
15793
16041
|
};
|
|
15794
16042
|
|
|
15795
|
-
var css_248z$m = ".customer_menu_content {\n color: #b1bad4;\n background: #
|
|
16043
|
+
var css_248z$m = ".customer_menu_content {\n color: #b1bad4;\n background: #141620;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 18px;\n height: 40px;\n border-bottom: 1px solid #3d4047;\n}\n.customer_menu_content .ant-btn-link {\n color: #b1bad4 !important;\n font-size: 16px;\n height: 36px;\n}\n.menu_item {\n line-height: 30px;\n height: 30px;\n color: rgba(44, 47, 46);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.link_style:hover {\n background-color: #e4e7ed;\n cursor: pointer;\n color: #1890ff;\n}\n.sub_menu_content {\n box-shadow: 2px 0px 4px 0px rgba(185, 185, 185, 0.5);\n position: fixed;\n top: 50px;\n left: 140px;\n width: 200px;\n height: 100%;\n background-color: #fff;\n padding-top: 10px;\n z-index: 9999;\n}\n.tab_left_operate {\n display: flex;\n height: 28px;\n align-items: center;\n}\n.tab_left_operate > div {\n width: 28px;\n font-size: 12px;\n color: #2C2F2ECC;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n border-right: 1px solid #E4E4E4;\n background-color: #fff;\n cursor: pointer;\n}\n.tab_left_operate > div:last-child {\n box-shadow: 2px -2px 4px 0px rgba(185, 185, 185, 0.9);\n z-index: 99;\n}\n.tab_right_operate {\n height: 28px;\n width: 28px;\n font-size: 12px;\n color: #2C2F2ECC;\n display: flex;\n align-items: center;\n justify-content: center;\n border-right: 1px solid #E4E4E4;\n background-color: #fff;\n box-shadow: -2px -2px 4px 0px rgba(185, 185, 185, 0.9);\n z-index: 99;\n cursor: pointer;\n position: relative;\n}\n";
|
|
15796
16044
|
styleInject(css_248z$m);
|
|
15797
16045
|
|
|
15798
16046
|
var _excluded$g = ["route"];
|
|
@@ -23629,7 +23877,7 @@ function registerSuggestions(monaco) {
|
|
|
23629
23877
|
});
|
|
23630
23878
|
}
|
|
23631
23879
|
|
|
23632
|
-
var css_248z$p = ":global .si-editor-highlight {\n background: #1990ffab;\n}\n.title {\n color: #
|
|
23880
|
+
var css_248z$p = ":global .si-editor-highlight {\n background: #1990ffab;\n}\n.title {\n color: #1890ff;\n padding: 12px;\n font-weight: bold;\n}\n.editorWrapper {\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n padding: 24px;\n background-color: #fff;\n z-index: 10000;\n}\n";
|
|
23633
23881
|
styleInject(css_248z$p);
|
|
23634
23882
|
|
|
23635
23883
|
var Title = Typography.Title;
|
|
@@ -24040,7 +24288,7 @@ var App = function App(_ref) {
|
|
|
24040
24288
|
converter: function converter(_ref2) {
|
|
24041
24289
|
var response = _ref2.response,
|
|
24042
24290
|
data = _ref2.data;
|
|
24043
|
-
if (response
|
|
24291
|
+
if (judgeIsRequestSuccess(response)) {
|
|
24044
24292
|
// UpdateFiedList(data.filter(item => item.valueType == 20 || item.valueType == 21 || item.valueType == 22))
|
|
24045
24293
|
var resData = data.filter(function (item) {
|
|
24046
24294
|
return item.inputType != 40 && (item.valueType == 20 || item.valueType == 21 || item.valueType == 22);
|
|
@@ -24362,6 +24610,13 @@ var inputTypes = {
|
|
|
24362
24610
|
treeCheckable: false
|
|
24363
24611
|
}, normalSingleSelectProps)
|
|
24364
24612
|
},
|
|
24613
|
+
290: {
|
|
24614
|
+
// 库存组织
|
|
24615
|
+
type: 'bs-settleOrgSelect',
|
|
24616
|
+
props: _objectSpread2({
|
|
24617
|
+
treeCheckable: false
|
|
24618
|
+
}, normalSingleSelectProps)
|
|
24619
|
+
},
|
|
24365
24620
|
310: {
|
|
24366
24621
|
type: 'bs-deliveryModeSearchSelect',
|
|
24367
24622
|
props: _objectSpread2({}, normalSingleSelectProps)
|
|
@@ -24379,6 +24634,14 @@ var inputTypes = {
|
|
|
24379
24634
|
props: _objectSpread2({
|
|
24380
24635
|
treeCheckable: false
|
|
24381
24636
|
}, normalSingleSelectProps)
|
|
24637
|
+
},
|
|
24638
|
+
360: {
|
|
24639
|
+
type: 'bs-roleSelect',
|
|
24640
|
+
props: _objectSpread2(_objectSpread2({}, normalSingleSelectProps), {}, {
|
|
24641
|
+
requestConfig: {
|
|
24642
|
+
filter: 'qp-name,code-orGroup-in'
|
|
24643
|
+
}
|
|
24644
|
+
})
|
|
24382
24645
|
}
|
|
24383
24646
|
},
|
|
24384
24647
|
30: {
|
|
@@ -24508,6 +24771,13 @@ var inputTypes = {
|
|
|
24508
24771
|
treeCheckable: true
|
|
24509
24772
|
}, normalMultipleSelectProps)
|
|
24510
24773
|
},
|
|
24774
|
+
290: {
|
|
24775
|
+
// 结算组织
|
|
24776
|
+
type: 'bs-settleOrgSelect',
|
|
24777
|
+
props: _objectSpread2({
|
|
24778
|
+
treeCheckable: true
|
|
24779
|
+
}, normalMultipleSelectProps)
|
|
24780
|
+
},
|
|
24511
24781
|
310: {
|
|
24512
24782
|
type: 'bs-deliveryModeSearchSelect',
|
|
24513
24783
|
props: _objectSpread2(_objectSpread2({}, normalMultipleSelectProps), {}, {
|
|
@@ -24529,6 +24799,14 @@ var inputTypes = {
|
|
|
24529
24799
|
props: _objectSpread2({
|
|
24530
24800
|
treeCheckable: false
|
|
24531
24801
|
}, normalSingleSelectProps)
|
|
24802
|
+
},
|
|
24803
|
+
360: {
|
|
24804
|
+
type: 'bs-roleSelect',
|
|
24805
|
+
props: _objectSpread2(_objectSpread2({}, normalMultipleSelectProps), {}, {
|
|
24806
|
+
requestConfig: {
|
|
24807
|
+
filter: 'qp-name,code-orGroup-in'
|
|
24808
|
+
}
|
|
24809
|
+
})
|
|
24532
24810
|
}
|
|
24533
24811
|
}
|
|
24534
24812
|
};
|
|
@@ -24556,10 +24834,12 @@ var choiceType = Object.freeze({
|
|
|
24556
24834
|
260: '店铺选择器',
|
|
24557
24835
|
270: '员工选择器',
|
|
24558
24836
|
280: '库存组织选择器',
|
|
24837
|
+
290: '结算组织选择器',
|
|
24559
24838
|
310: '配送方式选择器',
|
|
24560
24839
|
330: '变量',
|
|
24561
24840
|
340: '规则模板选择器',
|
|
24562
|
-
350: '营销区域选择器'
|
|
24841
|
+
350: '营销区域选择器',
|
|
24842
|
+
360: '角色选择器'
|
|
24563
24843
|
});
|
|
24564
24844
|
var inputType = {
|
|
24565
24845
|
10: '输入',
|
|
@@ -26001,10 +26281,9 @@ var JsonQueryTable = /*#__PURE__*/React.memo(function (props) {
|
|
|
26001
26281
|
Promise.all([axios.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
|
|
26002
26282
|
var _ref3 = _slicedToArray(_ref2, 1),
|
|
26003
26283
|
res = _ref3[0];
|
|
26004
|
-
var
|
|
26005
|
-
|
|
26006
|
-
|
|
26007
|
-
if (code === '000000') {
|
|
26284
|
+
var resD = (res === null || res === void 0 ? void 0 : res.data) || {};
|
|
26285
|
+
var data = resD.data;
|
|
26286
|
+
if (judgeIsRequestSuccess(resD)) {
|
|
26008
26287
|
if (data) {
|
|
26009
26288
|
var businessType = data.businessType,
|
|
26010
26289
|
fieldGroup = data.code,
|
|
@@ -26025,15 +26304,15 @@ var JsonQueryTable = /*#__PURE__*/React.memo(function (props) {
|
|
|
26025
26304
|
var axiosArr = detailTablesSetting.map(function (item) {
|
|
26026
26305
|
return axios.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(item.tableCode));
|
|
26027
26306
|
});
|
|
26028
|
-
Promise.all(axiosArr).then(function (
|
|
26029
|
-
var
|
|
26030
|
-
resArr =
|
|
26307
|
+
Promise.all(axiosArr).then(function (_ref4) {
|
|
26308
|
+
var _ref5 = _toArray(_ref4),
|
|
26309
|
+
resArr = _ref5.slice(0);
|
|
26031
26310
|
var configParams = {};
|
|
26032
26311
|
detailTablesSetting.map(function (item, index) {
|
|
26033
26312
|
var _resArr$index;
|
|
26034
|
-
var
|
|
26035
|
-
code =
|
|
26036
|
-
data =
|
|
26313
|
+
var _ref6 = ((_resArr$index = resArr[index]) === null || _resArr$index === void 0 ? void 0 : _resArr$index.data) || {},
|
|
26314
|
+
code = _ref6.code,
|
|
26315
|
+
data = _ref6.data;
|
|
26037
26316
|
if (data) {
|
|
26038
26317
|
var businessType = data.businessType,
|
|
26039
26318
|
fieldGroup = data.code,
|
|
@@ -26589,6 +26868,8 @@ var findChangedThresholdQuery = function findChangedThresholdQuery(oldVal, newVa
|
|
|
26589
26868
|
var isObj = function isObj(object) {
|
|
26590
26869
|
return object && _typeof(object) == 'object' && Object.prototype.toString.call(object).toLowerCase() == '[object object]';
|
|
26591
26870
|
};
|
|
26871
|
+
var dateFormat = 'YYYY-MM-DD';
|
|
26872
|
+
var fullDateFormat = 'YYYY-MM-DD HH:mm:ss';
|
|
26592
26873
|
|
|
26593
26874
|
var RangePicker = DatePicker.RangePicker;
|
|
26594
26875
|
var RuleField = /*#__PURE__*/function (_Component) {
|
|
@@ -26676,30 +26957,28 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26676
26957
|
url: extraRequestUrl,
|
|
26677
26958
|
method: 'get',
|
|
26678
26959
|
converter: function converter(res) {
|
|
26679
|
-
|
|
26680
|
-
|
|
26681
|
-
|
|
26682
|
-
|
|
26683
|
-
|
|
26684
|
-
|
|
26685
|
-
|
|
26686
|
-
|
|
26687
|
-
|
|
26688
|
-
|
|
26689
|
-
|
|
26690
|
-
|
|
26691
|
-
|
|
26692
|
-
|
|
26693
|
-
|
|
26694
|
-
|
|
26695
|
-
|
|
26696
|
-
|
|
26697
|
-
}) : [];
|
|
26698
|
-
}
|
|
26699
|
-
_this.setState({
|
|
26700
|
-
thresholdList: _handleData
|
|
26701
|
-
});
|
|
26960
|
+
var handleData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
26961
|
+
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
26962
|
+
var _handleData;
|
|
26963
|
+
handleData = ((_handleData = handleData) === null || _handleData === void 0 ? void 0 : _handleData.length) ? handleData.map(function (i) {
|
|
26964
|
+
return {
|
|
26965
|
+
code: i.dictItemCode,
|
|
26966
|
+
name: i.dictItemName
|
|
26967
|
+
};
|
|
26968
|
+
}) : [];
|
|
26969
|
+
}
|
|
26970
|
+
if (queryIdentifyType === 'dynamicDictCodeIdentify') {
|
|
26971
|
+
var _handleData2;
|
|
26972
|
+
handleData = ((_handleData2 = handleData) === null || _handleData2 === void 0 ? void 0 : _handleData2.length) ? handleData.map(function (i) {
|
|
26973
|
+
return {
|
|
26974
|
+
code: i.code.toString(),
|
|
26975
|
+
name: i.name
|
|
26976
|
+
};
|
|
26977
|
+
}) : [];
|
|
26702
26978
|
}
|
|
26979
|
+
_this.setState({
|
|
26980
|
+
thresholdList: handleData
|
|
26981
|
+
});
|
|
26703
26982
|
return handleData;
|
|
26704
26983
|
}
|
|
26705
26984
|
});
|
|
@@ -26761,8 +27040,6 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
26761
27040
|
disabled = _this$props2.disabled,
|
|
26762
27041
|
customerWidth = _this$props2.customerWidth;
|
|
26763
27042
|
var thresholdList = _this.state.thresholdList;
|
|
26764
|
-
var dateFormat = 'YYYY-MM-DD';
|
|
26765
|
-
var fullDateFormat = 'YYYY-MM-DD HH:mm:ss';
|
|
26766
27043
|
var styleCommon = {
|
|
26767
27044
|
width: customerWidth || '150px'
|
|
26768
27045
|
};
|
|
@@ -28478,6 +28755,86 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
28478
28755
|
});
|
|
28479
28756
|
}
|
|
28480
28757
|
}
|
|
28758
|
+
// 结算组织选择器
|
|
28759
|
+
if (dataChoiceBusinessType == 290) {
|
|
28760
|
+
if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
|
|
28761
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(BusinessTreeSearchSelect$1, {
|
|
28762
|
+
disabled: disabled,
|
|
28763
|
+
treeCheckable: dataInputBusinessType === 12,
|
|
28764
|
+
businessType: "settle-organization",
|
|
28765
|
+
labelInValue: true,
|
|
28766
|
+
value: values[0],
|
|
28767
|
+
style: styleCommon,
|
|
28768
|
+
onChange: function onChange(value) {
|
|
28769
|
+
if (dataInputBusinessType === 12) {
|
|
28770
|
+
values[0] = value.map(function (i) {
|
|
28771
|
+
return i.key;
|
|
28772
|
+
});
|
|
28773
|
+
valueNames[0] = value.map(function (i) {
|
|
28774
|
+
return i.label || '';
|
|
28775
|
+
});
|
|
28776
|
+
} else {
|
|
28777
|
+
values[0] = [value.key];
|
|
28778
|
+
valueNames[0] = [value.label || ''];
|
|
28779
|
+
}
|
|
28780
|
+
callback(values, valueNames);
|
|
28781
|
+
},
|
|
28782
|
+
getPopupContainer: function getPopupContainer() {
|
|
28783
|
+
return document.body;
|
|
28784
|
+
}
|
|
28785
|
+
}), /*#__PURE__*/React.createElement("span", null, "~"), /*#__PURE__*/React.createElement(BusinessTreeSearchSelect$1, {
|
|
28786
|
+
disabled: disabled,
|
|
28787
|
+
treeCheckable: dataInputBusinessType === 12,
|
|
28788
|
+
businessType: "settle-organization",
|
|
28789
|
+
labelInValue: true,
|
|
28790
|
+
value: values[0],
|
|
28791
|
+
style: styleCommon,
|
|
28792
|
+
onChange: function onChange(value) {
|
|
28793
|
+
if (dataInputBusinessType === 12) {
|
|
28794
|
+
values[1] = value.map(function (i) {
|
|
28795
|
+
return i.key;
|
|
28796
|
+
});
|
|
28797
|
+
valueNames[1] = value.map(function (i) {
|
|
28798
|
+
return i.label || '';
|
|
28799
|
+
});
|
|
28800
|
+
} else {
|
|
28801
|
+
values[1] = [value.key];
|
|
28802
|
+
valueNames[1] = [value.label || ''];
|
|
28803
|
+
}
|
|
28804
|
+
callback(values, valueNames);
|
|
28805
|
+
},
|
|
28806
|
+
getPopupContainer: function getPopupContainer() {
|
|
28807
|
+
return document.body;
|
|
28808
|
+
}
|
|
28809
|
+
}));
|
|
28810
|
+
} else {
|
|
28811
|
+
return /*#__PURE__*/React.createElement(BusinessTreeSearchSelect$1, {
|
|
28812
|
+
disabled: disabled,
|
|
28813
|
+
treeCheckable: dataInputBusinessType === 12,
|
|
28814
|
+
businessType: "settle-organization",
|
|
28815
|
+
labelInValue: true,
|
|
28816
|
+
value: values[0],
|
|
28817
|
+
style: styleCommon,
|
|
28818
|
+
onChange: function onChange(value) {
|
|
28819
|
+
if (dataInputBusinessType === 12) {
|
|
28820
|
+
values = value.map(function (i) {
|
|
28821
|
+
return i.key;
|
|
28822
|
+
}) || [];
|
|
28823
|
+
valueNames = value.map(function (i) {
|
|
28824
|
+
return i.label || '';
|
|
28825
|
+
}) || [];
|
|
28826
|
+
} else {
|
|
28827
|
+
values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
|
|
28828
|
+
valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
|
|
28829
|
+
}
|
|
28830
|
+
callback(values, valueNames);
|
|
28831
|
+
},
|
|
28832
|
+
getPopupContainer: function getPopupContainer() {
|
|
28833
|
+
return document.body;
|
|
28834
|
+
}
|
|
28835
|
+
});
|
|
28836
|
+
}
|
|
28837
|
+
}
|
|
28481
28838
|
// 配送方式选择器
|
|
28482
28839
|
if (dataChoiceBusinessType == 310) {
|
|
28483
28840
|
if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
|
|
@@ -28592,6 +28949,120 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
28592
28949
|
});
|
|
28593
28950
|
}
|
|
28594
28951
|
}
|
|
28952
|
+
// 角色选择器
|
|
28953
|
+
if (dataChoiceBusinessType == 360) {
|
|
28954
|
+
if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
|
|
28955
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
28956
|
+
selectBusinessType: "role",
|
|
28957
|
+
selectProps: _objectSpread2({
|
|
28958
|
+
style: styleCommon,
|
|
28959
|
+
placeholder: '请选择角色'
|
|
28960
|
+
}, dataInputBusinessType === 12 ? {
|
|
28961
|
+
mode: 'multiple',
|
|
28962
|
+
maxTagCount: 1
|
|
28963
|
+
} : {}),
|
|
28964
|
+
disabled: disabled,
|
|
28965
|
+
labelInValue: true,
|
|
28966
|
+
value: values[0],
|
|
28967
|
+
requestConfig: {
|
|
28968
|
+
filterInit: 'qp-code-in'
|
|
28969
|
+
},
|
|
28970
|
+
onChange: function onChange(value) {
|
|
28971
|
+
if (dataInputBusinessType === 12) {
|
|
28972
|
+
values[0] = value.map(function (i) {
|
|
28973
|
+
return i.key;
|
|
28974
|
+
});
|
|
28975
|
+
valueNames[0] = value.map(function (i) {
|
|
28976
|
+
return i.label || '';
|
|
28977
|
+
});
|
|
28978
|
+
} else {
|
|
28979
|
+
values[0] = [value.key];
|
|
28980
|
+
valueNames[0] = [value.label || ''];
|
|
28981
|
+
}
|
|
28982
|
+
callback(values, valueNames);
|
|
28983
|
+
},
|
|
28984
|
+
getPopupContainer: function getPopupContainer() {
|
|
28985
|
+
return document.body;
|
|
28986
|
+
}
|
|
28987
|
+
}), /*#__PURE__*/React.createElement("span", null, "~"), /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
28988
|
+
selectBusinessType: "role",
|
|
28989
|
+
selectProps: _objectSpread2({
|
|
28990
|
+
style: styleCommon,
|
|
28991
|
+
placeholder: '请选择角色'
|
|
28992
|
+
}, dataInputBusinessType === 12 ? {
|
|
28993
|
+
mode: 'multiple',
|
|
28994
|
+
maxTagCount: 1
|
|
28995
|
+
} : {}),
|
|
28996
|
+
disabled: disabled,
|
|
28997
|
+
labelInValue: true,
|
|
28998
|
+
value: values[1],
|
|
28999
|
+
requestConfig: {
|
|
29000
|
+
filterInit: 'qp-code-in'
|
|
29001
|
+
},
|
|
29002
|
+
onChange: function onChange(value) {
|
|
29003
|
+
if (dataInputBusinessType === 12) {
|
|
29004
|
+
values[1] = value.map(function (i) {
|
|
29005
|
+
return i.key;
|
|
29006
|
+
});
|
|
29007
|
+
valueNames[1] = value.map(function (i) {
|
|
29008
|
+
return i.label || '';
|
|
29009
|
+
});
|
|
29010
|
+
} else {
|
|
29011
|
+
values[1] = [value.key];
|
|
29012
|
+
valueNames[1] = [value.label || ''];
|
|
29013
|
+
}
|
|
29014
|
+
callback(values, valueNames);
|
|
29015
|
+
},
|
|
29016
|
+
getPopupContainer: function getPopupContainer() {
|
|
29017
|
+
return document.body;
|
|
29018
|
+
}
|
|
29019
|
+
}));
|
|
29020
|
+
} else {
|
|
29021
|
+
var _values12;
|
|
29022
|
+
var _currentValue11 = dataInputBusinessType === 12 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
|
|
29023
|
+
return {
|
|
29024
|
+
key: s,
|
|
29025
|
+
label: valueNames[vIndex]
|
|
29026
|
+
};
|
|
29027
|
+
})) || [] : values[0] && {
|
|
29028
|
+
key: values[0],
|
|
29029
|
+
label: valueNames[0]
|
|
29030
|
+
} || {};
|
|
29031
|
+
return /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
29032
|
+
selectBusinessType: "role",
|
|
29033
|
+
selectProps: _objectSpread2({
|
|
29034
|
+
style: styleCommon,
|
|
29035
|
+
placeholder: '请选择角色'
|
|
29036
|
+
}, dataInputBusinessType === 12 ? {
|
|
29037
|
+
mode: 'multiple',
|
|
29038
|
+
maxTagCount: 1
|
|
29039
|
+
} : {}),
|
|
29040
|
+
disabled: disabled,
|
|
29041
|
+
labelInValue: true,
|
|
29042
|
+
value: _currentValue11,
|
|
29043
|
+
requestConfig: {
|
|
29044
|
+
filterInit: 'qp-code-in'
|
|
29045
|
+
},
|
|
29046
|
+
onChange: function onChange(value) {
|
|
29047
|
+
if (dataInputBusinessType === 12) {
|
|
29048
|
+
values = value.map(function (i) {
|
|
29049
|
+
return i.key;
|
|
29050
|
+
}) || [];
|
|
29051
|
+
valueNames = value.map(function (i) {
|
|
29052
|
+
return i.label || '';
|
|
29053
|
+
}) || [];
|
|
29054
|
+
} else {
|
|
29055
|
+
values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
|
|
29056
|
+
valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
|
|
29057
|
+
}
|
|
29058
|
+
callback(values, valueNames);
|
|
29059
|
+
},
|
|
29060
|
+
getPopupContainer: function getPopupContainer() {
|
|
29061
|
+
return document.body;
|
|
29062
|
+
}
|
|
29063
|
+
});
|
|
29064
|
+
}
|
|
29065
|
+
}
|
|
28595
29066
|
} else {
|
|
28596
29067
|
if (dataTypeCode == 22 || dataTypeCode == 21 || dataTypeCode == 24 || dataTypeCode == 23) {
|
|
28597
29068
|
//数值22, 字符串21, 布尔类型24, long23
|
|
@@ -28627,12 +29098,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
28627
29098
|
}
|
|
28628
29099
|
});
|
|
28629
29100
|
}
|
|
28630
|
-
} else if (dataTypeCode == 41) {
|
|
28631
|
-
// 日期41
|
|
29101
|
+
} else if (dataTypeCode == 41 || dataTypeCode == 32) {
|
|
29102
|
+
// 日期41 日期时间32
|
|
28632
29103
|
if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
|
|
28633
|
-
return /*#__PURE__*/React.createElement(RangePicker
|
|
28634
|
-
|
|
28635
|
-
, {
|
|
29104
|
+
return /*#__PURE__*/React.createElement(RangePicker, {
|
|
29105
|
+
showTime: dataTypeCode == 32,
|
|
28636
29106
|
disabled: disabled,
|
|
28637
29107
|
style: {
|
|
28638
29108
|
width: customerWidth || '300px'
|
|
@@ -28656,6 +29126,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
28656
29126
|
});
|
|
28657
29127
|
} else {
|
|
28658
29128
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(DatePicker, {
|
|
29129
|
+
showTime: dataTypeCode == 32,
|
|
28659
29130
|
format: dataTypeCode == 41 ? dateFormat : fullDateFormat,
|
|
28660
29131
|
disabled: disabled,
|
|
28661
29132
|
style: {
|
|
@@ -29275,6 +29746,54 @@ var RuleField$1 = /*#__PURE__*/function (_Component) {
|
|
|
29275
29746
|
return RuleField;
|
|
29276
29747
|
}(Component);
|
|
29277
29748
|
|
|
29749
|
+
var InnerSelect = (function (props) {
|
|
29750
|
+
var disabled = props.disabled,
|
|
29751
|
+
inputType = props.inputType,
|
|
29752
|
+
defaultValue = props.defaultValue,
|
|
29753
|
+
styleCommon = props.styleCommon,
|
|
29754
|
+
value = props.value,
|
|
29755
|
+
_onChange = props.onChange,
|
|
29756
|
+
dictionaryCode = props.dictionaryCode;
|
|
29757
|
+
var _useState = useState(getDictionarySource(dictionaryCode !== null && dictionaryCode !== void 0 ? dictionaryCode : '') || []),
|
|
29758
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
29759
|
+
dataSource = _useState2[0],
|
|
29760
|
+
setDataSource = _useState2[1];
|
|
29761
|
+
useEffect(function () {
|
|
29762
|
+
if (!!dictionaryCode && !getDictionarySource(dictionaryCode)) {
|
|
29763
|
+
request$1({
|
|
29764
|
+
url: "/basic/bscDictItem/allItemList?qp-code-eq=".concat(dictionaryCode),
|
|
29765
|
+
method: 'get',
|
|
29766
|
+
converter: function converter(_ref) {
|
|
29767
|
+
var _data$map;
|
|
29768
|
+
var data = _ref.data;
|
|
29769
|
+
var dataList = (data === null || data === void 0 ? void 0 : (_data$map = data.map) === null || _data$map === void 0 ? void 0 : _data$map.call(data, function (item) {
|
|
29770
|
+
return {
|
|
29771
|
+
label: item.dictItemName,
|
|
29772
|
+
value: item.dictItemCode
|
|
29773
|
+
};
|
|
29774
|
+
})) || [];
|
|
29775
|
+
setDataSource(dataList);
|
|
29776
|
+
return dataList;
|
|
29777
|
+
}
|
|
29778
|
+
});
|
|
29779
|
+
}
|
|
29780
|
+
}, [dictionaryCode]);
|
|
29781
|
+
return /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({
|
|
29782
|
+
disabled: disabled
|
|
29783
|
+
}, inputType === 30 ? {
|
|
29784
|
+
mode: 'multiple'
|
|
29785
|
+
} : {}), {}, {
|
|
29786
|
+
defaultValue: defaultValue,
|
|
29787
|
+
style: styleCommon,
|
|
29788
|
+
value: value === null || value === void 0 ? void 0 : value.split(','),
|
|
29789
|
+
onChange: function onChange(changeValue) {
|
|
29790
|
+
_onChange(changeValue);
|
|
29791
|
+
// handleEdit(ites.code, value);
|
|
29792
|
+
},
|
|
29793
|
+
options: dataSource
|
|
29794
|
+
}));
|
|
29795
|
+
});
|
|
29796
|
+
|
|
29278
29797
|
var RangePicker$1 = DatePicker.RangePicker;
|
|
29279
29798
|
var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
29280
29799
|
_inherits(RuleObjectComponent, _Component);
|
|
@@ -29692,18 +30211,18 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29692
30211
|
onClick: function onClick() {
|
|
29693
30212
|
_this.handleLogicalTypeChange(itemDetail, 'or');
|
|
29694
30213
|
}
|
|
29695
|
-
}, "
|
|
30214
|
+
}, "\u6216\u8005"), /*#__PURE__*/React.createElement("p", {
|
|
29696
30215
|
className: 'choose_logical_type',
|
|
29697
30216
|
onClick: function onClick() {
|
|
29698
30217
|
_this.handleLogicalTypeChange(itemDetail, 'and');
|
|
29699
30218
|
}
|
|
29700
|
-
}, "
|
|
30219
|
+
}, "\u5E76\u4E14")),
|
|
29701
30220
|
trigger: "focus"
|
|
29702
30221
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
29703
30222
|
disabled: disabled,
|
|
29704
30223
|
type: "link",
|
|
29705
30224
|
className: 'logical_item_btn'
|
|
29706
|
-
}, (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.operationCode) == 'or' ? '
|
|
30225
|
+
}, (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.operationCode) == 'or' ? '或者' : '并且', /*#__PURE__*/React.createElement(DownOutlined, {
|
|
29707
30226
|
style: {
|
|
29708
30227
|
marginLeft: '6px'
|
|
29709
30228
|
}
|
|
@@ -29986,7 +30505,9 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29986
30505
|
onChange: function onChange(value) {
|
|
29987
30506
|
handleEdit(ites.code, value);
|
|
29988
30507
|
}
|
|
29989
|
-
}) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 41 && /*#__PURE__*/React.createElement(DatePicker, {
|
|
30508
|
+
}) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 41 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 32) && /*#__PURE__*/React.createElement(DatePicker, {
|
|
30509
|
+
showTime: dataTypeCode == 32,
|
|
30510
|
+
format: dataTypeCode == 41 ? dateFormat : fullDateFormat,
|
|
29990
30511
|
disabled: disabled,
|
|
29991
30512
|
defaultValue: ites.defaultValue,
|
|
29992
30513
|
style: style2,
|
|
@@ -30029,23 +30550,17 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30029
30550
|
key: it,
|
|
30030
30551
|
value: it
|
|
30031
30552
|
}, ites.enumeration[it]);
|
|
30032
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 20 && /*#__PURE__*/React.createElement(
|
|
30033
|
-
disabled: disabled
|
|
30034
|
-
|
|
30035
|
-
mode: 'multiple'
|
|
30036
|
-
} : {}, {
|
|
30553
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 20 && /*#__PURE__*/React.createElement(InnerSelect, {
|
|
30554
|
+
disabled: disabled,
|
|
30555
|
+
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
30037
30556
|
defaultValue: ites.defaultValue,
|
|
30038
|
-
|
|
30557
|
+
styleCommon: styleCommon,
|
|
30039
30558
|
value: showValue(ites.code),
|
|
30040
30559
|
onChange: function onChange(value) {
|
|
30041
30560
|
handleEdit(ites.code, value);
|
|
30042
|
-
}
|
|
30043
|
-
|
|
30044
|
-
|
|
30045
|
-
key: it.value,
|
|
30046
|
-
value: it.value
|
|
30047
|
-
}, it.text);
|
|
30048
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 110 && /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
30561
|
+
},
|
|
30562
|
+
dictionaryCode: ites.dictionaryCode
|
|
30563
|
+
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 110 && /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
30049
30564
|
selectBusinessType: "physicalWarehouse",
|
|
30050
30565
|
selectProps: _objectSpread2({
|
|
30051
30566
|
style: styleCommon,
|
|
@@ -30352,6 +30867,19 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30352
30867
|
getPopupContainer: function getPopupContainer() {
|
|
30353
30868
|
return document.body;
|
|
30354
30869
|
}
|
|
30870
|
+
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 290 && /*#__PURE__*/React.createElement(BusinessTreeSearchSelect$1, {
|
|
30871
|
+
disabled: disabled,
|
|
30872
|
+
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
30873
|
+
businessType: "settle-organization",
|
|
30874
|
+
labelInValue: true,
|
|
30875
|
+
value: showValue(ites.code),
|
|
30876
|
+
style: styleCommon,
|
|
30877
|
+
onChange: function onChange(value) {
|
|
30878
|
+
handleEdit(ites.code, value);
|
|
30879
|
+
},
|
|
30880
|
+
getPopupContainer: function getPopupContainer() {
|
|
30881
|
+
return document.body;
|
|
30882
|
+
}
|
|
30355
30883
|
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 && /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
30356
30884
|
selectBusinessType: "deliveryMode",
|
|
30357
30885
|
selectProps: _objectSpread2({
|
|
@@ -30373,6 +30901,27 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30373
30901
|
getPopupContainer: function getPopupContainer() {
|
|
30374
30902
|
return document.body;
|
|
30375
30903
|
}
|
|
30904
|
+
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 360 && /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
30905
|
+
selectBusinessType: "role",
|
|
30906
|
+
selectProps: _objectSpread2({
|
|
30907
|
+
style: styleCommon,
|
|
30908
|
+
placeholder: '请选择角色'
|
|
30909
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30910
|
+
mode: 'multiple',
|
|
30911
|
+
maxTagCount: 1
|
|
30912
|
+
} : {}),
|
|
30913
|
+
disabled: disabled,
|
|
30914
|
+
labelInValue: true,
|
|
30915
|
+
value: showValue(ites.code),
|
|
30916
|
+
requestConfig: {
|
|
30917
|
+
filterInit: 'qp-code-in'
|
|
30918
|
+
},
|
|
30919
|
+
onChange: function onChange(value) {
|
|
30920
|
+
handleEdit(ites.code, value);
|
|
30921
|
+
},
|
|
30922
|
+
getPopupContainer: function getPopupContainer() {
|
|
30923
|
+
return document.body;
|
|
30924
|
+
}
|
|
30376
30925
|
}) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && /*#__PURE__*/React.createElement("div", {
|
|
30377
30926
|
style: {
|
|
30378
30927
|
display: 'flex'
|