@bit-sun/business-component 4.0.0-alpha.3 → 4.0.2

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 (241) hide show
  1. package/.editorconfig +16 -0
  2. package/.fatherrc.ts +5 -0
  3. package/.gitlab-ci.yml +179 -0
  4. package/.prettierignore +7 -0
  5. package/.prettierrc +11 -0
  6. package/.umirc.ts +74 -0
  7. package/dist/components/Business/BsSulaQueryTable/setting.d.ts +1 -1
  8. package/dist/components/Business/BsSulaQueryTable/utils.d.ts +1 -1
  9. package/dist/components/Business/columnSettingTable/columnSetting.d.ts +1 -1
  10. package/dist/components/Business/columnSettingTable/index.d.ts +1 -0
  11. package/dist/components/Common/ParagraphCopier/index.d.ts +8 -0
  12. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +3 -0
  13. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/helps.d.ts +2 -0
  14. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +3 -0
  15. package/dist/index.d.ts +1 -0
  16. package/dist/index.esm.js +1901 -639
  17. package/dist/index.js +1903 -636
  18. package/dist/utils/requestUtils.d.ts +1 -0
  19. package/dist/utils/utils.d.ts +3 -0
  20. package/docs/index.md +21 -0
  21. package/package.json +9 -14
  22. package/src/assets/32.svg +28 -0
  23. package/src/assets/addIcon.svg +18 -0
  24. package/src/assets/allfunc.svg +28 -0
  25. package/src/assets/arrowRight.svg +25 -0
  26. package/src/assets/arrow_top.png +0 -0
  27. package/src/assets/arrow_top.svg +18 -0
  28. package/src/assets/btn-delete.svg +30 -0
  29. package/src/assets/btn-edit.svg +20 -0
  30. package/src/assets/btn-more.svg +18 -0
  31. package/src/assets/btn-submit.svg +20 -0
  32. package/src/assets/caidan.svg +12 -0
  33. package/src/assets/close.svg +26 -0
  34. package/src/assets/closeicon.png +0 -0
  35. package/src/assets/drag.svg +17 -0
  36. package/src/assets/exportFail.svg +38 -0
  37. package/src/assets/exportProcessing.svg +29 -0
  38. package/src/assets/exportSuccess.svg +35 -0
  39. package/src/assets/exportlogo.png +0 -0
  40. package/src/assets/fixed-left-active.svg +12 -0
  41. package/src/assets/fixed-left.svg +16 -0
  42. package/src/assets/fixed-right-active.svg +12 -0
  43. package/src/assets/fixed-right.svg +16 -0
  44. package/src/assets/guanbi.svg +16 -0
  45. package/src/assets/icon-quanping.svg +16 -0
  46. package/src/assets/icon-shezhi.svg +18 -0
  47. package/src/assets/label_icon_bottom.svg +26 -0
  48. package/src/assets/list-no-img.svg +22 -0
  49. package/src/assets/morentouxiang-32.svg +24 -0
  50. package/src/assets/right.png +0 -0
  51. package/src/assets/scanning.svg +25 -0
  52. package/src/assets/upExport.svg +23 -0
  53. package/src/assets/xinglan-icon-out.png +0 -0
  54. package/src/common/ENUM.ts +41 -0
  55. package/src/components/Business/AddSelectBusiness/index.md +398 -0
  56. package/src/components/Business/AddSelectBusiness/index.tsx +1116 -0
  57. package/src/components/Business/BsLayouts/Components/AllFunc/drawContent.tsx +112 -0
  58. package/src/components/Business/BsLayouts/Components/AllFunc/index.less +153 -0
  59. package/src/components/Business/BsLayouts/Components/AllFunc/index.tsx +70 -0
  60. package/src/components/Business/BsLayouts/Components/ChooseStore/index.less +0 -0
  61. package/src/components/Business/BsLayouts/Components/ChooseStore/index.tsx +193 -0
  62. package/src/components/Business/BsLayouts/Components/ChooseStore/services.ts +10 -0
  63. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.less +90 -0
  64. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.tsx +38 -0
  65. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.tsx +243 -0
  66. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.tsx +385 -0
  67. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.tsx +286 -0
  68. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.tsx +75 -0
  69. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/drawContent.less +171 -0
  70. package/src/components/Business/BsLayouts/Components/CustomerMenu/index.less +65 -0
  71. package/src/components/Business/BsLayouts/Components/CustomerMenu/index.tsx +154 -0
  72. package/src/components/Business/BsLayouts/Components/GlobalHeader/index.less +73 -0
  73. package/src/components/Business/BsLayouts/Components/GlobalHeader/index.tsx +163 -0
  74. package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +85 -0
  75. package/src/components/Business/BsLayouts/Components/RightContent/home.less +218 -0
  76. package/src/components/Business/BsLayouts/Components/RightContent/i18n.ts +9 -0
  77. package/src/components/Business/BsLayouts/Components/RightContent/index.tsx +172 -0
  78. package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +161 -0
  79. package/src/components/Business/BsLayouts/Components/SearchFunc/index.tsx +76 -0
  80. package/src/components/Business/BsLayouts/index.less +80 -0
  81. package/src/components/Business/BsLayouts/index.tsx +1602 -0
  82. package/src/components/Business/BsLayouts/service.ts +11 -0
  83. package/src/components/Business/BsLayouts/utils.tsx +205 -0
  84. package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +566 -0
  85. package/src/components/Business/BsSulaQueryTable/bssulaquerytable.less +5 -0
  86. package/src/components/Business/BsSulaQueryTable/index.less +228 -0
  87. package/src/components/Business/BsSulaQueryTable/index.tsx +817 -0
  88. package/src/components/Business/BsSulaQueryTable/setting.tsx +937 -0
  89. package/src/components/Business/BsSulaQueryTable/utils.less +65 -0
  90. package/src/components/Business/BsSulaQueryTable/utils.tsx +709 -0
  91. package/src/components/Business/CommodityEntry/index.md +84 -0
  92. package/src/components/Business/CommodityEntry/index.tsx +82 -0
  93. package/src/components/Business/CommonAlert/index.less +0 -0
  94. package/src/components/Business/CommonAlert/index.tsx +23 -0
  95. package/src/components/Business/CommonGuideWrapper/index.less +156 -0
  96. package/src/components/Business/CommonGuideWrapper/index.md +61 -0
  97. package/src/components/Business/CommonGuideWrapper/index.tsx +108 -0
  98. package/src/components/Business/DetailPageWrapper/index.less +89 -0
  99. package/src/components/Business/DetailPageWrapper/index.tsx +306 -0
  100. package/src/components/Business/DetailPageWrapper/utils.tsx +166 -0
  101. package/src/components/Business/HomePageWrapper/index.less +36 -0
  102. package/src/components/Business/HomePageWrapper/index.md +45 -0
  103. package/src/components/Business/HomePageWrapper/index.tsx +130 -0
  104. package/src/components/Business/JsonQueryTable/components/FieldsModifyModal.tsx +823 -0
  105. package/src/components/Business/JsonQueryTable/components/FieldsSettingsTable.tsx +206 -0
  106. package/src/components/Business/JsonQueryTable/components/Formula.tsx +205 -0
  107. package/src/components/Business/JsonQueryTable/components/MaintainOptions.tsx +127 -0
  108. package/src/components/Business/JsonQueryTable/configButton/index.js +20 -0
  109. package/src/components/Business/JsonQueryTable/configTree/component/compactArrayView.js +25 -0
  110. package/src/components/Business/JsonQueryTable/configTree/component/compactObjectView.js +30 -0
  111. package/src/components/Business/JsonQueryTable/configTree/index.js +82 -0
  112. package/src/components/Business/JsonQueryTable/configTree/index.less +44 -0
  113. package/src/components/Business/JsonQueryTable/configTree/parser/highlight.js +57 -0
  114. package/src/components/Business/JsonQueryTable/configTree/parser/index.js +124 -0
  115. package/src/components/Business/JsonQueryTable/configTree/render/iconRender.js +29 -0
  116. package/src/components/Business/JsonQueryTable/configTree/render/nameRender.js +22 -0
  117. package/src/components/Business/JsonQueryTable/configTree/treeNode.js +116 -0
  118. package/src/components/Business/JsonQueryTable/drawer/index.tsx +12 -0
  119. package/src/components/Business/JsonQueryTable/function.ts +62 -0
  120. package/src/components/Business/JsonQueryTable/index.less +17 -0
  121. package/src/components/Business/JsonQueryTable/index.md +328 -0
  122. package/src/components/Business/JsonQueryTable/index.tsx +534 -0
  123. package/src/components/Business/JsonQueryTable/jsonEditor/index.js +346 -0
  124. package/src/components/Business/JsonQueryTable/jsonEditor/index.less +22 -0
  125. package/src/components/Business/JsonQueryTable/jsonEditor/lint/basicType.js +147 -0
  126. package/src/components/Business/JsonQueryTable/jsonEditor/lint/index.js +389 -0
  127. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/actions.js +118 -0
  128. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/dependency.js +22 -0
  129. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/index.js +21 -0
  130. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/request.js +65 -0
  131. package/src/components/Business/JsonQueryTable/static.ts +450 -0
  132. package/src/components/Business/SearchSelect/BusinessUtils.tsx +2207 -0
  133. package/src/components/Business/SearchSelect/common.ts +134 -0
  134. package/src/components/Business/SearchSelect/index.md +1570 -0
  135. package/src/components/Business/SearchSelect/index.tsx +55 -0
  136. package/src/components/Business/SearchSelect/utils.ts +125 -0
  137. package/src/components/Business/StateFlow/index.less +131 -0
  138. package/src/components/Business/StateFlow/index.md +60 -0
  139. package/src/components/Business/StateFlow/index.tsx +30 -0
  140. package/src/components/Business/TreeSearchSelect/index.md +239 -0
  141. package/src/components/Business/TreeSearchSelect/index.tsx +33 -0
  142. package/src/components/Business/TreeSearchSelect/utils.ts +115 -0
  143. package/src/components/Business/columnSettingTable/columnSetting.tsx +869 -0
  144. package/src/components/Business/columnSettingTable/index.less +253 -0
  145. package/src/components/Business/columnSettingTable/index.md +373 -0
  146. package/src/components/Business/columnSettingTable/index.tsx +235 -0
  147. package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +232 -0
  148. package/src/components/Business/columnSettingTable/utils.tsx +88 -0
  149. package/src/components/Business/moreTreeTable/FixedScrollBar.tsx +87 -0
  150. package/src/components/Business/moreTreeTable/hooks/useSticky.ts +21 -0
  151. package/src/components/Business/moreTreeTable/index.less +100 -0
  152. package/src/components/Business/moreTreeTable/index.md +448 -0
  153. package/src/components/Business/moreTreeTable/index.tsx +387 -0
  154. package/src/components/Business/moreTreeTable/utils.ts +127 -0
  155. package/src/components/Common/ExtendedCollapse/ExtendedPanel.tsx +51 -0
  156. package/src/components/Common/ExtendedCollapse/index.less +33 -0
  157. package/src/components/Common/ExtendedCollapse/index.md +136 -0
  158. package/src/components/Common/ExtendedCollapse/index.tsx +25 -0
  159. package/src/components/Common/ParagraphCopier/index.md +81 -0
  160. package/src/components/Common/ParagraphCopier/index.tsx +56 -0
  161. package/src/components/Common/Section/index.md +120 -0
  162. package/src/components/Common/Section/index.module.less +16 -0
  163. package/src/components/Common/Section/index.tsx +70 -0
  164. package/src/components/Functional/AccessWrapper/index.tsx +34 -0
  165. package/src/components/Functional/AddSelect/helps.ts +81 -0
  166. package/src/components/Functional/AddSelect/index.less +367 -0
  167. package/src/components/Functional/AddSelect/index.md +155 -0
  168. package/src/components/Functional/AddSelect/index.tsx +1072 -0
  169. package/src/components/Functional/AuthButton/index.tsx +15 -0
  170. package/src/components/Functional/BillEntry/index.less +371 -0
  171. package/src/components/Functional/BillEntry/index.md +39 -0
  172. package/src/components/Functional/BillEntry/index.tsx +771 -0
  173. package/src/components/Functional/BsAntdSula/BsCascader/index.md +62 -0
  174. package/src/components/Functional/BsAntdSula/BsCascader/index.tsx +178 -0
  175. package/src/components/Functional/BsAntdSula/index.ts +2 -0
  176. package/src/components/Functional/DataImport/index.less +63 -0
  177. package/src/components/Functional/DataImport/index.md +44 -0
  178. package/src/components/Functional/DataImport/index.tsx +782 -0
  179. package/src/components/Functional/DataValidation/index.less +63 -0
  180. package/src/components/Functional/DataValidation/index.md +52 -0
  181. package/src/components/Functional/DataValidation/index.tsx +788 -0
  182. package/src/components/Functional/EllipsisTooltip/index.d.ts +5 -0
  183. package/src/components/Functional/EllipsisTooltip/index.js +36 -0
  184. package/src/components/Functional/EllipsisTooltip/index.md +30 -0
  185. package/src/components/Functional/ExportFunctions/ExportIcon/index.md +37 -0
  186. package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +65 -0
  187. package/src/components/Functional/QueryMutipleInput/index.less +37 -0
  188. package/src/components/Functional/QueryMutipleInput/index.md +33 -0
  189. package/src/components/Functional/QueryMutipleInput/index.tsx +129 -0
  190. package/src/components/Functional/SearchSelect/index.less +121 -0
  191. package/src/components/Functional/SearchSelect/index.md +141 -0
  192. package/src/components/Functional/SearchSelect/index.tsx +1041 -0
  193. package/src/components/Functional/SearchSelect/utils.ts +3 -0
  194. package/src/components/Functional/TreeSearchSelect/index.md +47 -0
  195. package/src/components/Functional/TreeSearchSelect/index.tsx +224 -0
  196. package/src/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.tsx +358 -0
  197. package/src/components/Solution/RuleComponent/CustomPlugin/CustomSelector/function.js +255 -0
  198. package/src/components/Solution/RuleComponent/CustomPlugin/CustomSelector/helps.tsx +58 -0
  199. package/src/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.tsx +129 -0
  200. package/src/components/Solution/RuleComponent/Formula.tsx +335 -0
  201. package/src/components/Solution/RuleComponent/InnerSelect.tsx +62 -0
  202. package/src/components/Solution/RuleComponent/RenderCompItem.tsx +743 -0
  203. package/src/components/Solution/RuleComponent/index.d.ts +29 -0
  204. package/src/components/Solution/RuleComponent/index.js +1614 -0
  205. package/src/components/Solution/RuleComponent/index.less +247 -0
  206. package/src/components/Solution/RuleComponent/renderSpecificAction.js +99 -0
  207. package/src/components/Solution/RuleComponent/ruleFiled.js +2587 -0
  208. package/src/components/Solution/RuleComponent/services.ts +13 -0
  209. package/src/components/Solution/RuleComponent/util.js +143 -0
  210. package/src/components/Solution/RuleSetter/RuleInstance.tsx +6 -0
  211. package/src/components/Solution/RuleSetter/baseRule.tsx +394 -0
  212. package/src/components/Solution/RuleSetter/function.ts +437 -0
  213. package/src/components/Solution/RuleSetter/index.less +221 -0
  214. package/src/components/Solution/RuleSetter/index.tsx +208 -0
  215. package/src/components/Solution/RuleSetter/service.js +276 -0
  216. package/src/index.ts +46 -0
  217. package/src/plugin/TableColumnSetting/index.less +247 -0
  218. package/src/plugin/TableColumnSetting/index.md +50 -0
  219. package/src/plugin/TableColumnSetting/index.tsx +725 -0
  220. package/src/plugin/TableColumnSetting/utils.ts +19 -0
  221. package/src/styles/bsDefault.less +32 -12
  222. package/src/utils/CheckOneUser/index.md +39 -0
  223. package/src/utils/CheckOneUser/index.ts +52 -0
  224. package/src/utils/CustomLoginInfo.ts +55 -0
  225. package/src/utils/LocalstorageUtils.ts +134 -0
  226. package/src/utils/TableUtils.less +52 -0
  227. package/src/utils/TableUtils.tsx +691 -0
  228. package/src/utils/auth.ts +39 -0
  229. package/src/utils/businessUtils.ts +434 -0
  230. package/src/utils/checkUtils.ts +39 -0
  231. package/src/utils/constant.ts +38 -0
  232. package/src/utils/enumConfig.ts +17 -0
  233. package/src/utils/getFormMode.js +12 -0
  234. package/src/utils/index.ts +19 -0
  235. package/src/utils/request.ts +53 -0
  236. package/src/utils/requestUtils.ts +197 -0
  237. package/src/utils/serialize.js +7 -0
  238. package/src/utils/utils.ts +267 -0
  239. package/src/utils/xlsxUtil.tsx +146 -0
  240. package/tsconfig.json +29 -0
  241. package/typings.d.ts +5 -0
package/dist/index.esm.js CHANGED
@@ -4,11 +4,11 @@ import cookie from 'js-cookie';
4
4
  import { message as message$1, Tooltip, Image, Popover, Card, Avatar, Badge, Menu, Input, InputNumber, Space, Button, Dropdown, Upload, Checkbox, Modal, Select, Form, Divider, Spin, Table, TreeSelect, Tag, Typography, Alert, Breadcrumb, Drawer as Drawer$1, List, Radio, Tree, Row, Col, Result, Tabs, Affix, Cascader, DatePicker, TimePicker, Switch, Collapse } from 'antd';
5
5
  import _, { isNil, escapeRegExp, omit, debounce, cloneDeep as cloneDeep$1, throttle, isEmpty } from 'lodash';
6
6
  import memoizeOne from 'memoize-one';
7
- import { formatMessage, history, useLocation, Link, useModel, setLocale, useIntl } from 'umi';
7
+ import { formatMessage, history, useLocation, Link, useModel, setLocale, useIntl, request as request$3 } from 'umi';
8
8
  import isEqual from 'lodash/isEqual';
9
9
  import React$1, { useState, useEffect, forwardRef, useImperativeHandle, useRef, useMemo, Component, useLayoutEffect, createRef } from 'react';
10
10
  import moment$1 from 'moment';
11
- import { EyeOutlined, DeleteOutlined, EditOutlined, CopyOutlined, CloseSquareOutlined, WarningOutlined, SendOutlined, ProfileTwoTone, ExclamationCircleOutlined, DownOutlined, UnorderedListOutlined, SearchOutlined, CaretLeftOutlined, CloseCircleOutlined, DownCircleFilled, ArrowLeftOutlined, FolderOutlined, EllipsisOutlined, CaretDownOutlined, HomeOutlined, DoubleLeftOutlined, DoubleRightOutlined, MenuUnfoldOutlined, DashOutlined, SettingOutlined, BulbOutlined, PlayCircleOutlined, SaveOutlined, FullscreenExitOutlined, MinusCircleOutlined, PlusCircleOutlined } from '@ant-design/icons';
11
+ import { EyeOutlined, DeleteOutlined, EditOutlined, CopyOutlined, CloseSquareOutlined, WarningOutlined, SendOutlined, ProfileTwoTone, ExclamationCircleOutlined, DownOutlined, UnorderedListOutlined, SearchOutlined, CaretLeftOutlined, CloseCircleOutlined, DownCircleFilled, ArrowLeftOutlined, FolderOutlined, EllipsisOutlined, CaretDownOutlined, HomeOutlined, DoubleLeftOutlined, DoubleRightOutlined, MenuUnfoldOutlined, DashOutlined, SettingOutlined, BulbOutlined, PlayCircleOutlined, SaveOutlined, FullscreenExitOutlined, MinusCircleOutlined, PlusCircleOutlined, createFromIconfontCN } from '@ant-design/icons';
12
12
  import { request as request$2, Table as Table$1, QueryTable, Form as Form$1 } from 'bssula';
13
13
  import 'qs';
14
14
  import { utils, writeFile, read } from 'xlsx';
@@ -31,88 +31,9 @@ import { parse as parse$1 } from '@babel/parser';
31
31
  import { visit } from 'ast-types';
32
32
  import isArray$1 from 'lodash/isArray';
33
33
 
34
- function _arrayLikeToArray(r, a) {
35
- (null == a || a > r.length) && (a = r.length);
36
- for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
37
- return n;
38
- }
39
- function _arrayWithHoles(r) {
40
- if (Array.isArray(r)) return r;
41
- }
42
- function _arrayWithoutHoles(r) {
43
- if (Array.isArray(r)) return _arrayLikeToArray(r);
44
- }
45
- function _assertThisInitialized(e) {
46
- if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
47
- return e;
48
- }
49
- function asyncGeneratorStep(n, t, e, r, o, a, c) {
50
- try {
51
- var i = n[a](c),
52
- u = i.value;
53
- } catch (n) {
54
- return void e(n);
55
- }
56
- i.done ? t(u) : Promise.resolve(u).then(r, o);
57
- }
58
- function _asyncToGenerator(n) {
59
- return function () {
60
- var t = this,
61
- e = arguments;
62
- return new Promise(function (r, o) {
63
- var a = n.apply(t, e);
64
- function _next(n) {
65
- asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
66
- }
67
- function _throw(n) {
68
- asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
69
- }
70
- _next(void 0);
71
- });
72
- };
73
- }
74
34
  function _callSuper(t, o, e) {
75
35
  return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
76
36
  }
77
- function _classCallCheck(a, n) {
78
- if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
79
- }
80
- function _defineProperties(e, r) {
81
- for (var t = 0; t < r.length; t++) {
82
- var o = r[t];
83
- o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
84
- }
85
- }
86
- function _createClass(e, r, t) {
87
- return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
88
- writable: !1
89
- }), e;
90
- }
91
- function _defineProperty(e, r, t) {
92
- return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
93
- value: t,
94
- enumerable: !0,
95
- configurable: !0,
96
- writable: !0
97
- }) : e[r] = t, e;
98
- }
99
- function _getPrototypeOf(t) {
100
- return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
101
- return t.__proto__ || Object.getPrototypeOf(t);
102
- }, _getPrototypeOf(t);
103
- }
104
- function _inherits(t, e) {
105
- if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
106
- t.prototype = Object.create(e && e.prototype, {
107
- constructor: {
108
- value: t,
109
- writable: !0,
110
- configurable: !0
111
- }
112
- }), Object.defineProperty(t, "prototype", {
113
- writable: !1
114
- }), e && _setPrototypeOf(t, e);
115
- }
116
37
  function _isNativeReflectConstruct() {
117
38
  try {
118
39
  var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
@@ -121,9 +42,6 @@ function _isNativeReflectConstruct() {
121
42
  return !!t;
122
43
  })();
123
44
  }
124
- function _iterableToArray(r) {
125
- if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
126
- }
127
45
  function _iterableToArrayLimit(r, l) {
128
46
  var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
129
47
  if (null != t) {
@@ -151,15 +69,6 @@ function _iterableToArrayLimit(r, l) {
151
69
  return a;
152
70
  }
153
71
  }
154
- function _nonIterableRest() {
155
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
156
- }
157
- function _nonIterableSpread() {
158
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
159
- }
160
- function _objectDestructuringEmpty(t) {
161
- if (null == t) throw new TypeError("Cannot destructure " + t);
162
- }
163
72
  function ownKeys(e, r) {
164
73
  var t = Object.keys(e);
165
74
  if (Object.getOwnPropertySymbols) {
@@ -181,31 +90,6 @@ function _objectSpread2(e) {
181
90
  }
182
91
  return e;
183
92
  }
184
- function _objectWithoutProperties(e, t) {
185
- if (null == e) return {};
186
- var o,
187
- r,
188
- i = _objectWithoutPropertiesLoose(e, t);
189
- if (Object.getOwnPropertySymbols) {
190
- var s = Object.getOwnPropertySymbols(e);
191
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
192
- }
193
- return i;
194
- }
195
- function _objectWithoutPropertiesLoose(r, e) {
196
- if (null == r) return {};
197
- var t = {};
198
- for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
199
- if (e.includes(n)) continue;
200
- t[n] = r[n];
201
- }
202
- return t;
203
- }
204
- function _possibleConstructorReturn(t, e) {
205
- if (e && ("object" == typeof e || "function" == typeof e)) return e;
206
- if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
207
- return _assertThisInitialized(t);
208
- }
209
93
  function _regeneratorRuntime() {
210
94
  _regeneratorRuntime = function () {
211
95
  return e;
@@ -507,20 +391,6 @@ function _regeneratorRuntime() {
507
391
  }
508
392
  }, e;
509
393
  }
510
- function _setPrototypeOf(t, e) {
511
- return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
512
- return t.__proto__ = e, t;
513
- }, _setPrototypeOf(t, e);
514
- }
515
- function _slicedToArray(r, e) {
516
- return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
517
- }
518
- function _toArray(r) {
519
- return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
520
- }
521
- function _toConsumableArray(r) {
522
- return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
523
- }
524
394
  function _toPrimitive(t, r) {
525
395
  if ("object" != typeof t || !t) return t;
526
396
  var e = t[Symbol.toPrimitive];
@@ -544,12 +414,180 @@ function _typeof(o) {
544
414
  return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
545
415
  }, _typeof(o);
546
416
  }
547
- function _unsupportedIterableToArray(r, a) {
548
- if (r) {
549
- if ("string" == typeof r) return _arrayLikeToArray(r, a);
550
- var t = {}.toString.call(r).slice(8, -1);
551
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
417
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
418
+ try {
419
+ var info = gen[key](arg);
420
+ var value = info.value;
421
+ } catch (error) {
422
+ reject(error);
423
+ return;
424
+ }
425
+ if (info.done) {
426
+ resolve(value);
427
+ } else {
428
+ Promise.resolve(value).then(_next, _throw);
429
+ }
430
+ }
431
+ function _asyncToGenerator(fn) {
432
+ return function () {
433
+ var self = this,
434
+ args = arguments;
435
+ return new Promise(function (resolve, reject) {
436
+ var gen = fn.apply(self, args);
437
+ function _next(value) {
438
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
439
+ }
440
+ function _throw(err) {
441
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
442
+ }
443
+ _next(undefined);
444
+ });
445
+ };
446
+ }
447
+ function _classCallCheck(instance, Constructor) {
448
+ if (!(instance instanceof Constructor)) {
449
+ throw new TypeError("Cannot call a class as a function");
450
+ }
451
+ }
452
+ function _defineProperties(target, props) {
453
+ for (var i = 0; i < props.length; i++) {
454
+ var descriptor = props[i];
455
+ descriptor.enumerable = descriptor.enumerable || false;
456
+ descriptor.configurable = true;
457
+ if ("value" in descriptor) descriptor.writable = true;
458
+ Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
459
+ }
460
+ }
461
+ function _createClass(Constructor, protoProps, staticProps) {
462
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
463
+ if (staticProps) _defineProperties(Constructor, staticProps);
464
+ Object.defineProperty(Constructor, "prototype", {
465
+ writable: false
466
+ });
467
+ return Constructor;
468
+ }
469
+ function _defineProperty(obj, key, value) {
470
+ key = _toPropertyKey(key);
471
+ if (key in obj) {
472
+ Object.defineProperty(obj, key, {
473
+ value: value,
474
+ enumerable: true,
475
+ configurable: true,
476
+ writable: true
477
+ });
478
+ } else {
479
+ obj[key] = value;
480
+ }
481
+ return obj;
482
+ }
483
+ function _inherits(subClass, superClass) {
484
+ if (typeof superClass !== "function" && superClass !== null) {
485
+ throw new TypeError("Super expression must either be null or a function");
486
+ }
487
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
488
+ constructor: {
489
+ value: subClass,
490
+ writable: true,
491
+ configurable: true
492
+ }
493
+ });
494
+ Object.defineProperty(subClass, "prototype", {
495
+ writable: false
496
+ });
497
+ if (superClass) _setPrototypeOf(subClass, superClass);
498
+ }
499
+ function _getPrototypeOf(o) {
500
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
501
+ return o.__proto__ || Object.getPrototypeOf(o);
502
+ };
503
+ return _getPrototypeOf(o);
504
+ }
505
+ function _setPrototypeOf(o, p) {
506
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
507
+ o.__proto__ = p;
508
+ return o;
509
+ };
510
+ return _setPrototypeOf(o, p);
511
+ }
512
+ function _objectDestructuringEmpty(obj) {
513
+ if (obj == null) throw new TypeError("Cannot destructure " + obj);
514
+ }
515
+ function _objectWithoutPropertiesLoose(source, excluded) {
516
+ if (source == null) return {};
517
+ var target = {};
518
+ for (var key in source) {
519
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
520
+ if (excluded.indexOf(key) >= 0) continue;
521
+ target[key] = source[key];
522
+ }
523
+ }
524
+ return target;
525
+ }
526
+ function _objectWithoutProperties(source, excluded) {
527
+ if (source == null) return {};
528
+ var target = _objectWithoutPropertiesLoose(source, excluded);
529
+ var key, i;
530
+ if (Object.getOwnPropertySymbols) {
531
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
532
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
533
+ key = sourceSymbolKeys[i];
534
+ if (excluded.indexOf(key) >= 0) continue;
535
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
536
+ target[key] = source[key];
537
+ }
552
538
  }
