@bit-sun/business-component 3.1.10-alpha.1 → 3.1.10-alpha.11
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 +485 -205
- package/dist/index.js +486 -206
- 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 +1050 -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) {
|
|
@@ -4105,7 +4105,9 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4105
4105
|
_ref$noNeedSplit = _ref.noNeedSplit,
|
|
4106
4106
|
noNeedSplit = _ref$noNeedSplit === void 0 ? false : _ref$noNeedSplit,
|
|
4107
4107
|
_ref$method = _ref.method,
|
|
4108
|
-
method = _ref$method === void 0 ? 'get' : _ref$method
|
|
4108
|
+
method = _ref$method === void 0 ? 'get' : _ref$method,
|
|
4109
|
+
_ref$onlyOneDateSelec = _ref.onlyOneDateSelected,
|
|
4110
|
+
onlyOneDateSelected = _ref$onlyOneDateSelec === void 0 ? false : _ref$onlyOneDateSelec;
|
|
4109
4111
|
var resultSourceKey = handleSourceName(sourceName || (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.sourceName) || (ctx === null || ctx === void 0 ? void 0 : ctx.name) || 'supplierCode');
|
|
4110
4112
|
var selectMode = selectProps === null || selectProps === void 0 ? void 0 : selectProps.mode; // 设定当前选择器 为单选或者多选模式 无设定为单选模式(默认)
|
|
4111
4113
|
var initVal = value || (selectMode ? [] : null);
|
|
@@ -4466,6 +4468,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4466
4468
|
if (type === 1) {
|
|
4467
4469
|
var _ctx$form;
|
|
4468
4470
|
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(resultSourceKey, source);
|
|
4471
|
+
if (onlyOneDateSelected === true && source.length === 1) {
|
|
4472
|
+
var _ctx$form2;
|
|
4473
|
+
ctx === null || ctx === void 0 ? void 0 : (_ctx$form2 = ctx.form) === null || _ctx$form2 === void 0 ? void 0 : _ctx$form2.setFieldValue(resultSourceKey, source[0]['value']);
|
|
4474
|
+
}
|
|
4469
4475
|
setItems(source);
|
|
4470
4476
|
setItemsTotal(Number((res === null || res === void 0 ? void 0 : res.total) || (res === null || res === void 0 ? void 0 : res.totalCount) || source.length));
|
|
4471
4477
|
} else {
|
|
@@ -4583,10 +4589,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4583
4589
|
};
|
|
4584
4590
|
var handleSelectOver = function handleSelectOver(selectedValue) {
|
|
4585
4591
|
if (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.length) {
|
|
4586
|
-
var _ctx$
|
|
4592
|
+
var _ctx$form3;
|
|
4587
4593
|
// 解决选择最后1页的sku,返回后,不显示名称问题
|
|
4588
4594
|
var source = _.uniqBy(items.concat(selectedValue), 'value');
|
|
4589
|
-
ctx === null || ctx === void 0 ? void 0 : (_ctx$
|
|
4595
|
+
ctx === null || ctx === void 0 ? void 0 : (_ctx$form3 = ctx.form) === null || _ctx$form3 === void 0 ? void 0 : _ctx$form3.setFieldSource(resultSourceKey, source);
|
|
4590
4596
|
setItems(source);
|
|
4591
4597
|
formaData(selectedValue, source);
|
|
4592
4598
|
} else {
|
|
@@ -5909,7 +5915,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
|
|
|
5909
5915
|
});
|
|
5910
5916
|
};
|
|
5911
5917
|
// 格式化树选择器数据源
|
|
5912
|
-
var
|
|
5918
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
5913
5919
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
5914
5920
|
return {
|
|
5915
5921
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -5919,7 +5925,7 @@ var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
|
5919
5925
|
isLeaf: !haveChildren,
|
|
5920
5926
|
disabled: haveChildren,
|
|
5921
5927
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
5922
|
-
return
|
|
5928
|
+
return mapSearchTree(i, resKeyValue);
|
|
5923
5929
|
}) : []
|
|
5924
5930
|
};
|
|
5925
5931
|
};
|
|
@@ -5928,7 +5934,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
5928
5934
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
5929
5935
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
5930
5936
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
5931
|
-
return
|
|
5937
|
+
return mapSearchTree(ites, resKeyValue);
|
|
5932
5938
|
}) || [];
|
|
5933
5939
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
5934
5940
|
};
|
|
@@ -5984,7 +5990,7 @@ var initTableCode = {
|
|
|
5984
5990
|
'spu': ['spuSelect-tableOptionsToChoosePartCode', 'spuSelect-tableSelectedItemPartCode']
|
|
5985
5991
|
};
|
|
5986
5992
|
var Option$2 = Select.Option;
|
|
5987
|
-
var AddSelect = function
|
|
5993
|
+
var AddSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
5988
5994
|
var value = props.value,
|
|
5989
5995
|
_props$selectProps = props.selectProps,
|
|
5990
5996
|
selectProps = _props$selectProps === void 0 ? {} : _props$selectProps,
|
|
@@ -6202,6 +6208,19 @@ var AddSelect = function AddSelect(props) {
|
|
|
6202
6208
|
}
|
|
6203
6209
|
return result;
|
|
6204
6210
|
};
|
|
6211
|
+
// 广药 应对重写table列出现复杂逻辑无法修改部分伙计,需往外抛组件方法
|
|
6212
|
+
useImperativeHandle(ref, function () {
|
|
6213
|
+
return {
|
|
6214
|
+
editRecord: editRecord,
|
|
6215
|
+
deleteRecord: deleteRecord,
|
|
6216
|
+
getDataSource: function getDataSource() {
|
|
6217
|
+
return {
|
|
6218
|
+
searchTabledataSource: tableData,
|
|
6219
|
+
selectedTableDataSource: popvalue
|
|
6220
|
+
};
|
|
6221
|
+
}
|
|
6222
|
+
};
|
|
6223
|
+
});
|
|
6205
6224
|
useEffect(function () {
|
|
6206
6225
|
setTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns);
|
|
6207
6226
|
}, [modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns]);
|
|
@@ -6738,6 +6757,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
6738
6757
|
setTableFormParams({});
|
|
6739
6758
|
setIsModalVisible(false);
|
|
6740
6759
|
setTableData([]);
|
|
6760
|
+
deleteSelectRows();
|
|
6761
|
+
setTablePagination({
|
|
6762
|
+
total: 0,
|
|
6763
|
+
size: "small",
|
|
6764
|
+
current: 1,
|
|
6765
|
+
pageSize: tableInitPageSize
|
|
6766
|
+
});
|
|
6741
6767
|
onCancelCallback && onCancelCallback();
|
|
6742
6768
|
// if (selectMode) {
|
|
6743
6769
|
// run();
|
|
@@ -6960,10 +6986,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
6960
6986
|
var newColumns = arr.map(function (col) {
|
|
6961
6987
|
return _objectSpread2({}, col);
|
|
6962
6988
|
});
|
|
6963
|
-
var
|
|
6989
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
6964
6990
|
var i = indexArr.shift();
|
|
6965
6991
|
if (indexArr.length > 0) {
|
|
6966
|
-
|
|
6992
|
+
handleIndex(arr[i].children, indexArr);
|
|
6967
6993
|
} else {
|
|
6968
6994
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
6969
6995
|
width: size.width
|
|
@@ -6971,7 +6997,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
6971
6997
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
6972
6998
|
}
|
|
6973
6999
|
};
|
|
6974
|
-
|
|
7000
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
6975
7001
|
callback(newColumns);
|
|
6976
7002
|
};
|
|
6977
7003
|
};
|
|
@@ -6981,13 +7007,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
6981
7007
|
var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
|
|
6982
7008
|
setShowToChooseColumns(_toConsumableArray(newColumns));
|
|
6983
7009
|
};
|
|
6984
|
-
var
|
|
7010
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
6985
7011
|
arr.forEach(function (item, index) {
|
|
6986
7012
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
6987
7013
|
return i || i === 0;
|
|
6988
7014
|
});
|
|
6989
7015
|
if (noEmptyArray$1(item.children)) {
|
|
6990
|
-
|
|
7016
|
+
handleColumns(item.children, indexArrInside);
|
|
6991
7017
|
} else {
|
|
6992
7018
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
6993
7019
|
item.onHeaderCell = function (column) {
|
|
@@ -7003,14 +7029,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
7003
7029
|
handleAntdColumnsSpecialParams(item);
|
|
7004
7030
|
return _objectSpread2({}, item);
|
|
7005
7031
|
});
|
|
7006
|
-
|
|
7032
|
+
handleColumns(showToChooseCol, [], function (res) {
|
|
7007
7033
|
return setShowToChooseColumnsCallback(res);
|
|
7008
7034
|
});
|
|
7009
7035
|
var showSelectedCol = showColumns.map(function (item) {
|
|
7010
7036
|
handleAntdColumnsSpecialParams(item);
|
|
7011
7037
|
return _objectSpread2({}, item);
|
|
7012
7038
|
});
|
|
7013
|
-
|
|
7039
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
7014
7040
|
return setShowColumnsCallback(res);
|
|
7015
7041
|
});
|
|
7016
7042
|
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 +7218,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7192
7218
|
}
|
|
7193
7219
|
}
|
|
7194
7220
|
}))))));
|
|
7195
|
-
};
|
|
7221
|
+
});
|
|
7196
7222
|
|
|
7197
7223
|
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
7224
|
styleInject(css_248z$8);
|
|
@@ -8018,10 +8044,10 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8018
8044
|
var newColumns = arr.map(function (col) {
|
|
8019
8045
|
return _objectSpread2({}, col);
|
|
8020
8046
|
});
|
|
8021
|
-
var
|
|
8047
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
8022
8048
|
var i = indexArr.shift();
|
|
8023
8049
|
if (indexArr.length > 0) {
|
|
8024
|
-
|
|
8050
|
+
handleIndex(arr[i].children, indexArr);
|
|
8025
8051
|
} else {
|
|
8026
8052
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
8027
8053
|
width: size.width
|
|
@@ -8029,17 +8055,17 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8029
8055
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
8030
8056
|
}
|
|
8031
8057
|
};
|
|
8032
|
-
|
|
8058
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
8033
8059
|
callback(newColumns);
|
|
8034
8060
|
};
|
|
8035
8061
|
};
|
|
8036
|
-
var
|
|
8062
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
8037
8063
|
arr.forEach(function (item, index) {
|
|
8038
8064
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
8039
8065
|
return i || i === 0;
|
|
8040
8066
|
});
|
|
8041
8067
|
if (noEmptyArray$1(item.children)) {
|
|
8042
|
-
|
|
8068
|
+
handleColumns(item.children, indexArrInside);
|
|
8043
8069
|
} else {
|
|
8044
8070
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
8045
8071
|
item.onHeaderCell = function (column) {
|
|
@@ -8055,7 +8081,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8055
8081
|
handleAntdColumnsSpecialParams(item);
|
|
8056
8082
|
return _objectSpread2({}, item);
|
|
8057
8083
|
});
|
|
8058
|
-
|
|
8084
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
8059
8085
|
return setShowColumnsCallback(res);
|
|
8060
8086
|
});
|
|
8061
8087
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -8323,13 +8349,7 @@ var hasDictSharingType = (_getDictionarySource = getDictionarySource$1('UC000013
|
|
|
8323
8349
|
var sharingTypeDataList = hasDictSharingType && getDictionarySource$1('UC000013') || sharingType;
|
|
8324
8350
|
function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps, hiddenFields) {
|
|
8325
8351
|
// 默认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);
|
|
8352
|
+
var requestConfig = _objectSpread2({}, requestConfigProp);
|
|
8333
8353
|
/*
|
|
8334
8354
|
* 处理 格式化下拉框数据源
|
|
8335
8355
|
* reData 必传 promise返回响应的数据 格式为[{},{},{},...] Promise.all第一个参数数组有多少个数组长度就是多少,其中每个对象为每次请求的结果数据
|
|
@@ -8354,7 +8374,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps, hidde
|
|
|
8354
8374
|
});
|
|
8355
8375
|
};
|
|
8356
8376
|
// 格式化树选择器数据源
|
|
8357
|
-
var
|
|
8377
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
8358
8378
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
8359
8379
|
return {
|
|
8360
8380
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -8364,7 +8384,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps, hidde
|
|
|
8364
8384
|
isLeaf: !haveChildren,
|
|
8365
8385
|
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
8366
8386
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
8367
|
-
return
|
|
8387
|
+
return mapSearchTree(i, resKeyValue, disabledJudge);
|
|
8368
8388
|
}) : []
|
|
8369
8389
|
};
|
|
8370
8390
|
};
|
|
@@ -8378,7 +8398,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps, hidde
|
|
|
8378
8398
|
disabledJudge = false;
|
|
8379
8399
|
}
|
|
8380
8400
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
8381
|
-
return
|
|
8401
|
+
return mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
8382
8402
|
}) || [];
|
|
8383
8403
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
8384
8404
|
};
|
|
@@ -8389,6 +8409,12 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps, hidde
|
|
|
8389
8409
|
tableColumns: []
|
|
8390
8410
|
}, modalTableBusProps);
|
|
8391
8411
|
var needModalTable = (modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needModalTable) !== undefined ? modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needModalTable : true;
|
|
8412
|
+
//自定义 配置取外层传过来的
|
|
8413
|
+
if (type === 'custom') {
|
|
8414
|
+
modalTableProps = _objectSpread2({
|
|
8415
|
+
requestConfig: requestConfig
|
|
8416
|
+
}, modalTableBusProps);
|
|
8417
|
+
}
|
|
8392
8418
|
// 供应商选择器
|
|
8393
8419
|
if (type === 'supplier') {
|
|
8394
8420
|
tableSearchForm = [{
|
|
@@ -10721,6 +10747,94 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps, hidde
|
|
|
10721
10747
|
}]
|
|
10722
10748
|
}, modalTableBusProps);
|
|
10723
10749
|
}
|
|
10750
|
+
// 订单标签选择器(广药用)
|
|
10751
|
+
if (type === 'orderTag') {
|
|
10752
|
+
requestConfig = _objectSpread2({
|
|
10753
|
+
url: "".concat(prefixUrl.selectPrefix || '/oms-ops', "/tag"),
|
|
10754
|
+
filter: 'qp-code,name-orGroup,like',
|
|
10755
|
+
mappingTextField: 'name',
|
|
10756
|
+
mappingTextShowKeyField: 'code',
|
|
10757
|
+
mappingValueField: 'code',
|
|
10758
|
+
otherParams: {
|
|
10759
|
+
'qp-status-eq': 1,
|
|
10760
|
+
sorter: 'desc-id'
|
|
10761
|
+
},
|
|
10762
|
+
sourceName: 'code'
|
|
10763
|
+
}, requestConfigProp);
|
|
10764
|
+
tableSearchForm = [{
|
|
10765
|
+
name: 'qp-code-like',
|
|
10766
|
+
label: '标签编码'
|
|
10767
|
+
}, {
|
|
10768
|
+
name: 'qp-name-like',
|
|
10769
|
+
label: '标签名称'
|
|
10770
|
+
}];
|
|
10771
|
+
modalTableProps = _objectSpread2({
|
|
10772
|
+
modalTableTitle: '选择订单标签',
|
|
10773
|
+
tableSearchForm: tableSearchForm,
|
|
10774
|
+
tableColumns: [{
|
|
10775
|
+
dataIndex: 'code',
|
|
10776
|
+
title: '标签编码'
|
|
10777
|
+
}, {
|
|
10778
|
+
dataIndex: 'name',
|
|
10779
|
+
title: '标签名称'
|
|
10780
|
+
}, {
|
|
10781
|
+
dataIndex: 'systemFlag',
|
|
10782
|
+
title: '是否系统标签',
|
|
10783
|
+
render: function render(_ref) {
|
|
10784
|
+
var text = _ref.text;
|
|
10785
|
+
return {
|
|
10786
|
+
0: '否',
|
|
10787
|
+
1: '是'
|
|
10788
|
+
}[text];
|
|
10789
|
+
}
|
|
10790
|
+
}, {
|
|
10791
|
+
dataIndex: 'tagType',
|
|
10792
|
+
title: '标签类型',
|
|
10793
|
+
render: function render(_ref2) {
|
|
10794
|
+
var text = _ref2.text;
|
|
10795
|
+
return getDictionaryTextByValue$1('order_tag_type', text);
|
|
10796
|
+
}
|
|
10797
|
+
}, {
|
|
10798
|
+
dataIndex: 'detail',
|
|
10799
|
+
title: '标签备注'
|
|
10800
|
+
}]
|
|
10801
|
+
}, modalTableBusProps);
|
|
10802
|
+
}
|
|
10803
|
+
// 商品集合选择器(广药用)
|
|
10804
|
+
if (type === 'itemGroup') {
|
|
10805
|
+
requestConfig = _objectSpread2({
|
|
10806
|
+
url: "".concat(prefixUrl.selectPrefix || '/items', "/ocpgoodssetdef"),
|
|
10807
|
+
filter: 'qp-code,name-orGroup,like',
|
|
10808
|
+
mappingTextField: 'setName',
|
|
10809
|
+
mappingTextShowKeyField: 'setId',
|
|
10810
|
+
mappingValueField: 'setId',
|
|
10811
|
+
otherParams: {
|
|
10812
|
+
sorter: 'desc-id'
|
|
10813
|
+
},
|
|
10814
|
+
sourceName: 'setId'
|
|
10815
|
+
}, requestConfigProp);
|
|
10816
|
+
tableSearchForm = [{
|
|
10817
|
+
name: 'qp-setName-like',
|
|
10818
|
+
label: '商品集合名称'
|
|
10819
|
+
}];
|
|
10820
|
+
modalTableProps = _objectSpread2({
|
|
10821
|
+
modalTableTitle: '选择商品集合',
|
|
10822
|
+
tableSearchForm: tableSearchForm,
|
|
10823
|
+
tableColumns: [{
|
|
10824
|
+
title: '序号',
|
|
10825
|
+
dataIndex: 'keyIndex',
|
|
10826
|
+
render: function render(text, record, index) {
|
|
10827
|
+
return handleTextOverflow(String(index + 1), 60);
|
|
10828
|
+
}
|
|
10829
|
+
}, {
|
|
10830
|
+
dataIndex: 'setId',
|
|
10831
|
+
title: '商品集合ID'
|
|
10832
|
+
}, {
|
|
10833
|
+
dataIndex: 'setName',
|
|
10834
|
+
title: '商品集合名称'
|
|
10835
|
+
}]
|
|
10836
|
+
}, modalTableBusProps);
|
|
10837
|
+
}
|
|
10724
10838
|
return {
|
|
10725
10839
|
modalTableProps: modalTableProps,
|
|
10726
10840
|
requestConfig: requestConfig,
|
|
@@ -10730,7 +10844,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps, hidde
|
|
|
10730
10844
|
|
|
10731
10845
|
var MemoSearchSelect = /*#__PURE__*/React$1.memo(SearchSelect);
|
|
10732
10846
|
var BusinessSearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
10733
|
-
var businessType = (props === null || props === void 0 ? void 0 : props.selectBusinessType) || '
|
|
10847
|
+
var businessType = (props === null || props === void 0 ? void 0 : props.selectBusinessType) || 'custom';
|
|
10734
10848
|
var prefixUrl = (props === null || props === void 0 ? void 0 : props.prefixUrl) || {
|
|
10735
10849
|
selectPrefix: handleDefaultPrefixUrl(businessType),
|
|
10736
10850
|
formSelectFix: handleDefaultPrefixUrl(businessType)
|
|
@@ -12093,7 +12207,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12093
12207
|
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
|
|
12094
12208
|
_remoteSource$special = remoteSource.specialBracket,
|
|
12095
12209
|
specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
|
|
12096
|
-
var
|
|
12210
|
+
var mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
12097
12211
|
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
12098
12212
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
12099
12213
|
return {
|
|
@@ -12105,7 +12219,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12105
12219
|
isLeaf: !haveChildren,
|
|
12106
12220
|
disabled: isDisabled(haveChildren, isRoot),
|
|
12107
12221
|
children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
|
|
12108
|
-
return
|
|
12222
|
+
return mapSearchTree(i);
|
|
12109
12223
|
}) : []
|
|
12110
12224
|
};
|
|
12111
12225
|
};
|
|
@@ -12151,7 +12265,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12151
12265
|
case 9:
|
|
12152
12266
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
12153
12267
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
12154
|
-
return
|
|
12268
|
+
return mapSearchTree(ites);
|
|
12155
12269
|
}) || [];
|
|
12156
12270
|
case 11:
|
|
12157
12271
|
_context.next = 14;
|
|
@@ -12189,11 +12303,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12189
12303
|
return _formatResult;
|
|
12190
12304
|
}
|
|
12191
12305
|
};
|
|
12192
|
-
var
|
|
12306
|
+
var parallelData = function parallelData(data, result) {
|
|
12193
12307
|
data.forEach(function (i) {
|
|
12194
12308
|
result.push(i);
|
|
12195
12309
|
if (i[treeChildrenRoom]) {
|
|
12196
|
-
|
|
12310
|
+
parallelData(i[treeChildrenRoom], result);
|
|
12197
12311
|
}
|
|
12198
12312
|
});
|
|
12199
12313
|
return result;
|
|
@@ -12233,7 +12347,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12233
12347
|
var _ctx$form2;
|
|
12234
12348
|
var handleData = formatData(data);
|
|
12235
12349
|
// 获取选中树节点当条数据,并返回给调用业务
|
|
12236
|
-
var parallelTreeData =
|
|
12350
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
12237
12351
|
var currentItem = getSelectItem(parallelTreeData, data);
|
|
12238
12352
|
onChange(handleData, data, currentItem, parallelTreeData);
|
|
12239
12353
|
onChangeName && onChangeName(dataName);
|
|
@@ -12276,7 +12390,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12276
12390
|
var getShowStr = function getShowStr() {
|
|
12277
12391
|
var isMultiple = multiple || treeCheckable;
|
|
12278
12392
|
var kongValue = '无';
|
|
12279
|
-
var parallelTreeData =
|
|
12393
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
12280
12394
|
var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
|
|
12281
12395
|
if (isMultiple) {
|
|
12282
12396
|
return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
|
|
@@ -12969,7 +13083,9 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
12969
13083
|
var _this$props$datasourc = _this.props.datasource,
|
|
12970
13084
|
datasource = _this$props$datasourc === void 0 ? [] : _this$props$datasourc;
|
|
12971
13085
|
_this.setState({
|
|
12972
|
-
visible: true
|
|
13086
|
+
visible: true,
|
|
13087
|
+
onSearchSort: false,
|
|
13088
|
+
searchDataSource: false
|
|
12973
13089
|
});
|
|
12974
13090
|
_this.setInitValue(datasource);
|
|
12975
13091
|
};
|
|
@@ -13416,10 +13532,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13416
13532
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
13417
13533
|
return _objectSpread2({}, col);
|
|
13418
13534
|
});
|
|
13419
|
-
var
|
|
13535
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
13420
13536
|
var i = indexArr.shift();
|
|
13421
13537
|
if (indexArr.length > 0) {
|
|
13422
|
-
|
|
13538
|
+
handleIndex(arr[i].children, indexArr);
|
|
13423
13539
|
} else {
|
|
13424
13540
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
13425
13541
|
width: size.width
|
|
@@ -13427,7 +13543,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13427
13543
|
handleBssulaColumnsSpecialParams(arr[i]);
|
|
13428
13544
|
}
|
|
13429
13545
|
};
|
|
13430
|
-
|
|
13546
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
13431
13547
|
_this.setState({
|
|
13432
13548
|
showColumns: _toConsumableArray(newColumns)
|
|
13433
13549
|
});
|
|
@@ -13506,13 +13622,13 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13506
13622
|
showSummary = summary;
|
|
13507
13623
|
}
|
|
13508
13624
|
}
|
|
13509
|
-
var
|
|
13625
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
13510
13626
|
arr.forEach(function (item, index) {
|
|
13511
13627
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
13512
13628
|
return i || i === 0;
|
|
13513
13629
|
});
|
|
13514
13630
|
if (noEmptyArray$1(item.children)) {
|
|
13515
|
-
|
|
13631
|
+
handleColumns(item.children, indexArrInside);
|
|
13516
13632
|
} else {
|
|
13517
13633
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
13518
13634
|
item.onHeaderCell = function (column) {
|
|
@@ -13528,7 +13644,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13528
13644
|
handleBssulaColumnsSpecialParams(item);
|
|
13529
13645
|
return _objectSpread2({}, item);
|
|
13530
13646
|
});
|
|
13531
|
-
|
|
13647
|
+
handleColumns(showCol, []);
|
|
13532
13648
|
if (dynamicColumns.length) {
|
|
13533
13649
|
showCol = this.handledynamicColumns(showCol);
|
|
13534
13650
|
}
|
|
@@ -13653,10 +13769,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13653
13769
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
13654
13770
|
return _objectSpread2({}, col);
|
|
13655
13771
|
});
|
|
13656
|
-
var
|
|
13772
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
13657
13773
|
var i = indexArr.shift();
|
|
13658
13774
|
if (indexArr.length > 0) {
|
|
13659
|
-
|
|
13775
|
+
handleIndex(arr[i].children, indexArr);
|
|
13660
13776
|
} else {
|
|
13661
13777
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
13662
13778
|
width: size.width
|
|
@@ -13664,7 +13780,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13664
13780
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
13665
13781
|
}
|
|
13666
13782
|
};
|
|
13667
|
-
|
|
13783
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
13668
13784
|
_this.setState({
|
|
13669
13785
|
showColumns: _toConsumableArray(newColumns)
|
|
13670
13786
|
});
|
|
@@ -13740,13 +13856,13 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13740
13856
|
showSummary = summary;
|
|
13741
13857
|
}
|
|
13742
13858
|
}
|
|
13743
|
-
var
|
|
13859
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
13744
13860
|
arr.forEach(function (item, index) {
|
|
13745
13861
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
13746
13862
|
return i || i === 0;
|
|
13747
13863
|
});
|
|
13748
13864
|
if (noEmptyArray$1(item.children)) {
|
|
13749
|
-
|
|
13865
|
+
handleColumns(item.children, indexArrInside);
|
|
13750
13866
|
} else {
|
|
13751
13867
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
13752
13868
|
item.onHeaderCell = function (column) {
|
|
@@ -13762,7 +13878,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13762
13878
|
handleAntdColumnsSpecialParams(item);
|
|
13763
13879
|
return _objectSpread2({}, item);
|
|
13764
13880
|
});
|
|
13765
|
-
|
|
13881
|
+
handleColumns(showCol, []);
|
|
13766
13882
|
if (dynamicColumns.length) {
|
|
13767
13883
|
showCol = this.handledynamicColumns(showCol);
|
|
13768
13884
|
}
|
|
@@ -13855,20 +13971,20 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
|
|
|
13855
13971
|
};
|
|
13856
13972
|
var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
13857
13973
|
var routerMap = {};
|
|
13858
|
-
var
|
|
13974
|
+
var flattenMenuData = function flattenMenuData(data, parent) {
|
|
13859
13975
|
var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
|
|
13860
13976
|
data.forEach(function (menuItem) {
|
|
13861
13977
|
var newMenuItem = _objectSpread2(_objectSpread2({}, menuItem), {}, {
|
|
13862
13978
|
nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
|
|
13863
13979
|
});
|
|
13864
13980
|
if (newMenuItem.children) {
|
|
13865
|
-
|
|
13981
|
+
flattenMenuData(newMenuItem.children, newMenuItem);
|
|
13866
13982
|
}
|
|
13867
13983
|
// Reduce memory usage
|
|
13868
13984
|
routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
|
|
13869
13985
|
});
|
|
13870
13986
|
};
|
|
13871
|
-
|
|
13987
|
+
flattenMenuData(menuData, {});
|
|
13872
13988
|
return routerMap;
|
|
13873
13989
|
};
|
|
13874
13990
|
// mode类型判断
|
|
@@ -14693,7 +14809,9 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
14693
14809
|
}];
|
|
14694
14810
|
_this.showModal = function () {
|
|
14695
14811
|
_this.setState({
|
|
14696
|
-
visible: true
|
|
14812
|
+
visible: true,
|
|
14813
|
+
onSearchSort: false,
|
|
14814
|
+
searchDataSource: false
|
|
14697
14815
|
});
|
|
14698
14816
|
_this.setInitValue();
|
|
14699
14817
|
};
|
|
@@ -15276,7 +15394,9 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15276
15394
|
}];
|
|
15277
15395
|
_this.showModal = function () {
|
|
15278
15396
|
_this.setState({
|
|
15279
|
-
visible: true
|
|
15397
|
+
visible: true,
|
|
15398
|
+
onSearchSort: false,
|
|
15399
|
+
searchDataSource: false
|
|
15280
15400
|
});
|
|
15281
15401
|
_this.setInitValue();
|
|
15282
15402
|
};
|
|
@@ -16307,11 +16427,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
16307
16427
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
16308
16428
|
var resultList = [];
|
|
16309
16429
|
var newRouter = cloneDeep(router);
|
|
16310
|
-
var
|
|
16430
|
+
var deep = function deep(router) {
|
|
16311
16431
|
if (router && Array.isArray(router)) {
|
|
16312
16432
|
router.forEach(function (item) {
|
|
16313
16433
|
if (item.children && Array.isArray(item.children)) {
|
|
16314
|
-
|
|
16434
|
+
deep(item.children);
|
|
16315
16435
|
} else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
|
|
16316
16436
|
return d === item.code;
|
|
16317
16437
|
})) {
|
|
@@ -16325,10 +16445,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
16325
16445
|
resultList.push(_objectSpread2({}, router));
|
|
16326
16446
|
}
|
|
16327
16447
|
};
|
|
16328
|
-
|
|
16448
|
+
deep(newRouter);
|
|
16329
16449
|
callBack([].concat(resultList));
|
|
16330
16450
|
};
|
|
16331
|
-
var
|
|
16451
|
+
var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
16332
16452
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
16333
16453
|
var _loop = function _loop(i) {
|
|
16334
16454
|
if (routesData[i].hideInMenu) {
|
|
@@ -16342,7 +16462,7 @@ var _setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
16342
16462
|
return 0; // continue
|
|
16343
16463
|
}
|
|
16344
16464
|
if (routesData[i].children) {
|
|
16345
|
-
|
|
16465
|
+
setMenuTreeData(routesData[i].children);
|
|
16346
16466
|
}
|
|
16347
16467
|
},
|
|
16348
16468
|
_ret;
|
|
@@ -16363,16 +16483,16 @@ var setLoginOutPath = function setLoginOutPath() {
|
|
|
16363
16483
|
};
|
|
16364
16484
|
var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
|
|
16365
16485
|
var routerMap = {};
|
|
16366
|
-
var
|
|
16486
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
16367
16487
|
data.forEach(function (menuItem) {
|
|
16368
16488
|
if (menuItem.children) {
|
|
16369
|
-
|
|
16489
|
+
flattenMenuData(menuItem.children);
|
|
16370
16490
|
}
|
|
16371
16491
|
// Reduce memory usage
|
|
16372
16492
|
routerMap[menuItem.path] = menuItem;
|
|
16373
16493
|
});
|
|
16374
16494
|
};
|
|
16375
|
-
|
|
16495
|
+
flattenMenuData(menuData);
|
|
16376
16496
|
return routerMap;
|
|
16377
16497
|
};
|
|
16378
16498
|
var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
|
|
@@ -16518,7 +16638,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
16518
16638
|
sethomepageData(homepageDataList);
|
|
16519
16639
|
setroutesData(routesDataList);
|
|
16520
16640
|
}, []);
|
|
16521
|
-
var
|
|
16641
|
+
var renderChildItem = function renderChildItem(child) {
|
|
16522
16642
|
if (!child.hideInMenu && child.children) {
|
|
16523
16643
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
16524
16644
|
style: {
|
|
@@ -16528,7 +16648,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
16528
16648
|
}, formatMessage({
|
|
16529
16649
|
id: "".concat(child.locale)
|
|
16530
16650
|
})), child.children.map(function (menuItem) {
|
|
16531
|
-
return
|
|
16651
|
+
return renderChildItem(menuItem);
|
|
16532
16652
|
}));
|
|
16533
16653
|
} else if (!child.hideInMenu && child.path) {
|
|
16534
16654
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -16598,7 +16718,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
16598
16718
|
bordered: true,
|
|
16599
16719
|
dataSource: item.children,
|
|
16600
16720
|
renderItem: function renderItem(child) {
|
|
16601
|
-
return
|
|
16721
|
+
return renderChildItem(child);
|
|
16602
16722
|
}
|
|
16603
16723
|
});
|
|
16604
16724
|
})));
|
|
@@ -17261,7 +17381,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
17261
17381
|
var resultList = [];
|
|
17262
17382
|
var newRouter = cloneDeep$1(router);
|
|
17263
17383
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
17264
|
-
var
|
|
17384
|
+
var deep = function deep(router) {
|
|
17265
17385
|
if (router && Array.isArray(router)) {
|
|
17266
17386
|
router.forEach(function (item) {
|
|
17267
17387
|
if (item.routes && Array.isArray(item.routes)) {
|
|
@@ -17271,7 +17391,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
17271
17391
|
d.nameEdit = true;
|
|
17272
17392
|
}
|
|
17273
17393
|
});
|
|
17274
|
-
|
|
17394
|
+
deep(item.routes);
|
|
17275
17395
|
} else if (!item.hideInMenu && (name ? formatMessage({
|
|
17276
17396
|
id: "menu.".concat(item.name)
|
|
17277
17397
|
}).indexOf(name) !== -1 : true)) {
|
|
@@ -17290,7 +17410,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
17290
17410
|
}));
|
|
17291
17411
|
}
|
|
17292
17412
|
};
|
|
17293
|
-
|
|
17413
|
+
deep(newRouter);
|
|
17294
17414
|
setroutesData([].concat(resultList));
|
|
17295
17415
|
};
|
|
17296
17416
|
var renderLineStyl = function renderLineStyl(name) {
|
|
@@ -17387,7 +17507,7 @@ var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
17387
17507
|
var TreeNode = Tree.TreeNode;
|
|
17388
17508
|
var Search$2 = Input.Search;
|
|
17389
17509
|
var dataList = [];
|
|
17390
|
-
var
|
|
17510
|
+
var generateList = function generateList(data) {
|
|
17391
17511
|
for (var i = 0; i < data.length; i++) {
|
|
17392
17512
|
var node = data[i];
|
|
17393
17513
|
var path = node.path,
|
|
@@ -17397,11 +17517,11 @@ var _generateList = function generateList(data) {
|
|
|
17397
17517
|
name: name
|
|
17398
17518
|
});
|
|
17399
17519
|
if (node.children) {
|
|
17400
|
-
|
|
17520
|
+
generateList(node.children);
|
|
17401
17521
|
}
|
|
17402
17522
|
}
|
|
17403
17523
|
};
|
|
17404
|
-
var
|
|
17524
|
+
var getParentKey = function getParentKey(path, tree) {
|
|
17405
17525
|
var parentKey;
|
|
17406
17526
|
for (var i = 0; i < tree.length; i++) {
|
|
17407
17527
|
var node = tree[i];
|
|
@@ -17410,8 +17530,8 @@ var _getParentKey = function getParentKey(path, tree) {
|
|
|
17410
17530
|
return item.path === path;
|
|
17411
17531
|
})) {
|
|
17412
17532
|
parentKey = node.path;
|
|
17413
|
-
} else if (
|
|
17414
|
-
parentKey =
|
|
17533
|
+
} else if (getParentKey(path, node.children)) {
|
|
17534
|
+
parentKey = getParentKey(path, node.children);
|
|
17415
17535
|
}
|
|
17416
17536
|
}
|
|
17417
17537
|
}
|
|
@@ -17442,7 +17562,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17442
17562
|
var treeData = _this.state.treeData;
|
|
17443
17563
|
var expandedKeys = dataList.map(function (item) {
|
|
17444
17564
|
if (item.name.indexOf(value) > -1) {
|
|
17445
|
-
return
|
|
17565
|
+
return getParentKey(item.path, treeData);
|
|
17446
17566
|
}
|
|
17447
17567
|
return null;
|
|
17448
17568
|
}).filter(function (item, i, self) {
|
|
@@ -17456,22 +17576,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17456
17576
|
};
|
|
17457
17577
|
_this.getPathList = function (originData) {
|
|
17458
17578
|
var pathList = [];
|
|
17459
|
-
var
|
|
17579
|
+
var getList = function getList(data) {
|
|
17460
17580
|
if (Array.isArray(data)) {
|
|
17461
17581
|
data.forEach(function (item) {
|
|
17462
17582
|
pathList.push(item.path);
|
|
17463
17583
|
if (item.children) {
|
|
17464
|
-
|
|
17584
|
+
getList(item.children);
|
|
17465
17585
|
}
|
|
17466
17586
|
});
|
|
17467
17587
|
} else {
|
|
17468
17588
|
pathList.push(data.path);
|
|
17469
17589
|
if (data.children) {
|
|
17470
|
-
|
|
17590
|
+
getList(data.children);
|
|
17471
17591
|
}
|
|
17472
17592
|
}
|
|
17473
17593
|
};
|
|
17474
|
-
|
|
17594
|
+
getList(originData);
|
|
17475
17595
|
return pathList;
|
|
17476
17596
|
};
|
|
17477
17597
|
_this.handleAdd2Menu = function (path) {
|
|
@@ -17480,18 +17600,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17480
17600
|
customerMenuData = _this$props.customerMenuData,
|
|
17481
17601
|
setCustomerMenuData = _this$props.setCustomerMenuData;
|
|
17482
17602
|
var filterItem;
|
|
17483
|
-
var
|
|
17603
|
+
var filterMenuItem = function filterMenuItem(menuData) {
|
|
17484
17604
|
menuData.forEach(function (item) {
|
|
17485
17605
|
if (item.path === path) {
|
|
17486
17606
|
filterItem = _objectSpread2({}, item);
|
|
17487
17607
|
return;
|
|
17488
17608
|
}
|
|
17489
17609
|
if (item.children) {
|
|
17490
|
-
|
|
17610
|
+
filterMenuItem(item.children);
|
|
17491
17611
|
}
|
|
17492
17612
|
});
|
|
17493
17613
|
};
|
|
17494
|
-
|
|
17614
|
+
filterMenuItem(treeData);
|
|
17495
17615
|
var addPathList = _this.getPathList(filterItem);
|
|
17496
17616
|
var oldPathList = _this.getPathList(customerMenuData);
|
|
17497
17617
|
var isRepet = false;
|
|
@@ -17521,8 +17641,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17521
17641
|
return item.path === '/';
|
|
17522
17642
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
17523
17643
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
17524
|
-
|
|
17525
|
-
|
|
17644
|
+
setMenuTreeData(routesData);
|
|
17645
|
+
generateList(routesData);
|
|
17526
17646
|
this.setState({
|
|
17527
17647
|
treeData: routesData
|
|
17528
17648
|
});
|
|
@@ -17536,7 +17656,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17536
17656
|
expandedKeys = _this$state.expandedKeys,
|
|
17537
17657
|
autoExpandParent = _this$state.autoExpandParent,
|
|
17538
17658
|
treeData = _this$state.treeData;
|
|
17539
|
-
var
|
|
17659
|
+
var loop = function loop(data) {
|
|
17540
17660
|
return data.map(function (item) {
|
|
17541
17661
|
var index = item.name.indexOf(searchValue);
|
|
17542
17662
|
var beforeStr = item.name.substr(0, index);
|
|
@@ -17567,7 +17687,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17567
17687
|
width: 18,
|
|
17568
17688
|
src: arrowRight
|
|
17569
17689
|
}))))
|
|
17570
|
-
},
|
|
17690
|
+
}, loop(item.children));
|
|
17571
17691
|
}
|
|
17572
17692
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
17573
17693
|
path: item.path,
|
|
@@ -17617,7 +17737,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17617
17737
|
onExpand: this.onExpand,
|
|
17618
17738
|
expandedKeys: expandedKeys,
|
|
17619
17739
|
autoExpandParent: autoExpandParent
|
|
17620
|
-
},
|
|
17740
|
+
}, loop(treeData))));
|
|
17621
17741
|
}
|
|
17622
17742
|
}]);
|
|
17623
17743
|
}(React$1.Component);
|
|
@@ -17650,24 +17770,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17650
17770
|
var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
|
|
17651
17771
|
var dragObj;
|
|
17652
17772
|
var finalDropItem;
|
|
17653
|
-
var
|
|
17773
|
+
var loop = function loop(data, path, callback) {
|
|
17654
17774
|
for (var i = 0; i < data.length; i++) {
|
|
17655
17775
|
if (data[i].path === path) {
|
|
17656
17776
|
return callback(data[i], i, data);
|
|
17657
17777
|
}
|
|
17658
17778
|
if (data[i].children) {
|
|
17659
|
-
|
|
17779
|
+
loop(data[i].children, path, callback);
|
|
17660
17780
|
}
|
|
17661
17781
|
}
|
|
17662
17782
|
};
|
|
17663
17783
|
var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
|
|
17664
|
-
|
|
17784
|
+
loop(data, dragKey, function (item, index, arr) {
|
|
17665
17785
|
arr.splice(index, 1);
|
|
17666
17786
|
dragObj = item;
|
|
17667
17787
|
});
|
|
17668
17788
|
if (!info.dropToGap) {
|
|
17669
17789
|
// Drop on the content
|
|
17670
|
-
|
|
17790
|
+
loop(data, dropKey, function (item) {
|
|
17671
17791
|
item.children = item.children || [];
|
|
17672
17792
|
item.children.unshift(dragObj);
|
|
17673
17793
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -17678,7 +17798,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17678
17798
|
// Is expanded
|
|
17679
17799
|
dropPosition === 1 // On the bottom gap
|
|
17680
17800
|
) {
|
|
17681
|
-
|
|
17801
|
+
loop(data, dropKey, function (item) {
|
|
17682
17802
|
item.children = item.children || [];
|
|
17683
17803
|
item.children.unshift(dragObj);
|
|
17684
17804
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -17686,7 +17806,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17686
17806
|
} else {
|
|
17687
17807
|
var ar;
|
|
17688
17808
|
var i;
|
|
17689
|
-
|
|
17809
|
+
loop(data, dropKey, function (item, index, arr) {
|
|
17690
17810
|
ar = arr;
|
|
17691
17811
|
i = index;
|
|
17692
17812
|
});
|
|
@@ -17725,17 +17845,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17725
17845
|
title: '编辑名称',
|
|
17726
17846
|
callBack: function callBack(newName) {
|
|
17727
17847
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
17728
|
-
var
|
|
17848
|
+
var editTreeDataName = function editTreeDataName(oldTreeData) {
|
|
17729
17849
|
oldTreeData.forEach(function (treeItem) {
|
|
17730
17850
|
if (treeItem.path === item.path) {
|
|
17731
17851
|
treeItem.name = newName;
|
|
17732
17852
|
}
|
|
17733
17853
|
if (treeItem.children) {
|
|
17734
|
-
|
|
17854
|
+
editTreeDataName(treeItem.children);
|
|
17735
17855
|
}
|
|
17736
17856
|
});
|
|
17737
17857
|
};
|
|
17738
|
-
|
|
17858
|
+
editTreeDataName(oldTreeData);
|
|
17739
17859
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
17740
17860
|
_this.setState({
|
|
17741
17861
|
modalInfo: {
|
|
@@ -17780,7 +17900,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17780
17900
|
title: '新增子目录',
|
|
17781
17901
|
callBack: function callBack(newName) {
|
|
17782
17902
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
17783
|
-
var
|
|
17903
|
+
var addChildFolder = function addChildFolder(oldTreeData) {
|
|
17784
17904
|
oldTreeData.forEach(function (treeItem) {
|
|
17785
17905
|
if (treeItem.path === item.path) {
|
|
17786
17906
|
treeItem.children ? treeItem.children.push({
|
|
@@ -17792,11 +17912,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17792
17912
|
}];
|
|
17793
17913
|
}
|
|
17794
17914
|
if (treeItem.children) {
|
|
17795
|
-
|
|
17915
|
+
addChildFolder(treeItem.children);
|
|
17796
17916
|
}
|
|
17797
17917
|
});
|
|
17798
17918
|
};
|
|
17799
|
-
|
|
17919
|
+
addChildFolder(oldTreeData);
|
|
17800
17920
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
17801
17921
|
_this.setState({
|
|
17802
17922
|
modalInfo: {
|
|
@@ -17855,7 +17975,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17855
17975
|
var _this$state = this.state,
|
|
17856
17976
|
modalInfo = _this$state.modalInfo,
|
|
17857
17977
|
checkedKeys = _this$state.checkedKeys;
|
|
17858
|
-
var
|
|
17978
|
+
var loop = function loop(data) {
|
|
17859
17979
|
return data.map(function (item) {
|
|
17860
17980
|
if (item.children && item.children.length) {
|
|
17861
17981
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
@@ -17872,7 +17992,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17872
17992
|
e.stopPropagation();
|
|
17873
17993
|
}
|
|
17874
17994
|
}, /*#__PURE__*/React$1.createElement(Space, null, /*#__PURE__*/React$1.createElement(EllipsisOutlined, null))))))
|
|
17875
|
-
},
|
|
17995
|
+
}, loop(item.children));
|
|
17876
17996
|
}
|
|
17877
17997
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
17878
17998
|
path: item.path,
|
|
@@ -17951,7 +18071,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17951
18071
|
children: 'children'
|
|
17952
18072
|
},
|
|
17953
18073
|
onDrop: this.onDrop
|
|
17954
|
-
},
|
|
18074
|
+
}, loop(this.props.customerMenuData))), /*#__PURE__*/React$1.createElement(Modal, {
|
|
17955
18075
|
width: 600,
|
|
17956
18076
|
bodyStyle: {
|
|
17957
18077
|
paddingTop: '32px',
|
|
@@ -18064,7 +18184,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18064
18184
|
pathname: item.path
|
|
18065
18185
|
});
|
|
18066
18186
|
};
|
|
18067
|
-
var
|
|
18187
|
+
var getMenuDom = function getMenuDom(menuData) {
|
|
18068
18188
|
return menuData.map(function (item) {
|
|
18069
18189
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
18070
18190
|
style: {
|
|
@@ -18079,7 +18199,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18079
18199
|
fontWeight: item.children || !item.component ? 'bolder' : '400',
|
|
18080
18200
|
paddingLeft: '4px'
|
|
18081
18201
|
}
|
|
18082
|
-
}, item.name), !!item.children && !!item.children.length &&
|
|
18202
|
+
}, item.name), !!item.children && !!item.children.length && getMenuDom(item.children));
|
|
18083
18203
|
});
|
|
18084
18204
|
};
|
|
18085
18205
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -18126,7 +18246,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18126
18246
|
visible: isDrawer
|
|
18127
18247
|
}, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("p", {
|
|
18128
18248
|
className: 'menu_title_line'
|
|
18129
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"),
|
|
18249
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"), getMenuDom(menuData)))), /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
18130
18250
|
title: /*#__PURE__*/React$1.createElement("span", {
|
|
18131
18251
|
style: {
|
|
18132
18252
|
fontWeight: '600',
|
|
@@ -18200,7 +18320,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
18200
18320
|
return item.path === '/';
|
|
18201
18321
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
18202
18322
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
18203
|
-
|
|
18323
|
+
setMenuTreeData(routesData);
|
|
18204
18324
|
routesData.forEach(function (item) {
|
|
18205
18325
|
if (item.children) {
|
|
18206
18326
|
routesDataList.push(item);
|
|
@@ -18230,7 +18350,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
18230
18350
|
setHeight(clientHeight - 190);
|
|
18231
18351
|
setDrawHeight(clientHeight - 70);
|
|
18232
18352
|
};
|
|
18233
|
-
var
|
|
18353
|
+
var renderChildItem = function renderChildItem(child) {
|
|
18234
18354
|
if (!child.hideInMenu && child.children) {
|
|
18235
18355
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
18236
18356
|
style: {
|
|
@@ -18240,7 +18360,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
18240
18360
|
}, formatMessage({
|
|
18241
18361
|
id: "".concat(child.locale)
|
|
18242
18362
|
})), child.children.map(function (menuItem) {
|
|
18243
|
-
return
|
|
18363
|
+
return renderChildItem(menuItem);
|
|
18244
18364
|
}));
|
|
18245
18365
|
} else if (!child.hideInMenu && child.path) {
|
|
18246
18366
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -18444,7 +18564,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
18444
18564
|
bordered: true,
|
|
18445
18565
|
dataSource: item.children,
|
|
18446
18566
|
renderItem: function renderItem(child) {
|
|
18447
|
-
return
|
|
18567
|
+
return renderChildItem(child);
|
|
18448
18568
|
}
|
|
18449
18569
|
});
|
|
18450
18570
|
})), /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -18602,10 +18722,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
18602
18722
|
var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
|
|
18603
18723
|
var menuKeys = [];
|
|
18604
18724
|
var docsId = [];
|
|
18605
|
-
var
|
|
18725
|
+
var getLimitedMenuKeys = function getLimitedMenuKeys(data) {
|
|
18606
18726
|
data.forEach(function (item) {
|
|
18607
18727
|
if (item.children && item.children.length > 0) {
|
|
18608
|
-
|
|
18728
|
+
getLimitedMenuKeys(item.children);
|
|
18609
18729
|
} else {
|
|
18610
18730
|
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
18611
18731
|
menuKeys.push(originPath);
|
|
@@ -18616,7 +18736,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
18616
18736
|
});
|
|
18617
18737
|
};
|
|
18618
18738
|
try {
|
|
18619
|
-
|
|
18739
|
+
getLimitedMenuKeys(limitedMenuData);
|
|
18620
18740
|
} catch (e) {}
|
|
18621
18741
|
return {
|
|
18622
18742
|
menuKeys: menuKeys,
|
|
@@ -18850,10 +18970,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
18850
18970
|
return (node.path || '').includes('all-general-documents');
|
|
18851
18971
|
};
|
|
18852
18972
|
// 递归获取树列表
|
|
18853
|
-
var
|
|
18973
|
+
var getTreeList = function getTreeList(data) {
|
|
18854
18974
|
data.forEach(function (node) {
|
|
18855
18975
|
if (node.routes && node.routes.length > 0) {
|
|
18856
|
-
|
|
18976
|
+
getTreeList(node.routes);
|
|
18857
18977
|
return;
|
|
18858
18978
|
}
|
|
18859
18979
|
// todo:暂时处理非wujie环境不做404管控
|
|
@@ -18884,7 +19004,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
18884
19004
|
}
|
|
18885
19005
|
});
|
|
18886
19006
|
};
|
|
18887
|
-
|
|
19007
|
+
getTreeList(treeData);
|
|
18888
19008
|
return treeList;
|
|
18889
19009
|
};
|
|
18890
19010
|
_this.getDictionarySource = function (dicCode) {
|
|
@@ -19945,12 +20065,12 @@ var index$5 = (function (props) {
|
|
|
19945
20065
|
});
|
|
19946
20066
|
|
|
19947
20067
|
// @ts-nocheck
|
|
19948
|
-
var
|
|
20068
|
+
var getAllColumns = function getAllColumns(columns) {
|
|
19949
20069
|
var result = [];
|
|
19950
20070
|
columns.forEach(function (column) {
|
|
19951
20071
|
if (column.children) {
|
|
19952
20072
|
result.push(column);
|
|
19953
|
-
result.push.apply(result,
|
|
20073
|
+
result.push.apply(result, getAllColumns(column.children));
|
|
19954
20074
|
} else {
|
|
19955
20075
|
result.push(column);
|
|
19956
20076
|
}
|
|
@@ -19959,7 +20079,7 @@ var _getAllColumns = function getAllColumns(columns) {
|
|
|
19959
20079
|
};
|
|
19960
20080
|
var convertToRows = function convertToRows(originColumns) {
|
|
19961
20081
|
var maxLevel = 1;
|
|
19962
|
-
var
|
|
20082
|
+
var traverse = function traverse(column, parent) {
|
|
19963
20083
|
if (parent) {
|
|
19964
20084
|
column.level = parent.level + 1;
|
|
19965
20085
|
if (maxLevel < column.level) {
|
|
@@ -19969,7 +20089,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
19969
20089
|
if (column.children) {
|
|
19970
20090
|
var colSpan = 0;
|
|
19971
20091
|
column.children.forEach(function (subColumn) {
|
|
19972
|
-
|
|
20092
|
+
traverse(subColumn, column);
|
|
19973
20093
|
colSpan += subColumn.colSpan;
|
|
19974
20094
|
});
|
|
19975
20095
|
column.colSpan = colSpan;
|
|
@@ -19979,13 +20099,13 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
19979
20099
|
};
|
|
19980
20100
|
originColumns.forEach(function (column) {
|
|
19981
20101
|
column.level = 1;
|
|
19982
|
-
|
|
20102
|
+
traverse(column);
|
|
19983
20103
|
});
|
|
19984
20104
|
var rows = [];
|
|
19985
20105
|
for (var i = 0; i < maxLevel; i++) {
|
|
19986
20106
|
rows.push([]);
|
|
19987
20107
|
}
|
|
19988
|
-
var allColumns =
|
|
20108
|
+
var allColumns = getAllColumns(originColumns);
|
|
19989
20109
|
allColumns.forEach(function (column) {
|
|
19990
20110
|
if (!column.children) {
|
|
19991
20111
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -20025,7 +20145,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
20025
20145
|
};
|
|
20026
20146
|
var headersToRows = function headersToRows(originColumns) {
|
|
20027
20147
|
var maxLevel = 1;
|
|
20028
|
-
var
|
|
20148
|
+
var traverse = function traverse(column, parent) {
|
|
20029
20149
|
if (parent) {
|
|
20030
20150
|
//计算当前元素属于第几个层级
|
|
20031
20151
|
column.level = parent.level + 1;
|
|
@@ -20038,7 +20158,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
20038
20158
|
var colSpan = 0;
|
|
20039
20159
|
column.children.forEach(function (subColumn) {
|
|
20040
20160
|
//进行递归
|
|
20041
|
-
|
|
20161
|
+
traverse(subColumn, column);
|
|
20042
20162
|
colSpan += subColumn.colSpan;
|
|
20043
20163
|
});
|
|
20044
20164
|
column.colSpan = colSpan;
|
|
@@ -20048,14 +20168,14 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
20048
20168
|
};
|
|
20049
20169
|
originColumns.forEach(function (column) {
|
|
20050
20170
|
column.level = 1;
|
|
20051
|
-
|
|
20171
|
+
traverse(column);
|
|
20052
20172
|
});
|
|
20053
20173
|
var rows = [];
|
|
20054
20174
|
var lastData = [];
|
|
20055
20175
|
for (var i = 0; i < maxLevel; i++) {
|
|
20056
20176
|
rows.push([]);
|
|
20057
20177
|
}
|
|
20058
|
-
var allColumns =
|
|
20178
|
+
var allColumns = getAllColumns(originColumns);
|
|
20059
20179
|
allColumns.forEach(function (column) {
|
|
20060
20180
|
if (!column.children) {
|
|
20061
20181
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -26072,7 +26192,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
|
|
|
26072
26192
|
}
|
|
26073
26193
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
26074
26194
|
};
|
|
26075
|
-
var
|
|
26195
|
+
var hasHighLightChildren = function hasHighLightChildren() {
|
|
26076
26196
|
var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
26077
26197
|
var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
|
|
26078
26198
|
var children = hightLightData.children,
|
|
@@ -26083,7 +26203,7 @@ var _hasHighLightChildren = function hasHighLightChildren() {
|
|
|
26083
26203
|
lineEnd = _loc2[2];
|
|
26084
26204
|
if (children) {
|
|
26085
26205
|
return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
|
|
26086
|
-
return
|
|
26206
|
+
return hasHighLightChildren(v, highLightLine);
|
|
26087
26207
|
});
|
|
26088
26208
|
}
|
|
26089
26209
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
@@ -26095,7 +26215,7 @@ function createHighLightTreeData(treeData, highLightLine) {
|
|
|
26095
26215
|
var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
|
|
26096
26216
|
data.forEach(function (node) {
|
|
26097
26217
|
if (!node) return;
|
|
26098
|
-
node.toggled =
|
|
26218
|
+
node.toggled = hasHighLightChildren(node, highLightLine);
|
|
26099
26219
|
node.active = isHightLight(node, highLightLine);
|
|
26100
26220
|
if (node.children) {
|
|
26101
26221
|
if (node.active) {
|
|
@@ -29267,10 +29387,10 @@ var formatListName = function formatListName(list, columns) {
|
|
|
29267
29387
|
};
|
|
29268
29388
|
|
|
29269
29389
|
var _excluded$j = ["sorter"];
|
|
29270
|
-
/**
|
|
29271
|
-
* 删掉查询条件的qp- 和 -eq等
|
|
29272
|
-
* @param {object} data
|
|
29273
|
-
* @return {object}
|
|
29390
|
+
/**
|
|
29391
|
+
* 删掉查询条件的qp- 和 -eq等
|
|
29392
|
+
* @param {object} data
|
|
29393
|
+
* @return {object}
|
|
29274
29394
|
* */
|
|
29275
29395
|
function deleteQuerySymbol(data) {
|
|
29276
29396
|
var result = {};
|
|
@@ -29301,10 +29421,10 @@ function convertToMapByKey(data) {
|
|
|
29301
29421
|
return result;
|
|
29302
29422
|
}
|
|
29303
29423
|
|
|
29304
|
-
/**
|
|
29305
|
-
* 去掉查询表格的qp- -eq -in,与普通表格一样的格式
|
|
29306
|
-
* @param{string} prop 键
|
|
29307
|
-
* @param{boolean} flag 是不是查询表格
|
|
29424
|
+
/**
|
|
29425
|
+
* 去掉查询表格的qp- -eq -in,与普通表格一样的格式
|
|
29426
|
+
* @param{string} prop 键
|
|
29427
|
+
* @param{boolean} flag 是不是查询表格
|
|
29308
29428
|
* */
|
|
29309
29429
|
function convertProp(prop, flag) {
|
|
29310
29430
|
var _prop$replace, _prop$replace$replace, _prop$replace$replace2, _prop$replace$replace3;
|
|
@@ -32747,6 +32867,122 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32747
32867
|
});
|
|
32748
32868
|
}
|
|
32749
32869
|
}
|
|
32870
|
+
|
|
32871
|
+
// 商品标签选择器
|
|
32872
|
+
if (dataChoiceBusinessType == 450) {
|
|
32873
|
+
if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
|
|
32874
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
32875
|
+
selectBusinessType: "orderTag",
|
|
32876
|
+
selectProps: _objectSpread2({
|
|
32877
|
+
style: styleCommon,
|
|
32878
|
+
placeholder: '请选择商品标签'
|
|
32879
|
+
}, dataInputBusinessType === 12 ? {
|
|
32880
|
+
mode: 'multiple',
|
|
32881
|
+
maxTagCount: 1
|
|
32882
|
+
} : {}),
|
|
32883
|
+
disabled: disabled,
|
|
32884
|
+
labelInValue: true,
|
|
32885
|
+
value: values[0],
|
|
32886
|
+
requestConfig: {
|
|
32887
|
+
filterInit: 'qp-code-in'
|
|
32888
|
+
},
|
|
32889
|
+
onChange: function onChange(value) {
|
|
32890
|
+
if (dataInputBusinessType === 12) {
|
|
32891
|
+
values[0] = value.map(function (i) {
|
|
32892
|
+
return i.key;
|
|
32893
|
+
});
|
|
32894
|
+
valueNames[0] = value.map(function (i) {
|
|
32895
|
+
return i.label || '';
|
|
32896
|
+
});
|
|
32897
|
+
} else {
|
|
32898
|
+
values[0] = [value.key];
|
|
32899
|
+
valueNames[0] = [value.label || ''];
|
|
32900
|
+
}
|
|
32901
|
+
callback(values, valueNames);
|
|
32902
|
+
},
|
|
32903
|
+
getPopupContainer: function getPopupContainer() {
|
|
32904
|
+
return document.body;
|
|
32905
|
+
}
|
|
32906
|
+
}), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
32907
|
+
selectBusinessType: "orderTag",
|
|
32908
|
+
selectProps: _objectSpread2({
|
|
32909
|
+
style: styleCommon,
|
|
32910
|
+
placeholder: '请选择商品标签'
|
|
32911
|
+
}, dataInputBusinessType === 12 ? {
|
|
32912
|
+
mode: 'multiple',
|
|
32913
|
+
maxTagCount: 1
|
|
32914
|
+
} : {}),
|
|
32915
|
+
disabled: disabled,
|
|
32916
|
+
labelInValue: true,
|
|
32917
|
+
value: values[1],
|
|
32918
|
+
requestConfig: {
|
|
32919
|
+
filterInit: 'qp-code-in'
|
|
32920
|
+
},
|
|
32921
|
+
onChange: function onChange(value) {
|
|
32922
|
+
if (dataInputBusinessType === 12) {
|
|
32923
|
+
values[1] = value.map(function (i) {
|
|
32924
|
+
return i.key;
|
|
32925
|
+
});
|
|
32926
|
+
valueNames[1] = value.map(function (i) {
|
|
32927
|
+
return i.label || '';
|
|
32928
|
+
});
|
|
32929
|
+
} else {
|
|
32930
|
+
values[1] = [value.key];
|
|
32931
|
+
valueNames[1] = [value.label || ''];
|
|
32932
|
+
}
|
|
32933
|
+
callback(values, valueNames);
|
|
32934
|
+
},
|
|
32935
|
+
getPopupContainer: function getPopupContainer() {
|
|
32936
|
+
return document.body;
|
|
32937
|
+
}
|
|
32938
|
+
}));
|
|
32939
|
+
} else {
|
|
32940
|
+
var _values14;
|
|
32941
|
+
var _currentValue13 = dataInputBusinessType === 12 ? ((_values14 = values) === null || _values14 === void 0 ? void 0 : _values14.map(function (s, vIndex) {
|
|
32942
|
+
return {
|
|
32943
|
+
key: s,
|
|
32944
|
+
label: valueNames[vIndex]
|
|
32945
|
+
};
|
|
32946
|
+
})) || [] : values[0] && {
|
|
32947
|
+
key: values[0],
|
|
32948
|
+
label: valueNames[0]
|
|
32949
|
+
} || {};
|
|
32950
|
+
return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
32951
|
+
selectBusinessType: "orderTag",
|
|
32952
|
+
selectProps: _objectSpread2({
|
|
32953
|
+
style: styleCommon,
|
|
32954
|
+
placeholder: '请选择商品标签'
|
|
32955
|
+
}, dataInputBusinessType === 12 ? {
|
|
32956
|
+
mode: 'multiple',
|
|
32957
|
+
maxTagCount: 1
|
|
32958
|
+
} : {}),
|
|
32959
|
+
disabled: disabled,
|
|
32960
|
+
labelInValue: true,
|
|
32961
|
+
value: _currentValue13,
|
|
32962
|
+
requestConfig: {
|
|
32963
|
+
filterInit: 'qp-code-in'
|
|
32964
|
+
},
|
|
32965
|
+
onChange: function onChange(value) {
|
|
32966
|
+
if (dataInputBusinessType === 12) {
|
|
32967
|
+
values = value.map(function (i) {
|
|
32968
|
+
return i.key;
|
|
32969
|
+
}) || [];
|
|
32970
|
+
valueNames = value.map(function (i) {
|
|
32971
|
+
return i.label || '';
|
|
32972
|
+
}) || [];
|
|
32973
|
+
} else {
|
|
32974
|
+
values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
|
|
32975
|
+
valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
|
|
32976
|
+
}
|
|
32977
|
+
callback(values, valueNames);
|
|
32978
|
+
},
|
|
32979
|
+
getPopupContainer: function getPopupContainer() {
|
|
32980
|
+
return document.body;
|
|
32981
|
+
}
|
|
32982
|
+
});
|
|
32983
|
+
}
|
|
32984
|
+
}
|
|
32985
|
+
|
|
32750
32986
|
// 自定义选择器
|
|
32751
32987
|
if (dataChoiceBusinessType == 40) {
|
|
32752
32988
|
if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
|
|
@@ -32834,8 +33070,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32834
33070
|
}
|
|
32835
33071
|
}));
|
|
32836
33072
|
} else {
|
|
32837
|
-
var
|
|
32838
|
-
var
|
|
33073
|
+
var _values15;
|
|
33074
|
+
var _currentValue14 = dataInputBusinessType === 12 ? ((_values15 = values) === null || _values15 === void 0 ? void 0 : _values15.map(function (s, vIndex) {
|
|
32839
33075
|
return {
|
|
32840
33076
|
key: s,
|
|
32841
33077
|
label: valueNames[vIndex]
|
|
@@ -32863,7 +33099,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32863
33099
|
isSearchForm: true,
|
|
32864
33100
|
customSelectorConfig: (others === null || others === void 0 ? void 0 : others.customSelectorConfig) || {},
|
|
32865
33101
|
disabled: disabled,
|
|
32866
|
-
value:
|
|
33102
|
+
value: _currentValue14,
|
|
32867
33103
|
onChange: function onChange(value, sourceList) {
|
|
32868
33104
|
if (dataInputBusinessType === 12) {
|
|
32869
33105
|
var _value$map3, _sourceList$filter3;
|
|
@@ -34186,6 +34422,30 @@ function RenderCompItem(props) {
|
|
|
34186
34422
|
getPopupContainer: function getPopupContainer() {
|
|
34187
34423
|
return document.body;
|
|
34188
34424
|
}
|
|
34425
|
+
})) || 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, {
|
|
34426
|
+
selectBusinessType: "orderTag",
|
|
34427
|
+
prefixUrl: {
|
|
34428
|
+
selectPrefix: '/oms-ops'
|
|
34429
|
+
},
|
|
34430
|
+
selectProps: _objectSpread2({
|
|
34431
|
+
style: styleCommon,
|
|
34432
|
+
placeholder: '请选择订单标签'
|
|
34433
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
34434
|
+
mode: 'multiple',
|
|
34435
|
+
maxTagCount: 1
|
|
34436
|
+
} : {}),
|
|
34437
|
+
disabled: disabled,
|
|
34438
|
+
labelInValue: true,
|
|
34439
|
+
value: showValue(ites.code),
|
|
34440
|
+
requestConfig: {
|
|
34441
|
+
filterInit: 'qp-code-in'
|
|
34442
|
+
},
|
|
34443
|
+
onChange: function onChange(value) {
|
|
34444
|
+
handleEdit(ites.code, value);
|
|
34445
|
+
},
|
|
34446
|
+
getPopupContainer: function getPopupContainer() {
|
|
34447
|
+
return document.body;
|
|
34448
|
+
}
|
|
34189
34449
|
})) || 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
34450
|
selectProps: _objectSpread2(_objectSpread2({
|
|
34191
34451
|
style: styleCommon,
|
|
@@ -34425,7 +34685,13 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
34425
34685
|
needShowAction = _this$props$needShowA === void 0 ? true : _this$props$needShowA,
|
|
34426
34686
|
extraConfig = _this$props.extraConfig,
|
|
34427
34687
|
customTitleSubStyle = _this$props.customTitleSubStyle,
|
|
34428
|
-
customTitlePreStyle = _this$props.customTitlePreStyle
|
|
34688
|
+
customTitlePreStyle = _this$props.customTitlePreStyle,
|
|
34689
|
+
_this$props$leftRuleD = _this$props.leftRuleDisabled,
|
|
34690
|
+
leftRuleDisabled = _this$props$leftRuleD === void 0 ? false : _this$props$leftRuleD,
|
|
34691
|
+
_this$props$returnDis = _this$props.returnDisabled,
|
|
34692
|
+
returnDisabled = _this$props$returnDis === void 0 ? false : _this$props$returnDis,
|
|
34693
|
+
_this$props$actionDis = _this$props.actionDisabled,
|
|
34694
|
+
actionDisabled = _this$props$actionDis === void 0 ? false : _this$props$actionDis;
|
|
34429
34695
|
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
34696
|
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
34697
|
var priorityList = ((ruleGroupInfo === null || ruleGroupInfo === void 0 ? void 0 : ruleGroupInfo.groupOtherPriorityList) || []).concat(ruleClassData || []);
|
|
@@ -34508,7 +34774,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
34508
34774
|
}
|
|
34509
34775
|
}, "\u4F18\u5148\u7EA7"), /*#__PURE__*/React$1.createElement(Select, {
|
|
34510
34776
|
size: "small",
|
|
34511
|
-
disabled: canChangePriority ? !canChangePriority : disabled,
|
|
34777
|
+
disabled: canChangePriority ? !canChangePriority : disabled || leftRuleDisabled,
|
|
34512
34778
|
style: {
|
|
34513
34779
|
width: 100
|
|
34514
34780
|
},
|
|
@@ -34541,7 +34807,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
34541
34807
|
}, "\u4E1A\u52A1\u7F16\u7801"), /*#__PURE__*/React$1.createElement(EllipsisTooltip, {
|
|
34542
34808
|
visible: true,
|
|
34543
34809
|
maxLength: 24,
|
|
34544
|
-
title: item.extStrField01
|
|
34810
|
+
title: item.extStrField01 || ''
|
|
34545
34811
|
})), extraConfig && extraConfig.map(function (extraItem, index) {
|
|
34546
34812
|
var _extraItem$optionList;
|
|
34547
34813
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -34562,7 +34828,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
34562
34828
|
width: 100
|
|
34563
34829
|
},
|
|
34564
34830
|
mode: (extraItem === null || extraItem === void 0 ? void 0 : extraItem.mode) || null,
|
|
34565
|
-
disabled: disabled,
|
|
34831
|
+
disabled: disabled || leftRuleDisabled || returnDisabled || actionDisabled,
|
|
34566
34832
|
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
34833
|
onChange: function onChange(v) {
|
|
34568
34834
|
item[extraItem === null || extraItem === void 0 ? void 0 : extraItem.code] = Array.isArray(v) ? v.join(',') : v;
|
|
@@ -34586,7 +34852,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
34586
34852
|
top: '5px'
|
|
34587
34853
|
}
|
|
34588
34854
|
}, /*#__PURE__*/React$1.createElement(Button, {
|
|
34589
|
-
disabled: disabled,
|
|
34855
|
+
disabled: disabled || leftRuleDisabled && returnDisabled && actionDisabled,
|
|
34590
34856
|
onClick: function onClick() {
|
|
34591
34857
|
var ruleClassData = _this.state.ruleClassData;
|
|
34592
34858
|
ruleClassData.splice(classDataIndex, 1);
|
|
@@ -34604,7 +34870,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
34604
34870
|
marginTop: '10px'
|
|
34605
34871
|
}
|
|
34606
34872
|
}, /*#__PURE__*/React$1.createElement(Input, {
|
|
34607
|
-
disabled: disabled,
|
|
34873
|
+
disabled: disabled || leftRuleDisabled && returnDisabled && actionDisabled,
|
|
34608
34874
|
value: currentRuleName,
|
|
34609
34875
|
style: {
|
|
34610
34876
|
width: '200px'
|
|
@@ -34615,7 +34881,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
34615
34881
|
});
|
|
34616
34882
|
}
|
|
34617
34883
|
}), /*#__PURE__*/React$1.createElement(Button, {
|
|
34618
|
-
disabled: disabled,
|
|
34884
|
+
disabled: disabled || leftRuleDisabled && returnDisabled && actionDisabled,
|
|
34619
34885
|
type: "link",
|
|
34620
34886
|
onClick: function onClick() {
|
|
34621
34887
|
var _this$state3 = _this.state,
|
|
@@ -34703,7 +34969,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
34703
34969
|
_this$props3$initialT = _this$props3.initialThresholdQuery,
|
|
34704
34970
|
initialThresholdQuery = _this$props3$initialT === void 0 ? {} : _this$props3$initialT,
|
|
34705
34971
|
disabled = _this$props3.disabled,
|
|
34706
|
-
systemVariableList = _this$props3.systemVariableList
|
|
34972
|
+
systemVariableList = _this$props3.systemVariableList,
|
|
34973
|
+
leftRuleDisabled = _this$props3.leftRuleDisabled;
|
|
34707
34974
|
var thresholdQuery = _objectSpread2(_objectSpread2({}, initialThresholdQuery), relateDatas);
|
|
34708
34975
|
var finalIndex = floorIndex + 1;
|
|
34709
34976
|
var queryIdentify = '';
|
|
@@ -34721,7 +34988,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
34721
34988
|
queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
|
|
34722
34989
|
queryIdentifyType = 'dynamicDictCodeIdentify';
|
|
34723
34990
|
}
|
|
34724
|
-
var parallelTreeData =
|
|
34991
|
+
var parallelTreeData = coverToParallel(ruleTreeData, []) || [];
|
|
34725
34992
|
var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
|
|
34726
34993
|
var _i$key;
|
|
34727
34994
|
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 +35023,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
34756
35023
|
}, "\u5E76\u4E14")),
|
|
34757
35024
|
trigger: "focus"
|
|
34758
35025
|
}, /*#__PURE__*/React$1.createElement(Button, {
|
|
34759
|
-
disabled: disabled,
|
|
35026
|
+
disabled: disabled || leftRuleDisabled,
|
|
34760
35027
|
type: "link",
|
|
34761
35028
|
className: 'logical_item_btn'
|
|
34762
35029
|
}, (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.operationCode) == 'or' ? '或者' : '并且', /*#__PURE__*/React$1.createElement(DownOutlined, {
|
|
@@ -34782,7 +35049,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
34782
35049
|
showSearch: true,
|
|
34783
35050
|
treeNodeFilterProp: "title",
|
|
34784
35051
|
value: itemDetail.elementId,
|
|
34785
|
-
disabled: disabled,
|
|
35052
|
+
disabled: disabled || leftRuleDisabled,
|
|
34786
35053
|
onChange: function onChange(value, name, nodeInfo) {
|
|
34787
35054
|
if (!nodeInfo.triggerNode.props.isLeaf) return; //只有最末端叶子节点可选中
|
|
34788
35055
|
var ruleClassData = _this.state.ruleClassData;
|
|
@@ -34807,7 +35074,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
34807
35074
|
treeData: ruleTreeData
|
|
34808
35075
|
}), /*#__PURE__*/React$1.createElement(Select, {
|
|
34809
35076
|
value: (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.operationCode) || '',
|
|
34810
|
-
disabled: disabled,
|
|
35077
|
+
disabled: disabled || leftRuleDisabled,
|
|
34811
35078
|
style: {
|
|
34812
35079
|
width: '150px',
|
|
34813
35080
|
marginLeft: '10px'
|
|
@@ -34829,7 +35096,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
34829
35096
|
})), !(itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.isInsertParam) ? /*#__PURE__*/React$1.createElement(RuleField, {
|
|
34830
35097
|
customerWidth: _this.props.customerWidth,
|
|
34831
35098
|
selectOperation: (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.operationCode) || '',
|
|
34832
|
-
disabled: disabled,
|
|
35099
|
+
disabled: disabled || leftRuleDisabled,
|
|
34833
35100
|
initialThresholdQuery: thresholdQuery,
|
|
34834
35101
|
dataTypeCode: (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.dataTypeCode) || '',
|
|
34835
35102
|
dataChoiceBusinessType: dataChoiceBusinessType || '',
|
|
@@ -34848,7 +35115,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
34848
35115
|
_this.handleValuesChange(itemDetail, newValues, newValueNames);
|
|
34849
35116
|
}
|
|
34850
35117
|
}) : null, /*#__PURE__*/React$1.createElement(Select, {
|
|
34851
|
-
disabled: disabled,
|
|
35118
|
+
disabled: disabled || leftRuleDisabled,
|
|
34852
35119
|
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
35120
|
,
|
|
34854
35121
|
style: {
|
|
@@ -34884,7 +35151,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
34884
35151
|
style: {
|
|
34885
35152
|
color: '#008fe0',
|
|
34886
35153
|
marginLeft: '15px',
|
|
34887
|
-
display: floorIndex > 4 || disabled ? 'none' : 'inline-block'
|
|
35154
|
+
display: floorIndex > 4 || disabled || leftRuleDisabled ? 'none' : 'inline-block'
|
|
34888
35155
|
}
|
|
34889
35156
|
}), /*#__PURE__*/React$1.createElement(MinusCircleOutlined, {
|
|
34890
35157
|
className: 'icon_btn_style',
|
|
@@ -34893,11 +35160,11 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
34893
35160
|
},
|
|
34894
35161
|
style: {
|
|
34895
35162
|
color: 'gray',
|
|
34896
|
-
display: disabled ? 'none' : 'inline-block'
|
|
35163
|
+
display: disabled || leftRuleDisabled ? 'none' : 'inline-block'
|
|
34897
35164
|
}
|
|
34898
35165
|
}), /*#__PURE__*/React$1.createElement(Button, {
|
|
34899
35166
|
type: "link",
|
|
34900
|
-
disabled: disabled || (itemDetail.operationCode === '' || !itemDetail.operationCode ? true : false),
|
|
35167
|
+
disabled: disabled || leftRuleDisabled || (itemDetail.operationCode === '' || !itemDetail.operationCode ? true : false),
|
|
34901
35168
|
onClick: function onClick() {
|
|
34902
35169
|
var ruleClassData = _this.state.ruleClassData;
|
|
34903
35170
|
if (systemVariableList && Array.isArray(systemVariableList) && systemVariableList.length && systemVariableList[0].code !== '-1') {
|
|
@@ -34920,7 +35187,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
34920
35187
|
}
|
|
34921
35188
|
}, (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.isInsertParam) ? '取消插入参数' : '插入参数')), /*#__PURE__*/React$1.createElement("div", {
|
|
34922
35189
|
style: {
|
|
34923
|
-
display: itemDetail.operationType == 'logic' && !disabled ? 'block' : 'none'
|
|
35190
|
+
display: itemDetail.operationType == 'logic' && !disabled && !leftRuleDisabled ? 'block' : 'none'
|
|
34924
35191
|
}
|
|
34925
35192
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
34926
35193
|
style: {
|
|
@@ -34963,7 +35230,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
34963
35230
|
});
|
|
34964
35231
|
};
|
|
34965
35232
|
// 场景需要返回值2022.11.15
|
|
34966
|
-
_this.renderResItem = function (itemDetail, parentDetail, ruleReturnConfig, selectRuleReturnData, classDataIndex, disabled, boxStyle) {
|
|
35233
|
+
_this.renderResItem = function (itemDetail, parentDetail, ruleReturnConfig, selectRuleReturnData, classDataIndex, disabled, boxStyle, returnDisabled) {
|
|
34967
35234
|
var _ruleReturnConfig$rig;
|
|
34968
35235
|
var isRightText = ruleReturnConfig === null || ruleReturnConfig === void 0 ? void 0 : (_ruleReturnConfig$rig = ruleReturnConfig.rightText) === null || _ruleReturnConfig$rig === void 0 ? void 0 : _ruleReturnConfig$rig.length;
|
|
34969
35236
|
var showValue = function showValue(code, type, functionItem, configItem) {
|
|
@@ -35029,7 +35296,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35029
35296
|
style: {
|
|
35030
35297
|
display: 'flex'
|
|
35031
35298
|
}
|
|
35032
|
-
}, _this.renderFormCompItem(item, showValue, handleEdit, {}, boxStyle, disabled), /*#__PURE__*/React$1.createElement(MinusCircleOutlined, {
|
|
35299
|
+
}, _this.renderFormCompItem(item, showValue, handleEdit, {}, boxStyle, disabled, returnDisabled), /*#__PURE__*/React$1.createElement(MinusCircleOutlined, {
|
|
35033
35300
|
className: 'icon_btn_style',
|
|
35034
35301
|
onClick: function onClick() {
|
|
35035
35302
|
_this.handleEditExtraInfoResponse('enable', false, parentDetail, classDataIndex, item.code);
|
|
@@ -35038,12 +35305,12 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35038
35305
|
color: 'gray',
|
|
35039
35306
|
marginLeft: isRightText ? '100px' : '15px',
|
|
35040
35307
|
marginTop: '15px',
|
|
35041
|
-
display: disabled ? 'none' : 'inline-block'
|
|
35308
|
+
display: disabled || returnDisabled ? 'none' : 'inline-block'
|
|
35042
35309
|
}
|
|
35043
35310
|
}));
|
|
35044
35311
|
})))) : /*#__PURE__*/React$1.createElement(React$1.Fragment, null));
|
|
35045
35312
|
};
|
|
35046
|
-
_this.renderFormCompItem = function (config, _showValue, _handleEdit, parentItem, boxStyle, disabled) {
|
|
35313
|
+
_this.renderFormCompItem = function (config, _showValue, _handleEdit, parentItem, boxStyle, disabled, returnOrActionDisabled) {
|
|
35047
35314
|
if (!config) return;
|
|
35048
35315
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
35049
35316
|
style: boxStyle
|
|
@@ -35074,7 +35341,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35074
35341
|
var d = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : config;
|
|
35075
35342
|
return _handleEdit(a, b, c, d);
|
|
35076
35343
|
},
|
|
35077
|
-
disabled: disabled
|
|
35344
|
+
disabled: disabled || returnOrActionDisabled
|
|
35078
35345
|
}), (config === null || config === void 0 ? void 0 : config.rightText) && /*#__PURE__*/React$1.createElement("div", {
|
|
35079
35346
|
style: {
|
|
35080
35347
|
flex: 'none',
|
|
@@ -35082,7 +35349,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35082
35349
|
}
|
|
35083
35350
|
}, config.rightText) || null);
|
|
35084
35351
|
};
|
|
35085
|
-
_this.renderActionList = function (itemDetail, parentDetail, handleRuleTypeData, sRuleActionData, classDataIndex, disabled, boxStyle) {
|
|
35352
|
+
_this.renderActionList = function (itemDetail, parentDetail, handleRuleTypeData, sRuleActionData, classDataIndex, disabled, boxStyle, actionDisabled) {
|
|
35086
35353
|
var showValue = function showValue(code, type, functionItem, configItem) {
|
|
35087
35354
|
var functionIndex = handleRuleTypeData.findIndex(function (m) {
|
|
35088
35355
|
return m.code === functionItem.code;
|
|
@@ -35117,7 +35384,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35117
35384
|
return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
35118
35385
|
className: 'rule_action_item'
|
|
35119
35386
|
}, ((_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);
|
|
35387
|
+
return _this.renderFormCompItem(s, showValue, handleEdit, i, boxStyle, disabled, actionDisabled);
|
|
35121
35388
|
}) || /*#__PURE__*/React$1.createElement("div", {
|
|
35122
35389
|
style: boxStyle,
|
|
35123
35390
|
key: i.functionName
|
|
@@ -35130,7 +35397,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35130
35397
|
color: 'gray',
|
|
35131
35398
|
marginLeft: '15px',
|
|
35132
35399
|
marginTop: '15px',
|
|
35133
|
-
display: disabled ? 'none' : 'inline-block'
|
|
35400
|
+
display: disabled || actionDisabled ? 'none' : 'inline-block'
|
|
35134
35401
|
}
|
|
35135
35402
|
})));
|
|
35136
35403
|
})))) : /*#__PURE__*/React$1.createElement(React$1.Fragment, null));
|
|
@@ -35138,7 +35405,16 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35138
35405
|
_this.renderRuleTypeItem = function (itemDetail, parentDetail, floorIndex, classDataIndex, ruleTypeData, ruleReturnConfig, isRuleInstance) {
|
|
35139
35406
|
var _itemDetail$response$2, _itemDetail$response$3, _itemDetail$response$4;
|
|
35140
35407
|
var modalParams = _this.state.modalParams;
|
|
35141
|
-
var
|
|
35408
|
+
var _this$props4 = _this.props,
|
|
35409
|
+
disabled = _this$props4.disabled,
|
|
35410
|
+
_this$props4$actionDi = _this$props4.actionDisabled,
|
|
35411
|
+
actionDisabled = _this$props4$actionDi === void 0 ? false : _this$props4$actionDi,
|
|
35412
|
+
_this$props4$returnDi = _this$props4.returnDisabled,
|
|
35413
|
+
returnDisabled = _this$props4$returnDi === void 0 ? false : _this$props4$returnDi,
|
|
35414
|
+
_this$props4$noAction = _this$props4.noActionValue,
|
|
35415
|
+
noActionValue = _this$props4$noAction === void 0 ? false : _this$props4$noAction,
|
|
35416
|
+
_this$props4$noReturn = _this$props4.noReturnValue,
|
|
35417
|
+
noReturnValue = _this$props4$noReturn === void 0 ? false : _this$props4$noReturn;
|
|
35142
35418
|
var isHaveRuleTypeData = ruleTypeData === null || ruleTypeData === void 0 ? void 0 : ruleTypeData.length;
|
|
35143
35419
|
var isHaveRuleReturnConfig = ruleReturnConfig === null || ruleReturnConfig === void 0 ? void 0 : ruleReturnConfig.length;
|
|
35144
35420
|
var handleRuleTypeData = isHaveRuleTypeData ? ruleTypeData.sort(function (a, b) {
|
|
@@ -35184,8 +35460,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35184
35460
|
display: 'flex',
|
|
35185
35461
|
marginBottom: 10
|
|
35186
35462
|
}
|
|
35187
|
-
}, /*#__PURE__*/React$1.createElement(Button, {
|
|
35188
|
-
disabled: disabled,
|
|
35463
|
+
}, !noActionValue ? /*#__PURE__*/React$1.createElement(Button, {
|
|
35464
|
+
disabled: disabled || actionDisabled,
|
|
35189
35465
|
type: "link",
|
|
35190
35466
|
style: displayNoneActionStyle,
|
|
35191
35467
|
onClick: function onClick() {
|
|
@@ -35202,8 +35478,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35202
35478
|
message$1.warn('未配置执行动作');
|
|
35203
35479
|
}
|
|
35204
35480
|
}
|
|
35205
|
-
}, "\u65B0\u589E\u52A8\u4F5C"), /*#__PURE__*/React$1.createElement(Button, {
|
|
35206
|
-
disabled: disabled,
|
|
35481
|
+
}, "\u65B0\u589E\u52A8\u4F5C") : /*#__PURE__*/React$1.createElement(React$1.Fragment, null), !noReturnValue ? /*#__PURE__*/React$1.createElement(Button, {
|
|
35482
|
+
disabled: disabled || returnDisabled,
|
|
35207
35483
|
type: "link",
|
|
35208
35484
|
style: displayNoneReturnValueStyle,
|
|
35209
35485
|
onClick: function onClick() {
|
|
@@ -35220,15 +35496,16 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35220
35496
|
message$1.warn('未配置返回');
|
|
35221
35497
|
}
|
|
35222
35498
|
}
|
|
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);
|
|
35499
|
+
}, "\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
35500
|
};
|
|
35225
35501
|
//添加同一层级条件
|
|
35226
35502
|
_this.addPeerRule = function (itemDetail) {
|
|
35227
35503
|
var ruleClassData = _this.state.ruleClassData;
|
|
35228
|
-
var _this$
|
|
35229
|
-
callBack = _this$
|
|
35230
|
-
disabled = _this$
|
|
35231
|
-
|
|
35504
|
+
var _this$props5 = _this.props,
|
|
35505
|
+
callBack = _this$props5.callBack,
|
|
35506
|
+
disabled = _this$props5.disabled,
|
|
35507
|
+
leftRuleDisabled = _this$props5.leftRuleDisabled;
|
|
35508
|
+
if (disabled || leftRuleDisabled) return;
|
|
35232
35509
|
itemDetail.subExpression.push({
|
|
35233
35510
|
// "expressionType": "relation",
|
|
35234
35511
|
operationType: 'relation',
|
|
@@ -35275,9 +35552,9 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35275
35552
|
};
|
|
35276
35553
|
_this.handleDeleteRule = function (itemDetail, parentDetail, classDataIndex) {
|
|
35277
35554
|
var ruleClassData = _this.state.ruleClassData;
|
|
35278
|
-
var _this$
|
|
35279
|
-
callBack = _this$
|
|
35280
|
-
metaObjectCode = _this$
|
|
35555
|
+
var _this$props6 = _this.props,
|
|
35556
|
+
callBack = _this$props6.callBack,
|
|
35557
|
+
metaObjectCode = _this$props6.metaObjectCode;
|
|
35281
35558
|
if (parentDetail.ruleName) {
|
|
35282
35559
|
//删除根规则层级最后一条时整个规则项删除
|
|
35283
35560
|
ruleClassData.splice(classDataIndex, 1);
|
|
@@ -35395,10 +35672,10 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35395
35672
|
return _createClass(RuleObjectComponent, [{
|
|
35396
35673
|
key: "componentDidMount",
|
|
35397
35674
|
value: function componentDidMount(props) {
|
|
35398
|
-
var _this$
|
|
35399
|
-
ruleClassData = _this$
|
|
35400
|
-
operationList = _this$
|
|
35401
|
-
regularDataList = _this$
|
|
35675
|
+
var _this$props7 = this.props,
|
|
35676
|
+
ruleClassData = _this$props7.ruleClassData,
|
|
35677
|
+
operationList = _this$props7.operationList,
|
|
35678
|
+
regularDataList = _this$props7.regularDataList;
|
|
35402
35679
|
this.setRegularData(regularDataList);
|
|
35403
35680
|
this.setState({
|
|
35404
35681
|
ruleClassData: ruleClassData,
|
|
@@ -35430,11 +35707,14 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35430
35707
|
key: "render",
|
|
35431
35708
|
value: function render() {
|
|
35432
35709
|
var _this2 = this;
|
|
35433
|
-
var _this$
|
|
35434
|
-
onlyOneRule = _this$
|
|
35435
|
-
callBack = _this$
|
|
35436
|
-
disabled = _this$
|
|
35437
|
-
|
|
35710
|
+
var _this$props8 = this.props,
|
|
35711
|
+
onlyOneRule = _this$props8.onlyOneRule,
|
|
35712
|
+
callBack = _this$props8.callBack,
|
|
35713
|
+
disabled = _this$props8.disabled,
|
|
35714
|
+
leftRuleDisabled = _this$props8.leftRuleDisabled,
|
|
35715
|
+
returnDisabled = _this$props8.returnDisabled,
|
|
35716
|
+
actionDisabled = _this$props8.actionDisabled,
|
|
35717
|
+
headerButtonComponentFun = _this$props8.headerButtonComponentFun;
|
|
35438
35718
|
var _this$state5 = this.state,
|
|
35439
35719
|
ruleClassData = _this$state5.ruleClassData,
|
|
35440
35720
|
modalParams = _this$state5.modalParams;
|
|
@@ -35448,7 +35728,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35448
35728
|
},
|
|
35449
35729
|
className: 'base_rule_line_title'
|
|
35450
35730
|
}, /*#__PURE__*/React$1.createElement(Button, {
|
|
35451
|
-
disabled: disabled,
|
|
35731
|
+
disabled: disabled || leftRuleDisabled,
|
|
35452
35732
|
onClick: this.handleAddRule,
|
|
35453
35733
|
className: 'base_rule_btn_style',
|
|
35454
35734
|
type: "link"
|
|
@@ -35647,13 +35927,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
35647
35927
|
var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
|
|
35648
35928
|
// 处理对象-设置了必填-规则实例保存时数据必填校验
|
|
35649
35929
|
if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
|
|
35650
|
-
var list =
|
|
35930
|
+
var list = coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
|
|
35651
35931
|
var requiredList = list.filter(function (c) {
|
|
35652
35932
|
return c.required == 1;
|
|
35653
35933
|
}) || []; // 获取对象属性为true的集合
|
|
35654
35934
|
(requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
|
|
35655
35935
|
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) ?
|
|
35936
|
+
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
35937
|
(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
35938
|
if (requiredList.some(function (r) {
|
|
35659
35939
|
return r.id === e.elementId;
|
|
@@ -36481,4 +36761,4 @@ var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
36481
36761
|
})));
|
|
36482
36762
|
});
|
|
36483
36763
|
|
|
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,
|
|
36764
|
+
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 };
|