@bit-sun/business-component 2.3.19 → 2.3.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (201) hide show
  1. package/.editorconfig +16 -16
  2. package/.fatherrc.ts +5 -5
  3. package/.gitlab-ci.yml +179 -179
  4. package/.prettierignore +7 -7
  5. package/.prettierrc +11 -11
  6. package/.umirc.ts +74 -74
  7. package/README.md +27 -27
  8. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
  9. package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
  10. package/dist/components/Business/SearchSelect/index.d.ts +1 -1
  11. package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
  12. package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
  13. package/dist/index.esm.js +983 -936
  14. package/dist/index.js +989 -942
  15. package/dist/utils/utils.d.ts +1 -1
  16. package/docs/index.md +21 -21
  17. package/lib/assets/drag.svg +17 -17
  18. package/lib/assets/exportFail.svg +37 -37
  19. package/lib/assets/exportProcessing.svg +28 -28
  20. package/lib/assets/exportSuccess.svg +34 -34
  21. package/lib/assets/label_icon_bottom.svg +25 -25
  22. package/lib/assets/upExport.svg +22 -22
  23. package/package.json +78 -78
  24. package/src/assets/32.svg +27 -27
  25. package/src/assets/addIcon.svg +17 -17
  26. package/src/assets/allfunc.svg +27 -27
  27. package/src/assets/arrowRight.svg +24 -24
  28. package/src/assets/btn-delete.svg +29 -29
  29. package/src/assets/btn-edit.svg +19 -19
  30. package/src/assets/btn-more.svg +17 -17
  31. package/src/assets/btn-submit.svg +19 -19
  32. package/src/assets/caidan.svg +11 -11
  33. package/src/assets/close.svg +26 -26
  34. package/src/assets/drag.svg +17 -17
  35. package/src/assets/exportFail.svg +37 -37
  36. package/src/assets/exportProcessing.svg +28 -28
  37. package/src/assets/exportSuccess.svg +34 -34
  38. package/src/assets/fixed-left-active.svg +11 -11
  39. package/src/assets/fixed-left.svg +15 -15
  40. package/src/assets/fixed-right-active.svg +11 -11
  41. package/src/assets/fixed-right.svg +15 -15
  42. package/src/assets/guanbi.svg +15 -15
  43. package/src/assets/icon-quanping.svg +15 -15
  44. package/src/assets/icon-shezhi.svg +17 -17
  45. package/src/assets/label_icon_bottom.svg +25 -25
  46. package/src/assets/list-no-img.svg +21 -21
  47. package/src/assets/morentouxiang-32.svg +23 -23
  48. package/src/assets/scanning.svg +24 -24
  49. package/src/assets/upExport.svg +22 -22
  50. package/src/common/ENUM.ts +41 -41
  51. package/src/components/Business/AddSelectBusiness/index.md +162 -162
  52. package/src/components/Business/AddSelectBusiness/index.tsx +895 -895
  53. package/src/components/Business/BsLayouts/Components/AllFunc/drawContent.tsx +111 -111
  54. package/src/components/Business/BsLayouts/Components/AllFunc/index.less +153 -153
  55. package/src/components/Business/BsLayouts/Components/AllFunc/index.tsx +70 -70
  56. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.less +90 -90
  57. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.tsx +37 -37
  58. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.tsx +242 -242
  59. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.tsx +384 -384
  60. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.tsx +285 -285
  61. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.tsx +74 -74
  62. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/drawContent.less +170 -170
  63. package/src/components/Business/BsLayouts/Components/CustomerMenu/index.less +64 -64
  64. package/src/components/Business/BsLayouts/Components/CustomerMenu/index.tsx +153 -153
  65. package/src/components/Business/BsLayouts/Components/GlobalHeader/index.less +72 -72
  66. package/src/components/Business/BsLayouts/Components/GlobalHeader/index.tsx +157 -157
  67. package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +85 -85
  68. package/src/components/Business/BsLayouts/Components/RightContent/home.less +218 -218
  69. package/src/components/Business/BsLayouts/Components/RightContent/index.tsx +155 -155
  70. package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +160 -160
  71. package/src/components/Business/BsLayouts/Components/SearchFunc/index.tsx +75 -75
  72. package/src/components/Business/BsLayouts/index.less +79 -79
  73. package/src/components/Business/BsLayouts/index.tsx +1484 -1484
  74. package/src/components/Business/BsLayouts/service.ts +10 -10
  75. package/src/components/Business/BsLayouts/utils.tsx +203 -203
  76. package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +564 -564
  77. package/src/components/Business/BsSulaQueryTable/index.less +221 -221
  78. package/src/components/Business/BsSulaQueryTable/index.tsx +535 -535
  79. package/src/components/Business/BsSulaQueryTable/setting.tsx +852 -852
  80. package/src/components/Business/BsSulaQueryTable/utils.less +65 -65
  81. package/src/components/Business/BsSulaQueryTable/utils.tsx +690 -688
  82. package/src/components/Business/CommodityEntry/index.md +70 -70
  83. package/src/components/Business/CommodityEntry/index.tsx +80 -80
  84. package/src/components/Business/CommonAlert/index.tsx +23 -23
  85. package/src/components/Business/CommonGuideWrapper/index.less +111 -111
  86. package/src/components/Business/CommonGuideWrapper/index.md +39 -39
  87. package/src/components/Business/CommonGuideWrapper/index.tsx +83 -83
  88. package/src/components/Business/DetailPageWrapper/index.less +79 -79
  89. package/src/components/Business/DetailPageWrapper/index.tsx +313 -313
  90. package/src/components/Business/DetailPageWrapper/utils.tsx +100 -100
  91. package/src/components/Business/HomePageWrapper/index.less +33 -33
  92. package/src/components/Business/HomePageWrapper/index.md +45 -45
  93. package/src/components/Business/HomePageWrapper/index.tsx +162 -162
  94. package/src/components/Business/JsonQueryTable/components/FieldsModifyModal.tsx +824 -824
  95. package/src/components/Business/JsonQueryTable/components/FieldsSettingsTable.tsx +205 -205
  96. package/src/components/Business/JsonQueryTable/components/Formula.tsx +205 -205
  97. package/src/components/Business/JsonQueryTable/components/MaintainOptions.tsx +127 -127
  98. package/src/components/Business/JsonQueryTable/configButton/index.js +20 -20
  99. package/src/components/Business/JsonQueryTable/configTree/component/compactArrayView.js +25 -25
  100. package/src/components/Business/JsonQueryTable/configTree/component/compactObjectView.js +30 -30
  101. package/src/components/Business/JsonQueryTable/configTree/index.js +82 -82
  102. package/src/components/Business/JsonQueryTable/configTree/index.less +44 -44
  103. package/src/components/Business/JsonQueryTable/configTree/parser/highlight.js +57 -57
  104. package/src/components/Business/JsonQueryTable/configTree/parser/index.js +124 -124
  105. package/src/components/Business/JsonQueryTable/configTree/render/iconRender.js +29 -29
  106. package/src/components/Business/JsonQueryTable/configTree/render/nameRender.js +22 -22
  107. package/src/components/Business/JsonQueryTable/configTree/treeNode.js +116 -116
  108. package/src/components/Business/JsonQueryTable/drawer/index.tsx +12 -12
  109. package/src/components/Business/JsonQueryTable/function.ts +62 -62
  110. package/src/components/Business/JsonQueryTable/index.less +16 -16
  111. package/src/components/Business/JsonQueryTable/index.md +328 -328
  112. package/src/components/Business/JsonQueryTable/index.tsx +535 -535
  113. package/src/components/Business/JsonQueryTable/jsonEditor/index.js +346 -346
  114. package/src/components/Business/JsonQueryTable/jsonEditor/index.less +22 -22
  115. package/src/components/Business/JsonQueryTable/jsonEditor/lint/basicType.js +147 -147
  116. package/src/components/Business/JsonQueryTable/jsonEditor/lint/index.js +389 -389
  117. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/actions.js +118 -118
  118. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/dependency.js +22 -22
  119. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/index.js +21 -21
  120. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/request.js +65 -65
  121. package/src/components/Business/JsonQueryTable/static.ts +390 -390
  122. package/src/components/Business/SearchSelect/BusinessUtils.ts +1762 -1762
  123. package/src/components/Business/SearchSelect/common.ts +75 -75
  124. package/src/components/Business/SearchSelect/index.md +1329 -1329
  125. package/src/components/Business/SearchSelect/index.tsx +55 -55
  126. package/src/components/Business/SearchSelect/utils.ts +100 -100
  127. package/src/components/Business/StateFlow/index.less +130 -130
  128. package/src/components/Business/StateFlow/index.md +60 -60
  129. package/src/components/Business/StateFlow/index.tsx +29 -29
  130. package/src/components/Business/TreeSearchSelect/index.md +156 -156
  131. package/src/components/Business/TreeSearchSelect/index.tsx +33 -33
  132. package/src/components/Business/TreeSearchSelect/utils.ts +75 -75
  133. package/src/components/Business/columnSettingTable/columnSetting.tsx +764 -764
  134. package/src/components/Business/columnSettingTable/index.less +247 -247
  135. package/src/components/Business/columnSettingTable/index.md +357 -357
  136. package/src/components/Business/columnSettingTable/index.tsx +232 -232
  137. package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +240 -240
  138. package/src/components/Business/columnSettingTable/utils.tsx +71 -69
  139. package/src/components/Business/moreTreeTable/FixedScrollBar.tsx +87 -86
  140. package/src/components/Business/moreTreeTable/hooks/useSticky.ts +21 -21
  141. package/src/components/Business/moreTreeTable/index.less +99 -99
  142. package/src/components/Business/moreTreeTable/index.md +448 -448
  143. package/src/components/Business/moreTreeTable/index.tsx +387 -387
  144. package/src/components/Business/moreTreeTable/utils.ts +126 -126
  145. package/src/components/Functional/AddSelect/helps.ts +14 -14
  146. package/src/components/Functional/AddSelect/index.less +367 -367
  147. package/src/components/Functional/AddSelect/index.md +155 -155
  148. package/src/components/Functional/AddSelect/index.tsx +1282 -1282
  149. package/src/components/Functional/BillEntry/index.less +371 -371
  150. package/src/components/Functional/BillEntry/index.md +39 -39
  151. package/src/components/Functional/BillEntry/index.tsx +772 -772
  152. package/src/components/Functional/BsAntdSula/BsCascader/index.md +62 -62
  153. package/src/components/Functional/BsAntdSula/BsCascader/index.tsx +178 -178
  154. package/src/components/Functional/BsAntdSula/index.ts +2 -2
  155. package/src/components/Functional/DataImport/index.less +63 -63
  156. package/src/components/Functional/DataImport/index.md +44 -44
  157. package/src/components/Functional/DataImport/index.tsx +695 -695
  158. package/src/components/Functional/DataValidation/index.less +63 -63
  159. package/src/components/Functional/DataValidation/index.md +39 -39
  160. package/src/components/Functional/DataValidation/index.tsx +687 -687
  161. package/src/components/Functional/EllipsisTooltip/index.d.ts +5 -5
  162. package/src/components/Functional/EllipsisTooltip/index.js +36 -36
  163. package/src/components/Functional/EllipsisTooltip/index.md +30 -30
  164. package/src/components/Functional/ExportFunctions/ExportIcon/index.md +37 -37
  165. package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +59 -59
  166. package/src/components/Functional/QueryMutipleInput/index.less +37 -37
  167. package/src/components/Functional/QueryMutipleInput/index.md +33 -33
  168. package/src/components/Functional/QueryMutipleInput/index.tsx +128 -128
  169. package/src/components/Functional/SearchSelect/index.less +115 -115
  170. package/src/components/Functional/SearchSelect/index.md +141 -141
  171. package/src/components/Functional/SearchSelect/index.tsx +879 -879
  172. package/src/components/Functional/SearchSelect/utils.ts +3 -3
  173. package/src/components/Functional/TreeSearchSelect/index.md +47 -47
  174. package/src/components/Functional/TreeSearchSelect/index.tsx +199 -199
  175. package/src/components/Solution/RuleComponent/Formula.tsx +335 -335
  176. package/src/components/Solution/RuleComponent/index.d.ts +29 -29
  177. package/src/components/Solution/RuleComponent/index.js +2032 -2032
  178. package/src/components/Solution/RuleComponent/index.less +230 -230
  179. package/src/components/Solution/RuleComponent/renderSpecificAction.js +99 -99
  180. package/src/components/Solution/RuleComponent/ruleFiled.js +2107 -2107
  181. package/src/components/Solution/RuleComponent/services.ts +13 -13
  182. package/src/components/Solution/RuleComponent/util.js +139 -139
  183. package/src/index.ts +38 -38
  184. package/src/plugin/TableColumnSetting/index.less +247 -247
  185. package/src/plugin/TableColumnSetting/index.md +50 -50
  186. package/src/plugin/TableColumnSetting/index.tsx +724 -724
  187. package/src/plugin/TableColumnSetting/utils.ts +19 -19
  188. package/src/styles/bsDefault.less +1912 -1912
  189. package/src/utils/CheckOneUser/index.md +39 -39
  190. package/src/utils/CheckOneUser/index.ts +51 -51
  191. package/src/utils/LocalstorageUtils.ts +95 -95
  192. package/src/utils/TableUtils.tsx +18 -18
  193. package/src/utils/checkUtils.ts +39 -39
  194. package/src/utils/enumConfig.ts +11 -11
  195. package/src/utils/getFormMode.js +12 -12
  196. package/src/utils/index.ts +4 -4
  197. package/src/utils/requestUtils.ts +34 -34
  198. package/src/utils/serialize.js +7 -7
  199. package/src/utils/utils.ts +212 -212
  200. package/tsconfig.json +29 -29
  201. package/typings.d.ts +4 -4
