@bit-sun/business-component 2.3.0 → 2.3.1

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 +1206 -910
  14. package/dist/index.js +1212 -916
  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 +849 -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,
@@ -4517,74 +4526,76 @@ var AddSelect = function AddSelect(props) {
4517
4526
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
4518
4527
  var result;
4519
4528
  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;
4529
+ while (1) {
4530
+ switch (_context.prev = _context.next) {
4531
+ case 0:
4532
+ if (!(bType == 'skc' && tList.some(function (i) {
4533
+ return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
4534
+ }))) {
4535
+ _context.next = 3;
4536
+ break;
4537
+ }
4538
+ message$1.warning('相同skc配码不可设置相同哦');
4539
+ return _context.abrupt("return", false);
4540
+ case 3:
4541
+ if (!(bType == 'spu')) {
4542
+ _context.next = 26;
4543
+ break;
4544
+ }
4545
+ if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
4546
+ return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
4547
+ }))) {
4548
+ _context.next = 7;
4549
+ break;
4550
+ }
4551
+ message$1.warning('相同商品相同配码颜色不可设置相同哦');
4552
+ return _context.abrupt("return", false);
4553
+ case 7:
4554
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
4555
+ _context.next = 10;
4556
+ break;
4557
+ }
4558
+ message$1.warning('请先选择颜色!');
4559
+ return _context.abrupt("return", false);
4560
+ case 10:
4561
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
4562
+ return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
4563
+ }))) {
4564
+ _context.next = 13;
4565
+ break;
4566
+ }
4567
+ message$1.warning('相同商品相同颜色配码不可设置相同哦');
4568
+ return _context.abrupt("return", false);
4569
+ case 13:
4570
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
4571
+ _context.next = 26;
4572
+ break;
4573
+ }
4574
+ result = true;
4575
+ _context.prev = 15;
4576
+ _context.next = 18;
4577
+ return checkSpuMatchCode({
4578
+ skcCode: recordItem[recordKey],
4579
+ matchingCode: changeValue,
4580
+ ext1: recordItem.colorName
4581
+ });
4582
+ case 18:
4583
+ result = _context.sent;
4584
+ result = true;
4585
+ _context.next = 25;
4562
4586
  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();
4587
+ case 22:
4588
+ _context.prev = 22;
4589
+ _context.t0 = _context["catch"](15);
4590
+ result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
4591
+ case 25:
4592
+ return _context.abrupt("return", result);
4593
+ case 26:
4594
+ return _context.abrupt("return", true);
4595
+ case 27:
4596
+ case "end":
4597
+ return _context.stop();
4598
+ }
4588
4599
  }
4589
4600
  }, _callee, null, [[15, 22]]);
4590
4601
  }));
@@ -4776,27 +4787,29 @@ var AddSelect = function AddSelect(props) {
4776
4787
  var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
4777
4788
  var isConformToTheRules, newPopValue;
4778
4789
  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];
4790
+ while (1) {
4791
+ switch (_context2.prev = _context2.next) {
4792
+ case 0:
4793
+ _context2.next = 2;
4794
+ return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
4795
+ case 2:
4796
+ isConformToTheRules = _context2.sent;
4797
+ if (isConformToTheRules) {
4798
+ record[item.dataIndex] = value;
4799
+ } else {
4800
+ record[item.dataIndex] = null;
4793
4801
  }
4794
- return i;
4795
- });
4796
- setPopValue(newPopValue);
4797
- case 6:
4798
- case "end":
4799
- return _context2.stop();
4802
+ newPopValue = popvalue.map(function (i, innerIndex) {
4803
+ if (innerIndex == index) {
4804
+ i[item.dataIndex] = record[item.dataIndex];
4805
+ }
4806
+ return i;
4807
+ });
4808
+ setPopValue(newPopValue);
4809
+ case 6:
4810
+ case "end":
4811
+ return _context2.stop();
4812
+ }
4800
4813
  }
4801
4814
  }, _callee2);
4802
4815
  }));
@@ -4856,85 +4869,84 @@ var AddSelect = function AddSelect(props) {
4856
4869
  });
4857
4870
  }
4858
4871
  // 数组对象处理,对带有特殊标记的name进行处理
4859
- var _loop = function _loop() {
4872
+ for (var key in params) {
4860
4873
  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');
4874
+ (function () {
4875
+ var element = params[key];
4876
+ if (element && key.indexOf('*number*') >= 0) {
4877
+ var dataParams = key.split('*number*');
4878
+ dataParams.forEach(function (value, index) {
4879
+ params[value] = element[index];
4880
+ });
4881
+ delete params[key];
4882
+ } else if (element && key.indexOf('*address*') >= 0) {
4883
+ var _dataParams = key.split('*address*');
4884
+ _dataParams.forEach(function (value, index) {
4885
+ params[value] = element.PCDCode[index];
4886
+ });
4887
+ delete params[key];
4888
+ } else if (element && key.indexOf('*costType*') >= 0) {
4889
+ var _dataParams2 = key.split('*costType*');
4890
+ // eslint-disable-next-line prefer-destructuring
4891
+ params[_dataParams2[0]] = element[1];
4892
+ delete params[key];
4893
+ } else if (element && key.indexOf('*fullDate*') >= 0) {
4894
+ var _dataParams3 = key.split('*fullDate*');
4895
+ _dataParams3.forEach(function (value, index) {
4896
+ if (index === 0) {
4897
+ params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
4898
+ } else {
4899
+ params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
4900
+ }
4901
+ });
4902
+ delete params[key];
4903
+ } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
4904
+ var _dataParams4 = key.split('*checkBox*');
4905
+ if (element) {
4906
+ params[_dataParams4[0]] = 0;
4886
4907
  }
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');
4908
+ delete params[key];
4909
+ } else if (element && key.indexOf('*cascader*') >= 0) {
4910
+ var _dataParams5 = key.split('*cascader*');
4911
+ params[_dataParams5[0]] = element[element.length - 1];
4912
+ delete params[key];
4913
+ } else if (element && key.indexOf('*date*') >= 0) {
4914
+ var _dataParams6 = key.split('*date*');
4915
+ _dataParams6.forEach(function (value, index) {
4916
+ if (index === 0) {
4917
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
4918
+ } else {
4919
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
4920
+ }
4921
+ });
4922
+ delete params[key];
4923
+ } else if (element && key.indexOf('*') >= 0) {
4924
+ var _dataParams7 = key.split('*');
4925
+ _dataParams7.forEach(function (value, index) {
4926
+ params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
4927
+ });
4928
+ delete params[key];
4929
+ } else if (element && key.indexOf('_selectNumberRange') >= 0) {
4930
+ // key = xxxxx_selectNumberRange qp-xxxxx-gt
4931
+ var _dataParams8 = key.split('_selectNumberRange')[0];
4932
+ if (params[key][0] === 'range') {
4933
+ if (params[key][1][0]) {
4934
+ params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
4935
+ }
4936
+ if (params[key][1][1]) {
4937
+ params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
4938
+ }
4904
4939
  } 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];
4921
- }
4922
- if (params[key][1][1]) {
4923
- params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
4940
+ params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
4924
4941
  }
4925
- } else {
4926
- params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
4942
+ delete params[key];
4943
+ } else if (Array.isArray(element)) {
4944
+ params[key] = element.join(',');
4945
+ } else if (element == null || element === undefined || String(element).trim() === '') {
4946
+ delete params[key];
4927
4947
  }
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
- }
4948
+ })();
4934
4949
  }
