@bit-sun/business-component 4.0.12-alpha.9 → 4.0.13-alpha.11
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/BsSulaQueryTable/utils.d.ts +1 -1
- package/dist/components/Business/PropertyModal/index.d.ts +23 -0
- package/dist/components/Business/PropertyModal/mockData.d.ts +10 -0
- package/dist/components/Business/PropertyModal/propertyGroup.d.ts +4 -0
- package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +4 -0
- package/dist/components/Functional/QueryMutipleSelect/index.d.ts +5 -0
- package/dist/components/Functional/SearchSelect/utils.d.ts +18 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.esm.js +1635 -635
- package/dist/index.js +1632 -630
- package/package.json +4 -3
- package/src/components/Business/BsSulaQueryTable/setting.tsx +3 -3
- package/src/components/Business/BsSulaQueryTable/utils.tsx +6 -4
- package/src/components/Business/PropertyModal/index.less +58 -0
- package/src/components/Business/PropertyModal/index.md +33 -0
- package/src/components/Business/PropertyModal/index.tsx +271 -0
- package/src/components/Business/PropertyModal/mockData.ts +160 -0
- package/src/components/Business/PropertyModal/propertyGroup.tsx +205 -0
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +60 -3
- package/src/components/Business/SearchSelect/index.md +4 -5
- package/src/components/Business/columnSettingTable/columnSetting.tsx +2 -1
- package/src/components/Business/columnSettingTable/components/TableSumComponent.tsx +25 -0
- package/src/components/Business/columnSettingTable/components/style.less +25 -0
- package/src/components/Business/columnSettingTable/index.tsx +3 -28
- package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +2 -27
- package/src/components/Functional/DataValidation/index.tsx +1 -0
- package/src/components/Functional/QueryMutipleSelect/index.less +117 -0
- package/src/components/Functional/QueryMutipleSelect/index.md +40 -0
- package/src/components/Functional/QueryMutipleSelect/index.tsx +242 -0
- package/src/components/Functional/SearchSelect/index.less +45 -7
- package/src/components/Functional/SearchSelect/index.tsx +85 -303
- package/src/components/Functional/SearchSelect/utils.tsx +439 -0
- package/src/components/Solution/RuleComponent/ruleFiled.js +93 -93
- package/src/index.ts +2 -0
- package/src/components/Functional/SearchSelect/utils.ts +0 -38
package/dist/index.esm.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
2
|
import request$1 from 'umi-request';
|
|
3
3
|
import cookie from 'js-cookie';
|
|
4
|
-
import { message as message$1, Tooltip, Image, Popover, Card, Avatar, Badge, Menu, Input, InputNumber, Space, Button, Dropdown, Upload, Checkbox, Modal, ConfigProvider, Select, Form, Table,
|
|
5
|
-
import _, {
|
|
4
|
+
import { message as message$1, Tooltip, Image, Popover, Card, Avatar, Badge, Menu, Input, InputNumber, Space, Button, Dropdown, Upload, Checkbox, Modal, ConfigProvider, Tag, Select, Spin, Form, Table, Row, Col, Tabs, TreeSelect, Typography, Alert, Breadcrumb, Drawer as Drawer$1, List, Radio, Tree, Result, Affix, Cascader, DatePicker, TimePicker, Divider, Switch, Collapse } from 'antd';
|
|
5
|
+
import _, { omit, uniqBy, escapeRegExp, isNil, debounce, cloneDeep as cloneDeep$1, throttle, isEmpty } from 'lodash';
|
|
6
6
|
import memoizeOne from 'memoize-one';
|
|
7
7
|
import { formatMessage, history, useLocation, Link, useModel, setLocale, useIntl, request as request$3 } from 'umi';
|
|
8
8
|
import isEqual from 'lodash/isEqual';
|
|
9
|
-
import React$1, { useState, useEffect, forwardRef, useImperativeHandle,
|
|
9
|
+
import React$1, { useState, useEffect, useRef, forwardRef, useImperativeHandle, useMemo, Component, Fragment, useLayoutEffect, createRef } from 'react';
|
|
10
|
+
import { renderToString as renderToString$1 } from 'react-dom/server';
|
|
10
11
|
import moment$1 from 'moment';
|
|
11
|
-
import { EyeOutlined, DeleteOutlined, EditOutlined, CopyOutlined, CloseSquareOutlined, WarningOutlined, SendOutlined, ProfileTwoTone, ExclamationCircleOutlined, DownOutlined, UnorderedListOutlined, SearchOutlined, CloseCircleOutlined, DownCircleFilled, ArrowLeftOutlined, FolderOutlined, EllipsisOutlined,
|
|
12
|
+
import { EyeOutlined, DeleteOutlined, EditOutlined, CopyOutlined, CloseSquareOutlined, WarningOutlined, SendOutlined, ProfileTwoTone, ExclamationCircleOutlined, DownOutlined, UnorderedListOutlined, DashOutlined, CaretUpOutlined, CaretDownOutlined, SearchOutlined, CloseCircleOutlined, DownCircleFilled, ArrowLeftOutlined, FolderOutlined, EllipsisOutlined, HomeOutlined, DoubleLeftOutlined, DoubleRightOutlined, MenuUnfoldOutlined, CaretLeftOutlined, SettingOutlined, BulbOutlined, PlayCircleOutlined, SaveOutlined, FullscreenExitOutlined, MinusCircleOutlined, PlusCircleOutlined } from '@ant-design/icons';
|
|
12
13
|
import { request as request$2, Table as Table$1, QueryTable, Form as Form$1 } from 'bssula';
|
|
13
14
|
import 'qs';
|
|
14
15
|
import { utils, writeFile, read } from 'xlsx';
|
|
@@ -1187,10 +1188,8 @@ var authFn = function authFn(code) {
|
|
|
1187
1188
|
};
|
|
1188
1189
|
// 可以将普通字符串 或者tsx 转换成字符串
|
|
1189
1190
|
var renderToString = function renderToString(render) {
|
|
1190
|
-
return render;
|
|
1191
|
-
|
|
1192
|
-
// ? render
|
|
1193
|
-
// : ReactDOMServer.renderToString(render);
|
|
1191
|
+
// return render;
|
|
1192
|
+
return typeof render === 'string' ? render : renderToString$1(render);
|
|
1194
1193
|
};
|
|
1195
1194
|
|
|
1196
1195
|
function downloadExcel(data, fileName, isResUrl) {
|
|
@@ -3242,7 +3241,11 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3242
3241
|
placement: "bottomLeft"
|
|
3243
3242
|
}, /*#__PURE__*/React$1.createElement("a", null, /*#__PURE__*/React$1.createElement(ProfileTwoTone, null))), /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
3244
3243
|
title: /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("span", null, "\u4F7F\u7528\u6307\u5357\uFF1A"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "1\u3001\u62D6\u52A8\u6570\u636E\u9879\uFF0C\u4EE5\u9002\u914D\u6E90\u6570\u636E\u7684\u987A\u5E8F\uFF0C\u5982\u60A8Excel\u4E2D\u6570\u636E\u6392\u5E8F\u4F9D\u6B21\u4E3A\u7F16\u7801\u3001\u4EF7\u683C\u548C\u6570\u91CF\uFF0C\u5219\u60A8\u4E5F\u53EF\u4EE5\u5C06\u6570\u636E\u9879\u7684\u987A\u5E8F\u8C03\u6574\u4E3A\u4E00\u81F4"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "2\u3001\u590D\u5236\u6587\u4EF6\u6570\u636E\uFF08\u591A\u5217\u4E00\u8D77\uFF09\uFF0C\u5728\u6587\u672C\u6846\u5185\u8FDB\u884C\u7C98\u8D34"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "3\u3001\u70B9\u51FB\u8BC6\u522B\u6309\u94AE\u8FDB\u884C\u6570\u636E\u6821\u9A8C\uFF0C\u5982\u5168\u90E8\u6B63\u786E\uFF0C\u5219\u70B9\u51FB\u5F55\u5165\u6309\u94AE\u53EF\u5F55\u5165\u6570\u636E\uFF0C\u5982\u5B58\u5728\u9519\u8BEF\u6570\u636E\uFF0C\u5219\u9700\u4FEE\u6539\u540E\u518D\u8FDB\u884C\u5F55\u5165"))
|
|
3245
|
-
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))
|
|
3244
|
+
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null)), /*#__PURE__*/React$1.createElement("div", {
|
|
3245
|
+
style: {
|
|
3246
|
+
color: 'red'
|
|
3247
|
+
}
|
|
3248
|
+
}, "\uFF08\u9F20\u6807\u79FB\u5165\u611F\u53F9\u53F7\u56FE\u6807\u67E5\u770B\u5BFC\u5165\u4F7F\u7528\u8BF4\u660E\uFF09")), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (/*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3246
3249
|
trigger: ['click'],
|
|
3247
3250
|
overlay: this.menuList,
|
|
3248
3251
|
placement: "bottomRight"
|
|
@@ -4075,7 +4078,7 @@ function ToCDB(str) {
|
|
|
4075
4078
|
return tmp;
|
|
4076
4079
|
}
|
|
4077
4080
|
|
|
4078
|
-
var css_248z$5 = ".
|
|
4081
|
+
var css_248z$5 = ".query_select .ant-select-selector {\n height: 24px;\n overflow: hidden;\n}\n.query_select .ant-select-selector .ant-select-selection-overflow {\n height: 40px;\n flex-wrap: nowrap;\n overflow-x: auto;\n}\n.query_select .ant-select-selector .ant-select-selection-overflow-item {\n align-self: auto;\n}\n.query_select_show {\n display: flex;\n}\n.query_select_show .ant-select-clear {\n right: 33px;\n}\n.query_select_show .ant-select-multiple.ant-select-show-arrow .ant-select-selector,\n.query_select_show .ant-select-multiple.ant-select-allow-clear .ant-select-selector {\n padding-right: 28px;\n}\n.query_select_show .ant-select-dropdown {\n top: 24px !important;\n left: -110px !important;\n width: calc(100% + 110px) !important;\n}\n.query_select_expand_button {\n position: relative;\n right: -11px;\n width: 30px;\n border-left: 1px solid #d9d9d9;\n height: 24px;\n cursor: pointer;\n font-size: 12px;\n color: rgba(0, 0, 0, 0.85);\n}\n.query_select_expand_button span {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.query_select_expand_button:hover {\n background-color: #005cff;\n color: #fff;\n border-top-right-radius: 2px;\n border-bottom-right-radius: 2px;\n}\n.query_select_wrapper_top {\n color: #8E8E8E;\n}\n.query_select_textArea {\n margin-top: 10px;\n}\n.query_select_textArea .ant-input {\n height: 300px;\n background: #FAFAFA;\n border: 0.8px solid #E0E0E0;\n resize: none;\n border-radius: 0;\n}\n.multiInput_modal .ant-modal-header {\n height: 32px;\n padding: 0 16px;\n font-size: 12px;\n}\n.multiInput_modal .ant-modal-title {\n line-height: 32px;\n}\n.multiInput_modal .ant-modal-close-x {\n width: 32px;\n height: 32px;\n line-height: 32px;\n}\n.multiInput_modal .ant-modal-footer {\n padding-right: 8px;\n height: 44px;\n}\n.multiInput_modal .ant-modal-footer .ant-btn + .ant-btn:not(.ant-dropdown-trigger) {\n margin-left: 6px;\n}\n.multiInput_modal .ant-modal-footer .ant-btn {\n width: 56px;\n height: 28px;\n font-weight: 500;\n}\n.searchSelectMaxTagToolTip .ant-tooltip-inner {\n max-height: 72px;\n overflow-x: auto;\n padding: 0px;\n}\n.searchSelectMaxTagToolTip .ant-tag {\n display: flex;\n width: -moz-fit-content;\n width: fit-content;\n}\n";
|
|
4079
4082
|
styleInject(css_248z$5);
|
|
4080
4083
|
|
|
4081
4084
|
var columnsPerRow = 4; // 每行的列数
|
|
@@ -4083,6 +4086,12 @@ var ColSpan = 6; // 查询条件 每行col = 24 /columnsPerRow
|
|
|
4083
4086
|
var handleSourceName = function handleSourceName(sName) {
|
|
4084
4087
|
return sName;
|
|
4085
4088
|
};
|
|
4089
|
+
// 生成唯一值
|
|
4090
|
+
var makeUniqueValue = function makeUniqueValue() {
|
|
4091
|
+
var generateUnitKey = ((1 + Math.random()) * 0x10000 | 0).toString(16);
|
|
4092
|
+
return generateUnitKey;
|
|
4093
|
+
};
|
|
4094
|
+
// ------------------------------------------处理样式相关--开始----------------------------------------
|
|
4086
4095
|
var getFormRowInfo = function getFormRowInfo(list) {
|
|
4087
4096
|
var totalRows = Math.ceil(list.length / columnsPerRow); // 计算总行数
|
|
4088
4097
|
var lastRowColumns = (list.length + 1) % columnsPerRow; // 计算最后一行的实际列数
|
|
@@ -4111,6 +4120,22 @@ var hasMoreQueryFields = function hasMoreQueryFields(modalTableProps) {
|
|
|
4111
4120
|
var visibleFieldsCount = getVisibleFieldsCount(modalTableProps);
|
|
4112
4121
|
return visibleFieldsCount < (tableSearchForm === null || tableSearchForm === void 0 ? void 0 : tableSearchForm.length);
|
|
4113
4122
|
};
|
|
4123
|
+
var getTableHeigth = function getTableHeigth(list) {
|
|
4124
|
+
var totalRows = Math.ceil(((list === null || list === void 0 ? void 0 : list.length) + 1) / 4);
|
|
4125
|
+
if (totalRows == 1) return 358; // modal弹窗760 调整为700 适应小屏
|
|
4126
|
+
return 411 - totalRows * 10;
|
|
4127
|
+
};
|
|
4128
|
+
// ------------------------------------------处理样式相关--结束----------------------------------------
|
|
4129
|
+
// ------------------------------------------处理数据相关--开始----------------------------------------
|
|
4130
|
+
var formatSelectedValue = function formatSelectedValue(value) {
|
|
4131
|
+
return (value === null || value === void 0 ? void 0 : value.map(function (s) {
|
|
4132
|
+
return {
|
|
4133
|
+
value: (s === null || s === void 0 ? void 0 : s.value) || s,
|
|
4134
|
+
key: (s === null || s === void 0 ? void 0 : s.key) || (s === null || s === void 0 ? void 0 : s.value) || s,
|
|
4135
|
+
label: (s === null || s === void 0 ? void 0 : s.label) || ''
|
|
4136
|
+
};
|
|
4137
|
+
})) || [];
|
|
4138
|
+
};
|
|
4114
4139
|
var getRealStr = function getRealStr(oldSelect, newSelect, record) {
|
|
4115
4140
|
return (oldSelect === null || oldSelect === void 0 ? void 0 : oldSelect.length) ? oldSelect.some(function (o) {
|
|
4116
4141
|
return o.value == (record === null || record === void 0 ? void 0 : record.value);
|
|
@@ -4118,17 +4143,1097 @@ var getRealStr = function getRealStr(oldSelect, newSelect, record) {
|
|
|
4118
4143
|
return s.value != (record === null || record === void 0 ? void 0 : record.value);
|
|
4119
4144
|
}) : [].concat(_toConsumableArray(oldSelect), _toConsumableArray(newSelect)) : newSelect;
|
|
4120
4145
|
};
|
|
4121
|
-
var
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4146
|
+
var getCurrentSRKs = function getCurrentSRKs(selectMode, labelInValue, value) {
|
|
4147
|
+
return selectMode ? labelInValue ? value === null || value === void 0 ? void 0 : value.map(function (s) {
|
|
4148
|
+
return (s === null || s === void 0 ? void 0 : s.value) || s;
|
|
4149
|
+
}) : value : labelInValue ? (value === null || value === void 0 ? void 0 : value.value) && [value === null || value === void 0 ? void 0 : value.value] || [] : value && [value] || [];
|
|
4150
|
+
};
|
|
4151
|
+
var getRenderSource = function getRenderSource(currentSRKs, items) {
|
|
4152
|
+
// 判空处理
|
|
4153
|
+
if (!(currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.length)) return items || [];
|
|
4154
|
+
// 创建映射对象 用于记录原始选中顺序
|
|
4155
|
+
var orderMap = new Map();
|
|
4156
|
+
currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.forEach(function (value, index) {
|
|
4157
|
+
orderMap.set(value, index);
|
|
4158
|
+
});
|
|
4159
|
+
// 被选中数据集合,获取之后排序
|
|
4160
|
+
var selectedOption = (items === null || items === void 0 ? void 0 : items.filter(function (option) {
|
|
4161
|
+
return currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.includes(option.value);
|
|
4162
|
+
})) || [];
|
|
4163
|
+
var selectedOptionSort = (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.sort(function (a, b) {
|
|
4164
|
+
var _orderMap$get, _orderMap$get2;
|
|
4165
|
+
return ((_orderMap$get = orderMap.get(a.value)) !== null && _orderMap$get !== void 0 ? _orderMap$get : Infinity) - ((_orderMap$get2 = orderMap.get(b.value)) !== null && _orderMap$get2 !== void 0 ? _orderMap$get2 : Infinity);
|
|
4166
|
+
})) || [];
|
|
4167
|
+
// 未选中数据集合
|
|
4168
|
+
var otherOptions = (items === null || items === void 0 ? void 0 : items.filter(function (option) {
|
|
4169
|
+
return !(currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.includes(option.value));
|
|
4170
|
+
})) || [];
|
|
4171
|
+
return [].concat(_toConsumableArray(selectedOptionSort), _toConsumableArray(otherOptions));
|
|
4172
|
+
};
|
|
4173
|
+
// ------------------------------------------处理数据相关--结束----------------------------------------
|
|
4174
|
+
// ------------------------------------------查询 & 数据源 相关处理--开始----------------------------------------
|
|
4175
|
+
var handleParams = function handleParams(params) {
|
|
4176
|
+
var _loop = function _loop() {
|
|
4177
|
+
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
4178
|
+
var element = params[key];
|
|
4179
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
4180
|
+
var dataParams = key.split('*number*');
|
|
4181
|
+
dataParams.forEach(function (value, index) {
|
|
4182
|
+
params[value] = element[index];
|
|
4183
|
+
});
|
|
4184
|
+
delete params[key];
|
|
4185
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
4186
|
+
var _dataParams = key.split('*address*');
|
|
4187
|
+
_dataParams.forEach(function (value, index) {
|
|
4188
|
+
params[value] = element.PCDCode[index];
|
|
4189
|
+
});
|
|
4190
|
+
delete params[key];
|
|
4191
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
4192
|
+
var _dataParams2 = key.split('*costType*');
|
|
4193
|
+
// eslint-disable-next-line prefer-destructuring
|
|
4194
|
+
params[_dataParams2[0]] = element[1];
|
|
4195
|
+
delete params[key];
|
|
4196
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
4197
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
4198
|
+
_dataParams3.forEach(function (value, index) {
|
|
4199
|
+
if (index === 0) {
|
|
4200
|
+
params[value] = moment$1(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
4201
|
+
} else {
|
|
4202
|
+
params[value] = moment$1(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
4203
|
+
}
|
|
4204
|
+
});
|
|
4205
|
+
delete params[key];
|
|
4206
|
+
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
4207
|
+
var _dataParams4 = key.split('*checkBox*');
|
|
4208
|
+
if (element) {
|
|
4209
|
+
params[_dataParams4[0]] = 0;
|
|
4210
|
+
}
|
|
4211
|
+
delete params[key];
|
|
4212
|
+
} else if (element && key.indexOf('*cascader*') >= 0) {
|
|
4213
|
+
var _dataParams5 = key.split('*cascader*');
|
|
4214
|
+
params[_dataParams5[0]] = element[element.length - 1];
|
|
4215
|
+
delete params[key];
|
|
4216
|
+
} else if (element && key.indexOf('*date*') >= 0) {
|
|
4217
|
+
var _dataParams6 = key.split('*date*');
|
|
4218
|
+
_dataParams6.forEach(function (value, index) {
|
|
4219
|
+
if (index === 0) {
|
|
4220
|
+
params[value] = moment$1(element[index]).format('YYYY-MM-DD');
|
|
4221
|
+
} else {
|
|
4222
|
+
params[value] = moment$1(element[index]).format('YYYY-MM-DD');
|
|
4223
|
+
}
|
|
4224
|
+
});
|
|
4225
|
+
delete params[key];
|
|
4226
|
+
} else if (element && key.indexOf('*multiInput') >= 0) {
|
|
4227
|
+
var name = '',
|
|
4228
|
+
value = element['value'];
|
|
4229
|
+
if (value.indexOf(',') >= 0) {
|
|
4230
|
+
name = "qp-".concat(element['name'], "-in");
|
|
4231
|
+
} else {
|
|
4232
|
+
name = "qp-".concat(element['name'], "-like");
|
|
4233
|
+
}
|
|
4234
|
+
params[name] = value;
|
|
4235
|
+
delete params[key];
|
|
4236
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
4237
|
+
var _dataParams7 = key.split('*');
|
|
4238
|
+
_dataParams7.forEach(function (value, index) {
|
|
4239
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
4240
|
+
});
|
|
4241
|
+
delete params[key];
|
|
4242
|
+
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
4243
|
+
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
4244
|
+
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
4245
|
+
if (params[key][0] === 'range') {
|
|
4246
|
+
if (params[key][1][0]) {
|
|
4247
|
+
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
4248
|
+
}
|
|
4249
|
+
if (params[key][1][1]) {
|
|
4250
|
+
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
4251
|
+
}
|
|
4252
|
+
} else {
|
|
4253
|
+
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
4254
|
+
}
|
|
4255
|
+
delete params[key];
|
|
4256
|
+
} else if (Array.isArray(element)) {
|
|
4257
|
+
params[key] = element.join(',');
|
|
4258
|
+
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
4259
|
+
delete params[key];
|
|
4260
|
+
}
|
|
4261
|
+
}
|
|
4262
|
+
};
|
|
4263
|
+
for (var key in params) {
|
|
4264
|
+
_loop();
|
|
4265
|
+
}
|
|
4266
|
+
};
|
|
4267
|
+
//处理单据编号查询 如果是查询单条数据 就是模糊查询 两条以上就是精准查询
|
|
4268
|
+
var convertOrderNo = function convertOrderNo(params) {
|
|
4269
|
+
//需要处理得编号字段名
|
|
4270
|
+
var arr = ['qp-skuCode-in', 'qp-eancode-in', 'qp-itemCode-in'];
|
|
4271
|
+
for (var i = 0; i < arr.length; i++) {
|
|
4272
|
+
if (params[arr[i]]) {
|
|
4273
|
+
if (!params[arr[i]].includes(',')) {
|
|
4274
|
+
params[arr[i].replace(/(.*)in/, '$1like')] = params[arr[i]];
|
|
4275
|
+
delete params[arr[i]];
|
|
4276
|
+
}
|
|
4277
|
+
}
|
|
4278
|
+
}
|
|
4279
|
+
return params;
|
|
4280
|
+
};
|
|
4281
|
+
var convertQueryParams = function convertQueryParams(params) {
|
|
4282
|
+
var result = convertOrderNo(params);
|
|
4283
|
+
return omit(result, ['UNIQUE_SPEC']); // 处理sku选择器属性参数
|
|
4284
|
+
};
|
|
4285
|
+
var convertUrlQueryParams = function convertUrlQueryParams(params) {
|
|
4286
|
+
// 非query请求:默认参数拼接URL,设置属性noUrlQueryParams可不拼接
|
|
4287
|
+
return (params === null || params === void 0 ? void 0 : params.noUrlQueryParams) ? '' : "?".concat(stringify(convertQueryParams(params)));
|
|
4288
|
+
};
|
|
4289
|
+
var convertBodyParams = function convertBodyParams(params) {
|
|
4290
|
+
// 处理sku选择器属性参数
|
|
4291
|
+
var unique_params = null;
|
|
4292
|
+
if (params['UNIQUE_SPEC']) {
|
|
4293
|
+
var _params$UNIQUE_SPEC;
|
|
4294
|
+
unique_params = ((_params$UNIQUE_SPEC = params['UNIQUE_SPEC']) === null || _params$UNIQUE_SPEC === void 0 ? void 0 : _params$UNIQUE_SPEC.propertyList) || [];
|
|
4295
|
+
}
|
|
4296
|
+
// body参数来源:sku选择器固定参数 > 调用所传bodyParams > 默认参数-无
|
|
4297
|
+
return unique_params || (params === null || params === void 0 ? void 0 : params.bodyParams) || null;
|
|
4298
|
+
};
|
|
4299
|
+
var convertRes = function convertRes(data, otherParams) {
|
|
4300
|
+
var mappingTextField = otherParams.mappingTextField,
|
|
4301
|
+
mappingTextShowTextField = otherParams.mappingTextShowTextField,
|
|
4302
|
+
mappingTextShowKeyField = otherParams.mappingTextShowKeyField,
|
|
4303
|
+
mappingValueField = otherParams.mappingValueField,
|
|
4304
|
+
specialBracket = otherParams.specialBracket,
|
|
4305
|
+
type = otherParams.type,
|
|
4306
|
+
queryParams = otherParams.queryParams;
|
|
4307
|
+
return data.map(function (item, index) {
|
|
4308
|
+
var _item$children;
|
|
4309
|
+
var textShowText = item[mappingTextField];
|
|
4310
|
+
if (mappingTextShowTextField) {
|
|
4311
|
+
textShowText = [];
|
|
4312
|
+
if (Array.isArray(mappingTextShowTextField)) {
|
|
4313
|
+
mappingTextShowTextField.forEach(function (r) {
|
|
4314
|
+
textShowText.push(item[r]);
|
|
4315
|
+
});
|
|
4316
|
+
} else {
|
|
4317
|
+
textShowText = item[mappingTextShowTextField];
|
|
4318
|
+
}
|
|
4319
|
+
}
|
|
4320
|
+
if (!(item === null || item === void 0 ? void 0 : (_item$children = item.children) === null || _item$children === void 0 ? void 0 : _item$children.length)) {
|
|
4321
|
+
item === null || item === void 0 ? true : delete item.children;
|
|
4322
|
+
}
|
|
4323
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
4324
|
+
text: specialBracket ? "\u3010".concat(item[mappingValueField], "\u3011").concat(item[mappingTextField]) : item[mappingTextField],
|
|
4325
|
+
textShowText: textShowText,
|
|
4326
|
+
textShowKey: item[mappingTextShowKeyField || mappingValueField],
|
|
4327
|
+
value: item[mappingValueField]
|
|
4328
|
+
}, (queryParams === null || queryParams === void 0 ? void 0 : queryParams.pageSize) ? {
|
|
4329
|
+
keyIndex: type != 1 ? ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.currentPage) - 1) * (queryParams === null || queryParams === void 0 ? void 0 : queryParams.pageSize) + index + 1 : index + 1
|
|
4330
|
+
} : {});
|
|
4331
|
+
});
|
|
4332
|
+
};
|
|
4333
|
+
var convertResData = function convertResData(requestConfig, res, selectProps) {
|
|
4334
|
+
var isMap = requestConfig.isMap,
|
|
4335
|
+
mappingTextField = requestConfig.mappingTextField,
|
|
4336
|
+
mappingTextShowTextField = requestConfig.mappingTextShowTextField,
|
|
4337
|
+
specialBracket = requestConfig.specialBracket,
|
|
4338
|
+
mappingValueField = requestConfig.mappingValueField,
|
|
4339
|
+
mappingTextShowKeyField = requestConfig.mappingTextShowKeyField;
|
|
4340
|
+
var selectMode = selectProps.selectMode,
|
|
4341
|
+
labelInValue = selectProps.labelInValue,
|
|
4342
|
+
value = selectProps.value,
|
|
4343
|
+
type = selectProps.type,
|
|
4344
|
+
items = selectProps.items,
|
|
4345
|
+
queryParams = selectProps.queryParams,
|
|
4346
|
+
_selectProps$needTopS = selectProps.needTopSelectedSource,
|
|
4347
|
+
needTopSelectedSource = _selectProps$needTopS === void 0 ? true : _selectProps$needTopS;
|
|
4348
|
+
var otherParams = {
|
|
4349
|
+
mappingTextField: mappingTextField,
|
|
4350
|
+
mappingTextShowTextField: mappingTextShowTextField,
|
|
4351
|
+
mappingTextShowKeyField: mappingTextShowKeyField,
|
|
4352
|
+
mappingValueField: mappingValueField,
|
|
4353
|
+
specialBracket: specialBracket,
|
|
4354
|
+
type: type,
|
|
4355
|
+
queryParams: queryParams
|
|
4356
|
+
};
|
|
4357
|
+
var source = [];
|
|
4358
|
+
if (isMap) {
|
|
4359
|
+
source = Object.keys(res).map(function (d, i) {
|
|
4360
|
+
return {
|
|
4361
|
+
text: Object.values(res)[i],
|
|
4362
|
+
value: d
|
|
4363
|
+
};
|
|
4364
|
+
});
|
|
4365
|
+
} else {
|
|
4366
|
+
var keys = res.list ? 'list' : 'items';
|
|
4367
|
+
source = res ? res[keys] ? convertRes(res[keys], otherParams) : Array.isArray(res) && convertRes(res, otherParams) : [];
|
|
4368
|
+
}
|
|
4369
|
+
// 补充搜索项--选中的数据添加到数据源中去
|
|
4370
|
+
var currentSRKs = getCurrentSRKs(selectMode, labelInValue, value);
|
|
4371
|
+
if (needTopSelectedSource && type === 1 && (currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.length) && (currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.some(function (s) {
|
|
4372
|
+
var _source;
|
|
4373
|
+
return !((_source = source) === null || _source === void 0 ? void 0 : _source.find(function (r) {
|
|
4374
|
+
return r.value == s;
|
|
4375
|
+
}));
|
|
4376
|
+
}))) {
|
|
4377
|
+
var selectedOption = items.filter(function (option) {
|
|
4378
|
+
return currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.includes(option.value);
|
|
4379
|
+
}) || [];
|
|
4380
|
+
source = (source || []).concat(selectedOption);
|
|
4381
|
+
}
|
|
4382
|
+
// 数据源 不可以有重复key
|
|
4383
|
+
source = Array.isArray(source) ? uniqBy(source, 'value') : [];
|
|
4384
|
+
return source;
|
|
4385
|
+
};
|
|
4386
|
+
// ------------------------------------------查询 & 数据源 相关处理--结束----------------------------------------
|
|
4387
|
+
// ------------------------------------------ 数据源展示 相关处理--开始----------------------------------------
|
|
4388
|
+
var handleSelectOptionsShowValue = function handleSelectOptionsShowValue(specialBracket, noNeedSplit, item) {
|
|
4389
|
+
var showText = Array.isArray(item.textShowText) && item.textShowText.join(' ') || item.textShowText;
|
|
4390
|
+
if (noNeedSplit) {
|
|
4391
|
+
return item.text;
|
|
4392
|
+
} else {
|
|
4393
|
+
return specialBracket ? "\u3010".concat(item.textShowKey || '', "\u3011").concat(showText) : "".concat(item.textShowKey || '', " ").concat(showText);
|
|
4394
|
+
}
|
|
4395
|
+
};
|
|
4396
|
+
var LightHeightOption = function LightHeightOption(props) {
|
|
4397
|
+
var filterTxt = props.filterTxt,
|
|
4398
|
+
text = props.text,
|
|
4399
|
+
_props$needToolTips = props.needToolTips,
|
|
4400
|
+
needToolTips = _props$needToolTips === void 0 ? true : _props$needToolTips;
|
|
4401
|
+
var heightLightTxt = function heightLightTxt(text, heightTxt) {
|
|
4402
|
+
if (heightTxt === '') {
|
|
4403
|
+
return text;
|
|
4404
|
+
}
|
|
4405
|
+
var searchString = escapeRegExp(heightTxt);
|
|
4406
|
+
// 前面filterOption 不区分大小写,这里用i
|
|
4407
|
+
var regexp = new RegExp(searchString, 'gi');
|
|
4408
|
+
return text.replace(regexp, "<span style=\"color:red\">".concat(heightTxt, "</span>"));
|
|
4409
|
+
};
|
|
4410
|
+
var renderContent = /*#__PURE__*/React$1.createElement("div", {
|
|
4411
|
+
ref: function ref(nodeElement) {
|
|
4412
|
+
if (nodeElement) {
|
|
4413
|
+
nodeElement.innerHTML = heightLightTxt(text, filterTxt);
|
|
4414
|
+
}
|
|
4415
|
+
}
|
|
4416
|
+
});
|
|
4417
|
+
if (!needToolTips) return renderContent;
|
|
4418
|
+
return /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
4419
|
+
title: text
|
|
4420
|
+
}, renderContent);
|
|
4421
|
+
};
|
|
4422
|
+
var maxTagPlaceholder = function maxTagPlaceholder(selectedValues, _ref3) {
|
|
4423
|
+
var selectProps = _ref3.selectProps,
|
|
4424
|
+
onChange = _ref3.onChange,
|
|
4425
|
+
value = _ref3.value,
|
|
4426
|
+
setIsMaxTagsOpen = _ref3.setIsMaxTagsOpen;
|
|
4427
|
+
var labelInValue = selectProps.labelInValue;
|
|
4428
|
+
var _onClose = function onClose(e, item) {
|
|
4429
|
+
e.preventDefault();
|
|
4430
|
+
var newValue = labelInValue ? JSON.parse(JSON.stringify(value)).filter(function (i) {
|
|
4431
|
+
return i.value !== item.value;
|
|
4432
|
+
}) : JSON.parse(JSON.stringify(value)).filter(function (i) {
|
|
4433
|
+
return i !== item.value;
|
|
4434
|
+
});
|
|
4435
|
+
onChange(newValue);
|
|
4436
|
+
};
|
|
4437
|
+
return /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
4438
|
+
overlayClassName: 'searchSelectMaxTagToolTip',
|
|
4439
|
+
destroyTooltipOnHide: true,
|
|
4440
|
+
placement: "topRight",
|
|
4441
|
+
autoAdjustOverflow: false,
|
|
4442
|
+
title: (/*#__PURE__*/React$1.createElement("div", {
|
|
4443
|
+
style: {
|
|
4444
|
+
margin: '6px 8px 0px'
|
|
4445
|
+
},
|
|
4446
|
+
onMouseEnter: function onMouseEnter() {
|
|
4447
|
+
setIsMaxTagsOpen === null || setIsMaxTagsOpen === void 0 ? void 0 : setIsMaxTagsOpen(true);
|
|
4448
|
+
},
|
|
4449
|
+
onMouseLeave: function onMouseLeave() {
|
|
4450
|
+
setIsMaxTagsOpen === null || setIsMaxTagsOpen === void 0 ? void 0 : setIsMaxTagsOpen(false);
|
|
4451
|
+
}
|
|
4452
|
+
}, selectedValues.map(function (i) {
|
|
4453
|
+
return /*#__PURE__*/React$1.createElement(Tag, {
|
|
4454
|
+
closable: true,
|
|
4455
|
+
onClose: function onClose(e) {
|
|
4456
|
+
return _onClose(e, i);
|
|
4457
|
+
},
|
|
4458
|
+
style: {
|
|
4459
|
+
margin: '0px 3px 3px 0px',
|
|
4460
|
+
background: '#f5f5f5',
|
|
4461
|
+
height: '24px',
|
|
4462
|
+
border: '1px solid #f0f0f0'
|
|
4463
|
+
}
|
|
4464
|
+
}, i.label);
|
|
4465
|
+
})))
|
|
4466
|
+
}, "+ ".concat(selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.length));
|
|
4467
|
+
};
|
|
4468
|
+
// 弹窗数据表头处理
|
|
4469
|
+
var handleTableColumns = function handleTableColumns(tableColumns) {
|
|
4470
|
+
// 按照默认设置排序 > 没有排序字段的展示所有列表头 > 没有表头列不展示
|
|
4471
|
+
var showTableColumns = (tableColumns === null || tableColumns === void 0 ? void 0 : tableColumns.filter(function (s) {
|
|
4472
|
+
return typeof s.defaultSort == 'number';
|
|
4473
|
+
})) || tableColumns || [];
|
|
4474
|
+
return (showTableColumns === null || showTableColumns === void 0 ? void 0 : showTableColumns.sort(function (a, b) {
|
|
4475
|
+
return a.defaultSort - b.defaultSort;
|
|
4476
|
+
})) || [];
|
|
4477
|
+
};
|
|
4478
|
+
// ------------------------------------------ 数据源展示 相关处理--结束----------------------------------------
|
|
4479
|
+
// ------------------------------------------ 选中数据展示 相关处理--开始----------------------------------------
|
|
4480
|
+
var getShowLabelTextStr = function getShowLabelTextStr(_ref4) {
|
|
4481
|
+
var kongValue = _ref4.kongValue,
|
|
4482
|
+
selectMode = _ref4.selectMode,
|
|
4483
|
+
value = _ref4.value,
|
|
4484
|
+
items = _ref4.items;
|
|
4485
|
+
if (selectMode) {
|
|
4486
|
+
var _value$map;
|
|
4487
|
+
return Array.isArray(value) && (value === null || value === void 0 ? void 0 : (_value$map = value.map(function (item) {
|
|
4488
|
+
return item.label || item.text || '';
|
|
4489
|
+
})) === null || _value$map === void 0 ? void 0 : _value$map.join(',')) || kongValue;
|
|
4490
|
+
}
|
|
4491
|
+
return (value === null || value === void 0 ? void 0 : value.label) || (value === null || value === void 0 ? void 0 : value.text) || kongValue;
|
|
4492
|
+
};
|
|
4493
|
+
var getSelectValueText = function getSelectValueText(v, items) {
|
|
4494
|
+
var _filter, _filter$;
|
|
4495
|
+
return ((_filter = (items || []).filter(function (item) {
|
|
4496
|
+
return item.value === v;
|
|
4497
|
+
})) === null || _filter === void 0 ? void 0 : (_filter$ = _filter[0]) === null || _filter$ === void 0 ? void 0 : _filter$.text) || v || '';
|
|
4498
|
+
};
|
|
4499
|
+
var getShowValueStr = function getShowValueStr(_ref5) {
|
|
4500
|
+
var kongValue = _ref5.kongValue,
|
|
4501
|
+
selectMode = _ref5.selectMode,
|
|
4502
|
+
value = _ref5.value,
|
|
4503
|
+
items = _ref5.items;
|
|
4504
|
+
if (selectMode) {
|
|
4505
|
+
var _value$map2;
|
|
4506
|
+
return Array.isArray(value) && (value === null || value === void 0 ? void 0 : (_value$map2 = value.map(function (item) {
|
|
4507
|
+
return getSelectValueText(item, items);
|
|
4508
|
+
})) === null || _value$map2 === void 0 ? void 0 : _value$map2.join(',')) || kongValue;
|
|
4509
|
+
}
|
|
4510
|
+
return getSelectValueText(value, items) || kongValue;
|
|
4511
|
+
};
|
|
4512
|
+
var getShowStr = function getShowStr(_ref6) {
|
|
4513
|
+
var viewShowValueStr = _ref6.viewShowValueStr,
|
|
4514
|
+
labelInValue = _ref6.labelInValue,
|
|
4515
|
+
selectMode = _ref6.selectMode,
|
|
4516
|
+
value = _ref6.value,
|
|
4517
|
+
items = _ref6.items;
|
|
4518
|
+
// 优先使用业务使用传入的展示
|
|
4519
|
+
if (viewShowValueStr) return viewShowValueStr;
|
|
4520
|
+
var kongValue = '无';
|
|
4521
|
+
// 先判断labelInValue与否,labelInValue可以直接去value中获取字段名称,否则去下拉框数据里面去拿;
|
|
4522
|
+
// 再判断是单选还是多选,数据类型不同取值方式也不同
|
|
4523
|
+
if (labelInValue) {
|
|
4524
|
+
return getShowLabelTextStr({
|
|
4525
|
+
kongValue: kongValue,
|
|
4526
|
+
selectMode: selectMode,
|
|
4527
|
+
value: value,
|
|
4528
|
+
items: items
|
|
4529
|
+
});
|
|
4530
|
+
}
|
|
4531
|
+
return getShowValueStr({
|
|
4532
|
+
kongValue: kongValue,
|
|
4533
|
+
selectMode: selectMode,
|
|
4534
|
+
value: value,
|
|
4535
|
+
items: items
|
|
4536
|
+
});
|
|
4125
4537
|
};
|
|
4538
|
+
// ------------------------------------------ 选中数据展示 相关处理--结束---------------------------------------
|
|
4539
|
+
|
|
4540
|
+
var getValue = function getValue(value, selectMode) {
|
|
4541
|
+
var _value$split;
|
|
4542
|
+
return selectMode ? typeof value == 'string' && (value === null || value === void 0 ? void 0 : value.length) && (value === null || value === void 0 ? void 0 : (_value$split = value.split) === null || _value$split === void 0 ? void 0 : _value$split.call(value, ',')) || [] : value;
|
|
4543
|
+
};
|
|
4544
|
+
var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
4545
|
+
var onValueChange = _ref.onValueChange,
|
|
4546
|
+
_ref$requestConfig = _ref.requestConfig,
|
|
4547
|
+
requestConfig = _ref$requestConfig === void 0 ? {} : _ref$requestConfig,
|
|
4548
|
+
_ref$selectProps = _ref.selectProps,
|
|
4549
|
+
selectProps = _ref$selectProps === void 0 ? {} : _ref$selectProps,
|
|
4550
|
+
ctx = _ref.ctx;
|
|
4551
|
+
var filter = requestConfig.filter,
|
|
4552
|
+
_requestConfig$method = requestConfig.method,
|
|
4553
|
+
method = _requestConfig$method === void 0 ? 'get' : _requestConfig$method,
|
|
4554
|
+
url = requestConfig.url,
|
|
4555
|
+
_requestConfig$extral = requestConfig.extralHeaders,
|
|
4556
|
+
extralHeaders = _requestConfig$extral === void 0 ? {} : _requestConfig$extral,
|
|
4557
|
+
_requestConfig$otherP = requestConfig.otherParams,
|
|
4558
|
+
otherParams = _requestConfig$otherP === void 0 ? {} : _requestConfig$otherP,
|
|
4559
|
+
_requestConfig$specia = requestConfig.specialBracket,
|
|
4560
|
+
specialBracket = _requestConfig$specia === void 0 ? false : _requestConfig$specia,
|
|
4561
|
+
_requestConfig$noNeed = requestConfig.noNeedSplit,
|
|
4562
|
+
noNeedSplit = _requestConfig$noNeed === void 0 ? false : _requestConfig$noNeed;
|
|
4563
|
+
var selectParamsKey = filter || 'qp-codeAndName-like';
|
|
4564
|
+
var resultSourceKey = handleSourceName((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.sourceName) || (ctx === null || ctx === void 0 ? void 0 : ctx.name) || 'skuCode');
|
|
4565
|
+
var currentSelectProps = _objectSpread2({
|
|
4566
|
+
showArrow: true,
|
|
4567
|
+
showSearch: true,
|
|
4568
|
+
filterOption: false,
|
|
4569
|
+
allowClear: true,
|
|
4570
|
+
listHeight: 160,
|
|
4571
|
+
labelInValue: false,
|
|
4572
|
+
maxTagCount: 4
|
|
4573
|
+
}, selectProps);
|
|
4574
|
+
var selectMode = selectProps === null || selectProps === void 0 ? void 0 : selectProps.mode; // 设定当前选择器 为单选或者多选模式 无设定为单选模式(默认)
|
|
4575
|
+
var _useState = useState(false),
|
|
4576
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
4577
|
+
isModalVisible = _useState2[0],
|
|
4578
|
+
setIsModalVisible = _useState2[1];
|
|
4579
|
+
var _useState3 = useState(false),
|
|
4580
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
4581
|
+
open = _useState4[0],
|
|
4582
|
+
setOpen = _useState4[1];
|
|
4583
|
+
var _useState5 = useState(),
|
|
4584
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
4585
|
+
value = _useState6[0],
|
|
4586
|
+
setValue = _useState6[1];
|
|
4587
|
+
var _useState7 = useState(),
|
|
4588
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
4589
|
+
popvalue = _useState8[0],
|
|
4590
|
+
setPopValue = _useState8[1];
|
|
4591
|
+
var _useState9 = useState([]),
|
|
4592
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
4593
|
+
source = _useState10[0],
|
|
4594
|
+
setSource = _useState10[1];
|
|
4595
|
+
var _useDebounceFn = useDebounceFn(function () {
|
|
4596
|
+
getData();
|
|
4597
|
+
}, {
|
|
4598
|
+
wait: 1000
|
|
4599
|
+
}),
|
|
4600
|
+
run = _useDebounceFn.run;
|
|
4601
|
+
var _useState11 = useState(false),
|
|
4602
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
4603
|
+
fetching = _useState12[0],
|
|
4604
|
+
setFetching = _useState12[1];
|
|
4605
|
+
var _useState13 = useState(''),
|
|
4606
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
4607
|
+
searchValue = _useState14[0],
|
|
4608
|
+
setSearchValue = _useState14[1];
|
|
4609
|
+
var _useState15 = useState(resultSourceKey),
|
|
4610
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
4611
|
+
uniqueValue = _useState16[0],
|
|
4612
|
+
setUniqueValue = _useState16[1];
|
|
4613
|
+
useEffect(function () {
|
|
4614
|
+
setPopValue(value);
|
|
4615
|
+
onValueChange(value);
|
|
4616
|
+
}, [value]);
|
|
4617
|
+
useEffect(function () {
|
|
4618
|
+
setUniqueValue(makeUniqueValue());
|
|
4619
|
+
}, [resultSourceKey]);
|
|
4620
|
+
var showModal = function showModal() {
|
|
4621
|
+
setIsModalVisible(true);
|
|
4622
|
+
//弹窗打开时 默认搜索内容换行显示
|
|
4623
|
+
setPopValue(function (data) {
|
|
4624
|
+
return data === null || data === void 0 ? void 0 : data.replace(/,/g, '\n');
|
|
4625
|
+
});
|
|
4626
|
+
};
|
|
4627
|
+
var handleOk = function handleOk() {
|
|
4628
|
+
formaData(popvalue);
|
|
4629
|
+
setIsModalVisible(false);
|
|
4630
|
+
};
|
|
4631
|
+
var formaData = function formaData(v) {
|
|
4632
|
+
var _ToCDB, _ToCDB$split, _ToCDB$split$filter;
|
|
4633
|
+
var formatValue = (_ToCDB = ToCDB$1(v)) === null || _ToCDB === void 0 ? void 0 : (_ToCDB$split = _ToCDB.split(/[/\n/\s,;]/)) === null || _ToCDB$split === void 0 ? void 0 : (_ToCDB$split$filter = _ToCDB$split.filter(function (item) {
|
|
4634
|
+
return item;
|
|
4635
|
+
})) === null || _ToCDB$split$filter === void 0 ? void 0 : _ToCDB$split$filter.join(',');
|
|
4636
|
+
setValue(formatValue);
|
|
4637
|
+
};
|
|
4638
|
+
var handleCancel = function handleCancel() {
|
|
4639
|
+
setIsModalVisible(false);
|
|
4640
|
+
};
|
|
4641
|
+
var outerChange = function outerChange(v) {
|
|
4642
|
+
formaData(v);
|
|
4643
|
+
};
|
|
4644
|
+
var onChange = function onChange(e) {
|
|
4645
|
+
var v = e.target.value;
|
|
4646
|
+
setPopValue(v);
|
|
4647
|
+
};
|
|
4648
|
+
// 获取下拉框数据源-不分页
|
|
4649
|
+
var getData = function getData() {
|
|
4650
|
+
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
4651
|
+
var callback = arguments.length > 1 ? arguments[1] : undefined;
|
|
4652
|
+
if (!requestConfig) return;
|
|
4653
|
+
if (!url) return;
|
|
4654
|
+
setFetching(true);
|
|
4655
|
+
var queryParams = _objectSpread2(_objectSpread2({}, otherParams), params);
|
|
4656
|
+
if (isNil(queryParams[selectParamsKey])) {
|
|
4657
|
+
queryParams[selectParamsKey] = searchValue;
|
|
4658
|
+
}
|
|
4659
|
+
var getRequest;
|
|
4660
|
+
var methodName = method === null || method === void 0 ? void 0 : method.toLocaleLowerCase();
|
|
4661
|
+
if (['post', 'patch', 'put'].includes(methodName)) {
|
|
4662
|
+
getRequest = requestUtil[methodName]("".concat(url).concat(convertUrlQueryParams(queryParams)), convertBodyParams(queryParams));
|
|
4663
|
+
} else {
|
|
4664
|
+
getRequest = requestUtil.get("".concat(url).concat(convertUrlQueryParams(queryParams)), {
|
|
4665
|
+
headers: _objectSpread2({}, extralHeaders)
|
|
4666
|
+
});
|
|
4667
|
+
}
|
|
4668
|
+
if (!getRequest) return;
|
|
4669
|
+
getRequest.then(function (result) {
|
|
4670
|
+
setFetching(false);
|
|
4671
|
+
result = result.data;
|
|
4672
|
+
if (judgeIsRequestError(result)) {
|
|
4673
|
+
message$1.error(result.msg);
|
|
4674
|
+
return;
|
|
4675
|
+
}
|
|
4676
|
+
var res = result.data;
|
|
4677
|
+
var dSource = convertResData(requestConfig, res, {
|
|
4678
|
+
selectMode: selectMode,
|
|
4679
|
+
labelInValue: currentSelectProps === null || currentSelectProps === void 0 ? void 0 : currentSelectProps.labelInValue,
|
|
4680
|
+
value: value,
|
|
4681
|
+
type: 1,
|
|
4682
|
+
items: source,
|
|
4683
|
+
needTopSelectedSource: false
|
|
4684
|
+
});
|
|
4685
|
+
if (callback) {
|
|
4686
|
+
callback(source);
|
|
4687
|
+
} else {
|
|
4688
|
+
setSource(dSource);
|
|
4689
|
+
}
|
|
4690
|
+
}).catch(function (err) {
|
|
4691
|
+
setFetching(false);
|
|
4692
|
+
});
|
|
4693
|
+
};
|
|
4694
|
+
var onSearchChange = function onSearchChange(v) {
|
|
4695
|
+
setSearchValue(v);
|
|
4696
|
+
run();
|
|
4697
|
+
};
|
|
4698
|
+
return /*#__PURE__*/React$1.createElement("div", {
|
|
4699
|
+
className: 'query_select'
|
|
4700
|
+
}, /*#__PURE__*/React$1.createElement("div", {
|
|
4701
|
+
className: "query_select_show",
|
|
4702
|
+
id: "query_multiple_select_div_".concat(uniqueValue)
|
|
4703
|
+
}, /*#__PURE__*/React$1.createElement(Select, _objectSpread2({
|
|
4704
|
+
value: getValue(value, selectMode),
|
|
4705
|
+
onChange: outerChange,
|
|
4706
|
+
open: open,
|
|
4707
|
+
onBlur: function onBlur(v) {
|
|
4708
|
+
onSearchChange(v);
|
|
4709
|
+
setOpen(false);
|
|
4710
|
+
},
|
|
4711
|
+
onClick: function onClick() {
|
|
4712
|
+
return setOpen(true);
|
|
4713
|
+
},
|
|
4714
|
+
onPaste: function onPaste(e) {
|
|
4715
|
+
formaData(e.clipboardData.getData('text'));
|
|
4716
|
+
e.preventDefault();
|
|
4717
|
+
},
|
|
4718
|
+
onSearch: function onSearch(v) {
|
|
4719
|
+
return onSearchChange(v);
|
|
4720
|
+
},
|
|
4721
|
+
onSelect: function onSelect() {
|
|
4722
|
+
if (selectMode) return;
|
|
4723
|
+
setTimeout(function () {
|
|
4724
|
+
setOpen(false);
|
|
4725
|
+
}, 0);
|
|
4726
|
+
},
|
|
4727
|
+
style: {
|
|
4728
|
+
width: 'calc(100%)'
|
|
4729
|
+
},
|
|
4730
|
+
suffixIcon: /*#__PURE__*/React$1.createElement("div", {
|
|
4731
|
+
className: "query_select_expand_button",
|
|
4732
|
+
onClick: showModal
|
|
4733
|
+
}, /*#__PURE__*/React$1.createElement(DashOutlined, null)),
|
|
4734
|
+
placeholder: "\u8BF7\u9009\u62E9",
|
|
4735
|
+
maxTagPlaceholder: function maxTagPlaceholder$1(v) {
|
|
4736
|
+
return maxTagPlaceholder(v, {
|
|
4737
|
+
selectProps: currentSelectProps,
|
|
4738
|
+
onChange: outerChange,
|
|
4739
|
+
value: getValue(value, selectMode),
|
|
4740
|
+
setIsMaxTagsOpen: function setIsMaxTagsOpen() {}
|
|
4741
|
+
});
|
|
4742
|
+
},
|
|
4743
|
+
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
4744
|
+
size: "small",
|
|
4745
|
+
className: 'searchSelectSpin'
|
|
4746
|
+
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
4747
|
+
style: {
|
|
4748
|
+
textAlign: 'center'
|
|
4749
|
+
}
|
|
4750
|
+
}, /*#__PURE__*/React$1.createElement("div", null, searchValue ? '无匹配结果,请更换其他内容再试' : (selectProps === null || selectProps === void 0 ? void 0 : selectProps.notFoundText) || "\u8BF7\u5F55\u5165\u7F16\u7801/\u540D\u79F0\u6A21\u7CCA\u67E5\u8BE2"))),
|
|
4751
|
+
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
4752
|
+
return triggerNode.parentElement;
|
|
4753
|
+
}
|
|
4754
|
+
}, currentSelectProps), source.map(function (item) {
|
|
4755
|
+
return /*#__PURE__*/React$1.createElement(Select.Option, {
|
|
4756
|
+
key: item.value,
|
|
4757
|
+
label: item.text
|
|
4758
|
+
}, LightHeightOption({
|
|
4759
|
+
text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
|
|
4760
|
+
filterTxt: searchValue,
|
|
4761
|
+
needToolTips: false
|
|
4762
|
+
}));
|
|
4763
|
+
}))), /*#__PURE__*/React$1.createElement(Modal, {
|
|
4764
|
+
width: 600,
|
|
4765
|
+
title: "\u591A\u503C\u5F55\u5165",
|
|
4766
|
+
visible: isModalVisible,
|
|
4767
|
+
onOk: handleOk,
|
|
4768
|
+
onCancel: handleCancel,
|
|
4769
|
+
className: 'multiInput_modal',
|
|
4770
|
+
bodyStyle: {
|
|
4771
|
+
padding: '10px 16px'
|
|
4772
|
+
},
|
|
4773
|
+
footer: [/*#__PURE__*/React$1.createElement(ConfigProvider, {
|
|
4774
|
+
autoInsertSpaceInButton: false
|
|
4775
|
+
}, /*#__PURE__*/React$1.createElement(Button, {
|
|
4776
|
+
key: "back",
|
|
4777
|
+
onClick: handleCancel
|
|
4778
|
+
}, "\u53D6\u6D88")), /*#__PURE__*/React$1.createElement(ConfigProvider, {
|
|
4779
|
+
autoInsertSpaceInButton: false
|
|
4780
|
+
}, /*#__PURE__*/React$1.createElement(Button, {
|
|
4781
|
+
key: "submit",
|
|
4782
|
+
type: "primary",
|
|
4783
|
+
onClick: handleOk
|
|
4784
|
+
}, "\u5F55\u5165"))]
|
|
4785
|
+
}, /*#__PURE__*/React$1.createElement("div", {
|
|
4786
|
+
className: 'query_select_wrapper'
|
|
4787
|
+
}, /*#__PURE__*/React$1.createElement("div", {
|
|
4788
|
+
className: 'query_select_wrapper_top'
|
|
4789
|
+
}, "\u5982\u9700\u540C\u65F6\u4F7F\u7528\u591A\u4E2A\u503C\u8FDB\u884C\u67E5\u8BE2\uFF0C\u8BF7\u4F7F\u7528\u9017\u53F7\uFF0C\u5206\u53F7\u3001\u7A7A\u683C\u6216\u6362\u884C\u8FDB\u884C\u503C\u7684\u5206\u5272\uFF0C\u4E2D\u82F1\u6587\u683C\u5F0F\u7684\u7B26\u53F7\u5747\u652F\u6301"), /*#__PURE__*/React$1.createElement("div", {
|
|
4790
|
+
className: 'query_select_textArea'
|
|
4791
|
+
}, /*#__PURE__*/React$1.createElement(Input.TextArea, {
|
|
4792
|
+
placeholder: "\u5728\u6B64\u5F55\u5165...",
|
|
4793
|
+
value: popvalue,
|
|
4794
|
+
onChange: onChange,
|
|
4795
|
+
rows: 12,
|
|
4796
|
+
showCount: false
|
|
4797
|
+
})))));
|
|
4798
|
+
};
|
|
4799
|
+
function ToCDB$1(selectStr) {
|
|
4800
|
+
var tmp = '';
|
|
4801
|
+
if (!(selectStr === null || selectStr === void 0 ? void 0 : selectStr.length)) return '';
|
|
4802
|
+
var str = Array.isArray(selectStr) ? selectStr.join(',') : selectStr;
|
|
4803
|
+
for (var i = 0; i < (str === null || str === void 0 ? void 0 : str.length); i++) {
|
|
4804
|
+
var _str$charCodeAt, _str$charCodeAt2;
|
|
4805
|
+
if ((str === null || str === void 0 ? void 0 : (_str$charCodeAt = str.charCodeAt) === null || _str$charCodeAt === void 0 ? void 0 : _str$charCodeAt.call(str, i)) > 65248 && (str === null || str === void 0 ? void 0 : (_str$charCodeAt2 = str.charCodeAt) === null || _str$charCodeAt2 === void 0 ? void 0 : _str$charCodeAt2.call(str, i)) < 65375) {
|
|
4806
|
+
tmp += String.fromCharCode((str === null || str === void 0 ? void 0 : str.charCodeAt(i)) - 65248);
|
|
4807
|
+
} else {
|
|
4808
|
+
tmp += String.fromCharCode(str.charCodeAt(i));
|
|
4809
|
+
}
|
|
4810
|
+
}
|
|
4811
|
+
return tmp;
|
|
4812
|
+
}
|
|
4813
|
+
|
|
4814
|
+
var css_248z$6 = ".search_select .ant-select-selector {\n height: 24px;\n overflow: hidden;\n}\n.search_select .ant-select-selector .ant-select-selection-overflow {\n height: 40px;\n flex-wrap: nowrap;\n overflow-x: auto;\n}\n.search_select .ant-select-selector .ant-select-selection-overflow-item {\n align-self: auto;\n}\n.search_select_show {\n display: flex;\n}\n.search_select_show .ant-select-dropdown {\n top: 24px !important;\n width: calc(141%) !important;\n}\n.search_select_show .ant-select-clear {\n right: 33px;\n}\n.search_select_show .ant-select-multiple.ant-select-show-arrow .ant-select-selector,\n.search_select_show .ant-select-multiple.ant-select-allow-clear .ant-select-selector {\n padding-right: 28px;\n}\n.search_select_show.search_select_show_list .ant-select-dropdown {\n top: 24px !important;\n width: calc(100% + 110px) !important;\n}\n.search_select_expand_button {\n position: relative;\n right: -11px;\n width: 30px;\n border-left: 1px solid #d9d9d9;\n height: 24px;\n cursor: pointer;\n font-size: 14px;\n font-weight: bolder;\n}\n.search_select_expand_button span {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.search_select_expand_button:hover {\n background-color: #005cff;\n color: #fff;\n border-top-right-radius: 2px;\n border-bottom-right-radius: 2px;\n}\n.search_select_expand_button_disabled:hover {\n background-color: transparent;\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table {\n font-family: MiSans-Regular;\n font-weight: 400;\n font-size: 12px;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table thead > tr > th {\n color: #7F7F7F;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper {\n justify-content: center;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table tbody > tr > td {\n color: #333333;\n}\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-body > table > tbody > tr > td.ant-table-selection-column,\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-header > table > thead > tr > th.ant-table-selection-column {\n visibility: hidden;\n padding: 0;\n margin: 0;\n width: 0;\n height: 0;\n min-width: 0;\n min-height: 0;\n border: none;\n}\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-body > table > tbody > tr > td.ant-table-selection-column .ant-radio-wrapper,\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-header > table > thead > tr > th.ant-table-selection-column .ant-radio-wrapper {\n display: none;\n}\n.search_select_modal_wrapper .ant-modal {\n top: 60px;\n}\n.search_select_modal_wrapper .ant-modal-header {\n padding: 6px 0px 6px 16px;\n}\n.search_select_modal_wrapper .ant-modal-header .ant-modal-title {\n height: 20px;\n color: #000000;\n line-height: 20px;\n}\n.search_select_modal_wrapper .ant-modal-close-x {\n width: 32px;\n height: 32px;\n line-height: 32px;\n}\n.search_select_modal_wrapper .ant-modal-body {\n padding: 0px;\n background: #F3F3F3;\n height: calc(100vh - 235px);\n overflow: hidden;\n}\n.search_select_modal_wrapper .ant-modal-footer .ant-btn.ant-btn-default {\n color: #005cff;\n border-color: #005cff;\n}\n.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary,\n.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary[disabled] {\n background: #005cff;\n border-color: #005cff;\n}\n.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary[disabled] {\n opacity: 0.5;\n color: #fff;\n}\n.search_select_wrapper {\n position: relative;\n font-size: 14px;\n}\n.search_select_wrapper_topForm .select_list_columns {\n width: 100%;\n padding: 10px 6px 2px 16px;\n background-color: #fff;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form {\n padding: 0;\n display: flex;\n align-items: flex-start;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item,\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-col .ant-space {\n font-size: 12px !important;\n margin-right: 0px !important;\n margin-bottom: 8px !important;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row.ant-form-item-row {\n background-color: #fafafa;\n border: 0.8px solid #D9D9D9;\n border-radius: 2px;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row {\n width: 100%;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-label {\n width: 110px;\n order: 1;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-label label {\n width: 100%;\n text-align: left;\n padding: 0 10px;\n color: #333333;\n font-size: 12px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control {\n order: 2;\n width: 100px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-input-affix-wrapper {\n border: 0;\n font-size: 12px;\n background-color: #fafafa;\n padding: 0 11px;\n height: 24px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-input-affix-wrapper .ant-input {\n background-color: #fafafa !important;\n border: 0;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-select-selector {\n border: 0 !important;\n background-color: #fafafa !important;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .query_input .ant-input {\n background-color: #fafafa !important;\n border: 0;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-btn-primary {\n background: #005cff;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form > .ant-row > .ant-col {\n order: 2;\n padding-right: 10px;\n}\n.search_select_wrapper_topForm .select_list_button_space {\n margin-right: 10px;\n}\n.search_select_wrapper_bottomTable {\n margin: 10px;\n display: flex;\n justify-content: space-between;\n}\n.search_select_wrapper_bottomTable_wrapLeft1,\n.search_select_wrapper_bottomTable_wrapLeft2,\n.search_select_wrapper_bottomTable_wrapRight {\n background: #fff;\n width: calc(50% - 5px);\n}\n.search_select_wrapper_bottomTable_wrapLeft1 {\n width: 100%;\n}\n.search_select_wrapper_bottomTable_wrapRight {\n margin-left: 10px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav {\n margin: 0;\n padding: 6px 18.5px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-nav-wrap {\n height: 28px;\n font-size: 14px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-tab {\n padding: 4px 0;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-ink-bar {\n left: 3px !important;\n width: 40px !important;\n background: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-extra-content > span {\n color: #005cff;\n cursor: pointer;\n}\n.search_select_wrapper_bottomTable .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {\n color: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder {\n padding: 10px 10px 7px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder .ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content .ant-table-thead > tr > th {\n color: #7F7F7F;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder .ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content .ant-table-thead .ant-table-selection .ant-checkbox-wrapper {\n justify-content: center;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder .ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content .ant-table.ant-table-small .ant-table-tbody > tr > td {\n color: #333333;\n}\n.search_select_wrapper_bottomTable .ant-checkbox-checked .ant-checkbox-inner {\n color: #005cff;\n background: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-pagination-item-active a {\n color: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-pagination-item-active {\n border-color: #005cff;\n}\n.searchSelectSpin > div {\n height: 300px !important;\n}\n.searchSelectMaxTagToolTip .ant-tooltip-inner {\n max-height: 72px;\n overflow-x: auto;\n padding: 0px;\n}\n";
|
|
4815
|
+
styleInject(css_248z$6);
|
|
4126
4816
|
|
|
4127
4817
|
var zhankaitiaojian = "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%3Ezhankaitiaojian-icon%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%E9%A1%B5%E9%9D%A2-1%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%22icon%22%20transform%3D%22translate%28-702.000000%2C%20-498.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22zhankaitiaojian-icon%22%20transform%3D%22translate%28702.000000%2C%20498.000000%29%22%3E%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%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%3C%2Fmask%3E%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%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%3Cpath%20d%3D%22M12.0142082%2C6%20L18%2C11.9972435%20L12.0142082%2C18%20L11.04209%2C17.0260337%20L16.0562218%2C11.9972435%20L11.04209%2C6.97396631%20L12.0142082%2C6%20Z%20M6.97257658%2C6%20L12.9583683%2C11.9972435%20L6.97257658%2C18%20L6.00091666%2C17.0260337%20L11.0150485%2C11.9972435%20L6%2C6.97396631%20L6.97257658%2C6%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%20fill%3D%22%23005CFF%22%20fill-rule%3D%22nonzero%22%20mask%3D%22url%28%23mask-2%29%22%20transform%3D%22translate%2812.000000%2C%2012.000000%29%20rotate%28-270.000000%29%20translate%28-12.000000%2C%20-12.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";
|
|
4128
4818
|
|
|
4819
|
+
var css_248z$7 = ".property_classify_content {\n margin-bottom: 15px;\n}\n.property_classify_content1 {\n max-height: 350px;\n overflow-y: scroll;\n overflow-x: hidden;\n}\n/* 滚动槽(轨道)宽高 */\n.property_classify_content1::-webkit-scrollbar {\n width: 5px;\n /*对垂直流动条有效*/\n height: 5px;\n /*对水平流动条有效*/\n}\n/* 滚动槽(轨道)样式 */\n.property_classify_content1::-webkit-scrollbar-track {\n background-color: #ffffff;\n border-radius: 8px;\n}\n/*定义滑块颜色、内阴影及圆角*/\n.property_classify_content1::-webkit-scrollbar-thumb {\n border-radius: 7px;\n background-color: #CECECE;\n}\n/*定义两端按钮的样式*/\n.property_classify_content1::-webkit-scrollbar-button {\n display: none;\n}\n.propertyGroup_container {\n display: flex;\n margin-bottom: 16px;\n}\n.propertyGroup_container .propertyGroup_container_left {\n width: 100px;\n flex-shrink: 0;\n flex-grow: 0;\n}\n.propertyGroup_container .propertyGroup_container_right {\n width: 560px;\n flex-shrink: 0;\n flex-grow: 0;\n display: flex;\n flex-wrap: wrap;\n}\n.propertyGroup_container .ant-checkbox-wrapper + .ant-checkbox-wrapper {\n margin-left: 0px;\n}\n.propertyGroup_checkbox_container {\n width: 80px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n";
|
|
4820
|
+
styleInject(css_248z$7);
|
|
4821
|
+
|
|
4822
|
+
var PropertyGroup = function PropertyGroup(props) {
|
|
4823
|
+
var propertyData = props.propertyData,
|
|
4824
|
+
handleProperyItemChange = props.handleProperyItemChange,
|
|
4825
|
+
modalVisilbe = props.modalVisilbe,
|
|
4826
|
+
itemValue = props.itemValue;
|
|
4827
|
+
var _useState = useState([]),
|
|
4828
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
4829
|
+
commonUseProperty = _useState2[0],
|
|
4830
|
+
setCommonUseProperty = _useState2[1]; // 常用属性值
|
|
4831
|
+
var _useState3 = useState([]),
|
|
4832
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
4833
|
+
notCommonUseProperty = _useState4[0],
|
|
4834
|
+
setNotCommonUseProperty = _useState4[1]; // 非常用属性值
|
|
4835
|
+
var _useState5 = useState(false),
|
|
4836
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
4837
|
+
indeterminate = _useState6[0],
|
|
4838
|
+
setIndeterminate = _useState6[1];
|
|
4839
|
+
var _useState7 = useState(false),
|
|
4840
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
4841
|
+
showNotCommon = _useState8[0],
|
|
4842
|
+
setShowNotCommon = _useState8[1];
|
|
4843
|
+
useEffect(function () {
|
|
4844
|
+
var proItemValue = (itemValue.propertyList || []).find(function (item) {
|
|
4845
|
+
return item.propertyCode === propertyData.propertyCode;
|
|
4846
|
+
});
|
|
4847
|
+
var checkedList = (proItemValue === null || proItemValue === void 0 ? void 0 : proItemValue.detailList) || [];
|
|
4848
|
+
var proDetailList = JSON.parse(JSON.stringify((propertyData === null || propertyData === void 0 ? void 0 : propertyData.detailList) || []));
|
|
4849
|
+
proDetailList.forEach(function (item) {
|
|
4850
|
+
if (checkedList.some(function (checkItem) {
|
|
4851
|
+
return checkItem.value === item.value;
|
|
4852
|
+
})) {
|
|
4853
|
+
item.isChecked = true;
|
|
4854
|
+
}
|
|
4855
|
+
});
|
|
4856
|
+
var commonUseProperty = proDetailList.filter(function (item) {
|
|
4857
|
+
return item.isCommonUse;
|
|
4858
|
+
});
|
|
4859
|
+
var notCommonUseProperty = proDetailList.filter(function (item) {
|
|
4860
|
+
return !item.isCommonUse;
|
|
4861
|
+
});
|
|
4862
|
+
if (checkedList.some(function (item) {
|
|
4863
|
+
return !item.isCommonUse;
|
|
4864
|
+
})) {
|
|
4865
|
+
setShowNotCommon(true);
|
|
4866
|
+
}
|
|
4867
|
+
setCommonUseProperty(commonUseProperty);
|
|
4868
|
+
setNotCommonUseProperty(notCommonUseProperty);
|
|
4869
|
+
}, [modalVisilbe]);
|
|
4870
|
+
var parseDataToParent = function parseDataToParent(comUse, notComUse) {
|
|
4871
|
+
var choosedPropertyList = (comUse || []).filter(function (item) {
|
|
4872
|
+
return item.isChecked;
|
|
4873
|
+
});
|
|
4874
|
+
if (showNotCommon) {
|
|
4875
|
+
choosedPropertyList = [].concat(_toConsumableArray(choosedPropertyList), _toConsumableArray((notComUse || []).filter(function (item) {
|
|
4876
|
+
return item.isChecked;
|
|
4877
|
+
})));
|
|
4878
|
+
}
|
|
4879
|
+
handleProperyItemChange({
|
|
4880
|
+
propertyCode: propertyData === null || propertyData === void 0 ? void 0 : propertyData.propertyCode,
|
|
4881
|
+
propertyName: propertyData === null || propertyData === void 0 ? void 0 : propertyData.propertyName,
|
|
4882
|
+
propertyId: propertyData === null || propertyData === void 0 ? void 0 : propertyData.propertyId,
|
|
4883
|
+
isCommonUse: propertyData === null || propertyData === void 0 ? void 0 : propertyData.isCommonUse,
|
|
4884
|
+
detailList: choosedPropertyList
|
|
4885
|
+
});
|
|
4886
|
+
};
|
|
4887
|
+
var handleChangeAll = function handleChangeAll(e) {
|
|
4888
|
+
if (showNotCommon) {
|
|
4889
|
+
notCommonUseProperty.map(function (item) {
|
|
4890
|
+
return item.isChecked = e.target.checked;
|
|
4891
|
+
});
|
|
4892
|
+
setNotCommonUseProperty(_toConsumableArray(notCommonUseProperty));
|
|
4893
|
+
}
|
|
4894
|
+
commonUseProperty.map(function (item) {
|
|
4895
|
+
return item.isChecked = e.target.checked;
|
|
4896
|
+
});
|
|
4897
|
+
parseDataToParent(commonUseProperty, notCommonUseProperty);
|
|
4898
|
+
setCommonUseProperty(_toConsumableArray(commonUseProperty));
|
|
4899
|
+
setIndeterminate(false);
|
|
4900
|
+
};
|
|
4901
|
+
var handleIndeterminate = function handleIndeterminate(commonUseProperty, notCommonUseProperty) {
|
|
4902
|
+
var checkList = _toConsumableArray(commonUseProperty);
|
|
4903
|
+
if (showNotCommon) {
|
|
4904
|
+
checkList = [].concat(_toConsumableArray(checkList), _toConsumableArray(notCommonUseProperty));
|
|
4905
|
+
}
|
|
4906
|
+
var indeterminate = !!checkList.filter(function (item) {
|
|
4907
|
+
return item.isChecked;
|
|
4908
|
+
}).length && checkList.filter(function (item) {
|
|
4909
|
+
return item.isChecked;
|
|
4910
|
+
}).length !== checkList.length;
|
|
4911
|
+
setIndeterminate(indeterminate);
|
|
4912
|
+
};
|
|
4913
|
+
var handleItemChecked = function handleItemChecked(e, item, type) {
|
|
4914
|
+
if (type === 1) {
|
|
4915
|
+
// 常用属性
|
|
4916
|
+
(commonUseProperty || []).forEach(function (info) {
|
|
4917
|
+
if (info.value === item.value) {
|
|
4918
|
+
info.isChecked = e.target.checked;
|
|
4919
|
+
}
|
|
4920
|
+
});
|
|
4921
|
+
handleIndeterminate(commonUseProperty, notCommonUseProperty);
|
|
4922
|
+
parseDataToParent(commonUseProperty, notCommonUseProperty);
|
|
4923
|
+
setCommonUseProperty(_toConsumableArray(commonUseProperty));
|
|
4924
|
+
}
|
|
4925
|
+
if (type === 2) {
|
|
4926
|
+
// 非常用属性
|
|
4927
|
+
(notCommonUseProperty || []).forEach(function (info) {
|
|
4928
|
+
if (info.value === item.value) {
|
|
4929
|
+
info.isChecked = e.target.checked;
|
|
4930
|
+
}
|
|
4931
|
+
});
|
|
4932
|
+
handleIndeterminate(commonUseProperty, notCommonUseProperty);
|
|
4933
|
+
parseDataToParent(commonUseProperty, notCommonUseProperty);
|
|
4934
|
+
setNotCommonUseProperty(_toConsumableArray(notCommonUseProperty));
|
|
4935
|
+
}
|
|
4936
|
+
};
|
|
4937
|
+
var checkAllChecked = function checkAllChecked() {
|
|
4938
|
+
var checkData = showNotCommon ? [].concat(_toConsumableArray(commonUseProperty), _toConsumableArray(notCommonUseProperty)) : _toConsumableArray(commonUseProperty);
|
|
4939
|
+
return checkData.length && checkData.every(function (item) {
|
|
4940
|
+
return item.isChecked;
|
|
4941
|
+
}) ? true : false;
|
|
4942
|
+
};
|
|
4943
|
+
return /*#__PURE__*/React$1.createElement("div", {
|
|
4944
|
+
className: 'propertyGroup_container'
|
|
4945
|
+
}, /*#__PURE__*/React$1.createElement("div", {
|
|
4946
|
+
className: 'propertyGroup_container_left'
|
|
4947
|
+
}, /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
4948
|
+
checked: checkAllChecked(),
|
|
4949
|
+
indeterminate: indeterminate,
|
|
4950
|
+
onChange: handleChangeAll
|
|
4951
|
+
}, /*#__PURE__*/React$1.createElement("div", {
|
|
4952
|
+
title: propertyData.name,
|
|
4953
|
+
className: "propertyGroup_checkbox_container"
|
|
4954
|
+
}, propertyData.propertyName))), /*#__PURE__*/React$1.createElement("div", {
|
|
4955
|
+
className: 'propertyGroup_container_right'
|
|
4956
|
+
}, (commonUseProperty || []).map(function (item) {
|
|
4957
|
+
return /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
4958
|
+
checked: item.isChecked,
|
|
4959
|
+
key: item.value,
|
|
4960
|
+
onChange: function onChange(e) {
|
|
4961
|
+
handleItemChecked(e, item, 1);
|
|
4962
|
+
}
|
|
4963
|
+
}, /*#__PURE__*/React$1.createElement("div", {
|
|
4964
|
+
title: item.name,
|
|
4965
|
+
className: "propertyGroup_checkbox_container"
|
|
4966
|
+
}, item.name));
|
|
4967
|
+
}), showNotCommon && (notCommonUseProperty || []).map(function (item) {
|
|
4968
|
+
return /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
4969
|
+
checked: item.isChecked,
|
|
4970
|
+
key: item.value,
|
|
4971
|
+
onChange: function onChange(e) {
|
|
4972
|
+
handleItemChecked(e, item, 2);
|
|
4973
|
+
}
|
|
4974
|
+
}, /*#__PURE__*/React$1.createElement("div", {
|
|
4975
|
+
title: item.name,
|
|
4976
|
+
className: "propertyGroup_checkbox_container"
|
|
4977
|
+
}, item.name));
|
|
4978
|
+
}), !!notCommonUseProperty.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
4979
|
+
style: {
|
|
4980
|
+
width: '50px',
|
|
4981
|
+
cursor: 'pointer',
|
|
4982
|
+
color: '#005cff',
|
|
4983
|
+
fontSize: '10px',
|
|
4984
|
+
display: 'flex',
|
|
4985
|
+
alignItems: 'center'
|
|
4986
|
+
},
|
|
4987
|
+
onClick: function onClick() {
|
|
4988
|
+
setShowNotCommon(!showNotCommon);
|
|
4989
|
+
handleIndeterminate(commonUseProperty, notCommonUseProperty);
|
|
4990
|
+
}
|
|
4991
|
+
}, showNotCommon && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretUpOutlined, null), "\u6536\u8D77")), !showNotCommon && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretDownOutlined, null), "\u5C55\u5F00"))))));
|
|
4992
|
+
};
|
|
4993
|
+
var PropertyGroup$1 = /*#__PURE__*/React$1.memo(PropertyGroup, function (props, nextProps) {
|
|
4994
|
+
if (props.modalVisilbe !== nextProps.modalVisilbe) return false;
|
|
4995
|
+
return true;
|
|
4996
|
+
});
|
|
4997
|
+
|
|
4998
|
+
var _excluded$3 = ["value", "onChange", "width"];
|
|
4999
|
+
var PropertySelector = function PropertySelector(_ref) {
|
|
5000
|
+
var value = _ref.value,
|
|
5001
|
+
onChange = _ref.onChange,
|
|
5002
|
+
width = _ref.width,
|
|
5003
|
+
restProps = _objectWithoutProperties(_ref, _excluded$3);
|
|
5004
|
+
var settingValue = useRef({
|
|
5005
|
+
classifyCode: '',
|
|
5006
|
+
classifyName: '',
|
|
5007
|
+
propertyList: []
|
|
5008
|
+
});
|
|
5009
|
+
var _useState = useState([]),
|
|
5010
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
5011
|
+
choosedValues = _useState2[0],
|
|
5012
|
+
setChoosedValues = _useState2[1];
|
|
5013
|
+
var _useState3 = useState(''),
|
|
5014
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
5015
|
+
choosedClassify = _useState4[0],
|
|
5016
|
+
setChoosedClassify = _useState4[1];
|
|
5017
|
+
var _useState5 = useState([]),
|
|
5018
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
5019
|
+
commonProperty = _useState6[0],
|
|
5020
|
+
setCommonUseProperty = _useState6[1];
|
|
5021
|
+
var _useState7 = useState([]),
|
|
5022
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
5023
|
+
notCommonProperty = _useState8[0],
|
|
5024
|
+
setNotCommonProperty = _useState8[1];
|
|
5025
|
+
var _useState9 = useState(false),
|
|
5026
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
5027
|
+
visible = _useState10[0],
|
|
5028
|
+
setVisible = _useState10[1];
|
|
5029
|
+
var _useState11 = useState(false),
|
|
5030
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
5031
|
+
showNotCommon = _useState12[0],
|
|
5032
|
+
setShowNotCommon = _useState12[1]; // 是否展示非常用属性
|
|
5033
|
+
var _useState13 = useState([]),
|
|
5034
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
5035
|
+
classifyOptionList = _useState14[0],
|
|
5036
|
+
setClassifyOptionList = _useState14[1];
|
|
5037
|
+
var _useState15 = useState('1'),
|
|
5038
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
5039
|
+
listKey = _useState16[0],
|
|
5040
|
+
setListKey = _useState16[1];
|
|
5041
|
+
useEffect(function () {
|
|
5042
|
+
requestUtil({
|
|
5043
|
+
url: '/items/class/withProperty?pageSize=500¤tPage=1',
|
|
5044
|
+
method: 'GET'
|
|
5045
|
+
}).then(function (_ref2) {
|
|
5046
|
+
var _data$data;
|
|
5047
|
+
var data = _ref2.data;
|
|
5048
|
+
if (judgeIsRequestError(data)) {
|
|
5049
|
+
return;
|
|
5050
|
+
}
|
|
5051
|
+
var items = ((_data$data = data.data) === null || _data$data === void 0 ? void 0 : _data$data.items) || [];
|
|
5052
|
+
setClassifyOptionList(items.map(function (item) {
|
|
5053
|
+
return {
|
|
5054
|
+
label: item.name,
|
|
5055
|
+
value: item.id
|
|
5056
|
+
};
|
|
5057
|
+
}));
|
|
5058
|
+
});
|
|
5059
|
+
}, []);
|
|
5060
|
+
useEffect(function () {
|
|
5061
|
+
if (!choosedClassify) return;
|
|
5062
|
+
requestUtil({
|
|
5063
|
+
url: "/items/classProperty/".concat(choosedClassify),
|
|
5064
|
+
method: 'GET'
|
|
5065
|
+
}).then(function (_ref3) {
|
|
5066
|
+
var data = _ref3.data;
|
|
5067
|
+
if (judgeIsRequestError(data)) {
|
|
5068
|
+
return;
|
|
5069
|
+
}
|
|
5070
|
+
var newArr = ((data === null || data === void 0 ? void 0 : data.data) || []).map(function (item) {
|
|
5071
|
+
var _item$property, _item$property2, _item$property3, _item$property4;
|
|
5072
|
+
return {
|
|
5073
|
+
propertyCode: (_item$property = item.property) === null || _item$property === void 0 ? void 0 : _item$property.propertyCode,
|
|
5074
|
+
propertyName: (_item$property2 = item.property) === null || _item$property2 === void 0 ? void 0 : _item$property2.name,
|
|
5075
|
+
propertyId: (_item$property3 = item.property) === null || _item$property3 === void 0 ? void 0 : _item$property3.id,
|
|
5076
|
+
isCommonUse: ((_item$property4 = item.property) === null || _item$property4 === void 0 ? void 0 : _item$property4.isCommonUse) === 'commonUse',
|
|
5077
|
+
detailList: (item.propertyValueList || []).map(function (detail) {
|
|
5078
|
+
return {
|
|
5079
|
+
name: detail.value,
|
|
5080
|
+
value: detail.value,
|
|
5081
|
+
isCommonUse: detail.isCommonUse === 'commonUse'
|
|
5082
|
+
};
|
|
5083
|
+
})
|
|
5084
|
+
};
|
|
5085
|
+
});
|
|
5086
|
+
setCommonUseProperty(newArr.filter(function (item) {
|
|
5087
|
+
return item.isCommonUse;
|
|
5088
|
+
}));
|
|
5089
|
+
setNotCommonProperty(newArr.filter(function (item) {
|
|
5090
|
+
return !item.isCommonUse;
|
|
5091
|
+
}));
|
|
5092
|
+
setListKey(listKey === '1' ? '2' : '1');
|
|
5093
|
+
});
|
|
5094
|
+
}, [choosedClassify]);
|
|
5095
|
+
useEffect(function () {
|
|
5096
|
+
var _classifyOptionList$2;
|
|
5097
|
+
if (visible) {
|
|
5098
|
+
var _classifyOptionList$;
|
|
5099
|
+
// 获取选中品类信息
|
|
5100
|
+
setChoosedClassify((value === null || value === void 0 ? void 0 : value.classifyCode) || ((_classifyOptionList$ = classifyOptionList[0]) === null || _classifyOptionList$ === void 0 ? void 0 : _classifyOptionList$.value));
|
|
5101
|
+
}
|
|
5102
|
+
// 获取选中属性值展示
|
|
5103
|
+
var choosedPropertyList = ((value === null || value === void 0 ? void 0 : value.propertyList) || []).map(function (item) {
|
|
5104
|
+
return (item.detailList || []).map(function (detail) {
|
|
5105
|
+
return detail.name;
|
|
5106
|
+
});
|
|
5107
|
+
}).flat();
|
|
5108
|
+
if (((value === null || value === void 0 ? void 0 : value.propertyList) || []).some(function (item) {
|
|
5109
|
+
return !item.isCommonUse;
|
|
5110
|
+
})) {
|
|
5111
|
+
setShowNotCommon(true);
|
|
5112
|
+
}
|
|
5113
|
+
settingValue.current = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
5114
|
+
classifyCode: (value === null || value === void 0 ? void 0 : value.classifyCode) || ((_classifyOptionList$2 = classifyOptionList[0]) === null || _classifyOptionList$2 === void 0 ? void 0 : _classifyOptionList$2.value)
|
|
5115
|
+
});
|
|
5116
|
+
setChoosedValues(choosedPropertyList);
|
|
5117
|
+
}, [value, visible]);
|
|
5118
|
+
// 关闭弹窗回传组件值
|
|
5119
|
+
var handleConfirm = function handleConfirm() {
|
|
5120
|
+
setVisible(false);
|
|
5121
|
+
onChange(settingValue.current);
|
|
5122
|
+
};
|
|
5123
|
+
var onCancel = function onCancel() {
|
|
5124
|
+
setVisible(false);
|
|
5125
|
+
};
|
|
5126
|
+
// 获取选中属性值信息
|
|
5127
|
+
var handleProperyItemChange = function handleProperyItemChange(value) {
|
|
5128
|
+
var _settingValue$current;
|
|
5129
|
+
var newDetailList = ((_settingValue$current = settingValue.current) === null || _settingValue$current === void 0 ? void 0 : _settingValue$current.propertyList) || [];
|
|
5130
|
+
var itemIndex = newDetailList.findIndex(function (item) {
|
|
5131
|
+
return item.propertyCode === value.propertyCode;
|
|
5132
|
+
});
|
|
5133
|
+
if (itemIndex !== -1) {
|
|
5134
|
+
newDetailList[itemIndex] = value;
|
|
5135
|
+
} else {
|
|
5136
|
+
newDetailList.push(value);
|
|
5137
|
+
}
|
|
5138
|
+
settingValue.current = _objectSpread2(_objectSpread2({}, settingValue.current), {}, {
|
|
5139
|
+
propertyList: newDetailList.filter(function (item) {
|
|
5140
|
+
return item.detailList && item.detailList.length;
|
|
5141
|
+
})
|
|
5142
|
+
});
|
|
5143
|
+
};
|
|
5144
|
+
//修改品类值
|
|
5145
|
+
var onClassifyChange = function onClassifyChange(value, option) {
|
|
5146
|
+
setChoosedClassify(value);
|
|
5147
|
+
settingValue.current = {
|
|
5148
|
+
classifyCode: value,
|
|
5149
|
+
classifyName: option.children,
|
|
5150
|
+
propertyList: []
|
|
5151
|
+
};
|
|
5152
|
+
};
|
|
5153
|
+
var tagRender = function tagRender(props) {
|
|
5154
|
+
var label = props.label,
|
|
5155
|
+
value = props.value,
|
|
5156
|
+
closable = props.closable,
|
|
5157
|
+
onClose = props.onClose;
|
|
5158
|
+
return /*#__PURE__*/React$1.createElement(Tag, {
|
|
5159
|
+
closable: false,
|
|
5160
|
+
style: {
|
|
5161
|
+
marginRight: 3,
|
|
5162
|
+
height: '20px',
|
|
5163
|
+
fontSize: '12px'
|
|
5164
|
+
}
|
|
5165
|
+
}, label);
|
|
5166
|
+
};
|
|
5167
|
+
return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({
|
|
5168
|
+
maxTagCount: 1,
|
|
5169
|
+
tagRender: tagRender
|
|
5170
|
+
}, restProps), {}, {
|
|
5171
|
+
mode: "multiple",
|
|
5172
|
+
value: choosedValues,
|
|
5173
|
+
onClick: function onClick() {
|
|
5174
|
+
setVisible(true);
|
|
5175
|
+
},
|
|
5176
|
+
style: {
|
|
5177
|
+
width: width || '100%'
|
|
5178
|
+
},
|
|
5179
|
+
open: false
|
|
5180
|
+
})), /*#__PURE__*/React$1.createElement(Modal, {
|
|
5181
|
+
title: "\u5C5E\u6027\u8BBE\u7F6E",
|
|
5182
|
+
width: 700,
|
|
5183
|
+
open: visible,
|
|
5184
|
+
onOk: handleConfirm,
|
|
5185
|
+
destroyOnClose: true,
|
|
5186
|
+
onCancel: onCancel,
|
|
5187
|
+
cancelText: '取消',
|
|
5188
|
+
okText: '确定'
|
|
5189
|
+
}, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
5190
|
+
className: 'property_classify_content'
|
|
5191
|
+
}, /*#__PURE__*/React$1.createElement("span", {
|
|
5192
|
+
style: {
|
|
5193
|
+
marginRight: '10px'
|
|
5194
|
+
}
|
|
5195
|
+
}, "\u54C1\u7C7B\u6A21\u677F"), /*#__PURE__*/React$1.createElement(Select, {
|
|
5196
|
+
style: {
|
|
5197
|
+
width: '200px'
|
|
5198
|
+
},
|
|
5199
|
+
value: choosedClassify,
|
|
5200
|
+
options: classifyOptionList,
|
|
5201
|
+
onChange: function onChange(value, option) {
|
|
5202
|
+
onClassifyChange(value, option);
|
|
5203
|
+
}
|
|
5204
|
+
})), /*#__PURE__*/React$1.createElement("div", {
|
|
5205
|
+
className: 'property_classify_content1',
|
|
5206
|
+
key: listKey
|
|
5207
|
+
}, /*#__PURE__*/React$1.createElement("div", null, commonProperty.map(function (item) {
|
|
5208
|
+
return /*#__PURE__*/React$1.createElement(PropertyGroup$1, {
|
|
5209
|
+
modalVisilbe: visible,
|
|
5210
|
+
itemValue: settingValue.current,
|
|
5211
|
+
propertyData: item,
|
|
5212
|
+
handleProperyItemChange: handleProperyItemChange
|
|
5213
|
+
});
|
|
5214
|
+
})), /*#__PURE__*/React$1.createElement("div", null, showNotCommon && notCommonProperty.map(function (item) {
|
|
5215
|
+
return /*#__PURE__*/React$1.createElement(PropertyGroup$1, {
|
|
5216
|
+
modalVisilbe: visible,
|
|
5217
|
+
itemValue: settingValue.current,
|
|
5218
|
+
propertyData: item,
|
|
5219
|
+
handleProperyItemChange: handleProperyItemChange
|
|
5220
|
+
});
|
|
5221
|
+
}))), !!notCommonProperty.length && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
5222
|
+
style: {
|
|
5223
|
+
width: '50px',
|
|
5224
|
+
cursor: 'pointer',
|
|
5225
|
+
color: '#005cff',
|
|
5226
|
+
fontSize: '10px'
|
|
5227
|
+
},
|
|
5228
|
+
onClick: function onClick() {
|
|
5229
|
+
return setShowNotCommon(!showNotCommon);
|
|
5230
|
+
}
|
|
5231
|
+
}, showNotCommon && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretUpOutlined, null), "\u6536\u8D77")), !showNotCommon && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretDownOutlined, null), "\u5C55\u5F00"))))))));
|
|
5232
|
+
};
|
|
5233
|
+
|
|
4129
5234
|
var Option$1 = Select.Option;
|
|
4130
5235
|
var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
4131
|
-
var
|
|
5236
|
+
var _pathname$match;
|
|
4132
5237
|
var value = props.value,
|
|
4133
5238
|
onChangeTemp = props.onChange,
|
|
4134
5239
|
_props$selectProps = props.selectProps,
|
|
@@ -4137,19 +5242,23 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4137
5242
|
modalTableProps = _props$modalTableProp === void 0 ? {} : _props$modalTableProp,
|
|
4138
5243
|
_props$labelInValue = props.labelInValue,
|
|
4139
5244
|
labelInValue = _props$labelInValue === void 0 ? false : _props$labelInValue,
|
|
4140
|
-
|
|
5245
|
+
needTopSelectedSource = props.needTopSelectedSource,
|
|
5246
|
+
rCTemp = props.requestConfig,
|
|
4141
5247
|
ctx = props.ctx,
|
|
4142
5248
|
_props$onlyShowStr = props.onlyShowStr,
|
|
4143
5249
|
sourceName = props.sourceName,
|
|
4144
5250
|
_props$needModalTable = props.needModalTable,
|
|
4145
5251
|
needModalTable = _props$needModalTable === void 0 ? true : _props$needModalTable,
|
|
4146
5252
|
_props$getPopupContai = props.getPopupContainer,
|
|
4147
|
-
|
|
5253
|
+
_props$highestPopCont = props.highestPopContainer,
|
|
5254
|
+
highestPopContainer = _props$highestPopCont === void 0 ? undefined : _props$highestPopCont,
|
|
4148
5255
|
fieldComponent = props.fieldComponent,
|
|
4149
5256
|
onSaveCallback = props.onSaveCallback,
|
|
4150
5257
|
selectBusinessType = props.selectBusinessType;
|
|
4151
|
-
var _ref =
|
|
5258
|
+
var _ref = rCTemp || {},
|
|
4152
5259
|
url = _ref.url,
|
|
5260
|
+
_ref$method = _ref.method,
|
|
5261
|
+
method = _ref$method === void 0 ? 'get' : _ref$method,
|
|
4153
5262
|
otherParams = _ref.otherParams,
|
|
4154
5263
|
isMap = _ref.isMap,
|
|
4155
5264
|
fixedparameter = _ref.fixedparameter,
|
|
@@ -4173,6 +5282,26 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4173
5282
|
noOperate = _ref.noOperate,
|
|
4174
5283
|
viewShowValueStr = _ref.viewShowValueStr,
|
|
4175
5284
|
searchStartLength = _ref.searchStartLength;
|
|
5285
|
+
var requestConfig = _objectSpread2({
|
|
5286
|
+
url: url,
|
|
5287
|
+
method: method,
|
|
5288
|
+
otherParams: otherParams,
|
|
5289
|
+
isMap: isMap,
|
|
5290
|
+
fixedparameter: fixedparameter,
|
|
5291
|
+
fieldValToParam: fieldValToParam,
|
|
5292
|
+
fixedparamsDisabled: fixedparamsDisabled,
|
|
5293
|
+
mappingTextField: mappingTextField,
|
|
5294
|
+
mappingTextShowKeyField: mappingTextShowKeyField,
|
|
5295
|
+
mappingValueField: mappingValueField,
|
|
5296
|
+
mappingTextShowTextField: mappingTextShowTextField,
|
|
5297
|
+
init: init,
|
|
5298
|
+
extralHeaders: extralHeaders,
|
|
5299
|
+
specialBracket: specialBracket,
|
|
5300
|
+
noNeedSplit: noNeedSplit,
|
|
5301
|
+
noOperate: noOperate,
|
|
5302
|
+
viewShowValueStr: viewShowValueStr,
|
|
5303
|
+
searchStartLength: searchStartLength
|
|
5304
|
+
}, rCTemp);
|
|
4176
5305
|
var resultSourceKey = handleSourceName(sourceName || (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.sourceName) || (ctx === null || ctx === void 0 ? void 0 : ctx.name) || 'supplierCode');
|
|
4177
5306
|
var selectMode = selectProps === null || selectProps === void 0 ? void 0 : selectProps.mode; // 设定当前选择器 为单选或者多选模式 无设定为单选模式(默认)
|
|
4178
5307
|
var initVal = value || (selectMode ? [] : null);
|
|
@@ -4190,11 +5319,14 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4190
5319
|
listHeight: 160,
|
|
4191
5320
|
optionLabelProp: "label",
|
|
4192
5321
|
autoClearSearchValue: false,
|
|
4193
|
-
placement: '
|
|
5322
|
+
placement: 'bottomRight'
|
|
4194
5323
|
});
|
|
5324
|
+
var pathname = window.location.href;
|
|
5325
|
+
var pattern = /(action|create|edit|view)/;
|
|
5326
|
+
var isFormPage = ((_pathname$match = pathname.match(pattern)) === null || _pathname$match === void 0 ? void 0 : _pathname$match.length) > 0;
|
|
4195
5327
|
var initPagination = {
|
|
4196
5328
|
showQuickJumper: true,
|
|
4197
|
-
showSizeChanger:
|
|
5329
|
+
showSizeChanger: true,
|
|
4198
5330
|
showTotal: function showTotal(total) {
|
|
4199
5331
|
return "\u5171 ".concat(total, " \u6761");
|
|
4200
5332
|
},
|
|
@@ -4204,7 +5336,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4204
5336
|
total: 0,
|
|
4205
5337
|
current: 1
|
|
4206
5338
|
});
|
|
4207
|
-
var disabled = noOperate || (selectProps === null || selectProps === void 0 ? void 0 : selectProps.disabled) || (props === null || props === void 0 ? void 0 : props.disabled);
|
|
5339
|
+
var disabled = !!noOperate || (selectProps === null || selectProps === void 0 ? void 0 : selectProps.disabled) || (props === null || props === void 0 ? void 0 : props.disabled);
|
|
4208
5340
|
var isHaveDependency = fixedparameter && fieldValToParam && ctx;
|
|
4209
5341
|
var isHaveDValue = function isHaveDValue() {
|
|
4210
5342
|
var formValueList = [];
|
|
@@ -4225,34 +5357,38 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4225
5357
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
4226
5358
|
selectOpen = _useState4[0],
|
|
4227
5359
|
setSelectOpen = _useState4[1];
|
|
4228
|
-
var _useState5 = useState(
|
|
5360
|
+
var _useState5 = useState(false),
|
|
4229
5361
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
var _useState7 = useState(
|
|
5362
|
+
isMaxTagsOpen = _useState6[0],
|
|
5363
|
+
setIsMaxTagsOpen = _useState6[1];
|
|
5364
|
+
var _useState7 = useState(1),
|
|
4233
5365
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
var _useState9 = useState(
|
|
5366
|
+
scrollPage = _useState8[0],
|
|
5367
|
+
setScrollPage = _useState8[1];
|
|
5368
|
+
var _useState9 = useState(0),
|
|
4237
5369
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
var _useState11 = useState(
|
|
5370
|
+
itemsTotal = _useState10[0],
|
|
5371
|
+
setItemsTotal = _useState10[1];
|
|
5372
|
+
var _useState11 = useState(false),
|
|
4241
5373
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
var _useState13 = useState(
|
|
5374
|
+
fetching = _useState12[0],
|
|
5375
|
+
setFetching = _useState12[1];
|
|
5376
|
+
var _useState13 = useState(''),
|
|
4245
5377
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
var _useState15 = useState(
|
|
5378
|
+
searchValue = _useState14[0],
|
|
5379
|
+
setSearchValue = _useState14[1];
|
|
5380
|
+
var _useState15 = useState(false),
|
|
4249
5381
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
var _useState17 = useState(
|
|
5382
|
+
isModalVisible = _useState16[0],
|
|
5383
|
+
setIsModalVisible = _useState16[1];
|
|
5384
|
+
var _useState17 = useState(initVal),
|
|
4253
5385
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
4254
|
-
|
|
4255
|
-
|
|
5386
|
+
popvalue = _useState18[0],
|
|
5387
|
+
setPopValue = _useState18[1];
|
|
5388
|
+
var _useState19 = useState(resultSourceKey),
|
|
5389
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
5390
|
+
uniqueValue = _useState20[0],
|
|
5391
|
+
setUniqueValue = _useState20[1];
|
|
4256
5392
|
var _useDebounceFn = useDebounceFn(function (v) {
|
|
4257
5393
|
// 优化搜索参数 支持传多个
|
|
4258
5394
|
var searchParams = {};
|
|
@@ -4281,62 +5417,58 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4281
5417
|
var _Form$useForm = Form.useForm(),
|
|
4282
5418
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
4283
5419
|
form = _Form$useForm2[0];
|
|
4284
|
-
var _useState19 = useState(true),
|
|
4285
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
4286
|
-
collapsed = _useState20[0],
|
|
4287
|
-
setCollapsed = _useState20[1];
|
|
4288
5420
|
var _useState21 = useState(true),
|
|
4289
5421
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
var _useState23 = useState(
|
|
5422
|
+
collapsed = _useState22[0],
|
|
5423
|
+
setCollapsed = _useState22[1];
|
|
5424
|
+
var _useState23 = useState(true),
|
|
4293
5425
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
var _useState25 = useState(
|
|
5426
|
+
caretLeftFlag = _useState24[0],
|
|
5427
|
+
setCaretLeftFlag = _useState24[1];
|
|
5428
|
+
var _useState25 = useState([]),
|
|
4297
5429
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
var _useState27 = useState(
|
|
5430
|
+
tableData = _useState26[0],
|
|
5431
|
+
setTableData = _useState26[1];
|
|
5432
|
+
var _useState27 = useState(tableInitPagination),
|
|
4301
5433
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
4302
|
-
|
|
4303
|
-
|
|
5434
|
+
tablePagination = _useState28[0],
|
|
5435
|
+
setTablePagination = _useState28[1];
|
|
4304
5436
|
var _useState29 = useState([]),
|
|
4305
5437
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
var _useState31 = useState(
|
|
5438
|
+
selectedRowKeys = _useState30[0],
|
|
5439
|
+
setSelectedRowKeys = _useState30[1];
|
|
5440
|
+
var _useState31 = useState([]),
|
|
4309
5441
|
_useState32 = _slicedToArray(_useState31, 2),
|
|
4310
|
-
|
|
4311
|
-
|
|
5442
|
+
selectedRows = _useState32[0],
|
|
5443
|
+
setSelectedRows = _useState32[1];
|
|
4312
5444
|
var _useState33 = useState(false),
|
|
4313
5445
|
_useState34 = _slicedToArray(_useState33, 2),
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
var _useState35 = useState(
|
|
5446
|
+
checkedAll = _useState34[0],
|
|
5447
|
+
setCheckedAll = _useState34[1];
|
|
5448
|
+
var _useState35 = useState(false),
|
|
4317
5449
|
_useState36 = _slicedToArray(_useState35, 2),
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
var _useState37 = useState(
|
|
5450
|
+
indeterminate = _useState36[0],
|
|
5451
|
+
setIndeterminate = _useState36[1];
|
|
5452
|
+
var _useState37 = useState({}),
|
|
4321
5453
|
_useState38 = _slicedToArray(_useState37, 2),
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
var _useState39 = useState(
|
|
4325
|
-
return typeof s.defaultSort == 'number';
|
|
4326
|
-
})) === null || _modalTableProps$tabl2 === void 0 ? void 0 : _modalTableProps$tabl2.sort(function (a, b) {
|
|
4327
|
-
return a.defaultSort - b.defaultSort;
|
|
4328
|
-
})) || []),
|
|
5454
|
+
tableFormParams = _useState38[0],
|
|
5455
|
+
setTableFormParams = _useState38[1];
|
|
5456
|
+
var _useState39 = useState(false),
|
|
4329
5457
|
_useState40 = _slicedToArray(_useState39, 2),
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
var _useState41 = useState(
|
|
5458
|
+
tooltipVisible = _useState40[0],
|
|
5459
|
+
setTooltipVisible = _useState40[1];
|
|
5460
|
+
var _useState41 = useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
|
|
4333
5461
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
4334
|
-
|
|
4335
|
-
|
|
5462
|
+
tableShowColumns = _useState42[0],
|
|
5463
|
+
setTabletShowColumns = _useState42[1]; // 默认展示表头-modalTableProps?.tableColumns
|
|
4336
5464
|
var _useState43 = useState(false),
|
|
4337
5465
|
_useState44 = _slicedToArray(_useState43, 2),
|
|
4338
|
-
|
|
4339
|
-
|
|
5466
|
+
confirmLoading = _useState44[0],
|
|
5467
|
+
setConfirmLoading = _useState44[1];
|
|
5468
|
+
var _useState45 = useState(false),
|
|
5469
|
+
_useState46 = _slicedToArray(_useState45, 2),
|
|
5470
|
+
modalSearched = _useState46[0],
|
|
5471
|
+
setModalSearched = _useState46[1];
|
|
4340
5472
|
var setSelectDataSource = function setSelectDataSource(list, total) {
|
|
4341
5473
|
setItems(list);
|
|
4342
5474
|
setItemsTotal(total);
|
|
@@ -4386,6 +5518,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4386
5518
|
});
|
|
4387
5519
|
// 获取数据源 (type: 1下拉框 2/3弹框 不传值默认为下拉框)
|
|
4388
5520
|
var getData = function getData() {
|
|
5521
|
+
var _method$toLocaleLower;
|
|
4389
5522
|
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
4390
5523
|
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
4391
5524
|
var callback = arguments.length > 2 ? arguments[2] : undefined;
|
|
@@ -4420,96 +5553,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4420
5553
|
});
|
|
4421
5554
|
}
|
|
4422
5555
|
// 数组对象处理,对带有特殊标记的name进行处理
|
|
4423
|
-
|
|
4424
|
-
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
4425
|
-
var element = params[key];
|
|
4426
|
-
if (element && key.indexOf('*number*') >= 0) {
|
|
4427
|
-
var dataParams = key.split('*number*');
|
|
4428
|
-
dataParams.forEach(function (value, index) {
|
|
4429
|
-
params[value] = element[index];
|
|
4430
|
-
});
|
|
4431
|
-
delete params[key];
|
|
4432
|
-
} else if (element && key.indexOf('*address*') >= 0) {
|
|
4433
|
-
var _dataParams = key.split('*address*');
|
|
4434
|
-
_dataParams.forEach(function (value, index) {
|
|
4435
|
-
params[value] = element.PCDCode[index];
|
|
4436
|
-
});
|
|
4437
|
-
delete params[key];
|
|
4438
|
-
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
4439
|
-
var _dataParams2 = key.split('*costType*');
|
|
4440
|
-
// eslint-disable-next-line prefer-destructuring
|
|
4441
|
-
params[_dataParams2[0]] = element[1];
|
|
4442
|
-
delete params[key];
|
|
4443
|
-
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
4444
|
-
var _dataParams3 = key.split('*fullDate*');
|
|
4445
|
-
_dataParams3.forEach(function (value, index) {
|
|
4446
|
-
if (index === 0) {
|
|
4447
|
-
params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
4448
|
-
} else {
|
|
4449
|
-
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
4450
|
-
}
|
|
4451
|
-
});
|
|
4452
|
-
delete params[key];
|
|
4453
|
-
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
4454
|
-
var _dataParams4 = key.split('*checkBox*');
|
|
4455
|
-
if (element) {
|
|
4456
|
-
params[_dataParams4[0]] = 0;
|
|
4457
|
-
}
|
|
4458
|
-
delete params[key];
|
|
4459
|
-
} else if (element && key.indexOf('*cascader*') >= 0) {
|
|
4460
|
-
var _dataParams5 = key.split('*cascader*');
|
|
4461
|
-
params[_dataParams5[0]] = element[element.length - 1];
|
|
4462
|
-
delete params[key];
|
|
4463
|
-
} else if (element && key.indexOf('*date*') >= 0) {
|
|
4464
|
-
var _dataParams6 = key.split('*date*');
|
|
4465
|
-
_dataParams6.forEach(function (value, index) {
|
|
4466
|
-
if (index === 0) {
|
|
4467
|
-
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
4468
|
-
} else {
|
|
4469
|
-
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
4470
|
-
}
|
|
4471
|
-
});
|
|
4472
|
-
delete params[key];
|
|
4473
|
-
} else if (element && key.indexOf('*multiInput') >= 0) {
|
|
4474
|
-
var name = '',
|
|
4475
|
-
_value = element['value'];
|
|
4476
|
-
if (_value.indexOf(',') >= 0) {
|
|
4477
|
-
name = "qp-".concat(element['name'], "-in");
|
|
4478
|
-
} else {
|
|
4479
|
-
name = "qp-".concat(element['name'], "-like");
|
|
4480
|
-
}
|
|
4481
|
-
params[name] = _value;
|
|
4482
|
-
delete params[key];
|
|
4483
|
-
} else if (element && key.indexOf('*') >= 0) {
|
|
4484
|
-
var _dataParams7 = key.split('*');
|
|
4485
|
-
_dataParams7.forEach(function (value, index) {
|
|
4486
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
4487
|
-
});
|
|
4488
|
-
delete params[key];
|
|
4489
|
-
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
4490
|
-
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
4491
|
-
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
4492
|
-
if (params[key][0] === 'range') {
|
|
4493
|
-
if (params[key][1][0]) {
|
|
4494
|
-
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
4495
|
-
}
|
|
4496
|
-
if (params[key][1][1]) {
|
|
4497
|
-
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
4498
|
-
}
|
|
4499
|
-
} else {
|
|
4500
|
-
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
4501
|
-
}
|
|
4502
|
-
delete params[key];
|
|
4503
|
-
} else if (Array.isArray(element)) {
|
|
4504
|
-
params[key] = element.join(',');
|
|
4505
|
-
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
4506
|
-
delete params[key];
|
|
4507
|
-
}
|
|
4508
|
-
}
|
|
4509
|
-
};
|
|
4510
|
-
for (var key in params) {
|
|
4511
|
-
_loop();
|
|
4512
|
-
}
|
|
5556
|
+
handleParams(params);
|
|
4513
5557
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
4514
5558
|
pageSize: pageSize,
|
|
4515
5559
|
currentPage: currentPage
|
|
@@ -4517,9 +5561,17 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4517
5561
|
if (isNil(queryParams[selectParamsKey])) {
|
|
4518
5562
|
queryParams[selectParamsKey] = searchValue;
|
|
4519
5563
|
}
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
5564
|
+
var getRequest;
|
|
5565
|
+
var methodName = method === null || method === void 0 ? void 0 : (_method$toLocaleLower = method.toLocaleLowerCase) === null || _method$toLocaleLower === void 0 ? void 0 : _method$toLocaleLower.call(method);
|
|
5566
|
+
if (['post', 'patch', 'put'].includes(methodName)) {
|
|
5567
|
+
getRequest = requestUtil[methodName]("".concat(url).concat(convertUrlQueryParams(queryParams)), convertBodyParams(queryParams));
|
|
5568
|
+
} else {
|
|
5569
|
+
getRequest = requestUtil.get("".concat(url).concat(convertUrlQueryParams(queryParams)), {
|
|
5570
|
+
headers: _objectSpread2({}, extralHeaders)
|
|
5571
|
+
});
|
|
5572
|
+
}
|
|
5573
|
+
if (!url || !getRequest) return;
|
|
5574
|
+
getRequest.then(function (result) {
|
|
4523
5575
|
setFetching(false);
|
|
4524
5576
|
result = result.data;
|
|
4525
5577
|
if (judgeIsRequestError(result)) {
|
|
@@ -4527,66 +5579,15 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4527
5579
|
return;
|
|
4528
5580
|
}
|
|
4529
5581
|
var res = result.data;
|
|
4530
|
-
var source =
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
}
|
|
4539
|
-
var keys = res.list ? 'list' : 'items';
|
|
4540
|
-
source = res ? res[keys] ? res[keys].map(function (item, index) {
|
|
4541
|
-
var _item$children;
|
|
4542
|
-
var textShowText = item[mappingTextField];
|
|
4543
|
-
if (mappingTextShowTextField) {
|
|
4544
|
-
textShowText = [];
|
|
4545
|
-
if (Array.isArray(mappingTextShowTextField)) {
|
|
4546
|
-
mappingTextShowTextField.forEach(function (r) {
|
|
4547
|
-
textShowText.push(item[r]);
|
|
4548
|
-
});
|
|
4549
|
-
} else {
|
|
4550
|
-
textShowText = item[mappingTextShowTextField];
|
|
4551
|
-
}
|
|
4552
|
-
}
|
|
4553
|
-
if (!(item === null || item === void 0 ? void 0 : (_item$children = item.children) === null || _item$children === void 0 ? void 0 : _item$children.length)) {
|
|
4554
|
-
item === null || item === void 0 ? true : delete item.children;
|
|
4555
|
-
}
|
|
4556
|
-
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
4557
|
-
text: specialBracket ? "\u3010".concat(item[mappingValueField], "\u3011").concat(item[mappingTextField]) : item[mappingTextField],
|
|
4558
|
-
textShowText: textShowText,
|
|
4559
|
-
textShowKey: item[mappingTextShowKeyField || mappingValueField],
|
|
4560
|
-
value: item[mappingValueField],
|
|
4561
|
-
keyIndex: index + 1
|
|
4562
|
-
});
|
|
4563
|
-
}) : Array.isArray(res) && (res === null || res === void 0 ? void 0 : res.map(function (item, index) {
|
|
4564
|
-
var _item$children2;
|
|
4565
|
-
var textShowText = item[mappingTextField];
|
|
4566
|
-
if (mappingTextShowTextField) {
|
|
4567
|
-
textShowText = [];
|
|
4568
|
-
if (Array.isArray(mappingTextShowTextField)) {
|
|
4569
|
-
mappingTextShowTextField.forEach(function (r) {
|
|
4570
|
-
textShowText.push(item[r]);
|
|
4571
|
-
});
|
|
4572
|
-
} else {
|
|
4573
|
-
textShowText = item[mappingTextShowTextField];
|
|
4574
|
-
}
|
|
4575
|
-
}
|
|
4576
|
-
if (!(item === null || item === void 0 ? void 0 : (_item$children2 = item.children) === null || _item$children2 === void 0 ? void 0 : _item$children2.length)) {
|
|
4577
|
-
item === null || item === void 0 ? true : delete item.children;
|
|
4578
|
-
}
|
|
4579
|
-
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
4580
|
-
text: specialBracket ? "\u3010".concat(item[mappingValueField], "\u3011").concat(item[mappingTextField]) : item[mappingTextField],
|
|
4581
|
-
textShowText: textShowText,
|
|
4582
|
-
textShowKey: item[mappingTextShowKeyField || mappingValueField],
|
|
4583
|
-
value: item[mappingValueField],
|
|
4584
|
-
keyIndex: index + 1
|
|
4585
|
-
});
|
|
4586
|
-
})) : [];
|
|
4587
|
-
}
|
|
4588
|
-
// 数据源 不可以有重复key
|
|
4589
|
-
source = Array.isArray(source) ? _.uniqBy(source, 'value') : [];
|
|
5582
|
+
var source = convertResData(requestConfig, res, {
|
|
5583
|
+
selectMode: selectMode,
|
|
5584
|
+
labelInValue: labelInValue,
|
|
5585
|
+
value: value,
|
|
5586
|
+
type: type,
|
|
5587
|
+
items: items,
|
|
5588
|
+
queryParams: queryParams,
|
|
5589
|
+
needTopSelectedSource: needTopSelectedSource
|
|
5590
|
+
});
|
|
4590
5591
|
if (callback) {
|
|
4591
5592
|
callback(source);
|
|
4592
5593
|
} else {
|
|
@@ -4661,7 +5662,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4661
5662
|
}
|
|
4662
5663
|
}, [value]);
|
|
4663
5664
|
useEffect(function () {
|
|
4664
|
-
makeUniqueValue();
|
|
5665
|
+
setUniqueValue(makeUniqueValue());
|
|
5666
|
+
setTabletShowColumns(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns));
|
|
4665
5667
|
}, [resultSourceKey]);
|
|
4666
5668
|
useEffect(function () {
|
|
4667
5669
|
if (init) {
|
|
@@ -4828,12 +5830,11 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4828
5830
|
};
|
|
4829
5831
|
var onSearchTable = function onSearchTable() {
|
|
4830
5832
|
var params = form.getFieldsValue();
|
|
4831
|
-
// const isHaveParams = params && Object.keys(params).filter(item => params[item]).length > 0;
|
|
4832
5833
|
setModalSearched(true);
|
|
4833
5834
|
setTableFormParams(params);
|
|
4834
5835
|
getData(_objectSpread2(_objectSpread2({}, params), {}, {
|
|
4835
5836
|
pageSize: tableInitPageSize
|
|
4836
|
-
}), 2);
|
|
5837
|
+
}), 2, null);
|
|
4837
5838
|
};
|
|
4838
5839
|
var onResetTable = function onResetTable() {
|
|
4839
5840
|
form.resetFields();
|
|
@@ -4852,28 +5853,6 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4852
5853
|
currentPage: pagination.current
|
|
4853
5854
|
}), 2);
|
|
4854
5855
|
};
|
|
4855
|
-
var LightHeightOption = function LightHeightOption(props) {
|
|
4856
|
-
var filterTxt = props.filterTxt,
|
|
4857
|
-
text = props.text;
|
|
4858
|
-
var heightLightTxt = function heightLightTxt(text, heightTxt) {
|
|
4859
|
-
if (heightTxt === '') {
|
|
4860
|
-
return text;
|
|
4861
|
-
}
|
|
4862
|
-
var searchString = escapeRegExp(heightTxt);
|
|
4863
|
-
// 前面filterOption 不区分大小写,这里用i
|
|
4864
|
-
var regexp = new RegExp(searchString, 'gi');
|
|
4865
|
-
return text.replace(regexp, "<span style=\"color:red\">".concat(heightTxt, "</span>"));
|
|
4866
|
-
};
|
|
4867
|
-
return /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
4868
|
-
title: text
|
|
4869
|
-
}, /*#__PURE__*/React$1.createElement("div", {
|
|
4870
|
-
ref: function ref(nodeElement) {
|
|
4871
|
-
if (nodeElement) {
|
|
4872
|
-
nodeElement.innerHTML = heightLightTxt(text, filterTxt);
|
|
4873
|
-
}
|
|
4874
|
-
}
|
|
4875
|
-
}));
|
|
4876
|
-
};
|
|
4877
5856
|
var onChangeSelectedKeys = function onChangeSelectedKeys(selectKeys, selectRows) {
|
|
4878
5857
|
var sksResult = (selectRows === null || selectRows === void 0 ? void 0 : selectRows.map(function (i) {
|
|
4879
5858
|
return i.value;
|
|
@@ -4889,12 +5868,6 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4889
5868
|
setIndeterminate(!!selectRows.length && selectRows.length < (tablePagination === null || tablePagination === void 0 ? void 0 : tablePagination.total));
|
|
4890
5869
|
setCheckedAll(selectRows.length === (tablePagination === null || tablePagination === void 0 ? void 0 : tablePagination.total));
|
|
4891
5870
|
};
|
|
4892
|
-
// 生成唯一值
|
|
4893
|
-
var makeUniqueValue = function makeUniqueValue() {
|
|
4894
|
-
var generateUnitKey = ((1 + Math.random()) * 0x10000 | 0).toString(16);
|
|
4895
|
-
setUniqueValue(generateUnitKey);
|
|
4896
|
-
return generateUnitKey;
|
|
4897
|
-
};
|
|
4898
5871
|
var rowSelection = {
|
|
4899
5872
|
type: selectMode ? 'checkbox' : 'radio',
|
|
4900
5873
|
selectedRowKeys: selectedRowKeys,
|
|
@@ -4960,7 +5933,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4960
5933
|
};
|
|
4961
5934
|
})) || [];
|
|
4962
5935
|
return list === null || list === void 0 ? void 0 : (_list$concat = list.concat(addKong)) === null || _list$concat === void 0 ? void 0 : _list$concat.map(function (i, index) {
|
|
4963
|
-
var _i$field, _i$field3, _i$field5, _i$field6, _i$field7;
|
|
5936
|
+
var _i$field, _i$field3, _i$field5, _i$field6, _i$field7, _i$field8, _i$field9;
|
|
4964
5937
|
if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React$1.createElement(Col, {
|
|
4965
5938
|
span: ColSpan,
|
|
4966
5939
|
key: i
|
|
@@ -5035,6 +6008,30 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5035
6008
|
}
|
|
5036
6009
|
})));
|
|
5037
6010
|
}
|
|
6011
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field7 = i.field) === null || _i$field7 === void 0 ? void 0 : _i$field7.type) === 'proppertySelector') {
|
|
6012
|
+
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6013
|
+
span: ColSpan,
|
|
6014
|
+
key: i.name
|
|
6015
|
+
}, /*#__PURE__*/React$1.createElement(Form.Item, {
|
|
6016
|
+
name: i.name,
|
|
6017
|
+
label: i.label,
|
|
6018
|
+
key: i.name
|
|
6019
|
+
}, /*#__PURE__*/React$1.createElement(PropertySelector, null)));
|
|
6020
|
+
}
|
|
6021
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field8 = i.field) === null || _i$field8 === void 0 ? void 0 : _i$field8.type) === 'multipleQuerySearchSelect') {
|
|
6022
|
+
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6023
|
+
span: ColSpan,
|
|
6024
|
+
key: i.name
|
|
6025
|
+
}, /*#__PURE__*/React$1.createElement(Form.Item, {
|
|
6026
|
+
name: i.name,
|
|
6027
|
+
label: i.label,
|
|
6028
|
+
key: i.name
|
|
6029
|
+
}, /*#__PURE__*/React$1.createElement(QueryMutipleSearchSelect, _objectSpread2(_objectSpread2({}, i.field.props), {}, {
|
|
6030
|
+
onValueChange: function onValueChange(value) {
|
|
6031
|
+
form.setFieldsValue(_defineProperty({}, i.name, value));
|
|
6032
|
+
}
|
|
6033
|
+
}))));
|
|
6034
|
+
}
|
|
5038
6035
|
// 默认type是input
|
|
5039
6036
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
5040
6037
|
span: ColSpan,
|
|
@@ -5050,7 +6047,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5050
6047
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
5051
6048
|
allowClear: true,
|
|
5052
6049
|
maxLength: 100
|
|
5053
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6050
|
+
}, i === null || i === void 0 ? void 0 : (_i$field9 = i.field) === null || _i$field9 === void 0 ? void 0 : _i$field9.props), {}, {
|
|
5054
6051
|
disabled: setDisabled(i.name)
|
|
5055
6052
|
}))));
|
|
5056
6053
|
});
|
|
@@ -5062,13 +6059,6 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5062
6059
|
var viCount = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.visibleFieldsCount) || defaultVisibleFieldsCount;
|
|
5063
6060
|
return collapsed ? formItem(list === null || list === void 0 ? void 0 : list.slice(0, viCount)) : formItem(list);
|
|
5064
6061
|
};
|
|
5065
|
-
// const queryFieldsDom = <SearchItemTable
|
|
5066
|
-
// ref={searchTableRef}
|
|
5067
|
-
// setShowSearchFields={setShowSearchFields||[]}
|
|
5068
|
-
// showSearchFields={showSearchFields||[]}
|
|
5069
|
-
// datasource={modalTableProps?.tableSearchForm || []}
|
|
5070
|
-
// bsTableCode={bsTableCode}
|
|
5071
|
-
// />
|
|
5072
6062
|
var renderShowTable = function renderShowTable(tableList, type) {
|
|
5073
6063
|
var tableBoxHeighth = getTableHeigth(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm);
|
|
5074
6064
|
var oSY = "calc(100vh - ".concat(tableBoxHeighth, "px - 82px)"); // 分页 24+16*2+10 「高 + margin * 2 + paddingBottom 10 」
|
|
@@ -5083,7 +6073,9 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5083
6073
|
columns: tableShowColumns,
|
|
5084
6074
|
dataSource: tableList
|
|
5085
6075
|
}, type == 'noPage' ? {
|
|
5086
|
-
pagination: initPagination,
|
|
6076
|
+
pagination: _objectSpread2(_objectSpread2({}, initPagination), {}, {
|
|
6077
|
+
showSizeChanger: false
|
|
6078
|
+
}),
|
|
5087
6079
|
locale: {
|
|
5088
6080
|
emptyText: '暂无已选结果'
|
|
5089
6081
|
}
|
|
@@ -5128,9 +6120,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5128
6120
|
})) || [], 'noPage')
|
|
5129
6121
|
}];
|
|
5130
6122
|
var resetSelectDataSource = function resetSelectDataSource() {
|
|
6123
|
+
var isClear = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
5131
6124
|
setSearchValue('');
|
|
5132
6125
|
// 有关联值 不需要清空下拉框数据 也不需要重新去请求了
|
|
5133
|
-
if (isHaveDependency) return;
|
|
6126
|
+
if (!isClear && isHaveDependency) return; // 清空时需要放开:级联首次回之后,清空数据需要重新查询下拉框的值
|
|
5134
6127
|
clearSelectDataSource();
|
|
5135
6128
|
init && run('init');
|
|
5136
6129
|
};
|
|
@@ -5142,14 +6135,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5142
6135
|
formaData([], items);
|
|
5143
6136
|
onChangeSelectedKeys([], []);
|
|
5144
6137
|
// 重置下拉框数据源
|
|
5145
|
-
resetSelectDataSource();
|
|
6138
|
+
resetSelectDataSource(true);
|
|
5146
6139
|
};
|
|
5147
6140
|
var onDeselect = function onDeselect() {
|
|
5148
|
-
var oldSelect = (value
|
|
5149
|
-
return {
|
|
5150
|
-
value: (s === null || s === void 0 ? void 0 : s.value) || s
|
|
5151
|
-
};
|
|
5152
|
-
})) || [];
|
|
6141
|
+
var oldSelect = formatSelectedValue(value);
|
|
5153
6142
|
var deRecord = arguments.length <= 1 ? undefined : arguments[1];
|
|
5154
6143
|
var srs = oldSelect.filter(function (s) {
|
|
5155
6144
|
return s.value != (deRecord === null || deRecord === void 0 ? void 0 : deRecord.value);
|
|
@@ -5162,13 +6151,20 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5162
6151
|
nr && setSelectOpen(false);
|
|
5163
6152
|
};
|
|
5164
6153
|
var onDropdownVisibleChange = function onDropdownVisibleChange(visible) {
|
|
6154
|
+
// 阻止maxTagPlaceholder点击事件触发下拉框展示事件
|
|
6155
|
+
if (isMaxTagsOpen && !selectOpen) return;
|
|
5165
6156
|
setSelectOpen(visible);
|
|
5166
6157
|
// 关闭下拉框 如果首次本身就不展示数据的 没有选中数据-需要清空查询数据源; 首次展示的默认展示
|
|
5167
6158
|
if (!visible && !(value === null || value === void 0 ? void 0 : value.length)) {
|
|
5168
|
-
|
|
6159
|
+
setTimeout(function () {
|
|
6160
|
+
// 延时 是为了避免 执行时候出现下拉框弹两次的问题-可以看到数据源从展示到显示空数据框的问题
|
|
6161
|
+
resetSelectDataSource();
|
|
6162
|
+
}, 200);
|
|
5169
6163
|
}
|
|
5170
6164
|
};
|
|
5171
6165
|
var renderTable = function renderTable(dataSource) {
|
|
6166
|
+
var currentSRKs = getCurrentSRKs(selectMode, labelInValue, value);
|
|
6167
|
+
var renderSource = getRenderSource(currentSRKs, items);
|
|
5172
6168
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
5173
6169
|
className: "search_select_dropdown_table ".concat(!selectMode ? 'search_select_dropdown_table1' : '')
|
|
5174
6170
|
}, /*#__PURE__*/React$1.createElement(Table, _objectSpread2(_objectSpread2({
|
|
@@ -5178,16 +6174,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5178
6174
|
rowSelection: {
|
|
5179
6175
|
type: 'checkbox',
|
|
5180
6176
|
columnWidth: '24px',
|
|
5181
|
-
selectedRowKeys:
|
|
5182
|
-
return (s === null || s === void 0 ? void 0 : s.value) || s;
|
|
5183
|
-
}) : value,
|
|
6177
|
+
selectedRowKeys: currentSRKs,
|
|
5184
6178
|
preserveSelectedRowKeys: true,
|
|
5185
6179
|
onChange: function onChange(sks, srs) {
|
|
5186
|
-
var oldSelect = (value
|
|
5187
|
-
return {
|
|
5188
|
-
value: (s === null || s === void 0 ? void 0 : s.value) || s
|
|
5189
|
-
};
|
|
5190
|
-
})) || [];
|
|
6180
|
+
var oldSelect = formatSelectedValue(value);
|
|
5191
6181
|
var tmpSelectedRows = oldSelect.concat(srs).filter(function (item) {
|
|
5192
6182
|
return item != undefined;
|
|
5193
6183
|
});
|
|
@@ -5206,11 +6196,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5206
6196
|
onClick: function onClick(event) {
|
|
5207
6197
|
event.stopPropagation();
|
|
5208
6198
|
event.nativeEvent.stopImmediatePropagation();
|
|
5209
|
-
var oldSelect = (value
|
|
5210
|
-
return {
|
|
5211
|
-
value: (s === null || s === void 0 ? void 0 : s.value) || s
|
|
5212
|
-
};
|
|
5213
|
-
})) || [];
|
|
6199
|
+
var oldSelect = formatSelectedValue(value);
|
|
5214
6200
|
var newSelect = [JSON.parse(JSON.stringify(record))];
|
|
5215
6201
|
var srs = getRealStr(oldSelect, newSelect, record);
|
|
5216
6202
|
onSelectClick(srs, dataSource, false);
|
|
@@ -5221,7 +6207,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5221
6207
|
rowSelection: {
|
|
5222
6208
|
type: 'radio',
|
|
5223
6209
|
columnWidth: 0,
|
|
5224
|
-
selectedRowKeys:
|
|
6210
|
+
selectedRowKeys: currentSRKs
|
|
5225
6211
|
},
|
|
5226
6212
|
onRow: function onRow(record, rowKey) {
|
|
5227
6213
|
return {
|
|
@@ -5233,7 +6219,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5233
6219
|
}
|
|
5234
6220
|
}), {}, {
|
|
5235
6221
|
columns: (selectProps === null || selectProps === void 0 ? void 0 : selectProps.renderTableColumns) || [],
|
|
5236
|
-
dataSource:
|
|
6222
|
+
dataSource: renderSource,
|
|
5237
6223
|
size: "middle",
|
|
5238
6224
|
pagination: false,
|
|
5239
6225
|
rowKey: mappingValueField,
|
|
@@ -5243,76 +6229,6 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5243
6229
|
}
|
|
5244
6230
|
})));
|
|
5245
6231
|
};
|
|
5246
|
-
var maxTagPlaceholder = function maxTagPlaceholder(selectedValues) {
|
|
5247
|
-
var _onClose = function onClose(e, item) {
|
|
5248
|
-
e.preventDefault();
|
|
5249
|
-
var newValue = labelInValue ? JSON.parse(JSON.stringify(value)).filter(function (i) {
|
|
5250
|
-
return i.value !== item.value;
|
|
5251
|
-
}) : JSON.parse(JSON.stringify(value)).filter(function (i) {
|
|
5252
|
-
return i !== item.value;
|
|
5253
|
-
});
|
|
5254
|
-
onChange(newValue);
|
|
5255
|
-
};
|
|
5256
|
-
return /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
5257
|
-
title: selectedValues.map(function (i) {
|
|
5258
|
-
return /*#__PURE__*/React$1.createElement(Tag, {
|
|
5259
|
-
closable: true,
|
|
5260
|
-
onClose: function onClose(e) {
|
|
5261
|
-
return _onClose(e, i);
|
|
5262
|
-
},
|
|
5263
|
-
style: {
|
|
5264
|
-
marginRight: 3,
|
|
5265
|
-
background: '#f5f5f5',
|
|
5266
|
-
height: '24px',
|
|
5267
|
-
border: '1px solid #f0f0f0'
|
|
5268
|
-
}
|
|
5269
|
-
}, i.label);
|
|
5270
|
-
})
|
|
5271
|
-
}, "+ ".concat(selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.length));
|
|
5272
|
-
};
|
|
5273
|
-
var handleSelectOptionsShowValue = function handleSelectOptionsShowValue(specialBracket, noNeedSplit, item) {
|
|
5274
|
-
var showText = Array.isArray(item.textShowText) && item.textShowText.join(' ') || item.textShowText;
|
|
5275
|
-
if (noNeedSplit) {
|
|
5276
|
-
return item.text;
|
|
5277
|
-
} else {
|
|
5278
|
-
return specialBracket ? "\u3010".concat(item.textShowKey || '', "\u3011").concat(showText) : "".concat(item.textShowKey || '', " ").concat(showText);
|
|
5279
|
-
}
|
|
5280
|
-
};
|
|
5281
|
-
var getShowLabelTextStr = function getShowLabelTextStr(kongValue) {
|
|
5282
|
-
if (selectMode) {
|
|
5283
|
-
var _value$map;
|
|
5284
|
-
return Array.isArray(value) && (value === null || value === void 0 ? void 0 : (_value$map = value.map(function (item) {
|
|
5285
|
-
return item.label || item.text || '';
|
|
5286
|
-
})) === null || _value$map === void 0 ? void 0 : _value$map.join(',')) || kongValue;
|
|
5287
|
-
}
|
|
5288
|
-
return (value === null || value === void 0 ? void 0 : value.label) || (value === null || value === void 0 ? void 0 : value.text) || kongValue;
|
|
5289
|
-
};
|
|
5290
|
-
var getSelectValueText = function getSelectValueText(v) {
|
|
5291
|
-
var _filter, _filter$;
|
|
5292
|
-
return ((_filter = (items || []).filter(function (item) {
|
|
5293
|
-
return item.value === v;
|
|
5294
|
-
})) === null || _filter === void 0 ? void 0 : (_filter$ = _filter[0]) === null || _filter$ === void 0 ? void 0 : _filter$.text) || v || '';
|
|
5295
|
-
};
|
|
5296
|
-
var getShowValueStr = function getShowValueStr(kongValue) {
|
|
5297
|
-
if (selectMode) {
|
|
5298
|
-
var _value$map2;
|
|
5299
|
-
return Array.isArray(value) && (value === null || value === void 0 ? void 0 : (_value$map2 = value.map(function (item) {
|
|
5300
|
-
return getSelectValueText(item);
|
|
5301
|
-
})) === null || _value$map2 === void 0 ? void 0 : _value$map2.join(',')) || kongValue;
|
|
5302
|
-
}
|
|
5303
|
-
return getSelectValueText(value) || kongValue;
|
|
5304
|
-
};
|
|
5305
|
-
var getShowStr = function getShowStr() {
|
|
5306
|
-
// 优先使用业务使用传入的展示
|
|
5307
|
-
if (viewShowValueStr) return viewShowValueStr;
|
|
5308
|
-
var kongValue = '无';
|
|
5309
|
-
// 先判断labelInValue与否,labelInValue可以直接去value中获取字段名称,否则去下拉框数据里面去拿;
|
|
5310
|
-
// 再判断是单选还是多选,数据类型不同取值方式也不同
|
|
5311
|
-
if (labelInValue) {
|
|
5312
|
-
return getShowLabelTextStr(kongValue);
|
|
5313
|
-
}
|
|
5314
|
-
return getShowValueStr(kongValue);
|
|
5315
|
-
};
|
|
5316
6232
|
var isShouldShowStr = props.disabled && ctx || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) == 'view';
|
|
5317
6233
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
5318
6234
|
className: 'search_select'
|
|
@@ -5323,15 +6239,27 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5323
6239
|
showModal();
|
|
5324
6240
|
}
|
|
5325
6241
|
}, fieldComponent)) : isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
5326
|
-
title: getShowStr(
|
|
6242
|
+
title: getShowStr({
|
|
6243
|
+
viewShowValueStr: viewShowValueStr,
|
|
6244
|
+
labelInValue: labelInValue,
|
|
6245
|
+
selectMode: selectMode,
|
|
6246
|
+
value: value,
|
|
6247
|
+
items: items
|
|
6248
|
+
}),
|
|
5327
6249
|
style: {
|
|
5328
6250
|
overflow: 'hidden',
|
|
5329
6251
|
textOverflow: 'ellipsis',
|
|
5330
6252
|
whiteSpace: 'nowrap'
|
|
5331
6253
|
},
|
|
5332
6254
|
className: 'search_select_show'
|
|
5333
|
-
}, getShowStr(
|
|
5334
|
-
|
|
6255
|
+
}, getShowStr({
|
|
6256
|
+
viewShowValueStr: viewShowValueStr,
|
|
6257
|
+
labelInValue: labelInValue,
|
|
6258
|
+
selectMode: selectMode,
|
|
6259
|
+
value: value,
|
|
6260
|
+
items: items
|
|
6261
|
+
}))) : /*#__PURE__*/React$1.createElement("div", {
|
|
6262
|
+
className: "".concat(isFormPage ? '' : 'search_select_show_list', " search_select_show"),
|
|
5335
6263
|
id: "search_select_div_".concat(uniqueValue)
|
|
5336
6264
|
}, /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
5337
6265
|
labelInValue: labelInValue,
|
|
@@ -5362,7 +6290,16 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5362
6290
|
width: 'calc(100%)'
|
|
5363
6291
|
},
|
|
5364
6292
|
placeholder: "\u8BF7\u9009\u62E9",
|
|
5365
|
-
maxTagPlaceholder: maxTagPlaceholder
|
|
6293
|
+
maxTagPlaceholder: function maxTagPlaceholder$1(v) {
|
|
6294
|
+
return maxTagPlaceholder(v, {
|
|
6295
|
+
selectProps: {
|
|
6296
|
+
labelInValue: labelInValue
|
|
6297
|
+
},
|
|
6298
|
+
onChange: onChange,
|
|
6299
|
+
value: value,
|
|
6300
|
+
setIsMaxTagsOpen: setIsMaxTagsOpen
|
|
6301
|
+
});
|
|
6302
|
+
},
|
|
5366
6303
|
onSearch: function onSearch(v) {
|
|
5367
6304
|
return onSearchChange(v);
|
|
5368
6305
|
}
|
|
@@ -5373,7 +6310,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5373
6310
|
}, /*#__PURE__*/React$1.createElement(SearchOutlined, null))
|
|
5374
6311
|
} : {}), currentSelectProps), {}, {
|
|
5375
6312
|
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
5376
|
-
return
|
|
6313
|
+
return highestPopContainer && highestPopContainer(triggerNode) || triggerNode.parentElement;
|
|
5377
6314
|
}
|
|
5378
6315
|
}), items.map(function (item) {
|
|
5379
6316
|
return /*#__PURE__*/React$1.createElement(Option$1, {
|
|
@@ -5458,8 +6395,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5458
6395
|
})) : null)))));
|
|
5459
6396
|
});
|
|
5460
6397
|
|
|
5461
|
-
var css_248z$
|
|
5462
|
-
styleInject(css_248z$
|
|
6398
|
+
var css_248z$8 = ".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";
|
|
6399
|
+
styleInject(css_248z$8);
|
|
5463
6400
|
|
|
5464
6401
|
var shezhi = "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%E8%92%99%E7%89%88%401x%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%221.97175609e-13%200%2024%200%2024%2024%201.97175609e-13%2024%22%3E%3C%2Fpolygon%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22%E3%80%90%E9%94%80%E5%94%AE%E8%AE%A2%E5%8D%95%E3%80%91-%E5%88%97%E8%A1%A8%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%BC%96%E7%BB%84-13%E5%A4%87%E4%BB%BD%22%3E%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%3Cuse%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%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%3Cuse%20id%3D%22%E8%92%99%E7%89%88%22%20fill%3D%22%23FAFAFA%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%3Cpath%20d%3D%22M11.0539833%2C6%20L12.9893599%2C6.00306539%20C13.5902684%2C6.0041207%2014.0770953%2C6.51753931%2014.0778957%2C7.15105962%20L14.0786226%2C7.48365607%20C14.4535346%2C7.64767515%2014.8086815%2C7.85797334%2015.1366285%2C8.11014825%20L15.3957691%2C7.95304625%20C15.9165865%2C7.6370624%2016.5817222%2C7.82488039%2016.8830106%2C8.37300674%20L17.8530614%2C10.1386801%20C18.1419103%2C10.664498%2017.9927093%2C11.3364989%2017.5125078%2C11.6725322%20L17.4532653%2C11.7108498%20L17.1930343%2C11.8691013%20C17.2377388%2C12.3043888%2017.232287%2C12.7465735%2017.1737714%2C13.186076%20L17.3576776%2C13.2983464%20C17.857707%2C13.60263%2018.0460753%2C14.2651041%2017.7872767%2C14.809208%20L17.7571103%2C14.8686002%20L16.8484828%2C16.5277508%20C16.5598628%2C17.0549169%2015.9314906%2C17.253508%2015.4153954%2C16.9806644%20L15.3586971%2C16.9484776%20L15.1075524%2C16.7952074%20C14.7917375%2C17.034765%2014.4508932%2C17.235328%2014.0917069%2C17.3929614%20L14.0917069%2C17.8489404%20C14.0924552%2C18.4564109%2013.6447505%2C18.9596333%2013.0696826%2C18.9977009%20L13.0002635%2C19%20L11.0648868%2C18.9969346%20C10.46412%2C18.9958799%209.97735149%2C18.4826942%209.97635104%2C17.8493235%20L9.97526069%2C17.2994665%20C9.67532321%2C17.1509864%209.38966197%2C16.9723666%209.12224117%2C16.766086%20L8.65847768%2C17.0473369%20C8.13756521%2C17.3632563%207.47240027%2C17.1752586%207.17123614%2C16.6269932%20L6.20118538%2C14.8617031%20C5.91210367%2C14.335799%206.06132792%2C13.6635256%206.54173898%2C13.3274678%20L6.6009815%2C13.2891502%20L7.0727409%2C13.002918%20C7.03639581%2C12.6389012%207.03457855%2C12.2706694%207.06946985%2C11.9032039%20L6.54573694%2C11.5840186%20C6.04557344%2C11.2798633%205.85703718%2C10.6173586%206.1157744%2C10.0731571%20L6.14630429%2C10.0137648%20L7.05493181%2C8.35461431%20C7.3435518%2C7.82744812%207.97192398%2C7.62885707%208.48801915%2C7.9017007%20L8.54435406%2C7.93388746%20L9.00084853%2C8.2116898%20C9.29835141%2C7.96712383%209.62078477%2C7.75828095%209.96217645%2C7.58902938%20L9.96217645%2C7.15144279%20C9.96123583%2C6.54382459%2010.4089927%2C6.0403757%2010.9842007%2C6.00229905%20L11.0536198%2C6%20L11.0539833%2C6%20Z%20M11.0525295%2C7.14952693%20L11.0536198%2C8.31821262%20L10.4270303%2C8.62896808%20C10.1588035%2C8.76193003%209.90547811%2C8.92592919%209.67214254%2C9.11790019%20L9.09280163%2C9.5945707%20L8.02679981%2C8.94547115%20L7.99954099%2C8.92937778%20L7.09091346%2C10.5885283%20L8.22488062%2C11.2786276%20L8.15437112%2C12.0177735%20C8.12711229%2C12.304772%208.12820264%2C12.5944528%208.15691528%2C12.8814513%20L8.23178618%2C13.6255784%20L7.14506767%2C14.2854069%20L8.11475496%2C16.0506971%20L9.19384102%2C15.3966163%20L9.76627637%2C15.8384178%20C9.97702523%2C16.0011688%2010.2022%2C16.142066%2010.4386607%2C16.2591446%20L11.0645234%2C16.5691337%20L11.0667041%2C17.8474077%20L13.0017173%2C17.8504731%20L13.0006269%2C16.6262269%20L13.6730113%2C16.3311816%20C13.9550669%2C16.2075098%2014.2227404%2C16.0501462%2014.4707863%2C15.8621747%20L15.0428581%2C15.428803%20L15.904237%2C15.9529873%20L16.8121377%2C14.2934536%20L15.9921922%2C13.7937926%20L16.0939585%2C13.0270581%20C16.1393899%2C12.6841159%2016.1444782%2C12.3369588%2016.1092234%2C11.9924839%20L16.0328987%2C11.2479736%20L16.9095425%2C10.7145931%20L15.9394918%2C8.9493029%20L15.0672094%2C9.47923482%20L14.4944106%2C9.038966%20C14.2359425%2C8.84023491%2013.9560781%2C8.67444458%2013.6606539%2C8.54505261%20L12.9897234%2C8.25154006%20L12.9875427%2C7.15259232%20L11.0525295%2C7.14952693%20L11.0525295%2C7.14952693%20Z%20M13.2226955%2C10.4494355%20C14.2654163%2C11.0852141%2014.6228641%2C12.4911028%2014.0215608%2C13.5914758%20C13.7329275%2C14.1197135%2013.2568818%2C14.5052495%2012.6983658%2C14.6630942%20C12.1398499%2C14.8209389%2011.5447201%2C14.7381326%2011.0441701%2C14.4329295%20C10.0015813%2C13.7970198%209.64430382%2C12.3911621%2010.2456682%2C11.2908893%20C10.5343004%2C10.7627557%2011.0102799%2C10.3772944%2011.5687082%2C10.2194552%20C12.1271364%2C10.0616161%2012.7221782%2C10.1443543%2013.2226955%2C10.4494355%20L13.2226955%2C10.4494355%20Z%20M11.189914%2C11.8648864%20C10.8889471%2C12.4157197%2011.0678166%2C13.119454%2011.5897101%2C13.4378224%20C11.8397194%2C13.5903842%2012.1370318%2C13.6318051%2012.4160482%2C13.5529458%20C12.6950647%2C13.4740865%2012.9328544%2C13.2814281%2013.0769516%2C13.0174787%20C13.3654467%2C12.4893922%2013.2141569%2C11.8157971%2012.7316732%2C11.480178%20L12.6771555%2C11.4445427%20L12.6208206%2C11.4127391%20C12.1055879%2C11.1395918%2011.4777022%2C11.3379953%2011.189914%2C11.8648864%20L11.189914%2C11.8648864%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%20fill%3D%22%234C4E4D%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%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
5465
6402
|
|
|
@@ -5475,10 +6412,10 @@ var fixedRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
5475
6412
|
|
|
5476
6413
|
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";
|
|
5477
6414
|
|
|
5478
|
-
var css_248z$
|
|
5479
|
-
styleInject(css_248z$
|
|
6415
|
+
var css_248z$9 = ".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: 8px;\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: 12px;\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: #8E8E8E;\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: 12px;\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: 12px;\n color: #848484;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper {\n width: 144px;\n height: 16px;\n line-height: 16px;\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 height: 430px;\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 .ant-modal-body {\n padding: 10px 16px;\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: 22px;\n padding: 6px 4px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-input-prefix {\n width: 24px;\n height: 24px;\n margin: 0 4px;\n display: flex;\n justify-content: center;\n}\n.sort_table_wrapper .ant-modal-footer {\n padding: 8px 16px;\n display: flex;\n justify-content: space-between;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn {\n width: 80px;\n height: 28px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn span {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 12px;\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: 30px;\n}\n.sort_table_wrapper .ant-table-wrapper tr td {\n width: 24px !important;\n height: 30px !important;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\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: 108px !important;\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 30px !important;\n line-height: 30px !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: 30px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child img {\n position: relative;\n top: 1px;\n}\n.sort_table_wrapper .ant-dropdown-link {\n cursor: pointer;\n}\n";
|
|
6416
|
+
styleInject(css_248z$9);
|
|
5480
6417
|
|
|
5481
|
-
var _excluded$
|
|
6418
|
+
var _excluded$4 = ["className", "style"];
|
|
5482
6419
|
var Search = Input.Search;
|
|
5483
6420
|
var DragHandle = SortableHandle(function () {
|
|
5484
6421
|
return /*#__PURE__*/React$1.createElement("img", {
|
|
@@ -5830,7 +6767,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
5830
6767
|
_this.DraggableBodyRow = function (_ref2) {
|
|
5831
6768
|
var className = _ref2.className,
|
|
5832
6769
|
style = _ref2.style,
|
|
5833
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
6770
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$4);
|
|
5834
6771
|
var sortDataSource = _this.state.sortDataSource;
|
|
5835
6772
|
// function findIndex base on Table rowKey props and should always be a right array index
|
|
5836
6773
|
var index = sortDataSource.findIndex(function (x) {
|
|
@@ -6249,7 +7186,7 @@ var formatFormSourceList = function formatFormSourceList(x, loadList, tableSearc
|
|
|
6249
7186
|
});
|
|
6250
7187
|
};
|
|
6251
7188
|
|
|
6252
|
-
var _excluded$
|
|
7189
|
+
var _excluded$5 = ["onResize", "width"],
|
|
6253
7190
|
_excluded2$2 = ["name", "label", "field", "type", "filterFormItem", "initialSource"];
|
|
6254
7191
|
var checkSpuMatchCode = function checkSpuMatchCode(data) {
|
|
6255
7192
|
return new Promise(function (resolve, reject) {
|
|
@@ -6269,7 +7206,7 @@ var checkSpuMatchCode = function checkSpuMatchCode(data) {
|
|
|
6269
7206
|
var ResizeableTitle = function ResizeableTitle(props) {
|
|
6270
7207
|
var onResize = props.onResize,
|
|
6271
7208
|
width = props.width,
|
|
6272
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
7209
|
+
restProps = _objectWithoutProperties(props, _excluded$5);
|
|
6273
7210
|
if (!width) {
|
|
6274
7211
|
return /*#__PURE__*/React$1.createElement("th", _objectSpread2({}, restProps));
|
|
6275
7212
|
}
|
|
@@ -7498,10 +8435,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7498
8435
|
}))))));
|
|
7499
8436
|
};
|
|
7500
8437
|
|
|
7501
|
-
var css_248z$
|
|
7502
|
-
styleInject(css_248z$
|
|
8438
|
+
var css_248z$a = ".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";
|
|
8439
|
+
styleInject(css_248z$a);
|
|
7503
8440
|
|
|
7504
|
-
var _excluded$
|
|
8441
|
+
var _excluded$6 = ["onResize", "width"];
|
|
7505
8442
|
var _this = undefined;
|
|
7506
8443
|
var InputElement = function InputElement(_ref) {
|
|
7507
8444
|
var _record$packingUnitLi, _record$packingUnitLi2;
|
|
@@ -7999,7 +8936,7 @@ var InputElement = function InputElement(_ref) {
|
|
|
7999
8936
|
var ResizeableTitle$1 = function ResizeableTitle(props) {
|
|
8000
8937
|
var onResize = props.onResize,
|
|
8001
8938
|
width = props.width,
|
|
8002
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
8939
|
+
restProps = _objectWithoutProperties(props, _excluded$6);
|
|
8003
8940
|
if (!width) {
|
|
8004
8941
|
return /*#__PURE__*/React$1.createElement("th", _objectSpread2({}, restProps));
|
|
8005
8942
|
}
|
|
@@ -8642,6 +9579,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8642
9579
|
hiddenFields = _ref$hiddenFields === void 0 ? [] : _ref$hiddenFields;
|
|
8643
9580
|
// 默认type === 'supplier' 供应商选择器
|
|
8644
9581
|
var requestConfig = _objectSpread2({
|
|
9582
|
+
init: true,
|
|
8645
9583
|
url: "".concat(prefixUrl.selectPrefix, "/supplier"),
|
|
8646
9584
|
filter: 'qp-name,code-orGroup,like',
|
|
8647
9585
|
otherParams: _objectSpread2({
|
|
@@ -8935,7 +9873,8 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8935
9873
|
// 商品选择器sku
|
|
8936
9874
|
if (type === 'skuCommodity') {
|
|
8937
9875
|
requestConfig = _objectSpread2({
|
|
8938
|
-
url: "".concat(prefixUrl.selectPrefix, "/sku/doPageBySelect/
|
|
9876
|
+
url: "".concat(prefixUrl.selectPrefix, "/sku/doPageBySelect/v4"),
|
|
9877
|
+
method: 'post',
|
|
8939
9878
|
filter: 'skuCodeAndSkuName',
|
|
8940
9879
|
searchStartLength: 4,
|
|
8941
9880
|
mappingTextField: 'name',
|
|
@@ -8959,13 +9898,53 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8959
9898
|
tableSearchForm = [{
|
|
8960
9899
|
name: 'qp-skuCode-in',
|
|
8961
9900
|
label: 'SKU编码',
|
|
8962
|
-
|
|
9901
|
+
field: {
|
|
9902
|
+
type: 'multipleQuerySearchSelect',
|
|
9903
|
+
props: {
|
|
9904
|
+
selectProps: {
|
|
9905
|
+
mode: "multiple",
|
|
9906
|
+
placeholder: '请输入SKU编码查询'
|
|
9907
|
+
},
|
|
9908
|
+
requestConfig: {
|
|
9909
|
+
url: '/items/sku//listNoPage/Simple',
|
|
9910
|
+
filter: 'qp-skuCode,name-orGroup,like',
|
|
9911
|
+
mappingTextField: 'name',
|
|
9912
|
+
mappingValueField: 'skuCode',
|
|
9913
|
+
sourceName: 'qp-skuCode-in',
|
|
9914
|
+
specialBracket: true,
|
|
9915
|
+
otherParams: {
|
|
9916
|
+
'ownOrgSign': getCurrentTargetBgId(),
|
|
9917
|
+
'ctl-count': true
|
|
9918
|
+
} // 默认参数
|
|
9919
|
+
}
|
|
9920
|
+
}
|
|
9921
|
+
}
|
|
8963
9922
|
}, {
|
|
8964
9923
|
name: 'qp-skuName-like',
|
|
8965
9924
|
label: 'SKU名称'
|
|
8966
9925
|
}, {
|
|
8967
|
-
name: 'qp-itemCode-
|
|
8968
|
-
label: '
|
|
9926
|
+
name: 'qp-itemCode-in',
|
|
9927
|
+
label: 'SPU编码',
|
|
9928
|
+
field: {
|
|
9929
|
+
type: 'multipleQuerySearchSelect',
|
|
9930
|
+
props: {
|
|
9931
|
+
selectProps: {
|
|
9932
|
+
placeholder: '请输入SPU编码查询'
|
|
9933
|
+
},
|
|
9934
|
+
requestConfig: {
|
|
9935
|
+
url: '/items/item/listNoPage/Simple',
|
|
9936
|
+
filter: 'qp-itemCode,name-orGroup,like',
|
|
9937
|
+
mappingTextField: 'name',
|
|
9938
|
+
mappingValueField: 'itemCode',
|
|
9939
|
+
sourceName: 'qp-itemCode-in',
|
|
9940
|
+
specialBracket: true,
|
|
9941
|
+
otherParams: {
|
|
9942
|
+
'ownOrgSign': getCurrentTargetBgId(),
|
|
9943
|
+
'ctl-count': true
|
|
9944
|
+
} // 默认参数
|
|
9945
|
+
}
|
|
9946
|
+
}
|
|
9947
|
+
}
|
|
8969
9948
|
}, {
|
|
8970
9949
|
name: 'qp-eancode-in',
|
|
8971
9950
|
label: '商品条码',
|
|
@@ -9018,6 +9997,12 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9018
9997
|
}
|
|
9019
9998
|
}
|
|
9020
9999
|
}
|
|
10000
|
+
}, {
|
|
10001
|
+
name: 'UNIQUE_SPEC',
|
|
10002
|
+
label: '属性',
|
|
10003
|
+
field: {
|
|
10004
|
+
type: 'proppertySelector'
|
|
10005
|
+
}
|
|
9021
10006
|
}];
|
|
9022
10007
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
|
|
9023
10008
|
pageSize: 5000,
|
|
@@ -9424,6 +10409,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9424
10409
|
}]
|
|
9425
10410
|
}, selectConfigProps);
|
|
9426
10411
|
requestConfig = _objectSpread2({
|
|
10412
|
+
init: true,
|
|
9427
10413
|
url: "".concat(prefixUrl.selectPrefix, "/skuPropertyValue/list"),
|
|
9428
10414
|
filter: 'qp-value-like',
|
|
9429
10415
|
mappingTextField: 'value',
|
|
@@ -10346,6 +11332,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10346
11332
|
}]
|
|
10347
11333
|
}, selectConfigProps);
|
|
10348
11334
|
requestConfig = _objectSpread2({
|
|
11335
|
+
init: true,
|
|
10349
11336
|
url: "".concat(prefixUrl.selectPrefix, "/inventoryOrg"),
|
|
10350
11337
|
filter: 'qp-name,code-orGroup,like',
|
|
10351
11338
|
mappingTextField: 'name',
|
|
@@ -10371,6 +11358,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10371
11358
|
}]
|
|
10372
11359
|
}, selectConfigProps);
|
|
10373
11360
|
requestConfig = _objectSpread2({
|
|
11361
|
+
init: true,
|
|
10374
11362
|
url: "".concat(prefixUrl.selectPrefix, "/company"),
|
|
10375
11363
|
filter: 'qp-name,code-orGroup,like',
|
|
10376
11364
|
mappingTextField: 'name',
|
|
@@ -10396,6 +11384,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10396
11384
|
}]
|
|
10397
11385
|
}, selectConfigProps);
|
|
10398
11386
|
requestConfig = _objectSpread2({
|
|
11387
|
+
init: true,
|
|
10399
11388
|
url: "".concat(prefixUrl.selectPrefix, "/platCompany"),
|
|
10400
11389
|
filter: 'qp-name,socialCreditCode-orGroup,like',
|
|
10401
11390
|
mappingTextField: 'name',
|
|
@@ -10421,6 +11410,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10421
11410
|
}]
|
|
10422
11411
|
}, selectConfigProps);
|
|
10423
11412
|
requestConfig = _objectSpread2({
|
|
11413
|
+
init: true,
|
|
10424
11414
|
url: "".concat(prefixUrl.selectPrefix, "/employee/v2"),
|
|
10425
11415
|
filter: 'qp-employeeNumber,name-orGroup,like',
|
|
10426
11416
|
mappingTextField: 'name',
|
|
@@ -10514,6 +11504,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10514
11504
|
}]
|
|
10515
11505
|
}, selectConfigProps);
|
|
10516
11506
|
requestConfig = _objectSpread2({
|
|
11507
|
+
init: true,
|
|
10517
11508
|
url: "".concat(prefixUrl.selectPrefix, "/employee/pageList/v2"),
|
|
10518
11509
|
filter: 'qp-username,name-orGroup,like',
|
|
10519
11510
|
mappingTextField: 'name',
|
|
@@ -10656,6 +11647,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10656
11647
|
});
|
|
10657
11648
|
var logisCompanyCodeSingleSearchName = isLogisCompanyCodeSingleSearch ? 'qp-logisCompanyCode-eq' : 'qp-logisCompanyCode-in';
|
|
10658
11649
|
requestConfig = _objectSpread2({
|
|
11650
|
+
init: true,
|
|
10659
11651
|
url: "".concat(prefixUrl.selectPrefix, "/deliveryMode"),
|
|
10660
11652
|
filter: 'qp-name,code-orGroup,like',
|
|
10661
11653
|
mappingTextField: 'name',
|
|
@@ -10792,6 +11784,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10792
11784
|
}]
|
|
10793
11785
|
}, selectConfigProps);
|
|
10794
11786
|
requestConfig = _objectSpread2({
|
|
11787
|
+
init: true,
|
|
10795
11788
|
url: "".concat(prefixUrl.selectPrefix, "/ruleTemplate"),
|
|
10796
11789
|
filter: 'qp-name,code-orGroup,like',
|
|
10797
11790
|
mappingTextField: 'name',
|
|
@@ -10863,6 +11856,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10863
11856
|
}]
|
|
10864
11857
|
}, selectConfigProps);
|
|
10865
11858
|
requestConfig = _objectSpread2({
|
|
11859
|
+
init: true,
|
|
10866
11860
|
url: "".concat(prefixUrl.selectPrefix, "/role"),
|
|
10867
11861
|
filter: 'qp-name,code-orGroup,like',
|
|
10868
11862
|
mappingTextField: 'name',
|
|
@@ -10959,6 +11953,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10959
11953
|
}]
|
|
10960
11954
|
}, selectConfigProps);
|
|
10961
11955
|
requestConfig = _objectSpread2({
|
|
11956
|
+
init: true,
|
|
10962
11957
|
url: "".concat(prefixUrl.selectPrefix, "/channelInfo"),
|
|
10963
11958
|
filter: 'qp-name,code-orGroup,like',
|
|
10964
11959
|
mappingTextField: 'name',
|
|
@@ -11046,6 +12041,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11046
12041
|
}]
|
|
11047
12042
|
}, selectConfigProps);
|
|
11048
12043
|
requestConfig = _objectSpread2({
|
|
12044
|
+
init: true,
|
|
11049
12045
|
url: "".concat(prefixUrl.selectPrefix, "/orgViewNode/common/pageList"),
|
|
11050
12046
|
filter: 'qp-name-like',
|
|
11051
12047
|
mappingTextField: 'name',
|
|
@@ -11174,6 +12170,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11174
12170
|
}]
|
|
11175
12171
|
}, selectConfigProps);
|
|
11176
12172
|
requestConfig = _objectSpread2({
|
|
12173
|
+
init: true,
|
|
11177
12174
|
url: "".concat(prefixUrl.selectPrefix, "/person"),
|
|
11178
12175
|
filter: 'qp-code,name-orGroup,like',
|
|
11179
12176
|
mappingTextField: 'name',
|
|
@@ -11309,6 +12306,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11309
12306
|
}]
|
|
11310
12307
|
}, selectConfigProps);
|
|
11311
12308
|
requestConfig = _objectSpread2({
|
|
12309
|
+
init: true,
|
|
11312
12310
|
url: "".concat(prefixUrl.selectPrefix, "/priceType"),
|
|
11313
12311
|
filter: 'qp-code,name-orGroup,like',
|
|
11314
12312
|
mappingTextField: 'name',
|
|
@@ -12811,7 +13809,7 @@ function getStorageVale(storageKeyString) {
|
|
|
12811
13809
|
return "";
|
|
12812
13810
|
}
|
|
12813
13811
|
|
|
12814
|
-
var _excluded$
|
|
13812
|
+
var _excluded$7 = ["ctx", "value", "valueName", "onChange", "onChangeName", "placeholder", "remoteSource", "initialValue", "treeCheckable", "showSearch", "maxTagCount", "multiple", "isChoose", "rootDisabled", "mode", "getPopupContainer", "labelInValue", "showArrow", "allowClear", "showCheckedStrategy", "style", "getTreeData", "disabled"];
|
|
12815
13813
|
var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
12816
13814
|
var _useState = useState([]),
|
|
12817
13815
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -12853,7 +13851,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12853
13851
|
} : _props$style,
|
|
12854
13852
|
getTreeData = props.getTreeData,
|
|
12855
13853
|
disabled = props.disabled,
|
|
12856
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
13854
|
+
restProps = _objectWithoutProperties(props, _excluded$7);
|
|
12857
13855
|
var url = remoteSource.url,
|
|
12858
13856
|
headers = remoteSource.headers,
|
|
12859
13857
|
_remoteSource$paramsK = remoteSource.paramsKey,
|
|
@@ -13238,8 +14236,8 @@ var BusinessTreeSearchSelect$1 = /*#__PURE__*/React$1.memo(BusinessTreeSearchSel
|
|
|
13238
14236
|
return true;
|
|
13239
14237
|
});
|
|
13240
14238
|
|
|
13241
|
-
var css_248z$
|
|
13242
|
-
styleInject(css_248z$
|
|
14239
|
+
var css_248z$b = ".state-flow .form-status-label {\n height: 28px;\n margin-right: 12px;\n display: inline-block;\n position: relative;\n background-color: #B0B4B7;\n align-items: center;\n}\n.state-flow .choosed-status-label.form-status-label {\n background-color: #005CFF;\n}\n.state-flow .form-status-label:last-child {\n margin-right: 0px;\n}\n.state-flow .form-status-label:first-child::after {\n position: absolute;\n display: block;\n content: '';\n right: -28px;\n top: 0;\n width: 28px;\n height: 28px;\n border: 14px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.state-flow .choosed-status-label.form-status-label::after {\n border-left: 12px solid #005CFF;\n}\n.state-flow .choosed-status-label.form-status-label:not(:first-child):not(:last-child)::after {\n border-left: 12px solid #005CFF;\n}\n.state-flow .form-status-label:last-child::after {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 28px;\n height: 28px;\n border: 14px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.state-flow .form-status-label:first-child {\n padding-left: 10px;\n}\n.state-flow .form-status-label:not(:first-child) {\n padding-left: 15px;\n}\n.state-flow .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: 28px;\n height: 28px;\n border: 14px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.state-flow .form-status-label:not(:first-child):not(:last-child)::after {\n position: absolute;\n display: block;\n content: '';\n right: -28px;\n top: 0;\n width: 28px;\n height: 28px;\n border: 14px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.state-flow .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.state-flow .status-label-key {\n width: auto;\n height: 100%;\n display: inline-flex;\n float: left;\n align-items: center;\n justify-content: center;\n color: #FFFFFF;\n font-size: 14px;\n}\n.state-flow .status-label-operate {\n float: left;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 12px;\n margin: 8px 0;\n margin-left: 8px;\n padding-left: 8px;\n font-size: 10px;\n border-left: 1px solid #FFFFFF;\n}\n.state-flow .status-label-operate > div {\n font-size: 12px;\n height: 12px;\n line-height: 12px;\n color: #FFFFFF;\n font-family: PingFangSC;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.state-flow .status-label-operate > div:first-child {\n font-size: 10px;\n font-weight: 400;\n}\n.state-flow .only-one-child.form-status-label::after,\n.state-flow .only-one-child.form-status-label::before {\n border-left: 0px;\n}\n";
|
|
14240
|
+
styleInject(css_248z$b);
|
|
13243
14241
|
|
|
13244
14242
|
var index$2 = (function (props) {
|
|
13245
14243
|
var _props$formStatusMapp = props.formStatusMapping,
|
|
@@ -13276,10 +14274,10 @@ var index$2 = (function (props) {
|
|
|
13276
14274
|
}));
|
|
13277
14275
|
});
|
|
13278
14276
|
|
|
13279
|
-
var css_248z$
|
|
13280
|
-
styleInject(css_248z$
|
|
14277
|
+
var css_248z$c = ".guide-wrapper .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.guide-wrapper .form-guide .form-guide-top {\n padding: 0px 10px;\n display: flex;\n justify-content: center;\n}\n.guide-wrapper .form-guide .form-guide-center {\n border-top: 1px solid #6E7588;\n border-bottom: 1px solid #6E7588;\n padding: 0px 10px;\n}\n.guide-wrapper .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.guide-wrapper .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.guide-wrapper .form-guide .form-guide-bottom {\n padding: 5px 10px;\n display: flex;\n justify-content: center;\n}\n.guide-wrapper .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.guide-wrapper .white-card.bitsun-form-card-class .guidewrapper-body-wrapper {\n background-color: #FFFFFF;\n padding: 0px;\n}\n.guide-wrapper .bitsun-form-card-class > .guidewrapper-body-wrapper {\n margin-bottom: 10px;\n}\n.guide-wrapper .bitsun-form-card-class .guidewrapper-body-wrapper {\n padding: 12px 0 0;\n background-color: #F3F3F3;\n}\n.guide-wrapper .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 background-color: #FFFFFF;\n padding: 8px 0;\n margin: 0px;\n}\n.guide-wrapper .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.guide-wrapper .field-group-hidden .guidewrapper-body-wrapper {\n display: none !important;\n}\n.guide-wrapper .bs-guidewrap-icon-wrap {\n cursor: pointer;\n color: #B6B6B6;\n}\n.guide-wrapper .bs-guidewrap-icon-wrap .bs-guidewrap-icon {\n transition: transform 0.3s;\n}\n.guide-wrapper .bs-guidewrap-icon-wrap .bs-guidewrap-icon-toogle {\n transform: rotate(180deg);\n}\n.guidewrapper-head-wrap {\n padding-left: 16px;\n height: 36px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n background: #fff;\n}\n.guidewrapper-head-wrap .guidewrapper-head-left {\n display: flex;\n align-items: center;\n}\n.guidewrapper-head-wrap .guidewrapper-head-left::before {\n content: '';\n display: block;\n width: 3px;\n background: #005cff;\n height: 20px;\n}\n.guidewrapper-head-wrap .guidewrapper-head-left .guidewrapper-head-title {\n font-weight: 500;\n font-size: 14px;\n color: #000000;\n padding: 0 6px;\n}\n.guidewrapper-head-border {\n border-bottom: 1px solid #F0F0F0;\n}\n.guidewrapper-title-extra-wrap {\n padding-left: 5px;\n}\n";
|
|
14278
|
+
styleInject(css_248z$c);
|
|
13281
14279
|
|
|
13282
|
-
var _excluded$
|
|
14280
|
+
var _excluded$8 = ["children", "titleExtra", "title", "extra", "bordered"],
|
|
13283
14281
|
_excluded2$3 = ["children"];
|
|
13284
14282
|
var Field = function Field(_ref) {
|
|
13285
14283
|
var children = _ref.children,
|
|
@@ -13287,7 +14285,7 @@ var Field = function Field(_ref) {
|
|
|
13287
14285
|
title = _ref.title,
|
|
13288
14286
|
extra = _ref.extra,
|
|
13289
14287
|
bordered = _ref.bordered,
|
|
13290
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
14288
|
+
props = _objectWithoutProperties(_ref, _excluded$8);
|
|
13291
14289
|
var _React$useState = React$1.useState(true),
|
|
13292
14290
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
13293
14291
|
fieldGroupVisible = _React$useState2[0],
|
|
@@ -13411,10 +14409,10 @@ var ExportIcon = function ExportIcon(_ref) {
|
|
|
13411
14409
|
})));
|
|
13412
14410
|
};
|
|
13413
14411
|
|
|
13414
|
-
var css_248z$
|
|
13415
|
-
styleInject(css_248z$
|
|
14412
|
+
var css_248z$d = ".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: 8px;\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: 12px;\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: #8E8E8E;\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: 12px;\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: 12px;\n color: #848484;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper {\n width: 144px;\n height: 16px;\n line-height: 16px;\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 height: 430px;\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 .ant-modal-body {\n padding: 10px 16px;\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: 22px;\n padding: 6px 4px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-input-prefix {\n width: 24px;\n height: 24px;\n margin: 0 4px;\n display: flex;\n justify-content: center;\n}\n.sort_table_wrapper .ant-modal-footer {\n padding: 8px 16px;\n display: flex;\n justify-content: space-between;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn {\n width: 80px;\n height: 28px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn span {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 12px;\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: 30px;\n}\n.sort_table_wrapper .ant-table-wrapper tr td {\n width: 24px !important;\n height: 30px !important;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\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: 108px !important;\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 30px !important;\n line-height: 30px !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: 30px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child img {\n position: relative;\n top: 1px;\n}\n.sort_table_wrapper .ant-dropdown-link {\n cursor: pointer;\n}\n";
|
|
14413
|
+
styleInject(css_248z$d);
|
|
13416
14414
|
|
|
13417
|
-
var _excluded$
|
|
14415
|
+
var _excluded$9 = ["className", "style"];
|
|
13418
14416
|
var Search$1 = Input.Search;
|
|
13419
14417
|
var DragHandle$1 = SortableHandle(function () {
|
|
13420
14418
|
return /*#__PURE__*/React$1.createElement("img", {
|
|
@@ -13832,7 +14830,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13832
14830
|
_this.DraggableBodyRow = function (_ref2) {
|
|
13833
14831
|
var className = _ref2.className,
|
|
13834
14832
|
style = _ref2.style,
|
|
13835
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
14833
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$9);
|
|
13836
14834
|
var sortDataSource = _this.state.sortDataSource;
|
|
13837
14835
|
// function findIndex base on Table rowKey props and should always be a right array index
|
|
13838
14836
|
var index = sortDataSource.findIndex(function (x) {
|
|
@@ -13992,8 +14990,8 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13992
14990
|
visible = _this$state3.visible,
|
|
13993
14991
|
onSearchSort = _this$state3.onSearchSort;
|
|
13994
14992
|
var seatchDataSource = dataSource.filter(function (item) {
|
|
13995
|
-
var
|
|
13996
|
-
return (item === null || item === void 0 ? void 0 :
|
|
14993
|
+
var _renderToString;
|
|
14994
|
+
return ((_renderToString = renderToString(item === null || item === void 0 ? void 0 : item.title)) === null || _renderToString === void 0 ? void 0 : _renderToString.indexOf(searchDataSource || '')) > -1;
|
|
13997
14995
|
});
|
|
13998
14996
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
13999
14997
|
className: 'sort_table_wrapper'
|
|
@@ -14076,8 +15074,8 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14076
15074
|
}
|
|
14077
15075
|
}, item.title);
|
|
14078
15076
|
}) : dataSource.filter(function (item) {
|
|
14079
|
-
var _item$
|
|
14080
|
-
return (item === null || item === void 0 ? void 0 : (_item$
|
|
15077
|
+
var _item$title, _item$title2;
|
|
15078
|
+
return (item === null || item === void 0 ? void 0 : (_item$title = item.title) === null || _item$title === void 0 ? void 0 : _item$title.indexOf('人')) === -1 && (item === null || item === void 0 ? void 0 : (_item$title2 = item.title) === null || _item$title2 === void 0 ? void 0 : _item$title2.indexOf('日期')) === -1;
|
|
14081
15079
|
}).map(function (item) {
|
|
14082
15080
|
return /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
14083
15081
|
checked: !item.hidden,
|
|
@@ -14096,8 +15094,8 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14096
15094
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
14097
15095
|
className: 'sort_table_column_all'
|
|
14098
15096
|
}, _toConsumableArray(dataSource).filter(function (item) {
|
|
14099
|
-
var _item$
|
|
14100
|
-
return (item === null || item === void 0 ? void 0 : (_item$
|
|
15097
|
+
var _item$title3, _item$title4;
|
|
15098
|
+
return (item === null || item === void 0 ? void 0 : (_item$title3 = item.title) === null || _item$title3 === void 0 ? void 0 : _item$title3.indexOf('人')) > -1 || (item === null || item === void 0 ? void 0 : (_item$title4 = item.title) === null || _item$title4 === void 0 ? void 0 : _item$title4.indexOf('日期')) > -1;
|
|
14101
15099
|
}).map(function (item) {
|
|
14102
15100
|
return /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
14103
15101
|
checked: !item.hidden,
|
|
@@ -14133,8 +15131,8 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14133
15131
|
pagination: false,
|
|
14134
15132
|
showHeader: false,
|
|
14135
15133
|
dataSource: (onSearchSort ? sortDataSource.filter(function (item) {
|
|
14136
|
-
var _item$
|
|
14137
|
-
return (item === null || item === void 0 ? void 0 : (_item$
|
|
15134
|
+
var _item$title5;
|
|
15135
|
+
return (item === null || item === void 0 ? void 0 : (_item$title5 = item.title) === null || _item$title5 === void 0 ? void 0 : _item$title5.indexOf(onSearchSort)) > -1;
|
|
14138
15136
|
}) : sortDataSource).map(function (item) {
|
|
14139
15137
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
14140
15138
|
key: item.key || item.dataIndex
|
|
@@ -14164,7 +15162,29 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14164
15162
|
}]);
|
|
14165
15163
|
}(React$1.Component);
|
|
14166
15164
|
|
|
14167
|
-
var
|
|
15165
|
+
var css_248z$e = ".table_sum_wrapper {\n position: absolute;\n overflow: hidden;\n width: 80%;\n height: 26px;\n bottom: 0;\n}\n.table_sum_wrapper .table-bssula-summary {\n height: 40px;\n right: 0;\n bottom: -20px;\n white-space: nowrap;\n overflow-x: auto;\n}\n.sum_right_line {\n position: absolute;\n right: 20%;\n bottom: 0;\n width: 16px;\n height: 26px;\n opacity: 0.32;\n transform: scaleX(-1);\n background-image: linear-gradient(270deg, #ffffff00 0%, #A4A4A4 100%);\n}\n";
|
|
15166
|
+
styleInject(css_248z$e);
|
|
15167
|
+
|
|
15168
|
+
//表格底部 金额总计
|
|
15169
|
+
var TableSumComponent = (function (_ref) {
|
|
15170
|
+
var summary = _ref.summary;
|
|
15171
|
+
var Text = Typography.Text;
|
|
15172
|
+
return /*#__PURE__*/React$1.createElement(Fragment, null, /*#__PURE__*/React$1.createElement("div", {
|
|
15173
|
+
className: "table_sum_wrapper"
|
|
15174
|
+
}, /*#__PURE__*/React$1.createElement("div", {
|
|
15175
|
+
className: 'table-bssula-summary'
|
|
15176
|
+
}, summary.map(function (item) {
|
|
15177
|
+
return /*#__PURE__*/React$1.createElement(Text, {
|
|
15178
|
+
type: 'danger'
|
|
15179
|
+
}, item.label, ": ", /*#__PURE__*/React$1.createElement("span", {
|
|
15180
|
+
className: 'table-bssula-summary-count'
|
|
15181
|
+
}, item.count || 0));
|
|
15182
|
+
}))), /*#__PURE__*/React$1.createElement("div", {
|
|
15183
|
+
className: "sum_right_line"
|
|
15184
|
+
}));
|
|
15185
|
+
});
|
|
15186
|
+
|
|
15187
|
+
var _excluded$a = ["onResize", "width"],
|
|
14168
15188
|
_excluded2$4 = ["style", "columns", "tableCode", "appRequestConfig", "summary", "dynamicColumns", "scroll"];
|
|
14169
15189
|
var Text = Typography.Text;
|
|
14170
15190
|
var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
@@ -14268,7 +15288,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14268
15288
|
_this.ResizeableTitle = function (props) {
|
|
14269
15289
|
var onResize = props.onResize,
|
|
14270
15290
|
width = props.width,
|
|
14271
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
15291
|
+
restProps = _objectWithoutProperties(props, _excluded$a);
|
|
14272
15292
|
var _useState = useState(width),
|
|
14273
15293
|
_useState2 = _slicedToArray(_useState, 2),
|
|
14274
15294
|
innerWidth = _useState2[0],
|
|
@@ -14502,37 +15522,14 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14502
15522
|
cell: this.ResizeableTitle
|
|
14503
15523
|
}
|
|
14504
15524
|
}
|
|
14505
|
-
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(
|
|
14506
|
-
|
|
14507
|
-
|
|
14508
|
-
right: '20%',
|
|
14509
|
-
bottom: 0,
|
|
14510
|
-
whiteSpace: 'nowrap',
|
|
14511
|
-
overflowX: 'auto'
|
|
14512
|
-
}
|
|
14513
|
-
}, summary.map(function (item) {
|
|
14514
|
-
return /*#__PURE__*/React$1.createElement(Text, {
|
|
14515
|
-
type: 'danger'
|
|
14516
|
-
}, item.label, ": ", /*#__PURE__*/React$1.createElement("span", {
|
|
14517
|
-
className: 'table-bssula-summary-count'
|
|
14518
|
-
}, item.count || 0));
|
|
14519
|
-
})), /*#__PURE__*/React$1.createElement("div", {
|
|
14520
|
-
style: {
|
|
14521
|
-
width: '16px',
|
|
14522
|
-
height: '26px',
|
|
14523
|
-
opacity: 0.32,
|
|
14524
|
-
transform: 'scaleX(-1)',
|
|
14525
|
-
backgroundImage: 'linear-gradient(270deg, #ffffff00 0%, #A4A4A4 100%)',
|
|
14526
|
-
right: '20%',
|
|
14527
|
-
position: 'absolute',
|
|
14528
|
-
bottom: 0
|
|
14529
|
-
}
|
|
14530
|
-
}))));
|
|
15525
|
+
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15526
|
+
summary: summary
|
|
15527
|
+
})));
|
|
14531
15528
|
}
|
|
14532
15529
|
}]);
|
|
14533
15530
|
}(React$1.Component);
|
|
14534
15531
|
|
|
14535
|
-
var _excluded$
|
|
15532
|
+
var _excluded$b = ["onResize", "width"],
|
|
14536
15533
|
_excluded2$5 = ["columns", "tableCode", "appRequestConfig", "summary", "dynamicColumns", "scroll"];
|
|
14537
15534
|
var Text$1 = Typography.Text;
|
|
14538
15535
|
var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
@@ -14642,7 +15639,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14642
15639
|
_this.ResizeableTitle = function (props) {
|
|
14643
15640
|
var onResize = props.onResize,
|
|
14644
15641
|
width = props.width,
|
|
14645
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
15642
|
+
restProps = _objectWithoutProperties(props, _excluded$b);
|
|
14646
15643
|
if (!width) {
|
|
14647
15644
|
return /*#__PURE__*/React$1.createElement("th", _objectSpread2({}, restProps));
|
|
14648
15645
|
}
|
|
@@ -14771,32 +15768,9 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14771
15768
|
cell: this.ResizeableTitle
|
|
14772
15769
|
}
|
|
14773
15770
|
}
|
|
14774
|
-
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(
|
|
14775
|
-
|
|
14776
|
-
|
|
14777
|
-
right: '20%',
|
|
14778
|
-
bottom: 0,
|
|
14779
|
-
whiteSpace: 'nowrap',
|
|
14780
|
-
overflowX: 'auto'
|
|
14781
|
-
}
|
|
14782
|
-
}, summary.map(function (item) {
|
|
14783
|
-
return /*#__PURE__*/React$1.createElement(Text$1, {
|
|
14784
|
-
type: 'danger'
|
|
14785
|
-
}, item.label, ": ", /*#__PURE__*/React$1.createElement("span", {
|
|
14786
|
-
className: 'table-bssula-summary-count'
|
|
14787
|
-
}, item.count || 0));
|
|
14788
|
-
})), /*#__PURE__*/React$1.createElement("div", {
|
|
14789
|
-
style: {
|
|
14790
|
-
width: '16px',
|
|
14791
|
-
height: '26px',
|
|
14792
|
-
opacity: 0.32,
|
|
14793
|
-
transform: 'scaleX(-1)',
|
|
14794
|
-
backgroundImage: 'linear-gradient(270deg, #ffffff00 0%, #A4A4A4 100%)',
|
|
14795
|
-
right: '20%',
|
|
14796
|
-
position: 'absolute',
|
|
14797
|
-
bottom: 0
|
|
14798
|
-
}
|
|
14799
|
-
}))));
|
|
15771
|
+
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15772
|
+
summary: summary
|
|
15773
|
+
})));
|
|
14800
15774
|
}
|
|
14801
15775
|
}]);
|
|
14802
15776
|
}(React$1.Component);
|
|
@@ -14928,8 +15902,8 @@ var getDetailMatchRoute = function getDetailMatchRoute(path, routeObj, hideRoute
|
|
|
14928
15902
|
return undefined;
|
|
14929
15903
|
};
|
|
14930
15904
|
|
|
14931
|
-
var css_248z$
|
|
14932
|
-
styleInject(css_248z$
|
|
15905
|
+
var css_248z$f = ".bs_detail_page_head_wrapper {\n height: 32px;\n position: sticky;\n background: #fff;\n width: 100%;\n top: 0px;\n z-index: 10;\n}\n.detail_page_head {\n height: 32px;\n z-index: 5;\n display: flex;\n align-items: center;\n background-color: #FFFFFF;\n font-weight: 500;\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: #8B8B8B;\n font-size: 12px;\n cursor: pointer;\n}\n.detail_page_head .ant-breadcrumb li .bread_name_last {\n color: #282828;\n}\n.detail_page_head .ant-breadcrumb li .bread_name_pre:hover {\n color: #000000d9;\n}\n.detail_page_wrapper {\n height: calc(100vh - 80px);\n}\n.back_home_img_content {\n display: inline-block;\n height: 16px;\n width: 16px;\n border: 1px solid #BABABA;\n margin: 0 8px 0 10px;\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 display: flex;\n align-items: center;\n}\n.detail_page_title {\n height: 20px;\n font-family: PingFangSC;\n font-weight: 600;\n font-size: 14px;\n padding-right: 10px;\n color: #000000;\n letter-spacing: 0;\n line-height: 20px;\n display: none;\n}\n.detail_page_btns {\n display: flex;\n gap: 8px;\n margin-right: 20px;\n}\n.detail_page_btns button {\n height: 24px !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";
|
|
15906
|
+
styleInject(css_248z$f);
|
|
14933
15907
|
|
|
14934
15908
|
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";
|
|
14935
15909
|
|
|
@@ -14943,15 +15917,15 @@ var deleteIcon = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
14943
15917
|
|
|
14944
15918
|
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";
|
|
14945
15919
|
|
|
14946
|
-
var css_248z$
|
|
14947
|
-
styleInject(css_248z$
|
|
15920
|
+
var css_248z$g = "";
|
|
15921
|
+
styleInject(css_248z$g);
|
|
14948
15922
|
|
|
14949
|
-
var _excluded$
|
|
15923
|
+
var _excluded$c = ["message", "type"];
|
|
14950
15924
|
var CommonAlert = (function (props) {
|
|
14951
15925
|
var message = props.message,
|
|
14952
15926
|
_props$type = props.type,
|
|
14953
15927
|
type = _props$type === void 0 ? 'info' : _props$type,
|
|
14954
|
-
reset = _objectWithoutProperties(props, _excluded$
|
|
15928
|
+
reset = _objectWithoutProperties(props, _excluded$c);
|
|
14955
15929
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
14956
15930
|
style: {
|
|
14957
15931
|
width: '100%',
|
|
@@ -14972,7 +15946,7 @@ var CommonAlert = (function (props) {
|
|
|
14972
15946
|
}, reset)));
|
|
14973
15947
|
});
|
|
14974
15948
|
|
|
14975
|
-
var _excluded$
|
|
15949
|
+
var _excluded$d = ["children"];
|
|
14976
15950
|
var iconMap = {
|
|
14977
15951
|
edit: /*#__PURE__*/React$1.createElement("img", {
|
|
14978
15952
|
src: editIcon
|
|
@@ -14994,7 +15968,7 @@ var index$3 = (function (props) {
|
|
|
14994
15968
|
_useState2 = _slicedToArray(_useState, 1),
|
|
14995
15969
|
id = _useState2[0];
|
|
14996
15970
|
var children = props.children,
|
|
14997
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
15971
|
+
restProps = _objectWithoutProperties(props, _excluded$d);
|
|
14998
15972
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
14999
15973
|
id: id,
|
|
15000
15974
|
className: 'detail_page_wrapper'
|
|
@@ -15217,10 +16191,10 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15217
16191
|
return true;
|
|
15218
16192
|
});
|
|
15219
16193
|
|
|
15220
|
-
var css_248z$
|
|
15221
|
-
styleInject(css_248z$
|
|
16194
|
+
var css_248z$h = ".bs_home_page_head_wrapper {\n height: 32px;\n position: sticky;\n background: #fff;\n width: 100%;\n top: 0px;\n z-index: 10;\n}\n.home_page_head {\n display: flex;\n justify-content: space-between;\n align-items: center;\n background-color: #FFFFFF;\n border-bottom: 1px solid #f0f0f0;\n padding: 6px 16px 5px;\n font-weight: 500;\n}\n.home_page_head .home_page_title_wrapper {\n display: flex;\n align-items: center;\n height: 20px;\n line-height: 20px;\n}\n.home_page_head .home_page_title {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 16px;\n color: #000000;\n letter-spacing: 0;\n flex-grow: 1;\n padding-right: 10px;\n display: none;\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: #8B8B8B;\n font-size: 12px;\n line-height: 16px;\n cursor: pointer;\n}\n.home_page_head .ant-breadcrumb li .bread_name_last {\n color: #282828;\n}\n";
|
|
16195
|
+
styleInject(css_248z$h);
|
|
15222
16196
|
|
|
15223
|
-
var _excluded$
|
|
16197
|
+
var _excluded$e = ["children"];
|
|
15224
16198
|
var index$4 = (function (props) {
|
|
15225
16199
|
var _useLocation = useLocation(),
|
|
15226
16200
|
pathname = _useLocation.pathname;
|
|
@@ -15228,7 +16202,7 @@ var index$4 = (function (props) {
|
|
|
15228
16202
|
_useState2 = _slicedToArray(_useState, 1),
|
|
15229
16203
|
id = _useState2[0];
|
|
15230
16204
|
var children = props.children,
|
|
15231
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
16205
|
+
restProps = _objectWithoutProperties(props, _excluded$e);
|
|
15232
16206
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
15233
16207
|
id: id,
|
|
15234
16208
|
className: 'home_page_wrapper'
|
|
@@ -15302,10 +16276,10 @@ var HeaderWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15302
16276
|
return true;
|
|
15303
16277
|
});
|
|
15304
16278
|
|
|
15305
|
-
var css_248z$
|
|
15306
|
-
styleInject(css_248z$
|
|
16279
|
+
var css_248z$i = ".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: 8px;\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: 12px;\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: #8E8E8E;\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: 12px;\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: 12px;\n color: #848484;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper {\n width: 144px;\n height: 16px;\n line-height: 16px;\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 height: 430px;\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 .ant-modal-body {\n padding: 10px 16px;\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: 22px;\n padding: 6px 4px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-input-prefix {\n width: 24px;\n height: 24px;\n margin: 0 4px;\n display: flex;\n justify-content: center;\n}\n.sort_table_wrapper .ant-modal-footer {\n padding: 8px 16px;\n display: flex;\n justify-content: space-between;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn {\n width: 80px;\n height: 28px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn span {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 12px;\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: 30px;\n}\n.sort_table_wrapper .ant-table-wrapper tr td {\n width: 24px !important;\n height: 30px !important;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\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: 108px !important;\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 30px !important;\n line-height: 30px !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: 30px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child img {\n position: relative;\n top: 1px;\n}\n.sort_table_wrapper .ant-dropdown-link {\n cursor: pointer;\n}\n";
|
|
16280
|
+
styleInject(css_248z$i);
|
|
15307
16281
|
|
|
15308
|
-
var _excluded$
|
|
16282
|
+
var _excluded$f = ["className", "style"];
|
|
15309
16283
|
var DragHandle$2 = SortableHandle(function () {
|
|
15310
16284
|
return /*#__PURE__*/React$1.createElement("img", {
|
|
15311
16285
|
width: 25,
|
|
@@ -15743,7 +16717,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15743
16717
|
_this.DraggableBodyRow = function (_ref2) {
|
|
15744
16718
|
var className = _ref2.className,
|
|
15745
16719
|
style = _ref2.style,
|
|
15746
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
16720
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$f);
|
|
15747
16721
|
var sortDataSource = _this.state.sortDataSource;
|
|
15748
16722
|
// function findIndex base on Table rowKey props and should always be a right array index
|
|
15749
16723
|
var index = sortDataSource.findIndex(function (x) {
|
|
@@ -15935,7 +16909,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15935
16909
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
15936
16910
|
className: 'sort_table_wrapper'
|
|
15937
16911
|
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
15938
|
-
title: "\
|
|
16912
|
+
title: "\u5C55\u793A\u5217\u8BBE\u7F6E",
|
|
15939
16913
|
wrapClassName: 'sort_table_wrapper',
|
|
15940
16914
|
width: 810,
|
|
15941
16915
|
visible: visible,
|
|
@@ -15972,7 +16946,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15972
16946
|
className: 'sort_table_column_wrapper'
|
|
15973
16947
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
15974
16948
|
className: 'sort_table_column_count'
|
|
15975
|
-
}, /*#__PURE__*/React$1.createElement("span", null, "\u52FE\u9009\u4F60\u60F3\
|
|
16949
|
+
}, /*#__PURE__*/React$1.createElement("span", null, "\u52FE\u9009\u4F60\u60F3\u5C55\u793A\u7684\u8868\u683C\u5217")), /*#__PURE__*/React$1.createElement("div", {
|
|
15976
16950
|
className: 'sort_table_column'
|
|
15977
16951
|
}, /*#__PURE__*/React$1.createElement(Input, {
|
|
15978
16952
|
prefix: /*#__PURE__*/React$1.createElement(SearchOutlined, {
|
|
@@ -16067,7 +17041,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16067
17041
|
className: 'sort_table_content_wrapper'
|
|
16068
17042
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
16069
17043
|
className: 'sort_table_content_count'
|
|
16070
|
-
}, /*#__PURE__*/React$1.createElement("span", null, "\u5DF2\u9009\u62E9\u7684\
|
|
17044
|
+
}, /*#__PURE__*/React$1.createElement("span", null, "\u5DF2\u9009\u62E9\u7684\u5C55\u793A\u5217\u6392\u5E8F")), /*#__PURE__*/React$1.createElement("div", {
|
|
16071
17045
|
className: 'sort_table_content'
|
|
16072
17046
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
16073
17047
|
style: {
|
|
@@ -16113,7 +17087,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16113
17087
|
}]);
|
|
16114
17088
|
}(React$1.Component);
|
|
16115
17089
|
|
|
16116
|
-
var _excluded$
|
|
17090
|
+
var _excluded$g = ["className", "style"];
|
|
16117
17091
|
var DragHandle$3 = SortableHandle(function () {
|
|
16118
17092
|
return /*#__PURE__*/React$1.createElement("img", {
|
|
16119
17093
|
width: 25,
|
|
@@ -16366,7 +17340,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16366
17340
|
_this.DraggableBodyRow = function (_ref2) {
|
|
16367
17341
|
var className = _ref2.className,
|
|
16368
17342
|
style = _ref2.style,
|
|
16369
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
17343
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$g);
|
|
16370
17344
|
var sortDataSource = _this.state.sortDataSource;
|
|
16371
17345
|
var index = sortDataSource.findIndex(function (x) {
|
|
16372
17346
|
return x.name === restProps['data-row-key'];
|
|
@@ -16662,16 +17636,16 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16662
17636
|
}]);
|
|
16663
17637
|
}(React$1.Component);
|
|
16664
17638
|
|
|
16665
|
-
var css_248z$
|
|
16666
|
-
styleInject(css_248z$
|
|
17639
|
+
var css_248z$j = "#bs-sula-query-table .ant-table-title + .ant-table-container table {\n visibility: unset !important;\n}\n";
|
|
17640
|
+
styleInject(css_248z$j);
|
|
16667
17641
|
|
|
16668
|
-
var _excluded$
|
|
17642
|
+
var _excluded$h = ["onResize", "width"];
|
|
16669
17643
|
var MemoQueryTable = /*#__PURE__*/React$1.memo(QueryTable);
|
|
16670
17644
|
var Text$2 = Typography.Text;
|
|
16671
17645
|
var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
16672
17646
|
var onResize = props.onResize,
|
|
16673
17647
|
width = props.width,
|
|
16674
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
17648
|
+
restProps = _objectWithoutProperties(props, _excluded$h);
|
|
16675
17649
|
var _useState = useState(width),
|
|
16676
17650
|
_useState2 = _slicedToArray(_useState, 2),
|
|
16677
17651
|
innerWidth = _useState2[0],
|
|
@@ -17389,8 +18363,8 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17389
18363
|
})));
|
|
17390
18364
|
});
|
|
17391
18365
|
|
|
17392
|
-
var css_248z$
|
|
17393
|
-
styleInject(css_248z$
|
|
18366
|
+
var css_248z$k = ".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";
|
|
18367
|
+
styleInject(css_248z$k);
|
|
17394
18368
|
|
|
17395
18369
|
var cache = {};
|
|
17396
18370
|
var cacheLimit = 10000;
|
|
@@ -17646,8 +18620,8 @@ var AllFunc = function AllFunc(props) {
|
|
|
17646
18620
|
})))));
|
|
17647
18621
|
};
|
|
17648
18622
|
|
|
17649
|
-
var css_248z$
|
|
17650
|
-
styleInject(css_248z$
|
|
18623
|
+
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: #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.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";
|
|
18624
|
+
styleInject(css_248z$l);
|
|
17651
18625
|
|
|
17652
18626
|
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";
|
|
17653
18627
|
|
|
@@ -17855,8 +18829,8 @@ var i18n = {
|
|
|
17855
18829
|
}
|
|
17856
18830
|
};
|
|
17857
18831
|
|
|
17858
|
-
var css_248z$
|
|
17859
|
-
styleInject(css_248z$
|
|
18832
|
+
var css_248z$m = ".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";
|
|
18833
|
+
styleInject(css_248z$m);
|
|
17860
18834
|
|
|
17861
18835
|
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";
|
|
17862
18836
|
|
|
@@ -18386,8 +19360,8 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
18386
19360
|
}))))));
|
|
18387
19361
|
};
|
|
18388
19362
|
|
|
18389
|
-
var css_248z$
|
|
18390
|
-
styleInject(css_248z$
|
|
19363
|
+
var css_248z$n = ".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";
|
|
19364
|
+
styleInject(css_248z$n);
|
|
18391
19365
|
|
|
18392
19366
|
var judgeIsEmpty$2 = function judgeIsEmpty(value) {
|
|
18393
19367
|
if (value == null || value == undefined || String(value).trim() == '') {
|
|
@@ -18543,8 +19517,8 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18543
19517
|
|
|
18544
19518
|
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";
|
|
18545
19519
|
|
|
18546
|
-
var css_248z$
|
|
18547
|
-
styleInject(css_248z$
|
|
19520
|
+
var css_248z$o = ".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";
|
|
19521
|
+
styleInject(css_248z$o);
|
|
18548
19522
|
|
|
18549
19523
|
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";
|
|
18550
19524
|
|
|
@@ -19171,8 +20145,8 @@ var MenuSetting = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19171
20145
|
}));
|
|
19172
20146
|
});
|
|
19173
20147
|
|
|
19174
|
-
var css_248z$
|
|
19175
|
-
styleInject(css_248z$
|
|
20148
|
+
var css_248z$p = ".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";
|
|
20149
|
+
styleInject(css_248z$p);
|
|
19176
20150
|
|
|
19177
20151
|
var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
19178
20152
|
var isCollapse = _ref.isCollapse,
|
|
@@ -19308,8 +20282,8 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19308
20282
|
})));
|
|
19309
20283
|
});
|
|
19310
20284
|
|
|
19311
|
-
var css_248z$
|
|
19312
|
-
styleInject(css_248z$
|
|
20285
|
+
var css_248z$q = ".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.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: #005cff !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";
|
|
20286
|
+
styleInject(css_248z$q);
|
|
19313
20287
|
|
|
19314
20288
|
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=";
|
|
19315
20289
|
|
|
@@ -19724,8 +20698,8 @@ var CustomerMenuHeader = function CustomerMenuHeader(_ref) {
|
|
|
19724
20698
|
})));
|
|
19725
20699
|
};
|
|
19726
20700
|
|
|
19727
|
-
var css_248z$
|
|
19728
|
-
styleInject(css_248z$
|
|
20701
|
+
var css_248z$r = ".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: #005cff;\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";
|
|
20702
|
+
styleInject(css_248z$r);
|
|
19729
20703
|
|
|
19730
20704
|
/*
|
|
19731
20705
|
* @Date: 2022-04-01 15:42:51
|
|
@@ -19748,7 +20722,7 @@ var NoFoundPage = function NoFoundPage(props) {
|
|
|
19748
20722
|
}));
|
|
19749
20723
|
};
|
|
19750
20724
|
|
|
19751
|
-
var _excluded$
|
|
20725
|
+
var _excluded$i = ["route"];
|
|
19752
20726
|
var TabPane = Tabs.TabPane;
|
|
19753
20727
|
var getId = function getId(str) {
|
|
19754
20728
|
// 找到最后一个 / 的位置
|
|
@@ -20689,7 +21663,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20689
21663
|
}); // 添加数据大屏
|
|
20690
21664
|
var _this$props3 = this.props,
|
|
20691
21665
|
route = _this$props3.route,
|
|
20692
|
-
restPrpos = _objectWithoutProperties(_this$props3, _excluded$
|
|
21666
|
+
restPrpos = _objectWithoutProperties(_this$props3, _excluded$i);
|
|
20693
21667
|
var exist = route.routes.find(function (route) {
|
|
20694
21668
|
return route.path === '/homePage/data-show';
|
|
20695
21669
|
});
|
|
@@ -21249,8 +22223,8 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
21249
22223
|
};
|
|
21250
22224
|
};
|
|
21251
22225
|
|
|
21252
|
-
var css_248z$
|
|
21253
|
-
styleInject(css_248z$
|
|
22226
|
+
var css_248z$s = ".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";
|
|
22227
|
+
styleInject(css_248z$s);
|
|
21254
22228
|
|
|
21255
22229
|
var useSticky = function useSticky(sticky) {
|
|
21256
22230
|
var _ref = _typeof(sticky) === 'object' ? sticky : {},
|
|
@@ -21662,10 +22636,10 @@ var index$6 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
21662
22636
|
}))))));
|
|
21663
22637
|
});
|
|
21664
22638
|
|
|
21665
|
-
var _excluded$
|
|
22639
|
+
var _excluded$j = ["children"];
|
|
21666
22640
|
var Drawer = (function (props) {
|
|
21667
22641
|
var children = props.children,
|
|
21668
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
22642
|
+
restProps = _objectWithoutProperties(props, _excluded$j);
|
|
21669
22643
|
return /*#__PURE__*/React$1.createElement(Drawer$1, _objectSpread2({
|
|
21670
22644
|
mask: true,
|
|
21671
22645
|
closable: false,
|
|
@@ -27485,8 +28459,8 @@ var nameRender = (function (data) {
|
|
|
27485
28459
|
}, " ");
|
|
27486
28460
|
});
|
|
27487
28461
|
|
|
27488
|
-
var css_248z$
|
|
27489
|
-
styleInject(css_248z$
|
|
28462
|
+
var css_248z$t = ".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";
|
|
28463
|
+
styleInject(css_248z$t);
|
|
27490
28464
|
|
|
27491
28465
|
function parseData(data) {
|
|
27492
28466
|
var res;
|
|
@@ -27697,8 +28671,8 @@ function registerSuggestions(monaco) {
|
|
|
27697
28671
|
});
|
|
27698
28672
|
}
|
|
27699
28673
|
|
|
27700
|
-
var css_248z$
|
|
27701
|
-
styleInject(css_248z$
|
|
28674
|
+
var css_248z$u = ":global .si-editor-highlight {\n background: #1990ffab;\n}\n.title {\n color: #005cff;\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";
|
|
28675
|
+
styleInject(css_248z$u);
|
|
27702
28676
|
|
|
27703
28677
|
var Title = Typography.Title;
|
|
27704
28678
|
var STRTEMP = 'const config = ';
|
|
@@ -27892,7 +28866,7 @@ var Editor = (function (props) {
|
|
|
27892
28866
|
}, [shallowHeight]);
|
|
27893
28867
|
var hasConfigTree = type !== 'editor';
|
|
27894
28868
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
27895
|
-
className: isFull ? css_248z$
|
|
28869
|
+
className: isFull ? css_248z$u.editorWrapper : ''
|
|
27896
28870
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
27897
28871
|
style: {
|
|
27898
28872
|
overflow: 'hidden'
|
|
@@ -27960,7 +28934,7 @@ var Editor = (function (props) {
|
|
|
27960
28934
|
})), hasConfigTree && /*#__PURE__*/React$1.createElement(Col, {
|
|
27961
28935
|
span: 8
|
|
27962
28936
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
27963
|
-
className: css_248z$
|
|
28937
|
+
className: css_248z$u.title
|
|
27964
28938
|
}, "\u5C5E\u6027\u8282\u70B9\u6811"), /*#__PURE__*/React$1.createElement(ConfigTree, {
|
|
27965
28939
|
style: {
|
|
27966
28940
|
height: 'calc(100vh - 300px)',
|
|
@@ -29841,8 +30815,8 @@ var FieldsSettingsTable = (function (props) {
|
|
|
29841
30815
|
})), fieldsModify.visible && /*#__PURE__*/React$1.createElement(FieldsModifyModal, _objectSpread2({}, fieldsModify)));
|
|
29842
30816
|
});
|
|
29843
30817
|
|
|
29844
|
-
var css_248z$
|
|
29845
|
-
styleInject(css_248z$
|
|
30818
|
+
var css_248z$v = ".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";
|
|
30819
|
+
styleInject(css_248z$v);
|
|
29846
30820
|
|
|
29847
30821
|
function iterFileds(fields) {
|
|
29848
30822
|
var filedsValue = [];
|
|
@@ -30444,7 +31418,7 @@ var formatListName = function formatListName(list, columns) {
|
|
|
30444
31418
|
});
|
|
30445
31419
|
};
|
|
30446
31420
|
|
|
30447
|
-
var _excluded$
|
|
31421
|
+
var _excluded$k = ["sorter"];
|
|
30448
31422
|
/**
|
|
30449
31423
|
* 删掉查询条件的qp- 和 -eq等
|
|
30450
31424
|
* @param {object} data
|
|
@@ -30527,7 +31501,7 @@ var remoteFetch = function remoteFetch(requestConfig, coloumns) {
|
|
|
30527
31501
|
var _requestConfig$method;
|
|
30528
31502
|
var params = _ref.params;
|
|
30529
31503
|
var sorter = params.sorter,
|
|
30530
|
-
paramsTemp = _objectWithoutProperties(params, _excluded$
|
|
31504
|
+
paramsTemp = _objectWithoutProperties(params, _excluded$k);
|
|
30531
31505
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, requestConfig.params), requestConfig.body), _.omit(paramsTemp, ['filters', 'current'])), (paramsTemp === null || paramsTemp === void 0 ? void 0 : paramsTemp.filters) || {}), {
|
|
30532
31506
|
currentPage: (paramsTemp === null || paramsTemp === void 0 ? void 0 : paramsTemp.currentPage) || paramsTemp.current || 1
|
|
30533
31507
|
});
|
|
@@ -31382,8 +32356,8 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
31382
32356
|
});
|
|
31383
32357
|
};
|
|
31384
32358
|
|
|
31385
|
-
var css_248z$
|
|
31386
|
-
styleInject(css_248z$
|
|
32359
|
+
var css_248z$w = ".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: 75%;\n}\n.base_rule .base_rule_line_content .base_rule_item3 {\n display: flex;\n justify-content: space-around;\n margin-top: -20px;\n padding-left: 20px;\n}\n.base_rule .base_rule_line_content .base_rule_item3 .rule_action_return_border {\n margin-bottom: 10px;\n padding: 0px 10px 0px 10px;\n border: 1px dashed #d9d9d9;\n}\n.base_rule .base_rule_line_content .base_rule_item3 .rule_action_return_border .rule_border_title {\n position: relative;\n top: -10px;\n left: 20px;\n width: 90px;\n text-align: center;\n background: #fff;\n}\n.base_rule .base_rule_line_content .base_rule_item3 .rule_action_return_border .rule_action_item {\n display: flex;\n justify-content: space-between;\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";
|
|
32360
|
+
styleInject(css_248z$w);
|
|
31387
32361
|
|
|
31388
32362
|
// 查询规则对象属性thresholdList
|
|
31389
32363
|
function getRegularThresholdRange(_x) {
|
|
@@ -31818,7 +32792,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
31818
32792
|
}
|
|
31819
32793
|
callback(values, valueNames);
|
|
31820
32794
|
},
|
|
31821
|
-
|
|
32795
|
+
highestPopContainer: function highestPopContainer() {
|
|
31822
32796
|
return document.body;
|
|
31823
32797
|
}
|
|
31824
32798
|
}), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
@@ -31851,27 +32825,29 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
31851
32825
|
}
|
|
31852
32826
|
callback(values, valueNames);
|
|
31853
32827
|
},
|
|
31854
|
-
|
|
32828
|
+
highestPopContainer: function highestPopContainer() {
|
|
31855
32829
|
return document.body;
|
|
31856
32830
|
}
|
|
31857
32831
|
}));
|
|
31858
32832
|
} else {
|
|
31859
32833
|
var _values;
|
|
31860
|
-
var currentValue = dataInputBusinessType === 12 ? ((_values = values) === null || _values === void 0 ? void 0 : _values.map(function (s, vIndex) {
|
|
32834
|
+
var currentValue = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values = values) === null || _values === void 0 ? void 0 : _values.map(function (s, vIndex) {
|
|
31861
32835
|
return {
|
|
31862
32836
|
key: s,
|
|
31863
|
-
label: valueNames[vIndex]
|
|
32837
|
+
label: valueNames[vIndex],
|
|
32838
|
+
value: s
|
|
31864
32839
|
};
|
|
31865
32840
|
})) || [] : values[0] && {
|
|
31866
32841
|
key: values[0],
|
|
31867
|
-
label: valueNames[0]
|
|
32842
|
+
label: valueNames[0],
|
|
32843
|
+
value: values[0]
|
|
31868
32844
|
} || {};
|
|
31869
32845
|
return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
31870
32846
|
selectBusinessType: "physicalWarehouse",
|
|
31871
32847
|
selectProps: _objectSpread2({
|
|
31872
32848
|
style: styleCommon,
|
|
31873
32849
|
placeholder: '请选择物理仓'
|
|
31874
|
-
}, dataInputBusinessType === 12 ? {
|
|
32850
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
31875
32851
|
mode: 'multiple',
|
|
31876
32852
|
maxTagCount: 1
|
|
31877
32853
|
} : {}),
|
|
@@ -31883,7 +32859,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
31883
32859
|
filterInit: 'qp-physicalWarehouseCode-in'
|
|
31884
32860
|
},
|
|
31885
32861
|
onChange: function onChange(value) {
|
|
31886
|
-
if (dataInputBusinessType === 12) {
|
|
32862
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
31887
32863
|
values = value.map(function (i) {
|
|
31888
32864
|
return i.key;
|
|
31889
32865
|
}) || [];
|
|
@@ -31896,7 +32872,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
31896
32872
|
}
|
|
31897
32873
|
callback(values, valueNames);
|
|
31898
32874
|
},
|
|
31899
|
-
|
|
32875
|
+
highestPopContainer: function highestPopContainer() {
|
|
31900
32876
|
return document.body;
|
|
31901
32877
|
}
|
|
31902
32878
|
});
|
|
@@ -31935,7 +32911,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
31935
32911
|
}
|
|
31936
32912
|
callback(values, valueNames);
|
|
31937
32913
|
},
|
|
31938
|
-
|
|
32914
|
+
highestPopContainer: function highestPopContainer() {
|
|
31939
32915
|
return document.body;
|
|
31940
32916
|
}
|
|
31941
32917
|
}), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
@@ -31968,27 +32944,29 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
31968
32944
|
}
|
|
31969
32945
|
callback(values, valueNames);
|
|
31970
32946
|
},
|
|
31971
|
-
|
|
32947
|
+
highestPopContainer: function highestPopContainer() {
|
|
31972
32948
|
return document.body;
|
|
31973
32949
|
}
|
|
31974
32950
|
}));
|
|
31975
32951
|
} else {
|
|
31976
32952
|
var _values2;
|
|
31977
|
-
var _currentValue = dataInputBusinessType === 12 ? ((_values2 = values) === null || _values2 === void 0 ? void 0 : _values2.map(function (s, vIndex) {
|
|
32953
|
+
var _currentValue = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values2 = values) === null || _values2 === void 0 ? void 0 : _values2.map(function (s, vIndex) {
|
|
31978
32954
|
return {
|
|
31979
32955
|
key: s,
|
|
31980
|
-
label: valueNames[vIndex]
|
|
32956
|
+
label: valueNames[vIndex],
|
|
32957
|
+
value: s
|
|
31981
32958
|
};
|
|
31982
32959
|
})) || [] : values[0] && {
|
|
31983
32960
|
key: values[0],
|
|
31984
|
-
label: valueNames[0]
|
|
32961
|
+
label: valueNames[0],
|
|
32962
|
+
value: values[0]
|
|
31985
32963
|
} || {};
|
|
31986
32964
|
return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
31987
32965
|
selectBusinessType: "realWarehouse",
|
|
31988
32966
|
selectProps: _objectSpread2({
|
|
31989
32967
|
style: styleCommon,
|
|
31990
32968
|
placeholder: '请选择逻辑仓'
|
|
31991
|
-
}, dataInputBusinessType === 12 ? {
|
|
32969
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
31992
32970
|
mode: 'multiple',
|
|
31993
32971
|
maxTagCount: 1
|
|
31994
32972
|
} : {}),
|
|
@@ -32000,7 +32978,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32000
32978
|
filterInit: 'qp-realWarehouseCode-in'
|
|
32001
32979
|
},
|
|
32002
32980
|
onChange: function onChange(value) {
|
|
32003
|
-
if (dataInputBusinessType === 12) {
|
|
32981
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
32004
32982
|
values = value.map(function (i) {
|
|
32005
32983
|
return i.key;
|
|
32006
32984
|
}) || [];
|
|
@@ -32013,7 +32991,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32013
32991
|
}
|
|
32014
32992
|
callback(values, valueNames);
|
|
32015
32993
|
},
|
|
32016
|
-
|
|
32994
|
+
highestPopContainer: function highestPopContainer() {
|
|
32017
32995
|
return document.body;
|
|
32018
32996
|
}
|
|
32019
32997
|
});
|
|
@@ -32052,7 +33030,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32052
33030
|
}
|
|
32053
33031
|
callback(values, valueNames);
|
|
32054
33032
|
},
|
|
32055
|
-
|
|
33033
|
+
highestPopContainer: function highestPopContainer() {
|
|
32056
33034
|
return document.body;
|
|
32057
33035
|
}
|
|
32058
33036
|
}), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
@@ -32085,27 +33063,29 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32085
33063
|
}
|
|
32086
33064
|
callback(values, valueNames);
|
|
32087
33065
|
},
|
|
32088
|
-
|
|
33066
|
+
highestPopContainer: function highestPopContainer() {
|
|
32089
33067
|
return document.body;
|
|
32090
33068
|
}
|
|
32091
33069
|
}));
|
|
32092
33070
|
} else {
|
|
32093
33071
|
var _values3;
|
|
32094
|
-
var _currentValue2 = dataInputBusinessType === 12 ? ((_values3 = values) === null || _values3 === void 0 ? void 0 : _values3.map(function (s, vIndex) {
|
|
33072
|
+
var _currentValue2 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values3 = values) === null || _values3 === void 0 ? void 0 : _values3.map(function (s, vIndex) {
|
|
32095
33073
|
return {
|
|
32096
33074
|
key: s,
|
|
32097
|
-
label: valueNames[vIndex]
|
|
33075
|
+
label: valueNames[vIndex],
|
|
33076
|
+
value: s
|
|
32098
33077
|
};
|
|
32099
33078
|
})) || [] : values[0] && {
|
|
32100
33079
|
key: values[0],
|
|
32101
|
-
label: valueNames[0]
|
|
33080
|
+
label: valueNames[0],
|
|
33081
|
+
value: values[0]
|
|
32102
33082
|
} || {};
|
|
32103
33083
|
return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
32104
33084
|
selectBusinessType: "virtualWarehouse",
|
|
32105
33085
|
selectProps: _objectSpread2({
|
|
32106
33086
|
style: styleCommon,
|
|
32107
33087
|
placeholder: '请选择虚拟仓'
|
|
32108
|
-
}, dataInputBusinessType === 12 ? {
|
|
33088
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
32109
33089
|
mode: 'multiple',
|
|
32110
33090
|
maxTagCount: 1
|
|
32111
33091
|
} : {}),
|
|
@@ -32117,7 +33097,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32117
33097
|
filterInit: 'qp-virtualWarehouseCode-in'
|
|
32118
33098
|
},
|
|
32119
33099
|
onChange: function onChange(value) {
|
|
32120
|
-
if (dataInputBusinessType === 12) {
|
|
33100
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
32121
33101
|
values = value.map(function (i) {
|
|
32122
33102
|
return i.key;
|
|
32123
33103
|
}) || [];
|
|
@@ -32130,7 +33110,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32130
33110
|
}
|
|
32131
33111
|
callback(values, valueNames);
|
|
32132
33112
|
},
|
|
32133
|
-
|
|
33113
|
+
highestPopContainer: function highestPopContainer() {
|
|
32134
33114
|
return document.body;
|
|
32135
33115
|
}
|
|
32136
33116
|
});
|
|
@@ -32202,27 +33182,29 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32202
33182
|
}
|
|
32203
33183
|
callback(values, valueNames);
|
|
32204
33184
|
},
|
|
32205
|
-
|
|
33185
|
+
highestPopContainer: function highestPopContainer() {
|
|
32206
33186
|
return document.body;
|
|
32207
33187
|
}
|
|
32208
33188
|
}));
|
|
32209
33189
|
} else {
|
|
32210
33190
|
var _values4;
|
|
32211
|
-
var _currentValue3 = dataInputBusinessType === 12 ? ((_values4 = values) === null || _values4 === void 0 ? void 0 : _values4.map(function (s, vIndex) {
|
|
33191
|
+
var _currentValue3 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values4 = values) === null || _values4 === void 0 ? void 0 : _values4.map(function (s, vIndex) {
|
|
32212
33192
|
return {
|
|
32213
33193
|
key: s,
|
|
32214
|
-
label: valueNames[vIndex]
|
|
33194
|
+
label: valueNames[vIndex],
|
|
33195
|
+
value: s
|
|
32215
33196
|
};
|
|
32216
33197
|
})) || [] : values[0] && {
|
|
32217
33198
|
key: values[0],
|
|
32218
|
-
label: valueNames[0]
|
|
33199
|
+
label: valueNames[0],
|
|
33200
|
+
value: values[0]
|
|
32219
33201
|
} || {};
|
|
32220
33202
|
return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
32221
33203
|
selectBusinessType: "channelWarehouse",
|
|
32222
33204
|
selectProps: _objectSpread2({
|
|
32223
33205
|
style: styleCommon,
|
|
32224
33206
|
placeholder: '请选择渠道仓'
|
|
32225
|
-
}, dataInputBusinessType === 12 ? {
|
|
33207
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
32226
33208
|
mode: 'multiple',
|
|
32227
33209
|
maxTagCount: 1
|
|
32228
33210
|
} : {}),
|
|
@@ -32234,7 +33216,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32234
33216
|
filterInit: 'qp-channelWarehouseCode-in'
|
|
32235
33217
|
},
|
|
32236
33218
|
onChange: function onChange(value) {
|
|
32237
|
-
if (dataInputBusinessType === 12) {
|
|
33219
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
32238
33220
|
values = value.map(function (i) {
|
|
32239
33221
|
return i.key;
|
|
32240
33222
|
}) || [];
|
|
@@ -32247,7 +33229,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32247
33229
|
}
|
|
32248
33230
|
callback(values, valueNames);
|
|
32249
33231
|
},
|
|
32250
|
-
|
|
33232
|
+
highestPopContainer: function highestPopContainer() {
|
|
32251
33233
|
return document.body;
|
|
32252
33234
|
}
|
|
32253
33235
|
});
|
|
@@ -32285,7 +33267,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32285
33267
|
}
|
|
32286
33268
|
callback(values, valueNames);
|
|
32287
33269
|
},
|
|
32288
|
-
|
|
33270
|
+
highestPopContainer: function highestPopContainer() {
|
|
32289
33271
|
return document.body;
|
|
32290
33272
|
}
|
|
32291
33273
|
}), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
@@ -32317,27 +33299,29 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32317
33299
|
}
|
|
32318
33300
|
callback(values, valueNames);
|
|
32319
33301
|
},
|
|
32320
|
-
|
|
33302
|
+
highestPopContainer: function highestPopContainer() {
|
|
32321
33303
|
return document.body;
|
|
32322
33304
|
}
|
|
32323
33305
|
}));
|
|
32324
33306
|
} else {
|
|
32325
33307
|
var _values5;
|
|
32326
|
-
var _currentValue4 = dataInputBusinessType === 12 ? ((_values5 = values) === null || _values5 === void 0 ? void 0 : _values5.map(function (s, vIndex) {
|
|
33308
|
+
var _currentValue4 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values5 = values) === null || _values5 === void 0 ? void 0 : _values5.map(function (s, vIndex) {
|
|
32327
33309
|
return {
|
|
32328
33310
|
key: s,
|
|
32329
|
-
label: valueNames[vIndex]
|
|
33311
|
+
label: valueNames[vIndex],
|
|
33312
|
+
value: s
|
|
32330
33313
|
};
|
|
32331
33314
|
})) || [] : values[0] && {
|
|
32332
33315
|
key: values[0],
|
|
32333
|
-
label: valueNames[0]
|
|
33316
|
+
label: valueNames[0],
|
|
33317
|
+
value: values[0]
|
|
32334
33318
|
} || {};
|
|
32335
33319
|
return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
32336
33320
|
selectBusinessType: "spuCommodity",
|
|
32337
33321
|
selectProps: _objectSpread2({
|
|
32338
33322
|
style: styleCommon,
|
|
32339
33323
|
placeholder: '请选择SPU'
|
|
32340
|
-
}, dataInputBusinessType === 12 ? {
|
|
33324
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
32341
33325
|
mode: 'multiple',
|
|
32342
33326
|
maxTagCount: 1
|
|
32343
33327
|
} : {}),
|
|
@@ -32348,7 +33332,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32348
33332
|
filterInit: 'qp-itemCode-in'
|
|
32349
33333
|
},
|
|
32350
33334
|
onChange: function onChange(value) {
|
|
32351
|
-
if (dataInputBusinessType === 12) {
|
|
33335
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
32352
33336
|
values = value.map(function (i) {
|
|
32353
33337
|
return i.key;
|
|
32354
33338
|
}) || [];
|
|
@@ -32361,7 +33345,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32361
33345
|
}
|
|
32362
33346
|
callback(values, valueNames);
|
|
32363
33347
|
},
|
|
32364
|
-
|
|
33348
|
+
highestPopContainer: function highestPopContainer() {
|
|
32365
33349
|
return document.body;
|
|
32366
33350
|
}
|
|
32367
33351
|
});
|
|
@@ -32437,21 +33421,23 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32437
33421
|
}));
|
|
32438
33422
|
} else {
|
|
32439
33423
|
var _values6;
|
|
32440
|
-
var _currentValue5 = dataInputBusinessType === 12 ? ((_values6 = values) === null || _values6 === void 0 ? void 0 : _values6.map(function (s, vIndex) {
|
|
33424
|
+
var _currentValue5 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values6 = values) === null || _values6 === void 0 ? void 0 : _values6.map(function (s, vIndex) {
|
|
32441
33425
|
return {
|
|
32442
33426
|
key: s,
|
|
32443
|
-
label: valueNames[vIndex]
|
|
33427
|
+
label: valueNames[vIndex],
|
|
33428
|
+
value: s
|
|
32444
33429
|
};
|
|
32445
33430
|
})) || [] : values[0] && {
|
|
32446
33431
|
key: values[0],
|
|
32447
|
-
label: valueNames[0]
|
|
33432
|
+
label: valueNames[0],
|
|
33433
|
+
value: values[0]
|
|
32448
33434
|
} || {};
|
|
32449
33435
|
return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
32450
33436
|
selectBusinessType: "skuCommodity",
|
|
32451
33437
|
selectProps: _objectSpread2({
|
|
32452
33438
|
style: styleCommon,
|
|
32453
33439
|
placeholder: '请选择商品'
|
|
32454
|
-
}, dataInputBusinessType === 12 ? {
|
|
33440
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
32455
33441
|
mode: 'multiple',
|
|
32456
33442
|
maxTagCount: 1
|
|
32457
33443
|
} : {}),
|
|
@@ -32462,7 +33448,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32462
33448
|
filterInit: 'qp-skuCode-in'
|
|
32463
33449
|
},
|
|
32464
33450
|
onChange: function onChange(value) {
|
|
32465
|
-
if (dataInputBusinessType === 12) {
|
|
33451
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
32466
33452
|
values = value.map(function (i) {
|
|
32467
33453
|
return i.key;
|
|
32468
33454
|
}) || [];
|
|
@@ -32475,7 +33461,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32475
33461
|
}
|
|
32476
33462
|
callback(values, valueNames);
|
|
32477
33463
|
},
|
|
32478
|
-
|
|
33464
|
+
highestPopContainer: function highestPopContainer() {
|
|
32479
33465
|
return document.body;
|
|
32480
33466
|
}
|
|
32481
33467
|
});
|
|
@@ -32916,7 +33902,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32916
33902
|
}
|
|
32917
33903
|
callback(values, valueNames);
|
|
32918
33904
|
},
|
|
32919
|
-
|
|
33905
|
+
highestPopContainer: function highestPopContainer() {
|
|
32920
33906
|
return document.body;
|
|
32921
33907
|
}
|
|
32922
33908
|
}), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
@@ -32948,27 +33934,29 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32948
33934
|
}
|
|
32949
33935
|
callback(values, valueNames);
|
|
32950
33936
|
},
|
|
32951
|
-
|
|
33937
|
+
highestPopContainer: function highestPopContainer() {
|
|
32952
33938
|
return document.body;
|
|
32953
33939
|
}
|
|
32954
33940
|
}));
|
|
32955
33941
|
} else {
|
|
32956
33942
|
var _values7;
|
|
32957
|
-
var _currentValue6 = dataInputBusinessType === 12 ? ((_values7 = values) === null || _values7 === void 0 ? void 0 : _values7.map(function (s, vIndex) {
|
|
33943
|
+
var _currentValue6 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values7 = values) === null || _values7 === void 0 ? void 0 : _values7.map(function (s, vIndex) {
|
|
32958
33944
|
return {
|
|
32959
33945
|
key: s,
|
|
32960
|
-
label: valueNames[vIndex]
|
|
33946
|
+
label: valueNames[vIndex],
|
|
33947
|
+
value: s
|
|
32961
33948
|
};
|
|
32962
33949
|
})) || [] : values[0] && {
|
|
32963
33950
|
key: values[0],
|
|
32964
|
-
label: valueNames[0]
|
|
33951
|
+
label: valueNames[0],
|
|
33952
|
+
value: values[0]
|
|
32965
33953
|
} || {};
|
|
32966
33954
|
return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
32967
33955
|
selectBusinessType: "supplier2",
|
|
32968
33956
|
selectProps: _objectSpread2({
|
|
32969
33957
|
style: styleCommon,
|
|
32970
33958
|
placeholder: '请选择供应商'
|
|
32971
|
-
}, dataInputBusinessType === 12 ? {
|
|
33959
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
32972
33960
|
mode: 'multiple',
|
|
32973
33961
|
maxTagCount: 1
|
|
32974
33962
|
} : {}),
|
|
@@ -32979,7 +33967,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32979
33967
|
filterInit: 'qp-code-in'
|
|
32980
33968
|
},
|
|
32981
33969
|
onChange: function onChange(value) {
|
|
32982
|
-
if (dataInputBusinessType === 12) {
|
|
33970
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
32983
33971
|
values = value.map(function (i) {
|
|
32984
33972
|
return i.key;
|
|
32985
33973
|
}) || [];
|
|
@@ -32992,7 +33980,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32992
33980
|
}
|
|
32993
33981
|
callback(values, valueNames);
|
|
32994
33982
|
},
|
|
32995
|
-
|
|
33983
|
+
highestPopContainer: function highestPopContainer() {
|
|
32996
33984
|
return document.body;
|
|
32997
33985
|
}
|
|
32998
33986
|
});
|
|
@@ -33068,21 +34056,23 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33068
34056
|
}));
|
|
33069
34057
|
} else {
|
|
33070
34058
|
var _values8;
|
|
33071
|
-
var _currentValue7 = dataInputBusinessType === 12 ? ((_values8 = values) === null || _values8 === void 0 ? void 0 : _values8.map(function (s, vIndex) {
|
|
34059
|
+
var _currentValue7 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values8 = values) === null || _values8 === void 0 ? void 0 : _values8.map(function (s, vIndex) {
|
|
33072
34060
|
return {
|
|
33073
34061
|
key: s,
|
|
33074
|
-
label: valueNames[vIndex]
|
|
34062
|
+
label: valueNames[vIndex],
|
|
34063
|
+
value: s
|
|
33075
34064
|
};
|
|
33076
34065
|
})) || [] : values[0] && {
|
|
33077
34066
|
key: values[0],
|
|
33078
|
-
label: valueNames[0]
|
|
34067
|
+
label: valueNames[0],
|
|
34068
|
+
value: values[0]
|
|
33079
34069
|
} || {};
|
|
33080
34070
|
return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
33081
34071
|
selectBusinessType: "customer2",
|
|
33082
34072
|
selectProps: _objectSpread2({
|
|
33083
34073
|
style: styleCommon,
|
|
33084
34074
|
placeholder: '请选择客户'
|
|
33085
|
-
}, dataInputBusinessType === 12 ? {
|
|
34075
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
33086
34076
|
mode: 'multiple',
|
|
33087
34077
|
maxTagCount: 1
|
|
33088
34078
|
} : {}),
|
|
@@ -33093,7 +34083,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33093
34083
|
filterInit: 'qp-code-in'
|
|
33094
34084
|
},
|
|
33095
34085
|
onChange: function onChange(value) {
|
|
33096
|
-
if (dataInputBusinessType === 12) {
|
|
34086
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
33097
34087
|
values = value.map(function (i) {
|
|
33098
34088
|
return i.key;
|
|
33099
34089
|
}) || [];
|
|
@@ -33106,7 +34096,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33106
34096
|
}
|
|
33107
34097
|
callback(values, valueNames);
|
|
33108
34098
|
},
|
|
33109
|
-
|
|
34099
|
+
highestPopContainer: function highestPopContainer() {
|
|
33110
34100
|
return document.body;
|
|
33111
34101
|
}
|
|
33112
34102
|
});
|
|
@@ -33182,21 +34172,23 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33182
34172
|
}));
|
|
33183
34173
|
} else {
|
|
33184
34174
|
var _values9;
|
|
33185
|
-
var _currentValue8 = dataInputBusinessType === 12 ? ((_values9 = values) === null || _values9 === void 0 ? void 0 : _values9.map(function (s, vIndex) {
|
|
34175
|
+
var _currentValue8 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values9 = values) === null || _values9 === void 0 ? void 0 : _values9.map(function (s, vIndex) {
|
|
33186
34176
|
return {
|
|
33187
34177
|
key: s,
|
|
33188
|
-
label: valueNames[vIndex]
|
|
34178
|
+
label: valueNames[vIndex],
|
|
34179
|
+
value: s
|
|
33189
34180
|
};
|
|
33190
34181
|
})) || [] : values[0] && {
|
|
33191
34182
|
key: values[0],
|
|
33192
|
-
label: valueNames[0]
|
|
34183
|
+
label: valueNames[0],
|
|
34184
|
+
value: values[0]
|
|
33193
34185
|
} || {};
|
|
33194
34186
|
return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
33195
34187
|
selectBusinessType: "shopFile2",
|
|
33196
34188
|
selectProps: _objectSpread2({
|
|
33197
34189
|
style: styleCommon,
|
|
33198
34190
|
placeholder: '请选择店铺'
|
|
33199
|
-
}, dataInputBusinessType === 12 ? {
|
|
34191
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
33200
34192
|
mode: 'multiple',
|
|
33201
34193
|
maxTagCount: 1
|
|
33202
34194
|
} : {}),
|
|
@@ -33207,7 +34199,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33207
34199
|
filterInit: 'qp-code-in'
|
|
33208
34200
|
},
|
|
33209
34201
|
onChange: function onChange(value) {
|
|
33210
|
-
if (dataInputBusinessType === 12) {
|
|
34202
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
33211
34203
|
values = value.map(function (i) {
|
|
33212
34204
|
return i.key;
|
|
33213
34205
|
}) || [];
|
|
@@ -33220,7 +34212,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33220
34212
|
}
|
|
33221
34213
|
callback(values, valueNames);
|
|
33222
34214
|
},
|
|
33223
|
-
|
|
34215
|
+
highestPopContainer: function highestPopContainer() {
|
|
33224
34216
|
return document.body;
|
|
33225
34217
|
}
|
|
33226
34218
|
});
|
|
@@ -33296,21 +34288,23 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33296
34288
|
}));
|
|
33297
34289
|
} else {
|
|
33298
34290
|
var _values10;
|
|
33299
|
-
var _currentValue9 = dataInputBusinessType === 12 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
|
|
34291
|
+
var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
|
|
33300
34292
|
return {
|
|
33301
34293
|
key: s,
|
|
33302
|
-
label: valueNames[vIndex]
|
|
34294
|
+
label: valueNames[vIndex],
|
|
34295
|
+
value: s
|
|
33303
34296
|
};
|
|
33304
34297
|
})) || [] : values[0] && {
|
|
33305
34298
|
key: values[0],
|
|
33306
|
-
label: valueNames[0]
|
|
34299
|
+
label: valueNames[0],
|
|
34300
|
+
value: values[0]
|
|
33307
34301
|
} || {};
|
|
33308
34302
|
return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
33309
34303
|
selectBusinessType: "employee2",
|
|
33310
34304
|
selectProps: _objectSpread2({
|
|
33311
34305
|
style: styleCommon,
|
|
33312
34306
|
placeholder: '请选择员工'
|
|
33313
|
-
}, dataInputBusinessType === 12 ? {
|
|
34307
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
33314
34308
|
mode: 'multiple',
|
|
33315
34309
|
maxTagCount: 1
|
|
33316
34310
|
} : {}),
|
|
@@ -33321,7 +34315,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33321
34315
|
filterInit: 'qp-id-in'
|
|
33322
34316
|
},
|
|
33323
34317
|
onChange: function onChange(value) {
|
|
33324
|
-
if (dataInputBusinessType === 12) {
|
|
34318
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
33325
34319
|
values = value.map(function (i) {
|
|
33326
34320
|
return i.key;
|
|
33327
34321
|
}) || [];
|
|
@@ -33334,7 +34328,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33334
34328
|
}
|
|
33335
34329
|
callback(values, valueNames);
|
|
33336
34330
|
},
|
|
33337
|
-
|
|
34331
|
+
highestPopContainer: function highestPopContainer() {
|
|
33338
34332
|
return document.body;
|
|
33339
34333
|
}
|
|
33340
34334
|
});
|
|
@@ -33573,21 +34567,23 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33573
34567
|
}));
|
|
33574
34568
|
} else {
|
|
33575
34569
|
var _values11;
|
|
33576
|
-
var _currentValue10 = dataInputBusinessType === 12 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
|
|
34570
|
+
var _currentValue10 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
|
|
33577
34571
|
return {
|
|
33578
34572
|
key: s,
|
|
33579
|
-
label: valueNames[vIndex]
|
|
34573
|
+
label: valueNames[vIndex],
|
|
34574
|
+
value: s
|
|
33580
34575
|
};
|
|
33581
34576
|
})) || [] : values[0] && {
|
|
33582
34577
|
key: values[0],
|
|
33583
|
-
label: valueNames[0]
|
|
34578
|
+
label: valueNames[0],
|
|
34579
|
+
value: values[0]
|
|
33584
34580
|
} || {};
|
|
33585
34581
|
return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
33586
34582
|
selectBusinessType: "deliveryMode",
|
|
33587
34583
|
selectProps: _objectSpread2({
|
|
33588
34584
|
style: styleCommon,
|
|
33589
34585
|
placeholder: '请选择配送方式'
|
|
33590
|
-
}, dataInputBusinessType === 12 ? {
|
|
34586
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
33591
34587
|
mode: 'multiple',
|
|
33592
34588
|
maxTagCount: 1
|
|
33593
34589
|
} : {}),
|
|
@@ -33598,7 +34594,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33598
34594
|
filterInit: 'qp-code-in'
|
|
33599
34595
|
},
|
|
33600
34596
|
onChange: function onChange(value) {
|
|
33601
|
-
if (dataInputBusinessType === 12) {
|
|
34597
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
33602
34598
|
values = value.map(function (i) {
|
|
33603
34599
|
return i.key;
|
|
33604
34600
|
}) || [];
|
|
@@ -33611,7 +34607,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33611
34607
|
}
|
|
33612
34608
|
callback(values, valueNames);
|
|
33613
34609
|
},
|
|
33614
|
-
|
|
34610
|
+
highestPopContainer: function highestPopContainer() {
|
|
33615
34611
|
return document.body;
|
|
33616
34612
|
}
|
|
33617
34613
|
});
|
|
@@ -33649,7 +34645,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33649
34645
|
}
|
|
33650
34646
|
callback(values, valueNames);
|
|
33651
34647
|
},
|
|
33652
|
-
|
|
34648
|
+
highestPopContainer: function highestPopContainer() {
|
|
33653
34649
|
return document.body;
|
|
33654
34650
|
}
|
|
33655
34651
|
}), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
@@ -33681,27 +34677,29 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33681
34677
|
}
|
|
33682
34678
|
callback(values, valueNames);
|
|
33683
34679
|
},
|
|
33684
|
-
|
|
34680
|
+
highestPopContainer: function highestPopContainer() {
|
|
33685
34681
|
return document.body;
|
|
33686
34682
|
}
|
|
33687
34683
|
}));
|
|
33688
34684
|
} else {
|
|
33689
34685
|
var _values12;
|
|
33690
|
-
var _currentValue11 = dataInputBusinessType === 12 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
|
|
34686
|
+
var _currentValue11 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
|
|
33691
34687
|
return {
|
|
33692
34688
|
key: s,
|
|
33693
|
-
label: valueNames[vIndex]
|
|
34689
|
+
label: valueNames[vIndex],
|
|
34690
|
+
value: s
|
|
33694
34691
|
};
|
|
33695
34692
|
})) || [] : values[0] && {
|
|
33696
34693
|
key: values[0],
|
|
33697
|
-
label: valueNames[0]
|
|
34694
|
+
label: valueNames[0],
|
|
34695
|
+
value: values[0]
|
|
33698
34696
|
} || {};
|
|
33699
34697
|
return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
33700
34698
|
selectBusinessType: "role",
|
|
33701
34699
|
selectProps: _objectSpread2({
|
|
33702
34700
|
style: styleCommon,
|
|
33703
34701
|
placeholder: '请选择角色'
|
|
33704
|
-
}, dataInputBusinessType === 12 ? {
|
|
34702
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
33705
34703
|
mode: 'multiple',
|
|
33706
34704
|
maxTagCount: 1
|
|
33707
34705
|
} : {}),
|
|
@@ -33712,7 +34710,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33712
34710
|
filterInit: 'qp-code-in'
|
|
33713
34711
|
},
|
|
33714
34712
|
onChange: function onChange(value) {
|
|
33715
|
-
if (dataInputBusinessType === 12) {
|
|
34713
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
33716
34714
|
values = value.map(function (i) {
|
|
33717
34715
|
return i.key;
|
|
33718
34716
|
}) || [];
|
|
@@ -33725,7 +34723,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33725
34723
|
}
|
|
33726
34724
|
callback(values, valueNames);
|
|
33727
34725
|
},
|
|
33728
|
-
|
|
34726
|
+
highestPopContainer: function highestPopContainer() {
|
|
33729
34727
|
return document.body;
|
|
33730
34728
|
}
|
|
33731
34729
|
});
|
|
@@ -33763,7 +34761,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33763
34761
|
}
|
|
33764
34762
|
callback(values, valueNames);
|
|
33765
34763
|
},
|
|
33766
|
-
|
|
34764
|
+
highestPopContainer: function highestPopContainer() {
|
|
33767
34765
|
return document.body;
|
|
33768
34766
|
}
|
|
33769
34767
|
}), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
@@ -33795,27 +34793,29 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33795
34793
|
}
|
|
33796
34794
|
callback(values, valueNames);
|
|
33797
34795
|
},
|
|
33798
|
-
|
|
34796
|
+
highestPopContainer: function highestPopContainer() {
|
|
33799
34797
|
return document.body;
|
|
33800
34798
|
}
|
|
33801
34799
|
}));
|
|
33802
34800
|
} else {
|
|
33803
34801
|
var _values13;
|
|
33804
|
-
var _currentValue12 = dataInputBusinessType === 12 ? ((_values13 = values) === null || _values13 === void 0 ? void 0 : _values13.map(function (s, vIndex) {
|
|
34802
|
+
var _currentValue12 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values13 = values) === null || _values13 === void 0 ? void 0 : _values13.map(function (s, vIndex) {
|
|
33805
34803
|
return {
|
|
33806
34804
|
key: s,
|
|
33807
|
-
label: valueNames[vIndex]
|
|
34805
|
+
label: valueNames[vIndex],
|
|
34806
|
+
value: s
|
|
33808
34807
|
};
|
|
33809
34808
|
})) || [] : values[0] && {
|
|
33810
34809
|
key: values[0],
|
|
33811
|
-
label: valueNames[0]
|
|
34810
|
+
label: valueNames[0],
|
|
34811
|
+
value: values[0]
|
|
33812
34812
|
} || {};
|
|
33813
34813
|
return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
33814
34814
|
selectBusinessType: "brand",
|
|
33815
34815
|
selectProps: _objectSpread2({
|
|
33816
34816
|
style: styleCommon,
|
|
33817
34817
|
placeholder: '请选择品牌'
|
|
33818
|
-
}, dataInputBusinessType === 12 ? {
|
|
34818
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
33819
34819
|
mode: 'multiple',
|
|
33820
34820
|
maxTagCount: 1
|
|
33821
34821
|
} : {}),
|
|
@@ -33826,7 +34826,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33826
34826
|
filterInit: 'qp-brandCode-in'
|
|
33827
34827
|
},
|
|
33828
34828
|
onChange: function onChange(value) {
|
|
33829
|
-
if (dataInputBusinessType === 12) {
|
|
34829
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
33830
34830
|
values = value.map(function (i) {
|
|
33831
34831
|
return i.key;
|
|
33832
34832
|
}) || [];
|
|
@@ -33839,7 +34839,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33839
34839
|
}
|
|
33840
34840
|
callback(values, valueNames);
|
|
33841
34841
|
},
|
|
33842
|
-
|
|
34842
|
+
highestPopContainer: function highestPopContainer() {
|
|
33843
34843
|
return document.body;
|
|
33844
34844
|
}
|
|
33845
34845
|
});
|
|
@@ -34288,7 +35288,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34288
35288
|
style: {
|
|
34289
35289
|
marginLeft: '10px'
|
|
34290
35290
|
},
|
|
34291
|
-
className: css_248z$
|
|
35291
|
+
className: css_248z$w.rule_field_style
|
|
34292
35292
|
}, this.renderConditionField());
|
|
34293
35293
|
}
|
|
34294
35294
|
}]);
|
|
@@ -34729,7 +35729,7 @@ var RuleField$1 = /*#__PURE__*/function (_Component) {
|
|
|
34729
35729
|
disabled = _this$props.disabled;
|
|
34730
35730
|
return /*#__PURE__*/React$1.createElement("div", null, ruleTypeData.map(function (i) {
|
|
34731
35731
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
34732
|
-
className: css_248z$
|
|
35732
|
+
className: css_248z$w.action_list_item
|
|
34733
35733
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
34734
35734
|
onClick: function onClick() {
|
|
34735
35735
|
return handleOperatingAction(i.code, 'view');
|
|
@@ -36676,8 +37676,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
36676
37676
|
}]);
|
|
36677
37677
|
}(Component);
|
|
36678
37678
|
|
|
36679
|
-
var css_248z$
|
|
36680
|
-
styleInject(css_248z$
|
|
37679
|
+
var css_248z$x = ".goBack_btn_content {\n position: relative;\n overflow: auto;\n}\n.goBack_btn_content .goback_btn {\n float: right;\n}\n.base_rule p {\n margin: 0;\n}\n.base_rule .base_rule_content {\n margin-bottom: 20px;\n}\n.base_rule .base_rule_line_title {\n position: relative;\n margin-bottom: 20px;\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_content {\n display: flex;\n padding: 14px 10px 10px;\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 width: calc(100% - 600px);\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;\n top: 50%;\n left: 50%;\n z-index: 999;\n display: flex;\n align-items: center;\n width: 50px;\n height: 30px;\n margin-top: -15px;\n margin-left: -25px;\n padding: 0px;\n color: #008fe0;\n line-height: 30px;\n text-align: center;\n background-color: #ffffff;\n cursor: pointer;\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";
|
|
37680
|
+
styleInject(css_248z$x);
|
|
36681
37681
|
|
|
36682
37682
|
var formatOperationList = function formatOperationList(data) {
|
|
36683
37683
|
var _result$find;
|
|
@@ -37410,13 +38410,13 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
37410
38410
|
return /*#__PURE__*/React$1.createElement(Spin, {
|
|
37411
38411
|
spinning: loading
|
|
37412
38412
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
37413
|
-
className: css_248z$
|
|
38413
|
+
className: css_248z$x.base_rule
|
|
37414
38414
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
37415
|
-
className: css_248z$
|
|
38415
|
+
className: css_248z$x.base_rule_content
|
|
37416
38416
|
}, /*#__PURE__*/React$1.createElement("p", {
|
|
37417
|
-
className: css_248z$
|
|
38417
|
+
className: css_248z$x.base_rule_line_title
|
|
37418
38418
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
37419
|
-
className: css_248z$
|
|
38419
|
+
className: css_248z$x.rule_title
|
|
37420
38420
|
}, (_handleDiff = handleDiff()) === null || _handleDiff === void 0 ? void 0 : _handleDiff.title), /*#__PURE__*/React$1.createElement("p", {
|
|
37421
38421
|
style: {
|
|
37422
38422
|
float: 'right'
|
|
@@ -37666,17 +38666,17 @@ var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
37666
38666
|
})));
|
|
37667
38667
|
});
|
|
37668
38668
|
|
|
37669
|
-
var css_248z$
|
|
37670
|
-
styleInject(css_248z$
|
|
38669
|
+
var css_248z$y = ".bs-collapse-wrap {\n border-radius: 4px;\n overflow: hidden;\n}\n.bs-collapse-wrap .bs-collapse-header-wrap {\n background: #fff;\n}\n.bs-collapse-wrap .bs-collapse-icon {\n color: #b6b6b6;\n transition: transform 0.3s;\n}\n.bs-collapse-wrap .bs-guidewrap-icon-toogle {\n transform: rotate(180deg);\n}\n.bs-collapse-wrap .bs-collapse-header-title {\n font-weight: 500;\n font-size: 14px;\n color: #000000;\n}\n.bs-collapse-wrap .bs-collapse-header-divider {\n width: 3px;\n height: 20px;\n background: #005cff;\n}\n.bs-collapse-header-boder .ant-collapse .ant-collapse-item > .ant-collapse-header {\n border-bottom: 1px solid #f0f0f0;\n padding: 8px 16px;\n}\n";
|
|
38670
|
+
styleInject(css_248z$y);
|
|
37671
38671
|
|
|
37672
|
-
var _excluded$
|
|
38672
|
+
var _excluded$l = ["titleExtra", "header", "showArrow"];
|
|
37673
38673
|
var Panel = Collapse.Panel;
|
|
37674
38674
|
var ExtendedPanel = function ExtendedPanel(_ref) {
|
|
37675
38675
|
var titleExtra = _ref.titleExtra,
|
|
37676
38676
|
header = _ref.header,
|
|
37677
38677
|
_ref$showArrow = _ref.showArrow,
|
|
37678
38678
|
showArrow = _ref$showArrow === void 0 ? false : _ref$showArrow,
|
|
37679
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
38679
|
+
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
37680
38680
|
var renderHeader = function renderHeader() {
|
|
37681
38681
|
return /*#__PURE__*/React$1.createElement(Space, {
|
|
37682
38682
|
align: "center"
|
|
@@ -37700,11 +38700,11 @@ var ExtendedPanel = function ExtendedPanel(_ref) {
|
|
|
37700
38700
|
}), props.children);
|
|
37701
38701
|
};
|
|
37702
38702
|
|
|
37703
|
-
var _excluded$
|
|
38703
|
+
var _excluded$m = ["children", "bordered"];
|
|
37704
38704
|
var ExtendedCollapse = function ExtendedCollapse(props) {
|
|
37705
38705
|
var children = props.children,
|
|
37706
38706
|
bordered = props.bordered,
|
|
37707
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
38707
|
+
restProps = _objectWithoutProperties(props, _excluded$m);
|
|
37708
38708
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
37709
38709
|
className: classNames({
|
|
37710
38710
|
'bs-collapse-wrap': true,
|
|
@@ -37718,9 +38718,9 @@ var index$8 = Object.assign(ExtendedCollapse, {
|
|
|
37718
38718
|
Board: ExtendedPanel
|
|
37719
38719
|
});
|
|
37720
38720
|
|
|
37721
|
-
var css_248z$
|
|
38721
|
+
var css_248z$z = ".index-module_paragraphCopyWrapper__3rGOI {\n display: flex;\n margin-bottom: 4px;\n}\n.index-module_paragraphCopyWrapper__3rGOI .index-module_paragraphCopyLabel__1Qb8u {\n color: #8c8e91;\n font-size: 12px;\n white-space: nowrap;\n}\n.index-module_paragraphCopyWrapper__3rGOI .index-module_paragraphCopy__1y7Jo {\n min-width: 100px;\n margin-bottom: 0;\n font-size: 12px;\n flex: 1;\n}\n";
|
|
37722
38722
|
var styles = {"paragraphCopyWrapper":"index-module_paragraphCopyWrapper__3rGOI","paragraphCopyLabel":"index-module_paragraphCopyLabel__1Qb8u","paragraphCopy":"index-module_paragraphCopy__1y7Jo"};
|
|
37723
|
-
styleInject(css_248z$
|
|
38723
|
+
styleInject(css_248z$z);
|
|
37724
38724
|
|
|
37725
38725
|
var Paragraph = Typography.Paragraph;
|
|
37726
38726
|
var Section = function Section(_ref) {
|
|
@@ -37814,4 +38814,4 @@ var ParagraphCopier = function ParagraphCopier(props) {
|
|
|
37814
38814
|
}, children));
|
|
37815
38815
|
};
|
|
37816
38816
|
|
|
37817
|
-
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, ParagraphCopier, QueryMutipleInput, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy, _coverToParallel as coverToParallel, createUniqID, downloadExcel, ergodicMenuRoutes, _formatter as formatter, getAccountID, getAccountId, getBreadcrumbNameMap, getCommonInfoKey, getConfigTableColumns, getCurrentTargetBgId, getCurrentTenantId, getDictionarySource, getDictionaryTextByValue, getEmployeeCode, getEmployeeId, getItemDefaultWidth$1 as getItemDefaultWidth, getJoinDictionaryText, getLastKey, getLimitMenuDataKey, getLocalStorageSaveKey, getMenuAuthDataKey, getSessionId, getSkuImg, getTenantList, getUserId, getUserName, go2BackAndClose, handleAntdColumnsSpecialParams, handleBaseUrlPre, handleBeforeUpload, handleBssulaColumnsSpecialParams, handleCommonTimeRender$1 as handleCommonTimeRender, handleConvertResponse, handleError, handleExport, handleExportBarCode, handleJudgeAuthButtons, handleOssUrl, handleRequestAuthHeader, handleRequestHeader, handleRequestUrl, handleStatusBadge, handleTextBreakSpaces, handleTextDouble$1 as handleTextDouble, handleTextDoubleOrId, handleTextLineFeed$1 as handleTextLineFeed, handleTextOverflow$1 as handleTextOverflow, handleTextTooltip, handleTextWarp, handleTextWarpCustom, handleTooltip$1 as handleTooltip, handleTooltipHours$1 as handleTooltipHours, handleUserPhone, judgeIsEmpty, judgeIsRequestError, judgeIsRequestSuccess, keyToWord, memoizeOneFormatter, noEmptyArr, noEmptyArray, paramsControl, parseWidth, precisionQuantity, randomString, readerXlsxToList, removeCurrentTenantId, removeTenantList, renderFixed2, renderNumberText, saveCurrentTenantId, saveTenantList, setConfigTableColumns, shouldUseAuth, socketFunctions, sulaTableRenderTooltip, tableColumnsImage$1 as tableColumnsImage, textIcon, updateGuanDate, userColumns$1 as userColumns, userInfoCard$1 as userInfoCard, uuid, writeListToXlsx };
|
|
38817
|
+
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, ParagraphCopier, PropertySelector, QueryMutipleInput, QueryMutipleSearchSelect, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy, _coverToParallel as coverToParallel, createUniqID, downloadExcel, ergodicMenuRoutes, _formatter as formatter, getAccountID, getAccountId, getBreadcrumbNameMap, getCommonInfoKey, getConfigTableColumns, getCurrentTargetBgId, getCurrentTenantId, getDictionarySource, getDictionaryTextByValue, getEmployeeCode, getEmployeeId, getItemDefaultWidth$1 as getItemDefaultWidth, getJoinDictionaryText, getLastKey, getLimitMenuDataKey, getLocalStorageSaveKey, getMenuAuthDataKey, getSessionId, getSkuImg, getTenantList, getUserId, getUserName, go2BackAndClose, handleAntdColumnsSpecialParams, handleBaseUrlPre, handleBeforeUpload, handleBssulaColumnsSpecialParams, handleCommonTimeRender$1 as handleCommonTimeRender, handleConvertResponse, handleError, handleExport, handleExportBarCode, handleJudgeAuthButtons, handleOssUrl, handleRequestAuthHeader, handleRequestHeader, handleRequestUrl, handleStatusBadge, handleTextBreakSpaces, handleTextDouble$1 as handleTextDouble, handleTextDoubleOrId, handleTextLineFeed$1 as handleTextLineFeed, handleTextOverflow$1 as handleTextOverflow, handleTextTooltip, handleTextWarp, handleTextWarpCustom, handleTooltip$1 as handleTooltip, handleTooltipHours$1 as handleTooltipHours, handleUserPhone, judgeIsEmpty, judgeIsRequestError, judgeIsRequestSuccess, keyToWord, memoizeOneFormatter, noEmptyArr, noEmptyArray, paramsControl, parseWidth, precisionQuantity, randomString, readerXlsxToList, removeCurrentTenantId, removeTenantList, renderFixed2, renderNumberText, saveCurrentTenantId, saveTenantList, setConfigTableColumns, shouldUseAuth, socketFunctions, sulaTableRenderTooltip, tableColumnsImage$1 as tableColumnsImage, textIcon, updateGuanDate, userColumns$1 as userColumns, userInfoCard$1 as userInfoCard, uuid, writeListToXlsx };
|