wt-antd 4.2.38

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 (300) hide show
  1. package/README.md +26 -0
  2. package/dist/esm/assets/location.png +0 -0
  3. package/dist/esm/component/BiuAAutoComplete/index.d.ts +4 -0
  4. package/dist/esm/component/BiuAAutoComplete/index.js +13 -0
  5. package/dist/esm/component/BiuAButton/index.d.ts +18 -0
  6. package/dist/esm/component/BiuAButton/index.js +8 -0
  7. package/dist/esm/component/BiuACard/index.d.ts +2 -0
  8. package/dist/esm/component/BiuACard/index.js +9 -0
  9. package/dist/esm/component/BiuACascader/index.d.ts +10 -0
  10. package/dist/esm/component/BiuACascader/index.js +8 -0
  11. package/dist/esm/component/BiuADatePicker/index.d.ts +19 -0
  12. package/dist/esm/component/BiuADatePicker/index.js +18 -0
  13. package/dist/esm/component/BiuAForm/index.d.ts +7 -0
  14. package/dist/esm/component/BiuAForm/index.js +10 -0
  15. package/dist/esm/component/BiuAInput/index.d.ts +14 -0
  16. package/dist/esm/component/BiuAInput/index.js +32 -0
  17. package/dist/esm/component/BiuASelect/index.d.ts +6 -0
  18. package/dist/esm/component/BiuASelect/index.js +14 -0
  19. package/dist/esm/component/BiuASwitch/index.d.ts +2 -0
  20. package/dist/esm/component/BiuASwitch/index.js +9 -0
  21. package/dist/esm/component/BiuATimePicker/index.d.ts +4 -0
  22. package/dist/esm/component/BiuATimePicker/index.js +8 -0
  23. package/dist/esm/component/BiuATreeSelect/index.d.ts +2 -0
  24. package/dist/esm/component/BiuATreeSelect/index.js +8 -0
  25. package/dist/esm/component/BiuBar/index.d.ts +13 -0
  26. package/dist/esm/component/BiuBar/index.js +43 -0
  27. package/dist/esm/component/BiuComSelect/index.d.ts +19 -0
  28. package/dist/esm/component/BiuComSelect/index.js +106 -0
  29. package/dist/esm/component/BiuCue/index.d.ts +18 -0
  30. package/dist/esm/component/BiuCue/index.js +44 -0
  31. package/dist/esm/component/BiuCustomSelect/index.d.ts +19 -0
  32. package/dist/esm/component/BiuCustomSelect/index.js +160 -0
  33. package/dist/esm/component/BiuCustomTable/index.d.ts +15 -0
  34. package/dist/esm/component/BiuCustomTable/index.js +77 -0
  35. package/dist/esm/component/BiuCustomerOperCard/component/editTable.d.ts +9 -0
  36. package/dist/esm/component/BiuCustomerOperCard/component/editTable.js +268 -0
  37. package/dist/esm/component/BiuCustomerOperCard/component/index.d.ts +1 -0
  38. package/dist/esm/component/BiuCustomerOperCard/component/index.js +1 -0
  39. package/dist/esm/component/BiuCustomerOperCard/component/index.less +5 -0
  40. package/dist/esm/component/BiuCustomerOperCard/index.d.ts +20 -0
  41. package/dist/esm/component/BiuCustomerOperCard/index.js +56 -0
  42. package/dist/esm/component/BiuCustomerOperCard/type.d.ts +117 -0
  43. package/dist/esm/component/BiuCustomerOperCard/type.js +1 -0
  44. package/dist/esm/component/BiuCustomerOperCard/utils.d.ts +48 -0
  45. package/dist/esm/component/BiuCustomerOperCard/utils.js +236 -0
  46. package/dist/esm/component/BiuDescriptions/index.d.ts +9 -0
  47. package/dist/esm/component/BiuDescriptions/index.js +39 -0
  48. package/dist/esm/component/BiuDetailDrawer/index.d.ts +14 -0
  49. package/dist/esm/component/BiuDetailDrawer/index.js +55 -0
  50. package/dist/esm/component/BiuDivider/index.d.ts +4 -0
  51. package/dist/esm/component/BiuDivider/index.js +31 -0
  52. package/dist/esm/component/BiuField/component/AddressTableSelect.d.ts +3 -0
  53. package/dist/esm/component/BiuField/component/AddressTableSelect.js +150 -0
  54. package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/index.d.ts +3 -0
  55. package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/index.js +3 -0
  56. package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/useConvertSubValue.d.ts +2 -0
  57. package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/useConvertSubValue.js +49 -0
  58. package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/useConvertUnSubValue.d.ts +2 -0
  59. package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/useConvertUnSubValue.js +146 -0
  60. package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/useInConvertUnSubValue.d.ts +5 -0
  61. package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/useInConvertUnSubValue.js +82 -0
  62. package/dist/esm/component/BiuField/component/DepartOrgSelect/index.d.ts +14 -0
  63. package/dist/esm/component/BiuField/component/DepartOrgSelect/index.js +400 -0
  64. package/dist/esm/component/BiuField/component/DepartOrgSelect/type.d.ts +123 -0
  65. package/dist/esm/component/BiuField/component/DepartOrgSelect/type.js +1 -0
  66. package/dist/esm/component/BiuField/component/DepartOrgSelect/utils.d.ts +5 -0
  67. package/dist/esm/component/BiuField/component/DepartOrgSelect/utils.js +59 -0
  68. package/dist/esm/component/BiuField/component/OMSSystem/cityAreaSelect.d.ts +12 -0
  69. package/dist/esm/component/BiuField/component/OMSSystem/cityAreaSelect.js +130 -0
  70. package/dist/esm/component/BiuField/component/OMSSystem/warehouseSel.d.ts +7 -0
  71. package/dist/esm/component/BiuField/component/OMSSystem/warehouseSel.js +80 -0
  72. package/dist/esm/component/BiuField/component/SNInput.d.ts +13 -0
  73. package/dist/esm/component/BiuField/component/SNInput.js +622 -0
  74. package/dist/esm/component/BiuField/component/TableSelectLocal/addressSelect.d.ts +24 -0
  75. package/dist/esm/component/BiuField/component/TableSelectLocal/addressSelect.js +191 -0
  76. package/dist/esm/component/BiuField/component/TableSelectLocal/base.d.ts +13 -0
  77. package/dist/esm/component/BiuField/component/TableSelectLocal/base.js +204 -0
  78. package/dist/esm/component/BiuField/component/TableSelectLocal/goodSelect.d.ts +21 -0
  79. package/dist/esm/component/BiuField/component/TableSelectLocal/goodSelect.js +238 -0
  80. package/dist/esm/component/BiuField/component/TableSelectLocal/index.d.ts +3 -0
  81. package/dist/esm/component/BiuField/component/TableSelectLocal/index.js +74 -0
  82. package/dist/esm/component/BiuField/component/TableSelectLocal/interface.d.ts +16 -0
  83. package/dist/esm/component/BiuField/component/TableSelectLocal/interface.js +1 -0
  84. package/dist/esm/component/BiuField/component/TableSelectLocal/locationSelect.d.ts +28 -0
  85. package/dist/esm/component/BiuField/component/TableSelectLocal/locationSelect.js +177 -0
  86. package/dist/esm/component/BiuField/component/TableSelectLocal/newGoodsSelect.d.ts +21 -0
  87. package/dist/esm/component/BiuField/component/TableSelectLocal/newGoodsSelect.js +247 -0
  88. package/dist/esm/component/BiuField/component/TableSelectLocal/package.d.ts +3 -0
  89. package/dist/esm/component/BiuField/component/TableSelectLocal/package.js +149 -0
  90. package/dist/esm/component/BiuField/component/TableSelectLocal/supplierSelect.d.ts +18 -0
  91. package/dist/esm/component/BiuField/component/TableSelectLocal/supplierSelect.js +145 -0
  92. package/dist/esm/component/BiuField/component/TableSelectLocal/warehouseAreaSelect.d.ts +3 -0
  93. package/dist/esm/component/BiuField/component/TableSelectLocal/warehouseAreaSelect.js +117 -0
  94. package/dist/esm/component/BiuField/component/TableSelectLocal/warehouseInfoSelects.d.ts +18 -0
  95. package/dist/esm/component/BiuField/component/TableSelectLocal/warehouseInfoSelects.js +100 -0
  96. package/dist/esm/component/BiuField/component/appliedgoodsTypeSelect.d.ts +9 -0
  97. package/dist/esm/component/BiuField/component/appliedgoodsTypeSelect.js +75 -0
  98. package/dist/esm/component/BiuField/component/autoComplete.d.ts +8 -0
  99. package/dist/esm/component/BiuField/component/autoComplete.js +82 -0
  100. package/dist/esm/component/BiuField/component/biuMultipleAInput.d.ts +2 -0
  101. package/dist/esm/component/BiuField/component/biuMultipleAInput.js +133 -0
  102. package/dist/esm/component/BiuField/component/boxTypeSelect.d.ts +11 -0
  103. package/dist/esm/component/BiuField/component/boxTypeSelect.js +139 -0
  104. package/dist/esm/component/BiuField/component/businessdistrictselect.d.ts +55 -0
  105. package/dist/esm/component/BiuField/component/businessdistrictselect.js +414 -0
  106. package/dist/esm/component/BiuField/component/carrierInfoSelect.d.ts +13 -0
  107. package/dist/esm/component/BiuField/component/carrierInfoSelect.js +145 -0
  108. package/dist/esm/component/BiuField/component/channelSelect.d.ts +8 -0
  109. package/dist/esm/component/BiuField/component/channelSelect.js +94 -0
  110. package/dist/esm/component/BiuField/component/cityAreaCascader.d.ts +11 -0
  111. package/dist/esm/component/BiuField/component/cityAreaCascader.js +86 -0
  112. package/dist/esm/component/BiuField/component/clientInfoTableSelect.d.ts +3 -0
  113. package/dist/esm/component/BiuField/component/clientInfoTableSelect.js +198 -0
  114. package/dist/esm/component/BiuField/component/customMenu.d.ts +3 -0
  115. package/dist/esm/component/BiuField/component/customMenu.js +110 -0
  116. package/dist/esm/component/BiuField/component/databaseSelect.d.ts +6 -0
  117. package/dist/esm/component/BiuField/component/databaseSelect.js +42 -0
  118. package/dist/esm/component/BiuField/component/departmentTreeSelect.d.ts +3 -0
  119. package/dist/esm/component/BiuField/component/departmentTreeSelect.js +107 -0
  120. package/dist/esm/component/BiuField/component/dicNameSelect.d.ts +12 -0
  121. package/dist/esm/component/BiuField/component/dicNameSelect.js +53 -0
  122. package/dist/esm/component/BiuField/component/dicTypeSelect.d.ts +42 -0
  123. package/dist/esm/component/BiuField/component/dicTypeSelect.js +87 -0
  124. package/dist/esm/component/BiuField/component/dockingPartySelect.d.ts +8 -0
  125. package/dist/esm/component/BiuField/component/dockingPartySelect.js +63 -0
  126. package/dist/esm/component/BiuField/component/editLocationSelect.d.ts +21 -0
  127. package/dist/esm/component/BiuField/component/editLocationSelect.js +124 -0
  128. package/dist/esm/component/BiuField/component/electronicFaceSheet/accountSelect.d.ts +3 -0
  129. package/dist/esm/component/BiuField/component/electronicFaceSheet/accountSelect.js +36 -0
  130. package/dist/esm/component/BiuField/component/electronicFaceSheet/addresSelect.d.ts +14 -0
  131. package/dist/esm/component/BiuField/component/electronicFaceSheet/addresSelect.js +97 -0
  132. package/dist/esm/component/BiuField/component/electronicFaceSheet/platformSelect.d.ts +7 -0
  133. package/dist/esm/component/BiuField/component/electronicFaceSheet/platformSelect.js +73 -0
  134. package/dist/esm/component/BiuField/component/goodsTypeSelect.d.ts +10 -0
  135. package/dist/esm/component/BiuField/component/goodsTypeSelect.js +92 -0
  136. package/dist/esm/component/BiuField/component/index.d.ts +39 -0
  137. package/dist/esm/component/BiuField/component/index.js +39 -0
  138. package/dist/esm/component/BiuField/component/interfaceNameSelect.d.ts +9 -0
  139. package/dist/esm/component/BiuField/component/interfaceNameSelect.js +65 -0
  140. package/dist/esm/component/BiuField/component/lpnSelect.d.ts +3 -0
  141. package/dist/esm/component/BiuField/component/lpnSelect.js +95 -0
  142. package/dist/esm/component/BiuField/component/lpnSelectNew.d.ts +17 -0
  143. package/dist/esm/component/BiuField/component/lpnSelectNew.js +188 -0
  144. package/dist/esm/component/BiuField/component/newEditLocationSelect.d.ts +21 -0
  145. package/dist/esm/component/BiuField/component/newEditLocationSelect.js +129 -0
  146. package/dist/esm/component/BiuField/component/orderTypeSelect.d.ts +16 -0
  147. package/dist/esm/component/BiuField/component/orderTypeSelect.js +82 -0
  148. package/dist/esm/component/BiuField/component/orderTypeTableSelect.d.ts +3 -0
  149. package/dist/esm/component/BiuField/component/orderTypeTableSelect.js +45 -0
  150. package/dist/esm/component/BiuField/component/parkSelect.d.ts +12 -0
  151. package/dist/esm/component/BiuField/component/parkSelect.js +88 -0
  152. package/dist/esm/component/BiuField/component/personnelinfoselect.d.ts +57 -0
  153. package/dist/esm/component/BiuField/component/personnelinfoselect.js +431 -0
  154. package/dist/esm/component/BiuField/component/propertNameSelect.d.ts +9 -0
  155. package/dist/esm/component/BiuField/component/propertNameSelect.js +114 -0
  156. package/dist/esm/component/BiuField/component/shipperTableSelect.d.ts +3 -0
  157. package/dist/esm/component/BiuField/component/shipperTableSelect.js +94 -0
  158. package/dist/esm/component/BiuField/component/userSelect.d.ts +11 -0
  159. package/dist/esm/component/BiuField/component/userSelect.js +172 -0
  160. package/dist/esm/component/BiuField/component/warehouseAreaSelect.d.ts +9 -0
  161. package/dist/esm/component/BiuField/component/warehouseAreaSelect.js +103 -0
  162. package/dist/esm/component/BiuField/component/warehouseInfoSelect.d.ts +14 -0
  163. package/dist/esm/component/BiuField/component/warehouseInfoSelect.js +94 -0
  164. package/dist/esm/component/BiuField/component/warehouseLoctionSelect.d.ts +14 -0
  165. package/dist/esm/component/BiuField/component/warehouseLoctionSelect.js +124 -0
  166. package/dist/esm/component/BiuField/index.d.ts +8 -0
  167. package/dist/esm/component/BiuField/index.js +670 -0
  168. package/dist/esm/component/BiuFileInput/index.d.ts +11 -0
  169. package/dist/esm/component/BiuFileInput/index.js +58 -0
  170. package/dist/esm/component/BiuForm/index.d.ts +14 -0
  171. package/dist/esm/component/BiuForm/index.js +264 -0
  172. package/dist/esm/component/BiuForm/type.d.ts +47 -0
  173. package/dist/esm/component/BiuForm/type.js +1 -0
  174. package/dist/esm/component/BiuForm/utils.d.ts +2 -0
  175. package/dist/esm/component/BiuForm/utils.js +53 -0
  176. package/dist/esm/component/BiuIcon/index.d.ts +3 -0
  177. package/dist/esm/component/BiuIcon/index.js +15 -0
  178. package/dist/esm/component/BiuMapSelectSite/index.d.ts +52 -0
  179. package/dist/esm/component/BiuMapSelectSite/index.js +558 -0
  180. package/dist/esm/component/BiuModal/index.d.ts +24 -0
  181. package/dist/esm/component/BiuModal/index.js +240 -0
  182. package/dist/esm/component/BiuOperForm/index.d.ts +22 -0
  183. package/dist/esm/component/BiuOperForm/index.js +390 -0
  184. package/dist/esm/component/BiuOperForm/type.d.ts +24 -0
  185. package/dist/esm/component/BiuOperForm/type.js +1 -0
  186. package/dist/esm/component/BiuOperTable/index.d.ts +15 -0
  187. package/dist/esm/component/BiuOperTable/index.js +349 -0
  188. package/dist/esm/component/BiuOperTable/type.d.ts +142 -0
  189. package/dist/esm/component/BiuOperTable/type.js +1 -0
  190. package/dist/esm/component/BiuOperTable/utils.d.ts +6 -0
  191. package/dist/esm/component/BiuOperTable/utils.js +13 -0
  192. package/dist/esm/component/BiuPagination/index.d.ts +15 -0
  193. package/dist/esm/component/BiuPagination/index.js +34 -0
  194. package/dist/esm/component/BiuResizeTable/component/VirtualTable.d.ts +3 -0
  195. package/dist/esm/component/BiuResizeTable/component/VirtualTable.js +127 -0
  196. package/dist/esm/component/BiuResizeTable/component/biuTableCell.d.ts +1 -0
  197. package/dist/esm/component/BiuResizeTable/component/biuTableCell.js +78 -0
  198. package/dist/esm/component/BiuResizeTable/component/index.d.ts +1 -0
  199. package/dist/esm/component/BiuResizeTable/component/index.js +1 -0
  200. package/dist/esm/component/BiuResizeTable/index.d.ts +2 -0
  201. package/dist/esm/component/BiuResizeTable/index.js +71 -0
  202. package/dist/esm/component/BiuResizeTable/index.less +19 -0
  203. package/dist/esm/component/BiuSplit/index.d.ts +32 -0
  204. package/dist/esm/component/BiuSplit/index.js +57 -0
  205. package/dist/esm/component/BiuTable/component/index.d.ts +3 -0
  206. package/dist/esm/component/BiuTable/component/index.js +3 -0
  207. package/dist/esm/component/BiuTable/component/tableActionBarRender.d.ts +9 -0
  208. package/dist/esm/component/BiuTable/component/tableActionBarRender.js +206 -0
  209. package/dist/esm/component/BiuTable/component/tableCellRender.d.ts +14 -0
  210. package/dist/esm/component/BiuTable/component/tableCellRender.js +125 -0
  211. package/dist/esm/component/BiuTable/component/tableSettingRender.d.ts +2 -0
  212. package/dist/esm/component/BiuTable/component/tableSettingRender.js +345 -0
  213. package/dist/esm/component/BiuTable/context.d.ts +2 -0
  214. package/dist/esm/component/BiuTable/context.js +2 -0
  215. package/dist/esm/component/BiuTable/index.d.ts +67 -0
  216. package/dist/esm/component/BiuTable/index.js +576 -0
  217. package/dist/esm/component/BiuTable/type.d.ts +200 -0
  218. package/dist/esm/component/BiuTable/type.js +1 -0
  219. package/dist/esm/component/BiuTable/utils.d.ts +12 -0
  220. package/dist/esm/component/BiuTable/utils.js +123 -0
  221. package/dist/esm/component/BiuTableLink/index.d.ts +11 -0
  222. package/dist/esm/component/BiuTableLink/index.js +54 -0
  223. package/dist/esm/component/BiuTableSelect/index.d.ts +53 -0
  224. package/dist/esm/component/BiuTableSelect/index.js +227 -0
  225. package/dist/esm/component/BiuTabs/index.d.ts +4 -0
  226. package/dist/esm/component/BiuTabs/index.js +18 -0
  227. package/dist/esm/component/index.d.ts +34 -0
  228. package/dist/esm/component/index.js +34 -0
  229. package/dist/esm/constant/Cache_Key.d.ts +28 -0
  230. package/dist/esm/constant/Cache_Key.js +28 -0
  231. package/dist/esm/constant/DateTime.d.ts +12 -0
  232. package/dist/esm/constant/DateTime.js +15 -0
  233. package/dist/esm/constant/External.d.ts +64 -0
  234. package/dist/esm/constant/External.js +260 -0
  235. package/dist/esm/constant/Gateway_Path.d.ts +5 -0
  236. package/dist/esm/constant/Gateway_Path.js +5 -0
  237. package/dist/esm/constant/Layout.d.ts +210 -0
  238. package/dist/esm/constant/Layout.js +215 -0
  239. package/dist/esm/constant/Regexp.d.ts +109 -0
  240. package/dist/esm/constant/Regexp.js +130 -0
  241. package/dist/esm/constant/index.d.ts +6 -0
  242. package/dist/esm/constant/index.js +6 -0
  243. package/dist/esm/hooks/index.d.ts +7 -0
  244. package/dist/esm/hooks/index.js +7 -0
  245. package/dist/esm/hooks/useAuth.d.ts +4 -0
  246. package/dist/esm/hooks/useAuth.js +22 -0
  247. package/dist/esm/hooks/useCurrentSystem.d.ts +6 -0
  248. package/dist/esm/hooks/useCurrentSystem.js +17 -0
  249. package/dist/esm/hooks/useLayoutInfo.d.ts +10 -0
  250. package/dist/esm/hooks/useLayoutInfo.js +14 -0
  251. package/dist/esm/hooks/useReducerState.d.ts +16 -0
  252. package/dist/esm/hooks/useReducerState.js +45 -0
  253. package/dist/esm/hooks/useUmeng.d.ts +5 -0
  254. package/dist/esm/hooks/useUmeng.js +168 -0
  255. package/dist/esm/hooks/useUserInfo.d.ts +4 -0
  256. package/dist/esm/hooks/useUserInfo.js +17 -0
  257. package/dist/esm/hooks/useWareInfo.d.ts +4 -0
  258. package/dist/esm/hooks/useWareInfo.js +17 -0
  259. package/dist/esm/index.d.ts +5 -0
  260. package/dist/esm/index.js +5 -0
  261. package/dist/esm/package/index.d.ts +1 -0
  262. package/dist/esm/package/index.js +1 -0
  263. package/dist/esm/package/requestWrapper/baseRequest.d.ts +3 -0
  264. package/dist/esm/package/requestWrapper/baseRequest.js +47 -0
  265. package/dist/esm/package/requestWrapper/index.d.ts +4 -0
  266. package/dist/esm/package/requestWrapper/index.js +425 -0
  267. package/dist/esm/package/requestWrapper/type.d.ts +41 -0
  268. package/dist/esm/package/requestWrapper/type.js +1 -0
  269. package/dist/esm/package/requestWrapper/utils.d.ts +10 -0
  270. package/dist/esm/package/requestWrapper/utils.js +35 -0
  271. package/dist/esm/types/track.d.ts +113 -0
  272. package/dist/esm/types/track.js +63 -0
  273. package/dist/esm/types/umeng.d.ts +7 -0
  274. package/dist/esm/utils/authUtils.d.ts +18 -0
  275. package/dist/esm/utils/authUtils.js +36 -0
  276. package/dist/esm/utils/cacheUtils.d.ts +4 -0
  277. package/dist/esm/utils/cacheUtils.js +24 -0
  278. package/dist/esm/utils/chainUtils.d.ts +26 -0
  279. package/dist/esm/utils/chainUtils.js +54 -0
  280. package/dist/esm/utils/dateUtils.d.ts +23 -0
  281. package/dist/esm/utils/dateUtils.js +55 -0
  282. package/dist/esm/utils/decimalUtils.d.ts +5 -0
  283. package/dist/esm/utils/decimalUtils.js +7 -0
  284. package/dist/esm/utils/excelUtils.d.ts +22 -0
  285. package/dist/esm/utils/excelUtils.js +165 -0
  286. package/dist/esm/utils/index.d.ts +11 -0
  287. package/dist/esm/utils/index.js +11 -0
  288. package/dist/esm/utils/layoutUtils.d.ts +1 -0
  289. package/dist/esm/utils/layoutUtils.js +13 -0
  290. package/dist/esm/utils/objectUtils.d.ts +1 -0
  291. package/dist/esm/utils/objectUtils.js +3 -0
  292. package/dist/esm/utils/soundUtils.d.ts +5 -0
  293. package/dist/esm/utils/soundUtils.js +29 -0
  294. package/dist/esm/utils/stringUtils.d.ts +24 -0
  295. package/dist/esm/utils/stringUtils.js +39 -0
  296. package/dist/esm/utils/sysUtils.d.ts +8 -0
  297. package/dist/esm/utils/sysUtils.js +33 -0
  298. package/dist/esm/utils/umeng.d.ts +3 -0
  299. package/dist/esm/utils/umeng.js +161 -0
  300. package/package.json +60 -0
@@ -0,0 +1,188 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ var _excluded = ["locationId", "onChange", "onChangeData", "isFirstLoad", "isAutoComplete", "locationType", "defaultValues", "style", "goodsId", "qty", "lpnId", "isGoodType", "data"];
3
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
7
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
9
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
11
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
12
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
13
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
14
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
15
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
16
+ import React, { forwardRef, useCallback, useEffect, useState } from 'react';
17
+ import { BiuASelect, BiuASelectOption } from "../../BiuASelect";
18
+ import { GATEWAY_ROUTE_WMS } from "../../../constant";
19
+ import { request } from "../../../package";
20
+ import { debounce } from 'lodash';
21
+ import { BiuAAutoComplete } from "../../BiuAAutoComplete";
22
+ import { jsx as _jsx } from "react/jsx-runtime";
23
+ import { Fragment as _Fragment } from "react/jsx-runtime";
24
+ import { jsxs as _jsxs } from "react/jsx-runtime";
25
+ var getLpnList = function getLpnList(queryData) {
26
+ return request({
27
+ apiName: 'wms.stock.queryLpnInfoByLocationId',
28
+ data: queryData,
29
+ requestConfig: {
30
+ GatewayRoute: GATEWAY_ROUTE_WMS
31
+ }
32
+ });
33
+ };
34
+ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props, ref) {
35
+ var locationId = props.locationId,
36
+ _onChange = props.onChange,
37
+ onChangeData = props.onChangeData,
38
+ _props$isFirstLoad = props.isFirstLoad,
39
+ isFirstLoad = _props$isFirstLoad === void 0 ? true : _props$isFirstLoad,
40
+ _props$isAutoComplete = props.isAutoComplete,
41
+ isAutoComplete = _props$isAutoComplete === void 0 ? true : _props$isAutoComplete,
42
+ locationType = props.locationType,
43
+ defaultValues = props.defaultValues,
44
+ style = props.style,
45
+ goodsId = props.goodsId,
46
+ qty = props.qty,
47
+ lpnId = props.lpnId,
48
+ isGoodType = props.isGoodType,
49
+ _props$data = props.data,
50
+ data = _props$data === void 0 ? [] : _props$data,
51
+ restProps = _objectWithoutProperties(props, _excluded);
52
+ var _useState = useState(data),
53
+ _useState2 = _slicedToArray(_useState, 2),
54
+ result = _useState2[0],
55
+ setResult = _useState2[1];
56
+ var _useState3 = useState(isFirstLoad),
57
+ _useState4 = _slicedToArray(_useState3, 2),
58
+ isFirstLoadSearch = _useState4[0],
59
+ setIsFirstLoadSearch = _useState4[1];
60
+ var _useState5 = useState(defaultValues),
61
+ _useState6 = _slicedToArray(_useState5, 2),
62
+ defaultValue = _useState6[0],
63
+ setDefaultValue = _useState6[1];
64
+ var _useState7 = useState(),
65
+ _useState8 = _slicedToArray(_useState7, 2),
66
+ lpnCode = _useState8[0],
67
+ setLpnCode = _useState8[1];
68
+ useEffect(function () {
69
+ if (locationId && !defaultValues) {
70
+ setDefaultValue('');
71
+ }
72
+ }, [defaultValues, locationId]);
73
+ var fetchData = useCallback(function () {
74
+ if (!locationType) return;
75
+ if (locationType === 2 && !locationId) return;
76
+
77
+ // locationType 库位场景类型 1收货 2上架 3捡货
78
+
79
+ getLpnList({
80
+ locationId: locationId,
81
+ locationType: locationType,
82
+ goodsId: goodsId,
83
+ qty: qty,
84
+ lpnId: lpnId,
85
+ isGoodType: isGoodType,
86
+ lpnCode: lpnCode
87
+ }).then(function (res) {
88
+ var data = res === null || res === void 0 ? void 0 : res.map(function (item) {
89
+ return _objectSpread(_objectSpread({}, item), {}, {
90
+ title: item.lpn,
91
+ label: item.lpn,
92
+ value: item.lpn
93
+ });
94
+ });
95
+ // console.log('datadata', data)
96
+ setResult(data || []);
97
+ setIsFirstLoadSearch(false);
98
+ });
99
+ }, [locationId, locationType, goodsId, qty, lpnId, isGoodType, lpnCode]);
100
+ var debounceFetchData = debounce(function () {
101
+ return fetchData();
102
+ }, 300);
103
+ useEffect(function () {
104
+ // console.log(
105
+ // 'useEffect',
106
+ // `locationType: ${locationType}`,
107
+ // `locationId: ${locationId}`,
108
+ // `defaultValues: ${defaultValues}`
109
+ // )
110
+
111
+ setResult([]);
112
+ if (!locationType && !locationId) {
113
+ setDefaultValue('');
114
+ return;
115
+ }
116
+ if (locationType == 2 && !locationId) {
117
+ setDefaultValue('');
118
+ return;
119
+ }
120
+ if (locationType == 3) {
121
+ if (!defaultValues && !locationId) {
122
+ setDefaultValue('');
123
+ } else {
124
+ setDefaultValue(defaultValues);
125
+ }
126
+ }
127
+ debounceFetchData();
128
+ }, [locationId, locationType, defaultValues]);
129
+ useEffect(function () {
130
+ if (isFirstLoadSearch) debounceFetchData();
131
+ }, [isFirstLoadSearch]);
132
+ useEffect(function () {
133
+ // console.log('lpnCode', lpnCode)
134
+ debounceFetchData();
135
+ }, [lpnCode]);
136
+ var onSearch = useCallback(function (value) {
137
+ setLpnCode(value);
138
+ }, []);
139
+ return /*#__PURE__*/_jsxs(_Fragment, {
140
+ children: [isAutoComplete && /*#__PURE__*/_jsx(BiuAAutoComplete, {
141
+ popupClassName: "certain-category-search-dropdown"
142
+ // dropdownMatchSelectWidth={100}
143
+ ,
144
+ style: _objectSpread({
145
+ width: '100%'
146
+ }, style),
147
+ options: result,
148
+ placeholder: "\u8BF7\u9009\u62E9\u6258\u76D8",
149
+ onSearch: onSearch,
150
+ value: defaultValue,
151
+ onChange: function onChange(values, option) {
152
+ setDefaultValue(values);
153
+ if (_onChange) {
154
+ _onChange(values, option);
155
+ }
156
+ if (onChangeData) {
157
+ onChangeData(values, result.filter(function (item) {
158
+ return "".concat(item.value) === "".concat(values);
159
+ })[0]);
160
+ }
161
+ }
162
+ }), !isAutoComplete && /*#__PURE__*/_jsx(BiuASelect, _objectSpread(_objectSpread({
163
+ ref: ref,
164
+ showSearch: true,
165
+ optionFilterProp: "children",
166
+ loading: false,
167
+ style: _objectSpread({}, style)
168
+ }, restProps), {}, {
169
+ value: defaultValue,
170
+ onChange: function onChange(values, option) {
171
+ setDefaultValue(values);
172
+ if (_onChange) _onChange(values, option);
173
+ if (onChangeData) {
174
+ onChangeData(values, result.filter(function (item) {
175
+ return "".concat(item.id) === "".concat(values);
176
+ })[0]);
177
+ }
178
+ },
179
+ onSearch: onSearch,
180
+ children: result.map(function (e) {
181
+ return /*#__PURE__*/_jsx(BiuASelectOption, {
182
+ value: e.lpn,
183
+ children: e.lpn || ''
184
+ }, e.id);
185
+ })
186
+ }), "lpnSelectNew")]
187
+ });
188
+ }));
@@ -0,0 +1,21 @@
1
+ import type { SelectProps } from 'antd';
2
+ import React from 'react';
3
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
4
+ type?: string | undefined;
5
+ ownerId?: string | undefined;
6
+ warehouseId?: number | undefined;
7
+ warehouseIds?: string | undefined;
8
+ locationCode?: string | undefined;
9
+ warehouseAreaId?: number | undefined;
10
+ value?: string | number | string[] | number[] | undefined;
11
+ onChangeData?: ((value: any, record: any) => any) | undefined;
12
+ areaType?: string | undefined;
13
+ interfaceType?: string | undefined;
14
+ temperateZone?: string | undefined;
15
+ isFirstLoad?: boolean | undefined;
16
+ isAutoGenerate?: string | undefined;
17
+ remoteSearchValue?: string | undefined;
18
+ isQueryScene?: number | undefined;
19
+ locationCodes?: string | undefined;
20
+ } & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
21
+ export default _default;
@@ -0,0 +1,129 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ var _excluded = ["ownerId", "locationCode", "warehouseAreaId", "warehouseId", "warehouseIds", "onChange", "onChangeData", "type", "areaType", "interfaceType", "temperateZone", "isFirstLoad", "isAutoGenerate", "isQueryScene", "locationCodes"];
3
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
7
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
9
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
10
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
11
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
12
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
13
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
14
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
15
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
16
+ import React, { forwardRef, useCallback, useMemo, useState } from 'react';
17
+ import { BiuCustomSelect } from "../..";
18
+ import { GATEWAY_ROUTE_WMS } from "../../../constant";
19
+
20
+ /**
21
+ * 新增组件,为了搜索时,清空具体搜索条件
22
+ */
23
+
24
+ /**
25
+ * 组件封装对所有字段去掉验证,组件验证对于开发来说不需要,组件参数错误,数据也就错了
26
+ *
27
+ */
28
+ import { jsx as _jsx } from "react/jsx-runtime";
29
+ var requestConfig = {
30
+ GatewayRoute: GATEWAY_ROUTE_WMS
31
+ };
32
+ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props, ref) {
33
+ // Hooks 定义 State 不会重复执行
34
+ var _useState = useState([]),
35
+ _useState2 = _slicedToArray(_useState, 2),
36
+ warehouseLoctionList = _useState2[0],
37
+ setWarehouseLoctionList = _useState2[1];
38
+ // const [loading, setLoading] = useState(false);
39
+ var _useState3 = useState(props.remoteSearchValue),
40
+ _useState4 = _slicedToArray(_useState3, 2),
41
+ remoteSearchCValue = _useState4[0],
42
+ setRemoteSearchCValue = _useState4[1];
43
+
44
+ /**
45
+ * 解构出来所有需要用到的参数并赋予默认值
46
+ */
47
+ var ownerId = props.ownerId,
48
+ locationCode = props.locationCode,
49
+ warehouseAreaId = props.warehouseAreaId,
50
+ warehouseId = props.warehouseId,
51
+ warehouseIds = props.warehouseIds,
52
+ onChange = props.onChange,
53
+ onChangeData = props.onChangeData,
54
+ type = props.type,
55
+ areaType = props.areaType,
56
+ _props$interfaceType = props.interfaceType,
57
+ interfaceType = _props$interfaceType === void 0 ? '1' : _props$interfaceType,
58
+ temperateZone = props.temperateZone,
59
+ _props$isFirstLoad = props.isFirstLoad,
60
+ isFirstLoad = _props$isFirstLoad === void 0 ? true : _props$isFirstLoad,
61
+ _props$isAutoGenerate = props.isAutoGenerate,
62
+ isAutoGenerate = _props$isAutoGenerate === void 0 ? '2' : _props$isAutoGenerate,
63
+ _props$isQueryScene = props.isQueryScene,
64
+ isQueryScene = _props$isQueryScene === void 0 ? 2 : _props$isQueryScene,
65
+ locationCodes = props.locationCodes,
66
+ restProps = _objectWithoutProperties(props, _excluded);
67
+ var _useState5 = useState(isFirstLoad),
68
+ _useState6 = _slicedToArray(_useState5, 2),
69
+ isFirstLoadSearch = _useState6[0],
70
+ setIsFirstLoadSearch = _useState6[1];
71
+ var onSearch = useCallback(function (value) {
72
+ setRemoteSearchCValue(value.trim());
73
+ setIsFirstLoadSearch(false);
74
+ }, []);
75
+ var requestName = useMemo(function () {
76
+ return interfaceType && interfaceType === '1' ? 'wms.basedata.querySimpleComponent' : 'wms.stock.queryByLocation';
77
+ }, [interfaceType]);
78
+ var requestParams = useMemo(function () {
79
+ var params = {
80
+ locationCode: locationCode,
81
+ warehouseAreaId: warehouseAreaId,
82
+ warehouseId: warehouseId,
83
+ warehouseIds: warehouseIds,
84
+ areaType: areaType,
85
+ interfaceType: interfaceType,
86
+ ownerId: ownerId,
87
+ temperateZone: temperateZone,
88
+ isFirstLoadSearch: isFirstLoadSearch,
89
+ remoteSearchCValue: remoteSearchCValue,
90
+ isAutoGenerate: isAutoGenerate,
91
+ isQueryScene: isQueryScene,
92
+ locationCodes: isFirstLoadSearch ? locationCodes : ''
93
+ };
94
+ return interfaceType && interfaceType === '1' ? _objectSpread(_objectSpread({}, params), {}, {
95
+ warehouseAreaType: areaType,
96
+ page: 1,
97
+ size: 20
98
+ }) : _objectSpread(_objectSpread({}, params), {}, {
99
+ page: 1,
100
+ size: 20
101
+ });
102
+ }, [locationCode, warehouseAreaId, warehouseId, warehouseIds, areaType, interfaceType, ownerId, temperateZone, isFirstLoadSearch, remoteSearchCValue, isAutoGenerate, isQueryScene, locationCodes]);
103
+ var handleOnChange = useCallback(function (value, option) {
104
+ if (onChange) onChange(value, option);
105
+ if (onChangeData) {
106
+ onChangeData(value, warehouseLoctionList.filter(function (item) {
107
+ return "".concat(item.id) === "".concat(value);
108
+ })[0]);
109
+ }
110
+ }, [onChange, onChangeData, warehouseLoctionList]);
111
+ var onFetchData = useCallback(function (res) {
112
+ setWarehouseLoctionList(res);
113
+ return res.map(function (item) {
114
+ return {
115
+ label: type ? item.locationCode : item.locationName,
116
+ value: interfaceType === '1' ? item.id : item.locationId
117
+ };
118
+ });
119
+ }, [interfaceType, type]);
120
+ return /*#__PURE__*/_jsx(BiuCustomSelect, _objectSpread({
121
+ ref: ref,
122
+ requestName: requestName,
123
+ requestParams: requestParams,
124
+ requestConfig: requestConfig,
125
+ onSearch: onSearch,
126
+ onChange: handleOnChange,
127
+ onFetchData: onFetchData
128
+ }, restProps), "newEditLocationSelect");
129
+ }));
@@ -0,0 +1,16 @@
1
+ import type { SelectProps } from 'antd';
2
+ import React from 'react';
3
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
4
+ /**
5
+ * 货主id
6
+ */
7
+ ownerId?: string | undefined;
8
+ noOwnerContent?: string | undefined;
9
+ /**
10
+ * 0:入库 1:出库 2:移库 3:冻结 4:调整 5:属性变更
11
+ */
12
+ orderType: 0 | 1 | 2 | 3 | 4 | 5;
13
+ isFirstLoad: boolean;
14
+ onFetchData?: ((res: any) => any) | undefined;
15
+ } & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
16
+ export default _default;
@@ -0,0 +1,82 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ var _excluded = ["ownerId", "orderType", "noOwnerContent", "isFirstLoad", "onFetchData"];
3
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
7
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
9
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
11
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
12
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
13
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
14
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
15
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
16
+ import React, { forwardRef, useCallback, useEffect, useMemo, useState } from 'react';
17
+ import { BiuCustomSelect } from "../..";
18
+ import { GATEWAY_ROUTE_WMS } from "../../../constant";
19
+ import { jsx as _jsx } from "react/jsx-runtime";
20
+ var requestConfig = {
21
+ GatewayRoute: GATEWAY_ROUTE_WMS
22
+ };
23
+ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props, ref) {
24
+ var ownerId = props.ownerId,
25
+ orderType = props.orderType,
26
+ _props$noOwnerContent = props.noOwnerContent,
27
+ noOwnerContent = _props$noOwnerContent === void 0 ? '请先选择货主' : _props$noOwnerContent,
28
+ _props$isFirstLoad = props.isFirstLoad,
29
+ isFirstLoad = _props$isFirstLoad === void 0 ? true : _props$isFirstLoad,
30
+ onFetchData = props.onFetchData,
31
+ restProps = _objectWithoutProperties(props, _excluded);
32
+ var _useState = useState(),
33
+ _useState2 = _slicedToArray(_useState, 2),
34
+ notFoundContent = _useState2[0],
35
+ setNotFoundContent = _useState2[1];
36
+ var _useState3 = useState(isFirstLoad),
37
+ _useState4 = _slicedToArray(_useState3, 2),
38
+ isFirstLoadSearch = _useState4[0],
39
+ setIsFirstLoadSearch = _useState4[1];
40
+ useEffect(function () {
41
+ if (!ownerId) {
42
+ setNotFoundContent(noOwnerContent);
43
+ return;
44
+ }
45
+ setNotFoundContent(undefined);
46
+ }, [ownerId, orderType, noOwnerContent]);
47
+ var requestParams = useMemo(function () {
48
+ return {
49
+ isDelete: 0,
50
+ ownerId: ownerId,
51
+ orderType: orderType,
52
+ isFirstLoadSearch: isFirstLoadSearch
53
+ };
54
+ }, [ownerId, orderType, isFirstLoadSearch]);
55
+ var isOnSearch = useCallback(function () {
56
+ setIsFirstLoadSearch(true);
57
+ }, []);
58
+ var isOnReady = useCallback(function (params) {
59
+ if (!params.ownerId || !params.isFirstLoadSearch) return false;
60
+ return true;
61
+ }, []);
62
+ var isOnFetchData = useCallback(function (res) {
63
+ var baseRows = res.rows.map(function (item) {
64
+ return _objectSpread(_objectSpread({}, item), {}, {
65
+ label: item.typeName,
66
+ value: item.typeShort
67
+ });
68
+ });
69
+ if (onFetchData) return onFetchData(baseRows);
70
+ return baseRows;
71
+ }, []);
72
+ return /*#__PURE__*/_jsx(BiuCustomSelect, _objectSpread({
73
+ ref: ref,
74
+ requestName: "wms.basedata.queryOrderType",
75
+ requestParams: requestParams,
76
+ requestConfig: requestConfig,
77
+ onSearch: isOnSearch,
78
+ onReady: isOnReady,
79
+ notFoundContent: notFoundContent,
80
+ onFetchData: isOnFetchData
81
+ }, restProps), "orderTypeSelect");
82
+ }));
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>>;
3
+ export default _default;
@@ -0,0 +1,45 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ import React, { forwardRef } from 'react';
8
+ import { BiuTableSelect } from "../..";
9
+ import { GATEWAY_ROUTE_WMS } from "../../../constant";
10
+ import { jsx as _jsx } from "react/jsx-runtime";
11
+ var OrderTypeColumns = [{
12
+ title: '类型名称',
13
+ dataIndex: 'typeName',
14
+ ellipsis: true,
15
+ width: 200
16
+ }, {
17
+ title: '简称',
18
+ dataIndex: 'typeShort',
19
+ ellipsis: true,
20
+ width: 200
21
+ }, {
22
+ title: '类型分类',
23
+ dataIndex: 'orderTypeName',
24
+ ellipsis: true,
25
+ width: 200
26
+ }];
27
+ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props, ref) {
28
+ return /*#__PURE__*/_jsx(BiuTableSelect, _objectSpread({
29
+ ref: ref,
30
+ showSearch: true,
31
+ columns: OrderTypeColumns,
32
+ isFirstfetch: true,
33
+ bindField: {
34
+ rowLabel: 'typeName',
35
+ rowKey: 'typeShort'
36
+ },
37
+ interfaceName: "wms.basedata.queryOrderType",
38
+ requestConfig: {
39
+ GatewayRoute: GATEWAY_ROUTE_WMS
40
+ },
41
+ dataOption: function dataOption(result) {
42
+ return result.rows;
43
+ }
44
+ }, props), "orderTypeTableSelect");
45
+ }));
@@ -0,0 +1,12 @@
1
+ import type { SelectProps } from 'antd';
2
+ import React from 'react';
3
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
4
+ distributionCentreCodeOrName?: string | undefined;
5
+ page?: number | undefined;
6
+ pageSize?: number | undefined;
7
+ value?: string | number | string[] | number[] | undefined;
8
+ companyId?: string | undefined;
9
+ noDisContent?: string | undefined;
10
+ isFirstLoad?: boolean | undefined;
11
+ } & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
12
+ export default _default;
@@ -0,0 +1,88 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ var _excluded = ["distributionCentreCodeOrName", "noDisContent", "companyId", "value", "isFirstLoad"];
3
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
7
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
9
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
11
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
12
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
13
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
14
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
15
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
16
+ import React, { forwardRef, useCallback, useEffect, useMemo, useState } from 'react';
17
+ import { BiuCustomSelect } from "../..";
18
+ import { GATEWAY_ROUTE_WMS } from "../../../constant";
19
+
20
+ /**
21
+ * @param distributionCentreCodeOrName 园区名称/园区编码
22
+ * @param page 分页 默认 1
23
+ * @param pageSize 每次查询数量
24
+ * @param value 绑定值
25
+ */
26
+ import { jsx as _jsx } from "react/jsx-runtime";
27
+ var requestConfig = {
28
+ GatewayRoute: GATEWAY_ROUTE_WMS
29
+ };
30
+ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props, ref) {
31
+ var _props$distributionCe = props.distributionCentreCodeOrName,
32
+ distributionCentreCodeOrName = _props$distributionCe === void 0 ? '' : _props$distributionCe,
33
+ _props$noDisContent = props.noDisContent,
34
+ noDisContent = _props$noDisContent === void 0 ? '请选择园区' : _props$noDisContent,
35
+ _props$companyId = props.companyId,
36
+ companyId = _props$companyId === void 0 ? '' : _props$companyId,
37
+ value = props.value,
38
+ _props$isFirstLoad = props.isFirstLoad,
39
+ isFirstLoad = _props$isFirstLoad === void 0 ? true : _props$isFirstLoad,
40
+ restProps = _objectWithoutProperties(props, _excluded);
41
+ var _useState = useState(''),
42
+ _useState2 = _slicedToArray(_useState, 2),
43
+ notFoundContent = _useState2[0],
44
+ setNotFoundContent = _useState2[1];
45
+ var _useState3 = useState(isFirstLoad),
46
+ _useState4 = _slicedToArray(_useState3, 2),
47
+ isFirstLoadSearch = _useState4[0],
48
+ setIsFirstLoadSearch = _useState4[1];
49
+ useEffect(function () {
50
+ if (!companyId) {
51
+ setNotFoundContent(noDisContent);
52
+ }
53
+ }, [distributionCentreCodeOrName, companyId, noDisContent]);
54
+ var requestParams = useMemo(function () {
55
+ return {
56
+ distributionName: distributionCentreCodeOrName,
57
+ companyId: companyId,
58
+ isFirstLoadSearch: isFirstLoadSearch
59
+ };
60
+ }, [distributionCentreCodeOrName, companyId, isFirstLoadSearch]);
61
+ var isOnSearch = useCallback(function () {
62
+ setIsFirstLoadSearch(true);
63
+ }, []);
64
+ var isOnReady = useCallback(function (params) {
65
+ if (!params.companyId || !params.isFirstLoadSearch) return false;
66
+ return true;
67
+ }, []);
68
+ var onFetchData = useCallback(function (res) {
69
+ setNotFoundContent('');
70
+ return res.map(function (item) {
71
+ return {
72
+ label: item.distributionName,
73
+ value: +item.id
74
+ };
75
+ });
76
+ }, []);
77
+ return /*#__PURE__*/_jsx(BiuCustomSelect, _objectSpread({
78
+ ref: ref,
79
+ requestName: "wms.mdm.distributionCentreSimpleList",
80
+ requestParams: requestParams,
81
+ requestConfig: requestConfig,
82
+ onSearch: isOnSearch,
83
+ onReady: isOnReady,
84
+ notFoundContent: notFoundContent,
85
+ value: value ? +value : undefined,
86
+ onFetchData: onFetchData
87
+ }, restProps), "parkSelect");
88
+ }));