4935
- };
4936
- for (var key in params) {
4937
- _loop();
4938
4950
  }
4939
4951
  var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
4940
4952
  pageSize: pageSize,
@@ -6389,79 +6401,81 @@ var BillEntry = function BillEntry(_ref3) {
6389
6401
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
6390
6402
  var canEntryObject, _canEntryObject$error, messageInfo;
6391
6403
  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
- }
6404
+ while (1) {
6405
+ switch (_context.prev = _context.next) {
6406
+ case 0:
6407
+ if (data === null || data === void 0 ? void 0 : data.length) {
6408
+ _context.next = 3;
6409
+ break;
6447
6410
  }
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() {
6460
- return _ref4.apply(this, arguments);
6461
- };
6462
- }();
6463
- var setShowColumnsCallback = function setShowColumnsCallback(newColumns) {
6464
- setShowColumns(_toConsumableArray(newColumns));
6411
+ message$1.warning('至少录入一条数据');
6412
+ return _context.abrupt("return");
6413
+ case 3:
6414
+ if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6415
+ return d.skuCode && d.name;
6416
+ })) {
6417
+ _context.next = 6;
6418
+ break;
6419
+ }
6420
+ message$1.warning('请选择商品!');
6421
+ return _context.abrupt("return");
6422
+ case 6:
6423
+ if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6424
+ return d.count;
6425
+ })) {
6426
+ _context.next = 9;
6427
+ break;
6428
+ }
6429
+ message$1.warning('请填写商品数量!');
6430
+ return _context.abrupt("return");
6431
+ case 9:
6432
+ _context.next = 11;
6433
+ return isSkuCanEntry(data);
6434
+ case 11:
6435
+ canEntryObject = _context.sent;
6436
+ if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
6437
+ _context.next = 16;
6438
+ break;
6439
+ }
6440
+ 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) {
6441
+ return /*#__PURE__*/React.createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
6442
+ }));
6443
+ messageInfo && message$1.warning({
6444
+ content: messageInfo,
6445
+ duration: 6
6446
+ });
6447
+ return _context.abrupt("return");
6448
+ case 16:
6449
+ setLoading(true);
6450
+ onSaveCallback(data).then(function (res) {
6451
+ {
6452
+ var _Object$keys;
6453
+ var initSuccessMessage = '保存成功';
6454
+ var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
6455
+ if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
6456
+ (rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? message$1.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
6457
+ } else {
6458
+ message$1.success(initSuccessMessage);
6459
+ }
6460
+ }
6461
+ setLoading(false);
6462
+ }).catch(function (Error) {
6463
+ message$1.error(Error);
6464
+ setLoading(false);
6465
+ });
6466
+ case 18:
6467
+ case "end":
6468
+ return _context.stop();
6469
+ }
6470
+ }
6471
+ }, _callee);
6472
+ }));
6473
+ return function handleSubmit() {
6474
+ return _ref4.apply(this, arguments);
6475
+ };
6476
+ }();
6477
+ var setShowColumnsCallback = function setShowColumnsCallback(newColumns) {
6478
+ setShowColumns(_toConsumableArray(newColumns));
6465
6479
  };
6466
6480
  var handleResize = function handleResize(arr, index, callback) {
6467
6481
  return function (_, _ref5) {
@@ -9587,7 +9601,7 @@ var CommodityEntry = function CommodityEntry(props) {
9587
9601
  * @LastEditTime: 2022-01-14 17:17:26
9588
9602
  * @LastEditors: rodchen
9589
9603
  */
9590
- var index$2 = (function (storageKeyString) {
9604
+ var index$1 = (function (storageKeyString) {
9591
9605
  var seconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
9592
9606
  var tipsCallFunction = arguments.length > 2 ? arguments[2] : undefined;
9593
9607
  if (typeof seconds !== 'number') throw new Error('seconds should be number');
@@ -9705,42 +9719,44 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
9705
9719
  var _ctx$form;
9706
9720
  var resData, coverData, data, dataList;
9707
9721
  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;
9722
+ while (1) {
9723
+ switch (_context.prev = _context.next) {
9724
+ case 0:
9725
+ resData = (res === null || res === void 0 ? void 0 : res.data) || [];
9726
+ if (!(resData.status === '0' || resData.code === '000000')) {
9727
+ _context.next = 13;
9728
+ break;
9729
+ }
9730
+ data = resData.data;
9731
+ if (!remoteSource.converter) {
9732
+ _context.next = 9;
9733
+ break;
9734
+ }
9735
+ _context.next = 6;
9736
+ return remoteSource.converter({
9737
+ data: [data]
9738
+ });
9739
+ case 6:
9740
+ coverData = _context.sent;
9741
+ _context.next = 11;
9713
9742
  break;
9714
- }
9715
- data = resData.data;
9716
- if (!remoteSource.converter) {
9717
- _context.next = 9;
9743
+ case 9:
9744
+ dataList = data && Array.isArray(data) ? data : data && [data] || [];
9745
+ coverData = dataList.length && dataList.map(function (ites) {
9746
+ return mapSearchTree(ites);
9747
+ }) || [];
9748
+ case 11:
9749
+ _context.next = 14;
9718
9750
  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();
9751
+ case 13:
9752
+ coverData = [];
9753
+ case 14:
9754
+ setTreeData(coverData);
9755
+ ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
9756
+ case 16:
9757
+ case "end":
9758
+ return _context.stop();
9759
+ }
9744
9760
  }
9745
9761
  }, _callee);
9746
9762
  }));
@@ -9941,7 +9957,7 @@ var BusinessTreeSearchSelect$1 = /*#__PURE__*/React.memo(BusinessTreeSearchSelec
9941
9957
  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
9958
  styleInject(css_248z$8);
9943
9959
 
9944
- var index$3 = (function (props) {
9960
+ var index$2 = (function (props) {
9945
9961
  var _props$formStatusMapp = props.formStatusMapping,
9946
9962
  formStatusMapping = _props$formStatusMapp === void 0 ? [] : _props$formStatusMapp;
9947
9963
  return /*#__PURE__*/React.createElement("div", {
@@ -11365,7 +11381,7 @@ var iconMap = {
11365
11381
  src: moreIcon
11366
11382
  })
11367
11383
  };
11368
- var index$4 = (function (props) {
11384
+ var index$3 = (function (props) {
11369
11385
  var _useLocation = useLocation(),
11370
11386
  pathname = _useLocation.pathname;
11371
11387
  var _useState = useState(pathname + 'id'),
@@ -11582,7 +11598,7 @@ var css_248z$d = ".home_page_head {\n height: 54px;\n display: flex;\n justif
11582
11598
  styleInject(css_248z$d);
11583
11599
 
11584
11600
  var _excluded$c = ["children"];
11585
- var index$5 = (function (props) {
11601
+ var index$4 = (function (props) {
11586
11602
  var _useLocation = useLocation(),
11587
11603
  pathname = _useLocation.pathname;
11588
11604
  var _useState = useState(pathname + 'id'),
@@ -13858,19 +13874,21 @@ function _outLogin() {
13858
13874
  _outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
13859
13875
  var res;
13860
13876
  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();
13877
+ while (1) {
13878
+ switch (_context.prev = _context.next) {
13879
+ case 0:
13880
+ _context.next = 2;
13881
+ return axios({
13882
+ url: '/user/web/loginOut',
13883
+ method: 'GET'
13884
+ });
13885
+ case 2:
13886
+ res = _context.sent;
13887
+ return _context.abrupt("return", res);
13888
+ case 4:
13889
+ case "end":
13890
+ return _context.stop();
13891
+ }
13874
13892
  }
13875
13893
  }, _callee);
13876
13894
  }));
@@ -13999,29 +14017,31 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
13999
14017
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
14000
14018
  var sessionId;
14001
14019
  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'
14020
+ while (1) {
14021
+ switch (_context.prev = _context.next) {
14022
+ case 0:
14023
+ _context.next = 2;
14024
+ return getSessionId();
14025
+ case 2:
14026
+ sessionId = _context.sent;
14027
+ _context.next = 5;
14028
+ return outLogin({
14029
+ sessionId: sessionId
14018
14030
  });
14019
- } else {
14020
- setLoginOutPath();
14021
- }
14022
- case 6:
14023
- case "end":
14024
- return _context.stop();
14031
+ case 5:
14032
+ // @ts-ignore
14033
+ if (BUILD_TYPE) {
14034
+ message$1.success('退出登录成功');
14035
+ history.replace({
14036
+ pathname: '/user/login'
14037
+ });
14038
+ } else {
14039
+ setLoginOutPath();
14040
+ }
14041
+ case 6:
14042
+ case "end":
14043
+ return _context.stop();
14044
+ }
14025
14045
  }
14026
14046
  }, _callee);
14027
14047
  }));
@@ -15849,7 +15869,6 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
15849
15869
  showSubMenu: isShow
15850
15870
  });
15851
15871
  }, 500);
15852
- //设置tabs标签左右滚动
15853
15872
  _this.setTabNavTransLate = function (num) {
15854
15873
  var _document$getElementB, _document$getElementB2, _document$getElementB3, _document$getElementB4, _document$defaultView;
15855
15874
  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 +16549,14 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
16530
16549
  request: function () {
16531
16550
  var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
16532
16551
  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();
16552
+ while (1) {
16553
+ switch (_context.prev = _context.next) {
16554
+ case 0:
16555
+ return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
16556
+ case 1:
16557
+ case "end":
16558
+ return _context.stop();
16559
+ }
16539
16560
  }
16540
16561
  }, _callee);
16541
16562
  }));
