@bit-sun/business-component 2.4.24 → 2.4.26-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/dist/components/Business/BsLayouts/service.d.ts +1 -1
- package/dist/components/Business/BsSulaQueryTable/index.d.ts +0 -1
- package/dist/components/Business/BsSulaQueryTable/setting.d.ts +1 -1
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +0 -1
- package/dist/components/Business/columnSettingTable/columnSetting.d.ts +0 -1
- package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +1 -1
- package/dist/components/Functional/QueryMutipleInput/index.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/services.d.ts +1 -1
- package/dist/index.esm.js +1185 -1739
- package/dist/index.js +1179 -1735
- package/dist/utils/TableUtils.d.ts +2 -93
- package/dist/utils/index.d.ts +4 -6
- package/dist/utils/utils.d.ts +0 -13
- package/package.json +4 -7
- 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/close.svg +26 -26
- package/src/assets/drag.svg +17 -17
- package/src/assets/fixed-left.svg +15 -15
- 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.tsx +22 -40
- 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/customMenuHeader.tsx +74 -74
- 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.tsx +157 -163
- package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +85 -85
- package/src/components/Business/BsLayouts/Components/RightContent/index.tsx +2 -19
- 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 -1494
- package/src/components/Business/BsLayouts/service.ts +2 -2
- package/src/components/Business/BsLayouts/utils.tsx +203 -203
- package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +9 -9
- package/src/components/Business/BsSulaQueryTable/index.less +221 -221
- package/src/components/Business/BsSulaQueryTable/index.tsx +175 -346
- package/src/components/Business/BsSulaQueryTable/setting.tsx +87 -125
- package/src/components/Business/BsSulaQueryTable/utils.tsx +34 -57
- package/src/components/Business/CommodityEntry/index.md +70 -70
- package/src/components/Business/CommodityEntry/index.tsx +81 -80
- package/src/components/Business/CommonGuideWrapper/index.less +112 -121
- package/src/components/Business/CommonGuideWrapper/index.md +39 -39
- package/src/components/Business/CommonGuideWrapper/index.tsx +84 -94
- package/src/components/Business/DetailPageWrapper/index.less +1 -9
- package/src/components/Business/DetailPageWrapper/index.tsx +110 -121
- package/src/components/Business/HomePageWrapper/index.md +45 -45
- package/src/components/Business/HomePageWrapper/index.tsx +162 -162
- 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/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/SearchSelect/utils.ts +3 -3
- package/src/components/Business/StateFlow/index.md +60 -60
- package/src/components/Business/StateFlow/index.tsx +29 -29
- package/src/components/Business/columnSettingTable/columnSetting.tsx +8 -10
- package/src/components/Business/columnSettingTable/index.less +247 -247
- package/src/components/Business/columnSettingTable/index.md +357 -357
- 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.tsx +387 -387
- package/src/components/Business/moreTreeTable/utils.ts +126 -126
- package/src/components/Functional/AddSelect/helps.ts +3 -4
- package/src/components/Functional/AddSelect/index.less +367 -367
- package/src/components/Functional/AddSelect/index.tsx +33 -79
- package/src/components/Functional/BillEntry/index.less +371 -371
- package/src/components/Functional/BillEntry/index.tsx +3 -3
- package/src/components/Functional/BsAntdSula/index.ts +2 -2
- package/src/components/Functional/DataImport/index.less +63 -63
- package/src/components/Functional/DataImport/index.tsx +3 -3
- package/src/components/Functional/DataValidation/index.less +63 -63
- package/src/components/Functional/DataValidation/index.tsx +3 -3
- package/src/components/Functional/EllipsisTooltip/index.d.ts +5 -5
- package/src/components/Functional/EllipsisTooltip/index.js +36 -36
- package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +5 -10
- package/src/components/Functional/QueryMutipleInput/index.less +37 -37
- package/src/components/Functional/QueryMutipleInput/index.tsx +1 -2
- package/src/components/Functional/SearchSelect/index.less +0 -6
- package/src/components/Functional/SearchSelect/index.tsx +45 -152
- package/src/components/Functional/SearchSelect/utils.ts +3 -3
- package/src/components/Functional/TreeSearchSelect/index.tsx +22 -24
- package/src/components/Solution/RuleComponent/Formula.tsx +335 -335
- package/src/components/Solution/RuleComponent/index.d.ts +29 -29
- package/src/components/Solution/RuleComponent/index.js +652 -7
- package/src/components/Solution/RuleComponent/index.less +230 -230
- package/src/components/Solution/RuleComponent/renderSpecificAction.js +99 -99
- package/src/components/Solution/RuleComponent/services.ts +13 -13
- package/src/plugin/TableColumnSetting/index.less +247 -247
- package/src/plugin/TableColumnSetting/index.md +50 -50
- package/src/plugin/TableColumnSetting/index.tsx +2 -2
- package/src/plugin/TableColumnSetting/utils.ts +19 -19
- package/src/utils/CheckOneUser/index.md +39 -39
- package/src/utils/CheckOneUser/index.ts +51 -51
- package/src/utils/LocalstorageUtils.ts +95 -95
- package/src/utils/TableUtils.tsx +18 -691
- 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 -6
- package/src/utils/requestUtils.ts +2 -29
- package/src/utils/serialize.js +7 -7
- package/src/utils/utils.ts +21 -64
- package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +0 -3
- package/dist/components/Business/BsLayouts/Components/ChooseStore/services.d.ts +0 -1
- package/dist/components/Business/BsLayouts/Components/RightContent/i18n.d.ts +0 -9
- package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +0 -2
- package/dist/utils/businessUtils.d.ts +0 -27
- package/dist/utils/constant.d.ts +0 -37
- package/dist/utils/request.d.ts +0 -2
- package/src/assets/arrow_top.svg +0 -18
- package/src/components/Business/BsLayouts/Components/ChooseStore/index.less +0 -0
- package/src/components/Business/BsLayouts/Components/ChooseStore/index.tsx +0 -193
- package/src/components/Business/BsLayouts/Components/ChooseStore/services.ts +0 -10
- package/src/components/Business/BsLayouts/Components/RightContent/i18n.ts +0 -9
- package/src/components/Business/BsSulaQueryTable/bssulaquerytable.less +0 -5
- package/src/components/Solution/RuleComponent/RenderCompItem.tsx +0 -637
- package/src/utils/TableUtils.less +0 -52
- package/src/utils/businessUtils.ts +0 -441
- package/src/utils/constant.ts +0 -39
- package/src/utils/request.ts +0 -53
package/dist/index.esm.js
CHANGED
|
@@ -1,26 +1,22 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
|
-
import request$1 from 'umi-request';
|
|
3
2
|
import cookie from 'js-cookie';
|
|
4
|
-
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, Breadcrumb, Drawer as Drawer$1, List,
|
|
5
|
-
import _, {
|
|
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';
|
|
4
|
+
import _, { omit, debounce, cloneDeep as cloneDeep$1, throttle, isEmpty } from 'lodash';
|
|
5
|
+
import { history, formatMessage, useLocation, Link, useModel, useIntl } from 'umi';
|
|
6
|
+
import isEqual from 'lodash/isEqual';
|
|
6
7
|
import React, { useState, useEffect, forwardRef, useImperativeHandle, useRef, useMemo, Component, useLayoutEffect, createRef } from 'react';
|
|
7
8
|
import moment$1 from 'moment';
|
|
8
|
-
import '@/assets/list-no-img.svg';
|
|
9
|
-
import { Table as Table$1, request as request$2, QueryTable, Form as Form$1 } from 'bssula';
|
|
10
9
|
import { UnorderedListOutlined, ProfileTwoTone, ExclamationCircleOutlined, DownOutlined, CopyOutlined, SearchOutlined, CaretLeftOutlined, CloseCircleOutlined, ArrowLeftOutlined, FolderOutlined, EllipsisOutlined, CaretDownOutlined, HomeOutlined, DoubleLeftOutlined, DoubleRightOutlined, MenuUnfoldOutlined, DashOutlined, SettingOutlined, BulbOutlined, PlayCircleOutlined, SaveOutlined, FullscreenExitOutlined, EditOutlined, MinusCircleOutlined, PlusCircleOutlined } from '@ant-design/icons';
|
|
11
|
-
import {
|
|
12
|
-
import isEqual from 'lodash/isEqual';
|
|
13
|
-
import 'qs';
|
|
10
|
+
import { Table as Table$1, request as request$1, QueryTable, Form as Form$1 } from 'bssula';
|
|
14
11
|
import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
|
|
15
|
-
import { useDebounceFn,
|
|
12
|
+
import { useDebounceFn, useMount } from 'ahooks';
|
|
16
13
|
import { stringify } from 'querystring';
|
|
17
14
|
import { Resizable } from 'react-resizable';
|
|
18
15
|
import { SortableHandle, SortableElement, SortableContainer } from 'react-sortable-hoc';
|
|
19
16
|
import { arrayMoveImmutable } from 'array-move';
|
|
20
|
-
import classNames from 'classnames';
|
|
21
17
|
import ProLayout from '@ant-design/pro-layout';
|
|
22
18
|
import cloneDeep from 'lodash/cloneDeep';
|
|
23
|
-
import
|
|
19
|
+
import classNames from 'classnames';
|
|
24
20
|
import { DndProvider, useDrop, useDrag } from 'react-dnd';
|
|
25
21
|
import { HTML5Backend } from 'react-dnd-html5-backend';
|
|
26
22
|
import Editor$1, { monaco } from '@monaco-editor/react';
|
|
@@ -479,6 +475,20 @@ function _defineProperty(obj, key, value) {
|
|
|
479
475
|
}
|
|
480
476
|
return obj;
|
|
481
477
|
}
|
|
478
|
+
function _extends() {
|
|
479
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
480
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
481
|
+
var source = arguments[i];
|
|
482
|
+
for (var key in source) {
|
|
483
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
484
|
+
target[key] = source[key];
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
return target;
|
|
489
|
+
};
|
|
490
|
+
return _extends.apply(this, arguments);
|
|
491
|
+
}
|
|
482
492
|
function _inherits(subClass, superClass) {
|
|
483
493
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
484
494
|
throw new TypeError("Super expression must either be null or a function");
|
|
@@ -603,9 +613,7 @@ var ENUM = {
|
|
|
603
613
|
}
|
|
604
614
|
};
|
|
605
615
|
|
|
606
|
-
var resposne =
|
|
607
|
-
return JSON.parse(localStorage.getItem(ENUM.BROWSER_CACHE.USER_INFO) || '{}');
|
|
608
|
-
};
|
|
616
|
+
var resposne = JSON.parse(localStorage.getItem(ENUM.BROWSER_CACHE.USER_INFO) || '{}');
|
|
609
617
|
// 存储表头
|
|
610
618
|
var setConfigTableColumns = function setConfigTableColumns(configvalue, tableCode) {
|
|
611
619
|
var config = localStorage.getItem(ENUM.BROWSER_CACHE.COLUMN_CONDITION) || '[]';
|
|
@@ -640,36 +648,35 @@ var getCurrentTenantId = function getCurrentTenantId() {
|
|
|
640
648
|
return localStorage.getItem('current_tenant_id') || 1;
|
|
641
649
|
};
|
|
642
650
|
function getEmployeeId() {
|
|
643
|
-
var _resposne
|
|
644
|
-
return (
|
|
651
|
+
var _resposne$employeeRes;
|
|
652
|
+
return (resposne === null || resposne === void 0 ? void 0 : (_resposne$employeeRes = resposne.employeeResVo) === null || _resposne$employeeRes === void 0 ? void 0 : _resposne$employeeRes.id) || 2;
|
|
645
653
|
}
|
|
646
654
|
function getEmployeeCode() {
|
|
647
|
-
var
|
|
648
|
-
return
|
|
655
|
+
var _resposne$employeeRes2;
|
|
656
|
+
return resposne === null || resposne === void 0 ? void 0 : (_resposne$employeeRes2 = resposne.employeeResVo) === null || _resposne$employeeRes2 === void 0 ? void 0 : _resposne$employeeRes2.employeeNumber;
|
|
649
657
|
}
|
|
650
658
|
function getSessionId() {
|
|
651
|
-
|
|
652
|
-
return ((_resposne3 = resposne()) === null || _resposne3 === void 0 ? void 0 : _resposne3.sessionId) || '';
|
|
659
|
+
return (resposne === null || resposne === void 0 ? void 0 : resposne.sessionId) || '';
|
|
653
660
|
}
|
|
654
661
|
function getAccountId() {
|
|
655
|
-
var
|
|
656
|
-
return (
|
|
662
|
+
var _resposne$accountPers;
|
|
663
|
+
return (resposne === null || resposne === void 0 ? void 0 : (_resposne$accountPers = resposne.accountPersonDetail) === null || _resposne$accountPers === void 0 ? void 0 : _resposne$accountPers.accountId) || -1;
|
|
657
664
|
}
|
|
658
665
|
function getUserId() {
|
|
659
|
-
var _resposne$
|
|
660
|
-
return (_resposne$
|
|
666
|
+
var _resposne$accountPers2;
|
|
667
|
+
return (_resposne$accountPers2 = resposne.accountPersonDetail) === null || _resposne$accountPers2 === void 0 ? void 0 : _resposne$accountPers2.username;
|
|
661
668
|
}
|
|
662
669
|
function getAccountID() {
|
|
663
|
-
var
|
|
664
|
-
return
|
|
670
|
+
var _resposne$accountPers3;
|
|
671
|
+
return resposne === null || resposne === void 0 ? void 0 : (_resposne$accountPers3 = resposne.accountPersonDetail) === null || _resposne$accountPers3 === void 0 ? void 0 : _resposne$accountPers3.id;
|
|
665
672
|
}
|
|
666
673
|
function getUserName() {
|
|
667
|
-
var
|
|
668
|
-
return
|
|
674
|
+
var _resposne$accountPers4;
|
|
675
|
+
return resposne === null || resposne === void 0 ? void 0 : (_resposne$accountPers4 = resposne.accountPersonDetail) === null || _resposne$accountPers4 === void 0 ? void 0 : _resposne$accountPers4.employeeName;
|
|
669
676
|
}
|
|
670
677
|
function handleUserPhone() {
|
|
671
|
-
var
|
|
672
|
-
var str = (
|
|
678
|
+
var _resposne$person;
|
|
679
|
+
var str = (resposne === null || resposne === void 0 ? void 0 : (_resposne$person = resposne.person) === null || _resposne$person === void 0 ? void 0 : _resposne$person.phone) || '';
|
|
673
680
|
var enStr = str && str.slice(0, 3) + '****' + str.slice(str.length - 4);
|
|
674
681
|
return enStr;
|
|
675
682
|
}
|
|
@@ -798,7 +805,7 @@ var handleCommonHeader = function handleCommonHeader() {
|
|
|
798
805
|
* 处理请求头方法-包含一般请求头、权限请求头。组件默认统一处理一遍,若组件使用处需要可以单独在组件处传参进来处理
|
|
799
806
|
* @param {*} config 请求参数配置
|
|
800
807
|
* */
|
|
801
|
-
var
|
|
808
|
+
var handleRequestHeader = function handleRequestHeader(config) {
|
|
802
809
|
var commonHeaders = handleCommonHeader();
|
|
803
810
|
if (localStorage.getItem('x-user-auth-context')) {
|
|
804
811
|
// @ts-ignore
|
|
@@ -809,30 +816,9 @@ var handleAxioRequestHeader = function handleAxioRequestHeader(config) {
|
|
|
809
816
|
};
|
|
810
817
|
// 拦截器
|
|
811
818
|
axios.interceptors.request.use(function (config) {
|
|
812
|
-
|
|
819
|
+
handleRequestHeader(config);
|
|
813
820
|
return config;
|
|
814
821
|
});
|
|
815
|
-
var handleRequestHeader = function handleRequestHeader(url, options) {
|
|
816
|
-
var commonHeaders = handleCommonHeader();
|
|
817
|
-
var config = {
|
|
818
|
-
url: url,
|
|
819
|
-
headers: _objectSpread2({}, options === null || options === void 0 ? void 0 : options.headers)
|
|
820
|
-
};
|
|
821
|
-
if (localStorage.getItem('x-user-auth-context')) {
|
|
822
|
-
// @ts-ignore
|
|
823
|
-
commonHeaders['x-user-auth-context'] = localStorage.getItem('x-user-auth-context');
|
|
824
|
-
}
|
|
825
|
-
!!!config.headers['x-biz-code'] && handleRequestAuthHeader(config);
|
|
826
|
-
config.headers = _objectSpread2(_objectSpread2({}, commonHeaders), config.headers);
|
|
827
|
-
options.headers = config.headers;
|
|
828
|
-
};
|
|
829
|
-
request$1.interceptors.request.use(function (url, options) {
|
|
830
|
-
handleRequestHeader(url, options);
|
|
831
|
-
return {
|
|
832
|
-
url: url,
|
|
833
|
-
options: options
|
|
834
|
-
};
|
|
835
|
-
});
|
|
836
822
|
/**
|
|
837
823
|
* 处理请求路径前缀/请求路径等使用不一的问题
|
|
838
824
|
* @param {*} defaultUrl 默认请求路径
|
|
@@ -929,76 +915,6 @@ var precisionQuantity = function precisionQuantity(num, accuracy) {
|
|
|
929
915
|
return '';
|
|
930
916
|
};
|
|
931
917
|
|
|
932
|
-
/* 字面量 */
|
|
933
|
-
// 字面量数字
|
|
934
|
-
var NUMBER_VALUE = Object.freeze({
|
|
935
|
-
ZERO: 0,
|
|
936
|
-
ONE: 1,
|
|
937
|
-
TWO: 2,
|
|
938
|
-
THREE: 3,
|
|
939
|
-
FOUR: 4,
|
|
940
|
-
FIVE: 5,
|
|
941
|
-
SIX: 6,
|
|
942
|
-
SEVEN: 7,
|
|
943
|
-
EIGHT: 8,
|
|
944
|
-
NINE: 9,
|
|
945
|
-
TEN: 10,
|
|
946
|
-
ELEVEN: 11,
|
|
947
|
-
TWELVE: 12,
|
|
948
|
-
THIRTEEN: 13,
|
|
949
|
-
FOURTEEN: 14,
|
|
950
|
-
FIFTEEN: 15,
|
|
951
|
-
SIXTEEN: 16,
|
|
952
|
-
SEVENTEEN: 17,
|
|
953
|
-
EIGHTEEN: 18,
|
|
954
|
-
NINETEEN: 19,
|
|
955
|
-
TWENTY: 20,
|
|
956
|
-
TWENTY_ONE: 21,
|
|
957
|
-
TWENTY_TWO: 22,
|
|
958
|
-
TWENTY_THREE: 23,
|
|
959
|
-
TWENTY_FOUR: 24
|
|
960
|
-
});
|
|
961
|
-
|
|
962
|
-
function styleInject(css, ref) {
|
|
963
|
-
if ( ref === void 0 ) ref = {};
|
|
964
|
-
var insertAt = ref.insertAt;
|
|
965
|
-
|
|
966
|
-
if (!css || typeof document === 'undefined') { return; }
|
|
967
|
-
|
|
968
|
-
var head = document.head || document.getElementsByTagName('head')[0];
|
|
969
|
-
var style = document.createElement('style');
|
|
970
|
-
style.type = 'text/css';
|
|
971
|
-
|
|
972
|
-
if (insertAt === 'top') {
|
|
973
|
-
if (head.firstChild) {
|
|
974
|
-
head.insertBefore(style, head.firstChild);
|
|
975
|
-
} else {
|
|
976
|
-
head.appendChild(style);
|
|
977
|
-
}
|
|
978
|
-
} else {
|
|
979
|
-
head.appendChild(style);
|
|
980
|
-
}
|
|
981
|
-
|
|
982
|
-
if (style.styleSheet) {
|
|
983
|
-
style.styleSheet.cssText = css;
|
|
984
|
-
} else {
|
|
985
|
-
style.appendChild(document.createTextNode(css));
|
|
986
|
-
}
|
|
987
|
-
}
|
|
988
|
-
|
|
989
|
-
var css_248z = ".user_info_card :global .ant-popover-inner-content {\n padding: 0px !important;\n}\n.user_info_card :global .ant-card-body {\n padding: 0px !important;\n}\n.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";
|
|
990
|
-
styleInject(css_248z);
|
|
991
|
-
|
|
992
|
-
var getSkuImg = function getSkuImg(record) {
|
|
993
|
-
var _record$mediaList;
|
|
994
|
-
// 默认取sku图片、当没有设置时取商品图片,商品图片也没有返回空
|
|
995
|
-
var ImgList = ((_record$mediaList = record.mediaList) === null || _record$mediaList === void 0 ? void 0 : _record$mediaList.length) && record.mediaList.filter(function (i) {
|
|
996
|
-
return i.type == 1;
|
|
997
|
-
}) || []; // 获取SKU、SPU图片数组集合
|
|
998
|
-
var imgShow = (ImgList === null || ImgList === void 0 ? void 0 : ImgList.length) && ImgList[0].url || null;
|
|
999
|
-
return imgShow;
|
|
1000
|
-
};
|
|
1001
|
-
|
|
1002
918
|
var simpleIsEqual = function simpleIsEqual(a, b) {
|
|
1003
919
|
return a === b;
|
|
1004
920
|
};
|
|
@@ -1036,8 +952,35 @@ function index$1 (resultFn, isEqual) {
|
|
|
1036
952
|
return result;
|
|
1037
953
|
}
|
|
1038
954
|
|
|
1039
|
-
|
|
1040
|
-
|
|
955
|
+
function styleInject(css, ref) {
|
|
956
|
+
if ( ref === void 0 ) ref = {};
|
|
957
|
+
var insertAt = ref.insertAt;
|
|
958
|
+
|
|
959
|
+
if (!css || typeof document === 'undefined') { return; }
|
|
960
|
+
|
|
961
|
+
var head = document.head || document.getElementsByTagName('head')[0];
|
|
962
|
+
var style = document.createElement('style');
|
|
963
|
+
style.type = 'text/css';
|
|
964
|
+
|
|
965
|
+
if (insertAt === 'top') {
|
|
966
|
+
if (head.firstChild) {
|
|
967
|
+
head.insertBefore(style, head.firstChild);
|
|
968
|
+
} else {
|
|
969
|
+
head.appendChild(style);
|
|
970
|
+
}
|
|
971
|
+
} else {
|
|
972
|
+
head.appendChild(style);
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
if (style.styleSheet) {
|
|
976
|
+
style.styleSheet.cssText = css;
|
|
977
|
+
} else {
|
|
978
|
+
style.appendChild(document.createTextNode(css));
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
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";
|
|
983
|
+
styleInject(css_248z);
|
|
1041
984
|
|
|
1042
985
|
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";
|
|
1043
986
|
|
|
@@ -1187,57 +1130,109 @@ function handleCommonTimeRender(text, format) {
|
|
|
1187
1130
|
var getItemDefaultWidth = function getItemDefaultWidth(item) {
|
|
1188
1131
|
var _ref;
|
|
1189
1132
|
var defaultWidth = 200;
|
|
1190
|
-
if (Array.isArray(item.key) || Array.isArray(item.dataIndex)) return defaultWidth;
|
|
1191
1133
|
var lowerCaseKey = (_ref = item.key || item.dataIndex) === null || _ref === void 0 ? void 0 : _ref.toLowerCase();
|
|
1192
|
-
if (
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1134
|
+
if (lowerCaseKey) {
|
|
1135
|
+
switch (true) {
|
|
1136
|
+
case (item === null || item === void 0 ? void 0 : item.title) === '操作' || lowerCaseKey === 'operate':
|
|
1137
|
+
defaultWidth = 60;
|
|
1138
|
+
break;
|
|
1139
|
+
case lowerCaseKey.indexOf('number') > -1:
|
|
1140
|
+
case lowerCaseKey.indexOf('quantity') > -1:
|
|
1141
|
+
case lowerCaseKey.indexOf('amount') > -1:
|
|
1142
|
+
defaultWidth = 90;
|
|
1143
|
+
break;
|
|
1144
|
+
case lowerCaseKey.indexOf('no') > -1:
|
|
1145
|
+
defaultWidth = 200;
|
|
1146
|
+
break;
|
|
1147
|
+
case lowerCaseKey.indexOf('code') > -1:
|
|
1148
|
+
defaultWidth = 170;
|
|
1149
|
+
break;
|
|
1150
|
+
case lowerCaseKey.indexOf('time') > -1:
|
|
1151
|
+
defaultWidth = 130;
|
|
1152
|
+
break;
|
|
1153
|
+
case lowerCaseKey.indexOf('status') > -1:
|
|
1154
|
+
defaultWidth = 100;
|
|
1155
|
+
break;
|
|
1156
|
+
case lowerCaseKey.indexOf('user') > -1:
|
|
1157
|
+
defaultWidth = 130;
|
|
1158
|
+
break;
|
|
1159
|
+
}
|
|
1217
1160
|
}
|
|
1218
1161
|
return defaultWidth;
|
|
1219
1162
|
};
|
|
1163
|
+
/**
|
|
1164
|
+
* 查询参数处理
|
|
1165
|
+
* @param params 要应用于查询的参数
|
|
1166
|
+
* @returns 返回处理后的查询参数
|
|
1167
|
+
*/
|
|
1168
|
+
function queryParams(params, flag) {
|
|
1169
|
+
var _loop = function _loop() {
|
|
1170
|
+
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
1171
|
+
var element = params[key];
|
|
1172
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
1173
|
+
var dataParams = key.split('*number*');
|
|
1174
|
+
dataParams.forEach(function (value, index) {
|
|
1175
|
+
params[value] = element[index];
|
|
1176
|
+
});
|
|
1177
|
+
delete params[key];
|
|
1178
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
1179
|
+
var _dataParams = key.split('*address*');
|
|
1180
|
+
_dataParams.forEach(function (value, index) {
|
|
1181
|
+
params[value] = element.PCDCode[index];
|
|
1182
|
+
});
|
|
1183
|
+
delete params[key];
|
|
1184
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
1185
|
+
var _dataParams2 = key.split('*costType*');
|
|
1186
|
+
// eslint-disable-next-line prefer-destructuring
|
|
1187
|
+
params[_dataParams2[0]] = element[1];
|
|
1188
|
+
delete params[key];
|
|
1189
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
1190
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
1191
|
+
_dataParams3.forEach(function (value, index) {
|
|
1192
|
+
if (index === 0) {
|
|
1193
|
+
params[value] = moment$1(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
1194
|
+
} else {
|
|
1195
|
+
params[value] = moment$1(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
1196
|
+
}
|
|
1197
|
+
});
|
|
1198
|
+
delete params[key];
|
|
1199
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
1200
|
+
var _dataParams4 = key.split('*');
|
|
1201
|
+
_dataParams4.forEach(function (value, index) {
|
|
1202
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
1203
|
+
});
|
|
1204
|
+
delete params[key];
|
|
1205
|
+
} else if (element && key.indexOf('_likeIn_') >= 0) {
|
|
1206
|
+
var _dataParams5 = key.split('_likeIn_');
|
|
1207
|
+
if (element.indexOf(',') >= 0) {
|
|
1208
|
+
params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
|
|
1209
|
+
params["qp-".concat(_dataParams5[0], "-like")] = null;
|
|
1210
|
+
} else {
|
|
1211
|
+
params["qp-".concat(_dataParams5[0], "-like")] = element;
|
|
1212
|
+
params["qp-".concat(_dataParams5[0], "-in")] = null;
|
|
1213
|
+
}
|
|
1214
|
+
delete params[key];
|
|
1215
|
+
} else if (Array.isArray(element)) {
|
|
1216
|
+
params[key] = element.join(',');
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1219
|
+
};
|
|
1220
|
+
for (var key in params) {
|
|
1221
|
+
_loop();
|
|
1222
|
+
}
|
|
1223
|
+
return flag ? params : qs.stringify(params);
|
|
1224
|
+
}
|
|
1220
1225
|
/**
|
|
1221
1226
|
* 根据用户权限检验对应按钮是够显示 !!!!现在先去掉
|
|
1222
1227
|
* @param code 对应权限值
|
|
1223
1228
|
* @returns boolean
|
|
1224
1229
|
*/
|
|
1225
1230
|
var authFn = function authFn(code) {
|
|
1226
|
-
if (!code) {
|
|
1227
|
-
return true;
|
|
1228
|
-
}
|
|
1229
1231
|
var authButton = localStorage.getItem(ENUM.BROWSER_CACHE.MAIN_AUTH_CODES) ? JSON.parse(localStorage.getItem(ENUM.BROWSER_CACHE.MAIN_AUTH_CODES)) : [];
|
|
1230
1232
|
return authButton.findIndex(function (d) {
|
|
1231
1233
|
return d === code;
|
|
1232
1234
|
}) !== -1;
|
|
1233
1235
|
};
|
|
1234
|
-
// 可以将普通字符串 或者tsx 转换成字符串
|
|
1235
|
-
var renderToString = function renderToString(render) {
|
|
1236
|
-
return render;
|
|
1237
|
-
// return typeof render === 'string'
|
|
1238
|
-
// ? render
|
|
1239
|
-
// : ReactDOMServer.renderToString(render);
|
|
1240
|
-
};
|
|
1241
1236
|
|
|
1242
1237
|
var formatter = function formatter(data, parentAuthority, parentName) {
|
|
1243
1238
|
return data.map(function (item) {
|
|
@@ -1288,49 +1283,52 @@ var handleBssulaColumnsSpecialParams = function handleBssulaColumnsSpecialParams
|
|
|
1288
1283
|
var text = _ref.text;
|
|
1289
1284
|
return handleTooltipHours(text, col.timeRenderHour);
|
|
1290
1285
|
};
|
|
1291
|
-
}
|
|
1292
|
-
|
|
1286
|
+
}
|
|
1287
|
+
// 处理不显示 时分秒的时间
|
|
1288
|
+
if (col.timeRender) {
|
|
1293
1289
|
col.render = function (_ref2) {
|
|
1294
1290
|
var text = _ref2.text;
|
|
1295
1291
|
return handleTooltip(text, col.timeRender);
|
|
1296
1292
|
};
|
|
1297
|
-
}
|
|
1298
|
-
|
|
1293
|
+
}
|
|
1294
|
+
// 处理文字太长
|
|
1295
|
+
if (col.textOverflow) {
|
|
1299
1296
|
col.render = function (_ref3) {
|
|
1300
1297
|
var text = _ref3.text;
|
|
1301
1298
|
return handleTextOverflow(text, col.width);
|
|
1302
1299
|
};
|
|
1303
|
-
}
|
|
1300
|
+
}
|
|
1301
|
+
if (col.images) {
|
|
1304
1302
|
col.render = function (_ref4) {
|
|
1305
1303
|
var text = _ref4.text;
|
|
1306
1304
|
return tableColumnsImage(text);
|
|
1307
1305
|
};
|
|
1308
|
-
}
|
|
1306
|
+
}
|
|
1307
|
+
if (col.double) {
|
|
1309
1308
|
col.render = function (_ref5) {
|
|
1310
1309
|
var record = _ref5.record;
|
|
1311
1310
|
return handleTextDouble(record[col.textOne], record[col.textTwo]);
|
|
1312
1311
|
};
|
|
1313
|
-
}
|
|
1312
|
+
}
|
|
1313
|
+
if (col.lineFeed) {
|
|
1314
1314
|
col.render = function (_ref6) {
|
|
1315
1315
|
var text = _ref6.text;
|
|
1316
1316
|
return handleTextLineFeed(text);
|
|
1317
1317
|
};
|
|
1318
|
-
}
|
|
1319
|
-
|
|
1318
|
+
}
|
|
1319
|
+
// 处理序号
|
|
1320
|
+
if (col.indexNumber) {
|
|
1320
1321
|
col.render = function (_ref7) {
|
|
1321
1322
|
var index = _ref7.index;
|
|
1322
1323
|
return index + 1;
|
|
1323
1324
|
};
|
|
1324
|
-
}
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
});
|
|
1328
|
-
} else if (!col.render) {
|
|
1329
|
-
// 没有值默认显示 - -
|
|
1325
|
+
}
|
|
1326
|
+
// 没有值默认显示 - -
|
|
1327
|
+
if (!col.render) {
|
|
1330
1328
|
// col.render = ({ text }: any) => text || '- -';
|
|
1331
1329
|
col.render = function (_ref8) {
|
|
1332
1330
|
var text = _ref8.text;
|
|
1333
|
-
return text
|
|
1331
|
+
return text || '--';
|
|
1334
1332
|
};
|
|
1335
1333
|
}
|
|
1336
1334
|
};
|
|
@@ -1424,64 +1422,10 @@ var judgeIsEmpty = function judgeIsEmpty(value) {
|
|
|
1424
1422
|
return false;
|
|
1425
1423
|
};
|
|
1426
1424
|
|
|
1427
|
-
var
|
|
1428
|
-
|
|
1429
|
-
return request$1.get(url, _objectSpread2({}, params)).then(handleResponseData);
|
|
1430
|
-
};
|
|
1431
|
-
var post = function post(url, data) {
|
|
1432
|
-
return request$1.post(url, {
|
|
1433
|
-
data: data
|
|
1434
|
-
}).then(handleResponseData);
|
|
1435
|
-
};
|
|
1436
|
-
var patch = function patch(url, data) {
|
|
1437
|
-
return request$1.patch(url, {
|
|
1438
|
-
data: data
|
|
1439
|
-
}).then(handleResponseData);
|
|
1440
|
-
};
|
|
1441
|
-
var put = function put(url, data) {
|
|
1442
|
-
return request$1.put(url, {
|
|
1443
|
-
data: data
|
|
1444
|
-
}).then(handleResponseData);
|
|
1445
|
-
};
|
|
1446
|
-
var deleteS = function deleteS(url, data) {
|
|
1447
|
-
return request$1.delete(url, {
|
|
1448
|
-
data: data
|
|
1449
|
-
}).then(handleResponseData);
|
|
1450
|
-
};
|
|
1451
|
-
var requestUtil = function requestUtil(_ref) {
|
|
1452
|
-
var url = _ref.url,
|
|
1453
|
-
parms = _objectWithoutProperties(_ref, _excluded);
|
|
1454
|
-
return request$1(url, parms).then(handleResponseData);
|
|
1455
|
-
};
|
|
1456
|
-
var handleResponseData = /*#__PURE__*/function () {
|
|
1457
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
1458
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1459
|
-
while (1) switch (_context.prev = _context.next) {
|
|
1460
|
-
case 0:
|
|
1461
|
-
return _context.abrupt("return", Promise.resolve({
|
|
1462
|
-
data: response,
|
|
1463
|
-
status: response.status
|
|
1464
|
-
}));
|
|
1465
|
-
case 1:
|
|
1466
|
-
case "end":
|
|
1467
|
-
return _context.stop();
|
|
1468
|
-
}
|
|
1469
|
-
}, _callee);
|
|
1470
|
-
}));
|
|
1471
|
-
return function handleResponseData(_x) {
|
|
1472
|
-
return _ref2.apply(this, arguments);
|
|
1473
|
-
};
|
|
1474
|
-
}();
|
|
1475
|
-
requestUtil.get = get;
|
|
1476
|
-
requestUtil.post = post;
|
|
1477
|
-
requestUtil.patch = patch;
|
|
1478
|
-
requestUtil.put = put;
|
|
1479
|
-
requestUtil.delete = deleteS;
|
|
1480
|
-
|
|
1481
|
-
var css_248z$2 = ".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";
|
|
1482
|
-
styleInject(css_248z$2);
|
|
1425
|
+
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";
|
|
1426
|
+
styleInject(css_248z$1);
|
|
1483
1427
|
|
|
1484
|
-
var _excluded
|
|
1428
|
+
var _excluded = ["flag", "checkResults"],
|
|
1485
1429
|
_excluded2 = ["flag", "checkResults"];
|
|
1486
1430
|
// const luckysheet = window.luckysheet;
|
|
1487
1431
|
var itemsTemp = [];
|
|
@@ -1743,7 +1687,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
1743
1687
|
}).map(function (_ref2) {
|
|
1744
1688
|
var flag = _ref2.flag,
|
|
1745
1689
|
checkResults = _ref2.checkResults,
|
|
1746
|
-
item = _objectWithoutProperties(_ref2, _excluded
|
|
1690
|
+
item = _objectWithoutProperties(_ref2, _excluded);
|
|
1747
1691
|
return item;
|
|
1748
1692
|
}),
|
|
1749
1693
|
failData: resultData.filter(function (item) {
|
|
@@ -1789,7 +1733,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
1789
1733
|
brandAuth: 'ctl-withAuth'
|
|
1790
1734
|
};
|
|
1791
1735
|
}
|
|
1792
|
-
|
|
1736
|
+
axios.post(validDataUrl, _objectSpread2(_objectSpread2(_objectSpread2({}, otherParams), validDataParams), {}, {
|
|
1793
1737
|
columns: columns,
|
|
1794
1738
|
data: resultData,
|
|
1795
1739
|
checkStockNum: isCheckStockNum
|
|
@@ -2046,10 +1990,10 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2046
1990
|
return DataValidation;
|
|
2047
1991
|
}(React.Component);
|
|
2048
1992
|
|
|
2049
|
-
var css_248z$
|
|
2050
|
-
styleInject(css_248z$
|
|
1993
|
+
var css_248z$2 = ".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";
|
|
1994
|
+
styleInject(css_248z$2);
|
|
2051
1995
|
|
|
2052
|
-
var _excluded$
|
|
1996
|
+
var _excluded$1 = ["flag", "checkResults"],
|
|
2053
1997
|
_excluded2$1 = ["flag", "checkResults"];
|
|
2054
1998
|
// const luckysheet = window.luckysheet;
|
|
2055
1999
|
var itemsTemp$1 = [];
|
|
@@ -2312,7 +2256,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
2312
2256
|
}).map(function (_ref2) {
|
|
2313
2257
|
var flag = _ref2.flag,
|
|
2314
2258
|
checkResults = _ref2.checkResults,
|
|
2315
|
-
item = _objectWithoutProperties(_ref2, _excluded$
|
|
2259
|
+
item = _objectWithoutProperties(_ref2, _excluded$1);
|
|
2316
2260
|
return item;
|
|
2317
2261
|
}),
|
|
2318
2262
|
failData: resultData.filter(function (item) {
|
|
@@ -2349,7 +2293,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
2349
2293
|
var resultData = _this.getData().filter(function (d) {
|
|
2350
2294
|
return _.compact(Object.values(d)).length;
|
|
2351
2295
|
});
|
|
2352
|
-
|
|
2296
|
+
axios.post(validDataUrl, {
|
|
2353
2297
|
columns: columns,
|
|
2354
2298
|
data: resultData
|
|
2355
2299
|
}).then(function (result) {
|
|
@@ -2622,12 +2566,11 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
2622
2566
|
return DataImport;
|
|
2623
2567
|
}(React.Component);
|
|
2624
2568
|
|
|
2625
|
-
var css_248z$
|
|
2626
|
-
styleInject(css_248z$
|
|
2569
|
+
var css_248z$3 = ".query_input_show {\n display: flex;\n}\n.query_input_expand_button {\n position: relative;\n width: 30px;\n color: #ffffff;\n cursor: pointer;\n}\n.query_input_expand_button span {\n position: absolute;\n height: 20px;\n line-height: 14px;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.query_input_wrapper {\n display: flex;\n}\n.query_input_wrapper_left {\n width: 100px;\n}\n.query_input_wrapper_right {\n color: #9e9e9e;\n}\n.query_input_textArea {\n margin-top: 15px;\n}\n";
|
|
2570
|
+
styleInject(css_248z$3);
|
|
2627
2571
|
|
|
2628
2572
|
var QueryMutipleInput = function QueryMutipleInput(_ref) {
|
|
2629
|
-
var onValueChange = _ref.onValueChange
|
|
2630
|
-
_onPressEnter = _ref.onPressEnter;
|
|
2573
|
+
var onValueChange = _ref.onValueChange;
|
|
2631
2574
|
var _useState = useState(false),
|
|
2632
2575
|
_useState2 = _slicedToArray(_useState, 2),
|
|
2633
2576
|
isModalVisible = _useState2[0],
|
|
@@ -2690,10 +2633,7 @@ var QueryMutipleInput = function QueryMutipleInput(_ref) {
|
|
|
2690
2633
|
style: {
|
|
2691
2634
|
width: 'calc(100% - 30px)'
|
|
2692
2635
|
},
|
|
2693
|
-
placeholder: "\u8BF7\u8F93\u5165\uFF08\u67E5\u8BE2\u591A\u4E2A\u503C\u8BF7\u7528 ; \u6216 , \u5206\u5272\uFF09"
|
|
2694
|
-
onPressEnter: function onPressEnter() {
|
|
2695
|
-
return _onPressEnter === null || _onPressEnter === void 0 ? void 0 : _onPressEnter();
|
|
2696
|
-
}
|
|
2636
|
+
placeholder: "\u8BF7\u8F93\u5165\uFF08\u67E5\u8BE2\u591A\u4E2A\u503C\u8BF7\u7528 ; \u6216 , \u5206\u5272\uFF09"
|
|
2697
2637
|
}), /*#__PURE__*/React.createElement(Button, {
|
|
2698
2638
|
style: {
|
|
2699
2639
|
width: '30px',
|
|
@@ -2743,8 +2683,8 @@ function ToCDB(str) {
|
|
|
2743
2683
|
return tmp;
|
|
2744
2684
|
}
|
|
2745
2685
|
|
|
2746
|
-
var css_248z$
|
|
2747
|
-
styleInject(css_248z$
|
|
2686
|
+
var css_248z$4 = ".search_select_show {\n display: flex;\n}\n.search_select_expand_button {\n position: relative;\n width: 30px;\n color: #ffffff;\n cursor: pointer;\n}\n.search_select_expand_button span {\n position: absolute;\n height: 20px;\n line-height: 14px;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.search_select_wrapper {\n position: relative;\n display: flex;\n min-height: 60vh;\n max-height: 60vh;\n overflow: hidden;\n font-size: 14px;\n}\n.search_select_wrapper_click_flag {\n position: absolute;\n z-index: 10;\n}\n.search_select_wrapper_click_flag_arrow {\n transform: rotate(0deg);\n transition: transform 0.5s;\n}\n.search_select_wrapper_click_flag_arrow_1 {\n transform: rotate(-180deg);\n transition: transform 0.5s;\n}\n.search_select_wrapper_left {\n width: 28%;\n overflow-y: hidden;\n transition: all 0.3s;\n margin-left: 20px;\n}\n.search_select_wrapper_left1 {\n width: 0;\n height: 0;\n transition: all 0.3s;\n display: none;\n}\n.search_select_wrapper_right {\n width: 70%;\n margin-left: 1%;\n}\n.search_select_wrapper_right1 {\n width: 100%;\n margin-left: 20px;\n}\n.search_select_wrapper_right,\n.search_select_wrapper_right1 {\n overflow-x: auto;\n}\n.search_select_wrapper .select_list_columns {\n width: 100%;\n height: calc(60vh - 60px);\n overflow-y: auto;\n border: 1px solid #d8d8d8;\n}\n.search_select_wrapper .select_list_columns_tips {\n background: #eee;\n padding: 6px 20px;\n margin-bottom: 10px;\n}\n.search_select_wrapper .select_list_columns_formItems {\n padding: 0 20px;\n}\n.search_select_wrapper .select_list_searchButton {\n display: flex;\n margin: 10px 0px;\n justify-content: flex-end;\n}\n.search_select_wrapper .select_list_button_space {\n margin-right: 10px;\n}\n.search_select_wrapper .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 34px;\n line-height: 32px;\n background-color: #eee;\n margin-bottom: 10px;\n padding: 0 12px;\n}\n.search_select_wrapper .select_list_selectAll {\n position: relative;\n top: -40px;\n left: 20px;\n width: 160px;\n}\n";
|
|
2687
|
+
styleInject(css_248z$4);
|
|
2748
2688
|
|
|
2749
2689
|
var handleSourceName = function handleSourceName(sName) {
|
|
2750
2690
|
return sName;
|
|
@@ -3031,16 +2971,6 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
3031
2971
|
}
|
|
3032
2972
|
});
|
|
3033
2973
|
delete params[key];
|
|
3034
|
-
} else if (element && key.indexOf('*multiInput') >= 0) {
|
|
3035
|
-
var name = '',
|
|
3036
|
-
_value = element['value'];
|
|
3037
|
-
if (_value.indexOf(',') >= 0) {
|
|
3038
|
-
name = "qp-".concat(element['name'], "-in");
|
|
3039
|
-
} else {
|
|
3040
|
-
name = "qp-".concat(element['name'], "-like");
|
|
3041
|
-
}
|
|
3042
|
-
params[name] = _value;
|
|
3043
|
-
delete params[key];
|
|
3044
2974
|
} else if (element && key.indexOf('*') >= 0) {
|
|
3045
2975
|
var _dataParams7 = key.split('*');
|
|
3046
2976
|
_dataParams7.forEach(function (value, index) {
|
|
@@ -3075,10 +3005,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
3075
3005
|
pageSize: pageSize,
|
|
3076
3006
|
currentPage: currentPage
|
|
3077
3007
|
}, otherParams), fixedParam), params);
|
|
3078
|
-
|
|
3079
|
-
queryParams[selectParamsKey] = searchValue;
|
|
3080
|
-
}
|
|
3081
|
-
requestUtil.get("".concat(url, "?").concat(stringify(queryParams)), {
|
|
3008
|
+
axios.get("".concat(url, "?").concat(stringify(queryParams)), {
|
|
3082
3009
|
headers: _objectSpread2({}, extralHeaders)
|
|
3083
3010
|
}).then(function (result) {
|
|
3084
3011
|
setFetching(false);
|
|
@@ -3405,9 +3332,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
3405
3332
|
if (heightTxt === '') {
|
|
3406
3333
|
return text;
|
|
3407
3334
|
}
|
|
3408
|
-
var searchString = escapeRegExp(heightTxt);
|
|
3409
3335
|
// 前面filterOption 不区分大小写,这里用i
|
|
3410
|
-
var regexp = new RegExp(
|
|
3336
|
+
var regexp = new RegExp(heightTxt, 'gi');
|
|
3411
3337
|
return text.replace(regexp, "<span style=\"color:red\">".concat(heightTxt, "</span>"));
|
|
3412
3338
|
};
|
|
3413
3339
|
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
@@ -3640,10 +3566,9 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
3640
3566
|
}
|
|
3641
3567
|
}), menu);
|
|
3642
3568
|
},
|
|
3643
|
-
notFoundContent: fetching ?
|
|
3644
|
-
size: "small"
|
|
3645
|
-
|
|
3646
|
-
})) : ( /*#__PURE__*/React.createElement("div", {
|
|
3569
|
+
notFoundContent: fetching ? /*#__PURE__*/React.createElement(Spin, {
|
|
3570
|
+
size: "small"
|
|
3571
|
+
}) : /*#__PURE__*/React.createElement("div", {
|
|
3647
3572
|
style: {
|
|
3648
3573
|
textAlign: 'center'
|
|
3649
3574
|
}
|
|
@@ -3655,7 +3580,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
3655
3580
|
style: {
|
|
3656
3581
|
fontSize: '50px'
|
|
3657
3582
|
}
|
|
3658
|
-
})), /*#__PURE__*/React.createElement("div", null, "\u65E0\u5339\u914D\u7ED3\u679C\uFF0C\u8BF7\u66F4\u6362\u5176\u4ED6\u5185\u5BB9\u518D\u8BD5"))
|
|
3583
|
+
})), /*#__PURE__*/React.createElement("div", null, "\u65E0\u5339\u914D\u7ED3\u679C\uFF0C\u8BF7\u66F4\u6362\u5176\u4ED6\u5185\u5BB9\u518D\u8BD5")),
|
|
3659
3584
|
onPopupScroll: SelectScroll,
|
|
3660
3585
|
style: {
|
|
3661
3586
|
width: needModalTable ? 'calc(100% - 30px)' : 'calc(100%)'
|
|
@@ -3683,7 +3608,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
3683
3608
|
onClick: showModal,
|
|
3684
3609
|
type: "primary"
|
|
3685
3610
|
}, /*#__PURE__*/React.createElement(SearchOutlined, null))))), needModalTable && isModalVisible && ( /*#__PURE__*/React.createElement(Modal, _objectSpread2({
|
|
3686
|
-
width:
|
|
3611
|
+
width: '80%',
|
|
3687
3612
|
title: modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.modalTableTitle,
|
|
3688
3613
|
visible: isModalVisible,
|
|
3689
3614
|
onOk: handleOk,
|
|
@@ -3716,16 +3641,16 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
3716
3641
|
className: 'select_list_columns_formItems'
|
|
3717
3642
|
}, /*#__PURE__*/React.createElement(Form, {
|
|
3718
3643
|
form: form,
|
|
3719
|
-
layout:
|
|
3720
|
-
key:
|
|
3644
|
+
layout: 'vertical',
|
|
3645
|
+
key: 'modalForm'
|
|
3721
3646
|
}, formItem(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm)))), /*#__PURE__*/React.createElement("div", {
|
|
3722
3647
|
className: 'select_list_searchButton'
|
|
3723
3648
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
3724
|
-
key:
|
|
3649
|
+
key: 'reset',
|
|
3725
3650
|
className: 'select_list_button_space',
|
|
3726
3651
|
onClick: onResetTable
|
|
3727
3652
|
}, "\u91CD\u7F6E"), /*#__PURE__*/React.createElement(Button, {
|
|
3728
|
-
key:
|
|
3653
|
+
key: 'search',
|
|
3729
3654
|
type: "primary",
|
|
3730
3655
|
onClick: onSearchTable
|
|
3731
3656
|
}, "\u67E5\u8BE2"))), /*#__PURE__*/React.createElement("div", {
|
|
@@ -3738,14 +3663,14 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
3738
3663
|
}
|
|
3739
3664
|
}, "\u641C\u7D22\u7ED3\u679C\u5171", /*#__PURE__*/React.createElement("span", {
|
|
3740
3665
|
style: themeColor
|
|
3741
|
-
}, (tablePagination === null || tablePagination === void 0 ? void 0 : tablePagination.total) || 0), "\u9879", selectMode ?
|
|
3666
|
+
}, (tablePagination === null || tablePagination === void 0 ? void 0 : tablePagination.total) || 0), "\u9879", selectMode ? /*#__PURE__*/React.createElement("span", null, "\uFF0C \u672C\u6B21\u5DF2\u9009", /*#__PURE__*/React.createElement("span", {
|
|
3742
3667
|
style: themeColor
|
|
3743
|
-
}, (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0), "\u9879")
|
|
3668
|
+
}, (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0), "\u9879") : ''), /*#__PURE__*/React.createElement("div", {
|
|
3744
3669
|
style: {
|
|
3745
3670
|
color: 'rgba(127, 127, 127, 0.6470588235294118)'
|
|
3746
3671
|
}
|
|
3747
3672
|
}, selectMode ? '勾选后点击确定按钮完成选择' : '双击数据行或点击单选图标完成选择')), /*#__PURE__*/React.createElement(Table, {
|
|
3748
|
-
size:
|
|
3673
|
+
size: 'small',
|
|
3749
3674
|
rowSelection: rowSelection,
|
|
3750
3675
|
columns: modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns,
|
|
3751
3676
|
dataSource: tableData,
|
|
@@ -3763,18 +3688,18 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
3763
3688
|
}
|
|
3764
3689
|
};
|
|
3765
3690
|
}
|
|
3766
|
-
}), selectMode ?
|
|
3691
|
+
}), selectMode ? /*#__PURE__*/React.createElement("div", {
|
|
3767
3692
|
className: 'select_list_selectAll'
|
|
3768
3693
|
}, /*#__PURE__*/React.createElement(Checkbox, {
|
|
3769
3694
|
indeterminate: indeterminate,
|
|
3770
3695
|
checked: checkedAll,
|
|
3771
3696
|
onChange: onChangeCheckAll,
|
|
3772
3697
|
disabled: (selectProps === null || selectProps === void 0 ? void 0 : selectProps.disabled) || (props === null || props === void 0 ? void 0 : props.disabled)
|
|
3773
|
-
}),
|
|
3698
|
+
}), " \u5168\u9009\u6240\u6709\u9875\u9762") : ''))))));
|
|
3774
3699
|
});
|
|
3775
3700
|
|
|
3776
|
-
var css_248z$
|
|
3777
|
-
styleInject(css_248z$
|
|
3701
|
+
var css_248z$5 = ".add_select_show {\n display: flex;\n}\n.add_select_expand_button {\n position: relative;\n width: 30px;\n color: #ffffff;\n cursor: pointer;\n}\n.add_select_expand_button span {\n position: absolute;\n height: 20px;\n line-height: 14px;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.add_select_header {\n border-bottom: 1px solid #D9D9D9;\n height: 24px;\n height: 40px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n line-height: 40px;\n margin-bottom: 10px;\n padding-left: 10px;\n}\n.add_select_header > span {\n margin-left: 20px;\n font-weight: 400;\n font-size: 12px;\n color: #666666;\n letter-spacing: 0;\n line-height: 40px;\n}\n.add_select_header > span > span {\n color: #ff0000;\n}\n.add_select_header_close span {\n position: absolute;\n color: black !important;\n right: 10px;\n top: 10px;\n}\n.add_select_quick_header {\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.add_select_quick_header_title {\n display: flex;\n justify-content: space-between;\n}\n.add_select_quick_header > span {\n font-weight: 400;\n font-size: 12px;\n color: #666666;\n letter-spacing: 0;\n line-height: 20px;\n}\n.add_select_quick_header > span > span {\n color: #ff0000;\n}\n.add_select_quick_header_close span {\n position: absolute;\n color: black !important;\n right: 10px;\n top: 10px;\n}\n.add_select_wrapper {\n position: relative;\n display: flex;\n max-height: 60vh;\n overflow: hidden;\n font-size: 14px;\n margin: 5px 10px;\n}\n.add_select_wrapper .ant-table-pagination.ant-pagination {\n margin: 5px;\n padding-right: 5px;\n}\n.add_select_wrapper .ant-checkbox-wrapper {\n justify-content: center;\n}\n.add_select_wrapper .ant-form-item-label {\n padding: 0PX;\n line-height: 23px !important;\n}\n.add_select_wrapper .ant-form-item-label > label {\n font-size: 12px;\n}\n.add_select_wrapper .ant-table-thead th {\n height: 20px !important;\n padding: 0px 8px !important;\n font-size: 12px !important;\n font-weight: 600 !important;\n line-height: 20px !important;\n}\n.add_select_wrapper .ant-modal-body {\n padding: 10px;\n}\n.add_select_wrapper .ant-table-wrapper {\n padding: 0px !important;\n}\n.add_select_wrapper .row-class {\n height: 24px;\n}\n.add_select_wrapper .row-class td {\n font-size: 12px !important;\n height: 24px !important;\n padding: 0px 8px !important;\n line-height: 20px !important;\n}\n.add_select_wrapper .ant-table-body {\n height: 240px;\n overflow-y: auto !important;\n}\n.add_select_wrapper .ant-row.ant-form-item {\n margin-bottom: 10px;\n}\n.add_select_wrapper_click_flag {\n position: absolute;\n z-index: 10;\n}\n.add_select_wrapper_click_flag_arrow {\n transform: rotate(0deg);\n transition: transform 0.5s;\n}\n.add_select_wrapper_click_flag_arrow_1 {\n transform: rotate(-180deg);\n transition: transform 0.5s;\n}\n.add_select_wrapper_left {\n flex-basis: 298px;\n width: 298px;\n overflow-y: hidden;\n transition: all 0.3s;\n margin-right: 10px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n}\n.add_select_wrapper_left1 {\n width: 0;\n height: 0;\n transition: all 0.3s;\n display: none;\n}\n.add_select_wrapper_right {\n width: 872px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n}\n.add_select_wrapper_right1 {\n width: 100%;\n margin-left: 10px;\n}\n.add_select_wrapper_right,\n.add_select_wrapper_right1 {\n overflow-x: auto;\n}\n.add_select_wrapper .select_list_columns {\n height: 272px;\n overflow-y: auto;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper .select_list_columns_tips {\n background: #eee;\n padding: 6px 20px;\n margin-bottom: 10px;\n}\n.add_select_wrapper .select_list_columns_formItems {\n padding: 7px 10px;\n}\n.add_select_wrapper .select_list_searchButton {\n display: flex;\n margin: 10px;\n justify-content: flex-end;\n}\n.add_select_wrapper .select_list_button_space {\n margin-right: 10px;\n}\n.add_select_wrapper .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 24px;\n font-size: 12px;\n line-height: 24px;\n background: #F7F8FB;\n padding: 0 5px;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper .select_list_selectAll {\n position: relative;\n top: -40px;\n left: 20px;\n width: 160px;\n}\n.add_select_wrapper_select {\n margin-top: 4px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n margin: 5px 10px;\n}\n.add_select_wrapper_select .ant-table-pagination.ant-pagination {\n margin: 9px;\n padding-right: 5px;\n}\n.add_select_wrapper_select .ant-modal-body {\n padding: 10px;\n}\n.add_select_wrapper_select .ant-table-wrapper {\n padding: 0px !important;\n}\n.add_select_wrapper_select .ant-table-thead th {\n height: 23px !important;\n padding: 0px 8px !important;\n font-size: 12px !important;\n font-weight: 600 !important;\n line-height: 23px !important;\n}\n.add_select_wrapper_select .ant-modal-close-x {\n height: 30px;\n}\n.add_select_wrapper_select .row-class {\n height: 30px;\n}\n.add_select_wrapper_select .row-class td {\n font-size: 12px !important;\n height: 30px !important;\n padding: 4px 8px !important;\n}\n.add_select_wrapper_select .ant-table-body {\n height: 200px;\n overflow-y: auto !important;\n}\n.add_select_wrapper_select .ant-row.ant-form-item {\n margin-bottom: 10px;\n}\n.add_select_wrapper_select .ant-input-number-input,\n.add_select_wrapper_select .ant-input {\n height: auto;\n height: 22px;\n padding: 0px 10px;\n font-size: 12px;\n}\n.add_select_wrapper_select .ant-select-selection-search-input {\n height: auto;\n height: 22px !important;\n padding: 0px 10px;\n font-size: 12px;\n}\n.add_select_wrapper_select .ant-select .ant-select-arrow {\n top: 13px;\n}\n.add_select_wrapper_select .ant-select-selector {\n position: relative;\n top: 1px;\n height: 23px !important;\n line-height: 23px !important;\n}\n.add_select_wrapper_select .ant-select-selector .ant-select-selection-item,\n.add_select_wrapper_select .ant-select-selector ant-select-selection-search {\n height: 23px !important;\n line-height: 23px !important;\n font-size: 12px;\n}\n.add_select_wrapper_select .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 24px;\n font-size: 12px;\n line-height: 24px;\n background: #F7F8FB;\n padding: 0 3px;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper_select_quick {\n margin: 0;\n}\n.react-resizable {\n position: relative;\n background-clip: padding-box;\n}\n.react-resizable-handle {\n position: absolute;\n width: 10px;\n height: 100%;\n bottom: 0;\n right: -5px;\n cursor: col-resize;\n z-index: 1;\n}\n";
|
|
3702
|
+
styleInject(css_248z$5);
|
|
3778
3703
|
|
|
3779
3704
|
var shezhi = "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-1865.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%281636.000000%2C%2014.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%22M4.55801813%2C-4.10857923e-16%20L27.4419819%2C1.84149388e-16%20C29.0269041%2C-1.06996098e-16%2029.6016352%2C0.165023309%2030.181059%2C0.474902584%20C30.7604829%2C0.78478186%2031.2152181%2C1.2395171%2031.5250974%2C1.81894097%20C31.8349767%2C2.39836484%2032%2C2.97309593%2032%2C4.55801813%20L32%2C27.4419819%20C32%2C29.0269041%2031.8349767%2C29.6016352%2031.5250974%2C30.181059%20C31.2152181%2C30.7604829%2030.7604829%2C31.2152181%2030.181059%2C31.5250974%20C29.6016352%2C31.8349767%2029.0269041%2C32%2027.4419819%2C32%20L4.55801813%2C32%20C2.97309593%2C32%202.39836484%2C31.8349767%201.81894097%2C31.5250974%20C1.2395171%2C31.2152181%200.78478186%2C30.7604829%200.474902584%2C30.181059%20C0.165023309%2C29.6016352%202.03054919e-16%2C29.0269041%20-3.49474794e-16%2C27.4419819%20L1.22766259e-16%2C4.55801813%20C-7.13307317e-17%2C2.97309593%200.165023309%2C2.39836484%200.474902584%2C1.81894097%20C0.78478186%2C1.2395171%201.2395171%2C0.78478186%201.81894097%2C0.474902584%20C2.39836484%2C0.165023309%202.97309593%2C2.38720285e-16%204.55801813%2C-4.10857923e-16%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%288.000000%2C%208.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%3Cg%20id%3D%22%E7%BC%96%E7%BB%84%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%3Cpath%20d%3D%22M6.7386444%2C0%20L9.31914658%2C0.00400859106%20C10.1203579%2C0.00538861113%2010.7694605%2C0.676782175%2010.7705276%2C1.50523181%20L10.7714968%2C1.94016563%20C11.2713795%2C2.15465212%2011.7449087%2C2.42965745%2012.1821713%2C2.75942463%20L12.5276921%2C2.55398355%20C13.2221154%2C2.14077391%2014.108963%2C2.38638205%2014.5106808%2C3.10316266%20L15.8040818%2C5.41212013%20C16.1892138%2C6.09972811%2015.990279%2C6.97849852%2015.3500104%2C7.41792671%20L15.2710204%2C7.46803431%20L14.9240458%2C7.67497861%20C14.9836517%2C8.24420078%2014.9763827%2C8.82244228%2014.8983619%2C9.39717628%20L15.1435702%2C9.54399151%20C15.8102761%2C9.94190072%2016.0614337%2C10.8082131%2015.716369%2C11.5197335%20L15.6761471%2C11.5974003%20L14.4646437%2C13.7670587%20C14.079817%2C14.4564299%2013.2419875%2C14.7161258%2012.5538606%2C14.3593303%20L12.4782628%2C14.3172399%20L12.1434032%2C14.1168096%20C11.7223166%2C14.4300773%2011.2678576%2C14.692352%2010.7889425%2C14.8984879%20L10.7889425%2C15.4947682%20C10.7899403%2C16.2891527%2010.1930007%2C16.9472128%209.42624347%2C16.9969935%20L9.33368462%2C17%20L6.75318244%2C16.9959914%20C5.95216%2C16.9946121%205.30313532%2C16.3235232%205.30180138%2C15.4952693%20L5.30034758%2C14.7762254%20C4.90043094%2C14.5820591%204.5195493%2C14.3484795%204.16298822%2C14.0787278%20L3.54463691%2C14.4465175%20C2.85008695%2C14.8596428%201.96320036%2C14.6137998%201.56164819%2C13.8968373%20L0.268247179%2C11.5883809%20C-0.117195104%2C10.9006602%200.0817705641%2C10.0215335%200.722318635%2C9.58207327%20L0.80130867%2C9.53196569%20L1.43032121%2C9.15766204%20C1.38186108%2C8.68163998%201.37943806%2C8.20010611%201.42595979%2C7.71957437%20L0.727649258%2C7.30217819%20C0.0607645902%2C6.90443662%20-0.19061709%2C6.03808438%200.154365869%2C5.32643616%20L0.195072383%2C5.2487694%20L1.40657575%2C3.07911102%20C1.7914024%2C2.38973985%202.62923197%2C2.13004387%203.31735886%2C2.48683938%20L3.39247208%2C2.52892975%20L4.00113138%2C2.89220974%20C4.39780188%2C2.57239271%204.82771303%2C2.29929047%205.28290193%2C2.0779615%20L5.28290193%2C1.50573288%20C5.28164777%2C0.711155235%205.87865691%2C0.0527989874%206.64560094%2C0.00300645504%20L6.73815978%2C0%20L6.7386444%2C0%20Z%20M6.73670598%2C1.50322752%20L6.73815978%2C3.03150881%20L5.90270707%2C3.43788133%20C5.54507128%2C3.61175466%205.20730414%2C3.8262151%204.89619006%2C4.0772541%20L4.12373551%2C4.70059245%20L2.70239975%2C3.85176997%20L2.66605465%2C3.83072478%20L1.45455128%2C6.00038316%20L2.96650749%2C6.90282076%20L2.87249482%2C7.86939606%20C2.83614972%2C8.24470187%202.83760352%2C8.6235152%202.87588705%2C8.99882099%20L2.97571491%2C9.97191026%20L1.52675689%2C10.8347629%20L2.81967328%2C13.1432193%20L4.2584547%2C12.2878828%20L5.02170182%2C12.8656232%20C5.3027003%2C13.0784515%205.60293338%2C13.2627017%205.9182143%2C13.4158045%20L6.75269782%2C13.8211749%20L6.75560543%2C15.4927639%20L9.33562302%2C15.4967725%20L9.33416922%2C13.8958352%20L10.2306817%2C13.5100068%20C10.6067559%2C13.348282%2010.9636539%2C13.1424989%2011.2943817%2C12.8966899%20L12.0571442%2C12.3299732%20L13.2056494%2C13.0154449%20L14.4161836%2C10.8452855%20L13.3229229%2C10.1918826%20L13.4586113%2C9.18922982%20C13.5191865%2C8.74076695%2013.5259709%2C8.28679224%2013.4789646%2C7.83632505%20L13.3771983%2C6.86273469%20L14.5460567%2C6.16523712%20L13.2526557%2C3.85678072%20L12.0896125%2C4.54976861%20L11.3258808%2C3.97403247%20C10.9812567%2C3.71415335%2010.6081041%2C3.4973506%2010.2142053%2C3.32814572%20L9.31963118%2C2.94432162%20L9.31672357%2C1.50723611%20L6.73670598%2C1.50322752%20L6.73670598%2C1.50322752%20Z%20M9.63026065%2C5.81849263%20C11.020555%2C6.64989539%2011.4971522%2C8.48836517%2010.6954144%2C9.92731453%20C10.31057%2C10.6180868%209.67584239%2C11.1222493%208.93115445%2C11.3286616%20C8.18646651%2C11.5350739%207.39296008%2C11.4267887%206.72556016%2C11.0276771%20C5.33544167%2C10.1961028%204.85907177%2C8.35767345%205.66089098%2C6.91885517%20C6.04573388%2C6.22821897%206.68037324%2C5.72415423%207.42494422%2C5.51774917%20C8.16951519%2C5.3113441%208.9629043%2C5.41954018%209.63026065%2C5.81849263%20L9.63026065%2C5.81849263%20Z%20M6.91988529%2C7.6694668%20C6.5185962%2C8.38978735%206.75708884%2C9.31005529%207.45294678%2C9.72638311%20C7.78629255%2C9.92588707%208.18270902%2C9.98005276%208.55473096%2C9.87692908%20C8.92675291%2C9.7738054%209.24380592%2C9.5218675%209.4359355%2C9.17670291%20C9.82059563%2C8.48612828%209.61887592%2C7.60527314%208.97556421%2C7.16638665%20L8.90287401%2C7.11978659%20L8.82776082%2C7.07819729%20C8.14078385%2C6.72100469%207.30360294%2C6.98045534%206.91988529%2C7.6694668%20L6.91988529%2C7.6694668%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%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";
|
|
3780
3705
|
|
|
@@ -3790,10 +3715,10 @@ var fixedRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
3790
3715
|
|
|
3791
3716
|
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";
|
|
3792
3717
|
|
|
3793
|
-
var css_248z$
|
|
3794
|
-
styleInject(css_248z$
|
|
3718
|
+
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";
|
|
3719
|
+
styleInject(css_248z$6);
|
|
3795
3720
|
|
|
3796
|
-
var _excluded$
|
|
3721
|
+
var _excluded$2 = ["className", "style"];
|
|
3797
3722
|
var Search = Input.Search;
|
|
3798
3723
|
var DragHandle = SortableHandle(function () {
|
|
3799
3724
|
return /*#__PURE__*/React.createElement("img", {
|
|
@@ -3838,7 +3763,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
3838
3763
|
fixed: item.fixed
|
|
3839
3764
|
};
|
|
3840
3765
|
});
|
|
3841
|
-
|
|
3766
|
+
axios({
|
|
3842
3767
|
url: handleRequestUrl('/user', '/appConfig/saveUserOrder', appRequestConfig),
|
|
3843
3768
|
method: 'POST',
|
|
3844
3769
|
data: {
|
|
@@ -4146,7 +4071,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
4146
4071
|
_this.DraggableBodyRow = function (_ref2) {
|
|
4147
4072
|
var className = _ref2.className,
|
|
4148
4073
|
style = _ref2.style,
|
|
4149
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
4074
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$2);
|
|
4150
4075
|
var sortDataSource = _this.state.sortDataSource;
|
|
4151
4076
|
// function findIndex base on Table rowKey props and should always be a right array index
|
|
4152
4077
|
var index = sortDataSource.findIndex(function (x) {
|
|
@@ -4432,33 +4357,33 @@ var noEmptyArray = function noEmptyArray(arr) {
|
|
|
4432
4357
|
var getItemDefaultWidth$1 = function getItemDefaultWidth(item) {
|
|
4433
4358
|
var _ref;
|
|
4434
4359
|
var defaultWidth = 200;
|
|
4435
|
-
if (Array.isArray(item.key) || Array.isArray(item.dataIndex)) return defaultWidth;
|
|
4436
4360
|
var lowerCaseKey = (_ref = item.key || item.dataIndex) === null || _ref === void 0 ? void 0 : _ref.toLowerCase();
|
|
4437
|
-
if (
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4361
|
+
if (lowerCaseKey) {
|
|
4362
|
+
switch (true) {
|
|
4363
|
+
case (item === null || item === void 0 ? void 0 : item.title) === '操作' || lowerCaseKey === 'operate':
|
|
4364
|
+
defaultWidth = 60;
|
|
4365
|
+
break;
|
|
4366
|
+
case lowerCaseKey.indexOf('number') > -1:
|
|
4367
|
+
case lowerCaseKey.indexOf('quantity') > -1:
|
|
4368
|
+
case lowerCaseKey.indexOf('amount') > -1:
|
|
4369
|
+
defaultWidth = 90;
|
|
4370
|
+
break;
|
|
4371
|
+
case lowerCaseKey.indexOf('no') > -1:
|
|
4372
|
+
defaultWidth = 200;
|
|
4373
|
+
break;
|
|
4374
|
+
case lowerCaseKey.indexOf('code') > -1:
|
|
4375
|
+
defaultWidth = 170;
|
|
4376
|
+
break;
|
|
4377
|
+
case lowerCaseKey.indexOf('time') > -1:
|
|
4378
|
+
defaultWidth = 130;
|
|
4379
|
+
break;
|
|
4380
|
+
case lowerCaseKey.indexOf('status') > -1:
|
|
4381
|
+
defaultWidth = 100;
|
|
4382
|
+
break;
|
|
4383
|
+
case lowerCaseKey.indexOf('user') > -1:
|
|
4384
|
+
defaultWidth = 130;
|
|
4385
|
+
break;
|
|
4386
|
+
}
|
|
4462
4387
|
}
|
|
4463
4388
|
return defaultWidth;
|
|
4464
4389
|
};
|
|
@@ -4485,7 +4410,7 @@ var getSelectDataList = function getSelectDataList(record, item, selectKey) {
|
|
|
4485
4410
|
};
|
|
4486
4411
|
var loadSelectSource = function loadSelectSource(url, params) {
|
|
4487
4412
|
return new Promise(function (resolve, reject) {
|
|
4488
|
-
|
|
4413
|
+
axios.get("".concat(url, "?").concat(stringify(params))).then(function (result) {
|
|
4489
4414
|
result = result.data;
|
|
4490
4415
|
if (judgeIsRequestError(result)) {
|
|
4491
4416
|
message$1.error(result.msg);
|
|
@@ -4550,11 +4475,10 @@ var formatFormSourceList = function formatFormSourceList(x, loadList, tableSearc
|
|
|
4550
4475
|
});
|
|
4551
4476
|
};
|
|
4552
4477
|
|
|
4553
|
-
var _excluded$
|
|
4554
|
-
_excluded2$2 = ["name", "label", "field", "type", "filterFormItem", "initialSource"];
|
|
4478
|
+
var _excluded$3 = ["onResize", "width"];
|
|
4555
4479
|
var checkSpuMatchCode = function checkSpuMatchCode(data) {
|
|
4556
4480
|
return new Promise(function (resolve, reject) {
|
|
4557
|
-
|
|
4481
|
+
axios.post("/stock/rwFrontRecordSkcDetail/checkSpuMatchCode", data).then(function (result) {
|
|
4558
4482
|
result = result.data;
|
|
4559
4483
|
if (judgeIsRequestError(result)) {
|
|
4560
4484
|
message$1.error(result.msg);
|
|
@@ -4570,7 +4494,7 @@ var checkSpuMatchCode = function checkSpuMatchCode(data) {
|
|
|
4570
4494
|
var ResizeableTitle = function ResizeableTitle(props) {
|
|
4571
4495
|
var onResize = props.onResize,
|
|
4572
4496
|
width = props.width,
|
|
4573
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
4497
|
+
restProps = _objectWithoutProperties(props, _excluded$3);
|
|
4574
4498
|
if (!width) {
|
|
4575
4499
|
return /*#__PURE__*/React.createElement("th", _objectSpread2({}, restProps));
|
|
4576
4500
|
}
|
|
@@ -4605,7 +4529,6 @@ var AddSelect = function AddSelect(props) {
|
|
|
4605
4529
|
needModalTable = _props$needModalTable === void 0 ? true : _props$needModalTable,
|
|
4606
4530
|
_props$getPopupContai = props.getPopupContainer,
|
|
4607
4531
|
onSaveCallback = props.onSaveCallback,
|
|
4608
|
-
onCancelCallback = props.onCancelCallback,
|
|
4609
4532
|
_props$buttonText = props.buttonText,
|
|
4610
4533
|
buttonText = _props$buttonText === void 0 ? '添加' : _props$buttonText,
|
|
4611
4534
|
_props$buttonProps = props.buttonProps,
|
|
@@ -4616,8 +4539,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
4616
4539
|
_props$businessType = props.businessType,
|
|
4617
4540
|
businessType = _props$businessType === void 0 ? 'sku' : _props$businessType,
|
|
4618
4541
|
_props$isAllowRepeate = props.isAllowRepeatedSelect,
|
|
4619
|
-
isAllowRepeatedSelect = _props$isAllowRepeate === void 0 ? false : _props$isAllowRepeate
|
|
4620
|
-
clearTitle = props.clearTitle;
|
|
4542
|
+
isAllowRepeatedSelect = _props$isAllowRepeate === void 0 ? false : _props$isAllowRepeate;
|
|
4621
4543
|
var _ref = requestConfig || {},
|
|
4622
4544
|
url = _ref.url,
|
|
4623
4545
|
otherParams = _ref.otherParams,
|
|
@@ -4770,7 +4692,6 @@ var AddSelect = function AddSelect(props) {
|
|
|
4770
4692
|
setShowToChooseColumns = _useState46[1];
|
|
4771
4693
|
var codeToChoose = tableCodeList[0] || initTableCode[businessType][0];
|
|
4772
4694
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
4773
|
-
// FIXME: 特殊业务逻辑
|
|
4774
4695
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
4775
4696
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
4776
4697
|
var result;
|
|
@@ -4852,7 +4773,6 @@ var AddSelect = function AddSelect(props) {
|
|
|
4852
4773
|
}();
|
|
4853
4774
|
var setBusinessDefaultValue = function setBusinessDefaultValue(list, recordList) {
|
|
4854
4775
|
var result = list;
|
|
4855
|
-
// FIXME: 特殊业务逻辑
|
|
4856
4776
|
if (businessType == 'spu' && ((recordList === null || recordList === void 0 ? void 0 : recordList.some(function (i) {
|
|
4857
4777
|
var _i$colorValues;
|
|
4858
4778
|
return (i === null || i === void 0 ? void 0 : (_i$colorValues = i.colorValues) === null || _i$colorValues === void 0 ? void 0 : _i$colorValues.length) == 1;
|
|
@@ -4891,7 +4811,6 @@ var AddSelect = function AddSelect(props) {
|
|
|
4891
4811
|
var _record$packingUnitLi, _record$packingUnitLi2;
|
|
4892
4812
|
// let
|
|
4893
4813
|
if (record.needFocus === true && currentIndex === 0) ;
|
|
4894
|
-
// FIXME: 特殊业务逻辑
|
|
4895
4814
|
var precisionObj = businessType == 'skc' ? {
|
|
4896
4815
|
precision: 0
|
|
4897
4816
|
} : {};
|
|
@@ -5164,16 +5083,6 @@ var AddSelect = function AddSelect(props) {
|
|
|
5164
5083
|
}
|
|
5165
5084
|
});
|
|
5166
5085
|
delete params[key];
|
|
5167
|
-
} else if (element && key.indexOf('*multiInput') >= 0) {
|
|
5168
|
-
var name = '',
|
|
5169
|
-
_value = element['value'];
|
|
5170
|
-
if (_value.indexOf(',') >= 0) {
|
|
5171
|
-
name = "qp-".concat(element['name'], "-in");
|
|
5172
|
-
} else {
|
|
5173
|
-
name = "qp-".concat(element['name'], "-like");
|
|
5174
|
-
}
|
|
5175
|
-
params[name] = _value;
|
|
5176
|
-
delete params[key];
|
|
5177
5086
|
} else if (element && key.indexOf('*') >= 0) {
|
|
5178
5087
|
var _dataParams7 = key.split('*');
|
|
5179
5088
|
_dataParams7.forEach(function (value, index) {
|
|
@@ -5208,18 +5117,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
5208
5117
|
pageSize: pageSize,
|
|
5209
5118
|
currentPage: currentPage
|
|
5210
5119
|
}, otherParams), fixedParam), params);
|
|
5211
|
-
|
|
5212
|
-
if (!queryParams.unConvert) {
|
|
5213
|
-
Object.keys(queryParams).forEach(function (key) {
|
|
5214
|
-
if (String(queryParams[key]).includes(',')) {
|
|
5215
|
-
if (key.includes('like')) {
|
|
5216
|
-
queryParams[key.replace('like', 'in')] = queryParams[key];
|
|
5217
|
-
delete queryParams[key];
|
|
5218
|
-
}
|
|
5219
|
-
}
|
|
5220
|
-
});
|
|
5221
|
-
}
|
|
5222
|
-
requestUtil.get("".concat(url).concat(url.includes("?") ? "&" : "?").concat(stringify(queryParams))).then(function (result) {
|
|
5120
|
+
axios.get("".concat(url, "?").concat(stringify(queryParams))).then(function (result) {
|
|
5223
5121
|
setFetching(false);
|
|
5224
5122
|
result = result.data;
|
|
5225
5123
|
if (judgeIsRequestError(result)) {
|
|
@@ -5414,31 +5312,27 @@ var AddSelect = function AddSelect(props) {
|
|
|
5414
5312
|
setTableFormParams({});
|
|
5415
5313
|
setIsModalVisible(false);
|
|
5416
5314
|
setTableData([]);
|
|
5417
|
-
onCancelCallback && onCancelCallback();
|
|
5418
5315
|
// if (selectMode) {
|
|
5419
5316
|
// run();
|
|
5420
5317
|
// }
|
|
5421
5318
|
};
|
|
5422
5319
|
var onSearchTable = function onSearchTable() {
|
|
5423
|
-
form.
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
|
|
5320
|
+
var params = form.getFieldsValue();
|
|
5321
|
+
setTableFormParams(params);
|
|
5322
|
+
getData(_objectSpread2(_objectSpread2({}, params), {}, {
|
|
5323
|
+
pageSize: tableInitPageSize
|
|
5324
|
+
}), 2);
|
|
5325
|
+
// if (selectMode) {
|
|
5326
|
+
// getData(params)
|
|
5327
|
+
// }
|
|
5430
5328
|
};
|
|
5431
5329
|
var onResetTable = function onResetTable() {
|
|
5432
5330
|
form.resetFields();
|
|
5433
5331
|
setTableFormParams({});
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
}, 2);
|
|
5439
|
-
}).catch(function () {
|
|
5440
|
-
setTableData([]);
|
|
5441
|
-
});
|
|
5332
|
+
getData({
|
|
5333
|
+
pageSize: tableInitPageSize,
|
|
5334
|
+
currentPage: 1
|
|
5335
|
+
}, 2);
|
|
5442
5336
|
};
|
|
5443
5337
|
var handleTableChange = function handleTableChange(pagination) {
|
|
5444
5338
|
getData(_objectSpread2(_objectSpread2({}, tableFormParams), {}, {
|
|
@@ -5506,69 +5400,62 @@ var AddSelect = function AddSelect(props) {
|
|
|
5506
5400
|
var formItem = function formItem(list) {
|
|
5507
5401
|
if (isModalVisible && (list === null || list === void 0 ? void 0 : list.length)) {
|
|
5508
5402
|
return list.map(function (i, index) {
|
|
5509
|
-
var
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
|
|
5516
|
-
|
|
5517
|
-
restProps = _objectWithoutProperties(i, _excluded2$2);
|
|
5518
|
-
if (type === 'custom_filter_form_item') return filterFormItem;
|
|
5519
|
-
if (type === 'select' || (field === null || field === void 0 ? void 0 : field.type) === 'select') {
|
|
5520
|
-
return /*#__PURE__*/React.createElement(Form.Item, _objectSpread2({
|
|
5521
|
-
name: name,
|
|
5522
|
-
label: label,
|
|
5523
|
-
key: name
|
|
5524
|
-
}, restProps), /*#__PURE__*/React.createElement(Select, _objectSpread2({
|
|
5403
|
+
var _i$field, _i$field3, _i$field5, _i$field6, _i$field7;
|
|
5404
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'select' || (i === null || i === void 0 ? void 0 : (_i$field = i.field) === null || _i$field === void 0 ? void 0 : _i$field.type) === 'select') {
|
|
5405
|
+
var _i$field2, _i$initialSource;
|
|
5406
|
+
return /*#__PURE__*/React.createElement(Form.Item, {
|
|
5407
|
+
name: i.name,
|
|
5408
|
+
label: i.label,
|
|
5409
|
+
key: i.name
|
|
5410
|
+
}, /*#__PURE__*/React.createElement(Select, _objectSpread2({
|
|
5525
5411
|
style: {
|
|
5526
5412
|
width: '100%'
|
|
5527
5413
|
},
|
|
5528
5414
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
5529
|
-
},
|
|
5415
|
+
}, i === null || i === void 0 ? void 0 : (_i$field2 = i.field) === null || _i$field2 === void 0 ? void 0 : _i$field2.props), (i === null || i === void 0 ? void 0 : (_i$initialSource = i.initialSource) === null || _i$initialSource === void 0 ? void 0 : _i$initialSource.length) && (i === null || i === void 0 ? void 0 : i.initialSource.map(function (m) {
|
|
5530
5416
|
return /*#__PURE__*/React.createElement(Option$2, {
|
|
5531
5417
|
value: m.value,
|
|
5532
5418
|
key: m.value
|
|
5533
5419
|
}, m.text);
|
|
5534
|
-
})));
|
|
5420
|
+
}))));
|
|
5535
5421
|
}
|
|
5536
|
-
if (type === 'treeSelect' || (
|
|
5537
|
-
|
|
5538
|
-
|
|
5539
|
-
|
|
5540
|
-
|
|
5541
|
-
|
|
5422
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'treeSelect' || (i === null || i === void 0 ? void 0 : (_i$field3 = i.field) === null || _i$field3 === void 0 ? void 0 : _i$field3.type) === 'treeSelect') {
|
|
5423
|
+
var _i$field4;
|
|
5424
|
+
return /*#__PURE__*/React.createElement(Form.Item, {
|
|
5425
|
+
name: i.name,
|
|
5426
|
+
label: i.label,
|
|
5427
|
+
key: i.name
|
|
5428
|
+
}, /*#__PURE__*/React.createElement(TreeSelect, _objectSpread2({
|
|
5542
5429
|
style: {
|
|
5543
5430
|
width: '100%'
|
|
5544
5431
|
},
|
|
5545
5432
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
5546
|
-
},
|
|
5547
|
-
}
|
|
5548
|
-
if (type === 'BusinessSearchSelect' || (
|
|
5549
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Form.Item,
|
|
5550
|
-
name: name,
|
|
5551
|
-
label: label,
|
|
5552
|
-
key: name
|
|
5553
|
-
},
|
|
5554
|
-
}
|
|
5555
|
-
if (type === 'multipleQueryInput' || (
|
|
5556
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Form.Item,
|
|
5557
|
-
name: name,
|
|
5558
|
-
label: label,
|
|
5559
|
-
key: name
|
|
5560
|
-
},
|
|
5433
|
+
}, i === null || i === void 0 ? void 0 : (_i$field4 = i.field) === null || _i$field4 === void 0 ? void 0 : _i$field4.props)));
|
|
5434
|
+
}
|
|
5435
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'BusinessSearchSelect' || (i === null || i === void 0 ? void 0 : (_i$field5 = i.field) === null || _i$field5 === void 0 ? void 0 : _i$field5.type) === 'BusinessSearchSelect') {
|
|
5436
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Form.Item, {
|
|
5437
|
+
name: i.name,
|
|
5438
|
+
label: i.label,
|
|
5439
|
+
key: i.name
|
|
5440
|
+
}, /*#__PURE__*/React.createElement(BusinessSearchSelect$1, _objectSpread2({}, i.field.props))));
|
|
5441
|
+
}
|
|
5442
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$field6 = i.field) === null || _i$field6 === void 0 ? void 0 : _i$field6.type) === 'multipleQueryInput') {
|
|
5443
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Form.Item, {
|
|
5444
|
+
name: i.name,
|
|
5445
|
+
label: i.label,
|
|
5446
|
+
key: i.name
|
|
5447
|
+
}, /*#__PURE__*/React.createElement(QueryMutipleInput, {
|
|
5561
5448
|
onValueChange: function onValueChange(value) {
|
|
5562
|
-
form.setFieldsValue(_defineProperty({}, name, value));
|
|
5449
|
+
form.setFieldsValue(_defineProperty({}, i.name, value));
|
|
5563
5450
|
}
|
|
5564
5451
|
})));
|
|
5565
5452
|
}
|
|
5566
5453
|
// 默认type是input
|
|
5567
|
-
return /*#__PURE__*/React.createElement(Form.Item,
|
|
5568
|
-
name: name,
|
|
5569
|
-
label: label,
|
|
5570
|
-
key: name
|
|
5571
|
-
},
|
|
5454
|
+
return /*#__PURE__*/React.createElement(Form.Item, {
|
|
5455
|
+
name: i.name,
|
|
5456
|
+
label: i.label,
|
|
5457
|
+
key: i.name
|
|
5458
|
+
}, /*#__PURE__*/React.createElement(Input, _objectSpread2({
|
|
5572
5459
|
id: index === 0 ? "first-query" : 'index',
|
|
5573
5460
|
style: {
|
|
5574
5461
|
width: '100%'
|
|
@@ -5581,7 +5468,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
5581
5468
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
5582
5469
|
allowClear: true,
|
|
5583
5470
|
maxLength: 100
|
|
5584
|
-
},
|
|
5471
|
+
}, i === null || i === void 0 ? void 0 : (_i$field7 = i.field) === null || _i$field7 === void 0 ? void 0 : _i$field7.props)));
|
|
5585
5472
|
});
|
|
5586
5473
|
} else {
|
|
5587
5474
|
return null;
|
|
@@ -5833,7 +5720,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
5833
5720
|
style: _objectSpread2(_objectSpread2({}, themeColor), {}, {
|
|
5834
5721
|
cursor: 'pointer'
|
|
5835
5722
|
})
|
|
5836
|
-
},
|
|
5723
|
+
}, "\u6E05\u7A7A\u6240\u9009\u5546\u54C1")))), /*#__PURE__*/React.createElement(Table, {
|
|
5837
5724
|
size: 'small',
|
|
5838
5725
|
columns: showSelectedCol,
|
|
5839
5726
|
dataSource: popvalue,
|
|
@@ -5859,11 +5746,21 @@ var AddSelect = function AddSelect(props) {
|
|
|
5859
5746
|
}))))));
|
|
5860
5747
|
};
|
|
5861
5748
|
|
|
5862
|
-
var css_248z$
|
|
5863
|
-
styleInject(css_248z$
|
|
5749
|
+
var css_248z$7 = ".add_select_show {\n display: flex;\n}\n.add_select_expand_button {\n position: relative;\n width: 30px;\n color: #ffffff;\n cursor: pointer;\n}\n.add_select_expand_button span {\n position: absolute;\n height: 20px;\n line-height: 14px;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.add_select_header {\n border-bottom: 1px solid #D9D9D9;\n height: 24px;\n height: 40px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n line-height: 40px;\n margin-bottom: 10px;\n padding-left: 10px;\n}\n.add_select_header > span {\n margin-left: 20px;\n font-weight: 400;\n font-size: 12px;\n color: #666666;\n letter-spacing: 0;\n line-height: 40px;\n}\n.add_select_header > span > span {\n color: #ff0000;\n}\n.add_select_header_close span {\n position: absolute;\n color: black !important;\n right: 10px;\n top: 10px;\n}\n.add_select_quick_header {\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.add_select_quick_header_title {\n display: flex;\n justify-content: space-between;\n}\n.add_select_quick_header > span {\n font-weight: 400;\n font-size: 12px;\n color: #666666;\n letter-spacing: 0;\n line-height: 20px;\n}\n.add_select_quick_header > span > span {\n color: #ff0000;\n}\n.add_select_quick_header_close span {\n position: absolute;\n color: black !important;\n right: 10px;\n top: 10px;\n}\n.add_select_wrapper {\n position: relative;\n display: flex;\n max-height: 60vh;\n overflow: hidden;\n font-size: 14px;\n margin: 5px 10px;\n}\n.add_select_wrapper .ant-table-pagination.ant-pagination {\n margin: 5px;\n padding-right: 5px;\n}\n.add_select_wrapper .ant-checkbox-wrapper {\n justify-content: center;\n}\n.add_select_wrapper .ant-form-item-label {\n padding: 0PX;\n line-height: 23px !important;\n}\n.add_select_wrapper .ant-form-item-label > label {\n font-size: 12px;\n}\n.add_select_wrapper .ant-table-thead th {\n height: 20px !important;\n padding: 0px 8px !important;\n font-size: 12px !important;\n font-weight: 600 !important;\n line-height: 20px !important;\n}\n.add_select_wrapper .ant-modal-body {\n padding: 10px;\n}\n.add_select_wrapper .ant-table-wrapper {\n padding: 0px !important;\n}\n.add_select_wrapper .row-class {\n height: 24px;\n}\n.add_select_wrapper .row-class td {\n font-size: 12px !important;\n height: 24px !important;\n padding: 0px 8px !important;\n line-height: 20px !important;\n}\n.add_select_wrapper .ant-table-body {\n height: 240px;\n overflow-y: auto !important;\n}\n.add_select_wrapper .ant-row.ant-form-item {\n margin-bottom: 10px;\n}\n.add_select_wrapper_click_flag {\n position: absolute;\n z-index: 10;\n}\n.add_select_wrapper_click_flag_arrow {\n transform: rotate(0deg);\n transition: transform 0.5s;\n}\n.add_select_wrapper_click_flag_arrow_1 {\n transform: rotate(-180deg);\n transition: transform 0.5s;\n}\n.add_select_wrapper_left {\n flex-basis: 298px;\n width: 298px;\n overflow-y: hidden;\n transition: all 0.3s;\n margin-right: 10px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n}\n.add_select_wrapper_left1 {\n width: 0;\n height: 0;\n transition: all 0.3s;\n display: none;\n}\n.add_select_wrapper_right {\n width: 872px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n}\n.add_select_wrapper_right1 {\n width: 100%;\n margin-left: 10px;\n}\n.add_select_wrapper_right,\n.add_select_wrapper_right1 {\n overflow-x: auto;\n}\n.add_select_wrapper .select_list_columns {\n height: 272px;\n overflow-y: auto;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper .select_list_columns_tips {\n background: #eee;\n padding: 6px 20px;\n margin-bottom: 10px;\n}\n.add_select_wrapper .select_list_columns_formItems {\n padding: 7px 10px;\n}\n.add_select_wrapper .select_list_searchButton {\n display: flex;\n margin: 10px;\n justify-content: flex-end;\n}\n.add_select_wrapper .select_list_button_space {\n margin-right: 10px;\n}\n.add_select_wrapper .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 24px;\n font-size: 12px;\n line-height: 24px;\n background: #F7F8FB;\n padding: 0 5px;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper .select_list_selectAll {\n position: relative;\n top: -40px;\n left: 20px;\n width: 160px;\n}\n.add_select_wrapper_select {\n margin-top: 4px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n margin: 5px 10px;\n}\n.add_select_wrapper_select .ant-table-pagination.ant-pagination {\n margin: 9px;\n padding-right: 5px;\n}\n.add_select_wrapper_select .ant-modal-body {\n padding: 10px;\n}\n.add_select_wrapper_select .ant-table-wrapper {\n padding: 0px !important;\n}\n.add_select_wrapper_select .ant-table-thead th {\n height: 23px !important;\n padding: 0px 8px !important;\n font-size: 12px !important;\n font-weight: 600 !important;\n line-height: 23px !important;\n}\n.add_select_wrapper_select .ant-modal-close-x {\n height: 30px;\n}\n.add_select_wrapper_select .row-class {\n height: 30px;\n}\n.add_select_wrapper_select .row-class td {\n font-size: 12px !important;\n height: 30px !important;\n padding: 4px 8px !important;\n}\n.add_select_wrapper_select .ant-table-body {\n height: 200px;\n overflow-y: auto !important;\n}\n.add_select_wrapper_select .ant-row.ant-form-item {\n margin-bottom: 10px;\n}\n.add_select_wrapper_select .ant-input-number-input,\n.add_select_wrapper_select .ant-input {\n height: auto;\n height: 22px;\n padding: 0px 10px;\n font-size: 12px;\n}\n.add_select_wrapper_select .ant-select-selection-search-input {\n height: auto;\n height: 22px !important;\n padding: 0px 10px;\n font-size: 12px;\n}\n.add_select_wrapper_select .ant-select .ant-select-arrow {\n top: 13px;\n}\n.add_select_wrapper_select .ant-select-selector {\n position: relative;\n top: 1px;\n height: 23px !important;\n line-height: 23px !important;\n}\n.add_select_wrapper_select .ant-select-selector .ant-select-selection-item,\n.add_select_wrapper_select .ant-select-selector ant-select-selection-search {\n height: 23px !important;\n line-height: 23px !important;\n font-size: 12px;\n}\n.add_select_wrapper_select .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 24px;\n font-size: 12px;\n line-height: 24px;\n background: #F7F8FB;\n padding: 0 3px;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick {\n margin: 0;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .ant-table-body {\n height: 240px;\n overflow-y: auto !important;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .table_base {\n background: #fff;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .table_odd {\n background: #f7f8fb;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .ant-table-cell-fix-left,\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .ant-table-cell-fix-right {\n background: #FFFFFF !important;\n}\n";
|
|
5750
|
+
styleInject(css_248z$7);
|
|
5864
5751
|
|
|
5865
|
-
var
|
|
5866
|
-
var
|
|
5752
|
+
var getSkuImg = function getSkuImg(record) {
|
|
5753
|
+
var _record$mediaList;
|
|
5754
|
+
// 默认取sku图片、当没有设置时取商品图片,商品图片也没有返回空
|
|
5755
|
+
var ImgList = ((_record$mediaList = record.mediaList) === null || _record$mediaList === void 0 ? void 0 : _record$mediaList.length) && record.mediaList.filter(function (i) {
|
|
5756
|
+
return i.type == 1;
|
|
5757
|
+
}) || []; // 获取SKU、SPU图片数组集合
|
|
5758
|
+
var imgShow = (ImgList === null || ImgList === void 0 ? void 0 : ImgList.length) && ImgList[0].url || null;
|
|
5759
|
+
return imgShow;
|
|
5760
|
+
};
|
|
5761
|
+
|
|
5762
|
+
var _excluded$4 = ["onResize", "width"];
|
|
5763
|
+
var _this = undefined;
|
|
5867
5764
|
var InputElement = function InputElement(_ref) {
|
|
5868
5765
|
var _record$packingUnitLi, _record$packingUnitLi2;
|
|
5869
5766
|
var record = _ref.record,
|
|
@@ -5890,7 +5787,7 @@ var InputElement = function InputElement(_ref) {
|
|
|
5890
5787
|
setValue = _useState6[1];
|
|
5891
5788
|
var inputRef = useRef(false);
|
|
5892
5789
|
var onSerchdata = function onSerchdata(name) {
|
|
5893
|
-
|
|
5790
|
+
axios.get("/items/sku/pager/v2?".concat(stringify({
|
|
5894
5791
|
'skuCodeAndSkuName': name,
|
|
5895
5792
|
'pageSize': 100,
|
|
5896
5793
|
'qp-combination-eq': false,
|
|
@@ -6365,7 +6262,7 @@ var InputElement = function InputElement(_ref) {
|
|
|
6365
6262
|
var ResizeableTitle$1 = function ResizeableTitle(props) {
|
|
6366
6263
|
var onResize = props.onResize,
|
|
6367
6264
|
width = props.width,
|
|
6368
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
6265
|
+
restProps = _objectWithoutProperties(props, _excluded$4);
|
|
6369
6266
|
if (!width) {
|
|
6370
6267
|
return /*#__PURE__*/React.createElement("th", _objectSpread2({}, restProps));
|
|
6371
6268
|
}
|
|
@@ -6574,7 +6471,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
6574
6471
|
brandAuth: 'ctl-withAuth'
|
|
6575
6472
|
};
|
|
6576
6473
|
}
|
|
6577
|
-
return
|
|
6474
|
+
return axios.post(validDataUrl, _objectSpread2(_objectSpread2({}, otherParams), {}, {
|
|
6578
6475
|
columns: ["skuCode", "quantity"],
|
|
6579
6476
|
data: resultData.map(function (i) {
|
|
6580
6477
|
return {
|
|
@@ -6909,7 +6806,7 @@ var getDictionaryTextByValue = function getDictionaryTextByValue(dicCode, value)
|
|
|
6909
6806
|
};
|
|
6910
6807
|
var loadSelectSource$1 = function loadSelectSource(url, params) {
|
|
6911
6808
|
return new Promise(function (resolve, reject) {
|
|
6912
|
-
|
|
6809
|
+
axios.get("".concat(url, "?").concat(stringify(params))).then(function (result) {
|
|
6913
6810
|
result = result.data;
|
|
6914
6811
|
if (judgeIsRequestError(result)) {
|
|
6915
6812
|
message$1.error(result.msg);
|
|
@@ -9268,28 +9165,24 @@ function handleSelectColumn(c, parentProps) {
|
|
|
9268
9165
|
var coverColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.coverColumns) || [];
|
|
9269
9166
|
var additionColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.additionColumns) || [];
|
|
9270
9167
|
// 仅展示内容
|
|
9271
|
-
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
|
|
9272
9168
|
if (showColumns === null || showColumns === void 0 ? void 0 : showColumns.length) {
|
|
9273
9169
|
result = result.filter(function (i) {
|
|
9274
9170
|
return showColumns.includes(i.dataIndex);
|
|
9275
9171
|
});
|
|
9276
9172
|
}
|
|
9277
9173
|
// 过滤不需要展示内容
|
|
9278
|
-
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
|
|
9279
9174
|
if (exceptColumns === null || exceptColumns === void 0 ? void 0 : exceptColumns.length) {
|
|
9280
9175
|
result = result.filter(function (i) {
|
|
9281
9176
|
return !exceptColumns.includes(i.dataIndex);
|
|
9282
9177
|
});
|
|
9283
9178
|
}
|
|
9284
9179
|
// 追加(最好不用这个,当组件不固定时候会有影响)
|
|
9285
|
-
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
|
|
9286
9180
|
if (additionColumns === null || additionColumns === void 0 ? void 0 : additionColumns.length) {
|
|
9287
9181
|
additionColumns.forEach(function (i) {
|
|
9288
9182
|
result.splice(i.position, 0, i.column);
|
|
9289
9183
|
});
|
|
9290
9184
|
}
|
|
9291
9185
|
// 覆盖内容
|
|
9292
|
-
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
|
|
9293
9186
|
if (coverColumns === null || coverColumns === void 0 ? void 0 : coverColumns.length) {
|
|
9294
9187
|
result = coverColumns;
|
|
9295
9188
|
}
|
|
@@ -9301,21 +9194,18 @@ function handleSearchForm(c, parentProps) {
|
|
|
9301
9194
|
var exceptTableSearchForm = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.exceptTableSearchForm) || [];
|
|
9302
9195
|
var coverTableSearchForm = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.coverTableSearchForm) || [];
|
|
9303
9196
|
// 仅展示内容
|
|
9304
|
-
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
|
|
9305
9197
|
if (showTableSearchForm === null || showTableSearchForm === void 0 ? void 0 : showTableSearchForm.length) {
|
|
9306
9198
|
result = result.filter(function (i) {
|
|
9307
9199
|
return showTableSearchForm.includes(i.name);
|
|
9308
9200
|
});
|
|
9309
9201
|
}
|
|
9310
9202
|
// 过滤不需要展示内容
|
|
9311
|
-
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
|
|
9312
9203
|
if (exceptTableSearchForm === null || exceptTableSearchForm === void 0 ? void 0 : exceptTableSearchForm.length) {
|
|
9313
9204
|
result = result.filter(function (i) {
|
|
9314
9205
|
return !exceptTableSearchForm.includes(i.name);
|
|
9315
9206
|
});
|
|
9316
9207
|
}
|
|
9317
9208
|
// 覆盖内容
|
|
9318
|
-
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
|
|
9319
9209
|
if (coverTableSearchForm === null || coverTableSearchForm === void 0 ? void 0 : coverTableSearchForm.length) {
|
|
9320
9210
|
result = coverTableSearchForm;
|
|
9321
9211
|
}
|
|
@@ -9328,21 +9218,18 @@ function handleFormSearchSourceLoad(c, parentProps) {
|
|
|
9328
9218
|
var coverTableFormSearchSourceLoad = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.coverTableFormSearchSourceLoad) || [];
|
|
9329
9219
|
var noNeedTableFormSearchSourceLoad = parentProps === null || parentProps === void 0 ? void 0 : parentProps.noNeedTableFormSearchSourceLoad;
|
|
9330
9220
|
// 仅展示内容
|
|
9331
|
-
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
|
|
9332
9221
|
if (showTableFormSearchSourceLoad === null || showTableFormSearchSourceLoad === void 0 ? void 0 : showTableFormSearchSourceLoad.length) {
|
|
9333
9222
|
result = result.filter(function (i) {
|
|
9334
9223
|
return showTableFormSearchSourceLoad.includes(i.url);
|
|
9335
9224
|
});
|
|
9336
9225
|
}
|
|
9337
9226
|
// 过滤不需要展示内容
|
|
9338
|
-
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
|
|
9339
9227
|
if (exceptTableFormSearchSourceLoad === null || exceptTableFormSearchSourceLoad === void 0 ? void 0 : exceptTableFormSearchSourceLoad.length) {
|
|
9340
9228
|
result = result.filter(function (i) {
|
|
9341
9229
|
return !exceptTableFormSearchSourceLoad.includes(i.url);
|
|
9342
9230
|
});
|
|
9343
9231
|
}
|
|
9344
9232
|
// 覆盖内容
|
|
9345
|
-
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
|
|
9346
9233
|
if (coverTableFormSearchSourceLoad === null || coverTableFormSearchSourceLoad === void 0 ? void 0 : coverTableFormSearchSourceLoad.length) {
|
|
9347
9234
|
result = coverTableFormSearchSourceLoad;
|
|
9348
9235
|
}
|
|
@@ -9374,7 +9261,6 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
9374
9261
|
showTitle: false
|
|
9375
9262
|
},
|
|
9376
9263
|
dataIndex: 'itemEancode',
|
|
9377
|
-
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115627
|
|
9378
9264
|
render: function render(text) {
|
|
9379
9265
|
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
9380
9266
|
placement: "topLeft",
|
|
@@ -9424,7 +9310,6 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
9424
9310
|
},
|
|
9425
9311
|
render: function render(text, record) {
|
|
9426
9312
|
var _record$packingUnitLi;
|
|
9427
|
-
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115636
|
|
9428
9313
|
if (record === null || record === void 0 ? void 0 : (_record$packingUnitLi = record.packingUnitList) === null || _record$packingUnitLi === void 0 ? void 0 : _record$packingUnitLi.length) {
|
|
9429
9314
|
var basePackUnit = record === null || record === void 0 ? void 0 : record.packingUnitList[0];
|
|
9430
9315
|
record.selectUnitCode = basePackUnit.unitCode;
|
|
@@ -9507,10 +9392,6 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
9507
9392
|
}, text);
|
|
9508
9393
|
}
|
|
9509
9394
|
}]), [{
|
|
9510
|
-
title: 'SKC编码',
|
|
9511
|
-
width: 150,
|
|
9512
|
-
dataIndex: 'skcCode'
|
|
9513
|
-
}, {
|
|
9514
9395
|
title: '所属SPU名称',
|
|
9515
9396
|
width: 100,
|
|
9516
9397
|
ellipsis: {
|
|
@@ -9605,19 +9486,13 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
9605
9486
|
var mTpTableColumn = handleSelectColumn(initialTableColumn, parProps);
|
|
9606
9487
|
var initialTableSearchForm = [{
|
|
9607
9488
|
name: 'qp-skuCode-like',
|
|
9608
|
-
label: 'SKU编码'
|
|
9609
|
-
type: 'multipleQueryInput'
|
|
9489
|
+
label: 'SKU编码'
|
|
9610
9490
|
}, {
|
|
9611
9491
|
name: 'qp-skuName-like',
|
|
9612
9492
|
label: 'SKU名称'
|
|
9613
9493
|
}, {
|
|
9614
|
-
name: 'qp-
|
|
9615
|
-
label: '
|
|
9616
|
-
type: 'multipleQueryInput'
|
|
9617
|
-
}, {
|
|
9618
|
-
name: 'qp-itemCode-like',
|
|
9619
|
-
label: 'SPU编码',
|
|
9620
|
-
type: 'multipleQueryInput'
|
|
9494
|
+
name: 'qp-externalCode-like',
|
|
9495
|
+
label: '外部SPU编码'
|
|
9621
9496
|
}].concat(_toConsumableArray(isNoUseItemBarcode ? [] : [{
|
|
9622
9497
|
name: 'qp-code-in',
|
|
9623
9498
|
label: '商品条码',
|
|
@@ -9680,7 +9555,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
9680
9555
|
'ctl-withAuth': true
|
|
9681
9556
|
},
|
|
9682
9557
|
resType: 'list',
|
|
9683
|
-
resPosition: isNoUseItemBarcode ?
|
|
9558
|
+
resPosition: isNoUseItemBarcode ? 3 : 4,
|
|
9684
9559
|
resKeyValue: ['id', 'name']
|
|
9685
9560
|
}, {
|
|
9686
9561
|
url: "/items/category/queryCategoryTree",
|
|
@@ -9689,7 +9564,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
9689
9564
|
currentPage: 1
|
|
9690
9565
|
},
|
|
9691
9566
|
resType: 'treeList',
|
|
9692
|
-
resPosition: isNoUseItemBarcode ?
|
|
9567
|
+
resPosition: isNoUseItemBarcode ? 4 : 5
|
|
9693
9568
|
}];
|
|
9694
9569
|
var mTpPromiseLoadList = handleFormSearchSourceLoad(initialPromiseLoadList, parProps);
|
|
9695
9570
|
var props = {
|
|
@@ -9745,7 +9620,7 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
|
|
|
9745
9620
|
setPropertyList = _useState6[1];
|
|
9746
9621
|
useEffect(function () {
|
|
9747
9622
|
// type: 1 尺码组; 2 配码组
|
|
9748
|
-
|
|
9623
|
+
axios.get("/items/itemPropertyValueGroup/listNoPage?qp-type-eq=2&qp-status-eq=1").then(function (result) {
|
|
9749
9624
|
result = result.data;
|
|
9750
9625
|
if (judgeIsRequestError(result)) {
|
|
9751
9626
|
message$1.error(result.msg);
|
|
@@ -9802,7 +9677,7 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
|
|
|
9802
9677
|
var initialPromiseLoadList = [{
|
|
9803
9678
|
url: "/items/item/propertyValue/sizeBySkcConfig",
|
|
9804
9679
|
params: {
|
|
9805
|
-
pageSize:
|
|
9680
|
+
pageSize: 10000,
|
|
9806
9681
|
currentPage: 1,
|
|
9807
9682
|
type: 2 // 类型:1尺码;2颜色
|
|
9808
9683
|
},
|
|
@@ -9812,7 +9687,7 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
|
|
|
9812
9687
|
}, {
|
|
9813
9688
|
url: "/items/category/queryCategoryTree",
|
|
9814
9689
|
params: {
|
|
9815
|
-
pageSize:
|
|
9690
|
+
pageSize: 5000,
|
|
9816
9691
|
currentPage: 1
|
|
9817
9692
|
},
|
|
9818
9693
|
resType: 'treeList',
|
|
@@ -10063,7 +9938,7 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
10063
9938
|
useEffect(function () {
|
|
10064
9939
|
if (parProps === null || parProps === void 0 ? void 0 : parProps.isSingleColor) {
|
|
10065
9940
|
// type: 1 尺码组; 2 配码组
|
|
10066
|
-
|
|
9941
|
+
axios.get("/items/itemPropertyValueGroup/listNoPage?qp-type-eq=2&qp-status-eq=1").then(function (result) {
|
|
10067
9942
|
result = result.data;
|
|
10068
9943
|
if (judgeIsRequestError(result)) {
|
|
10069
9944
|
message$1.error(result.msg);
|
|
@@ -10148,7 +10023,7 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
10148
10023
|
}, {
|
|
10149
10024
|
url: "/items/category/queryCategoryTree",
|
|
10150
10025
|
params: {
|
|
10151
|
-
pageSize:
|
|
10026
|
+
pageSize: 5000,
|
|
10152
10027
|
currentPage: 1
|
|
10153
10028
|
},
|
|
10154
10029
|
resType: 'treeList',
|
|
@@ -10377,7 +10252,9 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
10377
10252
|
_props$isBrandAuth = props.isBrandAuth,
|
|
10378
10253
|
isBrandAuth = _props$isBrandAuth === void 0 ? true : _props$isBrandAuth,
|
|
10379
10254
|
_props$isCheckStockNu = props.isCheckStockNum,
|
|
10380
|
-
isCheckStockNum = _props$isCheckStockNu === void 0 ? true : _props$isCheckStockNu
|
|
10255
|
+
isCheckStockNum = _props$isCheckStockNu === void 0 ? true : _props$isCheckStockNu,
|
|
10256
|
+
_props$otherModalProp = props.otherModalProps,
|
|
10257
|
+
otherModalProps = _props$otherModalProp === void 0 ? {} : _props$otherModalProp;
|
|
10381
10258
|
var _useState = useState({
|
|
10382
10259
|
maskClosable: false,
|
|
10383
10260
|
width: 800,
|
|
@@ -10427,7 +10304,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
10427
10304
|
onCancel: handleCancel,
|
|
10428
10305
|
destroyOnClose: true,
|
|
10429
10306
|
zIndex: 15
|
|
10430
|
-
}), /*#__PURE__*/React.createElement(DataValidation, {
|
|
10307
|
+
}, otherModalProps), /*#__PURE__*/React.createElement(DataValidation, {
|
|
10431
10308
|
onRef: function onRef(ref) {
|
|
10432
10309
|
dataValidationRef = ref;
|
|
10433
10310
|
},
|
|
@@ -10486,7 +10363,7 @@ function getStorageVale(storageKeyString) {
|
|
|
10486
10363
|
return "";
|
|
10487
10364
|
}
|
|
10488
10365
|
|
|
10489
|
-
var _excluded$
|
|
10366
|
+
var _excluded$5 = ["ctx", "value", "valueName", "onChange", "onChangeName", "placeholder", "remoteSource", "initialValue", "treeCheckable", "showSearch", "maxTagCount", "multiple", "isChoose", "rootDisabled", "mode", "getPopupContainer", "labelInValue", "showArrow", "allowClear", "showCheckedStrategy", "style", "getTreeData", "disabled"];
|
|
10490
10367
|
var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
10491
10368
|
var _useState = useState([]),
|
|
10492
10369
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -10528,7 +10405,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
10528
10405
|
} : _props$style,
|
|
10529
10406
|
getTreeData = props.getTreeData,
|
|
10530
10407
|
disabled = props.disabled,
|
|
10531
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
10408
|
+
restProps = _objectWithoutProperties(props, _excluded$5);
|
|
10532
10409
|
var url = remoteSource.url,
|
|
10533
10410
|
headers = remoteSource.headers,
|
|
10534
10411
|
_remoteSource$paramsK = remoteSource.paramsKey,
|
|
@@ -10569,7 +10446,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
10569
10446
|
/* 实时查询 但是目前用的直接是完整数据源, 所以没有使用 */
|
|
10570
10447
|
var handleSearch = function handleSearch(q) {
|
|
10571
10448
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
10572
|
-
|
|
10449
|
+
axios.get("".concat(url, "?").concat(stringify(paramsData)), {
|
|
10573
10450
|
headers: headers
|
|
10574
10451
|
}).then( /*#__PURE__*/function () {
|
|
10575
10452
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
@@ -10882,8 +10759,8 @@ var BusinessTreeSearchSelect$1 = /*#__PURE__*/React.memo(BusinessTreeSearchSelec
|
|
|
10882
10759
|
return true;
|
|
10883
10760
|
});
|
|
10884
10761
|
|
|
10885
|
-
var css_248z$
|
|
10886
|
-
styleInject(css_248z$
|
|
10762
|
+
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";
|
|
10763
|
+
styleInject(css_248z$8);
|
|
10887
10764
|
|
|
10888
10765
|
var index$3 = (function (props) {
|
|
10889
10766
|
var _props$formStatusMapp = props.formStatusMapping,
|
|
@@ -10925,20 +10802,20 @@ var label_icon_bottom = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20en
|
|
|
10925
10802
|
|
|
10926
10803
|
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=";
|
|
10927
10804
|
|
|
10928
|
-
var css_248z$
|
|
10929
|
-
styleInject(css_248z$
|
|
10805
|
+
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";
|
|
10806
|
+
styleInject(css_248z$9);
|
|
10930
10807
|
|
|
10931
|
-
var _excluded$
|
|
10932
|
-
_excluded2$
|
|
10808
|
+
var _excluded$6 = ["children"],
|
|
10809
|
+
_excluded2$2 = ["children"];
|
|
10933
10810
|
var Field = function Field(_ref) {
|
|
10934
10811
|
var children = _ref.children,
|
|
10935
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
10812
|
+
props = _objectWithoutProperties(_ref, _excluded$6);
|
|
10936
10813
|
var _React$useState = React.useState(true),
|
|
10937
10814
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
10938
10815
|
fieldGroupVisible = _React$useState2[0],
|
|
10939
10816
|
setVisible = _React$useState2[1];
|
|
10940
10817
|
return /*#__PURE__*/React.createElement("div", {
|
|
10941
|
-
className: "bitsun-form-card-class\n ".concat(fieldGroupVisible ? '' : 'field-group-hidden', "\n ").concat(props.isWhiteCard ? 'white-card' : '', "\n "),
|
|
10818
|
+
className: "bitsun-form-card-class \n ".concat(fieldGroupVisible ? '' : 'field-group-hidden', " \n ").concat(props.isWhiteCard ? 'white-card' : '', "\n "),
|
|
10942
10819
|
id: props.id
|
|
10943
10820
|
}, /*#__PURE__*/React.createElement("div", {
|
|
10944
10821
|
className: "ant-card-head"
|
|
@@ -10977,16 +10854,12 @@ var GuideWrapper = /*#__PURE__*/function (_Component) {
|
|
|
10977
10854
|
var _this$props = this.props,
|
|
10978
10855
|
_this$props$children = _this$props.children,
|
|
10979
10856
|
children = _this$props$children === void 0 ? [] : _this$props$children,
|
|
10980
|
-
props = _objectWithoutProperties(_this$props, _excluded2$
|
|
10981
|
-
|
|
10982
|
-
var domList = Array.isArray(children) ? children : [children];
|
|
10983
|
-
var cardGroups = domList.filter(function (item) {
|
|
10857
|
+
props = _objectWithoutProperties(_this$props, _excluded2$2);
|
|
10858
|
+
var cardGroups = children.filter(function (item) {
|
|
10984
10859
|
var _item$props, _item$props2;
|
|
10985
10860
|
return (item === null || item === void 0 ? void 0 : (_item$props = item.props) === null || _item$props === void 0 ? void 0 : _item$props.id) && (item === null || item === void 0 ? void 0 : (_item$props2 = item.props) === null || _item$props2 === void 0 ? void 0 : _item$props2.title);
|
|
10986
10861
|
});
|
|
10987
|
-
return /*#__PURE__*/React.createElement("div", _objectSpread2(
|
|
10988
|
-
className: classNames('guide-wrapper', props === null || props === void 0 ? void 0 : props.className)
|
|
10989
|
-
}), children, /*#__PURE__*/React.createElement("div", {
|
|
10862
|
+
return /*#__PURE__*/React.createElement("div", _objectSpread2({}, props), children, /*#__PURE__*/React.createElement("div", {
|
|
10990
10863
|
className: 'form-guide'
|
|
10991
10864
|
}, /*#__PURE__*/React.createElement("div", {
|
|
10992
10865
|
className: 'form-guide-top'
|
|
@@ -11004,12 +10877,6 @@ var GuideWrapper = /*#__PURE__*/function (_Component) {
|
|
|
11004
10877
|
block: 'center',
|
|
11005
10878
|
behavior: 'smooth'
|
|
11006
10879
|
});
|
|
11007
|
-
// 高亮
|
|
11008
|
-
var heightLight = currentDom.getElementsByClassName('ant-card-head-title');
|
|
11009
|
-
heightLight[0].style.backgroundColor = '#2065c7';
|
|
11010
|
-
setTimeout(function () {
|
|
11011
|
-
heightLight[0].style.backgroundColor = '';
|
|
11012
|
-
}, 800);
|
|
11013
10880
|
}
|
|
11014
10881
|
}, item.props.title);
|
|
11015
10882
|
})), /*#__PURE__*/React.createElement("div", {
|
|
@@ -11027,13 +10894,11 @@ GuideWrapper.Field = Field;
|
|
|
11027
10894
|
var exportlogo = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEQAAABECAYAAAA4E5OyAAAAAXNSR0IArs4c6QAAB0JJREFUeF7tnFtsFFUYx/9nehFaaMGooDZWrTvdRAwoog8SbdUHL4nRwJPxRtRo1GC8JxLwghDvGowvGi8RDC/iAw/6YLDVaLwiqKjbWVepbUhRDLTSUtsyx/zX85FhmHZnlu6yu51JGtjd2dnz/eb/Xc539qyC79BaW0op1/u01rqqt7e3tqamxvKfXw6PR0dH3aamphGl1EGfXUfYqoJOyGQyja7rXuO67mVa69OVUg0AagFUlQOAgDESxIjWekAptdOyrC2WZW1uaWnp9wvgEBB5wXGcJQDWaa1PAaABDALYC2DUT7hc4FDhAGoAzAZQD0AppXYBWG7b9iYvlCwQD4yVWusnCcGyrHUANluWtau2tnb/4ODg6KxZsw5zpXIBsm/fPqu+vr5mZGRkhuu6vNFU/3LCUUqtsm17tTBQpMc7T2Vord8D8JtSaolt29u11iRJlVTMITY5jrNAa70JwJlKqaVGKVVZhaTT6Qat9Q6t9Ryl1MW2bX/V0dFRzdfa2tpEFeUOJmtrZ2dnNjG0t7ePOY5zodb6U6XUbqXUvEQiMSBAbnBdd71lWWsTicQKwuAbKkYWAYaIjel0eo3ruo9alnVjIpHYkAXS1dX1FoBbtNaLk8nk5+JGlQxEbEylUhcppT4D8HZra+uyLBDHcTq01gurq6vntbS0/BFUi1QaHLExk8mcNjY2tkMptdW27XYG1WrHcb4GcMK0adPmNzc3751KQLq7u2cPDw9/D2CPbdsXqJ6enulDQ0PfAJiutV6QTCb/qcTsElCRZzNoKpWaqZTaDuBAXV3dItXX11ff39//rVKqqqGh4dy5c+cOTiUgtH9gYGCb1vpgY2Pj+TGQGMj/ziNeUO4KYVElBeJRFYqVAEQmogKCj/OGUu5AxPizALwAYA0AlgqcxR7W4whbL5UzELoJ51NnAODk8zxOQAGwTcF0mReUYgHh4CjjiaQcVeYC5HoA77LRY5pVvQCuAvBjPlCKAeSofDqH1OXadwF4lc0q0/DJALguHyiFBiIDngdgKYCmAAN5p/8F8BCA/SEA8Hx/IGW8uM/EEboRFdltlPJzFKUUEohIejGADwHMMC7j7dfSTfj4AIBmAH+Zx3734TkSE4JcSz7rVgCvmc/h+WmjlJ/Gue4R/AsJRD7sIwCXe+R8WP86BxDp5kszajqAswGcCuBEAHOMiwjkYQA3AUgCYN+GzaxfAVwLgFAE3LhCLBQQcZU6AAxybOJygOsB7ARwnCfA8lwGxOcADHlG6oXBTHIHgEsAnGMawmEyqcSU9032yfmeYgDZbdyFbkGDOIPOlRLl9ZMA3MMuOIDGAJfzG0glETD/GFd4nS7jNr+UikIECOXcDuBLI3N/4SRuIbJmIN4AYL7HOAKg0n43QfNP85jPMzDTNehK4i6EwedSxzqGeF2Gg+aaB4FQIRNVkqIMxpyNbE55Yg9djS7HjjgzB42WoMx/7zdZRpTBIu0KE1hzKfKQ0orhMmGBiDIYND8GQHehcXyea0FPA+jz3Wl5z4MmBgUF0tAwCjnbjaoQOZ9xYguAhQYGDbyTjV4DRs6TWEFlrATARTSBQSVdadyEWSbSKkGpKEQG/hSAFR7jWFe8adInIXhXCAUO647bjebpJqxQfwgRuAMzTikAEdm3AvjE1BYc7EsmLhAWXSeoWJMY8rqpSi/NVxlCp5SAiPQ5th4ze90TMjuwYOPaLOcwkWLGeE3mye6YRY0hVAHrkwVmgI8AeDakcd6pgPzfW9RFWog/1goRcMws35npOwu4toiNHinGIhkfFESONRCRt/Q0OEbWKQRCMPm0DhYBYAeNKtlmapbQ1ykVIJy6v2ju2AcArg7pLkE3mc0iAubxBIDHw5TspRJUJd0+A+BhM6h3ANxsyntOzsIeogJmnNvMm5jC15YjkJcB3GuMeMMYFLWoEiCsW5aZa60CsLocgdBd6DY8YiAAXjHTfAIRl5nSCnkMwN1G2pQ848mUBCIB83gA/M4r48AAgL/zSLkVEUPCZpAw51UUEKk0aXiuBa3x4JQlEM5GvzAlel5rrxNIhUDY+2DvhHUMj5JMu9JTZUedJXmYJnMYF/GfE9QfKUkgbPvNNEsNzCRbTY/1qCdiPiIEwsqWEFj682BLgU2nnOsxhS7d5fr8Yj27V1w4EheJuqgdVS00nmC49sOKlS4UOoUXanJHI+SuPADgedP+K8a+GiqPn8MVO3b5ubuhJBQiPs39NFxsYrP4ZM9CddQ7H+Z8WSdm4Ka78HsioWFkU5zZ2DDZHTPv4AUM3Yd/hT7oklwDOhQWonxgsYAQymQH0Vx2RlJGsYJqUGrMZchkvJ534C6GQibDwKJdIwbiQx0DiYFM7H3jKiTeHuLbHhJvIPJtIKKw4i1mni1mBBJvQvRtQkyn0/E2Ve821Xgjs2cjc7zVPWCre/xjCJ4fQ/DM/rI/LhL/XIa3oWB+XSb+QZUAKN7Cdyr95M5/xzmpLRDiZSsAAAAASUVORK5CYII=";
|
|
11028
10895
|
|
|
11029
10896
|
var ExportIcon = function ExportIcon(_ref) {
|
|
11030
|
-
var
|
|
11031
|
-
tableRef = _ref.tableRef
|
|
11032
|
-
|
|
11033
|
-
|
|
11034
|
-
|
|
11035
|
-
params = exportRequest.params,
|
|
11036
|
-
others = exportRequest.others;
|
|
10897
|
+
var request = _ref.request,
|
|
10898
|
+
tableRef = _ref.tableRef;
|
|
10899
|
+
var url = request.url,
|
|
10900
|
+
params = request.params,
|
|
10901
|
+
others = request.others;
|
|
11037
10902
|
return /*#__PURE__*/React.createElement("div", {
|
|
11038
10903
|
style: {
|
|
11039
10904
|
cursor: 'pointer'
|
|
@@ -11044,27 +10909,21 @@ var ExportIcon = function ExportIcon(_ref) {
|
|
|
11044
10909
|
width: 32,
|
|
11045
10910
|
src: exportlogo,
|
|
11046
10911
|
onClick: function onClick() {
|
|
11047
|
-
var _tableRef$current;
|
|
10912
|
+
var _tableRef$current, _convertedParams$sele, _convertedParams$sele2;
|
|
11048
10913
|
var convertedParams = tableRef === null || tableRef === void 0 ? void 0 : (_tableRef$current = tableRef.current) === null || _tableRef$current === void 0 ? void 0 : _tableRef$current.getExportParams();
|
|
11049
10914
|
var requestData;
|
|
11050
10915
|
if (typeof params === 'function') {
|
|
11051
10916
|
requestData = _objectSpread2({}, omit(params(convertedParams), 'selectedRows'));
|
|
11052
|
-
requestData.pageSize = 100000;
|
|
11053
10917
|
} else if (_typeof(params) === 'object') {
|
|
11054
10918
|
requestData = _objectSpread2({}, params);
|
|
11055
10919
|
}
|
|
11056
10920
|
if (!params) {
|
|
11057
10921
|
requestData = omit(convertedParams, 'selectedRows');
|
|
11058
|
-
requestData.pageSize = 100000;
|
|
11059
10922
|
}
|
|
11060
|
-
|
|
11061
|
-
|
|
11062
|
-
|
|
11063
|
-
|
|
11064
|
-
return d[selectKey];
|
|
11065
|
-
})) === null || _convertedParams$sele2 === void 0 ? void 0 : _convertedParams$sele2.join(',');
|
|
11066
|
-
}
|
|
11067
|
-
requestUtil(_objectSpread2({
|
|
10923
|
+
requestData['qp-id-in'] = convertedParams === null || convertedParams === void 0 ? void 0 : (_convertedParams$sele = convertedParams.selectedRows) === null || _convertedParams$sele === void 0 ? void 0 : (_convertedParams$sele2 = _convertedParams$sele.map(function (d) {
|
|
10924
|
+
return d.id;
|
|
10925
|
+
})) === null || _convertedParams$sele2 === void 0 ? void 0 : _convertedParams$sele2.join(',');
|
|
10926
|
+
axios(_objectSpread2({
|
|
11068
10927
|
url: url,
|
|
11069
10928
|
method: 'POST',
|
|
11070
10929
|
data: requestData
|
|
@@ -11081,10 +10940,10 @@ var ExportIcon = function ExportIcon(_ref) {
|
|
|
11081
10940
|
})));
|
|
11082
10941
|
};
|
|
11083
10942
|
|
|
11084
|
-
var css_248z$
|
|
11085
|
-
styleInject(css_248z$
|
|
10943
|
+
var css_248z$a = ".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";
|
|
10944
|
+
styleInject(css_248z$a);
|
|
11086
10945
|
|
|
11087
|
-
var _excluded$
|
|
10946
|
+
var _excluded$7 = ["className", "style"];
|
|
11088
10947
|
var Search$1 = Input.Search;
|
|
11089
10948
|
var DragHandle$1 = SortableHandle(function () {
|
|
11090
10949
|
return /*#__PURE__*/React.createElement("img", {
|
|
@@ -11129,7 +10988,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
11129
10988
|
fixed: item.fixed
|
|
11130
10989
|
};
|
|
11131
10990
|
});
|
|
11132
|
-
|
|
10991
|
+
axios({
|
|
11133
10992
|
url: handleRequestUrl('/user', '/appConfig/saveUserOrder', appRequestConfig),
|
|
11134
10993
|
method: 'POST',
|
|
11135
10994
|
data: {
|
|
@@ -11195,17 +11054,6 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
11195
11054
|
})
|
|
11196
11055
|
});
|
|
11197
11056
|
};
|
|
11198
|
-
_this.isColumnsChange = function () {
|
|
11199
|
-
var pre = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
11200
|
-
var next = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
11201
|
-
var preKeyStr = pre.map(function (item) {
|
|
11202
|
-
return item.key || item.dataIndex;
|
|
11203
|
-
}).join(',');
|
|
11204
|
-
var nextKeyStr = next.map(function (item) {
|
|
11205
|
-
return item.key || item.dataIndex;
|
|
11206
|
-
}).join(',');
|
|
11207
|
-
return preKeyStr !== nextKeyStr;
|
|
11208
|
-
};
|
|
11209
11057
|
_this.columns = [{
|
|
11210
11058
|
title: '列名称',
|
|
11211
11059
|
dataIndex: 'title',
|
|
@@ -11462,7 +11310,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
11462
11310
|
_this.DraggableBodyRow = function (_ref2) {
|
|
11463
11311
|
var className = _ref2.className,
|
|
11464
11312
|
style = _ref2.style,
|
|
11465
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
11313
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$7);
|
|
11466
11314
|
var sortDataSource = _this.state.sortDataSource;
|
|
11467
11315
|
// function findIndex base on Table rowKey props and should always be a right array index
|
|
11468
11316
|
var index = sortDataSource.findIndex(function (x) {
|
|
@@ -11555,8 +11403,8 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
11555
11403
|
_createClass(SortableTable, [{
|
|
11556
11404
|
key: "componentWillReceiveProps",
|
|
11557
11405
|
value: function componentWillReceiveProps(nextProps) {
|
|
11558
|
-
var _this$props3;
|
|
11559
|
-
if (
|
|
11406
|
+
var _this$props3, _this$props4;
|
|
11407
|
+
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)) {
|
|
11560
11408
|
this.setInitValue((nextProps === null || nextProps === void 0 ? void 0 : nextProps.datasource) || []);
|
|
11561
11409
|
}
|
|
11562
11410
|
}
|
|
@@ -11729,8 +11577,8 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
11729
11577
|
return SortableTable;
|
|
11730
11578
|
}(React.Component);
|
|
11731
11579
|
|
|
11732
|
-
var _excluded$
|
|
11733
|
-
_excluded2$
|
|
11580
|
+
var _excluded$8 = ["onResize", "width"],
|
|
11581
|
+
_excluded2$3 = ["style", "columns", "tableCode", "appRequestConfig", "summary", "dynamicColumns", "scroll"];
|
|
11734
11582
|
var Text = Typography.Text;
|
|
11735
11583
|
var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
11736
11584
|
_inherits(ColumnSettingSulaTable, _React$Component);
|
|
@@ -11843,7 +11691,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
11843
11691
|
_this.ResizeableTitle = function (props) {
|
|
11844
11692
|
var onResize = props.onResize,
|
|
11845
11693
|
width = props.width,
|
|
11846
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
11694
|
+
restProps = _objectWithoutProperties(props, _excluded$8);
|
|
11847
11695
|
if (!width) {
|
|
11848
11696
|
return /*#__PURE__*/React.createElement("th", _objectSpread2({}, restProps));
|
|
11849
11697
|
}
|
|
@@ -11902,7 +11750,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
11902
11750
|
dynamicColumns = _this$props3$dynamicC === void 0 ? [] : _this$props3$dynamicC,
|
|
11903
11751
|
_this$props3$scroll = _this$props3.scroll,
|
|
11904
11752
|
scroll = _this$props3$scroll === void 0 ? {} : _this$props3$scroll,
|
|
11905
|
-
restProps = _objectWithoutProperties(_this$props3, _excluded2$
|
|
11753
|
+
restProps = _objectWithoutProperties(_this$props3, _excluded2$3);
|
|
11906
11754
|
var otherTableInfo = _objectSpread2({}, restProps);
|
|
11907
11755
|
var showSummary = null;
|
|
11908
11756
|
if (this.state.showColumns.length) {
|
|
@@ -11977,8 +11825,8 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
11977
11825
|
return ColumnSettingSulaTable;
|
|
11978
11826
|
}(React.Component);
|
|
11979
11827
|
|
|
11980
|
-
var _excluded$
|
|
11981
|
-
_excluded2$
|
|
11828
|
+
var _excluded$9 = ["onResize", "width"],
|
|
11829
|
+
_excluded2$4 = ["columns", "tableCode", "appRequestConfig", "summary", "dynamicColumns", "scroll"];
|
|
11982
11830
|
var Text$1 = Typography.Text;
|
|
11983
11831
|
var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
11984
11832
|
_inherits(ColumnSettingTable, _React$Component);
|
|
@@ -12090,7 +11938,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
12090
11938
|
_this.ResizeableTitle = function (props) {
|
|
12091
11939
|
var onResize = props.onResize,
|
|
12092
11940
|
width = props.width,
|
|
12093
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
11941
|
+
restProps = _objectWithoutProperties(props, _excluded$9);
|
|
12094
11942
|
if (!width) {
|
|
12095
11943
|
return /*#__PURE__*/React.createElement("th", _objectSpread2({}, restProps));
|
|
12096
11944
|
}
|
|
@@ -12146,7 +11994,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
12146
11994
|
dynamicColumns = _this$props3$dynamicC === void 0 ? [] : _this$props3$dynamicC,
|
|
12147
11995
|
_this$props3$scroll = _this$props3.scroll,
|
|
12148
11996
|
scroll = _this$props3$scroll === void 0 ? {} : _this$props3$scroll,
|
|
12149
|
-
restProps = _objectWithoutProperties(_this$props3, _excluded2$
|
|
11997
|
+
restProps = _objectWithoutProperties(_this$props3, _excluded2$4);
|
|
12150
11998
|
var otherTableInfo = _objectSpread2({}, restProps);
|
|
12151
11999
|
var showSummary = null;
|
|
12152
12000
|
if (this.state.showColumns.length) {
|
|
@@ -12230,7 +12078,7 @@ var doDetailPageAction = function doDetailPageAction(config) {
|
|
|
12230
12078
|
};
|
|
12231
12079
|
var onOk = function onOk() {
|
|
12232
12080
|
return new Promise(function (resolve, reject) {
|
|
12233
|
-
request$
|
|
12081
|
+
request$1(requestConfig).then(function (res) {
|
|
12234
12082
|
resolve(res);
|
|
12235
12083
|
if (config.backPath) {
|
|
12236
12084
|
history.push({
|
|
@@ -12289,8 +12137,8 @@ var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
|
12289
12137
|
return routerMap;
|
|
12290
12138
|
};
|
|
12291
12139
|
|
|
12292
|
-
var css_248z$
|
|
12293
|
-
styleInject(css_248z$
|
|
12140
|
+
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";
|
|
12141
|
+
styleInject(css_248z$b);
|
|
12294
12142
|
|
|
12295
12143
|
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";
|
|
12296
12144
|
|
|
@@ -12304,15 +12152,15 @@ var deleteIcon = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
12304
12152
|
|
|
12305
12153
|
var moreIcon = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2220px%22%20height%3D%2220px%22%20viewBox%3D%220%200%2020%2020%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%2014%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E9%A1%B6%E9%83%A8%E5%AF%BC%E8%88%AA%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%9C%80%E6%96%B0%E6%A1%86%E6%9E%B6-%E4%B8%8B%E6%8B%89%E5%BC%8F%E5%B1%95%E5%BC%80%22%20transform%3D%22translate%28-1743.000000%2C%20-94.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-7%22%20transform%3D%22translate%28160.000000%2C%2050.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22tab%E5%AF%BC%E8%88%AA%E5%A4%87%E4%BB%BD-7%22%20transform%3D%22translate%280.000000%2C%2026.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-3%22%20transform%3D%22translate%281573.000000%2C%2012.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%22%E7%BC%96%E7%BB%84-2%22%20transform%3D%22translate%2810.000000%2C%206.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%3Crect%20id%3D%22%E8%92%99%E7%89%88%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2220%22%20height%3D%2220%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%20%20%20%20%3Cpolygon%20id%3D%22%E8%B7%AF%E5%BE%84%22%20fill%3D%22%23FFFFFF%22%20fill-rule%3D%22nonzero%22%20transform%3D%22translate%2810.500000%2C%2010.022232%29%20rotate%28-90.000000%29%20translate%28-10.500000%2C%20-10.022232%29%20%22%20points%3D%2214%204.9775377%2013.0224623%204%207%2010.0252289%2013.0220012%2016.0444635%2014%2015.0660036%208.95599763%2010.0247678%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%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";
|
|
12306
12154
|
|
|
12307
|
-
var css_248z$
|
|
12308
|
-
styleInject(css_248z$
|
|
12155
|
+
var css_248z$c = "";
|
|
12156
|
+
styleInject(css_248z$c);
|
|
12309
12157
|
|
|
12310
|
-
var _excluded$
|
|
12158
|
+
var _excluded$a = ["message", "type"];
|
|
12311
12159
|
var CommonAlert = (function (props) {
|
|
12312
12160
|
var message = props.message,
|
|
12313
12161
|
_props$type = props.type,
|
|
12314
12162
|
type = _props$type === void 0 ? 'info' : _props$type,
|
|
12315
|
-
reset = _objectWithoutProperties(props, _excluded$
|
|
12163
|
+
reset = _objectWithoutProperties(props, _excluded$a);
|
|
12316
12164
|
return /*#__PURE__*/React.createElement("div", {
|
|
12317
12165
|
style: {
|
|
12318
12166
|
width: '100%',
|
|
@@ -12333,7 +12181,7 @@ var CommonAlert = (function (props) {
|
|
|
12333
12181
|
}, reset)));
|
|
12334
12182
|
});
|
|
12335
12183
|
|
|
12336
|
-
var _excluded$
|
|
12184
|
+
var _excluded$b = ["children"];
|
|
12337
12185
|
var iconMap = {
|
|
12338
12186
|
edit: /*#__PURE__*/React.createElement("img", {
|
|
12339
12187
|
src: editIcon
|
|
@@ -12355,7 +12203,7 @@ var index$4 = (function (props) {
|
|
|
12355
12203
|
_useState2 = _slicedToArray(_useState, 1),
|
|
12356
12204
|
id = _useState2[0];
|
|
12357
12205
|
var children = props.children,
|
|
12358
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
12206
|
+
restProps = _objectWithoutProperties(props, _excluded$b);
|
|
12359
12207
|
return /*#__PURE__*/React.createElement("div", {
|
|
12360
12208
|
id: id,
|
|
12361
12209
|
className: 'detail_page_wrapper'
|
|
@@ -12364,7 +12212,7 @@ var index$4 = (function (props) {
|
|
|
12364
12212
|
}, restProps)), children);
|
|
12365
12213
|
});
|
|
12366
12214
|
var DetailWrapper = /*#__PURE__*/React.memo(function (_ref) {
|
|
12367
|
-
var
|
|
12215
|
+
var _routes$find;
|
|
12368
12216
|
var pathname = _ref.pathname,
|
|
12369
12217
|
_ref$actionList = _ref.actionList,
|
|
12370
12218
|
actionList = _ref$actionList === void 0 ? [] : _ref$actionList,
|
|
@@ -12376,8 +12224,7 @@ var DetailWrapper = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
12376
12224
|
donotNeedShowScreenIcon = _ref$donotNeedShowScr === void 0 ? false : _ref$donotNeedShowScr,
|
|
12377
12225
|
title = _ref.title,
|
|
12378
12226
|
pathToRegexp = _ref.pathToRegexp,
|
|
12379
|
-
backHistoryPath = _ref.backHistoryPath
|
|
12380
|
-
onBack = _ref.onBack;
|
|
12227
|
+
backHistoryPath = _ref.backHistoryPath;
|
|
12381
12228
|
var _useState3 = useState(false),
|
|
12382
12229
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
12383
12230
|
isFullScreen = _useState4[0],
|
|
@@ -12386,9 +12233,6 @@ var DetailWrapper = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
12386
12233
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
12387
12234
|
breadcrumbArr = _useState6[0],
|
|
12388
12235
|
setBreadCrumbArr = _useState6[1];
|
|
12389
|
-
var wrapperContainerRef = useRef(null);
|
|
12390
|
-
var asideWidth = (_clientWidth = (_ref2 = document.querySelector('.ant-layout-sider') || ((_window$parent = window.parent) === null || _window$parent === void 0 ? void 0 : (_window$parent$docume = _window$parent.document) === null || _window$parent$docume === void 0 ? void 0 : (_window$parent$docume2 = _window$parent$docume.querySelector) === null || _window$parent$docume2 === void 0 ? void 0 : _window$parent$docume2.call(_window$parent$docume, '.ant-layout-sider'))) === null || _ref2 === void 0 ? void 0 : _ref2.clientWidth) !== null && _clientWidth !== void 0 ? _clientWidth : 0;
|
|
12391
|
-
var wrapperSize = useSize(wrapperContainerRef);
|
|
12392
12236
|
var basePath = window.top == window ? '' : "/".concat(itemPath);
|
|
12393
12237
|
var menuRoutes = window.top == window ? ((_routes$find = routes.find(function (item) {
|
|
12394
12238
|
return item.path === '/';
|
|
@@ -12496,17 +12340,11 @@ var DetailWrapper = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
12496
12340
|
src: moreIcon
|
|
12497
12341
|
}))));
|
|
12498
12342
|
};
|
|
12499
|
-
return /*#__PURE__*/React.createElement(
|
|
12500
|
-
|
|
12501
|
-
|
|
12502
|
-
|
|
12503
|
-
|
|
12504
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
12505
|
-
className: 'detail_page_head',
|
|
12506
|
-
style: {
|
|
12507
|
-
width: (_wrapperSize$width = wrapperSize === null || wrapperSize === void 0 ? void 0 : wrapperSize.width) !== null && _wrapperSize$width !== void 0 ? _wrapperSize$width : "calc( 100vh - ".concat(asideWidth, "px )"),
|
|
12508
|
-
left: asideWidth
|
|
12509
|
-
}
|
|
12343
|
+
return /*#__PURE__*/React.createElement(Anchor, {
|
|
12344
|
+
key: "".concat(pathname, "_anchor"),
|
|
12345
|
+
offsetTop: window.top == window ? 78 : 0
|
|
12346
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
12347
|
+
className: 'detail_page_head'
|
|
12510
12348
|
}, /*#__PURE__*/React.createElement("div", {
|
|
12511
12349
|
className: 'back_home_img_content',
|
|
12512
12350
|
onClick: function onClick() {
|
|
@@ -12564,7 +12402,7 @@ var DetailWrapper = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
12564
12402
|
},
|
|
12565
12403
|
width: 32,
|
|
12566
12404
|
src: quanping
|
|
12567
|
-
}))))) : null)), alertProps && ( /*#__PURE__*/React.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
12405
|
+
}))))) : null)), alertProps && ( /*#__PURE__*/React.createElement(CommonAlert, _objectSpread2({}, alertProps)))));
|
|
12568
12406
|
}, function (prevProps, nextProps) {
|
|
12569
12407
|
if (JSON.stringify(prevProps.actionList) != JSON.stringify(nextProps.actionList) || prevProps.title !== nextProps.title) {
|
|
12570
12408
|
return false;
|
|
@@ -12572,10 +12410,10 @@ var DetailWrapper = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
12572
12410
|
return true;
|
|
12573
12411
|
});
|
|
12574
12412
|
|
|
12575
|
-
var css_248z$
|
|
12576
|
-
styleInject(css_248z$
|
|
12413
|
+
var css_248z$d = ".home_page_head {\n height: 54px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n background-color: #FFFFFF;\n border-bottom: 1px solid #f0f0f0;\n padding: 0 20px;\n}\n.home_page_head .home_page_title {\n height: 20px;\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 16px;\n color: #000000;\n letter-spacing: 0;\n line-height: 20px;\n flex-grow: 1;\n margin-top: 2px;\n}\n.home_page_head .ant-breadcrumb {\n display: block !important;\n}\n.home_page_head .ant-breadcrumb .ant-breadcrumb-separator {\n margin: 0 2px;\n}\n.home_page_head .ant-breadcrumb li .bread_name {\n color: #8A8F8D;\n font-size: 12px;\n line-height: 16px;\n cursor: pointer;\n}\n";
|
|
12414
|
+
styleInject(css_248z$d);
|
|
12577
12415
|
|
|
12578
|
-
var _excluded$
|
|
12416
|
+
var _excluded$c = ["children"];
|
|
12579
12417
|
var index$5 = (function (props) {
|
|
12580
12418
|
var _useLocation = useLocation(),
|
|
12581
12419
|
pathname = _useLocation.pathname;
|
|
@@ -12583,7 +12421,7 @@ var index$5 = (function (props) {
|
|
|
12583
12421
|
_useState2 = _slicedToArray(_useState, 1),
|
|
12584
12422
|
id = _useState2[0];
|
|
12585
12423
|
var children = props.children,
|
|
12586
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
12424
|
+
restProps = _objectWithoutProperties(props, _excluded$c);
|
|
12587
12425
|
return /*#__PURE__*/React.createElement("div", {
|
|
12588
12426
|
id: id,
|
|
12589
12427
|
className: 'home_page_wrapper'
|
|
@@ -12683,10 +12521,10 @@ var HeaderWrapper = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
12683
12521
|
return true;
|
|
12684
12522
|
});
|
|
12685
12523
|
|
|
12686
|
-
var css_248z$
|
|
12687
|
-
styleInject(css_248z$
|
|
12524
|
+
var css_248z$e = ".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 display: flex;\n justify-content: space-between;\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-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";
|
|
12525
|
+
styleInject(css_248z$e);
|
|
12688
12526
|
|
|
12689
|
-
var _excluded$
|
|
12527
|
+
var _excluded$d = ["className", "style"];
|
|
12690
12528
|
var DragHandle$2 = SortableHandle(function () {
|
|
12691
12529
|
return /*#__PURE__*/React.createElement("img", {
|
|
12692
12530
|
width: 25,
|
|
@@ -12732,7 +12570,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
12732
12570
|
};
|
|
12733
12571
|
}) : '';
|
|
12734
12572
|
return new Promise(function (resolve, reject) {
|
|
12735
|
-
|
|
12573
|
+
axios({
|
|
12736
12574
|
url: handleRequestUrl('/user', '/appConfig/saveUserOrder', appRequestConfig),
|
|
12737
12575
|
method: 'POST',
|
|
12738
12576
|
data: {
|
|
@@ -12780,8 +12618,8 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
12780
12618
|
currentSetting[0].detail = JSON.stringify(configvalue);
|
|
12781
12619
|
} else {
|
|
12782
12620
|
configArray.push({
|
|
12783
|
-
code: bsTableCode,
|
|
12784
|
-
detail: JSON.stringify(configvalue)
|
|
12621
|
+
"code": bsTableCode,
|
|
12622
|
+
"detail": JSON.stringify(configvalue)
|
|
12785
12623
|
});
|
|
12786
12624
|
}
|
|
12787
12625
|
localStorage.setItem(ENUM.BROWSER_CACHE.COLUMN_CONDITION, JSON.stringify(configArray));
|
|
@@ -13053,9 +12891,10 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
13053
12891
|
// this.patchUserColumnConfig('');
|
|
13054
12892
|
// return;
|
|
13055
12893
|
// }
|
|
13056
|
-
_this.patchUserColumnConfig(sortDataSource);
|
|
12894
|
+
return _this.patchUserColumnConfig(sortDataSource);
|
|
13057
12895
|
};
|
|
13058
12896
|
_this.handleCancel = function (e) {
|
|
12897
|
+
console.log(e);
|
|
13059
12898
|
_this.setState({
|
|
13060
12899
|
visible: false
|
|
13061
12900
|
});
|
|
@@ -13118,7 +12957,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
13118
12957
|
_this.DraggableBodyRow = function (_ref2) {
|
|
13119
12958
|
var className = _ref2.className,
|
|
13120
12959
|
style = _ref2.style,
|
|
13121
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
12960
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$d);
|
|
13122
12961
|
var sortDataSource = _this.state.sortDataSource;
|
|
13123
12962
|
// function findIndex base on Table rowKey props and should always be a right array index
|
|
13124
12963
|
var index = sortDataSource.findIndex(function (x) {
|
|
@@ -13135,11 +12974,11 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
13135
12974
|
if (!e.target.checked) {
|
|
13136
12975
|
_this.setState({
|
|
13137
12976
|
sortDataSource: sortDataSource.filter(function (item) {
|
|
13138
|
-
return
|
|
12977
|
+
return item.title !== title;
|
|
13139
12978
|
}),
|
|
13140
12979
|
isDefaultValue: false,
|
|
13141
12980
|
dataSource: _toConsumableArray(dataSource.map(function (item) {
|
|
13142
|
-
if (
|
|
12981
|
+
if (item.title === title) {
|
|
13143
12982
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
13144
12983
|
hidden: true
|
|
13145
12984
|
});
|
|
@@ -13152,7 +12991,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
13152
12991
|
var _fixedRight = [];
|
|
13153
12992
|
var noFixedSortSource = [];
|
|
13154
12993
|
var newSortData = [].concat(_toConsumableArray(sortDataSource), _toConsumableArray(dataSource.filter(function (item) {
|
|
13155
|
-
return
|
|
12994
|
+
return item.title === title;
|
|
13156
12995
|
}).map(function (source) {
|
|
13157
12996
|
return _objectSpread2(_objectSpread2({}, source), {}, {
|
|
13158
12997
|
hidden: false
|
|
@@ -13171,7 +13010,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
13171
13010
|
sortDataSource: [].concat(_fixedLeft, noFixedSortSource, _fixedRight),
|
|
13172
13011
|
isDefaultValue: false,
|
|
13173
13012
|
dataSource: _toConsumableArray(dataSource.map(function (item) {
|
|
13174
|
-
if (
|
|
13013
|
+
if (item.title === title) {
|
|
13175
13014
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
13176
13015
|
hidden: false
|
|
13177
13016
|
});
|
|
@@ -13262,8 +13101,8 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
13262
13101
|
visible = _this$state5.visible,
|
|
13263
13102
|
onSearchSort = _this$state5.onSearchSort;
|
|
13264
13103
|
var seatchDataSource = dataSource.filter(function (item) {
|
|
13265
|
-
var
|
|
13266
|
-
return (
|
|
13104
|
+
var _item$title;
|
|
13105
|
+
return (item === null || item === void 0 ? void 0 : (_item$title = item.title) === null || _item$title === void 0 ? void 0 : _item$title.indexOf(searchDataSource || '')) > -1;
|
|
13267
13106
|
});
|
|
13268
13107
|
return /*#__PURE__*/React.createElement("div", {
|
|
13269
13108
|
className: 'sort_table_wrapper'
|
|
@@ -13280,7 +13119,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
13280
13119
|
style: {
|
|
13281
13120
|
marginRight: 0
|
|
13282
13121
|
}
|
|
13283
|
-
}, "\u6062\u590D\u9ED8\u8BA4"), /*#__PURE__*/React.createElement(Button, {
|
|
13122
|
+
}, "\u6062\u590D\u9ED8\u8BA4"), ",", /*#__PURE__*/React.createElement(Button, {
|
|
13284
13123
|
key: "back",
|
|
13285
13124
|
onClick: this.handleResetSetting
|
|
13286
13125
|
}, "\u91CD\u7F6E\u8BBE\u7F6E")), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
|
|
@@ -13289,7 +13128,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
13289
13128
|
style: {
|
|
13290
13129
|
marginRight: 0
|
|
13291
13130
|
}
|
|
13292
|
-
}, "\u53D6\u6D88"), /*#__PURE__*/React.createElement(Button, {
|
|
13131
|
+
}, "\u53D6\u6D88"), ",", /*#__PURE__*/React.createElement(Button, {
|
|
13293
13132
|
key: "submit",
|
|
13294
13133
|
type: "primary",
|
|
13295
13134
|
onClick: this.handleOk
|
|
@@ -13356,9 +13195,8 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
13356
13195
|
}
|
|
13357
13196
|
}, item.title);
|
|
13358
13197
|
}) : dataSource.filter(function (item) {
|
|
13359
|
-
var
|
|
13360
|
-
|
|
13361
|
-
return (title === null || title === void 0 ? void 0 : (_title$indexOf = title.indexOf) === null || _title$indexOf === void 0 ? void 0 : _title$indexOf.call(title, '人')) === -1 && (title === null || title === void 0 ? void 0 : (_title$indexOf2 = title.indexOf) === null || _title$indexOf2 === void 0 ? void 0 : _title$indexOf2.call(title, '日期')) === -1;
|
|
13198
|
+
var _item$title2, _item$title3;
|
|
13199
|
+
return (item === null || item === void 0 ? void 0 : (_item$title2 = item.title) === null || _item$title2 === void 0 ? void 0 : _item$title2.indexOf('人')) === -1 && (item === null || item === void 0 ? void 0 : (_item$title3 = item.title) === null || _item$title3 === void 0 ? void 0 : _item$title3.indexOf('日期')) === -1;
|
|
13362
13200
|
}).map(function (item) {
|
|
13363
13201
|
return /*#__PURE__*/React.createElement(Checkbox, {
|
|
13364
13202
|
checked: !item.hidden,
|
|
@@ -13377,8 +13215,8 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
13377
13215
|
}, /*#__PURE__*/React.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React.createElement("div", {
|
|
13378
13216
|
className: 'sort_table_column_all'
|
|
13379
13217
|
}, _toConsumableArray(dataSource).filter(function (item) {
|
|
13380
|
-
var _item$
|
|
13381
|
-
return (item === null || item === void 0 ? void 0 : (_item$
|
|
13218
|
+
var _item$title4, _item$title5;
|
|
13219
|
+
return (item === null || item === void 0 ? void 0 : (_item$title4 = item.title) === null || _item$title4 === void 0 ? void 0 : _item$title4.indexOf('人')) > -1 || (item === null || item === void 0 ? void 0 : (_item$title5 = item.title) === null || _item$title5 === void 0 ? void 0 : _item$title5.indexOf('日期')) > -1;
|
|
13382
13220
|
}).map(function (item) {
|
|
13383
13221
|
return /*#__PURE__*/React.createElement(Checkbox, {
|
|
13384
13222
|
checked: !item.hidden,
|
|
@@ -13414,8 +13252,8 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
13414
13252
|
pagination: false,
|
|
13415
13253
|
showHeader: false,
|
|
13416
13254
|
dataSource: onSearchSort ? sortDataSource.filter(function (item) {
|
|
13417
|
-
var
|
|
13418
|
-
return (
|
|
13255
|
+
var _item$title6;
|
|
13256
|
+
return (item === null || item === void 0 ? void 0 : (_item$title6 = item.title) === null || _item$title6 === void 0 ? void 0 : _item$title6.indexOf(onSearchSort)) > -1;
|
|
13419
13257
|
}) : sortDataSource,
|
|
13420
13258
|
columns: this.columns,
|
|
13421
13259
|
rowKey: "key",
|
|
@@ -13437,7 +13275,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
13437
13275
|
return SortableTable;
|
|
13438
13276
|
}(React.Component);
|
|
13439
13277
|
|
|
13440
|
-
var _excluded$
|
|
13278
|
+
var _excluded$e = ["className", "style"];
|
|
13441
13279
|
var DragHandle$3 = SortableHandle(function () {
|
|
13442
13280
|
return /*#__PURE__*/React.createElement("img", {
|
|
13443
13281
|
width: 25,
|
|
@@ -13479,7 +13317,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13479
13317
|
hidden: item.hidden
|
|
13480
13318
|
};
|
|
13481
13319
|
}) : '';
|
|
13482
|
-
|
|
13320
|
+
axios({
|
|
13483
13321
|
url: handleRequestUrl('/user', '/appConfig/saveQueryCriteria', appRequestConfig),
|
|
13484
13322
|
method: 'POST',
|
|
13485
13323
|
data: {
|
|
@@ -13688,7 +13526,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13688
13526
|
_this.DraggableBodyRow = function (_ref2) {
|
|
13689
13527
|
var className = _ref2.className,
|
|
13690
13528
|
style = _ref2.style,
|
|
13691
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
13529
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$e);
|
|
13692
13530
|
var sortDataSource = _this.state.sortDataSource;
|
|
13693
13531
|
var index = sortDataSource.findIndex(function (x) {
|
|
13694
13532
|
return x.name === restProps['data-row-key'];
|
|
@@ -13823,7 +13661,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13823
13661
|
style: {
|
|
13824
13662
|
marginRight: 0
|
|
13825
13663
|
}
|
|
13826
|
-
}, "\u6062\u590D\u9ED8\u8BA4"), /*#__PURE__*/React.createElement(Button, {
|
|
13664
|
+
}, "\u6062\u590D\u9ED8\u8BA4"), ",", /*#__PURE__*/React.createElement(Button, {
|
|
13827
13665
|
key: "back",
|
|
13828
13666
|
onClick: this.handleResetSetting
|
|
13829
13667
|
}, "\u91CD\u7F6E\u8BBE\u7F6E")), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
|
|
@@ -13832,7 +13670,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13832
13670
|
style: {
|
|
13833
13671
|
marginRight: 0
|
|
13834
13672
|
}
|
|
13835
|
-
}, "\u53D6\u6D88"), /*#__PURE__*/React.createElement(Button, {
|
|
13673
|
+
}, "\u53D6\u6D88"), ",", /*#__PURE__*/React.createElement(Button, {
|
|
13836
13674
|
key: "submit",
|
|
13837
13675
|
type: "primary",
|
|
13838
13676
|
onClick: this.handleOk
|
|
@@ -13944,16 +13782,12 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13944
13782
|
return SearchItemTable;
|
|
13945
13783
|
}(React.Component);
|
|
13946
13784
|
|
|
13947
|
-
var
|
|
13948
|
-
styleInject(css_248z$g);
|
|
13949
|
-
|
|
13950
|
-
var _excluded$g = ["onResize", "width"];
|
|
13785
|
+
var _excluded$f = ["onResize", "width"];
|
|
13951
13786
|
var MemoQueryTable = /*#__PURE__*/React.memo(QueryTable);
|
|
13952
|
-
var Text$2 = Typography.Text;
|
|
13953
13787
|
var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
13954
13788
|
var onResize = props.onResize,
|
|
13955
13789
|
width = props.width,
|
|
13956
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
13790
|
+
restProps = _objectWithoutProperties(props, _excluded$f);
|
|
13957
13791
|
if (!width) {
|
|
13958
13792
|
return /*#__PURE__*/React.createElement("th", _objectSpread2({}, restProps));
|
|
13959
13793
|
}
|
|
@@ -13967,52 +13801,80 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
13967
13801
|
}, /*#__PURE__*/React.createElement("th", _objectSpread2({}, restProps)));
|
|
13968
13802
|
};
|
|
13969
13803
|
var BsSulaQueryTable = (function (props) {
|
|
13970
|
-
var
|
|
13971
|
-
var
|
|
13972
|
-
|
|
13973
|
-
|
|
13804
|
+
var bsTableCode = (props === null || props === void 0 ? void 0 : props.tableCode) || window.location.hash; //设置列字段的唯一标识
|
|
13805
|
+
var getConfigFromlocalstorage = function getConfigFromlocalstorage(type) {
|
|
13806
|
+
var config = localStorage.getItem(type) || '[]';
|
|
13807
|
+
var configArray = JSON.parse(config);
|
|
13808
|
+
var configSetting = configArray.filter(function (item) {
|
|
13809
|
+
return item.code === bsTableCode;
|
|
13810
|
+
});
|
|
13811
|
+
if (configSetting.length && configSetting[0].detail) {
|
|
13812
|
+
return JSON.parse(configSetting[0].detail);
|
|
13813
|
+
}
|
|
13814
|
+
return [];
|
|
13815
|
+
};
|
|
13816
|
+
var getInitialSearchFieldsInfo = function getInitialSearchFieldsInfo() {
|
|
13817
|
+
//获取搜索字段的缓存配置
|
|
13818
|
+
var _props$fields = props.fields,
|
|
13819
|
+
fields = _props$fields === void 0 ? [] : _props$fields;
|
|
13820
|
+
var searchFieldsConfig = getConfigFromlocalstorage(ENUM.BROWSER_CACHE.SEARCH_FIELDS_CONDITION);
|
|
13821
|
+
var showSearchFields = searchFieldsConfig.length ? searchFieldsConfig.map(function (item) {
|
|
13822
|
+
var inner = fields.filter(function (inneritem) {
|
|
13823
|
+
var innerKey = Array.isArray(inneritem.name) ? JSON.stringify(inneritem.name) : inneritem.name;
|
|
13824
|
+
var itemKey = Array.isArray(item.name) ? JSON.stringify(item.name) : item.name;
|
|
13825
|
+
return innerKey && innerKey === itemKey;
|
|
13826
|
+
})[0];
|
|
13827
|
+
return _objectSpread2(_objectSpread2({}, inner), item);
|
|
13828
|
+
}) : fields;
|
|
13829
|
+
return _toConsumableArray(showSearchFields);
|
|
13830
|
+
};
|
|
13974
13831
|
var refs = useRef(null);
|
|
13975
13832
|
var _useState = useState(''),
|
|
13976
13833
|
_useState2 = _slicedToArray(_useState, 2),
|
|
13977
13834
|
pagePath = _useState2[0],
|
|
13978
13835
|
setPagePath = _useState2[1];
|
|
13979
13836
|
// 获取 table columns中所有的 key 防止有的地方是 dataindex
|
|
13980
|
-
var
|
|
13981
|
-
|
|
13982
|
-
|
|
13983
|
-
|
|
13984
|
-
|
|
13985
|
-
var _useLocation = useLocation(),
|
|
13986
|
-
pathname = _useLocation.pathname,
|
|
13987
|
-
_useLocation$state = _useLocation.state,
|
|
13988
|
-
state = _useLocation$state === void 0 ? {} : _useLocation$state;
|
|
13989
|
-
var _useState3 = useState(false),
|
|
13837
|
+
var _useState3 = useState(props.columns.filter(function (col) {
|
|
13838
|
+
return !col.hidden;
|
|
13839
|
+
}).map(function (d) {
|
|
13840
|
+
return Array.isArray(d.key || d.dataIndex) ? JSON.stringify(d.key || d.dataIndex) : d.key || d.dataIndex;
|
|
13841
|
+
})),
|
|
13990
13842
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
13991
|
-
|
|
13992
|
-
|
|
13993
|
-
|
|
13994
|
-
|
|
13995
|
-
var _useState5 = useState(
|
|
13996
|
-
_useState6 = _slicedToArray(_useState5,
|
|
13997
|
-
|
|
13998
|
-
|
|
13999
|
-
var _useState7 = useState(props.fields || []),
|
|
13843
|
+
checkedList = _useState4[0],
|
|
13844
|
+
setCheckedList = _useState4[1];
|
|
13845
|
+
var _useLocation = useLocation(),
|
|
13846
|
+
pathname = _useLocation.pathname;
|
|
13847
|
+
var _useState5 = useState(Number(Math.random().toString().substr(2, 0) + Date.now()).toString(36)),
|
|
13848
|
+
_useState6 = _slicedToArray(_useState5, 1),
|
|
13849
|
+
id = _useState6[0];
|
|
13850
|
+
var _useState7 = useState(false),
|
|
14000
13851
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
14001
|
-
|
|
14002
|
-
|
|
14003
|
-
|
|
13852
|
+
isFullScreen = _useState8[0],
|
|
13853
|
+
setIsFnllScreen = _useState8[1];
|
|
13854
|
+
// @ts-nocheck
|
|
13855
|
+
var _useState9 = useState(props),
|
|
14004
13856
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
14005
|
-
|
|
14006
|
-
|
|
14007
|
-
var _useState11 = useState(
|
|
13857
|
+
value = _useState10[0],
|
|
13858
|
+
setValue = _useState10[1];
|
|
13859
|
+
var _useState11 = useState([]),
|
|
14008
13860
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
14009
|
-
|
|
14010
|
-
|
|
13861
|
+
showColumn = _useState12[0],
|
|
13862
|
+
setShowColumns = _useState12[1]; // 列字段
|
|
13863
|
+
var originSearchFields = getInitialSearchFieldsInfo();
|
|
13864
|
+
var _useState13 = useState(originSearchFields),
|
|
13865
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
13866
|
+
showSearchFields = _useState14[0],
|
|
13867
|
+
setShowSearchFields = _useState14[1]; //搜索项字段
|
|
13868
|
+
var _props$isPage = props.isPage,
|
|
13869
|
+
pagination = props.pagination,
|
|
13870
|
+
tableCode = props.tableCode,
|
|
13871
|
+
appRequestConfig = props.appRequestConfig;
|
|
13872
|
+
var _useState15 = useState('100vh'),
|
|
13873
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
13874
|
+
height = _useState16[0],
|
|
13875
|
+
setHeight = _useState16[1];
|
|
14011
13876
|
var sortTableRef = useRef(null);
|
|
14012
13877
|
var searchTableRef = useRef(null);
|
|
14013
|
-
var exportTableRef = useRef(null);
|
|
14014
|
-
var bsTableCode = tableCode || window.location.hash; //设置列字段的唯一标识
|
|
14015
|
-
var bsTableCodeExport = "".concat(bsTableCode, "___Export"); //设置导出列字段的唯一标识
|
|
14016
13878
|
// 获取table高度
|
|
14017
13879
|
var getTableHeight = function getTableHeight() {
|
|
14018
13880
|
setTimeout(function () {
|
|
@@ -14025,6 +13887,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
14025
13887
|
var listTabHeight = document.querySelector(".ant-tabs-tabpane-active .list_top_tab .ant-tabs-nav") ? ((_document$querySelect2 = document.querySelector(".ant-tabs-tabpane-active .list_top_tab .ant-tabs-nav")) === null || _document$querySelect2 === void 0 ? void 0 : _document$querySelect2.clientHeight) || 48 : 0;
|
|
14026
13888
|
var h = realIframeClientHeight - summaryHeight - listTabHeight - (((_document$querySelect3 = document.querySelector(".ant-tabs-tabpane-active .ant-form ant-form-horizontal")) === null || _document$querySelect3 === void 0 ? void 0 : _document$querySelect3.clientHeight) || 0) - (isFullScreen ? 0 : ((_document$querySelect4 = document.querySelector(".ant-tabs-tabpane-active .ant-pro-page-container-warp")) === null || _document$querySelect4 === void 0 ? void 0 : _document$querySelect4.clientHeight) || 0) - cancelHeight + 'px';
|
|
14027
13889
|
setHeight(h);
|
|
13890
|
+
setValue(_objectSpread2({}, value));
|
|
14028
13891
|
}, 0);
|
|
14029
13892
|
};
|
|
14030
13893
|
//监测是否按下esc键
|
|
@@ -14035,18 +13898,6 @@ var BsSulaQueryTable = (function (props) {
|
|
|
14035
13898
|
if (isFull == undefined) isFull = false;
|
|
14036
13899
|
return isFull;
|
|
14037
13900
|
}
|
|
14038
|
-
var getConfigFromlocalstorage = function getConfigFromlocalstorage(type) {
|
|
14039
|
-
var tableCode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : bsTableCode;
|
|
14040
|
-
var config = localStorage.getItem(type) || '[]';
|
|
14041
|
-
var configArray = JSON.parse(config);
|
|
14042
|
-
var configSetting = configArray.filter(function (item) {
|
|
14043
|
-
return item.code === tableCode;
|
|
14044
|
-
});
|
|
14045
|
-
if (configSetting.length && configSetting[0].detail) {
|
|
14046
|
-
return JSON.parse(configSetting[0].detail);
|
|
14047
|
-
}
|
|
14048
|
-
return [];
|
|
14049
|
-
};
|
|
14050
13901
|
var setInitialTableInfo = function setInitialTableInfo() {
|
|
14051
13902
|
var resourceCodeArray = {};
|
|
14052
13903
|
if (props.actionsRender && props.actionsRender.length) {
|
|
@@ -14089,23 +13940,22 @@ var BsSulaQueryTable = (function (props) {
|
|
|
14089
13940
|
}
|
|
14090
13941
|
});
|
|
14091
13942
|
}
|
|
14092
|
-
|
|
14093
|
-
|
|
14094
|
-
|
|
14095
|
-
|
|
14096
|
-
var inner = columns.filter(function (inneritem) {
|
|
14097
|
-
var innerKey = Array.isArray(inneritem.key || inneritem.dataIndex) ? JSON.stringify(inneritem.key || inneritem.dataIndex) : inneritem.key || inneritem.dataIndex;
|
|
14098
|
-
var itemKey = Array.isArray(item.key || item.dataIndex) ? JSON.stringify(item.key || item.dataIndex) : item.key || item.dataIndex;
|
|
14099
|
-
return innerKey && innerKey === itemKey;
|
|
14100
|
-
})[0];
|
|
14101
|
-
return _objectSpread2(_objectSpread2({}, inner), item);
|
|
14102
|
-
}) : columns.filter(function (column) {
|
|
14103
|
-
var columnKey = Array.isArray(column.key || column.dataIndex) ? JSON.stringify(column.key || column.dataIndex) : column.key || column.dataIndex;
|
|
14104
|
-
return column.notRegularCheckList || checkedList.indexOf(columnKey) > -1;
|
|
14105
|
-
});
|
|
14106
|
-
};
|
|
13943
|
+
setValue(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
13944
|
+
columns: _toConsumableArray(props.columns)
|
|
13945
|
+
}));
|
|
13946
|
+
var columns = props.columns;
|
|
14107
13947
|
var columnConfig = getConfigFromlocalstorage(ENUM.BROWSER_CACHE.COLUMN_CONDITION);
|
|
14108
|
-
var showColumns =
|
|
13948
|
+
var showColumns = columnConfig.length ? columnConfig.map(function (item) {
|
|
13949
|
+
var inner = columns.filter(function (inneritem) {
|
|
13950
|
+
var innerKey = Array.isArray(inneritem.key || inneritem.dataIndex) ? JSON.stringify(inneritem.key || inneritem.dataIndex) : inneritem.key || inneritem.dataIndex;
|
|
13951
|
+
var itemKey = Array.isArray(item.key || item.dataIndex) ? JSON.stringify(item.key || item.dataIndex) : item.key || item.dataIndex;
|
|
13952
|
+
return innerKey && innerKey === itemKey;
|
|
13953
|
+
})[0];
|
|
13954
|
+
return _objectSpread2(_objectSpread2({}, inner), item);
|
|
13955
|
+
}) : columns.filter(function (column) {
|
|
13956
|
+
var columnKey = Array.isArray(column.key || column.dataIndex) ? JSON.stringify(column.key || column.dataIndex) : column.key || column.dataIndex;
|
|
13957
|
+
return column.notRegularCheckList || checkedList.indexOf(columnKey) > -1;
|
|
13958
|
+
});
|
|
14109
13959
|
showColumns.forEach(function (item, index) {
|
|
14110
13960
|
item.width = item.width || getItemDefaultWidth(item);
|
|
14111
13961
|
handleBssulaColumnsSpecialParams(item);
|
|
@@ -14117,24 +13967,11 @@ var BsSulaQueryTable = (function (props) {
|
|
|
14117
13967
|
};
|
|
14118
13968
|
});
|
|
14119
13969
|
setShowColumns(_toConsumableArray(showColumns));
|
|
14120
|
-
var exportColumnConfig = getConfigFromlocalstorage(ENUM.BROWSER_CACHE.COLUMN_CONDITION, bsTableCodeExport);
|
|
14121
|
-
var showExportColumns = getShowColumns(exportColumnConfig, columns);
|
|
14122
|
-
showExportColumns.forEach(function (item, index) {
|
|
14123
|
-
item.width = item.width || getItemDefaultWidth(item);
|
|
14124
|
-
handleBssulaColumnsSpecialParams(item);
|
|
14125
|
-
item.onHeaderCell = function (column) {
|
|
14126
|
-
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
14127
|
-
width: typeof column.width === 'number' ? column.width : parseInt(column.width.replace('px', '')),
|
|
14128
|
-
onResize: handleResize(index)
|
|
14129
|
-
});
|
|
14130
|
-
};
|
|
14131
|
-
});
|
|
14132
|
-
setShowExportColumns(_toConsumableArray(showExportColumns));
|
|
14133
13970
|
};
|
|
14134
13971
|
var setInitialSearchFieldsInfo = function setInitialSearchFieldsInfo() {
|
|
14135
13972
|
//获取搜索字段的缓存配置
|
|
14136
|
-
var _props$
|
|
14137
|
-
fields = _props$
|
|
13973
|
+
var _props$fields2 = props.fields,
|
|
13974
|
+
fields = _props$fields2 === void 0 ? [] : _props$fields2;
|
|
14138
13975
|
var searchFieldsConfig = getConfigFromlocalstorage(ENUM.BROWSER_CACHE.SEARCH_FIELDS_CONDITION);
|
|
14139
13976
|
var showSearchFields = searchFieldsConfig.length ? searchFieldsConfig.map(function (item) {
|
|
14140
13977
|
var inner = fields.filter(function (inneritem) {
|
|
@@ -14227,7 +14064,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
14227
14064
|
}
|
|
14228
14065
|
},
|
|
14229
14066
|
initialSelectedRowKeys: value.initialSelectedRowKeys || [],
|
|
14230
|
-
expandable:
|
|
14067
|
+
expandable: value.expandable,
|
|
14231
14068
|
scroll: {
|
|
14232
14069
|
x: props.overScrollX || 'max-content',
|
|
14233
14070
|
y: height
|
|
@@ -14275,7 +14112,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
14275
14112
|
}
|
|
14276
14113
|
};
|
|
14277
14114
|
var handleTimeValue = function handleTimeValue() {
|
|
14278
|
-
var _sortTableRef$current, _value$exportConfig,
|
|
14115
|
+
var _sortTableRef$current, _value$exportConfig, _value$exportConfig2, _value$exportConfig3;
|
|
14279
14116
|
var actionsRender = value.actionsRender || [];
|
|
14280
14117
|
actionsRender = [].concat(_toConsumableArray(actionsRender), [{
|
|
14281
14118
|
type: 'text',
|
|
@@ -14294,14 +14131,9 @@ var BsSulaQueryTable = (function (props) {
|
|
|
14294
14131
|
setShowSearchFields: setShowSearchFields,
|
|
14295
14132
|
showSearchFields: showSearchFields,
|
|
14296
14133
|
datasource: (value === null || value === void 0 ? void 0 : value.fields) || [],
|
|
14297
|
-
bsTableCode: bsTableCode
|
|
14298
|
-
|
|
14299
|
-
|
|
14300
|
-
style: {
|
|
14301
|
-
fontSize: 14,
|
|
14302
|
-
textAlign: 'center'
|
|
14303
|
-
}
|
|
14304
|
-
}, "\u5BFC\u51FA\u5B57\u6BB5\u8BBE\u7F6E")))),
|
|
14134
|
+
bsTableCode: bsTableCode,
|
|
14135
|
+
appRequestConfig: appRequestConfig
|
|
14136
|
+
}))),
|
|
14305
14137
|
placement: "bottomRight"
|
|
14306
14138
|
}, /*#__PURE__*/React.createElement("span", {
|
|
14307
14139
|
className: "ant-dropdown-link"
|
|
@@ -14334,14 +14166,12 @@ var BsSulaQueryTable = (function (props) {
|
|
|
14334
14166
|
}, {
|
|
14335
14167
|
type: 'text',
|
|
14336
14168
|
props: {
|
|
14337
|
-
children: (value === null || value === void 0 ? void 0 : value.exportConfig) && authFn(value === null || value === void 0 ? void 0 : (_value$
|
|
14169
|
+
children: (value === null || value === void 0 ? void 0 : value.exportConfig) && authFn(value === null || value === void 0 ? void 0 : (_value$exportConfig = value.exportConfig) === null || _value$exportConfig === void 0 ? void 0 : _value$exportConfig.code) ? ( /*#__PURE__*/React.createElement(ExportIcon, {
|
|
14338
14170
|
request: {
|
|
14339
|
-
url:
|
|
14340
|
-
params: value === null || value === void 0 ? void 0 : (_value$
|
|
14171
|
+
url: "/oms-ops/excel/exportAsync/".concat(value === null || value === void 0 ? void 0 : (_value$exportConfig2 = value.exportConfig) === null || _value$exportConfig2 === void 0 ? void 0 : _value$exportConfig2.type),
|
|
14172
|
+
params: (value === null || value === void 0 ? void 0 : (_value$exportConfig3 = value.exportConfig) === null || _value$exportConfig3 === void 0 ? void 0 : _value$exportConfig3.params) || queryParams
|
|
14341
14173
|
},
|
|
14342
|
-
tableRef: props.forwardedRef || refs
|
|
14343
|
-
allowSelect: value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.allowSelect,
|
|
14344
|
-
columnsRowKey: value === null || value === void 0 ? void 0 : value.rowKey
|
|
14174
|
+
tableRef: props.forwardedRef || refs
|
|
14345
14175
|
})) : ( /*#__PURE__*/React.createElement("span", null))
|
|
14346
14176
|
}
|
|
14347
14177
|
}]);
|
|
@@ -14371,29 +14201,6 @@ var BsSulaQueryTable = (function (props) {
|
|
|
14371
14201
|
var _sortTableRef$current2, _sortTableRef$current3;
|
|
14372
14202
|
sortTableRef === null || sortTableRef === void 0 ? void 0 : (_sortTableRef$current2 = sortTableRef.current) === null || _sortTableRef$current2 === void 0 ? void 0 : (_sortTableRef$current3 = _sortTableRef$current2.handleTableHeadHidden) === null || _sortTableRef$current3 === void 0 ? void 0 : _sortTableRef$current3.call(_sortTableRef$current2, columnTitle);
|
|
14373
14203
|
};
|
|
14374
|
-
var toMapByKey = function toMapByKey(arr, key, fn) {
|
|
14375
|
-
var map = {};
|
|
14376
|
-
arr.forEach(function (i) {
|
|
14377
|
-
return map[renderToString(i[key])] = i;
|
|
14378
|
-
});
|
|
14379
|
-
return map;
|
|
14380
|
-
};
|
|
14381
|
-
var getColumns = function getColumns() {
|
|
14382
|
-
// 优化一下 减少复杂度
|
|
14383
|
-
var titleMap = toMapByKey(value.columns, 'title');
|
|
14384
|
-
// 加上排序
|
|
14385
|
-
var cols = showColumn.map(function (i) {
|
|
14386
|
-
var _titleMap$renderToStr, _titleMap$renderToStr2;
|
|
14387
|
-
return _objectSpread2(_objectSpread2({}, i), {}, {
|
|
14388
|
-
isPermissionColumn: (_titleMap$renderToStr = titleMap[renderToString(i.title)]) === null || _titleMap$renderToStr === void 0 ? void 0 : _titleMap$renderToStr.isPermissionColumn,
|
|
14389
|
-
render: (_titleMap$renderToStr2 = titleMap[renderToString(i.title)]) === null || _titleMap$renderToStr2 === void 0 ? void 0 : _titleMap$renderToStr2.render
|
|
14390
|
-
});
|
|
14391
|
-
});
|
|
14392
|
-
cols.forEach(function (i) {
|
|
14393
|
-
return handleBssulaColumnsSpecialParams(i);
|
|
14394
|
-
});
|
|
14395
|
-
return cols;
|
|
14396
|
-
};
|
|
14397
14204
|
var config = _objectSpread2(_objectSpread2({
|
|
14398
14205
|
visibleFieldsCount: 3,
|
|
14399
14206
|
tableWrapperStyle: {
|
|
@@ -14415,109 +14222,45 @@ var BsSulaQueryTable = (function (props) {
|
|
|
14415
14222
|
rowSelection: false
|
|
14416
14223
|
}, handleTimeValue()), {}, {
|
|
14417
14224
|
tableProps: setTableProps(),
|
|
14418
|
-
columns:
|
|
14225
|
+
columns: _toConsumableArray(showColumn),
|
|
14419
14226
|
fields: _toConsumableArray(showSearchFields),
|
|
14420
14227
|
ref: props.forwardedRef || refs,
|
|
14421
14228
|
isFullScreen: isFullScreen
|
|
14422
14229
|
});
|
|
14423
14230
|
useEffect(function () {
|
|
14424
|
-
if (!localStorage.getItem('isTabChange')
|
|
14231
|
+
if (!localStorage.getItem('isTabChange')) {
|
|
14425
14232
|
if (pagePath === pathname) {
|
|
14426
14233
|
var _config$ref, _config$ref$current, _config$ref$current$t, _config$ref$current$t2;
|
|
14427
14234
|
// @ts-ignore
|
|
14428
14235
|
(_config$ref = config.ref) === null || _config$ref === void 0 ? void 0 : (_config$ref$current = _config$ref.current) === null || _config$ref$current === void 0 ? void 0 : (_config$ref$current$t = _config$ref$current.tableRef) === null || _config$ref$current$t === void 0 ? void 0 : (_config$ref$current$t2 = _config$ref$current$t.current) === null || _config$ref$current$t2 === void 0 ? void 0 : _config$ref$current$t2.refreshTable();
|
|
14429
14236
|
}
|
|
14430
|
-
}
|
|
14431
|
-
setTimeout(function () {
|
|
14432
|
-
// 处理页面刷新两面
|
|
14433
|
-
localStorage.removeItem('isTabChange');
|
|
14434
|
-
}, 0);
|
|
14435
|
-
}, [pathname]);
|
|
14436
|
-
var expandedRowKeys = props === null || props === void 0 ? void 0 : (_props$expandable = props.expandable) === null || _props$expandable === void 0 ? void 0 : _props$expandable.expandedRowKeys;
|
|
14437
|
-
//todo summary属性已经被使用,为了兼容之前的,现在使用 summaryList
|
|
14438
|
-
//结构为了实现多行总结栏 定义如下(lableShow: boolean 是否显示列文本)
|
|
14439
|
-
/**
|
|
14440
|
-
* [
|
|
14441
|
-
* {
|
|
14442
|
-
* cont:[{key: 'spuCode',value: 100,labelShow: false}]
|
|
14443
|
-
* }
|
|
14444
|
-
* ]
|
|
14445
|
-
* @returns []
|
|
14446
|
-
*/
|
|
14447
|
-
var getTableSummaryInfo = function getTableSummaryInfo() {
|
|
14448
|
-
var summaryList = props.summaryList,
|
|
14449
|
-
rowSelection = props.rowSelection,
|
|
14450
|
-
expandable = props.expandable;
|
|
14451
|
-
if (summaryList && Array.isArray(summaryList)) {
|
|
14452
|
-
var summaryRow = rowSelection ? [{}].concat(_toConsumableArray(showColumn)) : _toConsumableArray(showColumn);
|
|
14453
|
-
if (expandable) {
|
|
14454
|
-
summaryRow.unshift({});
|
|
14455
|
-
}
|
|
14456
|
-
// let summaryInitial = summary().cont;
|
|
14457
|
-
return /*#__PURE__*/React.createElement(Table.Summary, {
|
|
14458
|
-
fixed: true
|
|
14459
|
-
}, Array.isArray(summaryList) && summaryList.map(function (summaryItem, summaryIndex) {
|
|
14460
|
-
return /*#__PURE__*/React.createElement(Table.Summary.Row, {
|
|
14461
|
-
key: summaryIndex
|
|
14462
|
-
}, summaryRow.map(function (item, index) {
|
|
14463
|
-
var _summaryItem$cout = summaryItem.cout,
|
|
14464
|
-
cout = _summaryItem$cout === void 0 ? [] : _summaryItem$cout;
|
|
14465
|
-
var target = cout.filter(function (inner) {
|
|
14466
|
-
return inner.key && (inner.key === item.dataIndex || inner.key === item.key);
|
|
14467
|
-
})[0];
|
|
14468
|
-
if (target) {
|
|
14469
|
-
var _target$value;
|
|
14470
|
-
var labelText = target.labelShow ? "".concat(item.title, ":") : "";
|
|
14471
|
-
return /*#__PURE__*/React.createElement(Table.Summary.Cell, {
|
|
14472
|
-
index: index,
|
|
14473
|
-
key: "Table.Summary.Cell_".concat(item.index)
|
|
14474
|
-
}, /*#__PURE__*/React.createElement(Text$2, {
|
|
14475
|
-
type: "danger"
|
|
14476
|
-
}, "".concat(labelText, " ").concat((_target$value = target.value) !== null && _target$value !== void 0 ? _target$value : '')));
|
|
14477
|
-
} else {
|
|
14478
|
-
return /*#__PURE__*/React.createElement(Table.Summary.Cell, {
|
|
14479
|
-
index: index,
|
|
14480
|
-
key: "Table.Summary.Cell_".concat(item.index)
|
|
14481
|
-
}, /*#__PURE__*/React.createElement(Text$2, {
|
|
14482
|
-
type: "danger"
|
|
14483
|
-
}, " "));
|
|
14484
|
-
}
|
|
14485
|
-
}));
|
|
14486
|
-
}));
|
|
14487
14237
|
} else {
|
|
14488
|
-
|
|
14238
|
+
setTimeout(function () {
|
|
14239
|
+
// 处理页面刷新两面
|
|
14240
|
+
localStorage.removeItem('isTabChange');
|
|
14241
|
+
}, 0);
|
|
14489
14242
|
}
|
|
14490
|
-
};
|
|
14243
|
+
}, [pathname]);
|
|
14491
14244
|
var memoConfig = useMemo(function () {
|
|
14492
14245
|
return _objectSpread2(_objectSpread2({}, config), {}, {
|
|
14493
14246
|
summary: props.summary,
|
|
14494
|
-
|
|
14495
|
-
|
|
14247
|
+
statusMapping: props.statusMapping,
|
|
14248
|
+
appRequestConfig: props.appRequestConfig
|
|
14496
14249
|
});
|
|
14497
|
-
}, [
|
|
14498
|
-
|
|
14499
|
-
checkedList, showColumn, props.statusMapping, showSearchFields, expandedRowKeys]);
|
|
14500
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
14501
|
-
id: "bs-sula-query-table"
|
|
14502
|
-
}, /*#__PURE__*/React.createElement(MemoQueryTable, _objectSpread2({}, memoConfig)), /*#__PURE__*/React.createElement(SortableTable$1, {
|
|
14250
|
+
}, [value, checkedList, showColumn, props.statusMapping, showSearchFields]);
|
|
14251
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(MemoQueryTable, _objectSpread2({}, memoConfig)), /*#__PURE__*/React.createElement(SortableTable$1, {
|
|
14503
14252
|
ref: sortTableRef,
|
|
14504
14253
|
setShowColumns: setShowColumns,
|
|
14505
14254
|
showColumn: showColumn,
|
|
14506
14255
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
14507
14256
|
bsTableCode: bsTableCode,
|
|
14257
|
+
appRequestConfig: appRequestConfig,
|
|
14508
14258
|
onlyModal: true
|
|
14509
|
-
})
|
|
14510
|
-
ref: exportTableRef,
|
|
14511
|
-
setShowColumns: setShowExportColumns,
|
|
14512
|
-
showColumn: showExportColumn,
|
|
14513
|
-
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
14514
|
-
bsTableCode: bsTableCodeExport,
|
|
14515
|
-
onlyModal: true
|
|
14516
|
-
})));
|
|
14259
|
+
}));
|
|
14517
14260
|
});
|
|
14518
14261
|
|
|
14519
|
-
var css_248z$
|
|
14520
|
-
styleInject(css_248z$
|
|
14262
|
+
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";
|
|
14263
|
+
styleInject(css_248z$f);
|
|
14521
14264
|
|
|
14522
14265
|
var cache = {};
|
|
14523
14266
|
var cacheLimit = 10000;
|
|
@@ -14773,8 +14516,8 @@ var AllFunc = function AllFunc(props) {
|
|
|
14773
14516
|
})))));
|
|
14774
14517
|
};
|
|
14775
14518
|
|
|
14776
|
-
var css_248z$
|
|
14777
|
-
styleInject(css_248z$
|
|
14519
|
+
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";
|
|
14520
|
+
styleInject(css_248z$g);
|
|
14778
14521
|
|
|
14779
14522
|
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";
|
|
14780
14523
|
|
|
@@ -14973,17 +14716,8 @@ var AllFunc$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
14973
14716
|
}))));
|
|
14974
14717
|
});
|
|
14975
14718
|
|
|
14976
|
-
var
|
|
14977
|
-
|
|
14978
|
-
lang: '中文'
|
|
14979
|
-
},
|
|
14980
|
-
'en-US': {
|
|
14981
|
-
lang: 'English'
|
|
14982
|
-
}
|
|
14983
|
-
};
|
|
14984
|
-
|
|
14985
|
-
var css_248z$j = ".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";
|
|
14986
|
-
styleInject(css_248z$j);
|
|
14719
|
+
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";
|
|
14720
|
+
styleInject(css_248z$h);
|
|
14987
14721
|
|
|
14988
14722
|
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";
|
|
14989
14723
|
|
|
@@ -15001,7 +14735,7 @@ function _outLogin() {
|
|
|
15001
14735
|
while (1) switch (_context.prev = _context.next) {
|
|
15002
14736
|
case 0:
|
|
15003
14737
|
_context.next = 2;
|
|
15004
|
-
return
|
|
14738
|
+
return axios({
|
|
15005
14739
|
url: '/user/web/loginOut',
|
|
15006
14740
|
method: 'GET'
|
|
15007
14741
|
});
|
|
@@ -15034,11 +14768,11 @@ var LoginModal = (function (props) {
|
|
|
15034
14768
|
}, "\u53D6\u6D88"), /*#__PURE__*/React.createElement(Button, {
|
|
15035
14769
|
onClick: function onClick() {
|
|
15036
14770
|
form.validateFields().then(function (res) {
|
|
15037
|
-
|
|
14771
|
+
axios({
|
|
15038
14772
|
url: "/bop/api/account/changePassWord/".concat(getAccountID()),
|
|
15039
14773
|
method: 'patch',
|
|
15040
14774
|
params: res
|
|
15041
|
-
}).then(function () {
|
|
14775
|
+
}).then(function (res) {
|
|
15042
14776
|
loginOut();
|
|
15043
14777
|
});
|
|
15044
14778
|
});
|
|
@@ -15092,7 +14826,6 @@ var LoginModal = (function (props) {
|
|
|
15092
14826
|
});
|
|
15093
14827
|
|
|
15094
14828
|
var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
15095
|
-
var _i18n$language;
|
|
15096
14829
|
var menu = _ref.menu;
|
|
15097
14830
|
var _useModel = useModel('@@initialState'),
|
|
15098
14831
|
initialState = _useModel.initialState;
|
|
@@ -15201,25 +14934,12 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
15201
14934
|
})), /*#__PURE__*/React.createElement("div", {
|
|
15202
14935
|
className: 'rcom_name'
|
|
15203
14936
|
}, "\u9000\u51FA\u767B\u5F55"))));
|
|
15204
|
-
var changeLanguage = function changeLanguage(lang) {
|
|
15205
|
-
localStorage.setItem('umi_locale', lang || "zh-CN");
|
|
15206
|
-
setLocale(lang || "zh-CN");
|
|
15207
|
-
window.location.reload();
|
|
15208
|
-
};
|
|
15209
|
-
var language = localStorage.getItem('umi_locale') || 'zh-CN';
|
|
15210
14937
|
return /*#__PURE__*/React.createElement("div", {
|
|
15211
14938
|
className: className,
|
|
15212
14939
|
style: divStyle()
|
|
15213
14940
|
}, /*#__PURE__*/React.createElement("div", {
|
|
15214
14941
|
className: 'rcom_imgWap'
|
|
15215
|
-
}, /*#__PURE__*/React.createElement(
|
|
15216
|
-
style: {
|
|
15217
|
-
marginRight: '20px'
|
|
15218
|
-
},
|
|
15219
|
-
onClick: function onClick() {
|
|
15220
|
-
changeLanguage(language === 'zh-CN' ? 'en-US' : 'zh-CN');
|
|
15221
|
-
}
|
|
15222
|
-
}, ((_i18n$language = i18n[language]) === null || _i18n$language === void 0 ? void 0 : _i18n$language.lang) || "English"), /*#__PURE__*/React.createElement(Dropdown, {
|
|
14942
|
+
}, /*#__PURE__*/React.createElement(Dropdown, {
|
|
15223
14943
|
overlay: menus,
|
|
15224
14944
|
trigger: ['click']
|
|
15225
14945
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -15244,296 +14964,23 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
15244
14964
|
}))))), loginModalParams.visible && ( /*#__PURE__*/React.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
15245
14965
|
};
|
|
15246
14966
|
|
|
15247
|
-
|
|
15248
|
-
|
|
15249
|
-
return _getStoreByName.apply(this, arguments);
|
|
15250
|
-
}
|
|
15251
|
-
function _getStoreByName() {
|
|
15252
|
-
_getStoreByName = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
15253
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
15254
|
-
while (1) switch (_context.prev = _context.next) {
|
|
15255
|
-
case 0:
|
|
15256
|
-
return _context.abrupt("return", requestUtil({
|
|
15257
|
-
url: '/store-house/orgViewNode/listNoPage',
|
|
15258
|
-
method: 'GET',
|
|
15259
|
-
params: _objectSpread2({}, params)
|
|
15260
|
-
}));
|
|
15261
|
-
case 1:
|
|
15262
|
-
case "end":
|
|
15263
|
-
return _context.stop();
|
|
15264
|
-
}
|
|
15265
|
-
}, _callee);
|
|
15266
|
-
}));
|
|
15267
|
-
return _getStoreByName.apply(this, arguments);
|
|
15268
|
-
}
|
|
14967
|
+
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";
|
|
14968
|
+
styleInject(css_248z$i);
|
|
15269
14969
|
|
|
15270
|
-
var
|
|
15271
|
-
|
|
15272
|
-
|
|
15273
|
-
|
|
15274
|
-
|
|
15275
|
-
|
|
15276
|
-
|
|
15277
|
-
var
|
|
14970
|
+
var judgeIsEmpty$2 = function judgeIsEmpty(value) {
|
|
14971
|
+
if (value == null || value == undefined || String(value).trim() == '') {
|
|
14972
|
+
return true;
|
|
14973
|
+
}
|
|
14974
|
+
return false;
|
|
14975
|
+
};
|
|
14976
|
+
var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
14977
|
+
var _props$route$routes = props.route.routes,
|
|
14978
|
+
routes = _props$route$routes === void 0 ? [] : _props$route$routes;
|
|
14979
|
+
var _useState = useState(''),
|
|
15278
14980
|
_useState2 = _slicedToArray(_useState, 2),
|
|
15279
|
-
|
|
15280
|
-
|
|
15281
|
-
var _useState3 = useState([
|
|
15282
|
-
label: name,
|
|
15283
|
-
value: code
|
|
15284
|
-
}]),
|
|
15285
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
15286
|
-
value = _useState4[0],
|
|
15287
|
-
setValue = _useState4[1];
|
|
15288
|
-
// const [ key, setKey ] = useState(undefined);
|
|
15289
|
-
var _useState5 = useState(undefined),
|
|
15290
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
15291
|
-
key = _useState6[0],
|
|
15292
|
-
setKey = _useState6[1];
|
|
15293
|
-
var _useState7 = useState(false),
|
|
15294
|
-
_useState8 = _slicedToArray(_useState7, 2),
|
|
15295
|
-
openSelect = _useState8[0],
|
|
15296
|
-
setOpenSelect = _useState8[1];
|
|
15297
|
-
var _useState9 = useState([]),
|
|
15298
|
-
_useState10 = _slicedToArray(_useState9, 2),
|
|
15299
|
-
options = _useState10[0],
|
|
15300
|
-
setOptions = _useState10[1];
|
|
15301
|
-
var _useState11 = useState([]),
|
|
15302
|
-
_useState12 = _slicedToArray(_useState11, 2),
|
|
15303
|
-
rescouse = _useState12[0],
|
|
15304
|
-
setRescouse = _useState12[1];
|
|
15305
|
-
var _useState13 = useState(''),
|
|
15306
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
15307
|
-
searchValue = _useState14[0],
|
|
15308
|
-
setSearchValue = _useState14[1];
|
|
15309
|
-
var _useState15 = useState([{
|
|
15310
|
-
label: name,
|
|
15311
|
-
value: code
|
|
15312
|
-
}]),
|
|
15313
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
15314
|
-
store = _useState16[0],
|
|
15315
|
-
setStore = _useState16[1];
|
|
15316
|
-
function fetchUserList(_x, _x2) {
|
|
15317
|
-
return _fetchUserList.apply(this, arguments);
|
|
15318
|
-
}
|
|
15319
|
-
function _fetchUserList() {
|
|
15320
|
-
_fetchUserList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
15321
|
-
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
15322
|
-
while (1) switch (_context3.prev = _context3.next) {
|
|
15323
|
-
case 0:
|
|
15324
|
-
return _context3.abrupt("return", getStoreByName({
|
|
15325
|
-
orgName: storeName ? storeName : undefined,
|
|
15326
|
-
platCompanyCode: init ? undefined : key,
|
|
15327
|
-
'qp-employeeCode-eq': employeeCode || 'EMP231011000002',
|
|
15328
|
-
'qp-orgViewCode-eq': 'business-organizational-view'
|
|
15329
|
-
}).then(function (res) {
|
|
15330
|
-
var data = res.data;
|
|
15331
|
-
if (data.code != '000000') {
|
|
15332
|
-
return;
|
|
15333
|
-
}
|
|
15334
|
-
return data.data.map(function (item) {
|
|
15335
|
-
return {
|
|
15336
|
-
label: item.orgName,
|
|
15337
|
-
value: item.orgCode,
|
|
15338
|
-
defaultOrg: item.defaultOrg,
|
|
15339
|
-
platCompanyCode: item.platCompanyCode
|
|
15340
|
-
};
|
|
15341
|
-
});
|
|
15342
|
-
}));
|
|
15343
|
-
case 1:
|
|
15344
|
-
case "end":
|
|
15345
|
-
return _context3.stop();
|
|
15346
|
-
}
|
|
15347
|
-
}, _callee3);
|
|
15348
|
-
}));
|
|
15349
|
-
return _fetchUserList.apply(this, arguments);
|
|
15350
|
-
}
|
|
15351
|
-
var debounceFetcher = useMemo(function () {
|
|
15352
|
-
var loadOptions = function loadOptions(str) {
|
|
15353
|
-
fetchRef.current += 1;
|
|
15354
|
-
var fetchId = fetchRef.current;
|
|
15355
|
-
setOptions([]);
|
|
15356
|
-
setRescouse([]);
|
|
15357
|
-
fetchUserList(str).then(function (newOptions) {
|
|
15358
|
-
if (fetchId !== fetchRef.current) {
|
|
15359
|
-
return;
|
|
15360
|
-
}
|
|
15361
|
-
setOptions(newOptions);
|
|
15362
|
-
setRescouse(newOptions);
|
|
15363
|
-
});
|
|
15364
|
-
};
|
|
15365
|
-
return debounce$1(loadOptions, debounceTimeout);
|
|
15366
|
-
}, [debounceTimeout, key]);
|
|
15367
|
-
var changeInput = /*#__PURE__*/function () {
|
|
15368
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
15369
|
-
var res;
|
|
15370
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
15371
|
-
while (1) switch (_context.prev = _context.next) {
|
|
15372
|
-
case 0:
|
|
15373
|
-
_context.next = 2;
|
|
15374
|
-
return debounceFetcher(str);
|
|
15375
|
-
case 2:
|
|
15376
|
-
res = _context.sent;
|
|
15377
|
-
setOptions(res);
|
|
15378
|
-
setRescouse(res);
|
|
15379
|
-
case 5:
|
|
15380
|
-
case "end":
|
|
15381
|
-
return _context.stop();
|
|
15382
|
-
}
|
|
15383
|
-
}, _callee);
|
|
15384
|
-
}));
|
|
15385
|
-
return function changeInput(_x3) {
|
|
15386
|
-
return _ref.apply(this, arguments);
|
|
15387
|
-
};
|
|
15388
|
-
}();
|
|
15389
|
-
useEffect(function () {
|
|
15390
|
-
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
15391
|
-
var res;
|
|
15392
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
15393
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
15394
|
-
case 0:
|
|
15395
|
-
_context2.next = 2;
|
|
15396
|
-
return fetchUserList(undefined, true);
|
|
15397
|
-
case 2:
|
|
15398
|
-
res = _context2.sent;
|
|
15399
|
-
res.map(function (item, indexNumber) {
|
|
15400
|
-
if (item.label === name) {
|
|
15401
|
-
setIndex(indexNumber);
|
|
15402
|
-
}
|
|
15403
|
-
if (item.defaultOrg) {
|
|
15404
|
-
if (name) {
|
|
15405
|
-
return;
|
|
15406
|
-
}
|
|
15407
|
-
localStorage.setItem('WARE_HOUSE_NAME', item === null || item === void 0 ? void 0 : item.label);
|
|
15408
|
-
localStorage.setItem('WARE_HOUSE_CODE', item === null || item === void 0 ? void 0 : item.value);
|
|
15409
|
-
setValue([item]);
|
|
15410
|
-
}
|
|
15411
|
-
});
|
|
15412
|
-
setOptions(res);
|
|
15413
|
-
setRescouse(res);
|
|
15414
|
-
case 6:
|
|
15415
|
-
case "end":
|
|
15416
|
-
return _context2.stop();
|
|
15417
|
-
}
|
|
15418
|
-
}, _callee2);
|
|
15419
|
-
}))();
|
|
15420
|
-
}, []);
|
|
15421
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Select, {
|
|
15422
|
-
value: value,
|
|
15423
|
-
style: {
|
|
15424
|
-
width: 280,
|
|
15425
|
-
marginRight: 20
|
|
15426
|
-
},
|
|
15427
|
-
open: false,
|
|
15428
|
-
onClick: function onClick() {
|
|
15429
|
-
setOpenSelect(true);
|
|
15430
|
-
}
|
|
15431
|
-
}), /*#__PURE__*/React.createElement(Modal, {
|
|
15432
|
-
open: openSelect,
|
|
15433
|
-
onCancel: function onCancel() {
|
|
15434
|
-
setOpenSelect(false);
|
|
15435
|
-
},
|
|
15436
|
-
onOk: function onOk() {
|
|
15437
|
-
var _store$, _store$2;
|
|
15438
|
-
localStorage.setItem('WARE_HOUSE_NAME', (_store$ = store[0]) === null || _store$ === void 0 ? void 0 : _store$.label);
|
|
15439
|
-
localStorage.setItem('WARE_HOUSE_CODE', (_store$2 = store[0]) === null || _store$2 === void 0 ? void 0 : _store$2.value);
|
|
15440
|
-
window.location.reload();
|
|
15441
|
-
}
|
|
15442
|
-
}, /*#__PURE__*/React.createElement(Form, {
|
|
15443
|
-
style: {
|
|
15444
|
-
height: 300,
|
|
15445
|
-
marginTop: 20
|
|
15446
|
-
},
|
|
15447
|
-
labelCol: {
|
|
15448
|
-
span: 3
|
|
15449
|
-
},
|
|
15450
|
-
wrapperCol: {
|
|
15451
|
-
span: 16
|
|
15452
|
-
}
|
|
15453
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
15454
|
-
label: "\u54C1\u724C",
|
|
15455
|
-
name: "brand"
|
|
15456
|
-
}, /*#__PURE__*/React.createElement(Radio.Group, {
|
|
15457
|
-
options: plainOptions,
|
|
15458
|
-
onChange: function onChange(item) {
|
|
15459
|
-
var _item$target;
|
|
15460
|
-
var str = item === null || item === void 0 ? void 0 : (_item$target = item.target) === null || _item$target === void 0 ? void 0 : _item$target.value;
|
|
15461
|
-
setKey(str === 'UR' ? 'UR' : 'BL');
|
|
15462
|
-
if (str === 'UR') {
|
|
15463
|
-
var res = rescouse === null || rescouse === void 0 ? void 0 : rescouse.filter(function (current) {
|
|
15464
|
-
return current.platCompanyCode === 'UR';
|
|
15465
|
-
});
|
|
15466
|
-
setOptions(res);
|
|
15467
|
-
setSearchValue('');
|
|
15468
|
-
} else {
|
|
15469
|
-
var _res = rescouse === null || rescouse === void 0 ? void 0 : rescouse.filter(function (current) {
|
|
15470
|
-
return current.platCompanyCode === 'BL';
|
|
15471
|
-
});
|
|
15472
|
-
setOptions(_res);
|
|
15473
|
-
setSearchValue('');
|
|
15474
|
-
}
|
|
15475
|
-
},
|
|
15476
|
-
optionType: "button",
|
|
15477
|
-
buttonStyle: "solid"
|
|
15478
|
-
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
15479
|
-
label: "\u95E8\u5E97",
|
|
15480
|
-
name: "store",
|
|
15481
|
-
rules: [{
|
|
15482
|
-
required: true,
|
|
15483
|
-
message: '请选择门店'
|
|
15484
|
-
}]
|
|
15485
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
15486
|
-
placeholder: "\u8F93\u5165\u95E8\u5E97\u540D\u79F0",
|
|
15487
|
-
value: searchValue,
|
|
15488
|
-
onChange: function onChange(e) {
|
|
15489
|
-
changeInput(e.target.value);
|
|
15490
|
-
setSearchValue(e.target.value);
|
|
15491
|
-
}
|
|
15492
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
15493
|
-
style: {
|
|
15494
|
-
height: 220,
|
|
15495
|
-
overflowY: 'scroll'
|
|
15496
|
-
}
|
|
15497
|
-
}, /*#__PURE__*/React.createElement(List, {
|
|
15498
|
-
dataSource: options,
|
|
15499
|
-
bordered: true,
|
|
15500
|
-
renderItem: function renderItem(item, indexNumber) {
|
|
15501
|
-
return /*#__PURE__*/React.createElement(List.Item, {
|
|
15502
|
-
style: indexNumber === index ? {
|
|
15503
|
-
// opacity
|
|
15504
|
-
color: '#0047bb'
|
|
15505
|
-
} : {},
|
|
15506
|
-
onClick: function onClick(current) {
|
|
15507
|
-
// setValue([item]);
|
|
15508
|
-
setStore([item]);
|
|
15509
|
-
setIndex(indexNumber);
|
|
15510
|
-
}
|
|
15511
|
-
}, item.label);
|
|
15512
|
-
}
|
|
15513
|
-
}))))));
|
|
15514
|
-
};
|
|
15515
|
-
|
|
15516
|
-
var css_248z$k = ".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";
|
|
15517
|
-
styleInject(css_248z$k);
|
|
15518
|
-
|
|
15519
|
-
var judgeIsEmpty$2 = function judgeIsEmpty(value) {
|
|
15520
|
-
if (value == null || value == undefined || String(value).trim() == '') {
|
|
15521
|
-
return true;
|
|
15522
|
-
}
|
|
15523
|
-
return false;
|
|
15524
|
-
};
|
|
15525
|
-
var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
15526
|
-
var _props$route$routes = props.route.routes,
|
|
15527
|
-
routes = _props$route$routes === void 0 ? [] : _props$route$routes,
|
|
15528
|
-
_props$showSelectStor = props.showSelectStore,
|
|
15529
|
-
showSelectStore = _props$showSelectStor === void 0 ? false : _props$showSelectStor,
|
|
15530
|
-
_props$employeeCode = props.employeeCode,
|
|
15531
|
-
employeeCode = _props$employeeCode === void 0 ? "EMP231011000002" : _props$employeeCode;
|
|
15532
|
-
var _useState = useState(''),
|
|
15533
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
15534
|
-
keyWord = _useState2[0],
|
|
15535
|
-
setKeyWord = _useState2[1];
|
|
15536
|
-
var _useState3 = useState([]),
|
|
14981
|
+
keyWord = _useState2[0],
|
|
14982
|
+
setKeyWord = _useState2[1];
|
|
14983
|
+
var _useState3 = useState([]),
|
|
15537
14984
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
15538
14985
|
routeList = _useState4[0],
|
|
15539
14986
|
setroutesData = _useState4[1];
|
|
@@ -15665,15 +15112,13 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
15665
15112
|
},
|
|
15666
15113
|
title: item.fullPathName
|
|
15667
15114
|
}, renderLineStyl(item.fullPathName));
|
|
15668
|
-
}))))),
|
|
15669
|
-
employeeCode: employeeCode
|
|
15670
|
-
})), /*#__PURE__*/React.createElement(GlobalHeaderRight, null));
|
|
15115
|
+
}))))), /*#__PURE__*/React.createElement(GlobalHeaderRight, null));
|
|
15671
15116
|
};
|
|
15672
15117
|
|
|
15673
15118
|
var addIcon = "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%3E%E7%BC%96%E7%BB%84%2014%401x%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%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-21.000000%2C%20-71.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-15%22%20transform%3D%22translate%2821.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%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-14%22%20transform%3D%22translate%280.000000%2C%201.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%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%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%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%284.000000%2C%204.000000%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%3Cpath%20d%3D%22M8%2C0%20C12.4183529%2C0%2016%2C3.58164706%2016%2C8%20C16%2C12.4183529%2012.4183529%2C16%208%2C16%20C3.58164706%2C16%200%2C12.4183529%200%2C8%20C0%2C3.58164706%203.58164706%2C0%208%2C0%20Z%20M8%2C1.4117647%20C4.36141178%2C1.4117647%201.4117647%2C4.36141175%201.4117647%2C8%20C1.4117647%2C11.6385882%204.36141175%2C14.5882353%208%2C14.5882353%20C11.6385882%2C14.5882353%2014.5882353%2C11.6385882%2014.5882353%2C8%20C14.5882353%2C4.36141175%2011.6385882%2C1.4117647%208%2C1.4117647%20Z%20M8.70588235%2C3.76470589%20L8.70588235%2C7.29411765%20L12.2352941%2C7.29411765%20L12.2352941%2C8.70588235%20L8.70588235%2C8.70588235%20L8.70588235%2C12.2352941%20L7.29411765%2C12.2352941%20L7.29411765%2C8.70541177%20L3.76470589%2C8.70588235%20L3.76470589%2C7.29411765%20L7.29411765%2C7.29364707%20L7.29411765%2C3.76470589%20L8.70588235%2C3.76470589%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%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";
|
|
15674
15119
|
|
|
15675
|
-
var css_248z$
|
|
15676
|
-
styleInject(css_248z$
|
|
15120
|
+
var css_248z$j = ".setting_content > div {\n width: 50%;\n box-sizing: border-box;\n margin: 0 10px;\n}\n.setting_content {\n display: flex;\n}\n.tree_title {\n height: 50px;\n}\n.tree_content {\n height: 400px;\n overflow: auto;\n border: 1px solid #d9d9d9;\n padding: 5px;\n}\n.setting_content::after {\n clear: both;\n display: block;\n content: '';\n}\n.choosed_label_color {\n color: #f50;\n}\n.left_tree_content .ant-tree .ant-tree-node-content-wrapper {\n flex-grow: 1;\n}\n.left_tree_content .ant-tree .ant-tree-node-content-wrapper .ant-tree-title {\n width: 100%;\n}\n.left_tree_content .ant-tree .ant-tree-treenode {\n width: 100%;\n}\n.right_tree_content .ant-tree .ant-tree-node-content-wrapper,\n.left_tree_content .ant-tree .ant-tree-node-content-wrapper {\n display: flex;\n margin-left: -3px;\n}\n.right_tree_content .ant-tree-checkbox,\n.left_tree_content .ant-tree-checkbox {\n top: auto;\n top: initial;\n}\n.node_title_content:hover .right_arrow {\n display: block !important;\n}\n.right_arrow {\n float: right;\n display: none;\n color: #999999;\n margin-right: 10px;\n}\n.right_tree_content .ant-tree-title {\n width: 100%;\n display: inline-block;\n padding-right: 10px;\n}\n.right_tree_content .ant-dropdown-trigger {\n color: gray !important;\n}\n.right_tree_content .tree_node_title {\n font-size: 20px;\n color: #d9d9d9;\n float: right;\n}\n.right_tree_content .tree_node_title span {\n margin-right: 5px;\n}\n";
|
|
15121
|
+
styleInject(css_248z$j);
|
|
15677
15122
|
|
|
15678
15123
|
var arrowRight = "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%3E%E7%BC%96%E7%BB%84%20186%E5%A4%87%E4%BB%BD%203%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%E8%87%AA%E5%AE%9A%E4%B9%89%E8%8F%9C%E5%8D%95%22%20transform%3D%22translate%28-949.000000%2C%20-484.000000%29%22%20fill-rule%3D%22nonzero%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%28534.000000%2C%20180.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%B1%BB%E7%9B%AE%E4%B8%80%E5%A4%87%E4%BB%BD-101%22%20transform%3D%22translate%2831.000000%2C%20298.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-186%E5%A4%87%E4%BB%BD-2%22%20transform%3D%22translate%28384.000000%2C%206.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%22%E7%BC%96%E7%BB%84-132%E5%A4%87%E4%BB%BD-85%22%20opacity%3D%220%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%3Cpath%20d%3D%22M24%2C0%20L24%2C24%20L0%2C24%20L0%2C0%20L24%2C0%20Z%20M23.765625%2C0.234375%20L0.234375%2C0.234375%20L0.234375%2C23.765625%20L23.765625%2C23.765625%20L23.765625%2C0.234375%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-235%22%20fill%3D%22%23979797%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%3Cpath%20d%3D%22M21.39%2C2.64%20L21.39%2C21.39%20L2.64%2C21.39%20L2.64%2C2.64%20L21.39%2C2.64%20Z%20M21.155625%2C2.874375%20L2.874375%2C2.874375%20L2.874375%2C21.155625%20L21.155625%2C21.155625%20L21.155625%2C2.874375%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-236%22%20fill%3D%22%23979797%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%3Cpath%20d%3D%22M20.22%2C1.56%20L20.22%2C22.56%20L3.72%2C22.56%20L3.72%2C1.56%20L20.22%2C1.56%20Z%20M19.985625%2C1.794375%20L3.954375%2C1.794375%20L3.954375%2C22.325625%20L19.985625%2C22.325625%20L19.985625%2C1.794375%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-237%22%20fill%3D%22%23FA6400%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%3Cpath%20d%3D%22M22.56%2C3.72%20L22.56%2C20.22%20L1.56%2C20.22%20L1.56%2C3.72%20L22.56%2C3.72%20Z%20M22.325625%2C3.954375%20L1.794375%2C3.954375%20L1.794375%2C19.985625%20L22.325625%2C19.985625%20L22.325625%2C3.954375%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-238%22%20fill%3D%22%2344D7B6%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%3Cpath%20d%3D%22M12.06%2C1.56%20C17.8589899%2C1.56%2022.56%2C6.26101013%2022.56%2C12.06%20C22.56%2C17.8589899%2017.8589899%2C22.56%2012.06%2C22.56%20C6.26101013%2C22.56%201.56%2C17.8589899%201.56%2C12.06%20C1.56%2C6.26101013%206.26101013%2C1.56%2012.06%2C1.56%20Z%20M12.06%2C1.794375%20C6.39045187%2C1.794375%201.794375%2C6.39045187%201.794375%2C12.06%20C1.794375%2C17.7295481%206.39045187%2C22.325625%2012.06%2C22.325625%20C17.7295481%2C22.325625%2022.325625%2C17.7295481%2022.325625%2C12.06%20C22.325625%2C6.39045187%2017.7295481%2C1.794375%2012.06%2C1.794375%20Z%22%20id%3D%22%E6%A4%AD%E5%9C%86%E5%BD%A2%E5%A4%87%E4%BB%BD-59%22%20fill%3D%22%23F7B500%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%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%3Cg%20id%3D%22%E7%BC%96%E7%BB%84%E5%A4%87%E4%BB%BD-43%22%20transform%3D%22translate%281.560000%2C%201.680000%29%22%20fill%3D%22%23999999%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%3Cpath%20d%3D%22M10.44%2C0%20C16.2059506%2C0%2020.88%2C4.67404941%2020.88%2C10.44%20C20.88%2C16.2059506%2016.2059506%2C20.88%2010.44%2C20.88%20C4.67404941%2C20.88%200%2C16.2059506%200%2C10.44%20C0%2C4.67404941%204.67404941%2C0%2010.44%2C0%20Z%20M10.44%2C1.84235294%20C5.69164237%2C1.84235294%201.84235294%2C5.69164234%201.84235294%2C10.44%20C1.84235294%2C15.1883577%205.69164234%2C19.0376471%2010.44%2C19.0376471%20C15.1883577%2C19.0376471%2019.0376471%2C15.1883577%2019.0376471%2C10.44%20C19.0376471%2C5.69164234%2015.1883577%2C1.84235294%2010.44%2C1.84235294%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%20%20%20%20%20%20%20%20%3Cpolygon%20id%3D%22%E5%BD%A2%E7%8A%B6%22%20points%3D%2210.4408066%206.32%2014.3966662%2010.2757133%2010.4408066%2014.2314265%209.2540487%2013.0447125%2011.1949264%2011.1039067%206%2011.1033618%206%209.42518043%2011.1725861%209.42518043%209.25459358%207.50671398%2010.4408066%206.32%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%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";
|
|
15679
15124
|
|
|
@@ -16302,8 +15747,8 @@ var MenuSetting = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
16302
15747
|
}));
|
|
16303
15748
|
});
|
|
16304
15749
|
|
|
16305
|
-
var css_248z$
|
|
16306
|
-
styleInject(css_248z$
|
|
15750
|
+
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";
|
|
15751
|
+
styleInject(css_248z$k);
|
|
16307
15752
|
|
|
16308
15753
|
var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
16309
15754
|
var isCollapse = _ref.isCollapse,
|
|
@@ -16439,8 +15884,8 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
16439
15884
|
})));
|
|
16440
15885
|
});
|
|
16441
15886
|
|
|
16442
|
-
var css_248z$
|
|
16443
|
-
styleInject(css_248z$
|
|
15887
|
+
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";
|
|
15888
|
+
styleInject(css_248z$l);
|
|
16444
15889
|
|
|
16445
15890
|
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=";
|
|
16446
15891
|
|
|
@@ -16855,10 +16300,10 @@ var CustomerMenuHeader = function CustomerMenuHeader(_ref) {
|
|
|
16855
16300
|
})));
|
|
16856
16301
|
};
|
|
16857
16302
|
|
|
16858
|
-
var css_248z$
|
|
16859
|
-
styleInject(css_248z$
|
|
16303
|
+
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";
|
|
16304
|
+
styleInject(css_248z$m);
|
|
16860
16305
|
|
|
16861
|
-
var _excluded$
|
|
16306
|
+
var _excluded$g = ["route"];
|
|
16862
16307
|
var TabPane = Tabs.TabPane;
|
|
16863
16308
|
var UN_LISTTEN_DRP;
|
|
16864
16309
|
var routerArray = [];
|
|
@@ -17543,7 +16988,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
17543
16988
|
if (!istParent) {
|
|
17544
16989
|
var _window$$wujie2;
|
|
17545
16990
|
if (route.pathname === '/') return;
|
|
17546
|
-
(_window$$wujie2 = window.$wujie) === null || _window$$wujie2 === void 0 ? void 0 : _window$$wujie2.bus.$emit('sub-route-change', itemPath, currentKey
|
|
16991
|
+
(_window$$wujie2 = window.$wujie) === null || _window$$wujie2 === void 0 ? void 0 : _window$$wujie2.bus.$emit('sub-route-change', itemPath, currentKey);
|
|
17547
16992
|
// window.parent.postMessage(`/parent/${itemPath}${currentKey}`, '*');
|
|
17548
16993
|
}
|
|
17549
16994
|
// 防止出错
|
|
@@ -17581,49 +17026,39 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
17581
17026
|
newListenRouterKey = [].concat(_toConsumableArray(listenRouterKey), [currentKey]);
|
|
17582
17027
|
}
|
|
17583
17028
|
}
|
|
17584
|
-
//
|
|
17029
|
+
// 处理hideMenu页面自动关闭
|
|
17585
17030
|
lastTwoRouterArray.push(route.pathname);
|
|
17586
17031
|
lastTwoRouterArray.shift();
|
|
17587
|
-
|
|
17588
|
-
|
|
17589
|
-
|
|
17590
|
-
|
|
17591
|
-
|
|
17592
|
-
|
|
17593
|
-
|
|
17594
|
-
|
|
17595
|
-
|
|
17596
|
-
|
|
17597
|
-
|
|
17598
|
-
|
|
17032
|
+
if (!localStorage.getItem('isTabChange') && !localStorage.getItem('isMenuClick')) {
|
|
17033
|
+
if (lastTwoRouterArray[0] && typeof lastTwoRouterArray[0] === 'string') {
|
|
17034
|
+
var _route$state;
|
|
17035
|
+
var needRemoveKeyArray = hideMenuArray.filter(function (itemRoute) {
|
|
17036
|
+
return pathToRegexp(itemRoute.path || '').test(lastTwoRouterArray[0]);
|
|
17037
|
+
});
|
|
17038
|
+
// lastTwoRouterArray[0] != lastTwoRouterArray[1] 该判断条件用于判断是否是tab删除操作,如果是tab页删除操作,删除的是不是最后一个打开的tab页,执行history.push会导致错误的将最后打开的那个tab页也删除掉
|
|
17039
|
+
if (needRemoveKeyArray.length && lastTwoRouterArray[0] != lastTwoRouterArray[1] && !((_route$state = route.state) === null || _route$state === void 0 ? void 0 : _route$state.thisHideInMenuDoNotClose)) {
|
|
17040
|
+
newListenRouterState = newListenRouterState.filter(function (item) {
|
|
17041
|
+
var _ref3 = item.key ? item.key.split('?') : [],
|
|
17042
|
+
_ref4 = _slicedToArray(_ref3, 1),
|
|
17043
|
+
pathname = _ref4[0];
|
|
17044
|
+
return pathname && pathname !== lastTwoRouterArray[0];
|
|
17045
|
+
});
|
|
17046
|
+
newListenRouterKey = newListenRouterKey.filter(function (item) {
|
|
17047
|
+
var _ref5 = item ? item.split('?') : [],
|
|
17048
|
+
_ref6 = _slicedToArray(_ref5, 1),
|
|
17049
|
+
pathname = _ref6[0];
|
|
17050
|
+
return pathname && pathname !== lastTwoRouterArray[0];
|
|
17051
|
+
});
|
|
17052
|
+
}
|
|
17053
|
+
}
|
|
17054
|
+
// refs?.tableRef?.current?.refreshTable();
|
|
17599
17055
|
} else {
|
|
17600
|
-
|
|
17601
|
-
|
|
17602
|
-
|
|
17603
|
-
|
|
17604
|
-
})
|
|
17605
|
-
needRemoveKey = needRemoveKeyArray.length && notSamePageFlag && !thisHideInMenuDoNotClose ? needRemoveKeyArray[0] : '';
|
|
17606
|
-
}
|
|
17607
|
-
if (needRemoveKey) {
|
|
17608
|
-
newListenRouterState = newListenRouterState.filter(function (item) {
|
|
17609
|
-
var _ref4 = item.key ? item.key.split('?') : [],
|
|
17610
|
-
_ref5 = _slicedToArray(_ref4, 1),
|
|
17611
|
-
pathname = _ref5[0];
|
|
17612
|
-
return pathname && pathname !== lastTwoRouterArray[0];
|
|
17613
|
-
});
|
|
17614
|
-
newListenRouterKey = newListenRouterKey.filter(function (item) {
|
|
17615
|
-
var _ref6 = item ? item.split('?') : [],
|
|
17616
|
-
_ref7 = _slicedToArray(_ref6, 1),
|
|
17617
|
-
pathname = _ref7[0];
|
|
17618
|
-
return pathname && pathname !== lastTwoRouterArray[0];
|
|
17619
|
-
});
|
|
17056
|
+
setTimeout(function () {
|
|
17057
|
+
// 处理页面刷新两面
|
|
17058
|
+
localStorage.removeItem('isTabChange');
|
|
17059
|
+
localStorage.removeItem('isMenuClick');
|
|
17060
|
+
}, 0);
|
|
17620
17061
|
}
|
|
17621
|
-
setTimeout(function () {
|
|
17622
|
-
// 处理页面刷新两面
|
|
17623
|
-
localStorage.removeItem('isTabChange');
|
|
17624
|
-
localStorage.removeItem('isMenuClick');
|
|
17625
|
-
}, 0);
|
|
17626
|
-
// -------------------处理页签关闭 end----------------------------
|
|
17627
17062
|
_this2.setState({
|
|
17628
17063
|
//路由监听函数最后执行setState,避免处理hideMenu类型页面自动关闭的逻辑块内获取不到最新state的listenRouterState和listenRouterKey
|
|
17629
17064
|
activeKey: currentKey,
|
|
@@ -17671,10 +17106,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
17671
17106
|
defaultSettings = _this$props2.defaultSettings,
|
|
17672
17107
|
_this$props2$transpar = _this$props2.transparentProps,
|
|
17673
17108
|
transparentProps = _this$props2$transpar === void 0 ? {} : _this$props2$transpar;
|
|
17674
|
-
var TabTitle = function TabTitle(
|
|
17675
|
-
var item =
|
|
17676
|
-
index =
|
|
17677
|
-
updateState =
|
|
17109
|
+
var TabTitle = function TabTitle(_ref7) {
|
|
17110
|
+
var item = _ref7.item,
|
|
17111
|
+
index = _ref7.index,
|
|
17112
|
+
updateState = _ref7.updateState;
|
|
17678
17113
|
return /*#__PURE__*/React.createElement("div", {
|
|
17679
17114
|
className: "tab_title_content"
|
|
17680
17115
|
}, item.tab, item.key !== '/' && ( /*#__PURE__*/React.createElement(ItemMenu, {
|
|
@@ -17689,7 +17124,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
17689
17124
|
}); // 添加数据大屏
|
|
17690
17125
|
var _this$props3 = this.props,
|
|
17691
17126
|
route = _this$props3.route,
|
|
17692
|
-
restPrpos = _objectWithoutProperties(_this$props3, _excluded$
|
|
17127
|
+
restPrpos = _objectWithoutProperties(_this$props3, _excluded$g);
|
|
17693
17128
|
var exist = route.routes.find(function (route) {
|
|
17694
17129
|
return route.path === '/homePage/data-show';
|
|
17695
17130
|
});
|
|
@@ -17844,8 +17279,8 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
17844
17279
|
onMenuHeaderClick: function onMenuHeaderClick() {
|
|
17845
17280
|
return history.push('/');
|
|
17846
17281
|
},
|
|
17847
|
-
menuHeaderRender: function menuHeaderRender(
|
|
17848
|
-
_objectDestructuringEmpty(
|
|
17282
|
+
menuHeaderRender: function menuHeaderRender(_ref8) {
|
|
17283
|
+
_objectDestructuringEmpty(_ref8);
|
|
17849
17284
|
return /*#__PURE__*/React.createElement(CustomerMenuHeader, {
|
|
17850
17285
|
originRoutes: originRoutes,
|
|
17851
17286
|
itemPath: itemPath,
|
|
@@ -18248,8 +17683,8 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
18248
17683
|
};
|
|
18249
17684
|
};
|
|
18250
17685
|
|
|
18251
|
-
var css_248z$
|
|
18252
|
-
styleInject(css_248z$
|
|
17686
|
+
var css_248z$n = ".editTableWrapper {\n width: 1000px;\n height: 500px;\n overflow: auto;\n position: relative;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.editTableWrapper table {\n table-layout: fixed;\n}\n.editTableWrapper .editTable {\n position: relative;\n overflow: hidden;\n border-top: 0;\n background: #fff;\n}\n.editTableWrapper .north__west {\n position: sticky;\n background-color: #f7f8fb;\n left: 0px;\n top: 0px;\n font-size: 14px;\n color: #606266;\n z-index: 5;\n}\n.editTableWrapper .north__west th {\n background: #fff;\n font-size: 14px;\n color: #606266;\n z-index: 5;\n}\n.editTableWrapper .south__west {\n z-index: 4;\n position: absolute;\n left: 0px;\n top: 0;\n}\n.editTableWrapper .south__west th {\n background: #fff;\n font-size: 14px;\n color: #606266;\n z-index: 4;\n}\n.editTableWrapper .south__west td {\n font-size: 12px;\n background: #fff;\n color: #6a6a6a;\n}\n.editTableWrapper .south__west td svg {\n width: 20px;\n height: 20px;\n vertical-align: middle;\n}\n.editTableWrapper .editTable__block {\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n position: absolute;\n border-collapse: collapse;\n padding: 0;\n}\n.editTableWrapper .editTable__block th,\n.editTableWrapper .editTable__block td {\n box-sizing: border-box;\n font-size: 11px;\n color: #6a6a6a;\n}\n.editTableWrapper .value_table table {\n table-layout: fixed;\n min-width: 100%;\n}\n.editTableWrapper .table_border_style {\n border-collapse: separate;\n border-spacing: 0;\n border-left: 1px solid #f0f0f0;\n border-top: 1px solid #f0f0f0;\n}\n.editTableWrapper .table_border_style td {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n box-sizing: border-box;\n border-right: 1px solid #f0f0f0;\n border-bottom: 1px solid #f0f0f0;\n padding: 0 10px;\n font-size: 14px;\n line-height: 28px;\n}\n";
|
|
17687
|
+
styleInject(css_248z$n);
|
|
18253
17688
|
|
|
18254
17689
|
var useSticky = function useSticky(sticky) {
|
|
18255
17690
|
var _ref = _typeof(sticky) === 'object' ? sticky : {},
|
|
@@ -18661,10 +18096,10 @@ var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
18661
18096
|
}))))));
|
|
18662
18097
|
});
|
|
18663
18098
|
|
|
18664
|
-
var _excluded$
|
|
18099
|
+
var _excluded$h = ["children"];
|
|
18665
18100
|
var Drawer = (function (props) {
|
|
18666
18101
|
var children = props.children,
|
|
18667
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
18102
|
+
restProps = _objectWithoutProperties(props, _excluded$h);
|
|
18668
18103
|
return /*#__PURE__*/React.createElement(Drawer$1, _objectSpread2({
|
|
18669
18104
|
mask: true,
|
|
18670
18105
|
closable: false,
|
|
@@ -24486,8 +23921,8 @@ var nameRender = (function (data) {
|
|
|
24486
23921
|
}, " ");
|
|
24487
23922
|
});
|
|
24488
23923
|
|
|
24489
|
-
var css_248z$
|
|
24490
|
-
styleInject(css_248z$
|
|
23924
|
+
var css_248z$o = ".si-tree {\n font-size: 14px;\n}\n.si-tree-node-block {\n display: flex;\n align-items: center;\n padding: 2px 4px;\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.si-tree-node-block:hover {\n background-color: #1990ffab;\n color: #fff;\n}\n.si-tree-node-block-actived {\n background-color: #1990ffab;\n color: #fff;\n}\n.si-tree-node-switcher {\n margin-right: 2px;\n}\n.si-tree-node-icon {\n margin-right: 4px;\n display: flex;\n}\n.tree-compact {\n margin-left: 4px;\n font-size: 13px;\n font-style: italic;\n color: #49aa19;\n}\n";
|
|
23925
|
+
styleInject(css_248z$o);
|
|
24491
23926
|
|
|
24492
23927
|
function parseData(data) {
|
|
24493
23928
|
var res;
|
|
@@ -24698,8 +24133,8 @@ function registerSuggestions(monaco) {
|
|
|
24698
24133
|
});
|
|
24699
24134
|
}
|
|
24700
24135
|
|
|
24701
|
-
var css_248z$
|
|
24702
|
-
styleInject(css_248z$
|
|
24136
|
+
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";
|
|
24137
|
+
styleInject(css_248z$p);
|
|
24703
24138
|
|
|
24704
24139
|
var Title = Typography.Title;
|
|
24705
24140
|
var STRTEMP = 'const config = ';
|
|
@@ -24893,7 +24328,7 @@ var Editor = (function (props) {
|
|
|
24893
24328
|
}, [shallowHeight]);
|
|
24894
24329
|
var hasConfigTree = type !== 'editor';
|
|
24895
24330
|
return /*#__PURE__*/React.createElement("div", {
|
|
24896
|
-
className: isFull ? css_248z$
|
|
24331
|
+
className: isFull ? css_248z$p.editorWrapper : ''
|
|
24897
24332
|
}, /*#__PURE__*/React.createElement("div", {
|
|
24898
24333
|
style: {
|
|
24899
24334
|
overflow: 'hidden'
|
|
@@ -24961,7 +24396,7 @@ var Editor = (function (props) {
|
|
|
24961
24396
|
})), hasConfigTree && /*#__PURE__*/React.createElement(Col, {
|
|
24962
24397
|
span: 8
|
|
24963
24398
|
}, /*#__PURE__*/React.createElement("div", {
|
|
24964
|
-
className: css_248z$
|
|
24399
|
+
className: css_248z$p.title
|
|
24965
24400
|
}, "\u5C5E\u6027\u8282\u70B9\u6811"), /*#__PURE__*/React.createElement(ConfigTree, {
|
|
24966
24401
|
style: {
|
|
24967
24402
|
height: 'calc(100vh - 300px)',
|
|
@@ -25099,7 +24534,7 @@ var App = function App(_ref) {
|
|
|
25099
24534
|
fieldList = _useState6[0],
|
|
25100
24535
|
UpdateFiedList = _useState6[1];
|
|
25101
24536
|
useEffect(function () {
|
|
25102
|
-
request$
|
|
24537
|
+
request$1({
|
|
25103
24538
|
url: '/basic/flow/businessField/listNoPage',
|
|
25104
24539
|
params: {
|
|
25105
24540
|
'qp-businessType-eq': record.businessType,
|
|
@@ -25711,7 +25146,7 @@ var getDynamicDict = /*#__PURE__*/function () {
|
|
|
25711
25146
|
while (1) switch (_context.prev = _context.next) {
|
|
25712
25147
|
case 0:
|
|
25713
25148
|
_context.next = 2;
|
|
25714
|
-
return request$
|
|
25149
|
+
return request$1({
|
|
25715
25150
|
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
25716
25151
|
converter: function converter(_ref2) {
|
|
25717
25152
|
var data = _ref2.data;
|
|
@@ -25939,7 +25374,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
25939
25374
|
form = _ref4.form;
|
|
25940
25375
|
if (values[0]) {
|
|
25941
25376
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name, undefined);
|
|
25942
|
-
request$
|
|
25377
|
+
request$1({
|
|
25943
25378
|
url: "/basic/businessVariable/dict/".concat(values[0]),
|
|
25944
25379
|
converter: function converter(_ref5) {
|
|
25945
25380
|
var _data$defaultValue, _data$defaultValue4;
|
|
@@ -26384,7 +25819,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
26384
25819
|
break;
|
|
26385
25820
|
}
|
|
26386
25821
|
_context3.next = 5;
|
|
26387
|
-
return request$
|
|
25822
|
+
return request$1({
|
|
26388
25823
|
url: '/basic/dictDynamicItem/queryList',
|
|
26389
25824
|
converter: function converter(_ref11) {
|
|
26390
25825
|
var data = _ref11.data;
|
|
@@ -26630,7 +26065,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
26630
26065
|
_context4.next = 18;
|
|
26631
26066
|
break;
|
|
26632
26067
|
}
|
|
26633
|
-
request$
|
|
26068
|
+
request$1({
|
|
26634
26069
|
url: "/basic/flow/businessField",
|
|
26635
26070
|
method: 'POST',
|
|
26636
26071
|
params: res,
|
|
@@ -26641,7 +26076,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
26641
26076
|
});
|
|
26642
26077
|
return _context4.abrupt("return");
|
|
26643
26078
|
case 18:
|
|
26644
|
-
request$
|
|
26079
|
+
request$1({
|
|
26645
26080
|
url: "/basic/flow/businessField/".concat(record.id),
|
|
26646
26081
|
method: 'PATCH',
|
|
26647
26082
|
params: res,
|
|
@@ -26844,8 +26279,8 @@ var FieldsSettingsTable = (function (props) {
|
|
|
26844
26279
|
})), fieldsModify.visible && /*#__PURE__*/React.createElement(FieldsModifyModal, _objectSpread2({}, fieldsModify)));
|
|
26845
26280
|
});
|
|
26846
26281
|
|
|
26847
|
-
var css_248z$
|
|
26848
|
-
styleInject(css_248z$
|
|
26282
|
+
var css_248z$q = ".customFieldsDrawer .ant-col-8 {\n flex: 0 0 100%!important;\n max-width: 100%!important;\n}\n.customFieldsDrawer .ant-form-item {\n margin-bottom: 0!important;\n}\n.customFieldsDrawer .ant-form {\n margin-bottom: 15px;\n}\n.customFieldsDrawer .sula-template-query-table-fields-wrapper {\n align-items: center;\n}\n";
|
|
26283
|
+
styleInject(css_248z$q);
|
|
26849
26284
|
|
|
26850
26285
|
function iterFileds(fields) {
|
|
26851
26286
|
var filedsValue = [];
|
|
@@ -26911,7 +26346,7 @@ function convertFileds(fields, falltValue, faltFieldRange, containerName) {
|
|
|
26911
26346
|
if (item.dependency) {
|
|
26912
26347
|
targetValue.dependency = {
|
|
26913
26348
|
visible: _objectSpread2(_objectSpread2({}, item.dependency.visible), {}, {
|
|
26914
|
-
type: new Function('
|
|
26349
|
+
type: new Function('axios', 'ctx', item.dependency.visible.type).bind(null, axios)
|
|
26915
26350
|
})
|
|
26916
26351
|
};
|
|
26917
26352
|
}
|
|
@@ -27126,13 +26561,12 @@ var JsonQueryTable = /*#__PURE__*/React.memo(function (props) {
|
|
|
27126
26561
|
tableJsonEditorValsArr = _useState16[0],
|
|
27127
26562
|
setTableJsonEditorValsArr = _useState16[1];
|
|
27128
26563
|
useEffect(function () {
|
|
27129
|
-
Promise.all([
|
|
26564
|
+
Promise.all([axios.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
|
|
27130
26565
|
var _ref3 = _slicedToArray(_ref2, 1),
|
|
27131
26566
|
res = _ref3[0];
|
|
27132
|
-
var
|
|
27133
|
-
|
|
27134
|
-
|
|
27135
|
-
if (code === '000000') {
|
|
26567
|
+
var resD = (res === null || res === void 0 ? void 0 : res.data) || {};
|
|
26568
|
+
var data = resD.data;
|
|
26569
|
+
if (judgeIsRequestSuccess(resD)) {
|
|
27136
26570
|
if (data) {
|
|
27137
26571
|
var businessType = data.businessType,
|
|
27138
26572
|
fieldGroup = data.code,
|
|
@@ -27151,17 +26585,17 @@ var JsonQueryTable = /*#__PURE__*/React.memo(function (props) {
|
|
|
27151
26585
|
useEffect(function () {
|
|
27152
26586
|
//明细表的配置数据
|
|
27153
26587
|
var axiosArr = detailTablesSetting.map(function (item) {
|
|
27154
|
-
return
|
|
26588
|
+
return axios.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(item.tableCode));
|
|
27155
26589
|
});
|
|
27156
|
-
Promise.all(axiosArr).then(function (
|
|
27157
|
-
var
|
|
27158
|
-
resArr =
|
|
26590
|
+
Promise.all(axiosArr).then(function (_ref4) {
|
|
26591
|
+
var _ref5 = _toArray(_ref4),
|
|
26592
|
+
resArr = _ref5.slice(0);
|
|
27159
26593
|
var configParams = {};
|
|
27160
26594
|
detailTablesSetting.map(function (item, index) {
|
|
27161
26595
|
var _resArr$index;
|
|
27162
|
-
var
|
|
27163
|
-
code =
|
|
27164
|
-
data =
|
|
26596
|
+
var _ref6 = ((_resArr$index = resArr[index]) === null || _resArr$index === void 0 ? void 0 : _resArr$index.data) || {},
|
|
26597
|
+
code = _ref6.code,
|
|
26598
|
+
data = _ref6.data;
|
|
27165
26599
|
if (data) {
|
|
27166
26600
|
var businessType = data.businessType,
|
|
27167
26601
|
fieldGroup = data.code,
|
|
@@ -27481,7 +26915,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
27481
26915
|
useEffect(function () {
|
|
27482
26916
|
if (value && onlyCode) {
|
|
27483
26917
|
if (value === null || value === void 0 ? void 0 : value.length) {
|
|
27484
|
-
request$
|
|
26918
|
+
request$1({
|
|
27485
26919
|
url: "/basic/bscArea/getBscAreaList?qp-code-in=".concat(value),
|
|
27486
26920
|
method: 'get'
|
|
27487
26921
|
}).then(function (res) {
|
|
@@ -27519,7 +26953,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
27519
26953
|
var loadData = function loadData(selectedOptions) {
|
|
27520
26954
|
var targetOption = selectedOptions[selectedOptions.length - 1];
|
|
27521
26955
|
targetOption.loading = true;
|
|
27522
|
-
request$
|
|
26956
|
+
request$1({
|
|
27523
26957
|
url: "/basic/bscArea/getBscAreaList?qp-pid-eq=".concat(targetOption.id),
|
|
27524
26958
|
method: 'get',
|
|
27525
26959
|
converter: function converter(_ref3) {
|
|
@@ -27577,8 +27011,8 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
27577
27011
|
});
|
|
27578
27012
|
};
|
|
27579
27013
|
|
|
27580
|
-
var css_248z$
|
|
27581
|
-
styleInject(css_248z$
|
|
27014
|
+
var css_248z$r = ".base_rule p {\n margin: 0;\n}\n.base_rule .base_rule_content {\n min-height: 80px;\n margin-bottom: 20px;\n}\n.base_rule .base_rule_line_title {\n position: relative;\n height: 40px;\n}\n.base_rule .base_rule_line_title .rule_title {\n height: 35px;\n padding: 0 10px;\n font-weight: bold;\n font-size: 16px;\n line-height: 35px;\n}\n.base_rule .base_rule_line_title .base_rule_btn_style {\n position: absolute;\n right: 0px;\n}\n.base_rule .base_rule_line_title :global .ant-btn-link {\n color: #008fe0;\n font-weight: bold;\n border: 0px !important;\n}\n.base_rule .base_rule_line_title :global .ant-btn-link:hover,\n.base_rule .base_rule_line_title :global .ant-btn-link:focus {\n color: #008fe0;\n background-color: transparent;\n border: 0px;\n border-color: #008fe0;\n}\n.base_rule .base_rule_line_title :global .ant-btn:not(.ant-btn-primary .ant-btn-danger):hover,\n.base_rule .base_rule_line_title :global .ant-btn:not(.ant-btn-primary .ant-btn-danger):active,\n.base_rule .base_rule_line_title :global .ant-btn:not(.ant-btn-primary .ant-btn-danger):focus {\n color: #008fe0;\n}\n.base_rule .base_rule_line_content {\n display: flex;\n padding: 15px;\n overflow-x: auto;\n}\n.base_rule .base_rule_line_content .base_rule_icon_btn {\n margin-right: 10px;\n color: #89b9cf;\n font-size: 20px;\n}\n.base_rule .base_rule_line_content .base_rule_icon_btn:hover {\n cursor: pointer;\n}\n.base_rule .base_rule_line_content .base_rule_item_desc_content {\n height: 45px;\n line-height: 45px;\n}\n.base_rule .base_rule_line_content .base_rule_item_desc {\n margin-right: 15px;\n}\n.base_rule .base_rule_line_content .base_rule_item1 {\n align-items: center;\n width: 120px;\n color: #f8ab3c;\n font-size: 16px;\n}\n.base_rule .base_rule_line_content .base_rule_item2 {\n width: 1200px;\n}\n.base_rule .base_rule_line_content .base_rule_item3 {\n display: flex;\n align-items: center;\n justify-content: space-around;\n margin-top: -20px;\n padding-left: 20px;\n}\n.base_rule .base_rule_line_content .line_color_red {\n color: #ed869b;\n}\n.base_rule .base_rule_line_content .base_rule_item4 {\n width: 80px;\n}\n.base_rule .footer_line > span {\n color: #008fe0;\n font-weight: bold;\n font-size: 16px;\n}\n.rule_name_title {\n display: inline-block;\n height: 30px;\n margin-right: 10px;\n margin-bottom: 10px;\n padding-left: 10px;\n color: #f8ab3c;\n font-size: 16px;\n line-height: 30px;\n}\n.logical_operate_content {\n position: relative;\n}\n.logical_operate_content .top_line {\n position: absolute;\n top: 0;\n left: 50%;\n z-index: 999;\n width: 15px;\n height: 2px;\n background-color: #d6efe8;\n}\n.logical_operate_content .bottom_line {\n position: absolute;\n bottom: 0;\n left: 50%;\n z-index: 999;\n width: 15px;\n height: 2px;\n background-color: #d6efe8;\n}\n.logical_operate_content::before {\n position: absolute;\n top: 0;\n left: 50%;\n z-index: 998;\n width: 2px;\n height: 100%;\n overflow: hidden;\n background: #d6efe8;\n content: ' ';\n}\n.logical_item_btn {\n position: absolute !important;\n top: 50%;\n left: 50%;\n z-index: 999;\n display: flex !important;\n align-items: center;\n width: 50px;\n height: 30px !important;\n margin-top: -15px;\n margin-left: -25px;\n padding: 0px !important;\n color: #008fe0 !important;\n line-height: 30px !important;\n text-align: center !important;\n background-color: #ffffff !important;\n cursor: pointer !important;\n}\n.logical_item_btn1 {\n position: absolute;\n bottom: 0;\n left: 50%;\n z-index: 999;\n display: inline-block;\n width: 30px;\n height: 30px;\n margin-left: -15px;\n color: #008fe0;\n line-height: 30px;\n text-align: center;\n background-color: #ffffff;\n cursor: pointer;\n}\n.rule_field_style {\n display: inline-block;\n}\n.icon_btn_style {\n margin-right: 10px;\n font-size: 20px;\n}\n.choose_logical_type {\n height: 25px;\n margin: 0px;\n padding: 0 10px;\n line-height: 25px;\n cursor: pointer;\n}\n.choose_logical_type:first-child {\n border-bottom: 1px solid #d9d9d9;\n}\n.choose_logical_type:hover {\n color: white;\n background-color: #008fe0;\n}\n.action_list_item {\n display: flex;\n justify-content: space-between;\n margin-bottom: 10px;\n padding: 10px;\n border: 1px solid #e1e1f0;\n border-radius: 2px;\n cursor: pointer;\n}\n:global .ant-popover-inner-content {\n padding: 0px;\n}\n";
|
|
27015
|
+
styleInject(css_248z$r);
|
|
27582
27016
|
|
|
27583
27017
|
// 查询规则对象属性thresholdList
|
|
27584
27018
|
function getRegularThresholdRange(_x) {
|
|
@@ -27589,7 +27023,7 @@ function _getRegularThresholdRange() {
|
|
|
27589
27023
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
27590
27024
|
while (1) switch (_context.prev = _context.next) {
|
|
27591
27025
|
case 0:
|
|
27592
|
-
return _context.abrupt("return",
|
|
27026
|
+
return _context.abrupt("return", axios({
|
|
27593
27027
|
url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
|
|
27594
27028
|
method: 'POST',
|
|
27595
27029
|
data: _objectSpread2(_objectSpread2({}, params), {}, {
|
|
@@ -27800,7 +27234,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27800
27234
|
} else if (queryIdentifyType == 'dynamicDictCodeIdentify') {
|
|
27801
27235
|
extraRequestUrl = "/basic/".concat(extraRequestUrl);
|
|
27802
27236
|
}
|
|
27803
|
-
request$
|
|
27237
|
+
request$1({
|
|
27804
27238
|
url: extraRequestUrl,
|
|
27805
27239
|
method: 'get',
|
|
27806
27240
|
converter: function converter(res) {
|
|
@@ -28685,7 +28119,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
28685
28119
|
while (1) switch (_context2.prev = _context2.next) {
|
|
28686
28120
|
case 0:
|
|
28687
28121
|
_context2.next = 2;
|
|
28688
|
-
return request$
|
|
28122
|
+
return request$1({
|
|
28689
28123
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
28690
28124
|
method: 'get',
|
|
28691
28125
|
converter: function converter(_ref3) {
|
|
@@ -28734,7 +28168,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
28734
28168
|
while (1) switch (_context3.prev = _context3.next) {
|
|
28735
28169
|
case 0:
|
|
28736
28170
|
_context3.next = 2;
|
|
28737
|
-
return request$
|
|
28171
|
+
return request$1({
|
|
28738
28172
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
28739
28173
|
method: 'get',
|
|
28740
28174
|
converter: function converter(_ref5) {
|
|
@@ -28785,7 +28219,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
28785
28219
|
while (1) switch (_context4.prev = _context4.next) {
|
|
28786
28220
|
case 0:
|
|
28787
28221
|
_context4.next = 2;
|
|
28788
|
-
return request$
|
|
28222
|
+
return request$1({
|
|
28789
28223
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
28790
28224
|
method: 'get',
|
|
28791
28225
|
converter: function converter(_ref7) {
|
|
@@ -30123,7 +29557,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
30123
29557
|
style: {
|
|
30124
29558
|
marginLeft: '10px'
|
|
30125
29559
|
},
|
|
30126
|
-
className: css_248z$
|
|
29560
|
+
className: css_248z$r.rule_field_style
|
|
30127
29561
|
}, this.renderConditionField());
|
|
30128
29562
|
}
|
|
30129
29563
|
}]);
|
|
@@ -30565,7 +29999,7 @@ var RuleField$1 = /*#__PURE__*/function (_Component) {
|
|
|
30565
29999
|
disabled = _this$props.disabled;
|
|
30566
30000
|
return /*#__PURE__*/React.createElement("div", null, ruleTypeData.map(function (i) {
|
|
30567
30001
|
return /*#__PURE__*/React.createElement("div", {
|
|
30568
|
-
className: css_248z$
|
|
30002
|
+
className: css_248z$r.action_list_item
|
|
30569
30003
|
}, /*#__PURE__*/React.createElement("div", {
|
|
30570
30004
|
onClick: function onClick() {
|
|
30571
30005
|
return handleOperatingAction(i.code, 'view');
|
|
@@ -30589,533 +30023,55 @@ var RuleField$1 = /*#__PURE__*/function (_Component) {
|
|
|
30589
30023
|
return RuleField;
|
|
30590
30024
|
}(Component);
|
|
30591
30025
|
|
|
30592
|
-
var
|
|
30593
|
-
|
|
30594
|
-
|
|
30595
|
-
|
|
30596
|
-
|
|
30597
|
-
|
|
30598
|
-
|
|
30599
|
-
|
|
30600
|
-
var
|
|
30601
|
-
var Item = {
|
|
30602
|
-
id: item.id,
|
|
30603
|
-
code: item.code,
|
|
30604
|
-
name: item.name,
|
|
30605
|
-
value: item.code
|
|
30606
|
-
};
|
|
30607
|
-
if (item.propertyList) {
|
|
30608
|
-
// @ts-ignore
|
|
30609
|
-
Item.propertyList = item.propertyList.map(function (field) {
|
|
30610
|
-
return {
|
|
30611
|
-
id: field.id,
|
|
30612
|
-
code: field.code,
|
|
30613
|
-
name: field.name,
|
|
30614
|
-
value: "".concat(item.code, ".").concat(field.code),
|
|
30615
|
-
valueText: "".concat(item.name, ".").concat(field.name)
|
|
30616
|
-
};
|
|
30617
|
-
});
|
|
30618
|
-
}
|
|
30619
|
-
return Item;
|
|
30620
|
-
});
|
|
30621
|
-
console.log((ites === null || ites === void 0 ? void 0 : ites.dictionaryCode) && !getDictionarySource(ites.dictionaryCode));
|
|
30622
|
-
var _useState = useState(getDictionarySource(ites.dictionaryCode) || []),
|
|
30026
|
+
var InnerSelect = (function (props) {
|
|
30027
|
+
var disabled = props.disabled,
|
|
30028
|
+
inputType = props.inputType,
|
|
30029
|
+
defaultValue = props.defaultValue,
|
|
30030
|
+
styleCommon = props.styleCommon,
|
|
30031
|
+
value = props.value,
|
|
30032
|
+
_onChange = props.onChange,
|
|
30033
|
+
dictionaryCode = props.dictionaryCode;
|
|
30034
|
+
var _useState = useState(getDictionarySource(dictionaryCode !== null && dictionaryCode !== void 0 ? dictionaryCode : '') || []),
|
|
30623
30035
|
_useState2 = _slicedToArray(_useState, 2),
|
|
30624
|
-
|
|
30625
|
-
|
|
30626
|
-
var getDictData = /*#__PURE__*/function () {
|
|
30627
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30628
|
-
var _data$map;
|
|
30629
|
-
var data;
|
|
30630
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30631
|
-
while (1) switch (_context.prev = _context.next) {
|
|
30632
|
-
case 0:
|
|
30633
|
-
_context.next = 2;
|
|
30634
|
-
return request$2({
|
|
30635
|
-
url: "/basic/bscDictItem/allItemList?qp-code-eq=".concat(ites.dictionaryCode)
|
|
30636
|
-
});
|
|
30637
|
-
case 2:
|
|
30638
|
-
data = _context.sent;
|
|
30639
|
-
setDictData(data === null || data === void 0 ? void 0 : (_data$map = data.map) === null || _data$map === void 0 ? void 0 : _data$map.call(data, function (item) {
|
|
30640
|
-
return {
|
|
30641
|
-
text: item.dictItemName,
|
|
30642
|
-
value: item.dictItemCode
|
|
30643
|
-
};
|
|
30644
|
-
}));
|
|
30645
|
-
case 4:
|
|
30646
|
-
case "end":
|
|
30647
|
-
return _context.stop();
|
|
30648
|
-
}
|
|
30649
|
-
}, _callee);
|
|
30650
|
-
}));
|
|
30651
|
-
return function getDictData() {
|
|
30652
|
-
return _ref.apply(this, arguments);
|
|
30653
|
-
};
|
|
30654
|
-
}();
|
|
30036
|
+
dataSource = _useState2[0],
|
|
30037
|
+
setDataSource = _useState2[1];
|
|
30655
30038
|
useEffect(function () {
|
|
30656
|
-
if (
|
|
30657
|
-
|
|
30658
|
-
|
|
30659
|
-
|
|
30660
|
-
|
|
30661
|
-
|
|
30662
|
-
|
|
30663
|
-
|
|
30664
|
-
|
|
30665
|
-
|
|
30666
|
-
|
|
30667
|
-
|
|
30668
|
-
|
|
30669
|
-
|
|
30670
|
-
|
|
30671
|
-
|
|
30672
|
-
|
|
30673
|
-
return handleEdit(ites.code, undefined);
|
|
30674
|
-
},
|
|
30675
|
-
defaultValue: showValue(ites.code, 'input'),
|
|
30676
|
-
style: styleCommon,
|
|
30677
|
-
onBlur: function onBlur(e) {
|
|
30678
|
-
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
30679
|
-
}
|
|
30680
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 22) && ( /*#__PURE__*/React.createElement(InputNumber, {
|
|
30681
|
-
disabled: disabled,
|
|
30682
|
-
max: Number.MAX_SAFE_INTEGER,
|
|
30683
|
-
min: (ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 ? 0 : Number.MIN_SAFE_INTEGER,
|
|
30684
|
-
precision: (ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 ? 0 : 2,
|
|
30685
|
-
defaultValue: ites.defaultValue,
|
|
30686
|
-
style: style2,
|
|
30687
|
-
value: showValue(ites.code),
|
|
30688
|
-
onChange: function onChange(value) {
|
|
30689
|
-
handleEdit(ites.code, value);
|
|
30690
|
-
}
|
|
30691
|
-
})) || 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, {
|
|
30692
|
-
disabled: disabled,
|
|
30693
|
-
defaultValue: ites.defaultValue,
|
|
30694
|
-
style: style2,
|
|
30695
|
-
value: showValue(ites.code),
|
|
30696
|
-
onChange: function onChange(value) {
|
|
30697
|
-
handleEdit(ites.code, value);
|
|
30698
|
-
}
|
|
30699
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && ( /*#__PURE__*/React.createElement(RangePicker$1, {
|
|
30700
|
-
showTime: true,
|
|
30701
|
-
disabled: disabled,
|
|
30702
|
-
defaultValue: ites.defaultValue,
|
|
30703
|
-
style: style2,
|
|
30704
|
-
value: showValue(ites.code),
|
|
30705
|
-
onChange: function onChange(value) {
|
|
30706
|
-
handleEdit(ites.code, value);
|
|
30707
|
-
}
|
|
30708
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && ( /*#__PURE__*/React.createElement(Switch, {
|
|
30709
|
-
disabled: disabled,
|
|
30710
|
-
defaultChecked: !!ites.defaultValue,
|
|
30711
|
-
style: style2,
|
|
30712
|
-
checked: showValue(ites.code),
|
|
30713
|
-
onChange: function onChange(value) {
|
|
30714
|
-
handleEdit(ites.code, value);
|
|
30039
|
+
if (!!dictionaryCode && !getDictionarySource(dictionaryCode)) {
|
|
30040
|
+
request$1({
|
|
30041
|
+
url: "/basic/bscDictItem/allItemList?qp-code-eq=".concat(dictionaryCode),
|
|
30042
|
+
method: 'get',
|
|
30043
|
+
converter: function converter(_ref) {
|
|
30044
|
+
var _data$map;
|
|
30045
|
+
var data = _ref.data;
|
|
30046
|
+
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) {
|
|
30047
|
+
return {
|
|
30048
|
+
label: item.dictItemName,
|
|
30049
|
+
value: item.dictItemCode
|
|
30050
|
+
};
|
|
30051
|
+
})) || [];
|
|
30052
|
+
setDataSource(dataList);
|
|
30053
|
+
return dataList;
|
|
30054
|
+
}
|
|
30055
|
+
});
|
|
30715
30056
|
}
|
|
30716
|
-
}
|
|
30717
|
-
|
|
30718
|
-
allowClear: true,
|
|
30719
|
-
showArrow: true
|
|
30720
|
-
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30721
|
-
mode: 'multiple'
|
|
30722
|
-
} : {}), {}, {
|
|
30723
|
-
defaultValue: ites.defaultValue,
|
|
30724
|
-
style: styleCommon,
|
|
30725
|
-
value: showValue(ites.code),
|
|
30726
|
-
onChange: function onChange(value) {
|
|
30727
|
-
handleEdit(ites.code, value);
|
|
30728
|
-
}
|
|
30729
|
-
}), Object.keys(ites.enumeration).map(function (it) {
|
|
30730
|
-
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
30731
|
-
key: it,
|
|
30732
|
-
value: it
|
|
30733
|
-
}, ites.enumeration[it]);
|
|
30734
|
-
}))) || 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(Select, _objectSpread2(_objectSpread2({
|
|
30057
|
+
}, [dictionaryCode]);
|
|
30058
|
+
return /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({
|
|
30735
30059
|
disabled: disabled
|
|
30736
|
-
},
|
|
30060
|
+
}, inputType === 30 ? {
|
|
30737
30061
|
mode: 'multiple'
|
|
30738
30062
|
} : {}), {}, {
|
|
30739
|
-
defaultValue:
|
|
30740
|
-
style: styleCommon,
|
|
30741
|
-
value: (_showValue = showValue(ites.code)) === null || _showValue === void 0 ? void 0 : _showValue.split(','),
|
|
30742
|
-
onChange: function onChange(value) {
|
|
30743
|
-
handleEdit(ites.code, value);
|
|
30744
|
-
},
|
|
30745
|
-
showSearch: true,
|
|
30746
|
-
optionFilterProp: "children",
|
|
30747
|
-
filterOption: function filterOption(input, option) {
|
|
30748
|
-
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
30749
|
-
}
|
|
30750
|
-
}), dictData === null || dictData === void 0 ? void 0 : dictData.map(function (it) {
|
|
30751
|
-
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
30752
|
-
key: it.value,
|
|
30753
|
-
value: it.value
|
|
30754
|
-
}, it.text);
|
|
30755
|
-
}))) || 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, {
|
|
30756
|
-
selectBusinessType: "physicalWarehouse",
|
|
30757
|
-
selectProps: _objectSpread2({
|
|
30758
|
-
style: styleCommon,
|
|
30759
|
-
placeholder: '请选择物理仓'
|
|
30760
|
-
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30761
|
-
mode: 'multiple',
|
|
30762
|
-
maxTagCount: 1
|
|
30763
|
-
} : {}),
|
|
30764
|
-
disabled: disabled,
|
|
30765
|
-
labelInValue: true,
|
|
30766
|
-
value: showValue(ites.code),
|
|
30767
|
-
requestConfig: {
|
|
30768
|
-
mappingValueField: 'physicalWarehouseCode',
|
|
30769
|
-
filterInit: 'qp-physicalWarehouseCode-in'
|
|
30770
|
-
},
|
|
30771
|
-
onChange: function onChange(value) {
|
|
30772
|
-
handleEdit(ites.code, value);
|
|
30773
|
-
},
|
|
30774
|
-
getPopupContainer: function getPopupContainer() {
|
|
30775
|
-
return document.body;
|
|
30776
|
-
}
|
|
30777
|
-
})) || 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) === 120 && ( /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
30778
|
-
selectBusinessType: "realWarehouse",
|
|
30779
|
-
selectProps: _objectSpread2({
|
|
30780
|
-
style: styleCommon,
|
|
30781
|
-
placeholder: '请选择逻辑仓'
|
|
30782
|
-
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30783
|
-
mode: 'multiple',
|
|
30784
|
-
maxTagCount: 1
|
|
30785
|
-
} : {}),
|
|
30786
|
-
disabled: disabled,
|
|
30787
|
-
labelInValue: true,
|
|
30788
|
-
value: showValue(ites.code),
|
|
30789
|
-
requestConfig: {
|
|
30790
|
-
mappingValueField: 'realWarehouseCode',
|
|
30791
|
-
filterInit: 'qp-realWarehouseCode-in'
|
|
30792
|
-
},
|
|
30793
|
-
onChange: function onChange(value) {
|
|
30794
|
-
handleEdit(ites.code, value);
|
|
30795
|
-
},
|
|
30796
|
-
getPopupContainer: function getPopupContainer() {
|
|
30797
|
-
return document.body;
|
|
30798
|
-
}
|
|
30799
|
-
})) || 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) === 130 && ( /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
30800
|
-
selectBusinessType: "virtualWarehouse",
|
|
30801
|
-
selectProps: _objectSpread2({
|
|
30802
|
-
style: styleCommon,
|
|
30803
|
-
placeholder: '请选择虚拟仓'
|
|
30804
|
-
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30805
|
-
mode: 'multiple',
|
|
30806
|
-
maxTagCount: 1
|
|
30807
|
-
} : {}),
|
|
30808
|
-
disabled: disabled,
|
|
30809
|
-
labelInValue: true,
|
|
30810
|
-
value: showValue(ites.code),
|
|
30811
|
-
requestConfig: {
|
|
30812
|
-
mappingValueField: 'virtualWarehouseCode',
|
|
30813
|
-
filterInit: 'qp-virtualWarehouseCode-in'
|
|
30814
|
-
},
|
|
30815
|
-
onChange: function onChange(value) {
|
|
30816
|
-
handleEdit(ites.code, value);
|
|
30817
|
-
},
|
|
30818
|
-
getPopupContainer: function getPopupContainer() {
|
|
30819
|
-
return document.body;
|
|
30820
|
-
}
|
|
30821
|
-
})) || 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) === 140 && ( /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
30822
|
-
selectBusinessType: "channelWarehouse",
|
|
30823
|
-
selectProps: _objectSpread2({
|
|
30824
|
-
style: styleCommon,
|
|
30825
|
-
placeholder: '请选择渠道仓'
|
|
30826
|
-
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30827
|
-
mode: 'multiple',
|
|
30828
|
-
maxTagCount: 1
|
|
30829
|
-
} : {}),
|
|
30830
|
-
disabled: disabled,
|
|
30831
|
-
labelInValue: true,
|
|
30832
|
-
value: showValue(ites.code),
|
|
30833
|
-
requestConfig: {
|
|
30834
|
-
mappingValueField: 'channelWarehouseCode',
|
|
30835
|
-
filterInit: 'qp-channelWarehouseCode-in'
|
|
30836
|
-
},
|
|
30837
|
-
onChange: function onChange(value) {
|
|
30838
|
-
handleEdit(ites.code, value);
|
|
30839
|
-
},
|
|
30840
|
-
getPopupContainer: function getPopupContainer() {
|
|
30841
|
-
return document.body;
|
|
30842
|
-
}
|
|
30843
|
-
})) || 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) === 150 && ( /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
30844
|
-
selectBusinessType: "spuCommodity",
|
|
30845
|
-
selectProps: _objectSpread2({
|
|
30846
|
-
style: styleCommon,
|
|
30847
|
-
placeholder: '请选择SPU'
|
|
30848
|
-
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30849
|
-
mode: 'multiple',
|
|
30850
|
-
maxTagCount: 1
|
|
30851
|
-
} : {}),
|
|
30852
|
-
disabled: disabled,
|
|
30853
|
-
labelInValue: true,
|
|
30854
|
-
value: showValue(ites.code),
|
|
30855
|
-
requestConfig: {
|
|
30856
|
-
filterInit: 'qp-itemCode-in'
|
|
30857
|
-
},
|
|
30858
|
-
onChange: function onChange(value) {
|
|
30859
|
-
handleEdit(ites.code, value);
|
|
30860
|
-
},
|
|
30861
|
-
getPopupContainer: function getPopupContainer() {
|
|
30862
|
-
return document.body;
|
|
30863
|
-
}
|
|
30864
|
-
})) || 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) === 160 && ( /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
30865
|
-
selectBusinessType: "skuCommodity",
|
|
30866
|
-
selectProps: _objectSpread2({
|
|
30867
|
-
style: styleCommon,
|
|
30868
|
-
placeholder: '请选择商品'
|
|
30869
|
-
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30870
|
-
mode: 'multiple',
|
|
30871
|
-
maxTagCount: 1
|
|
30872
|
-
} : {}),
|
|
30873
|
-
disabled: disabled,
|
|
30874
|
-
labelInValue: true,
|
|
30875
|
-
value: showValue(ites.code),
|
|
30876
|
-
requestConfig: {
|
|
30877
|
-
filterInit: 'qp-skuCode-in'
|
|
30878
|
-
},
|
|
30879
|
-
onChange: function onChange(value) {
|
|
30880
|
-
handleEdit(ites.code, value);
|
|
30881
|
-
},
|
|
30882
|
-
getPopupContainer: function getPopupContainer() {
|
|
30883
|
-
return document.body;
|
|
30884
|
-
}
|
|
30885
|
-
})) || 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) === 190 && ( /*#__PURE__*/React.createElement(BsCascader, {
|
|
30886
|
-
disabled: disabled,
|
|
30887
|
-
isAll: true,
|
|
30888
|
-
needNameAndCode: true,
|
|
30889
|
-
notChangeOnSelect: true,
|
|
30890
|
-
initRequestSource: function () {
|
|
30891
|
-
var _initRequestSource = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
30892
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
30893
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
30894
|
-
case 0:
|
|
30895
|
-
_context2.next = 2;
|
|
30896
|
-
return request$2({
|
|
30897
|
-
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
30898
|
-
method: 'get',
|
|
30899
|
-
converter: function converter(_ref2) {
|
|
30900
|
-
var data = _ref2.data;
|
|
30901
|
-
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115629
|
|
30902
|
-
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
30903
|
-
return {
|
|
30904
|
-
text: item.name,
|
|
30905
|
-
value: item.id,
|
|
30906
|
-
level: item.level,
|
|
30907
|
-
id: item.id
|
|
30908
|
-
};
|
|
30909
|
-
}) : [];
|
|
30910
|
-
return handleData;
|
|
30911
|
-
}
|
|
30912
|
-
});
|
|
30913
|
-
case 2:
|
|
30914
|
-
return _context2.abrupt("return", _context2.sent);
|
|
30915
|
-
case 3:
|
|
30916
|
-
case "end":
|
|
30917
|
-
return _context2.stop();
|
|
30918
|
-
}
|
|
30919
|
-
}, _callee2);
|
|
30920
|
-
}));
|
|
30921
|
-
function initRequestSource() {
|
|
30922
|
-
return _initRequestSource.apply(this, arguments);
|
|
30923
|
-
}
|
|
30924
|
-
return initRequestSource;
|
|
30925
|
-
}(),
|
|
30926
|
-
value: showValue(ites.code),
|
|
30927
|
-
onChange: function onChange(value) {
|
|
30928
|
-
handleEdit(ites.code, value);
|
|
30929
|
-
},
|
|
30930
|
-
getPopupContainer: function getPopupContainer() {
|
|
30931
|
-
return document.body;
|
|
30932
|
-
}
|
|
30933
|
-
})) || 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) === 210 && ( /*#__PURE__*/React.createElement(BusinessTreeSearchSelect$1, {
|
|
30934
|
-
disabled: disabled,
|
|
30935
|
-
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
30936
|
-
businessType: "department",
|
|
30937
|
-
labelInValue: true,
|
|
30938
|
-
value: showValue(ites.code),
|
|
30939
|
-
style: styleCommon,
|
|
30940
|
-
onChange: function onChange(value) {
|
|
30941
|
-
handleEdit(ites.code, value);
|
|
30942
|
-
},
|
|
30943
|
-
getPopupContainer: function getPopupContainer() {
|
|
30944
|
-
return document.body;
|
|
30945
|
-
}
|
|
30946
|
-
})) || 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) === 220 && ( /*#__PURE__*/React.createElement(BusinessTreeSearchSelect$1, {
|
|
30947
|
-
disabled: disabled,
|
|
30948
|
-
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
30949
|
-
businessType: "purchase-organization",
|
|
30950
|
-
labelInValue: true,
|
|
30951
|
-
value: showValue(ites.code),
|
|
30952
|
-
style: styleCommon,
|
|
30953
|
-
onChange: function onChange(value) {
|
|
30954
|
-
handleEdit(ites.code, value);
|
|
30955
|
-
},
|
|
30956
|
-
getPopupContainer: function getPopupContainer() {
|
|
30957
|
-
return document.body;
|
|
30958
|
-
}
|
|
30959
|
-
})) || 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) === 230 && ( /*#__PURE__*/React.createElement(BusinessTreeSearchSelect$1, {
|
|
30960
|
-
disabled: disabled,
|
|
30961
|
-
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
30962
|
-
businessType: "sales-organization",
|
|
30963
|
-
labelInValue: true,
|
|
30964
|
-
value: showValue(ites.code),
|
|
30063
|
+
defaultValue: defaultValue,
|
|
30965
30064
|
style: styleCommon,
|
|
30966
|
-
|
|
30967
|
-
|
|
30968
|
-
|
|
30969
|
-
|
|
30970
|
-
return document.body;
|
|
30971
|
-
}
|
|
30972
|
-
})) || 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) === 240 && ( /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
30973
|
-
selectBusinessType: "supplier2",
|
|
30974
|
-
selectProps: _objectSpread2({
|
|
30975
|
-
style: styleCommon,
|
|
30976
|
-
placeholder: '请选择供应商'
|
|
30977
|
-
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30978
|
-
mode: 'multiple',
|
|
30979
|
-
maxTagCount: 1
|
|
30980
|
-
} : {}),
|
|
30981
|
-
disabled: disabled,
|
|
30982
|
-
labelInValue: true,
|
|
30983
|
-
value: showValue(ites.code),
|
|
30984
|
-
requestConfig: {
|
|
30985
|
-
filterInit: 'qp-code-in'
|
|
30986
|
-
},
|
|
30987
|
-
onChange: function onChange(value) {
|
|
30988
|
-
handleEdit(ites.code, value);
|
|
30065
|
+
value: value === null || value === void 0 ? void 0 : value.split(','),
|
|
30066
|
+
onChange: function onChange(changeValue) {
|
|
30067
|
+
_onChange(changeValue);
|
|
30068
|
+
// handleEdit(ites.code, value);
|
|
30989
30069
|
},
|
|
30990
|
-
|
|
30991
|
-
|
|
30992
|
-
|
|
30993
|
-
})) || 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) === 250 && ( /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
30994
|
-
selectBusinessType: "customer2",
|
|
30995
|
-
selectProps: _objectSpread2({
|
|
30996
|
-
style: styleCommon,
|
|
30997
|
-
placeholder: '请选择客户'
|
|
30998
|
-
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30999
|
-
mode: 'multiple',
|
|
31000
|
-
maxTagCount: 1
|
|
31001
|
-
} : {}),
|
|
31002
|
-
disabled: disabled,
|
|
31003
|
-
labelInValue: true,
|
|
31004
|
-
value: showValue(ites.code),
|
|
31005
|
-
requestConfig: {
|
|
31006
|
-
filterInit: 'qp-code-in'
|
|
31007
|
-
},
|
|
31008
|
-
onChange: function onChange(value) {
|
|
31009
|
-
handleEdit(ites.code, value);
|
|
31010
|
-
},
|
|
31011
|
-
getPopupContainer: function getPopupContainer() {
|
|
31012
|
-
return document.body;
|
|
31013
|
-
}
|
|
31014
|
-
})) || 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) === 260 && ( /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
31015
|
-
selectBusinessType: "shopFile2",
|
|
31016
|
-
selectProps: _objectSpread2({
|
|
31017
|
-
style: styleCommon,
|
|
31018
|
-
placeholder: '请选择店铺'
|
|
31019
|
-
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
31020
|
-
mode: 'multiple',
|
|
31021
|
-
maxTagCount: 1
|
|
31022
|
-
} : {}),
|
|
31023
|
-
disabled: disabled,
|
|
31024
|
-
labelInValue: true,
|
|
31025
|
-
value: showValue(ites.code),
|
|
31026
|
-
requestConfig: {
|
|
31027
|
-
filterInit: 'qp-code-in'
|
|
31028
|
-
},
|
|
31029
|
-
onChange: function onChange(value) {
|
|
31030
|
-
handleEdit(ites.code, value);
|
|
31031
|
-
},
|
|
31032
|
-
getPopupContainer: function getPopupContainer() {
|
|
31033
|
-
return document.body;
|
|
31034
|
-
}
|
|
31035
|
-
})) || 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) === 270 && ( /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
31036
|
-
selectBusinessType: "employee2",
|
|
31037
|
-
selectProps: _objectSpread2({
|
|
31038
|
-
style: styleCommon,
|
|
31039
|
-
placeholder: '请选择员工'
|
|
31040
|
-
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
31041
|
-
mode: 'multiple',
|
|
31042
|
-
maxTagCount: 1
|
|
31043
|
-
} : {}),
|
|
31044
|
-
disabled: disabled,
|
|
31045
|
-
labelInValue: true,
|
|
31046
|
-
value: showValue(ites.code),
|
|
31047
|
-
requestConfig: {
|
|
31048
|
-
filterInit: 'qp-id-in'
|
|
31049
|
-
},
|
|
31050
|
-
onChange: function onChange(value) {
|
|
31051
|
-
handleEdit(ites.code, value);
|
|
31052
|
-
},
|
|
31053
|
-
getPopupContainer: function getPopupContainer() {
|
|
31054
|
-
return document.body;
|
|
31055
|
-
}
|
|
31056
|
-
})) || 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) === 280 && ( /*#__PURE__*/React.createElement(BusinessTreeSearchSelect$1, {
|
|
31057
|
-
disabled: disabled,
|
|
31058
|
-
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
31059
|
-
businessType: "stock-organization",
|
|
31060
|
-
labelInValue: true,
|
|
31061
|
-
value: showValue(ites.code),
|
|
31062
|
-
style: styleCommon,
|
|
31063
|
-
onChange: function onChange(value) {
|
|
31064
|
-
handleEdit(ites.code, value);
|
|
31065
|
-
},
|
|
31066
|
-
getPopupContainer: function getPopupContainer() {
|
|
31067
|
-
return document.body;
|
|
31068
|
-
}
|
|
31069
|
-
})) || 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, {
|
|
31070
|
-
selectBusinessType: "deliveryMode",
|
|
31071
|
-
selectProps: _objectSpread2({
|
|
31072
|
-
style: styleCommon,
|
|
31073
|
-
placeholder: '请选择配送方式'
|
|
31074
|
-
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
31075
|
-
mode: 'multiple',
|
|
31076
|
-
maxTagCount: 1
|
|
31077
|
-
} : {}),
|
|
31078
|
-
disabled: disabled,
|
|
31079
|
-
labelInValue: true,
|
|
31080
|
-
value: showValue(ites.code),
|
|
31081
|
-
requestConfig: {
|
|
31082
|
-
filterInit: 'qp-code-in'
|
|
31083
|
-
},
|
|
31084
|
-
onChange: function onChange(value) {
|
|
31085
|
-
handleEdit(ites.code, value);
|
|
31086
|
-
},
|
|
31087
|
-
getPopupContainer: function getPopupContainer() {
|
|
31088
|
-
return document.body;
|
|
31089
|
-
}
|
|
31090
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && ( /*#__PURE__*/React.createElement("div", {
|
|
31091
|
-
style: {
|
|
31092
|
-
display: 'flex'
|
|
31093
|
-
}
|
|
31094
|
-
}, /*#__PURE__*/React.createElement(App$1, {
|
|
31095
|
-
disabled: disabled,
|
|
31096
|
-
key: showValue(ites.code),
|
|
31097
|
-
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115667
|
|
31098
|
-
setValue: function setValue(val, formulaName) {
|
|
31099
|
-
console.log(val, 'val');
|
|
31100
|
-
var value = val.map(function (item) {
|
|
31101
|
-
return item.value.replace(/[a-zA-Z_]+\.\w+/g, function (i) {
|
|
31102
|
-
return '{' + i + '}';
|
|
31103
|
-
});
|
|
31104
|
-
});
|
|
31105
|
-
handleEdit(ites.code, value.join(''));
|
|
31106
|
-
handleEdit({
|
|
31107
|
-
inputType: 40,
|
|
31108
|
-
formulaName: formulaName
|
|
31109
|
-
});
|
|
31110
|
-
},
|
|
31111
|
-
record: {
|
|
31112
|
-
expression: showValue(ites.code)
|
|
31113
|
-
},
|
|
31114
|
-
sourceData: fieldListGroup
|
|
31115
|
-
}))));
|
|
31116
|
-
}
|
|
30070
|
+
options: dataSource
|
|
30071
|
+
}));
|
|
30072
|
+
});
|
|
31117
30073
|
|
|
31118
|
-
var RangePicker$
|
|
30074
|
+
var RangePicker$1 = DatePicker.RangePicker;
|
|
31119
30075
|
var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
31120
30076
|
_inherits(RuleObjectComponent, _Component);
|
|
31121
30077
|
function RuleObjectComponent(props) {
|
|
@@ -31183,7 +30139,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
31183
30139
|
} else if (element.choiceType === 20) {
|
|
31184
30140
|
_this.dictCodeToRangeIdMap["".concat(rootObjCode, ".").concat(parentKey, ".").concat(element.code)] = infoVo === null || infoVo === void 0 ? void 0 : infoVo.dictionaryCode;
|
|
31185
30141
|
} else if (element.choiceType === 10) {
|
|
31186
|
-
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115669
|
|
31187
30142
|
var _list = Object.keys(infoVo).length && infoVo.enumeration && Object.keys(infoVo.enumeration).map(function (i) {
|
|
31188
30143
|
return {
|
|
31189
30144
|
code: i,
|
|
@@ -31528,18 +30483,18 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
31528
30483
|
onClick: function onClick() {
|
|
31529
30484
|
_this.handleLogicalTypeChange(itemDetail, 'or');
|
|
31530
30485
|
}
|
|
31531
|
-
}, "
|
|
30486
|
+
}, "\u6216\u8005"), /*#__PURE__*/React.createElement("p", {
|
|
31532
30487
|
className: 'choose_logical_type',
|
|
31533
30488
|
onClick: function onClick() {
|
|
31534
30489
|
_this.handleLogicalTypeChange(itemDetail, 'and');
|
|
31535
30490
|
}
|
|
31536
|
-
}, "
|
|
30491
|
+
}, "\u5E76\u4E14")),
|
|
31537
30492
|
trigger: "focus"
|
|
31538
30493
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
31539
30494
|
disabled: disabled,
|
|
31540
30495
|
type: "link",
|
|
31541
30496
|
className: 'logical_item_btn'
|
|
31542
|
-
}, (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.operationCode) == 'or' ? '
|
|
30497
|
+
}, (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.operationCode) == 'or' ? '或者' : '并且', /*#__PURE__*/React.createElement(DownOutlined, {
|
|
31543
30498
|
style: {
|
|
31544
30499
|
marginLeft: '6px'
|
|
31545
30500
|
}
|
|
@@ -31634,6 +30589,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
31634
30589
|
onChange: function onChange(value) {
|
|
31635
30590
|
var _systemVariableList$f;
|
|
31636
30591
|
var ruleClassData = _this.state.ruleClassData;
|
|
30592
|
+
console.log(itemDetail);
|
|
31637
30593
|
itemDetail.params = [value && "{".concat(value, "}") || ''];
|
|
31638
30594
|
var name = (_systemVariableList$f = systemVariableList.find(function (i) {
|
|
31639
30595
|
return i.code == value;
|
|
@@ -31768,7 +30724,503 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
31768
30724
|
}
|
|
31769
30725
|
})) || null;
|
|
31770
30726
|
};
|
|
31771
|
-
_this.
|
|
30727
|
+
_this.renderCompItem = function (ites, showValue, handleEdit, disabled) {
|
|
30728
|
+
var regularDataList = _this.props.regularDataList;
|
|
30729
|
+
var fieldListGroup = regularDataList.map(function (item) {
|
|
30730
|
+
var Item = {
|
|
30731
|
+
id: item.id,
|
|
30732
|
+
code: item.code,
|
|
30733
|
+
name: item.name,
|
|
30734
|
+
value: item.code
|
|
30735
|
+
};
|
|
30736
|
+
if (item.propertyList) {
|
|
30737
|
+
Item.propertyList = item.propertyList.map(function (field) {
|
|
30738
|
+
return {
|
|
30739
|
+
id: field.id,
|
|
30740
|
+
code: field.code,
|
|
30741
|
+
name: field.name,
|
|
30742
|
+
value: "".concat(item.code, ".").concat(field.code),
|
|
30743
|
+
valueText: "".concat(item.name, ".").concat(field.name)
|
|
30744
|
+
};
|
|
30745
|
+
});
|
|
30746
|
+
}
|
|
30747
|
+
return Item;
|
|
30748
|
+
});
|
|
30749
|
+
if (!ites) return;
|
|
30750
|
+
var styleCommon = _objectSpread2({
|
|
30751
|
+
width: '200px'
|
|
30752
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.rightText) ? {
|
|
30753
|
+
marginLeft: 10
|
|
30754
|
+
} : {});
|
|
30755
|
+
var style2 = {
|
|
30756
|
+
width: '100px'
|
|
30757
|
+
};
|
|
30758
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && /*#__PURE__*/React.createElement(Input, {
|
|
30759
|
+
disabled: disabled,
|
|
30760
|
+
allowClear: true,
|
|
30761
|
+
onClear: function onClear() {
|
|
30762
|
+
handleEdit(ites.code, undefined);
|
|
30763
|
+
},
|
|
30764
|
+
defaultValue: showValue(ites.code, 'input'),
|
|
30765
|
+
style: styleCommon,
|
|
30766
|
+
onBlur: function onBlur(e) {
|
|
30767
|
+
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
30768
|
+
}
|
|
30769
|
+
}) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 22) && /*#__PURE__*/React.createElement(InputNumber, {
|
|
30770
|
+
disabled: disabled,
|
|
30771
|
+
max: Number.MAX_SAFE_INTEGER,
|
|
30772
|
+
min: (ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 ? 0 : Number.MIN_SAFE_INTEGER,
|
|
30773
|
+
precision: (ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 ? 0 : 2,
|
|
30774
|
+
defaultValue: ites.defaultValue,
|
|
30775
|
+
style: style2,
|
|
30776
|
+
value: showValue(ites.code),
|
|
30777
|
+
onChange: function onChange(value) {
|
|
30778
|
+
handleEdit(ites.code, value);
|
|
30779
|
+
}
|
|
30780
|
+
}) || 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, {
|
|
30781
|
+
showTime: dataTypeCode == 32,
|
|
30782
|
+
format: dataTypeCode == 41 ? dateFormat : fullDateFormat,
|
|
30783
|
+
disabled: disabled,
|
|
30784
|
+
defaultValue: ites.defaultValue,
|
|
30785
|
+
style: style2,
|
|
30786
|
+
value: showValue(ites.code),
|
|
30787
|
+
onChange: function onChange(value) {
|
|
30788
|
+
handleEdit(ites.code, value);
|
|
30789
|
+
}
|
|
30790
|
+
}) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && /*#__PURE__*/React.createElement(RangePicker$1, {
|
|
30791
|
+
showTime: true,
|
|
30792
|
+
disabled: disabled,
|
|
30793
|
+
defaultValue: ites.defaultValue,
|
|
30794
|
+
style: style2,
|
|
30795
|
+
value: showValue(ites.code),
|
|
30796
|
+
onChange: function onChange(value) {
|
|
30797
|
+
handleEdit(ites.code, value);
|
|
30798
|
+
}
|
|
30799
|
+
}) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && /*#__PURE__*/React.createElement(Switch, {
|
|
30800
|
+
disabled: disabled,
|
|
30801
|
+
defaultChecked: !!ites.defaultValue,
|
|
30802
|
+
style: style2,
|
|
30803
|
+
checked: showValue(ites.code),
|
|
30804
|
+
onChange: function onChange(value) {
|
|
30805
|
+
handleEdit(ites.code, value);
|
|
30806
|
+
}
|
|
30807
|
+
}) || 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) === 10 && /*#__PURE__*/React.createElement(Select, _extends({
|
|
30808
|
+
disabled: disabled,
|
|
30809
|
+
allowClear: true,
|
|
30810
|
+
showArrow: true
|
|
30811
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30812
|
+
mode: 'multiple'
|
|
30813
|
+
} : {}, {
|
|
30814
|
+
defaultValue: ites.defaultValue,
|
|
30815
|
+
style: styleCommon,
|
|
30816
|
+
value: showValue(ites.code),
|
|
30817
|
+
onChange: function onChange(value) {
|
|
30818
|
+
handleEdit(ites.code, value);
|
|
30819
|
+
}
|
|
30820
|
+
}), Object.keys(ites.enumeration).map(function (it) {
|
|
30821
|
+
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
30822
|
+
key: it,
|
|
30823
|
+
value: it
|
|
30824
|
+
}, ites.enumeration[it]);
|
|
30825
|
+
})) || 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, {
|
|
30826
|
+
disabled: disabled,
|
|
30827
|
+
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
30828
|
+
defaultValue: ites.defaultValue,
|
|
30829
|
+
styleCommon: styleCommon,
|
|
30830
|
+
value: showValue(ites.code),
|
|
30831
|
+
onChange: function onChange(value) {
|
|
30832
|
+
handleEdit(ites.code, value);
|
|
30833
|
+
},
|
|
30834
|
+
dictionaryCode: ites.dictionaryCode
|
|
30835
|
+
}) || 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, {
|
|
30836
|
+
selectBusinessType: "physicalWarehouse",
|
|
30837
|
+
selectProps: _objectSpread2({
|
|
30838
|
+
style: styleCommon,
|
|
30839
|
+
placeholder: '请选择物理仓'
|
|
30840
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30841
|
+
mode: 'multiple',
|
|
30842
|
+
maxTagCount: 1
|
|
30843
|
+
} : {}),
|
|
30844
|
+
disabled: disabled,
|
|
30845
|
+
labelInValue: true,
|
|
30846
|
+
value: showValue(ites.code),
|
|
30847
|
+
requestConfig: {
|
|
30848
|
+
mappingValueField: 'physicalWarehouseCode',
|
|
30849
|
+
filterInit: 'qp-physicalWarehouseCode-in'
|
|
30850
|
+
},
|
|
30851
|
+
onChange: function onChange(value) {
|
|
30852
|
+
handleEdit(ites.code, value);
|
|
30853
|
+
},
|
|
30854
|
+
getPopupContainer: function getPopupContainer() {
|
|
30855
|
+
return document.body;
|
|
30856
|
+
}
|
|
30857
|
+
}) || 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) === 120 && /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
30858
|
+
selectBusinessType: "realWarehouse",
|
|
30859
|
+
selectProps: _objectSpread2({
|
|
30860
|
+
style: styleCommon,
|
|
30861
|
+
placeholder: '请选择逻辑仓'
|
|
30862
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30863
|
+
mode: 'multiple',
|
|
30864
|
+
maxTagCount: 1
|
|
30865
|
+
} : {}),
|
|
30866
|
+
disabled: disabled,
|
|
30867
|
+
labelInValue: true,
|
|
30868
|
+
value: showValue(ites.code),
|
|
30869
|
+
requestConfig: {
|
|
30870
|
+
mappingValueField: 'realWarehouseCode',
|
|
30871
|
+
filterInit: 'qp-realWarehouseCode-in'
|
|
30872
|
+
},
|
|
30873
|
+
onChange: function onChange(value) {
|
|
30874
|
+
handleEdit(ites.code, value);
|
|
30875
|
+
},
|
|
30876
|
+
getPopupContainer: function getPopupContainer() {
|
|
30877
|
+
return document.body;
|
|
30878
|
+
}
|
|
30879
|
+
}) || 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) === 130 && /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
30880
|
+
selectBusinessType: "virtualWarehouse",
|
|
30881
|
+
selectProps: _objectSpread2({
|
|
30882
|
+
style: styleCommon,
|
|
30883
|
+
placeholder: '请选择虚拟仓'
|
|
30884
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30885
|
+
mode: 'multiple',
|
|
30886
|
+
maxTagCount: 1
|
|
30887
|
+
} : {}),
|
|
30888
|
+
disabled: disabled,
|
|
30889
|
+
labelInValue: true,
|
|
30890
|
+
value: showValue(ites.code),
|
|
30891
|
+
requestConfig: {
|
|
30892
|
+
mappingValueField: 'virtualWarehouseCode',
|
|
30893
|
+
filterInit: 'qp-virtualWarehouseCode-in'
|
|
30894
|
+
},
|
|
30895
|
+
onChange: function onChange(value) {
|
|
30896
|
+
handleEdit(ites.code, value);
|
|
30897
|
+
},
|
|
30898
|
+
getPopupContainer: function getPopupContainer() {
|
|
30899
|
+
return document.body;
|
|
30900
|
+
}
|
|
30901
|
+
}) || 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) === 140 && /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
30902
|
+
selectBusinessType: "channelWarehouse",
|
|
30903
|
+
selectProps: _objectSpread2({
|
|
30904
|
+
style: styleCommon,
|
|
30905
|
+
placeholder: '请选择渠道仓'
|
|
30906
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30907
|
+
mode: 'multiple',
|
|
30908
|
+
maxTagCount: 1
|
|
30909
|
+
} : {}),
|
|
30910
|
+
disabled: disabled,
|
|
30911
|
+
labelInValue: true,
|
|
30912
|
+
value: showValue(ites.code),
|
|
30913
|
+
requestConfig: {
|
|
30914
|
+
mappingValueField: 'channelWarehouseCode',
|
|
30915
|
+
filterInit: 'qp-channelWarehouseCode-in'
|
|
30916
|
+
},
|
|
30917
|
+
onChange: function onChange(value) {
|
|
30918
|
+
handleEdit(ites.code, value);
|
|
30919
|
+
},
|
|
30920
|
+
getPopupContainer: function getPopupContainer() {
|
|
30921
|
+
return document.body;
|
|
30922
|
+
}
|
|
30923
|
+
}) || 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) === 150 && /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
30924
|
+
selectBusinessType: "spuCommodity",
|
|
30925
|
+
selectProps: _objectSpread2({
|
|
30926
|
+
style: styleCommon,
|
|
30927
|
+
placeholder: '请选择SPU'
|
|
30928
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30929
|
+
mode: 'multiple',
|
|
30930
|
+
maxTagCount: 1
|
|
30931
|
+
} : {}),
|
|
30932
|
+
disabled: disabled,
|
|
30933
|
+
labelInValue: true,
|
|
30934
|
+
value: showValue(ites.code),
|
|
30935
|
+
requestConfig: {
|
|
30936
|
+
filterInit: 'qp-itemCode-in'
|
|
30937
|
+
},
|
|
30938
|
+
onChange: function onChange(value) {
|
|
30939
|
+
handleEdit(ites.code, value);
|
|
30940
|
+
},
|
|
30941
|
+
getPopupContainer: function getPopupContainer() {
|
|
30942
|
+
return document.body;
|
|
30943
|
+
}
|
|
30944
|
+
}) || 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) === 160 && /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
30945
|
+
selectBusinessType: "skuCommodity",
|
|
30946
|
+
selectProps: _objectSpread2({
|
|
30947
|
+
style: styleCommon,
|
|
30948
|
+
placeholder: '请选择商品'
|
|
30949
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30950
|
+
mode: 'multiple',
|
|
30951
|
+
maxTagCount: 1
|
|
30952
|
+
} : {}),
|
|
30953
|
+
disabled: disabled,
|
|
30954
|
+
labelInValue: true,
|
|
30955
|
+
value: showValue(ites.code),
|
|
30956
|
+
requestConfig: {
|
|
30957
|
+
filterInit: 'qp-skuCode-in'
|
|
30958
|
+
},
|
|
30959
|
+
onChange: function onChange(value) {
|
|
30960
|
+
handleEdit(ites.code, value);
|
|
30961
|
+
},
|
|
30962
|
+
getPopupContainer: function getPopupContainer() {
|
|
30963
|
+
return document.body;
|
|
30964
|
+
}
|
|
30965
|
+
}) || 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) === 190 && /*#__PURE__*/React.createElement(BsCascader, {
|
|
30966
|
+
disabled: disabled,
|
|
30967
|
+
isAll: true,
|
|
30968
|
+
needNameAndCode: true,
|
|
30969
|
+
notChangeOnSelect: true,
|
|
30970
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30971
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30972
|
+
while (1) switch (_context.prev = _context.next) {
|
|
30973
|
+
case 0:
|
|
30974
|
+
_context.next = 2;
|
|
30975
|
+
return request$1({
|
|
30976
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
30977
|
+
method: 'get',
|
|
30978
|
+
converter: function converter(_ref2) {
|
|
30979
|
+
var data = _ref2.data;
|
|
30980
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
30981
|
+
return {
|
|
30982
|
+
text: item.name,
|
|
30983
|
+
value: item.id,
|
|
30984
|
+
level: item.level,
|
|
30985
|
+
id: item.id
|
|
30986
|
+
};
|
|
30987
|
+
}) : [];
|
|
30988
|
+
return handleData;
|
|
30989
|
+
}
|
|
30990
|
+
});
|
|
30991
|
+
case 2:
|
|
30992
|
+
return _context.abrupt("return", _context.sent);
|
|
30993
|
+
case 3:
|
|
30994
|
+
case "end":
|
|
30995
|
+
return _context.stop();
|
|
30996
|
+
}
|
|
30997
|
+
}, _callee);
|
|
30998
|
+
})),
|
|
30999
|
+
value: showValue(ites.code),
|
|
31000
|
+
onChange: function onChange(value) {
|
|
31001
|
+
handleEdit(ites.code, value);
|
|
31002
|
+
},
|
|
31003
|
+
getPopupContainer: function getPopupContainer() {
|
|
31004
|
+
return document.body;
|
|
31005
|
+
}
|
|
31006
|
+
}) || 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) === 210 && /*#__PURE__*/React.createElement(BusinessTreeSearchSelect$1, {
|
|
31007
|
+
disabled: disabled,
|
|
31008
|
+
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
31009
|
+
businessType: "department",
|
|
31010
|
+
labelInValue: true,
|
|
31011
|
+
value: showValue(ites.code),
|
|
31012
|
+
style: styleCommon,
|
|
31013
|
+
onChange: function onChange(value) {
|
|
31014
|
+
handleEdit(ites.code, value);
|
|
31015
|
+
},
|
|
31016
|
+
getPopupContainer: function getPopupContainer() {
|
|
31017
|
+
return document.body;
|
|
31018
|
+
}
|
|
31019
|
+
}) || 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) === 220 && /*#__PURE__*/React.createElement(BusinessTreeSearchSelect$1, {
|
|
31020
|
+
disabled: disabled,
|
|
31021
|
+
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
31022
|
+
businessType: "purchase-organization",
|
|
31023
|
+
labelInValue: true,
|
|
31024
|
+
value: showValue(ites.code),
|
|
31025
|
+
style: styleCommon,
|
|
31026
|
+
onChange: function onChange(value) {
|
|
31027
|
+
handleEdit(ites.code, value);
|
|
31028
|
+
},
|
|
31029
|
+
getPopupContainer: function getPopupContainer() {
|
|
31030
|
+
return document.body;
|
|
31031
|
+
}
|
|
31032
|
+
}) || 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) === 230 && /*#__PURE__*/React.createElement(BusinessTreeSearchSelect$1, {
|
|
31033
|
+
disabled: disabled,
|
|
31034
|
+
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
31035
|
+
businessType: "sales-organization",
|
|
31036
|
+
labelInValue: true,
|
|
31037
|
+
value: showValue(ites.code),
|
|
31038
|
+
style: styleCommon,
|
|
31039
|
+
onChange: function onChange(value) {
|
|
31040
|
+
handleEdit(ites.code, value);
|
|
31041
|
+
},
|
|
31042
|
+
getPopupContainer: function getPopupContainer() {
|
|
31043
|
+
return document.body;
|
|
31044
|
+
}
|
|
31045
|
+
}) || 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) === 240 && /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
31046
|
+
selectBusinessType: "supplier2",
|
|
31047
|
+
selectProps: _objectSpread2({
|
|
31048
|
+
style: styleCommon,
|
|
31049
|
+
placeholder: '请选择供应商'
|
|
31050
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
31051
|
+
mode: 'multiple',
|
|
31052
|
+
maxTagCount: 1
|
|
31053
|
+
} : {}),
|
|
31054
|
+
disabled: disabled,
|
|
31055
|
+
labelInValue: true,
|
|
31056
|
+
value: showValue(ites.code),
|
|
31057
|
+
requestConfig: {
|
|
31058
|
+
filterInit: 'qp-code-in'
|
|
31059
|
+
},
|
|
31060
|
+
onChange: function onChange(value) {
|
|
31061
|
+
handleEdit(ites.code, value);
|
|
31062
|
+
},
|
|
31063
|
+
getPopupContainer: function getPopupContainer() {
|
|
31064
|
+
return document.body;
|
|
31065
|
+
}
|
|
31066
|
+
}) || 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) === 250 && /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
31067
|
+
selectBusinessType: "customer2",
|
|
31068
|
+
selectProps: _objectSpread2({
|
|
31069
|
+
style: styleCommon,
|
|
31070
|
+
placeholder: '请选择客户'
|
|
31071
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
31072
|
+
mode: 'multiple',
|
|
31073
|
+
maxTagCount: 1
|
|
31074
|
+
} : {}),
|
|
31075
|
+
disabled: disabled,
|
|
31076
|
+
labelInValue: true,
|
|
31077
|
+
value: showValue(ites.code),
|
|
31078
|
+
requestConfig: {
|
|
31079
|
+
filterInit: 'qp-code-in'
|
|
31080
|
+
},
|
|
31081
|
+
onChange: function onChange(value) {
|
|
31082
|
+
handleEdit(ites.code, value);
|
|
31083
|
+
},
|
|
31084
|
+
getPopupContainer: function getPopupContainer() {
|
|
31085
|
+
return document.body;
|
|
31086
|
+
}
|
|
31087
|
+
}) || 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) === 260 && /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
31088
|
+
selectBusinessType: "shopFile2",
|
|
31089
|
+
selectProps: _objectSpread2({
|
|
31090
|
+
style: styleCommon,
|
|
31091
|
+
placeholder: '请选择店铺'
|
|
31092
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
31093
|
+
mode: 'multiple',
|
|
31094
|
+
maxTagCount: 1
|
|
31095
|
+
} : {}),
|
|
31096
|
+
disabled: disabled,
|
|
31097
|
+
labelInValue: true,
|
|
31098
|
+
value: showValue(ites.code),
|
|
31099
|
+
requestConfig: {
|
|
31100
|
+
filterInit: 'qp-code-in'
|
|
31101
|
+
},
|
|
31102
|
+
onChange: function onChange(value) {
|
|
31103
|
+
handleEdit(ites.code, value);
|
|
31104
|
+
},
|
|
31105
|
+
getPopupContainer: function getPopupContainer() {
|
|
31106
|
+
return document.body;
|
|
31107
|
+
}
|
|
31108
|
+
}) || 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) === 270 && /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
31109
|
+
selectBusinessType: "employee2",
|
|
31110
|
+
selectProps: _objectSpread2({
|
|
31111
|
+
style: styleCommon,
|
|
31112
|
+
placeholder: '请选择员工'
|
|
31113
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
31114
|
+
mode: 'multiple',
|
|
31115
|
+
maxTagCount: 1
|
|
31116
|
+
} : {}),
|
|
31117
|
+
disabled: disabled,
|
|
31118
|
+
labelInValue: true,
|
|
31119
|
+
value: showValue(ites.code),
|
|
31120
|
+
requestConfig: {
|
|
31121
|
+
filterInit: 'qp-id-in'
|
|
31122
|
+
},
|
|
31123
|
+
onChange: function onChange(value) {
|
|
31124
|
+
handleEdit(ites.code, value);
|
|
31125
|
+
},
|
|
31126
|
+
getPopupContainer: function getPopupContainer() {
|
|
31127
|
+
return document.body;
|
|
31128
|
+
}
|
|
31129
|
+
}) || 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) === 280 && /*#__PURE__*/React.createElement(BusinessTreeSearchSelect$1, {
|
|
31130
|
+
disabled: disabled,
|
|
31131
|
+
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
31132
|
+
businessType: "stock-organization",
|
|
31133
|
+
labelInValue: true,
|
|
31134
|
+
value: showValue(ites.code),
|
|
31135
|
+
style: styleCommon,
|
|
31136
|
+
onChange: function onChange(value) {
|
|
31137
|
+
handleEdit(ites.code, value);
|
|
31138
|
+
},
|
|
31139
|
+
getPopupContainer: function getPopupContainer() {
|
|
31140
|
+
return document.body;
|
|
31141
|
+
}
|
|
31142
|
+
}) || 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, {
|
|
31143
|
+
disabled: disabled,
|
|
31144
|
+
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
31145
|
+
businessType: "settle-organization",
|
|
31146
|
+
labelInValue: true,
|
|
31147
|
+
value: showValue(ites.code),
|
|
31148
|
+
style: styleCommon,
|
|
31149
|
+
onChange: function onChange(value) {
|
|
31150
|
+
handleEdit(ites.code, value);
|
|
31151
|
+
},
|
|
31152
|
+
getPopupContainer: function getPopupContainer() {
|
|
31153
|
+
return document.body;
|
|
31154
|
+
}
|
|
31155
|
+
}) || 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, {
|
|
31156
|
+
selectBusinessType: "deliveryMode",
|
|
31157
|
+
selectProps: _objectSpread2({
|
|
31158
|
+
style: styleCommon,
|
|
31159
|
+
placeholder: '请选择配送方式'
|
|
31160
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
31161
|
+
mode: 'multiple',
|
|
31162
|
+
maxTagCount: 1
|
|
31163
|
+
} : {}),
|
|
31164
|
+
disabled: disabled,
|
|
31165
|
+
labelInValue: true,
|
|
31166
|
+
value: showValue(ites.code),
|
|
31167
|
+
requestConfig: {
|
|
31168
|
+
filterInit: 'qp-code-in'
|
|
31169
|
+
},
|
|
31170
|
+
onChange: function onChange(value) {
|
|
31171
|
+
handleEdit(ites.code, value);
|
|
31172
|
+
},
|
|
31173
|
+
getPopupContainer: function getPopupContainer() {
|
|
31174
|
+
return document.body;
|
|
31175
|
+
}
|
|
31176
|
+
}) || 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, {
|
|
31177
|
+
selectBusinessType: "role",
|
|
31178
|
+
selectProps: _objectSpread2({
|
|
31179
|
+
style: styleCommon,
|
|
31180
|
+
placeholder: '请选择角色'
|
|
31181
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
31182
|
+
mode: 'multiple',
|
|
31183
|
+
maxTagCount: 1
|
|
31184
|
+
} : {}),
|
|
31185
|
+
disabled: disabled,
|
|
31186
|
+
labelInValue: true,
|
|
31187
|
+
value: showValue(ites.code),
|
|
31188
|
+
requestConfig: {
|
|
31189
|
+
filterInit: 'qp-code-in'
|
|
31190
|
+
},
|
|
31191
|
+
onChange: function onChange(value) {
|
|
31192
|
+
handleEdit(ites.code, value);
|
|
31193
|
+
},
|
|
31194
|
+
getPopupContainer: function getPopupContainer() {
|
|
31195
|
+
return document.body;
|
|
31196
|
+
}
|
|
31197
|
+
}) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && /*#__PURE__*/React.createElement("div", {
|
|
31198
|
+
style: {
|
|
31199
|
+
display: 'flex'
|
|
31200
|
+
}
|
|
31201
|
+
}, /*#__PURE__*/React.createElement(App$1, {
|
|
31202
|
+
disabled: disabled,
|
|
31203
|
+
key: showValue(ites.code),
|
|
31204
|
+
setValue: function setValue(val, formulaName) {
|
|
31205
|
+
console.log(val, 'val');
|
|
31206
|
+
var value = val.map(function (item) {
|
|
31207
|
+
return item.value.replace(/[a-zA-Z_]+\.\w+/g, function (i) {
|
|
31208
|
+
return '{' + i + '}';
|
|
31209
|
+
});
|
|
31210
|
+
});
|
|
31211
|
+
handleEdit(ites.code, value.join(''));
|
|
31212
|
+
handleEdit({
|
|
31213
|
+
inputType: 40,
|
|
31214
|
+
formulaName: formulaName
|
|
31215
|
+
});
|
|
31216
|
+
},
|
|
31217
|
+
record: {
|
|
31218
|
+
expression: showValue(ites.code)
|
|
31219
|
+
},
|
|
31220
|
+
sourceData: fieldListGroup
|
|
31221
|
+
})));
|
|
31222
|
+
};
|
|
31223
|
+
_this.renderFormCompItem = function (config, showValue, handleEdit, parentItem, boxStyle, disabled) {
|
|
31772
31224
|
if (!config) return;
|
|
31773
31225
|
return /*#__PURE__*/React.createElement("div", {
|
|
31774
31226
|
style: boxStyle
|
|
@@ -31786,21 +31238,15 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
31786
31238
|
}
|
|
31787
31239
|
}, /*#__PURE__*/React.createElement("span", {
|
|
31788
31240
|
className: "requiredMark"
|
|
31789
|
-
})) || null,
|
|
31790
|
-
|
|
31791
|
-
|
|
31792
|
-
|
|
31793
|
-
|
|
31794
|
-
|
|
31795
|
-
|
|
31796
|
-
|
|
31797
|
-
|
|
31798
|
-
var c = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : parentItem;
|
|
31799
|
-
var d = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : config;
|
|
31800
|
-
return _handleEdit(a, b, c, d);
|
|
31801
|
-
},
|
|
31802
|
-
disabled: disabled
|
|
31803
|
-
}), (config === null || config === void 0 ? void 0 : config.rightText) && /*#__PURE__*/React.createElement("div", {
|
|
31241
|
+
})) || null, _this.renderCompItem(config, function (a, b) {
|
|
31242
|
+
var c = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : parentItem;
|
|
31243
|
+
var d = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : config;
|
|
31244
|
+
return showValue(a, b, c, d);
|
|
31245
|
+
}, function (a, b) {
|
|
31246
|
+
var c = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : parentItem;
|
|
31247
|
+
var d = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : config;
|
|
31248
|
+
return handleEdit(a, b, c, d);
|
|
31249
|
+
}, disabled), (config === null || config === void 0 ? void 0 : config.rightText) && /*#__PURE__*/React.createElement("div", {
|
|
31804
31250
|
style: {
|
|
31805
31251
|
flex: 'none',
|
|
31806
31252
|
marginLeft: 10
|