539
+ return target;
540
+ }
541
+ function _assertThisInitialized(self) {
542
+ if (self === void 0) {
543
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
544
+ }
545
+ return self;
546
+ }
547
+ function _possibleConstructorReturn(self, call) {
548
+ if (call && (typeof call === "object" || typeof call === "function")) {
549
+ return call;
550
+ } else if (call !== void 0) {
551
+ throw new TypeError("Derived constructors may only return object or undefined");
552
+ }
553
+ return _assertThisInitialized(self);
554
+ }
555
+ function _slicedToArray(arr, i) {
556
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
557
+ }
558
+ function _toArray(arr) {
559
+ return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
560
+ }
561
+ function _toConsumableArray(arr) {
562
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
563
+ }
564
+ function _arrayWithoutHoles(arr) {
565
+ if (Array.isArray(arr)) return _arrayLikeToArray(arr);
566
+ }
567
+ function _arrayWithHoles(arr) {
568
+ if (Array.isArray(arr)) return arr;
569
+ }
570
+ function _iterableToArray(iter) {
571
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
572
+ }
573
+ function _unsupportedIterableToArray(o, minLen) {
574
+ if (!o) return;
575
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
576
+ var n = Object.prototype.toString.call(o).slice(8, -1);
577
+ if (n === "Object" && o.constructor) n = o.constructor.name;
578
+ if (n === "Map" || n === "Set") return Array.from(o);
579
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
580
+ }
581
+ function _arrayLikeToArray(arr, len) {
582
+ if (len == null || len > arr.length) len = arr.length;
583
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
584
+ return arr2;
585
+ }
586
+ function _nonIterableSpread() {
587
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
588
+ }
589
+ function _nonIterableRest() {
590
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
553
591
  }
554
592
 
555
593
  var ENUM = {
@@ -845,7 +883,10 @@ var handleRequestHeader = function handleRequestHeader(url, options) {
845
883
  }
846
884
  !!!config.headers['x-biz-code'] && handleRequestAuthHeader(config);
847
885
  config.headers = _objectSpread2(_objectSpread2({}, commonHeaders), config.headers);
848
- options.headers = config.headers;
886
+ if (options) {
887
+ options.headers = config.headers;
888
+ }
889
+ return options || config;
849
890
  };
850
891
  request$1.interceptors.request.use(function (url, options) {
851
892
  handleRequestHeader(url, options);
@@ -994,7 +1035,7 @@ var handleTextDouble = function handleTextDouble(textOne, textTwo) {
994
1035
  var handleTextLineFeed = function handleTextLineFeed(text) {
995
1036
  var width = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 130;
996
1037
  return /*#__PURE__*/React$1.createElement(Tooltip, {
997
- title: text || '- -'
1038
+ title: text || '-'
998
1039
  }, /*#__PURE__*/React$1.createElement("span", {
999
1040
  style: {
1000
1041
  width: width ? width + 'px' : '130px',
@@ -1003,13 +1044,13 @@ var handleTextLineFeed = function handleTextLineFeed(text) {
1003
1044
  whiteSpace: 'pre-line',
1004
1045
  top: '5px'
1005
1046
  }
1006
- }, text || '- -'));
1047
+ }, text || '-'));
1007
1048
  };
1008
1049
  // 带有toptile 清提示 ...
1009
1050
  var handleTextOverflow = function handleTextOverflow(text) {
1010
1051
  var width = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 130;
1011
1052
  return /*#__PURE__*/React$1.createElement(Tooltip, {
1012
- title: text || '- -'
1053
+ title: text || '-'
1013
1054
  }, /*#__PURE__*/React$1.createElement("span", {
1014
1055
  style: {
1015
1056
  width: width ? width + 'px' : '130px',
@@ -1020,7 +1061,7 @@ var handleTextOverflow = function handleTextOverflow(text) {
1020
1061
  position: 'relative',
1021
1062
  top: '5px'
1022
1063
  }
1023
- }, text || '- -'));
1064
+ }, text || '-'));
1024
1065
  };
1025
1066
  // 处理时间 带时分秒
1026
1067
  var handleTooltip = function handleTooltip(text, timeTrue) {
@@ -1118,11 +1159,11 @@ var userInfoCard = function userInfoCard(props) {
1118
1159
  };
1119
1160
  function handleCommonTimeRenderHours(text, format) {
1120
1161
  var formatType = format || 'YYYY-MM-DD';
1121
- return text && moment$1(text).format(formatType) || '- -';
1162
+ return text && moment$1(text).format(formatType) || '-';
1122
1163
  }
1123
1164
  function handleCommonTimeRender(text, format) {
1124
1165
  var formatType = format || 'YYYY-MM-DD HH:mm:ss';
1125
- return text && moment$1(text).format(formatType) || '- -';
1166
+ return text && moment$1(text).format(formatType) || '-';
1126
1167
  }
1127
1168
  //设置queryTable默认列宽
1128
1169
  var getItemDefaultWidth = function getItemDefaultWidth(item) {
@@ -1228,6 +1269,10 @@ var go2BackAndClose = function go2BackAndClose(backHistoryPath) {
1228
1269
  history.goBack();
1229
1270
  }
1230
1271
  };
1272
+ var parseWidth = function parseWidth(widthStr) {
1273
+ var parsedWidth = parseInt(widthStr.replace('px', ''));
1274
+ return isNaN(parsedWidth) ? 0 : parsedWidth;
1275
+ };
1231
1276
  /**
1232
1277
  * 处理bssulaTable的公共回显样式
1233
1278
  * @param col 每一具体行
@@ -1246,9 +1291,10 @@ var handleBssulaColumnsSpecialParams = function handleBssulaColumnsSpecialParams
1246
1291
  };
1247
1292
  } else if (col.textOverflow) {
1248
1293
  // 处理文字太长
1294
+ var colWidth = typeof (col === null || col === void 0 ? void 0 : col.width) === 'number' ? col.width : col.width && parseWidth(col.width);
1249
1295
  col.render = function (_ref3) {
1250
1296
  var text = _ref3.text;
1251
- return handleTextOverflow(text, col.width);
1297
+ return handleTextOverflow(text, colWidth);
1252
1298
  };
1253
1299
  } else if (col.images) {
1254
1300
  col.render = function (_ref4) {
@@ -1276,8 +1322,8 @@ var handleBssulaColumnsSpecialParams = function handleBssulaColumnsSpecialParams
1276
1322
  return authFn(item.code);
1277
1323
  });
1278
1324
  } else if (!col.render) {
1279
- // 没有值默认显示 - -
1280
- // col.render = ({ text }: any) => text || '- -';
1325
+ // 没有值默认显示 -
1326
+ // col.render = ({ text }: any) => text || '-';
1281
1327
  col.render = function (_ref8) {
1282
1328
  var text = _ref8.text;
1283
1329
  return text !== null && text !== void 0 ? text : '--';
@@ -1302,8 +1348,9 @@ var handleAntdColumnsSpecialParams = function handleAntdColumnsSpecialParams(col
1302
1348
  }
1303
1349
  // 处理文字太长
1304
1350
  if (col.textOverflow) {
1351
+ var colWidth = typeof (col === null || col === void 0 ? void 0 : col.width) === 'number' ? col.width : col.width && parseWidth(col.width);
1305
1352
  col.render = function (text) {
1306
- return handleTextOverflow(text);
1353
+ return handleTextOverflow(text, colWidth);
1307
1354
  };
1308
1355
  }
1309
1356
  if (col.images) {
@@ -1327,9 +1374,9 @@ var handleAntdColumnsSpecialParams = function handleAntdColumnsSpecialParams(col
1327
1374
  return index + 1;
1328
1375
  };
1329
1376
  }
1330
- // 没有值默认显示 - -
1377
+ // 没有值默认显示 -
1331
1378
  if (!col.render) {
1332
- // col.render = ({ text }: any) => text || '- -';
1379
+ // col.render = ({ text }: any) => text || '-';
1333
1380
  col.render = function (text) {
1334
1381
  return text || '--';
1335
1382
  };
@@ -1418,6 +1465,21 @@ var randomString = function randomString(len) {
1418
1465
  var createUniqID = function createUniqID(length) {
1419
1466
  return Number(Math.random().toString().substr(3, length) + Date.now()).toString(36);
1420
1467
  };
1468
+ // 格式化table响应数据
1469
+ var handleConvertResponse = function handleConvertResponse(items, total) {
1470
+ var result = {
1471
+ list: (items === null || items === void 0 ? void 0 : items.length) && items.map(function (item, index) {
1472
+ return _objectSpread2(_objectSpread2({}, item), {}, {
1473
+ keyIndex: "".concat(index + 1)
1474
+ });
1475
+ }) || [],
1476
+ total: Number(total) || 0
1477
+ };
1478
+ return result;
1479
+ };
1480
+ var noEmptyArray = function noEmptyArray(targetObj) {
1481
+ return Array.isArray(targetObj) && targetObj.length !== 0;
1482
+ };
1421
1483
 
1422
1484
  // 判断某个按钮/菜单 是否有权限,返回布尔值
1423
1485
  var authFunc = function authFunc(code) {
@@ -1544,37 +1606,38 @@ var resolveFile = /*#__PURE__*/function () {
1544
1606
  //读取文件
1545
1607
  var readerXlsxToList = /*#__PURE__*/function () {
1546
1608
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
1547
- var _ref5, callback, sheetMap, data2, data;
1609
+ var _ref5, callback, sheetMap, nowFile, data2, data;
1548
1610
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
1549
1611
  while (1) switch (_context2.prev = _context2.next) {
1550
1612
  case 0:
1551
1613
  _ref5 = otherInfo || {}, callback = _ref5.callback, sheetMap = _ref5.sheetMap;
1552
1614
  if (!(Array.isArray(fileList) && fileList.length > 0)) {
1553
- _context2.next = 14;
1615
+ _context2.next = 15;
1554
1616
  break;
1555
1617
  }
1556
- _context2.next = 4;
1557
- return resolveFile(file.originFileObj, {
1618
+ nowFile = fileList[fileList.length - 1]; // 阻止了默认上传file没有originFileObj了 得从fileList中去取
1619
+ _context2.next = 5;
1620
+ return resolveFile(nowFile.originFileObj, {
1558
1621
  sheetMap: fieldMappingReverse(sheetMap),
1559
1622
  sheetCount: 1
1560
1623
  });
1561
- case 4:
1624
+ case 5:
1562
1625
  data2 = _context2.sent;
1563
1626
  data = data2[0];
1564
1627
  if (data.length) {
1565
- _context2.next = 9;
1628
+ _context2.next = 10;
1566
1629
  break;
1567
1630
  }
1568
1631
  message$1.error("\u8BF7\u5148\u5F55\u5165\u6570\u636E\u518D\u5BFC\u5165");
1569
1632
  return _context2.abrupt("return");
1570
- case 9:
1633
+ case 10:
1571
1634
  if (callback) callback(data);
1572
1635
  !callback && message$1.success("\u5BFC\u5165\u6210\u529F");
1573
1636
  return _context2.abrupt("return", data);
1574
- case 14:
1637
+ case 15:
1575
1638
  message$1.error("\u8BF7\u9009\u62E9\u6587\u4EF6");
1576
1639
  return _context2.abrupt("return");
1577
- case 16:
1640
+ case 17:
1578
1641
  case "end":
1579
1642
  return _context2.stop();
1580
1643
  }
@@ -2279,7 +2342,7 @@ var getDictionaryTextByValue = function getDictionaryTextByValue(dicCode, value)
2279
2342
  dicData = storageDic[dicCode];
2280
2343
  }
2281
2344
  if (!dicData || !dicData.length) ;
2282
- if (value === undefined) return '- -';
2345
+ if (value === undefined) return '-';
2283
2346
  var dicItemArray = (_dicData = dicData) === null || _dicData === void 0 ? void 0 : _dicData.filter(function (item) {
2284
2347
  return item.value === value.toString();
2285
2348
  });
@@ -2296,7 +2359,7 @@ var getJoinDictionaryText = function getJoinDictionaryText(dicCode, value) {
2296
2359
  var storageDic = localStorage.getItem(DIC_DATA_KEY) ? JSON.parse(localStorage.getItem(DIC_DATA_KEY) || '[]') : {};
2297
2360
  dicData = storageDic[dicCode];
2298
2361
  }
2299
- if (value === undefined) return '- -';
2362
+ if (value === undefined) return '-';
2300
2363
  var newValue = value.split(',');
2301
2364
  var dicItemArray = (_dicData2 = dicData) === null || _dicData2 === void 0 ? void 0 : _dicData2.filter(function (item) {
2302
2365
  return newValue.find(function (d) {
@@ -3137,7 +3200,6 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
3137
3200
  var callBackFun = this.importExcelToLuckySheet;
3138
3201
  var uploadProps = {
3139
3202
  name: 'file',
3140
- action: '',
3141
3203
  headers: {},
3142
3204
  accept: accept || ['.xlsx', '.xls'],
3143
3205
  showUploadList: false,
@@ -3152,7 +3214,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
3152
3214
  message$1.error("\u8BF7\u4E0A\u4F20".concat(suffixRule.toString(), "\u7B49\u683C\u5F0F\u7684\u6587\u4EF6!"));
3153
3215
  return Upload.LIST_IGNORE;
3154
3216
  }
3155
- return true;
3217
+ return false; // 阻止默认上传
3156
3218
  },
3157
3219
  onChange: function onChange(info) {
3158
3220
  var _Object$keys;
@@ -3813,7 +3875,6 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
3813
3875
  var callBackFun = this.importExcelToLuckySheet;
3814
3876
  var uploadProps = {
3815
3877
  name: 'file',
3816
- action: '',
3817
3878
  headers: {},
3818
3879
  accept: accept || ['.xlsx', '.xls'],
3819
3880
  showUploadList: false,
@@ -3828,7 +3889,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
3828
3889
  message$1.error("\u8BF7\u4E0A\u4F20".concat(suffixRule.toString(), "\u7B49\u683C\u5F0F\u7684\u6587\u4EF6!"));
3829
3890
  return Upload.LIST_IGNORE;
3830
3891
  }
3831
- return true;
3892
+ return false; // 阻止默认上传
3832
3893
  },
3833
3894
  onChange: function onChange(info) {
3834
3895
  var _Object$keys;
@@ -4555,9 +4616,9 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
4555
4616
  if (labelInValue) {
4556
4617
  var formatResult = value.map(function (i) {
4557
4618
  return {
4558
- key: i[mappingValueField],
4559
- label: i[mappingTextField],
4560
- value: i[mappingValueField]
4619
+ key: i[mappingValueField] || i.key,
4620
+ label: i[mappingTextField] || i.label,
4621
+ value: i[mappingValueField] || i.value
4561
4622
  };
4562
4623
  });
4563
4624
  onChange(selectMode ? formatResult : formatResult[0], value, source);
@@ -4651,11 +4712,27 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
4651
4712
  });
4652
4713
  };
4653
4714
  var onChangeCheckAll = function onChangeCheckAll(e) {
4715
+ // 允许用户自定义 全选操作逻辑
4716
+ if (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.onCheckAll) {
4717
+ modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.onCheckAll(e, {
4718
+ items: items,
4719
+ itemsTotal: itemsTotal,
4720
+ tablePagination: tablePagination,
4721
+ onCheckAllData: onCheckAllData,
4722
+ setSelectedRowKeys: setSelectedRowKeys,
4723
+ setPopValue: setPopValue,
4724
+ setSelectedRows: setSelectedRows,
4725
+ setIndeterminate: setIndeterminate,
4726
+ setCheckedAll: setCheckedAll
4727
+ });
4728
+ return;
4729
+ }
4654
4730
  if (e.target.checked) {
4655
4731
  // 如果下拉框有所有数据就处理选中所有【items.length === itemsTotal】(最多可选100条)
4656
4732
  // 如果超过100条 就默认查出所有数据
4657
- if (items.length < itemsTotal) {
4658
- var totalPage = Math.ceil(itemsTotal / (tablePagination === null || tablePagination === void 0 ? void 0 : tablePagination.pageSize));
4733
+ if (items.length < itemsTotal || items.length === itemsTotal && itemsTotal == 0) {
4734
+ var totalCount = (tablePagination === null || tablePagination === void 0 ? void 0 : tablePagination.total) || itemsTotal; // 兼容有查询条件的情况 首次加载是没有所有数据的,默认给加载后端返回的总条数
4735
+ var totalPage = Math.ceil(totalCount / (tablePagination === null || tablePagination === void 0 ? void 0 : tablePagination.pageSize));
4659
4736
  var allPageSize = totalPage * (tablePagination === null || tablePagination === void 0 ? void 0 : tablePagination.pageSize);
4660
4737
  onCheckAllData(allPageSize);
4661
4738
  } else {
@@ -4752,7 +4829,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
4752
4829
  }
4753
4830
  };
4754
4831
  var themeColor = {
4755
- color: '#1890ff'
4832
+ color: '#005cff'
4756
4833
  };
4757
4834
  var formItem = function formItem(list) {
4758
4835
  if (isModalVisible && (list === null || list === void 0 ? void 0 : list.length)) {
@@ -4995,8 +5072,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
4995
5072
  })), needModalTable && ( /*#__PURE__*/React$1.createElement(Button, {
4996
5073
  style: {
4997
5074
  width: '30px',
4998
- padding: '2px',
4999
- height: 'auto'
5075
+ padding: '2px'
5000
5076
  },
5001
5077
  onClick: showModal,
5002
5078
  type: "primary"
@@ -5081,7 +5157,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5081
5157
  }
5082
5158
  };
5083
5159
  }
5084
- }), selectMode ? ( /*#__PURE__*/React$1.createElement("div", {
5160
+ }), selectMode && !(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.isHiddenCheckAll) ? ( /*#__PURE__*/React$1.createElement("div", {
5085
5161
  className: 'select_list_selectAll'
5086
5162
  }, /*#__PURE__*/React$1.createElement(Checkbox, {
5087
5163
  indeterminate: indeterminate,
@@ -5742,7 +5818,7 @@ var setInitialShowColumn = function setInitialShowColumn(tableCode, columns, cal
5742
5818
  * @param arr 要判断的数据
5743
5819
  * @returns boolean
5744
5820
  */
5745
- var noEmptyArray = function noEmptyArray(arr) {
5821
+ var noEmptyArray$1 = function noEmptyArray(arr) {
5746
5822
  return Array.isArray(arr) && arr.length > 0;
5747
5823
  };
5748
5824
  //设置queryTable默认列宽
@@ -6727,7 +6803,13 @@ var AddSelect = function AddSelect(props) {
6727
6803
  setPopValue(setBusinessDefaultValue(list, recordList));
6728
6804
  setSelectedRowKeys([]);
6729
6805
  } else {
6730
- setPopValue(selectRows);
6806
+ // 修复选中的明细输入的数量 折扣等在再次添加时发生改变bug(上方选择列表只会同步记录第一下输入的值,第一下输入后popValue的item项地址改变,选择列表值不在同步修改)
6807
+ setPopValue(selectRows.map(function (item) {
6808
+ var latestItem = popvalue.find(function (popVal) {
6809
+ return popVal[mappingValueField] === item[mappingValueField];
6810
+ }) || {};
6811
+ return _objectSpread2(_objectSpread2({}, item), latestItem);
6812
+ }));
6731
6813
  setSelectedRowKeys(selectKeys);
6732
6814
  }
6733
6815
  };
@@ -6917,13 +6999,13 @@ var AddSelect = function AddSelect(props) {
6917
6999
  var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
6918
7000
  return i || i === 0;
6919
7001
  });
6920
- if (noEmptyArray(item.children)) {
7002
+ if (noEmptyArray$1(item.children)) {
6921
7003
  handleColumns(item.children, indexArrInside);
6922
7004
  } else {
6923
7005
  item.width = item.width || getItemDefaultWidth$2(item);
6924
7006
  item.onHeaderCell = function (column) {
6925
7007
  return _objectSpread2(_objectSpread2({}, item), {}, {
6926
- width: typeof column.width === 'number' ? column.width : parseInt(column.width.replace('px', '')),
7008
+ width: typeof column.width === 'number' ? column.width : parseWidth(column.width),
6927
7009
  onResize: handleResize(arr, indexArrInside, callback)
6928
7010
  });
6929
7011
  };
@@ -7969,13 +8051,13 @@ var BillEntry = function BillEntry(_ref3) {
7969
8051
  var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
7970
8052
  return i || i === 0;
7971
8053
  });
7972
- if (noEmptyArray(item.children)) {
8054
+ if (noEmptyArray$1(item.children)) {
7973
8055
  handleColumns(item.children, indexArrInside);
7974
8056
  } else {
7975
8057
  item.width = item.width || getItemDefaultWidth$2(item);
7976
8058
  item.onHeaderCell = function (column) {
7977
8059
  return _objectSpread2(_objectSpread2({}, item), {}, {
7978
- width: typeof column.width === 'number' ? column.width : parseInt(column.width.replace('px', '')),
8060
+ width: typeof column.width === 'number' ? column.width : parseWidth(column.width),
7979
8061
  onResize: handleResize(arr, indexArrInside, callback)
7980
8062
  });
7981
8063
  };
@@ -8213,6 +8295,7 @@ var handleDefaultPrefixUrl = function handleDefaultPrefixUrl(type) {
8213
8295
  break;
8214
8296
  case 'deliveryMode':
8215
8297
  case 'ruleTemplate':
8298
+ case 'priceItem':
8216
8299
  result = '/basic';
8217
8300
  break;
8218
8301
  default:
@@ -10047,7 +10130,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps, hidde
10047
10130
  var _employeeType$find;
10048
10131
  return ((_employeeType$find = employeeType.find(function (i) {
10049
10132
  return i.value === text;
10050
- })) === null || _employeeType$find === void 0 ? void 0 : _employeeType$find.text) || '- -';
10133
+ })) === null || _employeeType$find === void 0 ? void 0 : _employeeType$find.text) || '-';
10051
10134
  }
10052
10135
  }] : []), [{
10053
10136
  title: '邮箱',
@@ -10593,6 +10676,48 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps, hidde
10593
10676
  }]
10594
10677
  }, modalTableBusProps);
10595
10678
  }
10679
+ // 价格项选择器
10680
+ if (type === 'priceItem') {
10681
+ requestConfig = _objectSpread2({
10682
+ url: "".concat(prefixUrl.selectPrefix, "/priceType"),
10683
+ filter: 'qp-code,name-orGroup,like',
10684
+ mappingTextField: 'name',
10685
+ mappingTextShowKeyField: 'code',
10686
+ mappingValueField: 'code',
10687
+ otherParams: {
10688
+ 'qp-enabled-eq': true,
10689
+ sorter: 'desc-id'
10690
+ },
10691
+ sourceName: 'priceCode'
10692
+ }, requestConfigProp);
10693
+ tableSearchForm = [{
10694
+ name: 'qp-code-like',
10695
+ label: '代码'
10696
+ }, {
10697
+ name: 'qp-name-like',
10698
+ label: '名称'
10699
+ }];
10700
+ modalTableProps = _objectSpread2({
10701
+ modalTableTitle: '选择价格项',
10702
+ tableSearchForm: tableSearchForm,
10703
+ tableColumns: [{
10704
+ title: '代码',
10705
+ dataIndex: 'code'
10706
+ }, {
10707
+ title: '名称',
10708
+ dataIndex: 'name'
10709
+ }, {
10710
+ title: '创建时间',
10711
+ dataIndex: 'createTime',
10712
+ render: function render(text) {
10713
+ return handleTooltip(text, true);
10714
+ }
10715
+ }, {
10716
+ title: '创建人',
10717
+ dataIndex: 'createUserName'
10718
+ }]
10719
+ }, modalTableBusProps);
10720
+ }
10596
10721
  return {
10597
10722
  modalTableProps: modalTableProps,
10598
10723
  requestConfig: requestConfig,
@@ -12376,7 +12501,7 @@ var index$2 = (function (props) {
12376
12501
  }));
12377
12502
  });
12378
12503
 
12379
- var css_248z$a = ".guide-wrapper .form-guide {\n cursor: pointer;\n position: fixed;\n right: 5px;\n color: #B1BAD4;\n padding: 5px 0;\n width: 48px;\n z-index: 10;\n top: 50%;\n transform: translateY(-50%);\n background-color: #141620;\n border-radius: 5px;\n}\n.guide-wrapper .form-guide .form-guide-top {\n padding: 0px 10px;\n display: flex;\n justify-content: center;\n}\n.guide-wrapper .form-guide .form-guide-center {\n border-top: 1px solid #6E7588;\n border-bottom: 1px solid #6E7588;\n padding: 0px 10px;\n}\n.guide-wrapper .form-guide .form-guide-item {\n width: 28px;\n padding: 5px 0;\n display: block;\n word-break: break-all;\n color: #B1BAD4;\n font-size: 14px;\n line-height: 16px;\n position: relative;\n}\n.guide-wrapper .form-guide .form-guide-item::after {\n content: '';\n display: block;\n width: 15px;\n height: 1px;\n background-color: #6E7588;\n position: absolute;\n bottom: 0px;\n left: 7px;\n}\n.guide-wrapper .form-guide .form-guide-bottom {\n padding: 5px 10px;\n display: flex;\n justify-content: center;\n}\n.guide-wrapper .form-guide .form-guide-item:last-child::after {\n content: '';\n display: none;\n width: 15px;\n height: 1px;\n background-color: #6E7588;\n position: absolute;\n bottom: 0px;\n left: 7px;\n}\n.guide-wrapper .white-card.bitsun-form-card-class .guidewrapper-body-wrapper {\n background-color: #FFFFFF;\n padding: 0px;\n}\n.guide-wrapper .bitsun-form-card-class > .guidewrapper-body-wrapper {\n margin-bottom: 10px;\n}\n.guide-wrapper .bitsun-form-card-class .guidewrapper-body-wrapper {\n padding: 12px 0 0;\n background-color: #F3F3F3;\n}\n.guide-wrapper .bitsun-form-card-class .ant-card-head-title {\n display: flex;\n align-items: center;\n font-size: 16px;\n color: #000000;\n font-weight: 600;\n background-color: #FFFFFF;\n padding: 8px 0;\n margin: 0px;\n}\n.guide-wrapper .bitsun-form-card-class .ant-card-head-title .title-left-line {\n display: inline-block;\n width: 4px;\n height: 100%;\n background-color: #005CFF;\n height: 20px;\n margin-right: 16px;\n}\n.guide-wrapper .field-group-hidden .guidewrapper-body-wrapper {\n display: none !important;\n}\n.guide-wrapper .bs-guidewrap-icon-wrap {\n cursor: pointer;\n color: #B6B6B6;\n}\n.guide-wrapper .bs-guidewrap-icon-wrap .bs-guidewrap-icon {\n transition: transform 0.3s;\n}\n.guide-wrapper .bs-guidewrap-icon-wrap .bs-guidewrap-icon-toogle {\n transform: rotate(180deg);\n}\n.guidewrapper-head-wrap {\n padding-left: 16px;\n height: 36px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n background: #fff;\n}\n.guidewrapper-head-wrap .guidewrapper-head-left {\n display: flex;\n align-items: center;\n}\n.guidewrapper-head-wrap .guidewrapper-head-left::before {\n content: '';\n display: block;\n width: 3px;\n background: #005CFF;\n height: 20px;\n}\n.guidewrapper-head-wrap .guidewrapper-head-left .guidewrapper-head-title {\n font-weight: 500;\n font-size: 14px;\n color: #000000;\n padding: 0 6px;\n}\n.guidewrapper-head-border {\n border-bottom: 1px solid #F0F0F0;\n}\n.guidewrapper-title-extra-wrap {\n padding-left: 5px;\n}\n";
12504
+ var css_248z$a = ".guide-wrapper .form-guide {\n cursor: pointer;\n position: fixed;\n right: 5px;\n color: #B1BAD4;\n padding: 5px 0;\n width: 48px;\n z-index: 10;\n top: 50%;\n transform: translateY(-50%);\n background-color: #141620;\n border-radius: 5px;\n}\n.guide-wrapper .form-guide .form-guide-top {\n padding: 0px 10px;\n display: flex;\n justify-content: center;\n}\n.guide-wrapper .form-guide .form-guide-center {\n border-top: 1px solid #6E7588;\n border-bottom: 1px solid #6E7588;\n padding: 0px 10px;\n}\n.guide-wrapper .form-guide .form-guide-item {\n width: 28px;\n padding: 5px 0;\n display: block;\n word-break: break-all;\n color: #B1BAD4;\n font-size: 14px;\n line-height: 16px;\n position: relative;\n}\n.guide-wrapper .form-guide .form-guide-item::after {\n content: '';\n display: block;\n width: 15px;\n height: 1px;\n background-color: #6E7588;\n position: absolute;\n bottom: 0px;\n left: 7px;\n}\n.guide-wrapper .form-guide .form-guide-bottom {\n padding: 5px 10px;\n display: flex;\n justify-content: center;\n}\n.guide-wrapper .form-guide .form-guide-item:last-child::after {\n content: '';\n display: none;\n width: 15px;\n height: 1px;\n background-color: #6E7588;\n position: absolute;\n bottom: 0px;\n left: 7px;\n}\n.guide-wrapper .white-card.bitsun-form-card-class .guidewrapper-body-wrapper {\n background-color: #FFFFFF;\n padding: 0px;\n}\n.guide-wrapper .bitsun-form-card-class > .guidewrapper-body-wrapper {\n margin-bottom: 10px;\n}\n.guide-wrapper .bitsun-form-card-class .guidewrapper-body-wrapper {\n padding: 12px 0 0;\n background-color: #F3F3F3;\n}\n.guide-wrapper .bitsun-form-card-class .ant-card-head-title {\n display: flex;\n align-items: center;\n font-size: 16px;\n color: #000000;\n font-weight: 600;\n background-color: #FFFFFF;\n padding: 8px 0;\n margin: 0px;\n}\n.guide-wrapper .bitsun-form-card-class .ant-card-head-title .title-left-line {\n display: inline-block;\n width: 4px;\n height: 100%;\n background-color: #005cff;\n height: 20px;\n margin-right: 16px;\n}\n.guide-wrapper .field-group-hidden .guidewrapper-body-wrapper {\n display: none !important;\n}\n.guide-wrapper .bs-guidewrap-icon-wrap {\n cursor: pointer;\n color: #B6B6B6;\n}\n.guide-wrapper .bs-guidewrap-icon-wrap .bs-guidewrap-icon {\n transition: transform 0.3s;\n}\n.guide-wrapper .bs-guidewrap-icon-wrap .bs-guidewrap-icon-toogle {\n transform: rotate(180deg);\n}\n.guidewrapper-head-wrap {\n padding-left: 16px;\n height: 36px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n background: #fff;\n}\n.guidewrapper-head-wrap .guidewrapper-head-left {\n display: flex;\n align-items: center;\n}\n.guidewrapper-head-wrap .guidewrapper-head-left::before {\n content: '';\n display: block;\n width: 3px;\n background: #005cff;\n height: 20px;\n}\n.guidewrapper-head-wrap .guidewrapper-head-left .guidewrapper-head-title {\n font-weight: 500;\n font-size: 14px;\n color: #000000;\n padding: 0 6px;\n}\n.guidewrapper-head-border {\n border-bottom: 1px solid #F0F0F0;\n}\n.guidewrapper-title-extra-wrap {\n padding-left: 5px;\n}\n";
12380
12505
  styleInject(css_248z$a);
12381
12506
 
12382
12507
  var _excluded$7 = ["children", "titleExtra", "title", "extra", "bordered"],
@@ -12551,8 +12676,8 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
12551
12676
  if (!tableCode) return;
12552
12677
  var configvalue = config ? config.map(function (item) {
12553
12678
  return {
12554
- key: item.key,
12555
- dataIndex: item.dataIndex,
12679
+ key: item.key || item.dataIndex,
12680
+ dataIndex: item.dataIndex || item.key,
12556
12681
  width: item.width,
12557
12682
  hidden: item.hidden,
12558
12683
  fixed: item.fixed
@@ -12633,20 +12758,22 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
12633
12758
  width: ((_showColumnItem$ = showColumnItem[0]) === null || _showColumnItem$ === void 0 ? void 0 : _showColumnItem$.width) || ((_inner$2 = inner[0]) === null || _inner$2 === void 0 ? void 0 : _inner$2.width) || item.width,
12634
12759
  hidden: columnConfig.length && !inner.length
12635
12760
  });
12636
- }) : _toConsumableArray(datasource);
12761
+ }) : _toConsumableArray(datasource.map(function (inner) {
12762
+ return _objectSpread2(_objectSpread2({}, inner), {}, {
12763
+ key: inner.key || inner.dataIndex
12764
+ });
12765
+ }));
12637
12766
  _this.setState({
12638
12767
  dataSource: initialDataSourceData.map(function (item) {
12639
12768
  return _objectSpread2(_objectSpread2({}, item), {}, {
12640
12769
  key: item.key || item.dataIndex
12641
12770
  });
12642
12771
  }),
12643
- sortDataSource: initialDataSourceData.filter(function (item) {
12644
- return !item.hidden;
12645
- }).map(function (item) {
12772
+ sortDataSource: _toConsumableArray(showColumns.map(function (item) {
12646
12773
  return _objectSpread2(_objectSpread2({}, item), {}, {
12647
12774
  key: item.key || item.dataIndex
12648
12775
  });
12649
- })
12776
+ }))
12650
12777
  });
