@bit-sun/business-component 4.0.12-alpha.8 → 4.0.13-alpha.1
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 +16 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.esm.js +1515 -589
- package/dist/index.js +1512 -584
- package/package.json +3 -3
- package/src/components/Business/BsSulaQueryTable/utils.tsx +5 -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 +50 -3
- package/src/components/Business/SearchSelect/index.md +3 -4
- package/src/components/Business/SearchSelect/index.tsx +4 -1
- 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/QueryMutipleSelect/index.less +117 -0
- package/src/components/Functional/QueryMutipleSelect/index.md +41 -0
- package/src/components/Functional/QueryMutipleSelect/index.tsx +245 -0
- package/src/components/Functional/SearchSelect/index.less +33 -1
- package/src/components/Functional/SearchSelect/index.tsx +76 -269
- package/src/components/Functional/SearchSelect/utils.tsx +401 -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,16 +1,17 @@
|
|
|
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
10
|
import moment$1 from 'moment';
|
|
11
|
-
import { EyeOutlined, DeleteOutlined, EditOutlined, CopyOutlined, CloseSquareOutlined, WarningOutlined, SendOutlined, ProfileTwoTone, ExclamationCircleOutlined, DownOutlined, UnorderedListOutlined, SearchOutlined, CloseCircleOutlined, DownCircleFilled, ArrowLeftOutlined, FolderOutlined, EllipsisOutlined,
|
|
11
|
+
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
12
|
import { request as request$2, Table as Table$1, QueryTable, Form as Form$1 } from 'bssula';
|
|
13
13
|
import 'qs';
|
|
14
|
+
import { renderToString as renderToString$1 } from 'react-dom/server';
|
|
14
15
|
import { utils, writeFile, read } from 'xlsx';
|
|
15
16
|
import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
|
|
16
17
|
import { useDebounceFn, useSize, useMount } from 'ahooks';
|
|
@@ -1187,10 +1188,7 @@ var authFn = function authFn(code) {
|
|
|
1187
1188
|
};
|
|
1188
1189
|
// 可以将普通字符串 或者tsx 转换成字符串
|
|
1189
1190
|
var renderToString = function renderToString(render) {
|
|
1190
|
-
return render;
|
|
1191
|
-
// return typeof render === 'string'
|
|
1192
|
-
// ? render
|
|
1193
|
-
// : ReactDOMServer.renderToString(render);
|
|
1191
|
+
return typeof render === 'string' ? render : renderToString$1(render);
|
|
1194
1192
|
};
|
|
1195
1193
|
|
|
1196
1194
|
function downloadExcel(data, fileName, isResUrl) {
|
|
@@ -4075,7 +4073,7 @@ function ToCDB(str) {
|
|
|
4075
4073
|
return tmp;
|
|
4076
4074
|
}
|
|
4077
4075
|
|
|
4078
|
-
var css_248z$5 = ".
|
|
4076
|
+
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
4077
|
styleInject(css_248z$5);
|
|
4080
4078
|
|
|
4081
4079
|
var columnsPerRow = 4; // 每行的列数
|
|
@@ -4083,6 +4081,12 @@ var ColSpan = 6; // 查询条件 每行col = 24 /columnsPerRow
|
|
|
4083
4081
|
var handleSourceName = function handleSourceName(sName) {
|
|
4084
4082
|
return sName;
|
|
4085
4083
|
};
|
|
4084
|
+
// 生成唯一值
|
|
4085
|
+
var makeUniqueValue = function makeUniqueValue() {
|
|
4086
|
+
var generateUnitKey = ((1 + Math.random()) * 0x10000 | 0).toString(16);
|
|
4087
|
+
return generateUnitKey;
|
|
4088
|
+
};
|
|
4089
|
+
// ------------------------------------------处理样式相关--开始----------------------------------------
|
|
4086
4090
|
var getFormRowInfo = function getFormRowInfo(list) {
|
|
4087
4091
|
var totalRows = Math.ceil(list.length / columnsPerRow); // 计算总行数
|
|
4088
4092
|
var lastRowColumns = (list.length + 1) % columnsPerRow; // 计算最后一行的实际列数
|
|
@@ -4111,6 +4115,22 @@ var hasMoreQueryFields = function hasMoreQueryFields(modalTableProps) {
|
|
|
4111
4115
|
var visibleFieldsCount = getVisibleFieldsCount(modalTableProps);
|
|
4112
4116
|
return visibleFieldsCount < (tableSearchForm === null || tableSearchForm === void 0 ? void 0 : tableSearchForm.length);
|
|
4113
4117
|
};
|
|
4118
|
+
var getTableHeigth = function getTableHeigth(list) {
|
|
4119
|
+
var totalRows = Math.ceil(((list === null || list === void 0 ? void 0 : list.length) + 1) / 4);
|
|
4120
|
+
if (totalRows == 1) return 358; // modal弹窗760 调整为700 适应小屏
|
|
4121
|
+
return 411 - totalRows * 10;
|
|
4122
|
+
};
|
|
4123
|
+
// ------------------------------------------处理样式相关--结束----------------------------------------
|
|
4124
|
+
// ------------------------------------------处理数据相关--开始----------------------------------------
|
|
4125
|
+
var formatSelectedValue = function formatSelectedValue(value) {
|
|
4126
|
+
return (value === null || value === void 0 ? void 0 : value.map(function (s) {
|
|
4127
|
+
return {
|
|
4128
|
+
value: (s === null || s === void 0 ? void 0 : s.value) || s,
|
|
4129
|
+
key: (s === null || s === void 0 ? void 0 : s.key) || (s === null || s === void 0 ? void 0 : s.value) || s,
|
|
4130
|
+
label: (s === null || s === void 0 ? void 0 : s.label) || ''
|
|
4131
|
+
};
|
|
4132
|
+
})) || [];
|
|
4133
|
+
};
|
|
4114
4134
|
var getRealStr = function getRealStr(oldSelect, newSelect, record) {
|
|
4115
4135
|
return (oldSelect === null || oldSelect === void 0 ? void 0 : oldSelect.length) ? oldSelect.some(function (o) {
|
|
4116
4136
|
return o.value == (record === null || record === void 0 ? void 0 : record.value);
|
|
@@ -4118,17 +4138,1031 @@ var getRealStr = function getRealStr(oldSelect, newSelect, record) {
|
|
|
4118
4138
|
return s.value != (record === null || record === void 0 ? void 0 : record.value);
|
|
4119
4139
|
}) : [].concat(_toConsumableArray(oldSelect), _toConsumableArray(newSelect)) : newSelect;
|
|
4120
4140
|
};
|
|
4121
|
-
var
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4141
|
+
var getCurrentSRKs = function getCurrentSRKs(selectMode, labelInValue, value) {
|
|
4142
|
+
return selectMode ? labelInValue ? value === null || value === void 0 ? void 0 : value.map(function (s) {
|
|
4143
|
+
return (s === null || s === void 0 ? void 0 : s.value) || s;
|
|
4144
|
+
}) : value : labelInValue ? (value === null || value === void 0 ? void 0 : value.value) && [value === null || value === void 0 ? void 0 : value.value] || [] : value && [value] || [];
|
|
4145
|
+
};
|
|
4146
|
+
var getRenderSource = function getRenderSource(currentSRKs, items) {
|
|
4147
|
+
// 判空处理
|
|
4148
|
+
if (!(currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.length)) return items || [];
|
|
4149
|
+
// 创建映射对象 用于记录原始选中顺序
|
|
4150
|
+
var orderMap = new Map();
|
|
4151
|
+
currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.forEach(function (value, index) {
|
|
4152
|
+
orderMap.set(value, index);
|
|
4153
|
+
});
|
|
4154
|
+
// 被选中数据集合,获取之后排序
|
|
4155
|
+
var selectedOption = (items === null || items === void 0 ? void 0 : items.filter(function (option) {
|
|
4156
|
+
return currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.includes(option.value);
|
|
4157
|
+
})) || [];
|
|
4158
|
+
var selectedOptionSort = (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.sort(function (a, b) {
|
|
4159
|
+
var _orderMap$get, _orderMap$get2;
|
|
4160
|
+
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);
|
|
4161
|
+
})) || [];
|
|
4162
|
+
// 未选中数据集合
|
|
4163
|
+
var otherOptions = (items === null || items === void 0 ? void 0 : items.filter(function (option) {
|
|
4164
|
+
return !(currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.includes(option.value));
|
|
4165
|
+
})) || [];
|
|
4166
|
+
return [].concat(_toConsumableArray(selectedOptionSort), _toConsumableArray(otherOptions));
|
|
4167
|
+
};
|
|
4168
|
+
// ------------------------------------------处理数据相关--结束----------------------------------------
|
|
4169
|
+
// ------------------------------------------查询 & 数据源 相关处理--开始----------------------------------------
|
|
4170
|
+
var handleParams = function handleParams(params) {
|
|
4171
|
+
var _loop = function _loop() {
|
|
4172
|
+
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
4173
|
+
var element = params[key];
|
|
4174
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
4175
|
+
var dataParams = key.split('*number*');
|
|
4176
|
+
dataParams.forEach(function (value, index) {
|
|
4177
|
+
params[value] = element[index];
|
|
4178
|
+
});
|
|
4179
|
+
delete params[key];
|
|
4180
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
4181
|
+
var _dataParams = key.split('*address*');
|
|
4182
|
+
_dataParams.forEach(function (value, index) {
|
|
4183
|
+
params[value] = element.PCDCode[index];
|
|
4184
|
+
});
|
|
4185
|
+
delete params[key];
|
|
4186
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
4187
|
+
var _dataParams2 = key.split('*costType*');
|
|
4188
|
+
// eslint-disable-next-line prefer-destructuring
|
|
4189
|
+
params[_dataParams2[0]] = element[1];
|
|
4190
|
+
delete params[key];
|
|
4191
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
4192
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
4193
|
+
_dataParams3.forEach(function (value, index) {
|
|
4194
|
+
if (index === 0) {
|
|
4195
|
+
params[value] = moment$1(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
4196
|
+
} else {
|
|
4197
|
+
params[value] = moment$1(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
4198
|
+
}
|
|
4199
|
+
});
|
|
4200
|
+
delete params[key];
|
|
4201
|
+
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
4202
|
+
var _dataParams4 = key.split('*checkBox*');
|
|
4203
|
+
if (element) {
|
|
4204
|
+
params[_dataParams4[0]] = 0;
|
|
4205
|
+
}
|
|
4206
|
+
delete params[key];
|
|
4207
|
+
} else if (element && key.indexOf('*cascader*') >= 0) {
|
|
4208
|
+
var _dataParams5 = key.split('*cascader*');
|
|
4209
|
+
params[_dataParams5[0]] = element[element.length - 1];
|
|
4210
|
+
delete params[key];
|
|
4211
|
+
} else if (element && key.indexOf('*date*') >= 0) {
|
|
4212
|
+
var _dataParams6 = key.split('*date*');
|
|
4213
|
+
_dataParams6.forEach(function (value, index) {
|
|
4214
|
+
if (index === 0) {
|
|
4215
|
+
params[value] = moment$1(element[index]).format('YYYY-MM-DD');
|
|
4216
|
+
} else {
|
|
4217
|
+
params[value] = moment$1(element[index]).format('YYYY-MM-DD');
|
|
4218
|
+
}
|
|
4219
|
+
});
|
|
4220
|
+
delete params[key];
|
|
4221
|
+
} else if (element && key.indexOf('*multiInput') >= 0) {
|
|
4222
|
+
var name = '',
|
|
4223
|
+
value = element['value'];
|
|
4224
|
+
if (value.indexOf(',') >= 0) {
|
|
4225
|
+
name = "qp-".concat(element['name'], "-in");
|
|
4226
|
+
} else {
|
|
4227
|
+
name = "qp-".concat(element['name'], "-like");
|
|
4228
|
+
}
|
|
4229
|
+
params[name] = value;
|
|
4230
|
+
delete params[key];
|
|
4231
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
4232
|
+
var _dataParams7 = key.split('*');
|
|
4233
|
+
_dataParams7.forEach(function (value, index) {
|
|
4234
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
4235
|
+
});
|
|
4236
|
+
delete params[key];
|
|
4237
|
+
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
4238
|
+
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
4239
|
+
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
4240
|
+
if (params[key][0] === 'range') {
|
|
4241
|
+
if (params[key][1][0]) {
|
|
4242
|
+
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
4243
|
+
}
|
|
4244
|
+
if (params[key][1][1]) {
|
|
4245
|
+
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
4246
|
+
}
|
|
4247
|
+
} else {
|
|
4248
|
+
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
4249
|
+
}
|
|
4250
|
+
delete params[key];
|
|
4251
|
+
} else if (Array.isArray(element)) {
|
|
4252
|
+
params[key] = element.join(',');
|
|
4253
|
+
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
4254
|
+
delete params[key];
|
|
4255
|
+
}
|
|
4256
|
+
}
|
|
4257
|
+
};
|
|
4258
|
+
for (var key in params) {
|
|
4259
|
+
_loop();
|
|
4260
|
+
}
|
|
4261
|
+
};
|
|
4262
|
+
//处理单据编号查询 如果是查询单条数据 就是模糊查询 两条以上就是精准查询
|
|
4263
|
+
var convertOrderNo = function convertOrderNo(params) {
|
|
4264
|
+
//需要处理得编号字段名
|
|
4265
|
+
var arr = ['qp-skuCode-in', 'qp-eancode-in', 'qp-itemCode-in'];
|
|
4266
|
+
for (var i = 0; i < arr.length; i++) {
|
|
4267
|
+
if (params[arr[i]]) {
|
|
4268
|
+
if (!params[arr[i]].includes(',')) {
|
|
4269
|
+
params[arr[i].replace(/(.*)in/, '$1like')] = params[arr[i]];
|
|
4270
|
+
delete params[arr[i]];
|
|
4271
|
+
}
|
|
4272
|
+
}
|
|
4273
|
+
}
|
|
4274
|
+
return params;
|
|
4275
|
+
};
|
|
4276
|
+
var convertQueryParams = function convertQueryParams(params) {
|
|
4277
|
+
var result = convertOrderNo(params);
|
|
4278
|
+
return omit(result, ['UNIQUE_SPEC']); // 处理sku选择器属性参数
|
|
4279
|
+
};
|
|
4280
|
+
var convertUrlQueryParams = function convertUrlQueryParams(params) {
|
|
4281
|
+
// 非query请求:默认参数拼接URL,设置属性noUrlQueryParams可不拼接
|
|
4282
|
+
return (params === null || params === void 0 ? void 0 : params.noUrlQueryParams) ? '' : "?".concat(stringify(convertQueryParams(params)));
|
|
4283
|
+
};
|
|
4284
|
+
var convertBodyParams = function convertBodyParams(params) {
|
|
4285
|
+
// 处理sku选择器属性参数
|
|
4286
|
+
var unique_params = null;
|
|
4287
|
+
if (params['UNIQUE_SPEC']) {
|
|
4288
|
+
var _params$UNIQUE_SPEC;
|
|
4289
|
+
unique_params = ((_params$UNIQUE_SPEC = params['UNIQUE_SPEC']) === null || _params$UNIQUE_SPEC === void 0 ? void 0 : _params$UNIQUE_SPEC.propertyList) || [];
|
|
4290
|
+
}
|
|
4291
|
+
// body参数来源:sku选择器固定参数 > 调用所传bodyParams > 默认参数-无
|
|
4292
|
+
return unique_params || (params === null || params === void 0 ? void 0 : params.bodyParams) || null;
|
|
4293
|
+
};
|
|
4294
|
+
var convertRes = function convertRes(data, otherParams) {
|
|
4295
|
+
var mappingTextField = otherParams.mappingTextField,
|
|
4296
|
+
mappingTextShowTextField = otherParams.mappingTextShowTextField,
|
|
4297
|
+
mappingTextShowKeyField = otherParams.mappingTextShowKeyField,
|
|
4298
|
+
mappingValueField = otherParams.mappingValueField,
|
|
4299
|
+
specialBracket = otherParams.specialBracket,
|
|
4300
|
+
type = otherParams.type,
|
|
4301
|
+
queryParams = otherParams.queryParams;
|
|
4302
|
+
return data.map(function (item, index) {
|
|
4303
|
+
var _item$children;
|
|
4304
|
+
var textShowText = item[mappingTextField];
|
|
4305
|
+
if (mappingTextShowTextField) {
|
|
4306
|
+
textShowText = [];
|
|
4307
|
+
if (Array.isArray(mappingTextShowTextField)) {
|
|
4308
|
+
mappingTextShowTextField.forEach(function (r) {
|
|
4309
|
+
textShowText.push(item[r]);
|
|
4310
|
+
});
|
|
4311
|
+
} else {
|
|
4312
|
+
textShowText = item[mappingTextShowTextField];
|
|
4313
|
+
}
|
|
4314
|
+
}
|
|
4315
|
+
if (!(item === null || item === void 0 ? void 0 : (_item$children = item.children) === null || _item$children === void 0 ? void 0 : _item$children.length)) {
|
|
4316
|
+
item === null || item === void 0 ? true : delete item.children;
|
|
4317
|
+
}
|
|
4318
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
4319
|
+
text: specialBracket ? "\u3010".concat(item[mappingValueField], "\u3011").concat(item[mappingTextField]) : item[mappingTextField],
|
|
4320
|
+
textShowText: textShowText,
|
|
4321
|
+
textShowKey: item[mappingTextShowKeyField || mappingValueField],
|
|
4322
|
+
value: item[mappingValueField]
|
|
4323
|
+
}, (queryParams === null || queryParams === void 0 ? void 0 : queryParams.pageSize) ? {
|
|
4324
|
+
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
|
|
4325
|
+
} : {});
|
|
4326
|
+
});
|
|
4327
|
+
};
|
|
4328
|
+
var convertResData = function convertResData(requestConfig, res, selectProps) {
|
|
4329
|
+
var isMap = requestConfig.isMap,
|
|
4330
|
+
mappingTextField = requestConfig.mappingTextField,
|
|
4331
|
+
mappingTextShowTextField = requestConfig.mappingTextShowTextField,
|
|
4332
|
+
specialBracket = requestConfig.specialBracket,
|
|
4333
|
+
mappingValueField = requestConfig.mappingValueField,
|
|
4334
|
+
mappingTextShowKeyField = requestConfig.mappingTextShowKeyField;
|
|
4335
|
+
var selectMode = selectProps.selectMode,
|
|
4336
|
+
labelInValue = selectProps.labelInValue,
|
|
4337
|
+
value = selectProps.value,
|
|
4338
|
+
type = selectProps.type,
|
|
4339
|
+
items = selectProps.items,
|
|
4340
|
+
queryParams = selectProps.queryParams,
|
|
4341
|
+
_selectProps$needTopS = selectProps.needTopSelectedSource,
|
|
4342
|
+
needTopSelectedSource = _selectProps$needTopS === void 0 ? true : _selectProps$needTopS;
|
|
4343
|
+
var otherParams = {
|
|
4344
|
+
mappingTextField: mappingTextField,
|
|
4345
|
+
mappingTextShowTextField: mappingTextShowTextField,
|
|
4346
|
+
mappingTextShowKeyField: mappingTextShowKeyField,
|
|
4347
|
+
mappingValueField: mappingValueField,
|
|
4348
|
+
specialBracket: specialBracket,
|
|
4349
|
+
type: type,
|
|
4350
|
+
queryParams: queryParams
|
|
4351
|
+
};
|
|
4352
|
+
var source = [];
|
|
4353
|
+
if (isMap) {
|
|
4354
|
+
source = Object.keys(res).map(function (d, i) {
|
|
4355
|
+
return {
|
|
4356
|
+
text: Object.values(res)[i],
|
|
4357
|
+
value: d
|
|
4358
|
+
};
|
|
4359
|
+
});
|
|
4360
|
+
} else {
|
|
4361
|
+
var keys = res.list ? 'list' : 'items';
|
|
4362
|
+
source = res ? res[keys] ? convertRes(res[keys], otherParams) : Array.isArray(res) && convertRes(res, otherParams) : [];
|
|
4363
|
+
}
|
|
4364
|
+
// 补充搜索项--选中的数据添加到数据源中去
|
|
4365
|
+
var currentSRKs = getCurrentSRKs(selectMode, labelInValue, value);
|
|
4366
|
+
if (needTopSelectedSource && type === 1 && (currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.length) && (currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.some(function (s) {
|
|
4367
|
+
var _source;
|
|
4368
|
+
return !((_source = source) === null || _source === void 0 ? void 0 : _source.find(function (r) {
|
|
4369
|
+
return r.value == s;
|
|
4370
|
+
}));
|
|
4371
|
+
}))) {
|
|
4372
|
+
var selectedOption = items.filter(function (option) {
|
|
4373
|
+
return currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.includes(option.value);
|
|
4374
|
+
}) || [];
|
|
4375
|
+
source = (source || []).concat(selectedOption);
|
|
4376
|
+
}
|
|
4377
|
+
// 数据源 不可以有重复key
|
|
4378
|
+
source = Array.isArray(source) ? uniqBy(source, 'value') : [];
|
|
4379
|
+
return source;
|
|
4380
|
+
};
|
|
4381
|
+
// ------------------------------------------查询 & 数据源 相关处理--结束----------------------------------------
|
|
4382
|
+
// ------------------------------------------ 数据源展示 相关处理--开始----------------------------------------
|
|
4383
|
+
var handleSelectOptionsShowValue = function handleSelectOptionsShowValue(specialBracket, noNeedSplit, item) {
|
|
4384
|
+
var showText = Array.isArray(item.textShowText) && item.textShowText.join(' ') || item.textShowText;
|
|
4385
|
+
if (noNeedSplit) {
|
|
4386
|
+
return item.text;
|
|
4387
|
+
} else {
|
|
4388
|
+
return specialBracket ? "\u3010".concat(item.textShowKey || '', "\u3011").concat(showText) : "".concat(item.textShowKey || '', " ").concat(showText);
|
|
4389
|
+
}
|
|
4390
|
+
};
|
|
4391
|
+
var LightHeightOption = function LightHeightOption(props) {
|
|
4392
|
+
var filterTxt = props.filterTxt,
|
|
4393
|
+
text = props.text,
|
|
4394
|
+
_props$needToolTips = props.needToolTips,
|
|
4395
|
+
needToolTips = _props$needToolTips === void 0 ? true : _props$needToolTips;
|
|
4396
|
+
var heightLightTxt = function heightLightTxt(text, heightTxt) {
|
|
4397
|
+
if (heightTxt === '') {
|
|
4398
|
+
return text;
|
|
4399
|
+
}
|
|
4400
|
+
var searchString = escapeRegExp(heightTxt);
|
|
4401
|
+
// 前面filterOption 不区分大小写,这里用i
|
|
4402
|
+
var regexp = new RegExp(searchString, 'gi');
|
|
4403
|
+
return text.replace(regexp, "<span style=\"color:red\">".concat(heightTxt, "</span>"));
|
|
4404
|
+
};
|
|
4405
|
+
var renderContent = /*#__PURE__*/React$1.createElement("div", {
|
|
4406
|
+
ref: function ref(nodeElement) {
|
|
4407
|
+
if (nodeElement) {
|
|
4408
|
+
nodeElement.innerHTML = heightLightTxt(text, filterTxt);
|
|
4409
|
+
}
|
|
4410
|
+
}
|
|
4411
|
+
});
|
|
4412
|
+
if (!needToolTips) return renderContent;
|
|
4413
|
+
return /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
4414
|
+
title: text
|
|
4415
|
+
}, renderContent);
|
|
4416
|
+
};
|
|
4417
|
+
var maxTagPlaceholder = function maxTagPlaceholder(selectedValues, _ref3) {
|
|
4418
|
+
var selectProps = _ref3.selectProps,
|
|
4419
|
+
onChange = _ref3.onChange,
|
|
4420
|
+
value = _ref3.value,
|
|
4421
|
+
setIsMaxTagsOpen = _ref3.setIsMaxTagsOpen;
|
|
4422
|
+
var labelInValue = selectProps.labelInValue;
|
|
4423
|
+
var _onClose = function onClose(e, item) {
|
|
4424
|
+
e.preventDefault();
|
|
4425
|
+
var newValue = labelInValue ? JSON.parse(JSON.stringify(value)).filter(function (i) {
|
|
4426
|
+
return i.value !== item.value;
|
|
4427
|
+
}) : JSON.parse(JSON.stringify(value)).filter(function (i) {
|
|
4428
|
+
return i !== item.value;
|
|
4429
|
+
});
|
|
4430
|
+
onChange(newValue);
|
|
4431
|
+
};
|
|
4432
|
+
return /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
4433
|
+
open: true,
|
|
4434
|
+
overlayClassName: 'searchSelectMaxTagToolTip',
|
|
4435
|
+
destroyTooltipOnHide: true,
|
|
4436
|
+
placement: "topRight",
|
|
4437
|
+
autoAdjustOverflow: false,
|
|
4438
|
+
title: (/*#__PURE__*/React$1.createElement("div", {
|
|
4439
|
+
style: {
|
|
4440
|
+
margin: '6px 8px 0px'
|
|
4441
|
+
},
|
|
4442
|
+
onMouseEnter: function onMouseEnter() {
|
|
4443
|
+
setIsMaxTagsOpen === null || setIsMaxTagsOpen === void 0 ? void 0 : setIsMaxTagsOpen(true);
|
|
4444
|
+
},
|
|
4445
|
+
onMouseLeave: function onMouseLeave() {
|
|
4446
|
+
setIsMaxTagsOpen === null || setIsMaxTagsOpen === void 0 ? void 0 : setIsMaxTagsOpen(false);
|
|
4447
|
+
}
|
|
4448
|
+
}, selectedValues.map(function (i) {
|
|
4449
|
+
return /*#__PURE__*/React$1.createElement(Tag, {
|
|
4450
|
+
closable: true,
|
|
4451
|
+
onClose: function onClose(e) {
|
|
4452
|
+
return _onClose(e, i);
|
|
4453
|
+
},
|
|
4454
|
+
style: {
|
|
4455
|
+
margin: '0px 3px 3px 0px',
|
|
4456
|
+
background: '#f5f5f5',
|
|
4457
|
+
height: '24px',
|
|
4458
|
+
border: '1px solid #f0f0f0'
|
|
4459
|
+
}
|
|
4460
|
+
}, i.label);
|
|
4461
|
+
})))
|
|
4462
|
+
}, "+ ".concat(selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.length));
|
|
4463
|
+
};
|
|
4464
|
+
// ------------------------------------------ 数据源展示 相关处理--结束----------------------------------------
|
|
4465
|
+
|
|
4466
|
+
var getValue = function getValue(value, selectMode) {
|
|
4467
|
+
var _value$split;
|
|
4468
|
+
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;
|
|
4469
|
+
};
|
|
4470
|
+
var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
4471
|
+
var onValueChange = _ref.onValueChange,
|
|
4472
|
+
_ref$requestConfig = _ref.requestConfig,
|
|
4473
|
+
requestConfig = _ref$requestConfig === void 0 ? {} : _ref$requestConfig,
|
|
4474
|
+
_ref$selectProps = _ref.selectProps,
|
|
4475
|
+
selectProps = _ref$selectProps === void 0 ? {} : _ref$selectProps,
|
|
4476
|
+
ctx = _ref.ctx;
|
|
4477
|
+
var filter = requestConfig.filter,
|
|
4478
|
+
_requestConfig$method = requestConfig.method,
|
|
4479
|
+
method = _requestConfig$method === void 0 ? 'get' : _requestConfig$method,
|
|
4480
|
+
url = requestConfig.url,
|
|
4481
|
+
_requestConfig$extral = requestConfig.extralHeaders,
|
|
4482
|
+
extralHeaders = _requestConfig$extral === void 0 ? {} : _requestConfig$extral,
|
|
4483
|
+
_requestConfig$otherP = requestConfig.otherParams,
|
|
4484
|
+
otherParams = _requestConfig$otherP === void 0 ? {} : _requestConfig$otherP,
|
|
4485
|
+
_requestConfig$specia = requestConfig.specialBracket,
|
|
4486
|
+
specialBracket = _requestConfig$specia === void 0 ? false : _requestConfig$specia,
|
|
4487
|
+
_requestConfig$noNeed = requestConfig.noNeedSplit,
|
|
4488
|
+
noNeedSplit = _requestConfig$noNeed === void 0 ? false : _requestConfig$noNeed;
|
|
4489
|
+
var selectParamsKey = filter || 'qp-codeAndName-like';
|
|
4490
|
+
var resultSourceKey = handleSourceName((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.sourceName) || (ctx === null || ctx === void 0 ? void 0 : ctx.name) || 'skuCode');
|
|
4491
|
+
var currentSelectProps = _objectSpread2({
|
|
4492
|
+
showArrow: true,
|
|
4493
|
+
showSearch: true,
|
|
4494
|
+
filterOption: false,
|
|
4495
|
+
allowClear: true,
|
|
4496
|
+
listHeight: 160,
|
|
4497
|
+
labelInValue: false,
|
|
4498
|
+
maxTagCount: 4
|
|
4499
|
+
}, selectProps);
|
|
4500
|
+
var selectMode = selectProps === null || selectProps === void 0 ? void 0 : selectProps.mode; // 设定当前选择器 为单选或者多选模式 无设定为单选模式(默认)
|
|
4501
|
+
var _useState = useState(false),
|
|
4502
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
4503
|
+
isModalVisible = _useState2[0],
|
|
4504
|
+
setIsModalVisible = _useState2[1];
|
|
4505
|
+
var _useState3 = useState(false),
|
|
4506
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
4507
|
+
open = _useState4[0],
|
|
4508
|
+
setOpen = _useState4[1];
|
|
4509
|
+
var _useState5 = useState(),
|
|
4510
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
4511
|
+
value = _useState6[0],
|
|
4512
|
+
setValue = _useState6[1];
|
|
4513
|
+
var _useState7 = useState(),
|
|
4514
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
4515
|
+
popvalue = _useState8[0],
|
|
4516
|
+
setPopValue = _useState8[1];
|
|
4517
|
+
var _useState9 = useState([]),
|
|
4518
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
4519
|
+
source = _useState10[0],
|
|
4520
|
+
setSource = _useState10[1];
|
|
4521
|
+
var _useDebounceFn = useDebounceFn(function () {
|
|
4522
|
+
getData();
|
|
4523
|
+
}, {
|
|
4524
|
+
wait: 1000
|
|
4525
|
+
}),
|
|
4526
|
+
run = _useDebounceFn.run;
|
|
4527
|
+
var _useState11 = useState(false),
|
|
4528
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
4529
|
+
fetching = _useState12[0],
|
|
4530
|
+
setFetching = _useState12[1];
|
|
4531
|
+
var _useState13 = useState(''),
|
|
4532
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
4533
|
+
searchValue = _useState14[0],
|
|
4534
|
+
setSearchValue = _useState14[1];
|
|
4535
|
+
var _useState15 = useState(resultSourceKey),
|
|
4536
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
4537
|
+
uniqueValue = _useState16[0],
|
|
4538
|
+
setUniqueValue = _useState16[1];
|
|
4539
|
+
useEffect(function () {
|
|
4540
|
+
if (value) {
|
|
4541
|
+
setPopValue(value);
|
|
4542
|
+
onValueChange(value);
|
|
4543
|
+
}
|
|
4544
|
+
}, [value]);
|
|
4545
|
+
useEffect(function () {
|
|
4546
|
+
setUniqueValue(makeUniqueValue());
|
|
4547
|
+
}, [resultSourceKey]);
|
|
4548
|
+
var showModal = function showModal() {
|
|
4549
|
+
setIsModalVisible(true);
|
|
4550
|
+
//弹窗打开时 默认搜索内容换行显示
|
|
4551
|
+
setPopValue(function (data) {
|
|
4552
|
+
return data === null || data === void 0 ? void 0 : data.replace(/,/g, '\n');
|
|
4553
|
+
});
|
|
4554
|
+
};
|
|
4555
|
+
var handleOk = function handleOk() {
|
|
4556
|
+
formaData(popvalue);
|
|
4557
|
+
setIsModalVisible(false);
|
|
4558
|
+
};
|
|
4559
|
+
var formaData = function formaData(v) {
|
|
4560
|
+
var _ToCDB, _ToCDB$split, _ToCDB$split$filter;
|
|
4561
|
+
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) {
|
|
4562
|
+
return item;
|
|
4563
|
+
})) === null || _ToCDB$split$filter === void 0 ? void 0 : _ToCDB$split$filter.join(',');
|
|
4564
|
+
console.log(formatValue, '1111formatValue');
|
|
4565
|
+
setValue(formatValue);
|
|
4566
|
+
};
|
|
4567
|
+
var handleCancel = function handleCancel() {
|
|
4568
|
+
setIsModalVisible(false);
|
|
4569
|
+
};
|
|
4570
|
+
var outerChange = function outerChange(v) {
|
|
4571
|
+
formaData(v);
|
|
4572
|
+
};
|
|
4573
|
+
var onChange = function onChange(e) {
|
|
4574
|
+
var v = e.target.value;
|
|
4575
|
+
setPopValue(v);
|
|
4576
|
+
};
|
|
4577
|
+
// 获取下拉框数据源-不分页
|
|
4578
|
+
var getData = function getData() {
|
|
4579
|
+
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
4580
|
+
var callback = arguments.length > 1 ? arguments[1] : undefined;
|
|
4581
|
+
if (!requestConfig) return;
|
|
4582
|
+
if (!url) return;
|
|
4583
|
+
setFetching(true);
|
|
4584
|
+
var queryParams = _objectSpread2(_objectSpread2({}, otherParams), params);
|
|
4585
|
+
if (isNil(queryParams[selectParamsKey])) {
|
|
4586
|
+
queryParams[selectParamsKey] = searchValue;
|
|
4587
|
+
}
|
|
4588
|
+
var getRequest;
|
|
4589
|
+
var methodName = method === null || method === void 0 ? void 0 : method.toLocaleLowerCase();
|
|
4590
|
+
if (['post', 'patch', 'put'].includes(methodName)) {
|
|
4591
|
+
getRequest = requestUtil[methodName]("".concat(url).concat(convertUrlQueryParams(queryParams)), convertBodyParams(queryParams));
|
|
4592
|
+
} else {
|
|
4593
|
+
getRequest = requestUtil.get("".concat(url).concat(convertUrlQueryParams(queryParams)), {
|
|
4594
|
+
headers: _objectSpread2({}, extralHeaders)
|
|
4595
|
+
});
|
|
4596
|
+
}
|
|
4597
|
+
if (!getRequest) return;
|
|
4598
|
+
getRequest.then(function (result) {
|
|
4599
|
+
setFetching(false);
|
|
4600
|
+
result = result.data;
|
|
4601
|
+
if (judgeIsRequestError(result)) {
|
|
4602
|
+
message$1.error(result.msg);
|
|
4603
|
+
return;
|
|
4604
|
+
}
|
|
4605
|
+
var res = result.data;
|
|
4606
|
+
var dSource = convertResData(requestConfig, res, {
|
|
4607
|
+
selectMode: selectMode,
|
|
4608
|
+
labelInValue: currentSelectProps === null || currentSelectProps === void 0 ? void 0 : currentSelectProps.labelInValue,
|
|
4609
|
+
value: value,
|
|
4610
|
+
type: 1,
|
|
4611
|
+
items: source,
|
|
4612
|
+
needTopSelectedSource: false
|
|
4613
|
+
});
|
|
4614
|
+
if (callback) {
|
|
4615
|
+
callback(source);
|
|
4616
|
+
} else {
|
|
4617
|
+
setSource(dSource);
|
|
4618
|
+
}
|
|
4619
|
+
}).catch(function (err) {
|
|
4620
|
+
setFetching(false);
|
|
4621
|
+
});
|
|
4622
|
+
};
|
|
4623
|
+
var onSearchChange = function onSearchChange(v) {
|
|
4624
|
+
setSearchValue(v);
|
|
4625
|
+
run();
|
|
4626
|
+
};
|
|
4627
|
+
return /*#__PURE__*/React$1.createElement("div", {
|
|
4628
|
+
className: 'query_select'
|
|
4629
|
+
}, /*#__PURE__*/React$1.createElement("div", {
|
|
4630
|
+
className: "query_select_show",
|
|
4631
|
+
id: "query_multiple_select_div_".concat(uniqueValue)
|
|
4632
|
+
}, /*#__PURE__*/React$1.createElement(Select, _objectSpread2({
|
|
4633
|
+
value: getValue(value, selectMode),
|
|
4634
|
+
onChange: outerChange,
|
|
4635
|
+
open: open,
|
|
4636
|
+
onBlur: function onBlur(v) {
|
|
4637
|
+
onSearchChange(v);
|
|
4638
|
+
setOpen(false);
|
|
4639
|
+
},
|
|
4640
|
+
onClick: function onClick() {
|
|
4641
|
+
return setOpen(true);
|
|
4642
|
+
},
|
|
4643
|
+
onPaste: function onPaste(e) {
|
|
4644
|
+
formaData(e.clipboardData.getData('text'));
|
|
4645
|
+
e.preventDefault();
|
|
4646
|
+
},
|
|
4647
|
+
onSearch: function onSearch(v) {
|
|
4648
|
+
return onSearchChange(v);
|
|
4649
|
+
},
|
|
4650
|
+
onSelect: function onSelect() {
|
|
4651
|
+
if (selectMode) return;
|
|
4652
|
+
setTimeout(function () {
|
|
4653
|
+
setOpen(false);
|
|
4654
|
+
}, 0);
|
|
4655
|
+
},
|
|
4656
|
+
style: {
|
|
4657
|
+
width: 'calc(100%)'
|
|
4658
|
+
},
|
|
4659
|
+
suffixIcon: /*#__PURE__*/React$1.createElement("div", {
|
|
4660
|
+
className: "query_select_expand_button",
|
|
4661
|
+
onClick: showModal
|
|
4662
|
+
}, /*#__PURE__*/React$1.createElement(DashOutlined, null)),
|
|
4663
|
+
placeholder: "\u8BF7\u9009\u62E9",
|
|
4664
|
+
maxTagPlaceholder: function maxTagPlaceholder$1(v) {
|
|
4665
|
+
return maxTagPlaceholder(v, {
|
|
4666
|
+
selectProps: currentSelectProps,
|
|
4667
|
+
onChange: outerChange,
|
|
4668
|
+
value: getValue(value, selectMode),
|
|
4669
|
+
setIsMaxTagsOpen: function setIsMaxTagsOpen() {}
|
|
4670
|
+
});
|
|
4671
|
+
},
|
|
4672
|
+
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
4673
|
+
size: "small",
|
|
4674
|
+
className: 'searchSelectSpin'
|
|
4675
|
+
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
4676
|
+
style: {
|
|
4677
|
+
textAlign: 'center'
|
|
4678
|
+
}
|
|
4679
|
+
}, /*#__PURE__*/React$1.createElement("div", null, searchValue ? '无匹配结果,请更换其他内容再试' : "\u8BF7\u5F55\u5165\u5185\u5BB9\u6A21\u7CCA\u67E5\u8BE2"))),
|
|
4680
|
+
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
4681
|
+
return triggerNode.parentElement;
|
|
4682
|
+
}
|
|
4683
|
+
}, currentSelectProps), source.map(function (item) {
|
|
4684
|
+
return /*#__PURE__*/React$1.createElement(Select.Option, {
|
|
4685
|
+
key: item.value,
|
|
4686
|
+
label: item.text
|
|
4687
|
+
}, LightHeightOption({
|
|
4688
|
+
text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
|
|
4689
|
+
filterTxt: searchValue,
|
|
4690
|
+
needToolTips: false
|
|
4691
|
+
}));
|
|
4692
|
+
}))), /*#__PURE__*/React$1.createElement(Modal, {
|
|
4693
|
+
width: 600,
|
|
4694
|
+
title: "\u591A\u503C\u5F55\u5165",
|
|
4695
|
+
visible: isModalVisible,
|
|
4696
|
+
onOk: handleOk,
|
|
4697
|
+
onCancel: handleCancel,
|
|
4698
|
+
className: 'multiInput_modal',
|
|
4699
|
+
bodyStyle: {
|
|
4700
|
+
padding: '10px 16px'
|
|
4701
|
+
},
|
|
4702
|
+
footer: [/*#__PURE__*/React$1.createElement(ConfigProvider, {
|
|
4703
|
+
autoInsertSpaceInButton: false
|
|
4704
|
+
}, /*#__PURE__*/React$1.createElement(Button, {
|
|
4705
|
+
key: "back",
|
|
4706
|
+
onClick: handleCancel
|
|
4707
|
+
}, "\u53D6\u6D88")), /*#__PURE__*/React$1.createElement(ConfigProvider, {
|
|
4708
|
+
autoInsertSpaceInButton: false
|
|
4709
|
+
}, /*#__PURE__*/React$1.createElement(Button, {
|
|
4710
|
+
key: "submit",
|
|
4711
|
+
type: "primary",
|
|
4712
|
+
onClick: handleOk
|
|
4713
|
+
}, "\u5F55\u5165"))]
|
|
4714
|
+
}, /*#__PURE__*/React$1.createElement("div", {
|
|
4715
|
+
className: 'query_select_wrapper'
|
|
4716
|
+
}, /*#__PURE__*/React$1.createElement("div", {
|
|
4717
|
+
className: 'query_select_wrapper_top'
|
|
4718
|
+
}, "\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", {
|
|
4719
|
+
className: 'query_select_textArea'
|
|
4720
|
+
}, /*#__PURE__*/React$1.createElement(Input.TextArea, {
|
|
4721
|
+
placeholder: "\u5728\u6B64\u5F55\u5165...",
|
|
4722
|
+
value: popvalue,
|
|
4723
|
+
onChange: onChange,
|
|
4724
|
+
rows: 12,
|
|
4725
|
+
showCount: false
|
|
4726
|
+
})))));
|
|
4125
4727
|
};
|
|
4728
|
+
function ToCDB$1(selectStr) {
|
|
4729
|
+
var tmp = '';
|
|
4730
|
+
if (!(selectStr === null || selectStr === void 0 ? void 0 : selectStr.length)) return '';
|
|
4731
|
+
var str = Array.isArray(selectStr) ? selectStr.join(',') : selectStr;
|
|
4732
|
+
for (var i = 0; i < (str === null || str === void 0 ? void 0 : str.length); i++) {
|
|
4733
|
+
var _str$charCodeAt, _str$charCodeAt2;
|
|
4734
|
+
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) {
|
|
4735
|
+
tmp += String.fromCharCode((str === null || str === void 0 ? void 0 : str.charCodeAt(i)) - 65248);
|
|
4736
|
+
} else {
|
|
4737
|
+
tmp += String.fromCharCode(str.charCodeAt(i));
|
|
4738
|
+
}
|
|
4739
|
+
}
|
|
4740
|
+
return tmp;
|
|
4741
|
+
}
|
|
4742
|
+
|
|
4743
|
+
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-cell .ant-table-selection-column .ant-radio,\n.search_select_dropdown_table table tr td.ant-table-selection-column .ant-radio-wrapper {\n display: none;\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 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";
|
|
4744
|
+
styleInject(css_248z$6);
|
|
4126
4745
|
|
|
4127
4746
|
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
4747
|
|
|
4748
|
+
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";
|
|
4749
|
+
styleInject(css_248z$7);
|
|
4750
|
+
|
|
4751
|
+
var PropertyGroup = function PropertyGroup(props) {
|
|
4752
|
+
var propertyData = props.propertyData,
|
|
4753
|
+
handleProperyItemChange = props.handleProperyItemChange,
|
|
4754
|
+
modalVisilbe = props.modalVisilbe,
|
|
4755
|
+
itemValue = props.itemValue;
|
|
4756
|
+
var _useState = useState([]),
|
|
4757
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
4758
|
+
commonUseProperty = _useState2[0],
|
|
4759
|
+
setCommonUseProperty = _useState2[1]; // 常用属性值
|
|
4760
|
+
var _useState3 = useState([]),
|
|
4761
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
4762
|
+
notCommonUseProperty = _useState4[0],
|
|
4763
|
+
setNotCommonUseProperty = _useState4[1]; // 非常用属性值
|
|
4764
|
+
var _useState5 = useState(false),
|
|
4765
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
4766
|
+
indeterminate = _useState6[0],
|
|
4767
|
+
setIndeterminate = _useState6[1];
|
|
4768
|
+
var _useState7 = useState(false),
|
|
4769
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
4770
|
+
showNotCommon = _useState8[0],
|
|
4771
|
+
setShowNotCommon = _useState8[1];
|
|
4772
|
+
useEffect(function () {
|
|
4773
|
+
var proItemValue = (itemValue.propertyList || []).find(function (item) {
|
|
4774
|
+
return item.propertyCode === propertyData.propertyCode;
|
|
4775
|
+
});
|
|
4776
|
+
var checkedList = (proItemValue === null || proItemValue === void 0 ? void 0 : proItemValue.detailList) || [];
|
|
4777
|
+
var proDetailList = JSON.parse(JSON.stringify((propertyData === null || propertyData === void 0 ? void 0 : propertyData.detailList) || []));
|
|
4778
|
+
proDetailList.forEach(function (item) {
|
|
4779
|
+
if (checkedList.some(function (checkItem) {
|
|
4780
|
+
return checkItem.value === item.value;
|
|
4781
|
+
})) {
|
|
4782
|
+
item.isChecked = true;
|
|
4783
|
+
}
|
|
4784
|
+
});
|
|
4785
|
+
var commonUseProperty = proDetailList.filter(function (item) {
|
|
4786
|
+
return item.isCommonUse;
|
|
4787
|
+
});
|
|
4788
|
+
var notCommonUseProperty = proDetailList.filter(function (item) {
|
|
4789
|
+
return !item.isCommonUse;
|
|
4790
|
+
});
|
|
4791
|
+
if (checkedList.some(function (item) {
|
|
4792
|
+
return !item.isCommonUse;
|
|
4793
|
+
})) {
|
|
4794
|
+
setShowNotCommon(true);
|
|
4795
|
+
}
|
|
4796
|
+
setCommonUseProperty(commonUseProperty);
|
|
4797
|
+
setNotCommonUseProperty(notCommonUseProperty);
|
|
4798
|
+
}, [modalVisilbe]);
|
|
4799
|
+
var parseDataToParent = function parseDataToParent(comUse, notComUse) {
|
|
4800
|
+
var choosedPropertyList = (comUse || []).filter(function (item) {
|
|
4801
|
+
return item.isChecked;
|
|
4802
|
+
});
|
|
4803
|
+
if (showNotCommon) {
|
|
4804
|
+
choosedPropertyList = [].concat(_toConsumableArray(choosedPropertyList), _toConsumableArray((notComUse || []).filter(function (item) {
|
|
4805
|
+
return item.isChecked;
|
|
4806
|
+
})));
|
|
4807
|
+
}
|
|
4808
|
+
handleProperyItemChange({
|
|
4809
|
+
propertyCode: propertyData === null || propertyData === void 0 ? void 0 : propertyData.propertyCode,
|
|
4810
|
+
propertyName: propertyData === null || propertyData === void 0 ? void 0 : propertyData.propertyName,
|
|
4811
|
+
propertyId: propertyData === null || propertyData === void 0 ? void 0 : propertyData.propertyId,
|
|
4812
|
+
isCommonUse: propertyData === null || propertyData === void 0 ? void 0 : propertyData.isCommonUse,
|
|
4813
|
+
detailList: choosedPropertyList
|
|
4814
|
+
});
|
|
4815
|
+
};
|
|
4816
|
+
var handleChangeAll = function handleChangeAll(e) {
|
|
4817
|
+
if (showNotCommon) {
|
|
4818
|
+
notCommonUseProperty.map(function (item) {
|
|
4819
|
+
return item.isChecked = e.target.checked;
|
|
4820
|
+
});
|
|
4821
|
+
setNotCommonUseProperty(_toConsumableArray(notCommonUseProperty));
|
|
4822
|
+
}
|
|
4823
|
+
commonUseProperty.map(function (item) {
|
|
4824
|
+
return item.isChecked = e.target.checked;
|
|
4825
|
+
});
|
|
4826
|
+
parseDataToParent(commonUseProperty, notCommonUseProperty);
|
|
4827
|
+
setCommonUseProperty(_toConsumableArray(commonUseProperty));
|
|
4828
|
+
setIndeterminate(false);
|
|
4829
|
+
};
|
|
4830
|
+
var handleIndeterminate = function handleIndeterminate(commonUseProperty, notCommonUseProperty) {
|
|
4831
|
+
var checkList = _toConsumableArray(commonUseProperty);
|
|
4832
|
+
if (showNotCommon) {
|
|
4833
|
+
checkList = [].concat(_toConsumableArray(checkList), _toConsumableArray(notCommonUseProperty));
|
|
4834
|
+
}
|
|
4835
|
+
var indeterminate = !!checkList.filter(function (item) {
|
|
4836
|
+
return item.isChecked;
|
|
4837
|
+
}).length && checkList.filter(function (item) {
|
|
4838
|
+
return item.isChecked;
|
|
4839
|
+
}).length !== checkList.length;
|
|
4840
|
+
setIndeterminate(indeterminate);
|
|
4841
|
+
};
|
|
4842
|
+
var handleItemChecked = function handleItemChecked(e, item, type) {
|
|
4843
|
+
if (type === 1) {
|
|
4844
|
+
// 常用属性
|
|
4845
|
+
(commonUseProperty || []).forEach(function (info) {
|
|
4846
|
+
if (info.value === item.value) {
|
|
4847
|
+
info.isChecked = e.target.checked;
|
|
4848
|
+
}
|
|
4849
|
+
});
|
|
4850
|
+
handleIndeterminate(commonUseProperty, notCommonUseProperty);
|
|
4851
|
+
parseDataToParent(commonUseProperty, notCommonUseProperty);
|
|
4852
|
+
setCommonUseProperty(_toConsumableArray(commonUseProperty));
|
|
4853
|
+
}
|
|
4854
|
+
if (type === 2) {
|
|
4855
|
+
// 非常用属性
|
|
4856
|
+
(notCommonUseProperty || []).forEach(function (info) {
|
|
4857
|
+
if (info.value === item.value) {
|
|
4858
|
+
info.isChecked = e.target.checked;
|
|
4859
|
+
}
|
|
4860
|
+
});
|
|
4861
|
+
handleIndeterminate(commonUseProperty, notCommonUseProperty);
|
|
4862
|
+
parseDataToParent(commonUseProperty, notCommonUseProperty);
|
|
4863
|
+
setNotCommonUseProperty(_toConsumableArray(notCommonUseProperty));
|
|
4864
|
+
}
|
|
4865
|
+
};
|
|
4866
|
+
var checkAllChecked = function checkAllChecked() {
|
|
4867
|
+
var checkData = showNotCommon ? [].concat(_toConsumableArray(commonUseProperty), _toConsumableArray(notCommonUseProperty)) : _toConsumableArray(commonUseProperty);
|
|
4868
|
+
return checkData.length && checkData.every(function (item) {
|
|
4869
|
+
return item.isChecked;
|
|
4870
|
+
}) ? true : false;
|
|
4871
|
+
};
|
|
4872
|
+
return /*#__PURE__*/React$1.createElement("div", {
|
|
4873
|
+
className: 'propertyGroup_container'
|
|
4874
|
+
}, /*#__PURE__*/React$1.createElement("div", {
|
|
4875
|
+
className: 'propertyGroup_container_left'
|
|
4876
|
+
}, /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
4877
|
+
checked: checkAllChecked(),
|
|
4878
|
+
indeterminate: indeterminate,
|
|
4879
|
+
onChange: handleChangeAll
|
|
4880
|
+
}, /*#__PURE__*/React$1.createElement("div", {
|
|
4881
|
+
title: propertyData.name,
|
|
4882
|
+
className: "propertyGroup_checkbox_container"
|
|
4883
|
+
}, propertyData.propertyName))), /*#__PURE__*/React$1.createElement("div", {
|
|
4884
|
+
className: 'propertyGroup_container_right'
|
|
4885
|
+
}, (commonUseProperty || []).map(function (item) {
|
|
4886
|
+
return /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
4887
|
+
checked: item.isChecked,
|
|
4888
|
+
key: item.value,
|
|
4889
|
+
onChange: function onChange(e) {
|
|
4890
|
+
handleItemChecked(e, item, 1);
|
|
4891
|
+
}
|
|
4892
|
+
}, /*#__PURE__*/React$1.createElement("div", {
|
|
4893
|
+
title: item.name,
|
|
4894
|
+
className: "propertyGroup_checkbox_container"
|
|
4895
|
+
}, item.name));
|
|
4896
|
+
}), showNotCommon && (notCommonUseProperty || []).map(function (item) {
|
|
4897
|
+
return /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
4898
|
+
checked: item.isChecked,
|
|
4899
|
+
key: item.value,
|
|
4900
|
+
onChange: function onChange(e) {
|
|
4901
|
+
handleItemChecked(e, item, 2);
|
|
4902
|
+
}
|
|
4903
|
+
}, /*#__PURE__*/React$1.createElement("div", {
|
|
4904
|
+
title: item.name,
|
|
4905
|
+
className: "propertyGroup_checkbox_container"
|
|
4906
|
+
}, item.name));
|
|
4907
|
+
}), !!notCommonUseProperty.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
4908
|
+
style: {
|
|
4909
|
+
width: '50px',
|
|
4910
|
+
cursor: 'pointer',
|
|
4911
|
+
color: '#005cff',
|
|
4912
|
+
fontSize: '10px',
|
|
4913
|
+
display: 'flex',
|
|
4914
|
+
alignItems: 'center'
|
|
4915
|
+
},
|
|
4916
|
+
onClick: function onClick() {
|
|
4917
|
+
setShowNotCommon(!showNotCommon);
|
|
4918
|
+
handleIndeterminate(commonUseProperty, notCommonUseProperty);
|
|
4919
|
+
}
|
|
4920
|
+
}, 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"))))));
|
|
4921
|
+
};
|
|
4922
|
+
var PropertyGroup$1 = /*#__PURE__*/React$1.memo(PropertyGroup, function (props, nextProps) {
|
|
4923
|
+
if (props.modalVisilbe !== nextProps.modalVisilbe) return false;
|
|
4924
|
+
return true;
|
|
4925
|
+
});
|
|
4926
|
+
|
|
4927
|
+
var _excluded$3 = ["value", "onChange", "width"];
|
|
4928
|
+
var PropertySelector = function PropertySelector(_ref) {
|
|
4929
|
+
var value = _ref.value,
|
|
4930
|
+
onChange = _ref.onChange,
|
|
4931
|
+
width = _ref.width,
|
|
4932
|
+
restProps = _objectWithoutProperties(_ref, _excluded$3);
|
|
4933
|
+
var settingValue = useRef({
|
|
4934
|
+
classifyCode: '',
|
|
4935
|
+
classifyName: '',
|
|
4936
|
+
propertyList: []
|
|
4937
|
+
});
|
|
4938
|
+
var _useState = useState([]),
|
|
4939
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
4940
|
+
choosedValues = _useState2[0],
|
|
4941
|
+
setChoosedValues = _useState2[1];
|
|
4942
|
+
var _useState3 = useState(''),
|
|
4943
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
4944
|
+
choosedClassify = _useState4[0],
|
|
4945
|
+
setChoosedClassify = _useState4[1];
|
|
4946
|
+
var _useState5 = useState([]),
|
|
4947
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
4948
|
+
commonProperty = _useState6[0],
|
|
4949
|
+
setCommonUseProperty = _useState6[1];
|
|
4950
|
+
var _useState7 = useState([]),
|
|
4951
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
4952
|
+
notCommonProperty = _useState8[0],
|
|
4953
|
+
setNotCommonProperty = _useState8[1];
|
|
4954
|
+
var _useState9 = useState(false),
|
|
4955
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
4956
|
+
visible = _useState10[0],
|
|
4957
|
+
setVisible = _useState10[1];
|
|
4958
|
+
var _useState11 = useState(false),
|
|
4959
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
4960
|
+
showNotCommon = _useState12[0],
|
|
4961
|
+
setShowNotCommon = _useState12[1]; // 是否展示非常用属性
|
|
4962
|
+
var _useState13 = useState([]),
|
|
4963
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
4964
|
+
classifyOptionList = _useState14[0],
|
|
4965
|
+
setClassifyOptionList = _useState14[1];
|
|
4966
|
+
var _useState15 = useState('1'),
|
|
4967
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
4968
|
+
listKey = _useState16[0],
|
|
4969
|
+
setListKey = _useState16[1];
|
|
4970
|
+
useEffect(function () {
|
|
4971
|
+
requestUtil({
|
|
4972
|
+
url: '/items/class/withProperty?pageSize=500¤tPage=1',
|
|
4973
|
+
method: 'GET'
|
|
4974
|
+
}).then(function (_ref2) {
|
|
4975
|
+
var _data$data;
|
|
4976
|
+
var data = _ref2.data;
|
|
4977
|
+
if (judgeIsRequestError(data)) {
|
|
4978
|
+
return;
|
|
4979
|
+
}
|
|
4980
|
+
var items = ((_data$data = data.data) === null || _data$data === void 0 ? void 0 : _data$data.items) || [];
|
|
4981
|
+
setClassifyOptionList(items.map(function (item) {
|
|
4982
|
+
return {
|
|
4983
|
+
label: item.name,
|
|
4984
|
+
value: item.id
|
|
4985
|
+
};
|
|
4986
|
+
}));
|
|
4987
|
+
});
|
|
4988
|
+
}, []);
|
|
4989
|
+
useEffect(function () {
|
|
4990
|
+
if (!choosedClassify) return;
|
|
4991
|
+
requestUtil({
|
|
4992
|
+
url: "/items/classProperty/".concat(choosedClassify),
|
|
4993
|
+
method: 'GET'
|
|
4994
|
+
}).then(function (_ref3) {
|
|
4995
|
+
var data = _ref3.data;
|
|
4996
|
+
if (judgeIsRequestError(data)) {
|
|
4997
|
+
return;
|
|
4998
|
+
}
|
|
4999
|
+
var newArr = ((data === null || data === void 0 ? void 0 : data.data) || []).map(function (item) {
|
|
5000
|
+
var _item$property, _item$property2, _item$property3, _item$property4;
|
|
5001
|
+
return {
|
|
5002
|
+
propertyCode: (_item$property = item.property) === null || _item$property === void 0 ? void 0 : _item$property.propertyCode,
|
|
5003
|
+
propertyName: (_item$property2 = item.property) === null || _item$property2 === void 0 ? void 0 : _item$property2.name,
|
|
5004
|
+
propertyId: (_item$property3 = item.property) === null || _item$property3 === void 0 ? void 0 : _item$property3.id,
|
|
5005
|
+
isCommonUse: ((_item$property4 = item.property) === null || _item$property4 === void 0 ? void 0 : _item$property4.isCommonUse) === 'commonUse',
|
|
5006
|
+
detailList: (item.propertyValueList || []).map(function (detail) {
|
|
5007
|
+
return {
|
|
5008
|
+
name: detail.value,
|
|
5009
|
+
value: detail.value,
|
|
5010
|
+
isCommonUse: detail.isCommonUse === 'commonUse'
|
|
5011
|
+
};
|
|
5012
|
+
})
|
|
5013
|
+
};
|
|
5014
|
+
});
|
|
5015
|
+
setCommonUseProperty(newArr.filter(function (item) {
|
|
5016
|
+
return item.isCommonUse;
|
|
5017
|
+
}));
|
|
5018
|
+
setNotCommonProperty(newArr.filter(function (item) {
|
|
5019
|
+
return !item.isCommonUse;
|
|
5020
|
+
}));
|
|
5021
|
+
setListKey(listKey === '1' ? '2' : '1');
|
|
5022
|
+
});
|
|
5023
|
+
}, [choosedClassify]);
|
|
5024
|
+
useEffect(function () {
|
|
5025
|
+
var _classifyOptionList$2;
|
|
5026
|
+
if (visible) {
|
|
5027
|
+
var _classifyOptionList$;
|
|
5028
|
+
// 获取选中品类信息
|
|
5029
|
+
setChoosedClassify((value === null || value === void 0 ? void 0 : value.classifyCode) || ((_classifyOptionList$ = classifyOptionList[0]) === null || _classifyOptionList$ === void 0 ? void 0 : _classifyOptionList$.value));
|
|
5030
|
+
}
|
|
5031
|
+
// 获取选中属性值展示
|
|
5032
|
+
var choosedPropertyList = ((value === null || value === void 0 ? void 0 : value.propertyList) || []).map(function (item) {
|
|
5033
|
+
return (item.detailList || []).map(function (detail) {
|
|
5034
|
+
return detail.name;
|
|
5035
|
+
});
|
|
5036
|
+
}).flat();
|
|
5037
|
+
if (((value === null || value === void 0 ? void 0 : value.propertyList) || []).some(function (item) {
|
|
5038
|
+
return !item.isCommonUse;
|
|
5039
|
+
})) {
|
|
5040
|
+
setShowNotCommon(true);
|
|
5041
|
+
}
|
|
5042
|
+
settingValue.current = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
5043
|
+
classifyCode: (value === null || value === void 0 ? void 0 : value.classifyCode) || ((_classifyOptionList$2 = classifyOptionList[0]) === null || _classifyOptionList$2 === void 0 ? void 0 : _classifyOptionList$2.value)
|
|
5044
|
+
});
|
|
5045
|
+
setChoosedValues(choosedPropertyList);
|
|
5046
|
+
}, [value, visible]);
|
|
5047
|
+
// 关闭弹窗回传组件值
|
|
5048
|
+
var handleConfirm = function handleConfirm() {
|
|
5049
|
+
setVisible(false);
|
|
5050
|
+
onChange(settingValue.current);
|
|
5051
|
+
};
|
|
5052
|
+
var onCancel = function onCancel() {
|
|
5053
|
+
setVisible(false);
|
|
5054
|
+
};
|
|
5055
|
+
// 获取选中属性值信息
|
|
5056
|
+
var handleProperyItemChange = function handleProperyItemChange(value) {
|
|
5057
|
+
var _settingValue$current;
|
|
5058
|
+
var newDetailList = ((_settingValue$current = settingValue.current) === null || _settingValue$current === void 0 ? void 0 : _settingValue$current.propertyList) || [];
|
|
5059
|
+
var itemIndex = newDetailList.findIndex(function (item) {
|
|
5060
|
+
return item.propertyCode === value.propertyCode;
|
|
5061
|
+
});
|
|
5062
|
+
if (itemIndex !== -1) {
|
|
5063
|
+
newDetailList[itemIndex] = value;
|
|
5064
|
+
} else {
|
|
5065
|
+
newDetailList.push(value);
|
|
5066
|
+
}
|
|
5067
|
+
settingValue.current = _objectSpread2(_objectSpread2({}, settingValue.current), {}, {
|
|
5068
|
+
propertyList: newDetailList.filter(function (item) {
|
|
5069
|
+
return item.detailList && item.detailList.length;
|
|
5070
|
+
})
|
|
5071
|
+
});
|
|
5072
|
+
};
|
|
5073
|
+
//修改品类值
|
|
5074
|
+
var onClassifyChange = function onClassifyChange(value, option) {
|
|
5075
|
+
setChoosedClassify(value);
|
|
5076
|
+
settingValue.current = {
|
|
5077
|
+
classifyCode: value,
|
|
5078
|
+
classifyName: option.children,
|
|
5079
|
+
propertyList: []
|
|
5080
|
+
};
|
|
5081
|
+
};
|
|
5082
|
+
var tagRender = function tagRender(props) {
|
|
5083
|
+
var label = props.label,
|
|
5084
|
+
value = props.value,
|
|
5085
|
+
closable = props.closable,
|
|
5086
|
+
onClose = props.onClose;
|
|
5087
|
+
return /*#__PURE__*/React$1.createElement(Tag, {
|
|
5088
|
+
closable: false,
|
|
5089
|
+
style: {
|
|
5090
|
+
marginRight: 3,
|
|
5091
|
+
height: '20px',
|
|
5092
|
+
fontSize: '12px'
|
|
5093
|
+
}
|
|
5094
|
+
}, label);
|
|
5095
|
+
};
|
|
5096
|
+
return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({
|
|
5097
|
+
maxTagCount: 1,
|
|
5098
|
+
tagRender: tagRender
|
|
5099
|
+
}, restProps), {}, {
|
|
5100
|
+
mode: "multiple",
|
|
5101
|
+
value: choosedValues,
|
|
5102
|
+
onClick: function onClick() {
|
|
5103
|
+
setVisible(true);
|
|
5104
|
+
},
|
|
5105
|
+
style: {
|
|
5106
|
+
width: width || '100%'
|
|
5107
|
+
},
|
|
5108
|
+
open: false
|
|
5109
|
+
})), /*#__PURE__*/React$1.createElement(Modal, {
|
|
5110
|
+
title: "\u5C5E\u6027\u8BBE\u7F6E",
|
|
5111
|
+
width: 700,
|
|
5112
|
+
open: visible,
|
|
5113
|
+
onOk: handleConfirm,
|
|
5114
|
+
destroyOnClose: true,
|
|
5115
|
+
onCancel: onCancel,
|
|
5116
|
+
cancelText: '取消',
|
|
5117
|
+
okText: '确定'
|
|
5118
|
+
}, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
5119
|
+
className: 'property_classify_content'
|
|
5120
|
+
}, /*#__PURE__*/React$1.createElement("span", {
|
|
5121
|
+
style: {
|
|
5122
|
+
marginRight: '10px'
|
|
5123
|
+
}
|
|
5124
|
+
}, "\u54C1\u7C7B\u6A21\u677F"), /*#__PURE__*/React$1.createElement(Select, {
|
|
5125
|
+
style: {
|
|
5126
|
+
width: '200px'
|
|
5127
|
+
},
|
|
5128
|
+
value: choosedClassify,
|
|
5129
|
+
options: classifyOptionList,
|
|
5130
|
+
onChange: function onChange(value, option) {
|
|
5131
|
+
onClassifyChange(value, option);
|
|
5132
|
+
}
|
|
5133
|
+
})), /*#__PURE__*/React$1.createElement("div", {
|
|
5134
|
+
className: 'property_classify_content1',
|
|
5135
|
+
key: listKey
|
|
5136
|
+
}, /*#__PURE__*/React$1.createElement("div", null, commonProperty.map(function (item) {
|
|
5137
|
+
return /*#__PURE__*/React$1.createElement(PropertyGroup$1, {
|
|
5138
|
+
modalVisilbe: visible,
|
|
5139
|
+
itemValue: settingValue.current,
|
|
5140
|
+
propertyData: item,
|
|
5141
|
+
handleProperyItemChange: handleProperyItemChange
|
|
5142
|
+
});
|
|
5143
|
+
})), /*#__PURE__*/React$1.createElement("div", null, showNotCommon && notCommonProperty.map(function (item) {
|
|
5144
|
+
return /*#__PURE__*/React$1.createElement(PropertyGroup$1, {
|
|
5145
|
+
modalVisilbe: visible,
|
|
5146
|
+
itemValue: settingValue.current,
|
|
5147
|
+
propertyData: item,
|
|
5148
|
+
handleProperyItemChange: handleProperyItemChange
|
|
5149
|
+
});
|
|
5150
|
+
}))), !!notCommonProperty.length && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
5151
|
+
style: {
|
|
5152
|
+
width: '50px',
|
|
5153
|
+
cursor: 'pointer',
|
|
5154
|
+
color: '#005cff',
|
|
5155
|
+
fontSize: '10px'
|
|
5156
|
+
},
|
|
5157
|
+
onClick: function onClick() {
|
|
5158
|
+
return setShowNotCommon(!showNotCommon);
|
|
5159
|
+
}
|
|
5160
|
+
}, 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"))))))));
|
|
5161
|
+
};
|
|
5162
|
+
|
|
4129
5163
|
var Option$1 = Select.Option;
|
|
4130
5164
|
var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
4131
|
-
var _modalTableProps$tabl, _modalTableProps$tabl2;
|
|
5165
|
+
var _pathname$match, _modalTableProps$tabl, _modalTableProps$tabl2;
|
|
4132
5166
|
var value = props.value,
|
|
4133
5167
|
onChangeTemp = props.onChange,
|
|
4134
5168
|
_props$selectProps = props.selectProps,
|
|
@@ -4144,12 +5178,15 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4144
5178
|
_props$needModalTable = props.needModalTable,
|
|
4145
5179
|
needModalTable = _props$needModalTable === void 0 ? true : _props$needModalTable,
|
|
4146
5180
|
_props$getPopupContai = props.getPopupContainer,
|
|
4147
|
-
|
|
5181
|
+
_props$highestPopCont = props.highestPopContainer,
|
|
5182
|
+
highestPopContainer = _props$highestPopCont === void 0 ? undefined : _props$highestPopCont,
|
|
4148
5183
|
fieldComponent = props.fieldComponent,
|
|
4149
5184
|
onSaveCallback = props.onSaveCallback,
|
|
4150
5185
|
selectBusinessType = props.selectBusinessType;
|
|
4151
5186
|
var _ref = requestConfig || {},
|
|
4152
5187
|
url = _ref.url,
|
|
5188
|
+
_ref$method = _ref.method,
|
|
5189
|
+
method = _ref$method === void 0 ? 'get' : _ref$method,
|
|
4153
5190
|
otherParams = _ref.otherParams,
|
|
4154
5191
|
isMap = _ref.isMap,
|
|
4155
5192
|
fixedparameter = _ref.fixedparameter,
|
|
@@ -4190,11 +5227,14 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4190
5227
|
listHeight: 160,
|
|
4191
5228
|
optionLabelProp: "label",
|
|
4192
5229
|
autoClearSearchValue: false,
|
|
4193
|
-
placement: '
|
|
5230
|
+
placement: 'bottomRight'
|
|
4194
5231
|
});
|
|
5232
|
+
var pathname = window.location.href;
|
|
5233
|
+
var pattern = /(action|create|edit|view)/;
|
|
5234
|
+
var isFormPage = ((_pathname$match = pathname.match(pattern)) === null || _pathname$match === void 0 ? void 0 : _pathname$match.length) > 0;
|
|
4195
5235
|
var initPagination = {
|
|
4196
5236
|
showQuickJumper: true,
|
|
4197
|
-
showSizeChanger:
|
|
5237
|
+
showSizeChanger: true,
|
|
4198
5238
|
showTotal: function showTotal(total) {
|
|
4199
5239
|
return "\u5171 ".concat(total, " \u6761");
|
|
4200
5240
|
},
|
|
@@ -4225,34 +5265,38 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4225
5265
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
4226
5266
|
selectOpen = _useState4[0],
|
|
4227
5267
|
setSelectOpen = _useState4[1];
|
|
4228
|
-
var _useState5 = useState(
|
|
5268
|
+
var _useState5 = useState(false),
|
|
4229
5269
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
var _useState7 = useState(
|
|
5270
|
+
isMaxTagsOpen = _useState6[0],
|
|
5271
|
+
setIsMaxTagsOpen = _useState6[1];
|
|
5272
|
+
var _useState7 = useState(1),
|
|
4233
5273
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
var _useState9 = useState(
|
|
5274
|
+
scrollPage = _useState8[0],
|
|
5275
|
+
setScrollPage = _useState8[1];
|
|
5276
|
+
var _useState9 = useState(0),
|
|
4237
5277
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
var _useState11 = useState(
|
|
5278
|
+
itemsTotal = _useState10[0],
|
|
5279
|
+
setItemsTotal = _useState10[1];
|
|
5280
|
+
var _useState11 = useState(false),
|
|
4241
5281
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
var _useState13 = useState(
|
|
5282
|
+
fetching = _useState12[0],
|
|
5283
|
+
setFetching = _useState12[1];
|
|
5284
|
+
var _useState13 = useState(''),
|
|
4245
5285
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
var _useState15 = useState(
|
|
5286
|
+
searchValue = _useState14[0],
|
|
5287
|
+
setSearchValue = _useState14[1];
|
|
5288
|
+
var _useState15 = useState(false),
|
|
4249
5289
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
var _useState17 = useState(
|
|
5290
|
+
isModalVisible = _useState16[0],
|
|
5291
|
+
setIsModalVisible = _useState16[1];
|
|
5292
|
+
var _useState17 = useState(initVal),
|
|
4253
5293
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
4254
|
-
|
|
4255
|
-
|
|
5294
|
+
popvalue = _useState18[0],
|
|
5295
|
+
setPopValue = _useState18[1];
|
|
5296
|
+
var _useState19 = useState(resultSourceKey),
|
|
5297
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
5298
|
+
uniqueValue = _useState20[0],
|
|
5299
|
+
setUniqueValue = _useState20[1];
|
|
4256
5300
|
var _useDebounceFn = useDebounceFn(function (v) {
|
|
4257
5301
|
// 优化搜索参数 支持传多个
|
|
4258
5302
|
var searchParams = {};
|
|
@@ -4281,62 +5325,62 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4281
5325
|
var _Form$useForm = Form.useForm(),
|
|
4282
5326
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
4283
5327
|
form = _Form$useForm2[0];
|
|
4284
|
-
var _useState19 = useState(true),
|
|
4285
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
4286
|
-
collapsed = _useState20[0],
|
|
4287
|
-
setCollapsed = _useState20[1];
|
|
4288
5328
|
var _useState21 = useState(true),
|
|
4289
5329
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
var _useState23 = useState(
|
|
5330
|
+
collapsed = _useState22[0],
|
|
5331
|
+
setCollapsed = _useState22[1];
|
|
5332
|
+
var _useState23 = useState(true),
|
|
4293
5333
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
var _useState25 = useState(
|
|
5334
|
+
caretLeftFlag = _useState24[0],
|
|
5335
|
+
setCaretLeftFlag = _useState24[1];
|
|
5336
|
+
var _useState25 = useState([]),
|
|
4297
5337
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
var _useState27 = useState(
|
|
5338
|
+
tableData = _useState26[0],
|
|
5339
|
+
setTableData = _useState26[1];
|
|
5340
|
+
var _useState27 = useState(tableInitPagination),
|
|
4301
5341
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
4302
|
-
|
|
4303
|
-
|
|
5342
|
+
tablePagination = _useState28[0],
|
|
5343
|
+
setTablePagination = _useState28[1];
|
|
4304
5344
|
var _useState29 = useState([]),
|
|
4305
5345
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
var _useState31 = useState(
|
|
5346
|
+
selectedRowKeys = _useState30[0],
|
|
5347
|
+
setSelectedRowKeys = _useState30[1];
|
|
5348
|
+
var _useState31 = useState([]),
|
|
4309
5349
|
_useState32 = _slicedToArray(_useState31, 2),
|
|
4310
|
-
|
|
4311
|
-
|
|
5350
|
+
selectedRows = _useState32[0],
|
|
5351
|
+
setSelectedRows = _useState32[1];
|
|
4312
5352
|
var _useState33 = useState(false),
|
|
4313
5353
|
_useState34 = _slicedToArray(_useState33, 2),
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
var _useState35 = useState(
|
|
5354
|
+
checkedAll = _useState34[0],
|
|
5355
|
+
setCheckedAll = _useState34[1];
|
|
5356
|
+
var _useState35 = useState(false),
|
|
4317
5357
|
_useState36 = _slicedToArray(_useState35, 2),
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
var _useState37 = useState(
|
|
5358
|
+
indeterminate = _useState36[0],
|
|
5359
|
+
setIndeterminate = _useState36[1];
|
|
5360
|
+
var _useState37 = useState({}),
|
|
4321
5361
|
_useState38 = _slicedToArray(_useState37, 2),
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
var _useState39 = useState(
|
|
5362
|
+
tableFormParams = _useState38[0],
|
|
5363
|
+
setTableFormParams = _useState38[1];
|
|
5364
|
+
var _useState39 = useState(false),
|
|
5365
|
+
_useState40 = _slicedToArray(_useState39, 2),
|
|
5366
|
+
tooltipVisible = _useState40[0],
|
|
5367
|
+
setTooltipVisible = _useState40[1];
|
|
5368
|
+
var _useState41 = useState((modalTableProps === null || modalTableProps === void 0 ? void 0 : (_modalTableProps$tabl = modalTableProps.tableColumns) === null || _modalTableProps$tabl === void 0 ? void 0 : (_modalTableProps$tabl2 = _modalTableProps$tabl.filter(function (s) {
|
|
4325
5369
|
return typeof s.defaultSort == 'number';
|
|
4326
5370
|
})) === null || _modalTableProps$tabl2 === void 0 ? void 0 : _modalTableProps$tabl2.sort(function (a, b) {
|
|
4327
5371
|
return a.defaultSort - b.defaultSort;
|
|
4328
5372
|
})) || []),
|
|
4329
|
-
_useState40 = _slicedToArray(_useState39, 2),
|
|
4330
|
-
tableShowColumns = _useState40[0],
|
|
4331
|
-
setTabletShowColumns = _useState40[1];
|
|
4332
|
-
var _useState41 = useState(false),
|
|
4333
5373
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
4334
|
-
|
|
4335
|
-
|
|
5374
|
+
tableShowColumns = _useState42[0],
|
|
5375
|
+
setTabletShowColumns = _useState42[1];
|
|
4336
5376
|
var _useState43 = useState(false),
|
|
4337
5377
|
_useState44 = _slicedToArray(_useState43, 2),
|
|
4338
|
-
|
|
4339
|
-
|
|
5378
|
+
confirmLoading = _useState44[0],
|
|
5379
|
+
setConfirmLoading = _useState44[1];
|
|
5380
|
+
var _useState45 = useState(false),
|
|
5381
|
+
_useState46 = _slicedToArray(_useState45, 2),
|
|
5382
|
+
modalSearched = _useState46[0],
|
|
5383
|
+
setModalSearched = _useState46[1];
|
|
4340
5384
|
var setSelectDataSource = function setSelectDataSource(list, total) {
|
|
4341
5385
|
setItems(list);
|
|
4342
5386
|
setItemsTotal(total);
|
|
@@ -4420,96 +5464,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4420
5464
|
});
|
|
4421
5465
|
}
|
|
4422
5466
|
// 数组对象处理,对带有特殊标记的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
|
-
}
|
|
5467
|
+
handleParams(params);
|
|
4513
5468
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
4514
5469
|
pageSize: pageSize,
|
|
4515
5470
|
currentPage: currentPage
|
|
@@ -4517,9 +5472,17 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4517
5472
|
if (isNil(queryParams[selectParamsKey])) {
|
|
4518
5473
|
queryParams[selectParamsKey] = searchValue;
|
|
4519
5474
|
}
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
5475
|
+
var getRequest;
|
|
5476
|
+
var methodName = method === null || method === void 0 ? void 0 : method.toLocaleLowerCase();
|
|
5477
|
+
if (['post', 'patch', 'put'].includes(methodName)) {
|
|
5478
|
+
getRequest = requestUtil[methodName]("".concat(url).concat(convertUrlQueryParams(queryParams)), convertBodyParams(queryParams));
|
|
5479
|
+
} else {
|
|
5480
|
+
getRequest = requestUtil.get("".concat(url).concat(convertUrlQueryParams(queryParams)), {
|
|
5481
|
+
headers: _objectSpread2({}, extralHeaders)
|
|
5482
|
+
});
|
|
5483
|
+
}
|
|
5484
|
+
if (!url || !getRequest) return;
|
|
5485
|
+
getRequest.then(function (result) {
|
|
4523
5486
|
setFetching(false);
|
|
4524
5487
|
result = result.data;
|
|
4525
5488
|
if (judgeIsRequestError(result)) {
|
|
@@ -4527,66 +5490,14 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4527
5490
|
return;
|
|
4528
5491
|
}
|
|
4529
5492
|
var res = result.data;
|
|
4530
|
-
var source =
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
} else {
|
|
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') : [];
|
|
5493
|
+
var source = convertResData(requestConfig, res, {
|
|
5494
|
+
selectMode: selectMode,
|
|
5495
|
+
labelInValue: labelInValue,
|
|
5496
|
+
value: value,
|
|
5497
|
+
type: type,
|
|
5498
|
+
items: items,
|
|
5499
|
+
queryParams: queryParams
|
|
5500
|
+
});
|
|
4590
5501
|
if (callback) {
|
|
4591
5502
|
callback(source);
|
|
4592
5503
|
} else {
|
|
@@ -4661,7 +5572,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4661
5572
|
}
|
|
4662
5573
|
}, [value]);
|
|
4663
5574
|
useEffect(function () {
|
|
4664
|
-
makeUniqueValue();
|
|
5575
|
+
setUniqueValue(makeUniqueValue());
|
|
4665
5576
|
}, [resultSourceKey]);
|
|
4666
5577
|
useEffect(function () {
|
|
4667
5578
|
if (init) {
|
|
@@ -4828,12 +5739,11 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4828
5739
|
};
|
|
4829
5740
|
var onSearchTable = function onSearchTable() {
|
|
4830
5741
|
var params = form.getFieldsValue();
|
|
4831
|
-
// const isHaveParams = params && Object.keys(params).filter(item => params[item]).length > 0;
|
|
4832
5742
|
setModalSearched(true);
|
|
4833
5743
|
setTableFormParams(params);
|
|
4834
5744
|
getData(_objectSpread2(_objectSpread2({}, params), {}, {
|
|
4835
5745
|
pageSize: tableInitPageSize
|
|
4836
|
-
}), 2);
|
|
5746
|
+
}), 2, null);
|
|
4837
5747
|
};
|
|
4838
5748
|
var onResetTable = function onResetTable() {
|
|
4839
5749
|
form.resetFields();
|
|
@@ -4852,28 +5762,6 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4852
5762
|
currentPage: pagination.current
|
|
4853
5763
|
}), 2);
|
|
4854
5764
|
};
|
|
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
5765
|
var onChangeSelectedKeys = function onChangeSelectedKeys(selectKeys, selectRows) {
|
|
4878
5766
|
var sksResult = (selectRows === null || selectRows === void 0 ? void 0 : selectRows.map(function (i) {
|
|
4879
5767
|
return i.value;
|
|
@@ -4889,12 +5777,6 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4889
5777
|
setIndeterminate(!!selectRows.length && selectRows.length < (tablePagination === null || tablePagination === void 0 ? void 0 : tablePagination.total));
|
|
4890
5778
|
setCheckedAll(selectRows.length === (tablePagination === null || tablePagination === void 0 ? void 0 : tablePagination.total));
|
|
4891
5779
|
};
|
|
4892
|
-
// 生成唯一值
|
|
4893
|
-
var makeUniqueValue = function makeUniqueValue() {
|
|
4894
|
-
var generateUnitKey = ((1 + Math.random()) * 0x10000 | 0).toString(16);
|
|
4895
|
-
setUniqueValue(generateUnitKey);
|
|
4896
|
-
return generateUnitKey;
|
|
4897
|
-
};
|
|
4898
5780
|
var rowSelection = {
|
|
4899
5781
|
type: selectMode ? 'checkbox' : 'radio',
|
|
4900
5782
|
selectedRowKeys: selectedRowKeys,
|
|
@@ -4960,7 +5842,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4960
5842
|
};
|
|
4961
5843
|
})) || [];
|
|
4962
5844
|
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;
|
|
5845
|
+
var _i$field, _i$field3, _i$field5, _i$field6, _i$field7, _i$field8, _i$field9;
|
|
4964
5846
|
if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React$1.createElement(Col, {
|
|
4965
5847
|
span: ColSpan,
|
|
4966
5848
|
key: i
|
|
@@ -5035,6 +5917,30 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5035
5917
|
}
|
|
5036
5918
|
})));
|
|
5037
5919
|
}
|
|
5920
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field7 = i.field) === null || _i$field7 === void 0 ? void 0 : _i$field7.type) === 'proppertySelector') {
|
|
5921
|
+
return /*#__PURE__*/React$1.createElement(Col, {
|
|
5922
|
+
span: ColSpan,
|
|
5923
|
+
key: i.name
|
|
5924
|
+
}, /*#__PURE__*/React$1.createElement(Form.Item, {
|
|
5925
|
+
name: i.name,
|
|
5926
|
+
label: i.label,
|
|
5927
|
+
key: i.name
|
|
5928
|
+
}, /*#__PURE__*/React$1.createElement(PropertySelector, null)));
|
|
5929
|
+
}
|
|
5930
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field8 = i.field) === null || _i$field8 === void 0 ? void 0 : _i$field8.type) === 'multipleQuerySearchSelect') {
|
|
5931
|
+
return /*#__PURE__*/React$1.createElement(Col, {
|
|
5932
|
+
span: ColSpan,
|
|
5933
|
+
key: i.name
|
|
5934
|
+
}, /*#__PURE__*/React$1.createElement(Form.Item, {
|
|
5935
|
+
name: i.name,
|
|
5936
|
+
label: i.label,
|
|
5937
|
+
key: i.name
|
|
5938
|
+
}, /*#__PURE__*/React$1.createElement(QueryMutipleSearchSelect, _objectSpread2(_objectSpread2({}, i.field.props), {}, {
|
|
5939
|
+
onValueChange: function onValueChange(value) {
|
|
5940
|
+
form.setFieldsValue(_defineProperty({}, i.name, value));
|
|
5941
|
+
}
|
|
5942
|
+
}))));
|
|
5943
|
+
}
|
|
5038
5944
|
// 默认type是input
|
|
5039
5945
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
5040
5946
|
span: ColSpan,
|
|
@@ -5050,7 +5956,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5050
5956
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
5051
5957
|
allowClear: true,
|
|
5052
5958
|
maxLength: 100
|
|
5053
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
5959
|
+
}, i === null || i === void 0 ? void 0 : (_i$field9 = i.field) === null || _i$field9 === void 0 ? void 0 : _i$field9.props), {}, {
|
|
5054
5960
|
disabled: setDisabled(i.name)
|
|
5055
5961
|
}))));
|
|
5056
5962
|
});
|
|
@@ -5062,13 +5968,6 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5062
5968
|
var viCount = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.visibleFieldsCount) || defaultVisibleFieldsCount;
|
|
5063
5969
|
return collapsed ? formItem(list === null || list === void 0 ? void 0 : list.slice(0, viCount)) : formItem(list);
|
|
5064
5970
|
};
|
|
5065
|
-
// const queryFieldsDom = <SearchItemTable
|
|
5066
|
-
// ref={searchTableRef}
|
|
5067
|
-
// setShowSearchFields={setShowSearchFields||[]}
|
|
5068
|
-
// showSearchFields={showSearchFields||[]}
|
|
5069
|
-
// datasource={modalTableProps?.tableSearchForm || []}
|
|
5070
|
-
// bsTableCode={bsTableCode}
|
|
5071
|
-
// />
|
|
5072
5971
|
var renderShowTable = function renderShowTable(tableList, type) {
|
|
5073
5972
|
var tableBoxHeighth = getTableHeigth(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm);
|
|
5074
5973
|
var oSY = "calc(100vh - ".concat(tableBoxHeighth, "px - 82px)"); // 分页 24+16*2+10 「高 + margin * 2 + paddingBottom 10 」
|
|
@@ -5083,7 +5982,9 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5083
5982
|
columns: tableShowColumns,
|
|
5084
5983
|
dataSource: tableList
|
|
5085
5984
|
}, type == 'noPage' ? {
|
|
5086
|
-
pagination: initPagination,
|
|
5985
|
+
pagination: _objectSpread2(_objectSpread2({}, initPagination), {}, {
|
|
5986
|
+
showSizeChanger: false
|
|
5987
|
+
}),
|
|
5087
5988
|
locale: {
|
|
5088
5989
|
emptyText: '暂无已选结果'
|
|
5089
5990
|
}
|
|
@@ -5128,9 +6029,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5128
6029
|
})) || [], 'noPage')
|
|
5129
6030
|
}];
|
|
5130
6031
|
var resetSelectDataSource = function resetSelectDataSource() {
|
|
6032
|
+
var isClear = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
5131
6033
|
setSearchValue('');
|
|
5132
6034
|
// 有关联值 不需要清空下拉框数据 也不需要重新去请求了
|
|
5133
|
-
if (isHaveDependency) return;
|
|
6035
|
+
if (!isClear && isHaveDependency) return; // 清空时需要放开:级联首次回之后,清空数据需要重新查询下拉框的值
|
|
5134
6036
|
clearSelectDataSource();
|
|
5135
6037
|
init && run('init');
|
|
5136
6038
|
};
|
|
@@ -5142,14 +6044,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5142
6044
|
formaData([], items);
|
|
5143
6045
|
onChangeSelectedKeys([], []);
|
|
5144
6046
|
// 重置下拉框数据源
|
|
5145
|
-
resetSelectDataSource();
|
|
6047
|
+
resetSelectDataSource(true);
|
|
5146
6048
|
};
|
|
5147
6049
|
var onDeselect = function onDeselect() {
|
|
5148
|
-
var oldSelect = (value
|
|
5149
|
-
return {
|
|
5150
|
-
value: (s === null || s === void 0 ? void 0 : s.value) || s
|
|
5151
|
-
};
|
|
5152
|
-
})) || [];
|
|
6050
|
+
var oldSelect = formatSelectedValue(value);
|
|
5153
6051
|
var deRecord = arguments.length <= 1 ? undefined : arguments[1];
|
|
5154
6052
|
var srs = oldSelect.filter(function (s) {
|
|
5155
6053
|
return s.value != (deRecord === null || deRecord === void 0 ? void 0 : deRecord.value);
|
|
@@ -5162,13 +6060,20 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5162
6060
|
nr && setSelectOpen(false);
|
|
5163
6061
|
};
|
|
5164
6062
|
var onDropdownVisibleChange = function onDropdownVisibleChange(visible) {
|
|
6063
|
+
// 阻止maxTagPlaceholder点击事件触发下拉框展示事件
|
|
6064
|
+
if (isMaxTagsOpen && !selectOpen) return;
|
|
5165
6065
|
setSelectOpen(visible);
|
|
5166
6066
|
// 关闭下拉框 如果首次本身就不展示数据的 没有选中数据-需要清空查询数据源; 首次展示的默认展示
|
|
5167
6067
|
if (!visible && !(value === null || value === void 0 ? void 0 : value.length)) {
|
|
5168
|
-
|
|
6068
|
+
setTimeout(function () {
|
|
6069
|
+
// 延时 是为了避免 执行时候出现下拉框弹两次的问题-可以看到数据源从展示到显示空数据框的问题
|
|
6070
|
+
resetSelectDataSource();
|
|
6071
|
+
}, 200);
|
|
5169
6072
|
}
|
|
5170
6073
|
};
|
|
5171
6074
|
var renderTable = function renderTable(dataSource) {
|
|
6075
|
+
var currentSRKs = getCurrentSRKs(selectMode, labelInValue, value);
|
|
6076
|
+
var renderSource = getRenderSource(currentSRKs, items);
|
|
5172
6077
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
5173
6078
|
className: "search_select_dropdown_table ".concat(!selectMode ? 'search_select_dropdown_table1' : '')
|
|
5174
6079
|
}, /*#__PURE__*/React$1.createElement(Table, _objectSpread2(_objectSpread2({
|
|
@@ -5178,16 +6083,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5178
6083
|
rowSelection: {
|
|
5179
6084
|
type: 'checkbox',
|
|
5180
6085
|
columnWidth: '24px',
|
|
5181
|
-
selectedRowKeys:
|
|
5182
|
-
return (s === null || s === void 0 ? void 0 : s.value) || s;
|
|
5183
|
-
}) : value,
|
|
6086
|
+
selectedRowKeys: currentSRKs,
|
|
5184
6087
|
preserveSelectedRowKeys: true,
|
|
5185
6088
|
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
|
-
})) || [];
|
|
6089
|
+
var oldSelect = formatSelectedValue(value);
|
|
5191
6090
|
var tmpSelectedRows = oldSelect.concat(srs).filter(function (item) {
|
|
5192
6091
|
return item != undefined;
|
|
5193
6092
|
});
|
|
@@ -5206,11 +6105,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5206
6105
|
onClick: function onClick(event) {
|
|
5207
6106
|
event.stopPropagation();
|
|
5208
6107
|
event.nativeEvent.stopImmediatePropagation();
|
|
5209
|
-
var oldSelect = (value
|
|
5210
|
-
return {
|
|
5211
|
-
value: (s === null || s === void 0 ? void 0 : s.value) || s
|
|
5212
|
-
};
|
|
5213
|
-
})) || [];
|
|
6108
|
+
var oldSelect = formatSelectedValue(value);
|
|
5214
6109
|
var newSelect = [JSON.parse(JSON.stringify(record))];
|
|
5215
6110
|
var srs = getRealStr(oldSelect, newSelect, record);
|
|
5216
6111
|
onSelectClick(srs, dataSource, false);
|
|
@@ -5221,7 +6116,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5221
6116
|
rowSelection: {
|
|
5222
6117
|
type: 'radio',
|
|
5223
6118
|
columnWidth: 0,
|
|
5224
|
-
selectedRowKeys:
|
|
6119
|
+
selectedRowKeys: currentSRKs
|
|
5225
6120
|
},
|
|
5226
6121
|
onRow: function onRow(record, rowKey) {
|
|
5227
6122
|
return {
|
|
@@ -5233,7 +6128,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5233
6128
|
}
|
|
5234
6129
|
}), {}, {
|
|
5235
6130
|
columns: (selectProps === null || selectProps === void 0 ? void 0 : selectProps.renderTableColumns) || [],
|
|
5236
|
-
dataSource:
|
|
6131
|
+
dataSource: renderSource,
|
|
5237
6132
|
size: "middle",
|
|
5238
6133
|
pagination: false,
|
|
5239
6134
|
rowKey: mappingValueField,
|
|
@@ -5243,41 +6138,6 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5243
6138
|
}
|
|
5244
6139
|
})));
|
|
5245
6140
|
};
|
|
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
6141
|
var getShowLabelTextStr = function getShowLabelTextStr(kongValue) {
|
|
5282
6142
|
if (selectMode) {
|
|
5283
6143
|
var _value$map;
|
|
@@ -5331,7 +6191,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5331
6191
|
},
|
|
5332
6192
|
className: 'search_select_show'
|
|
5333
6193
|
}, getShowStr())) : /*#__PURE__*/React$1.createElement("div", {
|
|
5334
|
-
className: "search_select_show",
|
|
6194
|
+
className: "".concat(isFormPage ? '' : 'search_select_show_list', " search_select_show"),
|
|
5335
6195
|
id: "search_select_div_".concat(uniqueValue)
|
|
5336
6196
|
}, /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
5337
6197
|
labelInValue: labelInValue,
|
|
@@ -5362,7 +6222,16 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5362
6222
|
width: 'calc(100%)'
|
|
5363
6223
|
},
|
|
5364
6224
|
placeholder: "\u8BF7\u9009\u62E9",
|
|
5365
|
-
maxTagPlaceholder: maxTagPlaceholder
|
|
6225
|
+
maxTagPlaceholder: function maxTagPlaceholder$1(v) {
|
|
6226
|
+
return maxTagPlaceholder(v, {
|
|
6227
|
+
selectProps: {
|
|
6228
|
+
labelInValue: labelInValue
|
|
6229
|
+
},
|
|
6230
|
+
onChange: onChange,
|
|
6231
|
+
value: value,
|
|
6232
|
+
setIsMaxTagsOpen: setIsMaxTagsOpen
|
|
6233
|
+
});
|
|
6234
|
+
},
|
|
5366
6235
|
onSearch: function onSearch(v) {
|
|
5367
6236
|
return onSearchChange(v);
|
|
5368
6237
|
}
|
|
@@ -5373,7 +6242,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5373
6242
|
}, /*#__PURE__*/React$1.createElement(SearchOutlined, null))
|
|
5374
6243
|
} : {}), currentSelectProps), {}, {
|
|
5375
6244
|
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
5376
|
-
return
|
|
6245
|
+
return highestPopContainer && highestPopContainer(triggerNode) || triggerNode.parentElement;
|
|
5377
6246
|
}
|
|
5378
6247
|
}), items.map(function (item) {
|
|
5379
6248
|
return /*#__PURE__*/React$1.createElement(Option$1, {
|
|
@@ -5458,8 +6327,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5458
6327
|
})) : null)))));
|
|
5459
6328
|
});
|
|
5460
6329
|
|
|
5461
|
-
var css_248z$
|
|
5462
|
-
styleInject(css_248z$
|
|
6330
|
+
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";
|
|
6331
|
+
styleInject(css_248z$8);
|
|
5463
6332
|
|
|
5464
6333
|
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
6334
|
|
|
@@ -5475,10 +6344,10 @@ var fixedRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
5475
6344
|
|
|
5476
6345
|
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
6346
|
|
|
5478
|
-
var css_248z$
|
|
5479
|
-
styleInject(css_248z$
|
|
6347
|
+
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";
|
|
6348
|
+
styleInject(css_248z$9);
|
|
5480
6349
|
|
|
5481
|
-
var _excluded$
|
|
6350
|
+
var _excluded$4 = ["className", "style"];
|
|
5482
6351
|
var Search = Input.Search;
|
|
5483
6352
|
var DragHandle = SortableHandle(function () {
|
|
5484
6353
|
return /*#__PURE__*/React$1.createElement("img", {
|
|
@@ -5830,7 +6699,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
5830
6699
|
_this.DraggableBodyRow = function (_ref2) {
|
|
5831
6700
|
var className = _ref2.className,
|
|
5832
6701
|
style = _ref2.style,
|
|
5833
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
6702
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$4);
|
|
5834
6703
|
var sortDataSource = _this.state.sortDataSource;
|
|
5835
6704
|
// function findIndex base on Table rowKey props and should always be a right array index
|
|
5836
6705
|
var index = sortDataSource.findIndex(function (x) {
|
|
@@ -6249,7 +7118,7 @@ var formatFormSourceList = function formatFormSourceList(x, loadList, tableSearc
|
|
|
6249
7118
|
});
|
|
6250
7119
|
};
|
|
6251
7120
|
|
|
6252
|
-
var _excluded$
|
|
7121
|
+
var _excluded$5 = ["onResize", "width"],
|
|
6253
7122
|
_excluded2$2 = ["name", "label", "field", "type", "filterFormItem", "initialSource"];
|
|
6254
7123
|
var checkSpuMatchCode = function checkSpuMatchCode(data) {
|
|
6255
7124
|
return new Promise(function (resolve, reject) {
|
|
@@ -6269,7 +7138,7 @@ var checkSpuMatchCode = function checkSpuMatchCode(data) {
|
|
|
6269
7138
|
var ResizeableTitle = function ResizeableTitle(props) {
|
|
6270
7139
|
var onResize = props.onResize,
|
|
6271
7140
|
width = props.width,
|
|
6272
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
7141
|
+
restProps = _objectWithoutProperties(props, _excluded$5);
|
|
6273
7142
|
if (!width) {
|
|
6274
7143
|
return /*#__PURE__*/React$1.createElement("th", _objectSpread2({}, restProps));
|
|
6275
7144
|
}
|
|
@@ -7498,10 +8367,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7498
8367
|
}))))));
|
|
7499
8368
|
};
|
|
7500
8369
|
|
|
7501
|
-
var css_248z$
|
|
7502
|
-
styleInject(css_248z$
|
|
8370
|
+
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";
|
|
8371
|
+
styleInject(css_248z$a);
|
|
7503
8372
|
|
|
7504
|
-
var _excluded$
|
|
8373
|
+
var _excluded$6 = ["onResize", "width"];
|
|
7505
8374
|
var _this = undefined;
|
|
7506
8375
|
var InputElement = function InputElement(_ref) {
|
|
7507
8376
|
var _record$packingUnitLi, _record$packingUnitLi2;
|
|
@@ -7999,7 +8868,7 @@ var InputElement = function InputElement(_ref) {
|
|
|
7999
8868
|
var ResizeableTitle$1 = function ResizeableTitle(props) {
|
|
8000
8869
|
var onResize = props.onResize,
|
|
8001
8870
|
width = props.width,
|
|
8002
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
8871
|
+
restProps = _objectWithoutProperties(props, _excluded$6);
|
|
8003
8872
|
if (!width) {
|
|
8004
8873
|
return /*#__PURE__*/React$1.createElement("th", _objectSpread2({}, restProps));
|
|
8005
8874
|
}
|
|
@@ -8642,6 +9511,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8642
9511
|
hiddenFields = _ref$hiddenFields === void 0 ? [] : _ref$hiddenFields;
|
|
8643
9512
|
// 默认type === 'supplier' 供应商选择器
|
|
8644
9513
|
var requestConfig = _objectSpread2({
|
|
9514
|
+
init: true,
|
|
8645
9515
|
url: "".concat(prefixUrl.selectPrefix, "/supplier"),
|
|
8646
9516
|
filter: 'qp-name,code-orGroup,like',
|
|
8647
9517
|
otherParams: _objectSpread2({
|
|
@@ -8935,7 +9805,8 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8935
9805
|
// 商品选择器sku
|
|
8936
9806
|
if (type === 'skuCommodity') {
|
|
8937
9807
|
requestConfig = _objectSpread2({
|
|
8938
|
-
url: "".concat(prefixUrl.selectPrefix, "/sku/doPageBySelect/
|
|
9808
|
+
url: "".concat(prefixUrl.selectPrefix, "/sku/doPageBySelect/v4"),
|
|
9809
|
+
method: 'post',
|
|
8939
9810
|
filter: 'skuCodeAndSkuName',
|
|
8940
9811
|
searchStartLength: 4,
|
|
8941
9812
|
mappingTextField: 'name',
|
|
@@ -8959,13 +9830,43 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8959
9830
|
tableSearchForm = [{
|
|
8960
9831
|
name: 'qp-skuCode-in',
|
|
8961
9832
|
label: 'SKU编码',
|
|
8962
|
-
|
|
9833
|
+
field: {
|
|
9834
|
+
type: 'multipleQuerySearchSelect',
|
|
9835
|
+
props: {
|
|
9836
|
+
selectProps: {
|
|
9837
|
+
mode: "multiple"
|
|
9838
|
+
},
|
|
9839
|
+
requestConfig: {
|
|
9840
|
+
url: '/items/sku//listNoPage/Simple',
|
|
9841
|
+
filter: 'qp-name-like',
|
|
9842
|
+
// filter: 'qp-itemCode,name-orGroup,like',
|
|
9843
|
+
mappingTextField: 'name',
|
|
9844
|
+
mappingValueField: 'skuCode',
|
|
9845
|
+
sourceName: 'qp-skuCode-in',
|
|
9846
|
+
specialBracket: true
|
|
9847
|
+
}
|
|
9848
|
+
}
|
|
9849
|
+
}
|
|
8963
9850
|
}, {
|
|
8964
9851
|
name: 'qp-skuName-like',
|
|
8965
9852
|
label: 'SKU名称'
|
|
8966
9853
|
}, {
|
|
8967
|
-
name: 'qp-itemCode-
|
|
8968
|
-
label: '
|
|
9854
|
+
name: 'qp-itemCode-in',
|
|
9855
|
+
label: 'SPU编码',
|
|
9856
|
+
field: {
|
|
9857
|
+
type: 'multipleQuerySearchSelect',
|
|
9858
|
+
props: {
|
|
9859
|
+
requestConfig: {
|
|
9860
|
+
url: '/items/item/listNoPage/Simple',
|
|
9861
|
+
filter: 'qp-name-like',
|
|
9862
|
+
// filter: 'qp-skuCode,name-orGroup,like',
|
|
9863
|
+
mappingTextField: 'name',
|
|
9864
|
+
mappingValueField: 'itemCode',
|
|
9865
|
+
sourceName: 'qp-itemCode-in',
|
|
9866
|
+
specialBracket: true
|
|
9867
|
+
}
|
|
9868
|
+
}
|
|
9869
|
+
}
|
|
8969
9870
|
}, {
|
|
8970
9871
|
name: 'qp-eancode-in',
|
|
8971
9872
|
label: '商品条码',
|
|
@@ -9018,6 +9919,12 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9018
9919
|
}
|
|
9019
9920
|
}
|
|
9020
9921
|
}
|
|
9922
|
+
}, {
|
|
9923
|
+
name: 'UNIQUE_SPEC',
|
|
9924
|
+
label: '属性',
|
|
9925
|
+
field: {
|
|
9926
|
+
type: 'proppertySelector'
|
|
9927
|
+
}
|
|
9021
9928
|
}];
|
|
9022
9929
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
|
|
9023
9930
|
pageSize: 5000,
|
|
@@ -9424,6 +10331,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9424
10331
|
}]
|
|
9425
10332
|
}, selectConfigProps);
|
|
9426
10333
|
requestConfig = _objectSpread2({
|
|
10334
|
+
init: true,
|
|
9427
10335
|
url: "".concat(prefixUrl.selectPrefix, "/skuPropertyValue/list"),
|
|
9428
10336
|
filter: 'qp-value-like',
|
|
9429
10337
|
mappingTextField: 'value',
|
|
@@ -10346,6 +11254,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10346
11254
|
}]
|
|
10347
11255
|
}, selectConfigProps);
|
|
10348
11256
|
requestConfig = _objectSpread2({
|
|
11257
|
+
init: true,
|
|
10349
11258
|
url: "".concat(prefixUrl.selectPrefix, "/inventoryOrg"),
|
|
10350
11259
|
filter: 'qp-name,code-orGroup,like',
|
|
10351
11260
|
mappingTextField: 'name',
|
|
@@ -10371,6 +11280,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10371
11280
|
}]
|
|
10372
11281
|
}, selectConfigProps);
|
|
10373
11282
|
requestConfig = _objectSpread2({
|
|
11283
|
+
init: true,
|
|
10374
11284
|
url: "".concat(prefixUrl.selectPrefix, "/company"),
|
|
10375
11285
|
filter: 'qp-name,code-orGroup,like',
|
|
10376
11286
|
mappingTextField: 'name',
|
|
@@ -10396,6 +11306,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10396
11306
|
}]
|
|
10397
11307
|
}, selectConfigProps);
|
|
10398
11308
|
requestConfig = _objectSpread2({
|
|
11309
|
+
init: true,
|
|
10399
11310
|
url: "".concat(prefixUrl.selectPrefix, "/platCompany"),
|
|
10400
11311
|
filter: 'qp-name,socialCreditCode-orGroup,like',
|
|
10401
11312
|
mappingTextField: 'name',
|
|
@@ -10421,6 +11332,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10421
11332
|
}]
|
|
10422
11333
|
}, selectConfigProps);
|
|
10423
11334
|
requestConfig = _objectSpread2({
|
|
11335
|
+
init: true,
|
|
10424
11336
|
url: "".concat(prefixUrl.selectPrefix, "/employee/v2"),
|
|
10425
11337
|
filter: 'qp-employeeNumber,name-orGroup,like',
|
|
10426
11338
|
mappingTextField: 'name',
|
|
@@ -10514,6 +11426,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10514
11426
|
}]
|
|
10515
11427
|
}, selectConfigProps);
|
|
10516
11428
|
requestConfig = _objectSpread2({
|
|
11429
|
+
init: true,
|
|
10517
11430
|
url: "".concat(prefixUrl.selectPrefix, "/employee/pageList/v2"),
|
|
10518
11431
|
filter: 'qp-username,name-orGroup,like',
|
|
10519
11432
|
mappingTextField: 'name',
|
|
@@ -10656,6 +11569,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10656
11569
|
});
|
|
10657
11570
|
var logisCompanyCodeSingleSearchName = isLogisCompanyCodeSingleSearch ? 'qp-logisCompanyCode-eq' : 'qp-logisCompanyCode-in';
|
|
10658
11571
|
requestConfig = _objectSpread2({
|
|
11572
|
+
init: true,
|
|
10659
11573
|
url: "".concat(prefixUrl.selectPrefix, "/deliveryMode"),
|
|
10660
11574
|
filter: 'qp-name,code-orGroup,like',
|
|
10661
11575
|
mappingTextField: 'name',
|
|
@@ -10792,6 +11706,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10792
11706
|
}]
|
|
10793
11707
|
}, selectConfigProps);
|
|
10794
11708
|
requestConfig = _objectSpread2({
|
|
11709
|
+
init: true,
|
|
10795
11710
|
url: "".concat(prefixUrl.selectPrefix, "/ruleTemplate"),
|
|
10796
11711
|
filter: 'qp-name,code-orGroup,like',
|
|
10797
11712
|
mappingTextField: 'name',
|
|
@@ -10863,6 +11778,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10863
11778
|
}]
|
|
10864
11779
|
}, selectConfigProps);
|
|
10865
11780
|
requestConfig = _objectSpread2({
|
|
11781
|
+
init: true,
|
|
10866
11782
|
url: "".concat(prefixUrl.selectPrefix, "/role"),
|
|
10867
11783
|
filter: 'qp-name,code-orGroup,like',
|
|
10868
11784
|
mappingTextField: 'name',
|
|
@@ -10959,6 +11875,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10959
11875
|
}]
|
|
10960
11876
|
}, selectConfigProps);
|
|
10961
11877
|
requestConfig = _objectSpread2({
|
|
11878
|
+
init: true,
|
|
10962
11879
|
url: "".concat(prefixUrl.selectPrefix, "/channelInfo"),
|
|
10963
11880
|
filter: 'qp-name,code-orGroup,like',
|
|
10964
11881
|
mappingTextField: 'name',
|
|
@@ -11046,6 +11963,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11046
11963
|
}]
|
|
11047
11964
|
}, selectConfigProps);
|
|
11048
11965
|
requestConfig = _objectSpread2({
|
|
11966
|
+
init: true,
|
|
11049
11967
|
url: "".concat(prefixUrl.selectPrefix, "/orgViewNode/common/pageList"),
|
|
11050
11968
|
filter: 'qp-name-like',
|
|
11051
11969
|
mappingTextField: 'name',
|
|
@@ -11174,6 +12092,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11174
12092
|
}]
|
|
11175
12093
|
}, selectConfigProps);
|
|
11176
12094
|
requestConfig = _objectSpread2({
|
|
12095
|
+
init: true,
|
|
11177
12096
|
url: "".concat(prefixUrl.selectPrefix, "/person"),
|
|
11178
12097
|
filter: 'qp-code,name-orGroup,like',
|
|
11179
12098
|
mappingTextField: 'name',
|
|
@@ -11309,6 +12228,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11309
12228
|
}]
|
|
11310
12229
|
}, selectConfigProps);
|
|
11311
12230
|
requestConfig = _objectSpread2({
|
|
12231
|
+
init: true,
|
|
11312
12232
|
url: "".concat(prefixUrl.selectPrefix, "/priceType"),
|
|
11313
12233
|
filter: 'qp-code,name-orGroup,like',
|
|
11314
12234
|
mappingTextField: 'name',
|
|
@@ -11497,6 +12417,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11497
12417
|
|
|
11498
12418
|
var MemoSearchSelect = /*#__PURE__*/React$1.memo(SearchSelect);
|
|
11499
12419
|
var BusinessSearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
12420
|
+
var _props$requestConfig;
|
|
11500
12421
|
var businessType = (props === null || props === void 0 ? void 0 : props.selectBusinessType) || 'supplier';
|
|
11501
12422
|
var prefixUrl = (props === null || props === void 0 ? void 0 : props.prefixUrl) || {
|
|
11502
12423
|
selectPrefix: handleDefaultPrefixUrl(businessType),
|
|
@@ -11515,7 +12436,7 @@ var BusinessSearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
11515
12436
|
needModalTable: needModalTable,
|
|
11516
12437
|
modalTableProps: modalTableProps
|
|
11517
12438
|
});
|
|
11518
|
-
}, [props === null || props === void 0 ? void 0 : props.value, props.disabled, props.selectBusinessType]);
|
|
12439
|
+
}, [props === null || props === void 0 ? void 0 : props.value, props.disabled, props.selectBusinessType, (_props$requestConfig = props.requestConfig) === null || _props$requestConfig === void 0 ? void 0 : _props$requestConfig.noOperate]);
|
|
11519
12440
|
useImperativeHandle(ref, function () {
|
|
11520
12441
|
return {
|
|
11521
12442
|
getRef: function getRef() {
|
|
@@ -11540,6 +12461,9 @@ var BusinessSearchSelect$1 = /*#__PURE__*/React$1.memo(BusinessSearchSelect, fun
|
|
|
11540
12461
|
if (props && props.selectBusinessType !== nextProps.selectBusinessType) {
|
|
11541
12462
|
return false;
|
|
11542
12463
|
}
|
|
12464
|
+
if (props && props.requestConfig && typeof props.requestConfig.noOperate === 'boolean' && props.requestConfig.noOperate !== nextProps.requestConfig.noOperate) {
|
|
12465
|
+
return false;
|
|
12466
|
+
}
|
|
11543
12467
|
return true;
|
|
11544
12468
|
});
|
|
11545
12469
|
|
|
@@ -12807,7 +13731,7 @@ function getStorageVale(storageKeyString) {
|
|
|
12807
13731
|
return "";
|
|
12808
13732
|
}
|
|
12809
13733
|
|
|
12810
|
-
var _excluded$
|
|
13734
|
+
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"];
|
|
12811
13735
|
var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
12812
13736
|
var _useState = useState([]),
|
|
12813
13737
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -12849,7 +13773,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12849
13773
|
} : _props$style,
|
|
12850
13774
|
getTreeData = props.getTreeData,
|
|
12851
13775
|
disabled = props.disabled,
|
|
12852
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
13776
|
+
restProps = _objectWithoutProperties(props, _excluded$7);
|
|
12853
13777
|
var url = remoteSource.url,
|
|
12854
13778
|
headers = remoteSource.headers,
|
|
12855
13779
|
_remoteSource$paramsK = remoteSource.paramsKey,
|
|
@@ -13234,8 +14158,8 @@ var BusinessTreeSearchSelect$1 = /*#__PURE__*/React$1.memo(BusinessTreeSearchSel
|
|
|
13234
14158
|
return true;
|
|
13235
14159
|
});
|
|
13236
14160
|
|
|
13237
|
-
var css_248z$
|
|
13238
|
-
styleInject(css_248z$
|
|
14161
|
+
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";
|
|
14162
|
+
styleInject(css_248z$b);
|
|
13239
14163
|
|
|
13240
14164
|
var index$2 = (function (props) {
|
|
13241
14165
|
var _props$formStatusMapp = props.formStatusMapping,
|
|
@@ -13272,10 +14196,10 @@ var index$2 = (function (props) {
|
|
|
13272
14196
|
}));
|
|
13273
14197
|
});
|
|
13274
14198
|
|
|
13275
|
-
var css_248z$
|
|
13276
|
-
styleInject(css_248z$
|
|
14199
|
+
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";
|
|
14200
|
+
styleInject(css_248z$c);
|
|
13277
14201
|
|
|
13278
|
-
var _excluded$
|
|
14202
|
+
var _excluded$8 = ["children", "titleExtra", "title", "extra", "bordered"],
|
|
13279
14203
|
_excluded2$3 = ["children"];
|
|
13280
14204
|
var Field = function Field(_ref) {
|
|
13281
14205
|
var children = _ref.children,
|
|
@@ -13283,7 +14207,7 @@ var Field = function Field(_ref) {
|
|
|
13283
14207
|
title = _ref.title,
|
|
13284
14208
|
extra = _ref.extra,
|
|
13285
14209
|
bordered = _ref.bordered,
|
|
13286
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
14210
|
+
props = _objectWithoutProperties(_ref, _excluded$8);
|
|
13287
14211
|
var _React$useState = React$1.useState(true),
|
|
13288
14212
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
13289
14213
|
fieldGroupVisible = _React$useState2[0],
|
|
@@ -13407,10 +14331,10 @@ var ExportIcon = function ExportIcon(_ref) {
|
|
|
13407
14331
|
})));
|
|
13408
14332
|
};
|
|
13409
14333
|
|
|
13410
|
-
var css_248z$
|
|
13411
|
-
styleInject(css_248z$
|
|
14334
|
+
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";
|
|
14335
|
+
styleInject(css_248z$d);
|
|
13412
14336
|
|
|
13413
|
-
var _excluded$
|
|
14337
|
+
var _excluded$9 = ["className", "style"];
|
|
13414
14338
|
var Search$1 = Input.Search;
|
|
13415
14339
|
var DragHandle$1 = SortableHandle(function () {
|
|
13416
14340
|
return /*#__PURE__*/React$1.createElement("img", {
|
|
@@ -13828,7 +14752,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13828
14752
|
_this.DraggableBodyRow = function (_ref2) {
|
|
13829
14753
|
var className = _ref2.className,
|
|
13830
14754
|
style = _ref2.style,
|
|
13831
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
14755
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$9);
|
|
13832
14756
|
var sortDataSource = _this.state.sortDataSource;
|
|
13833
14757
|
// function findIndex base on Table rowKey props and should always be a right array index
|
|
13834
14758
|
var index = sortDataSource.findIndex(function (x) {
|
|
@@ -13988,8 +14912,8 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13988
14912
|
visible = _this$state3.visible,
|
|
13989
14913
|
onSearchSort = _this$state3.onSearchSort;
|
|
13990
14914
|
var seatchDataSource = dataSource.filter(function (item) {
|
|
13991
|
-
var
|
|
13992
|
-
return (item === null || item === void 0 ? void 0 :
|
|
14915
|
+
var _renderToString;
|
|
14916
|
+
return ((_renderToString = renderToString(item === null || item === void 0 ? void 0 : item.title)) === null || _renderToString === void 0 ? void 0 : _renderToString.indexOf(searchDataSource || '')) > -1;
|
|
13993
14917
|
});
|
|
13994
14918
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
13995
14919
|
className: 'sort_table_wrapper'
|
|
@@ -14072,8 +14996,8 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14072
14996
|
}
|
|
14073
14997
|
}, item.title);
|
|
14074
14998
|
}) : dataSource.filter(function (item) {
|
|
14075
|
-
var _item$
|
|
14076
|
-
return (item === null || item === void 0 ? void 0 : (_item$
|
|
14999
|
+
var _item$title, _item$title2;
|
|
15000
|
+
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;
|
|
14077
15001
|
}).map(function (item) {
|
|
14078
15002
|
return /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
14079
15003
|
checked: !item.hidden,
|
|
@@ -14092,8 +15016,8 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14092
15016
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
14093
15017
|
className: 'sort_table_column_all'
|
|
14094
15018
|
}, _toConsumableArray(dataSource).filter(function (item) {
|
|
14095
|
-
var _item$
|
|
14096
|
-
return (item === null || item === void 0 ? void 0 : (_item$
|
|
15019
|
+
var _item$title3, _item$title4;
|
|
15020
|
+
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;
|
|
14097
15021
|
}).map(function (item) {
|
|
14098
15022
|
return /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
14099
15023
|
checked: !item.hidden,
|
|
@@ -14129,8 +15053,8 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14129
15053
|
pagination: false,
|
|
14130
15054
|
showHeader: false,
|
|
14131
15055
|
dataSource: (onSearchSort ? sortDataSource.filter(function (item) {
|
|
14132
|
-
var _item$
|
|
14133
|
-
return (item === null || item === void 0 ? void 0 : (_item$
|
|
15056
|
+
var _item$title5;
|
|
15057
|
+
return (item === null || item === void 0 ? void 0 : (_item$title5 = item.title) === null || _item$title5 === void 0 ? void 0 : _item$title5.indexOf(onSearchSort)) > -1;
|
|
14134
15058
|
}) : sortDataSource).map(function (item) {
|
|
14135
15059
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
14136
15060
|
key: item.key || item.dataIndex
|
|
@@ -14160,7 +15084,29 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14160
15084
|
}]);
|
|
14161
15085
|
}(React$1.Component);
|
|
14162
15086
|
|
|
14163
|
-
var
|
|
15087
|
+
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";
|
|
15088
|
+
styleInject(css_248z$e);
|
|
15089
|
+
|
|
15090
|
+
//表格底部 金额总计
|
|
15091
|
+
var TableSumComponent = (function (_ref) {
|
|
15092
|
+
var summary = _ref.summary;
|
|
15093
|
+
var Text = Typography.Text;
|
|
15094
|
+
return /*#__PURE__*/React$1.createElement(Fragment, null, /*#__PURE__*/React$1.createElement("div", {
|
|
15095
|
+
className: "table_sum_wrapper"
|
|
15096
|
+
}, /*#__PURE__*/React$1.createElement("div", {
|
|
15097
|
+
className: 'table-bssula-summary'
|
|
15098
|
+
}, summary.map(function (item) {
|
|
15099
|
+
return /*#__PURE__*/React$1.createElement(Text, {
|
|
15100
|
+
type: 'danger'
|
|
15101
|
+
}, item.label, ": ", /*#__PURE__*/React$1.createElement("span", {
|
|
15102
|
+
className: 'table-bssula-summary-count'
|
|
15103
|
+
}, item.count || 0));
|
|
15104
|
+
}))), /*#__PURE__*/React$1.createElement("div", {
|
|
15105
|
+
className: "sum_right_line"
|
|
15106
|
+
}));
|
|
15107
|
+
});
|
|
15108
|
+
|
|
15109
|
+
var _excluded$a = ["onResize", "width"],
|
|
14164
15110
|
_excluded2$4 = ["style", "columns", "tableCode", "appRequestConfig", "summary", "dynamicColumns", "scroll"];
|
|
14165
15111
|
var Text = Typography.Text;
|
|
14166
15112
|
var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
@@ -14264,7 +15210,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14264
15210
|
_this.ResizeableTitle = function (props) {
|
|
14265
15211
|
var onResize = props.onResize,
|
|
14266
15212
|
width = props.width,
|
|
14267
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
15213
|
+
restProps = _objectWithoutProperties(props, _excluded$a);
|
|
14268
15214
|
var _useState = useState(width),
|
|
14269
15215
|
_useState2 = _slicedToArray(_useState, 2),
|
|
14270
15216
|
innerWidth = _useState2[0],
|
|
@@ -14498,37 +15444,14 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14498
15444
|
cell: this.ResizeableTitle
|
|
14499
15445
|
}
|
|
14500
15446
|
}
|
|
14501
|
-
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(
|
|
14502
|
-
|
|
14503
|
-
|
|
14504
|
-
right: '20%',
|
|
14505
|
-
bottom: 0,
|
|
14506
|
-
whiteSpace: 'nowrap',
|
|
14507
|
-
overflowX: 'auto'
|
|
14508
|
-
}
|
|
14509
|
-
}, summary.map(function (item) {
|
|
14510
|
-
return /*#__PURE__*/React$1.createElement(Text, {
|
|
14511
|
-
type: 'danger'
|
|
14512
|
-
}, item.label, ": ", /*#__PURE__*/React$1.createElement("span", {
|
|
14513
|
-
className: 'table-bssula-summary-count'
|
|
14514
|
-
}, item.count || 0));
|
|
14515
|
-
})), /*#__PURE__*/React$1.createElement("div", {
|
|
14516
|
-
style: {
|
|
14517
|
-
width: '16px',
|
|
14518
|
-
height: '26px',
|
|
14519
|
-
opacity: 0.32,
|
|
14520
|
-
transform: 'scaleX(-1)',
|
|
14521
|
-
backgroundImage: 'linear-gradient(270deg, #ffffff00 0%, #A4A4A4 100%)',
|
|
14522
|
-
right: '20%',
|
|
14523
|
-
position: 'absolute',
|
|
14524
|
-
bottom: 0
|
|
14525
|
-
}
|
|
14526
|
-
}))));
|
|
15447
|
+
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15448
|
+
summary: summary
|
|
15449
|
+
})));
|
|
14527
15450
|
}
|
|
14528
15451
|
}]);
|
|
14529
15452
|
}(React$1.Component);
|
|
14530
15453
|
|
|
14531
|
-
var _excluded$
|
|
15454
|
+
var _excluded$b = ["onResize", "width"],
|
|
14532
15455
|
_excluded2$5 = ["columns", "tableCode", "appRequestConfig", "summary", "dynamicColumns", "scroll"];
|
|
14533
15456
|
var Text$1 = Typography.Text;
|
|
14534
15457
|
var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
@@ -14638,7 +15561,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14638
15561
|
_this.ResizeableTitle = function (props) {
|
|
14639
15562
|
var onResize = props.onResize,
|
|
14640
15563
|
width = props.width,
|
|
14641
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
15564
|
+
restProps = _objectWithoutProperties(props, _excluded$b);
|
|
14642
15565
|
if (!width) {
|
|
14643
15566
|
return /*#__PURE__*/React$1.createElement("th", _objectSpread2({}, restProps));
|
|
14644
15567
|
}
|
|
@@ -14767,32 +15690,9 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14767
15690
|
cell: this.ResizeableTitle
|
|
14768
15691
|
}
|
|
14769
15692
|
}
|
|
14770
|
-
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(
|
|
14771
|
-
|
|
14772
|
-
|
|
14773
|
-
right: '20%',
|
|
14774
|
-
bottom: 0,
|
|
14775
|
-
whiteSpace: 'nowrap',
|
|
14776
|
-
overflowX: 'auto'
|
|
14777
|
-
}
|
|
14778
|
-
}, summary.map(function (item) {
|
|
14779
|
-
return /*#__PURE__*/React$1.createElement(Text$1, {
|
|
14780
|
-
type: 'danger'
|
|
14781
|
-
}, item.label, ": ", /*#__PURE__*/React$1.createElement("span", {
|
|
14782
|
-
className: 'table-bssula-summary-count'
|
|
14783
|
-
}, item.count || 0));
|
|
14784
|
-
})), /*#__PURE__*/React$1.createElement("div", {
|
|
14785
|
-
style: {
|
|
14786
|
-
width: '16px',
|
|
14787
|
-
height: '26px',
|
|
14788
|
-
opacity: 0.32,
|
|
14789
|
-
transform: 'scaleX(-1)',
|
|
14790
|
-
backgroundImage: 'linear-gradient(270deg, #ffffff00 0%, #A4A4A4 100%)',
|
|
14791
|
-
right: '20%',
|
|
14792
|
-
position: 'absolute',
|
|
14793
|
-
bottom: 0
|
|
14794
|
-
}
|
|
14795
|
-
}))));
|
|
15693
|
+
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15694
|
+
summary: summary
|
|
15695
|
+
})));
|
|
14796
15696
|
}
|
|
14797
15697
|
}]);
|
|
14798
15698
|
}(React$1.Component);
|
|
@@ -14924,8 +15824,8 @@ var getDetailMatchRoute = function getDetailMatchRoute(path, routeObj, hideRoute
|
|
|
14924
15824
|
return undefined;
|
|
14925
15825
|
};
|
|
14926
15826
|
|
|
14927
|
-
var css_248z$
|
|
14928
|
-
styleInject(css_248z$
|
|
15827
|
+
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";
|
|
15828
|
+
styleInject(css_248z$f);
|
|
14929
15829
|
|
|
14930
15830
|
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";
|
|
14931
15831
|
|
|
@@ -14939,15 +15839,15 @@ var deleteIcon = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
14939
15839
|
|
|
14940
15840
|
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";
|
|
14941
15841
|
|
|
14942
|
-
var css_248z$
|
|
14943
|
-
styleInject(css_248z$
|
|
15842
|
+
var css_248z$g = "";
|
|
15843
|
+
styleInject(css_248z$g);
|
|
14944
15844
|
|
|
14945
|
-
var _excluded$
|
|
15845
|
+
var _excluded$c = ["message", "type"];
|
|
14946
15846
|
var CommonAlert = (function (props) {
|
|
14947
15847
|
var message = props.message,
|
|
14948
15848
|
_props$type = props.type,
|
|
14949
15849
|
type = _props$type === void 0 ? 'info' : _props$type,
|
|
14950
|
-
reset = _objectWithoutProperties(props, _excluded$
|
|
15850
|
+
reset = _objectWithoutProperties(props, _excluded$c);
|
|
14951
15851
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
14952
15852
|
style: {
|
|
14953
15853
|
width: '100%',
|
|
@@ -14968,7 +15868,7 @@ var CommonAlert = (function (props) {
|
|
|
14968
15868
|
}, reset)));
|
|
14969
15869
|
});
|
|
14970
15870
|
|
|
14971
|
-
var _excluded$
|
|
15871
|
+
var _excluded$d = ["children"];
|
|
14972
15872
|
var iconMap = {
|
|
14973
15873
|
edit: /*#__PURE__*/React$1.createElement("img", {
|
|
14974
15874
|
src: editIcon
|
|
@@ -14990,7 +15890,7 @@ var index$3 = (function (props) {
|
|
|
14990
15890
|
_useState2 = _slicedToArray(_useState, 1),
|
|
14991
15891
|
id = _useState2[0];
|
|
14992
15892
|
var children = props.children,
|
|
14993
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
15893
|
+
restProps = _objectWithoutProperties(props, _excluded$d);
|
|
14994
15894
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
14995
15895
|
id: id,
|
|
14996
15896
|
className: 'detail_page_wrapper'
|
|
@@ -15213,10 +16113,10 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15213
16113
|
return true;
|
|
15214
16114
|
});
|
|
15215
16115
|
|
|
15216
|
-
var css_248z$
|
|
15217
|
-
styleInject(css_248z$
|
|
16116
|
+
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";
|
|
16117
|
+
styleInject(css_248z$h);
|
|
15218
16118
|
|
|
15219
|
-
var _excluded$
|
|
16119
|
+
var _excluded$e = ["children"];
|
|
15220
16120
|
var index$4 = (function (props) {
|
|
15221
16121
|
var _useLocation = useLocation(),
|
|
15222
16122
|
pathname = _useLocation.pathname;
|
|
@@ -15224,7 +16124,7 @@ var index$4 = (function (props) {
|
|
|
15224
16124
|
_useState2 = _slicedToArray(_useState, 1),
|
|
15225
16125
|
id = _useState2[0];
|
|
15226
16126
|
var children = props.children,
|
|
15227
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
16127
|
+
restProps = _objectWithoutProperties(props, _excluded$e);
|
|
15228
16128
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
15229
16129
|
id: id,
|
|
15230
16130
|
className: 'home_page_wrapper'
|
|
@@ -15298,10 +16198,10 @@ var HeaderWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15298
16198
|
return true;
|
|
15299
16199
|
});
|
|
15300
16200
|
|
|
15301
|
-
var css_248z$
|
|
15302
|
-
styleInject(css_248z$
|
|
16201
|
+
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";
|
|
16202
|
+
styleInject(css_248z$i);
|
|
15303
16203
|
|
|
15304
|
-
var _excluded$
|
|
16204
|
+
var _excluded$f = ["className", "style"];
|
|
15305
16205
|
var DragHandle$2 = SortableHandle(function () {
|
|
15306
16206
|
return /*#__PURE__*/React$1.createElement("img", {
|
|
15307
16207
|
width: 25,
|
|
@@ -15739,7 +16639,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15739
16639
|
_this.DraggableBodyRow = function (_ref2) {
|
|
15740
16640
|
var className = _ref2.className,
|
|
15741
16641
|
style = _ref2.style,
|
|
15742
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
16642
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$f);
|
|
15743
16643
|
var sortDataSource = _this.state.sortDataSource;
|
|
15744
16644
|
// function findIndex base on Table rowKey props and should always be a right array index
|
|
15745
16645
|
var index = sortDataSource.findIndex(function (x) {
|
|
@@ -16109,7 +17009,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16109
17009
|
}]);
|
|
16110
17010
|
}(React$1.Component);
|
|
16111
17011
|
|
|
16112
|
-
var _excluded$
|
|
17012
|
+
var _excluded$g = ["className", "style"];
|
|
16113
17013
|
var DragHandle$3 = SortableHandle(function () {
|
|
16114
17014
|
return /*#__PURE__*/React$1.createElement("img", {
|
|
16115
17015
|
width: 25,
|
|
@@ -16362,7 +17262,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16362
17262
|
_this.DraggableBodyRow = function (_ref2) {
|
|
16363
17263
|
var className = _ref2.className,
|
|
16364
17264
|
style = _ref2.style,
|
|
16365
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
17265
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$g);
|
|
16366
17266
|
var sortDataSource = _this.state.sortDataSource;
|
|
16367
17267
|
var index = sortDataSource.findIndex(function (x) {
|
|
16368
17268
|
return x.name === restProps['data-row-key'];
|
|
@@ -16658,16 +17558,16 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16658
17558
|
}]);
|
|
16659
17559
|
}(React$1.Component);
|
|
16660
17560
|
|
|
16661
|
-
var css_248z$
|
|
16662
|
-
styleInject(css_248z$
|
|
17561
|
+
var css_248z$j = "#bs-sula-query-table .ant-table-title + .ant-table-container table {\n visibility: unset !important;\n}\n";
|
|
17562
|
+
styleInject(css_248z$j);
|
|
16663
17563
|
|
|
16664
|
-
var _excluded$
|
|
17564
|
+
var _excluded$h = ["onResize", "width"];
|
|
16665
17565
|
var MemoQueryTable = /*#__PURE__*/React$1.memo(QueryTable);
|
|
16666
17566
|
var Text$2 = Typography.Text;
|
|
16667
17567
|
var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
16668
17568
|
var onResize = props.onResize,
|
|
16669
17569
|
width = props.width,
|
|
16670
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
17570
|
+
restProps = _objectWithoutProperties(props, _excluded$h);
|
|
16671
17571
|
var _useState = useState(width),
|
|
16672
17572
|
_useState2 = _slicedToArray(_useState, 2),
|
|
16673
17573
|
innerWidth = _useState2[0],
|
|
@@ -17385,8 +18285,8 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17385
18285
|
})));
|
|
17386
18286
|
});
|
|
17387
18287
|
|
|
17388
|
-
var css_248z$
|
|
17389
|
-
styleInject(css_248z$
|
|
18288
|
+
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";
|
|
18289
|
+
styleInject(css_248z$k);
|
|
17390
18290
|
|
|
17391
18291
|
var cache = {};
|
|
17392
18292
|
var cacheLimit = 10000;
|
|
@@ -17642,8 +18542,8 @@ var AllFunc = function AllFunc(props) {
|
|
|
17642
18542
|
})))));
|
|
17643
18543
|
};
|
|
17644
18544
|
|
|
17645
|
-
var css_248z$
|
|
17646
|
-
styleInject(css_248z$
|
|
18545
|
+
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";
|
|
18546
|
+
styleInject(css_248z$l);
|
|
17647
18547
|
|
|
17648
18548
|
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";
|
|
17649
18549
|
|
|
@@ -17851,8 +18751,8 @@ var i18n = {
|
|
|
17851
18751
|
}
|
|
17852
18752
|
};
|
|
17853
18753
|
|
|
17854
|
-
var css_248z$
|
|
17855
|
-
styleInject(css_248z$
|
|
18754
|
+
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";
|
|
18755
|
+
styleInject(css_248z$m);
|
|
17856
18756
|
|
|
17857
18757
|
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";
|
|
17858
18758
|
|
|
@@ -18382,8 +19282,8 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
18382
19282
|
}))))));
|
|
18383
19283
|
};
|
|
18384
19284
|
|
|
18385
|
-
var css_248z$
|
|
18386
|
-
styleInject(css_248z$
|
|
19285
|
+
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";
|
|
19286
|
+
styleInject(css_248z$n);
|
|
18387
19287
|
|
|
18388
19288
|
var judgeIsEmpty$2 = function judgeIsEmpty(value) {
|
|
18389
19289
|
if (value == null || value == undefined || String(value).trim() == '') {
|
|
@@ -18539,8 +19439,8 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18539
19439
|
|
|
18540
19440
|
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";
|
|
18541
19441
|
|
|
18542
|
-
var css_248z$
|
|
18543
|
-
styleInject(css_248z$
|
|
19442
|
+
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";
|
|
19443
|
+
styleInject(css_248z$o);
|
|
18544
19444
|
|
|
18545
19445
|
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";
|
|
18546
19446
|
|
|
@@ -19167,8 +20067,8 @@ var MenuSetting = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19167
20067
|
}));
|
|
19168
20068
|
});
|
|
19169
20069
|
|
|
19170
|
-
var css_248z$
|
|
19171
|
-
styleInject(css_248z$
|
|
20070
|
+
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";
|
|
20071
|
+
styleInject(css_248z$p);
|
|
19172
20072
|
|
|
19173
20073
|
var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
19174
20074
|
var isCollapse = _ref.isCollapse,
|
|
@@ -19304,8 +20204,8 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19304
20204
|
})));
|
|
19305
20205
|
});
|
|
19306
20206
|
|
|
19307
|
-
var css_248z$
|
|
19308
|
-
styleInject(css_248z$
|
|
20207
|
+
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";
|
|
20208
|
+
styleInject(css_248z$q);
|
|
19309
20209
|
|
|
19310
20210
|
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=";
|
|
19311
20211
|
|
|
@@ -19720,8 +20620,8 @@ var CustomerMenuHeader = function CustomerMenuHeader(_ref) {
|
|
|
19720
20620
|
})));
|
|
19721
20621
|
};
|
|
19722
20622
|
|
|
19723
|
-
var css_248z$
|
|
19724
|
-
styleInject(css_248z$
|
|
20623
|
+
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";
|
|
20624
|
+
styleInject(css_248z$r);
|
|
19725
20625
|
|
|
19726
20626
|
/*
|
|
19727
20627
|
* @Date: 2022-04-01 15:42:51
|
|
@@ -19744,7 +20644,7 @@ var NoFoundPage = function NoFoundPage(props) {
|
|
|
19744
20644
|
}));
|
|
19745
20645
|
};
|
|
19746
20646
|
|
|
19747
|
-
var _excluded$
|
|
20647
|
+
var _excluded$i = ["route"];
|
|
19748
20648
|
var TabPane = Tabs.TabPane;
|
|
19749
20649
|
var getId = function getId(str) {
|
|
19750
20650
|
// 找到最后一个 / 的位置
|
|
@@ -20685,7 +21585,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20685
21585
|
}); // 添加数据大屏
|
|
20686
21586
|
var _this$props3 = this.props,
|
|
20687
21587
|
route = _this$props3.route,
|
|
20688
|
-
restPrpos = _objectWithoutProperties(_this$props3, _excluded$
|
|
21588
|
+
restPrpos = _objectWithoutProperties(_this$props3, _excluded$i);
|
|
20689
21589
|
var exist = route.routes.find(function (route) {
|
|
20690
21590
|
return route.path === '/homePage/data-show';
|
|
20691
21591
|
});
|
|
@@ -21245,8 +22145,8 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
21245
22145
|
};
|
|
21246
22146
|
};
|
|
21247
22147
|
|
|
21248
|
-
var css_248z$
|
|
21249
|
-
styleInject(css_248z$
|
|
22148
|
+
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";
|
|
22149
|
+
styleInject(css_248z$s);
|
|
21250
22150
|
|
|
21251
22151
|
var useSticky = function useSticky(sticky) {
|
|
21252
22152
|
var _ref = _typeof(sticky) === 'object' ? sticky : {},
|
|
@@ -21658,10 +22558,10 @@ var index$6 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
21658
22558
|
}))))));
|
|
21659
22559
|
});
|
|
21660
22560
|
|
|
21661
|
-
var _excluded$
|
|
22561
|
+
var _excluded$j = ["children"];
|
|
21662
22562
|
var Drawer = (function (props) {
|
|
21663
22563
|
var children = props.children,
|
|
21664
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
22564
|
+
restProps = _objectWithoutProperties(props, _excluded$j);
|
|
21665
22565
|
return /*#__PURE__*/React$1.createElement(Drawer$1, _objectSpread2({
|
|
21666
22566
|
mask: true,
|
|
21667
22567
|
closable: false,
|
|
@@ -27481,8 +28381,8 @@ var nameRender = (function (data) {
|
|
|
27481
28381
|
}, " ");
|
|
27482
28382
|
});
|
|
27483
28383
|
|
|
27484
|
-
var css_248z$
|
|
27485
|
-
styleInject(css_248z$
|
|
28384
|
+
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";
|
|
28385
|
+
styleInject(css_248z$t);
|
|
27486
28386
|
|
|
27487
28387
|
function parseData(data) {
|
|
27488
28388
|
var res;
|
|
@@ -27693,8 +28593,8 @@ function registerSuggestions(monaco) {
|
|
|
27693
28593
|
});
|
|
27694
28594
|
}
|
|
27695
28595
|
|
|
27696
|
-
var css_248z$
|
|
27697
|
-
styleInject(css_248z$
|
|
28596
|
+
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";
|
|
28597
|
+
styleInject(css_248z$u);
|
|
27698
28598
|
|
|
27699
28599
|
var Title = Typography.Title;
|
|
27700
28600
|
var STRTEMP = 'const config = ';
|
|
@@ -27888,7 +28788,7 @@ var Editor = (function (props) {
|
|
|
27888
28788
|
}, [shallowHeight]);
|
|
27889
28789
|
var hasConfigTree = type !== 'editor';
|
|
27890
28790
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
27891
|
-
className: isFull ? css_248z$
|
|
28791
|
+
className: isFull ? css_248z$u.editorWrapper : ''
|
|
27892
28792
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
27893
28793
|
style: {
|
|
27894
28794
|
overflow: 'hidden'
|
|
@@ -27956,7 +28856,7 @@ var Editor = (function (props) {
|
|
|
27956
28856
|
})), hasConfigTree && /*#__PURE__*/React$1.createElement(Col, {
|
|
27957
28857
|
span: 8
|
|
27958
28858
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
27959
|
-
className: css_248z$
|
|
28859
|
+
className: css_248z$u.title
|
|
27960
28860
|
}, "\u5C5E\u6027\u8282\u70B9\u6811"), /*#__PURE__*/React$1.createElement(ConfigTree, {
|
|
27961
28861
|
style: {
|
|
27962
28862
|
height: 'calc(100vh - 300px)',
|
|
@@ -29837,8 +30737,8 @@ var FieldsSettingsTable = (function (props) {
|
|
|
29837
30737
|
})), fieldsModify.visible && /*#__PURE__*/React$1.createElement(FieldsModifyModal, _objectSpread2({}, fieldsModify)));
|
|
29838
30738
|
});
|
|
29839
30739
|
|
|
29840
|
-
var css_248z$
|
|
29841
|
-
styleInject(css_248z$
|
|
30740
|
+
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";
|
|
30741
|
+
styleInject(css_248z$v);
|
|
29842
30742
|
|
|
29843
30743
|
function iterFileds(fields) {
|
|
29844
30744
|
var filedsValue = [];
|
|
@@ -30440,7 +31340,7 @@ var formatListName = function formatListName(list, columns) {
|
|
|
30440
31340
|
});
|
|
30441
31341
|
};
|
|
30442
31342
|
|
|
30443
|
-
var _excluded$
|
|
31343
|
+
var _excluded$k = ["sorter"];
|
|
30444
31344
|
/**
|
|
30445
31345
|
* 删掉查询条件的qp- 和 -eq等
|
|
30446
31346
|
* @param {object} data
|
|
@@ -30523,7 +31423,7 @@ var remoteFetch = function remoteFetch(requestConfig, coloumns) {
|
|
|
30523
31423
|
var _requestConfig$method;
|
|
30524
31424
|
var params = _ref.params;
|
|
30525
31425
|
var sorter = params.sorter,
|
|
30526
|
-
paramsTemp = _objectWithoutProperties(params, _excluded$
|
|
31426
|
+
paramsTemp = _objectWithoutProperties(params, _excluded$k);
|
|
30527
31427
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, requestConfig.params), requestConfig.body), _.omit(paramsTemp, ['filters', 'current'])), (paramsTemp === null || paramsTemp === void 0 ? void 0 : paramsTemp.filters) || {}), {
|
|
30528
31428
|
currentPage: (paramsTemp === null || paramsTemp === void 0 ? void 0 : paramsTemp.currentPage) || paramsTemp.current || 1
|
|
30529
31429
|
});
|
|
@@ -31378,8 +32278,8 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
31378
32278
|
});
|
|
31379
32279
|
};
|
|
31380
32280
|
|
|
31381
|
-
var css_248z$
|
|
31382
|
-
styleInject(css_248z$
|
|
32281
|
+
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";
|
|
32282
|
+
styleInject(css_248z$w);
|
|
31383
32283
|
|
|
31384
32284
|
// 查询规则对象属性thresholdList
|
|
31385
32285
|
function getRegularThresholdRange(_x) {
|
|
@@ -31814,7 +32714,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
31814
32714
|
}
|
|
31815
32715
|
callback(values, valueNames);
|
|
31816
32716
|
},
|
|
31817
|
-
|
|
32717
|
+
highestPopContainer: function highestPopContainer() {
|
|
31818
32718
|
return document.body;
|
|
31819
32719
|
}
|
|
31820
32720
|
}), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
@@ -31847,27 +32747,29 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
31847
32747
|
}
|
|
31848
32748
|
callback(values, valueNames);
|
|
31849
32749
|
},
|
|
31850
|
-
|
|
32750
|
+
highestPopContainer: function highestPopContainer() {
|
|
31851
32751
|
return document.body;
|
|
31852
32752
|
}
|
|
31853
32753
|
}));
|
|
31854
32754
|
} else {
|
|
31855
32755
|
var _values;
|
|
31856
|
-
var currentValue = dataInputBusinessType === 12 ? ((_values = values) === null || _values === void 0 ? void 0 : _values.map(function (s, vIndex) {
|
|
32756
|
+
var currentValue = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values = values) === null || _values === void 0 ? void 0 : _values.map(function (s, vIndex) {
|
|
31857
32757
|
return {
|
|
31858
32758
|
key: s,
|
|
31859
|
-
label: valueNames[vIndex]
|
|
32759
|
+
label: valueNames[vIndex],
|
|
32760
|
+
value: s
|
|
31860
32761
|
};
|
|
31861
32762
|
})) || [] : values[0] && {
|
|
31862
32763
|
key: values[0],
|
|
31863
|
-
label: valueNames[0]
|
|
32764
|
+
label: valueNames[0],
|
|
32765
|
+
value: values[0]
|
|
31864
32766
|
} || {};
|
|
31865
32767
|
return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
31866
32768
|
selectBusinessType: "physicalWarehouse",
|
|
31867
32769
|
selectProps: _objectSpread2({
|
|
31868
32770
|
style: styleCommon,
|
|
31869
32771
|
placeholder: '请选择物理仓'
|
|
31870
|
-
}, dataInputBusinessType === 12 ? {
|
|
32772
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
31871
32773
|
mode: 'multiple',
|
|
31872
32774
|
maxTagCount: 1
|
|
31873
32775
|
} : {}),
|
|
@@ -31879,7 +32781,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
31879
32781
|
filterInit: 'qp-physicalWarehouseCode-in'
|
|
31880
32782
|
},
|
|
31881
32783
|
onChange: function onChange(value) {
|
|
31882
|
-
if (dataInputBusinessType === 12) {
|
|
32784
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
31883
32785
|
values = value.map(function (i) {
|
|
31884
32786
|
return i.key;
|
|
31885
32787
|
}) || [];
|
|
@@ -31892,7 +32794,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
31892
32794
|
}
|
|
31893
32795
|
callback(values, valueNames);
|
|
31894
32796
|
},
|
|
31895
|
-
|
|
32797
|
+
highestPopContainer: function highestPopContainer() {
|
|
31896
32798
|
return document.body;
|
|
31897
32799
|
}
|
|
31898
32800
|
});
|
|
@@ -31931,7 +32833,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
31931
32833
|
}
|
|
31932
32834
|
callback(values, valueNames);
|
|
31933
32835
|
},
|
|
31934
|
-
|
|
32836
|
+
highestPopContainer: function highestPopContainer() {
|
|
31935
32837
|
return document.body;
|
|
31936
32838
|
}
|
|
31937
32839
|
}), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
@@ -31964,27 +32866,29 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
31964
32866
|
}
|
|
31965
32867
|
callback(values, valueNames);
|
|
31966
32868
|
},
|
|
31967
|
-
|
|
32869
|
+
highestPopContainer: function highestPopContainer() {
|
|
31968
32870
|
return document.body;
|
|
31969
32871
|
}
|
|
31970
32872
|
}));
|
|
31971
32873
|
} else {
|
|
31972
32874
|
var _values2;
|
|
31973
|
-
var _currentValue = dataInputBusinessType === 12 ? ((_values2 = values) === null || _values2 === void 0 ? void 0 : _values2.map(function (s, vIndex) {
|
|
32875
|
+
var _currentValue = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values2 = values) === null || _values2 === void 0 ? void 0 : _values2.map(function (s, vIndex) {
|
|
31974
32876
|
return {
|
|
31975
32877
|
key: s,
|
|
31976
|
-
label: valueNames[vIndex]
|
|
32878
|
+
label: valueNames[vIndex],
|
|
32879
|
+
value: s
|
|
31977
32880
|
};
|
|
31978
32881
|
})) || [] : values[0] && {
|
|
31979
32882
|
key: values[0],
|
|
31980
|
-
label: valueNames[0]
|
|
32883
|
+
label: valueNames[0],
|
|
32884
|
+
value: values[0]
|
|
31981
32885
|
} || {};
|
|
31982
32886
|
return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
31983
32887
|
selectBusinessType: "realWarehouse",
|
|
31984
32888
|
selectProps: _objectSpread2({
|
|
31985
32889
|
style: styleCommon,
|
|
31986
32890
|
placeholder: '请选择逻辑仓'
|
|
31987
|
-
}, dataInputBusinessType === 12 ? {
|
|
32891
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
31988
32892
|
mode: 'multiple',
|
|
31989
32893
|
maxTagCount: 1
|
|
31990
32894
|
} : {}),
|
|
@@ -31996,7 +32900,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
31996
32900
|
filterInit: 'qp-realWarehouseCode-in'
|
|
31997
32901
|
},
|
|
31998
32902
|
onChange: function onChange(value) {
|
|
31999
|
-
if (dataInputBusinessType === 12) {
|
|
32903
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
32000
32904
|
values = value.map(function (i) {
|
|
32001
32905
|
return i.key;
|
|
32002
32906
|
}) || [];
|
|
@@ -32009,7 +32913,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32009
32913
|
}
|
|
32010
32914
|
callback(values, valueNames);
|
|
32011
32915
|
},
|
|
32012
|
-
|
|
32916
|
+
highestPopContainer: function highestPopContainer() {
|
|
32013
32917
|
return document.body;
|
|
32014
32918
|
}
|
|
32015
32919
|
});
|
|
@@ -32048,7 +32952,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32048
32952
|
}
|
|
32049
32953
|
callback(values, valueNames);
|
|
32050
32954
|
},
|
|
32051
|
-
|
|
32955
|
+
highestPopContainer: function highestPopContainer() {
|
|
32052
32956
|
return document.body;
|
|
32053
32957
|
}
|
|
32054
32958
|
}), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
@@ -32081,27 +32985,29 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32081
32985
|
}
|
|
32082
32986
|
callback(values, valueNames);
|
|
32083
32987
|
},
|
|
32084
|
-
|
|
32988
|
+
highestPopContainer: function highestPopContainer() {
|
|
32085
32989
|
return document.body;
|
|
32086
32990
|
}
|
|
32087
32991
|
}));
|
|
32088
32992
|
} else {
|
|
32089
32993
|
var _values3;
|
|
32090
|
-
var _currentValue2 = dataInputBusinessType === 12 ? ((_values3 = values) === null || _values3 === void 0 ? void 0 : _values3.map(function (s, vIndex) {
|
|
32994
|
+
var _currentValue2 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values3 = values) === null || _values3 === void 0 ? void 0 : _values3.map(function (s, vIndex) {
|
|
32091
32995
|
return {
|
|
32092
32996
|
key: s,
|
|
32093
|
-
label: valueNames[vIndex]
|
|
32997
|
+
label: valueNames[vIndex],
|
|
32998
|
+
value: s
|
|
32094
32999
|
};
|
|
32095
33000
|
})) || [] : values[0] && {
|
|
32096
33001
|
key: values[0],
|
|
32097
|
-
label: valueNames[0]
|
|
33002
|
+
label: valueNames[0],
|
|
33003
|
+
value: values[0]
|
|
32098
33004
|
} || {};
|
|
32099
33005
|
return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
32100
33006
|
selectBusinessType: "virtualWarehouse",
|
|
32101
33007
|
selectProps: _objectSpread2({
|
|
32102
33008
|
style: styleCommon,
|
|
32103
33009
|
placeholder: '请选择虚拟仓'
|
|
32104
|
-
}, dataInputBusinessType === 12 ? {
|
|
33010
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
32105
33011
|
mode: 'multiple',
|
|
32106
33012
|
maxTagCount: 1
|
|
32107
33013
|
} : {}),
|
|
@@ -32113,7 +33019,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32113
33019
|
filterInit: 'qp-virtualWarehouseCode-in'
|
|
32114
33020
|
},
|
|
32115
33021
|
onChange: function onChange(value) {
|
|
32116
|
-
if (dataInputBusinessType === 12) {
|
|
33022
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
32117
33023
|
values = value.map(function (i) {
|
|
32118
33024
|
return i.key;
|
|
32119
33025
|
}) || [];
|
|
@@ -32126,7 +33032,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32126
33032
|
}
|
|
32127
33033
|
callback(values, valueNames);
|
|
32128
33034
|
},
|
|
32129
|
-
|
|
33035
|
+
highestPopContainer: function highestPopContainer() {
|
|
32130
33036
|
return document.body;
|
|
32131
33037
|
}
|
|
32132
33038
|
});
|
|
@@ -32198,27 +33104,29 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32198
33104
|
}
|
|
32199
33105
|
callback(values, valueNames);
|
|
32200
33106
|
},
|
|
32201
|
-
|
|
33107
|
+
highestPopContainer: function highestPopContainer() {
|
|
32202
33108
|
return document.body;
|
|
32203
33109
|
}
|
|
32204
33110
|
}));
|
|
32205
33111
|
} else {
|
|
32206
33112
|
var _values4;
|
|
32207
|
-
var _currentValue3 = dataInputBusinessType === 12 ? ((_values4 = values) === null || _values4 === void 0 ? void 0 : _values4.map(function (s, vIndex) {
|
|
33113
|
+
var _currentValue3 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values4 = values) === null || _values4 === void 0 ? void 0 : _values4.map(function (s, vIndex) {
|
|
32208
33114
|
return {
|
|
32209
33115
|
key: s,
|
|
32210
|
-
label: valueNames[vIndex]
|
|
33116
|
+
label: valueNames[vIndex],
|
|
33117
|
+
value: s
|
|
32211
33118
|
};
|
|
32212
33119
|
})) || [] : values[0] && {
|
|
32213
33120
|
key: values[0],
|
|
32214
|
-
label: valueNames[0]
|
|
33121
|
+
label: valueNames[0],
|
|
33122
|
+
value: values[0]
|
|
32215
33123
|
} || {};
|
|
32216
33124
|
return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
32217
33125
|
selectBusinessType: "channelWarehouse",
|
|
32218
33126
|
selectProps: _objectSpread2({
|
|
32219
33127
|
style: styleCommon,
|
|
32220
33128
|
placeholder: '请选择渠道仓'
|
|
32221
|
-
}, dataInputBusinessType === 12 ? {
|
|
33129
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
32222
33130
|
mode: 'multiple',
|
|
32223
33131
|
maxTagCount: 1
|
|
32224
33132
|
} : {}),
|
|
@@ -32230,7 +33138,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32230
33138
|
filterInit: 'qp-channelWarehouseCode-in'
|
|
32231
33139
|
},
|
|
32232
33140
|
onChange: function onChange(value) {
|
|
32233
|
-
if (dataInputBusinessType === 12) {
|
|
33141
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
32234
33142
|
values = value.map(function (i) {
|
|
32235
33143
|
return i.key;
|
|
32236
33144
|
}) || [];
|
|
@@ -32243,7 +33151,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32243
33151
|
}
|
|
32244
33152
|
callback(values, valueNames);
|
|
32245
33153
|
},
|
|
32246
|
-
|
|
33154
|
+
highestPopContainer: function highestPopContainer() {
|
|
32247
33155
|
return document.body;
|
|
32248
33156
|
}
|
|
32249
33157
|
});
|
|
@@ -32281,7 +33189,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32281
33189
|
}
|
|
32282
33190
|
callback(values, valueNames);
|
|
32283
33191
|
},
|
|
32284
|
-
|
|
33192
|
+
highestPopContainer: function highestPopContainer() {
|
|
32285
33193
|
return document.body;
|
|
32286
33194
|
}
|
|
32287
33195
|
}), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
@@ -32313,27 +33221,29 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32313
33221
|
}
|
|
32314
33222
|
callback(values, valueNames);
|
|
32315
33223
|
},
|
|
32316
|
-
|
|
33224
|
+
highestPopContainer: function highestPopContainer() {
|
|
32317
33225
|
return document.body;
|
|
32318
33226
|
}
|
|
32319
33227
|
}));
|
|
32320
33228
|
} else {
|
|
32321
33229
|
var _values5;
|
|
32322
|
-
var _currentValue4 = dataInputBusinessType === 12 ? ((_values5 = values) === null || _values5 === void 0 ? void 0 : _values5.map(function (s, vIndex) {
|
|
33230
|
+
var _currentValue4 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values5 = values) === null || _values5 === void 0 ? void 0 : _values5.map(function (s, vIndex) {
|
|
32323
33231
|
return {
|
|
32324
33232
|
key: s,
|
|
32325
|
-
label: valueNames[vIndex]
|
|
33233
|
+
label: valueNames[vIndex],
|
|
33234
|
+
value: s
|
|
32326
33235
|
};
|
|
32327
33236
|
})) || [] : values[0] && {
|
|
32328
33237
|
key: values[0],
|
|
32329
|
-
label: valueNames[0]
|
|
33238
|
+
label: valueNames[0],
|
|
33239
|
+
value: values[0]
|
|
32330
33240
|
} || {};
|
|
32331
33241
|
return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
32332
33242
|
selectBusinessType: "spuCommodity",
|
|
32333
33243
|
selectProps: _objectSpread2({
|
|
32334
33244
|
style: styleCommon,
|
|
32335
33245
|
placeholder: '请选择SPU'
|
|
32336
|
-
}, dataInputBusinessType === 12 ? {
|
|
33246
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
32337
33247
|
mode: 'multiple',
|
|
32338
33248
|
maxTagCount: 1
|
|
32339
33249
|
} : {}),
|
|
@@ -32344,7 +33254,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32344
33254
|
filterInit: 'qp-itemCode-in'
|
|
32345
33255
|
},
|
|
32346
33256
|
onChange: function onChange(value) {
|
|
32347
|
-
if (dataInputBusinessType === 12) {
|
|
33257
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
32348
33258
|
values = value.map(function (i) {
|
|
32349
33259
|
return i.key;
|
|
32350
33260
|
}) || [];
|
|
@@ -32357,7 +33267,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32357
33267
|
}
|
|
32358
33268
|
callback(values, valueNames);
|
|
32359
33269
|
},
|
|
32360
|
-
|
|
33270
|
+
highestPopContainer: function highestPopContainer() {
|
|
32361
33271
|
return document.body;
|
|
32362
33272
|
}
|
|
32363
33273
|
});
|
|
@@ -32433,21 +33343,23 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32433
33343
|
}));
|
|
32434
33344
|
} else {
|
|
32435
33345
|
var _values6;
|
|
32436
|
-
var _currentValue5 = dataInputBusinessType === 12 ? ((_values6 = values) === null || _values6 === void 0 ? void 0 : _values6.map(function (s, vIndex) {
|
|
33346
|
+
var _currentValue5 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values6 = values) === null || _values6 === void 0 ? void 0 : _values6.map(function (s, vIndex) {
|
|
32437
33347
|
return {
|
|
32438
33348
|
key: s,
|
|
32439
|
-
label: valueNames[vIndex]
|
|
33349
|
+
label: valueNames[vIndex],
|
|
33350
|
+
value: s
|
|
32440
33351
|
};
|
|
32441
33352
|
})) || [] : values[0] && {
|
|
32442
33353
|
key: values[0],
|
|
32443
|
-
label: valueNames[0]
|
|
33354
|
+
label: valueNames[0],
|
|
33355
|
+
value: values[0]
|
|
32444
33356
|
} || {};
|
|
32445
33357
|
return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
32446
33358
|
selectBusinessType: "skuCommodity",
|
|
32447
33359
|
selectProps: _objectSpread2({
|
|
32448
33360
|
style: styleCommon,
|
|
32449
33361
|
placeholder: '请选择商品'
|
|
32450
|
-
}, dataInputBusinessType === 12 ? {
|
|
33362
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
32451
33363
|
mode: 'multiple',
|
|
32452
33364
|
maxTagCount: 1
|
|
32453
33365
|
} : {}),
|
|
@@ -32458,7 +33370,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32458
33370
|
filterInit: 'qp-skuCode-in'
|
|
32459
33371
|
},
|
|
32460
33372
|
onChange: function onChange(value) {
|
|
32461
|
-
if (dataInputBusinessType === 12) {
|
|
33373
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
32462
33374
|
values = value.map(function (i) {
|
|
32463
33375
|
return i.key;
|
|
32464
33376
|
}) || [];
|
|
@@ -32471,7 +33383,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32471
33383
|
}
|
|
32472
33384
|
callback(values, valueNames);
|
|
32473
33385
|
},
|
|
32474
|
-
|
|
33386
|
+
highestPopContainer: function highestPopContainer() {
|
|
32475
33387
|
return document.body;
|
|
32476
33388
|
}
|
|
32477
33389
|
});
|
|
@@ -32912,7 +33824,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32912
33824
|
}
|
|
32913
33825
|
callback(values, valueNames);
|
|
32914
33826
|
},
|
|
32915
|
-
|
|
33827
|
+
highestPopContainer: function highestPopContainer() {
|
|
32916
33828
|
return document.body;
|
|
32917
33829
|
}
|
|
32918
33830
|
}), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
@@ -32944,27 +33856,29 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32944
33856
|
}
|
|
32945
33857
|
callback(values, valueNames);
|
|
32946
33858
|
},
|
|
32947
|
-
|
|
33859
|
+
highestPopContainer: function highestPopContainer() {
|
|
32948
33860
|
return document.body;
|
|
32949
33861
|
}
|
|
32950
33862
|
}));
|
|
32951
33863
|
} else {
|
|
32952
33864
|
var _values7;
|
|
32953
|
-
var _currentValue6 = dataInputBusinessType === 12 ? ((_values7 = values) === null || _values7 === void 0 ? void 0 : _values7.map(function (s, vIndex) {
|
|
33865
|
+
var _currentValue6 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values7 = values) === null || _values7 === void 0 ? void 0 : _values7.map(function (s, vIndex) {
|
|
32954
33866
|
return {
|
|
32955
33867
|
key: s,
|
|
32956
|
-
label: valueNames[vIndex]
|
|
33868
|
+
label: valueNames[vIndex],
|
|
33869
|
+
value: s
|
|
32957
33870
|
};
|
|
32958
33871
|
})) || [] : values[0] && {
|
|
32959
33872
|
key: values[0],
|
|
32960
|
-
label: valueNames[0]
|
|
33873
|
+
label: valueNames[0],
|
|
33874
|
+
value: values[0]
|
|
32961
33875
|
} || {};
|
|
32962
33876
|
return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
32963
33877
|
selectBusinessType: "supplier2",
|
|
32964
33878
|
selectProps: _objectSpread2({
|
|
32965
33879
|
style: styleCommon,
|
|
32966
33880
|
placeholder: '请选择供应商'
|
|
32967
|
-
}, dataInputBusinessType === 12 ? {
|
|
33881
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
32968
33882
|
mode: 'multiple',
|
|
32969
33883
|
maxTagCount: 1
|
|
32970
33884
|
} : {}),
|
|
@@ -32975,7 +33889,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32975
33889
|
filterInit: 'qp-code-in'
|
|
32976
33890
|
},
|
|
32977
33891
|
onChange: function onChange(value) {
|
|
32978
|
-
if (dataInputBusinessType === 12) {
|
|
33892
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
32979
33893
|
values = value.map(function (i) {
|
|
32980
33894
|
return i.key;
|
|
32981
33895
|
}) || [];
|
|
@@ -32988,7 +33902,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32988
33902
|
}
|
|
32989
33903
|
callback(values, valueNames);
|
|
32990
33904
|
},
|
|
32991
|
-
|
|
33905
|
+
highestPopContainer: function highestPopContainer() {
|
|
32992
33906
|
return document.body;
|
|
32993
33907
|
}
|
|
32994
33908
|
});
|
|
@@ -33064,21 +33978,23 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33064
33978
|
}));
|
|
33065
33979
|
} else {
|
|
33066
33980
|
var _values8;
|
|
33067
|
-
var _currentValue7 = dataInputBusinessType === 12 ? ((_values8 = values) === null || _values8 === void 0 ? void 0 : _values8.map(function (s, vIndex) {
|
|
33981
|
+
var _currentValue7 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values8 = values) === null || _values8 === void 0 ? void 0 : _values8.map(function (s, vIndex) {
|
|
33068
33982
|
return {
|
|
33069
33983
|
key: s,
|
|
33070
|
-
label: valueNames[vIndex]
|
|
33984
|
+
label: valueNames[vIndex],
|
|
33985
|
+
value: s
|
|
33071
33986
|
};
|
|
33072
33987
|
})) || [] : values[0] && {
|
|
33073
33988
|
key: values[0],
|
|
33074
|
-
label: valueNames[0]
|
|
33989
|
+
label: valueNames[0],
|
|
33990
|
+
value: values[0]
|
|
33075
33991
|
} || {};
|
|
33076
33992
|
return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
33077
33993
|
selectBusinessType: "customer2",
|
|
33078
33994
|
selectProps: _objectSpread2({
|
|
33079
33995
|
style: styleCommon,
|
|
33080
33996
|
placeholder: '请选择客户'
|
|
33081
|
-
}, dataInputBusinessType === 12 ? {
|
|
33997
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
33082
33998
|
mode: 'multiple',
|
|
33083
33999
|
maxTagCount: 1
|
|
33084
34000
|
} : {}),
|
|
@@ -33089,7 +34005,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33089
34005
|
filterInit: 'qp-code-in'
|
|
33090
34006
|
},
|
|
33091
34007
|
onChange: function onChange(value) {
|
|
33092
|
-
if (dataInputBusinessType === 12) {
|
|
34008
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
33093
34009
|
values = value.map(function (i) {
|
|
33094
34010
|
return i.key;
|
|
33095
34011
|
}) || [];
|
|
@@ -33102,7 +34018,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33102
34018
|
}
|
|
33103
34019
|
callback(values, valueNames);
|
|
33104
34020
|
},
|
|
33105
|
-
|
|
34021
|
+
highestPopContainer: function highestPopContainer() {
|
|
33106
34022
|
return document.body;
|
|
33107
34023
|
}
|
|
33108
34024
|
});
|
|
@@ -33178,21 +34094,23 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33178
34094
|
}));
|
|
33179
34095
|
} else {
|
|
33180
34096
|
var _values9;
|
|
33181
|
-
var _currentValue8 = dataInputBusinessType === 12 ? ((_values9 = values) === null || _values9 === void 0 ? void 0 : _values9.map(function (s, vIndex) {
|
|
34097
|
+
var _currentValue8 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values9 = values) === null || _values9 === void 0 ? void 0 : _values9.map(function (s, vIndex) {
|
|
33182
34098
|
return {
|
|
33183
34099
|
key: s,
|
|
33184
|
-
label: valueNames[vIndex]
|
|
34100
|
+
label: valueNames[vIndex],
|
|
34101
|
+
value: s
|
|
33185
34102
|
};
|
|
33186
34103
|
})) || [] : values[0] && {
|
|
33187
34104
|
key: values[0],
|
|
33188
|
-
label: valueNames[0]
|
|
34105
|
+
label: valueNames[0],
|
|
34106
|
+
value: values[0]
|
|
33189
34107
|
} || {};
|
|
33190
34108
|
return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
33191
34109
|
selectBusinessType: "shopFile2",
|
|
33192
34110
|
selectProps: _objectSpread2({
|
|
33193
34111
|
style: styleCommon,
|
|
33194
34112
|
placeholder: '请选择店铺'
|
|
33195
|
-
}, dataInputBusinessType === 12 ? {
|
|
34113
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
33196
34114
|
mode: 'multiple',
|
|
33197
34115
|
maxTagCount: 1
|
|
33198
34116
|
} : {}),
|
|
@@ -33203,7 +34121,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33203
34121
|
filterInit: 'qp-code-in'
|
|
33204
34122
|
},
|
|
33205
34123
|
onChange: function onChange(value) {
|
|
33206
|
-
if (dataInputBusinessType === 12) {
|
|
34124
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
33207
34125
|
values = value.map(function (i) {
|
|
33208
34126
|
return i.key;
|
|
33209
34127
|
}) || [];
|
|
@@ -33216,7 +34134,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33216
34134
|
}
|
|
33217
34135
|
callback(values, valueNames);
|
|
33218
34136
|
},
|
|
33219
|
-
|
|
34137
|
+
highestPopContainer: function highestPopContainer() {
|
|
33220
34138
|
return document.body;
|
|
33221
34139
|
}
|
|
33222
34140
|
});
|
|
@@ -33292,21 +34210,23 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33292
34210
|
}));
|
|
33293
34211
|
} else {
|
|
33294
34212
|
var _values10;
|
|
33295
|
-
var _currentValue9 = dataInputBusinessType === 12 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
|
|
34213
|
+
var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
|
|
33296
34214
|
return {
|
|
33297
34215
|
key: s,
|
|
33298
|
-
label: valueNames[vIndex]
|
|
34216
|
+
label: valueNames[vIndex],
|
|
34217
|
+
value: s
|
|
33299
34218
|
};
|
|
33300
34219
|
})) || [] : values[0] && {
|
|
33301
34220
|
key: values[0],
|
|
33302
|
-
label: valueNames[0]
|
|
34221
|
+
label: valueNames[0],
|
|
34222
|
+
value: values[0]
|
|
33303
34223
|
} || {};
|
|
33304
34224
|
return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
33305
34225
|
selectBusinessType: "employee2",
|
|
33306
34226
|
selectProps: _objectSpread2({
|
|
33307
34227
|
style: styleCommon,
|
|
33308
34228
|
placeholder: '请选择员工'
|
|
33309
|
-
}, dataInputBusinessType === 12 ? {
|
|
34229
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
33310
34230
|
mode: 'multiple',
|
|
33311
34231
|
maxTagCount: 1
|
|
33312
34232
|
} : {}),
|
|
@@ -33317,7 +34237,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33317
34237
|
filterInit: 'qp-id-in'
|
|
33318
34238
|
},
|
|
33319
34239
|
onChange: function onChange(value) {
|
|
33320
|
-
if (dataInputBusinessType === 12) {
|
|
34240
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
33321
34241
|
values = value.map(function (i) {
|
|
33322
34242
|
return i.key;
|
|
33323
34243
|
}) || [];
|
|
@@ -33330,7 +34250,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33330
34250
|
}
|
|
33331
34251
|
callback(values, valueNames);
|
|
33332
34252
|
},
|
|
33333
|
-
|
|
34253
|
+
highestPopContainer: function highestPopContainer() {
|
|
33334
34254
|
return document.body;
|
|
33335
34255
|
}
|
|
33336
34256
|
});
|
|
@@ -33569,21 +34489,23 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33569
34489
|
}));
|
|
33570
34490
|
} else {
|
|
33571
34491
|
var _values11;
|
|
33572
|
-
var _currentValue10 = dataInputBusinessType === 12 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
|
|
34492
|
+
var _currentValue10 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
|
|
33573
34493
|
return {
|
|
33574
34494
|
key: s,
|
|
33575
|
-
label: valueNames[vIndex]
|
|
34495
|
+
label: valueNames[vIndex],
|
|
34496
|
+
value: s
|
|
33576
34497
|
};
|
|
33577
34498
|
})) || [] : values[0] && {
|
|
33578
34499
|
key: values[0],
|
|
33579
|
-
label: valueNames[0]
|
|
34500
|
+
label: valueNames[0],
|
|
34501
|
+
value: values[0]
|
|
33580
34502
|
} || {};
|
|
33581
34503
|
return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
33582
34504
|
selectBusinessType: "deliveryMode",
|
|
33583
34505
|
selectProps: _objectSpread2({
|
|
33584
34506
|
style: styleCommon,
|
|
33585
34507
|
placeholder: '请选择配送方式'
|
|
33586
|
-
}, dataInputBusinessType === 12 ? {
|
|
34508
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
33587
34509
|
mode: 'multiple',
|
|
33588
34510
|
maxTagCount: 1
|
|
33589
34511
|
} : {}),
|
|
@@ -33594,7 +34516,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33594
34516
|
filterInit: 'qp-code-in'
|
|
33595
34517
|
},
|
|
33596
34518
|
onChange: function onChange(value) {
|
|
33597
|
-
if (dataInputBusinessType === 12) {
|
|
34519
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
33598
34520
|
values = value.map(function (i) {
|
|
33599
34521
|
return i.key;
|
|
33600
34522
|
}) || [];
|
|
@@ -33607,7 +34529,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33607
34529
|
}
|
|
33608
34530
|
callback(values, valueNames);
|
|
33609
34531
|
},
|
|
33610
|
-
|
|
34532
|
+
highestPopContainer: function highestPopContainer() {
|
|
33611
34533
|
return document.body;
|
|
33612
34534
|
}
|
|
33613
34535
|
});
|
|
@@ -33645,7 +34567,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33645
34567
|
}
|
|
33646
34568
|
callback(values, valueNames);
|
|
33647
34569
|
},
|
|
33648
|
-
|
|
34570
|
+
highestPopContainer: function highestPopContainer() {
|
|
33649
34571
|
return document.body;
|
|
33650
34572
|
}
|
|
33651
34573
|
}), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
@@ -33677,27 +34599,29 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33677
34599
|
}
|
|
33678
34600
|
callback(values, valueNames);
|
|
33679
34601
|
},
|
|
33680
|
-
|
|
34602
|
+
highestPopContainer: function highestPopContainer() {
|
|
33681
34603
|
return document.body;
|
|
33682
34604
|
}
|
|
33683
34605
|
}));
|
|
33684
34606
|
} else {
|
|
33685
34607
|
var _values12;
|
|
33686
|
-
var _currentValue11 = dataInputBusinessType === 12 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
|
|
34608
|
+
var _currentValue11 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
|
|
33687
34609
|
return {
|
|
33688
34610
|
key: s,
|
|
33689
|
-
label: valueNames[vIndex]
|
|
34611
|
+
label: valueNames[vIndex],
|
|
34612
|
+
value: s
|
|
33690
34613
|
};
|
|
33691
34614
|
})) || [] : values[0] && {
|
|
33692
34615
|
key: values[0],
|
|
33693
|
-
label: valueNames[0]
|
|
34616
|
+
label: valueNames[0],
|
|
34617
|
+
value: values[0]
|
|
33694
34618
|
} || {};
|
|
33695
34619
|
return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
33696
34620
|
selectBusinessType: "role",
|
|
33697
34621
|
selectProps: _objectSpread2({
|
|
33698
34622
|
style: styleCommon,
|
|
33699
34623
|
placeholder: '请选择角色'
|
|
33700
|
-
}, dataInputBusinessType === 12 ? {
|
|
34624
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
33701
34625
|
mode: 'multiple',
|
|
33702
34626
|
maxTagCount: 1
|
|
33703
34627
|
} : {}),
|
|
@@ -33708,7 +34632,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33708
34632
|
filterInit: 'qp-code-in'
|
|
33709
34633
|
},
|
|
33710
34634
|
onChange: function onChange(value) {
|
|
33711
|
-
if (dataInputBusinessType === 12) {
|
|
34635
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
33712
34636
|
values = value.map(function (i) {
|
|
33713
34637
|
return i.key;
|
|
33714
34638
|
}) || [];
|
|
@@ -33721,7 +34645,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33721
34645
|
}
|
|
33722
34646
|
callback(values, valueNames);
|
|
33723
34647
|
},
|
|
33724
|
-
|
|
34648
|
+
highestPopContainer: function highestPopContainer() {
|
|
33725
34649
|
return document.body;
|
|
33726
34650
|
}
|
|
33727
34651
|
});
|
|
@@ -33759,7 +34683,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33759
34683
|
}
|
|
33760
34684
|
callback(values, valueNames);
|
|
33761
34685
|
},
|
|
33762
|
-
|
|
34686
|
+
highestPopContainer: function highestPopContainer() {
|
|
33763
34687
|
return document.body;
|
|
33764
34688
|
}
|
|
33765
34689
|
}), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
@@ -33791,27 +34715,29 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33791
34715
|
}
|
|
33792
34716
|
callback(values, valueNames);
|
|
33793
34717
|
},
|
|
33794
|
-
|
|
34718
|
+
highestPopContainer: function highestPopContainer() {
|
|
33795
34719
|
return document.body;
|
|
33796
34720
|
}
|
|
33797
34721
|
}));
|
|
33798
34722
|
} else {
|
|
33799
34723
|
var _values13;
|
|
33800
|
-
var _currentValue12 = dataInputBusinessType === 12 ? ((_values13 = values) === null || _values13 === void 0 ? void 0 : _values13.map(function (s, vIndex) {
|
|
34724
|
+
var _currentValue12 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values13 = values) === null || _values13 === void 0 ? void 0 : _values13.map(function (s, vIndex) {
|
|
33801
34725
|
return {
|
|
33802
34726
|
key: s,
|
|
33803
|
-
label: valueNames[vIndex]
|
|
34727
|
+
label: valueNames[vIndex],
|
|
34728
|
+
value: s
|
|
33804
34729
|
};
|
|
33805
34730
|
})) || [] : values[0] && {
|
|
33806
34731
|
key: values[0],
|
|
33807
|
-
label: valueNames[0]
|
|
34732
|
+
label: valueNames[0],
|
|
34733
|
+
value: values[0]
|
|
33808
34734
|
} || {};
|
|
33809
34735
|
return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
33810
34736
|
selectBusinessType: "brand",
|
|
33811
34737
|
selectProps: _objectSpread2({
|
|
33812
34738
|
style: styleCommon,
|
|
33813
34739
|
placeholder: '请选择品牌'
|
|
33814
|
-
}, dataInputBusinessType === 12 ? {
|
|
34740
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
33815
34741
|
mode: 'multiple',
|
|
33816
34742
|
maxTagCount: 1
|
|
33817
34743
|
} : {}),
|
|
@@ -33822,7 +34748,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33822
34748
|
filterInit: 'qp-brandCode-in'
|
|
33823
34749
|
},
|
|
33824
34750
|
onChange: function onChange(value) {
|
|
33825
|
-
if (dataInputBusinessType === 12) {
|
|
34751
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
33826
34752
|
values = value.map(function (i) {
|
|
33827
34753
|
return i.key;
|
|
33828
34754
|
}) || [];
|
|
@@ -33835,7 +34761,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33835
34761
|
}
|
|
33836
34762
|
callback(values, valueNames);
|
|
33837
34763
|
},
|
|
33838
|
-
|
|
34764
|
+
highestPopContainer: function highestPopContainer() {
|
|
33839
34765
|
return document.body;
|
|
33840
34766
|
}
|
|
33841
34767
|
});
|
|
@@ -34284,7 +35210,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34284
35210
|
style: {
|
|
34285
35211
|
marginLeft: '10px'
|
|
34286
35212
|
},
|
|
34287
|
-
className: css_248z$
|
|
35213
|
+
className: css_248z$w.rule_field_style
|
|
34288
35214
|
}, this.renderConditionField());
|
|
34289
35215
|
}
|
|
34290
35216
|
}]);
|
|
@@ -34725,7 +35651,7 @@ var RuleField$1 = /*#__PURE__*/function (_Component) {
|
|
|
34725
35651
|
disabled = _this$props.disabled;
|
|
34726
35652
|
return /*#__PURE__*/React$1.createElement("div", null, ruleTypeData.map(function (i) {
|
|
34727
35653
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
34728
|
-
className: css_248z$
|
|
35654
|
+
className: css_248z$w.action_list_item
|
|
34729
35655
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
34730
35656
|
onClick: function onClick() {
|
|
34731
35657
|
return handleOperatingAction(i.code, 'view');
|
|
@@ -36672,8 +37598,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
36672
37598
|
}]);
|
|
36673
37599
|
}(Component);
|
|
36674
37600
|
|
|
36675
|
-
var css_248z$
|
|
36676
|
-
styleInject(css_248z$
|
|
37601
|
+
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";
|
|
37602
|
+
styleInject(css_248z$x);
|
|
36677
37603
|
|
|
36678
37604
|
var formatOperationList = function formatOperationList(data) {
|
|
36679
37605
|
var _result$find;
|
|
@@ -37406,13 +38332,13 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
37406
38332
|
return /*#__PURE__*/React$1.createElement(Spin, {
|
|
37407
38333
|
spinning: loading
|
|
37408
38334
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
37409
|
-
className: css_248z$
|
|
38335
|
+
className: css_248z$x.base_rule
|
|
37410
38336
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
37411
|
-
className: css_248z$
|
|
38337
|
+
className: css_248z$x.base_rule_content
|
|
37412
38338
|
}, /*#__PURE__*/React$1.createElement("p", {
|
|
37413
|
-
className: css_248z$
|
|
38339
|
+
className: css_248z$x.base_rule_line_title
|
|
37414
38340
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
37415
|
-
className: css_248z$
|
|
38341
|
+
className: css_248z$x.rule_title
|
|
37416
38342
|
}, (_handleDiff = handleDiff()) === null || _handleDiff === void 0 ? void 0 : _handleDiff.title), /*#__PURE__*/React$1.createElement("p", {
|
|
37417
38343
|
style: {
|
|
37418
38344
|
float: 'right'
|
|
@@ -37662,17 +38588,17 @@ var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
37662
38588
|
})));
|
|
37663
38589
|
});
|
|
37664
38590
|
|
|
37665
|
-
var css_248z$
|
|
37666
|
-
styleInject(css_248z$
|
|
38591
|
+
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";
|
|
38592
|
+
styleInject(css_248z$y);
|
|
37667
38593
|
|
|
37668
|
-
var _excluded$
|
|
38594
|
+
var _excluded$l = ["titleExtra", "header", "showArrow"];
|
|
37669
38595
|
var Panel = Collapse.Panel;
|
|
37670
38596
|
var ExtendedPanel = function ExtendedPanel(_ref) {
|
|
37671
38597
|
var titleExtra = _ref.titleExtra,
|
|
37672
38598
|
header = _ref.header,
|
|
37673
38599
|
_ref$showArrow = _ref.showArrow,
|
|
37674
38600
|
showArrow = _ref$showArrow === void 0 ? false : _ref$showArrow,
|
|
37675
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
38601
|
+
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
37676
38602
|
var renderHeader = function renderHeader() {
|
|
37677
38603
|
return /*#__PURE__*/React$1.createElement(Space, {
|
|
37678
38604
|
align: "center"
|
|
@@ -37696,11 +38622,11 @@ var ExtendedPanel = function ExtendedPanel(_ref) {
|
|
|
37696
38622
|
}), props.children);
|
|
37697
38623
|
};
|
|
37698
38624
|
|
|
37699
|
-
var _excluded$
|
|
38625
|
+
var _excluded$m = ["children", "bordered"];
|
|
37700
38626
|
var ExtendedCollapse = function ExtendedCollapse(props) {
|
|
37701
38627
|
var children = props.children,
|
|
37702
38628
|
bordered = props.bordered,
|
|
37703
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
38629
|
+
restProps = _objectWithoutProperties(props, _excluded$m);
|
|
37704
38630
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
37705
38631
|
className: classNames({
|
|
37706
38632
|
'bs-collapse-wrap': true,
|
|
@@ -37714,9 +38640,9 @@ var index$8 = Object.assign(ExtendedCollapse, {
|
|
|
37714
38640
|
Board: ExtendedPanel
|
|
37715
38641
|
});
|
|
37716
38642
|
|
|
37717
|
-
var css_248z$
|
|
38643
|
+
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";
|
|
37718
38644
|
var styles = {"paragraphCopyWrapper":"index-module_paragraphCopyWrapper__3rGOI","paragraphCopyLabel":"index-module_paragraphCopyLabel__1Qb8u","paragraphCopy":"index-module_paragraphCopy__1y7Jo"};
|
|
37719
|
-
styleInject(css_248z$
|
|
38645
|
+
styleInject(css_248z$z);
|
|
37720
38646
|
|
|
37721
38647
|
var Paragraph = Typography.Paragraph;
|
|
37722
38648
|
var Section = function Section(_ref) {
|
|
@@ -37810,4 +38736,4 @@ var ParagraphCopier = function ParagraphCopier(props) {
|
|
|
37810
38736
|
}, children));
|
|
37811
38737
|
};
|
|
37812
38738
|
|
|
37813
|
-
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 };
|
|
38739
|
+
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 };
|