@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.esm.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import axios from 'axios';
2
- import { message, Menu, Space, Dropdown, Tooltip, Button, Checkbox, Input, Modal, Select, Form, Divider, Spin, Table, TreeSelect, Tag, Popover, Card, Avatar, Image, InputNumber, Typography, Alert, Anchor, Breadcrumb, Drawer as Drawer$1, List, Tree, Row, Col, Tabs, Affix } from 'antd';
2
+ import { message, Menu, Space, Dropdown, Tooltip, Button, Checkbox, Input, Modal, Select, Form, Divider, Spin, Table, TreeSelect, Tag, Image, Popover, Card, Avatar, InputNumber, Typography, Alert, Anchor, Breadcrumb, Drawer as Drawer$1, List, Tree, Row, Col, Tabs, Affix } from 'antd';
3
3
  import _, { omit, debounce, cloneDeep as cloneDeep$1, throttle, isEmpty } from 'lodash';
4
4
  import React, { useState, useEffect, forwardRef, useImperativeHandle, useRef, useMemo, Component, useLayoutEffect, createRef } from 'react';
5
5
  import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
@@ -10,7 +10,7 @@ import { Resizable } from 'react-resizable';
10
10
  import { SortableHandle, SortableElement, SortableContainer } from 'react-sortable-hoc';
11
11
  import { arrayMoveImmutable } from 'array-move';
12
12
  import { history, formatMessage, useLocation, Link, useModel, useIntl } from 'umi';
13
- import isEqual$1 from 'lodash/isEqual';
13
+ import isEqual from 'lodash/isEqual';
14
14
  import { Table as Table$1, request as request$1, QueryTable, Form as Form$1 } from 'bssula';
15
15
  import ProLayout from '@ant-design/pro-layout';
16
16
  import cloneDeep from 'lodash/cloneDeep';
@@ -2075,7 +2075,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
2075
2075
  needModalTable = _props$needModalTable === void 0 ? true : _props$needModalTable,
2076
2076
  _props$getPopupContai = props.getPopupContainer,
2077
2077
  _getPopupContainer = _props$getPopupContai === void 0 ? undefined : _props$getPopupContai,
2078
- fieldComponent = props.fieldComponent;
2078
+ fieldComponent = props.fieldComponent,
2079
+ selectBusinessType = props.selectBusinessType;
2079
2080
  var _ref = requestConfig || {},
2080
2081
  url = _ref.url,
2081
2082
  otherParams = _ref.otherParams,
@@ -2279,84 +2280,85 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
2279
2280
  });
2280
2281
  }
2281
2282
  // 数组对象处理,对带有特殊标记的name进行处理