12651
12778
  };
12652
12779
  _this.isColumnsChange = function () {
@@ -12850,7 +12977,8 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
12850
12977
  var _this$props$datasourc = _this.props.datasource,
12851
12978
  datasource = _this$props$datasourc === void 0 ? [] : _this$props$datasourc;
12852
12979
  _this.setState({
12853
- visible: true
12980
+ visible: true,
12981
+ onSearchSort: false
12854
12982
  });
12855
12983
  _this.setInitValue(datasource);
12856
12984
  };
@@ -12995,7 +13123,47 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
12995
13123
  _this.setInitValue(datasource);
12996
13124
  };
12997
13125
  _this.handleResetSetting = function () {
12998
- _this.patchUserColumnConfig('');
13126
+ var _this$props4 = _this.props,
13127
+ setShowColumns = _this$props4.setShowColumns,
13128
+ _this$props4$datasour = _this$props4.datasource,
13129
+ reSetInitialShowColumn = _this$props4.reSetInitialShowColumn,
13130
+ appRequestConfig = _this$props4.appRequestConfig;
13131
+ var tableCode = _this.props.tableCode;
13132
+ return new Promise(function (resolve, reject) {
13133
+ requestUtil({
13134
+ url: handleRequestUrl('/user', '/appConfig/saveUserOrder', appRequestConfig),
13135
+ method: 'POST',
13136
+ data: {
13137
+ code: tableCode,
13138
+ detail: ''
13139
+ }
13140
+ }).then(function (res) {
13141
+ if (judgeIsRequestSuccess(res === null || res === void 0 ? void 0 : res.data)) {
13142
+ var config = localStorage.getItem(ENUM.BROWSER_CACHE.COLUMN_CONDITION) || '[]';
13143
+ var configArray = JSON.parse(config);
13144
+ var currentSetting = configArray.filter(function (item) {
13145
+ return item.code === tableCode;
13146
+ });
13147
+ if (currentSetting.length) {
13148
+ currentSetting[0].detail = JSON.stringify([]);
13149
+ } else {
13150
+ configArray.push({
13151
+ code: tableCode,
13152
+ detail: JSON.stringify([])
13153
+ });
13154
+ }
13155
+ localStorage.setItem(ENUM.BROWSER_CACHE.COLUMN_CONDITION, JSON.stringify(configArray));
13156
+ message$1.success('重置表头列成功!');
13157
+ reSetInitialShowColumn(true);
13158
+ _this.setState({
13159
+ visible: false
13160
+ });
13161
+ } else {
13162
+ message$1.error('重置表头列自定义失败,请稍后尝试');
13163
+ reject('');
13164
+ }
13165
+ });
13166
+ });
12999
13167
  };