@@ -16673,7 +16694,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
16673
16694
  }]);
16674
16695
  return WrapperComponent;
16675
16696
  }(React.Component);
16676
- var index$6 = (function (props) {
16697
+ var index$5 = (function (props) {
16677
16698
  var _useModel = useModel('@@initialState'),
16678
16699
  _useModel$initialStat = _useModel.initialState,
16679
16700
  initialState = _useModel$initialStat === void 0 ? {} : _useModel$initialStat;
@@ -16914,7 +16935,7 @@ var FixedScrollBar = function FixedScrollBar(_ref, ref) {
16914
16935
  };
16915
16936
  var FixedScrollBar$1 = /*#__PURE__*/React.forwardRef(FixedScrollBar);
16916
16937
 
16917
- var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
16938
+ var index$6 = /*#__PURE__*/forwardRef(function (props, ref) {
16918
16939
  var _useState = useState(false),
16919
16940
  _useState2 = _slicedToArray(_useState, 2),
16920
16941
  show = _useState2[0],
@@ -24207,26 +24228,28 @@ var valueType = {
24207
24228
  var getDynamicDict = /*#__PURE__*/function () {
24208
24229
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
24209
24230
  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();
24231
+ while (1) {
24232
+ switch (_context.prev = _context.next) {
24233
+ case 0:
24234
+ _context.next = 2;
24235
+ return request$1({
24236
+ url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
24237
+ converter: function converter(_ref2) {
24238
+ var data = _ref2.data;
24239
+ return data === null || data === void 0 ? void 0 : data.map(function (d) {
24240
+ return {
24241
+ text: d.name,
24242
+ value: d.code || d.brandCode
24243
+ };
24244
+ });
24245
+ }
24246
+ });
24247
+ case 2:
24248
+ return _context.abrupt("return", _context.sent);
24249
+ case 3:
24250
+ case "end":
24251
+ return _context.stop();
24252
+ }
24230
24253
  }
24231
24254
  }, _callee);
24232
24255
  }));
@@ -24276,53 +24299,55 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
24276
24299
  useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
24277
24300
  var _ref$current, source;
24278
24301
  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
- };
24302
+ while (1) {
24303
+ switch (_context.prev = _context.next) {
24304
+ case 0:
24305
+ _context.next = 2;
24306
+ return setIsShowAndType(function (prev) {
24307
+ if (record.inputType === 20 || record.inputType === 30) {
24308
+ return {
24309
+ isShow: true,
24310
+ singleOrMultiple: record.inputType,
24311
+ type: record.choiceType
24312
+ };
24313
+ }
24314
+ return prev;
24315
+ });
24316
+ case 2:
24317
+ if (!record.dictionaryCode) {
24318
+ _context.next = 17;
24319
+ break;
24289
24320
  }
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;
24321
+ if (!(record.choiceType == 20)) {
24322
+ _context.next = 7;
24323
+ break;
24324
+ }
24325
+ _context.t0 = getDictionarySource(record.dictionaryCode);
24326
+ _context.next = 15;
24299
24327
  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;
24328
+ case 7:
24329
+ if (!(record.choiceType == 30)) {
24330
+ _context.next = 13;
24331
+ break;
24332
+ }
24333
+ _context.next = 10;
24334
+ return getDynamicDict(record.dictionaryCode);
24335
+ case 10:
24336
+ _context.t1 = _context.sent;
24337
+ _context.next = 14;
24307
24338
  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();
24339
+ case 13:
24340
+ _context.t1 = [];
24341
+ case 14:
24342
+ _context.t0 = _context.t1;
24343
+ case 15:
24344
+ source = _context.t0;
24345
+ // @ts-ignore
24346
+ ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
24347
+ case 17:
24348
+ case "end":
24349
+ return _context.stop();
24350
+ }
24326
24351
  }
24327
24352
  }, _callee);
24328
24353
  })));
@@ -24390,28 +24415,30 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
24390
24415
  var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
24391
24416
  var form, values, name, relates, source;
24392
24417
  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]) {
24418
+ while (1) {
24419
+ switch (_context2.prev = _context2.next) {
24420
+ case 0:
24421
+ form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
24422
+ if (values[0]) {
24423
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
24424
+ form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
24425
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
24426
+ }
24427
+ if (!values[1]) {
24428
+ _context2.next = 9;
24429
+ break;
24430
+ }
24431
+ _context2.next = 5;
24432
+ return getDynamicDict(record.dictionaryCode || values[1]);
24433
+ case 5:
24434
+ source = _context2.sent;
24397
24435
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
24398
24436
  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();
24437
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
24438
+ case 9:
24439
+ case "end":
24440
+ return _context2.stop();
24441
+ }
24415
24442
  }
24416
24443
  }, _callee2);
24417
24444
  }));
@@ -24871,41 +24898,43 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
24871
24898
  var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
24872
24899
  var values, name, form, source;
24873
24900
  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
