@bit-sun/business-component 2.2.47 → 2.2.48

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 (186) 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 +669 -636
  14. package/dist/index.js +676 -643
  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 +77 -77
  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/components/Business/AddSelectBusiness/index.md +161 -161
  51. package/src/components/Business/AddSelectBusiness/index.tsx +861 -861
  52. package/src/components/Business/BsLayouts/Components/AllFunc/drawContent.tsx +111 -111
  53. package/src/components/Business/BsLayouts/Components/AllFunc/index.less +153 -153
  54. package/src/components/Business/BsLayouts/Components/AllFunc/index.tsx +70 -70
  55. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.less +90 -90
  56. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.tsx +37 -37
  57. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.tsx +242 -242
  58. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.tsx +384 -384
  59. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.tsx +285 -285
  60. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.tsx +74 -74
  61. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/drawContent.less +170 -170
  62. package/src/components/Business/BsLayouts/Components/CustomerMenu/index.less +64 -64
  63. package/src/components/Business/BsLayouts/Components/CustomerMenu/index.tsx +153 -153
  64. package/src/components/Business/BsLayouts/Components/GlobalHeader/index.less +72 -72
  65. package/src/components/Business/BsLayouts/Components/GlobalHeader/index.tsx +157 -157
  66. package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +85 -85
  67. package/src/components/Business/BsLayouts/Components/RightContent/home.less +218 -218
  68. package/src/components/Business/BsLayouts/Components/RightContent/index.tsx +155 -155
  69. package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +160 -160
  70. package/src/components/Business/BsLayouts/Components/SearchFunc/index.tsx +75 -75
  71. package/src/components/Business/BsLayouts/index.less +79 -79
  72. package/src/components/Business/BsLayouts/index.tsx +1484 -1484
  73. package/src/components/Business/BsLayouts/service.ts +10 -10
  74. package/src/components/Business/BsLayouts/utils.tsx +203 -203
  75. package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +564 -564
  76. package/src/components/Business/BsSulaQueryTable/index.less +221 -221
  77. package/src/components/Business/BsSulaQueryTable/index.tsx +527 -527
  78. package/src/components/Business/BsSulaQueryTable/setting.tsx +832 -832
  79. package/src/components/Business/BsSulaQueryTable/utils.less +65 -65
  80. package/src/components/Business/BsSulaQueryTable/utils.tsx +688 -688
  81. package/src/components/Business/CommodityEntry/index.md +70 -70
  82. package/src/components/Business/CommodityEntry/index.tsx +80 -80
  83. package/src/components/Business/CommonAlert/index.tsx +23 -23
  84. package/src/components/Business/CommonGuideWrapper/index.less +111 -111
  85. package/src/components/Business/CommonGuideWrapper/index.md +39 -39
  86. package/src/components/Business/CommonGuideWrapper/index.tsx +83 -83
  87. package/src/components/Business/DetailPageWrapper/index.less +79 -79
  88. package/src/components/Business/DetailPageWrapper/index.tsx +313 -313
  89. package/src/components/Business/DetailPageWrapper/utils.tsx +100 -100
  90. package/src/components/Business/HomePageWrapper/index.less +33 -33
  91. package/src/components/Business/HomePageWrapper/index.md +45 -45
  92. package/src/components/Business/HomePageWrapper/index.tsx +162 -162
  93. package/src/components/Business/JsonQueryTable/components/FieldsModifyModal.tsx +824 -824
  94. package/src/components/Business/JsonQueryTable/components/FieldsSettingsTable.tsx +201 -201
  95. package/src/components/Business/JsonQueryTable/components/Formula.tsx +205 -205
  96. package/src/components/Business/JsonQueryTable/components/MaintainOptions.tsx +127 -127
  97. package/src/components/Business/JsonQueryTable/configButton/index.js +20 -20
  98. package/src/components/Business/JsonQueryTable/configTree/component/compactArrayView.js +25 -25
  99. package/src/components/Business/JsonQueryTable/configTree/component/compactObjectView.js +30 -30
  100. package/src/components/Business/JsonQueryTable/configTree/index.js +82 -82
  101. package/src/components/Business/JsonQueryTable/configTree/index.less +44 -44
  102. package/src/components/Business/JsonQueryTable/configTree/parser/highlight.js +57 -57
  103. package/src/components/Business/JsonQueryTable/configTree/parser/index.js +124 -124
  104. package/src/components/Business/JsonQueryTable/configTree/render/iconRender.js +29 -29
  105. package/src/components/Business/JsonQueryTable/configTree/render/nameRender.js +22 -22
  106. package/src/components/Business/JsonQueryTable/configTree/treeNode.js +116 -116
  107. package/src/components/Business/JsonQueryTable/drawer/index.tsx +12 -12
  108. package/src/components/Business/JsonQueryTable/function.ts +62 -62
  109. package/src/components/Business/JsonQueryTable/index.less +16 -16
  110. package/src/components/Business/JsonQueryTable/index.md +328 -328
  111. package/src/components/Business/JsonQueryTable/index.tsx +320 -320
  112. package/src/components/Business/JsonQueryTable/jsonEditor/index.js +346 -346
  113. package/src/components/Business/JsonQueryTable/jsonEditor/index.less +22 -22
  114. package/src/components/Business/JsonQueryTable/jsonEditor/lint/basicType.js +147 -147
  115. package/src/components/Business/JsonQueryTable/jsonEditor/lint/index.js +389 -389
  116. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/actions.js +118 -118
  117. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/dependency.js +22 -22
  118. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/index.js +21 -21
  119. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/request.js +65 -65
  120. package/src/components/Business/JsonQueryTable/static.ts +390 -390
  121. package/src/components/Business/SearchSelect/BusinessUtils.ts +1732 -1732
  122. package/src/components/Business/SearchSelect/common.ts +53 -53
  123. package/src/components/Business/SearchSelect/index.md +1319 -1319
  124. package/src/components/Business/SearchSelect/index.tsx +51 -51
  125. package/src/components/Business/SearchSelect/utils.ts +100 -100
  126. package/src/components/Business/StateFlow/index.less +130 -130
  127. package/src/components/Business/StateFlow/index.md +60 -60
  128. package/src/components/Business/StateFlow/index.tsx +29 -29
  129. package/src/components/Business/TreeSearchSelect/index.md +154 -154
  130. package/src/components/Business/TreeSearchSelect/index.tsx +34 -34
  131. package/src/components/Business/TreeSearchSelect/utils.ts +69 -69
  132. package/src/components/Business/columnSettingTable/columnSetting.tsx +764 -764
  133. package/src/components/Business/columnSettingTable/index.less +247 -247
  134. package/src/components/Business/columnSettingTable/index.md +357 -357
  135. package/src/components/Business/columnSettingTable/index.tsx +232 -232
  136. package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +240 -240
  137. package/src/components/Business/columnSettingTable/utils.tsx +68 -68
  138. package/src/components/Business/moreTreeTable/FixedScrollBar.tsx +86 -86
  139. package/src/components/Business/moreTreeTable/hooks/useSticky.ts +21 -21
  140. package/src/components/Business/moreTreeTable/index.less +99 -99
  141. package/src/components/Business/moreTreeTable/index.md +448 -448
  142. package/src/components/Business/moreTreeTable/index.tsx +380 -380
  143. package/src/components/Business/moreTreeTable/utils.ts +126 -126
  144. package/src/components/Functional/AddSelect/helps.ts +14 -14
  145. package/src/components/Functional/AddSelect/index.less +367 -367
  146. package/src/components/Functional/AddSelect/index.md +155 -155
  147. package/src/components/Functional/AddSelect/index.tsx +1282 -1279
  148. package/src/components/Functional/BillEntry/index.less +371 -371
  149. package/src/components/Functional/BillEntry/index.md +39 -39
  150. package/src/components/Functional/BillEntry/index.tsx +772 -772
  151. package/src/components/Functional/DataImport/index.less +63 -63
  152. package/src/components/Functional/DataImport/index.md +44 -44
  153. package/src/components/Functional/DataImport/index.tsx +695 -695
  154. package/src/components/Functional/DataValidation/index.less +63 -63
  155. package/src/components/Functional/DataValidation/index.md +39 -39
  156. package/src/components/Functional/DataValidation/index.tsx +687 -687
  157. package/src/components/Functional/ExportFunctions/ExportIcon/index.md +37 -37
  158. package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +59 -59
  159. package/src/components/Functional/QueryMutipleInput/index.less +37 -37
  160. package/src/components/Functional/QueryMutipleInput/index.md +33 -33
  161. package/src/components/Functional/QueryMutipleInput/index.tsx +128 -128
  162. package/src/components/Functional/SearchSelect/index.less +115 -115
  163. package/src/components/Functional/SearchSelect/index.md +141 -141
  164. package/src/components/Functional/SearchSelect/index.tsx +849 -849
  165. package/src/components/Functional/SearchSelect/utils.ts +3 -3
  166. package/src/components/Functional/TreeSearchSelect/index.md +47 -47
  167. package/src/components/Functional/TreeSearchSelect/index.tsx +162 -162
  168. package/src/index.ts +34 -34
  169. package/src/plugin/TableColumnSetting/index.less +247 -247
  170. package/src/plugin/TableColumnSetting/index.md +50 -50
  171. package/src/plugin/TableColumnSetting/index.tsx +724 -724
  172. package/src/plugin/TableColumnSetting/utils.ts +19 -19
  173. package/src/styles/bsDefault.less +1912 -1912
  174. package/src/utils/CheckOneUser/index.md +39 -39
  175. package/src/utils/CheckOneUser/index.ts +51 -51
  176. package/src/utils/LocalstorageUtils.ts +90 -90
  177. package/src/utils/TableUtils.tsx +18 -18
  178. package/src/utils/checkUtils.ts +39 -39
  179. package/src/utils/enumConfig.ts +11 -11
  180. package/src/utils/getFormMode.js +12 -12
  181. package/src/utils/index.ts +3 -3
  182. package/src/utils/requestUtils.ts +34 -34
  183. package/src/utils/serialize.js +7 -7
  184. package/src/utils/utils.ts +183 -183
  185. package/tsconfig.json +29 -29
  186. 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 = require('lodash/isEqual');
17
+ var isEqual$1 = 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);
36
+ var isEqual__default = /*#__PURE__*/_interopDefaultLegacy(isEqual$1);
37
37
  var ProLayout__default = /*#__PURE__*/_interopDefaultLegacy(ProLayout);
38
38
  var cloneDeep__default = /*#__PURE__*/_interopDefaultLegacy(cloneDeep);
39
39
  var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
@@ -2297,85 +2297,84 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
2297
2297
  });
2298
2298
  }
2299
2299
  // 数组对象处理,对带有特殊标记的name进行处理
2300
- var _loop = function _loop() {
2300
+ for (var key in params) {
2301
2301
  if (Object.prototype.hasOwnProperty.call(params, key)) {
2302
- var element = params[key];
2303
- if (element && key.indexOf('*number*') >= 0) {
2304
- var dataParams = key.split('*number*');
2305
- dataParams.forEach(function (value, index) {
2306
- params[value] = element[index];
2307
- });
2308
- delete params[key];
2309
- } else if (element && key.indexOf('*address*') >= 0) {
2310
- var _dataParams = key.split('*address*');
2311
- _dataParams.forEach(function (value, index) {
2312
- params[value] = element.PCDCode[index];
2313
- });
2314
- delete params[key];
2315
- } else if (element && key.indexOf('*costType*') >= 0) {
2316
- var _dataParams2 = key.split('*costType*');
2317
- // eslint-disable-next-line prefer-destructuring
2318
- params[_dataParams2[0]] = element[1];
2319
- delete params[key];
2320
- } else if (element && key.indexOf('*fullDate*') >= 0) {
2321
- var _dataParams3 = key.split('*fullDate*');
2322
- _dataParams3.forEach(function (value, index) {
2323
- if (index === 0) {
2324
- params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
2325
- } else {
2326
- params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
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;
2327
2335
  }
2328
- });
2329
- delete params[key];
2330
- } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
2331
- var _dataParams4 = key.split('*checkBox*');
2332
- if (element) {
2333
- params[_dataParams4[0]] = 0;
2334
- }
2335
- delete params[key];
2336
- } else if (element && key.indexOf('*cascader*') >= 0) {
2337
- var _dataParams5 = key.split('*cascader*');
2338
- params[_dataParams5[0]] = element[element.length - 1];
2339
- delete params[key];
2340
- } else if (element && key.indexOf('*date*') >= 0) {
2341
- var _dataParams6 = key.split('*date*');
2342
- _dataParams6.forEach(function (value, index) {
2343
- if (index === 0) {
2344
- params[value] = moment(element[index]).format('YYYY-MM-DD');
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
+ }
2345
2367
  } else {
2346
- params[value] = moment(element[index]).format('YYYY-MM-DD');
2368
+ params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
2347
2369
  }
2348
- });
2349
- delete params[key];
2350
- } else if (element && key.indexOf('*') >= 0) {
2351
- var _dataParams7 = key.split('*');
2352
- _dataParams7.forEach(function (value, index) {
2353
- params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
2354
- });
2355
- delete params[key];
2356
- } else if (element && key.indexOf('_selectNumberRange') >= 0) {
2357
- // key = xxxxx_selectNumberRange qp-xxxxx-gt
2358
- var _dataParams8 = key.split('_selectNumberRange')[0];
2359
- if (params[key][0] === 'range') {
2360
- if (params[key][1][0]) {
2361
- params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
2362
- }
2363
- if (params[key][1][1]) {
2364
- params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
2365
- }
2366
- } else {
2367
- params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
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];
2368
2375
  }
2369
- delete params[key];
2370
- } else if (Array.isArray(element)) {
2371
- params[key] = element.join(',');
2372
- } else if (element == null || element === undefined || String(element).trim() === '') {
2373
- delete params[key];
2374
- }
2376
+ })();
2375
2377
  }
2376
- };
2377
- for (var key in params) {
2378
- _loop();
2379
2378
  }
2380
2379
  var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
2381
2380
  pageSize: pageSize,
@@ -3694,41 +3693,52 @@ var setInitialShowColumn = function setInitialShowColumn(tableCode, columns, cal
3694
3693
  callback(showColumns);
3695
3694
  };
3696
3695
 
3697
- var simpleIsEqual = function simpleIsEqual(a, b) {
3698
- return a === b;
3699
- };
3700
-
3701
- function index (resultFn, isEqual) {
3702
- if (isEqual === void 0) {
3703
- isEqual = simpleIsEqual;
3704
- }
3705
-
3706
- var lastThis;
3707
- var lastArgs = [];
3708
- var lastResult;
3709
- var calledOnce = false;
3710
-
3711
- var isNewArgEqualToLast = function isNewArgEqualToLast(newArg, index) {
3712
- return isEqual(newArg, lastArgs[index], index);
3713
- };
3714
-
3715
- var result = function result() {
3716
- for (var _len = arguments.length, newArgs = new Array(_len), _key = 0; _key < _len; _key++) {
3717
- newArgs[_key] = arguments[_key];
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;
3718
3703
  }
3719
-
3720
- if (calledOnce && lastThis === this && newArgs.length === lastArgs.length && newArgs.every(isNewArgEqualToLast)) {
3721
- return lastResult;
3704
+ if (safeIsNaN(first) && safeIsNaN(second)) {
3705
+ return true;
3722
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
+ }
3717
+ }
3718
+ return true;
3719
+ }
3723
3720
 
3724
- lastResult = resultFn.apply(this, newArgs);
3725
- calledOnce = true;
3726
- lastThis = this;
3727
- lastArgs = newArgs;
3728
- return lastResult;
3729
- };
3730
-
3731
- return result;
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;
3740
+ }
3741
+ return memoized;
3732
3742
  }
3733
3743
 
3734
3744
  //! moment.js
@@ -9591,59 +9601,58 @@ var getItemDefaultWidth = function getItemDefaultWidth(item) {
9591
9601
  * @returns 返回处理后的查询参数
9592
9602
  */
9593
9603
  function queryParams(params, flag) {
9594
- var _loop = function _loop() {
9604
+ for (var key in params) {
9595
9605
  if (Object.prototype.hasOwnProperty.call(params, key)) {
9596
- var element = params[key];
9597
- if (element && key.indexOf('*number*') >= 0) {
9598
- var dataParams = key.split('*number*');
9599
- dataParams.forEach(function (value, index) {
9600
- params[value] = element[index];
9601
- });
9602
- delete params[key];
9603
- } else if (element && key.indexOf('*address*') >= 0) {
9604
- var _dataParams = key.split('*address*');
9605
- _dataParams.forEach(function (value, index) {
9606
- params[value] = element.PCDCode[index];
9607
- });
9608
- delete params[key];
9609
- } else if (element && key.indexOf('*costType*') >= 0) {
9610
- var _dataParams2 = key.split('*costType*');
9611
- // eslint-disable-next-line prefer-destructuring
9612
- params[_dataParams2[0]] = element[1];
9613
- delete params[key];
9614
- } else if (element && key.indexOf('*fullDate*') >= 0) {
9615
- var _dataParams3 = key.split('*fullDate*');
9616
- _dataParams3.forEach(function (value, index) {
9617
- if (index === 0) {
9618
- params[value] = hooks(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
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;
9619
9646
  } else {
9620
- params[value] = hooks(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
9647
+ params["qp-".concat(_dataParams5[0], "-like")] = element;
9648
+ params["qp-".concat(_dataParams5[0], "-in")] = null;
9621
9649
  }
9622
- });
9623
- delete params[key];
9624
- } else if (element && key.indexOf('*') >= 0) {
9625
- var _dataParams4 = key.split('*');
9626
- _dataParams4.forEach(function (value, index) {
9627
- params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
9628
- });
9629
- delete params[key];
9630
- } else if (element && key.indexOf('_likeIn_') >= 0) {
9631
- var _dataParams5 = key.split('_likeIn_');
9632
- if (element.indexOf(',') >= 0) {
9633
- params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
9634
- params["qp-".concat(_dataParams5[0], "-like")] = null;
9635
- } else {
9636
- params["qp-".concat(_dataParams5[0], "-like")] = element;
9637
- params["qp-".concat(_dataParams5[0], "-in")] = null;
9650
+ delete params[key];
9651
+ } else if (Array.isArray(element)) {
9652
+ params[key] = element.join(',');
9638
9653
  }
9639
- delete params[key];
9640
- } else if (Array.isArray(element)) {
9641
- params[key] = element.join(',');
9642
- }
9654
+ })();
9643
9655
  }
9644
- };
9645
- for (var key in params) {
9646
- _loop();
9647
9656
  }
9648
9657
  return flag ? params : qs.stringify(params);
9649
9658
  }
@@ -9689,7 +9698,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
9689
9698
  return item;
9690
9699
  });
9691
9700
  };
9692
- var memoizeOneFormatter = index(formatter, isEqual__default['default']);
9701
+ var memoizeOneFormatter = memoizeOne(formatter, isEqual__default['default']);
9693
9702
  var go2BackAndClose = function go2BackAndClose() {
9694
9703
  localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
9695
9704
  umi.history.goBack();
@@ -10173,74 +10182,76 @@ var AddSelect = function AddSelect(props) {
10173
10182
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
10174
10183
  var result;
10175
10184
  return _regeneratorRuntime().wrap(function _callee$(_context) {
10176
- while (1) switch (_context.prev = _context.next) {
10177
- case 0:
10178
- if (!(bType == 'skc' && tList.some(function (i) {
10179
- return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
10180
- }))) {
10181
- _context.next = 3;
10182
- break;
10183
- }
10184
- antd.message.warning('相同skc配码不可设置相同哦');
10185
- return _context.abrupt("return", false);
10186
- case 3:
10187
- if (!(bType == 'spu')) {
10188
- _context.next = 26;
10189
- break;
10190
- }
10191
- if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
10192
- return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
10193
- }))) {
10194
- _context.next = 7;
10195
- break;
10196
- }
10197
- antd.message.warning('相同商品相同配码颜色不可设置相同哦');
10198
- return _context.abrupt("return", false);
10199
- case 7:
10200
- if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
10201
- _context.next = 10;
10202
- break;
10203
- }
10204
- antd.message.warning('请先选择颜色!');
10205
- return _context.abrupt("return", false);
10206
- case 10:
10207
- if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
10208
- return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
10209
- }))) {
10210
- _context.next = 13;
10211
- break;
10212
- }
10213
- antd.message.warning('相同商品相同颜色配码不可设置相同哦');
10214
- return _context.abrupt("return", false);
10215
- case 13:
10216
- if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
10217
- _context.next = 26;
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;
10218
10242
  break;
10219
- }
10220
- result = true;
10221
- _context.prev = 15;
10222
- _context.next = 18;
10223
- return checkSpuMatchCode({
10224
- skcCode: recordItem[recordKey],
10225
- matchingCode: changeValue,
10226
- ext1: recordItem.colorName
10227
- });
10228
- case 18:
10229
- result = _context.sent;
10230
- result = true;
10231
- _context.next = 25;
10232
- break;
10233
- case 22:
10234
- _context.prev = 22;
10235
- _context.t0 = _context["catch"](15);
10236
- result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
10237
- case 25:
10238
- return _context.abrupt("return", result);
10239
- case 26:
10240
- return _context.abrupt("return", true);
10241
- case 27:
10242
- case "end":
10243
- return _context.stop();
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
+ }
10244
10255
  }
10245
10256
  }, _callee, null, [[15, 22]]);
10246
10257
  }));
@@ -10432,27 +10443,29 @@ var AddSelect = function AddSelect(props) {
10432
10443
  var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
10433
10444
  var isConformToTheRules, newPopValue;
10434
10445
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
10435
- while (1) switch (_context2.prev = _context2.next) {
10436
- case 0:
10437
- _context2.next = 2;
10438
- return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
10439
- case 2:
10440
- isConformToTheRules = _context2.sent;
10441
- if (isConformToTheRules) {
10442
- record[item.dataIndex] = value;
10443
- } else {
10444
- record[item.dataIndex] = null;
10445
- }
10446
- newPopValue = popvalue.map(function (i, innerIndex) {
10447
- if (innerIndex == index) {
10448
- i[item.dataIndex] = record[item.dataIndex];
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;
10449
10457
  }
10450
- return i;
10451
- });
10452
- setPopValue(newPopValue);
10453
- case 6:
10454
- case "end":
10455
- return _context2.stop();
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
+ }
10456
10469
  }
10457
10470
  }, _callee2);
10458
10471
  }));
@@ -10512,85 +10525,84 @@ var AddSelect = function AddSelect(props) {
10512
10525
  });
10513
10526
  }
10514
10527
  // 数组对象处理,对带有特殊标记的name进行处理
10515
- var _loop = function _loop() {
10528
+ for (var key in params) {
10516
10529
  if (Object.prototype.hasOwnProperty.call(params, key)) {
10517
- var element = params[key];
10518
- if (element && key.indexOf('*number*') >= 0) {
10519
- var dataParams = key.split('*number*');
10520
- dataParams.forEach(function (value, index) {
10521
- params[value] = element[index];
10522
- });
10523
- delete params[key];
10524
- } else if (element && key.indexOf('*address*') >= 0) {
10525
- var _dataParams = key.split('*address*');
10526
- _dataParams.forEach(function (value, index) {
10527
- params[value] = element.PCDCode[index];
10528
- });
10529
- delete params[key];
10530
- } else if (element && key.indexOf('*costType*') >= 0) {
10531
- var _dataParams2 = key.split('*costType*');
10532
- // eslint-disable-next-line prefer-destructuring
10533
- params[_dataParams2[0]] = element[1];
10534
- delete params[key];
10535
- } else if (element && key.indexOf('*fullDate*') >= 0) {
10536
- var _dataParams3 = key.split('*fullDate*');
10537
- _dataParams3.forEach(function (value, index) {
10538
- if (index === 0) {
10539
- params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
10540
- } else {
10541
- params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
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;
10542
10563
  }
10543
- });
10544
- delete params[key];
10545
- } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
10546
- var _dataParams4 = key.split('*checkBox*');
10547
- if (element) {
10548
- params[_dataParams4[0]] = 0;
10549
- }
10550
- delete params[key];
10551
- } else if (element && key.indexOf('*cascader*') >= 0) {
10552
- var _dataParams5 = key.split('*cascader*');
10553
- params[_dataParams5[0]] = element[element.length - 1];
10554
- delete params[key];
10555
- } else if (element && key.indexOf('*date*') >= 0) {
10556
- var _dataParams6 = key.split('*date*');
10557
- _dataParams6.forEach(function (value, index) {
10558
- if (index === 0) {
10559
- params[value] = moment(element[index]).format('YYYY-MM-DD');
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
+ }
10560
10595
  } else {
10561
- params[value] = moment(element[index]).format('YYYY-MM-DD');
10562
- }
10563
- });
10564
- delete params[key];
10565
- } else if (element && key.indexOf('*') >= 0) {
10566
- var _dataParams7 = key.split('*');
10567
- _dataParams7.forEach(function (value, index) {
10568
- params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
10569
- });
10570
- delete params[key];
10571
- } else if (element && key.indexOf('_selectNumberRange') >= 0) {
10572
- // key = xxxxx_selectNumberRange qp-xxxxx-gt
10573
- var _dataParams8 = key.split('_selectNumberRange')[0];
10574
- if (params[key][0] === 'range') {
10575
- if (params[key][1][0]) {
10576
- params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
10577
- }
10578
- if (params[key][1][1]) {
10579
- params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
10596
+ params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
10580
10597
  }
10581
- } else {
10582
- params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
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];
10583
10603
  }
10584
- delete params[key];
10585
- } else if (Array.isArray(element)) {
10586
- params[key] = element.join(',');
10587
- } else if (element == null || element === undefined || String(element).trim() === '') {
10588
- delete params[key];
10589
- }
10604
+ })();
10590
10605
  }
10591
- };
10592
- for (var key in params) {
10593
- _loop();
10594
10606
  }
10595
10607
  var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
10596
10608
  pageSize: pageSize,
@@ -10824,13 +10836,15 @@ var AddSelect = function AddSelect(props) {
10824
10836
  (_document$getElementB3 = document.getElementById('first-query')) === null || _document$getElementB3 === void 0 ? void 0 : _document$getElementB3.focus();
10825
10837
  !isContinue && handleCancel();
10826
10838
  }
10827
- handleLoading(isContinue, false);
10839
+ // handleLoading(isContinue,false)
10828
10840
  }).catch(function (Error) {
10829
10841
  if (_typeof(Error) === 'object') {
10830
10842
  !Error.needThrowError ? null : antd.message.error(Error.message);
10831
10843
  } else {
10832
10844
  antd.message.error(Error);
10833
10845
  }
10846
+ // handleLoading(isContinue,false)
10847
+ }).finally(function () {
10834
10848
  handleLoading(isContinue, false);
10835
10849
  });
10836
10850
  } else {
@@ -12045,70 +12059,72 @@ var BillEntry = function BillEntry(_ref3) {
12045
12059
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
12046
12060
  var canEntryObject, _canEntryObject$error, messageInfo;
12047
12061
  return _regeneratorRuntime().wrap(function _callee$(_context) {
12048
- while (1) switch (_context.prev = _context.next) {
12049
- case 0:
12050
- if (data === null || data === void 0 ? void 0 : data.length) {
12051
- _context.next = 3;
12052
- break;
12053
- }
12054
- antd.message.warning('至少录入一条数据');
12055
- return _context.abrupt("return");
12056
- case 3:
12057
- if (data === null || data === void 0 ? void 0 : data.every(function (d) {
12058
- return d.skuCode && d.name;
12059
- })) {
12060
- _context.next = 6;
12061
- break;
12062
- }
12063
- antd.message.warning('请选择商品!');
12064
- return _context.abrupt("return");
12065
- case 6:
12066
- if (data === null || data === void 0 ? void 0 : data.every(function (d) {
12067
- return d.count;
12068
- })) {
12069
- _context.next = 9;
12070
- break;
12071
- }
12072
- antd.message.warning('请填写商品数量!');
12073
- return _context.abrupt("return");
12074
- case 9:
12075
- _context.next = 11;
12076
- return isSkuCanEntry(data);
12077
- case 11:
12078
- canEntryObject = _context.sent;
12079
- if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
12080
- _context.next = 16;
12081
- break;
12082
- }
12083
- 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) {
12084
- return /*#__PURE__*/React__default['default'].createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
12085
- }));
12086
- messageInfo && antd.message.warning({
12087
- content: messageInfo,
12088
- duration: 6
12089
- });
12090
- return _context.abrupt("return");
12091
- case 16:
12092
- setLoading(true);
12093
- onSaveCallback(data).then(function (res) {
12094
- {
12095
- var _Object$keys;
12096
- var initSuccessMessage = '保存成功';
12097
- var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
12098
- if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
12099
- (rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? antd.message.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
12100
- } else {
12101
- antd.message.success(initSuccessMessage);
12102
- }
12062
+ while (1) {
12063
+ switch (_context.prev = _context.next) {
12064
+ case 0:
12065
+ if (data === null || data === void 0 ? void 0 : data.length) {
12066
+ _context.next = 3;
12067
+ break;
12103
12068
  }
12104
- setLoading(false);
12105
- }).catch(function (Error) {
12106
- antd.message.error(Error);
12107
- setLoading(false);
12108
- });
12109
- case 18:
12110
- case "end":
12111
- return _context.stop();
12069
+ antd.message.warning('至少录入一条数据');
12070
+ return _context.abrupt("return");
12071
+ case 3:
12072
+ if (data === null || data === void 0 ? void 0 : data.every(function (d) {
12073
+ return d.skuCode && d.name;
12074
+ })) {
12075
+ _context.next = 6;
12076
+ break;
12077
+ }
12078
+ antd.message.warning('请选择商品!');
12079
+ return _context.abrupt("return");
12080
+ case 6:
12081
+ if (data === null || data === void 0 ? void 0 : data.every(function (d) {
12082
+ return d.count;
12083
+ })) {
12084
+ _context.next = 9;
12085
+ break;
12086
+ }
12087
+ antd.message.warning('请填写商品数量!');
12088
+ return _context.abrupt("return");
12089
+ case 9:
12090
+ _context.next = 11;
12091
+ return isSkuCanEntry(data);
12092
+ case 11:
12093
+ canEntryObject = _context.sent;
12094
+ if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
12095
+ _context.next = 16;
12096
+ break;
12097
+ }
12098
+ 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) {
12099
+ return /*#__PURE__*/React__default['default'].createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
12100
+ }));
12101
+ messageInfo && antd.message.warning({
12102
+ content: messageInfo,
12103
+ duration: 6
12104
+ });
12105
+ return _context.abrupt("return");
12106
+ case 16:
12107
+ setLoading(true);
12108
+ onSaveCallback(data).then(function (res) {
12109
+ {
12110
+ var _Object$keys;
12111
+ var initSuccessMessage = '保存成功';
12112
+ var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
12113
+ if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
12114
+ (rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? antd.message.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
12115
+ } else {
12116
+ antd.message.success(initSuccessMessage);
12117
+ }
12118
+ }
12119
+ setLoading(false);
12120
+ }).catch(function (Error) {
12121
+ antd.message.error(Error);
12122
+ setLoading(false);
12123
+ });
12124
+ case 18:
12125
+ case "end":
12126
+ return _context.stop();
12127
+ }
12112
12128
  }
12113
12129
  }, _callee);
12114
12130
  }));
@@ -15243,7 +15259,7 @@ var CommodityEntry = function CommodityEntry(props) {
15243
15259
  * @LastEditTime: 2022-01-14 17:17:26
15244
15260
  * @LastEditors: rodchen
15245
15261
  */
15246
- var index$1 = (function (storageKeyString) {
15262
+ var index = (function (storageKeyString) {
15247
15263
  var seconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
15248
15264
  var tipsCallFunction = arguments.length > 2 ? arguments[2] : undefined;
15249
15265
  if (typeof seconds !== 'number') throw new Error('seconds should be number');
@@ -15361,42 +15377,44 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
15361
15377
  var _ctx$form;
15362
15378
  var resData, coverData, data, dataList;
15363
15379
  return _regeneratorRuntime().wrap(function _callee$(_context) {
15364
- while (1) switch (_context.prev = _context.next) {
15365
- case 0:
15366
- resData = (res === null || res === void 0 ? void 0 : res.data) || [];
15367
- if (!(resData.status === '0' || resData.code === '000000')) {
15368
- _context.next = 13;
15380
+ while (1) {
15381
+ switch (_context.prev = _context.next) {
15382
+ case 0:
15383
+ resData = (res === null || res === void 0 ? void 0 : res.data) || [];
15384
+ if (!(resData.status === '0' || resData.code === '000000')) {
15385
+ _context.next = 13;
15386
+ break;
15387
+ }
15388
+ data = resData.data;
15389
+ if (!remoteSource.converter) {
15390
+ _context.next = 9;
15391
+ break;
15392
+ }
15393
+ _context.next = 6;
15394
+ return remoteSource.converter({
15395
+ data: [data]
15396
+ });
15397
+ case 6:
15398
+ coverData = _context.sent;
15399
+ _context.next = 11;
15369
15400
  break;
15370
- }
15371
- data = resData.data;
15372
- if (!remoteSource.converter) {
15373
- _context.next = 9;
15401
+ case 9:
15402
+ dataList = data && Array.isArray(data) ? data : data && [data] || [];
15403
+ coverData = dataList.length && dataList.map(function (ites) {
15404
+ return mapSearchTree(ites);
15405
+ }) || [];
15406
+ case 11:
15407
+ _context.next = 14;
15374
15408
  break;
15375
- }
15376
- _context.next = 6;
15377
- return remoteSource.converter({
15378
- data: [data]
15379
- });
15380
- case 6:
15381
- coverData = _context.sent;
15382
- _context.next = 11;
15383
- break;
15384
- case 9:
15385
- dataList = data && Array.isArray(data) ? data : data && [data] || [];
15386
- coverData = dataList.length && dataList.map(function (ites) {
15387
- return mapSearchTree(ites);
15388
- }) || [];
15389
- case 11:
15390
- _context.next = 14;
15391
- break;
15392
- case 13:
15393
- coverData = [];
15394
- case 14:
15395
- setTreeData(coverData);
15396
- ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
15397
- case 16:
15398
- case "end":
15399
- return _context.stop();
15409
+ case 13:
15410
+ coverData = [];
15411
+ case 14:
15412
+ setTreeData(coverData);
15413
+ ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
15414
+ case 16:
15415
+ case "end":
15416
+ return _context.stop();
15417
+ }
15400
15418
  }
15401
15419
  }, _callee);
15402
15420
  }));
@@ -15584,7 +15602,7 @@ var BusinessTreeSearchSelect = function BusinessTreeSearchSelect(props) {
15584
15602
  }, [props === null || props === void 0 ? void 0 : props.value]);
15585
15603
  return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(MemoTreeSearchSelect, _objectSpread2({}, currentProps)));
15586
15604
  };
15587
- var index$2 = /*#__PURE__*/React__default['default'].memo(BusinessTreeSearchSelect, function (props, nextProps) {
15605
+ var index$1 = /*#__PURE__*/React__default['default'].memo(BusinessTreeSearchSelect, function (props, nextProps) {
15588
15606
  if (props && props.labelInValue && props.value && JSON.stringify(props.value) !== JSON.stringify(nextProps.value)) {
15589
15607
  return false;
15590
15608
  }
@@ -15597,7 +15615,7 @@ var index$2 = /*#__PURE__*/React__default['default'].memo(BusinessTreeSearchSele
15597
15615
  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";
15598
15616
  styleInject(css_248z$8);
15599
15617
 
15600
- var index$3 = (function (props) {
15618
+ var index$2 = (function (props) {
15601
15619
  var _props$formStatusMapp = props.formStatusMapping,
15602
15620
  formStatusMapping = _props$formStatusMapp === void 0 ? [] : _props$formStatusMapp;
15603
15621
  return /*#__PURE__*/React__default['default'].createElement("div", {
@@ -17021,7 +17039,7 @@ var iconMap = {
17021
17039
  src: moreIcon
17022
17040
  })
17023
17041
  };
17024
- var index$4 = (function (props) {
17042
+ var index$3 = (function (props) {
17025
17043
  var _useLocation = umi.useLocation(),
17026
17044
  pathname = _useLocation.pathname;
17027
17045
  var _useState = React.useState(pathname + 'id'),
@@ -17238,7 +17256,7 @@ var css_248z$d = ".home_page_head {\n height: 54px;\n display: flex;\n justif
17238
17256
  styleInject(css_248z$d);
17239
17257
 
17240
17258
  var _excluded$c = ["children"];
17241
- var index$5 = (function (props) {
17259
+ var index$4 = (function (props) {
17242
17260
  var _useLocation = umi.useLocation(),
17243
17261
  pathname = _useLocation.pathname;
17244
17262
  var _useState = React.useState(pathname + 'id'),
@@ -19514,19 +19532,21 @@ function _outLogin() {
19514
19532
  _outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
19515
19533
  var res;
19516
19534
  return _regeneratorRuntime().wrap(function _callee$(_context) {
19517
- while (1) switch (_context.prev = _context.next) {
19518
- case 0:
19519
- _context.next = 2;
19520
- return axios__default['default']({
19521
- url: '/user/web/loginOut',
19522
- method: 'GET'
19523
- });
19524
- case 2:
19525
- res = _context.sent;
19526
- return _context.abrupt("return", res);
19527
- case 4:
19528
- case "end":
19529
- return _context.stop();
19535
+ while (1) {
19536
+ switch (_context.prev = _context.next) {
19537
+ case 0:
19538
+ _context.next = 2;
19539
+ return axios__default['default']({
19540
+ url: '/user/web/loginOut',
19541
+ method: 'GET'
19542
+ });
19543
+ case 2:
19544
+ res = _context.sent;
19545
+ return _context.abrupt("return", res);
19546
+ case 4:
19547
+ case "end":
19548
+ return _context.stop();
19549
+ }
19530
19550
  }
19531
19551
  }, _callee);
19532
19552
  }));
@@ -19655,29 +19675,31 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
19655
19675
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
19656
19676
  var sessionId;
19657
19677
  return _regeneratorRuntime().wrap(function _callee$(_context) {
19658
- while (1) switch (_context.prev = _context.next) {
19659
- case 0:
19660
- _context.next = 2;
19661
- return getSessionId();
19662
- case 2:
19663
- sessionId = _context.sent;
19664
- _context.next = 5;
19665
- return outLogin({
19666
- sessionId: sessionId
19667
- });
19668
- case 5:
19669
- // @ts-ignore
19670
- if (BUILD_TYPE) {
19671
- antd.message.success('退出登录成功');
19672
- umi.history.replace({
19673
- pathname: '/user/login'
19678
+ while (1) {
19679
+ switch (_context.prev = _context.next) {
19680
+ case 0:
19681
+ _context.next = 2;
19682
+ return getSessionId();
19683
+ case 2:
19684
+ sessionId = _context.sent;
19685
+ _context.next = 5;
19686
+ return outLogin({
19687
+ sessionId: sessionId
19674
19688
  });
19675
- } else {
19676
- setLoginOutPath();
19677
- }
19678
- case 6:
19679
- case "end":
19680
- return _context.stop();
19689
+ case 5:
19690
+ // @ts-ignore
19691
+ if (BUILD_TYPE) {
19692
+ antd.message.success('退出登录成功');
19693
+ umi.history.replace({
19694
+ pathname: '/user/login'
19695
+ });
19696
+ } else {
19697
+ setLoginOutPath();
19698
+ }
19699
+ case 6:
19700
+ case "end":
19701
+ return _context.stop();
19702
+ }
19681
19703
  }
19682
19704
  }, _callee);
19683
19705
  }));
@@ -21505,7 +21527,6 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
21505
21527
  showSubMenu: isShow
21506
21528
  });
21507
21529
  }, 500);
21508
- //设置tabs标签左右滚动
21509
21530
  _this.setTabNavTransLate = function (num) {
21510
21531
  var _document$getElementB, _document$getElementB2, _document$getElementB3, _document$getElementB4, _document$defaultView;
21511
21532
  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];
@@ -22186,12 +22207,14 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
22186
22207
  request: function () {
22187
22208
  var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
22188
22209
  return _regeneratorRuntime().wrap(function _callee$(_context) {
22189
- while (1) switch (_context.prev = _context.next) {
22190
- case 0:
22191
- return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
22192
- case 1:
22193
- case "end":
22194
- return _context.stop();
22210
+ while (1) {
22211
+ switch (_context.prev = _context.next) {
22212
+ case 0:
22213
+ return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
22214
+ case 1:
22215
+ case "end":
22216
+ return _context.stop();
22217
+ }
22195
22218
  }
22196
22219
  }, _callee);
22197
22220
  }));
@@ -22329,7 +22352,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
22329
22352
  }]);
22330
22353
  return WrapperComponent;
22331
22354
  }(React__default['default'].Component);
22332
- var index$6 = (function (props) {
22355
+ var index$5 = (function (props) {
22333
22356
  var _useModel = umi.useModel('@@initialState'),
22334
22357
  _useModel$initialStat = _useModel.initialState,
22335
22358
  initialState = _useModel$initialStat === void 0 ? {} : _useModel$initialStat;
@@ -22570,7 +22593,7 @@ var FixedScrollBar = function FixedScrollBar(_ref, ref) {
22570
22593
  };
22571
22594
  var FixedScrollBar$1 = /*#__PURE__*/React__default['default'].forwardRef(FixedScrollBar);
22572
22595
 
22573
- var index$7 = /*#__PURE__*/React.forwardRef(function (props, ref) {
22596
+ var index$6 = /*#__PURE__*/React.forwardRef(function (props, ref) {
22574
22597
  var _useState = React.useState(false),
22575
22598
  _useState2 = _slicedToArray(_useState, 2),
22576
22599
  show = _useState2[0],
@@ -29863,26 +29886,28 @@ var valueType = {
29863
29886
  var getDynamicDict = /*#__PURE__*/function () {
29864
29887
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
29865
29888
  return _regeneratorRuntime().wrap(function _callee$(_context) {
29866
- while (1) switch (_context.prev = _context.next) {
29867
- case 0:
29868
- _context.next = 2;
29869
- return bssula.request({
29870
- url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
29871
- converter: function converter(_ref2) {
29872
- var data = _ref2.data;
29873
- return data === null || data === void 0 ? void 0 : data.map(function (d) {
29874
- return {
29875
- text: d.name,
29876
- value: d.code || d.brandCode
29877
- };
29878
- });
29879
- }
29880
- });
29881
- case 2:
29882
- return _context.abrupt("return", _context.sent);
29883
- case 3:
29884
- case "end":
29885
- return _context.stop();
29889
+ while (1) {
29890
+ switch (_context.prev = _context.next) {
29891
+ case 0:
29892
+ _context.next = 2;
29893
+ return bssula.request({
29894
+ url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
29895
+ converter: function converter(_ref2) {
29896
+ var data = _ref2.data;
29897
+ return data === null || data === void 0 ? void 0 : data.map(function (d) {
29898
+ return {
29899
+ text: d.name,
29900
+ value: d.code || d.brandCode
29901
+ };
29902
+ });
29903
+ }
29904
+ });
29905
+ case 2:
29906
+ return _context.abrupt("return", _context.sent);
29907
+ case 3:
29908
+ case "end":
29909
+ return _context.stop();
29910
+ }
29886
29911
  }
29887
29912
  }, _callee);
29888
29913
  }));
@@ -29932,53 +29957,55 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
29932
29957
  ahooks.useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
29933
29958
  var _ref$current, source;
29934
29959
  return _regeneratorRuntime().wrap(function _callee$(_context) {
29935
- while (1) switch (_context.prev = _context.next) {
29936
- case 0:
29937
- _context.next = 2;
29938
- return setIsShowAndType(function (prev) {
29939
- if (record.inputType === 20 || record.inputType === 30) {
29940
- return {
29941
- isShow: true,
29942
- singleOrMultiple: record.inputType,
29943
- type: record.choiceType
29944
- };
29960
+ while (1) {
29961
+ switch (_context.prev = _context.next) {
29962
+ case 0:
29963
+ _context.next = 2;
29964
+ return setIsShowAndType(function (prev) {
29965
+ if (record.inputType === 20 || record.inputType === 30) {
29966
+ return {
29967
+ isShow: true,
29968
+ singleOrMultiple: record.inputType,
29969
+ type: record.choiceType
29970
+ };
29971
+ }
29972
+ return prev;
29973
+ });
29974
+ case 2:
29975
+ if (!record.dictionaryCode) {
29976
+ _context.next = 17;
29977
+ break;
29945
29978
  }
29946
- return prev;
29947
- });
29948
- case 2:
29949
- if (!record.dictionaryCode) {
29950
- _context.next = 17;
29951
- break;
29952
- }
29953
- if (!(record.choiceType == 20)) {
29954
- _context.next = 7;
29979
+ if (!(record.choiceType == 20)) {
29980
+ _context.next = 7;
29981
+ break;
29982
+ }
29983
+ _context.t0 = getDictionarySource(record.dictionaryCode);
29984
+ _context.next = 15;
29955
29985
  break;
29956
- }
29957
- _context.t0 = getDictionarySource(record.dictionaryCode);
29958
- _context.next = 15;
29959
- break;
29960
- case 7:
29961
- if (!(record.choiceType == 30)) {
29962
- _context.next = 13;
29986
+ case 7:
29987
+ if (!(record.choiceType == 30)) {
29988
+ _context.next = 13;
29989
+ break;
29990
+ }
29991
+ _context.next = 10;
29992
+ return getDynamicDict(record.dictionaryCode);
29993
+ case 10:
29994
+ _context.t1 = _context.sent;
29995
+ _context.next = 14;
29963
29996
  break;
29964
- }
29965
- _context.next = 10;
29966
- return getDynamicDict(record.dictionaryCode);
29967
- case 10:
29968
- _context.t1 = _context.sent;
29969
- _context.next = 14;
29970
- break;
29971
- case 13:
29972
- _context.t1 = [];
29973
- case 14:
29974
- _context.t0 = _context.t1;
29975
- case 15:
29976
- source = _context.t0;
29977
- // @ts-ignore
29978
- ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
29979
- case 17:
29980
- case "end":
29981
- return _context.stop();
29997
+ case 13:
29998
+ _context.t1 = [];
29999
+ case 14:
30000
+ _context.t0 = _context.t1;
30001
+ case 15:
30002
+ source = _context.t0;
30003
+ // @ts-ignore
30004
+ ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
30005
+ case 17:
30006
+ case "end":
30007
+ return _context.stop();
30008
+ }
29982
30009
  }
29983
30010
  }, _callee);
29984
30011
  })));
@@ -30046,28 +30073,30 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
30046
30073
  var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
30047
30074
  var form, values, name, relates, source;
30048
30075
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
30049
- while (1) switch (_context2.prev = _context2.next) {
30050
- case 0:
30051
- form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
30052
- if (values[0]) {
30076
+ while (1) {
30077
+ switch (_context2.prev = _context2.next) {
30078
+ case 0:
30079
+ form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
30080
+ if (values[0]) {
30081
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
30082
+ form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
30083
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
30084
+ }
30085
+ if (!values[1]) {
30086
+ _context2.next = 9;
30087
+ break;
30088
+ }
30089
+ _context2.next = 5;
30090
+ return getDynamicDict(record.dictionaryCode || values[1]);
30091
+ case 5:
30092
+ source = _context2.sent;
30053
30093
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
30054
30094
  form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
30055
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
30056
- }
30057
- if (!values[1]) {
30058
- _context2.next = 9;
30059
- break;
30060
- }
30061
- _context2.next = 5;
30062
- return getDynamicDict(record.dictionaryCode || values[1]);
30063
- case 5:
30064
- source = _context2.sent;
30065
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
30066
- form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
30067
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
30068
- case 9:
30069
- case "end":
30070
- return _context2.stop();
30095
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
30096
+ case 9:
30097
+ case "end":
30098
+ return _context2.stop();
30099
+ }
30071
30100
  }
30072
30101
  }, _callee2);
30073
30102
  }));
@@ -30527,41 +30556,43 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
30527
30556
  var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
30528
30557
  var values, name, form, source;
30529
30558
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
30530
- while (1) switch (_context3.prev = _context3.next) {
30531
- case 0:
30532
- values = _ref10.values, name = _ref10.name, form = _ref10.form;
30533
- if (values[1] === 40) {
30534
- form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
30535
- form.setFieldVisible(name, false);
30536
- }
30537
- if (!(values[0] === 30)) {
30538
- _context3.next = 10;
30539
- break;
30540
- }
30541
- _context3.next = 5;
30542
- return bssula.request({
30543
- url: '/basic/dictDynamicItem/queryList',
30544
- converter: function converter(_ref11) {
30545
- var data = _ref11.data;
30546
- return data === null || data === void 0 ? void 0 : data.map(function (d) {
30547
- return {
30548
- text: d.dictCode,
30549
- value: d.dictCode
30550
- };
30551
- });
30559
+ while (1) {
30560
+ switch (_context3.prev = _context3.next) {
30561
+ case 0:
30562
+ values = _ref10.values, name = _ref10.name, form = _ref10.form;
30563
+ if (values[1] === 40) {
30564
+ form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
30565
+ form.setFieldVisible(name, false);
30552
30566
  }
30553
- });
30554
- case 5:
30555
- source = _context3.sent;
30556
- form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
30557
- form.setFieldVisible(name, true);
30558
- _context3.next = 11;
30559
- break;
30560
- case 10:
30561
- form.setFieldVisible(name, false);
30562
- case 11:
30563
- case "end":
30564
- return _context3.stop();
30567
+ if (!(values[0] === 30)) {
30568
+ _context3.next = 10;
30569
+ break;
30570
+ }
30571
+ _context3.next = 5;
30572
+ return bssula.request({
30573
+ url: '/basic/dictDynamicItem/queryList',
30574
+ converter: function converter(_ref11) {
30575
+ var data = _ref11.data;
30576
+ return data === null || data === void 0 ? void 0 : data.map(function (d) {
30577
+ return {
30578
+ text: d.dictCode,
30579
+ value: d.dictCode
30580
+ };
30581
+ });
30582
+ }
30583
+ });
30584
+ case 5:
30585
+ source = _context3.sent;
30586
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
30587
+ form.setFieldVisible(name, true);
30588
+ _context3.next = 11;
30589
+ break;
30590
+ case 10:
30591
+ form.setFieldVisible(name, false);
30592
+ case 11:
30593
+ case "end":
30594
+ return _context3.stop();
30595
+ }
30565
30596
  }
30566
30597
  }, _callee3);
30567
30598
  }));
@@ -30750,64 +30781,66 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
30750
30781
  var _ref$current4, _res$editableStatus;
30751
30782
  var res, _res$defaultValue;
30752
30783
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
30753
- while (1) switch (_context4.prev = _context4.next) {
30754
- case 0:
30755
- _context4.next = 2;
30756
- return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
30757
- case 2:
30758
- res = _context4.sent;
30759
- res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
30760
- res.fieldGroup = record.fieldGroup;
30761
- res.businessType = record.businessType;
30762
- res.info = {
30763
- enumeration: res.enumeration,
30764
- dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
30765
- formula: res.formula,
30766
- scale: res.scale,
30767
- variable: res.variable
30768
- };
30769
- res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
30770
- res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
30771
- res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
30772
- if (res.inputType === 40) {
30773
- res.valueType = 22;
30774
- }
30775
- // 把数组处理成文本
30776
- if (res.inputType === 30) {
30777
- if (res.defaultValue) {
30778
- res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
30784
+ while (1) {
30785
+ switch (_context4.prev = _context4.next) {
30786
+ case 0:
30787
+ _context4.next = 2;
30788
+ return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
30789
+ case 2:
30790
+ res = _context4.sent;
30791
+ res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
30792
+ res.fieldGroup = record.fieldGroup;
30793
+ res.businessType = record.businessType;
30794
+ res.info = {
30795
+ enumeration: res.enumeration,
30796
+ dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
30797
+ formula: res.formula,
30798
+ scale: res.scale,
30799
+ variable: res.variable
30800
+ };
30801
+ res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
30802
+ res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
30803
+ res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
30804
+ if (res.inputType === 40) {
30805
+ res.valueType = 22;
30779
30806
  }
30780
- }
30781
- res.fieldMapping = res.fieldMapping || '';
30782
- delete res.formula;
30783
- delete res.showValue;
30784
- if (!(mode === 'create')) {
30785
- _context4.next = 18;
30786
- break;
30787
- }
30788
- bssula.request({
30789
- url: "/basic/flow/businessField",
30790
- method: 'POST',
30791
- params: res,
30792
- successMessage: '创建成功!',
30793
- converter: function converter() {
30794
- onParentOk();
30807
+ // 把数组处理成文本
30808
+ if (res.inputType === 30) {
30809
+ if (res.defaultValue) {
30810
+ res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
30811
+ }
30795
30812
  }
30796
- });
30797
- return _context4.abrupt("return");
30798
- case 18:
30799
- bssula.request({
30800
- url: "/basic/flow/businessField/".concat(record.id),
30801
- method: 'PATCH',
30802
- params: res,
30803
- successMessage: '修改成功!',
30804
- converter: function converter() {
30805
- onParentOk();
30813
+ res.fieldMapping = res.fieldMapping || '';
30814
+ delete res.formula;
30815
+ delete res.showValue;
30816
+ if (!(mode === 'create')) {
30817
+ _context4.next = 18;
30818
+ break;
30806
30819
  }
30807
- });
30808
- case 19:
30809
- case "end":
30810
- return _context4.stop();
30820
+ bssula.request({
30821
+ url: "/basic/flow/businessField",
30822
+ method: 'POST',
30823
+ params: res,
30824
+ successMessage: '创建成功!',
30825
+ converter: function converter() {
30826
+ onParentOk();
30827
+ }
30828
+ });
30829
+ return _context4.abrupt("return");
30830
+ case 18:
30831
+ bssula.request({
30832
+ url: "/basic/flow/businessField/".concat(record.id),
30833
+ method: 'PATCH',
30834
+ params: res,
30835
+ successMessage: '修改成功!',
30836
+ converter: function converter() {
30837
+ onParentOk();
30838
+ }
30839
+ });
30840
+ case 19:
30841
+ case "end":
30842
+ return _context4.stop();
30843
+ }
30811
30844
  }
30812
30845
  }, _callee4);
30813
30846
  }));
@@ -31277,24 +31310,24 @@ exports.AddSkcSelect = AddSkcSelect;
31277
31310
  exports.AddSkuSelect = AddSkuSelect;
31278
31311
  exports.AddSpuSelect = AddSpuSelect;
31279
31312
  exports.BillEntry = BillEntry;
31280
- exports.BsLayout = index$6;
31313
+ exports.BsLayout = index$5;
31281
31314
  exports.BsSulaQueryTable = BsSulaQueryTable;
31282
31315
  exports.BusinessSearchSelect = BusinessSearchSelect$1;
31283
- exports.BusinessTreeSearchSelect = index$2;
31284
- exports.CheckOneUser = index$1;
31316
+ exports.BusinessTreeSearchSelect = index$1;
31317
+ exports.CheckOneUser = index;
31285
31318
  exports.ColumnSettingTable = ColumnSettingTable;
31286
31319
  exports.CommodityEntry = CommodityEntry;
31287
31320
  exports.DataImport = DataImport;
31288
31321
  exports.DataValidation = DataValidation;
31289
- exports.DetailPageWrapper = index$4;
31322
+ exports.DetailPageWrapper = index$3;
31290
31323
  exports.ExportIcon = ExportIcon;
31291
31324
  exports.GuideWrapper = GuideWrapper;
31292
- exports.HomePageWrapper = index$5;
31325
+ exports.HomePageWrapper = index$4;
31293
31326
  exports.JsonQueryTable = JsonQueryTable;
31294
- exports.MoreTreeTable = index$7;
31327
+ exports.MoreTreeTable = index$6;
31295
31328
  exports.QueryMutipleInput = QueryMutipleInput;
31296
31329
  exports.SearchSelect = SearchSelect;
31297
- exports.StateFlow = index$3;
31330
+ exports.StateFlow = index$2;
31298
31331
  exports.SulaColumnSettingTable = ColumnSettingSulaTable;
31299
31332
  exports.TableColumnSetting = TableColumnSetting;
31300
31333
  exports.TreeSearchSelect = TreeSearchSelect;