@bit-sun/business-component 2.3.0 → 2.3.2

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.
Files changed (201) hide show
  1. package/.editorconfig +16 -16
  2. package/.fatherrc.ts +5 -5
  3. package/.gitlab-ci.yml +179 -179
  4. package/.prettierignore +7 -7
  5. package/.prettierrc +11 -11
  6. package/.umirc.ts +74 -74
  7. package/README.md +27 -27
  8. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
  9. package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
  10. package/dist/components/Business/SearchSelect/index.d.ts +1 -1
  11. package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
  12. package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
  13. package/dist/index.esm.js +1212 -906
  14. package/dist/index.js +1218 -912
  15. package/dist/utils/utils.d.ts +1 -1
  16. package/docs/index.md +21 -21
  17. package/lib/assets/drag.svg +17 -17
  18. package/lib/assets/exportFail.svg +37 -37
  19. package/lib/assets/exportProcessing.svg +28 -28
  20. package/lib/assets/exportSuccess.svg +34 -34
  21. package/lib/assets/label_icon_bottom.svg +25 -25
  22. package/lib/assets/upExport.svg +22 -22
  23. package/package.json +78 -78
  24. package/src/assets/32.svg +27 -27
  25. package/src/assets/addIcon.svg +17 -17
  26. package/src/assets/allfunc.svg +27 -27
  27. package/src/assets/arrowRight.svg +24 -24
  28. package/src/assets/btn-delete.svg +29 -29
  29. package/src/assets/btn-edit.svg +19 -19
  30. package/src/assets/btn-more.svg +17 -17
  31. package/src/assets/btn-submit.svg +19 -19
  32. package/src/assets/caidan.svg +11 -11
  33. package/src/assets/close.svg +26 -26
  34. package/src/assets/drag.svg +17 -17
  35. package/src/assets/exportFail.svg +37 -37
  36. package/src/assets/exportProcessing.svg +28 -28
  37. package/src/assets/exportSuccess.svg +34 -34
  38. package/src/assets/fixed-left-active.svg +11 -11
  39. package/src/assets/fixed-left.svg +15 -15
  40. package/src/assets/fixed-right-active.svg +11 -11
  41. package/src/assets/fixed-right.svg +15 -15
  42. package/src/assets/guanbi.svg +15 -15
  43. package/src/assets/icon-quanping.svg +15 -15
  44. package/src/assets/icon-shezhi.svg +17 -17
  45. package/src/assets/label_icon_bottom.svg +25 -25
  46. package/src/assets/list-no-img.svg +21 -21
  47. package/src/assets/morentouxiang-32.svg +23 -23
  48. package/src/assets/scanning.svg +24 -24
  49. package/src/assets/upExport.svg +22 -22
  50. package/src/common/ENUM.ts +41 -41
  51. package/src/components/Business/AddSelectBusiness/index.md +161 -161
  52. package/src/components/Business/AddSelectBusiness/index.tsx +861 -861
  53. package/src/components/Business/BsLayouts/Components/AllFunc/drawContent.tsx +111 -111
  54. package/src/components/Business/BsLayouts/Components/AllFunc/index.less +153 -153
  55. package/src/components/Business/BsLayouts/Components/AllFunc/index.tsx +70 -70
  56. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.less +90 -90
  57. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.tsx +37 -37
  58. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.tsx +242 -242
  59. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.tsx +384 -384
  60. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.tsx +285 -285
  61. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.tsx +74 -74
  62. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/drawContent.less +170 -170
  63. package/src/components/Business/BsLayouts/Components/CustomerMenu/index.less +64 -64
  64. package/src/components/Business/BsLayouts/Components/CustomerMenu/index.tsx +153 -153
  65. package/src/components/Business/BsLayouts/Components/GlobalHeader/index.less +72 -72
  66. package/src/components/Business/BsLayouts/Components/GlobalHeader/index.tsx +157 -157
  67. package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +85 -85
  68. package/src/components/Business/BsLayouts/Components/RightContent/home.less +218 -218
  69. package/src/components/Business/BsLayouts/Components/RightContent/index.tsx +155 -155
  70. package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +160 -160
  71. package/src/components/Business/BsLayouts/Components/SearchFunc/index.tsx +75 -75
  72. package/src/components/Business/BsLayouts/index.less +79 -79
  73. package/src/components/Business/BsLayouts/index.tsx +1484 -1484
  74. package/src/components/Business/BsLayouts/service.ts +10 -10
  75. package/src/components/Business/BsLayouts/utils.tsx +203 -203
  76. package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +564 -564
  77. package/src/components/Business/BsSulaQueryTable/index.less +221 -221
  78. package/src/components/Business/BsSulaQueryTable/index.tsx +527 -527
  79. package/src/components/Business/BsSulaQueryTable/setting.tsx +832 -832
  80. package/src/components/Business/BsSulaQueryTable/utils.less +65 -65
  81. package/src/components/Business/BsSulaQueryTable/utils.tsx +688 -688
  82. package/src/components/Business/CommodityEntry/index.md +70 -70
  83. package/src/components/Business/CommodityEntry/index.tsx +80 -80
  84. package/src/components/Business/CommonAlert/index.tsx +23 -23
  85. package/src/components/Business/CommonGuideWrapper/index.less +111 -111
  86. package/src/components/Business/CommonGuideWrapper/index.md +39 -39
  87. package/src/components/Business/CommonGuideWrapper/index.tsx +83 -83
  88. package/src/components/Business/DetailPageWrapper/index.less +79 -79
  89. package/src/components/Business/DetailPageWrapper/index.tsx +313 -313
  90. package/src/components/Business/DetailPageWrapper/utils.tsx +100 -100
  91. package/src/components/Business/HomePageWrapper/index.less +33 -33
  92. package/src/components/Business/HomePageWrapper/index.md +45 -45
  93. package/src/components/Business/HomePageWrapper/index.tsx +162 -162
  94. package/src/components/Business/JsonQueryTable/components/FieldsModifyModal.tsx +824 -824
  95. package/src/components/Business/JsonQueryTable/components/FieldsSettingsTable.tsx +205 -201
  96. package/src/components/Business/JsonQueryTable/components/Formula.tsx +205 -205
  97. package/src/components/Business/JsonQueryTable/components/MaintainOptions.tsx +127 -127
  98. package/src/components/Business/JsonQueryTable/configButton/index.js +20 -20
  99. package/src/components/Business/JsonQueryTable/configTree/component/compactArrayView.js +25 -25
  100. package/src/components/Business/JsonQueryTable/configTree/component/compactObjectView.js +30 -30
  101. package/src/components/Business/JsonQueryTable/configTree/index.js +82 -82
  102. package/src/components/Business/JsonQueryTable/configTree/index.less +44 -44
  103. package/src/components/Business/JsonQueryTable/configTree/parser/highlight.js +57 -57
  104. package/src/components/Business/JsonQueryTable/configTree/parser/index.js +124 -124
  105. package/src/components/Business/JsonQueryTable/configTree/render/iconRender.js +29 -29
  106. package/src/components/Business/JsonQueryTable/configTree/render/nameRender.js +22 -22
  107. package/src/components/Business/JsonQueryTable/configTree/treeNode.js +116 -116
  108. package/src/components/Business/JsonQueryTable/drawer/index.tsx +12 -12
  109. package/src/components/Business/JsonQueryTable/function.ts +62 -62
  110. package/src/components/Business/JsonQueryTable/index.less +16 -16
  111. package/src/components/Business/JsonQueryTable/index.md +328 -328
  112. package/src/components/Business/JsonQueryTable/index.tsx +535 -320
  113. package/src/components/Business/JsonQueryTable/jsonEditor/index.js +346 -346
  114. package/src/components/Business/JsonQueryTable/jsonEditor/index.less +22 -22
  115. package/src/components/Business/JsonQueryTable/jsonEditor/lint/basicType.js +147 -147
  116. package/src/components/Business/JsonQueryTable/jsonEditor/lint/index.js +389 -389
  117. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/actions.js +118 -118
  118. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/dependency.js +22 -22
  119. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/index.js +21 -21
  120. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/request.js +65 -65
  121. package/src/components/Business/JsonQueryTable/static.ts +390 -390
  122. package/src/components/Business/SearchSelect/BusinessUtils.ts +1732 -1732
  123. package/src/components/Business/SearchSelect/common.ts +53 -53
  124. package/src/components/Business/SearchSelect/index.md +1319 -1319
  125. package/src/components/Business/SearchSelect/index.tsx +51 -51
  126. package/src/components/Business/SearchSelect/utils.ts +100 -100
  127. package/src/components/Business/StateFlow/index.less +130 -130
  128. package/src/components/Business/StateFlow/index.md +60 -60
  129. package/src/components/Business/StateFlow/index.tsx +29 -29
  130. package/src/components/Business/TreeSearchSelect/index.md +154 -154
  131. package/src/components/Business/TreeSearchSelect/index.tsx +34 -34
  132. package/src/components/Business/TreeSearchSelect/utils.ts +69 -69
  133. package/src/components/Business/columnSettingTable/columnSetting.tsx +764 -764
  134. package/src/components/Business/columnSettingTable/index.less +247 -247
  135. package/src/components/Business/columnSettingTable/index.md +357 -357
  136. package/src/components/Business/columnSettingTable/index.tsx +232 -232
  137. package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +240 -240
  138. package/src/components/Business/columnSettingTable/utils.tsx +68 -68
  139. package/src/components/Business/moreTreeTable/FixedScrollBar.tsx +86 -86
  140. package/src/components/Business/moreTreeTable/hooks/useSticky.ts +21 -21
  141. package/src/components/Business/moreTreeTable/index.less +99 -99
  142. package/src/components/Business/moreTreeTable/index.md +448 -448
  143. package/src/components/Business/moreTreeTable/index.tsx +380 -380
  144. package/src/components/Business/moreTreeTable/utils.ts +126 -126
  145. package/src/components/Functional/AddSelect/helps.ts +14 -14
  146. package/src/components/Functional/AddSelect/index.less +367 -367
  147. package/src/components/Functional/AddSelect/index.md +155 -155
  148. package/src/components/Functional/AddSelect/index.tsx +1279 -1279
  149. package/src/components/Functional/BillEntry/index.less +371 -371
  150. package/src/components/Functional/BillEntry/index.md +39 -39
  151. package/src/components/Functional/BillEntry/index.tsx +772 -772
  152. package/src/components/Functional/BsAntdSula/BsCascader/index.md +62 -62
  153. package/src/components/Functional/BsAntdSula/BsCascader/index.tsx +178 -178
  154. package/src/components/Functional/BsAntdSula/index.ts +2 -2
  155. package/src/components/Functional/DataImport/index.less +63 -63
  156. package/src/components/Functional/DataImport/index.md +44 -44
  157. package/src/components/Functional/DataImport/index.tsx +695 -695
  158. package/src/components/Functional/DataValidation/index.less +63 -63
  159. package/src/components/Functional/DataValidation/index.md +39 -39
  160. package/src/components/Functional/DataValidation/index.tsx +687 -687
  161. package/src/components/Functional/EllipsisTooltip/index.d.ts +5 -5
  162. package/src/components/Functional/EllipsisTooltip/index.js +36 -36
  163. package/src/components/Functional/EllipsisTooltip/index.md +30 -30
  164. package/src/components/Functional/ExportFunctions/ExportIcon/index.md +37 -37
  165. package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +59 -59
  166. package/src/components/Functional/QueryMutipleInput/index.less +37 -37
  167. package/src/components/Functional/QueryMutipleInput/index.md +33 -33
  168. package/src/components/Functional/QueryMutipleInput/index.tsx +128 -128
  169. package/src/components/Functional/SearchSelect/index.less +115 -115
  170. package/src/components/Functional/SearchSelect/index.md +141 -141
  171. package/src/components/Functional/SearchSelect/index.tsx +859 -849
  172. package/src/components/Functional/SearchSelect/utils.ts +3 -3
  173. package/src/components/Functional/TreeSearchSelect/index.md +47 -47
  174. package/src/components/Functional/TreeSearchSelect/index.tsx +162 -162
  175. package/src/components/Solution/RuleComponent/Formula.tsx +335 -335
  176. package/src/components/Solution/RuleComponent/index.d.ts +29 -29
  177. package/src/components/Solution/RuleComponent/index.js +2028 -2028
  178. package/src/components/Solution/RuleComponent/index.less +230 -230
  179. package/src/components/Solution/RuleComponent/renderSpecificAction.js +99 -99
  180. package/src/components/Solution/RuleComponent/ruleFiled.js +2074 -2074
  181. package/src/components/Solution/RuleComponent/services.ts +13 -13
  182. package/src/components/Solution/RuleComponent/util.js +139 -139
  183. package/src/index.ts +38 -38
  184. package/src/plugin/TableColumnSetting/index.less +247 -247
  185. package/src/plugin/TableColumnSetting/index.md +50 -50
  186. package/src/plugin/TableColumnSetting/index.tsx +724 -724
  187. package/src/plugin/TableColumnSetting/utils.ts +19 -19
  188. package/src/styles/bsDefault.less +1912 -1912
  189. package/src/utils/CheckOneUser/index.md +39 -39
  190. package/src/utils/CheckOneUser/index.ts +51 -51
  191. package/src/utils/LocalstorageUtils.ts +90 -90
  192. package/src/utils/TableUtils.tsx +18 -18
  193. package/src/utils/checkUtils.ts +39 -39
  194. package/src/utils/enumConfig.ts +11 -11
  195. package/src/utils/getFormMode.js +12 -12
  196. package/src/utils/index.ts +4 -4
  197. package/src/utils/requestUtils.ts +34 -34
  198. package/src/utils/serialize.js +7 -7
  199. package/src/utils/utils.ts +212 -212
  200. package/tsconfig.json +29 -29
  201. package/typings.d.ts +4 -4
package/dist/index.esm.js CHANGED
@@ -2,7 +2,7 @@ import axios from 'axios';
2
2
  import { message as message$1, Popover, Card, Avatar, Tooltip, Image, Menu, Space, Dropdown, Button, Checkbox, Input, Modal, Select, Form, Divider, Spin, Table, TreeSelect, Tag, InputNumber, Typography, Alert, Anchor, Breadcrumb, Drawer as Drawer$1, List, Tree, Row, Col, Tabs, Affix, Cascader, DatePicker, TimePicker, Switch } from 'antd';
3
3
  import _, { omit, debounce, cloneDeep as cloneDeep$1, throttle, isEmpty } from 'lodash';
4
4
  import { history, formatMessage, useLocation, Link, useModel, useIntl } from 'umi';
