@bit-sun/business-component 4.0.11-alpha.9 → 4.0.12-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +2 -4
- package/dist/components/Functional/SearchSelect/utils.d.ts +4 -0
- package/dist/index.esm.js +637 -424
- package/dist/index.js +638 -425
- package/package.json +2 -2
- package/src/components/Business/BsLayouts/index.tsx +17 -0
- package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +45 -17
- package/src/components/Business/BsSulaQueryTable/index.less +21 -38
- package/src/components/Business/BsSulaQueryTable/setting.tsx +5 -5
- package/src/components/Business/DetailPageWrapper/index.less +10 -1
- package/src/components/Business/DetailPageWrapper/index.tsx +27 -2
- package/src/components/Business/HomePageWrapper/index.less +9 -0
- package/src/components/Business/HomePageWrapper/index.tsx +1 -1
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +66 -25
- package/src/components/Business/SearchSelect/index.md +6 -5
- package/src/components/Business/columnSettingTable/columnSetting.tsx +5 -5
- package/src/components/Business/columnSettingTable/index.less +33 -71
- package/src/components/Functional/QueryMutipleInput/index.tsx +2 -0
- package/src/components/Functional/SearchSelect/index.less +22 -5
- package/src/components/Functional/SearchSelect/index.tsx +146 -67
- package/src/components/Functional/SearchSelect/utils.ts +12 -1
- package/src/components/Functional/TreeSearchSelect/index.tsx +1 -1
- package/src/plugin/TableColumnSetting/index.less +38 -70
- package/src/plugin/TableColumnSetting/index.tsx +5 -5
- package/src/styles/bsDefault.less +130 -123
package/dist/index.js
CHANGED
|
@@ -1082,13 +1082,13 @@ var tableColumnsImage = function tableColumnsImage(url, paramsObj) {
|
|
|
1082
1082
|
imgHtml.innerHTML = str;
|
|
1083
1083
|
}
|
|
1084
1084
|
// 测试使用 测试类型缩小 end
|
|
1085
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, url ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
1085
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, url ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1086
1086
|
className: "clomnsImg"
|
|
1087
1087
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Image, _objectSpread2({
|
|
1088
1088
|
src: url,
|
|
1089
1089
|
width: "16px",
|
|
1090
1090
|
height: "16px"
|
|
1091
|
-
}, paramsObj)))) : (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
1091
|
+
}, paramsObj)))) : ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1092
1092
|
className: "clomnsImg2"
|
|
1093
1093
|
}, /*#__PURE__*/React__default['default'].createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1094
1094
|
src: noImg
|
|
@@ -1227,7 +1227,7 @@ function downloadExcel(data, fileName, isResUrl) {
|
|
|
1227
1227
|
}
|
|
1228
1228
|
save_link.click();
|
|
1229
1229
|
}
|
|
1230
|
-
var
|
|
1230
|
+
var formatter = function formatter(data, parentAuthority, parentName) {
|
|
1231
1231
|
return data.map(function (item) {
|
|
1232
1232
|
if (!item.name || !item.path) {
|
|
1233
1233
|
return null;
|
|
@@ -1247,7 +1247,7 @@ var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1247
1247
|
authority: item.authority || parentAuthority
|
|
1248
1248
|
});
|
|
1249
1249
|
if (item.routes) {
|
|
1250
|
-
var children =
|
|
1250
|
+
var children = formatter(item.routes, item.authority, locale);
|
|
1251
1251
|
// Reduce memory usage
|
|
1252
1252
|
result.children = children;
|
|
1253
1253
|
}
|
|
@@ -1257,7 +1257,7 @@ var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1257
1257
|
return item;
|
|
1258
1258
|
});
|
|
1259
1259
|
};
|
|
1260
|
-
var memoizeOneFormatter = memoizeOne__default['default'](
|
|
1260
|
+
var memoizeOneFormatter = memoizeOne__default['default'](formatter, isEqual__default['default']);
|
|
1261
1261
|
var go2BackAndClose = function go2BackAndClose(backHistoryPath) {
|
|
1262
1262
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1263
1263
|
if (backHistoryPath) {
|
|
@@ -1566,7 +1566,7 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1566
1566
|
// sheepMap是表头字段中英文映射
|
|
1567
1567
|
// sheetCount:表的数量,默认一张
|
|
1568
1568
|
var resolveFile = /*#__PURE__*/function () {
|
|
1569
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1569
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1570
1570
|
var config,
|
|
1571
1571
|
data,
|
|
1572
1572
|
_args = arguments;
|
|
@@ -1605,7 +1605,7 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1605
1605
|
}();
|
|
1606
1606
|
//读取文件
|
|
1607
1607
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1608
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1608
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1609
1609
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1610
1610
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1611
1611
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -1698,14 +1698,14 @@ var keyToWord = function keyToWord(data, fieldMapping) {
|
|
|
1698
1698
|
/**---------------------数据写入excel-------结束------------------------*/
|
|
1699
1699
|
|
|
1700
1700
|
// 获取树平行结构
|
|
1701
|
-
var
|
|
1701
|
+
var coverToParallel = function coverToParallel(treeData, result, chilKey) {
|
|
1702
1702
|
var childrenKey = chilKey || 'children';
|
|
1703
1703
|
treeData.forEach(function (el) {
|
|
1704
1704
|
var _el$childrenKey;
|
|
1705
1705
|
result.push(el);
|
|
1706
1706
|
if ((el === null || el === void 0 ? void 0 : el[childrenKey]) && (el === null || el === void 0 ? void 0 : (_el$childrenKey = el[childrenKey]) === null || _el$childrenKey === void 0 ? void 0 : _el$childrenKey.length) > 0) {
|
|
1707
1707
|
// 子级递归
|
|
1708
|
-
|
|
1708
|
+
coverToParallel(el === null || el === void 0 ? void 0 : el[childrenKey], result, chilKey);
|
|
1709
1709
|
}
|
|
1710
1710
|
});
|
|
1711
1711
|
return result;
|
|
@@ -1982,13 +1982,13 @@ var tableColumnsImage$1 = function tableColumnsImage(url, paramsObj) {
|
|
|
1982
1982
|
imgHtml.innerHTML = str;
|
|
1983
1983
|
}
|
|
1984
1984
|
// 测试使用 测试类型缩小 end
|
|
1985
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, url ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
1985
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, url ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1986
1986
|
className: "clomnsImg"
|
|
1987
1987
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Image, _objectSpread2({
|
|
1988
1988
|
src: url,
|
|
1989
1989
|
width: "16px",
|
|
1990
1990
|
height: "16px"
|
|
1991
|
-
}, paramsObj)))) : (/*#__PURE__*/React__default['default'].createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1991
|
+
}, paramsObj)))) : ( /*#__PURE__*/React__default['default'].createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1992
1992
|
src: noImg
|
|
1993
1993
|
}))));
|
|
1994
1994
|
};
|
|
@@ -2050,7 +2050,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2050
2050
|
}
|
|
2051
2051
|
});
|
|
2052
2052
|
};
|
|
2053
|
-
var menu = /*#__PURE__*/React__default['default'].createElement(antd.Menu, null, /*#__PURE__*/React__default['default'].createElement(antd.Menu.Item, null, type === 'input' && (/*#__PURE__*/React__default['default'].createElement(antd.Input, _objectSpread2({
|
|
2053
|
+
var menu = /*#__PURE__*/React__default['default'].createElement(antd.Menu, null, /*#__PURE__*/React__default['default'].createElement(antd.Menu.Item, null, type === 'input' && ( /*#__PURE__*/React__default['default'].createElement(antd.Input, _objectSpread2({
|
|
2054
2054
|
disabled: disabled,
|
|
2055
2055
|
onChange: function onChange(e) {
|
|
2056
2056
|
var v = e.target.value;
|
|
@@ -2060,7 +2060,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2060
2060
|
width: 170
|
|
2061
2061
|
},
|
|
2062
2062
|
value: inputValue
|
|
2063
|
-
}, inpProps))), type === 'number' && (/*#__PURE__*/React__default['default'].createElement(antd.InputNumber, _objectSpread2({
|
|
2063
|
+
}, inpProps))), type === 'number' && ( /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, _objectSpread2({
|
|
2064
2064
|
disabled: disabled,
|
|
2065
2065
|
onBlur: function onBlur(e) {
|
|
2066
2066
|
var v = parseFloat(e.target.value);
|
|
@@ -2439,16 +2439,16 @@ var handleExport = function handleExport(type, params, url, methods, fileName, p
|
|
|
2439
2439
|
var handleExportBarCode = handleExport;
|
|
2440
2440
|
var getBreadcrumbNameMap = function getBreadcrumbNameMap(menuData) {
|
|
2441
2441
|
var routerMap = {};
|
|
2442
|
-
var
|
|
2442
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
2443
2443
|
data.forEach(function (menuItem) {
|
|
2444
2444
|
if (menuItem.children) {
|
|
2445
|
-
|
|
2445
|
+
flattenMenuData(menuItem.children);
|
|
2446
2446
|
}
|
|
2447
2447
|
// Reduce memory usage
|
|
2448
2448
|
routerMap[menuItem.path] = menuItem;
|
|
2449
2449
|
});
|
|
2450
2450
|
};
|
|
2451
|
-
|
|
2451
|
+
flattenMenuData(menuData);
|
|
2452
2452
|
return routerMap;
|
|
2453
2453
|
};
|
|
2454
2454
|
var ergodicMenuRoutes = function ergodicMenuRoutes(routes) {
|
|
@@ -2591,7 +2591,7 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2591
2591
|
return request__default['default'](url, parms).then(handleResponseData);
|
|
2592
2592
|
};
|
|
2593
2593
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2594
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2594
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2595
2595
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2596
2596
|
while (1) switch (_context.prev = _context.next) {
|
|
2597
2597
|
case 0:
|
|
@@ -3265,7 +3265,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3265
3265
|
placement: "bottomLeft"
|
|
3266
3266
|
}, /*#__PURE__*/React__default['default'].createElement("a", null, /*#__PURE__*/React__default['default'].createElement(icons.ProfileTwoTone, null))), /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
3267
3267
|
title: /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4F7F\u7528\u6307\u5357\uFF1A"), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].createElement("span", null, "1\u3001\u62D6\u52A8\u6570\u636E\u9879\uFF0C\u4EE5\u9002\u914D\u6E90\u6570\u636E\u7684\u987A\u5E8F\uFF0C\u5982\u60A8Excel\u4E2D\u6570\u636E\u6392\u5E8F\u4F9D\u6B21\u4E3A\u7F16\u7801\u3001\u4EF7\u683C\u548C\u6570\u91CF\uFF0C\u5219\u60A8\u4E5F\u53EF\u4EE5\u5C06\u6570\u636E\u9879\u7684\u987A\u5E8F\u8C03\u6574\u4E3A\u4E00\u81F4"), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].createElement("span", null, "2\u3001\u590D\u5236\u6587\u4EF6\u6570\u636E\uFF08\u591A\u5217\u4E00\u8D77\uFF09\uFF0C\u5728\u6587\u672C\u6846\u5185\u8FDB\u884C\u7C98\u8D34"), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].createElement("span", null, "3\u3001\u70B9\u51FB\u8BC6\u522B\u6309\u94AE\u8FDB\u884C\u6570\u636E\u6821\u9A8C\uFF0C\u5982\u5168\u90E8\u6B63\u786E\uFF0C\u5219\u70B9\u51FB\u5F55\u5165\u6309\u94AE\u53EF\u5F55\u5165\u6570\u636E\uFF0C\u5982\u5B58\u5728\u9519\u8BEF\u6570\u636E\uFF0C\u5219\u9700\u4FEE\u6539\u540E\u518D\u8FDB\u884C\u5F55\u5165"))
|
|
3268
|
-
}, /*#__PURE__*/React__default['default'].createElement(icons.ExclamationCircleOutlined, null))), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !notExcelImport && (/*#__PURE__*/React__default['default'].createElement(antd.Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React__default['default'].createElement(antd.Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React__default['default'].createElement(antd.Dropdown, {
|
|
3268
|
+
}, /*#__PURE__*/React__default['default'].createElement(icons.ExclamationCircleOutlined, null))), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !notExcelImport && ( /*#__PURE__*/React__default['default'].createElement(antd.Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React__default['default'].createElement(antd.Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React__default['default'].createElement(antd.Dropdown, {
|
|
3269
3269
|
trigger: ['click'],
|
|
3270
3270
|
overlay: this.menuList,
|
|
3271
3271
|
placement: "bottomRight"
|
|
@@ -3940,7 +3940,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
3940
3940
|
placement: "bottomLeft"
|
|
3941
3941
|
}, /*#__PURE__*/React__default['default'].createElement("a", null, /*#__PURE__*/React__default['default'].createElement(icons.ProfileTwoTone, null))), /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
3942
3942
|
title: /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4F7F\u7528\u6307\u5357\uFF1A"), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].createElement("span", null, "1\u3001\u62D6\u52A8\u6570\u636E\u9879\uFF0C\u4EE5\u9002\u914D\u6E90\u6570\u636E\u7684\u987A\u5E8F\uFF0C\u5982\u60A8Excel\u4E2D\u6570\u636E\u6392\u5E8F\u4F9D\u6B21\u4E3A\u7F16\u7801\u3001\u4EF7\u683C\u548C\u6570\u91CF\uFF0C\u5219\u60A8\u4E5F\u53EF\u4EE5\u5C06\u6570\u636E\u9879\u7684\u987A\u5E8F\u8C03\u6574\u4E3A\u4E00\u81F4"), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].createElement("span", null, "2\u3001\u590D\u5236\u6587\u4EF6\u6570\u636E\uFF08\u591A\u5217\u4E00\u8D77\uFF09\uFF0C\u5728\u6587\u672C\u6846\u5185\u8FDB\u884C\u7C98\u8D34"), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].createElement("span", null, "3\u3001\u70B9\u51FB\u8BC6\u522B\u6309\u94AE\u8FDB\u884C\u6570\u636E\u6821\u9A8C\uFF0C\u5982\u5168\u90E8\u6B63\u786E\uFF0C\u5219\u70B9\u51FB\u5F55\u5165\u6309\u94AE\u53EF\u5F55\u5165\u6570\u636E\uFF0C\u5982\u5B58\u5728\u9519\u8BEF\u6570\u636E\uFF0C\u5219\u9700\u4FEE\u6539\u540E\u518D\u8FDB\u884C\u5F55\u5165"))
|
|
3943
|
-
}, /*#__PURE__*/React__default['default'].createElement(icons.ExclamationCircleOutlined, null))), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !notExcelImport && (/*#__PURE__*/React__default['default'].createElement(antd.Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React__default['default'].createElement(antd.Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React__default['default'].createElement(antd.Dropdown, {
|
|
3943
|
+
}, /*#__PURE__*/React__default['default'].createElement(icons.ExclamationCircleOutlined, null))), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !notExcelImport && ( /*#__PURE__*/React__default['default'].createElement(antd.Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React__default['default'].createElement(antd.Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React__default['default'].createElement(antd.Dropdown, {
|
|
3944
3944
|
trigger: ['click'],
|
|
3945
3945
|
overlay: this.menuList,
|
|
3946
3946
|
placement: "bottomRight"
|
|
@@ -3999,6 +3999,10 @@ var QueryMutipleInput = function QueryMutipleInput(_ref) {
|
|
|
3999
3999
|
}, [value]);
|
|
4000
4000
|
var showModal = function showModal() {
|
|
4001
4001
|
setIsModalVisible(true);
|
|
4002
|
+
//弹窗打开时 默认搜索内容换行显示
|
|
4003
|
+
setPopValue(function (data) {
|
|
4004
|
+
return data.replace(/,/g, '\n');
|
|
4005
|
+
});
|
|
4002
4006
|
};
|
|
4003
4007
|
var handleOk = function handleOk() {
|
|
4004
4008
|
formaData(popvalue);
|
|
@@ -4094,14 +4098,15 @@ function ToCDB(str) {
|
|
|
4094
4098
|
return tmp;
|
|
4095
4099
|
}
|
|
4096
4100
|
|
|
4097
|
-
var css_248z$5 = ".search_select_show {\n display: flex;\n}\n.search_select_show .ant-select-clear {\n right: 33px;\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}\n.search_select_dropdown_table .ant-table-cell .ant-table-selection-column .ant-radio,\n.search_select_dropdown_table table tr td.ant-table-selection-column .ant-radio-wrapper {\n display: none;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table {\n font-family: MiSans-Regular;\n font-weight: 400;\n font-size: 12px;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table thead > tr > th {\n color: #7F7F7F;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper {\n justify-content: center;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table tbody > tr > td {\n color: #333333;\n}\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-body > table > tbody > tr > td.ant-table-selection-column,\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-header > table > thead > tr > th.ant-table-selection-column {\n display: none;\n}\n.search_select_modal_wrapper .ant-modal {\n top: 60px;\n}\n.search_select_modal_wrapper .ant-modal-header {\n padding: 6px 0px 6px 16px;\n}\n.search_select_modal_wrapper .ant-modal-header .ant-modal-title {\n height: 20px;\n color: #000000;\n line-height: 20px;\n}\n.search_select_modal_wrapper .ant-modal-close-x {\n width: 32px;\n height: 32px;\n line-height: 32px;\n}\n.search_select_modal_wrapper .ant-modal-body {\n padding: 0px;\n background: #F3F3F3;\n height:
|
|
4101
|
+
var css_248z$5 = ".search_select_show {\n display: flex;\n}\n.search_select_show .ant-select-clear {\n right: 33px;\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 background: #fafafa;\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}\n.search_select_expand_button_disabled:hover {\n background-color: transparent;\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.search_select_dropdown_table .ant-table-cell .ant-table-selection-column .ant-radio,\n.search_select_dropdown_table table tr td.ant-table-selection-column .ant-radio-wrapper {\n display: none;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table {\n font-family: MiSans-Regular;\n font-weight: 400;\n font-size: 12px;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table thead > tr > th {\n color: #7F7F7F;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper {\n justify-content: center;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table tbody > tr > td {\n color: #333333;\n}\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-body > table > tbody > tr > td.ant-table-selection-column,\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-header > table > thead > tr > th.ant-table-selection-column {\n display: none;\n}\n.search_select_modal_wrapper .ant-modal {\n top: 60px;\n}\n.search_select_modal_wrapper .ant-modal-header {\n padding: 6px 0px 6px 16px;\n}\n.search_select_modal_wrapper .ant-modal-header .ant-modal-title {\n height: 20px;\n color: #000000;\n line-height: 20px;\n}\n.search_select_modal_wrapper .ant-modal-close-x {\n width: 32px;\n height: 32px;\n line-height: 32px;\n}\n.search_select_modal_wrapper .ant-modal-body {\n padding: 0px;\n background: #F3F3F3;\n height: calc(100vh - 235px);\n overflow: hidden;\n}\n.search_select_modal_wrapper .ant-modal-footer .ant-btn.ant-btn-default {\n color: #005cff;\n border-color: #005cff;\n}\n.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary,\n.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary[disabled] {\n background: #005cff;\n border-color: #005cff;\n}\n.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary[disabled] {\n opacity: 0.5;\n color: #fff;\n}\n.search_select_wrapper {\n position: relative;\n font-size: 14px;\n}\n.search_select_wrapper_topForm .select_list_columns {\n width: 100%;\n padding: 10px 6px 2px 16px;\n background-color: #fff;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form {\n padding: 0;\n overflow: hidden;\n display: flex;\n align-items: flex-start;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item,\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-col .ant-space {\n font-size: 12px !important;\n margin-right: 0px !important;\n margin-bottom: 8px !important;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row.ant-form-item-row {\n background-color: #fafafa;\n border: 0.8px solid #D9D9D9;\n border-radius: 2px;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row {\n width: 100%;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-label {\n width: 110px;\n order: 1;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-label label {\n width: 100%;\n text-align: left;\n padding: 0 10px;\n color: #333333;\n font-size: 12px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control {\n order: 2;\n width: 100px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-input-affix-wrapper {\n border: 0;\n font-size: 12px;\n background-color: #fafafa;\n padding: 0 11px;\n height: 24px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-input-affix-wrapper .ant-input {\n background-color: #fafafa !important;\n border: 0;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-select-selector {\n border: 0 !important;\n background-color: #fafafa !important;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .query_input .ant-input {\n background-color: #fafafa !important;\n border: 0;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-btn-primary {\n background: #005cff;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form > .ant-row > .ant-col {\n order: 2;\n padding-right: 10px;\n}\n.search_select_wrapper_topForm .select_list_button_space {\n margin-right: 10px;\n}\n.search_select_wrapper_bottomTable {\n margin: 10px;\n display: flex;\n justify-content: space-between;\n}\n.search_select_wrapper_bottomTable_wrapLeft1,\n.search_select_wrapper_bottomTable_wrapLeft2,\n.search_select_wrapper_bottomTable_wrapRight {\n background: #fff;\n width: calc(50% - 5px);\n}\n.search_select_wrapper_bottomTable_wrapLeft1 {\n width: 100%;\n}\n.search_select_wrapper_bottomTable_wrapRight {\n margin-left: 10px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav {\n margin: 0;\n padding: 6px 18.5px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-nav-wrap {\n height: 28px;\n font-size: 14px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-tab {\n padding: 4px 0;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-ink-bar {\n left: 3px !important;\n width: 40px !important;\n background: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-extra-content > span {\n color: #005cff;\n cursor: pointer;\n}\n.search_select_wrapper_bottomTable .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {\n color: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder {\n padding: 10px 10px 7px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder .ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content .ant-table-thead > tr > th {\n color: #7F7F7F;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder .ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content .ant-table-thead .ant-table-selection .ant-checkbox-wrapper {\n justify-content: center;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder .ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content .ant-table.ant-table-small .ant-table-tbody > tr > td {\n color: #333333;\n}\n.search_select_wrapper_bottomTable .ant-checkbox-checked .ant-checkbox-inner {\n color: #005cff;\n background: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-pagination-item-active a {\n color: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-pagination-item-active {\n border-color: #005cff;\n}\n.searchSelectSpin > div {\n height: 300px !important;\n}\n";
|
|
4098
4102
|
styleInject(css_248z$5);
|
|
4099
4103
|
|
|
4104
|
+
var columnsPerRow = 4; // 每行的列数
|
|
4105
|
+
var ColSpan = 6; // 查询条件 每行col = 24 /columnsPerRow
|
|
4100
4106
|
var handleSourceName = function handleSourceName(sName) {
|
|
4101
4107
|
return sName;
|
|
4102
4108
|
};
|
|
4103
4109
|
var getFormRowInfo = function getFormRowInfo(list) {
|
|
4104
|
-
var columnsPerRow = 4; // 每行的列数
|
|
4105
4110
|
var totalRows = Math.ceil(list.length / columnsPerRow); // 计算总行数
|
|
4106
4111
|
var lastRowColumns = (list.length + 1) % columnsPerRow; // 计算最后一行的实际列数
|
|
4107
4112
|
var emptySlots = lastRowColumns === 0 ? 0 : columnsPerRow - lastRowColumns; // 计算最后一行的空位数
|
|
@@ -4129,11 +4134,22 @@ var hasMoreQueryFields = function hasMoreQueryFields(modalTableProps) {
|
|
|
4129
4134
|
var visibleFieldsCount = getVisibleFieldsCount(modalTableProps);
|
|
4130
4135
|
return visibleFieldsCount < (tableSearchForm === null || tableSearchForm === void 0 ? void 0 : tableSearchForm.length);
|
|
4131
4136
|
};
|
|
4137
|
+
var getRealStr = function getRealStr(oldSelect, newSelect, record) {
|
|
4138
|
+
return (oldSelect === null || oldSelect === void 0 ? void 0 : oldSelect.length) ? oldSelect.some(function (o) {
|
|
4139
|
+
return o.value == (record === null || record === void 0 ? void 0 : record.value);
|
|
4140
|
+
}) ? oldSelect.filter(function (s) {
|
|
4141
|
+
return s.value != (record === null || record === void 0 ? void 0 : record.value);
|
|
4142
|
+
}) : [].concat(_toConsumableArray(oldSelect), _toConsumableArray(newSelect)) : newSelect;
|
|
4143
|
+
};
|
|
4144
|
+
var getTableHeigth = function getTableHeigth(list) {
|
|
4145
|
+
var totalRows = Math.ceil(((list === null || list === void 0 ? void 0 : list.length) + 1) / 4);
|
|
4146
|
+
if (totalRows == 1) return 502; // modal弹窗760 调整为700 适应小屏
|
|
4147
|
+
return 488 - totalRows * 10;
|
|
4148
|
+
};
|
|
4132
4149
|
|
|
4133
4150
|
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";
|
|
4134
4151
|
|
|
4135
4152
|
var Option$1 = antd.Select.Option;
|
|
4136
|
-
var ColSpan = 6;
|
|
4137
4153
|
var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
4138
4154
|
var _modalTableProps$tabl, _modalTableProps$tabl2;
|
|
4139
4155
|
var value = props.value,
|
|
@@ -4176,7 +4192,10 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
4176
4192
|
_ref$specialBracket = _ref.specialBracket,
|
|
4177
4193
|
specialBracket = _ref$specialBracket === void 0 ? false : _ref$specialBracket,
|
|
4178
4194
|
_ref$noNeedSplit = _ref.noNeedSplit,
|
|
4179
|
-
noNeedSplit = _ref$noNeedSplit === void 0 ? false : _ref$noNeedSplit
|
|
4195
|
+
noNeedSplit = _ref$noNeedSplit === void 0 ? false : _ref$noNeedSplit,
|
|
4196
|
+
noOperate = _ref.noOperate,
|
|
4197
|
+
viewShowValueStr = _ref.viewShowValueStr,
|
|
4198
|
+
searchStartLength = _ref.searchStartLength;
|
|
4180
4199
|
var resultSourceKey = handleSourceName(sourceName || (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.sourceName) || (ctx === null || ctx === void 0 ? void 0 : ctx.name) || 'supplierCode');
|
|
4181
4200
|
var selectMode = selectProps === null || selectProps === void 0 ? void 0 : selectProps.mode; // 设定当前选择器 为单选或者多选模式 无设定为单选模式(默认)
|
|
4182
4201
|
var initVal = value || (selectMode ? [] : null);
|
|
@@ -4193,20 +4212,34 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
4193
4212
|
allowClear: true,
|
|
4194
4213
|
listHeight: 160,
|
|
4195
4214
|
optionLabelProp: "label",
|
|
4196
|
-
autoClearSearchValue: false
|
|
4215
|
+
autoClearSearchValue: false,
|
|
4216
|
+
placement: 'bottomLeft'
|
|
4197
4217
|
});
|
|
4198
4218
|
var initPagination = {
|
|
4199
4219
|
showQuickJumper: true,
|
|
4200
|
-
showSizeChanger:
|
|
4220
|
+
showSizeChanger: false,
|
|
4201
4221
|
showTotal: function showTotal(total) {
|
|
4202
4222
|
return "\u5171 ".concat(total, " \u6761");
|
|
4203
|
-
}
|
|
4223
|
+
},
|
|
4224
|
+
pageSize: tableInitPageSize
|
|
4204
4225
|
};
|
|
4205
4226
|
var tableInitPagination = _objectSpread2(_objectSpread2({}, initPagination), {}, {
|
|
4206
4227
|
total: 0,
|
|
4207
|
-
current: 1
|
|
4208
|
-
pageSize: tableInitPageSize
|
|
4228
|
+
current: 1
|
|
4209
4229
|
});
|
|
4230
|
+
var disabled = noOperate || (selectProps === null || selectProps === void 0 ? void 0 : selectProps.disabled) || (props === null || props === void 0 ? void 0 : props.disabled);
|
|
4231
|
+
var isHaveDependency = fixedparameter && fieldValToParam && ctx;
|
|
4232
|
+
var isHaveDValue = function isHaveDValue() {
|
|
4233
|
+
var formValueList = [];
|
|
4234
|
+
fieldValToParam.forEach(function (item, index) {
|
|
4235
|
+
var fixedParamVal = ctx.form.getFieldValue(fieldValToParam[index]);
|
|
4236
|
+
formValueList.push(fixedParamVal);
|
|
4237
|
+
});
|
|
4238
|
+
return formValueList.filter(function (item) {
|
|
4239
|
+
return item;
|
|
4240
|
+
}).length > 0;
|
|
4241
|
+
};
|
|
4242
|
+
var sDisabled = disabled || isHaveDependency && !!!isHaveDValue();
|
|
4210
4243
|
var _useState = React$1.useState([]),
|
|
4211
4244
|
_useState2 = _slicedToArray(_useState, 2),
|
|
4212
4245
|
items = _useState2[0],
|
|
@@ -4323,25 +4356,37 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
4323
4356
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
4324
4357
|
confirmLoading = _useState42[0],
|
|
4325
4358
|
setConfirmLoading = _useState42[1];
|
|
4359
|
+
var _useState43 = React$1.useState(false),
|
|
4360
|
+
_useState44 = _slicedToArray(_useState43, 2),
|
|
4361
|
+
modalSearched = _useState44[0],
|
|
4362
|
+
setModalSearched = _useState44[1];
|
|
4363
|
+
var setSelectDataSource = function setSelectDataSource(list, total) {
|
|
4364
|
+
setItems(list);
|
|
4365
|
+
setItemsTotal(total);
|
|
4366
|
+
};
|
|
4367
|
+
var clearSelectDataSource = function clearSelectDataSource() {
|
|
4368
|
+
setSelectDataSource([], 0);
|
|
4369
|
+
};
|
|
4326
4370
|
React$1.useImperativeHandle(ref, function () {
|
|
4327
4371
|
return {
|
|
4328
4372
|
refreshDataSource: function refreshDataSource() {
|
|
4329
4373
|
var reset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
4330
4374
|
if (reset) {
|
|
4331
4375
|
if (init) {
|
|
4376
|
+
// 有关联,依赖项清空,此form项数据源也应清空, 也不可点击搜索
|
|
4377
|
+
if (isHaveDependency) {
|
|
4378
|
+
clearSelectDataSource();
|
|
4379
|
+
return;
|
|
4380
|
+
}
|
|
4332
4381
|
run('init');
|
|
4333
4382
|
} else {
|
|
4334
|
-
|
|
4335
|
-
setItemsTotal(0);
|
|
4383
|
+
clearSelectDataSource();
|
|
4336
4384
|
}
|
|
4337
4385
|
} else {
|
|
4338
4386
|
run();
|
|
4339
4387
|
}
|
|
4340
4388
|
},
|
|
4341
|
-
|
|
4342
|
-
setItems([]);
|
|
4343
|
-
setItemsTotal(0);
|
|
4344
|
-
},
|
|
4389
|
+
clearSelectDataSource: clearSelectDataSource,
|
|
4345
4390
|
getTableFormRef: function getTableFormRef() {
|
|
4346
4391
|
return form;
|
|
4347
4392
|
},
|
|
@@ -4349,12 +4394,16 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
4349
4394
|
getSelectDataSource: function getSelectDataSource() {
|
|
4350
4395
|
return items;
|
|
4351
4396
|
},
|
|
4352
|
-
setSelectDataSource:
|
|
4353
|
-
setItems(list);
|
|
4354
|
-
setItemsTotal(listTotal);
|
|
4355
|
-
},
|
|
4397
|
+
setSelectDataSource: setSelectDataSource,
|
|
4356
4398
|
refreshSelectDataSource: function refreshSelectDataSource() {
|
|
4357
4399
|
refreshItems();
|
|
4400
|
+
},
|
|
4401
|
+
handleModalVisible: function handleModalVisible(flag) {
|
|
4402
|
+
if (flag) {
|
|
4403
|
+
showModal();
|
|
4404
|
+
} else {
|
|
4405
|
+
handleCancel();
|
|
4406
|
+
}
|
|
4358
4407
|
}
|
|
4359
4408
|
};
|
|
4360
4409
|
});
|
|
@@ -4367,7 +4416,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
4367
4416
|
setFetching(true);
|
|
4368
4417
|
// 处理dependence参数
|
|
4369
4418
|
var fixedParam = {};
|
|
4370
|
-
if (
|
|
4419
|
+
if (isHaveDependency) {
|
|
4371
4420
|
fixedparameter.forEach(function (item, index) {
|
|
4372
4421
|
var fixedParamVal = ctx.form.getFieldValue(fieldValToParam[index]);
|
|
4373
4422
|
if (fixedParamVal) {
|
|
@@ -4559,15 +4608,15 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
4559
4608
|
});
|
|
4560
4609
|
})) : [];
|
|
4561
4610
|
}
|
|
4562
|
-
|
|
4611
|
+
// 数据源 不可以有重复key
|
|
4612
|
+
source = Array.isArray(source) ? ___default['default'].uniqBy(source, 'value') : [];
|
|
4563
4613
|
if (callback) {
|
|
4564
4614
|
callback(source);
|
|
4565
4615
|
} else {
|
|
4566
4616
|
if (type === 1) {
|
|
4567
4617
|
var _ctx$form;
|
|
4568
4618
|
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(resultSourceKey, source);
|
|
4569
|
-
|
|
4570
|
-
setItemsTotal(Number((res === null || res === void 0 ? void 0 : res.total) || (res === null || res === void 0 ? void 0 : res.totalCount) || source.length));
|
|
4619
|
+
setSelectDataSource(source, Number((res === null || res === void 0 ? void 0 : res.total) || (res === null || res === void 0 ? void 0 : res.totalCount) || source.length));
|
|
4571
4620
|
} else {
|
|
4572
4621
|
setTableData(source);
|
|
4573
4622
|
setTablePagination(_objectSpread2(_objectSpread2({}, tablePagination), {}, {
|
|
@@ -4624,6 +4673,10 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
4624
4673
|
if (init) {
|
|
4625
4674
|
run('init');
|
|
4626
4675
|
}
|
|
4676
|
+
// 编辑/详情页面回显
|
|
4677
|
+
if (!init && !!value && ['edit', 'view'].includes(ctx === null || ctx === void 0 ? void 0 : ctx.mode)) {
|
|
4678
|
+
run('init');
|
|
4679
|
+
}
|
|
4627
4680
|
}, []);
|
|
4628
4681
|
React$1.useEffect(function () {
|
|
4629
4682
|
if (value) {
|
|
@@ -4635,14 +4688,12 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
4635
4688
|
}, [resultSourceKey]);
|
|
4636
4689
|
React$1.useEffect(function () {
|
|
4637
4690
|
if (init) {
|
|
4638
|
-
|
|
4639
|
-
setItemsTotal(0);
|
|
4691
|
+
clearSelectDataSource();
|
|
4640
4692
|
run('init');
|
|
4641
4693
|
}
|
|
4642
4694
|
}, [selectBusinessType]);
|
|
4643
4695
|
// 处理键盘事件
|
|
4644
4696
|
var handleKeyPress = function handleKeyPress(event) {
|
|
4645
|
-
console.log(event, '----event');
|
|
4646
4697
|
if ((event.metaKey || event.ctrlKey) && (event.key === 'U' || event.keyCode == 85)) {
|
|
4647
4698
|
// ctrl + U 键 重置
|
|
4648
4699
|
onResetTable();
|
|
@@ -4666,8 +4717,10 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
4666
4717
|
};
|
|
4667
4718
|
}, [isModalVisible]);
|
|
4668
4719
|
var showModal = function showModal() {
|
|
4669
|
-
|
|
4670
|
-
|
|
4720
|
+
if (sDisabled) return;
|
|
4721
|
+
setSelectOpen(false);
|
|
4722
|
+
setSearchValue('');
|
|
4723
|
+
setModalSearched(false);
|
|
4671
4724
|
setIsModalVisible(true);
|
|
4672
4725
|
// 回显
|
|
4673
4726
|
if (value) {
|
|
@@ -4710,7 +4763,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
4710
4763
|
// 解决选择最后1页的sku,返回后,不显示名称问题
|
|
4711
4764
|
var source = ___default['default'].uniqBy(items.concat(selectedValue), 'value');
|
|
4712
4765
|
ctx === null || ctx === void 0 ? void 0 : (_ctx$form2 = ctx.form) === null || _ctx$form2 === void 0 ? void 0 : _ctx$form2.setFieldSource(resultSourceKey, source);
|
|
4713
|
-
|
|
4766
|
+
setSelectDataSource(source, source === null || source === void 0 ? void 0 : source.length);
|
|
4714
4767
|
formaData(selectedValue, source);
|
|
4715
4768
|
} else {
|
|
4716
4769
|
var formatResult = selectMode ? [] : null;
|
|
@@ -4778,25 +4831,14 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
4778
4831
|
var handleCancel = function handleCancel() {
|
|
4779
4832
|
clearModalTable();
|
|
4780
4833
|
setIsModalVisible(false);
|
|
4781
|
-
if (selectMode) {
|
|
4782
|
-
run();
|
|
4783
|
-
}
|
|
4784
4834
|
};
|
|
4785
4835
|
var refreshItems = function refreshItems() {
|
|
4786
4836
|
// 查看是否存在关联值 如果有关联值 就查询 没有就不能查询
|
|
4787
4837
|
if (fieldValToParam && ctx && fixedparamsDisabled) {
|
|
4788
|
-
|
|
4789
|
-
fieldValToParam.forEach(function (item, index) {
|
|
4790
|
-
var fixedParamVal = ctx.form.getFieldValue(fieldValToParam[index]);
|
|
4791
|
-
formValueList.push(fixedParamVal);
|
|
4792
|
-
});
|
|
4793
|
-
if (formValueList.filter(function (item) {
|
|
4794
|
-
return item;
|
|
4795
|
-
}).length > 0) {
|
|
4838
|
+
if (!!isHaveDValue()) {
|
|
4796
4839
|
run();
|
|
4797
4840
|
} else {
|
|
4798
|
-
|
|
4799
|
-
setItemsTotal(0);
|
|
4841
|
+
clearSelectDataSource();
|
|
4800
4842
|
}
|
|
4801
4843
|
} else {
|
|
4802
4844
|
run();
|
|
@@ -4804,18 +4846,17 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
4804
4846
|
};
|
|
4805
4847
|
var onSearchChange = function onSearchChange(v) {
|
|
4806
4848
|
setSearchValue(v);
|
|
4807
|
-
if ((v === null || v === void 0 ? void 0 : v.length) <
|
|
4849
|
+
if (!!searchStartLength && (v === null || v === void 0 ? void 0 : v.length) < searchStartLength) return;
|
|
4808
4850
|
refreshItems();
|
|
4809
4851
|
};
|
|
4810
4852
|
var onSearchTable = function onSearchTable() {
|
|
4811
4853
|
var params = form.getFieldsValue();
|
|
4854
|
+
// const isHaveParams = params && Object.keys(params).filter(item => params[item]).length > 0;
|
|
4855
|
+
setModalSearched(true);
|
|
4812
4856
|
setTableFormParams(params);
|
|
4813
4857
|
getData(_objectSpread2(_objectSpread2({}, params), {}, {
|
|
4814
4858
|
pageSize: tableInitPageSize
|
|
4815
4859
|
}), 2);
|
|
4816
|
-
if (selectMode) {
|
|
4817
|
-
getData(params);
|
|
4818
|
-
}
|
|
4819
4860
|
};
|
|
4820
4861
|
var onResetTable = function onResetTable() {
|
|
4821
4862
|
form.resetFields();
|
|
@@ -4898,12 +4939,23 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
4898
4939
|
},
|
|
4899
4940
|
getCheckboxProps: (selectProps === null || selectProps === void 0 ? void 0 : selectProps.getCheckboxProps) ? selectProps === null || selectProps === void 0 ? void 0 : selectProps.getCheckboxProps : function () {
|
|
4900
4941
|
return {
|
|
4901
|
-
disabled:
|
|
4942
|
+
disabled: disabled || !items.length && !tableData.length
|
|
4902
4943
|
};
|
|
4903
4944
|
}
|
|
4904
4945
|
};
|
|
4905
|
-
var
|
|
4906
|
-
if (
|
|
4946
|
+
var onRowClickSelect = function onRowClickSelect(e, record, type) {
|
|
4947
|
+
if (selectMode && !(disabled || !items.length && !tableData.length)) {
|
|
4948
|
+
var oldSelect = selectedRows;
|
|
4949
|
+
var newSelect = [JSON.parse(JSON.stringify(record))];
|
|
4950
|
+
var srs = getRealStr(oldSelect, newSelect, record);
|
|
4951
|
+
var sks = srs.map(function (i) {
|
|
4952
|
+
return i.value;
|
|
4953
|
+
});
|
|
4954
|
+
onChangeSelectedKeys(sks, srs);
|
|
4955
|
+
}
|
|
4956
|
+
};
|
|
4957
|
+
var onDoubleClickSelect = function onDoubleClickSelect(e, record, type) {
|
|
4958
|
+
if (!selectMode && !(disabled || !items.length && !tableData.length)) {
|
|
4907
4959
|
var srs = [JSON.parse(JSON.stringify(record))];
|
|
4908
4960
|
var sks = srs.map(function (i) {
|
|
4909
4961
|
return i.value;
|
|
@@ -4949,7 +5001,10 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
4949
5001
|
style: {
|
|
4950
5002
|
width: '100%'
|
|
4951
5003
|
},
|
|
4952
|
-
placeholder: "\u8BF7\u9009\u62E9"
|
|
5004
|
+
placeholder: "\u8BF7\u9009\u62E9",
|
|
5005
|
+
onDeselect: function onDeselect(v) {
|
|
5006
|
+
return onSearchTable();
|
|
5007
|
+
}
|
|
4953
5008
|
}, i === null || i === void 0 ? void 0 : (_i$field2 = i.field) === null || _i$field2 === void 0 ? void 0 : _i$field2.props), {}, {
|
|
4954
5009
|
disabled: setDisabled(i.name)
|
|
4955
5010
|
}), (i === null || i === void 0 ? void 0 : (_i$initialSource = i.initialSource) === null || _i$initialSource === void 0 ? void 0 : _i$initialSource.length) && (i === null || i === void 0 ? void 0 : i.initialSource.map(function (m) {
|
|
@@ -5038,9 +5093,11 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5038
5093
|
// bsTableCode={bsTableCode}
|
|
5039
5094
|
// />
|
|
5040
5095
|
var renderShowTable = function renderShowTable(tableList, type) {
|
|
5096
|
+
var tableBoxHeighth = getTableHeigth(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm);
|
|
5097
|
+
var oSY = "calc(100vh - 391px - 82px)"; // 分页 24+16*2+10 「高 + margin * 2 + paddingBottom 10 」
|
|
5041
5098
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5042
5099
|
style: {
|
|
5043
|
-
height:
|
|
5100
|
+
height: "calc(100vh - 391px)"
|
|
5044
5101
|
}
|
|
5045
5102
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Table, _objectSpread2(_objectSpread2({
|
|
5046
5103
|
bordered: true,
|
|
@@ -5049,19 +5106,28 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5049
5106
|
columns: tableShowColumns,
|
|
5050
5107
|
dataSource: tableList
|
|
5051
5108
|
}, type == 'noPage' ? {
|
|
5052
|
-
pagination: initPagination
|
|
5109
|
+
pagination: initPagination,
|
|
5110
|
+
locale: {
|
|
5111
|
+
emptyText: '暂无已选结果'
|
|
5112
|
+
}
|
|
5053
5113
|
} : {
|
|
5054
5114
|
pagination: tablePagination,
|
|
5055
5115
|
onChange: handleTableChange,
|
|
5056
|
-
loading: fetching
|
|
5116
|
+
loading: fetching,
|
|
5117
|
+
locale: {
|
|
5118
|
+
emptyText: modalSearched ? '无匹配结果,请更换其他内容再试' : '请输入搜索条件'
|
|
5119
|
+
}
|
|
5057
5120
|
}), {}, {
|
|
5058
5121
|
rowKey: mappingValueField,
|
|
5059
5122
|
scroll: {
|
|
5060
5123
|
x: modalTableProps.overScrollX || 'max-content',
|
|
5061
|
-
y: modalTableProps.overScrollY ||
|
|
5124
|
+
y: modalTableProps.overScrollY || oSY
|
|
5062
5125
|
},
|
|
5063
5126
|
onRow: function onRow(record) {
|
|
5064
5127
|
return {
|
|
5128
|
+
onClick: function onClick(event) {
|
|
5129
|
+
return onRowClickSelect(event, record);
|
|
5130
|
+
},
|
|
5065
5131
|
onDoubleClick: function onDoubleClick(event) {
|
|
5066
5132
|
return onDoubleClickSelect(event, record);
|
|
5067
5133
|
}
|
|
@@ -5084,13 +5150,40 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5084
5150
|
});
|
|
5085
5151
|
})) || [], 'noPage')
|
|
5086
5152
|
}];
|
|
5153
|
+
var resetSelectDataSource = function resetSelectDataSource() {
|
|
5154
|
+
setSearchValue('');
|
|
5155
|
+
// 有关联值 不需要清空下拉框数据 也不需要重新去请求了
|
|
5156
|
+
if (isHaveDependency) return;
|
|
5157
|
+
clearSelectDataSource();
|
|
5158
|
+
init && run('init');
|
|
5159
|
+
};
|
|
5087
5160
|
var onClear = function onClear() {
|
|
5088
5161
|
formaData([], items);
|
|
5162
|
+
resetSelectDataSource();
|
|
5163
|
+
};
|
|
5164
|
+
var onDeselect = function onDeselect() {
|
|
5165
|
+
var oldSelect = (value === null || value === void 0 ? void 0 : value.map(function (s) {
|
|
5166
|
+
return {
|
|
5167
|
+
value: (s === null || s === void 0 ? void 0 : s.value) || s
|
|
5168
|
+
};
|
|
5169
|
+
})) || [];
|
|
5170
|
+
var deRecord = arguments.length <= 1 ? undefined : arguments[1];
|
|
5171
|
+
var srs = oldSelect.filter(function (s) {
|
|
5172
|
+
return s.value != (deRecord === null || deRecord === void 0 ? void 0 : deRecord.value);
|
|
5173
|
+
});
|
|
5174
|
+
onSelectClick(srs, items, false);
|
|
5175
|
+
};
|
|
5176
|
+
var onSelectClick = function onSelectClick(srs, ds) {
|
|
5177
|
+
var nr = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
5178
|
+
formaData(srs, ds);
|
|
5179
|
+
nr && setSelectOpen(false);
|
|
5089
5180
|
};
|
|
5090
5181
|
var onDropdownVisibleChange = function onDropdownVisibleChange(visible) {
|
|
5091
5182
|
setSelectOpen(visible);
|
|
5092
|
-
//
|
|
5093
|
-
|
|
5183
|
+
// 关闭下拉框 如果首次本身就不展示数据的 没有选中数据-需要清空查询数据源; 首次展示的默认展示
|
|
5184
|
+
if (!visible && !(value === null || value === void 0 ? void 0 : value.length)) {
|
|
5185
|
+
resetSelectDataSource();
|
|
5186
|
+
}
|
|
5094
5187
|
};
|
|
5095
5188
|
var renderTable = function renderTable(dataSource) {
|
|
5096
5189
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -5101,12 +5194,45 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5101
5194
|
}, selectMode ? {
|
|
5102
5195
|
rowSelection: {
|
|
5103
5196
|
type: 'checkbox',
|
|
5104
|
-
|
|
5197
|
+
columnWidth: '24px',
|
|
5198
|
+
selectedRowKeys: labelInValue ? value === null || value === void 0 ? void 0 : value.map(function (s) {
|
|
5105
5199
|
return (s === null || s === void 0 ? void 0 : s.value) || s;
|
|
5106
5200
|
}) : value,
|
|
5201
|
+
preserveSelectedRowKeys: true,
|
|
5107
5202
|
onChange: function onChange(sks, srs) {
|
|
5108
|
-
|
|
5203
|
+
var oldSelect = (value === null || value === void 0 ? void 0 : value.map(function (s) {
|
|
5204
|
+
return {
|
|
5205
|
+
value: (s === null || s === void 0 ? void 0 : s.value) || s
|
|
5206
|
+
};
|
|
5207
|
+
})) || [];
|
|
5208
|
+
var tmpSelectedRows = oldSelect.concat(srs).filter(function (item) {
|
|
5209
|
+
return item != undefined;
|
|
5210
|
+
});
|
|
5211
|
+
var realSrs = sks.map(function (key) {
|
|
5212
|
+
return tmpSelectedRows.filter(function (item) {
|
|
5213
|
+
return item.value == key;
|
|
5214
|
+
})[0];
|
|
5215
|
+
}).filter(function (item) {
|
|
5216
|
+
return item != undefined;
|
|
5217
|
+
});
|
|
5218
|
+
onSelectClick(realSrs, dataSource, false);
|
|
5109
5219
|
}
|
|
5220
|
+
},
|
|
5221
|
+
onRow: function onRow(record, rowKey) {
|
|
5222
|
+
return {
|
|
5223
|
+
onClick: function onClick(event) {
|
|
5224
|
+
event.stopPropagation();
|
|
5225
|
+
event.nativeEvent.stopImmediatePropagation();
|
|
5226
|
+
var oldSelect = (value === null || value === void 0 ? void 0 : value.map(function (s) {
|
|
5227
|
+
return {
|
|
5228
|
+
value: (s === null || s === void 0 ? void 0 : s.value) || s
|
|
5229
|
+
};
|
|
5230
|
+
})) || [];
|
|
5231
|
+
var newSelect = [JSON.parse(JSON.stringify(record))];
|
|
5232
|
+
var srs = getRealStr(oldSelect, newSelect, record);
|
|
5233
|
+
onSelectClick(srs, dataSource, false);
|
|
5234
|
+
} // 点击行
|
|
5235
|
+
};
|
|
5110
5236
|
}
|
|
5111
5237
|
} : {
|
|
5112
5238
|
rowSelection: {
|
|
@@ -5116,11 +5242,10 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5116
5242
|
},
|
|
5117
5243
|
onRow: function onRow(record, rowKey) {
|
|
5118
5244
|
return {
|
|
5119
|
-
|
|
5245
|
+
onClick: function onClick(event) {
|
|
5120
5246
|
var srs = [JSON.parse(JSON.stringify(record))];
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
}
|
|
5247
|
+
onSelectClick(srs, dataSource);
|
|
5248
|
+
} // 点击行
|
|
5124
5249
|
};
|
|
5125
5250
|
}
|
|
5126
5251
|
}), {}, {
|
|
@@ -5195,6 +5320,8 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5195
5320
|
return getSelectValueText(value) || kongValue;
|
|
5196
5321
|
};
|
|
5197
5322
|
var getShowStr = function getShowStr() {
|
|
5323
|
+
// 优先使用业务使用传入的展示
|
|
5324
|
+
if (viewShowValueStr) return viewShowValueStr;
|
|
5198
5325
|
var kongValue = '无';
|
|
5199
5326
|
// 先判断labelInValue与否,labelInValue可以直接去value中获取字段名称,否则去下拉框数据里面去拿;
|
|
5200
5327
|
// 再判断是单选还是多选,数据类型不同取值方式也不同
|
|
@@ -5203,16 +5330,16 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5203
5330
|
}
|
|
5204
5331
|
return getShowValueStr(kongValue);
|
|
5205
5332
|
};
|
|
5206
|
-
var isShouldShowStr = props.disabled && ctx;
|
|
5333
|
+
var isShouldShowStr = props.disabled && ctx || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) == 'view';
|
|
5207
5334
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5208
5335
|
className: 'search_select'
|
|
5209
|
-
}, fieldComponent ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
5336
|
+
}, fieldComponent ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5210
5337
|
onClick: function onClick() {
|
|
5211
5338
|
var _fieldComponent$props, _fieldComponent$props2;
|
|
5212
5339
|
(_fieldComponent$props = fieldComponent.props) === null || _fieldComponent$props === void 0 ? void 0 : (_fieldComponent$props2 = _fieldComponent$props.onClick) === null || _fieldComponent$props2 === void 0 ? void 0 : _fieldComponent$props2.call(_fieldComponent$props);
|
|
5213
5340
|
showModal();
|
|
5214
5341
|
}
|
|
5215
|
-
}, fieldComponent)) : isShouldShowStr ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
5342
|
+
}, fieldComponent)) : isShouldShowStr ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5216
5343
|
title: getShowStr(),
|
|
5217
5344
|
style: {
|
|
5218
5345
|
overflow: 'hidden',
|
|
@@ -5228,7 +5355,8 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5228
5355
|
value: value,
|
|
5229
5356
|
onChange: onchange,
|
|
5230
5357
|
onClear: onClear,
|
|
5231
|
-
|
|
5358
|
+
onDeselect: onDeselect,
|
|
5359
|
+
disabled: sDisabled,
|
|
5232
5360
|
dropdownStyle: {
|
|
5233
5361
|
borderRadius: '2px',
|
|
5234
5362
|
padding: '10px 2px'
|
|
@@ -5238,14 +5366,14 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5238
5366
|
dropdownRender: function dropdownRender(menu) {
|
|
5239
5367
|
return (items === null || items === void 0 ? void 0 : items.length) ? renderTable(items) : menu;
|
|
5240
5368
|
},
|
|
5241
|
-
notFoundContent: fetching ? (/*#__PURE__*/React__default['default'].createElement(antd.Spin, {
|
|
5369
|
+
notFoundContent: fetching ? ( /*#__PURE__*/React__default['default'].createElement(antd.Spin, {
|
|
5242
5370
|
size: "small",
|
|
5243
5371
|
className: 'searchSelectSpin'
|
|
5244
|
-
})) : (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
5372
|
+
})) : ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5245
5373
|
style: {
|
|
5246
5374
|
textAlign: 'center'
|
|
5247
5375
|
}
|
|
5248
|
-
}, /*#__PURE__*/React__default['default'].createElement("div", null, searchValue ? '无匹配结果,请更换其他内容再试' : '
|
|
5376
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", null, searchValue || init || isHaveDependency ? '无匹配结果,请更换其他内容再试' : "\u8BF7\u5F55\u5165".concat(searchStartLength ? '4位数以上' : '', "\u5B57\u7B26\u8FDB\u884C\u6A21\u7CCA\u67E5\u8BE2")))),
|
|
5249
5377
|
onPopupScroll: SelectScroll,
|
|
5250
5378
|
style: {
|
|
5251
5379
|
width: 'calc(100%)'
|
|
@@ -5257,7 +5385,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5257
5385
|
}
|
|
5258
5386
|
}, needModalTable ? {
|
|
5259
5387
|
suffixIcon: /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5260
|
-
className: "search_select_expand_button",
|
|
5388
|
+
className: "search_select_expand_button ".concat(sDisabled ? 'search_select_expand_button_disabled' : ''),
|
|
5261
5389
|
onClick: showModal
|
|
5262
5390
|
}, /*#__PURE__*/React__default['default'].createElement(icons.SearchOutlined, null))
|
|
5263
5391
|
} : {}), currentSelectProps), {}, {
|
|
@@ -5272,7 +5400,8 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5272
5400
|
text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
|
|
5273
5401
|
filterTxt: searchValue
|
|
5274
5402
|
}));
|
|
5275
|
-
}))), needModalTable && isModalVisible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2({
|
|
5403
|
+
}))), needModalTable && isModalVisible && ( /*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2({
|
|
5404
|
+
maskClosable: false,
|
|
5276
5405
|
destroyOnClose: true,
|
|
5277
5406
|
width: "80%",
|
|
5278
5407
|
title: modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.modalTableTitle,
|
|
@@ -5288,7 +5417,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5288
5417
|
type: "primary",
|
|
5289
5418
|
loading: confirmLoading,
|
|
5290
5419
|
onClick: handleOk,
|
|
5291
|
-
disabled:
|
|
5420
|
+
disabled: sDisabled
|
|
5292
5421
|
}, "\u786E\u5B9A")] : null,
|
|
5293
5422
|
wrapClassName: 'search_select_modal_wrapper'
|
|
5294
5423
|
}, (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.modalProps) || {}), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -5363,7 +5492,7 @@ var fixedRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
5363
5492
|
|
|
5364
5493
|
var fixedRightActive = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2218px%22%20height%3D%2218px%22%20viewBox%3D%220%200%2018%2018%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%BC%96%E7%BB%84%209%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E6%98%9F%E6%BE%9C-%E4%B8%AA%E6%80%A7%E5%8C%96%E8%AE%BE%E7%BD%AE%26amp%3B%E9%94%81%E5%AE%9A%E5%88%97%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%94%BB%E6%9D%BF%22%20transform%3D%22translate%28-89.000000%2C%20-43.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-9%22%20transform%3D%22translate%2889.000000%2C%2043.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20stroke%3D%22%23979797%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20x%3D%220.5%22%20y%3D%220.5%22%20width%3D%2217%22%20height%3D%2217%22%3E%3C%2Frect%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M9.49980555%2C4.20269836%20L15%2C9.65415997%20L14.1747569%2C10.4721491%20L10.0757645%2C6.40841633%20L10.0757645%2C15%20L8.90867951%2C15%20L8.90906842%2C6.4246065%20L4.82524306%2C10.4721491%20L4%2C9.65493094%20L9.49980555%2C4.20269836%20Z%20M14.9824996%2C3%20L14.9824996%2C4.15644073%20L4.09333569%2C4.15644073%20L4.09333569%2C3%20L14.9824996%2C3%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%E7%BB%93%E5%90%88%22%20fill%3D%22%23005CFF%22%20fill-rule%3D%22nonzero%22%20transform%3D%22translate%289.500000%2C%209.000000%29%20rotate%28-180.000000%29%20translate%28-9.500000%2C%20-9.000000%29%20%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
5365
5494
|
|
|
5366
|
-
var css_248z$7 = ".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:
|
|
5495
|
+
var css_248z$7 = ".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";
|
|
5367
5496
|
styleInject(css_248z$7);
|
|
5368
5497
|
|
|
5369
5498
|
var _excluded$3 = ["className", "style"];
|
|
@@ -5833,7 +5962,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
5833
5962
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5834
5963
|
className: 'sort_table_wrapper'
|
|
5835
5964
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
5836
|
-
title: "\
|
|
5965
|
+
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
5837
5966
|
wrapClassName: 'sort_table_wrapper',
|
|
5838
5967
|
width: 820,
|
|
5839
5968
|
visible: visible,
|
|
@@ -5856,19 +5985,19 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
5856
5985
|
className: 'sort_table_column_wrapper'
|
|
5857
5986
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
5858
5987
|
className: 'sort_table_column_count'
|
|
5859
|
-
},
|
|
5988
|
+
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u52FE\u9009\u4F60\u60F3\u4F7F\u7528\u7684\u7B5B\u9009\u6761\u4EF6")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5860
5989
|
className: 'sort_table_column'
|
|
5861
5990
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
5862
5991
|
prefix: /*#__PURE__*/React__default['default'].createElement(icons.SearchOutlined, {
|
|
5863
5992
|
className: "site-form-item-icon"
|
|
5864
5993
|
}),
|
|
5865
|
-
placeholder: "\u641C\u7D22",
|
|
5994
|
+
placeholder: "\u8F93\u5165\u7B5B\u9009\u6761\u4EF6\u540D\u79F0\u641C\u7D22",
|
|
5866
5995
|
allowClear: true,
|
|
5867
5996
|
onChange: this.onSearch,
|
|
5868
5997
|
style: {
|
|
5869
|
-
width:
|
|
5998
|
+
width: 525
|
|
5870
5999
|
}
|
|
5871
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
6000
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
5872
6001
|
checked: !dataSource.some(function (item) {
|
|
5873
6002
|
if (item.hidden) return true;
|
|
5874
6003
|
return false;
|
|
@@ -5906,13 +6035,13 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
5906
6035
|
_this2.onChange(e, item.title);
|
|
5907
6036
|
}
|
|
5908
6037
|
}, item.title);
|
|
5909
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
6038
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("span", {
|
|
5910
6039
|
style: {
|
|
5911
6040
|
width: '144px'
|
|
5912
6041
|
}
|
|
5913
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
6042
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5914
6043
|
className: 'sort_table_column_all_empty'
|
|
5915
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6044
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5916
6045
|
className: 'sort_table_column_special'
|
|
5917
6046
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5918
6047
|
className: 'sort_table_column_all'
|
|
@@ -5934,7 +6063,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
5934
6063
|
className: 'sort_table_content_wrapper'
|
|
5935
6064
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
5936
6065
|
className: 'sort_table_content_count'
|
|
5937
|
-
},
|
|
6066
|
+
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u5DF2\u9009\u62E9\u7684\u641C\u7D22\u6761\u4EF6\u6392\u5E8F")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5938
6067
|
className: 'sort_table_content'
|
|
5939
6068
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
5940
6069
|
style: {
|
|
@@ -6101,7 +6230,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
|
|
|
6101
6230
|
});
|
|
6102
6231
|
};
|
|
6103
6232
|
// 格式化树选择器数据源
|
|
6104
|
-
var
|
|
6233
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
6105
6234
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
6106
6235
|
return {
|
|
6107
6236
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -6111,7 +6240,7 @@ var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
|
6111
6240
|
isLeaf: !haveChildren,
|
|
6112
6241
|
disabled: haveChildren,
|
|
6113
6242
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
6114
|
-
return
|
|
6243
|
+
return mapSearchTree(i, resKeyValue);
|
|
6115
6244
|
}) : []
|
|
6116
6245
|
};
|
|
6117
6246
|
};
|
|
@@ -6120,7 +6249,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
6120
6249
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
6121
6250
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
6122
6251
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
6123
|
-
return
|
|
6252
|
+
return mapSearchTree(ites, resKeyValue);
|
|
6124
6253
|
}) || [];
|
|
6125
6254
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
6126
6255
|
};
|
|
@@ -6291,7 +6420,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
6291
6420
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
6292
6421
|
// FIXME: 特殊业务逻辑
|
|
6293
6422
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
6294
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
6423
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
6295
6424
|
var result;
|
|
6296
6425
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
6297
6426
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -6544,7 +6673,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
6544
6673
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
6545
6674
|
value: text || null,
|
|
6546
6675
|
onChange: function () {
|
|
6547
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
6676
|
+
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
6548
6677
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
6549
6678
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
6550
6679
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -7152,10 +7281,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7152
7281
|
var newColumns = arr.map(function (col) {
|
|
7153
7282
|
return _objectSpread2({}, col);
|
|
7154
7283
|
});
|
|
7155
|
-
var
|
|
7284
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
7156
7285
|
var i = indexArr.shift();
|
|
7157
7286
|
if (indexArr.length > 0) {
|
|
7158
|
-
|
|
7287
|
+
handleIndex(arr[i].children, indexArr);
|
|
7159
7288
|
} else {
|
|
7160
7289
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
7161
7290
|
width: size.width
|
|
@@ -7163,7 +7292,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7163
7292
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
7164
7293
|
}
|
|
7165
7294
|
};
|
|
7166
|
-
|
|
7295
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
7167
7296
|
callback(newColumns);
|
|
7168
7297
|
};
|
|
7169
7298
|
};
|
|
@@ -7173,13 +7302,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
7173
7302
|
var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
|
|
7174
7303
|
setShowToChooseColumns(_toConsumableArray(newColumns));
|
|
7175
7304
|
};
|
|
7176
|
-
var
|
|
7305
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
7177
7306
|
arr.forEach(function (item, index) {
|
|
7178
7307
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
7179
7308
|
return i || i === 0;
|
|
7180
7309
|
});
|
|
7181
7310
|
if (noEmptyArray$1(item.children)) {
|
|
7182
|
-
|
|
7311
|
+
handleColumns(item.children, indexArrInside);
|
|
7183
7312
|
} else {
|
|
7184
7313
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
7185
7314
|
item.onHeaderCell = function (column) {
|
|
@@ -7195,14 +7324,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
7195
7324
|
handleAntdColumnsSpecialParams(item);
|
|
7196
7325
|
return _objectSpread2({}, item);
|
|
7197
7326
|
});
|
|
7198
|
-
|
|
7327
|
+
handleColumns(showToChooseCol, [], function (res) {
|
|
7199
7328
|
return setShowToChooseColumnsCallback(res);
|
|
7200
7329
|
});
|
|
7201
7330
|
var showSelectedCol = showColumns.map(function (item) {
|
|
7202
7331
|
handleAntdColumnsSpecialParams(item);
|
|
7203
7332
|
return _objectSpread2({}, item);
|
|
7204
7333
|
});
|
|
7205
|
-
|
|
7334
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
7206
7335
|
return setShowColumnsCallback(res);
|
|
7207
7336
|
});
|
|
7208
7337
|
var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
|
|
@@ -7213,7 +7342,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7213
7342
|
id: "add_select_div_".concat(uniqueValue)
|
|
7214
7343
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Button, _objectSpread2({
|
|
7215
7344
|
onClick: handleShowModal
|
|
7216
|
-
}, realButtonProps), buttonText)), isModalVisible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
7345
|
+
}, realButtonProps), buttonText)), isModalVisible && ( /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
7217
7346
|
width: '1200px',
|
|
7218
7347
|
style: {
|
|
7219
7348
|
top: 20
|
|
@@ -8127,7 +8256,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8127
8256
|
});
|
|
8128
8257
|
};
|
|
8129
8258
|
var handleSubmit = /*#__PURE__*/function () {
|
|
8130
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
8259
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
8131
8260
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
8132
8261
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
8133
8262
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -8210,10 +8339,10 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8210
8339
|
var newColumns = arr.map(function (col) {
|
|
8211
8340
|
return _objectSpread2({}, col);
|
|
8212
8341
|
});
|
|
8213
|
-
var
|
|
8342
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
8214
8343
|
var i = indexArr.shift();
|
|
8215
8344
|
if (indexArr.length > 0) {
|
|
8216
|
-
|
|
8345
|
+
handleIndex(arr[i].children, indexArr);
|
|
8217
8346
|
} else {
|
|
8218
8347
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
8219
8348
|
width: size.width
|
|
@@ -8221,17 +8350,17 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8221
8350
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
8222
8351
|
}
|
|
8223
8352
|
};
|
|
8224
|
-
|
|
8353
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
8225
8354
|
callback(newColumns);
|
|
8226
8355
|
};
|
|
8227
8356
|
};
|
|
8228
|
-
var
|
|
8357
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
8229
8358
|
arr.forEach(function (item, index) {
|
|
8230
8359
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
8231
8360
|
return i || i === 0;
|
|
8232
8361
|
});
|
|
8233
8362
|
if (noEmptyArray$1(item.children)) {
|
|
8234
|
-
|
|
8363
|
+
handleColumns(item.children, indexArrInside);
|
|
8235
8364
|
} else {
|
|
8236
8365
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
8237
8366
|
item.onHeaderCell = function (column) {
|
|
@@ -8247,7 +8376,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8247
8376
|
handleAntdColumnsSpecialParams(item);
|
|
8248
8377
|
return _objectSpread2({}, item);
|
|
8249
8378
|
});
|
|
8250
|
-
|
|
8379
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
8251
8380
|
return setShowColumnsCallback(res);
|
|
8252
8381
|
});
|
|
8253
8382
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -8532,9 +8661,9 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8532
8661
|
var requestConfig = _objectSpread2({
|
|
8533
8662
|
url: "".concat(prefixUrl.selectPrefix, "/supplier"),
|
|
8534
8663
|
filter: 'qp-name,code-orGroup,like',
|
|
8535
|
-
otherParams: {
|
|
8664
|
+
otherParams: _objectSpread2({
|
|
8536
8665
|
sorter: 'desc-id'
|
|
8537
|
-
}
|
|
8666
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {})
|
|
8538
8667
|
}, requestConfigProp);
|
|
8539
8668
|
var selectProps = selectConfigProps;
|
|
8540
8669
|
/*
|
|
@@ -8561,7 +8690,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8561
8690
|
});
|
|
8562
8691
|
};
|
|
8563
8692
|
// 格式化树选择器数据源
|
|
8564
|
-
var
|
|
8693
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
8565
8694
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
8566
8695
|
return {
|
|
8567
8696
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -8571,7 +8700,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8571
8700
|
isLeaf: !haveChildren,
|
|
8572
8701
|
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
8573
8702
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
8574
|
-
return
|
|
8703
|
+
return mapSearchTree(i, resKeyValue, disabledJudge);
|
|
8575
8704
|
}) : []
|
|
8576
8705
|
};
|
|
8577
8706
|
};
|
|
@@ -8585,7 +8714,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8585
8714
|
disabledJudge = false;
|
|
8586
8715
|
}
|
|
8587
8716
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
8588
|
-
return
|
|
8717
|
+
return mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
8589
8718
|
}) || [];
|
|
8590
8719
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
8591
8720
|
};
|
|
@@ -8825,12 +8954,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8825
8954
|
requestConfig = _objectSpread2({
|
|
8826
8955
|
url: "".concat(prefixUrl.selectPrefix, "/sku/doPageBySelect/v3"),
|
|
8827
8956
|
filter: 'skuCodeAndSkuName',
|
|
8957
|
+
searchStartLength: 4,
|
|
8828
8958
|
mappingTextField: 'name',
|
|
8829
8959
|
mappingValueField: 'skuCode',
|
|
8830
8960
|
mappingTextShowTextField: ['name', 'propertyNameAndValue'],
|
|
8831
|
-
otherParams: {
|
|
8832
|
-
|
|
8833
|
-
},
|
|
8961
|
+
otherParams: _objectSpread2({
|
|
8962
|
+
'ownOrgSign': getCurrentTargetBgId()
|
|
8963
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
8834
8964
|
sourceName: 'skuCode'
|
|
8835
8965
|
}, requestConfigProp);
|
|
8836
8966
|
selectProps = _objectSpread2({
|
|
@@ -8921,7 +9051,6 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8921
9051
|
modalTableTitle: '选择SKU',
|
|
8922
9052
|
tableSearchForm: tableSearchForm,
|
|
8923
9053
|
isHorizontally: true,
|
|
8924
|
-
modalRadioNeedFooter: true,
|
|
8925
9054
|
tableColumns: [{
|
|
8926
9055
|
title: '序号',
|
|
8927
9056
|
dataIndex: 'keyIndex',
|
|
@@ -8992,10 +9121,10 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8992
9121
|
filter: 'qp-itemCode,name-orGroup,like',
|
|
8993
9122
|
mappingTextField: 'name',
|
|
8994
9123
|
mappingValueField: 'itemCode',
|
|
8995
|
-
otherParams: {
|
|
9124
|
+
otherParams: _objectSpread2({
|
|
8996
9125
|
'qp-approveStatus-eq': 1,
|
|
8997
9126
|
sorter: 'desc-id'
|
|
8998
|
-
},
|
|
9127
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
8999
9128
|
sourceName: 'itemCode'
|
|
9000
9129
|
}, requestConfigProp);
|
|
9001
9130
|
tableSearchForm = [{
|
|
@@ -9253,9 +9382,9 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9253
9382
|
filter: 'qp-code,name-orGroup,like',
|
|
9254
9383
|
mappingTextField: 'name',
|
|
9255
9384
|
mappingValueField: 'code',
|
|
9256
|
-
otherParams: {
|
|
9257
|
-
'qp-skcStatus-eq': 1
|
|
9258
|
-
},
|
|
9385
|
+
otherParams: _objectSpread2({
|
|
9386
|
+
'qp-skcStatus-eq': 1
|
|
9387
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
9259
9388
|
sourceName: 'qp-skcCode-eq'
|
|
9260
9389
|
}, requestConfigProp);
|
|
9261
9390
|
Promise.all(fieldLoadSource).then(function (x) {
|
|
@@ -9317,9 +9446,9 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9317
9446
|
mappingTextField: 'value',
|
|
9318
9447
|
mappingTextShowKeyField: 'propertyValueCode',
|
|
9319
9448
|
mappingValueField: 'propertyValueCode',
|
|
9320
|
-
otherParams: {
|
|
9449
|
+
otherParams: _objectSpread2({
|
|
9321
9450
|
sorter: 'desc-id'
|
|
9322
|
-
},
|
|
9451
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
9323
9452
|
sourceName: 'qp-propertyValueCode-in'
|
|
9324
9453
|
}, requestConfigProp);
|
|
9325
9454
|
needModalTable = false;
|
|
@@ -9337,6 +9466,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9337
9466
|
}]
|
|
9338
9467
|
}, selectConfigProps);
|
|
9339
9468
|
requestConfig = _objectSpread2({
|
|
9469
|
+
init: true,
|
|
9340
9470
|
url: "".concat(prefixUrl.selectPrefix, "/physicalWarehouse"),
|
|
9341
9471
|
filter: 'qp-physicalWarehouseName,physicalWarehouseCode-orGroup,like',
|
|
9342
9472
|
mappingTextField: 'physicalWarehouseName',
|
|
@@ -9346,7 +9476,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9346
9476
|
'qp-isEnable-eq': 1
|
|
9347
9477
|
}), {}, {
|
|
9348
9478
|
sorter: 'desc-id'
|
|
9349
|
-
}),
|
|
9479
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
9350
9480
|
sourceName: 'warehouseIds'
|
|
9351
9481
|
}, requestConfigProp);
|
|
9352
9482
|
tableSearchForm = [{
|
|
@@ -9439,6 +9569,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9439
9569
|
}]
|
|
9440
9570
|
}, selectConfigProps);
|
|
9441
9571
|
requestConfig = _objectSpread2({
|
|
9572
|
+
init: true,
|
|
9442
9573
|
url: "".concat(prefixUrl.selectPrefix, "/realWarehouse"),
|
|
9443
9574
|
filter: 'qp-realWarehouseName,realWarehouseCode-orGroup,like',
|
|
9444
9575
|
mappingTextField: 'realWarehouseName',
|
|
@@ -9448,7 +9579,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9448
9579
|
'qp-isEnable-eq': 1
|
|
9449
9580
|
}), {}, {
|
|
9450
9581
|
sorter: 'desc-id'
|
|
9451
|
-
}),
|
|
9582
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
9452
9583
|
sourceName: 'warehouseIds'
|
|
9453
9584
|
}, requestConfigProp);
|
|
9454
9585
|
tableSearchForm = [{
|
|
@@ -9512,6 +9643,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9512
9643
|
}]
|
|
9513
9644
|
}, selectConfigProps);
|
|
9514
9645
|
requestConfig = _objectSpread2({
|
|
9646
|
+
init: true,
|
|
9515
9647
|
url: "".concat(prefixUrl.selectPrefix, "/ownerWarehouse"),
|
|
9516
9648
|
filter: 'qp-name,operationWarehouseCode-orGroup,like',
|
|
9517
9649
|
mappingTextField: 'name',
|
|
@@ -9521,7 +9653,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9521
9653
|
'qp-status-eq': 1
|
|
9522
9654
|
}), {}, {
|
|
9523
9655
|
sorter: 'desc-id'
|
|
9524
|
-
}),
|
|
9656
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
9525
9657
|
sourceName: 'qp-operationWarehouseCode-in'
|
|
9526
9658
|
}, requestConfigProp);
|
|
9527
9659
|
tableSearchForm = [{
|
|
@@ -9602,15 +9734,16 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9602
9734
|
}]
|
|
9603
9735
|
}, selectConfigProps);
|
|
9604
9736
|
requestConfig = _objectSpread2({
|
|
9737
|
+
init: true,
|
|
9605
9738
|
url: "".concat(prefixUrl.selectPrefix, "/virtualWarehouse"),
|
|
9606
9739
|
filter: 'qp-virtualWarehouseName,virtualWarehouseCode-orGroup,like',
|
|
9607
9740
|
mappingTextField: 'virtualWarehouseName',
|
|
9608
9741
|
mappingTextShowKeyField: 'virtualWarehouseCode',
|
|
9609
9742
|
mappingValueField: 'id',
|
|
9610
|
-
otherParams: {
|
|
9743
|
+
otherParams: _objectSpread2({
|
|
9611
9744
|
'qp-isEnable-eq': 1,
|
|
9612
9745
|
sorter: 'desc-id'
|
|
9613
|
-
},
|
|
9746
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
9614
9747
|
sourceName: 'warehouseIds'
|
|
9615
9748
|
}, requestConfigProp);
|
|
9616
9749
|
needModalTable = false;
|
|
@@ -9627,15 +9760,16 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9627
9760
|
}]
|
|
9628
9761
|
}, selectConfigProps);
|
|
9629
9762
|
requestConfig = _objectSpread2({
|
|
9763
|
+
init: true,
|
|
9630
9764
|
url: "".concat(prefixUrl.selectPrefix, "/channelWarehouse"),
|
|
9631
9765
|
filter: 'qp-channelWarehouseName,channelWarehouseCode-orGroup,like',
|
|
9632
9766
|
mappingTextField: 'channelWarehouseName',
|
|
9633
9767
|
mappingTextShowKeyField: 'channelWarehouseCode',
|
|
9634
9768
|
mappingValueField: 'id',
|
|
9635
|
-
otherParams: {
|
|
9769
|
+
otherParams: _objectSpread2({
|
|
9636
9770
|
'qp-isEnable-eq': 1,
|
|
9637
9771
|
sorter: 'desc-id'
|
|
9638
|
-
},
|
|
9772
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
9639
9773
|
sourceName: 'warehouseIds'
|
|
9640
9774
|
}, requestConfigProp);
|
|
9641
9775
|
needModalTable = false;
|
|
@@ -9653,14 +9787,15 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9653
9787
|
}]
|
|
9654
9788
|
}, selectConfigProps);
|
|
9655
9789
|
requestConfig = _objectSpread2({
|
|
9790
|
+
init: true,
|
|
9656
9791
|
url: "".concat(prefixUrl.selectPrefix, "/uc/customer/v2"),
|
|
9657
9792
|
filter: 'qp-name,code-orGroup,like',
|
|
9658
9793
|
mappingTextField: 'name',
|
|
9659
9794
|
mappingValueField: 'code',
|
|
9660
|
-
otherParams: {
|
|
9795
|
+
otherParams: _objectSpread2({
|
|
9661
9796
|
'qp-status-eq': 10,
|
|
9662
9797
|
sorter: 'desc-id'
|
|
9663
|
-
},
|
|
9798
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
9664
9799
|
sourceName: 'customCode'
|
|
9665
9800
|
}, requestConfigProp);
|
|
9666
9801
|
tableSearchForm = [{
|
|
@@ -9799,15 +9934,16 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9799
9934
|
}, selectConfigProps);
|
|
9800
9935
|
// 版本2
|
|
9801
9936
|
requestConfig = _objectSpread2({
|
|
9937
|
+
init: true,
|
|
9802
9938
|
url: "".concat(prefixUrl.selectPrefix, "/customer"),
|
|
9803
9939
|
filter: 'qp-name,code-orGroup,like',
|
|
9804
9940
|
mappingTextField: 'name',
|
|
9805
9941
|
mappingValueField: 'code',
|
|
9806
|
-
otherParams: {
|
|
9942
|
+
otherParams: _objectSpread2({
|
|
9807
9943
|
'qp-isMain-eq': 1,
|
|
9808
9944
|
'qp-status-eq': 1,
|
|
9809
9945
|
sorter: 'desc-id'
|
|
9810
|
-
},
|
|
9946
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
9811
9947
|
sourceName: 'customCode'
|
|
9812
9948
|
}, requestConfigProp);
|
|
9813
9949
|
tableSearchForm = [{
|
|
@@ -9900,13 +10036,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9900
10036
|
}]
|
|
9901
10037
|
}, selectConfigProps);
|
|
9902
10038
|
requestConfig = _objectSpread2({
|
|
10039
|
+
init: true,
|
|
9903
10040
|
url: "".concat(prefixUrl.selectPrefix, "/store"),
|
|
9904
10041
|
filter: 'qp-name,code-orGroup,like',
|
|
9905
10042
|
mappingTextField: 'name',
|
|
9906
10043
|
mappingValueField: 'code',
|
|
9907
|
-
otherParams: {
|
|
10044
|
+
otherParams: _objectSpread2({
|
|
9908
10045
|
sorter: 'desc-id'
|
|
9909
|
-
},
|
|
10046
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
9910
10047
|
sourceName: 'code'
|
|
9911
10048
|
}, requestConfigProp);
|
|
9912
10049
|
tableSearchForm = [{
|
|
@@ -10094,13 +10231,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10094
10231
|
}]
|
|
10095
10232
|
}, selectConfigProps);
|
|
10096
10233
|
requestConfig = _objectSpread2({
|
|
10234
|
+
init: true,
|
|
10097
10235
|
url: "".concat(prefixUrl.selectPrefix, "/store/page"),
|
|
10098
10236
|
filter: 'qp-name,code-orGroup,like',
|
|
10099
10237
|
mappingTextField: 'name',
|
|
10100
10238
|
mappingValueField: 'code',
|
|
10101
|
-
otherParams: {
|
|
10239
|
+
otherParams: _objectSpread2({
|
|
10102
10240
|
sorter: 'desc-id'
|
|
10103
|
-
},
|
|
10241
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
10104
10242
|
sourceName: 'code'
|
|
10105
10243
|
}, requestConfigProp);
|
|
10106
10244
|
tableSearchForm = [{
|
|
@@ -10205,9 +10343,9 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10205
10343
|
mappingTextField: 'name',
|
|
10206
10344
|
mappingTextShowKeyField: 'code',
|
|
10207
10345
|
mappingValueField: 'id',
|
|
10208
|
-
otherParams: {
|
|
10346
|
+
otherParams: _objectSpread2({
|
|
10209
10347
|
sorter: 'desc-id'
|
|
10210
|
-
},
|
|
10348
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
10211
10349
|
sourceName: 'accountingSubjectCode'
|
|
10212
10350
|
}, requestConfigProp);
|
|
10213
10351
|
needModalTable = false;
|
|
@@ -10230,9 +10368,9 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10230
10368
|
mappingTextField: 'name',
|
|
10231
10369
|
mappingTextShowKeyField: 'code',
|
|
10232
10370
|
mappingValueField: 'id',
|
|
10233
|
-
otherParams: {
|
|
10371
|
+
otherParams: _objectSpread2({
|
|
10234
10372
|
sorter: 'desc-id'
|
|
10235
|
-
},
|
|
10373
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
10236
10374
|
sourceName: 'inventoryOrgCode'
|
|
10237
10375
|
}, requestConfigProp);
|
|
10238
10376
|
needModalTable = false;
|
|
@@ -10255,9 +10393,9 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10255
10393
|
mappingTextField: 'name',
|
|
10256
10394
|
mappingTextShowKeyField: 'code',
|
|
10257
10395
|
mappingValueField: 'id',
|
|
10258
|
-
otherParams: {
|
|
10396
|
+
otherParams: _objectSpread2({
|
|
10259
10397
|
sorter: 'desc-id'
|
|
10260
|
-
},
|
|
10398
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
10261
10399
|
sourceName: 'corporationCompany'
|
|
10262
10400
|
}, requestConfigProp);
|
|
10263
10401
|
needModalTable = false;
|
|
@@ -10280,9 +10418,9 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10280
10418
|
mappingTextField: 'name',
|
|
10281
10419
|
mappingTextShowKeyField: 'socialCreditCode',
|
|
10282
10420
|
mappingValueField: 'socialCreditCode',
|
|
10283
|
-
otherParams: {
|
|
10421
|
+
otherParams: _objectSpread2({
|
|
10284
10422
|
sorter: 'desc-id'
|
|
10285
|
-
},
|
|
10423
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
10286
10424
|
sourceName: 'platCompany'
|
|
10287
10425
|
}, requestConfigProp);
|
|
10288
10426
|
needModalTable = false;
|
|
@@ -10305,11 +10443,11 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10305
10443
|
mappingTextField: 'name',
|
|
10306
10444
|
mappingTextShowKeyField: 'employeeNumber',
|
|
10307
10445
|
mappingValueField: 'employeeNumber',
|
|
10308
|
-
otherParams: {
|
|
10446
|
+
otherParams: _objectSpread2({
|
|
10309
10447
|
'qp-enable-eq': 10,
|
|
10310
10448
|
'qp-employmentType-eq': 20,
|
|
10311
10449
|
sorter: 'desc-id'
|
|
10312
|
-
},
|
|
10450
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
10313
10451
|
sourceName: 'employeeNumber'
|
|
10314
10452
|
}, requestConfigProp);
|
|
10315
10453
|
tableSearchForm = [{
|
|
@@ -10405,7 +10543,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10405
10543
|
'qp-employmentType-eq': 20
|
|
10406
10544
|
}), {}, {
|
|
10407
10545
|
sorter: 'desc-id'
|
|
10408
|
-
}),
|
|
10546
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
10409
10547
|
sourceName: 'employeeNumber'
|
|
10410
10548
|
}, requestConfigProp);
|
|
10411
10549
|
tableSearchForm = [{
|
|
@@ -10540,9 +10678,9 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10540
10678
|
mappingTextField: 'name',
|
|
10541
10679
|
mappingTextShowKeyField: 'code',
|
|
10542
10680
|
mappingValueField: 'code',
|
|
10543
|
-
otherParams: {
|
|
10681
|
+
otherParams: _objectSpread2({
|
|
10544
10682
|
sorter: 'desc-id'
|
|
10545
|
-
},
|
|
10683
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
10546
10684
|
sourceName: 'deliveryModeCode'
|
|
10547
10685
|
}, requestConfigProp);
|
|
10548
10686
|
tableSearchForm = [{
|
|
@@ -10676,9 +10814,9 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10676
10814
|
mappingTextField: 'name',
|
|
10677
10815
|
mappingTextShowKeyField: 'code',
|
|
10678
10816
|
mappingValueField: 'code',
|
|
10679
|
-
otherParams: {
|
|
10817
|
+
otherParams: _objectSpread2({
|
|
10680
10818
|
sorter: 'desc-id'
|
|
10681
|
-
},
|
|
10819
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
10682
10820
|
sourceName: 'ruleTemplateCode'
|
|
10683
10821
|
}, requestConfigProp);
|
|
10684
10822
|
tableSearchForm = [{
|
|
@@ -10747,10 +10885,10 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10747
10885
|
mappingTextField: 'name',
|
|
10748
10886
|
mappingTextShowKeyField: 'code',
|
|
10749
10887
|
mappingValueField: 'code',
|
|
10750
|
-
otherParams: {
|
|
10888
|
+
otherParams: _objectSpread2({
|
|
10751
10889
|
'qp-status-eq': 10,
|
|
10752
10890
|
sorter: 'desc-id'
|
|
10753
|
-
},
|
|
10891
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
10754
10892
|
sourceName: 'roleCode'
|
|
10755
10893
|
}, requestConfigProp);
|
|
10756
10894
|
tableSearchForm = [{
|
|
@@ -10843,12 +10981,12 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10843
10981
|
mappingTextField: 'name',
|
|
10844
10982
|
mappingTextShowKeyField: 'code',
|
|
10845
10983
|
mappingValueField: 'code',
|
|
10846
|
-
otherParams: {
|
|
10984
|
+
otherParams: _objectSpread2({
|
|
10847
10985
|
'qp-type-eq': 1,
|
|
10848
10986
|
'qp-isMain-eq': 1,
|
|
10849
10987
|
'qp-status-eq': 10,
|
|
10850
10988
|
sorter: 'desc-id'
|
|
10851
|
-
},
|
|
10989
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
10852
10990
|
sourceName: 'marketChannelCode'
|
|
10853
10991
|
}, requestConfigProp);
|
|
10854
10992
|
tableSearchForm = [{
|
|
@@ -10930,9 +11068,9 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10930
11068
|
mappingTextField: 'name',
|
|
10931
11069
|
mappingTextShowKeyField: 'code',
|
|
10932
11070
|
mappingValueField: 'code',
|
|
10933
|
-
otherParams: {
|
|
11071
|
+
otherParams: _objectSpread2({
|
|
10934
11072
|
sorter: 'desc-createTime'
|
|
10935
|
-
},
|
|
11073
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
10936
11074
|
sourceName: 'organizationCode'
|
|
10937
11075
|
}, requestConfigProp), tableSearchForm = [{
|
|
10938
11076
|
name: 'qp-name-like',
|
|
@@ -11058,9 +11196,9 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11058
11196
|
mappingTextField: 'name',
|
|
11059
11197
|
mappingTextShowKeyField: 'code',
|
|
11060
11198
|
mappingValueField: 'code',
|
|
11061
|
-
otherParams: {
|
|
11199
|
+
otherParams: _objectSpread2({
|
|
11062
11200
|
sorter: 'desc-id'
|
|
11063
|
-
},
|
|
11201
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
11064
11202
|
sourceName: 'personCode'
|
|
11065
11203
|
}, requestConfigProp);
|
|
11066
11204
|
tableSearchForm = [{
|
|
@@ -11118,16 +11256,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11118
11256
|
}]
|
|
11119
11257
|
}, selectConfigProps);
|
|
11120
11258
|
requestConfig = _objectSpread2({
|
|
11259
|
+
init: true,
|
|
11121
11260
|
url: "".concat(prefixUrl.selectPrefix, "/brand/list"),
|
|
11122
11261
|
filter: 'qp-brandCode,name-orGroup,like',
|
|
11123
11262
|
mappingTextField: 'name',
|
|
11124
11263
|
mappingTextShowKeyField: 'brandCode',
|
|
11125
11264
|
mappingValueField: 'brandCode',
|
|
11126
|
-
otherParams: {
|
|
11265
|
+
otherParams: _objectSpread2({
|
|
11127
11266
|
'ctl-withAuth': true,
|
|
11128
11267
|
'qp-status-in': '1',
|
|
11129
11268
|
sorter: 'desc-id'
|
|
11130
|
-
},
|
|
11269
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
11131
11270
|
sourceName: 'brandCode'
|
|
11132
11271
|
}, requestConfigProp);
|
|
11133
11272
|
tableSearchForm = [{
|
|
@@ -11192,10 +11331,10 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11192
11331
|
mappingTextField: 'name',
|
|
11193
11332
|
mappingTextShowKeyField: 'code',
|
|
11194
11333
|
mappingValueField: 'code',
|
|
11195
|
-
otherParams: {
|
|
11334
|
+
otherParams: _objectSpread2({
|
|
11196
11335
|
'qp-enabled-eq': true,
|
|
11197
11336
|
sorter: 'desc-id'
|
|
11198
|
-
},
|
|
11337
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
11199
11338
|
sourceName: 'priceCode'
|
|
11200
11339
|
}, requestConfigProp);
|
|
11201
11340
|
tableSearchForm = [{
|
|
@@ -11247,16 +11386,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11247
11386
|
}]
|
|
11248
11387
|
}, selectConfigProps);
|
|
11249
11388
|
requestConfig = _objectSpread2({
|
|
11389
|
+
init: true,
|
|
11250
11390
|
url: "".concat(prefixUrl.selectPrefix, "/orgViewNode/listNoPage"),
|
|
11251
11391
|
filter: 'qp-code,name-orGroup,like',
|
|
11252
11392
|
mappingTextField: 'name',
|
|
11253
11393
|
mappingTextShowKeyField: 'code',
|
|
11254
11394
|
mappingValueField: 'code',
|
|
11255
|
-
otherParams: {
|
|
11395
|
+
otherParams: _objectSpread2({
|
|
11256
11396
|
'qp-orgViewCode-eq': 'sales-organizational-view',
|
|
11257
11397
|
'qp-status-eq': 10,
|
|
11258
11398
|
sorter: 'desc-createTime'
|
|
11259
|
-
},
|
|
11399
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
11260
11400
|
sourceName: 'supplierCode'
|
|
11261
11401
|
}, requestConfigProp), tableSearchForm = [{
|
|
11262
11402
|
name: 'qp-name-like',
|
|
@@ -12620,7 +12760,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
12620
12760
|
};
|
|
12621
12761
|
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(antd.Button, _objectSpread2({
|
|
12622
12762
|
onClick: handleShowModal
|
|
12623
|
-
}, buttonProps), buttonName), modalProps.visible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
12763
|
+
}, buttonProps), buttonName), modalProps.visible && ( /*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
12624
12764
|
onOk: handleOk,
|
|
12625
12765
|
onCancel: handleCancel,
|
|
12626
12766
|
destroyOnClose: true,
|
|
@@ -12703,7 +12843,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12703
12843
|
_props$showSearch = props.showSearch,
|
|
12704
12844
|
showSearch = _props$showSearch === void 0 ? true : _props$showSearch,
|
|
12705
12845
|
_props$maxTagCount = props.maxTagCount,
|
|
12706
|
-
maxTagCount = _props$maxTagCount === void 0 ?
|
|
12846
|
+
maxTagCount = _props$maxTagCount === void 0 ? 4 : _props$maxTagCount,
|
|
12707
12847
|
_props$multiple = props.multiple,
|
|
12708
12848
|
multiple = _props$multiple === void 0 ? false : _props$multiple,
|
|
12709
12849
|
_props$isChoose = props.isChoose,
|
|
@@ -12739,7 +12879,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12739
12879
|
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
|
|
12740
12880
|
_remoteSource$special = remoteSource.specialBracket,
|
|
12741
12881
|
specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
|
|
12742
|
-
var
|
|
12882
|
+
var mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
12743
12883
|
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
12744
12884
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
12745
12885
|
return {
|
|
@@ -12751,7 +12891,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12751
12891
|
isLeaf: !haveChildren,
|
|
12752
12892
|
disabled: isDisabled(haveChildren, isRoot),
|
|
12753
12893
|
children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
|
|
12754
|
-
return
|
|
12894
|
+
return mapSearchTree(i);
|
|
12755
12895
|
}) : []
|
|
12756
12896
|
};
|
|
12757
12897
|
};
|
|
@@ -12769,8 +12909,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12769
12909
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
12770
12910
|
requestUtil.get("".concat(url, "?").concat(querystring.stringify(paramsData)), {
|
|
12771
12911
|
headers: headers
|
|
12772
|
-
}).then(/*#__PURE__*/function () {
|
|
12773
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
12912
|
+
}).then( /*#__PURE__*/function () {
|
|
12913
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
12774
12914
|
var _ctx$form;
|
|
12775
12915
|
var resData, coverData, data, dataList;
|
|
12776
12916
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -12797,7 +12937,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12797
12937
|
case 9:
|
|
12798
12938
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
12799
12939
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
12800
|
-
return
|
|
12940
|
+
return mapSearchTree(ites);
|
|
12801
12941
|
}) || [];
|
|
12802
12942
|
case 11:
|
|
12803
12943
|
_context.next = 14;
|
|
@@ -12835,11 +12975,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12835
12975
|
return _formatResult;
|
|
12836
12976
|
}
|
|
12837
12977
|
};
|
|
12838
|
-
var
|
|
12978
|
+
var parallelData = function parallelData(data, result) {
|
|
12839
12979
|
data.forEach(function (i) {
|
|
12840
12980
|
result.push(i);
|
|
12841
12981
|
if (i[treeChildrenRoom]) {
|
|
12842
|
-
|
|
12982
|
+
parallelData(i[treeChildrenRoom], result);
|
|
12843
12983
|
}
|
|
12844
12984
|
});
|
|
12845
12985
|
return result;
|
|
@@ -12879,7 +13019,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12879
13019
|
var _ctx$form2;
|
|
12880
13020
|
var handleData = formatData(data);
|
|
12881
13021
|
// 获取选中树节点当条数据,并返回给调用业务
|
|
12882
|
-
var parallelTreeData =
|
|
13022
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
12883
13023
|
var currentItem = getSelectItem(parallelTreeData, data);
|
|
12884
13024
|
onChange(handleData, data, currentItem, parallelTreeData);
|
|
12885
13025
|
onChangeName && onChangeName(dataName);
|
|
@@ -12922,7 +13062,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12922
13062
|
var getShowStr = function getShowStr() {
|
|
12923
13063
|
var isMultiple = multiple || treeCheckable;
|
|
12924
13064
|
var kongValue = '无';
|
|
12925
|
-
var parallelTreeData =
|
|
13065
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
12926
13066
|
var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
|
|
12927
13067
|
if (isMultiple) {
|
|
12928
13068
|
return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
|
|
@@ -12934,7 +13074,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12934
13074
|
var isShouldShowStr = (disabled || mode === 'view' || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) === 'view') && ctx;
|
|
12935
13075
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
12936
13076
|
className: 'tree_search_select'
|
|
12937
|
-
}, isShouldShowStr ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
13077
|
+
}, isShouldShowStr ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
12938
13078
|
title: getShowStr(),
|
|
12939
13079
|
style: {
|
|
12940
13080
|
overflow: 'hidden',
|
|
@@ -12942,7 +13082,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12942
13082
|
whiteSpace: 'nowrap'
|
|
12943
13083
|
},
|
|
12944
13084
|
className: 'search_select_show'
|
|
12945
|
-
}, getShowStr())) : (/*#__PURE__*/React__default['default'].createElement(antd.TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
13085
|
+
}, getShowStr())) : ( /*#__PURE__*/React__default['default'].createElement(antd.TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
12946
13086
|
treeCheckable: treeCheckable,
|
|
12947
13087
|
maxTagCount: maxTagCount,
|
|
12948
13088
|
showSearch: showSearch,
|
|
@@ -13139,7 +13279,7 @@ var index$2 = (function (props) {
|
|
|
13139
13279
|
} : {}
|
|
13140
13280
|
}, item.text)), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13141
13281
|
className: 'status-label-operate'
|
|
13142
|
-
}, item.isDone ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
13282
|
+
}, item.isDone ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13143
13283
|
title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
|
|
13144
13284
|
}, "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--'))) : null), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13145
13285
|
style: {
|
|
@@ -13284,7 +13424,7 @@ var ExportIcon = function ExportIcon(_ref) {
|
|
|
13284
13424
|
})));
|
|
13285
13425
|
};
|
|
13286
13426
|
|
|
13287
|
-
var css_248z$b = ".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:
|
|
13427
|
+
var css_248z$b = ".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";
|
|
13288
13428
|
styleInject(css_248z$b);
|
|
13289
13429
|
|
|
13290
13430
|
var _excluded$8 = ["className", "style"];
|
|
@@ -13871,7 +14011,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13871
14011
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13872
14012
|
className: 'sort_table_wrapper'
|
|
13873
14013
|
}, visible && /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
13874
|
-
title: "\
|
|
14014
|
+
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
13875
14015
|
wrapClassName: 'sort_table_wrapper',
|
|
13876
14016
|
width: 820,
|
|
13877
14017
|
visible: visible,
|
|
@@ -13908,19 +14048,19 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13908
14048
|
className: 'sort_table_column_wrapper'
|
|
13909
14049
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
13910
14050
|
className: 'sort_table_column_count'
|
|
13911
|
-
},
|
|
14051
|
+
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u52FE\u9009\u4F60\u60F3\u4F7F\u7528\u7684\u7B5B\u9009\u6761\u4EF6")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13912
14052
|
className: 'sort_table_column'
|
|
13913
14053
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
13914
14054
|
prefix: /*#__PURE__*/React__default['default'].createElement(icons.SearchOutlined, {
|
|
13915
14055
|
className: "site-form-item-icon"
|
|
13916
14056
|
}),
|
|
13917
|
-
placeholder: "\u641C\u7D22",
|
|
14057
|
+
placeholder: "\u8F93\u5165\u7B5B\u9009\u6761\u4EF6\u540D\u79F0\u641C\u7D22",
|
|
13918
14058
|
allowClear: true,
|
|
13919
14059
|
onChange: this.onSearch,
|
|
13920
14060
|
style: {
|
|
13921
|
-
width:
|
|
14061
|
+
width: 525
|
|
13922
14062
|
}
|
|
13923
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
14063
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
13924
14064
|
checked: !dataSource.some(function (item) {
|
|
13925
14065
|
if (item.hidden) return true;
|
|
13926
14066
|
return false;
|
|
@@ -13958,13 +14098,13 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13958
14098
|
_this2.onChange(e, item.title);
|
|
13959
14099
|
}
|
|
13960
14100
|
}, item.title);
|
|
13961
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
14101
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("span", {
|
|
13962
14102
|
style: {
|
|
13963
14103
|
width: '144px'
|
|
13964
14104
|
}
|
|
13965
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
14105
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13966
14106
|
className: 'sort_table_column_all_empty'
|
|
13967
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14107
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13968
14108
|
className: 'sort_table_column_special'
|
|
13969
14109
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13970
14110
|
className: 'sort_table_column_all'
|
|
@@ -13986,7 +14126,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13986
14126
|
className: 'sort_table_content_wrapper'
|
|
13987
14127
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
13988
14128
|
className: 'sort_table_content_count'
|
|
13989
|
-
},
|
|
14129
|
+
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u5DF2\u9009\u62E9\u7684\u641C\u7D22\u6761\u4EF6\u6392\u5E8F")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13990
14130
|
className: 'sort_table_content'
|
|
13991
14131
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
13992
14132
|
style: {
|
|
@@ -14121,10 +14261,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14121
14261
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
14122
14262
|
return _objectSpread2({}, col);
|
|
14123
14263
|
});
|
|
14124
|
-
var
|
|
14264
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
14125
14265
|
var i = indexArr.shift();
|
|
14126
14266
|
if (indexArr.length > 0) {
|
|
14127
|
-
|
|
14267
|
+
handleIndex(arr[i].children, indexArr);
|
|
14128
14268
|
} else {
|
|
14129
14269
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
14130
14270
|
width: size.width
|
|
@@ -14132,7 +14272,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14132
14272
|
handleBssulaColumnsSpecialParams(arr[i]);
|
|
14133
14273
|
}
|
|
14134
14274
|
};
|
|
14135
|
-
|
|
14275
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
14136
14276
|
_this.setState({
|
|
14137
14277
|
showColumns: _toConsumableArray(newColumns)
|
|
14138
14278
|
});
|
|
@@ -14210,13 +14350,13 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14210
14350
|
showSummary = summary;
|
|
14211
14351
|
}
|
|
14212
14352
|
}
|
|
14213
|
-
var
|
|
14353
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
14214
14354
|
arr.forEach(function (item, index) {
|
|
14215
14355
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
14216
14356
|
return i || i === 0;
|
|
14217
14357
|
});
|
|
14218
14358
|
if (noEmptyArray$1(item.children)) {
|
|
14219
|
-
|
|
14359
|
+
handleColumns(item.children, indexArrInside);
|
|
14220
14360
|
} else {
|
|
14221
14361
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
14222
14362
|
item.onHeaderCell = function (column) {
|
|
@@ -14232,7 +14372,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14232
14372
|
handleBssulaColumnsSpecialParams(item);
|
|
14233
14373
|
return _objectSpread2({}, item);
|
|
14234
14374
|
});
|
|
14235
|
-
|
|
14375
|
+
handleColumns(showCol, []);
|
|
14236
14376
|
if (dynamicColumns.length) {
|
|
14237
14377
|
showCol = this.handledynamicColumns(showCol);
|
|
14238
14378
|
}
|
|
@@ -14366,10 +14506,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14366
14506
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
14367
14507
|
return _objectSpread2({}, col);
|
|
14368
14508
|
});
|
|
14369
|
-
var
|
|
14509
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
14370
14510
|
var i = indexArr.shift();
|
|
14371
14511
|
if (indexArr.length > 0) {
|
|
14372
|
-
|
|
14512
|
+
handleIndex(arr[i].children, indexArr);
|
|
14373
14513
|
} else {
|
|
14374
14514
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
14375
14515
|
width: size.width
|
|
@@ -14377,7 +14517,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14377
14517
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
14378
14518
|
}
|
|
14379
14519
|
};
|
|
14380
|
-
|
|
14520
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
14381
14521
|
_this.setState({
|
|
14382
14522
|
showColumns: _toConsumableArray(newColumns)
|
|
14383
14523
|
});
|
|
@@ -14453,13 +14593,13 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14453
14593
|
showSummary = summary;
|
|
14454
14594
|
}
|
|
14455
14595
|
}
|
|
14456
|
-
var
|
|
14596
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
14457
14597
|
arr.forEach(function (item, index) {
|
|
14458
14598
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
14459
14599
|
return i || i === 0;
|
|
14460
14600
|
});
|
|
14461
14601
|
if (noEmptyArray$1(item.children)) {
|
|
14462
|
-
|
|
14602
|
+
handleColumns(item.children, indexArrInside);
|
|
14463
14603
|
} else {
|
|
14464
14604
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
14465
14605
|
item.onHeaderCell = function (column) {
|
|
@@ -14475,7 +14615,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14475
14615
|
handleAntdColumnsSpecialParams(item);
|
|
14476
14616
|
return _objectSpread2({}, item);
|
|
14477
14617
|
});
|
|
14478
|
-
|
|
14618
|
+
handleColumns(showCol, []);
|
|
14479
14619
|
if (dynamicColumns.length) {
|
|
14480
14620
|
showCol = this.handledynamicColumns(showCol);
|
|
14481
14621
|
}
|
|
@@ -14572,20 +14712,20 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
|
|
|
14572
14712
|
};
|
|
14573
14713
|
var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
14574
14714
|
var routerMap = {};
|
|
14575
|
-
var
|
|
14715
|
+
var flattenMenuData = function flattenMenuData(data, parent) {
|
|
14576
14716
|
var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
|
|
14577
14717
|
data.forEach(function (menuItem) {
|
|
14578
14718
|
var newMenuItem = _objectSpread2(_objectSpread2({}, menuItem), {}, {
|
|
14579
14719
|
nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
|
|
14580
14720
|
});
|
|
14581
14721
|
if (newMenuItem.children) {
|
|
14582
|
-
|
|
14722
|
+
flattenMenuData(newMenuItem.children, newMenuItem);
|
|
14583
14723
|
}
|
|
14584
14724
|
// Reduce memory usage
|
|
14585
14725
|
routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
|
|
14586
14726
|
});
|
|
14587
14727
|
};
|
|
14588
|
-
|
|
14728
|
+
flattenMenuData(menuData, {});
|
|
14589
14729
|
return routerMap;
|
|
14590
14730
|
};
|
|
14591
14731
|
// mode类型判断
|
|
@@ -14646,7 +14786,7 @@ var getDetailMatchRoute = function getDetailMatchRoute(path, routeObj, hideRoute
|
|
|
14646
14786
|
return undefined;
|
|
14647
14787
|
};
|
|
14648
14788
|
|
|
14649
|
-
var css_248z$c = ".detail_page_head {\n height: 32px;\n z-index: 5;\n display: flex;\n align-items: center;\n background-color: #FFFFFF;\n font-weight: 500;\n}\n.detail_page_head .ant-breadcrumb {\n display: block !important;\n}\n.detail_page_head .ant-breadcrumb .ant-breadcrumb-separator {\n margin: 0 2px;\n}\n.detail_page_head .ant-breadcrumb li .bread_name {\n color: #8B8B8B;\n font-size: 12px;\n cursor: pointer;\n}\n.detail_page_head .ant-breadcrumb li .bread_name_last {\n color: #282828;\n}\n.detail_page_head .ant-breadcrumb li .
|
|
14789
|
+
var css_248z$c = ".bs_detail_page_head_wrapper {\n height: 32px;\n position: sticky;\n background: #fff;\n width: 100%;\n top: 0px;\n z-index: 10;\n}\n.detail_page_head {\n height: 32px;\n z-index: 5;\n display: flex;\n align-items: center;\n background-color: #FFFFFF;\n font-weight: 500;\n}\n.detail_page_head .ant-breadcrumb {\n display: block !important;\n}\n.detail_page_head .ant-breadcrumb .ant-breadcrumb-separator {\n margin: 0 2px;\n}\n.detail_page_head .ant-breadcrumb li .bread_name {\n color: #8B8B8B;\n font-size: 12px;\n cursor: pointer;\n}\n.detail_page_head .ant-breadcrumb li .bread_name_last {\n color: #282828;\n}\n.detail_page_head .ant-breadcrumb li .bread_name_pre:hover {\n color: #000000d9;\n}\n.detail_page_wrapper {\n height: calc(100vh - 80px);\n}\n.back_home_img_content {\n display: inline-block;\n height: 16px;\n width: 16px;\n border: 1px solid #BABABA;\n margin: 0 8px 0 10px;\n border-radius: 14px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n}\n.back_home_img_content .anticon-arrow-left {\n color: #BABABA;\n}\n.back_home_img_content:hover {\n background-color: #005cff;\n border: 1px solid #005cff;\n}\n.back_home_img_content:hover .anticon-arrow-left {\n color: #FFFFFF;\n}\n.detail_page_title_box {\n flex-grow: 1;\n display: flex;\n align-items: center;\n}\n.detail_page_title {\n height: 20px;\n font-family: PingFangSC;\n font-weight: 600;\n font-size: 14px;\n padding-right: 10px;\n color: #000000;\n letter-spacing: 0;\n line-height: 20px;\n display: none;\n}\n.detail_page_btns {\n display: flex;\n gap: 8px;\n margin-right: 20px;\n}\n.detail_page_btns button {\n height: 24px !important;\n display: flex;\n align-items: center;\n gap: 2px;\n border-radius: 3px;\n padding: 0 10px;\n}\n.detail_page_btns .ant-btn-dangerous {\n background-color: #EC5246 !important;\n}\n";
|
|
14650
14790
|
styleInject(css_248z$c);
|
|
14651
14791
|
|
|
14652
14792
|
var quanping = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2234px%22%20height%3D%2234px%22%20viewBox%3D%220%200%2034%2034%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%9F%A9%E5%BD%A2%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E5%88%97%E8%A1%A8%E5%8A%9F%E8%83%BD%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E6%98%9F%E6%BE%9C-%E6%90%9C%E7%B4%A2-%E6%90%9C%E7%B4%A2%E5%8A%9F%E8%83%BD%22%20transform%3D%22translate%28-1823.000000%2C%20-297.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E6%90%9C%E7%B4%A2%E7%BB%84%E4%BB%B6-%E6%A0%B7%E5%BC%8F%E4%B8%80%22%20transform%3D%22translate%28230.000000%2C%20284.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%A1%AE%E5%AE%9A%E5%A4%87%E4%BB%BD-2%22%20transform%3D%22translate%281593.000000%2C%2013.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M5.55801813%2C1%20L28.4419819%2C1%20C30.0269041%2C1%2030.6016352%2C1.16502331%2031.181059%2C1.47490258%20C31.7604829%2C1.78478186%2032.2152181%2C2.2395171%2032.5250974%2C2.81894097%20C32.8349767%2C3.39836484%2033%2C3.97309593%2033%2C5.55801813%20L33%2C28.4419819%20C33%2C30.0269041%2032.8349767%2C30.6016352%2032.5250974%2C31.181059%20C32.2152181%2C31.7604829%2031.7604829%2C32.2152181%2031.181059%2C32.5250974%20C30.6016352%2C32.8349767%2030.0269041%2C33%2028.4419819%2C33%20L5.55801813%2C33%20C3.97309593%2C33%203.39836484%2C32.8349767%202.81894097%2C32.5250974%20C2.2395171%2C32.2152181%201.78478186%2C31.7604829%201.47490258%2C31.181059%20C1.16502331%2C30.6016352%201%2C30.0269041%201%2C28.4419819%20L1%2C5.55801813%20C1%2C3.97309593%201.16502331%2C3.39836484%201.47490258%2C2.81894097%20C1.78478186%2C2.2395171%202.2395171%2C1.78478186%202.81894097%2C1.47490258%20C3.39836484%2C1.16502331%203.97309593%2C1%205.55801813%2C1%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20stroke%3D%22%23D9D9D9%22%20stroke-width%3D%220.888888889%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22scanning%22%20transform%3D%22translate%289.000000%2C%209.000000%29%22%20fill%3D%22%23000000%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M5.21873562%2C9.69278114%20L6.28954184%2C10.7432953%20L2.532%2C14.5%20L5.24949999%2C14.5%20L5.24949999%2C16%20L1.5%2C16%20C0.671572876%2C16%200%2C15.3284271%200%2C14.5%20L0%2C11%20L1.5%2C11%20L1.5%2C13.41%20L5.21873562%2C9.69278114%20Z%20M10.7898541%2C9.72266777%20L14.499%2C13.431%20L14.5%2C11%20L16%2C11%20L16%2C14.5%20C16%2C15.3284271%2015.3284271%2C16%2014.5%2C16%20L10.7495%2C16%20L10.7495%2C14.5%20L13.446%2C14.5%20L9.71904783%2C10.7731819%20L10.7898541%2C9.72266777%20Z%20M14.5%2C0%20C15.3284271%2C0%2016%2C0.671572876%2016%2C1.5%20L16%2C5%20L14.5%2C5%20L14.499%2C2.588%20L10.779708%2C6.3074783%20L9.71904783%2C5.24681813%20L13.465%2C1.5%20L10.75%2C1.5%20L10.75%2C0%20L14.5%2C0%20Z%20M5.25000001%2C0%20L5.25000001%2C1.5%20L2.567%2C1.5%20L6.31400442%2C5.24681813%20L5.25334424%2C6.3074783%20L1.5%2C2.554%20L1.5%2C5%20L0%2C5%20L0%2C1.5%20C0%2C0.671572876%200.671572876%2C0%201.5%2C0%20L5.25000001%2C0%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
@@ -14772,6 +14912,19 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
14772
14912
|
breadcrumbArrs.pop();
|
|
14773
14913
|
breadcrumbArrs.push(title);
|
|
14774
14914
|
}
|
|
14915
|
+
// 处理详情页上层列表页面路径
|
|
14916
|
+
var pattern = /^(\/.*)\/(action|create|edit|view)(\/.*)*$/;
|
|
14917
|
+
var result = pathname.match(pattern);
|
|
14918
|
+
if ((result === null || result === void 0 ? void 0 : result.length) && result[1]) {
|
|
14919
|
+
var parentRoute = matchParamsPath("".concat(basePath).concat(result[1]), breadcrumbNameMap);
|
|
14920
|
+
if (!parentRoute) return;
|
|
14921
|
+
if (breadcrumbArrs.length >= 2) {
|
|
14922
|
+
breadcrumbArrs.splice(-1, 0, {
|
|
14923
|
+
title: parentRoute.name,
|
|
14924
|
+
path: result[1]
|
|
14925
|
+
});
|
|
14926
|
+
}
|
|
14927
|
+
}
|
|
14775
14928
|
setBreadCrumbArr(_toConsumableArray(breadcrumbArrs));
|
|
14776
14929
|
var pageName = umi.formatMessage({
|
|
14777
14930
|
id: currRouterData.locale || currRouterData.name,
|
|
@@ -14859,7 +15012,8 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
14859
15012
|
}))));
|
|
14860
15013
|
};
|
|
14861
15014
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14862
|
-
ref: wrapperContainerRef
|
|
15015
|
+
ref: wrapperContainerRef,
|
|
15016
|
+
className: 'bs_detail_page_head_wrapper'
|
|
14863
15017
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14864
15018
|
className: 'detail_page_head',
|
|
14865
15019
|
style: {
|
|
@@ -14882,7 +15036,14 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
14882
15036
|
key: item
|
|
14883
15037
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
14884
15038
|
className: "".concat(index === breadcrumbArr.length - 1 ? 'bread_name_last' : '', " bread_name")
|
|
14885
|
-
}, item)
|
|
15039
|
+
}, _typeof(item) == 'object' ? /*#__PURE__*/React__default['default'].createElement("span", {
|
|
15040
|
+
className: 'bread_name_pre',
|
|
15041
|
+
onClick: function onClick() {
|
|
15042
|
+
umi.history.push({
|
|
15043
|
+
pathname: item.path
|
|
15044
|
+
});
|
|
15045
|
+
}
|
|
15046
|
+
}, item.title) : item));
|
|
14886
15047
|
}))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14887
15048
|
className: 'detail_page_btns',
|
|
14888
15049
|
style: {
|
|
@@ -14890,7 +15051,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
14890
15051
|
display: 'flex',
|
|
14891
15052
|
gap: '8px'
|
|
14892
15053
|
}
|
|
14893
|
-
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (/*#__PURE__*/React__default['default'].createElement("a", null, isFullScreen ? (/*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
15054
|
+
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? ( /*#__PURE__*/React__default['default'].createElement("a", null, isFullScreen ? ( /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
14894
15055
|
title: "\u53D6\u6D88\u5168\u5C4F"
|
|
14895
15056
|
}, /*#__PURE__*/React__default['default'].createElement("img", {
|
|
14896
15057
|
onClick: function onClick() {
|
|
@@ -14898,7 +15059,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
14898
15059
|
},
|
|
14899
15060
|
width: 24,
|
|
14900
15061
|
src: scanning
|
|
14901
|
-
}))) : (/*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
15062
|
+
}))) : ( /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
14902
15063
|
title: "\u5168\u5C4F"
|
|
14903
15064
|
}, /*#__PURE__*/React__default['default'].createElement("img", {
|
|
14904
15065
|
onClick: function onClick() {
|
|
@@ -14906,7 +15067,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
14906
15067
|
},
|
|
14907
15068
|
width: 24,
|
|
14908
15069
|
src: quanping
|
|
14909
|
-
}))))) : null)), alertProps && (/*#__PURE__*/React__default['default'].createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15070
|
+
}))))) : null)), alertProps && ( /*#__PURE__*/React__default['default'].createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
14910
15071
|
}, function (prevProps, nextProps) {
|
|
14911
15072
|
if (JSON.stringify(prevProps.actionList) != JSON.stringify(nextProps.actionList) || prevProps.title !== nextProps.title) {
|
|
14912
15073
|
return false;
|
|
@@ -14914,7 +15075,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
14914
15075
|
return true;
|
|
14915
15076
|
});
|
|
14916
15077
|
|
|
14917
|
-
var css_248z$e = ".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";
|
|
15078
|
+
var css_248z$e = ".bs_home_page_head_wrapper {\n height: 32px;\n position: sticky;\n background: #fff;\n width: 100%;\n top: 0px;\n z-index: 10;\n}\n.home_page_head {\n display: flex;\n justify-content: space-between;\n align-items: center;\n background-color: #FFFFFF;\n border-bottom: 1px solid #f0f0f0;\n padding: 6px 16px 5px;\n font-weight: 500;\n}\n.home_page_head .home_page_title_wrapper {\n display: flex;\n align-items: center;\n height: 20px;\n line-height: 20px;\n}\n.home_page_head .home_page_title {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 16px;\n color: #000000;\n letter-spacing: 0;\n flex-grow: 1;\n padding-right: 10px;\n display: none;\n}\n.home_page_head .ant-breadcrumb {\n display: block !important;\n}\n.home_page_head .ant-breadcrumb .ant-breadcrumb-separator {\n margin: 0 2px;\n}\n.home_page_head .ant-breadcrumb li .bread_name {\n color: #8B8B8B;\n font-size: 12px;\n line-height: 16px;\n cursor: pointer;\n}\n.home_page_head .ant-breadcrumb li .bread_name_last {\n color: #282828;\n}\n";
|
|
14918
15079
|
styleInject(css_248z$e);
|
|
14919
15080
|
|
|
14920
15081
|
var _excluded$d = ["children"];
|
|
@@ -14979,7 +15140,9 @@ var HeaderWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
14979
15140
|
return getPageTitle(pathname);
|
|
14980
15141
|
}, [pathname, title]);
|
|
14981
15142
|
React$1.useEffect(function () {}, [pathname]);
|
|
14982
|
-
return /*#__PURE__*/React__default['default'].createElement("div",
|
|
15143
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15144
|
+
className: 'bs_home_page_head_wrapper'
|
|
15145
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14983
15146
|
className: 'home_page_head'
|
|
14984
15147
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14985
15148
|
className: 'home_page_title_wrapper'
|
|
@@ -14989,7 +15152,7 @@ var HeaderWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
14989
15152
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
14990
15153
|
className: "".concat(index === breadcrumbArr.length - 1 ? 'bread_name_last' : '', " bread_name")
|
|
14991
15154
|
}, item));
|
|
14992
|
-
}))), extra ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, extra) : ''), alertProps && (/*#__PURE__*/React__default['default'].createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15155
|
+
}))), extra ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, extra) : ''), alertProps && ( /*#__PURE__*/React__default['default'].createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
14993
15156
|
}, function (prevProps, nextProps) {
|
|
14994
15157
|
if (prevProps.title !== nextProps.title) {
|
|
14995
15158
|
return false;
|
|
@@ -14997,7 +15160,7 @@ var HeaderWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
14997
15160
|
return true;
|
|
14998
15161
|
});
|
|
14999
15162
|
|
|
15000
|
-
var css_248z$f = ".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:
|
|
15163
|
+
var css_248z$f = ".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";
|
|
15001
15164
|
styleInject(css_248z$f);
|
|
15002
15165
|
|
|
15003
15166
|
var _excluded$e = ["className", "style"];
|
|
@@ -15629,10 +15792,10 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15629
15792
|
});
|
|
15630
15793
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15631
15794
|
className: 'sort_table_wrapper'
|
|
15632
|
-
}, visible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
15633
|
-
title: "\
|
|
15795
|
+
}, visible && ( /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
15796
|
+
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
15634
15797
|
wrapClassName: 'sort_table_wrapper',
|
|
15635
|
-
width:
|
|
15798
|
+
width: 810,
|
|
15636
15799
|
visible: visible,
|
|
15637
15800
|
onOk: this.handleOk,
|
|
15638
15801
|
onCancel: this.handleCancel,
|
|
@@ -15667,7 +15830,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15667
15830
|
className: 'sort_table_column_wrapper'
|
|
15668
15831
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
15669
15832
|
className: 'sort_table_column_count'
|
|
15670
|
-
},
|
|
15833
|
+
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u52FE\u9009\u4F60\u60F3\u4F7F\u7528\u7684\u7B5B\u9009\u6761\u4EF6")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15671
15834
|
className: 'sort_table_column'
|
|
15672
15835
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
15673
15836
|
prefix: /*#__PURE__*/React__default['default'].createElement(icons.SearchOutlined, {
|
|
@@ -15677,9 +15840,10 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15677
15840
|
allowClear: true,
|
|
15678
15841
|
onChange: this.onSearch,
|
|
15679
15842
|
style: {
|
|
15680
|
-
width:
|
|
15843
|
+
width: 525,
|
|
15844
|
+
height: 24
|
|
15681
15845
|
}
|
|
15682
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
15846
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
15683
15847
|
checked: !dataSource.some(function (item) {
|
|
15684
15848
|
if (item.hidden) return true;
|
|
15685
15849
|
return false;
|
|
@@ -15733,13 +15897,13 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15733
15897
|
_this2.onChange(e, item.title);
|
|
15734
15898
|
}
|
|
15735
15899
|
}, item.title);
|
|
15736
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
15900
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("span", {
|
|
15737
15901
|
style: {
|
|
15738
15902
|
width: '144px'
|
|
15739
15903
|
}
|
|
15740
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
15904
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15741
15905
|
className: 'sort_table_column_all_empty'
|
|
15742
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15906
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15743
15907
|
className: 'sort_table_column_special'
|
|
15744
15908
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15745
15909
|
className: 'sort_table_column_all'
|
|
@@ -15761,7 +15925,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15761
15925
|
className: 'sort_table_content_wrapper'
|
|
15762
15926
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
15763
15927
|
className: 'sort_table_content_count'
|
|
15764
|
-
},
|
|
15928
|
+
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u5DF2\u9009\u62E9\u7684\u641C\u7D22\u6761\u4EF6\u6392\u5E8F")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15765
15929
|
className: 'sort_table_content'
|
|
15766
15930
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
15767
15931
|
style: {
|
|
@@ -15953,21 +16117,23 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15953
16117
|
_this.columns = [{
|
|
15954
16118
|
title: '搜索字段名称',
|
|
15955
16119
|
dataIndex: 'label',
|
|
15956
|
-
className: 'drag-visible'
|
|
15957
|
-
width: 100
|
|
16120
|
+
className: 'drag-visible'
|
|
15958
16121
|
}, {
|
|
15959
16122
|
title: '删除',
|
|
15960
16123
|
dataIndex: 'title1',
|
|
15961
16124
|
render: function render(text, record) {
|
|
15962
16125
|
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
16126
|
+
style: {
|
|
16127
|
+
paddingLeft: '46px'
|
|
16128
|
+
},
|
|
15963
16129
|
onClick: function onClick() {
|
|
15964
16130
|
_this.setState({
|
|
15965
16131
|
sortDataSource: _this.state.sortDataSource.filter(function (item) {
|
|
15966
|
-
return item.
|
|
16132
|
+
return item.name !== record.name;
|
|
15967
16133
|
}),
|
|
15968
16134
|
isDefaultValue: false,
|
|
15969
16135
|
dataSource: _toConsumableArray(_this.state.dataSource.map(function (item) {
|
|
15970
|
-
if (item.
|
|
16136
|
+
if (item.name === record.name) {
|
|
15971
16137
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
15972
16138
|
hidden: true
|
|
15973
16139
|
});
|
|
@@ -16009,7 +16175,8 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16009
16175
|
_this.handleCancel = function (e) {
|
|
16010
16176
|
console.log(e);
|
|
16011
16177
|
_this.setState({
|
|
16012
|
-
visible: false
|
|
16178
|
+
visible: false,
|
|
16179
|
+
searchDataSource: ''
|
|
16013
16180
|
});
|
|
16014
16181
|
};
|
|
16015
16182
|
_this.handleTableHeadHidden = function (title) {
|
|
@@ -16066,18 +16233,18 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16066
16233
|
index: index
|
|
16067
16234
|
}, restProps));
|
|
16068
16235
|
};
|
|
16069
|
-
_this.onChange = function (e,
|
|
16236
|
+
_this.onChange = function (e, name) {
|
|
16070
16237
|
var _this$state4 = _this.state,
|
|
16071
16238
|
sortDataSource = _this$state4.sortDataSource,
|
|
16072
16239
|
dataSource = _this$state4.dataSource;
|
|
16073
16240
|
if (!e.target.checked) {
|
|
16074
16241
|
_this.setState({
|
|
16075
16242
|
sortDataSource: sortDataSource.filter(function (item) {
|
|
16076
|
-
return item.
|
|
16243
|
+
return item.name !== name;
|
|
16077
16244
|
}),
|
|
16078
16245
|
isDefaultValue: false,
|
|
16079
16246
|
dataSource: _toConsumableArray(dataSource.map(function (item) {
|
|
16080
|
-
if (item.
|
|
16247
|
+
if (item.name === name) {
|
|
16081
16248
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
16082
16249
|
hidden: true
|
|
16083
16250
|
});
|
|
@@ -16087,7 +16254,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16087
16254
|
});
|
|
16088
16255
|
} else {
|
|
16089
16256
|
var newSortData = [].concat(_toConsumableArray(sortDataSource), _toConsumableArray(dataSource.filter(function (item) {
|
|
16090
|
-
return item.
|
|
16257
|
+
return item.name === name;
|
|
16091
16258
|
}).map(function (source) {
|
|
16092
16259
|
return _objectSpread2(_objectSpread2({}, source), {}, {
|
|
16093
16260
|
hidden: false
|
|
@@ -16097,7 +16264,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16097
16264
|
sortDataSource: _toConsumableArray(newSortData),
|
|
16098
16265
|
isDefaultValue: false,
|
|
16099
16266
|
dataSource: _toConsumableArray(dataSource.map(function (item) {
|
|
16100
|
-
if (item.
|
|
16267
|
+
if (item.name === name) {
|
|
16101
16268
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
16102
16269
|
hidden: false
|
|
16103
16270
|
});
|
|
@@ -16123,6 +16290,25 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16123
16290
|
onSearchSort: e.target.value
|
|
16124
16291
|
});
|
|
16125
16292
|
};
|
|
16293
|
+
// 处理非标准 特殊搜索项 名称回显
|
|
16294
|
+
_this.showSearchItemLabel = function (item) {
|
|
16295
|
+
var _item$field, _options$;
|
|
16296
|
+
//搜索项 存在 label默认返回
|
|
16297
|
+
if (item.label) {
|
|
16298
|
+
return item.label;
|
|
16299
|
+
} else {
|
|
16300
|
+
switch (item.field.type) {
|
|
16301
|
+
//多值录入搜索组件 默认使用下拉框第一个选项
|
|
16302
|
+
case 'bs-multiInput':
|
|
16303
|
+
var _item$field$props = item === null || item === void 0 ? void 0 : (_item$field = item.field) === null || _item$field === void 0 ? void 0 : _item$field.props,
|
|
16304
|
+
_item$field$props$opt = _item$field$props.options,
|
|
16305
|
+
options = _item$field$props$opt === void 0 ? [] : _item$field$props$opt;
|
|
16306
|
+
return (_options$ = options[0]) === null || _options$ === void 0 ? void 0 : _options$.text;
|
|
16307
|
+
default:
|
|
16308
|
+
return '';
|
|
16309
|
+
}
|
|
16310
|
+
}
|
|
16311
|
+
};
|
|
16126
16312
|
return _this;
|
|
16127
16313
|
}
|
|
16128
16314
|
_inherits(SearchItemTable, _React$Component);
|
|
@@ -16169,19 +16355,30 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16169
16355
|
var _this2 = this;
|
|
16170
16356
|
var _this$state5 = this.state,
|
|
16171
16357
|
_this$state5$dataSour = _this$state5.dataSource,
|
|
16172
|
-
|
|
16358
|
+
originDataSource = _this$state5$dataSour === void 0 ? [] : _this$state5$dataSour,
|
|
16173
16359
|
searchDataSource = _this$state5.searchDataSource,
|
|
16174
|
-
|
|
16360
|
+
_this$state5$sortData = _this$state5.sortDataSource,
|
|
16361
|
+
originSortDataSource = _this$state5$sortData === void 0 ? [] : _this$state5$sortData,
|
|
16175
16362
|
visible = _this$state5.visible,
|
|
16176
16363
|
onSearchSort = _this$state5.onSearchSort;
|
|
16364
|
+
var dataSource = originDataSource.map(function (item) {
|
|
16365
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
16366
|
+
label: _this2.showSearchItemLabel(item)
|
|
16367
|
+
});
|
|
16368
|
+
});
|
|
16369
|
+
var sortDataSource = originSortDataSource.map(function (item) {
|
|
16370
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
16371
|
+
label: _this2.showSearchItemLabel(item)
|
|
16372
|
+
});
|
|
16373
|
+
});
|
|
16177
16374
|
var newSearchSource = dataSource.filter(function (item) {
|
|
16178
16375
|
var _item$label;
|
|
16179
16376
|
return (item === null || item === void 0 ? void 0 : (_item$label = item.label) === null || _item$label === void 0 ? void 0 : _item$label.indexOf(searchDataSource || '')) > -1;
|
|
16180
16377
|
});
|
|
16181
16378
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16182
16379
|
className: 'sort_table_wrapper'
|
|
16183
|
-
}, visible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
16184
|
-
title: "\
|
|
16380
|
+
}, visible && ( /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
16381
|
+
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
16185
16382
|
wrapClassName: 'sort_table_wrapper',
|
|
16186
16383
|
width: 820,
|
|
16187
16384
|
visible: visible,
|
|
@@ -16213,19 +16410,19 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16213
16410
|
className: 'sort_table_column_wrapper'
|
|
16214
16411
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
16215
16412
|
className: 'sort_table_column_count'
|
|
16216
|
-
},
|
|
16413
|
+
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u52FE\u9009\u4F60\u60F3\u4F7F\u7528\u7684\u7B5B\u9009\u6761\u4EF6")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16217
16414
|
className: 'sort_table_column'
|
|
16218
16415
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
16219
16416
|
prefix: /*#__PURE__*/React__default['default'].createElement(icons.SearchOutlined, {
|
|
16220
16417
|
className: "site-form-item-icon"
|
|
16221
16418
|
}),
|
|
16222
|
-
placeholder: "\u641C\u7D22",
|
|
16419
|
+
placeholder: "\u8F93\u5165\u7B5B\u9009\u6761\u4EF6\u540D\u79F0\u641C\u7D22",
|
|
16223
16420
|
allowClear: true,
|
|
16224
16421
|
onChange: this.onSearch,
|
|
16225
16422
|
style: {
|
|
16226
|
-
width:
|
|
16423
|
+
width: 525
|
|
16227
16424
|
}
|
|
16228
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
16425
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
16229
16426
|
checked: !dataSource.some(function (item) {
|
|
16230
16427
|
if (item.hidden) return true;
|
|
16231
16428
|
return false;
|
|
@@ -16251,27 +16448,27 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16251
16448
|
return /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
16252
16449
|
checked: !item.hidden,
|
|
16253
16450
|
onChange: function onChange(e) {
|
|
16254
|
-
_this2.onChange(e, item.
|
|
16451
|
+
_this2.onChange(e, item.name);
|
|
16255
16452
|
}
|
|
16256
16453
|
}, item.label);
|
|
16257
16454
|
}) : dataSource.map(function (item) {
|
|
16258
16455
|
return /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
16259
16456
|
checked: !item.hidden,
|
|
16260
16457
|
onChange: function onChange(e) {
|
|
16261
|
-
_this2.onChange(e, item.
|
|
16458
|
+
_this2.onChange(e, item.name);
|
|
16262
16459
|
}
|
|
16263
16460
|
}, item.label);
|
|
16264
|
-
}), !!newSearchSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
16461
|
+
}), !!newSearchSource.length && ( /*#__PURE__*/React__default['default'].createElement("span", {
|
|
16265
16462
|
style: {
|
|
16266
16463
|
width: '144px'
|
|
16267
16464
|
}
|
|
16268
|
-
})), !newSearchSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
16465
|
+
})), !newSearchSource.length && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16269
16466
|
className: 'sort_table_column_all_empty'
|
|
16270
16467
|
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16271
16468
|
className: 'sort_table_content_wrapper'
|
|
16272
16469
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
16273
16470
|
className: 'sort_table_content_count'
|
|
16274
|
-
},
|
|
16471
|
+
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u5DF2\u9009\u62E9\u7684\u641C\u7D22\u6761\u4EF6\u6392\u5E8F")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16275
16472
|
className: 'sort_table_content'
|
|
16276
16473
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
16277
16474
|
style: {
|
|
@@ -16691,7 +16888,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
16691
16888
|
actionsRender = actionsRender.concat([{
|
|
16692
16889
|
type: 'text',
|
|
16693
16890
|
props: {
|
|
16694
|
-
children: (/*#__PURE__*/React__default['default'].createElement(ExportIcon, {
|
|
16891
|
+
children: ( /*#__PURE__*/React__default['default'].createElement(ExportIcon, {
|
|
16695
16892
|
request: {
|
|
16696
16893
|
url: (value === null || value === void 0 ? void 0 : (_value$exportConfig2 = value.exportConfig) === null || _value$exportConfig2 === void 0 ? void 0 : _value$exportConfig2.url) || "/oms-ops/excel/exportAsync/".concat(value === null || value === void 0 ? void 0 : (_value$exportConfig3 = value.exportConfig) === null || _value$exportConfig3 === void 0 ? void 0 : _value$exportConfig3.type),
|
|
16697
16894
|
params: value === null || value === void 0 ? void 0 : (_value$exportConfig4 = value.exportConfig) === null || _value$exportConfig4 === void 0 ? void 0 : _value$exportConfig4.params
|
|
@@ -16937,7 +17134,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
16937
17134
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
16938
17135
|
bsTableCode: bsTableCode,
|
|
16939
17136
|
onlyModal: true
|
|
16940
|
-
}), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && (/*#__PURE__*/React__default['default'].createElement(SortableTable$1, {
|
|
17137
|
+
}), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && ( /*#__PURE__*/React__default['default'].createElement(SortableTable$1, {
|
|
16941
17138
|
ref: exportTableRef,
|
|
16942
17139
|
setShowColumns: setShowExportColumns,
|
|
16943
17140
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -17030,11 +17227,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
17030
17227
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
17031
17228
|
var resultList = [];
|
|
17032
17229
|
var newRouter = cloneDeep__default['default'](router);
|
|
17033
|
-
var
|
|
17230
|
+
var deep = function deep(router) {
|
|
17034
17231
|
if (router && Array.isArray(router)) {
|
|
17035
17232
|
router.forEach(function (item) {
|
|
17036
17233
|
if (item.children && Array.isArray(item.children)) {
|
|
17037
|
-
|
|
17234
|
+
deep(item.children);
|
|
17038
17235
|
} else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
|
|
17039
17236
|
return d === item.code;
|
|
17040
17237
|
})) {
|
|
@@ -17048,10 +17245,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
17048
17245
|
resultList.push(_objectSpread2({}, router));
|
|
17049
17246
|
}
|
|
17050
17247
|
};
|
|
17051
|
-
|
|
17248
|
+
deep(newRouter);
|
|
17052
17249
|
callBack([].concat(resultList));
|
|
17053
17250
|
};
|
|
17054
|
-
var
|
|
17251
|
+
var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
17055
17252
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
17056
17253
|
var _loop = function _loop(i) {
|
|
17057
17254
|
if (routesData[i].hideInMenu) {
|
|
@@ -17065,7 +17262,7 @@ var _setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
17065
17262
|
return 0; // continue
|
|
17066
17263
|
}
|
|
17067
17264
|
if (routesData[i].children) {
|
|
17068
|
-
|
|
17265
|
+
setMenuTreeData(routesData[i].children);
|
|
17069
17266
|
}
|
|
17070
17267
|
},
|
|
17071
17268
|
_ret;
|
|
@@ -17086,16 +17283,16 @@ var setLoginOutPath = function setLoginOutPath() {
|
|
|
17086
17283
|
};
|
|
17087
17284
|
var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
|
|
17088
17285
|
var routerMap = {};
|
|
17089
|
-
var
|
|
17286
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
17090
17287
|
data.forEach(function (menuItem) {
|
|
17091
17288
|
if (menuItem.children) {
|
|
17092
|
-
|
|
17289
|
+
flattenMenuData(menuItem.children);
|
|
17093
17290
|
}
|
|
17094
17291
|
// Reduce memory usage
|
|
17095
17292
|
routerMap[menuItem.path] = menuItem;
|
|
17096
17293
|
});
|
|
17097
17294
|
};
|
|
17098
|
-
|
|
17295
|
+
flattenMenuData(menuData);
|
|
17099
17296
|
return routerMap;
|
|
17100
17297
|
};
|
|
17101
17298
|
var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
|
|
@@ -17241,7 +17438,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17241
17438
|
sethomepageData(homepageDataList);
|
|
17242
17439
|
setroutesData(routesDataList);
|
|
17243
17440
|
}, []);
|
|
17244
|
-
var
|
|
17441
|
+
var renderChildItem = function renderChildItem(child) {
|
|
17245
17442
|
if (!child.hideInMenu && child.children) {
|
|
17246
17443
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
17247
17444
|
style: {
|
|
@@ -17251,7 +17448,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17251
17448
|
}, umi.formatMessage({
|
|
17252
17449
|
id: "".concat(child.locale)
|
|
17253
17450
|
})), child.children.map(function (menuItem) {
|
|
17254
|
-
return
|
|
17451
|
+
return renderChildItem(menuItem);
|
|
17255
17452
|
}));
|
|
17256
17453
|
} else if (!child.hideInMenu && child.path) {
|
|
17257
17454
|
return /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
@@ -17286,7 +17483,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17286
17483
|
className: 'drawerWarp'
|
|
17287
17484
|
}, homepageData && homepageData.filter(function (d) {
|
|
17288
17485
|
return !d.hideInMenu;
|
|
17289
|
-
}).length > 0 && (/*#__PURE__*/React__default['default'].createElement(antd.List, {
|
|
17486
|
+
}).length > 0 && ( /*#__PURE__*/React__default['default'].createElement(antd.List, {
|
|
17290
17487
|
className: classNames__default['default']('allFunsList', 'allFunsListWarp'),
|
|
17291
17488
|
dataSource: homepageData,
|
|
17292
17489
|
renderItem: function renderItem(child) {
|
|
@@ -17321,7 +17518,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17321
17518
|
bordered: true,
|
|
17322
17519
|
dataSource: item.children,
|
|
17323
17520
|
renderItem: function renderItem(child) {
|
|
17324
|
-
return
|
|
17521
|
+
return renderChildItem(child);
|
|
17325
17522
|
}
|
|
17326
17523
|
});
|
|
17327
17524
|
})));
|
|
@@ -17381,7 +17578,7 @@ var AllFunc$1 = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
17381
17578
|
src: allfunc
|
|
17382
17579
|
})), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
17383
17580
|
className: 'btnSpan2'
|
|
17384
|
-
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (/*#__PURE__*/React__default['default'].createElement(antd.Drawer, {
|
|
17581
|
+
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && ( /*#__PURE__*/React__default['default'].createElement(antd.Drawer, {
|
|
17385
17582
|
style: {
|
|
17386
17583
|
left: isDrawer ? 140 : 0,
|
|
17387
17584
|
top: 50
|
|
@@ -17427,7 +17624,7 @@ function outLogin(_x) {
|
|
|
17427
17624
|
return _outLogin.apply(this, arguments);
|
|
17428
17625
|
}
|
|
17429
17626
|
function _outLogin() {
|
|
17430
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
17627
|
+
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
17431
17628
|
var res;
|
|
17432
17629
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17433
17630
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -17569,7 +17766,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
17569
17766
|
});
|
|
17570
17767
|
};
|
|
17571
17768
|
var loginOut = /*#__PURE__*/function () {
|
|
17572
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
17769
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
17573
17770
|
var sessionId;
|
|
17574
17771
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17575
17772
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -17673,7 +17870,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
17673
17870
|
marginRight: '0px'
|
|
17674
17871
|
},
|
|
17675
17872
|
src: './xialajiantou-new.svg'
|
|
17676
|
-
}))))), loginModalParams.visible && (/*#__PURE__*/React__default['default'].createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
17873
|
+
}))))), loginModalParams.visible && ( /*#__PURE__*/React__default['default'].createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
17677
17874
|
};
|
|
17678
17875
|
|
|
17679
17876
|
// -- 查询店铺 --
|
|
@@ -17681,7 +17878,7 @@ function getStoreByName(_x) {
|
|
|
17681
17878
|
return _getStoreByName.apply(this, arguments);
|
|
17682
17879
|
}
|
|
17683
17880
|
function _getStoreByName() {
|
|
17684
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
17881
|
+
_getStoreByName = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
17685
17882
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17686
17883
|
while (1) switch (_context.prev = _context.next) {
|
|
17687
17884
|
case 0:
|
|
@@ -17749,7 +17946,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
17749
17946
|
return _fetchUserList.apply(this, arguments);
|
|
17750
17947
|
}
|
|
17751
17948
|
function _fetchUserList() {
|
|
17752
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
17949
|
+
_fetchUserList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
17753
17950
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
17754
17951
|
while (1) switch (_context3.prev = _context3.next) {
|
|
17755
17952
|
case 0:
|
|
@@ -17797,7 +17994,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
17797
17994
|
return debounce__default['default'](loadOptions, debounceTimeout);
|
|
17798
17995
|
}, [debounceTimeout, key]);
|
|
17799
17996
|
var changeInput = /*#__PURE__*/function () {
|
|
17800
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
17997
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
17801
17998
|
var res;
|
|
17802
17999
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17803
18000
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -17819,7 +18016,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
17819
18016
|
};
|
|
17820
18017
|
}();
|
|
17821
18018
|
React$1.useEffect(function () {
|
|
17822
|
-
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
18019
|
+
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
17823
18020
|
var res;
|
|
17824
18021
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
17825
18022
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -17984,7 +18181,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
17984
18181
|
var resultList = [];
|
|
17985
18182
|
var newRouter = _.cloneDeep(router);
|
|
17986
18183
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
17987
|
-
var
|
|
18184
|
+
var deep = function deep(router) {
|
|
17988
18185
|
if (router && Array.isArray(router)) {
|
|
17989
18186
|
router.forEach(function (item) {
|
|
17990
18187
|
if (item.routes && Array.isArray(item.routes)) {
|
|
@@ -17994,7 +18191,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
17994
18191
|
d.nameEdit = true;
|
|
17995
18192
|
}
|
|
17996
18193
|
});
|
|
17997
|
-
|
|
18194
|
+
deep(item.routes);
|
|
17998
18195
|
} else if (!item.hideInMenu && (name ? umi.formatMessage({
|
|
17999
18196
|
id: "menu.".concat(item.name)
|
|
18000
18197
|
}).indexOf(name) !== -1 : true)) {
|
|
@@ -18013,7 +18210,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18013
18210
|
}));
|
|
18014
18211
|
}
|
|
18015
18212
|
};
|
|
18016
|
-
|
|
18213
|
+
deep(newRouter);
|
|
18017
18214
|
setroutesData([].concat(resultList));
|
|
18018
18215
|
};
|
|
18019
18216
|
var renderLineStyl = function renderLineStyl(name) {
|
|
@@ -18095,7 +18292,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18095
18292
|
},
|
|
18096
18293
|
title: item.fullPathName
|
|
18097
18294
|
}, renderLineStyl(item.fullPathName));
|
|
18098
|
-
}))))), showSelectStore && (/*#__PURE__*/React__default['default'].createElement(ChooseStore, {
|
|
18295
|
+
}))))), showSelectStore && ( /*#__PURE__*/React__default['default'].createElement(ChooseStore, {
|
|
18099
18296
|
employeeCode: employeeCode
|
|
18100
18297
|
})), /*#__PURE__*/React__default['default'].createElement(GlobalHeaderRight, null));
|
|
18101
18298
|
};
|
|
@@ -18110,7 +18307,7 @@ var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
18110
18307
|
var TreeNode = antd.Tree.TreeNode;
|
|
18111
18308
|
var Search$2 = antd.Input.Search;
|
|
18112
18309
|
var dataList = [];
|
|
18113
|
-
var
|
|
18310
|
+
var generateList = function generateList(data) {
|
|
18114
18311
|
for (var i = 0; i < data.length; i++) {
|
|
18115
18312
|
var node = data[i];
|
|
18116
18313
|
var path = node.path,
|
|
@@ -18120,11 +18317,11 @@ var _generateList = function generateList(data) {
|
|
|
18120
18317
|
name: name
|
|
18121
18318
|
});
|
|
18122
18319
|
if (node.children) {
|
|
18123
|
-
|
|
18320
|
+
generateList(node.children);
|
|
18124
18321
|
}
|
|
18125
18322
|
}
|
|
18126
18323
|
};
|
|
18127
|
-
var
|
|
18324
|
+
var getParentKey = function getParentKey(path, tree) {
|
|
18128
18325
|
var parentKey;
|
|
18129
18326
|
for (var i = 0; i < tree.length; i++) {
|
|
18130
18327
|
var node = tree[i];
|
|
@@ -18133,8 +18330,8 @@ var _getParentKey = function getParentKey(path, tree) {
|
|
|
18133
18330
|
return item.path === path;
|
|
18134
18331
|
})) {
|
|
18135
18332
|
parentKey = node.path;
|
|
18136
|
-
} else if (
|
|
18137
|
-
parentKey =
|
|
18333
|
+
} else if (getParentKey(path, node.children)) {
|
|
18334
|
+
parentKey = getParentKey(path, node.children);
|
|
18138
18335
|
}
|
|
18139
18336
|
}
|
|
18140
18337
|
}
|
|
@@ -18165,7 +18362,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18165
18362
|
var treeData = _this.state.treeData;
|
|
18166
18363
|
var expandedKeys = dataList.map(function (item) {
|
|
18167
18364
|
if (item.name.indexOf(value) > -1) {
|
|
18168
|
-
return
|
|
18365
|
+
return getParentKey(item.path, treeData);
|
|
18169
18366
|
}
|
|
18170
18367
|
return null;
|
|
18171
18368
|
}).filter(function (item, i, self) {
|
|
@@ -18179,22 +18376,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18179
18376
|
};
|
|
18180
18377
|
_this.getPathList = function (originData) {
|
|
18181
18378
|
var pathList = [];
|
|
18182
|
-
var
|
|
18379
|
+
var getList = function getList(data) {
|
|
18183
18380
|
if (Array.isArray(data)) {
|
|
18184
18381
|
data.forEach(function (item) {
|
|
18185
18382
|
pathList.push(item.path);
|
|
18186
18383
|
if (item.children) {
|
|
18187
|
-
|
|
18384
|
+
getList(item.children);
|
|
18188
18385
|
}
|
|
18189
18386
|
});
|
|
18190
18387
|
} else {
|
|
18191
18388
|
pathList.push(data.path);
|
|
18192
18389
|
if (data.children) {
|
|
18193
|
-
|
|
18390
|
+
getList(data.children);
|
|
18194
18391
|
}
|
|
18195
18392
|
}
|
|
18196
18393
|
};
|
|
18197
|
-
|
|
18394
|
+
getList(originData);
|
|
18198
18395
|
return pathList;
|
|
18199
18396
|
};
|
|
18200
18397
|
_this.handleAdd2Menu = function (path) {
|
|
@@ -18203,18 +18400,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18203
18400
|
customerMenuData = _this$props.customerMenuData,
|
|
18204
18401
|
setCustomerMenuData = _this$props.setCustomerMenuData;
|
|
18205
18402
|
var filterItem;
|
|
18206
|
-
var
|
|
18403
|
+
var filterMenuItem = function filterMenuItem(menuData) {
|
|
18207
18404
|
menuData.forEach(function (item) {
|
|
18208
18405
|
if (item.path === path) {
|
|
18209
18406
|
filterItem = _objectSpread2({}, item);
|
|
18210
18407
|
return;
|
|
18211
18408
|
}
|
|
18212
18409
|
if (item.children) {
|
|
18213
|
-
|
|
18410
|
+
filterMenuItem(item.children);
|
|
18214
18411
|
}
|
|
18215
18412
|
});
|
|
18216
18413
|
};
|
|
18217
|
-
|
|
18414
|
+
filterMenuItem(treeData);
|
|
18218
18415
|
var addPathList = _this.getPathList(filterItem);
|
|
18219
18416
|
var oldPathList = _this.getPathList(customerMenuData);
|
|
18220
18417
|
var isRepet = false;
|
|
@@ -18244,8 +18441,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18244
18441
|
return item.path === '/';
|
|
18245
18442
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
18246
18443
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
18247
|
-
|
|
18248
|
-
|
|
18444
|
+
setMenuTreeData(routesData);
|
|
18445
|
+
generateList(routesData);
|
|
18249
18446
|
this.setState({
|
|
18250
18447
|
treeData: routesData
|
|
18251
18448
|
});
|
|
@@ -18259,16 +18456,16 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18259
18456
|
expandedKeys = _this$state.expandedKeys,
|
|
18260
18457
|
autoExpandParent = _this$state.autoExpandParent,
|
|
18261
18458
|
treeData = _this$state.treeData;
|
|
18262
|
-
var
|
|
18459
|
+
var loop = function loop(data) {
|
|
18263
18460
|
return data.map(function (item) {
|
|
18264
18461
|
var index = item.name.indexOf(searchValue);
|
|
18265
18462
|
var beforeStr = item.name.substr(0, index);
|
|
18266
18463
|
var afterStr = item.name.substr(index + searchValue.length);
|
|
18267
|
-
var name = index > -1 ? (/*#__PURE__*/React__default['default'].createElement("span", null, beforeStr, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
18464
|
+
var name = index > -1 ? ( /*#__PURE__*/React__default['default'].createElement("span", null, beforeStr, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
18268
18465
|
style: {
|
|
18269
18466
|
color: '#f50'
|
|
18270
18467
|
}
|
|
18271
|
-
}, searchValue), afterStr)) : (/*#__PURE__*/React__default['default'].createElement("span", null, item.name));
|
|
18468
|
+
}, searchValue), afterStr)) : ( /*#__PURE__*/React__default['default'].createElement("span", null, item.name));
|
|
18272
18469
|
if (item.children && item.children.length) {
|
|
18273
18470
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode, {
|
|
18274
18471
|
path: item.path,
|
|
@@ -18290,7 +18487,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18290
18487
|
width: 18,
|
|
18291
18488
|
src: arrowRight
|
|
18292
18489
|
}))))
|
|
18293
|
-
},
|
|
18490
|
+
}, loop(item.children));
|
|
18294
18491
|
}
|
|
18295
18492
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode, {
|
|
18296
18493
|
path: item.path,
|
|
@@ -18340,7 +18537,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18340
18537
|
onExpand: this.onExpand,
|
|
18341
18538
|
expandedKeys: expandedKeys,
|
|
18342
18539
|
autoExpandParent: autoExpandParent
|
|
18343
|
-
},
|
|
18540
|
+
}, loop(treeData))));
|
|
18344
18541
|
}
|
|
18345
18542
|
}]);
|
|
18346
18543
|
}(React__default['default'].Component);
|
|
@@ -18373,24 +18570,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18373
18570
|
var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
|
|
18374
18571
|
var dragObj;
|
|
18375
18572
|
var finalDropItem;
|
|
18376
|
-
var
|
|
18573
|
+
var loop = function loop(data, path, callback) {
|
|
18377
18574
|
for (var i = 0; i < data.length; i++) {
|
|
18378
18575
|
if (data[i].path === path) {
|
|
18379
18576
|
return callback(data[i], i, data);
|
|
18380
18577
|
}
|
|
18381
18578
|
if (data[i].children) {
|
|
18382
|
-
|
|
18579
|
+
loop(data[i].children, path, callback);
|
|
18383
18580
|
}
|
|
18384
18581
|
}
|
|
18385
18582
|
};
|
|
18386
18583
|
var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
|
|
18387
|
-
|
|
18584
|
+
loop(data, dragKey, function (item, index, arr) {
|
|
18388
18585
|
arr.splice(index, 1);
|
|
18389
18586
|
dragObj = item;
|
|
18390
18587
|
});
|
|
18391
18588
|
if (!info.dropToGap) {
|
|
18392
18589
|
// Drop on the content
|
|
18393
|
-
|
|
18590
|
+
loop(data, dropKey, function (item) {
|
|
18394
18591
|
item.children = item.children || [];
|
|
18395
18592
|
item.children.unshift(dragObj);
|
|
18396
18593
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -18401,7 +18598,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18401
18598
|
// Is expanded
|
|
18402
18599
|
dropPosition === 1 // On the bottom gap
|
|
18403
18600
|
) {
|
|
18404
|
-
|
|
18601
|
+
loop(data, dropKey, function (item) {
|
|
18405
18602
|
item.children = item.children || [];
|
|
18406
18603
|
item.children.unshift(dragObj);
|
|
18407
18604
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -18409,7 +18606,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18409
18606
|
} else {
|
|
18410
18607
|
var ar;
|
|
18411
18608
|
var i;
|
|
18412
|
-
|
|
18609
|
+
loop(data, dropKey, function (item, index, arr) {
|
|
18413
18610
|
ar = arr;
|
|
18414
18611
|
i = index;
|
|
18415
18612
|
});
|
|
@@ -18448,17 +18645,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18448
18645
|
title: '编辑名称',
|
|
18449
18646
|
callBack: function callBack(newName) {
|
|
18450
18647
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
18451
|
-
var
|
|
18648
|
+
var editTreeDataName = function editTreeDataName(oldTreeData) {
|
|
18452
18649
|
oldTreeData.forEach(function (treeItem) {
|
|
18453
18650
|
if (treeItem.path === item.path) {
|
|
18454
18651
|
treeItem.name = newName;
|
|
18455
18652
|
}
|
|
18456
18653
|
if (treeItem.children) {
|
|
18457
|
-
|
|
18654
|
+
editTreeDataName(treeItem.children);
|
|
18458
18655
|
}
|
|
18459
18656
|
});
|
|
18460
18657
|
};
|
|
18461
|
-
|
|
18658
|
+
editTreeDataName(oldTreeData);
|
|
18462
18659
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
18463
18660
|
_this.setState({
|
|
18464
18661
|
modalInfo: {
|
|
@@ -18503,7 +18700,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18503
18700
|
title: '新增子目录',
|
|
18504
18701
|
callBack: function callBack(newName) {
|
|
18505
18702
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
18506
|
-
var
|
|
18703
|
+
var addChildFolder = function addChildFolder(oldTreeData) {
|
|
18507
18704
|
oldTreeData.forEach(function (treeItem) {
|
|
18508
18705
|
if (treeItem.path === item.path) {
|
|
18509
18706
|
treeItem.children ? treeItem.children.push({
|
|
@@ -18515,11 +18712,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18515
18712
|
}];
|
|
18516
18713
|
}
|
|
18517
18714
|
if (treeItem.children) {
|
|
18518
|
-
|
|
18715
|
+
addChildFolder(treeItem.children);
|
|
18519
18716
|
}
|
|
18520
18717
|
});
|
|
18521
18718
|
};
|
|
18522
|
-
|
|
18719
|
+
addChildFolder(oldTreeData);
|
|
18523
18720
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
18524
18721
|
_this.setState({
|
|
18525
18722
|
modalInfo: {
|
|
@@ -18578,7 +18775,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18578
18775
|
var _this$state = this.state,
|
|
18579
18776
|
modalInfo = _this$state.modalInfo,
|
|
18580
18777
|
checkedKeys = _this$state.checkedKeys;
|
|
18581
|
-
var
|
|
18778
|
+
var loop = function loop(data) {
|
|
18582
18779
|
return data.map(function (item) {
|
|
18583
18780
|
if (item.children && item.children.length) {
|
|
18584
18781
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode$1, {
|
|
@@ -18595,7 +18792,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18595
18792
|
e.stopPropagation();
|
|
18596
18793
|
}
|
|
18597
18794
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(icons.EllipsisOutlined, null))))))
|
|
18598
|
-
},
|
|
18795
|
+
}, loop(item.children));
|
|
18599
18796
|
}
|
|
18600
18797
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode$1, {
|
|
18601
18798
|
path: item.path,
|
|
@@ -18674,7 +18871,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18674
18871
|
children: 'children'
|
|
18675
18872
|
},
|
|
18676
18873
|
onDrop: this.onDrop
|
|
18677
|
-
},
|
|
18874
|
+
}, loop(this.props.customerMenuData))), /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
18678
18875
|
width: 600,
|
|
18679
18876
|
bodyStyle: {
|
|
18680
18877
|
paddingTop: '32px',
|
|
@@ -18787,7 +18984,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
18787
18984
|
pathname: item.path
|
|
18788
18985
|
});
|
|
18789
18986
|
};
|
|
18790
|
-
var
|
|
18987
|
+
var getMenuDom = function getMenuDom(menuData) {
|
|
18791
18988
|
return menuData.map(function (item) {
|
|
18792
18989
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
18793
18990
|
style: {
|
|
@@ -18802,7 +18999,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
18802
18999
|
fontWeight: item.children || !item.component ? 'bolder' : '400',
|
|
18803
19000
|
paddingLeft: '4px'
|
|
18804
19001
|
}
|
|
18805
|
-
}, item.name), !!item.children && !!item.children.length &&
|
|
19002
|
+
}, item.name), !!item.children && !!item.children.length && getMenuDom(item.children));
|
|
18806
19003
|
});
|
|
18807
19004
|
};
|
|
18808
19005
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -18828,7 +19025,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
18828
19025
|
style: {
|
|
18829
19026
|
paddingLeft: '5px'
|
|
18830
19027
|
}
|
|
18831
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React__default['default'].createElement(antd.Drawer, {
|
|
19028
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && ( /*#__PURE__*/React__default['default'].createElement(antd.Drawer, {
|
|
18832
19029
|
style: {
|
|
18833
19030
|
left: isDrawer ? 140 : 0
|
|
18834
19031
|
},
|
|
@@ -18849,7 +19046,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
18849
19046
|
visible: isDrawer
|
|
18850
19047
|
}, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("p", {
|
|
18851
19048
|
className: 'menu_title_line'
|
|
18852
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"),
|
|
19049
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"), getMenuDom(menuData)))), /*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2({
|
|
18853
19050
|
title: /*#__PURE__*/React__default['default'].createElement("span", {
|
|
18854
19051
|
style: {
|
|
18855
19052
|
fontWeight: '600',
|
|
@@ -18923,7 +19120,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
18923
19120
|
return item.path === '/';
|
|
18924
19121
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
18925
19122
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
18926
|
-
|
|
19123
|
+
setMenuTreeData(routesData);
|
|
18927
19124
|
routesData.forEach(function (item) {
|
|
18928
19125
|
if (item.children) {
|
|
18929
19126
|
routesDataList.push(item);
|
|
@@ -18953,7 +19150,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
18953
19150
|
setHeight(clientHeight - 190);
|
|
18954
19151
|
setDrawHeight(clientHeight - 70);
|
|
18955
19152
|
};
|
|
18956
|
-
var
|
|
19153
|
+
var renderChildItem = function renderChildItem(child) {
|
|
18957
19154
|
if (!child.hideInMenu && child.children) {
|
|
18958
19155
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
18959
19156
|
style: {
|
|
@@ -18963,7 +19160,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
18963
19160
|
}, umi.formatMessage({
|
|
18964
19161
|
id: "".concat(child.locale)
|
|
18965
19162
|
})), child.children.map(function (menuItem) {
|
|
18966
|
-
return
|
|
19163
|
+
return renderChildItem(menuItem);
|
|
18967
19164
|
}));
|
|
18968
19165
|
} else if (!child.hideInMenu && child.path) {
|
|
18969
19166
|
return /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
@@ -19105,7 +19302,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19105
19302
|
onMenuClick(e, item);
|
|
19106
19303
|
}
|
|
19107
19304
|
}, item.name);
|
|
19108
|
-
}))), !!SearhData.length ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
19305
|
+
}))), !!SearhData.length ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
19109
19306
|
className: 'search_menu_content'
|
|
19110
19307
|
}, SearhData.map(function (item) {
|
|
19111
19308
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -19114,7 +19311,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19114
19311
|
},
|
|
19115
19312
|
key: item.path
|
|
19116
19313
|
}, item.name);
|
|
19117
|
-
}))) : (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
19314
|
+
}))) : ( /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
19118
19315
|
style: {
|
|
19119
19316
|
height: "".concat(rightMenuHeight, "px"),
|
|
19120
19317
|
overflowY: 'scroll',
|
|
@@ -19126,7 +19323,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19126
19323
|
className: 'drawerWarp_right'
|
|
19127
19324
|
}, homepageData && homepageData.filter(function (d) {
|
|
19128
19325
|
return !d.hideInMenu;
|
|
19129
|
-
}).length > 0 && (/*#__PURE__*/React__default['default'].createElement(antd.List, {
|
|
19326
|
+
}).length > 0 && ( /*#__PURE__*/React__default['default'].createElement(antd.List, {
|
|
19130
19327
|
className: classNames__default['default']('allFunsList', 'allFunsListWarp'),
|
|
19131
19328
|
dataSource: homepageData,
|
|
19132
19329
|
renderItem: function renderItem(child) {
|
|
@@ -19167,7 +19364,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19167
19364
|
bordered: true,
|
|
19168
19365
|
dataSource: item.children,
|
|
19169
19366
|
renderItem: function renderItem(child) {
|
|
19170
|
-
return
|
|
19367
|
+
return renderChildItem(child);
|
|
19171
19368
|
}
|
|
19172
19369
|
});
|
|
19173
19370
|
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -19325,10 +19522,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
19325
19522
|
var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
|
|
19326
19523
|
var menuKeys = [];
|
|
19327
19524
|
var docsId = [];
|
|
19328
|
-
var
|
|
19525
|
+
var getLimitedMenuKeys = function getLimitedMenuKeys(data) {
|
|
19329
19526
|
data.forEach(function (item) {
|
|
19330
19527
|
if (item.children && item.children.length > 0) {
|
|
19331
|
-
|
|
19528
|
+
getLimitedMenuKeys(item.children);
|
|
19332
19529
|
} else {
|
|
19333
19530
|
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
19334
19531
|
menuKeys.push(originPath);
|
|
@@ -19339,7 +19536,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
19339
19536
|
});
|
|
19340
19537
|
};
|
|
19341
19538
|
try {
|
|
19342
|
-
|
|
19539
|
+
getLimitedMenuKeys(limitedMenuData);
|
|
19343
19540
|
} catch (e) {}
|
|
19344
19541
|
return {
|
|
19345
19542
|
menuKeys: menuKeys,
|
|
@@ -19573,10 +19770,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
19573
19770
|
return (node.path || '').includes('all-general-documents');
|
|
19574
19771
|
};
|
|
19575
19772
|
// 递归获取树列表
|
|
19576
|
-
var
|
|
19773
|
+
var getTreeList = function getTreeList(data) {
|
|
19577
19774
|
data.forEach(function (node) {
|
|
19578
19775
|
if (node.routes && node.routes.length > 0) {
|
|
19579
|
-
|
|
19776
|
+
getTreeList(node.routes);
|
|
19580
19777
|
return;
|
|
19581
19778
|
}
|
|
19582
19779
|
// todo:暂时处理非wujie环境不做404管控
|
|
@@ -19607,7 +19804,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
19607
19804
|
}
|
|
19608
19805
|
});
|
|
19609
19806
|
};
|
|
19610
|
-
|
|
19807
|
+
getTreeList(treeData);
|
|
19611
19808
|
return treeList;
|
|
19612
19809
|
};
|
|
19613
19810
|
_this.getDictionarySource = function (dicCode) {
|
|
@@ -20123,10 +20320,22 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20123
20320
|
query: route.query,
|
|
20124
20321
|
match: match,
|
|
20125
20322
|
key: currentKey,
|
|
20323
|
+
state: route.state,
|
|
20126
20324
|
tab: _this2.getPageTitle(route.pathname) + ''
|
|
20127
20325
|
})]);
|
|
20128
20326
|
newListenRouterKey = [].concat(_toConsumableArray(listenRouterKey), [currentKey]);
|
|
20129
20327
|
}
|
|
20328
|
+
} else {
|
|
20329
|
+
// 更新已存储路由的query和state
|
|
20330
|
+
newListenRouterState = newListenRouterState.map(function (item) {
|
|
20331
|
+
if (item.key === currentKey) {
|
|
20332
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
20333
|
+
query: route.query,
|
|
20334
|
+
state: route.state
|
|
20335
|
+
});
|
|
20336
|
+
}
|
|
20337
|
+
return item;
|
|
20338
|
+
});
|
|
20130
20339
|
}
|
|
20131
20340
|
// -------------------处理页签关闭----------------------------
|
|
20132
20341
|
lastTwoRouterArray.push(route.pathname);
|
|
@@ -20224,7 +20433,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20224
20433
|
updateState = _ref8.updateState;
|
|
20225
20434
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
20226
20435
|
className: "tab_title_content"
|
|
20227
|
-
}, item.tab, item.key !== '/' && (/*#__PURE__*/React__default['default'].createElement(ItemMenu, {
|
|
20436
|
+
}, item.tab, item.key !== '/' && ( /*#__PURE__*/React__default['default'].createElement(ItemMenu, {
|
|
20228
20437
|
info: item,
|
|
20229
20438
|
operateFun: _this3.operateFun,
|
|
20230
20439
|
listenRouterState: listenRouterState
|
|
@@ -20360,7 +20569,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20360
20569
|
};
|
|
20361
20570
|
}
|
|
20362
20571
|
var OperationsSlot = {
|
|
20363
|
-
left: (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
20572
|
+
left: ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
20364
20573
|
className: 'tab_left_operate'
|
|
20365
20574
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
20366
20575
|
onClick: function onClick() {
|
|
@@ -20376,7 +20585,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20376
20585
|
_this3.setTabNavTransLate(-100);
|
|
20377
20586
|
}
|
|
20378
20587
|
}, /*#__PURE__*/React__default['default'].createElement(icons.DoubleLeftOutlined, null)))),
|
|
20379
|
-
right: (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
20588
|
+
right: ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
20380
20589
|
style: {
|
|
20381
20590
|
opacity: this.state.isSlider ? 1 : 0.5
|
|
20382
20591
|
},
|
|
@@ -20474,7 +20683,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20474
20683
|
onMouseLeave: function onMouseLeave() {
|
|
20475
20684
|
_this3.setShowMenu(false);
|
|
20476
20685
|
}
|
|
20477
|
-
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (/*#__PURE__*/React__default['default'].createElement(icons.CaretLeftOutlined, {
|
|
20686
|
+
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && ( /*#__PURE__*/React__default['default'].createElement(icons.CaretLeftOutlined, {
|
|
20478
20687
|
style: {
|
|
20479
20688
|
position: 'absolute',
|
|
20480
20689
|
top: '14px',
|
|
@@ -20493,7 +20702,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20493
20702
|
postMenuData: function postMenuData(menus) {
|
|
20494
20703
|
return _toConsumableArray(filterByMenuDate(menus || [], _this3.state.keyWord));
|
|
20495
20704
|
},
|
|
20496
|
-
links: [!this.state.collapse ? (/*#__PURE__*/React__default['default'].createElement(AllFunc$1, {
|
|
20705
|
+
links: [!this.state.collapse ? ( /*#__PURE__*/React__default['default'].createElement(AllFunc$1, {
|
|
20497
20706
|
ref: this.allFunc,
|
|
20498
20707
|
itemPath: itemPath,
|
|
20499
20708
|
handleClose: this.handleClose,
|
|
@@ -20511,7 +20720,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20511
20720
|
},
|
|
20512
20721
|
menu: {
|
|
20513
20722
|
request: function () {
|
|
20514
|
-
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
20723
|
+
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
20515
20724
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
20516
20725
|
while (1) switch (_context.prev = _context.next) {
|
|
20517
20726
|
case 0:
|
|
@@ -20579,7 +20788,8 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20579
20788
|
getDictionarySource: _this3.getDictionarySource,
|
|
20580
20789
|
getDictionaryTextByValue: _this3.getDictionaryTextByValue,
|
|
20581
20790
|
timeFormat: _this3.timeFormat,
|
|
20582
|
-
transparentProps: transparentProps
|
|
20791
|
+
transparentProps: transparentProps,
|
|
20792
|
+
activeKey: activeKey
|
|
20583
20793
|
}));
|
|
20584
20794
|
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
20585
20795
|
className: "globalTabsOper",
|
|
@@ -20630,6 +20840,9 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
20630
20840
|
// 适配wujie环境主应用下渲染打印编辑器
|
|
20631
20841
|
return true;
|
|
20632
20842
|
}
|
|
20843
|
+
if (nextProps.activeKey === nextProps.item.key && JSON.stringify(nextProps.item) !== JSON.stringify(this.props.item)) {
|
|
20844
|
+
return true;
|
|
20845
|
+
}
|
|
20633
20846
|
return false;
|
|
20634
20847
|
}
|
|
20635
20848
|
}, {
|
|
@@ -20642,7 +20855,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
20642
20855
|
getDictionaryTextByValue = _this$props4.getDictionaryTextByValue,
|
|
20643
20856
|
timeFormat = _this$props4.timeFormat,
|
|
20644
20857
|
transparentProps = _this$props4.transparentProps;
|
|
20645
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, item.isNotFound ? (/*#__PURE__*/React__default['default'].createElement(NoFoundPage, null)) : /*#__PURE__*/React__default['default'].createElement(item.content, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
20858
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, item.isNotFound ? ( /*#__PURE__*/React__default['default'].createElement(NoFoundPage, null)) : /*#__PURE__*/React__default['default'].createElement(item.content, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
20646
20859
|
getDictionarySource: getDictionarySource,
|
|
20647
20860
|
getDictionaryTextByValue: getDictionaryTextByValue,
|
|
20648
20861
|
timeFormat: timeFormat
|
|
@@ -20666,12 +20879,12 @@ var index$5 = (function (props) {
|
|
|
20666
20879
|
});
|
|
20667
20880
|
|
|
20668
20881
|
// @ts-nocheck
|
|
20669
|
-
var
|
|
20882
|
+
var getAllColumns = function getAllColumns(columns) {
|
|
20670
20883
|
var result = [];
|
|
20671
20884
|
columns.forEach(function (column) {
|
|
20672
20885
|
if (column.children) {
|
|
20673
20886
|
result.push(column);
|
|
20674
|
-
result.push.apply(result,
|
|
20887
|
+
result.push.apply(result, getAllColumns(column.children));
|
|
20675
20888
|
} else {
|
|
20676
20889
|
result.push(column);
|
|
20677
20890
|
}
|
|
@@ -20680,7 +20893,7 @@ var _getAllColumns = function getAllColumns(columns) {
|
|
|
20680
20893
|
};
|
|
20681
20894
|
var convertToRows = function convertToRows(originColumns) {
|
|
20682
20895
|
var maxLevel = 1;
|
|
20683
|
-
var
|
|
20896
|
+
var traverse = function traverse(column, parent) {
|
|
20684
20897
|
if (parent) {
|
|
20685
20898
|
column.level = parent.level + 1;
|
|
20686
20899
|
if (maxLevel < column.level) {
|
|
@@ -20690,7 +20903,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
20690
20903
|
if (column.children) {
|
|
20691
20904
|
var colSpan = 0;
|
|
20692
20905
|
column.children.forEach(function (subColumn) {
|
|
20693
|
-
|
|
20906
|
+
traverse(subColumn, column);
|
|
20694
20907
|
colSpan += subColumn.colSpan;
|
|
20695
20908
|
});
|
|
20696
20909
|
column.colSpan = colSpan;
|
|
@@ -20700,13 +20913,13 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
20700
20913
|
};
|
|
20701
20914
|
originColumns.forEach(function (column) {
|
|
20702
20915
|
column.level = 1;
|
|
20703
|
-
|
|
20916
|
+
traverse(column);
|
|
20704
20917
|
});
|
|
20705
20918
|
var rows = [];
|
|
20706
20919
|
for (var i = 0; i < maxLevel; i++) {
|
|
20707
20920
|
rows.push([]);
|
|
20708
20921
|
}
|
|
20709
|
-
var allColumns =
|
|
20922
|
+
var allColumns = getAllColumns(originColumns);
|
|
20710
20923
|
allColumns.forEach(function (column) {
|
|
20711
20924
|
if (!column.children) {
|
|
20712
20925
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -20746,7 +20959,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
20746
20959
|
};
|
|
20747
20960
|
var headersToRows = function headersToRows(originColumns) {
|
|
20748
20961
|
var maxLevel = 1;
|
|
20749
|
-
var
|
|
20962
|
+
var traverse = function traverse(column, parent) {
|
|
20750
20963
|
if (parent) {
|
|
20751
20964
|
//计算当前元素属于第几个层级
|
|
20752
20965
|
column.level = parent.level + 1;
|
|
@@ -20759,7 +20972,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
20759
20972
|
var colSpan = 0;
|
|
20760
20973
|
column.children.forEach(function (subColumn) {
|
|
20761
20974
|
//进行递归
|
|
20762
|
-
|
|
20975
|
+
traverse(subColumn, column);
|
|
20763
20976
|
colSpan += subColumn.colSpan;
|
|
20764
20977
|
});
|
|
20765
20978
|
column.colSpan = colSpan;
|
|
@@ -20769,14 +20982,14 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
20769
20982
|
};
|
|
20770
20983
|
originColumns.forEach(function (column) {
|
|
20771
20984
|
column.level = 1;
|
|
20772
|
-
|
|
20985
|
+
traverse(column);
|
|
20773
20986
|
});
|
|
20774
20987
|
var rows = [];
|
|
20775
20988
|
var lastData = [];
|
|
20776
20989
|
for (var i = 0; i < maxLevel; i++) {
|
|
20777
20990
|
rows.push([]);
|
|
20778
20991
|
}
|
|
20779
|
-
var allColumns =
|
|
20992
|
+
var allColumns = getAllColumns(originColumns);
|
|
20780
20993
|
allColumns.forEach(function (column) {
|
|
20781
20994
|
if (!column.children) {
|
|
20782
20995
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -26793,7 +27006,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
|
|
|
26793
27006
|
}
|
|
26794
27007
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
26795
27008
|
};
|
|
26796
|
-
var
|
|
27009
|
+
var hasHighLightChildren = function hasHighLightChildren() {
|
|
26797
27010
|
var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
26798
27011
|
var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
|
|
26799
27012
|
var children = hightLightData.children,
|
|
@@ -26804,7 +27017,7 @@ var _hasHighLightChildren = function hasHighLightChildren() {
|
|
|
26804
27017
|
lineEnd = _loc2[2];
|
|
26805
27018
|
if (children) {
|
|
26806
27019
|
return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
|
|
26807
|
-
return
|
|
27020
|
+
return hasHighLightChildren(v, highLightLine);
|
|
26808
27021
|
});
|
|
26809
27022
|
}
|
|
26810
27023
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
@@ -26816,7 +27029,7 @@ function createHighLightTreeData(treeData, highLightLine) {
|
|
|
26816
27029
|
var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
|
|
26817
27030
|
data.forEach(function (node) {
|
|
26818
27031
|
if (!node) return;
|
|
26819
|
-
node.toggled =
|
|
27032
|
+
node.toggled = hasHighLightChildren(node, highLightLine);
|
|
26820
27033
|
node.active = isHightLight(node, highLightLine);
|
|
26821
27034
|
if (node.children) {
|
|
26822
27035
|
if (node.active) {
|
|
@@ -28247,7 +28460,7 @@ var valueType = {
|
|
|
28247
28460
|
};
|
|
28248
28461
|
|
|
28249
28462
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
28250
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
28463
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
28251
28464
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
28252
28465
|
while (1) switch (_context.prev = _context.next) {
|
|
28253
28466
|
case 0:
|
|
@@ -28315,7 +28528,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
28315
28528
|
value: false
|
|
28316
28529
|
}];
|
|
28317
28530
|
var ref = React$1.useRef();
|
|
28318
|
-
ahooks.useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
28531
|
+
ahooks.useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
28319
28532
|
var _ref$current, source;
|
|
28320
28533
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
28321
28534
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -28429,7 +28642,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
28429
28642
|
source: {
|
|
28430
28643
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
28431
28644
|
type: function () {
|
|
28432
|
-
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
28645
|
+
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
28433
28646
|
var form, values, name, relates, source;
|
|
28434
28647
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
28435
28648
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -28909,7 +29122,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
28909
29122
|
source: {
|
|
28910
29123
|
relates: ['choiceType', 'inputType'],
|
|
28911
29124
|
type: function () {
|
|
28912
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
29125
|
+
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
28913
29126
|
var values, name, form, source;
|
|
28914
29127
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
28915
29128
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -29131,7 +29344,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29131
29344
|
width: 900,
|
|
29132
29345
|
maskClosable: false,
|
|
29133
29346
|
onOk: function () {
|
|
29134
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
29347
|
+
var _onOk = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
29135
29348
|
var _ref$current4, _res$editableStatus;
|
|
29136
29349
|
var res, _res$defaultValue;
|
|
29137
29350
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -29203,7 +29416,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29203
29416
|
}()
|
|
29204
29417
|
}), /*#__PURE__*/React__default['default'].createElement(bssula.Form, _objectSpread2(_objectSpread2({}, formConfig), {}, {
|
|
29205
29418
|
ref: ref
|
|
29206
|
-
})), maintainOptionsModal.visible && (/*#__PURE__*/React__default['default'].createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
29419
|
+
})), maintainOptionsModal.visible && ( /*#__PURE__*/React__default['default'].createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
29207
29420
|
};
|
|
29208
29421
|
|
|
29209
29422
|
// @ts-nocheck
|
|
@@ -29817,7 +30030,7 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
29817
30030
|
return setVisible(false);
|
|
29818
30031
|
},
|
|
29819
30032
|
className: 'customFieldsDrawer'
|
|
29820
|
-
}, detailTablesSetting.length == 0 && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
30033
|
+
}, detailTablesSetting.length == 0 && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
29821
30034
|
style: {
|
|
29822
30035
|
display: 'flex'
|
|
29823
30036
|
}
|
|
@@ -29826,13 +30039,13 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
29826
30039
|
flex: 1,
|
|
29827
30040
|
width: 500
|
|
29828
30041
|
}
|
|
29829
|
-
}, _.isEmpty(moduleParams) ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
30042
|
+
}, _.isEmpty(moduleParams) ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
29830
30043
|
style: {
|
|
29831
30044
|
padding: "10px 0",
|
|
29832
30045
|
fontSize: "16px",
|
|
29833
30046
|
fontWeight: "bolder"
|
|
29834
30047
|
}
|
|
29835
|
-
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (/*#__PURE__*/React__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
30048
|
+
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : ( /*#__PURE__*/React__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
29836
30049
|
style: {
|
|
29837
30050
|
flex: 1
|
|
29838
30051
|
}
|
|
@@ -29841,7 +30054,7 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
29841
30054
|
onRun: onClickRun,
|
|
29842
30055
|
value: jsonEditorVal,
|
|
29843
30056
|
shallowHeight: height
|
|
29844
|
-
})))), detailTablesSetting.length > 0 && (/*#__PURE__*/React__default['default'].createElement(antd.Tabs, {
|
|
30057
|
+
})))), detailTablesSetting.length > 0 && ( /*#__PURE__*/React__default['default'].createElement(antd.Tabs, {
|
|
29845
30058
|
defaultActiveKey: activeKey,
|
|
29846
30059
|
onChange: function onChange(v) {
|
|
29847
30060
|
return setActiveKey(v);
|
|
@@ -29858,13 +30071,13 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
29858
30071
|
flex: 1,
|
|
29859
30072
|
width: 500
|
|
29860
30073
|
}
|
|
29861
|
-
}, _.isEmpty(moduleParams) ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
30074
|
+
}, _.isEmpty(moduleParams) ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
29862
30075
|
style: {
|
|
29863
30076
|
padding: "10px 0",
|
|
29864
30077
|
fontSize: "16px",
|
|
29865
30078
|
fontWeight: "bolder"
|
|
29866
30079
|
}
|
|
29867
|
-
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (/*#__PURE__*/React__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
30080
|
+
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : ( /*#__PURE__*/React__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
29868
30081
|
style: {
|
|
29869
30082
|
flex: 1
|
|
29870
30083
|
}
|
|
@@ -29886,13 +30099,13 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
29886
30099
|
flex: 1,
|
|
29887
30100
|
width: 500
|
|
29888
30101
|
}
|
|
29889
|
-
}, !tablesConfigParams[k.tableCode] ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
30102
|
+
}, !tablesConfigParams[k.tableCode] ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
29890
30103
|
style: {
|
|
29891
30104
|
padding: "10px 0",
|
|
29892
30105
|
fontSize: "16px",
|
|
29893
30106
|
fontWeight: "bolder"
|
|
29894
30107
|
}
|
|
29895
|
-
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (/*#__PURE__*/React__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tablesConfigParams[k.tableCode])))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
30108
|
+
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : ( /*#__PURE__*/React__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tablesConfigParams[k.tableCode])))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
29896
30109
|
style: {
|
|
29897
30110
|
flex: 1
|
|
29898
30111
|
}
|
|
@@ -30038,7 +30251,7 @@ function getMetaData(_x) {
|
|
|
30038
30251
|
|
|
30039
30252
|
// 获取数据
|
|
30040
30253
|
function _getMetaData() {
|
|
30041
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
30254
|
+
_getMetaData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
30042
30255
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30043
30256
|
while (1) switch (_context.prev = _context.next) {
|
|
30044
30257
|
case 0:
|
|
@@ -30260,7 +30473,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
30260
30473
|
tableState = _useState4[0],
|
|
30261
30474
|
setTableState = _useState4[1];
|
|
30262
30475
|
var handleOpen = /*#__PURE__*/function () {
|
|
30263
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30476
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30264
30477
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
30265
30478
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
30266
30479
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -30579,7 +30792,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
30579
30792
|
destroyOnClose: true
|
|
30580
30793
|
}, config && /*#__PURE__*/React__default['default'].createElement(bssula.QueryTable, _objectSpread2({
|
|
30581
30794
|
ref: queryTableRef
|
|
30582
|
-
}, config)), (props === null || props === void 0 ? void 0 : (_props$selectProps4 = props.selectProps) === null || _props$selectProps4 === void 0 ? void 0 : _props$selectProps4.multipleForQuery) && !isView && (/*#__PURE__*/React__default['default'].createElement(antd.Row, {
|
|
30795
|
+
}, config)), (props === null || props === void 0 ? void 0 : (_props$selectProps4 = props.selectProps) === null || _props$selectProps4 === void 0 ? void 0 : _props$selectProps4.multipleForQuery) && !isView && ( /*#__PURE__*/React__default['default'].createElement(antd.Row, {
|
|
30583
30796
|
justify: "center",
|
|
30584
30797
|
style: {
|
|
30585
30798
|
marginBottom: 30,
|
|
@@ -30695,7 +30908,7 @@ var CustomSelector = (function (props) {
|
|
|
30695
30908
|
var _props$ctx7;
|
|
30696
30909
|
return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
|
|
30697
30910
|
}
|
|
30698
|
-
})), showType === 'modalTable' && (/*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
30911
|
+
})), showType === 'modalTable' && ( /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
30699
30912
|
type: "primary",
|
|
30700
30913
|
style: {
|
|
30701
30914
|
width: '30px',
|
|
@@ -30781,7 +30994,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
30781
30994
|
_useState2 = _slicedToArray(_useState, 2),
|
|
30782
30995
|
handSource = _useState2[0],
|
|
30783
30996
|
setHandSource = _useState2[1];
|
|
30784
|
-
React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30997
|
+
React$1.useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30785
30998
|
var resData, data;
|
|
30786
30999
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30787
31000
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -30933,7 +31146,7 @@ function getRegularThresholdRange(_x) {
|
|
|
30933
31146
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
30934
31147
|
}
|
|
30935
31148
|
function _getRegularThresholdRange() {
|
|
30936
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
31149
|
+
_getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
30937
31150
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30938
31151
|
while (1) switch (_context.prev = _context.next) {
|
|
30939
31152
|
case 0:
|
|
@@ -31087,7 +31300,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
31087
31300
|
};
|
|
31088
31301
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
31089
31302
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
31090
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
31303
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
31091
31304
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
31092
31305
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31093
31306
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -32032,7 +32245,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32032
32245
|
isAll: true,
|
|
32033
32246
|
needNameAndCode: true,
|
|
32034
32247
|
notChangeOnSelect: true,
|
|
32035
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
32248
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
32036
32249
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
32037
32250
|
while (1) switch (_context2.prev = _context2.next) {
|
|
32038
32251
|
case 0:
|
|
@@ -32081,7 +32294,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32081
32294
|
isAll: true,
|
|
32082
32295
|
needNameAndCode: true,
|
|
32083
32296
|
notChangeOnSelect: true,
|
|
32084
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
32297
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
32085
32298
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
32086
32299
|
while (1) switch (_context3.prev = _context3.next) {
|
|
32087
32300
|
case 0:
|
|
@@ -32132,7 +32345,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32132
32345
|
isAll: true,
|
|
32133
32346
|
needNameAndCode: true,
|
|
32134
32347
|
notChangeOnSelect: true,
|
|
32135
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
32348
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
32136
32349
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
32137
32350
|
while (1) switch (_context4.prev = _context4.next) {
|
|
32138
32351
|
case 0:
|
|
@@ -34096,7 +34309,7 @@ var App$1 = function App(_ref) {
|
|
|
34096
34309
|
borderRadius: '5px',
|
|
34097
34310
|
cursor: 'pointer'
|
|
34098
34311
|
}
|
|
34099
|
-
}, isStaticNumber ? (/*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
34312
|
+
}, isStaticNumber ? ( /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
34100
34313
|
autoFocus: true,
|
|
34101
34314
|
onClick: function onClick(e) {
|
|
34102
34315
|
return e.stopPropagation();
|
|
@@ -34383,7 +34596,7 @@ function RenderCompItem(props) {
|
|
|
34383
34596
|
dictData = _useState2[0],
|
|
34384
34597
|
setDictData = _useState2[1];
|
|
34385
34598
|
var getDictData = /*#__PURE__*/function () {
|
|
34386
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
34599
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
34387
34600
|
var _data$map;
|
|
34388
34601
|
var data;
|
|
34389
34602
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -34425,7 +34638,7 @@ function RenderCompItem(props) {
|
|
|
34425
34638
|
var style2 = {
|
|
34426
34639
|
width: '100px'
|
|
34427
34640
|
};
|
|
34428
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && (/*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
34641
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && ( /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
34429
34642
|
disabled: disabled,
|
|
34430
34643
|
allowClear: true,
|
|
34431
34644
|
onClear: function onClear() {
|
|
@@ -34436,7 +34649,7 @@ function RenderCompItem(props) {
|
|
|
34436
34649
|
onBlur: function onBlur(e) {
|
|
34437
34650
|
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
34438
34651
|
}
|
|
34439
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 22) && (/*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
34652
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 22) && ( /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
34440
34653
|
disabled: disabled,
|
|
34441
34654
|
// max={Number.MAX_SAFE_INTEGER}
|
|
34442
34655
|
max: judgeIsEmpty(ites === null || ites === void 0 ? void 0 : ites.maxValue) ? Number.MAX_SAFE_INTEGER : ites.maxValue,
|
|
@@ -34449,7 +34662,7 @@ function RenderCompItem(props) {
|
|
|
34449
34662
|
onChange: function onChange(value) {
|
|
34450
34663
|
handleEdit(ites.code, value);
|
|
34451
34664
|
}
|
|
34452
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 41 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 32) && (/*#__PURE__*/React__default['default'].createElement(antd.DatePicker, {
|
|
34665
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 41 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 32) && ( /*#__PURE__*/React__default['default'].createElement(antd.DatePicker, {
|
|
34453
34666
|
showTime: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 32,
|
|
34454
34667
|
format: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 41 ? dateFormat : fullDateFormat,
|
|
34455
34668
|
disabled: disabled,
|
|
@@ -34459,7 +34672,7 @@ function RenderCompItem(props) {
|
|
|
34459
34672
|
onChange: function onChange(value, dateString) {
|
|
34460
34673
|
handleEdit(ites.code, dateString);
|
|
34461
34674
|
}
|
|
34462
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && (/*#__PURE__*/React__default['default'].createElement(RangePicker$1, {
|
|
34675
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && ( /*#__PURE__*/React__default['default'].createElement(RangePicker$1, {
|
|
34463
34676
|
showTime: true,
|
|
34464
34677
|
disabled: disabled,
|
|
34465
34678
|
defaultValue: ites.defaultValue,
|
|
@@ -34468,7 +34681,7 @@ function RenderCompItem(props) {
|
|
|
34468
34681
|
onChange: function onChange(value, timeString) {
|
|
34469
34682
|
handleEdit(ites.code, timeString);
|
|
34470
34683
|
}
|
|
34471
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && (/*#__PURE__*/React__default['default'].createElement(antd.Switch, {
|
|
34684
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && ( /*#__PURE__*/React__default['default'].createElement(antd.Switch, {
|
|
34472
34685
|
disabled: disabled,
|
|
34473
34686
|
defaultChecked: !!ites.defaultValue,
|
|
34474
34687
|
style: style2,
|
|
@@ -34476,7 +34689,7 @@ function RenderCompItem(props) {
|
|
|
34476
34689
|
onChange: function onChange(value) {
|
|
34477
34690
|
handleEdit(ites.code, value);
|
|
34478
34691
|
}
|
|
34479
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 10 && (/*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({
|
|
34692
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 10 && ( /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({
|
|
34480
34693
|
disabled: disabled,
|
|
34481
34694
|
allowClear: true,
|
|
34482
34695
|
showArrow: true
|
|
@@ -34494,7 +34707,7 @@ function RenderCompItem(props) {
|
|
|
34494
34707
|
key: it,
|
|
34495
34708
|
value: it
|
|
34496
34709
|
}, ites.enumeration[it]);
|
|
34497
|
-
}))) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 20 && (/*#__PURE__*/React__default['default'].createElement(InnerSelect, {
|
|
34710
|
+
}))) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 20 && ( /*#__PURE__*/React__default['default'].createElement(InnerSelect, {
|
|
34498
34711
|
disabled: disabled,
|
|
34499
34712
|
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
34500
34713
|
defaultValue: ites.defaultValue,
|
|
@@ -34504,7 +34717,7 @@ function RenderCompItem(props) {
|
|
|
34504
34717
|
handleEdit(ites.code, value);
|
|
34505
34718
|
},
|
|
34506
34719
|
dictionaryCode: ites.dictionaryCode
|
|
34507
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 110 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
34720
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 110 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
34508
34721
|
selectBusinessType: "physicalWarehouse",
|
|
34509
34722
|
selectProps: _objectSpread2({
|
|
34510
34723
|
style: styleCommon,
|
|
@@ -34526,7 +34739,7 @@ function RenderCompItem(props) {
|
|
|
34526
34739
|
getPopupContainer: function getPopupContainer() {
|
|
34527
34740
|
return document.body;
|
|
34528
34741
|
}
|
|
34529
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 120 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
34742
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 120 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
34530
34743
|
selectBusinessType: "realWarehouse",
|
|
34531
34744
|
selectProps: _objectSpread2({
|
|
34532
34745
|
style: styleCommon,
|
|
@@ -34548,7 +34761,7 @@ function RenderCompItem(props) {
|
|
|
34548
34761
|
getPopupContainer: function getPopupContainer() {
|
|
34549
34762
|
return document.body;
|
|
34550
34763
|
}
|
|
34551
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 130 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
34764
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 130 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
34552
34765
|
selectBusinessType: "virtualWarehouse",
|
|
34553
34766
|
selectProps: _objectSpread2({
|
|
34554
34767
|
style: styleCommon,
|
|
@@ -34570,7 +34783,7 @@ function RenderCompItem(props) {
|
|
|
34570
34783
|
getPopupContainer: function getPopupContainer() {
|
|
34571
34784
|
return document.body;
|
|
34572
34785
|
}
|
|
34573
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 140 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
34786
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 140 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
34574
34787
|
selectBusinessType: "channelWarehouse",
|
|
34575
34788
|
selectProps: _objectSpread2({
|
|
34576
34789
|
style: styleCommon,
|
|
@@ -34592,7 +34805,7 @@ function RenderCompItem(props) {
|
|
|
34592
34805
|
getPopupContainer: function getPopupContainer() {
|
|
34593
34806
|
return document.body;
|
|
34594
34807
|
}
|
|
34595
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 150 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
34808
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 150 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
34596
34809
|
selectBusinessType: "spuCommodity",
|
|
34597
34810
|
selectProps: _objectSpread2({
|
|
34598
34811
|
style: styleCommon,
|
|
@@ -34613,7 +34826,7 @@ function RenderCompItem(props) {
|
|
|
34613
34826
|
getPopupContainer: function getPopupContainer() {
|
|
34614
34827
|
return document.body;
|
|
34615
34828
|
}
|
|
34616
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 160 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
34829
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 160 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
34617
34830
|
selectBusinessType: "skuCommodity",
|
|
34618
34831
|
selectProps: _objectSpread2({
|
|
34619
34832
|
style: styleCommon,
|
|
@@ -34634,13 +34847,13 @@ function RenderCompItem(props) {
|
|
|
34634
34847
|
getPopupContainer: function getPopupContainer() {
|
|
34635
34848
|
return document.body;
|
|
34636
34849
|
}
|
|
34637
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 190 && (/*#__PURE__*/React__default['default'].createElement(BsCascader, {
|
|
34850
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 190 && ( /*#__PURE__*/React__default['default'].createElement(BsCascader, {
|
|
34638
34851
|
disabled: disabled,
|
|
34639
34852
|
isAll: true,
|
|
34640
34853
|
needNameAndCode: true,
|
|
34641
34854
|
notChangeOnSelect: true,
|
|
34642
34855
|
initRequestSource: function () {
|
|
34643
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
34856
|
+
var _initRequestSource = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
34644
34857
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
34645
34858
|
while (1) switch (_context2.prev = _context2.next) {
|
|
34646
34859
|
case 0:
|
|
@@ -34682,7 +34895,7 @@ function RenderCompItem(props) {
|
|
|
34682
34895
|
getPopupContainer: function getPopupContainer() {
|
|
34683
34896
|
return document.body;
|
|
34684
34897
|
}
|
|
34685
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 210 && (/*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
34898
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 210 && ( /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
34686
34899
|
disabled: disabled,
|
|
34687
34900
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34688
34901
|
businessType: "department",
|
|
@@ -34695,7 +34908,7 @@ function RenderCompItem(props) {
|
|
|
34695
34908
|
getPopupContainer: function getPopupContainer() {
|
|
34696
34909
|
return document.body;
|
|
34697
34910
|
}
|
|
34698
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 220 && (/*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
34911
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 220 && ( /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
34699
34912
|
disabled: disabled,
|
|
34700
34913
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34701
34914
|
businessType: "purchase-organization",
|
|
@@ -34708,7 +34921,7 @@ function RenderCompItem(props) {
|
|
|
34708
34921
|
getPopupContainer: function getPopupContainer() {
|
|
34709
34922
|
return document.body;
|
|
34710
34923
|
}
|
|
34711
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 230 && (/*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
34924
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 230 && ( /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
34712
34925
|
disabled: disabled,
|
|
34713
34926
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34714
34927
|
businessType: "sales-organization",
|
|
@@ -34721,7 +34934,7 @@ function RenderCompItem(props) {
|
|
|
34721
34934
|
getPopupContainer: function getPopupContainer() {
|
|
34722
34935
|
return document.body;
|
|
34723
34936
|
}
|
|
34724
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 240 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
34937
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 240 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
34725
34938
|
selectBusinessType: "supplier2",
|
|
34726
34939
|
selectProps: _objectSpread2({
|
|
34727
34940
|
style: styleCommon,
|
|
@@ -34742,7 +34955,7 @@ function RenderCompItem(props) {
|
|
|
34742
34955
|
getPopupContainer: function getPopupContainer() {
|
|
34743
34956
|
return document.body;
|
|
34744
34957
|
}
|
|
34745
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 250 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
34958
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 250 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
34746
34959
|
selectBusinessType: "customer2",
|
|
34747
34960
|
selectProps: _objectSpread2({
|
|
34748
34961
|
style: styleCommon,
|
|
@@ -34763,7 +34976,7 @@ function RenderCompItem(props) {
|
|
|
34763
34976
|
getPopupContainer: function getPopupContainer() {
|
|
34764
34977
|
return document.body;
|
|
34765
34978
|
}
|
|
34766
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 260 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
34979
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 260 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
34767
34980
|
selectBusinessType: "shopFile2",
|
|
34768
34981
|
selectProps: _objectSpread2({
|
|
34769
34982
|
style: styleCommon,
|
|
@@ -34784,7 +34997,7 @@ function RenderCompItem(props) {
|
|
|
34784
34997
|
getPopupContainer: function getPopupContainer() {
|
|
34785
34998
|
return document.body;
|
|
34786
34999
|
}
|
|
34787
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 270 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35000
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 270 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
34788
35001
|
selectBusinessType: "employee2",
|
|
34789
35002
|
selectProps: _objectSpread2({
|
|
34790
35003
|
style: styleCommon,
|
|
@@ -34805,7 +35018,7 @@ function RenderCompItem(props) {
|
|
|
34805
35018
|
getPopupContainer: function getPopupContainer() {
|
|
34806
35019
|
return document.body;
|
|
34807
35020
|
}
|
|
34808
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 280 && (/*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
35021
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 280 && ( /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
34809
35022
|
disabled: disabled,
|
|
34810
35023
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34811
35024
|
businessType: "stock-organization",
|
|
@@ -34818,7 +35031,7 @@ function RenderCompItem(props) {
|
|
|
34818
35031
|
getPopupContainer: function getPopupContainer() {
|
|
34819
35032
|
return document.body;
|
|
34820
35033
|
}
|
|
34821
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 290 && (/*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
35034
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 290 && ( /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
34822
35035
|
disabled: disabled,
|
|
34823
35036
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34824
35037
|
businessType: "settle-organization",
|
|
@@ -34831,7 +35044,7 @@ function RenderCompItem(props) {
|
|
|
34831
35044
|
getPopupContainer: function getPopupContainer() {
|
|
34832
35045
|
return document.body;
|
|
34833
35046
|
}
|
|
34834
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35047
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
34835
35048
|
selectBusinessType: "deliveryMode",
|
|
34836
35049
|
selectProps: _objectSpread2({
|
|
34837
35050
|
style: styleCommon,
|
|
@@ -34852,7 +35065,7 @@ function RenderCompItem(props) {
|
|
|
34852
35065
|
getPopupContainer: function getPopupContainer() {
|
|
34853
35066
|
return document.body;
|
|
34854
35067
|
}
|
|
34855
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 360 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35068
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 360 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
34856
35069
|
selectBusinessType: "role",
|
|
34857
35070
|
selectProps: _objectSpread2({
|
|
34858
35071
|
style: styleCommon,
|
|
@@ -34873,7 +35086,7 @@ function RenderCompItem(props) {
|
|
|
34873
35086
|
getPopupContainer: function getPopupContainer() {
|
|
34874
35087
|
return document.body;
|
|
34875
35088
|
}
|
|
34876
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 410 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35089
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 410 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
34877
35090
|
selectBusinessType: "brand",
|
|
34878
35091
|
selectProps: _objectSpread2({
|
|
34879
35092
|
style: styleCommon,
|
|
@@ -34894,7 +35107,7 @@ function RenderCompItem(props) {
|
|
|
34894
35107
|
getPopupContainer: function getPopupContainer() {
|
|
34895
35108
|
return document.body;
|
|
34896
35109
|
}
|
|
34897
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 420 && (/*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
35110
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 420 && ( /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
34898
35111
|
disabled: disabled,
|
|
34899
35112
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34900
35113
|
businessType: "background-category",
|
|
@@ -34907,7 +35120,7 @@ function RenderCompItem(props) {
|
|
|
34907
35120
|
getPopupContainer: function getPopupContainer() {
|
|
34908
35121
|
return document.body;
|
|
34909
35122
|
}
|
|
34910
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 40 && (/*#__PURE__*/React__default['default'].createElement(CustomSelector, {
|
|
35123
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 40 && ( /*#__PURE__*/React__default['default'].createElement(CustomSelector, {
|
|
34911
35124
|
selectProps: _objectSpread2(_objectSpread2({
|
|
34912
35125
|
style: styleCommon,
|
|
34913
35126
|
placeholder: '请选择'
|
|
@@ -34930,7 +35143,7 @@ function RenderCompItem(props) {
|
|
|
34930
35143
|
onChange: function onChange(value) {
|
|
34931
35144
|
handleEdit(ites.code, value);
|
|
34932
35145
|
}
|
|
34933
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
35146
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
34934
35147
|
style: {
|
|
34935
35148
|
display: 'flex'
|
|
34936
35149
|
}
|
|
@@ -35442,7 +35655,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35442
35655
|
queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
|
|
35443
35656
|
queryIdentifyType = 'dynamicDictCodeIdentify';
|
|
35444
35657
|
}
|
|
35445
|
-
var parallelTreeData =
|
|
35658
|
+
var parallelTreeData = coverToParallel(ruleTreeData, []) || [];
|
|
35446
35659
|
var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
|
|
35447
35660
|
var _i$key;
|
|
35448
35661
|
return ((i === null || i === void 0 ? void 0 : (_i$key = i.key) === null || _i$key === void 0 ? void 0 : _i$key.indexOf('.')) > -1 ? i.id : i.key) === (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId);
|
|
@@ -36369,13 +36582,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
36369
36582
|
var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
|
|
36370
36583
|
// 处理对象-设置了必填-规则实例保存时数据必填校验
|
|
36371
36584
|
if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
|
|
36372
|
-
var list =
|
|
36585
|
+
var list = coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
|
|
36373
36586
|
var requiredList = list.filter(function (c) {
|
|
36374
36587
|
return c.required == 1;
|
|
36375
36588
|
}) || []; // 获取对象属性为true的集合
|
|
36376
36589
|
(requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
|
|
36377
36590
|
var _s$expression, _s$expression$subExpr, _s$expression2, _coverExpressionTree$;
|
|
36378
|
-
var coverExpressionTree = (s === null || s === void 0 ? void 0 : (_s$expression = s.expression) === null || _s$expression === void 0 ? void 0 : (_s$expression$subExpr = _s$expression.subExpression) === null || _s$expression$subExpr === void 0 ? void 0 : _s$expression$subExpr.length) ?
|
|
36591
|
+
var coverExpressionTree = (s === null || s === void 0 ? void 0 : (_s$expression = s.expression) === null || _s$expression === void 0 ? void 0 : (_s$expression$subExpr = _s$expression.subExpression) === null || _s$expression$subExpr === void 0 ? void 0 : _s$expression$subExpr.length) ? coverToParallel(s === null || s === void 0 ? void 0 : (_s$expression2 = s.expression) === null || _s$expression2 === void 0 ? void 0 : _s$expression2.subExpression, [], 'subExpression') : (s === null || s === void 0 ? void 0 : s.expression) && [s === null || s === void 0 ? void 0 : s.expression];
|
|
36379
36592
|
(coverExpressionTree === null || coverExpressionTree === void 0 ? void 0 : coverExpressionTree.length) && (coverExpressionTree === null || coverExpressionTree === void 0 ? void 0 : (_coverExpressionTree$ = coverExpressionTree.forEach) === null || _coverExpressionTree$ === void 0 ? void 0 : _coverExpressionTree$.call(coverExpressionTree, function (e) {
|
|
36380
36593
|
if (requiredList.some(function (r) {
|
|
36381
36594
|
return r.id === e.elementId;
|
|
@@ -36964,7 +37177,7 @@ var BaseRule = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
36964
37177
|
style: {
|
|
36965
37178
|
float: 'right'
|
|
36966
37179
|
}
|
|
36967
|
-
})), /*#__PURE__*/React__default['default'].createElement("div", null, sceneId ? (/*#__PURE__*/React__default['default'].createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
37180
|
+
})), /*#__PURE__*/React__default['default'].createElement("div", null, sceneId ? ( /*#__PURE__*/React__default['default'].createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
36968
37181
|
onlyOneRule: (_handleDiff2 = handleDiff()) === null || _handleDiff2 === void 0 ? void 0 : _handleDiff2.onlyOneRule,
|
|
36969
37182
|
ruleGroupInfo: {
|
|
36970
37183
|
ruleGroupList: ruleGroupList,
|
|
@@ -36982,7 +37195,7 @@ var BaseRule = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
36982
37195
|
callBack: function callBack(newData) {
|
|
36983
37196
|
upDateData(newData);
|
|
36984
37197
|
}
|
|
36985
|
-
}))) : (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
37198
|
+
}))) : ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
36986
37199
|
style: {
|
|
36987
37200
|
padding: 20
|
|
36988
37201
|
}
|
|
@@ -37397,11 +37610,11 @@ exports.TreeSearchSelect = TreeSearchSelect;
|
|
|
37397
37610
|
exports.authFunc = authFunc;
|
|
37398
37611
|
exports.calculateValidPeriod = calculateValidPeriod;
|
|
37399
37612
|
exports.checkQuantityAccuracy = checkQuantityAccuracy;
|
|
37400
|
-
exports.coverToParallel =
|
|
37613
|
+
exports.coverToParallel = coverToParallel;
|
|
37401
37614
|
exports.createUniqID = createUniqID;
|
|
37402
37615
|
exports.downloadExcel = downloadExcel;
|
|
37403
37616
|
exports.ergodicMenuRoutes = ergodicMenuRoutes;
|
|
37404
|
-
exports.formatter =
|
|
37617
|
+
exports.formatter = formatter;
|
|
37405
37618
|
exports.getAccountID = getAccountID;
|
|
37406
37619
|
exports.getAccountId = getAccountId;
|
|
37407
37620
|
exports.getBreadcrumbNameMap = getBreadcrumbNameMap;
|