2282
- for (var key in params) {
2283
+ var _loop = function _loop() {
2283
2284
  if (Object.prototype.hasOwnProperty.call(params, key)) {
2284
- (function () {
2285
- var element = params[key];
2286
- if (element && key.indexOf('*number*') >= 0) {
2287
- var dataParams = key.split('*number*');
2288
- dataParams.forEach(function (value, index) {
2289
- params[value] = element[index];
2290
- });
2291
- delete params[key];
2292
- } else if (element && key.indexOf('*address*') >= 0) {
2293
- var _dataParams = key.split('*address*');
2294
- _dataParams.forEach(function (value, index) {
2295
- params[value] = element.PCDCode[index];
2296
- });
2297
- delete params[key];
2298
- } else if (element && key.indexOf('*costType*') >= 0) {
2299
- var _dataParams2 = key.split('*costType*');
2300
- // eslint-disable-next-line prefer-destructuring
2301
- params[_dataParams2[0]] = element[1];
2302
- delete params[key];
2303
- } else if (element && key.indexOf('*fullDate*') >= 0) {
2304
- var _dataParams3 = key.split('*fullDate*');
2305
- _dataParams3.forEach(function (value, index) {
2306
- if (index === 0) {
2307
- params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
2308
- } else {
2309
- params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
2310
- }
2311
- });
2312
- delete params[key];
2313
- } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
2314
- var _dataParams4 = key.split('*checkBox*');
2315
- if (element) {
2316
- params[_dataParams4[0]] = 0;
2285
+ var element = params[key];
2286
+ if (element && key.indexOf('*number*') >= 0) {
2287
+ var dataParams = key.split('*number*');
2288
+ dataParams.forEach(function (value, index) {
2289
+ params[value] = element[index];
2290
+ });
2291
+ delete params[key];
2292
+ } else if (element && key.indexOf('*address*') >= 0) {
2293
+ var _dataParams = key.split('*address*');
2294
+ _dataParams.forEach(function (value, index) {
2295
+ params[value] = element.PCDCode[index];
2296
+ });
2297
+ delete params[key];
2298
+ } else if (element && key.indexOf('*costType*') >= 0) {
2299
+ var _dataParams2 = key.split('*costType*');
2300
+ // eslint-disable-next-line prefer-destructuring
2301
+ params[_dataParams2[0]] = element[1];
2302
+ delete params[key];
2303
+ } else if (element && key.indexOf('*fullDate*') >= 0) {
2304
+ var _dataParams3 = key.split('*fullDate*');
2305
+ _dataParams3.forEach(function (value, index) {
2306
+ if (index === 0) {
2307
+ params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
2308
+ } else {
2309
+ params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
2317
2310
  }
2318
- delete params[key];
2319
- } else if (element && key.indexOf('*cascader*') >= 0) {
2320
- var _dataParams5 = key.split('*cascader*');
2321
- params[_dataParams5[0]] = element[element.length - 1];
2322
- delete params[key];
2323
- } else if (element && key.indexOf('*date*') >= 0) {
2324
- var _dataParams6 = key.split('*date*');
2325
- _dataParams6.forEach(function (value, index) {
2326
- if (index === 0) {
2327
- params[value] = moment(element[index]).format('YYYY-MM-DD');
2328
- } else {
2329
- params[value] = moment(element[index]).format('YYYY-MM-DD');
2330
- }
2331
- });
2332
- delete params[key];
2333
- } else if (element && key.indexOf('*') >= 0) {
2334
- var _dataParams7 = key.split('*');
2335
- _dataParams7.forEach(function (value, index) {
2336
- params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
2337
- });
2338
- delete params[key];
2339
- } else if (element && key.indexOf('_selectNumberRange') >= 0) {
2340
- // key = xxxxx_selectNumberRange qp-xxxxx-gt
2341
- var _dataParams8 = key.split('_selectNumberRange')[0];
2342
- if (params[key][0] === 'range') {
2343
- if (params[key][1][0]) {
2344
- params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
2345
- }
2346
- if (params[key][1][1]) {
2347
- params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
2348
- }
2311
+ });
2312
+ delete params[key];
2313
+ } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
2314
+ var _dataParams4 = key.split('*checkBox*');
2315
+ if (element) {
2316
+ params[_dataParams4[0]] = 0;
2317
+ }
2318
+ delete params[key];
2319
+ } else if (element && key.indexOf('*cascader*') >= 0) {
2320
+ var _dataParams5 = key.split('*cascader*');
2321
+ params[_dataParams5[0]] = element[element.length - 1];
2322
+ delete params[key];
2323
+ } else if (element && key.indexOf('*date*') >= 0) {
2324
+ var _dataParams6 = key.split('*date*');
2325
+ _dataParams6.forEach(function (value, index) {
2326
+ if (index === 0) {
2327
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
2349
2328
  } else {
2350
- params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
2329
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
2330
+ }
2331
+ });
2332
+ delete params[key];
2333
+ } else if (element && key.indexOf('*') >= 0) {
2334
+ var _dataParams7 = key.split('*');
2335
+ _dataParams7.forEach(function (value, index) {
2336
+ params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
2337
+ });
2338
+ delete params[key];
2339
+ } else if (element && key.indexOf('_selectNumberRange') >= 0) {
2340
+ // key = xxxxx_selectNumberRange qp-xxxxx-gt
2341
+ var _dataParams8 = key.split('_selectNumberRange')[0];
2342
+ if (params[key][0] === 'range') {
2343
+ if (params[key][1][0]) {
2344
+ params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
2345
+ }
2346
+ if (params[key][1][1]) {
2347
+ params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
2351
2348
  }
2352
- delete params[key];
2353
- } else if (Array.isArray(element)) {
2354
- params[key] = element.join(',');
2355
- } else if (element == null || element === undefined || String(element).trim() === '') {
2356
- delete params[key];
2349
+ } else {
2350
+ params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
2357
2351
  }
2358
- })();
2352
+ delete params[key];
2353
+ } else if (Array.isArray(element)) {
2354
+ params[key] = element.join(',');
2355
+ } else if (element == null || element === undefined || String(element).trim() === '') {
2356
+ delete params[key];
2357
+ }
2359
2358
  }
2359
+ };
2360
+ for (var key in params) {
2361
+ _loop();
2360
2362
  }
2361
2363
  var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
2362
2364
  pageSize: pageSize,
@@ -2480,6 +2482,13 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
2480
2482
  useEffect(function () {
2481
2483
  makeUniqueValue();
2482
2484
  }, [resultSourceKey]);
2485
+ useEffect(function () {
2486
+ if (init) {
2487
+ setItems([]);
2488
+ setItemsTotal(0);
2489
+ run('init');
2490
+ }
2491
+ }, [selectBusinessType]);
2483
2492
  var showModal = function showModal() {
2484
2493
  getData({
2485
2494
  pageSize: tableInitPageSize,
@@ -3675,52 +3684,41 @@ var setInitialShowColumn = function setInitialShowColumn(tableCode, columns, cal
3675
3684
  callback(showColumns);
3676
3685
  };
3677
3686
 
3678
- var safeIsNaN = Number.isNaN ||
3679
- function ponyfill(value) {
3680
- return typeof value === 'number' && value !== value;
3681
- };
3682
- function isEqual(first, second) {
3683
- if (first === second) {
3684
- return true;
3685
- }
3686
- if (safeIsNaN(first) && safeIsNaN(second)) {
3687
- return true;
3688
- }
3689
- return false;
3690
- }
3691
- function areInputsEqual(newInputs, lastInputs) {
3692
- if (newInputs.length !== lastInputs.length) {
3693
- return false;
3694
- }
3695
- for (var i = 0; i < newInputs.length; i++) {
3696
- if (!isEqual(newInputs[i], lastInputs[i])) {
3697
- return false;
3698
- }
3687
+ var simpleIsEqual = function simpleIsEqual(a, b) {
3688
+ return a === b;
3689
+ };
3690
+
3691
+ function index (resultFn, isEqual) {
3692
+ if (isEqual === void 0) {
3693
+ isEqual = simpleIsEqual;
3694
+ }
3695
+
3696
+ var lastThis;
3697
+ var lastArgs = [];
3698
+ var lastResult;
3699
+ var calledOnce = false;
3700
+
3701
+ var isNewArgEqualToLast = function isNewArgEqualToLast(newArg, index) {
3702
+ return isEqual(newArg, lastArgs[index], index);
3703
+ };
3704
+
3705
+ var result = function result() {
3706
+ for (var _len = arguments.length, newArgs = new Array(_len), _key = 0; _key < _len; _key++) {
3707
+ newArgs[_key] = arguments[_key];
3699
3708
  }
3700
- return true;
3701
- }
3702
3709
 
3703
- function memoizeOne(resultFn, isEqual) {
3704
- if (isEqual === void 0) { isEqual = areInputsEqual; }
3705
- var lastThis;
3706
- var lastArgs = [];
3707
- var lastResult;
3708
- var calledOnce = false;
3709
- function memoized() {
3710
- var newArgs = [];
3711
- for (var _i = 0; _i < arguments.length; _i++) {
3712
- newArgs[_i] = arguments[_i];
3713
- }
3714
- if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {
3715
- return lastResult;
3716
- }
3717
- lastResult = resultFn.apply(this, newArgs);
3718
- calledOnce = true;
3719
- lastThis = this;
3720
- lastArgs = newArgs;
3721
- return lastResult;
3710
+ if (calledOnce && lastThis === this && newArgs.length === lastArgs.length && newArgs.every(isNewArgEqualToLast)) {
3711
+ return lastResult;
3722
3712
  }
3723
- return memoized;
3713
+
3714
+ lastResult = resultFn.apply(this, newArgs);
3715
+ calledOnce = true;
3716
+ lastThis = this;
3717
+ lastArgs = newArgs;
3718
+ return lastResult;
3719
+ };
3720
+
3721
+ return result;
3724
3722
  }
3725
3723
 
3726
3724
  //! moment.js
@@ -9583,58 +9581,59 @@ var getItemDefaultWidth = function getItemDefaultWidth(item) {
9583
9581
  * @returns 返回处理后的查询参数
9584
9582
  */
9585
9583
  function queryParams(params, flag) {
9586
- for (var key in params) {
9584
+ var _loop = function _loop() {
9587
9585
  if (Object.prototype.hasOwnProperty.call(params, key)) {
9588
- (function () {
9589
- var element = params[key];
9590
- if (element && key.indexOf('*number*') >= 0) {
9591
- var dataParams = key.split('*number*');
9592
- dataParams.forEach(function (value, index) {
9593
- params[value] = element[index];
9594
- });
9595
- delete params[key];
9596
- } else if (element && key.indexOf('*address*') >= 0) {
9597
- var _dataParams = key.split('*address*');
9598
- _dataParams.forEach(function (value, index) {
9599
- params[value] = element.PCDCode[index];
9600
- });
9601
- delete params[key];
9602
- } else if (element && key.indexOf('*costType*') >= 0) {
9603
- var _dataParams2 = key.split('*costType*');
9604
- // eslint-disable-next-line prefer-destructuring
9605
- params[_dataParams2[0]] = element[1];
9606
- delete params[key];
9607
- } else if (element && key.indexOf('*fullDate*') >= 0) {
9608
- var _dataParams3 = key.split('*fullDate*');
9609
- _dataParams3.forEach(function (value, index) {
9610
- if (index === 0) {
9611
- params[value] = hooks(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
9612
- } else {
9613
- params[value] = hooks(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
9614
- }
9615
- });
9616
- delete params[key];
9617
- } else if (element && key.indexOf('*') >= 0) {
9618
- var _dataParams4 = key.split('*');
9619
- _dataParams4.forEach(function (value, index) {
9620
- params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
9621
- });
9622
- delete params[key];
9623
- } else if (element && key.indexOf('_likeIn_') >= 0) {
9624
- var _dataParams5 = key.split('_likeIn_');
9625
- if (element.indexOf(',') >= 0) {
9626
- params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
9627
- params["qp-".concat(_dataParams5[0], "-like")] = null;
9586
+ var element = params[key];
9587
+ if (element && key.indexOf('*number*') >= 0) {
9588
+ var dataParams = key.split('*number*');
9589
+ dataParams.forEach(function (value, index) {
9590
+ params[value] = element[index];
9591
+ });
9592
+ delete params[key];
9593
+ } else if (element && key.indexOf('*address*') >= 0) {
9594
+ var _dataParams = key.split('*address*');
9595
+ _dataParams.forEach(function (value, index) {
9596
+ params[value] = element.PCDCode[index];
9597
+ });
9598
+ delete params[key];
9599
+ } else if (element && key.indexOf('*costType*') >= 0) {
9600
+ var _dataParams2 = key.split('*costType*');
9601
+ // eslint-disable-next-line prefer-destructuring
9602
+ params[_dataParams2[0]] = element[1];
9603
+ delete params[key];
9604
+ } else if (element && key.indexOf('*fullDate*') >= 0) {
9605
+ var _dataParams3 = key.split('*fullDate*');
9606
+ _dataParams3.forEach(function (value, index) {
9607
+ if (index === 0) {
9608
+ params[value] = hooks(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
9628
9609
  } else {
9629
- params["qp-".concat(_dataParams5[0], "-like")] = element;
9630
- params["qp-".concat(_dataParams5[0], "-in")] = null;
9610
+ params[value] = hooks(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
9631
9611
  }
9632
- delete params[key];
9633
- } else if (Array.isArray(element)) {
9634
- params[key] = element.join(',');
9612
+ });
9613
+ delete params[key];
9614
+ } else if (element && key.indexOf('*') >= 0) {
9615
+ var _dataParams4 = key.split('*');
9616
+ _dataParams4.forEach(function (value, index) {
9617
+ params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
9618
+ });
9619
+ delete params[key];
9620
+ } else if (element && key.indexOf('_likeIn_') >= 0) {
9621
+ var _dataParams5 = key.split('_likeIn_');
9622
+ if (element.indexOf(',') >= 0) {
9623
+ params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
9624
+ params["qp-".concat(_dataParams5[0], "-like")] = null;
9625
+ } else {
9626
+ params["qp-".concat(_dataParams5[0], "-like")] = element;
9627
+ params["qp-".concat(_dataParams5[0], "-in")] = null;
9635
9628
  }
9636
- })();
9629
+ delete params[key];
9630
+ } else if (Array.isArray(element)) {
9631
+ params[key] = element.join(',');
9632
+ }
9637
9633
  }
9634
+ };
9635
+ for (var key in params) {
9636
+ _loop();
9638
9637
  }
9639
9638
  return flag ? params : qs.stringify(params);
9640
9639
  }
@@ -9680,7 +9679,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
9680
9679
  return item;
9681
9680
  });
9682
9681
  };
9683
- var memoizeOneFormatter = memoizeOne(formatter, isEqual$1);
9682
+ var memoizeOneFormatter = index(formatter, isEqual);
9684
9683
  var go2BackAndClose = function go2BackAndClose() {
9685
9684
  localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
9686
9685
  history.goBack();
@@ -10164,76 +10163,74 @@ var AddSelect = function AddSelect(props) {
10164
10163
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
10165
10164
  var result;
10166
10165
  return _regeneratorRuntime().wrap(function _callee$(_context) {
10167
- while (1) {
10168
- switch (_context.prev = _context.next) {
10169
- case 0:
10170
- if (!(bType == 'skc' && tList.some(function (i) {
10171
- return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
10172
- }))) {
10173
- _context.next = 3;
10174
- break;
10175
- }
10176
- message.warning('相同skc配码不可设置相同哦');
10177
- return _context.abrupt("return", false);
10178
- case 3:
10179
- if (!(bType == 'spu')) {
10180
- _context.next = 26;
10181
- break;
10182
- }
10183
- if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
10184
- return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
10185
- }))) {
10186
- _context.next = 7;
10187
- break;
10188
- }
10189
- message.warning('相同商品相同配码颜色不可设置相同哦');
10190
- return _context.abrupt("return", false);
10191
- case 7:
10192
- if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
10193
- _context.next = 10;
10194
- break;
10195
- }
10196
- message.warning('请先选择颜色!');
10197
- return _context.abrupt("return", false);
10198
- case 10:
10199
- if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
10200
- return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
10201
- }))) {
10202
- _context.next = 13;
10203
- break;
10204
- }
10205
- message.warning('相同商品相同颜色配码不可设置相同哦');
10206
- return _context.abrupt("return", false);
10207
- case 13:
10208
- if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
10209
- _context.next = 26;
10210
- break;
10211
- }
10212
- result = true;
10213
- _context.prev = 15;
10214
- _context.next = 18;
10215
- return checkSpuMatchCode({
10216
- skcCode: recordItem[recordKey],
10217
- matchingCode: changeValue,
10218
- ext1: recordItem.colorName
10219
- });
10220
- case 18:
10221
- result = _context.sent;
10222
- result = true;
10223
- _context.next = 25;
10166
+ while (1) switch (_context.prev = _context.next) {
10167
+ case 0:
10168
+ if (!(bType == 'skc' && tList.some(function (i) {
10169
+ return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
10170
+ }))) {
10171
+ _context.next = 3;
10224
10172
  break;
10225
- case 22:
10226
- _context.prev = 22;
10227
- _context.t0 = _context["catch"](15);
10228
- result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
10229
- case 25:
10230
- return _context.abrupt("return", result);
10231
- case 26:
10232
- return _context.abrupt("return", true);
10233
- case 27:
10234
- case "end":
10235
- return _context.stop();
10236
- }
10173
+ }
10174
+ message.warning('相同skc配码不可设置相同哦');
10175
+ return _context.abrupt("return", false);
10176
+ case 3:
10177
+ if (!(bType == 'spu')) {
10178
+ _context.next = 26;
10179
+ break;
10180
+ }
10181
+ if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
10182
+ return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
10183
+ }))) {
10184
+ _context.next = 7;
10185
+ break;
10186
+ }
10187
+ message.warning('相同商品相同配码颜色不可设置相同哦');
10188
+ return _context.abrupt("return", false);
10189
+ case 7:
10190
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
10191
+ _context.next = 10;
10192
+ break;
10193
+ }
10194
+ message.warning('请先选择颜色!');
10195
+ return _context.abrupt("return", false);
10196
+ case 10:
10197
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
10198
+ return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
10199
+ }))) {
10200
+ _context.next = 13;
10201
+ break;
10202
+ }
10203
+ message.warning('相同商品相同颜色配码不可设置相同哦');
10204
+ return _context.abrupt("return", false);
10205
+ case 13:
10206
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
10207
+ _context.next = 26;
10208
+ break;
10209
+ }
10210
+ result = true;
10211
+ _context.prev = 15;
10212
+ _context.next = 18;
10213
+ return checkSpuMatchCode({
10214
+ skcCode: recordItem[recordKey],
10215
+ matchingCode: changeValue,
10216
+ ext1: recordItem.colorName
10217
+ });
10218
+ case 18:
10219
+ result = _context.sent;
10220
+ result = true;
10221
+ _context.next = 25;
10222
+ break;
10223
+ case 22:
10224
+ _context.prev = 22;
10225
+ _context.t0 = _context["catch"](15);
10226
+ result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
10227
+ case 25:
10228
+ return _context.abrupt("return", result);
10229
+ case 26:
10230
+ return _context.abrupt("return", true);
10231
+ case 27:
10232
+ case "end":
10233
+ return _context.stop();
10237
10234
  }