5
- import isEqual from 'lodash/isEqual';
5
+ import isEqual$1 from 'lodash/isEqual';
6
6
  import React, { useState, useEffect, forwardRef, useImperativeHandle, useRef, useMemo, Component, useLayoutEffect, createRef } from 'react';
7
7
  import moment$1 from 'moment';
8
8
  import { UnorderedListOutlined, ProfileTwoTone, ExclamationCircleOutlined, DownOutlined, CopyOutlined, SearchOutlined, CaretLeftOutlined, CloseCircleOutlined, ArrowLeftOutlined, FolderOutlined, EllipsisOutlined, CaretDownOutlined, HomeOutlined, DoubleLeftOutlined, DoubleRightOutlined, MenuUnfoldOutlined, DashOutlined, SettingOutlined, BulbOutlined, PlayCircleOutlined, SaveOutlined, FullscreenExitOutlined, EditOutlined, MinusCircleOutlined, PlusCircleOutlined } from '@ant-design/icons';
@@ -762,41 +762,52 @@ var precisionQuantity = function precisionQuantity(num, accuracy) {
762
762
  return '';
763
763
  };
764
764
 
765
- var simpleIsEqual = function simpleIsEqual(a, b) {
766
- return a === b;
767
- };
768
-
769
- function index$1 (resultFn, isEqual) {
770
- if (isEqual === void 0) {
771
- isEqual = simpleIsEqual;
772
- }
773
-
774
- var lastThis;
775
- var lastArgs = [];
776
- var lastResult;
777
- var calledOnce = false;
778
-
779
- var isNewArgEqualToLast = function isNewArgEqualToLast(newArg, index) {
780
- return isEqual(newArg, lastArgs[index], index);
781
- };
782
-
783
- var result = function result() {
784
- for (var _len = arguments.length, newArgs = new Array(_len), _key = 0; _key < _len; _key++) {
785
- newArgs[_key] = arguments[_key];
765
+ var safeIsNaN = Number.isNaN ||
766
+ function ponyfill(value) {
767
+ return typeof value === 'number' && value !== value;
768
+ };
769
+ function isEqual(first, second) {
770
+ if (first === second) {
771
+ return true;
786
772
  }
787
-
788
- if (calledOnce && lastThis === this && newArgs.length === lastArgs.length && newArgs.every(isNewArgEqualToLast)) {
789
- return lastResult;
773
+ if (safeIsNaN(first) && safeIsNaN(second)) {
774
+ return true;
790
775
  }
776
+ return false;
777
+ }
778
+ function areInputsEqual(newInputs, lastInputs) {
779
+ if (newInputs.length !== lastInputs.length) {
780
+ return false;
781
+ }
782
+ for (var i = 0; i < newInputs.length; i++) {
783
+ if (!isEqual(newInputs[i], lastInputs[i])) {
784
+ return false;
785
+ }
786
+ }
787
+ return true;
788
+ }
791
789
 
792
- lastResult = resultFn.apply(this, newArgs);
793
- calledOnce = true;
794
- lastThis = this;
795
- lastArgs = newArgs;
796
- return lastResult;
797
- };
798
-
799
- return result;
790
+ function memoizeOne(resultFn, isEqual) {
791
+ if (isEqual === void 0) { isEqual = areInputsEqual; }
792
+ var lastThis;
793
+ var lastArgs = [];
794
+ var lastResult;
795
+ var calledOnce = false;
796
+ function memoized() {
797
+ var newArgs = [];
798
+ for (var _i = 0; _i < arguments.length; _i++) {
799
+ newArgs[_i] = arguments[_i];
800
+ }
801
+ if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {
802
+ return lastResult;
803
+ }
804
+ lastResult = resultFn.apply(this, newArgs);
805
+ calledOnce = true;
806
+ lastThis = this;
807
+ lastArgs = newArgs;
808
+ return lastResult;
809
+ }
810
+ return memoized;
800
811
  }
801
812
 
802
813
  function styleInject(css, ref) {
@@ -1010,59 +1021,58 @@ var getItemDefaultWidth = function getItemDefaultWidth(item) {
1010
1021
  * @returns 返回处理后的查询参数
1011
1022
  */
1012
1023
  function queryParams(params, flag) {
1013
- var _loop = function _loop() {
1024
+ for (var key in params) {
1014
1025
  if (Object.prototype.hasOwnProperty.call(params, key)) {
1015
- var element = params[key];
1016
- if (element && key.indexOf('*number*') >= 0) {
1017
- var dataParams = key.split('*number*');
1018
- dataParams.forEach(function (value, index) {
1019
- params[value] = element[index];
1020
- });
1021
- delete params[key];
1022
- } else if (element && key.indexOf('*address*') >= 0) {
1023
- var _dataParams = key.split('*address*');
1024
- _dataParams.forEach(function (value, index) {
1025
- params[value] = element.PCDCode[index];
1026
- });
1027
- delete params[key];
1028
- } else if (element && key.indexOf('*costType*') >= 0) {
1029
- var _dataParams2 = key.split('*costType*');
1030
- // eslint-disable-next-line prefer-destructuring
1031
- params[_dataParams2[0]] = element[1];
1032
- delete params[key];
1033
- } else if (element && key.indexOf('*fullDate*') >= 0) {
1034
- var _dataParams3 = key.split('*fullDate*');
1035
- _dataParams3.forEach(function (value, index) {
1036
- if (index === 0) {
1037
- params[value] = moment$1(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
1026
+ (function () {
1027
+ var element = params[key];
1028
+ if (element && key.indexOf('*number*') >= 0) {
1029
+ var dataParams = key.split('*number*');
1030
+ dataParams.forEach(function (value, index) {
1031
+ params[value] = element[index];
1032
+ });
1033
+ delete params[key];
1034
+ } else if (element && key.indexOf('*address*') >= 0) {
1035
+ var _dataParams = key.split('*address*');
1036
+ _dataParams.forEach(function (value, index) {
1037
+ params[value] = element.PCDCode[index];
1038
+ });
1039
+ delete params[key];
1040
+ } else if (element && key.indexOf('*costType*') >= 0) {
1041
+ var _dataParams2 = key.split('*costType*');
1042
+ // eslint-disable-next-line prefer-destructuring
1043
+ params[_dataParams2[0]] = element[1];
1044
+ delete params[key];
1045
+ } else if (element && key.indexOf('*fullDate*') >= 0) {
1046
+ var _dataParams3 = key.split('*fullDate*');
1047
+ _dataParams3.forEach(function (value, index) {
1048
+ if (index === 0) {
1049
+ params[value] = moment$1(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
1050
+ } else {
1051
+ params[value] = moment$1(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
1052
+ }
1053
+ });
1054
+ delete params[key];
1055
+ } else if (element && key.indexOf('*') >= 0) {
1056
+ var _dataParams4 = key.split('*');
1057
+ _dataParams4.forEach(function (value, index) {
1058
+ params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
1059
+ });
1060
+ delete params[key];
1061
+ } else if (element && key.indexOf('_likeIn_') >= 0) {
1062
+ var _dataParams5 = key.split('_likeIn_');
1063
+ if (element.indexOf(',') >= 0) {
1064
+ params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
1065
+ params["qp-".concat(_dataParams5[0], "-like")] = null;
1038
1066
  } else {
1039
- params[value] = moment$1(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
1067
+ params["qp-".concat(_dataParams5[0], "-like")] = element;
1068
+ params["qp-".concat(_dataParams5[0], "-in")] = null;
1040
1069
  }
1041
- });
1042
- delete params[key];
1043
- } else if (element && key.indexOf('*') >= 0) {
1044
- var _dataParams4 = key.split('*');
1045
- _dataParams4.forEach(function (value, index) {
1046
- params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
1047
- });
1048
- delete params[key];
1049
- } else if (element && key.indexOf('_likeIn_') >= 0) {
1050
- var _dataParams5 = key.split('_likeIn_');
1051
- if (element.indexOf(',') >= 0) {
1052
- params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
1053
- params["qp-".concat(_dataParams5[0], "-like")] = null;
1054
- } else {
1055
- params["qp-".concat(_dataParams5[0], "-like")] = element;
1056
- params["qp-".concat(_dataParams5[0], "-in")] = null;
1070
+ delete params[key];
1071
+ } else if (Array.isArray(element)) {
1072
+ params[key] = element.join(',');
1057
1073
  }
1058
- delete params[key];
1059
- } else if (Array.isArray(element)) {
1060
- params[key] = element.join(',');
1061
- }
1074
+ })();
1062
1075
  }
1063
- };
1064
- for (var key in params) {
1065
- _loop();
1066
1076
  }
1067
1077
  return flag ? params : qs.stringify(params);
1068
1078
  }
@@ -1108,7 +1118,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
1108
1118
  return item;
1109
1119
  });
1110
1120
  };
1111
- var memoizeOneFormatter = index$1(formatter, isEqual);
1121
+ var memoizeOneFormatter = memoizeOne(formatter, isEqual$1);
1112
1122
  var go2BackAndClose = function go2BackAndClose() {
1113
1123
  localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
1114
1124
  history.goBack();
@@ -2783,85 +2793,84 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
2783
2793
  });
2784
2794
  }
2785
2795
  // 数组对象处理,对带有特殊标记的name进行处理
2786
- var _loop = function _loop() {
2796
+ for (var key in params) {
2787
2797
  if (Object.prototype.hasOwnProperty.call(params, key)) {
2788
- var element = params[key];
2789
- if (element && key.indexOf('*number*') >= 0) {
2790
- var dataParams = key.split('*number*');
2791
- dataParams.forEach(function (value, index) {
2792
- params[value] = element[index];
2793
- });
2794
- delete params[key];
2795
- } else if (element && key.indexOf('*address*') >= 0) {
2796
- var _dataParams = key.split('*address*');
2797
- _dataParams.forEach(function (value, index) {
2798
- params[value] = element.PCDCode[index];
2799
- });
2800
- delete params[key];
2801
- } else if (element && key.indexOf('*costType*') >= 0) {
2802
- var _dataParams2 = key.split('*costType*');
2803
- // eslint-disable-next-line prefer-destructuring
2804
- params[_dataParams2[0]] = element[1];
2805
- delete params[key];
2806
- } else if (element && key.indexOf('*fullDate*') >= 0) {
2807
- var _dataParams3 = key.split('*fullDate*');
2808
- _dataParams3.forEach(function (value, index) {
2809
- if (index === 0) {
2810
- params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
2811
- } else {
2812
- params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
2798
+ (function () {
2799
+ var element = params[key];
2800
+ if (element && key.indexOf('*number*') >= 0) {
2801
+ var dataParams = key.split('*number*');
2802
+ dataParams.forEach(function (value, index) {
2803
+ params[value] = element[index];
2804
+ });
2805
+ delete params[key];
2806
+ } else if (element && key.indexOf('*address*') >= 0) {
2807
+ var _dataParams = key.split('*address*');
2808
+ _dataParams.forEach(function (value, index) {
2809
+ params[value] = element.PCDCode[index];
2810
+ });
2811
+ delete params[key];
2812
+ } else if (element && key.indexOf('*costType*') >= 0) {
2813
+ var _dataParams2 = key.split('*costType*');
2814
+ // eslint-disable-next-line prefer-destructuring
2815
+ params[_dataParams2[0]] = element[1];
2816
+ delete params[key];
2817
+ } else if (element && key.indexOf('*fullDate*') >= 0) {
2818
+ var _dataParams3 = key.split('*fullDate*');
2819
+ _dataParams3.forEach(function (value, index) {
2820
+ if (index === 0) {
2821
+ params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
2822
+ } else {
2823
+ params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
2824
+ }
2825
+ });
2826
+ delete params[key];
2827
+ } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
2828
+ var _dataParams4 = key.split('*checkBox*');
2829
+ if (element) {
2830
+ params[_dataParams4[0]] = 0;
2813
2831
  }
2814
- });
2815
- delete params[key];
2816
- } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
2817
- var _dataParams4 = key.split('*checkBox*');
2818
- if (element) {
2819
- params[_dataParams4[0]] = 0;
2820
- }
2821
- delete params[key];
2822
- } else if (element && key.indexOf('*cascader*') >= 0) {
2823
- var _dataParams5 = key.split('*cascader*');
2824
- params[_dataParams5[0]] = element[element.length - 1];
2825
- delete params[key];
2826
- } else if (element && key.indexOf('*date*') >= 0) {
2827
- var _dataParams6 = key.split('*date*');
2828
- _dataParams6.forEach(function (value, index) {
2829
- if (index === 0) {
2830
- params[value] = moment(element[index]).format('YYYY-MM-DD');
2832
+ delete params[key];
2833
+ } else if (element && key.indexOf('*cascader*') >= 0) {
2834
+ var _dataParams5 = key.split('*cascader*');
2835
+ params[_dataParams5[0]] = element[element.length - 1];
2836
+ delete params[key];
2837
+ } else if (element && key.indexOf('*date*') >= 0) {
2838
+ var _dataParams6 = key.split('*date*');
2839
+ _dataParams6.forEach(function (value, index) {
2840
+ if (index === 0) {
2841
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
2842
+ } else {
2843
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
2844
+ }
2845
+ });
2846
+ delete params[key];
2847
+ } else if (element && key.indexOf('*') >= 0) {
2848
+ var _dataParams7 = key.split('*');
2849
+ _dataParams7.forEach(function (value, index) {
2850
+ params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
2851
+ });
2852
+ delete params[key];
2853
+ } else if (element && key.indexOf('_selectNumberRange') >= 0) {
2854
+ // key = xxxxx_selectNumberRange qp-xxxxx-gt
2855
+ var _dataParams8 = key.split('_selectNumberRange')[0];
2856
+ if (params[key][0] === 'range') {
2857
+ if (params[key][1][0]) {
2858
+ params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
2859
+ }
2860
+ if (params[key][1][1]) {
2861
+ params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
2862
+ }
2831
2863
  } else {
2832
- params[value] = moment(element[index]).format('YYYY-MM-DD');
2833
- }
2834
- });
2835
- delete params[key];
2836
- } else if (element && key.indexOf('*') >= 0) {
2837
- var _dataParams7 = key.split('*');
2838
- _dataParams7.forEach(function (value, index) {
2839
- params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
2840
- });
2841
- delete params[key];
2842
- } else if (element && key.indexOf('_selectNumberRange') >= 0) {
2843
- // key = xxxxx_selectNumberRange qp-xxxxx-gt
2844
- var _dataParams8 = key.split('_selectNumberRange')[0];
2845
- if (params[key][0] === 'range') {
2846
- if (params[key][1][0]) {
2847
- params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
2864
+ params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
2848
2865
  }
2849
- if (params[key][1][1]) {
2850
- params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
2851
- }
2852
- } else {
2853
- params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
2866
+ delete params[key];
2867
+ } else if (Array.isArray(element)) {
2868
+ params[key] = element.join(',');
2869
+ } else if (element == null || element === undefined || String(element).trim() === '') {
2870
+ delete params[key];
2854
2871
  }
2855
- delete params[key];
2856
- } else if (Array.isArray(element)) {
2857
- params[key] = element.join(',');
2858
- } else if (element == null || element === undefined || String(element).trim() === '') {
2859
- delete params[key];
2860
- }
2872
+ })();
2861
2873
  }
2862
- };
2863
- for (var key in params) {
2864
- _loop();
2865
2874
  }
2866
2875
  var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
2867
2876
  pageSize: pageSize,
@@ -3112,7 +3121,17 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
3112
3121
  };
3113
3122
  var onResetTable = function onResetTable() {
3114
3123
  form.resetFields();
3115
- setTableFormParams({});
3124
+ // 判断是否存在默认不可变的依赖值
3125
+ var fixedParam = {};
3126
+ if (fixedparamsDisabled) {
3127
+ if (fixedparameter && fieldValToParam && ctx) {
3128
+ fixedparameter.forEach(function (item, index) {
3129
+ fixedParam[item] = ctx.form.getFieldValue(fieldValToParam[index]);
3130
+ });
3131
+ }
3132
+ form.setFieldsValue(_objectSpread2({}, fixedParam));
3133
+ }
3134
+ setTableFormParams(_objectSpread2({}, fixedParam));
3116
3135
  getData({
3117
3136
  pageSize: tableInitPageSize,
3118
3137
  currentPage: 1
@@ -4517,74 +4536,76 @@ var AddSelect = function AddSelect(props) {
4517
4536
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
4518
4537
  var result;
4519
4538
  return _regeneratorRuntime().wrap(function _callee$(_context) {
4520
- while (1) switch (_context.prev = _context.next) {
4521
- case 0:
4522
- if (!(bType == 'skc' && tList.some(function (i) {
4523
- return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
4524
- }))) {
4525
- _context.next = 3;
4526
- break;
4527
- }
4528
- message$1.warning('相同skc配码不可设置相同哦');
4529
- return _context.abrupt("return", false);
4530
- case 3:
4531
- if (!(bType == 'spu')) {
4532
- _context.next = 26;
4533
- break;
4534
- }
4535
- if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
4536
- return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
4537
- }))) {
4538
- _context.next = 7;
4539
- break;
4540
- }
4541
- message$1.warning('相同商品相同配码颜色不可设置相同哦');
4542
- return _context.abrupt("return", false);
4543
- case 7:
4544
- if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
4545
- _context.next = 10;
4546
- break;
4547
- }
4548
- message$1.warning('请先选择颜色!');
4549
- return _context.abrupt("return", false);
4550
- case 10:
4551
- if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
4552
- return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
4553
- }))) {
4554
- _context.next = 13;
4555
- break;
4556
- }
4557
- message$1.warning('相同商品相同颜色配码不可设置相同哦');
4558
- return _context.abrupt("return", false);
4559
- case 13:
4560
- if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
4561
- _context.next = 26;
4539
+ while (1) {
4540
+ switch (_context.prev = _context.next) {
4541
+ case 0:
4542
+ if (!(bType == 'skc' && tList.some(function (i) {
4543
+ return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
4544
+ }))) {
4545
+ _context.next = 3;
4546
+ break;
4547
+ }
4548
+ message$1.warning('相同skc配码不可设置相同哦');
4549
+ return _context.abrupt("return", false);
4550
+ case 3:
4551
+ if (!(bType == 'spu')) {
4552
+ _context.next = 26;
4553
+ break;
4554
+ }
4555
+ if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
4556
+ return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
4557
+ }))) {
4558
+ _context.next = 7;
4559
+ break;
4560
+ }
4561
+ message$1.warning('相同商品相同配码颜色不可设置相同哦');
4562
+ return _context.abrupt("return", false);
4563
+ case 7:
4564
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
4565
+ _context.next = 10;
4566
+ break;
4567
+ }
4568
+ message$1.warning('请先选择颜色!');
4569
+ return _context.abrupt("return", false);
4570
+ case 10:
4571
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
4572
+ return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
4573
+ }))) {
4574
+ _context.next = 13;
4575
+ break;
4576
+ }
4577
+ message$1.warning('相同商品相同颜色配码不可设置相同哦');
4578
+ return _context.abrupt("return", false);
4579
+ case 13:
4580
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
4581
+ _context.next = 26;
4582
+ break;
4583
+ }
4584
+ result = true;
4585
+ _context.prev = 15;
4586
+ _context.next = 18;
4587
+ return checkSpuMatchCode({
4588
+ skcCode: recordItem[recordKey],
4589
+ matchingCode: changeValue,
4590
+ ext1: recordItem.colorName
4591
+ });
4592
+ case 18:
4593
+ result = _context.sent;
4594
+ result = true;
4595
+ _context.next = 25;
4562
4596
  break;
