@bit-sun/business-component 2.3.0 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (201) hide show
  1. package/.editorconfig +16 -16
  2. package/.fatherrc.ts +5 -5
  3. package/.gitlab-ci.yml +179 -179
  4. package/.prettierignore +7 -7
  5. package/.prettierrc +11 -11
  6. package/.umirc.ts +74 -74
  7. package/README.md +27 -27
  8. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
  9. package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
  10. package/dist/components/Business/SearchSelect/index.d.ts +1 -1
  11. package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
  12. package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
  13. package/dist/index.esm.js +1206 -910
  14. package/dist/index.js +1212 -916
  15. package/dist/utils/utils.d.ts +1 -1
  16. package/docs/index.md +21 -21
  17. package/lib/assets/drag.svg +17 -17
  18. package/lib/assets/exportFail.svg +37 -37
  19. package/lib/assets/exportProcessing.svg +28 -28
  20. package/lib/assets/exportSuccess.svg +34 -34
  21. package/lib/assets/label_icon_bottom.svg +25 -25
  22. package/lib/assets/upExport.svg +22 -22
  23. package/package.json +78 -78
  24. package/src/assets/32.svg +27 -27
  25. package/src/assets/addIcon.svg +17 -17
  26. package/src/assets/allfunc.svg +27 -27
  27. package/src/assets/arrowRight.svg +24 -24
  28. package/src/assets/btn-delete.svg +29 -29
  29. package/src/assets/btn-edit.svg +19 -19
  30. package/src/assets/btn-more.svg +17 -17
  31. package/src/assets/btn-submit.svg +19 -19
  32. package/src/assets/caidan.svg +11 -11
  33. package/src/assets/close.svg +26 -26
  34. package/src/assets/drag.svg +17 -17
  35. package/src/assets/exportFail.svg +37 -37
  36. package/src/assets/exportProcessing.svg +28 -28
  37. package/src/assets/exportSuccess.svg +34 -34
  38. package/src/assets/fixed-left-active.svg +11 -11
  39. package/src/assets/fixed-left.svg +15 -15
  40. package/src/assets/fixed-right-active.svg +11 -11
  41. package/src/assets/fixed-right.svg +15 -15
  42. package/src/assets/guanbi.svg +15 -15
  43. package/src/assets/icon-quanping.svg +15 -15
  44. package/src/assets/icon-shezhi.svg +17 -17
  45. package/src/assets/label_icon_bottom.svg +25 -25
  46. package/src/assets/list-no-img.svg +21 -21
  47. package/src/assets/morentouxiang-32.svg +23 -23
  48. package/src/assets/scanning.svg +24 -24
  49. package/src/assets/upExport.svg +22 -22
  50. package/src/common/ENUM.ts +41 -41
  51. package/src/components/Business/AddSelectBusiness/index.md +161 -161
  52. package/src/components/Business/AddSelectBusiness/index.tsx +861 -861
  53. package/src/components/Business/BsLayouts/Components/AllFunc/drawContent.tsx +111 -111
  54. package/src/components/Business/BsLayouts/Components/AllFunc/index.less +153 -153
  55. package/src/components/Business/BsLayouts/Components/AllFunc/index.tsx +70 -70
  56. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.less +90 -90
  57. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.tsx +37 -37
  58. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.tsx +242 -242
  59. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.tsx +384 -384
  60. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.tsx +285 -285
  61. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.tsx +74 -74
  62. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/drawContent.less +170 -170
  63. package/src/components/Business/BsLayouts/Components/CustomerMenu/index.less +64 -64
  64. package/src/components/Business/BsLayouts/Components/CustomerMenu/index.tsx +153 -153
  65. package/src/components/Business/BsLayouts/Components/GlobalHeader/index.less +72 -72
  66. package/src/components/Business/BsLayouts/Components/GlobalHeader/index.tsx +157 -157
  67. package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +85 -85
  68. package/src/components/Business/BsLayouts/Components/RightContent/home.less +218 -218
  69. package/src/components/Business/BsLayouts/Components/RightContent/index.tsx +155 -155
  70. package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +160 -160
  71. package/src/components/Business/BsLayouts/Components/SearchFunc/index.tsx +75 -75
  72. package/src/components/Business/BsLayouts/index.less +79 -79
  73. package/src/components/Business/BsLayouts/index.tsx +1484 -1484
  74. package/src/components/Business/BsLayouts/service.ts +10 -10
  75. package/src/components/Business/BsLayouts/utils.tsx +203 -203
  76. package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +564 -564
  77. package/src/components/Business/BsSulaQueryTable/index.less +221 -221
  78. package/src/components/Business/BsSulaQueryTable/index.tsx +527 -527
  79. package/src/components/Business/BsSulaQueryTable/setting.tsx +832 -832
  80. package/src/components/Business/BsSulaQueryTable/utils.less +65 -65
  81. package/src/components/Business/BsSulaQueryTable/utils.tsx +688 -688
  82. package/src/components/Business/CommodityEntry/index.md +70 -70
  83. package/src/components/Business/CommodityEntry/index.tsx +80 -80
  84. package/src/components/Business/CommonAlert/index.tsx +23 -23
  85. package/src/components/Business/CommonGuideWrapper/index.less +111 -111
  86. package/src/components/Business/CommonGuideWrapper/index.md +39 -39
  87. package/src/components/Business/CommonGuideWrapper/index.tsx +83 -83
  88. package/src/components/Business/DetailPageWrapper/index.less +79 -79
  89. package/src/components/Business/DetailPageWrapper/index.tsx +313 -313
  90. package/src/components/Business/DetailPageWrapper/utils.tsx +100 -100
  91. package/src/components/Business/HomePageWrapper/index.less +33 -33
  92. package/src/components/Business/HomePageWrapper/index.md +45 -45
  93. package/src/components/Business/HomePageWrapper/index.tsx +162 -162
  94. package/src/components/Business/JsonQueryTable/components/FieldsModifyModal.tsx +824 -824
  95. package/src/components/Business/JsonQueryTable/components/FieldsSettingsTable.tsx +205 -201
  96. package/src/components/Business/JsonQueryTable/components/Formula.tsx +205 -205
  97. package/src/components/Business/JsonQueryTable/components/MaintainOptions.tsx +127 -127
  98. package/src/components/Business/JsonQueryTable/configButton/index.js +20 -20
  99. package/src/components/Business/JsonQueryTable/configTree/component/compactArrayView.js +25 -25
  100. package/src/components/Business/JsonQueryTable/configTree/component/compactObjectView.js +30 -30
  101. package/src/components/Business/JsonQueryTable/configTree/index.js +82 -82
  102. package/src/components/Business/JsonQueryTable/configTree/index.less +44 -44
  103. package/src/components/Business/JsonQueryTable/configTree/parser/highlight.js +57 -57
  104. package/src/components/Business/JsonQueryTable/configTree/parser/index.js +124 -124
  105. package/src/components/Business/JsonQueryTable/configTree/render/iconRender.js +29 -29
  106. package/src/components/Business/JsonQueryTable/configTree/render/nameRender.js +22 -22
  107. package/src/components/Business/JsonQueryTable/configTree/treeNode.js +116 -116
  108. package/src/components/Business/JsonQueryTable/drawer/index.tsx +12 -12
  109. package/src/components/Business/JsonQueryTable/function.ts +62 -62
  110. package/src/components/Business/JsonQueryTable/index.less +16 -16
  111. package/src/components/Business/JsonQueryTable/index.md +328 -328
  112. package/src/components/Business/JsonQueryTable/index.tsx +535 -320
  113. package/src/components/Business/JsonQueryTable/jsonEditor/index.js +346 -346
  114. package/src/components/Business/JsonQueryTable/jsonEditor/index.less +22 -22
  115. package/src/components/Business/JsonQueryTable/jsonEditor/lint/basicType.js +147 -147
  116. package/src/components/Business/JsonQueryTable/jsonEditor/lint/index.js +389 -389
  117. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/actions.js +118 -118
  118. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/dependency.js +22 -22
  119. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/index.js +21 -21
  120. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/request.js +65 -65
  121. package/src/components/Business/JsonQueryTable/static.ts +390 -390
  122. package/src/components/Business/SearchSelect/BusinessUtils.ts +1732 -1732
  123. package/src/components/Business/SearchSelect/common.ts +53 -53
  124. package/src/components/Business/SearchSelect/index.md +1319 -1319
  125. package/src/components/Business/SearchSelect/index.tsx +51 -51
  126. package/src/components/Business/SearchSelect/utils.ts +100 -100
  127. package/src/components/Business/StateFlow/index.less +130 -130
  128. package/src/components/Business/StateFlow/index.md +60 -60
  129. package/src/components/Business/StateFlow/index.tsx +29 -29
  130. package/src/components/Business/TreeSearchSelect/index.md +154 -154
  131. package/src/components/Business/TreeSearchSelect/index.tsx +34 -34
  132. package/src/components/Business/TreeSearchSelect/utils.ts +69 -69
  133. package/src/components/Business/columnSettingTable/columnSetting.tsx +764 -764
  134. package/src/components/Business/columnSettingTable/index.less +247 -247
  135. package/src/components/Business/columnSettingTable/index.md +357 -357
  136. package/src/components/Business/columnSettingTable/index.tsx +232 -232
  137. package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +240 -240
  138. package/src/components/Business/columnSettingTable/utils.tsx +68 -68
  139. package/src/components/Business/moreTreeTable/FixedScrollBar.tsx +86 -86
  140. package/src/components/Business/moreTreeTable/hooks/useSticky.ts +21 -21
  141. package/src/components/Business/moreTreeTable/index.less +99 -99
  142. package/src/components/Business/moreTreeTable/index.md +448 -448
  143. package/src/components/Business/moreTreeTable/index.tsx +380 -380
  144. package/src/components/Business/moreTreeTable/utils.ts +126 -126
  145. package/src/components/Functional/AddSelect/helps.ts +14 -14
  146. package/src/components/Functional/AddSelect/index.less +367 -367
  147. package/src/components/Functional/AddSelect/index.md +155 -155
  148. package/src/components/Functional/AddSelect/index.tsx +1279 -1279
  149. package/src/components/Functional/BillEntry/index.less +371 -371
  150. package/src/components/Functional/BillEntry/index.md +39 -39
  151. package/src/components/Functional/BillEntry/index.tsx +772 -772
  152. package/src/components/Functional/BsAntdSula/BsCascader/index.md +62 -62
  153. package/src/components/Functional/BsAntdSula/BsCascader/index.tsx +178 -178
  154. package/src/components/Functional/BsAntdSula/index.ts +2 -2
  155. package/src/components/Functional/DataImport/index.less +63 -63
  156. package/src/components/Functional/DataImport/index.md +44 -44
  157. package/src/components/Functional/DataImport/index.tsx +695 -695
  158. package/src/components/Functional/DataValidation/index.less +63 -63
  159. package/src/components/Functional/DataValidation/index.md +39 -39
  160. package/src/components/Functional/DataValidation/index.tsx +687 -687
  161. package/src/components/Functional/EllipsisTooltip/index.d.ts +5 -5
  162. package/src/components/Functional/EllipsisTooltip/index.js +36 -36
  163. package/src/components/Functional/EllipsisTooltip/index.md +30 -30
  164. package/src/components/Functional/ExportFunctions/ExportIcon/index.md +37 -37
  165. package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +59 -59
  166. package/src/components/Functional/QueryMutipleInput/index.less +37 -37
  167. package/src/components/Functional/QueryMutipleInput/index.md +33 -33
  168. package/src/components/Functional/QueryMutipleInput/index.tsx +128 -128
  169. package/src/components/Functional/SearchSelect/index.less +115 -115
  170. package/src/components/Functional/SearchSelect/index.md +141 -141
  171. package/src/components/Functional/SearchSelect/index.tsx +849 -849
  172. package/src/components/Functional/SearchSelect/utils.ts +3 -3
  173. package/src/components/Functional/TreeSearchSelect/index.md +47 -47
  174. package/src/components/Functional/TreeSearchSelect/index.tsx +162 -162
  175. package/src/components/Solution/RuleComponent/Formula.tsx +335 -335
  176. package/src/components/Solution/RuleComponent/index.d.ts +29 -29
  177. package/src/components/Solution/RuleComponent/index.js +2028 -2028
  178. package/src/components/Solution/RuleComponent/index.less +230 -230
  179. package/src/components/Solution/RuleComponent/renderSpecificAction.js +99 -99
  180. package/src/components/Solution/RuleComponent/ruleFiled.js +2074 -2074
  181. package/src/components/Solution/RuleComponent/services.ts +13 -13
  182. package/src/components/Solution/RuleComponent/util.js +139 -139
  183. package/src/index.ts +38 -38
  184. package/src/plugin/TableColumnSetting/index.less +247 -247
  185. package/src/plugin/TableColumnSetting/index.md +50 -50
  186. package/src/plugin/TableColumnSetting/index.tsx +724 -724
  187. package/src/plugin/TableColumnSetting/utils.ts +19 -19
  188. package/src/styles/bsDefault.less +1912 -1912
  189. package/src/utils/CheckOneUser/index.md +39 -39
  190. package/src/utils/CheckOneUser/index.ts +51 -51
  191. package/src/utils/LocalstorageUtils.ts +90 -90
  192. package/src/utils/TableUtils.tsx +18 -18
  193. package/src/utils/checkUtils.ts +39 -39
  194. package/src/utils/enumConfig.ts +11 -11
  195. package/src/utils/getFormMode.js +12 -12
  196. package/src/utils/index.ts +4 -4
  197. package/src/utils/requestUtils.ts +34 -34
  198. package/src/utils/serialize.js +7 -7
  199. package/src/utils/utils.ts +212 -212
  200. package/tsconfig.json +29 -29
  201. package/typings.d.ts +4 -4