10238
10235
  }, _callee, null, [[15, 22]]);
10239
10236
  }));
@@ -10425,29 +10422,27 @@ var AddSelect = function AddSelect(props) {
10425
10422
  var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
10426
10423
  var isConformToTheRules, newPopValue;
10427
10424
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
10428
- while (1) {
10429
- switch (_context2.prev = _context2.next) {
10430
- case 0:
10431
- _context2.next = 2;
10432
- return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
10433
- case 2:
10434
- isConformToTheRules = _context2.sent;
10435
- if (isConformToTheRules) {
10436
- record[item.dataIndex] = value;
10437
- } else {
10438
- record[item.dataIndex] = null;
10425
+ while (1) switch (_context2.prev = _context2.next) {
10426
+ case 0:
10427
+ _context2.next = 2;
10428
+ return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
10429
+ case 2:
10430
+ isConformToTheRules = _context2.sent;
10431
+ if (isConformToTheRules) {
10432
+ record[item.dataIndex] = value;
10433
+ } else {
10434
+ record[item.dataIndex] = null;
10435
+ }
10436
+ newPopValue = popvalue.map(function (i, innerIndex) {
10437
+ if (innerIndex == index) {
10438
+ i[item.dataIndex] = record[item.dataIndex];
10439
10439
  }
10440
- newPopValue = popvalue.map(function (i, innerIndex) {
10441
- if (innerIndex == index) {
10442
- i[item.dataIndex] = record[item.dataIndex];
10443
- }
10444
- return i;
10445
- });
10446
- setPopValue(newPopValue);
10447
- case 6:
10448
- case "end":
10449
- return _context2.stop();
10450
- }
10440
+ return i;
10441
+ });
10442
+ setPopValue(newPopValue);
10443
+ case 6:
10444
+ case "end":
10445
+ return _context2.stop();
10451
10446
  }
10452
10447
  }, _callee2);
10453
10448
  }));
@@ -10507,84 +10502,85 @@ var AddSelect = function AddSelect(props) {
10507
10502
  });
10508
10503
  }
10509
10504
  // 数组对象处理,对带有特殊标记的name进行处理
