wt-antd 4.2.3

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 (302) 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 +107 -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 +198 -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 +60 -0
  68. package/dist/esm/component/BiuField/component/OMSSystem/cityAreaSelect.d.ts +12 -0
  69. package/dist/esm/component/BiuField/component/OMSSystem/cityAreaSelect.js +131 -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 +623 -0
  74. package/dist/esm/component/BiuField/component/TableSelectLocal/addressSelect.d.ts +24 -0
  75. package/dist/esm/component/BiuField/component/TableSelectLocal/addressSelect.js +192 -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 +240 -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 +178 -0
  86. package/dist/esm/component/BiuField/component/TableSelectLocal/newGoodsSelect.d.ts +21 -0
  87. package/dist/esm/component/BiuField/component/TableSelectLocal/newGoodsSelect.js +249 -0
  88. package/dist/esm/component/BiuField/component/TableSelectLocal/package.d.ts +3 -0
  89. package/dist/esm/component/BiuField/component/TableSelectLocal/package.js +151 -0
  90. package/dist/esm/component/BiuField/component/TableSelectLocal/supplierSelect.d.ts +18 -0
  91. package/dist/esm/component/BiuField/component/TableSelectLocal/supplierSelect.js +146 -0
  92. package/dist/esm/component/BiuField/component/TableSelectLocal/warehouseAreaSelect.d.ts +3 -0
  93. package/dist/esm/component/BiuField/component/TableSelectLocal/warehouseAreaSelect.js +147 -0
  94. package/dist/esm/component/BiuField/component/TableSelectLocal/warehouseInfoSelects.d.ts +18 -0
  95. package/dist/esm/component/BiuField/component/TableSelectLocal/warehouseInfoSelects.js +101 -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 +83 -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 +164 -0
  108. package/dist/esm/component/BiuField/component/channelSelect.d.ts +8 -0
  109. package/dist/esm/component/BiuField/component/channelSelect.js +95 -0
  110. package/dist/esm/component/BiuField/component/cityAreaCascader.d.ts +11 -0
  111. package/dist/esm/component/BiuField/component/cityAreaCascader.js +88 -0
  112. package/dist/esm/component/BiuField/component/clientInfoTableSelect.d.ts +3 -0
  113. package/dist/esm/component/BiuField/component/clientInfoTableSelect.js +199 -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 +106 -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 +98 -0
  132. package/dist/esm/component/BiuField/component/electronicFaceSheet/platformSelect.d.ts +7 -0
  133. package/dist/esm/component/BiuField/component/electronicFaceSheet/platformSelect.js +74 -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 +96 -0
  142. package/dist/esm/component/BiuField/component/lpnSelectNew.d.ts +17 -0
  143. package/dist/esm/component/BiuField/component/lpnSelectNew.js +189 -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/newUserSelect.d.ts +12 -0
  147. package/dist/esm/component/BiuField/component/newUserSelect.js +212 -0
  148. package/dist/esm/component/BiuField/component/orderTypeSelect.d.ts +16 -0
  149. package/dist/esm/component/BiuField/component/orderTypeSelect.js +82 -0
  150. package/dist/esm/component/BiuField/component/orderTypeTableSelect.d.ts +3 -0
  151. package/dist/esm/component/BiuField/component/orderTypeTableSelect.js +45 -0
  152. package/dist/esm/component/BiuField/component/parkSelect.d.ts +12 -0
  153. package/dist/esm/component/BiuField/component/parkSelect.js +88 -0
  154. package/dist/esm/component/BiuField/component/personnelinfoselect.d.ts +57 -0
  155. package/dist/esm/component/BiuField/component/personnelinfoselect.js +432 -0
  156. package/dist/esm/component/BiuField/component/propertNameSelect.d.ts +9 -0
  157. package/dist/esm/component/BiuField/component/propertNameSelect.js +114 -0
  158. package/dist/esm/component/BiuField/component/shipperTableSelect.d.ts +3 -0
  159. package/dist/esm/component/BiuField/component/shipperTableSelect.js +94 -0
  160. package/dist/esm/component/BiuField/component/userSelect.d.ts +11 -0
  161. package/dist/esm/component/BiuField/component/userSelect.js +174 -0
  162. package/dist/esm/component/BiuField/component/warehouseAreaSelect.d.ts +9 -0
  163. package/dist/esm/component/BiuField/component/warehouseAreaSelect.js +104 -0
  164. package/dist/esm/component/BiuField/component/warehouseInfoSelect.d.ts +14 -0
  165. package/dist/esm/component/BiuField/component/warehouseInfoSelect.js +94 -0
  166. package/dist/esm/component/BiuField/component/warehouseLoctionSelect.d.ts +14 -0
  167. package/dist/esm/component/BiuField/component/warehouseLoctionSelect.js +125 -0
  168. package/dist/esm/component/BiuField/index.d.ts +8 -0
  169. package/dist/esm/component/BiuField/index.js +680 -0
  170. package/dist/esm/component/BiuFileInput/index.d.ts +11 -0
  171. package/dist/esm/component/BiuFileInput/index.js +58 -0
  172. package/dist/esm/component/BiuForm/index.d.ts +14 -0
  173. package/dist/esm/component/BiuForm/index.js +270 -0
  174. package/dist/esm/component/BiuForm/type.d.ts +47 -0
  175. package/dist/esm/component/BiuForm/type.js +1 -0
  176. package/dist/esm/component/BiuForm/utils.d.ts +2 -0
  177. package/dist/esm/component/BiuForm/utils.js +53 -0
  178. package/dist/esm/component/BiuIcon/index.d.ts +3 -0
  179. package/dist/esm/component/BiuIcon/index.js +15 -0
  180. package/dist/esm/component/BiuMapSelectSite/index.d.ts +53 -0
  181. package/dist/esm/component/BiuMapSelectSite/index.js +593 -0
  182. package/dist/esm/component/BiuModal/index.d.ts +24 -0
  183. package/dist/esm/component/BiuModal/index.js +240 -0
  184. package/dist/esm/component/BiuOperForm/index.d.ts +22 -0
  185. package/dist/esm/component/BiuOperForm/index.js +390 -0
  186. package/dist/esm/component/BiuOperForm/type.d.ts +24 -0
  187. package/dist/esm/component/BiuOperForm/type.js +1 -0
  188. package/dist/esm/component/BiuOperTable/index.d.ts +15 -0
  189. package/dist/esm/component/BiuOperTable/index.js +349 -0
  190. package/dist/esm/component/BiuOperTable/type.d.ts +142 -0
  191. package/dist/esm/component/BiuOperTable/type.js +1 -0
  192. package/dist/esm/component/BiuOperTable/utils.d.ts +6 -0
  193. package/dist/esm/component/BiuOperTable/utils.js +13 -0
  194. package/dist/esm/component/BiuPagination/index.d.ts +15 -0
  195. package/dist/esm/component/BiuPagination/index.js +34 -0
  196. package/dist/esm/component/BiuResizeTable/component/VirtualTable.d.ts +3 -0
  197. package/dist/esm/component/BiuResizeTable/component/VirtualTable.js +127 -0
  198. package/dist/esm/component/BiuResizeTable/component/biuTableCell.d.ts +1 -0
  199. package/dist/esm/component/BiuResizeTable/component/biuTableCell.js +78 -0
  200. package/dist/esm/component/BiuResizeTable/component/index.d.ts +1 -0
  201. package/dist/esm/component/BiuResizeTable/component/index.js +1 -0
  202. package/dist/esm/component/BiuResizeTable/index.d.ts +2 -0
  203. package/dist/esm/component/BiuResizeTable/index.js +71 -0
  204. package/dist/esm/component/BiuResizeTable/index.less +19 -0
  205. package/dist/esm/component/BiuSplit/index.d.ts +32 -0
  206. package/dist/esm/component/BiuSplit/index.js +57 -0
  207. package/dist/esm/component/BiuTable/component/index.d.ts +3 -0
  208. package/dist/esm/component/BiuTable/component/index.js +3 -0
  209. package/dist/esm/component/BiuTable/component/tableActionBarRender.d.ts +9 -0
  210. package/dist/esm/component/BiuTable/component/tableActionBarRender.js +206 -0
  211. package/dist/esm/component/BiuTable/component/tableCellRender.d.ts +14 -0
  212. package/dist/esm/component/BiuTable/component/tableCellRender.js +125 -0
  213. package/dist/esm/component/BiuTable/component/tableSettingRender.d.ts +2 -0
  214. package/dist/esm/component/BiuTable/component/tableSettingRender.js +347 -0
  215. package/dist/esm/component/BiuTable/context.d.ts +2 -0
  216. package/dist/esm/component/BiuTable/context.js +2 -0
  217. package/dist/esm/component/BiuTable/index.d.ts +67 -0
  218. package/dist/esm/component/BiuTable/index.js +586 -0
  219. package/dist/esm/component/BiuTable/type.d.ts +200 -0
  220. package/dist/esm/component/BiuTable/type.js +1 -0
  221. package/dist/esm/component/BiuTable/utils.d.ts +12 -0
  222. package/dist/esm/component/BiuTable/utils.js +123 -0
  223. package/dist/esm/component/BiuTableLink/index.d.ts +11 -0
  224. package/dist/esm/component/BiuTableLink/index.js +54 -0
  225. package/dist/esm/component/BiuTableSelect/index.d.ts +54 -0
  226. package/dist/esm/component/BiuTableSelect/index.js +231 -0
  227. package/dist/esm/component/BiuTabs/index.d.ts +4 -0
  228. package/dist/esm/component/BiuTabs/index.js +18 -0
  229. package/dist/esm/component/index.d.ts +34 -0
  230. package/dist/esm/component/index.js +34 -0
  231. package/dist/esm/constant/Cache_Key.d.ts +28 -0
  232. package/dist/esm/constant/Cache_Key.js +28 -0
  233. package/dist/esm/constant/DateTime.d.ts +12 -0
  234. package/dist/esm/constant/DateTime.js +15 -0
  235. package/dist/esm/constant/External.d.ts +64 -0
  236. package/dist/esm/constant/External.js +260 -0
  237. package/dist/esm/constant/Gateway_Path.d.ts +5 -0
  238. package/dist/esm/constant/Gateway_Path.js +5 -0
  239. package/dist/esm/constant/Layout.d.ts +210 -0
  240. package/dist/esm/constant/Layout.js +215 -0
  241. package/dist/esm/constant/Regexp.d.ts +109 -0
  242. package/dist/esm/constant/Regexp.js +130 -0
  243. package/dist/esm/constant/index.d.ts +6 -0
  244. package/dist/esm/constant/index.js +6 -0
  245. package/dist/esm/hooks/index.d.ts +7 -0
  246. package/dist/esm/hooks/index.js +7 -0
  247. package/dist/esm/hooks/useAuth.d.ts +4 -0
  248. package/dist/esm/hooks/useAuth.js +22 -0
  249. package/dist/esm/hooks/useCurrentSystem.d.ts +6 -0
  250. package/dist/esm/hooks/useCurrentSystem.js +17 -0
  251. package/dist/esm/hooks/useLayoutInfo.d.ts +10 -0
  252. package/dist/esm/hooks/useLayoutInfo.js +14 -0
  253. package/dist/esm/hooks/useReducerState.d.ts +16 -0
  254. package/dist/esm/hooks/useReducerState.js +45 -0
  255. package/dist/esm/hooks/useUmeng.d.ts +5 -0
  256. package/dist/esm/hooks/useUmeng.js +168 -0
  257. package/dist/esm/hooks/useUserInfo.d.ts +4 -0
  258. package/dist/esm/hooks/useUserInfo.js +17 -0
  259. package/dist/esm/hooks/useWareInfo.d.ts +4 -0
  260. package/dist/esm/hooks/useWareInfo.js +17 -0
  261. package/dist/esm/index.d.ts +5 -0
  262. package/dist/esm/index.js +5 -0
  263. package/dist/esm/package/index.d.ts +1 -0
  264. package/dist/esm/package/index.js +1 -0
  265. package/dist/esm/package/requestWrapper/baseRequest.d.ts +3 -0
  266. package/dist/esm/package/requestWrapper/baseRequest.js +47 -0
  267. package/dist/esm/package/requestWrapper/index.d.ts +4 -0
  268. package/dist/esm/package/requestWrapper/index.js +425 -0
  269. package/dist/esm/package/requestWrapper/type.d.ts +41 -0
  270. package/dist/esm/package/requestWrapper/type.js +1 -0
  271. package/dist/esm/package/requestWrapper/utils.d.ts +10 -0
  272. package/dist/esm/package/requestWrapper/utils.js +45 -0
  273. package/dist/esm/types/track.d.ts +113 -0
  274. package/dist/esm/types/track.js +63 -0
  275. package/dist/esm/types/umeng.d.ts +7 -0
  276. package/dist/esm/utils/authUtils.d.ts +18 -0
  277. package/dist/esm/utils/authUtils.js +36 -0
  278. package/dist/esm/utils/cacheUtils.d.ts +4 -0
  279. package/dist/esm/utils/cacheUtils.js +24 -0
  280. package/dist/esm/utils/chainUtils.d.ts +26 -0
  281. package/dist/esm/utils/chainUtils.js +54 -0
  282. package/dist/esm/utils/dateUtils.d.ts +23 -0
  283. package/dist/esm/utils/dateUtils.js +55 -0
  284. package/dist/esm/utils/decimalUtils.d.ts +5 -0
  285. package/dist/esm/utils/decimalUtils.js +7 -0
  286. package/dist/esm/utils/excelUtils.d.ts +22 -0
  287. package/dist/esm/utils/excelUtils.js +165 -0
  288. package/dist/esm/utils/index.d.ts +11 -0
  289. package/dist/esm/utils/index.js +11 -0
  290. package/dist/esm/utils/layoutUtils.d.ts +1 -0
  291. package/dist/esm/utils/layoutUtils.js +13 -0
  292. package/dist/esm/utils/objectUtils.d.ts +1 -0
  293. package/dist/esm/utils/objectUtils.js +3 -0
  294. package/dist/esm/utils/soundUtils.d.ts +5 -0
  295. package/dist/esm/utils/soundUtils.js +29 -0
  296. package/dist/esm/utils/stringUtils.d.ts +24 -0
  297. package/dist/esm/utils/stringUtils.js +39 -0
  298. package/dist/esm/utils/sysUtils.d.ts +8 -0
  299. package/dist/esm/utils/sysUtils.js +33 -0
  300. package/dist/esm/utils/umeng.d.ts +3 -0
  301. package/dist/esm/utils/umeng.js +161 -0
  302. package/package.json +60 -0
@@ -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,74 @@
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 = ["type", "ownerId", "goodsAttribute"];
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
+ import React, { forwardRef } from 'react';
11
+ import AddressSelect from "./addressSelect";
12
+ import TableSelectBase from "./base";
13
+ import GoodSelect from "./goodSelect";
14
+ import NewGoodsSelect from "./newGoodsSelect";
15
+ import LocationSelect from "./locationSelect";
16
+ import Package from "./package";
17
+ import SupplierSelect from "./supplierSelect";
18
+ import WarehouseAreaSelect from "./warehouseAreaSelect";
19
+ import WarehouseInfoSelects from "./warehouseInfoSelects";
20
+ import { jsx as _jsx } from "react/jsx-runtime";
21
+ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props, ref) {
22
+ var type = props.type,
23
+ ownerId = props.ownerId,
24
+ goodsAttribute = props.goodsAttribute,
25
+ restProps = _objectWithoutProperties(props, _excluded);
26
+ switch (type) {
27
+ case 'location':
28
+ return /*#__PURE__*/_jsx(LocationSelect, _objectSpread(_objectSpread({
29
+ ownerId: ownerId
30
+ }, restProps), {}, {
31
+ ref: ref
32
+ }));
33
+ case 'good':
34
+ return /*#__PURE__*/_jsx(GoodSelect, _objectSpread(_objectSpread({
35
+ ownerId: ownerId,
36
+ goodsAttribute: goodsAttribute
37
+ }, restProps), {}, {
38
+ ref: ref
39
+ }));
40
+ case 'newGoods':
41
+ return /*#__PURE__*/_jsx(NewGoodsSelect, _objectSpread(_objectSpread({
42
+ ownerId: ownerId,
43
+ goodsAttribute: goodsAttribute
44
+ }, restProps), {}, {
45
+ ref: ref
46
+ }));
47
+ case 'supplier':
48
+ return /*#__PURE__*/_jsx(SupplierSelect, _objectSpread(_objectSpread({}, restProps), {}, {
49
+ ref: ref
50
+ }));
51
+ case 'address':
52
+ return /*#__PURE__*/_jsx(AddressSelect, _objectSpread(_objectSpread({}, restProps), {}, {
53
+ ref: ref
54
+ }));
55
+ case 'package':
56
+ return /*#__PURE__*/_jsx(Package, _objectSpread(_objectSpread({
57
+ ownerId: ownerId
58
+ }, restProps), {}, {
59
+ ref: ref
60
+ }));
61
+ case 'warehouseinfoselects':
62
+ return /*#__PURE__*/_jsx(WarehouseInfoSelects, _objectSpread(_objectSpread({}, restProps), {}, {
63
+ ref: ref
64
+ }));
65
+ case 'area':
66
+ return /*#__PURE__*/_jsx(WarehouseAreaSelect, _objectSpread(_objectSpread({}, restProps), {}, {
67
+ ref: ref
68
+ }));
69
+ default:
70
+ return /*#__PURE__*/_jsx(TableSelectBase, _objectSpread(_objectSpread({}, restProps), {}, {
71
+ ref: ref
72
+ }));
73
+ }
74
+ }));
@@ -0,0 +1,16 @@
1
+ import type { SelectProps } from 'antd';
2
+ import type { TableProps } from 'antd/es/table';
3
+ import type { BiuColumnType } from "../../..";
4
+ type TableSelectProps = {
5
+ columns?: BiuColumnType[];
6
+ bindField?: {
7
+ rowKey?: string;
8
+ rowLabel?: string;
9
+ };
10
+ value?: string;
11
+ initialValue?: any;
12
+ initSelectValue?: any;
13
+ onChangeData?: (value: any, record: any) => void;
14
+ };
15
+ export type TableSelectType = TableProps<any> & SelectProps<any> & TableSelectProps;
16
+ export {};
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<import("antd/es/table").TableProps<any> & import("antd").SelectProps<any, import("antd/lib/select").DefaultOptionType> & {
3
+ columns?: import("../../..").BiuColumnType[] | undefined;
4
+ bindField?: {
5
+ rowKey?: string | undefined;
6
+ rowLabel?: string | undefined;
7
+ } | undefined;
8
+ value?: string | undefined;
9
+ initialValue?: any;
10
+ initSelectValue?: any;
11
+ onChangeData?: ((value: any, record: any) => void) | undefined;
12
+ } & {
13
+ ownerId: string;
14
+ warehouseIds?: string | undefined;
15
+ warehouseAreaId?: string | undefined;
16
+ initialValue?: string | undefined;
17
+ searchTimes?: number | undefined;
18
+ rowLabel?: string | undefined;
19
+ isDefWth?: boolean | undefined;
20
+ batch?: string | undefined;
21
+ goodsId: string;
22
+ isAutoGenerate?: string | undefined;
23
+ filterInv?: boolean | undefined;
24
+ isGoodType?: string | number | undefined;
25
+ isFirstLoad?: boolean | undefined;
26
+ isQueryScene?: number | undefined;
27
+ } & React.RefAttributes<unknown>>>;
28
+ export default _default;
@@ -0,0 +1,178 @@
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", "initialValue", "warehouseIds", "warehouseAreaId", "searchTimes", "isFirstLoad", "rowLabel", "isDefWth", "goodsId", "batch", "isAutoGenerate", "filterInv", "isGoodType", "isQueryScene"];
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 { isNil } from 'lodash';
17
+ import React, { forwardRef, useCallback, useEffect, useRef, useState } from 'react';
18
+ import TableSelectBase from "./base";
19
+ import { GATEWAY_ROUTE_WMS } from "../../../../constant";
20
+ import { request } from "../../../../package";
21
+ import { jsx as _jsx } from "react/jsx-runtime";
22
+ var getWarehouseLoctionList = function getWarehouseLoctionList(queryData) {
23
+ return request({
24
+ apiName: isNil(queryData.goodsId) ? '/wms/base/warehouseLocation/querySimpleComponent' : '/wms/base/warehouseLocation/getLocationDis',
25
+ dubbo: true,
26
+ data: queryData,
27
+ requestConfig: {
28
+ GatewayRoute: GATEWAY_ROUTE_WMS
29
+ }
30
+ });
31
+ };
32
+ var columns = [{
33
+ title: '库位编码',
34
+ dataIndex: 'locationCode',
35
+ ellipsis: true,
36
+ width: 100
37
+ }, {
38
+ title: '库位名称',
39
+ dataIndex: 'locationName',
40
+ ellipsis: true,
41
+ width: 100
42
+ }, {
43
+ title: '仓库编码',
44
+ dataIndex: 'warehouseCode',
45
+ ellipsis: true,
46
+ width: 100
47
+ },
48
+ // { title: '仓库名称', dataIndex: 'warehouseName', ellipsis: true, width: 100 },
49
+ {
50
+ title: '库区编码',
51
+ dataIndex: 'warehouseAreaCode',
52
+ ellipsis: true,
53
+ width: 100
54
+ }, {
55
+ title: '库区名称',
56
+ dataIndex: 'warehouseAreaName',
57
+ ellipsis: true,
58
+ width: 100
59
+ }];
60
+ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props, ref) {
61
+ var ownerId = props.ownerId,
62
+ initialValue = props.initialValue,
63
+ warehouseIds = props.warehouseIds,
64
+ warehouseAreaId = props.warehouseAreaId,
65
+ _props$searchTimes = props.searchTimes,
66
+ searchTimes = _props$searchTimes === void 0 ? 300 : _props$searchTimes,
67
+ _props$isFirstLoad = props.isFirstLoad,
68
+ isFirstLoad = _props$isFirstLoad === void 0 ? false : _props$isFirstLoad,
69
+ _props$rowLabel = props.rowLabel,
70
+ rowLabel = _props$rowLabel === void 0 ? 'locationCode' : _props$rowLabel,
71
+ _props$isDefWth = props.isDefWth,
72
+ isDefWth = _props$isDefWth === void 0 ? false : _props$isDefWth,
73
+ goodsId = props.goodsId,
74
+ batch = props.batch,
75
+ _props$isAutoGenerate = props.isAutoGenerate,
76
+ isAutoGenerate = _props$isAutoGenerate === void 0 ? '2' : _props$isAutoGenerate,
77
+ _props$filterInv = props.filterInv,
78
+ filterInv = _props$filterInv === void 0 ? false : _props$filterInv,
79
+ isGoodType = props.isGoodType,
80
+ isQueryScene = props.isQueryScene,
81
+ restProps = _objectWithoutProperties(props, _excluded);
82
+ var _useState = useState(isFirstLoad),
83
+ _useState2 = _slicedToArray(_useState, 2),
84
+ isFirstLoadSearch = _useState2[0],
85
+ setIsFirstLoadSearch = _useState2[1];
86
+ var _useState3 = useState(),
87
+ _useState4 = _slicedToArray(_useState3, 2),
88
+ locationList = _useState4[0],
89
+ setLocationList = _useState4[1];
90
+ var _useState5 = useState(false),
91
+ _useState6 = _slicedToArray(_useState5, 2),
92
+ loading = _useState6[0],
93
+ setLoading = _useState6[1];
94
+ var _useState7 = useState(),
95
+ _useState8 = _slicedToArray(_useState7, 2),
96
+ initSelectValue = _useState8[0],
97
+ setInitSelectValue = _useState8[1];
98
+ var timerRef = useRef();
99
+ useEffect(function () {
100
+ if (initialValue && !props.initSelectValue && (props.value === initialValue || props.value === undefined || props.value === null)) {
101
+ setLoading(true);
102
+ getWarehouseLoctionList({
103
+ warehouseLocationIds: initialValue,
104
+ warehouseIds: warehouseIds,
105
+ warehouseAreaId: warehouseAreaId,
106
+ goodsId: goodsId,
107
+ ownerId: ownerId,
108
+ defWth: isDefWth,
109
+ batch: batch,
110
+ page: 1,
111
+ size: 20,
112
+ isAutoGenerate: isAutoGenerate,
113
+ filterInv: filterInv,
114
+ isGoodType: isGoodType,
115
+ isQueryScene: isQueryScene
116
+ }).then(function (res) {
117
+ if (res !== null && res !== void 0 && res.length && res[0].id) {
118
+ setLocationList(res);
119
+ setInitSelectValue(res[0][rowLabel]);
120
+ if (props.onChange) {
121
+ props.onChange(initialValue, res[0]);
122
+ }
123
+ if (props.onChangeData) {
124
+ props.onChangeData(initialValue, res[0]);
125
+ }
126
+ } else {
127
+ setLocationList([]);
128
+ setInitSelectValue(undefined);
129
+ if (props.onChange) {
130
+ props.onChange(undefined, undefined);
131
+ }
132
+ if (props.onChangeData) {
133
+ props.onChangeData(undefined, {});
134
+ }
135
+ }
136
+ }).finally(function () {
137
+ setLoading(false);
138
+ });
139
+ }
140
+ }, [initialValue, warehouseIds, goodsId, ownerId, isDefWth, batch, warehouseAreaId, props, isAutoGenerate, rowLabel, filterInv, isGoodType, isQueryScene]);
141
+ var onSearch = useCallback(function (sValue) {
142
+ if (timerRef.current) clearTimeout(timerRef.current);
143
+ timerRef.current = setTimeout(function () {
144
+ setLoading(true);
145
+ getWarehouseLoctionList({
146
+ warehouseIds: warehouseIds,
147
+ remoteSearchCValue: sValue,
148
+ goodsId: goodsId,
149
+ ownerId: ownerId,
150
+ defWth: isDefWth,
151
+ batch: batch,
152
+ page: 1,
153
+ size: 20,
154
+ isAutoGenerate: isAutoGenerate,
155
+ filterInv: filterInv,
156
+ isGoodType: isGoodType,
157
+ isQueryScene: isQueryScene
158
+ }).then(function (res) {
159
+ setLocationList(res);
160
+ }).finally(function () {
161
+ setLoading(false);
162
+ });
163
+ }, searchTimes);
164
+ }, [searchTimes, warehouseIds, goodsId, ownerId, isDefWth, batch, isAutoGenerate, filterInv, isGoodType, isQueryScene]);
165
+ return /*#__PURE__*/_jsx(TableSelectBase, _objectSpread(_objectSpread({
166
+ ref: ref
167
+ }, restProps), {}, {
168
+ initSelectValue: initSelectValue || restProps.initSelectValue,
169
+ loading: loading,
170
+ bindField: {
171
+ rowKey: 'id',
172
+ rowLabel: rowLabel
173
+ },
174
+ onSearch: onSearch,
175
+ columns: columns,
176
+ dataSource: locationList || []
177
+ }));
178
+ }));
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import type { BiuColumnType } from "../../..";
3
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<import("antd/es/table").TableProps<any> & import("antd").SelectProps<any, import("antd/lib/select").DefaultOptionType> & {
4
+ columns?: BiuColumnType[] | undefined;
5
+ bindField?: {
6
+ rowKey?: string | undefined;
7
+ rowLabel?: string | undefined;
8
+ } | undefined;
9
+ value?: string | undefined;
10
+ initialValue?: any;
11
+ initSelectValue?: any;
12
+ onChangeData?: ((value: any, record: any) => void) | undefined;
13
+ } & {
14
+ ownerId: number;
15
+ clientId: number;
16
+ searchTimes?: number | undefined;
17
+ rowLabel?: string | undefined;
18
+ goodsAttribute: string;
19
+ isLoadAttribute: boolean;
20
+ } & React.RefAttributes<unknown>>>;
21
+ export default _default;
@@ -0,0 +1,249 @@
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", "clientId", "initialValue", "searchTimes", "rowLabel", "goodsAttribute", "isLoadAttribute", "onChangeData", "onChange", "value"];
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, useRef, useState } from 'react';
17
+ import TableSelectBase from "./base";
18
+ import { GATEWAY_ROUTE_WMS } from "../../../../constant";
19
+ import { request } from "../../../../package";
20
+ import { jsx as _jsx } from "react/jsx-runtime";
21
+ var getClientInfoExtendAttributeList = function getClientInfoExtendAttributeList(data) {
22
+ return request({
23
+ apiName: '/wms/base/wMSExtendAttribute/query',
24
+ dubbo: true,
25
+ data: data,
26
+ requestConfig: {
27
+ GatewayRoute: GATEWAY_ROUTE_WMS
28
+ }
29
+ });
30
+ };
31
+ var EXT_INFO = /*#__PURE__*/function (EXT_INFO) {
32
+ EXT_INFO["prefix"] = "ext";
33
+ EXT_INFO["prefixAttr"] = "attribute";
34
+ EXT_INFO["\u5165\u5E93\u5FC5\u586B"] = "isInFill";
35
+ EXT_INFO["\u4E0A\u67B6\u5FC5\u586B"] = "isSheFill";
36
+ EXT_INFO["\u5E93\u5B58\u5FC5\u586B"] = "isInvFill";
37
+ EXT_INFO["\u51FA\u5E93\u5FC5\u586B"] = "isOutFill";
38
+ EXT_INFO["\u5165\u5E93\u8BA2\u5355\u663E\u793A"] = "isInShow";
39
+ EXT_INFO["\u5165\u5E93\u4E0A\u67B6\u663E\u793A"] = "isSheShow";
40
+ EXT_INFO["\u51FA\u5E93\u8BA2\u5355\u663E\u793A"] = "isOutShow";
41
+ EXT_INFO["\u62E3\u8D27\u5355\u663E\u793A"] = "isPickingShow";
42
+ EXT_INFO["\u5165\u5E93\u6253\u5370\u663E\u793A"] = "isInPrintShow";
43
+ EXT_INFO["\u51FA\u5E93\u6253\u5370\u663E\u793A"] = "isOutPrintShow";
44
+ EXT_INFO["\u62E3\u8D27\u6253\u5370\u663E\u793A"] = "isPicPrintShow";
45
+ EXT_INFO["\u5E93\u5B58\u663E\u793A"] = "isInvShow";
46
+ return EXT_INFO;
47
+ }(EXT_INFO || {});
48
+ var queryGoodsInfo = function queryGoodsInfo(data) {
49
+ return request({
50
+ apiName: '/wms/base/goodsInfo/query',
51
+ dubbo: true,
52
+ data: data,
53
+ requestConfig: {
54
+ GatewayRoute: GATEWAY_ROUTE_WMS
55
+ }
56
+ });
57
+ };
58
+ var initColumns = [{
59
+ title: '商品编码',
60
+ dataIndex: 'goodsCode',
61
+ ellipsis: true,
62
+ width: 80
63
+ }, {
64
+ title: '商品名称',
65
+ dataIndex: 'goodsName',
66
+ ellipsis: true,
67
+ width: 80
68
+ }, {
69
+ title: '客户商品编码',
70
+ dataIndex: 'clientGoodsCode',
71
+ ellipsis: true,
72
+ width: 80
73
+ }];
74
+ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props, ref) {
75
+ var ownerId = props.ownerId,
76
+ clientId = props.clientId,
77
+ initialValue = props.initialValue,
78
+ _props$searchTimes = props.searchTimes,
79
+ searchTimes = _props$searchTimes === void 0 ? 300 : _props$searchTimes,
80
+ _props$rowLabel = props.rowLabel,
81
+ rowLabel = _props$rowLabel === void 0 ? 'goodsCode' : _props$rowLabel,
82
+ goodsAttribute = props.goodsAttribute,
83
+ _props$isLoadAttribut = props.isLoadAttribute,
84
+ isLoadAttribute = _props$isLoadAttribut === void 0 ? false : _props$isLoadAttribut,
85
+ onChangeData = props.onChangeData,
86
+ onChange = props.onChange,
87
+ value = props.value,
88
+ restProps = _objectWithoutProperties(props, _excluded);
89
+ var _useState = useState(initColumns),
90
+ _useState2 = _slicedToArray(_useState, 2),
91
+ columns = _useState2[0],
92
+ setColumns = _useState2[1];
93
+ var _useState3 = useState(),
94
+ _useState4 = _slicedToArray(_useState3, 2),
95
+ goodsList = _useState4[0],
96
+ setGoodsList = _useState4[1];
97
+ var _useState5 = useState(false),
98
+ _useState6 = _slicedToArray(_useState5, 2),
99
+ loading = _useState6[0],
100
+ setLoading = _useState6[1];
101
+ var _useState7 = useState(),
102
+ _useState8 = _slicedToArray(_useState7, 2),
103
+ initSelectValue = _useState8[0],
104
+ setInitSelectValue = _useState8[1];
105
+ var timerRef = useRef();
106
+ var prevData = useRef(props);
107
+ useEffect(function () {
108
+ if (ownerId) {
109
+ // 加载货物拓展属性
110
+ getClientInfoExtendAttributeList({
111
+ ownerId: ownerId,
112
+ attributeType: '1',
113
+ isActive: '1',
114
+ isDelete: '1'
115
+ }).then(function (_ref) {
116
+ var _ref$rows = _ref.rows,
117
+ rows = _ref$rows === void 0 ? [] : _ref$rows;
118
+ setColumns(initColumns.concat(rows.map(function (item) {
119
+ return {
120
+ title: item.attributeName,
121
+ dataIndex: "".concat(EXT_INFO.prefix).concat(item.attributeNumber),
122
+ ellipsis: true,
123
+ width: 60
124
+ };
125
+ })));
126
+ });
127
+ }
128
+ setGoodsList([]);
129
+ }, [ownerId]);
130
+ useEffect(function () {
131
+ console.log('value', value, initialValue);
132
+ console.log('props.value', props.value);
133
+ console.log('ownerId', ownerId);
134
+ console.log('clientId', clientId);
135
+ console.log('props.initSelectValue', props.initSelectValue);
136
+ if ((ownerId || clientId) && initialValue && !props.initSelectValue && (value === initialValue || value === undefined || value === null)) {
137
+ console.log('queryGoodsInfo');
138
+ setLoading(true);
139
+ queryGoodsInfo({
140
+ id: initialValue,
141
+ ownerId: ownerId,
142
+ clientId: clientId,
143
+ goodsAttribute: goodsAttribute
144
+ }).then(function (_ref2) {
145
+ var _ref2$rows = _ref2.rows,
146
+ rows = _ref2$rows === void 0 ? [] : _ref2$rows;
147
+ if (rows !== null && rows !== void 0 && rows.length && rows[0].id) {
148
+ setGoodsList(rows);
149
+ setInitSelectValue(rows[0][rowLabel]);
150
+ getClientInfoExtendAttributeList({
151
+ ownerId: clientId,
152
+ goodsId: initialValue,
153
+ attributeType: 2,
154
+ isActive: '1'
155
+ }).then(function (data) {
156
+ // if (onChange) {
157
+ // onChange(initialValue, {
158
+ // ...rows[0],
159
+ // extendAttributeList: data.rows
160
+ // })
161
+ // }
162
+ // if (onChangeData) {
163
+ // onChangeData(initialValue, {
164
+ // ...rows[0],
165
+ // extendAttributeList: data.rows
166
+ // })
167
+ // }
168
+ });
169
+ } else {
170
+ setGoodsList([]);
171
+ setInitSelectValue(undefined);
172
+ // if (onChange) {
173
+ // onChange(undefined, undefined as any)
174
+ // }
175
+ // if (onChangeData) {
176
+ // onChangeData(undefined, {})
177
+ // }
178
+ }
179
+ }).finally(function () {
180
+ setLoading(false);
181
+ });
182
+ }
183
+ }, [initialValue, ownerId, clientId, onChange, onChangeData, goodsAttribute, rowLabel, props.initSelectValue, props.value, value]);
184
+ var onSearch = useCallback(function (sValue) {
185
+ if (timerRef.current) clearTimeout(timerRef.current);
186
+ timerRef.current = setTimeout(function () {
187
+ setLoading(true);
188
+ queryGoodsInfo({
189
+ ownerId: ownerId,
190
+ clientId: clientId,
191
+ remoteSearchCValue: sValue,
192
+ isEnable: 0,
193
+ isExt: 0,
194
+ goodsAttribute: goodsAttribute
195
+ }).then(function (_ref3) {
196
+ var rows = _ref3.rows;
197
+ setGoodsList(rows || []);
198
+ }).finally(function () {
199
+ setLoading(false);
200
+ });
201
+ }, searchTimes);
202
+ }, [searchTimes, ownerId, clientId, goodsAttribute]);
203
+ var baseChangeData = useCallback(function (params, record) {
204
+ if (isLoadAttribute) {
205
+ getClientInfoExtendAttributeList({
206
+ ownerId: clientId,
207
+ goodsId: params,
208
+ attributeType: 2,
209
+ isActive: '1'
210
+ }).then(function (data) {
211
+ if (onChange) {
212
+ onChange(params, _objectSpread(_objectSpread({}, record), {}, {
213
+ extendAttributeList: data.rows
214
+ }));
215
+ }
216
+ if (onChangeData) {
217
+ onChangeData(params, _objectSpread(_objectSpread({}, record), {}, {
218
+ extendAttributeList: data.rows
219
+ }));
220
+ }
221
+ });
222
+ } else {
223
+ if (onChange) {
224
+ onChange(params, _objectSpread(_objectSpread({}, record), {}, {
225
+ extendAttributeList: []
226
+ }));
227
+ }
228
+ if (onChangeData) {
229
+ onChangeData(params, _objectSpread(_objectSpread({}, record), {}, {
230
+ extendAttributeList: []
231
+ }));
232
+ }
233
+ }
234
+ }, [isLoadAttribute, clientId, onChange, onChangeData]);
235
+ return /*#__PURE__*/_jsx(TableSelectBase, _objectSpread(_objectSpread({
236
+ ref: ref
237
+ }, restProps), {}, {
238
+ loading: loading,
239
+ initSelectValue: initSelectValue || restProps.initSelectValue,
240
+ bindField: {
241
+ rowKey: 'id',
242
+ rowLabel: rowLabel
243
+ },
244
+ onSearch: onSearch,
245
+ columns: columns,
246
+ dataSource: goodsList,
247
+ onChangeData: baseChangeData
248
+ }));
249
+ }));
@@ -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;