package/dist/index.esm.js CHANGED
@@ -2,7 +2,7 @@ import axios from 'axios';
2
2
  import { message as message$1, Image, Popover, Card, Avatar, Tooltip, Menu, Space, Dropdown, Button, Checkbox, Input, Modal, Select, Form, Divider, Spin, Table, TreeSelect, Tag, InputNumber, Typography, Alert, Anchor, Breadcrumb, Drawer as Drawer$1, List, Tree, Row, Col, Tabs, Affix, Cascader, DatePicker, TimePicker, Switch } from 'antd';
3
3
  import _, { omit, debounce, cloneDeep as cloneDeep$1, throttle, isEmpty } from 'lodash';
4
4
  import { history, formatMessage, useLocation, Link, useModel, useIntl } from 'umi';
5
- import isEqual from 'lodash/isEqual';
5
+ import isEqual$1 from 'lodash/isEqual';
6
6
  import React, { useState, useEffect, forwardRef, useImperativeHandle, useRef, useMemo, Component, useLayoutEffect, createRef } from 'react';
7
7
  import moment$1 from 'moment';
8
8
  import { UnorderedListOutlined, ProfileTwoTone, ExclamationCircleOutlined, DownOutlined, CopyOutlined, SearchOutlined, CaretLeftOutlined, CloseCircleOutlined, ArrowLeftOutlined, FolderOutlined, EllipsisOutlined, CaretDownOutlined, HomeOutlined, DoubleLeftOutlined, DoubleRightOutlined, MenuUnfoldOutlined, DashOutlined, SettingOutlined, BulbOutlined, PlayCircleOutlined, SaveOutlined, FullscreenExitOutlined, EditOutlined, MinusCircleOutlined, PlusCircleOutlined } from '@ant-design/icons';
@@ -762,41 +762,52 @@ var precisionQuantity = function precisionQuantity(num, accuracy) {
762
762
  return '';
763
763
  };
764
764
 
765
- var simpleIsEqual = function simpleIsEqual(a, b) {
766
- return a === b;
767
- };
768
-
769
- function index$1 (resultFn, isEqual) {
770
- if (isEqual === void 0) {
771
- isEqual = simpleIsEqual;
772
- }
773
-
774
- var lastThis;
775
- var lastArgs = [];
776
- var lastResult;
777
- var calledOnce = false;
778
-
779
- var isNewArgEqualToLast = function isNewArgEqualToLast(newArg, index) {
780
- return isEqual(newArg, lastArgs[index], index);
781
- };
782
-
783
- var result = function result() {
784
- for (var _len = arguments.length, newArgs = new Array(_len), _key = 0; _key < _len; _key++) {
785
- newArgs[_key] = arguments[_key];
765
+ var safeIsNaN = Number.isNaN ||
766
+ function ponyfill(value) {
767
+ return typeof value === 'number' && value !== value;
768
+ };
769
+ function isEqual(first, second) {
770
+ if (first === second) {
771
+ return true;
786
772
  }
787
-
788
- if (calledOnce && lastThis === this && newArgs.length === lastArgs.length && newArgs.every(isNewArgEqualToLast)) {
789
- return lastResult;
773
+ if (safeIsNaN(first) && safeIsNaN(second)) {
774
+ return true;
790
775
  }
776
+ return false;
777
+ }
778
+ function areInputsEqual(newInputs, lastInputs) {
779
+ if (newInputs.length !== lastInputs.length) {
780
+ return false;
781
+ }
782
+ for (var i = 0; i < newInputs.length; i++) {
783
+ if (!isEqual(newInputs[i], lastInputs[i])) {
784
+ return false;
785
+ }
786
+ }
787
+ return true;
788
+ }
791
789
 
792
- lastResult = resultFn.apply(this, newArgs);
793
- calledOnce = true;
794
- lastThis = this;
795
- lastArgs = newArgs;
796
- return lastResult;
797
- };
798
-
799
- return result;
790
+ function memoizeOne(resultFn, isEqual) {
791
+ if (isEqual === void 0) { isEqual = areInputsEqual; }
792
+ var lastThis;
793
+ var lastArgs = [];
794
+ var lastResult;
795
+ var calledOnce = false;
796
+ function memoized() {
797
+ var newArgs = [];
798
+ for (var _i = 0; _i < arguments.length; _i++) {
799
+ newArgs[_i] = arguments[_i];
800
+ }
801
+ if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {
802
+ return lastResult;
803
+ }
804
+ lastResult = resultFn.apply(this, newArgs);
805
+ calledOnce = true;
806
+ lastThis = this;
807
+ lastArgs = newArgs;
808
+ return lastResult;
809
+ }
810
+ return memoized;
800
811
  }
801
812
 
802
813
  function styleInject(css, ref) {
@@ -975,32 +986,35 @@ function handleCommonTimeRender(text, format) {
975
986
  }
976
987
  //设置queryTable默认列宽
977
988
  var getItemDefaultWidth = function getItemDefaultWidth(item) {
989
+ var _ref;
978
990
  var defaultWidth = 200;
979
- var lowerCaseKey = (item.key || item.dataIndex).toLowerCase();
980
- switch (true) {
981
- case (item === null || item === void 0 ? void 0 : item.title) === '操作' || lowerCaseKey === 'operate':
982
- defaultWidth = 60;
983
- break;
984
- case lowerCaseKey.indexOf('number') > -1:
985
- case lowerCaseKey.indexOf('quantity') > -1:
986
- case lowerCaseKey.indexOf('amount') > -1:
987
- defaultWidth = 90;
988
- break;
989
- case lowerCaseKey.indexOf('no') > -1:
990
- defaultWidth = 200;
991
- break;
992
- case lowerCaseKey.indexOf('code') > -1:
993
- defaultWidth = 170;
994
- break;
995
- case lowerCaseKey.indexOf('time') > -1:
996
- defaultWidth = 130;
997
- break;
998
- case lowerCaseKey.indexOf('status') > -1:
999
- defaultWidth = 100;
1000
- break;
1001
- case lowerCaseKey.indexOf('user') > -1:
1002
- defaultWidth = 130;
1003
- break;
991
+ var lowerCaseKey = (_ref = item.key || item.dataIndex) === null || _ref === void 0 ? void 0 : _ref.toLowerCase();
992
+ if (lowerCaseKey) {
993
+ switch (true) {
994
+ case (item === null || item === void 0 ? void 0 : item.title) === '操作' || lowerCaseKey === 'operate':
995
+ defaultWidth = 60;
996
+ break;
997
+ case lowerCaseKey.indexOf('number') > -1:
998
+ case lowerCaseKey.indexOf('quantity') > -1:
999
+ case lowerCaseKey.indexOf('amount') > -1:
1000
+ defaultWidth = 90;
1001
+ break;
1002
+ case lowerCaseKey.indexOf('no') > -1:
1003
+ defaultWidth = 200;
1004
+ break;
1005
+ case lowerCaseKey.indexOf('code') > -1:
1006
+ defaultWidth = 170;
1007
+ break;
1008
+ case lowerCaseKey.indexOf('time') > -1:
1009
+ defaultWidth = 130;
1010
+ break;
1011
+ case lowerCaseKey.indexOf('status') > -1:
1012
+ defaultWidth = 100;
1013
+ break;
1014
+ case lowerCaseKey.indexOf('user') > -1:
1015
+ defaultWidth = 130;
1016
+ break;
1017
+ }
1004
1018
  }
1005
1019
  return defaultWidth;
1006
1020
  };
@@ -1010,59 +1024,58 @@ var getItemDefaultWidth = function getItemDefaultWidth(item) {
1010
1024
  * @returns 返回处理后的查询参数
1011
1025
  */
1012
1026
  function queryParams(params, flag) {
1013
- var _loop = function _loop() {
1027
+ for (var key in params) {
1014
1028
  if (Object.prototype.hasOwnProperty.call(params, key)) {
1015
- var element = params[key];
1016
- if (element && key.indexOf('*number*') >= 0) {
1017
- var dataParams = key.split('*number*');
1018
- dataParams.forEach(function (value, index) {
1019
- params[value] = element[index];
1020
- });
1021
- delete params[key];
1022
- } else if (element && key.indexOf('*address*') >= 0) {
1023
- var _dataParams = key.split('*address*');
1024
- _dataParams.forEach(function (value, index) {
1025
- params[value] = element.PCDCode[index];
1026
- });
1027
- delete params[key];
1028
- } else if (element && key.indexOf('*costType*') >= 0) {
1029
- var _dataParams2 = key.split('*costType*');
1030
- // eslint-disable-next-line prefer-destructuring
1031
- params[_dataParams2[0]] = element[1];
1032
- delete params[key];
1033
- } else if (element && key.indexOf('*fullDate*') >= 0) {
1034
- var _dataParams3 = key.split('*fullDate*');
1035
- _dataParams3.forEach(function (value, index) {
1036
- if (index === 0) {
1037
- params[value] = moment$1(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
1029
+ (function () {
1030
+ var element = params[key];
1031
+ if (element && key.indexOf('*number*') >= 0) {
1032
+ var dataParams = key.split('*number*');
1033
+ dataParams.forEach(function (value, index) {
1034
+ params[value] = element[index];
1035
+ });
1036
+ delete params[key];
1037
+ } else if (element && key.indexOf('*address*') >= 0) {
1038
+ var _dataParams = key.split('*address*');
1039
+ _dataParams.forEach(function (value, index) {
1040
+ params[value] = element.PCDCode[index];
1041
+ });
1042
+ delete params[key];
1043
+ } else if (element && key.indexOf('*costType*') >= 0) {
1044
+ var _dataParams2 = key.split('*costType*');
1045
+ // eslint-disable-next-line prefer-destructuring
1046
+ params[_dataParams2[0]] = element[1];
1047
+ delete params[key];
1048
+ } else if (element && key.indexOf('*fullDate*') >= 0) {
1049
+ var _dataParams3 = key.split('*fullDate*');
1050
+ _dataParams3.forEach(function (value, index) {
1051
+ if (index === 0) {
1052
+ params[value] = moment$1(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
1053
+ } else {
1054
+ params[value] = moment$1(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
1055
+ }
1056
+ });
1057
+ delete params[key];
1058
+ } else if (element && key.indexOf('*') >= 0) {
1059
+ var _dataParams4 = key.split('*');
1060
+ _dataParams4.forEach(function (value, index) {
1061
+ params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
1062
+ });
1063
+ delete params[key];
1064
+ } else if (element && key.indexOf('_likeIn_') >= 0) {
1065
+ var _dataParams5 = key.split('_likeIn_');
1066
+ if (element.indexOf(',') >= 0) {
1067
+ params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
1068
+ params["qp-".concat(_dataParams5[0], "-like")] = null;
1038
1069
  } else {
1039
- params[value] = moment$1(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
1070
+ params["qp-".concat(_dataParams5[0], "-like")] = element;
1071
+ params["qp-".concat(_dataParams5[0], "-in")] = null;
1040
1072
  }
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
+ delete params[key];
1074
+ } else if (Array.isArray(element)) {
1075
+ params[key] = element.join(',');
1057
1076
  }
1058
- delete params[key];
1059
- } else if (Array.isArray(element)) {
1060
- params[key] = element.join(',');
1061
- }
1077
+ })();
1062
1078
  }
1063
- };
1064
- for (var key in params) {
1065
- _loop();
1066
1079
  }
1067
1080
  return flag ? params : qs.stringify(params);
1068
1081
  }
@@ -1108,7 +1121,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
1108
1121
  return item;
1109
1122
  });
1110
1123
  };
1111
- var memoizeOneFormatter = index$1(formatter, isEqual);
1124
+ var memoizeOneFormatter = memoizeOne(formatter, isEqual$1);
1112
1125
  var go2BackAndClose = function go2BackAndClose() {
1113
1126
  localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
1114
1127
  history.goBack();
@@ -2791,85 +2804,84 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
2791
2804
  });
2792
2805
  }
2793
2806
  // 数组对象处理,对带有特殊标记的name进行处理
2794
- var _loop = function _loop() {
2807
+ for (var key in params) {
2795
2808
  if (Object.prototype.hasOwnProperty.call(params, key)) {
2796
- var element = params[key];
2797
- if (element && key.indexOf('*number*') >= 0) {
2798
- var dataParams = key.split('*number*');
2799
- dataParams.forEach(function (value, index) {
2800
- params[value] = element[index];
2801
- });
2802
- delete params[key];
2803
- } else if (element && key.indexOf('*address*') >= 0) {
2804
- var _dataParams = key.split('*address*');
2805
- _dataParams.forEach(function (value, index) {
2806
- params[value] = element.PCDCode[index];
2807
- });
2808
- delete params[key];
2809
- } else if (element && key.indexOf('*costType*') >= 0) {
2810
- var _dataParams2 = key.split('*costType*');
2811
- // eslint-disable-next-line prefer-destructuring
2812
- params[_dataParams2[0]] = element[1];
2813
- delete params[key];
2814
- } else if (element && key.indexOf('*fullDate*') >= 0) {
2815
- var _dataParams3 = key.split('*fullDate*');
2816
- _dataParams3.forEach(function (value, index) {
2817
- if (index === 0) {
2818
- params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
2819
- } else {
2820
- params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
2809
+ (function () {
2810
+ var element = params[key];
2811
+ if (element && key.indexOf('*number*') >= 0) {
2812
+ var dataParams = key.split('*number*');
2813
+ dataParams.forEach(function (value, index) {
2814
+ params[value] = element[index];
2815
+ });
2816
+ delete params[key];
2817
+ } else if (element && key.indexOf('*address*') >= 0) {
2818
+ var _dataParams = key.split('*address*');
2819
+ _dataParams.forEach(function (value, index) {
2820
+ params[value] = element.PCDCode[index];
2821
+ });
2822
+ delete params[key];
2823
+ } else if (element && key.indexOf('*costType*') >= 0) {
2824
+ var _dataParams2 = key.split('*costType*');
2825
+ // eslint-disable-next-line prefer-destructuring
2826
+ params[_dataParams2[0]] = element[1];
2827
+ delete params[key];
2828
+ } else if (element && key.indexOf('*fullDate*') >= 0) {
2829
+ var _dataParams3 = key.split('*fullDate*');
2830
+ _dataParams3.forEach(function (value, index) {
2831
+ if (index === 0) {
2832
+ params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
2833
+ } else {
2834
+ params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
2835
+ }
2836
+ });
2837
+ delete params[key];
2838
+ } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
2839
+ var _dataParams4 = key.split('*checkBox*');
2840
+ if (element) {
2841
+ params[_dataParams4[0]] = 0;
2821
2842
  }
2822
- });
2823
- delete params[key];
2824
- } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
2825
- var _dataParams4 = key.split('*checkBox*');
2826
- if (element) {
2827
- params[_dataParams4[0]] = 0;
2828
- }
2829
- delete params[key];
2830
- } else if (element && key.indexOf('*cascader*') >= 0) {
2831
- var _dataParams5 = key.split('*cascader*');
2832
- params[_dataParams5[0]] = element[element.length - 1];
2833
- delete params[key];
2834
- } else if (element && key.indexOf('*date*') >= 0) {
2835
- var _dataParams6 = key.split('*date*');
2836
- _dataParams6.forEach(function (value, index) {
2837
- if (index === 0) {
2838
- params[value] = moment(element[index]).format('YYYY-MM-DD');
2843
+ delete params[key];
2844
+ } else if (element && key.indexOf('*cascader*') >= 0) {
2845
+ var _dataParams5 = key.split('*cascader*');
2846
+ params[_dataParams5[0]] = element[element.length - 1];
2847
+ delete params[key];
2848
+ } else if (element && key.indexOf('*date*') >= 0) {
2849
+ var _dataParams6 = key.split('*date*');
2850
+ _dataParams6.forEach(function (value, index) {
2851
+ if (index === 0) {
2852
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
2853
+ } else {
2854
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
2855
+ }
2856
+ });
2857
+ delete params[key];
2858
+ } else if (element && key.indexOf('*') >= 0) {
2859
+ var _dataParams7 = key.split('*');
2860
+ _dataParams7.forEach(function (value, index) {
2861
+ params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
2862
+ });
2863
+ delete params[key];
2864
+ } else if (element && key.indexOf('_selectNumberRange') >= 0) {
2865
+ // key = xxxxx_selectNumberRange qp-xxxxx-gt
2866
+ var _dataParams8 = key.split('_selectNumberRange')[0];
2867
+ if (params[key][0] === 'range') {
2868
+ if (params[key][1][0]) {
2869
+ params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
2870
+ }
2871
+ if (params[key][1][1]) {
2872
+ params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
2873
+ }
2839
2874
  } else {
2840
- params[value] = moment(element[index]).format('YYYY-MM-DD');
2841
- }
2842
- });
2843
- delete params[key];
2844
- } else if (element && key.indexOf('*') >= 0) {
2845
- var _dataParams7 = key.split('*');
2846
- _dataParams7.forEach(function (value, index) {
2847
- params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
2848
- });
2849
- delete params[key];
2850
- } else if (element && key.indexOf('_selectNumberRange') >= 0) {
2851
- // key = xxxxx_selectNumberRange qp-xxxxx-gt
2852
- var _dataParams8 = key.split('_selectNumberRange')[0];
2853
- if (params[key][0] === 'range') {
2854
- if (params[key][1][0]) {
2855
- params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
2856
- }
2857
- if (params[key][1][1]) {
2858
- params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
2875
+ params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
2859
2876
  }
2860
- } else {
2861
- params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
2877
+ delete params[key];
2878
+ } else if (Array.isArray(element)) {
2879
+ params[key] = element.join(',');
2880
+ } else if (element == null || element === undefined || String(element).trim() === '') {
2881
+ delete params[key];
2862
2882
  }
2863
- delete params[key];
2864
- } else if (Array.isArray(element)) {
2865
- params[key] = element.join(',');
2866
- } else if (element == null || element === undefined || String(element).trim() === '') {
2867
- delete params[key];
2868
- }
2883
+ })();
2869
2884
  }
2870
- };
2871
- for (var key in params) {
2872
- _loop();
2873
2885
  }
2874
2886
  var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
2875
2887
  pageSize: pageSize,
@@ -4218,30 +4230,32 @@ var getItemDefaultWidth$1 = function getItemDefaultWidth(item) {
4218
4230
  var _ref;
4219
4231
  var defaultWidth = 200;
4220
4232
  var lowerCaseKey = (_ref = item.key || item.dataIndex) === null || _ref === void 0 ? void 0 : _ref.toLowerCase();
4221
- switch (true) {
4222
- case (item === null || item === void 0 ? void 0 : item.title) === '操作' || lowerCaseKey === 'operate':
4223
- defaultWidth = 60;
4224
- break;
4225
- case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('number')) > -1:
4226
- case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('quantity')) > -1:
4227
- case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('amount')) > -1:
4228
- defaultWidth = 90;
4229
- break;
4230
- case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('no')) > -1:
4231
- defaultWidth = 200;
4232
- break;
4233
- case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('code')) > -1:
4234
- defaultWidth = 170;
4235
- break;
4236
- case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('time')) > -1:
4237
- defaultWidth = 130;
4238
- break;
4239
- case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('status')) > -1:
4240
- defaultWidth = 100;
4241
- break;
4242
- case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('user')) > -1:
4243
- defaultWidth = 130;
4244
- break;
4233
+ if (lowerCaseKey) {
4234
+ switch (true) {
4235
+ case (item === null || item === void 0 ? void 0 : item.title) === '操作' || lowerCaseKey === 'operate':
4236
+ defaultWidth = 60;
4237
+ break;
4238
+ case lowerCaseKey.indexOf('number') > -1:
4239
+ case lowerCaseKey.indexOf('quantity') > -1:
4240
+ case lowerCaseKey.indexOf('amount') > -1:
4241
+ defaultWidth = 90;
4242
+ break;
4243
+ case lowerCaseKey.indexOf('no') > -1:
4244
+ defaultWidth = 200;
4245
+ break;
4246
+ case lowerCaseKey.indexOf('code') > -1:
4247
+ defaultWidth = 170;
4248
+ break;
4249
+ case lowerCaseKey.indexOf('time') > -1:
4250
+ defaultWidth = 130;
4251
+ break;
4252
+ case lowerCaseKey.indexOf('status') > -1:
4253
+ defaultWidth = 100;
4254
+ break;
4255
+ case lowerCaseKey.indexOf('user') > -1:
4256
+ defaultWidth = 130;
4257
+ break;
4258
+ }
4245
4259
  }
4246
4260
  return defaultWidth;
4247
4261
  };
@@ -4545,74 +4559,76 @@ var AddSelect = function AddSelect(props) {
4545
4559
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
4546
4560
  var result;
4547
4561
  return _regeneratorRuntime().wrap(function _callee$(_context) {
4548
- while (1) switch (_context.prev = _context.next) {
4549
- case 0:
4550
- if (!(bType == 'skc' && tList.some(function (i) {
4551
- return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
4552
- }))) {
4553
- _context.next = 3;
4554
- break;
4555
- }
4556
- message$1.warning('相同skc配码不可设置相同哦');
4557
- return _context.abrupt("return", false);
4558
- case 3:
4559
- if (!(bType == 'spu')) {
4560
- _context.next = 26;
4561
- break;
4562
- }
4563
- if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
4564
- return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
4565
- }))) {
4566
- _context.next = 7;
4567
- break;
4568
- }
4569
- message$1.warning('相同商品相同配码颜色不可设置相同哦');
4570
- return _context.abrupt("return", false);
4571
- case 7:
4572
- if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
4573
- _context.next = 10;
4574
- break;
4575
- }
4576
- message$1.warning('请先选择颜色!');
4577
- return _context.abrupt("return", false);
4578
- case 10:
4579
- if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
4580
- return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
4581
- }))) {
4582
- _context.next = 13;
4583
- break;
4584
- }
4585
- message$1.warning('相同商品相同颜色配码不可设置相同哦');
4586
- return _context.abrupt("return", false);
4587
- case 13:
4588
- if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
4589
- _context.next = 26;
4562
+ while (1) {
4563
+ switch (_context.prev = _context.next) {
4564
+ case 0:
4565
+ if (!(bType == 'skc' && tList.some(function (i) {
4566
+ return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
4567
+ }))) {
4568
+ _context.next = 3;
4569
+ break;
4570
+ }
4571
+ message$1.warning('相同skc配码不可设置相同哦');
4572
+ return _context.abrupt("return", false);
4573
+ case 3:
4574
+ if (!(bType == 'spu')) {
4575
+ _context.next = 26;
4576
+ break;
4577
+ }
4578
+ if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
4579
+ return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
4580
+ }))) {
4581
+ _context.next = 7;
4582
+ break;
4583
+ }
4584
+ message$1.warning('相同商品相同配码颜色不可设置相同哦');
4585
+ return _context.abrupt("return", false);
4586
+ case 7:
4587
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
4588
+ _context.next = 10;
4589
+ break;
4590
+ }
4591
+ message$1.warning('请先选择颜色!');
4592
+ return _context.abrupt("return", false);
4593
+ case 10:
4594
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
4595
+ return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
4596
+ }))) {
4597
+ _context.next = 13;
4598
+ break;
4599
+ }
4600
+ message$1.warning('相同商品相同颜色配码不可设置相同哦');
4601
+ return _context.abrupt("return", false);
4602
+ case 13:
4603
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
4604
+ _context.next = 26;
4605
+ break;
4606
+ }
4607
+ result = true;
4608
+ _context.prev = 15;
4609
+ _context.next = 18;
4610
+ return checkSpuMatchCode({
4611
+ skcCode: recordItem[recordKey],
4612
+ matchingCode: changeValue,
4613
+ ext1: recordItem.colorName
4614
+ });
4615
+ case 18:
4616
+ result = _context.sent;
4617
+ result = true;
4618
+ _context.next = 25;
4590
4619
  break;
4591
- }
4592
- result = true;
4593
- _context.prev = 15;
4594
- _context.next = 18;
4595
- return checkSpuMatchCode({
4596
- skcCode: recordItem[recordKey],
4597
- matchingCode: changeValue,
4598
- ext1: recordItem.colorName
4599
- });
4600
- case 18:
4601
- result = _context.sent;
4602
- result = true;
4603
- _context.next = 25;
4604
- break;
4605
- case 22:
4606
- _context.prev = 22;
4607
- _context.t0 = _context["catch"](15);
4608
- result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
4609
- case 25:
4610
- return _context.abrupt("return", result);
4611
- case 26:
4612
- return _context.abrupt("return", true);
4613
- case 27:
4614
- case "end":
4615
- return _context.stop();
4620
+ case 22:
4621
+ _context.prev = 22;
4622
+ _context.t0 = _context["catch"](15);
4623
+ result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
4624
+ case 25:
4625
+ return _context.abrupt("return", result);
4626
+ case 26:
4627
+ return _context.abrupt("return", true);
4628
+ case 27:
4629
+ case "end":
4630
+ return _context.stop();
4631
+ }
4616
4632
  }
4617
4633
  }, _callee, null, [[15, 22]]);
4618
4634
  }));
@@ -4804,27 +4820,29 @@ var AddSelect = function AddSelect(props) {
4804
4820
  var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
4805
4821
  var isConformToTheRules, newPopValue;
4806
4822
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
4807
- while (1) switch (_context2.prev = _context2.next) {
4808
- case 0:
4809
- _context2.next = 2;
4810
- return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
4811
- case 2:
4812
- isConformToTheRules = _context2.sent;
4813
- if (isConformToTheRules) {
4814
- record[item.dataIndex] = value;
4815
- } else {
4816
- record[item.dataIndex] = null;
4817
- }
4818
- newPopValue = popvalue.map(function (i, innerIndex) {
4819
- if (innerIndex == index) {
4820
- i[item.dataIndex] = record[item.dataIndex];
4823
+ while (1) {
4824
+ switch (_context2.prev = _context2.next) {
4825
+ case 0:
4826
+ _context2.next = 2;
4827
+ return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
4828
+ case 2:
4829
+ isConformToTheRules = _context2.sent;
4830
+ if (isConformToTheRules) {
4831
+ record[item.dataIndex] = value;
4832
+ } else {
4833
+ record[item.dataIndex] = null;
4821
4834
  }
4822
- return i;
4823
- });
4824
- setPopValue(newPopValue);
4825
- case 6:
4826
- case "end":
4827
- return _context2.stop();
4835
+ newPopValue = popvalue.map(function (i, innerIndex) {
4836
+ if (innerIndex == index) {
4837
+ i[item.dataIndex] = record[item.dataIndex];
4838
+ }
4839
+ return i;
4840
+ });
4841
+ setPopValue(newPopValue);
4842
+ case 6:
4843
+ case "end":
4844
+ return _context2.stop();
4845
+ }
4828
4846
  }
4829
4847
  }, _callee2);
4830
4848
  }));
@@ -4884,85 +4902,84 @@ var AddSelect = function AddSelect(props) {
4884
4902
  });
4885
4903
  }
4886
4904
  // 数组对象处理,对带有特殊标记的name进行处理
4887
- var _loop = function _loop() {
4905
+ for (var key in params) {
4888
4906
  if (Object.prototype.hasOwnProperty.call(params, key)) {
4889
- var element = params[key];
4890
- if (element && key.indexOf('*number*') >= 0) {
4891
- var dataParams = key.split('*number*');
4892
- dataParams.forEach(function (value, index) {
4893
- params[value] = element[index];
4894
- });
4895
- delete params[key];
4896
- } else if (element && key.indexOf('*address*') >= 0) {
4897
- var _dataParams = key.split('*address*');
4898
- _dataParams.forEach(function (value, index) {
4899
- params[value] = element.PCDCode[index];
4900
- });
4901
- delete params[key];
4902
- } else if (element && key.indexOf('*costType*') >= 0) {
4903
- var _dataParams2 = key.split('*costType*');
4904
- // eslint-disable-next-line prefer-destructuring
4905
- params[_dataParams2[0]] = element[1];
4906
- delete params[key];
4907
- } else if (element && key.indexOf('*fullDate*') >= 0) {
4908
- var _dataParams3 = key.split('*fullDate*');
4909
- _dataParams3.forEach(function (value, index) {
4910
- if (index === 0) {
4911
- params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
4912
- } else {
4913
- params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
4907
+ (function () {
4908
+ var element = params[key];
4909
+ if (element && key.indexOf('*number*') >= 0) {
4910
+ var dataParams = key.split('*number*');
4911
+ dataParams.forEach(function (value, index) {
4912
+ params[value] = element[index];
4913
+ });
4914
+ delete params[key];
4915
+ } else if (element && key.indexOf('*address*') >= 0) {
4916
+ var _dataParams = key.split('*address*');
4917
+ _dataParams.forEach(function (value, index) {
4918
+ params[value] = element.PCDCode[index];
4919
+ });
4920
+ delete params[key];
4921
+ } else if (element && key.indexOf('*costType*') >= 0) {
4922
+ var _dataParams2 = key.split('*costType*');
4923
+ // eslint-disable-next-line prefer-destructuring
4924
+ params[_dataParams2[0]] = element[1];
4925
+ delete params[key];
4926
+ } else if (element && key.indexOf('*fullDate*') >= 0) {
4927
+ var _dataParams3 = key.split('*fullDate*');
4928
+ _dataParams3.forEach(function (value, index) {
4929
+ if (index === 0) {
4930
+ params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
4931
+ } else {
4932
+ params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
4933
+ }
4934
+ });
4935
+ delete params[key];
4936
+ } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
4937
+ var _dataParams4 = key.split('*checkBox*');
4938
+ if (element) {
4939
+ params[_dataParams4[0]] = 0;
4914
4940
  }
4915
- });
4916
- delete params[key];
4917
- } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
4918
- var _dataParams4 = key.split('*checkBox*');
4919
- if (element) {
4920
- params[_dataParams4[0]] = 0;
4921
- }
4922
- delete params[key];
4923
- } else if (element && key.indexOf('*cascader*') >= 0) {
4924
- var _dataParams5 = key.split('*cascader*');
4925
- params[_dataParams5[0]] = element[element.length - 1];
4926
- delete params[key];
4927
- } else if (element && key.indexOf('*date*') >= 0) {
4928
- var _dataParams6 = key.split('*date*');
4929
- _dataParams6.forEach(function (value, index) {
4930
- if (index === 0) {
4931
- params[value] = moment(element[index]).format('YYYY-MM-DD');
4941
+ delete params[key];
4942
+ } else if (element && key.indexOf('*cascader*') >= 0) {
4943
+ var _dataParams5 = key.split('*cascader*');
4944
+ params[_dataParams5[0]] = element[element.length - 1];
4945
+ delete params[key];
4946
+ } else if (element && key.indexOf('*date*') >= 0) {
4947
+ var _dataParams6 = key.split('*date*');
4948
+ _dataParams6.forEach(function (value, index) {
4949
+ if (index === 0) {
4950
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
4951
+ } else {
4952
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
4953
+ }
4954
+ });
4955
+ delete params[key];
4956
+ } else if (element && key.indexOf('*') >= 0) {
4957
+ var _dataParams7 = key.split('*');
4958
+ _dataParams7.forEach(function (value, index) {
4959
+ params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
4960
+ });
4961
+ delete params[key];
4962
+ } else if (element && key.indexOf('_selectNumberRange') >= 0) {
4963
+ // key = xxxxx_selectNumberRange qp-xxxxx-gt
4964
+ var _dataParams8 = key.split('_selectNumberRange')[0];
4965
+ if (params[key][0] === 'range') {
4966
+ if (params[key][1][0]) {
4967
+ params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
4968
+ }
4969
+ if (params[key][1][1]) {
4970
+ params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
4971
+ }
4932
4972
  } else {
4933
- params[value] = moment(element[index]).format('YYYY-MM-DD');
4934
- }
4935
- });
4936
- delete params[key];
4937
- } else if (element && key.indexOf('*') >= 0) {
4938
- var _dataParams7 = key.split('*');
4939
- _dataParams7.forEach(function (value, index) {
4940
- params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
4941
- });
4942
- delete params[key];
4943
- } else if (element && key.indexOf('_selectNumberRange') >= 0) {
4944
- // key = xxxxx_selectNumberRange qp-xxxxx-gt
4945
- var _dataParams8 = key.split('_selectNumberRange')[0];
4946
- if (params[key][0] === 'range') {
4947
- if (params[key][1][0]) {
4948
- params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
4949
- }
4950
- if (params[key][1][1]) {
4951
- params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
4973
+ params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
4952
4974
  }
4953
- } else {
4954
- params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
4975
+ delete params[key];
4976
+ } else if (Array.isArray(element)) {
4977
+ params[key] = element.join(',');
4978
+ } else if (element == null || element === undefined || String(element).trim() === '') {
4979
+ delete params[key];
4955
4980
  }
4956
- delete params[key];
4957
- } else if (Array.isArray(element)) {
4958
- params[key] = element.join(',');
4959
- } else if (element == null || element === undefined || String(element).trim() === '') {
4960
- delete params[key];
4961
- }
4981
+ })();
4962
4982
  }
4963
- };
4964
- for (var key in params) {
4965
- _loop();
4966
4983
  }
4967
4984
  var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
4968
4985
  pageSize: pageSize,
@@ -6419,70 +6436,72 @@ var BillEntry = function BillEntry(_ref3) {
6419
6436
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
6420
6437
  var canEntryObject, _canEntryObject$error, messageInfo;
6421
6438
  return _regeneratorRuntime().wrap(function _callee$(_context) {
6422
- while (1) 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
- }
6439
+ while (1) {
6440
+ switch (_context.prev = _context.next) {
6441
+ case 0:
6442
+ if (data === null || data === void 0 ? void 0 : data.length) {
6443
+ _context.next = 3;
6444
+ break;
6477
6445
  }
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();
6446
+ message$1.warning('至少录入一条数据');
6447
+ return _context.abrupt("return");
6448
+ case 3:
6449
+ if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6450
+ return d.skuCode && d.name;
6451
+ })) {
6452
+ _context.next = 6;
6453
+ break;
6454
+ }
6455
+ message$1.warning('请选择商品!');
6456
+ return _context.abrupt("return");
6457
+ case 6:
6458
+ if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6459
+ return d.count;
6460
+ })) {
6461
+ _context.next = 9;
6462
+ break;
6463
+ }
6464
+ message$1.warning('请填写商品数量!');
6465
+ return _context.abrupt("return");
6466
+ case 9:
6467
+ _context.next = 11;
6468
+ return isSkuCanEntry(data);
6469
+ case 11:
6470
+ canEntryObject = _context.sent;
6471
+ if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
6472
+ _context.next = 16;
6473
+ break;
6474
+ }
6475
+ 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) {
6476
+ return /*#__PURE__*/React.createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
6477
+ }));
6478
+ messageInfo && message$1.warning({
6479
+ content: messageInfo,
6480
+ duration: 6
6481
+ });
6482
+ return _context.abrupt("return");
6483
+ case 16:
6484
+ setLoading(true);
6485
+ onSaveCallback(data).then(function (res) {
6486
+ {
6487
+ var _Object$keys;
6488
+ var initSuccessMessage = '保存成功';
6489
+ var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
6490
+ if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
6491
+ (rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? message$1.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
6492
+ } else {
6493
+ message$1.success(initSuccessMessage);
6494
+ }
6495
+ }
6496
+ setLoading(false);
6497
+ }).catch(function (Error) {
6498
+ message$1.error(Error);
6499
+ setLoading(false);
6500
+ });
6501
+ case 18:
6502
+ case "end":
6503
+ return _context.stop();
6504
+ }
6486
6505
  }
6487
6506
  }, _callee);
6488
6507
  }));
@@ -9726,7 +9745,7 @@ var CommodityEntry = function CommodityEntry(props) {
9726
9745
  * @LastEditTime: 2022-01-14 17:17:26
9727
9746
  * @LastEditors: rodchen
9728
9747
  */
9729
- var index$2 = (function (storageKeyString) {
9748
+ var index$1 = (function (storageKeyString) {
9730
9749
  var seconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
9731
9750
  var tipsCallFunction = arguments.length > 2 ? arguments[2] : undefined;
9732
9751
  if (typeof seconds !== 'number') throw new Error('seconds should be number');
@@ -9853,42 +9872,44 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
9853
9872
  var _ctx$form;
9854
9873
  var resData, coverData, data, dataList;
9855
9874
  return _regeneratorRuntime().wrap(function _callee$(_context) {
9856
- while (1) switch (_context.prev = _context.next) {
9857
- case 0:
9858
- resData = (res === null || res === void 0 ? void 0 : res.data) || [];
9859
- if (!(resData.status === '0' || resData.code === '000000')) {
9860
- _context.next = 13;
9875
+ while (1) {
9876
+ switch (_context.prev = _context.next) {
9877
+ case 0:
9878
+ resData = (res === null || res === void 0 ? void 0 : res.data) || [];
9879
+ if (!(resData.status === '0' || resData.code === '000000')) {
9880
+ _context.next = 13;
9881
+ break;
9882
+ }
9883
+ data = resData.data;
9884
+ if (!remoteSource.converter) {
9885
+ _context.next = 9;
9886
+ break;
9887
+ }
9888
+ _context.next = 6;
9889
+ return remoteSource.converter({
9890
+ data: [data]
9891
+ });
9892
+ case 6:
9893
+ coverData = _context.sent;
9894
+ _context.next = 11;
9861
9895
  break;
9862
- }
9863
- data = resData.data;
9864
- if (!remoteSource.converter) {
9865
- _context.next = 9;
9896
+ case 9:
9897
+ dataList = data && Array.isArray(data) ? data : data && [data] || [];
9898
+ coverData = dataList.length && dataList.map(function (ites) {
9899
+ return mapSearchTree(ites);
9900
+ }) || [];
9901
+ case 11:
9902
+ _context.next = 14;
9866
9903
  break;
9867
- }
9868
- _context.next = 6;
9869
- return remoteSource.converter({
9870
- data: [data]
9871
- });
9872
- case 6:
9873
- coverData = _context.sent;
9874
- _context.next = 11;
9875
- break;
9876
- case 9:
9877
- dataList = data && Array.isArray(data) ? data : data && [data] || [];
9878
- coverData = dataList.length && dataList.map(function (ites) {
9879
- return mapSearchTree(ites);
9880
- }) || [];
9881
- case 11:
9882
- _context.next = 14;
9883
- break;
9884
- case 13:
9885
- coverData = [];
9886
- case 14:
9887
- setTreeData(coverData);
9888
- ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
9889
- case 16:
9890
- case "end":
9891
- return _context.stop();
9904
+ case 13:
9905
+ coverData = [];
9906
+ case 14:
9907
+ setTreeData(coverData);
9908
+ ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
9909
+ case 16:
9910
+ case "end":
9911
+ return _context.stop();
9912
+ }
9892
9913
  }
9893
9914
  }, _callee);
9894
9915
  }));
@@ -10138,7 +10159,7 @@ var BusinessTreeSearchSelect$1 = /*#__PURE__*/React.memo(BusinessTreeSearchSelec
10138
10159
  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";
10139
10160
  styleInject(css_248z$8);
10140
10161
 
10141
- var index$3 = (function (props) {
10162
+ var index$2 = (function (props) {
10142
10163
  var _props$formStatusMapp = props.formStatusMapping,
10143
10164
  formStatusMapping = _props$formStatusMapp === void 0 ? [] : _props$formStatusMapp;
10144
10165
  return /*#__PURE__*/React.createElement("div", {
@@ -11562,7 +11583,7 @@ var iconMap = {
11562
11583
  src: moreIcon
11563
11584
  })
11564
11585
  };
11565
- var index$4 = (function (props) {
11586
+ var index$3 = (function (props) {
11566
11587
  var _useLocation = useLocation(),
11567
11588
  pathname = _useLocation.pathname;
11568
11589
  var _useState = useState(pathname + 'id'),
@@ -11779,7 +11800,7 @@ var css_248z$d = ".home_page_head {\n height: 54px;\n display: flex;\n justif
11779
11800
  styleInject(css_248z$d);
11780
11801
 
11781
11802
  var _excluded$c = ["children"];
11782
- var index$5 = (function (props) {
11803
+ var index$4 = (function (props) {
11783
11804
  var _useLocation = useLocation(),
11784
11805
  pathname = _useLocation.pathname;
11785
11806
  var _useState = useState(pathname + 'id'),
@@ -14078,19 +14099,21 @@ function _outLogin() {
14078
14099
  _outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
14079
14100
  var res;
14080
14101
  return _regeneratorRuntime().wrap(function _callee$(_context) {
14081
- while (1) switch (_context.prev = _context.next) {
14082
- case 0:
14083
- _context.next = 2;
14084
- return axios({
14085
- url: '/user/web/loginOut',
14086
- method: 'GET'
14087
- });
14088
- case 2:
14089
- res = _context.sent;
14090
- return _context.abrupt("return", res);
14091
- case 4:
14092
- case "end":
14093
- return _context.stop();
14102
+ while (1) {
14103
+ switch (_context.prev = _context.next) {
14104
+ case 0:
14105
+ _context.next = 2;
14106
+ return axios({
14107
+ url: '/user/web/loginOut',
14108
+ method: 'GET'
14109
+ });
14110
+ case 2:
14111
+ res = _context.sent;
14112
+ return _context.abrupt("return", res);
14113
+ case 4:
14114
+ case "end":
14115
+ return _context.stop();
14116
+ }
14094
14117
  }
14095
14118
  }, _callee);
14096
14119
  }));
@@ -14219,29 +14242,31 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
14219
14242
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
14220
14243
  var sessionId;
14221
14244
  return _regeneratorRuntime().wrap(function _callee$(_context) {
14222
- while (1) switch (_context.prev = _context.next) {
14223
- case 0:
14224
- _context.next = 2;
14225
- return getSessionId();
14226
- case 2:
14227
- sessionId = _context.sent;
14228
- _context.next = 5;
14229
- return outLogin({
14230
- sessionId: sessionId
14231
- });
14232
- case 5:
14233
- // @ts-ignore
14234
- if (BUILD_TYPE) {
14235
- message$1.success('退出登录成功');
14236
- history.replace({
14237
- pathname: '/user/login'
14245
+ while (1) {
14246
+ switch (_context.prev = _context.next) {
14247
+ case 0:
14248
+ _context.next = 2;
14249
+ return getSessionId();
14250
+ case 2:
14251
+ sessionId = _context.sent;
14252
+ _context.next = 5;
14253
+ return outLogin({
14254
+ sessionId: sessionId
14238
14255
  });
14239
- } else {
14240
- setLoginOutPath();
14241
- }
14242
- case 6:
14243
- case "end":
14244
- return _context.stop();
14256
+ case 5:
14257
+ // @ts-ignore
14258
+ if (BUILD_TYPE) {
14259
+ message$1.success('退出登录成功');
14260
+ history.replace({
14261
+ pathname: '/user/login'
14262
+ });
14263
+ } else {
14264
+ setLoginOutPath();
14265
+ }
14266
+ case 6:
14267
+ case "end":
14268
+ return _context.stop();
14269
+ }
14245
14270
  }
14246
14271
  }, _callee);
14247
14272
  }));
@@ -16069,7 +16094,6 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
16069
16094
  showSubMenu: isShow
16070
16095
  });
16071
16096
  }, 500);
16072
- //设置tabs标签左右滚动
16073
16097
  _this.setTabNavTransLate = function (num) {
16074
16098
  var _document$getElementB, _document$getElementB2, _document$getElementB3, _document$getElementB4, _document$defaultView;
16075
16099
  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];
@@ -16750,12 +16774,14 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
16750
16774
  request: function () {
16751
16775
  var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
16752
16776
  return _regeneratorRuntime().wrap(function _callee$(_context) {
16753
- while (1) switch (_context.prev = _context.next) {
16754
- case 0:
16755
- return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
16756
- case 1:
16757
- case "end":
16758
- return _context.stop();
16777
+ while (1) {
16778
+ switch (_context.prev = _context.next) {
16779
+ case 0:
16780
+ return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
16781
+ case 1:
16782
+ case "end":
16783
+ return _context.stop();
16784
+ }
16759
16785
  }
16760
16786
  }, _callee);
16761
16787
  }));
@@ -16893,7 +16919,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
16893
16919
  }]);
16894
16920
  return WrapperComponent;
16895
16921
  }(React.Component);
16896
- var index$6 = (function (props) {
16922
+ var index$5 = (function (props) {
16897
16923
  var _useModel = useModel('@@initialState'),
16898
16924
  _useModel$initialStat = _useModel.initialState,
16899
16925
  initialState = _useModel$initialStat === void 0 ? {} : _useModel$initialStat;
@@ -17098,6 +17124,7 @@ var FixedScrollBar = function FixedScrollBar(_ref, ref) {
17098
17124
  }
17099
17125
  };
17100
17126
  useEffect(function () {
17127
+ onContainerScroll();
17101
17128
  var onscroll = throttle(onContainerScroll, 50);
17102
17129
  container.addEventListener('scroll', onscroll);
17103
17130
  return function () {
@@ -17134,7 +17161,7 @@ var FixedScrollBar = function FixedScrollBar(_ref, ref) {
17134
17161
  };
17135
17162
  var FixedScrollBar$1 = /*#__PURE__*/React.forwardRef(FixedScrollBar);
17136
17163
 
17137
- var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
17164
+ var index$6 = /*#__PURE__*/forwardRef(function (props, ref) {
17138
17165
  var _useState = useState(false),
17139
17166
  _useState2 = _slicedToArray(_useState, 2),
17140
17167
  show = _useState2[0],
@@ -24435,26 +24462,28 @@ var valueType = {
24435
24462
  var getDynamicDict = /*#__PURE__*/function () {
24436
24463
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
24437
24464
  return _regeneratorRuntime().wrap(function _callee$(_context) {
24438
- while (1) switch (_context.prev = _context.next) {
24439
- case 0:
24440
- _context.next = 2;
24441
- return request$1({
24442
- url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
24443
- converter: function converter(_ref2) {
24444
- var data = _ref2.data;
24445
- return data === null || data === void 0 ? void 0 : data.map(function (d) {
24446
- return {
24447
- text: d.name,
24448
- value: d.code || d.brandCode
24449
- };
24450
- });
24451
- }
24452
- });
24453
- case 2:
24454
- return _context.abrupt("return", _context.sent);
24455
- case 3:
24456
- case "end":
24457
- return _context.stop();
24465
+ while (1) {
24466
+ switch (_context.prev = _context.next) {
24467
+ case 0:
24468
+ _context.next = 2;
24469
+ return request$1({
24470
+ url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
24471
+ converter: function converter(_ref2) {
24472
+ var data = _ref2.data;
24473
+ return data === null || data === void 0 ? void 0 : data.map(function (d) {
24474
+ return {
24475
+ text: d.name,
24476
+ value: d.code || d.brandCode
24477
+ };
24478
+ });
24479
+ }
24480
+ });
24481
+ case 2:
24482
+ return _context.abrupt("return", _context.sent);
24483
+ case 3:
24484
+ case "end":
24485
+ return _context.stop();
24486
+ }
24458
24487
  }
24459
24488
  }, _callee);
24460
24489
  }));
@@ -24504,53 +24533,55 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
24504
24533
  useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
24505
24534
  var _ref$current, source;
24506
24535
  return _regeneratorRuntime().wrap(function _callee$(_context) {
24507
- while (1) switch (_context.prev = _context.next) {
24508
- case 0:
24509
- _context.next = 2;
24510
- return setIsShowAndType(function (prev) {
24511
- if (record.inputType === 20 || record.inputType === 30) {
24512
- return {
24513
- isShow: true,
24514
- singleOrMultiple: record.inputType,
24515
- type: record.choiceType
24516
- };
24536
+ while (1) {
24537
+ switch (_context.prev = _context.next) {
24538
+ case 0:
24539
+ _context.next = 2;
24540
+ return setIsShowAndType(function (prev) {
24541
+ if (record.inputType === 20 || record.inputType === 30) {
24542
+ return {
24543
+ isShow: true,
24544
+ singleOrMultiple: record.inputType,
24545
+ type: record.choiceType
24546
+ };
24547
+ }
24548
+ return prev;
24549
+ });
24550
+ case 2:
24551
+ if (!record.dictionaryCode) {
24552
+ _context.next = 17;
24553
+ break;
24517
24554
  }
24518
- return prev;
24519
- });
24520
- case 2:
24521
- if (!record.dictionaryCode) {
24522
- _context.next = 17;
24523
- break;
24524
- }
24525
- if (!(record.choiceType == 20)) {
24526
- _context.next = 7;
24555
+ if (!(record.choiceType == 20)) {
24556
+ _context.next = 7;
24557
+ break;
24558
+ }
24559
+ _context.t0 = getDictionarySource(record.dictionaryCode);
24560
+ _context.next = 15;
24527
24561
  break;
24528
- }
24529
- _context.t0 = getDictionarySource(record.dictionaryCode);
24530
- _context.next = 15;
24531
- break;
24532
- case 7:
24533
- if (!(record.choiceType == 30)) {
24534
- _context.next = 13;
24562
+ case 7:
24563
+ if (!(record.choiceType == 30)) {
24564
+ _context.next = 13;
24565
+ break;
24566
+ }
24567
+ _context.next = 10;
24568
+ return getDynamicDict(record.dictionaryCode);
24569
+ case 10:
24570
+ _context.t1 = _context.sent;
24571
+ _context.next = 14;
24535
24572
  break;
24536
- }
24537
- _context.next = 10;
24538
- return getDynamicDict(record.dictionaryCode);
24539
- case 10:
24540
- _context.t1 = _context.sent;
24541
- _context.next = 14;
24542
- break;
24543
- case 13:
24544
- _context.t1 = [];
24545
- case 14:
24546
- _context.t0 = _context.t1;
24547
- case 15:
24548
- source = _context.t0;
24549
- // @ts-ignore
24550
- ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
24551
- case 17:
24552
- case "end":
24553
- return _context.stop();
24573
+ case 13:
24574
+ _context.t1 = [];
24575
+ case 14:
24576
+ _context.t0 = _context.t1;
24577
+ case 15:
24578
+ source = _context.t0;
24579
+ // @ts-ignore
24580
+ ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
24581
+ case 17:
24582
+ case "end":
24583
+ return _context.stop();
24584
+ }
24554
24585
  }
24555
24586
  }, _callee);
24556
24587
  })));
@@ -24618,28 +24649,30 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
24618
24649
  var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
24619
24650
  var form, values, name, relates, source;
24620
24651
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
24621
- while (1) switch (_context2.prev = _context2.next) {
24622
- case 0:
24623
- form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
24624
- if (values[0]) {
24652
+ while (1) {
24653
+ switch (_context2.prev = _context2.next) {
24654
+ case 0:
24655
+ form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
24656
+ if (values[0]) {
24657
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
24658
+ form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
24659
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
24660
+ }
24661
+ if (!values[1]) {
24662
+ _context2.next = 9;
24663
+ break;
24664
+ }
24665
+ _context2.next = 5;
24666
+ return getDynamicDict(record.dictionaryCode || values[1]);
24667
+ case 5:
24668
+ source = _context2.sent;
24625
24669
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
24626
24670
  form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
24627
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
24628
- }
24629
- if (!values[1]) {
24630
- _context2.next = 9;
24631
- break;
24632
- }
24633
- _context2.next = 5;
24634
- return getDynamicDict(record.dictionaryCode || values[1]);
24635
- case 5:
24636
- source = _context2.sent;
24637
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
24638
- form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
24639
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
24640
- case 9:
24641
- case "end":
24642
- return _context2.stop();
24671
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
24672
+ case 9:
24673
+ case "end":
24674
+ return _context2.stop();
24675
+ }
24643
24676
  }
24644
24677
  }, _callee2);
24645
24678
  }));
@@ -25099,41 +25132,43 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
25099
25132
  var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
25100
25133
  var values, name, form, source;
25101
25134
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
25102
- while (1) switch (_context3.prev = _context3.next) {
25103
- case 0:
25104
- values = _ref10.values, name = _ref10.name, form = _ref10.form;
25105
- if (values[1] === 40) {
25106
- form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
25107
- form.setFieldVisible(name, false);
25108
- }
25109
- if (!(values[0] === 30)) {
25110
- _context3.next = 10;
25111
- break;
25112
- }
25113
- _context3.next = 5;
25114
- return request$1({
25115
- url: '/basic/dictDynamicItem/queryList',
25116
- converter: function converter(_ref11) {
25117
- var data = _ref11.data;
25118
- return data === null || data === void 0 ? void 0 : data.map(function (d) {
25119
- return {
25120
- text: d.dictCode,
25121
- value: d.dictCode
25122
- };
25123
- });
25135
+ while (1) {
25136
+ switch (_context3.prev = _context3.next) {
25137
+ case 0:
25138
+ values = _ref10.values, name = _ref10.name, form = _ref10.form;
25139
+ if (values[1] === 40) {
25140
+ form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
25141
+ form.setFieldVisible(name, false);
25124
25142
  }
25125
- });
25126
- case 5:
25127
- source = _context3.sent;
25128
- form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
25129
- form.setFieldVisible(name, true);
25130
- _context3.next = 11;
25131
- break;
25132
- case 10:
25133
- form.setFieldVisible(name, false);
25134
- case 11:
25135
- case "end":
25136
- return _context3.stop();
25143
+ if (!(values[0] === 30)) {
25144
+ _context3.next = 10;
25145
+ break;
25146
+ }
25147
+ _context3.next = 5;
25148
+ return request$1({
25149
+ url: '/basic/dictDynamicItem/queryList',
25150
+ converter: function converter(_ref11) {
25151
+ var data = _ref11.data;
25152
+ return data === null || data === void 0 ? void 0 : data.map(function (d) {
25153
+ return {
25154
+ text: d.dictCode,
25155
+ value: d.dictCode
25156
+ };
25157
+ });
25158
+ }
25159
+ });
25160
+ case 5:
25161
+ source = _context3.sent;
25162
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
25163
+ form.setFieldVisible(name, true);
25164
+ _context3.next = 11;
25165
+ break;
25166
+ case 10:
25167
+ form.setFieldVisible(name, false);
25168
+ case 11:
25169
+ case "end":
25170
+ return _context3.stop();
25171
+ }
25137
25172
  }
25138
25173
  }, _callee3);
25139
25174
  }));
@@ -25322,64 +25357,66 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
25322
25357
  var _ref$current4, _res$editableStatus;
25323
25358
  var res, _res$defaultValue;
25324
25359
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
25325
- while (1) switch (_context4.prev = _context4.next) {
25326
- case 0:
25327
- _context4.next = 2;
25328
- return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
25329
- case 2:
25330
- res = _context4.sent;
25331
- res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
25332
- res.fieldGroup = record.fieldGroup;
25333
- res.businessType = record.businessType;
25334
- res.info = {
25335
- enumeration: res.enumeration,
25336
- dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
25337
- formula: res.formula,
25338
- scale: res.scale,
25339
- variable: res.variable
25340
- };
25341
- res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
25342
- res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
25343
- res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
25344
- if (res.inputType === 40) {
25345
- res.valueType = 22;
25346
- }
25347
- // 把数组处理成文本
25348
- if (res.inputType === 30) {
25349
- if (res.defaultValue) {
25350
- res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
25360
+ while (1) {
25361
+ switch (_context4.prev = _context4.next) {
25362
+ case 0:
25363
+ _context4.next = 2;
25364
+ return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
25365
+ case 2:
25366
+ res = _context4.sent;
25367
+ res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
25368
+ res.fieldGroup = record.fieldGroup;
25369
+ res.businessType = record.businessType;
25370
+ res.info = {
25371
+ enumeration: res.enumeration,
25372
+ dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
25373
+ formula: res.formula,
25374
+ scale: res.scale,
25375
+ variable: res.variable
25376
+ };
25377
+ res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
25378
+ res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
25379
+ res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
25380
+ if (res.inputType === 40) {
25381
+ res.valueType = 22;
25351
25382
  }
25352
- }
25353
- res.fieldMapping = res.fieldMapping || '';
25354
- delete res.formula;
25355
- delete res.showValue;
25356
- if (!(mode === 'create')) {
25357
- _context4.next = 18;
25358
- break;
25359
- }
25360
- request$1({
25361
- url: "/basic/flow/businessField",
25362
- method: 'POST',
25363
- params: res,
25364
- successMessage: '创建成功!',
25365
- converter: function converter() {
25366
- onParentOk();
25383
+ // 把数组处理成文本
25384
+ if (res.inputType === 30) {
25385
+ if (res.defaultValue) {
25386
+ res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
25387
+ }
25367
25388
  }
25368
- });
25369
- return _context4.abrupt("return");
25370
- case 18:
25371
- request$1({
25372
- url: "/basic/flow/businessField/".concat(record.id),
25373
- method: 'PATCH',
25374
- params: res,
25375
- successMessage: '修改成功!',
25376
- converter: function converter() {
25377
- onParentOk();
25389
+ res.fieldMapping = res.fieldMapping || '';
25390
+ delete res.formula;
25391
+ delete res.showValue;
25392
+ if (!(mode === 'create')) {
25393
+ _context4.next = 18;
25394
+ break;
25378
25395
  }
25379
- });
25380
- case 19:
25381
- case "end":
25382
- return _context4.stop();
25396
+ request$1({
25397
+ url: "/basic/flow/businessField",
25398
+ method: 'POST',
25399
+ params: res,
25400
+ successMessage: '创建成功!',
25401
+ converter: function converter() {
25402
+ onParentOk();
25403
+ }
25404
+ });
25405
+ return _context4.abrupt("return");
25406
+ case 18:
25407
+ request$1({
25408
+ url: "/basic/flow/businessField/".concat(record.id),
25409
+ method: 'PATCH',
25410
+ params: res,
25411
+ successMessage: '修改成功!',
25412
+ converter: function converter() {
25413
+ onParentOk();
25414
+ }
25415
+ });
25416
+ case 19:
25417
+ case "end":
25418
+ return _context4.stop();
25419
+ }
25383
25420
  }
25384
25421
  }, _callee4);
25385
25422
  }));
@@ -26164,26 +26201,28 @@ var BsCascader = function BsCascader(_ref) {
26164
26201
  useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
26165
26202
  var resData, data;
26166
26203
  return _regeneratorRuntime().wrap(function _callee$(_context) {
26167
- while (1) switch (_context.prev = _context.next) {
26168
- case 0:
26169
- if (!(!source && initRequestSource)) {
26170
- _context.next = 6;
26171
- break;
26172
- }
26173
- _context.next = 3;
26174
- return initRequestSource();
26175
- case 3:
26176
- resData = _context.sent;
26177
- data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
26178
- return _objectSpread2(_objectSpread2({}, item), {}, {
26179
- label: item.text,
26180
- isLeaf: false
26181
- });
26182
- })) || [];
26183
- setHandSource(data);
26184
- case 6:
26185
- case "end":
26186
- return _context.stop();
26204
+ while (1) {
26205
+ switch (_context.prev = _context.next) {
26206
+ case 0:
26207
+ if (!(!source && initRequestSource)) {
26208
+ _context.next = 6;
26209
+ break;
26210
+ }
26211
+ _context.next = 3;
26212
+ return initRequestSource();
26213
+ case 3:
26214
+ resData = _context.sent;
26215
+ data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
26216
+ return _objectSpread2(_objectSpread2({}, item), {}, {
26217
+ label: item.text,
26218
+ isLeaf: false
26219
+ });
26220
+ })) || [];
26221
+ setHandSource(data);
26222
+ case 6:
26223
+ case "end":
26224
+ return _context.stop();
26225
+ }
26187
26226
  }
26188
26227
  }, _callee);
26189
26228
  })), []);
@@ -26315,18 +26354,20 @@ function getRegularThresholdRange(_x) {
26315
26354
  function _getRegularThresholdRange() {
26316
26355
  _getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
26317
26356
  return _regeneratorRuntime().wrap(function _callee$(_context) {
26318
- while (1) switch (_context.prev = _context.next) {
26319
- case 0:
26320
- return _context.abrupt("return", axios({
26321
- url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
26322
- method: 'POST',
26323
- data: _objectSpread2(_objectSpread2({}, params), {}, {
26324
- queryIdentify: undefined
26325
- })
26326
- }));
26327
- case 1:
26328
- case "end":
26329
- return _context.stop();
26357
+ while (1) {
26358
+ switch (_context.prev = _context.next) {
26359
+ case 0:
26360
+ return _context.abrupt("return", axios({
26361
+ url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
26362
+ method: 'POST',
26363
+ data: _objectSpread2(_objectSpread2({}, params), {}, {
26364
+ queryIdentify: undefined
26365
+ })
26366
+ }));
26367
+ case 1:
26368
+ case "end":
26369
+ return _context.stop();
26370
+ }
26330
26371
  }
26331
26372
  }, _callee);
26332
26373
  }));
@@ -26465,136 +26506,137 @@ var RuleField = /*#__PURE__*/function (_Component) {
26465
26506
  _this.getRegularThresholdRange(queryIdentify, propertyCode, queryIdentifyType);
26466
26507
  });
26467
26508
  };
26468
- //规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
26469
26509
  _this.getRegularThresholdRange = /*#__PURE__*/function () {
26470
26510
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
26471
26511
  var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
26472
26512
  return _regeneratorRuntime().wrap(function _callee$(_context) {
26473
- while (1) switch (_context.prev = _context.next) {
26474
- case 0:
26475
- if (queryIdentify) {
26476
- _context.next = 2;
26477
- break;
26478
- }
26479
- return _context.abrupt("return");
26480
- case 2:
26481
- thresholdQuery = _this.state.thresholdQuery;
26482
- extraRequestUrl = '';
26483
- querParams = setParams(propertyCode, thresholdQuery);
26484
- if (!queryIdentityInfo.find(function (item) {
26485
- return item.identity == propertyCode;
26486
- })) {
26487
- _context.next = 10;
26488
- break;
26489
- }
26490
- //判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
26491
- needQueryList = queryIdentityInfo.find(function (item) {
26492
- return item.identity == propertyCode;
26493
- }).queryParam.filter(function (item) {
26494
- return item.isRequired;
26495
- }).map(function (item) {
26496
- return item.queryKey;
26497
- });
26498
- if (!needQueryList.some(function (item) {
26499
- return !querParams[item] || !querParams[item].length;
26500
- })) {
26501
- _context.next = 9;
26502
- break;
26503
- }
26504
- return _context.abrupt("return");
26505
- case 9:
26506
- extraRequestUrl = queryIdentityInfo.find(function (item) {
26507
- return item.identity == propertyCode;
26508
- }).requestUrl || '';
26509
- case 10:
26510
- if (queryIdentifyType === 'dictCodeIdentify') {
26511
- extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
26512
- querParams = {
26513
- dictCode: queryIdentify
26514
- };
26515
- } else if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26516
- extraRequestUrl = "dictDynamicItem/getDynamicData/".concat(queryIdentify); // 字典接口
26517
- // querParams = { dictCode: queryIdentify }
26518
- }
26519
- if (!extraRequestUrl) {
26520
- _context.next = 16;
26521
- break;
26522
- }
26523
- if (queryIdentify == 'maintain_area_code') {
26524
- extraRequestUrl = "/basic/".concat(extraRequestUrl).concat(querParams.memberCardCode, "?").concat(stringify(querParams));
26525
- } else if (queryIdentifyType == 'dictCodeIdentify') {
26526
- extraRequestUrl = "/basic/".concat(extraRequestUrl, "?").concat(stringify(querParams));
26527
- } else if (queryIdentifyType == 'dynamicDictCodeIdentify') {
26528
- extraRequestUrl = "/basic/".concat(extraRequestUrl);
26529
- }
26530
- request$1({
26531
- url: extraRequestUrl,
26532
- method: 'get',
26533
- converter: function converter(res) {
26534
- if (handleError(res)) {
26535
- var _handleData = (res === null || res === void 0 ? void 0 : res.data) || [];
26536
- if (queryIdentifyType === 'dictCodeIdentify') {
26537
- var _handleData2;
26538
- _handleData = ((_handleData2 = _handleData) === null || _handleData2 === void 0 ? void 0 : _handleData2.length) ? _handleData.map(function (i) {
26539
- return {
26540
- code: i.dictItemCode,
26541
- name: i.dictItemName
26542
- };
26543
- }) : [];
26544
- }
26545
- if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26546
- var _handleData3;
26547
- _handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
26548
- return {
26549
- code: i.code.toString(),
26550
- name: i.name
26551
- };
26552
- }) : [];
26513
+ while (1) {
26514
+ switch (_context.prev = _context.next) {
26515
+ case 0:
26516
+ if (queryIdentify) {
26517
+ _context.next = 2;
26518
+ break;
26519
+ }
26520
+ return _context.abrupt("return");
26521
+ case 2:
26522
+ thresholdQuery = _this.state.thresholdQuery;
26523
+ extraRequestUrl = '';
26524
+ querParams = setParams(propertyCode, thresholdQuery);
26525
+ if (!queryIdentityInfo.find(function (item) {
26526
+ return item.identity == propertyCode;
26527
+ })) {
26528
+ _context.next = 10;
26529
+ break;
26530
+ }
26531
+ //判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
26532
+ needQueryList = queryIdentityInfo.find(function (item) {
26533
+ return item.identity == propertyCode;
26534
+ }).queryParam.filter(function (item) {
26535
+ return item.isRequired;
26536
+ }).map(function (item) {
26537
+ return item.queryKey;
26538
+ });
26539
+ if (!needQueryList.some(function (item) {
26540
+ return !querParams[item] || !querParams[item].length;
26541
+ })) {
26542
+ _context.next = 9;
26543
+ break;
26544
+ }
26545
+ return _context.abrupt("return");
26546
+ case 9:
26547
+ extraRequestUrl = queryIdentityInfo.find(function (item) {
26548
+ return item.identity == propertyCode;
26549
+ }).requestUrl || '';
26550
+ case 10:
26551
+ if (queryIdentifyType === 'dictCodeIdentify') {
26552
+ extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
26553
+ querParams = {
26554
+ dictCode: queryIdentify
26555
+ };
26556
+ } else if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26557
+ extraRequestUrl = "dictDynamicItem/getDynamicData/".concat(queryIdentify); // 字典接口
26558
+ // querParams = { dictCode: queryIdentify }
26559
+ }
26560
+ if (!extraRequestUrl) {
26561
+ _context.next = 16;
26562
+ break;
26563
+ }
26564
+ if (queryIdentify == 'maintain_area_code') {
26565
+ extraRequestUrl = "/basic/".concat(extraRequestUrl).concat(querParams.memberCardCode, "?").concat(stringify(querParams));
26566
+ } else if (queryIdentifyType == 'dictCodeIdentify') {
26567
+ extraRequestUrl = "/basic/".concat(extraRequestUrl, "?").concat(stringify(querParams));
26568
+ } else if (queryIdentifyType == 'dynamicDictCodeIdentify') {
26569
+ extraRequestUrl = "/basic/".concat(extraRequestUrl);
26570
+ }
26571
+ request$1({
26572
+ url: extraRequestUrl,
26573
+ method: 'get',
26574
+ converter: function converter(res) {
26575
+ if (handleError(res)) {
26576
+ var _handleData = (res === null || res === void 0 ? void 0 : res.data) || [];
26577
+ if (queryIdentifyType === 'dictCodeIdentify') {
26578
+ var _handleData2;
26579
+ _handleData = ((_handleData2 = _handleData) === null || _handleData2 === void 0 ? void 0 : _handleData2.length) ? _handleData.map(function (i) {
26580
+ return {
26581
+ code: i.dictItemCode,
26582
+ name: i.dictItemName
26583
+ };
26584
+ }) : [];
26585
+ }
26586
+ if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26587
+ var _handleData3;
26588
+ _handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
26589
+ return {
26590
+ code: i.code.toString(),
26591
+ name: i.name
26592
+ };
26593
+ }) : [];
26594
+ }
26595
+ _this.setState({
26596
+ thresholdList: _handleData
26597
+ });
26553
26598
  }
26554
- _this.setState({
26555
- thresholdList: _handleData
26556
- });
26599
+ return handleData;
26557
26600
  }
26558
- return handleData;
26559
- }
26560
- });
26561
- _context.next = 29;
26562
- break;
26563
- case 16:
26564
- if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
26565
- _context.next = 20;
26601
+ });
26602
+ _context.next = 29;
26566
26603
  break;
26567
- }
26568
- _this.setState({
26569
- thresholdList: queryIdentify
26570
- });
26571
- _context.next = 29;
26572
- break;
26573
- case 20:
26574
- if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
26575
- _context.next = 24;
26604
+ case 16:
26605
+ if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
26606
+ _context.next = 20;
26607
+ break;
26608
+ }
26609
+ _this.setState({
26610
+ thresholdList: queryIdentify
26611
+ });
26612
+ _context.next = 29;
26576
26613
  break;
26577
- }
26578
- // TODO待处理
26579
- _this.setState({
26580
- thresholdList: []
26581
- });
26582
- _context.next = 29;
26583
- break;
26584
- case 24:
26585
- querParams.queryIdentify = queryIdentify;
26586
- _context.next = 27;
26587
- return getRegularThresholdRange(querParams);
26588
- case 27:
26589
- res = _context.sent;
26590
- if (handleError(res)) {
26614
+ case 20:
26615
+ if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
26616
+ _context.next = 24;
26617
+ break;
26618
+ }
26619
+ // TODO待处理
26591
26620
  _this.setState({
26592
- thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
26621
+ thresholdList: []
26593
26622
  });
26594
- }
26595
- case 29:
26596
- case "end":
26597
- return _context.stop();
26623
+ _context.next = 29;
26624
+ break;
26625
+ case 24:
26626
+ querParams.queryIdentify = queryIdentify;
26627
+ _context.next = 27;
26628
+ return getRegularThresholdRange(querParams);
26629
+ case 27:
26630
+ res = _context.sent;
26631
+ if (handleError(res)) {
26632
+ _this.setState({
26633
+ thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
26634
+ });
26635
+ }
26636
+ case 29:
26637
+ case "end":
26638
+ return _context.stop();
26639
+ }
26598
26640
  }
26599
26641
  }, _callee);
26600
26642
  }));
@@ -27413,30 +27455,32 @@ var RuleField = /*#__PURE__*/function (_Component) {
27413
27455
  notChangeOnSelect: true,
27414
27456
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
27415
27457
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
27416
- while (1) switch (_context2.prev = _context2.next) {
27417
- case 0:
27418
- _context2.next = 2;
27419
- return request$1({
27420
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27421
- method: 'get',
27422
- converter: function converter(_ref3) {
27423
- var data = _ref3.data;
27424
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27425
- return {
27426
- text: item.name,
27427
- value: item.id,
27428
- level: item.level,
27429
- id: item.id
27430
- };
27431
- }) : [];
27432
- return handleData;
27433
- }
27434
- });
27435
- case 2:
27436
- return _context2.abrupt("return", _context2.sent);
27437
- case 3:
27438
- case "end":
27439
- return _context2.stop();
27458
+ while (1) {
27459
+ switch (_context2.prev = _context2.next) {
27460
+ case 0:
27461
+ _context2.next = 2;
27462
+ return request$1({
27463
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27464
+ method: 'get',
27465
+ converter: function converter(_ref3) {
27466
+ var data = _ref3.data;
27467
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27468
+ return {
27469
+ text: item.name,
27470
+ value: item.id,
27471
+ level: item.level,
27472
+ id: item.id
27473
+ };
27474
+ }) : [];
27475
+ return handleData;
27476
+ }
27477
+ });
27478
+ case 2:
27479
+ return _context2.abrupt("return", _context2.sent);
27480
+ case 3:
27481
+ case "end":
27482
+ return _context2.stop();
27483
+ }
27440
27484
  }
27441
27485
  }, _callee2);
27442
27486
  })),
@@ -27462,30 +27506,32 @@ var RuleField = /*#__PURE__*/function (_Component) {
27462
27506
  notChangeOnSelect: true,
27463
27507
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
27464
27508
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
27465
- while (1) switch (_context3.prev = _context3.next) {
27466
- case 0:
27467
- _context3.next = 2;
27468
- return request$1({
27469
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27470
- method: 'get',
27471
- converter: function converter(_ref5) {
27472
- var data = _ref5.data;
27473
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27474
- return {
27475
- text: item.name,
27476
- value: item.id,
27477
- level: item.level,
27478
- id: item.id
27479
- };
27480
- }) : [];
27481
- return handleData;
27482
- }
27483
- });
27484
- case 2:
27485
- return _context3.abrupt("return", _context3.sent);
27486
- case 3:
27487
- case "end":
27488
- return _context3.stop();
27509
+ while (1) {
27510
+ switch (_context3.prev = _context3.next) {
27511
+ case 0:
27512
+ _context3.next = 2;
27513
+ return request$1({
27514
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27515
+ method: 'get',
27516
+ converter: function converter(_ref5) {
27517
+ var data = _ref5.data;
27518
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27519
+ return {
27520
+ text: item.name,
27521
+ value: item.id,
27522
+ level: item.level,
27523
+ id: item.id
27524
+ };
27525
+ }) : [];
27526
+ return handleData;
27527
+ }
27528
+ });
27529
+ case 2:
27530
+ return _context3.abrupt("return", _context3.sent);
27531
+ case 3:
27532
+ case "end":
27533
+ return _context3.stop();
27534
+ }
27489
27535
  }
27490
27536
  }, _callee3);
27491
27537
  })),
@@ -27513,30 +27559,32 @@ var RuleField = /*#__PURE__*/function (_Component) {
27513
27559
  notChangeOnSelect: true,
27514
27560
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
27515
27561
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
27516
- while (1) switch (_context4.prev = _context4.next) {
27517
- case 0:
27518
- _context4.next = 2;
27519
- return request$1({
27520
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27521
- method: 'get',
27522
- converter: function converter(_ref7) {
27523
- var data = _ref7.data;
27524
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27525
- return {
27526
- text: item.name,
27527
- value: item.id,
27528
- level: item.level,
27529
- id: item.id
27530
- };
27531
- }) : [];
27532
- return handleData;
27533
- }
27534
- });
27535
- case 2:
27536
- return _context4.abrupt("return", _context4.sent);
27537
- case 3:
27538
- case "end":
27539
- return _context4.stop();
27562
+ while (1) {
27563
+ switch (_context4.prev = _context4.next) {
27564
+ case 0:
27565
+ _context4.next = 2;
27566
+ return request$1({
27567
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27568
+ method: 'get',
27569
+ converter: function converter(_ref7) {
27570
+ var data = _ref7.data;
27571
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27572
+ return {
27573
+ text: item.name,
27574
+ value: item.id,
27575
+ level: item.level,
27576
+ id: item.id
27577
+ };
27578
+ }) : [];
27579
+ return handleData;
27580
+ }
27581
+ });
27582
+ case 2:
27583
+ return _context4.abrupt("return", _context4.sent);
27584
+ case 3:
27585
+ case "end":
27586
+ return _context4.stop();
27587
+ }
27540
27588
  }
27541
27589
  }, _callee4);
27542
27590
  })),
@@ -28653,6 +28701,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
28653
28701
  });
28654
28702
  }
28655
28703
  }
28704
+
28705
+ //规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
28656
28706
  }, {
28657
28707
  key: "render",
28658
28708
  value: function render() {
@@ -29483,7 +29533,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29483
29533
  callBack(ruleClassData);
29484
29534
  });
29485
29535
  };
29486
- // 树结构 转化成 平行树 (递归函数)
29487
29536
  _this.coverToParallel = function (treeData, result) {
29488
29537
  treeData.forEach(function (el) {
29489
29538
  result.push(el);
@@ -29739,7 +29788,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29739
29788
  callBack(ruleClassData);
29740
29789
  });
29741
29790
  };
29742
- // 场景需要返回值2022.11.15
29743
29791
  _this.renderResItem = function (itemDetail, parentDetail, ruleReturnConfig, classDataIndex, disabled, boxStyle) {
29744
29792
  var _ruleReturnConfig$rig;
29745
29793
  var isShowResponse = itemDetail.response['enable'];
@@ -30037,30 +30085,32 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30037
30085
  notChangeOnSelect: true,
30038
30086
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
30039
30087
  return _regeneratorRuntime().wrap(function _callee$(_context) {
30040
- while (1) switch (_context.prev = _context.next) {
30041
- case 0:
30042
- _context.next = 2;
30043
- return request$1({
30044
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
30045
- method: 'get',
30046
- converter: function converter(_ref2) {
30047
- var data = _ref2.data;
30048
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
30049
- return {
30050
- text: item.name,
30051
- value: item.id,
30052
- level: item.level,
30053
- id: item.id
30054
- };
30055
- }) : [];
30056
- return handleData;
30057
- }
30058
- });
30059
- case 2:
30060
- return _context.abrupt("return", _context.sent);
30061
- case 3:
30062
- case "end":
30063
- return _context.stop();
30088
+ while (1) {
30089
+ switch (_context.prev = _context.next) {
30090
+ case 0:
30091
+ _context.next = 2;
30092
+ return request$1({
30093
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
30094
+ method: 'get',
30095
+ converter: function converter(_ref2) {
30096
+ var data = _ref2.data;
30097
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
30098
+ return {
30099
+ text: item.name,
30100
+ value: item.id,
30101
+ level: item.level,
30102
+ id: item.id
30103
+ };
30104
+ }) : [];
30105
+ return handleData;
30106
+ }
30107
+ });
30108
+ case 2:
30109
+ return _context.abrupt("return", _context.sent);
30110
+ case 3:
30111
+ case "end":
30112
+ return _context.stop();
30113
+ }
30064
30114
  }
30065
30115
  }, _callee);
30066
30116
  })),
@@ -30394,7 +30444,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30394
30444
  }
30395
30445
  }, "\u65B0\u589E\u8FD4\u56DE\u503C")), isHaveRuleReturnConfig && _this.renderResItem(itemDetail, parentDetail, ruleReturnConfig, classDataIndex, disabled, RuleActionItemStyle) || null, isHaveRuleTypeData && _this.renderActionList(itemDetail, parentDetail, handleRuleTypeData, selectRuleActionData, classDataIndex, disabled, RuleActionItemStyle) || null);
30396
30446
  };
30397
- //添加同一层级条件
30398
30447
  _this.addPeerRule = function (itemDetail) {
30399
30448
  var ruleClassData = _this.state.ruleClassData;
30400
30449
  var _this$props4 = _this.props,
@@ -30415,7 +30464,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30415
30464
  callBack(ruleClassData);
30416
30465
  });
30417
30466
  };
30418
- //添加子层级条件
30419
30467
  _this.addChildRules = function (itemDetail) {
30420
30468
  var ruleClassData = _this.state.ruleClassData;
30421
30469
  var callBack = _this.props.callBack;
@@ -30491,7 +30539,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30491
30539
  callBack(ruleClassData);
30492
30540
  });
30493
30541
  };
30494
- // 新增执行顺序
30495
30542
  _this.handleSelectRuleAction = function (keys, classDataIndex, callback) {
30496
30543
  callback();
30497
30544
  var callBack = _this.props.callBack;
@@ -30642,4 +30689,4 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30642
30689
  return RuleObjectComponent;
30643
30690
  }(Component);
30644
30691
 
30645
- 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 };
30692
+ 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 };