10510
- for (var key in params) {
10505
+ var _loop = function _loop() {
10511
10506
  if (Object.prototype.hasOwnProperty.call(params, key)) {
10512
- (function () {
10513
- var element = params[key];
10514
- if (element && key.indexOf('*number*') >= 0) {
10515
- var dataParams = key.split('*number*');
10516
- dataParams.forEach(function (value, index) {
10517
- params[value] = element[index];
10518
- });
10519
- delete params[key];
10520
- } else if (element && key.indexOf('*address*') >= 0) {
10521
- var _dataParams = key.split('*address*');
10522
- _dataParams.forEach(function (value, index) {
10523
- params[value] = element.PCDCode[index];
10524
- });
10525
- delete params[key];
10526
- } else if (element && key.indexOf('*costType*') >= 0) {
10527
- var _dataParams2 = key.split('*costType*');
10528
- // eslint-disable-next-line prefer-destructuring
10529
- params[_dataParams2[0]] = element[1];
10530
- delete params[key];
10531
- } else if (element && key.indexOf('*fullDate*') >= 0) {
10532
- var _dataParams3 = key.split('*fullDate*');
10533
- _dataParams3.forEach(function (value, index) {
10534
- if (index === 0) {
10535
- params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
10536
- } else {
10537
- params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
10538
- }
10539
- });
10540
- delete params[key];
10541
- } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
10542
- var _dataParams4 = key.split('*checkBox*');
10543
- if (element) {
10544
- params[_dataParams4[0]] = 0;
10507
+ var element = params[key];
10508
+ if (element && key.indexOf('*number*') >= 0) {
10509
+ var dataParams = key.split('*number*');
10510
+ dataParams.forEach(function (value, index) {
10511
+ params[value] = element[index];
10512
+ });
10513
+ delete params[key];
10514
+ } else if (element && key.indexOf('*address*') >= 0) {
10515
+ var _dataParams = key.split('*address*');
10516
+ _dataParams.forEach(function (value, index) {
10517
+ params[value] = element.PCDCode[index];
10518
+ });
10519
+ delete params[key];
10520
+ } else if (element && key.indexOf('*costType*') >= 0) {
10521
+ var _dataParams2 = key.split('*costType*');
10522
+ // eslint-disable-next-line prefer-destructuring
10523
+ params[_dataParams2[0]] = element[1];
10524
+ delete params[key];
10525
+ } else if (element && key.indexOf('*fullDate*') >= 0) {
10526
+ var _dataParams3 = key.split('*fullDate*');
10527
+ _dataParams3.forEach(function (value, index) {
10528
+ if (index === 0) {
10529
+ params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
10530
+ } else {
10531
+ params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
10545
10532
  }
10546
- delete params[key];
10547
- } else if (element && key.indexOf('*cascader*') >= 0) {
10548
- var _dataParams5 = key.split('*cascader*');
10549
- params[_dataParams5[0]] = element[element.length - 1];
10550
- delete params[key];
10551
- } else if (element && key.indexOf('*date*') >= 0) {
10552
- var _dataParams6 = key.split('*date*');
10553
- _dataParams6.forEach(function (value, index) {
10554
- if (index === 0) {
10555
- params[value] = moment(element[index]).format('YYYY-MM-DD');
10556
- } else {
10557
- params[value] = moment(element[index]).format('YYYY-MM-DD');
10558
- }
10559
- });
10560
- delete params[key];
10561
- } else if (element && key.indexOf('*') >= 0) {
10562
- var _dataParams7 = key.split('*');
10563
- _dataParams7.forEach(function (value, index) {
10564
- params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
10565
- });
10566
- delete params[key];
10567
- } else if (element && key.indexOf('_selectNumberRange') >= 0) {
10568
- // key = xxxxx_selectNumberRange qp-xxxxx-gt
10569
- var _dataParams8 = key.split('_selectNumberRange')[0];
10570
- if (params[key][0] === 'range') {
10571
- if (params[key][1][0]) {
10572
- params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
10573
- }
10574
- if (params[key][1][1]) {
10575
- params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
10576
- }
10533
+ });
10534
+ delete params[key];
10535
+ } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
10536
+ var _dataParams4 = key.split('*checkBox*');
10537
+ if (element) {
10538
+ params[_dataParams4[0]] = 0;
10539
+ }
10540
+ delete params[key];
10541
+ } else if (element && key.indexOf('*cascader*') >= 0) {
10542
+ var _dataParams5 = key.split('*cascader*');
10543
+ params[_dataParams5[0]] = element[element.length - 1];
10544
+ delete params[key];
10545
+ } else if (element && key.indexOf('*date*') >= 0) {
10546
+ var _dataParams6 = key.split('*date*');
10547
+ _dataParams6.forEach(function (value, index) {
10548
+ if (index === 0) {
10549
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
10577
10550
  } else {
10578
- params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
10551
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
10579
10552
  }
10580
- delete params[key];
10581
- } else if (Array.isArray(element)) {
10582
- params[key] = element.join(',');
10583
- } else if (element == null || element === undefined || String(element).trim() === '') {
10584
- delete params[key];
10553
+ });
10554
+ delete params[key];
10555
+ } else if (element && key.indexOf('*') >= 0) {
10556
+ var _dataParams7 = key.split('*');
10557
+ _dataParams7.forEach(function (value, index) {
10558
+ params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
10559
+ });
10560
+ delete params[key];
10561
+ } else if (element && key.indexOf('_selectNumberRange') >= 0) {
10562
+ // key = xxxxx_selectNumberRange qp-xxxxx-gt
10563
+ var _dataParams8 = key.split('_selectNumberRange')[0];
10564
+ if (params[key][0] === 'range') {
10565
+ if (params[key][1][0]) {
10566
+ params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
10567
+ }
10568
+ if (params[key][1][1]) {
10569
+ params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
10570
+ }
10571
+ } else {
10572
+ params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
10585
10573
  }
10586
- })();
10574
+ delete params[key];
10575
+ } else if (Array.isArray(element)) {
10576
+ params[key] = element.join(',');
10577
+ } else if (element == null || element === undefined || String(element).trim() === '') {
10578
+ delete params[key];
10579
+ }
10587
10580
  }
10581
+ };
10582
+ for (var key in params) {
10583
+ _loop();
10588
10584
  }
10589
10585
  var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
10590
10586
  pageSize: pageSize,
@@ -10684,8 +10680,8 @@ var AddSelect = function AddSelect(props) {
10684
10680
  pageSize: 5000,
10685
10681
  currentPage: 1
10686
10682
  })]).then(function (x) {
10687
- formatSource(x, 0, 2, tableSearchForm, ['id', 'name']);
10688
- formatTreeDataSource(x, 1, 3, tableSearchForm);
10683
+ formatSource(x, 0, 3, tableSearchForm, ['id', 'name']);
10684
+ formatTreeDataSource(x, 1, 4, tableSearchForm);
10689
10685
  });
10690
10686
  }
