@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.esm.js
CHANGED
|
@@ -1059,13 +1059,13 @@ var tableColumnsImage = function tableColumnsImage(url, paramsObj) {
|
|
|
1059
1059
|
imgHtml.innerHTML = str;
|
|
1060
1060
|
}
|
|
1061
1061
|
// 测试使用 测试类型缩小 end
|
|
1062
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (/*#__PURE__*/React$1.createElement("div", {
|
|
1062
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
1063
1063
|
className: "clomnsImg"
|
|
1064
1064
|
}, /*#__PURE__*/React$1.createElement(Image, _objectSpread2({
|
|
1065
1065
|
src: url,
|
|
1066
1066
|
width: "16px",
|
|
1067
1067
|
height: "16px"
|
|
1068
|
-
}, paramsObj)))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
1068
|
+
}, paramsObj)))) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
1069
1069
|
className: "clomnsImg2"
|
|
1070
1070
|
}, /*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1071
1071
|
src: noImg
|
|
@@ -1204,7 +1204,7 @@ function downloadExcel(data, fileName, isResUrl) {
|
|
|
1204
1204
|
}
|
|
1205
1205
|
save_link.click();
|
|
1206
1206
|
}
|
|
1207
|
-
var
|
|
1207
|
+
var formatter = function formatter(data, parentAuthority, parentName) {
|
|
1208
1208
|
return data.map(function (item) {
|
|
1209
1209
|
if (!item.name || !item.path) {
|
|
1210
1210
|
return null;
|
|
@@ -1224,7 +1224,7 @@ var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1224
1224
|
authority: item.authority || parentAuthority
|
|
1225
1225
|
});
|
|
1226
1226
|
if (item.routes) {
|
|
1227
|
-
var children =
|
|
1227
|
+
var children = formatter(item.routes, item.authority, locale);
|
|
1228
1228
|
// Reduce memory usage
|
|
1229
1229
|
result.children = children;
|
|
1230
1230
|
}
|
|
@@ -1234,7 +1234,7 @@ var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1234
1234
|
return item;
|
|
1235
1235
|
});
|
|
1236
1236
|
};
|
|
1237
|
-
var memoizeOneFormatter = memoizeOne(
|
|
1237
|
+
var memoizeOneFormatter = memoizeOne(formatter, isEqual);
|
|
1238
1238
|
var go2BackAndClose = function go2BackAndClose(backHistoryPath) {
|
|
1239
1239
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1240
1240
|
if (backHistoryPath) {
|
|
@@ -1543,7 +1543,7 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1543
1543
|
// sheepMap是表头字段中英文映射
|
|
1544
1544
|
// sheetCount:表的数量,默认一张
|
|
1545
1545
|
var resolveFile = /*#__PURE__*/function () {
|
|
1546
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1546
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1547
1547
|
var config,
|
|
1548
1548
|
data,
|
|
1549
1549
|
_args = arguments;
|
|
@@ -1582,7 +1582,7 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1582
1582
|
}();
|
|
1583
1583
|
//读取文件
|
|
1584
1584
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1585
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1585
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1586
1586
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1587
1587
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1588
1588
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -1675,14 +1675,14 @@ var keyToWord = function keyToWord(data, fieldMapping) {
|
|
|
1675
1675
|
/**---------------------数据写入excel-------结束------------------------*/
|
|
1676
1676
|
|
|
1677
1677
|
// 获取树平行结构
|
|
1678
|
-
var
|
|
1678
|
+
var coverToParallel = function coverToParallel(treeData, result, chilKey) {
|
|
1679
1679
|
var childrenKey = chilKey || 'children';
|
|
1680
1680
|
treeData.forEach(function (el) {
|
|
1681
1681
|
var _el$childrenKey;
|
|
1682
1682
|
result.push(el);
|
|
1683
1683
|
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) {
|
|
1684
1684
|
// 子级递归
|
|
1685
|
-
|
|
1685
|
+
coverToParallel(el === null || el === void 0 ? void 0 : el[childrenKey], result, chilKey);
|
|
1686
1686
|
}
|
|
1687
1687
|
});
|
|
1688
1688
|
return result;
|
|
@@ -1959,13 +1959,13 @@ var tableColumnsImage$1 = function tableColumnsImage(url, paramsObj) {
|
|
|
1959
1959
|
imgHtml.innerHTML = str;
|
|
1960
1960
|
}
|
|
1961
1961
|
// 测试使用 测试类型缩小 end
|
|
1962
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (/*#__PURE__*/React$1.createElement("div", {
|
|
1962
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
1963
1963
|
className: "clomnsImg"
|
|
1964
1964
|
}, /*#__PURE__*/React$1.createElement(Image, _objectSpread2({
|
|
1965
1965
|
src: url,
|
|
1966
1966
|
width: "16px",
|
|
1967
1967
|
height: "16px"
|
|
1968
|
-
}, paramsObj)))) : (/*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1968
|
+
}, paramsObj)))) : ( /*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1969
1969
|
src: noImg
|
|
1970
1970
|
}))));
|
|
1971
1971
|
};
|
|
@@ -2027,7 +2027,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2027
2027
|
}
|
|
2028
2028
|
});
|
|
2029
2029
|
};
|
|
2030
|
-
var menu = /*#__PURE__*/React$1.createElement(Menu, null, /*#__PURE__*/React$1.createElement(Menu.Item, null, type === 'input' && (/*#__PURE__*/React$1.createElement(Input, _objectSpread2({
|
|
2030
|
+
var menu = /*#__PURE__*/React$1.createElement(Menu, null, /*#__PURE__*/React$1.createElement(Menu.Item, null, type === 'input' && ( /*#__PURE__*/React$1.createElement(Input, _objectSpread2({
|
|
2031
2031
|
disabled: disabled,
|
|
2032
2032
|
onChange: function onChange(e) {
|
|
2033
2033
|
var v = e.target.value;
|
|
@@ -2037,7 +2037,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2037
2037
|
width: 170
|
|
2038
2038
|
},
|
|
2039
2039
|
value: inputValue
|
|
2040
|
-
}, inpProps))), type === 'number' && (/*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2({
|
|
2040
|
+
}, inpProps))), type === 'number' && ( /*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2({
|
|
2041
2041
|
disabled: disabled,
|
|
2042
2042
|
onBlur: function onBlur(e) {
|
|
2043
2043
|
var v = parseFloat(e.target.value);
|
|
@@ -2416,16 +2416,16 @@ var handleExport = function handleExport(type, params, url, methods, fileName, p
|
|
|
2416
2416
|
var handleExportBarCode = handleExport;
|
|
2417
2417
|
var getBreadcrumbNameMap = function getBreadcrumbNameMap(menuData) {
|
|
2418
2418
|
var routerMap = {};
|
|
2419
|
-
var
|
|
2419
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
2420
2420
|
data.forEach(function (menuItem) {
|
|
2421
2421
|
if (menuItem.children) {
|
|
2422
|
-
|
|
2422
|
+
flattenMenuData(menuItem.children);
|
|
2423
2423
|
}
|
|
2424
2424
|
// Reduce memory usage
|
|
2425
2425
|
routerMap[menuItem.path] = menuItem;
|
|
2426
2426
|
});
|
|
2427
2427
|
};
|
|
2428
|
-
|
|
2428
|
+
flattenMenuData(menuData);
|
|
2429
2429
|
return routerMap;
|
|
2430
2430
|
};
|
|
2431
2431
|
var ergodicMenuRoutes = function ergodicMenuRoutes(routes) {
|
|
@@ -2568,7 +2568,7 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2568
2568
|
return request$1(url, parms).then(handleResponseData);
|
|
2569
2569
|
};
|
|
2570
2570
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2571
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2571
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2572
2572
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2573
2573
|
while (1) switch (_context.prev = _context.next) {
|
|
2574
2574
|
case 0:
|
|
@@ -3242,7 +3242,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3242
3242
|
placement: "bottomLeft"
|
|
3243
3243
|
}, /*#__PURE__*/React$1.createElement("a", null, /*#__PURE__*/React$1.createElement(ProfileTwoTone, null))), /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
3244
3244
|
title: /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("span", null, "\u4F7F\u7528\u6307\u5357\uFF1A"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "1\u3001\u62D6\u52A8\u6570\u636E\u9879\uFF0C\u4EE5\u9002\u914D\u6E90\u6570\u636E\u7684\u987A\u5E8F\uFF0C\u5982\u60A8Excel\u4E2D\u6570\u636E\u6392\u5E8F\u4F9D\u6B21\u4E3A\u7F16\u7801\u3001\u4EF7\u683C\u548C\u6570\u91CF\uFF0C\u5219\u60A8\u4E5F\u53EF\u4EE5\u5C06\u6570\u636E\u9879\u7684\u987A\u5E8F\u8C03\u6574\u4E3A\u4E00\u81F4"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "2\u3001\u590D\u5236\u6587\u4EF6\u6570\u636E\uFF08\u591A\u5217\u4E00\u8D77\uFF09\uFF0C\u5728\u6587\u672C\u6846\u5185\u8FDB\u884C\u7C98\u8D34"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "3\u3001\u70B9\u51FB\u8BC6\u522B\u6309\u94AE\u8FDB\u884C\u6570\u636E\u6821\u9A8C\uFF0C\u5982\u5168\u90E8\u6B63\u786E\uFF0C\u5219\u70B9\u51FB\u5F55\u5165\u6309\u94AE\u53EF\u5F55\u5165\u6570\u636E\uFF0C\u5982\u5B58\u5728\u9519\u8BEF\u6570\u636E\uFF0C\u5219\u9700\u4FEE\u6539\u540E\u518D\u8FDB\u884C\u5F55\u5165"))
|
|
3245
|
-
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (/*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3245
|
+
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && ( /*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3246
3246
|
trigger: ['click'],
|
|
3247
3247
|
overlay: this.menuList,
|
|
3248
3248
|
placement: "bottomRight"
|
|
@@ -3917,7 +3917,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
3917
3917
|
placement: "bottomLeft"
|
|
3918
3918
|
}, /*#__PURE__*/React$1.createElement("a", null, /*#__PURE__*/React$1.createElement(ProfileTwoTone, null))), /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
3919
3919
|
title: /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("span", null, "\u4F7F\u7528\u6307\u5357\uFF1A"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "1\u3001\u62D6\u52A8\u6570\u636E\u9879\uFF0C\u4EE5\u9002\u914D\u6E90\u6570\u636E\u7684\u987A\u5E8F\uFF0C\u5982\u60A8Excel\u4E2D\u6570\u636E\u6392\u5E8F\u4F9D\u6B21\u4E3A\u7F16\u7801\u3001\u4EF7\u683C\u548C\u6570\u91CF\uFF0C\u5219\u60A8\u4E5F\u53EF\u4EE5\u5C06\u6570\u636E\u9879\u7684\u987A\u5E8F\u8C03\u6574\u4E3A\u4E00\u81F4"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "2\u3001\u590D\u5236\u6587\u4EF6\u6570\u636E\uFF08\u591A\u5217\u4E00\u8D77\uFF09\uFF0C\u5728\u6587\u672C\u6846\u5185\u8FDB\u884C\u7C98\u8D34"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "3\u3001\u70B9\u51FB\u8BC6\u522B\u6309\u94AE\u8FDB\u884C\u6570\u636E\u6821\u9A8C\uFF0C\u5982\u5168\u90E8\u6B63\u786E\uFF0C\u5219\u70B9\u51FB\u5F55\u5165\u6309\u94AE\u53EF\u5F55\u5165\u6570\u636E\uFF0C\u5982\u5B58\u5728\u9519\u8BEF\u6570\u636E\uFF0C\u5219\u9700\u4FEE\u6539\u540E\u518D\u8FDB\u884C\u5F55\u5165"))
|
|
3920
|
-
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (/*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3920
|
+
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && ( /*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3921
3921
|
trigger: ['click'],
|
|
3922
3922
|
overlay: this.menuList,
|
|
3923
3923
|
placement: "bottomRight"
|
|
@@ -3976,6 +3976,10 @@ var QueryMutipleInput = function QueryMutipleInput(_ref) {
|
|
|
3976
3976
|
}, [value]);
|
|
3977
3977
|
var showModal = function showModal() {
|
|
3978
3978
|
setIsModalVisible(true);
|
|
3979
|
+
//弹窗打开时 默认搜索内容换行显示
|
|
3980
|
+
setPopValue(function (data) {
|
|
3981
|
+
return data.replace(/,/g, '\n');
|
|
3982
|
+
});
|
|
3979
3983
|
};
|
|
3980
3984
|
var handleOk = function handleOk() {
|
|
3981
3985
|
formaData(popvalue);
|
|
@@ -4071,14 +4075,15 @@ function ToCDB(str) {
|
|
|
4071
4075
|
return tmp;
|
|
4072
4076
|
}
|
|
4073
4077
|
|
|
4074
|
-
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:
|
|
4078
|
+
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";
|
|
4075
4079
|
styleInject(css_248z$5);
|
|
4076
4080
|
|
|
4081
|
+
var columnsPerRow = 4; // 每行的列数
|
|
4082
|
+
var ColSpan = 6; // 查询条件 每行col = 24 /columnsPerRow
|
|
4077
4083
|
var handleSourceName = function handleSourceName(sName) {
|
|
4078
4084
|
return sName;
|
|
4079
4085
|
};
|
|
4080
4086
|
var getFormRowInfo = function getFormRowInfo(list) {
|
|
4081
|
-
var columnsPerRow = 4; // 每行的列数
|
|
4082
4087
|
var totalRows = Math.ceil(list.length / columnsPerRow); // 计算总行数
|
|
4083
4088
|
var lastRowColumns = (list.length + 1) % columnsPerRow; // 计算最后一行的实际列数
|
|
4084
4089
|
var emptySlots = lastRowColumns === 0 ? 0 : columnsPerRow - lastRowColumns; // 计算最后一行的空位数
|
|
@@ -4106,11 +4111,22 @@ var hasMoreQueryFields = function hasMoreQueryFields(modalTableProps) {
|
|
|
4106
4111
|
var visibleFieldsCount = getVisibleFieldsCount(modalTableProps);
|
|
4107
4112
|
return visibleFieldsCount < (tableSearchForm === null || tableSearchForm === void 0 ? void 0 : tableSearchForm.length);
|
|
4108
4113
|
};
|
|
4114
|
+
var getRealStr = function getRealStr(oldSelect, newSelect, record) {
|
|
4115
|
+
return (oldSelect === null || oldSelect === void 0 ? void 0 : oldSelect.length) ? oldSelect.some(function (o) {
|
|
4116
|
+
return o.value == (record === null || record === void 0 ? void 0 : record.value);
|
|
4117
|
+
}) ? oldSelect.filter(function (s) {
|
|
4118
|
+
return s.value != (record === null || record === void 0 ? void 0 : record.value);
|
|
4119
|
+
}) : [].concat(_toConsumableArray(oldSelect), _toConsumableArray(newSelect)) : newSelect;
|
|
4120
|
+
};
|
|
4121
|
+
var getTableHeigth = function getTableHeigth(list) {
|
|
4122
|
+
var totalRows = Math.ceil(((list === null || list === void 0 ? void 0 : list.length) + 1) / 4);
|
|
4123
|
+
if (totalRows == 1) return 502; // modal弹窗760 调整为700 适应小屏
|
|
4124
|
+
return 488 - totalRows * 10;
|
|
4125
|
+
};
|
|
4109
4126
|
|
|
4110
4127
|
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";
|
|
4111
4128
|
|
|
4112
4129
|
var Option$1 = Select.Option;
|
|
4113
|
-
var ColSpan = 6;
|
|
4114
4130
|
var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
4115
4131
|
var _modalTableProps$tabl, _modalTableProps$tabl2;
|
|
4116
4132
|
var value = props.value,
|
|
@@ -4153,7 +4169,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4153
4169
|
_ref$specialBracket = _ref.specialBracket,
|
|
4154
4170
|
specialBracket = _ref$specialBracket === void 0 ? false : _ref$specialBracket,
|
|
4155
4171
|
_ref$noNeedSplit = _ref.noNeedSplit,
|
|
4156
|
-
noNeedSplit = _ref$noNeedSplit === void 0 ? false : _ref$noNeedSplit
|
|
4172
|
+
noNeedSplit = _ref$noNeedSplit === void 0 ? false : _ref$noNeedSplit,
|
|
4173
|
+
noOperate = _ref.noOperate,
|
|
4174
|
+
viewShowValueStr = _ref.viewShowValueStr,
|
|
4175
|
+
searchStartLength = _ref.searchStartLength;
|
|
4157
4176
|
var resultSourceKey = handleSourceName(sourceName || (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.sourceName) || (ctx === null || ctx === void 0 ? void 0 : ctx.name) || 'supplierCode');
|
|
4158
4177
|
var selectMode = selectProps === null || selectProps === void 0 ? void 0 : selectProps.mode; // 设定当前选择器 为单选或者多选模式 无设定为单选模式(默认)
|
|
4159
4178
|
var initVal = value || (selectMode ? [] : null);
|
|
@@ -4170,20 +4189,34 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4170
4189
|
allowClear: true,
|
|
4171
4190
|
listHeight: 160,
|
|
4172
4191
|
optionLabelProp: "label",
|
|
4173
|
-
autoClearSearchValue: false
|
|
4192
|
+
autoClearSearchValue: false,
|
|
4193
|
+
placement: 'bottomLeft'
|
|
4174
4194
|
});
|
|
4175
4195
|
var initPagination = {
|
|
4176
4196
|
showQuickJumper: true,
|
|
4177
|
-
showSizeChanger:
|
|
4197
|
+
showSizeChanger: false,
|
|
4178
4198
|
showTotal: function showTotal(total) {
|
|
4179
4199
|
return "\u5171 ".concat(total, " \u6761");
|
|
4180
|
-
}
|
|
4200
|
+
},
|
|
4201
|
+
pageSize: tableInitPageSize
|
|
4181
4202
|
};
|
|
4182
4203
|
var tableInitPagination = _objectSpread2(_objectSpread2({}, initPagination), {}, {
|
|
4183
4204
|
total: 0,
|
|
4184
|
-
current: 1
|
|
4185
|
-
pageSize: tableInitPageSize
|
|
4205
|
+
current: 1
|
|
4186
4206
|
});
|
|
4207
|
+
var disabled = noOperate || (selectProps === null || selectProps === void 0 ? void 0 : selectProps.disabled) || (props === null || props === void 0 ? void 0 : props.disabled);
|
|
4208
|
+
var isHaveDependency = fixedparameter && fieldValToParam && ctx;
|
|
4209
|
+
var isHaveDValue = function isHaveDValue() {
|
|
4210
|
+
var formValueList = [];
|
|
4211
|
+
fieldValToParam.forEach(function (item, index) {
|
|
4212
|
+
var fixedParamVal = ctx.form.getFieldValue(fieldValToParam[index]);
|
|
4213
|
+
formValueList.push(fixedParamVal);
|
|
4214
|
+
});
|
|
4215
|
+
return formValueList.filter(function (item) {
|
|
4216
|
+
return item;
|
|
4217
|
+
}).length > 0;
|
|
4218
|
+
};
|
|
4219
|
+
var sDisabled = disabled || isHaveDependency && !!!isHaveDValue();
|
|
4187
4220
|
var _useState = useState([]),
|
|
4188
4221
|
_useState2 = _slicedToArray(_useState, 2),
|
|
4189
4222
|
items = _useState2[0],
|
|
@@ -4300,25 +4333,37 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4300
4333
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
4301
4334
|
confirmLoading = _useState42[0],
|
|
4302
4335
|
setConfirmLoading = _useState42[1];
|
|
4336
|
+
var _useState43 = useState(false),
|
|
4337
|
+
_useState44 = _slicedToArray(_useState43, 2),
|
|
4338
|
+
modalSearched = _useState44[0],
|
|
4339
|
+
setModalSearched = _useState44[1];
|
|
4340
|
+
var setSelectDataSource = function setSelectDataSource(list, total) {
|
|
4341
|
+
setItems(list);
|
|
4342
|
+
setItemsTotal(total);
|
|
4343
|
+
};
|
|
4344
|
+
var clearSelectDataSource = function clearSelectDataSource() {
|
|
4345
|
+
setSelectDataSource([], 0);
|
|
4346
|
+
};
|
|
4303
4347
|
useImperativeHandle(ref, function () {
|
|
4304
4348
|
return {
|
|
4305
4349
|
refreshDataSource: function refreshDataSource() {
|
|
4306
4350
|
var reset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
4307
4351
|
if (reset) {
|
|
4308
4352
|
if (init) {
|
|
4353
|
+
// 有关联,依赖项清空,此form项数据源也应清空, 也不可点击搜索
|
|
4354
|
+
if (isHaveDependency) {
|
|
4355
|
+
clearSelectDataSource();
|
|
4356
|
+
return;
|
|
4357
|
+
}
|
|
4309
4358
|
run('init');
|
|
4310
4359
|
} else {
|
|
4311
|
-
|
|
4312
|
-
setItemsTotal(0);
|
|
4360
|
+
clearSelectDataSource();
|
|
4313
4361
|
}
|
|
4314
4362
|
} else {
|
|
4315
4363
|
run();
|
|
4316
4364
|
}
|
|
4317
4365
|
},
|
|
4318
|
-
|
|
4319
|
-
setItems([]);
|
|
4320
|
-
setItemsTotal(0);
|
|
4321
|
-
},
|
|
4366
|
+
clearSelectDataSource: clearSelectDataSource,
|
|
4322
4367
|
getTableFormRef: function getTableFormRef() {
|
|
4323
4368
|
return form;
|
|
4324
4369
|
},
|
|
@@ -4326,12 +4371,16 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4326
4371
|
getSelectDataSource: function getSelectDataSource() {
|
|
4327
4372
|
return items;
|
|
4328
4373
|
},
|
|
4329
|
-
setSelectDataSource:
|
|
4330
|
-
setItems(list);
|
|
4331
|
-
setItemsTotal(listTotal);
|
|
4332
|
-
},
|
|
4374
|
+
setSelectDataSource: setSelectDataSource,
|
|
4333
4375
|
refreshSelectDataSource: function refreshSelectDataSource() {
|
|
4334
4376
|
refreshItems();
|
|
4377
|
+
},
|
|
4378
|
+
handleModalVisible: function handleModalVisible(flag) {
|
|
4379
|
+
if (flag) {
|
|
4380
|
+
showModal();
|
|
4381
|
+
} else {
|
|
4382
|
+
handleCancel();
|
|
4383
|
+
}
|
|
4335
4384
|
}
|
|
4336
4385
|
};
|
|
4337
4386
|
});
|
|
@@ -4344,7 +4393,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4344
4393
|
setFetching(true);
|
|
4345
4394
|
// 处理dependence参数
|
|
4346
4395
|
var fixedParam = {};
|
|
4347
|
-
if (
|
|
4396
|
+
if (isHaveDependency) {
|
|
4348
4397
|
fixedparameter.forEach(function (item, index) {
|
|
4349
4398
|
var fixedParamVal = ctx.form.getFieldValue(fieldValToParam[index]);
|
|
4350
4399
|
if (fixedParamVal) {
|
|
@@ -4536,15 +4585,15 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4536
4585
|
});
|
|
4537
4586
|
})) : [];
|
|
4538
4587
|
}
|
|
4539
|
-
|
|
4588
|
+
// 数据源 不可以有重复key
|
|
4589
|
+
source = Array.isArray(source) ? _.uniqBy(source, 'value') : [];
|
|
4540
4590
|
if (callback) {
|
|
4541
4591
|
callback(source);
|
|
4542
4592
|
} else {
|
|
4543
4593
|
if (type === 1) {
|
|
4544
4594
|
var _ctx$form;
|
|
4545
4595
|
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(resultSourceKey, source);
|
|
4546
|
-
|
|
4547
|
-
setItemsTotal(Number((res === null || res === void 0 ? void 0 : res.total) || (res === null || res === void 0 ? void 0 : res.totalCount) || source.length));
|
|
4596
|
+
setSelectDataSource(source, Number((res === null || res === void 0 ? void 0 : res.total) || (res === null || res === void 0 ? void 0 : res.totalCount) || source.length));
|
|
4548
4597
|
} else {
|
|
4549
4598
|
setTableData(source);
|
|
4550
4599
|
setTablePagination(_objectSpread2(_objectSpread2({}, tablePagination), {}, {
|
|
@@ -4601,6 +4650,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4601
4650
|
if (init) {
|
|
4602
4651
|
run('init');
|
|
4603
4652
|
}
|
|
4653
|
+
// 编辑/详情页面回显
|
|
4654
|
+
if (!init && !!value && ['edit', 'view'].includes(ctx === null || ctx === void 0 ? void 0 : ctx.mode)) {
|
|
4655
|
+
run('init');
|
|
4656
|
+
}
|
|
4604
4657
|
}, []);
|
|
4605
4658
|
useEffect(function () {
|
|
4606
4659
|
if (value) {
|
|
@@ -4612,14 +4665,12 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4612
4665
|
}, [resultSourceKey]);
|
|
4613
4666
|
useEffect(function () {
|
|
4614
4667
|
if (init) {
|
|
4615
|
-
|
|
4616
|
-
setItemsTotal(0);
|
|
4668
|
+
clearSelectDataSource();
|
|
4617
4669
|
run('init');
|
|
4618
4670
|
}
|
|
4619
4671
|
}, [selectBusinessType]);
|
|
4620
4672
|
// 处理键盘事件
|
|
4621
4673
|
var handleKeyPress = function handleKeyPress(event) {
|
|
4622
|
-
console.log(event, '----event');
|
|
4623
4674
|
if ((event.metaKey || event.ctrlKey) && (event.key === 'U' || event.keyCode == 85)) {
|
|
4624
4675
|
// ctrl + U 键 重置
|
|
4625
4676
|
onResetTable();
|
|
@@ -4643,8 +4694,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4643
4694
|
};
|
|
4644
4695
|
}, [isModalVisible]);
|
|
4645
4696
|
var showModal = function showModal() {
|
|
4646
|
-
|
|
4647
|
-
|
|
4697
|
+
if (sDisabled) return;
|
|
4698
|
+
setSelectOpen(false);
|
|
4699
|
+
setSearchValue('');
|
|
4700
|
+
setModalSearched(false);
|
|
4648
4701
|
setIsModalVisible(true);
|
|
4649
4702
|
// 回显
|
|
4650
4703
|
if (value) {
|
|
@@ -4687,7 +4740,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4687
4740
|
// 解决选择最后1页的sku,返回后,不显示名称问题
|
|
4688
4741
|
var source = _.uniqBy(items.concat(selectedValue), 'value');
|
|
4689
4742
|
ctx === null || ctx === void 0 ? void 0 : (_ctx$form2 = ctx.form) === null || _ctx$form2 === void 0 ? void 0 : _ctx$form2.setFieldSource(resultSourceKey, source);
|
|
4690
|
-
|
|
4743
|
+
setSelectDataSource(source, source === null || source === void 0 ? void 0 : source.length);
|
|
4691
4744
|
formaData(selectedValue, source);
|
|
4692
4745
|
} else {
|
|
4693
4746
|
var formatResult = selectMode ? [] : null;
|
|
@@ -4755,25 +4808,14 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4755
4808
|
var handleCancel = function handleCancel() {
|
|
4756
4809
|
clearModalTable();
|
|
4757
4810
|
setIsModalVisible(false);
|
|
4758
|
-
if (selectMode) {
|
|
4759
|
-
run();
|
|
4760
|
-
}
|
|
4761
4811
|
};
|
|
4762
4812
|
var refreshItems = function refreshItems() {
|
|
4763
4813
|
// 查看是否存在关联值 如果有关联值 就查询 没有就不能查询
|
|
4764
4814
|
if (fieldValToParam && ctx && fixedparamsDisabled) {
|
|
4765
|
-
|
|
4766
|
-
fieldValToParam.forEach(function (item, index) {
|
|
4767
|
-
var fixedParamVal = ctx.form.getFieldValue(fieldValToParam[index]);
|
|
4768
|
-
formValueList.push(fixedParamVal);
|
|
4769
|
-
});
|
|
4770
|
-
if (formValueList.filter(function (item) {
|
|
4771
|
-
return item;
|
|
4772
|
-
}).length > 0) {
|
|
4815
|
+
if (!!isHaveDValue()) {
|
|
4773
4816
|
run();
|
|
4774
4817
|
} else {
|
|
4775
|
-
|
|
4776
|
-
setItemsTotal(0);
|
|
4818
|
+
clearSelectDataSource();
|
|
4777
4819
|
}
|
|
4778
4820
|
} else {
|
|
4779
4821
|
run();
|
|
@@ -4781,18 +4823,17 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4781
4823
|
};
|
|
4782
4824
|
var onSearchChange = function onSearchChange(v) {
|
|
4783
4825
|
setSearchValue(v);
|
|
4784
|
-
if ((v === null || v === void 0 ? void 0 : v.length) <
|
|
4826
|
+
if (!!searchStartLength && (v === null || v === void 0 ? void 0 : v.length) < searchStartLength) return;
|
|
4785
4827
|
refreshItems();
|
|
4786
4828
|
};
|
|
4787
4829
|
var onSearchTable = function onSearchTable() {
|
|
4788
4830
|
var params = form.getFieldsValue();
|
|
4831
|
+
// const isHaveParams = params && Object.keys(params).filter(item => params[item]).length > 0;
|
|
4832
|
+
setModalSearched(true);
|
|
4789
4833
|
setTableFormParams(params);
|
|
4790
4834
|
getData(_objectSpread2(_objectSpread2({}, params), {}, {
|
|
4791
4835
|
pageSize: tableInitPageSize
|
|
4792
4836
|
}), 2);
|
|
4793
|
-
if (selectMode) {
|
|
4794
|
-
getData(params);
|
|
4795
|
-
}
|
|
4796
4837
|
};
|
|
4797
4838
|
var onResetTable = function onResetTable() {
|
|
4798
4839
|
form.resetFields();
|
|
@@ -4875,12 +4916,23 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4875
4916
|
},
|
|
4876
4917
|
getCheckboxProps: (selectProps === null || selectProps === void 0 ? void 0 : selectProps.getCheckboxProps) ? selectProps === null || selectProps === void 0 ? void 0 : selectProps.getCheckboxProps : function () {
|
|
4877
4918
|
return {
|
|
4878
|
-
disabled:
|
|
4919
|
+
disabled: disabled || !items.length && !tableData.length
|
|
4879
4920
|
};
|
|
4880
4921
|
}
|
|
4881
4922
|
};
|
|
4882
|
-
var
|
|
4883
|
-
if (
|
|
4923
|
+
var onRowClickSelect = function onRowClickSelect(e, record, type) {
|
|
4924
|
+
if (selectMode && !(disabled || !items.length && !tableData.length)) {
|
|
4925
|
+
var oldSelect = selectedRows;
|
|
4926
|
+
var newSelect = [JSON.parse(JSON.stringify(record))];
|
|
4927
|
+
var srs = getRealStr(oldSelect, newSelect, record);
|
|
4928
|
+
var sks = srs.map(function (i) {
|
|
4929
|
+
return i.value;
|
|
4930
|
+
});
|
|
4931
|
+
onChangeSelectedKeys(sks, srs);
|
|
4932
|
+
}
|
|
4933
|
+
};
|
|
4934
|
+
var onDoubleClickSelect = function onDoubleClickSelect(e, record, type) {
|
|
4935
|
+
if (!selectMode && !(disabled || !items.length && !tableData.length)) {
|
|
4884
4936
|
var srs = [JSON.parse(JSON.stringify(record))];
|
|
4885
4937
|
var sks = srs.map(function (i) {
|
|
4886
4938
|
return i.value;
|
|
@@ -4926,7 +4978,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4926
4978
|
style: {
|
|
4927
4979
|
width: '100%'
|
|
4928
4980
|
},
|
|
4929
|
-
placeholder: "\u8BF7\u9009\u62E9"
|
|
4981
|
+
placeholder: "\u8BF7\u9009\u62E9",
|
|
4982
|
+
onDeselect: function onDeselect(v) {
|
|
4983
|
+
return onSearchTable();
|
|
4984
|
+
}
|
|
4930
4985
|
}, i === null || i === void 0 ? void 0 : (_i$field2 = i.field) === null || _i$field2 === void 0 ? void 0 : _i$field2.props), {}, {
|
|
4931
4986
|
disabled: setDisabled(i.name)
|
|
4932
4987
|
}), (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) {
|
|
@@ -5015,9 +5070,11 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5015
5070
|
// bsTableCode={bsTableCode}
|
|
5016
5071
|
// />
|
|
5017
5072
|
var renderShowTable = function renderShowTable(tableList, type) {
|
|
5073
|
+
var tableBoxHeighth = getTableHeigth(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm);
|
|
5074
|
+
var oSY = "calc(100vh - 391px - 82px)"; // 分页 24+16*2+10 「高 + margin * 2 + paddingBottom 10 」
|
|
5018
5075
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
5019
5076
|
style: {
|
|
5020
|
-
height:
|
|
5077
|
+
height: "calc(100vh - 391px)"
|
|
5021
5078
|
}
|
|
5022
5079
|
}, /*#__PURE__*/React$1.createElement(Table, _objectSpread2(_objectSpread2({
|
|
5023
5080
|
bordered: true,
|
|
@@ -5026,19 +5083,28 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5026
5083
|
columns: tableShowColumns,
|
|
5027
5084
|
dataSource: tableList
|
|
5028
5085
|
}, type == 'noPage' ? {
|
|
5029
|
-
pagination: initPagination
|
|
5086
|
+
pagination: initPagination,
|
|
5087
|
+
locale: {
|
|
5088
|
+
emptyText: '暂无已选结果'
|
|
5089
|
+
}
|
|
5030
5090
|
} : {
|
|
5031
5091
|
pagination: tablePagination,
|
|
5032
5092
|
onChange: handleTableChange,
|
|
5033
|
-
loading: fetching
|
|
5093
|
+
loading: fetching,
|
|
5094
|
+
locale: {
|
|
5095
|
+
emptyText: modalSearched ? '无匹配结果,请更换其他内容再试' : '请输入搜索条件'
|
|
5096
|
+
}
|
|
5034
5097
|
}), {}, {
|
|
5035
5098
|
rowKey: mappingValueField,
|
|
5036
5099
|
scroll: {
|
|
5037
5100
|
x: modalTableProps.overScrollX || 'max-content',
|
|
5038
|
-
y: modalTableProps.overScrollY ||
|
|
5101
|
+
y: modalTableProps.overScrollY || oSY
|
|
5039
5102
|
},
|
|
5040
5103
|
onRow: function onRow(record) {
|
|
5041
5104
|
return {
|
|
5105
|
+
onClick: function onClick(event) {
|
|
5106
|
+
return onRowClickSelect(event, record);
|
|
5107
|
+
},
|
|
5042
5108
|
onDoubleClick: function onDoubleClick(event) {
|
|
5043
5109
|
return onDoubleClickSelect(event, record);
|
|
5044
5110
|
}
|
|
@@ -5061,13 +5127,40 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5061
5127
|
});
|
|
5062
5128
|
})) || [], 'noPage')
|
|
5063
5129
|
}];
|
|
5130
|
+
var resetSelectDataSource = function resetSelectDataSource() {
|
|
5131
|
+
setSearchValue('');
|
|
5132
|
+
// 有关联值 不需要清空下拉框数据 也不需要重新去请求了
|
|
5133
|
+
if (isHaveDependency) return;
|
|
5134
|
+
clearSelectDataSource();
|
|
5135
|
+
init && run('init');
|
|
5136
|
+
};
|
|
5064
5137
|
var onClear = function onClear() {
|
|
5065
5138
|
formaData([], items);
|
|
5139
|
+
resetSelectDataSource();
|
|
5140
|
+
};
|
|
5141
|
+
var onDeselect = function onDeselect() {
|
|
5142
|
+
var oldSelect = (value === null || value === void 0 ? void 0 : value.map(function (s) {
|
|
5143
|
+
return {
|
|
5144
|
+
value: (s === null || s === void 0 ? void 0 : s.value) || s
|
|
5145
|
+
};
|
|
5146
|
+
})) || [];
|
|
5147
|
+
var deRecord = arguments.length <= 1 ? undefined : arguments[1];
|
|
5148
|
+
var srs = oldSelect.filter(function (s) {
|
|
5149
|
+
return s.value != (deRecord === null || deRecord === void 0 ? void 0 : deRecord.value);
|
|
5150
|
+
});
|
|
5151
|
+
onSelectClick(srs, items, false);
|
|
5152
|
+
};
|
|
5153
|
+
var onSelectClick = function onSelectClick(srs, ds) {
|
|
5154
|
+
var nr = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
5155
|
+
formaData(srs, ds);
|
|
5156
|
+
nr && setSelectOpen(false);
|
|
5066
5157
|
};
|
|
5067
5158
|
var onDropdownVisibleChange = function onDropdownVisibleChange(visible) {
|
|
5068
5159
|
setSelectOpen(visible);
|
|
5069
|
-
//
|
|
5070
|
-
|
|
5160
|
+
// 关闭下拉框 如果首次本身就不展示数据的 没有选中数据-需要清空查询数据源; 首次展示的默认展示
|
|
5161
|
+
if (!visible && !(value === null || value === void 0 ? void 0 : value.length)) {
|
|
5162
|
+
resetSelectDataSource();
|
|
5163
|
+
}
|
|
5071
5164
|
};
|
|
5072
5165
|
var renderTable = function renderTable(dataSource) {
|
|
5073
5166
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -5078,12 +5171,45 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5078
5171
|
}, selectMode ? {
|
|
5079
5172
|
rowSelection: {
|
|
5080
5173
|
type: 'checkbox',
|
|
5081
|
-
|
|
5174
|
+
columnWidth: '24px',
|
|
5175
|
+
selectedRowKeys: labelInValue ? value === null || value === void 0 ? void 0 : value.map(function (s) {
|
|
5082
5176
|
return (s === null || s === void 0 ? void 0 : s.value) || s;
|
|
5083
5177
|
}) : value,
|
|
5178
|
+
preserveSelectedRowKeys: true,
|
|
5084
5179
|
onChange: function onChange(sks, srs) {
|
|
5085
|
-
|
|
5180
|
+
var oldSelect = (value === null || value === void 0 ? void 0 : value.map(function (s) {
|
|
5181
|
+
return {
|
|
5182
|
+
value: (s === null || s === void 0 ? void 0 : s.value) || s
|
|
5183
|
+
};
|
|
5184
|
+
})) || [];
|
|
5185
|
+
var tmpSelectedRows = oldSelect.concat(srs).filter(function (item) {
|
|
5186
|
+
return item != undefined;
|
|
5187
|
+
});
|
|
5188
|
+
var realSrs = sks.map(function (key) {
|
|
5189
|
+
return tmpSelectedRows.filter(function (item) {
|
|
5190
|
+
return item.value == key;
|
|
5191
|
+
})[0];
|
|
5192
|
+
}).filter(function (item) {
|
|
5193
|
+
return item != undefined;
|
|
5194
|
+
});
|
|
5195
|
+
onSelectClick(realSrs, dataSource, false);
|
|
5086
5196
|
}
|
|
5197
|
+
},
|
|
5198
|
+
onRow: function onRow(record, rowKey) {
|
|
5199
|
+
return {
|
|
5200
|
+
onClick: function onClick(event) {
|
|
5201
|
+
event.stopPropagation();
|
|
5202
|
+
event.nativeEvent.stopImmediatePropagation();
|
|
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 newSelect = [JSON.parse(JSON.stringify(record))];
|
|
5209
|
+
var srs = getRealStr(oldSelect, newSelect, record);
|
|
5210
|
+
onSelectClick(srs, dataSource, false);
|
|
5211
|
+
} // 点击行
|
|
5212
|
+
};
|
|
5087
5213
|
}
|
|
5088
5214
|
} : {
|
|
5089
5215
|
rowSelection: {
|
|
@@ -5093,11 +5219,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5093
5219
|
},
|
|
5094
5220
|
onRow: function onRow(record, rowKey) {
|
|
5095
5221
|
return {
|
|
5096
|
-
|
|
5222
|
+
onClick: function onClick(event) {
|
|
5097
5223
|
var srs = [JSON.parse(JSON.stringify(record))];
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
}
|
|
5224
|
+
onSelectClick(srs, dataSource);
|
|
5225
|
+
} // 点击行
|
|
5101
5226
|
};
|
|
5102
5227
|
}
|
|
5103
5228
|
}), {}, {
|
|
@@ -5172,6 +5297,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5172
5297
|
return getSelectValueText(value) || kongValue;
|
|
5173
5298
|
};
|
|
5174
5299
|
var getShowStr = function getShowStr() {
|
|
5300
|
+
// 优先使用业务使用传入的展示
|
|
5301
|
+
if (viewShowValueStr) return viewShowValueStr;
|
|
5175
5302
|
var kongValue = '无';
|
|
5176
5303
|
// 先判断labelInValue与否,labelInValue可以直接去value中获取字段名称,否则去下拉框数据里面去拿;
|
|
5177
5304
|
// 再判断是单选还是多选,数据类型不同取值方式也不同
|
|
@@ -5180,16 +5307,16 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5180
5307
|
}
|
|
5181
5308
|
return getShowValueStr(kongValue);
|
|
5182
5309
|
};
|
|
5183
|
-
var isShouldShowStr = props.disabled && ctx;
|
|
5310
|
+
var isShouldShowStr = props.disabled && ctx || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) == 'view';
|
|
5184
5311
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
5185
5312
|
className: 'search_select'
|
|
5186
|
-
}, fieldComponent ? (/*#__PURE__*/React$1.createElement("div", {
|
|
5313
|
+
}, fieldComponent ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
5187
5314
|
onClick: function onClick() {
|
|
5188
5315
|
var _fieldComponent$props, _fieldComponent$props2;
|
|
5189
5316
|
(_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);
|
|
5190
5317
|
showModal();
|
|
5191
5318
|
}
|
|
5192
|
-
}, fieldComponent)) : isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
5319
|
+
}, fieldComponent)) : isShouldShowStr ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
5193
5320
|
title: getShowStr(),
|
|
5194
5321
|
style: {
|
|
5195
5322
|
overflow: 'hidden',
|
|
@@ -5205,7 +5332,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5205
5332
|
value: value,
|
|
5206
5333
|
onChange: onchange,
|
|
5207
5334
|
onClear: onClear,
|
|
5208
|
-
|
|
5335
|
+
onDeselect: onDeselect,
|
|
5336
|
+
disabled: sDisabled,
|
|
5209
5337
|
dropdownStyle: {
|
|
5210
5338
|
borderRadius: '2px',
|
|
5211
5339
|
padding: '10px 2px'
|
|
@@ -5215,14 +5343,14 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5215
5343
|
dropdownRender: function dropdownRender(menu) {
|
|
5216
5344
|
return (items === null || items === void 0 ? void 0 : items.length) ? renderTable(items) : menu;
|
|
5217
5345
|
},
|
|
5218
|
-
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
5346
|
+
notFoundContent: fetching ? ( /*#__PURE__*/React$1.createElement(Spin, {
|
|
5219
5347
|
size: "small",
|
|
5220
5348
|
className: 'searchSelectSpin'
|
|
5221
|
-
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
5349
|
+
})) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
5222
5350
|
style: {
|
|
5223
5351
|
textAlign: 'center'
|
|
5224
5352
|
}
|
|
5225
|
-
}, /*#__PURE__*/React$1.createElement("div", null, searchValue ? '无匹配结果,请更换其他内容再试' : '
|
|
5353
|
+
}, /*#__PURE__*/React$1.createElement("div", null, searchValue || init || isHaveDependency ? '无匹配结果,请更换其他内容再试' : "\u8BF7\u5F55\u5165".concat(searchStartLength ? '4位数以上' : '', "\u5B57\u7B26\u8FDB\u884C\u6A21\u7CCA\u67E5\u8BE2")))),
|
|
5226
5354
|
onPopupScroll: SelectScroll,
|
|
5227
5355
|
style: {
|
|
5228
5356
|
width: 'calc(100%)'
|
|
@@ -5234,7 +5362,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5234
5362
|
}
|
|
5235
5363
|
}, needModalTable ? {
|
|
5236
5364
|
suffixIcon: /*#__PURE__*/React$1.createElement("div", {
|
|
5237
|
-
className: "search_select_expand_button",
|
|
5365
|
+
className: "search_select_expand_button ".concat(sDisabled ? 'search_select_expand_button_disabled' : ''),
|
|
5238
5366
|
onClick: showModal
|
|
5239
5367
|
}, /*#__PURE__*/React$1.createElement(SearchOutlined, null))
|
|
5240
5368
|
} : {}), currentSelectProps), {}, {
|
|
@@ -5249,7 +5377,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5249
5377
|
text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
|
|
5250
5378
|
filterTxt: searchValue
|
|
5251
5379
|
}));
|
|
5252
|
-
}))), needModalTable && isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
5380
|
+
}))), needModalTable && isModalVisible && ( /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
5381
|
+
maskClosable: false,
|
|
5253
5382
|
destroyOnClose: true,
|
|
5254
5383
|
width: "80%",
|
|
5255
5384
|
title: modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.modalTableTitle,
|
|
@@ -5265,7 +5394,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5265
5394
|
type: "primary",
|
|
5266
5395
|
loading: confirmLoading,
|
|
5267
5396
|
onClick: handleOk,
|
|
5268
|
-
disabled:
|
|
5397
|
+
disabled: sDisabled
|
|
5269
5398
|
}, "\u786E\u5B9A")] : null,
|
|
5270
5399
|
wrapClassName: 'search_select_modal_wrapper'
|
|
5271
5400
|
}, (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.modalProps) || {}), /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -5340,7 +5469,7 @@ var fixedRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
5340
5469
|
|
|
5341
5470
|
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";
|
|
5342
5471
|
|
|
5343
|
-
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:
|
|
5472
|
+
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";
|
|
5344
5473
|
styleInject(css_248z$7);
|
|
5345
5474
|
|
|
5346
5475
|
var _excluded$3 = ["className", "style"];
|
|
@@ -5810,7 +5939,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
5810
5939
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
5811
5940
|
className: 'sort_table_wrapper'
|
|
5812
5941
|
}, /*#__PURE__*/React$1.createElement(Modal, {
|
|
5813
|
-
title: "\
|
|
5942
|
+
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
5814
5943
|
wrapClassName: 'sort_table_wrapper',
|
|
5815
5944
|
width: 820,
|
|
5816
5945
|
visible: visible,
|
|
@@ -5833,19 +5962,19 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
5833
5962
|
className: 'sort_table_column_wrapper'
|
|
5834
5963
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
5835
5964
|
className: 'sort_table_column_count'
|
|
5836
|
-
},
|
|
5965
|
+
}, /*#__PURE__*/React$1.createElement("span", null, "\u52FE\u9009\u4F60\u60F3\u4F7F\u7528\u7684\u7B5B\u9009\u6761\u4EF6")), /*#__PURE__*/React$1.createElement("div", {
|
|
5837
5966
|
className: 'sort_table_column'
|
|
5838
5967
|
}, /*#__PURE__*/React$1.createElement(Input, {
|
|
5839
5968
|
prefix: /*#__PURE__*/React$1.createElement(SearchOutlined, {
|
|
5840
5969
|
className: "site-form-item-icon"
|
|
5841
5970
|
}),
|
|
5842
|
-
placeholder: "\u641C\u7D22",
|
|
5971
|
+
placeholder: "\u8F93\u5165\u7B5B\u9009\u6761\u4EF6\u540D\u79F0\u641C\u7D22",
|
|
5843
5972
|
allowClear: true,
|
|
5844
5973
|
onChange: this.onSearch,
|
|
5845
5974
|
style: {
|
|
5846
|
-
width:
|
|
5975
|
+
width: 525
|
|
5847
5976
|
}
|
|
5848
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
5977
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
5849
5978
|
checked: !dataSource.some(function (item) {
|
|
5850
5979
|
if (item.hidden) return true;
|
|
5851
5980
|
return false;
|
|
@@ -5883,13 +6012,13 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
5883
6012
|
_this2.onChange(e, item.title);
|
|
5884
6013
|
}
|
|
5885
6014
|
}, item.title);
|
|
5886
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
6015
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
5887
6016
|
style: {
|
|
5888
6017
|
width: '144px'
|
|
5889
6018
|
}
|
|
5890
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
6019
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
5891
6020
|
className: 'sort_table_column_all_empty'
|
|
5892
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
6021
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
5893
6022
|
className: 'sort_table_column_special'
|
|
5894
6023
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
5895
6024
|
className: 'sort_table_column_all'
|
|
@@ -5911,7 +6040,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
5911
6040
|
className: 'sort_table_content_wrapper'
|
|
5912
6041
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
5913
6042
|
className: 'sort_table_content_count'
|
|
5914
|
-
},
|
|
6043
|
+
}, /*#__PURE__*/React$1.createElement("span", null, "\u5DF2\u9009\u62E9\u7684\u641C\u7D22\u6761\u4EF6\u6392\u5E8F")), /*#__PURE__*/React$1.createElement("div", {
|
|
5915
6044
|
className: 'sort_table_content'
|
|
5916
6045
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
5917
6046
|
style: {
|
|
@@ -6078,7 +6207,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
|
|
|
6078
6207
|
});
|
|
6079
6208
|
};
|
|
6080
6209
|
// 格式化树选择器数据源
|
|
6081
|
-
var
|
|
6210
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
6082
6211
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
6083
6212
|
return {
|
|
6084
6213
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -6088,7 +6217,7 @@ var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
|
6088
6217
|
isLeaf: !haveChildren,
|
|
6089
6218
|
disabled: haveChildren,
|
|
6090
6219
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
6091
|
-
return
|
|
6220
|
+
return mapSearchTree(i, resKeyValue);
|
|
6092
6221
|
}) : []
|
|
6093
6222
|
};
|
|
6094
6223
|
};
|
|
@@ -6097,7 +6226,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
6097
6226
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
6098
6227
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
6099
6228
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
6100
|
-
return
|
|
6229
|
+
return mapSearchTree(ites, resKeyValue);
|
|
6101
6230
|
}) || [];
|
|
6102
6231
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
6103
6232
|
};
|
|
@@ -6268,7 +6397,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
6268
6397
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
6269
6398
|
// FIXME: 特殊业务逻辑
|
|
6270
6399
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
6271
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
6400
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
6272
6401
|
var result;
|
|
6273
6402
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
6274
6403
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -6521,7 +6650,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
6521
6650
|
return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
6522
6651
|
value: text || null,
|
|
6523
6652
|
onChange: function () {
|
|
6524
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
6653
|
+
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
6525
6654
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
6526
6655
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
6527
6656
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -7129,10 +7258,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7129
7258
|
var newColumns = arr.map(function (col) {
|
|
7130
7259
|
return _objectSpread2({}, col);
|
|
7131
7260
|
});
|
|
7132
|
-
var
|
|
7261
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
7133
7262
|
var i = indexArr.shift();
|
|
7134
7263
|
if (indexArr.length > 0) {
|
|
7135
|
-
|
|
7264
|
+
handleIndex(arr[i].children, indexArr);
|
|
7136
7265
|
} else {
|
|
7137
7266
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
7138
7267
|
width: size.width
|
|
@@ -7140,7 +7269,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7140
7269
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
7141
7270
|
}
|
|
7142
7271
|
};
|
|
7143
|
-
|
|
7272
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
7144
7273
|
callback(newColumns);
|
|
7145
7274
|
};
|
|
7146
7275
|
};
|
|
@@ -7150,13 +7279,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
7150
7279
|
var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
|
|
7151
7280
|
setShowToChooseColumns(_toConsumableArray(newColumns));
|
|
7152
7281
|
};
|
|
7153
|
-
var
|
|
7282
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
7154
7283
|
arr.forEach(function (item, index) {
|
|
7155
7284
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
7156
7285
|
return i || i === 0;
|
|
7157
7286
|
});
|
|
7158
7287
|
if (noEmptyArray$1(item.children)) {
|
|
7159
|
-
|
|
7288
|
+
handleColumns(item.children, indexArrInside);
|
|
7160
7289
|
} else {
|
|
7161
7290
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
7162
7291
|
item.onHeaderCell = function (column) {
|
|
@@ -7172,14 +7301,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
7172
7301
|
handleAntdColumnsSpecialParams(item);
|
|
7173
7302
|
return _objectSpread2({}, item);
|
|
7174
7303
|
});
|
|
7175
|
-
|
|
7304
|
+
handleColumns(showToChooseCol, [], function (res) {
|
|
7176
7305
|
return setShowToChooseColumnsCallback(res);
|
|
7177
7306
|
});
|
|
7178
7307
|
var showSelectedCol = showColumns.map(function (item) {
|
|
7179
7308
|
handleAntdColumnsSpecialParams(item);
|
|
7180
7309
|
return _objectSpread2({}, item);
|
|
7181
7310
|
});
|
|
7182
|
-
|
|
7311
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
7183
7312
|
return setShowColumnsCallback(res);
|
|
7184
7313
|
});
|
|
7185
7314
|
var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
|
|
@@ -7190,7 +7319,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7190
7319
|
id: "add_select_div_".concat(uniqueValue)
|
|
7191
7320
|
}, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
7192
7321
|
onClick: handleShowModal
|
|
7193
|
-
}, realButtonProps), buttonText)), isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
7322
|
+
}, realButtonProps), buttonText)), isModalVisible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
7194
7323
|
width: '1200px',
|
|
7195
7324
|
style: {
|
|
7196
7325
|
top: 20
|
|
@@ -8104,7 +8233,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8104
8233
|
});
|
|
8105
8234
|
};
|
|
8106
8235
|
var handleSubmit = /*#__PURE__*/function () {
|
|
8107
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
8236
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
8108
8237
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
8109
8238
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
8110
8239
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -8187,10 +8316,10 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8187
8316
|
var newColumns = arr.map(function (col) {
|
|
8188
8317
|
return _objectSpread2({}, col);
|
|
8189
8318
|
});
|
|
8190
|
-
var
|
|
8319
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
8191
8320
|
var i = indexArr.shift();
|
|
8192
8321
|
if (indexArr.length > 0) {
|
|
8193
|
-
|
|
8322
|
+
handleIndex(arr[i].children, indexArr);
|
|
8194
8323
|
} else {
|
|
8195
8324
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
8196
8325
|
width: size.width
|
|
@@ -8198,17 +8327,17 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8198
8327
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
8199
8328
|
}
|
|
8200
8329
|
};
|
|
8201
|
-
|
|
8330
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
8202
8331
|
callback(newColumns);
|
|
8203
8332
|
};
|
|
8204
8333
|
};
|
|
8205
|
-
var
|
|
8334
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
8206
8335
|
arr.forEach(function (item, index) {
|
|
8207
8336
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
8208
8337
|
return i || i === 0;
|
|
8209
8338
|
});
|
|
8210
8339
|
if (noEmptyArray$1(item.children)) {
|
|
8211
|
-
|
|
8340
|
+
handleColumns(item.children, indexArrInside);
|
|
8212
8341
|
} else {
|
|
8213
8342
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
8214
8343
|
item.onHeaderCell = function (column) {
|
|
@@ -8224,7 +8353,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8224
8353
|
handleAntdColumnsSpecialParams(item);
|
|
8225
8354
|
return _objectSpread2({}, item);
|
|
8226
8355
|
});
|
|
8227
|
-
|
|
8356
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
8228
8357
|
return setShowColumnsCallback(res);
|
|
8229
8358
|
});
|
|
8230
8359
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -8509,9 +8638,9 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8509
8638
|
var requestConfig = _objectSpread2({
|
|
8510
8639
|
url: "".concat(prefixUrl.selectPrefix, "/supplier"),
|
|
8511
8640
|
filter: 'qp-name,code-orGroup,like',
|
|
8512
|
-
otherParams: {
|
|
8641
|
+
otherParams: _objectSpread2({
|
|
8513
8642
|
sorter: 'desc-id'
|
|
8514
|
-
}
|
|
8643
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {})
|
|
8515
8644
|
}, requestConfigProp);
|
|
8516
8645
|
var selectProps = selectConfigProps;
|
|
8517
8646
|
/*
|
|
@@ -8538,7 +8667,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8538
8667
|
});
|
|
8539
8668
|
};
|
|
8540
8669
|
// 格式化树选择器数据源
|
|
8541
|
-
var
|
|
8670
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
8542
8671
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
8543
8672
|
return {
|
|
8544
8673
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -8548,7 +8677,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8548
8677
|
isLeaf: !haveChildren,
|
|
8549
8678
|
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
8550
8679
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
8551
|
-
return
|
|
8680
|
+
return mapSearchTree(i, resKeyValue, disabledJudge);
|
|
8552
8681
|
}) : []
|
|
8553
8682
|
};
|
|
8554
8683
|
};
|
|
@@ -8562,7 +8691,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8562
8691
|
disabledJudge = false;
|
|
8563
8692
|
}
|
|
8564
8693
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
8565
|
-
return
|
|
8694
|
+
return mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
8566
8695
|
}) || [];
|
|
8567
8696
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
8568
8697
|
};
|
|
@@ -8802,12 +8931,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8802
8931
|
requestConfig = _objectSpread2({
|
|
8803
8932
|
url: "".concat(prefixUrl.selectPrefix, "/sku/doPageBySelect/v3"),
|
|
8804
8933
|
filter: 'skuCodeAndSkuName',
|
|
8934
|
+
searchStartLength: 4,
|
|
8805
8935
|
mappingTextField: 'name',
|
|
8806
8936
|
mappingValueField: 'skuCode',
|
|
8807
8937
|
mappingTextShowTextField: ['name', 'propertyNameAndValue'],
|
|
8808
|
-
otherParams: {
|
|
8809
|
-
|
|
8810
|
-
},
|
|
8938
|
+
otherParams: _objectSpread2({
|
|
8939
|
+
'ownOrgSign': getCurrentTargetBgId()
|
|
8940
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
8811
8941
|
sourceName: 'skuCode'
|
|
8812
8942
|
}, requestConfigProp);
|
|
8813
8943
|
selectProps = _objectSpread2({
|
|
@@ -8898,7 +9028,6 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8898
9028
|
modalTableTitle: '选择SKU',
|
|
8899
9029
|
tableSearchForm: tableSearchForm,
|
|
8900
9030
|
isHorizontally: true,
|
|
8901
|
-
modalRadioNeedFooter: true,
|
|
8902
9031
|
tableColumns: [{
|
|
8903
9032
|
title: '序号',
|
|
8904
9033
|
dataIndex: 'keyIndex',
|
|
@@ -8969,10 +9098,10 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8969
9098
|
filter: 'qp-itemCode,name-orGroup,like',
|
|
8970
9099
|
mappingTextField: 'name',
|
|
8971
9100
|
mappingValueField: 'itemCode',
|
|
8972
|
-
otherParams: {
|
|
9101
|
+
otherParams: _objectSpread2({
|
|
8973
9102
|
'qp-approveStatus-eq': 1,
|
|
8974
9103
|
sorter: 'desc-id'
|
|
8975
|
-
},
|
|
9104
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
8976
9105
|
sourceName: 'itemCode'
|
|
8977
9106
|
}, requestConfigProp);
|
|
8978
9107
|
tableSearchForm = [{
|
|
@@ -9230,9 +9359,9 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9230
9359
|
filter: 'qp-code,name-orGroup,like',
|
|
9231
9360
|
mappingTextField: 'name',
|
|
9232
9361
|
mappingValueField: 'code',
|
|
9233
|
-
otherParams: {
|
|
9234
|
-
'qp-skcStatus-eq': 1
|
|
9235
|
-
},
|
|
9362
|
+
otherParams: _objectSpread2({
|
|
9363
|
+
'qp-skcStatus-eq': 1
|
|
9364
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
9236
9365
|
sourceName: 'qp-skcCode-eq'
|
|
9237
9366
|
}, requestConfigProp);
|
|
9238
9367
|
Promise.all(fieldLoadSource).then(function (x) {
|
|
@@ -9294,9 +9423,9 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9294
9423
|
mappingTextField: 'value',
|
|
9295
9424
|
mappingTextShowKeyField: 'propertyValueCode',
|
|
9296
9425
|
mappingValueField: 'propertyValueCode',
|
|
9297
|
-
otherParams: {
|
|
9426
|
+
otherParams: _objectSpread2({
|
|
9298
9427
|
sorter: 'desc-id'
|
|
9299
|
-
},
|
|
9428
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
9300
9429
|
sourceName: 'qp-propertyValueCode-in'
|
|
9301
9430
|
}, requestConfigProp);
|
|
9302
9431
|
needModalTable = false;
|
|
@@ -9314,6 +9443,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9314
9443
|
}]
|
|
9315
9444
|
}, selectConfigProps);
|
|
9316
9445
|
requestConfig = _objectSpread2({
|
|
9446
|
+
init: true,
|
|
9317
9447
|
url: "".concat(prefixUrl.selectPrefix, "/physicalWarehouse"),
|
|
9318
9448
|
filter: 'qp-physicalWarehouseName,physicalWarehouseCode-orGroup,like',
|
|
9319
9449
|
mappingTextField: 'physicalWarehouseName',
|
|
@@ -9323,7 +9453,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9323
9453
|
'qp-isEnable-eq': 1
|
|
9324
9454
|
}), {}, {
|
|
9325
9455
|
sorter: 'desc-id'
|
|
9326
|
-
}),
|
|
9456
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
9327
9457
|
sourceName: 'warehouseIds'
|
|
9328
9458
|
}, requestConfigProp);
|
|
9329
9459
|
tableSearchForm = [{
|
|
@@ -9416,6 +9546,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9416
9546
|
}]
|
|
9417
9547
|
}, selectConfigProps);
|
|
9418
9548
|
requestConfig = _objectSpread2({
|
|
9549
|
+
init: true,
|
|
9419
9550
|
url: "".concat(prefixUrl.selectPrefix, "/realWarehouse"),
|
|
9420
9551
|
filter: 'qp-realWarehouseName,realWarehouseCode-orGroup,like',
|
|
9421
9552
|
mappingTextField: 'realWarehouseName',
|
|
@@ -9425,7 +9556,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9425
9556
|
'qp-isEnable-eq': 1
|
|
9426
9557
|
}), {}, {
|
|
9427
9558
|
sorter: 'desc-id'
|
|
9428
|
-
}),
|
|
9559
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
9429
9560
|
sourceName: 'warehouseIds'
|
|
9430
9561
|
}, requestConfigProp);
|
|
9431
9562
|
tableSearchForm = [{
|
|
@@ -9489,6 +9620,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9489
9620
|
}]
|
|
9490
9621
|
}, selectConfigProps);
|
|
9491
9622
|
requestConfig = _objectSpread2({
|
|
9623
|
+
init: true,
|
|
9492
9624
|
url: "".concat(prefixUrl.selectPrefix, "/ownerWarehouse"),
|
|
9493
9625
|
filter: 'qp-name,operationWarehouseCode-orGroup,like',
|
|
9494
9626
|
mappingTextField: 'name',
|
|
@@ -9498,7 +9630,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9498
9630
|
'qp-status-eq': 1
|
|
9499
9631
|
}), {}, {
|
|
9500
9632
|
sorter: 'desc-id'
|
|
9501
|
-
}),
|
|
9633
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
9502
9634
|
sourceName: 'qp-operationWarehouseCode-in'
|
|
9503
9635
|
}, requestConfigProp);
|
|
9504
9636
|
tableSearchForm = [{
|
|
@@ -9579,15 +9711,16 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9579
9711
|
}]
|
|
9580
9712
|
}, selectConfigProps);
|
|
9581
9713
|
requestConfig = _objectSpread2({
|
|
9714
|
+
init: true,
|
|
9582
9715
|
url: "".concat(prefixUrl.selectPrefix, "/virtualWarehouse"),
|
|
9583
9716
|
filter: 'qp-virtualWarehouseName,virtualWarehouseCode-orGroup,like',
|
|
9584
9717
|
mappingTextField: 'virtualWarehouseName',
|
|
9585
9718
|
mappingTextShowKeyField: 'virtualWarehouseCode',
|
|
9586
9719
|
mappingValueField: 'id',
|
|
9587
|
-
otherParams: {
|
|
9720
|
+
otherParams: _objectSpread2({
|
|
9588
9721
|
'qp-isEnable-eq': 1,
|
|
9589
9722
|
sorter: 'desc-id'
|
|
9590
|
-
},
|
|
9723
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
9591
9724
|
sourceName: 'warehouseIds'
|
|
9592
9725
|
}, requestConfigProp);
|
|
9593
9726
|
needModalTable = false;
|
|
@@ -9604,15 +9737,16 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9604
9737
|
}]
|
|
9605
9738
|
}, selectConfigProps);
|
|
9606
9739
|
requestConfig = _objectSpread2({
|
|
9740
|
+
init: true,
|
|
9607
9741
|
url: "".concat(prefixUrl.selectPrefix, "/channelWarehouse"),
|
|
9608
9742
|
filter: 'qp-channelWarehouseName,channelWarehouseCode-orGroup,like',
|
|
9609
9743
|
mappingTextField: 'channelWarehouseName',
|
|
9610
9744
|
mappingTextShowKeyField: 'channelWarehouseCode',
|
|
9611
9745
|
mappingValueField: 'id',
|
|
9612
|
-
otherParams: {
|
|
9746
|
+
otherParams: _objectSpread2({
|
|
9613
9747
|
'qp-isEnable-eq': 1,
|
|
9614
9748
|
sorter: 'desc-id'
|
|
9615
|
-
},
|
|
9749
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
9616
9750
|
sourceName: 'warehouseIds'
|
|
9617
9751
|
}, requestConfigProp);
|
|
9618
9752
|
needModalTable = false;
|
|
@@ -9630,14 +9764,15 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9630
9764
|
}]
|
|
9631
9765
|
}, selectConfigProps);
|
|
9632
9766
|
requestConfig = _objectSpread2({
|
|
9767
|
+
init: true,
|
|
9633
9768
|
url: "".concat(prefixUrl.selectPrefix, "/uc/customer/v2"),
|
|
9634
9769
|
filter: 'qp-name,code-orGroup,like',
|
|
9635
9770
|
mappingTextField: 'name',
|
|
9636
9771
|
mappingValueField: 'code',
|
|
9637
|
-
otherParams: {
|
|
9772
|
+
otherParams: _objectSpread2({
|
|
9638
9773
|
'qp-status-eq': 10,
|
|
9639
9774
|
sorter: 'desc-id'
|
|
9640
|
-
},
|
|
9775
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
9641
9776
|
sourceName: 'customCode'
|
|
9642
9777
|
}, requestConfigProp);
|
|
9643
9778
|
tableSearchForm = [{
|
|
@@ -9776,15 +9911,16 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9776
9911
|
}, selectConfigProps);
|
|
9777
9912
|
// 版本2
|
|
9778
9913
|
requestConfig = _objectSpread2({
|
|
9914
|
+
init: true,
|
|
9779
9915
|
url: "".concat(prefixUrl.selectPrefix, "/customer"),
|
|
9780
9916
|
filter: 'qp-name,code-orGroup,like',
|
|
9781
9917
|
mappingTextField: 'name',
|
|
9782
9918
|
mappingValueField: 'code',
|
|
9783
|
-
otherParams: {
|
|
9919
|
+
otherParams: _objectSpread2({
|
|
9784
9920
|
'qp-isMain-eq': 1,
|
|
9785
9921
|
'qp-status-eq': 1,
|
|
9786
9922
|
sorter: 'desc-id'
|
|
9787
|
-
},
|
|
9923
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
9788
9924
|
sourceName: 'customCode'
|
|
9789
9925
|
}, requestConfigProp);
|
|
9790
9926
|
tableSearchForm = [{
|
|
@@ -9877,13 +10013,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9877
10013
|
}]
|
|
9878
10014
|
}, selectConfigProps);
|
|
9879
10015
|
requestConfig = _objectSpread2({
|
|
10016
|
+
init: true,
|
|
9880
10017
|
url: "".concat(prefixUrl.selectPrefix, "/store"),
|
|
9881
10018
|
filter: 'qp-name,code-orGroup,like',
|
|
9882
10019
|
mappingTextField: 'name',
|
|
9883
10020
|
mappingValueField: 'code',
|
|
9884
|
-
otherParams: {
|
|
10021
|
+
otherParams: _objectSpread2({
|
|
9885
10022
|
sorter: 'desc-id'
|
|
9886
|
-
},
|
|
10023
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
9887
10024
|
sourceName: 'code'
|
|
9888
10025
|
}, requestConfigProp);
|
|
9889
10026
|
tableSearchForm = [{
|
|
@@ -10071,13 +10208,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10071
10208
|
}]
|
|
10072
10209
|
}, selectConfigProps);
|
|
10073
10210
|
requestConfig = _objectSpread2({
|
|
10211
|
+
init: true,
|
|
10074
10212
|
url: "".concat(prefixUrl.selectPrefix, "/store/page"),
|
|
10075
10213
|
filter: 'qp-name,code-orGroup,like',
|
|
10076
10214
|
mappingTextField: 'name',
|
|
10077
10215
|
mappingValueField: 'code',
|
|
10078
|
-
otherParams: {
|
|
10216
|
+
otherParams: _objectSpread2({
|
|
10079
10217
|
sorter: 'desc-id'
|
|
10080
|
-
},
|
|
10218
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
10081
10219
|
sourceName: 'code'
|
|
10082
10220
|
}, requestConfigProp);
|
|
10083
10221
|
tableSearchForm = [{
|
|
@@ -10182,9 +10320,9 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10182
10320
|
mappingTextField: 'name',
|
|
10183
10321
|
mappingTextShowKeyField: 'code',
|
|
10184
10322
|
mappingValueField: 'id',
|
|
10185
|
-
otherParams: {
|
|
10323
|
+
otherParams: _objectSpread2({
|
|
10186
10324
|
sorter: 'desc-id'
|
|
10187
|
-
},
|
|
10325
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
10188
10326
|
sourceName: 'accountingSubjectCode'
|
|
10189
10327
|
}, requestConfigProp);
|
|
10190
10328
|
needModalTable = false;
|
|
@@ -10207,9 +10345,9 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10207
10345
|
mappingTextField: 'name',
|
|
10208
10346
|
mappingTextShowKeyField: 'code',
|
|
10209
10347
|
mappingValueField: 'id',
|
|
10210
|
-
otherParams: {
|
|
10348
|
+
otherParams: _objectSpread2({
|
|
10211
10349
|
sorter: 'desc-id'
|
|
10212
|
-
},
|
|
10350
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
10213
10351
|
sourceName: 'inventoryOrgCode'
|
|
10214
10352
|
}, requestConfigProp);
|
|
10215
10353
|
needModalTable = false;
|
|
@@ -10232,9 +10370,9 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10232
10370
|
mappingTextField: 'name',
|
|
10233
10371
|
mappingTextShowKeyField: 'code',
|
|
10234
10372
|
mappingValueField: 'id',
|
|
10235
|
-
otherParams: {
|
|
10373
|
+
otherParams: _objectSpread2({
|
|
10236
10374
|
sorter: 'desc-id'
|
|
10237
|
-
},
|
|
10375
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
10238
10376
|
sourceName: 'corporationCompany'
|
|
10239
10377
|
}, requestConfigProp);
|
|
10240
10378
|
needModalTable = false;
|
|
@@ -10257,9 +10395,9 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10257
10395
|
mappingTextField: 'name',
|
|
10258
10396
|
mappingTextShowKeyField: 'socialCreditCode',
|
|
10259
10397
|
mappingValueField: 'socialCreditCode',
|
|
10260
|
-
otherParams: {
|
|
10398
|
+
otherParams: _objectSpread2({
|
|
10261
10399
|
sorter: 'desc-id'
|
|
10262
|
-
},
|
|
10400
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
10263
10401
|
sourceName: 'platCompany'
|
|
10264
10402
|
}, requestConfigProp);
|
|
10265
10403
|
needModalTable = false;
|
|
@@ -10282,11 +10420,11 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10282
10420
|
mappingTextField: 'name',
|
|
10283
10421
|
mappingTextShowKeyField: 'employeeNumber',
|
|
10284
10422
|
mappingValueField: 'employeeNumber',
|
|
10285
|
-
otherParams: {
|
|
10423
|
+
otherParams: _objectSpread2({
|
|
10286
10424
|
'qp-enable-eq': 10,
|
|
10287
10425
|
'qp-employmentType-eq': 20,
|
|
10288
10426
|
sorter: 'desc-id'
|
|
10289
|
-
},
|
|
10427
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
10290
10428
|
sourceName: 'employeeNumber'
|
|
10291
10429
|
}, requestConfigProp);
|
|
10292
10430
|
tableSearchForm = [{
|
|
@@ -10382,7 +10520,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10382
10520
|
'qp-employmentType-eq': 20
|
|
10383
10521
|
}), {}, {
|
|
10384
10522
|
sorter: 'desc-id'
|
|
10385
|
-
}),
|
|
10523
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
10386
10524
|
sourceName: 'employeeNumber'
|
|
10387
10525
|
}, requestConfigProp);
|
|
10388
10526
|
tableSearchForm = [{
|
|
@@ -10517,9 +10655,9 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10517
10655
|
mappingTextField: 'name',
|
|
10518
10656
|
mappingTextShowKeyField: 'code',
|
|
10519
10657
|
mappingValueField: 'code',
|
|
10520
|
-
otherParams: {
|
|
10658
|
+
otherParams: _objectSpread2({
|
|
10521
10659
|
sorter: 'desc-id'
|
|
10522
|
-
},
|
|
10660
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
10523
10661
|
sourceName: 'deliveryModeCode'
|
|
10524
10662
|
}, requestConfigProp);
|
|
10525
10663
|
tableSearchForm = [{
|
|
@@ -10653,9 +10791,9 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10653
10791
|
mappingTextField: 'name',
|
|
10654
10792
|
mappingTextShowKeyField: 'code',
|
|
10655
10793
|
mappingValueField: 'code',
|
|
10656
|
-
otherParams: {
|
|
10794
|
+
otherParams: _objectSpread2({
|
|
10657
10795
|
sorter: 'desc-id'
|
|
10658
|
-
},
|
|
10796
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
10659
10797
|
sourceName: 'ruleTemplateCode'
|
|
10660
10798
|
}, requestConfigProp);
|
|
10661
10799
|
tableSearchForm = [{
|
|
@@ -10724,10 +10862,10 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10724
10862
|
mappingTextField: 'name',
|
|
10725
10863
|
mappingTextShowKeyField: 'code',
|
|
10726
10864
|
mappingValueField: 'code',
|
|
10727
|
-
otherParams: {
|
|
10865
|
+
otherParams: _objectSpread2({
|
|
10728
10866
|
'qp-status-eq': 10,
|
|
10729
10867
|
sorter: 'desc-id'
|
|
10730
|
-
},
|
|
10868
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
10731
10869
|
sourceName: 'roleCode'
|
|
10732
10870
|
}, requestConfigProp);
|
|
10733
10871
|
tableSearchForm = [{
|
|
@@ -10820,12 +10958,12 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10820
10958
|
mappingTextField: 'name',
|
|
10821
10959
|
mappingTextShowKeyField: 'code',
|
|
10822
10960
|
mappingValueField: 'code',
|
|
10823
|
-
otherParams: {
|
|
10961
|
+
otherParams: _objectSpread2({
|
|
10824
10962
|
'qp-type-eq': 1,
|
|
10825
10963
|
'qp-isMain-eq': 1,
|
|
10826
10964
|
'qp-status-eq': 10,
|
|
10827
10965
|
sorter: 'desc-id'
|
|
10828
|
-
},
|
|
10966
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
10829
10967
|
sourceName: 'marketChannelCode'
|
|
10830
10968
|
}, requestConfigProp);
|
|
10831
10969
|
tableSearchForm = [{
|
|
@@ -10907,9 +11045,9 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10907
11045
|
mappingTextField: 'name',
|
|
10908
11046
|
mappingTextShowKeyField: 'code',
|
|
10909
11047
|
mappingValueField: 'code',
|
|
10910
|
-
otherParams: {
|
|
11048
|
+
otherParams: _objectSpread2({
|
|
10911
11049
|
sorter: 'desc-createTime'
|
|
10912
|
-
},
|
|
11050
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
10913
11051
|
sourceName: 'organizationCode'
|
|
10914
11052
|
}, requestConfigProp), tableSearchForm = [{
|
|
10915
11053
|
name: 'qp-name-like',
|
|
@@ -11035,9 +11173,9 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11035
11173
|
mappingTextField: 'name',
|
|
11036
11174
|
mappingTextShowKeyField: 'code',
|
|
11037
11175
|
mappingValueField: 'code',
|
|
11038
|
-
otherParams: {
|
|
11176
|
+
otherParams: _objectSpread2({
|
|
11039
11177
|
sorter: 'desc-id'
|
|
11040
|
-
},
|
|
11178
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
11041
11179
|
sourceName: 'personCode'
|
|
11042
11180
|
}, requestConfigProp);
|
|
11043
11181
|
tableSearchForm = [{
|
|
@@ -11095,16 +11233,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11095
11233
|
}]
|
|
11096
11234
|
}, selectConfigProps);
|
|
11097
11235
|
requestConfig = _objectSpread2({
|
|
11236
|
+
init: true,
|
|
11098
11237
|
url: "".concat(prefixUrl.selectPrefix, "/brand/list"),
|
|
11099
11238
|
filter: 'qp-brandCode,name-orGroup,like',
|
|
11100
11239
|
mappingTextField: 'name',
|
|
11101
11240
|
mappingTextShowKeyField: 'brandCode',
|
|
11102
11241
|
mappingValueField: 'brandCode',
|
|
11103
|
-
otherParams: {
|
|
11242
|
+
otherParams: _objectSpread2({
|
|
11104
11243
|
'ctl-withAuth': true,
|
|
11105
11244
|
'qp-status-in': '1',
|
|
11106
11245
|
sorter: 'desc-id'
|
|
11107
|
-
},
|
|
11246
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
11108
11247
|
sourceName: 'brandCode'
|
|
11109
11248
|
}, requestConfigProp);
|
|
11110
11249
|
tableSearchForm = [{
|
|
@@ -11169,10 +11308,10 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11169
11308
|
mappingTextField: 'name',
|
|
11170
11309
|
mappingTextShowKeyField: 'code',
|
|
11171
11310
|
mappingValueField: 'code',
|
|
11172
|
-
otherParams: {
|
|
11311
|
+
otherParams: _objectSpread2({
|
|
11173
11312
|
'qp-enabled-eq': true,
|
|
11174
11313
|
sorter: 'desc-id'
|
|
11175
|
-
},
|
|
11314
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
11176
11315
|
sourceName: 'priceCode'
|
|
11177
11316
|
}, requestConfigProp);
|
|
11178
11317
|
tableSearchForm = [{
|
|
@@ -11224,16 +11363,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11224
11363
|
}]
|
|
11225
11364
|
}, selectConfigProps);
|
|
11226
11365
|
requestConfig = _objectSpread2({
|
|
11366
|
+
init: true,
|
|
11227
11367
|
url: "".concat(prefixUrl.selectPrefix, "/orgViewNode/listNoPage"),
|
|
11228
11368
|
filter: 'qp-code,name-orGroup,like',
|
|
11229
11369
|
mappingTextField: 'name',
|
|
11230
11370
|
mappingTextShowKeyField: 'code',
|
|
11231
11371
|
mappingValueField: 'code',
|
|
11232
|
-
otherParams: {
|
|
11372
|
+
otherParams: _objectSpread2({
|
|
11233
11373
|
'qp-orgViewCode-eq': 'sales-organizational-view',
|
|
11234
11374
|
'qp-status-eq': 10,
|
|
11235
11375
|
sorter: 'desc-createTime'
|
|
11236
|
-
},
|
|
11376
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
11237
11377
|
sourceName: 'supplierCode'
|
|
11238
11378
|
}, requestConfigProp), tableSearchForm = [{
|
|
11239
11379
|
name: 'qp-name-like',
|
|
@@ -12597,7 +12737,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
12597
12737
|
};
|
|
12598
12738
|
return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
12599
12739
|
onClick: handleShowModal
|
|
12600
|
-
}, buttonProps), buttonName), modalProps.visible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
12740
|
+
}, buttonProps), buttonName), modalProps.visible && ( /*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
12601
12741
|
onOk: handleOk,
|
|
12602
12742
|
onCancel: handleCancel,
|
|
12603
12743
|
destroyOnClose: true,
|
|
@@ -12680,7 +12820,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12680
12820
|
_props$showSearch = props.showSearch,
|
|
12681
12821
|
showSearch = _props$showSearch === void 0 ? true : _props$showSearch,
|
|
12682
12822
|
_props$maxTagCount = props.maxTagCount,
|
|
12683
|
-
maxTagCount = _props$maxTagCount === void 0 ?
|
|
12823
|
+
maxTagCount = _props$maxTagCount === void 0 ? 4 : _props$maxTagCount,
|
|
12684
12824
|
_props$multiple = props.multiple,
|
|
12685
12825
|
multiple = _props$multiple === void 0 ? false : _props$multiple,
|
|
12686
12826
|
_props$isChoose = props.isChoose,
|
|
@@ -12716,7 +12856,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12716
12856
|
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
|
|
12717
12857
|
_remoteSource$special = remoteSource.specialBracket,
|
|
12718
12858
|
specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
|
|
12719
|
-
var
|
|
12859
|
+
var mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
12720
12860
|
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
12721
12861
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
12722
12862
|
return {
|
|
@@ -12728,7 +12868,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12728
12868
|
isLeaf: !haveChildren,
|
|
12729
12869
|
disabled: isDisabled(haveChildren, isRoot),
|
|
12730
12870
|
children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
|
|
12731
|
-
return
|
|
12871
|
+
return mapSearchTree(i);
|
|
12732
12872
|
}) : []
|
|
12733
12873
|
};
|
|
12734
12874
|
};
|
|
@@ -12746,8 +12886,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12746
12886
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
12747
12887
|
requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
|
|
12748
12888
|
headers: headers
|
|
12749
|
-
}).then(/*#__PURE__*/function () {
|
|
12750
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
12889
|
+
}).then( /*#__PURE__*/function () {
|
|
12890
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
12751
12891
|
var _ctx$form;
|
|
12752
12892
|
var resData, coverData, data, dataList;
|
|
12753
12893
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -12774,7 +12914,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12774
12914
|
case 9:
|
|
12775
12915
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
12776
12916
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
12777
|
-
return
|
|
12917
|
+
return mapSearchTree(ites);
|
|
12778
12918
|
}) || [];
|
|
12779
12919
|
case 11:
|
|
12780
12920
|
_context.next = 14;
|
|
@@ -12812,11 +12952,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12812
12952
|
return _formatResult;
|
|
12813
12953
|
}
|
|
12814
12954
|
};
|
|
12815
|
-
var
|
|
12955
|
+
var parallelData = function parallelData(data, result) {
|
|
12816
12956
|
data.forEach(function (i) {
|
|
12817
12957
|
result.push(i);
|
|
12818
12958
|
if (i[treeChildrenRoom]) {
|
|
12819
|
-
|
|
12959
|
+
parallelData(i[treeChildrenRoom], result);
|
|
12820
12960
|
}
|
|
12821
12961
|
});
|
|
12822
12962
|
return result;
|
|
@@ -12856,7 +12996,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12856
12996
|
var _ctx$form2;
|
|
12857
12997
|
var handleData = formatData(data);
|
|
12858
12998
|
// 获取选中树节点当条数据,并返回给调用业务
|
|
12859
|
-
var parallelTreeData =
|
|
12999
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
12860
13000
|
var currentItem = getSelectItem(parallelTreeData, data);
|
|
12861
13001
|
onChange(handleData, data, currentItem, parallelTreeData);
|
|
12862
13002
|
onChangeName && onChangeName(dataName);
|
|
@@ -12899,7 +13039,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12899
13039
|
var getShowStr = function getShowStr() {
|
|
12900
13040
|
var isMultiple = multiple || treeCheckable;
|
|
12901
13041
|
var kongValue = '无';
|
|
12902
|
-
var parallelTreeData =
|
|
13042
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
12903
13043
|
var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
|
|
12904
13044
|
if (isMultiple) {
|
|
12905
13045
|
return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
|
|
@@ -12911,7 +13051,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12911
13051
|
var isShouldShowStr = (disabled || mode === 'view' || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) === 'view') && ctx;
|
|
12912
13052
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
12913
13053
|
className: 'tree_search_select'
|
|
12914
|
-
}, isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
13054
|
+
}, isShouldShowStr ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
12915
13055
|
title: getShowStr(),
|
|
12916
13056
|
style: {
|
|
12917
13057
|
overflow: 'hidden',
|
|
@@ -12919,7 +13059,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12919
13059
|
whiteSpace: 'nowrap'
|
|
12920
13060
|
},
|
|
12921
13061
|
className: 'search_select_show'
|
|
12922
|
-
}, getShowStr())) : (/*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
13062
|
+
}, getShowStr())) : ( /*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
12923
13063
|
treeCheckable: treeCheckable,
|
|
12924
13064
|
maxTagCount: maxTagCount,
|
|
12925
13065
|
showSearch: showSearch,
|
|
@@ -13116,7 +13256,7 @@ var index$2 = (function (props) {
|
|
|
13116
13256
|
} : {}
|
|
13117
13257
|
}, item.text)), /*#__PURE__*/React$1.createElement("div", {
|
|
13118
13258
|
className: 'status-label-operate'
|
|
13119
|
-
}, item.isDone ? (/*#__PURE__*/React$1.createElement("div", {
|
|
13259
|
+
}, item.isDone ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
13120
13260
|
title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
|
|
13121
13261
|
}, "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--'))) : null), /*#__PURE__*/React$1.createElement("div", {
|
|
13122
13262
|
style: {
|
|
@@ -13261,7 +13401,7 @@ var ExportIcon = function ExportIcon(_ref) {
|
|
|
13261
13401
|
})));
|
|
13262
13402
|
};
|
|
13263
13403
|
|
|
13264
|
-
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:
|
|
13404
|
+
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";
|
|
13265
13405
|
styleInject(css_248z$b);
|
|
13266
13406
|
|
|
13267
13407
|
var _excluded$8 = ["className", "style"];
|
|
@@ -13848,7 +13988,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13848
13988
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
13849
13989
|
className: 'sort_table_wrapper'
|
|
13850
13990
|
}, visible && /*#__PURE__*/React$1.createElement(Modal, {
|
|
13851
|
-
title: "\
|
|
13991
|
+
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
13852
13992
|
wrapClassName: 'sort_table_wrapper',
|
|
13853
13993
|
width: 820,
|
|
13854
13994
|
visible: visible,
|
|
@@ -13885,19 +14025,19 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13885
14025
|
className: 'sort_table_column_wrapper'
|
|
13886
14026
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
13887
14027
|
className: 'sort_table_column_count'
|
|
13888
|
-
},
|
|
14028
|
+
}, /*#__PURE__*/React$1.createElement("span", null, "\u52FE\u9009\u4F60\u60F3\u4F7F\u7528\u7684\u7B5B\u9009\u6761\u4EF6")), /*#__PURE__*/React$1.createElement("div", {
|
|
13889
14029
|
className: 'sort_table_column'
|
|
13890
14030
|
}, /*#__PURE__*/React$1.createElement(Input, {
|
|
13891
14031
|
prefix: /*#__PURE__*/React$1.createElement(SearchOutlined, {
|
|
13892
14032
|
className: "site-form-item-icon"
|
|
13893
14033
|
}),
|
|
13894
|
-
placeholder: "\u641C\u7D22",
|
|
14034
|
+
placeholder: "\u8F93\u5165\u7B5B\u9009\u6761\u4EF6\u540D\u79F0\u641C\u7D22",
|
|
13895
14035
|
allowClear: true,
|
|
13896
14036
|
onChange: this.onSearch,
|
|
13897
14037
|
style: {
|
|
13898
|
-
width:
|
|
14038
|
+
width: 525
|
|
13899
14039
|
}
|
|
13900
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
14040
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
13901
14041
|
checked: !dataSource.some(function (item) {
|
|
13902
14042
|
if (item.hidden) return true;
|
|
13903
14043
|
return false;
|
|
@@ -13935,13 +14075,13 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13935
14075
|
_this2.onChange(e, item.title);
|
|
13936
14076
|
}
|
|
13937
14077
|
}, item.title);
|
|
13938
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
14078
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
13939
14079
|
style: {
|
|
13940
14080
|
width: '144px'
|
|
13941
14081
|
}
|
|
13942
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
14082
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
13943
14083
|
className: 'sort_table_column_all_empty'
|
|
13944
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
14084
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
13945
14085
|
className: 'sort_table_column_special'
|
|
13946
14086
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
13947
14087
|
className: 'sort_table_column_all'
|
|
@@ -13963,7 +14103,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13963
14103
|
className: 'sort_table_content_wrapper'
|
|
13964
14104
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
13965
14105
|
className: 'sort_table_content_count'
|
|
13966
|
-
},
|
|
14106
|
+
}, /*#__PURE__*/React$1.createElement("span", null, "\u5DF2\u9009\u62E9\u7684\u641C\u7D22\u6761\u4EF6\u6392\u5E8F")), /*#__PURE__*/React$1.createElement("div", {
|
|
13967
14107
|
className: 'sort_table_content'
|
|
13968
14108
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
13969
14109
|
style: {
|
|
@@ -14098,10 +14238,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14098
14238
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
14099
14239
|
return _objectSpread2({}, col);
|
|
14100
14240
|
});
|
|
14101
|
-
var
|
|
14241
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
14102
14242
|
var i = indexArr.shift();
|
|
14103
14243
|
if (indexArr.length > 0) {
|
|
14104
|
-
|
|
14244
|
+
handleIndex(arr[i].children, indexArr);
|
|
14105
14245
|
} else {
|
|
14106
14246
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
14107
14247
|
width: size.width
|
|
@@ -14109,7 +14249,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14109
14249
|
handleBssulaColumnsSpecialParams(arr[i]);
|
|
14110
14250
|
}
|
|
14111
14251
|
};
|
|
14112
|
-
|
|
14252
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
14113
14253
|
_this.setState({
|
|
14114
14254
|
showColumns: _toConsumableArray(newColumns)
|
|
14115
14255
|
});
|
|
@@ -14187,13 +14327,13 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14187
14327
|
showSummary = summary;
|
|
14188
14328
|
}
|
|
14189
14329
|
}
|
|
14190
|
-
var
|
|
14330
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
14191
14331
|
arr.forEach(function (item, index) {
|
|
14192
14332
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
14193
14333
|
return i || i === 0;
|
|
14194
14334
|
});
|
|
14195
14335
|
if (noEmptyArray$1(item.children)) {
|
|
14196
|
-
|
|
14336
|
+
handleColumns(item.children, indexArrInside);
|
|
14197
14337
|
} else {
|
|
14198
14338
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
14199
14339
|
item.onHeaderCell = function (column) {
|
|
@@ -14209,7 +14349,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14209
14349
|
handleBssulaColumnsSpecialParams(item);
|
|
14210
14350
|
return _objectSpread2({}, item);
|
|
14211
14351
|
});
|
|
14212
|
-
|
|
14352
|
+
handleColumns(showCol, []);
|
|
14213
14353
|
if (dynamicColumns.length) {
|
|
14214
14354
|
showCol = this.handledynamicColumns(showCol);
|
|
14215
14355
|
}
|
|
@@ -14343,10 +14483,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14343
14483
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
14344
14484
|
return _objectSpread2({}, col);
|
|
14345
14485
|
});
|
|
14346
|
-
var
|
|
14486
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
14347
14487
|
var i = indexArr.shift();
|
|
14348
14488
|
if (indexArr.length > 0) {
|
|
14349
|
-
|
|
14489
|
+
handleIndex(arr[i].children, indexArr);
|
|
14350
14490
|
} else {
|
|
14351
14491
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
14352
14492
|
width: size.width
|
|
@@ -14354,7 +14494,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14354
14494
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
14355
14495
|
}
|
|
14356
14496
|
};
|
|
14357
|
-
|
|
14497
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
14358
14498
|
_this.setState({
|
|
14359
14499
|
showColumns: _toConsumableArray(newColumns)
|
|
14360
14500
|
});
|
|
@@ -14430,13 +14570,13 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14430
14570
|
showSummary = summary;
|
|
14431
14571
|
}
|
|
14432
14572
|
}
|
|
14433
|
-
var
|
|
14573
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
14434
14574
|
arr.forEach(function (item, index) {
|
|
14435
14575
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
14436
14576
|
return i || i === 0;
|
|
14437
14577
|
});
|
|
14438
14578
|
if (noEmptyArray$1(item.children)) {
|
|
14439
|
-
|
|
14579
|
+
handleColumns(item.children, indexArrInside);
|
|
14440
14580
|
} else {
|
|
14441
14581
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
14442
14582
|
item.onHeaderCell = function (column) {
|
|
@@ -14452,7 +14592,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14452
14592
|
handleAntdColumnsSpecialParams(item);
|
|
14453
14593
|
return _objectSpread2({}, item);
|
|
14454
14594
|
});
|
|
14455
|
-
|
|
14595
|
+
handleColumns(showCol, []);
|
|
14456
14596
|
if (dynamicColumns.length) {
|
|
14457
14597
|
showCol = this.handledynamicColumns(showCol);
|
|
14458
14598
|
}
|
|
@@ -14549,20 +14689,20 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
|
|
|
14549
14689
|
};
|
|
14550
14690
|
var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
14551
14691
|
var routerMap = {};
|
|
14552
|
-
var
|
|
14692
|
+
var flattenMenuData = function flattenMenuData(data, parent) {
|
|
14553
14693
|
var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
|
|
14554
14694
|
data.forEach(function (menuItem) {
|
|
14555
14695
|
var newMenuItem = _objectSpread2(_objectSpread2({}, menuItem), {}, {
|
|
14556
14696
|
nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
|
|
14557
14697
|
});
|
|
14558
14698
|
if (newMenuItem.children) {
|
|
14559
|
-
|
|
14699
|
+
flattenMenuData(newMenuItem.children, newMenuItem);
|
|
14560
14700
|
}
|
|
14561
14701
|
// Reduce memory usage
|
|
14562
14702
|
routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
|
|
14563
14703
|
});
|
|
14564
14704
|
};
|
|
14565
|
-
|
|
14705
|
+
flattenMenuData(menuData, {});
|
|
14566
14706
|
return routerMap;
|
|
14567
14707
|
};
|
|
14568
14708
|
// mode类型判断
|
|
@@ -14623,7 +14763,7 @@ var getDetailMatchRoute = function getDetailMatchRoute(path, routeObj, hideRoute
|
|
|
14623
14763
|
return undefined;
|
|
14624
14764
|
};
|
|
14625
14765
|
|
|
14626
|
-
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 .
|
|
14766
|
+
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";
|
|
14627
14767
|
styleInject(css_248z$c);
|
|
14628
14768
|
|
|
14629
14769
|
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";
|
|
@@ -14749,6 +14889,19 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
14749
14889
|
breadcrumbArrs.pop();
|
|
14750
14890
|
breadcrumbArrs.push(title);
|
|
14751
14891
|
}
|
|
14892
|
+
// 处理详情页上层列表页面路径
|
|
14893
|
+
var pattern = /^(\/.*)\/(action|create|edit|view)(\/.*)*$/;
|
|
14894
|
+
var result = pathname.match(pattern);
|
|
14895
|
+
if ((result === null || result === void 0 ? void 0 : result.length) && result[1]) {
|
|
14896
|
+
var parentRoute = matchParamsPath("".concat(basePath).concat(result[1]), breadcrumbNameMap);
|
|
14897
|
+
if (!parentRoute) return;
|
|
14898
|
+
if (breadcrumbArrs.length >= 2) {
|
|
14899
|
+
breadcrumbArrs.splice(-1, 0, {
|
|
14900
|
+
title: parentRoute.name,
|
|
14901
|
+
path: result[1]
|
|
14902
|
+
});
|
|
14903
|
+
}
|
|
14904
|
+
}
|
|
14752
14905
|
setBreadCrumbArr(_toConsumableArray(breadcrumbArrs));
|
|
14753
14906
|
var pageName = formatMessage({
|
|
14754
14907
|
id: currRouterData.locale || currRouterData.name,
|
|
@@ -14836,7 +14989,8 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
14836
14989
|
}))));
|
|
14837
14990
|
};
|
|
14838
14991
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
14839
|
-
ref: wrapperContainerRef
|
|
14992
|
+
ref: wrapperContainerRef,
|
|
14993
|
+
className: 'bs_detail_page_head_wrapper'
|
|
14840
14994
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
14841
14995
|
className: 'detail_page_head',
|
|
14842
14996
|
style: {
|
|
@@ -14859,7 +15013,14 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
14859
15013
|
key: item
|
|
14860
15014
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
14861
15015
|
className: "".concat(index === breadcrumbArr.length - 1 ? 'bread_name_last' : '', " bread_name")
|
|
14862
|
-
}, item)
|
|
15016
|
+
}, _typeof(item) == 'object' ? /*#__PURE__*/React$1.createElement("span", {
|
|
15017
|
+
className: 'bread_name_pre',
|
|
15018
|
+
onClick: function onClick() {
|
|
15019
|
+
history.push({
|
|
15020
|
+
pathname: item.path
|
|
15021
|
+
});
|
|
15022
|
+
}
|
|
15023
|
+
}, item.title) : item));
|
|
14863
15024
|
}))), /*#__PURE__*/React$1.createElement("div", {
|
|
14864
15025
|
className: 'detail_page_btns',
|
|
14865
15026
|
style: {
|
|
@@ -14867,7 +15028,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
14867
15028
|
display: 'flex',
|
|
14868
15029
|
gap: '8px'
|
|
14869
15030
|
}
|
|
14870
|
-
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (/*#__PURE__*/React$1.createElement("a", null, isFullScreen ? (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
15031
|
+
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? ( /*#__PURE__*/React$1.createElement("a", null, isFullScreen ? ( /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
14871
15032
|
title: "\u53D6\u6D88\u5168\u5C4F"
|
|
14872
15033
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
14873
15034
|
onClick: function onClick() {
|
|
@@ -14875,7 +15036,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
14875
15036
|
},
|
|
14876
15037
|
width: 24,
|
|
14877
15038
|
src: scanning
|
|
14878
|
-
}))) : (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
15039
|
+
}))) : ( /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
14879
15040
|
title: "\u5168\u5C4F"
|
|
14880
15041
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
14881
15042
|
onClick: function onClick() {
|
|
@@ -14883,7 +15044,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
14883
15044
|
},
|
|
14884
15045
|
width: 24,
|
|
14885
15046
|
src: quanping
|
|
14886
|
-
}))))) : null)), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15047
|
+
}))))) : null)), alertProps && ( /*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
14887
15048
|
}, function (prevProps, nextProps) {
|
|
14888
15049
|
if (JSON.stringify(prevProps.actionList) != JSON.stringify(nextProps.actionList) || prevProps.title !== nextProps.title) {
|
|
14889
15050
|
return false;
|
|
@@ -14891,7 +15052,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
14891
15052
|
return true;
|
|
14892
15053
|
});
|
|
14893
15054
|
|
|
14894
|
-
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";
|
|
15055
|
+
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";
|
|
14895
15056
|
styleInject(css_248z$e);
|
|
14896
15057
|
|
|
14897
15058
|
var _excluded$d = ["children"];
|
|
@@ -14956,7 +15117,9 @@ var HeaderWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
14956
15117
|
return getPageTitle(pathname);
|
|
14957
15118
|
}, [pathname, title]);
|
|
14958
15119
|
useEffect(function () {}, [pathname]);
|
|
14959
|
-
return /*#__PURE__*/React$1.createElement("div",
|
|
15120
|
+
return /*#__PURE__*/React$1.createElement("div", {
|
|
15121
|
+
className: 'bs_home_page_head_wrapper'
|
|
15122
|
+
}, /*#__PURE__*/React$1.createElement("div", {
|
|
14960
15123
|
className: 'home_page_head'
|
|
14961
15124
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
14962
15125
|
className: 'home_page_title_wrapper'
|
|
@@ -14966,7 +15129,7 @@ var HeaderWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
14966
15129
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
14967
15130
|
className: "".concat(index === breadcrumbArr.length - 1 ? 'bread_name_last' : '', " bread_name")
|
|
14968
15131
|
}, item));
|
|
14969
|
-
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15132
|
+
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && ( /*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
14970
15133
|
}, function (prevProps, nextProps) {
|
|
14971
15134
|
if (prevProps.title !== nextProps.title) {
|
|
14972
15135
|
return false;
|
|
@@ -14974,7 +15137,7 @@ var HeaderWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
14974
15137
|
return true;
|
|
14975
15138
|
});
|
|
14976
15139
|
|
|
14977
|
-
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:
|
|
15140
|
+
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";
|
|
14978
15141
|
styleInject(css_248z$f);
|
|
14979
15142
|
|
|
14980
15143
|
var _excluded$e = ["className", "style"];
|
|
@@ -15606,10 +15769,10 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15606
15769
|
});
|
|
15607
15770
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
15608
15771
|
className: 'sort_table_wrapper'
|
|
15609
|
-
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
15610
|
-
title: "\
|
|
15772
|
+
}, visible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
15773
|
+
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
15611
15774
|
wrapClassName: 'sort_table_wrapper',
|
|
15612
|
-
width:
|
|
15775
|
+
width: 810,
|
|
15613
15776
|
visible: visible,
|
|
15614
15777
|
onOk: this.handleOk,
|
|
15615
15778
|
onCancel: this.handleCancel,
|
|
@@ -15644,7 +15807,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15644
15807
|
className: 'sort_table_column_wrapper'
|
|
15645
15808
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
15646
15809
|
className: 'sort_table_column_count'
|
|
15647
|
-
},
|
|
15810
|
+
}, /*#__PURE__*/React$1.createElement("span", null, "\u52FE\u9009\u4F60\u60F3\u4F7F\u7528\u7684\u7B5B\u9009\u6761\u4EF6")), /*#__PURE__*/React$1.createElement("div", {
|
|
15648
15811
|
className: 'sort_table_column'
|
|
15649
15812
|
}, /*#__PURE__*/React$1.createElement(Input, {
|
|
15650
15813
|
prefix: /*#__PURE__*/React$1.createElement(SearchOutlined, {
|
|
@@ -15654,9 +15817,10 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15654
15817
|
allowClear: true,
|
|
15655
15818
|
onChange: this.onSearch,
|
|
15656
15819
|
style: {
|
|
15657
|
-
width:
|
|
15820
|
+
width: 525,
|
|
15821
|
+
height: 24
|
|
15658
15822
|
}
|
|
15659
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
15823
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
15660
15824
|
checked: !dataSource.some(function (item) {
|
|
15661
15825
|
if (item.hidden) return true;
|
|
15662
15826
|
return false;
|
|
@@ -15710,13 +15874,13 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15710
15874
|
_this2.onChange(e, item.title);
|
|
15711
15875
|
}
|
|
15712
15876
|
}, item.title);
|
|
15713
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
15877
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
15714
15878
|
style: {
|
|
15715
15879
|
width: '144px'
|
|
15716
15880
|
}
|
|
15717
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
15881
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
15718
15882
|
className: 'sort_table_column_all_empty'
|
|
15719
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
15883
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
15720
15884
|
className: 'sort_table_column_special'
|
|
15721
15885
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
15722
15886
|
className: 'sort_table_column_all'
|
|
@@ -15738,7 +15902,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15738
15902
|
className: 'sort_table_content_wrapper'
|
|
15739
15903
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
15740
15904
|
className: 'sort_table_content_count'
|
|
15741
|
-
},
|
|
15905
|
+
}, /*#__PURE__*/React$1.createElement("span", null, "\u5DF2\u9009\u62E9\u7684\u641C\u7D22\u6761\u4EF6\u6392\u5E8F")), /*#__PURE__*/React$1.createElement("div", {
|
|
15742
15906
|
className: 'sort_table_content'
|
|
15743
15907
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
15744
15908
|
style: {
|
|
@@ -15930,21 +16094,23 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15930
16094
|
_this.columns = [{
|
|
15931
16095
|
title: '搜索字段名称',
|
|
15932
16096
|
dataIndex: 'label',
|
|
15933
|
-
className: 'drag-visible'
|
|
15934
|
-
width: 100
|
|
16097
|
+
className: 'drag-visible'
|
|
15935
16098
|
}, {
|
|
15936
16099
|
title: '删除',
|
|
15937
16100
|
dataIndex: 'title1',
|
|
15938
16101
|
render: function render(text, record) {
|
|
15939
16102
|
return /*#__PURE__*/React$1.createElement("span", {
|
|
16103
|
+
style: {
|
|
16104
|
+
paddingLeft: '46px'
|
|
16105
|
+
},
|
|
15940
16106
|
onClick: function onClick() {
|
|
15941
16107
|
_this.setState({
|
|
15942
16108
|
sortDataSource: _this.state.sortDataSource.filter(function (item) {
|
|
15943
|
-
return item.
|
|
16109
|
+
return item.name !== record.name;
|
|
15944
16110
|
}),
|
|
15945
16111
|
isDefaultValue: false,
|
|
15946
16112
|
dataSource: _toConsumableArray(_this.state.dataSource.map(function (item) {
|
|
15947
|
-
if (item.
|
|
16113
|
+
if (item.name === record.name) {
|
|
15948
16114
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
15949
16115
|
hidden: true
|
|
15950
16116
|
});
|
|
@@ -15986,7 +16152,8 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15986
16152
|
_this.handleCancel = function (e) {
|
|
15987
16153
|
console.log(e);
|
|
15988
16154
|
_this.setState({
|
|
15989
|
-
visible: false
|
|
16155
|
+
visible: false,
|
|
16156
|
+
searchDataSource: ''
|
|
15990
16157
|
});
|
|
15991
16158
|
};
|
|
15992
16159
|
_this.handleTableHeadHidden = function (title) {
|
|
@@ -16043,18 +16210,18 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16043
16210
|
index: index
|
|
16044
16211
|
}, restProps));
|
|
16045
16212
|
};
|
|
16046
|
-
_this.onChange = function (e,
|
|
16213
|
+
_this.onChange = function (e, name) {
|
|
16047
16214
|
var _this$state4 = _this.state,
|
|
16048
16215
|
sortDataSource = _this$state4.sortDataSource,
|
|
16049
16216
|
dataSource = _this$state4.dataSource;
|
|
16050
16217
|
if (!e.target.checked) {
|
|
16051
16218
|
_this.setState({
|
|
16052
16219
|
sortDataSource: sortDataSource.filter(function (item) {
|
|
16053
|
-
return item.
|
|
16220
|
+
return item.name !== name;
|
|
16054
16221
|
}),
|
|
16055
16222
|
isDefaultValue: false,
|
|
16056
16223
|
dataSource: _toConsumableArray(dataSource.map(function (item) {
|
|
16057
|
-
if (item.
|
|
16224
|
+
if (item.name === name) {
|
|
16058
16225
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
16059
16226
|
hidden: true
|
|
16060
16227
|
});
|
|
@@ -16064,7 +16231,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16064
16231
|
});
|
|
16065
16232
|
} else {
|
|
16066
16233
|
var newSortData = [].concat(_toConsumableArray(sortDataSource), _toConsumableArray(dataSource.filter(function (item) {
|
|
16067
|
-
return item.
|
|
16234
|
+
return item.name === name;
|
|
16068
16235
|
}).map(function (source) {
|
|
16069
16236
|
return _objectSpread2(_objectSpread2({}, source), {}, {
|
|
16070
16237
|
hidden: false
|
|
@@ -16074,7 +16241,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16074
16241
|
sortDataSource: _toConsumableArray(newSortData),
|
|
16075
16242
|
isDefaultValue: false,
|
|
16076
16243
|
dataSource: _toConsumableArray(dataSource.map(function (item) {
|
|
16077
|
-
if (item.
|
|
16244
|
+
if (item.name === name) {
|
|
16078
16245
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
16079
16246
|
hidden: false
|
|
16080
16247
|
});
|
|
@@ -16100,6 +16267,25 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16100
16267
|
onSearchSort: e.target.value
|
|
16101
16268
|
});
|
|
16102
16269
|
};
|
|
16270
|
+
// 处理非标准 特殊搜索项 名称回显
|
|
16271
|
+
_this.showSearchItemLabel = function (item) {
|
|
16272
|
+
var _item$field, _options$;
|
|
16273
|
+
//搜索项 存在 label默认返回
|
|
16274
|
+
if (item.label) {
|
|
16275
|
+
return item.label;
|
|
16276
|
+
} else {
|
|
16277
|
+
switch (item.field.type) {
|
|
16278
|
+
//多值录入搜索组件 默认使用下拉框第一个选项
|
|
16279
|
+
case 'bs-multiInput':
|
|
16280
|
+
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,
|
|
16281
|
+
_item$field$props$opt = _item$field$props.options,
|
|
16282
|
+
options = _item$field$props$opt === void 0 ? [] : _item$field$props$opt;
|
|
16283
|
+
return (_options$ = options[0]) === null || _options$ === void 0 ? void 0 : _options$.text;
|
|
16284
|
+
default:
|
|
16285
|
+
return '';
|
|
16286
|
+
}
|
|
16287
|
+
}
|
|
16288
|
+
};
|
|
16103
16289
|
return _this;
|
|
16104
16290
|
}
|
|
16105
16291
|
_inherits(SearchItemTable, _React$Component);
|
|
@@ -16146,19 +16332,30 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16146
16332
|
var _this2 = this;
|
|
16147
16333
|
var _this$state5 = this.state,
|
|
16148
16334
|
_this$state5$dataSour = _this$state5.dataSource,
|
|
16149
|
-
|
|
16335
|
+
originDataSource = _this$state5$dataSour === void 0 ? [] : _this$state5$dataSour,
|
|
16150
16336
|
searchDataSource = _this$state5.searchDataSource,
|
|
16151
|
-
|
|
16337
|
+
_this$state5$sortData = _this$state5.sortDataSource,
|
|
16338
|
+
originSortDataSource = _this$state5$sortData === void 0 ? [] : _this$state5$sortData,
|
|
16152
16339
|
visible = _this$state5.visible,
|
|
16153
16340
|
onSearchSort = _this$state5.onSearchSort;
|
|
16341
|
+
var dataSource = originDataSource.map(function (item) {
|
|
16342
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
16343
|
+
label: _this2.showSearchItemLabel(item)
|
|
16344
|
+
});
|
|
16345
|
+
});
|
|
16346
|
+
var sortDataSource = originSortDataSource.map(function (item) {
|
|
16347
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
16348
|
+
label: _this2.showSearchItemLabel(item)
|
|
16349
|
+
});
|
|
16350
|
+
});
|
|
16154
16351
|
var newSearchSource = dataSource.filter(function (item) {
|
|
16155
16352
|
var _item$label;
|
|
16156
16353
|
return (item === null || item === void 0 ? void 0 : (_item$label = item.label) === null || _item$label === void 0 ? void 0 : _item$label.indexOf(searchDataSource || '')) > -1;
|
|
16157
16354
|
});
|
|
16158
16355
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
16159
16356
|
className: 'sort_table_wrapper'
|
|
16160
|
-
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
16161
|
-
title: "\
|
|
16357
|
+
}, visible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
16358
|
+
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
16162
16359
|
wrapClassName: 'sort_table_wrapper',
|
|
16163
16360
|
width: 820,
|
|
16164
16361
|
visible: visible,
|
|
@@ -16190,19 +16387,19 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16190
16387
|
className: 'sort_table_column_wrapper'
|
|
16191
16388
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
16192
16389
|
className: 'sort_table_column_count'
|
|
16193
|
-
},
|
|
16390
|
+
}, /*#__PURE__*/React$1.createElement("span", null, "\u52FE\u9009\u4F60\u60F3\u4F7F\u7528\u7684\u7B5B\u9009\u6761\u4EF6")), /*#__PURE__*/React$1.createElement("div", {
|
|
16194
16391
|
className: 'sort_table_column'
|
|
16195
16392
|
}, /*#__PURE__*/React$1.createElement(Input, {
|
|
16196
16393
|
prefix: /*#__PURE__*/React$1.createElement(SearchOutlined, {
|
|
16197
16394
|
className: "site-form-item-icon"
|
|
16198
16395
|
}),
|
|
16199
|
-
placeholder: "\u641C\u7D22",
|
|
16396
|
+
placeholder: "\u8F93\u5165\u7B5B\u9009\u6761\u4EF6\u540D\u79F0\u641C\u7D22",
|
|
16200
16397
|
allowClear: true,
|
|
16201
16398
|
onChange: this.onSearch,
|
|
16202
16399
|
style: {
|
|
16203
|
-
width:
|
|
16400
|
+
width: 525
|
|
16204
16401
|
}
|
|
16205
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
16402
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
16206
16403
|
checked: !dataSource.some(function (item) {
|
|
16207
16404
|
if (item.hidden) return true;
|
|
16208
16405
|
return false;
|
|
@@ -16228,27 +16425,27 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16228
16425
|
return /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
16229
16426
|
checked: !item.hidden,
|
|
16230
16427
|
onChange: function onChange(e) {
|
|
16231
|
-
_this2.onChange(e, item.
|
|
16428
|
+
_this2.onChange(e, item.name);
|
|
16232
16429
|
}
|
|
16233
16430
|
}, item.label);
|
|
16234
16431
|
}) : dataSource.map(function (item) {
|
|
16235
16432
|
return /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
16236
16433
|
checked: !item.hidden,
|
|
16237
16434
|
onChange: function onChange(e) {
|
|
16238
|
-
_this2.onChange(e, item.
|
|
16435
|
+
_this2.onChange(e, item.name);
|
|
16239
16436
|
}
|
|
16240
16437
|
}, item.label);
|
|
16241
|
-
}), !!newSearchSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
16438
|
+
}), !!newSearchSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
16242
16439
|
style: {
|
|
16243
16440
|
width: '144px'
|
|
16244
16441
|
}
|
|
16245
|
-
})), !newSearchSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
16442
|
+
})), !newSearchSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
16246
16443
|
className: 'sort_table_column_all_empty'
|
|
16247
16444
|
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))))), /*#__PURE__*/React$1.createElement("div", {
|
|
16248
16445
|
className: 'sort_table_content_wrapper'
|
|
16249
16446
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
16250
16447
|
className: 'sort_table_content_count'
|
|
16251
|
-
},
|
|
16448
|
+
}, /*#__PURE__*/React$1.createElement("span", null, "\u5DF2\u9009\u62E9\u7684\u641C\u7D22\u6761\u4EF6\u6392\u5E8F")), /*#__PURE__*/React$1.createElement("div", {
|
|
16252
16449
|
className: 'sort_table_content'
|
|
16253
16450
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
16254
16451
|
style: {
|
|
@@ -16668,7 +16865,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
16668
16865
|
actionsRender = actionsRender.concat([{
|
|
16669
16866
|
type: 'text',
|
|
16670
16867
|
props: {
|
|
16671
|
-
children: (/*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
16868
|
+
children: ( /*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
16672
16869
|
request: {
|
|
16673
16870
|
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),
|
|
16674
16871
|
params: value === null || value === void 0 ? void 0 : (_value$exportConfig4 = value.exportConfig) === null || _value$exportConfig4 === void 0 ? void 0 : _value$exportConfig4.params
|
|
@@ -16914,7 +17111,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
16914
17111
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
16915
17112
|
bsTableCode: bsTableCode,
|
|
16916
17113
|
onlyModal: true
|
|
16917
|
-
}), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && (/*#__PURE__*/React$1.createElement(SortableTable$1, {
|
|
17114
|
+
}), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && ( /*#__PURE__*/React$1.createElement(SortableTable$1, {
|
|
16918
17115
|
ref: exportTableRef,
|
|
16919
17116
|
setShowColumns: setShowExportColumns,
|
|
16920
17117
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -17007,11 +17204,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
17007
17204
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
17008
17205
|
var resultList = [];
|
|
17009
17206
|
var newRouter = cloneDeep(router);
|
|
17010
|
-
var
|
|
17207
|
+
var deep = function deep(router) {
|
|
17011
17208
|
if (router && Array.isArray(router)) {
|
|
17012
17209
|
router.forEach(function (item) {
|
|
17013
17210
|
if (item.children && Array.isArray(item.children)) {
|
|
17014
|
-
|
|
17211
|
+
deep(item.children);
|
|
17015
17212
|
} else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
|
|
17016
17213
|
return d === item.code;
|
|
17017
17214
|
})) {
|
|
@@ -17025,10 +17222,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
17025
17222
|
resultList.push(_objectSpread2({}, router));
|
|
17026
17223
|
}
|
|
17027
17224
|
};
|
|
17028
|
-
|
|
17225
|
+
deep(newRouter);
|
|
17029
17226
|
callBack([].concat(resultList));
|
|
17030
17227
|
};
|
|
17031
|
-
var
|
|
17228
|
+
var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
17032
17229
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
17033
17230
|
var _loop = function _loop(i) {
|
|
17034
17231
|
if (routesData[i].hideInMenu) {
|
|
@@ -17042,7 +17239,7 @@ var _setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
17042
17239
|
return 0; // continue
|
|
17043
17240
|
}
|
|
17044
17241
|
if (routesData[i].children) {
|
|
17045
|
-
|
|
17242
|
+
setMenuTreeData(routesData[i].children);
|
|
17046
17243
|
}
|
|
17047
17244
|
},
|
|
17048
17245
|
_ret;
|
|
@@ -17063,16 +17260,16 @@ var setLoginOutPath = function setLoginOutPath() {
|
|
|
17063
17260
|
};
|
|
17064
17261
|
var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
|
|
17065
17262
|
var routerMap = {};
|
|
17066
|
-
var
|
|
17263
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
17067
17264
|
data.forEach(function (menuItem) {
|
|
17068
17265
|
if (menuItem.children) {
|
|
17069
|
-
|
|
17266
|
+
flattenMenuData(menuItem.children);
|
|
17070
17267
|
}
|
|
17071
17268
|
// Reduce memory usage
|
|
17072
17269
|
routerMap[menuItem.path] = menuItem;
|
|
17073
17270
|
});
|
|
17074
17271
|
};
|
|
17075
|
-
|
|
17272
|
+
flattenMenuData(menuData);
|
|
17076
17273
|
return routerMap;
|
|
17077
17274
|
};
|
|
17078
17275
|
var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
|
|
@@ -17218,7 +17415,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17218
17415
|
sethomepageData(homepageDataList);
|
|
17219
17416
|
setroutesData(routesDataList);
|
|
17220
17417
|
}, []);
|
|
17221
|
-
var
|
|
17418
|
+
var renderChildItem = function renderChildItem(child) {
|
|
17222
17419
|
if (!child.hideInMenu && child.children) {
|
|
17223
17420
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
17224
17421
|
style: {
|
|
@@ -17228,7 +17425,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17228
17425
|
}, formatMessage({
|
|
17229
17426
|
id: "".concat(child.locale)
|
|
17230
17427
|
})), child.children.map(function (menuItem) {
|
|
17231
|
-
return
|
|
17428
|
+
return renderChildItem(menuItem);
|
|
17232
17429
|
}));
|
|
17233
17430
|
} else if (!child.hideInMenu && child.path) {
|
|
17234
17431
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -17263,7 +17460,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17263
17460
|
className: 'drawerWarp'
|
|
17264
17461
|
}, homepageData && homepageData.filter(function (d) {
|
|
17265
17462
|
return !d.hideInMenu;
|
|
17266
|
-
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
17463
|
+
}).length > 0 && ( /*#__PURE__*/React$1.createElement(List, {
|
|
17267
17464
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
17268
17465
|
dataSource: homepageData,
|
|
17269
17466
|
renderItem: function renderItem(child) {
|
|
@@ -17298,7 +17495,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17298
17495
|
bordered: true,
|
|
17299
17496
|
dataSource: item.children,
|
|
17300
17497
|
renderItem: function renderItem(child) {
|
|
17301
|
-
return
|
|
17498
|
+
return renderChildItem(child);
|
|
17302
17499
|
}
|
|
17303
17500
|
});
|
|
17304
17501
|
})));
|
|
@@ -17358,7 +17555,7 @@ var AllFunc$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
17358
17555
|
src: allfunc
|
|
17359
17556
|
})), /*#__PURE__*/React$1.createElement("span", {
|
|
17360
17557
|
className: 'btnSpan2'
|
|
17361
|
-
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
17558
|
+
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && ( /*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
17362
17559
|
style: {
|
|
17363
17560
|
left: isDrawer ? 140 : 0,
|
|
17364
17561
|
top: 50
|
|
@@ -17404,7 +17601,7 @@ function outLogin(_x) {
|
|
|
17404
17601
|
return _outLogin.apply(this, arguments);
|
|
17405
17602
|
}
|
|
17406
17603
|
function _outLogin() {
|
|
17407
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
17604
|
+
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
17408
17605
|
var res;
|
|
17409
17606
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17410
17607
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -17546,7 +17743,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
17546
17743
|
});
|
|
17547
17744
|
};
|
|
17548
17745
|
var loginOut = /*#__PURE__*/function () {
|
|
17549
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
17746
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
17550
17747
|
var sessionId;
|
|
17551
17748
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17552
17749
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -17650,7 +17847,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
17650
17847
|
marginRight: '0px'
|
|
17651
17848
|
},
|
|
17652
17849
|
src: './xialajiantou-new.svg'
|
|
17653
|
-
}))))), loginModalParams.visible && (/*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
17850
|
+
}))))), loginModalParams.visible && ( /*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
17654
17851
|
};
|
|
17655
17852
|
|
|
17656
17853
|
// -- 查询店铺 --
|
|
@@ -17658,7 +17855,7 @@ function getStoreByName(_x) {
|
|
|
17658
17855
|
return _getStoreByName.apply(this, arguments);
|
|
17659
17856
|
}
|
|
17660
17857
|
function _getStoreByName() {
|
|
17661
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
17858
|
+
_getStoreByName = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
17662
17859
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17663
17860
|
while (1) switch (_context.prev = _context.next) {
|
|
17664
17861
|
case 0:
|
|
@@ -17726,7 +17923,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
17726
17923
|
return _fetchUserList.apply(this, arguments);
|
|
17727
17924
|
}
|
|
17728
17925
|
function _fetchUserList() {
|
|
17729
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
17926
|
+
_fetchUserList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
17730
17927
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
17731
17928
|
while (1) switch (_context3.prev = _context3.next) {
|
|
17732
17929
|
case 0:
|
|
@@ -17774,7 +17971,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
17774
17971
|
return debounce$1(loadOptions, debounceTimeout);
|
|
17775
17972
|
}, [debounceTimeout, key]);
|
|
17776
17973
|
var changeInput = /*#__PURE__*/function () {
|
|
17777
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
17974
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
17778
17975
|
var res;
|
|
17779
17976
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17780
17977
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -17796,7 +17993,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
17796
17993
|
};
|
|
17797
17994
|
}();
|
|
17798
17995
|
useEffect(function () {
|
|
17799
|
-
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
17996
|
+
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
17800
17997
|
var res;
|
|
17801
17998
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
17802
17999
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -17961,7 +18158,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
17961
18158
|
var resultList = [];
|
|
17962
18159
|
var newRouter = cloneDeep$1(router);
|
|
17963
18160
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
17964
|
-
var
|
|
18161
|
+
var deep = function deep(router) {
|
|
17965
18162
|
if (router && Array.isArray(router)) {
|
|
17966
18163
|
router.forEach(function (item) {
|
|
17967
18164
|
if (item.routes && Array.isArray(item.routes)) {
|
|
@@ -17971,7 +18168,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
17971
18168
|
d.nameEdit = true;
|
|
17972
18169
|
}
|
|
17973
18170
|
});
|
|
17974
|
-
|
|
18171
|
+
deep(item.routes);
|
|
17975
18172
|
} else if (!item.hideInMenu && (name ? formatMessage({
|
|
17976
18173
|
id: "menu.".concat(item.name)
|
|
17977
18174
|
}).indexOf(name) !== -1 : true)) {
|
|
@@ -17990,7 +18187,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
17990
18187
|
}));
|
|
17991
18188
|
}
|
|
17992
18189
|
};
|
|
17993
|
-
|
|
18190
|
+
deep(newRouter);
|
|
17994
18191
|
setroutesData([].concat(resultList));
|
|
17995
18192
|
};
|
|
17996
18193
|
var renderLineStyl = function renderLineStyl(name) {
|
|
@@ -18072,7 +18269,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18072
18269
|
},
|
|
18073
18270
|
title: item.fullPathName
|
|
18074
18271
|
}, renderLineStyl(item.fullPathName));
|
|
18075
|
-
}))))), showSelectStore && (/*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
18272
|
+
}))))), showSelectStore && ( /*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
18076
18273
|
employeeCode: employeeCode
|
|
18077
18274
|
})), /*#__PURE__*/React$1.createElement(GlobalHeaderRight, null));
|
|
18078
18275
|
};
|
|
@@ -18087,7 +18284,7 @@ var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
18087
18284
|
var TreeNode = Tree.TreeNode;
|
|
18088
18285
|
var Search$2 = Input.Search;
|
|
18089
18286
|
var dataList = [];
|
|
18090
|
-
var
|
|
18287
|
+
var generateList = function generateList(data) {
|
|
18091
18288
|
for (var i = 0; i < data.length; i++) {
|
|
18092
18289
|
var node = data[i];
|
|
18093
18290
|
var path = node.path,
|
|
@@ -18097,11 +18294,11 @@ var _generateList = function generateList(data) {
|
|
|
18097
18294
|
name: name
|
|
18098
18295
|
});
|
|
18099
18296
|
if (node.children) {
|
|
18100
|
-
|
|
18297
|
+
generateList(node.children);
|
|
18101
18298
|
}
|
|
18102
18299
|
}
|
|
18103
18300
|
};
|
|
18104
|
-
var
|
|
18301
|
+
var getParentKey = function getParentKey(path, tree) {
|
|
18105
18302
|
var parentKey;
|
|
18106
18303
|
for (var i = 0; i < tree.length; i++) {
|
|
18107
18304
|
var node = tree[i];
|
|
@@ -18110,8 +18307,8 @@ var _getParentKey = function getParentKey(path, tree) {
|
|
|
18110
18307
|
return item.path === path;
|
|
18111
18308
|
})) {
|
|
18112
18309
|
parentKey = node.path;
|
|
18113
|
-
} else if (
|
|
18114
|
-
parentKey =
|
|
18310
|
+
} else if (getParentKey(path, node.children)) {
|
|
18311
|
+
parentKey = getParentKey(path, node.children);
|
|
18115
18312
|
}
|
|
18116
18313
|
}
|
|
18117
18314
|
}
|
|
@@ -18142,7 +18339,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18142
18339
|
var treeData = _this.state.treeData;
|
|
18143
18340
|
var expandedKeys = dataList.map(function (item) {
|
|
18144
18341
|
if (item.name.indexOf(value) > -1) {
|
|
18145
|
-
return
|
|
18342
|
+
return getParentKey(item.path, treeData);
|
|
18146
18343
|
}
|
|
18147
18344
|
return null;
|
|
18148
18345
|
}).filter(function (item, i, self) {
|
|
@@ -18156,22 +18353,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18156
18353
|
};
|
|
18157
18354
|
_this.getPathList = function (originData) {
|
|
18158
18355
|
var pathList = [];
|
|
18159
|
-
var
|
|
18356
|
+
var getList = function getList(data) {
|
|
18160
18357
|
if (Array.isArray(data)) {
|
|
18161
18358
|
data.forEach(function (item) {
|
|
18162
18359
|
pathList.push(item.path);
|
|
18163
18360
|
if (item.children) {
|
|
18164
|
-
|
|
18361
|
+
getList(item.children);
|
|
18165
18362
|
}
|
|
18166
18363
|
});
|
|
18167
18364
|
} else {
|
|
18168
18365
|
pathList.push(data.path);
|
|
18169
18366
|
if (data.children) {
|
|
18170
|
-
|
|
18367
|
+
getList(data.children);
|
|
18171
18368
|
}
|
|
18172
18369
|
}
|
|
18173
18370
|
};
|
|
18174
|
-
|
|
18371
|
+
getList(originData);
|
|
18175
18372
|
return pathList;
|
|
18176
18373
|
};
|
|
18177
18374
|
_this.handleAdd2Menu = function (path) {
|
|
@@ -18180,18 +18377,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18180
18377
|
customerMenuData = _this$props.customerMenuData,
|
|
18181
18378
|
setCustomerMenuData = _this$props.setCustomerMenuData;
|
|
18182
18379
|
var filterItem;
|
|
18183
|
-
var
|
|
18380
|
+
var filterMenuItem = function filterMenuItem(menuData) {
|
|
18184
18381
|
menuData.forEach(function (item) {
|
|
18185
18382
|
if (item.path === path) {
|
|
18186
18383
|
filterItem = _objectSpread2({}, item);
|
|
18187
18384
|
return;
|
|
18188
18385
|
}
|
|
18189
18386
|
if (item.children) {
|
|
18190
|
-
|
|
18387
|
+
filterMenuItem(item.children);
|
|
18191
18388
|
}
|
|
18192
18389
|
});
|
|
18193
18390
|
};
|
|
18194
|
-
|
|
18391
|
+
filterMenuItem(treeData);
|
|
18195
18392
|
var addPathList = _this.getPathList(filterItem);
|
|
18196
18393
|
var oldPathList = _this.getPathList(customerMenuData);
|
|
18197
18394
|
var isRepet = false;
|
|
@@ -18221,8 +18418,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18221
18418
|
return item.path === '/';
|
|
18222
18419
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
18223
18420
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
18224
|
-
|
|
18225
|
-
|
|
18421
|
+
setMenuTreeData(routesData);
|
|
18422
|
+
generateList(routesData);
|
|
18226
18423
|
this.setState({
|
|
18227
18424
|
treeData: routesData
|
|
18228
18425
|
});
|
|
@@ -18236,16 +18433,16 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18236
18433
|
expandedKeys = _this$state.expandedKeys,
|
|
18237
18434
|
autoExpandParent = _this$state.autoExpandParent,
|
|
18238
18435
|
treeData = _this$state.treeData;
|
|
18239
|
-
var
|
|
18436
|
+
var loop = function loop(data) {
|
|
18240
18437
|
return data.map(function (item) {
|
|
18241
18438
|
var index = item.name.indexOf(searchValue);
|
|
18242
18439
|
var beforeStr = item.name.substr(0, index);
|
|
18243
18440
|
var afterStr = item.name.substr(index + searchValue.length);
|
|
18244
|
-
var name = index > -1 ? (/*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
18441
|
+
var name = index > -1 ? ( /*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
18245
18442
|
style: {
|
|
18246
18443
|
color: '#f50'
|
|
18247
18444
|
}
|
|
18248
|
-
}, searchValue), afterStr)) : (/*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
18445
|
+
}, searchValue), afterStr)) : ( /*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
18249
18446
|
if (item.children && item.children.length) {
|
|
18250
18447
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
18251
18448
|
path: item.path,
|
|
@@ -18267,7 +18464,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18267
18464
|
width: 18,
|
|
18268
18465
|
src: arrowRight
|
|
18269
18466
|
}))))
|
|
18270
|
-
},
|
|
18467
|
+
}, loop(item.children));
|
|
18271
18468
|
}
|
|
18272
18469
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
18273
18470
|
path: item.path,
|
|
@@ -18317,7 +18514,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18317
18514
|
onExpand: this.onExpand,
|
|
18318
18515
|
expandedKeys: expandedKeys,
|
|
18319
18516
|
autoExpandParent: autoExpandParent
|
|
18320
|
-
},
|
|
18517
|
+
}, loop(treeData))));
|
|
18321
18518
|
}
|
|
18322
18519
|
}]);
|
|
18323
18520
|
}(React$1.Component);
|
|
@@ -18350,24 +18547,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18350
18547
|
var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
|
|
18351
18548
|
var dragObj;
|
|
18352
18549
|
var finalDropItem;
|
|
18353
|
-
var
|
|
18550
|
+
var loop = function loop(data, path, callback) {
|
|
18354
18551
|
for (var i = 0; i < data.length; i++) {
|
|
18355
18552
|
if (data[i].path === path) {
|
|
18356
18553
|
return callback(data[i], i, data);
|
|
18357
18554
|
}
|
|
18358
18555
|
if (data[i].children) {
|
|
18359
|
-
|
|
18556
|
+
loop(data[i].children, path, callback);
|
|
18360
18557
|
}
|
|
18361
18558
|
}
|
|
18362
18559
|
};
|
|
18363
18560
|
var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
|
|
18364
|
-
|
|
18561
|
+
loop(data, dragKey, function (item, index, arr) {
|
|
18365
18562
|
arr.splice(index, 1);
|
|
18366
18563
|
dragObj = item;
|
|
18367
18564
|
});
|
|
18368
18565
|
if (!info.dropToGap) {
|
|
18369
18566
|
// Drop on the content
|
|
18370
|
-
|
|
18567
|
+
loop(data, dropKey, function (item) {
|
|
18371
18568
|
item.children = item.children || [];
|
|
18372
18569
|
item.children.unshift(dragObj);
|
|
18373
18570
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -18378,7 +18575,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18378
18575
|
// Is expanded
|
|
18379
18576
|
dropPosition === 1 // On the bottom gap
|
|
18380
18577
|
) {
|
|
18381
|
-
|
|
18578
|
+
loop(data, dropKey, function (item) {
|
|
18382
18579
|
item.children = item.children || [];
|
|
18383
18580
|
item.children.unshift(dragObj);
|
|
18384
18581
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -18386,7 +18583,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18386
18583
|
} else {
|
|
18387
18584
|
var ar;
|
|
18388
18585
|
var i;
|
|
18389
|
-
|
|
18586
|
+
loop(data, dropKey, function (item, index, arr) {
|
|
18390
18587
|
ar = arr;
|
|
18391
18588
|
i = index;
|
|
18392
18589
|
});
|
|
@@ -18425,17 +18622,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18425
18622
|
title: '编辑名称',
|
|
18426
18623
|
callBack: function callBack(newName) {
|
|
18427
18624
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
18428
|
-
var
|
|
18625
|
+
var editTreeDataName = function editTreeDataName(oldTreeData) {
|
|
18429
18626
|
oldTreeData.forEach(function (treeItem) {
|
|
18430
18627
|
if (treeItem.path === item.path) {
|
|
18431
18628
|
treeItem.name = newName;
|
|
18432
18629
|
}
|
|
18433
18630
|
if (treeItem.children) {
|
|
18434
|
-
|
|
18631
|
+
editTreeDataName(treeItem.children);
|
|
18435
18632
|
}
|
|
18436
18633
|
});
|
|
18437
18634
|
};
|
|
18438
|
-
|
|
18635
|
+
editTreeDataName(oldTreeData);
|
|
18439
18636
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
18440
18637
|
_this.setState({
|
|
18441
18638
|
modalInfo: {
|
|
@@ -18480,7 +18677,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18480
18677
|
title: '新增子目录',
|
|
18481
18678
|
callBack: function callBack(newName) {
|
|
18482
18679
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
18483
|
-
var
|
|
18680
|
+
var addChildFolder = function addChildFolder(oldTreeData) {
|
|
18484
18681
|
oldTreeData.forEach(function (treeItem) {
|
|
18485
18682
|
if (treeItem.path === item.path) {
|
|
18486
18683
|
treeItem.children ? treeItem.children.push({
|
|
@@ -18492,11 +18689,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18492
18689
|
}];
|
|
18493
18690
|
}
|
|
18494
18691
|
if (treeItem.children) {
|
|
18495
|
-
|
|
18692
|
+
addChildFolder(treeItem.children);
|
|
18496
18693
|
}
|
|
18497
18694
|
});
|
|
18498
18695
|
};
|
|
18499
|
-
|
|
18696
|
+
addChildFolder(oldTreeData);
|
|
18500
18697
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
18501
18698
|
_this.setState({
|
|
18502
18699
|
modalInfo: {
|
|
@@ -18555,7 +18752,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18555
18752
|
var _this$state = this.state,
|
|
18556
18753
|
modalInfo = _this$state.modalInfo,
|
|
18557
18754
|
checkedKeys = _this$state.checkedKeys;
|
|
18558
|
-
var
|
|
18755
|
+
var loop = function loop(data) {
|
|
18559
18756
|
return data.map(function (item) {
|
|
18560
18757
|
if (item.children && item.children.length) {
|
|
18561
18758
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
@@ -18572,7 +18769,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18572
18769
|
e.stopPropagation();
|
|
18573
18770
|
}
|
|
18574
18771
|
}, /*#__PURE__*/React$1.createElement(Space, null, /*#__PURE__*/React$1.createElement(EllipsisOutlined, null))))))
|
|
18575
|
-
},
|
|
18772
|
+
}, loop(item.children));
|
|
18576
18773
|
}
|
|
18577
18774
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
18578
18775
|
path: item.path,
|
|
@@ -18651,7 +18848,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18651
18848
|
children: 'children'
|
|
18652
18849
|
},
|
|
18653
18850
|
onDrop: this.onDrop
|
|
18654
|
-
},
|
|
18851
|
+
}, loop(this.props.customerMenuData))), /*#__PURE__*/React$1.createElement(Modal, {
|
|
18655
18852
|
width: 600,
|
|
18656
18853
|
bodyStyle: {
|
|
18657
18854
|
paddingTop: '32px',
|
|
@@ -18764,7 +18961,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18764
18961
|
pathname: item.path
|
|
18765
18962
|
});
|
|
18766
18963
|
};
|
|
18767
|
-
var
|
|
18964
|
+
var getMenuDom = function getMenuDom(menuData) {
|
|
18768
18965
|
return menuData.map(function (item) {
|
|
18769
18966
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
18770
18967
|
style: {
|
|
@@ -18779,7 +18976,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18779
18976
|
fontWeight: item.children || !item.component ? 'bolder' : '400',
|
|
18780
18977
|
paddingLeft: '4px'
|
|
18781
18978
|
}
|
|
18782
|
-
}, item.name), !!item.children && !!item.children.length &&
|
|
18979
|
+
}, item.name), !!item.children && !!item.children.length && getMenuDom(item.children));
|
|
18783
18980
|
});
|
|
18784
18981
|
};
|
|
18785
18982
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -18805,7 +19002,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18805
19002
|
style: {
|
|
18806
19003
|
paddingLeft: '5px'
|
|
18807
19004
|
}
|
|
18808
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
19005
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && ( /*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
18809
19006
|
style: {
|
|
18810
19007
|
left: isDrawer ? 140 : 0
|
|
18811
19008
|
},
|
|
@@ -18826,7 +19023,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18826
19023
|
visible: isDrawer
|
|
18827
19024
|
}, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("p", {
|
|
18828
19025
|
className: 'menu_title_line'
|
|
18829
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"),
|
|
19026
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"), getMenuDom(menuData)))), /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
18830
19027
|
title: /*#__PURE__*/React$1.createElement("span", {
|
|
18831
19028
|
style: {
|
|
18832
19029
|
fontWeight: '600',
|
|
@@ -18900,7 +19097,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
18900
19097
|
return item.path === '/';
|
|
18901
19098
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
18902
19099
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
18903
|
-
|
|
19100
|
+
setMenuTreeData(routesData);
|
|
18904
19101
|
routesData.forEach(function (item) {
|
|
18905
19102
|
if (item.children) {
|
|
18906
19103
|
routesDataList.push(item);
|
|
@@ -18930,7 +19127,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
18930
19127
|
setHeight(clientHeight - 190);
|
|
18931
19128
|
setDrawHeight(clientHeight - 70);
|
|
18932
19129
|
};
|
|
18933
|
-
var
|
|
19130
|
+
var renderChildItem = function renderChildItem(child) {
|
|
18934
19131
|
if (!child.hideInMenu && child.children) {
|
|
18935
19132
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
18936
19133
|
style: {
|
|
@@ -18940,7 +19137,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
18940
19137
|
}, formatMessage({
|
|
18941
19138
|
id: "".concat(child.locale)
|
|
18942
19139
|
})), child.children.map(function (menuItem) {
|
|
18943
|
-
return
|
|
19140
|
+
return renderChildItem(menuItem);
|
|
18944
19141
|
}));
|
|
18945
19142
|
} else if (!child.hideInMenu && child.path) {
|
|
18946
19143
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -19082,7 +19279,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19082
19279
|
onMenuClick(e, item);
|
|
19083
19280
|
}
|
|
19084
19281
|
}, item.name);
|
|
19085
|
-
}))), !!SearhData.length ? (/*#__PURE__*/React$1.createElement("div", {
|
|
19282
|
+
}))), !!SearhData.length ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
19086
19283
|
className: 'search_menu_content'
|
|
19087
19284
|
}, SearhData.map(function (item) {
|
|
19088
19285
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -19091,7 +19288,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19091
19288
|
},
|
|
19092
19289
|
key: item.path
|
|
19093
19290
|
}, item.name);
|
|
19094
|
-
}))) : (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
19291
|
+
}))) : ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
19095
19292
|
style: {
|
|
19096
19293
|
height: "".concat(rightMenuHeight, "px"),
|
|
19097
19294
|
overflowY: 'scroll',
|
|
@@ -19103,7 +19300,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19103
19300
|
className: 'drawerWarp_right'
|
|
19104
19301
|
}, homepageData && homepageData.filter(function (d) {
|
|
19105
19302
|
return !d.hideInMenu;
|
|
19106
|
-
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
19303
|
+
}).length > 0 && ( /*#__PURE__*/React$1.createElement(List, {
|
|
19107
19304
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
19108
19305
|
dataSource: homepageData,
|
|
19109
19306
|
renderItem: function renderItem(child) {
|
|
@@ -19144,7 +19341,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19144
19341
|
bordered: true,
|
|
19145
19342
|
dataSource: item.children,
|
|
19146
19343
|
renderItem: function renderItem(child) {
|
|
19147
|
-
return
|
|
19344
|
+
return renderChildItem(child);
|
|
19148
19345
|
}
|
|
19149
19346
|
});
|
|
19150
19347
|
})), /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -19302,10 +19499,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
19302
19499
|
var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
|
|
19303
19500
|
var menuKeys = [];
|
|
19304
19501
|
var docsId = [];
|
|
19305
|
-
var
|
|
19502
|
+
var getLimitedMenuKeys = function getLimitedMenuKeys(data) {
|
|
19306
19503
|
data.forEach(function (item) {
|
|
19307
19504
|
if (item.children && item.children.length > 0) {
|
|
19308
|
-
|
|
19505
|
+
getLimitedMenuKeys(item.children);
|
|
19309
19506
|
} else {
|
|
19310
19507
|
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
19311
19508
|
menuKeys.push(originPath);
|
|
@@ -19316,7 +19513,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
19316
19513
|
});
|
|
19317
19514
|
};
|
|
19318
19515
|
try {
|
|
19319
|
-
|
|
19516
|
+
getLimitedMenuKeys(limitedMenuData);
|
|
19320
19517
|
} catch (e) {}
|
|
19321
19518
|
return {
|
|
19322
19519
|
menuKeys: menuKeys,
|
|
@@ -19550,10 +19747,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
19550
19747
|
return (node.path || '').includes('all-general-documents');
|
|
19551
19748
|
};
|
|
19552
19749
|
// 递归获取树列表
|
|
19553
|
-
var
|
|
19750
|
+
var getTreeList = function getTreeList(data) {
|
|
19554
19751
|
data.forEach(function (node) {
|
|
19555
19752
|
if (node.routes && node.routes.length > 0) {
|
|
19556
|
-
|
|
19753
|
+
getTreeList(node.routes);
|
|
19557
19754
|
return;
|
|
19558
19755
|
}
|
|
19559
19756
|
// todo:暂时处理非wujie环境不做404管控
|
|
@@ -19584,7 +19781,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
19584
19781
|
}
|
|
19585
19782
|
});
|
|
19586
19783
|
};
|
|
19587
|
-
|
|
19784
|
+
getTreeList(treeData);
|
|
19588
19785
|
return treeList;
|
|
19589
19786
|
};
|
|
19590
19787
|
_this.getDictionarySource = function (dicCode) {
|
|
@@ -20100,10 +20297,22 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20100
20297
|
query: route.query,
|
|
20101
20298
|
match: match,
|
|
20102
20299
|
key: currentKey,
|
|
20300
|
+
state: route.state,
|
|
20103
20301
|
tab: _this2.getPageTitle(route.pathname) + ''
|
|
20104
20302
|
})]);
|
|
20105
20303
|
newListenRouterKey = [].concat(_toConsumableArray(listenRouterKey), [currentKey]);
|
|
20106
20304
|
}
|
|
20305
|
+
} else {
|
|
20306
|
+
// 更新已存储路由的query和state
|
|
20307
|
+
newListenRouterState = newListenRouterState.map(function (item) {
|
|
20308
|
+
if (item.key === currentKey) {
|
|
20309
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
20310
|
+
query: route.query,
|
|
20311
|
+
state: route.state
|
|
20312
|
+
});
|
|
20313
|
+
}
|
|
20314
|
+
return item;
|
|
20315
|
+
});
|
|
20107
20316
|
}
|
|
20108
20317
|
// -------------------处理页签关闭----------------------------
|
|
20109
20318
|
lastTwoRouterArray.push(route.pathname);
|
|
@@ -20201,7 +20410,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20201
20410
|
updateState = _ref8.updateState;
|
|
20202
20411
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
20203
20412
|
className: "tab_title_content"
|
|
20204
|
-
}, item.tab, item.key !== '/' && (/*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
20413
|
+
}, item.tab, item.key !== '/' && ( /*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
20205
20414
|
info: item,
|
|
20206
20415
|
operateFun: _this3.operateFun,
|
|
20207
20416
|
listenRouterState: listenRouterState
|
|
@@ -20337,7 +20546,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20337
20546
|
};
|
|
20338
20547
|
}
|
|
20339
20548
|
var OperationsSlot = {
|
|
20340
|
-
left: (/*#__PURE__*/React$1.createElement("div", {
|
|
20549
|
+
left: ( /*#__PURE__*/React$1.createElement("div", {
|
|
20341
20550
|
className: 'tab_left_operate'
|
|
20342
20551
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
20343
20552
|
onClick: function onClick() {
|
|
@@ -20353,7 +20562,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20353
20562
|
_this3.setTabNavTransLate(-100);
|
|
20354
20563
|
}
|
|
20355
20564
|
}, /*#__PURE__*/React$1.createElement(DoubleLeftOutlined, null)))),
|
|
20356
|
-
right: (/*#__PURE__*/React$1.createElement("div", {
|
|
20565
|
+
right: ( /*#__PURE__*/React$1.createElement("div", {
|
|
20357
20566
|
style: {
|
|
20358
20567
|
opacity: this.state.isSlider ? 1 : 0.5
|
|
20359
20568
|
},
|
|
@@ -20451,7 +20660,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20451
20660
|
onMouseLeave: function onMouseLeave() {
|
|
20452
20661
|
_this3.setShowMenu(false);
|
|
20453
20662
|
}
|
|
20454
|
-
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (/*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
20663
|
+
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && ( /*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
20455
20664
|
style: {
|
|
20456
20665
|
position: 'absolute',
|
|
20457
20666
|
top: '14px',
|
|
@@ -20470,7 +20679,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20470
20679
|
postMenuData: function postMenuData(menus) {
|
|
20471
20680
|
return _toConsumableArray(filterByMenuDate(menus || [], _this3.state.keyWord));
|
|
20472
20681
|
},
|
|
20473
|
-
links: [!this.state.collapse ? (/*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
20682
|
+
links: [!this.state.collapse ? ( /*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
20474
20683
|
ref: this.allFunc,
|
|
20475
20684
|
itemPath: itemPath,
|
|
20476
20685
|
handleClose: this.handleClose,
|
|
@@ -20488,7 +20697,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20488
20697
|
},
|
|
20489
20698
|
menu: {
|
|
20490
20699
|
request: function () {
|
|
20491
|
-
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
20700
|
+
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
20492
20701
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
20493
20702
|
while (1) switch (_context.prev = _context.next) {
|
|
20494
20703
|
case 0:
|
|
@@ -20556,7 +20765,8 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20556
20765
|
getDictionarySource: _this3.getDictionarySource,
|
|
20557
20766
|
getDictionaryTextByValue: _this3.getDictionaryTextByValue,
|
|
20558
20767
|
timeFormat: _this3.timeFormat,
|
|
20559
|
-
transparentProps: transparentProps
|
|
20768
|
+
transparentProps: transparentProps,
|
|
20769
|
+
activeKey: activeKey
|
|
20560
20770
|
}));
|
|
20561
20771
|
})), /*#__PURE__*/React$1.createElement("div", {
|
|
20562
20772
|
className: "globalTabsOper",
|
|
@@ -20607,6 +20817,9 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
20607
20817
|
// 适配wujie环境主应用下渲染打印编辑器
|
|
20608
20818
|
return true;
|
|
20609
20819
|
}
|
|
20820
|
+
if (nextProps.activeKey === nextProps.item.key && JSON.stringify(nextProps.item) !== JSON.stringify(this.props.item)) {
|
|
20821
|
+
return true;
|
|
20822
|
+
}
|
|
20610
20823
|
return false;
|
|
20611
20824
|
}
|
|
20612
20825
|
}, {
|
|
@@ -20619,7 +20832,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
20619
20832
|
getDictionaryTextByValue = _this$props4.getDictionaryTextByValue,
|
|
20620
20833
|
timeFormat = _this$props4.timeFormat,
|
|
20621
20834
|
transparentProps = _this$props4.transparentProps;
|
|
20622
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, item.isNotFound ? (/*#__PURE__*/React$1.createElement(NoFoundPage, null)) : /*#__PURE__*/React$1.createElement(item.content, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
20835
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, item.isNotFound ? ( /*#__PURE__*/React$1.createElement(NoFoundPage, null)) : /*#__PURE__*/React$1.createElement(item.content, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
20623
20836
|
getDictionarySource: getDictionarySource,
|
|
20624
20837
|
getDictionaryTextByValue: getDictionaryTextByValue,
|
|
20625
20838
|
timeFormat: timeFormat
|
|
@@ -20643,12 +20856,12 @@ var index$5 = (function (props) {
|
|
|
20643
20856
|
});
|
|
20644
20857
|
|
|
20645
20858
|
// @ts-nocheck
|
|
20646
|
-
var
|
|
20859
|
+
var getAllColumns = function getAllColumns(columns) {
|
|
20647
20860
|
var result = [];
|
|
20648
20861
|
columns.forEach(function (column) {
|
|
20649
20862
|
if (column.children) {
|
|
20650
20863
|
result.push(column);
|
|
20651
|
-
result.push.apply(result,
|
|
20864
|
+
result.push.apply(result, getAllColumns(column.children));
|
|
20652
20865
|
} else {
|
|
20653
20866
|
result.push(column);
|
|
20654
20867
|
}
|
|
@@ -20657,7 +20870,7 @@ var _getAllColumns = function getAllColumns(columns) {
|
|
|
20657
20870
|
};
|
|
20658
20871
|
var convertToRows = function convertToRows(originColumns) {
|
|
20659
20872
|
var maxLevel = 1;
|
|
20660
|
-
var
|
|
20873
|
+
var traverse = function traverse(column, parent) {
|
|
20661
20874
|
if (parent) {
|
|
20662
20875
|
column.level = parent.level + 1;
|
|
20663
20876
|
if (maxLevel < column.level) {
|
|
@@ -20667,7 +20880,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
20667
20880
|
if (column.children) {
|
|
20668
20881
|
var colSpan = 0;
|
|
20669
20882
|
column.children.forEach(function (subColumn) {
|
|
20670
|
-
|
|
20883
|
+
traverse(subColumn, column);
|
|
20671
20884
|
colSpan += subColumn.colSpan;
|
|
20672
20885
|
});
|
|
20673
20886
|
column.colSpan = colSpan;
|
|
@@ -20677,13 +20890,13 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
20677
20890
|
};
|
|
20678
20891
|
originColumns.forEach(function (column) {
|
|
20679
20892
|
column.level = 1;
|
|
20680
|
-
|
|
20893
|
+
traverse(column);
|
|
20681
20894
|
});
|
|
20682
20895
|
var rows = [];
|
|
20683
20896
|
for (var i = 0; i < maxLevel; i++) {
|
|
20684
20897
|
rows.push([]);
|
|
20685
20898
|
}
|
|
20686
|
-
var allColumns =
|
|
20899
|
+
var allColumns = getAllColumns(originColumns);
|
|
20687
20900
|
allColumns.forEach(function (column) {
|
|
20688
20901
|
if (!column.children) {
|
|
20689
20902
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -20723,7 +20936,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
20723
20936
|
};
|
|
20724
20937
|
var headersToRows = function headersToRows(originColumns) {
|
|
20725
20938
|
var maxLevel = 1;
|
|
20726
|
-
var
|
|
20939
|
+
var traverse = function traverse(column, parent) {
|
|
20727
20940
|
if (parent) {
|
|
20728
20941
|
//计算当前元素属于第几个层级
|
|
20729
20942
|
column.level = parent.level + 1;
|
|
@@ -20736,7 +20949,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
20736
20949
|
var colSpan = 0;
|
|
20737
20950
|
column.children.forEach(function (subColumn) {
|
|
20738
20951
|
//进行递归
|
|
20739
|
-
|
|
20952
|
+
traverse(subColumn, column);
|
|
20740
20953
|
colSpan += subColumn.colSpan;
|
|
20741
20954
|
});
|
|
20742
20955
|
column.colSpan = colSpan;
|
|
@@ -20746,14 +20959,14 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
20746
20959
|
};
|
|
20747
20960
|
originColumns.forEach(function (column) {
|
|
20748
20961
|
column.level = 1;
|
|
20749
|
-
|
|
20962
|
+
traverse(column);
|
|
20750
20963
|
});
|
|
20751
20964
|
var rows = [];
|
|
20752
20965
|
var lastData = [];
|
|
20753
20966
|
for (var i = 0; i < maxLevel; i++) {
|
|
20754
20967
|
rows.push([]);
|
|
20755
20968
|
}
|
|
20756
|
-
var allColumns =
|
|
20969
|
+
var allColumns = getAllColumns(originColumns);
|
|
20757
20970
|
allColumns.forEach(function (column) {
|
|
20758
20971
|
if (!column.children) {
|
|
20759
20972
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -26770,7 +26983,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
|
|
|
26770
26983
|
}
|
|
26771
26984
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
26772
26985
|
};
|
|
26773
|
-
var
|
|
26986
|
+
var hasHighLightChildren = function hasHighLightChildren() {
|
|
26774
26987
|
var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
26775
26988
|
var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
|
|
26776
26989
|
var children = hightLightData.children,
|
|
@@ -26781,7 +26994,7 @@ var _hasHighLightChildren = function hasHighLightChildren() {
|
|
|
26781
26994
|
lineEnd = _loc2[2];
|
|
26782
26995
|
if (children) {
|
|
26783
26996
|
return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
|
|
26784
|
-
return
|
|
26997
|
+
return hasHighLightChildren(v, highLightLine);
|
|
26785
26998
|
});
|
|
26786
26999
|
}
|
|
26787
27000
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
@@ -26793,7 +27006,7 @@ function createHighLightTreeData(treeData, highLightLine) {
|
|
|
26793
27006
|
var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
|
|
26794
27007
|
data.forEach(function (node) {
|
|
26795
27008
|
if (!node) return;
|
|
26796
|
-
node.toggled =
|
|
27009
|
+
node.toggled = hasHighLightChildren(node, highLightLine);
|
|
26797
27010
|
node.active = isHightLight(node, highLightLine);
|
|
26798
27011
|
if (node.children) {
|
|
26799
27012
|
if (node.active) {
|
|
@@ -28224,7 +28437,7 @@ var valueType = {
|
|
|
28224
28437
|
};
|
|
28225
28438
|
|
|
28226
28439
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
28227
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
28440
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
28228
28441
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
28229
28442
|
while (1) switch (_context.prev = _context.next) {
|
|
28230
28443
|
case 0:
|
|
@@ -28292,7 +28505,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
28292
28505
|
value: false
|
|
28293
28506
|
}];
|
|
28294
28507
|
var ref = useRef();
|
|
28295
|
-
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
28508
|
+
useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
28296
28509
|
var _ref$current, source;
|
|
28297
28510
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
28298
28511
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -28406,7 +28619,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
28406
28619
|
source: {
|
|
28407
28620
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
28408
28621
|
type: function () {
|
|
28409
|
-
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
28622
|
+
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
28410
28623
|
var form, values, name, relates, source;
|
|
28411
28624
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
28412
28625
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -28886,7 +29099,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
28886
29099
|
source: {
|
|
28887
29100
|
relates: ['choiceType', 'inputType'],
|
|
28888
29101
|
type: function () {
|
|
28889
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
29102
|
+
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
28890
29103
|
var values, name, form, source;
|
|
28891
29104
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
28892
29105
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -29108,7 +29321,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29108
29321
|
width: 900,
|
|
29109
29322
|
maskClosable: false,
|
|
29110
29323
|
onOk: function () {
|
|
29111
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
29324
|
+
var _onOk = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
29112
29325
|
var _ref$current4, _res$editableStatus;
|
|
29113
29326
|
var res, _res$defaultValue;
|
|
29114
29327
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -29180,7 +29393,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29180
29393
|
}()
|
|
29181
29394
|
}), /*#__PURE__*/React$1.createElement(Form$1, _objectSpread2(_objectSpread2({}, formConfig), {}, {
|
|
29182
29395
|
ref: ref
|
|
29183
|
-
})), maintainOptionsModal.visible && (/*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
29396
|
+
})), maintainOptionsModal.visible && ( /*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
29184
29397
|
};
|
|
29185
29398
|
|
|
29186
29399
|
// @ts-nocheck
|
|
@@ -29794,7 +30007,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
29794
30007
|
return setVisible(false);
|
|
29795
30008
|
},
|
|
29796
30009
|
className: 'customFieldsDrawer'
|
|
29797
|
-
}, detailTablesSetting.length == 0 && (/*#__PURE__*/React$1.createElement("div", {
|
|
30010
|
+
}, detailTablesSetting.length == 0 && ( /*#__PURE__*/React$1.createElement("div", {
|
|
29798
30011
|
style: {
|
|
29799
30012
|
display: 'flex'
|
|
29800
30013
|
}
|
|
@@ -29803,13 +30016,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
29803
30016
|
flex: 1,
|
|
29804
30017
|
width: 500
|
|
29805
30018
|
}
|
|
29806
|
-
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
30019
|
+
}, isEmpty(moduleParams) ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
29807
30020
|
style: {
|
|
29808
30021
|
padding: "10px 0",
|
|
29809
30022
|
fontSize: "16px",
|
|
29810
30023
|
fontWeight: "bolder"
|
|
29811
30024
|
}
|
|
29812
|
-
}, "\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$1.createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React$1.createElement("div", {
|
|
30025
|
+
}, "\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$1.createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React$1.createElement("div", {
|
|
29813
30026
|
style: {
|
|
29814
30027
|
flex: 1
|
|
29815
30028
|
}
|
|
@@ -29818,7 +30031,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
29818
30031
|
onRun: onClickRun,
|
|
29819
30032
|
value: jsonEditorVal,
|
|
29820
30033
|
shallowHeight: height
|
|
29821
|
-
})))), detailTablesSetting.length > 0 && (/*#__PURE__*/React$1.createElement(Tabs, {
|
|
30034
|
+
})))), detailTablesSetting.length > 0 && ( /*#__PURE__*/React$1.createElement(Tabs, {
|
|
29822
30035
|
defaultActiveKey: activeKey,
|
|
29823
30036
|
onChange: function onChange(v) {
|
|
29824
30037
|
return setActiveKey(v);
|
|
@@ -29835,13 +30048,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
29835
30048
|
flex: 1,
|
|
29836
30049
|
width: 500
|
|
29837
30050
|
}
|
|
29838
|
-
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
30051
|
+
}, isEmpty(moduleParams) ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
29839
30052
|
style: {
|
|
29840
30053
|
padding: "10px 0",
|
|
29841
30054
|
fontSize: "16px",
|
|
29842
30055
|
fontWeight: "bolder"
|
|
29843
30056
|
}
|
|
29844
|
-
}, "\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$1.createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React$1.createElement("div", {
|
|
30057
|
+
}, "\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$1.createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React$1.createElement("div", {
|
|
29845
30058
|
style: {
|
|
29846
30059
|
flex: 1
|
|
29847
30060
|
}
|
|
@@ -29863,13 +30076,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
29863
30076
|
flex: 1,
|
|
29864
30077
|
width: 500
|
|
29865
30078
|
}
|
|
29866
|
-
}, !tablesConfigParams[k.tableCode] ? (/*#__PURE__*/React$1.createElement("div", {
|
|
30079
|
+
}, !tablesConfigParams[k.tableCode] ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
29867
30080
|
style: {
|
|
29868
30081
|
padding: "10px 0",
|
|
29869
30082
|
fontSize: "16px",
|
|
29870
30083
|
fontWeight: "bolder"
|
|
29871
30084
|
}
|
|
29872
|
-
}, "\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$1.createElement(FieldsSettingsTable, _objectSpread2({}, tablesConfigParams[k.tableCode])))), /*#__PURE__*/React$1.createElement("div", {
|
|
30085
|
+
}, "\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$1.createElement(FieldsSettingsTable, _objectSpread2({}, tablesConfigParams[k.tableCode])))), /*#__PURE__*/React$1.createElement("div", {
|
|
29873
30086
|
style: {
|
|
29874
30087
|
flex: 1
|
|
29875
30088
|
}
|
|
@@ -30015,7 +30228,7 @@ function getMetaData(_x) {
|
|
|
30015
30228
|
|
|
30016
30229
|
// 获取数据
|
|
30017
30230
|
function _getMetaData() {
|
|
30018
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
30231
|
+
_getMetaData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
30019
30232
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30020
30233
|
while (1) switch (_context.prev = _context.next) {
|
|
30021
30234
|
case 0:
|
|
@@ -30237,7 +30450,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
30237
30450
|
tableState = _useState4[0],
|
|
30238
30451
|
setTableState = _useState4[1];
|
|
30239
30452
|
var handleOpen = /*#__PURE__*/function () {
|
|
30240
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30453
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30241
30454
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
30242
30455
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
30243
30456
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -30556,7 +30769,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
30556
30769
|
destroyOnClose: true
|
|
30557
30770
|
}, config && /*#__PURE__*/React$1.createElement(QueryTable, _objectSpread2({
|
|
30558
30771
|
ref: queryTableRef
|
|
30559
|
-
}, 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$1.createElement(Row, {
|
|
30772
|
+
}, 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$1.createElement(Row, {
|
|
30560
30773
|
justify: "center",
|
|
30561
30774
|
style: {
|
|
30562
30775
|
marginBottom: 30,
|
|
@@ -30672,7 +30885,7 @@ var CustomSelector = (function (props) {
|
|
|
30672
30885
|
var _props$ctx7;
|
|
30673
30886
|
return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
|
|
30674
30887
|
}
|
|
30675
|
-
})), showType === 'modalTable' && (/*#__PURE__*/React$1.createElement(Button, {
|
|
30888
|
+
})), showType === 'modalTable' && ( /*#__PURE__*/React$1.createElement(Button, {
|
|
30676
30889
|
type: "primary",
|
|
30677
30890
|
style: {
|
|
30678
30891
|
width: '30px',
|
|
@@ -30758,7 +30971,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
30758
30971
|
_useState2 = _slicedToArray(_useState, 2),
|
|
30759
30972
|
handSource = _useState2[0],
|
|
30760
30973
|
setHandSource = _useState2[1];
|
|
30761
|
-
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30974
|
+
useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30762
30975
|
var resData, data;
|
|
30763
30976
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30764
30977
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -30910,7 +31123,7 @@ function getRegularThresholdRange(_x) {
|
|
|
30910
31123
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
30911
31124
|
}
|
|
30912
31125
|
function _getRegularThresholdRange() {
|
|
30913
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
31126
|
+
_getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
30914
31127
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30915
31128
|
while (1) switch (_context.prev = _context.next) {
|
|
30916
31129
|
case 0:
|
|
@@ -31064,7 +31277,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
31064
31277
|
};
|
|
31065
31278
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
31066
31279
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
31067
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
31280
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
31068
31281
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
31069
31282
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31070
31283
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -32009,7 +32222,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32009
32222
|
isAll: true,
|
|
32010
32223
|
needNameAndCode: true,
|
|
32011
32224
|
notChangeOnSelect: true,
|
|
32012
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
32225
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
32013
32226
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
32014
32227
|
while (1) switch (_context2.prev = _context2.next) {
|
|
32015
32228
|
case 0:
|
|
@@ -32058,7 +32271,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32058
32271
|
isAll: true,
|
|
32059
32272
|
needNameAndCode: true,
|
|
32060
32273
|
notChangeOnSelect: true,
|
|
32061
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
32274
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
32062
32275
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
32063
32276
|
while (1) switch (_context3.prev = _context3.next) {
|
|
32064
32277
|
case 0:
|
|
@@ -32109,7 +32322,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32109
32322
|
isAll: true,
|
|
32110
32323
|
needNameAndCode: true,
|
|
32111
32324
|
notChangeOnSelect: true,
|
|
32112
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
32325
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
32113
32326
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
32114
32327
|
while (1) switch (_context4.prev = _context4.next) {
|
|
32115
32328
|
case 0:
|
|
@@ -34073,7 +34286,7 @@ var App$1 = function App(_ref) {
|
|
|
34073
34286
|
borderRadius: '5px',
|
|
34074
34287
|
cursor: 'pointer'
|
|
34075
34288
|
}
|
|
34076
|
-
}, isStaticNumber ? (/*#__PURE__*/React$1.createElement(Input, {
|
|
34289
|
+
}, isStaticNumber ? ( /*#__PURE__*/React$1.createElement(Input, {
|
|
34077
34290
|
autoFocus: true,
|
|
34078
34291
|
onClick: function onClick(e) {
|
|
34079
34292
|
return e.stopPropagation();
|
|
@@ -34360,7 +34573,7 @@ function RenderCompItem(props) {
|
|
|
34360
34573
|
dictData = _useState2[0],
|
|
34361
34574
|
setDictData = _useState2[1];
|
|
34362
34575
|
var getDictData = /*#__PURE__*/function () {
|
|
34363
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
34576
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
34364
34577
|
var _data$map;
|
|
34365
34578
|
var data;
|
|
34366
34579
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -34402,7 +34615,7 @@ function RenderCompItem(props) {
|
|
|
34402
34615
|
var style2 = {
|
|
34403
34616
|
width: '100px'
|
|
34404
34617
|
};
|
|
34405
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && (/*#__PURE__*/React$1.createElement(Input, {
|
|
34618
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && ( /*#__PURE__*/React$1.createElement(Input, {
|
|
34406
34619
|
disabled: disabled,
|
|
34407
34620
|
allowClear: true,
|
|
34408
34621
|
onClear: function onClear() {
|
|
@@ -34413,7 +34626,7 @@ function RenderCompItem(props) {
|
|
|
34413
34626
|
onBlur: function onBlur(e) {
|
|
34414
34627
|
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
34415
34628
|
}
|
|
34416
|
-
})) || 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$1.createElement(InputNumber, {
|
|
34629
|
+
})) || 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$1.createElement(InputNumber, {
|
|
34417
34630
|
disabled: disabled,
|
|
34418
34631
|
// max={Number.MAX_SAFE_INTEGER}
|
|
34419
34632
|
max: judgeIsEmpty(ites === null || ites === void 0 ? void 0 : ites.maxValue) ? Number.MAX_SAFE_INTEGER : ites.maxValue,
|
|
@@ -34426,7 +34639,7 @@ function RenderCompItem(props) {
|
|
|
34426
34639
|
onChange: function onChange(value) {
|
|
34427
34640
|
handleEdit(ites.code, value);
|
|
34428
34641
|
}
|
|
34429
|
-
})) || 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$1.createElement(DatePicker, {
|
|
34642
|
+
})) || 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$1.createElement(DatePicker, {
|
|
34430
34643
|
showTime: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 32,
|
|
34431
34644
|
format: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 41 ? dateFormat : fullDateFormat,
|
|
34432
34645
|
disabled: disabled,
|
|
@@ -34436,7 +34649,7 @@ function RenderCompItem(props) {
|
|
|
34436
34649
|
onChange: function onChange(value, dateString) {
|
|
34437
34650
|
handleEdit(ites.code, dateString);
|
|
34438
34651
|
}
|
|
34439
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && (/*#__PURE__*/React$1.createElement(RangePicker$1, {
|
|
34652
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && ( /*#__PURE__*/React$1.createElement(RangePicker$1, {
|
|
34440
34653
|
showTime: true,
|
|
34441
34654
|
disabled: disabled,
|
|
34442
34655
|
defaultValue: ites.defaultValue,
|
|
@@ -34445,7 +34658,7 @@ function RenderCompItem(props) {
|
|
|
34445
34658
|
onChange: function onChange(value, timeString) {
|
|
34446
34659
|
handleEdit(ites.code, timeString);
|
|
34447
34660
|
}
|
|
34448
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && (/*#__PURE__*/React$1.createElement(Switch, {
|
|
34661
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && ( /*#__PURE__*/React$1.createElement(Switch, {
|
|
34449
34662
|
disabled: disabled,
|
|
34450
34663
|
defaultChecked: !!ites.defaultValue,
|
|
34451
34664
|
style: style2,
|
|
@@ -34453,7 +34666,7 @@ function RenderCompItem(props) {
|
|
|
34453
34666
|
onChange: function onChange(value) {
|
|
34454
34667
|
handleEdit(ites.code, value);
|
|
34455
34668
|
}
|
|
34456
|
-
})) || 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$1.createElement(Select, _objectSpread2(_objectSpread2({
|
|
34669
|
+
})) || 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$1.createElement(Select, _objectSpread2(_objectSpread2({
|
|
34457
34670
|
disabled: disabled,
|
|
34458
34671
|
allowClear: true,
|
|
34459
34672
|
showArrow: true
|
|
@@ -34471,7 +34684,7 @@ function RenderCompItem(props) {
|
|
|
34471
34684
|
key: it,
|
|
34472
34685
|
value: it
|
|
34473
34686
|
}, ites.enumeration[it]);
|
|
34474
|
-
}))) || 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$1.createElement(InnerSelect, {
|
|
34687
|
+
}))) || 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$1.createElement(InnerSelect, {
|
|
34475
34688
|
disabled: disabled,
|
|
34476
34689
|
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
34477
34690
|
defaultValue: ites.defaultValue,
|
|
@@ -34481,7 +34694,7 @@ function RenderCompItem(props) {
|
|
|
34481
34694
|
handleEdit(ites.code, value);
|
|
34482
34695
|
},
|
|
34483
34696
|
dictionaryCode: ites.dictionaryCode
|
|
34484
|
-
})) || 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$1.createElement(BusinessSearchSelect$1, {
|
|
34697
|
+
})) || 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$1.createElement(BusinessSearchSelect$1, {
|
|
34485
34698
|
selectBusinessType: "physicalWarehouse",
|
|
34486
34699
|
selectProps: _objectSpread2({
|
|
34487
34700
|
style: styleCommon,
|
|
@@ -34503,7 +34716,7 @@ function RenderCompItem(props) {
|
|
|
34503
34716
|
getPopupContainer: function getPopupContainer() {
|
|
34504
34717
|
return document.body;
|
|
34505
34718
|
}
|
|
34506
|
-
})) || 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$1.createElement(BusinessSearchSelect$1, {
|
|
34719
|
+
})) || 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$1.createElement(BusinessSearchSelect$1, {
|
|
34507
34720
|
selectBusinessType: "realWarehouse",
|
|
34508
34721
|
selectProps: _objectSpread2({
|
|
34509
34722
|
style: styleCommon,
|
|
@@ -34525,7 +34738,7 @@ function RenderCompItem(props) {
|
|
|
34525
34738
|
getPopupContainer: function getPopupContainer() {
|
|
34526
34739
|
return document.body;
|
|
34527
34740
|
}
|
|
34528
|
-
})) || 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$1.createElement(BusinessSearchSelect$1, {
|
|
34741
|
+
})) || 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$1.createElement(BusinessSearchSelect$1, {
|
|
34529
34742
|
selectBusinessType: "virtualWarehouse",
|
|
34530
34743
|
selectProps: _objectSpread2({
|
|
34531
34744
|
style: styleCommon,
|
|
@@ -34547,7 +34760,7 @@ function RenderCompItem(props) {
|
|
|
34547
34760
|
getPopupContainer: function getPopupContainer() {
|
|
34548
34761
|
return document.body;
|
|
34549
34762
|
}
|
|
34550
|
-
})) || 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$1.createElement(BusinessSearchSelect$1, {
|
|
34763
|
+
})) || 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$1.createElement(BusinessSearchSelect$1, {
|
|
34551
34764
|
selectBusinessType: "channelWarehouse",
|
|
34552
34765
|
selectProps: _objectSpread2({
|
|
34553
34766
|
style: styleCommon,
|
|
@@ -34569,7 +34782,7 @@ function RenderCompItem(props) {
|
|
|
34569
34782
|
getPopupContainer: function getPopupContainer() {
|
|
34570
34783
|
return document.body;
|
|
34571
34784
|
}
|
|
34572
|
-
})) || 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$1.createElement(BusinessSearchSelect$1, {
|
|
34785
|
+
})) || 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$1.createElement(BusinessSearchSelect$1, {
|
|
34573
34786
|
selectBusinessType: "spuCommodity",
|
|
34574
34787
|
selectProps: _objectSpread2({
|
|
34575
34788
|
style: styleCommon,
|
|
@@ -34590,7 +34803,7 @@ function RenderCompItem(props) {
|
|
|
34590
34803
|
getPopupContainer: function getPopupContainer() {
|
|
34591
34804
|
return document.body;
|
|
34592
34805
|
}
|
|
34593
|
-
})) || 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$1.createElement(BusinessSearchSelect$1, {
|
|
34806
|
+
})) || 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$1.createElement(BusinessSearchSelect$1, {
|
|
34594
34807
|
selectBusinessType: "skuCommodity",
|
|
34595
34808
|
selectProps: _objectSpread2({
|
|
34596
34809
|
style: styleCommon,
|
|
@@ -34611,13 +34824,13 @@ function RenderCompItem(props) {
|
|
|
34611
34824
|
getPopupContainer: function getPopupContainer() {
|
|
34612
34825
|
return document.body;
|
|
34613
34826
|
}
|
|
34614
|
-
})) || 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$1.createElement(BsCascader, {
|
|
34827
|
+
})) || 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$1.createElement(BsCascader, {
|
|
34615
34828
|
disabled: disabled,
|
|
34616
34829
|
isAll: true,
|
|
34617
34830
|
needNameAndCode: true,
|
|
34618
34831
|
notChangeOnSelect: true,
|
|
34619
34832
|
initRequestSource: function () {
|
|
34620
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
34833
|
+
var _initRequestSource = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
34621
34834
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
34622
34835
|
while (1) switch (_context2.prev = _context2.next) {
|
|
34623
34836
|
case 0:
|
|
@@ -34659,7 +34872,7 @@ function RenderCompItem(props) {
|
|
|
34659
34872
|
getPopupContainer: function getPopupContainer() {
|
|
34660
34873
|
return document.body;
|
|
34661
34874
|
}
|
|
34662
|
-
})) || 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$1.createElement(BusinessTreeSearchSelect$1, {
|
|
34875
|
+
})) || 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$1.createElement(BusinessTreeSearchSelect$1, {
|
|
34663
34876
|
disabled: disabled,
|
|
34664
34877
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34665
34878
|
businessType: "department",
|
|
@@ -34672,7 +34885,7 @@ function RenderCompItem(props) {
|
|
|
34672
34885
|
getPopupContainer: function getPopupContainer() {
|
|
34673
34886
|
return document.body;
|
|
34674
34887
|
}
|
|
34675
|
-
})) || 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$1.createElement(BusinessTreeSearchSelect$1, {
|
|
34888
|
+
})) || 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$1.createElement(BusinessTreeSearchSelect$1, {
|
|
34676
34889
|
disabled: disabled,
|
|
34677
34890
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34678
34891
|
businessType: "purchase-organization",
|
|
@@ -34685,7 +34898,7 @@ function RenderCompItem(props) {
|
|
|
34685
34898
|
getPopupContainer: function getPopupContainer() {
|
|
34686
34899
|
return document.body;
|
|
34687
34900
|
}
|
|
34688
|
-
})) || 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$1.createElement(BusinessTreeSearchSelect$1, {
|
|
34901
|
+
})) || 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$1.createElement(BusinessTreeSearchSelect$1, {
|
|
34689
34902
|
disabled: disabled,
|
|
34690
34903
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34691
34904
|
businessType: "sales-organization",
|
|
@@ -34698,7 +34911,7 @@ function RenderCompItem(props) {
|
|
|
34698
34911
|
getPopupContainer: function getPopupContainer() {
|
|
34699
34912
|
return document.body;
|
|
34700
34913
|
}
|
|
34701
|
-
})) || 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$1.createElement(BusinessSearchSelect$1, {
|
|
34914
|
+
})) || 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$1.createElement(BusinessSearchSelect$1, {
|
|
34702
34915
|
selectBusinessType: "supplier2",
|
|
34703
34916
|
selectProps: _objectSpread2({
|
|
34704
34917
|
style: styleCommon,
|
|
@@ -34719,7 +34932,7 @@ function RenderCompItem(props) {
|
|
|
34719
34932
|
getPopupContainer: function getPopupContainer() {
|
|
34720
34933
|
return document.body;
|
|
34721
34934
|
}
|
|
34722
|
-
})) || 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$1.createElement(BusinessSearchSelect$1, {
|
|
34935
|
+
})) || 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$1.createElement(BusinessSearchSelect$1, {
|
|
34723
34936
|
selectBusinessType: "customer2",
|
|
34724
34937
|
selectProps: _objectSpread2({
|
|
34725
34938
|
style: styleCommon,
|
|
@@ -34740,7 +34953,7 @@ function RenderCompItem(props) {
|
|
|
34740
34953
|
getPopupContainer: function getPopupContainer() {
|
|
34741
34954
|
return document.body;
|
|
34742
34955
|
}
|
|
34743
|
-
})) || 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$1.createElement(BusinessSearchSelect$1, {
|
|
34956
|
+
})) || 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$1.createElement(BusinessSearchSelect$1, {
|
|
34744
34957
|
selectBusinessType: "shopFile2",
|
|
34745
34958
|
selectProps: _objectSpread2({
|
|
34746
34959
|
style: styleCommon,
|
|
@@ -34761,7 +34974,7 @@ function RenderCompItem(props) {
|
|
|
34761
34974
|
getPopupContainer: function getPopupContainer() {
|
|
34762
34975
|
return document.body;
|
|
34763
34976
|
}
|
|
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) === 270 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34977
|
+
})) || 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$1.createElement(BusinessSearchSelect$1, {
|
|
34765
34978
|
selectBusinessType: "employee2",
|
|
34766
34979
|
selectProps: _objectSpread2({
|
|
34767
34980
|
style: styleCommon,
|
|
@@ -34782,7 +34995,7 @@ function RenderCompItem(props) {
|
|
|
34782
34995
|
getPopupContainer: function getPopupContainer() {
|
|
34783
34996
|
return document.body;
|
|
34784
34997
|
}
|
|
34785
|
-
})) || 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$1.createElement(BusinessTreeSearchSelect$1, {
|
|
34998
|
+
})) || 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$1.createElement(BusinessTreeSearchSelect$1, {
|
|
34786
34999
|
disabled: disabled,
|
|
34787
35000
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34788
35001
|
businessType: "stock-organization",
|
|
@@ -34795,7 +35008,7 @@ function RenderCompItem(props) {
|
|
|
34795
35008
|
getPopupContainer: function getPopupContainer() {
|
|
34796
35009
|
return document.body;
|
|
34797
35010
|
}
|
|
34798
|
-
})) || 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$1.createElement(BusinessTreeSearchSelect$1, {
|
|
35011
|
+
})) || 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$1.createElement(BusinessTreeSearchSelect$1, {
|
|
34799
35012
|
disabled: disabled,
|
|
34800
35013
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34801
35014
|
businessType: "settle-organization",
|
|
@@ -34808,7 +35021,7 @@ function RenderCompItem(props) {
|
|
|
34808
35021
|
getPopupContainer: function getPopupContainer() {
|
|
34809
35022
|
return document.body;
|
|
34810
35023
|
}
|
|
34811
|
-
})) || 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$1.createElement(BusinessSearchSelect$1, {
|
|
35024
|
+
})) || 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$1.createElement(BusinessSearchSelect$1, {
|
|
34812
35025
|
selectBusinessType: "deliveryMode",
|
|
34813
35026
|
selectProps: _objectSpread2({
|
|
34814
35027
|
style: styleCommon,
|
|
@@ -34829,7 +35042,7 @@ function RenderCompItem(props) {
|
|
|
34829
35042
|
getPopupContainer: function getPopupContainer() {
|
|
34830
35043
|
return document.body;
|
|
34831
35044
|
}
|
|
34832
|
-
})) || 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$1.createElement(BusinessSearchSelect$1, {
|
|
35045
|
+
})) || 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$1.createElement(BusinessSearchSelect$1, {
|
|
34833
35046
|
selectBusinessType: "role",
|
|
34834
35047
|
selectProps: _objectSpread2({
|
|
34835
35048
|
style: styleCommon,
|
|
@@ -34850,7 +35063,7 @@ function RenderCompItem(props) {
|
|
|
34850
35063
|
getPopupContainer: function getPopupContainer() {
|
|
34851
35064
|
return document.body;
|
|
34852
35065
|
}
|
|
34853
|
-
})) || 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$1.createElement(BusinessSearchSelect$1, {
|
|
35066
|
+
})) || 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$1.createElement(BusinessSearchSelect$1, {
|
|
34854
35067
|
selectBusinessType: "brand",
|
|
34855
35068
|
selectProps: _objectSpread2({
|
|
34856
35069
|
style: styleCommon,
|
|
@@ -34871,7 +35084,7 @@ function RenderCompItem(props) {
|
|
|
34871
35084
|
getPopupContainer: function getPopupContainer() {
|
|
34872
35085
|
return document.body;
|
|
34873
35086
|
}
|
|
34874
|
-
})) || 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$1.createElement(BusinessTreeSearchSelect$1, {
|
|
35087
|
+
})) || 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$1.createElement(BusinessTreeSearchSelect$1, {
|
|
34875
35088
|
disabled: disabled,
|
|
34876
35089
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34877
35090
|
businessType: "background-category",
|
|
@@ -34884,7 +35097,7 @@ function RenderCompItem(props) {
|
|
|
34884
35097
|
getPopupContainer: function getPopupContainer() {
|
|
34885
35098
|
return document.body;
|
|
34886
35099
|
}
|
|
34887
|
-
})) || 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$1.createElement(CustomSelector, {
|
|
35100
|
+
})) || 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$1.createElement(CustomSelector, {
|
|
34888
35101
|
selectProps: _objectSpread2(_objectSpread2({
|
|
34889
35102
|
style: styleCommon,
|
|
34890
35103
|
placeholder: '请选择'
|
|
@@ -34907,7 +35120,7 @@ function RenderCompItem(props) {
|
|
|
34907
35120
|
onChange: function onChange(value) {
|
|
34908
35121
|
handleEdit(ites.code, value);
|
|
34909
35122
|
}
|
|
34910
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (/*#__PURE__*/React$1.createElement("div", {
|
|
35123
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && ( /*#__PURE__*/React$1.createElement("div", {
|
|
34911
35124
|
style: {
|
|
34912
35125
|
display: 'flex'
|
|
34913
35126
|
}
|
|
@@ -35419,7 +35632,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35419
35632
|
queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
|
|
35420
35633
|
queryIdentifyType = 'dynamicDictCodeIdentify';
|
|
35421
35634
|
}
|
|
35422
|
-
var parallelTreeData =
|
|
35635
|
+
var parallelTreeData = coverToParallel(ruleTreeData, []) || [];
|
|
35423
35636
|
var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
|
|
35424
35637
|
var _i$key;
|
|
35425
35638
|
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);
|
|
@@ -36346,13 +36559,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
36346
36559
|
var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
|
|
36347
36560
|
// 处理对象-设置了必填-规则实例保存时数据必填校验
|
|
36348
36561
|
if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
|
|
36349
|
-
var list =
|
|
36562
|
+
var list = coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
|
|
36350
36563
|
var requiredList = list.filter(function (c) {
|
|
36351
36564
|
return c.required == 1;
|
|
36352
36565
|
}) || []; // 获取对象属性为true的集合
|
|
36353
36566
|
(requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
|
|
36354
36567
|
var _s$expression, _s$expression$subExpr, _s$expression2, _coverExpressionTree$;
|
|
36355
|
-
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) ?
|
|
36568
|
+
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];
|
|
36356
36569
|
(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) {
|
|
36357
36570
|
if (requiredList.some(function (r) {
|
|
36358
36571
|
return r.id === e.elementId;
|
|
@@ -36941,7 +37154,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
36941
37154
|
style: {
|
|
36942
37155
|
float: 'right'
|
|
36943
37156
|
}
|
|
36944
|
-
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? (/*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
37157
|
+
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? ( /*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
36945
37158
|
onlyOneRule: (_handleDiff2 = handleDiff()) === null || _handleDiff2 === void 0 ? void 0 : _handleDiff2.onlyOneRule,
|
|
36946
37159
|
ruleGroupInfo: {
|
|
36947
37160
|
ruleGroupList: ruleGroupList,
|
|
@@ -36959,7 +37172,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
36959
37172
|
callBack: function callBack(newData) {
|
|
36960
37173
|
upDateData(newData);
|
|
36961
37174
|
}
|
|
36962
|
-
}))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
37175
|
+
}))) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
36963
37176
|
style: {
|
|
36964
37177
|
padding: 20
|
|
36965
37178
|
}
|
|
@@ -37334,4 +37547,4 @@ var ParagraphCopier = function ParagraphCopier(props) {
|
|
|
37334
37547
|
}, children));
|
|
37335
37548
|
};
|
|
37336
37549
|
|
|
37337
|
-
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, ParagraphCopier, QueryMutipleInput, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy,
|
|
37550
|
+
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, ParagraphCopier, QueryMutipleInput, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy, coverToParallel, createUniqID, downloadExcel, ergodicMenuRoutes, formatter, getAccountID, getAccountId, getBreadcrumbNameMap, getCommonInfoKey, getConfigTableColumns, getCurrentTargetBgId, getCurrentTenantId, getDictionarySource, getDictionaryTextByValue, getEmployeeCode, getEmployeeId, getItemDefaultWidth$1 as getItemDefaultWidth, getJoinDictionaryText, getLastKey, getLimitMenuDataKey, getLocalStorageSaveKey, getMenuAuthDataKey, getSessionId, getSkuImg, getTenantList, getUserId, getUserName, go2BackAndClose, handleAntdColumnsSpecialParams, handleBaseUrlPre, handleBeforeUpload, handleBssulaColumnsSpecialParams, handleCommonTimeRender$1 as handleCommonTimeRender, handleConvertResponse, handleError, handleExport, handleExportBarCode, handleJudgeAuthButtons, handleOssUrl, handleRequestAuthHeader, handleRequestHeader, handleRequestUrl, handleStatusBadge, handleTextBreakSpaces, handleTextDouble$1 as handleTextDouble, handleTextDoubleOrId, handleTextLineFeed$1 as handleTextLineFeed, handleTextOverflow$1 as handleTextOverflow, handleTextTooltip, handleTextWarp, handleTextWarpCustom, handleTooltip$1 as handleTooltip, handleTooltipHours$1 as handleTooltipHours, handleUserPhone, judgeIsEmpty, judgeIsRequestError, judgeIsRequestSuccess, keyToWord, memoizeOneFormatter, noEmptyArr, noEmptyArray, paramsControl, parseWidth, precisionQuantity, randomString, readerXlsxToList, removeCurrentTenantId, removeTenantList, renderFixed2, renderNumberText, saveCurrentTenantId, saveTenantList, setConfigTableColumns, shouldUseAuth, socketFunctions, sulaTableRenderTooltip, tableColumnsImage$1 as tableColumnsImage, textIcon, updateGuanDate, userColumns$1 as userColumns, userInfoCard$1 as userInfoCard, uuid, writeListToXlsx };
|