- });
24901
+ while (1) {
24902
+ switch (_context3.prev = _context3.next) {
24903
+ case 0:
24904
+ values = _ref10.values, name = _ref10.name, form = _ref10.form;
24905
+ if (values[1] === 40) {
24906
+ form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
24907
+ form.setFieldVisible(name, false);
24896
24908
  }
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();
24909
+ if (!(values[0] === 30)) {
24910
+ _context3.next = 10;
24911
+ break;
24912
+ }
24913
+ _context3.next = 5;
24914
+ return request$1({
24915
+ url: '/basic/dictDynamicItem/queryList',
24916
+ converter: function converter(_ref11) {
24917
+ var data = _ref11.data;
24918
+ return data === null || data === void 0 ? void 0 : data.map(function (d) {
24919
+ return {
24920
+ text: d.dictCode,
24921
+ value: d.dictCode
24922
+ };
24923
+ });
24924
+ }
24925
+ });
24926
+ case 5:
24927
+ source = _context3.sent;
24928
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
24929
+ form.setFieldVisible(name, true);
24930
+ _context3.next = 11;
24931
+ break;
24932
+ case 10:
24933
+ form.setFieldVisible(name, false);
24934
+ case 11:
24935
+ case "end":
24936
+ return _context3.stop();
24937
+ }
24909
24938
  }
24910
24939
  }, _callee3);
24911
24940
  }));
@@ -25094,64 +25123,66 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
25094
25123
  var _ref$current4, _res$editableStatus;
25095
25124
  var res, _res$defaultValue;
25096
25125
  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(',');
25126
+ while (1) {
25127
+ switch (_context4.prev = _context4.next) {
25128
+ case 0:
25129
+ _context4.next = 2;
25130
+ return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
25131
+ case 2:
25132
+ res = _context4.sent;
25133
+ res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
25134
+ res.fieldGroup = record.fieldGroup;
25135
+ res.businessType = record.businessType;
25136
+ res.info = {
25137
+ enumeration: res.enumeration,
25138
+ dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
25139
+ formula: res.formula,
25140
+ scale: res.scale,
25141
+ variable: res.variable
25142
+ };
25143
+ res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
25144
+ res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
25145
+ res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
25146
+ if (res.inputType === 40) {
25147
+ res.valueType = 22;
25123
25148
  }
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();
25149
+ // 把数组处理成文本
25150
+ if (res.inputType === 30) {
25151
+ if (res.defaultValue) {
25152
+ res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
25153
+ }
25139
25154
  }
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();
25155
+ res.fieldMapping = res.fieldMapping || '';
25156
+ delete res.formula;
25157
+ delete res.showValue;
25158
+ if (!(mode === 'create')) {
25159
+ _context4.next = 18;
25160
+ break;
25150
25161
  }
25151
- });
25152
- case 19:
25153
- case "end":
25154
- return _context4.stop();
25162
+ request$1({
25163
+ url: "/basic/flow/businessField",
25164
+ method: 'POST',
25165
+ params: res,
25166
+ successMessage: '创建成功!',
25167
+ converter: function converter() {
25168
+ onParentOk();
25169
+ }
25170
+ });
25171
+ return _context4.abrupt("return");
25172
+ case 18:
25173
+ request$1({
25174
+ url: "/basic/flow/businessField/".concat(record.id),
25175
+ method: 'PATCH',
25176
+ params: res,
25177
+ successMessage: '修改成功!',
25178
+ converter: function converter() {
25179
+ onParentOk();
25180
+ }
25181
+ });
25182
+ case 19:
25183
+ case "end":
25184
+ return _context4.stop();
25185
+ }
25155
25186
  }
25156
25187
  }, _callee4);
25157
25188
  }));
