@bit-sun/business-component 2.3.16 → 2.3.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (202) hide show
  1. package/.editorconfig +16 -16
  2. package/.fatherrc.ts +5 -5
  3. package/.gitlab-ci.yml +179 -179
  4. package/.prettierignore +7 -7
  5. package/.prettierrc +11 -11
  6. package/.umirc.ts +74 -74
  7. package/README.md +27 -27
  8. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
  9. package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
  10. package/dist/components/Business/SearchSelect/common.d.ts +5 -1
  11. package/dist/components/Business/SearchSelect/index.d.ts +1 -1
  12. package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
  13. package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
  14. package/dist/index.esm.js +918 -936
  15. package/dist/index.js +924 -942
  16. package/dist/utils/utils.d.ts +1 -1
  17. package/docs/index.md +21 -21
  18. package/lib/assets/drag.svg +17 -17
  19. package/lib/assets/exportFail.svg +37 -37
  20. package/lib/assets/exportProcessing.svg +28 -28
  21. package/lib/assets/exportSuccess.svg +34 -34
  22. package/lib/assets/label_icon_bottom.svg +25 -25
  23. package/lib/assets/upExport.svg +22 -22
  24. package/package.json +78 -78
  25. package/src/assets/32.svg +27 -27
  26. package/src/assets/addIcon.svg +17 -17
  27. package/src/assets/allfunc.svg +27 -27
  28. package/src/assets/arrowRight.svg +24 -24
  29. package/src/assets/btn-delete.svg +29 -29
  30. package/src/assets/btn-edit.svg +19 -19
  31. package/src/assets/btn-more.svg +17 -17
  32. package/src/assets/btn-submit.svg +19 -19
  33. package/src/assets/caidan.svg +11 -11
  34. package/src/assets/close.svg +26 -26
  35. package/src/assets/drag.svg +17 -17
  36. package/src/assets/exportFail.svg +37 -37
  37. package/src/assets/exportProcessing.svg +28 -28
  38. package/src/assets/exportSuccess.svg +34 -34
  39. package/src/assets/fixed-left-active.svg +11 -11
  40. package/src/assets/fixed-left.svg +15 -15
  41. package/src/assets/fixed-right-active.svg +11 -11
  42. package/src/assets/fixed-right.svg +15 -15
  43. package/src/assets/guanbi.svg +15 -15
  44. package/src/assets/icon-quanping.svg +15 -15
  45. package/src/assets/icon-shezhi.svg +17 -17
  46. package/src/assets/label_icon_bottom.svg +25 -25
  47. package/src/assets/list-no-img.svg +21 -21
  48. package/src/assets/morentouxiang-32.svg +23 -23
  49. package/src/assets/scanning.svg +24 -24
  50. package/src/assets/upExport.svg +22 -22
  51. package/src/common/ENUM.ts +41 -41
  52. package/src/components/Business/AddSelectBusiness/index.md +161 -161
  53. package/src/components/Business/AddSelectBusiness/index.tsx +861 -861
  54. package/src/components/Business/BsLayouts/Components/AllFunc/drawContent.tsx +111 -111
  55. package/src/components/Business/BsLayouts/Components/AllFunc/index.less +153 -153
  56. package/src/components/Business/BsLayouts/Components/AllFunc/index.tsx +70 -70
  57. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.less +90 -90
  58. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.tsx +37 -37
  59. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.tsx +242 -242
  60. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.tsx +384 -384
  61. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.tsx +285 -285
  62. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.tsx +74 -74
  63. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/drawContent.less +170 -170
  64. package/src/components/Business/BsLayouts/Components/CustomerMenu/index.less +64 -64
  65. package/src/components/Business/BsLayouts/Components/CustomerMenu/index.tsx +153 -153
  66. package/src/components/Business/BsLayouts/Components/GlobalHeader/index.less +72 -72
  67. package/src/components/Business/BsLayouts/Components/GlobalHeader/index.tsx +157 -157
  68. package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +85 -85
  69. package/src/components/Business/BsLayouts/Components/RightContent/home.less +218 -218
  70. package/src/components/Business/BsLayouts/Components/RightContent/index.tsx +155 -155
  71. package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +160 -160
  72. package/src/components/Business/BsLayouts/Components/SearchFunc/index.tsx +75 -75
  73. package/src/components/Business/BsLayouts/index.less +79 -79
  74. package/src/components/Business/BsLayouts/index.tsx +1484 -1484
  75. package/src/components/Business/BsLayouts/service.ts +10 -10
  76. package/src/components/Business/BsLayouts/utils.tsx +203 -203
  77. package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +564 -564
  78. package/src/components/Business/BsSulaQueryTable/index.less +221 -221
  79. package/src/components/Business/BsSulaQueryTable/index.tsx +535 -535
  80. package/src/components/Business/BsSulaQueryTable/setting.tsx +852 -852
  81. package/src/components/Business/BsSulaQueryTable/utils.less +65 -65
  82. package/src/components/Business/BsSulaQueryTable/utils.tsx +688 -688
  83. package/src/components/Business/CommodityEntry/index.md +70 -70
  84. package/src/components/Business/CommodityEntry/index.tsx +80 -80
  85. package/src/components/Business/CommonAlert/index.tsx +23 -23
  86. package/src/components/Business/CommonGuideWrapper/index.less +111 -111
  87. package/src/components/Business/CommonGuideWrapper/index.md +39 -39
  88. package/src/components/Business/CommonGuideWrapper/index.tsx +83 -83
  89. package/src/components/Business/DetailPageWrapper/index.less +79 -79
  90. package/src/components/Business/DetailPageWrapper/index.tsx +313 -313
  91. package/src/components/Business/DetailPageWrapper/utils.tsx +100 -100
  92. package/src/components/Business/HomePageWrapper/index.less +33 -33
  93. package/src/components/Business/HomePageWrapper/index.md +45 -45
  94. package/src/components/Business/HomePageWrapper/index.tsx +162 -162
  95. package/src/components/Business/JsonQueryTable/components/FieldsModifyModal.tsx +824 -824
  96. package/src/components/Business/JsonQueryTable/components/FieldsSettingsTable.tsx +205 -205
  97. package/src/components/Business/JsonQueryTable/components/Formula.tsx +205 -205
  98. package/src/components/Business/JsonQueryTable/components/MaintainOptions.tsx +127 -127
  99. package/src/components/Business/JsonQueryTable/configButton/index.js +20 -20
  100. package/src/components/Business/JsonQueryTable/configTree/component/compactArrayView.js +25 -25
  101. package/src/components/Business/JsonQueryTable/configTree/component/compactObjectView.js +30 -30
  102. package/src/components/Business/JsonQueryTable/configTree/index.js +82 -82
  103. package/src/components/Business/JsonQueryTable/configTree/index.less +44 -44
  104. package/src/components/Business/JsonQueryTable/configTree/parser/highlight.js +57 -57
  105. package/src/components/Business/JsonQueryTable/configTree/parser/index.js +124 -124
  106. package/src/components/Business/JsonQueryTable/configTree/render/iconRender.js +29 -29
  107. package/src/components/Business/JsonQueryTable/configTree/render/nameRender.js +22 -22
  108. package/src/components/Business/JsonQueryTable/configTree/treeNode.js +116 -116
  109. package/src/components/Business/JsonQueryTable/drawer/index.tsx +12 -12
  110. package/src/components/Business/JsonQueryTable/function.ts +62 -62
  111. package/src/components/Business/JsonQueryTable/index.less +16 -16
  112. package/src/components/Business/JsonQueryTable/index.md +328 -328
  113. package/src/components/Business/JsonQueryTable/index.tsx +535 -535
  114. package/src/components/Business/JsonQueryTable/jsonEditor/index.js +346 -346
  115. package/src/components/Business/JsonQueryTable/jsonEditor/index.less +22 -22
  116. package/src/components/Business/JsonQueryTable/jsonEditor/lint/basicType.js +147 -147
  117. package/src/components/Business/JsonQueryTable/jsonEditor/lint/index.js +389 -389
  118. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/actions.js +118 -118
  119. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/dependency.js +22 -22
  120. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/index.js +21 -21
  121. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/request.js +65 -65
  122. package/src/components/Business/JsonQueryTable/static.ts +390 -390
  123. package/src/components/Business/SearchSelect/BusinessUtils.ts +1762 -1756
  124. package/src/components/Business/SearchSelect/common.ts +75 -64
  125. package/src/components/Business/SearchSelect/index.md +1329 -1326
  126. package/src/components/Business/SearchSelect/index.tsx +51 -51
  127. package/src/components/Business/SearchSelect/utils.ts +100 -100
  128. package/src/components/Business/StateFlow/index.less +130 -130
  129. package/src/components/Business/StateFlow/index.md +60 -60
  130. package/src/components/Business/StateFlow/index.tsx +29 -29
  131. package/src/components/Business/TreeSearchSelect/index.md +154 -154
  132. package/src/components/Business/TreeSearchSelect/index.tsx +33 -33
  133. package/src/components/Business/TreeSearchSelect/utils.ts +75 -75
  134. package/src/components/Business/columnSettingTable/columnSetting.tsx +764 -764
  135. package/src/components/Business/columnSettingTable/index.less +247 -247
  136. package/src/components/Business/columnSettingTable/index.md +357 -357
  137. package/src/components/Business/columnSettingTable/index.tsx +232 -232
  138. package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +240 -240
  139. package/src/components/Business/columnSettingTable/utils.tsx +68 -68
  140. package/src/components/Business/moreTreeTable/FixedScrollBar.tsx +86 -86
  141. package/src/components/Business/moreTreeTable/hooks/useSticky.ts +21 -21
  142. package/src/components/Business/moreTreeTable/index.less +99 -99
  143. package/src/components/Business/moreTreeTable/index.md +448 -448
  144. package/src/components/Business/moreTreeTable/index.tsx +387 -387
  145. package/src/components/Business/moreTreeTable/utils.ts +126 -126
  146. package/src/components/Functional/AddSelect/helps.ts +14 -14
  147. package/src/components/Functional/AddSelect/index.less +367 -367
  148. package/src/components/Functional/AddSelect/index.md +155 -155
  149. package/src/components/Functional/AddSelect/index.tsx +1279 -1279
  150. package/src/components/Functional/BillEntry/index.less +371 -371
  151. package/src/components/Functional/BillEntry/index.md +39 -39
  152. package/src/components/Functional/BillEntry/index.tsx +772 -772
  153. package/src/components/Functional/BsAntdSula/BsCascader/index.md +62 -62
  154. package/src/components/Functional/BsAntdSula/BsCascader/index.tsx +178 -178
  155. package/src/components/Functional/BsAntdSula/index.ts +2 -2
  156. package/src/components/Functional/DataImport/index.less +63 -63
  157. package/src/components/Functional/DataImport/index.md +44 -44
  158. package/src/components/Functional/DataImport/index.tsx +695 -695
  159. package/src/components/Functional/DataValidation/index.less +63 -63
  160. package/src/components/Functional/DataValidation/index.md +39 -39
  161. package/src/components/Functional/DataValidation/index.tsx +687 -687
  162. package/src/components/Functional/EllipsisTooltip/index.d.ts +5 -5
  163. package/src/components/Functional/EllipsisTooltip/index.js +36 -36
  164. package/src/components/Functional/EllipsisTooltip/index.md +30 -30
  165. package/src/components/Functional/ExportFunctions/ExportIcon/index.md +37 -37
  166. package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +59 -59
  167. package/src/components/Functional/QueryMutipleInput/index.less +37 -37
  168. package/src/components/Functional/QueryMutipleInput/index.md +33 -33
  169. package/src/components/Functional/QueryMutipleInput/index.tsx +128 -128
  170. package/src/components/Functional/SearchSelect/index.less +115 -115
  171. package/src/components/Functional/SearchSelect/index.md +141 -141
  172. package/src/components/Functional/SearchSelect/index.tsx +870 -870
  173. package/src/components/Functional/SearchSelect/utils.ts +3 -3
  174. package/src/components/Functional/TreeSearchSelect/index.md +47 -47
  175. package/src/components/Functional/TreeSearchSelect/index.tsx +163 -163
  176. package/src/components/Solution/RuleComponent/Formula.tsx +335 -335
  177. package/src/components/Solution/RuleComponent/index.d.ts +29 -29
  178. package/src/components/Solution/RuleComponent/index.js +2028 -2028
  179. package/src/components/Solution/RuleComponent/index.less +230 -230
  180. package/src/components/Solution/RuleComponent/renderSpecificAction.js +99 -99
  181. package/src/components/Solution/RuleComponent/ruleFiled.js +2107 -2107
  182. package/src/components/Solution/RuleComponent/services.ts +13 -13
  183. package/src/components/Solution/RuleComponent/util.js +139 -139
  184. package/src/index.ts +38 -38
  185. package/src/plugin/TableColumnSetting/index.less +247 -247
  186. package/src/plugin/TableColumnSetting/index.md +50 -50
  187. package/src/plugin/TableColumnSetting/index.tsx +724 -724
  188. package/src/plugin/TableColumnSetting/utils.ts +19 -19
  189. package/src/styles/bsDefault.less +1912 -1912
  190. package/src/utils/CheckOneUser/index.md +39 -39
  191. package/src/utils/CheckOneUser/index.ts +51 -51
  192. package/src/utils/LocalstorageUtils.ts +90 -90
  193. package/src/utils/TableUtils.tsx +18 -18
  194. package/src/utils/checkUtils.ts +39 -39
  195. package/src/utils/enumConfig.ts +11 -11
  196. package/src/utils/getFormMode.js +12 -12
  197. package/src/utils/index.ts +4 -4
  198. package/src/utils/requestUtils.ts +34 -34
  199. package/src/utils/serialize.js +7 -7
  200. package/src/utils/utils.ts +212 -212
  201. package/tsconfig.json +29 -29
  202. package/typings.d.ts +4 -4
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ var axios = require('axios');
6
6
  var antd = require('antd');
7
7
  var _ = require('lodash');
8
8
  var umi = require('umi');
9
- var isEqual$1 = require('lodash/isEqual');
9
+ var isEqual = require('lodash/isEqual');
10
10
  var React = require('react');
11
11
  var moment$1 = require('moment');
12
12
  var icons = require('@ant-design/icons');
@@ -33,7 +33,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
33
33
 
34
34
  var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
35
35
  var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
36
- var isEqual__default = /*#__PURE__*/_interopDefaultLegacy(isEqual$1);
36
+ var isEqual__default = /*#__PURE__*/_interopDefaultLegacy(isEqual);
37
37
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
38
38
  var moment__default = /*#__PURE__*/_interopDefaultLegacy(moment$1);
39
39
  var ProLayout__default = /*#__PURE__*/_interopDefaultLegacy(ProLayout);
@@ -781,52 +781,41 @@ var precisionQuantity = function precisionQuantity(num, accuracy) {
781
781
  return '';
782
782
  };
783
783
 
784
- var safeIsNaN = Number.isNaN ||
785
- function ponyfill(value) {
786
- return typeof value === 'number' && value !== value;
787
- };
788
- function isEqual(first, second) {
789
- if (first === second) {
790
- return true;
791
- }
792
- if (safeIsNaN(first) && safeIsNaN(second)) {
793
- return true;
794
- }
795
- return false;
796
- }
797
- function areInputsEqual(newInputs, lastInputs) {
798
- if (newInputs.length !== lastInputs.length) {
799
- return false;
784
+ var simpleIsEqual = function simpleIsEqual(a, b) {
785
+ return a === b;
786
+ };
787
+
788
+ function index$1 (resultFn, isEqual) {
789
+ if (isEqual === void 0) {
790
+ isEqual = simpleIsEqual;
791
+ }
792
+
793
+ var lastThis;
794
+ var lastArgs = [];
795
+ var lastResult;
796
+ var calledOnce = false;
797
+
798
+ var isNewArgEqualToLast = function isNewArgEqualToLast(newArg, index) {
799
+ return isEqual(newArg, lastArgs[index], index);
800
+ };
801
+
802
+ var result = function result() {
803
+ for (var _len = arguments.length, newArgs = new Array(_len), _key = 0; _key < _len; _key++) {
804
+ newArgs[_key] = arguments[_key];
800
805
  }
801
- for (var i = 0; i < newInputs.length; i++) {
802
- if (!isEqual(newInputs[i], lastInputs[i])) {
803
- return false;
804
- }
806
+
807
+ if (calledOnce && lastThis === this && newArgs.length === lastArgs.length && newArgs.every(isNewArgEqualToLast)) {
808
+ return lastResult;
805
809
  }
806
- return true;
807
- }
808
810
 
809
- function memoizeOne(resultFn, isEqual) {
810
- if (isEqual === void 0) { isEqual = areInputsEqual; }
811
- var lastThis;
812
- var lastArgs = [];
813
- var lastResult;
814
- var calledOnce = false;
815
- function memoized() {
816
- var newArgs = [];
817
- for (var _i = 0; _i < arguments.length; _i++) {
818
- newArgs[_i] = arguments[_i];
819
- }
820
- if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {
821
- return lastResult;
822
- }
823
- lastResult = resultFn.apply(this, newArgs);
824
- calledOnce = true;
825
- lastThis = this;
826
- lastArgs = newArgs;
827
- return lastResult;
828
- }
829
- return memoized;
811
+ lastResult = resultFn.apply(this, newArgs);
812
+ calledOnce = true;
813
+ lastThis = this;
814
+ lastArgs = newArgs;
815
+ return lastResult;
816
+ };
817
+
818
+ return result;
830
819
  }
831
820
 
832
821
  function styleInject(css, ref) {
@@ -1040,58 +1029,59 @@ var getItemDefaultWidth = function getItemDefaultWidth(item) {
1040
1029
  * @returns 返回处理后的查询参数
1041
1030
  */
1042
1031
  function queryParams(params, flag) {
1043
- for (var key in params) {
1032
+ var _loop = function _loop() {
1044
1033
  if (Object.prototype.hasOwnProperty.call(params, key)) {
1045
- (function () {
1046
- var element = params[key];
1047
- if (element && key.indexOf('*number*') >= 0) {
1048
- var dataParams = key.split('*number*');
1049
- dataParams.forEach(function (value, index) {
1050
- params[value] = element[index];
1051
- });
1052
- delete params[key];
1053
- } else if (element && key.indexOf('*address*') >= 0) {
1054
- var _dataParams = key.split('*address*');
1055
- _dataParams.forEach(function (value, index) {
1056
- params[value] = element.PCDCode[index];
1057
- });
1058
- delete params[key];
1059
- } else if (element && key.indexOf('*costType*') >= 0) {
1060
- var _dataParams2 = key.split('*costType*');
1061
- // eslint-disable-next-line prefer-destructuring
1062
- params[_dataParams2[0]] = element[1];
1063
- delete params[key];
1064
- } else if (element && key.indexOf('*fullDate*') >= 0) {
1065
- var _dataParams3 = key.split('*fullDate*');
1066
- _dataParams3.forEach(function (value, index) {
1067
- if (index === 0) {
1068
- params[value] = moment__default['default'](element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
1069
- } else {
1070
- params[value] = moment__default['default'](element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
1071
- }
1072
- });
1073
- delete params[key];
1074
- } else if (element && key.indexOf('*') >= 0) {
1075
- var _dataParams4 = key.split('*');
1076
- _dataParams4.forEach(function (value, index) {
1077
- params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
1078
- });
1079
- delete params[key];
1080
- } else if (element && key.indexOf('_likeIn_') >= 0) {
1081
- var _dataParams5 = key.split('_likeIn_');
1082
- if (element.indexOf(',') >= 0) {
1083
- params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
1084
- params["qp-".concat(_dataParams5[0], "-like")] = null;
1034
+ var element = params[key];
1035
+ if (element && key.indexOf('*number*') >= 0) {
1036
+ var dataParams = key.split('*number*');
1037
+ dataParams.forEach(function (value, index) {
1038
+ params[value] = element[index];
1039
+ });
1040
+ delete params[key];
1041
+ } else if (element && key.indexOf('*address*') >= 0) {
1042
+ var _dataParams = key.split('*address*');
1043
+ _dataParams.forEach(function (value, index) {
1044
+ params[value] = element.PCDCode[index];
1045
+ });
1046
+ delete params[key];
1047
+ } else if (element && key.indexOf('*costType*') >= 0) {
1048
+ var _dataParams2 = key.split('*costType*');
1049
+ // eslint-disable-next-line prefer-destructuring
1050
+ params[_dataParams2[0]] = element[1];
1051
+ delete params[key];
1052
+ } else if (element && key.indexOf('*fullDate*') >= 0) {
1053
+ var _dataParams3 = key.split('*fullDate*');
1054
+ _dataParams3.forEach(function (value, index) {
1055
+ if (index === 0) {
1056
+ params[value] = moment__default['default'](element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
1085
1057
  } else {
1086
- params["qp-".concat(_dataParams5[0], "-like")] = element;
1087
- params["qp-".concat(_dataParams5[0], "-in")] = null;
1058
+ params[value] = moment__default['default'](element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
1088
1059
  }
1089
- delete params[key];
1090
- } else if (Array.isArray(element)) {
1091
- params[key] = element.join(',');
1060
+ });
1061
+ delete params[key];
1062
+ } else if (element && key.indexOf('*') >= 0) {
1063
+ var _dataParams4 = key.split('*');
1064
+ _dataParams4.forEach(function (value, index) {
1065
+ params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
1066
+ });
1067
+ delete params[key];
1068
+ } else if (element && key.indexOf('_likeIn_') >= 0) {
1069
+ var _dataParams5 = key.split('_likeIn_');
1070
+ if (element.indexOf(',') >= 0) {
1071
+ params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
1072
+ params["qp-".concat(_dataParams5[0], "-like")] = null;
1073
+ } else {
1074
+ params["qp-".concat(_dataParams5[0], "-like")] = element;
1075
+ params["qp-".concat(_dataParams5[0], "-in")] = null;
1092
1076
  }
1093
- })();
1077
+ delete params[key];
1078
+ } else if (Array.isArray(element)) {
1079
+ params[key] = element.join(',');
1080
+ }
1094
1081
  }
1082
+ };
1083
+ for (var key in params) {
1084
+ _loop();
1095
1085
  }
1096
1086
  return flag ? params : qs.stringify(params);
1097
1087
  }
@@ -1137,7 +1127,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
1137
1127
  return item;
1138
1128
  });
1139
1129
  };
1140
- var memoizeOneFormatter = memoizeOne(formatter, isEqual__default['default']);
1130
+ var memoizeOneFormatter = index$1(formatter, isEqual__default['default']);
1141
1131
  var go2BackAndClose = function go2BackAndClose() {
1142
1132
  localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
1143
1133
  umi.history.goBack();
@@ -2819,84 +2809,85 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
2819
2809
  });
2820
2810
  }
2821
2811
  // 数组对象处理,对带有特殊标记的name进行处理
2822
- for (var key in params) {
2812
+ var _loop = function _loop() {
2823
2813
  if (Object.prototype.hasOwnProperty.call(params, key)) {
2824
- (function () {
2825
- var element = params[key];
2826
- if (element && key.indexOf('*number*') >= 0) {
2827
- var dataParams = key.split('*number*');
2828
- dataParams.forEach(function (value, index) {
2829
- params[value] = element[index];
2830
- });
2831
- delete params[key];
2832
- } else if (element && key.indexOf('*address*') >= 0) {
2833
- var _dataParams = key.split('*address*');
2834
- _dataParams.forEach(function (value, index) {
2835
- params[value] = element.PCDCode[index];
2836
- });
2837
- delete params[key];
2838
- } else if (element && key.indexOf('*costType*') >= 0) {
2839
- var _dataParams2 = key.split('*costType*');
2840
- // eslint-disable-next-line prefer-destructuring
2841
- params[_dataParams2[0]] = element[1];
2842
- delete params[key];
2843
- } else if (element && key.indexOf('*fullDate*') >= 0) {
2844
- var _dataParams3 = key.split('*fullDate*');
2845
- _dataParams3.forEach(function (value, index) {
2846
- if (index === 0) {
2847
- params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
2848
- } else {
2849
- params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
2850
- }
2851
- });
2852
- delete params[key];
2853
- } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
2854
- var _dataParams4 = key.split('*checkBox*');
2855
- if (element) {
2856
- params[_dataParams4[0]] = 0;
2814
+ var element = params[key];
2815
+ if (element && key.indexOf('*number*') >= 0) {
2816
+ var dataParams = key.split('*number*');
2817
+ dataParams.forEach(function (value, index) {
2818
+ params[value] = element[index];
2819
+ });
2820
+ delete params[key];
2821
+ } else if (element && key.indexOf('*address*') >= 0) {
2822
+ var _dataParams = key.split('*address*');
2823
+ _dataParams.forEach(function (value, index) {
2824
+ params[value] = element.PCDCode[index];
2825
+ });
2826
+ delete params[key];
2827
+ } else if (element && key.indexOf('*costType*') >= 0) {
2828
+ var _dataParams2 = key.split('*costType*');
2829
+ // eslint-disable-next-line prefer-destructuring
2830
+ params[_dataParams2[0]] = element[1];
2831
+ delete params[key];
2832
+ } else if (element && key.indexOf('*fullDate*') >= 0) {
2833
+ var _dataParams3 = key.split('*fullDate*');
2834
+ _dataParams3.forEach(function (value, index) {
2835
+ if (index === 0) {
2836
+ params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
2837
+ } else {
2838
+ params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
2857
2839
  }
2858
- delete params[key];
2859
- } else if (element && key.indexOf('*cascader*') >= 0) {
2860
- var _dataParams5 = key.split('*cascader*');
2861
- params[_dataParams5[0]] = element[element.length - 1];
2862
- delete params[key];
2863
- } else if (element && key.indexOf('*date*') >= 0) {
2864
- var _dataParams6 = key.split('*date*');
2865
- _dataParams6.forEach(function (value, index) {
2866
- if (index === 0) {
2867
- params[value] = moment(element[index]).format('YYYY-MM-DD');
2868
- } else {
2869
- params[value] = moment(element[index]).format('YYYY-MM-DD');
2870
- }
2871
- });
2872
- delete params[key];
2873
- } else if (element && key.indexOf('*') >= 0) {
2874
- var _dataParams7 = key.split('*');
2875
- _dataParams7.forEach(function (value, index) {
2876
- params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
2877
- });
2878
- delete params[key];
2879
- } else if (element && key.indexOf('_selectNumberRange') >= 0) {
2880
- // key = xxxxx_selectNumberRange qp-xxxxx-gt
2881
- var _dataParams8 = key.split('_selectNumberRange')[0];
2882
- if (params[key][0] === 'range') {
2883
- if (params[key][1][0]) {
2884
- params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
2885
- }
2886
- if (params[key][1][1]) {
2887
- params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
2888
- }
2840
+ });
2841
+ delete params[key];
2842
+ } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
2843
+ var _dataParams4 = key.split('*checkBox*');
2844
+ if (element) {
2845
+ params[_dataParams4[0]] = 0;
2846
+ }
2847
+ delete params[key];
2848
+ } else if (element && key.indexOf('*cascader*') >= 0) {
2849
+ var _dataParams5 = key.split('*cascader*');
2850
+ params[_dataParams5[0]] = element[element.length - 1];
2851
+ delete params[key];
2852
+ } else if (element && key.indexOf('*date*') >= 0) {
2853
+ var _dataParams6 = key.split('*date*');
2854
+ _dataParams6.forEach(function (value, index) {
2855
+ if (index === 0) {
2856
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
2889
2857
  } else {
2890
- params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
2858
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
2859
+ }
2860
+ });
2861
+ delete params[key];
2862
+ } else if (element && key.indexOf('*') >= 0) {
2863
+ var _dataParams7 = key.split('*');
2864
+ _dataParams7.forEach(function (value, index) {
2865
+ params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
2866
+ });
2867
+ delete params[key];
2868
+ } else if (element && key.indexOf('_selectNumberRange') >= 0) {
2869
+ // key = xxxxx_selectNumberRange qp-xxxxx-gt
2870
+ var _dataParams8 = key.split('_selectNumberRange')[0];
2871
+ if (params[key][0] === 'range') {
2872
+ if (params[key][1][0]) {
2873
+ params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
2874
+ }
2875
+ if (params[key][1][1]) {
2876
+ params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
2891
2877
  }
2892
- delete params[key];
2893
- } else if (Array.isArray(element)) {
2894
- params[key] = element.join(',');
2895
- } else if (element == null || element === undefined || String(element).trim() === '') {
2896
- delete params[key];
2878
+ } else {
2879
+ params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
2897
2880
  }
2898
- })();
2881
+ delete params[key];
2882
+ } else if (Array.isArray(element)) {
2883
+ params[key] = element.join(',');
2884
+ } else if (element == null || element === undefined || String(element).trim() === '') {
2885
+ delete params[key];
2886
+ }
2899
2887
  }
2888
+ };
2889
+ for (var key in params) {
2890
+ _loop();
2900
2891
  }
2901
2892
  var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
2902
2893
  pageSize: pageSize,
@@ -4562,76 +4553,74 @@ var AddSelect = function AddSelect(props) {
4562
4553
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
4563
4554
  var result;
4564
4555
  return _regeneratorRuntime().wrap(function _callee$(_context) {
4565
- while (1) {
4566
- switch (_context.prev = _context.next) {
4567
- case 0:
4568
- if (!(bType == 'skc' && tList.some(function (i) {
4569
- return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
4570
- }))) {
4571
- _context.next = 3;
4572
- break;
4573
- }
4574
- antd.message.warning('相同skc配码不可设置相同哦');
4575
- return _context.abrupt("return", false);
4576
- case 3:
4577
- if (!(bType == 'spu')) {
4578
- _context.next = 26;
4579
- break;
4580
- }
4581
- if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
4582
- return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
4583
- }))) {
4584
- _context.next = 7;
4585
- break;
4586
- }
4587
- antd.message.warning('相同商品相同配码颜色不可设置相同哦');
4588
- return _context.abrupt("return", false);
4589
- case 7:
4590
- if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
4591
- _context.next = 10;
4592
- break;
4593
- }
4594
- antd.message.warning('请先选择颜色!');
4595
- return _context.abrupt("return", false);
4596
- case 10:
4597
- if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
4598
- return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
4599
- }))) {
4600
- _context.next = 13;
4601
- break;
4602
- }
4603
- antd.message.warning('相同商品相同颜色配码不可设置相同哦');
4604
- return _context.abrupt("return", false);
4605
- case 13:
4606
- if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
4607
- _context.next = 26;
4608
- break;
4609
- }
4610
- result = true;
4611
- _context.prev = 15;
4612
- _context.next = 18;
4613
- return checkSpuMatchCode({
4614
- skcCode: recordItem[recordKey],
4615
- matchingCode: changeValue,
4616
- ext1: recordItem.colorName
4617
- });
4618
- case 18:
4619
- result = _context.sent;
4620
- result = true;
4621
- _context.next = 25;
4556
+ while (1) switch (_context.prev = _context.next) {
4557
+ case 0:
4558
+ if (!(bType == 'skc' && tList.some(function (i) {
4559
+ return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
4560
+ }))) {
4561
+ _context.next = 3;
4622
4562
  break;
4623
- case 22:
4624
- _context.prev = 22;
4625
- _context.t0 = _context["catch"](15);
4626
- result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
4627
- case 25:
4628
- return _context.abrupt("return", result);
4629
- case 26:
4630
- return _context.abrupt("return", true);
4631
- case 27:
4632
- case "end":
4633
- return _context.stop();
4634
- }
4563
+ }
4564
+ antd.message.warning('相同skc配码不可设置相同哦');
4565
+ return _context.abrupt("return", false);
4566
+ case 3:
4567
+ if (!(bType == 'spu')) {
4568
+ _context.next = 26;
4569
+ break;
4570
+ }
4571
+ if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
4572
+ return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
4573
+ }))) {
4574
+ _context.next = 7;
4575
+ break;
4576
+ }
4577
+ antd.message.warning('相同商品相同配码颜色不可设置相同哦');
4578
+ return _context.abrupt("return", false);
4579
+ case 7:
4580
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
4581
+ _context.next = 10;
4582
+ break;
4583
+ }
4584
+ antd.message.warning('请先选择颜色!');
4585
+ return _context.abrupt("return", false);
4586
+ case 10:
4587
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
4588
+ return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
4589
+ }))) {
4590
+ _context.next = 13;
4591
+ break;
4592
+ }
4593
+ antd.message.warning('相同商品相同颜色配码不可设置相同哦');
4594
+ return _context.abrupt("return", false);
4595
+ case 13:
4596
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
4597
+ _context.next = 26;
4598
+ break;
4599
+ }
4600
+ result = true;
4601
+ _context.prev = 15;
4602
+ _context.next = 18;
4603
+ return checkSpuMatchCode({
4604
+ skcCode: recordItem[recordKey],
4605
+ matchingCode: changeValue,
4606
+ ext1: recordItem.colorName
4607
+ });
4608
+ case 18:
4609
+ result = _context.sent;
4610
+ result = true;
4611
+ _context.next = 25;
4612
+ break;
4613
+ case 22:
4614
+ _context.prev = 22;
4615
+ _context.t0 = _context["catch"](15);
4616
+ result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
4617
+ case 25:
4618
+ return _context.abrupt("return", result);
4619
+ case 26:
4620
+ return _context.abrupt("return", true);
4621
+ case 27:
4622
+ case "end":
4623
+ return _context.stop();
4635
4624
  }
4636
4625
  }, _callee, null, [[15, 22]]);
4637
4626
  }));
@@ -4823,29 +4812,27 @@ var AddSelect = function AddSelect(props) {
4823
4812
  var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
4824
4813
  var isConformToTheRules, newPopValue;
4825
4814
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
4826
- while (1) {
4827
- switch (_context2.prev = _context2.next) {
4828
- case 0:
4829
- _context2.next = 2;
4830
- return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
4831
- case 2:
4832
- isConformToTheRules = _context2.sent;
4833
- if (isConformToTheRules) {
4834
- record[item.dataIndex] = value;
4835
- } else {
4836
- record[item.dataIndex] = null;
4815
+ while (1) switch (_context2.prev = _context2.next) {
4816
+ case 0:
4817
+ _context2.next = 2;
4818
+ return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
4819
+ case 2:
4820
+ isConformToTheRules = _context2.sent;
4821
+ if (isConformToTheRules) {
4822
+ record[item.dataIndex] = value;
4823
+ } else {
4824
+ record[item.dataIndex] = null;
4825
+ }
4826
+ newPopValue = popvalue.map(function (i, innerIndex) {
4827
+ if (innerIndex == index) {
4828
+ i[item.dataIndex] = record[item.dataIndex];
4837
4829
  }
4838
- newPopValue = popvalue.map(function (i, innerIndex) {
4839
- if (innerIndex == index) {
4840
- i[item.dataIndex] = record[item.dataIndex];
4841
- }
4842
- return i;
4843
- });
4844
- setPopValue(newPopValue);
4845
- case 6:
4846
- case "end":
4847
- return _context2.stop();
4848
- }
4830
+ return i;
4831
+ });
4832
+ setPopValue(newPopValue);
4833
+ case 6:
4834
+ case "end":
4835
+ return _context2.stop();
4849
4836
  }
4850
4837
  }, _callee2);
4851
4838
  }));
@@ -4905,84 +4892,85 @@ var AddSelect = function AddSelect(props) {
4905
4892
  });
4906
4893
  }
4907
4894
  // 数组对象处理,对带有特殊标记的name进行处理
4908
- for (var key in params) {
4895
+ var _loop = function _loop() {
4909
4896
  if (Object.prototype.hasOwnProperty.call(params, key)) {
4910
- (function () {
4911
- var element = params[key];
4912
- if (element && key.indexOf('*number*') >= 0) {
4913
- var dataParams = key.split('*number*');
4914
- dataParams.forEach(function (value, index) {
4915
- params[value] = element[index];
4916
- });
4917
- delete params[key];
4918
- } else if (element && key.indexOf('*address*') >= 0) {
4919
- var _dataParams = key.split('*address*');
4920
- _dataParams.forEach(function (value, index) {
4921
- params[value] = element.PCDCode[index];
4922
- });
4923
- delete params[key];
4924
- } else if (element && key.indexOf('*costType*') >= 0) {
4925
- var _dataParams2 = key.split('*costType*');
4926
- // eslint-disable-next-line prefer-destructuring
4927
- params[_dataParams2[0]] = element[1];
4928
- delete params[key];
4929
- } else if (element && key.indexOf('*fullDate*') >= 0) {
4930
- var _dataParams3 = key.split('*fullDate*');
4931
- _dataParams3.forEach(function (value, index) {
4932
- if (index === 0) {
4933
- params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
4934
- } else {
4935
- params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
4936
- }
4937
- });
4938
- delete params[key];
4939
- } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
4940
- var _dataParams4 = key.split('*checkBox*');
4941
- if (element) {
4942
- params[_dataParams4[0]] = 0;
4897
+ var element = params[key];
4898
+ if (element && key.indexOf('*number*') >= 0) {
4899
+ var dataParams = key.split('*number*');
4900
+ dataParams.forEach(function (value, index) {
4901
+ params[value] = element[index];
4902
+ });
4903
+ delete params[key];
4904
+ } else if (element && key.indexOf('*address*') >= 0) {
4905
+ var _dataParams = key.split('*address*');
4906
+ _dataParams.forEach(function (value, index) {
4907
+ params[value] = element.PCDCode[index];
4908
+ });
4909
+ delete params[key];
4910
+ } else if (element && key.indexOf('*costType*') >= 0) {
4911
+ var _dataParams2 = key.split('*costType*');
4912
+ // eslint-disable-next-line prefer-destructuring
4913
+ params[_dataParams2[0]] = element[1];
4914
+ delete params[key];
4915
+ } else if (element && key.indexOf('*fullDate*') >= 0) {
4916
+ var _dataParams3 = key.split('*fullDate*');
4917
+ _dataParams3.forEach(function (value, index) {
4918
+ if (index === 0) {
4919
+ params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
4920
+ } else {
4921
+ params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
4943
4922
  }
4944
- delete params[key];
4945
- } else if (element && key.indexOf('*cascader*') >= 0) {
4946
- var _dataParams5 = key.split('*cascader*');
4947
- params[_dataParams5[0]] = element[element.length - 1];
4948
- delete params[key];
4949
- } else if (element && key.indexOf('*date*') >= 0) {
4950
- var _dataParams6 = key.split('*date*');
4951
- _dataParams6.forEach(function (value, index) {
4952
- if (index === 0) {
4953
- params[value] = moment(element[index]).format('YYYY-MM-DD');
4954
- } else {
4955
- params[value] = moment(element[index]).format('YYYY-MM-DD');
4956
- }
4957
- });
4958
- delete params[key];
4959
- } else if (element && key.indexOf('*') >= 0) {
4960
- var _dataParams7 = key.split('*');
4961
- _dataParams7.forEach(function (value, index) {
4962
- params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
4963
- });
4964
- delete params[key];
4965
- } else if (element && key.indexOf('_selectNumberRange') >= 0) {
4966
- // key = xxxxx_selectNumberRange qp-xxxxx-gt
4967
- var _dataParams8 = key.split('_selectNumberRange')[0];
4968
- if (params[key][0] === 'range') {
4969
- if (params[key][1][0]) {
4970
- params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
4971
- }
4972
- if (params[key][1][1]) {
4973
- params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
4974
- }
4923
+ });
4924
+ delete params[key];
4925
+ } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
4926
+ var _dataParams4 = key.split('*checkBox*');
4927
+ if (element) {
4928
+ params[_dataParams4[0]] = 0;
4929
+ }
4930
+ delete params[key];
4931
+ } else if (element && key.indexOf('*cascader*') >= 0) {
4932
+ var _dataParams5 = key.split('*cascader*');
4933
+ params[_dataParams5[0]] = element[element.length - 1];
4934
+ delete params[key];
4935
+ } else if (element && key.indexOf('*date*') >= 0) {
4936
+ var _dataParams6 = key.split('*date*');
4937
+ _dataParams6.forEach(function (value, index) {
4938
+ if (index === 0) {
4939
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
4975
4940
  } else {
4976
- params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
4941
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
4942
+ }
4943
+ });
4944
+ delete params[key];
4945
+ } else if (element && key.indexOf('*') >= 0) {
4946
+ var _dataParams7 = key.split('*');
4947
+ _dataParams7.forEach(function (value, index) {
4948
+ params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
4949
+ });
4950
+ delete params[key];
4951
+ } else if (element && key.indexOf('_selectNumberRange') >= 0) {
4952
+ // key = xxxxx_selectNumberRange qp-xxxxx-gt
4953
+ var _dataParams8 = key.split('_selectNumberRange')[0];
4954
+ if (params[key][0] === 'range') {
4955
+ if (params[key][1][0]) {
4956
+ params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
4977
4957
  }
4978
- delete params[key];
4979
- } else if (Array.isArray(element)) {
4980
- params[key] = element.join(',');
4981
- } else if (element == null || element === undefined || String(element).trim() === '') {
4982
- delete params[key];
4958
+ if (params[key][1][1]) {
4959
+ params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
4960
+ }
4961
+ } else {
4962
+ params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
4983
4963
  }
4984
- })();
4964
+ delete params[key];
4965
+ } else if (Array.isArray(element)) {
4966
+ params[key] = element.join(',');
4967
+ } else if (element == null || element === undefined || String(element).trim() === '') {
4968
+ delete params[key];
4969
+ }
4985
4970
  }
4971
+ };
4972
+ for (var key in params) {
4973
+ _loop();
4986
4974
  }
4987
4975
  var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
4988
4976
  pageSize: pageSize,
@@ -6437,72 +6425,70 @@ var BillEntry = function BillEntry(_ref3) {
6437
6425
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
6438
6426
  var canEntryObject, _canEntryObject$error, messageInfo;
6439
6427
  return _regeneratorRuntime().wrap(function _callee$(_context) {
6440
- while (1) {
6441
- switch (_context.prev = _context.next) {
6442
- case 0:
6443
- if (data === null || data === void 0 ? void 0 : data.length) {
6444
- _context.next = 3;
6445
- break;
6446
- }
6447
- antd.message.warning('至少录入一条数据');
6448
- return _context.abrupt("return");
6449
- case 3:
6450
- if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6451
- return d.skuCode && d.name;
6452
- })) {
6453
- _context.next = 6;
6454
- break;
6455
- }
6456
- antd.message.warning('请选择商品!');
6457
- return _context.abrupt("return");
6458
- case 6:
6459
- if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6460
- return d.count;
6461
- })) {
6462
- _context.next = 9;
6463
- break;
6464
- }
6465
- antd.message.warning('请填写商品数量!');
6466
- return _context.abrupt("return");
6467
- case 9:
6468
- _context.next = 11;
6469
- return isSkuCanEntry(data);
6470
- case 11:
6471
- canEntryObject = _context.sent;
6472
- if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
6473
- _context.next = 16;
6474
- break;
6475
- }
6476
- 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) {
6477
- return /*#__PURE__*/React__default['default'].createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
6478
- }));
6479
- messageInfo && antd.message.warning({
6480
- content: messageInfo,
6481
- duration: 6
6482
- });
6483
- return _context.abrupt("return");
6484
- case 16:
6485
- setLoading(true);
6486
- onSaveCallback(data).then(function (res) {
6487
- {
6488
- var _Object$keys;
6489
- var initSuccessMessage = '保存成功';
6490
- var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
6491
- if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
6492
- (rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? antd.message.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
6493
- } else {
6494
- antd.message.success(initSuccessMessage);
6495
- }
6428
+ while (1) switch (_context.prev = _context.next) {
6429
+ case 0:
6430
+ if (data === null || data === void 0 ? void 0 : data.length) {
6431
+ _context.next = 3;
6432
+ break;
6433
+ }
6434
+ antd.message.warning('至少录入一条数据');
6435
+ return _context.abrupt("return");
6436
+ case 3:
6437
+ if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6438
+ return d.skuCode && d.name;
6439
+ })) {
6440
+ _context.next = 6;
6441
+ break;
6442
+ }
6443
+ antd.message.warning('请选择商品!');
6444
+ return _context.abrupt("return");
6445
+ case 6:
6446
+ if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6447
+ return d.count;
6448
+ })) {
6449
+ _context.next = 9;
6450
+ break;
6451
+ }
6452
+ antd.message.warning('请填写商品数量!');
6453
+ return _context.abrupt("return");
6454
+ case 9:
6455
+ _context.next = 11;
6456
+ return isSkuCanEntry(data);
6457
+ case 11:
6458
+ canEntryObject = _context.sent;
6459
+ if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
6460
+ _context.next = 16;
6461
+ break;
6462
+ }
6463
+ 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) {
6464
+ return /*#__PURE__*/React__default['default'].createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
6465
+ }));
6466
+ messageInfo && antd.message.warning({
6467
+ content: messageInfo,
6468
+ duration: 6
6469
+ });
6470
+ return _context.abrupt("return");
6471
+ case 16:
6472
+ setLoading(true);
6473
+ onSaveCallback(data).then(function (res) {
6474
+ {
6475
+ var _Object$keys;
6476
+ var initSuccessMessage = '保存成功';
6477
+ var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
6478
+ if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
6479
+ (rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? antd.message.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
6480
+ } else {
6481
+ antd.message.success(initSuccessMessage);
6496
6482
  }
6497
- setLoading(false);
6498
- }).catch(function (Error) {
6499
- antd.message.error(Error);
6500
- setLoading(false);
6501
- });
6502
- case 18:
6503
- case "end":
6504
- return _context.stop();
6505
- }
6483
+ }
6484
+ setLoading(false);
6485
+ }).catch(function (Error) {
6486
+ antd.message.error(Error);
6487
+ setLoading(false);
6488
+ });
6489
+ case 18:
6490
+ case "end":
6491
+ return _context.stop();
6506
6492
  }
6507
6493
  }, _callee);
6508
6494
  }));
@@ -6649,6 +6635,13 @@ var sharingType = [{
6649
6635
  text: "私有",
6650
6636
  value: '20'
6651
6637
  }];
6638
+ var employeeType = [{
6639
+ text: "外部员工",
6640
+ value: '10'
6641
+ }, {
6642
+ text: "内部员工",
6643
+ value: '20'
6644
+ }];
6652
6645
 
6653
6646
  var getDicData = function getDicData(dicCode) {
6654
6647
  var dicData = {};
@@ -8402,12 +8395,14 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
8402
8395
  mappingTextField: 'name',
8403
8396
  mappingTextShowKeyField: 'username',
8404
8397
  mappingValueField: 'id',
8405
- otherParams: {
8398
+ otherParams: _objectSpread2(_objectSpread2({
8406
8399
  'qp-enable-eq': 10,
8407
- 'qp-employmentType-eq': 20,
8408
- 'qp-orgViewIds-like': 'administrative-organization-view',
8400
+ 'qp-orgViewIds-like': 'administrative-organization-view'
8401
+ }, (modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needTypeSearch) ? {} : {
8402
+ 'qp-employmentType-eq': 20
8403
+ }), {}, {
8409
8404
  sorter: 'desc-id'
8410
- },
8405
+ }),
8411
8406
  sourceName: 'employeeNumber'
8412
8407
  }, requestConfigProp);
8413
8408
  tableSearchForm = [{
@@ -8446,13 +8441,18 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
8446
8441
  }
8447
8442
  }
8448
8443
  }
8449
- }, {
8444
+ }].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needTypeSearch) ? [{
8445
+ name: 'qp-employmentType-eq',
8446
+ type: 'select',
8447
+ label: '员工类型',
8448
+ initialSource: employeeType
8449
+ }] : []), [{
8450
8450
  name: 'qp-email-like',
8451
8451
  label: '邮箱'
8452
8452
  }, {
8453
8453
  name: 'qp-officeTelephone-like',
8454
8454
  label: '手机号'
8455
- }];
8455
+ }]);
8456
8456
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
8457
8457
  'orgViewCode': 'administrative-organization-view'
8458
8458
  })]).then(function (x) {
@@ -8482,13 +8482,22 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
8482
8482
  render: function render(text) {
8483
8483
  return handleTextOverflow(text);
8484
8484
  }
8485
- }, {
8485
+ }].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needTypeSearch) ? [{
8486
+ title: '员工类型',
8487
+ dataIndex: 'employmentType',
8488
+ render: function render(text) {
8489
+ var _employeeType$find;
8490
+ return (_employeeType$find = employeeType.find(function (i) {
8491
+ return i.value === text;
8492
+ })) === null || _employeeType$find === void 0 ? void 0 : _employeeType$find.text;
8493
+ }
8494
+ }] : []), [{
8486
8495
  title: '邮箱',
8487
8496
  dataIndex: 'email'
8488
8497
  }, {
8489
8498
  title: '手机号',
8490
8499
  dataIndex: 'officeTelephone'
8491
- }]
8500
+ }])
8492
8501
  }, modalTableBusProps);
8493
8502
  }
8494
8503
  // 配送方式选择器
@@ -9694,7 +9703,7 @@ var CommodityEntry = function CommodityEntry(props) {
9694
9703
  * @LastEditTime: 2022-01-14 17:17:26
9695
9704
  * @LastEditors: rodchen
9696
9705
  */
9697
- var index$1 = (function (storageKeyString) {
9706
+ var index$2 = (function (storageKeyString) {
9698
9707
  var seconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
9699
9708
  var tipsCallFunction = arguments.length > 2 ? arguments[2] : undefined;
9700
9709
  if (typeof seconds !== 'number') throw new Error('seconds should be number');
@@ -9815,44 +9824,42 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
9815
9824
  var _ctx$form;
9816
9825
  var resData, coverData, data, dataList;
9817
9826
  return _regeneratorRuntime().wrap(function _callee$(_context) {
9818
- while (1) {
9819
- switch (_context.prev = _context.next) {
9820
- case 0:
9821
- resData = (res === null || res === void 0 ? void 0 : res.data) || [];
9822
- if (!(resData.status === '0' || resData.code === '000000')) {
9823
- _context.next = 13;
9824
- break;
9825
- }
9826
- data = resData.data;
9827
- if (!remoteSource.converter) {
9828
- _context.next = 9;
9829
- break;
9830
- }
9831
- _context.next = 6;
9832
- return remoteSource.converter({
9833
- data: [data]
9834
- });
9835
- case 6:
9836
- coverData = _context.sent;
9837
- _context.next = 11;
9827
+ while (1) switch (_context.prev = _context.next) {
9828
+ case 0:
9829
+ resData = (res === null || res === void 0 ? void 0 : res.data) || [];
9830
+ if (!(resData.status === '0' || resData.code === '000000')) {
9831
+ _context.next = 13;
9838
9832
  break;
9839
- case 9:
9840
- dataList = data && Array.isArray(data) ? data : data && [data] || [];
9841
- coverData = dataList.length && dataList.map(function (ites) {
9842
- return mapSearchTree(ites);
9843
- }) || [];
9844
- case 11:
9845
- _context.next = 14;
9833
+ }
9834
+ data = resData.data;
9835
+ if (!remoteSource.converter) {
9836
+ _context.next = 9;
9846
9837
  break;
9847
- case 13:
9848
- coverData = [];
9849
- case 14:
9850
- setTreeData(coverData);
9851
- ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
9852
- case 16:
9853
- case "end":
9854
- return _context.stop();
9855
- }
9838
+ }
9839
+ _context.next = 6;
9840
+ return remoteSource.converter({
9841
+ data: [data]
9842
+ });
9843
+ case 6:
9844
+ coverData = _context.sent;
9845
+ _context.next = 11;
9846
+ break;
9847
+ case 9:
9848
+ dataList = data && Array.isArray(data) ? data : data && [data] || [];
9849
+ coverData = dataList.length && dataList.map(function (ites) {
9850
+ return mapSearchTree(ites);
9851
+ }) || [];
9852
+ case 11:
9853
+ _context.next = 14;
9854
+ break;
9855
+ case 13:
9856
+ coverData = [];
9857
+ case 14:
9858
+ setTreeData(coverData);
9859
+ ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
9860
+ case 16:
9861
+ case "end":
9862
+ return _context.stop();
9856
9863
  }
9857
9864
  }, _callee);
9858
9865
  }));
@@ -10059,7 +10066,7 @@ var BusinessTreeSearchSelect$1 = /*#__PURE__*/React__default['default'].memo(Bus
10059
10066
  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";
10060
10067
  styleInject(css_248z$8);
10061
10068
 
10062
- var index$2 = (function (props) {
10069
+ var index$3 = (function (props) {
10063
10070
  var _props$formStatusMapp = props.formStatusMapping,
10064
10071
  formStatusMapping = _props$formStatusMapp === void 0 ? [] : _props$formStatusMapp;
10065
10072
  return /*#__PURE__*/React__default['default'].createElement("div", {
@@ -11483,7 +11490,7 @@ var iconMap = {
11483
11490
  src: moreIcon
11484
11491
  })
11485
11492
  };
11486
- var index$3 = (function (props) {
11493
+ var index$4 = (function (props) {
11487
11494
  var _useLocation = umi.useLocation(),
11488
11495
  pathname = _useLocation.pathname;
11489
11496
  var _useState = React.useState(pathname + 'id'),
@@ -11700,7 +11707,7 @@ var css_248z$d = ".home_page_head {\n height: 54px;\n display: flex;\n justif
11700
11707
  styleInject(css_248z$d);
11701
11708
 
11702
11709
  var _excluded$c = ["children"];
11703
- var index$4 = (function (props) {
11710
+ var index$5 = (function (props) {
11704
11711
  var _useLocation = umi.useLocation(),
11705
11712
  pathname = _useLocation.pathname;
11706
11713
  var _useState = React.useState(pathname + 'id'),
@@ -13999,21 +14006,19 @@ function _outLogin() {
13999
14006
  _outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
14000
14007
  var res;
14001
14008
  return _regeneratorRuntime().wrap(function _callee$(_context) {
14002
- while (1) {
14003
- switch (_context.prev = _context.next) {
14004
- case 0:
14005
- _context.next = 2;
14006
- return axios__default['default']({
14007
- url: '/user/web/loginOut',
14008
- method: 'GET'
14009
- });
14010
- case 2:
14011
- res = _context.sent;
14012
- return _context.abrupt("return", res);
14013
- case 4:
14014
- case "end":
14015
- return _context.stop();
14016
- }
14009
+ while (1) switch (_context.prev = _context.next) {
14010
+ case 0:
14011
+ _context.next = 2;
14012
+ return axios__default['default']({
14013
+ url: '/user/web/loginOut',
14014
+ method: 'GET'
14015
+ });
14016
+ case 2:
14017
+ res = _context.sent;
14018
+ return _context.abrupt("return", res);
14019
+ case 4:
14020
+ case "end":
14021
+ return _context.stop();
14017
14022
  }
14018
14023
  }, _callee);
14019
14024
  }));
@@ -14142,31 +14147,29 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
14142
14147
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
14143
14148
  var sessionId;
14144
14149
  return _regeneratorRuntime().wrap(function _callee$(_context) {
14145
- while (1) {
14146
- switch (_context.prev = _context.next) {
14147
- case 0:
14148
- _context.next = 2;
14149
- return getSessionId();
14150
- case 2:
14151
- sessionId = _context.sent;
14152
- _context.next = 5;
14153
- return outLogin({
14154
- sessionId: sessionId
14150
+ while (1) switch (_context.prev = _context.next) {
14151
+ case 0:
14152
+ _context.next = 2;
14153
+ return getSessionId();
14154
+ case 2:
14155
+ sessionId = _context.sent;
14156
+ _context.next = 5;
14157
+ return outLogin({
14158
+ sessionId: sessionId
14159
+ });
14160
+ case 5:
14161
+ // @ts-ignore
14162
+ if (BUILD_TYPE) {
14163
+ antd.message.success('退出登录成功');
14164
+ umi.history.replace({
14165
+ pathname: '/user/login'
14155
14166
  });
14156
- case 5:
14157
- // @ts-ignore
14158
- if (BUILD_TYPE) {
14159
- antd.message.success('退出登录成功');
14160
- umi.history.replace({
14161
- pathname: '/user/login'
14162
- });
14163
- } else {
14164
- setLoginOutPath();
14165
- }
14166
- case 6:
14167
- case "end":
14168
- return _context.stop();
14169
- }
14167
+ } else {
14168
+ setLoginOutPath();
14169
+ }
14170
+ case 6:
14171
+ case "end":
14172
+ return _context.stop();
14170
14173
  }
14171
14174
  }, _callee);
14172
14175
  }));
@@ -15994,6 +15997,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
15994
15997
  showSubMenu: isShow
15995
15998
  });
15996
15999
  }, 500);
16000
+ //设置tabs标签左右滚动
15997
16001
  _this.setTabNavTransLate = function (num) {
15998
16002
  var _document$getElementB, _document$getElementB2, _document$getElementB3, _document$getElementB4, _document$defaultView;
15999
16003
  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];
@@ -16674,14 +16678,12 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
16674
16678
  request: function () {
16675
16679
  var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
16676
16680
  return _regeneratorRuntime().wrap(function _callee$(_context) {
16677
- while (1) {
16678
- switch (_context.prev = _context.next) {
16679
- case 0:
16680
- return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
16681
- case 1:
16682
- case "end":
16683
- return _context.stop();
16684
- }
16681
+ while (1) switch (_context.prev = _context.next) {
16682
+ case 0:
16683
+ return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
16684
+ case 1:
16685
+ case "end":
16686
+ return _context.stop();
16685
16687
  }
16686
16688
  }, _callee);
16687
16689
  }));
@@ -16819,7 +16821,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
16819
16821
  }]);
16820
16822
  return WrapperComponent;
16821
16823
  }(React__default['default'].Component);
16822
- var index$5 = (function (props) {
16824
+ var index$6 = (function (props) {
16823
16825
  var _useModel = umi.useModel('@@initialState'),
16824
16826
  _useModel$initialStat = _useModel.initialState,
16825
16827
  initialState = _useModel$initialStat === void 0 ? {} : _useModel$initialStat;
@@ -17060,7 +17062,7 @@ var FixedScrollBar = function FixedScrollBar(_ref, ref) {
17060
17062
  };
17061
17063
  var FixedScrollBar$1 = /*#__PURE__*/React__default['default'].forwardRef(FixedScrollBar);
17062
17064
 
17063
- var index$6 = /*#__PURE__*/React.forwardRef(function (props, ref) {
17065
+ var index$7 = /*#__PURE__*/React.forwardRef(function (props, ref) {
17064
17066
  var _useState = React.useState(false),
17065
17067
  _useState2 = _slicedToArray(_useState, 2),
17066
17068
  show = _useState2[0],
@@ -24361,28 +24363,26 @@ var valueType = {
24361
24363
  var getDynamicDict = /*#__PURE__*/function () {
24362
24364
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
24363
24365
  return _regeneratorRuntime().wrap(function _callee$(_context) {
24364
- while (1) {
24365
- switch (_context.prev = _context.next) {
24366
- case 0:
24367
- _context.next = 2;
24368
- return bssula.request({
24369
- url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
24370
- converter: function converter(_ref2) {
24371
- var data = _ref2.data;
24372
- return data === null || data === void 0 ? void 0 : data.map(function (d) {
24373
- return {
24374
- text: d.name,
24375
- value: d.code || d.brandCode
24376
- };
24377
- });
24378
- }
24379
- });
24380
- case 2:
24381
- return _context.abrupt("return", _context.sent);
24382
- case 3:
24383
- case "end":
24384
- return _context.stop();
24385
- }
24366
+ while (1) switch (_context.prev = _context.next) {
24367
+ case 0:
24368
+ _context.next = 2;
24369
+ return bssula.request({
24370
+ url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
24371
+ converter: function converter(_ref2) {
24372
+ var data = _ref2.data;
24373
+ return data === null || data === void 0 ? void 0 : data.map(function (d) {
24374
+ return {
24375
+ text: d.name,
24376
+ value: d.code || d.brandCode
24377
+ };
24378
+ });
24379
+ }
24380
+ });
24381
+ case 2:
24382
+ return _context.abrupt("return", _context.sent);
24383
+ case 3:
24384
+ case "end":
24385
+ return _context.stop();
24386
24386
  }
24387
24387
  }, _callee);
24388
24388
  }));
@@ -24432,55 +24432,53 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
24432
24432
  ahooks.useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
24433
24433
  var _ref$current, source;
24434
24434
  return _regeneratorRuntime().wrap(function _callee$(_context) {
24435
- while (1) {
24436
- switch (_context.prev = _context.next) {
24437
- case 0:
24438
- _context.next = 2;
24439
- return setIsShowAndType(function (prev) {
24440
- if (record.inputType === 20 || record.inputType === 30) {
24441
- return {
24442
- isShow: true,
24443
- singleOrMultiple: record.inputType,
24444
- type: record.choiceType
24445
- };
24446
- }
24447
- return prev;
24448
- });
24449
- case 2:
24450
- if (!record.dictionaryCode) {
24451
- _context.next = 17;
24452
- break;
24453
- }
24454
- if (!(record.choiceType == 20)) {
24455
- _context.next = 7;
24456
- break;
24435
+ while (1) switch (_context.prev = _context.next) {
24436
+ case 0:
24437
+ _context.next = 2;
24438
+ return setIsShowAndType(function (prev) {
24439
+ if (record.inputType === 20 || record.inputType === 30) {
24440
+ return {
24441
+ isShow: true,
24442
+ singleOrMultiple: record.inputType,
24443
+ type: record.choiceType
24444
+ };
24457
24445
  }
24458
- _context.t0 = getDictionarySource(record.dictionaryCode);
24459
- _context.next = 15;
24446
+ return prev;
24447
+ });
24448
+ case 2:
24449
+ if (!record.dictionaryCode) {
24450
+ _context.next = 17;
24460
24451
  break;
24461
- case 7:
24462
- if (!(record.choiceType == 30)) {
24463
- _context.next = 13;
24464
- break;
24465
- }
24466
- _context.next = 10;
24467
- return getDynamicDict(record.dictionaryCode);
24468
- case 10:
24469
- _context.t1 = _context.sent;
24470
- _context.next = 14;
24452
+ }
24453
+ if (!(record.choiceType == 20)) {
24454
+ _context.next = 7;
24471
24455
  break;
24472
- case 13:
24473
- _context.t1 = [];
24474
- case 14:
24475
- _context.t0 = _context.t1;
24476
- case 15:
24477
- source = _context.t0;
24478
- // @ts-ignore
24479
- ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
24480
- case 17:
24481
- case "end":
24482
- return _context.stop();
24483
- }
24456
+ }
24457
+ _context.t0 = getDictionarySource(record.dictionaryCode);
24458
+ _context.next = 15;
24459
+ break;
24460
+ case 7:
24461
+ if (!(record.choiceType == 30)) {
24462
+ _context.next = 13;
24463
+ break;
24464
+ }
24465
+ _context.next = 10;
24466
+ return getDynamicDict(record.dictionaryCode);
24467
+ case 10:
24468
+ _context.t1 = _context.sent;
24469
+ _context.next = 14;
24470
+ break;
24471
+ case 13:
24472
+ _context.t1 = [];
24473
+ case 14:
24474
+ _context.t0 = _context.t1;
24475
+ case 15:
24476
+ source = _context.t0;
24477
+ // @ts-ignore
24478
+ ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
24479
+ case 17:
24480
+ case "end":
24481
+ return _context.stop();
24484
24482
  }
24485
24483
  }, _callee);
24486
24484
  })));
@@ -24548,30 +24546,28 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
24548
24546
  var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
24549
24547
  var form, values, name, relates, source;
24550
24548
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
24551
- while (1) {
24552
- switch (_context2.prev = _context2.next) {
24553
- case 0:
24554
- form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
24555
- if (values[0]) {
24556
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
24557
- form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
24558
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
24559
- }
24560
- if (!values[1]) {
24561
- _context2.next = 9;
24562
- break;
24563
- }
24564
- _context2.next = 5;
24565
- return getDynamicDict(record.dictionaryCode || values[1]);
24566
- case 5:
24567
- source = _context2.sent;
24549
+ while (1) switch (_context2.prev = _context2.next) {
24550
+ case 0:
24551
+ form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
24552
+ if (values[0]) {
24568
24553
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
24569
24554
  form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
24570
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
24571
- case 9:
24572
- case "end":
24573
- return _context2.stop();
24574
- }
24555
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
24556
+ }
24557
+ if (!values[1]) {
24558
+ _context2.next = 9;
24559
+ break;
24560
+ }
24561
+ _context2.next = 5;
24562
+ return getDynamicDict(record.dictionaryCode || values[1]);
24563
+ case 5:
24564
+ source = _context2.sent;
24565
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
24566
+ form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
24567
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
24568
+ case 9:
24569
+ case "end":
24570
+ return _context2.stop();
24575
24571
  }
24576
24572
  }, _callee2);
24577
24573
  }));
@@ -25031,43 +25027,41 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
25031
25027
  var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
25032
25028
  var values, name, form, source;
25033
25029
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
25034
- while (1) {
25035
- switch (_context3.prev = _context3.next) {
25036
- case 0:
25037
- values = _ref10.values, name = _ref10.name, form = _ref10.form;
25038
- if (values[1] === 40) {
25039
- form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
25040
- form.setFieldVisible(name, false);
25041
- }
25042
- if (!(values[0] === 30)) {
25043
- _context3.next = 10;
25044
- break;
25045
- }
25046
- _context3.next = 5;
25047
- return bssula.request({
25048
- url: '/basic/dictDynamicItem/queryList',
25049
- converter: function converter(_ref11) {
25050
- var data = _ref11.data;
25051
- return data === null || data === void 0 ? void 0 : data.map(function (d) {
25052
- return {
25053
- text: d.dictCode,
25054
- value: d.dictCode
25055
- };
25056
- });
25057
- }
25058
- });
25059
- case 5:
25060
- source = _context3.sent;
25061
- form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
25062
- form.setFieldVisible(name, true);
25063
- _context3.next = 11;
25064
- break;
25065
- case 10:
25030
+ while (1) switch (_context3.prev = _context3.next) {
25031
+ case 0:
25032
+ values = _ref10.values, name = _ref10.name, form = _ref10.form;
25033
+ if (values[1] === 40) {
25034
+ form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
25066
25035
  form.setFieldVisible(name, false);
25067
- case 11:
25068
- case "end":
25069
- return _context3.stop();
25070
- }
25036
+ }
25037
+ if (!(values[0] === 30)) {
25038
+ _context3.next = 10;
25039
+ break;
25040
+ }
25041
+ _context3.next = 5;
25042
+ return bssula.request({
25043
+ url: '/basic/dictDynamicItem/queryList',
25044
+ converter: function converter(_ref11) {
25045
+ var data = _ref11.data;
25046
+ return data === null || data === void 0 ? void 0 : data.map(function (d) {
25047
+ return {
25048
+ text: d.dictCode,
25049
+ value: d.dictCode
25050
+ };
25051
+ });
25052
+ }
25053
+ });
25054
+ case 5:
25055
+ source = _context3.sent;
25056
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
25057
+ form.setFieldVisible(name, true);
25058
+ _context3.next = 11;
25059
+ break;
25060
+ case 10:
25061
+ form.setFieldVisible(name, false);
25062
+ case 11:
25063
+ case "end":
25064
+ return _context3.stop();
25071
25065
  }
25072
25066
  }, _callee3);
25073
25067
  }));
@@ -25256,66 +25250,64 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
25256
25250
  var _ref$current4, _res$editableStatus;
25257
25251
  var res, _res$defaultValue;
25258
25252
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
25259
- while (1) {
25260
- switch (_context4.prev = _context4.next) {
25261
- case 0:
25262
- _context4.next = 2;
25263
- return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
25264
- case 2:
25265
- res = _context4.sent;
25266
- res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
25267
- res.fieldGroup = record.fieldGroup;
25268
- res.businessType = record.businessType;
25269
- res.info = {
25270
- enumeration: res.enumeration,
25271
- dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
25272
- formula: res.formula,
25273
- scale: res.scale,
25274
- variable: res.variable
25275
- };
25276
- res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
25277
- res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
25278
- res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
25279
- if (res.inputType === 40) {
25280
- res.valueType = 22;
25253
+ while (1) switch (_context4.prev = _context4.next) {
25254
+ case 0:
25255
+ _context4.next = 2;
25256
+ return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
25257
+ case 2:
25258
+ res = _context4.sent;
25259
+ res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
25260
+ res.fieldGroup = record.fieldGroup;
25261
+ res.businessType = record.businessType;
25262
+ res.info = {
25263
+ enumeration: res.enumeration,
25264
+ dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
25265
+ formula: res.formula,
25266
+ scale: res.scale,
25267
+ variable: res.variable
25268
+ };
25269
+ res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
25270
+ res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
25271
+ res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
25272
+ if (res.inputType === 40) {
25273
+ res.valueType = 22;
25274
+ }
25275
+ // 把数组处理成文本
25276
+ if (res.inputType === 30) {
25277
+ if (res.defaultValue) {
25278
+ res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
25281
25279
  }
25282
- // 把数组处理成文本
25283
- if (res.inputType === 30) {
25284
- if (res.defaultValue) {
25285
- res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
25286
- }
25280
+ }
25281
+ res.fieldMapping = res.fieldMapping || '';
25282
+ delete res.formula;
25283
+ delete res.showValue;
25284
+ if (!(mode === 'create')) {
25285
+ _context4.next = 18;
25286
+ break;
25287
+ }
25288
+ bssula.request({
25289
+ url: "/basic/flow/businessField",
25290
+ method: 'POST',
25291
+ params: res,
25292
+ successMessage: '创建成功!',
25293
+ converter: function converter() {
25294
+ onParentOk();
25287
25295
  }
25288
- res.fieldMapping = res.fieldMapping || '';
25289
- delete res.formula;
25290
- delete res.showValue;
25291
- if (!(mode === 'create')) {
25292
- _context4.next = 18;
25293
- break;
25296
+ });
25297
+ return _context4.abrupt("return");
25298
+ case 18:
25299
+ bssula.request({
25300
+ url: "/basic/flow/businessField/".concat(record.id),
25301
+ method: 'PATCH',
25302
+ params: res,
25303
+ successMessage: '修改成功!',
25304
+ converter: function converter() {
25305
+ onParentOk();
25294
25306
  }
25295
- bssula.request({
25296
- url: "/basic/flow/businessField",
25297
- method: 'POST',
25298
- params: res,
25299
- successMessage: '创建成功!',
25300
- converter: function converter() {
25301
- onParentOk();
25302
- }
25303
- });
25304
- return _context4.abrupt("return");
25305
- case 18:
25306
- bssula.request({
25307
- url: "/basic/flow/businessField/".concat(record.id),
25308
- method: 'PATCH',
25309
- params: res,
25310
- successMessage: '修改成功!',
25311
- converter: function converter() {
25312
- onParentOk();
25313
- }
25314
- });
25315
- case 19:
25316
- case "end":
25317
- return _context4.stop();
25318
- }
25307
+ });
25308
+ case 19:
25309
+ case "end":
25310
+ return _context4.stop();
25319
25311
  }
25320
25312
  }, _callee4);
25321
25313
  }));
@@ -26100,28 +26092,26 @@ var BsCascader = function BsCascader(_ref) {
26100
26092
  React.useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
26101
26093
  var resData, data;
26102
26094
  return _regeneratorRuntime().wrap(function _callee$(_context) {
26103
- while (1) {
26104
- switch (_context.prev = _context.next) {
26105
- case 0:
26106
- if (!(!source && initRequestSource)) {
26107
- _context.next = 6;
26108
- break;
26109
- }
26110
- _context.next = 3;
26111
- return initRequestSource();
26112
- case 3:
26113
- resData = _context.sent;
26114
- data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
26115
- return _objectSpread2(_objectSpread2({}, item), {}, {
26116
- label: item.text,
26117
- isLeaf: false
26118
- });
26119
- })) || [];
26120
- setHandSource(data);
26121
- case 6:
26122
- case "end":
26123
- return _context.stop();
26124
- }
26095
+ while (1) switch (_context.prev = _context.next) {
26096
+ case 0:
26097
+ if (!(!source && initRequestSource)) {
26098
+ _context.next = 6;
26099
+ break;
26100
+ }
26101
+ _context.next = 3;
26102
+ return initRequestSource();
26103
+ case 3:
26104
+ resData = _context.sent;
26105
+ data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
26106
+ return _objectSpread2(_objectSpread2({}, item), {}, {
26107
+ label: item.text,
26108
+ isLeaf: false
26109
+ });
26110
+ })) || [];
26111
+ setHandSource(data);
26112
+ case 6:
26113
+ case "end":
26114
+ return _context.stop();
26125
26115
  }
26126
26116
  }, _callee);
26127
26117
  })), []);
@@ -26253,20 +26243,18 @@ function getRegularThresholdRange(_x) {
26253
26243
  function _getRegularThresholdRange() {
26254
26244
  _getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
26255
26245
  return _regeneratorRuntime().wrap(function _callee$(_context) {
26256
- while (1) {
26257
- switch (_context.prev = _context.next) {
26258
- case 0:
26259
- return _context.abrupt("return", axios__default['default']({
26260
- url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
26261
- method: 'POST',
26262
- data: _objectSpread2(_objectSpread2({}, params), {}, {
26263
- queryIdentify: undefined
26264
- })
26265
- }));
26266
- case 1:
26267
- case "end":
26268
- return _context.stop();
26269
- }
26246
+ while (1) switch (_context.prev = _context.next) {
26247
+ case 0:
26248
+ return _context.abrupt("return", axios__default['default']({
26249
+ url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
26250
+ method: 'POST',
26251
+ data: _objectSpread2(_objectSpread2({}, params), {}, {
26252
+ queryIdentify: undefined
26253
+ })
26254
+ }));
26255
+ case 1:
26256
+ case "end":
26257
+ return _context.stop();
26270
26258
  }
26271
26259
  }, _callee);
26272
26260
  }));
@@ -26405,137 +26393,136 @@ var RuleField = /*#__PURE__*/function (_Component) {
26405
26393
  _this.getRegularThresholdRange(queryIdentify, propertyCode, queryIdentifyType);
26406
26394
  });
26407
26395
  };
26396
+ //规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
26408
26397
  _this.getRegularThresholdRange = /*#__PURE__*/function () {
26409
26398
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
26410
26399
  var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
26411
26400
  return _regeneratorRuntime().wrap(function _callee$(_context) {
26412
- while (1) {
26413
- switch (_context.prev = _context.next) {
26414
- case 0:
26415
- if (queryIdentify) {
26416
- _context.next = 2;
26417
- break;
26418
- }
26419
- return _context.abrupt("return");
26420
- case 2:
26421
- thresholdQuery = _this.state.thresholdQuery;
26422
- extraRequestUrl = '';
26423
- querParams = setParams(propertyCode, thresholdQuery);
26424
- if (!queryIdentityInfo.find(function (item) {
26425
- return item.identity == propertyCode;
26426
- })) {
26427
- _context.next = 10;
26428
- break;
26429
- }
26430
- //判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
26431
- needQueryList = queryIdentityInfo.find(function (item) {
26432
- return item.identity == propertyCode;
26433
- }).queryParam.filter(function (item) {
26434
- return item.isRequired;
26435
- }).map(function (item) {
26436
- return item.queryKey;
26437
- });
26438
- if (!needQueryList.some(function (item) {
26439
- return !querParams[item] || !querParams[item].length;
26440
- })) {
26441
- _context.next = 9;
26442
- break;
26443
- }
26444
- return _context.abrupt("return");
26445
- case 9:
26446
- extraRequestUrl = queryIdentityInfo.find(function (item) {
26447
- return item.identity == propertyCode;
26448
- }).requestUrl || '';
26449
- case 10:
26450
- if (queryIdentifyType === 'dictCodeIdentify') {
26451
- extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
26452
- querParams = {
26453
- dictCode: queryIdentify
26454
- };
26455
- } else if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26456
- extraRequestUrl = "dictDynamicItem/getDynamicData/".concat(queryIdentify); // 字典接口
26457
- // querParams = { dictCode: queryIdentify }
26458
- }
26459
- if (!extraRequestUrl) {
26460
- _context.next = 16;
26461
- break;
26462
- }
26463
- if (queryIdentify == 'maintain_area_code') {
26464
- extraRequestUrl = "/basic/".concat(extraRequestUrl).concat(querParams.memberCardCode, "?").concat(querystring.stringify(querParams));
26465
- } else if (queryIdentifyType == 'dictCodeIdentify') {
26466
- extraRequestUrl = "/basic/".concat(extraRequestUrl, "?").concat(querystring.stringify(querParams));
26467
- } else if (queryIdentifyType == 'dynamicDictCodeIdentify') {
26468
- extraRequestUrl = "/basic/".concat(extraRequestUrl);
26469
- }
26470
- bssula.request({
26471
- url: extraRequestUrl,
26472
- method: 'get',
26473
- converter: function converter(res) {
26474
- if (handleError(res)) {
26475
- var _handleData = (res === null || res === void 0 ? void 0 : res.data) || [];
26476
- if (queryIdentifyType === 'dictCodeIdentify') {
26477
- var _handleData2;
26478
- _handleData = ((_handleData2 = _handleData) === null || _handleData2 === void 0 ? void 0 : _handleData2.length) ? _handleData.map(function (i) {
26479
- return {
26480
- code: i.dictItemCode,
26481
- name: i.dictItemName
26482
- };
26483
- }) : [];
26484
- }
26485
- if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26486
- var _handleData3;
26487
- _handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
26488
- return {
26489
- code: i.code.toString(),
26490
- name: i.name
26491
- };
26492
- }) : [];
26493
- }
26494
- _this.setState({
26495
- thresholdList: _handleData
26496
- });
26401
+ while (1) switch (_context.prev = _context.next) {
26402
+ case 0:
26403
+ if (queryIdentify) {
26404
+ _context.next = 2;
26405
+ break;
26406
+ }
26407
+ return _context.abrupt("return");
26408
+ case 2:
26409
+ thresholdQuery = _this.state.thresholdQuery;
26410
+ extraRequestUrl = '';
26411
+ querParams = setParams(propertyCode, thresholdQuery);
26412
+ if (!queryIdentityInfo.find(function (item) {
26413
+ return item.identity == propertyCode;
26414
+ })) {
26415
+ _context.next = 10;
26416
+ break;
26417
+ }
26418
+ //判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
26419
+ needQueryList = queryIdentityInfo.find(function (item) {
26420
+ return item.identity == propertyCode;
26421
+ }).queryParam.filter(function (item) {
26422
+ return item.isRequired;
26423
+ }).map(function (item) {
26424
+ return item.queryKey;
26425
+ });
26426
+ if (!needQueryList.some(function (item) {
26427
+ return !querParams[item] || !querParams[item].length;
26428
+ })) {
26429
+ _context.next = 9;
26430
+ break;
26431
+ }
26432
+ return _context.abrupt("return");
26433
+ case 9:
26434
+ extraRequestUrl = queryIdentityInfo.find(function (item) {
26435
+ return item.identity == propertyCode;
26436
+ }).requestUrl || '';
26437
+ case 10:
26438
+ if (queryIdentifyType === 'dictCodeIdentify') {
26439
+ extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
26440
+ querParams = {
26441
+ dictCode: queryIdentify
26442
+ };
26443
+ } else if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26444
+ extraRequestUrl = "dictDynamicItem/getDynamicData/".concat(queryIdentify); // 字典接口
26445
+ // querParams = { dictCode: queryIdentify }
26446
+ }
26447
+ if (!extraRequestUrl) {
26448
+ _context.next = 16;
26449
+ break;
26450
+ }
26451
+ if (queryIdentify == 'maintain_area_code') {
26452
+ extraRequestUrl = "/basic/".concat(extraRequestUrl).concat(querParams.memberCardCode, "?").concat(querystring.stringify(querParams));
26453
+ } else if (queryIdentifyType == 'dictCodeIdentify') {
26454
+ extraRequestUrl = "/basic/".concat(extraRequestUrl, "?").concat(querystring.stringify(querParams));
26455
+ } else if (queryIdentifyType == 'dynamicDictCodeIdentify') {
26456
+ extraRequestUrl = "/basic/".concat(extraRequestUrl);
26457
+ }
26458
+ bssula.request({
26459
+ url: extraRequestUrl,
26460
+ method: 'get',
26461
+ converter: function converter(res) {
26462
+ if (handleError(res)) {
26463
+ var _handleData = (res === null || res === void 0 ? void 0 : res.data) || [];
26464
+ if (queryIdentifyType === 'dictCodeIdentify') {
26465
+ var _handleData2;
26466
+ _handleData = ((_handleData2 = _handleData) === null || _handleData2 === void 0 ? void 0 : _handleData2.length) ? _handleData.map(function (i) {
26467
+ return {
26468
+ code: i.dictItemCode,
26469
+ name: i.dictItemName
26470
+ };
26471
+ }) : [];
26497
26472
  }
26498
- return handleData;
26473
+ if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26474
+ var _handleData3;
26475
+ _handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
26476
+ return {
26477
+ code: i.code.toString(),
26478
+ name: i.name
26479
+ };
26480
+ }) : [];
26481
+ }
26482
+ _this.setState({
26483
+ thresholdList: _handleData
26484
+ });
26499
26485
  }
26500
- });
26501
- _context.next = 29;
26502
- break;
26503
- case 16:
26504
- if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
26505
- _context.next = 20;
26506
- break;
26486
+ return handleData;
26507
26487
  }
26508
- _this.setState({
26509
- thresholdList: queryIdentify
26510
- });
26511
- _context.next = 29;
26488
+ });
26489
+ _context.next = 29;
26490
+ break;
26491
+ case 16:
26492
+ if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
26493
+ _context.next = 20;
26512
26494
  break;
26513
- case 20:
26514
- if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
26515
- _context.next = 24;
26516
- break;
26517
- }
26518
- // TODO待处理
26495
+ }
26496
+ _this.setState({
26497
+ thresholdList: queryIdentify
26498
+ });
26499
+ _context.next = 29;
26500
+ break;
26501
+ case 20:
26502
+ if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
26503
+ _context.next = 24;
26504
+ break;
26505
+ }
26506
+ // TODO待处理
26507
+ _this.setState({
26508
+ thresholdList: []
26509
+ });
26510
+ _context.next = 29;
26511
+ break;
26512
+ case 24:
26513
+ querParams.queryIdentify = queryIdentify;
26514
+ _context.next = 27;
26515
+ return getRegularThresholdRange(querParams);
26516
+ case 27:
26517
+ res = _context.sent;
26518
+ if (handleError(res)) {
26519
26519
  _this.setState({
26520
- thresholdList: []
26520
+ thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
26521
26521
  });
26522
- _context.next = 29;
26523
- break;
26524
- case 24:
26525
- querParams.queryIdentify = queryIdentify;
26526
- _context.next = 27;
26527
- return getRegularThresholdRange(querParams);
26528
- case 27:
26529
- res = _context.sent;
26530
- if (handleError(res)) {
26531
- _this.setState({
26532
- thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
26533
- });
26534
- }
26535
- case 29:
26536
- case "end":
26537
- return _context.stop();
26538
- }
26522
+ }
26523
+ case 29:
26524
+ case "end":
26525
+ return _context.stop();
26539
26526
  }
26540
26527
  }, _callee);
26541
26528
  }));
@@ -27354,32 +27341,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
27354
27341
  notChangeOnSelect: true,
27355
27342
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
27356
27343
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
27357
- while (1) {
27358
- switch (_context2.prev = _context2.next) {
27359
- case 0:
27360
- _context2.next = 2;
27361
- return bssula.request({
27362
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27363
- method: 'get',
27364
- converter: function converter(_ref3) {
27365
- var data = _ref3.data;
27366
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27367
- return {
27368
- text: item.name,
27369
- value: item.id,
27370
- level: item.level,
27371
- id: item.id
27372
- };
27373
- }) : [];
27374
- return handleData;
27375
- }
27376
- });
27377
- case 2:
27378
- return _context2.abrupt("return", _context2.sent);
27379
- case 3:
27380
- case "end":
27381
- return _context2.stop();
27382
- }
27344
+ while (1) switch (_context2.prev = _context2.next) {
27345
+ case 0:
27346
+ _context2.next = 2;
27347
+ return bssula.request({
27348
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27349
+ method: 'get',
27350
+ converter: function converter(_ref3) {
27351
+ var data = _ref3.data;
27352
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27353
+ return {
27354
+ text: item.name,
27355
+ value: item.id,
27356
+ level: item.level,
27357
+ id: item.id
27358
+ };
27359
+ }) : [];
27360
+ return handleData;
27361
+ }
27362
+ });
27363
+ case 2:
27364
+ return _context2.abrupt("return", _context2.sent);
27365
+ case 3:
27366
+ case "end":
27367
+ return _context2.stop();
27383
27368
  }
27384
27369
  }, _callee2);
27385
27370
  })),
@@ -27405,32 +27390,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
27405
27390
  notChangeOnSelect: true,
27406
27391
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
27407
27392
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
27408
- while (1) {
27409
- switch (_context3.prev = _context3.next) {
27410
- case 0:
27411
- _context3.next = 2;
27412
- return bssula.request({
27413
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27414
- method: 'get',
27415
- converter: function converter(_ref5) {
27416
- var data = _ref5.data;
27417
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27418
- return {
27419
- text: item.name,
27420
- value: item.id,
27421
- level: item.level,
27422
- id: item.id
27423
- };
27424
- }) : [];
27425
- return handleData;
27426
- }
27427
- });
27428
- case 2:
27429
- return _context3.abrupt("return", _context3.sent);
27430
- case 3:
27431
- case "end":
27432
- return _context3.stop();
27433
- }
27393
+ while (1) switch (_context3.prev = _context3.next) {
27394
+ case 0:
27395
+ _context3.next = 2;
27396
+ return bssula.request({
27397
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27398
+ method: 'get',
27399
+ converter: function converter(_ref5) {
27400
+ var data = _ref5.data;
27401
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27402
+ return {
27403
+ text: item.name,
27404
+ value: item.id,
27405
+ level: item.level,
27406
+ id: item.id
27407
+ };
27408
+ }) : [];
27409
+ return handleData;
27410
+ }
27411
+ });
27412
+ case 2:
27413
+ return _context3.abrupt("return", _context3.sent);
27414
+ case 3:
27415
+ case "end":
27416
+ return _context3.stop();
27434
27417
  }
27435
27418
  }, _callee3);
27436
27419
  })),
@@ -27458,32 +27441,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
27458
27441
  notChangeOnSelect: true,
27459
27442
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
27460
27443
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
27461
- while (1) {
27462
- switch (_context4.prev = _context4.next) {
27463
- case 0:
27464
- _context4.next = 2;
27465
- return bssula.request({
27466
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27467
- method: 'get',
27468
- converter: function converter(_ref7) {
27469
- var data = _ref7.data;
27470
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27471
- return {
27472
- text: item.name,
27473
- value: item.id,
27474
- level: item.level,
27475
- id: item.id
27476
- };
27477
- }) : [];
27478
- return handleData;
27479
- }
27480
- });
27481
- case 2:
27482
- return _context4.abrupt("return", _context4.sent);
27483
- case 3:
27484
- case "end":
27485
- return _context4.stop();
27486
- }
27444
+ while (1) switch (_context4.prev = _context4.next) {
27445
+ case 0:
27446
+ _context4.next = 2;
27447
+ return bssula.request({
27448
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27449
+ method: 'get',
27450
+ converter: function converter(_ref7) {
27451
+ var data = _ref7.data;
27452
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27453
+ return {
27454
+ text: item.name,
27455
+ value: item.id,
27456
+ level: item.level,
27457
+ id: item.id
27458
+ };
27459
+ }) : [];
27460
+ return handleData;
27461
+ }
27462
+ });
27463
+ case 2:
27464
+ return _context4.abrupt("return", _context4.sent);
27465
+ case 3:
27466
+ case "end":
27467
+ return _context4.stop();
27487
27468
  }
27488
27469
  }, _callee4);
27489
27470
  })),
@@ -28600,8 +28581,6 @@ var RuleField = /*#__PURE__*/function (_Component) {
28600
28581
  });
28601
28582
  }
28602
28583
  }
28603
-
28604
- //规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
28605
28584
  }, {
28606
28585
  key: "render",
28607
28586
  value: function render() {
@@ -29432,6 +29411,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29432
29411
  callBack(ruleClassData);
29433
29412
  });
29434
29413
  };
29414
+ // 树结构 转化成 平行树 (递归函数)
29435
29415
  _this.coverToParallel = function (treeData, result) {
29436
29416
  treeData.forEach(function (el) {
29437
29417
  result.push(el);
@@ -29685,6 +29665,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29685
29665
  callBack(ruleClassData);
29686
29666
  });
29687
29667
  };
29668
+ // 场景需要返回值2022.11.15
29688
29669
  _this.renderResItem = function (itemDetail, parentDetail, ruleReturnConfig, disabled, boxStyle) {
29689
29670
  var _ruleReturnConfig$rig;
29690
29671
  var isShowResponse = itemDetail.response['enable'];
@@ -29982,32 +29963,30 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29982
29963
  notChangeOnSelect: true,
29983
29964
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
29984
29965
  return _regeneratorRuntime().wrap(function _callee$(_context) {
29985
- while (1) {
29986
- switch (_context.prev = _context.next) {
29987
- case 0:
29988
- _context.next = 2;
29989
- return bssula.request({
29990
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
29991
- method: 'get',
29992
- converter: function converter(_ref2) {
29993
- var data = _ref2.data;
29994
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
29995
- return {
29996
- text: item.name,
29997
- value: item.id,
29998
- level: item.level,
29999
- id: item.id
30000
- };
30001
- }) : [];
30002
- return handleData;
30003
- }
30004
- });
30005
- case 2:
30006
- return _context.abrupt("return", _context.sent);
30007
- case 3:
30008
- case "end":
30009
- return _context.stop();
30010
- }
29966
+ while (1) switch (_context.prev = _context.next) {
29967
+ case 0:
29968
+ _context.next = 2;
29969
+ return bssula.request({
29970
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
29971
+ method: 'get',
29972
+ converter: function converter(_ref2) {
29973
+ var data = _ref2.data;
29974
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
29975
+ return {
29976
+ text: item.name,
29977
+ value: item.id,
29978
+ level: item.level,
29979
+ id: item.id
29980
+ };
29981
+ }) : [];
29982
+ return handleData;
29983
+ }
29984
+ });
29985
+ case 2:
29986
+ return _context.abrupt("return", _context.sent);
29987
+ case 3:
29988
+ case "end":
29989
+ return _context.stop();
30011
29990
  }
30012
29991
  }, _callee);
30013
29992
  })),
@@ -30341,6 +30320,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30341
30320
  }
30342
30321
  }, "\u65B0\u589E\u8FD4\u56DE\u503C")), isHaveRuleReturnConfig && _this.renderResItem(itemDetail, parentDetail, ruleReturnConfig, disabled, RuleActionItemStyle) || null, isHaveRuleTypeData && _this.renderActionList(itemDetail, parentDetail, handleRuleTypeData, selectRuleActionData, classDataIndex, disabled, RuleActionItemStyle) || null);
30343
30322
  };
30323
+ //添加同一层级条件
30344
30324
  _this.addPeerRule = function (itemDetail) {
30345
30325
  var ruleClassData = _this.state.ruleClassData;
30346
30326
  var _this$props4 = _this.props,
@@ -30361,6 +30341,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30361
30341
  callBack(ruleClassData);
30362
30342
  });
30363
30343
  };
30344
+ //添加子层级条件
30364
30345
  _this.addChildRules = function (itemDetail) {
30365
30346
  var ruleClassData = _this.state.ruleClassData;
30366
30347
  var callBack = _this.props.callBack;
@@ -30436,6 +30417,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30436
30417
  callBack(ruleClassData);
30437
30418
  });
30438
30419
  };
30420
+ // 新增执行顺序
30439
30421
  _this.handleSelectRuleAction = function (keys, classDataIndex, callback) {
30440
30422
  callback();
30441
30423
  var callBack = _this.props.callBack;
@@ -30592,26 +30574,26 @@ exports.AddSkuSelect = AddSkuSelect;
30592
30574
  exports.AddSpuSelect = AddSpuSelect;
30593
30575
  exports.BillEntry = BillEntry;
30594
30576
  exports.BsCascader = BsCascader;
30595
- exports.BsLayout = index$5;
30577
+ exports.BsLayout = index$6;
30596
30578
  exports.BsSulaQueryTable = BsSulaQueryTable;
30597
30579
  exports.BusinessSearchSelect = BusinessSearchSelect$1;
30598
30580
  exports.BusinessTreeSearchSelect = BusinessTreeSearchSelect$1;
30599
- exports.CheckOneUser = index$1;
30581
+ exports.CheckOneUser = index$2;
30600
30582
  exports.ColumnSettingTable = ColumnSettingTable;
30601
30583
  exports.CommodityEntry = CommodityEntry;
30602
30584
  exports.DataImport = DataImport;
30603
30585
  exports.DataValidation = DataValidation;
30604
- exports.DetailPageWrapper = index$3;
30586
+ exports.DetailPageWrapper = index$4;
30605
30587
  exports.EllipsisTooltip = EllipsisTooltip;
30606
30588
  exports.ExportIcon = ExportIcon;
30607
30589
  exports.GuideWrapper = GuideWrapper;
30608
- exports.HomePageWrapper = index$4;
30590
+ exports.HomePageWrapper = index$5;
30609
30591
  exports.JsonQueryTable = JsonQueryTable;
30610
- exports.MoreTreeTable = index$6;
30592
+ exports.MoreTreeTable = index$7;
30611
30593
  exports.QueryMutipleInput = QueryMutipleInput;
30612
30594
  exports.RuleComponent = RuleObjectComponent;
30613
30595
  exports.SearchSelect = SearchSelect;
30614
- exports.StateFlow = index$2;
30596
+ exports.StateFlow = index$3;
30615
30597
  exports.SulaColumnSettingTable = ColumnSettingSulaTable;
30616
30598
  exports.TableColumnSetting = TableColumnSetting;
30617
30599
  exports.TreeSearchSelect = TreeSearchSelect;