@vtx/modals2 5.0.2 → 5.0.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 (485) hide show
  1. package/lib/_components/index.js +21 -0
  2. package/lib/_components/vm-bar-charts/index.js +181 -0
  3. package/lib/_components/vm-calendar/index.js +117 -0
  4. package/lib/_components/vm-calendar/style/index.js +1 -0
  5. package/lib/_components/vm-calendar/style/index.less +139 -0
  6. package/lib/_components/vm-card-statistics/index.js +33 -0
  7. package/lib/_components/vm-card-statistics/index.less +27 -0
  8. package/lib/_components/vm-custom/index.js +25 -0
  9. package/lib/_components/vm-custom/style/index.js +1 -0
  10. package/lib/_components/vm-custom/style/index.less +20 -0
  11. package/lib/_components/vm-empty/assets/no_chart.png +0 -0
  12. package/lib/_components/vm-empty/assets/no_data.png +0 -0
  13. package/lib/_components/vm-empty/assets/no_data_2.png +0 -0
  14. package/lib/_components/vm-empty/assets/no_news.png +0 -0
  15. package/lib/_components/vm-empty/assets/no_permission.png +0 -0
  16. package/lib/_components/vm-empty/assets/no_picture.png +0 -0
  17. package/lib/_components/vm-empty/assets/no_result.png +0 -0
  18. package/lib/_components/vm-empty/assets/no_video.png +0 -0
  19. package/lib/_components/vm-empty/assets/page_error.png +0 -0
  20. package/lib/_components/vm-empty/index.js +83 -0
  21. package/lib/_components/vm-empty/style/index.js +1 -0
  22. package/lib/_components/vm-empty/style/index.less +22 -0
  23. package/lib/_components/vm-extra-tab/index.js +44 -0
  24. package/lib/_components/vm-extra-tab/style/index.js +2 -0
  25. package/lib/_components/vm-extra-tab/style/index.less +43 -0
  26. package/lib/_components/vm-factor/index.js +85 -0
  27. package/lib/_components/vm-factor/style/index.js +2 -0
  28. package/lib/_components/vm-factor/style/index.less +42 -0
  29. package/lib/_components/vm-factor-list/index.js +29 -0
  30. package/lib/_components/vm-factor-list/index.less +11 -0
  31. package/lib/_components/vm-filter/index.js +148 -0
  32. package/lib/_components/vm-filter/style/index.js +1 -0
  33. package/lib/_components/vm-filter/style/index.less +237 -0
  34. package/lib/_components/vm-iframe-modal/index.js +43 -0
  35. package/lib/_components/vm-iframe-modal/index.less +9 -0
  36. package/lib/_components/vm-info-collection/index.js +185 -0
  37. package/lib/_components/vm-info-collection/style/index.js +1 -0
  38. package/lib/_components/vm-info-collection/style/index.less +45 -0
  39. package/lib/_components/vm-line-charts/index.js +151 -0
  40. package/lib/_components/vm-map/index.js +277 -0
  41. package/lib/_components/vm-map/index.less +46 -0
  42. package/lib/_components/vm-pie-charts/index.js +174 -0
  43. package/lib/_components/vm-pie-charts/index.less +26 -0
  44. package/lib/_components/vm-progress/index.js +83 -0
  45. package/lib/_components/vm-progress/style/index.js +1 -0
  46. package/lib/_components/vm-progress/style/index.less +28 -0
  47. package/lib/_components/vm-table/index.js +223 -0
  48. package/lib/_components/vm-table/style/index.js +1 -0
  49. package/lib/_components/vm-table/style/index.less +242 -0
  50. package/lib/_components/vm-tabs/index.js +27 -0
  51. package/lib/_components/vm-tabs/style/index.js +1 -0
  52. package/lib/_components/vm-tabs/style/index.less +22 -0
  53. package/lib/_components/vm-tag/index.js +25 -0
  54. package/lib/_components/vm-tag/style/index.js +1 -0
  55. package/lib/_components/vm-tag/style/index.less +62 -0
  56. package/lib/_components/vm-theme-provider/index.js +18 -0
  57. package/lib/_components/vm-title/index.js +34 -0
  58. package/lib/_components/vm-title/style/index.js +1 -0
  59. package/lib/_components/vm-title/style/index.less +53 -0
  60. package/lib/_components/vm-tooltip/index.js +15 -0
  61. package/lib/_components/vm-tooltip/style/index.js +2 -0
  62. package/lib/_components/vm-tooltip/style/index.less +7 -0
  63. package/lib/_components/vm-video/RealtimeGrid.js +48 -0
  64. package/lib/_components/vm-video/index.js +227 -0
  65. package/lib/_components/vm-video/index.less +168 -0
  66. package/lib/_components/vm-wrapper/imgs/chart.svg +6 -0
  67. package/lib/_components/vm-wrapper/imgs/list.svg +8 -0
  68. package/lib/_components/vm-wrapper/index.js +161 -0
  69. package/lib/_components/vm-wrapper/resource/ICON_CONFIG.js +127 -0
  70. package/lib/_components/vm-wrapper/style/index.js +1 -0
  71. package/lib/_components/vm-wrapper/style/index.less +81 -0
  72. package/lib/_hooks/useGetChannels.js +19 -0
  73. package/lib/_hooks/useGetConfig.js +52 -0
  74. package/lib/_hooks/useSettings.js +31 -0
  75. package/lib/_imgs/block_alarm.png +0 -0
  76. package/lib/_imgs/block_normal.png +0 -0
  77. package/lib/_service/index.js +99 -0
  78. package/lib/_util/http.js +277 -0
  79. package/lib/_util/iconSvgHtml.js +1303 -0
  80. package/lib/_util/index.js +203 -0
  81. package/lib/index.js +12 -0
  82. package/lib/resources/jessibuca/decoder.js +3839 -0
  83. package/lib/resources/jessibuca/decoder.wasm +0 -0
  84. package/lib/resources/jessibuca/jessibuca.js +5350 -0
  85. package/lib/style/index.less +262 -0
  86. package/lib/vtx-area-modal/api.js +165 -0
  87. package/lib/vtx-area-modal/components/BaseInfo/Lcfx.js +103 -0
  88. package/lib/vtx-area-modal/components/BaseInfo/ListZymx.js +108 -0
  89. package/lib/vtx-area-modal/components/BaseInfo/index.js +161 -0
  90. package/lib/vtx-area-modal/components/BaseInfo/index.less +133 -0
  91. package/lib/vtx-area-modal/components/index.js +2 -0
  92. package/lib/vtx-area-modal/imgs/onlinePerson.png +0 -0
  93. package/lib/vtx-area-modal/imgs/onlinePerson_dark.png +0 -0
  94. package/lib/vtx-area-modal/imgs/schdulePerson.png +0 -0
  95. package/lib/vtx-area-modal/imgs/schdulePerson_dark.png +0 -0
  96. package/lib/vtx-area-modal/imgs/todayOnline.png +0 -0
  97. package/lib/vtx-area-modal/imgs/todayOnline_dark.png +0 -0
  98. package/lib/vtx-area-modal/imgs/todayWork.png +0 -0
  99. package/lib/vtx-area-modal/imgs/todayWorkRate.png +0 -0
  100. package/lib/vtx-area-modal/imgs/todayWorkRate_dark.png +0 -0
  101. package/lib/vtx-area-modal/imgs/todayWork_dark.png +0 -0
  102. package/lib/vtx-area-modal/index.js +51 -0
  103. package/lib/vtx-area-modal/style/index.js +1 -0
  104. package/lib/vtx-area-modal/style/index.less +1 -0
  105. package/lib/vtx-base-modal/Header/assets/dark_star.png +0 -0
  106. package/lib/vtx-base-modal/Header/assets/light_star.png +0 -0
  107. package/lib/vtx-base-modal/Header/index.js +149 -0
  108. package/lib/vtx-base-modal/Header/index.less +98 -0
  109. package/lib/vtx-base-modal/Tabs/index.js +83 -0
  110. package/lib/vtx-base-modal/Tabs/index.less +31 -0
  111. package/lib/vtx-base-modal/index.js +202 -0
  112. package/lib/vtx-base-modal/service.js +39 -0
  113. package/lib/vtx-base-modal/style/index.js +1 -0
  114. package/lib/vtx-base-modal/style/index.less +78 -0
  115. package/lib/vtx-car-modal/api.js +1019 -0
  116. package/lib/vtx-car-modal/components/Info/index.js +110 -0
  117. package/lib/vtx-car-modal/components/Info/index.less +6 -0
  118. package/lib/vtx-car-modal/content/Cc/AlarmInfo/List.js +111 -0
  119. package/lib/vtx-car-modal/content/Cc/AlarmInfo/StaticInfo.js +77 -0
  120. package/lib/vtx-car-modal/content/Cc/AlarmInfo/index.js +69 -0
  121. package/lib/vtx-car-modal/content/Cc/BaseInfo/index.js +179 -0
  122. package/lib/vtx-car-modal/content/Cc/BaseInfo/index.less +24 -0
  123. package/lib/vtx-car-modal/content/Cc/OrderInfo/Detail.js +187 -0
  124. package/lib/vtx-car-modal/content/Cc/OrderInfo/index.js +200 -0
  125. package/lib/vtx-car-modal/content/Cc/OrderInfo/index.less +13 -0
  126. package/lib/vtx-car-modal/content/Cc/StaticInfo/index.js +395 -0
  127. package/lib/vtx-car-modal/content/Cc/WorkRecord/Detail.js +237 -0
  128. package/lib/vtx-car-modal/content/Cc/WorkRecord/Summary.js +139 -0
  129. package/lib/vtx-car-modal/content/Cc/WorkRecord/index.js +69 -0
  130. package/lib/vtx-car-modal/content/Cc/index.js +12 -0
  131. package/lib/vtx-car-modal/content/Common/AlarmInfo/List.js +160 -0
  132. package/lib/vtx-car-modal/content/Common/AlarmInfo/StaticInfo.js +76 -0
  133. package/lib/vtx-car-modal/content/Common/AlarmInfo/index.js +71 -0
  134. package/lib/vtx-car-modal/content/Common/BaseInfo/index.js +191 -0
  135. package/lib/vtx-car-modal/content/Common/DetailInfo/index.js +173 -0
  136. package/lib/vtx-car-modal/content/Common/DeviceInfo/index.js +92 -0
  137. package/lib/vtx-car-modal/content/Common/Maintenance/index.js +137 -0
  138. package/lib/vtx-car-modal/content/Common/Maintenance/index.less +16 -0
  139. package/lib/vtx-car-modal/content/Common/OilConsumption/List.js +94 -0
  140. package/lib/vtx-car-modal/content/Common/OilConsumption/index.js +151 -0
  141. package/lib/vtx-car-modal/content/Common/OilConsumption/index.less +6 -0
  142. package/lib/vtx-car-modal/content/Common/StaticInfo/index.js +231 -0
  143. package/lib/vtx-car-modal/content/Common/WaterConsumption/index.js +196 -0
  144. package/lib/vtx-car-modal/content/Common/WaterConsumption/index.less +6 -0
  145. package/lib/vtx-car-modal/content/Common/index.js +18 -0
  146. package/lib/vtx-car-modal/content/JXH/AlarmInfo/List.js +122 -0
  147. package/lib/vtx-car-modal/content/JXH/AlarmInfo/StaticInfo.js +79 -0
  148. package/lib/vtx-car-modal/content/JXH/AlarmInfo/index.js +71 -0
  149. package/lib/vtx-car-modal/content/JXH/BaseInfo/index.js +161 -0
  150. package/lib/vtx-car-modal/content/JXH/StaticInfo/index.js +307 -0
  151. package/lib/vtx-car-modal/content/JXH/WorkRecord/index.js +327 -0
  152. package/lib/vtx-car-modal/content/JXH/index.js +10 -0
  153. package/lib/vtx-car-modal/content/Ljsy/AlarmInfo/List.js +105 -0
  154. package/lib/vtx-car-modal/content/Ljsy/AlarmInfo/StaticInfo.js +78 -0
  155. package/lib/vtx-car-modal/content/Ljsy/AlarmInfo/index.js +71 -0
  156. package/lib/vtx-car-modal/content/Ljsy/BaseInfo/index.js +358 -0
  157. package/lib/vtx-car-modal/content/Ljsy/BaseInfo/index.less +24 -0
  158. package/lib/vtx-car-modal/content/Ljsy/StaticInfo/index.js +405 -0
  159. package/lib/vtx-car-modal/content/Ljsy/WorkRecord/Detail.js +128 -0
  160. package/lib/vtx-car-modal/content/Ljsy/WorkRecord/Summary.js +139 -0
  161. package/lib/vtx-car-modal/content/Ljsy/WorkRecord/index.js +69 -0
  162. package/lib/vtx-car-modal/content/Ljsy/index.js +10 -0
  163. package/lib/vtx-car-modal/content/Ljzy/BaseInfo/index.js +205 -0
  164. package/lib/vtx-car-modal/content/Ljzy/BaseInfo/index.less +24 -0
  165. package/lib/vtx-car-modal/content/Ljzy/StaticInfo/index.js +193 -0
  166. package/lib/vtx-car-modal/content/Ljzy/WorkRecord/Detail.js +122 -0
  167. package/lib/vtx-car-modal/content/Ljzy/WorkRecord/Summary.js +109 -0
  168. package/lib/vtx-car-modal/content/Ljzy/WorkRecord/index.js +69 -0
  169. package/lib/vtx-car-modal/content/Ljzy/index.js +8 -0
  170. package/lib/vtx-car-modal/content/index.js +6 -0
  171. package/lib/vtx-car-modal/imgs/calendar/alarm.png +0 -0
  172. package/lib/vtx-car-modal/imgs/calendar/blue_duration.png +0 -0
  173. package/lib/vtx-car-modal/imgs/calendar/blue_mileage.png +0 -0
  174. package/lib/vtx-car-modal/imgs/calendar/car_num.png +0 -0
  175. package/lib/vtx-car-modal/imgs/calendar/cyan_duration.png +0 -0
  176. package/lib/vtx-car-modal/imgs/calendar/dark_alarm.png +0 -0
  177. package/lib/vtx-car-modal/imgs/calendar/dark_car_num.png +0 -0
  178. package/lib/vtx-car-modal/imgs/calendar/dark_duration.png +0 -0
  179. package/lib/vtx-car-modal/imgs/calendar/dark_green_mileage.png +0 -0
  180. package/lib/vtx-car-modal/imgs/calendar/dark_jcl.png +0 -0
  181. package/lib/vtx-car-modal/imgs/calendar/dark_mileage.png +0 -0
  182. package/lib/vtx-car-modal/imgs/calendar/dark_point.png +0 -0
  183. package/lib/vtx-car-modal/imgs/calendar/duration.png +0 -0
  184. package/lib/vtx-car-modal/imgs/calendar/fsdf/durationqq.png +0 -0
  185. package/lib/vtx-car-modal/imgs/calendar/green_mileage.png +0 -0
  186. package/lib/vtx-car-modal/imgs/calendar/jcl.png +0 -0
  187. package/lib/vtx-car-modal/imgs/calendar/mileage.png +0 -0
  188. package/lib/vtx-car-modal/imgs/calendar/point.png +0 -0
  189. package/lib/vtx-car-modal/imgs/dark_point.png +0 -0
  190. package/lib/vtx-car-modal/imgs/dark_trash.png +0 -0
  191. package/lib/vtx-car-modal/imgs/dark_trash_bg.png +0 -0
  192. package/lib/vtx-car-modal/imgs/dark_unplanned_point.png +0 -0
  193. package/lib/vtx-car-modal/imgs/dark_weight.png +0 -0
  194. package/lib/vtx-car-modal/imgs/dark_weight_bg.png +0 -0
  195. package/lib/vtx-car-modal/imgs/dark_ws_point.png +0 -0
  196. package/lib/vtx-car-modal/imgs/dark_ys_point.png +0 -0
  197. package/lib/vtx-car-modal/imgs/factor/car_num.png +0 -0
  198. package/lib/vtx-car-modal/imgs/factor/dark_car_num.png +0 -0
  199. package/lib/vtx-car-modal/imgs/factor/dark_duration.png +0 -0
  200. package/lib/vtx-car-modal/imgs/factor/dark_jcl.png +0 -0
  201. package/lib/vtx-car-modal/imgs/factor/dark_mileage.png +0 -0
  202. package/lib/vtx-car-modal/imgs/factor/dark_oil.png +0 -0
  203. package/lib/vtx-car-modal/imgs/factor/dark_percent.png +0 -0
  204. package/lib/vtx-car-modal/imgs/factor/dark_point.png +0 -0
  205. package/lib/vtx-car-modal/imgs/factor/dark_run.png +0 -0
  206. package/lib/vtx-car-modal/imgs/factor/dark_speed.png +0 -0
  207. package/lib/vtx-car-modal/imgs/factor/dark_trash.png +0 -0
  208. package/lib/vtx-car-modal/imgs/factor/dark_water.png +0 -0
  209. package/lib/vtx-car-modal/imgs/factor/dark_weight.png +0 -0
  210. package/lib/vtx-car-modal/imgs/factor/dark_ys_point.png +0 -0
  211. package/lib/vtx-car-modal/imgs/factor/duration.png +0 -0
  212. package/lib/vtx-car-modal/imgs/factor/jcl.png +0 -0
  213. package/lib/vtx-car-modal/imgs/factor/mileage.png +0 -0
  214. package/lib/vtx-car-modal/imgs/factor/oil.png +0 -0
  215. package/lib/vtx-car-modal/imgs/factor/percent.png +0 -0
  216. package/lib/vtx-car-modal/imgs/factor/point.png +0 -0
  217. package/lib/vtx-car-modal/imgs/factor/run.png +0 -0
  218. package/lib/vtx-car-modal/imgs/factor/speed.png +0 -0
  219. package/lib/vtx-car-modal/imgs/factor/trash.png +0 -0
  220. package/lib/vtx-car-modal/imgs/factor/water.png +0 -0
  221. package/lib/vtx-car-modal/imgs/factor/weight.png +0 -0
  222. package/lib/vtx-car-modal/imgs/factor/ys_point.png +0 -0
  223. package/lib/vtx-car-modal/imgs/point.png +0 -0
  224. package/lib/vtx-car-modal/imgs/trash.png +0 -0
  225. package/lib/vtx-car-modal/imgs/trash_bg.png +0 -0
  226. package/lib/vtx-car-modal/imgs/unplanned_point.png +0 -0
  227. package/lib/vtx-car-modal/imgs/warn.png +0 -0
  228. package/lib/vtx-car-modal/imgs/weight.png +0 -0
  229. package/lib/vtx-car-modal/imgs/weight_bg.png +0 -0
  230. package/lib/vtx-car-modal/imgs/ws_point.png +0 -0
  231. package/lib/vtx-car-modal/imgs/ys_point.png +0 -0
  232. package/lib/vtx-car-modal/index.js +258 -0
  233. package/lib/vtx-car-modal/style/index.js +3 -0
  234. package/lib/vtx-car-modal/style/index.less +35 -0
  235. package/lib/vtx-cp-modal/api.js +357 -0
  236. package/lib/vtx-cp-modal/components/AlarmInfo/AlarmRecord.js +172 -0
  237. package/lib/vtx-cp-modal/components/AlarmInfo/MonthTrend.js +39 -0
  238. package/lib/vtx-cp-modal/components/AlarmInfo/Summary.js +84 -0
  239. package/lib/vtx-cp-modal/components/AlarmInfo/index.js +41 -0
  240. package/lib/vtx-cp-modal/components/AlarmInfo/index.less +34 -0
  241. package/lib/vtx-cp-modal/components/BaseInfo/CarWork.js +116 -0
  242. package/lib/vtx-cp-modal/components/BaseInfo/Rules.js +72 -0
  243. package/lib/vtx-cp-modal/components/BaseInfo/TodayWork.js +154 -0
  244. package/lib/vtx-cp-modal/components/BaseInfo/index.js +96 -0
  245. package/lib/vtx-cp-modal/components/BaseInfo/index.less +140 -0
  246. package/lib/vtx-cp-modal/components/ExeceptionInfo/AlarmRecord.js +200 -0
  247. package/lib/vtx-cp-modal/components/ExeceptionInfo/MonthTrend.js +35 -0
  248. package/lib/vtx-cp-modal/components/ExeceptionInfo/Summary.js +84 -0
  249. package/lib/vtx-cp-modal/components/ExeceptionInfo/index.js +41 -0
  250. package/lib/vtx-cp-modal/components/SyInfo/Ljcsl.js +62 -0
  251. package/lib/vtx-cp-modal/components/SyInfo/index.js +306 -0
  252. package/lib/vtx-cp-modal/components/SyInfo/index.less +18 -0
  253. package/lib/vtx-cp-modal/components/index.js +5 -0
  254. package/lib/vtx-cp-modal/imgs/alarm.png +0 -0
  255. package/lib/vtx-cp-modal/imgs/allRate.png +0 -0
  256. package/lib/vtx-cp-modal/imgs/allRate_dark.png +0 -0
  257. package/lib/vtx-cp-modal/imgs/bucket.png +0 -0
  258. package/lib/vtx-cp-modal/imgs/bucket_dark.png +0 -0
  259. package/lib/vtx-cp-modal/imgs/collect.png +0 -0
  260. package/lib/vtx-cp-modal/imgs/collect_dark.png +0 -0
  261. package/lib/vtx-cp-modal/imgs/corner_cy.png +0 -0
  262. package/lib/vtx-cp-modal/imgs/corner_khs.png +0 -0
  263. package/lib/vtx-cp-modal/imgs/corner_qt.png +0 -0
  264. package/lib/vtx-cp-modal/imgs/corner_yh.png +0 -0
  265. package/lib/vtx-cp-modal/imgs/cy.png +0 -0
  266. package/lib/vtx-cp-modal/imgs/default.png +0 -0
  267. package/lib/vtx-cp-modal/imgs/jhsj.png +0 -0
  268. package/lib/vtx-cp-modal/imgs/jhsj_light.png +0 -0
  269. package/lib/vtx-cp-modal/imgs/khs.png +0 -0
  270. package/lib/vtx-cp-modal/imgs/plan.png +0 -0
  271. package/lib/vtx-cp-modal/imgs/plan_dark.png +0 -0
  272. package/lib/vtx-cp-modal/imgs/qt.png +0 -0
  273. package/lib/vtx-cp-modal/imgs/sjl.png +0 -0
  274. package/lib/vtx-cp-modal/imgs/sjl_light.png +0 -0
  275. package/lib/vtx-cp-modal/imgs/sjsj.png +0 -0
  276. package/lib/vtx-cp-modal/imgs/sjsj_light.png +0 -0
  277. package/lib/vtx-cp-modal/imgs/sjts.png +0 -0
  278. package/lib/vtx-cp-modal/imgs/sjts_light.png +0 -0
  279. package/lib/vtx-cp-modal/imgs/sjzl.png +0 -0
  280. package/lib/vtx-cp-modal/imgs/sjzl_light.png +0 -0
  281. package/lib/vtx-cp-modal/imgs/track.png +0 -0
  282. package/lib/vtx-cp-modal/imgs/weight.png +0 -0
  283. package/lib/vtx-cp-modal/imgs/weight_dark.png +0 -0
  284. package/lib/vtx-cp-modal/imgs/yh.png +0 -0
  285. package/lib/vtx-cp-modal/index.js +121 -0
  286. package/lib/vtx-cp-modal/style/index.js +3 -0
  287. package/lib/vtx-cp-modal/style/index.less +1 -0
  288. package/lib/vtx-default-modal/api.js +170 -0
  289. package/lib/vtx-default-modal/components/BaseInfo/index.js +109 -0
  290. package/lib/vtx-default-modal/components/BaseInfo/index.less +26 -0
  291. package/lib/vtx-default-modal/components/index.js +2 -0
  292. package/lib/vtx-default-modal/index.js +126 -0
  293. package/lib/vtx-default-modal/style/index.js +4 -0
  294. package/lib/vtx-default-modal/style/index.less +1 -0
  295. package/lib/vtx-df-modal/api.js +267 -0
  296. package/lib/vtx-df-modal/components/BaseInfo/Jcqsfx.js +62 -0
  297. package/lib/vtx-df-modal/components/BaseInfo/Jczbqs.js +96 -0
  298. package/lib/vtx-df-modal/components/BaseInfo/Qyjcl.js +43 -0
  299. package/lib/vtx-df-modal/components/BaseInfo/RealtimeMonitor.js +146 -0
  300. package/lib/vtx-df-modal/components/BaseInfo/Situation.js +47 -0
  301. package/lib/vtx-df-modal/components/BaseInfo/index.js +140 -0
  302. package/lib/vtx-df-modal/components/BaseInfo/index.less +161 -0
  303. package/lib/vtx-df-modal/components/Calendar/index.js +142 -0
  304. package/lib/vtx-df-modal/components/Calendar/index.less +81 -0
  305. package/lib/vtx-df-modal/components/Metering/ChartJccc.js +65 -0
  306. package/lib/vtx-df-modal/components/Metering/ChartJcqs.js +77 -0
  307. package/lib/vtx-df-modal/components/Metering/List.js +125 -0
  308. package/lib/vtx-df-modal/components/Metering/index.js +187 -0
  309. package/lib/vtx-df-modal/components/Metering/index.less +68 -0
  310. package/lib/vtx-df-modal/components/WorkCondition/Monitor.js +179 -0
  311. package/lib/vtx-df-modal/components/WorkCondition/Table.js +84 -0
  312. package/lib/vtx-df-modal/components/WorkCondition/index.js +167 -0
  313. package/lib/vtx-df-modal/components/WorkCondition/index.less +113 -0
  314. package/lib/vtx-df-modal/components/index.js +5 -0
  315. package/lib/vtx-df-modal/imgs/alarm.png +0 -0
  316. package/lib/vtx-df-modal/imgs/alarm_light.png +0 -0
  317. package/lib/vtx-df-modal/imgs/c_car.png +0 -0
  318. package/lib/vtx-df-modal/imgs/c_jcl.png +0 -0
  319. package/lib/vtx-df-modal/imgs/down.png +0 -0
  320. package/lib/vtx-df-modal/imgs/jccc.png +0 -0
  321. package/lib/vtx-df-modal/imgs/jccc_dark.png +0 -0
  322. package/lib/vtx-df-modal/imgs/jcl.png +0 -0
  323. package/lib/vtx-df-modal/imgs/jcl_dark.png +0 -0
  324. package/lib/vtx-df-modal/imgs/normal.png +0 -0
  325. package/lib/vtx-df-modal/imgs/normal_light.png +0 -0
  326. package/lib/vtx-df-modal/imgs/rjjcl.svg +55 -0
  327. package/lib/vtx-df-modal/imgs/rjjcl_dark.svg +94 -0
  328. package/lib/vtx-df-modal/imgs/situation_parent.png +0 -0
  329. package/lib/vtx-df-modal/imgs/situation_parent_bg.png +0 -0
  330. package/lib/vtx-df-modal/imgs/sjnl.svg +39 -0
  331. package/lib/vtx-df-modal/imgs/sjnl_dark.svg +78 -0
  332. package/lib/vtx-df-modal/imgs/tab_more.png +0 -0
  333. package/lib/vtx-df-modal/imgs/tab_more_light.png +0 -0
  334. package/lib/vtx-df-modal/imgs/up.png +0 -0
  335. package/lib/vtx-df-modal/imgs/zjccc.svg +44 -0
  336. package/lib/vtx-df-modal/imgs/zjccc_dark.svg +84 -0
  337. package/lib/vtx-df-modal/imgs/zjcl.svg +55 -0
  338. package/lib/vtx-df-modal/imgs/zjcl_dark.svg +94 -0
  339. package/lib/vtx-df-modal/index.js +135 -0
  340. package/lib/vtx-df-modal/style/index.js +4 -0
  341. package/lib/vtx-df-modal/style/index.less +1 -0
  342. package/lib/vtx-qyry-modal/api.js +129 -0
  343. package/lib/vtx-qyry-modal/index.js +119 -0
  344. package/lib/vtx-qyry-modal/style/index.js +1 -0
  345. package/lib/vtx-road-modal/api.js +219 -0
  346. package/lib/vtx-road-modal/components/BaseInfo/Rules.js +48 -0
  347. package/lib/vtx-road-modal/components/BaseInfo/Work.js +322 -0
  348. package/lib/vtx-road-modal/components/BaseInfo/index.js +91 -0
  349. package/lib/vtx-road-modal/components/BaseInfo/index.less +218 -0
  350. package/lib/vtx-road-modal/components/Calendar/index.js +155 -0
  351. package/lib/vtx-road-modal/components/Statistical/index.js +244 -0
  352. package/lib/vtx-road-modal/components/Statistical/index.less +32 -0
  353. package/lib/vtx-road-modal/components/index.js +4 -0
  354. package/lib/vtx-road-modal/imgs/calendar/dark_green_mileage.png +0 -0
  355. package/lib/vtx-road-modal/imgs/calendar/dark_mileage.png +0 -0
  356. package/lib/vtx-road-modal/imgs/calendar/green_mileage.png +0 -0
  357. package/lib/vtx-road-modal/imgs/calendar/mileage.png +0 -0
  358. package/lib/vtx-road-modal/imgs/dark_real.png +0 -0
  359. package/lib/vtx-road-modal/imgs/dark_valid.png +0 -0
  360. package/lib/vtx-road-modal/imgs/factor/dark_over_rate.png +0 -0
  361. package/lib/vtx-road-modal/imgs/factor/dark_plan_mileage.png +0 -0
  362. package/lib/vtx-road-modal/imgs/factor/dark_valid_mileage.png +0 -0
  363. package/lib/vtx-road-modal/imgs/factor/over_rate.png +0 -0
  364. package/lib/vtx-road-modal/imgs/factor/plan_mileage.png +0 -0
  365. package/lib/vtx-road-modal/imgs/factor/valid_mileage.png +0 -0
  366. package/lib/vtx-road-modal/imgs/real.png +0 -0
  367. package/lib/vtx-road-modal/imgs/valid.png +0 -0
  368. package/lib/vtx-road-modal/index.js +102 -0
  369. package/lib/vtx-road-modal/style/index.js +3 -0
  370. package/lib/vtx-road-modal/style/index.less +26 -0
  371. package/lib/vtx-shxq-modal/api.js +337 -0
  372. package/lib/vtx-shxq-modal/components/AlarmRecord/List.js +115 -0
  373. package/lib/vtx-shxq-modal/components/AlarmRecord/index.js +148 -0
  374. package/lib/vtx-shxq-modal/components/AlarmRecord/index.less +10 -0
  375. package/lib/vtx-shxq-modal/components/BaseInfo/index.js +190 -0
  376. package/lib/vtx-shxq-modal/components/BaseInfo/index.less +25 -0
  377. package/lib/vtx-shxq-modal/components/Tfd/index.js +133 -0
  378. package/lib/vtx-shxq-modal/components/Tfd/index.less +59 -0
  379. package/lib/vtx-shxq-modal/components/ThrowCalendar/Chart.js +64 -0
  380. package/lib/vtx-shxq-modal/components/ThrowCalendar/List.js +72 -0
  381. package/lib/vtx-shxq-modal/components/ThrowCalendar/index.js +158 -0
  382. package/lib/vtx-shxq-modal/components/ThrowCalendar/index.less +24 -0
  383. package/lib/vtx-shxq-modal/components/ThrowRecord/List.js +133 -0
  384. package/lib/vtx-shxq-modal/components/ThrowRecord/index.js +165 -0
  385. package/lib/vtx-shxq-modal/components/ThrowRecord/index.less +10 -0
  386. package/lib/vtx-shxq-modal/components/index.js +6 -0
  387. package/lib/vtx-shxq-modal/imgs/cy.png +0 -0
  388. package/lib/vtx-shxq-modal/imgs/khs.png +0 -0
  389. package/lib/vtx-shxq-modal/imgs/ljht.png +0 -0
  390. package/lib/vtx-shxq-modal/imgs/ljht_dark.png +0 -0
  391. package/lib/vtx-shxq-modal/imgs/qt.png +0 -0
  392. package/lib/vtx-shxq-modal/imgs/tf_cy_dark.png +0 -0
  393. package/lib/vtx-shxq-modal/imgs/tf_khs_dark.png +0 -0
  394. package/lib/vtx-shxq-modal/imgs/tf_qt_dark.png +0 -0
  395. package/lib/vtx-shxq-modal/imgs/tf_total.png +0 -0
  396. package/lib/vtx-shxq-modal/imgs/tf_total_dark.png +0 -0
  397. package/lib/vtx-shxq-modal/imgs/tf_yh_dark.png +0 -0
  398. package/lib/vtx-shxq-modal/imgs/twtf.png +0 -0
  399. package/lib/vtx-shxq-modal/imgs/twtf_dark.png +0 -0
  400. package/lib/vtx-shxq-modal/imgs/wgzs.png +0 -0
  401. package/lib/vtx-shxq-modal/imgs/wgzs_dark.png +0 -0
  402. package/lib/vtx-shxq-modal/imgs/wpd.png +0 -0
  403. package/lib/vtx-shxq-modal/imgs/wpd_dark.png +0 -0
  404. package/lib/vtx-shxq-modal/imgs/wstf.png +0 -0
  405. package/lib/vtx-shxq-modal/imgs/wstf_dark.png +0 -0
  406. package/lib/vtx-shxq-modal/imgs/yh.png +0 -0
  407. package/lib/vtx-shxq-modal/index.js +108 -0
  408. package/lib/vtx-shxq-modal/style/index.js +1 -0
  409. package/lib/vtx-staff-modal/api.js +427 -0
  410. package/lib/vtx-staff-modal/components/AlarmInfo/Charts.js +67 -0
  411. package/lib/vtx-staff-modal/components/AlarmInfo/List.js +111 -0
  412. package/lib/vtx-staff-modal/components/AlarmInfo/index.js +95 -0
  413. package/lib/vtx-staff-modal/components/AlarmInfo/index.less +9 -0
  414. package/lib/vtx-staff-modal/components/Attendance/Exeception.js +58 -0
  415. package/lib/vtx-staff-modal/components/Attendance/Record.js +154 -0
  416. package/lib/vtx-staff-modal/components/Attendance/WorkingHours.js +129 -0
  417. package/lib/vtx-staff-modal/components/Attendance/index.js +49 -0
  418. package/lib/vtx-staff-modal/components/Attendance/index.less +38 -0
  419. package/lib/vtx-staff-modal/components/BaseInfo/ListZymx.js +115 -0
  420. package/lib/vtx-staff-modal/components/BaseInfo/WorkStatic.js +42 -0
  421. package/lib/vtx-staff-modal/components/BaseInfo/WorkStaticDay.js +48 -0
  422. package/lib/vtx-staff-modal/components/BaseInfo/index.js +183 -0
  423. package/lib/vtx-staff-modal/components/BaseInfo/index.less +94 -0
  424. package/lib/vtx-staff-modal/components/Calendar/index.js +237 -0
  425. package/lib/vtx-staff-modal/components/Calendar/index.less +82 -0
  426. package/lib/vtx-staff-modal/components/Equipment/index.js +147 -0
  427. package/lib/vtx-staff-modal/components/Equipment/index.less +29 -0
  428. package/lib/vtx-staff-modal/components/index.js +6 -0
  429. package/lib/vtx-staff-modal/imgs/all_time.png +0 -0
  430. package/lib/vtx-staff-modal/imgs/all_time_dark.png +0 -0
  431. package/lib/vtx-staff-modal/imgs/avg.png +0 -0
  432. package/lib/vtx-staff-modal/imgs/avg_dark.png +0 -0
  433. package/lib/vtx-staff-modal/imgs/mileage.png +0 -0
  434. package/lib/vtx-staff-modal/imgs/mileage_dark.png +0 -0
  435. package/lib/vtx-staff-modal/imgs/online.png +0 -0
  436. package/lib/vtx-staff-modal/imgs/online_dark.png +0 -0
  437. package/lib/vtx-staff-modal/imgs/time_alarm.png +0 -0
  438. package/lib/vtx-staff-modal/imgs/time_alarm_dark.png +0 -0
  439. package/lib/vtx-staff-modal/imgs/time_level.png +0 -0
  440. package/lib/vtx-staff-modal/imgs/time_level_dark.png +0 -0
  441. package/lib/vtx-staff-modal/imgs/time_over.png +0 -0
  442. package/lib/vtx-staff-modal/imgs/time_over_dark.png +0 -0
  443. package/lib/vtx-staff-modal/imgs/time_sum.png +0 -0
  444. package/lib/vtx-staff-modal/imgs/time_sum_dark.png +0 -0
  445. package/lib/vtx-staff-modal/index.js +116 -0
  446. package/lib/vtx-staff-modal/style/index.js +5 -0
  447. package/lib/vtx-staff-modal/style/index.less +1 -0
  448. package/lib/vtx-tfd-modal/api.js +119 -0
  449. package/lib/vtx-tfd-modal/components/BaseInfo/Jczbqs.js +96 -0
  450. package/lib/vtx-tfd-modal/components/BaseInfo/Qyjcl.js +43 -0
  451. package/lib/vtx-tfd-modal/components/BaseInfo/index.js +211 -0
  452. package/lib/vtx-tfd-modal/components/BaseInfo/index.less +85 -0
  453. package/lib/vtx-tfd-modal/components/index.js +2 -0
  454. package/lib/vtx-tfd-modal/imgs/dzc.png +0 -0
  455. package/lib/vtx-tfd-modal/imgs/dzc_light.png +0 -0
  456. package/lib/vtx-tfd-modal/imgs/dzc_light_online.png +0 -0
  457. package/lib/vtx-tfd-modal/imgs/dzc_online.png +0 -0
  458. package/lib/vtx-tfd-modal/imgs/fdj.png +0 -0
  459. package/lib/vtx-tfd-modal/imgs/fdj_light.png +0 -0
  460. package/lib/vtx-tfd-modal/imgs/fdj_light_online.png +0 -0
  461. package/lib/vtx-tfd-modal/imgs/fdj_online.png +0 -0
  462. package/lib/vtx-tfd-modal/imgs/hjtfl.png +0 -0
  463. package/lib/vtx-tfd-modal/imgs/hjtfl_light.png +0 -0
  464. package/lib/vtx-tfd-modal/imgs/jfdhj.png +0 -0
  465. package/lib/vtx-tfd-modal/imgs/jfdhj_light.png +0 -0
  466. package/lib/vtx-tfd-modal/imgs/jfdhj_light_online.png +0 -0
  467. package/lib/vtx-tfd-modal/imgs/jfdhj_online.png +0 -0
  468. package/lib/vtx-tfd-modal/imgs/khsl.png +0 -0
  469. package/lib/vtx-tfd-modal/imgs/khsl_light.png +0 -0
  470. package/lib/vtx-tfd-modal/imgs/sxt.png +0 -0
  471. package/lib/vtx-tfd-modal/imgs/sxt_light.png +0 -0
  472. package/lib/vtx-tfd-modal/imgs/sxt_light_online.png +0 -0
  473. package/lib/vtx-tfd-modal/imgs/sxt_online.png +0 -0
  474. package/lib/vtx-tfd-modal/imgs/xdb.png +0 -0
  475. package/lib/vtx-tfd-modal/imgs/xdb_light.png +0 -0
  476. package/lib/vtx-tfd-modal/imgs/xdb_light_online.png +0 -0
  477. package/lib/vtx-tfd-modal/imgs/xdb_online.png +0 -0
  478. package/lib/vtx-tfd-modal/imgs/zntfj.png +0 -0
  479. package/lib/vtx-tfd-modal/imgs/zntfj_light.png +0 -0
  480. package/lib/vtx-tfd-modal/imgs/zntfj_light_online.png +0 -0
  481. package/lib/vtx-tfd-modal/imgs/zntfj_online.png +0 -0
  482. package/lib/vtx-tfd-modal/index.js +106 -0
  483. package/lib/vtx-tfd-modal/style/index.js +1 -0
  484. package/lib/vtx-zzz-modal/index.js +135 -0
  485. package/package.json +4 -4
@@ -0,0 +1,1019 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
8
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
9
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
10
+ import { getVtxToken } from '@vtx/utils';
11
+ import { useRequest } from 'ahooks';
12
+ import http from "../_util/http";
13
+ var prefix = process.env.PREFIX || '';
14
+ export var BaseService = {
15
+ useBaseInfo: function useBaseInfo(id) {
16
+ var _useRequest = useRequest(function () {
17
+ return http.get("".concat(prefix, "/cloud/gps-reborn/sdk/car/getCarInfoByProductType"), {
18
+ body: {
19
+ carId: id
20
+ }
21
+ });
22
+ }, {
23
+ refreshDeps: [id]
24
+ }),
25
+ baseInfoRes = _useRequest.data;
26
+ var _useRequest2 = useRequest(function () {
27
+ return http.get("".concat(prefix, "/cloud/gps-reborn/car/np/getCarDetailById"), {
28
+ body: {
29
+ id: id
30
+ }
31
+ });
32
+ }, {
33
+ refreshDeps: [id]
34
+ }),
35
+ detailRes = _useRequest2.data;
36
+ var info = (baseInfoRes === null || baseInfoRes === void 0 ? void 0 : baseInfoRes.data) || {};
37
+ var detail = (detailRes === null || detailRes === void 0 ? void 0 : detailRes.data) || {};
38
+ return {
39
+ info: info,
40
+ detail: detail
41
+ };
42
+ },
43
+ useFieldConfig: function useFieldConfig() {
44
+ var _data$data;
45
+ var _useRequest3 = useRequest(function () {
46
+ return http.get("".concat(prefix, "/cloud/gps-reborn/car/dataConfig/list"));
47
+ }),
48
+ data = _useRequest3.data;
49
+ return {
50
+ showFields: (data === null || data === void 0 || (_data$data = data.data) === null || _data$data === void 0 ? void 0 : _data$data.filter(function (ele) {
51
+ return ele.isVisible;
52
+ })) || []
53
+ };
54
+ },
55
+ useDailyCarRun: function useDailyCarRun(id, beginTime, endTime) {
56
+ //今日运行
57
+ var _useRequest4 = useRequest(function () {
58
+ return http.get("".concat(prefix, "/cloud/gps-reborn/report/dailyCarRun/list"), {
59
+ body: {
60
+ carIds: id,
61
+ reportDateStart: beginTime,
62
+ reportDateEnd: endTime
63
+ }
64
+ });
65
+ }, {
66
+ refreshDeps: [id, beginTime, endTime]
67
+ }),
68
+ dailyCarRunRes = _useRequest4.data,
69
+ loading = _useRequest4.loading;
70
+ return {
71
+ dailyCarRunRes: (dailyCarRunRes === null || dailyCarRunRes === void 0 ? void 0 : dailyCarRunRes.data) || [],
72
+ loading: loading
73
+ };
74
+ },
75
+ useServiceInfo: function useServiceInfo(carId) {
76
+ var _useRequest5 = useRequest(function () {
77
+ return http.get("".concat(prefix, "/cloud/jcss-reborn/contract/carHistoryContract"), {
78
+ body: {
79
+ carId: carId
80
+ }
81
+ });
82
+ }),
83
+ data = _useRequest5.data;
84
+ return {
85
+ serviceInfo: data === null || data === void 0 ? void 0 : data.data
86
+ };
87
+ },
88
+ useDeviceInfo: function useDeviceInfo(id) {
89
+ var _useRequest6 = useRequest(function () {
90
+ return http.get("".concat(prefix, "/cloud/gps-reborn/device/list"), {
91
+ body: {
92
+ carId: id,
93
+ mainDevice: true
94
+ }
95
+ });
96
+ }, {
97
+ refreshDeps: [id]
98
+ }),
99
+ data = _useRequest6.data;
100
+ return {
101
+ deviceList: (data === null || data === void 0 ? void 0 : data.data) || []
102
+ };
103
+ },
104
+ useAlarmType: function useAlarmType(carIds, startTime, endTime) {
105
+ var _useRequest7 = useRequest(function () {
106
+ return http.get("".concat(prefix, "/cloud/gps-reborn/alarm/record/statisticsPage"), {
107
+ body: {
108
+ carIds: carIds,
109
+ startTime: startTime,
110
+ endTime: endTime
111
+ }
112
+ });
113
+ }, {
114
+ refreshDeps: [carIds, startTime, endTime]
115
+ }),
116
+ alarmTypesRes = _useRequest7.data;
117
+ return {
118
+ alarmTypes: (alarmTypesRes === null || alarmTypesRes === void 0 ? void 0 : alarmTypesRes.data) || {
119
+ totalCount: 0,
120
+ summary: []
121
+ }
122
+ };
123
+ },
124
+ useAlarmList: function useAlarmList(carCode, alarmStrategyName, startTime, endTime, page, sort, sortField) {
125
+ var _useRequest8 = useRequest(function () {
126
+ return http.get("".concat(prefix, "/cloud/gps-reborn/alarm/record/pageList"), {
127
+ body: {
128
+ carCode: carCode,
129
+ alarmStrategyName: alarmStrategyName,
130
+ startTime: startTime,
131
+ endTime: endTime,
132
+ page: page,
133
+ rows: 10,
134
+ sort: sort,
135
+ sortField: sortField
136
+ }
137
+ });
138
+ }, {
139
+ ready: !!carCode,
140
+ refreshDeps: [carCode, alarmStrategyName, startTime, endTime, page, sort, sortField]
141
+ }),
142
+ recordRes = _useRequest8.data,
143
+ loading = _useRequest8.loading;
144
+ return {
145
+ alarmRecord: (recordRes === null || recordRes === void 0 ? void 0 : recordRes.data) || {},
146
+ loading: loading
147
+ };
148
+ },
149
+ useTodayRun: function useTodayRun(carId, beginTime, endTime) {
150
+ //今日运行
151
+ var _useRequest9 = useRequest(function () {
152
+ return http.get("".concat(prefix, "/cloud/gps-reborn/car/detail/alarmSumWithDetail"), {
153
+ body: {
154
+ carId: carId,
155
+ beginTime: "".concat(beginTime, " 00:00:00"),
156
+ endTime: "".concat(endTime, " 23:59:59")
157
+ }
158
+ });
159
+ }, {
160
+ refreshDeps: [carId, beginTime, endTime]
161
+ }),
162
+ todayRunRes = _useRequest9.data,
163
+ loading = _useRequest9.loading;
164
+ return {
165
+ todayRunRes: (todayRunRes === null || todayRunRes === void 0 ? void 0 : todayRunRes.data) || {},
166
+ loading: loading
167
+ };
168
+ }
169
+ };
170
+ export var CcService = {
171
+ useTaskInfo: function useTaskInfo(carCode, day) {
172
+ var _useRequest10 = useRequest( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
173
+ var _res$data;
174
+ var res;
175
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
176
+ while (1) switch (_context.prev = _context.next) {
177
+ case 0:
178
+ _context.next = 2;
179
+ return http.get("".concat(prefix, "/cloud/cc-reborn/api/v101/kanban/kanbanTaskDetailList"), {
180
+ body: {
181
+ carCode: carCode,
182
+ taskDay: day,
183
+ size: 5,
184
+ page: 0
185
+ }
186
+ });
187
+ case 2:
188
+ res = _context.sent;
189
+ return _context.abrupt("return", (res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 || (_res$data = _res$data.rows) === null || _res$data === void 0 ? void 0 : _res$data[0]) || {});
190
+ case 4:
191
+ case "end":
192
+ return _context.stop();
193
+ }
194
+ }, _callee);
195
+ })), {
196
+ refreshDeps: [carCode, day],
197
+ ready: !!carCode
198
+ }),
199
+ _useRequest10$data = _useRequest10.data,
200
+ data = _useRequest10$data === void 0 ? {} : _useRequest10$data,
201
+ loading = _useRequest10.loading;
202
+ return {
203
+ taskInfo: data,
204
+ loading: loading
205
+ };
206
+ },
207
+ useTaskDaySummary: function useTaskDaySummary(_ref2) {
208
+ var carId = _ref2.carId,
209
+ startDay = _ref2.startDay,
210
+ endDay = _ref2.endDay;
211
+ var _useRequest11 = useRequest( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
212
+ var res;
213
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
214
+ while (1) switch (_context2.prev = _context2.next) {
215
+ case 0:
216
+ _context2.next = 2;
217
+ return http.get("".concat(prefix, "/cloud/cc-reborn/api/v101/jsc/carTaskDaySummary"), {
218
+ body: {
219
+ carId: carId,
220
+ startDay: startDay,
221
+ endDay: endDay
222
+ }
223
+ });
224
+ case 2:
225
+ res = _context2.sent;
226
+ return _context2.abrupt("return", (res === null || res === void 0 ? void 0 : res.data) || []);
227
+ case 4:
228
+ case "end":
229
+ return _context2.stop();
230
+ }
231
+ }, _callee2);
232
+ })), {
233
+ refreshDeps: [carId, startDay, endDay],
234
+ ready: !!carId
235
+ }),
236
+ _useRequest11$data = _useRequest11.data,
237
+ data = _useRequest11$data === void 0 ? [] : _useRequest11$data,
238
+ loading = _useRequest11.loading;
239
+ return {
240
+ taskDaySummary: data,
241
+ loading: loading
242
+ };
243
+ },
244
+ useGetOrderPage: function useGetOrderPage(carCode, startDay, endDay, page) {
245
+ var _useRequest12 = useRequest( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
246
+ var res;
247
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
248
+ while (1) switch (_context3.prev = _context3.next) {
249
+ case 0:
250
+ _context3.next = 2;
251
+ return http.get("".concat(prefix, "/cloud/cc-reborn/api/v101/draftDisposeUnit/page"), {
252
+ body: {
253
+ carCode: carCode,
254
+ startDay: startDay,
255
+ endDay: endDay,
256
+ size: 10,
257
+ page: page
258
+ }
259
+ });
260
+ case 2:
261
+ res = _context3.sent;
262
+ return _context3.abrupt("return", (res === null || res === void 0 ? void 0 : res.data) || {});
263
+ case 4:
264
+ case "end":
265
+ return _context3.stop();
266
+ }
267
+ }, _callee3);
268
+ })), {
269
+ refreshDeps: [carCode, startDay, endDay, page],
270
+ ready: !!carCode
271
+ }),
272
+ _useRequest12$data = _useRequest12.data,
273
+ data = _useRequest12$data === void 0 ? [] : _useRequest12$data,
274
+ loading = _useRequest12.loading;
275
+ return {
276
+ orderPage: data,
277
+ loading: loading
278
+ };
279
+ },
280
+ useWeightList: function useWeightList(carId, queryStartTime, queryEndTime) {
281
+ var _useRequest13 = useRequest( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
282
+ var res;
283
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
284
+ while (1) switch (_context4.prev = _context4.next) {
285
+ case 0:
286
+ _context4.next = 2;
287
+ return http.get("".concat(prefix, "/cloud/cc-reborn/api/v101/rtCarDataDetail/list"), {
288
+ body: {
289
+ carId: carId,
290
+ queryStartTime: queryStartTime,
291
+ queryEndTime: queryEndTime
292
+ }
293
+ });
294
+ case 2:
295
+ res = _context4.sent;
296
+ return _context4.abrupt("return", (res === null || res === void 0 ? void 0 : res.data) || []);
297
+ case 4:
298
+ case "end":
299
+ return _context4.stop();
300
+ }
301
+ }, _callee4);
302
+ })), {
303
+ refreshDeps: [carId, queryStartTime, queryEndTime],
304
+ ready: !!carId
305
+ }),
306
+ _useRequest13$data = _useRequest13.data,
307
+ data = _useRequest13$data === void 0 ? [] : _useRequest13$data;
308
+ return {
309
+ weightList: data
310
+ };
311
+ },
312
+ useWeightPage: function useWeightPage(_ref6) {
313
+ var carId = _ref6.carId,
314
+ queryStartTime = _ref6.queryStartTime,
315
+ queryEndTime = _ref6.queryEndTime,
316
+ page = _ref6.page;
317
+ var _useRequest14 = useRequest( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
318
+ var res;
319
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
320
+ while (1) switch (_context5.prev = _context5.next) {
321
+ case 0:
322
+ _context5.next = 2;
323
+ return http.get("".concat(prefix, "/cloud/cc-reborn/api/v101/rtCarDataDetail/page"), {
324
+ body: {
325
+ carId: carId,
326
+ queryStartTime: queryStartTime,
327
+ queryEndTime: queryEndTime,
328
+ page: page - 1,
329
+ size: 10
330
+ }
331
+ });
332
+ case 2:
333
+ res = _context5.sent;
334
+ return _context5.abrupt("return", (res === null || res === void 0 ? void 0 : res.data) || {});
335
+ case 4:
336
+ case "end":
337
+ return _context5.stop();
338
+ }
339
+ }, _callee5);
340
+ })), {
341
+ refreshDeps: [carId, queryStartTime, queryEndTime, page],
342
+ ready: !!carId
343
+ }),
344
+ _useRequest14$data = _useRequest14.data,
345
+ data = _useRequest14$data === void 0 ? {} : _useRequest14$data;
346
+ return {
347
+ weightData: data
348
+ };
349
+ },
350
+ useGetAbnormalSummary: function useGetAbnormalSummary(_ref8) {
351
+ var objectId = _ref8.objectId,
352
+ startDay = _ref8.startDay,
353
+ endDay = _ref8.endDay;
354
+ var _useRequest15 = useRequest( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
355
+ var res;
356
+ return _regeneratorRuntime().wrap(function _callee6$(_context6) {
357
+ while (1) switch (_context6.prev = _context6.next) {
358
+ case 0:
359
+ _context6.next = 2;
360
+ return http.get("".concat(prefix, "/cloud/cc-reborn/api/v101/abnormalEventRecord/getAbnormalSummaryNums"), {
361
+ body: {
362
+ objectId: objectId,
363
+ startDay: startDay,
364
+ endDay: endDay,
365
+ summaryType: 'DAY'
366
+ }
367
+ });
368
+ case 2:
369
+ res = _context6.sent;
370
+ return _context6.abrupt("return", (res === null || res === void 0 ? void 0 : res.data) || []);
371
+ case 4:
372
+ case "end":
373
+ return _context6.stop();
374
+ }
375
+ }, _callee6);
376
+ })), {
377
+ refreshDeps: [objectId, startDay, endDay],
378
+ ready: !!objectId
379
+ }),
380
+ _useRequest15$data = _useRequest15.data,
381
+ data = _useRequest15$data === void 0 ? [] : _useRequest15$data,
382
+ loading = _useRequest15.loading;
383
+ return {
384
+ summaryData: data,
385
+ loading: loading
386
+ };
387
+ },
388
+ useAlarmList: function useAlarmList(_ref10) {
389
+ var alarmObjId = _ref10.alarmObjId,
390
+ queryStartTime = _ref10.queryStartTime,
391
+ queryEndTime = _ref10.queryEndTime,
392
+ page = _ref10.page,
393
+ sort = _ref10.sort;
394
+ var _useRequest16 = useRequest(function () {
395
+ return http.get("".concat(prefix, "/cloud/cc-reborn/api/v101/abnormalEventRecord/page"), {
396
+ body: {
397
+ alarmObjId: alarmObjId,
398
+ queryStartTime: queryStartTime,
399
+ queryEndTime: queryEndTime,
400
+ page: page,
401
+ size: 10,
402
+ sort: sort
403
+ }
404
+ });
405
+ }, {
406
+ ready: !!alarmObjId,
407
+ refreshDeps: [alarmObjId, queryStartTime, queryEndTime, page, sort]
408
+ }),
409
+ recordRes = _useRequest16.data,
410
+ loading = _useRequest16.loading;
411
+ return {
412
+ alarmRecord: (recordRes === null || recordRes === void 0 ? void 0 : recordRes.data) || {},
413
+ loading: loading
414
+ };
415
+ }
416
+ };
417
+ export var JxhService = {
418
+ useWorkSummaryJxh: function useWorkSummaryJxh(carId, startDate, endDate) {
419
+ //机械化作业统计
420
+ var _useRequest17 = useRequest(function () {
421
+ return http.get("".concat(prefix, "/cloud/zyqs-zqb/api/kanban/workInfoStatisticsByCarId"), {
422
+ body: {
423
+ carId: carId,
424
+ startDate: startDate,
425
+ endDate: endDate,
426
+ matchHistory: true
427
+ }
428
+ });
429
+ }, {
430
+ refreshDeps: [carId, startDate, endDate]
431
+ }),
432
+ workSummaryJxhRes = _useRequest17.data,
433
+ loading = _useRequest17.loading;
434
+ return {
435
+ workSummaryJxhRes: (workSummaryJxhRes === null || workSummaryJxhRes === void 0 ? void 0 : workSummaryJxhRes.data) || {},
436
+ loading: loading
437
+ };
438
+ },
439
+ useWorkAnaJxh: function useWorkAnaJxh(carId, startDate, endDate) {
440
+ //机械化作业分析
441
+ var _useRequest18 = useRequest(function () {
442
+ return http.get("".concat(prefix, "/cloud/zyqs-zqb/api/kanban/workInfoAnalysisByCarId"), {
443
+ body: {
444
+ carId: carId,
445
+ startDate: startDate,
446
+ endDate: endDate
447
+ }
448
+ });
449
+ }, {
450
+ refreshDeps: [carId, startDate, endDate]
451
+ }),
452
+ workAnaJxhRes = _useRequest18.data,
453
+ loading = _useRequest18.loading;
454
+ return {
455
+ workAnaJxhRes: (workAnaJxhRes === null || workAnaJxhRes === void 0 ? void 0 : workAnaJxhRes.data) || [],
456
+ loading: loading
457
+ };
458
+ },
459
+ useCarWorkDailyReport: function useCarWorkDailyReport(carId, startDate, endDate) {
460
+ //机械化作业类型
461
+ var _useRequest19 = useRequest(function () {
462
+ return http.get("".concat(prefix, "/cloud/zyqs-zqb/api/np/noshift/report/carWorkDailyReport"), {
463
+ body: {
464
+ carIds: carId,
465
+ startDate: startDate,
466
+ endDate: endDate
467
+ }
468
+ });
469
+ }, {
470
+ ready: !!startDate && !!endDate && !!carId,
471
+ refreshDeps: [startDate, endDate, carId]
472
+ }),
473
+ dailyDataRes = _useRequest19.data,
474
+ loading = _useRequest19.loading;
475
+ return {
476
+ dailyData: ((dailyDataRes === null || dailyDataRes === void 0 ? void 0 : dailyDataRes.data) || []).map(function (item) {
477
+ var percent = item.realWorkMileage / item.driveMileage * 100;
478
+ return _objectSpread(_objectSpread({}, item), {}, {
479
+ percent: (percent > 100 ? 100 : percent).toFixed(2)
480
+ });
481
+ }),
482
+ loading: loading
483
+ };
484
+ },
485
+ useRecordJxh: function useRecordJxh(carId, workTypeCodes, startDate, endDate, pageNo, order) {
486
+ //机械化
487
+ var _useRequest20 = useRequest(function () {
488
+ return http.get("".concat(prefix, "/cloud/zyqs-zqb/api/v1.5/noshift/page"), {
489
+ body: {
490
+ carId: carId,
491
+ workTypeCodes: workTypeCodes,
492
+ needFilterWork: true,
493
+ startDate: startDate,
494
+ endDate: endDate,
495
+ pageNo: pageNo,
496
+ pageSize: 10,
497
+ sort: 'workDate',
498
+ order: order,
499
+ processBindRule: true
500
+ }
501
+ });
502
+ }, {
503
+ refreshDeps: [carId, workTypeCodes, startDate, endDate, pageNo, order]
504
+ }),
505
+ recordJxhRes = _useRequest20.data,
506
+ loading = _useRequest20.loading;
507
+ return {
508
+ recordJxhRes: (recordJxhRes === null || recordJxhRes === void 0 ? void 0 : recordJxhRes.data) || [],
509
+ loading: loading
510
+ };
511
+ },
512
+ useWorkTypeJxh: function useWorkTypeJxh() {
513
+ //机械化作业类型
514
+ var _useRequest21 = useRequest(function () {
515
+ return http.get("".concat(prefix, "/cloud/zyqs-zqb/api/v101/common/listWorkType"), {
516
+ body: {
517
+ tenantId: getVtxToken('tenantId')
518
+ }
519
+ });
520
+ }),
521
+ workTypeRes = _useRequest21.data;
522
+ return {
523
+ workTypeRes: (workTypeRes === null || workTypeRes === void 0 ? void 0 : workTypeRes.data) || []
524
+ };
525
+ },
526
+ useJXHAlarmStatistics: function useJXHAlarmStatistics(carIds, startDate, endDate) {
527
+ var _useRequest22 = useRequest(function () {
528
+ return http.get("".concat(prefix, "/cloud/zyqs-zqb/api/noshift/event/statistics"), {
529
+ body: {
530
+ carIds: carIds,
531
+ startDate: startDate,
532
+ endDate: endDate,
533
+ categoryCode: 'Alarm',
534
+ coordType: 'bd09'
535
+ }
536
+ });
537
+ }, {
538
+ refreshDeps: [carIds, startDate, endDate]
539
+ }),
540
+ alarmTypesRes = _useRequest22.data,
541
+ loading = _useRequest22.loading;
542
+ return {
543
+ alarmTypes: (alarmTypesRes === null || alarmTypesRes === void 0 ? void 0 : alarmTypesRes.data) || {},
544
+ loading: loading
545
+ };
546
+ },
547
+ useSingleCarAlarmStatistics: function useSingleCarAlarmStatistics(carId, startTime, endTime) {
548
+ var _useRequest23 = useRequest(function () {
549
+ return http.get("".concat(prefix, "/cloud/zyqs-zqb/api/noshift/event/singleCarAlarmStatistic"), {
550
+ body: {
551
+ carId: carId,
552
+ startTime: startTime,
553
+ endTime: endTime
554
+ }
555
+ });
556
+ }, {
557
+ refreshDeps: [carId, startTime, endTime]
558
+ }),
559
+ alarmTypesRes = _useRequest23.data,
560
+ loading = _useRequest23.loading;
561
+ return {
562
+ alarmStatistic: (alarmTypesRes === null || alarmTypesRes === void 0 ? void 0 : alarmTypesRes.data) || {},
563
+ loading: loading
564
+ };
565
+ },
566
+ useJXHAlarmList: function useJXHAlarmList(carIds, startDate, endDate, page, sort) {
567
+ var _useRequest24 = useRequest(function () {
568
+ return http.get("".concat(prefix, "/cloud/zyqs-zqb/api/noshift/event/page"), {
569
+ body: {
570
+ carIds: carIds,
571
+ startDate: startDate,
572
+ endDate: endDate,
573
+ categoryCode: 'Alarm',
574
+ coordType: 'bd09',
575
+ pageNo: page,
576
+ pageSize: 10,
577
+ sort: sort
578
+ }
579
+ });
580
+ }, {
581
+ refreshDeps: [carIds, startDate, endDate, sort, page]
582
+ }),
583
+ alarmRecordRes = _useRequest24.data,
584
+ loading = _useRequest24.loading;
585
+ return {
586
+ alarmRecord: (alarmRecordRes === null || alarmRecordRes === void 0 ? void 0 : alarmRecordRes.data) || {},
587
+ loading: loading
588
+ };
589
+ }
590
+ };
591
+ export var LjsyService = {
592
+ useConfig: function useConfig() {
593
+ var _useRequest25 = useRequest(function () {
594
+ return http.get("".concat(prefix, "/cloud/ljsy-reborn/api/param/config/webList"));
595
+ }),
596
+ config = _useRequest25.data;
597
+ var paramConfigsList = {};
598
+ if (config !== null && config !== void 0 && config.data) {
599
+ var _config$data;
600
+ (_config$data = config.data) === null || _config$data === void 0 || (_config$data = _config$data.paramConfigs) === null || _config$data === void 0 || _config$data.forEach(function (element) {
601
+ paramConfigsList[element.code] = _objectSpread({}, element);
602
+ });
603
+ }
604
+ return paramConfigsList;
605
+ },
606
+ useSYCarInfo: function useSYCarInfo(id, date) {
607
+ var _useRequest26 = useRequest(function () {
608
+ return http.get("".concat(prefix, "/cloud/ljsy-reborn/api/gis/map/car/info"), {
609
+ body: {
610
+ carId: id,
611
+ day: date
612
+ }
613
+ });
614
+ }, {
615
+ refreshDeps: [id, date]
616
+ }),
617
+ syInfoRes = _useRequest26.data,
618
+ loading = _useRequest26.loading;
619
+ return {
620
+ syInfo: syInfoRes === null || syInfoRes === void 0 ? void 0 : syInfoRes.data,
621
+ loading: loading
622
+ };
623
+ },
624
+ useGetWorkInfo: function useGetWorkInfo(_ref11) {
625
+ var carId = _ref11.carId,
626
+ startDate = _ref11.startDate,
627
+ endDate = _ref11.endDate;
628
+ var _useRequest27 = useRequest(function () {
629
+ return http.get("".concat(prefix, "/cloud/ljsy-reborn/api/kanban/getWorkInfoByCarIdDate"), {
630
+ body: {
631
+ carId: carId,
632
+ startDate: startDate,
633
+ endDate: endDate
634
+ }
635
+ });
636
+ }, {
637
+ refreshDeps: [carId, startDate, endDate]
638
+ }),
639
+ data = _useRequest27.data,
640
+ loading = _useRequest27.loading;
641
+ return {
642
+ taskDaySummary: (data === null || data === void 0 ? void 0 : data.data) || [],
643
+ loading: loading
644
+ };
645
+ },
646
+ useAlarmList: function useAlarmList(_ref12) {
647
+ var carId = _ref12.carId,
648
+ startDate = _ref12.startDate,
649
+ endDate = _ref12.endDate,
650
+ page = _ref12.page,
651
+ sort = _ref12.sort;
652
+ var _useRequest28 = useRequest(function () {
653
+ return http.get("".concat(prefix, "/cloud/ljsy-reborn/api/kanban/getAlarmDetailByCarId"), {
654
+ body: {
655
+ carId: carId,
656
+ startDate: startDate,
657
+ endDate: endDate,
658
+ page: page,
659
+ size: 10,
660
+ sort: sort
661
+ }
662
+ });
663
+ }, {
664
+ ready: !!carId,
665
+ refreshDeps: [carId, startDate, endDate, page, sort]
666
+ }),
667
+ recordRes = _useRequest28.data,
668
+ loading = _useRequest28.loading;
669
+ return {
670
+ alarmRecord: (recordRes === null || recordRes === void 0 ? void 0 : recordRes.data) || {},
671
+ loading: loading
672
+ };
673
+ },
674
+ useGetWorkInfoAnalysis: function useGetWorkInfoAnalysis(_ref13) {
675
+ var carId = _ref13.carId,
676
+ startDate = _ref13.startDate,
677
+ endDate = _ref13.endDate;
678
+ var _useRequest29 = useRequest(function () {
679
+ return http.get("".concat(prefix, "/cloud/ljsy-reborn/api/kanban/getWorkInfoAnalysisByCarId"), {
680
+ body: {
681
+ carId: carId,
682
+ startDate: startDate,
683
+ endDate: endDate
684
+ }
685
+ });
686
+ }, {
687
+ refreshDeps: [carId, startDate, endDate]
688
+ }),
689
+ data = _useRequest29.data,
690
+ loading = _useRequest29.loading;
691
+ return {
692
+ workInfoAnalysis: (data === null || data === void 0 ? void 0 : data.data) || {},
693
+ loading: loading
694
+ };
695
+ },
696
+ useGetAlarmInfo: function useGetAlarmInfo(_ref14) {
697
+ var carId = _ref14.carId,
698
+ startDate = _ref14.startDate,
699
+ endDate = _ref14.endDate;
700
+ var _useRequest30 = useRequest(function () {
701
+ return http.get("".concat(prefix, "/cloud/ljsy-reborn/api/kanban/getAlarmInfoByCarId"), {
702
+ body: {
703
+ carId: carId,
704
+ startDate: startDate,
705
+ endDate: endDate
706
+ }
707
+ });
708
+ }, {
709
+ refreshDeps: [carId, startDate, endDate]
710
+ }),
711
+ data = _useRequest30.data,
712
+ loading = _useRequest30.loading;
713
+ return {
714
+ alarmInfo: (data === null || data === void 0 ? void 0 : data.data) || [],
715
+ loading: loading
716
+ };
717
+ },
718
+ useGetAlarmInfoAnalysis: function useGetAlarmInfoAnalysis(_ref15) {
719
+ var carId = _ref15.carId,
720
+ startDate = _ref15.startDate,
721
+ endDate = _ref15.endDate;
722
+ var _useRequest31 = useRequest(function () {
723
+ return http.get("".concat(prefix, "/cloud/ljsy-reborn/api/kanban/getAlarmInfoAnalysisByCarId"), {
724
+ body: {
725
+ carId: carId,
726
+ startDate: startDate,
727
+ endDate: endDate
728
+ }
729
+ });
730
+ }, {
731
+ refreshDeps: [carId, startDate, endDate]
732
+ }),
733
+ data = _useRequest31.data,
734
+ loading = _useRequest31.loading;
735
+ return {
736
+ alarmInfoAnalysis: (data === null || data === void 0 ? void 0 : data.data) || {},
737
+ loading: loading
738
+ };
739
+ },
740
+ useGetWorkDetail: function useGetWorkDetail(_ref16) {
741
+ var carId = _ref16.carId,
742
+ startDate = _ref16.startDate,
743
+ endDate = _ref16.endDate,
744
+ page = _ref16.page,
745
+ sort = _ref16.sort;
746
+ var _useRequest32 = useRequest( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
747
+ var res;
748
+ return _regeneratorRuntime().wrap(function _callee7$(_context7) {
749
+ while (1) switch (_context7.prev = _context7.next) {
750
+ case 0:
751
+ _context7.next = 2;
752
+ return http.get("".concat(prefix, "/cloud/ljsy-reborn/api/kanban/getWorkDetailByCarId"), {
753
+ body: {
754
+ carId: carId,
755
+ startDate: startDate,
756
+ endDate: endDate,
757
+ page: page - 1,
758
+ size: 10,
759
+ sort: sort
760
+ }
761
+ });
762
+ case 2:
763
+ res = _context7.sent;
764
+ return _context7.abrupt("return", (res === null || res === void 0 ? void 0 : res.data) || {});
765
+ case 4:
766
+ case "end":
767
+ return _context7.stop();
768
+ }
769
+ }, _callee7);
770
+ })), {
771
+ refreshDeps: [carId, startDate, endDate, page, sort],
772
+ ready: !!carId
773
+ }),
774
+ _useRequest32$data = _useRequest32.data,
775
+ data = _useRequest32$data === void 0 ? {} : _useRequest32$data;
776
+ return {
777
+ workDetailData: data
778
+ };
779
+ }
780
+ };
781
+ export var LjzyService = {
782
+ useGetCarSumByDate: function useGetCarSumByDate(_ref18) {
783
+ var carCode = _ref18.carCode,
784
+ startDate = _ref18.startDate,
785
+ endDate = _ref18.endDate;
786
+ var _useRequest33 = useRequest(function () {
787
+ return http.get("".concat(prefix, "/cloud/zd/lm/api/cp/dataBoard/getCarSumByDate.smvc"), {
788
+ body: {
789
+ carCode: carCode,
790
+ startDate: startDate,
791
+ endDate: endDate
792
+ }
793
+ });
794
+ }, {
795
+ refreshDeps: [carCode, startDate, endDate],
796
+ ready: !!carCode
797
+ }),
798
+ data = _useRequest33.data,
799
+ loading = _useRequest33.loading;
800
+ return {
801
+ taskDaySummary: (data === null || data === void 0 ? void 0 : data.data) || [],
802
+ loading: loading
803
+ };
804
+ },
805
+ useGetCarSumByDateAndDisposeUnit: function useGetCarSumByDateAndDisposeUnit(_ref19) {
806
+ var carCode = _ref19.carCode,
807
+ startDate = _ref19.startDate,
808
+ endDate = _ref19.endDate;
809
+ var _useRequest34 = useRequest(function () {
810
+ return http.get("".concat(prefix, "/cloud/zd/lm/api/cp/dataBoard/getCarSumByDateAndDisposeUnit.smvc"), {
811
+ body: {
812
+ carCode: carCode,
813
+ startDate: startDate,
814
+ endDate: endDate
815
+ }
816
+ });
817
+ }, {
818
+ refreshDeps: [carCode, startDate, endDate],
819
+ ready: !!carCode
820
+ }),
821
+ data = _useRequest34.data,
822
+ loading = _useRequest34.loading;
823
+ return {
824
+ taskDaySummary: (data === null || data === void 0 ? void 0 : data.data) || [],
825
+ loading: loading
826
+ };
827
+ },
828
+ useGetWorkDetail: function useGetWorkDetail(_ref20) {
829
+ var carNo = _ref20.carNo,
830
+ startTime = _ref20.startTime,
831
+ endTime = _ref20.endTime,
832
+ page = _ref20.page,
833
+ sort = _ref20.sort,
834
+ order = _ref20.order;
835
+ var _useRequest35 = useRequest( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8() {
836
+ var res;
837
+ return _regeneratorRuntime().wrap(function _callee8$(_context8) {
838
+ while (1) switch (_context8.prev = _context8.next) {
839
+ case 0:
840
+ _context8.next = 2;
841
+ return http.get("".concat(prefix, "/cloud/zd/lm/api/cp/zdjgLmWeighData/pageList.smvc"), {
842
+ body: {
843
+ carNo: carNo,
844
+ startTime: startTime,
845
+ endTime: endTime,
846
+ page: page - 1,
847
+ rows: 10,
848
+ sort: sort,
849
+ order: order
850
+ }
851
+ });
852
+ case 2:
853
+ res = _context8.sent;
854
+ return _context8.abrupt("return", (res === null || res === void 0 ? void 0 : res.data) || {});
855
+ case 4:
856
+ case "end":
857
+ return _context8.stop();
858
+ }
859
+ }, _callee8);
860
+ })), {
861
+ refreshDeps: [carNo, startTime, endTime, page, sort, order],
862
+ ready: !!carNo
863
+ }),
864
+ _useRequest35$data = _useRequest35.data,
865
+ data = _useRequest35$data === void 0 ? {} : _useRequest35$data,
866
+ loading = _useRequest35.loading;
867
+ return {
868
+ workDetailData: data,
869
+ loading: loading
870
+ };
871
+ }
872
+ };
873
+
874
+ //油耗
875
+ export var OilService = {
876
+ useHasOil: function useHasOil(carId) {
877
+ var _data$data2;
878
+ var _useRequest36 = useRequest(function () {
879
+ return http.get("".concat(prefix, "/cloud/gps-reborn/car/config/getById"), {
880
+ body: {
881
+ id: carId
882
+ }
883
+ });
884
+ }, {
885
+ refreshDeps: [carId]
886
+ }),
887
+ data = _useRequest36.data;
888
+ return {
889
+ beenOilStatus: data === null || data === void 0 || (_data$data2 = data.data) === null || _data$data2 === void 0 ? void 0 : _data$data2.beenOilStatus
890
+ };
891
+ },
892
+ useOilLine: function useOilLine(carId, startTime, endTime) {
893
+ var _useRequest37 = useRequest(function () {
894
+ return http.get("".concat(prefix, "/cloud/oil-reborn/api/oilUse/oilLine.smvc"), {
895
+ body: {
896
+ carId: carId,
897
+ startTime: startTime,
898
+ endTime: endTime,
899
+ tenantId: getVtxToken('tenantId')
900
+ }
901
+ });
902
+ }, {
903
+ refreshDeps: [carId, startTime, endTime]
904
+ }),
905
+ oilLineRes = _useRequest37.data,
906
+ loading = _useRequest37.loading;
907
+ return {
908
+ oilLineRes: (oilLineRes === null || oilLineRes === void 0 ? void 0 : oilLineRes.data) || [],
909
+ loading: loading
910
+ };
911
+ },
912
+ useSummary: function useSummary(carId, startTime, endTime) {
913
+ var _useRequest38 = useRequest(function () {
914
+ return http.get("".concat(prefix, "/cloud/oil-reborn/api/oilUse/summary.smvc"), {
915
+ body: {
916
+ carId: carId,
917
+ startTime: startTime,
918
+ endTime: endTime,
919
+ tenantId: getVtxToken('tenantId')
920
+ }
921
+ });
922
+ }, {
923
+ refreshDeps: [carId, startTime, endTime]
924
+ }),
925
+ summaryRes = _useRequest38.data;
926
+ return {
927
+ summaryRes: (summaryRes === null || summaryRes === void 0 ? void 0 : summaryRes.data) || []
928
+ };
929
+ },
930
+ useRecord: function useRecord(carId, startTime, endTime, page, sort) {
931
+ var _useRequest39 = useRequest(function () {
932
+ return http.get("".concat(prefix, "/cloud/oil-reborn/api/oilUse/simplePage.smvc"), {
933
+ body: {
934
+ carId: carId,
935
+ startTime: startTime,
936
+ endTime: endTime,
937
+ page: page,
938
+ rows: 10,
939
+ sortKey: 'day',
940
+ sort: sort,
941
+ tenantId: getVtxToken('tenantId')
942
+ }
943
+ });
944
+ }, {
945
+ refreshDeps: [carId, startTime, endTime, page, sort]
946
+ }),
947
+ recordRes = _useRequest39.data;
948
+ return {
949
+ recordRes: (recordRes === null || recordRes === void 0 ? void 0 : recordRes.data) || []
950
+ };
951
+ }
952
+ };
953
+
954
+ //水耗
955
+ export var WaterService = {
956
+ useSummary: function useSummary(carId, startTime, endTime) {
957
+ var _useRequest40 = useRequest(function () {
958
+ return http.get("".concat(prefix, "/cloud/water-reborn/api/v101/water/waterMeasure/summary"), {
959
+ body: {
960
+ hasWaterStatus: true,
961
+ carId: carId,
962
+ startTime: startTime,
963
+ endTime: endTime
964
+ }
965
+ });
966
+ }, {
967
+ refreshDeps: [carId, startTime, endTime]
968
+ }),
969
+ summaryRes = _useRequest40.data;
970
+ return {
971
+ summaryRes: (summaryRes === null || summaryRes === void 0 ? void 0 : summaryRes.data) || []
972
+ };
973
+ },
974
+ useRecord: function useRecord(carId, startDate, endDate) {
975
+ var _useRequest41 = useRequest(function () {
976
+ return http.get("".concat(prefix, "/cloud/water-reborn/api/v101/water/waterMeasure/queryList"), {
977
+ body: {
978
+ hasWaterStatus: true,
979
+ carId: carId,
980
+ startDate: startDate,
981
+ endDate: endDate
982
+ }
983
+ });
984
+ }, {
985
+ refreshDeps: [carId, startDate, endDate]
986
+ }),
987
+ recordRes = _useRequest41.data,
988
+ loading = _useRequest41.loading;
989
+ return {
990
+ recordRes: (recordRes === null || recordRes === void 0 ? void 0 : recordRes.data) || [],
991
+ loading: loading
992
+ };
993
+ }
994
+ };
995
+
996
+ // 维保
997
+ export var MaintenanceService = {
998
+ useMaintenance: function useMaintenance(carId) {
999
+ var _useRequest42 = useRequest(function () {
1000
+ return http.get("".concat(prefix, "/cloud/clwb/api/v101/carComprehensiveBoard/carWbAnalyse"), {
1001
+ body: {
1002
+ carId: carId
1003
+ }
1004
+ });
1005
+ }, {
1006
+ refreshDeps: [carId]
1007
+ }),
1008
+ maintenanceRes = _useRequest42.data;
1009
+ return {
1010
+ maintenanceRes: (maintenanceRes === null || maintenanceRes === void 0 ? void 0 : maintenanceRes.data) || []
1011
+ };
1012
+ }
1013
+ };
1014
+ export var carIdentityMap = new Map([['innerCode', '自编号'], ['carCode', '车牌号'], ['originalDeviceCode', '原始设备编码'], ['carClassName', '车辆类别'], ['carGradeName', '车辆种类'], ['emissionStageName', '排放阶段'], ['licensePlateColorName', '车牌颜色'], ['drivingLicenseCode', '行驶证编号'], ['useUnitName', '使用单位'], ['belongUnitName', '所属单位'], ['manageStaffName', '责任人'], ['divisionName', '行政区划'], ['backupManageStaffName', '后备责任人'], ['contact', '联系人'], ['contactWay', '联系方式'], ['carBrand', '车辆品牌'], ['carType', '车辆型号'], ['procurementDate', '购置时间'], ['useYears', '使用年限'], ['procurementAmt', '购置金额(元)'], ['life', '使用年限(年)'], ['scrapDate', '报废时间'], ['depreciationVal', '已折旧金额(元)'], ['reDepreciationVal', '剩余折旧金额(元)'], ['invoiceCode', '发票编号'], ['certificateCode', '证书编号'], ['certificateKeeper', '证书保管人'], ['identifyCode', '车辆识别代号'], ['engineCode', '发动机号'], ['purchaseApprovalCode', '采购审批单号'], ['orderIndex', '排序号'], ['workTypeName', '作业类型'], ['carStateStr', '生命周期'], ['bidSectionName', '所属标段'], ['photoIds', '车辆照片'],
1015
+ // ['qrCode', '车辆二维码'],
1016
+ ['photoTwoIds', '图片']]);
1017
+ export var carConfigMap = new Map([['carLabel', '车辆厂牌'], ['productionDate', '出厂日期'], ['productionPlace', '出厂地'], ['ownWeight', '自有重量(T)'], ['curbWeight', '整备质量(Kg)'], ['regulationWeight', '核定载质量(Kg)'], ['carUseWayName', '车辆用途'], ['carPropertyName', '车辆性质'], ['carAttrOneName', '车辆属性1'], ['carAttrTwoName', '车辆属性2'], ['regulationPerson', '核定载员(人)'], ['carWorkingWidth', '车辆作业宽度(米)'], ['driveLicensePhotoIds', '行驶证照片']]);
1018
+ export var carAuditMap = new Map([['annualReviewDate', '年审日期'], ['maturityDate', '到期日期'], ['annualAuditFee', '年审费用(元)']]);
1019
+ export var carSYMap = new Map([['matchingMethodStr', '匹配方式'], ['productTypeName', '垃圾类型'], ['collectMethodStr', '收运方式'], ['collectModeName', '收运模式'], ['taskGenerationMethodStr', '任务生成方式']]);