@@ -25173,7 +25204,9 @@ var FieldsSettingsTable = (function (props) {
25173
25204
  _props$codeProps = props.codeProps,
25174
25205
  codeProps = _props$codeProps === void 0 ? '' : _props$codeProps,
25175
25206
  moduleType = props.moduleType,
25176
- moduleRelationId = props.moduleRelationId;
25207
+ moduleRelationId = props.moduleRelationId,
25208
+ _props$tableFlag = props.tableFlag,
25209
+ tableFlag = _props$tableFlag === void 0 ? false : _props$tableFlag;
25177
25210
  var ref = useRef(null);
25178
25211
  var _useState = useState({
25179
25212
  visible: false,
@@ -25262,6 +25295,9 @@ var FieldsSettingsTable = (function (props) {
25262
25295
  render: function render(_ref2) {
25263
25296
  var text = _ref2.text,
25264
25297
  record = _ref2.record;
25298
+ if (tableFlag) {
25299
+ return /*#__PURE__*/React.createElement("div", null, " \u5217\u8868\uFF1A", "{\"key\": \"extensionFields,".concat(record.code, "\",\"dataIndex\": \"extensionFields,").concat(record.code, "\",\"title\": \"").concat(record.name, "\"},"));
25300
+ }
25265
25301
  if (!codeProps.columns) {
25266
25302
  return /*#__PURE__*/React.createElement("div", null, "\u8868\u5355\uFF1A", "{\"name\": \"extensionFields,".concat(record.code, "\",\"label\": \"").concat(record.name, "\"},"));
25267
25303
  }
@@ -25402,6 +25438,13 @@ function convertFileds(fields, falltValue, faltFieldRange, containerName) {
25402
25438
  var _field$container6;
25403
25439
  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
25440
  if (targetValue) {
25441
+ if (item.dependency) {
25442
+ targetValue.dependency = {
25443
+ visible: _objectSpread2(_objectSpread2({}, item.dependency.visible), {}, {
25444
+ type: new Function('axios', 'ctx', item.dependency.visible.type).bind(null, axios)
25445
+ })
25446
+ };
25447
+ }
25405
25448
  filedsValue.push(targetValue);
25406
25449
  }
25407
25450
  });
@@ -25410,6 +25453,14 @@ function convertFileds(fields, falltValue, faltFieldRange, containerName) {
25410
25453
  if (returnField) {
25411
25454
  var _returnField$name;
25412
25455
  returnField.label = field === null || field === void 0 ? void 0 : field.label;
25456
+ if (field === null || field === void 0 ? void 0 : field.disabled) {
25457
+ // 字段设置只读属性
25458
+ returnField.field.props.disabled = true;
25459
+ }
25460
+ if (field === null || field === void 0 ? void 0 : field.invisible) {
25461
+ // 字段设置不可见属性
25462
+ returnField.initialVisible = false;
25463
+ }
25413
25464
  if (Array.isArray(returnField.name) && ((_returnField$name = returnField.name) === null || _returnField$name === void 0 ? void 0 : _returnField$name.includes("extensionFields"))) {
25414
25465
  returnField.notShowLabel = true;
25415
25466
  }
@@ -25439,10 +25490,39 @@ function faltCustomerFieldRange(fileds) {
25439
25490
  });
25440
25491
  return columnsValue;
25441
25492
  }
25493
+ //form存在新加container属性分组得情况 组合操作
25494
+ function combineContainer(originFields, currentFields) {
25495
+ var newCurrentFields = _toConsumableArray(originFields);
25496
+ currentFields.map(function (item) {
25497
+ if (!originFields.find(function (i) {
25498
+ var _i$container, _i$container$props, _item$container;
25499
+ 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);
25500
+ })) {
25501
+ var _item$container2, _item$container3;
25502
+ newCurrentFields = [].concat(_toConsumableArray(newCurrentFields), [{
25503
+ container: {
25504
+ type: 'card',
25505
+ props: {
25506
+ title: item === null || item === void 0 ? void 0 : (_item$container2 = item.container) === null || _item$container2 === void 0 ? void 0 : _item$container2.title,
25507
+ level: 1,
25508
+ id: Math.random(),
25509
+ isWhiteCard: true,
25510
+ bordered: false,
25511
+ name: item === null || item === void 0 ? void 0 : (_item$container3 = item.container) === null || _item$container3 === void 0 ? void 0 : _item$container3.name
25512
+ }
25513
+ },
25514
+ fields: (item === null || item === void 0 ? void 0 : item.fields) || []
25515
+ }]);
25516
+ }
25517
+ });
25518
+ return newCurrentFields;
25519
+ }
25442
25520
  function hanleCallbackValue(codeProps, value, customerFields) {
25521
+ var cacheColumns = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
25443
25522
  var faltFieldRange = faltCustomerFieldRange(customerFields);
25523
+ // const falltValue = flatFileds({fields: codeProps.fields})
25444
25524
  var falltValue = flatFileds({
25445
- fields: codeProps.fields
25525
+ fields: combineContainer(codeProps.fields, value === null || value === void 0 ? void 0 : value.fields)
25446
25526
  });
25447
25527
  var newCodeProps = _objectSpread2({}, codeProps);
25448
25528
  newCodeProps.fields = convertFileds({
@@ -25452,7 +25532,10 @@ function hanleCallbackValue(codeProps, value, customerFields) {
25452
25532
  var faltColumnsValue = faltColumns(codeProps.columns);
25453
25533
  newCodeProps.columns = value.columns.map(function (item) {
25454
25534
  if (item.isStaticCode) {
25455
- return faltColumnsValue[item.key];
25535
+ var cacheFieldProperty = cacheColumns.find(function (k) {
25536
+ return (k.key || k.dataIndex) == (item.key || item.dataIndex);
25537
+ });
25538
+ return _objectSpread2(_objectSpread2({}, faltColumnsValue[item.key]), cacheFieldProperty);
25456
25539
  } else {
25457
25540
  //自定义字段-列字段
25458
25541
  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 +25543,26 @@ function hanleCallbackValue(codeProps, value, customerFields) {
25460
25543
  render: function render(_ref) {
25461
25544
  var record = _ref.record;
25462
25545
  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] || '';
25546
+ var _record$extensionFiel = record.extensionFields,
25547
+ extensionFields = _record$extensionFiel === void 0 ? {} : _record$extensionFiel;
25548
+ var fieldName1 = item === null || item === void 0 ? void 0 : item.key.split(',')[1]; //兼容没有fieldName的情况
25549
+ var fieldName2 = "".concat(fieldName1, "Name");
25550
+ if (customerFields.length) {
25551
+ var targetField = customerFields.find(function (k) {
25552
+ return k.name.includes(fieldName1);
25553
+ });
25554
+ if (targetField) {
25555
+ var _targetField$initialS = targetField.initialSource,
25556
+ initialSource = _targetField$initialS === void 0 ? [] : _targetField$initialS;
25557
+ if (initialSource.length) {
25558
+ var _initialSource$find;
25559
+ return ((_initialSource$find = initialSource.find(function (d) {
25560
+ return d.value == extensionFields[fieldName1];
25561
+ })) === null || _initialSource$find === void 0 ? void 0 : _initialSource$find.text) || extensionFields[fieldName1];
25562
+ }
25563
+ }
25564
+ }
25565
+ return extensionFields[fieldName2] || extensionFields[fieldName1] || '';
25467
25566
  } catch (e) {
25468
25567
  console.log('e', e);
25469
25568
  }
@@ -25496,7 +25595,10 @@ var JsonQueryTable = /*#__PURE__*/React.memo(function (props) {
25496
25595
  codeProps = props.codeProps,
25497
25596
  customerFields = props.customerFields,
25498
25597
  initialSetting = props.initialSetting,
25499
- pageType = props.pageType;
25598
+ pageType = props.pageType,
25599
+ _props$detailTablesSe = props.detailTablesSetting,
25600
+ detailTablesSetting = _props$detailTablesSe === void 0 ? [] : _props$detailTablesSe,
25601
+ saveTableCallBack = props.saveTableCallBack;
25500
25602
  var codeFilter = {};
25501
25603
  if (codeProps.columns) {
25502
25604
  // table
@@ -25520,7 +25622,6 @@ var JsonQueryTable = /*#__PURE__*/React.memo(function (props) {
25520
25622
  fields: codeProps.fields
25521
25623
  }).fields;
25522
25624
  }
25523
- console.log('codeFilter', codeFilter);
25524
25625
  var styleRef = useRef(null);
25525
25626
  var _useState = useState(false),
25526
25627
  _useState2 = _slicedToArray(_useState, 2),
@@ -25542,6 +25643,18 @@ var JsonQueryTable = /*#__PURE__*/React.memo(function (props) {
25542
25643
  _useState10 = _slicedToArray(_useState9, 2),
25543
25644
  moduleParams = _useState10[0],
25544
25645
  setModuleParams = _useState10[1];
25646
+ var _useState11 = useState('main'),
25647
+ _useState12 = _slicedToArray(_useState11, 2),
25648
+ activeKey = _useState12[0],
25649
+ setActiveKey = _useState12[1]; //默认详情页配置
25650
+ var _useState13 = useState({}),
25651
+ _useState14 = _slicedToArray(_useState13, 2),
25652
+ tablesConfigParams = _useState14[0],
25653
+ setTablesConfigParams = _useState14[1];
25654
+ var _useState15 = useState([]),
25655
+ _useState16 = _slicedToArray(_useState15, 2),
25656
+ tableJsonEditorValsArr = _useState16[0],
25657
+ setTableJsonEditorValsArr = _useState16[1];
25545
25658
  useEffect(function () {
25546
25659
  Promise.all([axios.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
25547
25660
  var _ref3 = _slicedToArray(_ref2, 1),
@@ -25565,6 +25678,73 @@ var JsonQueryTable = /*#__PURE__*/React.memo(function (props) {
25565
25678
  }
25566
25679
  });
25567
25680
  }, []);
25681
+ useEffect(function () {
25682
+ //明细表的配置数据
25683
+ var axiosArr = detailTablesSetting.map(function (item) {
25684
+ return axios.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(item.tableCode));
25685
+ });
25686
+ Promise.all(axiosArr).then(function (_ref5) {
25687
+ var _ref6 = _toArray(_ref5),
25688
+ resArr = _ref6.slice(0);
25689
+ var configParams = {};
25690
+ detailTablesSetting.map(function (item, index) {
25691
+ var _resArr$index;
25692
+ var _ref7 = ((_resArr$index = resArr[index]) === null || _resArr$index === void 0 ? void 0 : _resArr$index.data) || {},
25693
+ code = _ref7.code,
25694
+ data = _ref7.data;
25695
+ if (data) {
25696
+ var businessType = data.businessType,
25697
+ fieldGroup = data.code,
25698
+ moduleType = data.moduleType;
25699
+ configParams[item.tableCode] = {
25700
+ businessType: businessType,
25701
+ fieldGroup: fieldGroup,
25702
+ moduleType: moduleType,
25703
+ tableFlag: true
25704
+ };
25705
+ }
25706
+ });
25707
+ setTablesConfigParams(_objectSpread2({}, configParams));
25708
+ });
25709
+ var detailTableCodeFilter = detailTablesSetting.map(function (item) {
25710
+ if ((item === null || item === void 0 ? void 0 : item.initialSetting) && (item === null || item === void 0 ? void 0 : item.initialSetting.length)) {
25711
+ return _objectSpread2(_objectSpread2({}, item), {}, {
25712
+ columns: item === null || item === void 0 ? void 0 : item.initialSetting
25713
+ });
25714
+ }
25715
+ return _objectSpread2(_objectSpread2({}, item), {}, {
25716
+ columns: item === null || item === void 0 ? void 0 : item.columns.map(function (childItem) {
25717
+ return {
25718
+ key: childItem.key || childItem.dataIndex,
25719
+ dataIndex: childItem.dataIndex || childItem.key,
25720
+ isStaticCode: true,
25721
+ title: childItem.title
25722
+ };
25723
+ })
25724
+ });
25725
+ });
25726
+ setTableJsonEditorValsArr(_toConsumableArray(detailTableCodeFilter));
25727
+ var lastRes = detailTableCodeFilter.map(function (item) {
25728
+ if ((item === null || item === void 0 ? void 0 : item.initialSetting) && (item === null || item === void 0 ? void 0 : item.initialSetting.length)) {
25729
+ var _codeProps = {
25730
+ fields: [],
25731
+ columns: item === null || item === void 0 ? void 0 : item.columns
25732
+ };
25733
+ var newValue = {
25734
+ fields: [],
25735
+ columns: item.initialSetting
25736
+ };
25737
+ var result = hanleCallbackValue(_codeProps, newValue, item === null || item === void 0 ? void 0 : item.customerFields, item === null || item === void 0 ? void 0 : item.cacheColumns);
25738
+ return _objectSpread2(_objectSpread2({}, item), {}, {
25739
+ columns: result === null || result === void 0 ? void 0 : result.columns
25740
+ });
25741
+ }
25742
+ return item;
25743
+ });
25744
+ if (lastRes.length) {
25745
+ saveTableCallBack(lastRes, false);
25746
+ }
25747
+ }, [detailTablesSetting.length]);
25568
25748
  var onClickRun = function onClickRun(value, isSave) {
25569
25749
  setJsonEditorVal(value);
25570
25750
  try {
@@ -25574,6 +25754,40 @@ var JsonQueryTable = /*#__PURE__*/React.memo(function (props) {
25574
25754
  message$1.error(e);
25575
25755
  }
25576
25756
  };
25757
+ //明细表保存
25758
+ var onClickRunDetailTables = function onClickRunDetailTables(value, isSave, tableCode, tableSouce) {
25759
+ var targetCode = tableCode || activeKey;
25760
+ var targetTableSource = tableSouce || tableJsonEditorValsArr;
25761
+ var newArr = targetTableSource.map(function (item) {
25762
+ if (item.tableCode == targetCode) {
25763
+ return _objectSpread2(_objectSpread2({}, item), {}, {
25764
+ columns: value
25765
+ });
25766
+ }
25767
+ return item;
25768
+ });
25769
+ setTableJsonEditorValsArr(_toConsumableArray(newArr));
25770
+ try {
25771
+ var target = targetTableSource.find(function (item) {
25772
+ return item.tableCode == targetCode;
25773
+ });
25774
+ var _codeProps2 = {
25775
+ fields: [],
25776
+ columns: target === null || target === void 0 ? void 0 : target.columns
25777
+ };
25778
+ var newValue = {
25779
+ fields: [],
25780
+ columns: value
25781
+ };
25782
+ var result = hanleCallbackValue(_codeProps2, newValue, target === null || target === void 0 ? void 0 : target.customerFields, target === null || target === void 0 ? void 0 : target.cacheColumns);
25783
+ saveTableCallBack({
25784
+ columns: result.columns,
25785
+ tableCode: targetCode
25786
+ }, isSave, value);
25787
+ } catch (e) {
25788
+ message$1.error(e);
25789
+ }
25790
+ };
25577
25791
  React.useEffect(function () {
25578
25792
  localStorage.setItem('jsonEditorVal', JSON.stringify(jsonEditorVal || {}));
25579
25793
  }, [jsonEditorVal]);
@@ -25590,25 +25804,97 @@ var JsonQueryTable = /*#__PURE__*/React.memo(function (props) {
25590
25804
  });
25591
25805
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Drawer, {
25592
25806
  visible: visible,
25593
- width: 800,
25807
+ width: 1400,
25594
25808
  onClose: function onClose() {
25595
25809
  return setVisible(false);
25596
25810
  },
25597
25811
  className: 'customFieldsDrawer'
25812
+ }, detailTablesSetting.length == 0 && /*#__PURE__*/React.createElement("div", {
25813
+ style: {
25814
+ display: 'flex'
25815
+ }
25598
25816
  }, /*#__PURE__*/React.createElement("div", {
25599
- ref: styleRef
25600
- }), isEmpty(moduleParams) ? /*#__PURE__*/React.createElement("div", {
25817
+ style: {
25818
+ flex: 1,
25819
+ width: 500
25820
+ }
25821
+ }, isEmpty(moduleParams) ? /*#__PURE__*/React.createElement("div", {
25601
25822
  style: {
25602
25823
  padding: "10px 0",
25603
25824
  fontSize: "16px",
25604
25825
  fontWeight: "bolder"
25605
25826
  }
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, {
25827
+ }, "\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", {
25828
+ style: {
25829
+ flex: 1
25830
+ }
25831
+ }, /*#__PURE__*/React.createElement(Editor, {
25607
25832
  type: "table",
25608
25833
  onRun: onClickRun,
25609
25834
  value: jsonEditorVal,
25610
25835
  shallowHeight: height
25611
- })), !visible && isAdmin() && /*#__PURE__*/React.createElement(ConfigButton, {
25836
+ }))), detailTablesSetting.length > 0 && /*#__PURE__*/React.createElement(Tabs, {
25837
+ defaultActiveKey: activeKey,
25838
+ onChange: function onChange(v) {
25839
+ return setActiveKey(v);
25840
+ }
25841
+ }, /*#__PURE__*/React.createElement(Tabs.TabPane, {
25842
+ tab: "\u8BE6\u60C5\u9875\u914D\u7F6E",
25843
+ key: "main"
25844
+ }, /*#__PURE__*/React.createElement("div", {
25845
+ style: {
25846
+ display: 'flex'
25847
+ }
25848
+ }, /*#__PURE__*/React.createElement("div", {
25849
+ style: {
25850
+ flex: 1,
25851
+ width: 500
25852
+ }
25853
+ }, isEmpty(moduleParams) ? /*#__PURE__*/React.createElement("div", {
25854
+ style: {
25855
+ padding: "10px 0",
25856
+ fontSize: "16px",
25857
+ fontWeight: "bolder"
25858
+ }
25859
+ }, "\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", {
25860
+ style: {
25861
+ flex: 1
25862
+ }
25863
+ }, /*#__PURE__*/React.createElement(Editor, {
25864
+ type: "table",
25865
+ onRun: onClickRun,
25866
+ value: jsonEditorVal,
25867
+ shallowHeight: height
25868
+ })))), tableJsonEditorValsArr.map(function (k) {
25869
+ return /*#__PURE__*/React.createElement(Tabs.TabPane, {
25870
+ tab: k.title,
25871
+ key: k.tableCode
25872
+ }, /*#__PURE__*/React.createElement("div", {
25873
+ style: {
25874
+ display: 'flex'
25875
+ }
25876
+ }, /*#__PURE__*/React.createElement("div", {
25877
+ style: {
25878
+ flex: 1,
25879
+ width: 500
25880
+ }
25881
+ }, !tablesConfigParams[k.tableCode] ? /*#__PURE__*/React.createElement("div", {
25882
+ style: {
25883
+ padding: "10px 0",
25884
+ fontSize: "16px",
25885
+ fontWeight: "bolder"
25886
+ }
25887
+ }, "\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", {
25888
+ style: {
25889
+ flex: 1
25890
+ }
25891
+ }, /*#__PURE__*/React.createElement(Editor, {
25892
+ type: "table",
25893
+ onRun: onClickRunDetailTables,
25894
+ value: k.columns,
25895
+ shallowHeight: height
25896
+ }))));
25897
+ }))), !visible && isAdmin() && /*#__PURE__*/React.createElement(ConfigButton, {
25612
25898
  type: 'primary',
25613
25899
  onClick: function onClick() {
25614
25900
  return setVisible(true);
@@ -25681,26 +25967,28 @@ var BsCascader = function BsCascader(_ref) {
25681
25967
  useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
25682
25968
  var resData, data;
25683
25969
  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();
25970
+ while (1) {
25971
+ switch (_context.prev = _context.next) {
25972
+ case 0:
25973
+ if (!(!source && initRequestSource)) {
25974
+ _context.next = 6;
25975
+ break;
25976
+ }
25977
+ _context.next = 3;
25978
+ return initRequestSource();
25979
+ case 3:
25980
+ resData = _context.sent;
25981
+ data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
25982
+ return _objectSpread2(_objectSpread2({}, item), {}, {
25983
+ label: item.text,
25984
+ isLeaf: false
25985
+ });
25986
+ })) || [];
25987
+ setHandSource(data);
25988
+ case 6:
25989
+ case "end":
25990
+ return _context.stop();
25991
+ }
25704
25992
  }
25705
25993
  }, _callee);
25706
25994
  })), []);
@@ -25832,18 +26120,20 @@ function getRegularThresholdRange(_x) {
25832
26120
  function _getRegularThresholdRange() {
25833
26121
  _getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
25834
26122
  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();
26123
+ while (1) {
26124
+ switch (_context.prev = _context.next) {
26125
+ case 0:
26126
+ return _context.abrupt("return", axios({
26127
+ url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
26128
+ method: 'POST',
26129
+ data: _objectSpread2(_objectSpread2({}, params), {}, {
26130
+ queryIdentify: undefined
26131
+ })
26132
+ }));
26133
+ case 1:
26134
+ case "end":
26135
+ return _context.stop();
26136
+ }
25847
26137
  }
25848
26138
  }, _callee);
25849
26139
  }));
@@ -25982,136 +26272,137 @@ var RuleField = /*#__PURE__*/function (_Component) {
25982
26272
  _this.getRegularThresholdRange(queryIdentify, propertyCode, queryIdentifyType);
25983
26273
  });
25984
26274
  };
25985
- //规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
25986
26275
  _this.getRegularThresholdRange = /*#__PURE__*/function () {
25987
26276
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
25988
26277
  var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
25989
26278
  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
- }) : [];
26279
+ while (1) {
26280
+ switch (_context.prev = _context.next) {
26281
+ case 0:
26282
+ if (queryIdentify) {
26283
+ _context.next = 2;
26284
+ break;
26285
+ }
26286
+ return _context.abrupt("return");
26287
+ case 2:
26288
+ thresholdQuery = _this.state.thresholdQuery;
26289
+ extraRequestUrl = '';
26290
+ querParams = setParams(propertyCode, thresholdQuery);
26291
+ if (!queryIdentityInfo.find(function (item) {
26292
+ return item.identity == propertyCode;
26293
+ })) {
26294
+ _context.next = 10;
26295
+ break;
26296
+ }
26297
+ //判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
26298
+ needQueryList = queryIdentityInfo.find(function (item) {
26299
+ return item.identity == propertyCode;
26300
+ }).queryParam.filter(function (item) {
26301
+ return item.isRequired;
26302
+ }).map(function (item) {
26303
+ return item.queryKey;
26304
+ });
26305
+ if (!needQueryList.some(function (item) {
26306
+ return !querParams[item] || !querParams[item].length;
26307
+ })) {
26308
+ _context.next = 9;
26309
+ break;
26310
+ }
26311
+ return _context.abrupt("return");
26312
+ case 9:
26313
+ extraRequestUrl = queryIdentityInfo.find(function (item) {
26314
+ return item.identity == propertyCode;
26315
+ }).requestUrl || '';
26316
+ case 10:
26317
+ if (queryIdentifyType === 'dictCodeIdentify') {
26318
+ extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
26319
+ querParams = {
26320
+ dictCode: queryIdentify
26321
+ };
26322
+ } else if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26323
+ extraRequestUrl = "dictDynamicItem/getDynamicData/".concat(queryIdentify); // 字典接口
26324
+ // querParams = { dictCode: queryIdentify }
26325
+ }
26326
+ if (!extraRequestUrl) {
26327
+ _context.next = 16;
26328
+ break;
26329
+ }
26330
+ if (queryIdentify == 'maintain_area_code') {
26331
+ extraRequestUrl = "/basic/".concat(extraRequestUrl).concat(querParams.memberCardCode, "?").concat(stringify(querParams));
26332
+ } else if (queryIdentifyType == 'dictCodeIdentify') {
26333
+ extraRequestUrl = "/basic/".concat(extraRequestUrl, "?").concat(stringify(querParams));
26334
+ } else if (queryIdentifyType == 'dynamicDictCodeIdentify') {
26335
+ extraRequestUrl = "/basic/".concat(extraRequestUrl);
26336
+ }
26337
+ request$1({
26338
+ url: extraRequestUrl,
26339
+ method: 'get',
26340
+ converter: function converter(res) {
26341
+ if (handleError(res)) {
26342
+ var _handleData = (res === null || res === void 0 ? void 0 : res.data) || [];
26343
+ if (queryIdentifyType === 'dictCodeIdentify') {
26344
+ var _handleData2;
26345
+ _handleData = ((_handleData2 = _handleData) === null || _handleData2 === void 0 ? void 0 : _handleData2.length) ? _handleData.map(function (i) {
26346
+ return {
26347
+ code: i.dictItemCode,
26348
+ name: i.dictItemName
26349
+ };
26350
+ }) : [];
26351
+ }
26352
+ if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26353
+ var _handleData3;
26354
+ _handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
26355
+ return {
26356
+ code: i.code.toString(),
26357
+ name: i.name
26358
+ };
26359
+ }) : [];
26360
+ }
26361
+ _this.setState({
26362
+ thresholdList: _handleData
26363
+ });
26070
26364
  }
26071
- _this.setState({
26072
- thresholdList: _handleData
26073
- });
26365
+ return handleData;
26074
26366
  }
26075
- return handleData;
26076
- }
26077
- });
26078
- _context.next = 29;
26079
- break;
26080
- case 16:
26081
- if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
26082
- _context.next = 20;
26367
+ });
26368
+ _context.next = 29;
26083
26369
  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;
26370
+ case 16:
26371
+ if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
26372
+ _context.next = 20;
26373
+ break;
26374
+ }
26375
+ _this.setState({
26376
+ thresholdList: queryIdentify
26377
+ });
26378
+ _context.next = 29;
26093
26379
  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)) {
26380
+ case 20:
26381
+ if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
26382
+ _context.next = 24;
26383
+ break;
26384
+ }
26385
+ // TODO待处理
26108
26386
  _this.setState({
26109
- thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
26387
+ thresholdList: []
26110
26388
  });
26111
- }
26112
- case 29:
26113
- case "end":
26114
- return _context.stop();
26389
+ _context.next = 29;
26390
+ break;
26391
+ case 24:
26392
+ querParams.queryIdentify = queryIdentify;
26393
+ _context.next = 27;
26394
+ return getRegularThresholdRange(querParams);
26395
+ case 27:
26396
+ res = _context.sent;
26397
+ if (handleError(res)) {
26398
+ _this.setState({
26399
+ thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
26400
+ });
26401
+ }
26402
+ case 29:
26403
+ case "end":
26404
+ return _context.stop();
26405
+ }
26115
26406
  }
