@bit-sun/business-component 4.0.12-alpha.2 → 4.0.12-alpha.4
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 +327 -269
- package/dist/index.js +328 -270
- package/package.json +1 -1
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +1 -1
- package/src/components/Business/columnSettingTable/index.less +1 -1
- package/src/components/Business/columnSettingTable/index.tsx +33 -2
- package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +33 -2
- package/src/components/Functional/SearchSelect/index.tsx +7 -2
- package/src/components/Functional/SearchSelect/utils.ts +2 -2
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"
|
|
@@ -4120,8 +4120,8 @@ var getRealStr = function getRealStr(oldSelect, newSelect, record) {
|
|
|
4120
4120
|
};
|
|
4121
4121
|
var getTableHeigth = function getTableHeigth(list) {
|
|
4122
4122
|
var totalRows = Math.ceil(((list === null || list === void 0 ? void 0 : list.length) + 1) / 4);
|
|
4123
|
-
if (totalRows == 1) return
|
|
4124
|
-
return
|
|
4123
|
+
if (totalRows == 1) return 358; // modal弹窗760 调整为700 适应小屏
|
|
4124
|
+
return 411 - totalRows * 10;
|
|
4125
4125
|
};
|
|
4126
4126
|
|
|
4127
4127
|
var zhankaitiaojian = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%220%200%2024%2024%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3Ezhankaitiaojian-icon%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Crect%20id%3D%22path-1%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3C%2Frect%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22%E9%A1%B5%E9%9D%A2-1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22icon%22%20transform%3D%22translate%28-702.000000%2C%20-498.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22zhankaitiaojian-icon%22%20transform%3D%22translate%28702.000000%2C%20498.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cmask%20id%3D%22mask-2%22%20fill%3D%22white%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fmask%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20id%3D%22%E8%92%99%E7%89%88%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M12.0142082%2C6%20L18%2C11.9972435%20L12.0142082%2C18%20L11.04209%2C17.0260337%20L16.0562218%2C11.9972435%20L11.04209%2C6.97396631%20L12.0142082%2C6%20Z%20M6.97257658%2C6%20L12.9583683%2C11.9972435%20L6.97257658%2C18%20L6.00091666%2C17.0260337%20L11.0150485%2C11.9972435%20L6%2C6.97396631%20L6.97257658%2C6%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%20fill%3D%22%23005CFF%22%20fill-rule%3D%22nonzero%22%20mask%3D%22url%28%23mask-2%29%22%20transform%3D%22translate%2812.000000%2C%2012.000000%29%20rotate%28-270.000000%29%20translate%28-12.000000%2C%20-12.000000%29%20%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
@@ -5071,10 +5071,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5071
5071
|
// />
|
|
5072
5072
|
var renderShowTable = function renderShowTable(tableList, type) {
|
|
5073
5073
|
var tableBoxHeighth = getTableHeigth(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm);
|
|
5074
|
-
var oSY = "calc(100vh -
|
|
5074
|
+
var oSY = "calc(100vh - ".concat(tableBoxHeighth, "px - 82px)"); // 分页 24+16*2+10 「高 + margin * 2 + paddingBottom 10 」
|
|
5075
5075
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
5076
5076
|
style: {
|
|
5077
|
-
height: "calc(100vh -
|
|
5077
|
+
height: "calc(100vh - ".concat(tableBoxHeighth, "px)")
|
|
5078
5078
|
}
|
|
5079
5079
|
}, /*#__PURE__*/React$1.createElement(Table, _objectSpread2(_objectSpread2({
|
|
5080
5080
|
bordered: true,
|
|
@@ -5135,7 +5135,13 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5135
5135
|
init && run('init');
|
|
5136
5136
|
};
|
|
5137
5137
|
var onClear = function onClear() {
|
|
5138
|
+
var _props$onClear;
|
|
5139
|
+
// 执行父组件 onClear 事件
|
|
5140
|
+
props === null || props === void 0 ? void 0 : (_props$onClear = props.onClear) === null || _props$onClear === void 0 ? void 0 : _props$onClear.call(props);
|
|
5141
|
+
// 清空下拉框 / 弹窗 选中数据
|
|
5138
5142
|
formaData([], items);
|
|
5143
|
+
onChangeSelectedKeys([], []);
|
|
5144
|
+
// 重置下拉框数据源
|
|
5139
5145
|
resetSelectDataSource();
|
|
5140
5146
|
};
|
|
5141
5147
|
var onDeselect = function onDeselect() {
|
|
@@ -5310,13 +5316,13 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5310
5316
|
var isShouldShowStr = props.disabled && ctx || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) == 'view';
|
|
5311
5317
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
5312
5318
|
className: 'search_select'
|
|
5313
|
-
}, fieldComponent ? (
|
|
5319
|
+
}, fieldComponent ? (/*#__PURE__*/React$1.createElement("div", {
|
|
5314
5320
|
onClick: function onClick() {
|
|
5315
5321
|
var _fieldComponent$props, _fieldComponent$props2;
|
|
5316
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);
|
|
5317
5323
|
showModal();
|
|
5318
5324
|
}
|
|
5319
|
-
}, fieldComponent)) : isShouldShowStr ? (
|
|
5325
|
+
}, fieldComponent)) : isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
5320
5326
|
title: getShowStr(),
|
|
5321
5327
|
style: {
|
|
5322
5328
|
overflow: 'hidden',
|
|
@@ -5343,10 +5349,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5343
5349
|
dropdownRender: function dropdownRender(menu) {
|
|
5344
5350
|
return (items === null || items === void 0 ? void 0 : items.length) ? renderTable(items) : menu;
|
|
5345
5351
|
},
|
|
5346
|
-
notFoundContent: fetching ? (
|
|
5352
|
+
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
5347
5353
|
size: "small",
|
|
5348
5354
|
className: 'searchSelectSpin'
|
|
5349
|
-
})) : (
|
|
5355
|
+
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
5350
5356
|
style: {
|
|
5351
5357
|
textAlign: 'center'
|
|
5352
5358
|
}
|
|
@@ -5377,7 +5383,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5377
5383
|
text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
|
|
5378
5384
|
filterTxt: searchValue
|
|
5379
5385
|
}));
|
|
5380
|
-
}))), needModalTable && isModalVisible && (
|
|
5386
|
+
}))), needModalTable && isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
5381
5387
|
maskClosable: false,
|
|
5382
5388
|
destroyOnClose: true,
|
|
5383
5389
|
width: "80%",
|
|
@@ -5974,7 +5980,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
5974
5980
|
style: {
|
|
5975
5981
|
width: 525
|
|
5976
5982
|
}
|
|
5977
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
5983
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
5978
5984
|
checked: !dataSource.some(function (item) {
|
|
5979
5985
|
if (item.hidden) return true;
|
|
5980
5986
|
return false;
|
|
@@ -6012,13 +6018,13 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6012
6018
|
_this2.onChange(e, item.title);
|
|
6013
6019
|
}
|
|
6014
6020
|
}, item.title);
|
|
6015
|
-
}), !!seatchDataSource.length && (
|
|
6021
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
6016
6022
|
style: {
|
|
6017
6023
|
width: '144px'
|
|
6018
6024
|
}
|
|
6019
|
-
})), !seatchDataSource.length && (
|
|
6025
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
6020
6026
|
className: 'sort_table_column_all_empty'
|
|
6021
|
-
}, "\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", {
|
|
6022
6028
|
className: 'sort_table_column_special'
|
|
6023
6029
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
6024
6030
|
className: 'sort_table_column_all'
|
|
@@ -6207,7 +6213,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
|
|
|
6207
6213
|
});
|
|
6208
6214
|
};
|
|
6209
6215
|
// 格式化树选择器数据源
|
|
6210
|
-
var
|
|
6216
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
6211
6217
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
6212
6218
|
return {
|
|
6213
6219
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -6217,7 +6223,7 @@ var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
|
6217
6223
|
isLeaf: !haveChildren,
|
|
6218
6224
|
disabled: haveChildren,
|
|
6219
6225
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
6220
|
-
return
|
|
6226
|
+
return _mapSearchTree(i, resKeyValue);
|
|
6221
6227
|
}) : []
|
|
6222
6228
|
};
|
|
6223
6229
|
};
|
|
@@ -6226,7 +6232,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
6226
6232
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
6227
6233
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
6228
6234
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
6229
|
-
return
|
|
6235
|
+
return _mapSearchTree(ites, resKeyValue);
|
|
6230
6236
|
}) || [];
|
|
6231
6237
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
6232
6238
|
};
|
|
@@ -6397,7 +6403,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
6397
6403
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
6398
6404
|
// FIXME: 特殊业务逻辑
|
|
6399
6405
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
6400
|
-
var _ref2 = _asyncToGenerator(
|
|
6406
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
6401
6407
|
var result;
|
|
6402
6408
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
6403
6409
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -6650,7 +6656,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
6650
6656
|
return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
6651
6657
|
value: text || null,
|
|
6652
6658
|
onChange: function () {
|
|
6653
|
-
var _onChange = _asyncToGenerator(
|
|
6659
|
+
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
6654
6660
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
6655
6661
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
6656
6662
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -7258,10 +7264,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7258
7264
|
var newColumns = arr.map(function (col) {
|
|
7259
7265
|
return _objectSpread2({}, col);
|
|
7260
7266
|
});
|
|
7261
|
-
var
|
|
7267
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
7262
7268
|
var i = indexArr.shift();
|
|
7263
7269
|
if (indexArr.length > 0) {
|
|
7264
|
-
|
|
7270
|
+
_handleIndex(arr[i].children, indexArr);
|
|
7265
7271
|
} else {
|
|
7266
7272
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
7267
7273
|
width: size.width
|
|
@@ -7269,7 +7275,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7269
7275
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
7270
7276
|
}
|
|
7271
7277
|
};
|
|
7272
|
-
|
|
7278
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
7273
7279
|
callback(newColumns);
|
|
7274
7280
|
};
|
|
7275
7281
|
};
|
|
@@ -7279,13 +7285,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
7279
7285
|
var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
|
|
7280
7286
|
setShowToChooseColumns(_toConsumableArray(newColumns));
|
|
7281
7287
|
};
|
|
7282
|
-
var
|
|
7288
|
+
var _handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
7283
7289
|
arr.forEach(function (item, index) {
|
|
7284
7290
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
7285
7291
|
return i || i === 0;
|
|
7286
7292
|
});
|
|
7287
7293
|
if (noEmptyArray$1(item.children)) {
|
|
7288
|
-
|
|
7294
|
+
_handleColumns(item.children, indexArrInside);
|
|
7289
7295
|
} else {
|
|
7290
7296
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
7291
7297
|
item.onHeaderCell = function (column) {
|
|
@@ -7301,14 +7307,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
7301
7307
|
handleAntdColumnsSpecialParams(item);
|
|
7302
7308
|
return _objectSpread2({}, item);
|
|
7303
7309
|
});
|
|
7304
|
-
|
|
7310
|
+
_handleColumns(showToChooseCol, [], function (res) {
|
|
7305
7311
|
return setShowToChooseColumnsCallback(res);
|
|
7306
7312
|
});
|
|
7307
7313
|
var showSelectedCol = showColumns.map(function (item) {
|
|
7308
7314
|
handleAntdColumnsSpecialParams(item);
|
|
7309
7315
|
return _objectSpread2({}, item);
|
|
7310
7316
|
});
|
|
7311
|
-
|
|
7317
|
+
_handleColumns(showSelectedCol, [], function (res) {
|
|
7312
7318
|
return setShowColumnsCallback(res);
|
|
7313
7319
|
});
|
|
7314
7320
|
var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
|
|
@@ -7319,7 +7325,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7319
7325
|
id: "add_select_div_".concat(uniqueValue)
|
|
7320
7326
|
}, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
7321
7327
|
onClick: handleShowModal
|
|
7322
|
-
}, realButtonProps), buttonText)), isModalVisible && (
|
|
7328
|
+
}, realButtonProps), buttonText)), isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
7323
7329
|
width: '1200px',
|
|
7324
7330
|
style: {
|
|
7325
7331
|
top: 20
|
|
@@ -8233,7 +8239,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8233
8239
|
});
|
|
8234
8240
|
};
|
|
8235
8241
|
var handleSubmit = /*#__PURE__*/function () {
|
|
8236
|
-
var _ref4 = _asyncToGenerator(
|
|
8242
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
8237
8243
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
8238
8244
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
8239
8245
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -8316,10 +8322,10 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8316
8322
|
var newColumns = arr.map(function (col) {
|
|
8317
8323
|
return _objectSpread2({}, col);
|
|
8318
8324
|
});
|
|
8319
|
-
var
|
|
8325
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
8320
8326
|
var i = indexArr.shift();
|
|
8321
8327
|
if (indexArr.length > 0) {
|
|
8322
|
-
|
|
8328
|
+
_handleIndex(arr[i].children, indexArr);
|
|
8323
8329
|
} else {
|
|
8324
8330
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
8325
8331
|
width: size.width
|
|
@@ -8327,17 +8333,17 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8327
8333
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
8328
8334
|
}
|
|
8329
8335
|
};
|
|
8330
|
-
|
|
8336
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
8331
8337
|
callback(newColumns);
|
|
8332
8338
|
};
|
|
8333
8339
|
};
|
|
8334
|
-
var
|
|
8340
|
+
var _handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
8335
8341
|
arr.forEach(function (item, index) {
|
|
8336
8342
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
8337
8343
|
return i || i === 0;
|
|
8338
8344
|
});
|
|
8339
8345
|
if (noEmptyArray$1(item.children)) {
|
|
8340
|
-
|
|
8346
|
+
_handleColumns(item.children, indexArrInside);
|
|
8341
8347
|
} else {
|
|
8342
8348
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
8343
8349
|
item.onHeaderCell = function (column) {
|
|
@@ -8353,7 +8359,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8353
8359
|
handleAntdColumnsSpecialParams(item);
|
|
8354
8360
|
return _objectSpread2({}, item);
|
|
8355
8361
|
});
|
|
8356
|
-
|
|
8362
|
+
_handleColumns(showSelectedCol, [], function (res) {
|
|
8357
8363
|
return setShowColumnsCallback(res);
|
|
8358
8364
|
});
|
|
8359
8365
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -8667,7 +8673,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8667
8673
|
});
|
|
8668
8674
|
};
|
|
8669
8675
|
// 格式化树选择器数据源
|
|
8670
|
-
var
|
|
8676
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
8671
8677
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
8672
8678
|
return {
|
|
8673
8679
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -8677,7 +8683,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8677
8683
|
isLeaf: !haveChildren,
|
|
8678
8684
|
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
8679
8685
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
8680
|
-
return
|
|
8686
|
+
return _mapSearchTree(i, resKeyValue, disabledJudge);
|
|
8681
8687
|
}) : []
|
|
8682
8688
|
};
|
|
8683
8689
|
};
|
|
@@ -8691,7 +8697,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8691
8697
|
disabledJudge = false;
|
|
8692
8698
|
}
|
|
8693
8699
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
8694
|
-
return
|
|
8700
|
+
return _mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
8695
8701
|
}) || [];
|
|
8696
8702
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
8697
8703
|
};
|
|
@@ -8958,7 +8964,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8958
8964
|
name: 'qp-skuName-like',
|
|
8959
8965
|
label: 'SKU名称'
|
|
8960
8966
|
}, {
|
|
8961
|
-
name: 'qp-
|
|
8967
|
+
name: 'qp-itemCode-like',
|
|
8962
8968
|
label: '外部SPU编码'
|
|
8963
8969
|
}, {
|
|
8964
8970
|
name: 'qp-eancode-in',
|
|
@@ -12737,7 +12743,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
12737
12743
|
};
|
|
12738
12744
|
return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
12739
12745
|
onClick: handleShowModal
|
|
12740
|
-
}, buttonProps), buttonName), modalProps.visible && (
|
|
12746
|
+
}, buttonProps), buttonName), modalProps.visible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
12741
12747
|
onOk: handleOk,
|
|
12742
12748
|
onCancel: handleCancel,
|
|
12743
12749
|
destroyOnClose: true,
|
|
@@ -12856,7 +12862,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12856
12862
|
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
|
|
12857
12863
|
_remoteSource$special = remoteSource.specialBracket,
|
|
12858
12864
|
specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
|
|
12859
|
-
var
|
|
12865
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
12860
12866
|
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
12861
12867
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
12862
12868
|
return {
|
|
@@ -12868,7 +12874,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12868
12874
|
isLeaf: !haveChildren,
|
|
12869
12875
|
disabled: isDisabled(haveChildren, isRoot),
|
|
12870
12876
|
children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
|
|
12871
|
-
return
|
|
12877
|
+
return _mapSearchTree(i);
|
|
12872
12878
|
}) : []
|
|
12873
12879
|
};
|
|
12874
12880
|
};
|
|
@@ -12886,8 +12892,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12886
12892
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
12887
12893
|
requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
|
|
12888
12894
|
headers: headers
|
|
12889
|
-
}).then(
|
|
12890
|
-
var _ref = _asyncToGenerator(
|
|
12895
|
+
}).then(/*#__PURE__*/function () {
|
|
12896
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
12891
12897
|
var _ctx$form;
|
|
12892
12898
|
var resData, coverData, data, dataList;
|
|
12893
12899
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -12914,7 +12920,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12914
12920
|
case 9:
|
|
12915
12921
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
12916
12922
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
12917
|
-
return
|
|
12923
|
+
return _mapSearchTree(ites);
|
|
12918
12924
|
}) || [];
|
|
12919
12925
|
case 11:
|
|
12920
12926
|
_context.next = 14;
|
|
@@ -12952,11 +12958,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12952
12958
|
return _formatResult;
|
|
12953
12959
|
}
|
|
12954
12960
|
};
|
|
12955
|
-
var
|
|
12961
|
+
var _parallelData = function parallelData(data, result) {
|
|
12956
12962
|
data.forEach(function (i) {
|
|
12957
12963
|
result.push(i);
|
|
12958
12964
|
if (i[treeChildrenRoom]) {
|
|
12959
|
-
|
|
12965
|
+
_parallelData(i[treeChildrenRoom], result);
|
|
12960
12966
|
}
|
|
12961
12967
|
});
|
|
12962
12968
|
return result;
|
|
@@ -12996,7 +13002,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12996
13002
|
var _ctx$form2;
|
|
12997
13003
|
var handleData = formatData(data);
|
|
12998
13004
|
// 获取选中树节点当条数据,并返回给调用业务
|
|
12999
|
-
var parallelTreeData =
|
|
13005
|
+
var parallelTreeData = _parallelData(treeData, []);
|
|
13000
13006
|
var currentItem = getSelectItem(parallelTreeData, data);
|
|
13001
13007
|
onChange(handleData, data, currentItem, parallelTreeData);
|
|
13002
13008
|
onChangeName && onChangeName(dataName);
|
|
@@ -13039,7 +13045,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13039
13045
|
var getShowStr = function getShowStr() {
|
|
13040
13046
|
var isMultiple = multiple || treeCheckable;
|
|
13041
13047
|
var kongValue = '无';
|
|
13042
|
-
var parallelTreeData =
|
|
13048
|
+
var parallelTreeData = _parallelData(treeData, []);
|
|
13043
13049
|
var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
|
|
13044
13050
|
if (isMultiple) {
|
|
13045
13051
|
return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
|
|
@@ -13051,7 +13057,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13051
13057
|
var isShouldShowStr = (disabled || mode === 'view' || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) === 'view') && ctx;
|
|
13052
13058
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
13053
13059
|
className: 'tree_search_select'
|
|
13054
|
-
}, isShouldShowStr ? (
|
|
13060
|
+
}, isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
13055
13061
|
title: getShowStr(),
|
|
13056
13062
|
style: {
|
|
13057
13063
|
overflow: 'hidden',
|
|
@@ -13059,7 +13065,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13059
13065
|
whiteSpace: 'nowrap'
|
|
13060
13066
|
},
|
|
13061
13067
|
className: 'search_select_show'
|
|
13062
|
-
}, getShowStr())) : (
|
|
13068
|
+
}, getShowStr())) : (/*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
13063
13069
|
treeCheckable: treeCheckable,
|
|
13064
13070
|
maxTagCount: maxTagCount,
|
|
13065
13071
|
showSearch: showSearch,
|
|
@@ -13256,7 +13262,7 @@ var index$2 = (function (props) {
|
|
|
13256
13262
|
} : {}
|
|
13257
13263
|
}, item.text)), /*#__PURE__*/React$1.createElement("div", {
|
|
13258
13264
|
className: 'status-label-operate'
|
|
13259
|
-
}, item.isDone ? (
|
|
13265
|
+
}, item.isDone ? (/*#__PURE__*/React$1.createElement("div", {
|
|
13260
13266
|
title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
|
|
13261
13267
|
}, "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--'))) : null), /*#__PURE__*/React$1.createElement("div", {
|
|
13262
13268
|
style: {
|
|
@@ -14037,7 +14043,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14037
14043
|
style: {
|
|
14038
14044
|
width: 525
|
|
14039
14045
|
}
|
|
14040
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
14046
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
14041
14047
|
checked: !dataSource.some(function (item) {
|
|
14042
14048
|
if (item.hidden) return true;
|
|
14043
14049
|
return false;
|
|
@@ -14075,13 +14081,13 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14075
14081
|
_this2.onChange(e, item.title);
|
|
14076
14082
|
}
|
|
14077
14083
|
}, item.title);
|
|
14078
|
-
}), !!seatchDataSource.length && (
|
|
14084
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
14079
14085
|
style: {
|
|
14080
14086
|
width: '144px'
|
|
14081
14087
|
}
|
|
14082
|
-
})), !seatchDataSource.length && (
|
|
14088
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
14083
14089
|
className: 'sort_table_column_all_empty'
|
|
14084
|
-
}, "\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", {
|
|
14085
14091
|
className: 'sort_table_column_special'
|
|
14086
14092
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
14087
14093
|
className: 'sort_table_column_all'
|
|
@@ -14238,10 +14244,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14238
14244
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
14239
14245
|
return _objectSpread2({}, col);
|
|
14240
14246
|
});
|
|
14241
|
-
var
|
|
14247
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
14242
14248
|
var i = indexArr.shift();
|
|
14243
14249
|
if (indexArr.length > 0) {
|
|
14244
|
-
|
|
14250
|
+
_handleIndex(arr[i].children, indexArr);
|
|
14245
14251
|
} else {
|
|
14246
14252
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
14247
14253
|
width: size.width
|
|
@@ -14249,7 +14255,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14249
14255
|
handleBssulaColumnsSpecialParams(arr[i]);
|
|
14250
14256
|
}
|
|
14251
14257
|
};
|
|
14252
|
-
|
|
14258
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
14253
14259
|
_this.setState({
|
|
14254
14260
|
showColumns: _toConsumableArray(newColumns)
|
|
14255
14261
|
});
|
|
@@ -14320,20 +14326,20 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14320
14326
|
restProps = _objectWithoutProperties(_this$props3, _excluded2$4);
|
|
14321
14327
|
var otherTableInfo = _objectSpread2({}, restProps);
|
|
14322
14328
|
var showSummary = null;
|
|
14323
|
-
if (this.state.showColumns.length) {
|
|
14329
|
+
if (this.state.showColumns.length && !Array.isArray(summary)) {
|
|
14324
14330
|
if (summary && summary().diy) {
|
|
14325
14331
|
showSummary = this.getTableSummaryInfo();
|
|
14326
14332
|
} else {
|
|
14327
14333
|
showSummary = summary;
|
|
14328
14334
|
}
|
|
14329
14335
|
}
|
|
14330
|
-
var
|
|
14336
|
+
var _handleColumns = function handleColumns(arr, indexArr) {
|
|
14331
14337
|
arr.forEach(function (item, index) {
|
|
14332
14338
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
14333
14339
|
return i || i === 0;
|
|
14334
14340
|
});
|
|
14335
14341
|
if (noEmptyArray$1(item.children)) {
|
|
14336
|
-
|
|
14342
|
+
_handleColumns(item.children, indexArrInside);
|
|
14337
14343
|
} else {
|
|
14338
14344
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
14339
14345
|
item.onHeaderCell = function (column) {
|
|
@@ -14349,7 +14355,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14349
14355
|
handleBssulaColumnsSpecialParams(item);
|
|
14350
14356
|
return _objectSpread2({}, item);
|
|
14351
14357
|
});
|
|
14352
|
-
|
|
14358
|
+
_handleColumns(showCol, []);
|
|
14353
14359
|
if (dynamicColumns.length) {
|
|
14354
14360
|
showCol = this.handledynamicColumns(showCol);
|
|
14355
14361
|
}
|
|
@@ -14358,9 +14364,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14358
14364
|
y: 400
|
|
14359
14365
|
}, scroll), {}, {
|
|
14360
14366
|
x: restProps.overScrollX || this.getTableScrollXWidth(showCol)
|
|
14361
|
-
})
|
|
14367
|
+
})
|
|
14368
|
+
}, showSummary ? {
|
|
14362
14369
|
summary: showSummary
|
|
14363
|
-
});
|
|
14370
|
+
} : {});
|
|
14364
14371
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
14365
14372
|
style: {
|
|
14366
14373
|
position: 'relative'
|
|
@@ -14388,7 +14395,32 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14388
14395
|
cell: this.ResizeableTitle
|
|
14389
14396
|
}
|
|
14390
14397
|
}
|
|
14391
|
-
}, otherTableInfo)))
|
|
14398
|
+
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("div", {
|
|
14399
|
+
className: 'table-bssula-summary',
|
|
14400
|
+
style: {
|
|
14401
|
+
right: '20%',
|
|
14402
|
+
bottom: 0,
|
|
14403
|
+
whiteSpace: 'nowrap',
|
|
14404
|
+
overflowX: 'auto'
|
|
14405
|
+
}
|
|
14406
|
+
}, summary.map(function (item) {
|
|
14407
|
+
return /*#__PURE__*/React$1.createElement(Text, {
|
|
14408
|
+
type: 'danger'
|
|
14409
|
+
}, item.label, ": ", /*#__PURE__*/React$1.createElement("span", {
|
|
14410
|
+
className: 'table-bssula-summary-count'
|
|
14411
|
+
}, item.count || 0));
|
|
14412
|
+
})), /*#__PURE__*/React$1.createElement("div", {
|
|
14413
|
+
style: {
|
|
14414
|
+
width: '16px',
|
|
14415
|
+
height: '26px',
|
|
14416
|
+
opacity: 0.32,
|
|
14417
|
+
transform: 'scaleX(-1)',
|
|
14418
|
+
backgroundImage: 'linear-gradient(270deg, #ffffff00 0%, #A4A4A4 100%)',
|
|
14419
|
+
right: '20%',
|
|
14420
|
+
position: 'absolute',
|
|
14421
|
+
bottom: 0
|
|
14422
|
+
}
|
|
14423
|
+
}))));
|
|
14392
14424
|
}
|
|
14393
14425
|
}]);
|
|
14394
14426
|
}(React$1.Component);
|
|
@@ -14483,10 +14515,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14483
14515
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
14484
14516
|
return _objectSpread2({}, col);
|
|
14485
14517
|
});
|
|
14486
|
-
var
|
|
14518
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
14487
14519
|
var i = indexArr.shift();
|
|
14488
14520
|
if (indexArr.length > 0) {
|
|
14489
|
-
|
|
14521
|
+
_handleIndex(arr[i].children, indexArr);
|
|
14490
14522
|
} else {
|
|
14491
14523
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
14492
14524
|
width: size.width
|
|
@@ -14494,7 +14526,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14494
14526
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
14495
14527
|
}
|
|
14496
14528
|
};
|
|
14497
|
-
|
|
14529
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
14498
14530
|
_this.setState({
|
|
14499
14531
|
showColumns: _toConsumableArray(newColumns)
|
|
14500
14532
|
});
|
|
@@ -14563,20 +14595,20 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14563
14595
|
restProps = _objectWithoutProperties(_this$props3, _excluded2$5);
|
|
14564
14596
|
var otherTableInfo = _objectSpread2({}, restProps);
|
|
14565
14597
|
var showSummary = null;
|
|
14566
|
-
if (this.state.showColumns.length) {
|
|
14598
|
+
if (this.state.showColumns.length && !Array.isArray(summary)) {
|
|
14567
14599
|
if (summary && summary().diy) {
|
|
14568
14600
|
showSummary = this.getTableSummaryInfo();
|
|
14569
14601
|
} else {
|
|
14570
14602
|
showSummary = summary;
|
|
14571
14603
|
}
|
|
14572
14604
|
}
|
|
14573
|
-
var
|
|
14605
|
+
var _handleColumns = function handleColumns(arr, indexArr) {
|
|
14574
14606
|
arr.forEach(function (item, index) {
|
|
14575
14607
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
14576
14608
|
return i || i === 0;
|
|
14577
14609
|
});
|
|
14578
14610
|
if (noEmptyArray$1(item.children)) {
|
|
14579
|
-
|
|
14611
|
+
_handleColumns(item.children, indexArrInside);
|
|
14580
14612
|
} else {
|
|
14581
14613
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
14582
14614
|
item.onHeaderCell = function (column) {
|
|
@@ -14592,7 +14624,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14592
14624
|
handleAntdColumnsSpecialParams(item);
|
|
14593
14625
|
return _objectSpread2({}, item);
|
|
14594
14626
|
});
|
|
14595
|
-
|
|
14627
|
+
_handleColumns(showCol, []);
|
|
14596
14628
|
if (dynamicColumns.length) {
|
|
14597
14629
|
showCol = this.handledynamicColumns(showCol);
|
|
14598
14630
|
}
|
|
@@ -14601,9 +14633,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14601
14633
|
y: 400
|
|
14602
14634
|
}, scroll), {}, {
|
|
14603
14635
|
x: restProps.overScrollX || this.getTableScrollXWidth(showCol)
|
|
14604
|
-
})
|
|
14636
|
+
})
|
|
14637
|
+
}, showSummary ? {
|
|
14605
14638
|
summary: showSummary
|
|
14606
|
-
});
|
|
14639
|
+
} : {});
|
|
14607
14640
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
14608
14641
|
style: {
|
|
14609
14642
|
position: 'relative'
|
|
@@ -14631,7 +14664,32 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14631
14664
|
cell: this.ResizeableTitle
|
|
14632
14665
|
}
|
|
14633
14666
|
}
|
|
14634
|
-
}, otherTableInfo)))
|
|
14667
|
+
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("div", {
|
|
14668
|
+
className: 'table-bssula-summary',
|
|
14669
|
+
style: {
|
|
14670
|
+
right: '20%',
|
|
14671
|
+
bottom: 0,
|
|
14672
|
+
whiteSpace: 'nowrap',
|
|
14673
|
+
overflowX: 'auto'
|
|
14674
|
+
}
|
|
14675
|
+
}, summary.map(function (item) {
|
|
14676
|
+
return /*#__PURE__*/React$1.createElement(Text$1, {
|
|
14677
|
+
type: 'danger'
|
|
14678
|
+
}, item.label, ": ", /*#__PURE__*/React$1.createElement("span", {
|
|
14679
|
+
className: 'table-bssula-summary-count'
|
|
14680
|
+
}, item.count || 0));
|
|
14681
|
+
})), /*#__PURE__*/React$1.createElement("div", {
|
|
14682
|
+
style: {
|
|
14683
|
+
width: '16px',
|
|
14684
|
+
height: '26px',
|
|
14685
|
+
opacity: 0.32,
|
|
14686
|
+
transform: 'scaleX(-1)',
|
|
14687
|
+
backgroundImage: 'linear-gradient(270deg, #ffffff00 0%, #A4A4A4 100%)',
|
|
14688
|
+
right: '20%',
|
|
14689
|
+
position: 'absolute',
|
|
14690
|
+
bottom: 0
|
|
14691
|
+
}
|
|
14692
|
+
}))));
|
|
14635
14693
|
}
|
|
14636
14694
|
}]);
|
|
14637
14695
|
}(React$1.Component);
|
|
@@ -14689,20 +14747,20 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
|
|
|
14689
14747
|
};
|
|
14690
14748
|
var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
14691
14749
|
var routerMap = {};
|
|
14692
|
-
var
|
|
14750
|
+
var _flattenMenuData2 = function flattenMenuData(data, parent) {
|
|
14693
14751
|
var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
|
|
14694
14752
|
data.forEach(function (menuItem) {
|
|
14695
14753
|
var newMenuItem = _objectSpread2(_objectSpread2({}, menuItem), {}, {
|
|
14696
14754
|
nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
|
|
14697
14755
|
});
|
|
14698
14756
|
if (newMenuItem.children) {
|
|
14699
|
-
|
|
14757
|
+
_flattenMenuData2(newMenuItem.children, newMenuItem);
|
|
14700
14758
|
}
|
|
14701
14759
|
// Reduce memory usage
|
|
14702
14760
|
routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
|
|
14703
14761
|
});
|
|
14704
14762
|
};
|
|
14705
|
-
|
|
14763
|
+
_flattenMenuData2(menuData, {});
|
|
14706
14764
|
return routerMap;
|
|
14707
14765
|
};
|
|
14708
14766
|
// mode类型判断
|
|
@@ -15028,7 +15086,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15028
15086
|
display: 'flex',
|
|
15029
15087
|
gap: '8px'
|
|
15030
15088
|
}
|
|
15031
|
-
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (
|
|
15089
|
+
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (/*#__PURE__*/React$1.createElement("a", null, isFullScreen ? (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
15032
15090
|
title: "\u53D6\u6D88\u5168\u5C4F"
|
|
15033
15091
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
15034
15092
|
onClick: function onClick() {
|
|
@@ -15036,7 +15094,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15036
15094
|
},
|
|
15037
15095
|
width: 24,
|
|
15038
15096
|
src: scanning
|
|
15039
|
-
}))) : (
|
|
15097
|
+
}))) : (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
15040
15098
|
title: "\u5168\u5C4F"
|
|
15041
15099
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
15042
15100
|
onClick: function onClick() {
|
|
@@ -15044,7 +15102,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15044
15102
|
},
|
|
15045
15103
|
width: 24,
|
|
15046
15104
|
src: quanping
|
|
15047
|
-
}))))) : null)), alertProps && (
|
|
15105
|
+
}))))) : null)), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15048
15106
|
}, function (prevProps, nextProps) {
|
|
15049
15107
|
if (JSON.stringify(prevProps.actionList) != JSON.stringify(nextProps.actionList) || prevProps.title !== nextProps.title) {
|
|
15050
15108
|
return false;
|
|
@@ -15129,7 +15187,7 @@ var HeaderWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15129
15187
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
15130
15188
|
className: "".concat(index === breadcrumbArr.length - 1 ? 'bread_name_last' : '', " bread_name")
|
|
15131
15189
|
}, item));
|
|
15132
|
-
}))), 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))));
|
|
15133
15191
|
}, function (prevProps, nextProps) {
|
|
15134
15192
|
if (prevProps.title !== nextProps.title) {
|
|
15135
15193
|
return false;
|
|
@@ -15769,7 +15827,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15769
15827
|
});
|
|
15770
15828
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
15771
15829
|
className: 'sort_table_wrapper'
|
|
15772
|
-
}, visible && (
|
|
15830
|
+
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
15773
15831
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
15774
15832
|
wrapClassName: 'sort_table_wrapper',
|
|
15775
15833
|
width: 810,
|
|
@@ -15820,7 +15878,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15820
15878
|
width: 525,
|
|
15821
15879
|
height: 24
|
|
15822
15880
|
}
|
|
15823
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
15881
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
15824
15882
|
checked: !dataSource.some(function (item) {
|
|
15825
15883
|
if (item.hidden) return true;
|
|
15826
15884
|
return false;
|
|
@@ -15874,13 +15932,13 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15874
15932
|
_this2.onChange(e, item.title);
|
|
15875
15933
|
}
|
|
15876
15934
|
}, item.title);
|
|
15877
|
-
}), !!seatchDataSource.length && (
|
|
15935
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
15878
15936
|
style: {
|
|
15879
15937
|
width: '144px'
|
|
15880
15938
|
}
|
|
15881
|
-
})), !seatchDataSource.length && (
|
|
15939
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
15882
15940
|
className: 'sort_table_column_all_empty'
|
|
15883
|
-
}, "\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", {
|
|
15884
15942
|
className: 'sort_table_column_special'
|
|
15885
15943
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
15886
15944
|
className: 'sort_table_column_all'
|
|
@@ -16354,7 +16412,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16354
16412
|
});
|
|
16355
16413
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
16356
16414
|
className: 'sort_table_wrapper'
|
|
16357
|
-
}, visible && (
|
|
16415
|
+
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
16358
16416
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
16359
16417
|
wrapClassName: 'sort_table_wrapper',
|
|
16360
16418
|
width: 820,
|
|
@@ -16399,7 +16457,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16399
16457
|
style: {
|
|
16400
16458
|
width: 525
|
|
16401
16459
|
}
|
|
16402
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
16460
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
16403
16461
|
checked: !dataSource.some(function (item) {
|
|
16404
16462
|
if (item.hidden) return true;
|
|
16405
16463
|
return false;
|
|
@@ -16435,11 +16493,11 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16435
16493
|
_this2.onChange(e, item.name);
|
|
16436
16494
|
}
|
|
16437
16495
|
}, item.label);
|
|
16438
|
-
}), !!newSearchSource.length && (
|
|
16496
|
+
}), !!newSearchSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
16439
16497
|
style: {
|
|
16440
16498
|
width: '144px'
|
|
16441
16499
|
}
|
|
16442
|
-
})), !newSearchSource.length && (
|
|
16500
|
+
})), !newSearchSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
16443
16501
|
className: 'sort_table_column_all_empty'
|
|
16444
16502
|
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))))), /*#__PURE__*/React$1.createElement("div", {
|
|
16445
16503
|
className: 'sort_table_content_wrapper'
|
|
@@ -16865,7 +16923,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
16865
16923
|
actionsRender = actionsRender.concat([{
|
|
16866
16924
|
type: 'text',
|
|
16867
16925
|
props: {
|
|
16868
|
-
children: (
|
|
16926
|
+
children: (/*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
16869
16927
|
request: {
|
|
16870
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),
|
|
16871
16929
|
params: value === null || value === void 0 ? void 0 : (_value$exportConfig4 = value.exportConfig) === null || _value$exportConfig4 === void 0 ? void 0 : _value$exportConfig4.params
|
|
@@ -17111,7 +17169,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17111
17169
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
17112
17170
|
bsTableCode: bsTableCode,
|
|
17113
17171
|
onlyModal: true
|
|
17114
|
-
}), (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, {
|
|
17115
17173
|
ref: exportTableRef,
|
|
17116
17174
|
setShowColumns: setShowExportColumns,
|
|
17117
17175
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -17204,11 +17262,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
17204
17262
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
17205
17263
|
var resultList = [];
|
|
17206
17264
|
var newRouter = cloneDeep(router);
|
|
17207
|
-
var
|
|
17265
|
+
var _deep = function deep(router) {
|
|
17208
17266
|
if (router && Array.isArray(router)) {
|
|
17209
17267
|
router.forEach(function (item) {
|
|
17210
17268
|
if (item.children && Array.isArray(item.children)) {
|
|
17211
|
-
|
|
17269
|
+
_deep(item.children);
|
|
17212
17270
|
} else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
|
|
17213
17271
|
return d === item.code;
|
|
17214
17272
|
})) {
|
|
@@ -17222,10 +17280,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
17222
17280
|
resultList.push(_objectSpread2({}, router));
|
|
17223
17281
|
}
|
|
17224
17282
|
};
|
|
17225
|
-
|
|
17283
|
+
_deep(newRouter);
|
|
17226
17284
|
callBack([].concat(resultList));
|
|
17227
17285
|
};
|
|
17228
|
-
var
|
|
17286
|
+
var _setMenuTreeData = function setMenuTreeData(routesData) {
|
|
17229
17287
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
17230
17288
|
var _loop = function _loop(i) {
|
|
17231
17289
|
if (routesData[i].hideInMenu) {
|
|
@@ -17239,7 +17297,7 @@ var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
17239
17297
|
return 0; // continue
|
|
17240
17298
|
}
|
|
17241
17299
|
if (routesData[i].children) {
|
|
17242
|
-
|
|
17300
|
+
_setMenuTreeData(routesData[i].children);
|
|
17243
17301
|
}
|
|
17244
17302
|
},
|
|
17245
17303
|
_ret;
|
|
@@ -17260,16 +17318,16 @@ var setLoginOutPath = function setLoginOutPath() {
|
|
|
17260
17318
|
};
|
|
17261
17319
|
var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
|
|
17262
17320
|
var routerMap = {};
|
|
17263
|
-
var
|
|
17321
|
+
var _flattenMenuData = function flattenMenuData(data) {
|
|
17264
17322
|
data.forEach(function (menuItem) {
|
|
17265
17323
|
if (menuItem.children) {
|
|
17266
|
-
|
|
17324
|
+
_flattenMenuData(menuItem.children);
|
|
17267
17325
|
}
|
|
17268
17326
|
// Reduce memory usage
|
|
17269
17327
|
routerMap[menuItem.path] = menuItem;
|
|
17270
17328
|
});
|
|
17271
17329
|
};
|
|
17272
|
-
|
|
17330
|
+
_flattenMenuData(menuData);
|
|
17273
17331
|
return routerMap;
|
|
17274
17332
|
};
|
|
17275
17333
|
var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
|
|
@@ -17415,7 +17473,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17415
17473
|
sethomepageData(homepageDataList);
|
|
17416
17474
|
setroutesData(routesDataList);
|
|
17417
17475
|
}, []);
|
|
17418
|
-
var
|
|
17476
|
+
var _renderChildItem = function renderChildItem(child) {
|
|
17419
17477
|
if (!child.hideInMenu && child.children) {
|
|
17420
17478
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
17421
17479
|
style: {
|
|
@@ -17425,7 +17483,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17425
17483
|
}, formatMessage({
|
|
17426
17484
|
id: "".concat(child.locale)
|
|
17427
17485
|
})), child.children.map(function (menuItem) {
|
|
17428
|
-
return
|
|
17486
|
+
return _renderChildItem(menuItem);
|
|
17429
17487
|
}));
|
|
17430
17488
|
} else if (!child.hideInMenu && child.path) {
|
|
17431
17489
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -17460,7 +17518,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17460
17518
|
className: 'drawerWarp'
|
|
17461
17519
|
}, homepageData && homepageData.filter(function (d) {
|
|
17462
17520
|
return !d.hideInMenu;
|
|
17463
|
-
}).length > 0 && (
|
|
17521
|
+
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
17464
17522
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
17465
17523
|
dataSource: homepageData,
|
|
17466
17524
|
renderItem: function renderItem(child) {
|
|
@@ -17495,7 +17553,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17495
17553
|
bordered: true,
|
|
17496
17554
|
dataSource: item.children,
|
|
17497
17555
|
renderItem: function renderItem(child) {
|
|
17498
|
-
return
|
|
17556
|
+
return _renderChildItem(child);
|
|
17499
17557
|
}
|
|
17500
17558
|
});
|
|
17501
17559
|
})));
|
|
@@ -17555,7 +17613,7 @@ var AllFunc$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
17555
17613
|
src: allfunc
|
|
17556
17614
|
})), /*#__PURE__*/React$1.createElement("span", {
|
|
17557
17615
|
className: 'btnSpan2'
|
|
17558
|
-
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (
|
|
17616
|
+
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
17559
17617
|
style: {
|
|
17560
17618
|
left: isDrawer ? 140 : 0,
|
|
17561
17619
|
top: 50
|
|
@@ -17601,7 +17659,7 @@ function outLogin(_x) {
|
|
|
17601
17659
|
return _outLogin.apply(this, arguments);
|
|
17602
17660
|
}
|
|
17603
17661
|
function _outLogin() {
|
|
17604
|
-
_outLogin = _asyncToGenerator(
|
|
17662
|
+
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
17605
17663
|
var res;
|
|
17606
17664
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17607
17665
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -17743,7 +17801,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
17743
17801
|
});
|
|
17744
17802
|
};
|
|
17745
17803
|
var loginOut = /*#__PURE__*/function () {
|
|
17746
|
-
var _ref2 = _asyncToGenerator(
|
|
17804
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
17747
17805
|
var sessionId;
|
|
17748
17806
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17749
17807
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -17847,7 +17905,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
17847
17905
|
marginRight: '0px'
|
|
17848
17906
|
},
|
|
17849
17907
|
src: './xialajiantou-new.svg'
|
|
17850
|
-
}))))), loginModalParams.visible && (
|
|
17908
|
+
}))))), loginModalParams.visible && (/*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
17851
17909
|
};
|
|
17852
17910
|
|
|
17853
17911
|
// -- 查询店铺 --
|
|
@@ -17855,7 +17913,7 @@ function getStoreByName(_x) {
|
|
|
17855
17913
|
return _getStoreByName.apply(this, arguments);
|
|
17856
17914
|
}
|
|
17857
17915
|
function _getStoreByName() {
|
|
17858
|
-
_getStoreByName = _asyncToGenerator(
|
|
17916
|
+
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
17859
17917
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17860
17918
|
while (1) switch (_context.prev = _context.next) {
|
|
17861
17919
|
case 0:
|
|
@@ -17923,7 +17981,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
17923
17981
|
return _fetchUserList.apply(this, arguments);
|
|
17924
17982
|
}
|
|
17925
17983
|
function _fetchUserList() {
|
|
17926
|
-
_fetchUserList = _asyncToGenerator(
|
|
17984
|
+
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
17927
17985
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
17928
17986
|
while (1) switch (_context3.prev = _context3.next) {
|
|
17929
17987
|
case 0:
|
|
@@ -17971,7 +18029,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
17971
18029
|
return debounce$1(loadOptions, debounceTimeout);
|
|
17972
18030
|
}, [debounceTimeout, key]);
|
|
17973
18031
|
var changeInput = /*#__PURE__*/function () {
|
|
17974
|
-
var _ref = _asyncToGenerator(
|
|
18032
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
17975
18033
|
var res;
|
|
17976
18034
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17977
18035
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -17993,7 +18051,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
17993
18051
|
};
|
|
17994
18052
|
}();
|
|
17995
18053
|
useEffect(function () {
|
|
17996
|
-
_asyncToGenerator(
|
|
18054
|
+
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
17997
18055
|
var res;
|
|
17998
18056
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
17999
18057
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -18158,7 +18216,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18158
18216
|
var resultList = [];
|
|
18159
18217
|
var newRouter = cloneDeep$1(router);
|
|
18160
18218
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
18161
|
-
var
|
|
18219
|
+
var _deep = function deep(router) {
|
|
18162
18220
|
if (router && Array.isArray(router)) {
|
|
18163
18221
|
router.forEach(function (item) {
|
|
18164
18222
|
if (item.routes && Array.isArray(item.routes)) {
|
|
@@ -18168,7 +18226,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18168
18226
|
d.nameEdit = true;
|
|
18169
18227
|
}
|
|
18170
18228
|
});
|
|
18171
|
-
|
|
18229
|
+
_deep(item.routes);
|
|
18172
18230
|
} else if (!item.hideInMenu && (name ? formatMessage({
|
|
18173
18231
|
id: "menu.".concat(item.name)
|
|
18174
18232
|
}).indexOf(name) !== -1 : true)) {
|
|
@@ -18187,7 +18245,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18187
18245
|
}));
|
|
18188
18246
|
}
|
|
18189
18247
|
};
|
|
18190
|
-
|
|
18248
|
+
_deep(newRouter);
|
|
18191
18249
|
setroutesData([].concat(resultList));
|
|
18192
18250
|
};
|
|
18193
18251
|
var renderLineStyl = function renderLineStyl(name) {
|
|
@@ -18269,7 +18327,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18269
18327
|
},
|
|
18270
18328
|
title: item.fullPathName
|
|
18271
18329
|
}, renderLineStyl(item.fullPathName));
|
|
18272
|
-
}))))), showSelectStore && (
|
|
18330
|
+
}))))), showSelectStore && (/*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
18273
18331
|
employeeCode: employeeCode
|
|
18274
18332
|
})), /*#__PURE__*/React$1.createElement(GlobalHeaderRight, null));
|
|
18275
18333
|
};
|
|
@@ -18284,7 +18342,7 @@ var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
18284
18342
|
var TreeNode = Tree.TreeNode;
|
|
18285
18343
|
var Search$2 = Input.Search;
|
|
18286
18344
|
var dataList = [];
|
|
18287
|
-
var
|
|
18345
|
+
var _generateList = function generateList(data) {
|
|
18288
18346
|
for (var i = 0; i < data.length; i++) {
|
|
18289
18347
|
var node = data[i];
|
|
18290
18348
|
var path = node.path,
|
|
@@ -18294,11 +18352,11 @@ var generateList = function generateList(data) {
|
|
|
18294
18352
|
name: name
|
|
18295
18353
|
});
|
|
18296
18354
|
if (node.children) {
|
|
18297
|
-
|
|
18355
|
+
_generateList(node.children);
|
|
18298
18356
|
}
|
|
18299
18357
|
}
|
|
18300
18358
|
};
|
|
18301
|
-
var
|
|
18359
|
+
var _getParentKey = function getParentKey(path, tree) {
|
|
18302
18360
|
var parentKey;
|
|
18303
18361
|
for (var i = 0; i < tree.length; i++) {
|
|
18304
18362
|
var node = tree[i];
|
|
@@ -18307,8 +18365,8 @@ var getParentKey = function getParentKey(path, tree) {
|
|
|
18307
18365
|
return item.path === path;
|
|
18308
18366
|
})) {
|
|
18309
18367
|
parentKey = node.path;
|
|
18310
|
-
} else if (
|
|
18311
|
-
parentKey =
|
|
18368
|
+
} else if (_getParentKey(path, node.children)) {
|
|
18369
|
+
parentKey = _getParentKey(path, node.children);
|
|
18312
18370
|
}
|
|
18313
18371
|
}
|
|
18314
18372
|
}
|
|
@@ -18339,7 +18397,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18339
18397
|
var treeData = _this.state.treeData;
|
|
18340
18398
|
var expandedKeys = dataList.map(function (item) {
|
|
18341
18399
|
if (item.name.indexOf(value) > -1) {
|
|
18342
|
-
return
|
|
18400
|
+
return _getParentKey(item.path, treeData);
|
|
18343
18401
|
}
|
|
18344
18402
|
return null;
|
|
18345
18403
|
}).filter(function (item, i, self) {
|
|
@@ -18353,22 +18411,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18353
18411
|
};
|
|
18354
18412
|
_this.getPathList = function (originData) {
|
|
18355
18413
|
var pathList = [];
|
|
18356
|
-
var
|
|
18414
|
+
var _getList = function getList(data) {
|
|
18357
18415
|
if (Array.isArray(data)) {
|
|
18358
18416
|
data.forEach(function (item) {
|
|
18359
18417
|
pathList.push(item.path);
|
|
18360
18418
|
if (item.children) {
|
|
18361
|
-
|
|
18419
|
+
_getList(item.children);
|
|
18362
18420
|
}
|
|
18363
18421
|
});
|
|
18364
18422
|
} else {
|
|
18365
18423
|
pathList.push(data.path);
|
|
18366
18424
|
if (data.children) {
|
|
18367
|
-
|
|
18425
|
+
_getList(data.children);
|
|
18368
18426
|
}
|
|
18369
18427
|
}
|
|
18370
18428
|
};
|
|
18371
|
-
|
|
18429
|
+
_getList(originData);
|
|
18372
18430
|
return pathList;
|
|
18373
18431
|
};
|
|
18374
18432
|
_this.handleAdd2Menu = function (path) {
|
|
@@ -18377,18 +18435,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18377
18435
|
customerMenuData = _this$props.customerMenuData,
|
|
18378
18436
|
setCustomerMenuData = _this$props.setCustomerMenuData;
|
|
18379
18437
|
var filterItem;
|
|
18380
|
-
var
|
|
18438
|
+
var _filterMenuItem = function filterMenuItem(menuData) {
|
|
18381
18439
|
menuData.forEach(function (item) {
|
|
18382
18440
|
if (item.path === path) {
|
|
18383
18441
|
filterItem = _objectSpread2({}, item);
|
|
18384
18442
|
return;
|
|
18385
18443
|
}
|
|
18386
18444
|
if (item.children) {
|
|
18387
|
-
|
|
18445
|
+
_filterMenuItem(item.children);
|
|
18388
18446
|
}
|
|
18389
18447
|
});
|
|
18390
18448
|
};
|
|
18391
|
-
|
|
18449
|
+
_filterMenuItem(treeData);
|
|
18392
18450
|
var addPathList = _this.getPathList(filterItem);
|
|
18393
18451
|
var oldPathList = _this.getPathList(customerMenuData);
|
|
18394
18452
|
var isRepet = false;
|
|
@@ -18418,8 +18476,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18418
18476
|
return item.path === '/';
|
|
18419
18477
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
18420
18478
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
18421
|
-
|
|
18422
|
-
|
|
18479
|
+
_setMenuTreeData(routesData);
|
|
18480
|
+
_generateList(routesData);
|
|
18423
18481
|
this.setState({
|
|
18424
18482
|
treeData: routesData
|
|
18425
18483
|
});
|
|
@@ -18433,16 +18491,16 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18433
18491
|
expandedKeys = _this$state.expandedKeys,
|
|
18434
18492
|
autoExpandParent = _this$state.autoExpandParent,
|
|
18435
18493
|
treeData = _this$state.treeData;
|
|
18436
|
-
var
|
|
18494
|
+
var _loop = function loop(data) {
|
|
18437
18495
|
return data.map(function (item) {
|
|
18438
18496
|
var index = item.name.indexOf(searchValue);
|
|
18439
18497
|
var beforeStr = item.name.substr(0, index);
|
|
18440
18498
|
var afterStr = item.name.substr(index + searchValue.length);
|
|
18441
|
-
var name = index > -1 ? (
|
|
18499
|
+
var name = index > -1 ? (/*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
18442
18500
|
style: {
|
|
18443
18501
|
color: '#f50'
|
|
18444
18502
|
}
|
|
18445
|
-
}, searchValue), afterStr)) : (
|
|
18503
|
+
}, searchValue), afterStr)) : (/*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
18446
18504
|
if (item.children && item.children.length) {
|
|
18447
18505
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
18448
18506
|
path: item.path,
|
|
@@ -18464,7 +18522,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18464
18522
|
width: 18,
|
|
18465
18523
|
src: arrowRight
|
|
18466
18524
|
}))))
|
|
18467
|
-
},
|
|
18525
|
+
}, _loop(item.children));
|
|
18468
18526
|
}
|
|
18469
18527
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
18470
18528
|
path: item.path,
|
|
@@ -18514,7 +18572,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18514
18572
|
onExpand: this.onExpand,
|
|
18515
18573
|
expandedKeys: expandedKeys,
|
|
18516
18574
|
autoExpandParent: autoExpandParent
|
|
18517
|
-
},
|
|
18575
|
+
}, _loop(treeData))));
|
|
18518
18576
|
}
|
|
18519
18577
|
}]);
|
|
18520
18578
|
}(React$1.Component);
|
|
@@ -18547,24 +18605,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18547
18605
|
var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
|
|
18548
18606
|
var dragObj;
|
|
18549
18607
|
var finalDropItem;
|
|
18550
|
-
var
|
|
18608
|
+
var _loop = function loop(data, path, callback) {
|
|
18551
18609
|
for (var i = 0; i < data.length; i++) {
|
|
18552
18610
|
if (data[i].path === path) {
|
|
18553
18611
|
return callback(data[i], i, data);
|
|
18554
18612
|
}
|
|
18555
18613
|
if (data[i].children) {
|
|
18556
|
-
|
|
18614
|
+
_loop(data[i].children, path, callback);
|
|
18557
18615
|
}
|
|
18558
18616
|
}
|
|
18559
18617
|
};
|
|
18560
18618
|
var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
|
|
18561
|
-
|
|
18619
|
+
_loop(data, dragKey, function (item, index, arr) {
|
|
18562
18620
|
arr.splice(index, 1);
|
|
18563
18621
|
dragObj = item;
|
|
18564
18622
|
});
|
|
18565
18623
|
if (!info.dropToGap) {
|
|
18566
18624
|
// Drop on the content
|
|
18567
|
-
|
|
18625
|
+
_loop(data, dropKey, function (item) {
|
|
18568
18626
|
item.children = item.children || [];
|
|
18569
18627
|
item.children.unshift(dragObj);
|
|
18570
18628
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -18575,7 +18633,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18575
18633
|
// Is expanded
|
|
18576
18634
|
dropPosition === 1 // On the bottom gap
|
|
18577
18635
|
) {
|
|
18578
|
-
|
|
18636
|
+
_loop(data, dropKey, function (item) {
|
|
18579
18637
|
item.children = item.children || [];
|
|
18580
18638
|
item.children.unshift(dragObj);
|
|
18581
18639
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -18583,7 +18641,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18583
18641
|
} else {
|
|
18584
18642
|
var ar;
|
|
18585
18643
|
var i;
|
|
18586
|
-
|
|
18644
|
+
_loop(data, dropKey, function (item, index, arr) {
|
|
18587
18645
|
ar = arr;
|
|
18588
18646
|
i = index;
|
|
18589
18647
|
});
|
|
@@ -18622,17 +18680,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18622
18680
|
title: '编辑名称',
|
|
18623
18681
|
callBack: function callBack(newName) {
|
|
18624
18682
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
18625
|
-
var
|
|
18683
|
+
var _editTreeDataName = function editTreeDataName(oldTreeData) {
|
|
18626
18684
|
oldTreeData.forEach(function (treeItem) {
|
|
18627
18685
|
if (treeItem.path === item.path) {
|
|
18628
18686
|
treeItem.name = newName;
|
|
18629
18687
|
}
|
|
18630
18688
|
if (treeItem.children) {
|
|
18631
|
-
|
|
18689
|
+
_editTreeDataName(treeItem.children);
|
|
18632
18690
|
}
|
|
18633
18691
|
});
|
|
18634
18692
|
};
|
|
18635
|
-
|
|
18693
|
+
_editTreeDataName(oldTreeData);
|
|
18636
18694
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
18637
18695
|
_this.setState({
|
|
18638
18696
|
modalInfo: {
|
|
@@ -18677,7 +18735,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18677
18735
|
title: '新增子目录',
|
|
18678
18736
|
callBack: function callBack(newName) {
|
|
18679
18737
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
18680
|
-
var
|
|
18738
|
+
var _addChildFolder = function addChildFolder(oldTreeData) {
|
|
18681
18739
|
oldTreeData.forEach(function (treeItem) {
|
|
18682
18740
|
if (treeItem.path === item.path) {
|
|
18683
18741
|
treeItem.children ? treeItem.children.push({
|
|
@@ -18689,11 +18747,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18689
18747
|
}];
|
|
18690
18748
|
}
|
|
18691
18749
|
if (treeItem.children) {
|
|
18692
|
-
|
|
18750
|
+
_addChildFolder(treeItem.children);
|
|
18693
18751
|
}
|
|
18694
18752
|
});
|
|
18695
18753
|
};
|
|
18696
|
-
|
|
18754
|
+
_addChildFolder(oldTreeData);
|
|
18697
18755
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
18698
18756
|
_this.setState({
|
|
18699
18757
|
modalInfo: {
|
|
@@ -18752,7 +18810,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18752
18810
|
var _this$state = this.state,
|
|
18753
18811
|
modalInfo = _this$state.modalInfo,
|
|
18754
18812
|
checkedKeys = _this$state.checkedKeys;
|
|
18755
|
-
var
|
|
18813
|
+
var _loop2 = function loop(data) {
|
|
18756
18814
|
return data.map(function (item) {
|
|
18757
18815
|
if (item.children && item.children.length) {
|
|
18758
18816
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
@@ -18769,7 +18827,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18769
18827
|
e.stopPropagation();
|
|
18770
18828
|
}
|
|
18771
18829
|
}, /*#__PURE__*/React$1.createElement(Space, null, /*#__PURE__*/React$1.createElement(EllipsisOutlined, null))))))
|
|
18772
|
-
},
|
|
18830
|
+
}, _loop2(item.children));
|
|
18773
18831
|
}
|
|
18774
18832
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
18775
18833
|
path: item.path,
|
|
@@ -18848,7 +18906,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18848
18906
|
children: 'children'
|
|
18849
18907
|
},
|
|
18850
18908
|
onDrop: this.onDrop
|
|
18851
|
-
},
|
|
18909
|
+
}, _loop2(this.props.customerMenuData))), /*#__PURE__*/React$1.createElement(Modal, {
|
|
18852
18910
|
width: 600,
|
|
18853
18911
|
bodyStyle: {
|
|
18854
18912
|
paddingTop: '32px',
|
|
@@ -18961,7 +19019,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18961
19019
|
pathname: item.path
|
|
18962
19020
|
});
|
|
18963
19021
|
};
|
|
18964
|
-
var
|
|
19022
|
+
var _getMenuDom = function getMenuDom(menuData) {
|
|
18965
19023
|
return menuData.map(function (item) {
|
|
18966
19024
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
18967
19025
|
style: {
|
|
@@ -18976,7 +19034,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18976
19034
|
fontWeight: item.children || !item.component ? 'bolder' : '400',
|
|
18977
19035
|
paddingLeft: '4px'
|
|
18978
19036
|
}
|
|
18979
|
-
}, item.name), !!item.children && !!item.children.length &&
|
|
19037
|
+
}, item.name), !!item.children && !!item.children.length && _getMenuDom(item.children));
|
|
18980
19038
|
});
|
|
18981
19039
|
};
|
|
18982
19040
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -19002,7 +19060,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19002
19060
|
style: {
|
|
19003
19061
|
paddingLeft: '5px'
|
|
19004
19062
|
}
|
|
19005
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (
|
|
19063
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
19006
19064
|
style: {
|
|
19007
19065
|
left: isDrawer ? 140 : 0
|
|
19008
19066
|
},
|
|
@@ -19023,7 +19081,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19023
19081
|
visible: isDrawer
|
|
19024
19082
|
}, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("p", {
|
|
19025
19083
|
className: 'menu_title_line'
|
|
19026
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"),
|
|
19084
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"), _getMenuDom(menuData)))), /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
19027
19085
|
title: /*#__PURE__*/React$1.createElement("span", {
|
|
19028
19086
|
style: {
|
|
19029
19087
|
fontWeight: '600',
|
|
@@ -19097,7 +19155,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19097
19155
|
return item.path === '/';
|
|
19098
19156
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
19099
19157
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
19100
|
-
|
|
19158
|
+
_setMenuTreeData(routesData);
|
|
19101
19159
|
routesData.forEach(function (item) {
|
|
19102
19160
|
if (item.children) {
|
|
19103
19161
|
routesDataList.push(item);
|
|
@@ -19127,7 +19185,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19127
19185
|
setHeight(clientHeight - 190);
|
|
19128
19186
|
setDrawHeight(clientHeight - 70);
|
|
19129
19187
|
};
|
|
19130
|
-
var
|
|
19188
|
+
var _renderChildItem = function renderChildItem(child) {
|
|
19131
19189
|
if (!child.hideInMenu && child.children) {
|
|
19132
19190
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
19133
19191
|
style: {
|
|
@@ -19137,7 +19195,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19137
19195
|
}, formatMessage({
|
|
19138
19196
|
id: "".concat(child.locale)
|
|
19139
19197
|
})), child.children.map(function (menuItem) {
|
|
19140
|
-
return
|
|
19198
|
+
return _renderChildItem(menuItem);
|
|
19141
19199
|
}));
|
|
19142
19200
|
} else if (!child.hideInMenu && child.path) {
|
|
19143
19201
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -19279,7 +19337,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19279
19337
|
onMenuClick(e, item);
|
|
19280
19338
|
}
|
|
19281
19339
|
}, item.name);
|
|
19282
|
-
}))), !!SearhData.length ? (
|
|
19340
|
+
}))), !!SearhData.length ? (/*#__PURE__*/React$1.createElement("div", {
|
|
19283
19341
|
className: 'search_menu_content'
|
|
19284
19342
|
}, SearhData.map(function (item) {
|
|
19285
19343
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -19288,7 +19346,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19288
19346
|
},
|
|
19289
19347
|
key: item.path
|
|
19290
19348
|
}, item.name);
|
|
19291
|
-
}))) : (
|
|
19349
|
+
}))) : (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
19292
19350
|
style: {
|
|
19293
19351
|
height: "".concat(rightMenuHeight, "px"),
|
|
19294
19352
|
overflowY: 'scroll',
|
|
@@ -19300,7 +19358,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19300
19358
|
className: 'drawerWarp_right'
|
|
19301
19359
|
}, homepageData && homepageData.filter(function (d) {
|
|
19302
19360
|
return !d.hideInMenu;
|
|
19303
|
-
}).length > 0 && (
|
|
19361
|
+
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
19304
19362
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
19305
19363
|
dataSource: homepageData,
|
|
19306
19364
|
renderItem: function renderItem(child) {
|
|
@@ -19341,7 +19399,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19341
19399
|
bordered: true,
|
|
19342
19400
|
dataSource: item.children,
|
|
19343
19401
|
renderItem: function renderItem(child) {
|
|
19344
|
-
return
|
|
19402
|
+
return _renderChildItem(child);
|
|
19345
19403
|
}
|
|
19346
19404
|
});
|
|
19347
19405
|
})), /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -19499,10 +19557,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
19499
19557
|
var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
|
|
19500
19558
|
var menuKeys = [];
|
|
19501
19559
|
var docsId = [];
|
|
19502
|
-
var
|
|
19560
|
+
var _getLimitedMenuKeys = function getLimitedMenuKeys(data) {
|
|
19503
19561
|
data.forEach(function (item) {
|
|
19504
19562
|
if (item.children && item.children.length > 0) {
|
|
19505
|
-
|
|
19563
|
+
_getLimitedMenuKeys(item.children);
|
|
19506
19564
|
} else {
|
|
19507
19565
|
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
19508
19566
|
menuKeys.push(originPath);
|
|
@@ -19513,7 +19571,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
19513
19571
|
});
|
|
19514
19572
|
};
|
|
19515
19573
|
try {
|
|
19516
|
-
|
|
19574
|
+
_getLimitedMenuKeys(limitedMenuData);
|
|
19517
19575
|
} catch (e) {}
|
|
19518
19576
|
return {
|
|
19519
19577
|
menuKeys: menuKeys,
|
|
@@ -19747,10 +19805,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
19747
19805
|
return (node.path || '').includes('all-general-documents');
|
|
19748
19806
|
};
|
|
19749
19807
|
// 递归获取树列表
|
|
19750
|
-
var
|
|
19808
|
+
var _getTreeList = function getTreeList(data) {
|
|
19751
19809
|
data.forEach(function (node) {
|
|
19752
19810
|
if (node.routes && node.routes.length > 0) {
|
|
19753
|
-
|
|
19811
|
+
_getTreeList(node.routes);
|
|
19754
19812
|
return;
|
|
19755
19813
|
}
|
|
19756
19814
|
// todo:暂时处理非wujie环境不做404管控
|
|
@@ -19781,7 +19839,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
19781
19839
|
}
|
|
19782
19840
|
});
|
|
19783
19841
|
};
|
|
19784
|
-
|
|
19842
|
+
_getTreeList(treeData);
|
|
19785
19843
|
return treeList;
|
|
19786
19844
|
};
|
|
19787
19845
|
_this.getDictionarySource = function (dicCode) {
|
|
@@ -20410,7 +20468,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20410
20468
|
updateState = _ref8.updateState;
|
|
20411
20469
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
20412
20470
|
className: "tab_title_content"
|
|
20413
|
-
}, item.tab, item.key !== '/' && (
|
|
20471
|
+
}, item.tab, item.key !== '/' && (/*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
20414
20472
|
info: item,
|
|
20415
20473
|
operateFun: _this3.operateFun,
|
|
20416
20474
|
listenRouterState: listenRouterState
|
|
@@ -20546,7 +20604,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20546
20604
|
};
|
|
20547
20605
|
}
|
|
20548
20606
|
var OperationsSlot = {
|
|
20549
|
-
left: (
|
|
20607
|
+
left: (/*#__PURE__*/React$1.createElement("div", {
|
|
20550
20608
|
className: 'tab_left_operate'
|
|
20551
20609
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
20552
20610
|
onClick: function onClick() {
|
|
@@ -20562,7 +20620,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20562
20620
|
_this3.setTabNavTransLate(-100);
|
|
20563
20621
|
}
|
|
20564
20622
|
}, /*#__PURE__*/React$1.createElement(DoubleLeftOutlined, null)))),
|
|
20565
|
-
right: (
|
|
20623
|
+
right: (/*#__PURE__*/React$1.createElement("div", {
|
|
20566
20624
|
style: {
|
|
20567
20625
|
opacity: this.state.isSlider ? 1 : 0.5
|
|
20568
20626
|
},
|
|
@@ -20660,7 +20718,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20660
20718
|
onMouseLeave: function onMouseLeave() {
|
|
20661
20719
|
_this3.setShowMenu(false);
|
|
20662
20720
|
}
|
|
20663
|
-
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (
|
|
20721
|
+
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (/*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
20664
20722
|
style: {
|
|
20665
20723
|
position: 'absolute',
|
|
20666
20724
|
top: '14px',
|
|
@@ -20679,7 +20737,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20679
20737
|
postMenuData: function postMenuData(menus) {
|
|
20680
20738
|
return _toConsumableArray(filterByMenuDate(menus || [], _this3.state.keyWord));
|
|
20681
20739
|
},
|
|
20682
|
-
links: [!this.state.collapse ? (
|
|
20740
|
+
links: [!this.state.collapse ? (/*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
20683
20741
|
ref: this.allFunc,
|
|
20684
20742
|
itemPath: itemPath,
|
|
20685
20743
|
handleClose: this.handleClose,
|
|
@@ -20697,7 +20755,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20697
20755
|
},
|
|
20698
20756
|
menu: {
|
|
20699
20757
|
request: function () {
|
|
20700
|
-
var _request = _asyncToGenerator(
|
|
20758
|
+
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
20701
20759
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
20702
20760
|
while (1) switch (_context.prev = _context.next) {
|
|
20703
20761
|
case 0:
|
|
@@ -20832,7 +20890,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
20832
20890
|
getDictionaryTextByValue = _this$props4.getDictionaryTextByValue,
|
|
20833
20891
|
timeFormat = _this$props4.timeFormat,
|
|
20834
20892
|
transparentProps = _this$props4.transparentProps;
|
|
20835
|
-
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({
|
|
20836
20894
|
getDictionarySource: getDictionarySource,
|
|
20837
20895
|
getDictionaryTextByValue: getDictionaryTextByValue,
|
|
20838
20896
|
timeFormat: timeFormat
|
|
@@ -20856,12 +20914,12 @@ var index$5 = (function (props) {
|
|
|
20856
20914
|
});
|
|
20857
20915
|
|
|
20858
20916
|
// @ts-nocheck
|
|
20859
|
-
var
|
|
20917
|
+
var _getAllColumns = function getAllColumns(columns) {
|
|
20860
20918
|
var result = [];
|
|
20861
20919
|
columns.forEach(function (column) {
|
|
20862
20920
|
if (column.children) {
|
|
20863
20921
|
result.push(column);
|
|
20864
|
-
result.push.apply(result,
|
|
20922
|
+
result.push.apply(result, _getAllColumns(column.children));
|
|
20865
20923
|
} else {
|
|
20866
20924
|
result.push(column);
|
|
20867
20925
|
}
|
|
@@ -20870,7 +20928,7 @@ var getAllColumns = function getAllColumns(columns) {
|
|
|
20870
20928
|
};
|
|
20871
20929
|
var convertToRows = function convertToRows(originColumns) {
|
|
20872
20930
|
var maxLevel = 1;
|
|
20873
|
-
var
|
|
20931
|
+
var _traverse = function traverse(column, parent) {
|
|
20874
20932
|
if (parent) {
|
|
20875
20933
|
column.level = parent.level + 1;
|
|
20876
20934
|
if (maxLevel < column.level) {
|
|
@@ -20880,7 +20938,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
20880
20938
|
if (column.children) {
|
|
20881
20939
|
var colSpan = 0;
|
|
20882
20940
|
column.children.forEach(function (subColumn) {
|
|
20883
|
-
|
|
20941
|
+
_traverse(subColumn, column);
|
|
20884
20942
|
colSpan += subColumn.colSpan;
|
|
20885
20943
|
});
|
|
20886
20944
|
column.colSpan = colSpan;
|
|
@@ -20890,13 +20948,13 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
20890
20948
|
};
|
|
20891
20949
|
originColumns.forEach(function (column) {
|
|
20892
20950
|
column.level = 1;
|
|
20893
|
-
|
|
20951
|
+
_traverse(column);
|
|
20894
20952
|
});
|
|
20895
20953
|
var rows = [];
|
|
20896
20954
|
for (var i = 0; i < maxLevel; i++) {
|
|
20897
20955
|
rows.push([]);
|
|
20898
20956
|
}
|
|
20899
|
-
var allColumns =
|
|
20957
|
+
var allColumns = _getAllColumns(originColumns);
|
|
20900
20958
|
allColumns.forEach(function (column) {
|
|
20901
20959
|
if (!column.children) {
|
|
20902
20960
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -20936,7 +20994,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
20936
20994
|
};
|
|
20937
20995
|
var headersToRows = function headersToRows(originColumns) {
|
|
20938
20996
|
var maxLevel = 1;
|
|
20939
|
-
var
|
|
20997
|
+
var _traverse2 = function traverse(column, parent) {
|
|
20940
20998
|
if (parent) {
|
|
20941
20999
|
//计算当前元素属于第几个层级
|
|
20942
21000
|
column.level = parent.level + 1;
|
|
@@ -20949,7 +21007,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
20949
21007
|
var colSpan = 0;
|
|
20950
21008
|
column.children.forEach(function (subColumn) {
|
|
20951
21009
|
//进行递归
|
|
20952
|
-
|
|
21010
|
+
_traverse2(subColumn, column);
|
|
20953
21011
|
colSpan += subColumn.colSpan;
|
|
20954
21012
|
});
|
|
20955
21013
|
column.colSpan = colSpan;
|
|
@@ -20959,14 +21017,14 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
20959
21017
|
};
|
|
20960
21018
|
originColumns.forEach(function (column) {
|
|
20961
21019
|
column.level = 1;
|
|
20962
|
-
|
|
21020
|
+
_traverse2(column);
|
|
20963
21021
|
});
|
|
20964
21022
|
var rows = [];
|
|
20965
21023
|
var lastData = [];
|
|
20966
21024
|
for (var i = 0; i < maxLevel; i++) {
|
|
20967
21025
|
rows.push([]);
|
|
20968
21026
|
}
|
|
20969
|
-
var allColumns =
|
|
21027
|
+
var allColumns = _getAllColumns(originColumns);
|
|
20970
21028
|
allColumns.forEach(function (column) {
|
|
20971
21029
|
if (!column.children) {
|
|
20972
21030
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -26983,7 +27041,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
|
|
|
26983
27041
|
}
|
|
26984
27042
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
26985
27043
|
};
|
|
26986
|
-
var
|
|
27044
|
+
var _hasHighLightChildren = function hasHighLightChildren() {
|
|
26987
27045
|
var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
26988
27046
|
var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
|
|
26989
27047
|
var children = hightLightData.children,
|
|
@@ -26994,7 +27052,7 @@ var hasHighLightChildren = function hasHighLightChildren() {
|
|
|
26994
27052
|
lineEnd = _loc2[2];
|
|
26995
27053
|
if (children) {
|
|
26996
27054
|
return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
|
|
26997
|
-
return
|
|
27055
|
+
return _hasHighLightChildren(v, highLightLine);
|
|
26998
27056
|
});
|
|
26999
27057
|
}
|
|
27000
27058
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
@@ -27006,7 +27064,7 @@ function createHighLightTreeData(treeData, highLightLine) {
|
|
|
27006
27064
|
var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
|
|
27007
27065
|
data.forEach(function (node) {
|
|
27008
27066
|
if (!node) return;
|
|
27009
|
-
node.toggled =
|
|
27067
|
+
node.toggled = _hasHighLightChildren(node, highLightLine);
|
|
27010
27068
|
node.active = isHightLight(node, highLightLine);
|
|
27011
27069
|
if (node.children) {
|
|
27012
27070
|
if (node.active) {
|
|
@@ -28437,7 +28495,7 @@ var valueType = {
|
|
|
28437
28495
|
};
|
|
28438
28496
|
|
|
28439
28497
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
28440
|
-
var _ref = _asyncToGenerator(
|
|
28498
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
28441
28499
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
28442
28500
|
while (1) switch (_context.prev = _context.next) {
|
|
28443
28501
|
case 0:
|
|
@@ -28505,7 +28563,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
28505
28563
|
value: false
|
|
28506
28564
|
}];
|
|
28507
28565
|
var ref = useRef();
|
|
28508
|
-
useMount(
|
|
28566
|
+
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
28509
28567
|
var _ref$current, source;
|
|
28510
28568
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
28511
28569
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -28619,7 +28677,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
28619
28677
|
source: {
|
|
28620
28678
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
28621
28679
|
type: function () {
|
|
28622
|
-
var _type = _asyncToGenerator(
|
|
28680
|
+
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
28623
28681
|
var form, values, name, relates, source;
|
|
28624
28682
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
28625
28683
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -29099,7 +29157,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29099
29157
|
source: {
|
|
29100
29158
|
relates: ['choiceType', 'inputType'],
|
|
29101
29159
|
type: function () {
|
|
29102
|
-
var _type2 = _asyncToGenerator(
|
|
29160
|
+
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
29103
29161
|
var values, name, form, source;
|
|
29104
29162
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
29105
29163
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -29321,7 +29379,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29321
29379
|
width: 900,
|
|
29322
29380
|
maskClosable: false,
|
|
29323
29381
|
onOk: function () {
|
|
29324
|
-
var _onOk = _asyncToGenerator(
|
|
29382
|
+
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
29325
29383
|
var _ref$current4, _res$editableStatus;
|
|
29326
29384
|
var res, _res$defaultValue;
|
|
29327
29385
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -29393,7 +29451,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29393
29451
|
}()
|
|
29394
29452
|
}), /*#__PURE__*/React$1.createElement(Form$1, _objectSpread2(_objectSpread2({}, formConfig), {}, {
|
|
29395
29453
|
ref: ref
|
|
29396
|
-
})), maintainOptionsModal.visible && (
|
|
29454
|
+
})), maintainOptionsModal.visible && (/*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
29397
29455
|
};
|
|
29398
29456
|
|
|
29399
29457
|
// @ts-nocheck
|
|
@@ -30007,7 +30065,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30007
30065
|
return setVisible(false);
|
|
30008
30066
|
},
|
|
30009
30067
|
className: 'customFieldsDrawer'
|
|
30010
|
-
}, detailTablesSetting.length == 0 && (
|
|
30068
|
+
}, detailTablesSetting.length == 0 && (/*#__PURE__*/React$1.createElement("div", {
|
|
30011
30069
|
style: {
|
|
30012
30070
|
display: 'flex'
|
|
30013
30071
|
}
|
|
@@ -30016,13 +30074,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30016
30074
|
flex: 1,
|
|
30017
30075
|
width: 500
|
|
30018
30076
|
}
|
|
30019
|
-
}, isEmpty(moduleParams) ? (
|
|
30077
|
+
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
30020
30078
|
style: {
|
|
30021
30079
|
padding: "10px 0",
|
|
30022
30080
|
fontSize: "16px",
|
|
30023
30081
|
fontWeight: "bolder"
|
|
30024
30082
|
}
|
|
30025
|
-
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (
|
|
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", {
|
|
30026
30084
|
style: {
|
|
30027
30085
|
flex: 1
|
|
30028
30086
|
}
|
|
@@ -30031,7 +30089,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30031
30089
|
onRun: onClickRun,
|
|
30032
30090
|
value: jsonEditorVal,
|
|
30033
30091
|
shallowHeight: height
|
|
30034
|
-
})))), detailTablesSetting.length > 0 && (
|
|
30092
|
+
})))), detailTablesSetting.length > 0 && (/*#__PURE__*/React$1.createElement(Tabs, {
|
|
30035
30093
|
defaultActiveKey: activeKey,
|
|
30036
30094
|
onChange: function onChange(v) {
|
|
30037
30095
|
return setActiveKey(v);
|
|
@@ -30048,13 +30106,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30048
30106
|
flex: 1,
|
|
30049
30107
|
width: 500
|
|
30050
30108
|
}
|
|
30051
|
-
}, isEmpty(moduleParams) ? (
|
|
30109
|
+
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
30052
30110
|
style: {
|
|
30053
30111
|
padding: "10px 0",
|
|
30054
30112
|
fontSize: "16px",
|
|
30055
30113
|
fontWeight: "bolder"
|
|
30056
30114
|
}
|
|
30057
|
-
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (
|
|
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", {
|
|
30058
30116
|
style: {
|
|
30059
30117
|
flex: 1
|
|
30060
30118
|
}
|
|
@@ -30076,13 +30134,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30076
30134
|
flex: 1,
|
|
30077
30135
|
width: 500
|
|
30078
30136
|
}
|
|
30079
|
-
}, !tablesConfigParams[k.tableCode] ? (
|
|
30137
|
+
}, !tablesConfigParams[k.tableCode] ? (/*#__PURE__*/React$1.createElement("div", {
|
|
30080
30138
|
style: {
|
|
30081
30139
|
padding: "10px 0",
|
|
30082
30140
|
fontSize: "16px",
|
|
30083
30141
|
fontWeight: "bolder"
|
|
30084
30142
|
}
|
|
30085
|
-
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (
|
|
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", {
|
|
30086
30144
|
style: {
|
|
30087
30145
|
flex: 1
|
|
30088
30146
|
}
|
|
@@ -30228,7 +30286,7 @@ function getMetaData(_x) {
|
|
|
30228
30286
|
|
|
30229
30287
|
// 获取数据
|
|
30230
30288
|
function _getMetaData() {
|
|
30231
|
-
_getMetaData = _asyncToGenerator(
|
|
30289
|
+
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
30232
30290
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30233
30291
|
while (1) switch (_context.prev = _context.next) {
|
|
30234
30292
|
case 0:
|
|
@@ -30450,7 +30508,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
30450
30508
|
tableState = _useState4[0],
|
|
30451
30509
|
setTableState = _useState4[1];
|
|
30452
30510
|
var handleOpen = /*#__PURE__*/function () {
|
|
30453
|
-
var _ref = _asyncToGenerator(
|
|
30511
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30454
30512
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
30455
30513
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
30456
30514
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -30769,7 +30827,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
30769
30827
|
destroyOnClose: true
|
|
30770
30828
|
}, config && /*#__PURE__*/React$1.createElement(QueryTable, _objectSpread2({
|
|
30771
30829
|
ref: queryTableRef
|
|
30772
|
-
}, 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, {
|
|
30773
30831
|
justify: "center",
|
|
30774
30832
|
style: {
|
|
30775
30833
|
marginBottom: 30,
|
|
@@ -30885,7 +30943,7 @@ var CustomSelector = (function (props) {
|
|
|
30885
30943
|
var _props$ctx7;
|
|
30886
30944
|
return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
|
|
30887
30945
|
}
|
|
30888
|
-
})), showType === 'modalTable' && (
|
|
30946
|
+
})), showType === 'modalTable' && (/*#__PURE__*/React$1.createElement(Button, {
|
|
30889
30947
|
type: "primary",
|
|
30890
30948
|
style: {
|
|
30891
30949
|
width: '30px',
|
|
@@ -30971,7 +31029,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
30971
31029
|
_useState2 = _slicedToArray(_useState, 2),
|
|
30972
31030
|
handSource = _useState2[0],
|
|
30973
31031
|
setHandSource = _useState2[1];
|
|
30974
|
-
useEffect(
|
|
31032
|
+
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30975
31033
|
var resData, data;
|
|
30976
31034
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30977
31035
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -31123,7 +31181,7 @@ function getRegularThresholdRange(_x) {
|
|
|
31123
31181
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
31124
31182
|
}
|
|
31125
31183
|
function _getRegularThresholdRange() {
|
|
31126
|
-
_getRegularThresholdRange = _asyncToGenerator(
|
|
31184
|
+
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
31127
31185
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31128
31186
|
while (1) switch (_context.prev = _context.next) {
|
|
31129
31187
|
case 0:
|
|
@@ -31277,7 +31335,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
31277
31335
|
};
|
|
31278
31336
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
31279
31337
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
31280
|
-
var _ref = _asyncToGenerator(
|
|
31338
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
31281
31339
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
31282
31340
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31283
31341
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -32222,7 +32280,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32222
32280
|
isAll: true,
|
|
32223
32281
|
needNameAndCode: true,
|
|
32224
32282
|
notChangeOnSelect: true,
|
|
32225
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
32283
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
32226
32284
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
32227
32285
|
while (1) switch (_context2.prev = _context2.next) {
|
|
32228
32286
|
case 0:
|
|
@@ -32271,7 +32329,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32271
32329
|
isAll: true,
|
|
32272
32330
|
needNameAndCode: true,
|
|
32273
32331
|
notChangeOnSelect: true,
|
|
32274
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
32332
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
32275
32333
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
32276
32334
|
while (1) switch (_context3.prev = _context3.next) {
|
|
32277
32335
|
case 0:
|
|
@@ -32322,7 +32380,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32322
32380
|
isAll: true,
|
|
32323
32381
|
needNameAndCode: true,
|
|
32324
32382
|
notChangeOnSelect: true,
|
|
32325
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
32383
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
32326
32384
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
32327
32385
|
while (1) switch (_context4.prev = _context4.next) {
|
|
32328
32386
|
case 0:
|
|
@@ -34286,7 +34344,7 @@ var App$1 = function App(_ref) {
|
|
|
34286
34344
|
borderRadius: '5px',
|
|
34287
34345
|
cursor: 'pointer'
|
|
34288
34346
|
}
|
|
34289
|
-
}, isStaticNumber ? (
|
|
34347
|
+
}, isStaticNumber ? (/*#__PURE__*/React$1.createElement(Input, {
|
|
34290
34348
|
autoFocus: true,
|
|
34291
34349
|
onClick: function onClick(e) {
|
|
34292
34350
|
return e.stopPropagation();
|
|
@@ -34573,7 +34631,7 @@ function RenderCompItem(props) {
|
|
|
34573
34631
|
dictData = _useState2[0],
|
|
34574
34632
|
setDictData = _useState2[1];
|
|
34575
34633
|
var getDictData = /*#__PURE__*/function () {
|
|
34576
|
-
var _ref = _asyncToGenerator(
|
|
34634
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
34577
34635
|
var _data$map;
|
|
34578
34636
|
var data;
|
|
34579
34637
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -34615,7 +34673,7 @@ function RenderCompItem(props) {
|
|
|
34615
34673
|
var style2 = {
|
|
34616
34674
|
width: '100px'
|
|
34617
34675
|
};
|
|
34618
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && (
|
|
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, {
|
|
34619
34677
|
disabled: disabled,
|
|
34620
34678
|
allowClear: true,
|
|
34621
34679
|
onClear: function onClear() {
|
|
@@ -34626,7 +34684,7 @@ function RenderCompItem(props) {
|
|
|
34626
34684
|
onBlur: function onBlur(e) {
|
|
34627
34685
|
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
34628
34686
|
}
|
|
34629
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 22) && (
|
|
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, {
|
|
34630
34688
|
disabled: disabled,
|
|
34631
34689
|
// max={Number.MAX_SAFE_INTEGER}
|
|
34632
34690
|
max: judgeIsEmpty(ites === null || ites === void 0 ? void 0 : ites.maxValue) ? Number.MAX_SAFE_INTEGER : ites.maxValue,
|
|
@@ -34639,7 +34697,7 @@ function RenderCompItem(props) {
|
|
|
34639
34697
|
onChange: function onChange(value) {
|
|
34640
34698
|
handleEdit(ites.code, value);
|
|
34641
34699
|
}
|
|
34642
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 41 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 32) && (
|
|
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, {
|
|
34643
34701
|
showTime: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 32,
|
|
34644
34702
|
format: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 41 ? dateFormat : fullDateFormat,
|
|
34645
34703
|
disabled: disabled,
|
|
@@ -34649,7 +34707,7 @@ function RenderCompItem(props) {
|
|
|
34649
34707
|
onChange: function onChange(value, dateString) {
|
|
34650
34708
|
handleEdit(ites.code, dateString);
|
|
34651
34709
|
}
|
|
34652
|
-
})) || 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, {
|
|
34653
34711
|
showTime: true,
|
|
34654
34712
|
disabled: disabled,
|
|
34655
34713
|
defaultValue: ites.defaultValue,
|
|
@@ -34658,7 +34716,7 @@ function RenderCompItem(props) {
|
|
|
34658
34716
|
onChange: function onChange(value, timeString) {
|
|
34659
34717
|
handleEdit(ites.code, timeString);
|
|
34660
34718
|
}
|
|
34661
|
-
})) || 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, {
|
|
34662
34720
|
disabled: disabled,
|
|
34663
34721
|
defaultChecked: !!ites.defaultValue,
|
|
34664
34722
|
style: style2,
|
|
@@ -34666,7 +34724,7 @@ function RenderCompItem(props) {
|
|
|
34666
34724
|
onChange: function onChange(value) {
|
|
34667
34725
|
handleEdit(ites.code, value);
|
|
34668
34726
|
}
|
|
34669
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 10 && (
|
|
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({
|
|
34670
34728
|
disabled: disabled,
|
|
34671
34729
|
allowClear: true,
|
|
34672
34730
|
showArrow: true
|
|
@@ -34684,7 +34742,7 @@ function RenderCompItem(props) {
|
|
|
34684
34742
|
key: it,
|
|
34685
34743
|
value: it
|
|
34686
34744
|
}, ites.enumeration[it]);
|
|
34687
|
-
}))) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 20 && (
|
|
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, {
|
|
34688
34746
|
disabled: disabled,
|
|
34689
34747
|
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
34690
34748
|
defaultValue: ites.defaultValue,
|
|
@@ -34694,7 +34752,7 @@ function RenderCompItem(props) {
|
|
|
34694
34752
|
handleEdit(ites.code, value);
|
|
34695
34753
|
},
|
|
34696
34754
|
dictionaryCode: ites.dictionaryCode
|
|
34697
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 110 && (
|
|
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, {
|
|
34698
34756
|
selectBusinessType: "physicalWarehouse",
|
|
34699
34757
|
selectProps: _objectSpread2({
|
|
34700
34758
|
style: styleCommon,
|
|
@@ -34716,7 +34774,7 @@ function RenderCompItem(props) {
|
|
|
34716
34774
|
getPopupContainer: function getPopupContainer() {
|
|
34717
34775
|
return document.body;
|
|
34718
34776
|
}
|
|
34719
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 120 && (
|
|
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, {
|
|
34720
34778
|
selectBusinessType: "realWarehouse",
|
|
34721
34779
|
selectProps: _objectSpread2({
|
|
34722
34780
|
style: styleCommon,
|
|
@@ -34738,7 +34796,7 @@ function RenderCompItem(props) {
|
|
|
34738
34796
|
getPopupContainer: function getPopupContainer() {
|
|
34739
34797
|
return document.body;
|
|
34740
34798
|
}
|
|
34741
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 130 && (
|
|
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, {
|
|
34742
34800
|
selectBusinessType: "virtualWarehouse",
|
|
34743
34801
|
selectProps: _objectSpread2({
|
|
34744
34802
|
style: styleCommon,
|
|
@@ -34760,7 +34818,7 @@ function RenderCompItem(props) {
|
|
|
34760
34818
|
getPopupContainer: function getPopupContainer() {
|
|
34761
34819
|
return document.body;
|
|
34762
34820
|
}
|
|
34763
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 140 && (
|
|
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, {
|
|
34764
34822
|
selectBusinessType: "channelWarehouse",
|
|
34765
34823
|
selectProps: _objectSpread2({
|
|
34766
34824
|
style: styleCommon,
|
|
@@ -34782,7 +34840,7 @@ function RenderCompItem(props) {
|
|
|
34782
34840
|
getPopupContainer: function getPopupContainer() {
|
|
34783
34841
|
return document.body;
|
|
34784
34842
|
}
|
|
34785
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 150 && (
|
|
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, {
|
|
34786
34844
|
selectBusinessType: "spuCommodity",
|
|
34787
34845
|
selectProps: _objectSpread2({
|
|
34788
34846
|
style: styleCommon,
|
|
@@ -34803,7 +34861,7 @@ function RenderCompItem(props) {
|
|
|
34803
34861
|
getPopupContainer: function getPopupContainer() {
|
|
34804
34862
|
return document.body;
|
|
34805
34863
|
}
|
|
34806
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 160 && (
|
|
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, {
|
|
34807
34865
|
selectBusinessType: "skuCommodity",
|
|
34808
34866
|
selectProps: _objectSpread2({
|
|
34809
34867
|
style: styleCommon,
|
|
@@ -34824,13 +34882,13 @@ function RenderCompItem(props) {
|
|
|
34824
34882
|
getPopupContainer: function getPopupContainer() {
|
|
34825
34883
|
return document.body;
|
|
34826
34884
|
}
|
|
34827
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 190 && (
|
|
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, {
|
|
34828
34886
|
disabled: disabled,
|
|
34829
34887
|
isAll: true,
|
|
34830
34888
|
needNameAndCode: true,
|
|
34831
34889
|
notChangeOnSelect: true,
|
|
34832
34890
|
initRequestSource: function () {
|
|
34833
|
-
var _initRequestSource = _asyncToGenerator(
|
|
34891
|
+
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
34834
34892
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
34835
34893
|
while (1) switch (_context2.prev = _context2.next) {
|
|
34836
34894
|
case 0:
|
|
@@ -34872,7 +34930,7 @@ function RenderCompItem(props) {
|
|
|
34872
34930
|
getPopupContainer: function getPopupContainer() {
|
|
34873
34931
|
return document.body;
|
|
34874
34932
|
}
|
|
34875
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 210 && (
|
|
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, {
|
|
34876
34934
|
disabled: disabled,
|
|
34877
34935
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34878
34936
|
businessType: "department",
|
|
@@ -34885,7 +34943,7 @@ function RenderCompItem(props) {
|
|
|
34885
34943
|
getPopupContainer: function getPopupContainer() {
|
|
34886
34944
|
return document.body;
|
|
34887
34945
|
}
|
|
34888
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 220 && (
|
|
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, {
|
|
34889
34947
|
disabled: disabled,
|
|
34890
34948
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34891
34949
|
businessType: "purchase-organization",
|
|
@@ -34898,7 +34956,7 @@ function RenderCompItem(props) {
|
|
|
34898
34956
|
getPopupContainer: function getPopupContainer() {
|
|
34899
34957
|
return document.body;
|
|
34900
34958
|
}
|
|
34901
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 230 && (
|
|
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, {
|
|
34902
34960
|
disabled: disabled,
|
|
34903
34961
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34904
34962
|
businessType: "sales-organization",
|
|
@@ -34911,7 +34969,7 @@ function RenderCompItem(props) {
|
|
|
34911
34969
|
getPopupContainer: function getPopupContainer() {
|
|
34912
34970
|
return document.body;
|
|
34913
34971
|
}
|
|
34914
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 240 && (
|
|
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, {
|
|
34915
34973
|
selectBusinessType: "supplier2",
|
|
34916
34974
|
selectProps: _objectSpread2({
|
|
34917
34975
|
style: styleCommon,
|
|
@@ -34932,7 +34990,7 @@ function RenderCompItem(props) {
|
|
|
34932
34990
|
getPopupContainer: function getPopupContainer() {
|
|
34933
34991
|
return document.body;
|
|
34934
34992
|
}
|
|
34935
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 250 && (
|
|
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, {
|
|
34936
34994
|
selectBusinessType: "customer2",
|
|
34937
34995
|
selectProps: _objectSpread2({
|
|
34938
34996
|
style: styleCommon,
|
|
@@ -34953,7 +35011,7 @@ function RenderCompItem(props) {
|
|
|
34953
35011
|
getPopupContainer: function getPopupContainer() {
|
|
34954
35012
|
return document.body;
|
|
34955
35013
|
}
|
|
34956
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 260 && (
|
|
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, {
|
|
34957
35015
|
selectBusinessType: "shopFile2",
|
|
34958
35016
|
selectProps: _objectSpread2({
|
|
34959
35017
|
style: styleCommon,
|
|
@@ -34974,7 +35032,7 @@ function RenderCompItem(props) {
|
|
|
34974
35032
|
getPopupContainer: function getPopupContainer() {
|
|
34975
35033
|
return document.body;
|
|
34976
35034
|
}
|
|
34977
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 270 && (
|
|
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, {
|
|
34978
35036
|
selectBusinessType: "employee2",
|
|
34979
35037
|
selectProps: _objectSpread2({
|
|
34980
35038
|
style: styleCommon,
|
|
@@ -34995,7 +35053,7 @@ function RenderCompItem(props) {
|
|
|
34995
35053
|
getPopupContainer: function getPopupContainer() {
|
|
34996
35054
|
return document.body;
|
|
34997
35055
|
}
|
|
34998
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 280 && (
|
|
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, {
|
|
34999
35057
|
disabled: disabled,
|
|
35000
35058
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35001
35059
|
businessType: "stock-organization",
|
|
@@ -35008,7 +35066,7 @@ function RenderCompItem(props) {
|
|
|
35008
35066
|
getPopupContainer: function getPopupContainer() {
|
|
35009
35067
|
return document.body;
|
|
35010
35068
|
}
|
|
35011
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 290 && (
|
|
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, {
|
|
35012
35070
|
disabled: disabled,
|
|
35013
35071
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35014
35072
|
businessType: "settle-organization",
|
|
@@ -35021,7 +35079,7 @@ function RenderCompItem(props) {
|
|
|
35021
35079
|
getPopupContainer: function getPopupContainer() {
|
|
35022
35080
|
return document.body;
|
|
35023
35081
|
}
|
|
35024
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 && (
|
|
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, {
|
|
35025
35083
|
selectBusinessType: "deliveryMode",
|
|
35026
35084
|
selectProps: _objectSpread2({
|
|
35027
35085
|
style: styleCommon,
|
|
@@ -35042,7 +35100,7 @@ function RenderCompItem(props) {
|
|
|
35042
35100
|
getPopupContainer: function getPopupContainer() {
|
|
35043
35101
|
return document.body;
|
|
35044
35102
|
}
|
|
35045
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 360 && (
|
|
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, {
|
|
35046
35104
|
selectBusinessType: "role",
|
|
35047
35105
|
selectProps: _objectSpread2({
|
|
35048
35106
|
style: styleCommon,
|
|
@@ -35063,7 +35121,7 @@ function RenderCompItem(props) {
|
|
|
35063
35121
|
getPopupContainer: function getPopupContainer() {
|
|
35064
35122
|
return document.body;
|
|
35065
35123
|
}
|
|
35066
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 410 && (
|
|
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, {
|
|
35067
35125
|
selectBusinessType: "brand",
|
|
35068
35126
|
selectProps: _objectSpread2({
|
|
35069
35127
|
style: styleCommon,
|
|
@@ -35084,7 +35142,7 @@ function RenderCompItem(props) {
|
|
|
35084
35142
|
getPopupContainer: function getPopupContainer() {
|
|
35085
35143
|
return document.body;
|
|
35086
35144
|
}
|
|
35087
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 420 && (
|
|
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, {
|
|
35088
35146
|
disabled: disabled,
|
|
35089
35147
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35090
35148
|
businessType: "background-category",
|
|
@@ -35097,7 +35155,7 @@ function RenderCompItem(props) {
|
|
|
35097
35155
|
getPopupContainer: function getPopupContainer() {
|
|
35098
35156
|
return document.body;
|
|
35099
35157
|
}
|
|
35100
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 40 && (
|
|
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, {
|
|
35101
35159
|
selectProps: _objectSpread2(_objectSpread2({
|
|
35102
35160
|
style: styleCommon,
|
|
35103
35161
|
placeholder: '请选择'
|
|
@@ -35120,7 +35178,7 @@ function RenderCompItem(props) {
|
|
|
35120
35178
|
onChange: function onChange(value) {
|
|
35121
35179
|
handleEdit(ites.code, value);
|
|
35122
35180
|
}
|
|
35123
|
-
})) || 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", {
|
|
35124
35182
|
style: {
|
|
35125
35183
|
display: 'flex'
|
|
35126
35184
|
}
|
|
@@ -35632,7 +35690,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35632
35690
|
queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
|
|
35633
35691
|
queryIdentifyType = 'dynamicDictCodeIdentify';
|
|
35634
35692
|
}
|
|
35635
|
-
var parallelTreeData =
|
|
35693
|
+
var parallelTreeData = _coverToParallel(ruleTreeData, []) || [];
|
|
35636
35694
|
var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
|
|
35637
35695
|
var _i$key;
|
|
35638
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);
|
|
@@ -36559,13 +36617,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
36559
36617
|
var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
|
|
36560
36618
|
// 处理对象-设置了必填-规则实例保存时数据必填校验
|
|
36561
36619
|
if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
|
|
36562
|
-
var list =
|
|
36620
|
+
var list = _coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
|
|
36563
36621
|
var requiredList = list.filter(function (c) {
|
|
36564
36622
|
return c.required == 1;
|
|
36565
36623
|
}) || []; // 获取对象属性为true的集合
|
|
36566
36624
|
(requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
|
|
36567
36625
|
var _s$expression, _s$expression$subExpr, _s$expression2, _coverExpressionTree$;
|
|
36568
|
-
var coverExpressionTree = (s === null || s === void 0 ? void 0 : (_s$expression = s.expression) === null || _s$expression === void 0 ? void 0 : (_s$expression$subExpr = _s$expression.subExpression) === null || _s$expression$subExpr === void 0 ? void 0 : _s$expression$subExpr.length) ?
|
|
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];
|
|
36569
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) {
|
|
36570
36628
|
if (requiredList.some(function (r) {
|
|
36571
36629
|
return r.id === e.elementId;
|
|
@@ -37154,7 +37212,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
37154
37212
|
style: {
|
|
37155
37213
|
float: 'right'
|
|
37156
37214
|
}
|
|
37157
|
-
})), /*#__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), {}, {
|
|
37158
37216
|
onlyOneRule: (_handleDiff2 = handleDiff()) === null || _handleDiff2 === void 0 ? void 0 : _handleDiff2.onlyOneRule,
|
|
37159
37217
|
ruleGroupInfo: {
|
|
37160
37218
|
ruleGroupList: ruleGroupList,
|
|
@@ -37172,7 +37230,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
37172
37230
|
callBack: function callBack(newData) {
|
|
37173
37231
|
upDateData(newData);
|
|
37174
37232
|
}
|
|
37175
|
-
}))) : (
|
|
37233
|
+
}))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
37176
37234
|
style: {
|
|
37177
37235
|
padding: 20
|
|
37178
37236
|
}
|
|
@@ -37547,4 +37605,4 @@ var ParagraphCopier = function ParagraphCopier(props) {
|
|
|
37547
37605
|
}, children));
|
|
37548
37606
|
};
|
|
37549
37607
|
|
|
37550
|
-
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, ParagraphCopier, QueryMutipleInput, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy, coverToParallel, createUniqID, downloadExcel, ergodicMenuRoutes, formatter, getAccountID, getAccountId, getBreadcrumbNameMap, getCommonInfoKey, getConfigTableColumns, getCurrentTargetBgId, getCurrentTenantId, getDictionarySource, getDictionaryTextByValue, getEmployeeCode, getEmployeeId, getItemDefaultWidth$1 as getItemDefaultWidth, getJoinDictionaryText, getLastKey, getLimitMenuDataKey, getLocalStorageSaveKey, getMenuAuthDataKey, getSessionId, getSkuImg, getTenantList, getUserId, getUserName, go2BackAndClose, handleAntdColumnsSpecialParams, handleBaseUrlPre, handleBeforeUpload, handleBssulaColumnsSpecialParams, handleCommonTimeRender$1 as handleCommonTimeRender, handleConvertResponse, handleError, handleExport, handleExportBarCode, handleJudgeAuthButtons, handleOssUrl, handleRequestAuthHeader, handleRequestHeader, handleRequestUrl, handleStatusBadge, handleTextBreakSpaces, handleTextDouble$1 as handleTextDouble, handleTextDoubleOrId, handleTextLineFeed$1 as handleTextLineFeed, handleTextOverflow$1 as handleTextOverflow, handleTextTooltip, handleTextWarp, handleTextWarpCustom, handleTooltip$1 as handleTooltip, handleTooltipHours$1 as handleTooltipHours, handleUserPhone, judgeIsEmpty, judgeIsRequestError, judgeIsRequestSuccess, keyToWord, memoizeOneFormatter, noEmptyArr, noEmptyArray, paramsControl, parseWidth, precisionQuantity, randomString, readerXlsxToList, removeCurrentTenantId, removeTenantList, renderFixed2, renderNumberText, saveCurrentTenantId, saveTenantList, setConfigTableColumns, shouldUseAuth, socketFunctions, sulaTableRenderTooltip, tableColumnsImage$1 as tableColumnsImage, textIcon, updateGuanDate, userColumns$1 as userColumns, userInfoCard$1 as userInfoCard, uuid, writeListToXlsx };
|
|
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 };
|