@bit-sun/business-component 2.2.45 → 2.2.46

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 (187) 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 +684 -680
  14. package/dist/index.js +690 -686
  15. package/dist/utils/LocalstorageUtils.d.ts +1 -0
  16. package/dist/utils/utils.d.ts +1 -1
  17. package/docs/index.md +21 -21
  18. package/lib/assets/drag.svg +17 -17
  19. package/lib/assets/exportFail.svg +37 -37
  20. package/lib/assets/exportProcessing.svg +28 -28
  21. package/lib/assets/exportSuccess.svg +34 -34
  22. package/lib/assets/label_icon_bottom.svg +25 -25
  23. package/lib/assets/upExport.svg +22 -22
  24. package/package.json +77 -77
  25. package/src/assets/32.svg +27 -27
  26. package/src/assets/addIcon.svg +17 -17
  27. package/src/assets/allfunc.svg +27 -27
  28. package/src/assets/arrowRight.svg +24 -24
  29. package/src/assets/btn-delete.svg +29 -29
  30. package/src/assets/btn-edit.svg +19 -19
  31. package/src/assets/btn-more.svg +17 -17
  32. package/src/assets/btn-submit.svg +19 -19
  33. package/src/assets/caidan.svg +11 -11
  34. package/src/assets/close.svg +26 -26
  35. package/src/assets/drag.svg +17 -17
  36. package/src/assets/exportFail.svg +37 -37
  37. package/src/assets/exportProcessing.svg +28 -28
  38. package/src/assets/exportSuccess.svg +34 -34
  39. package/src/assets/fixed-left-active.svg +11 -11
  40. package/src/assets/fixed-left.svg +15 -15
  41. package/src/assets/fixed-right-active.svg +11 -11
  42. package/src/assets/fixed-right.svg +15 -15
  43. package/src/assets/guanbi.svg +15 -15
  44. package/src/assets/icon-quanping.svg +15 -15
  45. package/src/assets/icon-shezhi.svg +17 -17
  46. package/src/assets/label_icon_bottom.svg +25 -25
  47. package/src/assets/list-no-img.svg +21 -21
  48. package/src/assets/morentouxiang-32.svg +23 -23
  49. package/src/assets/scanning.svg +24 -24
  50. package/src/assets/upExport.svg +22 -22
  51. package/src/components/Business/AddSelectBusiness/index.md +161 -161
  52. package/src/components/Business/AddSelectBusiness/index.tsx +887 -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 +201 -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 +320 -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 +55 -52
  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/DataImport/index.less +63 -63
  153. package/src/components/Functional/DataImport/index.md +44 -44
  154. package/src/components/Functional/DataImport/index.tsx +695 -695
  155. package/src/components/Functional/DataValidation/index.less +63 -63
  156. package/src/components/Functional/DataValidation/index.md +39 -39
  157. package/src/components/Functional/DataValidation/index.tsx +687 -687
  158. package/src/components/Functional/ExportFunctions/ExportIcon/index.md +37 -37
  159. package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +59 -59
  160. package/src/components/Functional/QueryMutipleInput/index.less +37 -37
  161. package/src/components/Functional/QueryMutipleInput/index.md +33 -33
  162. package/src/components/Functional/QueryMutipleInput/index.tsx +128 -128
  163. package/src/components/Functional/SearchSelect/index.less +115 -115
  164. package/src/components/Functional/SearchSelect/index.md +141 -141
  165. package/src/components/Functional/SearchSelect/index.tsx +858 -849
  166. package/src/components/Functional/SearchSelect/utils.ts +3 -3
  167. package/src/components/Functional/TreeSearchSelect/index.md +47 -47
  168. package/src/components/Functional/TreeSearchSelect/index.tsx +162 -162
  169. package/src/index.ts +34 -34
  170. package/src/plugin/TableColumnSetting/index.less +247 -247
  171. package/src/plugin/TableColumnSetting/index.md +50 -50
  172. package/src/plugin/TableColumnSetting/index.tsx +724 -724
  173. package/src/plugin/TableColumnSetting/utils.ts +19 -19
  174. package/src/styles/bsDefault.less +1912 -1912
  175. package/src/utils/CheckOneUser/index.md +39 -39
  176. package/src/utils/CheckOneUser/index.ts +51 -51
  177. package/src/utils/LocalstorageUtils.ts +95 -90
  178. package/src/utils/TableUtils.tsx +18 -18
  179. package/src/utils/checkUtils.ts +39 -39
  180. package/src/utils/enumConfig.ts +11 -11
  181. package/src/utils/getFormMode.js +12 -12
  182. package/src/utils/index.ts +3 -3
  183. package/src/utils/requestUtils.ts +34 -34
  184. package/src/utils/serialize.js +7 -7
  185. package/src/utils/utils.ts +183 -183
  186. package/tsconfig.json +29 -29
  187. package/typings.d.ts +4 -4
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ var reactResizable = require('react-resizable');
14
14
  var reactSortableHoc = require('react-sortable-hoc');
15
15
  var arrayMove = require('array-move');
16
16
  var umi = require('umi');
17
- var isEqual$1 = require('lodash/isEqual');
17
+ var isEqual = require('lodash/isEqual');
18
18
  var bssula = require('bssula');
19
19
  var ProLayout = require('@ant-design/pro-layout');
20
20
  var cloneDeep = require('lodash/cloneDeep');
@@ -33,7 +33,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
33
33
  var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
34
34
  var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
35
35
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
36
- var isEqual__default = /*#__PURE__*/_interopDefaultLegacy(isEqual$1);
36
+ var isEqual__default = /*#__PURE__*/_interopDefaultLegacy(isEqual);
37
37
  var ProLayout__default = /*#__PURE__*/_interopDefaultLegacy(ProLayout);
38
38
  var cloneDeep__default = /*#__PURE__*/_interopDefaultLegacy(cloneDeep);
39
39
  var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
@@ -2093,7 +2093,8 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
2093
2093
  needModalTable = _props$needModalTable === void 0 ? true : _props$needModalTable,
2094
2094
  _props$getPopupContai = props.getPopupContainer,
2095
2095
  _getPopupContainer = _props$getPopupContai === void 0 ? undefined : _props$getPopupContai,
2096
- fieldComponent = props.fieldComponent;
2096
+ fieldComponent = props.fieldComponent,
2097
+ selectBusinessType = props.selectBusinessType;
2097
2098
  var _ref = requestConfig || {},
2098
2099
  url = _ref.url,
2099
2100
  otherParams = _ref.otherParams,
@@ -2297,84 +2298,85 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
2297
2298
  });
2298
2299
  }
2299
2300
  // 数组对象处理,对带有特殊标记的name进行处理
2300
- for (var key in params) {
2301
+ var _loop = function _loop() {
2301
2302
  if (Object.prototype.hasOwnProperty.call(params, key)) {
2302
- (function () {
2303
- var element = params[key];
2304
- if (element && key.indexOf('*number*') >= 0) {
2305
- var dataParams = key.split('*number*');
2306
- dataParams.forEach(function (value, index) {
2307
- params[value] = element[index];
2308
- });
2309
- delete params[key];
2310
- } else if (element && key.indexOf('*address*') >= 0) {
2311
- var _dataParams = key.split('*address*');
2312
- _dataParams.forEach(function (value, index) {
2313
- params[value] = element.PCDCode[index];
2314
- });
2315
- delete params[key];
2316
- } else if (element && key.indexOf('*costType*') >= 0) {
2317
- var _dataParams2 = key.split('*costType*');
2318
- // eslint-disable-next-line prefer-destructuring
2319
- params[_dataParams2[0]] = element[1];
2320
- delete params[key];
2321
- } else if (element && key.indexOf('*fullDate*') >= 0) {
2322
- var _dataParams3 = key.split('*fullDate*');
2323
- _dataParams3.forEach(function (value, index) {
2324
- if (index === 0) {
2325
- params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
2326
- } else {
2327
- params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
2328
- }
2329
- });
2330
- delete params[key];
2331
- } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
2332
- var _dataParams4 = key.split('*checkBox*');
2333
- if (element) {
2334
- params[_dataParams4[0]] = 0;
2303
+ var element = params[key];
2304
+ if (element && key.indexOf('*number*') >= 0) {
2305
+ var dataParams = key.split('*number*');
2306
+ dataParams.forEach(function (value, index) {
2307
+ params[value] = element[index];
2308
+ });
2309
+ delete params[key];
2310
+ } else if (element && key.indexOf('*address*') >= 0) {
2311
+ var _dataParams = key.split('*address*');
2312
+ _dataParams.forEach(function (value, index) {
2313
+ params[value] = element.PCDCode[index];
2314
+ });
2315
+ delete params[key];
2316
+ } else if (element && key.indexOf('*costType*') >= 0) {
2317
+ var _dataParams2 = key.split('*costType*');
2318
+ // eslint-disable-next-line prefer-destructuring
2319
+ params[_dataParams2[0]] = element[1];
2320
+ delete params[key];
2321
+ } else if (element && key.indexOf('*fullDate*') >= 0) {
2322
+ var _dataParams3 = key.split('*fullDate*');
2323
+ _dataParams3.forEach(function (value, index) {
2324
+ if (index === 0) {
2325
+ params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
2326
+ } else {
2327
+ params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
2335
2328
  }
2336
- delete params[key];
2337
- } else if (element && key.indexOf('*cascader*') >= 0) {
2338
- var _dataParams5 = key.split('*cascader*');
2339
- params[_dataParams5[0]] = element[element.length - 1];
2340
- delete params[key];
2341
- } else if (element && key.indexOf('*date*') >= 0) {
2342
- var _dataParams6 = key.split('*date*');
2343
- _dataParams6.forEach(function (value, index) {
2344
- if (index === 0) {
2345
- params[value] = moment(element[index]).format('YYYY-MM-DD');
2346
- } else {
2347
- params[value] = moment(element[index]).format('YYYY-MM-DD');
2348
- }
2349
- });
2350
- delete params[key];
2351
- } else if (element && key.indexOf('*') >= 0) {
2352
- var _dataParams7 = key.split('*');
2353
- _dataParams7.forEach(function (value, index) {
2354
- params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
2355
- });
2356
- delete params[key];
2357
- } else if (element && key.indexOf('_selectNumberRange') >= 0) {
2358
- // key = xxxxx_selectNumberRange qp-xxxxx-gt
2359
- var _dataParams8 = key.split('_selectNumberRange')[0];
2360
- if (params[key][0] === 'range') {
2361
- if (params[key][1][0]) {
2362
- params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
2363
- }
2364
- if (params[key][1][1]) {
2365
- params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
2366
- }
2329
+ });
2330
+ delete params[key];
2331
+ } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
2332
+ var _dataParams4 = key.split('*checkBox*');
2333
+ if (element) {
2334
+ params[_dataParams4[0]] = 0;
2335
+ }
2336
+ delete params[key];
2337
+ } else if (element && key.indexOf('*cascader*') >= 0) {
2338
+ var _dataParams5 = key.split('*cascader*');
2339
+ params[_dataParams5[0]] = element[element.length - 1];
2340
+ delete params[key];
2341
+ } else if (element && key.indexOf('*date*') >= 0) {
2342
+ var _dataParams6 = key.split('*date*');
2343
+ _dataParams6.forEach(function (value, index) {
2344
+ if (index === 0) {
2345
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
2367
2346
  } else {
2368
- params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
2347
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
2348
+ }
2349
+ });
2350
+ delete params[key];
2351
+ } else if (element && key.indexOf('*') >= 0) {
2352
+ var _dataParams7 = key.split('*');
2353
+ _dataParams7.forEach(function (value, index) {
2354
+ params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
2355
+ });
2356
+ delete params[key];
2357
+ } else if (element && key.indexOf('_selectNumberRange') >= 0) {
2358
+ // key = xxxxx_selectNumberRange qp-xxxxx-gt
2359
+ var _dataParams8 = key.split('_selectNumberRange')[0];
2360
+ if (params[key][0] === 'range') {
2361
+ if (params[key][1][0]) {
2362
+ params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
2363
+ }
2364
+ if (params[key][1][1]) {
2365
+ params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
2369
2366
  }
2370
- delete params[key];
2371
- } else if (Array.isArray(element)) {
2372
- params[key] = element.join(',');
2373
- } else if (element == null || element === undefined || String(element).trim() === '') {
2374
- delete params[key];
2367
+ } else {
2368
+ params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
2375
2369
  }
2376
- })();
2370
+ delete params[key];
2371
+ } else if (Array.isArray(element)) {
2372
+ params[key] = element.join(',');
2373
+ } else if (element == null || element === undefined || String(element).trim() === '') {
2374
+ delete params[key];
2375
+ }
2377
2376
  }
2377
+ };
2378
+ for (var key in params) {
2379
+ _loop();
2378
2380
  }
2379
2381
  var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
2380
2382
  pageSize: pageSize,
@@ -2498,6 +2500,13 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
2498
2500
  React.useEffect(function () {
2499
2501
  makeUniqueValue();
2500
2502
  }, [resultSourceKey]);
2503
+ React.useEffect(function () {
2504
+ if (init) {
2505
+ setItems([]);
2506
+ setItemsTotal(0);
2507
+ run('init');
2508
+ }
2509
+ }, [selectBusinessType]);
2501
2510
  var showModal = function showModal() {
2502
2511
  getData({
2503
2512
  pageSize: tableInitPageSize,
@@ -3693,52 +3702,41 @@ var setInitialShowColumn = function setInitialShowColumn(tableCode, columns, cal
3693
3702
  callback(showColumns);
3694
3703
  };
3695
3704
 
3696
- var safeIsNaN = Number.isNaN ||
3697
- function ponyfill(value) {
3698
- return typeof value === 'number' && value !== value;
3699
- };
3700
- function isEqual(first, second) {
3701
- if (first === second) {
3702
- return true;
3703
- }
3704
- if (safeIsNaN(first) && safeIsNaN(second)) {
3705
- return true;
3706
- }
3707
- return false;
3708
- }
3709
- function areInputsEqual(newInputs, lastInputs) {
3710
- if (newInputs.length !== lastInputs.length) {
3711
- return false;
3712
- }
3713
- for (var i = 0; i < newInputs.length; i++) {
3714
- if (!isEqual(newInputs[i], lastInputs[i])) {
3715
- return false;
3716
- }
3705
+ var simpleIsEqual = function simpleIsEqual(a, b) {
3706
+ return a === b;
3707
+ };
3708
+
3709
+ function index (resultFn, isEqual) {
3710
+ if (isEqual === void 0) {
3711
+ isEqual = simpleIsEqual;
3712
+ }
3713
+
3714
+ var lastThis;
3715
+ var lastArgs = [];
3716
+ var lastResult;
3717
+ var calledOnce = false;
3718
+
3719
+ var isNewArgEqualToLast = function isNewArgEqualToLast(newArg, index) {
3720
+ return isEqual(newArg, lastArgs[index], index);
3721
+ };
3722
+
3723
+ var result = function result() {
3724
+ for (var _len = arguments.length, newArgs = new Array(_len), _key = 0; _key < _len; _key++) {
3725
+ newArgs[_key] = arguments[_key];
3717
3726
  }
3718
- return true;
3719
- }
3720
3727
 
3721
- function memoizeOne(resultFn, isEqual) {
3722
- if (isEqual === void 0) { isEqual = areInputsEqual; }
3723
- var lastThis;
3724
- var lastArgs = [];
3725
- var lastResult;
3726
- var calledOnce = false;
3727
- function memoized() {
3728
- var newArgs = [];
3729
- for (var _i = 0; _i < arguments.length; _i++) {
3730
- newArgs[_i] = arguments[_i];
3731
- }
3732
- if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {
3733
- return lastResult;
3734
- }
3735
- lastResult = resultFn.apply(this, newArgs);
3736
- calledOnce = true;
3737
- lastThis = this;
3738
- lastArgs = newArgs;
3739
- return lastResult;
3728
+ if (calledOnce && lastThis === this && newArgs.length === lastArgs.length && newArgs.every(isNewArgEqualToLast)) {
3729
+ return lastResult;
3740
3730
  }
3741
- return memoized;
3731
+
3732
+ lastResult = resultFn.apply(this, newArgs);
3733
+ calledOnce = true;
3734
+ lastThis = this;
3735
+ lastArgs = newArgs;
3736
+ return lastResult;
3737
+ };
3738
+
3739
+ return result;
3742
3740
  }
3743
3741
 
3744
3742
  //! moment.js
@@ -9601,58 +9599,59 @@ var getItemDefaultWidth = function getItemDefaultWidth(item) {
9601
9599
  * @returns 返回处理后的查询参数
9602
9600
  */
9603
9601
  function queryParams(params, flag) {
9604
- for (var key in params) {
9602
+ var _loop = function _loop() {
9605
9603
  if (Object.prototype.hasOwnProperty.call(params, key)) {
9606
- (function () {
9607
- var element = params[key];
9608
- if (element && key.indexOf('*number*') >= 0) {
9609
- var dataParams = key.split('*number*');
9610
- dataParams.forEach(function (value, index) {
9611
- params[value] = element[index];
9612
- });
9613
- delete params[key];
9614
- } else if (element && key.indexOf('*address*') >= 0) {
9615
- var _dataParams = key.split('*address*');
9616
- _dataParams.forEach(function (value, index) {
9617
- params[value] = element.PCDCode[index];
9618
- });
9619
- delete params[key];
9620
- } else if (element && key.indexOf('*costType*') >= 0) {
9621
- var _dataParams2 = key.split('*costType*');
9622
- // eslint-disable-next-line prefer-destructuring
9623
- params[_dataParams2[0]] = element[1];
9624
- delete params[key];
9625
- } else if (element && key.indexOf('*fullDate*') >= 0) {
9626
- var _dataParams3 = key.split('*fullDate*');
9627
- _dataParams3.forEach(function (value, index) {
9628
- if (index === 0) {
9629
- params[value] = hooks(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
9630
- } else {
9631
- params[value] = hooks(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
9632
- }
9633
- });
9634
- delete params[key];
9635
- } else if (element && key.indexOf('*') >= 0) {
9636
- var _dataParams4 = key.split('*');
9637
- _dataParams4.forEach(function (value, index) {
9638
- params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
9639
- });
9640
- delete params[key];
9641
- } else if (element && key.indexOf('_likeIn_') >= 0) {
9642
- var _dataParams5 = key.split('_likeIn_');
9643
- if (element.indexOf(',') >= 0) {
9644
- params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
9645
- params["qp-".concat(_dataParams5[0], "-like")] = null;
9604
+ var element = params[key];
9605
+ if (element && key.indexOf('*number*') >= 0) {
9606
+ var dataParams = key.split('*number*');
9607
+ dataParams.forEach(function (value, index) {
9608
+ params[value] = element[index];
9609
+ });
9610
+ delete params[key];
9611
+ } else if (element && key.indexOf('*address*') >= 0) {
9612
+ var _dataParams = key.split('*address*');
9613
+ _dataParams.forEach(function (value, index) {
9614
+ params[value] = element.PCDCode[index];
9615
+ });
9616
+ delete params[key];
9617
+ } else if (element && key.indexOf('*costType*') >= 0) {
9618
+ var _dataParams2 = key.split('*costType*');
9619
+ // eslint-disable-next-line prefer-destructuring
9620
+ params[_dataParams2[0]] = element[1];
9621
+ delete params[key];
9622
+ } else if (element && key.indexOf('*fullDate*') >= 0) {
9623
+ var _dataParams3 = key.split('*fullDate*');
9624
+ _dataParams3.forEach(function (value, index) {
9625
+ if (index === 0) {
9626
+ params[value] = hooks(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
9646
9627
  } else {
9647
- params["qp-".concat(_dataParams5[0], "-like")] = element;
9648
- params["qp-".concat(_dataParams5[0], "-in")] = null;
9628
+ params[value] = hooks(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
9649
9629
  }
9650
- delete params[key];
9651
- } else if (Array.isArray(element)) {
9652
- params[key] = element.join(',');
9630
+ });
9631
+ delete params[key];
9632
+ } else if (element && key.indexOf('*') >= 0) {
9633
+ var _dataParams4 = key.split('*');
9634
+ _dataParams4.forEach(function (value, index) {
9635
+ params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
9636
+ });
9637
+ delete params[key];
9638
+ } else if (element && key.indexOf('_likeIn_') >= 0) {
9639
+ var _dataParams5 = key.split('_likeIn_');
9640
+ if (element.indexOf(',') >= 0) {
9641
+ params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
9642
+ params["qp-".concat(_dataParams5[0], "-like")] = null;
9643
+ } else {
9644
+ params["qp-".concat(_dataParams5[0], "-like")] = element;
9645
+ params["qp-".concat(_dataParams5[0], "-in")] = null;
9653
9646
  }
9654
- })();
9647
+ delete params[key];
9648
+ } else if (Array.isArray(element)) {
9649
+ params[key] = element.join(',');
9650
+ }
9655
9651
  }
9652
+ };
9653
+ for (var key in params) {
9654
+ _loop();
9656
9655
  }
9657
9656
  return flag ? params : qs.stringify(params);
9658
9657
  }
@@ -9698,7 +9697,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
9698
9697
  return item;
9699
9698
  });
9700
9699
  };
9701
- var memoizeOneFormatter = memoizeOne(formatter, isEqual__default['default']);
9700
+ var memoizeOneFormatter = index(formatter, isEqual__default['default']);
9702
9701
  var go2BackAndClose = function go2BackAndClose() {
9703
9702
  localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
9704
9703
  umi.history.goBack();
@@ -10182,76 +10181,74 @@ var AddSelect = function AddSelect(props) {
10182
10181
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
10183
10182
  var result;
10184
10183
  return _regeneratorRuntime().wrap(function _callee$(_context) {
10185
- while (1) {
10186
- switch (_context.prev = _context.next) {
10187
- case 0:
10188
- if (!(bType == 'skc' && tList.some(function (i) {
10189
- return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
10190
- }))) {
10191
- _context.next = 3;
10192
- break;
10193
- }
10194
- antd.message.warning('相同skc配码不可设置相同哦');
10195
- return _context.abrupt("return", false);
10196
- case 3:
10197
- if (!(bType == 'spu')) {
10198
- _context.next = 26;
10199
- break;
10200
- }
10201
- if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
10202
- return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
10203
- }))) {
10204
- _context.next = 7;
10205
- break;
10206
- }
10207
- antd.message.warning('相同商品相同配码颜色不可设置相同哦');
10208
- return _context.abrupt("return", false);
10209
- case 7:
10210
- if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
10211
- _context.next = 10;
10212
- break;
10213
- }
10214
- antd.message.warning('请先选择颜色!');
10215
- return _context.abrupt("return", false);
10216
- case 10:
10217
- if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
10218
- return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
10219
- }))) {
10220
- _context.next = 13;
10221
- break;
10222
- }
10223
- antd.message.warning('相同商品相同颜色配码不可设置相同哦');
10224
- return _context.abrupt("return", false);
10225
- case 13:
10226
- if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
10227
- _context.next = 26;
10228
- break;
10229
- }
10230
- result = true;
10231
- _context.prev = 15;
10232
- _context.next = 18;
10233
- return checkSpuMatchCode({
10234
- skcCode: recordItem[recordKey],
10235
- matchingCode: changeValue,
10236
- ext1: recordItem.colorName
10237
- });
10238
- case 18:
10239
- result = _context.sent;
10240
- result = true;
10241
- _context.next = 25;
10184
+ while (1) switch (_context.prev = _context.next) {
10185
+ case 0:
10186
+ if (!(bType == 'skc' && tList.some(function (i) {
10187
+ return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
10188
+ }))) {
10189
+ _context.next = 3;
10242
10190
  break;
10243
- case 22:
10244
- _context.prev = 22;
10245
- _context.t0 = _context["catch"](15);
10246
- result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
10247
- case 25:
10248
- return _context.abrupt("return", result);
10249
- case 26:
10250
- return _context.abrupt("return", true);
10251
- case 27:
10252
- case "end":
10253
- return _context.stop();
10254
- }
10191
+ }
10192
+ antd.message.warning('相同skc配码不可设置相同哦');
10193
+ return _context.abrupt("return", false);
10194
+ case 3:
10195
+ if (!(bType == 'spu')) {
10196
+ _context.next = 26;
10197
+ break;
10198
+ }
10199
+ if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
10200
+ return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
10201
+ }))) {
10202
+ _context.next = 7;
10203
+ break;
10204
+ }
10205
+ antd.message.warning('相同商品相同配码颜色不可设置相同哦');
10206
+ return _context.abrupt("return", false);
10207
+ case 7:
10208
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
10209
+ _context.next = 10;
10210
+ break;
10211
+ }
10212
+ antd.message.warning('请先选择颜色!');
10213
+ return _context.abrupt("return", false);
10214
+ case 10:
10215
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
10216
+ return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
10217
+ }))) {
10218
+ _context.next = 13;
10219
+ break;
10220
+ }
10221
+ antd.message.warning('相同商品相同颜色配码不可设置相同哦');
10222
+ return _context.abrupt("return", false);
10223
+ case 13:
10224
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
10225
+ _context.next = 26;
10226
+ break;
10227
+ }
10228
+ result = true;
10229
+ _context.prev = 15;
10230
+ _context.next = 18;
10231
+ return checkSpuMatchCode({
10232
+ skcCode: recordItem[recordKey],
10233
+ matchingCode: changeValue,
10234
+ ext1: recordItem.colorName
10235
+ });
10236
+ case 18:
10237
+ result = _context.sent;
10238
+ result = true;
10239
+ _context.next = 25;
10240
+ break;
10241
+ case 22:
10242
+ _context.prev = 22;
10243
+ _context.t0 = _context["catch"](15);
10244
+ result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
10245
+ case 25:
10246
+ return _context.abrupt("return", result);
10247
+ case 26:
10248
+ return _context.abrupt("return", true);
10249
+ case 27:
10250
+ case "end":
10251
+ return _context.stop();
10255
10252
  }
10256
10253
  }, _callee, null, [[15, 22]]);
10257
10254
  }));
@@ -10443,29 +10440,27 @@ var AddSelect = function AddSelect(props) {
10443
10440
  var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
10444
10441
  var isConformToTheRules, newPopValue;
10445
10442
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
10446
- while (1) {
10447
- switch (_context2.prev = _context2.next) {
10448
- case 0:
10449
- _context2.next = 2;
10450
- return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
10451
- case 2:
10452
- isConformToTheRules = _context2.sent;
10453
- if (isConformToTheRules) {
10454
- record[item.dataIndex] = value;
10455
- } else {
10456
- record[item.dataIndex] = null;
10443
+ while (1) switch (_context2.prev = _context2.next) {
10444
+ case 0:
10445
+ _context2.next = 2;
10446
+ return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
10447
+ case 2:
10448
+ isConformToTheRules = _context2.sent;
10449
+ if (isConformToTheRules) {
10450
+ record[item.dataIndex] = value;
10451
+ } else {
10452
+ record[item.dataIndex] = null;
10453
+ }
10454
+ newPopValue = popvalue.map(function (i, innerIndex) {
10455
+ if (innerIndex == index) {
10456
+ i[item.dataIndex] = record[item.dataIndex];
10457
10457
  }
10458
- newPopValue = popvalue.map(function (i, innerIndex) {
10459
- if (innerIndex == index) {
10460
- i[item.dataIndex] = record[item.dataIndex];
10461
- }
10462
- return i;
10463
- });
10464
- setPopValue(newPopValue);
10465
- case 6:
10466
- case "end":
10467
- return _context2.stop();
10468
- }
10458
+ return i;
10459
+ });
10460
+ setPopValue(newPopValue);
10461
+ case 6:
10462
+ case "end":
10463
+ return _context2.stop();
10469
10464
  }
10470
10465
  }, _callee2);
10471
10466
  }));
@@ -10525,84 +10520,85 @@ var AddSelect = function AddSelect(props) {
10525
10520
  });
10526
10521
  }
10527
10522
  // 数组对象处理,对带有特殊标记的name进行处理
10528
- for (var key in params) {
10523
+ var _loop = function _loop() {
10529
10524
  if (Object.prototype.hasOwnProperty.call(params, key)) {
10530
- (function () {
10531
- var element = params[key];
10532
- if (element && key.indexOf('*number*') >= 0) {
10533
- var dataParams = key.split('*number*');
10534
- dataParams.forEach(function (value, index) {
10535
- params[value] = element[index];
10536
- });
10537
- delete params[key];
10538
- } else if (element && key.indexOf('*address*') >= 0) {
10539
- var _dataParams = key.split('*address*');
10540
- _dataParams.forEach(function (value, index) {
10541
- params[value] = element.PCDCode[index];
10542
- });
10543
- delete params[key];
10544
- } else if (element && key.indexOf('*costType*') >= 0) {
10545
- var _dataParams2 = key.split('*costType*');
10546
- // eslint-disable-next-line prefer-destructuring
10547
- params[_dataParams2[0]] = element[1];
10548
- delete params[key];
10549
- } else if (element && key.indexOf('*fullDate*') >= 0) {
10550
- var _dataParams3 = key.split('*fullDate*');
10551
- _dataParams3.forEach(function (value, index) {
10552
- if (index === 0) {
10553
- params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
10554
- } else {
10555
- params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
10556
- }
10557
- });
10558
- delete params[key];
10559
- } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
10560
- var _dataParams4 = key.split('*checkBox*');
10561
- if (element) {
10562
- params[_dataParams4[0]] = 0;
10525
+ var element = params[key];
10526
+ if (element && key.indexOf('*number*') >= 0) {
10527
+ var dataParams = key.split('*number*');
10528
+ dataParams.forEach(function (value, index) {
10529
+ params[value] = element[index];
10530
+ });
10531
+ delete params[key];
10532
+ } else if (element && key.indexOf('*address*') >= 0) {
10533
+ var _dataParams = key.split('*address*');
10534
+ _dataParams.forEach(function (value, index) {
10535
+ params[value] = element.PCDCode[index];
10536
+ });
10537
+ delete params[key];
10538
+ } else if (element && key.indexOf('*costType*') >= 0) {
10539
+ var _dataParams2 = key.split('*costType*');
10540
+ // eslint-disable-next-line prefer-destructuring
10541
+ params[_dataParams2[0]] = element[1];
10542
+ delete params[key];
10543
+ } else if (element && key.indexOf('*fullDate*') >= 0) {
10544
+ var _dataParams3 = key.split('*fullDate*');
10545
+ _dataParams3.forEach(function (value, index) {
10546
+ if (index === 0) {
10547
+ params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
10548
+ } else {
10549
+ params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
10563
10550
  }
10564
- delete params[key];
10565
- } else if (element && key.indexOf('*cascader*') >= 0) {
10566
- var _dataParams5 = key.split('*cascader*');
10567
- params[_dataParams5[0]] = element[element.length - 1];
10568
- delete params[key];
10569
- } else if (element && key.indexOf('*date*') >= 0) {
10570
- var _dataParams6 = key.split('*date*');
10571
- _dataParams6.forEach(function (value, index) {
10572
- if (index === 0) {
10573
- params[value] = moment(element[index]).format('YYYY-MM-DD');
10574
- } else {
10575
- params[value] = moment(element[index]).format('YYYY-MM-DD');
10576
- }
10577
- });
10578
- delete params[key];
10579
- } else if (element && key.indexOf('*') >= 0) {
10580
- var _dataParams7 = key.split('*');
10581
- _dataParams7.forEach(function (value, index) {
10582
- params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
10583
- });
10584
- delete params[key];
10585
- } else if (element && key.indexOf('_selectNumberRange') >= 0) {
10586
- // key = xxxxx_selectNumberRange qp-xxxxx-gt
10587
- var _dataParams8 = key.split('_selectNumberRange')[0];
10588
- if (params[key][0] === 'range') {
10589
- if (params[key][1][0]) {
10590
- params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
10591
- }
10592
- if (params[key][1][1]) {
10593
- params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
10594
- }
10551
+ });
10552
+ delete params[key];
10553
+ } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
10554
+ var _dataParams4 = key.split('*checkBox*');
10555
+ if (element) {
10556
+ params[_dataParams4[0]] = 0;
10557
+ }
10558
+ delete params[key];
10559
+ } else if (element && key.indexOf('*cascader*') >= 0) {
10560
+ var _dataParams5 = key.split('*cascader*');
10561
+ params[_dataParams5[0]] = element[element.length - 1];
10562
+ delete params[key];
10563
+ } else if (element && key.indexOf('*date*') >= 0) {
10564
+ var _dataParams6 = key.split('*date*');
10565
+ _dataParams6.forEach(function (value, index) {
10566
+ if (index === 0) {
10567
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
10595
10568
  } else {
10596
- params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
10569
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
10597
10570
  }
10598
- delete params[key];
10599
- } else if (Array.isArray(element)) {
10600
- params[key] = element.join(',');
10601
- } else if (element == null || element === undefined || String(element).trim() === '') {
10602
- delete params[key];
10571
+ });
10572
+ delete params[key];
10573
+ } else if (element && key.indexOf('*') >= 0) {
10574
+ var _dataParams7 = key.split('*');
10575
+ _dataParams7.forEach(function (value, index) {
10576
+ params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
10577
+ });
10578
+ delete params[key];
10579
+ } else if (element && key.indexOf('_selectNumberRange') >= 0) {
10580
+ // key = xxxxx_selectNumberRange qp-xxxxx-gt
10581
+ var _dataParams8 = key.split('_selectNumberRange')[0];
10582
+ if (params[key][0] === 'range') {
10583
+ if (params[key][1][0]) {
10584
+ params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
10585
+ }
10586
+ if (params[key][1][1]) {
10587
+ params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
10588
+ }
10589
+ } else {
10590
+ params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
10603
10591
  }
10604
- })();
10592
+ delete params[key];
10593
+ } else if (Array.isArray(element)) {
10594
+ params[key] = element.join(',');
10595
+ } else if (element == null || element === undefined || String(element).trim() === '') {
10596
+ delete params[key];
10597
+ }
10605
10598
  }
10599
+ };
10600
+ for (var key in params) {
10601
+ _loop();
10606
10602
  }
10607
10603
  var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
10608
10604
  pageSize: pageSize,
@@ -10702,8 +10698,8 @@ var AddSelect = function AddSelect(props) {
10702
10698
  pageSize: 5000,
10703
10699
  currentPage: 1
10704
10700
  })]).then(function (x) {
10705
- formatSource(x, 0, 2, tableSearchForm, ['id', 'name']);
10706
- formatTreeDataSource(x, 1, 3, tableSearchForm);
10701
+ formatSource(x, 0, 3, tableSearchForm, ['id', 'name']);
10702
+ formatTreeDataSource(x, 1, 4, tableSearchForm);
10707
10703
  });
10708
10704
  }
10709
10705
  if (businessType == 'skc') {
@@ -12057,72 +12053,70 @@ var BillEntry = function BillEntry(_ref3) {
12057
12053
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
12058
12054
  var canEntryObject, _canEntryObject$error, messageInfo;
12059
12055
  return _regeneratorRuntime().wrap(function _callee$(_context) {
12060
- while (1) {
12061
- switch (_context.prev = _context.next) {
12062
- case 0:
12063
- if (data === null || data === void 0 ? void 0 : data.length) {
12064
- _context.next = 3;
12065
- break;
12066
- }
12067
- antd.message.warning('至少录入一条数据');
12068
- return _context.abrupt("return");
12069
- case 3:
12070
- if (data === null || data === void 0 ? void 0 : data.every(function (d) {
12071
- return d.skuCode && d.name;
12072
- })) {
12073
- _context.next = 6;
12074
- break;
12075
- }
12076
- antd.message.warning('请选择商品!');
12077
- return _context.abrupt("return");
12078
- case 6:
12079
- if (data === null || data === void 0 ? void 0 : data.every(function (d) {
12080
- return d.count;
12081
- })) {
12082
- _context.next = 9;
12083
- break;
12084
- }
12085
- antd.message.warning('请填写商品数量!');
12086
- return _context.abrupt("return");
12087
- case 9:
12088
- _context.next = 11;
12089
- return isSkuCanEntry(data);
12090
- case 11:
12091
- canEntryObject = _context.sent;
12092
- if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
12093
- _context.next = 16;
12094
- break;
12095
- }
12096
- 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) {
12097
- return /*#__PURE__*/React__default['default'].createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
12098
- }));
12099
- messageInfo && antd.message.warning({
12100
- content: messageInfo,
12101
- duration: 6
12102
- });
12103
- return _context.abrupt("return");
12104
- case 16:
12105
- setLoading(true);
12106
- onSaveCallback(data).then(function (res) {
12107
- {
12108
- var _Object$keys;
12109
- var initSuccessMessage = '保存成功';
12110
- var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
12111
- if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
12112
- (rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? antd.message.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
12113
- } else {
12114
- antd.message.success(initSuccessMessage);
12115
- }
12056
+ while (1) switch (_context.prev = _context.next) {
12057
+ case 0:
12058
+ if (data === null || data === void 0 ? void 0 : data.length) {
12059
+ _context.next = 3;
12060
+ break;
12061
+ }
12062
+ antd.message.warning('至少录入一条数据');
12063
+ return _context.abrupt("return");
12064
+ case 3:
12065
+ if (data === null || data === void 0 ? void 0 : data.every(function (d) {
12066
+ return d.skuCode && d.name;
12067
+ })) {
12068
+ _context.next = 6;
12069
+ break;
12070
+ }
12071
+ antd.message.warning('请选择商品!');
12072
+ return _context.abrupt("return");
12073
+ case 6:
12074
+ if (data === null || data === void 0 ? void 0 : data.every(function (d) {
12075
+ return d.count;
12076
+ })) {
12077
+ _context.next = 9;
12078
+ break;
12079
+ }
12080
+ antd.message.warning('请填写商品数量!');
12081
+ return _context.abrupt("return");
12082
+ case 9:
12083
+ _context.next = 11;
12084
+ return isSkuCanEntry(data);
12085
+ case 11:
12086
+ canEntryObject = _context.sent;
12087
+ if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
12088
+ _context.next = 16;
12089
+ break;
12090
+ }
12091
+ 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) {
12092
+ return /*#__PURE__*/React__default['default'].createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
12093
+ }));
12094
+ messageInfo && antd.message.warning({
12095
+ content: messageInfo,
12096
+ duration: 6
12097
+ });
12098
+ return _context.abrupt("return");
12099
+ case 16:
12100
+ setLoading(true);
12101
+ onSaveCallback(data).then(function (res) {
12102
+ {
12103
+ var _Object$keys;
12104
+ var initSuccessMessage = '保存成功';
12105
+ var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
12106
+ if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
12107
+ (rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? antd.message.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
12108
+ } else {
12109
+ antd.message.success(initSuccessMessage);
12116
12110
  }
12117
- setLoading(false);
12118
- }).catch(function (Error) {
12119
- antd.message.error(Error);
12120
- setLoading(false);
12121
- });
12122
- case 18:
12123
- case "end":
12124
- return _context.stop();
12125
- }
12111
+ }
12112
+ setLoading(false);
12113
+ }).catch(function (Error) {
12114
+ antd.message.error(Error);
12115
+ setLoading(false);
12116
+ });
12117
+ case 18:
12118
+ case "end":
12119
+ return _context.stop();
12126
12120
  }
12127
12121
  }, _callee);
12128
12122
  }));
@@ -14255,7 +14249,7 @@ var BusinessSearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
14255
14249
  needModalTable: needModalTable,
14256
14250
  modalTableProps: modalTableProps
14257
14251
  });
14258
- }, [props === null || props === void 0 ? void 0 : props.value, props.disabled]);
14252
+ }, [props === null || props === void 0 ? void 0 : props.value, props.disabled, props.selectBusinessType]);
14259
14253
  React.useImperativeHandle(ref, function () {
14260
14254
  return {
14261
14255
  getRef: function getRef() {
@@ -14277,9 +14271,13 @@ var BusinessSearchSelect$1 = /*#__PURE__*/React__default['default'].memo(Busines
14277
14271
  if (props && props.disabled !== nextProps.disabled) {
14278
14272
  return false;
14279
14273
  }
14274
+ if (props && props.selectBusinessType !== nextProps.selectBusinessType) {
14275
+ return false;
14276
+ }
14280
14277
  return true;
14281
14278
  });
14282
14279
 
14280
+ // import { getCurrentTargetBgId } from '@/utils/LocalstorageUtils';
14283
14281
  function handleSelectColumn(c, parentProps) {
14284
14282
  var result = c;
14285
14283
  var exceptColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.exceptColumns) || [];
@@ -14291,7 +14289,7 @@ function handleSelectColumn(c, parentProps) {
14291
14289
  return !exceptColumns.includes(i.dataIndex);
14292
14290
  });
14293
14291
  }
14294
- // 追加
14292
+ // 追加(最好不用这个,当组件不固定时候会有影响)
14295
14293
  if (additionColumns === null || additionColumns === void 0 ? void 0 : additionColumns.length) {
14296
14294
  additionColumns.forEach(function (i) {
14297
14295
  result.splice(i.position, 0, i.column);
@@ -14304,6 +14302,7 @@ function handleSelectColumn(c, parentProps) {
14304
14302
  return result;
14305
14303
  }
14306
14304
  var AddSkuSelect = function AddSkuSelect(parProps) {
14305
+ var _parProps$requestConf, _parProps$requestConf2;
14307
14306
  var selectProps = {
14308
14307
  mode: 'multiple'
14309
14308
  };
@@ -14316,6 +14315,19 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
14316
14315
  title: 'SKU编码',
14317
14316
  width: 150,
14318
14317
  dataIndex: 'skuCode'
14318
+ }, {
14319
+ title: '商品条码',
14320
+ width: 100,
14321
+ ellipsis: {
14322
+ showTitle: false
14323
+ },
14324
+ dataIndex: 'itemEancode',
14325
+ render: function render(text) {
14326
+ return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
14327
+ placement: "topLeft",
14328
+ title: text
14329
+ }, text);
14330
+ }
14319
14331
  }, {
14320
14332
  title: 'SKU名称',
14321
14333
  width: 200,
@@ -14403,11 +14415,11 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
14403
14415
  requestConfig: _objectSpread2({
14404
14416
  url: "/items/sku/pager/v2",
14405
14417
  filter: 'qp-name-like',
14406
- otherParams: {
14418
+ otherParams: _objectSpread2({
14407
14419
  'qp-combination-eq': false,
14408
14420
  'qp-approveStatus-eq': 1,
14409
14421
  'qp-status-eq': 1
14410
- },
14422
+ }, (parProps === null || parProps === void 0 ? void 0 : (_parProps$requestConf = parProps.requestConfig) === null || _parProps$requestConf === void 0 ? void 0 : _parProps$requestConf.addOtherParams) || {}),
14411
14423
  mappingTextField: 'name',
14412
14424
  mappingValueField: 'skuCode'
14413
14425
  }, parProps.requestConfig),
@@ -14429,6 +14441,13 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
14429
14441
  }, {
14430
14442
  name: 'qp-skuName-like',
14431
14443
  label: 'SKU名称'
14444
+ }, {
14445
+ name: 'qp-code-in',
14446
+ label: '商品条码',
14447
+ field: {
14448
+ type: 'multipleQueryInput',
14449
+ props: _objectSpread2({}, ((_parProps$requestConf2 = parProps.requestConfig) === null || _parProps$requestConf2 === void 0 ? void 0 : _parProps$requestConf2.itemEancodeValueRequestConfig) || {})
14450
+ }
14432
14451
  }, {
14433
14452
  name: 'qp-brandId-in',
14434
14453
  type: 'select',
@@ -14509,12 +14528,12 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
14509
14528
  }));
14510
14529
  }
14511
14530
  }, {
14512
- title: '国际条码',
14531
+ title: '商品条码',
14513
14532
  width: 100,
14514
14533
  ellipsis: {
14515
14534
  showTitle: false
14516
14535
  },
14517
- dataIndex: 'barCode',
14536
+ dataIndex: 'itemEancode',
14518
14537
  render: function render(text) {
14519
14538
  return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
14520
14539
  placement: "topLeft",
@@ -14620,6 +14639,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
14620
14639
  })));
14621
14640
  };
14622
14641
  var AddSkcSelect = function AddSkcSelect(parProps) {
14642
+ var _parProps$requestConf3;
14623
14643
  var selectProps = {
14624
14644
  mode: 'multiple'
14625
14645
  };
@@ -14697,9 +14717,9 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
14697
14717
  requestConfig: _objectSpread2({
14698
14718
  url: "/items/skc/skcSelect",
14699
14719
  filter: 'qp-name-like',
14700
- otherParams: {
14720
+ otherParams: _objectSpread2({
14701
14721
  'qp-skcStatus-eq': 1
14702
- },
14722
+ }, (parProps === null || parProps === void 0 ? void 0 : (_parProps$requestConf3 = parProps.requestConfig) === null || _parProps$requestConf3 === void 0 ? void 0 : _parProps$requestConf3.addOtherParams) || {}),
14703
14723
  mappingTextField: 'name',
14704
14724
  mappingValueField: 'code'
14705
14725
  }, parProps.requestConfig),
@@ -14899,6 +14919,7 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
14899
14919
  })));
14900
14920
  };
14901
14921
  var AddSpuSelect = function AddSpuSelect(parProps) {
14922
+ var _parProps$requestConf4;
14902
14923
  var selectProps = {
14903
14924
  mode: 'multiple'
14904
14925
  };
@@ -14985,11 +15006,11 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
14985
15006
  requestConfig: _objectSpread2({
14986
15007
  url: "/items/item",
14987
15008
  filter: 'qp-itemCode,name-orGroup,like',
14988
- otherParams: {
15009
+ otherParams: _objectSpread2({
14989
15010
  'qp-approveStatus-eq': 1,
14990
15011
  'qp-status-eq': 1,
14991
15012
  sorter: 'desc-id'
14992
- },
15013
+ }, (parProps === null || parProps === void 0 ? void 0 : (_parProps$requestConf4 = parProps.requestConfig) === null || _parProps$requestConf4 === void 0 ? void 0 : _parProps$requestConf4.addOtherParams) || {}),
14993
15014
  mappingTextField: 'name',
14994
15015
  mappingValueField: 'itemCode'
14995
15016
  }, parProps.requestConfig),
@@ -15257,7 +15278,7 @@ var CommodityEntry = function CommodityEntry(props) {
15257
15278
  * @LastEditTime: 2022-01-14 17:17:26
15258
15279
  * @LastEditors: rodchen
15259
15280
  */
15260
- var index = (function (storageKeyString) {
15281
+ var index$1 = (function (storageKeyString) {
15261
15282
  var seconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
15262
15283
  var tipsCallFunction = arguments.length > 2 ? arguments[2] : undefined;
15263
15284
  if (typeof seconds !== 'number') throw new Error('seconds should be number');
@@ -15375,44 +15396,42 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
15375
15396
  var _ctx$form;
15376
15397
  var resData, coverData, data, dataList;
15377
15398
  return _regeneratorRuntime().wrap(function _callee$(_context) {
15378
- while (1) {
15379
- switch (_context.prev = _context.next) {
15380
- case 0:
15381
- resData = (res === null || res === void 0 ? void 0 : res.data) || [];
15382
- if (!(resData.status === '0' || resData.code === '000000')) {
15383
- _context.next = 13;
15384
- break;
15385
- }
15386
- data = resData.data;
15387
- if (!remoteSource.converter) {
15388
- _context.next = 9;
15389
- break;
15390
- }
15391
- _context.next = 6;
15392
- return remoteSource.converter({
15393
- data: [data]
15394
- });
15395
- case 6:
15396
- coverData = _context.sent;
15397
- _context.next = 11;
15399
+ while (1) switch (_context.prev = _context.next) {
15400
+ case 0:
15401
+ resData = (res === null || res === void 0 ? void 0 : res.data) || [];
15402
+ if (!(resData.status === '0' || resData.code === '000000')) {
15403
+ _context.next = 13;
15398
15404
  break;
15399
- case 9:
15400
- dataList = data && Array.isArray(data) ? data : data && [data] || [];
15401
- coverData = dataList.length && dataList.map(function (ites) {
15402
- return mapSearchTree(ites);
15403
- }) || [];
15404
- case 11:
15405
- _context.next = 14;
15405
+ }
15406
+ data = resData.data;
15407
+ if (!remoteSource.converter) {
15408
+ _context.next = 9;
15406
15409
  break;
15407
- case 13:
15408
- coverData = [];
15409
- case 14:
15410
- setTreeData(coverData);
15411
- ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
15412
- case 16:
15413
- case "end":
15414
- return _context.stop();
15415
- }
15410
+ }
15411
+ _context.next = 6;
15412
+ return remoteSource.converter({
15413
+ data: [data]
15414
+ });
15415
+ case 6:
15416
+ coverData = _context.sent;
15417
+ _context.next = 11;
15418
+ break;
15419
+ case 9:
15420
+ dataList = data && Array.isArray(data) ? data : data && [data] || [];
15421
+ coverData = dataList.length && dataList.map(function (ites) {
15422
+ return mapSearchTree(ites);
15423
+ }) || [];
15424
+ case 11:
15425
+ _context.next = 14;
15426
+ break;
15427
+ case 13:
15428
+ coverData = [];
15429
+ case 14:
15430
+ setTreeData(coverData);
15431
+ ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
15432
+ case 16:
15433
+ case "end":
15434
+ return _context.stop();
15416
15435
  }
15417
15436
  }, _callee);
15418
15437
  }));
@@ -15600,7 +15619,7 @@ var BusinessTreeSearchSelect = function BusinessTreeSearchSelect(props) {
15600
15619
  }, [props === null || props === void 0 ? void 0 : props.value]);
15601
15620
  return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(MemoTreeSearchSelect, _objectSpread2({}, currentProps)));
15602
15621
  };
15603
- var index$1 = /*#__PURE__*/React__default['default'].memo(BusinessTreeSearchSelect, function (props, nextProps) {
15622
+ var index$2 = /*#__PURE__*/React__default['default'].memo(BusinessTreeSearchSelect, function (props, nextProps) {
15604
15623
  if (props && props.labelInValue && props.value && JSON.stringify(props.value) !== JSON.stringify(nextProps.value)) {
15605
15624
  return false;
15606
15625
  }
@@ -15613,7 +15632,7 @@ var index$1 = /*#__PURE__*/React__default['default'].memo(BusinessTreeSearchSele
15613
15632
  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";
15614
15633
  styleInject(css_248z$8);
15615
15634
 
15616
- var index$2 = (function (props) {
15635
+ var index$3 = (function (props) {
15617
15636
  var _props$formStatusMapp = props.formStatusMapping,
15618
15637
  formStatusMapping = _props$formStatusMapp === void 0 ? [] : _props$formStatusMapp;
15619
15638
  return /*#__PURE__*/React__default['default'].createElement("div", {
@@ -17037,7 +17056,7 @@ var iconMap = {
17037
17056
  src: moreIcon
17038
17057
  })
17039
17058
  };
17040
- var index$3 = (function (props) {
17059
+ var index$4 = (function (props) {
17041
17060
  var _useLocation = umi.useLocation(),
17042
17061
  pathname = _useLocation.pathname;
17043
17062
  var _useState = React.useState(pathname + 'id'),
@@ -17254,7 +17273,7 @@ var css_248z$d = ".home_page_head {\n height: 54px;\n display: flex;\n justif
17254
17273
  styleInject(css_248z$d);
17255
17274
 
17256
17275
  var _excluded$c = ["children"];
17257
- var index$4 = (function (props) {
17276
+ var index$5 = (function (props) {
17258
17277
  var _useLocation = umi.useLocation(),
17259
17278
  pathname = _useLocation.pathname;
17260
17279
  var _useState = React.useState(pathname + 'id'),
@@ -19530,21 +19549,19 @@ function _outLogin() {
19530
19549
  _outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
19531
19550
  var res;
19532
19551
  return _regeneratorRuntime().wrap(function _callee$(_context) {
19533
- while (1) {
19534
- switch (_context.prev = _context.next) {
19535
- case 0:
19536
- _context.next = 2;
19537
- return axios__default['default']({
19538
- url: '/user/web/loginOut',
19539
- method: 'GET'
19540
- });
19541
- case 2:
19542
- res = _context.sent;
19543
- return _context.abrupt("return", res);
19544
- case 4:
19545
- case "end":
19546
- return _context.stop();
19547
- }
19552
+ while (1) switch (_context.prev = _context.next) {
19553
+ case 0:
19554
+ _context.next = 2;
19555
+ return axios__default['default']({
19556
+ url: '/user/web/loginOut',
19557
+ method: 'GET'
19558
+ });
19559
+ case 2:
19560
+ res = _context.sent;
19561
+ return _context.abrupt("return", res);
19562
+ case 4:
19563
+ case "end":
19564
+ return _context.stop();
19548
19565
  }
19549
19566
  }, _callee);
19550
19567
  }));
@@ -19673,31 +19690,29 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
19673
19690
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
19674
19691
  var sessionId;
19675
19692
  return _regeneratorRuntime().wrap(function _callee$(_context) {
19676
- while (1) {
19677
- switch (_context.prev = _context.next) {
19678
- case 0:
19679
- _context.next = 2;
19680
- return getSessionId();
19681
- case 2:
19682
- sessionId = _context.sent;
19683
- _context.next = 5;
19684
- return outLogin({
19685
- sessionId: sessionId
19693
+ while (1) switch (_context.prev = _context.next) {
19694
+ case 0:
19695
+ _context.next = 2;
19696
+ return getSessionId();
19697
+ case 2:
19698
+ sessionId = _context.sent;
19699
+ _context.next = 5;
19700
+ return outLogin({
19701
+ sessionId: sessionId
19702
+ });
19703
+ case 5:
19704
+ // @ts-ignore
19705
+ if (BUILD_TYPE) {
19706
+ antd.message.success('退出登录成功');
19707
+ umi.history.replace({
19708
+ pathname: '/user/login'
19686
19709
  });
19687
- case 5:
19688
- // @ts-ignore
19689
- if (BUILD_TYPE) {
19690
- antd.message.success('退出登录成功');
19691
- umi.history.replace({
19692
- pathname: '/user/login'
19693
- });
19694
- } else {
19695
- setLoginOutPath();
19696
- }
19697
- case 6:
19698
- case "end":
19699
- return _context.stop();
19700
- }
19710
+ } else {
19711
+ setLoginOutPath();
19712
+ }
19713
+ case 6:
19714
+ case "end":
19715
+ return _context.stop();
19701
19716
  }
19702
19717
  }, _callee);
19703
19718
  }));
@@ -21525,6 +21540,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
21525
21540
  showSubMenu: isShow
21526
21541
  });
21527
21542
  }, 500);
21543
+ //设置tabs标签左右滚动
21528
21544
  _this.setTabNavTransLate = function (num) {
21529
21545
  var _document$getElementB, _document$getElementB2, _document$getElementB3, _document$getElementB4, _document$defaultView;
21530
21546
  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];
@@ -22205,14 +22221,12 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
22205
22221
  request: function () {
22206
22222
  var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
22207
22223
  return _regeneratorRuntime().wrap(function _callee$(_context) {
22208
- while (1) {
22209
- switch (_context.prev = _context.next) {
22210
- case 0:
22211
- return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
22212
- case 1:
22213
- case "end":
22214
- return _context.stop();
22215
- }
22224
+ while (1) switch (_context.prev = _context.next) {
22225
+ case 0:
22226
+ return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
22227
+ case 1:
22228
+ case "end":
22229
+ return _context.stop();
22216
22230
  }
22217
22231
  }, _callee);
22218
22232
  }));
@@ -22350,7 +22364,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
22350
22364
  }]);
22351
22365
  return WrapperComponent;
22352
22366
  }(React__default['default'].Component);
22353
- var index$5 = (function (props) {
22367
+ var index$6 = (function (props) {
22354
22368
  var _useModel = umi.useModel('@@initialState'),
22355
22369
  _useModel$initialStat = _useModel.initialState,
22356
22370
  initialState = _useModel$initialStat === void 0 ? {} : _useModel$initialStat;
@@ -22591,7 +22605,7 @@ var FixedScrollBar = function FixedScrollBar(_ref, ref) {
22591
22605
  };
22592
22606
  var FixedScrollBar$1 = /*#__PURE__*/React__default['default'].forwardRef(FixedScrollBar);
22593
22607
 
22594
- var index$6 = /*#__PURE__*/React.forwardRef(function (props, ref) {
22608
+ var index$7 = /*#__PURE__*/React.forwardRef(function (props, ref) {
22595
22609
  var _useState = React.useState(false),
22596
22610
  _useState2 = _slicedToArray(_useState, 2),
22597
22611
  show = _useState2[0],
@@ -29884,28 +29898,26 @@ var valueType = {
29884
29898
  var getDynamicDict = /*#__PURE__*/function () {
29885
29899
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
29886
29900
  return _regeneratorRuntime().wrap(function _callee$(_context) {
29887
- while (1) {
29888
- switch (_context.prev = _context.next) {
29889
- case 0:
29890
- _context.next = 2;
29891
- return bssula.request({
29892
- url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
29893
- converter: function converter(_ref2) {
29894
- var data = _ref2.data;
29895
- return data === null || data === void 0 ? void 0 : data.map(function (d) {
29896
- return {
29897
- text: d.name,
29898
- value: d.code || d.brandCode
29899
- };
29900
- });
29901
- }
29902
- });
29903
- case 2:
29904
- return _context.abrupt("return", _context.sent);
29905
- case 3:
29906
- case "end":
29907
- return _context.stop();
29908
- }
29901
+ while (1) switch (_context.prev = _context.next) {
29902
+ case 0:
29903
+ _context.next = 2;
29904
+ return bssula.request({
29905
+ url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
29906
+ converter: function converter(_ref2) {
29907
+ var data = _ref2.data;
29908
+ return data === null || data === void 0 ? void 0 : data.map(function (d) {
29909
+ return {
29910
+ text: d.name,
29911
+ value: d.code || d.brandCode
29912
+ };
29913
+ });
29914
+ }
29915
+ });
29916
+ case 2:
29917
+ return _context.abrupt("return", _context.sent);
29918
+ case 3:
29919
+ case "end":
29920
+ return _context.stop();
29909
29921
  }
29910
29922
  }, _callee);
29911
29923
  }));
@@ -29955,55 +29967,53 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
29955
29967
  ahooks.useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
29956
29968
  var _ref$current, source;
29957
29969
  return _regeneratorRuntime().wrap(function _callee$(_context) {
29958
- while (1) {
29959
- switch (_context.prev = _context.next) {
29960
- case 0:
29961
- _context.next = 2;
29962
- return setIsShowAndType(function (prev) {
29963
- if (record.inputType === 20 || record.inputType === 30) {
29964
- return {
29965
- isShow: true,
29966
- singleOrMultiple: record.inputType,
29967
- type: record.choiceType
29968
- };
29969
- }
29970
- return prev;
29971
- });
29972
- case 2:
29973
- if (!record.dictionaryCode) {
29974
- _context.next = 17;
29975
- break;
29976
- }
29977
- if (!(record.choiceType == 20)) {
29978
- _context.next = 7;
29979
- break;
29970
+ while (1) switch (_context.prev = _context.next) {
29971
+ case 0:
29972
+ _context.next = 2;
29973
+ return setIsShowAndType(function (prev) {
29974
+ if (record.inputType === 20 || record.inputType === 30) {
29975
+ return {
29976
+ isShow: true,
29977
+ singleOrMultiple: record.inputType,
29978
+ type: record.choiceType
29979
+ };
29980
29980
  }
29981
- _context.t0 = getDictionarySource(record.dictionaryCode);
29982
- _context.next = 15;
29981
+ return prev;
29982
+ });
29983
+ case 2:
29984
+ if (!record.dictionaryCode) {
29985
+ _context.next = 17;
29983
29986
  break;
29984
- case 7:
29985
- if (!(record.choiceType == 30)) {
29986
- _context.next = 13;
29987
- break;
29988
- }
29989
- _context.next = 10;
29990
- return getDynamicDict(record.dictionaryCode);
29991
- case 10:
29992
- _context.t1 = _context.sent;
29993
- _context.next = 14;
29987
+ }
29988
+ if (!(record.choiceType == 20)) {
29989
+ _context.next = 7;
29994
29990
  break;
29995
- case 13:
29996
- _context.t1 = [];
29997
- case 14:
29998
- _context.t0 = _context.t1;
29999
- case 15:
30000
- source = _context.t0;
30001
- // @ts-ignore
30002
- ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
30003
- case 17:
30004
- case "end":
30005
- return _context.stop();
30006
- }
29991
+ }
29992
+ _context.t0 = getDictionarySource(record.dictionaryCode);
29993
+ _context.next = 15;
29994
+ break;
29995
+ case 7:
29996
+ if (!(record.choiceType == 30)) {
29997
+ _context.next = 13;
29998
+ break;
29999
+ }
30000
+ _context.next = 10;
30001
+ return getDynamicDict(record.dictionaryCode);
30002
+ case 10:
30003
+ _context.t1 = _context.sent;
30004
+ _context.next = 14;
30005
+ break;
30006
+ case 13:
30007
+ _context.t1 = [];
30008
+ case 14:
30009
+ _context.t0 = _context.t1;
30010
+ case 15:
30011
+ source = _context.t0;
30012
+ // @ts-ignore
30013
+ ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
30014
+ case 17:
30015
+ case "end":
30016
+ return _context.stop();
30007
30017
  }
30008
30018
  }, _callee);
30009
30019
  })));
@@ -30071,30 +30081,28 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
30071
30081
  var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
30072
30082
  var form, values, name, relates, source;
30073
30083
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
30074
- while (1) {
30075
- switch (_context2.prev = _context2.next) {
30076
- case 0:
30077
- form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
30078
- if (values[0]) {
30079
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
30080
- form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
30081
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
30082
- }
30083
- if (!values[1]) {
30084
- _context2.next = 9;
30085
- break;
30086
- }
30087
- _context2.next = 5;
30088
- return getDynamicDict(record.dictionaryCode || values[1]);
30089
- case 5:
30090
- source = _context2.sent;
30084
+ while (1) switch (_context2.prev = _context2.next) {
30085
+ case 0:
30086
+ form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
30087
+ if (values[0]) {
30091
30088
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
30092
30089
  form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
30093
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
30094
- case 9:
30095
- case "end":
30096
- return _context2.stop();
30097
- }
30090
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
30091
+ }
30092
+ if (!values[1]) {
30093
+ _context2.next = 9;
30094
+ break;
30095
+ }
30096
+ _context2.next = 5;
30097
+ return getDynamicDict(record.dictionaryCode || values[1]);
30098
+ case 5:
30099
+ source = _context2.sent;
30100
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
30101
+ form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
30102
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
30103
+ case 9:
30104
+ case "end":
30105
+ return _context2.stop();
30098
30106
  }
30099
30107
  }, _callee2);
30100
30108
  }));
@@ -30554,43 +30562,41 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
30554
30562
  var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
30555
30563
  var values, name, form, source;
30556
30564
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
30557
- while (1) {
30558
- switch (_context3.prev = _context3.next) {
30559
- case 0:
30560
- values = _ref10.values, name = _ref10.name, form = _ref10.form;
30561
- if (values[1] === 40) {
30562
- form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
30563
- form.setFieldVisible(name, false);
30564
- }
30565
- if (!(values[0] === 30)) {
30566
- _context3.next = 10;
30567
- break;
30568
- }
30569
- _context3.next = 5;
30570
- return bssula.request({
30571
- url: '/basic/dictDynamicItem/queryList',
30572
- converter: function converter(_ref11) {
30573
- var data = _ref11.data;
30574
- return data === null || data === void 0 ? void 0 : data.map(function (d) {
30575
- return {
30576
- text: d.dictCode,
30577
- value: d.dictCode
30578
- };
30579
- });
30580
- }
30581
- });
30582
- case 5:
30583
- source = _context3.sent;
30584
- form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
30585
- form.setFieldVisible(name, true);
30586
- _context3.next = 11;
30587
- break;
30588
- case 10:
30565
+ while (1) switch (_context3.prev = _context3.next) {
30566
+ case 0:
30567
+ values = _ref10.values, name = _ref10.name, form = _ref10.form;
30568
+ if (values[1] === 40) {
30569
+ form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
30589
30570
  form.setFieldVisible(name, false);
30590
- case 11:
30591
- case "end":
30592
- return _context3.stop();
30593
- }
30571
+ }
30572
+ if (!(values[0] === 30)) {
30573
+ _context3.next = 10;
30574
+ break;
30575
+ }
30576
+ _context3.next = 5;
30577
+ return bssula.request({
30578
+ url: '/basic/dictDynamicItem/queryList',
30579
+ converter: function converter(_ref11) {
30580
+ var data = _ref11.data;
30581
+ return data === null || data === void 0 ? void 0 : data.map(function (d) {
30582
+ return {
30583
+ text: d.dictCode,
30584
+ value: d.dictCode
30585
+ };
30586
+ });
30587
+ }
30588
+ });
30589
+ case 5:
30590
+ source = _context3.sent;
30591
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
30592
+ form.setFieldVisible(name, true);
30593
+ _context3.next = 11;
30594
+ break;
30595
+ case 10:
30596
+ form.setFieldVisible(name, false);
30597
+ case 11:
30598
+ case "end":
30599
+ return _context3.stop();
30594
30600
  }
30595
30601
  }, _callee3);
30596
30602
  }));
@@ -30779,66 +30785,64 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
30779
30785
  var _ref$current4, _res$editableStatus;
30780
30786
  var res, _res$defaultValue;
30781
30787
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
30782
- while (1) {
30783
- switch (_context4.prev = _context4.next) {
30784
- case 0:
30785
- _context4.next = 2;
30786
- return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
30787
- case 2:
30788
- res = _context4.sent;
30789
- res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
30790
- res.fieldGroup = record.fieldGroup;
30791
- res.businessType = record.businessType;
30792
- res.info = {
30793
- enumeration: res.enumeration,
30794
- dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
30795
- formula: res.formula,
30796
- scale: res.scale,
30797
- variable: res.variable
30798
- };
30799
- res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
30800
- res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
30801
- res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
30802
- if (res.inputType === 40) {
30803
- res.valueType = 22;
30788
+ while (1) switch (_context4.prev = _context4.next) {
30789
+ case 0:
30790
+ _context4.next = 2;
30791
+ return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
30792
+ case 2:
30793
+ res = _context4.sent;
30794
+ res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
30795
+ res.fieldGroup = record.fieldGroup;
30796
+ res.businessType = record.businessType;
30797
+ res.info = {
30798
+ enumeration: res.enumeration,
30799
+ dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
30800
+ formula: res.formula,
30801
+ scale: res.scale,
30802
+ variable: res.variable
30803
+ };
30804
+ res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
30805
+ res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
30806
+ res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
30807
+ if (res.inputType === 40) {
30808
+ res.valueType = 22;
30809
+ }
30810
+ // 把数组处理成文本
30811
+ if (res.inputType === 30) {
30812
+ if (res.defaultValue) {
30813
+ res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
30804
30814
  }
30805
- // 把数组处理成文本
30806
- if (res.inputType === 30) {
30807
- if (res.defaultValue) {
30808
- res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
30809
- }
30815
+ }
30816
+ res.fieldMapping = res.fieldMapping || '';
30817
+ delete res.formula;
30818
+ delete res.showValue;
30819
+ if (!(mode === 'create')) {
30820
+ _context4.next = 18;
30821
+ break;
30822
+ }
30823
+ bssula.request({
30824
+ url: "/basic/flow/businessField",
30825
+ method: 'POST',
30826
+ params: res,
30827
+ successMessage: '创建成功!',
30828
+ converter: function converter() {
30829
+ onParentOk();
30810
30830
  }
30811
- res.fieldMapping = res.fieldMapping || '';
30812
- delete res.formula;
30813
- delete res.showValue;
30814
- if (!(mode === 'create')) {
30815
- _context4.next = 18;
30816
- break;
30831
+ });
30832
+ return _context4.abrupt("return");
30833
+ case 18:
30834
+ bssula.request({
30835
+ url: "/basic/flow/businessField/".concat(record.id),
30836
+ method: 'PATCH',
30837
+ params: res,
30838
+ successMessage: '修改成功!',
30839
+ converter: function converter() {
30840
+ onParentOk();
30817
30841
  }
30818
- bssula.request({
30819
- url: "/basic/flow/businessField",
30820
- method: 'POST',
30821
- params: res,
30822
- successMessage: '创建成功!',
30823
- converter: function converter() {
30824
- onParentOk();
30825
- }
30826
- });
30827
- return _context4.abrupt("return");
30828
- case 18:
30829
- bssula.request({
30830
- url: "/basic/flow/businessField/".concat(record.id),
30831
- method: 'PATCH',
30832
- params: res,
30833
- successMessage: '修改成功!',
30834
- converter: function converter() {
30835
- onParentOk();
30836
- }
30837
- });
30838
- case 19:
30839
- case "end":
30840
- return _context4.stop();
30841
- }
30842
+ });
30843
+ case 19:
30844
+ case "end":
30845
+ return _context4.stop();
30842
30846
  }
30843
30847
  }, _callee4);
30844
30848
  }));
@@ -31308,24 +31312,24 @@ exports.AddSkcSelect = AddSkcSelect;
31308
31312
  exports.AddSkuSelect = AddSkuSelect;
31309
31313
  exports.AddSpuSelect = AddSpuSelect;
31310
31314
  exports.BillEntry = BillEntry;
31311
- exports.BsLayout = index$5;
31315
+ exports.BsLayout = index$6;
31312
31316
  exports.BsSulaQueryTable = BsSulaQueryTable;
31313
31317
  exports.BusinessSearchSelect = BusinessSearchSelect$1;
31314
- exports.BusinessTreeSearchSelect = index$1;
31315
- exports.CheckOneUser = index;
31318
+ exports.BusinessTreeSearchSelect = index$2;
31319
+ exports.CheckOneUser = index$1;
31316
31320
  exports.ColumnSettingTable = ColumnSettingTable;
31317
31321
  exports.CommodityEntry = CommodityEntry;
31318
31322
  exports.DataImport = DataImport;
31319
31323
  exports.DataValidation = DataValidation;
31320
- exports.DetailPageWrapper = index$3;
31324
+ exports.DetailPageWrapper = index$4;
31321
31325
  exports.ExportIcon = ExportIcon;
31322
31326
  exports.GuideWrapper = GuideWrapper;
31323
- exports.HomePageWrapper = index$4;
31327
+ exports.HomePageWrapper = index$5;
31324
31328
  exports.JsonQueryTable = JsonQueryTable;
31325
- exports.MoreTreeTable = index$6;
31329
+ exports.MoreTreeTable = index$7;
31326
31330
  exports.QueryMutipleInput = QueryMutipleInput;
31327
31331
  exports.SearchSelect = SearchSelect;
31328
- exports.StateFlow = index$2;
31332
+ exports.StateFlow = index$3;
31329
31333
  exports.SulaColumnSettingTable = ColumnSettingSulaTable;
31330
31334
  exports.TableColumnSetting = TableColumnSetting;
31331
31335
  exports.TreeSearchSelect = TreeSearchSelect;