@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.js CHANGED
@@ -54,88 +54,9 @@ var serialize__default = /*#__PURE__*/_interopDefaultLegacy(serialize);
54
54
  var castArray__default = /*#__PURE__*/_interopDefaultLegacy(castArray);
55
55
  var isArray__default = /*#__PURE__*/_interopDefaultLegacy(isArray$1);
56
56
 
57
- function _arrayLikeToArray(r, a) {
58
- (null == a || a > r.length) && (a = r.length);
59
- for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
60
- return n;
61
- }
62
- function _arrayWithHoles(r) {
63
- if (Array.isArray(r)) return r;
64
- }
65
- function _arrayWithoutHoles(r) {
66
- if (Array.isArray(r)) return _arrayLikeToArray(r);
67
- }
68
- function _assertThisInitialized(e) {
69
- if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
70
- return e;
71
- }
72
- function asyncGeneratorStep(n, t, e, r, o, a, c) {
73
- try {
74
- var i = n[a](c),
75
- u = i.value;
76
- } catch (n) {
77
- return void e(n);
78
- }
79
- i.done ? t(u) : Promise.resolve(u).then(r, o);
80
- }
81
- function _asyncToGenerator(n) {
82
- return function () {
83
- var t = this,
84
- e = arguments;
85
- return new Promise(function (r, o) {
86
- var a = n.apply(t, e);
87
- function _next(n) {
88
- asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
89
- }
90
- function _throw(n) {
91
- asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
92
- }
93
- _next(void 0);
94
- });
95
- };
96
- }
97
57
  function _callSuper(t, o, e) {
98
58
  return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
99
59
  }
100
- function _classCallCheck(a, n) {
101
- if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
102
- }
103
- function _defineProperties(e, r) {
104
- for (var t = 0; t < r.length; t++) {
105
- var o = r[t];
106
- o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
107
- }
108
- }
109
- function _createClass(e, r, t) {
110
- return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
111
- writable: !1
112
- }), e;
113
- }
114
- function _defineProperty(e, r, t) {
115
- return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
116
- value: t,
117
- enumerable: !0,
118
- configurable: !0,
119
- writable: !0
120
- }) : e[r] = t, e;
121
- }
122
- function _getPrototypeOf(t) {
123
- return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
124
- return t.__proto__ || Object.getPrototypeOf(t);
125
- }, _getPrototypeOf(t);
126
- }
127
- function _inherits(t, e) {
128
- if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
129
- t.prototype = Object.create(e && e.prototype, {
130
- constructor: {
131
- value: t,
132
- writable: !0,
133
- configurable: !0
134
- }
135
- }), Object.defineProperty(t, "prototype", {
136
- writable: !1
137
- }), e && _setPrototypeOf(t, e);
138
- }
139
60
  function _isNativeReflectConstruct() {
140
61
  try {
141
62
  var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
@@ -144,9 +65,6 @@ function _isNativeReflectConstruct() {
144
65
  return !!t;
145
66
  })();
146
67
  }
147
- function _iterableToArray(r) {
148
- if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
149
- }
150
68
  function _iterableToArrayLimit(r, l) {
151
69
  var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
152
70
  if (null != t) {
@@ -174,15 +92,6 @@ function _iterableToArrayLimit(r, l) {
174
92
  return a;
175
93
  }
176
94
  }
177
- function _nonIterableRest() {
178
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
179
- }
180
- function _nonIterableSpread() {
181
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
182
- }
183
- function _objectDestructuringEmpty(t) {
184
- if (null == t) throw new TypeError("Cannot destructure " + t);
185
- }
186
95
  function ownKeys(e, r) {
187
96
  var t = Object.keys(e);
188
97
  if (Object.getOwnPropertySymbols) {
@@ -204,31 +113,6 @@ function _objectSpread2(e) {
204
113
  }
205
114
  return e;
206
115
  }
207
- function _objectWithoutProperties(e, t) {
208
- if (null == e) return {};
209
- var o,
210
- r,
211
- i = _objectWithoutPropertiesLoose(e, t);
212
- if (Object.getOwnPropertySymbols) {
213
- var s = Object.getOwnPropertySymbols(e);
214
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
215
- }
216
- return i;
217
- }
218
- function _objectWithoutPropertiesLoose(r, e) {
219
- if (null == r) return {};
220
- var t = {};
221
- for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
222
- if (e.includes(n)) continue;
223
- t[n] = r[n];
224
- }
225
- return t;
226
- }
227
- function _possibleConstructorReturn(t, e) {
228
- if (e && ("object" == typeof e || "function" == typeof e)) return e;
229
- if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
230
- return _assertThisInitialized(t);
231
- }
232
116
  function _regeneratorRuntime() {
233
117
  _regeneratorRuntime = function () {
234
118
  return e;
@@ -530,20 +414,6 @@ function _regeneratorRuntime() {
530
414
  }
531
415
  }, e;
532
416
  }
533
- function _setPrototypeOf(t, e) {
534
- return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
535
- return t.__proto__ = e, t;
536
- }, _setPrototypeOf(t, e);
537
- }
538
- function _slicedToArray(r, e) {
539
- return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
540
- }
541
- function _toArray(r) {
542
- return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
543
- }
544
- function _toConsumableArray(r) {
545
- return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
546
- }
547
417
  function _toPrimitive(t, r) {
548
418
  if ("object" != typeof t || !t) return t;
549
419
  var e = t[Symbol.toPrimitive];
@@ -567,12 +437,180 @@ function _typeof(o) {
567
437
  return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
568
438
  }, _typeof(o);
569
439
  }
570
- function _unsupportedIterableToArray(r, a) {
571
- if (r) {
572
- if ("string" == typeof r) return _arrayLikeToArray(r, a);
573
- var t = {}.toString.call(r).slice(8, -1);
574
- 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;
440
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
441
+ try {
442
+ var info = gen[key](arg);
443
+ var value = info.value;
444
+ } catch (error) {
445
+ reject(error);
446
+ return;
447
+ }
448
+ if (info.done) {
449
+ resolve(value);
450
+ } else {
451
+ Promise.resolve(value).then(_next, _throw);
452
+ }
453
+ }
454
+ function _asyncToGenerator(fn) {
455
+ return function () {
456
+ var self = this,
457
+ args = arguments;
458
+ return new Promise(function (resolve, reject) {
459
+ var gen = fn.apply(self, args);
460
+ function _next(value) {
461
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
462
+ }
463
+ function _throw(err) {
464
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
465
+ }
466
+ _next(undefined);
467
+ });
468
+ };
469
+ }
470
+ function _classCallCheck(instance, Constructor) {
471
+ if (!(instance instanceof Constructor)) {
472
+ throw new TypeError("Cannot call a class as a function");
473
+ }
474
+ }
475
+ function _defineProperties(target, props) {
476
+ for (var i = 0; i < props.length; i++) {
477
+ var descriptor = props[i];
478
+ descriptor.enumerable = descriptor.enumerable || false;
479
+ descriptor.configurable = true;
480
+ if ("value" in descriptor) descriptor.writable = true;
481
+ Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
482
+ }
483
+ }
484
+ function _createClass(Constructor, protoProps, staticProps) {
485
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
486
+ if (staticProps) _defineProperties(Constructor, staticProps);
487
+ Object.defineProperty(Constructor, "prototype", {
488
+ writable: false
489
+ });
490
+ return Constructor;
491
+ }
492
+ function _defineProperty(obj, key, value) {
493
+ key = _toPropertyKey(key);
494
+ if (key in obj) {
495
+ Object.defineProperty(obj, key, {
496
+ value: value,
497
+ enumerable: true,
498
+ configurable: true,
499
+ writable: true
500
+ });
501
+ } else {
502
+ obj[key] = value;
503
+ }
504
+ return obj;
505
+ }
506
+ function _inherits(subClass, superClass) {
507
+ if (typeof superClass !== "function" && superClass !== null) {
508
+ throw new TypeError("Super expression must either be null or a function");
509
+ }
510
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
511
+ constructor: {
512
+ value: subClass,
513
+ writable: true,
514
+ configurable: true
515
+ }
516
+ });
517
+ Object.defineProperty(subClass, "prototype", {
518
+ writable: false
519
+ });
520
+ if (superClass) _setPrototypeOf(subClass, superClass);
521
+ }
522
+ function _getPrototypeOf(o) {
523
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
524
+ return o.__proto__ || Object.getPrototypeOf(o);
525
+ };
526
+ return _getPrototypeOf(o);
527
+ }
528
+ function _setPrototypeOf(o, p) {
529
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
530
+ o.__proto__ = p;
531
+ return o;
532
+ };
533
+ return _setPrototypeOf(o, p);
534
+ }
535
+ function _objectDestructuringEmpty(obj) {
536
+ if (obj == null) throw new TypeError("Cannot destructure " + obj);
537
+ }
538
+ function _objectWithoutPropertiesLoose(source, excluded) {
539
+ if (source == null) return {};
540
+ var target = {};
541
+ for (var key in source) {
542
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
543
+ if (excluded.indexOf(key) >= 0) continue;
544
+ target[key] = source[key];
545
+ }
546
+ }
547
+ return target;
548
+ }
549
+ function _objectWithoutProperties(source, excluded) {
550
+ if (source == null) return {};
551
+ var target = _objectWithoutPropertiesLoose(source, excluded);
552
+ var key, i;
553
+ if (Object.getOwnPropertySymbols) {
554
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
555
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
556
+ key = sourceSymbolKeys[i];
557
+ if (excluded.indexOf(key) >= 0) continue;
558
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
559
+ target[key] = source[key];
560
+ }
575
561
  }
562
+ return target;
563
+ }
564
+ function _assertThisInitialized(self) {
565
+ if (self === void 0) {
566
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
567
+ }
568
+ return self;
569
+ }
570
+ function _possibleConstructorReturn(self, call) {
571
+ if (call && (typeof call === "object" || typeof call === "function")) {
572
+ return call;
573
+ } else if (call !== void 0) {
574
+ throw new TypeError("Derived constructors may only return object or undefined");
575
+ }
576
+ return _assertThisInitialized(self);
577
+ }
578
+ function _slicedToArray(arr, i) {
579
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
580
+ }
581
+ function _toArray(arr) {
582
+ return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
583
+ }
584
+ function _toConsumableArray(arr) {
585
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
586
+ }
587
+ function _arrayWithoutHoles(arr) {
588
+ if (Array.isArray(arr)) return _arrayLikeToArray(arr);
589
+ }
590
+ function _arrayWithHoles(arr) {
591
+ if (Array.isArray(arr)) return arr;
592
+ }
593
+ function _iterableToArray(iter) {
594
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
595
+ }
596
+ function _unsupportedIterableToArray(o, minLen) {
597
+ if (!o) return;
598
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
599
+ var n = Object.prototype.toString.call(o).slice(8, -1);
600
+ if (n === "Object" && o.constructor) n = o.constructor.name;
601
+ if (n === "Map" || n === "Set") return Array.from(o);
602
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
603
+ }
604
+ function _arrayLikeToArray(arr, len) {
605
+ if (len == null || len > arr.length) len = arr.length;
606
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
607
+ return arr2;
608
+ }
609
+ function _nonIterableSpread() {
610
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
611
+ }
612
+ function _nonIterableRest() {
613
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
576
614
  }
577
615
 
578
616
  var ENUM = {
@@ -868,7 +906,10 @@ var handleRequestHeader = function handleRequestHeader(url, options) {
868
906
  }
869
907
  !!!config.headers['x-biz-code'] && handleRequestAuthHeader(config);
870
908
  config.headers = _objectSpread2(_objectSpread2({}, commonHeaders), config.headers);
871
- options.headers = config.headers;
909
+ if (options) {
910
+ options.headers = config.headers;
911
+ }
912
+ return options || config;
872
913
  };
873
914
  request__default['default'].interceptors.request.use(function (url, options) {
874
915
  handleRequestHeader(url, options);
@@ -1017,7 +1058,7 @@ var handleTextDouble = function handleTextDouble(textOne, textTwo) {
1017
1058
  var handleTextLineFeed = function handleTextLineFeed(text) {
1018
1059
  var width = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 130;
1019
1060
  return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
1020
- title: text || '- -'
1061
+ title: text || '-'
1021
1062
  }, /*#__PURE__*/React__default['default'].createElement("span", {
1022
1063
  style: {
1023
1064
  width: width ? width + 'px' : '130px',
@@ -1026,13 +1067,13 @@ var handleTextLineFeed = function handleTextLineFeed(text) {
1026
1067
  whiteSpace: 'pre-line',
1027
1068
  top: '5px'
1028
1069
  }
1029
- }, text || '- -'));
1070
+ }, text || '-'));
1030
1071
  };
1031
1072
  // 带有toptile 清提示 ...
1032
1073
  var handleTextOverflow = function handleTextOverflow(text) {
1033
1074
  var width = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 130;
1034
1075
  return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
1035
- title: text || '- -'
1076
+ title: text || '-'
1036
1077
  }, /*#__PURE__*/React__default['default'].createElement("span", {
1037
1078
  style: {
1038
1079
  width: width ? width + 'px' : '130px',
@@ -1043,7 +1084,7 @@ var handleTextOverflow = function handleTextOverflow(text) {
1043
1084
  position: 'relative',
1044
1085
  top: '5px'
1045
1086
  }
1046
- }, text || '- -'));
1087
+ }, text || '-'));
1047
1088
  };
1048
1089
  // 处理时间 带时分秒
1049
1090
  var handleTooltip = function handleTooltip(text, timeTrue) {
@@ -1141,11 +1182,11 @@ var userInfoCard = function userInfoCard(props) {
1141
1182
  };
1142
1183
  function handleCommonTimeRenderHours(text, format) {
1143
1184
  var formatType = format || 'YYYY-MM-DD';
1144
- return text && moment__default['default'](text).format(formatType) || '- -';
1185
+ return text && moment__default['default'](text).format(formatType) || '-';
1145
1186
  }
1146
1187
  function handleCommonTimeRender(text, format) {
1147
1188
  var formatType = format || 'YYYY-MM-DD HH:mm:ss';
1148
- return text && moment__default['default'](text).format(formatType) || '- -';
1189
+ return text && moment__default['default'](text).format(formatType) || '-';
1149
1190
  }
1150
1191
  //设置queryTable默认列宽
1151
1192
  var getItemDefaultWidth = function getItemDefaultWidth(item) {
@@ -1251,6 +1292,10 @@ var go2BackAndClose = function go2BackAndClose(backHistoryPath) {
1251
1292
  umi.history.goBack();
1252
1293
  }
1253
1294
  };
1295
+ var parseWidth = function parseWidth(widthStr) {
1296
+ var parsedWidth = parseInt(widthStr.replace('px', ''));
1297
+ return isNaN(parsedWidth) ? 0 : parsedWidth;
1298
+ };
1254
1299
  /**
1255
1300
  * 处理bssulaTable的公共回显样式
1256
1301
  * @param col 每一具体行
@@ -1269,9 +1314,10 @@ var handleBssulaColumnsSpecialParams = function handleBssulaColumnsSpecialParams
1269
1314
  };
1270
1315
  } else if (col.textOverflow) {
1271
1316
  // 处理文字太长
1317
+ var colWidth = typeof (col === null || col === void 0 ? void 0 : col.width) === 'number' ? col.width : col.width && parseWidth(col.width);
1272
1318
  col.render = function (_ref3) {
1273
1319
  var text = _ref3.text;
1274
- return handleTextOverflow(text, col.width);
1320
+ return handleTextOverflow(text, colWidth);
1275
1321
  };
1276
1322
  } else if (col.images) {
1277
1323
  col.render = function (_ref4) {
@@ -1299,8 +1345,8 @@ var handleBssulaColumnsSpecialParams = function handleBssulaColumnsSpecialParams
1299
1345
  return authFn(item.code);
1300
1346
  });
1301
1347
  } else if (!col.render) {
1302
- // 没有值默认显示 - -
1303
- // col.render = ({ text }: any) => text || '- -';
1348
+ // 没有值默认显示 -
1349
+ // col.render = ({ text }: any) => text || '-';
1304
1350
  col.render = function (_ref8) {
1305
1351
  var text = _ref8.text;
1306
1352
  return text !== null && text !== void 0 ? text : '--';
@@ -1325,8 +1371,9 @@ var handleAntdColumnsSpecialParams = function handleAntdColumnsSpecialParams(col
1325
1371
  }
1326
1372
  // 处理文字太长
1327
1373
  if (col.textOverflow) {
1374
+ var colWidth = typeof (col === null || col === void 0 ? void 0 : col.width) === 'number' ? col.width : col.width && parseWidth(col.width);
1328
1375
  col.render = function (text) {
1329
- return handleTextOverflow(text);
1376
+ return handleTextOverflow(text, colWidth);
1330
1377
  };
1331
1378
  }
1332
1379
  if (col.images) {
@@ -1350,9 +1397,9 @@ var handleAntdColumnsSpecialParams = function handleAntdColumnsSpecialParams(col
1350
1397
  return index + 1;
1351
1398
  };
1352
1399
  }
1353
- // 没有值默认显示 - -
1400
+ // 没有值默认显示 -
1354
1401
  if (!col.render) {
1355
- // col.render = ({ text }: any) => text || '- -';
1402
+ // col.render = ({ text }: any) => text || '-';
1356
1403
  col.render = function (text) {
1357
1404
  return text || '--';
1358
1405
  };
@@ -1441,6 +1488,21 @@ var randomString = function randomString(len) {
1441
1488
  var createUniqID = function createUniqID(length) {
1442
1489
  return Number(Math.random().toString().substr(3, length) + Date.now()).toString(36);
1443
1490
  };
1491
+ // 格式化table响应数据
1492
+ var handleConvertResponse = function handleConvertResponse(items, total) {
1493
+ var result = {
1494
+ list: (items === null || items === void 0 ? void 0 : items.length) && items.map(function (item, index) {
1495
+ return _objectSpread2(_objectSpread2({}, item), {}, {
1496
+ keyIndex: "".concat(index + 1)
1497
+ });
1498
+ }) || [],
1499
+ total: Number(total) || 0
1500
+ };
1501
+ return result;
1502
+ };
1503
+ var noEmptyArray = function noEmptyArray(targetObj) {
1504
+ return Array.isArray(targetObj) && targetObj.length !== 0;
1505
+ };
1444
1506
 
1445
1507
  // 判断某个按钮/菜单 是否有权限,返回布尔值
1446
1508
  var authFunc = function authFunc(code) {
@@ -1567,37 +1629,38 @@ var resolveFile = /*#__PURE__*/function () {
1567
1629
  //读取文件
1568
1630
  var readerXlsxToList = /*#__PURE__*/function () {
1569
1631
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
1570
- var _ref5, callback, sheetMap, data2, data;
1632
+ var _ref5, callback, sheetMap, nowFile, data2, data;
1571
1633
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
1572
1634
  while (1) switch (_context2.prev = _context2.next) {
1573
1635
  case 0:
1574
1636
  _ref5 = otherInfo || {}, callback = _ref5.callback, sheetMap = _ref5.sheetMap;
1575
1637
  if (!(Array.isArray(fileList) && fileList.length > 0)) {
1576
- _context2.next = 14;
1638
+ _context2.next = 15;
1577
1639
  break;
1578
1640
  }
1579
- _context2.next = 4;
1580
- return resolveFile(file.originFileObj, {
1641
+ nowFile = fileList[fileList.length - 1]; // 阻止了默认上传file没有originFileObj了 得从fileList中去取
1642
+ _context2.next = 5;
1643
+ return resolveFile(nowFile.originFileObj, {
1581
1644
  sheetMap: fieldMappingReverse(sheetMap),
1582
1645
  sheetCount: 1
1583
1646
  });
1584
- case 4:
1647
+ case 5:
1585
1648
  data2 = _context2.sent;
1586
1649
  data = data2[0];
1587
1650
  if (data.length) {
1588
- _context2.next = 9;
1651
+ _context2.next = 10;
1589
1652
  break;
1590
1653
  }
1591
1654
  antd.message.error("\u8BF7\u5148\u5F55\u5165\u6570\u636E\u518D\u5BFC\u5165");
1592
1655
  return _context2.abrupt("return");
1593
- case 9:
1656
+ case 10:
1594
1657
  if (callback) callback(data);
1595
1658
  !callback && antd.message.success("\u5BFC\u5165\u6210\u529F");
1596
1659
  return _context2.abrupt("return", data);
1597
- case 14:
1660
+ case 15:
1598
1661
  antd.message.error("\u8BF7\u9009\u62E9\u6587\u4EF6");
1599
1662
  return _context2.abrupt("return");
1600
- case 16:
1663
+ case 17:
1601
1664
  case "end":
1602
1665
  return _context2.stop();
1603
1666
  }
@@ -2302,7 +2365,7 @@ var getDictionaryTextByValue = function getDictionaryTextByValue(dicCode, value)
2302
2365
  dicData = storageDic[dicCode];
2303
2366
  }
2304
2367
  if (!dicData || !dicData.length) ;
2305
- if (value === undefined) return '- -';
2368
+ if (value === undefined) return '-';
2306
2369
  var dicItemArray = (_dicData = dicData) === null || _dicData === void 0 ? void 0 : _dicData.filter(function (item) {
2307
2370
  return item.value === value.toString();
2308
2371
  });
@@ -2319,7 +2382,7 @@ var getJoinDictionaryText = function getJoinDictionaryText(dicCode, value) {
2319
2382
  var storageDic = localStorage.getItem(DIC_DATA_KEY) ? JSON.parse(localStorage.getItem(DIC_DATA_KEY) || '[]') : {};
2320
2383
  dicData = storageDic[dicCode];
2321
2384
  }
2322
- if (value === undefined) return '- -';
2385
+ if (value === undefined) return '-';
2323
2386
  var newValue = value.split(',');
2324
2387
  var dicItemArray = (_dicData2 = dicData) === null || _dicData2 === void 0 ? void 0 : _dicData2.filter(function (item) {
2325
2388
  return newValue.find(function (d) {
@@ -3160,7 +3223,6 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
3160
3223
  var callBackFun = this.importExcelToLuckySheet;
3161
3224
  var uploadProps = {
3162
3225
  name: 'file',
3163
- action: '',
3164
3226
  headers: {},
3165
3227
  accept: accept || ['.xlsx', '.xls'],
3166
3228
  showUploadList: false,
@@ -3175,7 +3237,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
3175
3237
  antd.message.error("\u8BF7\u4E0A\u4F20".concat(suffixRule.toString(), "\u7B49\u683C\u5F0F\u7684\u6587\u4EF6!"));
3176
3238
  return antd.Upload.LIST_IGNORE;
3177
3239
  }
3178
- return true;
3240
+ return false; // 阻止默认上传
3179
3241
  },
3180
3242
  onChange: function onChange(info) {
3181
3243
  var _Object$keys;
@@ -3836,7 +3898,6 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
3836
3898
  var callBackFun = this.importExcelToLuckySheet;
3837
3899
  var uploadProps = {
3838
3900
  name: 'file',
3839
- action: '',
3840
3901
  headers: {},
3841
3902
  accept: accept || ['.xlsx', '.xls'],
3842
3903
  showUploadList: false,
@@ -3851,7 +3912,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
3851
3912
  antd.message.error("\u8BF7\u4E0A\u4F20".concat(suffixRule.toString(), "\u7B49\u683C\u5F0F\u7684\u6587\u4EF6!"));
3852
3913
  return antd.Upload.LIST_IGNORE;
3853
3914
  }
3854
- return true;
3915
+ return false; // 阻止默认上传
3855
3916
  },
3856
3917
  onChange: function onChange(info) {
3857
3918
  var _Object$keys;
@@ -4578,9 +4639,9 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
4578
4639
  if (labelInValue) {
4579
4640
  var formatResult = value.map(function (i) {
4580
4641
  return {
4581
- key: i[mappingValueField],
4582
- label: i[mappingTextField],
4583
- value: i[mappingValueField]
4642
+ key: i[mappingValueField] || i.key,
4643
+ label: i[mappingTextField] || i.label,
4644
+ value: i[mappingValueField] || i.value
4584
4645
  };
4585
4646
  });
4586
4647
  onChange(selectMode ? formatResult : formatResult[0], value, source);
@@ -4674,11 +4735,27 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
4674
4735
  });
4675
4736
  };
4676
4737
  var onChangeCheckAll = function onChangeCheckAll(e) {
4738
+ // 允许用户自定义 全选操作逻辑
4739
+ if (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.onCheckAll) {
4740
+ modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.onCheckAll(e, {
4741
+ items: items,
4742
+ itemsTotal: itemsTotal,
4743
+ tablePagination: tablePagination,
4744
+ onCheckAllData: onCheckAllData,
4745
+ setSelectedRowKeys: setSelectedRowKeys,
4746
+ setPopValue: setPopValue,
4747
+ setSelectedRows: setSelectedRows,
4748
+ setIndeterminate: setIndeterminate,
4749
+ setCheckedAll: setCheckedAll
4750
+ });
4751
+ return;
4752
+ }
4677
4753
  if (e.target.checked) {
4678
4754
  // 如果下拉框有所有数据就处理选中所有【items.length === itemsTotal】(最多可选100条)
4679
4755
  // 如果超过100条 就默认查出所有数据
4680
- if (items.length < itemsTotal) {
4681
- var totalPage = Math.ceil(itemsTotal / (tablePagination === null || tablePagination === void 0 ? void 0 : tablePagination.pageSize));
4756
+ if (items.length < itemsTotal || items.length === itemsTotal && itemsTotal == 0) {
4757
+ var totalCount = (tablePagination === null || tablePagination === void 0 ? void 0 : tablePagination.total) || itemsTotal; // 兼容有查询条件的情况 首次加载是没有所有数据的,默认给加载后端返回的总条数
4758
+ var totalPage = Math.ceil(totalCount / (tablePagination === null || tablePagination === void 0 ? void 0 : tablePagination.pageSize));
4682
4759
  var allPageSize = totalPage * (tablePagination === null || tablePagination === void 0 ? void 0 : tablePagination.pageSize);
4683
4760
  onCheckAllData(allPageSize);
4684
4761
  } else {
@@ -4775,7 +4852,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
4775
4852
  }
4776
4853
  };
4777
4854
  var themeColor = {
4778
- color: '#1890ff'
4855
+ color: '#005cff'
4779
4856
  };
4780
4857
  var formItem = function formItem(list) {
4781
4858
  if (isModalVisible && (list === null || list === void 0 ? void 0 : list.length)) {
@@ -5018,8 +5095,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
5018
5095
  })), needModalTable && ( /*#__PURE__*/React__default['default'].createElement(antd.Button, {
5019
5096
  style: {
5020
5097
  width: '30px',
5021
- padding: '2px',
5022
- height: 'auto'
5098
+ padding: '2px'
5023
5099
  },
5024
5100
  onClick: showModal,
5025
5101
  type: "primary"
@@ -5104,7 +5180,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
5104
5180
  }
5105
5181
  };
5106
5182
  }
5107
- }), selectMode ? ( /*#__PURE__*/React__default['default'].createElement("div", {
5183
+ }), selectMode && !(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.isHiddenCheckAll) ? ( /*#__PURE__*/React__default['default'].createElement("div", {
5108
5184
  className: 'select_list_selectAll'
5109
5185
  }, /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
5110
5186
  indeterminate: indeterminate,
@@ -5765,7 +5841,7 @@ var setInitialShowColumn = function setInitialShowColumn(tableCode, columns, cal
5765
5841
  * @param arr 要判断的数据
5766
5842
  * @returns boolean
5767
5843
  */
5768
- var noEmptyArray = function noEmptyArray(arr) {
5844
+ var noEmptyArray$1 = function noEmptyArray(arr) {
5769
5845
  return Array.isArray(arr) && arr.length > 0;
5770
5846
  };
5771
5847
  //设置queryTable默认列宽
@@ -6750,7 +6826,13 @@ var AddSelect = function AddSelect(props) {
6750
6826
  setPopValue(setBusinessDefaultValue(list, recordList));
6751
6827
  setSelectedRowKeys([]);
6752
6828
  } else {
6753
- setPopValue(selectRows);
6829
+ // 修复选中的明细输入的数量 折扣等在再次添加时发生改变bug(上方选择列表只会同步记录第一下输入的值,第一下输入后popValue的item项地址改变,选择列表值不在同步修改)
6830
+ setPopValue(selectRows.map(function (item) {
6831
+ var latestItem = popvalue.find(function (popVal) {
6832
+ return popVal[mappingValueField] === item[mappingValueField];
6833
+ }) || {};
6834
+ return _objectSpread2(_objectSpread2({}, item), latestItem);
6835
+ }));
6754
6836
  setSelectedRowKeys(selectKeys);
6755
6837
  }
6756
6838
  };
@@ -6940,13 +7022,13 @@ var AddSelect = function AddSelect(props) {
6940
7022
  var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
6941
7023
  return i || i === 0;
6942
7024
  });
6943
- if (noEmptyArray(item.children)) {
7025
+ if (noEmptyArray$1(item.children)) {
6944
7026
  handleColumns(item.children, indexArrInside);
6945
7027
  } else {
6946
7028
  item.width = item.width || getItemDefaultWidth$2(item);
6947
7029
  item.onHeaderCell = function (column) {
6948
7030
  return _objectSpread2(_objectSpread2({}, item), {}, {
6949
- width: typeof column.width === 'number' ? column.width : parseInt(column.width.replace('px', '')),
7031
+ width: typeof column.width === 'number' ? column.width : parseWidth(column.width),
6950
7032
  onResize: handleResize(arr, indexArrInside, callback)
6951
7033
  });
6952
7034
  };
@@ -7992,13 +8074,13 @@ var BillEntry = function BillEntry(_ref3) {
7992
8074
  var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
7993
8075
  return i || i === 0;
7994
8076
  });
7995
- if (noEmptyArray(item.children)) {
8077
+ if (noEmptyArray$1(item.children)) {
7996
8078
  handleColumns(item.children, indexArrInside);
7997
8079
  } else {
7998
8080
  item.width = item.width || getItemDefaultWidth$2(item);
7999
8081
  item.onHeaderCell = function (column) {
8000
8082
  return _objectSpread2(_objectSpread2({}, item), {}, {
8001
- width: typeof column.width === 'number' ? column.width : parseInt(column.width.replace('px', '')),
8083
+ width: typeof column.width === 'number' ? column.width : parseWidth(column.width),
8002
8084
  onResize: handleResize(arr, indexArrInside, callback)
8003
8085
  });
8004
8086
  };
@@ -8236,6 +8318,7 @@ var handleDefaultPrefixUrl = function handleDefaultPrefixUrl(type) {
8236
8318
  break;
8237
8319
  case 'deliveryMode':
8238
8320
  case 'ruleTemplate':
8321
+ case 'priceItem':
8239
8322
  result = '/basic';
8240
8323
  break;
8241
8324
  default:
@@ -10070,7 +10153,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps, hidde
10070
10153
  var _employeeType$find;
10071
10154
  return ((_employeeType$find = employeeType.find(function (i) {
10072
10155
  return i.value === text;
10073
- })) === null || _employeeType$find === void 0 ? void 0 : _employeeType$find.text) || '- -';
10156
+ })) === null || _employeeType$find === void 0 ? void 0 : _employeeType$find.text) || '-';
10074
10157
  }
10075
10158
  }] : []), [{
10076
10159
  title: '邮箱',
@@ -10616,6 +10699,48 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps, hidde
10616
10699
  }]
10617
10700
  }, modalTableBusProps);
10618
10701
  }
10702
+ // 价格项选择器
10703
+ if (type === 'priceItem') {
10704
+ requestConfig = _objectSpread2({
10705
+ url: "".concat(prefixUrl.selectPrefix, "/priceType"),
10706
+ filter: 'qp-code,name-orGroup,like',
10707
+ mappingTextField: 'name',
10708
+ mappingTextShowKeyField: 'code',
10709
+ mappingValueField: 'code',
10710
+ otherParams: {
10711
+ 'qp-enabled-eq': true,
10712
+ sorter: 'desc-id'
10713
+ },
10714
+ sourceName: 'priceCode'
10715
+ }, requestConfigProp);
10716
+ tableSearchForm = [{
10717
+ name: 'qp-code-like',
10718
+ label: '代码'
10719
+ }, {
10720
+ name: 'qp-name-like',
10721
+ label: '名称'
10722
+ }];
10723
+ modalTableProps = _objectSpread2({
10724
+ modalTableTitle: '选择价格项',
10725
+ tableSearchForm: tableSearchForm,
10726
+ tableColumns: [{
10727
+ title: '代码',
10728
+ dataIndex: 'code'
10729
+ }, {
10730
+ title: '名称',
10731
+ dataIndex: 'name'
10732
+ }, {
10733
+ title: '创建时间',
10734
+ dataIndex: 'createTime',
10735
+ render: function render(text) {
10736
+ return handleTooltip(text, true);
10737
+ }
10738
+ }, {
10739
+ title: '创建人',
10740
+ dataIndex: 'createUserName'
10741
+ }]
10742
+ }, modalTableBusProps);
10743
+ }
10619
10744
  return {
10620
10745
  modalTableProps: modalTableProps,
10621
10746
  requestConfig: requestConfig,
@@ -12399,7 +12524,7 @@ var index$2 = (function (props) {
12399
12524
  }));
12400
12525
  });
12401
12526
 
12402
- 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";
12527
+ 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";
12403
12528
  styleInject(css_248z$a);
12404
12529
 
12405
12530
  var _excluded$7 = ["children", "titleExtra", "title", "extra", "bordered"],
@@ -12574,8 +12699,8 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
12574
12699
  if (!tableCode) return;
12575
12700
  var configvalue = config ? config.map(function (item) {
12576
12701
  return {
12577
- key: item.key,
12578
- dataIndex: item.dataIndex,
12702
+ key: item.key || item.dataIndex,
12703
+ dataIndex: item.dataIndex || item.key,
12579
12704
  width: item.width,
12580
12705
  hidden: item.hidden,
12581
12706
  fixed: item.fixed
@@ -12656,20 +12781,22 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
12656
12781
  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,
12657
12782
  hidden: columnConfig.length && !inner.length
12658
12783
  });
12659
- }) : _toConsumableArray(datasource);
12784
+ }) : _toConsumableArray(datasource.map(function (inner) {
12785
+ return _objectSpread2(_objectSpread2({}, inner), {}, {
12786
+ key: inner.key || inner.dataIndex
12787
+ });
12788
+ }));
12660
12789
  _this.setState({
12661
12790
  dataSource: initialDataSourceData.map(function (item) {
12662
12791
  return _objectSpread2(_objectSpread2({}, item), {}, {
12663
12792
  key: item.key || item.dataIndex
12664
12793
  });
12665
12794
  }),
12666
- sortDataSource: initialDataSourceData.filter(function (item) {
12667
- return !item.hidden;
12668
- }).map(function (item) {
12795
+ sortDataSource: _toConsumableArray(showColumns.map(function (item) {
12669
12796
  return _objectSpread2(_objectSpread2({}, item), {}, {
12670
12797
  key: item.key || item.dataIndex
12671
12798
  });
12672
- })
12799
+ }))
12673
12800
  });
12674
12801
  };
12675
12802
  _this.isColumnsChange = function () {
@@ -12873,7 +13000,8 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
12873
13000
  var _this$props$datasourc = _this.props.datasource,
12874
13001
  datasource = _this$props$datasourc === void 0 ? [] : _this$props$datasourc;
12875
13002
  _this.setState({
12876
- visible: true
13003
+ visible: true,
13004
+ onSearchSort: false
12877
13005
  });
12878
13006
  _this.setInitValue(datasource);
12879
13007
  };
@@ -13018,7 +13146,47 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
13018
13146
  _this.setInitValue(datasource);
13019
13147
  };
13020
13148
  _this.handleResetSetting = function () {
13021
- _this.patchUserColumnConfig('');
13149
+ var _this$props4 = _this.props,
13150
+ setShowColumns = _this$props4.setShowColumns,
13151
+ _this$props4$datasour = _this$props4.datasource,
13152
+ reSetInitialShowColumn = _this$props4.reSetInitialShowColumn,
13153
+ appRequestConfig = _this$props4.appRequestConfig;
13154
+ var tableCode = _this.props.tableCode;
13155
+ return new Promise(function (resolve, reject) {
13156
+ requestUtil({
13157
+ url: handleRequestUrl('/user', '/appConfig/saveUserOrder', appRequestConfig),
13158
+ method: 'POST',
13159
+ data: {
13160
+ code: tableCode,
13161
+ detail: ''
13162
+ }
13163
+ }).then(function (res) {
13164
+ if (judgeIsRequestSuccess(res === null || res === void 0 ? void 0 : res.data)) {
13165
+ var config = localStorage.getItem(ENUM.BROWSER_CACHE.COLUMN_CONDITION) || '[]';
13166
+ var configArray = JSON.parse(config);
13167
+ var currentSetting = configArray.filter(function (item) {
13168
+ return item.code === tableCode;
13169
+ });
13170
+ if (currentSetting.length) {
13171
+ currentSetting[0].detail = JSON.stringify([]);
13172
+ } else {
13173
+ configArray.push({
13174
+ code: tableCode,
13175
+ detail: JSON.stringify([])
13176
+ });
13177
+ }
13178
+ localStorage.setItem(ENUM.BROWSER_CACHE.COLUMN_CONDITION, JSON.stringify(configArray));
13179
+ antd.message.success('重置表头列成功!');
13180
+ reSetInitialShowColumn(true);
13181
+ _this.setState({
13182
+ visible: false
13183
+ });
13184
+ } else {
13185
+ antd.message.error('重置表头列自定义失败,请稍后尝试');
13186
+ reject('');
13187
+ }
13188
+ });
13189
+ });
13022
13190
  };
13023
13191
  _this.onSearch = function (e) {
13024
13192
  _this.setState({
@@ -13049,8 +13217,8 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
13049
13217
  return _createClass(SortableTable, [{
13050
13218
  key: "componentWillReceiveProps",
13051
13219
  value: function componentWillReceiveProps(nextProps) {
13052
- var _this$props4;
13053
- 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)) {
13220
+ var _this$props5;
13221
+ 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)) {
13054
13222
  this.setInitValue((nextProps === null || nextProps === void 0 ? void 0 : nextProps.datasource) || []);
13055
13223
  }
13056
13224
  }
@@ -13077,7 +13245,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
13077
13245
  });
13078
13246
  return /*#__PURE__*/React__default['default'].createElement("div", {
13079
13247
  className: 'sort_table_wrapper'
13080
- }, /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
13248
+ }, visible && /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
13081
13249
  title: "\u8BBE\u7F6E\u8868\u5934\u5185\u5BB9",
13082
13250
  wrapClassName: 'sort_table_wrapper',
13083
13251
  width: 820,
@@ -13212,10 +13380,14 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
13212
13380
  })), /*#__PURE__*/React__default['default'].createElement(antd.Table, {
13213
13381
  pagination: false,
13214
13382
  showHeader: false,
13215
- dataSource: onSearchSort ? sortDataSource.filter(function (item) {
13383
+ dataSource: (onSearchSort ? sortDataSource.filter(function (item) {
13216
13384
  var _item$title6;
13217
13385
  return (item === null || item === void 0 ? void 0 : (_item$title6 = item.title) === null || _item$title6 === void 0 ? void 0 : _item$title6.indexOf(onSearchSort)) > -1;
13218
- }) : sortDataSource,
13386
+ }) : sortDataSource).map(function (item) {
13387
+ return _objectSpread2(_objectSpread2({}, item), {}, {
13388
+ key: item.key || item.dataIndex
13389
+ });
13390
+ }),
13219
13391
  columns: this.columns,
13220
13392
  rowKey: "key",
13221
13393
  // rowSelection={rowSelection}
@@ -13415,13 +13587,13 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
13415
13587
  var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
13416
13588
  return i || i === 0;
13417
13589
  });
13418
- if (noEmptyArray(item.children)) {
13590
+ if (noEmptyArray$1(item.children)) {
13419
13591
  handleColumns(item.children, indexArrInside);
13420
13592
  } else {
13421
13593
  item.width = item.width || getItemDefaultWidth$2(item);
13422
13594
  item.onHeaderCell = function (column) {
13423
13595
  return _objectSpread2(_objectSpread2({}, item), {}, {
13424
- width: typeof column.width === 'number' ? column.width : parseInt(column.width.replace('px', '')),
13596
+ width: typeof column.width === 'number' ? column.width : parseWidth(column.width),
13425
13597
  onResize: _this2.handleResize(indexArrInside)
13426
13598
  });
13427
13599
  };
@@ -13491,6 +13663,13 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
13491
13663
  showColumns: showColumns
13492
13664
  });
13493
13665
  };
13666
+ _this.reSetInitialShowColumn = function () {
13667
+ var columns = _this.props.columns;
13668
+ var showColumns = getShowColumns(columns, []);
13669
+ _this.setState({
13670
+ showColumns: showColumns
13671
+ });
13672
+ };
13494
13673
  _this.setShowColumns = function (newColumns) {
13495
13674
  _this.setState({
13496
13675
  showColumns: _toConsumableArray(newColumns)
@@ -13649,7 +13828,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
13649
13828
  var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
13650
13829
  return i || i === 0;
13651
13830
  });
13652
- if (noEmptyArray(item.children)) {
13831
+ if (noEmptyArray$1(item.children)) {
13653
13832
  handleColumns(item.children, indexArrInside);
13654
13833
  } else {
13655
13834
  item.width = item.width || getItemDefaultWidth$2(item);
@@ -13692,6 +13871,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
13692
13871
  setShowColumns: this.setShowColumns,
13693
13872
  showColumns: this.state.showColumns,
13694
13873
  datasource: columns || [],
13874
+ reSetInitialShowColumn: this.reSetInitialShowColumn,
13695
13875
  tableCode: tableCode,
13696
13876
  appRequestConfig: appRequestConfig
13697
13877
  }))), /*#__PURE__*/React__default['default'].createElement(antd.Table, _objectSpread2({
@@ -13815,9 +13995,9 @@ function matchRoute(path, routeObj, hideRouteObj) {
13815
13995
  var getDetailMatchRoute = function getDetailMatchRoute(path, routeObj, hideRouteArray, _ref) {
13816
13996
  var pathToRegexp = _ref.pathToRegexp;
13817
13997
  var newPath = path.split('?')[0];
13818
- var hideRouteObj = _defineProperty({}, newPath, hideRouteArray.find(function (itemRoute) {
13998
+ var hideRouteObj = _defineProperty({}, newPath, Array.isArray(hideRouteArray) && (hideRouteArray === null || hideRouteArray === void 0 ? void 0 : hideRouteArray.find(function (itemRoute) {
13819
13999
  return pathToRegexp(itemRoute.path).test(newPath);
13820
- }));
14000
+ })));
13821
14001
  var matchedRoute = matchRoute(newPath, routeObj, hideRouteObj);
13822
14002
  if (matchedRoute) {
13823
14003
  var modeTypeText = path.match(/.*\/action\/.*/) ? '' : getModeTypeText(path);
@@ -13833,7 +14013,7 @@ var getDetailMatchRoute = function getDetailMatchRoute(path, routeObj, hideRoute
13833
14013
  return undefined;
13834
14014
  };
13835
14015
 
13836
- 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";
14016
+ 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";
13837
14017
  styleInject(css_248z$c);
13838
14018
 
13839
14019
  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";
@@ -13945,7 +14125,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
13945
14125
  return pathKey ? breadcrumbNameMap[pathKey] : undefined;
13946
14126
  };
13947
14127
  var getPageTitle = function getPageTitle(pathname) {
13948
- var _ref3 = localStorage.getItem(getCommonInfoKey()) && JSON.parse(localStorage.getItem('commonInfo')) || {},
14128
+ var _ref3 = localStorage.getItem(getCommonInfoKey()) && JSON.parse(localStorage.getItem(getCommonInfoKey())) || {},
13949
14129
  _ref3$hideRouteArray = _ref3.hideRouteArray,
13950
14130
  hideRouteArray = _ref3$hideRouteArray === void 0 ? [] : _ref3$hideRouteArray;
13951
14131
  var currRouterData = matchParamsPath("".concat(basePath).concat(pathname), breadcrumbNameMap) || getDetailMatchRoute("".concat(basePath).concat(pathname), breadcrumbNameMap, hideRouteArray, {
@@ -14099,7 +14279,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
14099
14279
  return true;
14100
14280
  });
14101
14281
 
14102
- 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";
14282
+ 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";
14103
14283
  styleInject(css_248z$e);
14104
14284
 
14105
14285
  var _excluded$d = ["children"];
@@ -14549,7 +14729,8 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
14549
14729
  }];
14550
14730
  _this.showModal = function () {
14551
14731
  _this.setState({
14552
- visible: true
14732
+ visible: true,
14733
+ onSearchSort: false
14553
14734
  });
14554
14735
  _this.setInitValue();
14555
14736
  };
@@ -14691,7 +14872,48 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
14691
14872
  _this.setInitValue(true);
14692
14873
  };
14693
14874
  _this.handleResetSetting = function () {
14694
- _this.patchUserColumnConfig('');
14875
+ var _this$props3 = _this.props,
14876
+ setShowColumns = _this$props3.setShowColumns,
14877
+ _this$props3$datasour = _this$props3.datasource,
14878
+ setInitialTableInfo = _this$props3.setInitialTableInfo,
14879
+ appRequestConfig = _this$props3.appRequestConfig;
14880
+ var that = _this;
14881
+ var bsTableCode = _this.state.bsTableCode;
14882
+ return new Promise(function (resolve, reject) {
14883
+ requestUtil({
14884
+ url: handleRequestUrl('/user', '/appConfig/saveUserOrder', appRequestConfig),
14885
+ method: 'POST',
14886
+ data: {
14887
+ code: that.state.bsTableCode,
14888
+ detail: ''
14889
+ }
14890
+ }).then(function (res) {
14891
+ if (judgeIsRequestSuccess(res === null || res === void 0 ? void 0 : res.data)) {
14892
+ var config = localStorage.getItem(ENUM.BROWSER_CACHE.COLUMN_CONDITION) || '[]';
14893
+ var configArray = JSON.parse(config);
14894
+ var currentSetting = configArray.filter(function (item) {
14895
+ return item.code === bsTableCode;
14896
+ });
14897
+ if (currentSetting.length) {
14898
+ currentSetting[0].detail = JSON.stringify([]);
14899
+ } else {
14900
+ configArray.push({
14901
+ code: bsTableCode,
14902
+ detail: JSON.stringify([])
14903
+ });
14904
+ }
14905
+ localStorage.setItem(ENUM.BROWSER_CACHE.COLUMN_CONDITION, JSON.stringify(configArray));
14906
+ antd.message.success('重置表头列成功!');
14907
+ setInitialTableInfo(true);
14908
+ _this.setState({
14909
+ visible: false
14910
+ });
14911
+ } else {
14912
+ antd.message.error('重置表头列自定义失败,请稍后尝试');
14913
+ reject('');
14914
+ }
14915
+ });
14916
+ });
14695
14917
  };
14696
14918
  _this.onSearch = function (e) {
14697
14919
  _this.setState({
@@ -14709,10 +14931,10 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
14709
14931
  return _createClass(SortableTable, [{
14710
14932
  key: "componentDidMount",
14711
14933
  value: function componentDidMount() {
14712
- var _this$props3 = this.props,
14713
- datasource = _this$props3.datasource,
14714
- showColumn = _this$props3.showColumn,
14715
- bsTableCode = _this$props3.bsTableCode;
14934
+ var _this$props4 = this.props,
14935
+ datasource = _this$props4.datasource,
14936
+ showColumn = _this$props4.showColumn,
14937
+ bsTableCode = _this$props4.bsTableCode;
14716
14938
  var config = this.getConfigFromlocalstorage();
14717
14939
  this.setState({
14718
14940
  dataSource: datasource.map(function (item) {
@@ -14925,10 +15147,14 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
14925
15147
  })), /*#__PURE__*/React__default['default'].createElement(antd.Table, {
14926
15148
  pagination: false,
14927
15149
  showHeader: false,
14928
- dataSource: onSearchSort ? sortDataSource.filter(function (item) {
15150
+ dataSource: (onSearchSort ? sortDataSource.filter(function (item) {
14929
15151
  var _renderToString2;
14930
15152
  return ((_renderToString2 = renderToString(item === null || item === void 0 ? void 0 : item.title)) === null || _renderToString2 === void 0 ? void 0 : _renderToString2.indexOf(onSearchSort)) > -1;
14931
- }) : sortDataSource,
15153
+ }) : sortDataSource).map(function (item) {
15154
+ return _objectSpread2(_objectSpread2({}, item), {}, {
15155
+ key: item.key || item.dataIndex
15156
+ });
15157
+ }),
14932
15158
  columns: this.columns,
14933
15159
  rowKey: "key",
14934
15160
  // rowSelection={rowSelection}
@@ -15500,12 +15726,12 @@ var BsSulaQueryTable = (function (props) {
15500
15726
  return [];
15501
15727
  };
15502
15728
  /**
15503
- * 根据保存的配置和原始配置,获取设置的字段或列。
15504
- * @param savedConfig 保存的配置数组,可能包含字段或列的配置。
15505
- * @param originConfig 原始配置数组,包含完整的字段或列信息。
15506
- * @param type 字段或列的类型,用于确定配置的属性。
15507
- * @returns 返回根据保存的配置处理后的字段或列数组,如果未保存任何配置,则返回原始配置。
15508
- */
15729
+ * 根据保存的配置和原始配置,获取设置的字段或列。
15730
+ * @param savedConfig 保存的配置数组,可能包含字段或列的配置。
15731
+ * @param originConfig 原始配置数组,包含完整的字段或列信息。
15732
+ * @param type 字段或列的类型,用于确定配置的属性。
15733
+ * @returns 返回根据保存的配置处理后的字段或列数组,如果未保存任何配置,则返回原始配置。
15734
+ */
15509
15735
  var getSettingFieldOrColumn = function getSettingFieldOrColumn(savedConfig, originConfig, type) {
15510
15736
  /**
15511
15737
  * 判断值是否为字符串数组。
@@ -15582,28 +15808,15 @@ var BsSulaQueryTable = (function (props) {
15582
15808
  _useState10 = _slicedToArray(_useState9, 2),
15583
15809
  showExportColumn = _useState10[0],
15584
15810
  setShowExportColumns = _useState10[1]; // 导出列字段
15585
- var _useState11 = React$1.useState('100vh'),
15811
+ var _useState11 = React$1.useState(''),
15586
15812
  _useState12 = _slicedToArray(_useState11, 2),
15587
15813
  height = _useState12[0],
15588
15814
  setHeight = _useState12[1];
15589
15815
  var sortTableRef = React$1.useRef(null);
15590
15816
  var searchTableRef = React$1.useRef(null);
15591
15817
  var exportTableRef = React$1.useRef(null);
15818
+ var queryTableRef = React$1.useRef(null);
15592
15819
  var bsTableCodeExport = "".concat(bsTableCode, "___Export"); //设置导出列字段的唯一标识
15593
- // 获取table高度
15594
- var getTableHeight = function getTableHeight() {
15595
- setTimeout(function () {
15596
- var _window$top, _document$querySelect, _document$querySelect2, _document$querySelect3, _document$querySelect4;
15597
- var cancelHeight = window.top == window ? 303 : 223;
15598
- var isFullScreen = window.top.document.fullScreen || window.top.document.webkitIsFullScreen || window.top.document.mozFullScreen;
15599
- // wujie子应用iframe首次加载获取不到client以及dom元素高度兼容处理
15600
- 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;
15601
- 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;
15602
- 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;
15603
- 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';
15604
- setHeight(h);
15605
- }, 0);
15606
- };
15607
15820
  //监测是否按下esc键
15608
15821
  function checkFull() {
15609
15822
  var _window, _window$parent;
@@ -15612,7 +15825,7 @@ var BsSulaQueryTable = (function (props) {
15612
15825
  if (isFull == undefined) isFull = false;
15613
15826
  return isFull;
15614
15827
  }
15615
- var setInitialTableInfo = function setInitialTableInfo() {
15828
+ var setInitialTableInfo = function setInitialTableInfo(isReset) {
15616
15829
  var resourceCodeArray = {};
15617
15830
  var uuIdList = [];
15618
15831
  if (props.actionsRender && props.actionsRender.length) {
@@ -15670,7 +15883,7 @@ var BsSulaQueryTable = (function (props) {
15670
15883
  var parsedWidth = parseInt(widthStr.replace('px', ''));
15671
15884
  return isNaN(parsedWidth) ? 0 : parsedWidth;
15672
15885
  };
15673
- var showColumns = getSettingFieldOrColumn(columnConfig, columns, 'columns');
15886
+ var showColumns = getSettingFieldOrColumn(isReset ? [] : columnConfig, columns, 'columns');
15674
15887
  showColumns.forEach(function (item, index) {
15675
15888
  item.width = item.width || getItemDefaultWidth(item);
15676
15889
  handleBssulaColumnsSpecialParams(item);
@@ -15706,7 +15919,7 @@ var BsSulaQueryTable = (function (props) {
15706
15919
  };
15707
15920
  //组件初始挂载
15708
15921
  React$1.useEffect(function () {
15709
- getTableHeight();
15922
+ // getTableHeight();
15710
15923
  setInitialTableInfo();
15711
15924
  setInitialSearchFieldsInfo();
15712
15925
  window.addEventListener('resize', function (e) {
@@ -15740,7 +15953,7 @@ var BsSulaQueryTable = (function (props) {
15740
15953
  setInitialTableInfo();
15741
15954
  }, [props === null || props === void 0 ? void 0 : props.refreshColumns]);
15742
15955
  var watchWinResize = _.debounce(function () {
15743
- getTableHeight();
15956
+ // getTableHeight();
15744
15957
  if (!checkFull()) {
15745
15958
  // addTabsNavStyle(true);
15746
15959
  // 全屏下按键esc后要执行的动作
@@ -15767,7 +15980,7 @@ var BsSulaQueryTable = (function (props) {
15767
15980
  };
15768
15981
  // 处理 table 基本参数
15769
15982
  var setTableProps = function setTableProps() {
15770
- var _tableProps, _tableProps$initialPa, _tableProps2, _tableProps2$initialP;
15983
+ var _tableProps, _tableProps$initialPa, _tableProps2, _tableProps3, _tableProps3$initialP;
15771
15984
  var tableProps = value.tableProps || {};
15772
15985
  tableProps = _objectSpread2(_objectSpread2({}, tableProps), {}, {
15773
15986
  size: value.size || 'middle',
@@ -15795,14 +16008,14 @@ var BsSulaQueryTable = (function (props) {
15795
16008
  rowClassName: function rowClassName(record, index) {
15796
16009
  return index % 2 === 0 ? 'table_base' : 'table_odd';
15797
16010
  },
15798
- components: {
16011
+ components: _objectSpread2({
15799
16012
  header: {
15800
16013
  cell: ResizeableTitle$2
15801
16014
  }
15802
- }
16015
+ }, (_tableProps2 = tableProps) === null || _tableProps2 === void 0 ? void 0 : _tableProps2.components)
15803
16016
  });
15804
16017
  // @ts-ignore
15805
- if ((_tableProps2 = tableProps) === null || _tableProps2 === void 0 ? void 0 : (_tableProps2$initialP = _tableProps2.initialPaging) === null || _tableProps2$initialP === void 0 ? void 0 : _tableProps2$initialP.pagination) {
16018
+ if ((_tableProps3 = tableProps) === null || _tableProps3 === void 0 ? void 0 : (_tableProps3$initialP = _tableProps3.initialPaging) === null || _tableProps3$initialP === void 0 ? void 0 : _tableProps3$initialP.pagination) {
15806
16019
  // @ts-ignore
15807
16020
  tableProps.initialPaging.pagination.showSizeChanger = true;
15808
16021
  }
@@ -16060,23 +16273,24 @@ var BsSulaQueryTable = (function (props) {
16060
16273
  return _objectSpread2(_objectSpread2({}, config), {}, {
16061
16274
  summary: props.summary,
16062
16275
  summaryList: props.summaryList ? getTableSummaryInfo : undefined,
16063
- statusMapping: props.statusMapping
16276
+ statusMapping: props.statusMapping,
16277
+ isBsSulaQueryTable: true
16064
16278
  });
16065
- }, [
16066
- // value,
16067
- checkedList, showColumn, props.statusMapping, showSearchFields, expandedRowKeys]);
16279
+ }, [checkedList, showColumn, props.statusMapping, showSearchFields, expandedRowKeys]);
16068
16280
  return /*#__PURE__*/React__default['default'].createElement("div", {
16069
16281
  id: "bs-sula-query-table"
16070
16282
  }, /*#__PURE__*/React__default['default'].createElement(MemoQueryTable, _objectSpread2({}, memoConfig)), /*#__PURE__*/React__default['default'].createElement(SortableTable$1, {
16071
16283
  ref: sortTableRef,
16072
16284
  setShowColumns: setShowColumns,
16073
16285
  showColumn: showColumn,
16286
+ setInitialTableInfo: setInitialTableInfo,
16074
16287
  datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
16075
16288
  bsTableCode: bsTableCode,
16076
16289
  onlyModal: true
16077
16290
  }), (value === null || value === void 0 ? void 0 : (_value$exportConfig7 = value.exportConfig) === null || _value$exportConfig7 === void 0 ? void 0 : _value$exportConfig7.settingColumns) && ( /*#__PURE__*/React__default['default'].createElement(SortableTable$1, {
16078
16291
  ref: exportTableRef,
16079
16292
  setShowColumns: setShowExportColumns,
16293
+ setInitialTableInfo: setInitialTableInfo,
16080
16294
  showColumn: showExportColumn,
16081
16295
  datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
16082
16296
  bsTableCode: bsTableCodeExport,
@@ -16341,7 +16555,7 @@ var AllFunc = function AllFunc(props) {
16341
16555
  })))));
16342
16556
  };
16343
16557
 
16344
- 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";
16558
+ 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";
16345
16559
  styleInject(css_248z$i);
16346
16560
 
16347
16561
  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";
@@ -17160,7 +17374,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
17160
17374
  var afterStr = newName.substr(index + keyWord.length);
17161
17375
  return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("span", null, beforeStr), /*#__PURE__*/React__default['default'].createElement("span", {
17162
17376
  style: {
17163
- color: '#1890ff'
17377
+ color: '#005cff'
17164
17378
  }
17165
17379
  }, keyWord), /*#__PURE__*/React__default['default'].createElement("span", null, afterStr));
17166
17380
  }
@@ -18003,7 +18217,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
18003
18217
  })));
18004
18218
  });
18005
18219
 
18006
- 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";
18220
+ 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";
18007
18221
  styleInject(css_248z$n);
18008
18222
 
18009
18223
  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=";
@@ -18168,8 +18382,8 @@ var DrawContent$1 = function DrawContent(_ref) {
18168
18382
  return /*#__PURE__*/React__default['default'].createElement("div", {
18169
18383
  className: 'left_item',
18170
18384
  style: {
18171
- borderLeft: currentOneLevel === item.path ? '2px solid #1890ff' : 'none',
18172
- color: currentOneLevel === item.path ? '#1890ff' : '#000000'
18385
+ borderLeft: currentOneLevel === item.path ? '2px solid #005cff' : 'none',
18386
+ color: currentOneLevel === item.path ? '#005cff' : '#000000'
18173
18387
  },
18174
18388
  onClick: function onClick(e) {
18175
18389
  e.stopPropagation();
@@ -18419,7 +18633,7 @@ var CustomerMenuHeader = function CustomerMenuHeader(_ref) {
18419
18633
  })));
18420
18634
  };
18421
18635
 
18422
- 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";
18636
+ 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";
18423
18637
  styleInject(css_248z$o);
18424
18638
 
18425
18639
  /*
@@ -18778,14 +18992,12 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
18778
18992
  var _dicData = [];
18779
18993
  _dicData = dicDataTextValue[dicCode];
18780
18994
  var endPerformance1 = performance.now();
18781
- console.log("字典方法时间花费1:", endPerformance1 - startPerformance);
18782
- if (value === undefined) return "- -";
18995
+ if (value === undefined) return "-";
18783
18996
  if (!_dicData) {
18784
18997
  // throw new Error(`当前${dicCode}字典值合没有${value}的数据`)
18785
18998
  return value;
18786
18999
  }
18787
19000
  var endPerformance = performance.now();
18788
- console.log("字典方法时间花费:", endPerformance - startPerformance);
18789
19001
  return _dicData[value] || value;
18790
19002
  }
18791
19003
  var dicData = [];
@@ -18794,7 +19006,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
18794
19006
  dicData = storageDic[dicCode];
18795
19007
  }
18796
19008
  if (!dicData || !dicData.length) ;
18797
- if (value === undefined) return '- -';
19009
+ if (value === undefined) return '-';
18798
19010
  var dicItemArray = (_dicData2 = dicData) === null || _dicData2 === void 0 ? void 0 : _dicData2.filter(function (item) {
18799
19011
  return item.value === value.toString();
18800
19012
  });
@@ -18805,11 +19017,11 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
18805
19017
  return dicItemArray[0].text;
18806
19018
  };
18807
19019
  _this.timeFormat = function (timeStr, format, notNeedConvertTimeZone) {
18808
- if (!timeStr) return '- -';
19020
+ if (!timeStr) return '-';
18809
19021
  if (notNeedConvertTimeZone) {
18810
19022
  return moment__default['default'](timeStr).format(format);
18811
19023
  }
18812
- return moment__default['default'](timeStr).add(8, 'hours').format(format) || '- -';
19024
+ return moment__default['default'](timeStr).add(8, 'hours').format(format) || '-';
18813
19025
  };
18814
19026
  _this.onChange = function (key) {
18815
19027
  if (key !== _this.state.activeKey) {
@@ -26378,7 +26590,7 @@ function registerSuggestions(monaco) {
26378
26590
  });
26379
26591
  }
26380
26592
 
26381
- 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";
26593
+ 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";
26382
26594
  styleInject(css_248z$r);
26383
26595
 
26384
26596
  var Title = antd.Typography.Title;
@@ -28466,7 +28678,7 @@ var FieldsSettingsTable = (function (props) {
28466
28678
  title: '显示类型',
28467
28679
  render: function render(_ref3) {
28468
28680
  var text = _ref3.text;
28469
- return inputType[text] || '- -';
28681
+ return inputType[text] || '-';
28470
28682
  },
28471
28683
  width: 80
28472
28684
  }, {
@@ -28474,7 +28686,7 @@ var FieldsSettingsTable = (function (props) {
28474
28686
  title: '字段类型',
28475
28687
  render: function render(_ref4) {
28476
28688
  var text = _ref4.text;
28477
- return valueType[text] || '- -';
28689
+ return valueType[text] || '-';
28478
28690
  },
28479
28691
  width: 80
28480
28692
  }, {
@@ -29404,6 +29616,807 @@ var isObj = function isObj(object) {
29404
29616
  var dateFormat = 'YYYY-MM-DD';
29405
29617
  var fullDateFormat = 'YYYY-MM-DD HH:mm:ss';
29406
29618
 
29619
+ // 处理表头
29620
+ var getColumnItem = function getColumnItem(_ref) {
29621
+ var item = _ref.item;
29622
+ var ites = {
29623
+ title: item.name,
29624
+ key: item.code,
29625
+ render: function render(_ref2) {
29626
+ var text = _ref2.text,
29627
+ record = _ref2.record;
29628
+ var showText = (record === null || record === void 0 ? void 0 : record["".concat(item.code, "_Name")]) || text;
29629
+ return showText;
29630
+ }
29631
+ };
29632
+ // 处理列展示类型基础数据
29633
+ if (item.choiceType == 20) {
29634
+ // 数据字典
29635
+ var dictionaryCode;
29636
+ try {
29637
+ if (JSON.parse(item.info || '{}').dictionaryCode) {
29638
+ dictionaryCode = JSON.parse(item.info || '{}').dictionaryCode;
29639
+ }
29640
+ } catch (e) {
29641
+ console.log('error', e);
29642
+ }
29643
+ ites.sourceList = dictionaryCode && getDictionarySource(dictionaryCode) || [];
29644
+ }
29645
+ if (item.choiceType == 10) {
29646
+ // 自定义枚举值
29647
+ var enumeration;
29648
+ try {
29649
+ if (JSON.parse(item.info || '{}').enumeration) {
29650
+ enumeration = JSON.parse(item.info || '{}').enumeration;
29651
+ }
29652
+ } catch (e) {
29653
+ console.log('error', e);
29654
+ }
29655
+ ites.sourceList = enumeration && Object.keys(enumeration).map(function (key) {
29656
+ return {
29657
+ value: key,
29658
+ text: enumeration[key]
29659
+ };
29660
+ }) || [];
29661
+ }
29662
+ return ites;
29663
+ };
29664
+ var formatListName = function formatListName(list, columns) {
29665
+ if (!(list === null || list === void 0 ? void 0 : list.length)) return [];
29666
+ if (!(columns === null || columns === void 0 ? void 0 : columns.length)) return list; // 下拉框无需格式化
29667
+ return list.map(function (item) {
29668
+ var resultItem = _objectSpread2({}, item);
29669
+ // 弹窗table编码展示名称
29670
+ var column = columns.filter(function (col) {
29671
+ var _Object$keys, _col$sourceList;
29672
+ 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);
29673
+ }) || [];
29674
+ Array.isArray(column) && (column === null || column === void 0 ? void 0 : column.length) && column.forEach(function (element) {
29675
+ if (element === null || element === void 0 ? void 0 : element.sourceList) {
29676
+ var _element$sourceList$f;
29677
+ resultItem["".concat(element.key, "_Name")] = element === null || element === void 0 ? void 0 : (_element$sourceList$f = element.sourceList.find(function (source) {
29678
+ return source.value == item[element.key];
29679
+ })) === null || _element$sourceList$f === void 0 ? void 0 : _element$sourceList$f.text;
29680
+ }
29681
+ });
29682
+ return resultItem;
29683
+ });
29684
+ };
29685
+
29686
+ var _excluded$j = ["sorter"];
29687
+ /**
29688
+ * 删掉查询条件的qp- 和 -eq等
29689
+ * @param {object} data
29690
+ * @return {object}
29691
+ * */
29692
+ function deleteQuerySymbol(data) {
29693
+ var result = {};
29694
+ Object.keys(data).map(function (item) {
29695
+ var newKey = deleteQuerySymbolSingle(item);
29696
+ result[newKey] = data[item];
29697
+ });
29698
+ return result;
29699
+ }
29700
+ function deleteQuerySymbolSingle(key) {
29701
+ return key.replace(/(qp-|-\w+)/g, '');
29702
+ }
29703
+
29704
+ // 把{G1001F1001:123} 换成 {G1001:{F1001: 123}}
29705
+ function convertToMapByKey(data) {
29706
+ var result = {};
29707
+ Object.keys(data).map(function (item) {
29708
+ var groupCode = item.match(/G\d+/);
29709
+ var fieldCode = item.match(/F\d+/);
29710
+ if ((groupCode === null || groupCode === void 0 ? void 0 : groupCode.length) > 0 && (fieldCode === null || fieldCode === void 0 ? void 0 : fieldCode.length) > 0) {
29711
+ if (result[groupCode]) {
29712
+ result[groupCode][fieldCode] = data[item];
29713
+ } else if (!result[groupCode]) {
29714
+ result[groupCode] = _defineProperty({}, fieldCode, data[item]);
29715
+ }
29716
+ }
29717
+ });
29718
+ return result;
29719
+ }
29720
+
29721
+ /**
29722
+ * 去掉查询表格的qp-eq -in,与普通表格一样的格式
29723
+ * @param{string} prop 键
29724
+ * @param{boolean} flag 是不是查询表格
29725
+ * */
29726
+ function convertProp(prop, flag) {
29727
+ var _prop$replace, _prop$replace$replace, _prop$replace$replace2, _prop$replace$replace3;
29728
+ 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;
29729
+ }
29730
+ // 获取元数据,是表格中列的数据来源
29731
+ function getMetaData(_x) {
29732
+ return _getMetaData.apply(this, arguments);
29733
+ }
29734
+
29735
+ // 获取数据
29736
+ function _getMetaData() {
29737
+ _getMetaData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
29738
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
29739
+ while (1) switch (_context.prev = _context.next) {
29740
+ case 0:
29741
+ return _context.abrupt("return", new Promise(function (resolve, reject) {
29742
+ umi.request('/basic/entityProperty/listNoPage', {
29743
+ params: {
29744
+ 'qp-entityId-eq': id
29745
+ }
29746
+ }).then(function (res) {
29747
+ resolve(res.data);
29748
+ }).catch(function (error) {
29749
+ console.log(error, 'error');
29750
+ reject([]);
29751
+ });
29752
+ }));
29753
+ case 1:
29754
+ case "end":
29755
+ return _context.stop();
29756
+ }
29757
+ }, _callee);
29758
+ }));
29759
+ return _getMetaData.apply(this, arguments);
29760
+ }
29761
+ var remoteFetch = function remoteFetch(requestConfig, coloumns) {
29762
+ return {
29763
+ url: '/basic/function/sendRequest',
29764
+ method: 'post',
29765
+ convertParams: function convertParams(_ref) {
29766
+ var _requestConfig$method;
29767
+ var params = _ref.params;
29768
+ var sorter = params.sorter,
29769
+ paramsTemp = _objectWithoutProperties(params, _excluded$j);
29770
+ var queryParams = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, requestConfig.params), requestConfig.body), ___default['default'].omit(paramsTemp, ['filters', 'current'])), (paramsTemp === null || paramsTemp === void 0 ? void 0 : paramsTemp.filters) || {}), {
29771
+ currentPage: (paramsTemp === null || paramsTemp === void 0 ? void 0 : paramsTemp.currentPage) || paramsTemp.current || 1
29772
+ });
29773
+
29774
+ // 清除值为空的
29775
+ Object.keys(queryParams).forEach(function (itemKey) {
29776
+ if (judgeIsEmpty(queryParams[itemKey])) {
29777
+ delete queryParams[itemKey];
29778
+ }
29779
+ });
29780
+ return {
29781
+ path: requestConfig.url,
29782
+ httpMethod: requestConfig === null || requestConfig === void 0 ? void 0 : (_requestConfig$method = requestConfig.method) === null || _requestConfig$method === void 0 ? void 0 : _requestConfig$method.toUpperCase(),
29783
+ serviceName: requestConfig.serviceName,
29784
+ requestBody: JSON.stringify(queryParams),
29785
+ header: handleRequestHeader().headers
29786
+ };
29787
+ },
29788
+ converter: function converter(_ref2) {
29789
+ var data = _ref2.data;
29790
+ return _objectSpread2({}, handleConvertResponse(handleList(data, coloumns), handleListToTal(data)));
29791
+ }
29792
+ };
29793
+ };
29794
+ function handleList(data, coloumns) {
29795
+ 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 : [];
29796
+ return formatListName(resultList, coloumns);
29797
+ }
29798
+ function handleListToTal(data) {
29799
+ return Array.isArray(data) ? data.length : data.total || data.totalCount;
29800
+ }
29801
+
29802
+ // 路径
29803
+ function convertPath(path, formData) {
29804
+ var matchedGF = path.match(/G\d+F\d+/g);
29805
+ var matchedJavaCode = path.match(/{\w+\.\w+}/g);
29806
+ var url = path;
29807
+ if (!matchedGF && !matchedJavaCode) return url;
29808
+ if (matchedGF === null || matchedGF === void 0 ? void 0 : matchedGF.length) {
29809
+ matchedGF.map(function (item) {
29810
+ var _formData$group;
29811
+ var group = item.match(/G\d+/);
29812
+ var field = item.match(/F\d+/);
29813
+ 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]);
29814
+ url = url.replace(item, replaceValue);
29815
+ });
29816
+ } else if (matchedJavaCode === null || matchedJavaCode === void 0 ? void 0 : matchedJavaCode.length) {
29817
+ matchedJavaCode.map(function (item) {
29818
+ var group, field;
29819
+ try {
29820
+ var val = item.replace(/[{}]/g, '').split('.');
29821
+ group = val[0];
29822
+ field = val[1];
29823
+ } catch (e) {}
29824
+ if (group && field) {
29825
+ var _formData$group2;
29826
+ 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]);
29827
+ url = url.replace(item, replaceValue);
29828
+ }
29829
+ });
29830
+ }
29831
+ return url;
29832
+ }
29833
+
29834
+ // 组装数据接口请求
29835
+ function assembleRequest(customSelectorConfig, _ref3) {
29836
+ var _customSelectorConfig, _customSelectorConfig2, _customSelectorConfig3;
29837
+ var isSearchForm = _ref3.isSearchForm,
29838
+ newestFormData = _ref3.newestFormData,
29839
+ searchFormData = _ref3.searchFormData;
29840
+ 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];
29841
+ var requestTemplate = functionInfo === null || functionInfo === void 0 ? void 0 : functionInfo.requestTemplate;
29842
+ if (!functionInfo || !requestTemplate) {
29843
+ return false;
29844
+ }
29845
+ var isGet = requestTemplate.method.toLowerCase() === 'get';
29846
+ var requestBodyName = isGet ? 'params' : 'data';
29847
+ var params = requestTemplate.param;
29848
+ try {
29849
+ params = JSON.parse(requestTemplate.param);
29850
+ } catch (e) {}
29851
+ var path = requestTemplate.path;
29852
+ var requestBody = isGet ? params : requestTemplate.requestBody;
29853
+ if (!isSearchForm) {
29854
+ // 非查询表格,普通表格的数据组装
29855
+ path = convertPath(requestTemplate.path, newestFormData);
29856
+ requestBody = convertBody(requestBody, newestFormData);
29857
+ } else if (isSearchForm) {
29858
+ // 查询表格数据组装,key会带有qp- 和 -eq,并且转换成map的数据格式
29859
+ var newSearchFormData = convertToMapByKey(deleteQuerySymbol(searchFormData));
29860
+ path = convertPath(requestTemplate.path, newSearchFormData);
29861
+ requestBody = convertBody(requestBody, newSearchFormData);
29862
+ }
29863
+ var requestConfig = _defineProperty(_defineProperty({
29864
+ url: path,
29865
+ method: requestTemplate.method,
29866
+ headers: requestTemplate.header
29867
+ }, requestBodyName, requestBody), "serviceName", functionInfo.serviceName || (requestTemplate === null || requestTemplate === void 0 ? void 0 : requestTemplate.serviceName));
29868
+ return requestConfig;
29869
+ }
29870
+
29871
+ // 请求体
29872
+ function convertBody(param, formData) {
29873
+ var keys = Object.keys(param || {});
29874
+ if (!keys.length) return {};
29875
+ var result = {};
29876
+ keys.map(function (key) {
29877
+ var _param$key$match, _param$key$match2;
29878
+ var matchedGF = (_param$key$match = param[key].match(/G\d+F\d+/)) === null || _param$key$match === void 0 ? void 0 : _param$key$match[0];
29879
+ var matchedJavaCode = (_param$key$match2 = param[key].match(/{\w+\.\w+}/)) === null || _param$key$match2 === void 0 ? void 0 : _param$key$match2[0];
29880
+ if (matchedGF) {
29881
+ var _formData$group3;
29882
+ var group = matchedGF.match(/G\d+/);
29883
+ var field = matchedGF.match(/F\d+/);
29884
+ // 有值才赋值 【当formData中的值key是GxxxFxxx形式时】
29885
+ 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] !== '') {
29886
+ if (Array.isArray(formData[group][field])) {
29887
+ result[key] = formData[group][field].join(',');
29888
+ } else {
29889
+ result[key] = formData[group][field];
29890
+ }
29891
+ }
29892
+ // 有值才赋值 【当formData中的值key是Fxxx形式时】
29893
+ if ((formData === null || formData === void 0 ? void 0 : formData[field]) && formData[field] !== '') {
29894
+ if (Array.isArray(formData[field])) {
29895
+ result[key] = formData[field].join(',');
29896
+ } else {
29897
+ result[key] = formData[field];
29898
+ }
29899
+ }
29900
+ } else if (matchedJavaCode) {
29901
+ var _formData$_group;
29902
+ var _group, _field;
29903
+ try {
29904
+ var _matchedJavaCode$repl = matchedJavaCode.replace(/[{}]/g).split('.');
29905
+ var _matchedJavaCode$repl2 = _slicedToArray(_matchedJavaCode$repl, 2);
29906
+ _group = _matchedJavaCode$repl2[0];
29907
+ _field = _matchedJavaCode$repl2[1];
29908
+ } catch (e) {}
29909
+ 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] !== '') {
29910
+ if (Array.isArray(formData[_group][_field])) {
29911
+ result[key] = formData[_group][_field].join(',');
29912
+ } else {
29913
+ result[key] = formData[_group][_field];
29914
+ }
29915
+ }
29916
+ } else {
29917
+ if (param[key] !== '') {
29918
+ result[key] = param[key];
29919
+ }
29920
+ }
29921
+ });
29922
+ return result;
29923
+ }
29924
+
29925
+ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
29926
+ 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;
29927
+ React$1.useImperativeHandle(ref, function () {
29928
+ return {
29929
+ handleOk: handleOk,
29930
+ refreshSelectSource: refreshSelectSource
29931
+ };
29932
+ });
29933
+ 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);
29934
+ 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()) || {};
29935
+ 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,用来下面监听最新值的改变,做级联效果
29936
+ 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) || {}; // 如果是表格上面的查询表单情况
29937
+ var isView = (props === null || props === void 0 ? void 0 : (_props$ctx3 = props.ctx) === null || _props$ctx3 === void 0 ? void 0 : _props$ctx3.mode) == 'view';
29938
+ var queryTableRef = React$1.useRef(null);
29939
+ var _useState = React$1.useState({}),
29940
+ _useState2 = _slicedToArray(_useState, 2),
29941
+ requestConfig = _useState2[0],
29942
+ setRequestConfig = _useState2[1];
29943
+ var _useState3 = React$1.useState({
29944
+ pages: {
29945
+ page: 1,
29946
+ limit: 20,
29947
+ total: 0
29948
+ },
29949
+ columns: [],
29950
+ fields: [],
29951
+ dataList: [],
29952
+ currentQuery: {},
29953
+ selectedLine: {}
29954
+ }),
29955
+ _useState4 = _slicedToArray(_useState3, 2),
29956
+ tableState = _useState4[0],
29957
+ setTableState = _useState4[1];
29958
+ var handleOpen = /*#__PURE__*/function () {
29959
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
29960
+ var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
29961
+ var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
29962
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
29963
+ while (1) switch (_context.prev = _context.next) {
29964
+ case 0:
29965
+ requestConfigNew = assembleRequest(props.customSelectorConfig, {
29966
+ isSearchForm: props.isSearchForm,
29967
+ newestFormData: newestFormData,
29968
+ searchFormData: searchFormData
29969
+ });
29970
+ if (requestConfigNew) {
29971
+ _context.next = 3;
29972
+ break;
29973
+ }
29974
+ return _context.abrupt("return");
29975
+ case 3:
29976
+ 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;
29977
+ _context.next = 6;
29978
+ return getMetaData(metaDataId);
29979
+ case 6:
29980
+ metaData = _context.sent;
29981
+ realMetaData = (metaData === null || metaData === void 0 ? void 0 : metaData.filter(function (item) {
29982
+ return (item === null || item === void 0 ? void 0 : item.inputType) != 1;
29983
+ })) || [];
29984
+ columns = realMetaData.map(function (item) {
29985
+ return getColumnItem({
29986
+ item: item,
29987
+ props: props
29988
+ });
29989
+ }); // tableState.columns = columns
29990
+ fields = realMetaData === null || realMetaData === void 0 ? void 0 : realMetaData.filter(function (item) {
29991
+ var _item$infoVo;
29992
+ return (_item$infoVo = item.infoVo) === null || _item$infoVo === void 0 ? void 0 : _item$infoVo.isQuery;
29993
+ }).map(function (item) {
29994
+ var name = "qp-".concat(item.code, "-eq");
29995
+ try {
29996
+ if (JSON.parse(item.info).isLikeQuery) {
29997
+ name = "qp-".concat(item.code, "-like");
29998
+ }
29999
+ } catch (e) {
30000
+ console.log('error', e);
30001
+ }
30002
+ return {
30003
+ name: name,
30004
+ label: item.name,
30005
+ field: 'input'
30006
+ };
30007
+ });
30008
+ setTableState(_objectSpread2(_objectSpread2({}, tableState), {}, {
30009
+ columns: columns,
30010
+ fields: fields
30011
+ }));
30012
+ setRequestConfig(requestConfigNew);
30013
+ 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) {
30014
+ return v.key || v;
30015
+ })) || (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));
30016
+ if ((props === null || props === void 0 ? void 0 : (_props$selectProps = props.selectProps) === null || _props$selectProps === void 0 ? void 0 : _props$selectProps.multipleForQuery) && !isView && initValue) {
30017
+ // @ts-ignore
30018
+ 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);
30019
+ }
30020
+ case 14:
30021
+ case "end":
30022
+ return _context.stop();
30023
+ }
30024
+ }, _callee);
30025
+ }));
30026
+ return function handleOpen() {
30027
+ return _ref.apply(this, arguments);
30028
+ };
30029
+ }();
30030
+ var fieldMapping = ((_props$customSelector3 = props.customSelectorConfig) === null || _props$customSelector3 === void 0 ? void 0 : _props$customSelector3.fieldMapping) || [];
30031
+ var fieldMappingItem = fieldMapping.find(function (item) {
30032
+ return item.codeMappingTo === prop;
30033
+ });
30034
+ 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;
30035
+ //初始获取下拉列表
30036
+ var fetchFieldSource = function fetchFieldSource(obj, init) {
30037
+ var _params$path;
30038
+ var url = obj.url,
30039
+ method = obj.method,
30040
+ convertParams = obj.convertParams,
30041
+ converter = obj.converter;
30042
+ var params = convertParams({
30043
+ params: _objectSpread2({
30044
+ pageSize: 20,
30045
+ currentPage: 1
30046
+ }, init)
30047
+ });
30048
+ // 容错处理
30049
+ 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;
30050
+ bssula.request({
30051
+ url: url,
30052
+ method: method,
30053
+ params: params
30054
+ }).then(function (res) {
30055
+ var _converter = converter({
30056
+ data: res
30057
+ }),
30058
+ list = _converter.list;
30059
+ var currentField = fieldMappingItem;
30060
+ var sourceList = [];
30061
+ var codeList = [];
30062
+ var options = list.map(function (item) {
30063
+ if (currentField && echoLabel) {
30064
+ return {
30065
+ label: item[echoLabel],
30066
+ value: item[currentField.codeMappingFrom]
30067
+ };
30068
+ }
30069
+ if (echoLabel && !currentField) {
30070
+ return {
30071
+ label: item[echoLabel],
30072
+ value: item[echoLabel]
30073
+ };
30074
+ }
30075
+ return {
30076
+ label: item[currentField.codeMappingTo],
30077
+ value: item[currentField.codeMappingTo]
30078
+ };
30079
+ });
30080
+ options.forEach(function (item) {
30081
+ if (!codeList.includes(item.value)) {
30082
+ codeList.push(item.value);
30083
+ sourceList.push(item);
30084
+ }
30085
+ });
30086
+ props.setFieldSource(sourceList);
30087
+ props.setAllListData(list || []);
30088
+ });
30089
+ };
30090
+ React$1.useEffect(function () {
30091
+ if (props.visible) {
30092
+ handleOpen();
30093
+ }
30094
+ }, [props.visible]);
30095
+ var refreshSelectSource = function refreshSelectSource() {
30096
+ var init = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
30097
+ var requestConfigNew = assembleRequest(props.customSelectorConfig, {
30098
+ isSearchForm: props.isSearchForm,
30099
+ newestFormData: newestFormData,
30100
+ searchFormData: searchFormData
30101
+ });
30102
+ var obj = remoteFetch(requestConfigNew);
30103
+ //初始化请求下拉列表
30104
+ fetchFieldSource(obj, init);
30105
+ };
30106
+ React$1.useEffect(function () {
30107
+ var _props$ctx6, _props$ctx7, _props$ctx7$form;
30108
+ 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;
30109
+ 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);
30110
+ var formCodeKey = "".concat(fieldMappingItem === null || fieldMappingItem === void 0 ? void 0 : fieldMappingItem.codeMappingFrom);
30111
+ var initKey = Array.isArray(initValue) && (initValue === null || initValue === void 0 ? void 0 : initValue.length) > 1 ? "qp-".concat(formCodeKey, "-in") : "qp-".concat(formCodeKey, "-eq");
30112
+ var initParams = isNeedBack && formCodeKey && initValue ? _defineProperty({}, initKey, Array.isArray(initValue) ? initValue.join(',') : initValue) : {};
30113
+ refreshSelectSource(null, initParams);
30114
+ }, []);
30115
+ var remoteDataSource = React$1.useMemo(function () {
30116
+ if (Object.keys(requestConfig).length) {
30117
+ var obj = remoteFetch(requestConfig, tableState.columns);
30118
+ return obj;
30119
+ } else {
30120
+ return {};
30121
+ }
30122
+ }, [requestConfig, tableState.columns]);
30123
+ 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';
30124
+ var handleOk = function handleOk(rowData) {
30125
+ var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$curren13, _queryTableRef$curren14, _queryTableRef$curren15;
30126
+ var setSource = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
30127
+ //多选数据处理
30128
+ if (props === null || props === void 0 ? void 0 : (_props$selectProps2 = props.selectProps) === null || _props$selectProps2 === void 0 ? void 0 : _props$selectProps2.multipleForQuery) {
30129
+ var _queryTableRef$curren4, _queryTableRef$curren5, _queryTableRef$curren6, _queryTableRef$curren7, _queryTableRef$curren8, _queryTableRef$curren9;
30130
+ // @ts-ignore
30131
+ 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()) || [];
30132
+ // @ts-ignore
30133
+ 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()) || [];
30134
+ var realSelectedRows = selectedRows;
30135
+ if (!rowData && (selectedKesys === null || selectedKesys === void 0 ? void 0 : selectedKesys.length) !== (selectedRows === null || selectedRows === void 0 ? void 0 : selectedRows.length)) {
30136
+ var _queryTableRef$curren10, _queryTableRef$curren11, _queryTableRef$curren12;
30137
+ // @ts-ignore
30138
+ 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()) || [];
30139
+ realSelectedRows = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (s) {
30140
+ return selectedKesys.includes(s[rowKey]);
30141
+ });
30142
+ }
30143
+ //@ts-ignore
30144
+ var rowDataList = rowData ? rowData : realSelectedRows;
30145
+ var rowDataTemp = {};
30146
+ rowDataList.forEach(function (item, index) {
30147
+ Object.keys(item).forEach(function (key) {
30148
+ if (!Reflect.has(rowDataTemp, key)) {
30149
+ rowDataTemp[key] = [item[key]];
30150
+ } else {
30151
+ rowDataTemp[key].push(item[key]);
30152
+ //数组去重
30153
+ rowDataTemp[key] = _toConsumableArray(new Set(rowDataTemp[key]));
30154
+ }
30155
+ });
30156
+ });
30157
+ rowData = rowDataTemp;
30158
+ }
30159
+ var mappings = props.customSelectorConfig.fieldMapping;
30160
+ var values = {};
30161
+ //没有映射且有echoLabel的话,默认塞入一条
30162
+ 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)) {
30163
+ var _props$customSelector8, _props$customSelector9;
30164
+ mappings.push({
30165
+ 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,
30166
+ codeMappingTo: prop,
30167
+ uuid: ''
30168
+ });
30169
+ }
30170
+ mappings.map(function (item) {
30171
+ var _props$customSelector10, _props$customSelector11, _props$customSelector12, _props$customSelector13;
30172
+ 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]) {
30173
+ var _props$customSelector14, _props$customSelector15;
30174
+ 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];
30175
+ }
30176
+ values[item.codeMappingTo] = rowData[item.codeMappingFrom];
30177
+ });
30178
+ // 表单查询项就不给其他字段赋值
30179
+ if (!props.isSearchForm) {
30180
+ Object.keys(values).map(function (key, index, list) {
30181
+ if (key.includes('Name')) {
30182
+ var valueKey = key.replace('Name', '');
30183
+ if (setSource) {
30184
+ if (Array.isArray(values[valueKey])) {
30185
+ var valueList = [];
30186
+ values[valueKey].forEach(function (item, index) {
30187
+ valueList.push({
30188
+ label: values[key][index],
30189
+ value: values[valueKey][index]
30190
+ });
30191
+ });
30192
+ props.setFieldSource(valueList);
30193
+ } else {
30194
+ props.setFieldSource([{
30195
+ label: values[key],
30196
+ value: values[valueKey]
30197
+ }]);
30198
+ }
30199
+ }
30200
+ } else {
30201
+ var _props$setFieldValue;
30202
+ 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]);
30203
+ }
30204
+ });
30205
+ } else {
30206
+ var _props$ctx8;
30207
+ if (setSource) {
30208
+ if (Array.isArray(values[prop])) {
30209
+ var valueList = [];
30210
+ values[prop].forEach(function (item, index) {
30211
+ valueList.push({
30212
+ label: values["".concat(prop, "Name")][index],
30213
+ value: values[prop][index]
30214
+ });
30215
+ });
30216
+ props.setFieldSource(valueList);
30217
+ } else {
30218
+ props.setFieldSource([{
30219
+ label: values["".concat(prop, "Name")],
30220
+ value: values[prop]
30221
+ }]);
30222
+ }
30223
+ }
30224
+ var fieldKey = (props === null || props === void 0 ? void 0 : (_props$ctx8 = props.ctx) === null || _props$ctx8 === void 0 ? void 0 : _props$ctx8.name) || prop;
30225
+ props.setFieldValue(fieldKey, values[prop], props.fieldSource);
30226
+ }
30227
+ props.onCancel();
30228
+ //@ts-ignore
30229
+ 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();
30230
+ };
30231
+ var config = React$1.useMemo(function () {
30232
+ var _props$selectProps3, _props$ctx9, _props$value2, _props$ctx10, _props$ctx10$form;
30233
+ var returnConfig = {
30234
+ size: 'small',
30235
+ needPageHeader: false,
30236
+ tableWrapperStyle: {},
30237
+ isHorizontally: false,
30238
+ rowSelection: (props === null || props === void 0 ? void 0 : (_props$selectProps3 = props.selectProps) === null || _props$selectProps3 === void 0 ? void 0 : _props$selectProps3.multipleForQuery) && !isView ? {
30239
+ 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) {
30240
+ return v.key || v;
30241
+ })) || (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))
30242
+ } : false,
30243
+ remoteDataSource: remoteDataSource,
30244
+ fields: tableState.fields,
30245
+ columns: tableState.columns,
30246
+ rowKey: rowKey,
30247
+ tableProps: !isView && {
30248
+ rowClassName: function rowClassName(record) {
30249
+ var _props$ctx11, _props$value3, _props$ctx12, _props$ctx12$form;
30250
+ 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' : '';
30251
+ },
30252
+ onRow: function onRow(record) {
30253
+ return {
30254
+ onDoubleClick: function onDoubleClick() {
30255
+ handleOk(record);
30256
+ } //双击
30257
+ };
30258
+ }
30259
+ } || {}
30260
+ };
30261
+ if (Object.keys(remoteDataSource).length) {
30262
+ return returnConfig;
30263
+ } else {
30264
+ return false;
30265
+ }
30266
+ }, [tableState, remoteDataSource]);
30267
+ return /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
30268
+ title: "",
30269
+ width: 1300,
30270
+ open: props.visible,
30271
+ footer: null,
30272
+ onCancel: function onCancel() {
30273
+ props.onCancel();
30274
+ },
30275
+ destroyOnClose: true
30276
+ }, config && /*#__PURE__*/React__default['default'].createElement(bssula.QueryTable, _objectSpread2({
30277
+ ref: queryTableRef
30278
+ }, 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__default['default'].createElement(antd.Row, {
30279
+ justify: "center",
30280
+ style: {
30281
+ marginBottom: 30,
30282
+ marginTop: 10
30283
+ }
30284
+ }, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
30285
+ type: "primary",
30286
+ style: {
30287
+ marginRight: 20
30288
+ },
30289
+ onClick: function onClick() {
30290
+ return handleOk();
30291
+ }
30292
+ }, "\u63D0\u4EA4"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
30293
+ type: "default",
30294
+ onClick: function onClick() {
30295
+ var _queryTableRef$curren16, _queryTableRef$curren17, _queryTableRef$curren18;
30296
+ props.onCancel();
30297
+ //@ts-ignore
30298
+ 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();
30299
+ }
30300
+ }, "\u53D6\u6D88"))));
30301
+ });
30302
+
30303
+ var CustomSelector = (function (props) {
30304
+ var _props$ctx, _props$customSelector3, _props$customSelector4, _props$customSelector5, _props$selectProps2, _props$ctx4, _props$ctx5, _props$ctx6, _props$ctx6$form;
30305
+ var showType = React$1.useMemo(function () {
30306
+ var _props$customSelector, _props$customSelector2;
30307
+ 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';
30308
+ }, [props]);
30309
+ var _useState = React$1.useState({
30310
+ visible: false,
30311
+ onShow: function onShow() {
30312
+ setModalConfig(_objectSpread2(_objectSpread2({}, modalConfig), {}, {
30313
+ visible: true
30314
+ }));
30315
+ },
30316
+ onCancel: function onCancel() {
30317
+ setModalConfig(_objectSpread2(_objectSpread2({}, modalConfig), {}, {
30318
+ visible: false
30319
+ }));
30320
+ }
30321
+ }),
30322
+ _useState2 = _slicedToArray(_useState, 2),
30323
+ modalConfig = _useState2[0],
30324
+ setModalConfig = _useState2[1];
30325
+ var _useState3 = React$1.useState([]),
30326
+ _useState4 = _slicedToArray(_useState3, 2),
30327
+ fieldSource = _useState4[0],
30328
+ setFieldSource = _useState4[1];
30329
+ var _useState5 = React$1.useState([]),
30330
+ _useState6 = _slicedToArray(_useState5, 2),
30331
+ allListData = _useState6[0],
30332
+ setAllListData = _useState6[1];
30333
+ var customRef = React$1.useRef();
30334
+ 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);
30335
+ var fieldMapping = ((_props$customSelector3 = props.customSelectorConfig) === null || _props$customSelector3 === void 0 ? void 0 : _props$customSelector3.fieldMapping) || [];
30336
+ var fieldMappingItem = fieldMapping.find(function (item) {
30337
+ return item.codeMappingTo === prop;
30338
+ });
30339
+ 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;
30340
+ React$1.useEffect(function () {
30341
+ if (props.source && noEmptyArray(props.source)) {
30342
+ var source = (props === null || props === void 0 ? void 0 : props.source) || [];
30343
+ if ((source === null || source === void 0 ? void 0 : source[0]) === true) {
30344
+ var _customRef$current;
30345
+ //@ts-ignore
30346
+ customRef === null || customRef === void 0 ? void 0 : (_customRef$current = customRef.current) === null || _customRef$current === void 0 ? void 0 : _customRef$current.refreshSelectSource();
30347
+ } else if ((source === null || source === void 0 ? void 0 : source[0]) === false) {
30348
+ var _customRef$current2;
30349
+ //@ts-ignore
30350
+ customRef === null || customRef === void 0 ? void 0 : (_customRef$current2 = customRef.current) === null || _customRef$current2 === void 0 ? void 0 : _customRef$current2.refreshSelectSource(true);
30351
+ }
30352
+ }
30353
+ }, [props.source]);
30354
+ var setFieldValue = function setFieldValue(key, value, sourceList) {
30355
+ var _props$ctx2, _props$ctx2$form, _props$ctx2$form$setF, _props$onChange;
30356
+ 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);
30357
+ props === null || props === void 0 ? void 0 : (_props$onChange = props.onChange) === null || _props$onChange === void 0 ? void 0 : _props$onChange.call(props, value, sourceList);
30358
+ };
30359
+ var onChange = function onChange(value) {
30360
+ if (!value) return;
30361
+ var dataItem = allListData.filter(function (item) {
30362
+ 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;
30363
+ }) || [];
30364
+ if (showType === 'modalTable') {
30365
+ var _props$selectProps, _customRef$current3;
30366
+ 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]) || {};
30367
+ //@ts-ignore
30368
+ customRef === null || customRef === void 0 ? void 0 : (_customRef$current3 = customRef.current) === null || _customRef$current3 === void 0 ? void 0 : _customRef$current3.handleOk(rowData, false);
30369
+ } else {
30370
+ var _props$ctx3;
30371
+ setFieldValue((_props$ctx3 = props.ctx) === null || _props$ctx3 === void 0 ? void 0 : _props$ctx3.name, value, fieldSource);
30372
+ }
30373
+ };
30374
+ var multipleForQuery = props === null || props === void 0 ? void 0 : (_props$selectProps2 = props.selectProps) === null || _props$selectProps2 === void 0 ? void 0 : _props$selectProps2.multipleForQuery;
30375
+ var isView = (props === null || props === void 0 ? void 0 : (_props$ctx4 = props.ctx) === null || _props$ctx4 === void 0 ? void 0 : _props$ctx4.mode) == 'view';
30376
+ return /*#__PURE__*/React__default['default'].createElement("div", {
30377
+ style: {
30378
+ display: 'flex'
30379
+ }
30380
+ }, /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.selectProps), {}, {
30381
+ showSearch: true,
30382
+ optionFilterProp: 'label',
30383
+ placeholder: "\u8BF7\u9009\u62E9",
30384
+ onChange: onChange,
30385
+ options: fieldSource,
30386
+ 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)),
30387
+ disabled: isView || props.disabled,
30388
+ mode: multipleForQuery ? 'multiple' : undefined,
30389
+ allowClear: props === null || props === void 0 ? void 0 : props.allowClear,
30390
+ onClear: function onClear() {
30391
+ var _props$ctx7;
30392
+ return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
30393
+ }
30394
+ })), showType === 'modalTable' && ( /*#__PURE__*/React__default['default'].createElement(antd.Button, {
30395
+ type: "primary",
30396
+ style: {
30397
+ width: '30px',
30398
+ display: 'flex',
30399
+ justifyContent: 'center',
30400
+ alignItems: 'center'
30401
+ },
30402
+ onClick: function onClick() {
30403
+ modalConfig.onShow();
30404
+ },
30405
+ disabled: props.disabled
30406
+ }, /*#__PURE__*/React__default['default'].createElement(icons.SearchOutlined, {
30407
+ className: "site-form-item-icon"
30408
+ }))), /*#__PURE__*/React__default['default'].createElement(CustomSelectorModal, _objectSpread2(_objectSpread2(_objectSpread2({
30409
+ ref: customRef
30410
+ }, modalConfig), props), {}, {
30411
+ showType: showType,
30412
+ fieldSource: fieldSource,
30413
+ setFieldSource: setFieldSource,
30414
+ setFieldValue: setFieldValue,
30415
+ setAllListData: setAllListData,
30416
+ ismultiple: multipleForQuery
30417
+ })));
30418
+ });
30419
+
29407
30420
  var RangePicker = antd.DatePicker.RangePicker;
29408
30421
  var RuleField = /*#__PURE__*/function (_Component) {
29409
30422
  function RuleField(props) {
@@ -29569,7 +30582,12 @@ var RuleField = /*#__PURE__*/function (_Component) {
29569
30582
  callback = _this$props2.callback,
29570
30583
  queryIdentify = _this$props2.queryIdentify,
29571
30584
  disabled = _this$props2.disabled,
29572
- customerWidth = _this$props2.customerWidth;
30585
+ customerWidth = _this$props2.customerWidth,
30586
+ _this$props2$itemDeta = _this$props2.itemDetail,
30587
+ itemDetail = _this$props2$itemDeta === void 0 ? {} : _this$props2$itemDeta,
30588
+ _this$props2$others = _this$props2.others,
30589
+ others = _this$props2$others === void 0 ? {} : _this$props2$others,
30590
+ propertyCode = _this$props2.propertyCode;
29573
30591
  var thresholdList = _this.state.thresholdList;
29574
30592
  var styleCommon = {
29575
30593
  width: customerWidth || '150px'
@@ -30795,10 +31813,238 @@ var RuleField = /*#__PURE__*/function (_Component) {
30795
31813
  return document.body;
30796
31814
  }
30797
31815
  }), /*#__PURE__*/React__default['default'].createElement("span", null, "~"), /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
30798
- selectBusinessType: "supplier2",
31816
+ selectBusinessType: "supplier2",
31817
+ selectProps: _objectSpread2({
31818
+ style: styleCommon,
31819
+ placeholder: '请选择供应商'
31820
+ }, dataInputBusinessType === 12 ? {
31821
+ mode: 'multiple',
31822
+ maxTagCount: 1
31823
+ } : {}),
31824
+ disabled: disabled,
31825
+ labelInValue: true,
31826
+ value: values[1],
31827
+ requestConfig: {
31828
+ filterInit: 'qp-code-in'
31829
+ },
31830
+ onChange: function onChange(value) {
31831
+ if (dataInputBusinessType === 12) {
31832
+ values[1] = value.map(function (i) {
31833
+ return i.key;
31834
+ });
31835
+ valueNames[1] = value.map(function (i) {
31836
+ return i.label || '';
31837
+ });
31838
+ } else {
31839
+ values[1] = [value.key];
31840
+ valueNames[1] = [value.label || ''];
31841
+ }
31842
+ callback(values, valueNames);
31843
+ },
31844
+ getPopupContainer: function getPopupContainer() {
31845
+ return document.body;
31846
+ }
31847
+ }));
31848
+ } else {
31849
+ var _values7;
31850
+ var _currentValue6 = dataInputBusinessType === 12 ? ((_values7 = values) === null || _values7 === void 0 ? void 0 : _values7.map(function (s, vIndex) {
31851
+ return {
31852
+ key: s,
31853
+ label: valueNames[vIndex]
31854
+ };
31855
+ })) || [] : values[0] && {
31856
+ key: values[0],
31857
+ label: valueNames[0]
31858
+ } || {};
31859
+ return /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
31860
+ selectBusinessType: "supplier2",
31861
+ selectProps: _objectSpread2({
31862
+ style: styleCommon,
31863
+ placeholder: '请选择供应商'
31864
+ }, dataInputBusinessType === 12 ? {
31865
+ mode: 'multiple',
31866
+ maxTagCount: 1
31867
+ } : {}),
31868
+ disabled: disabled,
31869
+ labelInValue: true,
31870
+ value: _currentValue6,
31871
+ requestConfig: {
31872
+ filterInit: 'qp-code-in'
31873
+ },
31874
+ onChange: function onChange(value) {
31875
+ if (dataInputBusinessType === 12) {
31876
+ values = value.map(function (i) {
31877
+ return i.key;
31878
+ }) || [];
31879
+ valueNames = value.map(function (i) {
31880
+ return i.label || '';
31881
+ }) || [];
31882
+ } else {
31883
+ values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
31884
+ valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
31885
+ }
31886
+ callback(values, valueNames);
31887
+ },
31888
+ getPopupContainer: function getPopupContainer() {
31889
+ return document.body;
31890
+ }
31891
+ });
31892
+ }
31893
+ }
31894
+ // 客户选择器
31895
+ if (dataChoiceBusinessType == 250) {
31896
+ if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
31897
+ return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
31898
+ selectBusinessType: "customer2",
31899
+ selectProps: _objectSpread2({
31900
+ style: styleCommon,
31901
+ placeholder: '请选择客户'
31902
+ }, dataInputBusinessType === 12 ? {
31903
+ mode: 'multiple',
31904
+ maxTagCount: 1
31905
+ } : {}),
31906
+ disabled: disabled,
31907
+ labelInValue: true,
31908
+ value: values[0],
31909
+ requestConfig: {
31910
+ filterInit: 'qp-code-in'
31911
+ },
31912
+ onChange: function onChange(value) {
31913
+ if (dataInputBusinessType === 12) {
31914
+ values[0] = value.map(function (i) {
31915
+ return i.key;
31916
+ });
31917
+ valueNames[0] = value.map(function (i) {
31918
+ return i.label || '';
31919
+ });
31920
+ } else {
31921
+ values[0] = [value.key];
31922
+ valueNames[0] = [value.label || ''];
31923
+ }
31924
+ callback(values, valueNames);
31925
+ },
31926
+ getPopupContainer: function getPopupContainer() {
31927
+ return document.body;
31928
+ }
31929
+ }), /*#__PURE__*/React__default['default'].createElement("span", null, "~"), /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
31930
+ selectBusinessType: "customer2",
31931
+ selectProps: _objectSpread2({
31932
+ style: styleCommon,
31933
+ placeholder: '请选择客户'
31934
+ }, dataInputBusinessType === 12 ? {
31935
+ mode: 'multiple',
31936
+ maxTagCount: 1
31937
+ } : {}),
31938
+ disabled: disabled,
31939
+ labelInValue: true,
31940
+ value: values[1],
31941
+ requestConfig: {
31942
+ filterInit: 'qp-code-in'
31943
+ },
31944
+ onChange: function onChange(value) {
31945
+ if (dataInputBusinessType === 12) {
31946
+ values[1] = value.map(function (i) {
31947
+ return i.key;
31948
+ });
31949
+ valueNames[1] = value.map(function (i) {
31950
+ return i.label || '';
31951
+ });
31952
+ } else {
31953
+ values[1] = [value.key];
31954
+ valueNames[1] = [value.label || ''];
31955
+ }
31956
+ callback(values, valueNames);
31957
+ },
31958
+ getPopupContainer: function getPopupContainer() {
31959
+ return document.body;
31960
+ }
31961
+ }));
31962
+ } else {
31963
+ var _values8;
31964
+ var _currentValue7 = dataInputBusinessType === 12 ? ((_values8 = values) === null || _values8 === void 0 ? void 0 : _values8.map(function (s, vIndex) {
31965
+ return {
31966
+ key: s,
31967
+ label: valueNames[vIndex]
31968
+ };
31969
+ })) || [] : values[0] && {
31970
+ key: values[0],
31971
+ label: valueNames[0]
31972
+ } || {};
31973
+ return /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
31974
+ selectBusinessType: "customer2",
31975
+ selectProps: _objectSpread2({
31976
+ style: styleCommon,
31977
+ placeholder: '请选择客户'
31978
+ }, dataInputBusinessType === 12 ? {
31979
+ mode: 'multiple',
31980
+ maxTagCount: 1
31981
+ } : {}),
31982
+ disabled: disabled,
31983
+ labelInValue: true,
31984
+ value: _currentValue7,
31985
+ requestConfig: {
31986
+ filterInit: 'qp-code-in'
31987
+ },
31988
+ onChange: function onChange(value) {
31989
+ if (dataInputBusinessType === 12) {
31990
+ values = value.map(function (i) {
31991
+ return i.key;
31992
+ }) || [];
31993
+ valueNames = value.map(function (i) {
31994
+ return i.label || '';
31995
+ }) || [];
31996
+ } else {
31997
+ values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
31998
+ valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
31999
+ }
32000
+ callback(values, valueNames);
32001
+ },
32002
+ getPopupContainer: function getPopupContainer() {
32003
+ return document.body;
32004
+ }
32005
+ });
32006
+ }
32007
+ }
32008
+ // 店铺选择器
32009
+ if (dataChoiceBusinessType == 260) {
32010
+ if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
32011
+ return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
32012
+ selectBusinessType: "shopFile2",
32013
+ selectProps: _objectSpread2({
32014
+ style: styleCommon,
32015
+ placeholder: '请选择店铺'
32016
+ }, dataInputBusinessType === 12 ? {
32017
+ mode: 'multiple',
32018
+ maxTagCount: 1
32019
+ } : {}),
32020
+ disabled: disabled,
32021
+ labelInValue: true,
32022
+ value: values[0],
32023
+ requestConfig: {
32024
+ filterInit: 'qp-code-in'
32025
+ },
32026
+ onChange: function onChange(value) {
32027
+ if (dataInputBusinessType === 12) {
32028
+ values[0] = value.map(function (i) {
32029
+ return i.key;
32030
+ });
32031
+ valueNames[0] = value.map(function (i) {
32032
+ return i.label || '';
32033
+ });
32034
+ } else {
32035
+ values[0] = [value.key];
32036
+ valueNames[0] = [value.label || ''];
32037
+ }
32038
+ callback(values, valueNames);
32039
+ },
32040
+ getPopupContainer: function getPopupContainer() {
32041
+ return document.body;
32042
+ }
32043
+ }), /*#__PURE__*/React__default['default'].createElement("span", null, "~"), /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
32044
+ selectBusinessType: "shopFile2",
30799
32045
  selectProps: _objectSpread2({
30800
32046
  style: styleCommon,
30801
- placeholder: '请选择供应商'
32047
+ placeholder: '请选择店铺'
30802
32048
  }, dataInputBusinessType === 12 ? {
30803
32049
  mode: 'multiple',
30804
32050
  maxTagCount: 1
@@ -30828,8 +32074,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
30828
32074
  }
30829
32075
  }));
30830
32076
  } else {
30831
- var _values7;
30832
- var _currentValue6 = dataInputBusinessType === 12 ? ((_values7 = values) === null || _values7 === void 0 ? void 0 : _values7.map(function (s, vIndex) {
32077
+ var _values9;
32078
+ var _currentValue8 = dataInputBusinessType === 12 ? ((_values9 = values) === null || _values9 === void 0 ? void 0 : _values9.map(function (s, vIndex) {
30833
32079
  return {
30834
32080
  key: s,
30835
32081
  label: valueNames[vIndex]
@@ -30839,17 +32085,17 @@ var RuleField = /*#__PURE__*/function (_Component) {
30839
32085
  label: valueNames[0]
30840
32086
  } || {};
30841
32087
  return /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
30842
- selectBusinessType: "supplier2",
32088
+ selectBusinessType: "shopFile2",
30843
32089
  selectProps: _objectSpread2({
30844
32090
  style: styleCommon,
30845
- placeholder: '请选择供应商'
32091
+ placeholder: '请选择店铺'
30846
32092
  }, dataInputBusinessType === 12 ? {
30847
32093
  mode: 'multiple',
30848
32094
  maxTagCount: 1
30849
32095
  } : {}),
30850
32096
  disabled: disabled,
30851
32097
  labelInValue: true,
30852
- value: _currentValue6,
32098
+ value: _currentValue8,
30853
32099
  requestConfig: {
30854
32100
  filterInit: 'qp-code-in'
30855
32101
  },
@@ -30873,14 +32119,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
30873
32119
  });
30874
32120
  }
30875
32121
  }
30876
- // 客户选择器
30877
- if (dataChoiceBusinessType == 250) {
32122
+ // 员工选择器
32123
+ if (dataChoiceBusinessType == 270) {
30878
32124
  if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
30879
32125
  return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
30880
- selectBusinessType: "customer2",
32126
+ selectBusinessType: "employee2",
30881
32127
  selectProps: _objectSpread2({
30882
32128
  style: styleCommon,
30883
- placeholder: '请选择客户'
32129
+ placeholder: '请选择员工'
30884
32130
  }, dataInputBusinessType === 12 ? {
30885
32131
  mode: 'multiple',
30886
32132
  maxTagCount: 1
@@ -30889,7 +32135,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
30889
32135
  labelInValue: true,
30890
32136
  value: values[0],
30891
32137
  requestConfig: {
30892
- filterInit: 'qp-code-in'
32138
+ filterInit: 'qp-id-in'
30893
32139
  },
30894
32140
  onChange: function onChange(value) {
30895
32141
  if (dataInputBusinessType === 12) {
@@ -30909,10 +32155,10 @@ var RuleField = /*#__PURE__*/function (_Component) {
30909
32155
  return document.body;
30910
32156
  }
30911
32157
  }), /*#__PURE__*/React__default['default'].createElement("span", null, "~"), /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
30912
- selectBusinessType: "customer2",
32158
+ selectBusinessType: "employee2",
30913
32159
  selectProps: _objectSpread2({
30914
32160
  style: styleCommon,
30915
- placeholder: '请选择客户'
32161
+ placeholder: '请选择员工'
30916
32162
  }, dataInputBusinessType === 12 ? {
30917
32163
  mode: 'multiple',
30918
32164
  maxTagCount: 1
@@ -30921,7 +32167,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
30921
32167
  labelInValue: true,
30922
32168
  value: values[1],
30923
32169
  requestConfig: {
30924
- filterInit: 'qp-code-in'
32170
+ filterInit: 'qp-id-in'
30925
32171
  },
30926
32172
  onChange: function onChange(value) {
30927
32173
  if (dataInputBusinessType === 12) {
@@ -30942,8 +32188,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
30942
32188
  }
30943
32189
  }));
30944
32190
  } else {
30945
- var _values8;
30946
- var _currentValue7 = dataInputBusinessType === 12 ? ((_values8 = values) === null || _values8 === void 0 ? void 0 : _values8.map(function (s, vIndex) {
32191
+ var _values10;
32192
+ var _currentValue9 = dataInputBusinessType === 12 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
30947
32193
  return {
30948
32194
  key: s,
30949
32195
  label: valueNames[vIndex]
@@ -30953,19 +32199,19 @@ var RuleField = /*#__PURE__*/function (_Component) {
30953
32199
  label: valueNames[0]
30954
32200
  } || {};
30955
32201
  return /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
30956
- selectBusinessType: "customer2",
32202
+ selectBusinessType: "employee2",
30957
32203
  selectProps: _objectSpread2({
30958
32204
  style: styleCommon,
30959
- placeholder: '请选择客户'
32205
+ placeholder: '请选择员工'
30960
32206
  }, dataInputBusinessType === 12 ? {
30961
32207
  mode: 'multiple',
30962
32208
  maxTagCount: 1
30963
32209
  } : {}),
30964
32210
  disabled: disabled,
30965
32211
  labelInValue: true,
30966
- value: _currentValue7,
32212
+ value: _currentValue9,
30967
32213
  requestConfig: {
30968
- filterInit: 'qp-code-in'
32214
+ filterInit: 'qp-id-in'
30969
32215
  },
30970
32216
  onChange: function onChange(value) {
30971
32217
  if (dataInputBusinessType === 12) {
@@ -30987,24 +32233,17 @@ var RuleField = /*#__PURE__*/function (_Component) {
30987
32233
  });
30988
32234
  }
30989
32235
  }
30990
- // 店铺选择器
30991
- if (dataChoiceBusinessType == 260) {
32236
+ // 库存组织选择器
32237
+ if (dataChoiceBusinessType == 280) {
30992
32238
  if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
30993
- return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
30994
- selectBusinessType: "shopFile2",
30995
- selectProps: _objectSpread2({
30996
- style: styleCommon,
30997
- placeholder: '请选择店铺'
30998
- }, dataInputBusinessType === 12 ? {
30999
- mode: 'multiple',
31000
- maxTagCount: 1
31001
- } : {}),
32239
+ return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
31002
32240
  disabled: disabled,
32241
+ treeCheckable: dataInputBusinessType === 12,
32242
+ businessType: "stock-organization",
31003
32243
  labelInValue: true,
31004
- value: values[0],
31005
- requestConfig: {
31006
- filterInit: 'qp-code-in'
31007
- },
32244
+ value: dataInputBusinessType === 12 ? values : values[0],
32245
+ style: styleCommon,
32246
+ treeCheckStrictly: true,
31008
32247
  onChange: function onChange(value) {
31009
32248
  if (dataInputBusinessType === 12) {
31010
32249
  values[0] = value.map(function (i) {
@@ -31022,21 +32261,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
31022
32261
  getPopupContainer: function getPopupContainer() {
31023
32262
  return document.body;
31024
32263
  }
31025
- }), /*#__PURE__*/React__default['default'].createElement("span", null, "~"), /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
31026
- selectBusinessType: "shopFile2",
31027
- selectProps: _objectSpread2({
31028
- style: styleCommon,
31029
- placeholder: '请选择店铺'
31030
- }, dataInputBusinessType === 12 ? {
31031
- mode: 'multiple',
31032
- maxTagCount: 1
31033
- } : {}),
32264
+ }), /*#__PURE__*/React__default['default'].createElement("span", null, "~"), /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
31034
32265
  disabled: disabled,
32266
+ treeCheckable: dataInputBusinessType === 12,
32267
+ businessType: "stock-organization",
31035
32268
  labelInValue: true,
31036
- value: values[1],
31037
- requestConfig: {
31038
- filterInit: 'qp-code-in'
31039
- },
32269
+ value: dataInputBusinessType === 12 ? values : values[0],
32270
+ style: styleCommon,
32271
+ treeCheckStrictly: true,
31040
32272
  onChange: function onChange(value) {
31041
32273
  if (dataInputBusinessType === 12) {
31042
32274
  values[1] = value.map(function (i) {
@@ -31056,31 +32288,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
31056
32288
  }
31057
32289
  }));
31058
32290
  } else {
31059
- var _values9;
31060
- var _currentValue8 = dataInputBusinessType === 12 ? ((_values9 = values) === null || _values9 === void 0 ? void 0 : _values9.map(function (s, vIndex) {
31061
- return {
31062
- key: s,
31063
- label: valueNames[vIndex]
31064
- };
31065
- })) || [] : values[0] && {
31066
- key: values[0],
31067
- label: valueNames[0]
31068
- } || {};
31069
- return /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
31070
- selectBusinessType: "shopFile2",
31071
- selectProps: _objectSpread2({
31072
- style: styleCommon,
31073
- placeholder: '请选择店铺'
31074
- }, dataInputBusinessType === 12 ? {
31075
- mode: 'multiple',
31076
- maxTagCount: 1
31077
- } : {}),
32291
+ return /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
31078
32292
  disabled: disabled,
32293
+ treeCheckable: dataInputBusinessType === 12,
32294
+ businessType: "stock-organization",
31079
32295
  labelInValue: true,
31080
- value: _currentValue8,
31081
- requestConfig: {
31082
- filterInit: 'qp-code-in'
31083
- },
32296
+ value: dataInputBusinessType === 12 ? values : values[0],
32297
+ style: styleCommon,
32298
+ treeCheckStrictly: true,
31084
32299
  onChange: function onChange(value) {
31085
32300
  if (dataInputBusinessType === 12) {
31086
32301
  values = value.map(function (i) {
@@ -31101,24 +32316,16 @@ var RuleField = /*#__PURE__*/function (_Component) {
31101
32316
  });
31102
32317
  }
31103
32318
  }
31104
- // 员工选择器
31105
- if (dataChoiceBusinessType == 270) {
32319
+ // 结算组织选择器
32320
+ if (dataChoiceBusinessType == 290) {
31106
32321
  if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
31107
- return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
31108
- selectBusinessType: "employee2",
31109
- selectProps: _objectSpread2({
31110
- style: styleCommon,
31111
- placeholder: '请选择员工'
31112
- }, dataInputBusinessType === 12 ? {
31113
- mode: 'multiple',
31114
- maxTagCount: 1
31115
- } : {}),
32322
+ return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
31116
32323
  disabled: disabled,
32324
+ treeCheckable: dataInputBusinessType === 12,
32325
+ businessType: "settle-organization",
31117
32326
  labelInValue: true,
31118
32327
  value: values[0],
31119
- requestConfig: {
31120
- filterInit: 'qp-id-in'
31121
- },
32328
+ style: styleCommon,
31122
32329
  onChange: function onChange(value) {
31123
32330
  if (dataInputBusinessType === 12) {
31124
32331
  values[0] = value.map(function (i) {
@@ -31136,21 +32343,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
31136
32343
  getPopupContainer: function getPopupContainer() {
31137
32344
  return document.body;
31138
32345
  }
31139
- }), /*#__PURE__*/React__default['default'].createElement("span", null, "~"), /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
31140
- selectBusinessType: "employee2",
31141
- selectProps: _objectSpread2({
31142
- style: styleCommon,
31143
- placeholder: '请选择员工'
31144
- }, dataInputBusinessType === 12 ? {
31145
- mode: 'multiple',
31146
- maxTagCount: 1
31147
- } : {}),
32346
+ }), /*#__PURE__*/React__default['default'].createElement("span", null, "~"), /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
31148
32347
  disabled: disabled,
32348
+ treeCheckable: dataInputBusinessType === 12,
32349
+ businessType: "settle-organization",
31149
32350
  labelInValue: true,
31150
- value: values[1],
31151
- requestConfig: {
31152
- filterInit: 'qp-id-in'
31153
- },
32351
+ value: values[0],
32352
+ style: styleCommon,
31154
32353
  onChange: function onChange(value) {
31155
32354
  if (dataInputBusinessType === 12) {
31156
32355
  values[1] = value.map(function (i) {
@@ -31170,31 +32369,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
31170
32369
  }
31171
32370
  }));
31172
32371
  } else {
31173
- var _values10;
31174
- var _currentValue9 = dataInputBusinessType === 12 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
31175
- return {
31176
- key: s,
31177
- label: valueNames[vIndex]
31178
- };
31179
- })) || [] : values[0] && {
31180
- key: values[0],
31181
- label: valueNames[0]
31182
- } || {};
31183
- return /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
31184
- selectBusinessType: "employee2",
31185
- selectProps: _objectSpread2({
31186
- style: styleCommon,
31187
- placeholder: '请选择员工'
31188
- }, dataInputBusinessType === 12 ? {
31189
- mode: 'multiple',
31190
- maxTagCount: 1
31191
- } : {}),
32372
+ return /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
31192
32373
  disabled: disabled,
32374
+ treeCheckable: dataInputBusinessType === 12,
32375
+ businessType: "settle-organization",
31193
32376
  labelInValue: true,
31194
- value: _currentValue9,
31195
- requestConfig: {
31196
- filterInit: 'qp-id-in'
31197
- },
32377
+ value: values[0],
32378
+ style: styleCommon,
31198
32379
  onChange: function onChange(value) {
31199
32380
  if (dataInputBusinessType === 12) {
31200
32381
  values = value.map(function (i) {
@@ -31215,17 +32396,24 @@ var RuleField = /*#__PURE__*/function (_Component) {
31215
32396
  });
31216
32397
  }
31217
32398
  }
31218
- // 库存组织选择器
31219
- if (dataChoiceBusinessType == 280) {
32399
+ // 配送方式选择器
32400
+ if (dataChoiceBusinessType == 310) {
31220
32401
  if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
31221
- return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
32402
+ return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
32403
+ selectBusinessType: "deliveryMode",
32404
+ selectProps: _objectSpread2({
32405
+ style: styleCommon,
32406
+ placeholder: '请选择配送方式'
32407
+ }, dataInputBusinessType === 12 ? {
32408
+ mode: 'multiple',
32409
+ maxTagCount: 1
32410
+ } : {}),
31222
32411
  disabled: disabled,
31223
- treeCheckable: dataInputBusinessType === 12,
31224
- businessType: "stock-organization",
31225
32412
  labelInValue: true,
31226
- value: dataInputBusinessType === 12 ? values : values[0],
31227
- style: styleCommon,
31228
- treeCheckStrictly: true,
32413
+ value: values[0],
32414
+ requestConfig: {
32415
+ filterInit: 'qp-code-in'
32416
+ },
31229
32417
  onChange: function onChange(value) {
31230
32418
  if (dataInputBusinessType === 12) {
31231
32419
  values[0] = value.map(function (i) {
@@ -31243,14 +32431,21 @@ var RuleField = /*#__PURE__*/function (_Component) {
31243
32431
  getPopupContainer: function getPopupContainer() {
31244
32432
  return document.body;
31245
32433
  }
31246
- }), /*#__PURE__*/React__default['default'].createElement("span", null, "~"), /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
32434
+ }), /*#__PURE__*/React__default['default'].createElement("span", null, "~"), /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
32435
+ selectBusinessType: "deliveryMode",
32436
+ selectProps: _objectSpread2({
32437
+ style: styleCommon,
32438
+ placeholder: '请选择配送方式'
32439
+ }, dataInputBusinessType === 12 ? {
32440
+ mode: 'multiple',
32441
+ maxTagCount: 1
32442
+ } : {}),
31247
32443
  disabled: disabled,
31248
- treeCheckable: dataInputBusinessType === 12,
31249
- businessType: "stock-organization",
31250
32444
  labelInValue: true,
31251
- value: dataInputBusinessType === 12 ? values : values[0],
31252
- style: styleCommon,
31253
- treeCheckStrictly: true,
32445
+ value: values[1],
32446
+ requestConfig: {
32447
+ filterInit: 'qp-code-in'
32448
+ },
31254
32449
  onChange: function onChange(value) {
31255
32450
  if (dataInputBusinessType === 12) {
31256
32451
  values[1] = value.map(function (i) {
@@ -31270,14 +32465,31 @@ var RuleField = /*#__PURE__*/function (_Component) {
31270
32465
  }
31271
32466
  }));
31272
32467
  } else {
31273
- return /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
32468
+ var _values11;
32469
+ var _currentValue10 = dataInputBusinessType === 12 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
32470
+ return {
32471
+ key: s,
32472
+ label: valueNames[vIndex]
32473
+ };
32474
+ })) || [] : values[0] && {
32475
+ key: values[0],
32476
+ label: valueNames[0]
32477
+ } || {};
32478
+ return /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
32479
+ selectBusinessType: "deliveryMode",
32480
+ selectProps: _objectSpread2({
32481
+ style: styleCommon,
32482
+ placeholder: '请选择配送方式'
32483
+ }, dataInputBusinessType === 12 ? {
32484
+ mode: 'multiple',
32485
+ maxTagCount: 1
32486
+ } : {}),
31274
32487
  disabled: disabled,
31275
- treeCheckable: dataInputBusinessType === 12,
31276
- businessType: "stock-organization",
31277
32488
  labelInValue: true,
31278
- value: dataInputBusinessType === 12 ? values : values[0],
31279
- style: styleCommon,
31280
- treeCheckStrictly: true,
32489
+ value: _currentValue10,
32490
+ requestConfig: {
32491
+ filterInit: 'qp-code-in'
32492
+ },
31281
32493
  onChange: function onChange(value) {
31282
32494
  if (dataInputBusinessType === 12) {
31283
32495
  values = value.map(function (i) {
@@ -31298,16 +32510,24 @@ var RuleField = /*#__PURE__*/function (_Component) {
31298
32510
  });
31299
32511
  }
31300
32512
  }
31301
- // 结算组织选择器
31302
- if (dataChoiceBusinessType == 290) {
32513
+ // 角色选择器
32514
+ if (dataChoiceBusinessType == 360) {
31303
32515
  if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
31304
- return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
32516
+ return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
32517
+ selectBusinessType: "role",
32518
+ selectProps: _objectSpread2({
32519
+ style: styleCommon,
32520
+ placeholder: '请选择角色'
32521
+ }, dataInputBusinessType === 12 ? {
32522
+ mode: 'multiple',
32523
+ maxTagCount: 1
32524
+ } : {}),
31305
32525
  disabled: disabled,
31306
- treeCheckable: dataInputBusinessType === 12,
31307
- businessType: "settle-organization",
31308
32526
  labelInValue: true,
31309
32527
  value: values[0],
31310
- style: styleCommon,
32528
+ requestConfig: {
32529
+ filterInit: 'qp-code-in'
32530
+ },
31311
32531
  onChange: function onChange(value) {
31312
32532
  if (dataInputBusinessType === 12) {
31313
32533
  values[0] = value.map(function (i) {
@@ -31325,13 +32545,21 @@ var RuleField = /*#__PURE__*/function (_Component) {
31325
32545
  getPopupContainer: function getPopupContainer() {
31326
32546
  return document.body;
31327
32547
  }
31328
- }), /*#__PURE__*/React__default['default'].createElement("span", null, "~"), /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
32548
+ }), /*#__PURE__*/React__default['default'].createElement("span", null, "~"), /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
32549
+ selectBusinessType: "role",
32550
+ selectProps: _objectSpread2({
32551
+ style: styleCommon,
32552
+ placeholder: '请选择角色'
32553
+ }, dataInputBusinessType === 12 ? {
32554
+ mode: 'multiple',
32555
+ maxTagCount: 1
32556
+ } : {}),
31329
32557
  disabled: disabled,
31330
- treeCheckable: dataInputBusinessType === 12,
31331
- businessType: "settle-organization",
31332
32558
  labelInValue: true,
31333
- value: values[0],
31334
- style: styleCommon,
32559
+ value: values[1],
32560
+ requestConfig: {
32561
+ filterInit: 'qp-code-in'
32562
+ },
31335
32563
  onChange: function onChange(value) {
31336
32564
  if (dataInputBusinessType === 12) {
31337
32565
  values[1] = value.map(function (i) {
@@ -31351,13 +32579,31 @@ var RuleField = /*#__PURE__*/function (_Component) {
31351
32579
  }
31352
32580
  }));
31353
32581
  } else {
31354
- return /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
32582
+ var _values12;
32583
+ var _currentValue11 = dataInputBusinessType === 12 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
32584
+ return {
32585
+ key: s,
32586
+ label: valueNames[vIndex]
32587
+ };
32588
+ })) || [] : values[0] && {
32589
+ key: values[0],
32590
+ label: valueNames[0]
32591
+ } || {};
32592
+ return /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
32593
+ selectBusinessType: "role",
32594
+ selectProps: _objectSpread2({
32595
+ style: styleCommon,
32596
+ placeholder: '请选择角色'
32597
+ }, dataInputBusinessType === 12 ? {
32598
+ mode: 'multiple',
32599
+ maxTagCount: 1
32600
+ } : {}),
31355
32601
  disabled: disabled,
31356
- treeCheckable: dataInputBusinessType === 12,
31357
- businessType: "settle-organization",
31358
32602
  labelInValue: true,
31359
- value: values[0],
31360
- style: styleCommon,
32603
+ value: _currentValue11,
32604
+ requestConfig: {
32605
+ filterInit: 'qp-code-in'
32606
+ },
31361
32607
  onChange: function onChange(value) {
31362
32608
  if (dataInputBusinessType === 12) {
31363
32609
  values = value.map(function (i) {
@@ -31378,14 +32624,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
31378
32624
  });
31379
32625
  }
31380
32626
  }
31381
- // 配送方式选择器
31382
- if (dataChoiceBusinessType == 310) {
32627
+ // 品牌选择器
32628
+ if (dataChoiceBusinessType == 410) {
31383
32629
  if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
31384
32630
  return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
31385
- selectBusinessType: "deliveryMode",
32631
+ selectBusinessType: "brand",
31386
32632
  selectProps: _objectSpread2({
31387
32633
  style: styleCommon,
31388
- placeholder: '请选择配送方式'
32634
+ placeholder: '请选择品牌'
31389
32635
  }, dataInputBusinessType === 12 ? {
31390
32636
  mode: 'multiple',
31391
32637
  maxTagCount: 1
@@ -31394,7 +32640,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
31394
32640
  labelInValue: true,
31395
32641
  value: values[0],
31396
32642
  requestConfig: {
31397
- filterInit: 'qp-code-in'
32643
+ filterInit: 'qp-brandCode-in'
31398
32644
  },
31399
32645
  onChange: function onChange(value) {
31400
32646
  if (dataInputBusinessType === 12) {
@@ -31414,10 +32660,10 @@ var RuleField = /*#__PURE__*/function (_Component) {
31414
32660
  return document.body;
31415
32661
  }
31416
32662
  }), /*#__PURE__*/React__default['default'].createElement("span", null, "~"), /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
31417
- selectBusinessType: "deliveryMode",
32663
+ selectBusinessType: "brand",
31418
32664
  selectProps: _objectSpread2({
31419
32665
  style: styleCommon,
31420
- placeholder: '请选择配送方式'
32666
+ placeholder: '请选择品牌'
31421
32667
  }, dataInputBusinessType === 12 ? {
31422
32668
  mode: 'multiple',
31423
32669
  maxTagCount: 1
@@ -31426,7 +32672,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
31426
32672
  labelInValue: true,
31427
32673
  value: values[1],
31428
32674
  requestConfig: {
31429
- filterInit: 'qp-code-in'
32675
+ filterInit: 'qp-brandCode-in'
31430
32676
  },
31431
32677
  onChange: function onChange(value) {
31432
32678
  if (dataInputBusinessType === 12) {
@@ -31447,8 +32693,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
31447
32693
  }
31448
32694
  }));
31449
32695
  } else {
31450
- var _values11;
31451
- var _currentValue10 = dataInputBusinessType === 12 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
32696
+ var _values13;
32697
+ var _currentValue12 = dataInputBusinessType === 12 ? ((_values13 = values) === null || _values13 === void 0 ? void 0 : _values13.map(function (s, vIndex) {
31452
32698
  return {
31453
32699
  key: s,
31454
32700
  label: valueNames[vIndex]
@@ -31458,19 +32704,19 @@ var RuleField = /*#__PURE__*/function (_Component) {
31458
32704
  label: valueNames[0]
31459
32705
  } || {};
31460
32706
  return /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
31461
- selectBusinessType: "deliveryMode",
32707
+ selectBusinessType: "brand",
31462
32708
  selectProps: _objectSpread2({
31463
32709
  style: styleCommon,
31464
- placeholder: '请选择配送方式'
32710
+ placeholder: '请选择品牌'
31465
32711
  }, dataInputBusinessType === 12 ? {
31466
32712
  mode: 'multiple',
31467
32713
  maxTagCount: 1
31468
32714
  } : {}),
31469
32715
  disabled: disabled,
31470
32716
  labelInValue: true,
31471
- value: _currentValue10,
32717
+ value: _currentValue12,
31472
32718
  requestConfig: {
31473
- filterInit: 'qp-code-in'
32719
+ filterInit: 'qp-brandCode-in'
31474
32720
  },
31475
32721
  onChange: function onChange(value) {
31476
32722
  if (dataInputBusinessType === 12) {
@@ -31492,24 +32738,16 @@ var RuleField = /*#__PURE__*/function (_Component) {
31492
32738
  });
31493
32739
  }
31494
32740
  }
31495
- // 角色选择器
31496
- if (dataChoiceBusinessType == 360) {
32741
+ // 类目选择器
32742
+ if (dataChoiceBusinessType == 420) {
31497
32743
  if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
31498
- return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
31499
- selectBusinessType: "role",
31500
- selectProps: _objectSpread2({
31501
- style: styleCommon,
31502
- placeholder: '请选择角色'
31503
- }, dataInputBusinessType === 12 ? {
31504
- mode: 'multiple',
31505
- maxTagCount: 1
31506
- } : {}),
32744
+ return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
31507
32745
  disabled: disabled,
32746
+ treeCheckable: dataInputBusinessType === 12,
32747
+ businessType: "background-category",
31508
32748
  labelInValue: true,
31509
32749
  value: values[0],
31510
- requestConfig: {
31511
- filterInit: 'qp-code-in'
31512
- },
32750
+ style: styleCommon,
31513
32751
  onChange: function onChange(value) {
31514
32752
  if (dataInputBusinessType === 12) {
31515
32753
  values[0] = value.map(function (i) {
@@ -31527,21 +32765,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
31527
32765
  getPopupContainer: function getPopupContainer() {
31528
32766
  return document.body;
31529
32767
  }
31530
- }), /*#__PURE__*/React__default['default'].createElement("span", null, "~"), /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
31531
- selectBusinessType: "role",
31532
- selectProps: _objectSpread2({
31533
- style: styleCommon,
31534
- placeholder: '请选择角色'
31535
- }, dataInputBusinessType === 12 ? {
31536
- mode: 'multiple',
31537
- maxTagCount: 1
31538
- } : {}),
32768
+ }), /*#__PURE__*/React__default['default'].createElement("span", null, "~"), /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
31539
32769
  disabled: disabled,
32770
+ treeCheckable: dataInputBusinessType === 12,
32771
+ businessType: "background-category",
31540
32772
  labelInValue: true,
31541
- value: values[1],
31542
- requestConfig: {
31543
- filterInit: 'qp-code-in'
31544
- },
32773
+ value: values[0],
32774
+ style: styleCommon,
31545
32775
  onChange: function onChange(value) {
31546
32776
  if (dataInputBusinessType === 12) {
31547
32777
  values[1] = value.map(function (i) {
@@ -31561,31 +32791,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
31561
32791
  }
31562
32792
  }));
31563
32793
  } else {
31564
- var _values12;
31565
- var _currentValue11 = dataInputBusinessType === 12 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
31566
- return {
31567
- key: s,
31568
- label: valueNames[vIndex]
31569
- };
31570
- })) || [] : values[0] && {
31571
- key: values[0],
31572
- label: valueNames[0]
31573
- } || {};
31574
- return /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
31575
- selectBusinessType: "role",
31576
- selectProps: _objectSpread2({
31577
- style: styleCommon,
31578
- placeholder: '请选择角色'
31579
- }, dataInputBusinessType === 12 ? {
31580
- mode: 'multiple',
31581
- maxTagCount: 1
31582
- } : {}),
32794
+ return /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
31583
32795
  disabled: disabled,
32796
+ treeCheckable: dataInputBusinessType === 12,
32797
+ businessType: "background-category",
31584
32798
  labelInValue: true,
31585
- value: _currentValue11,
31586
- requestConfig: {
31587
- filterInit: 'qp-code-in'
31588
- },
32799
+ value: values[0],
32800
+ style: styleCommon,
31589
32801
  onChange: function onChange(value) {
31590
32802
  if (dataInputBusinessType === 12) {
31591
32803
  values = value.map(function (i) {
@@ -31606,77 +32818,95 @@ var RuleField = /*#__PURE__*/function (_Component) {
31606
32818
  });
31607
32819
  }
31608
32820
  }
31609
- // 品牌选择器
31610
- if (dataChoiceBusinessType == 410) {
32821
+ // 自定义选择器
32822
+ if (dataChoiceBusinessType == 40) {
31611
32823
  if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
31612
- return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
31613
- selectBusinessType: "brand",
31614
- selectProps: _objectSpread2({
32824
+ return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(CustomSelector, {
32825
+ selectProps: _objectSpread2(_objectSpread2({
31615
32826
  style: styleCommon,
31616
- placeholder: '请选择品牌'
32827
+ placeholder: '请选择'
31617
32828
  }, dataInputBusinessType === 12 ? {
31618
32829
  mode: 'multiple',
31619
- maxTagCount: 1
31620
- } : {}),
32830
+ maxTagCount: 1,
32831
+ multipleForQuery: true
32832
+ } : {}), {}, {
32833
+ getPopupContainer: function getPopupContainer() {
32834
+ return document.body;
32835
+ }
32836
+ }),
32837
+ ctx: {
32838
+ name: propertyCode || (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.propertyPath)
32839
+ },
32840
+ isSearchForm: true,
32841
+ customSelectorConfig: (others === null || others === void 0 ? void 0 : others.customSelectorConfig) || {},
31621
32842
  disabled: disabled,
31622
- labelInValue: true,
31623
32843
  value: values[0],
31624
- requestConfig: {
31625
- filterInit: 'qp-brandCode-in'
31626
- },
31627
- onChange: function onChange(value) {
32844
+ onChange: function onChange(value, sourceList) {
31628
32845
  if (dataInputBusinessType === 12) {
31629
- values[0] = value.map(function (i) {
31630
- return i.key;
31631
- });
31632
- valueNames[0] = value.map(function (i) {
32846
+ var _value$map, _sourceList$filter;
32847
+ 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) {
32848
+ return i;
32849
+ })) || [];
32850
+ valueNames[0] = (sourceList === null || sourceList === void 0 ? void 0 : (_sourceList$filter = sourceList.filter(function (s) {
32851
+ return s.value == value;
32852
+ })) === null || _sourceList$filter === void 0 ? void 0 : _sourceList$filter.map(function (i) {
31633
32853
  return i.label || '';
31634
- });
32854
+ })) || [];
31635
32855
  } else {
31636
- values[0] = [value.key];
31637
- valueNames[0] = [value.label || ''];
32856
+ var _sourceList$find;
32857
+ var vLabel = sourceList === null || sourceList === void 0 ? void 0 : (_sourceList$find = sourceList.find(function (s) {
32858
+ return s.value == value;
32859
+ })) === null || _sourceList$find === void 0 ? void 0 : _sourceList$find.label;
32860
+ values[0] = value ? [value] : [];
32861
+ valueNames[0] = vLabel ? [vLabel] : [];
31638
32862
  }
31639
32863
  callback(values, valueNames);
31640
- },
31641
- getPopupContainer: function getPopupContainer() {
31642
- return document.body;
31643
32864
  }
31644
- }), /*#__PURE__*/React__default['default'].createElement("span", null, "~"), /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
31645
- selectBusinessType: "brand",
31646
- selectProps: _objectSpread2({
32865
+ }), /*#__PURE__*/React__default['default'].createElement("span", null, "~"), /*#__PURE__*/React__default['default'].createElement(CustomSelector, {
32866
+ selectProps: _objectSpread2(_objectSpread2({
31647
32867
  style: styleCommon,
31648
- placeholder: '请选择品牌'
32868
+ placeholder: '请选择'
31649
32869
  }, dataInputBusinessType === 12 ? {
31650
32870
  mode: 'multiple',
31651
- maxTagCount: 1
31652
- } : {}),
32871
+ maxTagCount: 1,
32872
+ multipleForQuery: true
32873
+ } : {}), {}, {
32874
+ getPopupContainer: function getPopupContainer() {
32875
+ return document.body;
32876
+ }
32877
+ }),
32878
+ ctx: {
32879
+ name: propertyCode || (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.propertyPath)
32880
+ },
32881
+ isSearchForm: true,
32882
+ customSelectorConfig: (others === null || others === void 0 ? void 0 : others.customSelectorConfig) || {},
31653
32883
  disabled: disabled,
31654
- labelInValue: true,
31655
32884
  value: values[1],
31656
- requestConfig: {
31657
- filterInit: 'qp-brandCode-in'
31658
- },
31659
- onChange: function onChange(value) {
32885
+ onChange: function onChange(value, sourceList) {
31660
32886
  if (dataInputBusinessType === 12) {
31661
- values[1] = value.map(function (i) {
31662
- return i.key;
31663
- });
31664
- valueNames[1] = value.map(function (i) {
32887
+ var _value$map2, _sourceList$filter2;
32888
+ 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) {
32889
+ return i;
32890
+ })) || [];
32891
+ valueNames[1] = (sourceList === null || sourceList === void 0 ? void 0 : (_sourceList$filter2 = sourceList.filter(function (s) {
32892
+ return s.value == value;
32893
+ })) === null || _sourceList$filter2 === void 0 ? void 0 : _sourceList$filter2.map(function (i) {
31665
32894
  return i.label || '';
31666
- });
32895
+ })) || [];
31667
32896
  } else {
31668
- values[1] = [value.key];
31669
- valueNames[1] = [value.label || ''];
32897
+ var _sourceList$find2;
32898
+ var vLabel = sourceList === null || sourceList === void 0 ? void 0 : (_sourceList$find2 = sourceList.find(function (s) {
32899
+ return s.value == value;
32900
+ })) === null || _sourceList$find2 === void 0 ? void 0 : _sourceList$find2.label;
32901
+ values[1] = value ? [value] : [];
32902
+ valueNames[1] = vLabel ? [vLabel] : [];
31670
32903
  }
31671
32904
  callback(values, valueNames);
31672
- },
31673
- getPopupContainer: function getPopupContainer() {
31674
- return document.body;
31675
32905
  }
31676
32906
  }));
31677
32907
  } else {
31678
- var _values13;
31679
- var _currentValue12 = dataInputBusinessType === 12 ? ((_values13 = values) === null || _values13 === void 0 ? void 0 : _values13.map(function (s, vIndex) {
32908
+ var _values14;
32909
+ var _currentValue13 = dataInputBusinessType === 12 ? ((_values14 = values) === null || _values14 === void 0 ? void 0 : _values14.map(function (s, vIndex) {
31680
32910
  return {
31681
32911
  key: s,
31682
32912
  label: valueNames[vIndex]
@@ -31685,117 +32915,46 @@ var RuleField = /*#__PURE__*/function (_Component) {
31685
32915
  key: values[0],
31686
32916
  label: valueNames[0]
31687
32917
  } || {};
31688
- return /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
31689
- selectBusinessType: "brand",
31690
- selectProps: _objectSpread2({
32918
+ return /*#__PURE__*/React__default['default'].createElement(CustomSelector, {
32919
+ selectProps: _objectSpread2(_objectSpread2({
31691
32920
  style: styleCommon,
31692
- placeholder: '请选择品牌'
32921
+ placeholder: '请选择'
31693
32922
  }, dataInputBusinessType === 12 ? {
31694
32923
  mode: 'multiple',
31695
- maxTagCount: 1
31696
- } : {}),
31697
- disabled: disabled,
31698
- labelInValue: true,
31699
- value: _currentValue12,
31700
- requestConfig: {
31701
- filterInit: 'qp-brandCode-in'
31702
- },
31703
- onChange: function onChange(value) {
31704
- if (dataInputBusinessType === 12) {
31705
- values = value.map(function (i) {
31706
- return i.key;
31707
- }) || [];
31708
- valueNames = value.map(function (i) {
31709
- return i.label || '';
31710
- }) || [];
31711
- } else {
31712
- values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
31713
- valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
32924
+ maxTagCount: 1,
32925
+ multipleForQuery: true
32926
+ } : {}), {}, {
32927
+ getPopupContainer: function getPopupContainer() {
32928
+ return document.body;
31714
32929
  }
31715
- callback(values, valueNames);
31716
- },
31717
- getPopupContainer: function getPopupContainer() {
31718
- return document.body;
31719
- }
31720
- });
31721
- }
31722
- }
31723
- // 类目选择器
31724
- if (dataChoiceBusinessType == 420) {
31725
- if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
31726
- return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
31727
- disabled: disabled,
31728
- treeCheckable: dataInputBusinessType === 12,
31729
- businessType: "background-category",
31730
- labelInValue: true,
31731
- value: values[0],
31732
- style: styleCommon,
31733
- onChange: function onChange(value) {
31734
- if (dataInputBusinessType === 12) {
31735
- values[0] = value.map(function (i) {
31736
- return i.key;
31737
- });
31738
- valueNames[0] = value.map(function (i) {
31739
- return i.label || '';
31740
- });
31741
- } else {
31742
- values[0] = [value.key];
31743
- valueNames[0] = [value.label || ''];
31744
- }
31745
- callback(values, valueNames);
32930
+ }),
32931
+ ctx: {
32932
+ name: propertyCode || (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.propertyPath)
31746
32933
  },
31747
- getPopupContainer: function getPopupContainer() {
31748
- return document.body;
31749
- }
31750
- }), /*#__PURE__*/React__default['default'].createElement("span", null, "~"), /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
32934
+ isSearchForm: true,
32935
+ customSelectorConfig: (others === null || others === void 0 ? void 0 : others.customSelectorConfig) || {},
31751
32936
  disabled: disabled,
31752
- treeCheckable: dataInputBusinessType === 12,
31753
- businessType: "background-category",
31754
- labelInValue: true,
31755
- value: values[0],
31756
- style: styleCommon,
31757
- onChange: function onChange(value) {
32937
+ value: _currentValue13,
32938
+ onChange: function onChange(value, sourceList) {
31758
32939
  if (dataInputBusinessType === 12) {
31759
- values[1] = value.map(function (i) {
31760
- return i.key;
31761
- });
31762
- valueNames[1] = value.map(function (i) {
32940
+ var _value$map3, _sourceList$filter3;
32941
+ 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) {
32942
+ return i;
32943
+ })) || [];
32944
+ valueNames = (sourceList === null || sourceList === void 0 ? void 0 : (_sourceList$filter3 = sourceList.filter(function (s) {
32945
+ return s.value == value;
32946
+ })) === null || _sourceList$filter3 === void 0 ? void 0 : _sourceList$filter3.map(function (i) {
31763
32947
  return i.label || '';
31764
- });
32948
+ })) || [];
31765
32949
  } else {
31766
- values[1] = [value.key];
31767
- valueNames[1] = [value.label || ''];
32950
+ var _sourceList$find3;
32951
+ var vLabel = sourceList === null || sourceList === void 0 ? void 0 : (_sourceList$find3 = sourceList.find(function (s) {
32952
+ return s.value == value;
32953
+ })) === null || _sourceList$find3 === void 0 ? void 0 : _sourceList$find3.label;
32954
+ values = value ? [value] : [];
32955
+ valueNames = vLabel ? [vLabel] : [];
31768
32956
  }
31769
32957
  callback(values, valueNames);
31770
- },
31771
- getPopupContainer: function getPopupContainer() {
31772
- return document.body;
31773
- }
31774
- }));
31775
- } else {
31776
- return /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
31777
- disabled: disabled,
31778
- treeCheckable: dataInputBusinessType === 12,
31779
- businessType: "background-category",
31780
- labelInValue: true,
31781
- value: values[0],
31782
- style: styleCommon,
31783
- onChange: function onChange(value) {
31784
- if (dataInputBusinessType === 12) {
31785
- values = value.map(function (i) {
31786
- return i.key;
31787
- }) || [];
31788
- valueNames = value.map(function (i) {
31789
- return i.label || '';
31790
- }) || [];
31791
- } else {
31792
- values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
31793
- valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
31794
- }
31795
- callback(values, valueNames);
31796
- },
31797
- getPopupContainer: function getPopupContainer() {
31798
- return document.body;
31799
32958
  }
31800
32959
  });
31801
32960
  }
@@ -31922,6 +33081,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
31922
33081
  dataTypeCode: '',
31923
33082
  dataChoiceBusinessType: '',
31924
33083
  dataInputBusinessType: '',
33084
+ others: {},
31925
33085
  fieldValues: [],
31926
33086
  thresholdQuery: {},
31927
33087
  thresholdList: [],
@@ -31939,6 +33099,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
31939
33099
  dataTypeCode = _this$props3.dataTypeCode,
31940
33100
  dataChoiceBusinessType = _this$props3.dataChoiceBusinessType,
31941
33101
  dataInputBusinessType = _this$props3.dataInputBusinessType,
33102
+ others = _this$props3.others,
31942
33103
  options = _this$props3.options,
31943
33104
  values = _this$props3.values,
31944
33105
  initialThresholdQuery = _this$props3.initialThresholdQuery,
@@ -31951,6 +33112,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
31951
33112
  dataTypeCode: dataTypeCode,
31952
33113
  dataChoiceBusinessType: dataChoiceBusinessType,
31953
33114
  dataInputBusinessType: dataInputBusinessType,
33115
+ others: others,
31954
33116
  fieldValues: _toConsumableArray(values),
31955
33117
  options: options
31956
33118
  }, function () {
@@ -31987,6 +33149,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
31987
33149
  dataInputBusinessType: nextProps.dataInputBusinessType
31988
33150
  });
31989
33151
  }
33152
+ if (nextProps.others != this.props.others) {
33153
+ this.setState({
33154
+ others: nextProps.others
33155
+ });
33156
+ }
31990
33157
  // if (nextProps.selectOperation != this.props.selectOperation) {
31991
33158
  // this.setState({
31992
33159
  // options: nextProps.options
@@ -32533,6 +33700,7 @@ var InnerSelect = (function (props) {
32533
33700
 
32534
33701
  var RangePicker$1 = antd.DatePicker.RangePicker;
32535
33702
  function RenderCompItem(props) {
33703
+ var _others;
32536
33704
  var regularDataList = props.regularDataList,
32537
33705
  ites = props.ites,
32538
33706
  showValue = props.showValue,
@@ -33087,6 +34255,29 @@ function RenderCompItem(props) {
33087
34255
  getPopupContainer: function getPopupContainer() {
33088
34256
  return document.body;
33089
34257
  }
34258
+ })) || 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__default['default'].createElement(CustomSelector, {
34259
+ selectProps: _objectSpread2(_objectSpread2({
34260
+ style: styleCommon,
34261
+ placeholder: '请选择'
34262
+ }, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
34263
+ mode: 'multiple',
34264
+ maxTagCount: 1,
34265
+ multipleForQuery: true
34266
+ } : {}), {}, {
34267
+ getPopupContainer: function getPopupContainer() {
34268
+ return document.body;
34269
+ }
34270
+ }),
34271
+ ctx: {
34272
+ name: ites.code
34273
+ },
34274
+ isSearchForm: true,
34275
+ customSelectorConfig: ((_others = others) === null || _others === void 0 ? void 0 : _others.customSelectorConfig) || {},
34276
+ disabled: disabled,
34277
+ value: showValue(ites.code),
34278
+ onChange: function onChange(value) {
34279
+ handleEdit(ites.code, value);
34280
+ }
33090
34281
  })) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && ( /*#__PURE__*/React__default['default'].createElement("div", {
33091
34282
  style: {
33092
34283
  display: 'flex'
@@ -33161,7 +34352,10 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
33161
34352
  dataTypeCode: element.valueType,
33162
34353
  dataChoiceBusinessType: element.choiceType,
33163
34354
  dataInputBusinessType: element.inputType,
33164
- info: element.info
34355
+ info: element.info,
34356
+ otherMainInfo: {
34357
+ customSelectorConfig: element.customSelectorConfig
34358
+ }
33165
34359
  };
33166
34360
  if (element === null || element === void 0 ? void 0 : (_element$propertyList = element.propertyList) === null || _element$propertyList === void 0 ? void 0 : _element$propertyList.length) {
33167
34361
  child.children = _this.parseChildTreeData(element.propertyList, "".concat(element.code), "".concat(item.name, "-").concat(element.name), item.code);
@@ -33212,7 +34406,10 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
33212
34406
  dataTypeCode: element.valueType,
33213
34407
  dataChoiceBusinessType: element.choiceType,
33214
34408
  dataInputBusinessType: element.inputType,
33215
- info: element.info
34409
+ info: element.info,
34410
+ otherMainInfo: {
34411
+ customSelectorConfig: element.customSelectorConfig
34412
+ }
33216
34413
  };
33217
34414
  if (element.propertyList) {
33218
34415
  child.children = _this.parseChildTreeData(element.propertyList, "".concat(parentKey, ".").concat(element.code), "".concat(parentTitle, "-").concat(element.name), rootObjCode);
@@ -33611,6 +34808,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
33611
34808
  alignItems: 'center'
33612
34809
  }
33613
34810
  }, /*#__PURE__*/React__default['default'].createElement(antd.TreeSelect, {
34811
+ showSearch: true,
34812
+ treeNodeFilterProp: "title",
33614
34813
  value: itemDetail.elementId,
33615
34814
  disabled: disabled,
33616
34815
  onChange: function onChange(value, name, nodeInfo) {
@@ -33671,6 +34870,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
33671
34870
  // propertyCode={`${itemDetail.metaObjectCode}.${itemDetail.propertyPath}`}
33672
34871
  ,
33673
34872
  relateDatas: relateDatas,
34873
+ others: currentTreeItem === null || currentTreeItem === void 0 ? void 0 : currentTreeItem.otherMainInfo,
33674
34874
  values: itemDetail.params || [],
33675
34875
  valueNames: itemDetail.paramNames || [],
33676
34876
  callback: function callback(newValues, newValueNames) {
@@ -33813,6 +35013,21 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
33813
35013
  }) : pCode;
33814
35014
  }
33815
35015
  }
35016
+ if ((configItem === null || configItem === void 0 ? void 0 : configItem.inputType) === 30) {
35017
+ var _pCode$split;
35018
+ var _newPCode = Array.isArray(pCode) ? pCode === null || pCode === void 0 ? void 0 : pCode.map(function (s) {
35019
+ return isObj(s) ? s : {
35020
+ key: s,
35021
+ value: s
35022
+ };
35023
+ }) : pCode === null || pCode === void 0 ? void 0 : (_pCode$split = pCode.split(',')) === null || _pCode$split === void 0 ? void 0 : _pCode$split.map(function (s) {
35024
+ return {
35025
+ key: s,
35026
+ value: s
35027
+ };
35028
+ });
35029
+ return _newPCode || pCode || defaultValue;
35030
+ }
33816
35031
  return pCode || defaultValue;
33817
35032
  };
33818
35033
  var handleEdit = function handleEdit(code, val, functionItem) {
@@ -33823,7 +35038,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
33823
35038
  });
33824
35039
  return;
33825
35040
  }
33826
- if (Array.isArray(val)) {
35041
+ if (Array.isArray(val) && (val === null || val === void 0 ? void 0 : val.length)) {
33827
35042
  value = val.map(function (m) {
33828
35043
  return m.value || m;
33829
35044
  }).join(',');
@@ -34258,12 +35473,12 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
34258
35473
  }, /*#__PURE__*/React__default['default'].createElement("div", {
34259
35474
  className: 'base_rule_content'
34260
35475
  }, headerButtonComponentFun ? headerButtonComponentFun(this.handleAddRule) : /*#__PURE__*/React__default['default'].createElement("div", {
34261
- disabled: disabled,
34262
35476
  style: {
34263
35477
  display: onlyOneRule ? 'none' : 'block'
34264
35478
  },
34265
35479
  className: 'base_rule_line_title'
34266
35480
  }, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
35481
+ disabled: disabled,
34267
35482
  onClick: this.handleAddRule,
34268
35483
  className: 'base_rule_btn_style',
34269
35484
  type: "link"
@@ -35294,17 +36509,17 @@ var index$7 = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
35294
36509
  })));
35295
36510
  });
35296
36511
 
35297
- 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";
36512
+ 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";
35298
36513
  styleInject(css_248z$v);
35299
36514
 
35300
- var _excluded$j = ["titleExtra", "header", "showArrow"];
36515
+ var _excluded$k = ["titleExtra", "header", "showArrow"];
35301
36516
  var Panel = antd.Collapse.Panel;
35302
36517
  var ExtendedPanel = function ExtendedPanel(_ref) {
35303
36518
  var titleExtra = _ref.titleExtra,
35304
36519
  header = _ref.header,
35305
36520
  _ref$showArrow = _ref.showArrow,
35306
36521
  showArrow = _ref$showArrow === void 0 ? false : _ref$showArrow,
35307
- props = _objectWithoutProperties(_ref, _excluded$j);
36522
+ props = _objectWithoutProperties(_ref, _excluded$k);
35308
36523
  var renderHeader = function renderHeader() {
35309
36524
  return /*#__PURE__*/React__default['default'].createElement(antd.Space, {
35310
36525
  align: "center"
@@ -35328,11 +36543,11 @@ var ExtendedPanel = function ExtendedPanel(_ref) {
35328
36543
  }), props.children);
35329
36544
  };
35330
36545
 
35331
- var _excluded$k = ["children", "bordered"];
36546
+ var _excluded$l = ["children", "bordered"];
35332
36547
  var ExtendedCollapse = function ExtendedCollapse(props) {
35333
36548
  var children = props.children,
35334
36549
  bordered = props.bordered,
35335
- restProps = _objectWithoutProperties(props, _excluded$k);
36550
+ restProps = _objectWithoutProperties(props, _excluded$l);
35336
36551
  return /*#__PURE__*/React__default['default'].createElement("div", {
35337
36552
  className: classNames__default['default']({
35338
36553
  'bs-collapse-wrap': true,
@@ -35399,6 +36614,53 @@ var Section = function Section(_ref) {
35399
36614
  }, children));
35400
36615
  };
35401
36616
 
36617
+ var IconFont = icons.createFromIconfontCN({
36618
+ scriptUrl: '//at.alicdn.com/t/c/font_4645959_8nhs21v6bnp.js'
36619
+ });
36620
+ var Paragraph$1 = antd.Typography.Paragraph;
36621
+ var ParagraphCopier = function ParagraphCopier(props) {
36622
+ var children = props.children,
36623
+ text = props.text,
36624
+ _props$enableHover = props.enableHover,
36625
+ enableHover = _props$enableHover === void 0 ? false : _props$enableHover;
36626
+ var _useState = React$1.useState(false),
36627
+ _useState2 = _slicedToArray(_useState, 2),
36628
+ isHover = _useState2[0],
36629
+ setIsHover = _useState2[1]; // 只有当 enableHover 为 true 时才使用
36630
+ // 鼠标进入和离开的事件处理函数
36631
+ var handleMouseEnter = function handleMouseEnter() {
36632
+ if (enableHover) {
36633
+ setIsHover(true);
36634
+ }
36635
+ };
36636
+ var handleMouseLeave = function handleMouseLeave() {
36637
+ if (enableHover) {
36638
+ setIsHover(false);
36639
+ }
36640
+ };
36641
+ // 拷贝选项,包含图标和提示信息
36642
+ var copyableOptions = {
36643
+ text: text,
36644
+ icon: /*#__PURE__*/React__default['default'].createElement(IconFont, {
36645
+ type: "icon-qyhtfuzhi",
36646
+ style: {
36647
+ fontSize: '14px'
36648
+ }
36649
+ }),
36650
+ tooltips: ['点击复制', '复制成功']
36651
+ };
36652
+ return /*#__PURE__*/React__default['default'].createElement("div", {
36653
+ onMouseEnter: handleMouseEnter,
36654
+ onMouseLeave: handleMouseLeave
36655
+ }, /*#__PURE__*/React__default['default'].createElement(Paragraph$1, {
36656
+ copyable: enableHover ? isHover && copyableOptions : copyableOptions,
36657
+ style: {
36658
+ marginBottom: '0',
36659
+ cursor: 'pointer'
36660
+ }
36661
+ }, children));
36662
+ };
36663
+
35402
36664
  exports.AddSelect = AddSelect;
35403
36665
  exports.AddSkcSelect = AddSkcSelect;
35404
36666
  exports.AddSkuSelect = AddSkuSelect;
@@ -35425,6 +36687,7 @@ exports.HandleTotalCount = HandleTotalCount;
35425
36687
  exports.HomePageWrapper = index$4;
35426
36688
  exports.JsonQueryTable = JsonQueryTable;
35427
36689
  exports.MoreTreeTable = index$6;
36690
+ exports.ParagraphCopier = ParagraphCopier;
35428
36691
  exports.QueryMutipleInput = QueryMutipleInput;
35429
36692
  exports.RuleComponent = RuleObjectComponent;
35430
36693
  exports.RuleSetter = index$7;
@@ -35469,12 +36732,14 @@ exports.handleBaseUrlPre = handleBaseUrlPre;
35469
36732
  exports.handleBeforeUpload = handleBeforeUpload;
35470
36733
  exports.handleBssulaColumnsSpecialParams = handleBssulaColumnsSpecialParams;
35471
36734
  exports.handleCommonTimeRender = handleCommonTimeRender$1;
36735
+ exports.handleConvertResponse = handleConvertResponse;
35472
36736
  exports.handleError = handleError;
35473
36737
  exports.handleExport = handleExport;
35474
36738
  exports.handleExportBarCode = handleExportBarCode;
35475
36739
  exports.handleJudgeAuthButtons = handleJudgeAuthButtons;
35476
36740
  exports.handleOssUrl = handleOssUrl;
35477
36741
  exports.handleRequestAuthHeader = handleRequestAuthHeader;
36742
+ exports.handleRequestHeader = handleRequestHeader;
35478
36743
  exports.handleRequestUrl = handleRequestUrl;
35479
36744
  exports.handleStatusBadge = handleStatusBadge;
35480
36745
  exports.handleTextBreakSpaces = handleTextBreakSpaces;
@@ -35494,7 +36759,9 @@ exports.judgeIsRequestSuccess = judgeIsRequestSuccess;
35494
36759
  exports.keyToWord = keyToWord;
35495
36760
  exports.memoizeOneFormatter = memoizeOneFormatter;
35496
36761
  exports.noEmptyArr = noEmptyArr;
36762
+ exports.noEmptyArray = noEmptyArray;
35497
36763
  exports.paramsControl = paramsControl;
36764
+ exports.parseWidth = parseWidth;
35498
36765
  exports.precisionQuantity = precisionQuantity;
35499
36766
  exports.randomString = randomString;
35500
36767
  exports.readerXlsxToList = readerXlsxToList;