package/dist/index.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 = require('lodash/isEqual');
9
+ var isEqual$1 = 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);
36
+ var isEqual__default = /*#__PURE__*/_interopDefaultLegacy(isEqual$1);
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,41 +781,52 @@ var precisionQuantity = function precisionQuantity(num, accuracy) {
781
781
  return '';
782
782
  };
783
783
 
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];
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;
805
791
  }
806
-
807
- if (calledOnce && lastThis === this && newArgs.length === lastArgs.length && newArgs.every(isNewArgEqualToLast)) {
808
- return lastResult;
792
+ if (safeIsNaN(first) && safeIsNaN(second)) {
793
+ return true;
809
794
  }
795
+ return false;
796
+ }
797
+ function areInputsEqual(newInputs, lastInputs) {
798
+ if (newInputs.length !== lastInputs.length) {
799
+ return false;
800
+ }
801
+ for (var i = 0; i < newInputs.length; i++) {
802
+ if (!isEqual(newInputs[i], lastInputs[i])) {
803
+ return false;
804
+ }
805
+ }
806
+ return true;
807
+ }
810
808
 
811
- lastResult = resultFn.apply(this, newArgs);
812
- calledOnce = true;
813
- lastThis = this;
814
- lastArgs = newArgs;
815
- return lastResult;
816
- };
817
-
818
- return result;
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;
819
830
  }
820
831
 
821
832
  function styleInject(css, ref) {
@@ -1029,59 +1040,58 @@ var getItemDefaultWidth = function getItemDefaultWidth(item) {
1029
1040
  * @returns 返回处理后的查询参数
1030
1041
  */
1031
1042
  function queryParams(params, flag) {
1032
- var _loop = function _loop() {
1043
+ for (var key in params) {
1033
1044
  if (Object.prototype.hasOwnProperty.call(params, key)) {
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');
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;
1057
1085
  } else {
1058
- params[value] = moment__default['default'](element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
1086
+ params["qp-".concat(_dataParams5[0], "-like")] = element;
1087
+ params["qp-".concat(_dataParams5[0], "-in")] = null;
1059
1088
  }
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;
1089
+ delete params[key];
1090
+ } else if (Array.isArray(element)) {
1091
+ params[key] = element.join(',');
1076
1092
  }
1077
- delete params[key];
1078
- } else if (Array.isArray(element)) {
1079
- params[key] = element.join(',');
1080
- }
1093
+ })();
1081
1094
  }
1082
- };
1083
- for (var key in params) {
1084
- _loop();
1085
1095
  }
1086
1096
  return flag ? params : qs.stringify(params);
1087
1097
  }
@@ -1127,7 +1137,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
1127
1137
  return item;
1128
1138
  });
1129
1139
  };
1130
- var memoizeOneFormatter = index$1(formatter, isEqual__default['default']);
1140
+ var memoizeOneFormatter = memoizeOne(formatter, isEqual__default['default']);
1131
1141
  var go2BackAndClose = function go2BackAndClose() {
1132
1142
  localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
1133
1143
  umi.history.goBack();
@@ -2802,85 +2812,84 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
2802
2812
  });
2803
2813
  }
2804
2814
  // 数组对象处理,对带有特殊标记的name进行处理
2805
- var _loop = function _loop() {
2815
+ for (var key in params) {
2806
2816
  if (Object.prototype.hasOwnProperty.call(params, key)) {
2807
- var element = params[key];
2808
- if (element && key.indexOf('*number*') >= 0) {
2809
- var dataParams = key.split('*number*');
2810
- dataParams.forEach(function (value, index) {
2811
- params[value] = element[index];
2812
- });
2813
- delete params[key];
2814
- } else if (element && key.indexOf('*address*') >= 0) {
2815
- var _dataParams = key.split('*address*');
2816
- _dataParams.forEach(function (value, index) {
2817
- params[value] = element.PCDCode[index];
2818
- });
2819
- delete params[key];
2820
- } else if (element && key.indexOf('*costType*') >= 0) {
2821
- var _dataParams2 = key.split('*costType*');
2822
- // eslint-disable-next-line prefer-destructuring
2823
- params[_dataParams2[0]] = element[1];
2824
- delete params[key];
2825
- } else if (element && key.indexOf('*fullDate*') >= 0) {
2826
- var _dataParams3 = key.split('*fullDate*');
2827
- _dataParams3.forEach(function (value, index) {
2828
- if (index === 0) {
2829
- params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
2830
- } else {
2831
- params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
2817
+ (function () {
2818
+ var element = params[key];
2819
+ if (element && key.indexOf('*number*') >= 0) {
2820
+ var dataParams = key.split('*number*');
2821
+ dataParams.forEach(function (value, index) {
2822
+ params[value] = element[index];
2823
+ });
2824
+ delete params[key];
2825
+ } else if (element && key.indexOf('*address*') >= 0) {
2826
+ var _dataParams = key.split('*address*');
2827
+ _dataParams.forEach(function (value, index) {
2828
+ params[value] = element.PCDCode[index];
2829
+ });
2830
+ delete params[key];
2831
+ } else if (element && key.indexOf('*costType*') >= 0) {
2832
+ var _dataParams2 = key.split('*costType*');
2833
+ // eslint-disable-next-line prefer-destructuring
2834
+ params[_dataParams2[0]] = element[1];
2835
+ delete params[key];
2836
+ } else if (element && key.indexOf('*fullDate*') >= 0) {
2837
+ var _dataParams3 = key.split('*fullDate*');
2838
+ _dataParams3.forEach(function (value, index) {
2839
+ if (index === 0) {
2840
+ params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
2841
+ } else {
2842
+ params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
2843
+ }
2844
+ });
2845
+ delete params[key];
2846
+ } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
2847
+ var _dataParams4 = key.split('*checkBox*');
2848
+ if (element) {
2849
+ params[_dataParams4[0]] = 0;
2832
2850
  }
2833
- });
2834
- delete params[key];
2835
- } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
2836
- var _dataParams4 = key.split('*checkBox*');
2837
- if (element) {
2838
- params[_dataParams4[0]] = 0;
2839
- }
2840
- delete params[key];
2841
- } else if (element && key.indexOf('*cascader*') >= 0) {
2842
- var _dataParams5 = key.split('*cascader*');
2843
- params[_dataParams5[0]] = element[element.length - 1];
2844
- delete params[key];
2845
- } else if (element && key.indexOf('*date*') >= 0) {
2846
- var _dataParams6 = key.split('*date*');
2847
- _dataParams6.forEach(function (value, index) {
2848
- if (index === 0) {
2849
- params[value] = moment(element[index]).format('YYYY-MM-DD');
2851
+ delete params[key];
2852
+ } else if (element && key.indexOf('*cascader*') >= 0) {
2853
+ var _dataParams5 = key.split('*cascader*');
2854
+ params[_dataParams5[0]] = element[element.length - 1];
2855
+ delete params[key];
2856
+ } else if (element && key.indexOf('*date*') >= 0) {
2857
+ var _dataParams6 = key.split('*date*');
2858
+ _dataParams6.forEach(function (value, index) {
2859
+ if (index === 0) {
2860
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
2861
+ } else {
2862
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
2863
+ }
2864
+ });
2865
+ delete params[key];
2866
+ } else if (element && key.indexOf('*') >= 0) {
2867
+ var _dataParams7 = key.split('*');
2868
+ _dataParams7.forEach(function (value, index) {
2869
+ params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
2870
+ });
2871
+ delete params[key];
2872
+ } else if (element && key.indexOf('_selectNumberRange') >= 0) {
2873
+ // key = xxxxx_selectNumberRange qp-xxxxx-gt
2874
+ var _dataParams8 = key.split('_selectNumberRange')[0];
2875
+ if (params[key][0] === 'range') {
2876
+ if (params[key][1][0]) {
2877
+ params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
2878
+ }
2879
+ if (params[key][1][1]) {
2880
+ params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
2881
+ }
2850
2882
  } else {
2851
- params[value] = moment(element[index]).format('YYYY-MM-DD');
2852
- }
2853
- });
2854
- delete params[key];
2855
- } else if (element && key.indexOf('*') >= 0) {
2856
- var _dataParams7 = key.split('*');
2857
- _dataParams7.forEach(function (value, index) {
2858
- params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
2859
- });
2860
- delete params[key];
2861
- } else if (element && key.indexOf('_selectNumberRange') >= 0) {
2862
- // key = xxxxx_selectNumberRange qp-xxxxx-gt
2863
- var _dataParams8 = key.split('_selectNumberRange')[0];
2864
- if (params[key][0] === 'range') {
2865
- if (params[key][1][0]) {
2866
- params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
2883
+ params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
2867
2884
  }
2868
- if (params[key][1][1]) {
2869
- params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
2870
- }
2871
- } else {
2872
- params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
2885
+ delete params[key];
2886
+ } else if (Array.isArray(element)) {
2887
+ params[key] = element.join(',');
2888
+ } else if (element == null || element === undefined || String(element).trim() === '') {
2889
+ delete params[key];
2873
2890
  }
2874
- delete params[key];
2875
- } else if (Array.isArray(element)) {
2876
- params[key] = element.join(',');
2877
- } else if (element == null || element === undefined || String(element).trim() === '') {
2878
- delete params[key];
2879
- }
2891
+ })();
2880
2892
  }
2881
- };
2882
- for (var key in params) {
2883
- _loop();
2884
2893
  }
2885
2894
  var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
2886
2895
  pageSize: pageSize,
@@ -4536,74 +4545,76 @@ var AddSelect = function AddSelect(props) {
4536
4545
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
4537
4546
  var result;
4538
4547
  return _regeneratorRuntime().wrap(function _callee$(_context) {
4539
- while (1) switch (_context.prev = _context.next) {
4540
- case 0:
4541
- if (!(bType == 'skc' && tList.some(function (i) {
4542
- return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
4543
- }))) {
4544
- _context.next = 3;
4545
- break;
4546
- }
4547
- antd.message.warning('相同skc配码不可设置相同哦');
4548
- return _context.abrupt("return", false);
4549
- case 3:
4550
- if (!(bType == 'spu')) {
4551
- _context.next = 26;
4552
- break;
4553
- }
4554
- if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
4555
- return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
4556
- }))) {
4557
- _context.next = 7;
4558
- break;
4559
- }
4560
- antd.message.warning('相同商品相同配码颜色不可设置相同哦');
4561
- return _context.abrupt("return", false);
4562
- case 7:
4563
- if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
4564
- _context.next = 10;
4565
- break;
4566
- }
4567
- antd.message.warning('请先选择颜色!');
4568
- return _context.abrupt("return", false);
4569
- case 10:
4570
- if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
4571
- return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
4572
- }))) {
4573
- _context.next = 13;
4574
- break;
4575
- }
4576
- antd.message.warning('相同商品相同颜色配码不可设置相同哦');
4577
- return _context.abrupt("return", false);
4578
- case 13:
4579
- if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
4580
- _context.next = 26;
4548
+ while (1) {
4549
+ switch (_context.prev = _context.next) {
4550
+ case 0:
4551
+ if (!(bType == 'skc' && tList.some(function (i) {
4552
+ return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
4553
+ }))) {
4554
+ _context.next = 3;
4555
+ break;
4556
+ }
4557
+ antd.message.warning('相同skc配码不可设置相同哦');
4558
+ return _context.abrupt("return", false);
4559
+ case 3:
4560
+ if (!(bType == 'spu')) {
4561
+ _context.next = 26;
4562
+ break;
4563
+ }
4564
+ if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
4565
+ return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
4566
+ }))) {
4567
+ _context.next = 7;
4568
+ break;
4569
+ }
4570
+ antd.message.warning('相同商品相同配码颜色不可设置相同哦');
4571
+ return _context.abrupt("return", false);
4572
+ case 7:
4573
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
4574
+ _context.next = 10;
4575
+ break;
4576
+ }
4577
+ antd.message.warning('请先选择颜色!');
4578
+ return _context.abrupt("return", false);
4579
+ case 10:
4580
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
4581
+ return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
4582
+ }))) {
4583
+ _context.next = 13;
4584
+ break;
4585
+ }
4586
+ antd.message.warning('相同商品相同颜色配码不可设置相同哦');
4587
+ return _context.abrupt("return", false);
4588
+ case 13:
4589
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
4590
+ _context.next = 26;
4591
+ break;
4592
+ }
4593
+ result = true;
4594
+ _context.prev = 15;
4595
+ _context.next = 18;
4596
+ return checkSpuMatchCode({
4597
+ skcCode: recordItem[recordKey],
4598
+ matchingCode: changeValue,
4599
+ ext1: recordItem.colorName
4600
+ });
4601
+ case 18:
4602
+ result = _context.sent;
4603
+ result = true;
4604
+ _context.next = 25;
4581
4605
  break;
