@bit-sun/business-component 3.1.10-alpha.1 → 3.1.10-alpha.10
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/.editorconfig +16 -16
- package/.fatherrc.ts +5 -5
- package/.gitlab-ci.yml +179 -179
- package/.prettierignore +7 -7
- package/.prettierrc +11 -11
- package/.umirc.ts +74 -74
- package/README.md +27 -27
- package/dist/components/Functional/AddSelect/index.d.ts +1 -1
- package/dist/index.esm.js +476 -202
- package/dist/index.js +477 -203
- package/docs/index.md +21 -21
- package/lib/assets/drag.svg +17 -17
- package/lib/assets/exportFail.svg +37 -37
- package/lib/assets/exportProcessing.svg +28 -28
- package/lib/assets/exportSuccess.svg +34 -34
- package/lib/assets/label_icon_bottom.svg +25 -25
- package/lib/assets/upExport.svg +22 -22
- package/package.json +88 -88
- package/src/assets/32.svg +27 -27
- package/src/assets/addIcon.svg +17 -17
- package/src/assets/allfunc.svg +27 -27
- package/src/assets/arrowRight.svg +24 -24
- package/src/assets/arrow_top.svg +17 -17
- package/src/assets/btn-delete.svg +29 -29
- package/src/assets/btn-edit.svg +19 -19
- package/src/assets/btn-more.svg +17 -17
- package/src/assets/btn-submit.svg +19 -19
- package/src/assets/caidan.svg +11 -11
- package/src/assets/close.svg +26 -26
- package/src/assets/drag.svg +17 -17
- package/src/assets/exportFail.svg +37 -37
- package/src/assets/exportProcessing.svg +28 -28
- package/src/assets/exportSuccess.svg +34 -34
- package/src/assets/fixed-left-active.svg +11 -11
- package/src/assets/fixed-left.svg +15 -15
- package/src/assets/fixed-right-active.svg +11 -11
- package/src/assets/fixed-right.svg +15 -15
- package/src/assets/guanbi.svg +15 -15
- package/src/assets/icon-quanping.svg +15 -15
- package/src/assets/icon-shezhi.svg +17 -17
- package/src/assets/label_icon_bottom.svg +25 -25
- package/src/assets/list-no-img.svg +21 -21
- package/src/assets/morentouxiang-32.svg +23 -23
- package/src/assets/scanning.svg +24 -24
- package/src/assets/upExport.svg +22 -22
- package/src/common/ENUM.ts +41 -41
- package/src/components/Business/AddSelectBusiness/index.md +398 -398
- package/src/components/Business/AddSelectBusiness/index.tsx +1116 -1116
- package/src/components/Business/BsLayouts/Components/AllFunc/drawContent.tsx +112 -112
- package/src/components/Business/BsLayouts/Components/AllFunc/index.less +153 -153
- package/src/components/Business/BsLayouts/Components/AllFunc/index.tsx +70 -70
- package/src/components/Business/BsLayouts/Components/ChooseStore/index.tsx +193 -193
- package/src/components/Business/BsLayouts/Components/ChooseStore/services.ts +10 -10
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.less +90 -90
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.tsx +37 -37
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.tsx +242 -242
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.tsx +384 -384
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.tsx +285 -285
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.tsx +74 -74
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/drawContent.less +170 -170
- package/src/components/Business/BsLayouts/Components/CustomerMenu/index.less +64 -64
- package/src/components/Business/BsLayouts/Components/CustomerMenu/index.tsx +153 -153
- package/src/components/Business/BsLayouts/Components/GlobalHeader/index.less +72 -72
- package/src/components/Business/BsLayouts/Components/GlobalHeader/index.tsx +163 -163
- package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +85 -85
- package/src/components/Business/BsLayouts/Components/RightContent/home.less +218 -218
- package/src/components/Business/BsLayouts/Components/RightContent/i18n.ts +8 -8
- package/src/components/Business/BsLayouts/Components/RightContent/index.tsx +172 -172
- package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +160 -160
- package/src/components/Business/BsLayouts/Components/SearchFunc/index.tsx +75 -75
- package/src/components/Business/BsLayouts/index.less +79 -79
- package/src/components/Business/BsLayouts/index.tsx +1606 -1606
- package/src/components/Business/BsLayouts/service.ts +10 -10
- package/src/components/Business/BsLayouts/utils.tsx +205 -205
- package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +568 -566
- package/src/components/Business/BsSulaQueryTable/bssulaquerytable.less +5 -5
- package/src/components/Business/BsSulaQueryTable/index.less +227 -227
- package/src/components/Business/BsSulaQueryTable/index.tsx +767 -767
- package/src/components/Business/BsSulaQueryTable/setting.tsx +890 -888
- package/src/components/Business/BsSulaQueryTable/utils.less +65 -65
- package/src/components/Business/BsSulaQueryTable/utils.tsx +709 -709
- package/src/components/Business/CommodityEntry/index.md +84 -84
- package/src/components/Business/CommodityEntry/index.tsx +82 -82
- package/src/components/Business/CommonAlert/index.tsx +23 -23
- package/src/components/Business/CommonGuideWrapper/index.less +121 -121
- package/src/components/Business/CommonGuideWrapper/index.md +39 -39
- package/src/components/Business/CommonGuideWrapper/index.tsx +94 -94
- package/src/components/Business/DetailPageWrapper/index.less +87 -87
- package/src/components/Business/DetailPageWrapper/index.tsx +327 -327
- package/src/components/Business/DetailPageWrapper/utils.tsx +166 -166
- package/src/components/Business/HomePageWrapper/index.less +33 -33
- package/src/components/Business/HomePageWrapper/index.md +45 -45
- package/src/components/Business/HomePageWrapper/index.tsx +162 -162
- package/src/components/Business/JsonQueryTable/components/FieldsModifyModal.tsx +823 -823
- package/src/components/Business/JsonQueryTable/components/FieldsSettingsTable.tsx +205 -205
- package/src/components/Business/JsonQueryTable/components/Formula.tsx +205 -205
- package/src/components/Business/JsonQueryTable/components/MaintainOptions.tsx +127 -127
- package/src/components/Business/JsonQueryTable/configButton/index.js +20 -20
- package/src/components/Business/JsonQueryTable/configTree/component/compactArrayView.js +25 -25
- package/src/components/Business/JsonQueryTable/configTree/component/compactObjectView.js +30 -30
- package/src/components/Business/JsonQueryTable/configTree/index.js +82 -82
- package/src/components/Business/JsonQueryTable/configTree/index.less +44 -44
- package/src/components/Business/JsonQueryTable/configTree/parser/highlight.js +57 -57
- package/src/components/Business/JsonQueryTable/configTree/parser/index.js +124 -124
- package/src/components/Business/JsonQueryTable/configTree/render/iconRender.js +29 -29
- package/src/components/Business/JsonQueryTable/configTree/render/nameRender.js +22 -22
- package/src/components/Business/JsonQueryTable/configTree/treeNode.js +116 -116
- package/src/components/Business/JsonQueryTable/drawer/index.tsx +12 -12
- package/src/components/Business/JsonQueryTable/function.ts +62 -62
- package/src/components/Business/JsonQueryTable/index.less +16 -16
- package/src/components/Business/JsonQueryTable/index.md +328 -328
- package/src/components/Business/JsonQueryTable/index.tsx +534 -534
- package/src/components/Business/JsonQueryTable/jsonEditor/index.js +346 -346
- package/src/components/Business/JsonQueryTable/jsonEditor/index.less +22 -22
- package/src/components/Business/JsonQueryTable/jsonEditor/lint/basicType.js +147 -147
- package/src/components/Business/JsonQueryTable/jsonEditor/lint/index.js +389 -389
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/actions.js +118 -118
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/dependency.js +22 -22
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/index.js +21 -21
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/request.js +65 -65
- package/src/components/Business/JsonQueryTable/static.ts +450 -450
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +2326 -2318
- package/src/components/Business/SearchSelect/common.ts +134 -134
- package/src/components/Business/SearchSelect/index.md +1570 -1570
- package/src/components/Business/SearchSelect/index.tsx +55 -55
- package/src/components/Business/SearchSelect/utils.ts +125 -125
- package/src/components/Business/StateFlow/index.less +130 -130
- package/src/components/Business/StateFlow/index.md +60 -60
- package/src/components/Business/StateFlow/index.tsx +29 -29
- package/src/components/Business/TreeSearchSelect/index.md +239 -239
- package/src/components/Business/TreeSearchSelect/index.tsx +33 -33
- package/src/components/Business/TreeSearchSelect/utils.ts +115 -115
- package/src/components/Business/columnSettingTable/columnSetting.tsx +818 -816
- package/src/components/Business/columnSettingTable/index.less +253 -253
- package/src/components/Business/columnSettingTable/index.md +372 -372
- package/src/components/Business/columnSettingTable/index.tsx +225 -225
- package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +232 -232
- package/src/components/Business/columnSettingTable/utils.tsx +87 -87
- package/src/components/Business/moreTreeTable/FixedScrollBar.tsx +87 -87
- package/src/components/Business/moreTreeTable/hooks/useSticky.ts +21 -21
- package/src/components/Business/moreTreeTable/index.less +99 -99
- package/src/components/Business/moreTreeTable/index.md +448 -448
- package/src/components/Business/moreTreeTable/index.tsx +387 -387
- package/src/components/Business/moreTreeTable/utils.ts +126 -126
- package/src/components/Functional/AccessWrapper/index.tsx +33 -33
- package/src/components/Functional/AddSelect/helps.ts +81 -81
- package/src/components/Functional/AddSelect/index.less +367 -367
- package/src/components/Functional/AddSelect/index.md +155 -155
- package/src/components/Functional/AddSelect/index.tsx +1088 -1072
- package/src/components/Functional/AuthButton/index.tsx +15 -15
- package/src/components/Functional/BillEntry/index.less +371 -371
- package/src/components/Functional/BillEntry/index.md +39 -39
- package/src/components/Functional/BillEntry/index.tsx +771 -771
- package/src/components/Functional/BsAntdSula/BsCascader/index.md +62 -62
- package/src/components/Functional/BsAntdSula/BsCascader/index.tsx +178 -178
- package/src/components/Functional/BsAntdSula/index.ts +2 -2
- package/src/components/Functional/DataImport/index.less +63 -63
- package/src/components/Functional/DataImport/index.md +44 -44
- package/src/components/Functional/DataImport/index.tsx +782 -782
- package/src/components/Functional/DataValidation/index.less +63 -63
- package/src/components/Functional/DataValidation/index.md +52 -52
- package/src/components/Functional/DataValidation/index.tsx +788 -788
- package/src/components/Functional/EllipsisTooltip/index.d.ts +5 -5
- package/src/components/Functional/EllipsisTooltip/index.js +36 -36
- package/src/components/Functional/EllipsisTooltip/index.md +30 -30
- package/src/components/Functional/ExportFunctions/ExportIcon/index.md +37 -37
- package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +65 -65
- package/src/components/Functional/QueryMutipleInput/index.less +37 -37
- package/src/components/Functional/QueryMutipleInput/index.md +33 -33
- package/src/components/Functional/QueryMutipleInput/index.tsx +129 -129
- package/src/components/Functional/SearchSelect/index.less +121 -121
- package/src/components/Functional/SearchSelect/index.md +141 -141
- package/src/components/Functional/SearchSelect/index.tsx +1046 -1046
- package/src/components/Functional/SearchSelect/utils.ts +3 -3
- package/src/components/Functional/TreeSearchSelect/index.md +47 -47
- package/src/components/Functional/TreeSearchSelect/index.tsx +224 -224
- package/src/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.tsx +358 -358
- package/src/components/Solution/RuleComponent/CustomPlugin/CustomSelector/function.js +255 -255
- package/src/components/Solution/RuleComponent/CustomPlugin/CustomSelector/helps.tsx +57 -57
- package/src/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.tsx +129 -129
- package/src/components/Solution/RuleComponent/Formula.tsx +335 -335
- package/src/components/Solution/RuleComponent/InnerSelect.tsx +62 -62
- package/src/components/Solution/RuleComponent/RenderCompItem.tsx +774 -774
- package/src/components/Solution/RuleComponent/index.d.ts +34 -29
- package/src/components/Solution/RuleComponent/index.js +1680 -1663
- package/src/components/Solution/RuleComponent/index.less +247 -247
- package/src/components/Solution/RuleComponent/renderSpecificAction.js +99 -99
- package/src/components/Solution/RuleComponent/ruleFiled.js +2695 -2695
- package/src/components/Solution/RuleComponent/services.ts +13 -13
- package/src/components/Solution/RuleComponent/util.js +143 -143
- package/src/components/Solution/RuleSetter/RuleInstance.tsx +6 -6
- package/src/components/Solution/RuleSetter/baseRule.tsx +414 -414
- package/src/components/Solution/RuleSetter/function.ts +467 -467
- package/src/components/Solution/RuleSetter/index.less +221 -221
- package/src/components/Solution/RuleSetter/index.tsx +210 -210
- package/src/components/Solution/RuleSetter/service.js +276 -276
- package/src/index.ts +42 -42
- package/src/plugin/TableColumnSetting/index.less +247 -247
- package/src/plugin/TableColumnSetting/index.md +50 -50
- package/src/plugin/TableColumnSetting/index.tsx +725 -725
- package/src/plugin/TableColumnSetting/utils.ts +19 -19
- package/src/styles/bsDefault.less +1933 -1933
- package/src/utils/CheckOneUser/index.md +39 -39
- package/src/utils/CheckOneUser/index.ts +51 -51
- package/src/utils/CustomLoginInfo.ts +55 -55
- package/src/utils/LocalstorageUtils.ts +134 -134
- package/src/utils/TableUtils.less +51 -51
- package/src/utils/TableUtils.tsx +691 -691
- package/src/utils/TreeUtils.ts +12 -12
- package/src/utils/auth.ts +38 -38
- package/src/utils/businessUtils.ts +434 -434
- package/src/utils/checkUtils.ts +39 -39
- package/src/utils/constant.ts +38 -38
- package/src/utils/enumConfig.ts +17 -17
- package/src/utils/getFormMode.js +12 -12
- package/src/utils/index.ts +21 -21
- package/src/utils/request.ts +53 -53
- package/src/utils/requestUtils.ts +197 -197
- package/src/utils/serialize.js +7 -7
- package/src/utils/utils.ts +266 -266
- package/src/utils/xlsxUtil.tsx +145 -145
- package/tsconfig.json +29 -29
- package/typings.d.ts +4 -4
package/dist/index.esm.js
CHANGED
|
@@ -187,8 +187,8 @@ function _objectWithoutProperties(e, t) {
|
|
|
187
187
|
r,
|
|
188
188
|
i = _objectWithoutPropertiesLoose(e, t);
|
|
189
189
|
if (Object.getOwnPropertySymbols) {
|
|
190
|
-
var
|
|
191
|
-
for (r = 0; r <
|
|
190
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
191
|
+
for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
192
192
|
}
|
|
193
193
|
return i;
|
|
194
194
|
}
|
|
@@ -196,7 +196,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
196
196
|
if (null == r) return {};
|
|
197
197
|
var t = {};
|
|
198
198
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
199
|
-
if (e.
|
|
199
|
+
if (e.indexOf(n) >= 0) continue;
|
|
200
200
|
t[n] = r[n];
|
|
201
201
|
}
|
|
202
202
|
return t;
|
|
@@ -1192,7 +1192,7 @@ function downloadExcel(data, fileName, isResUrl) {
|
|
|
1192
1192
|
}
|
|
1193
1193
|
save_link.click();
|
|
1194
1194
|
}
|
|
1195
|
-
var
|
|
1195
|
+
var formatter = function formatter(data, parentAuthority, parentName) {
|
|
1196
1196
|
return data.map(function (item) {
|
|
1197
1197
|
if (!item.name || !item.path) {
|
|
1198
1198
|
return null;
|
|
@@ -1212,7 +1212,7 @@ var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1212
1212
|
authority: item.authority || parentAuthority
|
|
1213
1213
|
});
|
|
1214
1214
|
if (item.routes) {
|
|
1215
|
-
var children =
|
|
1215
|
+
var children = formatter(item.routes, item.authority, locale);
|
|
1216
1216
|
// Reduce memory usage
|
|
1217
1217
|
result.children = children;
|
|
1218
1218
|
}
|
|
@@ -1222,7 +1222,7 @@ var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1222
1222
|
return item;
|
|
1223
1223
|
});
|
|
1224
1224
|
};
|
|
1225
|
-
var memoizeOneFormatter = memoizeOne(
|
|
1225
|
+
var memoizeOneFormatter = memoizeOne(formatter, isEqual);
|
|
1226
1226
|
var go2BackAndClose = function go2BackAndClose(backHistoryPath) {
|
|
1227
1227
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1228
1228
|
if (backHistoryPath) {
|
|
@@ -1660,14 +1660,14 @@ var keyToWord = function keyToWord(data, fieldMapping) {
|
|
|
1660
1660
|
/**---------------------数据写入excel-------结束------------------------*/
|
|
1661
1661
|
|
|
1662
1662
|
// 获取树平行结构
|
|
1663
|
-
var
|
|
1663
|
+
var coverToParallel = function coverToParallel(treeData, result, chilKey) {
|
|
1664
1664
|
var childrenKey = chilKey || 'children';
|
|
1665
1665
|
treeData.forEach(function (el) {
|
|
1666
1666
|
var _el$childrenKey;
|
|
1667
1667
|
result.push(el);
|
|
1668
1668
|
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) {
|
|
1669
1669
|
// 子级递归
|
|
1670
|
-
|
|
1670
|
+
coverToParallel(el === null || el === void 0 ? void 0 : el[childrenKey], result, chilKey);
|
|
1671
1671
|
}
|
|
1672
1672
|
});
|
|
1673
1673
|
return result;
|
|
@@ -2370,7 +2370,7 @@ var handleBeforeUpload = function handleBeforeUpload(file, size, suffixRule) {
|
|
|
2370
2370
|
};
|
|
2371
2371
|
/*
|
|
2372
2372
|
导出类型: type(1-全部导出 2-只导出勾选的 3-按查询结果导出数据)
|
|
2373
|
-
|
|
2373
|
+
|
|
2374
2374
|
* */
|
|
2375
2375
|
var handleExport = function handleExport(type, params, url, methods, fileName, promiseResult) {
|
|
2376
2376
|
if (type === 3) {
|
|
@@ -2404,16 +2404,16 @@ var handleExport = function handleExport(type, params, url, methods, fileName, p
|
|
|
2404
2404
|
var handleExportBarCode = handleExport;
|
|
2405
2405
|
var getBreadcrumbNameMap = function getBreadcrumbNameMap(menuData) {
|
|
2406
2406
|
var routerMap = {};
|
|
2407
|
-
var
|
|
2407
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
2408
2408
|
data.forEach(function (menuItem) {
|
|
2409
2409
|
if (menuItem.children) {
|
|
2410
|
-
|
|
2410
|
+
flattenMenuData(menuItem.children);
|
|
2411
2411
|
}
|
|
2412
2412
|
// Reduce memory usage
|
|
2413
2413
|
routerMap[menuItem.path] = menuItem;
|
|
2414
2414
|
});
|
|
2415
2415
|
};
|
|
2416
|
-
|
|
2416
|
+
flattenMenuData(menuData);
|
|
2417
2417
|
return routerMap;
|
|
2418
2418
|
};
|
|
2419
2419
|
var ergodicMenuRoutes = function ergodicMenuRoutes(routes) {
|
|
@@ -5909,7 +5909,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
|
|
|
5909
5909
|
});
|
|
5910
5910
|
};
|
|
5911
5911
|
// 格式化树选择器数据源
|
|
5912
|
-
var
|
|
5912
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
5913
5913
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
5914
5914
|
return {
|
|
5915
5915
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -5919,7 +5919,7 @@ var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
|
5919
5919
|
isLeaf: !haveChildren,
|
|
5920
5920
|
disabled: haveChildren,
|
|
5921
5921
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
5922
|
-
return
|
|
5922
|
+
return mapSearchTree(i, resKeyValue);
|
|
5923
5923
|
}) : []
|
|
5924
5924
|
};
|
|
5925
5925
|
};
|
|
@@ -5928,7 +5928,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
5928
5928
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
5929
5929
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
5930
5930
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
5931
|
-
return
|
|
5931
|
+
return mapSearchTree(ites, resKeyValue);
|
|
5932
5932
|
}) || [];
|
|
5933
5933
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
5934
5934
|
};
|
|
@@ -5984,7 +5984,7 @@ var initTableCode = {
|
|
|
5984
5984
|
'spu': ['spuSelect-tableOptionsToChoosePartCode', 'spuSelect-tableSelectedItemPartCode']
|
|
5985
5985
|
};
|
|
5986
5986
|
var Option$2 = Select.Option;
|
|
5987
|
-
var AddSelect = function
|
|
5987
|
+
var AddSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
5988
5988
|
var value = props.value,
|
|
5989
5989
|
_props$selectProps = props.selectProps,
|
|
5990
5990
|
selectProps = _props$selectProps === void 0 ? {} : _props$selectProps,
|
|
@@ -6202,6 +6202,19 @@ var AddSelect = function AddSelect(props) {
|
|
|
6202
6202
|
}
|
|
6203
6203
|
return result;
|
|
6204
6204
|
};
|
|
6205
|
+
// 广药 应对重写table列出现复杂逻辑无法修改部分伙计,需往外抛组件方法
|
|
6206
|
+
useImperativeHandle(ref, function () {
|
|
6207
|
+
return {
|
|
6208
|
+
editRecord: editRecord,
|
|
6209
|
+
deleteRecord: deleteRecord,
|
|
6210
|
+
getDataSource: function getDataSource() {
|
|
6211
|
+
return {
|
|
6212
|
+
searchTabledataSource: tableData,
|
|
6213
|
+
selectedTableDataSource: popvalue
|
|
6214
|
+
};
|
|
6215
|
+
}
|
|
6216
|
+
};
|
|
6217
|
+
});
|
|
6205
6218
|
useEffect(function () {
|
|
6206
6219
|
setTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns);
|
|
6207
6220
|
}, [modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns]);
|
|
@@ -6738,6 +6751,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
6738
6751
|
setTableFormParams({});
|
|
6739
6752
|
setIsModalVisible(false);
|
|
6740
6753
|
setTableData([]);
|
|
6754
|
+
deleteSelectRows();
|
|
6755
|
+
setTablePagination({
|
|
6756
|
+
total: 0,
|
|
6757
|
+
size: "small",
|
|
6758
|
+
current: 1,
|
|
6759
|
+
pageSize: tableInitPageSize
|
|
6760
|
+
});
|
|
6741
6761
|
onCancelCallback && onCancelCallback();
|
|
6742
6762
|
// if (selectMode) {
|
|
6743
6763
|
// run();
|
|
@@ -6960,10 +6980,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
6960
6980
|
var newColumns = arr.map(function (col) {
|
|
6961
6981
|
return _objectSpread2({}, col);
|
|
6962
6982
|
});
|
|
6963
|
-
var
|
|
6983
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
6964
6984
|
var i = indexArr.shift();
|
|
6965
6985
|
if (indexArr.length > 0) {
|
|
6966
|
-
|
|
6986
|
+
handleIndex(arr[i].children, indexArr);
|
|
6967
6987
|
} else {
|
|
6968
6988
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
6969
6989
|
width: size.width
|
|
@@ -6971,7 +6991,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
6971
6991
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
6972
6992
|
}
|
|
6973
6993
|
};
|
|
6974
|
-
|
|
6994
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
6975
6995
|
callback(newColumns);
|
|
6976
6996
|
};
|
|
6977
6997
|
};
|
|
@@ -6981,13 +7001,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
6981
7001
|
var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
|
|
6982
7002
|
setShowToChooseColumns(_toConsumableArray(newColumns));
|
|
6983
7003
|
};
|
|
6984
|
-
var
|
|
7004
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
6985
7005
|
arr.forEach(function (item, index) {
|
|
6986
7006
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
6987
7007
|
return i || i === 0;
|
|
6988
7008
|
});
|
|
6989
7009
|
if (noEmptyArray$1(item.children)) {
|
|
6990
|
-
|
|
7010
|
+
handleColumns(item.children, indexArrInside);
|
|
6991
7011
|
} else {
|
|
6992
7012
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
6993
7013
|
item.onHeaderCell = function (column) {
|
|
@@ -7003,14 +7023,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
7003
7023
|
handleAntdColumnsSpecialParams(item);
|
|
7004
7024
|
return _objectSpread2({}, item);
|
|
7005
7025
|
});
|
|
7006
|
-
|
|
7026
|
+
handleColumns(showToChooseCol, [], function (res) {
|
|
7007
7027
|
return setShowToChooseColumnsCallback(res);
|
|
7008
7028
|
});
|
|
7009
7029
|
var showSelectedCol = showColumns.map(function (item) {
|
|
7010
7030
|
handleAntdColumnsSpecialParams(item);
|
|
7011
7031
|
return _objectSpread2({}, item);
|
|
7012
7032
|
});
|
|
7013
|
-
|
|
7033
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
7014
7034
|
return setShowColumnsCallback(res);
|
|
7015
7035
|
});
|
|
7016
7036
|
var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
|
|
@@ -7192,7 +7212,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7192
7212
|
}
|
|
7193
7213
|
}
|
|
7194
7214
|
}))))));
|
|
7195
|
-
};
|
|
7215
|
+
});
|
|
7196
7216
|
|
|
7197
7217
|
var css_248z$8 = ".add_select_show {\n display: flex;\n}\n.add_select_expand_button {\n position: relative;\n width: 30px;\n color: #ffffff;\n cursor: pointer;\n}\n.add_select_expand_button span {\n position: absolute;\n height: 20px;\n line-height: 14px;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.add_select_header {\n border-bottom: 1px solid #D9D9D9;\n height: 24px;\n height: 40px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n line-height: 40px;\n margin-bottom: 10px;\n padding-left: 10px;\n}\n.add_select_header > span {\n margin-left: 20px;\n font-weight: 400;\n font-size: 12px;\n color: #666666;\n letter-spacing: 0;\n line-height: 40px;\n}\n.add_select_header > span > span {\n color: #ff0000;\n}\n.add_select_header_close span {\n position: absolute;\n color: black !important;\n right: 10px;\n top: 10px;\n}\n.add_select_quick_header {\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.add_select_quick_header_title {\n display: flex;\n justify-content: space-between;\n}\n.add_select_quick_header > span {\n font-weight: 400;\n font-size: 12px;\n color: #666666;\n letter-spacing: 0;\n line-height: 20px;\n}\n.add_select_quick_header > span > span {\n color: #ff0000;\n}\n.add_select_quick_header_close span {\n position: absolute;\n color: black !important;\n right: 10px;\n top: 10px;\n}\n.add_select_wrapper {\n position: relative;\n display: flex;\n max-height: 60vh;\n overflow: hidden;\n font-size: 14px;\n margin: 5px 10px;\n}\n.add_select_wrapper .ant-table-pagination.ant-pagination {\n margin: 5px;\n padding-right: 5px;\n}\n.add_select_wrapper .ant-checkbox-wrapper {\n justify-content: center;\n}\n.add_select_wrapper .ant-form-item-label {\n padding: 0PX;\n line-height: 23px !important;\n}\n.add_select_wrapper .ant-form-item-label > label {\n font-size: 12px;\n}\n.add_select_wrapper .ant-table-thead th {\n height: 20px !important;\n padding: 0px 8px !important;\n font-size: 12px !important;\n font-weight: 600 !important;\n line-height: 20px !important;\n}\n.add_select_wrapper .ant-modal-body {\n padding: 10px;\n}\n.add_select_wrapper .ant-table-wrapper {\n padding: 0px !important;\n}\n.add_select_wrapper .row-class {\n height: 24px;\n}\n.add_select_wrapper .row-class td {\n font-size: 12px !important;\n height: 24px !important;\n padding: 0px 8px !important;\n line-height: 20px !important;\n}\n.add_select_wrapper .ant-table-body {\n height: 240px;\n overflow-y: auto !important;\n}\n.add_select_wrapper .ant-row.ant-form-item {\n margin-bottom: 10px;\n}\n.add_select_wrapper_click_flag {\n position: absolute;\n z-index: 10;\n}\n.add_select_wrapper_click_flag_arrow {\n transform: rotate(0deg);\n transition: transform 0.5s;\n}\n.add_select_wrapper_click_flag_arrow_1 {\n transform: rotate(-180deg);\n transition: transform 0.5s;\n}\n.add_select_wrapper_left {\n flex-basis: 298px;\n width: 298px;\n overflow-y: hidden;\n transition: all 0.3s;\n margin-right: 10px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n}\n.add_select_wrapper_left1 {\n width: 0;\n height: 0;\n transition: all 0.3s;\n display: none;\n}\n.add_select_wrapper_right {\n width: 872px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n}\n.add_select_wrapper_right1 {\n width: 100%;\n margin-left: 10px;\n}\n.add_select_wrapper_right,\n.add_select_wrapper_right1 {\n overflow-x: auto;\n}\n.add_select_wrapper .select_list_columns {\n height: 272px;\n overflow-y: auto;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper .select_list_columns_tips {\n background: #eee;\n padding: 6px 20px;\n margin-bottom: 10px;\n}\n.add_select_wrapper .select_list_columns_formItems {\n padding: 7px 10px;\n}\n.add_select_wrapper .select_list_searchButton {\n display: flex;\n margin: 10px;\n justify-content: flex-end;\n}\n.add_select_wrapper .select_list_button_space {\n margin-right: 10px;\n}\n.add_select_wrapper .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 24px;\n font-size: 12px;\n line-height: 24px;\n background: #F7F8FB;\n padding: 0 5px;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper .select_list_selectAll {\n position: relative;\n top: -40px;\n left: 20px;\n width: 160px;\n}\n.add_select_wrapper_select {\n margin-top: 4px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n margin: 5px 10px;\n}\n.add_select_wrapper_select .ant-table-pagination.ant-pagination {\n margin: 9px;\n padding-right: 5px;\n}\n.add_select_wrapper_select .ant-modal-body {\n padding: 10px;\n}\n.add_select_wrapper_select .ant-table-wrapper {\n padding: 0px !important;\n}\n.add_select_wrapper_select .ant-table-thead th {\n height: 23px !important;\n padding: 0px 8px !important;\n font-size: 12px !important;\n font-weight: 600 !important;\n line-height: 23px !important;\n}\n.add_select_wrapper_select .ant-modal-close-x {\n height: 30px;\n}\n.add_select_wrapper_select .row-class {\n height: 30px;\n}\n.add_select_wrapper_select .row-class td {\n font-size: 12px !important;\n height: 30px !important;\n padding: 4px 8px !important;\n}\n.add_select_wrapper_select .ant-table-body {\n height: 200px;\n overflow-y: auto !important;\n}\n.add_select_wrapper_select .ant-row.ant-form-item {\n margin-bottom: 10px;\n}\n.add_select_wrapper_select .ant-input-number-input,\n.add_select_wrapper_select .ant-input {\n height: auto;\n height: 22px;\n padding: 0px 10px;\n font-size: 12px;\n}\n.add_select_wrapper_select .ant-select-selection-search-input {\n height: auto;\n height: 22px !important;\n padding: 0px 10px;\n font-size: 12px;\n}\n.add_select_wrapper_select .ant-select .ant-select-arrow {\n top: 13px;\n}\n.add_select_wrapper_select .ant-select-selector {\n position: relative;\n top: 1px;\n height: 23px !important;\n line-height: 23px !important;\n}\n.add_select_wrapper_select .ant-select-selector .ant-select-selection-item,\n.add_select_wrapper_select .ant-select-selector ant-select-selection-search {\n height: 23px !important;\n line-height: 23px !important;\n font-size: 12px;\n}\n.add_select_wrapper_select .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 24px;\n font-size: 12px;\n line-height: 24px;\n background: #F7F8FB;\n padding: 0 3px;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick {\n margin: 0;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .ant-table-body {\n height: 240px;\n overflow-y: auto !important;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .table_base {\n background: #fff;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .table_odd {\n background: #f7f8fb;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .ant-table-cell-fix-left,\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .ant-table-cell-fix-right {\n background: #FFFFFF !important;\n}\n";
|
|
7198
7218
|
styleInject(css_248z$8);
|
|
@@ -8018,10 +8038,10 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8018
8038
|
var newColumns = arr.map(function (col) {
|
|
8019
8039
|
return _objectSpread2({}, col);
|
|
8020
8040
|
});
|
|
8021
|
-
var
|
|
8041
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
8022
8042
|
var i = indexArr.shift();
|
|
8023
8043
|
if (indexArr.length > 0) {
|
|
8024
|
-
|
|
8044
|
+
handleIndex(arr[i].children, indexArr);
|
|
8025
8045
|
} else {
|
|
8026
8046
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
8027
8047
|
width: size.width
|
|
@@ -8029,17 +8049,17 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8029
8049
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
8030
8050
|
}
|
|
8031
8051
|
};
|
|
8032
|
-
|
|
8052
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
8033
8053
|
callback(newColumns);
|
|
8034
8054
|
};
|
|
8035
8055
|
};
|
|
8036
|
-
var
|
|
8056
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
8037
8057
|
arr.forEach(function (item, index) {
|
|
8038
8058
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
8039
8059
|
return i || i === 0;
|
|
8040
8060
|
});
|
|
8041
8061
|
if (noEmptyArray$1(item.children)) {
|
|
8042
|
-
|
|
8062
|
+
handleColumns(item.children, indexArrInside);
|
|
8043
8063
|
} else {
|
|
8044
8064
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
8045
8065
|
item.onHeaderCell = function (column) {
|
|
@@ -8055,7 +8075,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8055
8075
|
handleAntdColumnsSpecialParams(item);
|
|
8056
8076
|
return _objectSpread2({}, item);
|
|
8057
8077
|
});
|
|
8058
|
-
|
|
8078
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
8059
8079
|
return setShowColumnsCallback(res);
|
|
8060
8080
|
});
|
|
8061
8081
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -8323,13 +8343,7 @@ var hasDictSharingType = (_getDictionarySource = getDictionarySource$1('UC000013
|
|
|
8323
8343
|
var sharingTypeDataList = hasDictSharingType && getDictionarySource$1('UC000013') || sharingType;
|
|
8324
8344
|
function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps, hiddenFields) {
|
|
8325
8345
|
// 默认type === 'supplier' 供应商选择器
|
|
8326
|
-
var requestConfig = _objectSpread2({
|
|
8327
|
-
url: "".concat(prefixUrl.selectPrefix, "/supplier"),
|
|
8328
|
-
filter: 'qp-name,code-orGroup,like',
|
|
8329
|
-
otherParams: {
|
|
8330
|
-
sorter: 'desc-id'
|
|
8331
|
-
}
|
|
8332
|
-
}, requestConfigProp);
|
|
8346
|
+
var requestConfig = _objectSpread2({}, requestConfigProp);
|
|
8333
8347
|
/*
|
|
8334
8348
|
* 处理 格式化下拉框数据源
|
|
8335
8349
|
* reData 必传 promise返回响应的数据 格式为[{},{},{},...] Promise.all第一个参数数组有多少个数组长度就是多少,其中每个对象为每次请求的结果数据
|
|
@@ -8354,7 +8368,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps, hidde
|
|
|
8354
8368
|
});
|
|
8355
8369
|
};
|
|
8356
8370
|
// 格式化树选择器数据源
|
|
8357
|
-
var
|
|
8371
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
8358
8372
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
8359
8373
|
return {
|
|
8360
8374
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -8364,7 +8378,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps, hidde
|
|
|
8364
8378
|
isLeaf: !haveChildren,
|
|
8365
8379
|
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
8366
8380
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
8367
|
-
return
|
|
8381
|
+
return mapSearchTree(i, resKeyValue, disabledJudge);
|
|
8368
8382
|
}) : []
|
|
8369
8383
|
};
|
|
8370
8384
|
};
|
|
@@ -8378,7 +8392,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps, hidde
|
|
|
8378
8392
|
disabledJudge = false;
|
|
8379
8393
|
}
|
|
8380
8394
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
8381
|
-
return
|
|
8395
|
+
return mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
8382
8396
|
}) || [];
|
|
8383
8397
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
8384
8398
|
};
|
|
@@ -8389,6 +8403,12 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps, hidde
|
|
|
8389
8403
|
tableColumns: []
|
|
8390
8404
|
}, modalTableBusProps);
|
|
8391
8405
|
var needModalTable = (modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needModalTable) !== undefined ? modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needModalTable : true;
|
|
8406
|
+
//自定义 配置取外层传过来的
|
|
8407
|
+
if (type === 'custom') {
|
|
8408
|
+
modalTableProps = _objectSpread2({
|
|
8409
|
+
requestConfig: requestConfig
|
|
8410
|
+
}, modalTableBusProps);
|
|
8411
|
+
}
|
|
8392
8412
|
// 供应商选择器
|
|
8393
8413
|
if (type === 'supplier') {
|
|
8394
8414
|
tableSearchForm = [{
|
|
@@ -10721,6 +10741,94 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps, hidde
|
|
|
10721
10741
|
}]
|
|
10722
10742
|
}, modalTableBusProps);
|
|
10723
10743
|
}
|
|
10744
|
+
// 订单标签选择器(广药用)
|
|
10745
|
+
if (type === 'orderTag') {
|
|
10746
|
+
requestConfig = _objectSpread2({
|
|
10747
|
+
url: "".concat(prefixUrl.selectPrefix || '/oms-ops', "/tag"),
|
|
10748
|
+
filter: 'qp-code,name-orGroup,like',
|
|
10749
|
+
mappingTextField: 'name',
|
|
10750
|
+
mappingTextShowKeyField: 'code',
|
|
10751
|
+
mappingValueField: 'code',
|
|
10752
|
+
otherParams: {
|
|
10753
|
+
'qp-status-eq': 1,
|
|
10754
|
+
sorter: 'desc-id'
|
|
10755
|
+
},
|
|
10756
|
+
sourceName: 'code'
|
|
10757
|
+
}, requestConfigProp);
|
|
10758
|
+
tableSearchForm = [{
|
|
10759
|
+
name: 'qp-code-like',
|
|
10760
|
+
label: '标签编码'
|
|
10761
|
+
}, {
|
|
10762
|
+
name: 'qp-name-like',
|
|
10763
|
+
label: '标签名称'
|
|
10764
|
+
}];
|
|
10765
|
+
modalTableProps = _objectSpread2({
|
|
10766
|
+
modalTableTitle: '选择订单标签',
|
|
10767
|
+
tableSearchForm: tableSearchForm,
|
|
10768
|
+
tableColumns: [{
|
|
10769
|
+
dataIndex: 'code',
|
|
10770
|
+
title: '标签编码'
|
|
10771
|
+
}, {
|
|
10772
|
+
dataIndex: 'name',
|
|
10773
|
+
title: '标签名称'
|
|
10774
|
+
}, {
|
|
10775
|
+
dataIndex: 'systemFlag',
|
|
10776
|
+
title: '是否系统标签',
|
|
10777
|
+
render: function render(_ref) {
|
|
10778
|
+
var text = _ref.text;
|
|
10779
|
+
return {
|
|
10780
|
+
0: '否',
|
|
10781
|
+
1: '是'
|
|
10782
|
+
}[text];
|
|
10783
|
+
}
|
|
10784
|
+
}, {
|
|
10785
|
+
dataIndex: 'tagType',
|
|
10786
|
+
title: '标签类型',
|
|
10787
|
+
render: function render(_ref2) {
|
|
10788
|
+
var text = _ref2.text;
|
|
10789
|
+
return getDictionaryTextByValue$1('order_tag_type', text);
|
|
10790
|
+
}
|
|
10791
|
+
}, {
|
|
10792
|
+
dataIndex: 'detail',
|
|
10793
|
+
title: '标签备注'
|
|
10794
|
+
}]
|
|
10795
|
+
}, modalTableBusProps);
|
|
10796
|
+
}
|
|
10797
|
+
// 商品集合选择器(广药用)
|
|
10798
|
+
if (type === 'itemGroup') {
|
|
10799
|
+
requestConfig = _objectSpread2({
|
|
10800
|
+
url: "".concat(prefixUrl.selectPrefix || '/items', "/ocpgoodssetdef"),
|
|
10801
|
+
filter: 'qp-code,name-orGroup,like',
|
|
10802
|
+
mappingTextField: 'setName',
|
|
10803
|
+
mappingTextShowKeyField: 'setId',
|
|
10804
|
+
mappingValueField: 'setId',
|
|
10805
|
+
otherParams: {
|
|
10806
|
+
sorter: 'desc-id'
|
|
10807
|
+
},
|
|
10808
|
+
sourceName: 'setId'
|
|
10809
|
+
}, requestConfigProp);
|
|
10810
|
+
tableSearchForm = [{
|
|
10811
|
+
name: 'qp-setName-like',
|
|
10812
|
+
label: '商品集合名称'
|
|
10813
|
+
}];
|
|
10814
|
+
modalTableProps = _objectSpread2({
|
|
10815
|
+
modalTableTitle: '选择商品集合',
|
|
10816
|
+
tableSearchForm: tableSearchForm,
|
|
10817
|
+
tableColumns: [{
|
|
10818
|
+
title: '序号',
|
|
10819
|
+
dataIndex: 'keyIndex',
|
|
10820
|
+
render: function render(text, record, index) {
|
|
10821
|
+
return handleTextOverflow(String(index + 1), 60);
|
|
10822
|
+
}
|
|
10823
|
+
}, {
|
|
10824
|
+
dataIndex: 'setId',
|
|
10825
|
+
title: '商品集合ID'
|
|
10826
|
+
}, {
|
|
10827
|
+
dataIndex: 'setName',
|
|
10828
|
+
title: '商品集合名称'
|
|
10829
|
+
}]
|
|
10830
|
+
}, modalTableBusProps);
|
|
10831
|
+
}
|
|
10724
10832
|
return {
|
|
10725
10833
|
modalTableProps: modalTableProps,
|
|
10726
10834
|
requestConfig: requestConfig,
|
|
@@ -10730,7 +10838,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps, hidde
|
|
|
10730
10838
|
|
|
10731
10839
|
var MemoSearchSelect = /*#__PURE__*/React$1.memo(SearchSelect);
|
|
10732
10840
|
var BusinessSearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
10733
|
-
var businessType = (props === null || props === void 0 ? void 0 : props.selectBusinessType) || '
|
|
10841
|
+
var businessType = (props === null || props === void 0 ? void 0 : props.selectBusinessType) || 'custom';
|
|
10734
10842
|
var prefixUrl = (props === null || props === void 0 ? void 0 : props.prefixUrl) || {
|
|
10735
10843
|
selectPrefix: handleDefaultPrefixUrl(businessType),
|
|
10736
10844
|
formSelectFix: handleDefaultPrefixUrl(businessType)
|
|
@@ -12093,7 +12201,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12093
12201
|
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
|
|
12094
12202
|
_remoteSource$special = remoteSource.specialBracket,
|
|
12095
12203
|
specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
|
|
12096
|
-
var
|
|
12204
|
+
var mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
12097
12205
|
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
12098
12206
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
12099
12207
|
return {
|
|
@@ -12105,7 +12213,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12105
12213
|
isLeaf: !haveChildren,
|
|
12106
12214
|
disabled: isDisabled(haveChildren, isRoot),
|
|
12107
12215
|
children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
|
|
12108
|
-
return
|
|
12216
|
+
return mapSearchTree(i);
|
|
12109
12217
|
}) : []
|
|
12110
12218
|
};
|
|
12111
12219
|
};
|
|
@@ -12151,7 +12259,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12151
12259
|
case 9:
|
|
12152
12260
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
12153
12261
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
12154
|
-
return
|
|
12262
|
+
return mapSearchTree(ites);
|
|
12155
12263
|
}) || [];
|
|
12156
12264
|
case 11:
|
|
12157
12265
|
_context.next = 14;
|
|
@@ -12189,11 +12297,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12189
12297
|
return _formatResult;
|
|
12190
12298
|
}
|
|
12191
12299
|
};
|
|
12192
|
-
var
|
|
12300
|
+
var parallelData = function parallelData(data, result) {
|
|
12193
12301
|
data.forEach(function (i) {
|
|
12194
12302
|
result.push(i);
|
|
12195
12303
|
if (i[treeChildrenRoom]) {
|
|
12196
|
-
|
|
12304
|
+
parallelData(i[treeChildrenRoom], result);
|
|
12197
12305
|
}
|
|
12198
12306
|
});
|
|
12199
12307
|
return result;
|
|
@@ -12233,7 +12341,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12233
12341
|
var _ctx$form2;
|
|
12234
12342
|
var handleData = formatData(data);
|
|
12235
12343
|
// 获取选中树节点当条数据,并返回给调用业务
|
|
12236
|
-
var parallelTreeData =
|
|
12344
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
12237
12345
|
var currentItem = getSelectItem(parallelTreeData, data);
|
|
12238
12346
|
onChange(handleData, data, currentItem, parallelTreeData);
|
|
12239
12347
|
onChangeName && onChangeName(dataName);
|
|
@@ -12276,7 +12384,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12276
12384
|
var getShowStr = function getShowStr() {
|
|
12277
12385
|
var isMultiple = multiple || treeCheckable;
|
|
12278
12386
|
var kongValue = '无';
|
|
12279
|
-
var parallelTreeData =
|
|
12387
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
12280
12388
|
var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
|
|
12281
12389
|
if (isMultiple) {
|
|
12282
12390
|
return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
|
|
@@ -12969,7 +13077,9 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
12969
13077
|
var _this$props$datasourc = _this.props.datasource,
|
|
12970
13078
|
datasource = _this$props$datasourc === void 0 ? [] : _this$props$datasourc;
|
|
12971
13079
|
_this.setState({
|
|
12972
|
-
visible: true
|
|
13080
|
+
visible: true,
|
|
13081
|
+
onSearchSort: false,
|
|
13082
|
+
searchDataSource: false
|
|
12973
13083
|
});
|
|
12974
13084
|
_this.setInitValue(datasource);
|
|
12975
13085
|
};
|
|
@@ -13416,10 +13526,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13416
13526
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
13417
13527
|
return _objectSpread2({}, col);
|
|
13418
13528
|
});
|
|
13419
|
-
var
|
|
13529
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
13420
13530
|
var i = indexArr.shift();
|
|
13421
13531
|
if (indexArr.length > 0) {
|
|
13422
|
-
|
|
13532
|
+
handleIndex(arr[i].children, indexArr);
|
|
13423
13533
|
} else {
|
|
13424
13534
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
13425
13535
|
width: size.width
|
|
@@ -13427,7 +13537,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13427
13537
|
handleBssulaColumnsSpecialParams(arr[i]);
|
|
13428
13538
|
}
|
|
13429
13539
|
};
|
|
13430
|
-
|
|
13540
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
13431
13541
|
_this.setState({
|
|
13432
13542
|
showColumns: _toConsumableArray(newColumns)
|
|
13433
13543
|
});
|
|
@@ -13506,13 +13616,13 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13506
13616
|
showSummary = summary;
|
|
13507
13617
|
}
|
|
13508
13618
|
}
|
|
13509
|
-
var
|
|
13619
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
13510
13620
|
arr.forEach(function (item, index) {
|
|
13511
13621
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
13512
13622
|
return i || i === 0;
|
|
13513
13623
|
});
|
|
13514
13624
|
if (noEmptyArray$1(item.children)) {
|
|
13515
|
-
|
|
13625
|
+
handleColumns(item.children, indexArrInside);
|
|
13516
13626
|
} else {
|
|
13517
13627
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
13518
13628
|
item.onHeaderCell = function (column) {
|
|
@@ -13528,7 +13638,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13528
13638
|
handleBssulaColumnsSpecialParams(item);
|
|
13529
13639
|
return _objectSpread2({}, item);
|
|
13530
13640
|
});
|
|
13531
|
-
|
|
13641
|
+
handleColumns(showCol, []);
|
|
13532
13642
|
if (dynamicColumns.length) {
|
|
13533
13643
|
showCol = this.handledynamicColumns(showCol);
|
|
13534
13644
|
}
|
|
@@ -13653,10 +13763,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13653
13763
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
13654
13764
|
return _objectSpread2({}, col);
|
|
13655
13765
|
});
|
|
13656
|
-
var
|
|
13766
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
13657
13767
|
var i = indexArr.shift();
|
|
13658
13768
|
if (indexArr.length > 0) {
|
|
13659
|
-
|
|
13769
|
+
handleIndex(arr[i].children, indexArr);
|
|
13660
13770
|
} else {
|
|
13661
13771
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
13662
13772
|
width: size.width
|
|
@@ -13664,7 +13774,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13664
13774
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
13665
13775
|
}
|
|
13666
13776
|
};
|
|
13667
|
-
|
|
13777
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
13668
13778
|
_this.setState({
|
|
13669
13779
|
showColumns: _toConsumableArray(newColumns)
|
|
13670
13780
|
});
|
|
@@ -13740,13 +13850,13 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13740
13850
|
showSummary = summary;
|
|
13741
13851
|
}
|
|
13742
13852
|
}
|
|
13743
|
-
var
|
|
13853
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
13744
13854
|
arr.forEach(function (item, index) {
|
|
13745
13855
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
13746
13856
|
return i || i === 0;
|
|
13747
13857
|
});
|
|
13748
13858
|
if (noEmptyArray$1(item.children)) {
|
|
13749
|
-
|
|
13859
|
+
handleColumns(item.children, indexArrInside);
|
|
13750
13860
|
} else {
|
|
13751
13861
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
13752
13862
|
item.onHeaderCell = function (column) {
|
|
@@ -13762,7 +13872,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13762
13872
|
handleAntdColumnsSpecialParams(item);
|
|
13763
13873
|
return _objectSpread2({}, item);
|
|
13764
13874
|
});
|
|
13765
|
-
|
|
13875
|
+
handleColumns(showCol, []);
|
|
13766
13876
|
if (dynamicColumns.length) {
|
|
13767
13877
|
showCol = this.handledynamicColumns(showCol);
|
|
13768
13878
|
}
|
|
@@ -13855,20 +13965,20 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
|
|
|
13855
13965
|
};
|
|
13856
13966
|
var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
13857
13967
|
var routerMap = {};
|
|
13858
|
-
var
|
|
13968
|
+
var flattenMenuData = function flattenMenuData(data, parent) {
|
|
13859
13969
|
var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
|
|
13860
13970
|
data.forEach(function (menuItem) {
|
|
13861
13971
|
var newMenuItem = _objectSpread2(_objectSpread2({}, menuItem), {}, {
|
|
13862
13972
|
nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
|
|
13863
13973
|
});
|
|
13864
13974
|
if (newMenuItem.children) {
|
|
13865
|
-
|
|
13975
|
+
flattenMenuData(newMenuItem.children, newMenuItem);
|
|
13866
13976
|
}
|
|
13867
13977
|
// Reduce memory usage
|
|
13868
13978
|
routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
|
|
13869
13979
|
});
|
|
13870
13980
|
};
|
|
13871
|
-
|
|
13981
|
+
flattenMenuData(menuData, {});
|
|
13872
13982
|
return routerMap;
|
|
13873
13983
|
};
|
|
13874
13984
|
// mode类型判断
|
|
@@ -14693,7 +14803,9 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
14693
14803
|
}];
|
|
14694
14804
|
_this.showModal = function () {
|
|
14695
14805
|
_this.setState({
|
|
14696
|
-
visible: true
|
|
14806
|
+
visible: true,
|
|
14807
|
+
onSearchSort: false,
|
|
14808
|
+
searchDataSource: false
|
|
14697
14809
|
});
|
|
14698
14810
|
_this.setInitValue();
|
|
14699
14811
|
};
|
|
@@ -15276,7 +15388,9 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15276
15388
|
}];
|
|
15277
15389
|
_this.showModal = function () {
|
|
15278
15390
|
_this.setState({
|
|
15279
|
-
visible: true
|
|
15391
|
+
visible: true,
|
|
15392
|
+
onSearchSort: false,
|
|
15393
|
+
searchDataSource: false
|
|
15280
15394
|
});
|
|
15281
15395
|
_this.setInitValue();
|
|
15282
15396
|
};
|
|
@@ -16307,11 +16421,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
16307
16421
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
16308
16422
|
var resultList = [];
|
|
16309
16423
|
var newRouter = cloneDeep(router);
|
|
16310
|
-
var
|
|
16424
|
+
var deep = function deep(router) {
|
|
16311
16425
|
if (router && Array.isArray(router)) {
|
|
16312
16426
|
router.forEach(function (item) {
|
|
16313
16427
|
if (item.children && Array.isArray(item.children)) {
|
|
16314
|
-
|
|
16428
|
+
deep(item.children);
|
|
16315
16429
|
} else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
|
|
16316
16430
|
return d === item.code;
|
|
16317
16431
|
})) {
|
|
@@ -16325,10 +16439,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
16325
16439
|
resultList.push(_objectSpread2({}, router));
|
|
16326
16440
|
}
|
|
16327
16441
|
};
|
|
16328
|
-
|
|
16442
|
+
deep(newRouter);
|
|
16329
16443
|
callBack([].concat(resultList));
|
|
16330
16444
|
};
|
|
16331
|
-
var
|
|
16445
|
+
var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
16332
16446
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
16333
16447
|
var _loop = function _loop(i) {
|
|
16334
16448
|
if (routesData[i].hideInMenu) {
|
|
@@ -16342,7 +16456,7 @@ var _setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
16342
16456
|
return 0; // continue
|
|
16343
16457
|
}
|
|
16344
16458
|
if (routesData[i].children) {
|
|
16345
|
-
|
|
16459
|
+
setMenuTreeData(routesData[i].children);
|
|
16346
16460
|
}
|
|
16347
16461
|
},
|
|
16348
16462
|
_ret;
|
|
@@ -16363,16 +16477,16 @@ var setLoginOutPath = function setLoginOutPath() {
|
|
|
16363
16477
|
};
|
|
16364
16478
|
var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
|
|
16365
16479
|
var routerMap = {};
|
|
16366
|
-
var
|
|
16480
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
16367
16481
|
data.forEach(function (menuItem) {
|
|
16368
16482
|
if (menuItem.children) {
|
|
16369
|
-
|
|
16483
|
+
flattenMenuData(menuItem.children);
|
|
16370
16484
|
}
|
|
16371
16485
|
// Reduce memory usage
|
|
16372
16486
|
routerMap[menuItem.path] = menuItem;
|
|
16373
16487
|
});
|
|
16374
16488
|
};
|
|
16375
|
-
|
|
16489
|
+
flattenMenuData(menuData);
|
|
16376
16490
|
return routerMap;
|
|
16377
16491
|
};
|
|
16378
16492
|
var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
|
|
@@ -16518,7 +16632,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
16518
16632
|
sethomepageData(homepageDataList);
|
|
16519
16633
|
setroutesData(routesDataList);
|
|
16520
16634
|
}, []);
|
|
16521
|
-
var
|
|
16635
|
+
var renderChildItem = function renderChildItem(child) {
|
|
16522
16636
|
if (!child.hideInMenu && child.children) {
|
|
16523
16637
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
16524
16638
|
style: {
|
|
@@ -16528,7 +16642,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
16528
16642
|
}, formatMessage({
|
|
16529
16643
|
id: "".concat(child.locale)
|
|
16530
16644
|
})), child.children.map(function (menuItem) {
|
|
16531
|
-
return
|
|
16645
|
+
return renderChildItem(menuItem);
|
|
16532
16646
|
}));
|
|
16533
16647
|
} else if (!child.hideInMenu && child.path) {
|
|
16534
16648
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -16598,7 +16712,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
16598
16712
|
bordered: true,
|
|
16599
16713
|
dataSource: item.children,
|
|
16600
16714
|
renderItem: function renderItem(child) {
|
|
16601
|
-
return
|
|
16715
|
+
return renderChildItem(child);
|
|
16602
16716
|
}
|
|
16603
16717
|
});
|
|
16604
16718
|
})));
|
|
@@ -17261,7 +17375,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
17261
17375
|
var resultList = [];
|
|
17262
17376
|
var newRouter = cloneDeep$1(router);
|
|
17263
17377
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
17264
|
-
var
|
|
17378
|
+
var deep = function deep(router) {
|
|
17265
17379
|
if (router && Array.isArray(router)) {
|
|
17266
17380
|
router.forEach(function (item) {
|
|
17267
17381
|
if (item.routes && Array.isArray(item.routes)) {
|
|
@@ -17271,7 +17385,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
17271
17385
|
d.nameEdit = true;
|
|
17272
17386
|
}
|
|
17273
17387
|
});
|
|
17274
|
-
|
|
17388
|
+
deep(item.routes);
|
|
17275
17389
|
} else if (!item.hideInMenu && (name ? formatMessage({
|
|
17276
17390
|
id: "menu.".concat(item.name)
|
|
17277
17391
|
}).indexOf(name) !== -1 : true)) {
|
|
@@ -17290,7 +17404,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
17290
17404
|
}));
|
|
17291
17405
|
}
|
|
17292
17406
|
};
|
|
17293
|
-
|
|
17407
|
+
deep(newRouter);
|
|
17294
17408
|
setroutesData([].concat(resultList));
|
|
17295
17409
|
};
|
|
17296
17410
|
var renderLineStyl = function renderLineStyl(name) {
|
|
@@ -17387,7 +17501,7 @@ var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
17387
17501
|
var TreeNode = Tree.TreeNode;
|
|
17388
17502
|
var Search$2 = Input.Search;
|
|
17389
17503
|
var dataList = [];
|
|
17390
|
-
var
|
|
17504
|
+
var generateList = function generateList(data) {
|
|
17391
17505
|
for (var i = 0; i < data.length; i++) {
|
|
17392
17506
|
var node = data[i];
|
|
17393
17507
|
var path = node.path,
|
|
@@ -17397,11 +17511,11 @@ var _generateList = function generateList(data) {
|
|
|
17397
17511
|
name: name
|
|
17398
17512
|
});
|
|
17399
17513
|
if (node.children) {
|
|
17400
|
-
|
|
17514
|
+
generateList(node.children);
|
|
17401
17515
|
}
|
|
17402
17516
|
}
|
|
17403
17517
|
};
|
|
17404
|
-
var
|
|
17518
|
+
var getParentKey = function getParentKey(path, tree) {
|
|
17405
17519
|
var parentKey;
|
|
17406
17520
|
for (var i = 0; i < tree.length; i++) {
|
|
17407
17521
|
var node = tree[i];
|
|
@@ -17410,8 +17524,8 @@ var _getParentKey = function getParentKey(path, tree) {
|
|
|
17410
17524
|
return item.path === path;
|
|
17411
17525
|
})) {
|
|
17412
17526
|
parentKey = node.path;
|
|
17413
|
-
} else if (
|
|
17414
|
-
parentKey =
|
|
17527
|
+
} else if (getParentKey(path, node.children)) {
|
|
17528
|
+
parentKey = getParentKey(path, node.children);
|
|
17415
17529
|
}
|
|
17416
17530
|
}
|
|
17417
17531
|
}
|
|
@@ -17442,7 +17556,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17442
17556
|
var treeData = _this.state.treeData;
|
|
17443
17557
|
var expandedKeys = dataList.map(function (item) {
|
|
17444
17558
|
if (item.name.indexOf(value) > -1) {
|
|
17445
|
-
return
|
|
17559
|
+
return getParentKey(item.path, treeData);
|
|
17446
17560
|
}
|
|
17447
17561
|
return null;
|
|
17448
17562
|
}).filter(function (item, i, self) {
|
|
@@ -17456,22 +17570,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17456
17570
|
};
|
|
17457
17571
|
_this.getPathList = function (originData) {
|
|
17458
17572
|
var pathList = [];
|
|
17459
|
-
var
|
|
17573
|
+
var getList = function getList(data) {
|
|
17460
17574
|
if (Array.isArray(data)) {
|
|
17461
17575
|
data.forEach(function (item) {
|
|
17462
17576
|
pathList.push(item.path);
|
|
17463
17577
|
if (item.children) {
|
|
17464
|
-
|
|
17578
|
+
getList(item.children);
|
|
17465
17579
|
}
|
|
17466
17580
|
});
|
|
17467
17581
|
} else {
|
|
17468
17582
|
pathList.push(data.path);
|
|
17469
17583
|
if (data.children) {
|
|
17470
|
-
|
|
17584
|
+
getList(data.children);
|
|
17471
17585
|
}
|
|
17472
17586
|
}
|
|
17473
17587
|
};
|
|
17474
|
-
|
|
17588
|
+
getList(originData);
|
|
17475
17589
|
return pathList;
|
|
17476
17590
|
};
|
|
17477
17591
|
_this.handleAdd2Menu = function (path) {
|
|
@@ -17480,18 +17594,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17480
17594
|
customerMenuData = _this$props.customerMenuData,
|
|
17481
17595
|
setCustomerMenuData = _this$props.setCustomerMenuData;
|
|
17482
17596
|
var filterItem;
|
|
17483
|
-
var
|
|
17597
|
+
var filterMenuItem = function filterMenuItem(menuData) {
|
|
17484
17598
|
menuData.forEach(function (item) {
|
|
17485
17599
|
if (item.path === path) {
|
|
17486
17600
|
filterItem = _objectSpread2({}, item);
|
|
17487
17601
|
return;
|
|
17488
17602
|
}
|
|
17489
17603
|
if (item.children) {
|
|
17490
|
-
|
|
17604
|
+
filterMenuItem(item.children);
|
|
17491
17605
|
}
|
|
17492
17606
|
});
|
|
17493
17607
|
};
|
|
17494
|
-
|
|
17608
|
+
filterMenuItem(treeData);
|
|
17495
17609
|
var addPathList = _this.getPathList(filterItem);
|
|
17496
17610
|
var oldPathList = _this.getPathList(customerMenuData);
|
|
17497
17611
|
var isRepet = false;
|
|
@@ -17521,8 +17635,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17521
17635
|
return item.path === '/';
|
|
17522
17636
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
17523
17637
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
17524
|
-
|
|
17525
|
-
|
|
17638
|
+
setMenuTreeData(routesData);
|
|
17639
|
+
generateList(routesData);
|
|
17526
17640
|
this.setState({
|
|
17527
17641
|
treeData: routesData
|
|
17528
17642
|
});
|
|
@@ -17536,7 +17650,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17536
17650
|
expandedKeys = _this$state.expandedKeys,
|
|
17537
17651
|
autoExpandParent = _this$state.autoExpandParent,
|
|
17538
17652
|
treeData = _this$state.treeData;
|
|
17539
|
-
var
|
|
17653
|
+
var loop = function loop(data) {
|
|
17540
17654
|
return data.map(function (item) {
|
|
17541
17655
|
var index = item.name.indexOf(searchValue);
|
|
17542
17656
|
var beforeStr = item.name.substr(0, index);
|
|
@@ -17567,7 +17681,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17567
17681
|
width: 18,
|
|
17568
17682
|
src: arrowRight
|
|
17569
17683
|
}))))
|
|
17570
|
-
},
|
|
17684
|
+
}, loop(item.children));
|
|
17571
17685
|
}
|
|
17572
17686
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
17573
17687
|
path: item.path,
|
|
@@ -17617,7 +17731,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17617
17731
|
onExpand: this.onExpand,
|
|
17618
17732
|
expandedKeys: expandedKeys,
|
|
17619
17733
|
autoExpandParent: autoExpandParent
|
|
17620
|
-
},
|
|
17734
|
+
}, loop(treeData))));
|
|
17621
17735
|
}
|
|
17622
17736
|
}]);
|
|
17623
17737
|
}(React$1.Component);
|
|
@@ -17650,24 +17764,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17650
17764
|
var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
|
|
17651
17765
|
var dragObj;
|
|
17652
17766
|
var finalDropItem;
|
|
17653
|
-
var
|
|
17767
|
+
var loop = function loop(data, path, callback) {
|
|
17654
17768
|
for (var i = 0; i < data.length; i++) {
|
|
17655
17769
|
if (data[i].path === path) {
|
|
17656
17770
|
return callback(data[i], i, data);
|
|
17657
17771
|
}
|
|
17658
17772
|
if (data[i].children) {
|
|
17659
|
-
|
|
17773
|
+
loop(data[i].children, path, callback);
|
|
17660
17774
|
}
|
|
17661
17775
|
}
|
|
17662
17776
|
};
|
|
17663
17777
|
var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
|
|
17664
|
-
|
|
17778
|
+
loop(data, dragKey, function (item, index, arr) {
|
|
17665
17779
|
arr.splice(index, 1);
|
|
17666
17780
|
dragObj = item;
|
|
17667
17781
|
});
|
|
17668
17782
|
if (!info.dropToGap) {
|
|
17669
17783
|
// Drop on the content
|
|
17670
|
-
|
|
17784
|
+
loop(data, dropKey, function (item) {
|
|
17671
17785
|
item.children = item.children || [];
|
|
17672
17786
|
item.children.unshift(dragObj);
|
|
17673
17787
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -17678,7 +17792,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17678
17792
|
// Is expanded
|
|
17679
17793
|
dropPosition === 1 // On the bottom gap
|
|
17680
17794
|
) {
|
|
17681
|
-
|
|
17795
|
+
loop(data, dropKey, function (item) {
|
|
17682
17796
|
item.children = item.children || [];
|
|
17683
17797
|
item.children.unshift(dragObj);
|
|
17684
17798
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -17686,7 +17800,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17686
17800
|
} else {
|
|
17687
17801
|
var ar;
|
|
17688
17802
|
var i;
|
|
17689
|
-
|
|
17803
|
+
loop(data, dropKey, function (item, index, arr) {
|
|
17690
17804
|
ar = arr;
|
|
17691
17805
|
i = index;
|
|
17692
17806
|
});
|
|
@@ -17725,17 +17839,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17725
17839
|
title: '编辑名称',
|
|
17726
17840
|
callBack: function callBack(newName) {
|
|
17727
17841
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
17728
|
-
var
|
|
17842
|
+
var editTreeDataName = function editTreeDataName(oldTreeData) {
|
|
17729
17843
|
oldTreeData.forEach(function (treeItem) {
|
|
17730
17844
|
if (treeItem.path === item.path) {
|
|
17731
17845
|
treeItem.name = newName;
|
|
17732
17846
|
}
|
|
17733
17847
|
if (treeItem.children) {
|
|
17734
|
-
|
|
17848
|
+
editTreeDataName(treeItem.children);
|
|
17735
17849
|
}
|
|
17736
17850
|
});
|
|
17737
17851
|
};
|
|
17738
|
-
|
|
17852
|
+
editTreeDataName(oldTreeData);
|
|
17739
17853
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
17740
17854
|
_this.setState({
|
|
17741
17855
|
modalInfo: {
|
|
@@ -17780,7 +17894,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17780
17894
|
title: '新增子目录',
|
|
17781
17895
|
callBack: function callBack(newName) {
|
|
17782
17896
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
17783
|
-
var
|
|
17897
|
+
var addChildFolder = function addChildFolder(oldTreeData) {
|
|
17784
17898
|
oldTreeData.forEach(function (treeItem) {
|
|
17785
17899
|
if (treeItem.path === item.path) {
|
|
17786
17900
|
treeItem.children ? treeItem.children.push({
|
|
@@ -17792,11 +17906,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17792
17906
|
}];
|
|
17793
17907
|
}
|
|
17794
17908
|
if (treeItem.children) {
|
|
17795
|
-
|
|
17909
|
+
addChildFolder(treeItem.children);
|
|
17796
17910
|
}
|
|
17797
17911
|
});
|
|
17798
17912
|
};
|
|
17799
|
-
|
|
17913
|
+
addChildFolder(oldTreeData);
|
|
17800
17914
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
17801
17915
|
_this.setState({
|
|
17802
17916
|
modalInfo: {
|
|
@@ -17855,7 +17969,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17855
17969
|
var _this$state = this.state,
|
|
17856
17970
|
modalInfo = _this$state.modalInfo,
|
|
17857
17971
|
checkedKeys = _this$state.checkedKeys;
|
|
17858
|
-
var
|
|
17972
|
+
var loop = function loop(data) {
|
|
17859
17973
|
return data.map(function (item) {
|
|
17860
17974
|
if (item.children && item.children.length) {
|
|
17861
17975
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
@@ -17872,7 +17986,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17872
17986
|
e.stopPropagation();
|
|
17873
17987
|
}
|
|
17874
17988
|
}, /*#__PURE__*/React$1.createElement(Space, null, /*#__PURE__*/React$1.createElement(EllipsisOutlined, null))))))
|
|
17875
|
-
},
|
|
17989
|
+
}, loop(item.children));
|
|
17876
17990
|
}
|
|
17877
17991
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
17878
17992
|
path: item.path,
|
|
@@ -17951,7 +18065,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17951
18065
|
children: 'children'
|
|
17952
18066
|
},
|
|
17953
18067
|
onDrop: this.onDrop
|
|
17954
|
-
},
|
|
18068
|
+
}, loop(this.props.customerMenuData))), /*#__PURE__*/React$1.createElement(Modal, {
|
|
17955
18069
|
width: 600,
|
|
17956
18070
|
bodyStyle: {
|
|
17957
18071
|
paddingTop: '32px',
|
|
@@ -18064,7 +18178,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18064
18178
|
pathname: item.path
|
|
18065
18179
|
});
|
|
18066
18180
|
};
|
|
18067
|
-
var
|
|
18181
|
+
var getMenuDom = function getMenuDom(menuData) {
|
|
18068
18182
|
return menuData.map(function (item) {
|
|
18069
18183
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
18070
18184
|
style: {
|
|
@@ -18079,7 +18193,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18079
18193
|
fontWeight: item.children || !item.component ? 'bolder' : '400',
|
|
18080
18194
|
paddingLeft: '4px'
|
|
18081
18195
|
}
|
|
18082
|
-
}, item.name), !!item.children && !!item.children.length &&
|
|
18196
|
+
}, item.name), !!item.children && !!item.children.length && getMenuDom(item.children));
|
|
18083
18197
|
});
|
|
18084
18198
|
};
|
|
18085
18199
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -18126,7 +18240,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18126
18240
|
visible: isDrawer
|
|
18127
18241
|
}, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("p", {
|
|
18128
18242
|
className: 'menu_title_line'
|
|
18129
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"),
|
|
18243
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"), getMenuDom(menuData)))), /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
18130
18244
|
title: /*#__PURE__*/React$1.createElement("span", {
|
|
18131
18245
|
style: {
|
|
18132
18246
|
fontWeight: '600',
|
|
@@ -18200,7 +18314,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
18200
18314
|
return item.path === '/';
|
|
18201
18315
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
18202
18316
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
18203
|
-
|
|
18317
|
+
setMenuTreeData(routesData);
|
|
18204
18318
|
routesData.forEach(function (item) {
|
|
18205
18319
|
if (item.children) {
|
|
18206
18320
|
routesDataList.push(item);
|
|
@@ -18230,7 +18344,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
18230
18344
|
setHeight(clientHeight - 190);
|
|
18231
18345
|
setDrawHeight(clientHeight - 70);
|
|
18232
18346
|
};
|
|
18233
|
-
var
|
|
18347
|
+
var renderChildItem = function renderChildItem(child) {
|
|
18234
18348
|
if (!child.hideInMenu && child.children) {
|
|
18235
18349
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
18236
18350
|
style: {
|
|
@@ -18240,7 +18354,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
18240
18354
|
}, formatMessage({
|
|
18241
18355
|
id: "".concat(child.locale)
|
|
18242
18356
|
})), child.children.map(function (menuItem) {
|
|
18243
|
-
return
|
|
18357
|
+
return renderChildItem(menuItem);
|
|
18244
18358
|
}));
|
|
18245
18359
|
} else if (!child.hideInMenu && child.path) {
|
|
18246
18360
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -18444,7 +18558,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
18444
18558
|
bordered: true,
|
|
18445
18559
|
dataSource: item.children,
|
|
18446
18560
|
renderItem: function renderItem(child) {
|
|
18447
|
-
return
|
|
18561
|
+
return renderChildItem(child);
|
|
18448
18562
|
}
|
|
18449
18563
|
});
|
|
18450
18564
|
})), /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -18602,10 +18716,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
18602
18716
|
var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
|
|
18603
18717
|
var menuKeys = [];
|
|
18604
18718
|
var docsId = [];
|
|
18605
|
-
var
|
|
18719
|
+
var getLimitedMenuKeys = function getLimitedMenuKeys(data) {
|
|
18606
18720
|
data.forEach(function (item) {
|
|
18607
18721
|
if (item.children && item.children.length > 0) {
|
|
18608
|
-
|
|
18722
|
+
getLimitedMenuKeys(item.children);
|
|
18609
18723
|
} else {
|
|
18610
18724
|
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
18611
18725
|
menuKeys.push(originPath);
|
|
@@ -18616,7 +18730,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
18616
18730
|
});
|
|
18617
18731
|
};
|
|
18618
18732
|
try {
|
|
18619
|
-
|
|
18733
|
+
getLimitedMenuKeys(limitedMenuData);
|
|
18620
18734
|
} catch (e) {}
|
|
18621
18735
|
return {
|
|
18622
18736
|
menuKeys: menuKeys,
|
|
@@ -18850,10 +18964,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
18850
18964
|
return (node.path || '').includes('all-general-documents');
|
|
18851
18965
|
};
|
|
18852
18966
|
// 递归获取树列表
|
|
18853
|
-
var
|
|
18967
|
+
var getTreeList = function getTreeList(data) {
|
|
18854
18968
|
data.forEach(function (node) {
|
|
18855
18969
|
if (node.routes && node.routes.length > 0) {
|
|
18856
|
-
|
|
18970
|
+
getTreeList(node.routes);
|
|
18857
18971
|
return;
|
|
18858
18972
|
}
|
|
18859
18973
|
// todo:暂时处理非wujie环境不做404管控
|
|
@@ -18884,7 +18998,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
18884
18998
|
}
|
|
18885
18999
|
});
|
|
18886
19000
|
};
|
|
18887
|
-
|
|
19001
|
+
getTreeList(treeData);
|
|
18888
19002
|
return treeList;
|
|
18889
19003
|
};
|
|
18890
19004
|
_this.getDictionarySource = function (dicCode) {
|
|
@@ -19945,12 +20059,12 @@ var index$5 = (function (props) {
|
|
|
19945
20059
|
});
|
|
19946
20060
|
|
|
19947
20061
|
// @ts-nocheck
|
|
19948
|
-
var
|
|
20062
|
+
var getAllColumns = function getAllColumns(columns) {
|
|
19949
20063
|
var result = [];
|
|
19950
20064
|
columns.forEach(function (column) {
|
|
19951
20065
|
if (column.children) {
|
|
19952
20066
|
result.push(column);
|
|
19953
|
-
result.push.apply(result,
|
|
20067
|
+
result.push.apply(result, getAllColumns(column.children));
|
|
19954
20068
|
} else {
|
|
19955
20069
|
result.push(column);
|
|
19956
20070
|
}
|
|
@@ -19959,7 +20073,7 @@ var _getAllColumns = function getAllColumns(columns) {
|
|
|
19959
20073
|
};
|
|
19960
20074
|
var convertToRows = function convertToRows(originColumns) {
|
|
19961
20075
|
var maxLevel = 1;
|
|
19962
|
-
var
|
|
20076
|
+
var traverse = function traverse(column, parent) {
|
|
19963
20077
|
if (parent) {
|
|
19964
20078
|
column.level = parent.level + 1;
|
|
19965
20079
|
if (maxLevel < column.level) {
|
|
@@ -19969,7 +20083,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
19969
20083
|
if (column.children) {
|
|
19970
20084
|
var colSpan = 0;
|
|
19971
20085
|
column.children.forEach(function (subColumn) {
|
|
19972
|
-
|
|
20086
|
+
traverse(subColumn, column);
|
|
19973
20087
|
colSpan += subColumn.colSpan;
|
|
19974
20088
|
});
|
|
19975
20089
|
column.colSpan = colSpan;
|
|
@@ -19979,13 +20093,13 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
19979
20093
|
};
|
|
19980
20094
|
originColumns.forEach(function (column) {
|
|
19981
20095
|
column.level = 1;
|
|
19982
|
-
|
|
20096
|
+
traverse(column);
|
|
19983
20097
|
});
|
|
19984
20098
|
var rows = [];
|
|
19985
20099
|
for (var i = 0; i < maxLevel; i++) {
|
|
19986
20100
|
rows.push([]);
|
|
19987
20101
|
}
|
|
19988
|
-
var allColumns =
|
|
20102
|
+
var allColumns = getAllColumns(originColumns);
|
|
19989
20103
|
allColumns.forEach(function (column) {
|
|
19990
20104
|
if (!column.children) {
|
|
19991
20105
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -20025,7 +20139,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
20025
20139
|
};
|
|
20026
20140
|
var headersToRows = function headersToRows(originColumns) {
|
|
20027
20141
|
var maxLevel = 1;
|
|
20028
|
-
var
|
|
20142
|
+
var traverse = function traverse(column, parent) {
|
|
20029
20143
|
if (parent) {
|
|
20030
20144
|
//计算当前元素属于第几个层级
|
|
20031
20145
|
column.level = parent.level + 1;
|
|
@@ -20038,7 +20152,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
20038
20152
|
var colSpan = 0;
|
|
20039
20153
|
column.children.forEach(function (subColumn) {
|
|
20040
20154
|
//进行递归
|
|
20041
|
-
|
|
20155
|
+
traverse(subColumn, column);
|
|
20042
20156
|
colSpan += subColumn.colSpan;
|
|
20043
20157
|
});
|
|
20044
20158
|
column.colSpan = colSpan;
|
|
@@ -20048,14 +20162,14 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
20048
20162
|
};
|
|
20049
20163
|
originColumns.forEach(function (column) {
|
|
20050
20164
|
column.level = 1;
|
|
20051
|
-
|
|
20165
|
+
traverse(column);
|
|
20052
20166
|
});
|
|
20053
20167
|
var rows = [];
|
|
20054
20168
|
var lastData = [];
|
|
20055
20169
|
for (var i = 0; i < maxLevel; i++) {
|
|
20056
20170
|
rows.push([]);
|
|
20057
20171
|
}
|
|
20058
|
-
var allColumns =
|
|
20172
|
+
var allColumns = getAllColumns(originColumns);
|
|
20059
20173
|
allColumns.forEach(function (column) {
|
|
20060
20174
|
if (!column.children) {
|
|
20061
20175
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -26072,7 +26186,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
|
|
|
26072
26186
|
}
|
|
26073
26187
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
26074
26188
|
};
|
|
26075
|
-
var
|
|
26189
|
+
var hasHighLightChildren = function hasHighLightChildren() {
|
|
26076
26190
|
var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
26077
26191
|
var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
|
|
26078
26192
|
var children = hightLightData.children,
|
|
@@ -26083,7 +26197,7 @@ var _hasHighLightChildren = function hasHighLightChildren() {
|
|
|
26083
26197
|
lineEnd = _loc2[2];
|
|
26084
26198
|
if (children) {
|
|
26085
26199
|
return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
|
|
26086
|
-
return
|
|
26200
|
+
return hasHighLightChildren(v, highLightLine);
|
|
26087
26201
|
});
|
|
26088
26202
|
}
|
|
26089
26203
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
@@ -26095,7 +26209,7 @@ function createHighLightTreeData(treeData, highLightLine) {
|
|
|
26095
26209
|
var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
|
|
26096
26210
|
data.forEach(function (node) {
|
|
26097
26211
|
if (!node) return;
|
|
26098
|
-
node.toggled =
|
|
26212
|
+
node.toggled = hasHighLightChildren(node, highLightLine);
|
|
26099
26213
|
node.active = isHightLight(node, highLightLine);
|
|
26100
26214
|
if (node.children) {
|
|
26101
26215
|
if (node.active) {
|
|
@@ -29267,10 +29381,10 @@ var formatListName = function formatListName(list, columns) {
|
|
|
29267
29381
|
};
|
|
29268
29382
|
|
|
29269
29383
|
var _excluded$j = ["sorter"];
|
|
29270
|
-
/**
|
|
29271
|
-
* 删掉查询条件的qp- 和 -eq等
|
|
29272
|
-
* @param {object} data
|
|
29273
|
-
* @return {object}
|
|
29384
|
+
/**
|
|
29385
|
+
* 删掉查询条件的qp- 和 -eq等
|
|
29386
|
+
* @param {object} data
|
|
29387
|
+
* @return {object}
|
|
29274
29388
|
* */
|
|
29275
29389
|
function deleteQuerySymbol(data) {
|
|
29276
29390
|
var result = {};
|
|
@@ -29301,10 +29415,10 @@ function convertToMapByKey(data) {
|
|
|
29301
29415
|
return result;
|
|
29302
29416
|
}
|
|
29303
29417
|
|
|
29304
|
-
/**
|
|
29305
|
-
* 去掉查询表格的qp- -eq -in,与普通表格一样的格式
|
|
29306
|
-
* @param{string} prop 键
|
|
29307
|
-
* @param{boolean} flag 是不是查询表格
|
|
29418
|
+
/**
|
|
29419
|
+
* 去掉查询表格的qp- -eq -in,与普通表格一样的格式
|
|
29420
|
+
* @param{string} prop 键
|
|
29421
|
+
* @param{boolean} flag 是不是查询表格
|
|
29308
29422
|
* */
|
|
29309
29423
|
function convertProp(prop, flag) {
|
|
29310
29424
|
var _prop$replace, _prop$replace$replace, _prop$replace$replace2, _prop$replace$replace3;
|
|
@@ -32747,6 +32861,122 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32747
32861
|
});
|
|
32748
32862
|
}
|
|
32749
32863
|
}
|
|
32864
|
+
|
|
32865
|
+
// 商品标签选择器
|
|
32866
|
+
if (dataChoiceBusinessType == 450) {
|
|
32867
|
+
if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
|
|
32868
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
32869
|
+
selectBusinessType: "orderTag",
|
|
32870
|
+
selectProps: _objectSpread2({
|
|
32871
|
+
style: styleCommon,
|
|
32872
|
+
placeholder: '请选择商品标签'
|
|
32873
|
+
}, dataInputBusinessType === 12 ? {
|
|
32874
|
+
mode: 'multiple',
|
|
32875
|
+
maxTagCount: 1
|
|
32876
|
+
} : {}),
|
|
32877
|
+
disabled: disabled,
|
|
32878
|
+
labelInValue: true,
|
|
32879
|
+
value: values[0],
|
|
32880
|
+
requestConfig: {
|
|
32881
|
+
filterInit: 'qp-code-in'
|
|
32882
|
+
},
|
|
32883
|
+
onChange: function onChange(value) {
|
|
32884
|
+
if (dataInputBusinessType === 12) {
|
|
32885
|
+
values[0] = value.map(function (i) {
|
|
32886
|
+
return i.key;
|
|
32887
|
+
});
|
|
32888
|
+
valueNames[0] = value.map(function (i) {
|
|
32889
|
+
return i.label || '';
|
|
32890
|
+
});
|
|
32891
|
+
} else {
|
|
32892
|
+
values[0] = [value.key];
|
|
32893
|
+
valueNames[0] = [value.label || ''];
|
|
32894
|
+
}
|
|
32895
|
+
callback(values, valueNames);
|
|
32896
|
+
},
|
|
32897
|
+
getPopupContainer: function getPopupContainer() {
|
|
32898
|
+
return document.body;
|
|
32899
|
+
}
|
|
32900
|
+
}), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
32901
|
+
selectBusinessType: "orderTag",
|
|
32902
|
+
selectProps: _objectSpread2({
|
|
32903
|
+
style: styleCommon,
|
|
32904
|
+
placeholder: '请选择商品标签'
|
|
32905
|
+
}, dataInputBusinessType === 12 ? {
|
|
32906
|
+
mode: 'multiple',
|
|
32907
|
+
maxTagCount: 1
|
|
32908
|
+
} : {}),
|
|
32909
|
+
disabled: disabled,
|
|
32910
|
+
labelInValue: true,
|
|
32911
|
+
value: values[1],
|
|
32912
|
+
requestConfig: {
|
|
32913
|
+
filterInit: 'qp-code-in'
|
|
32914
|
+
},
|
|
32915
|
+
onChange: function onChange(value) {
|
|
32916
|
+
if (dataInputBusinessType === 12) {
|
|
32917
|
+
values[1] = value.map(function (i) {
|
|
32918
|
+
return i.key;
|
|
32919
|
+
});
|
|
32920
|
+
valueNames[1] = value.map(function (i) {
|
|
32921
|
+
return i.label || '';
|
|
32922
|
+
});
|
|
32923
|
+
} else {
|
|
32924
|
+
values[1] = [value.key];
|
|
32925
|
+
valueNames[1] = [value.label || ''];
|
|
32926
|
+
}
|
|
32927
|
+
callback(values, valueNames);
|
|
32928
|
+
},
|
|
32929
|
+
getPopupContainer: function getPopupContainer() {
|
|
32930
|
+
return document.body;
|
|
32931
|
+
}
|
|
32932
|
+
}));
|
|
32933
|
+
} else {
|
|
32934
|
+
var _values14;
|
|
32935
|
+
var _currentValue13 = dataInputBusinessType === 12 ? ((_values14 = values) === null || _values14 === void 0 ? void 0 : _values14.map(function (s, vIndex) {
|
|
32936
|
+
return {
|
|
32937
|
+
key: s,
|
|
32938
|
+
label: valueNames[vIndex]
|
|
32939
|
+
};
|
|
32940
|
+
})) || [] : values[0] && {
|
|
32941
|
+
key: values[0],
|
|
32942
|
+
label: valueNames[0]
|
|
32943
|
+
} || {};
|
|
32944
|
+
return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
32945
|
+
selectBusinessType: "orderTag",
|
|
32946
|
+
selectProps: _objectSpread2({
|
|
32947
|
+
style: styleCommon,
|
|
32948
|
+
placeholder: '请选择商品标签'
|
|
32949
|
+
}, dataInputBusinessType === 12 ? {
|
|
32950
|
+
mode: 'multiple',
|
|
32951
|
+
maxTagCount: 1
|
|
32952
|
+
} : {}),
|
|
32953
|
+
disabled: disabled,
|
|
32954
|
+
labelInValue: true,
|
|
32955
|
+
value: _currentValue13,
|
|
32956
|
+
requestConfig: {
|
|
32957
|
+
filterInit: 'qp-code-in'
|
|
32958
|
+
},
|
|
32959
|
+
onChange: function onChange(value) {
|
|
32960
|
+
if (dataInputBusinessType === 12) {
|
|
32961
|
+
values = value.map(function (i) {
|
|
32962
|
+
return i.key;
|
|
32963
|
+
}) || [];
|
|
32964
|
+
valueNames = value.map(function (i) {
|
|
32965
|
+
return i.label || '';
|
|
32966
|
+
}) || [];
|
|
32967
|
+
} else {
|
|
32968
|
+
values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
|
|
32969
|
+
valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
|
|
32970
|
+
}
|
|
32971
|
+
callback(values, valueNames);
|
|
32972
|
+
},
|
|
32973
|
+
getPopupContainer: function getPopupContainer() {
|
|
32974
|
+
return document.body;
|
|
32975
|
+
}
|
|
32976
|
+
});
|
|
32977
|
+
}
|
|
32978
|
+
}
|
|
32979
|
+
|
|
32750
32980
|
// 自定义选择器
|
|
32751
32981
|
if (dataChoiceBusinessType == 40) {
|
|
32752
32982
|
if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
|
|
@@ -32834,8 +33064,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32834
33064
|
}
|
|
32835
33065
|
}));
|
|
32836
33066
|
} else {
|
|
32837
|
-
var
|
|
32838
|
-
var
|
|
33067
|
+
var _values15;
|
|
33068
|
+
var _currentValue14 = dataInputBusinessType === 12 ? ((_values15 = values) === null || _values15 === void 0 ? void 0 : _values15.map(function (s, vIndex) {
|
|
32839
33069
|
return {
|
|
32840
33070
|
key: s,
|
|
32841
33071
|
label: valueNames[vIndex]
|
|
@@ -32863,7 +33093,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32863
33093
|
isSearchForm: true,
|
|
32864
33094
|
customSelectorConfig: (others === null || others === void 0 ? void 0 : others.customSelectorConfig) || {},
|
|
32865
33095
|
disabled: disabled,
|
|
32866
|
-
value:
|
|
33096
|
+
value: _currentValue14,
|
|
32867
33097
|
onChange: function onChange(value, sourceList) {
|
|
32868
33098
|
if (dataInputBusinessType === 12) {
|
|
32869
33099
|
var _value$map3, _sourceList$filter3;
|
|
@@ -34186,6 +34416,30 @@ function RenderCompItem(props) {
|
|
|
34186
34416
|
getPopupContainer: function getPopupContainer() {
|
|
34187
34417
|
return document.body;
|
|
34188
34418
|
}
|
|
34419
|
+
})) || 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) === 450 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34420
|
+
selectBusinessType: "orderTag",
|
|
34421
|
+
prefixUrl: {
|
|
34422
|
+
selectPrefix: '/oms-ops'
|
|
34423
|
+
},
|
|
34424
|
+
selectProps: _objectSpread2({
|
|
34425
|
+
style: styleCommon,
|
|
34426
|
+
placeholder: '请选择订单标签'
|
|
34427
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
34428
|
+
mode: 'multiple',
|
|
34429
|
+
maxTagCount: 1
|
|
34430
|
+
} : {}),
|
|
34431
|
+
disabled: disabled,
|
|
34432
|
+
labelInValue: true,
|
|
34433
|
+
value: showValue(ites.code),
|
|
34434
|
+
requestConfig: {
|
|
34435
|
+
filterInit: 'qp-code-in'
|
|
34436
|
+
},
|
|
34437
|
+
onChange: function onChange(value) {
|
|
34438
|
+
handleEdit(ites.code, value);
|
|
34439
|
+
},
|
|
34440
|
+
getPopupContainer: function getPopupContainer() {
|
|
34441
|
+
return document.body;
|
|
34442
|
+
}
|
|
34189
34443
|
})) || 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, {
|
|
34190
34444
|
selectProps: _objectSpread2(_objectSpread2({
|
|
34191
34445
|
style: styleCommon,
|
|
@@ -34425,7 +34679,13 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
34425
34679
|
needShowAction = _this$props$needShowA === void 0 ? true : _this$props$needShowA,
|
|
34426
34680
|
extraConfig = _this$props.extraConfig,
|
|
34427
34681
|
customTitleSubStyle = _this$props.customTitleSubStyle,
|
|
34428
|
-
customTitlePreStyle = _this$props.customTitlePreStyle
|
|
34682
|
+
customTitlePreStyle = _this$props.customTitlePreStyle,
|
|
34683
|
+
_this$props$leftRuleD = _this$props.leftRuleDisabled,
|
|
34684
|
+
leftRuleDisabled = _this$props$leftRuleD === void 0 ? false : _this$props$leftRuleD,
|
|
34685
|
+
_this$props$returnDis = _this$props.returnDisabled,
|
|
34686
|
+
returnDisabled = _this$props$returnDis === void 0 ? false : _this$props$returnDis,
|
|
34687
|
+
_this$props$actionDis = _this$props.actionDisabled,
|
|
34688
|
+
actionDisabled = _this$props$actionDis === void 0 ? false : _this$props$actionDis;
|
|
34429
34689
|
var isRuleInstance = (ruleGroupInfo === null || ruleGroupInfo === void 0 ? void 0 : (_ruleGroupInfo$type = ruleGroupInfo.type) === null || _ruleGroupInfo$type === void 0 ? void 0 : _ruleGroupInfo$type.indexOf('instance')) > -1; // 业务调用规则实例设计器
|
|
34430
34690
|
var ruleGroupName = (ruleGroupInfo === null || ruleGroupInfo === void 0 ? void 0 : (_ruleGroupInfo$ruleGr = ruleGroupInfo.ruleGroupList) === null || _ruleGroupInfo$ruleGr === void 0 ? void 0 : (_ruleGroupInfo$ruleGr2 = _ruleGroupInfo$ruleGr[0]) === null || _ruleGroupInfo$ruleGr2 === void 0 ? void 0 : _ruleGroupInfo$ruleGr2.name) || '规则分组';
|
|
34431
34691
|
var priorityList = ((ruleGroupInfo === null || ruleGroupInfo === void 0 ? void 0 : ruleGroupInfo.groupOtherPriorityList) || []).concat(ruleClassData || []);
|
|
@@ -34508,7 +34768,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
34508
34768
|
}
|
|
34509
34769
|
}, "\u4F18\u5148\u7EA7"), /*#__PURE__*/React$1.createElement(Select, {
|
|
34510
34770
|
size: "small",
|
|
34511
|
-
disabled: canChangePriority ? !canChangePriority : disabled,
|
|
34771
|
+
disabled: canChangePriority ? !canChangePriority : disabled || leftRuleDisabled,
|
|
34512
34772
|
style: {
|
|
34513
34773
|
width: 100
|
|
34514
34774
|
},
|
|
@@ -34541,7 +34801,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
34541
34801
|
}, "\u4E1A\u52A1\u7F16\u7801"), /*#__PURE__*/React$1.createElement(EllipsisTooltip, {
|
|
34542
34802
|
visible: true,
|
|
34543
34803
|
maxLength: 24,
|
|
34544
|
-
title: item.extStrField01
|
|
34804
|
+
title: item.extStrField01 || ''
|
|
34545
34805
|
})), extraConfig && extraConfig.map(function (extraItem, index) {
|
|
34546
34806
|
var _extraItem$optionList;
|
|
34547
34807
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -34562,7 +34822,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
34562
34822
|
width: 100
|
|
34563
34823
|
},
|
|
34564
34824
|
mode: (extraItem === null || extraItem === void 0 ? void 0 : extraItem.mode) || null,
|
|
34565
|
-
disabled: disabled,
|
|
34825
|
+
disabled: disabled || leftRuleDisabled || returnDisabled || actionDisabled,
|
|
34566
34826
|
value: (extraItem === null || extraItem === void 0 ? void 0 : extraItem.mode) === 'multiple' ? item[extraItem === null || extraItem === void 0 ? void 0 : extraItem.code] ? item[extraItem === null || extraItem === void 0 ? void 0 : extraItem.code].split(',') : [] : item[extraItem === null || extraItem === void 0 ? void 0 : extraItem.code],
|
|
34567
34827
|
onChange: function onChange(v) {
|
|
34568
34828
|
item[extraItem === null || extraItem === void 0 ? void 0 : extraItem.code] = Array.isArray(v) ? v.join(',') : v;
|
|
@@ -34586,7 +34846,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
34586
34846
|
top: '5px'
|
|
34587
34847
|
}
|
|
34588
34848
|
}, /*#__PURE__*/React$1.createElement(Button, {
|
|
34589
|
-
disabled: disabled,
|
|
34849
|
+
disabled: disabled || leftRuleDisabled && returnDisabled && actionDisabled,
|
|
34590
34850
|
onClick: function onClick() {
|
|
34591
34851
|
var ruleClassData = _this.state.ruleClassData;
|
|
34592
34852
|
ruleClassData.splice(classDataIndex, 1);
|
|
@@ -34604,7 +34864,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
34604
34864
|
marginTop: '10px'
|
|
34605
34865
|
}
|
|
34606
34866
|
}, /*#__PURE__*/React$1.createElement(Input, {
|
|
34607
|
-
disabled: disabled,
|
|
34867
|
+
disabled: disabled || leftRuleDisabled && returnDisabled && actionDisabled,
|
|
34608
34868
|
value: currentRuleName,
|
|
34609
34869
|
style: {
|
|
34610
34870
|
width: '200px'
|
|
@@ -34615,7 +34875,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
34615
34875
|
});
|
|
34616
34876
|
}
|
|
34617
34877
|
}), /*#__PURE__*/React$1.createElement(Button, {
|
|
34618
|
-
disabled: disabled,
|
|
34878
|
+
disabled: disabled || leftRuleDisabled && returnDisabled && actionDisabled,
|
|
34619
34879
|
type: "link",
|
|
34620
34880
|
onClick: function onClick() {
|
|
34621
34881
|
var _this$state3 = _this.state,
|
|
@@ -34703,7 +34963,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
34703
34963
|
_this$props3$initialT = _this$props3.initialThresholdQuery,
|
|
34704
34964
|
initialThresholdQuery = _this$props3$initialT === void 0 ? {} : _this$props3$initialT,
|
|
34705
34965
|
disabled = _this$props3.disabled,
|
|
34706
|
-
systemVariableList = _this$props3.systemVariableList
|
|
34966
|
+
systemVariableList = _this$props3.systemVariableList,
|
|
34967
|
+
leftRuleDisabled = _this$props3.leftRuleDisabled;
|
|
34707
34968
|
var thresholdQuery = _objectSpread2(_objectSpread2({}, initialThresholdQuery), relateDatas);
|
|
34708
34969
|
var finalIndex = floorIndex + 1;
|
|
34709
34970
|
var queryIdentify = '';
|
|
@@ -34721,7 +34982,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
34721
34982
|
queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
|
|
34722
34983
|
queryIdentifyType = 'dynamicDictCodeIdentify';
|
|
34723
34984
|
}
|
|
34724
|
-
var parallelTreeData =
|
|
34985
|
+
var parallelTreeData = coverToParallel(ruleTreeData, []) || [];
|
|
34725
34986
|
var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
|
|
34726
34987
|
var _i$key;
|
|
34727
34988
|
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);
|
|
@@ -34756,7 +35017,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
34756
35017
|
}, "\u5E76\u4E14")),
|
|
34757
35018
|
trigger: "focus"
|
|
34758
35019
|
}, /*#__PURE__*/React$1.createElement(Button, {
|
|
34759
|
-
disabled: disabled,
|
|
35020
|
+
disabled: disabled || leftRuleDisabled,
|
|
34760
35021
|
type: "link",
|
|
34761
35022
|
className: 'logical_item_btn'
|
|
34762
35023
|
}, (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.operationCode) == 'or' ? '或者' : '并且', /*#__PURE__*/React$1.createElement(DownOutlined, {
|
|
@@ -34782,7 +35043,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
34782
35043
|
showSearch: true,
|
|
34783
35044
|
treeNodeFilterProp: "title",
|
|
34784
35045
|
value: itemDetail.elementId,
|
|
34785
|
-
disabled: disabled,
|
|
35046
|
+
disabled: disabled || leftRuleDisabled,
|
|
34786
35047
|
onChange: function onChange(value, name, nodeInfo) {
|
|
34787
35048
|
if (!nodeInfo.triggerNode.props.isLeaf) return; //只有最末端叶子节点可选中
|
|
34788
35049
|
var ruleClassData = _this.state.ruleClassData;
|
|
@@ -34807,7 +35068,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
34807
35068
|
treeData: ruleTreeData
|
|
34808
35069
|
}), /*#__PURE__*/React$1.createElement(Select, {
|
|
34809
35070
|
value: (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.operationCode) || '',
|
|
34810
|
-
disabled: disabled,
|
|
35071
|
+
disabled: disabled || leftRuleDisabled,
|
|
34811
35072
|
style: {
|
|
34812
35073
|
width: '150px',
|
|
34813
35074
|
marginLeft: '10px'
|
|
@@ -34829,7 +35090,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
34829
35090
|
})), !(itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.isInsertParam) ? /*#__PURE__*/React$1.createElement(RuleField, {
|
|
34830
35091
|
customerWidth: _this.props.customerWidth,
|
|
34831
35092
|
selectOperation: (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.operationCode) || '',
|
|
34832
|
-
disabled: disabled,
|
|
35093
|
+
disabled: disabled || leftRuleDisabled,
|
|
34833
35094
|
initialThresholdQuery: thresholdQuery,
|
|
34834
35095
|
dataTypeCode: (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.dataTypeCode) || '',
|
|
34835
35096
|
dataChoiceBusinessType: dataChoiceBusinessType || '',
|
|
@@ -34848,7 +35109,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
34848
35109
|
_this.handleValuesChange(itemDetail, newValues, newValueNames);
|
|
34849
35110
|
}
|
|
34850
35111
|
}) : null, /*#__PURE__*/React$1.createElement(Select, {
|
|
34851
|
-
disabled: disabled,
|
|
35112
|
+
disabled: disabled || leftRuleDisabled,
|
|
34852
35113
|
value: (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.systemCode) || (itemDetail === null || itemDetail === void 0 ? void 0 : (_itemDetail$params = itemDetail.params) === null || _itemDetail$params === void 0 ? void 0 : (_itemDetail$params$ = _itemDetail$params[0]) === null || _itemDetail$params$ === void 0 ? void 0 : _itemDetail$params$.replace('{', '').replace('}', '')) || '' // systemCode兼容用户结算组织那边使用规则
|
|
34853
35114
|
,
|
|
34854
35115
|
style: {
|
|
@@ -34884,7 +35145,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
34884
35145
|
style: {
|
|
34885
35146
|
color: '#008fe0',
|
|
34886
35147
|
marginLeft: '15px',
|
|
34887
|
-
display: floorIndex > 4 || disabled ? 'none' : 'inline-block'
|
|
35148
|
+
display: floorIndex > 4 || disabled || leftRuleDisabled ? 'none' : 'inline-block'
|
|
34888
35149
|
}
|
|
34889
35150
|
}), /*#__PURE__*/React$1.createElement(MinusCircleOutlined, {
|
|
34890
35151
|
className: 'icon_btn_style',
|
|
@@ -34893,11 +35154,11 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
34893
35154
|
},
|
|
34894
35155
|
style: {
|
|
34895
35156
|
color: 'gray',
|
|
34896
|
-
display: disabled ? 'none' : 'inline-block'
|
|
35157
|
+
display: disabled || leftRuleDisabled ? 'none' : 'inline-block'
|
|
34897
35158
|
}
|
|
34898
35159
|
}), /*#__PURE__*/React$1.createElement(Button, {
|
|
34899
35160
|
type: "link",
|
|
34900
|
-
disabled: disabled || (itemDetail.operationCode === '' || !itemDetail.operationCode ? true : false),
|
|
35161
|
+
disabled: disabled || leftRuleDisabled || (itemDetail.operationCode === '' || !itemDetail.operationCode ? true : false),
|
|
34901
35162
|
onClick: function onClick() {
|
|
34902
35163
|
var ruleClassData = _this.state.ruleClassData;
|
|
34903
35164
|
if (systemVariableList && Array.isArray(systemVariableList) && systemVariableList.length && systemVariableList[0].code !== '-1') {
|
|
@@ -34920,7 +35181,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
34920
35181
|
}
|
|
34921
35182
|
}, (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.isInsertParam) ? '取消插入参数' : '插入参数')), /*#__PURE__*/React$1.createElement("div", {
|
|
34922
35183
|
style: {
|
|
34923
|
-
display: itemDetail.operationType == 'logic' && !disabled ? 'block' : 'none'
|
|
35184
|
+
display: itemDetail.operationType == 'logic' && !disabled && !leftRuleDisabled ? 'block' : 'none'
|
|
34924
35185
|
}
|
|
34925
35186
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
34926
35187
|
style: {
|
|
@@ -34963,7 +35224,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
34963
35224
|
});
|
|
34964
35225
|
};
|
|
34965
35226
|
// 场景需要返回值2022.11.15
|
|
34966
|
-
_this.renderResItem = function (itemDetail, parentDetail, ruleReturnConfig, selectRuleReturnData, classDataIndex, disabled, boxStyle) {
|
|
35227
|
+
_this.renderResItem = function (itemDetail, parentDetail, ruleReturnConfig, selectRuleReturnData, classDataIndex, disabled, boxStyle, returnDisabled) {
|
|
34967
35228
|
var _ruleReturnConfig$rig;
|
|
34968
35229
|
var isRightText = ruleReturnConfig === null || ruleReturnConfig === void 0 ? void 0 : (_ruleReturnConfig$rig = ruleReturnConfig.rightText) === null || _ruleReturnConfig$rig === void 0 ? void 0 : _ruleReturnConfig$rig.length;
|
|
34969
35230
|
var showValue = function showValue(code, type, functionItem, configItem) {
|
|
@@ -35029,7 +35290,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35029
35290
|
style: {
|
|
35030
35291
|
display: 'flex'
|
|
35031
35292
|
}
|
|
35032
|
-
}, _this.renderFormCompItem(item, showValue, handleEdit, {}, boxStyle, disabled), /*#__PURE__*/React$1.createElement(MinusCircleOutlined, {
|
|
35293
|
+
}, _this.renderFormCompItem(item, showValue, handleEdit, {}, boxStyle, disabled, returnDisabled), /*#__PURE__*/React$1.createElement(MinusCircleOutlined, {
|
|
35033
35294
|
className: 'icon_btn_style',
|
|
35034
35295
|
onClick: function onClick() {
|
|
35035
35296
|
_this.handleEditExtraInfoResponse('enable', false, parentDetail, classDataIndex, item.code);
|
|
@@ -35038,12 +35299,12 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35038
35299
|
color: 'gray',
|
|
35039
35300
|
marginLeft: isRightText ? '100px' : '15px',
|
|
35040
35301
|
marginTop: '15px',
|
|
35041
|
-
display: disabled ? 'none' : 'inline-block'
|
|
35302
|
+
display: disabled || returnDisabled ? 'none' : 'inline-block'
|
|
35042
35303
|
}
|
|
35043
35304
|
}));
|
|
35044
35305
|
})))) : /*#__PURE__*/React$1.createElement(React$1.Fragment, null));
|
|
35045
35306
|
};
|
|
35046
|
-
_this.renderFormCompItem = function (config, _showValue, _handleEdit, parentItem, boxStyle, disabled) {
|
|
35307
|
+
_this.renderFormCompItem = function (config, _showValue, _handleEdit, parentItem, boxStyle, disabled, returnOrActionDisabled) {
|
|
35047
35308
|
if (!config) return;
|
|
35048
35309
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
35049
35310
|
style: boxStyle
|
|
@@ -35074,7 +35335,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35074
35335
|
var d = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : config;
|
|
35075
35336
|
return _handleEdit(a, b, c, d);
|
|
35076
35337
|
},
|
|
35077
|
-
disabled: disabled
|
|
35338
|
+
disabled: disabled || returnOrActionDisabled
|
|
35078
35339
|
}), (config === null || config === void 0 ? void 0 : config.rightText) && /*#__PURE__*/React$1.createElement("div", {
|
|
35079
35340
|
style: {
|
|
35080
35341
|
flex: 'none',
|
|
@@ -35082,7 +35343,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35082
35343
|
}
|
|
35083
35344
|
}, config.rightText) || null);
|
|
35084
35345
|
};
|
|
35085
|
-
_this.renderActionList = function (itemDetail, parentDetail, handleRuleTypeData, sRuleActionData, classDataIndex, disabled, boxStyle) {
|
|
35346
|
+
_this.renderActionList = function (itemDetail, parentDetail, handleRuleTypeData, sRuleActionData, classDataIndex, disabled, boxStyle, actionDisabled) {
|
|
35086
35347
|
var showValue = function showValue(code, type, functionItem, configItem) {
|
|
35087
35348
|
var functionIndex = handleRuleTypeData.findIndex(function (m) {
|
|
35088
35349
|
return m.code === functionItem.code;
|
|
@@ -35117,7 +35378,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35117
35378
|
return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
35118
35379
|
className: 'rule_action_item'
|
|
35119
35380
|
}, ((_i$valueList = i.valueList) === null || _i$valueList === void 0 ? void 0 : _i$valueList.length) && i.valueList.map(function (s) {
|
|
35120
|
-
return _this.renderFormCompItem(s, showValue, handleEdit, i, boxStyle, disabled);
|
|
35381
|
+
return _this.renderFormCompItem(s, showValue, handleEdit, i, boxStyle, disabled, actionDisabled);
|
|
35121
35382
|
}) || /*#__PURE__*/React$1.createElement("div", {
|
|
35122
35383
|
style: boxStyle,
|
|
35123
35384
|
key: i.functionName
|
|
@@ -35130,7 +35391,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35130
35391
|
color: 'gray',
|
|
35131
35392
|
marginLeft: '15px',
|
|
35132
35393
|
marginTop: '15px',
|
|
35133
|
-
display: disabled ? 'none' : 'inline-block'
|
|
35394
|
+
display: disabled || actionDisabled ? 'none' : 'inline-block'
|
|
35134
35395
|
}
|
|
35135
35396
|
})));
|
|
35136
35397
|
})))) : /*#__PURE__*/React$1.createElement(React$1.Fragment, null));
|
|
@@ -35138,7 +35399,16 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35138
35399
|
_this.renderRuleTypeItem = function (itemDetail, parentDetail, floorIndex, classDataIndex, ruleTypeData, ruleReturnConfig, isRuleInstance) {
|
|
35139
35400
|
var _itemDetail$response$2, _itemDetail$response$3, _itemDetail$response$4;
|
|
35140
35401
|
var modalParams = _this.state.modalParams;
|
|
35141
|
-
var
|
|
35402
|
+
var _this$props4 = _this.props,
|
|
35403
|
+
disabled = _this$props4.disabled,
|
|
35404
|
+
_this$props4$actionDi = _this$props4.actionDisabled,
|
|
35405
|
+
actionDisabled = _this$props4$actionDi === void 0 ? false : _this$props4$actionDi,
|
|
35406
|
+
_this$props4$returnDi = _this$props4.returnDisabled,
|
|
35407
|
+
returnDisabled = _this$props4$returnDi === void 0 ? false : _this$props4$returnDi,
|
|
35408
|
+
_this$props4$noAction = _this$props4.noActionValue,
|
|
35409
|
+
noActionValue = _this$props4$noAction === void 0 ? false : _this$props4$noAction,
|
|
35410
|
+
_this$props4$noReturn = _this$props4.noReturnValue,
|
|
35411
|
+
noReturnValue = _this$props4$noReturn === void 0 ? false : _this$props4$noReturn;
|
|
35142
35412
|
var isHaveRuleTypeData = ruleTypeData === null || ruleTypeData === void 0 ? void 0 : ruleTypeData.length;
|
|
35143
35413
|
var isHaveRuleReturnConfig = ruleReturnConfig === null || ruleReturnConfig === void 0 ? void 0 : ruleReturnConfig.length;
|
|
35144
35414
|
var handleRuleTypeData = isHaveRuleTypeData ? ruleTypeData.sort(function (a, b) {
|
|
@@ -35184,8 +35454,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35184
35454
|
display: 'flex',
|
|
35185
35455
|
marginBottom: 10
|
|
35186
35456
|
}
|
|
35187
|
-
}, /*#__PURE__*/React$1.createElement(Button, {
|
|
35188
|
-
disabled: disabled,
|
|
35457
|
+
}, !noActionValue ? /*#__PURE__*/React$1.createElement(Button, {
|
|
35458
|
+
disabled: disabled || actionDisabled,
|
|
35189
35459
|
type: "link",
|
|
35190
35460
|
style: displayNoneActionStyle,
|
|
35191
35461
|
onClick: function onClick() {
|
|
@@ -35202,8 +35472,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35202
35472
|
message$1.warn('未配置执行动作');
|
|
35203
35473
|
}
|
|
35204
35474
|
}
|
|
35205
|
-
}, "\u65B0\u589E\u52A8\u4F5C"), /*#__PURE__*/React$1.createElement(Button, {
|
|
35206
|
-
disabled: disabled,
|
|
35475
|
+
}, "\u65B0\u589E\u52A8\u4F5C") : /*#__PURE__*/React$1.createElement(React$1.Fragment, null), !noReturnValue ? /*#__PURE__*/React$1.createElement(Button, {
|
|
35476
|
+
disabled: disabled || returnDisabled,
|
|
35207
35477
|
type: "link",
|
|
35208
35478
|
style: displayNoneReturnValueStyle,
|
|
35209
35479
|
onClick: function onClick() {
|
|
@@ -35220,15 +35490,16 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35220
35490
|
message$1.warn('未配置返回');
|
|
35221
35491
|
}
|
|
35222
35492
|
}
|
|
35223
|
-
}, "\u65B0\u589E\u8FD4\u56DE\u503C")), isHaveRuleTypeData && _this.renderActionList(itemDetail, parentDetail, handleRuleTypeData, selectRuleActionData, classDataIndex, disabled, RuleActionItemStyle) || null, isHaveRuleReturnConfig && _this.renderResItem(itemDetail, parentDetail, ruleReturnConfig, selectRuleReturnData, classDataIndex, disabled, RuleActionItemStyle) || null);
|
|
35493
|
+
}, "\u65B0\u589E\u8FD4\u56DE\u503C") : /*#__PURE__*/React$1.createElement(React$1.Fragment, null)), isHaveRuleTypeData && !noActionValue && _this.renderActionList(itemDetail, parentDetail, handleRuleTypeData, selectRuleActionData, classDataIndex, disabled, RuleActionItemStyle, actionDisabled) || null, isHaveRuleReturnConfig && !noReturnValue && _this.renderResItem(itemDetail, parentDetail, ruleReturnConfig, selectRuleReturnData, classDataIndex, disabled, RuleActionItemStyle, returnDisabled) || null);
|
|
35224
35494
|
};
|
|
35225
35495
|
//添加同一层级条件
|
|
35226
35496
|
_this.addPeerRule = function (itemDetail) {
|
|
35227
35497
|
var ruleClassData = _this.state.ruleClassData;
|
|
35228
|
-
var _this$
|
|
35229
|
-
callBack = _this$
|
|
35230
|
-
disabled = _this$
|
|
35231
|
-
|
|
35498
|
+
var _this$props5 = _this.props,
|
|
35499
|
+
callBack = _this$props5.callBack,
|
|
35500
|
+
disabled = _this$props5.disabled,
|
|
35501
|
+
leftRuleDisabled = _this$props5.leftRuleDisabled;
|
|
35502
|
+
if (disabled || leftRuleDisabled) return;
|
|
35232
35503
|
itemDetail.subExpression.push({
|
|
35233
35504
|
// "expressionType": "relation",
|
|
35234
35505
|
operationType: 'relation',
|
|
@@ -35275,9 +35546,9 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35275
35546
|
};
|
|
35276
35547
|
_this.handleDeleteRule = function (itemDetail, parentDetail, classDataIndex) {
|
|
35277
35548
|
var ruleClassData = _this.state.ruleClassData;
|
|
35278
|
-
var _this$
|
|
35279
|
-
callBack = _this$
|
|
35280
|
-
metaObjectCode = _this$
|
|
35549
|
+
var _this$props6 = _this.props,
|
|
35550
|
+
callBack = _this$props6.callBack,
|
|
35551
|
+
metaObjectCode = _this$props6.metaObjectCode;
|
|
35281
35552
|
if (parentDetail.ruleName) {
|
|
35282
35553
|
//删除根规则层级最后一条时整个规则项删除
|
|
35283
35554
|
ruleClassData.splice(classDataIndex, 1);
|
|
@@ -35395,10 +35666,10 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35395
35666
|
return _createClass(RuleObjectComponent, [{
|
|
35396
35667
|
key: "componentDidMount",
|
|
35397
35668
|
value: function componentDidMount(props) {
|
|
35398
|
-
var _this$
|
|
35399
|
-
ruleClassData = _this$
|
|
35400
|
-
operationList = _this$
|
|
35401
|
-
regularDataList = _this$
|
|
35669
|
+
var _this$props7 = this.props,
|
|
35670
|
+
ruleClassData = _this$props7.ruleClassData,
|
|
35671
|
+
operationList = _this$props7.operationList,
|
|
35672
|
+
regularDataList = _this$props7.regularDataList;
|
|
35402
35673
|
this.setRegularData(regularDataList);
|
|
35403
35674
|
this.setState({
|
|
35404
35675
|
ruleClassData: ruleClassData,
|
|
@@ -35430,11 +35701,14 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35430
35701
|
key: "render",
|
|
35431
35702
|
value: function render() {
|
|
35432
35703
|
var _this2 = this;
|
|
35433
|
-
var _this$
|
|
35434
|
-
onlyOneRule = _this$
|
|
35435
|
-
callBack = _this$
|
|
35436
|
-
disabled = _this$
|
|
35437
|
-
|
|
35704
|
+
var _this$props8 = this.props,
|
|
35705
|
+
onlyOneRule = _this$props8.onlyOneRule,
|
|
35706
|
+
callBack = _this$props8.callBack,
|
|
35707
|
+
disabled = _this$props8.disabled,
|
|
35708
|
+
leftRuleDisabled = _this$props8.leftRuleDisabled,
|
|
35709
|
+
returnDisabled = _this$props8.returnDisabled,
|
|
35710
|
+
actionDisabled = _this$props8.actionDisabled,
|
|
35711
|
+
headerButtonComponentFun = _this$props8.headerButtonComponentFun;
|
|
35438
35712
|
var _this$state5 = this.state,
|
|
35439
35713
|
ruleClassData = _this$state5.ruleClassData,
|
|
35440
35714
|
modalParams = _this$state5.modalParams;
|
|
@@ -35448,7 +35722,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35448
35722
|
},
|
|
35449
35723
|
className: 'base_rule_line_title'
|
|
35450
35724
|
}, /*#__PURE__*/React$1.createElement(Button, {
|
|
35451
|
-
disabled: disabled,
|
|
35725
|
+
disabled: disabled || leftRuleDisabled,
|
|
35452
35726
|
onClick: this.handleAddRule,
|
|
35453
35727
|
className: 'base_rule_btn_style',
|
|
35454
35728
|
type: "link"
|
|
@@ -35647,13 +35921,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
35647
35921
|
var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
|
|
35648
35922
|
// 处理对象-设置了必填-规则实例保存时数据必填校验
|
|
35649
35923
|
if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
|
|
35650
|
-
var list =
|
|
35924
|
+
var list = coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
|
|
35651
35925
|
var requiredList = list.filter(function (c) {
|
|
35652
35926
|
return c.required == 1;
|
|
35653
35927
|
}) || []; // 获取对象属性为true的集合
|
|
35654
35928
|
(requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
|
|
35655
35929
|
var _s$expression, _s$expression$subExpr, _s$expression2, _coverExpressionTree$;
|
|
35656
|
-
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) ?
|
|
35930
|
+
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];
|
|
35657
35931
|
(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) {
|
|
35658
35932
|
if (requiredList.some(function (r) {
|
|
35659
35933
|
return r.id === e.elementId;
|
|
@@ -36481,4 +36755,4 @@ var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
36481
36755
|
})));
|
|
36482
36756
|
});
|
|
36483
36757
|
|
|
36484
|
-
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, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, QueryMutipleInput, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy,
|
|
36758
|
+
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, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, QueryMutipleInput, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, 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 };
|