4563
- }
4564
- result = true;
4565
- _context.prev = 15;
4566
- _context.next = 18;
4567
- return checkSpuMatchCode({
4568
- skcCode: recordItem[recordKey],
4569
- matchingCode: changeValue,
4570
- ext1: recordItem.colorName
4571
- });
4572
- case 18:
4573
- result = _context.sent;
4574
- result = true;
4575
- _context.next = 25;
4576
- break;
4577
- case 22:
4578
- _context.prev = 22;
4579
- _context.t0 = _context["catch"](15);
4580
- result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
4581
- case 25:
4582
- return _context.abrupt("return", result);
4583
- case 26:
4584
- return _context.abrupt("return", true);
4585
- case 27:
4586
- case "end":
4587
- return _context.stop();
4597
+ case 22:
4598
+ _context.prev = 22;
4599
+ _context.t0 = _context["catch"](15);
4600
+ result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
4601
+ case 25:
4602
+ return _context.abrupt("return", result);
4603
+ case 26:
4604
+ return _context.abrupt("return", true);
4605
+ case 27:
4606
+ case "end":
4607
+ return _context.stop();
4608
+ }
4588
4609
  }
4589
4610
  }, _callee, null, [[15, 22]]);
4590
4611
  }));
@@ -4776,27 +4797,29 @@ var AddSelect = function AddSelect(props) {
4776
4797
  var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
4777
4798
  var isConformToTheRules, newPopValue;
4778
4799
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
4779
- while (1) switch (_context2.prev = _context2.next) {
4780
- case 0:
4781
- _context2.next = 2;
4782
- return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
4783
- case 2:
4784
- isConformToTheRules = _context2.sent;
4785
- if (isConformToTheRules) {
4786
- record[item.dataIndex] = value;
4787
- } else {
4788
- record[item.dataIndex] = null;
4789
- }
4790
- newPopValue = popvalue.map(function (i, innerIndex) {
4791
- if (innerIndex == index) {
4792
- i[item.dataIndex] = record[item.dataIndex];
4800
+ while (1) {
4801
+ switch (_context2.prev = _context2.next) {
4802
+ case 0:
4803
+ _context2.next = 2;
4804
+ return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
4805
+ case 2:
4806
+ isConformToTheRules = _context2.sent;
4807
+ if (isConformToTheRules) {
4808
+ record[item.dataIndex] = value;
4809
+ } else {
4810
+ record[item.dataIndex] = null;
4793
4811
  }
4794
- return i;
4795
- });
4796
- setPopValue(newPopValue);
4797
- case 6:
4798
- case "end":
4799
- return _context2.stop();
4812
+ newPopValue = popvalue.map(function (i, innerIndex) {
4813
+ if (innerIndex == index) {
4814
+ i[item.dataIndex] = record[item.dataIndex];
4815
+ }
4816
+ return i;
4817
+ });
4818
+ setPopValue(newPopValue);
4819
+ case 6:
4820
+ case "end":
4821
+ return _context2.stop();
4822
+ }
4800
4823
  }
4801
4824
  }, _callee2);
4802
4825
  }));
@@ -4856,85 +4879,84 @@ var AddSelect = function AddSelect(props) {
4856
4879
  });
4857
4880
  }
4858
4881
  // 数组对象处理,对带有特殊标记的name进行处理
4859
- var _loop = function _loop() {
4882
+ for (var key in params) {
4860
4883
  if (Object.prototype.hasOwnProperty.call(params, key)) {
4861
- var element = params[key];
4862
- if (element && key.indexOf('*number*') >= 0) {
4863
- var dataParams = key.split('*number*');
4864
- dataParams.forEach(function (value, index) {
4865
- params[value] = element[index];
4866
- });
4867
- delete params[key];
4868
- } else if (element && key.indexOf('*address*') >= 0) {
4869
- var _dataParams = key.split('*address*');
4870
- _dataParams.forEach(function (value, index) {
4871
- params[value] = element.PCDCode[index];
4872
- });
4873
- delete params[key];
4874
- } else if (element && key.indexOf('*costType*') >= 0) {
4875
- var _dataParams2 = key.split('*costType*');
4876
- // eslint-disable-next-line prefer-destructuring
4877
- params[_dataParams2[0]] = element[1];
4878
- delete params[key];
4879
- } else if (element && key.indexOf('*fullDate*') >= 0) {
4880
- var _dataParams3 = key.split('*fullDate*');
4881
- _dataParams3.forEach(function (value, index) {
4882
- if (index === 0) {
4883
- params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
4884
- } else {
4885
- params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
4884
+ (function () {
4885
+ var element = params[key];
4886
+ if (element && key.indexOf('*number*') >= 0) {
4887
+ var dataParams = key.split('*number*');
4888
+ dataParams.forEach(function (value, index) {
4889
+ params[value] = element[index];
4890
+ });
4891
+ delete params[key];
4892
+ } else if (element && key.indexOf('*address*') >= 0) {
4893
+ var _dataParams = key.split('*address*');
4894
+ _dataParams.forEach(function (value, index) {
4895
+ params[value] = element.PCDCode[index];
4896
+ });
4897
+ delete params[key];
4898
+ } else if (element && key.indexOf('*costType*') >= 0) {
4899
+ var _dataParams2 = key.split('*costType*');
4900
+ // eslint-disable-next-line prefer-destructuring
4901
+ params[_dataParams2[0]] = element[1];
4902
+ delete params[key];
4903
+ } else if (element && key.indexOf('*fullDate*') >= 0) {
4904
+ var _dataParams3 = key.split('*fullDate*');
4905
+ _dataParams3.forEach(function (value, index) {
4906
+ if (index === 0) {
4907
+ params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
4908
+ } else {
4909
+ params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
4910
+ }
4911
+ });
4912
+ delete params[key];
4913
+ } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
4914
+ var _dataParams4 = key.split('*checkBox*');
4915
+ if (element) {
4916
+ params[_dataParams4[0]] = 0;
4886
4917
  }
4887
- });
4888
- delete params[key];
4889
- } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
4890
- var _dataParams4 = key.split('*checkBox*');
4891
- if (element) {
4892
- params[_dataParams4[0]] = 0;
4893
- }
4894
- delete params[key];
4895
- } else if (element && key.indexOf('*cascader*') >= 0) {
4896
- var _dataParams5 = key.split('*cascader*');
4897
- params[_dataParams5[0]] = element[element.length - 1];
4898
- delete params[key];
4899
- } else if (element && key.indexOf('*date*') >= 0) {
4900
- var _dataParams6 = key.split('*date*');
4901
- _dataParams6.forEach(function (value, index) {
4902
- if (index === 0) {
4903
- params[value] = moment(element[index]).format('YYYY-MM-DD');
4918
+ delete params[key];
4919
+ } else if (element && key.indexOf('*cascader*') >= 0) {
4920
+ var _dataParams5 = key.split('*cascader*');
4921
+ params[_dataParams5[0]] = element[element.length - 1];
4922
+ delete params[key];
4923
+ } else if (element && key.indexOf('*date*') >= 0) {
4924
+ var _dataParams6 = key.split('*date*');
4925
+ _dataParams6.forEach(function (value, index) {
4926
+ if (index === 0) {
4927
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
4928
+ } else {
4929
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
4930
+ }
4931
+ });
4932
+ delete params[key];
4933
+ } else if (element && key.indexOf('*') >= 0) {
4934
+ var _dataParams7 = key.split('*');
4935
+ _dataParams7.forEach(function (value, index) {
4936
+ params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
4937
+ });
4938
+ delete params[key];
4939
+ } else if (element && key.indexOf('_selectNumberRange') >= 0) {
4940
+ // key = xxxxx_selectNumberRange qp-xxxxx-gt
4941
+ var _dataParams8 = key.split('_selectNumberRange')[0];
4942
+ if (params[key][0] === 'range') {
4943
+ if (params[key][1][0]) {
4944
+ params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
4945
+ }
4946
+ if (params[key][1][1]) {
4947
+ params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
4948
+ }
4904
4949
  } else {
4905
- params[value] = moment(element[index]).format('YYYY-MM-DD');
4906
- }
4907
- });
4908
- delete params[key];
4909
- } else if (element && key.indexOf('*') >= 0) {
4910
- var _dataParams7 = key.split('*');
4911
- _dataParams7.forEach(function (value, index) {
4912
- params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
4913
- });
4914
- delete params[key];
4915
- } else if (element && key.indexOf('_selectNumberRange') >= 0) {
4916
- // key = xxxxx_selectNumberRange qp-xxxxx-gt
4917
- var _dataParams8 = key.split('_selectNumberRange')[0];
4918
- if (params[key][0] === 'range') {
4919
- if (params[key][1][0]) {
4920
- params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
4950
+ params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
4921
4951
  }
4922
- if (params[key][1][1]) {
4923
- params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
4924
- }
4925
- } else {
4926
- params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
4952
+ delete params[key];
4953
+ } else if (Array.isArray(element)) {
4954
+ params[key] = element.join(',');
4955
+ } else if (element == null || element === undefined || String(element).trim() === '') {
4956
+ delete params[key];
4927
4957
  }
4928
- delete params[key];
4929
- } else if (Array.isArray(element)) {
4930
- params[key] = element.join(',');
4931
- } else if (element == null || element === undefined || String(element).trim() === '') {
4932
- delete params[key];
4933
- }
4958
+ })();
4934
4959
  }
4935
- };
4936
- for (var key in params) {
4937
- _loop();
4938
4960
  }
4939
4961
  var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
4940
4962
  pageSize: pageSize,
@@ -6389,74 +6411,76 @@ var BillEntry = function BillEntry(_ref3) {
6389
6411
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
6390
6412
  var canEntryObject, _canEntryObject$error, messageInfo;
6391
6413
  return _regeneratorRuntime().wrap(function _callee$(_context) {
6392
- while (1) switch (_context.prev = _context.next) {
6393
- case 0:
6394
- if (data === null || data === void 0 ? void 0 : data.length) {
6395
- _context.next = 3;
6396
- break;
6397
- }
6398
- message$1.warning('至少录入一条数据');
6399
- return _context.abrupt("return");
6400
- case 3:
6401
- if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6402
- return d.skuCode && d.name;
6403
- })) {
6404
- _context.next = 6;
6405
- break;
6406
- }
6407
- message$1.warning('请选择商品!');
6408
- return _context.abrupt("return");
6409
- case 6:
6410
- if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6411
- return d.count;
6412
- })) {
6413
- _context.next = 9;
6414
- break;
6415
- }
6416
- message$1.warning('请填写商品数量!');
6417
- return _context.abrupt("return");
6418
- case 9:
6419
- _context.next = 11;
6420
- return isSkuCanEntry(data);
6421
- case 11:
6422
- canEntryObject = _context.sent;
6423
- if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
6424
- _context.next = 16;
6425
- break;
6426
- }
6427
- messageInfo = (canEntryObject === null || canEntryObject === void 0 ? void 0 : (_canEntryObject$error = canEntryObject.errorList) === null || _canEntryObject$error === void 0 ? void 0 : _canEntryObject$error.length) && (canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.errorList.map(function (i) {
6428
- return /*#__PURE__*/React.createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
6429
- }));
6430
- messageInfo && message$1.warning({
6431
- content: messageInfo,
6432
- duration: 6
6433
- });
6434
- return _context.abrupt("return");
6435
- case 16:
6436
- setLoading(true);
6437
- onSaveCallback(data).then(function (res) {
6438
- {
6439
- var _Object$keys;
6440
- var initSuccessMessage = '保存成功';
6441
- var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
6442
- if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
6443
- (rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? message$1.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
6444
- } else {
6445
- message$1.success(initSuccessMessage);
6446
- }
6414
+ while (1) {
6415
+ switch (_context.prev = _context.next) {
6416
+ case 0:
6417
+ if (data === null || data === void 0 ? void 0 : data.length) {
6418
+ _context.next = 3;
6419
+ break;
6447
6420
  }
6448
- setLoading(false);
6449
- }).catch(function (Error) {
6450
- message$1.error(Error);
6451
- setLoading(false);
6452
- });
6453
- case 18:
6454
- case "end":
6455
- return _context.stop();
6456
- }
6457
- }, _callee);
6458
- }));
6459
- return function handleSubmit() {
6421
+ message$1.warning('至少录入一条数据');
6422
+ return _context.abrupt("return");
6423
+ case 3:
6424
+ if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6425
+ return d.skuCode && d.name;
6426
+ })) {
6427
+ _context.next = 6;
6428
+ break;
6429
+ }
6430
+ message$1.warning('请选择商品!');
6431
+ return _context.abrupt("return");
6432
+ case 6:
6433
+ if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6434
+ return d.count;
6435
+ })) {
6436
+ _context.next = 9;
6437
+ break;
6438
+ }
6439
+ message$1.warning('请填写商品数量!');
6440
+ return _context.abrupt("return");
6441
+ case 9:
6442
+ _context.next = 11;
6443
+ return isSkuCanEntry(data);
6444
+ case 11:
6445
+ canEntryObject = _context.sent;
6446
+ if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
6447
+ _context.next = 16;
6448
+ break;
6449
+ }
6450
+ messageInfo = (canEntryObject === null || canEntryObject === void 0 ? void 0 : (_canEntryObject$error = canEntryObject.errorList) === null || _canEntryObject$error === void 0 ? void 0 : _canEntryObject$error.length) && (canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.errorList.map(function (i) {
6451
+ return /*#__PURE__*/React.createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
6452
+ }));
6453
+ messageInfo && message$1.warning({
6454
+ content: messageInfo,
6455
+ duration: 6
6456
+ });
6457
+ return _context.abrupt("return");
6458
+ case 16:
6459
+ setLoading(true);
6460
+ onSaveCallback(data).then(function (res) {
6461
+ {
6462
+ var _Object$keys;
6463
+ var initSuccessMessage = '保存成功';
6464
+ var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
6465
+ if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
6466
+ (rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? message$1.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
6467
+ } else {
6468
+ message$1.success(initSuccessMessage);
6469
+ }
6470
+ }
6471
+ setLoading(false);
6472
+ }).catch(function (Error) {
6473
+ message$1.error(Error);
6474
+ setLoading(false);
6475
+ });
6476
+ case 18:
6477
+ case "end":
6478
+ return _context.stop();
6479
+ }
6480
+ }
6481
+ }, _callee);
6482
+ }));
6483
+ return function handleSubmit() {
6460
6484
  return _ref4.apply(this, arguments);
6461
6485
  };