10691
10687
  if (businessType == 'skc') {
@@ -12039,72 +12035,70 @@ var BillEntry = function BillEntry(_ref3) {
12039
12035
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
12040
12036
  var canEntryObject, _canEntryObject$error, messageInfo;
12041
12037
  return _regeneratorRuntime().wrap(function _callee$(_context) {
12042
- while (1) {
12043
- switch (_context.prev = _context.next) {
12044
- case 0:
12045
- if (data === null || data === void 0 ? void 0 : data.length) {
12046
- _context.next = 3;
12047
- break;
12048
- }
12049
- message.warning('至少录入一条数据');
12050
- return _context.abrupt("return");
12051
- case 3:
12052
- if (data === null || data === void 0 ? void 0 : data.every(function (d) {
12053
- return d.skuCode && d.name;
12054
- })) {
12055
- _context.next = 6;
12056
- break;
12057
- }
12058
- message.warning('请选择商品!');
12059
- return _context.abrupt("return");
12060
- case 6:
12061
- if (data === null || data === void 0 ? void 0 : data.every(function (d) {
12062
- return d.count;
12063
- })) {
12064
- _context.next = 9;
12065
- break;
12066
- }
12067
- message.warning('请填写商品数量!');
12068
- return _context.abrupt("return");
12069
- case 9:
12070
- _context.next = 11;
12071
- return isSkuCanEntry(data);
12072
- case 11:
12073
- canEntryObject = _context.sent;
12074
- if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
12075
- _context.next = 16;
12076
- break;
12077
- }
12078
- 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) {
12079
- return /*#__PURE__*/React.createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
12080
- }));
12081
- messageInfo && message.warning({
12082
- content: messageInfo,
12083
- duration: 6
12084
- });
12085
- return _context.abrupt("return");
12086
- case 16:
12087
- setLoading(true);
12088
- onSaveCallback(data).then(function (res) {
12089
- {
12090
- var _Object$keys;
12091
- var initSuccessMessage = '保存成功';
12092
- var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
12093
- if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
12094
- (rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? message.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
12095
- } else {
12096
- message.success(initSuccessMessage);
12097
- }
12038
+ while (1) switch (_context.prev = _context.next) {
12039
+ case 0:
12040
+ if (data === null || data === void 0 ? void 0 : data.length) {
12041
+ _context.next = 3;
12042
+ break;
12043
+ }
12044
+ message.warning('至少录入一条数据');
12045
+ return _context.abrupt("return");
12046
+ case 3:
12047
+ if (data === null || data === void 0 ? void 0 : data.every(function (d) {
12048
+ return d.skuCode && d.name;
12049
+ })) {
12050
+ _context.next = 6;
12051
+ break;
12052
+ }
12053
+ message.warning('请选择商品!');
12054
+ return _context.abrupt("return");
12055
+ case 6:
12056
+ if (data === null || data === void 0 ? void 0 : data.every(function (d) {
12057
+ return d.count;
12058
+ })) {
12059
+ _context.next = 9;
12060
+ break;
12061
+ }
12062
+ message.warning('请填写商品数量!');
12063
+ return _context.abrupt("return");
12064
+ case 9:
12065
+ _context.next = 11;
12066
+ return isSkuCanEntry(data);
12067
+ case 11:
12068
+ canEntryObject = _context.sent;
12069
+ if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
12070
+ _context.next = 16;
12071
+ break;
12072
+ }
12073
+ 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) {
12074
+ return /*#__PURE__*/React.createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
12075
+ }));
12076
+ messageInfo && message.warning({
12077
+ content: messageInfo,
12078
+ duration: 6
12079
+ });
12080
+ return _context.abrupt("return");
12081
+ case 16:
12082
+ setLoading(true);
12083
+ onSaveCallback(data).then(function (res) {
12084
+ {
12085
+ var _Object$keys;
12086
+ var initSuccessMessage = '保存成功';
12087
+ var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
12088
+ if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
12089
+ (rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? message.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
12090
+ } else {
12091
+ message.success(initSuccessMessage);
12098
12092
  }
12099
- setLoading(false);
12100
- }).catch(function (Error) {
12101
- message.error(Error);
12102
- setLoading(false);
12103
- });
12104
- case 18:
12105
- case "end":
12106
- return _context.stop();
12107
- }
12093
+ }
12094
+ setLoading(false);
12095
+ }).catch(function (Error) {
12096
+ message.error(Error);
12097
+ setLoading(false);
12098
+ });
12099
+ case 18:
12100
+ case "end":
12101
+ return _context.stop();
12108
12102
  }
12109
12103
  }, _callee);
12110
12104
  }));
@@ -14237,7 +14231,7 @@ var BusinessSearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
14237
14231
  needModalTable: needModalTable,
14238
14232
  modalTableProps: modalTableProps
14239
14233
  });
14240
- }, [props === null || props === void 0 ? void 0 : props.value, props.disabled]);
14234
+ }, [props === null || props === void 0 ? void 0 : props.value, props.disabled, props.selectBusinessType]);
14241
14235
  useImperativeHandle(ref, function () {
14242
14236
  return {
14243
14237
  getRef: function getRef() {
@@ -14259,9 +14253,13 @@ var BusinessSearchSelect$1 = /*#__PURE__*/React.memo(BusinessSearchSelect, funct
14259
14253
  if (props && props.disabled !== nextProps.disabled) {
14260
14254
  return false;
14261
14255
  }
14256
+ if (props && props.selectBusinessType !== nextProps.selectBusinessType) {
14257
+ return false;
14258
+ }
14262
14259
  return true;
14263
14260
  });
14264
14261
 
14262
+ // import { getCurrentTargetBgId } from '@/utils/LocalstorageUtils';
14265
14263
  function handleSelectColumn(c, parentProps) {
14266
14264
  var result = c;
14267
14265
  var exceptColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.exceptColumns) || [];
@@ -14273,7 +14271,7 @@ function handleSelectColumn(c, parentProps) {
14273
14271
  return !exceptColumns.includes(i.dataIndex);
14274
14272
  });
14275
14273
  }
14276
- // 追加
14274
+ // 追加(最好不用这个,当组件不固定时候会有影响)
14277
14275
  if (additionColumns === null || additionColumns === void 0 ? void 0 : additionColumns.length) {
14278
14276
  additionColumns.forEach(function (i) {
14279
14277
  result.splice(i.position, 0, i.column);
@@ -14286,6 +14284,7 @@ function handleSelectColumn(c, parentProps) {
14286
14284
  return result;
14287
14285
  }
14288
14286
  var AddSkuSelect = function AddSkuSelect(parProps) {
14287
+ var _parProps$requestConf, _parProps$requestConf2;
14289
14288
  var selectProps = {
14290
14289
  mode: 'multiple'
14291
14290
  };
@@ -14298,6 +14297,19 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
14298
14297
  title: 'SKU编码',
14299
14298
  width: 150,
14300
14299
  dataIndex: 'skuCode'
14300
+ }, {
14301
+ title: '商品条码',
14302
+ width: 100,
14303
+ ellipsis: {
14304
+ showTitle: false
14305
+ },
14306
+ dataIndex: 'itemEancode',
14307
+ render: function render(text) {
14308
+ return /*#__PURE__*/React.createElement(Tooltip, {
14309
+ placement: "topLeft",
14310
+ title: text
14311
+ }, text);
14312
+ }
14301
14313
  }, {
14302
14314
  title: 'SKU名称',
14303
14315
  width: 200,
@@ -14385,11 +14397,11 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
14385
14397
  requestConfig: _objectSpread2({
14386
14398
  url: "/items/sku/pager/v2",
14387
14399
  filter: 'qp-name-like',
14388
- otherParams: {
14400
+ otherParams: _objectSpread2({
14389
14401
  'qp-combination-eq': false,
14390
14402
  'qp-approveStatus-eq': 1,
14391
14403
  'qp-status-eq': 1
14392
- },
14404
+ }, (parProps === null || parProps === void 0 ? void 0 : (_parProps$requestConf = parProps.requestConfig) === null || _parProps$requestConf === void 0 ? void 0 : _parProps$requestConf.addOtherParams) || {}),
14393
14405
  mappingTextField: 'name',
14394
14406
  mappingValueField: 'skuCode'
14395
14407
  }, parProps.requestConfig),
@@ -14411,6 +14423,13 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
14411
14423
  }, {
14412
14424
  name: 'qp-skuName-like',
14413
14425
  label: 'SKU名称'
14426
+ }, {
14427
+ name: 'qp-code-in',
14428
+ label: '商品条码',
14429
+ field: {
14430
+ type: 'multipleQueryInput',
14431
+ props: _objectSpread2({}, ((_parProps$requestConf2 = parProps.requestConfig) === null || _parProps$requestConf2 === void 0 ? void 0 : _parProps$requestConf2.itemEancodeValueRequestConfig) || {})
14432
+ }
14414
14433
  }, {
14415
14434
  name: 'qp-brandId-in',
14416
14435
  type: 'select',
@@ -14491,12 +14510,12 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
14491
14510
  }));
14492
14511
  }
14493
14512
  }, {
14494
- title: '国际条码',
14513
+ title: '商品条码',
14495
14514
  width: 100,
14496
14515
  ellipsis: {
14497
14516
  showTitle: false
14498
14517
  },
14499
- dataIndex: 'barCode',
14518
+ dataIndex: 'itemEancode',
14500
14519
  render: function render(text) {
14501
14520
  return /*#__PURE__*/React.createElement(Tooltip, {
14502
14521
  placement: "topLeft",
@@ -14602,6 +14621,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
14602
14621
  })));
14603
14622
  };
14604
14623
  var AddSkcSelect = function AddSkcSelect(parProps) {
14624
+ var _parProps$requestConf3;
14605
14625
  var selectProps = {
14606
14626
  mode: 'multiple'
14607
14627
  };
@@ -14679,9 +14699,9 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
14679
14699
  requestConfig: _objectSpread2({
14680
14700
  url: "/items/skc/skcSelect",
14681
14701
  filter: 'qp-name-like',
14682
- otherParams: {
14702
+ otherParams: _objectSpread2({
14683
14703
  'qp-skcStatus-eq': 1
14684
- },
14704
+ }, (parProps === null || parProps === void 0 ? void 0 : (_parProps$requestConf3 = parProps.requestConfig) === null || _parProps$requestConf3 === void 0 ? void 0 : _parProps$requestConf3.addOtherParams) || {}),
14685
14705
  mappingTextField: 'name',
14686
14706
  mappingValueField: 'code'
14687
14707
  }, parProps.requestConfig),
@@ -14881,6 +14901,7 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
14881
14901
  })));
14882
14902
  };
14883
14903
  var AddSpuSelect = function AddSpuSelect(parProps) {
14904
+ var _parProps$requestConf4;
14884
14905
  var selectProps = {
14885
14906
  mode: 'multiple'
14886
14907
  };
@@ -14967,11 +14988,11 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
14967
14988
  requestConfig: _objectSpread2({
14968
14989
  url: "/items/item",
14969
14990
  filter: 'qp-itemCode,name-orGroup,like',
14970
- otherParams: {
14991
+ otherParams: _objectSpread2({
14971
14992
  'qp-approveStatus-eq': 1,
14972
14993
  'qp-status-eq': 1,
14973
14994
  sorter: 'desc-id'
14974
- },
14995
+ }, (parProps === null || parProps === void 0 ? void 0 : (_parProps$requestConf4 = parProps.requestConfig) === null || _parProps$requestConf4 === void 0 ? void 0 : _parProps$requestConf4.addOtherParams) || {}),
14975
14996
  mappingTextField: 'name',
14976
14997
  mappingValueField: 'itemCode'
14977
14998
  }, parProps.requestConfig),
@@ -15239,7 +15260,7 @@ var CommodityEntry = function CommodityEntry(props) {
15239
15260
  * @LastEditTime: 2022-01-14 17:17:26
15240
15261
  * @LastEditors: rodchen
15241
15262
  */
15242
- var index = (function (storageKeyString) {
15263
+ var index$1 = (function (storageKeyString) {
15243
15264
  var seconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
15244
15265
  var tipsCallFunction = arguments.length > 2 ? arguments[2] : undefined;
15245
15266
  if (typeof seconds !== 'number') throw new Error('seconds should be number');
@@ -15357,44 +15378,42 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
15357
15378
  var _ctx$form;
15358
15379
  var resData, coverData, data, dataList;
15359
15380
  return _regeneratorRuntime().wrap(function _callee$(_context) {
15360
- while (1) {
15361
- switch (_context.prev = _context.next) {
15362
- case 0:
15363
- resData = (res === null || res === void 0 ? void 0 : res.data) || [];
15364
- if (!(resData.status === '0' || resData.code === '000000')) {
15365
- _context.next = 13;
15366
- break;
15367
- }
15368
- data = resData.data;
15369
- if (!remoteSource.converter) {
15370
- _context.next = 9;
15371
- break;
15372
- }
15373
- _context.next = 6;
15374
- return remoteSource.converter({
15375
- data: [data]
15376
- });
15377
- case 6:
15378
- coverData = _context.sent;
15379
- _context.next = 11;
15381
+ while (1) 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;
15380
15386
  break;
15381
- case 9:
15382
- dataList = data && Array.isArray(data) ? data : data && [data] || [];
15383
- coverData = dataList.length && dataList.map(function (ites) {
15384
- return mapSearchTree(ites);
15385
- }) || [];
15386
- case 11:
15387
- _context.next = 14;
15387
+ }
15388
+ data = resData.data;
15389
+ if (!remoteSource.converter) {
15390
+ _context.next = 9;
15388
15391
  break;
15389
- case 13:
15390
- coverData = [];
15391
- case 14:
15392
- setTreeData(coverData);
15393
- ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
15394
- case 16:
15395
- case "end":
15396
- return _context.stop();
15397
- }
15392
+ }
15393
+ _context.next = 6;
15394
+ return remoteSource.converter({
15395
+ data: [data]
15396
+ });
15397
+ case 6:
15398
+ coverData = _context.sent;
15399
+ _context.next = 11;
15400
+ break;
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;
15408
+ break;
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();
15398
15417
  }
15399
15418
  }, _callee);
15400
15419
  }));
@@ -15582,7 +15601,7 @@ var BusinessTreeSearchSelect = function BusinessTreeSearchSelect(props) {
15582
15601
  }, [props === null || props === void 0 ? void 0 : props.value]);
15583
15602
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(MemoTreeSearchSelect, _objectSpread2({}, currentProps)));
15584
15603
  };
15585
- var index$1 = /*#__PURE__*/React.memo(BusinessTreeSearchSelect, function (props, nextProps) {
15604
+ var index$2 = /*#__PURE__*/React.memo(BusinessTreeSearchSelect, function (props, nextProps) {
15586
15605
  if (props && props.labelInValue && props.value && JSON.stringify(props.value) !== JSON.stringify(nextProps.value)) {
15587
15606
  return false;
15588
15607
  }
@@ -15595,7 +15614,7 @@ var index$1 = /*#__PURE__*/React.memo(BusinessTreeSearchSelect, function (props,
15595
15614
  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";
15596
15615
  styleInject(css_248z$8);
15597
15616
 
15598
- var index$2 = (function (props) {
15617
+ var index$3 = (function (props) {
15599
15618
  var _props$formStatusMapp = props.formStatusMapping,
15600
15619
  formStatusMapping = _props$formStatusMapp === void 0 ? [] : _props$formStatusMapp;
15601
15620
  return /*#__PURE__*/React.createElement("div", {
@@ -17019,7 +17038,7 @@ var iconMap = {
17019
17038
  src: moreIcon
17020
17039
  })
17021
17040
  };
17022
- var index$3 = (function (props) {
17041
+ var index$4 = (function (props) {
17023
17042
  var _useLocation = useLocation(),
17024
17043
  pathname = _useLocation.pathname;
17025
17044
  var _useState = useState(pathname + 'id'),
@@ -17236,7 +17255,7 @@ var css_248z$d = ".home_page_head {\n height: 54px;\n display: flex;\n justif
17236
17255
  styleInject(css_248z$d);
17237
17256
 
17238
17257
  var _excluded$c = ["children"];
17239
- var index$4 = (function (props) {
17258
+ var index$5 = (function (props) {
17240
17259
  var _useLocation = useLocation(),
17241
17260
  pathname = _useLocation.pathname;
17242
17261
  var _useState = useState(pathname + 'id'),
@@ -19512,21 +19531,19 @@ function _outLogin() {
19512
19531
  _outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
19513
19532
  var res;
19514
19533
  return _regeneratorRuntime().wrap(function _callee$(_context) {
19515
- while (1) {
19516
- switch (_context.prev = _context.next) {
19517
- case 0:
19518
- _context.next = 2;
19519
- return axios({
19520
- url: '/user/web/loginOut',
19521
- method: 'GET'
19522
- });
19523
- case 2:
19524
- res = _context.sent;
19525
- return _context.abrupt("return", res);
19526
- case 4:
19527
- case "end":
19528
- return _context.stop();
19529
- }
19534
+ while (1) switch (_context.prev = _context.next) {
19535
+ case 0:
19536
+ _context.next = 2;
19537
+ return axios({
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();
19530
19547
  }
19531
19548
  }, _callee);
19532
19549
  }));
@@ -19655,31 +19672,29 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
19655
19672
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
19656
19673
  var sessionId;
19657
19674
  return _regeneratorRuntime().wrap(function _callee$(_context) {
19658
- while (1) {
19659
- switch (_context.prev = _context.next) {
19660
- case 0:
19661
- _context.next = 2;
19662
- return getSessionId();
19663
- case 2:
19664
- sessionId = _context.sent;
19665
- _context.next = 5;
19666
- return outLogin({
19667
- sessionId: sessionId
19675
+ while (1) switch (_context.prev = _context.next) {
19676
+ case 0:
19677
+ _context.next = 2;
19678
+ return getSessionId();
19679
+ case 2:
19680
+ sessionId = _context.sent;
19681
+ _context.next = 5;
19682
+ return outLogin({
19683
+ sessionId: sessionId
19684
+ });
19685
+ case 5:
19686
+ // @ts-ignore
19687
+ if (BUILD_TYPE) {
19688
+ message.success('退出登录成功');
19689
+ history.replace({
19690
+ pathname: '/user/login'
19668
19691
  });
19669
- case 5:
19670
- // @ts-ignore
19671
- if (BUILD_TYPE) {
19672
- message.success('退出登录成功');
19673
- history.replace({
19674
- pathname: '/user/login'
19675
- });
19676
- } else {
19677
- setLoginOutPath();
19678
- }
19679
- case 6:
19680
- case "end":
19681
- return _context.stop();
19682
- }
19692
+ } else {
19693
+ setLoginOutPath();
19694
+ }
19695
+ case 6:
19696
+ case "end":
19697
+ return _context.stop();
19683
19698
  }
19684
19699
  }, _callee);
19685
19700
  }));
@@ -21507,6 +21522,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
21507
21522
  showSubMenu: isShow
21508
21523
  });
21509
21524
  }, 500);
21525
+ //设置tabs标签左右滚动
21510
21526
  _this.setTabNavTransLate = function (num) {
21511
21527
  var _document$getElementB, _document$getElementB2, _document$getElementB3, _document$getElementB4, _document$defaultView;
21512
21528
  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];
@@ -22187,14 +22203,12 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
22187
22203
  request: function () {
22188
22204
  var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
22189
22205
  return _regeneratorRuntime().wrap(function _callee$(_context) {
22190
- while (1) {
22191
- switch (_context.prev = _context.next) {
22192
- case 0:
22193
- return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
22194
- case 1:
22195
- case "end":
22196
- return _context.stop();
22197
- }
22206
+ while (1) switch (_context.prev = _context.next) {
22207
+ case 0:
22208
+ return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
22209
+ case 1:
22210
+ case "end":
22211
+ return _context.stop();
22198
22212
  }
22199
22213
  }, _callee);
22200
22214
  }));
@@ -22332,7 +22346,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
22332
22346
  }]);
22333
22347
  return WrapperComponent;
22334
22348
  }(React.Component);
22335
- var index$5 = (function (props) {
22349
+ var index$6 = (function (props) {
22336
22350
  var _useModel = useModel('@@initialState'),
22337
22351
  _useModel$initialStat = _useModel.initialState,
22338
22352
  initialState = _useModel$initialStat === void 0 ? {} : _useModel$initialStat;
@@ -22573,7 +22587,7 @@ var FixedScrollBar = function FixedScrollBar(_ref, ref) {
22573
22587
  };
22574
22588
  var FixedScrollBar$1 = /*#__PURE__*/React.forwardRef(FixedScrollBar);
22575
22589
 
22576
- var index$6 = /*#__PURE__*/forwardRef(function (props, ref) {
22590
+ var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
22577
22591
  var _useState = useState(false),
22578
22592
  _useState2 = _slicedToArray(_useState, 2),
22579
22593
  show = _useState2[0],
@@ -29866,28 +29880,26 @@ var valueType = {
29866
29880
  var getDynamicDict = /*#__PURE__*/function () {
29867
29881
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
29868
29882
  return _regeneratorRuntime().wrap(function _callee$(_context) {
29869
- while (1) {
29870
- switch (_context.prev = _context.next) {
29871
- case 0:
29872
- _context.next = 2;
29873
- return request$1({
29874
- url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
29875
- converter: function converter(_ref2) {
29876
- var data = _ref2.data;
29877
- return data === null || data === void 0 ? void 0 : data.map(function (d) {
29878
- return {
29879
- text: d.name,
29880
- value: d.code || d.brandCode
29881
- };
29882
- });
29883
- }
29884
- });
29885
- case 2:
29886
- return _context.abrupt("return", _context.sent);
29887
- case 3:
29888
- case "end":
29889
- return _context.stop();
29890
- }
29883
+ while (1) switch (_context.prev = _context.next) {
29884
+ case 0:
29885
+ _context.next = 2;
29886
+ return request$1({
29887
+ url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
29888
+ converter: function converter(_ref2) {
29889
+ var data = _ref2.data;
29890
+ return data === null || data === void 0 ? void 0 : data.map(function (d) {
29891
+ return {
29892
+ text: d.name,
29893
+ value: d.code || d.brandCode
29894
+ };
29895
+ });
29896
+ }
29897
+ });
29898
+ case 2:
29899
+ return _context.abrupt("return", _context.sent);
29900
+ case 3:
29901
+ case "end":
29902
+ return _context.stop();
29891
29903
  }
29892
29904
  }, _callee);
29893
29905
  }));
@@ -29937,55 +29949,53 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
29937
29949
  useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
29938
29950
  var _ref$current, source;
29939
29951
  return _regeneratorRuntime().wrap(function _callee$(_context) {
29940
- while (1) {
29941
- switch (_context.prev = _context.next) {
29942
- case 0:
29943
- _context.next = 2;
29944
- return setIsShowAndType(function (prev) {
29945
- if (record.inputType === 20 || record.inputType === 30) {
29946
- return {
29947
- isShow: true,
29948
- singleOrMultiple: record.inputType,
29949
- type: record.choiceType
29950
- };
29951
- }
29952
- return prev;
29953
- });
29954
- case 2:
29955
- if (!record.dictionaryCode) {
29956
- _context.next = 17;
29957
- break;
29958
- }
29959
- if (!(record.choiceType == 20)) {
29960
- _context.next = 7;
29961
- break;
29952
+ while (1) switch (_context.prev = _context.next) {
29953
+ case 0:
29954
+ _context.next = 2;
29955
+ return setIsShowAndType(function (prev) {
29956
+ if (record.inputType === 20 || record.inputType === 30) {
29957
+ return {
29958
+ isShow: true,
29959
+ singleOrMultiple: record.inputType,
29960
+ type: record.choiceType
29961
+ };
29962
29962
  }
29963
- _context.t0 = getDictionarySource(record.dictionaryCode);
29964
- _context.next = 15;
29963
+ return prev;
29964
+ });
29965
+ case 2:
29966
+ if (!record.dictionaryCode) {
29967
+ _context.next = 17;
29965
29968
  break;
29966
- case 7:
29967
- if (!(record.choiceType == 30)) {
29968
- _context.next = 13;
29969
- break;
29970
- }
29971
- _context.next = 10;
29972
- return getDynamicDict(record.dictionaryCode);
29973
- case 10:
29974
- _context.t1 = _context.sent;
29975
- _context.next = 14;
29969
+ }
29970
+ if (!(record.choiceType == 20)) {
29971
+ _context.next = 7;
29976
29972
  break;
29977
- case 13:
29978
- _context.t1 = [];
29979
- case 14:
29980
- _context.t0 = _context.t1;
29981
- case 15:
29982
- source = _context.t0;
29983
- // @ts-ignore
29984
- ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
29985
- case 17:
29986
- case "end":
29987
- return _context.stop();
29988
- }
29973
+ }
29974
+ _context.t0 = getDictionarySource(record.dictionaryCode);
29975
+ _context.next = 15;
29976
+ break;
29977
+ case 7:
29978
+ if (!(record.choiceType == 30)) {
29979
+ _context.next = 13;
29980
+ break;
29981
+ }
29982
+ _context.next = 10;
29983
+ return getDynamicDict(record.dictionaryCode);
29984
+ case 10:
29985
+ _context.t1 = _context.sent;
29986
+ _context.next = 14;
29987
+ break;
29988
+ case 13:
29989
+ _context.t1 = [];
29990
+ case 14:
29991
+ _context.t0 = _context.t1;
29992
+ case 15:
29993
+ source = _context.t0;
29994
+ // @ts-ignore
29995
+ ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
29996
+ case 17:
29997
+ case "end":
29998
+ return _context.stop();
29989
29999
  }
29990
30000
  }, _callee);
29991
30001
  })));
@@ -30053,30 +30063,28 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
30053
30063
  var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
30054
30064
  var form, values, name, relates, source;
30055
30065
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
30056
- while (1) {
30057
- switch (_context2.prev = _context2.next) {
30058
- case 0:
30059
- form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
30060
- if (values[0]) {
30061
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
30062
- form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
30063
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
30064
- }
30065
- if (!values[1]) {
30066
- _context2.next = 9;
30067
- break;
30068
- }
30069
- _context2.next = 5;
30070
- return getDynamicDict(record.dictionaryCode || values[1]);
30071
- case 5:
30072
- source = _context2.sent;
30066
+ while (1) switch (_context2.prev = _context2.next) {
30067
+ case 0:
30068
+ form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
30069
+ if (values[0]) {
30073
30070
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
30074
30071
  form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
30075
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
30076
- case 9:
30077
- case "end":
30078
- return _context2.stop();
30079
- }
30072
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
30073
+ }
30074
+ if (!values[1]) {
30075
+ _context2.next = 9;
30076
+ break;
30077
+ }
30078
+ _context2.next = 5;
30079
+ return getDynamicDict(record.dictionaryCode || values[1]);
30080
+ case 5:
30081
+ source = _context2.sent;
30082
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
30083
+ form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
30084
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
30085
+ case 9:
30086
+ case "end":
30087
+ return _context2.stop();
30080
30088
  }
30081
30089
  }, _callee2);
30082
30090
  }));
@@ -30536,43 +30544,41 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
30536
30544
  var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
30537
30545
  var values, name, form, source;
30538
30546
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
30539
- while (1) {
30540
- switch (_context3.prev = _context3.next) {
30541
- case 0:
30542
- values = _ref10.values, name = _ref10.name, form = _ref10.form;
30543
- if (values[1] === 40) {
30544
- form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
30545
- form.setFieldVisible(name, false);
30546
- }
30547
- if (!(values[0] === 30)) {
30548
- _context3.next = 10;
30549
- break;
30550
- }
30551
- _context3.next = 5;
30552
- return request$1({
30553
- url: '/basic/dictDynamicItem/queryList',
30554
- converter: function converter(_ref11) {
30555
- var data = _ref11.data;
30556
- return data === null || data === void 0 ? void 0 : data.map(function (d) {
30557
- return {
30558
- text: d.dictCode,
30559
- value: d.dictCode
30560
- };
30561
- });
30562
- }
30563
- });
30564
- case 5:
30565
- source = _context3.sent;
30566
- form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
30567
- form.setFieldVisible(name, true);
30568
- _context3.next = 11;
30569
- break;
30570
- case 10:
30547
+ while (1) switch (_context3.prev = _context3.next) {
30548
+ case 0:
30549
+ values = _ref10.values, name = _ref10.name, form = _ref10.form;
30550
+ if (values[1] === 40) {
30551
+ form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
30571
30552
  form.setFieldVisible(name, false);
30572
- case 11:
30573
- case "end":
30574
- return _context3.stop();
30575
- }
30553
+ }
30554
+ if (!(values[0] === 30)) {
30555
+ _context3.next = 10;
30556
+ break;
30557
+ }
30558
+ _context3.next = 5;
30559
+ return request$1({
30560
+ url: '/basic/dictDynamicItem/queryList',
30561
+ converter: function converter(_ref11) {
30562
+ var data = _ref11.data;
30563
+ return data === null || data === void 0 ? void 0 : data.map(function (d) {
30564
+ return {
30565
+ text: d.dictCode,
30566
+ value: d.dictCode
30567
+ };
30568
+ });
30569
+ }
30570
+ });
30571
+ case 5:
30572
+ source = _context3.sent;
30573
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
30574
+ form.setFieldVisible(name, true);
30575
+ _context3.next = 11;
30576
+ break;
30577
+ case 10:
30578
+ form.setFieldVisible(name, false);
30579
+ case 11:
30580
+ case "end":
30581
+ return _context3.stop();
30576
30582
  }
30577
30583
  }, _callee3);
30578
30584
  }));
@@ -30761,66 +30767,64 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
30761
30767
  var _ref$current4, _res$editableStatus;
30762
30768
  var res, _res$defaultValue;
30763
30769
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
30764
- while (1) {
30765
- switch (_context4.prev = _context4.next) {
30766
- case 0:
30767
- _context4.next = 2;
30768
- return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
30769
- case 2:
30770
- res = _context4.sent;
30771
- res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
30772
- res.fieldGroup = record.fieldGroup;
30773
- res.businessType = record.businessType;
30774
- res.info = {
30775
- enumeration: res.enumeration,
30776
- dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
30777
- formula: res.formula,
30778
- scale: res.scale,
30779
- variable: res.variable
30780
- };
30781
- res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
30782
- res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
30783
- res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
30784
- if (res.inputType === 40) {
30785
- res.valueType = 22;
30770
+ while (1) switch (_context4.prev = _context4.next) {
30771
+ case 0:
30772
+ _context4.next = 2;
30773
+ return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
30774
+ case 2:
30775
+ res = _context4.sent;
30776
+ res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
30777
+ res.fieldGroup = record.fieldGroup;
30778
+ res.businessType = record.businessType;
30779
+ res.info = {
30780
+ enumeration: res.enumeration,
30781
+ dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
30782
+ formula: res.formula,
30783
+ scale: res.scale,
30784
+ variable: res.variable
30785
+ };
30786
+ res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
30787
+ res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
30788
+ res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
30789
+ if (res.inputType === 40) {
30790
+ res.valueType = 22;
30791
+ }
30792
+ // 把数组处理成文本
30793
+ if (res.inputType === 30) {
30794
+ if (res.defaultValue) {
30795
+ res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
30786
30796
  }
30787
- // 把数组处理成文本
30788
- if (res.inputType === 30) {
30789
- if (res.defaultValue) {
30790
- res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
30791
- }
30797
+ }
30798
+ res.fieldMapping = res.fieldMapping || '';
30799
+ delete res.formula;
30800
+ delete res.showValue;
30801
+ if (!(mode === 'create')) {
30802
+ _context4.next = 18;
30803
+ break;
30804
+ }
30805
+ request$1({
30806
+ url: "/basic/flow/businessField",
30807
+ method: 'POST',
30808
+ params: res,
30809
+ successMessage: '创建成功!',
30810
+ converter: function converter() {
30811
+ onParentOk();
30792
30812
  }
30793
- res.fieldMapping = res.fieldMapping || '';
30794
- delete res.formula;
30795
- delete res.showValue;
30796
- if (!(mode === 'create')) {
30797
- _context4.next = 18;
30798
- break;
30813
+ });
30814
+ return _context4.abrupt("return");
30815
+ case 18:
30816
+ request$1({
30817
+ url: "/basic/flow/businessField/".concat(record.id),
30818
+ method: 'PATCH',
30819
+ params: res,
30820
+ successMessage: '修改成功!',
30821
+ converter: function converter() {
30822
+ onParentOk();
30799
30823
  }
30800
- request$1({
30801
- url: "/basic/flow/businessField",
30802
- method: 'POST',
30803
- params: res,
30804
- successMessage: '创建成功!',
30805
- converter: function converter() {
30806
- onParentOk();
30807
- }
30808
- });
30809
- return _context4.abrupt("return");
30810
- case 18:
30811
- request$1({
30812
- url: "/basic/flow/businessField/".concat(record.id),
30813
- method: 'PATCH',
30814
- params: res,
30815
- successMessage: '修改成功!',
30816
- converter: function converter() {
30817
- onParentOk();
30818
- }
30819
- });
30820
- case 19:
30821
- case "end":
30822
- return _context4.stop();
30823
- }
30824
+ });
30825
+ case 19:
30826
+ case "end":
30827
+ return _context4.stop();
30824
30828
  }
30825
30829
  }, _callee4);
30826
30830
  }));
@@ -31285,4 +31289,4 @@ var JsonQueryTable = /*#__PURE__*/React.memo(function (props) {
31285
31289
  }, "setting"));
31286
31290
  });
31287
31291
 
31288
- export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, BillEntry, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, index$1 as BusinessTreeSearchSelect, index as CheckOneUser, ColumnSettingTable, CommodityEntry, DataImport, DataValidation, index$3 as DetailPageWrapper, ExportIcon, GuideWrapper, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, QueryMutipleInput, SearchSelect, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect };
31292
+ export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, BillEntry, index$6 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, index$2 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, CommodityEntry, DataImport, DataValidation, index$4 as DetailPageWrapper, ExportIcon, GuideWrapper, index$5 as HomePageWrapper, JsonQueryTable, index$7 as MoreTreeTable, QueryMutipleInput, SearchSelect, index$3 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect };