@bit-sun/business-component 4.0.13-alpha.2 → 4.0.13-alpha.20
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/.umirc.ts +9 -9
- package/dist/components/Business/ItemPropertySelector/index.d.ts +3 -0
- package/dist/components/Functional/SearchSelect/utils.d.ts +4 -1
- package/dist/index.esm.js +518 -142
- package/dist/index.js +517 -141
- package/package.json +2 -1
- package/src/components/Business/BsSulaQueryTable/index.tsx +6 -6
- package/src/components/Business/BsSulaQueryTable/setting.tsx +3 -3
- package/src/components/Business/BsSulaQueryTable/utils.tsx +2 -1
- package/src/components/Business/CommodityEntry/index.tsx +11 -9
- package/src/components/Business/HomePageWrapper/index.less +1 -1
- package/src/components/Business/ItemPropertySelector/index.tsx +88 -0
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +200 -2
- package/src/components/Business/SearchSelect/index.md +3 -3
- package/src/components/Business/SearchSelect/utils.ts +1 -1
- package/src/components/Functional/QueryMutipleSelect/index.md +2 -3
- package/src/components/Functional/QueryMutipleSelect/index.tsx +2 -1
- package/src/components/Functional/SearchSelect/index.less +16 -6
- package/src/components/Functional/SearchSelect/index.tsx +61 -46
- package/src/components/Functional/SearchSelect/utils.tsx +46 -6
package/dist/index.esm.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
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, Tag, Select, Spin, Form, Table, Row, Col, Tabs, TreeSelect, Typography, Alert, Breadcrumb, Drawer as Drawer$1, List, Radio, Tree, Result, Affix, Cascader,
|
|
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, Empty, Row, Col, Tabs, TreeSelect, DatePicker, Typography, Alert, Breadcrumb, Drawer as Drawer$1, List, Radio, Tree, Result, Affix, Cascader, TimePicker, Divider, Switch, Collapse } from 'antd';
|
|
5
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
9
|
import React$1, { useState, useEffect, useRef, forwardRef, useImperativeHandle, useMemo, Component, Fragment, useLayoutEffect, createRef } from 'react';
|
|
10
|
+
import { renderToString as renderToString$1 } from 'react-dom/server';
|
|
10
11
|
import moment$1 from 'moment';
|
|
11
12
|
import { EyeOutlined, DeleteOutlined, EditOutlined, CopyOutlined, CloseSquareOutlined, WarningOutlined, SendOutlined, ProfileTwoTone, ExclamationCircleOutlined, DownOutlined, UnorderedListOutlined, DashOutlined, CaretUpOutlined, CaretDownOutlined, SearchOutlined, CloseCircleOutlined, DownCircleFilled, ArrowLeftOutlined, FolderOutlined, EllipsisOutlined, HomeOutlined, DoubleLeftOutlined, DoubleRightOutlined, MenuUnfoldOutlined, CaretLeftOutlined, SettingOutlined, BulbOutlined, PlayCircleOutlined, SaveOutlined, FullscreenExitOutlined, MinusCircleOutlined, PlusCircleOutlined } from '@ant-design/icons';
|
|
12
13
|
import { request as request$2, Table as Table$1, QueryTable, Form as Form$1 } from 'bssula';
|
|
@@ -1023,12 +1024,6 @@ styleInject(css_248z);
|
|
|
1023
1024
|
|
|
1024
1025
|
var noImg = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2244px%22%20height%3D%2244px%22%20viewBox%3D%220%200%2044%2044%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E8%92%99%E7%89%88%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Cpolygon%20id%3D%22path-1%22%20points%3D%22-1.56319402e-13%201.84741111e-13%2044%201.84741111e-13%2044%2044%20-1.56319402e-13%2044%22%3E%3C%2Fpolygon%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22%E5%88%97%E8%A1%A8%E5%8A%9F%E8%83%BD%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E6%98%9F%E6%BE%9C-%E6%90%9C%E7%B4%A2-%E6%90%9C%E7%B4%A2%E5%8A%9F%E8%83%BD%22%20transform%3D%22translate%28-354.000000%2C%20-672.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E5%88%97%E8%A1%A8%E4%B8%80%E5%A4%87%E4%BB%BD%22%20transform%3D%22translate%28240.000000%2C%20664.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E5%8D%95%E6%8D%AE%E7%BC%96%E5%8F%B7%22%20transform%3D%22translate%28106.000000%2C%200.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E5%BD%A2%E7%8A%B6%22%20transform%3D%22translate%288.000000%2C%208.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cmask%20id%3D%22mask-2%22%20fill%3D%22white%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fmask%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20id%3D%22%E8%92%99%E7%89%88%22%20fill%3D%22%23E6F3FF%22%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M28.4962332%2C15%20C29.4007284%2C15%2030.1339666%2C15.7383979%2030.1339666%2C16.6492578%20L30.1339666%2C27.5596481%20C30.1339666%2C28.4705081%2029.4007284%2C29.208906%2028.4962332%2C29.208906%20L14.6377334%2C29.208906%20C13.7332382%2C29.208906%2013%2C28.4705081%2013%2C27.5596481%20L13%2C16.6492578%20C13%2C15.7383979%2013.7332382%2C15%2014.6377334%2C15%20L28.4956873%2C15%20L28.4962332%2C15%20Z%20M28.4962332%2C16.6492578%20L14.6377334%2C16.6492578%20L14.6377334%2C27.5596481%20L28.4956873%2C27.5596481%20L28.4956873%2C16.6492578%20L28.4962332%2C16.6492578%20Z%20M26.6996397%2C18.6899395%20L26.6996397%2C20.3369983%20C24.5001638%2C20.357889%2023.12283%2C21.0967565%2022.4448084%2C22.5305113%20L22.3847582%2C22.6624519%20L22.3137897%2C22.8224299%20C21.2241511%2C25.1880154%2019.0819959%2C26.322155%2016.0560105%2C26.1940627%20L16.243258%2C26.2001099%20L16.2443498%2C24.5508521%20C18.5633803%2C24.6206707%2020.0357026%2C23.8290269%2020.8190851%2C22.1473337%20L20.8824107%2C22.006597%20L20.9479201%2C21.8603628%20C21.9158205%2C19.7680044%2023.8767333%2C18.7196262%2026.6996397%2C18.6899395%20L26.6996397%2C18.6899395%20Z%20M17.5583579%2C18.3435954%20C18.1149239%2C18.3435954%2018.5661099%2C18.7979562%2018.5661099%2C19.3584387%20C18.5661099%2C19.9189212%2018.1149239%2C20.373282%2017.5583579%2C20.373282%20C17.0016411%2C20.373282%2016.550333%2C19.9187981%2016.550333%2C19.3581638%20C16.550333%2C18.7975295%2017.0016411%2C18.3430456%2017.5583579%2C18.3430456%20L17.5583579%2C18.3435954%20Z%22%20fill%3D%22%23A3D1FF%22%20fill-rule%3D%22nonzero%22%20mask%3D%22url%28%23mask-2%29%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
1025
1026
|
|
|
1026
|
-
module.exports = require('./server.node');
|
|
1027
|
-
|
|
1028
|
-
var ReactDOMServer = /*#__PURE__*/Object.freeze({
|
|
1029
|
-
__proto__: null
|
|
1030
|
-
});
|
|
1031
|
-
|
|
1032
1027
|
// 带有toptile 清提示 并且会换行的
|
|
1033
1028
|
var handleTextDouble = function handleTextDouble(textOne, textTwo) {
|
|
1034
1029
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -1231,7 +1226,8 @@ var authFn = function authFn(code) {
|
|
|
1231
1226
|
};
|
|
1232
1227
|
// 可以将普通字符串 或者tsx 转换成字符串
|
|
1233
1228
|
var renderToString = function renderToString(render) {
|
|
1234
|
-
return
|
|
1229
|
+
// return render;
|
|
1230
|
+
return typeof render === 'string' ? render : renderToString$1(render);
|
|
1235
1231
|
};
|
|
1236
1232
|
|
|
1237
1233
|
function downloadExcel(data, fileName, isResUrl) {
|
|
@@ -4134,14 +4130,16 @@ var makeUniqueValue = function makeUniqueValue() {
|
|
|
4134
4130
|
return generateUnitKey;
|
|
4135
4131
|
};
|
|
4136
4132
|
// ------------------------------------------处理样式相关--开始----------------------------------------
|
|
4137
|
-
var getFormRowInfo = function getFormRowInfo(list) {
|
|
4138
|
-
var
|
|
4139
|
-
var
|
|
4140
|
-
var
|
|
4133
|
+
var getFormRowInfo = function getFormRowInfo(list, tableSearchColSpan) {
|
|
4134
|
+
var lastColumnsPerRow = tableSearchColSpan == 6 ? columnsPerRow : 3;
|
|
4135
|
+
var totalRows = Math.ceil(list.length / lastColumnsPerRow); // 计算总行数
|
|
4136
|
+
var lastRowColumns = (list.length + 1) % lastColumnsPerRow; // 计算最后一行的实际列数
|
|
4137
|
+
var emptySlots = lastRowColumns === 0 ? 0 : lastColumnsPerRow - lastRowColumns; // 计算最后一行的空位数
|
|
4141
4138
|
var emptyArray = new Array(emptySlots).fill(null); // 生成长度为 emptySlots 的数组
|
|
4142
4139
|
return {
|
|
4143
4140
|
totalRows: totalRows,
|
|
4144
|
-
emptyArray: emptyArray
|
|
4141
|
+
emptyArray: emptyArray,
|
|
4142
|
+
ColSpan: tableSearchColSpan !== null && tableSearchColSpan !== void 0 ? tableSearchColSpan : ColSpan
|
|
4145
4143
|
};
|
|
4146
4144
|
};
|
|
4147
4145
|
var defaultVisibleFieldsCount = 7;
|
|
@@ -4507,7 +4505,77 @@ var maxTagPlaceholder = function maxTagPlaceholder(selectedValues, _ref3) {
|
|
|
4507
4505
|
})))
|
|
4508
4506
|
}, "+ ".concat(selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.length));
|
|
4509
4507
|
};
|
|
4508
|
+
// 弹窗数据表头处理
|
|
4509
|
+
var handleTableColumns = function handleTableColumns(tableColumns) {
|
|
4510
|
+
// 按照默认设置排序 > 没有排序字段的展示所有列表头 > 没有表头列不展示
|
|
4511
|
+
var showTableColumns = (tableColumns === null || tableColumns === void 0 ? void 0 : tableColumns.filter(function (s) {
|
|
4512
|
+
return typeof s.defaultSort == 'number';
|
|
4513
|
+
})) || tableColumns || [];
|
|
4514
|
+
return (showTableColumns === null || showTableColumns === void 0 ? void 0 : showTableColumns.sort(function (a, b) {
|
|
4515
|
+
return a.defaultSort - b.defaultSort;
|
|
4516
|
+
})) || [];
|
|
4517
|
+
};
|
|
4510
4518
|
// ------------------------------------------ 数据源展示 相关处理--结束----------------------------------------
|
|
4519
|
+
// ------------------------------------------ 选中数据展示 相关处理--开始----------------------------------------
|
|
4520
|
+
var getShowLabelTextStr = function getShowLabelTextStr(_ref4) {
|
|
4521
|
+
var kongValue = _ref4.kongValue,
|
|
4522
|
+
selectMode = _ref4.selectMode,
|
|
4523
|
+
value = _ref4.value,
|
|
4524
|
+
items = _ref4.items;
|
|
4525
|
+
if (selectMode) {
|
|
4526
|
+
var _value$map;
|
|
4527
|
+
return Array.isArray(value) && (value === null || value === void 0 ? void 0 : (_value$map = value.map(function (item) {
|
|
4528
|
+
return item.label || item.text || '';
|
|
4529
|
+
})) === null || _value$map === void 0 ? void 0 : _value$map.join(',')) || kongValue;
|
|
4530
|
+
}
|
|
4531
|
+
return (value === null || value === void 0 ? void 0 : value.label) || (value === null || value === void 0 ? void 0 : value.text) || kongValue;
|
|
4532
|
+
};
|
|
4533
|
+
var getSelectValueText = function getSelectValueText(v, items) {
|
|
4534
|
+
var _filter, _filter$;
|
|
4535
|
+
return ((_filter = (items || []).filter(function (item) {
|
|
4536
|
+
return item.value === v;
|
|
4537
|
+
})) === null || _filter === void 0 ? void 0 : (_filter$ = _filter[0]) === null || _filter$ === void 0 ? void 0 : _filter$.text) || v || '';
|
|
4538
|
+
};
|
|
4539
|
+
var getShowValueStr = function getShowValueStr(_ref5) {
|
|
4540
|
+
var kongValue = _ref5.kongValue,
|
|
4541
|
+
selectMode = _ref5.selectMode,
|
|
4542
|
+
value = _ref5.value,
|
|
4543
|
+
items = _ref5.items;
|
|
4544
|
+
if (selectMode) {
|
|
4545
|
+
var _value$map2;
|
|
4546
|
+
return Array.isArray(value) && (value === null || value === void 0 ? void 0 : (_value$map2 = value.map(function (item) {
|
|
4547
|
+
return getSelectValueText(item, items);
|
|
4548
|
+
})) === null || _value$map2 === void 0 ? void 0 : _value$map2.join(',')) || kongValue;
|
|
4549
|
+
}
|
|
4550
|
+
return getSelectValueText(value, items) || kongValue;
|
|
4551
|
+
};
|
|
4552
|
+
var getShowStr = function getShowStr(_ref6) {
|
|
4553
|
+
var viewShowValueStr = _ref6.viewShowValueStr,
|
|
4554
|
+
labelInValue = _ref6.labelInValue,
|
|
4555
|
+
selectMode = _ref6.selectMode,
|
|
4556
|
+
value = _ref6.value,
|
|
4557
|
+
items = _ref6.items;
|
|
4558
|
+
// 优先使用业务使用传入的展示
|
|
4559
|
+
if (viewShowValueStr) return viewShowValueStr;
|
|
4560
|
+
var kongValue = '无';
|
|
4561
|
+
// 先判断labelInValue与否,labelInValue可以直接去value中获取字段名称,否则去下拉框数据里面去拿;
|
|
4562
|
+
// 再判断是单选还是多选,数据类型不同取值方式也不同
|
|
4563
|
+
if (labelInValue) {
|
|
4564
|
+
return getShowLabelTextStr({
|
|
4565
|
+
kongValue: kongValue,
|
|
4566
|
+
selectMode: selectMode,
|
|
4567
|
+
value: value,
|
|
4568
|
+
items: items
|
|
4569
|
+
});
|
|
4570
|
+
}
|
|
4571
|
+
return getShowValueStr({
|
|
4572
|
+
kongValue: kongValue,
|
|
4573
|
+
selectMode: selectMode,
|
|
4574
|
+
value: value,
|
|
4575
|
+
items: items
|
|
4576
|
+
});
|
|
4577
|
+
};
|
|
4578
|
+
// ------------------------------------------ 选中数据展示 相关处理--结束---------------------------------------
|
|
4511
4579
|
|
|
4512
4580
|
var getValue = function getValue(value, selectMode) {
|
|
4513
4581
|
var _value$split;
|
|
@@ -4623,6 +4691,7 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4623
4691
|
var callback = arguments.length > 1 ? arguments[1] : undefined;
|
|
4624
4692
|
if (!requestConfig) return;
|
|
4625
4693
|
if (!url) return;
|
|
4694
|
+
if (!(searchValue === null || searchValue === void 0 ? void 0 : searchValue.length)) return; // 空值默认不查询
|
|
4626
4695
|
setFetching(true);
|
|
4627
4696
|
var queryParams = _objectSpread2(_objectSpread2({}, otherParams), params);
|
|
4628
4697
|
if (isNil(queryParams[selectParamsKey])) {
|
|
@@ -4719,7 +4788,7 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4719
4788
|
style: {
|
|
4720
4789
|
textAlign: 'center'
|
|
4721
4790
|
}
|
|
4722
|
-
}, /*#__PURE__*/React$1.createElement("div", null, searchValue ? '无匹配结果,请更换其他内容再试' : "\u8BF7\u5F55\u5165\
|
|
4791
|
+
}, /*#__PURE__*/React$1.createElement("div", null, searchValue ? '无匹配结果,请更换其他内容再试' : (selectProps === null || selectProps === void 0 ? void 0 : selectProps.notFoundText) || "\u8BF7\u5F55\u5165\u7F16\u7801/\u540D\u79F0\u6A21\u7CCA\u67E5\u8BE2"))),
|
|
4723
4792
|
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
4724
4793
|
return triggerNode.parentElement;
|
|
4725
4794
|
}
|
|
@@ -4783,7 +4852,7 @@ function ToCDB$1(selectStr) {
|
|
|
4783
4852
|
return tmp;
|
|
4784
4853
|
}
|
|
4785
4854
|
|
|
4786
|
-
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
|
|
4855
|
+
var css_248z$6 = ".search_select .ant-select-selector {\n height: 24px;\n overflow: hidden;\n}\n.search_select .ant-select-selector .ant-select-selection-overflow {\n height: 40px;\n flex-wrap: nowrap;\n overflow-x: auto;\n}\n.search_select .ant-select-selector .ant-select-selection-overflow-item {\n align-self: auto;\n}\n.search_select_show {\n display: flex;\n}\n.search_select_show .ant-select-dropdown {\n top: 24px !important;\n width: calc(141%) !important;\n}\n.search_select_show .ant-select-clear {\n right: 33px;\n}\n.search_select_show .ant-select-multiple.ant-select-show-arrow .ant-select-selector,\n.search_select_show .ant-select-multiple.ant-select-allow-clear .ant-select-selector {\n padding-right: 28px;\n}\n.search_select_show.search_select_show_list .ant-select-dropdown {\n top: 24px !important;\n width: calc(100% + 110px) !important;\n}\n.search_select_expand_button {\n position: relative;\n right: -11px;\n width: 30px;\n border-left: 1px solid #d9d9d9;\n height: 24px;\n cursor: pointer;\n font-size: 14px;\n font-weight: bolder;\n}\n.search_select_expand_button span {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.search_select_expand_button:hover {\n background-color: #005cff;\n color: #fff;\n border-top-right-radius: 2px;\n border-bottom-right-radius: 2px;\n}\n.search_select_expand_button_disabled:hover {\n background-color: transparent;\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table {\n font-family: MiSans-Regular;\n font-weight: 400;\n font-size: 12px;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table thead > tr > th {\n color: #7F7F7F;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper {\n justify-content: center;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table tbody > tr > td {\n color: #333333;\n}\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-body > table > tbody > tr > td.ant-table-selection-column,\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-header > table > thead > tr > th.ant-table-selection-column {\n visibility: hidden;\n padding: 0;\n margin: 0;\n width: 0;\n height: 0;\n min-width: 0;\n min-height: 0;\n border: none;\n}\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-body > table > tbody > tr > td.ant-table-selection-column .ant-radio-wrapper,\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-header > table > thead > tr > th.ant-table-selection-column .ant-radio-wrapper {\n display: none;\n}\n.search_select_modal_wrapper .ant-modal {\n top: 60px;\n}\n.search_select_modal_wrapper .ant-modal-header {\n padding: 6px 0px 6px 16px;\n}\n.search_select_modal_wrapper .ant-modal-header .ant-modal-title {\n height: 20px;\n color: #000000;\n line-height: 20px;\n}\n.search_select_modal_wrapper .ant-modal-close-x {\n width: 32px;\n height: 32px;\n line-height: 32px;\n}\n.search_select_modal_wrapper .ant-modal-body {\n padding: 0px;\n background: #F3F3F3;\n height: calc(100vh - 235px);\n overflow: hidden;\n}\n.search_select_modal_wrapper .ant-modal-footer .ant-btn.ant-btn-default {\n color: #005cff;\n border-color: #005cff;\n}\n.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary,\n.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary[disabled] {\n background: #005cff;\n border-color: #005cff;\n}\n.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary[disabled] {\n opacity: 0.5;\n color: #fff;\n}\n.search_select_wrapper {\n position: relative;\n font-size: 14px;\n}\n.search_select_wrapper_topForm .select_list_columns {\n width: 100%;\n padding: 10px 6px 2px 16px;\n background-color: #fff;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form {\n padding: 0;\n display: flex;\n align-items: flex-start;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item,\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-col .ant-space {\n font-size: 12px !important;\n margin-right: 0px !important;\n margin-bottom: 8px !important;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row.ant-form-item-row {\n background-color: #fafafa;\n border: 0.8px solid #D9D9D9;\n border-radius: 2px;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row {\n width: 100%;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-label {\n width: 110px;\n order: 1;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-label label {\n width: 100%;\n text-align: left;\n padding: 0 10px;\n color: #333333;\n font-size: 12px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control {\n order: 2;\n width: 100px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-input-affix-wrapper {\n border: 0;\n font-size: 12px;\n background-color: #fafafa;\n padding: 0 11px;\n height: 24px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-input-affix-wrapper .ant-input {\n background-color: #fafafa !important;\n border: 0;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-select-selector {\n border: 0 !important;\n background-color: #fafafa !important;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .query_input .ant-input {\n background-color: #fafafa !important;\n border: 0;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-btn-primary {\n background: #005cff;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form > .ant-row > .ant-col {\n order: 2;\n padding-right: 10px;\n}\n.search_select_wrapper_topForm .select_list_button_space {\n margin-right: 10px;\n}\n.search_select_wrapper_bottomTable {\n margin: 10px;\n display: flex;\n justify-content: space-between;\n}\n.search_select_wrapper_bottomTable_wrapLeft1,\n.search_select_wrapper_bottomTable_wrapLeft2,\n.search_select_wrapper_bottomTable_wrapRight {\n background: #fff;\n width: calc(50% - 5px);\n}\n.search_select_wrapper_bottomTable_wrapLeft1 .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper,\n.search_select_wrapper_bottomTable_wrapLeft2 .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper,\n.search_select_wrapper_bottomTable_wrapRight .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_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";
|
|
4787
4856
|
styleInject(css_248z$6);
|
|
4788
4857
|
|
|
4789
4858
|
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";
|
|
@@ -5203,9 +5272,56 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5203
5272
|
}, 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"))))))));
|
|
5204
5273
|
};
|
|
5205
5274
|
|
|
5275
|
+
var _excluded$4 = ["onChange", "value", "propertyCode", "name"];
|
|
5276
|
+
var ItemPropertySelector = function ItemPropertySelector(_ref) {
|
|
5277
|
+
var _onChange = _ref.onChange,
|
|
5278
|
+
value = _ref.value,
|
|
5279
|
+
propertyCode = _ref.propertyCode,
|
|
5280
|
+
name = _ref.name,
|
|
5281
|
+
restProps = _objectWithoutProperties(_ref, _excluded$4);
|
|
5282
|
+
var _useState = useState([]),
|
|
5283
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
5284
|
+
source = _useState2[0],
|
|
5285
|
+
setSource = _useState2[1];
|
|
5286
|
+
useEffect(function () {
|
|
5287
|
+
// FIXME: 目前只能通过固定属性编码先获取属性id,再通过属性id去查属性值 @林军
|
|
5288
|
+
if (propertyCode) {
|
|
5289
|
+
request$2({
|
|
5290
|
+
url: "/items/item/propertyValue/getPropertyValueNoPagerByCode?qp-propertyCode-eq=".concat(propertyCode, "&pageSize=5000"),
|
|
5291
|
+
method: 'GET',
|
|
5292
|
+
converter: function converter(_ref2) {
|
|
5293
|
+
var data = _ref2.data;
|
|
5294
|
+
var source = ((data === null || data === void 0 ? void 0 : data.items) || []).map(function (item) {
|
|
5295
|
+
return {
|
|
5296
|
+
text: item.value,
|
|
5297
|
+
value: item.value
|
|
5298
|
+
};
|
|
5299
|
+
});
|
|
5300
|
+
setSource(source);
|
|
5301
|
+
}
|
|
5302
|
+
});
|
|
5303
|
+
return;
|
|
5304
|
+
}
|
|
5305
|
+
}, [propertyCode]);
|
|
5306
|
+
return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
5307
|
+
value: value,
|
|
5308
|
+
allowClear: true,
|
|
5309
|
+
style: {
|
|
5310
|
+
width: '100%'
|
|
5311
|
+
},
|
|
5312
|
+
onChange: function onChange(v) {
|
|
5313
|
+
_onChange(v);
|
|
5314
|
+
}
|
|
5315
|
+
}), source.map(function (res) {
|
|
5316
|
+
return /*#__PURE__*/React$1.createElement(Select.Option, {
|
|
5317
|
+
value: res.value
|
|
5318
|
+
}, res.text);
|
|
5319
|
+
}));
|
|
5320
|
+
};
|
|
5321
|
+
|
|
5206
5322
|
var Option$1 = Select.Option;
|
|
5207
5323
|
var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
5208
|
-
var _pathname$match
|
|
5324
|
+
var _pathname$match;
|
|
5209
5325
|
var value = props.value,
|
|
5210
5326
|
onChangeTemp = props.onChange,
|
|
5211
5327
|
_props$selectProps = props.selectProps,
|
|
@@ -5214,7 +5330,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5214
5330
|
modalTableProps = _props$modalTableProp === void 0 ? {} : _props$modalTableProp,
|
|
5215
5331
|
_props$labelInValue = props.labelInValue,
|
|
5216
5332
|
labelInValue = _props$labelInValue === void 0 ? false : _props$labelInValue,
|
|
5217
|
-
|
|
5333
|
+
needTopSelectedSource = props.needTopSelectedSource,
|
|
5334
|
+
rCTemp = props.requestConfig,
|
|
5218
5335
|
ctx = props.ctx,
|
|
5219
5336
|
_props$onlyShowStr = props.onlyShowStr,
|
|
5220
5337
|
sourceName = props.sourceName,
|
|
@@ -5226,7 +5343,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5226
5343
|
fieldComponent = props.fieldComponent,
|
|
5227
5344
|
onSaveCallback = props.onSaveCallback,
|
|
5228
5345
|
selectBusinessType = props.selectBusinessType;
|
|
5229
|
-
var _ref =
|
|
5346
|
+
var _ref = rCTemp || {},
|
|
5230
5347
|
url = _ref.url,
|
|
5231
5348
|
_ref$method = _ref.method,
|
|
5232
5349
|
method = _ref$method === void 0 ? 'get' : _ref$method,
|
|
@@ -5253,6 +5370,26 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5253
5370
|
noOperate = _ref.noOperate,
|
|
5254
5371
|
viewShowValueStr = _ref.viewShowValueStr,
|
|
5255
5372
|
searchStartLength = _ref.searchStartLength;
|
|
5373
|
+
var requestConfig = _objectSpread2({
|
|
5374
|
+
url: url,
|
|
5375
|
+
method: method,
|
|
5376
|
+
otherParams: otherParams,
|
|
5377
|
+
isMap: isMap,
|
|
5378
|
+
fixedparameter: fixedparameter,
|
|
5379
|
+
fieldValToParam: fieldValToParam,
|
|
5380
|
+
fixedparamsDisabled: fixedparamsDisabled,
|
|
5381
|
+
mappingTextField: mappingTextField,
|
|
5382
|
+
mappingTextShowKeyField: mappingTextShowKeyField,
|
|
5383
|
+
mappingValueField: mappingValueField,
|
|
5384
|
+
mappingTextShowTextField: mappingTextShowTextField,
|
|
5385
|
+
init: init,
|
|
5386
|
+
extralHeaders: extralHeaders,
|
|
5387
|
+
specialBracket: specialBracket,
|
|
5388
|
+
noNeedSplit: noNeedSplit,
|
|
5389
|
+
noOperate: noOperate,
|
|
5390
|
+
viewShowValueStr: viewShowValueStr,
|
|
5391
|
+
searchStartLength: searchStartLength
|
|
5392
|
+
}, rCTemp);
|
|
5256
5393
|
var resultSourceKey = handleSourceName(sourceName || (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.sourceName) || (ctx === null || ctx === void 0 ? void 0 : ctx.name) || 'supplierCode');
|
|
5257
5394
|
var selectMode = selectProps === null || selectProps === void 0 ? void 0 : selectProps.mode; // 设定当前选择器 为单选或者多选模式 无设定为单选模式(默认)
|
|
5258
5395
|
var initVal = value || (selectMode ? [] : null);
|
|
@@ -5287,7 +5424,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5287
5424
|
total: 0,
|
|
5288
5425
|
current: 1
|
|
5289
5426
|
});
|
|
5290
|
-
var disabled = noOperate || (selectProps === null || selectProps === void 0 ? void 0 : selectProps.disabled) || (props === null || props === void 0 ? void 0 : props.disabled);
|
|
5427
|
+
var disabled = !!noOperate || (selectProps === null || selectProps === void 0 ? void 0 : selectProps.disabled) || (props === null || props === void 0 ? void 0 : props.disabled);
|
|
5291
5428
|
var isHaveDependency = fixedparameter && fieldValToParam && ctx;
|
|
5292
5429
|
var isHaveDValue = function isHaveDValue() {
|
|
5293
5430
|
var formValueList = [];
|
|
@@ -5408,14 +5545,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5408
5545
|
_useState40 = _slicedToArray(_useState39, 2),
|
|
5409
5546
|
tooltipVisible = _useState40[0],
|
|
5410
5547
|
setTooltipVisible = _useState40[1];
|
|
5411
|
-
var _useState41 = useState((modalTableProps === null || modalTableProps === void 0 ? void 0 :
|
|
5412
|
-
return typeof s.defaultSort == 'number';
|
|
5413
|
-
})) === null || _modalTableProps$tabl2 === void 0 ? void 0 : _modalTableProps$tabl2.sort(function (a, b) {
|
|
5414
|
-
return a.defaultSort - b.defaultSort;
|
|
5415
|
-
})) || []),
|
|
5548
|
+
var _useState41 = useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
|
|
5416
5549
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
5417
5550
|
tableShowColumns = _useState42[0],
|
|
5418
|
-
setTabletShowColumns = _useState42[1];
|
|
5551
|
+
setTabletShowColumns = _useState42[1]; // 默认展示表头-modalTableProps?.tableColumns
|
|
5419
5552
|
var _useState43 = useState(false),
|
|
5420
5553
|
_useState44 = _slicedToArray(_useState43, 2),
|
|
5421
5554
|
confirmLoading = _useState44[0],
|
|
@@ -5473,6 +5606,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5473
5606
|
});
|
|
5474
5607
|
// 获取数据源 (type: 1下拉框 2/3弹框 不传值默认为下拉框)
|
|
5475
5608
|
var getData = function getData() {
|
|
5609
|
+
var _method$toLocaleLower;
|
|
5476
5610
|
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
5477
5611
|
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
5478
5612
|
var callback = arguments.length > 2 ? arguments[2] : undefined;
|
|
@@ -5512,11 +5646,11 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5512
5646
|
pageSize: pageSize,
|
|
5513
5647
|
currentPage: currentPage
|
|
5514
5648
|
}, otherParams), fixedParam), params);
|
|
5515
|
-
if (isNil(queryParams[selectParamsKey])) {
|
|
5649
|
+
if (isNil(queryParams[selectParamsKey]) && (searchValue === null || searchValue === void 0 ? void 0 : searchValue.length)) {
|
|
5516
5650
|
queryParams[selectParamsKey] = searchValue;
|
|
5517
5651
|
}
|
|
5518
5652
|
var getRequest;
|
|
5519
|
-
var methodName = method === null || method === void 0 ? void 0 : method.toLocaleLowerCase();
|
|
5653
|
+
var methodName = method === null || method === void 0 ? void 0 : (_method$toLocaleLower = method.toLocaleLowerCase) === null || _method$toLocaleLower === void 0 ? void 0 : _method$toLocaleLower.call(method);
|
|
5520
5654
|
if (['post', 'patch', 'put'].includes(methodName)) {
|
|
5521
5655
|
getRequest = requestUtil[methodName]("".concat(url).concat(convertUrlQueryParams(queryParams)), convertBodyParams(queryParams));
|
|
5522
5656
|
} else {
|
|
@@ -5539,7 +5673,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5539
5673
|
value: value,
|
|
5540
5674
|
type: type,
|
|
5541
5675
|
items: items,
|
|
5542
|
-
queryParams: queryParams
|
|
5676
|
+
queryParams: queryParams,
|
|
5677
|
+
needTopSelectedSource: needTopSelectedSource
|
|
5543
5678
|
});
|
|
5544
5679
|
if (callback) {
|
|
5545
5680
|
callback(source);
|
|
@@ -5616,6 +5751,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5616
5751
|
}, [value]);
|
|
5617
5752
|
useEffect(function () {
|
|
5618
5753
|
setUniqueValue(makeUniqueValue());
|
|
5754
|
+
setTabletShowColumns(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns));
|
|
5619
5755
|
}, [resultSourceKey]);
|
|
5620
5756
|
useEffect(function () {
|
|
5621
5757
|
if (init) {
|
|
@@ -5867,7 +6003,6 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5867
6003
|
};
|
|
5868
6004
|
var formItem = function formItem(list) {
|
|
5869
6005
|
if (isModalVisible && (list === null || list === void 0 ? void 0 : list.length)) {
|
|
5870
|
-
var _list$concat;
|
|
5871
6006
|
var setDisabled = function setDisabled(name) {
|
|
5872
6007
|
if (fixedparamsDisabled && (fixedparameter === null || fixedparameter === void 0 ? void 0 : fixedparameter.length) && fixedparameter.find(function (item) {
|
|
5873
6008
|
return item === name;
|
|
@@ -5877,15 +6012,17 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5877
6012
|
return false;
|
|
5878
6013
|
}
|
|
5879
6014
|
};
|
|
5880
|
-
var _getFormRowInfo = getFormRowInfo(list),
|
|
5881
|
-
emptyArray = _getFormRowInfo.emptyArray
|
|
6015
|
+
var _getFormRowInfo = getFormRowInfo(list, modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchColSpan),
|
|
6016
|
+
emptyArray = _getFormRowInfo.emptyArray,
|
|
6017
|
+
ColSpan = _getFormRowInfo.ColSpan;
|
|
5882
6018
|
var addKong = (emptyArray === null || emptyArray === void 0 ? void 0 : emptyArray.map(function (i) {
|
|
5883
6019
|
return {
|
|
5884
6020
|
type: 'kong'
|
|
5885
6021
|
};
|
|
5886
6022
|
})) || [];
|
|
5887
|
-
|
|
5888
|
-
|
|
6023
|
+
var searchList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.noEmptySearchField) ? list : list === null || list === void 0 ? void 0 : list.concat(addKong);
|
|
6024
|
+
return searchList.map(function (i, index) {
|
|
6025
|
+
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field10, _i$field11, _i$field12, _i$field14, _i$field15;
|
|
5889
6026
|
if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React$1.createElement(Col, {
|
|
5890
6027
|
span: ColSpan,
|
|
5891
6028
|
key: i
|
|
@@ -5934,7 +6071,44 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5934
6071
|
disabled: setDisabled(i.name)
|
|
5935
6072
|
}))));
|
|
5936
6073
|
}
|
|
5937
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === '
|
|
6074
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'rangepicker' || (i === null || i === void 0 ? void 0 : (_i$field5 = i.field) === null || _i$field5 === void 0 ? void 0 : _i$field5.type) === 'rangepicker') {
|
|
6075
|
+
var _i$initialValue, _i$field6;
|
|
6076
|
+
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6077
|
+
span: ColSpan,
|
|
6078
|
+
key: i.name
|
|
6079
|
+
}, /*#__PURE__*/React$1.createElement(Form.Item, {
|
|
6080
|
+
name: i.name,
|
|
6081
|
+
label: i.label,
|
|
6082
|
+
key: i.name,
|
|
6083
|
+
initialValue: (_i$initialValue = i === null || i === void 0 ? void 0 : i.initialValue) !== null && _i$initialValue !== void 0 ? _i$initialValue : []
|
|
6084
|
+
}, /*#__PURE__*/React$1.createElement(DatePicker.RangePicker, _objectSpread2(_objectSpread2({
|
|
6085
|
+
style: {
|
|
6086
|
+
width: '100%'
|
|
6087
|
+
},
|
|
6088
|
+
placeholder: "\u8BF7\u9009\u62E9"
|
|
6089
|
+
}, i === null || i === void 0 ? void 0 : (_i$field6 = i.field) === null || _i$field6 === void 0 ? void 0 : _i$field6.props), {}, {
|
|
6090
|
+
disabled: setDisabled(i.name)
|
|
6091
|
+
}))));
|
|
6092
|
+
}
|
|
6093
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'datepicker' || (i === null || i === void 0 ? void 0 : (_i$field7 = i.field) === null || _i$field7 === void 0 ? void 0 : _i$field7.type) === 'datepicker') {
|
|
6094
|
+
var _i$field8;
|
|
6095
|
+
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6096
|
+
span: ColSpan,
|
|
6097
|
+
key: i.name
|
|
6098
|
+
}, /*#__PURE__*/React$1.createElement(Form.Item, {
|
|
6099
|
+
name: i.name,
|
|
6100
|
+
label: i.label,
|
|
6101
|
+
key: i.name
|
|
6102
|
+
}, /*#__PURE__*/React$1.createElement(DatePicker, _objectSpread2(_objectSpread2({
|
|
6103
|
+
style: {
|
|
6104
|
+
width: '100%'
|
|
6105
|
+
},
|
|
6106
|
+
placeholder: "\u8BF7\u9009\u62E9"
|
|
6107
|
+
}, i === null || i === void 0 ? void 0 : (_i$field8 = i.field) === null || _i$field8 === void 0 ? void 0 : _i$field8.props), {}, {
|
|
6108
|
+
disabled: setDisabled(i.name)
|
|
6109
|
+
}))));
|
|
6110
|
+
}
|
|
6111
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'businessSearchSelect' || (i === null || i === void 0 ? void 0 : (_i$field9 = i.field) === null || _i$field9 === void 0 ? void 0 : _i$field9.type) === 'businessSearchSelect') {
|
|
5938
6112
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
5939
6113
|
span: ColSpan,
|
|
5940
6114
|
key: i.name
|
|
@@ -5946,7 +6120,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5946
6120
|
disabled: setDisabled(i.name)
|
|
5947
6121
|
}))));
|
|
5948
6122
|
}
|
|
5949
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6123
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$field10 = i.field) === null || _i$field10 === void 0 ? void 0 : _i$field10.type) === 'multipleQueryInput') {
|
|
5950
6124
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
5951
6125
|
span: ColSpan,
|
|
5952
6126
|
key: i.name
|
|
@@ -5960,7 +6134,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5960
6134
|
}
|
|
5961
6135
|
})));
|
|
5962
6136
|
}
|
|
5963
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6137
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.type) === 'proppertySelector') {
|
|
5964
6138
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
5965
6139
|
span: ColSpan,
|
|
5966
6140
|
key: i.name
|
|
@@ -5970,7 +6144,23 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5970
6144
|
key: i.name
|
|
5971
6145
|
}, /*#__PURE__*/React$1.createElement(PropertySelector, null)));
|
|
5972
6146
|
}
|
|
5973
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6147
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'itemPropertySelector' || (i === null || i === void 0 ? void 0 : (_i$field12 = i.field) === null || _i$field12 === void 0 ? void 0 : _i$field12.type) === 'itemPropertySelector') {
|
|
6148
|
+
var _i$field13;
|
|
6149
|
+
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6150
|
+
span: ColSpan,
|
|
6151
|
+
key: i.name
|
|
6152
|
+
}, /*#__PURE__*/React$1.createElement(Form.Item, {
|
|
6153
|
+
name: i.name,
|
|
6154
|
+
label: i.label,
|
|
6155
|
+
key: i.name
|
|
6156
|
+
}, /*#__PURE__*/React$1.createElement(ItemPropertySelector, _objectSpread2({
|
|
6157
|
+
style: {
|
|
6158
|
+
width: '100%'
|
|
6159
|
+
},
|
|
6160
|
+
placeholder: "\u8BF7\u9009\u62E9"
|
|
6161
|
+
}, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props))));
|
|
6162
|
+
}
|
|
6163
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field14 = i.field) === null || _i$field14 === void 0 ? void 0 : _i$field14.type) === 'multipleQuerySearchSelect') {
|
|
5974
6164
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
5975
6165
|
span: ColSpan,
|
|
5976
6166
|
key: i.name
|
|
@@ -5999,7 +6189,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5999
6189
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
6000
6190
|
allowClear: true,
|
|
6001
6191
|
maxLength: 100
|
|
6002
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6192
|
+
}, i === null || i === void 0 ? void 0 : (_i$field15 = i.field) === null || _i$field15 === void 0 ? void 0 : _i$field15.props), {}, {
|
|
6003
6193
|
disabled: setDisabled(i.name)
|
|
6004
6194
|
}))));
|
|
6005
6195
|
});
|
|
@@ -6011,9 +6201,20 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6011
6201
|
var viCount = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.visibleFieldsCount) || defaultVisibleFieldsCount;
|
|
6012
6202
|
return collapsed ? formItem(list === null || list === void 0 ? void 0 : list.slice(0, viCount)) : formItem(list);
|
|
6013
6203
|
};
|
|
6204
|
+
var renderEmptyText = function renderEmptyText(text, x) {
|
|
6205
|
+
return /*#__PURE__*/React$1.createElement(Empty, {
|
|
6206
|
+
image: Empty.PRESENTED_IMAGE_SIMPLE,
|
|
6207
|
+
description: text,
|
|
6208
|
+
style: {
|
|
6209
|
+
margin: "".concat(x, " 0px")
|
|
6210
|
+
}
|
|
6211
|
+
});
|
|
6212
|
+
};
|
|
6014
6213
|
var renderShowTable = function renderShowTable(tableList, type) {
|
|
6015
6214
|
var tableBoxHeighth = getTableHeigth(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm);
|
|
6016
|
-
var
|
|
6215
|
+
var x = (tableList === null || tableList === void 0 ? void 0 : tableList.length) ? 82 : 28; // 无数据没有分页,有数据计算减去:分页 24+16*2+10 「高 + margin * 2 + paddingBottom 10 」
|
|
6216
|
+
var oSY = "calc(100vh - ".concat(tableBoxHeighth, "px - ").concat(x, "px)");
|
|
6217
|
+
var mTB = "calc(50vh - ".concat(tableBoxHeighth / 2, "px - ").concat(x / 2, "px - 40px)");
|
|
6017
6218
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
6018
6219
|
style: {
|
|
6019
6220
|
height: "calc(100vh - ".concat(tableBoxHeighth, "px)")
|
|
@@ -6029,14 +6230,14 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6029
6230
|
showSizeChanger: false
|
|
6030
6231
|
}),
|
|
6031
6232
|
locale: {
|
|
6032
|
-
emptyText: '暂无已选结果'
|
|
6233
|
+
emptyText: renderEmptyText('暂无已选结果', mTB)
|
|
6033
6234
|
}
|
|
6034
6235
|
} : {
|
|
6035
6236
|
pagination: tablePagination,
|
|
6036
6237
|
onChange: handleTableChange,
|
|
6037
6238
|
loading: fetching,
|
|
6038
6239
|
locale: {
|
|
6039
|
-
emptyText: modalSearched ? '
|
|
6240
|
+
emptyText: modalSearched ? renderEmptyText('匹配结果,请更换其他内容再试', mTB) : renderEmptyText('请输入搜索条件', mTB)
|
|
6040
6241
|
}
|
|
6041
6242
|
}), {}, {
|
|
6042
6243
|
rowKey: mappingValueField,
|
|
@@ -6181,41 +6382,6 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6181
6382
|
}
|
|
6182
6383
|
})));
|
|
6183
6384
|
};
|
|
6184
|
-
var getShowLabelTextStr = function getShowLabelTextStr(kongValue) {
|
|
6185
|
-
if (selectMode) {
|
|
6186
|
-
var _value$map;
|
|
6187
|
-
return Array.isArray(value) && (value === null || value === void 0 ? void 0 : (_value$map = value.map(function (item) {
|
|
6188
|
-
return item.label || item.text || '';
|
|
6189
|
-
})) === null || _value$map === void 0 ? void 0 : _value$map.join(',')) || kongValue;
|
|
6190
|
-
}
|
|
6191
|
-
return (value === null || value === void 0 ? void 0 : value.label) || (value === null || value === void 0 ? void 0 : value.text) || kongValue;
|
|
6192
|
-
};
|
|
6193
|
-
var getSelectValueText = function getSelectValueText(v) {
|
|
6194
|
-
var _filter, _filter$;
|
|
6195
|
-
return ((_filter = (items || []).filter(function (item) {
|
|
6196
|
-
return item.value === v;
|
|
6197
|
-
})) === null || _filter === void 0 ? void 0 : (_filter$ = _filter[0]) === null || _filter$ === void 0 ? void 0 : _filter$.text) || v || '';
|
|
6198
|
-
};
|
|
6199
|
-
var getShowValueStr = function getShowValueStr(kongValue) {
|
|
6200
|
-
if (selectMode) {
|
|
6201
|
-
var _value$map2;
|
|
6202
|
-
return Array.isArray(value) && (value === null || value === void 0 ? void 0 : (_value$map2 = value.map(function (item) {
|
|
6203
|
-
return getSelectValueText(item);
|
|
6204
|
-
})) === null || _value$map2 === void 0 ? void 0 : _value$map2.join(',')) || kongValue;
|
|
6205
|
-
}
|
|
6206
|
-
return getSelectValueText(value) || kongValue;
|
|
6207
|
-
};
|
|
6208
|
-
var getShowStr = function getShowStr() {
|
|
6209
|
-
// 优先使用业务使用传入的展示
|
|
6210
|
-
if (viewShowValueStr) return viewShowValueStr;
|
|
6211
|
-
var kongValue = '无';
|
|
6212
|
-
// 先判断labelInValue与否,labelInValue可以直接去value中获取字段名称,否则去下拉框数据里面去拿;
|
|
6213
|
-
// 再判断是单选还是多选,数据类型不同取值方式也不同
|
|
6214
|
-
if (labelInValue) {
|
|
6215
|
-
return getShowLabelTextStr(kongValue);
|
|
6216
|
-
}
|
|
6217
|
-
return getShowValueStr(kongValue);
|
|
6218
|
-
};
|
|
6219
6385
|
var isShouldShowStr = props.disabled && ctx || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) == 'view';
|
|
6220
6386
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
6221
6387
|
className: 'search_select'
|
|
@@ -6226,14 +6392,26 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6226
6392
|
showModal();
|
|
6227
6393
|
}
|
|
6228
6394
|
}, fieldComponent)) : isShouldShowStr ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
6229
|
-
title: getShowStr(
|
|
6395
|
+
title: getShowStr({
|
|
6396
|
+
viewShowValueStr: viewShowValueStr,
|
|
6397
|
+
labelInValue: labelInValue,
|
|
6398
|
+
selectMode: selectMode,
|
|
6399
|
+
value: value,
|
|
6400
|
+
items: items
|
|
6401
|
+
}),
|
|
6230
6402
|
style: {
|
|
6231
6403
|
overflow: 'hidden',
|
|
6232
6404
|
textOverflow: 'ellipsis',
|
|
6233
6405
|
whiteSpace: 'nowrap'
|
|
6234
6406
|
},
|
|
6235
6407
|
className: 'search_select_show'
|
|
6236
|
-
}, getShowStr(
|
|
6408
|
+
}, getShowStr({
|
|
6409
|
+
viewShowValueStr: viewShowValueStr,
|
|
6410
|
+
labelInValue: labelInValue,
|
|
6411
|
+
selectMode: selectMode,
|
|
6412
|
+
value: value,
|
|
6413
|
+
items: items
|
|
6414
|
+
}))) : /*#__PURE__*/React$1.createElement("div", {
|
|
6237
6415
|
className: "".concat(isFormPage ? '' : 'search_select_show_list', " search_select_show"),
|
|
6238
6416
|
id: "search_select_div_".concat(uniqueValue)
|
|
6239
6417
|
}, /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
@@ -6298,7 +6476,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6298
6476
|
}))), needModalTable && isModalVisible && ( /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
6299
6477
|
maskClosable: false,
|
|
6300
6478
|
destroyOnClose: true,
|
|
6301
|
-
width: "
|
|
6479
|
+
width: "calc(100% - 320px)",
|
|
6302
6480
|
title: modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.modalTableTitle,
|
|
6303
6481
|
visible: isModalVisible,
|
|
6304
6482
|
confirmLoading: confirmLoading,
|
|
@@ -6341,7 +6519,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6341
6519
|
top: 0,
|
|
6342
6520
|
right: 0
|
|
6343
6521
|
}
|
|
6344
|
-
}, hasMoreQueryFields(modalTableProps)
|
|
6522
|
+
}, hasMoreQueryFields(modalTableProps) ? /*#__PURE__*/React$1.createElement("img", {
|
|
6345
6523
|
onClick: function onClick() {
|
|
6346
6524
|
toggleCollapsed();
|
|
6347
6525
|
},
|
|
@@ -6390,7 +6568,7 @@ var fixedRightActive = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20enc
|
|
|
6390
6568
|
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";
|
|
6391
6569
|
styleInject(css_248z$9);
|
|
6392
6570
|
|
|
6393
|
-
var _excluded$
|
|
6571
|
+
var _excluded$5 = ["className", "style"];
|
|
6394
6572
|
var Search = Input.Search;
|
|
6395
6573
|
var DragHandle = SortableHandle(function () {
|
|
6396
6574
|
return /*#__PURE__*/React$1.createElement("img", {
|
|
@@ -6742,7 +6920,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6742
6920
|
_this.DraggableBodyRow = function (_ref2) {
|
|
6743
6921
|
var className = _ref2.className,
|
|
6744
6922
|
style = _ref2.style,
|
|
6745
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
6923
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$5);
|
|
6746
6924
|
var sortDataSource = _this.state.sortDataSource;
|
|
6747
6925
|
// function findIndex base on Table rowKey props and should always be a right array index
|
|
6748
6926
|
var index = sortDataSource.findIndex(function (x) {
|
|
@@ -7161,7 +7339,7 @@ var formatFormSourceList = function formatFormSourceList(x, loadList, tableSearc
|
|
|
7161
7339
|
});
|
|
7162
7340
|
};
|
|
7163
7341
|
|
|
7164
|
-
var _excluded$
|
|
7342
|
+
var _excluded$6 = ["onResize", "width"],
|
|
7165
7343
|
_excluded2$2 = ["name", "label", "field", "type", "filterFormItem", "initialSource"];
|
|
7166
7344
|
var checkSpuMatchCode = function checkSpuMatchCode(data) {
|
|
7167
7345
|
return new Promise(function (resolve, reject) {
|
|
@@ -7181,7 +7359,7 @@ var checkSpuMatchCode = function checkSpuMatchCode(data) {
|
|
|
7181
7359
|
var ResizeableTitle = function ResizeableTitle(props) {
|
|
7182
7360
|
var onResize = props.onResize,
|
|
7183
7361
|
width = props.width,
|
|
7184
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
7362
|
+
restProps = _objectWithoutProperties(props, _excluded$6);
|
|
7185
7363
|
if (!width) {
|
|
7186
7364
|
return /*#__PURE__*/React$1.createElement("th", _objectSpread2({}, restProps));
|
|
7187
7365
|
}
|
|
@@ -8413,7 +8591,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8413
8591
|
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";
|
|
8414
8592
|
styleInject(css_248z$a);
|
|
8415
8593
|
|
|
8416
|
-
var _excluded$
|
|
8594
|
+
var _excluded$7 = ["onResize", "width"];
|
|
8417
8595
|
var _this = undefined;
|
|
8418
8596
|
var InputElement = function InputElement(_ref) {
|
|
8419
8597
|
var _record$packingUnitLi, _record$packingUnitLi2;
|
|
@@ -8911,7 +9089,7 @@ var InputElement = function InputElement(_ref) {
|
|
|
8911
9089
|
var ResizeableTitle$1 = function ResizeableTitle(props) {
|
|
8912
9090
|
var onResize = props.onResize,
|
|
8913
9091
|
width = props.width,
|
|
8914
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
9092
|
+
restProps = _objectWithoutProperties(props, _excluded$7);
|
|
8915
9093
|
if (!width) {
|
|
8916
9094
|
return /*#__PURE__*/React$1.createElement("th", _objectSpread2({}, restProps));
|
|
8917
9095
|
}
|
|
@@ -9481,6 +9659,7 @@ var handleDefaultPrefixUrl = function handleDefaultPrefixUrl(type) {
|
|
|
9481
9659
|
case 'spuCommodity':
|
|
9482
9660
|
case 'skcCommodity':
|
|
9483
9661
|
case 'brand':
|
|
9662
|
+
case 'spuCommodityWithProperty':
|
|
9484
9663
|
result = '/items';
|
|
9485
9664
|
break;
|
|
9486
9665
|
case 'physicalWarehouse':
|
|
@@ -9888,7 +10067,8 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9888
10067
|
sourceName: 'qp-skuCode-in',
|
|
9889
10068
|
specialBracket: true,
|
|
9890
10069
|
otherParams: {
|
|
9891
|
-
'ownOrgSign': getCurrentTargetBgId()
|
|
10070
|
+
'ownOrgSign': getCurrentTargetBgId(),
|
|
10071
|
+
'ctl-count': true
|
|
9892
10072
|
} // 默认参数
|
|
9893
10073
|
}
|
|
9894
10074
|
}
|
|
@@ -9911,7 +10091,11 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9911
10091
|
mappingTextField: 'name',
|
|
9912
10092
|
mappingValueField: 'itemCode',
|
|
9913
10093
|
sourceName: 'qp-itemCode-in',
|
|
9914
|
-
specialBracket: true
|
|
10094
|
+
specialBracket: true,
|
|
10095
|
+
otherParams: {
|
|
10096
|
+
'ownOrgSign': getCurrentTargetBgId(),
|
|
10097
|
+
'ctl-count': true
|
|
10098
|
+
} // 默认参数
|
|
9915
10099
|
}
|
|
9916
10100
|
}
|
|
9917
10101
|
}
|
|
@@ -10044,6 +10228,144 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10044
10228
|
}
|
|
10045
10229
|
// 商品选择器spu
|
|
10046
10230
|
if (type === 'spuCommodity') {
|
|
10231
|
+
selectProps = _objectSpread2({
|
|
10232
|
+
placeholder: '输入商品(SPU)编码或名称',
|
|
10233
|
+
renderTableColumns: [{
|
|
10234
|
+
title: '商品编码(SPU)',
|
|
10235
|
+
dataIndex: 'itemCode'
|
|
10236
|
+
}, {
|
|
10237
|
+
title: '商品名称(SPU)',
|
|
10238
|
+
dataIndex: 'name'
|
|
10239
|
+
}]
|
|
10240
|
+
}, selectConfigProps);
|
|
10241
|
+
requestConfig = _objectSpread2({
|
|
10242
|
+
url: "".concat(prefixUrl.selectPrefix, "/item"),
|
|
10243
|
+
filter: 'qp-itemCode,name-orGroup,like',
|
|
10244
|
+
mappingTextField: 'name',
|
|
10245
|
+
mappingValueField: 'itemCode',
|
|
10246
|
+
otherParams: _objectSpread2({
|
|
10247
|
+
'qp-approveStatus-eq': 1,
|
|
10248
|
+
sorter: 'desc-id'
|
|
10249
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
10250
|
+
sourceName: 'itemCode'
|
|
10251
|
+
}, requestConfigProp);
|
|
10252
|
+
tableSearchForm = [{
|
|
10253
|
+
name: 'qp-name-like',
|
|
10254
|
+
label: '商品名称(SPU)'
|
|
10255
|
+
}, {
|
|
10256
|
+
name: 'qp-itemCode-like',
|
|
10257
|
+
label: '商品编码(SPU)'
|
|
10258
|
+
}, {
|
|
10259
|
+
name: 'qp-brandId-in',
|
|
10260
|
+
type: 'select',
|
|
10261
|
+
label: '品牌',
|
|
10262
|
+
field: {
|
|
10263
|
+
type: 'select',
|
|
10264
|
+
props: {
|
|
10265
|
+
mode: 'multiple',
|
|
10266
|
+
notFoundContent: '暂无数据',
|
|
10267
|
+
allowClear: true,
|
|
10268
|
+
showSearch: true,
|
|
10269
|
+
showArrow: true,
|
|
10270
|
+
maxTagCount: 1,
|
|
10271
|
+
optionFilterProp: 'children',
|
|
10272
|
+
filterOption: function filterOption(input, option) {
|
|
10273
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
10274
|
+
}
|
|
10275
|
+
}
|
|
10276
|
+
}
|
|
10277
|
+
}, {
|
|
10278
|
+
name: 'qp-categoryId-in',
|
|
10279
|
+
type: 'treeSelect',
|
|
10280
|
+
label: '类目',
|
|
10281
|
+
field: {
|
|
10282
|
+
type: 'treeSelect',
|
|
10283
|
+
props: {
|
|
10284
|
+
treeData: [],
|
|
10285
|
+
treeCheckable: true,
|
|
10286
|
+
showSearch: true,
|
|
10287
|
+
allowClear: true,
|
|
10288
|
+
showArrow: true,
|
|
10289
|
+
treeNodeFilterProp: 'title',
|
|
10290
|
+
treeDefaultExpandAll: true,
|
|
10291
|
+
maxTagCount: 1,
|
|
10292
|
+
placeholder: '请选择',
|
|
10293
|
+
style: {
|
|
10294
|
+
width: '100%'
|
|
10295
|
+
},
|
|
10296
|
+
dropdownStyle: {
|
|
10297
|
+
maxHeight: 400,
|
|
10298
|
+
maxWidth: 100,
|
|
10299
|
+
overflow: 'auto'
|
|
10300
|
+
}
|
|
10301
|
+
}
|
|
10302
|
+
}
|
|
10303
|
+
}, {
|
|
10304
|
+
name: 'qp-classId-in',
|
|
10305
|
+
type: 'select',
|
|
10306
|
+
label: '品类',
|
|
10307
|
+
field: {
|
|
10308
|
+
type: 'select',
|
|
10309
|
+
props: {
|
|
10310
|
+
mode: 'multiple',
|
|
10311
|
+
notFoundContent: '暂无数据',
|
|
10312
|
+
allowClear: true,
|
|
10313
|
+
showSearch: true,
|
|
10314
|
+
showArrow: true,
|
|
10315
|
+
maxTagCount: 1,
|
|
10316
|
+
optionFilterProp: 'children',
|
|
10317
|
+
filterOption: function filterOption(input, option) {
|
|
10318
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
10319
|
+
}
|
|
10320
|
+
}
|
|
10321
|
+
}
|
|
10322
|
+
}];
|
|
10323
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
|
|
10324
|
+
pageSize: 5000,
|
|
10325
|
+
currentPage: 1,
|
|
10326
|
+
'ctl-withAuth': true
|
|
10327
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/category/queryCategoryTree"), {
|
|
10328
|
+
pageSize: 5000,
|
|
10329
|
+
currentPage: 1
|
|
10330
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/class/withProperty"), {
|
|
10331
|
+
pageSize: 5000,
|
|
10332
|
+
currentPage: 1
|
|
10333
|
+
})]).then(function (x) {
|
|
10334
|
+
formatSource(x, 0, 2, tableSearchForm, ['id', 'name']);
|
|
10335
|
+
formatTreeDataSource(x, 1, 3, tableSearchForm);
|
|
10336
|
+
formatSource(x, 2, 4, tableSearchForm, ['id', 'name']);
|
|
10337
|
+
});
|
|
10338
|
+
modalTableProps = _objectSpread2({
|
|
10339
|
+
modalTableTitle: '选择商品(SPU) ',
|
|
10340
|
+
tableSearchForm: tableSearchForm,
|
|
10341
|
+
tableColumns: [{
|
|
10342
|
+
title: '序号',
|
|
10343
|
+
dataIndex: 'keyIndex',
|
|
10344
|
+
defaultSort: 0
|
|
10345
|
+
}, {
|
|
10346
|
+
title: '商品编码(SPU)',
|
|
10347
|
+
dataIndex: 'itemCode',
|
|
10348
|
+
defaultSort: 1
|
|
10349
|
+
}, {
|
|
10350
|
+
title: '商品名称(SPU) ',
|
|
10351
|
+
dataIndex: 'name',
|
|
10352
|
+
defaultSort: 2
|
|
10353
|
+
}, {
|
|
10354
|
+
title: '品牌',
|
|
10355
|
+
dataIndex: 'brandName',
|
|
10356
|
+
defaultSort: 3
|
|
10357
|
+
}, {
|
|
10358
|
+
title: '类目',
|
|
10359
|
+
dataIndex: 'categoryText',
|
|
10360
|
+
defaultSort: 4
|
|
10361
|
+
}, {
|
|
10362
|
+
title: '品类',
|
|
10363
|
+
dataIndex: 'className'
|
|
10364
|
+
}]
|
|
10365
|
+
}, modalTableBusProps);
|
|
10366
|
+
}
|
|
10367
|
+
// 新库存商品选择器spu
|
|
10368
|
+
if (type === 'spuCommodityWithProperty') {
|
|
10047
10369
|
selectProps = _objectSpread2({
|
|
10048
10370
|
placeholder: '输入spu编码或名称',
|
|
10049
10371
|
renderTableColumns: [{
|
|
@@ -10055,12 +10377,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10055
10377
|
}]
|
|
10056
10378
|
}, selectConfigProps);
|
|
10057
10379
|
requestConfig = _objectSpread2({
|
|
10058
|
-
url: "
|
|
10380
|
+
url: "/stock/item/doItemPageAll",
|
|
10381
|
+
method: 'POST',
|
|
10059
10382
|
filter: 'qp-itemCode,name-orGroup,like',
|
|
10060
10383
|
mappingTextField: 'name',
|
|
10061
10384
|
mappingValueField: 'itemCode',
|
|
10062
10385
|
otherParams: _objectSpread2({
|
|
10063
|
-
'qp-approveStatus-eq': 1,
|
|
10386
|
+
// 'qp-approveStatus-eq': 1, // 审核状态(0.待审批;1.审批通过;2.驳回;3.审批未通过)
|
|
10064
10387
|
sorter: 'desc-id'
|
|
10065
10388
|
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
10066
10389
|
sourceName: 'itemCode'
|
|
@@ -10135,6 +10458,56 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10135
10458
|
}
|
|
10136
10459
|
}
|
|
10137
10460
|
}
|
|
10461
|
+
}, {
|
|
10462
|
+
name: 'qp-year-in',
|
|
10463
|
+
label: '年份',
|
|
10464
|
+
field: {
|
|
10465
|
+
type: 'itemPropertySelector',
|
|
10466
|
+
props: {
|
|
10467
|
+
propertyCode: 'SX0000114',
|
|
10468
|
+
mode: 'multiple'
|
|
10469
|
+
}
|
|
10470
|
+
}
|
|
10471
|
+
}, {
|
|
10472
|
+
name: 'qp-season-in',
|
|
10473
|
+
label: '季节',
|
|
10474
|
+
field: {
|
|
10475
|
+
type: 'itemPropertySelector',
|
|
10476
|
+
props: {
|
|
10477
|
+
propertyCode: 'SX0000070',
|
|
10478
|
+
mode: 'multiple'
|
|
10479
|
+
}
|
|
10480
|
+
}
|
|
10481
|
+
}, {
|
|
10482
|
+
name: 'qp-zzdlbm-in',
|
|
10483
|
+
label: '大类',
|
|
10484
|
+
field: {
|
|
10485
|
+
type: 'itemPropertySelector',
|
|
10486
|
+
props: {
|
|
10487
|
+
propertyCode: 'SX0000071',
|
|
10488
|
+
mode: 'multiple'
|
|
10489
|
+
}
|
|
10490
|
+
}
|
|
10491
|
+
}, {
|
|
10492
|
+
name: 'qp-zzzlbm-in',
|
|
10493
|
+
label: '中类',
|
|
10494
|
+
field: {
|
|
10495
|
+
type: 'itemPropertySelector',
|
|
10496
|
+
props: {
|
|
10497
|
+
propertyCode: 'SX0000072',
|
|
10498
|
+
mode: 'multiple'
|
|
10499
|
+
}
|
|
10500
|
+
}
|
|
10501
|
+
}, {
|
|
10502
|
+
name: 'qp-zzxlbm-in',
|
|
10503
|
+
label: '小类',
|
|
10504
|
+
field: {
|
|
10505
|
+
type: 'itemPropertySelector',
|
|
10506
|
+
props: {
|
|
10507
|
+
propertyCode: 'SX0000110',
|
|
10508
|
+
mode: 'multiple'
|
|
10509
|
+
}
|
|
10510
|
+
}
|
|
10138
10511
|
}];
|
|
10139
10512
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
|
|
10140
10513
|
pageSize: 5000,
|
|
@@ -10177,7 +10550,8 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10177
10550
|
}, {
|
|
10178
10551
|
title: '品类',
|
|
10179
10552
|
dataIndex: 'className'
|
|
10180
|
-
}]
|
|
10553
|
+
}],
|
|
10554
|
+
noEmptySearchField: true
|
|
10181
10555
|
}, modalTableBusProps);
|
|
10182
10556
|
}
|
|
10183
10557
|
// 商品选择器skc
|
|
@@ -13690,16 +14064,18 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
13690
14064
|
modalProps = _useState2[0],
|
|
13691
14065
|
setModalProps = _useState2[1];
|
|
13692
14066
|
var handleOk = function handleOk() {
|
|
13693
|
-
var _dataValidationRef$cu;
|
|
14067
|
+
var _dataValidationRef$cu, _dataValidationRef$cu2;
|
|
13694
14068
|
// 方法获取当前组件内部的数据,然后进行自身的业务操作
|
|
13695
|
-
var resultData = (_dataValidationRef$cu = dataValidationRef.current) === null || _dataValidationRef$cu === void 0 ? void 0 : _dataValidationRef$cu.getValidateData();
|
|
13696
|
-
if (
|
|
13697
|
-
|
|
13698
|
-
|
|
13699
|
-
|
|
13700
|
-
|
|
13701
|
-
|
|
13702
|
-
|
|
14069
|
+
var resultData = (props === null || props === void 0 ? void 0 : props.notValid) ? (_dataValidationRef$cu = dataValidationRef.current) === null || _dataValidationRef$cu === void 0 ? void 0 : _dataValidationRef$cu.getData() : (_dataValidationRef$cu2 = dataValidationRef.current) === null || _dataValidationRef$cu2 === void 0 ? void 0 : _dataValidationRef$cu2.getValidateData();
|
|
14070
|
+
if (!!!(props === null || props === void 0 ? void 0 : props.notValid)) {
|
|
14071
|
+
if (!resultData.successData.length) {
|
|
14072
|
+
message$1.error("无校验通过数据,请校验数据");
|
|
14073
|
+
return;
|
|
14074
|
+
}
|
|
14075
|
+
if (resultData.failData.length) {
|
|
14076
|
+
message$1.error("\u6709".concat(resultData.failData.length, "\u6761\u6821\u9A8C\u5931\u8D25\u6570\u636E"));
|
|
14077
|
+
return;
|
|
14078
|
+
}
|
|
13703
14079
|
}
|
|
13704
14080
|
callbackHandleOk(resultData, function () {
|
|
13705
14081
|
modalProps.hideModal();
|
|
@@ -13779,7 +14155,7 @@ function getStorageVale(storageKeyString) {
|
|
|
13779
14155
|
return "";
|
|
13780
14156
|
}
|
|
13781
14157
|
|
|
13782
|
-
var _excluded$
|
|
14158
|
+
var _excluded$8 = ["ctx", "value", "valueName", "onChange", "onChangeName", "placeholder", "remoteSource", "initialValue", "treeCheckable", "showSearch", "maxTagCount", "multiple", "isChoose", "rootDisabled", "mode", "getPopupContainer", "labelInValue", "showArrow", "allowClear", "showCheckedStrategy", "style", "getTreeData", "disabled"];
|
|
13783
14159
|
var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
13784
14160
|
var _useState = useState([]),
|
|
13785
14161
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -13821,7 +14197,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13821
14197
|
} : _props$style,
|
|
13822
14198
|
getTreeData = props.getTreeData,
|
|
13823
14199
|
disabled = props.disabled,
|
|
13824
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
14200
|
+
restProps = _objectWithoutProperties(props, _excluded$8);
|
|
13825
14201
|
var url = remoteSource.url,
|
|
13826
14202
|
headers = remoteSource.headers,
|
|
13827
14203
|
_remoteSource$paramsK = remoteSource.paramsKey,
|
|
@@ -14247,7 +14623,7 @@ var index$2 = (function (props) {
|
|
|
14247
14623
|
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";
|
|
14248
14624
|
styleInject(css_248z$c);
|
|
14249
14625
|
|
|
14250
|
-
var _excluded$
|
|
14626
|
+
var _excluded$9 = ["children", "titleExtra", "title", "extra", "bordered"],
|
|
14251
14627
|
_excluded2$3 = ["children"];
|
|
14252
14628
|
var Field = function Field(_ref) {
|
|
14253
14629
|
var children = _ref.children,
|
|
@@ -14255,7 +14631,7 @@ var Field = function Field(_ref) {
|
|
|
14255
14631
|
title = _ref.title,
|
|
14256
14632
|
extra = _ref.extra,
|
|
14257
14633
|
bordered = _ref.bordered,
|
|
14258
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
14634
|
+
props = _objectWithoutProperties(_ref, _excluded$9);
|
|
14259
14635
|
var _React$useState = React$1.useState(true),
|
|
14260
14636
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
14261
14637
|
fieldGroupVisible = _React$useState2[0],
|
|
@@ -14382,7 +14758,7 @@ var ExportIcon = function ExportIcon(_ref) {
|
|
|
14382
14758
|
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";
|
|
14383
14759
|
styleInject(css_248z$d);
|
|
14384
14760
|
|
|
14385
|
-
var _excluded$
|
|
14761
|
+
var _excluded$a = ["className", "style"];
|
|
14386
14762
|
var Search$1 = Input.Search;
|
|
14387
14763
|
var DragHandle$1 = SortableHandle(function () {
|
|
14388
14764
|
return /*#__PURE__*/React$1.createElement("img", {
|
|
@@ -14800,7 +15176,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14800
15176
|
_this.DraggableBodyRow = function (_ref2) {
|
|
14801
15177
|
var className = _ref2.className,
|
|
14802
15178
|
style = _ref2.style,
|
|
14803
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
15179
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$a);
|
|
14804
15180
|
var sortDataSource = _this.state.sortDataSource;
|
|
14805
15181
|
// function findIndex base on Table rowKey props and should always be a right array index
|
|
14806
15182
|
var index = sortDataSource.findIndex(function (x) {
|
|
@@ -15154,7 +15530,7 @@ var TableSumComponent = (function (_ref) {
|
|
|
15154
15530
|
}));
|
|
15155
15531
|
});
|
|
15156
15532
|
|
|
15157
|
-
var _excluded$
|
|
15533
|
+
var _excluded$b = ["onResize", "width"],
|
|
15158
15534
|
_excluded2$4 = ["style", "columns", "tableCode", "appRequestConfig", "summary", "dynamicColumns", "scroll"];
|
|
15159
15535
|
var Text = Typography.Text;
|
|
15160
15536
|
var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
@@ -15258,7 +15634,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15258
15634
|
_this.ResizeableTitle = function (props) {
|
|
15259
15635
|
var onResize = props.onResize,
|
|
15260
15636
|
width = props.width,
|
|
15261
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
15637
|
+
restProps = _objectWithoutProperties(props, _excluded$b);
|
|
15262
15638
|
var _useState = useState(width),
|
|
15263
15639
|
_useState2 = _slicedToArray(_useState, 2),
|
|
15264
15640
|
innerWidth = _useState2[0],
|
|
@@ -15499,7 +15875,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15499
15875
|
}]);
|
|
15500
15876
|
}(React$1.Component);
|
|
15501
15877
|
|
|
15502
|
-
var _excluded$
|
|
15878
|
+
var _excluded$c = ["onResize", "width"],
|
|
15503
15879
|
_excluded2$5 = ["columns", "tableCode", "appRequestConfig", "summary", "dynamicColumns", "scroll"];
|
|
15504
15880
|
var Text$1 = Typography.Text;
|
|
15505
15881
|
var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
@@ -15609,7 +15985,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15609
15985
|
_this.ResizeableTitle = function (props) {
|
|
15610
15986
|
var onResize = props.onResize,
|
|
15611
15987
|
width = props.width,
|
|
15612
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
15988
|
+
restProps = _objectWithoutProperties(props, _excluded$c);
|
|
15613
15989
|
if (!width) {
|
|
15614
15990
|
return /*#__PURE__*/React$1.createElement("th", _objectSpread2({}, restProps));
|
|
15615
15991
|
}
|
|
@@ -15890,12 +16266,12 @@ var moreIcon = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D
|
|
|
15890
16266
|
var css_248z$g = "";
|
|
15891
16267
|
styleInject(css_248z$g);
|
|
15892
16268
|
|
|
15893
|
-
var _excluded$
|
|
16269
|
+
var _excluded$d = ["message", "type"];
|
|
15894
16270
|
var CommonAlert = (function (props) {
|
|
15895
16271
|
var message = props.message,
|
|
15896
16272
|
_props$type = props.type,
|
|
15897
16273
|
type = _props$type === void 0 ? 'info' : _props$type,
|
|
15898
|
-
reset = _objectWithoutProperties(props, _excluded$
|
|
16274
|
+
reset = _objectWithoutProperties(props, _excluded$d);
|
|
15899
16275
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
15900
16276
|
style: {
|
|
15901
16277
|
width: '100%',
|
|
@@ -15916,7 +16292,7 @@ var CommonAlert = (function (props) {
|
|
|
15916
16292
|
}, reset)));
|
|
15917
16293
|
});
|
|
15918
16294
|
|
|
15919
|
-
var _excluded$
|
|
16295
|
+
var _excluded$e = ["children"];
|
|
15920
16296
|
var iconMap = {
|
|
15921
16297
|
edit: /*#__PURE__*/React$1.createElement("img", {
|
|
15922
16298
|
src: editIcon
|
|
@@ -15938,7 +16314,7 @@ var index$3 = (function (props) {
|
|
|
15938
16314
|
_useState2 = _slicedToArray(_useState, 1),
|
|
15939
16315
|
id = _useState2[0];
|
|
15940
16316
|
var children = props.children,
|
|
15941
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
16317
|
+
restProps = _objectWithoutProperties(props, _excluded$e);
|
|
15942
16318
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
15943
16319
|
id: id,
|
|
15944
16320
|
className: 'detail_page_wrapper'
|
|
@@ -16161,10 +16537,10 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16161
16537
|
return true;
|
|
16162
16538
|
});
|
|
16163
16539
|
|
|
16164
|
-
var css_248z$h = ".bs_home_page_head_wrapper {\n
|
|
16540
|
+
var css_248z$h = ".bs_home_page_head_wrapper {\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";
|
|
16165
16541
|
styleInject(css_248z$h);
|
|
16166
16542
|
|
|
16167
|
-
var _excluded$
|
|
16543
|
+
var _excluded$f = ["children"];
|
|
16168
16544
|
var index$4 = (function (props) {
|
|
16169
16545
|
var _useLocation = useLocation(),
|
|
16170
16546
|
pathname = _useLocation.pathname;
|
|
@@ -16172,7 +16548,7 @@ var index$4 = (function (props) {
|
|
|
16172
16548
|
_useState2 = _slicedToArray(_useState, 1),
|
|
16173
16549
|
id = _useState2[0];
|
|
16174
16550
|
var children = props.children,
|
|
16175
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
16551
|
+
restProps = _objectWithoutProperties(props, _excluded$f);
|
|
16176
16552
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
16177
16553
|
id: id,
|
|
16178
16554
|
className: 'home_page_wrapper'
|
|
@@ -16249,7 +16625,7 @@ var HeaderWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16249
16625
|
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";
|
|
16250
16626
|
styleInject(css_248z$i);
|
|
16251
16627
|
|
|
16252
|
-
var _excluded$
|
|
16628
|
+
var _excluded$g = ["className", "style"];
|
|
16253
16629
|
var DragHandle$2 = SortableHandle(function () {
|
|
16254
16630
|
return /*#__PURE__*/React$1.createElement("img", {
|
|
16255
16631
|
width: 25,
|
|
@@ -16687,7 +17063,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16687
17063
|
_this.DraggableBodyRow = function (_ref2) {
|
|
16688
17064
|
var className = _ref2.className,
|
|
16689
17065
|
style = _ref2.style,
|
|
16690
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
17066
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$g);
|
|
16691
17067
|
var sortDataSource = _this.state.sortDataSource;
|
|
16692
17068
|
// function findIndex base on Table rowKey props and should always be a right array index
|
|
16693
17069
|
var index = sortDataSource.findIndex(function (x) {
|
|
@@ -16879,7 +17255,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16879
17255
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
16880
17256
|
className: 'sort_table_wrapper'
|
|
16881
17257
|
}, visible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
16882
|
-
title: "\
|
|
17258
|
+
title: "\u5C55\u793A\u5217\u8BBE\u7F6E",
|
|
16883
17259
|
wrapClassName: 'sort_table_wrapper',
|
|
16884
17260
|
width: 810,
|
|
16885
17261
|
visible: visible,
|
|
@@ -16916,7 +17292,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16916
17292
|
className: 'sort_table_column_wrapper'
|
|
16917
17293
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
16918
17294
|
className: 'sort_table_column_count'
|
|
16919
|
-
}, /*#__PURE__*/React$1.createElement("span", null, "\u52FE\u9009\u4F60\u60F3\
|
|
17295
|
+
}, /*#__PURE__*/React$1.createElement("span", null, "\u52FE\u9009\u4F60\u60F3\u5C55\u793A\u7684\u8868\u683C\u5217")), /*#__PURE__*/React$1.createElement("div", {
|
|
16920
17296
|
className: 'sort_table_column'
|
|
16921
17297
|
}, /*#__PURE__*/React$1.createElement(Input, {
|
|
16922
17298
|
prefix: /*#__PURE__*/React$1.createElement(SearchOutlined, {
|
|
@@ -17011,7 +17387,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17011
17387
|
className: 'sort_table_content_wrapper'
|
|
17012
17388
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
17013
17389
|
className: 'sort_table_content_count'
|
|
17014
|
-
}, /*#__PURE__*/React$1.createElement("span", null, "\u5DF2\u9009\u62E9\u7684\
|
|
17390
|
+
}, /*#__PURE__*/React$1.createElement("span", null, "\u5DF2\u9009\u62E9\u7684\u5C55\u793A\u5217\u6392\u5E8F")), /*#__PURE__*/React$1.createElement("div", {
|
|
17015
17391
|
className: 'sort_table_content'
|
|
17016
17392
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
17017
17393
|
style: {
|
|
@@ -17057,7 +17433,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17057
17433
|
}]);
|
|
17058
17434
|
}(React$1.Component);
|
|
17059
17435
|
|
|
17060
|
-
var _excluded$
|
|
17436
|
+
var _excluded$h = ["className", "style"];
|
|
17061
17437
|
var DragHandle$3 = SortableHandle(function () {
|
|
17062
17438
|
return /*#__PURE__*/React$1.createElement("img", {
|
|
17063
17439
|
width: 25,
|
|
@@ -17310,7 +17686,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17310
17686
|
_this.DraggableBodyRow = function (_ref2) {
|
|
17311
17687
|
var className = _ref2.className,
|
|
17312
17688
|
style = _ref2.style,
|
|
17313
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
17689
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$h);
|
|
17314
17690
|
var sortDataSource = _this.state.sortDataSource;
|
|
17315
17691
|
var index = sortDataSource.findIndex(function (x) {
|
|
17316
17692
|
return x.name === restProps['data-row-key'];
|
|
@@ -17609,13 +17985,13 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17609
17985
|
var css_248z$j = "#bs-sula-query-table .ant-table-title + .ant-table-container table {\n visibility: unset !important;\n}\n";
|
|
17610
17986
|
styleInject(css_248z$j);
|
|
17611
17987
|
|
|
17612
|
-
var _excluded$
|
|
17988
|
+
var _excluded$i = ["onResize", "width"];
|
|
17613
17989
|
var MemoQueryTable = /*#__PURE__*/React$1.memo(QueryTable);
|
|
17614
17990
|
var Text$2 = Typography.Text;
|
|
17615
17991
|
var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
17616
17992
|
var onResize = props.onResize,
|
|
17617
17993
|
width = props.width,
|
|
17618
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
17994
|
+
restProps = _objectWithoutProperties(props, _excluded$i);
|
|
17619
17995
|
var _useState = useState(width),
|
|
17620
17996
|
_useState2 = _slicedToArray(_useState, 2),
|
|
17621
17997
|
innerWidth = _useState2[0],
|
|
@@ -17884,7 +18260,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17884
18260
|
}
|
|
17885
18261
|
});
|
|
17886
18262
|
}
|
|
17887
|
-
handleBssulaColumnsSpecialParams(d);
|
|
18263
|
+
// handleBssulaColumnsSpecialParams(d);
|
|
17888
18264
|
});
|
|
17889
18265
|
setCommonRenderFn(props.columns);
|
|
17890
18266
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
@@ -17914,7 +18290,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17914
18290
|
var showColumns = getSettingFieldOrColumn(isReset ? [] : columnConfig, columns, 'columns');
|
|
17915
18291
|
showColumns.forEach(function (item, index) {
|
|
17916
18292
|
item.width = item.width || getItemDefaultWidth(item);
|
|
17917
|
-
handleBssulaColumnsSpecialParams(item);
|
|
18293
|
+
// handleBssulaColumnsSpecialParams(item);
|
|
17918
18294
|
item.onHeaderCell = function (column) {
|
|
17919
18295
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
17920
18296
|
width: typeof column.width === 'number' ? column.width : parseWidth(column.width),
|
|
@@ -17927,7 +18303,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17927
18303
|
var showExportColumns = getSettingFieldOrColumn(exportColumnConfig, columns, 'columns');
|
|
17928
18304
|
showExportColumns.forEach(function (item, index) {
|
|
17929
18305
|
item.width = item.width || getItemDefaultWidth(item);
|
|
17930
|
-
handleBssulaColumnsSpecialParams(item);
|
|
18306
|
+
// handleBssulaColumnsSpecialParams(item);
|
|
17931
18307
|
item.onHeaderCell = function (column) {
|
|
17932
18308
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
17933
18309
|
width: typeof column.width === 'number' ? column.width : parseInt(column.width.replace('px', '')),
|
|
@@ -18154,9 +18530,9 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18154
18530
|
newColumns[index] = _objectSpread2(_objectSpread2({}, newColumns[index]), {}, {
|
|
18155
18531
|
width: size.width
|
|
18156
18532
|
});
|
|
18157
|
-
newColumns.forEach(
|
|
18158
|
-
|
|
18159
|
-
});
|
|
18533
|
+
// newColumns.forEach((d: any) => {
|
|
18534
|
+
// handleBssulaColumnsSpecialParams(d);
|
|
18535
|
+
// });
|
|
18160
18536
|
return _toConsumableArray(newColumns);
|
|
18161
18537
|
});
|
|
18162
18538
|
};
|
|
@@ -20692,7 +21068,7 @@ var NoFoundPage = function NoFoundPage(props) {
|
|
|
20692
21068
|
}));
|
|
20693
21069
|
};
|
|
20694
21070
|
|
|
20695
|
-
var _excluded$
|
|
21071
|
+
var _excluded$j = ["route"];
|
|
20696
21072
|
var TabPane = Tabs.TabPane;
|
|
20697
21073
|
var getId = function getId(str) {
|
|
20698
21074
|
// 找到最后一个 / 的位置
|
|
@@ -21633,7 +22009,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21633
22009
|
}); // 添加数据大屏
|
|
21634
22010
|
var _this$props3 = this.props,
|
|
21635
22011
|
route = _this$props3.route,
|
|
21636
|
-
restPrpos = _objectWithoutProperties(_this$props3, _excluded$
|
|
22012
|
+
restPrpos = _objectWithoutProperties(_this$props3, _excluded$j);
|
|
21637
22013
|
var exist = route.routes.find(function (route) {
|
|
21638
22014
|
return route.path === '/homePage/data-show';
|
|
21639
22015
|
});
|
|
@@ -22606,10 +22982,10 @@ var index$6 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
22606
22982
|
}))))));
|
|
22607
22983
|
});
|
|
22608
22984
|
|
|
22609
|
-
var _excluded$
|
|
22985
|
+
var _excluded$k = ["children"];
|
|
22610
22986
|
var Drawer = (function (props) {
|
|
22611
22987
|
var children = props.children,
|
|
22612
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
22988
|
+
restProps = _objectWithoutProperties(props, _excluded$k);
|
|
22613
22989
|
return /*#__PURE__*/React$1.createElement(Drawer$1, _objectSpread2({
|
|
22614
22990
|
mask: true,
|
|
22615
22991
|
closable: false,
|
|
@@ -31388,7 +31764,7 @@ var formatListName = function formatListName(list, columns) {
|
|
|
31388
31764
|
});
|
|
31389
31765
|
};
|
|
31390
31766
|
|
|
31391
|
-
var _excluded$
|
|
31767
|
+
var _excluded$l = ["sorter"];
|
|
31392
31768
|
/**
|
|
31393
31769
|
* 删掉查询条件的qp- 和 -eq等
|
|
31394
31770
|
* @param {object} data
|
|
@@ -31471,7 +31847,7 @@ var remoteFetch = function remoteFetch(requestConfig, coloumns) {
|
|
|
31471
31847
|
var _requestConfig$method;
|
|
31472
31848
|
var params = _ref.params;
|
|
31473
31849
|
var sorter = params.sorter,
|
|
31474
|
-
paramsTemp = _objectWithoutProperties(params, _excluded$
|
|
31850
|
+
paramsTemp = _objectWithoutProperties(params, _excluded$l);
|
|
31475
31851
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, requestConfig.params), requestConfig.body), _.omit(paramsTemp, ['filters', 'current'])), (paramsTemp === null || paramsTemp === void 0 ? void 0 : paramsTemp.filters) || {}), {
|
|
31476
31852
|
currentPage: (paramsTemp === null || paramsTemp === void 0 ? void 0 : paramsTemp.currentPage) || paramsTemp.current || 1
|
|
31477
31853
|
});
|
|
@@ -38639,14 +39015,14 @@ var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
38639
39015
|
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";
|
|
38640
39016
|
styleInject(css_248z$y);
|
|
38641
39017
|
|
|
38642
|
-
var _excluded$
|
|
39018
|
+
var _excluded$m = ["titleExtra", "header", "showArrow"];
|
|
38643
39019
|
var Panel = Collapse.Panel;
|
|
38644
39020
|
var ExtendedPanel = function ExtendedPanel(_ref) {
|
|
38645
39021
|
var titleExtra = _ref.titleExtra,
|
|
38646
39022
|
header = _ref.header,
|
|
38647
39023
|
_ref$showArrow = _ref.showArrow,
|
|
38648
39024
|
showArrow = _ref$showArrow === void 0 ? false : _ref$showArrow,
|
|
38649
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
39025
|
+
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
38650
39026
|
var renderHeader = function renderHeader() {
|
|
38651
39027
|
return /*#__PURE__*/React$1.createElement(Space, {
|
|
38652
39028
|
align: "center"
|
|
@@ -38670,11 +39046,11 @@ var ExtendedPanel = function ExtendedPanel(_ref) {
|
|
|
38670
39046
|
}), props.children);
|
|
38671
39047
|
};
|
|
38672
39048
|
|
|
38673
|
-
var _excluded$
|
|
39049
|
+
var _excluded$n = ["children", "bordered"];
|
|
38674
39050
|
var ExtendedCollapse = function ExtendedCollapse(props) {
|
|
38675
39051
|
var children = props.children,
|
|
38676
39052
|
bordered = props.bordered,
|
|
38677
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
39053
|
+
restProps = _objectWithoutProperties(props, _excluded$n);
|
|
38678
39054
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
38679
39055
|
className: classNames({
|
|
38680
39056
|
'bs-collapse-wrap': true,
|