6462
6486
  }();
@@ -9587,7 +9611,7 @@ var CommodityEntry = function CommodityEntry(props) {
9587
9611
  * @LastEditTime: 2022-01-14 17:17:26
9588
9612
  * @LastEditors: rodchen
9589
9613
  */
9590
- var index$2 = (function (storageKeyString) {
9614
+ var index$1 = (function (storageKeyString) {
9591
9615
  var seconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
9592
9616
  var tipsCallFunction = arguments.length > 2 ? arguments[2] : undefined;
9593
9617
  if (typeof seconds !== 'number') throw new Error('seconds should be number');
@@ -9705,42 +9729,44 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
9705
9729
  var _ctx$form;
9706
9730
  var resData, coverData, data, dataList;
9707
9731
  return _regeneratorRuntime().wrap(function _callee$(_context) {
9708
- while (1) switch (_context.prev = _context.next) {
9709
- case 0:
9710
- resData = (res === null || res === void 0 ? void 0 : res.data) || [];
9711
- if (!(resData.status === '0' || resData.code === '000000')) {
9712
- _context.next = 13;
9732
+ while (1) {
9733
+ switch (_context.prev = _context.next) {
9734
+ case 0:
9735
+ resData = (res === null || res === void 0 ? void 0 : res.data) || [];
9736
+ if (!(resData.status === '0' || resData.code === '000000')) {
9737
+ _context.next = 13;
9738
+ break;
9739
+ }
9740
+ data = resData.data;
9741
+ if (!remoteSource.converter) {
9742
+ _context.next = 9;
9743
+ break;
9744
+ }
9745
+ _context.next = 6;
9746
+ return remoteSource.converter({
9747
+ data: [data]
9748
+ });
9749
+ case 6:
9750
+ coverData = _context.sent;
9751
+ _context.next = 11;
9713
9752
  break;
9714
- }
9715
- data = resData.data;
9716
- if (!remoteSource.converter) {
9717
- _context.next = 9;
9753
+ case 9:
9754
+ dataList = data && Array.isArray(data) ? data : data && [data] || [];
9755
+ coverData = dataList.length && dataList.map(function (ites) {
9756
+ return mapSearchTree(ites);
9757
+ }) || [];
9758
+ case 11:
9759
+ _context.next = 14;
9718
9760
  break;
9719
- }
9720
- _context.next = 6;
9721
- return remoteSource.converter({
9722
- data: [data]
9723
- });
9724
- case 6:
9725
- coverData = _context.sent;
9726
- _context.next = 11;
9727
- break;
9728
- case 9:
9729
- dataList = data && Array.isArray(data) ? data : data && [data] || [];
9730
- coverData = dataList.length && dataList.map(function (ites) {
9731
- return mapSearchTree(ites);
9732
- }) || [];
9733
- case 11:
9734
- _context.next = 14;
9735
- break;
9736
- case 13:
9737
- coverData = [];
9738
- case 14:
9739
- setTreeData(coverData);
9740
- ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
9741
- case 16:
9742
- case "end":
9743
- return _context.stop();
9761
+ case 13:
9762
+ coverData = [];
9763
+ case 14:
9764
+ setTreeData(coverData);
9765
+ ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
9766
+ case 16:
9767
+ case "end":
9768
+ return _context.stop();
9769
+ }
9744
9770
  }
9745
9771
  }, _callee);
9746
9772
  }));
@@ -9941,7 +9967,7 @@ var BusinessTreeSearchSelect$1 = /*#__PURE__*/React.memo(BusinessTreeSearchSelec
9941
9967
  var css_248z$8 = ".form-status-label {\n height: 48px;\n margin-right: 12px;\n display: inline-block;\n position: relative;\n background-color: #B0B4B7;\n align-items: center;\n}\n.choosed-status-label.form-status-label {\n background-color: #005CFF;\n}\n.form-status-label:last-child {\n margin-right: 0px;\n}\n.form-status-label:first-child::after {\n position: absolute;\n display: block;\n content: '';\n right: -48px;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.choosed-status-label.form-status-label::after {\n border-left: 12px solid #005CFF;\n}\n.choosed-status-label.form-status-label:not(:first-child):not(:last-child)::after {\n border-left: 12px solid #005CFF;\n}\n.form-status-label:last-child::after {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.form-status-label:not(:first-child):not(:last-child)::before {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.form-status-label:not(:first-child):not(:last-child)::after {\n position: absolute;\n display: block;\n content: '';\n right: -48px;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.status-label-index {\n display: inline-block;\n width: 24px;\n height: 24px;\n border: 1px solid #FFFFFF;\n color: #FFFFFF;\n border-radius: 50%;\n font-family: Montserrat;\n font-size: 14px;\n line-height: 24px;\n text-align: center;\n margin: 0 6px 0 20px;\n}\n.status-label-key {\n width: 50px;\n height: 100%;\n display: inline-flex;\n float: left;\n align-items: center;\n justify-content: center;\n}\n.status-label-operate {\n float: left;\n width: calc(100% - 50px);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 100%;\n margin: 4px 0;\n}\n.status-label-operate > div {\n font-size: 12px;\n height: 20px;\n line-height: 20px;\n color: #FFFFFF;\n font-family: PingFangSC;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.status-label-operate > div:first-child {\n font-size: 14px;\n font-weight: 600;\n}\n.only-one-child.form-status-label::after,\n.only-one-child.form-status-label::before {\n border-left: 0px;\n}\n";
9942
9968
  styleInject(css_248z$8);
9943
9969
 
9944
- var index$3 = (function (props) {
9970
+ var index$2 = (function (props) {
9945
9971
  var _props$formStatusMapp = props.formStatusMapping,
9946
9972
  formStatusMapping = _props$formStatusMapp === void 0 ? [] : _props$formStatusMapp;
9947
9973
  return /*#__PURE__*/React.createElement("div", {
@@ -11365,7 +11391,7 @@ var iconMap = {
11365
11391
  src: moreIcon
11366
11392
  })
11367
11393
  };
11368
- var index$4 = (function (props) {
11394
+ var index$3 = (function (props) {
11369
11395
  var _useLocation = useLocation(),
11370
11396
  pathname = _useLocation.pathname;
11371
11397
  var _useState = useState(pathname + 'id'),
@@ -11582,7 +11608,7 @@ var css_248z$d = ".home_page_head {\n height: 54px;\n display: flex;\n justif
11582
11608
  styleInject(css_248z$d);
11583
11609
 
11584
11610
  var _excluded$c = ["children"];
11585
- var index$5 = (function (props) {
11611
+ var index$4 = (function (props) {
11586
11612
  var _useLocation = useLocation(),
11587
11613
  pathname = _useLocation.pathname;
11588
11614
  var _useState = useState(pathname + 'id'),
@@ -13858,19 +13884,21 @@ function _outLogin() {
13858
13884
  _outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
13859
13885
  var res;
13860
13886
  return _regeneratorRuntime().wrap(function _callee$(_context) {
13861
- while (1) switch (_context.prev = _context.next) {
13862
- case 0:
13863
- _context.next = 2;
13864
- return axios({
13865
- url: '/user/web/loginOut',
13866
- method: 'GET'
13867
- });
13868
- case 2:
13869
- res = _context.sent;
13870
- return _context.abrupt("return", res);
13871
- case 4:
13872
- case "end":
13873
- return _context.stop();
13887
+ while (1) {
13888
+ switch (_context.prev = _context.next) {
13889
+ case 0:
13890
+ _context.next = 2;
13891
+ return axios({
13892
+ url: '/user/web/loginOut',
13893
+ method: 'GET'
13894
+ });
13895
+ case 2:
13896
+ res = _context.sent;
13897
+ return _context.abrupt("return", res);
13898
+ case 4:
13899
+ case "end":
13900
+ return _context.stop();
13901
+ }
13874
13902
  }
13875
13903
  }, _callee);
13876
13904
  }));
@@ -13999,29 +14027,31 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
13999
14027
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
14000
14028
  var sessionId;
14001
14029
  return _regeneratorRuntime().wrap(function _callee$(_context) {
14002
- while (1) switch (_context.prev = _context.next) {
14003
- case 0:
14004
- _context.next = 2;
14005
- return getSessionId();
14006
- case 2:
14007
- sessionId = _context.sent;
14008
- _context.next = 5;
14009
- return outLogin({
14010
- sessionId: sessionId
14011
- });
14012
- case 5:
14013
- // @ts-ignore
14014
- if (BUILD_TYPE) {
14015
- message$1.success('退出登录成功');
14016
- history.replace({
14017
- pathname: '/user/login'
14030
+ while (1) {
14031
+ switch (_context.prev = _context.next) {
14032
+ case 0:
14033
+ _context.next = 2;
14034
+ return getSessionId();
14035
+ case 2:
14036
+ sessionId = _context.sent;
14037
+ _context.next = 5;
14038
+ return outLogin({
14039
+ sessionId: sessionId
14018
14040
  });
14019
- } else {
14020
- setLoginOutPath();
14021
- }
14022
- case 6:
14023
- case "end":
14024
- return _context.stop();
14041
+ case 5:
14042
+ // @ts-ignore
14043
+ if (BUILD_TYPE) {
14044
+ message$1.success('退出登录成功');
14045
+ history.replace({
14046
+ pathname: '/user/login'
14047
+ });
14048
+ } else {
14049
+ setLoginOutPath();
14050
+ }
14051
+ case 6:
14052
+ case "end":
14053
+ return _context.stop();
14054
+ }
14025
14055
  }
14026
14056
  }, _callee);
14027
14057
  }));
@@ -15849,7 +15879,6 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
15849
15879
  showSubMenu: isShow
15850
15880
  });
15851
15881
  }, 500);
15852
- //设置tabs标签左右滚动
15853
15882
  _this.setTabNavTransLate = function (num) {
15854
15883
  var _document$getElementB, _document$getElementB2, _document$getElementB3, _document$getElementB4, _document$defaultView;
15855
15884
  var globalTabsNav = (_document$getElementB = document.getElementById('globalTabs')) === null || _document$getElementB === void 0 ? void 0 : (_document$getElementB2 = _document$getElementB.getElementsByClassName('ant-tabs-nav-list')) === null || _document$getElementB2 === void 0 ? void 0 : _document$getElementB2[0];
@@ -16530,12 +16559,14 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
16530
16559
  request: function () {
16531
16560
  var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
16532
16561
  return _regeneratorRuntime().wrap(function _callee$(_context) {
16533
- while (1) switch (_context.prev = _context.next) {
16534
- case 0:
16535
- return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
16536
- case 1:
16537
- case "end":
16538
- return _context.stop();
16562
+ while (1) {
16563
+ switch (_context.prev = _context.next) {
16564
+ case 0:
16565
+ return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
16566
+ case 1:
16567
+ case "end":
16568
+ return _context.stop();
16569
+ }
16539
16570
  }
16540
16571
  }, _callee);
16541
16572
  }));
@@ -16673,7 +16704,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
16673
16704
  }]);
16674
16705
  return WrapperComponent;
16675
16706
  }(React.Component);
16676
- var index$6 = (function (props) {
16707
+ var index$5 = (function (props) {
16677
16708
  var _useModel = useModel('@@initialState'),
16678
16709
  _useModel$initialStat = _useModel.initialState,
16679
16710
  initialState = _useModel$initialStat === void 0 ? {} : _useModel$initialStat;
@@ -16914,7 +16945,7 @@ var FixedScrollBar = function FixedScrollBar(_ref, ref) {
16914
16945
  };
16915
16946
  var FixedScrollBar$1 = /*#__PURE__*/React.forwardRef(FixedScrollBar);
16916
16947
 
16917
- var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
16948
+ var index$6 = /*#__PURE__*/forwardRef(function (props, ref) {
16918
16949
  var _useState = useState(false),
16919
16950
  _useState2 = _slicedToArray(_useState, 2),
16920
16951
  show = _useState2[0],
@@ -24207,26 +24238,28 @@ var valueType = {
24207
24238
  var getDynamicDict = /*#__PURE__*/function () {
24208
24239
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
24209
24240
  return _regeneratorRuntime().wrap(function _callee$(_context) {
24210
- while (1) switch (_context.prev = _context.next) {
24211
- case 0:
24212
- _context.next = 2;
24213
- return request$1({
24214
- url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
24215
- converter: function converter(_ref2) {
24216
- var data = _ref2.data;
24217
- return data === null || data === void 0 ? void 0 : data.map(function (d) {
24218
- return {
24219
- text: d.name,
24220
- value: d.code || d.brandCode
24221
- };
24222
- });
24223
- }
24224
- });
24225
- case 2:
24226
- return _context.abrupt("return", _context.sent);
24227
- case 3:
24228
- case "end":
24229
- return _context.stop();
24241
+ while (1) {
24242
+ switch (_context.prev = _context.next) {
24243
+ case 0:
24244
+ _context.next = 2;
24245
+ return request$1({
24246
+ url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
24247
+ converter: function converter(_ref2) {
24248
+ var data = _ref2.data;
24249
+ return data === null || data === void 0 ? void 0 : data.map(function (d) {
24250
+ return {
24251
+ text: d.name,
24252
+ value: d.code || d.brandCode
24253
+ };
24254
+ });
24255
+ }
24256
+ });
24257
+ case 2:
24258
+ return _context.abrupt("return", _context.sent);
24259
+ case 3:
24260
+ case "end":
24261
+ return _context.stop();
24262
+ }
24230
24263
  }
24231
24264
  }, _callee);
24232
24265
  }));
@@ -24276,53 +24309,55 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
24276
24309
  useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
24277
24310
  var _ref$current, source;
24278
24311
  return _regeneratorRuntime().wrap(function _callee$(_context) {
24279
- while (1) switch (_context.prev = _context.next) {
24280
- case 0:
24281
- _context.next = 2;
24282
- return setIsShowAndType(function (prev) {
24283
- if (record.inputType === 20 || record.inputType === 30) {
24284
- return {
24285
- isShow: true,
24286
- singleOrMultiple: record.inputType,
24287
- type: record.choiceType
24288
- };
24312
+ while (1) {
24313
+ switch (_context.prev = _context.next) {
24314
+ case 0:
24315
+ _context.next = 2;
24316
+ return setIsShowAndType(function (prev) {
24317
+ if (record.inputType === 20 || record.inputType === 30) {
24318
+ return {
24319
+ isShow: true,
24320
+ singleOrMultiple: record.inputType,
24321
+ type: record.choiceType
24322
+ };
24323
+ }
24324
+ return prev;
24325
+ });
24326
+ case 2:
24327
+ if (!record.dictionaryCode) {
24328
+ _context.next = 17;
24329
+ break;
24289
24330
  }
24290
- return prev;
24291
- });
24292
- case 2:
24293
- if (!record.dictionaryCode) {
24294
- _context.next = 17;
24295
- break;
24296
- }
24297
- if (!(record.choiceType == 20)) {
24298
- _context.next = 7;
24331
+ if (!(record.choiceType == 20)) {
24332
+ _context.next = 7;
24333
+ break;
24334
+ }
24335
+ _context.t0 = getDictionarySource(record.dictionaryCode);
24336
+ _context.next = 15;
24299
24337
  break;
24300
- }
24301
- _context.t0 = getDictionarySource(record.dictionaryCode);
24302
- _context.next = 15;
24303
- break;
24304
- case 7:
24305
- if (!(record.choiceType == 30)) {
24306
- _context.next = 13;
24338
+ case 7:
24339
+ if (!(record.choiceType == 30)) {
24340
+ _context.next = 13;
24341
+ break;
24342
+ }
24343
+ _context.next = 10;
24344
+ return getDynamicDict(record.dictionaryCode);
24345
+ case 10:
24346
+ _context.t1 = _context.sent;
24347
+ _context.next = 14;
24307
24348
  break;
24308
- }
24309
- _context.next = 10;
24310
- return getDynamicDict(record.dictionaryCode);
24311
- case 10:
24312
- _context.t1 = _context.sent;
24313
- _context.next = 14;
24314
- break;
24315
- case 13:
24316
- _context.t1 = [];
24317
- case 14:
24318
- _context.t0 = _context.t1;
24319
- case 15:
24320
- source = _context.t0;
24321
- // @ts-ignore
24322
- ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
24323
- case 17:
24324
- case "end":
24325
- return _context.stop();
24349
+ case 13:
24350
+ _context.t1 = [];
24351
+ case 14:
24352
+ _context.t0 = _context.t1;
24353
+ case 15:
24354
+ source = _context.t0;
24355
+ // @ts-ignore
24356
+ ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
24357
+ case 17:
24358
+ case "end":
24359
+ return _context.stop();
24360
+ }
24326
24361
  }
24327
24362
  }, _callee);
24328
24363
  })));
@@ -24390,28 +24425,30 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
24390
24425
  var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
24391
24426
  var form, values, name, relates, source;
24392
24427
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
24393
- while (1) switch (_context2.prev = _context2.next) {
24394
- case 0:
24395
- form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
24396
- if (values[0]) {
24428
+ while (1) {
24429
+ switch (_context2.prev = _context2.next) {
24430
+ case 0:
24431
+ form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
24432
+ if (values[0]) {
24433
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
24434
+ form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
24435
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
24436
+ }
24437
+ if (!values[1]) {
24438
+ _context2.next = 9;
24439
+ break;
24440
+ }
24441
+ _context2.next = 5;
24442
+ return getDynamicDict(record.dictionaryCode || values[1]);
24443
+ case 5:
24444
+ source = _context2.sent;
24397
24445
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
24398
24446
  form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
24399
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
24400
- }
24401
- if (!values[1]) {
24402
- _context2.next = 9;
24403
- break;
24404
- }
24405
- _context2.next = 5;
24406
- return getDynamicDict(record.dictionaryCode || values[1]);
24407
- case 5:
24408
- source = _context2.sent;
24409
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
24410
- form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
24411
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
24412
- case 9:
24413
- case "end":
24414
- return _context2.stop();
24447
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
24448
+ case 9:
24449
+ case "end":
24450
+ return _context2.stop();
24451
+ }
24415
24452
  }
24416
24453
  }, _callee2);
24417
24454
  }));
@@ -24871,41 +24908,43 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
24871
24908
  var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
24872
24909
  var values, name, form, source;
24873
24910
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
24874
- while (1) switch (_context3.prev = _context3.next) {
24875
- case 0:
24876
- values = _ref10.values, name = _ref10.name, form = _ref10.form;
24877
- if (values[1] === 40) {
24878
- form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
24879
- form.setFieldVisible(name, false);
24880
- }
24881
- if (!(values[0] === 30)) {
24882
- _context3.next = 10;
24883
- break;
24884
- }
24885
- _context3.next = 5;
24886
- return request$1({
24887
- url: '/basic/dictDynamicItem/queryList',
24888
- converter: function converter(_ref11) {
24889
- var data = _ref11.data;
24890
- return data === null || data === void 0 ? void 0 : data.map(function (d) {
24891
- return {
24892
- text: d.dictCode,
24893
- value: d.dictCode
24894
- };
24895
- });
24911
+ while (1) {
24912
+ switch (_context3.prev = _context3.next) {
24913
+ case 0:
24914
+ values = _ref10.values, name = _ref10.name, form = _ref10.form;
24915
+ if (values[1] === 40) {
24916
+ form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
24917
+ form.setFieldVisible(name, false);
24896
24918
  }
24897
- });
24898
- case 5:
24899
- source = _context3.sent;
24900
- form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
24901
- form.setFieldVisible(name, true);
24902
- _context3.next = 11;
24903
- break;
24904
- case 10:
24905
- form.setFieldVisible(name, false);
24906
- case 11:
24907
- case "end":
24908
- return _context3.stop();
24919
+ if (!(values[0] === 30)) {
24920
+ _context3.next = 10;
24921
+ break;
24922
+ }
24923
+ _context3.next = 5;
24924
+ return request$1({
24925
+ url: '/basic/dictDynamicItem/queryList',
24926
+ converter: function converter(_ref11) {
24927
+ var data = _ref11.data;
24928
+ return data === null || data === void 0 ? void 0 : data.map(function (d) {
24929
+ return {
24930
+ text: d.dictCode,
24931
+ value: d.dictCode
24932
+ };
24933
+ });
24934
+ }
24935
+ });
24936
+ case 5:
24937
+ source = _context3.sent;
24938
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
24939
+ form.setFieldVisible(name, true);
24940
+ _context3.next = 11;
24941
+ break;
24942
+ case 10:
24943
+ form.setFieldVisible(name, false);
24944
+ case 11:
24945
+ case "end":
24946
+ return _context3.stop();
24947
+ }
24909
24948
  }
24910
24949
  }, _callee3);
24911
24950
  }));
@@ -25094,64 +25133,66 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
25094
25133
  var _ref$current4, _res$editableStatus;
25095
25134
  var res, _res$defaultValue;
25096
25135
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
25097
- while (1) switch (_context4.prev = _context4.next) {
25098
- case 0:
25099
- _context4.next = 2;
25100
- return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
25101
- case 2:
25102
- res = _context4.sent;
25103
- res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
25104
- res.fieldGroup = record.fieldGroup;
25105
- res.businessType = record.businessType;
25106
- res.info = {
25107
- enumeration: res.enumeration,
25108
- dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
25109
- formula: res.formula,
25110
- scale: res.scale,
25111
- variable: res.variable
25112
- };
25113
- res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
25114
- res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
25115
- res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
25116
- if (res.inputType === 40) {
25117
- res.valueType = 22;
25118
- }
25119
- // 把数组处理成文本
25120
- if (res.inputType === 30) {
25121
- if (res.defaultValue) {
25122
- res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
25136
+ while (1) {
25137
+ switch (_context4.prev = _context4.next) {
25138
+ case 0:
25139
+ _context4.next = 2;
25140
+ return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
25141
+ case 2:
25142
+ res = _context4.sent;
25143
+ res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
25144
+ res.fieldGroup = record.fieldGroup;
25145
+ res.businessType = record.businessType;
25146
+ res.info = {
25147
+ enumeration: res.enumeration,
25148
+ dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
25149
+ formula: res.formula,
25150
+ scale: res.scale,
25151
+ variable: res.variable
25152
+ };
25153
+ res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
25154
+ res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
25155
+ res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
25156
+ if (res.inputType === 40) {
25157
+ res.valueType = 22;
25123
25158
  }
25124
- }
25125
- res.fieldMapping = res.fieldMapping || '';
25126
- delete res.formula;
25127
- delete res.showValue;
25128
- if (!(mode === 'create')) {
25129
- _context4.next = 18;
25130
- break;
25131
- }
25132
- request$1({
25133
- url: "/basic/flow/businessField",
25134
- method: 'POST',
25135
- params: res,
25136
- successMessage: '创建成功!',
25137
- converter: function converter() {
25138
- onParentOk();
25159
+ // 把数组处理成文本
25160
+ if (res.inputType === 30) {
25161
+ if (res.defaultValue) {
25162
+ res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
25163
+ }
25139
25164
  }
25140
- });
25141
- return _context4.abrupt("return");
25142
- case 18:
25143
- request$1({
25144
- url: "/basic/flow/businessField/".concat(record.id),
25145
- method: 'PATCH',
25146
- params: res,
25147
- successMessage: '修改成功!',
25148
- converter: function converter() {
25149
- onParentOk();
25165
+ res.fieldMapping = res.fieldMapping || '';
25166
+ delete res.formula;
25167
+ delete res.showValue;
25168
+ if (!(mode === 'create')) {
25169
+ _context4.next = 18;
25170
+ break;
25150
25171
  }
25151
- });
25152
- case 19:
25153
- case "end":
25154
- return _context4.stop();
25172
+ request$1({
25173
+ url: "/basic/flow/businessField",
25174
+ method: 'POST',
25175
+ params: res,
25176
+ successMessage: '创建成功!',
25177
+ converter: function converter() {
25178
+ onParentOk();
25179
+ }
25180
+ });
25181
+ return _context4.abrupt("return");
25182
+ case 18:
25183
+ request$1({
25184
+ url: "/basic/flow/businessField/".concat(record.id),
25185
+ method: 'PATCH',
25186
+ params: res,
25187
+ successMessage: '修改成功!',
25188
+ converter: function converter() {
25189
+ onParentOk();
25190
+ }
25191
+ });
25192
+ case 19:
25193
+ case "end":
25194
+ return _context4.stop();
25195
+ }
25155
25196
  }
25156
25197
  }, _callee4);
25157
25198
  }));
@@ -25173,7 +25214,9 @@ var FieldsSettingsTable = (function (props) {
25173
25214
  _props$codeProps = props.codeProps,
25174
25215
  codeProps = _props$codeProps === void 0 ? '' : _props$codeProps,
25175
25216
  moduleType = props.moduleType,
25176
- moduleRelationId = props.moduleRelationId;
25217
+ moduleRelationId = props.moduleRelationId,
25218
+ _props$tableFlag = props.tableFlag,
25219
+ tableFlag = _props$tableFlag === void 0 ? false : _props$tableFlag;
25177
25220
  var ref = useRef(null);
25178
25221
  var _useState = useState({
25179
25222
  visible: false,
@@ -25262,6 +25305,9 @@ var FieldsSettingsTable = (function (props) {
25262
25305
  render: function render(_ref2) {
25263
25306
  var text = _ref2.text,
25264
25307
  record = _ref2.record;
25308
+ if (tableFlag) {
25309
+ return /*#__PURE__*/React.createElement("div", null, " \u5217\u8868\uFF1A", "{\"key\": \"extensionFields,".concat(record.code, "\",\"dataIndex\": \"extensionFields,").concat(record.code, "\",\"title\": \"").concat(record.name, "\"},"));
25310
+ }
25265
25311
  if (!codeProps.columns) {
25266
25312
  return /*#__PURE__*/React.createElement("div", null, "\u8868\u5355\uFF1A", "{\"name\": \"extensionFields,".concat(record.code, "\",\"label\": \"").concat(record.name, "\"},"));
25267
25313
  }
@@ -25402,6 +25448,13 @@ function convertFileds(fields, falltValue, faltFieldRange, containerName) {
25402
25448
  var _field$container6;
25403
25449
  var targetValue = convertFileds(item, falltValue, faltFieldRange, field === null || field === void 0 ? void 0 : (_field$container6 = field.container) === null || _field$container6 === void 0 ? void 0 : _field$container6.name);
25404
25450
  if (targetValue) {
25451
+ if (item.dependency) {
25452
+ targetValue.dependency = {
25453
+ visible: _objectSpread2(_objectSpread2({}, item.dependency.visible), {}, {
25454
+ type: new Function('axios', 'ctx', item.dependency.visible.type).bind(null, axios)
25455
+ })
25456
+ };
25457
+ }
25405
25458
  filedsValue.push(targetValue);
25406
25459
  }
25407
25460
  });
@@ -25410,6 +25463,14 @@ function convertFileds(fields, falltValue, faltFieldRange, containerName) {
25410
25463
  if (returnField) {
25411
25464
  var _returnField$name;
25412
25465
  returnField.label = field === null || field === void 0 ? void 0 : field.label;
25466
+ if (field === null || field === void 0 ? void 0 : field.disabled) {
25467
+ // 字段设置只读属性
25468
+ returnField.field.props.disabled = true;
25469
+ }
25470
+ if (field === null || field === void 0 ? void 0 : field.invisible) {
25471
+ // 字段设置不可见属性
25472
+ returnField.initialVisible = false;
25473
+ }
25413
25474
  if (Array.isArray(returnField.name) && ((_returnField$name = returnField.name) === null || _returnField$name === void 0 ? void 0 : _returnField$name.includes("extensionFields"))) {
25414
25475
  returnField.notShowLabel = true;
25415
25476
  }
@@ -25439,10 +25500,39 @@ function faltCustomerFieldRange(fileds) {
25439
25500
  });
25440
25501
  return columnsValue;
25441
25502
  }
25503
+ //form存在新加container属性分组得情况 组合操作
25504
+ function combineContainer(originFields, currentFields) {
25505
+ var newCurrentFields = _toConsumableArray(originFields);
25506
+ currentFields.map(function (item) {
25507
+ if (!originFields.find(function (i) {
25508
+ var _i$container, _i$container$props, _item$container;
25509
+ return (i === null || i === void 0 ? void 0 : (_i$container = i.container) === null || _i$container === void 0 ? void 0 : (_i$container$props = _i$container.props) === null || _i$container$props === void 0 ? void 0 : _i$container$props.name) == (item === null || item === void 0 ? void 0 : (_item$container = item.container) === null || _item$container === void 0 ? void 0 : _item$container.name);
25510
+ })) {
25511
+ var _item$container2, _item$container3;
25512
+ newCurrentFields = [].concat(_toConsumableArray(newCurrentFields), [{
25513
+ container: {
25514
+ type: 'card',
25515
+ props: {
25516
+ title: item === null || item === void 0 ? void 0 : (_item$container2 = item.container) === null || _item$container2 === void 0 ? void 0 : _item$container2.title,
25517
+ level: 1,
25518
+ id: Math.random(),
25519
+ isWhiteCard: true,
25520
+ bordered: false,
25521
+ name: item === null || item === void 0 ? void 0 : (_item$container3 = item.container) === null || _item$container3 === void 0 ? void 0 : _item$container3.name
25522
+ }
25523
+ },
25524
+ fields: (item === null || item === void 0 ? void 0 : item.fields) || []
25525
+ }]);
25526
+ }
25527
+ });
25528
+ return newCurrentFields;
25529
+ }
25442
25530
  function hanleCallbackValue(codeProps, value, customerFields) {
25531
+ var cacheColumns = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
25443
25532
  var faltFieldRange = faltCustomerFieldRange(customerFields);
25533
+ // const falltValue = flatFileds({fields: codeProps.fields})
25444
25534
  var falltValue = flatFileds({
25445
- fields: codeProps.fields
25535
+ fields: combineContainer(codeProps.fields, value === null || value === void 0 ? void 0 : value.fields)
25446
25536
  });
25447
25537
  var newCodeProps = _objectSpread2({}, codeProps);
25448
25538
  newCodeProps.fields = convertFileds({
@@ -25452,7 +25542,10 @@ function hanleCallbackValue(codeProps, value, customerFields) {
25452
25542
  var faltColumnsValue = faltColumns(codeProps.columns);
25453
25543
  newCodeProps.columns = value.columns.map(function (item) {
25454
25544
  if (item.isStaticCode) {
25455
- return faltColumnsValue[item.key];
25545
+ var cacheFieldProperty = cacheColumns.find(function (k) {
25546
+ return (k.key || k.dataIndex) == (item.key || item.dataIndex);
25547
+ });
25548
+ return _objectSpread2(_objectSpread2({}, faltColumnsValue[item.key]), cacheFieldProperty);
25456
25549
  } else {
25457
25550
  //自定义字段-列字段
25458
25551
  if ((item === null || item === void 0 ? void 0 : item.key) && (item === null || item === void 0 ? void 0 : item.key.includes('extensionFields')) && (item === null || item === void 0 ? void 0 : item.key.includes(','))) {
@@ -25460,10 +25553,26 @@ function hanleCallbackValue(codeProps, value, customerFields) {
25460
25553
  render: function render(_ref) {
25461
25554
  var record = _ref.record;
25462
25555
  try {
25463
- var lastName1 = item === null || item === void 0 ? void 0 : item.key.split(',')[1]; //兼容没有fieldName的情况
25464
- var lastName2 = "".concat(lastName1, "Name");
25465
- var target = (record === null || record === void 0 ? void 0 : record.extensionFields) || {};
25466
- return target[lastName2] || target[lastName1] || '';
25556
+ var _record$extensionFiel = record.extensionFields,
25557
+ extensionFields = _record$extensionFiel === void 0 ? {} : _record$extensionFiel;
25558
+ var fieldName1 = item === null || item === void 0 ? void 0 : item.key.split(',')[1]; //兼容没有fieldName的情况
25559
+ var fieldName2 = "".concat(fieldName1, "Name");
25560
+ if (customerFields.length) {
25561
+ var targetField = customerFields.find(function (k) {
25562
+ return k.name.includes(fieldName1);
25563
+ });
25564
+ if (targetField) {
25565
+ var _targetField$initialS = targetField.initialSource,
25566
+ initialSource = _targetField$initialS === void 0 ? [] : _targetField$initialS;
25567
+ if (initialSource.length) {
25568
+ var _initialSource$find;
25569
+ return ((_initialSource$find = initialSource.find(function (d) {
25570
+ return d.value == extensionFields[fieldName1];
25571
+ })) === null || _initialSource$find === void 0 ? void 0 : _initialSource$find.text) || extensionFields[fieldName1];
25572
+ }
25573
+ }
25574
+ }
25575
+ return extensionFields[fieldName2] || extensionFields[fieldName1] || '';
25467
25576
  } catch (e) {
25468
25577
  console.log('e', e);
25469
25578
  }
@@ -25496,7 +25605,10 @@ var JsonQueryTable = /*#__PURE__*/React.memo(function (props) {
25496
25605
  codeProps = props.codeProps,
25497
25606
  customerFields = props.customerFields,
25498
25607
  initialSetting = props.initialSetting,
25499
- pageType = props.pageType;
25608
+ pageType = props.pageType,
25609
+ _props$detailTablesSe = props.detailTablesSetting,
25610
+ detailTablesSetting = _props$detailTablesSe === void 0 ? [] : _props$detailTablesSe,
25611
+ saveTableCallBack = props.saveTableCallBack;
25500
25612
  var codeFilter = {};
25501
25613
  if (codeProps.columns) {
25502
25614
  // table
@@ -25520,7 +25632,6 @@ var JsonQueryTable = /*#__PURE__*/React.memo(function (props) {
25520
25632
  fields: codeProps.fields
25521
25633
  }).fields;
25522
25634
  }
25523
- console.log('codeFilter', codeFilter);
25524
25635
  var styleRef = useRef(null);
25525
25636
  var _useState = useState(false),
25526
25637
  _useState2 = _slicedToArray(_useState, 2),
@@ -25542,6 +25653,18 @@ var JsonQueryTable = /*#__PURE__*/React.memo(function (props) {
25542
25653
  _useState10 = _slicedToArray(_useState9, 2),
25543
25654
  moduleParams = _useState10[0],
25544
25655
  setModuleParams = _useState10[1];
25656
+ var _useState11 = useState('main'),
25657
+ _useState12 = _slicedToArray(_useState11, 2),
25658
+ activeKey = _useState12[0],
25659
+ setActiveKey = _useState12[1]; //默认详情页配置
25660
+ var _useState13 = useState({}),
25661
+ _useState14 = _slicedToArray(_useState13, 2),
25662
+ tablesConfigParams = _useState14[0],
25663
+ setTablesConfigParams = _useState14[1];
25664
+ var _useState15 = useState([]),
25665
+ _useState16 = _slicedToArray(_useState15, 2),
25666
+ tableJsonEditorValsArr = _useState16[0],
25667
+ setTableJsonEditorValsArr = _useState16[1];
25545
25668
  useEffect(function () {
25546
25669
  Promise.all([axios.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
25547
25670
  var _ref3 = _slicedToArray(_ref2, 1),
@@ -25565,6 +25688,73 @@ var JsonQueryTable = /*#__PURE__*/React.memo(function (props) {
25565
25688
  }
25566
25689
  });
25567
25690
  }, []);
25691
+ useEffect(function () {
25692
+ //明细表的配置数据
25693
+ var axiosArr = detailTablesSetting.map(function (item) {
25694
+ return axios.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(item.tableCode));
25695
+ });
25696
+ Promise.all(axiosArr).then(function (_ref5) {
25697
+ var _ref6 = _toArray(_ref5),
25698
+ resArr = _ref6.slice(0);
25699
+ var configParams = {};
25700
+ detailTablesSetting.map(function (item, index) {
25701
+ var _resArr$index;
25702
+ var _ref7 = ((_resArr$index = resArr[index]) === null || _resArr$index === void 0 ? void 0 : _resArr$index.data) || {},
25703
+ code = _ref7.code,
25704
+ data = _ref7.data;
25705
+ if (data) {
25706
+ var businessType = data.businessType,
25707
+ fieldGroup = data.code,
25708
+ moduleType = data.moduleType;
25709
+ configParams[item.tableCode] = {
25710
+ businessType: businessType,
25711
+ fieldGroup: fieldGroup,
25712
+ moduleType: moduleType,
25713
+ tableFlag: true
25714
+ };
25715
+ }
25716
+ });
25717
+ setTablesConfigParams(_objectSpread2({}, configParams));
25718
+ });
25719
+ var detailTableCodeFilter = detailTablesSetting.map(function (item) {
25720
+ if ((item === null || item === void 0 ? void 0 : item.initialSetting) && (item === null || item === void 0 ? void 0 : item.initialSetting.length)) {
25721
+ return _objectSpread2(_objectSpread2({}, item), {}, {
25722
+ columns: item === null || item === void 0 ? void 0 : item.initialSetting
25723
+ });
25724
+ }
25725
+ return _objectSpread2(_objectSpread2({}, item), {}, {
25726
+ columns: item === null || item === void 0 ? void 0 : item.columns.map(function (childItem) {
25727
+ return {
25728
+ key: childItem.key || childItem.dataIndex,
25729
+ dataIndex: childItem.dataIndex || childItem.key,
25730
+ isStaticCode: true,
25731
+ title: childItem.title
25732
+ };
25733
+ })
25734
+ });
25735
+ });
25736
+ setTableJsonEditorValsArr(_toConsumableArray(detailTableCodeFilter));
25737
+ var lastRes = detailTableCodeFilter.map(function (item) {
25738
+ if ((item === null || item === void 0 ? void 0 : item.initialSetting) && (item === null || item === void 0 ? void 0 : item.initialSetting.length)) {
25739
+ var _codeProps = {
25740
+ fields: [],
25741
+ columns: item === null || item === void 0 ? void 0 : item.columns
25742
+ };
25743
+ var newValue = {
25744
+ fields: [],
25745
+ columns: item.initialSetting
25746
+ };
25747
+ var result = hanleCallbackValue(_codeProps, newValue, item === null || item === void 0 ? void 0 : item.customerFields, item === null || item === void 0 ? void 0 : item.cacheColumns);
25748
+ return _objectSpread2(_objectSpread2({}, item), {}, {
25749
+ columns: result === null || result === void 0 ? void 0 : result.columns
25750
+ });
25751
+ }
25752
+ return item;
25753
+ });
25754
+ if (lastRes.length) {
25755
+ saveTableCallBack(lastRes, false);
25756
+ }
25757
+ }, [detailTablesSetting.length]);
25568
25758
  var onClickRun = function onClickRun(value, isSave) {
25569
25759
  setJsonEditorVal(value);
25570
25760
  try {
@@ -25574,6 +25764,40 @@ var JsonQueryTable = /*#__PURE__*/React.memo(function (props) {
25574
25764
  message$1.error(e);
25575
25765
  }
25576
25766
  };
25767
+ //明细表保存
25768
+ var onClickRunDetailTables = function onClickRunDetailTables(value, isSave, tableCode, tableSouce) {
25769
+ var targetCode = tableCode || activeKey;
25770
+ var targetTableSource = tableSouce || tableJsonEditorValsArr;
25771
+ var newArr = targetTableSource.map(function (item) {
25772
+ if (item.tableCode == targetCode) {
25773
+ return _objectSpread2(_objectSpread2({}, item), {}, {
25774
+ columns: value
25775
+ });
25776
+ }
25777
+ return item;
25778
+ });
25779
+ setTableJsonEditorValsArr(_toConsumableArray(newArr));
25780
+ try {
25781
+ var target = targetTableSource.find(function (item) {
25782
+ return item.tableCode == targetCode;
25783
+ });
25784
+ var _codeProps2 = {
25785
+ fields: [],
25786
+ columns: target === null || target === void 0 ? void 0 : target.columns
25787
+ };
25788
+ var newValue = {
25789
+ fields: [],
25790
+ columns: value
25791
+ };
25792
+ var result = hanleCallbackValue(_codeProps2, newValue, target === null || target === void 0 ? void 0 : target.customerFields, target === null || target === void 0 ? void 0 : target.cacheColumns);
25793
+ saveTableCallBack({
25794
+ columns: result.columns,
25795
+ tableCode: targetCode
25796
+ }, isSave, value);
25797
+ } catch (e) {
25798
+ message$1.error(e);
25799
+ }
25800
+ };
25577
25801
  React.useEffect(function () {
25578
25802
  localStorage.setItem('jsonEditorVal', JSON.stringify(jsonEditorVal || {}));
25579
25803
  }, [jsonEditorVal]);
@@ -25590,25 +25814,97 @@ var JsonQueryTable = /*#__PURE__*/React.memo(function (props) {
25590
25814
  });
25591
25815
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Drawer, {
25592
25816
  visible: visible,
25593
- width: 800,
25817
+ width: 1400,
25594
25818
  onClose: function onClose() {
25595
25819
  return setVisible(false);
25596
25820
  },
25597
25821
  className: 'customFieldsDrawer'
25822
+ }, detailTablesSetting.length == 0 && /*#__PURE__*/React.createElement("div", {
25823
+ style: {
25824
+ display: 'flex'
25825
+ }
25826
+ }, /*#__PURE__*/React.createElement("div", {
25827
+ style: {
25828
+ flex: 1,
25829
+ width: 500
25830
+ }
25831
+ }, isEmpty(moduleParams) ? /*#__PURE__*/React.createElement("div", {
25832
+ style: {
25833
+ padding: "10px 0",
25834
+ fontSize: "16px",
25835
+ fontWeight: "bolder"
25836
+ }
25837
+ }, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61") : /*#__PURE__*/React.createElement(FieldsSettingsTable, _objectSpread2({}, tableParams))), /*#__PURE__*/React.createElement("div", {
25838
+ style: {
25839
+ flex: 1
25840
+ }
25841
+ }, /*#__PURE__*/React.createElement(Editor, {
25842
+ type: "table",
25843
+ onRun: onClickRun,
25844
+ value: jsonEditorVal,
25845
+ shallowHeight: height
25846
+ }))), detailTablesSetting.length > 0 && /*#__PURE__*/React.createElement(Tabs, {
25847
+ defaultActiveKey: activeKey,
25848
+ onChange: function onChange(v) {
25849
+ return setActiveKey(v);
25850
+ }
25851
+ }, /*#__PURE__*/React.createElement(Tabs.TabPane, {
25852
+ tab: "\u8BE6\u60C5\u9875\u914D\u7F6E",
25853
+ key: "main"
25854
+ }, /*#__PURE__*/React.createElement("div", {
25855
+ style: {
25856
+ display: 'flex'
25857
+ }
25598
25858
  }, /*#__PURE__*/React.createElement("div", {
25599
- ref: styleRef
25600
- }), isEmpty(moduleParams) ? /*#__PURE__*/React.createElement("div", {
25859
+ style: {
25860
+ flex: 1,
25861
+ width: 500
25862
+ }
25863
+ }, isEmpty(moduleParams) ? /*#__PURE__*/React.createElement("div", {
25601
25864
  style: {
25602
25865
  padding: "10px 0",
25603
25866
  fontSize: "16px",
25604
25867
  fontWeight: "bolder"
25605
25868
  }
25606
- }, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61") : /*#__PURE__*/React.createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)), /*#__PURE__*/React.createElement(Editor, {
25869
+ }, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61") : /*#__PURE__*/React.createElement(FieldsSettingsTable, _objectSpread2({}, tableParams))), /*#__PURE__*/React.createElement("div", {
25870
+ style: {
25871
+ flex: 1
25872
+ }
25873
+ }, /*#__PURE__*/React.createElement(Editor, {
25607
25874
  type: "table",
25608
25875
  onRun: onClickRun,
25609
25876
  value: jsonEditorVal,
25610
25877
  shallowHeight: height
25611
- })), !visible && isAdmin() && /*#__PURE__*/React.createElement(ConfigButton, {
25878
+ })))), tableJsonEditorValsArr.map(function (k) {
25879
+ return /*#__PURE__*/React.createElement(Tabs.TabPane, {
25880
+ tab: k.title,
25881
+ key: k.tableCode
25882
+ }, /*#__PURE__*/React.createElement("div", {
25883
+ style: {
25884
+ display: 'flex'
25885
+ }
25886
+ }, /*#__PURE__*/React.createElement("div", {
25887
+ style: {
25888
+ flex: 1,
25889
+ width: 500
25890
+ }
25891
+ }, !tablesConfigParams[k.tableCode] ? /*#__PURE__*/React.createElement("div", {
25892
+ style: {
25893
+ padding: "10px 0",
25894
+ fontSize: "16px",
25895
+ fontWeight: "bolder"
25896
+ }
25897
+ }, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61") : /*#__PURE__*/React.createElement(FieldsSettingsTable, _objectSpread2({}, tablesConfigParams[k.tableCode]))), /*#__PURE__*/React.createElement("div", {
25898
+ style: {
25899
+ flex: 1
25900
+ }
25901
+ }, /*#__PURE__*/React.createElement(Editor, {
25902
+ type: "table",
25903
+ onRun: onClickRunDetailTables,
25904
+ value: k.columns,
25905
+ shallowHeight: height
25906
+ }))));
25907
+ }))), !visible && isAdmin() && /*#__PURE__*/React.createElement(ConfigButton, {
25612
25908
  type: 'primary',
25613
25909
  onClick: function onClick() {
25614
25910
  return setVisible(true);
@@ -25681,26 +25977,28 @@ var BsCascader = function BsCascader(_ref) {
25681
25977
  useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
25682
25978
  var resData, data;
25683
25979
  return _regeneratorRuntime().wrap(function _callee$(_context) {
25684
- while (1) switch (_context.prev = _context.next) {
25685
- case 0:
25686
- if (!(!source && initRequestSource)) {
25687
- _context.next = 6;
25688
- break;
25689
- }
25690
- _context.next = 3;
25691
- return initRequestSource();
25692
- case 3:
25693
- resData = _context.sent;
25694
- data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
25695
- return _objectSpread2(_objectSpread2({}, item), {}, {
25696
- label: item.text,
25697
- isLeaf: false
25698
- });
25699
- })) || [];
25700
- setHandSource(data);
25701
- case 6:
25702
- case "end":
25703
- return _context.stop();
25980
+ while (1) {
25981
+ switch (_context.prev = _context.next) {
25982
+ case 0:
25983
+ if (!(!source && initRequestSource)) {
25984
+ _context.next = 6;
25985
+ break;
25986
+ }
25987
+ _context.next = 3;
25988
+ return initRequestSource();
25989
+ case 3:
25990
+ resData = _context.sent;
25991
+ data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
25992
+ return _objectSpread2(_objectSpread2({}, item), {}, {
25993
+ label: item.text,
25994
+ isLeaf: false
25995
+ });
25996
+ })) || [];
25997
+ setHandSource(data);
25998
+ case 6:
25999
+ case "end":
26000
+ return _context.stop();
26001
+ }
25704
26002
  }
25705
26003
  }, _callee);
25706
26004
  })), []);
@@ -25832,18 +26130,20 @@ function getRegularThresholdRange(_x) {
25832
26130
  function _getRegularThresholdRange() {
25833
26131
  _getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
25834
26132
  return _regeneratorRuntime().wrap(function _callee$(_context) {
25835
- while (1) switch (_context.prev = _context.next) {
25836
- case 0:
25837
- return _context.abrupt("return", axios({
25838
- url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
25839
- method: 'POST',
25840
- data: _objectSpread2(_objectSpread2({}, params), {}, {
25841
- queryIdentify: undefined
25842
- })
25843
- }));
25844
- case 1:
25845
- case "end":
25846
- return _context.stop();
26133
+ while (1) {
26134
+ switch (_context.prev = _context.next) {
26135
+ case 0:
26136
+ return _context.abrupt("return", axios({
26137
+ url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
26138
+ method: 'POST',
26139
+ data: _objectSpread2(_objectSpread2({}, params), {}, {
26140
+ queryIdentify: undefined
26141
+ })
26142
+ }));
26143
+ case 1:
26144
+ case "end":
26145
+ return _context.stop();
26146
+ }
25847
26147
  }
25848
26148
  }, _callee);
25849
26149
  }));
@@ -25982,136 +26282,137 @@ var RuleField = /*#__PURE__*/function (_Component) {
25982
26282
  _this.getRegularThresholdRange(queryIdentify, propertyCode, queryIdentifyType);
25983
26283
  });
25984
26284
  };
25985
- //规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
25986
26285
  _this.getRegularThresholdRange = /*#__PURE__*/function () {
25987
26286
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
25988
26287
  var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
25989
26288
  return _regeneratorRuntime().wrap(function _callee$(_context) {
25990
- while (1) switch (_context.prev = _context.next) {
25991
- case 0:
25992
- if (queryIdentify) {
25993
- _context.next = 2;
25994
- break;
25995
- }
25996
- return _context.abrupt("return");
25997
- case 2:
25998
- thresholdQuery = _this.state.thresholdQuery;
25999
- extraRequestUrl = '';
26000
- querParams = setParams(propertyCode, thresholdQuery);
26001
- if (!queryIdentityInfo.find(function (item) {
26002
- return item.identity == propertyCode;
26003
- })) {
26004
- _context.next = 10;
26005
- break;
26006
- }
26007
- //判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
26008
- needQueryList = queryIdentityInfo.find(function (item) {
26009
- return item.identity == propertyCode;
26010
- }).queryParam.filter(function (item) {
26011
- return item.isRequired;
26012
- }).map(function (item) {
26013
- return item.queryKey;
26014
- });
26015
- if (!needQueryList.some(function (item) {
26016
- return !querParams[item] || !querParams[item].length;
26017
- })) {
26018
- _context.next = 9;
26019
- break;
26020
- }
26021
- return _context.abrupt("return");
26022
- case 9:
26023
- extraRequestUrl = queryIdentityInfo.find(function (item) {
26024
- return item.identity == propertyCode;
26025
- }).requestUrl || '';
26026
- case 10:
26027
- if (queryIdentifyType === 'dictCodeIdentify') {
26028
- extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
26029
- querParams = {
26030
- dictCode: queryIdentify
26031
- };
26032
- } else if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26033
- extraRequestUrl = "dictDynamicItem/getDynamicData/".concat(queryIdentify); // 字典接口
26034
- // querParams = { dictCode: queryIdentify }
26035
- }
26036
- if (!extraRequestUrl) {
26037
- _context.next = 16;
26038
- break;
26039
- }
26040
- if (queryIdentify == 'maintain_area_code') {
26041
- extraRequestUrl = "/basic/".concat(extraRequestUrl).concat(querParams.memberCardCode, "?").concat(stringify(querParams));
26042
- } else if (queryIdentifyType == 'dictCodeIdentify') {
26043
- extraRequestUrl = "/basic/".concat(extraRequestUrl, "?").concat(stringify(querParams));
26044
- } else if (queryIdentifyType == 'dynamicDictCodeIdentify') {
26045
- extraRequestUrl = "/basic/".concat(extraRequestUrl);
26046
- }
26047
- request$1({
26048
- url: extraRequestUrl,
26049
- method: 'get',
26050
- converter: function converter(res) {
26051
- if (handleError(res)) {
26052
- var _handleData = (res === null || res === void 0 ? void 0 : res.data) || [];
26053
- if (queryIdentifyType === 'dictCodeIdentify') {
26054
- var _handleData2;
26055
- _handleData = ((_handleData2 = _handleData) === null || _handleData2 === void 0 ? void 0 : _handleData2.length) ? _handleData.map(function (i) {
26056
- return {
26057
- code: i.dictItemCode,
26058
- name: i.dictItemName
26059
- };
26060
- }) : [];
26061
- }
26062
- if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26063
- var _handleData3;
26064
- _handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
26065
- return {
26066
- code: i.code.toString(),
26067
- name: i.name
26068
- };
26069
- }) : [];
26289
+ while (1) {
26290
+ switch (_context.prev = _context.next) {
26291
+ case 0:
26292
+ if (queryIdentify) {
26293
+ _context.next = 2;
26294
+ break;
26295
+ }
26296
+ return _context.abrupt("return");
26297
+ case 2:
26298
+ thresholdQuery = _this.state.thresholdQuery;
26299
+ extraRequestUrl = '';
26300
+ querParams = setParams(propertyCode, thresholdQuery);
26301
+ if (!queryIdentityInfo.find(function (item) {
26302
+ return item.identity == propertyCode;
26303
+ })) {
26304
+ _context.next = 10;
26305
+ break;
26306
+ }
26307
+ //判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
26308
+ needQueryList = queryIdentityInfo.find(function (item) {
26309
+ return item.identity == propertyCode;
26310
+ }).queryParam.filter(function (item) {
26311
+ return item.isRequired;
26312
+ }).map(function (item) {
26313
+ return item.queryKey;
26314
+ });
26315
+ if (!needQueryList.some(function (item) {
26316
+ return !querParams[item] || !querParams[item].length;
26317
+ })) {
26318
+ _context.next = 9;
26319
+ break;
26320
+ }
26321
+ return _context.abrupt("return");
26322
+ case 9:
26323
+ extraRequestUrl = queryIdentityInfo.find(function (item) {
26324
+ return item.identity == propertyCode;
26325
+ }).requestUrl || '';
26326
+ case 10:
26327
+ if (queryIdentifyType === 'dictCodeIdentify') {
26328
+ extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
26329
+ querParams = {
26330
+ dictCode: queryIdentify
26331
+ };
26332
+ } else if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26333
+ extraRequestUrl = "dictDynamicItem/getDynamicData/".concat(queryIdentify); // 字典接口
26334
+ // querParams = { dictCode: queryIdentify }
26335
+ }
26336
+ if (!extraRequestUrl) {
26337
+ _context.next = 16;
26338
+ break;
26339
+ }
26340
+ if (queryIdentify == 'maintain_area_code') {
26341
+ extraRequestUrl = "/basic/".concat(extraRequestUrl).concat(querParams.memberCardCode, "?").concat(stringify(querParams));
26342
+ } else if (queryIdentifyType == 'dictCodeIdentify') {
26343
+ extraRequestUrl = "/basic/".concat(extraRequestUrl, "?").concat(stringify(querParams));
26344
+ } else if (queryIdentifyType == 'dynamicDictCodeIdentify') {
26345
+ extraRequestUrl = "/basic/".concat(extraRequestUrl);
26346
+ }
26347
+ request$1({
26348
+ url: extraRequestUrl,
26349
+ method: 'get',
26350
+ converter: function converter(res) {
26351
+ if (handleError(res)) {
26352
+ var _handleData = (res === null || res === void 0 ? void 0 : res.data) || [];
26353
+ if (queryIdentifyType === 'dictCodeIdentify') {
26354
+ var _handleData2;
26355
+ _handleData = ((_handleData2 = _handleData) === null || _handleData2 === void 0 ? void 0 : _handleData2.length) ? _handleData.map(function (i) {
26356
+ return {
26357
+ code: i.dictItemCode,
26358
+ name: i.dictItemName
26359
+ };
26360
+ }) : [];
26361
+ }
26362
+ if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26363
+ var _handleData3;
26364
+ _handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
26365
+ return {
26366
+ code: i.code.toString(),
26367
+ name: i.name
26368
+ };
26369
+ }) : [];
26370
+ }
26371
+ _this.setState({
26372
+ thresholdList: _handleData
26373
+ });
26070
26374
  }
26071
- _this.setState({
26072
- thresholdList: _handleData
26073
- });
26375
+ return handleData;
26074
26376
  }
26075
- return handleData;
26076
- }
26077
- });
26078
- _context.next = 29;
26079
- break;
26080
- case 16:
26081
- if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
26082
- _context.next = 20;
26377
+ });
26378
+ _context.next = 29;
26083
26379
  break;
26084
- }
26085
- _this.setState({
26086
- thresholdList: queryIdentify
26087
- });
26088
- _context.next = 29;
26089
- break;
26090
- case 20:
26091
- if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
26092
- _context.next = 24;
26380
+ case 16:
26381
+ if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
26382
+ _context.next = 20;
26383
+ break;
26384
+ }
26385
+ _this.setState({
26386
+ thresholdList: queryIdentify
26387
+ });
26388
+ _context.next = 29;
26093
26389
  break;
26094
- }
26095
- // TODO待处理
26096
- _this.setState({
26097
- thresholdList: []
26098
- });
26099
- _context.next = 29;
26100
- break;
26101
- case 24:
26102
- querParams.queryIdentify = queryIdentify;
26103
- _context.next = 27;
26104
- return getRegularThresholdRange(querParams);
26105
- case 27:
26106
- res = _context.sent;
26107
- if (handleError(res)) {
26390
+ case 20:
26391
+ if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
26392
+ _context.next = 24;
26393
+ break;
26394
+ }
26395
+ // TODO待处理
26108
26396
  _this.setState({
26109
- thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
26397
+ thresholdList: []
26110
26398
  });
26111
- }
26112
- case 29:
26113
- case "end":
26114
- return _context.stop();
26399
+ _context.next = 29;
26400
+ break;
26401
+ case 24:
26402
+ querParams.queryIdentify = queryIdentify;
26403
+ _context.next = 27;
26404
+ return getRegularThresholdRange(querParams);
26405
+ case 27:
26406
+ res = _context.sent;
26407
+ if (handleError(res)) {
26408
+ _this.setState({
26409
+ thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
26410
+ });
26411
+ }
26412
+ case 29:
26413
+ case "end":
26414
+ return _context.stop();
26415
+ }
26115
26416
  }
26116
26417
  }, _callee);
26117
26418
  }));
@@ -26870,30 +27171,32 @@ var RuleField = /*#__PURE__*/function (_Component) {
26870
27171
  notChangeOnSelect: true,
26871
27172
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
26872
27173
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
26873
- while (1) switch (_context2.prev = _context2.next) {
26874
- case 0:
26875
- _context2.next = 2;
26876
- return request$1({
26877
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
26878
- method: 'get',
26879
- converter: function converter(_ref3) {
26880
- var data = _ref3.data;
26881
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
26882
- return {
26883
- text: item.name,
26884
- value: item.id,
26885
- level: item.level,
26886
- id: item.id
26887
- };
26888
- }) : [];
26889
- return handleData;
26890
- }
26891
- });
26892
- case 2:
26893
- return _context2.abrupt("return", _context2.sent);
26894
- case 3:
26895
- case "end":
26896
- return _context2.stop();
27174
+ while (1) {
27175
+ switch (_context2.prev = _context2.next) {
27176
+ case 0:
27177
+ _context2.next = 2;
27178
+ return request$1({
27179
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27180
+ method: 'get',
27181
+ converter: function converter(_ref3) {
27182
+ var data = _ref3.data;
27183
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27184
+ return {
27185
+ text: item.name,
27186
+ value: item.id,
27187
+ level: item.level,
27188
+ id: item.id
27189
+ };
27190
+ }) : [];
27191
+ return handleData;
27192
+ }
27193
+ });
27194
+ case 2:
27195
+ return _context2.abrupt("return", _context2.sent);
27196
+ case 3:
27197
+ case "end":
27198
+ return _context2.stop();
27199
+ }
26897
27200
  }
26898
27201
  }, _callee2);