4582
- }
4583
- result = true;
4584
- _context.prev = 15;
4585
- _context.next = 18;
4586
- return checkSpuMatchCode({
4587
- skcCode: recordItem[recordKey],
4588
- matchingCode: changeValue,
4589
- ext1: recordItem.colorName
4590
- });
4591
- case 18:
4592
- result = _context.sent;
4593
- result = true;
4594
- _context.next = 25;
4595
- break;
4596
- case 22:
4597
- _context.prev = 22;
4598
- _context.t0 = _context["catch"](15);
4599
- result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
4600
- case 25:
4601
- return _context.abrupt("return", result);
4602
- case 26:
4603
- return _context.abrupt("return", true);
4604
- case 27:
4605
- case "end":
4606
- return _context.stop();
4606
+ case 22:
4607
+ _context.prev = 22;
4608
+ _context.t0 = _context["catch"](15);
4609
+ result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
4610
+ case 25:
4611
+ return _context.abrupt("return", result);
4612
+ case 26:
4613
+ return _context.abrupt("return", true);
4614
+ case 27:
4615
+ case "end":
4616
+ return _context.stop();
4617
+ }
4607
4618
  }
4608
4619
  }, _callee, null, [[15, 22]]);
4609
4620
  }));
@@ -4795,27 +4806,29 @@ var AddSelect = function AddSelect(props) {
4795
4806
  var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
4796
4807
  var isConformToTheRules, newPopValue;
4797
4808
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
4798
- while (1) switch (_context2.prev = _context2.next) {
4799
- case 0:
4800
- _context2.next = 2;
4801
- return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
4802
- case 2:
4803
- isConformToTheRules = _context2.sent;
4804
- if (isConformToTheRules) {
4805
- record[item.dataIndex] = value;
4806
- } else {
4807
- record[item.dataIndex] = null;
4808
- }
4809
- newPopValue = popvalue.map(function (i, innerIndex) {
4810
- if (innerIndex == index) {
4811
- i[item.dataIndex] = record[item.dataIndex];
4809
+ while (1) {
4810
+ switch (_context2.prev = _context2.next) {
4811
+ case 0:
4812
+ _context2.next = 2;
4813
+ return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
4814
+ case 2:
4815
+ isConformToTheRules = _context2.sent;
4816
+ if (isConformToTheRules) {
4817
+ record[item.dataIndex] = value;
4818
+ } else {
4819
+ record[item.dataIndex] = null;
4812
4820
  }
4813
- return i;
4814
- });
4815
- setPopValue(newPopValue);
4816
- case 6:
4817
- case "end":
4818
- return _context2.stop();
4821
+ newPopValue = popvalue.map(function (i, innerIndex) {
4822
+ if (innerIndex == index) {
4823
+ i[item.dataIndex] = record[item.dataIndex];
4824
+ }
4825
+ return i;
4826
+ });
4827
+ setPopValue(newPopValue);
4828
+ case 6:
4829
+ case "end":
4830
+ return _context2.stop();
4831
+ }
4819
4832
  }
4820
4833
  }, _callee2);
4821
4834
  }));
@@ -4875,85 +4888,84 @@ var AddSelect = function AddSelect(props) {
4875
4888
  });
4876
4889
  }
4877
4890
  // 数组对象处理,对带有特殊标记的name进行处理
4878
- var _loop = function _loop() {
4891
+ for (var key in params) {
4879
4892
  if (Object.prototype.hasOwnProperty.call(params, key)) {
4880
- var element = params[key];
4881
- if (element && key.indexOf('*number*') >= 0) {
4882
- var dataParams = key.split('*number*');
4883
- dataParams.forEach(function (value, index) {
4884
- params[value] = element[index];
4885
- });
4886
- delete params[key];
4887
- } else if (element && key.indexOf('*address*') >= 0) {
4888
- var _dataParams = key.split('*address*');
4889
- _dataParams.forEach(function (value, index) {
4890
- params[value] = element.PCDCode[index];
4891
- });
4892
- delete params[key];
4893
- } else if (element && key.indexOf('*costType*') >= 0) {
4894
- var _dataParams2 = key.split('*costType*');
4895
- // eslint-disable-next-line prefer-destructuring
4896
- params[_dataParams2[0]] = element[1];
4897
- delete params[key];
4898
- } else if (element && key.indexOf('*fullDate*') >= 0) {
4899
- var _dataParams3 = key.split('*fullDate*');
4900
- _dataParams3.forEach(function (value, index) {
4901
- if (index === 0) {
4902
- params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
4903
- } else {
4904
- params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
4893
+ (function () {
4894
+ var element = params[key];
4895
+ if (element && key.indexOf('*number*') >= 0) {
4896
+ var dataParams = key.split('*number*');
4897
+ dataParams.forEach(function (value, index) {
4898
+ params[value] = element[index];
4899
+ });
4900
+ delete params[key];
4901
+ } else if (element && key.indexOf('*address*') >= 0) {
4902
+ var _dataParams = key.split('*address*');
4903
+ _dataParams.forEach(function (value, index) {
4904
+ params[value] = element.PCDCode[index];
4905
+ });
4906
+ delete params[key];
4907
+ } else if (element && key.indexOf('*costType*') >= 0) {
4908
+ var _dataParams2 = key.split('*costType*');
4909
+ // eslint-disable-next-line prefer-destructuring
4910
+ params[_dataParams2[0]] = element[1];
4911
+ delete params[key];
4912
+ } else if (element && key.indexOf('*fullDate*') >= 0) {
4913
+ var _dataParams3 = key.split('*fullDate*');
4914
+ _dataParams3.forEach(function (value, index) {
4915
+ if (index === 0) {
4916
+ params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
4917
+ } else {
4918
+ params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
4919
+ }
4920
+ });
4921
+ delete params[key];
4922
+ } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
4923
+ var _dataParams4 = key.split('*checkBox*');
4924
+ if (element) {
4925
+ params[_dataParams4[0]] = 0;
4905
4926
  }
4906
- });
4907
- delete params[key];
4908
- } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
4909
- var _dataParams4 = key.split('*checkBox*');
4910
- if (element) {
4911
- params[_dataParams4[0]] = 0;
4912
- }
4913
- delete params[key];
4914
- } else if (element && key.indexOf('*cascader*') >= 0) {
4915
- var _dataParams5 = key.split('*cascader*');
4916
- params[_dataParams5[0]] = element[element.length - 1];
4917
- delete params[key];
4918
- } else if (element && key.indexOf('*date*') >= 0) {
4919
- var _dataParams6 = key.split('*date*');
4920
- _dataParams6.forEach(function (value, index) {
4921
- if (index === 0) {
4922
- params[value] = moment(element[index]).format('YYYY-MM-DD');
4927
+ delete params[key];
4928
+ } else if (element && key.indexOf('*cascader*') >= 0) {
4929
+ var _dataParams5 = key.split('*cascader*');
4930
+ params[_dataParams5[0]] = element[element.length - 1];
4931
+ delete params[key];
4932
+ } else if (element && key.indexOf('*date*') >= 0) {
4933
+ var _dataParams6 = key.split('*date*');
4934
+ _dataParams6.forEach(function (value, index) {
4935
+ if (index === 0) {
4936
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
4937
+ } else {
4938
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
4939
+ }
4940
+ });
4941
+ delete params[key];
4942
+ } else if (element && key.indexOf('*') >= 0) {
4943
+ var _dataParams7 = key.split('*');
4944
+ _dataParams7.forEach(function (value, index) {
4945
+ params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
4946
+ });
4947
+ delete params[key];
4948
+ } else if (element && key.indexOf('_selectNumberRange') >= 0) {
4949
+ // key = xxxxx_selectNumberRange qp-xxxxx-gt
4950
+ var _dataParams8 = key.split('_selectNumberRange')[0];
4951
+ if (params[key][0] === 'range') {
4952
+ if (params[key][1][0]) {
4953
+ params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
4954
+ }
4955
+ if (params[key][1][1]) {
4956
+ params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
4957
+ }
4923
4958
  } else {
4924
- params[value] = moment(element[index]).format('YYYY-MM-DD');
4925
- }
4926
- });
4927
- delete params[key];
4928
- } else if (element && key.indexOf('*') >= 0) {
4929
- var _dataParams7 = key.split('*');
4930
- _dataParams7.forEach(function (value, index) {
4931
- params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
4932
- });
4933
- delete params[key];
4934
- } else if (element && key.indexOf('_selectNumberRange') >= 0) {
4935
- // key = xxxxx_selectNumberRange qp-xxxxx-gt
4936
- var _dataParams8 = key.split('_selectNumberRange')[0];
4937
- if (params[key][0] === 'range') {
4938
- if (params[key][1][0]) {
4939
- params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
4940
- }
4941
- if (params[key][1][1]) {
4942
- params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
4959
+ params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
4943
4960
  }
4944
- } else {
4945
- params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
4961
+ delete params[key];
4962
+ } else if (Array.isArray(element)) {
4963
+ params[key] = element.join(',');
4964
+ } else if (element == null || element === undefined || String(element).trim() === '') {
4965
+ delete params[key];
4946
4966
  }
4947
- delete params[key];
4948
- } else if (Array.isArray(element)) {
4949
- params[key] = element.join(',');
4950
- } else if (element == null || element === undefined || String(element).trim() === '') {
4951
- delete params[key];
4952
- }
4967
+ })();
4953
4968
  }
4954
- };
4955
- for (var key in params) {
4956
- _loop();
4957
4969
  }
4958
4970
  var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
4959
4971
  pageSize: pageSize,
@@ -6408,79 +6420,81 @@ var BillEntry = function BillEntry(_ref3) {
6408
6420
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
6409
6421
  var canEntryObject, _canEntryObject$error, messageInfo;
6410
6422
  return _regeneratorRuntime().wrap(function _callee$(_context) {
6411
- while (1) switch (_context.prev = _context.next) {
6412
- case 0:
6413
- if (data === null || data === void 0 ? void 0 : data.length) {
6414
- _context.next = 3;
6415
- break;
6416
- }
6417
- antd.message.warning('至少录入一条数据');
6418
- return _context.abrupt("return");
6419
- case 3:
6420
- if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6421
- return d.skuCode && d.name;
6422
- })) {
6423
- _context.next = 6;
6424
- break;
6425
- }
6426
- antd.message.warning('请选择商品!');
6427
- return _context.abrupt("return");
6428
- case 6:
6429
- if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6430
- return d.count;
6431
- })) {
6432
- _context.next = 9;
6433
- break;
6434
- }
6435
- antd.message.warning('请填写商品数量!');
6436
- return _context.abrupt("return");
6437
- case 9:
6438
- _context.next = 11;
6439
- return isSkuCanEntry(data);
6440
- case 11:
6441
- canEntryObject = _context.sent;
6442
- if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
6443
- _context.next = 16;
6444
- break;
6445
- }
6446
- 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) {
6447
- return /*#__PURE__*/React__default['default'].createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
6448
- }));
6449
- messageInfo && antd.message.warning({
6450
- content: messageInfo,
6451
- duration: 6
6452
- });
6453
- return _context.abrupt("return");
6454
- case 16:
6455
- setLoading(true);
6456
- onSaveCallback(data).then(function (res) {
6457
- {
6458
- var _Object$keys;
6459
- var initSuccessMessage = '保存成功';
6460
- var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
6461
- if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
6462
- (rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? antd.message.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
6463
- } else {
6464
- antd.message.success(initSuccessMessage);
6465
- }
6423
+ while (1) {
6424
+ switch (_context.prev = _context.next) {
6425
+ case 0:
6426
+ if (data === null || data === void 0 ? void 0 : data.length) {
6427
+ _context.next = 3;
6428
+ break;
6466
6429
  }
6467
- setLoading(false);
6468
- }).catch(function (Error) {
6469
- antd.message.error(Error);
6470
- setLoading(false);
6471
- });
6472
- case 18:
6473
- case "end":
6474
- return _context.stop();
6475
- }
6476
- }, _callee);
6477
- }));
6478
- return function handleSubmit() {
6479
- return _ref4.apply(this, arguments);
6480
- };
6481
- }();
6482
- var setShowColumnsCallback = function setShowColumnsCallback(newColumns) {
6483
- setShowColumns(_toConsumableArray(newColumns));
6430
+ antd.message.warning('至少录入一条数据');
6431
+ return _context.abrupt("return");
6432
+ case 3:
6433
+ if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6434
+ return d.skuCode && d.name;
6435
+ })) {
6436
+ _context.next = 6;
6437
+ break;
6438
+ }
6439
+ antd.message.warning('请选择商品!');
6440
+ return _context.abrupt("return");
6441
+ case 6:
6442
+ if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6443
+ return d.count;
6444
+ })) {
6445
+ _context.next = 9;
6446
+ break;
6447
+ }
6448
+ antd.message.warning('请填写商品数量!');
6449
+ return _context.abrupt("return");
6450
+ case 9:
6451
+ _context.next = 11;
6452
+ return isSkuCanEntry(data);
6453
+ case 11:
6454
+ canEntryObject = _context.sent;
6455
+ if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
6456
+ _context.next = 16;
6457
+ break;
6458
+ }
6459
+ 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) {
6460
+ return /*#__PURE__*/React__default['default'].createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
6461
+ }));
6462
+ messageInfo && antd.message.warning({
6463
+ content: messageInfo,
6464
+ duration: 6
6465
+ });
6466
+ return _context.abrupt("return");
6467
+ case 16:
6468
+ setLoading(true);
6469
+ onSaveCallback(data).then(function (res) {
6470
+ {
6471
+ var _Object$keys;
6472
+ var initSuccessMessage = '保存成功';
6473
+ var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
6474
+ if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
6475
+ (rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? antd.message.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
6476
+ } else {
6477
+ antd.message.success(initSuccessMessage);
6478
+ }
6479
+ }
6480
+ setLoading(false);
6481
+ }).catch(function (Error) {
6482
+ antd.message.error(Error);
6483
+ setLoading(false);
6484
+ });
6485
+ case 18:
6486
+ case "end":
6487
+ return _context.stop();
6488
+ }
6489
+ }
6490
+ }, _callee);
6491
+ }));
6492
+ return function handleSubmit() {
6493
+ return _ref4.apply(this, arguments);
6494
+ };
6495
+ }();
6496
+ var setShowColumnsCallback = function setShowColumnsCallback(newColumns) {
6497
+ setShowColumns(_toConsumableArray(newColumns));
6484
6498
  };
