@bit-sun/business-component 4.0.12-alpha.3 → 4.0.12-alpha.5
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/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 ? (
|
|
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)))) : (
|
|
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(
|
|
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(
|
|
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 ? (
|
|
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)))) : (
|
|
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' && (
|
|
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' && (
|
|
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(
|
|
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 && (
|
|
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 && (
|
|
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"
|
|
@@ -4075,7 +4075,7 @@ function ToCDB(str) {
|
|
|
4075
4075
|
return tmp;
|
|
4076
4076
|
}
|
|
4077
4077
|
|
|
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
|
|
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_show .ant-select-multiple.ant-select-show-arrow .ant-select-selector,\n.search_select_show .ant-select-multiple.ant-select-allow-clear .ant-select-selector {\n padding-right: 28px;\n}\n.search_select_expand_button {\n position: relative;\n right: -11px;\n width: 30px;\n border-left: 1px solid #d9d9d9;\n height: 24px;\n cursor: pointer;\n font-size: 14px;\n font-weight: bolder;\n}\n.search_select_expand_button span {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.search_select_expand_button:hover {\n background-color: #005cff;\n color: #fff;\n border-top-right-radius: 2px;\n border-bottom-right-radius: 2px;\n}\n.search_select_expand_button_disabled:hover {\n background-color: transparent;\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.search_select_dropdown_table .ant-table-cell .ant-table-selection-column .ant-radio,\n.search_select_dropdown_table table tr td.ant-table-selection-column .ant-radio-wrapper {\n display: none;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table {\n font-family: MiSans-Regular;\n font-weight: 400;\n font-size: 12px;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table thead > tr > th {\n color: #7F7F7F;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper {\n justify-content: center;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table tbody > tr > td {\n color: #333333;\n}\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-body > table > tbody > tr > td.ant-table-selection-column,\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-header > table > thead > tr > th.ant-table-selection-column {\n display: none;\n}\n.search_select_modal_wrapper .ant-modal {\n top: 60px;\n}\n.search_select_modal_wrapper .ant-modal-header {\n padding: 6px 0px 6px 16px;\n}\n.search_select_modal_wrapper .ant-modal-header .ant-modal-title {\n height: 20px;\n color: #000000;\n line-height: 20px;\n}\n.search_select_modal_wrapper .ant-modal-close-x {\n width: 32px;\n height: 32px;\n line-height: 32px;\n}\n.search_select_modal_wrapper .ant-modal-body {\n padding: 0px;\n background: #F3F3F3;\n height: calc(100vh - 235px);\n overflow: hidden;\n}\n.search_select_modal_wrapper .ant-modal-footer .ant-btn.ant-btn-default {\n color: #005cff;\n border-color: #005cff;\n}\n.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary,\n.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary[disabled] {\n background: #005cff;\n border-color: #005cff;\n}\n.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary[disabled] {\n opacity: 0.5;\n color: #fff;\n}\n.search_select_wrapper {\n position: relative;\n font-size: 14px;\n}\n.search_select_wrapper_topForm .select_list_columns {\n width: 100%;\n padding: 10px 6px 2px 16px;\n background-color: #fff;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form {\n padding: 0;\n 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";
|
|
4079
4079
|
styleInject(css_248z$5);
|
|
4080
4080
|
|
|
4081
4081
|
var columnsPerRow = 4; // 每行的列数
|
|
@@ -4736,20 +4736,22 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4736
4736
|
};
|
|
4737
4737
|
var handleSelectOver = function handleSelectOver(selectedValue) {
|
|
4738
4738
|
if (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.length) {
|
|
4739
|
+
var _ctx$form2;
|
|
4739
4740
|
// 解决选择最后1页的sku,返回后,不显示名称问题
|
|
4740
|
-
|
|
4741
|
+
var source = _.uniqBy(items.concat(selectedValue), 'value');
|
|
4742
|
+
ctx === null || ctx === void 0 ? void 0 : (_ctx$form2 = ctx.form) === null || _ctx$form2 === void 0 ? void 0 : _ctx$form2.setFieldSource(resultSourceKey, source);
|
|
4743
|
+
setSelectDataSource(source, source === null || source === void 0 ? void 0 : source.length);
|
|
4741
4744
|
formaData(selectedValue, source);
|
|
4742
4745
|
} else {
|
|
4743
4746
|
var formatResult = selectMode ? [] : null;
|
|
4744
4747
|
onChange(formatResult, selectedValue);
|
|
4745
4748
|
}
|
|
4746
4749
|
};
|
|
4747
|
-
var handleOk = function handleOk(
|
|
4748
|
-
var pValue = sValue || popvalue;
|
|
4750
|
+
var handleOk = function handleOk() {
|
|
4749
4751
|
// 按钮保存可传入
|
|
4750
4752
|
if (onSaveCallback) {
|
|
4751
4753
|
setConfirmLoading(true);
|
|
4752
|
-
onSaveCallback(
|
|
4754
|
+
onSaveCallback(popvalue).then(function (res) {
|
|
4753
4755
|
{
|
|
4754
4756
|
var _Object$keys;
|
|
4755
4757
|
// 成功信息可以在调用处处理 即resolve({messageSuccessBackInfo: { needThrowSuccess: false } })、resolve({messageSuccessBackInfo: { needThrowSuccess: true, successMessage: '已保存' } })
|
|
@@ -4772,18 +4774,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4772
4774
|
setConfirmLoading(false);
|
|
4773
4775
|
});
|
|
4774
4776
|
} else {
|
|
4775
|
-
handleSelectOver(
|
|
4777
|
+
handleSelectOver(popvalue);
|
|
4776
4778
|
handleCancel();
|
|
4777
4779
|
}
|
|
4778
4780
|
};
|
|
4779
|
-
// 更新选中数据位置
|
|
4780
|
-
var updateSelectDataSource = function updateSelectDataSource(selectedValues) {
|
|
4781
|
-
var _ctx$form2;
|
|
4782
|
-
var nSource = _.uniqBy(selectedValues.concat(items), 'value');
|
|
4783
|
-
ctx === null || ctx === void 0 ? void 0 : (_ctx$form2 = ctx.form) === null || _ctx$form2 === void 0 ? void 0 : _ctx$form2.setFieldSource(resultSourceKey, nSource);
|
|
4784
|
-
setSelectDataSource(nSource, nSource === null || nSource === void 0 ? void 0 : nSource.length);
|
|
4785
|
-
};
|
|
4786
|
-
// 下拉框 / 弹窗 选中数据之后 最终都会执行此函数
|
|
4787
4781
|
var formaData = function formaData(value, source) {
|
|
4788
4782
|
if (labelInValue) {
|
|
4789
4783
|
var formatResult = value.map(function (i) {
|
|
@@ -4886,7 +4880,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4886
4880
|
})) || [];
|
|
4887
4881
|
// 单选 默认直接选中 不需要确定 配置了modalRadioNeedFooter就需要确定
|
|
4888
4882
|
if (!selectMode && !(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.modalRadioNeedFooter)) {
|
|
4889
|
-
|
|
4883
|
+
handleSelectOver(selectRows);
|
|
4884
|
+
handleCancel();
|
|
4890
4885
|
}
|
|
4891
4886
|
setSelectedRowKeys(sksResult);
|
|
4892
4887
|
setSelectedRows(selectRows);
|
|
@@ -5321,13 +5316,13 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5321
5316
|
var isShouldShowStr = props.disabled && ctx || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) == 'view';
|
|
5322
5317
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
5323
5318
|
className: 'search_select'
|
|
5324
|
-
}, fieldComponent ? (
|
|
5319
|
+
}, fieldComponent ? (/*#__PURE__*/React$1.createElement("div", {
|
|
5325
5320
|
onClick: function onClick() {
|
|
5326
5321
|
var _fieldComponent$props, _fieldComponent$props2;
|
|
5327
5322
|
(_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);
|
|
5328
5323
|
showModal();
|
|
5329
5324
|
}
|
|
5330
|
-
}, fieldComponent)) : isShouldShowStr ? (
|
|
5325
|
+
}, fieldComponent)) : isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
5331
5326
|
title: getShowStr(),
|
|
5332
5327
|
style: {
|
|
5333
5328
|
overflow: 'hidden',
|
|
@@ -5354,10 +5349,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5354
5349
|
dropdownRender: function dropdownRender(menu) {
|
|
5355
5350
|
return (items === null || items === void 0 ? void 0 : items.length) ? renderTable(items) : menu;
|
|
5356
5351
|
},
|
|
5357
|
-
notFoundContent: fetching ? (
|
|
5352
|
+
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
5358
5353
|
size: "small",
|
|
5359
5354
|
className: 'searchSelectSpin'
|
|
5360
|
-
})) : (
|
|
5355
|
+
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
5361
5356
|
style: {
|
|
5362
5357
|
textAlign: 'center'
|
|
5363
5358
|
}
|
|
@@ -5388,7 +5383,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5388
5383
|
text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
|
|
5389
5384
|
filterTxt: searchValue
|
|
5390
5385
|
}));
|
|
5391
|
-
}))), needModalTable && isModalVisible && (
|
|
5386
|
+
}))), needModalTable && isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
5392
5387
|
maskClosable: false,
|
|
5393
5388
|
destroyOnClose: true,
|
|
5394
5389
|
width: "80%",
|
|
@@ -5985,7 +5980,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
5985
5980
|
style: {
|
|
5986
5981
|
width: 525
|
|
5987
5982
|
}
|
|
5988
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
5983
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
5989
5984
|
checked: !dataSource.some(function (item) {
|
|
5990
5985
|
if (item.hidden) return true;
|
|
5991
5986
|
return false;
|
|
@@ -6023,13 +6018,13 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6023
6018
|
_this2.onChange(e, item.title);
|
|
6024
6019
|
}
|
|
6025
6020
|
}, item.title);
|
|
6026
|
-
}), !!seatchDataSource.length && (
|
|
6021
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
6027
6022
|
style: {
|
|
6028
6023
|
width: '144px'
|
|
6029
6024
|
}
|
|
6030
|
-
})), !seatchDataSource.length && (
|
|
6025
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
6031
6026
|
className: 'sort_table_column_all_empty'
|
|
6032
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
6027
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
6033
6028
|
className: 'sort_table_column_special'
|
|
6034
6029
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
6035
6030
|
className: 'sort_table_column_all'
|
|
@@ -6218,7 +6213,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
|
|
|
6218
6213
|
});
|
|
6219
6214
|
};
|
|
6220
6215
|
// 格式化树选择器数据源
|
|
6221
|
-
var
|
|
6216
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
6222
6217
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
6223
6218
|
return {
|
|
6224
6219
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -6228,7 +6223,7 @@ var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
|
6228
6223
|
isLeaf: !haveChildren,
|
|
6229
6224
|
disabled: haveChildren,
|
|
6230
6225
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
6231
|
-
return
|
|
6226
|
+
return _mapSearchTree(i, resKeyValue);
|
|
6232
6227
|
}) : []
|
|
6233
6228
|
};
|
|
6234
6229
|
};
|
|
@@ -6237,7 +6232,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
6237
6232
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
6238
6233
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
6239
6234
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
6240
|
-
return
|
|
6235
|
+
return _mapSearchTree(ites, resKeyValue);
|
|
6241
6236
|
}) || [];
|
|
6242
6237
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
6243
6238
|
};
|
|
@@ -6408,7 +6403,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
6408
6403
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
6409
6404
|
// FIXME: 特殊业务逻辑
|
|
6410
6405
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
6411
|
-
var _ref2 = _asyncToGenerator(
|
|
6406
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
6412
6407
|
var result;
|
|
6413
6408
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
6414
6409
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -6661,7 +6656,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
6661
6656
|
return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
6662
6657
|
value: text || null,
|
|
6663
6658
|
onChange: function () {
|
|
6664
|
-
var _onChange = _asyncToGenerator(
|
|
6659
|
+
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
6665
6660
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
6666
6661
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
6667
6662
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -7269,10 +7264,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7269
7264
|
var newColumns = arr.map(function (col) {
|
|
7270
7265
|
return _objectSpread2({}, col);
|
|
7271
7266
|
});
|
|
7272
|
-
var
|
|
7267
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
7273
7268
|
var i = indexArr.shift();
|
|
7274
7269
|
if (indexArr.length > 0) {
|
|
7275
|
-
|
|
7270
|
+
_handleIndex(arr[i].children, indexArr);
|
|
7276
7271
|
} else {
|
|
7277
7272
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
7278
7273
|
width: size.width
|
|
@@ -7280,7 +7275,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7280
7275
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
7281
7276
|
}
|
|
7282
7277
|
};
|
|
7283
|
-
|
|
7278
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
7284
7279
|
callback(newColumns);
|
|
7285
7280
|
};
|
|
7286
7281
|
};
|
|
@@ -7290,13 +7285,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
7290
7285
|
var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
|
|
7291
7286
|
setShowToChooseColumns(_toConsumableArray(newColumns));
|
|
7292
7287
|
};
|
|
7293
|
-
var
|
|
7288
|
+
var _handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
7294
7289
|
arr.forEach(function (item, index) {
|
|
7295
7290
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
7296
7291
|
return i || i === 0;
|
|
7297
7292
|
});
|
|
7298
7293
|
if (noEmptyArray$1(item.children)) {
|
|
7299
|
-
|
|
7294
|
+
_handleColumns(item.children, indexArrInside);
|
|
7300
7295
|
} else {
|
|
7301
7296
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
7302
7297
|
item.onHeaderCell = function (column) {
|
|
@@ -7312,14 +7307,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
7312
7307
|
handleAntdColumnsSpecialParams(item);
|
|
7313
7308
|
return _objectSpread2({}, item);
|
|
7314
7309
|
});
|
|
7315
|
-
|
|
7310
|
+
_handleColumns(showToChooseCol, [], function (res) {
|
|
7316
7311
|
return setShowToChooseColumnsCallback(res);
|
|
7317
7312
|
});
|
|
7318
7313
|
var showSelectedCol = showColumns.map(function (item) {
|
|
7319
7314
|
handleAntdColumnsSpecialParams(item);
|
|
7320
7315
|
return _objectSpread2({}, item);
|
|
7321
7316
|
});
|
|
7322
|
-
|
|
7317
|
+
_handleColumns(showSelectedCol, [], function (res) {
|
|
7323
7318
|
return setShowColumnsCallback(res);
|
|
7324
7319
|
});
|
|
7325
7320
|
var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
|
|
@@ -7330,7 +7325,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7330
7325
|
id: "add_select_div_".concat(uniqueValue)
|
|
7331
7326
|
}, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
7332
7327
|
onClick: handleShowModal
|
|
7333
|
-
}, realButtonProps), buttonText)), isModalVisible && (
|
|
7328
|
+
}, realButtonProps), buttonText)), isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
7334
7329
|
width: '1200px',
|
|
7335
7330
|
style: {
|
|
7336
7331
|
top: 20
|
|
@@ -8244,7 +8239,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8244
8239
|
});
|
|
8245
8240
|
};
|
|
8246
8241
|
var handleSubmit = /*#__PURE__*/function () {
|
|
8247
|
-
var _ref4 = _asyncToGenerator(
|
|
8242
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
8248
8243
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
8249
8244
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
8250
8245
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -8327,10 +8322,10 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8327
8322
|
var newColumns = arr.map(function (col) {
|
|
8328
8323
|
return _objectSpread2({}, col);
|
|
8329
8324
|
});
|
|
8330
|
-
var
|
|
8325
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
8331
8326
|
var i = indexArr.shift();
|
|
8332
8327
|
if (indexArr.length > 0) {
|
|
8333
|
-
|
|
8328
|
+
_handleIndex(arr[i].children, indexArr);
|
|
8334
8329
|
} else {
|
|
8335
8330
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
8336
8331
|
width: size.width
|
|
@@ -8338,17 +8333,17 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8338
8333
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
8339
8334
|
}
|
|
8340
8335
|
};
|
|
8341
|
-
|
|
8336
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
8342
8337
|
callback(newColumns);
|
|
8343
8338
|
};
|
|
8344
8339
|
};
|
|
8345
|
-
var
|
|
8340
|
+
var _handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
8346
8341
|
arr.forEach(function (item, index) {
|
|
8347
8342
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
8348
8343
|
return i || i === 0;
|
|
8349
8344
|
});
|
|
8350
8345
|
if (noEmptyArray$1(item.children)) {
|
|
8351
|
-
|
|
8346
|
+
_handleColumns(item.children, indexArrInside);
|
|
8352
8347
|
} else {
|
|
8353
8348
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
8354
8349
|
item.onHeaderCell = function (column) {
|
|
@@ -8364,7 +8359,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8364
8359
|
handleAntdColumnsSpecialParams(item);
|
|
8365
8360
|
return _objectSpread2({}, item);
|
|
8366
8361
|
});
|
|
8367
|
-
|
|
8362
|
+
_handleColumns(showSelectedCol, [], function (res) {
|
|
8368
8363
|
return setShowColumnsCallback(res);
|
|
8369
8364
|
});
|
|
8370
8365
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -8678,7 +8673,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8678
8673
|
});
|
|
8679
8674
|
};
|
|
8680
8675
|
// 格式化树选择器数据源
|
|
8681
|
-
var
|
|
8676
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
8682
8677
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
8683
8678
|
return {
|
|
8684
8679
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -8688,7 +8683,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8688
8683
|
isLeaf: !haveChildren,
|
|
8689
8684
|
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
8690
8685
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
8691
|
-
return
|
|
8686
|
+
return _mapSearchTree(i, resKeyValue, disabledJudge);
|
|
8692
8687
|
}) : []
|
|
8693
8688
|
};
|
|
8694
8689
|
};
|
|
@@ -8702,7 +8697,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8702
8697
|
disabledJudge = false;
|
|
8703
8698
|
}
|
|
8704
8699
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
8705
|
-
return
|
|
8700
|
+
return _mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
8706
8701
|
}) || [];
|
|
8707
8702
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
8708
8703
|
};
|
|
@@ -12748,7 +12743,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
12748
12743
|
};
|
|
12749
12744
|
return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
12750
12745
|
onClick: handleShowModal
|
|
12751
|
-
}, buttonProps), buttonName), modalProps.visible && (
|
|
12746
|
+
}, buttonProps), buttonName), modalProps.visible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
12752
12747
|
onOk: handleOk,
|
|
12753
12748
|
onCancel: handleCancel,
|
|
12754
12749
|
destroyOnClose: true,
|
|
@@ -12867,7 +12862,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12867
12862
|
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
|
|
12868
12863
|
_remoteSource$special = remoteSource.specialBracket,
|
|
12869
12864
|
specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
|
|
12870
|
-
var
|
|
12865
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
12871
12866
|
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
12872
12867
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
12873
12868
|
return {
|
|
@@ -12879,7 +12874,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12879
12874
|
isLeaf: !haveChildren,
|
|
12880
12875
|
disabled: isDisabled(haveChildren, isRoot),
|
|
12881
12876
|
children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
|
|
12882
|
-
return
|
|
12877
|
+
return _mapSearchTree(i);
|
|
12883
12878
|
}) : []
|
|
12884
12879
|
};
|
|
12885
12880
|
};
|
|
@@ -12897,8 +12892,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12897
12892
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
12898
12893
|
requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
|
|
12899
12894
|
headers: headers
|
|
12900
|
-
}).then(
|
|
12901
|
-
var _ref = _asyncToGenerator(
|
|
12895
|
+
}).then(/*#__PURE__*/function () {
|
|
12896
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
12902
12897
|
var _ctx$form;
|
|
12903
12898
|
var resData, coverData, data, dataList;
|
|
12904
12899
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -12925,7 +12920,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12925
12920
|
case 9:
|
|
12926
12921
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
12927
12922
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
12928
|
-
return
|
|
12923
|
+
return _mapSearchTree(ites);
|
|
12929
12924
|
}) || [];
|
|
12930
12925
|
case 11:
|
|
12931
12926
|
_context.next = 14;
|
|
@@ -12963,11 +12958,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12963
12958
|
return _formatResult;
|
|
12964
12959
|
}
|
|
12965
12960
|
};
|
|
12966
|
-
var
|
|
12961
|
+
var _parallelData = function parallelData(data, result) {
|
|
12967
12962
|
data.forEach(function (i) {
|
|
12968
12963
|
result.push(i);
|
|
12969
12964
|
if (i[treeChildrenRoom]) {
|
|
12970
|
-
|
|
12965
|
+
_parallelData(i[treeChildrenRoom], result);
|
|
12971
12966
|
}
|
|
12972
12967
|
});
|
|
12973
12968
|
return result;
|
|
@@ -13007,7 +13002,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13007
13002
|
var _ctx$form2;
|
|
13008
13003
|
var handleData = formatData(data);
|
|
13009
13004
|
// 获取选中树节点当条数据,并返回给调用业务
|
|
13010
|
-
var parallelTreeData =
|
|
13005
|
+
var parallelTreeData = _parallelData(treeData, []);
|
|
13011
13006
|
var currentItem = getSelectItem(parallelTreeData, data);
|
|
13012
13007
|
onChange(handleData, data, currentItem, parallelTreeData);
|
|
13013
13008
|
onChangeName && onChangeName(dataName);
|
|
@@ -13050,7 +13045,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13050
13045
|
var getShowStr = function getShowStr() {
|
|
13051
13046
|
var isMultiple = multiple || treeCheckable;
|
|
13052
13047
|
var kongValue = '无';
|
|
13053
|
-
var parallelTreeData =
|
|
13048
|
+
var parallelTreeData = _parallelData(treeData, []);
|
|
13054
13049
|
var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
|
|
13055
13050
|
if (isMultiple) {
|
|
13056
13051
|
return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
|
|
@@ -13062,7 +13057,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13062
13057
|
var isShouldShowStr = (disabled || mode === 'view' || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) === 'view') && ctx;
|
|
13063
13058
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
13064
13059
|
className: 'tree_search_select'
|
|
13065
|
-
}, isShouldShowStr ? (
|
|
13060
|
+
}, isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
13066
13061
|
title: getShowStr(),
|
|
13067
13062
|
style: {
|
|
13068
13063
|
overflow: 'hidden',
|
|
@@ -13070,7 +13065,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13070
13065
|
whiteSpace: 'nowrap'
|
|
13071
13066
|
},
|
|
13072
13067
|
className: 'search_select_show'
|
|
13073
|
-
}, getShowStr())) : (
|
|
13068
|
+
}, getShowStr())) : (/*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
13074
13069
|
treeCheckable: treeCheckable,
|
|
13075
13070
|
maxTagCount: maxTagCount,
|
|
13076
13071
|
showSearch: showSearch,
|
|
@@ -13267,7 +13262,7 @@ var index$2 = (function (props) {
|
|
|
13267
13262
|
} : {}
|
|
13268
13263
|
}, item.text)), /*#__PURE__*/React$1.createElement("div", {
|
|
13269
13264
|
className: 'status-label-operate'
|
|
13270
|
-
}, item.isDone ? (
|
|
13265
|
+
}, item.isDone ? (/*#__PURE__*/React$1.createElement("div", {
|
|
13271
13266
|
title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
|
|
13272
13267
|
}, "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--'))) : null), /*#__PURE__*/React$1.createElement("div", {
|
|
13273
13268
|
style: {
|
|
@@ -14048,7 +14043,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14048
14043
|
style: {
|
|
14049
14044
|
width: 525
|
|
14050
14045
|
}
|
|
14051
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
14046
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
14052
14047
|
checked: !dataSource.some(function (item) {
|
|
14053
14048
|
if (item.hidden) return true;
|
|
14054
14049
|
return false;
|
|
@@ -14086,13 +14081,13 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14086
14081
|
_this2.onChange(e, item.title);
|
|
14087
14082
|
}
|
|
14088
14083
|
}, item.title);
|
|
14089
|
-
}), !!seatchDataSource.length && (
|
|
14084
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
14090
14085
|
style: {
|
|
14091
14086
|
width: '144px'
|
|
14092
14087
|
}
|
|
14093
|
-
})), !seatchDataSource.length && (
|
|
14088
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
14094
14089
|
className: 'sort_table_column_all_empty'
|
|
14095
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
14090
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
14096
14091
|
className: 'sort_table_column_special'
|
|
14097
14092
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
14098
14093
|
className: 'sort_table_column_all'
|
|
@@ -14249,10 +14244,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14249
14244
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
14250
14245
|
return _objectSpread2({}, col);
|
|
14251
14246
|
});
|
|
14252
|
-
var
|
|
14247
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
14253
14248
|
var i = indexArr.shift();
|
|
14254
14249
|
if (indexArr.length > 0) {
|
|
14255
|
-
|
|
14250
|
+
_handleIndex(arr[i].children, indexArr);
|
|
14256
14251
|
} else {
|
|
14257
14252
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
14258
14253
|
width: size.width
|
|
@@ -14260,7 +14255,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14260
14255
|
handleBssulaColumnsSpecialParams(arr[i]);
|
|
14261
14256
|
}
|
|
14262
14257
|
};
|
|
14263
|
-
|
|
14258
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
14264
14259
|
_this.setState({
|
|
14265
14260
|
showColumns: _toConsumableArray(newColumns)
|
|
14266
14261
|
});
|
|
@@ -14338,13 +14333,13 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14338
14333
|
showSummary = summary;
|
|
14339
14334
|
}
|
|
14340
14335
|
}
|
|
14341
|
-
var
|
|
14336
|
+
var _handleColumns = function handleColumns(arr, indexArr) {
|
|
14342
14337
|
arr.forEach(function (item, index) {
|
|
14343
14338
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
14344
14339
|
return i || i === 0;
|
|
14345
14340
|
});
|
|
14346
14341
|
if (noEmptyArray$1(item.children)) {
|
|
14347
|
-
|
|
14342
|
+
_handleColumns(item.children, indexArrInside);
|
|
14348
14343
|
} else {
|
|
14349
14344
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
14350
14345
|
item.onHeaderCell = function (column) {
|
|
@@ -14360,7 +14355,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14360
14355
|
handleBssulaColumnsSpecialParams(item);
|
|
14361
14356
|
return _objectSpread2({}, item);
|
|
14362
14357
|
});
|
|
14363
|
-
|
|
14358
|
+
_handleColumns(showCol, []);
|
|
14364
14359
|
if (dynamicColumns.length) {
|
|
14365
14360
|
showCol = this.handledynamicColumns(showCol);
|
|
14366
14361
|
}
|
|
@@ -14400,7 +14395,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14400
14395
|
cell: this.ResizeableTitle
|
|
14401
14396
|
}
|
|
14402
14397
|
}
|
|
14403
|
-
}, otherTableInfo)), Array.isArray(summary) && (
|
|
14398
|
+
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("div", {
|
|
14404
14399
|
className: 'table-bssula-summary',
|
|
14405
14400
|
style: {
|
|
14406
14401
|
right: '20%',
|
|
@@ -14520,10 +14515,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14520
14515
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
14521
14516
|
return _objectSpread2({}, col);
|
|
14522
14517
|
});
|
|
14523
|
-
var
|
|
14518
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
14524
14519
|
var i = indexArr.shift();
|
|
14525
14520
|
if (indexArr.length > 0) {
|
|
14526
|
-
|
|
14521
|
+
_handleIndex(arr[i].children, indexArr);
|
|
14527
14522
|
} else {
|
|
14528
14523
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
14529
14524
|
width: size.width
|
|
@@ -14531,7 +14526,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14531
14526
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
14532
14527
|
}
|
|
14533
14528
|
};
|
|
14534
|
-
|
|
14529
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
14535
14530
|
_this.setState({
|
|
14536
14531
|
showColumns: _toConsumableArray(newColumns)
|
|
14537
14532
|
});
|
|
@@ -14607,13 +14602,13 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14607
14602
|
showSummary = summary;
|
|
14608
14603
|
}
|
|
14609
14604
|
}
|
|
14610
|
-
var
|
|
14605
|
+
var _handleColumns = function handleColumns(arr, indexArr) {
|
|
14611
14606
|
arr.forEach(function (item, index) {
|
|
14612
14607
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
14613
14608
|
return i || i === 0;
|
|
14614
14609
|
});
|
|
14615
14610
|
if (noEmptyArray$1(item.children)) {
|
|
14616
|
-
|
|
14611
|
+
_handleColumns(item.children, indexArrInside);
|
|
14617
14612
|
} else {
|
|
14618
14613
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
14619
14614
|
item.onHeaderCell = function (column) {
|
|
@@ -14629,7 +14624,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14629
14624
|
handleAntdColumnsSpecialParams(item);
|
|
14630
14625
|
return _objectSpread2({}, item);
|
|
14631
14626
|
});
|
|
14632
|
-
|
|
14627
|
+
_handleColumns(showCol, []);
|
|
14633
14628
|
if (dynamicColumns.length) {
|
|
14634
14629
|
showCol = this.handledynamicColumns(showCol);
|
|
14635
14630
|
}
|
|
@@ -14669,7 +14664,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14669
14664
|
cell: this.ResizeableTitle
|
|
14670
14665
|
}
|
|
14671
14666
|
}
|
|
14672
|
-
}, otherTableInfo)), Array.isArray(summary) && (
|
|
14667
|
+
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("div", {
|
|
14673
14668
|
className: 'table-bssula-summary',
|
|
14674
14669
|
style: {
|
|
14675
14670
|
right: '20%',
|
|
@@ -14752,20 +14747,20 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
|
|
|
14752
14747
|
};
|
|
14753
14748
|
var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
14754
14749
|
var routerMap = {};
|
|
14755
|
-
var
|
|
14750
|
+
var _flattenMenuData2 = function flattenMenuData(data, parent) {
|
|
14756
14751
|
var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
|
|
14757
14752
|
data.forEach(function (menuItem) {
|
|
14758
14753
|
var newMenuItem = _objectSpread2(_objectSpread2({}, menuItem), {}, {
|
|
14759
14754
|
nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
|
|
14760
14755
|
});
|
|
14761
14756
|
if (newMenuItem.children) {
|
|
14762
|
-
|
|
14757
|
+
_flattenMenuData2(newMenuItem.children, newMenuItem);
|
|
14763
14758
|
}
|
|
14764
14759
|
// Reduce memory usage
|
|
14765
14760
|
routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
|
|
14766
14761
|
});
|
|
14767
14762
|
};
|
|
14768
|
-
|
|
14763
|
+
_flattenMenuData2(menuData, {});
|
|
14769
14764
|
return routerMap;
|
|
14770
14765
|
};
|
|
14771
14766
|
// mode类型判断
|
|
@@ -15091,7 +15086,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15091
15086
|
display: 'flex',
|
|
15092
15087
|
gap: '8px'
|
|
15093
15088
|
}
|
|
15094
|
-
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (
|
|
15089
|
+
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (/*#__PURE__*/React$1.createElement("a", null, isFullScreen ? (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
15095
15090
|
title: "\u53D6\u6D88\u5168\u5C4F"
|
|
15096
15091
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
15097
15092
|
onClick: function onClick() {
|
|
@@ -15099,7 +15094,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15099
15094
|
},
|
|
15100
15095
|
width: 24,
|
|
15101
15096
|
src: scanning
|
|
15102
|
-
}))) : (
|
|
15097
|
+
}))) : (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
15103
15098
|
title: "\u5168\u5C4F"
|
|
15104
15099
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
15105
15100
|
onClick: function onClick() {
|
|
@@ -15107,7 +15102,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15107
15102
|
},
|
|
15108
15103
|
width: 24,
|
|
15109
15104
|
src: quanping
|
|
15110
|
-
}))))) : null)), alertProps && (
|
|
15105
|
+
}))))) : null)), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15111
15106
|
}, function (prevProps, nextProps) {
|
|
15112
15107
|
if (JSON.stringify(prevProps.actionList) != JSON.stringify(nextProps.actionList) || prevProps.title !== nextProps.title) {
|
|
15113
15108
|
return false;
|
|
@@ -15192,7 +15187,7 @@ var HeaderWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15192
15187
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
15193
15188
|
className: "".concat(index === breadcrumbArr.length - 1 ? 'bread_name_last' : '', " bread_name")
|
|
15194
15189
|
}, item));
|
|
15195
|
-
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && (
|
|
15190
|
+
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15196
15191
|
}, function (prevProps, nextProps) {
|
|
15197
15192
|
if (prevProps.title !== nextProps.title) {
|
|
15198
15193
|
return false;
|
|
@@ -15832,7 +15827,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15832
15827
|
});
|
|
15833
15828
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
15834
15829
|
className: 'sort_table_wrapper'
|
|
15835
|
-
}, visible && (
|
|
15830
|
+
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
15836
15831
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
15837
15832
|
wrapClassName: 'sort_table_wrapper',
|
|
15838
15833
|
width: 810,
|
|
@@ -15883,7 +15878,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15883
15878
|
width: 525,
|
|
15884
15879
|
height: 24
|
|
15885
15880
|
}
|
|
15886
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
15881
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
15887
15882
|
checked: !dataSource.some(function (item) {
|
|
15888
15883
|
if (item.hidden) return true;
|
|
15889
15884
|
return false;
|
|
@@ -15937,13 +15932,13 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15937
15932
|
_this2.onChange(e, item.title);
|
|
15938
15933
|
}
|
|
15939
15934
|
}, item.title);
|
|
15940
|
-
}), !!seatchDataSource.length && (
|
|
15935
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
15941
15936
|
style: {
|
|
15942
15937
|
width: '144px'
|
|
15943
15938
|
}
|
|
15944
|
-
})), !seatchDataSource.length && (
|
|
15939
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
15945
15940
|
className: 'sort_table_column_all_empty'
|
|
15946
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
15941
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
15947
15942
|
className: 'sort_table_column_special'
|
|
15948
15943
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
15949
15944
|
className: 'sort_table_column_all'
|
|
@@ -16417,7 +16412,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16417
16412
|
});
|
|
16418
16413
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
16419
16414
|
className: 'sort_table_wrapper'
|
|
16420
|
-
}, visible && (
|
|
16415
|
+
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
16421
16416
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
16422
16417
|
wrapClassName: 'sort_table_wrapper',
|
|
16423
16418
|
width: 820,
|
|
@@ -16462,7 +16457,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16462
16457
|
style: {
|
|
16463
16458
|
width: 525
|
|
16464
16459
|
}
|
|
16465
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
16460
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
16466
16461
|
checked: !dataSource.some(function (item) {
|
|
16467
16462
|
if (item.hidden) return true;
|
|
16468
16463
|
return false;
|
|
@@ -16498,11 +16493,11 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16498
16493
|
_this2.onChange(e, item.name);
|
|
16499
16494
|
}
|
|
16500
16495
|
}, item.label);
|
|
16501
|
-
}), !!newSearchSource.length && (
|
|
16496
|
+
}), !!newSearchSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
16502
16497
|
style: {
|
|
16503
16498
|
width: '144px'
|
|
16504
16499
|
}
|
|
16505
|
-
})), !newSearchSource.length && (
|
|
16500
|
+
})), !newSearchSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
16506
16501
|
className: 'sort_table_column_all_empty'
|
|
16507
16502
|
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))))), /*#__PURE__*/React$1.createElement("div", {
|
|
16508
16503
|
className: 'sort_table_content_wrapper'
|
|
@@ -16928,7 +16923,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
16928
16923
|
actionsRender = actionsRender.concat([{
|
|
16929
16924
|
type: 'text',
|
|
16930
16925
|
props: {
|
|
16931
|
-
children: (
|
|
16926
|
+
children: (/*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
16932
16927
|
request: {
|
|
16933
16928
|
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),
|
|
16934
16929
|
params: value === null || value === void 0 ? void 0 : (_value$exportConfig4 = value.exportConfig) === null || _value$exportConfig4 === void 0 ? void 0 : _value$exportConfig4.params
|
|
@@ -17174,7 +17169,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17174
17169
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
17175
17170
|
bsTableCode: bsTableCode,
|
|
17176
17171
|
onlyModal: true
|
|
17177
|
-
}), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && (
|
|
17172
|
+
}), (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, {
|
|
17178
17173
|
ref: exportTableRef,
|
|
17179
17174
|
setShowColumns: setShowExportColumns,
|
|
17180
17175
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -17267,11 +17262,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
17267
17262
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
17268
17263
|
var resultList = [];
|
|
17269
17264
|
var newRouter = cloneDeep(router);
|
|
17270
|
-
var
|
|
17265
|
+
var _deep = function deep(router) {
|
|
17271
17266
|
if (router && Array.isArray(router)) {
|
|
17272
17267
|
router.forEach(function (item) {
|
|
17273
17268
|
if (item.children && Array.isArray(item.children)) {
|
|
17274
|
-
|
|
17269
|
+
_deep(item.children);
|
|
17275
17270
|
} else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
|
|
17276
17271
|
return d === item.code;
|
|
17277
17272
|
})) {
|
|
@@ -17285,10 +17280,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
17285
17280
|
resultList.push(_objectSpread2({}, router));
|
|
17286
17281
|
}
|
|
17287
17282
|
};
|
|
17288
|
-
|
|
17283
|
+
_deep(newRouter);
|
|
17289
17284
|
callBack([].concat(resultList));
|
|
17290
17285
|
};
|
|
17291
|
-
var
|
|
17286
|
+
var _setMenuTreeData = function setMenuTreeData(routesData) {
|
|
17292
17287
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
17293
17288
|
var _loop = function _loop(i) {
|
|
17294
17289
|
if (routesData[i].hideInMenu) {
|
|
@@ -17302,7 +17297,7 @@ var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
17302
17297
|
return 0; // continue
|
|
17303
17298
|
}
|
|
17304
17299
|
if (routesData[i].children) {
|
|
17305
|
-
|
|
17300
|
+
_setMenuTreeData(routesData[i].children);
|
|
17306
17301
|
}
|
|
17307
17302
|
},
|
|
17308
17303
|
_ret;
|
|
@@ -17323,16 +17318,16 @@ var setLoginOutPath = function setLoginOutPath() {
|
|
|
17323
17318
|
};
|
|
17324
17319
|
var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
|
|
17325
17320
|
var routerMap = {};
|
|
17326
|
-
var
|
|
17321
|
+
var _flattenMenuData = function flattenMenuData(data) {
|
|
17327
17322
|
data.forEach(function (menuItem) {
|
|
17328
17323
|
if (menuItem.children) {
|
|
17329
|
-
|
|
17324
|
+
_flattenMenuData(menuItem.children);
|
|
17330
17325
|
}
|
|
17331
17326
|
// Reduce memory usage
|
|
17332
17327
|
routerMap[menuItem.path] = menuItem;
|
|
17333
17328
|
});
|
|
17334
17329
|
};
|
|
17335
|
-
|
|
17330
|
+
_flattenMenuData(menuData);
|
|
17336
17331
|
return routerMap;
|
|
17337
17332
|
};
|
|
17338
17333
|
var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
|
|
@@ -17478,7 +17473,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17478
17473
|
sethomepageData(homepageDataList);
|
|
17479
17474
|
setroutesData(routesDataList);
|
|
17480
17475
|
}, []);
|
|
17481
|
-
var
|
|
17476
|
+
var _renderChildItem = function renderChildItem(child) {
|
|
17482
17477
|
if (!child.hideInMenu && child.children) {
|
|
17483
17478
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
17484
17479
|
style: {
|
|
@@ -17488,7 +17483,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17488
17483
|
}, formatMessage({
|
|
17489
17484
|
id: "".concat(child.locale)
|
|
17490
17485
|
})), child.children.map(function (menuItem) {
|
|
17491
|
-
return
|
|
17486
|
+
return _renderChildItem(menuItem);
|
|
17492
17487
|
}));
|
|
17493
17488
|
} else if (!child.hideInMenu && child.path) {
|
|
17494
17489
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -17523,7 +17518,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17523
17518
|
className: 'drawerWarp'
|
|
17524
17519
|
}, homepageData && homepageData.filter(function (d) {
|
|
17525
17520
|
return !d.hideInMenu;
|
|
17526
|
-
}).length > 0 && (
|
|
17521
|
+
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
17527
17522
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
17528
17523
|
dataSource: homepageData,
|
|
17529
17524
|
renderItem: function renderItem(child) {
|
|
@@ -17558,7 +17553,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17558
17553
|
bordered: true,
|
|
17559
17554
|
dataSource: item.children,
|
|
17560
17555
|
renderItem: function renderItem(child) {
|
|
17561
|
-
return
|
|
17556
|
+
return _renderChildItem(child);
|
|
17562
17557
|
}
|
|
17563
17558
|
});
|
|
17564
17559
|
})));
|
|
@@ -17618,7 +17613,7 @@ var AllFunc$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
17618
17613
|
src: allfunc
|
|
17619
17614
|
})), /*#__PURE__*/React$1.createElement("span", {
|
|
17620
17615
|
className: 'btnSpan2'
|
|
17621
|
-
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (
|
|
17616
|
+
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
17622
17617
|
style: {
|
|
17623
17618
|
left: isDrawer ? 140 : 0,
|
|
17624
17619
|
top: 50
|
|
@@ -17664,7 +17659,7 @@ function outLogin(_x) {
|
|
|
17664
17659
|
return _outLogin.apply(this, arguments);
|
|
17665
17660
|
}
|
|
17666
17661
|
function _outLogin() {
|
|
17667
|
-
_outLogin = _asyncToGenerator(
|
|
17662
|
+
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
17668
17663
|
var res;
|
|
17669
17664
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17670
17665
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -17806,7 +17801,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
17806
17801
|
});
|
|
17807
17802
|
};
|
|
17808
17803
|
var loginOut = /*#__PURE__*/function () {
|
|
17809
|
-
var _ref2 = _asyncToGenerator(
|
|
17804
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
17810
17805
|
var sessionId;
|
|
17811
17806
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17812
17807
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -17910,7 +17905,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
17910
17905
|
marginRight: '0px'
|
|
17911
17906
|
},
|
|
17912
17907
|
src: './xialajiantou-new.svg'
|
|
17913
|
-
}))))), loginModalParams.visible && (
|
|
17908
|
+
}))))), loginModalParams.visible && (/*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
17914
17909
|
};
|
|
17915
17910
|
|
|
17916
17911
|
// -- 查询店铺 --
|
|
@@ -17918,7 +17913,7 @@ function getStoreByName(_x) {
|
|
|
17918
17913
|
return _getStoreByName.apply(this, arguments);
|
|
17919
17914
|
}
|
|
17920
17915
|
function _getStoreByName() {
|
|
17921
|
-
_getStoreByName = _asyncToGenerator(
|
|
17916
|
+
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
17922
17917
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17923
17918
|
while (1) switch (_context.prev = _context.next) {
|
|
17924
17919
|
case 0:
|
|
@@ -17986,7 +17981,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
17986
17981
|
return _fetchUserList.apply(this, arguments);
|
|
17987
17982
|
}
|
|
17988
17983
|
function _fetchUserList() {
|
|
17989
|
-
_fetchUserList = _asyncToGenerator(
|
|
17984
|
+
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
17990
17985
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
17991
17986
|
while (1) switch (_context3.prev = _context3.next) {
|
|
17992
17987
|
case 0:
|
|
@@ -18034,7 +18029,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
18034
18029
|
return debounce$1(loadOptions, debounceTimeout);
|
|
18035
18030
|
}, [debounceTimeout, key]);
|
|
18036
18031
|
var changeInput = /*#__PURE__*/function () {
|
|
18037
|
-
var _ref = _asyncToGenerator(
|
|
18032
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
18038
18033
|
var res;
|
|
18039
18034
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18040
18035
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -18056,7 +18051,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
18056
18051
|
};
|
|
18057
18052
|
}();
|
|
18058
18053
|
useEffect(function () {
|
|
18059
|
-
_asyncToGenerator(
|
|
18054
|
+
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
18060
18055
|
var res;
|
|
18061
18056
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
18062
18057
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -18221,7 +18216,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18221
18216
|
var resultList = [];
|
|
18222
18217
|
var newRouter = cloneDeep$1(router);
|
|
18223
18218
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
18224
|
-
var
|
|
18219
|
+
var _deep = function deep(router) {
|
|
18225
18220
|
if (router && Array.isArray(router)) {
|
|
18226
18221
|
router.forEach(function (item) {
|
|
18227
18222
|
if (item.routes && Array.isArray(item.routes)) {
|
|
@@ -18231,7 +18226,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18231
18226
|
d.nameEdit = true;
|
|
18232
18227
|
}
|
|
18233
18228
|
});
|
|
18234
|
-
|
|
18229
|
+
_deep(item.routes);
|
|
18235
18230
|
} else if (!item.hideInMenu && (name ? formatMessage({
|
|
18236
18231
|
id: "menu.".concat(item.name)
|
|
18237
18232
|
}).indexOf(name) !== -1 : true)) {
|
|
@@ -18250,7 +18245,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18250
18245
|
}));
|
|
18251
18246
|
}
|
|
18252
18247
|
};
|
|
18253
|
-
|
|
18248
|
+
_deep(newRouter);
|
|
18254
18249
|
setroutesData([].concat(resultList));
|
|
18255
18250
|
};
|
|
18256
18251
|
var renderLineStyl = function renderLineStyl(name) {
|
|
@@ -18332,7 +18327,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18332
18327
|
},
|
|
18333
18328
|
title: item.fullPathName
|
|
18334
18329
|
}, renderLineStyl(item.fullPathName));
|
|
18335
|
-
}))))), showSelectStore && (
|
|
18330
|
+
}))))), showSelectStore && (/*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
18336
18331
|
employeeCode: employeeCode
|
|
18337
18332
|
})), /*#__PURE__*/React$1.createElement(GlobalHeaderRight, null));
|
|
18338
18333
|
};
|
|
@@ -18347,7 +18342,7 @@ var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
18347
18342
|
var TreeNode = Tree.TreeNode;
|
|
18348
18343
|
var Search$2 = Input.Search;
|
|
18349
18344
|
var dataList = [];
|
|
18350
|
-
var
|
|
18345
|
+
var _generateList = function generateList(data) {
|
|
18351
18346
|
for (var i = 0; i < data.length; i++) {
|
|
18352
18347
|
var node = data[i];
|
|
18353
18348
|
var path = node.path,
|
|
@@ -18357,11 +18352,11 @@ var generateList = function generateList(data) {
|
|
|
18357
18352
|
name: name
|
|
18358
18353
|
});
|
|
18359
18354
|
if (node.children) {
|
|
18360
|
-
|
|
18355
|
+
_generateList(node.children);
|
|
18361
18356
|
}
|
|
18362
18357
|
}
|
|
18363
18358
|
};
|
|
18364
|
-
var
|
|
18359
|
+
var _getParentKey = function getParentKey(path, tree) {
|
|
18365
18360
|
var parentKey;
|
|
18366
18361
|
for (var i = 0; i < tree.length; i++) {
|
|
18367
18362
|
var node = tree[i];
|
|
@@ -18370,8 +18365,8 @@ var getParentKey = function getParentKey(path, tree) {
|
|
|
18370
18365
|
return item.path === path;
|
|
18371
18366
|
})) {
|
|
18372
18367
|
parentKey = node.path;
|
|
18373
|
-
} else if (
|
|
18374
|
-
parentKey =
|
|
18368
|
+
} else if (_getParentKey(path, node.children)) {
|
|
18369
|
+
parentKey = _getParentKey(path, node.children);
|
|
18375
18370
|
}
|
|
18376
18371
|
}
|
|
18377
18372
|
}
|
|
@@ -18402,7 +18397,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18402
18397
|
var treeData = _this.state.treeData;
|
|
18403
18398
|
var expandedKeys = dataList.map(function (item) {
|
|
18404
18399
|
if (item.name.indexOf(value) > -1) {
|
|
18405
|
-
return
|
|
18400
|
+
return _getParentKey(item.path, treeData);
|
|
18406
18401
|
}
|
|
18407
18402
|
return null;
|
|
18408
18403
|
}).filter(function (item, i, self) {
|
|
@@ -18416,22 +18411,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18416
18411
|
};
|
|
18417
18412
|
_this.getPathList = function (originData) {
|
|
18418
18413
|
var pathList = [];
|
|
18419
|
-
var
|
|
18414
|
+
var _getList = function getList(data) {
|
|
18420
18415
|
if (Array.isArray(data)) {
|
|
18421
18416
|
data.forEach(function (item) {
|
|
18422
18417
|
pathList.push(item.path);
|
|
18423
18418
|
if (item.children) {
|
|
18424
|
-
|
|
18419
|
+
_getList(item.children);
|
|
18425
18420
|
}
|
|
18426
18421
|
});
|
|
18427
18422
|
} else {
|
|
18428
18423
|
pathList.push(data.path);
|
|
18429
18424
|
if (data.children) {
|
|
18430
|
-
|
|
18425
|
+
_getList(data.children);
|
|
18431
18426
|
}
|
|
18432
18427
|
}
|
|
18433
18428
|
};
|
|
18434
|
-
|
|
18429
|
+
_getList(originData);
|
|
18435
18430
|
return pathList;
|
|
18436
18431
|
};
|
|
18437
18432
|
_this.handleAdd2Menu = function (path) {
|
|
@@ -18440,18 +18435,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18440
18435
|
customerMenuData = _this$props.customerMenuData,
|
|
18441
18436
|
setCustomerMenuData = _this$props.setCustomerMenuData;
|
|
18442
18437
|
var filterItem;
|
|
18443
|
-
var
|
|
18438
|
+
var _filterMenuItem = function filterMenuItem(menuData) {
|
|
18444
18439
|
menuData.forEach(function (item) {
|
|
18445
18440
|
if (item.path === path) {
|
|
18446
18441
|
filterItem = _objectSpread2({}, item);
|
|
18447
18442
|
return;
|
|
18448
18443
|
}
|
|
18449
18444
|
if (item.children) {
|
|
18450
|
-
|
|
18445
|
+
_filterMenuItem(item.children);
|
|
18451
18446
|
}
|
|
18452
18447
|
});
|
|
18453
18448
|
};
|
|
18454
|
-
|
|
18449
|
+
_filterMenuItem(treeData);
|
|
18455
18450
|
var addPathList = _this.getPathList(filterItem);
|
|
18456
18451
|
var oldPathList = _this.getPathList(customerMenuData);
|
|
18457
18452
|
var isRepet = false;
|
|
@@ -18481,8 +18476,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18481
18476
|
return item.path === '/';
|
|
18482
18477
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
18483
18478
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
18484
|
-
|
|
18485
|
-
|
|
18479
|
+
_setMenuTreeData(routesData);
|
|
18480
|
+
_generateList(routesData);
|
|
18486
18481
|
this.setState({
|
|
18487
18482
|
treeData: routesData
|
|
18488
18483
|
});
|
|
@@ -18496,16 +18491,16 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18496
18491
|
expandedKeys = _this$state.expandedKeys,
|
|
18497
18492
|
autoExpandParent = _this$state.autoExpandParent,
|
|
18498
18493
|
treeData = _this$state.treeData;
|
|
18499
|
-
var
|
|
18494
|
+
var _loop = function loop(data) {
|
|
18500
18495
|
return data.map(function (item) {
|
|
18501
18496
|
var index = item.name.indexOf(searchValue);
|
|
18502
18497
|
var beforeStr = item.name.substr(0, index);
|
|
18503
18498
|
var afterStr = item.name.substr(index + searchValue.length);
|
|
18504
|
-
var name = index > -1 ? (
|
|
18499
|
+
var name = index > -1 ? (/*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
18505
18500
|
style: {
|
|
18506
18501
|
color: '#f50'
|
|
18507
18502
|
}
|
|
18508
|
-
}, searchValue), afterStr)) : (
|
|
18503
|
+
}, searchValue), afterStr)) : (/*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
18509
18504
|
if (item.children && item.children.length) {
|
|
18510
18505
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
18511
18506
|
path: item.path,
|
|
@@ -18527,7 +18522,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18527
18522
|
width: 18,
|
|
18528
18523
|
src: arrowRight
|
|
18529
18524
|
}))))
|
|
18530
|
-
},
|
|
18525
|
+
}, _loop(item.children));
|
|
18531
18526
|
}
|
|
18532
18527
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
18533
18528
|
path: item.path,
|
|
@@ -18577,7 +18572,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18577
18572
|
onExpand: this.onExpand,
|
|
18578
18573
|
expandedKeys: expandedKeys,
|
|
18579
18574
|
autoExpandParent: autoExpandParent
|
|
18580
|
-
},
|
|
18575
|
+
}, _loop(treeData))));
|
|
18581
18576
|
}
|
|
18582
18577
|
}]);
|
|
18583
18578
|
}(React$1.Component);
|
|
@@ -18610,24 +18605,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18610
18605
|
var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
|
|
18611
18606
|
var dragObj;
|
|
18612
18607
|
var finalDropItem;
|
|
18613
|
-
var
|
|
18608
|
+
var _loop = function loop(data, path, callback) {
|
|
18614
18609
|
for (var i = 0; i < data.length; i++) {
|
|
18615
18610
|
if (data[i].path === path) {
|
|
18616
18611
|
return callback(data[i], i, data);
|
|
18617
18612
|
}
|
|
18618
18613
|
if (data[i].children) {
|
|
18619
|
-
|
|
18614
|
+
_loop(data[i].children, path, callback);
|
|
18620
18615
|
}
|
|
18621
18616
|
}
|
|
18622
18617
|
};
|
|
18623
18618
|
var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
|
|
18624
|
-
|
|
18619
|
+
_loop(data, dragKey, function (item, index, arr) {
|
|
18625
18620
|
arr.splice(index, 1);
|
|
18626
18621
|
dragObj = item;
|
|
18627
18622
|
});
|
|
18628
18623
|
if (!info.dropToGap) {
|
|
18629
18624
|
// Drop on the content
|
|
18630
|
-
|
|
18625
|
+
_loop(data, dropKey, function (item) {
|
|
18631
18626
|
item.children = item.children || [];
|
|
18632
18627
|
item.children.unshift(dragObj);
|
|
18633
18628
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -18638,7 +18633,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18638
18633
|
// Is expanded
|
|
18639
18634
|
dropPosition === 1 // On the bottom gap
|
|
18640
18635
|
) {
|
|
18641
|
-
|
|
18636
|
+
_loop(data, dropKey, function (item) {
|
|
18642
18637
|
item.children = item.children || [];
|
|
18643
18638
|
item.children.unshift(dragObj);
|
|
18644
18639
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -18646,7 +18641,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18646
18641
|
} else {
|
|
18647
18642
|
var ar;
|
|
18648
18643
|
var i;
|
|
18649
|
-
|
|
18644
|
+
_loop(data, dropKey, function (item, index, arr) {
|
|
18650
18645
|
ar = arr;
|
|
18651
18646
|
i = index;
|
|
18652
18647
|
});
|
|
@@ -18685,17 +18680,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18685
18680
|
title: '编辑名称',
|
|
18686
18681
|
callBack: function callBack(newName) {
|
|
18687
18682
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
18688
|
-
var
|
|
18683
|
+
var _editTreeDataName = function editTreeDataName(oldTreeData) {
|
|
18689
18684
|
oldTreeData.forEach(function (treeItem) {
|
|
18690
18685
|
if (treeItem.path === item.path) {
|
|
18691
18686
|
treeItem.name = newName;
|
|
18692
18687
|
}
|
|
18693
18688
|
if (treeItem.children) {
|
|
18694
|
-
|
|
18689
|
+
_editTreeDataName(treeItem.children);
|
|
18695
18690
|
}
|
|
18696
18691
|
});
|
|
18697
18692
|
};
|
|
18698
|
-
|
|
18693
|
+
_editTreeDataName(oldTreeData);
|
|
18699
18694
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
18700
18695
|
_this.setState({
|
|
18701
18696
|
modalInfo: {
|
|
@@ -18740,7 +18735,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18740
18735
|
title: '新增子目录',
|
|
18741
18736
|
callBack: function callBack(newName) {
|
|
18742
18737
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
18743
|
-
var
|
|
18738
|
+
var _addChildFolder = function addChildFolder(oldTreeData) {
|
|
18744
18739
|
oldTreeData.forEach(function (treeItem) {
|
|
18745
18740
|
if (treeItem.path === item.path) {
|
|
18746
18741
|
treeItem.children ? treeItem.children.push({
|
|
@@ -18752,11 +18747,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18752
18747
|
}];
|
|
18753
18748
|
}
|
|
18754
18749
|
if (treeItem.children) {
|
|
18755
|
-
|
|
18750
|
+
_addChildFolder(treeItem.children);
|
|
18756
18751
|
}
|
|
18757
18752
|
});
|
|
18758
18753
|
};
|
|
18759
|
-
|
|
18754
|
+
_addChildFolder(oldTreeData);
|
|
18760
18755
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
18761
18756
|
_this.setState({
|
|
18762
18757
|
modalInfo: {
|
|
@@ -18815,7 +18810,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18815
18810
|
var _this$state = this.state,
|
|
18816
18811
|
modalInfo = _this$state.modalInfo,
|
|
18817
18812
|
checkedKeys = _this$state.checkedKeys;
|
|
18818
|
-
var
|
|
18813
|
+
var _loop2 = function loop(data) {
|
|
18819
18814
|
return data.map(function (item) {
|
|
18820
18815
|
if (item.children && item.children.length) {
|
|
18821
18816
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
@@ -18832,7 +18827,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18832
18827
|
e.stopPropagation();
|
|
18833
18828
|
}
|
|
18834
18829
|
}, /*#__PURE__*/React$1.createElement(Space, null, /*#__PURE__*/React$1.createElement(EllipsisOutlined, null))))))
|
|
18835
|
-
},
|
|
18830
|
+
}, _loop2(item.children));
|
|
18836
18831
|
}
|
|
18837
18832
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
18838
18833
|
path: item.path,
|
|
@@ -18911,7 +18906,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18911
18906
|
children: 'children'
|
|
18912
18907
|
},
|
|
18913
18908
|
onDrop: this.onDrop
|
|
18914
|
-
},
|
|
18909
|
+
}, _loop2(this.props.customerMenuData))), /*#__PURE__*/React$1.createElement(Modal, {
|
|
18915
18910
|
width: 600,
|
|
18916
18911
|
bodyStyle: {
|
|
18917
18912
|
paddingTop: '32px',
|
|
@@ -19024,7 +19019,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19024
19019
|
pathname: item.path
|
|
19025
19020
|
});
|
|
19026
19021
|
};
|
|
19027
|
-
var
|
|
19022
|
+
var _getMenuDom = function getMenuDom(menuData) {
|
|
19028
19023
|
return menuData.map(function (item) {
|
|
19029
19024
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
19030
19025
|
style: {
|
|
@@ -19039,7 +19034,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19039
19034
|
fontWeight: item.children || !item.component ? 'bolder' : '400',
|
|
19040
19035
|
paddingLeft: '4px'
|
|
19041
19036
|
}
|
|
19042
|
-
}, item.name), !!item.children && !!item.children.length &&
|
|
19037
|
+
}, item.name), !!item.children && !!item.children.length && _getMenuDom(item.children));
|
|
19043
19038
|
});
|
|
19044
19039
|
};
|
|
19045
19040
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -19065,7 +19060,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19065
19060
|
style: {
|
|
19066
19061
|
paddingLeft: '5px'
|
|
19067
19062
|
}
|
|
19068
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (
|
|
19063
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
19069
19064
|
style: {
|
|
19070
19065
|
left: isDrawer ? 140 : 0
|
|
19071
19066
|
},
|
|
@@ -19086,7 +19081,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19086
19081
|
visible: isDrawer
|
|
19087
19082
|
}, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("p", {
|
|
19088
19083
|
className: 'menu_title_line'
|
|
19089
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"),
|
|
19084
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"), _getMenuDom(menuData)))), /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
19090
19085
|
title: /*#__PURE__*/React$1.createElement("span", {
|
|
19091
19086
|
style: {
|
|
19092
19087
|
fontWeight: '600',
|
|
@@ -19160,7 +19155,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19160
19155
|
return item.path === '/';
|
|
19161
19156
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
19162
19157
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
19163
|
-
|
|
19158
|
+
_setMenuTreeData(routesData);
|
|
19164
19159
|
routesData.forEach(function (item) {
|
|
19165
19160
|
if (item.children) {
|
|
19166
19161
|
routesDataList.push(item);
|
|
@@ -19190,7 +19185,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19190
19185
|
setHeight(clientHeight - 190);
|
|
19191
19186
|
setDrawHeight(clientHeight - 70);
|
|
19192
19187
|
};
|
|
19193
|
-
var
|
|
19188
|
+
var _renderChildItem = function renderChildItem(child) {
|
|
19194
19189
|
if (!child.hideInMenu && child.children) {
|
|
19195
19190
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
19196
19191
|
style: {
|
|
@@ -19200,7 +19195,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19200
19195
|
}, formatMessage({
|
|
19201
19196
|
id: "".concat(child.locale)
|
|
19202
19197
|
})), child.children.map(function (menuItem) {
|
|
19203
|
-
return
|
|
19198
|
+
return _renderChildItem(menuItem);
|
|
19204
19199
|
}));
|
|
19205
19200
|
} else if (!child.hideInMenu && child.path) {
|
|
19206
19201
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -19342,7 +19337,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19342
19337
|
onMenuClick(e, item);
|
|
19343
19338
|
}
|
|
19344
19339
|
}, item.name);
|
|
19345
|
-
}))), !!SearhData.length ? (
|
|
19340
|
+
}))), !!SearhData.length ? (/*#__PURE__*/React$1.createElement("div", {
|
|
19346
19341
|
className: 'search_menu_content'
|
|
19347
19342
|
}, SearhData.map(function (item) {
|
|
19348
19343
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -19351,7 +19346,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19351
19346
|
},
|
|
19352
19347
|
key: item.path
|
|
19353
19348
|
}, item.name);
|
|
19354
|
-
}))) : (
|
|
19349
|
+
}))) : (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
19355
19350
|
style: {
|
|
19356
19351
|
height: "".concat(rightMenuHeight, "px"),
|
|
19357
19352
|
overflowY: 'scroll',
|
|
@@ -19363,7 +19358,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19363
19358
|
className: 'drawerWarp_right'
|
|
19364
19359
|
}, homepageData && homepageData.filter(function (d) {
|
|
19365
19360
|
return !d.hideInMenu;
|
|
19366
|
-
}).length > 0 && (
|
|
19361
|
+
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
19367
19362
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
19368
19363
|
dataSource: homepageData,
|
|
19369
19364
|
renderItem: function renderItem(child) {
|
|
@@ -19404,7 +19399,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19404
19399
|
bordered: true,
|
|
19405
19400
|
dataSource: item.children,
|
|
19406
19401
|
renderItem: function renderItem(child) {
|
|
19407
|
-
return
|
|
19402
|
+
return _renderChildItem(child);
|
|
19408
19403
|
}
|
|
19409
19404
|
});
|
|
19410
19405
|
})), /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -19562,10 +19557,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
19562
19557
|
var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
|
|
19563
19558
|
var menuKeys = [];
|
|
19564
19559
|
var docsId = [];
|
|
19565
|
-
var
|
|
19560
|
+
var _getLimitedMenuKeys = function getLimitedMenuKeys(data) {
|
|
19566
19561
|
data.forEach(function (item) {
|
|
19567
19562
|
if (item.children && item.children.length > 0) {
|
|
19568
|
-
|
|
19563
|
+
_getLimitedMenuKeys(item.children);
|
|
19569
19564
|
} else {
|
|
19570
19565
|
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
19571
19566
|
menuKeys.push(originPath);
|
|
@@ -19576,7 +19571,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
19576
19571
|
});
|
|
19577
19572
|
};
|
|
19578
19573
|
try {
|
|
19579
|
-
|
|
19574
|
+
_getLimitedMenuKeys(limitedMenuData);
|
|
19580
19575
|
} catch (e) {}
|
|
19581
19576
|
return {
|
|
19582
19577
|
menuKeys: menuKeys,
|
|
@@ -19810,10 +19805,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
19810
19805
|
return (node.path || '').includes('all-general-documents');
|
|
19811
19806
|
};
|
|
19812
19807
|
// 递归获取树列表
|
|
19813
|
-
var
|
|
19808
|
+
var _getTreeList = function getTreeList(data) {
|
|
19814
19809
|
data.forEach(function (node) {
|
|
19815
19810
|
if (node.routes && node.routes.length > 0) {
|
|
19816
|
-
|
|
19811
|
+
_getTreeList(node.routes);
|
|
19817
19812
|
return;
|
|
19818
19813
|
}
|
|
19819
19814
|
// todo:暂时处理非wujie环境不做404管控
|
|
@@ -19844,7 +19839,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
19844
19839
|
}
|
|
19845
19840
|
});
|
|
19846
19841
|
};
|
|
19847
|
-
|
|
19842
|
+
_getTreeList(treeData);
|
|
19848
19843
|
return treeList;
|
|
19849
19844
|
};
|
|
19850
19845
|
_this.getDictionarySource = function (dicCode) {
|
|
@@ -20473,7 +20468,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20473
20468
|
updateState = _ref8.updateState;
|
|
20474
20469
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
20475
20470
|
className: "tab_title_content"
|
|
20476
|
-
}, item.tab, item.key !== '/' && (
|
|
20471
|
+
}, item.tab, item.key !== '/' && (/*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
20477
20472
|
info: item,
|
|
20478
20473
|
operateFun: _this3.operateFun,
|
|
20479
20474
|
listenRouterState: listenRouterState
|
|
@@ -20609,7 +20604,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20609
20604
|
};
|
|
20610
20605
|
}
|
|
20611
20606
|
var OperationsSlot = {
|
|
20612
|
-
left: (
|
|
20607
|
+
left: (/*#__PURE__*/React$1.createElement("div", {
|
|
20613
20608
|
className: 'tab_left_operate'
|
|
20614
20609
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
20615
20610
|
onClick: function onClick() {
|
|
@@ -20625,7 +20620,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20625
20620
|
_this3.setTabNavTransLate(-100);
|
|
20626
20621
|
}
|
|
20627
20622
|
}, /*#__PURE__*/React$1.createElement(DoubleLeftOutlined, null)))),
|
|
20628
|
-
right: (
|
|
20623
|
+
right: (/*#__PURE__*/React$1.createElement("div", {
|
|
20629
20624
|
style: {
|
|
20630
20625
|
opacity: this.state.isSlider ? 1 : 0.5
|
|
20631
20626
|
},
|
|
@@ -20723,7 +20718,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20723
20718
|
onMouseLeave: function onMouseLeave() {
|
|
20724
20719
|
_this3.setShowMenu(false);
|
|
20725
20720
|
}
|
|
20726
|
-
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (
|
|
20721
|
+
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (/*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
20727
20722
|
style: {
|
|
20728
20723
|
position: 'absolute',
|
|
20729
20724
|
top: '14px',
|
|
@@ -20742,7 +20737,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20742
20737
|
postMenuData: function postMenuData(menus) {
|
|
20743
20738
|
return _toConsumableArray(filterByMenuDate(menus || [], _this3.state.keyWord));
|
|
20744
20739
|
},
|
|
20745
|
-
links: [!this.state.collapse ? (
|
|
20740
|
+
links: [!this.state.collapse ? (/*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
20746
20741
|
ref: this.allFunc,
|
|
20747
20742
|
itemPath: itemPath,
|
|
20748
20743
|
handleClose: this.handleClose,
|
|
@@ -20760,7 +20755,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20760
20755
|
},
|
|
20761
20756
|
menu: {
|
|
20762
20757
|
request: function () {
|
|
20763
|
-
var _request = _asyncToGenerator(
|
|
20758
|
+
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
20764
20759
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
20765
20760
|
while (1) switch (_context.prev = _context.next) {
|
|
20766
20761
|
case 0:
|
|
@@ -20895,7 +20890,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
20895
20890
|
getDictionaryTextByValue = _this$props4.getDictionaryTextByValue,
|
|
20896
20891
|
timeFormat = _this$props4.timeFormat,
|
|
20897
20892
|
transparentProps = _this$props4.transparentProps;
|
|
20898
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, item.isNotFound ? (
|
|
20893
|
+
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({
|
|
20899
20894
|
getDictionarySource: getDictionarySource,
|
|
20900
20895
|
getDictionaryTextByValue: getDictionaryTextByValue,
|
|
20901
20896
|
timeFormat: timeFormat
|
|
@@ -20919,12 +20914,12 @@ var index$5 = (function (props) {
|
|
|
20919
20914
|
});
|
|
20920
20915
|
|
|
20921
20916
|
// @ts-nocheck
|
|
20922
|
-
var
|
|
20917
|
+
var _getAllColumns = function getAllColumns(columns) {
|
|
20923
20918
|
var result = [];
|
|
20924
20919
|
columns.forEach(function (column) {
|
|
20925
20920
|
if (column.children) {
|
|
20926
20921
|
result.push(column);
|
|
20927
|
-
result.push.apply(result,
|
|
20922
|
+
result.push.apply(result, _getAllColumns(column.children));
|
|
20928
20923
|
} else {
|
|
20929
20924
|
result.push(column);
|
|
20930
20925
|
}
|
|
@@ -20933,7 +20928,7 @@ var getAllColumns = function getAllColumns(columns) {
|
|
|
20933
20928
|
};
|
|
20934
20929
|
var convertToRows = function convertToRows(originColumns) {
|
|
20935
20930
|
var maxLevel = 1;
|
|
20936
|
-
var
|
|
20931
|
+
var _traverse = function traverse(column, parent) {
|
|
20937
20932
|
if (parent) {
|
|
20938
20933
|
column.level = parent.level + 1;
|
|
20939
20934
|
if (maxLevel < column.level) {
|
|
@@ -20943,7 +20938,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
20943
20938
|
if (column.children) {
|
|
20944
20939
|
var colSpan = 0;
|
|
20945
20940
|
column.children.forEach(function (subColumn) {
|
|
20946
|
-
|
|
20941
|
+
_traverse(subColumn, column);
|
|
20947
20942
|
colSpan += subColumn.colSpan;
|
|
20948
20943
|
});
|
|
20949
20944
|
column.colSpan = colSpan;
|
|
@@ -20953,13 +20948,13 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
20953
20948
|
};
|
|
20954
20949
|
originColumns.forEach(function (column) {
|
|
20955
20950
|
column.level = 1;
|
|
20956
|
-
|
|
20951
|
+
_traverse(column);
|
|
20957
20952
|
});
|
|
20958
20953
|
var rows = [];
|
|
20959
20954
|
for (var i = 0; i < maxLevel; i++) {
|
|
20960
20955
|
rows.push([]);
|
|
20961
20956
|
}
|
|
20962
|
-
var allColumns =
|
|
20957
|
+
var allColumns = _getAllColumns(originColumns);
|
|
20963
20958
|
allColumns.forEach(function (column) {
|
|
20964
20959
|
if (!column.children) {
|
|
20965
20960
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -20999,7 +20994,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
20999
20994
|
};
|
|
21000
20995
|
var headersToRows = function headersToRows(originColumns) {
|
|
21001
20996
|
var maxLevel = 1;
|
|
21002
|
-
var
|
|
20997
|
+
var _traverse2 = function traverse(column, parent) {
|
|
21003
20998
|
if (parent) {
|
|
21004
20999
|
//计算当前元素属于第几个层级
|
|
21005
21000
|
column.level = parent.level + 1;
|
|
@@ -21012,7 +21007,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
21012
21007
|
var colSpan = 0;
|
|
21013
21008
|
column.children.forEach(function (subColumn) {
|
|
21014
21009
|
//进行递归
|
|
21015
|
-
|
|
21010
|
+
_traverse2(subColumn, column);
|
|
21016
21011
|
colSpan += subColumn.colSpan;
|
|
21017
21012
|
});
|
|
21018
21013
|
column.colSpan = colSpan;
|
|
@@ -21022,14 +21017,14 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
21022
21017
|
};
|
|
21023
21018
|
originColumns.forEach(function (column) {
|
|
21024
21019
|
column.level = 1;
|
|
21025
|
-
|
|
21020
|
+
_traverse2(column);
|
|
21026
21021
|
});
|
|
21027
21022
|
var rows = [];
|
|
21028
21023
|
var lastData = [];
|
|
21029
21024
|
for (var i = 0; i < maxLevel; i++) {
|
|
21030
21025
|
rows.push([]);
|
|
21031
21026
|
}
|
|
21032
|
-
var allColumns =
|
|
21027
|
+
var allColumns = _getAllColumns(originColumns);
|
|
21033
21028
|
allColumns.forEach(function (column) {
|
|
21034
21029
|
if (!column.children) {
|
|
21035
21030
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -27046,7 +27041,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
|
|
|
27046
27041
|
}
|
|
27047
27042
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
27048
27043
|
};
|
|
27049
|
-
var
|
|
27044
|
+
var _hasHighLightChildren = function hasHighLightChildren() {
|
|
27050
27045
|
var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
27051
27046
|
var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
|
|
27052
27047
|
var children = hightLightData.children,
|
|
@@ -27057,7 +27052,7 @@ var hasHighLightChildren = function hasHighLightChildren() {
|
|
|
27057
27052
|
lineEnd = _loc2[2];
|
|
27058
27053
|
if (children) {
|
|
27059
27054
|
return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
|
|
27060
|
-
return
|
|
27055
|
+
return _hasHighLightChildren(v, highLightLine);
|
|
27061
27056
|
});
|
|
27062
27057
|
}
|
|
27063
27058
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
@@ -27069,7 +27064,7 @@ function createHighLightTreeData(treeData, highLightLine) {
|
|
|
27069
27064
|
var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
|
|
27070
27065
|
data.forEach(function (node) {
|
|
27071
27066
|
if (!node) return;
|
|
27072
|
-
node.toggled =
|
|
27067
|
+
node.toggled = _hasHighLightChildren(node, highLightLine);
|
|
27073
27068
|
node.active = isHightLight(node, highLightLine);
|
|
27074
27069
|
if (node.children) {
|
|
27075
27070
|
if (node.active) {
|
|
@@ -28500,7 +28495,7 @@ var valueType = {
|
|
|
28500
28495
|
};
|
|
28501
28496
|
|
|
28502
28497
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
28503
|
-
var _ref = _asyncToGenerator(
|
|
28498
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
28504
28499
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
28505
28500
|
while (1) switch (_context.prev = _context.next) {
|
|
28506
28501
|
case 0:
|
|
@@ -28568,7 +28563,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
28568
28563
|
value: false
|
|
28569
28564
|
}];
|
|
28570
28565
|
var ref = useRef();
|
|
28571
|
-
useMount(
|
|
28566
|
+
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
28572
28567
|
var _ref$current, source;
|
|
28573
28568
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
28574
28569
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -28682,7 +28677,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
28682
28677
|
source: {
|
|
28683
28678
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
28684
28679
|
type: function () {
|
|
28685
|
-
var _type = _asyncToGenerator(
|
|
28680
|
+
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
28686
28681
|
var form, values, name, relates, source;
|
|
28687
28682
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
28688
28683
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -29162,7 +29157,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29162
29157
|
source: {
|
|
29163
29158
|
relates: ['choiceType', 'inputType'],
|
|
29164
29159
|
type: function () {
|
|
29165
|
-
var _type2 = _asyncToGenerator(
|
|
29160
|
+
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
29166
29161
|
var values, name, form, source;
|
|
29167
29162
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
29168
29163
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -29384,7 +29379,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29384
29379
|
width: 900,
|
|
29385
29380
|
maskClosable: false,
|
|
29386
29381
|
onOk: function () {
|
|
29387
|
-
var _onOk = _asyncToGenerator(
|
|
29382
|
+
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
29388
29383
|
var _ref$current4, _res$editableStatus;
|
|
29389
29384
|
var res, _res$defaultValue;
|
|
29390
29385
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -29456,7 +29451,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29456
29451
|
}()
|
|
29457
29452
|
}), /*#__PURE__*/React$1.createElement(Form$1, _objectSpread2(_objectSpread2({}, formConfig), {}, {
|
|
29458
29453
|
ref: ref
|
|
29459
|
-
})), maintainOptionsModal.visible && (
|
|
29454
|
+
})), maintainOptionsModal.visible && (/*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
29460
29455
|
};
|
|
29461
29456
|
|
|
29462
29457
|
// @ts-nocheck
|
|
@@ -30070,7 +30065,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30070
30065
|
return setVisible(false);
|
|
30071
30066
|
},
|
|
30072
30067
|
className: 'customFieldsDrawer'
|
|
30073
|
-
}, detailTablesSetting.length == 0 && (
|
|
30068
|
+
}, detailTablesSetting.length == 0 && (/*#__PURE__*/React$1.createElement("div", {
|
|
30074
30069
|
style: {
|
|
30075
30070
|
display: 'flex'
|
|
30076
30071
|
}
|
|
@@ -30079,13 +30074,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30079
30074
|
flex: 1,
|
|
30080
30075
|
width: 500
|
|
30081
30076
|
}
|
|
30082
|
-
}, isEmpty(moduleParams) ? (
|
|
30077
|
+
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
30083
30078
|
style: {
|
|
30084
30079
|
padding: "10px 0",
|
|
30085
30080
|
fontSize: "16px",
|
|
30086
30081
|
fontWeight: "bolder"
|
|
30087
30082
|
}
|
|
30088
|
-
}, "\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")) : (
|
|
30083
|
+
}, "\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", {
|
|
30089
30084
|
style: {
|
|
30090
30085
|
flex: 1
|
|
30091
30086
|
}
|
|
@@ -30094,7 +30089,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30094
30089
|
onRun: onClickRun,
|
|
30095
30090
|
value: jsonEditorVal,
|
|
30096
30091
|
shallowHeight: height
|
|
30097
|
-
})))), detailTablesSetting.length > 0 && (
|
|
30092
|
+
})))), detailTablesSetting.length > 0 && (/*#__PURE__*/React$1.createElement(Tabs, {
|
|
30098
30093
|
defaultActiveKey: activeKey,
|
|
30099
30094
|
onChange: function onChange(v) {
|
|
30100
30095
|
return setActiveKey(v);
|
|
@@ -30111,13 +30106,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30111
30106
|
flex: 1,
|
|
30112
30107
|
width: 500
|
|
30113
30108
|
}
|
|
30114
|
-
}, isEmpty(moduleParams) ? (
|
|
30109
|
+
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
30115
30110
|
style: {
|
|
30116
30111
|
padding: "10px 0",
|
|
30117
30112
|
fontSize: "16px",
|
|
30118
30113
|
fontWeight: "bolder"
|
|
30119
30114
|
}
|
|
30120
|
-
}, "\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")) : (
|
|
30115
|
+
}, "\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", {
|
|
30121
30116
|
style: {
|
|
30122
30117
|
flex: 1
|
|
30123
30118
|
}
|
|
@@ -30139,13 +30134,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30139
30134
|
flex: 1,
|
|
30140
30135
|
width: 500
|
|
30141
30136
|
}
|
|
30142
|
-
}, !tablesConfigParams[k.tableCode] ? (
|
|
30137
|
+
}, !tablesConfigParams[k.tableCode] ? (/*#__PURE__*/React$1.createElement("div", {
|
|
30143
30138
|
style: {
|
|
30144
30139
|
padding: "10px 0",
|
|
30145
30140
|
fontSize: "16px",
|
|
30146
30141
|
fontWeight: "bolder"
|
|
30147
30142
|
}
|
|
30148
|
-
}, "\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")) : (
|
|
30143
|
+
}, "\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", {
|
|
30149
30144
|
style: {
|
|
30150
30145
|
flex: 1
|
|
30151
30146
|
}
|
|
@@ -30291,7 +30286,7 @@ function getMetaData(_x) {
|
|
|
30291
30286
|
|
|
30292
30287
|
// 获取数据
|
|
30293
30288
|
function _getMetaData() {
|
|
30294
|
-
_getMetaData = _asyncToGenerator(
|
|
30289
|
+
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
30295
30290
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30296
30291
|
while (1) switch (_context.prev = _context.next) {
|
|
30297
30292
|
case 0:
|
|
@@ -30513,7 +30508,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
30513
30508
|
tableState = _useState4[0],
|
|
30514
30509
|
setTableState = _useState4[1];
|
|
30515
30510
|
var handleOpen = /*#__PURE__*/function () {
|
|
30516
|
-
var _ref = _asyncToGenerator(
|
|
30511
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30517
30512
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
30518
30513
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
30519
30514
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -30832,7 +30827,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
30832
30827
|
destroyOnClose: true
|
|
30833
30828
|
}, config && /*#__PURE__*/React$1.createElement(QueryTable, _objectSpread2({
|
|
30834
30829
|
ref: queryTableRef
|
|
30835
|
-
}, config)), (props === null || props === void 0 ? void 0 : (_props$selectProps4 = props.selectProps) === null || _props$selectProps4 === void 0 ? void 0 : _props$selectProps4.multipleForQuery) && !isView && (
|
|
30830
|
+
}, 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, {
|
|
30836
30831
|
justify: "center",
|
|
30837
30832
|
style: {
|
|
30838
30833
|
marginBottom: 30,
|
|
@@ -30948,7 +30943,7 @@ var CustomSelector = (function (props) {
|
|
|
30948
30943
|
var _props$ctx7;
|
|
30949
30944
|
return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
|
|
30950
30945
|
}
|
|
30951
|
-
})), showType === 'modalTable' && (
|
|
30946
|
+
})), showType === 'modalTable' && (/*#__PURE__*/React$1.createElement(Button, {
|
|
30952
30947
|
type: "primary",
|
|
30953
30948
|
style: {
|
|
30954
30949
|
width: '30px',
|
|
@@ -31034,7 +31029,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
31034
31029
|
_useState2 = _slicedToArray(_useState, 2),
|
|
31035
31030
|
handSource = _useState2[0],
|
|
31036
31031
|
setHandSource = _useState2[1];
|
|
31037
|
-
useEffect(
|
|
31032
|
+
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31038
31033
|
var resData, data;
|
|
31039
31034
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31040
31035
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -31186,7 +31181,7 @@ function getRegularThresholdRange(_x) {
|
|
|
31186
31181
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
31187
31182
|
}
|
|
31188
31183
|
function _getRegularThresholdRange() {
|
|
31189
|
-
_getRegularThresholdRange = _asyncToGenerator(
|
|
31184
|
+
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
31190
31185
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31191
31186
|
while (1) switch (_context.prev = _context.next) {
|
|
31192
31187
|
case 0:
|
|
@@ -31340,7 +31335,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
31340
31335
|
};
|
|
31341
31336
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
31342
31337
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
31343
|
-
var _ref = _asyncToGenerator(
|
|
31338
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
31344
31339
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
31345
31340
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31346
31341
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -32285,7 +32280,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32285
32280
|
isAll: true,
|
|
32286
32281
|
needNameAndCode: true,
|
|
32287
32282
|
notChangeOnSelect: true,
|
|
32288
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
32283
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
32289
32284
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
32290
32285
|
while (1) switch (_context2.prev = _context2.next) {
|
|
32291
32286
|
case 0:
|
|
@@ -32334,7 +32329,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32334
32329
|
isAll: true,
|
|
32335
32330
|
needNameAndCode: true,
|
|
32336
32331
|
notChangeOnSelect: true,
|
|
32337
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
32332
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
32338
32333
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
32339
32334
|
while (1) switch (_context3.prev = _context3.next) {
|
|
32340
32335
|
case 0:
|
|
@@ -32385,7 +32380,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32385
32380
|
isAll: true,
|
|
32386
32381
|
needNameAndCode: true,
|
|
32387
32382
|
notChangeOnSelect: true,
|
|
32388
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
32383
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
32389
32384
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
32390
32385
|
while (1) switch (_context4.prev = _context4.next) {
|
|
32391
32386
|
case 0:
|
|
@@ -34349,7 +34344,7 @@ var App$1 = function App(_ref) {
|
|
|
34349
34344
|
borderRadius: '5px',
|
|
34350
34345
|
cursor: 'pointer'
|
|
34351
34346
|
}
|
|
34352
|
-
}, isStaticNumber ? (
|
|
34347
|
+
}, isStaticNumber ? (/*#__PURE__*/React$1.createElement(Input, {
|
|
34353
34348
|
autoFocus: true,
|
|
34354
34349
|
onClick: function onClick(e) {
|
|
34355
34350
|
return e.stopPropagation();
|
|
@@ -34636,7 +34631,7 @@ function RenderCompItem(props) {
|
|
|
34636
34631
|
dictData = _useState2[0],
|
|
34637
34632
|
setDictData = _useState2[1];
|
|
34638
34633
|
var getDictData = /*#__PURE__*/function () {
|
|
34639
|
-
var _ref = _asyncToGenerator(
|
|
34634
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
34640
34635
|
var _data$map;
|
|
34641
34636
|
var data;
|
|
34642
34637
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -34678,7 +34673,7 @@ function RenderCompItem(props) {
|
|
|
34678
34673
|
var style2 = {
|
|
34679
34674
|
width: '100px'
|
|
34680
34675
|
};
|
|
34681
|
-
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 && (
|
|
34676
|
+
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, {
|
|
34682
34677
|
disabled: disabled,
|
|
34683
34678
|
allowClear: true,
|
|
34684
34679
|
onClear: function onClear() {
|
|
@@ -34689,7 +34684,7 @@ function RenderCompItem(props) {
|
|
|
34689
34684
|
onBlur: function onBlur(e) {
|
|
34690
34685
|
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
34691
34686
|
}
|
|
34692
|
-
})) || 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) && (
|
|
34687
|
+
})) || 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, {
|
|
34693
34688
|
disabled: disabled,
|
|
34694
34689
|
// max={Number.MAX_SAFE_INTEGER}
|
|
34695
34690
|
max: judgeIsEmpty(ites === null || ites === void 0 ? void 0 : ites.maxValue) ? Number.MAX_SAFE_INTEGER : ites.maxValue,
|
|
@@ -34702,7 +34697,7 @@ function RenderCompItem(props) {
|
|
|
34702
34697
|
onChange: function onChange(value) {
|
|
34703
34698
|
handleEdit(ites.code, value);
|
|
34704
34699
|
}
|
|
34705
|
-
})) || 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) && (
|
|
34700
|
+
})) || 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, {
|
|
34706
34701
|
showTime: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 32,
|
|
34707
34702
|
format: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 41 ? dateFormat : fullDateFormat,
|
|
34708
34703
|
disabled: disabled,
|
|
@@ -34712,7 +34707,7 @@ function RenderCompItem(props) {
|
|
|
34712
34707
|
onChange: function onChange(value, dateString) {
|
|
34713
34708
|
handleEdit(ites.code, dateString);
|
|
34714
34709
|
}
|
|
34715
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && (
|
|
34710
|
+
})) || 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, {
|
|
34716
34711
|
showTime: true,
|
|
34717
34712
|
disabled: disabled,
|
|
34718
34713
|
defaultValue: ites.defaultValue,
|
|
@@ -34721,7 +34716,7 @@ function RenderCompItem(props) {
|
|
|
34721
34716
|
onChange: function onChange(value, timeString) {
|
|
34722
34717
|
handleEdit(ites.code, timeString);
|
|
34723
34718
|
}
|
|
34724
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && (
|
|
34719
|
+
})) || 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, {
|
|
34725
34720
|
disabled: disabled,
|
|
34726
34721
|
defaultChecked: !!ites.defaultValue,
|
|
34727
34722
|
style: style2,
|
|
@@ -34729,7 +34724,7 @@ function RenderCompItem(props) {
|
|
|
34729
34724
|
onChange: function onChange(value) {
|
|
34730
34725
|
handleEdit(ites.code, value);
|
|
34731
34726
|
}
|
|
34732
|
-
})) || 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 && (
|
|
34727
|
+
})) || 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({
|
|
34733
34728
|
disabled: disabled,
|
|
34734
34729
|
allowClear: true,
|
|
34735
34730
|
showArrow: true
|
|
@@ -34747,7 +34742,7 @@ function RenderCompItem(props) {
|
|
|
34747
34742
|
key: it,
|
|
34748
34743
|
value: it
|
|
34749
34744
|
}, ites.enumeration[it]);
|
|
34750
|
-
}))) || 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 && (
|
|
34745
|
+
}))) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 20 && (/*#__PURE__*/React$1.createElement(InnerSelect, {
|
|
34751
34746
|
disabled: disabled,
|
|
34752
34747
|
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
34753
34748
|
defaultValue: ites.defaultValue,
|
|
@@ -34757,7 +34752,7 @@ function RenderCompItem(props) {
|
|
|
34757
34752
|
handleEdit(ites.code, value);
|
|
34758
34753
|
},
|
|
34759
34754
|
dictionaryCode: ites.dictionaryCode
|
|
34760
|
-
})) || 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 && (
|
|
34755
|
+
})) || 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, {
|
|
34761
34756
|
selectBusinessType: "physicalWarehouse",
|
|
34762
34757
|
selectProps: _objectSpread2({
|
|
34763
34758
|
style: styleCommon,
|
|
@@ -34779,7 +34774,7 @@ function RenderCompItem(props) {
|
|
|
34779
34774
|
getPopupContainer: function getPopupContainer() {
|
|
34780
34775
|
return document.body;
|
|
34781
34776
|
}
|
|
34782
|
-
})) || 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 && (
|
|
34777
|
+
})) || 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, {
|
|
34783
34778
|
selectBusinessType: "realWarehouse",
|
|
34784
34779
|
selectProps: _objectSpread2({
|
|
34785
34780
|
style: styleCommon,
|
|
@@ -34801,7 +34796,7 @@ function RenderCompItem(props) {
|
|
|
34801
34796
|
getPopupContainer: function getPopupContainer() {
|
|
34802
34797
|
return document.body;
|
|
34803
34798
|
}
|
|
34804
|
-
})) || 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 && (
|
|
34799
|
+
})) || 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, {
|
|
34805
34800
|
selectBusinessType: "virtualWarehouse",
|
|
34806
34801
|
selectProps: _objectSpread2({
|
|
34807
34802
|
style: styleCommon,
|
|
@@ -34823,7 +34818,7 @@ function RenderCompItem(props) {
|
|
|
34823
34818
|
getPopupContainer: function getPopupContainer() {
|
|
34824
34819
|
return document.body;
|
|
34825
34820
|
}
|
|
34826
|
-
})) || 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 && (
|
|
34821
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 140 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34827
34822
|
selectBusinessType: "channelWarehouse",
|
|
34828
34823
|
selectProps: _objectSpread2({
|
|
34829
34824
|
style: styleCommon,
|
|
@@ -34845,7 +34840,7 @@ function RenderCompItem(props) {
|
|
|
34845
34840
|
getPopupContainer: function getPopupContainer() {
|
|
34846
34841
|
return document.body;
|
|
34847
34842
|
}
|
|
34848
|
-
})) || 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 && (
|
|
34843
|
+
})) || 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, {
|
|
34849
34844
|
selectBusinessType: "spuCommodity",
|
|
34850
34845
|
selectProps: _objectSpread2({
|
|
34851
34846
|
style: styleCommon,
|
|
@@ -34866,7 +34861,7 @@ function RenderCompItem(props) {
|
|
|
34866
34861
|
getPopupContainer: function getPopupContainer() {
|
|
34867
34862
|
return document.body;
|
|
34868
34863
|
}
|
|
34869
|
-
})) || 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 && (
|
|
34864
|
+
})) || 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, {
|
|
34870
34865
|
selectBusinessType: "skuCommodity",
|
|
34871
34866
|
selectProps: _objectSpread2({
|
|
34872
34867
|
style: styleCommon,
|
|
@@ -34887,13 +34882,13 @@ function RenderCompItem(props) {
|
|
|
34887
34882
|
getPopupContainer: function getPopupContainer() {
|
|
34888
34883
|
return document.body;
|
|
34889
34884
|
}
|
|
34890
|
-
})) || 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 && (
|
|
34885
|
+
})) || 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, {
|
|
34891
34886
|
disabled: disabled,
|
|
34892
34887
|
isAll: true,
|
|
34893
34888
|
needNameAndCode: true,
|
|
34894
34889
|
notChangeOnSelect: true,
|
|
34895
34890
|
initRequestSource: function () {
|
|
34896
|
-
var _initRequestSource = _asyncToGenerator(
|
|
34891
|
+
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
34897
34892
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
34898
34893
|
while (1) switch (_context2.prev = _context2.next) {
|
|
34899
34894
|
case 0:
|
|
@@ -34935,7 +34930,7 @@ function RenderCompItem(props) {
|
|
|
34935
34930
|
getPopupContainer: function getPopupContainer() {
|
|
34936
34931
|
return document.body;
|
|
34937
34932
|
}
|
|
34938
|
-
})) || 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 && (
|
|
34933
|
+
})) || 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, {
|
|
34939
34934
|
disabled: disabled,
|
|
34940
34935
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34941
34936
|
businessType: "department",
|
|
@@ -34948,7 +34943,7 @@ function RenderCompItem(props) {
|
|
|
34948
34943
|
getPopupContainer: function getPopupContainer() {
|
|
34949
34944
|
return document.body;
|
|
34950
34945
|
}
|
|
34951
|
-
})) || 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 && (
|
|
34946
|
+
})) || 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, {
|
|
34952
34947
|
disabled: disabled,
|
|
34953
34948
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34954
34949
|
businessType: "purchase-organization",
|
|
@@ -34961,7 +34956,7 @@ function RenderCompItem(props) {
|
|
|
34961
34956
|
getPopupContainer: function getPopupContainer() {
|
|
34962
34957
|
return document.body;
|
|
34963
34958
|
}
|
|
34964
|
-
})) || 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 && (
|
|
34959
|
+
})) || 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, {
|
|
34965
34960
|
disabled: disabled,
|
|
34966
34961
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34967
34962
|
businessType: "sales-organization",
|
|
@@ -34974,7 +34969,7 @@ function RenderCompItem(props) {
|
|
|
34974
34969
|
getPopupContainer: function getPopupContainer() {
|
|
34975
34970
|
return document.body;
|
|
34976
34971
|
}
|
|
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) === 240 && (
|
|
34972
|
+
})) || 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, {
|
|
34978
34973
|
selectBusinessType: "supplier2",
|
|
34979
34974
|
selectProps: _objectSpread2({
|
|
34980
34975
|
style: styleCommon,
|
|
@@ -34995,7 +34990,7 @@ function RenderCompItem(props) {
|
|
|
34995
34990
|
getPopupContainer: function getPopupContainer() {
|
|
34996
34991
|
return document.body;
|
|
34997
34992
|
}
|
|
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) === 250 && (
|
|
34993
|
+
})) || 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, {
|
|
34999
34994
|
selectBusinessType: "customer2",
|
|
35000
34995
|
selectProps: _objectSpread2({
|
|
35001
34996
|
style: styleCommon,
|
|
@@ -35016,7 +35011,7 @@ function RenderCompItem(props) {
|
|
|
35016
35011
|
getPopupContainer: function getPopupContainer() {
|
|
35017
35012
|
return document.body;
|
|
35018
35013
|
}
|
|
35019
|
-
})) || 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 && (
|
|
35014
|
+
})) || 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, {
|
|
35020
35015
|
selectBusinessType: "shopFile2",
|
|
35021
35016
|
selectProps: _objectSpread2({
|
|
35022
35017
|
style: styleCommon,
|
|
@@ -35037,7 +35032,7 @@ function RenderCompItem(props) {
|
|
|
35037
35032
|
getPopupContainer: function getPopupContainer() {
|
|
35038
35033
|
return document.body;
|
|
35039
35034
|
}
|
|
35040
|
-
})) || 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 && (
|
|
35035
|
+
})) || 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, {
|
|
35041
35036
|
selectBusinessType: "employee2",
|
|
35042
35037
|
selectProps: _objectSpread2({
|
|
35043
35038
|
style: styleCommon,
|
|
@@ -35058,7 +35053,7 @@ function RenderCompItem(props) {
|
|
|
35058
35053
|
getPopupContainer: function getPopupContainer() {
|
|
35059
35054
|
return document.body;
|
|
35060
35055
|
}
|
|
35061
|
-
})) || 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 && (
|
|
35056
|
+
})) || 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, {
|
|
35062
35057
|
disabled: disabled,
|
|
35063
35058
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35064
35059
|
businessType: "stock-organization",
|
|
@@ -35071,7 +35066,7 @@ function RenderCompItem(props) {
|
|
|
35071
35066
|
getPopupContainer: function getPopupContainer() {
|
|
35072
35067
|
return document.body;
|
|
35073
35068
|
}
|
|
35074
|
-
})) || 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 && (
|
|
35069
|
+
})) || 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, {
|
|
35075
35070
|
disabled: disabled,
|
|
35076
35071
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35077
35072
|
businessType: "settle-organization",
|
|
@@ -35084,7 +35079,7 @@ function RenderCompItem(props) {
|
|
|
35084
35079
|
getPopupContainer: function getPopupContainer() {
|
|
35085
35080
|
return document.body;
|
|
35086
35081
|
}
|
|
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) === 310 && (
|
|
35082
|
+
})) || 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, {
|
|
35088
35083
|
selectBusinessType: "deliveryMode",
|
|
35089
35084
|
selectProps: _objectSpread2({
|
|
35090
35085
|
style: styleCommon,
|
|
@@ -35105,7 +35100,7 @@ function RenderCompItem(props) {
|
|
|
35105
35100
|
getPopupContainer: function getPopupContainer() {
|
|
35106
35101
|
return document.body;
|
|
35107
35102
|
}
|
|
35108
|
-
})) || 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 && (
|
|
35103
|
+
})) || 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, {
|
|
35109
35104
|
selectBusinessType: "role",
|
|
35110
35105
|
selectProps: _objectSpread2({
|
|
35111
35106
|
style: styleCommon,
|
|
@@ -35126,7 +35121,7 @@ function RenderCompItem(props) {
|
|
|
35126
35121
|
getPopupContainer: function getPopupContainer() {
|
|
35127
35122
|
return document.body;
|
|
35128
35123
|
}
|
|
35129
|
-
})) || 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 && (
|
|
35124
|
+
})) || 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, {
|
|
35130
35125
|
selectBusinessType: "brand",
|
|
35131
35126
|
selectProps: _objectSpread2({
|
|
35132
35127
|
style: styleCommon,
|
|
@@ -35147,7 +35142,7 @@ function RenderCompItem(props) {
|
|
|
35147
35142
|
getPopupContainer: function getPopupContainer() {
|
|
35148
35143
|
return document.body;
|
|
35149
35144
|
}
|
|
35150
|
-
})) || 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 && (
|
|
35145
|
+
})) || 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, {
|
|
35151
35146
|
disabled: disabled,
|
|
35152
35147
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35153
35148
|
businessType: "background-category",
|
|
@@ -35160,7 +35155,7 @@ function RenderCompItem(props) {
|
|
|
35160
35155
|
getPopupContainer: function getPopupContainer() {
|
|
35161
35156
|
return document.body;
|
|
35162
35157
|
}
|
|
35163
|
-
})) || 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 && (
|
|
35158
|
+
})) || 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, {
|
|
35164
35159
|
selectProps: _objectSpread2(_objectSpread2({
|
|
35165
35160
|
style: styleCommon,
|
|
35166
35161
|
placeholder: '请选择'
|
|
@@ -35183,7 +35178,7 @@ function RenderCompItem(props) {
|
|
|
35183
35178
|
onChange: function onChange(value) {
|
|
35184
35179
|
handleEdit(ites.code, value);
|
|
35185
35180
|
}
|
|
35186
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (
|
|
35181
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (/*#__PURE__*/React$1.createElement("div", {
|
|
35187
35182
|
style: {
|
|
35188
35183
|
display: 'flex'
|
|
35189
35184
|
}
|
|
@@ -35695,7 +35690,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35695
35690
|
queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
|
|
35696
35691
|
queryIdentifyType = 'dynamicDictCodeIdentify';
|
|
35697
35692
|
}
|
|
35698
|
-
var parallelTreeData =
|
|
35693
|
+
var parallelTreeData = _coverToParallel(ruleTreeData, []) || [];
|
|
35699
35694
|
var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
|
|
35700
35695
|
var _i$key;
|
|
35701
35696
|
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);
|
|
@@ -36622,13 +36617,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
36622
36617
|
var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
|
|
36623
36618
|
// 处理对象-设置了必填-规则实例保存时数据必填校验
|
|
36624
36619
|
if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
|
|
36625
|
-
var list =
|
|
36620
|
+
var list = _coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
|
|
36626
36621
|
var requiredList = list.filter(function (c) {
|
|
36627
36622
|
return c.required == 1;
|
|
36628
36623
|
}) || []; // 获取对象属性为true的集合
|
|
36629
36624
|
(requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
|
|
36630
36625
|
var _s$expression, _s$expression$subExpr, _s$expression2, _coverExpressionTree$;
|
|
36631
|
-
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) ?
|
|
36626
|
+
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];
|
|
36632
36627
|
(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) {
|
|
36633
36628
|
if (requiredList.some(function (r) {
|
|
36634
36629
|
return r.id === e.elementId;
|
|
@@ -37217,7 +37212,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
37217
37212
|
style: {
|
|
37218
37213
|
float: 'right'
|
|
37219
37214
|
}
|
|
37220
|
-
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? (
|
|
37215
|
+
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? (/*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
37221
37216
|
onlyOneRule: (_handleDiff2 = handleDiff()) === null || _handleDiff2 === void 0 ? void 0 : _handleDiff2.onlyOneRule,
|
|
37222
37217
|
ruleGroupInfo: {
|
|
37223
37218
|
ruleGroupList: ruleGroupList,
|
|
@@ -37235,7 +37230,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
37235
37230
|
callBack: function callBack(newData) {
|
|
37236
37231
|
upDateData(newData);
|
|
37237
37232
|
}
|
|
37238
|
-
}))) : (
|
|
37233
|
+
}))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
37239
37234
|
style: {
|
|
37240
37235
|
padding: 20
|
|
37241
37236
|
}
|
|
@@ -37610,4 +37605,4 @@ var ParagraphCopier = function ParagraphCopier(props) {
|
|
|
37610
37605
|
}, children));
|
|
37611
37606
|
};
|
|
37612
37607
|
|
|
37613
|
-
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 };
|
|
37608
|
+
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, ParagraphCopier, QueryMutipleInput, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy, _coverToParallel as coverToParallel, createUniqID, downloadExcel, ergodicMenuRoutes, _formatter as formatter, getAccountID, getAccountId, getBreadcrumbNameMap, getCommonInfoKey, getConfigTableColumns, getCurrentTargetBgId, getCurrentTenantId, getDictionarySource, getDictionaryTextByValue, getEmployeeCode, getEmployeeId, getItemDefaultWidth$1 as getItemDefaultWidth, getJoinDictionaryText, getLastKey, getLimitMenuDataKey, getLocalStorageSaveKey, getMenuAuthDataKey, getSessionId, getSkuImg, getTenantList, getUserId, getUserName, go2BackAndClose, handleAntdColumnsSpecialParams, handleBaseUrlPre, handleBeforeUpload, handleBssulaColumnsSpecialParams, handleCommonTimeRender$1 as handleCommonTimeRender, handleConvertResponse, handleError, handleExport, handleExportBarCode, handleJudgeAuthButtons, handleOssUrl, handleRequestAuthHeader, handleRequestHeader, handleRequestUrl, handleStatusBadge, handleTextBreakSpaces, handleTextDouble$1 as handleTextDouble, handleTextDoubleOrId, handleTextLineFeed$1 as handleTextLineFeed, handleTextOverflow$1 as handleTextOverflow, handleTextTooltip, handleTextWarp, handleTextWarpCustom, handleTooltip$1 as handleTooltip, handleTooltipHours$1 as handleTooltipHours, handleUserPhone, judgeIsEmpty, judgeIsRequestError, judgeIsRequestSuccess, keyToWord, memoizeOneFormatter, noEmptyArr, noEmptyArray, paramsControl, parseWidth, precisionQuantity, randomString, readerXlsxToList, removeCurrentTenantId, removeTenantList, renderFixed2, renderNumberText, saveCurrentTenantId, saveTenantList, setConfigTableColumns, shouldUseAuth, socketFunctions, sulaTableRenderTooltip, tableColumnsImage$1 as tableColumnsImage, textIcon, updateGuanDate, userColumns$1 as userColumns, userInfoCard$1 as userInfoCard, uuid, writeListToXlsx };
|