13000
13168
  _this.onSearch = function (e) {
13001
13169
  _this.setState({
@@ -13026,8 +13194,8 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
13026
13194
  return _createClass(SortableTable, [{
13027
13195
  key: "componentWillReceiveProps",
13028
13196
  value: function componentWillReceiveProps(nextProps) {
13029
- var _this$props4;
13030
- if (this.isColumnsChange((_this$props4 = this.props) === null || _this$props4 === void 0 ? void 0 : _this$props4.datasource, nextProps === null || nextProps === void 0 ? void 0 : nextProps.datasource)) {
13197
+ var _this$props5;
13198
+ if (this.isColumnsChange((_this$props5 = this.props) === null || _this$props5 === void 0 ? void 0 : _this$props5.datasource, nextProps === null || nextProps === void 0 ? void 0 : nextProps.datasource)) {
13031
13199
  this.setInitValue((nextProps === null || nextProps === void 0 ? void 0 : nextProps.datasource) || []);
13032
13200
  }
13033
13201
  }
@@ -13054,7 +13222,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
13054
13222
  });
13055
13223
  return /*#__PURE__*/React$1.createElement("div", {
13056
13224
  className: 'sort_table_wrapper'
13057
- }, /*#__PURE__*/React$1.createElement(Modal, {
13225
+ }, visible && /*#__PURE__*/React$1.createElement(Modal, {
13058
13226
  title: "\u8BBE\u7F6E\u8868\u5934\u5185\u5BB9",
13059
13227
  wrapClassName: 'sort_table_wrapper',
13060
13228
  width: 820,
@@ -13189,10 +13357,14 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
13189
13357
  })), /*#__PURE__*/React$1.createElement(Table, {
13190
13358
  pagination: false,
13191
13359
  showHeader: false,
13192
- dataSource: onSearchSort ? sortDataSource.filter(function (item) {
13360
+ dataSource: (onSearchSort ? sortDataSource.filter(function (item) {
13193
13361
  var _item$title6;
13194
13362
  return (item === null || item === void 0 ? void 0 : (_item$title6 = item.title) === null || _item$title6 === void 0 ? void 0 : _item$title6.indexOf(onSearchSort)) > -1;
13195
- }) : sortDataSource,
13363
+ }) : sortDataSource).map(function (item) {
13364
+ return _objectSpread2(_objectSpread2({}, item), {}, {
13365
+ key: item.key || item.dataIndex
13366
+ });
13367
+ }),
13196
13368
  columns: this.columns,
13197
13369
  rowKey: "key",
13198
13370
  // rowSelection={rowSelection}
@@ -13392,13 +13564,13 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
13392
13564
  var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
13393
13565
  return i || i === 0;
13394
13566
  });
13395
- if (noEmptyArray(item.children)) {
13567
+ if (noEmptyArray$1(item.children)) {
13396
13568
  handleColumns(item.children, indexArrInside);
13397
13569
  } else {
13398
13570
  item.width = item.width || getItemDefaultWidth$2(item);
13399
13571
  item.onHeaderCell = function (column) {
13400
13572
  return _objectSpread2(_objectSpread2({}, item), {}, {
13401
- width: typeof column.width === 'number' ? column.width : parseInt(column.width.replace('px', '')),
13573
+ width: typeof column.width === 'number' ? column.width : parseWidth(column.width),
13402
13574
  onResize: _this2.handleResize(indexArrInside)
13403
13575
  });
13404
13576
  };
@@ -13468,6 +13640,13 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
13468
13640
  showColumns: showColumns
13469
13641
  });
13470
13642
  };
13643
+ _this.reSetInitialShowColumn = function () {
13644
+ var columns = _this.props.columns;
13645
+ var showColumns = getShowColumns(columns, []);
13646
+ _this.setState({
13647
+ showColumns: showColumns
13648
+ });
13649
+ };
13471
13650
  _this.setShowColumns = function (newColumns) {
13472
13651
  _this.setState({
13473
13652
  showColumns: _toConsumableArray(newColumns)
@@ -13626,7 +13805,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
13626
13805
  var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
13627
13806
  return i || i === 0;
13628
13807
  });
13629
- if (noEmptyArray(item.children)) {
13808
+ if (noEmptyArray$1(item.children)) {
13630
13809
  handleColumns(item.children, indexArrInside);
13631
13810
  } else {
13632
13811
  item.width = item.width || getItemDefaultWidth$2(item);
@@ -13669,6 +13848,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
13669
13848
  setShowColumns: this.setShowColumns,
13670
13849
  showColumns: this.state.showColumns,
13671
13850
  datasource: columns || [],
13851
+ reSetInitialShowColumn: this.reSetInitialShowColumn,
13672
13852
  tableCode: tableCode,
13673
13853
  appRequestConfig: appRequestConfig
13674
13854
  }))), /*#__PURE__*/React$1.createElement(Table, _objectSpread2({
@@ -13792,9 +13972,9 @@ function matchRoute(path, routeObj, hideRouteObj) {
13792
13972
  var getDetailMatchRoute = function getDetailMatchRoute(path, routeObj, hideRouteArray, _ref) {
13793
13973
  var pathToRegexp = _ref.pathToRegexp;
13794
13974
  var newPath = path.split('?')[0];
13795
- var hideRouteObj = _defineProperty({}, newPath, hideRouteArray.find(function (itemRoute) {
13975
+ var hideRouteObj = _defineProperty({}, newPath, Array.isArray(hideRouteArray) && (hideRouteArray === null || hideRouteArray === void 0 ? void 0 : hideRouteArray.find(function (itemRoute) {
13796
13976
  return pathToRegexp(itemRoute.path).test(newPath);
13797
- }));
13977
+ })));
13798
13978
  var matchedRoute = matchRoute(newPath, routeObj, hideRouteObj);
13799
13979
  if (matchedRoute) {
13800
13980
  var modeTypeText = path.match(/.*\/action\/.*/) ? '' : getModeTypeText(path);
@@ -13810,7 +13990,7 @@ var getDetailMatchRoute = function getDetailMatchRoute(path, routeObj, hideRoute
13810
13990
  return undefined;
13811
13991
  };
13812
13992
 
13813
- var css_248z$c = ".detail_page_head {\n padding: 8px 0;\n z-index: 5;\n display: flex;\n align-items: center;\n background-color: #FFFFFF;\n border-bottom: 1px solid #f0f0f0;\n}\n.detail_page_head .ant-breadcrumb {\n display: block !important;\n}\n.detail_page_head .ant-breadcrumb .ant-breadcrumb-separator {\n margin: 0 2px;\n}\n.detail_page_head .ant-breadcrumb li .bread_name {\n color: #8A8F8D;\n font-size: 12px;\n cursor: pointer;\n}\n.detail_page_head .ant-breadcrumb li .bread_name:hover {\n color: #000000d9;\n}\n.detail_page_wrapper {\n height: calc(100vh - 80px);\n background-color: #FFF;\n}\n.back_home_img_content {\n display: inline-block;\n height: 24px;\n width: 24px;\n border: 1px solid #BABABA;\n margin: 0 8px 0 16px;\n border-radius: 14px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n}\n.back_home_img_content .anticon-arrow-left {\n color: #BABABA;\n}\n.back_home_img_content:hover {\n background-color: #005CFF;\n border: 1px solid #005CFF;\n}\n.back_home_img_content:hover .anticon-arrow-left {\n color: #FFFFFF;\n}\n.detail_page_title_box {\n flex-grow: 1;\n display: flex;\n align-items: center;\n}\n.detail_page_title {\n height: 20px;\n font-family: PingFangSC;\n font-weight: 600;\n font-size: 14px;\n margin-top: 2px;\n padding-right: 10px;\n color: #000000;\n letter-spacing: 0;\n line-height: 20px;\n}\n.detail_page_btns {\n display: flex;\n gap: 8px;\n margin-right: 20px;\n}\n.detail_page_btns button {\n height: 32px !important;\n display: flex;\n align-items: center;\n gap: 2px;\n border-radius: 3px;\n padding: 0 10px;\n}\n.detail_page_btns .ant-btn-dangerous {\n background-color: #EC5246 !important;\n}\n";
13993
+ var css_248z$c = ".detail_page_head {\n padding: 8px 0;\n z-index: 5;\n display: flex;\n align-items: center;\n background-color: #FFFFFF;\n border-bottom: 1px solid #f0f0f0;\n}\n.detail_page_head .ant-breadcrumb {\n display: block !important;\n}\n.detail_page_head .ant-breadcrumb .ant-breadcrumb-separator {\n margin: 0 2px;\n}\n.detail_page_head .ant-breadcrumb li .bread_name {\n color: #8A8F8D;\n font-size: 12px;\n cursor: pointer;\n}\n.detail_page_head .ant-breadcrumb li .bread_name:hover {\n color: #000000d9;\n}\n.detail_page_wrapper {\n height: calc(100vh - 80px);\n background-color: #FFF;\n}\n.back_home_img_content {\n display: inline-block;\n height: 24px;\n width: 24px;\n border: 1px solid #BABABA;\n margin: 0 8px 0 16px;\n border-radius: 14px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n}\n.back_home_img_content .anticon-arrow-left {\n color: #BABABA;\n}\n.back_home_img_content:hover {\n background-color: #8bc7ff;\n border: 1px solid #8bc7ff;\n}\n.back_home_img_content:hover .anticon-arrow-left {\n color: #FFFFFF;\n}\n.detail_page_title_box {\n flex-grow: 1;\n display: flex;\n align-items: center;\n}\n.detail_page_title {\n height: 20px;\n font-family: PingFangSC;\n font-weight: 600;\n font-size: 14px;\n padding-right: 10px;\n color: #000000;\n letter-spacing: 0;\n line-height: 20px;\n}\n.detail_page_btns {\n display: flex;\n gap: 8px;\n margin-right: 20px;\n}\n.detail_page_btns button {\n height: 32px !important;\n display: flex;\n align-items: center;\n gap: 2px;\n border-radius: 3px;\n padding: 0 10px;\n}\n.detail_page_btns .ant-btn-dangerous {\n background-color: #EC5246 !important;\n}\n";
13814
13994
  styleInject(css_248z$c);
13815
13995
 
13816
13996
  var quanping = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2234px%22%20height%3D%2234px%22%20viewBox%3D%220%200%2034%2034%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%9F%A9%E5%BD%A2%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E5%88%97%E8%A1%A8%E5%8A%9F%E8%83%BD%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E6%98%9F%E6%BE%9C-%E6%90%9C%E7%B4%A2-%E6%90%9C%E7%B4%A2%E5%8A%9F%E8%83%BD%22%20transform%3D%22translate%28-1823.000000%2C%20-297.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E6%90%9C%E7%B4%A2%E7%BB%84%E4%BB%B6-%E6%A0%B7%E5%BC%8F%E4%B8%80%22%20transform%3D%22translate%28230.000000%2C%20284.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%A1%AE%E5%AE%9A%E5%A4%87%E4%BB%BD-2%22%20transform%3D%22translate%281593.000000%2C%2013.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M5.55801813%2C1%20L28.4419819%2C1%20C30.0269041%2C1%2030.6016352%2C1.16502331%2031.181059%2C1.47490258%20C31.7604829%2C1.78478186%2032.2152181%2C2.2395171%2032.5250974%2C2.81894097%20C32.8349767%2C3.39836484%2033%2C3.97309593%2033%2C5.55801813%20L33%2C28.4419819%20C33%2C30.0269041%2032.8349767%2C30.6016352%2032.5250974%2C31.181059%20C32.2152181%2C31.7604829%2031.7604829%2C32.2152181%2031.181059%2C32.5250974%20C30.6016352%2C32.8349767%2030.0269041%2C33%2028.4419819%2C33%20L5.55801813%2C33%20C3.97309593%2C33%203.39836484%2C32.8349767%202.81894097%2C32.5250974%20C2.2395171%2C32.2152181%201.78478186%2C31.7604829%201.47490258%2C31.181059%20C1.16502331%2C30.6016352%201%2C30.0269041%201%2C28.4419819%20L1%2C5.55801813%20C1%2C3.97309593%201.16502331%2C3.39836484%201.47490258%2C2.81894097%20C1.78478186%2C2.2395171%202.2395171%2C1.78478186%202.81894097%2C1.47490258%20C3.39836484%2C1.16502331%203.97309593%2C1%205.55801813%2C1%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20stroke%3D%22%23D9D9D9%22%20stroke-width%3D%220.888888889%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22scanning%22%20transform%3D%22translate%289.000000%2C%209.000000%29%22%20fill%3D%22%23000000%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M5.21873562%2C9.69278114%20L6.28954184%2C10.7432953%20L2.532%2C14.5%20L5.24949999%2C14.5%20L5.24949999%2C16%20L1.5%2C16%20C0.671572876%2C16%200%2C15.3284271%200%2C14.5%20L0%2C11%20L1.5%2C11%20L1.5%2C13.41%20L5.21873562%2C9.69278114%20Z%20M10.7898541%2C9.72266777%20L14.499%2C13.431%20L14.5%2C11%20L16%2C11%20L16%2C14.5%20C16%2C15.3284271%2015.3284271%2C16%2014.5%2C16%20L10.7495%2C16%20L10.7495%2C14.5%20L13.446%2C14.5%20L9.71904783%2C10.7731819%20L10.7898541%2C9.72266777%20Z%20M14.5%2C0%20C15.3284271%2C0%2016%2C0.671572876%2016%2C1.5%20L16%2C5%20L14.5%2C5%20L14.499%2C2.588%20L10.779708%2C6.3074783%20L9.71904783%2C5.24681813%20L13.465%2C1.5%20L10.75%2C1.5%20L10.75%2C0%20L14.5%2C0%20Z%20M5.25000001%2C0%20L5.25000001%2C1.5%20L2.567%2C1.5%20L6.31400442%2C5.24681813%20L5.25334424%2C6.3074783%20L1.5%2C2.554%20L1.5%2C5%20L0%2C5%20L0%2C1.5%20C0%2C0.671572876%200.671572876%2C0%201.5%2C0%20L5.25000001%2C0%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
@@ -13922,7 +14102,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
13922
14102
  return pathKey ? breadcrumbNameMap[pathKey] : undefined;
13923
14103
  };
13924
14104
  var getPageTitle = function getPageTitle(pathname) {
13925
- var _ref3 = localStorage.getItem(getCommonInfoKey()) && JSON.parse(localStorage.getItem('commonInfo')) || {},
14105
+ var _ref3 = localStorage.getItem(getCommonInfoKey()) && JSON.parse(localStorage.getItem(getCommonInfoKey())) || {},
13926
14106
  _ref3$hideRouteArray = _ref3.hideRouteArray,
13927
14107
  hideRouteArray = _ref3$hideRouteArray === void 0 ? [] : _ref3$hideRouteArray;
13928
14108
  var currRouterData = matchParamsPath("".concat(basePath).concat(pathname), breadcrumbNameMap) || getDetailMatchRoute("".concat(basePath).concat(pathname), breadcrumbNameMap, hideRouteArray, {
@@ -14076,7 +14256,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
14076
14256
  return true;
14077
14257
  });
14078
14258
 
14079
- var css_248z$e = ".home_page_head {\n display: flex;\n justify-content: space-between;\n align-items: center;\n background-color: #FFFFFF;\n border-bottom: 1px solid #f0f0f0;\n padding: 10px 20px;\n}\n.home_page_head .home_page_title_wrapper {\n display: flex;\n align-items: center;\n}\n.home_page_head .home_page_title {\n height: 20px;\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 16px;\n color: #000000;\n letter-spacing: 0;\n line-height: 20px;\n flex-grow: 1;\n margin-top: 2px;\n padding-right: 10px;\n}\n.home_page_head .ant-breadcrumb {\n display: block !important;\n}\n.home_page_head .ant-breadcrumb .ant-breadcrumb-separator {\n margin: 0 2px;\n}\n.home_page_head .ant-breadcrumb li .bread_name {\n color: #8A8F8D;\n font-size: 12px;\n line-height: 16px;\n cursor: pointer;\n}\n";
14259
+ var css_248z$e = ".home_page_head {\n display: flex;\n justify-content: space-between;\n align-items: center;\n background-color: #FFFFFF;\n border-bottom: 1px solid #f0f0f0;\n padding: 10px 20px;\n}\n.home_page_head .home_page_title_wrapper {\n display: flex;\n align-items: center;\n}\n.home_page_head .home_page_title {\n height: 20px;\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 16px;\n color: #000000;\n letter-spacing: 0;\n line-height: 20px;\n flex-grow: 1;\n padding-right: 10px;\n}\n.home_page_head .ant-breadcrumb {\n display: block !important;\n}\n.home_page_head .ant-breadcrumb .ant-breadcrumb-separator {\n margin: 0 2px;\n}\n.home_page_head .ant-breadcrumb li .bread_name {\n color: #8A8F8D;\n font-size: 12px;\n line-height: 16px;\n cursor: pointer;\n}\n";
14080
14260
  styleInject(css_248z$e);
14081
14261
 
14082
14262
  var _excluded$d = ["children"];
@@ -14526,7 +14706,8 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
14526
14706
  }];
14527
14707
  _this.showModal = function () {
14528
14708
  _this.setState({
14529
- visible: true
14709
+ visible: true,
14710
+ onSearchSort: false
14530
14711
  });
14531
14712
  _this.setInitValue();
14532
14713
  };
@@ -14668,7 +14849,48 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
14668
14849
  _this.setInitValue(true);
14669
14850
  };
14670
14851
  _this.handleResetSetting = function () {
14671
- _this.patchUserColumnConfig('');
14852
+ var _this$props3 = _this.props,
14853
+ setShowColumns = _this$props3.setShowColumns,
14854
+ _this$props3$datasour = _this$props3.datasource,
14855
+ setInitialTableInfo = _this$props3.setInitialTableInfo,
14856
+ appRequestConfig = _this$props3.appRequestConfig;
14857
+ var that = _this;
14858
+ var bsTableCode = _this.state.bsTableCode;
14859
+ return new Promise(function (resolve, reject) {
14860
+ requestUtil({
14861
+ url: handleRequestUrl('/user', '/appConfig/saveUserOrder', appRequestConfig),
14862
+ method: 'POST',
14863
+ data: {
14864
+ code: that.state.bsTableCode,
14865
+ detail: ''
14866
+ }
14867
+ }).then(function (res) {
14868
+ if (judgeIsRequestSuccess(res === null || res === void 0 ? void 0 : res.data)) {
14869
+ var config = localStorage.getItem(ENUM.BROWSER_CACHE.COLUMN_CONDITION) || '[]';
14870
+ var configArray = JSON.parse(config);
14871
+ var currentSetting = configArray.filter(function (item) {
14872
+ return item.code === bsTableCode;
14873
+ });
14874
+ if (currentSetting.length) {
14875
+ currentSetting[0].detail = JSON.stringify([]);
14876
+ } else {
14877
+ configArray.push({
14878
+ code: bsTableCode,
14879
+ detail: JSON.stringify([])
14880
+ });
14881
+ }
14882
+ localStorage.setItem(ENUM.BROWSER_CACHE.COLUMN_CONDITION, JSON.stringify(configArray));
14883
+ message$1.success('重置表头列成功!');
14884
+ setInitialTableInfo(true);
14885
+ _this.setState({
14886
+ visible: false
14887
+ });
14888
+ } else {
14889
+ message$1.error('重置表头列自定义失败,请稍后尝试');
14890
+ reject('');
14891
+ }
14892
+ });
14893
+ });
14672
14894
  };
14673
14895
  _this.onSearch = function (e) {
14674
14896
  _this.setState({
@@ -14686,10 +14908,10 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
14686
14908
  return _createClass(SortableTable, [{
14687
14909
  key: "componentDidMount",
14688
14910
  value: function componentDidMount() {
14689
- var _this$props3 = this.props,
14690
- datasource = _this$props3.datasource,
14691
- showColumn = _this$props3.showColumn,
14692
- bsTableCode = _this$props3.bsTableCode;
14911
+ var _this$props4 = this.props,
14912
+ datasource = _this$props4.datasource,
14913
+ showColumn = _this$props4.showColumn,
14914
+ bsTableCode = _this$props4.bsTableCode;
14693
14915
  var config = this.getConfigFromlocalstorage();
14694
14916
  this.setState({
14695
14917
  dataSource: datasource.map(function (item) {
@@ -14902,10 +15124,14 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
14902
15124
  })), /*#__PURE__*/React$1.createElement(Table, {
14903
15125
  pagination: false,
14904
15126
  showHeader: false,
14905
- dataSource: onSearchSort ? sortDataSource.filter(function (item) {
15127
+ dataSource: (onSearchSort ? sortDataSource.filter(function (item) {
14906
15128
  var _renderToString2;
14907
15129
  return ((_renderToString2 = renderToString(item === null || item === void 0 ? void 0 : item.title)) === null || _renderToString2 === void 0 ? void 0 : _renderToString2.indexOf(onSearchSort)) > -1;
14908
- }) : sortDataSource,
15130
+ }) : sortDataSource).map(function (item) {
15131
+ return _objectSpread2(_objectSpread2({}, item), {}, {
15132
+ key: item.key || item.dataIndex
15133
+ });
15134
+ }),
14909
15135
  columns: this.columns,
14910
15136
  rowKey: "key",
14911
15137
  // rowSelection={rowSelection}
@@ -15477,12 +15703,12 @@ var BsSulaQueryTable = (function (props) {
15477
15703
  return [];
15478
15704
  };
15479
15705
  /**
15480
- * 根据保存的配置和原始配置,获取设置的字段或列。
15481
- * @param savedConfig 保存的配置数组,可能包含字段或列的配置。
15482
- * @param originConfig 原始配置数组,包含完整的字段或列信息。
15483
- * @param type 字段或列的类型,用于确定配置的属性。
15484
- * @returns 返回根据保存的配置处理后的字段或列数组,如果未保存任何配置,则返回原始配置。
15485
- */
15706
+ * 根据保存的配置和原始配置,获取设置的字段或列。
15707
+ * @param savedConfig 保存的配置数组,可能包含字段或列的配置。
15708
+ * @param originConfig 原始配置数组,包含完整的字段或列信息。
15709
+ * @param type 字段或列的类型,用于确定配置的属性。
15710
+ * @returns 返回根据保存的配置处理后的字段或列数组,如果未保存任何配置,则返回原始配置。
15711
+ */
15486
15712
  var getSettingFieldOrColumn = function getSettingFieldOrColumn(savedConfig, originConfig, type) {
15487
15713
  /**
15488
15714
  * 判断值是否为字符串数组。
@@ -15559,28 +15785,15 @@ var BsSulaQueryTable = (function (props) {
15559
15785
  _useState10 = _slicedToArray(_useState9, 2),
15560
15786
  showExportColumn = _useState10[0],
15561
15787
  setShowExportColumns = _useState10[1]; // 导出列字段
15562
- var _useState11 = useState('100vh'),
15788
+ var _useState11 = useState(''),
15563
15789
  _useState12 = _slicedToArray(_useState11, 2),
15564
15790
  height = _useState12[0],
15565
15791
  setHeight = _useState12[1];
15566
15792
  var sortTableRef = useRef(null);
15567
15793
  var searchTableRef = useRef(null);
15568
15794
  var exportTableRef = useRef(null);
15795
+ var queryTableRef = useRef(null);
15569
15796
  var bsTableCodeExport = "".concat(bsTableCode, "___Export"); //设置导出列字段的唯一标识
15570
- // 获取table高度
15571
- var getTableHeight = function getTableHeight() {
15572
- setTimeout(function () {
15573
- var _window$top, _document$querySelect, _document$querySelect2, _document$querySelect3, _document$querySelect4;
15574
- var cancelHeight = window.top == window ? 303 : 223;
15575
- var isFullScreen = window.top.document.fullScreen || window.top.document.webkitIsFullScreen || window.top.document.mozFullScreen;
15576
- // wujie子应用iframe首次加载获取不到client以及dom元素高度兼容处理
15577
- var realIframeClientHeight = document.body.clientHeight ? document.body.clientHeight : ((_window$top = window.top) === null || _window$top === void 0 ? void 0 : _window$top.document.body.clientHeight) - 76;
15578
- var summaryHeight = document.querySelector(".ant-tabs-tabpane-active .table-bssula-summary") ? ((_document$querySelect = document.querySelector(".ant-tabs-tabpane-active .table-bssula-summary")) === null || _document$querySelect === void 0 ? void 0 : _document$querySelect.clientHeight) || 22 : 0;
15579
- var listTabHeight = document.querySelector(".ant-tabs-tabpane-active .list_top_tab .ant-tabs-nav") ? ((_document$querySelect2 = document.querySelector(".ant-tabs-tabpane-active .list_top_tab .ant-tabs-nav")) === null || _document$querySelect2 === void 0 ? void 0 : _document$querySelect2.clientHeight) || 48 : 0;
15580
- var h = realIframeClientHeight - summaryHeight - listTabHeight - (((_document$querySelect3 = document.querySelector(".ant-tabs-tabpane-active .ant-form ant-form-horizontal")) === null || _document$querySelect3 === void 0 ? void 0 : _document$querySelect3.clientHeight) || 0) - (isFullScreen ? 0 : ((_document$querySelect4 = document.querySelector(".ant-tabs-tabpane-active .ant-pro-page-container-warp")) === null || _document$querySelect4 === void 0 ? void 0 : _document$querySelect4.clientHeight) || 0) - cancelHeight + 'px';
15581
- setHeight(h);
15582
- }, 0);
15583
- };
15584
15797
  //监测是否按下esc键
15585
15798
  function checkFull() {
15586
15799
  var _window, _window$parent;
@@ -15589,7 +15802,7 @@ var BsSulaQueryTable = (function (props) {
15589
15802
  if (isFull == undefined) isFull = false;
15590
15803
  return isFull;
15591
15804
  }
15592
- var setInitialTableInfo = function setInitialTableInfo() {
15805
+ var setInitialTableInfo = function setInitialTableInfo(isReset) {
15593
15806
  var resourceCodeArray = {};
15594
15807
  var uuIdList = [];
15595
15808
  if (props.actionsRender && props.actionsRender.length) {
@@ -15647,7 +15860,7 @@ var BsSulaQueryTable = (function (props) {
15647
15860
  var parsedWidth = parseInt(widthStr.replace('px', ''));
15648
15861
  return isNaN(parsedWidth) ? 0 : parsedWidth;
15649
15862
  };
15650
- var showColumns = getSettingFieldOrColumn(columnConfig, columns, 'columns');
15863
+ var showColumns = getSettingFieldOrColumn(isReset ? [] : columnConfig, columns, 'columns');
15651
15864
  showColumns.forEach(function (item, index) {
15652
15865
  item.width = item.width || getItemDefaultWidth(item);
15653
15866
  handleBssulaColumnsSpecialParams(item);
@@ -15683,7 +15896,7 @@ var BsSulaQueryTable = (function (props) {
15683
15896
  };
15684
15897
  //组件初始挂载
15685
15898
  useEffect(function () {
15686
- getTableHeight();
15899
+ // getTableHeight();
15687
15900
  setInitialTableInfo();
15688
15901
  setInitialSearchFieldsInfo();
15689
15902
  window.addEventListener('resize', function (e) {
@@ -15717,7 +15930,7 @@ var BsSulaQueryTable = (function (props) {
15717
15930
  setInitialTableInfo();
15718
15931
  }, [props === null || props === void 0 ? void 0 : props.refreshColumns]);
15719
15932
  var watchWinResize = debounce(function () {
15720
- getTableHeight();
15933
+ // getTableHeight();
15721
15934
  if (!checkFull()) {
15722
15935
  // addTabsNavStyle(true);
15723
15936
  // 全屏下按键esc后要执行的动作
@@ -15744,7 +15957,7 @@ var BsSulaQueryTable = (function (props) {
15744
15957
  };
15745
15958
  // 处理 table 基本参数
15746
15959
  var setTableProps = function setTableProps() {
15747
- var _tableProps, _tableProps$initialPa, _tableProps2, _tableProps2$initialP;
15960
+ var _tableProps, _tableProps$initialPa, _tableProps2, _tableProps3, _tableProps3$initialP;
15748
15961
  var tableProps = value.tableProps || {};
15749
15962
  tableProps = _objectSpread2(_objectSpread2({}, tableProps), {}, {
15750
15963
  size: value.size || 'middle',
@@ -15772,14 +15985,14 @@ var BsSulaQueryTable = (function (props) {
15772
15985
  rowClassName: function rowClassName(record, index) {
15773
15986
  return index % 2 === 0 ? 'table_base' : 'table_odd';
15774
15987
  },
15775
- components: {
15988
+ components: _objectSpread2({
15776
15989
  header: {
15777
15990
  cell: ResizeableTitle$2
15778
15991
  }
15779
- }
15992
+ }, (_tableProps2 = tableProps) === null || _tableProps2 === void 0 ? void 0 : _tableProps2.components)
15780
15993
  });
15781
15994
  // @ts-ignore
15782
- if ((_tableProps2 = tableProps) === null || _tableProps2 === void 0 ? void 0 : (_tableProps2$initialP = _tableProps2.initialPaging) === null || _tableProps2$initialP === void 0 ? void 0 : _tableProps2$initialP.pagination) {
15995
+ if ((_tableProps3 = tableProps) === null || _tableProps3 === void 0 ? void 0 : (_tableProps3$initialP = _tableProps3.initialPaging) === null || _tableProps3$initialP === void 0 ? void 0 : _tableProps3$initialP.pagination) {
15783
15996
  // @ts-ignore
15784
15997
  tableProps.initialPaging.pagination.showSizeChanger = true;
15785
15998
  }
@@ -16037,23 +16250,24 @@ var BsSulaQueryTable = (function (props) {
16037
16250
  return _objectSpread2(_objectSpread2({}, config), {}, {
16038
16251
  summary: props.summary,
16039
16252
  summaryList: props.summaryList ? getTableSummaryInfo : undefined,
16040
- statusMapping: props.statusMapping
16253
+ statusMapping: props.statusMapping,
16254
+ isBsSulaQueryTable: true
16041
16255
  });
16042
- }, [
16043
- // value,
16044
- checkedList, showColumn, props.statusMapping, showSearchFields, expandedRowKeys]);
16256
+ }, [checkedList, showColumn, props.statusMapping, showSearchFields, expandedRowKeys]);
16045
16257
  return /*#__PURE__*/React$1.createElement("div", {
16046
16258
  id: "bs-sula-query-table"
16047
16259
  }, /*#__PURE__*/React$1.createElement(MemoQueryTable, _objectSpread2({}, memoConfig)), /*#__PURE__*/React$1.createElement(SortableTable$1, {
16048
16260
  ref: sortTableRef,
16049
16261
  setShowColumns: setShowColumns,
16050
16262
  showColumn: showColumn,
16263
+ setInitialTableInfo: setInitialTableInfo,
16051
16264
  datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
16052
16265
  bsTableCode: bsTableCode,
16053
16266
  onlyModal: true
16054
16267
  }), (value === null || value === void 0 ? void 0 : (_value$exportConfig7 = value.exportConfig) === null || _value$exportConfig7 === void 0 ? void 0 : _value$exportConfig7.settingColumns) && ( /*#__PURE__*/React$1.createElement(SortableTable$1, {
16055
16268
  ref: exportTableRef,
16056
16269
  setShowColumns: setShowExportColumns,
16270
+ setInitialTableInfo: setInitialTableInfo,
16057
16271
  showColumn: showExportColumn,
16058
16272
  datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
16059
16273
  bsTableCode: bsTableCodeExport,
@@ -16318,7 +16532,7 @@ var AllFunc = function AllFunc(props) {
16318
16532
  })))));
16319
16533
  };
16320
16534
 
16321
- var css_248z$i = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #1890ff;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.dark .action:hover {\n background: #252a3d;\n}\n.dark .action .opened {\n background: #252a3d;\n}\n.warp_allfunc {\n z-index: 100;\n}\n.warp_allfunc .drawerWarp {\n -moz-column-count: 4;\n column-count: 4;\n}\n.warp_allfunc .drawer_header_warp .ant-list-header {\n padding: 0 0 0 10px !important;\n line-height: 40px;\n border: 0px !important;\n}\n.warp_allfunc .drawer_header_warp .ant-list-header b {\n width: 100%;\n display: inline-block;\n border-bottom: 1px solid #f0f0f0;\n}\n.warp_allfunc .drawer_header_warp .ant-list-item {\n padding: 0 0 0 10px !important;\n line-height: 30px !important;\n}\n.warp_allfunc .drawer_header_warp .ant-drawer-close {\n position: absolute;\n right: 0;\n}\n.warp_allfunc .p {\n color: #b1bad4;\n font-weight: 400;\n font-size: 12px;\n margin-bottom: 10px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 16px;\n text-align: left;\n opacity: 0.8;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n text-align: center;\n margin-left: 8px;\n}\n.warp_allfunc .btn {\n display: flex;\n align-items: center;\n height: 44px;\n color: #b1bad4;\n background: #10234c;\n border-radius: 8px;\n width: 130px;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.warp_allfunc .btn:hover,\n.warp_allfunc .btnSpan1:hover,\n.warp_allfunc .btnSpan2:hover {\n cursor: pointer;\n color: #b1bad4;\n}\n.warp_allfunc .btnSpan1 {\n margin: 0 7px;\n}\n.allfunc_drawcontent .allFunsList {\n margin-bottom: 10px;\n}\n.allfunc_drawcontent .allFunsListWarp {\n width: 200px;\n margin-right: 10px;\n border-radius: 4px;\n -moz-column-break-inside: avoid;\n break-inside: avoid;\n}\n.allfunc_drawcontent .drawerWarp_p {\n color: #8c8c8c;\n font-weight: 400;\n font-size: 14px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 20px;\n text-align: left;\n}\n";
16535
+ var css_248z$i = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #005cff;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.dark .action:hover {\n background: #252a3d;\n}\n.dark .action .opened {\n background: #252a3d;\n}\n.warp_allfunc {\n z-index: 100;\n}\n.warp_allfunc .drawerWarp {\n -moz-column-count: 4;\n column-count: 4;\n}\n.warp_allfunc .drawer_header_warp .ant-list-header {\n padding: 0 0 0 10px !important;\n line-height: 40px;\n border: 0px !important;\n}\n.warp_allfunc .drawer_header_warp .ant-list-header b {\n width: 100%;\n display: inline-block;\n border-bottom: 1px solid #f0f0f0;\n}\n.warp_allfunc .drawer_header_warp .ant-list-item {\n padding: 0 0 0 10px !important;\n line-height: 30px !important;\n}\n.warp_allfunc .drawer_header_warp .ant-drawer-close {\n position: absolute;\n right: 0;\n}\n.warp_allfunc .p {\n color: #b1bad4;\n font-weight: 400;\n font-size: 12px;\n margin-bottom: 10px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 16px;\n text-align: left;\n opacity: 0.8;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n text-align: center;\n margin-left: 8px;\n}\n.warp_allfunc .btn {\n display: flex;\n align-items: center;\n height: 44px;\n color: #b1bad4;\n background: #10234c;\n border-radius: 8px;\n width: 130px;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.warp_allfunc .btn:hover,\n.warp_allfunc .btnSpan1:hover,\n.warp_allfunc .btnSpan2:hover {\n cursor: pointer;\n color: #b1bad4;\n}\n.warp_allfunc .btnSpan1 {\n margin: 0 7px;\n}\n.allfunc_drawcontent .allFunsList {\n margin-bottom: 10px;\n}\n.allfunc_drawcontent .allFunsListWarp {\n width: 200px;\n margin-right: 10px;\n border-radius: 4px;\n -moz-column-break-inside: avoid;\n break-inside: avoid;\n}\n.allfunc_drawcontent .drawerWarp_p {\n color: #8c8c8c;\n font-weight: 400;\n font-size: 14px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 20px;\n text-align: left;\n}\n";
16322
16536
  styleInject(css_248z$i);
16323
16537
 
16324
16538
  var allfunc = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%220%200%2024%2024%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3Eicon%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Crect%20id%3D%22path-1%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3C%2Frect%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22%E5%85%A8%E5%B1%80%E5%AF%BC%E8%88%AA%E7%9B%B8%E5%85%B3%E5%8A%9F%E8%83%BD%E9%9C%80%E6%B1%82%E8%AE%BE%E8%AE%A1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E8%87%AA%E5%AE%9A%E4%B9%89%E5%B7%A6%E4%BE%A7%E8%8F%9C%E5%8D%95%22%20transform%3D%22translate%28-20.000000%2C%20-1016.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-6%22%20transform%3D%22translate%280.000000%2C%2060.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-5%E5%A4%87%E4%BB%BD%22%20transform%3D%22translate%280.000000%2C%20900.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E6%9F%A5%E7%9C%8B%E5%85%A8%E9%83%A8%E5%8A%9F%E8%83%BD%22%20transform%3D%22translate%2810.000000%2C%2046.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22icon%22%20transform%3D%22translate%2810.000000%2C%2010.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cmask%20id%3D%22mask-2%22%20fill%3D%22white%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fmask%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20id%3D%22navigation-icon-allfunctions%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22category%22%20mask%3D%22url%28%23mask-2%29%22%20fill%3D%22%23B1BAD4%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22translate%283.000000%2C%205.000000%29%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M2.24999999%2C12.3585414%20L2.24999999%2C14%20L0%2C14%20L0%2C12.3585414%20L2.24999999%2C12.3585414%20Z%20M18%2C12.3585414%20L18%2C14%20L3.375%2C14%20L3.375%2C12.3585414%20L18%2C12.3585414%20Z%20M2.24999999%2C6.17954431%20L2.24999999%2C7.82100286%20L0%2C7.82100286%20L0%2C6.17954431%20L2.24999999%2C6.17954431%20L2.24999999%2C6.17954431%20Z%20M18%2C6.17954431%20L18%2C7.82100286%20L3.375%2C7.82100286%20L3.375%2C6.17954431%20L18%2C6.17954431%20L18%2C6.17954431%20Z%20M2.24999999%2C0%20L2.24999999%2C1.64145855%20L0%2C1.64145855%20L0%2C0%20L2.24999999%2C0%20L2.24999999%2C0%20Z%20M18%2C0%20L18%2C1.64145855%20L3.375%2C1.64145855%20L3.375%2C0%20L18%2C0%20L18%2C0%20Z%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
@@ -17137,7 +17351,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
17137
17351
  var afterStr = newName.substr(index + keyWord.length);
17138
17352
  return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("span", null, beforeStr), /*#__PURE__*/React$1.createElement("span", {
17139
17353
  style: {
17140
- color: '#1890ff'
17354
+ color: '#005cff'
17141
17355
  }
17142
17356
  }, keyWord), /*#__PURE__*/React$1.createElement("span", null, afterStr));
17143
17357
  }
@@ -17980,7 +18194,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
17980
18194
  })));
17981
18195
  });
17982
18196
 
17983
- var css_248z$n = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #1890ff;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.dark .action:hover {\n background: #252a3d;\n}\n.dark .action .opened {\n background: #252a3d;\n}\n.global_menu_draw_content {\n display: flex;\n height: 100%;\n}\n.global_menu_draw_content .allFunsList {\n margin-bottom: 10px;\n}\n.global_menu_draw_content .drawerWarp_left {\n width: 150px;\n height: 100%;\n flex-shrink: 0;\n border-right: 1px solid #f0f0f0;\n}\n.global_menu_draw_content .drawerWarp_left .left_item_title {\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #8c8c8c;\n letter-spacing: 0;\n line-height: 20px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n margin: 20px 0px;\n padding-left: 10px;\n}\n.global_menu_draw_content .drawerWarp_left .left_item {\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n line-height: 20px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n cursor: pointer;\n margin: 20px 0px;\n padding-left: 10px;\n}\n.global_menu_draw_content .drawerWarp_left .left_item:hover {\n color: #1890ff !important;\n}\n.global_menu_draw_content .drawerWarp_right {\n -moz-column-count: 4;\n column-count: 4;\n flex-grow: 1;\n padding-left: 10px;\n}\n.global_menu_draw_content .drawerWarp_right .ant-list-header {\n padding: 0 0 0 10px !important;\n line-height: 30px;\n border: 0px !important;\n}\n.global_menu_draw_content .drawerWarp_right .ant-list-header b {\n width: 100%;\n box-sizing: border-box;\n display: inline-block;\n border-bottom: 1px solid #f0f0f0;\n}\n.global_menu_draw_content .drawerWarp_right .ant-list-item {\n padding: 0 0 0 10px !important;\n line-height: 30px !important;\n}\n.global_menu_draw_content .drawerWarp_right .ant-drawer-close {\n position: absolute;\n right: 0;\n}\n.global_menu_draw_content .search_menu_content {\n flex-grow: 1;\n display: flex;\n flex-wrap: wrap;\n background-color: #ffffff;\n}\n.global_menu_draw_content .search_menu_content div {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 8px 20px;\n font-size: 14px;\n font-weight: 400;\n color: #000000;\n background: #f8f9fa;\n border-radius: 100px;\n margin-right: 10px;\n margin-bottom: 10px;\n}\n.global_menu_draw_content .search_menu_content div:hover {\n cursor: pointer;\n}\n.global_menu_draw_content .allFunsListWarp {\n width: 200px;\n margin-right: 10px;\n border-radius: 4px;\n -moz-column-break-inside: avoid;\n break-inside: avoid;\n}\n.global_menu_draw_content .choosedStyle .ant-list-header {\n background-color: #005CFF;\n opacity: 0.8;\n}\n.global_menu_draw_content .choosedStyle .ant-list-header b {\n border-bottom: 1px solid #005CFF;\n}\n";
18197
+ var css_248z$n = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #005cff;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.dark .action:hover {\n background: #252a3d;\n}\n.dark .action .opened {\n background: #252a3d;\n}\n.global_menu_draw_content {\n display: flex;\n height: 100%;\n}\n.global_menu_draw_content .allFunsList {\n margin-bottom: 10px;\n}\n.global_menu_draw_content .drawerWarp_left {\n width: 150px;\n height: 100%;\n flex-shrink: 0;\n border-right: 1px solid #f0f0f0;\n}\n.global_menu_draw_content .drawerWarp_left .left_item_title {\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #8c8c8c;\n letter-spacing: 0;\n line-height: 20px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n margin: 20px 0px;\n padding-left: 10px;\n}\n.global_menu_draw_content .drawerWarp_left .left_item {\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n line-height: 20px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n cursor: pointer;\n margin: 20px 0px;\n padding-left: 10px;\n}\n.global_menu_draw_content .drawerWarp_left .left_item:hover {\n color: #005cff !important;\n}\n.global_menu_draw_content .drawerWarp_right {\n -moz-column-count: 4;\n column-count: 4;\n flex-grow: 1;\n padding-left: 10px;\n}\n.global_menu_draw_content .drawerWarp_right .ant-list-header {\n padding: 0 0 0 10px !important;\n line-height: 30px;\n border: 0px !important;\n}\n.global_menu_draw_content .drawerWarp_right .ant-list-header b {\n width: 100%;\n box-sizing: border-box;\n display: inline-block;\n border-bottom: 1px solid #f0f0f0;\n}\n.global_menu_draw_content .drawerWarp_right .ant-list-item {\n padding: 0 0 0 10px !important;\n line-height: 30px !important;\n}\n.global_menu_draw_content .drawerWarp_right .ant-drawer-close {\n position: absolute;\n right: 0;\n}\n.global_menu_draw_content .search_menu_content {\n flex-grow: 1;\n display: flex;\n flex-wrap: wrap;\n background-color: #ffffff;\n}\n.global_menu_draw_content .search_menu_content div {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 8px 20px;\n font-size: 14px;\n font-weight: 400;\n color: #000000;\n background: #f8f9fa;\n border-radius: 100px;\n margin-right: 10px;\n margin-bottom: 10px;\n}\n.global_menu_draw_content .search_menu_content div:hover {\n cursor: pointer;\n}\n.global_menu_draw_content .allFunsListWarp {\n width: 200px;\n margin-right: 10px;\n border-radius: 4px;\n -moz-column-break-inside: avoid;\n break-inside: avoid;\n}\n.global_menu_draw_content .choosedStyle .ant-list-header {\n background-color: #005CFF;\n opacity: 0.8;\n}\n.global_menu_draw_content .choosedStyle .ant-list-header b {\n border-bottom: 1px solid #005CFF;\n}\n";
17984
18198
  styleInject(css_248z$n);
17985
18199
 
17986
18200
  var closeicon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAiZJREFUSEvFll1LVFEUhh/1QqjAxALrot+ggR9RQWh1UZl9kNCtv8ALf0Q3/YVuiyIqLKOUyI80RP0VXVSU+UGKF2W88q7hzPacOY4QHhiGmVn7fdZe691rTwP/+WlI9Bv9eQfQq55HWqH3NxamgOz3+q0SWEJSYpFQVWIBUIDE+oARYBj4ATQBf0rEI+Yk8Ah4CHwEdjUDoHeRnwN3gBngJrBaAgnxVmAMOA88A4aKAAp8A5wzZABYK4Dkic8CWqPEdpPO9iB20Qa8BnqBae9EkCijKhbixx2rzOeAG8CvEFdg2uRYKIh20mOIslo3RGvUlxaLXwDmgesWr+pbnovyIFPe+oYbLnHV/CLw2eIreaUssmlATngn3YAg17yL8f2I55Uo68is/VSuLuC9AZeBBQN/1nJa0Q4ClHVKuEu/fXJZihxWSbQMEM5pBlQWHUQ9E+7JduKuPWeyFiDEj7mhl2xFrdE5+WAL/64FKQJkxV858yXgqq09CXQAer8FFELyAFnxl0A/sOiaf3cN2u2usy7X7SJI3rjW0DsKSFxuUeY6RN/sFjF00ARRXzrtLkE203LljQqJvwCuAMu2YojHZA13nTJE5XrnQSlIjJ3KqIgvjlhctZa4Mv9aMuxOu1yCvAXuAlvpsAvAU+DePsTTc5KFPAHup+M6GjsIjDrgS50XzhngMfDAtq66cNIRoUYf5MqUaNUNeCiXfsUB9fylcOyetf8AAkCfGYuSNSEAAAAASUVORK5CYII=";
@@ -18145,8 +18359,8 @@ var DrawContent$1 = function DrawContent(_ref) {
18145
18359
  return /*#__PURE__*/React$1.createElement("div", {
18146
18360
  className: 'left_item',
18147
18361
  style: {
18148
- borderLeft: currentOneLevel === item.path ? '2px solid #1890ff' : 'none',
18149
- color: currentOneLevel === item.path ? '#1890ff' : '#000000'
18362
+ borderLeft: currentOneLevel === item.path ? '2px solid #005cff' : 'none',
18363
+ color: currentOneLevel === item.path ? '#005cff' : '#000000'
18150
18364
  },
18151
18365
  onClick: function onClick(e) {
18152
18366
  e.stopPropagation();
@@ -18396,7 +18610,7 @@ var CustomerMenuHeader = function CustomerMenuHeader(_ref) {
18396
18610
  })));
18397
18611
  };
18398
18612
 
18399
- var css_248z$o = ".customer_menu_content {\n color: #b1bad4;\n background: #141620;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 18px;\n height: 40px;\n border-bottom: 1px solid #3d4047;\n}\n.customer_menu_content .ant-btn-link {\n color: #b1bad4 !important;\n font-size: 16px;\n height: 36px;\n}\n.menu_item {\n line-height: 30px;\n height: 30px;\n color: rgba(44, 47, 46);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.link_style:hover {\n background-color: #e4e7ed;\n cursor: pointer;\n color: #1890ff;\n}\n.sub_menu_content {\n box-shadow: 2px 0px 4px 0px rgba(185, 185, 185, 0.5);\n position: fixed;\n top: 50px;\n left: 140px;\n width: 200px;\n height: 100%;\n background-color: #fff;\n padding-top: 10px;\n z-index: 9999;\n}\n.tab_left_operate {\n display: flex;\n height: 28px;\n align-items: center;\n}\n.tab_left_operate > div {\n width: 28px;\n font-size: 12px;\n color: #2C2F2ECC;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n border-right: 1px solid #E4E4E4;\n background-color: #fff;\n cursor: pointer;\n}\n.tab_left_operate > div:last-child {\n box-shadow: 2px -2px 4px 0px rgba(185, 185, 185, 0.9);\n z-index: 99;\n}\n.tab_right_operate {\n height: 28px;\n width: 28px;\n font-size: 12px;\n color: #2C2F2ECC;\n display: flex;\n align-items: center;\n justify-content: center;\n border-right: 1px solid #E4E4E4;\n background-color: #fff;\n box-shadow: -2px -2px 4px 0px rgba(185, 185, 185, 0.9);\n z-index: 99;\n cursor: pointer;\n position: relative;\n}\n";
18613
+ var css_248z$o = ".customer_menu_content {\n color: #b1bad4;\n background: #141620;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 18px;\n height: 40px;\n border-bottom: 1px solid #3d4047;\n}\n.customer_menu_content .ant-btn-link {\n color: #b1bad4 !important;\n font-size: 16px;\n height: 36px;\n}\n.menu_item {\n line-height: 30px;\n height: 30px;\n color: rgba(44, 47, 46);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.link_style:hover {\n background-color: #e4e7ed;\n cursor: pointer;\n color: #005cff;\n}\n.sub_menu_content {\n box-shadow: 2px 0px 4px 0px rgba(185, 185, 185, 0.5);\n position: fixed;\n top: 50px;\n left: 140px;\n width: 200px;\n height: 100%;\n background-color: #fff;\n padding-top: 10px;\n z-index: 9999;\n}\n.tab_left_operate {\n display: flex;\n height: 28px;\n align-items: center;\n}\n.tab_left_operate > div {\n width: 28px;\n font-size: 12px;\n color: #2C2F2ECC;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n border-right: 1px solid #E4E4E4;\n background-color: #fff;\n cursor: pointer;\n}\n.tab_left_operate > div:last-child {\n box-shadow: 2px -2px 4px 0px rgba(185, 185, 185, 0.9);\n z-index: 99;\n}\n.tab_right_operate {\n height: 28px;\n width: 28px;\n font-size: 12px;\n color: #2C2F2ECC;\n display: flex;\n align-items: center;\n justify-content: center;\n border-right: 1px solid #E4E4E4;\n background-color: #fff;\n box-shadow: -2px -2px 4px 0px rgba(185, 185, 185, 0.9);\n z-index: 99;\n cursor: pointer;\n position: relative;\n}\n";
18400
18614
  styleInject(css_248z$o);
18401
18615
 
18402
18616
  /*
@@ -18755,14 +18969,12 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
18755
18969
  var _dicData = [];
18756
18970
  _dicData = dicDataTextValue[dicCode];
18757
18971
  var endPerformance1 = performance.now();
18758
- console.log("字典方法时间花费1:", endPerformance1 - startPerformance);
18759
- if (value === undefined) return "- -";
18972
+ if (value === undefined) return "-";
18760
18973
  if (!_dicData) {
18761
18974
  // throw new Error(`当前${dicCode}字典值合没有${value}的数据`)
18762
18975
  return value;
18763
18976
  }
18764
18977
  var endPerformance = performance.now();
18765
- console.log("字典方法时间花费:", endPerformance - startPerformance);
18766
18978
  return _dicData[value] || value;
18767
18979
  }
18768
18980
  var dicData = [];
@@ -18771,7 +18983,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
18771
18983
  dicData = storageDic[dicCode];
18772
18984
  }
18773
18985
  if (!dicData || !dicData.length) ;
18774
- if (value === undefined) return '- -';
18986
+ if (value === undefined) return '-';
18775
18987
  var dicItemArray = (_dicData2 = dicData) === null || _dicData2 === void 0 ? void 0 : _dicData2.filter(function (item) {
18776
18988
  return item.value === value.toString();
18777
18989
  });
@@ -18782,11 +18994,11 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
18782
18994
  return dicItemArray[0].text;
18783
18995
  };
18784
18996
  _this.timeFormat = function (timeStr, format, notNeedConvertTimeZone) {
18785
- if (!timeStr) return '- -';
18997
+ if (!timeStr) return '-';
18786
18998
  if (notNeedConvertTimeZone) {
18787
18999
  return moment$1(timeStr).format(format);
18788
19000
  }
18789
- return moment$1(timeStr).add(8, 'hours').format(format) || '- -';
19001
+ return moment$1(timeStr).add(8, 'hours').format(format) || '-';
18790
19002
  };
18791
19003
  _this.onChange = function (key) {
18792
19004
  if (key !== _this.state.activeKey) {
@@ -26355,7 +26567,7 @@ function registerSuggestions(monaco) {
26355
26567
  });
26356
26568
  }
26357
26569
 
26358
- var css_248z$r = ":global .si-editor-highlight {\n background: #1990ffab;\n}\n.title {\n color: #1890ff;\n padding: 12px;\n font-weight: bold;\n}\n.editorWrapper {\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n padding: 24px;\n background-color: #fff;\n z-index: 10000;\n}\n";
26570
+ var css_248z$r = ":global .si-editor-highlight {\n background: #1990ffab;\n}\n.title {\n color: #005cff;\n padding: 12px;\n font-weight: bold;\n}\n.editorWrapper {\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n padding: 24px;\n background-color: #fff;\n z-index: 10000;\n}\n";
26359
26571
  styleInject(css_248z$r);
26360
26572
 
26361
26573
  var Title = Typography.Title;
@@ -28443,7 +28655,7 @@ var FieldsSettingsTable = (function (props) {
28443
28655
  title: '显示类型',
28444
28656
  render: function render(_ref3) {
28445
28657
  var text = _ref3.text;
28446
- return inputType[text] || '- -';
28658
+ return inputType[text] || '-';
28447
28659
  },
28448
28660
  width: 80
28449
28661
  }, {
@@ -28451,7 +28663,7 @@ var FieldsSettingsTable = (function (props) {
28451
28663
  title: '字段类型',
28452
28664
  render: function render(_ref4) {
28453
28665
  var text = _ref4.text;
28454
- return valueType[text] || '- -';
28666
+ return valueType[text] || '-';
28455
28667
  },
28456
28668
  width: 80
28457
28669
  }, {
@@ -29381,6 +29593,807 @@ var isObj = function isObj(object) {
29381
29593
  var dateFormat = 'YYYY-MM-DD';
29382
29594
  var fullDateFormat = 'YYYY-MM-DD HH:mm:ss';
29383
29595
 
29596
+ // 处理表头
29597
+ var getColumnItem = function getColumnItem(_ref) {
29598
+ var item = _ref.item;
29599
+ var ites = {
29600
+ title: item.name,
29601
+ key: item.code,
29602
+ render: function render(_ref2) {
29603
+ var text = _ref2.text,
29604
+ record = _ref2.record;
29605
+ var showText = (record === null || record === void 0 ? void 0 : record["".concat(item.code, "_Name")]) || text;
29606
+ return showText;
29607
+ }
29608
+ };
29609
+ // 处理列展示类型基础数据
29610
+ if (item.choiceType == 20) {
29611
+ // 数据字典
29612
+ var dictionaryCode;
29613
+ try {
29614
+ if (JSON.parse(item.info || '{}').dictionaryCode) {
29615
+ dictionaryCode = JSON.parse(item.info || '{}').dictionaryCode;
29616
+ }
29617
+ } catch (e) {
29618
+ console.log('error', e);
29619
+ }
29620
+ ites.sourceList = dictionaryCode && getDictionarySource(dictionaryCode) || [];
29621
+ }
29622
+ if (item.choiceType == 10) {
29623
+ // 自定义枚举值
29624
+ var enumeration;
29625
+ try {
29626
+ if (JSON.parse(item.info || '{}').enumeration) {
29627
+ enumeration = JSON.parse(item.info || '{}').enumeration;
29628
+ }
29629
+ } catch (e) {
29630
+ console.log('error', e);
29631
+ }
29632
+ ites.sourceList = enumeration && Object.keys(enumeration).map(function (key) {
29633
+ return {
29634
+ value: key,
29635
+ text: enumeration[key]
29636
+ };
29637
+ }) || [];
29638
+ }
29639
+ return ites;
29640
+ };
29641
+ var formatListName = function formatListName(list, columns) {
29642
+ if (!(list === null || list === void 0 ? void 0 : list.length)) return [];
29643
+ if (!(columns === null || columns === void 0 ? void 0 : columns.length)) return list; // 下拉框无需格式化
29644
+ return list.map(function (item) {
29645
+ var resultItem = _objectSpread2({}, item);
29646
+ // 弹窗table编码展示名称
29647
+ var column = columns.filter(function (col) {
29648
+ var _Object$keys, _col$sourceList;
29649
+ return ((_Object$keys = Object.keys(item)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.includes(col.key)) && (col === null || col === void 0 ? void 0 : (_col$sourceList = col.sourceList) === null || _col$sourceList === void 0 ? void 0 : _col$sourceList.length);
29650
+ }) || [];
29651
+ Array.isArray(column) && (column === null || column === void 0 ? void 0 : column.length) && column.forEach(function (element) {
29652
+ if (element === null || element === void 0 ? void 0 : element.sourceList) {
29653
+ var _element$sourceList$f;
29654
+ resultItem["".concat(element.key, "_Name")] = element === null || element === void 0 ? void 0 : (_element$sourceList$f = element.sourceList.find(function (source) {
29655
+ return source.value == item[element.key];
29656
+ })) === null || _element$sourceList$f === void 0 ? void 0 : _element$sourceList$f.text;
29657
+ }
29658
+ });
29659
+ return resultItem;
29660
+ });
29661
+ };
29662
+
29663
+ var _excluded$j = ["sorter"];
29664
+ /**
29665
+ * 删掉查询条件的qp- 和 -eq等
29666
+ * @param {object} data
29667
+ * @return {object}
29668
+ * */
29669
+ function deleteQuerySymbol(data) {
29670
+ var result = {};
29671
+ Object.keys(data).map(function (item) {
29672
+ var newKey = deleteQuerySymbolSingle(item);
29673
+ result[newKey] = data[item];
29674
+ });
29675
+ return result;
29676
+ }
29677
+ function deleteQuerySymbolSingle(key) {
29678
+ return key.replace(/(qp-|-\w+)/g, '');
29679
+ }
29680
+
29681
+ // 把{G1001F1001:123} 换成 {G1001:{F1001: 123}}
29682
+ function convertToMapByKey(data) {
29683
+ var result = {};
29684
+ Object.keys(data).map(function (item) {
29685
+ var groupCode = item.match(/G\d+/);
29686
+ var fieldCode = item.match(/F\d+/);
29687
+ if ((groupCode === null || groupCode === void 0 ? void 0 : groupCode.length) > 0 && (fieldCode === null || fieldCode === void 0 ? void 0 : fieldCode.length) > 0) {
29688
+ if (result[groupCode]) {
29689
+ result[groupCode][fieldCode] = data[item];
29690
+ } else if (!result[groupCode]) {
29691
+ result[groupCode] = _defineProperty({}, fieldCode, data[item]);
29692
+ }
29693
+ }
29694
+ });
29695
+ return result;
29696
+ }
29697
+
29698
+ /**
29699
+ * 去掉查询表格的qp-eq -in,与普通表格一样的格式
29700
+ * @param{string} prop 键
29701
+ * @param{boolean} flag 是不是查询表格
29702
+ * */
29703
+ function convertProp(prop, flag) {
29704
+ var _prop$replace, _prop$replace$replace, _prop$replace$replace2, _prop$replace$replace3;
29705
+ return flag ? prop === null || prop === void 0 ? void 0 : (_prop$replace = prop.replace(/(G\d+)/, '')) === null || _prop$replace === void 0 ? void 0 : (_prop$replace$replace = _prop$replace.replace('qp-', '')) === null || _prop$replace$replace === void 0 ? void 0 : (_prop$replace$replace2 = _prop$replace$replace.replace('-eq', '')) === null || _prop$replace$replace2 === void 0 ? void 0 : (_prop$replace$replace3 = _prop$replace$replace2.replace('-in', '')) === null || _prop$replace$replace3 === void 0 ? void 0 : _prop$replace$replace3.replace('-like', '') : prop;
29706
+ }
29707
+ // 获取元数据,是表格中列的数据来源
29708
+ function getMetaData(_x) {
29709
+ return _getMetaData.apply(this, arguments);
29710
+ }
29711
+
29712
+ // 获取数据
29713
+ function _getMetaData() {
29714
+ _getMetaData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
29715
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
29716
+ while (1) switch (_context.prev = _context.next) {
29717
+ case 0:
29718
+ return _context.abrupt("return", new Promise(function (resolve, reject) {
29719
+ request$3('/basic/entityProperty/listNoPage', {
29720
+ params: {
29721
+ 'qp-entityId-eq': id
29722
+ }
29723
+ }).then(function (res) {
29724
+ resolve(res.data);
29725
+ }).catch(function (error) {
29726
+ console.log(error, 'error');
29727
+ reject([]);
29728
+ });
29729
+ }));
29730
+ case 1:
29731
+ case "end":
29732
+ return _context.stop();
29733
+ }
29734
+ }, _callee);
29735
+ }));
29736
+ return _getMetaData.apply(this, arguments);
29737
+ }
29738
+ var remoteFetch = function remoteFetch(requestConfig, coloumns) {
29739
+ return {
29740
+ url: '/basic/function/sendRequest',
29741
+ method: 'post',
29742
+ convertParams: function convertParams(_ref) {
29743
+ var _requestConfig$method;
29744
+ var params = _ref.params;
29745
+ var sorter = params.sorter,
29746
+ paramsTemp = _objectWithoutProperties(params, _excluded$j);
29747
+ var queryParams = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, requestConfig.params), requestConfig.body), _.omit(paramsTemp, ['filters', 'current'])), (paramsTemp === null || paramsTemp === void 0 ? void 0 : paramsTemp.filters) || {}), {
29748
+ currentPage: (paramsTemp === null || paramsTemp === void 0 ? void 0 : paramsTemp.currentPage) || paramsTemp.current || 1
29749
+ });
29750
+
29751
+ // 清除值为空的
29752
+ Object.keys(queryParams).forEach(function (itemKey) {
29753
+ if (judgeIsEmpty(queryParams[itemKey])) {
29754
+ delete queryParams[itemKey];
29755
+ }
29756
+ });
29757
+ return {
29758
+ path: requestConfig.url,
29759
+ httpMethod: requestConfig === null || requestConfig === void 0 ? void 0 : (_requestConfig$method = requestConfig.method) === null || _requestConfig$method === void 0 ? void 0 : _requestConfig$method.toUpperCase(),
29760
+ serviceName: requestConfig.serviceName,
29761
+ requestBody: JSON.stringify(queryParams),
29762
+ header: handleRequestHeader().headers
29763
+ };
29764
+ },
29765
+ converter: function converter(_ref2) {
29766
+ var data = _ref2.data;
29767
+ return _objectSpread2({}, handleConvertResponse(handleList(data, coloumns), handleListToTal(data)));
29768
+ }
29769
+ };
29770
+ };
29771
+ function handleList(data, coloumns) {
29772
+ var resultList = Array.isArray(data) ? data : Array.isArray(data === null || data === void 0 ? void 0 : data.list) ? data.list : Array.isArray(data === null || data === void 0 ? void 0 : data.items) ? data.items : [];
29773
+ return formatListName(resultList, coloumns);
29774
+ }
29775
+ function handleListToTal(data) {
29776
+ return Array.isArray(data) ? data.length : data.total || data.totalCount;
29777
+ }
29778
+
29779
+ // 路径
29780
+ function convertPath(path, formData) {
29781
+ var matchedGF = path.match(/G\d+F\d+/g);
29782
+ var matchedJavaCode = path.match(/{\w+\.\w+}/g);
29783
+ var url = path;
29784
+ if (!matchedGF && !matchedJavaCode) return url;
29785
+ if (matchedGF === null || matchedGF === void 0 ? void 0 : matchedGF.length) {
29786
+ matchedGF.map(function (item) {
29787
+ var _formData$group;
29788
+ var group = item.match(/G\d+/);
29789
+ var field = item.match(/F\d+/);
29790
+ var replaceValue = (formData === null || formData === void 0 ? void 0 : (_formData$group = formData[group]) === null || _formData$group === void 0 ? void 0 : _formData$group[field]) || (formData === null || formData === void 0 ? void 0 : formData[field]);
29791
+ url = url.replace(item, replaceValue);
29792
+ });
29793
+ } else if (matchedJavaCode === null || matchedJavaCode === void 0 ? void 0 : matchedJavaCode.length) {
29794
+ matchedJavaCode.map(function (item) {
29795
+ var group, field;
29796
+ try {
29797
+ var val = item.replace(/[{}]/g, '').split('.');
29798
+ group = val[0];
29799
+ field = val[1];
29800
+ } catch (e) {}
29801
+ if (group && field) {
29802
+ var _formData$group2;
29803
+ var replaceValue = (formData === null || formData === void 0 ? void 0 : (_formData$group2 = formData[group]) === null || _formData$group2 === void 0 ? void 0 : _formData$group2[field]) || (formData === null || formData === void 0 ? void 0 : formData[field]);
29804
+ url = url.replace(item, replaceValue);
29805
+ }
29806
+ });
29807
+ }
29808
+ return url;
29809
+ }
29810
+
29811
+ // 组装数据接口请求
29812
+ function assembleRequest(customSelectorConfig, _ref3) {
29813
+ var _customSelectorConfig, _customSelectorConfig2, _customSelectorConfig3;
29814
+ var isSearchForm = _ref3.isSearchForm,
29815
+ newestFormData = _ref3.newestFormData,
29816
+ searchFormData = _ref3.searchFormData;
29817
+ var functionInfo = customSelectorConfig === null || customSelectorConfig === void 0 ? void 0 : (_customSelectorConfig = customSelectorConfig.businessFunction) === null || _customSelectorConfig === void 0 ? void 0 : (_customSelectorConfig2 = _customSelectorConfig.functionInfo) === null || _customSelectorConfig2 === void 0 ? void 0 : (_customSelectorConfig3 = _customSelectorConfig2.actionList) === null || _customSelectorConfig3 === void 0 ? void 0 : _customSelectorConfig3[0];
29818
+ var requestTemplate = functionInfo === null || functionInfo === void 0 ? void 0 : functionInfo.requestTemplate;
29819
+ if (!functionInfo || !requestTemplate) {
29820
+ return false;
29821
+ }
29822
+ var isGet = requestTemplate.method.toLowerCase() === 'get';
29823
+ var requestBodyName = isGet ? 'params' : 'data';
29824
+ var params = requestTemplate.param;
29825
+ try {
29826
+ params = JSON.parse(requestTemplate.param);
29827
+ } catch (e) {}
29828
+ var path = requestTemplate.path;
29829
+ var requestBody = isGet ? params : requestTemplate.requestBody;
29830
+ if (!isSearchForm) {
29831
+ // 非查询表格,普通表格的数据组装
29832
+ path = convertPath(requestTemplate.path, newestFormData);
29833
+ requestBody = convertBody(requestBody, newestFormData);
29834
+ } else if (isSearchForm) {
29835
+ // 查询表格数据组装,key会带有qp- 和 -eq,并且转换成map的数据格式
29836
+ var newSearchFormData = convertToMapByKey(deleteQuerySymbol(searchFormData));
29837
+ path = convertPath(requestTemplate.path, newSearchFormData);
29838
+ requestBody = convertBody(requestBody, newSearchFormData);
29839
+ }
29840
+ var requestConfig = _defineProperty(_defineProperty({
29841
+ url: path,
29842
+ method: requestTemplate.method,
29843
+ headers: requestTemplate.header
29844
+ }, requestBodyName, requestBody), "serviceName", functionInfo.serviceName || (requestTemplate === null || requestTemplate === void 0 ? void 0 : requestTemplate.serviceName));
29845
+ return requestConfig;
29846
+ }
29847
+
29848
+ // 请求体
29849
+ function convertBody(param, formData) {
29850
+ var keys = Object.keys(param || {});
29851
+ if (!keys.length) return {};
29852
+ var result = {};
29853
+ keys.map(function (key) {
29854
+ var _param$key$match, _param$key$match2;
29855
+ var matchedGF = (_param$key$match = param[key].match(/G\d+F\d+/)) === null || _param$key$match === void 0 ? void 0 : _param$key$match[0];
29856
+ var matchedJavaCode = (_param$key$match2 = param[key].match(/{\w+\.\w+}/)) === null || _param$key$match2 === void 0 ? void 0 : _param$key$match2[0];
29857
+ if (matchedGF) {
29858
+ var _formData$group3;
29859
+ var group = matchedGF.match(/G\d+/);
29860
+ var field = matchedGF.match(/F\d+/);
29861
+ // 有值才赋值 【当formData中的值key是GxxxFxxx形式时】
29862
+ if ((formData === null || formData === void 0 ? void 0 : (_formData$group3 = formData[group]) === null || _formData$group3 === void 0 ? void 0 : _formData$group3[field]) && formData[group][field] !== '') {
29863
+ if (Array.isArray(formData[group][field])) {
29864
+ result[key] = formData[group][field].join(',');
29865
+ } else {
29866
+ result[key] = formData[group][field];
29867
+ }
29868
+ }
29869
+ // 有值才赋值 【当formData中的值key是Fxxx形式时】
29870
+ if ((formData === null || formData === void 0 ? void 0 : formData[field]) && formData[field] !== '') {
29871
+ if (Array.isArray(formData[field])) {
29872
+ result[key] = formData[field].join(',');
29873
+ } else {
29874
+ result[key] = formData[field];
29875
+ }
29876
+ }
29877
+ } else if (matchedJavaCode) {
29878
+ var _formData$_group;
29879
+ var _group, _field;
29880
+ try {
29881
+ var _matchedJavaCode$repl = matchedJavaCode.replace(/[{}]/g).split('.');
29882
+ var _matchedJavaCode$repl2 = _slicedToArray(_matchedJavaCode$repl, 2);
29883
+ _group = _matchedJavaCode$repl2[0];
29884
+ _field = _matchedJavaCode$repl2[1];
29885
+ } catch (e) {}
29886
+ if ((formData === null || formData === void 0 ? void 0 : (_formData$_group = formData[_group]) === null || _formData$_group === void 0 ? void 0 : _formData$_group[_field]) && formData[_group][_field] !== '') {
29887
+ if (Array.isArray(formData[_group][_field])) {
29888
+ result[key] = formData[_group][_field].join(',');
29889
+ } else {
29890
+ result[key] = formData[_group][_field];
29891
+ }
29892
+ }
29893
+ } else {
29894
+ if (param[key] !== '') {
29895
+ result[key] = param[key];
29896
+ }
29897
+ }
29898
+ });
29899
+ return result;
29900
+ }
29901
+
29902
+ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
29903
+ var _props$ctx, _props$ctx2, _props$ctx2$form, _Object$keys, _Object$keys2, _props$ctx3, _props$customSelector3, _props$customSelector4, _props$customSelector5, _ref3, _fieldMappingItem$cod, _props$selectProps4;
29904
+ useImperativeHandle(ref, function () {
29905
+ return {
29906
+ handleOk: handleOk,
29907
+ refreshSelectSource: refreshSelectSource
29908
+ };
29909
+ });
29910
+ var prop = convertProp(props === null || props === void 0 ? void 0 : (_props$ctx = props.ctx) === null || _props$ctx === void 0 ? void 0 : _props$ctx.name, props.isSearchForm);
29911
+ var newFormData = (props === null || props === void 0 ? void 0 : (_props$ctx2 = props.ctx) === null || _props$ctx2 === void 0 ? void 0 : (_props$ctx2$form = _props$ctx2.form) === null || _props$ctx2$form === void 0 ? void 0 : _props$ctx2$form.getFieldsValue()) || {};
29912
+ var newestFormData = newFormData && ((_Object$keys = Object.keys(newFormData)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length) ? newFormData : (props === null || props === void 0 ? void 0 : props.formData) || {}; // 最新的formData,用来下面监听最新值的改变,做级联效果
29913
+ var searchFormData = newFormData && ((_Object$keys2 = Object.keys(newFormData)) === null || _Object$keys2 === void 0 ? void 0 : _Object$keys2.length) ? newFormData : (props === null || props === void 0 ? void 0 : props.formData) || {}; // 如果是表格上面的查询表单情况
29914
+ var isView = (props === null || props === void 0 ? void 0 : (_props$ctx3 = props.ctx) === null || _props$ctx3 === void 0 ? void 0 : _props$ctx3.mode) == 'view';
29915
+ var queryTableRef = useRef(null);
29916
+ var _useState = useState({}),
29917
+ _useState2 = _slicedToArray(_useState, 2),
29918
+ requestConfig = _useState2[0],
29919
+ setRequestConfig = _useState2[1];
29920
+ var _useState3 = useState({
29921
+ pages: {
29922
+ page: 1,
29923
+ limit: 20,
29924
+ total: 0
29925
+ },
29926
+ columns: [],
29927
+ fields: [],
29928
+ dataList: [],
29929
+ currentQuery: {},
29930
+ selectedLine: {}
29931
+ }),
29932
+ _useState4 = _slicedToArray(_useState3, 2),
29933
+ tableState = _useState4[0],
29934
+ setTableState = _useState4[1];
29935
+ var handleOpen = /*#__PURE__*/function () {
29936
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
29937
+ var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
29938
+ var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
29939
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
29940
+ while (1) switch (_context.prev = _context.next) {
29941
+ case 0:
29942
+ requestConfigNew = assembleRequest(props.customSelectorConfig, {
29943
+ isSearchForm: props.isSearchForm,
29944
+ newestFormData: newestFormData,
29945
+ searchFormData: searchFormData
29946
+ });
29947
+ if (requestConfigNew) {
29948
+ _context.next = 3;
29949
+ break;
29950
+ }
29951
+ return _context.abrupt("return");
29952
+ case 3:
29953
+ metaDataId = (_props$customSelector = props.customSelectorConfig) === null || _props$customSelector === void 0 ? void 0 : (_props$customSelector2 = _props$customSelector.targetMetaData) === null || _props$customSelector2 === void 0 ? void 0 : _props$customSelector2.id;
29954
+ _context.next = 6;
29955
+ return getMetaData(metaDataId);
29956
+ case 6:
29957
+ metaData = _context.sent;
29958
+ realMetaData = (metaData === null || metaData === void 0 ? void 0 : metaData.filter(function (item) {
29959
+ return (item === null || item === void 0 ? void 0 : item.inputType) != 1;
29960
+ })) || [];
29961
+ columns = realMetaData.map(function (item) {
29962
+ return getColumnItem({
29963
+ item: item,
29964
+ props: props
29965
+ });
29966
+ }); // tableState.columns = columns
29967
+ fields = realMetaData === null || realMetaData === void 0 ? void 0 : realMetaData.filter(function (item) {
29968
+ var _item$infoVo;
29969
+ return (_item$infoVo = item.infoVo) === null || _item$infoVo === void 0 ? void 0 : _item$infoVo.isQuery;
29970
+ }).map(function (item) {
29971
+ var name = "qp-".concat(item.code, "-eq");
29972
+ try {
29973
+ if (JSON.parse(item.info).isLikeQuery) {
29974
+ name = "qp-".concat(item.code, "-like");
29975
+ }
29976
+ } catch (e) {
29977
+ console.log('error', e);
29978
+ }
29979
+ return {
29980
+ name: name,
29981
+ label: item.name,
29982
+ field: 'input'
29983
+ };
29984
+ });
29985
+ setTableState(_objectSpread2(_objectSpread2({}, tableState), {}, {
29986
+ columns: columns,
29987
+ fields: fields
29988
+ }));
29989
+ setRequestConfig(requestConfigNew);
29990
+ initValue = !(props === null || props === void 0 ? void 0 : (_props$ctx4 = props.ctx) === null || _props$ctx4 === void 0 ? void 0 : _props$ctx4.form) && (props === null || props === void 0 ? void 0 : (_props$value = props.value) === null || _props$value === void 0 ? void 0 : (_props$value$map = _props$value.map) === null || _props$value$map === void 0 ? void 0 : _props$value$map.call(_props$value, function (v) {
29991
+ return v.key || v;
29992
+ })) || (props === null || props === void 0 ? void 0 : (_props$ctx5 = props.ctx) === null || _props$ctx5 === void 0 ? void 0 : (_props$ctx5$form = _props$ctx5.form) === null || _props$ctx5$form === void 0 ? void 0 : _props$ctx5$form.getFieldValue(props.id));
29993
+ if ((props === null || props === void 0 ? void 0 : (_props$selectProps = props.selectProps) === null || _props$selectProps === void 0 ? void 0 : _props$selectProps.multipleForQuery) && !isView && initValue) {
29994
+ // @ts-ignore
29995
+ queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren = queryTableRef.current) === null || _queryTableRef$curren === void 0 ? void 0 : (_queryTableRef$curren2 = _queryTableRef$curren.tableRef) === null || _queryTableRef$curren2 === void 0 ? void 0 : (_queryTableRef$curren3 = _queryTableRef$curren2.current) === null || _queryTableRef$curren3 === void 0 ? void 0 : _queryTableRef$curren3.bsSetSelectInfo(initValue);
29996
+ }
29997
+ case 14:
29998
+ case "end":
29999
+ return _context.stop();
30000
+ }
30001
+ }, _callee);
30002
+ }));
30003
+ return function handleOpen() {
30004
+ return _ref.apply(this, arguments);
30005
+ };
30006
+ }();
30007
+ var fieldMapping = ((_props$customSelector3 = props.customSelectorConfig) === null || _props$customSelector3 === void 0 ? void 0 : _props$customSelector3.fieldMapping) || [];
30008
+ var fieldMappingItem = fieldMapping.find(function (item) {
30009
+ return item.codeMappingTo === prop;
30010
+ });
30011
+ var echoLabel = (_props$customSelector4 = props.customSelectorConfig) === null || _props$customSelector4 === void 0 ? void 0 : (_props$customSelector5 = _props$customSelector4.extraData) === null || _props$customSelector5 === void 0 ? void 0 : _props$customSelector5.echoLabel;
30012
+ //初始获取下拉列表
30013
+ var fetchFieldSource = function fetchFieldSource(obj, init) {
30014
+ var _params$path;
30015
+ var url = obj.url,
30016
+ method = obj.method,
30017
+ convertParams = obj.convertParams,
30018
+ converter = obj.converter;
30019
+ var params = convertParams({
30020
+ params: _objectSpread2({
30021
+ pageSize: 20,
30022
+ currentPage: 1
30023
+ }, init)
30024
+ });
30025
+ // 容错处理
30026
+ if (!(params === null || params === void 0 ? void 0 : params.path) || (params === null || params === void 0 ? void 0 : (_params$path = params.path) === null || _params$path === void 0 ? void 0 : _params$path.indexOf('undefined')) > -1) return;
30027
+ request$2({
30028
+ url: url,
30029
+ method: method,
30030
+ params: params
30031
+ }).then(function (res) {
30032
+ var _converter = converter({
30033
+ data: res
30034
+ }),
30035
+ list = _converter.list;
30036
+ var currentField = fieldMappingItem;
30037
+ var sourceList = [];
30038
+ var codeList = [];
30039
+ var options = list.map(function (item) {
30040
+ if (currentField && echoLabel) {
30041
+ return {
30042
+ label: item[echoLabel],
30043
+ value: item[currentField.codeMappingFrom]
30044
+ };
30045
+ }
30046
+ if (echoLabel && !currentField) {
30047
+ return {
30048
+ label: item[echoLabel],
30049
+ value: item[echoLabel]
30050
+ };
30051
+ }
30052
+ return {
30053
+ label: item[currentField.codeMappingTo],
30054
+ value: item[currentField.codeMappingTo]
30055
+ };
30056
+ });
30057
+ options.forEach(function (item) {
30058
+ if (!codeList.includes(item.value)) {
30059
+ codeList.push(item.value);
30060
+ sourceList.push(item);
30061
+ }
30062
+ });
30063
+ props.setFieldSource(sourceList);
30064
+ props.setAllListData(list || []);
30065
+ });
30066
+ };
30067
+ useEffect(function () {
30068
+ if (props.visible) {
30069
+ handleOpen();
30070
+ }
30071
+ }, [props.visible]);
30072
+ var refreshSelectSource = function refreshSelectSource() {
30073
+ var init = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
30074
+ var requestConfigNew = assembleRequest(props.customSelectorConfig, {
30075
+ isSearchForm: props.isSearchForm,
30076
+ newestFormData: newestFormData,
30077
+ searchFormData: searchFormData
30078
+ });
30079
+ var obj = remoteFetch(requestConfigNew);
30080
+ //初始化请求下拉列表
30081
+ fetchFieldSource(obj, init);
30082
+ };
30083
+ useEffect(function () {
30084
+ var _props$ctx6, _props$ctx7, _props$ctx7$form;
30085
+ var isNeedBack = (props === null || props === void 0 ? void 0 : (_props$ctx6 = props.ctx) === null || _props$ctx6 === void 0 ? void 0 : _props$ctx6.mode) != 'create' || props.disabled;
30086
+ var initValue = props === null || props === void 0 ? void 0 : (_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : (_props$ctx7$form = _props$ctx7.form) === null || _props$ctx7$form === void 0 ? void 0 : _props$ctx7$form.getFieldValue(props.id);
30087
+ var formCodeKey = "".concat(fieldMappingItem === null || fieldMappingItem === void 0 ? void 0 : fieldMappingItem.codeMappingFrom);
30088
+ var initKey = Array.isArray(initValue) && (initValue === null || initValue === void 0 ? void 0 : initValue.length) > 1 ? "qp-".concat(formCodeKey, "-in") : "qp-".concat(formCodeKey, "-eq");
30089
+ var initParams = isNeedBack && formCodeKey && initValue ? _defineProperty({}, initKey, Array.isArray(initValue) ? initValue.join(',') : initValue) : {};
30090
+ refreshSelectSource(null, initParams);
30091
+ }, []);
30092
+ var remoteDataSource = useMemo(function () {
30093
+ if (Object.keys(requestConfig).length) {
30094
+ var obj = remoteFetch(requestConfig, tableState.columns);
30095
+ return obj;
30096
+ } else {
30097
+ return {};
30098
+ }
30099
+ }, [requestConfig, tableState.columns]);
30100
+ var rowKey = (_ref3 = (_fieldMappingItem$cod = fieldMappingItem === null || fieldMappingItem === void 0 ? void 0 : fieldMappingItem.codeMappingFrom) !== null && _fieldMappingItem$cod !== void 0 ? _fieldMappingItem$cod : 'id') !== null && _ref3 !== void 0 ? _ref3 : 'code';
30101
+ var handleOk = function handleOk(rowData) {
30102
+ var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$curren13, _queryTableRef$curren14, _queryTableRef$curren15;
30103
+ var setSource = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
30104
+ //多选数据处理
30105
+ if (props === null || props === void 0 ? void 0 : (_props$selectProps2 = props.selectProps) === null || _props$selectProps2 === void 0 ? void 0 : _props$selectProps2.multipleForQuery) {
30106
+ var _queryTableRef$curren4, _queryTableRef$curren5, _queryTableRef$curren6, _queryTableRef$curren7, _queryTableRef$curren8, _queryTableRef$curren9;
30107
+ // @ts-ignore
30108
+ var selectedKesys = (queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren4 = queryTableRef.current) === null || _queryTableRef$curren4 === void 0 ? void 0 : (_queryTableRef$curren5 = _queryTableRef$curren4.tableRef) === null || _queryTableRef$curren5 === void 0 ? void 0 : (_queryTableRef$curren6 = _queryTableRef$curren5.current) === null || _queryTableRef$curren6 === void 0 ? void 0 : _queryTableRef$curren6.getSelectedRowKeys()) || [];
30109
+ // @ts-ignore
30110
+ var selectedRows = (queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren7 = queryTableRef.current) === null || _queryTableRef$curren7 === void 0 ? void 0 : (_queryTableRef$curren8 = _queryTableRef$curren7.tableRef) === null || _queryTableRef$curren8 === void 0 ? void 0 : (_queryTableRef$curren9 = _queryTableRef$curren8.current) === null || _queryTableRef$curren9 === void 0 ? void 0 : _queryTableRef$curren9.getSelectedRows()) || [];
30111
+ var realSelectedRows = selectedRows;
30112
+ if (!rowData && (selectedKesys === null || selectedKesys === void 0 ? void 0 : selectedKesys.length) !== (selectedRows === null || selectedRows === void 0 ? void 0 : selectedRows.length)) {
30113
+ var _queryTableRef$curren10, _queryTableRef$curren11, _queryTableRef$curren12;
30114
+ // @ts-ignore
30115
+ var dataSource = (queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren10 = queryTableRef.current) === null || _queryTableRef$curren10 === void 0 ? void 0 : (_queryTableRef$curren11 = _queryTableRef$curren10.tableRef) === null || _queryTableRef$curren11 === void 0 ? void 0 : (_queryTableRef$curren12 = _queryTableRef$curren11.current) === null || _queryTableRef$curren12 === void 0 ? void 0 : _queryTableRef$curren12.getDataSource()) || [];
30116
+ realSelectedRows = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (s) {
30117
+ return selectedKesys.includes(s[rowKey]);
30118
+ });
30119
+ }
30120
+ //@ts-ignore
30121
+ var rowDataList = rowData ? rowData : realSelectedRows;
30122
+ var rowDataTemp = {};
30123
+ rowDataList.forEach(function (item, index) {
30124
+ Object.keys(item).forEach(function (key) {
30125
+ if (!Reflect.has(rowDataTemp, key)) {
30126
+ rowDataTemp[key] = [item[key]];
30127
+ } else {
30128
+ rowDataTemp[key].push(item[key]);
30129
+ //数组去重
30130
+ rowDataTemp[key] = _toConsumableArray(new Set(rowDataTemp[key]));
30131
+ }
30132
+ });
30133
+ });
30134
+ rowData = rowDataTemp;
30135
+ }
30136
+ var mappings = props.customSelectorConfig.fieldMapping;
30137
+ var values = {};
30138
+ //没有映射且有echoLabel的话,默认塞入一条
30139
+ if ((!mappings || Array.isArray(mappings) && !mappings.length) && ((_props$customSelector6 = props.customSelectorConfig) === null || _props$customSelector6 === void 0 ? void 0 : (_props$customSelector7 = _props$customSelector6.extraData) === null || _props$customSelector7 === void 0 ? void 0 : _props$customSelector7.echoLabel)) {
30140
+ var _props$customSelector8, _props$customSelector9;
30141
+ mappings.push({
30142
+ codeMappingFrom: (_props$customSelector8 = props.customSelectorConfig) === null || _props$customSelector8 === void 0 ? void 0 : (_props$customSelector9 = _props$customSelector8.extraData) === null || _props$customSelector9 === void 0 ? void 0 : _props$customSelector9.echoLabel,
30143
+ codeMappingTo: prop,
30144
+ uuid: ''
30145
+ });
30146
+ }
30147
+ mappings.map(function (item) {
30148
+ var _props$customSelector10, _props$customSelector11, _props$customSelector12, _props$customSelector13;
30149
+ if (((_props$customSelector10 = props.customSelectorConfig) === null || _props$customSelector10 === void 0 ? void 0 : (_props$customSelector11 = _props$customSelector10.extraData) === null || _props$customSelector11 === void 0 ? void 0 : _props$customSelector11.echoLabel) && item.codeMappingTo === prop && rowData[(_props$customSelector12 = props.customSelectorConfig) === null || _props$customSelector12 === void 0 ? void 0 : (_props$customSelector13 = _props$customSelector12.extraData) === null || _props$customSelector13 === void 0 ? void 0 : _props$customSelector13.echoLabel]) {
30150
+ var _props$customSelector14, _props$customSelector15;
30151
+ values["".concat(item.codeMappingTo, "Name")] = rowData[(_props$customSelector14 = props.customSelectorConfig) === null || _props$customSelector14 === void 0 ? void 0 : (_props$customSelector15 = _props$customSelector14.extraData) === null || _props$customSelector15 === void 0 ? void 0 : _props$customSelector15.echoLabel];
30152
+ }
30153
+ values[item.codeMappingTo] = rowData[item.codeMappingFrom];
30154
+ });
30155
+ // 表单查询项就不给其他字段赋值
30156
+ if (!props.isSearchForm) {
30157
+ Object.keys(values).map(function (key, index, list) {
30158
+ if (key.includes('Name')) {
30159
+ var valueKey = key.replace('Name', '');
30160
+ if (setSource) {
30161
+ if (Array.isArray(values[valueKey])) {
30162
+ var valueList = [];
30163
+ values[valueKey].forEach(function (item, index) {
30164
+ valueList.push({
30165
+ label: values[key][index],
30166
+ value: values[valueKey][index]
30167
+ });
30168
+ });
30169
+ props.setFieldSource(valueList);
30170
+ } else {
30171
+ props.setFieldSource([{
30172
+ label: values[key],
30173
+ value: values[valueKey]
30174
+ }]);
30175
+ }
30176
+ }
30177
+ } else {
30178
+ var _props$setFieldValue;
30179
+ props === null || props === void 0 ? void 0 : (_props$setFieldValue = props.setFieldValue) === null || _props$setFieldValue === void 0 ? void 0 : _props$setFieldValue.call(props, key, values[key]);
30180
+ }
30181
+ });
30182
+ } else {
30183
+ var _props$ctx8;
30184
+ if (setSource) {
30185
+ if (Array.isArray(values[prop])) {
30186
+ var valueList = [];
30187
+ values[prop].forEach(function (item, index) {
30188
+ valueList.push({
30189
+ label: values["".concat(prop, "Name")][index],
30190
+ value: values[prop][index]
30191
+ });
30192
+ });
30193
+ props.setFieldSource(valueList);
30194
+ } else {
30195
+ props.setFieldSource([{
30196
+ label: values["".concat(prop, "Name")],
30197
+ value: values[prop]
30198
+ }]);
30199
+ }
30200
+ }
30201
+ var fieldKey = (props === null || props === void 0 ? void 0 : (_props$ctx8 = props.ctx) === null || _props$ctx8 === void 0 ? void 0 : _props$ctx8.name) || prop;
30202
+ props.setFieldValue(fieldKey, values[prop], props.fieldSource);
30203
+ }
30204
+ props.onCancel();
30205
+ //@ts-ignore
30206
+ queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren13 = queryTableRef.current) === null || _queryTableRef$curren13 === void 0 ? void 0 : (_queryTableRef$curren14 = _queryTableRef$curren13.tableRef) === null || _queryTableRef$curren14 === void 0 ? void 0 : (_queryTableRef$curren15 = _queryTableRef$curren14.current) === null || _queryTableRef$curren15 === void 0 ? void 0 : _queryTableRef$curren15.clearRowSelection();
30207
+ };
30208
+ var config = useMemo(function () {
30209
+ var _props$selectProps3, _props$ctx9, _props$value2, _props$ctx10, _props$ctx10$form;
30210
+ var returnConfig = {
30211
+ size: 'small',
30212
+ needPageHeader: false,
30213
+ tableWrapperStyle: {},
30214
+ isHorizontally: false,
30215
+ rowSelection: (props === null || props === void 0 ? void 0 : (_props$selectProps3 = props.selectProps) === null || _props$selectProps3 === void 0 ? void 0 : _props$selectProps3.multipleForQuery) && !isView ? {
30216
+ selectedRowKeys: !(props === null || props === void 0 ? void 0 : (_props$ctx9 = props.ctx) === null || _props$ctx9 === void 0 ? void 0 : _props$ctx9.form) && (props === null || props === void 0 ? void 0 : (_props$value2 = props.value) === null || _props$value2 === void 0 ? void 0 : _props$value2.map(function (v) {
30217
+ return v.key || v;
30218
+ })) || (props === null || props === void 0 ? void 0 : (_props$ctx10 = props.ctx) === null || _props$ctx10 === void 0 ? void 0 : (_props$ctx10$form = _props$ctx10.form) === null || _props$ctx10$form === void 0 ? void 0 : _props$ctx10$form.getFieldValue(props.id))
30219
+ } : false,
30220
+ remoteDataSource: remoteDataSource,
30221
+ fields: tableState.fields,
30222
+ columns: tableState.columns,
30223
+ rowKey: rowKey,
30224
+ tableProps: !isView && {
30225
+ rowClassName: function rowClassName(record) {
30226
+ var _props$ctx11, _props$value3, _props$ctx12, _props$ctx12$form;
30227
+ return record[rowKey] == (!(props === null || props === void 0 ? void 0 : (_props$ctx11 = props.ctx) === null || _props$ctx11 === void 0 ? void 0 : _props$ctx11.form) && ((props === null || props === void 0 ? void 0 : (_props$value3 = props.value) === null || _props$value3 === void 0 ? void 0 : _props$value3.key) || (props === null || props === void 0 ? void 0 : props.value)) || (props === null || props === void 0 ? void 0 : (_props$ctx12 = props.ctx) === null || _props$ctx12 === void 0 ? void 0 : (_props$ctx12$form = _props$ctx12.form) === null || _props$ctx12$form === void 0 ? void 0 : _props$ctx12$form.getFieldValue(props.id))) ? 'tableSelectedRow' : '';
30228
+ },
30229
+ onRow: function onRow(record) {
30230
+ return {
30231
+ onDoubleClick: function onDoubleClick() {
30232
+ handleOk(record);
30233
+ } //双击
30234
+ };
30235
+ }
30236
+ } || {}
30237
+ };
30238
+ if (Object.keys(remoteDataSource).length) {
30239
+ return returnConfig;
30240
+ } else {
30241
+ return false;
30242
+ }
30243
+ }, [tableState, remoteDataSource]);
30244
+ return /*#__PURE__*/React$1.createElement(Modal, {
30245
+ title: "",
30246
+ width: 1300,
30247
+ open: props.visible,
30248
+ footer: null,
30249
+ onCancel: function onCancel() {
30250
+ props.onCancel();
30251
+ },
30252
+ destroyOnClose: true
30253
+ }, config && /*#__PURE__*/React$1.createElement(QueryTable, _objectSpread2({
30254
+ ref: queryTableRef
30255
+ }, config)), (props === null || props === void 0 ? void 0 : (_props$selectProps4 = props.selectProps) === null || _props$selectProps4 === void 0 ? void 0 : _props$selectProps4.multipleForQuery) && !isView && ( /*#__PURE__*/React$1.createElement(Row, {
30256
+ justify: "center",
30257
+ style: {
30258
+ marginBottom: 30,
30259
+ marginTop: 10
30260
+ }
30261
+ }, /*#__PURE__*/React$1.createElement(Button, {
30262
+ type: "primary",
30263
+ style: {
30264
+ marginRight: 20
30265
+ },
30266
+ onClick: function onClick() {
30267
+ return handleOk();
30268
+ }
30269
+ }, "\u63D0\u4EA4"), /*#__PURE__*/React$1.createElement(Button, {
30270
+ type: "default",
30271
+ onClick: function onClick() {
30272
+ var _queryTableRef$curren16, _queryTableRef$curren17, _queryTableRef$curren18;
30273
+ props.onCancel();
30274
+ //@ts-ignore
30275
+ queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren16 = queryTableRef.current) === null || _queryTableRef$curren16 === void 0 ? void 0 : (_queryTableRef$curren17 = _queryTableRef$curren16.tableRef) === null || _queryTableRef$curren17 === void 0 ? void 0 : (_queryTableRef$curren18 = _queryTableRef$curren17.current) === null || _queryTableRef$curren18 === void 0 ? void 0 : _queryTableRef$curren18.clearRowSelection();
30276
+ }
30277
+ }, "\u53D6\u6D88"))));
30278
+ });
30279
+
30280
+ var CustomSelector = (function (props) {
30281
+ var _props$ctx, _props$customSelector3, _props$customSelector4, _props$customSelector5, _props$selectProps2, _props$ctx4, _props$ctx5, _props$ctx6, _props$ctx6$form;
30282
+ var showType = useMemo(function () {
30283
+ var _props$customSelector, _props$customSelector2;
30284
+ return (props === null || props === void 0 ? void 0 : (_props$customSelector = props.customSelectorConfig) === null || _props$customSelector === void 0 ? void 0 : (_props$customSelector2 = _props$customSelector.extraData) === null || _props$customSelector2 === void 0 ? void 0 : _props$customSelector2.showType) || 'modalTable';
30285
+ }, [props]);
30286
+ var _useState = useState({
30287
+ visible: false,
30288
+ onShow: function onShow() {
30289
+ setModalConfig(_objectSpread2(_objectSpread2({}, modalConfig), {}, {
30290
+ visible: true
30291
+ }));
30292
+ },
30293
+ onCancel: function onCancel() {
30294
+ setModalConfig(_objectSpread2(_objectSpread2({}, modalConfig), {}, {
30295
+ visible: false
30296
+ }));
30297
+ }
30298
+ }),
30299
+ _useState2 = _slicedToArray(_useState, 2),
30300
+ modalConfig = _useState2[0],
30301
+ setModalConfig = _useState2[1];
30302
+ var _useState3 = useState([]),
30303
+ _useState4 = _slicedToArray(_useState3, 2),
30304
+ fieldSource = _useState4[0],
30305
+ setFieldSource = _useState4[1];
30306
+ var _useState5 = useState([]),
30307
+ _useState6 = _slicedToArray(_useState5, 2),
30308
+ allListData = _useState6[0],
30309
+ setAllListData = _useState6[1];
30310
+ var customRef = useRef();
30311
+ var prop = convertProp(props === null || props === void 0 ? void 0 : (_props$ctx = props.ctx) === null || _props$ctx === void 0 ? void 0 : _props$ctx.name, props.isSearchForm);
30312
+ var fieldMapping = ((_props$customSelector3 = props.customSelectorConfig) === null || _props$customSelector3 === void 0 ? void 0 : _props$customSelector3.fieldMapping) || [];
30313
+ var fieldMappingItem = fieldMapping.find(function (item) {
30314
+ return item.codeMappingTo === prop;
30315
+ });
30316
+ var echoLabel = (_props$customSelector4 = props.customSelectorConfig) === null || _props$customSelector4 === void 0 ? void 0 : (_props$customSelector5 = _props$customSelector4.extraData) === null || _props$customSelector5 === void 0 ? void 0 : _props$customSelector5.echoLabel;
30317
+ useEffect(function () {
30318
+ if (props.source && noEmptyArray(props.source)) {
30319
+ var source = (props === null || props === void 0 ? void 0 : props.source) || [];
30320
+ if ((source === null || source === void 0 ? void 0 : source[0]) === true) {
30321
+ var _customRef$current;
30322
+ //@ts-ignore
30323
+ customRef === null || customRef === void 0 ? void 0 : (_customRef$current = customRef.current) === null || _customRef$current === void 0 ? void 0 : _customRef$current.refreshSelectSource();
30324
+ } else if ((source === null || source === void 0 ? void 0 : source[0]) === false) {
30325
+ var _customRef$current2;
30326
+ //@ts-ignore
30327
+ customRef === null || customRef === void 0 ? void 0 : (_customRef$current2 = customRef.current) === null || _customRef$current2 === void 0 ? void 0 : _customRef$current2.refreshSelectSource(true);
30328
+ }
30329
+ }
30330
+ }, [props.source]);
30331
+ var setFieldValue = function setFieldValue(key, value, sourceList) {
30332
+ var _props$ctx2, _props$ctx2$form, _props$ctx2$form$setF, _props$onChange;
30333
+ props === null || props === void 0 ? void 0 : (_props$ctx2 = props.ctx) === null || _props$ctx2 === void 0 ? void 0 : (_props$ctx2$form = _props$ctx2.form) === null || _props$ctx2$form === void 0 ? void 0 : (_props$ctx2$form$setF = _props$ctx2$form.setFieldValue) === null || _props$ctx2$form$setF === void 0 ? void 0 : _props$ctx2$form$setF.call(_props$ctx2$form, key, value);
30334
+ props === null || props === void 0 ? void 0 : (_props$onChange = props.onChange) === null || _props$onChange === void 0 ? void 0 : _props$onChange.call(props, value, sourceList);
30335
+ };
30336
+ var onChange = function onChange(value) {
30337
+ if (!value) return;
30338
+ var dataItem = allListData.filter(function (item) {
30339
+ return Array.isArray(value) ? value.includes(item === null || item === void 0 ? void 0 : item[(fieldMappingItem === null || fieldMappingItem === void 0 ? void 0 : fieldMappingItem.codeMappingFrom) || echoLabel]) : (item === null || item === void 0 ? void 0 : item[(fieldMappingItem === null || fieldMappingItem === void 0 ? void 0 : fieldMappingItem.codeMappingFrom) || echoLabel]) == value;
30340
+ }) || [];
30341
+ if (showType === 'modalTable') {
30342
+ var _props$selectProps, _customRef$current3;
30343
+ var rowData = (props === null || props === void 0 ? void 0 : (_props$selectProps = props.selectProps) === null || _props$selectProps === void 0 ? void 0 : _props$selectProps.multipleForQuery) ? dataItem : (dataItem === null || dataItem === void 0 ? void 0 : dataItem[0]) || {};
30344
+ //@ts-ignore
30345
+ customRef === null || customRef === void 0 ? void 0 : (_customRef$current3 = customRef.current) === null || _customRef$current3 === void 0 ? void 0 : _customRef$current3.handleOk(rowData, false);
30346
+ } else {
30347
+ var _props$ctx3;
30348
+ setFieldValue((_props$ctx3 = props.ctx) === null || _props$ctx3 === void 0 ? void 0 : _props$ctx3.name, value, fieldSource);
30349
+ }
30350
+ };
30351
+ var multipleForQuery = props === null || props === void 0 ? void 0 : (_props$selectProps2 = props.selectProps) === null || _props$selectProps2 === void 0 ? void 0 : _props$selectProps2.multipleForQuery;
30352
+ var isView = (props === null || props === void 0 ? void 0 : (_props$ctx4 = props.ctx) === null || _props$ctx4 === void 0 ? void 0 : _props$ctx4.mode) == 'view';
30353
+ return /*#__PURE__*/React$1.createElement("div", {
30354
+ style: {
30355
+ display: 'flex'
30356
+ }
30357
+ }, /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.selectProps), {}, {
30358
+ showSearch: true,
30359
+ optionFilterProp: 'label',
30360
+ placeholder: "\u8BF7\u9009\u62E9",
30361
+ onChange: onChange,
30362
+ options: fieldSource,
30363
+ value: !(props === null || props === void 0 ? void 0 : (_props$ctx5 = props.ctx) === null || _props$ctx5 === void 0 ? void 0 : _props$ctx5.form) && (props === null || props === void 0 ? void 0 : props.value) || (props === null || props === void 0 ? void 0 : (_props$ctx6 = props.ctx) === null || _props$ctx6 === void 0 ? void 0 : (_props$ctx6$form = _props$ctx6.form) === null || _props$ctx6$form === void 0 ? void 0 : _props$ctx6$form.getFieldValue(props.id)),
30364
+ disabled: isView || props.disabled,
30365
+ mode: multipleForQuery ? 'multiple' : undefined,
30366
+ allowClear: props === null || props === void 0 ? void 0 : props.allowClear,
30367
+ onClear: function onClear() {
30368
+ var _props$ctx7;
30369
+ return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
30370
+ }
30371
+ })), showType === 'modalTable' && ( /*#__PURE__*/React$1.createElement(Button, {
30372
+ type: "primary",
30373
+ style: {
30374
+ width: '30px',
30375
+ display: 'flex',
30376
+ justifyContent: 'center',
30377
+ alignItems: 'center'
30378
+ },
30379
+ onClick: function onClick() {
30380
+ modalConfig.onShow();
30381
+ },
30382
+ disabled: props.disabled
30383
+ }, /*#__PURE__*/React$1.createElement(SearchOutlined, {
30384
+ className: "site-form-item-icon"
30385
+ }))), /*#__PURE__*/React$1.createElement(CustomSelectorModal, _objectSpread2(_objectSpread2(_objectSpread2({
30386
+ ref: customRef
30387
+ }, modalConfig), props), {}, {
30388
+ showType: showType,
30389
+ fieldSource: fieldSource,
30390
+ setFieldSource: setFieldSource,
30391
+ setFieldValue: setFieldValue,
30392
+ setAllListData: setAllListData,
30393
+ ismultiple: multipleForQuery
30394
+ })));
30395
+ });
30396
+
29384
30397
  var RangePicker = DatePicker.RangePicker;
29385
30398
  var RuleField = /*#__PURE__*/function (_Component) {
29386
30399
  function RuleField(props) {
@@ -29546,7 +30559,12 @@ var RuleField = /*#__PURE__*/function (_Component) {
29546
30559
  callback = _this$props2.callback,
29547
30560
  queryIdentify = _this$props2.queryIdentify,
29548
30561
  disabled = _this$props2.disabled,
29549
- customerWidth = _this$props2.customerWidth;
30562
+ customerWidth = _this$props2.customerWidth,
30563
+ _this$props2$itemDeta = _this$props2.itemDetail,
30564
+ itemDetail = _this$props2$itemDeta === void 0 ? {} : _this$props2$itemDeta,
30565
+ _this$props2$others = _this$props2.others,
30566
+ others = _this$props2$others === void 0 ? {} : _this$props2$others,
30567
+ propertyCode = _this$props2.propertyCode;
29550
30568
  var thresholdList = _this.state.thresholdList;
29551
30569
  var styleCommon = {
29552
30570
  width: customerWidth || '150px'
@@ -30772,10 +31790,238 @@ var RuleField = /*#__PURE__*/function (_Component) {
30772
31790
  return document.body;
30773
31791
  }
30774
31792
  }), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
30775
- selectBusinessType: "supplier2",
31793
+ selectBusinessType: "supplier2",
31794
+ selectProps: _objectSpread2({
31795
+ style: styleCommon,
31796
+ placeholder: '请选择供应商'
31797
+ }, dataInputBusinessType === 12 ? {
31798
+ mode: 'multiple',
31799
+ maxTagCount: 1
31800
+ } : {}),
31801
+ disabled: disabled,
31802
+ labelInValue: true,
31803
+ value: values[1],
31804
+ requestConfig: {
31805
+ filterInit: 'qp-code-in'
31806
+ },
31807
+ onChange: function onChange(value) {
31808
+ if (dataInputBusinessType === 12) {
31809
+ values[1] = value.map(function (i) {
31810
+ return i.key;
31811
+ });
31812
+ valueNames[1] = value.map(function (i) {
31813
+ return i.label || '';
31814
+ });
31815
+ } else {
31816
+ values[1] = [value.key];
31817
+ valueNames[1] = [value.label || ''];
31818
+ }
31819
+ callback(values, valueNames);
31820
+ },
31821
+ getPopupContainer: function getPopupContainer() {
31822
+ return document.body;
31823
+ }
31824
+ }));
31825
+ } else {
31826
+ var _values7;
31827
+ var _currentValue6 = dataInputBusinessType === 12 ? ((_values7 = values) === null || _values7 === void 0 ? void 0 : _values7.map(function (s, vIndex) {
31828
+ return {
31829
+ key: s,
31830
+ label: valueNames[vIndex]
31831
+ };
31832
+ })) || [] : values[0] && {
31833
+ key: values[0],
31834
+ label: valueNames[0]
31835
+ } || {};
31836
+ return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
31837
+ selectBusinessType: "supplier2",
31838
+ selectProps: _objectSpread2({
31839
+ style: styleCommon,
31840
+ placeholder: '请选择供应商'
31841
+ }, dataInputBusinessType === 12 ? {
31842
+ mode: 'multiple',
31843
+ maxTagCount: 1
31844
+ } : {}),
31845
+ disabled: disabled,
31846
+ labelInValue: true,
31847
+ value: _currentValue6,
31848
+ requestConfig: {
31849
+ filterInit: 'qp-code-in'
31850
+ },
31851
+ onChange: function onChange(value) {
31852
+ if (dataInputBusinessType === 12) {
31853
+ values = value.map(function (i) {
31854
+ return i.key;
31855
+ }) || [];
31856
+ valueNames = value.map(function (i) {
31857
+ return i.label || '';
31858
+ }) || [];
31859
+ } else {
31860
+ values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
31861
+ valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
31862
+ }
31863
+ callback(values, valueNames);
31864
+ },
31865
+ getPopupContainer: function getPopupContainer() {
31866
+ return document.body;
31867
+ }
31868
+ });
31869
+ }
31870
+ }
31871
+ // 客户选择器
31872
+ if (dataChoiceBusinessType == 250) {
31873
+ if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
31874
+ return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
31875
+ selectBusinessType: "customer2",
31876
+ selectProps: _objectSpread2({
31877
+ style: styleCommon,
31878
+ placeholder: '请选择客户'
31879
+ }, dataInputBusinessType === 12 ? {
31880
+ mode: 'multiple',
31881
+ maxTagCount: 1
31882
+ } : {}),
31883
+ disabled: disabled,
31884
+ labelInValue: true,
31885
+ value: values[0],
31886
+ requestConfig: {
31887
+ filterInit: 'qp-code-in'
31888
+ },
31889
+ onChange: function onChange(value) {
31890
+ if (dataInputBusinessType === 12) {
31891
+ values[0] = value.map(function (i) {
31892
+ return i.key;
31893
+ });
31894
+ valueNames[0] = value.map(function (i) {
31895
+ return i.label || '';
31896
+ });
31897
+ } else {
31898
+ values[0] = [value.key];
31899
+ valueNames[0] = [value.label || ''];
31900
+ }
31901
+ callback(values, valueNames);
31902
+ },
31903
+ getPopupContainer: function getPopupContainer() {
31904
+ return document.body;
31905
+ }
31906
+ }), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
31907
+ selectBusinessType: "customer2",
31908
+ selectProps: _objectSpread2({
31909
+ style: styleCommon,
31910
+ placeholder: '请选择客户'
31911
+ }, dataInputBusinessType === 12 ? {
31912
+ mode: 'multiple',
31913
+ maxTagCount: 1
31914
+ } : {}),
31915
+ disabled: disabled,
31916
+ labelInValue: true,
31917
+ value: values[1],
31918
+ requestConfig: {
31919
+ filterInit: 'qp-code-in'
31920
+ },
31921
+ onChange: function onChange(value) {
31922
+ if (dataInputBusinessType === 12) {
31923
+ values[1] = value.map(function (i) {
31924
+ return i.key;
31925
+ });
31926
+ valueNames[1] = value.map(function (i) {
31927
+ return i.label || '';
31928
+ });
31929
+ } else {
31930
+ values[1] = [value.key];
31931
+ valueNames[1] = [value.label || ''];
31932
+ }
31933
+ callback(values, valueNames);
31934
+ },
31935
+ getPopupContainer: function getPopupContainer() {
31936
+ return document.body;
31937
+ }
31938
+ }));
31939
+ } else {
31940
+ var _values8;
31941
+ var _currentValue7 = dataInputBusinessType === 12 ? ((_values8 = values) === null || _values8 === void 0 ? void 0 : _values8.map(function (s, vIndex) {
31942
+ return {
31943
+ key: s,
31944
+ label: valueNames[vIndex]
31945
+ };
31946
+ })) || [] : values[0] && {
31947
+ key: values[0],
31948
+ label: valueNames[0]
31949
+ } || {};
31950
+ return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
31951
+ selectBusinessType: "customer2",
31952
+ selectProps: _objectSpread2({
31953
+ style: styleCommon,
31954
+ placeholder: '请选择客户'
31955
+ }, dataInputBusinessType === 12 ? {
31956
+ mode: 'multiple',
31957
+ maxTagCount: 1
31958
+ } : {}),
31959
+ disabled: disabled,
31960
+ labelInValue: true,
31961
+ value: _currentValue7,
31962
+ requestConfig: {
31963
+ filterInit: 'qp-code-in'
31964
+ },
31965
+ onChange: function onChange(value) {
31966
+ if (dataInputBusinessType === 12) {
31967
+ values = value.map(function (i) {
31968
+ return i.key;
31969
+ }) || [];
31970
+ valueNames = value.map(function (i) {
31971
+ return i.label || '';
31972
+ }) || [];
31973
+ } else {
31974
+ values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
31975
+ valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
31976
+ }
31977
+ callback(values, valueNames);
31978
+ },
31979
+ getPopupContainer: function getPopupContainer() {
31980
+ return document.body;
31981
+ }
31982
+ });
31983
+ }
31984
+ }
31985
+ // 店铺选择器
31986
+ if (dataChoiceBusinessType == 260) {
31987
+ if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
31988
+ return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
31989
+ selectBusinessType: "shopFile2",
31990
+ selectProps: _objectSpread2({
31991
+ style: styleCommon,
31992
+ placeholder: '请选择店铺'
31993
+ }, dataInputBusinessType === 12 ? {
31994
+ mode: 'multiple',
31995
+ maxTagCount: 1
31996
+ } : {}),
31997
+ disabled: disabled,
31998
+ labelInValue: true,
31999
+ value: values[0],
32000
+ requestConfig: {
32001
+ filterInit: 'qp-code-in'
32002
+ },
32003
+ onChange: function onChange(value) {
32004
+ if (dataInputBusinessType === 12) {
32005
+ values[0] = value.map(function (i) {
32006
+ return i.key;
32007
+ });
32008
+ valueNames[0] = value.map(function (i) {
32009
+ return i.label || '';
32010
+ });
32011
+ } else {
32012
+ values[0] = [value.key];
32013
+ valueNames[0] = [value.label || ''];
32014
+ }
32015
+ callback(values, valueNames);
32016
+ },
32017
+ getPopupContainer: function getPopupContainer() {
32018
+ return document.body;
32019
+ }
32020
+ }), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
32021
+ selectBusinessType: "shopFile2",
30776
32022
  selectProps: _objectSpread2({
30777
32023
  style: styleCommon,
30778
- placeholder: '请选择供应商'
32024
+ placeholder: '请选择店铺'
30779
32025
  }, dataInputBusinessType === 12 ? {
30780
32026
  mode: 'multiple',
30781
32027
  maxTagCount: 1
@@ -30805,8 +32051,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
30805
32051
  }
30806
32052
  }));
30807
32053
  } else {
30808
- var _values7;
30809
- var _currentValue6 = dataInputBusinessType === 12 ? ((_values7 = values) === null || _values7 === void 0 ? void 0 : _values7.map(function (s, vIndex) {
32054
+ var _values9;
32055
+ var _currentValue8 = dataInputBusinessType === 12 ? ((_values9 = values) === null || _values9 === void 0 ? void 0 : _values9.map(function (s, vIndex) {
30810
32056
  return {
30811
32057
  key: s,
30812
32058
  label: valueNames[vIndex]
@@ -30816,17 +32062,17 @@ var RuleField = /*#__PURE__*/function (_Component) {
30816
32062
  label: valueNames[0]
30817
32063
  } || {};
30818
32064
  return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
30819
- selectBusinessType: "supplier2",
32065
+ selectBusinessType: "shopFile2",
30820
32066
  selectProps: _objectSpread2({
30821
32067
  style: styleCommon,
30822
- placeholder: '请选择供应商'
32068
+ placeholder: '请选择店铺'
30823
32069
  }, dataInputBusinessType === 12 ? {
30824
32070
  mode: 'multiple',
30825
32071
  maxTagCount: 1
30826
32072
  } : {}),
30827
32073
  disabled: disabled,
30828
32074
  labelInValue: true,
30829
- value: _currentValue6,
32075
+ value: _currentValue8,
30830
32076
  requestConfig: {
30831
32077
  filterInit: 'qp-code-in'
30832
32078
  },
@@ -30850,14 +32096,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
30850
32096
  });
30851
32097
  }
30852
32098
  }
30853
- // 客户选择器
30854
- if (dataChoiceBusinessType == 250) {
32099
+ // 员工选择器
32100
+ if (dataChoiceBusinessType == 270) {
30855
32101
  if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
30856
32102
  return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
30857
- selectBusinessType: "customer2",
32103
+ selectBusinessType: "employee2",
30858
32104
  selectProps: _objectSpread2({
30859
32105
  style: styleCommon,
30860
- placeholder: '请选择客户'
32106
+ placeholder: '请选择员工'
30861
32107
  }, dataInputBusinessType === 12 ? {
30862
32108
  mode: 'multiple',
30863
32109
  maxTagCount: 1
@@ -30866,7 +32112,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
30866
32112
  labelInValue: true,
30867
32113
  value: values[0],
30868
32114
  requestConfig: {
30869
- filterInit: 'qp-code-in'
32115
+ filterInit: 'qp-id-in'
30870
32116
  },
30871
32117
  onChange: function onChange(value) {
30872
32118
  if (dataInputBusinessType === 12) {
@@ -30886,10 +32132,10 @@ var RuleField = /*#__PURE__*/function (_Component) {
30886
32132
  return document.body;
30887
32133
  }
30888
32134
  }), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
30889
- selectBusinessType: "customer2",
32135
+ selectBusinessType: "employee2",
30890
32136
  selectProps: _objectSpread2({
30891
32137
  style: styleCommon,
30892
- placeholder: '请选择客户'
32138
+ placeholder: '请选择员工'
30893
32139
  }, dataInputBusinessType === 12 ? {
30894
32140
  mode: 'multiple',
30895
32141
  maxTagCount: 1
@@ -30898,7 +32144,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
30898
32144
  labelInValue: true,
30899
32145
  value: values[1],
30900
32146
  requestConfig: {
30901
- filterInit: 'qp-code-in'
32147
+ filterInit: 'qp-id-in'
30902
32148
  },
30903
32149
  onChange: function onChange(value) {
30904
32150
  if (dataInputBusinessType === 12) {
@@ -30919,8 +32165,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
30919
32165
  }
30920
32166
  }));
30921
32167
  } else {
30922
- var _values8;
30923
- var _currentValue7 = dataInputBusinessType === 12 ? ((_values8 = values) === null || _values8 === void 0 ? void 0 : _values8.map(function (s, vIndex) {
32168
+ var _values10;
32169
+ var _currentValue9 = dataInputBusinessType === 12 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
30924
32170
  return {
30925
32171
  key: s,
30926
32172
  label: valueNames[vIndex]
@@ -30930,19 +32176,19 @@ var RuleField = /*#__PURE__*/function (_Component) {
30930
32176
  label: valueNames[0]
30931
32177
  } || {};
30932
32178
  return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
30933
- selectBusinessType: "customer2",
32179
+ selectBusinessType: "employee2",
30934
32180
  selectProps: _objectSpread2({
30935
32181
  style: styleCommon,
30936
- placeholder: '请选择客户'
32182
+ placeholder: '请选择员工'
30937
32183
  }, dataInputBusinessType === 12 ? {
30938
32184
  mode: 'multiple',
30939
32185
  maxTagCount: 1
30940
32186
  } : {}),
30941
32187
  disabled: disabled,
30942
32188
  labelInValue: true,
30943
- value: _currentValue7,
32189
+ value: _currentValue9,
30944
32190
  requestConfig: {
30945
- filterInit: 'qp-code-in'
32191
+ filterInit: 'qp-id-in'
30946
32192
  },
30947
32193
  onChange: function onChange(value) {
30948
32194
  if (dataInputBusinessType === 12) {
@@ -30964,24 +32210,17 @@ var RuleField = /*#__PURE__*/function (_Component) {
30964
32210
  });
30965
32211
  }
30966
32212
  }
30967
- // 店铺选择器
30968
- if (dataChoiceBusinessType == 260) {
32213
+ // 库存组织选择器
32214
+ if (dataChoiceBusinessType == 280) {
30969
32215
  if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
30970
- return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
30971
- selectBusinessType: "shopFile2",
30972
- selectProps: _objectSpread2({
30973
- style: styleCommon,
30974
- placeholder: '请选择店铺'
30975
- }, dataInputBusinessType === 12 ? {
30976
- mode: 'multiple',
30977
- maxTagCount: 1
30978
- } : {}),
32216
+ return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
30979
32217
  disabled: disabled,
32218
+ treeCheckable: dataInputBusinessType === 12,
32219
+ businessType: "stock-organization",
30980
32220
  labelInValue: true,
30981
- value: values[0],
30982
- requestConfig: {
30983
- filterInit: 'qp-code-in'
30984
- },
32221
+ value: dataInputBusinessType === 12 ? values : values[0],
32222
+ style: styleCommon,
32223
+ treeCheckStrictly: true,
30985
32224
  onChange: function onChange(value) {
30986
32225
  if (dataInputBusinessType === 12) {
30987
32226
  values[0] = value.map(function (i) {
@@ -30999,21 +32238,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
30999
32238
  getPopupContainer: function getPopupContainer() {
31000
32239
  return document.body;
31001
32240
  }
31002
- }), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
31003
- selectBusinessType: "shopFile2",
31004
- selectProps: _objectSpread2({
31005
- style: styleCommon,
31006
- placeholder: '请选择店铺'
31007
- }, dataInputBusinessType === 12 ? {
31008
- mode: 'multiple',
31009
- maxTagCount: 1
31010
- } : {}),
32241
+ }), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
31011
32242
  disabled: disabled,
32243
+ treeCheckable: dataInputBusinessType === 12,
32244
+ businessType: "stock-organization",
31012
32245
  labelInValue: true,
31013
- value: values[1],
31014
- requestConfig: {
31015
- filterInit: 'qp-code-in'
31016
- },
32246
+ value: dataInputBusinessType === 12 ? values : values[0],
32247
+ style: styleCommon,
32248
+ treeCheckStrictly: true,
31017
32249
  onChange: function onChange(value) {
31018
32250
  if (dataInputBusinessType === 12) {
31019
32251
  values[1] = value.map(function (i) {
@@ -31033,31 +32265,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
31033
32265
  }
31034
32266
  }));
31035
32267
  } else {
31036
- var _values9;
31037
- var _currentValue8 = dataInputBusinessType === 12 ? ((_values9 = values) === null || _values9 === void 0 ? void 0 : _values9.map(function (s, vIndex) {
31038
- return {
31039
- key: s,
31040
- label: valueNames[vIndex]
31041
- };
31042
- })) || [] : values[0] && {
31043
- key: values[0],
31044
- label: valueNames[0]
31045
- } || {};
31046
- return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
31047
- selectBusinessType: "shopFile2",
31048
- selectProps: _objectSpread2({
31049
- style: styleCommon,
31050
- placeholder: '请选择店铺'
31051
- }, dataInputBusinessType === 12 ? {
31052
- mode: 'multiple',
31053
- maxTagCount: 1
31054
- } : {}),
32268
+ return /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
31055
32269
  disabled: disabled,
32270
+ treeCheckable: dataInputBusinessType === 12,
32271
+ businessType: "stock-organization",
31056
32272
  labelInValue: true,
31057
- value: _currentValue8,
31058
- requestConfig: {
31059
- filterInit: 'qp-code-in'
31060
- },
32273
+ value: dataInputBusinessType === 12 ? values : values[0],
32274
+ style: styleCommon,
32275
+ treeCheckStrictly: true,
31061
32276
  onChange: function onChange(value) {
31062
32277
  if (dataInputBusinessType === 12) {
31063
32278
  values = value.map(function (i) {
@@ -31078,24 +32293,16 @@ var RuleField = /*#__PURE__*/function (_Component) {
31078
32293
  });
31079
32294
  }
31080
32295
  }
31081
- // 员工选择器
31082
- if (dataChoiceBusinessType == 270) {
32296
+ // 结算组织选择器
32297
+ if (dataChoiceBusinessType == 290) {
31083
32298
  if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
31084
- return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
31085
- selectBusinessType: "employee2",
31086
- selectProps: _objectSpread2({
31087
- style: styleCommon,
31088
- placeholder: '请选择员工'
31089
- }, dataInputBusinessType === 12 ? {
31090
- mode: 'multiple',
31091
- maxTagCount: 1
31092
- } : {}),
32299
+ return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
31093
32300
  disabled: disabled,
32301
+ treeCheckable: dataInputBusinessType === 12,
32302
+ businessType: "settle-organization",
31094
32303
  labelInValue: true,
31095
32304
  value: values[0],
31096
- requestConfig: {
31097
- filterInit: 'qp-id-in'
31098
- },
32305
+ style: styleCommon,
31099
32306
  onChange: function onChange(value) {
31100
32307
  if (dataInputBusinessType === 12) {
31101
32308
  values[0] = value.map(function (i) {
@@ -31113,21 +32320,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
31113
32320
  getPopupContainer: function getPopupContainer() {
31114
32321
  return document.body;
31115
32322
  }
31116
- }), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
31117
- selectBusinessType: "employee2",
31118
- selectProps: _objectSpread2({
31119
- style: styleCommon,
31120
- placeholder: '请选择员工'
31121
- }, dataInputBusinessType === 12 ? {
31122
- mode: 'multiple',
31123
- maxTagCount: 1
31124
- } : {}),
32323
+ }), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
31125
32324
  disabled: disabled,
32325
+ treeCheckable: dataInputBusinessType === 12,
32326
+ businessType: "settle-organization",
31126
32327
  labelInValue: true,
31127
- value: values[1],
31128
- requestConfig: {
31129
- filterInit: 'qp-id-in'
31130
- },
32328
+ value: values[0],
32329
+ style: styleCommon,
31131
32330
  onChange: function onChange(value) {
31132
32331
  if (dataInputBusinessType === 12) {
31133
32332
  values[1] = value.map(function (i) {
@@ -31147,31 +32346,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
31147
32346
  }
31148
32347
  }));
31149
32348
  } else {
31150
- var _values10;
31151
- var _currentValue9 = dataInputBusinessType === 12 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
31152
- return {
31153
- key: s,
31154
- label: valueNames[vIndex]
31155
- };
31156
- })) || [] : values[0] && {
31157
- key: values[0],
31158
- label: valueNames[0]
31159
- } || {};
31160
- return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
31161
- selectBusinessType: "employee2",
31162
- selectProps: _objectSpread2({
31163
- style: styleCommon,
31164
- placeholder: '请选择员工'
31165
- }, dataInputBusinessType === 12 ? {
31166
- mode: 'multiple',
31167
- maxTagCount: 1
31168
- } : {}),
32349
+ return /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
31169
32350
  disabled: disabled,
32351
+ treeCheckable: dataInputBusinessType === 12,
32352
+ businessType: "settle-organization",
31170
32353
  labelInValue: true,
31171
- value: _currentValue9,
31172
- requestConfig: {
31173
- filterInit: 'qp-id-in'
31174
- },
32354
+ value: values[0],
32355
+ style: styleCommon,
31175
32356
  onChange: function onChange(value) {
31176
32357
  if (dataInputBusinessType === 12) {
31177
32358
  values = value.map(function (i) {
@@ -31192,17 +32373,24 @@ var RuleField = /*#__PURE__*/function (_Component) {
31192
32373
  });
31193
32374
  }
31194
32375
  }
31195
- // 库存组织选择器
31196
- if (dataChoiceBusinessType == 280) {
32376
+ // 配送方式选择器
32377
+ if (dataChoiceBusinessType == 310) {
31197
32378
  if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
31198
- return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
32379
+ return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
32380
+ selectBusinessType: "deliveryMode",
32381
+ selectProps: _objectSpread2({
32382
+ style: styleCommon,
32383
+ placeholder: '请选择配送方式'
32384
+ }, dataInputBusinessType === 12 ? {
32385
+ mode: 'multiple',
32386
+ maxTagCount: 1
32387
+ } : {}),
31199
32388
  disabled: disabled,
31200
- treeCheckable: dataInputBusinessType === 12,
31201
- businessType: "stock-organization",
31202
32389
  labelInValue: true,
31203
- value: dataInputBusinessType === 12 ? values : values[0],
31204
- style: styleCommon,
31205
- treeCheckStrictly: true,
32390
+ value: values[0],
32391
+ requestConfig: {
32392
+ filterInit: 'qp-code-in'
32393
+ },
31206
32394
  onChange: function onChange(value) {
31207
32395
  if (dataInputBusinessType === 12) {
31208
32396
  values[0] = value.map(function (i) {
@@ -31220,14 +32408,21 @@ var RuleField = /*#__PURE__*/function (_Component) {
31220
32408
  getPopupContainer: function getPopupContainer() {
31221
32409
  return document.body;
31222
32410
  }
31223
- }), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
32411
+ }), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
32412
+ selectBusinessType: "deliveryMode",
32413
+ selectProps: _objectSpread2({
32414
+ style: styleCommon,
32415
+ placeholder: '请选择配送方式'
32416
+ }, dataInputBusinessType === 12 ? {
32417
+ mode: 'multiple',
32418
+ maxTagCount: 1
32419
+ } : {}),
31224
32420
  disabled: disabled,
31225
- treeCheckable: dataInputBusinessType === 12,
31226
- businessType: "stock-organization",
31227
32421
  labelInValue: true,
31228
- value: dataInputBusinessType === 12 ? values : values[0],
31229
- style: styleCommon,
31230
- treeCheckStrictly: true,
32422
+ value: values[1],
32423
+ requestConfig: {
32424
+ filterInit: 'qp-code-in'
32425
+ },
31231
32426
  onChange: function onChange(value) {
31232
32427
  if (dataInputBusinessType === 12) {
31233
32428
  values[1] = value.map(function (i) {
@@ -31247,14 +32442,31 @@ var RuleField = /*#__PURE__*/function (_Component) {
31247
32442
  }
31248
32443
  }));
31249
32444
  } else {
31250
- return /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
32445
+ var _values11;
32446
+ var _currentValue10 = dataInputBusinessType === 12 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
32447
+ return {
32448
+ key: s,
32449
+ label: valueNames[vIndex]
32450
+ };
32451
+ })) || [] : values[0] && {
32452
+ key: values[0],
32453
+ label: valueNames[0]
32454
+ } || {};
32455
+ return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
32456
+ selectBusinessType: "deliveryMode",
32457
+ selectProps: _objectSpread2({
32458
+ style: styleCommon,
32459
+ placeholder: '请选择配送方式'
32460
+ }, dataInputBusinessType === 12 ? {
32461
+ mode: 'multiple',
32462
+ maxTagCount: 1
32463
+ } : {}),
31251
32464
  disabled: disabled,
31252
- treeCheckable: dataInputBusinessType === 12,
31253
- businessType: "stock-organization",
31254
32465
  labelInValue: true,
31255
- value: dataInputBusinessType === 12 ? values : values[0],
31256
- style: styleCommon,
31257
- treeCheckStrictly: true,
32466
+ value: _currentValue10,
32467
+ requestConfig: {
32468
+ filterInit: 'qp-code-in'
32469
+ },
31258
32470
  onChange: function onChange(value) {
31259
32471
  if (dataInputBusinessType === 12) {
31260
32472
  values = value.map(function (i) {
@@ -31275,16 +32487,24 @@ var RuleField = /*#__PURE__*/function (_Component) {
31275
32487
  });
31276
32488
  }
31277
32489
  }
31278
- // 结算组织选择器
31279
- if (dataChoiceBusinessType == 290) {
32490
+ // 角色选择器
32491
+ if (dataChoiceBusinessType == 360) {
31280
32492
  if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
31281
- return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
32493
+ return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
32494
+ selectBusinessType: "role",
32495
+ selectProps: _objectSpread2({
32496
+ style: styleCommon,
32497
+ placeholder: '请选择角色'
32498
+ }, dataInputBusinessType === 12 ? {
32499
+ mode: 'multiple',
32500
+ maxTagCount: 1
32501
+ } : {}),
31282
32502
  disabled: disabled,
31283
- treeCheckable: dataInputBusinessType === 12,
31284
- businessType: "settle-organization",
31285
32503
  labelInValue: true,
31286
32504
  value: values[0],
31287
- style: styleCommon,
32505
+ requestConfig: {
32506
+ filterInit: 'qp-code-in'
32507
+ },
31288
32508
  onChange: function onChange(value) {
31289
32509
  if (dataInputBusinessType === 12) {
31290
32510
  values[0] = value.map(function (i) {
@@ -31302,13 +32522,21 @@ var RuleField = /*#__PURE__*/function (_Component) {
31302
32522
  getPopupContainer: function getPopupContainer() {
31303
32523
  return document.body;
31304
32524
  }
31305
- }), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
32525
+ }), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
32526
+ selectBusinessType: "role",
32527
+ selectProps: _objectSpread2({
32528
+ style: styleCommon,
32529
+ placeholder: '请选择角色'
32530
+ }, dataInputBusinessType === 12 ? {
32531
+ mode: 'multiple',
32532
+ maxTagCount: 1
32533
+ } : {}),
31306
32534
  disabled: disabled,
31307
- treeCheckable: dataInputBusinessType === 12,
31308
- businessType: "settle-organization",
31309
32535
  labelInValue: true,
31310
- value: values[0],
31311
- style: styleCommon,
32536
+ value: values[1],
32537
+ requestConfig: {
32538
+ filterInit: 'qp-code-in'
32539
+ },
31312
32540
  onChange: function onChange(value) {
31313
32541
  if (dataInputBusinessType === 12) {
31314
32542
  values[1] = value.map(function (i) {
@@ -31328,13 +32556,31 @@ var RuleField = /*#__PURE__*/function (_Component) {
31328
32556
  }
31329
32557
  }));
31330
32558
  } else {
31331
- return /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
32559
+ var _values12;
32560
+ var _currentValue11 = dataInputBusinessType === 12 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
32561
+ return {
32562
+ key: s,
32563
+ label: valueNames[vIndex]
32564
+ };
32565
+ })) || [] : values[0] && {
32566
+ key: values[0],
32567
+ label: valueNames[0]
32568
+ } || {};
32569
+ return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
32570
+ selectBusinessType: "role",
32571
+ selectProps: _objectSpread2({
32572
+ style: styleCommon,
32573
+ placeholder: '请选择角色'
32574
+ }, dataInputBusinessType === 12 ? {
32575
+ mode: 'multiple',
32576
+ maxTagCount: 1
32577
+ } : {}),
31332
32578
  disabled: disabled,
31333
- treeCheckable: dataInputBusinessType === 12,
31334
- businessType: "settle-organization",
31335
32579
  labelInValue: true,
31336
- value: values[0],
31337
- style: styleCommon,
32580
+ value: _currentValue11,
32581
+ requestConfig: {
32582
+ filterInit: 'qp-code-in'
32583
+ },
31338
32584
  onChange: function onChange(value) {
31339
32585
  if (dataInputBusinessType === 12) {
31340
32586
  values = value.map(function (i) {
@@ -31355,14 +32601,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
31355
32601
  });
31356
32602
  }
31357
32603
  }
31358
- // 配送方式选择器
31359
- if (dataChoiceBusinessType == 310) {
32604
+ // 品牌选择器
32605
+ if (dataChoiceBusinessType == 410) {
31360
32606
  if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
31361
32607
  return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
31362
- selectBusinessType: "deliveryMode",
32608
+ selectBusinessType: "brand",
31363
32609
  selectProps: _objectSpread2({
31364
32610
  style: styleCommon,
31365
- placeholder: '请选择配送方式'
32611
+ placeholder: '请选择品牌'
31366
32612
  }, dataInputBusinessType === 12 ? {
31367
32613
  mode: 'multiple',
31368
32614
  maxTagCount: 1
@@ -31371,7 +32617,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
31371
32617
  labelInValue: true,
31372
32618
  value: values[0],
31373
32619
  requestConfig: {
31374
- filterInit: 'qp-code-in'
32620
+ filterInit: 'qp-brandCode-in'
31375
32621
  },
31376
32622
  onChange: function onChange(value) {
31377
32623
  if (dataInputBusinessType === 12) {
@@ -31391,10 +32637,10 @@ var RuleField = /*#__PURE__*/function (_Component) {
31391
32637
  return document.body;
31392
32638
  }
31393
32639
  }), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
31394
- selectBusinessType: "deliveryMode",
32640
+ selectBusinessType: "brand",
31395
32641
  selectProps: _objectSpread2({
31396
32642
  style: styleCommon,
31397
- placeholder: '请选择配送方式'
32643
+ placeholder: '请选择品牌'
31398
32644
  }, dataInputBusinessType === 12 ? {
31399
32645
  mode: 'multiple',
31400
32646
  maxTagCount: 1
@@ -31403,7 +32649,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
31403
32649
  labelInValue: true,
31404
32650
  value: values[1],
31405
32651
  requestConfig: {
31406
- filterInit: 'qp-code-in'
32652
+ filterInit: 'qp-brandCode-in'
31407
32653
  },
31408
32654
  onChange: function onChange(value) {
31409
32655
  if (dataInputBusinessType === 12) {
@@ -31424,8 +32670,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
31424
32670
  }
31425
32671
  }));
31426
32672
  } else {
31427
- var _values11;
31428
- var _currentValue10 = dataInputBusinessType === 12 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
32673
+ var _values13;
32674
+ var _currentValue12 = dataInputBusinessType === 12 ? ((_values13 = values) === null || _values13 === void 0 ? void 0 : _values13.map(function (s, vIndex) {
31429
32675
  return {
31430
32676
  key: s,
31431
32677
  label: valueNames[vIndex]
@@ -31435,19 +32681,19 @@ var RuleField = /*#__PURE__*/function (_Component) {
31435
32681
  label: valueNames[0]
31436
32682
  } || {};
31437
32683
  return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
31438
- selectBusinessType: "deliveryMode",
32684
+ selectBusinessType: "brand",
31439
32685
  selectProps: _objectSpread2({
31440
32686
  style: styleCommon,
31441
- placeholder: '请选择配送方式'
32687
+ placeholder: '请选择品牌'
31442
32688
  }, dataInputBusinessType === 12 ? {
31443
32689
  mode: 'multiple',
31444
32690
  maxTagCount: 1
31445
32691
  } : {}),
31446
32692
  disabled: disabled,
31447
32693
  labelInValue: true,
31448
- value: _currentValue10,
32694
+ value: _currentValue12,
31449
32695
  requestConfig: {
31450
- filterInit: 'qp-code-in'
32696
+ filterInit: 'qp-brandCode-in'
31451
32697
  },
31452
32698
  onChange: function onChange(value) {
31453
32699
  if (dataInputBusinessType === 12) {
@@ -31469,24 +32715,16 @@ var RuleField = /*#__PURE__*/function (_Component) {
31469
32715
  });
31470
32716
  }
31471
32717
  }
31472
- // 角色选择器
31473
- if (dataChoiceBusinessType == 360) {
32718
+ // 类目选择器
32719
+ if (dataChoiceBusinessType == 420) {
31474
32720
  if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
31475
- return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
31476
- selectBusinessType: "role",
31477
- selectProps: _objectSpread2({
31478
- style: styleCommon,
31479
- placeholder: '请选择角色'
31480
- }, dataInputBusinessType === 12 ? {
31481
- mode: 'multiple',
31482
- maxTagCount: 1
31483
- } : {}),
32721
+ return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
31484
32722
  disabled: disabled,
32723
+ treeCheckable: dataInputBusinessType === 12,
32724
+ businessType: "background-category",
31485
32725
  labelInValue: true,
31486
32726
  value: values[0],
31487
- requestConfig: {
31488
- filterInit: 'qp-code-in'
31489
- },
32727
+ style: styleCommon,
31490
32728
  onChange: function onChange(value) {
31491
32729
  if (dataInputBusinessType === 12) {
31492
32730
  values[0] = value.map(function (i) {
@@ -31504,21 +32742,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
31504
32742
  getPopupContainer: function getPopupContainer() {
31505
32743
  return document.body;
31506
32744
  }
31507
- }), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
31508
- selectBusinessType: "role",
31509
- selectProps: _objectSpread2({
31510
- style: styleCommon,
31511
- placeholder: '请选择角色'
31512
- }, dataInputBusinessType === 12 ? {
31513
- mode: 'multiple',
31514
- maxTagCount: 1
31515
- } : {}),
32745
+ }), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
31516
32746
  disabled: disabled,
32747
+ treeCheckable: dataInputBusinessType === 12,
32748
+ businessType: "background-category",
31517
32749
  labelInValue: true,
31518
- value: values[1],
31519
- requestConfig: {
31520
- filterInit: 'qp-code-in'
31521
- },
32750
+ value: values[0],
32751
+ style: styleCommon,
31522
32752
  onChange: function onChange(value) {
31523
32753
  if (dataInputBusinessType === 12) {
31524
32754
  values[1] = value.map(function (i) {
@@ -31538,31 +32768,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
31538
32768
  }
31539
32769
  }));
31540
32770
  } else {
31541
- var _values12;
31542
- var _currentValue11 = dataInputBusinessType === 12 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
31543
- return {
31544
- key: s,
31545
- label: valueNames[vIndex]
31546
- };
31547
- })) || [] : values[0] && {
31548
- key: values[0],
31549
- label: valueNames[0]
31550
- } || {};
31551
- return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
31552
- selectBusinessType: "role",
31553
- selectProps: _objectSpread2({
31554
- style: styleCommon,
31555
- placeholder: '请选择角色'
31556
- }, dataInputBusinessType === 12 ? {
31557
- mode: 'multiple',
31558
- maxTagCount: 1
31559
- } : {}),
32771
+ return /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
31560
32772
  disabled: disabled,
32773
+ treeCheckable: dataInputBusinessType === 12,
32774
+ businessType: "background-category",
31561
32775
  labelInValue: true,
31562
- value: _currentValue11,
31563
- requestConfig: {
31564
- filterInit: 'qp-code-in'
31565
- },
32776
+ value: values[0],
32777
+ style: styleCommon,
31566
32778
  onChange: function onChange(value) {
31567
32779
  if (dataInputBusinessType === 12) {
31568
32780
  values = value.map(function (i) {
@@ -31583,77 +32795,95 @@ var RuleField = /*#__PURE__*/function (_Component) {
31583
32795
  });
31584
32796
  }
31585
32797
  }
31586
- // 品牌选择器
31587
- if (dataChoiceBusinessType == 410) {
32798
+ // 自定义选择器
32799
+ if (dataChoiceBusinessType == 40) {
31588
32800
  if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
31589
- return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
31590
- selectBusinessType: "brand",
31591
- selectProps: _objectSpread2({
32801
+ return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CustomSelector, {
32802
+ selectProps: _objectSpread2(_objectSpread2({
31592
32803
  style: styleCommon,
31593
- placeholder: '请选择品牌'
32804
+ placeholder: '请选择'
31594
32805
  }, dataInputBusinessType === 12 ? {
31595
32806
  mode: 'multiple',
31596
- maxTagCount: 1
31597
- } : {}),
32807
+ maxTagCount: 1,
32808
+ multipleForQuery: true
32809
+ } : {}), {}, {
32810
+ getPopupContainer: function getPopupContainer() {
32811
+ return document.body;
32812
+ }
32813
+ }),
32814
+ ctx: {
32815
+ name: propertyCode || (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.propertyPath)
32816
+ },
32817
+ isSearchForm: true,
32818
+ customSelectorConfig: (others === null || others === void 0 ? void 0 : others.customSelectorConfig) || {},
31598
32819
  disabled: disabled,
31599
- labelInValue: true,
31600
32820
  value: values[0],
31601
- requestConfig: {
31602
- filterInit: 'qp-brandCode-in'
31603
- },
31604
- onChange: function onChange(value) {
32821
+ onChange: function onChange(value, sourceList) {
31605
32822
  if (dataInputBusinessType === 12) {
31606
- values[0] = value.map(function (i) {
31607
- return i.key;
31608
- });
31609
- valueNames[0] = value.map(function (i) {
32823
+ var _value$map, _sourceList$filter;
32824
+ values[0] = (value === null || value === void 0 ? void 0 : (_value$map = value.map) === null || _value$map === void 0 ? void 0 : _value$map.call(value, function (i) {
32825
+ return i;
32826
+ })) || [];
32827
+ valueNames[0] = (sourceList === null || sourceList === void 0 ? void 0 : (_sourceList$filter = sourceList.filter(function (s) {
32828
+ return s.value == value;
32829
+ })) === null || _sourceList$filter === void 0 ? void 0 : _sourceList$filter.map(function (i) {
31610
32830
  return i.label || '';
31611
- });
32831
+ })) || [];
31612
32832
  } else {
31613
- values[0] = [value.key];
31614
- valueNames[0] = [value.label || ''];
32833
+ var _sourceList$find;
32834
+ var vLabel = sourceList === null || sourceList === void 0 ? void 0 : (_sourceList$find = sourceList.find(function (s) {
32835
+ return s.value == value;
32836
+ })) === null || _sourceList$find === void 0 ? void 0 : _sourceList$find.label;
32837
+ values[0] = value ? [value] : [];
32838
+ valueNames[0] = vLabel ? [vLabel] : [];
31615
32839
  }
31616
32840
  callback(values, valueNames);
31617
- },
31618
- getPopupContainer: function getPopupContainer() {
31619
- return document.body;
31620
32841
  }
31621
- }), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
31622
- selectBusinessType: "brand",
31623
- selectProps: _objectSpread2({
32842
+ }), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(CustomSelector, {
32843
+ selectProps: _objectSpread2(_objectSpread2({
31624
32844
  style: styleCommon,
31625
- placeholder: '请选择品牌'
32845
+ placeholder: '请选择'
31626
32846
  }, dataInputBusinessType === 12 ? {
31627
32847
  mode: 'multiple',
31628
- maxTagCount: 1
31629
- } : {}),
32848
+ maxTagCount: 1,
32849
+ multipleForQuery: true
32850
+ } : {}), {}, {
32851
+ getPopupContainer: function getPopupContainer() {
32852
+ return document.body;
32853
+ }
32854
+ }),
32855
+ ctx: {
32856
+ name: propertyCode || (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.propertyPath)
32857
+ },
32858
+ isSearchForm: true,
32859
+ customSelectorConfig: (others === null || others === void 0 ? void 0 : others.customSelectorConfig) || {},
31630
32860
  disabled: disabled,
31631
- labelInValue: true,
31632
32861
  value: values[1],
31633
- requestConfig: {
31634
- filterInit: 'qp-brandCode-in'
31635
- },
31636
- onChange: function onChange(value) {
32862
+ onChange: function onChange(value, sourceList) {
31637
32863
  if (dataInputBusinessType === 12) {
31638
- values[1] = value.map(function (i) {
31639
- return i.key;
31640
- });
31641
- valueNames[1] = value.map(function (i) {
32864
+ var _value$map2, _sourceList$filter2;
32865
+ values[1] = (value === null || value === void 0 ? void 0 : (_value$map2 = value.map) === null || _value$map2 === void 0 ? void 0 : _value$map2.call(value, function (i) {
32866
+ return i;
32867
+ })) || [];
32868
+ valueNames[1] = (sourceList === null || sourceList === void 0 ? void 0 : (_sourceList$filter2 = sourceList.filter(function (s) {
32869
+ return s.value == value;
32870
+ })) === null || _sourceList$filter2 === void 0 ? void 0 : _sourceList$filter2.map(function (i) {
31642
32871
  return i.label || '';
31643
- });
32872
+ })) || [];
31644
32873
  } else {
31645
- values[1] = [value.key];
31646
- valueNames[1] = [value.label || ''];
32874
+ var _sourceList$find2;
32875
+ var vLabel = sourceList === null || sourceList === void 0 ? void 0 : (_sourceList$find2 = sourceList.find(function (s) {
32876
+ return s.value == value;
32877
+ })) === null || _sourceList$find2 === void 0 ? void 0 : _sourceList$find2.label;
32878
+ values[1] = value ? [value] : [];
32879
+ valueNames[1] = vLabel ? [vLabel] : [];
31647
32880
  }
31648
32881
  callback(values, valueNames);
31649
- },
31650
- getPopupContainer: function getPopupContainer() {
31651
- return document.body;
31652
32882
  }
31653
32883
  }));
31654
32884
  } else {
31655
- var _values13;
31656
- var _currentValue12 = dataInputBusinessType === 12 ? ((_values13 = values) === null || _values13 === void 0 ? void 0 : _values13.map(function (s, vIndex) {
32885
+ var _values14;
32886
+ var _currentValue13 = dataInputBusinessType === 12 ? ((_values14 = values) === null || _values14 === void 0 ? void 0 : _values14.map(function (s, vIndex) {
31657
32887
  return {
31658
32888
  key: s,
31659
32889
  label: valueNames[vIndex]
@@ -31662,117 +32892,46 @@ var RuleField = /*#__PURE__*/function (_Component) {
31662
32892
  key: values[0],
31663
32893
  label: valueNames[0]
31664
32894
  } || {};
31665
- return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
31666
- selectBusinessType: "brand",
31667
- selectProps: _objectSpread2({
32895
+ return /*#__PURE__*/React$1.createElement(CustomSelector, {
32896
+ selectProps: _objectSpread2(_objectSpread2({
31668
32897
  style: styleCommon,
31669
- placeholder: '请选择品牌'
32898
+ placeholder: '请选择'
31670
32899
  }, dataInputBusinessType === 12 ? {
31671
32900
  mode: 'multiple',
31672
- maxTagCount: 1
31673
- } : {}),
31674
- disabled: disabled,
31675
- labelInValue: true,
31676
- value: _currentValue12,
31677
- requestConfig: {
31678
- filterInit: 'qp-brandCode-in'
31679
- },
31680
- onChange: function onChange(value) {
31681
- if (dataInputBusinessType === 12) {
31682
- values = value.map(function (i) {
31683
- return i.key;
31684
- }) || [];
31685
- valueNames = value.map(function (i) {
31686
- return i.label || '';
31687
- }) || [];
31688
- } else {
31689
- values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
31690
- valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
32901
+ maxTagCount: 1,
32902
+ multipleForQuery: true
32903
+ } : {}), {}, {
32904
+ getPopupContainer: function getPopupContainer() {
32905
+ return document.body;
31691
32906
  }
31692
- callback(values, valueNames);
31693
- },
31694
- getPopupContainer: function getPopupContainer() {
31695
- return document.body;
31696
- }
31697
- });
31698
- }
31699
- }
31700
- // 类目选择器
31701
- if (dataChoiceBusinessType == 420) {
31702
- if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
31703
- return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
31704
- disabled: disabled,
31705
- treeCheckable: dataInputBusinessType === 12,
31706
- businessType: "background-category",
31707
- labelInValue: true,
31708
- value: values[0],
31709
- style: styleCommon,
31710
- onChange: function onChange(value) {
31711
- if (dataInputBusinessType === 12) {
31712
- values[0] = value.map(function (i) {
31713
- return i.key;
31714
- });
31715
- valueNames[0] = value.map(function (i) {
31716
- return i.label || '';
31717
- });
31718
- } else {
31719
- values[0] = [value.key];
31720
- valueNames[0] = [value.label || ''];
31721
- }
31722
- callback(values, valueNames);
32907
+ }),
32908
+ ctx: {
32909
+ name: propertyCode || (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.propertyPath)
31723
32910
  },
31724
- getPopupContainer: function getPopupContainer() {
31725
- return document.body;
31726
- }
31727
- }), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
32911
+ isSearchForm: true,
32912
+ customSelectorConfig: (others === null || others === void 0 ? void 0 : others.customSelectorConfig) || {},
31728
32913
  disabled: disabled,
31729
- treeCheckable: dataInputBusinessType === 12,
31730
- businessType: "background-category",
31731
- labelInValue: true,
31732
- value: values[0],
31733
- style: styleCommon,
31734
- onChange: function onChange(value) {
32914
+ value: _currentValue13,
32915
+ onChange: function onChange(value, sourceList) {
31735
32916
  if (dataInputBusinessType === 12) {
31736
- values[1] = value.map(function (i) {
31737
- return i.key;
31738
- });
31739
- valueNames[1] = value.map(function (i) {
32917
+ var _value$map3, _sourceList$filter3;
32918
+ values = (value === null || value === void 0 ? void 0 : (_value$map3 = value.map) === null || _value$map3 === void 0 ? void 0 : _value$map3.call(value, function (i) {
32919
+ return i;
32920
+ })) || [];
32921
+ valueNames = (sourceList === null || sourceList === void 0 ? void 0 : (_sourceList$filter3 = sourceList.filter(function (s) {
32922
+ return s.value == value;
32923
+ })) === null || _sourceList$filter3 === void 0 ? void 0 : _sourceList$filter3.map(function (i) {
31740
32924
  return i.label || '';
31741
- });
32925
+ })) || [];
31742
32926
  } else {
31743
- values[1] = [value.key];
31744
- valueNames[1] = [value.label || ''];
32927
+ var _sourceList$find3;
32928
+ var vLabel = sourceList === null || sourceList === void 0 ? void 0 : (_sourceList$find3 = sourceList.find(function (s) {
32929
+ return s.value == value;
32930
+ })) === null || _sourceList$find3 === void 0 ? void 0 : _sourceList$find3.label;
32931
+ values = value ? [value] : [];
32932
+ valueNames = vLabel ? [vLabel] : [];
31745
32933
  }
31746
32934
  callback(values, valueNames);
31747
- },
31748
- getPopupContainer: function getPopupContainer() {
31749
- return document.body;
31750
- }
31751
- }));
31752
- } else {
31753
- return /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
31754
- disabled: disabled,
31755
- treeCheckable: dataInputBusinessType === 12,
31756
- businessType: "background-category",
31757
- labelInValue: true,
31758
- value: values[0],
31759
- style: styleCommon,
31760
- onChange: function onChange(value) {
31761
- if (dataInputBusinessType === 12) {
31762
- values = value.map(function (i) {
31763
- return i.key;
31764
- }) || [];
31765
- valueNames = value.map(function (i) {
31766
- return i.label || '';
31767
- }) || [];
31768
- } else {
31769
- values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
31770
- valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
31771
- }
31772
- callback(values, valueNames);
31773
- },
31774
- getPopupContainer: function getPopupContainer() {
31775
- return document.body;
31776
32935
  }
31777
32936
  });
31778
32937
  }
@@ -31899,6 +33058,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
31899
33058
  dataTypeCode: '',
31900
33059
  dataChoiceBusinessType: '',
31901
33060
  dataInputBusinessType: '',
33061
+ others: {},
31902
33062
  fieldValues: [],
31903
33063
  thresholdQuery: {},
31904
33064
  thresholdList: [],
@@ -31916,6 +33076,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
31916
33076
  dataTypeCode = _this$props3.dataTypeCode,
31917
33077
  dataChoiceBusinessType = _this$props3.dataChoiceBusinessType,
31918
33078
  dataInputBusinessType = _this$props3.dataInputBusinessType,
33079
+ others = _this$props3.others,
31919
33080
  options = _this$props3.options,
31920
33081
  values = _this$props3.values,
31921
33082
  initialThresholdQuery = _this$props3.initialThresholdQuery,
@@ -31928,6 +33089,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
31928
33089
  dataTypeCode: dataTypeCode,
31929
33090
  dataChoiceBusinessType: dataChoiceBusinessType,
31930
33091
  dataInputBusinessType: dataInputBusinessType,
33092
+ others: others,
31931
33093
  fieldValues: _toConsumableArray(values),
31932
33094
  options: options
31933
33095
  }, function () {
@@ -31964,6 +33126,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
31964
33126
  dataInputBusinessType: nextProps.dataInputBusinessType
31965
33127
  });
31966
33128
  }
33129
+ if (nextProps.others != this.props.others) {
33130
+ this.setState({
33131
+ others: nextProps.others
33132
+ });
33133
+ }
31967
33134
  // if (nextProps.selectOperation != this.props.selectOperation) {
31968
33135
  // this.setState({
31969
33136
  // options: nextProps.options
@@ -32510,6 +33677,7 @@ var InnerSelect = (function (props) {
32510
33677
 
32511
33678
  var RangePicker$1 = DatePicker.RangePicker;
32512
33679
  function RenderCompItem(props) {
33680
+ var _others;
32513
33681
  var regularDataList = props.regularDataList,
32514
33682
  ites = props.ites,
32515
33683
  showValue = props.showValue,
@@ -33064,6 +34232,29 @@ function RenderCompItem(props) {
33064
34232
  getPopupContainer: function getPopupContainer() {
33065
34233
  return document.body;
33066
34234
  }
34235
+ })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 40 && ( /*#__PURE__*/React$1.createElement(CustomSelector, {
34236
+ selectProps: _objectSpread2(_objectSpread2({
34237
+ style: styleCommon,
34238
+ placeholder: '请选择'
34239
+ }, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
34240
+ mode: 'multiple',
34241
+ maxTagCount: 1,
34242
+ multipleForQuery: true
34243
+ } : {}), {}, {
34244
+ getPopupContainer: function getPopupContainer() {
34245
+ return document.body;
34246
+ }
34247
+ }),
34248
+ ctx: {
34249
+ name: ites.code
34250
+ },
34251
+ isSearchForm: true,
34252
+ customSelectorConfig: ((_others = others) === null || _others === void 0 ? void 0 : _others.customSelectorConfig) || {},
34253
+ disabled: disabled,
34254
+ value: showValue(ites.code),
34255
+ onChange: function onChange(value) {
34256
+ handleEdit(ites.code, value);
34257
+ }
33067
34258
  })) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && ( /*#__PURE__*/React$1.createElement("div", {
33068
34259
  style: {
33069
34260
  display: 'flex'
@@ -33138,7 +34329,10 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
33138
34329
  dataTypeCode: element.valueType,
33139
34330
  dataChoiceBusinessType: element.choiceType,
33140
34331
  dataInputBusinessType: element.inputType,
33141
- info: element.info
34332
+ info: element.info,
34333
+ otherMainInfo: {
34334
+ customSelectorConfig: element.customSelectorConfig
34335
+ }
33142
34336
  };
33143
34337
  if (element === null || element === void 0 ? void 0 : (_element$propertyList = element.propertyList) === null || _element$propertyList === void 0 ? void 0 : _element$propertyList.length) {
33144
34338
  child.children = _this.parseChildTreeData(element.propertyList, "".concat(element.code), "".concat(item.name, "-").concat(element.name), item.code);
@@ -33189,7 +34383,10 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
33189
34383
  dataTypeCode: element.valueType,
33190
34384
  dataChoiceBusinessType: element.choiceType,
33191
34385
  dataInputBusinessType: element.inputType,
33192
- info: element.info
34386
+ info: element.info,
34387
+ otherMainInfo: {
34388
+ customSelectorConfig: element.customSelectorConfig
34389
+ }
33193
34390
  };
33194
34391
  if (element.propertyList) {
33195
34392
  child.children = _this.parseChildTreeData(element.propertyList, "".concat(parentKey, ".").concat(element.code), "".concat(parentTitle, "-").concat(element.name), rootObjCode);
@@ -33588,6 +34785,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
33588
34785
  alignItems: 'center'
33589
34786
  }
33590
34787
  }, /*#__PURE__*/React$1.createElement(TreeSelect, {
34788
+ showSearch: true,
34789
+ treeNodeFilterProp: "title",
33591
34790
  value: itemDetail.elementId,
33592
34791
  disabled: disabled,
33593
34792
  onChange: function onChange(value, name, nodeInfo) {
@@ -33648,6 +34847,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
33648
34847
  // propertyCode={`${itemDetail.metaObjectCode}.${itemDetail.propertyPath}`}
33649
34848
  ,
33650
34849
  relateDatas: relateDatas,
34850
+ others: currentTreeItem === null || currentTreeItem === void 0 ? void 0 : currentTreeItem.otherMainInfo,
33651
34851
  values: itemDetail.params || [],
33652
34852
  valueNames: itemDetail.paramNames || [],
33653
34853
  callback: function callback(newValues, newValueNames) {
@@ -33790,6 +34990,21 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
33790
34990
  }) : pCode;
33791
34991
  }
33792
34992
  }
34993
+ if ((configItem === null || configItem === void 0 ? void 0 : configItem.inputType) === 30) {
34994
+ var _pCode$split;
34995
+ var _newPCode = Array.isArray(pCode) ? pCode === null || pCode === void 0 ? void 0 : pCode.map(function (s) {
34996
+ return isObj(s) ? s : {
34997
+ key: s,
34998
+ value: s
34999
+ };
35000
+ }) : pCode === null || pCode === void 0 ? void 0 : (_pCode$split = pCode.split(',')) === null || _pCode$split === void 0 ? void 0 : _pCode$split.map(function (s) {
35001
+ return {
35002
+ key: s,
35003
+ value: s
35004
+ };
35005
+ });
35006
+ return _newPCode || pCode || defaultValue;
35007
+ }
33793
35008
  return pCode || defaultValue;
33794
35009
  };
33795
35010
  var handleEdit = function handleEdit(code, val, functionItem) {
@@ -33800,7 +35015,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
33800
35015
  });
33801
35016
  return;
33802
35017
  }
33803
- if (Array.isArray(val)) {
35018
+ if (Array.isArray(val) && (val === null || val === void 0 ? void 0 : val.length)) {
33804
35019
  value = val.map(function (m) {
33805
35020
  return m.value || m;
33806
35021
  }).join(',');
@@ -34235,12 +35450,12 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
34235
35450
  }, /*#__PURE__*/React$1.createElement("div", {
34236
35451
  className: 'base_rule_content'
34237
35452
  }, headerButtonComponentFun ? headerButtonComponentFun(this.handleAddRule) : /*#__PURE__*/React$1.createElement("div", {
34238
- disabled: disabled,
34239
35453
  style: {
34240
35454
  display: onlyOneRule ? 'none' : 'block'
34241
35455
  },
34242
35456
  className: 'base_rule_line_title'
34243
35457
  }, /*#__PURE__*/React$1.createElement(Button, {
35458
+ disabled: disabled,
34244
35459
  onClick: this.handleAddRule,
34245
35460
  className: 'base_rule_btn_style',
34246
35461
  type: "link"
@@ -35271,17 +36486,17 @@ var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
35271
36486
  })));
35272
36487
  });
35273
36488
 
35274
- var css_248z$v = ".bs-collapse-wrap {\n border-radius: 4px;\n overflow: hidden;\n}\n.bs-collapse-wrap .bs-collapse-header-wrap {\n background: #fff;\n}\n.bs-collapse-wrap .bs-collapse-icon {\n color: #b6b6b6;\n transition: transform 0.3s;\n}\n.bs-collapse-wrap .bs-guidewrap-icon-toogle {\n transform: rotate(180deg);\n}\n.bs-collapse-wrap .bs-collapse-header-title {\n font-weight: 500;\n font-size: 14px;\n color: #000000;\n}\n.bs-collapse-wrap .bs-collapse-header-divider {\n width: 3px;\n height: 20px;\n background: #005CFF;\n}\n.bs-collapse-header-boder .ant-collapse .ant-collapse-item > .ant-collapse-header {\n border-bottom: 1px solid #f0f0f0;\n padding: 8px 16px;\n}\n";
36489
+ var css_248z$v = ".bs-collapse-wrap {\n border-radius: 4px;\n overflow: hidden;\n}\n.bs-collapse-wrap .bs-collapse-header-wrap {\n background: #fff;\n}\n.bs-collapse-wrap .bs-collapse-icon {\n color: #b6b6b6;\n transition: transform 0.3s;\n}\n.bs-collapse-wrap .bs-guidewrap-icon-toogle {\n transform: rotate(180deg);\n}\n.bs-collapse-wrap .bs-collapse-header-title {\n font-weight: 500;\n font-size: 14px;\n color: #000000;\n}\n.bs-collapse-wrap .bs-collapse-header-divider {\n width: 3px;\n height: 20px;\n background: #005cff;\n}\n.bs-collapse-header-boder .ant-collapse .ant-collapse-item > .ant-collapse-header {\n border-bottom: 1px solid #f0f0f0;\n padding: 8px 16px;\n}\n";
35275
36490
  styleInject(css_248z$v);
35276
36491
 
35277
- var _excluded$j = ["titleExtra", "header", "showArrow"];
36492
+ var _excluded$k = ["titleExtra", "header", "showArrow"];
35278
36493
  var Panel = Collapse.Panel;
35279
36494
  var ExtendedPanel = function ExtendedPanel(_ref) {
35280
36495
  var titleExtra = _ref.titleExtra,
35281
36496
  header = _ref.header,
35282
36497
  _ref$showArrow = _ref.showArrow,
35283
36498
  showArrow = _ref$showArrow === void 0 ? false : _ref$showArrow,
35284
- props = _objectWithoutProperties(_ref, _excluded$j);
36499
+ props = _objectWithoutProperties(_ref, _excluded$k);
35285
36500
  var renderHeader = function renderHeader() {
35286
36501
  return /*#__PURE__*/React$1.createElement(Space, {
35287
36502
  align: "center"
@@ -35305,11 +36520,11 @@ var ExtendedPanel = function ExtendedPanel(_ref) {
35305
36520
  }), props.children);
35306
36521
  };
35307
36522
 
35308
- var _excluded$k = ["children", "bordered"];
36523
+ var _excluded$l = ["children", "bordered"];
35309
36524
  var ExtendedCollapse = function ExtendedCollapse(props) {
35310
36525
  var children = props.children,
35311
36526
  bordered = props.bordered,
35312
- restProps = _objectWithoutProperties(props, _excluded$k);
36527
+ restProps = _objectWithoutProperties(props, _excluded$l);
35313
36528
  return /*#__PURE__*/React$1.createElement("div", {
35314
36529
  className: classNames({
35315
36530
  'bs-collapse-wrap': true,
@@ -35376,4 +36591,51 @@ var Section = function Section(_ref) {
35376
36591
  }, children));
35377
36592
  };
35378
36593
 
35379
- export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, QueryMutipleInput, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy, createUniqID, downloadExcel, ergodicMenuRoutes, formatter, getAccountID, getAccountId, getBreadcrumbNameMap, getCommonInfoKey, getConfigTableColumns, getCurrentTargetBgId, getCurrentTenantId, getDictionarySource, getDictionaryTextByValue, getEmployeeCode, getEmployeeId, getItemDefaultWidth$1 as getItemDefaultWidth, getJoinDictionaryText, getLastKey, getLimitMenuDataKey, getLocalStorageSaveKey, getMenuAuthDataKey, getSessionId, getSkuImg, getTenantList, getUserId, getUserName, go2BackAndClose, handleAntdColumnsSpecialParams, handleBaseUrlPre, handleBeforeUpload, handleBssulaColumnsSpecialParams, handleCommonTimeRender$1 as handleCommonTimeRender, handleError, handleExport, handleExportBarCode, handleJudgeAuthButtons, handleOssUrl, handleRequestAuthHeader, handleRequestUrl, handleStatusBadge, handleTextBreakSpaces, handleTextDouble$1 as handleTextDouble, handleTextDoubleOrId, handleTextLineFeed$1 as handleTextLineFeed, handleTextOverflow$1 as handleTextOverflow, handleTextTooltip, handleTextWarp, handleTextWarpCustom, handleTooltip$1 as handleTooltip, handleTooltipHours$1 as handleTooltipHours, handleUserPhone, judgeIsEmpty, judgeIsRequestError, judgeIsRequestSuccess, keyToWord, memoizeOneFormatter, noEmptyArr, paramsControl, precisionQuantity, randomString, readerXlsxToList, removeCurrentTenantId, removeTenantList, renderFixed2, renderNumberText, saveCurrentTenantId, saveTenantList, setConfigTableColumns, shouldUseAuth, socketFunctions, sulaTableRenderTooltip, tableColumnsImage$1 as tableColumnsImage, textIcon, updateGuanDate, userColumns$1 as userColumns, userInfoCard$1 as userInfoCard, uuid, writeListToXlsx };
36594
+ var IconFont = createFromIconfontCN({
36595
+ scriptUrl: '//at.alicdn.com/t/c/font_4645959_8nhs21v6bnp.js'
36596
+ });
36597
+ var Paragraph$1 = Typography.Paragraph;
36598
+ var ParagraphCopier = function ParagraphCopier(props) {
36599
+ var children = props.children,
36600
+ text = props.text,
36601
+ _props$enableHover = props.enableHover,
36602
+ enableHover = _props$enableHover === void 0 ? false : _props$enableHover;
36603
+ var _useState = useState(false),
36604
+ _useState2 = _slicedToArray(_useState, 2),
36605
+ isHover = _useState2[0],
36606
+ setIsHover = _useState2[1]; // 只有当 enableHover 为 true 时才使用
36607
+ // 鼠标进入和离开的事件处理函数
36608
+ var handleMouseEnter = function handleMouseEnter() {
36609
+ if (enableHover) {
36610
+ setIsHover(true);
36611
+ }
36612
+ };
36613
+ var handleMouseLeave = function handleMouseLeave() {
36614
+ if (enableHover) {
36615
+ setIsHover(false);
36616
+ }
36617
+ };
36618
+ // 拷贝选项,包含图标和提示信息
36619
+ var copyableOptions = {
36620
+ text: text,
36621
+ icon: /*#__PURE__*/React$1.createElement(IconFont, {
36622
+ type: "icon-qyhtfuzhi",
36623
+ style: {
36624
+ fontSize: '14px'
36625
+ }
36626
+ }),
36627
+ tooltips: ['点击复制', '复制成功']
36628
+ };
36629
+ return /*#__PURE__*/React$1.createElement("div", {
36630
+ onMouseEnter: handleMouseEnter,
36631
+ onMouseLeave: handleMouseLeave
36632
+ }, /*#__PURE__*/React$1.createElement(Paragraph$1, {
36633
+ copyable: enableHover ? isHover && copyableOptions : copyableOptions,
36634
+ style: {
36635
+ marginBottom: '0',
36636
+ cursor: 'pointer'
36637
+ }
36638
+ }, children));
36639
+ };
36640
+
36641
+ export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, ParagraphCopier, QueryMutipleInput, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy, createUniqID, downloadExcel, ergodicMenuRoutes, formatter, getAccountID, getAccountId, getBreadcrumbNameMap, getCommonInfoKey, getConfigTableColumns, getCurrentTargetBgId, getCurrentTenantId, getDictionarySource, getDictionaryTextByValue, getEmployeeCode, getEmployeeId, getItemDefaultWidth$1 as getItemDefaultWidth, getJoinDictionaryText, getLastKey, getLimitMenuDataKey, getLocalStorageSaveKey, getMenuAuthDataKey, getSessionId, getSkuImg, getTenantList, getUserId, getUserName, go2BackAndClose, handleAntdColumnsSpecialParams, handleBaseUrlPre, handleBeforeUpload, handleBssulaColumnsSpecialParams, handleCommonTimeRender$1 as handleCommonTimeRender, handleConvertResponse, handleError, handleExport, handleExportBarCode, handleJudgeAuthButtons, handleOssUrl, handleRequestAuthHeader, handleRequestHeader, handleRequestUrl, handleStatusBadge, handleTextBreakSpaces, handleTextDouble$1 as handleTextDouble, handleTextDoubleOrId, handleTextLineFeed$1 as handleTextLineFeed, handleTextOverflow$1 as handleTextOverflow, handleTextTooltip, handleTextWarp, handleTextWarpCustom, handleTooltip$1 as handleTooltip, handleTooltipHours$1 as handleTooltipHours, handleUserPhone, judgeIsEmpty, judgeIsRequestError, judgeIsRequestSuccess, keyToWord, memoizeOneFormatter, noEmptyArr, noEmptyArray, paramsControl, parseWidth, precisionQuantity, randomString, readerXlsxToList, removeCurrentTenantId, removeTenantList, renderFixed2, renderNumberText, saveCurrentTenantId, saveTenantList, setConfigTableColumns, shouldUseAuth, socketFunctions, sulaTableRenderTooltip, tableColumnsImage$1 as tableColumnsImage, textIcon, updateGuanDate, userColumns$1 as userColumns, userInfoCard$1 as userInfoCard, uuid, writeListToXlsx };