6485
6499
  var handleResize = function handleResize(arr, index, callback) {
6486
6500
  return function (_, _ref5) {
@@ -9606,7 +9620,7 @@ var CommodityEntry = function CommodityEntry(props) {
9606
9620
  * @LastEditTime: 2022-01-14 17:17:26
9607
9621
  * @LastEditors: rodchen
9608
9622
  */
9609
- var index$2 = (function (storageKeyString) {
9623
+ var index$1 = (function (storageKeyString) {
9610
9624
  var seconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
9611
9625
  var tipsCallFunction = arguments.length > 2 ? arguments[2] : undefined;
9612
9626
  if (typeof seconds !== 'number') throw new Error('seconds should be number');
@@ -9724,42 +9738,44 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
9724
9738
  var _ctx$form;
9725
9739
  var resData, coverData, data, dataList;
9726
9740
  return _regeneratorRuntime().wrap(function _callee$(_context) {
9727
- while (1) switch (_context.prev = _context.next) {
9728
- case 0:
9729
- resData = (res === null || res === void 0 ? void 0 : res.data) || [];
9730
- if (!(resData.status === '0' || resData.code === '000000')) {
9731
- _context.next = 13;
9741
+ while (1) {
9742
+ switch (_context.prev = _context.next) {
9743
+ case 0:
9744
+ resData = (res === null || res === void 0 ? void 0 : res.data) || [];
9745
+ if (!(resData.status === '0' || resData.code === '000000')) {
9746
+ _context.next = 13;
9747
+ break;
9748
+ }
9749
+ data = resData.data;
9750
+ if (!remoteSource.converter) {
9751
+ _context.next = 9;
9752
+ break;
9753
+ }
9754
+ _context.next = 6;
9755
+ return remoteSource.converter({
9756
+ data: [data]
9757
+ });
9758
+ case 6:
9759
+ coverData = _context.sent;
9760
+ _context.next = 11;
9732
9761
  break;
9733
- }
9734
- data = resData.data;
9735
- if (!remoteSource.converter) {
9736
- _context.next = 9;
9762
+ case 9:
9763
+ dataList = data && Array.isArray(data) ? data : data && [data] || [];
9764
+ coverData = dataList.length && dataList.map(function (ites) {
9765
+ return mapSearchTree(ites);
9766
+ }) || [];
9767
+ case 11:
9768
+ _context.next = 14;
9737
9769
  break;
9738
- }
9739
- _context.next = 6;
9740
- return remoteSource.converter({
9741
- data: [data]
9742
- });
9743
- case 6:
9744
- coverData = _context.sent;
9745
- _context.next = 11;
9746
- break;
9747
- case 9:
9748
- dataList = data && Array.isArray(data) ? data : data && [data] || [];
9749
- coverData = dataList.length && dataList.map(function (ites) {
9750
- return mapSearchTree(ites);
9751
- }) || [];
9752
- case 11:
9753
- _context.next = 14;
9754
- break;
9755
- case 13:
9756
- coverData = [];
9757
- case 14:
9758
- setTreeData(coverData);
9759
- ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
9760
- case 16:
9761
- case "end":
9762
- return _context.stop();
9770
+ case 13:
9771
+ coverData = [];
9772
+ case 14:
9773
+ setTreeData(coverData);
9774
+ ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
9775
+ case 16:
9776
+ case "end":
9777
+ return _context.stop();
9778
+ }
9763
9779
  }
9764
9780
  }, _callee);
9765
9781
  }));
@@ -9960,7 +9976,7 @@ var BusinessTreeSearchSelect$1 = /*#__PURE__*/React__default['default'].memo(Bus
9960
9976
  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";
9961
9977
  styleInject(css_248z$8);
9962
9978
 
9963
- var index$3 = (function (props) {
9979
+ var index$2 = (function (props) {
9964
9980
  var _props$formStatusMapp = props.formStatusMapping,
9965
9981
  formStatusMapping = _props$formStatusMapp === void 0 ? [] : _props$formStatusMapp;
9966
9982
  return /*#__PURE__*/React__default['default'].createElement("div", {
@@ -11384,7 +11400,7 @@ var iconMap = {
11384
11400
  src: moreIcon
11385
11401
  })
11386
11402
  };
11387
- var index$4 = (function (props) {
11403
+ var index$3 = (function (props) {
11388
11404
  var _useLocation = umi.useLocation(),
11389
11405
  pathname = _useLocation.pathname;
11390
11406
  var _useState = React.useState(pathname + 'id'),
@@ -11601,7 +11617,7 @@ var css_248z$d = ".home_page_head {\n height: 54px;\n display: flex;\n justif
11601
11617
  styleInject(css_248z$d);
11602
11618
 
11603
11619
  var _excluded$c = ["children"];
11604
- var index$5 = (function (props) {
11620
+ var index$4 = (function (props) {
11605
11621
  var _useLocation = umi.useLocation(),
11606
11622
  pathname = _useLocation.pathname;
11607
11623
  var _useState = React.useState(pathname + 'id'),
@@ -13877,19 +13893,21 @@ function _outLogin() {
13877
13893
  _outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
13878
13894
  var res;
13879
13895
  return _regeneratorRuntime().wrap(function _callee$(_context) {
13880
- while (1) switch (_context.prev = _context.next) {
13881
- case 0:
13882
- _context.next = 2;
13883
- return axios__default['default']({
13884
- url: '/user/web/loginOut',
13885
- method: 'GET'
13886
- });
13887
- case 2:
13888
- res = _context.sent;
13889
- return _context.abrupt("return", res);
13890
- case 4:
13891
- case "end":
13892
- return _context.stop();
13896
+ while (1) {
13897
+ switch (_context.prev = _context.next) {
13898
+ case 0:
13899
+ _context.next = 2;
13900
+ return axios__default['default']({
13901
+ url: '/user/web/loginOut',
13902
+ method: 'GET'
13903
+ });
13904
+ case 2:
13905
+ res = _context.sent;
13906
+ return _context.abrupt("return", res);
13907
+ case 4:
13908
+ case "end":
13909
+ return _context.stop();
13910
+ }
13893
13911
  }
13894
13912
  }, _callee);
13895
13913
  }));
@@ -14018,29 +14036,31 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
14018
14036
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
14019
14037
  var sessionId;
14020
14038
  return _regeneratorRuntime().wrap(function _callee$(_context) {
14021
- while (1) switch (_context.prev = _context.next) {
14022
- case 0:
14023
- _context.next = 2;
14024
- return getSessionId();
14025
- case 2:
14026
- sessionId = _context.sent;
14027
- _context.next = 5;
14028
- return outLogin({
14029
- sessionId: sessionId
14030
- });
14031
- case 5:
14032
- // @ts-ignore
14033
- if (BUILD_TYPE) {
14034
- antd.message.success('退出登录成功');
14035
- umi.history.replace({
14036
- pathname: '/user/login'
14039
+ while (1) {
14040
+ switch (_context.prev = _context.next) {
14041
+ case 0:
14042
+ _context.next = 2;
14043
+ return getSessionId();
14044
+ case 2:
14045
+ sessionId = _context.sent;
14046
+ _context.next = 5;
14047
+ return outLogin({
14048
+ sessionId: sessionId
14037
14049
  });
14038
- } else {
14039
- setLoginOutPath();
14040
- }
14041
- case 6:
14042
- case "end":
14043
- return _context.stop();
14050
+ case 5:
14051
+ // @ts-ignore
14052
+ if (BUILD_TYPE) {
14053
+ antd.message.success('退出登录成功');
14054
+ umi.history.replace({
14055
+ pathname: '/user/login'
14056
+ });
14057
+ } else {
14058
+ setLoginOutPath();
14059
+ }
14060
+ case 6:
14061
+ case "end":
14062
+ return _context.stop();
14063
+ }
14044
14064
  }
14045
14065
  }, _callee);
14046
14066
  }));
@@ -15868,7 +15888,6 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
15868
15888
  showSubMenu: isShow
15869
15889
  });
15870
15890
  }, 500);
15871
- //设置tabs标签左右滚动
15872
15891
  _this.setTabNavTransLate = function (num) {
15873
15892
  var _document$getElementB, _document$getElementB2, _document$getElementB3, _document$getElementB4, _document$defaultView;
15874
15893
  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];
@@ -16549,12 +16568,14 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
16549
16568
  request: function () {
16550
16569
  var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
16551
16570
  return _regeneratorRuntime().wrap(function _callee$(_context) {
16552
- while (1) switch (_context.prev = _context.next) {
16553
- case 0:
16554
- return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
16555
- case 1:
16556
- case "end":
16557
- return _context.stop();
16571
+ while (1) {
16572
+ switch (_context.prev = _context.next) {
16573
+ case 0:
16574
+ return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
16575
+ case 1:
16576
+ case "end":
16577
+ return _context.stop();
16578
+ }
16558
16579
  }
16559
16580
  }, _callee);
16560
16581
  }));
@@ -16692,7 +16713,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
16692
16713
  }]);
16693
16714
  return WrapperComponent;
16694
16715
  }(React__default['default'].Component);
16695
- var index$6 = (function (props) {
16716
+ var index$5 = (function (props) {
16696
16717
  var _useModel = umi.useModel('@@initialState'),
16697
16718
  _useModel$initialStat = _useModel.initialState,
16698
16719
  initialState = _useModel$initialStat === void 0 ? {} : _useModel$initialStat;
@@ -16933,7 +16954,7 @@ var FixedScrollBar = function FixedScrollBar(_ref, ref) {
16933
16954
  };
16934
16955
  var FixedScrollBar$1 = /*#__PURE__*/React__default['default'].forwardRef(FixedScrollBar);
16935
16956
 
16936
- var index$7 = /*#__PURE__*/React.forwardRef(function (props, ref) {
16957
+ var index$6 = /*#__PURE__*/React.forwardRef(function (props, ref) {
16937
16958
  var _useState = React.useState(false),
16938
16959
  _useState2 = _slicedToArray(_useState, 2),
16939
16960
  show = _useState2[0],
@@ -24226,26 +24247,28 @@ var valueType = {
24226
24247
  var getDynamicDict = /*#__PURE__*/function () {
24227
24248
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
24228
24249
  return _regeneratorRuntime().wrap(function _callee$(_context) {
24229
- while (1) switch (_context.prev = _context.next) {
24230
- case 0:
24231
- _context.next = 2;
24232
- return bssula.request({
24233
- url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
24234
- converter: function converter(_ref2) {
24235
- var data = _ref2.data;
24236
- return data === null || data === void 0 ? void 0 : data.map(function (d) {
24237
- return {
24238
- text: d.name,
24239
- value: d.code || d.brandCode
24240
- };
24241
- });
24242
- }
24243
- });
24244
- case 2:
24245
- return _context.abrupt("return", _context.sent);
24246
- case 3:
24247
- case "end":
24248
- return _context.stop();
24250
+ while (1) {
24251
+ switch (_context.prev = _context.next) {
24252
+ case 0:
24253
+ _context.next = 2;
24254
+ return bssula.request({
24255
+ url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
24256
+ converter: function converter(_ref2) {
24257
+ var data = _ref2.data;
24258
+ return data === null || data === void 0 ? void 0 : data.map(function (d) {
24259
+ return {
24260
+ text: d.name,
24261
+ value: d.code || d.brandCode
24262
+ };
24263
+ });
24264
+ }
24265
+ });
24266
+ case 2:
24267
+ return _context.abrupt("return", _context.sent);
24268
+ case 3:
24269
+ case "end":
24270
+ return _context.stop();
24271
+ }
24249
24272
  }
24250
24273
  }, _callee);
24251
24274
  }));
@@ -24295,53 +24318,55 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
24295
24318
  ahooks.useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
24296
24319
  var _ref$current, source;
24297
24320
  return _regeneratorRuntime().wrap(function _callee$(_context) {
24298
- while (1) switch (_context.prev = _context.next) {
24299
- case 0:
24300
- _context.next = 2;
24301
- return setIsShowAndType(function (prev) {
24302
- if (record.inputType === 20 || record.inputType === 30) {
24303
- return {
24304
- isShow: true,
24305
- singleOrMultiple: record.inputType,
24306
- type: record.choiceType
24307
- };
24321
+ while (1) {
24322
+ switch (_context.prev = _context.next) {
24323
+ case 0:
24324
+ _context.next = 2;
24325
+ return setIsShowAndType(function (prev) {
24326
+ if (record.inputType === 20 || record.inputType === 30) {
24327
+ return {
24328
+ isShow: true,
24329
+ singleOrMultiple: record.inputType,
24330
+ type: record.choiceType
24331
+ };
24332
+ }
24333
+ return prev;
24334
+ });
24335
+ case 2:
24336
+ if (!record.dictionaryCode) {
24337
+ _context.next = 17;
24338
+ break;
24308
24339
  }
24309
- return prev;
24310
- });
24311
- case 2:
24312
- if (!record.dictionaryCode) {
24313
- _context.next = 17;
24314
- break;
24315
- }
24316
- if (!(record.choiceType == 20)) {
24317
- _context.next = 7;
24340
+ if (!(record.choiceType == 20)) {
24341
+ _context.next = 7;
24342
+ break;
24343
+ }
24344
+ _context.t0 = getDictionarySource(record.dictionaryCode);
24345
+ _context.next = 15;
24318
24346
  break;
24319
- }
24320
- _context.t0 = getDictionarySource(record.dictionaryCode);
24321
- _context.next = 15;
24322
- break;
24323
- case 7:
24324
- if (!(record.choiceType == 30)) {
24325
- _context.next = 13;
24347
+ case 7:
24348
+ if (!(record.choiceType == 30)) {
24349
+ _context.next = 13;
24350
+ break;
24351
+ }
24352
+ _context.next = 10;
24353
+ return getDynamicDict(record.dictionaryCode);
24354
+ case 10:
24355
+ _context.t1 = _context.sent;
24356
+ _context.next = 14;
24326
24357
  break;
24327
- }
24328
- _context.next = 10;
24329
- return getDynamicDict(record.dictionaryCode);
24330
- case 10:
24331
- _context.t1 = _context.sent;
24332
- _context.next = 14;
24333
- break;
24334
- case 13:
24335
- _context.t1 = [];
24336
- case 14:
24337
- _context.t0 = _context.t1;
24338
- case 15:
24339
- source = _context.t0;
24340
- // @ts-ignore
24341
- ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
24342
- case 17:
24343
- case "end":
24344
- return _context.stop();
24358
+ case 13:
24359
+ _context.t1 = [];
24360
+ case 14:
24361
+ _context.t0 = _context.t1;
24362
+ case 15:
24363
+ source = _context.t0;
24364
+ // @ts-ignore
24365
+ ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
24366
+ case 17:
24367
+ case "end":
24368
+ return _context.stop();
24369
+ }
24345
24370
  }
24346
24371
  }, _callee);
24347
24372
  })));
@@ -24409,28 +24434,30 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
24409
24434
  var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
24410
24435
  var form, values, name, relates, source;
24411
24436
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
24412
- while (1) switch (_context2.prev = _context2.next) {
24413
- case 0:
24414
- form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
24415
- if (values[0]) {
24437
+ while (1) {
24438
+ switch (_context2.prev = _context2.next) {
24439
+ case 0:
24440
+ form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
24441
+ if (values[0]) {
24442
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
24443
+ form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
24444
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
24445
+ }
24446
+ if (!values[1]) {
24447
+ _context2.next = 9;
24448
+ break;
24449
+ }
24450
+ _context2.next = 5;
24451
+ return getDynamicDict(record.dictionaryCode || values[1]);
24452
+ case 5:
24453
+ source = _context2.sent;
24416
24454
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
24417
24455
  form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
24418
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
24419
- }
24420
- if (!values[1]) {
24421
- _context2.next = 9;
24422
- break;
24423
- }
24424
- _context2.next = 5;
24425
- return getDynamicDict(record.dictionaryCode || values[1]);
24426
- case 5:
24427
- source = _context2.sent;
24428
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
24429
- form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
24430
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
24431
- case 9:
24432
- case "end":
24433
- return _context2.stop();
24456
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
24457
+ case 9:
24458
+ case "end":
24459
+ return _context2.stop();
24460
+ }
24434
24461
  }
24435
24462
  }, _callee2);
24436
24463
  }));
@@ -24890,41 +24917,43 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
24890
24917
  var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
24891
24918
  var values, name, form, source;
24892
24919
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
24893
- while (1) switch (_context3.prev = _context3.next) {
24894
- case 0:
24895
- values = _ref10.values, name = _ref10.name, form = _ref10.form;
24896
- if (values[1] === 40) {
24897
- form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
24898
- form.setFieldVisible(name, false);
24899
- }
24900
- if (!(values[0] === 30)) {
24901
- _context3.next = 10;
24902
- break;
24903
- }
24904
- _context3.next = 5;
24905
- return bssula.request({
24906
- url: '/basic/dictDynamicItem/queryList',
24907
- converter: function converter(_ref11) {
24908
- var data = _ref11.data;
24909
- return data === null || data === void 0 ? void 0 : data.map(function (d) {
24910
- return {
24911
- text: d.dictCode,
24912
- value: d.dictCode
24913
- };
24914
- });
24920
+ while (1) {
24921
+ switch (_context3.prev = _context3.next) {
24922
+ case 0:
24923
+ values = _ref10.values, name = _ref10.name, form = _ref10.form;
24924
+ if (values[1] === 40) {
24925
+ form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
24926
+ form.setFieldVisible(name, false);
24915
24927
  }
24916
- });
24917
- case 5:
24918
- source = _context3.sent;
24919
- form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
24920
- form.setFieldVisible(name, true);
24921
- _context3.next = 11;
24922
- break;
24923
- case 10:
24924
- form.setFieldVisible(name, false);
24925
- case 11:
24926
- case "end":
24927
- return _context3.stop();
24928
+ if (!(values[0] === 30)) {
24929
+ _context3.next = 10;
24930
+ break;
24931
+ }
24932
+ _context3.next = 5;
24933
+ return bssula.request({
24934
+ url: '/basic/dictDynamicItem/queryList',
24935
+ converter: function converter(_ref11) {
24936
+ var data = _ref11.data;
24937
+ return data === null || data === void 0 ? void 0 : data.map(function (d) {
24938
+ return {
24939
+ text: d.dictCode,
24940
+ value: d.dictCode
24941
+ };
24942
+ });
24943
+ }
24944
+ });
24945
+ case 5:
24946
+ source = _context3.sent;
24947
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
24948
+ form.setFieldVisible(name, true);
24949
+ _context3.next = 11;
24950
+ break;
24951
+ case 10:
24952
+ form.setFieldVisible(name, false);
24953
+ case 11:
24954
+ case "end":
24955
+ return _context3.stop();
24956
+ }
24928
24957
  }
24929
24958
  }, _callee3);
24930
24959
  }));
@@ -25113,64 +25142,66 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
25113
25142
  var _ref$current4, _res$editableStatus;
25114
25143
  var res, _res$defaultValue;
25115
25144
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
25116
- while (1) switch (_context4.prev = _context4.next) {
25117
- case 0:
25118
- _context4.next = 2;
25119
- return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
25120
- case 2:
25121
- res = _context4.sent;
25122
- res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
25123
- res.fieldGroup = record.fieldGroup;
25124
- res.businessType = record.businessType;
25125
- res.info = {
25126
- enumeration: res.enumeration,
25127
- dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
25128
- formula: res.formula,
25129
- scale: res.scale,
25130
- variable: res.variable
25131
- };
25132
- res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
25133
- res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
25134
- res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
25135
- if (res.inputType === 40) {
25136
- res.valueType = 22;
25137
- }
25138
- // 把数组处理成文本
25139
- if (res.inputType === 30) {
25140
- if (res.defaultValue) {
25141
- res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
25145
+ while (1) {
25146
+ switch (_context4.prev = _context4.next) {
25147
+ case 0:
25148
+ _context4.next = 2;
25149
+ return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
25150
+ case 2:
25151
+ res = _context4.sent;
25152
+ res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
25153
+ res.fieldGroup = record.fieldGroup;
25154
+ res.businessType = record.businessType;
25155
+ res.info = {
25156
+ enumeration: res.enumeration,
25157
+ dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
25158
+ formula: res.formula,
25159
+ scale: res.scale,
25160
+ variable: res.variable
25161
+ };
25162
+ res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
25163
+ res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
25164
+ res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
25165
+ if (res.inputType === 40) {
25166
+ res.valueType = 22;
25142
25167
  }
25143
- }
25144
- res.fieldMapping = res.fieldMapping || '';
25145
- delete res.formula;
25146
- delete res.showValue;
25147
- if (!(mode === 'create')) {
25148
- _context4.next = 18;
25149
- break;
25150
- }
25151
- bssula.request({
25152
- url: "/basic/flow/businessField",
25153
- method: 'POST',
25154
- params: res,
25155
- successMessage: '创建成功!',
25156
- converter: function converter() {
25157
- onParentOk();
25168
+ // 把数组处理成文本
25169
+ if (res.inputType === 30) {
25170
+ if (res.defaultValue) {
25171
+ res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
25172
+ }
25158
25173
  }
25159
- });
25160
- return _context4.abrupt("return");
25161
- case 18:
25162
- bssula.request({
25163
- url: "/basic/flow/businessField/".concat(record.id),
25164
- method: 'PATCH',
25165
- params: res,
25166
- successMessage: '修改成功!',
25167
- converter: function converter() {
25168
- onParentOk();
25174
+ res.fieldMapping = res.fieldMapping || '';
25175
+ delete res.formula;
25176
+ delete res.showValue;
25177
+ if (!(mode === 'create')) {
25178
+ _context4.next = 18;
25179
+ break;
25169
25180
  }
25170
- });
25171
- case 19:
25172
- case "end":
25173
- return _context4.stop();
25181
+ bssula.request({
25182
+ url: "/basic/flow/businessField",
25183
+ method: 'POST',
25184
+ params: res,
25185
+ successMessage: '创建成功!',
25186
+ converter: function converter() {
25187
+ onParentOk();
25188
+ }
25189
+ });
25190
+ return _context4.abrupt("return");
25191
+ case 18:
25192
+ bssula.request({
25193
+ url: "/basic/flow/businessField/".concat(record.id),
25194
+ method: 'PATCH',
25195
+ params: res,
25196
+ successMessage: '修改成功!',
25197
+ converter: function converter() {
25198
+ onParentOk();
25199
+ }
25200
+ });
25201
+ case 19:
25202
+ case "end":
25203
+ return _context4.stop();
25204
+ }
25174
25205
  }
25175
25206
  }, _callee4);
25176
25207
  }));
@@ -25192,7 +25223,9 @@ var FieldsSettingsTable = (function (props) {
25192
25223
  _props$codeProps = props.codeProps,
25193
25224
  codeProps = _props$codeProps === void 0 ? '' : _props$codeProps,
25194
25225
  moduleType = props.moduleType,
25195
- moduleRelationId = props.moduleRelationId;
25226
+ moduleRelationId = props.moduleRelationId,
25227
+ _props$tableFlag = props.tableFlag,
25228
+ tableFlag = _props$tableFlag === void 0 ? false : _props$tableFlag;
25196
25229
  var ref = React.useRef(null);
25197
25230
  var _useState = React.useState({
25198
25231
  visible: false,
@@ -25281,6 +25314,9 @@ var FieldsSettingsTable = (function (props) {
25281
25314
  render: function render(_ref2) {
25282
25315
  var text = _ref2.text,
25283
25316
  record = _ref2.record;
25317
+ if (tableFlag) {
25318
+ return /*#__PURE__*/React__default['default'].createElement("div", null, " \u5217\u8868\uFF1A", "{\"key\": \"extensionFields,".concat(record.code, "\",\"dataIndex\": \"extensionFields,").concat(record.code, "\",\"title\": \"").concat(record.name, "\"},"));
25319
+ }
25284
25320
  if (!codeProps.columns) {
25285
25321
  return /*#__PURE__*/React__default['default'].createElement("div", null, "\u8868\u5355\uFF1A", "{\"name\": \"extensionFields,".concat(record.code, "\",\"label\": \"").concat(record.name, "\"},"));
25286
25322
  }
@@ -25421,6 +25457,13 @@ function convertFileds(fields, falltValue, faltFieldRange, containerName) {
25421
25457
  var _field$container6;
25422
25458
  var targetValue = convertFileds(item, falltValue, faltFieldRange, field === null || field === void 0 ? void 0 : (_field$container6 = field.container) === null || _field$container6 === void 0 ? void 0 : _field$container6.name);
25423
25459
  if (targetValue) {
25460
+ if (item.dependency) {
25461
+ targetValue.dependency = {
25462
+ visible: _objectSpread2(_objectSpread2({}, item.dependency.visible), {}, {
25463
+ type: new Function('axios', 'ctx', item.dependency.visible.type).bind(null, axios__default['default'])
25464
+ })
25465
+ };
25466
+ }
25424
25467
  filedsValue.push(targetValue);
25425
25468
  }
25426
25469
  });
@@ -25429,6 +25472,14 @@ function convertFileds(fields, falltValue, faltFieldRange, containerName) {
25429
25472
  if (returnField) {
25430
25473
  var _returnField$name;
25431
25474
  returnField.label = field === null || field === void 0 ? void 0 : field.label;
25475
+ if (field === null || field === void 0 ? void 0 : field.disabled) {
25476
+ // 字段设置只读属性
25477
+ returnField.field.props.disabled = true;
25478
+ }
25479
+ if (field === null || field === void 0 ? void 0 : field.invisible) {
25480
+ // 字段设置不可见属性
25481
+ returnField.initialVisible = false;
25482
+ }
25432
25483
  if (Array.isArray(returnField.name) && ((_returnField$name = returnField.name) === null || _returnField$name === void 0 ? void 0 : _returnField$name.includes("extensionFields"))) {
25433
25484
  returnField.notShowLabel = true;
25434
25485
  }
@@ -25458,10 +25509,39 @@ function faltCustomerFieldRange(fileds) {
25458
25509
  });
25459
25510
  return columnsValue;
25460
25511
  }
25512
+ //form存在新加container属性分组得情况 组合操作
25513
+ function combineContainer(originFields, currentFields) {
25514
+ var newCurrentFields = _toConsumableArray(originFields);
25515
+ currentFields.map(function (item) {
25516
+ if (!originFields.find(function (i) {
25517
+ var _i$container, _i$container$props, _item$container;
25518
+ return (i === null || i === void 0 ? void 0 : (_i$container = i.container) === null || _i$container === void 0 ? void 0 : (_i$container$props = _i$container.props) === null || _i$container$props === void 0 ? void 0 : _i$container$props.name) == (item === null || item === void 0 ? void 0 : (_item$container = item.container) === null || _item$container === void 0 ? void 0 : _item$container.name);
25519
+ })) {
25520
+ var _item$container2, _item$container3;
25521
+ newCurrentFields = [].concat(_toConsumableArray(newCurrentFields), [{
25522
+ container: {
25523
+ type: 'card',
25524
+ props: {
25525
+ title: item === null || item === void 0 ? void 0 : (_item$container2 = item.container) === null || _item$container2 === void 0 ? void 0 : _item$container2.title,
25526
+ level: 1,
25527
+ id: Math.random(),
25528
+ isWhiteCard: true,
25529
+ bordered: false,
25530
+ name: item === null || item === void 0 ? void 0 : (_item$container3 = item.container) === null || _item$container3 === void 0 ? void 0 : _item$container3.name
25531
+ }
25532
+ },
25533
+ fields: (item === null || item === void 0 ? void 0 : item.fields) || []
25534
+ }]);
25535
+ }
25536
+ });
25537
+ return newCurrentFields;
25538
+ }
25461
25539
  function hanleCallbackValue(codeProps, value, customerFields) {
25540
+ var cacheColumns = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
25462
25541
  var faltFieldRange = faltCustomerFieldRange(customerFields);
25542
+ // const falltValue = flatFileds({fields: codeProps.fields})
25463
25543
  var falltValue = flatFileds({
25464
- fields: codeProps.fields
25544
+ fields: combineContainer(codeProps.fields, value === null || value === void 0 ? void 0 : value.fields)
25465
25545
  });
25466
25546
  var newCodeProps = _objectSpread2({}, codeProps);
25467
25547
  newCodeProps.fields = convertFileds({
@@ -25471,7 +25551,10 @@ function hanleCallbackValue(codeProps, value, customerFields) {
25471
25551
  var faltColumnsValue = faltColumns(codeProps.columns);
25472
25552
  newCodeProps.columns = value.columns.map(function (item) {
25473
25553
  if (item.isStaticCode) {
25474
- return faltColumnsValue[item.key];
25554
+ var cacheFieldProperty = cacheColumns.find(function (k) {
25555
+ return (k.key || k.dataIndex) == (item.key || item.dataIndex);
25556
+ });
25557
+ return _objectSpread2(_objectSpread2({}, faltColumnsValue[item.key]), cacheFieldProperty);
25475
25558
  } else {
25476
25559
  //自定义字段-列字段
25477
25560
  if ((item === null || item === void 0 ? void 0 : item.key) && (item === null || item === void 0 ? void 0 : item.key.includes('extensionFields')) && (item === null || item === void 0 ? void 0 : item.key.includes(','))) {
@@ -25479,10 +25562,26 @@ function hanleCallbackValue(codeProps, value, customerFields) {
25479
25562
  render: function render(_ref) {
25480
25563
  var record = _ref.record;
25481
25564
  try {
25482
- var lastName1 = item === null || item === void 0 ? void 0 : item.key.split(',')[1]; //兼容没有fieldName的情况
25483
- var lastName2 = "".concat(lastName1, "Name");
25484
- var target = (record === null || record === void 0 ? void 0 : record.extensionFields) || {};
25485
- return target[lastName2] || target[lastName1] || '';
25565
+ var _record$extensionFiel = record.extensionFields,
25566
+ extensionFields = _record$extensionFiel === void 0 ? {} : _record$extensionFiel;
25567
+ var fieldName1 = item === null || item === void 0 ? void 0 : item.key.split(',')[1]; //兼容没有fieldName的情况
25568
+ var fieldName2 = "".concat(fieldName1, "Name");
25569
+ if (customerFields.length) {
25570
+ var targetField = customerFields.find(function (k) {
25571
+ return k.name.includes(fieldName1);
25572
+ });
25573
+ if (targetField) {
25574
+ var _targetField$initialS = targetField.initialSource,
25575
+ initialSource = _targetField$initialS === void 0 ? [] : _targetField$initialS;
25576
+ if (initialSource.length) {
25577
+ var _initialSource$find;
25578
+ return ((_initialSource$find = initialSource.find(function (d) {
25579
+ return d.value == extensionFields[fieldName1];
25580
+ })) === null || _initialSource$find === void 0 ? void 0 : _initialSource$find.text) || extensionFields[fieldName1];
25581
+ }
25582
+ }
25583
+ }
25584
+ return extensionFields[fieldName2] || extensionFields[fieldName1] || '';
25486
25585
  } catch (e) {
25487
25586
  console.log('e', e);
25488
25587
  }
@@ -25515,7 +25614,10 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
25515
25614
  codeProps = props.codeProps,
25516
25615
  customerFields = props.customerFields,
25517
25616
  initialSetting = props.initialSetting,
25518
- pageType = props.pageType;
25617
+ pageType = props.pageType,
25618
+ _props$detailTablesSe = props.detailTablesSetting,
25619
+ detailTablesSetting = _props$detailTablesSe === void 0 ? [] : _props$detailTablesSe,
25620
+ saveTableCallBack = props.saveTableCallBack;
25519
25621
  var codeFilter = {};
25520
25622
  if (codeProps.columns) {
25521
25623
  // table
@@ -25539,7 +25641,6 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
25539
25641
  fields: codeProps.fields
25540
25642
  }).fields;
25541
25643
  }
25542
- console.log('codeFilter', codeFilter);
25543
25644
  var styleRef = React.useRef(null);
25544
25645
  var _useState = React.useState(false),
25545
25646
  _useState2 = _slicedToArray(_useState, 2),
@@ -25561,6 +25662,18 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
25561
25662
  _useState10 = _slicedToArray(_useState9, 2),
25562
25663
  moduleParams = _useState10[0],
25563
25664
  setModuleParams = _useState10[1];
25665
+ var _useState11 = React.useState('main'),
25666
+ _useState12 = _slicedToArray(_useState11, 2),
25667
+ activeKey = _useState12[0],
25668
+ setActiveKey = _useState12[1]; //默认详情页配置
25669
+ var _useState13 = React.useState({}),
25670
+ _useState14 = _slicedToArray(_useState13, 2),
25671
+ tablesConfigParams = _useState14[0],
25672
+ setTablesConfigParams = _useState14[1];
25673
+ var _useState15 = React.useState([]),
25674
+ _useState16 = _slicedToArray(_useState15, 2),
25675
+ tableJsonEditorValsArr = _useState16[0],
25676
+ setTableJsonEditorValsArr = _useState16[1];
25564
25677
  React.useEffect(function () {
25565
25678
  Promise.all([axios__default['default'].get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
25566
25679
  var _ref3 = _slicedToArray(_ref2, 1),
@@ -25584,6 +25697,73 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
25584
25697
  }
25585
25698
  });
25586
25699
  }, []);
25700
+ React.useEffect(function () {
25701
+ //明细表的配置数据
25702
+ var axiosArr = detailTablesSetting.map(function (item) {
25703
+ return axios__default['default'].get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(item.tableCode));
25704
+ });
25705
+ Promise.all(axiosArr).then(function (_ref5) {
25706
+ var _ref6 = _toArray(_ref5),
25707
+ resArr = _ref6.slice(0);
25708
+ var configParams = {};
25709
+ detailTablesSetting.map(function (item, index) {
25710
+ var _resArr$index;
25711
+ var _ref7 = ((_resArr$index = resArr[index]) === null || _resArr$index === void 0 ? void 0 : _resArr$index.data) || {},
25712
+ code = _ref7.code,
25713
+ data = _ref7.data;
25714
+ if (data) {
25715
+ var businessType = data.businessType,
25716
+ fieldGroup = data.code,
25717
+ moduleType = data.moduleType;
25718
+ configParams[item.tableCode] = {
25719
+ businessType: businessType,
25720
+ fieldGroup: fieldGroup,
25721
+ moduleType: moduleType,
25722
+ tableFlag: true
25723
+ };
25724
+ }
25725
+ });
25726
+ setTablesConfigParams(_objectSpread2({}, configParams));
25727
+ });
25728
+ var detailTableCodeFilter = detailTablesSetting.map(function (item) {
25729
+ if ((item === null || item === void 0 ? void 0 : item.initialSetting) && (item === null || item === void 0 ? void 0 : item.initialSetting.length)) {
25730
+ return _objectSpread2(_objectSpread2({}, item), {}, {
25731
+ columns: item === null || item === void 0 ? void 0 : item.initialSetting
25732
+ });
25733
+ }
25734
+ return _objectSpread2(_objectSpread2({}, item), {}, {
25735
+ columns: item === null || item === void 0 ? void 0 : item.columns.map(function (childItem) {
25736
+ return {
25737
+ key: childItem.key || childItem.dataIndex,
25738
+ dataIndex: childItem.dataIndex || childItem.key,
25739
+ isStaticCode: true,
25740
+ title: childItem.title
25741
+ };
25742
+ })
25743
+ });
25744
+ });
25745
+ setTableJsonEditorValsArr(_toConsumableArray(detailTableCodeFilter));
25746
+ var lastRes = detailTableCodeFilter.map(function (item) {
25747
+ if ((item === null || item === void 0 ? void 0 : item.initialSetting) && (item === null || item === void 0 ? void 0 : item.initialSetting.length)) {
25748
+ var _codeProps = {
25749
+ fields: [],
25750
+ columns: item === null || item === void 0 ? void 0 : item.columns
25751
+ };
25752
+ var newValue = {
25753
+ fields: [],
25754
+ columns: item.initialSetting
25755
+ };
25756
+ var result = hanleCallbackValue(_codeProps, newValue, item === null || item === void 0 ? void 0 : item.customerFields, item === null || item === void 0 ? void 0 : item.cacheColumns);
25757
+ return _objectSpread2(_objectSpread2({}, item), {}, {
25758
+ columns: result === null || result === void 0 ? void 0 : result.columns
25759
+ });
25760
+ }
25761
+ return item;
25762
+ });
25763
+ if (lastRes.length) {
25764
+ saveTableCallBack(lastRes, false);
25765
+ }
25766
+ }, [detailTablesSetting.length]);
25587
25767
  var onClickRun = function onClickRun(value, isSave) {
25588
25768
  setJsonEditorVal(value);
25589
25769
  try {
@@ -25593,6 +25773,40 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
25593
25773
  antd.message.error(e);
25594
25774
  }
25595
25775
  };
25776
+ //明细表保存
25777
+ var onClickRunDetailTables = function onClickRunDetailTables(value, isSave, tableCode, tableSouce) {
25778
+ var targetCode = tableCode || activeKey;
25779
+ var targetTableSource = tableSouce || tableJsonEditorValsArr;
25780
+ var newArr = targetTableSource.map(function (item) {
25781
+ if (item.tableCode == targetCode) {
25782
+ return _objectSpread2(_objectSpread2({}, item), {}, {
25783
+ columns: value
25784
+ });
25785
+ }
25786
+ return item;
25787
+ });
25788
+ setTableJsonEditorValsArr(_toConsumableArray(newArr));
25789
+ try {
25790
+ var target = targetTableSource.find(function (item) {
25791
+ return item.tableCode == targetCode;
25792
+ });
25793
+ var _codeProps2 = {
25794
+ fields: [],
25795
+ columns: target === null || target === void 0 ? void 0 : target.columns
25796
+ };
25797
+ var newValue = {
25798
+ fields: [],
25799
+ columns: value
25800
+ };
25801
+ var result = hanleCallbackValue(_codeProps2, newValue, target === null || target === void 0 ? void 0 : target.customerFields, target === null || target === void 0 ? void 0 : target.cacheColumns);
25802
+ saveTableCallBack({
25803
+ columns: result.columns,
25804
+ tableCode: targetCode
25805
+ }, isSave, value);
25806
+ } catch (e) {
25807
+ antd.message.error(e);
25808
+ }
25809
+ };
25596
25810
  React__default['default'].useEffect(function () {
25597
25811
  localStorage.setItem('jsonEditorVal', JSON.stringify(jsonEditorVal || {}));
25598
25812
  }, [jsonEditorVal]);
@@ -25609,25 +25823,97 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
25609
25823
  });
25610
25824
  return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(Drawer, {
25611
25825
  visible: visible,
25612
- width: 800,
25826
+ width: 1400,
25613
25827
  onClose: function onClose() {
25614
25828
  return setVisible(false);
25615
25829
  },
25616
25830
  className: 'customFieldsDrawer'
25831
+ }, detailTablesSetting.length == 0 && /*#__PURE__*/React__default['default'].createElement("div", {
25832
+ style: {
25833
+ display: 'flex'
25834
+ }
25617
25835
  }, /*#__PURE__*/React__default['default'].createElement("div", {
25618
- ref: styleRef
25619
- }), _.isEmpty(moduleParams) ? /*#__PURE__*/React__default['default'].createElement("div", {
25836
+ style: {
25837
+ flex: 1,
25838
+ width: 500
25839
+ }
25840
+ }, _.isEmpty(moduleParams) ? /*#__PURE__*/React__default['default'].createElement("div", {
25620
25841
  style: {
25621
25842
  padding: "10px 0",
25622
25843
  fontSize: "16px",
25623
25844
  fontWeight: "bolder"
25624
25845
  }
25625
- }, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61") : /*#__PURE__*/React__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)), /*#__PURE__*/React__default['default'].createElement(Editor, {
25846
+ }, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61") : /*#__PURE__*/React__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tableParams))), /*#__PURE__*/React__default['default'].createElement("div", {
25847
+ style: {
25848
+ flex: 1
25849
+ }
25850
+ }, /*#__PURE__*/React__default['default'].createElement(Editor, {
25626
25851
  type: "table",
25627
25852
  onRun: onClickRun,
25628
25853
  value: jsonEditorVal,
25629
25854
  shallowHeight: height
25630
- })), !visible && isAdmin() && /*#__PURE__*/React__default['default'].createElement(ConfigButton, {
25855
+ }))), detailTablesSetting.length > 0 && /*#__PURE__*/React__default['default'].createElement(antd.Tabs, {
25856
+ defaultActiveKey: activeKey,
25857
+ onChange: function onChange(v) {
25858
+ return setActiveKey(v);
25859
+ }
25860
+ }, /*#__PURE__*/React__default['default'].createElement(antd.Tabs.TabPane, {
25861
+ tab: "\u8BE6\u60C5\u9875\u914D\u7F6E",
25862
+ key: "main"
25863
+ }, /*#__PURE__*/React__default['default'].createElement("div", {
25864
+ style: {
25865
+ display: 'flex'
25866
+ }
25867
+ }, /*#__PURE__*/React__default['default'].createElement("div", {
25868
+ style: {
25869
+ flex: 1,
25870
+ width: 500
25871
+ }
25872
+ }, _.isEmpty(moduleParams) ? /*#__PURE__*/React__default['default'].createElement("div", {
25873
+ style: {
25874
+ padding: "10px 0",
25875
+ fontSize: "16px",
25876
+ fontWeight: "bolder"
25877
+ }
25878
+ }, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61") : /*#__PURE__*/React__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tableParams))), /*#__PURE__*/React__default['default'].createElement("div", {
25879
+ style: {
25880
+ flex: 1
25881
+ }
25882
+ }, /*#__PURE__*/React__default['default'].createElement(Editor, {
25883
+ type: "table",
25884
+ onRun: onClickRun,
25885
+ value: jsonEditorVal,
25886
+ shallowHeight: height
25887
+ })))), tableJsonEditorValsArr.map(function (k) {
25888
+ return /*#__PURE__*/React__default['default'].createElement(antd.Tabs.TabPane, {
25889
+ tab: k.title,
25890
+ key: k.tableCode
25891
+ }, /*#__PURE__*/React__default['default'].createElement("div", {
25892
+ style: {
25893
+ display: 'flex'
25894
+ }
25895
+ }, /*#__PURE__*/React__default['default'].createElement("div", {
25896
+ style: {
25897
+ flex: 1,
25898
+ width: 500
25899
+ }
25900
+ }, !tablesConfigParams[k.tableCode] ? /*#__PURE__*/React__default['default'].createElement("div", {
25901
+ style: {
25902
+ padding: "10px 0",
25903
+ fontSize: "16px",
25904
+ fontWeight: "bolder"
25905
+ }
25906
+ }, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61") : /*#__PURE__*/React__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tablesConfigParams[k.tableCode]))), /*#__PURE__*/React__default['default'].createElement("div", {
25907
+ style: {
25908
+ flex: 1
25909
+ }
25910
+ }, /*#__PURE__*/React__default['default'].createElement(Editor, {
25911
+ type: "table",
25912
+ onRun: onClickRunDetailTables,
25913
+ value: k.columns,
25914
+ shallowHeight: height
25915
+ }))));
25916
+ }))), !visible && isAdmin() && /*#__PURE__*/React__default['default'].createElement(ConfigButton, {
25631
25917
  type: 'primary',
25632
25918
  onClick: function onClick() {
25633
25919
  return setVisible(true);
@@ -25700,26 +25986,28 @@ var BsCascader = function BsCascader(_ref) {
25700
25986
  React.useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
25701
25987
  var resData, data;
25702
25988
  return _regeneratorRuntime().wrap(function _callee$(_context) {
25703
- while (1) switch (_context.prev = _context.next) {
25704
- case 0:
25705
- if (!(!source && initRequestSource)) {
25706
- _context.next = 6;
25707
- break;
25708
- }
25709
- _context.next = 3;
25710
- return initRequestSource();
25711
- case 3:
25712
- resData = _context.sent;
25713
- data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
25714
- return _objectSpread2(_objectSpread2({}, item), {}, {
25715
- label: item.text,
25716
- isLeaf: false
25717
- });
25718
- })) || [];
25719
- setHandSource(data);
25720
- case 6:
25721
- case "end":
25722
- return _context.stop();
25989
+ while (1) {
25990
+ switch (_context.prev = _context.next) {
25991
+ case 0:
25992
+ if (!(!source && initRequestSource)) {
25993
+ _context.next = 6;
25994
+ break;
25995
+ }
25996
+ _context.next = 3;
25997
+ return initRequestSource();
25998
+ case 3:
25999
+ resData = _context.sent;
26000
+ data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
26001
+ return _objectSpread2(_objectSpread2({}, item), {}, {
26002
+ label: item.text,
26003
+ isLeaf: false
26004
+ });
26005
+ })) || [];
26006
+ setHandSource(data);
26007
+ case 6:
26008
+ case "end":
26009
+ return _context.stop();
26010
+ }
25723
26011
  }
25724
26012
  }, _callee);
25725
26013
  })), []);
@@ -25851,18 +26139,20 @@ function getRegularThresholdRange(_x) {
25851
26139
  function _getRegularThresholdRange() {
25852
26140
  _getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
25853
26141
  return _regeneratorRuntime().wrap(function _callee$(_context) {
25854
- while (1) switch (_context.prev = _context.next) {
25855
- case 0:
25856
- return _context.abrupt("return", axios__default['default']({
25857
- url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
25858
- method: 'POST',
25859
- data: _objectSpread2(_objectSpread2({}, params), {}, {
25860
- queryIdentify: undefined
25861
- })
25862
- }));
25863
- case 1:
25864
- case "end":
25865
- return _context.stop();
26142
+ while (1) {
26143
+ switch (_context.prev = _context.next) {
26144
+ case 0:
26145
+ return _context.abrupt("return", axios__default['default']({
26146
+ url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
26147
+ method: 'POST',
26148
+ data: _objectSpread2(_objectSpread2({}, params), {}, {
26149
+ queryIdentify: undefined
26150
+ })
26151
+ }));
26152
+ case 1:
26153
+ case "end":
26154
+ return _context.stop();
26155
+ }
25866
26156
  }
25867
26157
  }, _callee);
25868
26158
  }));
@@ -26001,136 +26291,137 @@ var RuleField = /*#__PURE__*/function (_Component) {
26001
26291
  _this.getRegularThresholdRange(queryIdentify, propertyCode, queryIdentifyType);
26002
26292
  });
26003
26293
  };
26004
- //规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
26005
26294
  _this.getRegularThresholdRange = /*#__PURE__*/function () {
26006
26295
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
26007
26296
  var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
26008
26297
  return _regeneratorRuntime().wrap(function _callee$(_context) {
26009
- while (1) switch (_context.prev = _context.next) {
26010
- case 0:
26011
- if (queryIdentify) {
26012
- _context.next = 2;
26013
- break;
26014
- }
26015
- return _context.abrupt("return");
26016
- case 2:
26017
- thresholdQuery = _this.state.thresholdQuery;
26018
- extraRequestUrl = '';
26019
- querParams = setParams(propertyCode, thresholdQuery);
26020
- if (!queryIdentityInfo.find(function (item) {
26021
- return item.identity == propertyCode;
26022
- })) {
26023
- _context.next = 10;
26024
- break;
26025
- }
26026
- //判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
26027
- needQueryList = queryIdentityInfo.find(function (item) {
26028
- return item.identity == propertyCode;
26029
- }).queryParam.filter(function (item) {
26030
- return item.isRequired;
26031
- }).map(function (item) {
26032
- return item.queryKey;
26033
- });
26034
- if (!needQueryList.some(function (item) {
26035
- return !querParams[item] || !querParams[item].length;
26036
- })) {
26037
- _context.next = 9;
26038
- break;
26039
- }
26040
- return _context.abrupt("return");
26041
- case 9:
26042
- extraRequestUrl = queryIdentityInfo.find(function (item) {
26043
- return item.identity == propertyCode;
26044
- }).requestUrl || '';
26045
- case 10:
26046
- if (queryIdentifyType === 'dictCodeIdentify') {
26047
- extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
26048
- querParams = {
26049
- dictCode: queryIdentify
26050
- };
26051
- } else if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26052
- extraRequestUrl = "dictDynamicItem/getDynamicData/".concat(queryIdentify); // 字典接口
26053
- // querParams = { dictCode: queryIdentify }
26054
- }
26055
- if (!extraRequestUrl) {
26056
- _context.next = 16;
26057
- break;
26058
- }
26059
- if (queryIdentify == 'maintain_area_code') {
26060
- extraRequestUrl = "/basic/".concat(extraRequestUrl).concat(querParams.memberCardCode, "?").concat(querystring.stringify(querParams));
26061
- } else if (queryIdentifyType == 'dictCodeIdentify') {
26062
- extraRequestUrl = "/basic/".concat(extraRequestUrl, "?").concat(querystring.stringify(querParams));
26063
- } else if (queryIdentifyType == 'dynamicDictCodeIdentify') {
26064
- extraRequestUrl = "/basic/".concat(extraRequestUrl);
26065
- }
26066
- bssula.request({
26067
- url: extraRequestUrl,
26068
- method: 'get',
26069
- converter: function converter(res) {
26070
- if (handleError(res)) {
26071
- var _handleData = (res === null || res === void 0 ? void 0 : res.data) || [];
26072
- if (queryIdentifyType === 'dictCodeIdentify') {
26073
- var _handleData2;
26074
- _handleData = ((_handleData2 = _handleData) === null || _handleData2 === void 0 ? void 0 : _handleData2.length) ? _handleData.map(function (i) {
26075
- return {
26076
- code: i.dictItemCode,
26077
- name: i.dictItemName
26078
- };
26079
- }) : [];
26080
- }
26081
- if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26082
- var _handleData3;
26083
- _handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
26084
- return {
26085
- code: i.code.toString(),
26086
- name: i.name
26087
- };
26088
- }) : [];
26298
+ while (1) {
26299
+ switch (_context.prev = _context.next) {
26300
+ case 0:
26301
+ if (queryIdentify) {
26302
+ _context.next = 2;
26303
+ break;
26304
+ }
26305
+ return _context.abrupt("return");
26306
+ case 2:
26307
+ thresholdQuery = _this.state.thresholdQuery;
26308
+ extraRequestUrl = '';
26309
+ querParams = setParams(propertyCode, thresholdQuery);
26310
+ if (!queryIdentityInfo.find(function (item) {
26311
+ return item.identity == propertyCode;
26312
+ })) {
26313
+ _context.next = 10;
26314
+ break;
26315
+ }
26316
+ //判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
26317
+ needQueryList = queryIdentityInfo.find(function (item) {
26318
+ return item.identity == propertyCode;
26319
+ }).queryParam.filter(function (item) {
26320
+ return item.isRequired;
26321
+ }).map(function (item) {
26322
+ return item.queryKey;
26323
+ });
26324
+ if (!needQueryList.some(function (item) {
26325
+ return !querParams[item] || !querParams[item].length;
26326
+ })) {
26327
+ _context.next = 9;
26328
+ break;
26329
+ }
26330
+ return _context.abrupt("return");
26331
+ case 9:
26332
+ extraRequestUrl = queryIdentityInfo.find(function (item) {
26333
+ return item.identity == propertyCode;
26334
+ }).requestUrl || '';
26335
+ case 10:
26336
+ if (queryIdentifyType === 'dictCodeIdentify') {
26337
+ extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
26338
+ querParams = {
26339
+ dictCode: queryIdentify
26340
+ };
26341
+ } else if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26342
+ extraRequestUrl = "dictDynamicItem/getDynamicData/".concat(queryIdentify); // 字典接口
26343
+ // querParams = { dictCode: queryIdentify }
26344
+ }
26345
+ if (!extraRequestUrl) {
26346
+ _context.next = 16;
26347
+ break;
26348
+ }
26349
+ if (queryIdentify == 'maintain_area_code') {
26350
+ extraRequestUrl = "/basic/".concat(extraRequestUrl).concat(querParams.memberCardCode, "?").concat(querystring.stringify(querParams));
26351
+ } else if (queryIdentifyType == 'dictCodeIdentify') {
26352
+ extraRequestUrl = "/basic/".concat(extraRequestUrl, "?").concat(querystring.stringify(querParams));
26353
+ } else if (queryIdentifyType == 'dynamicDictCodeIdentify') {
26354
+ extraRequestUrl = "/basic/".concat(extraRequestUrl);
26355
+ }
26356
+ bssula.request({
26357
+ url: extraRequestUrl,
26358
+ method: 'get',
26359
+ converter: function converter(res) {
26360
+ if (handleError(res)) {
26361
+ var _handleData = (res === null || res === void 0 ? void 0 : res.data) || [];
26362
+ if (queryIdentifyType === 'dictCodeIdentify') {
26363
+ var _handleData2;
26364
+ _handleData = ((_handleData2 = _handleData) === null || _handleData2 === void 0 ? void 0 : _handleData2.length) ? _handleData.map(function (i) {
26365
+ return {
26366
+ code: i.dictItemCode,
26367
+ name: i.dictItemName
26368
+ };
26369
+ }) : [];
26370
+ }
26371
+ if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26372
+ var _handleData3;
26373
+ _handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
26374
+ return {
26375
+ code: i.code.toString(),
26376
+ name: i.name
26377
+ };
26378
+ }) : [];
26379
+ }
26380
+ _this.setState({
26381
+ thresholdList: _handleData
26382
+ });
26089
26383
  }
26090
- _this.setState({
26091
- thresholdList: _handleData
26092
- });
26384
+ return handleData;
26093
26385
  }
26094
- return handleData;
26095
- }
26096
- });
26097
- _context.next = 29;
26098
- break;
26099
- case 16:
26100
- if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
26101
- _context.next = 20;
26386
+ });
26387
+ _context.next = 29;
26102
26388
  break;
26103
- }
26104
- _this.setState({
26105
- thresholdList: queryIdentify
26106
- });
26107
- _context.next = 29;
26108
- break;
26109
- case 20:
26110
- if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
26111
- _context.next = 24;
26389
+ case 16:
26390
+ if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
26391
+ _context.next = 20;
26392
+ break;
26393
+ }
26394
+ _this.setState({
26395
+ thresholdList: queryIdentify
26396
+ });
26397
+ _context.next = 29;
26112
26398
  break;
26113
- }
26114
- // TODO待处理
26115
- _this.setState({
26116
- thresholdList: []
26117
- });
26118
- _context.next = 29;
26119
- break;
26120
- case 24:
26121
- querParams.queryIdentify = queryIdentify;
26122
- _context.next = 27;
26123
- return getRegularThresholdRange(querParams);
26124
- case 27:
26125
- res = _context.sent;
26126
- if (handleError(res)) {
26399
+ case 20:
26400
+ if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
26401
+ _context.next = 24;
26402
+ break;
26403
+ }
26404
+ // TODO待处理
26127
26405
  _this.setState({
26128
- thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
26406
+ thresholdList: []
26129
26407
  });
26130
- }
26131
- case 29:
26132
- case "end":
26133
- return _context.stop();
26408
+ _context.next = 29;
26409
+ break;
26410
+ case 24:
26411
+ querParams.queryIdentify = queryIdentify;
26412
+ _context.next = 27;
26413
+ return getRegularThresholdRange(querParams);
26414
+ case 27:
26415
+ res = _context.sent;
26416
+ if (handleError(res)) {
26417
+ _this.setState({
26418
+ thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
26419
+ });
26420
+ }
26421
+ case 29:
26422
+ case "end":
26423
+ return _context.stop();
26424
+ }
26134
26425
  }
26135
26426
  }, _callee);
26136
26427
  }));
@@ -26889,30 +27180,32 @@ var RuleField = /*#__PURE__*/function (_Component) {
26889
27180
  notChangeOnSelect: true,
26890
27181
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
26891
27182
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
26892
- while (1) switch (_context2.prev = _context2.next) {
26893
- case 0:
26894
- _context2.next = 2;
26895
- return bssula.request({
26896
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
26897
- method: 'get',
26898
- converter: function converter(_ref3) {
26899
- var data = _ref3.data;
26900
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
26901
- return {
26902
- text: item.name,
26903
- value: item.id,
26904
- level: item.level,
26905
- id: item.id
26906
- };
26907
- }) : [];
26908
- return handleData;
26909
- }
26910
- });
26911
- case 2:
26912
- return _context2.abrupt("return", _context2.sent);
26913
- case 3:
26914
- case "end":
26915
- return _context2.stop();
27183
+ while (1) {
27184
+ switch (_context2.prev = _context2.next) {
27185
+ case 0:
27186
+ _context2.next = 2;
27187
+ return bssula.request({
27188
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27189
+ method: 'get',
27190
+ converter: function converter(_ref3) {
27191
+ var data = _ref3.data;
27192
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27193
+ return {
27194
+ text: item.name,
27195
+ value: item.id,
27196
+ level: item.level,
27197
+ id: item.id
27198
+ };
27199
+ }) : [];
27200
+ return handleData;
27201
+ }
27202
+ });
27203
+ case 2:
27204
+ return _context2.abrupt("return", _context2.sent);
27205
+ case 3:
27206
+ case "end":
27207
+ return _context2.stop();
27208
+ }
26916
27209
  }
26917
27210
  }, _callee2);
26918
27211
  })),
@@ -26938,30 +27231,32 @@ var RuleField = /*#__PURE__*/function (_Component) {
26938
27231
  notChangeOnSelect: true,
26939
27232
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
26940
27233
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
26941
- while (1) switch (_context3.prev = _context3.next) {
26942
- case 0:
26943
- _context3.next = 2;
26944
- return bssula.request({
26945
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
26946
- method: 'get',
26947
- converter: function converter(_ref5) {
26948
- var data = _ref5.data;
26949
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
26950
- return {
26951
- text: item.name,
26952
- value: item.id,
26953
- level: item.level,
26954
- id: item.id
26955
- };
26956
- }) : [];
26957
- return handleData;
26958
- }
26959
- });
26960
- case 2:
26961
- return _context3.abrupt("return", _context3.sent);
26962
- case 3:
26963
- case "end":
26964
- return _context3.stop();
27234
+ while (1) {
27235
+ switch (_context3.prev = _context3.next) {
27236
+ case 0:
27237
+ _context3.next = 2;
27238
+ return bssula.request({
27239
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27240
+ method: 'get',
27241
+ converter: function converter(_ref5) {
27242
+ var data = _ref5.data;
27243
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27244
+ return {
27245
+ text: item.name,
27246
+ value: item.id,
27247
+ level: item.level,
27248
+ id: item.id
27249
+ };
27250
+ }) : [];
27251
+ return handleData;
27252
+ }
27253
+ });
27254
+ case 2:
27255
+ return _context3.abrupt("return", _context3.sent);
27256
+ case 3:
27257
+ case "end":
27258
+ return _context3.stop();
27259
+ }
26965
27260
  }
26966
27261
  }, _callee3);
26967
27262
  })),
@@ -26989,30 +27284,32 @@ var RuleField = /*#__PURE__*/function (_Component) {
26989
27284
  notChangeOnSelect: true,
26990
27285
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
26991
27286
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
26992
- while (1) switch (_context4.prev = _context4.next) {
26993
- case 0:
26994
- _context4.next = 2;
26995
- return bssula.request({
26996
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
26997
- method: 'get',
26998
- converter: function converter(_ref7) {
26999
- var data = _ref7.data;
27000
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27001
- return {
27002
- text: item.name,
27003
- value: item.id,
27004
- level: item.level,
27005
- id: item.id
27006
- };
27007
- }) : [];
27008
- return handleData;
27009
- }
27010
- });
27011
- case 2:
27012
- return _context4.abrupt("return", _context4.sent);
27013
- case 3:
27014
- case "end":
27015
- return _context4.stop();
27287
+ while (1) {
27288
+ switch (_context4.prev = _context4.next) {
27289
+ case 0:
27290
+ _context4.next = 2;
27291
+ return bssula.request({
27292
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27293
+ method: 'get',
27294
+ converter: function converter(_ref7) {
27295
+ var data = _ref7.data;
27296
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27297
+ return {
27298
+ text: item.name,
27299
+ value: item.id,
27300
+ level: item.level,
27301
+ id: item.id
27302
+ };
27303
+ }) : [];
27304
+ return handleData;
27305
+ }
27306
+ });
27307
+ case 2:
27308
+ return _context4.abrupt("return", _context4.sent);
27309
+ case 3:
27310
+ case "end":
27311
+ return _context4.stop();
27312
+ }
27016
27313
  }
27017
27314
  }, _callee4);
27018
27315
  })),
@@ -28079,6 +28376,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
28079
28376
  });
28080
28377
  }
28081
28378
  }
28379
+
28380
+ //规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
28082
28381
  }, {
28083
28382
  key: "render",
28084
28383
  value: function render() {
@@ -28909,7 +29208,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
28909
29208
  callBack(ruleClassData);
28910
29209
  });
28911
29210
  };
28912
- // 树结构 转化成 平行树 (递归函数)
28913
29211
  _this.coverToParallel = function (treeData, result) {
28914
29212
  treeData.forEach(function (el) {
28915
29213
  result.push(el);
@@ -29163,7 +29461,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29163
29461
  callBack(ruleClassData);
29164
29462
  });
29165
29463
  };
29166
- // 场景需要返回值2022.11.15
29167
29464
  _this.renderResItem = function (itemDetail, parentDetail, ruleReturnConfig, disabled, boxStyle) {
29168
29465
  var _ruleReturnConfig$rig;
29169
29466
  var isShowResponse = itemDetail.response['enable'];
@@ -29461,30 +29758,32 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29461
29758
  notChangeOnSelect: true,
29462
29759
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
29463
29760
  return _regeneratorRuntime().wrap(function _callee$(_context) {
29464
- while (1) switch (_context.prev = _context.next) {
29465
- case 0:
29466
- _context.next = 2;
29467
- return bssula.request({
29468
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
29469
- method: 'get',
29470
- converter: function converter(_ref2) {
29471
- var data = _ref2.data;
29472
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
29473
- return {
29474
- text: item.name,
29475
- value: item.id,
29476
- level: item.level,
29477
- id: item.id
29478
- };
29479
- }) : [];
29480
- return handleData;
29481
- }
29482
- });
29483
- case 2:
29484
- return _context.abrupt("return", _context.sent);
29485
- case 3:
29486
- case "end":
29487
- return _context.stop();
29761
+ while (1) {
29762
+ switch (_context.prev = _context.next) {
29763
+ case 0:
29764
+ _context.next = 2;
29765
+ return bssula.request({
29766
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
29767
+ method: 'get',
29768
+ converter: function converter(_ref2) {
29769
+ var data = _ref2.data;
29770
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
29771
+ return {
29772
+ text: item.name,
29773
+ value: item.id,
29774
+ level: item.level,
29775
+ id: item.id
29776
+ };
29777
+ }) : [];
29778
+ return handleData;
29779
+ }
29780
+ });
29781
+ case 2:
29782
+ return _context.abrupt("return", _context.sent);
29783
+ case 3:
29784
+ case "end":
29785
+ return _context.stop();
29786
+ }
29488
29787
  }
29489
29788
  }, _callee);
29490
29789
  })),
@@ -29818,7 +30117,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29818
30117
  }
29819
30118
  }, "\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);
29820
30119
  };
29821
- //添加同一层级条件
29822
30120
  _this.addPeerRule = function (itemDetail) {
29823
30121
  var ruleClassData = _this.state.ruleClassData;
29824
30122
  var _this$props4 = _this.props,
@@ -29839,7 +30137,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29839
30137
  callBack(ruleClassData);
29840
30138
  });
29841
30139
  };
29842
- //添加子层级条件
29843
30140
  _this.addChildRules = function (itemDetail) {
29844
30141
  var ruleClassData = _this.state.ruleClassData;
29845
30142
  var callBack = _this.props.callBack;
@@ -29915,7 +30212,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29915
30212
  callBack(ruleClassData);
29916
30213
  });
29917
30214
  };
29918
- // 新增执行顺序
29919
30215
  _this.handleSelectRuleAction = function (keys, classDataIndex, callback) {
29920
30216
  callback();
29921
30217
  var callBack = _this.props.callBack;
@@ -30072,26 +30368,26 @@ exports.AddSkuSelect = AddSkuSelect;
30072
30368
  exports.AddSpuSelect = AddSpuSelect;
30073
30369
  exports.BillEntry = BillEntry;
30074
30370
  exports.BsCascader = BsCascader;
30075
- exports.BsLayout = index$6;
30371
+ exports.BsLayout = index$5;
30076
30372
  exports.BsSulaQueryTable = BsSulaQueryTable;
30077
30373
  exports.BusinessSearchSelect = BusinessSearchSelect$1;
30078
30374
  exports.BusinessTreeSearchSelect = BusinessTreeSearchSelect$1;
30079
- exports.CheckOneUser = index$2;
30375
+ exports.CheckOneUser = index$1;
30080
30376
  exports.ColumnSettingTable = ColumnSettingTable;
30081
30377
  exports.CommodityEntry = CommodityEntry;
30082
30378
  exports.DataImport = DataImport;
30083
30379
  exports.DataValidation = DataValidation;
30084
- exports.DetailPageWrapper = index$4;
30380
+ exports.DetailPageWrapper = index$3;
30085
30381
  exports.EllipsisTooltip = EllipsisTooltip;
30086
30382
  exports.ExportIcon = ExportIcon;
30087
30383
  exports.GuideWrapper = GuideWrapper;
30088
- exports.HomePageWrapper = index$5;
30384
+ exports.HomePageWrapper = index$4;
30089
30385
  exports.JsonQueryTable = JsonQueryTable;
30090
- exports.MoreTreeTable = index$7;
30386
+ exports.MoreTreeTable = index$6;
30091
30387
  exports.QueryMutipleInput = QueryMutipleInput;
30092
30388
  exports.RuleComponent = RuleObjectComponent;
30093
30389
  exports.SearchSelect = SearchSelect;
30094
- exports.StateFlow = index$3;
30390
+ exports.StateFlow = index$2;
30095
30391
  exports.SulaColumnSettingTable = ColumnSettingSulaTable;
30096
30392
  exports.TableColumnSetting = TableColumnSetting;
30097
30393
  exports.TreeSearchSelect = TreeSearchSelect;