@bit-sun/business-component 2.3.16 → 2.3.17

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 (202) 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/common.d.ts +5 -1
  11. package/dist/components/Business/SearchSelect/index.d.ts +1 -1
  12. package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
  13. package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
  14. package/dist/index.esm.js +918 -936
  15. package/dist/index.js +924 -942
  16. package/dist/utils/utils.d.ts +1 -1
  17. package/docs/index.md +21 -21
  18. package/lib/assets/drag.svg +17 -17
  19. package/lib/assets/exportFail.svg +37 -37
  20. package/lib/assets/exportProcessing.svg +28 -28
  21. package/lib/assets/exportSuccess.svg +34 -34
  22. package/lib/assets/label_icon_bottom.svg +25 -25
  23. package/lib/assets/upExport.svg +22 -22
  24. package/package.json +78 -78
  25. package/src/assets/32.svg +27 -27
  26. package/src/assets/addIcon.svg +17 -17
  27. package/src/assets/allfunc.svg +27 -27
  28. package/src/assets/arrowRight.svg +24 -24
  29. package/src/assets/btn-delete.svg +29 -29
  30. package/src/assets/btn-edit.svg +19 -19
  31. package/src/assets/btn-more.svg +17 -17
  32. package/src/assets/btn-submit.svg +19 -19
  33. package/src/assets/caidan.svg +11 -11
  34. package/src/assets/close.svg +26 -26
  35. package/src/assets/drag.svg +17 -17
  36. package/src/assets/exportFail.svg +37 -37
  37. package/src/assets/exportProcessing.svg +28 -28
  38. package/src/assets/exportSuccess.svg +34 -34
  39. package/src/assets/fixed-left-active.svg +11 -11
  40. package/src/assets/fixed-left.svg +15 -15
  41. package/src/assets/fixed-right-active.svg +11 -11
  42. package/src/assets/fixed-right.svg +15 -15
  43. package/src/assets/guanbi.svg +15 -15
  44. package/src/assets/icon-quanping.svg +15 -15
  45. package/src/assets/icon-shezhi.svg +17 -17
  46. package/src/assets/label_icon_bottom.svg +25 -25
  47. package/src/assets/list-no-img.svg +21 -21
  48. package/src/assets/morentouxiang-32.svg +23 -23
  49. package/src/assets/scanning.svg +24 -24
  50. package/src/assets/upExport.svg +22 -22
  51. package/src/common/ENUM.ts +41 -41
  52. package/src/components/Business/AddSelectBusiness/index.md +161 -161
  53. package/src/components/Business/AddSelectBusiness/index.tsx +861 -861
  54. package/src/components/Business/BsLayouts/Components/AllFunc/drawContent.tsx +111 -111
  55. package/src/components/Business/BsLayouts/Components/AllFunc/index.less +153 -153
  56. package/src/components/Business/BsLayouts/Components/AllFunc/index.tsx +70 -70
  57. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.less +90 -90
  58. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.tsx +37 -37
  59. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.tsx +242 -242
  60. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.tsx +384 -384
  61. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.tsx +285 -285
  62. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.tsx +74 -74
  63. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/drawContent.less +170 -170
  64. package/src/components/Business/BsLayouts/Components/CustomerMenu/index.less +64 -64
  65. package/src/components/Business/BsLayouts/Components/CustomerMenu/index.tsx +153 -153
  66. package/src/components/Business/BsLayouts/Components/GlobalHeader/index.less +72 -72
  67. package/src/components/Business/BsLayouts/Components/GlobalHeader/index.tsx +157 -157
  68. package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +85 -85
  69. package/src/components/Business/BsLayouts/Components/RightContent/home.less +218 -218
  70. package/src/components/Business/BsLayouts/Components/RightContent/index.tsx +155 -155
  71. package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +160 -160
  72. package/src/components/Business/BsLayouts/Components/SearchFunc/index.tsx +75 -75
  73. package/src/components/Business/BsLayouts/index.less +79 -79
  74. package/src/components/Business/BsLayouts/index.tsx +1484 -1484
  75. package/src/components/Business/BsLayouts/service.ts +10 -10
  76. package/src/components/Business/BsLayouts/utils.tsx +203 -203
  77. package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +564 -564
  78. package/src/components/Business/BsSulaQueryTable/index.less +221 -221
  79. package/src/components/Business/BsSulaQueryTable/index.tsx +535 -535
  80. package/src/components/Business/BsSulaQueryTable/setting.tsx +852 -852
  81. package/src/components/Business/BsSulaQueryTable/utils.less +65 -65
  82. package/src/components/Business/BsSulaQueryTable/utils.tsx +688 -688
  83. package/src/components/Business/CommodityEntry/index.md +70 -70
  84. package/src/components/Business/CommodityEntry/index.tsx +80 -80
  85. package/src/components/Business/CommonAlert/index.tsx +23 -23
  86. package/src/components/Business/CommonGuideWrapper/index.less +111 -111
  87. package/src/components/Business/CommonGuideWrapper/index.md +39 -39
  88. package/src/components/Business/CommonGuideWrapper/index.tsx +83 -83
  89. package/src/components/Business/DetailPageWrapper/index.less +79 -79
  90. package/src/components/Business/DetailPageWrapper/index.tsx +313 -313
  91. package/src/components/Business/DetailPageWrapper/utils.tsx +100 -100
  92. package/src/components/Business/HomePageWrapper/index.less +33 -33
  93. package/src/components/Business/HomePageWrapper/index.md +45 -45
  94. package/src/components/Business/HomePageWrapper/index.tsx +162 -162
  95. package/src/components/Business/JsonQueryTable/components/FieldsModifyModal.tsx +824 -824
  96. package/src/components/Business/JsonQueryTable/components/FieldsSettingsTable.tsx +205 -205
  97. package/src/components/Business/JsonQueryTable/components/Formula.tsx +205 -205
  98. package/src/components/Business/JsonQueryTable/components/MaintainOptions.tsx +127 -127
  99. package/src/components/Business/JsonQueryTable/configButton/index.js +20 -20
  100. package/src/components/Business/JsonQueryTable/configTree/component/compactArrayView.js +25 -25
  101. package/src/components/Business/JsonQueryTable/configTree/component/compactObjectView.js +30 -30
  102. package/src/components/Business/JsonQueryTable/configTree/index.js +82 -82
  103. package/src/components/Business/JsonQueryTable/configTree/index.less +44 -44
  104. package/src/components/Business/JsonQueryTable/configTree/parser/highlight.js +57 -57
  105. package/src/components/Business/JsonQueryTable/configTree/parser/index.js +124 -124
  106. package/src/components/Business/JsonQueryTable/configTree/render/iconRender.js +29 -29
  107. package/src/components/Business/JsonQueryTable/configTree/render/nameRender.js +22 -22
  108. package/src/components/Business/JsonQueryTable/configTree/treeNode.js +116 -116
  109. package/src/components/Business/JsonQueryTable/drawer/index.tsx +12 -12
  110. package/src/components/Business/JsonQueryTable/function.ts +62 -62
  111. package/src/components/Business/JsonQueryTable/index.less +16 -16
  112. package/src/components/Business/JsonQueryTable/index.md +328 -328
  113. package/src/components/Business/JsonQueryTable/index.tsx +535 -535
  114. package/src/components/Business/JsonQueryTable/jsonEditor/index.js +346 -346
  115. package/src/components/Business/JsonQueryTable/jsonEditor/index.less +22 -22
  116. package/src/components/Business/JsonQueryTable/jsonEditor/lint/basicType.js +147 -147
  117. package/src/components/Business/JsonQueryTable/jsonEditor/lint/index.js +389 -389
  118. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/actions.js +118 -118
  119. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/dependency.js +22 -22
  120. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/index.js +21 -21
  121. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/request.js +65 -65
  122. package/src/components/Business/JsonQueryTable/static.ts +390 -390
  123. package/src/components/Business/SearchSelect/BusinessUtils.ts +1762 -1756
  124. package/src/components/Business/SearchSelect/common.ts +75 -64
  125. package/src/components/Business/SearchSelect/index.md +1329 -1326
  126. package/src/components/Business/SearchSelect/index.tsx +51 -51
  127. package/src/components/Business/SearchSelect/utils.ts +100 -100
  128. package/src/components/Business/StateFlow/index.less +130 -130
  129. package/src/components/Business/StateFlow/index.md +60 -60
  130. package/src/components/Business/StateFlow/index.tsx +29 -29
  131. package/src/components/Business/TreeSearchSelect/index.md +154 -154
  132. package/src/components/Business/TreeSearchSelect/index.tsx +33 -33
  133. package/src/components/Business/TreeSearchSelect/utils.ts +75 -75
  134. package/src/components/Business/columnSettingTable/columnSetting.tsx +764 -764
  135. package/src/components/Business/columnSettingTable/index.less +247 -247
  136. package/src/components/Business/columnSettingTable/index.md +357 -357
  137. package/src/components/Business/columnSettingTable/index.tsx +232 -232
  138. package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +240 -240
  139. package/src/components/Business/columnSettingTable/utils.tsx +68 -68
  140. package/src/components/Business/moreTreeTable/FixedScrollBar.tsx +86 -86
  141. package/src/components/Business/moreTreeTable/hooks/useSticky.ts +21 -21
  142. package/src/components/Business/moreTreeTable/index.less +99 -99
  143. package/src/components/Business/moreTreeTable/index.md +448 -448
  144. package/src/components/Business/moreTreeTable/index.tsx +387 -387
  145. package/src/components/Business/moreTreeTable/utils.ts +126 -126
  146. package/src/components/Functional/AddSelect/helps.ts +14 -14
  147. package/src/components/Functional/AddSelect/index.less +367 -367
  148. package/src/components/Functional/AddSelect/index.md +155 -155
  149. package/src/components/Functional/AddSelect/index.tsx +1279 -1279
  150. package/src/components/Functional/BillEntry/index.less +371 -371
  151. package/src/components/Functional/BillEntry/index.md +39 -39
  152. package/src/components/Functional/BillEntry/index.tsx +772 -772
  153. package/src/components/Functional/BsAntdSula/BsCascader/index.md +62 -62
  154. package/src/components/Functional/BsAntdSula/BsCascader/index.tsx +178 -178
  155. package/src/components/Functional/BsAntdSula/index.ts +2 -2
  156. package/src/components/Functional/DataImport/index.less +63 -63
  157. package/src/components/Functional/DataImport/index.md +44 -44
  158. package/src/components/Functional/DataImport/index.tsx +695 -695
  159. package/src/components/Functional/DataValidation/index.less +63 -63
  160. package/src/components/Functional/DataValidation/index.md +39 -39
  161. package/src/components/Functional/DataValidation/index.tsx +687 -687
  162. package/src/components/Functional/EllipsisTooltip/index.d.ts +5 -5
  163. package/src/components/Functional/EllipsisTooltip/index.js +36 -36
  164. package/src/components/Functional/EllipsisTooltip/index.md +30 -30
  165. package/src/components/Functional/ExportFunctions/ExportIcon/index.md +37 -37
  166. package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +59 -59
  167. package/src/components/Functional/QueryMutipleInput/index.less +37 -37
  168. package/src/components/Functional/QueryMutipleInput/index.md +33 -33
  169. package/src/components/Functional/QueryMutipleInput/index.tsx +128 -128
  170. package/src/components/Functional/SearchSelect/index.less +115 -115
  171. package/src/components/Functional/SearchSelect/index.md +141 -141
  172. package/src/components/Functional/SearchSelect/index.tsx +870 -870
  173. package/src/components/Functional/SearchSelect/utils.ts +3 -3
  174. package/src/components/Functional/TreeSearchSelect/index.md +47 -47
  175. package/src/components/Functional/TreeSearchSelect/index.tsx +163 -163
  176. package/src/components/Solution/RuleComponent/Formula.tsx +335 -335
  177. package/src/components/Solution/RuleComponent/index.d.ts +29 -29
  178. package/src/components/Solution/RuleComponent/index.js +2028 -2028
  179. package/src/components/Solution/RuleComponent/index.less +230 -230
  180. package/src/components/Solution/RuleComponent/renderSpecificAction.js +99 -99
  181. package/src/components/Solution/RuleComponent/ruleFiled.js +2107 -2107
  182. package/src/components/Solution/RuleComponent/services.ts +13 -13
  183. package/src/components/Solution/RuleComponent/util.js +139 -139
  184. package/src/index.ts +38 -38
  185. package/src/plugin/TableColumnSetting/index.less +247 -247
  186. package/src/plugin/TableColumnSetting/index.md +50 -50
  187. package/src/plugin/TableColumnSetting/index.tsx +724 -724
  188. package/src/plugin/TableColumnSetting/utils.ts +19 -19
  189. package/src/styles/bsDefault.less +1912 -1912
  190. package/src/utils/CheckOneUser/index.md +39 -39
  191. package/src/utils/CheckOneUser/index.ts +51 -51
  192. package/src/utils/LocalstorageUtils.ts +90 -90
  193. package/src/utils/TableUtils.tsx +18 -18
  194. package/src/utils/checkUtils.ts +39 -39
  195. package/src/utils/enumConfig.ts +11 -11
  196. package/src/utils/getFormMode.js +12 -12
  197. package/src/utils/index.ts +4 -4
  198. package/src/utils/requestUtils.ts +34 -34
  199. package/src/utils/serialize.js +7 -7
  200. package/src/utils/utils.ts +212 -212
  201. package/tsconfig.json +29 -29
  202. 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$1 from 'lodash/isEqual';
