@bit-sun/business-component 4.0.11-alpha.28 → 4.0.11-alpha.29
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 +261 -264
- package/dist/index.js +262 -265
- package/package.json +1 -1
- package/src/components/Functional/SearchSelect/index.tsx +5 -4
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"
|
|
@@ -4585,7 +4585,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4585
4585
|
});
|
|
4586
4586
|
})) : [];
|
|
4587
4587
|
}
|
|
4588
|
-
|
|
4588
|
+
// 数据源 不可以有重复key
|
|
4589
|
+
source = Array.isArray(source) ? _.uniqBy(source, 'value') : [];
|
|
4589
4590
|
if (callback) {
|
|
4590
4591
|
callback(source);
|
|
4591
4592
|
} else {
|
|
@@ -5174,6 +5175,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5174
5175
|
selectedRowKeys: labelInValue ? value === null || value === void 0 ? void 0 : value.map(function (s) {
|
|
5175
5176
|
return (s === null || s === void 0 ? void 0 : s.value) || s;
|
|
5176
5177
|
}) : value,
|
|
5178
|
+
preserveSelectedRowKeys: true,
|
|
5177
5179
|
onChange: function onChange(sks, srs) {
|
|
5178
5180
|
var oldSelect = (value === null || value === void 0 ? void 0 : value.map(function (s) {
|
|
5179
5181
|
return {
|
|
@@ -5183,12 +5185,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5183
5185
|
var tmpSelectedRows = oldSelect.concat(srs).filter(function (item) {
|
|
5184
5186
|
return item != undefined;
|
|
5185
5187
|
});
|
|
5186
|
-
var
|
|
5187
|
-
return (s === null || s === void 0 ? void 0 : s.value) || s;
|
|
5188
|
-
})) || []).concat(sks))).filter(function (item) {
|
|
5189
|
-
return item != undefined;
|
|
5190
|
-
}); // 避免搜索之后 没有了选中前的数据
|
|
5191
|
-
var realSrs = realStr.map(function (key) {
|
|
5188
|
+
var realSrs = sks.map(function (key) {
|
|
5192
5189
|
return tmpSelectedRows.filter(function (item) {
|
|
5193
5190
|
return item.value == key;
|
|
5194
5191
|
})[0];
|
|
@@ -5313,13 +5310,13 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5313
5310
|
var isShouldShowStr = props.disabled && ctx || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) == 'view';
|
|
5314
5311
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
5315
5312
|
className: 'search_select'
|
|
5316
|
-
}, fieldComponent ? (
|
|
5313
|
+
}, fieldComponent ? (/*#__PURE__*/React$1.createElement("div", {
|
|
5317
5314
|
onClick: function onClick() {
|
|
5318
5315
|
var _fieldComponent$props, _fieldComponent$props2;
|
|
5319
5316
|
(_fieldComponent$props = fieldComponent.props) === null || _fieldComponent$props === void 0 ? void 0 : (_fieldComponent$props2 = _fieldComponent$props.onClick) === null || _fieldComponent$props2 === void 0 ? void 0 : _fieldComponent$props2.call(_fieldComponent$props);
|
|
5320
5317
|
showModal();
|
|
5321
5318
|
}
|
|
5322
|
-
}, fieldComponent)) : isShouldShowStr ? (
|
|
5319
|
+
}, fieldComponent)) : isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
5323
5320
|
title: getShowStr(),
|
|
5324
5321
|
style: {
|
|
5325
5322
|
overflow: 'hidden',
|
|
@@ -5346,14 +5343,14 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5346
5343
|
dropdownRender: function dropdownRender(menu) {
|
|
5347
5344
|
return (items === null || items === void 0 ? void 0 : items.length) ? renderTable(items) : menu;
|
|
5348
5345
|
},
|
|
5349
|
-
notFoundContent: fetching ? (
|
|
5346
|
+
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
5350
5347
|
size: "small",
|
|
5351
5348
|
className: 'searchSelectSpin'
|
|
5352
|
-
})) : (
|
|
5349
|
+
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
5353
5350
|
style: {
|
|
5354
5351
|
textAlign: 'center'
|
|
5355
5352
|
}
|
|
5356
|
-
}, /*#__PURE__*/React$1.createElement("div", null, searchValue || init ? '无匹配结果,请更换其他内容再试' : "\u8BF7\u5F55\u5165".concat(searchStartLength ? '4位数以上' : '', "\u5B57\u7B26\u8FDB\u884C\u6A21\u7CCA\u67E5\u8BE2")))),
|
|
5353
|
+
}, /*#__PURE__*/React$1.createElement("div", null, searchValue || init || isHaveDependency ? '无匹配结果,请更换其他内容再试' : "\u8BF7\u5F55\u5165".concat(searchStartLength ? '4位数以上' : '', "\u5B57\u7B26\u8FDB\u884C\u6A21\u7CCA\u67E5\u8BE2")))),
|
|
5357
5354
|
onPopupScroll: SelectScroll,
|
|
5358
5355
|
style: {
|
|
5359
5356
|
width: 'calc(100%)'
|
|
@@ -5380,7 +5377,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5380
5377
|
text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
|
|
5381
5378
|
filterTxt: searchValue
|
|
5382
5379
|
}));
|
|
5383
|
-
}))), needModalTable && isModalVisible && (
|
|
5380
|
+
}))), needModalTable && isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
5384
5381
|
maskClosable: false,
|
|
5385
5382
|
destroyOnClose: true,
|
|
5386
5383
|
width: "80%",
|
|
@@ -5977,7 +5974,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
5977
5974
|
style: {
|
|
5978
5975
|
width: 525
|
|
5979
5976
|
}
|
|
5980
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
5977
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
5981
5978
|
checked: !dataSource.some(function (item) {
|
|
5982
5979
|
if (item.hidden) return true;
|
|
5983
5980
|
return false;
|
|
@@ -6015,13 +6012,13 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6015
6012
|
_this2.onChange(e, item.title);
|
|
6016
6013
|
}
|
|
6017
6014
|
}, item.title);
|
|
6018
|
-
}), !!seatchDataSource.length && (
|
|
6015
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
6019
6016
|
style: {
|
|
6020
6017
|
width: '144px'
|
|
6021
6018
|
}
|
|
6022
|
-
})), !seatchDataSource.length && (
|
|
6019
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
6023
6020
|
className: 'sort_table_column_all_empty'
|
|
6024
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
6021
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
6025
6022
|
className: 'sort_table_column_special'
|
|
6026
6023
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
6027
6024
|
className: 'sort_table_column_all'
|
|
@@ -6210,7 +6207,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
|
|
|
6210
6207
|
});
|
|
6211
6208
|
};
|
|
6212
6209
|
// 格式化树选择器数据源
|
|
6213
|
-
var
|
|
6210
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
6214
6211
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
6215
6212
|
return {
|
|
6216
6213
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -6220,7 +6217,7 @@ var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
|
6220
6217
|
isLeaf: !haveChildren,
|
|
6221
6218
|
disabled: haveChildren,
|
|
6222
6219
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
6223
|
-
return
|
|
6220
|
+
return _mapSearchTree(i, resKeyValue);
|
|
6224
6221
|
}) : []
|
|
6225
6222
|
};
|
|
6226
6223
|
};
|
|
@@ -6229,7 +6226,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
6229
6226
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
6230
6227
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
6231
6228
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
6232
|
-
return
|
|
6229
|
+
return _mapSearchTree(ites, resKeyValue);
|
|
6233
6230
|
}) || [];
|
|
6234
6231
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
6235
6232
|
};
|
|
@@ -6400,7 +6397,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
6400
6397
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
6401
6398
|
// FIXME: 特殊业务逻辑
|
|
6402
6399
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
6403
|
-
var _ref2 = _asyncToGenerator(
|
|
6400
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
6404
6401
|
var result;
|
|
6405
6402
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
6406
6403
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -6653,7 +6650,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
6653
6650
|
return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
6654
6651
|
value: text || null,
|
|
6655
6652
|
onChange: function () {
|
|
6656
|
-
var _onChange = _asyncToGenerator(
|
|
6653
|
+
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
6657
6654
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
6658
6655
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
6659
6656
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -7261,10 +7258,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7261
7258
|
var newColumns = arr.map(function (col) {
|
|
7262
7259
|
return _objectSpread2({}, col);
|
|
7263
7260
|
});
|
|
7264
|
-
var
|
|
7261
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
7265
7262
|
var i = indexArr.shift();
|
|
7266
7263
|
if (indexArr.length > 0) {
|
|
7267
|
-
|
|
7264
|
+
_handleIndex(arr[i].children, indexArr);
|
|
7268
7265
|
} else {
|
|
7269
7266
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
7270
7267
|
width: size.width
|
|
@@ -7272,7 +7269,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7272
7269
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
7273
7270
|
}
|
|
7274
7271
|
};
|
|
7275
|
-
|
|
7272
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
7276
7273
|
callback(newColumns);
|
|
7277
7274
|
};
|
|
7278
7275
|
};
|
|
@@ -7282,13 +7279,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
7282
7279
|
var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
|
|
7283
7280
|
setShowToChooseColumns(_toConsumableArray(newColumns));
|
|
7284
7281
|
};
|
|
7285
|
-
var
|
|
7282
|
+
var _handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
7286
7283
|
arr.forEach(function (item, index) {
|
|
7287
7284
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
7288
7285
|
return i || i === 0;
|
|
7289
7286
|
});
|
|
7290
7287
|
if (noEmptyArray$1(item.children)) {
|
|
7291
|
-
|
|
7288
|
+
_handleColumns(item.children, indexArrInside);
|
|
7292
7289
|
} else {
|
|
7293
7290
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
7294
7291
|
item.onHeaderCell = function (column) {
|
|
@@ -7304,14 +7301,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
7304
7301
|
handleAntdColumnsSpecialParams(item);
|
|
7305
7302
|
return _objectSpread2({}, item);
|
|
7306
7303
|
});
|
|
7307
|
-
|
|
7304
|
+
_handleColumns(showToChooseCol, [], function (res) {
|
|
7308
7305
|
return setShowToChooseColumnsCallback(res);
|
|
7309
7306
|
});
|
|
7310
7307
|
var showSelectedCol = showColumns.map(function (item) {
|
|
7311
7308
|
handleAntdColumnsSpecialParams(item);
|
|
7312
7309
|
return _objectSpread2({}, item);
|
|
7313
7310
|
});
|
|
7314
|
-
|
|
7311
|
+
_handleColumns(showSelectedCol, [], function (res) {
|
|
7315
7312
|
return setShowColumnsCallback(res);
|
|
7316
7313
|
});
|
|
7317
7314
|
var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
|
|
@@ -7322,7 +7319,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7322
7319
|
id: "add_select_div_".concat(uniqueValue)
|
|
7323
7320
|
}, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
7324
7321
|
onClick: handleShowModal
|
|
7325
|
-
}, realButtonProps), buttonText)), isModalVisible && (
|
|
7322
|
+
}, realButtonProps), buttonText)), isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
7326
7323
|
width: '1200px',
|
|
7327
7324
|
style: {
|
|
7328
7325
|
top: 20
|
|
@@ -8236,7 +8233,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8236
8233
|
});
|
|
8237
8234
|
};
|
|
8238
8235
|
var handleSubmit = /*#__PURE__*/function () {
|
|
8239
|
-
var _ref4 = _asyncToGenerator(
|
|
8236
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
8240
8237
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
8241
8238
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
8242
8239
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -8319,10 +8316,10 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8319
8316
|
var newColumns = arr.map(function (col) {
|
|
8320
8317
|
return _objectSpread2({}, col);
|
|
8321
8318
|
});
|
|
8322
|
-
var
|
|
8319
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
8323
8320
|
var i = indexArr.shift();
|
|
8324
8321
|
if (indexArr.length > 0) {
|
|
8325
|
-
|
|
8322
|
+
_handleIndex(arr[i].children, indexArr);
|
|
8326
8323
|
} else {
|
|
8327
8324
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
8328
8325
|
width: size.width
|
|
@@ -8330,17 +8327,17 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8330
8327
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
8331
8328
|
}
|
|
8332
8329
|
};
|
|
8333
|
-
|
|
8330
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
8334
8331
|
callback(newColumns);
|
|
8335
8332
|
};
|
|
8336
8333
|
};
|
|
8337
|
-
var
|
|
8334
|
+
var _handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
8338
8335
|
arr.forEach(function (item, index) {
|
|
8339
8336
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
8340
8337
|
return i || i === 0;
|
|
8341
8338
|
});
|
|
8342
8339
|
if (noEmptyArray$1(item.children)) {
|
|
8343
|
-
|
|
8340
|
+
_handleColumns(item.children, indexArrInside);
|
|
8344
8341
|
} else {
|
|
8345
8342
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
8346
8343
|
item.onHeaderCell = function (column) {
|
|
@@ -8356,7 +8353,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8356
8353
|
handleAntdColumnsSpecialParams(item);
|
|
8357
8354
|
return _objectSpread2({}, item);
|
|
8358
8355
|
});
|
|
8359
|
-
|
|
8356
|
+
_handleColumns(showSelectedCol, [], function (res) {
|
|
8360
8357
|
return setShowColumnsCallback(res);
|
|
8361
8358
|
});
|
|
8362
8359
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -8670,7 +8667,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8670
8667
|
});
|
|
8671
8668
|
};
|
|
8672
8669
|
// 格式化树选择器数据源
|
|
8673
|
-
var
|
|
8670
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
8674
8671
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
8675
8672
|
return {
|
|
8676
8673
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -8680,7 +8677,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8680
8677
|
isLeaf: !haveChildren,
|
|
8681
8678
|
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
8682
8679
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
8683
|
-
return
|
|
8680
|
+
return _mapSearchTree(i, resKeyValue, disabledJudge);
|
|
8684
8681
|
}) : []
|
|
8685
8682
|
};
|
|
8686
8683
|
};
|
|
@@ -8694,7 +8691,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8694
8691
|
disabledJudge = false;
|
|
8695
8692
|
}
|
|
8696
8693
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
8697
|
-
return
|
|
8694
|
+
return _mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
8698
8695
|
}) || [];
|
|
8699
8696
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
8700
8697
|
};
|
|
@@ -12740,7 +12737,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
12740
12737
|
};
|
|
12741
12738
|
return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
12742
12739
|
onClick: handleShowModal
|
|
12743
|
-
}, buttonProps), buttonName), modalProps.visible && (
|
|
12740
|
+
}, buttonProps), buttonName), modalProps.visible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
12744
12741
|
onOk: handleOk,
|
|
12745
12742
|
onCancel: handleCancel,
|
|
12746
12743
|
destroyOnClose: true,
|
|
@@ -12859,7 +12856,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12859
12856
|
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
|
|
12860
12857
|
_remoteSource$special = remoteSource.specialBracket,
|
|
12861
12858
|
specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
|
|
12862
|
-
var
|
|
12859
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
12863
12860
|
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
12864
12861
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
12865
12862
|
return {
|
|
@@ -12871,7 +12868,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12871
12868
|
isLeaf: !haveChildren,
|
|
12872
12869
|
disabled: isDisabled(haveChildren, isRoot),
|
|
12873
12870
|
children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
|
|
12874
|
-
return
|
|
12871
|
+
return _mapSearchTree(i);
|
|
12875
12872
|
}) : []
|
|
12876
12873
|
};
|
|
12877
12874
|
};
|
|
@@ -12889,8 +12886,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12889
12886
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
12890
12887
|
requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
|
|
12891
12888
|
headers: headers
|
|
12892
|
-
}).then(
|
|
12893
|
-
var _ref = _asyncToGenerator(
|
|
12889
|
+
}).then(/*#__PURE__*/function () {
|
|
12890
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
12894
12891
|
var _ctx$form;
|
|
12895
12892
|
var resData, coverData, data, dataList;
|
|
12896
12893
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -12917,7 +12914,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12917
12914
|
case 9:
|
|
12918
12915
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
12919
12916
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
12920
|
-
return
|
|
12917
|
+
return _mapSearchTree(ites);
|
|
12921
12918
|
}) || [];
|
|
12922
12919
|
case 11:
|
|
12923
12920
|
_context.next = 14;
|
|
@@ -12955,11 +12952,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12955
12952
|
return _formatResult;
|
|
12956
12953
|
}
|
|
12957
12954
|
};
|
|
12958
|
-
var
|
|
12955
|
+
var _parallelData = function parallelData(data, result) {
|
|
12959
12956
|
data.forEach(function (i) {
|
|
12960
12957
|
result.push(i);
|
|
12961
12958
|
if (i[treeChildrenRoom]) {
|
|
12962
|
-
|
|
12959
|
+
_parallelData(i[treeChildrenRoom], result);
|
|
12963
12960
|
}
|
|
12964
12961
|
});
|
|
12965
12962
|
return result;
|
|
@@ -12999,7 +12996,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12999
12996
|
var _ctx$form2;
|
|
13000
12997
|
var handleData = formatData(data);
|
|
13001
12998
|
// 获取选中树节点当条数据,并返回给调用业务
|
|
13002
|
-
var parallelTreeData =
|
|
12999
|
+
var parallelTreeData = _parallelData(treeData, []);
|
|
13003
13000
|
var currentItem = getSelectItem(parallelTreeData, data);
|
|
13004
13001
|
onChange(handleData, data, currentItem, parallelTreeData);
|
|
13005
13002
|
onChangeName && onChangeName(dataName);
|
|
@@ -13042,7 +13039,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13042
13039
|
var getShowStr = function getShowStr() {
|
|
13043
13040
|
var isMultiple = multiple || treeCheckable;
|
|
13044
13041
|
var kongValue = '无';
|
|
13045
|
-
var parallelTreeData =
|
|
13042
|
+
var parallelTreeData = _parallelData(treeData, []);
|
|
13046
13043
|
var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
|
|
13047
13044
|
if (isMultiple) {
|
|
13048
13045
|
return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
|
|
@@ -13054,7 +13051,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13054
13051
|
var isShouldShowStr = (disabled || mode === 'view' || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) === 'view') && ctx;
|
|
13055
13052
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
13056
13053
|
className: 'tree_search_select'
|
|
13057
|
-
}, isShouldShowStr ? (
|
|
13054
|
+
}, isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
13058
13055
|
title: getShowStr(),
|
|
13059
13056
|
style: {
|
|
13060
13057
|
overflow: 'hidden',
|
|
@@ -13062,7 +13059,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13062
13059
|
whiteSpace: 'nowrap'
|
|
13063
13060
|
},
|
|
13064
13061
|
className: 'search_select_show'
|
|
13065
|
-
}, getShowStr())) : (
|
|
13062
|
+
}, getShowStr())) : (/*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
13066
13063
|
treeCheckable: treeCheckable,
|
|
13067
13064
|
maxTagCount: maxTagCount,
|
|
13068
13065
|
showSearch: showSearch,
|
|
@@ -13259,7 +13256,7 @@ var index$2 = (function (props) {
|
|
|
13259
13256
|
} : {}
|
|
13260
13257
|
}, item.text)), /*#__PURE__*/React$1.createElement("div", {
|
|
13261
13258
|
className: 'status-label-operate'
|
|
13262
|
-
}, item.isDone ? (
|
|
13259
|
+
}, item.isDone ? (/*#__PURE__*/React$1.createElement("div", {
|
|
13263
13260
|
title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
|
|
13264
13261
|
}, "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--'))) : null), /*#__PURE__*/React$1.createElement("div", {
|
|
13265
13262
|
style: {
|
|
@@ -14040,7 +14037,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14040
14037
|
style: {
|
|
14041
14038
|
width: 525
|
|
14042
14039
|
}
|
|
14043
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
14040
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
14044
14041
|
checked: !dataSource.some(function (item) {
|
|
14045
14042
|
if (item.hidden) return true;
|
|
14046
14043
|
return false;
|
|
@@ -14078,13 +14075,13 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14078
14075
|
_this2.onChange(e, item.title);
|
|
14079
14076
|
}
|
|
14080
14077
|
}, item.title);
|
|
14081
|
-
}), !!seatchDataSource.length && (
|
|
14078
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
14082
14079
|
style: {
|
|
14083
14080
|
width: '144px'
|
|
14084
14081
|
}
|
|
14085
|
-
})), !seatchDataSource.length && (
|
|
14082
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
14086
14083
|
className: 'sort_table_column_all_empty'
|
|
14087
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
14084
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
14088
14085
|
className: 'sort_table_column_special'
|
|
14089
14086
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
14090
14087
|
className: 'sort_table_column_all'
|
|
@@ -14241,10 +14238,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14241
14238
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
14242
14239
|
return _objectSpread2({}, col);
|
|
14243
14240
|
});
|
|
14244
|
-
var
|
|
14241
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
14245
14242
|
var i = indexArr.shift();
|
|
14246
14243
|
if (indexArr.length > 0) {
|
|
14247
|
-
|
|
14244
|
+
_handleIndex(arr[i].children, indexArr);
|
|
14248
14245
|
} else {
|
|
14249
14246
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
14250
14247
|
width: size.width
|
|
@@ -14252,7 +14249,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14252
14249
|
handleBssulaColumnsSpecialParams(arr[i]);
|
|
14253
14250
|
}
|
|
14254
14251
|
};
|
|
14255
|
-
|
|
14252
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
14256
14253
|
_this.setState({
|
|
14257
14254
|
showColumns: _toConsumableArray(newColumns)
|
|
14258
14255
|
});
|
|
@@ -14330,13 +14327,13 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14330
14327
|
showSummary = summary;
|
|
14331
14328
|
}
|
|
14332
14329
|
}
|
|
14333
|
-
var
|
|
14330
|
+
var _handleColumns = function handleColumns(arr, indexArr) {
|
|
14334
14331
|
arr.forEach(function (item, index) {
|
|
14335
14332
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
14336
14333
|
return i || i === 0;
|
|
14337
14334
|
});
|
|
14338
14335
|
if (noEmptyArray$1(item.children)) {
|
|
14339
|
-
|
|
14336
|
+
_handleColumns(item.children, indexArrInside);
|
|
14340
14337
|
} else {
|
|
14341
14338
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
14342
14339
|
item.onHeaderCell = function (column) {
|
|
@@ -14352,7 +14349,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14352
14349
|
handleBssulaColumnsSpecialParams(item);
|
|
14353
14350
|
return _objectSpread2({}, item);
|
|
14354
14351
|
});
|
|
14355
|
-
|
|
14352
|
+
_handleColumns(showCol, []);
|
|
14356
14353
|
if (dynamicColumns.length) {
|
|
14357
14354
|
showCol = this.handledynamicColumns(showCol);
|
|
14358
14355
|
}
|
|
@@ -14486,10 +14483,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14486
14483
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
14487
14484
|
return _objectSpread2({}, col);
|
|
14488
14485
|
});
|
|
14489
|
-
var
|
|
14486
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
14490
14487
|
var i = indexArr.shift();
|
|
14491
14488
|
if (indexArr.length > 0) {
|
|
14492
|
-
|
|
14489
|
+
_handleIndex(arr[i].children, indexArr);
|
|
14493
14490
|
} else {
|
|
14494
14491
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
14495
14492
|
width: size.width
|
|
@@ -14497,7 +14494,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14497
14494
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
14498
14495
|
}
|
|
14499
14496
|
};
|
|
14500
|
-
|
|
14497
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
14501
14498
|
_this.setState({
|
|
14502
14499
|
showColumns: _toConsumableArray(newColumns)
|
|
14503
14500
|
});
|
|
@@ -14573,13 +14570,13 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14573
14570
|
showSummary = summary;
|
|
14574
14571
|
}
|
|
14575
14572
|
}
|
|
14576
|
-
var
|
|
14573
|
+
var _handleColumns = function handleColumns(arr, indexArr) {
|
|
14577
14574
|
arr.forEach(function (item, index) {
|
|
14578
14575
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
14579
14576
|
return i || i === 0;
|
|
14580
14577
|
});
|
|
14581
14578
|
if (noEmptyArray$1(item.children)) {
|
|
14582
|
-
|
|
14579
|
+
_handleColumns(item.children, indexArrInside);
|
|
14583
14580
|
} else {
|
|
14584
14581
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
14585
14582
|
item.onHeaderCell = function (column) {
|
|
@@ -14595,7 +14592,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14595
14592
|
handleAntdColumnsSpecialParams(item);
|
|
14596
14593
|
return _objectSpread2({}, item);
|
|
14597
14594
|
});
|
|
14598
|
-
|
|
14595
|
+
_handleColumns(showCol, []);
|
|
14599
14596
|
if (dynamicColumns.length) {
|
|
14600
14597
|
showCol = this.handledynamicColumns(showCol);
|
|
14601
14598
|
}
|
|
@@ -14692,20 +14689,20 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
|
|
|
14692
14689
|
};
|
|
14693
14690
|
var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
14694
14691
|
var routerMap = {};
|
|
14695
|
-
var
|
|
14692
|
+
var _flattenMenuData2 = function flattenMenuData(data, parent) {
|
|
14696
14693
|
var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
|
|
14697
14694
|
data.forEach(function (menuItem) {
|
|
14698
14695
|
var newMenuItem = _objectSpread2(_objectSpread2({}, menuItem), {}, {
|
|
14699
14696
|
nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
|
|
14700
14697
|
});
|
|
14701
14698
|
if (newMenuItem.children) {
|
|
14702
|
-
|
|
14699
|
+
_flattenMenuData2(newMenuItem.children, newMenuItem);
|
|
14703
14700
|
}
|
|
14704
14701
|
// Reduce memory usage
|
|
14705
14702
|
routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
|
|
14706
14703
|
});
|
|
14707
14704
|
};
|
|
14708
|
-
|
|
14705
|
+
_flattenMenuData2(menuData, {});
|
|
14709
14706
|
return routerMap;
|
|
14710
14707
|
};
|
|
14711
14708
|
// mode类型判断
|
|
@@ -15011,7 +15008,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15011
15008
|
display: 'flex',
|
|
15012
15009
|
gap: '8px'
|
|
15013
15010
|
}
|
|
15014
|
-
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (
|
|
15011
|
+
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (/*#__PURE__*/React$1.createElement("a", null, isFullScreen ? (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
15015
15012
|
title: "\u53D6\u6D88\u5168\u5C4F"
|
|
15016
15013
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
15017
15014
|
onClick: function onClick() {
|
|
@@ -15019,7 +15016,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15019
15016
|
},
|
|
15020
15017
|
width: 24,
|
|
15021
15018
|
src: scanning
|
|
15022
|
-
}))) : (
|
|
15019
|
+
}))) : (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
15023
15020
|
title: "\u5168\u5C4F"
|
|
15024
15021
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
15025
15022
|
onClick: function onClick() {
|
|
@@ -15027,7 +15024,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15027
15024
|
},
|
|
15028
15025
|
width: 24,
|
|
15029
15026
|
src: quanping
|
|
15030
|
-
}))))) : null)), alertProps && (
|
|
15027
|
+
}))))) : null)), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15031
15028
|
}, function (prevProps, nextProps) {
|
|
15032
15029
|
if (JSON.stringify(prevProps.actionList) != JSON.stringify(nextProps.actionList) || prevProps.title !== nextProps.title) {
|
|
15033
15030
|
return false;
|
|
@@ -15112,7 +15109,7 @@ var HeaderWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15112
15109
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
15113
15110
|
className: "".concat(index === breadcrumbArr.length - 1 ? 'bread_name_last' : '', " bread_name")
|
|
15114
15111
|
}, item));
|
|
15115
|
-
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && (
|
|
15112
|
+
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15116
15113
|
}, function (prevProps, nextProps) {
|
|
15117
15114
|
if (prevProps.title !== nextProps.title) {
|
|
15118
15115
|
return false;
|
|
@@ -15752,7 +15749,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15752
15749
|
});
|
|
15753
15750
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
15754
15751
|
className: 'sort_table_wrapper'
|
|
15755
|
-
}, visible && (
|
|
15752
|
+
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
15756
15753
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
15757
15754
|
wrapClassName: 'sort_table_wrapper',
|
|
15758
15755
|
width: 810,
|
|
@@ -15803,7 +15800,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15803
15800
|
width: 525,
|
|
15804
15801
|
height: 24
|
|
15805
15802
|
}
|
|
15806
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
15803
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
15807
15804
|
checked: !dataSource.some(function (item) {
|
|
15808
15805
|
if (item.hidden) return true;
|
|
15809
15806
|
return false;
|
|
@@ -15857,13 +15854,13 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15857
15854
|
_this2.onChange(e, item.title);
|
|
15858
15855
|
}
|
|
15859
15856
|
}, item.title);
|
|
15860
|
-
}), !!seatchDataSource.length && (
|
|
15857
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
15861
15858
|
style: {
|
|
15862
15859
|
width: '144px'
|
|
15863
15860
|
}
|
|
15864
|
-
})), !seatchDataSource.length && (
|
|
15861
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
15865
15862
|
className: 'sort_table_column_all_empty'
|
|
15866
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
15863
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
15867
15864
|
className: 'sort_table_column_special'
|
|
15868
15865
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
15869
15866
|
className: 'sort_table_column_all'
|
|
@@ -16337,7 +16334,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16337
16334
|
});
|
|
16338
16335
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
16339
16336
|
className: 'sort_table_wrapper'
|
|
16340
|
-
}, visible && (
|
|
16337
|
+
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
16341
16338
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
16342
16339
|
wrapClassName: 'sort_table_wrapper',
|
|
16343
16340
|
width: 820,
|
|
@@ -16382,7 +16379,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16382
16379
|
style: {
|
|
16383
16380
|
width: 525
|
|
16384
16381
|
}
|
|
16385
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
16382
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
16386
16383
|
checked: !dataSource.some(function (item) {
|
|
16387
16384
|
if (item.hidden) return true;
|
|
16388
16385
|
return false;
|
|
@@ -16418,11 +16415,11 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16418
16415
|
_this2.onChange(e, item.name);
|
|
16419
16416
|
}
|
|
16420
16417
|
}, item.label);
|
|
16421
|
-
}), !!newSearchSource.length && (
|
|
16418
|
+
}), !!newSearchSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
16422
16419
|
style: {
|
|
16423
16420
|
width: '144px'
|
|
16424
16421
|
}
|
|
16425
|
-
})), !newSearchSource.length && (
|
|
16422
|
+
})), !newSearchSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
16426
16423
|
className: 'sort_table_column_all_empty'
|
|
16427
16424
|
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))))), /*#__PURE__*/React$1.createElement("div", {
|
|
16428
16425
|
className: 'sort_table_content_wrapper'
|
|
@@ -16848,7 +16845,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
16848
16845
|
actionsRender = actionsRender.concat([{
|
|
16849
16846
|
type: 'text',
|
|
16850
16847
|
props: {
|
|
16851
|
-
children: (
|
|
16848
|
+
children: (/*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
16852
16849
|
request: {
|
|
16853
16850
|
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),
|
|
16854
16851
|
params: value === null || value === void 0 ? void 0 : (_value$exportConfig4 = value.exportConfig) === null || _value$exportConfig4 === void 0 ? void 0 : _value$exportConfig4.params
|
|
@@ -17094,7 +17091,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17094
17091
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
17095
17092
|
bsTableCode: bsTableCode,
|
|
17096
17093
|
onlyModal: true
|
|
17097
|
-
}), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && (
|
|
17094
|
+
}), (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, {
|
|
17098
17095
|
ref: exportTableRef,
|
|
17099
17096
|
setShowColumns: setShowExportColumns,
|
|
17100
17097
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -17187,11 +17184,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
17187
17184
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
17188
17185
|
var resultList = [];
|
|
17189
17186
|
var newRouter = cloneDeep(router);
|
|
17190
|
-
var
|
|
17187
|
+
var _deep = function deep(router) {
|
|
17191
17188
|
if (router && Array.isArray(router)) {
|
|
17192
17189
|
router.forEach(function (item) {
|
|
17193
17190
|
if (item.children && Array.isArray(item.children)) {
|
|
17194
|
-
|
|
17191
|
+
_deep(item.children);
|
|
17195
17192
|
} else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
|
|
17196
17193
|
return d === item.code;
|
|
17197
17194
|
})) {
|
|
@@ -17205,10 +17202,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
17205
17202
|
resultList.push(_objectSpread2({}, router));
|
|
17206
17203
|
}
|
|
17207
17204
|
};
|
|
17208
|
-
|
|
17205
|
+
_deep(newRouter);
|
|
17209
17206
|
callBack([].concat(resultList));
|
|
17210
17207
|
};
|
|
17211
|
-
var
|
|
17208
|
+
var _setMenuTreeData = function setMenuTreeData(routesData) {
|
|
17212
17209
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
17213
17210
|
var _loop = function _loop(i) {
|
|
17214
17211
|
if (routesData[i].hideInMenu) {
|
|
@@ -17222,7 +17219,7 @@ var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
17222
17219
|
return 0; // continue
|
|
17223
17220
|
}
|
|
17224
17221
|
if (routesData[i].children) {
|
|
17225
|
-
|
|
17222
|
+
_setMenuTreeData(routesData[i].children);
|
|
17226
17223
|
}
|
|
17227
17224
|
},
|
|
17228
17225
|
_ret;
|
|
@@ -17243,16 +17240,16 @@ var setLoginOutPath = function setLoginOutPath() {
|
|
|
17243
17240
|
};
|
|
17244
17241
|
var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
|
|
17245
17242
|
var routerMap = {};
|
|
17246
|
-
var
|
|
17243
|
+
var _flattenMenuData = function flattenMenuData(data) {
|
|
17247
17244
|
data.forEach(function (menuItem) {
|
|
17248
17245
|
if (menuItem.children) {
|
|
17249
|
-
|
|
17246
|
+
_flattenMenuData(menuItem.children);
|
|
17250
17247
|
}
|
|
17251
17248
|
// Reduce memory usage
|
|
17252
17249
|
routerMap[menuItem.path] = menuItem;
|
|
17253
17250
|
});
|
|
17254
17251
|
};
|
|
17255
|
-
|
|
17252
|
+
_flattenMenuData(menuData);
|
|
17256
17253
|
return routerMap;
|
|
17257
17254
|
};
|
|
17258
17255
|
var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
|
|
@@ -17398,7 +17395,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17398
17395
|
sethomepageData(homepageDataList);
|
|
17399
17396
|
setroutesData(routesDataList);
|
|
17400
17397
|
}, []);
|
|
17401
|
-
var
|
|
17398
|
+
var _renderChildItem = function renderChildItem(child) {
|
|
17402
17399
|
if (!child.hideInMenu && child.children) {
|
|
17403
17400
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
17404
17401
|
style: {
|
|
@@ -17408,7 +17405,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17408
17405
|
}, formatMessage({
|
|
17409
17406
|
id: "".concat(child.locale)
|
|
17410
17407
|
})), child.children.map(function (menuItem) {
|
|
17411
|
-
return
|
|
17408
|
+
return _renderChildItem(menuItem);
|
|
17412
17409
|
}));
|
|
17413
17410
|
} else if (!child.hideInMenu && child.path) {
|
|
17414
17411
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -17443,7 +17440,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17443
17440
|
className: 'drawerWarp'
|
|
17444
17441
|
}, homepageData && homepageData.filter(function (d) {
|
|
17445
17442
|
return !d.hideInMenu;
|
|
17446
|
-
}).length > 0 && (
|
|
17443
|
+
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
17447
17444
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
17448
17445
|
dataSource: homepageData,
|
|
17449
17446
|
renderItem: function renderItem(child) {
|
|
@@ -17478,7 +17475,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17478
17475
|
bordered: true,
|
|
17479
17476
|
dataSource: item.children,
|
|
17480
17477
|
renderItem: function renderItem(child) {
|
|
17481
|
-
return
|
|
17478
|
+
return _renderChildItem(child);
|
|
17482
17479
|
}
|
|
17483
17480
|
});
|
|
17484
17481
|
})));
|
|
@@ -17538,7 +17535,7 @@ var AllFunc$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
17538
17535
|
src: allfunc
|
|
17539
17536
|
})), /*#__PURE__*/React$1.createElement("span", {
|
|
17540
17537
|
className: 'btnSpan2'
|
|
17541
|
-
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (
|
|
17538
|
+
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
17542
17539
|
style: {
|
|
17543
17540
|
left: isDrawer ? 140 : 0,
|
|
17544
17541
|
top: 50
|
|
@@ -17584,7 +17581,7 @@ function outLogin(_x) {
|
|
|
17584
17581
|
return _outLogin.apply(this, arguments);
|
|
17585
17582
|
}
|
|
17586
17583
|
function _outLogin() {
|
|
17587
|
-
_outLogin = _asyncToGenerator(
|
|
17584
|
+
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
17588
17585
|
var res;
|
|
17589
17586
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17590
17587
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -17726,7 +17723,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
17726
17723
|
});
|
|
17727
17724
|
};
|
|
17728
17725
|
var loginOut = /*#__PURE__*/function () {
|
|
17729
|
-
var _ref2 = _asyncToGenerator(
|
|
17726
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
17730
17727
|
var sessionId;
|
|
17731
17728
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17732
17729
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -17830,7 +17827,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
17830
17827
|
marginRight: '0px'
|
|
17831
17828
|
},
|
|
17832
17829
|
src: './xialajiantou-new.svg'
|
|
17833
|
-
}))))), loginModalParams.visible && (
|
|
17830
|
+
}))))), loginModalParams.visible && (/*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
17834
17831
|
};
|
|
17835
17832
|
|
|
17836
17833
|
// -- 查询店铺 --
|
|
@@ -17838,7 +17835,7 @@ function getStoreByName(_x) {
|
|
|
17838
17835
|
return _getStoreByName.apply(this, arguments);
|
|
17839
17836
|
}
|
|
17840
17837
|
function _getStoreByName() {
|
|
17841
|
-
_getStoreByName = _asyncToGenerator(
|
|
17838
|
+
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
17842
17839
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17843
17840
|
while (1) switch (_context.prev = _context.next) {
|
|
17844
17841
|
case 0:
|
|
@@ -17906,7 +17903,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
17906
17903
|
return _fetchUserList.apply(this, arguments);
|
|
17907
17904
|
}
|
|
17908
17905
|
function _fetchUserList() {
|
|
17909
|
-
_fetchUserList = _asyncToGenerator(
|
|
17906
|
+
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
17910
17907
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
17911
17908
|
while (1) switch (_context3.prev = _context3.next) {
|
|
17912
17909
|
case 0:
|
|
@@ -17954,7 +17951,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
17954
17951
|
return debounce$1(loadOptions, debounceTimeout);
|
|
17955
17952
|
}, [debounceTimeout, key]);
|
|
17956
17953
|
var changeInput = /*#__PURE__*/function () {
|
|
17957
|
-
var _ref = _asyncToGenerator(
|
|
17954
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
17958
17955
|
var res;
|
|
17959
17956
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17960
17957
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -17976,7 +17973,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
17976
17973
|
};
|
|
17977
17974
|
}();
|
|
17978
17975
|
useEffect(function () {
|
|
17979
|
-
_asyncToGenerator(
|
|
17976
|
+
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
17980
17977
|
var res;
|
|
17981
17978
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
17982
17979
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -18141,7 +18138,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18141
18138
|
var resultList = [];
|
|
18142
18139
|
var newRouter = cloneDeep$1(router);
|
|
18143
18140
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
18144
|
-
var
|
|
18141
|
+
var _deep = function deep(router) {
|
|
18145
18142
|
if (router && Array.isArray(router)) {
|
|
18146
18143
|
router.forEach(function (item) {
|
|
18147
18144
|
if (item.routes && Array.isArray(item.routes)) {
|
|
@@ -18151,7 +18148,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18151
18148
|
d.nameEdit = true;
|
|
18152
18149
|
}
|
|
18153
18150
|
});
|
|
18154
|
-
|
|
18151
|
+
_deep(item.routes);
|
|
18155
18152
|
} else if (!item.hideInMenu && (name ? formatMessage({
|
|
18156
18153
|
id: "menu.".concat(item.name)
|
|
18157
18154
|
}).indexOf(name) !== -1 : true)) {
|
|
@@ -18170,7 +18167,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18170
18167
|
}));
|
|
18171
18168
|
}
|
|
18172
18169
|
};
|
|
18173
|
-
|
|
18170
|
+
_deep(newRouter);
|
|
18174
18171
|
setroutesData([].concat(resultList));
|
|
18175
18172
|
};
|
|
18176
18173
|
var renderLineStyl = function renderLineStyl(name) {
|
|
@@ -18252,7 +18249,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18252
18249
|
},
|
|
18253
18250
|
title: item.fullPathName
|
|
18254
18251
|
}, renderLineStyl(item.fullPathName));
|
|
18255
|
-
}))))), showSelectStore && (
|
|
18252
|
+
}))))), showSelectStore && (/*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
18256
18253
|
employeeCode: employeeCode
|
|
18257
18254
|
})), /*#__PURE__*/React$1.createElement(GlobalHeaderRight, null));
|
|
18258
18255
|
};
|
|
@@ -18267,7 +18264,7 @@ var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
18267
18264
|
var TreeNode = Tree.TreeNode;
|
|
18268
18265
|
var Search$2 = Input.Search;
|
|
18269
18266
|
var dataList = [];
|
|
18270
|
-
var
|
|
18267
|
+
var _generateList = function generateList(data) {
|
|
18271
18268
|
for (var i = 0; i < data.length; i++) {
|
|
18272
18269
|
var node = data[i];
|
|
18273
18270
|
var path = node.path,
|
|
@@ -18277,11 +18274,11 @@ var generateList = function generateList(data) {
|
|
|
18277
18274
|
name: name
|
|
18278
18275
|
});
|
|
18279
18276
|
if (node.children) {
|
|
18280
|
-
|
|
18277
|
+
_generateList(node.children);
|
|
18281
18278
|
}
|
|
18282
18279
|
}
|
|
18283
18280
|
};
|
|
18284
|
-
var
|
|
18281
|
+
var _getParentKey = function getParentKey(path, tree) {
|
|
18285
18282
|
var parentKey;
|
|
18286
18283
|
for (var i = 0; i < tree.length; i++) {
|
|
18287
18284
|
var node = tree[i];
|
|
@@ -18290,8 +18287,8 @@ var getParentKey = function getParentKey(path, tree) {
|
|
|
18290
18287
|
return item.path === path;
|
|
18291
18288
|
})) {
|
|
18292
18289
|
parentKey = node.path;
|
|
18293
|
-
} else if (
|
|
18294
|
-
parentKey =
|
|
18290
|
+
} else if (_getParentKey(path, node.children)) {
|
|
18291
|
+
parentKey = _getParentKey(path, node.children);
|
|
18295
18292
|
}
|
|
18296
18293
|
}
|
|
18297
18294
|
}
|
|
@@ -18322,7 +18319,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18322
18319
|
var treeData = _this.state.treeData;
|
|
18323
18320
|
var expandedKeys = dataList.map(function (item) {
|
|
18324
18321
|
if (item.name.indexOf(value) > -1) {
|
|
18325
|
-
return
|
|
18322
|
+
return _getParentKey(item.path, treeData);
|
|
18326
18323
|
}
|
|
18327
18324
|
return null;
|
|
18328
18325
|
}).filter(function (item, i, self) {
|
|
@@ -18336,22 +18333,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18336
18333
|
};
|
|
18337
18334
|
_this.getPathList = function (originData) {
|
|
18338
18335
|
var pathList = [];
|
|
18339
|
-
var
|
|
18336
|
+
var _getList = function getList(data) {
|
|
18340
18337
|
if (Array.isArray(data)) {
|
|
18341
18338
|
data.forEach(function (item) {
|
|
18342
18339
|
pathList.push(item.path);
|
|
18343
18340
|
if (item.children) {
|
|
18344
|
-
|
|
18341
|
+
_getList(item.children);
|
|
18345
18342
|
}
|
|
18346
18343
|
});
|
|
18347
18344
|
} else {
|
|
18348
18345
|
pathList.push(data.path);
|
|
18349
18346
|
if (data.children) {
|
|
18350
|
-
|
|
18347
|
+
_getList(data.children);
|
|
18351
18348
|
}
|
|
18352
18349
|
}
|
|
18353
18350
|
};
|
|
18354
|
-
|
|
18351
|
+
_getList(originData);
|
|
18355
18352
|
return pathList;
|
|
18356
18353
|
};
|
|
18357
18354
|
_this.handleAdd2Menu = function (path) {
|
|
@@ -18360,18 +18357,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18360
18357
|
customerMenuData = _this$props.customerMenuData,
|
|
18361
18358
|
setCustomerMenuData = _this$props.setCustomerMenuData;
|
|
18362
18359
|
var filterItem;
|
|
18363
|
-
var
|
|
18360
|
+
var _filterMenuItem = function filterMenuItem(menuData) {
|
|
18364
18361
|
menuData.forEach(function (item) {
|
|
18365
18362
|
if (item.path === path) {
|
|
18366
18363
|
filterItem = _objectSpread2({}, item);
|
|
18367
18364
|
return;
|
|
18368
18365
|
}
|
|
18369
18366
|
if (item.children) {
|
|
18370
|
-
|
|
18367
|
+
_filterMenuItem(item.children);
|
|
18371
18368
|
}
|
|
18372
18369
|
});
|
|
18373
18370
|
};
|
|
18374
|
-
|
|
18371
|
+
_filterMenuItem(treeData);
|
|
18375
18372
|
var addPathList = _this.getPathList(filterItem);
|
|
18376
18373
|
var oldPathList = _this.getPathList(customerMenuData);
|
|
18377
18374
|
var isRepet = false;
|
|
@@ -18401,8 +18398,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18401
18398
|
return item.path === '/';
|
|
18402
18399
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
18403
18400
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
18404
|
-
|
|
18405
|
-
|
|
18401
|
+
_setMenuTreeData(routesData);
|
|
18402
|
+
_generateList(routesData);
|
|
18406
18403
|
this.setState({
|
|
18407
18404
|
treeData: routesData
|
|
18408
18405
|
});
|
|
@@ -18416,16 +18413,16 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18416
18413
|
expandedKeys = _this$state.expandedKeys,
|
|
18417
18414
|
autoExpandParent = _this$state.autoExpandParent,
|
|
18418
18415
|
treeData = _this$state.treeData;
|
|
18419
|
-
var
|
|
18416
|
+
var _loop = function loop(data) {
|
|
18420
18417
|
return data.map(function (item) {
|
|
18421
18418
|
var index = item.name.indexOf(searchValue);
|
|
18422
18419
|
var beforeStr = item.name.substr(0, index);
|
|
18423
18420
|
var afterStr = item.name.substr(index + searchValue.length);
|
|
18424
|
-
var name = index > -1 ? (
|
|
18421
|
+
var name = index > -1 ? (/*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
18425
18422
|
style: {
|
|
18426
18423
|
color: '#f50'
|
|
18427
18424
|
}
|
|
18428
|
-
}, searchValue), afterStr)) : (
|
|
18425
|
+
}, searchValue), afterStr)) : (/*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
18429
18426
|
if (item.children && item.children.length) {
|
|
18430
18427
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
18431
18428
|
path: item.path,
|
|
@@ -18447,7 +18444,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18447
18444
|
width: 18,
|
|
18448
18445
|
src: arrowRight
|
|
18449
18446
|
}))))
|
|
18450
|
-
},
|
|
18447
|
+
}, _loop(item.children));
|
|
18451
18448
|
}
|
|
18452
18449
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
18453
18450
|
path: item.path,
|
|
@@ -18497,7 +18494,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18497
18494
|
onExpand: this.onExpand,
|
|
18498
18495
|
expandedKeys: expandedKeys,
|
|
18499
18496
|
autoExpandParent: autoExpandParent
|
|
18500
|
-
},
|
|
18497
|
+
}, _loop(treeData))));
|
|
18501
18498
|
}
|
|
18502
18499
|
}]);
|
|
18503
18500
|
}(React$1.Component);
|
|
@@ -18530,24 +18527,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18530
18527
|
var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
|
|
18531
18528
|
var dragObj;
|
|
18532
18529
|
var finalDropItem;
|
|
18533
|
-
var
|
|
18530
|
+
var _loop = function loop(data, path, callback) {
|
|
18534
18531
|
for (var i = 0; i < data.length; i++) {
|
|
18535
18532
|
if (data[i].path === path) {
|
|
18536
18533
|
return callback(data[i], i, data);
|
|
18537
18534
|
}
|
|
18538
18535
|
if (data[i].children) {
|
|
18539
|
-
|
|
18536
|
+
_loop(data[i].children, path, callback);
|
|
18540
18537
|
}
|
|
18541
18538
|
}
|
|
18542
18539
|
};
|
|
18543
18540
|
var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
|
|
18544
|
-
|
|
18541
|
+
_loop(data, dragKey, function (item, index, arr) {
|
|
18545
18542
|
arr.splice(index, 1);
|
|
18546
18543
|
dragObj = item;
|
|
18547
18544
|
});
|
|
18548
18545
|
if (!info.dropToGap) {
|
|
18549
18546
|
// Drop on the content
|
|
18550
|
-
|
|
18547
|
+
_loop(data, dropKey, function (item) {
|
|
18551
18548
|
item.children = item.children || [];
|
|
18552
18549
|
item.children.unshift(dragObj);
|
|
18553
18550
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -18558,7 +18555,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18558
18555
|
// Is expanded
|
|
18559
18556
|
dropPosition === 1 // On the bottom gap
|
|
18560
18557
|
) {
|
|
18561
|
-
|
|
18558
|
+
_loop(data, dropKey, function (item) {
|
|
18562
18559
|
item.children = item.children || [];
|
|
18563
18560
|
item.children.unshift(dragObj);
|
|
18564
18561
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -18566,7 +18563,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18566
18563
|
} else {
|
|
18567
18564
|
var ar;
|
|
18568
18565
|
var i;
|
|
18569
|
-
|
|
18566
|
+
_loop(data, dropKey, function (item, index, arr) {
|
|
18570
18567
|
ar = arr;
|
|
18571
18568
|
i = index;
|
|
18572
18569
|
});
|
|
@@ -18605,17 +18602,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18605
18602
|
title: '编辑名称',
|
|
18606
18603
|
callBack: function callBack(newName) {
|
|
18607
18604
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
18608
|
-
var
|
|
18605
|
+
var _editTreeDataName = function editTreeDataName(oldTreeData) {
|
|
18609
18606
|
oldTreeData.forEach(function (treeItem) {
|
|
18610
18607
|
if (treeItem.path === item.path) {
|
|
18611
18608
|
treeItem.name = newName;
|
|
18612
18609
|
}
|
|
18613
18610
|
if (treeItem.children) {
|
|
18614
|
-
|
|
18611
|
+
_editTreeDataName(treeItem.children);
|
|
18615
18612
|
}
|
|
18616
18613
|
});
|
|
18617
18614
|
};
|
|
18618
|
-
|
|
18615
|
+
_editTreeDataName(oldTreeData);
|
|
18619
18616
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
18620
18617
|
_this.setState({
|
|
18621
18618
|
modalInfo: {
|
|
@@ -18660,7 +18657,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18660
18657
|
title: '新增子目录',
|
|
18661
18658
|
callBack: function callBack(newName) {
|
|
18662
18659
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
18663
|
-
var
|
|
18660
|
+
var _addChildFolder = function addChildFolder(oldTreeData) {
|
|
18664
18661
|
oldTreeData.forEach(function (treeItem) {
|
|
18665
18662
|
if (treeItem.path === item.path) {
|
|
18666
18663
|
treeItem.children ? treeItem.children.push({
|
|
@@ -18672,11 +18669,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18672
18669
|
}];
|
|
18673
18670
|
}
|
|
18674
18671
|
if (treeItem.children) {
|
|
18675
|
-
|
|
18672
|
+
_addChildFolder(treeItem.children);
|
|
18676
18673
|
}
|
|
18677
18674
|
});
|
|
18678
18675
|
};
|
|
18679
|
-
|
|
18676
|
+
_addChildFolder(oldTreeData);
|
|
18680
18677
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
18681
18678
|
_this.setState({
|
|
18682
18679
|
modalInfo: {
|
|
@@ -18735,7 +18732,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18735
18732
|
var _this$state = this.state,
|
|
18736
18733
|
modalInfo = _this$state.modalInfo,
|
|
18737
18734
|
checkedKeys = _this$state.checkedKeys;
|
|
18738
|
-
var
|
|
18735
|
+
var _loop2 = function loop(data) {
|
|
18739
18736
|
return data.map(function (item) {
|
|
18740
18737
|
if (item.children && item.children.length) {
|
|
18741
18738
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
@@ -18752,7 +18749,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18752
18749
|
e.stopPropagation();
|
|
18753
18750
|
}
|
|
18754
18751
|
}, /*#__PURE__*/React$1.createElement(Space, null, /*#__PURE__*/React$1.createElement(EllipsisOutlined, null))))))
|
|
18755
|
-
},
|
|
18752
|
+
}, _loop2(item.children));
|
|
18756
18753
|
}
|
|
18757
18754
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
18758
18755
|
path: item.path,
|
|
@@ -18831,7 +18828,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18831
18828
|
children: 'children'
|
|
18832
18829
|
},
|
|
18833
18830
|
onDrop: this.onDrop
|
|
18834
|
-
},
|
|
18831
|
+
}, _loop2(this.props.customerMenuData))), /*#__PURE__*/React$1.createElement(Modal, {
|
|
18835
18832
|
width: 600,
|
|
18836
18833
|
bodyStyle: {
|
|
18837
18834
|
paddingTop: '32px',
|
|
@@ -18944,7 +18941,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18944
18941
|
pathname: item.path
|
|
18945
18942
|
});
|
|
18946
18943
|
};
|
|
18947
|
-
var
|
|
18944
|
+
var _getMenuDom = function getMenuDom(menuData) {
|
|
18948
18945
|
return menuData.map(function (item) {
|
|
18949
18946
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
18950
18947
|
style: {
|
|
@@ -18959,7 +18956,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18959
18956
|
fontWeight: item.children || !item.component ? 'bolder' : '400',
|
|
18960
18957
|
paddingLeft: '4px'
|
|
18961
18958
|
}
|
|
18962
|
-
}, item.name), !!item.children && !!item.children.length &&
|
|
18959
|
+
}, item.name), !!item.children && !!item.children.length && _getMenuDom(item.children));
|
|
18963
18960
|
});
|
|
18964
18961
|
};
|
|
18965
18962
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -18985,7 +18982,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18985
18982
|
style: {
|
|
18986
18983
|
paddingLeft: '5px'
|
|
18987
18984
|
}
|
|
18988
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (
|
|
18985
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
18989
18986
|
style: {
|
|
18990
18987
|
left: isDrawer ? 140 : 0
|
|
18991
18988
|
},
|
|
@@ -19006,7 +19003,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19006
19003
|
visible: isDrawer
|
|
19007
19004
|
}, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("p", {
|
|
19008
19005
|
className: 'menu_title_line'
|
|
19009
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"),
|
|
19006
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"), _getMenuDom(menuData)))), /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
19010
19007
|
title: /*#__PURE__*/React$1.createElement("span", {
|
|
19011
19008
|
style: {
|
|
19012
19009
|
fontWeight: '600',
|
|
@@ -19080,7 +19077,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19080
19077
|
return item.path === '/';
|
|
19081
19078
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
19082
19079
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
19083
|
-
|
|
19080
|
+
_setMenuTreeData(routesData);
|
|
19084
19081
|
routesData.forEach(function (item) {
|
|
19085
19082
|
if (item.children) {
|
|
19086
19083
|
routesDataList.push(item);
|
|
@@ -19110,7 +19107,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19110
19107
|
setHeight(clientHeight - 190);
|
|
19111
19108
|
setDrawHeight(clientHeight - 70);
|
|
19112
19109
|
};
|
|
19113
|
-
var
|
|
19110
|
+
var _renderChildItem = function renderChildItem(child) {
|
|
19114
19111
|
if (!child.hideInMenu && child.children) {
|
|
19115
19112
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
19116
19113
|
style: {
|
|
@@ -19120,7 +19117,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19120
19117
|
}, formatMessage({
|
|
19121
19118
|
id: "".concat(child.locale)
|
|
19122
19119
|
})), child.children.map(function (menuItem) {
|
|
19123
|
-
return
|
|
19120
|
+
return _renderChildItem(menuItem);
|
|
19124
19121
|
}));
|
|
19125
19122
|
} else if (!child.hideInMenu && child.path) {
|
|
19126
19123
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -19262,7 +19259,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19262
19259
|
onMenuClick(e, item);
|
|
19263
19260
|
}
|
|
19264
19261
|
}, item.name);
|
|
19265
|
-
}))), !!SearhData.length ? (
|
|
19262
|
+
}))), !!SearhData.length ? (/*#__PURE__*/React$1.createElement("div", {
|
|
19266
19263
|
className: 'search_menu_content'
|
|
19267
19264
|
}, SearhData.map(function (item) {
|
|
19268
19265
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -19271,7 +19268,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19271
19268
|
},
|
|
19272
19269
|
key: item.path
|
|
19273
19270
|
}, item.name);
|
|
19274
|
-
}))) : (
|
|
19271
|
+
}))) : (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
19275
19272
|
style: {
|
|
19276
19273
|
height: "".concat(rightMenuHeight, "px"),
|
|
19277
19274
|
overflowY: 'scroll',
|
|
@@ -19283,7 +19280,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19283
19280
|
className: 'drawerWarp_right'
|
|
19284
19281
|
}, homepageData && homepageData.filter(function (d) {
|
|
19285
19282
|
return !d.hideInMenu;
|
|
19286
|
-
}).length > 0 && (
|
|
19283
|
+
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
19287
19284
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
19288
19285
|
dataSource: homepageData,
|
|
19289
19286
|
renderItem: function renderItem(child) {
|
|
@@ -19324,7 +19321,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19324
19321
|
bordered: true,
|
|
19325
19322
|
dataSource: item.children,
|
|
19326
19323
|
renderItem: function renderItem(child) {
|
|
19327
|
-
return
|
|
19324
|
+
return _renderChildItem(child);
|
|
19328
19325
|
}
|
|
19329
19326
|
});
|
|
19330
19327
|
})), /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -19482,10 +19479,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
19482
19479
|
var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
|
|
19483
19480
|
var menuKeys = [];
|
|
19484
19481
|
var docsId = [];
|
|
19485
|
-
var
|
|
19482
|
+
var _getLimitedMenuKeys = function getLimitedMenuKeys(data) {
|
|
19486
19483
|
data.forEach(function (item) {
|
|
19487
19484
|
if (item.children && item.children.length > 0) {
|
|
19488
|
-
|
|
19485
|
+
_getLimitedMenuKeys(item.children);
|
|
19489
19486
|
} else {
|
|
19490
19487
|
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
19491
19488
|
menuKeys.push(originPath);
|
|
@@ -19496,7 +19493,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
19496
19493
|
});
|
|
19497
19494
|
};
|
|
19498
19495
|
try {
|
|
19499
|
-
|
|
19496
|
+
_getLimitedMenuKeys(limitedMenuData);
|
|
19500
19497
|
} catch (e) {}
|
|
19501
19498
|
return {
|
|
19502
19499
|
menuKeys: menuKeys,
|
|
@@ -19730,10 +19727,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
19730
19727
|
return (node.path || '').includes('all-general-documents');
|
|
19731
19728
|
};
|
|
19732
19729
|
// 递归获取树列表
|
|
19733
|
-
var
|
|
19730
|
+
var _getTreeList = function getTreeList(data) {
|
|
19734
19731
|
data.forEach(function (node) {
|
|
19735
19732
|
if (node.routes && node.routes.length > 0) {
|
|
19736
|
-
|
|
19733
|
+
_getTreeList(node.routes);
|
|
19737
19734
|
return;
|
|
19738
19735
|
}
|
|
19739
19736
|
// todo:暂时处理非wujie环境不做404管控
|
|
@@ -19764,7 +19761,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
19764
19761
|
}
|
|
19765
19762
|
});
|
|
19766
19763
|
};
|
|
19767
|
-
|
|
19764
|
+
_getTreeList(treeData);
|
|
19768
19765
|
return treeList;
|
|
19769
19766
|
};
|
|
19770
19767
|
_this.getDictionarySource = function (dicCode) {
|
|
@@ -20393,7 +20390,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20393
20390
|
updateState = _ref8.updateState;
|
|
20394
20391
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
20395
20392
|
className: "tab_title_content"
|
|
20396
|
-
}, item.tab, item.key !== '/' && (
|
|
20393
|
+
}, item.tab, item.key !== '/' && (/*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
20397
20394
|
info: item,
|
|
20398
20395
|
operateFun: _this3.operateFun,
|
|
20399
20396
|
listenRouterState: listenRouterState
|
|
@@ -20529,7 +20526,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20529
20526
|
};
|
|
20530
20527
|
}
|
|
20531
20528
|
var OperationsSlot = {
|
|
20532
|
-
left: (
|
|
20529
|
+
left: (/*#__PURE__*/React$1.createElement("div", {
|
|
20533
20530
|
className: 'tab_left_operate'
|
|
20534
20531
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
20535
20532
|
onClick: function onClick() {
|
|
@@ -20545,7 +20542,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20545
20542
|
_this3.setTabNavTransLate(-100);
|
|
20546
20543
|
}
|
|
20547
20544
|
}, /*#__PURE__*/React$1.createElement(DoubleLeftOutlined, null)))),
|
|
20548
|
-
right: (
|
|
20545
|
+
right: (/*#__PURE__*/React$1.createElement("div", {
|
|
20549
20546
|
style: {
|
|
20550
20547
|
opacity: this.state.isSlider ? 1 : 0.5
|
|
20551
20548
|
},
|
|
@@ -20643,7 +20640,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20643
20640
|
onMouseLeave: function onMouseLeave() {
|
|
20644
20641
|
_this3.setShowMenu(false);
|
|
20645
20642
|
}
|
|
20646
|
-
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (
|
|
20643
|
+
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (/*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
20647
20644
|
style: {
|
|
20648
20645
|
position: 'absolute',
|
|
20649
20646
|
top: '14px',
|
|
@@ -20662,7 +20659,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20662
20659
|
postMenuData: function postMenuData(menus) {
|
|
20663
20660
|
return _toConsumableArray(filterByMenuDate(menus || [], _this3.state.keyWord));
|
|
20664
20661
|
},
|
|
20665
|
-
links: [!this.state.collapse ? (
|
|
20662
|
+
links: [!this.state.collapse ? (/*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
20666
20663
|
ref: this.allFunc,
|
|
20667
20664
|
itemPath: itemPath,
|
|
20668
20665
|
handleClose: this.handleClose,
|
|
@@ -20680,7 +20677,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20680
20677
|
},
|
|
20681
20678
|
menu: {
|
|
20682
20679
|
request: function () {
|
|
20683
|
-
var _request = _asyncToGenerator(
|
|
20680
|
+
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
20684
20681
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
20685
20682
|
while (1) switch (_context.prev = _context.next) {
|
|
20686
20683
|
case 0:
|
|
@@ -20815,7 +20812,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
20815
20812
|
getDictionaryTextByValue = _this$props4.getDictionaryTextByValue,
|
|
20816
20813
|
timeFormat = _this$props4.timeFormat,
|
|
20817
20814
|
transparentProps = _this$props4.transparentProps;
|
|
20818
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, item.isNotFound ? (
|
|
20815
|
+
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({
|
|
20819
20816
|
getDictionarySource: getDictionarySource,
|
|
20820
20817
|
getDictionaryTextByValue: getDictionaryTextByValue,
|
|
20821
20818
|
timeFormat: timeFormat
|
|
@@ -20839,12 +20836,12 @@ var index$5 = (function (props) {
|
|
|
20839
20836
|
});
|
|
20840
20837
|
|
|
20841
20838
|
// @ts-nocheck
|
|
20842
|
-
var
|
|
20839
|
+
var _getAllColumns = function getAllColumns(columns) {
|
|
20843
20840
|
var result = [];
|
|
20844
20841
|
columns.forEach(function (column) {
|
|
20845
20842
|
if (column.children) {
|
|
20846
20843
|
result.push(column);
|
|
20847
|
-
result.push.apply(result,
|
|
20844
|
+
result.push.apply(result, _getAllColumns(column.children));
|
|
20848
20845
|
} else {
|
|
20849
20846
|
result.push(column);
|
|
20850
20847
|
}
|
|
@@ -20853,7 +20850,7 @@ var getAllColumns = function getAllColumns(columns) {
|
|
|
20853
20850
|
};
|
|
20854
20851
|
var convertToRows = function convertToRows(originColumns) {
|
|
20855
20852
|
var maxLevel = 1;
|
|
20856
|
-
var
|
|
20853
|
+
var _traverse = function traverse(column, parent) {
|
|
20857
20854
|
if (parent) {
|
|
20858
20855
|
column.level = parent.level + 1;
|
|
20859
20856
|
if (maxLevel < column.level) {
|
|
@@ -20863,7 +20860,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
20863
20860
|
if (column.children) {
|
|
20864
20861
|
var colSpan = 0;
|
|
20865
20862
|
column.children.forEach(function (subColumn) {
|
|
20866
|
-
|
|
20863
|
+
_traverse(subColumn, column);
|
|
20867
20864
|
colSpan += subColumn.colSpan;
|
|
20868
20865
|
});
|
|
20869
20866
|
column.colSpan = colSpan;
|
|
@@ -20873,13 +20870,13 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
20873
20870
|
};
|
|
20874
20871
|
originColumns.forEach(function (column) {
|
|
20875
20872
|
column.level = 1;
|
|
20876
|
-
|
|
20873
|
+
_traverse(column);
|
|
20877
20874
|
});
|
|
20878
20875
|
var rows = [];
|
|
20879
20876
|
for (var i = 0; i < maxLevel; i++) {
|
|
20880
20877
|
rows.push([]);
|
|
20881
20878
|
}
|
|
20882
|
-
var allColumns =
|
|
20879
|
+
var allColumns = _getAllColumns(originColumns);
|
|
20883
20880
|
allColumns.forEach(function (column) {
|
|
20884
20881
|
if (!column.children) {
|
|
20885
20882
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -20919,7 +20916,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
20919
20916
|
};
|
|
20920
20917
|
var headersToRows = function headersToRows(originColumns) {
|
|
20921
20918
|
var maxLevel = 1;
|
|
20922
|
-
var
|
|
20919
|
+
var _traverse2 = function traverse(column, parent) {
|
|
20923
20920
|
if (parent) {
|
|
20924
20921
|
//计算当前元素属于第几个层级
|
|
20925
20922
|
column.level = parent.level + 1;
|
|
@@ -20932,7 +20929,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
20932
20929
|
var colSpan = 0;
|
|
20933
20930
|
column.children.forEach(function (subColumn) {
|
|
20934
20931
|
//进行递归
|
|
20935
|
-
|
|
20932
|
+
_traverse2(subColumn, column);
|
|
20936
20933
|
colSpan += subColumn.colSpan;
|
|
20937
20934
|
});
|
|
20938
20935
|
column.colSpan = colSpan;
|
|
@@ -20942,14 +20939,14 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
20942
20939
|
};
|
|
20943
20940
|
originColumns.forEach(function (column) {
|
|
20944
20941
|
column.level = 1;
|
|
20945
|
-
|
|
20942
|
+
_traverse2(column);
|
|
20946
20943
|
});
|
|
20947
20944
|
var rows = [];
|
|
20948
20945
|
var lastData = [];
|
|
20949
20946
|
for (var i = 0; i < maxLevel; i++) {
|
|
20950
20947
|
rows.push([]);
|
|
20951
20948
|
}
|
|
20952
|
-
var allColumns =
|
|
20949
|
+
var allColumns = _getAllColumns(originColumns);
|
|
20953
20950
|
allColumns.forEach(function (column) {
|
|
20954
20951
|
if (!column.children) {
|
|
20955
20952
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -26966,7 +26963,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
|
|
|
26966
26963
|
}
|
|
26967
26964
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
26968
26965
|
};
|
|
26969
|
-
var
|
|
26966
|
+
var _hasHighLightChildren = function hasHighLightChildren() {
|
|
26970
26967
|
var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
26971
26968
|
var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
|
|
26972
26969
|
var children = hightLightData.children,
|
|
@@ -26977,7 +26974,7 @@ var hasHighLightChildren = function hasHighLightChildren() {
|
|
|
26977
26974
|
lineEnd = _loc2[2];
|
|
26978
26975
|
if (children) {
|
|
26979
26976
|
return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
|
|
26980
|
-
return
|
|
26977
|
+
return _hasHighLightChildren(v, highLightLine);
|
|
26981
26978
|
});
|
|
26982
26979
|
}
|
|
26983
26980
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
@@ -26989,7 +26986,7 @@ function createHighLightTreeData(treeData, highLightLine) {
|
|
|
26989
26986
|
var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
|
|
26990
26987
|
data.forEach(function (node) {
|
|
26991
26988
|
if (!node) return;
|
|
26992
|
-
node.toggled =
|
|
26989
|
+
node.toggled = _hasHighLightChildren(node, highLightLine);
|
|
26993
26990
|
node.active = isHightLight(node, highLightLine);
|
|
26994
26991
|
if (node.children) {
|
|
26995
26992
|
if (node.active) {
|
|
@@ -28420,7 +28417,7 @@ var valueType = {
|
|
|
28420
28417
|
};
|
|
28421
28418
|
|
|
28422
28419
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
28423
|
-
var _ref = _asyncToGenerator(
|
|
28420
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
28424
28421
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
28425
28422
|
while (1) switch (_context.prev = _context.next) {
|
|
28426
28423
|
case 0:
|
|
@@ -28488,7 +28485,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
28488
28485
|
value: false
|
|
28489
28486
|
}];
|
|
28490
28487
|
var ref = useRef();
|
|
28491
|
-
useMount(
|
|
28488
|
+
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
28492
28489
|
var _ref$current, source;
|
|
28493
28490
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
28494
28491
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -28602,7 +28599,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
28602
28599
|
source: {
|
|
28603
28600
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
28604
28601
|
type: function () {
|
|
28605
|
-
var _type = _asyncToGenerator(
|
|
28602
|
+
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
28606
28603
|
var form, values, name, relates, source;
|
|
28607
28604
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
28608
28605
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -29082,7 +29079,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29082
29079
|
source: {
|
|
29083
29080
|
relates: ['choiceType', 'inputType'],
|
|
29084
29081
|
type: function () {
|
|
29085
|
-
var _type2 = _asyncToGenerator(
|
|
29082
|
+
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
29086
29083
|
var values, name, form, source;
|
|
29087
29084
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
29088
29085
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -29304,7 +29301,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29304
29301
|
width: 900,
|
|
29305
29302
|
maskClosable: false,
|
|
29306
29303
|
onOk: function () {
|
|
29307
|
-
var _onOk = _asyncToGenerator(
|
|
29304
|
+
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
29308
29305
|
var _ref$current4, _res$editableStatus;
|
|
29309
29306
|
var res, _res$defaultValue;
|
|
29310
29307
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -29376,7 +29373,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29376
29373
|
}()
|
|
29377
29374
|
}), /*#__PURE__*/React$1.createElement(Form$1, _objectSpread2(_objectSpread2({}, formConfig), {}, {
|
|
29378
29375
|
ref: ref
|
|
29379
|
-
})), maintainOptionsModal.visible && (
|
|
29376
|
+
})), maintainOptionsModal.visible && (/*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
29380
29377
|
};
|
|
29381
29378
|
|
|
29382
29379
|
// @ts-nocheck
|
|
@@ -29990,7 +29987,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
29990
29987
|
return setVisible(false);
|
|
29991
29988
|
},
|
|
29992
29989
|
className: 'customFieldsDrawer'
|
|
29993
|
-
}, detailTablesSetting.length == 0 && (
|
|
29990
|
+
}, detailTablesSetting.length == 0 && (/*#__PURE__*/React$1.createElement("div", {
|
|
29994
29991
|
style: {
|
|
29995
29992
|
display: 'flex'
|
|
29996
29993
|
}
|
|
@@ -29999,13 +29996,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
29999
29996
|
flex: 1,
|
|
30000
29997
|
width: 500
|
|
30001
29998
|
}
|
|
30002
|
-
}, isEmpty(moduleParams) ? (
|
|
29999
|
+
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
30003
30000
|
style: {
|
|
30004
30001
|
padding: "10px 0",
|
|
30005
30002
|
fontSize: "16px",
|
|
30006
30003
|
fontWeight: "bolder"
|
|
30007
30004
|
}
|
|
30008
|
-
}, "\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")) : (
|
|
30005
|
+
}, "\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", {
|
|
30009
30006
|
style: {
|
|
30010
30007
|
flex: 1
|
|
30011
30008
|
}
|
|
@@ -30014,7 +30011,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30014
30011
|
onRun: onClickRun,
|
|
30015
30012
|
value: jsonEditorVal,
|
|
30016
30013
|
shallowHeight: height
|
|
30017
|
-
})))), detailTablesSetting.length > 0 && (
|
|
30014
|
+
})))), detailTablesSetting.length > 0 && (/*#__PURE__*/React$1.createElement(Tabs, {
|
|
30018
30015
|
defaultActiveKey: activeKey,
|
|
30019
30016
|
onChange: function onChange(v) {
|
|
30020
30017
|
return setActiveKey(v);
|
|
@@ -30031,13 +30028,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30031
30028
|
flex: 1,
|
|
30032
30029
|
width: 500
|
|
30033
30030
|
}
|
|
30034
|
-
}, isEmpty(moduleParams) ? (
|
|
30031
|
+
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
30035
30032
|
style: {
|
|
30036
30033
|
padding: "10px 0",
|
|
30037
30034
|
fontSize: "16px",
|
|
30038
30035
|
fontWeight: "bolder"
|
|
30039
30036
|
}
|
|
30040
|
-
}, "\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")) : (
|
|
30037
|
+
}, "\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", {
|
|
30041
30038
|
style: {
|
|
30042
30039
|
flex: 1
|
|
30043
30040
|
}
|
|
@@ -30059,13 +30056,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30059
30056
|
flex: 1,
|
|
30060
30057
|
width: 500
|
|
30061
30058
|
}
|
|
30062
|
-
}, !tablesConfigParams[k.tableCode] ? (
|
|
30059
|
+
}, !tablesConfigParams[k.tableCode] ? (/*#__PURE__*/React$1.createElement("div", {
|
|
30063
30060
|
style: {
|
|
30064
30061
|
padding: "10px 0",
|
|
30065
30062
|
fontSize: "16px",
|
|
30066
30063
|
fontWeight: "bolder"
|
|
30067
30064
|
}
|
|
30068
|
-
}, "\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")) : (
|
|
30065
|
+
}, "\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", {
|
|
30069
30066
|
style: {
|
|
30070
30067
|
flex: 1
|
|
30071
30068
|
}
|
|
@@ -30211,7 +30208,7 @@ function getMetaData(_x) {
|
|
|
30211
30208
|
|
|
30212
30209
|
// 获取数据
|
|
30213
30210
|
function _getMetaData() {
|
|
30214
|
-
_getMetaData = _asyncToGenerator(
|
|
30211
|
+
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
30215
30212
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30216
30213
|
while (1) switch (_context.prev = _context.next) {
|
|
30217
30214
|
case 0:
|
|
@@ -30433,7 +30430,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
30433
30430
|
tableState = _useState4[0],
|
|
30434
30431
|
setTableState = _useState4[1];
|
|
30435
30432
|
var handleOpen = /*#__PURE__*/function () {
|
|
30436
|
-
var _ref = _asyncToGenerator(
|
|
30433
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30437
30434
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
30438
30435
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
30439
30436
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -30752,7 +30749,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
30752
30749
|
destroyOnClose: true
|
|
30753
30750
|
}, config && /*#__PURE__*/React$1.createElement(QueryTable, _objectSpread2({
|
|
30754
30751
|
ref: queryTableRef
|
|
30755
|
-
}, config)), (props === null || props === void 0 ? void 0 : (_props$selectProps4 = props.selectProps) === null || _props$selectProps4 === void 0 ? void 0 : _props$selectProps4.multipleForQuery) && !isView && (
|
|
30752
|
+
}, 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, {
|
|
30756
30753
|
justify: "center",
|
|
30757
30754
|
style: {
|
|
30758
30755
|
marginBottom: 30,
|
|
@@ -30868,7 +30865,7 @@ var CustomSelector = (function (props) {
|
|
|
30868
30865
|
var _props$ctx7;
|
|
30869
30866
|
return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
|
|
30870
30867
|
}
|
|
30871
|
-
})), showType === 'modalTable' && (
|
|
30868
|
+
})), showType === 'modalTable' && (/*#__PURE__*/React$1.createElement(Button, {
|
|
30872
30869
|
type: "primary",
|
|
30873
30870
|
style: {
|
|
30874
30871
|
width: '30px',
|
|
@@ -30954,7 +30951,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
30954
30951
|
_useState2 = _slicedToArray(_useState, 2),
|
|
30955
30952
|
handSource = _useState2[0],
|
|
30956
30953
|
setHandSource = _useState2[1];
|
|
30957
|
-
useEffect(
|
|
30954
|
+
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30958
30955
|
var resData, data;
|
|
30959
30956
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30960
30957
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -31106,7 +31103,7 @@ function getRegularThresholdRange(_x) {
|
|
|
31106
31103
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
31107
31104
|
}
|
|
31108
31105
|
function _getRegularThresholdRange() {
|
|
31109
|
-
_getRegularThresholdRange = _asyncToGenerator(
|
|
31106
|
+
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
31110
31107
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31111
31108
|
while (1) switch (_context.prev = _context.next) {
|
|
31112
31109
|
case 0:
|
|
@@ -31260,7 +31257,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
31260
31257
|
};
|
|
31261
31258
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
31262
31259
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
31263
|
-
var _ref = _asyncToGenerator(
|
|
31260
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
31264
31261
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
31265
31262
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31266
31263
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -32205,7 +32202,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32205
32202
|
isAll: true,
|
|
32206
32203
|
needNameAndCode: true,
|
|
32207
32204
|
notChangeOnSelect: true,
|
|
32208
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
32205
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
32209
32206
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
32210
32207
|
while (1) switch (_context2.prev = _context2.next) {
|
|
32211
32208
|
case 0:
|
|
@@ -32254,7 +32251,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32254
32251
|
isAll: true,
|
|
32255
32252
|
needNameAndCode: true,
|
|
32256
32253
|
notChangeOnSelect: true,
|
|
32257
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
32254
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
32258
32255
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
32259
32256
|
while (1) switch (_context3.prev = _context3.next) {
|
|
32260
32257
|
case 0:
|
|
@@ -32305,7 +32302,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32305
32302
|
isAll: true,
|
|
32306
32303
|
needNameAndCode: true,
|
|
32307
32304
|
notChangeOnSelect: true,
|
|
32308
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
32305
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
32309
32306
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
32310
32307
|
while (1) switch (_context4.prev = _context4.next) {
|
|
32311
32308
|
case 0:
|
|
@@ -34269,7 +34266,7 @@ var App$1 = function App(_ref) {
|
|
|
34269
34266
|
borderRadius: '5px',
|
|
34270
34267
|
cursor: 'pointer'
|
|
34271
34268
|
}
|
|
34272
|
-
}, isStaticNumber ? (
|
|
34269
|
+
}, isStaticNumber ? (/*#__PURE__*/React$1.createElement(Input, {
|
|
34273
34270
|
autoFocus: true,
|
|
34274
34271
|
onClick: function onClick(e) {
|
|
34275
34272
|
return e.stopPropagation();
|
|
@@ -34556,7 +34553,7 @@ function RenderCompItem(props) {
|
|
|
34556
34553
|
dictData = _useState2[0],
|
|
34557
34554
|
setDictData = _useState2[1];
|
|
34558
34555
|
var getDictData = /*#__PURE__*/function () {
|
|
34559
|
-
var _ref = _asyncToGenerator(
|
|
34556
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
34560
34557
|
var _data$map;
|
|
34561
34558
|
var data;
|
|
34562
34559
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -34598,7 +34595,7 @@ function RenderCompItem(props) {
|
|
|
34598
34595
|
var style2 = {
|
|
34599
34596
|
width: '100px'
|
|
34600
34597
|
};
|
|
34601
|
-
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 && (
|
|
34598
|
+
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, {
|
|
34602
34599
|
disabled: disabled,
|
|
34603
34600
|
allowClear: true,
|
|
34604
34601
|
onClear: function onClear() {
|
|
@@ -34609,7 +34606,7 @@ function RenderCompItem(props) {
|
|
|
34609
34606
|
onBlur: function onBlur(e) {
|
|
34610
34607
|
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
34611
34608
|
}
|
|
34612
|
-
})) || 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) && (
|
|
34609
|
+
})) || 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, {
|
|
34613
34610
|
disabled: disabled,
|
|
34614
34611
|
// max={Number.MAX_SAFE_INTEGER}
|
|
34615
34612
|
max: judgeIsEmpty(ites === null || ites === void 0 ? void 0 : ites.maxValue) ? Number.MAX_SAFE_INTEGER : ites.maxValue,
|
|
@@ -34622,7 +34619,7 @@ function RenderCompItem(props) {
|
|
|
34622
34619
|
onChange: function onChange(value) {
|
|
34623
34620
|
handleEdit(ites.code, value);
|
|
34624
34621
|
}
|
|
34625
|
-
})) || 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) && (
|
|
34622
|
+
})) || 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, {
|
|
34626
34623
|
showTime: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 32,
|
|
34627
34624
|
format: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 41 ? dateFormat : fullDateFormat,
|
|
34628
34625
|
disabled: disabled,
|
|
@@ -34632,7 +34629,7 @@ function RenderCompItem(props) {
|
|
|
34632
34629
|
onChange: function onChange(value, dateString) {
|
|
34633
34630
|
handleEdit(ites.code, dateString);
|
|
34634
34631
|
}
|
|
34635
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && (
|
|
34632
|
+
})) || 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, {
|
|
34636
34633
|
showTime: true,
|
|
34637
34634
|
disabled: disabled,
|
|
34638
34635
|
defaultValue: ites.defaultValue,
|
|
@@ -34641,7 +34638,7 @@ function RenderCompItem(props) {
|
|
|
34641
34638
|
onChange: function onChange(value, timeString) {
|
|
34642
34639
|
handleEdit(ites.code, timeString);
|
|
34643
34640
|
}
|
|
34644
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && (
|
|
34641
|
+
})) || 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, {
|
|
34645
34642
|
disabled: disabled,
|
|
34646
34643
|
defaultChecked: !!ites.defaultValue,
|
|
34647
34644
|
style: style2,
|
|
@@ -34649,7 +34646,7 @@ function RenderCompItem(props) {
|
|
|
34649
34646
|
onChange: function onChange(value) {
|
|
34650
34647
|
handleEdit(ites.code, value);
|
|
34651
34648
|
}
|
|
34652
|
-
})) || 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 && (
|
|
34649
|
+
})) || 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({
|
|
34653
34650
|
disabled: disabled,
|
|
34654
34651
|
allowClear: true,
|
|
34655
34652
|
showArrow: true
|
|
@@ -34667,7 +34664,7 @@ function RenderCompItem(props) {
|
|
|
34667
34664
|
key: it,
|
|
34668
34665
|
value: it
|
|
34669
34666
|
}, ites.enumeration[it]);
|
|
34670
|
-
}))) || 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 && (
|
|
34667
|
+
}))) || 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, {
|
|
34671
34668
|
disabled: disabled,
|
|
34672
34669
|
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
34673
34670
|
defaultValue: ites.defaultValue,
|
|
@@ -34677,7 +34674,7 @@ function RenderCompItem(props) {
|
|
|
34677
34674
|
handleEdit(ites.code, value);
|
|
34678
34675
|
},
|
|
34679
34676
|
dictionaryCode: ites.dictionaryCode
|
|
34680
|
-
})) || 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 && (
|
|
34677
|
+
})) || 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, {
|
|
34681
34678
|
selectBusinessType: "physicalWarehouse",
|
|
34682
34679
|
selectProps: _objectSpread2({
|
|
34683
34680
|
style: styleCommon,
|
|
@@ -34699,7 +34696,7 @@ function RenderCompItem(props) {
|
|
|
34699
34696
|
getPopupContainer: function getPopupContainer() {
|
|
34700
34697
|
return document.body;
|
|
34701
34698
|
}
|
|
34702
|
-
})) || 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 && (
|
|
34699
|
+
})) || 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, {
|
|
34703
34700
|
selectBusinessType: "realWarehouse",
|
|
34704
34701
|
selectProps: _objectSpread2({
|
|
34705
34702
|
style: styleCommon,
|
|
@@ -34721,7 +34718,7 @@ function RenderCompItem(props) {
|
|
|
34721
34718
|
getPopupContainer: function getPopupContainer() {
|
|
34722
34719
|
return document.body;
|
|
34723
34720
|
}
|
|
34724
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 130 && (
|
|
34721
|
+
})) || 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, {
|
|
34725
34722
|
selectBusinessType: "virtualWarehouse",
|
|
34726
34723
|
selectProps: _objectSpread2({
|
|
34727
34724
|
style: styleCommon,
|
|
@@ -34743,7 +34740,7 @@ function RenderCompItem(props) {
|
|
|
34743
34740
|
getPopupContainer: function getPopupContainer() {
|
|
34744
34741
|
return document.body;
|
|
34745
34742
|
}
|
|
34746
|
-
})) || 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 && (
|
|
34743
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 140 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34747
34744
|
selectBusinessType: "channelWarehouse",
|
|
34748
34745
|
selectProps: _objectSpread2({
|
|
34749
34746
|
style: styleCommon,
|
|
@@ -34765,7 +34762,7 @@ function RenderCompItem(props) {
|
|
|
34765
34762
|
getPopupContainer: function getPopupContainer() {
|
|
34766
34763
|
return document.body;
|
|
34767
34764
|
}
|
|
34768
|
-
})) || 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 && (
|
|
34765
|
+
})) || 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, {
|
|
34769
34766
|
selectBusinessType: "spuCommodity",
|
|
34770
34767
|
selectProps: _objectSpread2({
|
|
34771
34768
|
style: styleCommon,
|
|
@@ -34786,7 +34783,7 @@ function RenderCompItem(props) {
|
|
|
34786
34783
|
getPopupContainer: function getPopupContainer() {
|
|
34787
34784
|
return document.body;
|
|
34788
34785
|
}
|
|
34789
|
-
})) || 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 && (
|
|
34786
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 160 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34790
34787
|
selectBusinessType: "skuCommodity",
|
|
34791
34788
|
selectProps: _objectSpread2({
|
|
34792
34789
|
style: styleCommon,
|
|
@@ -34807,13 +34804,13 @@ function RenderCompItem(props) {
|
|
|
34807
34804
|
getPopupContainer: function getPopupContainer() {
|
|
34808
34805
|
return document.body;
|
|
34809
34806
|
}
|
|
34810
|
-
})) || 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 && (
|
|
34807
|
+
})) || 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, {
|
|
34811
34808
|
disabled: disabled,
|
|
34812
34809
|
isAll: true,
|
|
34813
34810
|
needNameAndCode: true,
|
|
34814
34811
|
notChangeOnSelect: true,
|
|
34815
34812
|
initRequestSource: function () {
|
|
34816
|
-
var _initRequestSource = _asyncToGenerator(
|
|
34813
|
+
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
34817
34814
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
34818
34815
|
while (1) switch (_context2.prev = _context2.next) {
|
|
34819
34816
|
case 0:
|
|
@@ -34855,7 +34852,7 @@ function RenderCompItem(props) {
|
|
|
34855
34852
|
getPopupContainer: function getPopupContainer() {
|
|
34856
34853
|
return document.body;
|
|
34857
34854
|
}
|
|
34858
|
-
})) || 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 && (
|
|
34855
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 210 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
34859
34856
|
disabled: disabled,
|
|
34860
34857
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34861
34858
|
businessType: "department",
|
|
@@ -34868,7 +34865,7 @@ function RenderCompItem(props) {
|
|
|
34868
34865
|
getPopupContainer: function getPopupContainer() {
|
|
34869
34866
|
return document.body;
|
|
34870
34867
|
}
|
|
34871
|
-
})) || 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 && (
|
|
34868
|
+
})) || 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, {
|
|
34872
34869
|
disabled: disabled,
|
|
34873
34870
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34874
34871
|
businessType: "purchase-organization",
|
|
@@ -34881,7 +34878,7 @@ function RenderCompItem(props) {
|
|
|
34881
34878
|
getPopupContainer: function getPopupContainer() {
|
|
34882
34879
|
return document.body;
|
|
34883
34880
|
}
|
|
34884
|
-
})) || 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 && (
|
|
34881
|
+
})) || 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, {
|
|
34885
34882
|
disabled: disabled,
|
|
34886
34883
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34887
34884
|
businessType: "sales-organization",
|
|
@@ -34894,7 +34891,7 @@ function RenderCompItem(props) {
|
|
|
34894
34891
|
getPopupContainer: function getPopupContainer() {
|
|
34895
34892
|
return document.body;
|
|
34896
34893
|
}
|
|
34897
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 240 && (
|
|
34894
|
+
})) || 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, {
|
|
34898
34895
|
selectBusinessType: "supplier2",
|
|
34899
34896
|
selectProps: _objectSpread2({
|
|
34900
34897
|
style: styleCommon,
|
|
@@ -34915,7 +34912,7 @@ function RenderCompItem(props) {
|
|
|
34915
34912
|
getPopupContainer: function getPopupContainer() {
|
|
34916
34913
|
return document.body;
|
|
34917
34914
|
}
|
|
34918
|
-
})) || 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 && (
|
|
34915
|
+
})) || 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, {
|
|
34919
34916
|
selectBusinessType: "customer2",
|
|
34920
34917
|
selectProps: _objectSpread2({
|
|
34921
34918
|
style: styleCommon,
|
|
@@ -34936,7 +34933,7 @@ function RenderCompItem(props) {
|
|
|
34936
34933
|
getPopupContainer: function getPopupContainer() {
|
|
34937
34934
|
return document.body;
|
|
34938
34935
|
}
|
|
34939
|
-
})) || 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 && (
|
|
34936
|
+
})) || 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, {
|
|
34940
34937
|
selectBusinessType: "shopFile2",
|
|
34941
34938
|
selectProps: _objectSpread2({
|
|
34942
34939
|
style: styleCommon,
|
|
@@ -34957,7 +34954,7 @@ function RenderCompItem(props) {
|
|
|
34957
34954
|
getPopupContainer: function getPopupContainer() {
|
|
34958
34955
|
return document.body;
|
|
34959
34956
|
}
|
|
34960
|
-
})) || 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 && (
|
|
34957
|
+
})) || 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, {
|
|
34961
34958
|
selectBusinessType: "employee2",
|
|
34962
34959
|
selectProps: _objectSpread2({
|
|
34963
34960
|
style: styleCommon,
|
|
@@ -34978,7 +34975,7 @@ function RenderCompItem(props) {
|
|
|
34978
34975
|
getPopupContainer: function getPopupContainer() {
|
|
34979
34976
|
return document.body;
|
|
34980
34977
|
}
|
|
34981
|
-
})) || 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 && (
|
|
34978
|
+
})) || 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, {
|
|
34982
34979
|
disabled: disabled,
|
|
34983
34980
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34984
34981
|
businessType: "stock-organization",
|
|
@@ -34991,7 +34988,7 @@ function RenderCompItem(props) {
|
|
|
34991
34988
|
getPopupContainer: function getPopupContainer() {
|
|
34992
34989
|
return document.body;
|
|
34993
34990
|
}
|
|
34994
|
-
})) || 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 && (
|
|
34991
|
+
})) || 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, {
|
|
34995
34992
|
disabled: disabled,
|
|
34996
34993
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34997
34994
|
businessType: "settle-organization",
|
|
@@ -35004,7 +35001,7 @@ function RenderCompItem(props) {
|
|
|
35004
35001
|
getPopupContainer: function getPopupContainer() {
|
|
35005
35002
|
return document.body;
|
|
35006
35003
|
}
|
|
35007
|
-
})) || 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 && (
|
|
35004
|
+
})) || 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, {
|
|
35008
35005
|
selectBusinessType: "deliveryMode",
|
|
35009
35006
|
selectProps: _objectSpread2({
|
|
35010
35007
|
style: styleCommon,
|
|
@@ -35025,7 +35022,7 @@ function RenderCompItem(props) {
|
|
|
35025
35022
|
getPopupContainer: function getPopupContainer() {
|
|
35026
35023
|
return document.body;
|
|
35027
35024
|
}
|
|
35028
|
-
})) || 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 && (
|
|
35025
|
+
})) || 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, {
|
|
35029
35026
|
selectBusinessType: "role",
|
|
35030
35027
|
selectProps: _objectSpread2({
|
|
35031
35028
|
style: styleCommon,
|
|
@@ -35046,7 +35043,7 @@ function RenderCompItem(props) {
|
|
|
35046
35043
|
getPopupContainer: function getPopupContainer() {
|
|
35047
35044
|
return document.body;
|
|
35048
35045
|
}
|
|
35049
|
-
})) || 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 && (
|
|
35046
|
+
})) || 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, {
|
|
35050
35047
|
selectBusinessType: "brand",
|
|
35051
35048
|
selectProps: _objectSpread2({
|
|
35052
35049
|
style: styleCommon,
|
|
@@ -35067,7 +35064,7 @@ function RenderCompItem(props) {
|
|
|
35067
35064
|
getPopupContainer: function getPopupContainer() {
|
|
35068
35065
|
return document.body;
|
|
35069
35066
|
}
|
|
35070
|
-
})) || 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 && (
|
|
35067
|
+
})) || 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, {
|
|
35071
35068
|
disabled: disabled,
|
|
35072
35069
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35073
35070
|
businessType: "background-category",
|
|
@@ -35080,7 +35077,7 @@ function RenderCompItem(props) {
|
|
|
35080
35077
|
getPopupContainer: function getPopupContainer() {
|
|
35081
35078
|
return document.body;
|
|
35082
35079
|
}
|
|
35083
|
-
})) || 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 && (
|
|
35080
|
+
})) || 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, {
|
|
35084
35081
|
selectProps: _objectSpread2(_objectSpread2({
|
|
35085
35082
|
style: styleCommon,
|
|
35086
35083
|
placeholder: '请选择'
|
|
@@ -35103,7 +35100,7 @@ function RenderCompItem(props) {
|
|
|
35103
35100
|
onChange: function onChange(value) {
|
|
35104
35101
|
handleEdit(ites.code, value);
|
|
35105
35102
|
}
|
|
35106
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (
|
|
35103
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (/*#__PURE__*/React$1.createElement("div", {
|
|
35107
35104
|
style: {
|
|
35108
35105
|
display: 'flex'
|
|
35109
35106
|
}
|
|
@@ -35615,7 +35612,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35615
35612
|
queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
|
|
35616
35613
|
queryIdentifyType = 'dynamicDictCodeIdentify';
|
|
35617
35614
|
}
|
|
35618
|
-
var parallelTreeData =
|
|
35615
|
+
var parallelTreeData = _coverToParallel(ruleTreeData, []) || [];
|
|
35619
35616
|
var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
|
|
35620
35617
|
var _i$key;
|
|
35621
35618
|
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);
|
|
@@ -36542,13 +36539,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
36542
36539
|
var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
|
|
36543
36540
|
// 处理对象-设置了必填-规则实例保存时数据必填校验
|
|
36544
36541
|
if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
|
|
36545
|
-
var list =
|
|
36542
|
+
var list = _coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
|
|
36546
36543
|
var requiredList = list.filter(function (c) {
|
|
36547
36544
|
return c.required == 1;
|
|
36548
36545
|
}) || []; // 获取对象属性为true的集合
|
|
36549
36546
|
(requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
|
|
36550
36547
|
var _s$expression, _s$expression$subExpr, _s$expression2, _coverExpressionTree$;
|
|
36551
|
-
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) ?
|
|
36548
|
+
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];
|
|
36552
36549
|
(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) {
|
|
36553
36550
|
if (requiredList.some(function (r) {
|
|
36554
36551
|
return r.id === e.elementId;
|
|
@@ -37137,7 +37134,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
37137
37134
|
style: {
|
|
37138
37135
|
float: 'right'
|
|
37139
37136
|
}
|
|
37140
|
-
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? (
|
|
37137
|
+
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? (/*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
37141
37138
|
onlyOneRule: (_handleDiff2 = handleDiff()) === null || _handleDiff2 === void 0 ? void 0 : _handleDiff2.onlyOneRule,
|
|
37142
37139
|
ruleGroupInfo: {
|
|
37143
37140
|
ruleGroupList: ruleGroupList,
|
|
@@ -37155,7 +37152,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
37155
37152
|
callBack: function callBack(newData) {
|
|
37156
37153
|
upDateData(newData);
|
|
37157
37154
|
}
|
|
37158
|
-
}))) : (
|
|
37155
|
+
}))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
37159
37156
|
style: {
|
|
37160
37157
|
padding: 20
|
|
37161
37158
|
}
|
|
@@ -37530,4 +37527,4 @@ var ParagraphCopier = function ParagraphCopier(props) {
|
|
|
37530
37527
|
}, children));
|
|
37531
37528
|
};
|
|
37532
37529
|
|
|
37533
|
-
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 };
|
|
37530
|
+
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 };
|