26116
26407
  }, _callee);
26117
26408
  }));
@@ -26870,30 +27161,32 @@ var RuleField = /*#__PURE__*/function (_Component) {
26870
27161
  notChangeOnSelect: true,
26871
27162
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
26872
27163
  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();
27164
+ while (1) {
27165
+ switch (_context2.prev = _context2.next) {
27166
+ case 0:
27167
+ _context2.next = 2;
27168
+ return request$1({
27169
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27170
+ method: 'get',
27171
+ converter: function converter(_ref3) {
27172
+ var data = _ref3.data;
27173
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27174
+ return {
27175
+ text: item.name,
27176
+ value: item.id,
27177
+ level: item.level,
27178
+ id: item.id
27179
+ };
27180
+ }) : [];
27181
+ return handleData;
27182
+ }
27183
+ });
27184
+ case 2:
27185
+ return _context2.abrupt("return", _context2.sent);
27186
+ case 3:
27187
+ case "end":
27188
+ return _context2.stop();
27189
+ }
26897
27190
  }
26898
27191
  }, _callee2);
26899
27192
  })),
@@ -26919,30 +27212,32 @@ var RuleField = /*#__PURE__*/function (_Component) {
26919
27212
  notChangeOnSelect: true,
26920
27213
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
26921
27214
  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();
27215
+ while (1) {
27216
+ switch (_context3.prev = _context3.next) {
27217
+ case 0:
27218
+ _context3.next = 2;
27219
+ return request$1({
27220
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27221
+ method: 'get',
27222
+ converter: function converter(_ref5) {
27223
+ var data = _ref5.data;
27224
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27225
+ return {
27226
+ text: item.name,
27227
+ value: item.id,
27228
+ level: item.level,
27229
+ id: item.id
27230
+ };
27231
+ }) : [];
27232
+ return handleData;
27233
+ }
27234
+ });
27235
+ case 2:
27236
+ return _context3.abrupt("return", _context3.sent);
27237
+ case 3:
27238
+ case "end":
27239
+ return _context3.stop();
27240
+ }
26946
27241
  }
26947
27242
  }, _callee3);
26948
27243
  })),
@@ -26970,30 +27265,32 @@ var RuleField = /*#__PURE__*/function (_Component) {
26970
27265
  notChangeOnSelect: true,
26971
27266
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
26972
27267
  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();
27268
+ while (1) {
27269
+ switch (_context4.prev = _context4.next) {
27270
+ case 0:
27271
+ _context4.next = 2;
27272
+ return request$1({
27273
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27274
+ method: 'get',
27275
+ converter: function converter(_ref7) {
27276
+ var data = _ref7.data;
27277
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27278
+ return {
27279
+ text: item.name,
27280
+ value: item.id,
27281
+ level: item.level,
27282
+ id: item.id
27283
+ };
27284
+ }) : [];
27285
+ return handleData;
27286
+ }
27287
+ });
27288
+ case 2:
27289
+ return _context4.abrupt("return", _context4.sent);
27290
+ case 3:
27291
+ case "end":
27292
+ return _context4.stop();
27293
+ }
26997
27294
  }
26998
27295
  }, _callee4);
26999
27296
  })),
@@ -28060,6 +28357,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
28060
28357
  });
28061
28358
  }
28062
28359
  }
28360
+
28361
+ //规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
28063
28362
  }, {
28064
28363
  key: "render",
28065
28364
  value: function render() {
@@ -28890,7 +29189,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
28890
29189
  callBack(ruleClassData);
28891
29190
  });
28892
29191
  };
28893
- // 树结构 转化成 平行树 (递归函数)
28894
29192
  _this.coverToParallel = function (treeData, result) {
28895
29193
  treeData.forEach(function (el) {
28896
29194
  result.push(el);
@@ -29144,7 +29442,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29144
29442
  callBack(ruleClassData);
29145
29443
  });
29146
29444
  };
29147
- // 场景需要返回值2022.11.15
29148
29445
  _this.renderResItem = function (itemDetail, parentDetail, ruleReturnConfig, disabled, boxStyle) {
29149
29446
  var _ruleReturnConfig$rig;
29150
29447
  var isShowResponse = itemDetail.response['enable'];
@@ -29442,30 +29739,32 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29442
29739
  notChangeOnSelect: true,
29443
29740
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
29444
29741
  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();
29742
+ while (1) {
29743
+ switch (_context.prev = _context.next) {
29744
+ case 0:
29745
+ _context.next = 2;
29746
+ return request$1({
29747
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
29748
+ method: 'get',
29749
+ converter: function converter(_ref2) {
29750
+ var data = _ref2.data;
29751
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
29752
+ return {
29753
+ text: item.name,
29754
+ value: item.id,
29755
+ level: item.level,
29756
+ id: item.id
29757
+ };
29758
+ }) : [];
29759
+ return handleData;
29760
+ }
29761
+ });
29762
+ case 2:
29763
+ return _context.abrupt("return", _context.sent);
29764
+ case 3:
29765
+ case "end":
29766
+ return _context.stop();
29767
+ }
29469
29768
  }
29470
29769
  }, _callee);
29471
29770
  })),
@@ -29799,7 +30098,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29799
30098
  }
29800
30099
  }, "\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
30100
  };
29802
- //添加同一层级条件
29803
30101
  _this.addPeerRule = function (itemDetail) {
29804
30102
  var ruleClassData = _this.state.ruleClassData;
29805
30103
  var _this$props4 = _this.props,
@@ -29820,7 +30118,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29820
30118
  callBack(ruleClassData);
29821
30119
  });
29822
30120
  };
29823
- //添加子层级条件
29824
30121
  _this.addChildRules = function (itemDetail) {
29825
30122
  var ruleClassData = _this.state.ruleClassData;
29826
30123
  var callBack = _this.props.callBack;
@@ -29896,7 +30193,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29896
30193
  callBack(ruleClassData);
29897
30194
  });
29898
30195
  };
29899
- // 新增执行顺序
29900
30196
  _this.handleSelectRuleAction = function (keys, classDataIndex, callback) {
29901
30197
  callback();
29902
30198
  var callBack = _this.props.callBack;
@@ -30047,4 +30343,4 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30047
30343
  return RuleObjectComponent;
30048
30344
  }(Component);
30049
30345
 
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 };
30346
+ 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 };