5
+ import isEqual 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,52 +762,41 @@ var precisionQuantity = function precisionQuantity(num, accuracy) {
762
762
  return '';
763
763
  };
764
764
 
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;
772
- }
773
- if (safeIsNaN(first) && safeIsNaN(second)) {
774
- return true;
775
- }
776
- return false;
777
- }
778
- function areInputsEqual(newInputs, lastInputs) {
779
- if (newInputs.length !== lastInputs.length) {
780
- return false;
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];
781
786
  }
782
- for (var i = 0; i < newInputs.length; i++) {
783
- if (!isEqual(newInputs[i], lastInputs[i])) {
784
- return false;
785
- }
787
+
788
+ if (calledOnce && lastThis === this && newArgs.length === lastArgs.length && newArgs.every(isNewArgEqualToLast)) {
789
+ return lastResult;
786
790
  }
787
- return true;
788
- }
789
791
 
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;
792
+ lastResult = resultFn.apply(this, newArgs);
793
+ calledOnce = true;
794
+ lastThis = this;
795
+ lastArgs = newArgs;
796
+ return lastResult;
797
+ };
798
+
799
+ return result;
811
800
  }
812
801
 
813
802
  function styleInject(css, ref) {
@@ -1021,58 +1010,59 @@ var getItemDefaultWidth = function getItemDefaultWidth(item) {
1021
1010
  * @returns 返回处理后的查询参数
1022
1011
  */
1023
1012
  function queryParams(params, flag) {
1024
- for (var key in params) {
1013
+ var _loop = function _loop() {
1025
1014
  if (Object.prototype.hasOwnProperty.call(params, key)) {
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;
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');
1066
1038
  } else {
1067
- params["qp-".concat(_dataParams5[0], "-like")] = element;
1068
- params["qp-".concat(_dataParams5[0], "-in")] = null;
1039
+ params[value] = moment$1(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
1069
1040
  }
1070
- delete params[key];
1071
- } else if (Array.isArray(element)) {
1072
- params[key] = element.join(',');
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;
1073
1057
  }
1074
- })();
1058
+ delete params[key];
1059
+ } else if (Array.isArray(element)) {
1060
+ params[key] = element.join(',');
1061
+ }
1075
1062
  }
1063
+ };
1064
+ for (var key in params) {
1065
+ _loop();
1076
1066
  }
1077
1067
  return flag ? params : qs.stringify(params);
1078
1068
  }
@@ -1118,7 +1108,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
1118
1108
  return item;
1119
1109
  });
1120
1110
  };
1121
- var memoizeOneFormatter = memoizeOne(formatter, isEqual$1);
1111
+ var memoizeOneFormatter = index$1(formatter, isEqual);
1122
1112
  var go2BackAndClose = function go2BackAndClose() {
1123
1113
  localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
1124
1114
  history.goBack();
@@ -2800,84 +2790,85 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
2800
2790
  });
2801
2791
  }
2802
2792
  // 数组对象处理,对带有特殊标记的name进行处理
2803
- for (var key in params) {
2793
+ var _loop = function _loop() {
2804
2794
  if (Object.prototype.hasOwnProperty.call(params, key)) {
2805
- (function () {
2806
- var element = params[key];
2807
- if (element && key.indexOf('*number*') >= 0) {
2808
- var dataParams = key.split('*number*');
2809
- dataParams.forEach(function (value, index) {
2810
- params[value] = element[index];
2811
- });
2812
- delete params[key];
2813
- } else if (element && key.indexOf('*address*') >= 0) {
2814
- var _dataParams = key.split('*address*');
2815
- _dataParams.forEach(function (value, index) {
2816
- params[value] = element.PCDCode[index];
2817
- });
2818
- delete params[key];
2819
- } else if (element && key.indexOf('*costType*') >= 0) {
2820
- var _dataParams2 = key.split('*costType*');
2821
- // eslint-disable-next-line prefer-destructuring
2822
- params[_dataParams2[0]] = element[1];
2823
- delete params[key];
2824
- } else if (element && key.indexOf('*fullDate*') >= 0) {
2825
- var _dataParams3 = key.split('*fullDate*');
2826
- _dataParams3.forEach(function (value, index) {
2827
- if (index === 0) {
2828
- params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
2829
- } else {
2830
- params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
2831
- }
2832
- });
2833
- delete params[key];
2834
- } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
2835
- var _dataParams4 = key.split('*checkBox*');
2836
- if (element) {
2837
- params[_dataParams4[0]] = 0;
2795
+ var element = params[key];
2796
+ if (element && key.indexOf('*number*') >= 0) {
2797
+ var dataParams = key.split('*number*');
2798
+ dataParams.forEach(function (value, index) {
2799
+ params[value] = element[index];
2800
+ });
2801
+ delete params[key];
2802
+ } else if (element && key.indexOf('*address*') >= 0) {
2803
+ var _dataParams = key.split('*address*');
2804
+ _dataParams.forEach(function (value, index) {
2805
+ params[value] = element.PCDCode[index];
2806
+ });
2807
+ delete params[key];
2808
+ } else if (element && key.indexOf('*costType*') >= 0) {
2809
+ var _dataParams2 = key.split('*costType*');
2810
+ // eslint-disable-next-line prefer-destructuring
2811
+ params[_dataParams2[0]] = element[1];
2812
+ delete params[key];
2813
+ } else if (element && key.indexOf('*fullDate*') >= 0) {
2814
+ var _dataParams3 = key.split('*fullDate*');
2815
+ _dataParams3.forEach(function (value, index) {
2816
+ if (index === 0) {
2817
+ params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
2818
+ } else {
2819
+ params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
2838
2820
  }
2839
- delete params[key];
2840
- } else if (element && key.indexOf('*cascader*') >= 0) {
2841
- var _dataParams5 = key.split('*cascader*');
2842
- params[_dataParams5[0]] = element[element.length - 1];
2843
- delete params[key];
2844
- } else if (element && key.indexOf('*date*') >= 0) {
2845
- var _dataParams6 = key.split('*date*');
2846
- _dataParams6.forEach(function (value, index) {
2847
- if (index === 0) {
2848
- params[value] = moment(element[index]).format('YYYY-MM-DD');
2849
- } else {
2850
- params[value] = moment(element[index]).format('YYYY-MM-DD');
2851
- }
2852
- });
2853
- delete params[key];
2854
- } else if (element && key.indexOf('*') >= 0) {
2855
- var _dataParams7 = key.split('*');
2856
- _dataParams7.forEach(function (value, index) {
2857
- params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
2858
- });
2859
- delete params[key];
2860
- } else if (element && key.indexOf('_selectNumberRange') >= 0) {
2861
- // key = xxxxx_selectNumberRange qp-xxxxx-gt
2862
- var _dataParams8 = key.split('_selectNumberRange')[0];
2863
- if (params[key][0] === 'range') {
2864
- if (params[key][1][0]) {
2865
- params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
2866
- }
2867
- if (params[key][1][1]) {
2868
- params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
2869
- }
2821
+ });
2822
+ delete params[key];
2823
+ } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
2824
+ var _dataParams4 = key.split('*checkBox*');
2825
+ if (element) {
2826
+ params[_dataParams4[0]] = 0;
2827
+ }
2828
+ delete params[key];
2829
+ } else if (element && key.indexOf('*cascader*') >= 0) {
2830
+ var _dataParams5 = key.split('*cascader*');
2831
+ params[_dataParams5[0]] = element[element.length - 1];
2832
+ delete params[key];
2833
+ } else if (element && key.indexOf('*date*') >= 0) {
2834
+ var _dataParams6 = key.split('*date*');
2835
+ _dataParams6.forEach(function (value, index) {
2836
+ if (index === 0) {
2837
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
2870
2838
  } else {
2871
- params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
2839
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
2840
+ }
2841
+ });
2842
+ delete params[key];
2843
+ } else if (element && key.indexOf('*') >= 0) {
2844
+ var _dataParams7 = key.split('*');
2845
+ _dataParams7.forEach(function (value, index) {
2846
+ params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
2847
+ });
2848
+ delete params[key];
2849
+ } else if (element && key.indexOf('_selectNumberRange') >= 0) {
2850
+ // key = xxxxx_selectNumberRange qp-xxxxx-gt
2851
+ var _dataParams8 = key.split('_selectNumberRange')[0];
2852
+ if (params[key][0] === 'range') {
2853
+ if (params[key][1][0]) {
2854
+ params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
2855
+ }
2856
+ if (params[key][1][1]) {
2857
+ params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
2872
2858
  }
2873
- delete params[key];
2874
- } else if (Array.isArray(element)) {
2875
- params[key] = element.join(',');
2876
- } else if (element == null || element === undefined || String(element).trim() === '') {
2877
- delete params[key];
2859
+ } else {
2860
+ params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
2878
2861
  }
2879
- })();
2862
+ delete params[key];
2863
+ } else if (Array.isArray(element)) {
2864
+ params[key] = element.join(',');
2865
+ } else if (element == null || element === undefined || String(element).trim() === '') {
2866
+ delete params[key];
2867
+ }
2880
2868
  }
2869
+ };
2870
+ for (var key in params) {
2871
+ _loop();
2881
2872
  }
2882
2873
  var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
2883
2874
  pageSize: pageSize,
@@ -4543,76 +4534,74 @@ var AddSelect = function AddSelect(props) {
4543
4534
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
4544
4535
  var result;
4545
4536
  return _regeneratorRuntime().wrap(function _callee$(_context) {
4546
- while (1) {
4547
- switch (_context.prev = _context.next) {
4548
- case 0:
4549
- if (!(bType == 'skc' && tList.some(function (i) {
4550
- return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
4551
- }))) {
4552
- _context.next = 3;
4553
- break;
4554
- }
4555
- message$1.warning('相同skc配码不可设置相同哦');
4556
- return _context.abrupt("return", false);
4557
- case 3:
4558
- if (!(bType == 'spu')) {
4559
- _context.next = 26;
4560
- break;
4561
- }
4562
- if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
4563
- return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
4564
- }))) {
4565
- _context.next = 7;
4566
- break;
4567
- }
4568
- message$1.warning('相同商品相同配码颜色不可设置相同哦');
4569
- return _context.abrupt("return", false);
4570
- case 7:
4571
- if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
4572
- _context.next = 10;
4573
- break;
4574
- }
4575
- message$1.warning('请先选择颜色!');
4576
- return _context.abrupt("return", false);
4577
- case 10:
4578
- if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
4579
- return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
4580
- }))) {
4581
- _context.next = 13;
4582
- break;
4583
- }
4584
- message$1.warning('相同商品相同颜色配码不可设置相同哦');
4585
- return _context.abrupt("return", false);
4586
- case 13:
4587
- if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
4588
- _context.next = 26;
4589
- break;
4590
- }
4591
- result = true;
4592
- _context.prev = 15;
4593
- _context.next = 18;
4594
- return checkSpuMatchCode({
4595
- skcCode: recordItem[recordKey],
4596
- matchingCode: changeValue,
4597
- ext1: recordItem.colorName
4598
- });
4599
- case 18:
4600
- result = _context.sent;
4601
- result = true;
4602
- _context.next = 25;
4537
+ while (1) switch (_context.prev = _context.next) {
4538
+ case 0:
4539
+ if (!(bType == 'skc' && tList.some(function (i) {
4540
+ return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
4541
+ }))) {
4542
+ _context.next = 3;
4603
4543
  break;
4604
- case 22:
4605
- _context.prev = 22;
4606
- _context.t0 = _context["catch"](15);
4607
- result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
4608
- case 25:
4609
- return _context.abrupt("return", result);
4610
- case 26:
4611
- return _context.abrupt("return", true);
4612
- case 27:
4613
- case "end":
4614
- return _context.stop();
4615
- }
4544
+ }
4545
+ message$1.warning('相同skc配码不可设置相同哦');
4546
+ return _context.abrupt("return", false);
4547
+ case 3:
4548
+ if (!(bType == 'spu')) {
4549
+ _context.next = 26;
4550
+ break;
4551
+ }
4552
+ if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
4553
+ return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
4554
+ }))) {
4555
+ _context.next = 7;
4556
+ break;
4557
+ }
4558
+ message$1.warning('相同商品相同配码颜色不可设置相同哦');
4559
+ return _context.abrupt("return", false);
4560
+ case 7:
4561
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
4562
+ _context.next = 10;
4563
+ break;
4564
+ }
4565
+ message$1.warning('请先选择颜色!');
4566
+ return _context.abrupt("return", false);
4567
+ case 10:
4568
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
4569
+ return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
4570
+ }))) {
4571
+ _context.next = 13;
4572
+ break;
4573
+ }
4574
+ message$1.warning('相同商品相同颜色配码不可设置相同哦');
4575
+ return _context.abrupt("return", false);
4576
+ case 13:
4577
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
4578
+ _context.next = 26;
4579
+ break;
4580
+ }
4581
+ result = true;
4582
+ _context.prev = 15;
4583
+ _context.next = 18;
4584
+ return checkSpuMatchCode({
4585
+ skcCode: recordItem[recordKey],
4586
+ matchingCode: changeValue,
4587
+ ext1: recordItem.colorName
4588
+ });
4589
+ case 18:
4590
+ result = _context.sent;
4591
+ result = true;
4592
+ _context.next = 25;
4593
+ break;
4594
+ case 22:
4595
+ _context.prev = 22;
4596
+ _context.t0 = _context["catch"](15);
4597
+ result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
4598
+ case 25:
4599
+ return _context.abrupt("return", result);
4600
+ case 26:
4601
+ return _context.abrupt("return", true);
4602
+ case 27:
4603
+ case "end":
4604
+ return _context.stop();
4616
4605
  }
4617
4606
  }, _callee, null, [[15, 22]]);
4618
4607
  }));
@@ -4804,29 +4793,27 @@ var AddSelect = function AddSelect(props) {
4804
4793
  var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
4805
4794
  var isConformToTheRules, newPopValue;
4806
4795
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
4807
- while (1) {
4808
- switch (_context2.prev = _context2.next) {
4809
- case 0:
4810
- _context2.next = 2;
4811
- return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
4812
- case 2:
4813
- isConformToTheRules = _context2.sent;
4814
- if (isConformToTheRules) {
4815
- record[item.dataIndex] = value;
4816
- } else {
4817
- record[item.dataIndex] = null;
4796
+ while (1) switch (_context2.prev = _context2.next) {
4797
+ case 0:
4798
+ _context2.next = 2;
4799
+ return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
4800
+ case 2:
4801
+ isConformToTheRules = _context2.sent;
4802
+ if (isConformToTheRules) {
4803
+ record[item.dataIndex] = value;
4804
+ } else {
4805
+ record[item.dataIndex] = null;
4806
+ }
4807
+ newPopValue = popvalue.map(function (i, innerIndex) {
4808
+ if (innerIndex == index) {
4809
+ i[item.dataIndex] = record[item.dataIndex];
4818
4810
  }
4819
- newPopValue = popvalue.map(function (i, innerIndex) {
4820
- if (innerIndex == index) {
4821
- i[item.dataIndex] = record[item.dataIndex];
4822
- }
4823
- return i;
4824
- });
4825
- setPopValue(newPopValue);
4826
- case 6:
4827
- case "end":
4828
- return _context2.stop();
4829
- }
4811
+ return i;
4812
+ });
4813
+ setPopValue(newPopValue);
4814
+ case 6:
4815
+ case "end":
4816
+ return _context2.stop();
4830
4817
  }
4831
4818
  }, _callee2);
4832
4819
  }));
@@ -4886,84 +4873,85 @@ var AddSelect = function AddSelect(props) {
4886
4873
  });
4887
4874
  }
4888
4875
  // 数组对象处理,对带有特殊标记的name进行处理
4889
- for (var key in params) {
4876
+ var _loop = function _loop() {
4890
4877
  if (Object.prototype.hasOwnProperty.call(params, key)) {
4891
- (function () {
4892
- var element = params[key];
4893
- if (element && key.indexOf('*number*') >= 0) {
4894
- var dataParams = key.split('*number*');
4895
- dataParams.forEach(function (value, index) {
4896
- params[value] = element[index];
4897
- });
4898
- delete params[key];
4899
- } else if (element && key.indexOf('*address*') >= 0) {
4900
- var _dataParams = key.split('*address*');
4901
- _dataParams.forEach(function (value, index) {
4902
- params[value] = element.PCDCode[index];
4903
- });
4904
- delete params[key];
4905
- } else if (element && key.indexOf('*costType*') >= 0) {
4906
- var _dataParams2 = key.split('*costType*');
4907
- // eslint-disable-next-line prefer-destructuring
4908
- params[_dataParams2[0]] = element[1];
4909
- delete params[key];
4910
- } else if (element && key.indexOf('*fullDate*') >= 0) {
4911
- var _dataParams3 = key.split('*fullDate*');
4912
- _dataParams3.forEach(function (value, index) {
4913
- if (index === 0) {
4914
- params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
4915
- } else {
4916
- params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
4917
- }
4918
- });
4919
- delete params[key];
4920
- } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
4921
- var _dataParams4 = key.split('*checkBox*');
4922
- if (element) {
4923
- params[_dataParams4[0]] = 0;
4878
+ var element = params[key];
4879
+ if (element && key.indexOf('*number*') >= 0) {
4880
+ var dataParams = key.split('*number*');
4881
+ dataParams.forEach(function (value, index) {
4882
+ params[value] = element[index];
4883
+ });
4884
+ delete params[key];
4885
+ } else if (element && key.indexOf('*address*') >= 0) {
4886
+ var _dataParams = key.split('*address*');
4887
+ _dataParams.forEach(function (value, index) {
4888
+ params[value] = element.PCDCode[index];
4889
+ });
4890
+ delete params[key];
4891
+ } else if (element && key.indexOf('*costType*') >= 0) {
4892
+ var _dataParams2 = key.split('*costType*');
4893
+ // eslint-disable-next-line prefer-destructuring
4894
+ params[_dataParams2[0]] = element[1];
4895
+ delete params[key];
4896
+ } else if (element && key.indexOf('*fullDate*') >= 0) {
4897
+ var _dataParams3 = key.split('*fullDate*');
4898
+ _dataParams3.forEach(function (value, index) {
4899
+ if (index === 0) {
4900
+ params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
4901
+ } else {
4902
+ params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
4924
4903
  }
4925
- delete params[key];
4926
- } else if (element && key.indexOf('*cascader*') >= 0) {
4927
- var _dataParams5 = key.split('*cascader*');
4928
- params[_dataParams5[0]] = element[element.length - 1];
4929
- delete params[key];
4930
- } else if (element && key.indexOf('*date*') >= 0) {
4931
- var _dataParams6 = key.split('*date*');
4932
- _dataParams6.forEach(function (value, index) {
4933
- if (index === 0) {
4934
- params[value] = moment(element[index]).format('YYYY-MM-DD');
4935
- } else {
4936
- params[value] = moment(element[index]).format('YYYY-MM-DD');
4937
- }
4938
- });
4939
- delete params[key];
4940
- } else if (element && key.indexOf('*') >= 0) {
4941
- var _dataParams7 = key.split('*');
4942
- _dataParams7.forEach(function (value, index) {
4943
- params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
4944
- });
4945
- delete params[key];
4946
- } else if (element && key.indexOf('_selectNumberRange') >= 0) {
4947
- // key = xxxxx_selectNumberRange qp-xxxxx-gt
4948
- var _dataParams8 = key.split('_selectNumberRange')[0];
4949
- if (params[key][0] === 'range') {
4950
- if (params[key][1][0]) {
4951
- params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
4952
- }
4953
- if (params[key][1][1]) {
4954
- params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
4955
- }
4904
+ });
4905
+ delete params[key];
4906
+ } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
4907
+ var _dataParams4 = key.split('*checkBox*');
4908
+ if (element) {
4909
+ params[_dataParams4[0]] = 0;
4910
+ }
4911
+ delete params[key];
4912
+ } else if (element && key.indexOf('*cascader*') >= 0) {
4913
+ var _dataParams5 = key.split('*cascader*');
4914
+ params[_dataParams5[0]] = element[element.length - 1];
4915
+ delete params[key];
4916
+ } else if (element && key.indexOf('*date*') >= 0) {
4917
+ var _dataParams6 = key.split('*date*');
4918
+ _dataParams6.forEach(function (value, index) {
4919
+ if (index === 0) {
4920
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
4956
4921
  } else {
4957
- params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
4922
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
4923
+ }
4924
+ });
4925
+ delete params[key];
4926
+ } else if (element && key.indexOf('*') >= 0) {
4927
+ var _dataParams7 = key.split('*');
4928
+ _dataParams7.forEach(function (value, index) {
4929
+ params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
4930
+ });
4931
+ delete params[key];
4932
+ } else if (element && key.indexOf('_selectNumberRange') >= 0) {
4933
+ // key = xxxxx_selectNumberRange qp-xxxxx-gt
4934
+ var _dataParams8 = key.split('_selectNumberRange')[0];
4935
+ if (params[key][0] === 'range') {
4936
+ if (params[key][1][0]) {
4937
+ params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
4958
4938
  }
4959
- delete params[key];
4960
- } else if (Array.isArray(element)) {
4961
- params[key] = element.join(',');
4962
- } else if (element == null || element === undefined || String(element).trim() === '') {
4963
- delete params[key];
4939
+ if (params[key][1][1]) {
4940
+ params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
4941
+ }
4942
+ } else {
4943
+ params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
4964
4944
  }
4965
- })();
4945
+ delete params[key];
4946
+ } else if (Array.isArray(element)) {
4947
+ params[key] = element.join(',');
4948
+ } else if (element == null || element === undefined || String(element).trim() === '') {
4949
+ delete params[key];
4950
+ }
4966
4951
  }
4952
+ };
4953
+ for (var key in params) {
4954
+ _loop();
4967
4955
  }
4968
4956
  var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
4969
4957
  pageSize: pageSize,
@@ -6418,72 +6406,70 @@ var BillEntry = function BillEntry(_ref3) {
6418
6406
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
6419
6407
  var canEntryObject, _canEntryObject$error, messageInfo;
6420
6408
  return _regeneratorRuntime().wrap(function _callee$(_context) {
6421
- while (1) {
6422
- switch (_context.prev = _context.next) {
6423
- case 0:
6424
- if (data === null || data === void 0 ? void 0 : data.length) {
6425
- _context.next = 3;
6426
- break;
6427
- }
6428
- message$1.warning('至少录入一条数据');
6429
- return _context.abrupt("return");
6430
- case 3:
6431
- if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6432
- return d.skuCode && d.name;
6433
- })) {
6434
- _context.next = 6;
6435
- break;
6436
- }
6437
- message$1.warning('请选择商品!');
6438
- return _context.abrupt("return");
6439
- case 6:
6440
- if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6441
- return d.count;
6442
- })) {
6443
- _context.next = 9;
6444
- break;
6445
- }
6446
- message$1.warning('请填写商品数量!');
6447
- return _context.abrupt("return");
6448
- case 9:
6449
- _context.next = 11;
6450
- return isSkuCanEntry(data);
6451
- case 11:
6452
- canEntryObject = _context.sent;
6453
- if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
6454
- _context.next = 16;
6455
- break;
6456
- }
6457
- 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) {
6458
- return /*#__PURE__*/React.createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
6459
- }));
6460
- messageInfo && message$1.warning({
6461
- content: messageInfo,
6462
- duration: 6
6463
- });
6464
- return _context.abrupt("return");
6465
- case 16:
6466
- setLoading(true);
6467
- onSaveCallback(data).then(function (res) {
6468
- {
6469
- var _Object$keys;
6470
- var initSuccessMessage = '保存成功';
6471
- var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
6472
- if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
6473
- (rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? message$1.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
6474
- } else {
6475
- message$1.success(initSuccessMessage);
6476
- }
6409
+ while (1) switch (_context.prev = _context.next) {
6410
+ case 0:
6411
+ if (data === null || data === void 0 ? void 0 : data.length) {
6412
+ _context.next = 3;
6413
+ break;
6414
+ }
6415
+ message$1.warning('至少录入一条数据');
6416
+ return _context.abrupt("return");
6417
+ case 3:
6418
+ if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6419
+ return d.skuCode && d.name;
6420
+ })) {
6421
+ _context.next = 6;
6422
+ break;
6423
+ }
6424
+ message$1.warning('请选择商品!');
6425
+ return _context.abrupt("return");
6426
+ case 6:
6427
+ if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6428
+ return d.count;
6429
+ })) {
6430
+ _context.next = 9;
6431
+ break;
6432
+ }
6433
+ message$1.warning('请填写商品数量!');
6434
+ return _context.abrupt("return");
6435
+ case 9:
6436
+ _context.next = 11;
6437
+ return isSkuCanEntry(data);
6438
+ case 11:
6439
+ canEntryObject = _context.sent;
6440
+ if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
6441
+ _context.next = 16;
6442
+ break;
6443
+ }
6444
+ 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) {
6445
+ return /*#__PURE__*/React.createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
6446
+ }));
6447
+ messageInfo && message$1.warning({
6448
+ content: messageInfo,
6449
+ duration: 6
6450
+ });
6451
+ return _context.abrupt("return");
6452
+ case 16:
6453
+ setLoading(true);
6454
+ onSaveCallback(data).then(function (res) {
6455
+ {
6456
+ var _Object$keys;
6457
+ var initSuccessMessage = '保存成功';
6458
+ var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
6459
+ if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
6460
+ (rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? message$1.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
6461
+ } else {
6462
+ message$1.success(initSuccessMessage);
6477
6463
  }
6478
- setLoading(false);
6479
- }).catch(function (Error) {
6480
- message$1.error(Error);
6481
- setLoading(false);
6482
- });
6483
- case 18:
6484
- case "end":
6485
- return _context.stop();
6486
- }
6464
+ }
6465
+ setLoading(false);
6466
+ }).catch(function (Error) {
6467
+ message$1.error(Error);
6468
+ setLoading(false);
6469
+ });
6470
+ case 18:
6471
+ case "end":
6472
+ return _context.stop();
6487
6473
  }
6488
6474
  }, _callee);
6489
6475
  }));
@@ -6630,6 +6616,13 @@ var sharingType = [{
6630
6616
  text: "私有",
6631
6617
  value: '20'
6632
6618
  }];
6619
+ var employeeType = [{
6620
+ text: "外部员工",
6621
+ value: '10'
6622
+ }, {
6623
+ text: "内部员工",
6624
+ value: '20'
6625
+ }];
6633
6626
 
6634
6627
  var getDicData = function getDicData(dicCode) {
6635
6628
  var dicData = {};
@@ -8383,12 +8376,14 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
8383
8376
  mappingTextField: 'name',
8384
8377
  mappingTextShowKeyField: 'username',
8385
8378
  mappingValueField: 'id',
8386
- otherParams: {
8379
+ otherParams: _objectSpread2(_objectSpread2({
8387
8380
  'qp-enable-eq': 10,
8388
- 'qp-employmentType-eq': 20,
8389
- 'qp-orgViewIds-like': 'administrative-organization-view',
8381
+ 'qp-orgViewIds-like': 'administrative-organization-view'
8382
+ }, (modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needTypeSearch) ? {} : {
8383
+ 'qp-employmentType-eq': 20
8384
+ }), {}, {
8390
8385
  sorter: 'desc-id'
8391
- },
8386
+ }),
8392
8387
  sourceName: 'employeeNumber'
8393
8388
  }, requestConfigProp);
8394
8389
  tableSearchForm = [{
@@ -8427,13 +8422,18 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
8427
8422
  }
8428
8423
  }
8429
8424
  }
8430
- }, {
8425
+ }].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needTypeSearch) ? [{
8426
+ name: 'qp-employmentType-eq',
8427
+ type: 'select',
8428
+ label: '员工类型',
8429
+ initialSource: employeeType
8430
+ }] : []), [{
8431
8431
  name: 'qp-email-like',
8432
8432
  label: '邮箱'
8433
8433
  }, {
8434
8434
  name: 'qp-officeTelephone-like',
8435
8435
  label: '手机号'
8436
- }];
8436
+ }]);
8437
8437
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
8438
8438
  'orgViewCode': 'administrative-organization-view'
8439
8439
  })]).then(function (x) {
@@ -8463,13 +8463,22 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
8463
8463
  render: function render(text) {
8464
8464
  return handleTextOverflow(text);
8465
8465
  }
8466
- }, {
8466
+ }].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needTypeSearch) ? [{
8467
+ title: '员工类型',
8468
+ dataIndex: 'employmentType',
8469
+ render: function render(text) {
8470
+ var _employeeType$find;
8471
+ return (_employeeType$find = employeeType.find(function (i) {
8472
+ return i.value === text;
8473
+ })) === null || _employeeType$find === void 0 ? void 0 : _employeeType$find.text;
8474
+ }
8475
+ }] : []), [{
8467
8476
  title: '邮箱',
8468
8477
  dataIndex: 'email'
8469
8478
  }, {
8470
8479
  title: '手机号',
8471
8480
  dataIndex: 'officeTelephone'
8472
- }]
8481
+ }])
8473
8482
  }, modalTableBusProps);
8474
8483
  }
8475
8484
  // 配送方式选择器