26899
27202
  })),
@@ -26919,30 +27222,32 @@ var RuleField = /*#__PURE__*/function (_Component) {
26919
27222
  notChangeOnSelect: true,
26920
27223
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
26921
27224
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
26922
- while (1) switch (_context3.prev = _context3.next) {
26923
- case 0:
26924
- _context3.next = 2;
26925
- return request$1({
26926
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
26927
- method: 'get',
26928
- converter: function converter(_ref5) {
26929
- var data = _ref5.data;
26930
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
26931
- return {
26932
- text: item.name,
26933
- value: item.id,
26934
- level: item.level,
26935
- id: item.id
26936
- };
26937
- }) : [];
26938
- return handleData;
26939
- }
26940
- });
26941
- case 2:
26942
- return _context3.abrupt("return", _context3.sent);
26943
- case 3:
26944
- case "end":
26945
- return _context3.stop();
27225
+ while (1) {
27226
+ switch (_context3.prev = _context3.next) {
27227
+ case 0:
27228
+ _context3.next = 2;
27229
+ return request$1({
27230
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27231
+ method: 'get',
27232
+ converter: function converter(_ref5) {
27233
+ var data = _ref5.data;
27234
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27235
+ return {
27236
+ text: item.name,
27237
+ value: item.id,
27238
+ level: item.level,
27239
+ id: item.id
27240
+ };
27241
+ }) : [];
27242
+ return handleData;
27243
+ }
27244
+ });
27245
+ case 2:
27246
+ return _context3.abrupt("return", _context3.sent);
27247
+ case 3:
27248
+ case "end":
27249
+ return _context3.stop();
27250
+ }
26946
27251
  }
26947
27252
  }, _callee3);
26948
27253
  })),
@@ -26970,30 +27275,32 @@ var RuleField = /*#__PURE__*/function (_Component) {
26970
27275
  notChangeOnSelect: true,
26971
27276
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
26972
27277
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
26973
- while (1) switch (_context4.prev = _context4.next) {
26974
- case 0:
26975
- _context4.next = 2;
26976
- return request$1({
26977
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
26978
- method: 'get',
26979
- converter: function converter(_ref7) {
26980
- var data = _ref7.data;
26981
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
26982
- return {
26983
- text: item.name,
26984
- value: item.id,
26985
- level: item.level,
26986
- id: item.id
26987
- };
26988
- }) : [];
26989
- return handleData;
26990
- }
26991
- });
26992
- case 2:
26993
- return _context4.abrupt("return", _context4.sent);
26994
- case 3:
26995
- case "end":
26996
- return _context4.stop();
27278
+ while (1) {
27279
+ switch (_context4.prev = _context4.next) {
27280
+ case 0:
27281
+ _context4.next = 2;
27282
+ return request$1({
27283
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27284
+ method: 'get',
27285
+ converter: function converter(_ref7) {
27286
+ var data = _ref7.data;
27287
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27288
+ return {
27289
+ text: item.name,
27290
+ value: item.id,
27291
+ level: item.level,
27292
+ id: item.id
27293
+ };
27294
+ }) : [];
27295
+ return handleData;
27296
+ }
27297
+ });
27298
+ case 2:
27299
+ return _context4.abrupt("return", _context4.sent);
27300
+ case 3:
27301
+ case "end":
27302
+ return _context4.stop();
27303
+ }
26997
27304
  }
26998
27305
  }, _callee4);
26999
27306
  })),
@@ -28060,6 +28367,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
28060
28367
  });
28061
28368
  }
28062
28369
  }
28370
+
28371
+ //规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
28063
28372
  }, {
28064
28373
  key: "render",
28065
28374
  value: function render() {
@@ -28890,7 +29199,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
28890
29199
  callBack(ruleClassData);
28891
29200
  });
28892
29201
  };
28893
- // 树结构 转化成 平行树 (递归函数)
28894
29202
  _this.coverToParallel = function (treeData, result) {
28895
29203
  treeData.forEach(function (el) {
28896
29204
  result.push(el);
@@ -29144,7 +29452,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29144
29452
  callBack(ruleClassData);
29145
29453
  });
29146
29454
  };
29147
- // 场景需要返回值2022.11.15
29148
29455
  _this.renderResItem = function (itemDetail, parentDetail, ruleReturnConfig, disabled, boxStyle) {
29149
29456
  var _ruleReturnConfig$rig;
29150
29457
  var isShowResponse = itemDetail.response['enable'];
@@ -29442,30 +29749,32 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29442
29749
  notChangeOnSelect: true,
29443
29750
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
29444
29751
  return _regeneratorRuntime().wrap(function _callee$(_context) {
29445
- while (1) switch (_context.prev = _context.next) {
29446
- case 0:
29447
- _context.next = 2;
29448
- return request$1({
29449
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
29450
- method: 'get',
29451
- converter: function converter(_ref2) {
29452
- var data = _ref2.data;
29453
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
29454
- return {
29455
- text: item.name,
29456
- value: item.id,
29457
- level: item.level,
29458
- id: item.id
29459
- };
29460
- }) : [];
29461
- return handleData;
29462
- }
29463
- });
29464
- case 2:
29465
- return _context.abrupt("return", _context.sent);
29466
- case 3:
29467
- case "end":
29468
- return _context.stop();
29752
+ while (1) {
29753
+ switch (_context.prev = _context.next) {
29754
+ case 0:
29755
+ _context.next = 2;
29756
+ return request$1({
29757
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
29758
+ method: 'get',
29759
+ converter: function converter(_ref2) {
29760
+ var data = _ref2.data;
29761
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
29762
+ return {
29763
+ text: item.name,
29764
+ value: item.id,
29765
+ level: item.level,
29766
+ id: item.id
29767
+ };
29768
+ }) : [];
29769
+ return handleData;
29770
+ }
29771
+ });
29772
+ case 2:
29773
+ return _context.abrupt("return", _context.sent);
29774
+ case 3:
29775
+ case "end":
29776
+ return _context.stop();
29777
+ }
29469
29778
  }
29470
29779
  }, _callee);
29471
29780
  })),
@@ -29799,7 +30108,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29799
30108
  }
29800
30109
  }, "\u65B0\u589E\u8FD4\u56DE\u503C")), isHaveRuleReturnConfig && _this.renderResItem(itemDetail, parentDetail, ruleReturnConfig, disabled, RuleActionItemStyle) || null, isHaveRuleTypeData && _this.renderActionList(itemDetail, parentDetail, handleRuleTypeData, selectRuleActionData, classDataIndex, disabled, RuleActionItemStyle) || null);
29801
30110
  };
29802
- //添加同一层级条件
29803
30111
  _this.addPeerRule = function (itemDetail) {
29804
30112
  var ruleClassData = _this.state.ruleClassData;
29805
30113
  var _this$props4 = _this.props,
@@ -29820,7 +30128,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29820
30128
  callBack(ruleClassData);
29821
30129
  });
29822
30130
  };
29823
- //添加子层级条件
29824
30131
  _this.addChildRules = function (itemDetail) {
29825
30132
  var ruleClassData = _this.state.ruleClassData;
29826
30133
  var callBack = _this.props.callBack;
@@ -29896,7 +30203,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29896
30203
  callBack(ruleClassData);
29897
30204
  });
29898
30205
  };
29899
- // 新增执行顺序
29900
30206
  _this.handleSelectRuleAction = function (keys, classDataIndex, callback) {
29901
30207
  callback();
29902
30208
  var callBack = _this.props.callBack;
@@ -30047,4 +30353,4 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30047
30353
  return RuleObjectComponent;
30048
30354
  }(Component);
30049
30355
 
30050
- export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, BillEntry, BsCascader, index$6 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$2 as CheckOneUser, ColumnSettingTable, CommodityEntry, DataImport, DataValidation, index$4 as DetailPageWrapper, EllipsisTooltip, ExportIcon, GuideWrapper, index$5 as HomePageWrapper, JsonQueryTable, index$7 as MoreTreeTable, QueryMutipleInput, RuleObjectComponent as RuleComponent, SearchSelect, index$3 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect };
30356
+ export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, CommodityEntry, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, GuideWrapper, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, QueryMutipleInput, RuleObjectComponent as RuleComponent, SearchSelect, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect };