wt-enjoy-link-antd-repack 4.1.17

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 (286) hide show
  1. package/README.md +26 -0
  2. package/dist/esm/assets/location.png +0 -0
  3. package/dist/esm/component/BiuAButton/index.d.ts +18 -0
  4. package/dist/esm/component/BiuAButton/index.js +8 -0
  5. package/dist/esm/component/BiuACard/index.d.ts +2 -0
  6. package/dist/esm/component/BiuACard/index.js +9 -0
  7. package/dist/esm/component/BiuACascader/index.d.ts +10 -0
  8. package/dist/esm/component/BiuACascader/index.js +8 -0
  9. package/dist/esm/component/BiuADatePicker/index.d.ts +19 -0
  10. package/dist/esm/component/BiuADatePicker/index.js +18 -0
  11. package/dist/esm/component/BiuAForm/index.d.ts +7 -0
  12. package/dist/esm/component/BiuAForm/index.js +10 -0
  13. package/dist/esm/component/BiuAInput/index.d.ts +14 -0
  14. package/dist/esm/component/BiuAInput/index.js +32 -0
  15. package/dist/esm/component/BiuASelect/index.d.ts +6 -0
  16. package/dist/esm/component/BiuASelect/index.js +14 -0
  17. package/dist/esm/component/BiuASwitch/index.d.ts +2 -0
  18. package/dist/esm/component/BiuASwitch/index.js +9 -0
  19. package/dist/esm/component/BiuATimePicker/index.d.ts +4 -0
  20. package/dist/esm/component/BiuATimePicker/index.js +8 -0
  21. package/dist/esm/component/BiuATreeSelect/index.d.ts +2 -0
  22. package/dist/esm/component/BiuATreeSelect/index.js +8 -0
  23. package/dist/esm/component/BiuBar/index.d.ts +13 -0
  24. package/dist/esm/component/BiuBar/index.js +42 -0
  25. package/dist/esm/component/BiuComSelect/index.d.ts +24 -0
  26. package/dist/esm/component/BiuComSelect/index.js +104 -0
  27. package/dist/esm/component/BiuCue/index.d.ts +18 -0
  28. package/dist/esm/component/BiuCue/index.js +44 -0
  29. package/dist/esm/component/BiuCustomSelect/index.d.ts +19 -0
  30. package/dist/esm/component/BiuCustomSelect/index.js +153 -0
  31. package/dist/esm/component/BiuCustomTable/index.d.ts +14 -0
  32. package/dist/esm/component/BiuCustomTable/index.js +76 -0
  33. package/dist/esm/component/BiuCustomerOperCard/component/editTable.d.ts +8 -0
  34. package/dist/esm/component/BiuCustomerOperCard/component/editTable.js +264 -0
  35. package/dist/esm/component/BiuCustomerOperCard/component/index.d.ts +1 -0
  36. package/dist/esm/component/BiuCustomerOperCard/component/index.js +1 -0
  37. package/dist/esm/component/BiuCustomerOperCard/index.d.ts +20 -0
  38. package/dist/esm/component/BiuCustomerOperCard/index.js +56 -0
  39. package/dist/esm/component/BiuCustomerOperCard/type.d.ts +117 -0
  40. package/dist/esm/component/BiuCustomerOperCard/type.js +1 -0
  41. package/dist/esm/component/BiuCustomerOperCard/utils.d.ts +48 -0
  42. package/dist/esm/component/BiuCustomerOperCard/utils.js +236 -0
  43. package/dist/esm/component/BiuDescriptions/index.d.ts +9 -0
  44. package/dist/esm/component/BiuDescriptions/index.js +39 -0
  45. package/dist/esm/component/BiuDetailDrawer/index.d.ts +15 -0
  46. package/dist/esm/component/BiuDetailDrawer/index.js +54 -0
  47. package/dist/esm/component/BiuDivider/index.d.ts +4 -0
  48. package/dist/esm/component/BiuDivider/index.js +29 -0
  49. package/dist/esm/component/BiuField/component/AddressTableSelect.d.ts +3 -0
  50. package/dist/esm/component/BiuField/component/AddressTableSelect.js +150 -0
  51. package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/index.d.ts +3 -0
  52. package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/index.js +3 -0
  53. package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/useConvertSubValue.d.ts +2 -0
  54. package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/useConvertSubValue.js +49 -0
  55. package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/useConvertUnSubValue.d.ts +2 -0
  56. package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/useConvertUnSubValue.js +98 -0
  57. package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/useInConvertUnSubValue.d.ts +5 -0
  58. package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/useInConvertUnSubValue.js +82 -0
  59. package/dist/esm/component/BiuField/component/DepartOrgSelect/index.d.ts +14 -0
  60. package/dist/esm/component/BiuField/component/DepartOrgSelect/index.js +393 -0
  61. package/dist/esm/component/BiuField/component/DepartOrgSelect/type.d.ts +123 -0
  62. package/dist/esm/component/BiuField/component/DepartOrgSelect/type.js +1 -0
  63. package/dist/esm/component/BiuField/component/DepartOrgSelect/utils.d.ts +5 -0
  64. package/dist/esm/component/BiuField/component/DepartOrgSelect/utils.js +59 -0
  65. package/dist/esm/component/BiuField/component/OMSSystem/cityAreaSelect.d.ts +12 -0
  66. package/dist/esm/component/BiuField/component/OMSSystem/cityAreaSelect.js +130 -0
  67. package/dist/esm/component/BiuField/component/OMSSystem/warehouseSel.d.ts +7 -0
  68. package/dist/esm/component/BiuField/component/OMSSystem/warehouseSel.js +80 -0
  69. package/dist/esm/component/BiuField/component/SNInput.d.ts +13 -0
  70. package/dist/esm/component/BiuField/component/SNInput.js +622 -0
  71. package/dist/esm/component/BiuField/component/TableSelectLocal/addressSelect.d.ts +23 -0
  72. package/dist/esm/component/BiuField/component/TableSelectLocal/addressSelect.js +187 -0
  73. package/dist/esm/component/BiuField/component/TableSelectLocal/base.d.ts +13 -0
  74. package/dist/esm/component/BiuField/component/TableSelectLocal/base.js +153 -0
  75. package/dist/esm/component/BiuField/component/TableSelectLocal/goodSelect.d.ts +21 -0
  76. package/dist/esm/component/BiuField/component/TableSelectLocal/goodSelect.js +238 -0
  77. package/dist/esm/component/BiuField/component/TableSelectLocal/index.d.ts +3 -0
  78. package/dist/esm/component/BiuField/component/TableSelectLocal/index.js +66 -0
  79. package/dist/esm/component/BiuField/component/TableSelectLocal/interface.d.ts +16 -0
  80. package/dist/esm/component/BiuField/component/TableSelectLocal/interface.js +1 -0
  81. package/dist/esm/component/BiuField/component/TableSelectLocal/locationSelect.d.ts +24 -0
  82. package/dist/esm/component/BiuField/component/TableSelectLocal/locationSelect.js +164 -0
  83. package/dist/esm/component/BiuField/component/TableSelectLocal/package.d.ts +3 -0
  84. package/dist/esm/component/BiuField/component/TableSelectLocal/package.js +149 -0
  85. package/dist/esm/component/BiuField/component/TableSelectLocal/supplierSelect.d.ts +18 -0
  86. package/dist/esm/component/BiuField/component/TableSelectLocal/supplierSelect.js +145 -0
  87. package/dist/esm/component/BiuField/component/TableSelectLocal/warehouseAreaSelect.d.ts +3 -0
  88. package/dist/esm/component/BiuField/component/TableSelectLocal/warehouseAreaSelect.js +113 -0
  89. package/dist/esm/component/BiuField/component/TableSelectLocal/warehouseInfoSelects.d.ts +18 -0
  90. package/dist/esm/component/BiuField/component/TableSelectLocal/warehouseInfoSelects.js +100 -0
  91. package/dist/esm/component/BiuField/component/appliedgoodsTypeSelect.d.ts +9 -0
  92. package/dist/esm/component/BiuField/component/appliedgoodsTypeSelect.js +75 -0
  93. package/dist/esm/component/BiuField/component/autoComplete.d.ts +8 -0
  94. package/dist/esm/component/BiuField/component/autoComplete.js +82 -0
  95. package/dist/esm/component/BiuField/component/boxTypeSelect.d.ts +11 -0
  96. package/dist/esm/component/BiuField/component/boxTypeSelect.js +139 -0
  97. package/dist/esm/component/BiuField/component/businessdistrictselect.d.ts +55 -0
  98. package/dist/esm/component/BiuField/component/businessdistrictselect.js +414 -0
  99. package/dist/esm/component/BiuField/component/carrierInfoSelect.d.ts +13 -0
  100. package/dist/esm/component/BiuField/component/carrierInfoSelect.js +145 -0
  101. package/dist/esm/component/BiuField/component/channelSelect.d.ts +8 -0
  102. package/dist/esm/component/BiuField/component/channelSelect.js +94 -0
  103. package/dist/esm/component/BiuField/component/cityAreaCascader.d.ts +11 -0
  104. package/dist/esm/component/BiuField/component/cityAreaCascader.js +86 -0
  105. package/dist/esm/component/BiuField/component/clientInfoTableSelect.d.ts +3 -0
  106. package/dist/esm/component/BiuField/component/clientInfoTableSelect.js +175 -0
  107. package/dist/esm/component/BiuField/component/customMenu.d.ts +3 -0
  108. package/dist/esm/component/BiuField/component/customMenu.js +110 -0
  109. package/dist/esm/component/BiuField/component/databaseSelect.d.ts +6 -0
  110. package/dist/esm/component/BiuField/component/databaseSelect.js +42 -0
  111. package/dist/esm/component/BiuField/component/departmentTreeSelect.d.ts +3 -0
  112. package/dist/esm/component/BiuField/component/departmentTreeSelect.js +107 -0
  113. package/dist/esm/component/BiuField/component/dicNameSelect.d.ts +12 -0
  114. package/dist/esm/component/BiuField/component/dicNameSelect.js +53 -0
  115. package/dist/esm/component/BiuField/component/dicTypeSelect.d.ts +41 -0
  116. package/dist/esm/component/BiuField/component/dicTypeSelect.js +84 -0
  117. package/dist/esm/component/BiuField/component/dockingPartySelect.d.ts +8 -0
  118. package/dist/esm/component/BiuField/component/dockingPartySelect.js +63 -0
  119. package/dist/esm/component/BiuField/component/editLocationSelect.d.ts +18 -0
  120. package/dist/esm/component/BiuField/component/editLocationSelect.js +119 -0
  121. package/dist/esm/component/BiuField/component/electronicFaceSheet/accountSelect.d.ts +3 -0
  122. package/dist/esm/component/BiuField/component/electronicFaceSheet/accountSelect.js +36 -0
  123. package/dist/esm/component/BiuField/component/electronicFaceSheet/addresSelect.d.ts +14 -0
  124. package/dist/esm/component/BiuField/component/electronicFaceSheet/addresSelect.js +97 -0
  125. package/dist/esm/component/BiuField/component/electronicFaceSheet/platformSelect.d.ts +7 -0
  126. package/dist/esm/component/BiuField/component/electronicFaceSheet/platformSelect.js +73 -0
  127. package/dist/esm/component/BiuField/component/goodsTypeSelect.d.ts +10 -0
  128. package/dist/esm/component/BiuField/component/goodsTypeSelect.js +92 -0
  129. package/dist/esm/component/BiuField/component/index.d.ts +37 -0
  130. package/dist/esm/component/BiuField/component/index.js +37 -0
  131. package/dist/esm/component/BiuField/component/interfaceNameSelect.d.ts +9 -0
  132. package/dist/esm/component/BiuField/component/interfaceNameSelect.js +65 -0
  133. package/dist/esm/component/BiuField/component/lpnSelect.d.ts +3 -0
  134. package/dist/esm/component/BiuField/component/lpnSelect.js +88 -0
  135. package/dist/esm/component/BiuField/component/orderTypeSelect.d.ts +15 -0
  136. package/dist/esm/component/BiuField/component/orderTypeSelect.js +79 -0
  137. package/dist/esm/component/BiuField/component/orderTypeTableSelect.d.ts +3 -0
  138. package/dist/esm/component/BiuField/component/orderTypeTableSelect.js +45 -0
  139. package/dist/esm/component/BiuField/component/parkSelect.d.ts +12 -0
  140. package/dist/esm/component/BiuField/component/parkSelect.js +88 -0
  141. package/dist/esm/component/BiuField/component/personnelinfoselect.d.ts +57 -0
  142. package/dist/esm/component/BiuField/component/personnelinfoselect.js +431 -0
  143. package/dist/esm/component/BiuField/component/propertNameSelect.d.ts +9 -0
  144. package/dist/esm/component/BiuField/component/propertNameSelect.js +114 -0
  145. package/dist/esm/component/BiuField/component/shipperTableSelect.d.ts +3 -0
  146. package/dist/esm/component/BiuField/component/shipperTableSelect.js +94 -0
  147. package/dist/esm/component/BiuField/component/userSelect.d.ts +8 -0
  148. package/dist/esm/component/BiuField/component/userSelect.js +163 -0
  149. package/dist/esm/component/BiuField/component/warehouseAreaSelect.d.ts +9 -0
  150. package/dist/esm/component/BiuField/component/warehouseAreaSelect.js +103 -0
  151. package/dist/esm/component/BiuField/component/warehouseInfoSelect.d.ts +13 -0
  152. package/dist/esm/component/BiuField/component/warehouseInfoSelect.js +92 -0
  153. package/dist/esm/component/BiuField/component/warehouseLoctionSelect.d.ts +14 -0
  154. package/dist/esm/component/BiuField/component/warehouseLoctionSelect.js +124 -0
  155. package/dist/esm/component/BiuField/index.d.ts +8 -0
  156. package/dist/esm/component/BiuField/index.js +607 -0
  157. package/dist/esm/component/BiuFileInput/index.d.ts +11 -0
  158. package/dist/esm/component/BiuFileInput/index.js +53 -0
  159. package/dist/esm/component/BiuForm/index.d.ts +12 -0
  160. package/dist/esm/component/BiuForm/index.js +241 -0
  161. package/dist/esm/component/BiuForm/type.d.ts +45 -0
  162. package/dist/esm/component/BiuForm/type.js +1 -0
  163. package/dist/esm/component/BiuForm/utils.d.ts +2 -0
  164. package/dist/esm/component/BiuForm/utils.js +46 -0
  165. package/dist/esm/component/BiuIcon/index.d.ts +3 -0
  166. package/dist/esm/component/BiuIcon/index.js +15 -0
  167. package/dist/esm/component/BiuMapSelectSite/index.d.ts +48 -0
  168. package/dist/esm/component/BiuMapSelectSite/index.js +453 -0
  169. package/dist/esm/component/BiuModal/index.d.ts +24 -0
  170. package/dist/esm/component/BiuModal/index.js +239 -0
  171. package/dist/esm/component/BiuOperForm/index.d.ts +15 -0
  172. package/dist/esm/component/BiuOperForm/index.js +375 -0
  173. package/dist/esm/component/BiuOperForm/type.d.ts +23 -0
  174. package/dist/esm/component/BiuOperForm/type.js +1 -0
  175. package/dist/esm/component/BiuOperTable/index.d.ts +15 -0
  176. package/dist/esm/component/BiuOperTable/index.js +349 -0
  177. package/dist/esm/component/BiuOperTable/type.d.ts +142 -0
  178. package/dist/esm/component/BiuOperTable/type.js +1 -0
  179. package/dist/esm/component/BiuOperTable/utils.d.ts +6 -0
  180. package/dist/esm/component/BiuOperTable/utils.js +13 -0
  181. package/dist/esm/component/BiuPagination/index.d.ts +14 -0
  182. package/dist/esm/component/BiuPagination/index.js +34 -0
  183. package/dist/esm/component/BiuResizeTable/component/biuTableCell.d.ts +1 -0
  184. package/dist/esm/component/BiuResizeTable/component/biuTableCell.js +74 -0
  185. package/dist/esm/component/BiuResizeTable/component/index.d.ts +1 -0
  186. package/dist/esm/component/BiuResizeTable/component/index.js +1 -0
  187. package/dist/esm/component/BiuResizeTable/index.d.ts +2 -0
  188. package/dist/esm/component/BiuResizeTable/index.js +71 -0
  189. package/dist/esm/component/BiuResizeTable/index.less +19 -0
  190. package/dist/esm/component/BiuSplit/index.d.ts +32 -0
  191. package/dist/esm/component/BiuSplit/index.js +57 -0
  192. package/dist/esm/component/BiuTable/component/index.d.ts +3 -0
  193. package/dist/esm/component/BiuTable/component/index.js +3 -0
  194. package/dist/esm/component/BiuTable/component/tableActionBarRender.d.ts +9 -0
  195. package/dist/esm/component/BiuTable/component/tableActionBarRender.js +88 -0
  196. package/dist/esm/component/BiuTable/component/tableCellRender.d.ts +14 -0
  197. package/dist/esm/component/BiuTable/component/tableCellRender.js +108 -0
  198. package/dist/esm/component/BiuTable/component/tableSettingRender.d.ts +2 -0
  199. package/dist/esm/component/BiuTable/component/tableSettingRender.js +345 -0
  200. package/dist/esm/component/BiuTable/context.d.ts +2 -0
  201. package/dist/esm/component/BiuTable/context.js +2 -0
  202. package/dist/esm/component/BiuTable/hooks/index.d.ts +1 -0
  203. package/dist/esm/component/BiuTable/hooks/index.js +1 -0
  204. package/dist/esm/component/BiuTable/hooks/useFetchData.d.ts +4 -0
  205. package/dist/esm/component/BiuTable/hooks/useFetchData.js +64 -0
  206. package/dist/esm/component/BiuTable/index.d.ts +42 -0
  207. package/dist/esm/component/BiuTable/index.js +484 -0
  208. package/dist/esm/component/BiuTable/type.d.ts +168 -0
  209. package/dist/esm/component/BiuTable/type.js +1 -0
  210. package/dist/esm/component/BiuTable/utils.d.ts +10 -0
  211. package/dist/esm/component/BiuTable/utils.js +117 -0
  212. package/dist/esm/component/BiuTableLink/index.d.ts +11 -0
  213. package/dist/esm/component/BiuTableLink/index.js +54 -0
  214. package/dist/esm/component/BiuTableSelect/index.d.ts +49 -0
  215. package/dist/esm/component/BiuTableSelect/index.js +209 -0
  216. package/dist/esm/component/BiuTabs/index.d.ts +4 -0
  217. package/dist/esm/component/BiuTabs/index.js +18 -0
  218. package/dist/esm/component/BiuVirtualTable/index.d.ts +21 -0
  219. package/dist/esm/component/BiuVirtualTable/index.js +161 -0
  220. package/dist/esm/component/index.d.ts +35 -0
  221. package/dist/esm/component/index.js +35 -0
  222. package/dist/esm/constant/Cache_Key.d.ts +28 -0
  223. package/dist/esm/constant/Cache_Key.js +28 -0
  224. package/dist/esm/constant/DateTime.d.ts +12 -0
  225. package/dist/esm/constant/DateTime.js +15 -0
  226. package/dist/esm/constant/External.d.ts +64 -0
  227. package/dist/esm/constant/External.js +260 -0
  228. package/dist/esm/constant/Gateway_Path.d.ts +5 -0
  229. package/dist/esm/constant/Gateway_Path.js +5 -0
  230. package/dist/esm/constant/Layout.d.ts +210 -0
  231. package/dist/esm/constant/Layout.js +215 -0
  232. package/dist/esm/constant/Regexp.d.ts +109 -0
  233. package/dist/esm/constant/Regexp.js +130 -0
  234. package/dist/esm/constant/index.d.ts +6 -0
  235. package/dist/esm/constant/index.js +6 -0
  236. package/dist/esm/hooks/index.d.ts +6 -0
  237. package/dist/esm/hooks/index.js +6 -0
  238. package/dist/esm/hooks/useAuth.d.ts +4 -0
  239. package/dist/esm/hooks/useAuth.js +22 -0
  240. package/dist/esm/hooks/useCurrentSystem.d.ts +6 -0
  241. package/dist/esm/hooks/useCurrentSystem.js +15 -0
  242. package/dist/esm/hooks/useLayoutInfo.d.ts +10 -0
  243. package/dist/esm/hooks/useLayoutInfo.js +14 -0
  244. package/dist/esm/hooks/useReducerState.d.ts +16 -0
  245. package/dist/esm/hooks/useReducerState.js +43 -0
  246. package/dist/esm/hooks/useUserInfo.d.ts +4 -0
  247. package/dist/esm/hooks/useUserInfo.js +15 -0
  248. package/dist/esm/hooks/useWareInfo.d.ts +4 -0
  249. package/dist/esm/hooks/useWareInfo.js +15 -0
  250. package/dist/esm/index.d.ts +5 -0
  251. package/dist/esm/index.js +5 -0
  252. package/dist/esm/package/index.d.ts +1 -0
  253. package/dist/esm/package/index.js +1 -0
  254. package/dist/esm/package/requestWrapper/baseRequest.d.ts +3 -0
  255. package/dist/esm/package/requestWrapper/baseRequest.js +47 -0
  256. package/dist/esm/package/requestWrapper/index.d.ts +4 -0
  257. package/dist/esm/package/requestWrapper/index.js +402 -0
  258. package/dist/esm/package/requestWrapper/type.d.ts +36 -0
  259. package/dist/esm/package/requestWrapper/type.js +1 -0
  260. package/dist/esm/package/requestWrapper/utils.d.ts +10 -0
  261. package/dist/esm/package/requestWrapper/utils.js +35 -0
  262. package/dist/esm/utils/authUtils.d.ts +18 -0
  263. package/dist/esm/utils/authUtils.js +36 -0
  264. package/dist/esm/utils/cacheUtils.d.ts +4 -0
  265. package/dist/esm/utils/cacheUtils.js +24 -0
  266. package/dist/esm/utils/chainUtils.d.ts +26 -0
  267. package/dist/esm/utils/chainUtils.js +54 -0
  268. package/dist/esm/utils/dateUtils.d.ts +23 -0
  269. package/dist/esm/utils/dateUtils.js +55 -0
  270. package/dist/esm/utils/decimalUtils.d.ts +5 -0
  271. package/dist/esm/utils/decimalUtils.js +7 -0
  272. package/dist/esm/utils/excelUtils.d.ts +22 -0
  273. package/dist/esm/utils/excelUtils.js +153 -0
  274. package/dist/esm/utils/index.d.ts +11 -0
  275. package/dist/esm/utils/index.js +11 -0
  276. package/dist/esm/utils/layoutUtils.d.ts +1 -0
  277. package/dist/esm/utils/layoutUtils.js +13 -0
  278. package/dist/esm/utils/objectUtils.d.ts +1 -0
  279. package/dist/esm/utils/objectUtils.js +3 -0
  280. package/dist/esm/utils/soundUtils.d.ts +5 -0
  281. package/dist/esm/utils/soundUtils.js +29 -0
  282. package/dist/esm/utils/stringUtils.d.ts +24 -0
  283. package/dist/esm/utils/stringUtils.js +39 -0
  284. package/dist/esm/utils/sysUtils.d.ts +4 -0
  285. package/dist/esm/utils/sysUtils.js +4 -0
  286. package/package.json +59 -0
@@ -0,0 +1,113 @@
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 = ["warehouseId", "initialValue", "searchTimes", "rowLabel"];
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 { trim } 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
+
22
+ /**
23
+ * 库区查询条件
24
+ * @param queryData
25
+ */
26
+ import { jsx as _jsx } from "react/jsx-runtime";
27
+ var getWarehouseAreaList = function getWarehouseAreaList(queryData) {
28
+ return request({
29
+ apiName: 'wms.basedata.quarySimpleWA',
30
+ data: queryData,
31
+ requestConfig: {
32
+ GatewayRoute: GATEWAY_ROUTE_WMS
33
+ }
34
+ });
35
+ };
36
+ var columns = [{
37
+ title: '库区编码',
38
+ dataIndex: 'warehouseAreaCode',
39
+ ellipsis: true,
40
+ width: 100
41
+ }, {
42
+ title: '库区名称',
43
+ dataIndex: 'warehouseAreaName',
44
+ ellipsis: true,
45
+ width: 100
46
+ }];
47
+ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props, ref) {
48
+ var warehouseId = props.warehouseId,
49
+ initialValue = props.initialValue,
50
+ _props$searchTimes = props.searchTimes,
51
+ searchTimes = _props$searchTimes === void 0 ? 300 : _props$searchTimes,
52
+ _props$rowLabel = props.rowLabel,
53
+ rowLabel = _props$rowLabel === void 0 ? 'warehouseAreaCode' : _props$rowLabel,
54
+ restProps = _objectWithoutProperties(props, _excluded);
55
+ var _useState = useState(),
56
+ _useState2 = _slicedToArray(_useState, 2),
57
+ areaList = _useState2[0],
58
+ setAreaList = _useState2[1];
59
+ var _useState3 = useState(false),
60
+ _useState4 = _slicedToArray(_useState3, 2),
61
+ loading = _useState4[0],
62
+ setLoading = _useState4[1];
63
+ var _useState5 = useState(),
64
+ _useState6 = _slicedToArray(_useState5, 2),
65
+ initSelectValue = _useState6[0],
66
+ setInitSelectValue = _useState6[1];
67
+ var timerRef = useRef();
68
+ useEffect(function () {
69
+ if (initialValue && !props.initSelectValue && (props.value === initialValue || props.value === undefined || props.value === null)) {
70
+ setLoading(true);
71
+ getWarehouseAreaList({
72
+ id: initialValue,
73
+ warehouseId: warehouseId
74
+ }).then(function (res) {
75
+ if (res !== null && res !== void 0 && res.length && res[0].id) {
76
+ setAreaList(res);
77
+ setInitSelectValue(res[0][rowLabel]);
78
+ } else {
79
+ setAreaList([]);
80
+ }
81
+ }).finally(function () {
82
+ setLoading(false);
83
+ });
84
+ }
85
+ }, [initialValue, props.initSelectValue, props.value, rowLabel, warehouseId]);
86
+ var onSearch = useCallback(function (sValue) {
87
+ if (timerRef.current) clearTimeout(timerRef.current);
88
+ timerRef.current = setTimeout(function () {
89
+ setLoading(true);
90
+ getWarehouseAreaList({
91
+ warehouseId: warehouseId,
92
+ warehouseAreaCode: trim(sValue)
93
+ }).then(function (res) {
94
+ setAreaList(res);
95
+ }).finally(function () {
96
+ setLoading(false);
97
+ });
98
+ }, searchTimes);
99
+ }, [searchTimes, warehouseId]);
100
+ return /*#__PURE__*/_jsx(TableSelectBase, _objectSpread(_objectSpread({
101
+ ref: ref
102
+ }, restProps), {}, {
103
+ initSelectValue: initSelectValue || restProps.initSelectValue,
104
+ loading: loading,
105
+ bindField: {
106
+ rowKey: 'id',
107
+ rowLabel: rowLabel
108
+ },
109
+ onSearch: onSearch,
110
+ columns: columns,
111
+ dataSource: areaList || []
112
+ }));
113
+ }));
@@ -0,0 +1,18 @@
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?: string | undefined;
11
+ onChangeData?: ((value: any, record: any) => void) | undefined;
12
+ } & {
13
+ ownerId: string;
14
+ initialValue?: string | undefined;
15
+ searchTimes?: number | undefined;
16
+ rowLabel?: string | undefined;
17
+ } & React.RefAttributes<unknown>>>;
18
+ export default _default;
@@ -0,0 +1,100 @@
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", "searchTimes", "rowLabel"];
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_MDM } from "../../../../constant";
19
+ import { request } from "../../../../package";
20
+ import { jsx as _jsx } from "react/jsx-runtime";
21
+ var getWarehouseLoctionList = function getWarehouseLoctionList(queryData) {
22
+ return request({
23
+ apiName: 'wms.mdm.warhouseSimpleList',
24
+ data: queryData,
25
+ requestConfig: {
26
+ GatewayRoute: GATEWAY_ROUTE_MDM
27
+ }
28
+ });
29
+ };
30
+ var columns = [{
31
+ title: '仓库编码',
32
+ dataIndex: 'warehouseCode',
33
+ ellipsis: true,
34
+ width: 100
35
+ }, {
36
+ title: '仓库名称',
37
+ dataIndex: 'warehouseName',
38
+ ellipsis: true,
39
+ width: 100
40
+ }];
41
+ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props, ref) {
42
+ var ownerId = props.ownerId,
43
+ initialValue = props.initialValue,
44
+ _props$searchTimes = props.searchTimes,
45
+ searchTimes = _props$searchTimes === void 0 ? 300 : _props$searchTimes,
46
+ _props$rowLabel = props.rowLabel,
47
+ rowLabel = _props$rowLabel === void 0 ? 'warehouseCode' : _props$rowLabel,
48
+ restProps = _objectWithoutProperties(props, _excluded);
49
+ var _useState = useState(),
50
+ _useState2 = _slicedToArray(_useState, 2),
51
+ locationList = _useState2[0],
52
+ setLocationList = _useState2[1];
53
+ var _useState3 = useState(false),
54
+ _useState4 = _slicedToArray(_useState3, 2),
55
+ loading = _useState4[0],
56
+ setLoading = _useState4[1];
57
+ var timerRef = useRef();
58
+ useEffect(function () {
59
+ setLoading(true);
60
+ getWarehouseLoctionList({
61
+ warehouseName: initialValue,
62
+ isFirstLoadSearch: true
63
+ }).then(function (res) {
64
+ if (res !== null && res !== void 0 && res.length && res[0].id) {
65
+ setLocationList(res);
66
+ } else {
67
+ setLocationList([]);
68
+ }
69
+ }).finally(function () {
70
+ setLoading(false);
71
+ });
72
+ }, [initialValue, ownerId]);
73
+ var onSearch = useCallback(function (sValue) {
74
+ if (timerRef.current) clearTimeout(timerRef.current);
75
+ timerRef.current = setTimeout(function () {
76
+ setLoading(true);
77
+ getWarehouseLoctionList({
78
+ warehouseName: sValue,
79
+ isFirstLoadSearch: true
80
+ }).then(function (res) {
81
+ setLocationList(res);
82
+ }).finally(function () {
83
+ setLoading(false);
84
+ });
85
+ }, searchTimes);
86
+ }, [searchTimes]);
87
+ return /*#__PURE__*/_jsx(TableSelectBase, _objectSpread(_objectSpread({
88
+ ref: ref
89
+ }, restProps), {}, {
90
+ initSelectValue: restProps === null || restProps === void 0 ? void 0 : restProps.initSelectValue,
91
+ loading: loading,
92
+ bindField: {
93
+ rowKey: 'id',
94
+ rowLabel: rowLabel
95
+ },
96
+ onSearch: onSearch,
97
+ columns: columns,
98
+ dataSource: locationList || []
99
+ }));
100
+ }));
@@ -0,0 +1,9 @@
1
+ import type { SelectProps } from 'antd';
2
+ import React from 'react';
3
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
4
+ id?: string | undefined;
5
+ ownerId?: string | undefined;
6
+ value?: string | number | string[] | number[] | undefined;
7
+ noOwnerContent?: string | undefined;
8
+ } & Pick<SelectProps<any, import("antd/lib/select").DefaultOptionType>, "onChange"> & React.RefAttributes<unknown>>>;
9
+ export default _default;
@@ -0,0 +1,75 @@
1
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
+ 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."); }
3
+ 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); }
4
+ 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; }
5
+ 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; } }
6
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
+ import React, { forwardRef, useCallback, useEffect, useMemo, useState } from 'react';
8
+ import { BiuCustomSelect } from "../..";
9
+ import { GATEWAY_ROUTE_WMS } from "../../../constant";
10
+ import { jsx as _jsx } from "react/jsx-runtime";
11
+ var requestConfig = {
12
+ GatewayRoute: GATEWAY_ROUTE_WMS
13
+ };
14
+ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props, ref) {
15
+ var _useState = useState(''),
16
+ _useState2 = _slicedToArray(_useState, 2),
17
+ notFoundContent = _useState2[0],
18
+ setNotFoundContent = _useState2[1];
19
+ var value = props.value,
20
+ ownerId = props.ownerId,
21
+ _props$noOwnerContent = props.noOwnerContent,
22
+ noOwnerContent = _props$noOwnerContent === void 0 ? '请先选择货主' : _props$noOwnerContent,
23
+ onChange = props.onChange;
24
+
25
+ /**
26
+ * 加载原始数据源,根据传入值查询
27
+ * ps。依赖传入参数
28
+ */
29
+ useEffect(function () {
30
+ if (!ownerId) {
31
+ setNotFoundContent(noOwnerContent);
32
+ return;
33
+ }
34
+ setNotFoundContent('');
35
+ }, [noOwnerContent, ownerId]);
36
+ var requestParams = useMemo(function () {
37
+ return {
38
+ ownerId: ownerId
39
+ };
40
+ }, [ownerId]);
41
+ var onFetchData = useCallback(function (res) {
42
+ var data = res || [];
43
+ var optionData = [];
44
+ var obj = {};
45
+ for (var i = 0; i < data.length; i += 1) {
46
+ if (!obj[data[i].fatherTypeId]) {
47
+ optionData.push(data[i]);
48
+ obj[data[i].fatherTypeId] = true;
49
+ }
50
+ }
51
+ return optionData.filter(function (d) {
52
+ return d.fatherTypeId !== null && d.fatherTypeId !== '';
53
+ }).map(function (item) {
54
+ return {
55
+ label: item.fatherTypeName || '',
56
+ value: item.fatherTypeId
57
+ };
58
+ });
59
+ }, []);
60
+ var isOnReady = useCallback(function (params) {
61
+ if (!params.ownerId) return false;
62
+ return true;
63
+ }, []);
64
+ return /*#__PURE__*/_jsx(BiuCustomSelect, {
65
+ ref: ref,
66
+ requestName: "wms.basedata.queryByIDInStrategy",
67
+ requestParams: requestParams,
68
+ requestConfig: requestConfig,
69
+ onReady: isOnReady,
70
+ notFoundContent: notFoundContent,
71
+ onFetchData: onFetchData,
72
+ onChange: onChange,
73
+ value: value
74
+ }, "appliedgoodsTypeSelect");
75
+ }));
@@ -0,0 +1,8 @@
1
+ import type { SelectProps } from 'antd';
2
+ import React from 'react';
3
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
4
+ clientId?: string | undefined;
5
+ onChangeData?: ((value: any, record: any) => void) | undefined;
6
+ isFirstLoad?: boolean | undefined;
7
+ } & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
8
+ 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 = ["clientId", "onChange", "onChangeData", "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 _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 { AutoComplete } from 'antd';
17
+ import React, { forwardRef, useCallback, useEffect, useState } from 'react';
18
+ import { GATEWAY_ROUTE_WMS } from "../../../constant";
19
+ import { request } from "../../../package";
20
+ import { jsx as _jsx } from "react/jsx-runtime";
21
+ var getByClientIdData = function getByClientIdData(queryData) {
22
+ return request({
23
+ apiName: 'wms.basedata.getByClientIdData',
24
+ data: queryData,
25
+ requestConfig: {
26
+ GatewayRoute: GATEWAY_ROUTE_WMS
27
+ }
28
+ });
29
+ };
30
+ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props, ref) {
31
+ var _useState = useState([]),
32
+ _useState2 = _slicedToArray(_useState, 2),
33
+ result = _useState2[0],
34
+ setResult = _useState2[1];
35
+ var clientId = props.clientId,
36
+ onChange = props.onChange,
37
+ onChangeData = props.onChangeData,
38
+ _props$isFirstLoad = props.isFirstLoad,
39
+ isFirstLoad = _props$isFirstLoad === void 0 ? true : _props$isFirstLoad,
40
+ restProps = _objectWithoutProperties(props, _excluded);
41
+ var _useState3 = useState(isFirstLoad),
42
+ _useState4 = _slicedToArray(_useState3, 2),
43
+ isFirstLoadSearch = _useState4[0],
44
+ setIsFirstLoadSearch = _useState4[1];
45
+ useEffect(function () {
46
+ if (!clientId && !isFirstLoadSearch) {
47
+ setResult([]);
48
+ return;
49
+ }
50
+ getByClientIdData({
51
+ clientId: clientId
52
+ }).then(function (res) {
53
+ setResult(res || []);
54
+ });
55
+ }, [clientId, isFirstLoadSearch]);
56
+ var handleOnChange = useCallback(function (value, option) {
57
+ if (onChange) onChange(value, option);
58
+ if (onChangeData) {
59
+ onChangeData(value, result.filter(function (item) {
60
+ return "".concat(item.goodsCode) === "".concat(value);
61
+ })[0]);
62
+ }
63
+ }, [onChange, onChangeData, result]);
64
+ var onSearch = useCallback(function () {
65
+ setIsFirstLoadSearch(true);
66
+ }, []);
67
+ return /*#__PURE__*/_jsx(AutoComplete, _objectSpread(_objectSpread({
68
+ ref: ref,
69
+ onChange: handleOnChange,
70
+ onSearch: onSearch,
71
+ filterOption: function filterOption(inputValue, option) {
72
+ return (option === null || option === void 0 ? void 0 : option.value.toUpperCase().indexOf(inputValue === null || inputValue === void 0 ? void 0 : inputValue.toUpperCase())) !== -1;
73
+ }
74
+ }, restProps), {}, {
75
+ children: result.map(function (email) {
76
+ return /*#__PURE__*/_jsx(AutoComplete.Option, {
77
+ value: email === null || email === void 0 ? void 0 : email.goodsCode,
78
+ children: email === null || email === void 0 ? void 0 : email.goodsCode
79
+ }, email === null || email === void 0 ? void 0 : email.id);
80
+ })
81
+ }));
82
+ }));
@@ -0,0 +1,11 @@
1
+ import type { LabeledValue, SelectProps } from 'antd/es/select';
2
+ import React from 'react';
3
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
4
+ clientid: string;
5
+ noOwnerContent?: string | undefined;
6
+ initialLabeledValue?: LabeledValue | undefined;
7
+ requiredOwner?: boolean | undefined;
8
+ onChangeData?: ((value: any, record: any) => void) | undefined;
9
+ isFirstLoad?: boolean | undefined;
10
+ } & SelectProps<any, import("antd/es/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
11
+ export default _default;
@@ -0,0 +1,139 @@
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 = ["clientid", "noOwnerContent", "initialLabeledValue", "requiredOwner", "onChange", "onChangeData", "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 { toString } from 'lodash';
17
+ import React, { forwardRef, useCallback, useEffect, useMemo, useState } from 'react';
18
+ import { BiuCustomSelect } from "../..";
19
+ import { GATEWAY_ROUTE_WMS } from "../../../constant";
20
+ import { jsx as _jsx } from "react/jsx-runtime";
21
+ var requestConfig = {
22
+ GatewayRoute: GATEWAY_ROUTE_WMS
23
+ };
24
+ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props, ref) {
25
+ var clientid = props.clientid,
26
+ _props$noOwnerContent = props.noOwnerContent,
27
+ noOwnerContent = _props$noOwnerContent === void 0 ? '请先选择货主' : _props$noOwnerContent,
28
+ initialLabeledValue = props.initialLabeledValue,
29
+ _props$requiredOwner = props.requiredOwner,
30
+ requiredOwner = _props$requiredOwner === void 0 ? true : _props$requiredOwner,
31
+ onChange = props.onChange,
32
+ onChangeData = props.onChangeData,
33
+ value = props.value,
34
+ _props$isFirstLoad = props.isFirstLoad,
35
+ isFirstLoad = _props$isFirstLoad === void 0 ? true : _props$isFirstLoad,
36
+ restProps = _objectWithoutProperties(props, _excluded);
37
+ var _useState = useState([]),
38
+ _useState2 = _slicedToArray(_useState, 2),
39
+ boxTypeList = _useState2[0],
40
+ setBoxTypeList = _useState2[1];
41
+ var _useState3 = useState(),
42
+ _useState4 = _slicedToArray(_useState3, 2),
43
+ notFoundContent = _useState4[0],
44
+ setNotFoundContent = _useState4[1];
45
+ var _useState5 = useState(value),
46
+ _useState6 = _slicedToArray(_useState5, 2),
47
+ newValue = _useState6[0],
48
+ setNewValue = _useState6[1];
49
+ var _useState7 = useState(isFirstLoad),
50
+ _useState8 = _slicedToArray(_useState7, 2),
51
+ isFirstLoadSearch = _useState8[0],
52
+ setIsFirstLoadSearch = _useState8[1];
53
+
54
+ // 搜索
55
+ var _useState9 = useState(),
56
+ _useState10 = _slicedToArray(_useState9, 2),
57
+ remoteSearchCValue = _useState10[0],
58
+ setRemoteSearchCValue = _useState10[1];
59
+ var handleSearch = useCallback(function (svalue) {
60
+ if (!clientid && requiredOwner === true) return;
61
+ setNotFoundContent(undefined);
62
+ setRemoteSearchCValue(svalue);
63
+ setIsFirstLoadSearch(true);
64
+ }, [clientid, requiredOwner]);
65
+ useEffect(function () {
66
+ if (!clientid && requiredOwner === true) {
67
+ setNotFoundContent(noOwnerContent);
68
+ setBoxTypeList([]);
69
+ return;
70
+ }
71
+ if (initialLabeledValue && initialLabeledValue.key) {
72
+ setNotFoundContent(undefined);
73
+ if (restProps.labelInValue) {
74
+ setNewValue(initialLabeledValue);
75
+ } else {
76
+ setNewValue("".concat(initialLabeledValue.key));
77
+ }
78
+ setBoxTypeList([{
79
+ id: toString(initialLabeledValue.key),
80
+ carriername: initialLabeledValue.label
81
+ }]);
82
+ } else {
83
+ setNotFoundContent('请输入编码或名称搜索');
84
+ }
85
+ }, [clientid, initialLabeledValue, noOwnerContent, requiredOwner, restProps.labelInValue]);
86
+ useEffect(function () {
87
+ if (restProps.labelInValue) {
88
+ setNewValue(value);
89
+ } else {
90
+ setNewValue(value ? "".concat(value) : '');
91
+ }
92
+ }, [restProps.labelInValue, value]);
93
+ var requestParams = useMemo(function () {
94
+ return {
95
+ page: 1,
96
+ size: 20,
97
+ isEnable: 0,
98
+ ownerIdORNull: clientid,
99
+ remoteSearchCValue: remoteSearchCValue,
100
+ isFirstLoadSearch: isFirstLoadSearch
101
+ };
102
+ }, [clientid, remoteSearchCValue, isFirstLoadSearch]);
103
+ var handleOnChange = useCallback(function (_value, option) {
104
+ if (onChange) onChange(_value, option);
105
+ if (onChangeData) {
106
+ onChangeData(_value, boxTypeList.filter(function (item) {
107
+ return "".concat(item.id) === "".concat(_value);
108
+ })[0]);
109
+ }
110
+ }, [boxTypeList, onChange, onChangeData]);
111
+ var isOnReady = useCallback(function (params) {
112
+ if (!params.ownerIdORNull && requiredOwner === true) return false;
113
+ if (!params.isFirstLoadSearch) return false;
114
+ return true;
115
+ }, [requiredOwner]);
116
+ var onFetchData = useCallback(function (res) {
117
+ setBoxTypeList(res.rows);
118
+ return res.rows.map(function (item) {
119
+ return {
120
+ label: item.boxName,
121
+ value: "".concat(item.id)
122
+ };
123
+ });
124
+ }, []);
125
+ return /*#__PURE__*/_jsx(BiuCustomSelect, _objectSpread({
126
+ ref: ref,
127
+ requestName: "wms.basedata.BoxTypeQuery",
128
+ requestParams: requestParams,
129
+ onReady: isOnReady,
130
+ requestConfig: requestConfig,
131
+ allowClear: true,
132
+ notFoundContent: notFoundContent,
133
+ filterOption: false,
134
+ onSearch: handleSearch,
135
+ value: newValue,
136
+ onChange: handleOnChange,
137
+ onFetchData: onFetchData
138
+ }, restProps), "boxTypeSelect");
139
+ }));
@@ -0,0 +1,55 @@
1
+ import type { SelectProps } from 'antd';
2
+ import React from 'react';
3
+ import type { RequestConfig } from "../../../package";
4
+ type ValueType = string | string[] | number | number[];
5
+ export type SelectOption = {
6
+ /** id */
7
+ id: number;
8
+ /** 商圈名称 */
9
+ busDistrictName: string;
10
+ /** 所属机构 */
11
+ companyName: string;
12
+ /** 岗位 */
13
+ postName: string;
14
+ /** 商圈编码 */
15
+ busDistrictCode: number;
16
+ };
17
+ /**
18
+ * 下拉框props
19
+ * @param requestName 请求接口名字
20
+ * @param requestParams 请求接口参数, 约束为对象
21
+ * @param value 选中值
22
+ * @param responseFun 接口请求完成后调用函数, (接口返回值, 过滤后的结果, 最终select选项) => void
23
+ * @param formatValue 格式化value函数,通常用来转换value类型确保选中
24
+ * @param optionLabel 接口响应结果绑定到Select.Option的显示值, 当传入optionList时此字段无效
25
+ * @param optionValue 接口响应结果绑定到Select.Option的value值, 当传入optionList时此字段无效
26
+ * @param optionList 自定义下拉项,通常用于接口格式不规范
27
+ * @param onChange change事件
28
+ */
29
+ export type CustomSelectProps<T extends Record<string, any>> = {
30
+ requestName?: string;
31
+ requestParams?: T;
32
+ requestConfig?: RequestConfig;
33
+ value?: ValueType;
34
+ responseFun?: (res: any, filterRes?: any, optionList?: SelectOption[]) => void;
35
+ formatValue?: (value: ValueType) => ValueType;
36
+ optionLabel?: string;
37
+ optionValue?: string;
38
+ optionList?: (filterRes?: any) => SelectOption[];
39
+ /**
40
+ * 绑定的值是id还是编码
41
+ */
42
+ valueKey?: 'id' | 'busDistrictCode';
43
+ /**
44
+ * 初始化显示的文本
45
+ */
46
+ defaultLabel?: string | string[];
47
+ ref?: any;
48
+ onChange?: (val: string | number | string[] | number[], options: SelectOption[]) => void;
49
+ /**
50
+ * 值改变时触发
51
+ */
52
+ onChangeData?: (val: string | number | string[] | number[]) => void;
53
+ } & SelectProps<any>;
54
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<CustomSelectProps<Record<string, any>>, "ref"> & React.RefAttributes<unknown>>>;
55
+ export default _default;