@@ -9675,7 +9684,7 @@ var CommodityEntry = function CommodityEntry(props) {
9675
9684
  * @LastEditTime: 2022-01-14 17:17:26
9676
9685
  * @LastEditors: rodchen
9677
9686
  */
9678
- var index$1 = (function (storageKeyString) {
9687
+ var index$2 = (function (storageKeyString) {
9679
9688
  var seconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
9680
9689
  var tipsCallFunction = arguments.length > 2 ? arguments[2] : undefined;
9681
9690
  if (typeof seconds !== 'number') throw new Error('seconds should be number');
@@ -9796,44 +9805,42 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
9796
9805
  var _ctx$form;
9797
9806
  var resData, coverData, data, dataList;
9798
9807
  return _regeneratorRuntime().wrap(function _callee$(_context) {
9799
- while (1) {
9800
- switch (_context.prev = _context.next) {
9801
- case 0:
9802
- resData = (res === null || res === void 0 ? void 0 : res.data) || [];
9803
- if (!(resData.status === '0' || resData.code === '000000')) {
9804
- _context.next = 13;
9805
- break;
9806
- }
9807
- data = resData.data;
9808
- if (!remoteSource.converter) {
9809
- _context.next = 9;
9810
- break;
9811
- }
9812
- _context.next = 6;
9813
- return remoteSource.converter({
9814
- data: [data]
9815
- });
9816
- case 6:
9817
- coverData = _context.sent;
9818
- _context.next = 11;
9808
+ while (1) switch (_context.prev = _context.next) {
9809
+ case 0:
9810
+ resData = (res === null || res === void 0 ? void 0 : res.data) || [];
9811
+ if (!(resData.status === '0' || resData.code === '000000')) {
9812
+ _context.next = 13;
9819
9813
  break;
9820
- case 9:
9821
- dataList = data && Array.isArray(data) ? data : data && [data] || [];
9822
- coverData = dataList.length && dataList.map(function (ites) {
9823
- return mapSearchTree(ites);
9824
- }) || [];
9825
- case 11:
9826
- _context.next = 14;
9814
+ }
9815
+ data = resData.data;
9816
+ if (!remoteSource.converter) {
9817
+ _context.next = 9;
9827
9818
  break;
9828
- case 13:
9829
- coverData = [];
9830
- case 14:
9831
- setTreeData(coverData);
9832
- ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
9833
- case 16:
9834
- case "end":
9835
- return _context.stop();
9836
- }
9819
+ }
9820
+ _context.next = 6;
9821
+ return remoteSource.converter({
9822
+ data: [data]
9823
+ });
9824
+ case 6:
9825
+ coverData = _context.sent;
9826
+ _context.next = 11;
9827
+ break;
9828
+ case 9:
9829
+ dataList = data && Array.isArray(data) ? data : data && [data] || [];
9830
+ coverData = dataList.length && dataList.map(function (ites) {
9831
+ return mapSearchTree(ites);
9832
+ }) || [];
9833
+ case 11:
9834
+ _context.next = 14;
9835
+ break;
9836
+ case 13:
9837
+ coverData = [];
9838
+ case 14:
9839
+ setTreeData(coverData);
9840
+ ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
9841
+ case 16:
9842
+ case "end":
9843
+ return _context.stop();
9837
9844
  }
9838
9845
  }, _callee);
9839
9846
  }));
@@ -10040,7 +10047,7 @@ var BusinessTreeSearchSelect$1 = /*#__PURE__*/React.memo(BusinessTreeSearchSelec
10040
10047
  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";
10041
10048
  styleInject(css_248z$8);
10042
10049
 
10043
- var index$2 = (function (props) {
10050
+ var index$3 = (function (props) {
10044
10051
  var _props$formStatusMapp = props.formStatusMapping,
10045
10052
  formStatusMapping = _props$formStatusMapp === void 0 ? [] : _props$formStatusMapp;
10046
10053
  return /*#__PURE__*/React.createElement("div", {
@@ -11464,7 +11471,7 @@ var iconMap = {
11464
11471
  src: moreIcon
11465
11472
  })
11466
11473
  };
11467
- var index$3 = (function (props) {
11474
+ var index$4 = (function (props) {
11468
11475
  var _useLocation = useLocation(),
11469
11476
  pathname = _useLocation.pathname;
11470
11477
  var _useState = useState(pathname + 'id'),
@@ -11681,7 +11688,7 @@ var css_248z$d = ".home_page_head {\n height: 54px;\n display: flex;\n justif
11681
11688
  styleInject(css_248z$d);
11682
11689
 
11683
11690
  var _excluded$c = ["children"];
11684
- var index$4 = (function (props) {
11691
+ var index$5 = (function (props) {
11685
11692
  var _useLocation = useLocation(),
11686
11693
  pathname = _useLocation.pathname;
11687
11694
  var _useState = useState(pathname + 'id'),
@@ -13980,21 +13987,19 @@ function _outLogin() {
13980
13987
  _outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
13981
13988
  var res;
13982
13989
  return _regeneratorRuntime().wrap(function _callee$(_context) {
13983
- while (1) {
13984
- switch (_context.prev = _context.next) {
13985
- case 0:
13986
- _context.next = 2;
13987
- return axios({
13988
- url: '/user/web/loginOut',
13989
- method: 'GET'
13990
- });
13991
- case 2:
13992
- res = _context.sent;
13993
- return _context.abrupt("return", res);
13994
- case 4:
13995
- case "end":
13996
- return _context.stop();
13997
- }
13990
+ while (1) switch (_context.prev = _context.next) {
13991
+ case 0:
13992
+ _context.next = 2;
13993
+ return axios({
13994
+ url: '/user/web/loginOut',
13995
+ method: 'GET'
13996
+ });
13997
+ case 2:
13998
+ res = _context.sent;
13999
+ return _context.abrupt("return", res);
14000
+ case 4:
14001
+ case "end":
14002
+ return _context.stop();
13998
14003
  }
13999
14004
  }, _callee);
14000
14005
  }));
@@ -14123,31 +14128,29 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
14123
14128
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
14124
14129
  var sessionId;
14125
14130
  return _regeneratorRuntime().wrap(function _callee$(_context) {
14126
- while (1) {
14127
- switch (_context.prev = _context.next) {
14128
- case 0:
14129
- _context.next = 2;
14130
- return getSessionId();
14131
- case 2:
14132
- sessionId = _context.sent;
14133
- _context.next = 5;
14134
- return outLogin({
14135
- sessionId: sessionId
14131
+ while (1) switch (_context.prev = _context.next) {
14132
+ case 0:
14133
+ _context.next = 2;
14134
+ return getSessionId();
14135
+ case 2:
14136
+ sessionId = _context.sent;
14137
+ _context.next = 5;
14138
+ return outLogin({
14139
+ sessionId: sessionId
14140
+ });
14141
+ case 5:
14142
+ // @ts-ignore
14143
+ if (BUILD_TYPE) {
14144
+ message$1.success('退出登录成功');
14145
+ history.replace({
14146
+ pathname: '/user/login'
14136
14147
  });
14137
- case 5:
14138
- // @ts-ignore
14139
- if (BUILD_TYPE) {
14140
- message$1.success('退出登录成功');
14141
- history.replace({
14142
- pathname: '/user/login'
14143
- });
14144
- } else {
14145
- setLoginOutPath();
14146
- }
14147
- case 6:
14148
- case "end":
14149
- return _context.stop();
14150
- }
14148
+ } else {
14149
+ setLoginOutPath();
14150
+ }
14151
+ case 6:
14152
+ case "end":
14153
+ return _context.stop();
14151
14154
  }
14152
14155
  }, _callee);
14153
14156
  }));
@@ -15975,6 +15978,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
15975
15978
  showSubMenu: isShow
15976
15979
  });
15977
15980
  }, 500);
15981
+ //设置tabs标签左右滚动
15978
15982
  _this.setTabNavTransLate = function (num) {
15979
15983
  var _document$getElementB, _document$getElementB2, _document$getElementB3, _document$getElementB4, _document$defaultView;
15980
15984
  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];
@@ -16655,14 +16659,12 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
16655
16659
  request: function () {
16656
16660
  var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
16657
16661
  return _regeneratorRuntime().wrap(function _callee$(_context) {
16658
- while (1) {
16659
- switch (_context.prev = _context.next) {
16660
- case 0:
16661
- return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
16662
- case 1:
16663
- case "end":
16664
- return _context.stop();
16665
- }
16662
+ while (1) switch (_context.prev = _context.next) {
16663
+ case 0:
16664
+ return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
16665
+ case 1:
16666
+ case "end":
16667
+ return _context.stop();
16666
16668
  }
16667
16669
  }, _callee);
16668
16670
  }));
@@ -16800,7 +16802,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
16800
16802
  }]);
16801
16803
  return WrapperComponent;
16802
16804
  }(React.Component);
16803
- var index$5 = (function (props) {
16805
+ var index$6 = (function (props) {
16804
16806
  var _useModel = useModel('@@initialState'),
16805
16807
  _useModel$initialStat = _useModel.initialState,
16806
16808
  initialState = _useModel$initialStat === void 0 ? {} : _useModel$initialStat;
@@ -17041,7 +17043,7 @@ var FixedScrollBar = function FixedScrollBar(_ref, ref) {
17041
17043
  };
17042
17044
  var FixedScrollBar$1 = /*#__PURE__*/React.forwardRef(FixedScrollBar);
17043
17045
 
17044
- var index$6 = /*#__PURE__*/forwardRef(function (props, ref) {
17046
+ var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
17045
17047
  var _useState = useState(false),
17046
17048
  _useState2 = _slicedToArray(_useState, 2),
17047
17049
  show = _useState2[0],
@@ -24342,28 +24344,26 @@ var valueType = {
24342
24344
  var getDynamicDict = /*#__PURE__*/function () {
24343
24345
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
24344
24346
  return _regeneratorRuntime().wrap(function _callee$(_context) {
24345
- while (1) {
24346
- switch (_context.prev = _context.next) {
24347
- case 0:
24348
- _context.next = 2;
24349
- return request$1({
24350
- url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
24351
- converter: function converter(_ref2) {
24352
- var data = _ref2.data;
24353
- return data === null || data === void 0 ? void 0 : data.map(function (d) {
24354
- return {
24355
- text: d.name,
24356
- value: d.code || d.brandCode
24357
- };
24358
- });
24359
- }
24360
- });
24361
- case 2:
24362
- return _context.abrupt("return", _context.sent);
24363
- case 3:
24364
- case "end":
24365
- return _context.stop();
24366
- }
24347
+ while (1) switch (_context.prev = _context.next) {
24348
+ case 0:
24349
+ _context.next = 2;
24350
+ return request$1({
24351
+ url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
24352
+ converter: function converter(_ref2) {
24353
+ var data = _ref2.data;
24354
+ return data === null || data === void 0 ? void 0 : data.map(function (d) {
24355
+ return {
24356
+ text: d.name,
24357
+ value: d.code || d.brandCode
24358
+ };
24359
+ });
24360
+ }
24361
+ });
24362
+ case 2:
24363
+ return _context.abrupt("return", _context.sent);
24364
+ case 3:
24365
+ case "end":
24366
+ return _context.stop();
24367
24367
  }
24368
24368
  }, _callee);
24369
24369
  }));
@@ -24413,55 +24413,53 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
24413
24413
  useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
24414
24414
  var _ref$current, source;
24415
24415
  return _regeneratorRuntime().wrap(function _callee$(_context) {
24416
- while (1) {
24417
- switch (_context.prev = _context.next) {
24418
- case 0:
24419
- _context.next = 2;
24420
- return setIsShowAndType(function (prev) {
24421
- if (record.inputType === 20 || record.inputType === 30) {
24422
- return {
24423
- isShow: true,
24424
- singleOrMultiple: record.inputType,
24425
- type: record.choiceType
24426
- };
24427
- }
24428
- return prev;
24429
- });
24430
- case 2:
24431
- if (!record.dictionaryCode) {
24432
- _context.next = 17;
24433
- break;
24434
- }
24435
- if (!(record.choiceType == 20)) {
24436
- _context.next = 7;
24437
- break;
24416
+ while (1) switch (_context.prev = _context.next) {
24417
+ case 0:
24418
+ _context.next = 2;
24419
+ return setIsShowAndType(function (prev) {
24420
+ if (record.inputType === 20 || record.inputType === 30) {
24421
+ return {
24422
+ isShow: true,
24423
+ singleOrMultiple: record.inputType,
24424
+ type: record.choiceType
24425
+ };
24438
24426
  }
24439
- _context.t0 = getDictionarySource(record.dictionaryCode);
24440
- _context.next = 15;
24427
+ return prev;
24428
+ });
24429
+ case 2:
24430
+ if (!record.dictionaryCode) {
24431
+ _context.next = 17;
24441
24432
  break;
24442
- case 7:
24443
- if (!(record.choiceType == 30)) {
24444
- _context.next = 13;
24445
- break;
24446
- }
24447
- _context.next = 10;
24448
- return getDynamicDict(record.dictionaryCode);
24449
- case 10:
24450
- _context.t1 = _context.sent;
24451
- _context.next = 14;
24433
+ }
24434
+ if (!(record.choiceType == 20)) {
24435
+ _context.next = 7;
24452
24436
  break;
24453
- case 13:
24454
- _context.t1 = [];
24455
- case 14:
24456
- _context.t0 = _context.t1;
24457
- case 15:
24458
- source = _context.t0;
24459
- // @ts-ignore
24460
- ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
24461
- case 17:
24462
- case "end":
24463
- return _context.stop();
24464
- }
24437
+ }
24438
+ _context.t0 = getDictionarySource(record.dictionaryCode);
24439
+ _context.next = 15;
24440
+ break;
24441
+ case 7:
24442
+ if (!(record.choiceType == 30)) {
24443
+ _context.next = 13;
24444
+ break;
24445
+ }
24446
+ _context.next = 10;
24447
+ return getDynamicDict(record.dictionaryCode);
24448
+ case 10:
24449
+ _context.t1 = _context.sent;
24450
+ _context.next = 14;
24451
+ break;
24452
+ case 13:
24453
+ _context.t1 = [];
24454
+ case 14:
24455
+ _context.t0 = _context.t1;
24456
+ case 15:
24457
+ source = _context.t0;
24458
+ // @ts-ignore
24459
+ ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
24460
+ case 17:
24461
+ case "end":
24462
+ return _context.stop();
24465
24463
  }
24466
24464
  }, _callee);
24467
24465
  })));
@@ -24529,30 +24527,28 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
24529
24527
  var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
24530
24528
  var form, values, name, relates, source;
24531
24529
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
24532
- while (1) {
24533
- switch (_context2.prev = _context2.next) {
24534
- case 0:
24535
- form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
24536
- if (values[0]) {
24537
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
24538
- form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
24539
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
24540
- }
24541
- if (!values[1]) {
24542
- _context2.next = 9;
24543
- break;
24544
- }
24545
- _context2.next = 5;
24546
- return getDynamicDict(record.dictionaryCode || values[1]);
24547
- case 5:
24548
- source = _context2.sent;
24530
+ while (1) switch (_context2.prev = _context2.next) {
24531
+ case 0:
24532
+ form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
24533
+ if (values[0]) {
24549
24534
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
24550
24535
  form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
24551
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
24552
- case 9:
24553
- case "end":
24554
- return _context2.stop();
24555
- }
24536
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
24537
+ }
24538
+ if (!values[1]) {
24539
+ _context2.next = 9;
24540
+ break;
24541
+ }
24542
+ _context2.next = 5;
24543
+ return getDynamicDict(record.dictionaryCode || values[1]);
24544
+ case 5:
24545
+ source = _context2.sent;
24546
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
24547
+ form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
24548
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
24549
+ case 9:
24550
+ case "end":
24551
+ return _context2.stop();
24556
24552
  }
24557
24553
  }, _callee2);
24558
24554
  }));
@@ -25012,43 +25008,41 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
25012
25008
  var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
25013
25009
  var values, name, form, source;
25014
25010
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
25015
- while (1) {
25016
- switch (_context3.prev = _context3.next) {
25017
- case 0:
25018
- values = _ref10.values, name = _ref10.name, form = _ref10.form;
25019
- if (values[1] === 40) {
25020
- form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
25021
- form.setFieldVisible(name, false);
25022
- }
25023
- if (!(values[0] === 30)) {
25024
- _context3.next = 10;
25025
- break;
25026
- }
25027
- _context3.next = 5;
25028
- return request$1({
25029
- url: '/basic/dictDynamicItem/queryList',
25030
- converter: function converter(_ref11) {
25031
- var data = _ref11.data;
25032
- return data === null || data === void 0 ? void 0 : data.map(function (d) {
25033
- return {
25034
- text: d.dictCode,
25035
- value: d.dictCode
25036
- };
25037
- });
25038
- }
25039
- });
25040
- case 5:
25041
- source = _context3.sent;
25042
- form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
25043
- form.setFieldVisible(name, true);
25044
- _context3.next = 11;
25045
- break;
25046
- case 10:
25011
+ while (1) switch (_context3.prev = _context3.next) {
25012
+ case 0:
25013
+ values = _ref10.values, name = _ref10.name, form = _ref10.form;
25014
+ if (values[1] === 40) {
25015
+ form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
25047
25016
  form.setFieldVisible(name, false);
25048
- case 11:
25049
- case "end":
25050
- return _context3.stop();
25051
- }
25017
+ }
25018
+ if (!(values[0] === 30)) {
25019
+ _context3.next = 10;
25020
+ break;
25021
+ }
25022
+ _context3.next = 5;
25023
+ return request$1({
25024
+ url: '/basic/dictDynamicItem/queryList',
25025
+ converter: function converter(_ref11) {
25026
+ var data = _ref11.data;
25027
+ return data === null || data === void 0 ? void 0 : data.map(function (d) {
25028
+ return {
25029
+ text: d.dictCode,
25030
+ value: d.dictCode
25031
+ };
25032
+ });
25033
+ }
25034
+ });
25035
+ case 5:
25036
+ source = _context3.sent;
25037
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
25038
+ form.setFieldVisible(name, true);
25039
+ _context3.next = 11;
25040
+ break;
25041
+ case 10:
25042
+ form.setFieldVisible(name, false);
25043
+ case 11:
25044
+ case "end":
25045
+ return _context3.stop();
25052
25046
  }
25053
25047
  }, _callee3);
25054
25048
  }));
@@ -25237,66 +25231,64 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
25237
25231
  var _ref$current4, _res$editableStatus;
25238
25232
  var res, _res$defaultValue;
25239
25233
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
25240
- while (1) {
25241
- switch (_context4.prev = _context4.next) {
25242
- case 0:
25243
- _context4.next = 2;
25244
- return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
25245
- case 2:
25246
- res = _context4.sent;
25247
- res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
25248
- res.fieldGroup = record.fieldGroup;
25249
- res.businessType = record.businessType;
25250
- res.info = {
25251
- enumeration: res.enumeration,
25252
- dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
25253
- formula: res.formula,
25254
- scale: res.scale,
25255
- variable: res.variable
25256
- };
25257
- res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
25258
- res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
25259
- res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
25260
- if (res.inputType === 40) {
25261
- res.valueType = 22;
25234
+ while (1) switch (_context4.prev = _context4.next) {
25235
+ case 0:
25236
+ _context4.next = 2;
25237
+ return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
25238
+ case 2:
25239
+ res = _context4.sent;
25240
+ res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
25241
+ res.fieldGroup = record.fieldGroup;
25242
+ res.businessType = record.businessType;
25243
+ res.info = {
25244
+ enumeration: res.enumeration,
25245
+ dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
25246
+ formula: res.formula,
25247
+ scale: res.scale,
25248
+ variable: res.variable
25249
+ };
25250
+ res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
25251
+ res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
25252
+ res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
25253
+ if (res.inputType === 40) {
25254
+ res.valueType = 22;
25255
+ }
25256
+ // 把数组处理成文本
25257
+ if (res.inputType === 30) {
25258
+ if (res.defaultValue) {
25259
+ res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
25262
25260
  }
25263
- // 把数组处理成文本
25264
- if (res.inputType === 30) {
25265
- if (res.defaultValue) {
25266
- res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
25267
- }
25261
+ }
25262
+ res.fieldMapping = res.fieldMapping || '';
25263
+ delete res.formula;
25264
+ delete res.showValue;
25265
+ if (!(mode === 'create')) {
25266
+ _context4.next = 18;
25267
+ break;
25268
+ }
25269
+ request$1({
25270
+ url: "/basic/flow/businessField",
25271
+ method: 'POST',
25272
+ params: res,
25273
+ successMessage: '创建成功!',
25274
+ converter: function converter() {
25275
+ onParentOk();
25268
25276
  }
25269
- res.fieldMapping = res.fieldMapping || '';
25270
- delete res.formula;
25271
- delete res.showValue;
25272
- if (!(mode === 'create')) {
25273
- _context4.next = 18;
25274
- break;
25277
+ });
25278
+ return _context4.abrupt("return");
25279
+ case 18:
25280
+ request$1({
25281
+ url: "/basic/flow/businessField/".concat(record.id),
25282
+ method: 'PATCH',
25283
+ params: res,
25284
+ successMessage: '修改成功!',
25285
+ converter: function converter() {
25286
+ onParentOk();
25275
25287
  }
25276
- request$1({
25277
- url: "/basic/flow/businessField",
25278
- method: 'POST',
25279
- params: res,
25280
- successMessage: '创建成功!',
25281
- converter: function converter() {
25282
- onParentOk();
25283
- }
25284
- });
25285
- return _context4.abrupt("return");
25286
- case 18:
25287
- request$1({
25288
- url: "/basic/flow/businessField/".concat(record.id),
25289
- method: 'PATCH',
25290
- params: res,
25291
- successMessage: '修改成功!',
25292
- converter: function converter() {
25293
- onParentOk();
25294
- }
25295
- });
25296
- case 19:
25297
- case "end":
25298
- return _context4.stop();
25299
- }
25288
+ });
25289
+ case 19:
25290
+ case "end":
25291
+ return _context4.stop();
25300
25292
  }
25301
25293
  }, _callee4);
25302
25294
  }));
@@ -26081,28 +26073,26 @@ var BsCascader = function BsCascader(_ref) {
26081
26073
  useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
26082
26074
  var resData, data;
26083
26075
  return _regeneratorRuntime().wrap(function _callee$(_context) {
26084
- while (1) {
26085
- switch (_context.prev = _context.next) {
26086
- case 0:
26087
- if (!(!source && initRequestSource)) {
26088
- _context.next = 6;
26089
- break;
26090
- }
26091
- _context.next = 3;
26092
- return initRequestSource();
26093
- case 3:
26094
- resData = _context.sent;
26095
- data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
26096
- return _objectSpread2(_objectSpread2({}, item), {}, {
26097
- label: item.text,
26098
- isLeaf: false
26099
- });
26100
- })) || [];
26101
- setHandSource(data);
26102
- case 6:
26103
- case "end":
26104
- return _context.stop();
26105
- }
26076
+ while (1) switch (_context.prev = _context.next) {
26077
+ case 0:
26078
+ if (!(!source && initRequestSource)) {
26079
+ _context.next = 6;
26080
+ break;
26081
+ }
26082
+ _context.next = 3;
26083
+ return initRequestSource();
26084
+ case 3:
26085
+ resData = _context.sent;
26086
+ data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
26087
+ return _objectSpread2(_objectSpread2({}, item), {}, {
26088
+ label: item.text,
26089
+ isLeaf: false
26090
+ });
26091
+ })) || [];
26092
+ setHandSource(data);
26093
+ case 6:
26094
+ case "end":
26095
+ return _context.stop();
26106
26096
  }
26107
26097
  }, _callee);
26108
26098
  })), []);
@@ -26234,20 +26224,18 @@ function getRegularThresholdRange(_x) {
26234
26224
  function _getRegularThresholdRange() {
26235
26225
  _getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
26236
26226
  return _regeneratorRuntime().wrap(function _callee$(_context) {
26237
- while (1) {
26238
- switch (_context.prev = _context.next) {
26239
- case 0:
26240
- return _context.abrupt("return", axios({
26241
- url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
26242
- method: 'POST',
26243
- data: _objectSpread2(_objectSpread2({}, params), {}, {
26244
- queryIdentify: undefined
26245
- })
26246
- }));
26247
- case 1:
26248
- case "end":
26249
- return _context.stop();
26250
- }
26227
+ while (1) switch (_context.prev = _context.next) {
26228
+ case 0:
26229
+ return _context.abrupt("return", axios({
26230
+ url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
26231
+ method: 'POST',
26232
+ data: _objectSpread2(_objectSpread2({}, params), {}, {
26233
+ queryIdentify: undefined
26234
+ })
26235
+ }));
26236
+ case 1:
26237
+ case "end":
26238
+ return _context.stop();
26251
26239
  }
26252
26240
  }, _callee);
26253
26241
  }));
@@ -26386,137 +26374,136 @@ var RuleField = /*#__PURE__*/function (_Component) {
26386
26374
  _this.getRegularThresholdRange(queryIdentify, propertyCode, queryIdentifyType);
26387
26375
  });
26388
26376
  };
26377
+ //规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
26389
26378
  _this.getRegularThresholdRange = /*#__PURE__*/function () {
26390
26379
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
26391
26380
  var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
26392
26381
  return _regeneratorRuntime().wrap(function _callee$(_context) {
26393
- while (1) {
26394
- switch (_context.prev = _context.next) {
26395
- case 0:
26396
- if (queryIdentify) {
26397
- _context.next = 2;
26398
- break;
26399
- }
26400
- return _context.abrupt("return");
26401
- case 2:
26402
- thresholdQuery = _this.state.thresholdQuery;
26403
- extraRequestUrl = '';
26404
- querParams = setParams(propertyCode, thresholdQuery);
26405
- if (!queryIdentityInfo.find(function (item) {
26406
- return item.identity == propertyCode;
26407
- })) {
26408
- _context.next = 10;
26409
- break;
26410
- }
26411
- //判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
26412
- needQueryList = queryIdentityInfo.find(function (item) {
26413
- return item.identity == propertyCode;
26414
- }).queryParam.filter(function (item) {
26415
- return item.isRequired;
26416
- }).map(function (item) {
26417
- return item.queryKey;
26418
- });
26419
- if (!needQueryList.some(function (item) {
26420
- return !querParams[item] || !querParams[item].length;
26421
- })) {
26422
- _context.next = 9;
26423
- break;
26424
- }
26425
- return _context.abrupt("return");
26426
- case 9:
26427
- extraRequestUrl = queryIdentityInfo.find(function (item) {
26428
- return item.identity == propertyCode;
26429
- }).requestUrl || '';
26430
- case 10:
26431
- if (queryIdentifyType === 'dictCodeIdentify') {
26432
- extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
26433
- querParams = {
26434
- dictCode: queryIdentify
26435
- };
26436
- } else if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26437
- extraRequestUrl = "dictDynamicItem/getDynamicData/".concat(queryIdentify); // 字典接口
26438
- // querParams = { dictCode: queryIdentify }
26439
- }
26440
- if (!extraRequestUrl) {
26441
- _context.next = 16;
26442
- break;
26443
- }
26444
- if (queryIdentify == 'maintain_area_code') {
26445
- extraRequestUrl = "/basic/".concat(extraRequestUrl).concat(querParams.memberCardCode, "?").concat(stringify(querParams));
26446
- } else if (queryIdentifyType == 'dictCodeIdentify') {
26447
- extraRequestUrl = "/basic/".concat(extraRequestUrl, "?").concat(stringify(querParams));
26448
- } else if (queryIdentifyType == 'dynamicDictCodeIdentify') {
26449
- extraRequestUrl = "/basic/".concat(extraRequestUrl);
26450
- }
26451
- request$1({
26452
- url: extraRequestUrl,
26453
- method: 'get',
26454
- converter: function converter(res) {
26455
- if (handleError(res)) {
26456
- var _handleData = (res === null || res === void 0 ? void 0 : res.data) || [];
26457
- if (queryIdentifyType === 'dictCodeIdentify') {
26458
- var _handleData2;
26459
- _handleData = ((_handleData2 = _handleData) === null || _handleData2 === void 0 ? void 0 : _handleData2.length) ? _handleData.map(function (i) {
26460
- return {
26461
- code: i.dictItemCode,
26462
- name: i.dictItemName
26463
- };
26464
- }) : [];
26465
- }
26466
- if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26467
- var _handleData3;
26468
- _handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
26469
- return {
26470
- code: i.code.toString(),
26471
- name: i.name
26472
- };
26473
- }) : [];
26474
- }
26475
- _this.setState({
26476
- thresholdList: _handleData
26477
- });
26382
+ while (1) switch (_context.prev = _context.next) {
26383
+ case 0:
26384
+ if (queryIdentify) {
26385
+ _context.next = 2;
26386
+ break;
26387
+ }
26388
+ return _context.abrupt("return");
26389
+ case 2:
26390
+ thresholdQuery = _this.state.thresholdQuery;
26391
+ extraRequestUrl = '';
26392
+ querParams = setParams(propertyCode, thresholdQuery);
26393
+ if (!queryIdentityInfo.find(function (item) {
26394
+ return item.identity == propertyCode;
26395
+ })) {
26396
+ _context.next = 10;
26397
+ break;
26398
+ }
26399
+ //判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
26400
+ needQueryList = queryIdentityInfo.find(function (item) {
26401
+ return item.identity == propertyCode;
26402
+ }).queryParam.filter(function (item) {
26403
+ return item.isRequired;
26404
+ }).map(function (item) {
26405
+ return item.queryKey;
26406
+ });
26407
+ if (!needQueryList.some(function (item) {
26408
+ return !querParams[item] || !querParams[item].length;
26409
+ })) {
26410
+ _context.next = 9;
26411
+ break;
26412
+ }
26413
+ return _context.abrupt("return");
26414
+ case 9:
26415
+ extraRequestUrl = queryIdentityInfo.find(function (item) {
26416
+ return item.identity == propertyCode;
26417
+ }).requestUrl || '';
26418
+ case 10:
26419
+ if (queryIdentifyType === 'dictCodeIdentify') {
26420
+ extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
26421
+ querParams = {
26422
+ dictCode: queryIdentify
26423
+ };
26424
+ } else if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26425
+ extraRequestUrl = "dictDynamicItem/getDynamicData/".concat(queryIdentify); // 字典接口
26426
+ // querParams = { dictCode: queryIdentify }
26427
+ }
26428
+ if (!extraRequestUrl) {
26429
+ _context.next = 16;
26430
+ break;
26431
+ }
26432
+ if (queryIdentify == 'maintain_area_code') {
26433
+ extraRequestUrl = "/basic/".concat(extraRequestUrl).concat(querParams.memberCardCode, "?").concat(stringify(querParams));
26434
+ } else if (queryIdentifyType == 'dictCodeIdentify') {
26435
+ extraRequestUrl = "/basic/".concat(extraRequestUrl, "?").concat(stringify(querParams));
26436
+ } else if (queryIdentifyType == 'dynamicDictCodeIdentify') {
26437
+ extraRequestUrl = "/basic/".concat(extraRequestUrl);
26438
+ }
26439
+ request$1({
26440
+ url: extraRequestUrl,
26441
+ method: 'get',
26442
+ converter: function converter(res) {
26443
+ if (handleError(res)) {
26444
+ var _handleData = (res === null || res === void 0 ? void 0 : res.data) || [];
26445
+ if (queryIdentifyType === 'dictCodeIdentify') {
26446
+ var _handleData2;
26447
+ _handleData = ((_handleData2 = _handleData) === null || _handleData2 === void 0 ? void 0 : _handleData2.length) ? _handleData.map(function (i) {
26448
+ return {
26449
+ code: i.dictItemCode,
26450
+ name: i.dictItemName
26451
+ };
26452
+ }) : [];
26478
26453
  }
26479
- return handleData;
26454
+ if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26455
+ var _handleData3;
26456
+ _handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
26457
+ return {
26458
+ code: i.code.toString(),
26459
+ name: i.name
26460
+ };
26461
+ }) : [];
26462
+ }
26463
+ _this.setState({
26464
+ thresholdList: _handleData
26465
+ });
26480
26466
  }
26481
- });
26482
- _context.next = 29;
26483
- break;
26484
- case 16:
26485
- if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
26486
- _context.next = 20;
26487
- break;
26467
+ return handleData;
26488
26468
  }
26489
- _this.setState({
26490
- thresholdList: queryIdentify
26491
- });
26492
- _context.next = 29;
26469
+ });
26470
+ _context.next = 29;
26471
+ break;
26472
+ case 16:
26473
+ if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
26474
+ _context.next = 20;
26493
26475
  break;
26494
- case 20:
26495
- if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
26496
- _context.next = 24;
26497
- break;
26498
- }
26499
- // TODO待处理
26476
+ }
26477
+ _this.setState({
26478
+ thresholdList: queryIdentify
26479
+ });
26480
+ _context.next = 29;
26481
+ break;
26482
+ case 20:
26483
+ if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
26484
+ _context.next = 24;
26485
+ break;
26486
+ }
26487
+ // TODO待处理
26488
+ _this.setState({
26489
+ thresholdList: []
26490
+ });
26491
+ _context.next = 29;
26492
+ break;
26493
+ case 24:
26494
+ querParams.queryIdentify = queryIdentify;
26495
+ _context.next = 27;
26496
+ return getRegularThresholdRange(querParams);
26497
+ case 27:
26498
+ res = _context.sent;
26499
+ if (handleError(res)) {
26500
26500
  _this.setState({
26501
- thresholdList: []
26501
+ thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
26502
26502
  });
26503
- _context.next = 29;
26504
- break;
26505
- case 24:
26506
- querParams.queryIdentify = queryIdentify;
26507
- _context.next = 27;
26508
- return getRegularThresholdRange(querParams);
26509
- case 27:
26510
- res = _context.sent;
26511
- if (handleError(res)) {
26512
- _this.setState({
26513
- thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
26514
- });
26515
- }
26516
- case 29:
26517
- case "end":
26518
- return _context.stop();
26519
- }
26503
+ }
26504
+ case 29:
26505
+ case "end":
26506
+ return _context.stop();
26520
26507
  }
26521
26508
  }, _callee);
26522
26509
  }));
@@ -27335,32 +27322,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
27335
27322
  notChangeOnSelect: true,
27336
27323
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
27337
27324
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
27338
- while (1) {
27339
- switch (_context2.prev = _context2.next) {
27340
- case 0:
27341
- _context2.next = 2;
27342
- return request$1({
27343
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27344
- method: 'get',
27345
- converter: function converter(_ref3) {
27346
- var data = _ref3.data;
27347
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27348
- return {
27349
- text: item.name,
27350
- value: item.id,
27351
- level: item.level,
27352
- id: item.id
27353
- };
27354
- }) : [];
27355
- return handleData;
27356
- }
27357
- });
27358
- case 2:
27359
- return _context2.abrupt("return", _context2.sent);
27360
- case 3:
27361
- case "end":
27362
- return _context2.stop();
27363
- }
27325
+ while (1) switch (_context2.prev = _context2.next) {
27326
+ case 0:
27327
+ _context2.next = 2;
27328
+ return request$1({
27329
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27330
+ method: 'get',
27331
+ converter: function converter(_ref3) {
27332
+ var data = _ref3.data;
27333
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27334
+ return {
27335
+ text: item.name,
27336
+ value: item.id,
27337
+ level: item.level,
27338
+ id: item.id
27339
+ };
27340
+ }) : [];
27341
+ return handleData;
27342
+ }
27343
+ });
27344
+ case 2:
27345
+ return _context2.abrupt("return", _context2.sent);
27346
+ case 3:
27347
+ case "end":
27348
+ return _context2.stop();
27364
27349
  }
27365
27350
  }, _callee2);
27366
27351
  })),
@@ -27386,32 +27371,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
27386
27371
  notChangeOnSelect: true,
27387
27372
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
27388
27373
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
27389
- while (1) {
27390
- switch (_context3.prev = _context3.next) {
27391
- case 0:
27392
- _context3.next = 2;
27393
- return request$1({
27394
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27395
- method: 'get',
27396
- converter: function converter(_ref5) {
27397
- var data = _ref5.data;
27398
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27399
- return {
27400
- text: item.name,
27401
- value: item.id,
27402
- level: item.level,
27403
- id: item.id
27404
- };
27405
- }) : [];
27406
- return handleData;
27407
- }
27408
- });
27409
- case 2:
27410
- return _context3.abrupt("return", _context3.sent);
27411
- case 3:
27412
- case "end":
27413
- return _context3.stop();
27414
- }
27374
+ while (1) switch (_context3.prev = _context3.next) {
27375
+ case 0:
27376
+ _context3.next = 2;
27377
+ return request$1({
27378
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27379
+ method: 'get',
27380
+ converter: function converter(_ref5) {
27381
+ var data = _ref5.data;
27382
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27383
+ return {
27384
+ text: item.name,
27385
+ value: item.id,
27386
+ level: item.level,
27387
+ id: item.id
27388
+ };
27389
+ }) : [];
27390
+ return handleData;
27391
+ }
27392
+ });
27393
+ case 2:
27394
+ return _context3.abrupt("return", _context3.sent);
27395
+ case 3:
27396
+ case "end":
27397
+ return _context3.stop();
27415
27398
  }
27416
27399
  }, _callee3);
27417
27400
  })),
@@ -27439,32 +27422,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
27439
27422
  notChangeOnSelect: true,
27440
27423
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
27441
27424
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
27442
- while (1) {
27443
- switch (_context4.prev = _context4.next) {
27444
- case 0:
27445
- _context4.next = 2;
27446
- return request$1({
27447
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27448
- method: 'get',
27449
- converter: function converter(_ref7) {
27450
- var data = _ref7.data;
27451
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27452
- return {
27453
- text: item.name,
27454
- value: item.id,
27455
- level: item.level,
27456
- id: item.id
27457
- };
27458
- }) : [];
27459
- return handleData;
27460
- }
27461
- });
27462
- case 2:
27463
- return _context4.abrupt("return", _context4.sent);
27464
- case 3:
27465
- case "end":
27466
- return _context4.stop();
27467
- }
27425
+ while (1) switch (_context4.prev = _context4.next) {
27426
+ case 0:
27427
+ _context4.next = 2;
27428
+ return request$1({
27429
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27430
+ method: 'get',
27431
+ converter: function converter(_ref7) {
27432
+ var data = _ref7.data;
27433
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27434
+ return {
27435
+ text: item.name,
27436
+ value: item.id,
27437
+ level: item.level,
27438
+ id: item.id
27439
+ };
27440
+ }) : [];
27441
+ return handleData;
27442
+ }
27443
+ });
27444
+ case 2:
27445
+ return _context4.abrupt("return", _context4.sent);
27446
+ case 3:
27447
+ case "end":
27448
+ return _context4.stop();
27468
27449
  }
27469
27450
  }, _callee4);
27470
27451
  })),
@@ -28581,8 +28562,6 @@ var RuleField = /*#__PURE__*/function (_Component) {
28581
28562
  });
28582
28563
  }
28583
28564
  }
28584
-
28585
- //规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
28586
28565
  }, {
28587
28566
  key: "render",
28588
28567
  value: function render() {
@@ -29413,6 +29392,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29413
29392
  callBack(ruleClassData);
29414
29393
  });
29415
29394
  };
29395
+ // 树结构 转化成 平行树 (递归函数)
29416
29396
  _this.coverToParallel = function (treeData, result) {
29417
29397
  treeData.forEach(function (el) {
29418
29398
  result.push(el);
@@ -29666,6 +29646,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29666
29646
  callBack(ruleClassData);
29667
29647
  });
29668
29648
  };
29649
+ // 场景需要返回值2022.11.15
29669
29650
  _this.renderResItem = function (itemDetail, parentDetail, ruleReturnConfig, disabled, boxStyle) {
29670
29651
  var _ruleReturnConfig$rig;
29671
29652
  var isShowResponse = itemDetail.response['enable'];
@@ -29963,32 +29944,30 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29963
29944
  notChangeOnSelect: true,
29964
29945
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
29965
29946
  return _regeneratorRuntime().wrap(function _callee$(_context) {
29966
- while (1) {
29967
- switch (_context.prev = _context.next) {
29968
- case 0:
29969
- _context.next = 2;
29970
- return request$1({
29971
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
29972
- method: 'get',
29973
- converter: function converter(_ref2) {
29974
- var data = _ref2.data;
29975
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
29976
- return {
29977
- text: item.name,
29978
- value: item.id,
29979
- level: item.level,
29980
- id: item.id
29981
- };
29982
- }) : [];
29983
- return handleData;
29984
- }
29985
- });
29986
- case 2:
29987
- return _context.abrupt("return", _context.sent);
29988
- case 3:
29989
- case "end":
29990
- return _context.stop();
29991
- }
29947
+ while (1) switch (_context.prev = _context.next) {
29948
+ case 0:
29949
+ _context.next = 2;
29950
+ return request$1({
29951
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
29952
+ method: 'get',
29953
+ converter: function converter(_ref2) {
29954
+ var data = _ref2.data;
29955
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
29956
+ return {
29957
+ text: item.name,
29958
+ value: item.id,
29959
+ level: item.level,
29960
+ id: item.id
29961
+ };
29962
+ }) : [];
29963
+ return handleData;
29964
+ }
29965
+ });
29966
+ case 2:
29967
+ return _context.abrupt("return", _context.sent);
29968
+ case 3:
29969
+ case "end":
29970
+ return _context.stop();
29992
29971
  }
29993
29972
  }, _callee);
29994
29973
  })),
@@ -30322,6 +30301,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30322
30301
  }
30323
30302
  }, "\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);
30324
30303
  };
30304
+ //添加同一层级条件
30325
30305
  _this.addPeerRule = function (itemDetail) {
30326
30306
  var ruleClassData = _this.state.ruleClassData;
30327
30307
  var _this$props4 = _this.props,
@@ -30342,6 +30322,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30342
30322
  callBack(ruleClassData);
30343
30323
  });
30344
30324
  };
30325
+ //添加子层级条件
30345
30326
  _this.addChildRules = function (itemDetail) {
30346
30327
  var ruleClassData = _this.state.ruleClassData;
30347
30328
  var callBack = _this.props.callBack;
@@ -30417,6 +30398,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30417
30398
  callBack(ruleClassData);
30418
30399
  });
30419
30400
  };
30401
+ // 新增执行顺序
30420
30402
  _this.handleSelectRuleAction = function (keys, classDataIndex, callback) {
30421
30403
  callback();
30422
30404
  var callBack = _this.props.callBack;
@@ -30567,4 +30549,4 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30567
30549
  return RuleObjectComponent;
30568
30550
  }(Component);
30569
30551
 
30570
- 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 };
30552
+ 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 };