@vtx/modals2 5.0.3 → 5.0.5
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.
- package/lib/_components/index.js +4 -3
- package/lib/_components/vm-bar-charts/index.js +10 -6
- package/lib/_components/vm-calendar/style/index.less +4 -7
- package/lib/_components/vm-card-statistics/index.less +27 -27
- package/lib/_components/vm-extra-tab/style/index.less +6 -3
- package/lib/_components/vm-factor/index.js +10 -5
- package/lib/_components/vm-factor/style/index.less +5 -1
- package/lib/_components/vm-factor-list/index.less +11 -11
- package/lib/_components/vm-filter/style/index.less +2 -1
- package/lib/_components/vm-info-collection/index.js +2 -2
- package/lib/_components/vm-line-charts/index.js +1 -1
- package/lib/_components/vm-map/index.js +5 -5
- package/lib/_components/vm-pie-charts/index.js +9 -5
- package/lib/_components/vm-repair-maintain/RmInfoSummary.js +46 -0
- package/lib/_components/vm-repair-maintain/RmMonthTrend.js +44 -0
- package/lib/_components/vm-repair-maintain/RmRecord.js +157 -0
- package/lib/_components/vm-repair-maintain/RmType.js +32 -0
- package/lib/_components/vm-repair-maintain/api.js +92 -0
- package/lib/_components/vm-repair-maintain/imgs/amount.png +0 -0
- package/lib/_components/vm-repair-maintain/imgs/amount_light.png +0 -0
- package/lib/_components/vm-repair-maintain/imgs/count.png +0 -0
- package/lib/_components/vm-repair-maintain/imgs/count_light.png +0 -0
- package/lib/_components/vm-repair-maintain/index.js +56 -0
- package/lib/_components/vm-repair-maintain/style/index.js +1 -0
- package/lib/_components/vm-repair-maintain/style/index.less +25 -0
- package/lib/_components/vm-table/index.js +7 -4
- package/lib/_components/vm-table/style/index.less +3 -2
- package/lib/_components/vm-tag/style/index.less +10 -0
- package/lib/_components/vm-title/index.js +3 -2
- package/lib/_components/vm-video/HistoryGrid.js +52 -0
- package/lib/_components/vm-video/RealtimeGrid.js +8 -4
- package/lib/_components/vm-video/index.js +298 -112
- package/lib/_components/vm-video/index.less +10 -1
- package/lib/_components/vm-wrapper/index.js +32 -10
- package/lib/_components/vm-wrapper/style/index.less +28 -0
- package/lib/_service/index.js +5 -0
- package/lib/_util/index.js +0 -5
- package/lib/index.js +7 -2
- package/lib/style/index.less +2 -6
- package/lib/vtx-area-modal/components/BaseInfo/ListZymx.js +2 -1
- package/lib/vtx-base-modal/Header/index.js +3 -1
- package/lib/vtx-base-modal/Header/index.less +98 -98
- package/lib/vtx-base-modal/Tabs/index.less +31 -31
- package/lib/vtx-base-modal/index.js +11 -5
- package/lib/vtx-car-modal/api.js +4 -3
- package/lib/vtx-car-modal/components/Info/index.js +2 -1
- package/lib/vtx-car-modal/components/Info/index.less +6 -6
- package/lib/vtx-car-modal/content/Cc/AlarmInfo/StaticInfo.js +0 -1
- package/lib/vtx-car-modal/content/Cc/BaseInfo/index.js +3 -0
- package/lib/vtx-car-modal/content/Cc/WorkRecord/Summary.js +1 -0
- package/lib/vtx-car-modal/content/Common/BaseInfo/index.js +5 -1
- package/lib/vtx-car-modal/content/Common/OilConsumption/index.less +6 -6
- package/lib/vtx-car-modal/content/Common/StaticInfo/index.js +1 -0
- package/lib/vtx-car-modal/content/Common/WaterConsumption/index.js +1 -0
- package/lib/vtx-car-modal/content/Common/WaterConsumption/index.less +6 -6
- package/lib/vtx-car-modal/content/JXH/AlarmInfo/List.js +9 -3
- package/lib/vtx-car-modal/content/JXH/BaseInfo/index.js +134 -103
- package/lib/vtx-car-modal/content/JXH/StaticInfo/index.js +210 -161
- package/lib/vtx-car-modal/content/JXH/WorkRecord/index.js +39 -16
- package/lib/vtx-car-modal/content/Ljsy/BaseInfo/index.js +3 -0
- package/lib/vtx-car-modal/content/Ljsy/WorkRecord/Summary.js +1 -0
- package/lib/vtx-car-modal/content/Ljzy/BaseInfo/index.js +3 -0
- package/lib/vtx-car-modal/content/Ljzy/WorkRecord/Summary.js +1 -0
- package/lib/vtx-car-modal/content/Unmanned/Analysis/index.js +33 -0
- package/lib/vtx-car-modal/content/Unmanned/Calendar/index.js +255 -0
- package/lib/vtx-car-modal/content/Unmanned/Monitor/index.js +75 -0
- package/lib/vtx-car-modal/content/Unmanned/Monitor/index.less +22 -0
- package/lib/vtx-car-modal/content/Unmanned/WorkInfo/index.js +87 -0
- package/lib/vtx-car-modal/content/Unmanned/WorkInfo/index.less +0 -0
- package/lib/vtx-car-modal/content/Unmanned/index.js +10 -0
- package/lib/vtx-car-modal/content/index.js +2 -1
- package/lib/vtx-car-modal/imgs/butter.png +0 -0
- package/lib/vtx-car-modal/imgs/butter_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/clock.png +0 -0
- package/lib/vtx-car-modal/imgs/clock_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/clock_green.png +0 -0
- package/lib/vtx-car-modal/imgs/clock_green_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor_bg.png +0 -0
- package/lib/vtx-car-modal/imgs/track.png +0 -0
- package/lib/vtx-car-modal/imgs/track_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/track_green.png +0 -0
- package/lib/vtx-car-modal/imgs/track_green_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/water.png +0 -0
- package/lib/vtx-car-modal/imgs/water_dark.png +0 -0
- package/lib/vtx-car-modal/index.js +24 -4
- package/lib/vtx-cc-cp-modal/api.js +381 -0
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmRecord.js +120 -0
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmTrend.js +27 -0
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmTypeAnalysis.js +32 -0
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/StaticInfo.js +41 -0
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/index.js +69 -0
- package/lib/vtx-cc-cp-modal/components/BaseInfo/AllWork.js +103 -0
- package/lib/vtx-cc-cp-modal/components/BaseInfo/Info.js +75 -0
- package/lib/vtx-cc-cp-modal/components/BaseInfo/Rules.js +58 -0
- package/lib/vtx-cc-cp-modal/components/BaseInfo/SyRecord.js +142 -0
- package/lib/vtx-cc-cp-modal/components/BaseInfo/index.js +63 -0
- package/lib/vtx-cc-cp-modal/components/BaseInfo/index.less +16 -0
- package/lib/vtx-cc-cp-modal/components/Calendar/index.js +168 -0
- package/lib/vtx-cc-cp-modal/components/Calendar/index.less +93 -0
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionTrend.js +27 -0
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionTypeAnalysis.js +32 -0
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExeceptionRecord.js +118 -0
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/StaticInfo.js +41 -0
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/index.js +69 -0
- package/lib/vtx-cc-cp-modal/components/Restaurant/index.js +111 -0
- package/lib/vtx-cc-cp-modal/components/Restaurant/index.less +3 -0
- package/lib/vtx-cc-cp-modal/components/SyInfo/Ljcsl.js +46 -0
- package/lib/vtx-cc-cp-modal/components/SyInfo/SummaryInfo.js +81 -0
- package/lib/vtx-cc-cp-modal/components/SyInfo/index.js +78 -0
- package/lib/vtx-cc-cp-modal/components/index.js +7 -0
- package/lib/vtx-cc-cp-modal/imgs/rwnsjts.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/rwnsjts_dark.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/rwnsjzl.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/rwnsjzl_dark.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/rwnsscs.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/rwnsscs_dark.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/zsjts.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/zsjts_dark.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/zsjzl.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/zsjzl_dark.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/zsscs.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/zsscs_dark.png +0 -0
- package/lib/vtx-cc-cp-modal/index.js +119 -0
- package/lib/vtx-cc-cp-modal/style/index.js +1 -0
- package/lib/vtx-cc-cp-modal/style/index.less +13 -0
- package/lib/vtx-cc-unit-modal/api.js +361 -0
- package/lib/vtx-cc-unit-modal/components/BaseInfo/CollectRecord.js +69 -0
- package/lib/vtx-cc-unit-modal/components/BaseInfo/DetailList.js +66 -0
- package/lib/vtx-cc-unit-modal/components/BaseInfo/Factory.js +60 -0
- package/lib/vtx-cc-unit-modal/components/BaseInfo/Statistics.js +91 -0
- package/lib/vtx-cc-unit-modal/components/BaseInfo/index.js +118 -0
- package/lib/vtx-cc-unit-modal/components/BaseInfo/index.less +6 -0
- package/lib/vtx-cc-unit-modal/components/CarList/index.js +129 -0
- package/lib/vtx-cc-unit-modal/components/Collection/index.js +95 -0
- package/lib/vtx-cc-unit-modal/components/DetailInfo/index.js +126 -0
- package/lib/vtx-cc-unit-modal/components/Factory/index.js +149 -0
- package/lib/vtx-cc-unit-modal/components/RestaurantList/index.js +127 -0
- package/lib/vtx-cc-unit-modal/components/index.js +7 -0
- package/lib/vtx-cc-unit-modal/imgs/jccc.png +0 -0
- package/lib/vtx-cc-unit-modal/imgs/jccc_dark.png +0 -0
- package/lib/vtx-cc-unit-modal/imgs/jcl.png +0 -0
- package/lib/vtx-cc-unit-modal/imgs/jcl_dark.png +0 -0
- package/lib/vtx-cc-unit-modal/imgs/syts.png +0 -0
- package/lib/vtx-cc-unit-modal/imgs/syts_dark.png +0 -0
- package/lib/vtx-cc-unit-modal/imgs/syzl.png +0 -0
- package/lib/vtx-cc-unit-modal/imgs/syzl_dark.png +0 -0
- package/lib/vtx-cc-unit-modal/index.js +137 -0
- package/lib/vtx-cc-unit-modal/style/index.js +1 -0
- package/lib/vtx-cc-unit-modal/style/index.less +14 -0
- package/lib/vtx-cp-modal/api.js +3 -3
- package/lib/vtx-cp-modal/index.js +4 -1
- package/lib/vtx-default-modal/components/BaseInfo/index.js +3 -2
- package/lib/vtx-default-modal/index.js +10 -8
- package/lib/vtx-device-modal/api.js +531 -0
- package/lib/vtx-device-modal/components/BaseInfo/index.js +140 -0
- package/lib/vtx-device-modal/components/DataAnalysis/AlarmAnalysis.js +279 -0
- package/lib/vtx-device-modal/components/DataAnalysis/MonitorAnalysis.js +610 -0
- package/lib/vtx-device-modal/components/DataAnalysis/TabsList.js +23 -0
- package/lib/vtx-device-modal/components/DataAnalysis/index.js +24 -0
- package/lib/vtx-device-modal/components/DataAnalysis/index.less +66 -0
- package/lib/vtx-device-modal/components/index.js +3 -0
- package/lib/vtx-device-modal/config.js +21 -0
- package/lib/vtx-device-modal/imgs/current.png +0 -0
- package/lib/vtx-device-modal/imgs/current_dark.png +0 -0
- package/lib/vtx-device-modal/imgs/history.png +0 -0
- package/lib/vtx-device-modal/imgs/history_dark.png +0 -0
- package/lib/vtx-device-modal/index.js +96 -0
- package/lib/vtx-device-modal/style/index.js +1 -0
- package/lib/vtx-device-modal/style/index.less +1 -0
- package/lib/vtx-df-modal/index.js +11 -11
- package/lib/vtx-housing-estate-modal/api.js +559 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/Distribute.js +129 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/FSCSFB.js +67 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/FSSD.js +65 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/FSYZQS.js +67 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/GDCLXL.js +109 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/index.js +99 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/index.less +54 -0
- package/lib/vtx-housing-estate-modal/components/OverView/Hot.js +179 -0
- package/lib/vtx-housing-estate-modal/components/OverView/Left.js +85 -0
- package/lib/vtx-housing-estate-modal/components/OverView/Manage.js +172 -0
- package/lib/vtx-housing-estate-modal/components/OverView/RightBottom.js +177 -0
- package/lib/vtx-housing-estate-modal/components/OverView/index.js +56 -0
- package/lib/vtx-housing-estate-modal/components/OverView/index.less +163 -0
- package/lib/vtx-housing-estate-modal/components/TFRD/index.js +133 -0
- package/lib/vtx-housing-estate-modal/components/TFRD/index.less +12 -0
- package/lib/vtx-housing-estate-modal/components/WGGS/Content.js +66 -0
- package/lib/vtx-housing-estate-modal/components/WGGS/index.js +68 -0
- package/lib/vtx-housing-estate-modal/components/WGGS/index.less +49 -0
- package/lib/vtx-housing-estate-modal/components/WGXW/Content.js +119 -0
- package/lib/vtx-housing-estate-modal/components/WGXW/index.js +121 -0
- package/lib/vtx-housing-estate-modal/components/WGXW/index.less +97 -0
- package/lib/vtx-housing-estate-modal/components/index.js +5 -0
- package/lib/vtx-housing-estate-modal/config.js +77 -0
- package/lib/vtx-housing-estate-modal/imgs/avatar.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/avatar_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/ddypz.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/ddypz_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/gzxjcx.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/hjglcx.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/hmd.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/hmd_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/manage_bg.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/manage_bg_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/rank.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/rank_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/tfcs.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/tfcs_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/tfd.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/tfd_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/tfhs.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/tfhs_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/wgmsr.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/wgmsr_light.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/yyxj.png +0 -0
- package/lib/vtx-housing-estate-modal/imgs/yyxj_light.png +0 -0
- package/lib/vtx-housing-estate-modal/index.js +108 -0
- package/lib/vtx-housing-estate-modal/style/index.js +4 -0
- package/lib/vtx-housing-estate-modal/style/index.less +1 -0
- package/lib/vtx-kh-modal/api2.js +178 -0
- package/lib/vtx-kh-modal/components/BaseInfo/index.js +197 -0
- package/lib/vtx-kh-modal/components/BaseInfo/index.less +101 -0
- package/lib/vtx-kh-modal/components/Record/index.js +204 -0
- package/lib/vtx-kh-modal/components/Record/index.less +7 -0
- package/lib/vtx-kh-modal/components/index.js +3 -0
- package/lib/vtx-kh-modal/imgs/count.png +0 -0
- package/lib/vtx-kh-modal/imgs/count_light.png +0 -0
- package/lib/vtx-kh-modal/imgs/question_bg.png +0 -0
- package/lib/vtx-kh-modal/imgs/question_bg_light.png +0 -0
- package/lib/vtx-kh-modal/imgs/score.png +0 -0
- package/lib/vtx-kh-modal/imgs/score_light.png +0 -0
- package/lib/vtx-kh-modal/imgs/subtract.png +0 -0
- package/lib/vtx-kh-modal/imgs/subtract_light.png +0 -0
- package/lib/vtx-kh-modal/index.js +46 -0
- package/lib/vtx-kh-modal/style/index.js +4 -0
- package/lib/vtx-kh-modal/style/index.less +1 -0
- package/lib/vtx-restaurant-modal/api.js +297 -0
- package/lib/vtx-restaurant-modal/components/Alarm/AlarmRecord.js +47 -0
- package/lib/vtx-restaurant-modal/components/Alarm/AlarmTrend.js +31 -0
- package/lib/vtx-restaurant-modal/components/Alarm/AlarmTypeAnalysis.js +36 -0
- package/lib/vtx-restaurant-modal/components/Alarm/StaticInfo.js +41 -0
- package/lib/vtx-restaurant-modal/components/Alarm/index.js +69 -0
- package/lib/vtx-restaurant-modal/components/Basic/CollectRule.js +64 -0
- package/lib/vtx-restaurant-modal/components/Basic/DetailList.js +68 -0
- package/lib/vtx-restaurant-modal/components/Basic/Info.js +87 -0
- package/lib/vtx-restaurant-modal/components/Basic/Summary.js +61 -0
- package/lib/vtx-restaurant-modal/components/Basic/SummaryStatistics.js +60 -0
- package/lib/vtx-restaurant-modal/components/Basic/index.js +74 -0
- package/lib/vtx-restaurant-modal/components/Basic/index.less +16 -0
- package/lib/vtx-restaurant-modal/components/Calendar/index.js +171 -0
- package/lib/vtx-restaurant-modal/components/Calendar/index.less +93 -0
- package/lib/vtx-restaurant-modal/components/Collection/index.js +86 -0
- package/lib/vtx-restaurant-modal/components/DetailInfo/index.js +111 -0
- package/lib/vtx-restaurant-modal/components/SignAndContract/ContactDetail.js +299 -0
- package/lib/vtx-restaurant-modal/components/SignAndContract/index.js +198 -0
- package/lib/vtx-restaurant-modal/components/index.js +7 -0
- package/lib/vtx-restaurant-modal/config.js +283 -0
- package/lib/vtx-restaurant-modal/imgs/csl.png +0 -0
- package/lib/vtx-restaurant-modal/imgs/csl_dark.png +0 -0
- package/lib/vtx-restaurant-modal/imgs/sycs.png +0 -0
- package/lib/vtx-restaurant-modal/imgs/sycs_dark.png +0 -0
- package/lib/vtx-restaurant-modal/imgs/syts.png +0 -0
- package/lib/vtx-restaurant-modal/imgs/syts_dark.png +0 -0
- package/lib/vtx-restaurant-modal/index.js +168 -0
- package/lib/vtx-restaurant-modal/style/index.js +1 -0
- package/lib/vtx-restaurant-modal/style/index.less +13 -0
- package/lib/vtx-road-modal/components/BaseInfo/index.less +218 -218
- package/lib/vtx-road-modal/components/Calendar/index.js +1 -1
- package/lib/vtx-road-modal/components/Statistical/index.js +1 -1
- package/lib/vtx-road-modal/components/Statistical/index.less +32 -32
- package/lib/vtx-shxq-modal/components/AlarmRecord/index.js +4 -1
- package/lib/vtx-shxq-modal/components/Tfd/index.js +0 -1
- package/lib/vtx-shxq-modal/components/ThrowCalendar/index.js +0 -1
- package/lib/vtx-shxq-modal/components/ThrowRecord/index.js +4 -1
- package/lib/vtx-staff-modal/components/BaseInfo/ListZymx.js +20 -6
- package/lib/vtx-staff-modal/index.js +4 -1
- package/lib/vtx-tfd-modal/api.js +22 -27
- package/lib/vtx-tfd-modal/components/BaseInfo/index.js +100 -59
- package/lib/vtx-tfd-modal/components/BaseInfo/index.less +5 -0
- package/lib/vtx-zg-modal/api.js +107 -0
- package/lib/vtx-zg-modal/components/BaseInfo/index.js +286 -0
- package/lib/vtx-zg-modal/components/BaseInfo/index.less +124 -0
- package/lib/vtx-zg-modal/components/index.js +1 -0
- package/lib/vtx-zg-modal/imgs/dot.png +0 -0
- package/lib/vtx-zg-modal/imgs/dot_done.png +0 -0
- package/lib/vtx-zg-modal/index.js +42 -0
- package/lib/vtx-zg-modal/style/index.js +3 -0
- package/lib/vtx-zg-modal/style/index.less +1 -0
- package/lib/vtx-zzz-modal/index.js +10 -10
- package/package.json +1 -1
- package/lib/resources/jessibuca/decoder.js +0 -3839
- package/lib/resources/jessibuca/decoder.wasm +0 -0
- package/lib/resources/jessibuca/jessibuca.js +0 -5350
- package/lib/vtx-car-modal/imgs/calendar/fsdf/durationqq.png +0 -0
|
@@ -0,0 +1,91 @@
|
|
|
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 _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
|
+
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."); }
|
|
9
|
+
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); }
|
|
10
|
+
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; }
|
|
11
|
+
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; } }
|
|
12
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
+
import { useSetState } from 'ahooks';
|
|
14
|
+
import { Col, Row } from 'antd';
|
|
15
|
+
import dayjs from 'dayjs';
|
|
16
|
+
import { VmFactor, VmWrapper } from "../../../_components";
|
|
17
|
+
import useSettings from "../../../_hooks/useSettings";
|
|
18
|
+
import { BasicService } from "../../api";
|
|
19
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
|
+
var Statistics = function Statistics(_ref) {
|
|
21
|
+
var id = _ref.id,
|
|
22
|
+
garbageType = _ref.garbageType;
|
|
23
|
+
var _useSettings = useSettings(),
|
|
24
|
+
isDark = _useSettings.isDark;
|
|
25
|
+
var _useSetState = useSetState({
|
|
26
|
+
startDate: dayjs().subtract(30, 'day'),
|
|
27
|
+
endDate: dayjs()
|
|
28
|
+
}),
|
|
29
|
+
_useSetState2 = _slicedToArray(_useSetState, 2),
|
|
30
|
+
state = _useSetState2[0],
|
|
31
|
+
setState = _useSetState2[1];
|
|
32
|
+
var startTime = dayjs(state.startDate).format('YYYY-MM-DD 00:00:00');
|
|
33
|
+
var endTime = dayjs(state.endDate).format('YYYY-MM-DD 23:59:59');
|
|
34
|
+
var statisticsData = BasicService.useStatistics({
|
|
35
|
+
id: id,
|
|
36
|
+
startTime: startTime,
|
|
37
|
+
endTime: endTime,
|
|
38
|
+
garbageType: garbageType
|
|
39
|
+
});
|
|
40
|
+
var filterChange = function filterChange(dateValue) {
|
|
41
|
+
setState({
|
|
42
|
+
startDate: dateValue[0],
|
|
43
|
+
endDate: dateValue[1]
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
var list = [{
|
|
47
|
+
name: '收运桶数',
|
|
48
|
+
unit: '桶',
|
|
49
|
+
value: (statisticsData === null || statisticsData === void 0 ? void 0 : statisticsData.trashNums) || 0,
|
|
50
|
+
img: require("../../imgs/syts".concat(isDark ? '_dark' : '', ".png")),
|
|
51
|
+
fontType: 'green'
|
|
52
|
+
}, {
|
|
53
|
+
name: '收运重量',
|
|
54
|
+
unit: (statisticsData === null || statisticsData === void 0 ? void 0 : statisticsData.collectWeightKg) > 10000 ? '吨' : 'kg',
|
|
55
|
+
value: (statisticsData === null || statisticsData === void 0 ? void 0 : statisticsData.collectWeightKg) > 10000 ? ((statisticsData.collectWeightKg || 0) / 1000).toFixed(2) : statisticsData === null || statisticsData === void 0 ? void 0 : statisticsData.collectWeightKg,
|
|
56
|
+
img: require("../../imgs/syzl".concat(isDark ? '_dark' : '', ".png")),
|
|
57
|
+
fontType: 'blue'
|
|
58
|
+
}, {
|
|
59
|
+
name: '进厂车次',
|
|
60
|
+
unit: '次',
|
|
61
|
+
value: statisticsData === null || statisticsData === void 0 ? void 0 : statisticsData.count,
|
|
62
|
+
img: require("../../imgs/jccc".concat(isDark ? '_dark' : '', ".png")),
|
|
63
|
+
fontType: 'cyan'
|
|
64
|
+
}, {
|
|
65
|
+
name: '进厂量',
|
|
66
|
+
unit: (statisticsData === null || statisticsData === void 0 ? void 0 : statisticsData.netWeightTotal) > 10000 ? '吨' : 'kg',
|
|
67
|
+
value: (statisticsData === null || statisticsData === void 0 ? void 0 : statisticsData.netWeightTotal) > 10000 ? ((statisticsData.netWeightTotal || 0) / 1000).toFixed(2) : statisticsData === null || statisticsData === void 0 ? void 0 : statisticsData.netWeightTotal,
|
|
68
|
+
img: require("../../imgs/jcl".concat(isDark ? '_dark' : '', ".png")),
|
|
69
|
+
fontType: 'yellow'
|
|
70
|
+
}];
|
|
71
|
+
return /*#__PURE__*/_jsx(VmWrapper, {
|
|
72
|
+
title: '收运进厂统计',
|
|
73
|
+
filterType: "rangePicker",
|
|
74
|
+
dateValue: [state.startDate, state.endDate],
|
|
75
|
+
filterChange: filterChange,
|
|
76
|
+
disabledDate: function disabledDate(current) {
|
|
77
|
+
return current && current > dayjs().endOf('day');
|
|
78
|
+
},
|
|
79
|
+
children: /*#__PURE__*/_jsx(Row, {
|
|
80
|
+
align: 'middle',
|
|
81
|
+
justify: 'center',
|
|
82
|
+
children: list.map(function (item) {
|
|
83
|
+
return /*#__PURE__*/_jsx(Col, {
|
|
84
|
+
span: 6,
|
|
85
|
+
children: /*#__PURE__*/_jsx(VmFactor, _objectSpread({}, item))
|
|
86
|
+
}, item.name);
|
|
87
|
+
})
|
|
88
|
+
})
|
|
89
|
+
});
|
|
90
|
+
};
|
|
91
|
+
export default Statistics;
|
|
@@ -0,0 +1,118 @@
|
|
|
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 { getVtxToken } from '@vtx/utils';
|
|
8
|
+
import { Col, Image, Row } from 'antd';
|
|
9
|
+
import { VmInfoCollection, VmMap, VmWrapper } from "../../../_components";
|
|
10
|
+
import DetailList from "./DetailList";
|
|
11
|
+
import "./index.less";
|
|
12
|
+
import Statistics from "./Statistics";
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
var BaseInfo = function BaseInfo(_ref) {
|
|
15
|
+
var _info$location;
|
|
16
|
+
var info = _ref.info,
|
|
17
|
+
id = _ref.id;
|
|
18
|
+
var dataSource = [{
|
|
19
|
+
label: '单位名称',
|
|
20
|
+
key: 'unitName',
|
|
21
|
+
value: info.unitName
|
|
22
|
+
}, {
|
|
23
|
+
label: '营业执照编号',
|
|
24
|
+
key: 'licenseNumber',
|
|
25
|
+
value: info.licenseNumber,
|
|
26
|
+
width: '100%'
|
|
27
|
+
}, {
|
|
28
|
+
label: '营业执照',
|
|
29
|
+
key: 'licenseFiles',
|
|
30
|
+
width: '100%',
|
|
31
|
+
render: function render() {
|
|
32
|
+
var photos = JSON.parse(info.licenseFiles || '[]');
|
|
33
|
+
return /*#__PURE__*/_jsx("div", {
|
|
34
|
+
style: {
|
|
35
|
+
whiteSpace: 'break-spaces'
|
|
36
|
+
},
|
|
37
|
+
children: photos.map(function (item) {
|
|
38
|
+
return /*#__PURE__*/_jsx(Image, {
|
|
39
|
+
width: 80,
|
|
40
|
+
height: 80,
|
|
41
|
+
src: "/vortex/rest/cloud/np/file/downloadFileThumbnail?outputQuality=0.5&scale=0.2&id=".concat(item.id, "&token=").concat(getVtxToken('token')),
|
|
42
|
+
preview: {
|
|
43
|
+
src: "/cloudFile/common/downloadFile?id=".concat(item.id, "&token=").concat(getVtxToken('token'))
|
|
44
|
+
}
|
|
45
|
+
}, item.id);
|
|
46
|
+
})
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
}, {
|
|
50
|
+
label: '服务范围',
|
|
51
|
+
key: 'ccScopeServiceVOList',
|
|
52
|
+
value: info.ccScopeServiceVOList && info.ccScopeServiceVOList.length ? info.ccScopeServiceVOList.map(function (item) {
|
|
53
|
+
return item.divisionName;
|
|
54
|
+
}).join(',') : '-'
|
|
55
|
+
}, {
|
|
56
|
+
label: '成立时间',
|
|
57
|
+
key: 'establishedTime',
|
|
58
|
+
value: info.establishedTime
|
|
59
|
+
}];
|
|
60
|
+
var _ref2 = info !== null && info !== void 0 && (_info$location = info.location) !== null && _info$location !== void 0 && _info$location.lngLats ? info.location.lngLats.split(',') : [],
|
|
61
|
+
_ref3 = _slicedToArray(_ref2, 2),
|
|
62
|
+
lng = _ref3[0],
|
|
63
|
+
lat = _ref3[1];
|
|
64
|
+
var mapPoints = lng && lat ? [{
|
|
65
|
+
lng: lng,
|
|
66
|
+
lat: lat,
|
|
67
|
+
icon: 'DSFHSQY',
|
|
68
|
+
name: info.unitName,
|
|
69
|
+
type: 'point',
|
|
70
|
+
id: info.unitName
|
|
71
|
+
}] : [];
|
|
72
|
+
return /*#__PURE__*/_jsxs(Row, {
|
|
73
|
+
gutter: [16, 16],
|
|
74
|
+
style: {
|
|
75
|
+
height: '100%'
|
|
76
|
+
},
|
|
77
|
+
children: [/*#__PURE__*/_jsx(Col, {
|
|
78
|
+
flex: '400px',
|
|
79
|
+
children: /*#__PURE__*/_jsxs(VmWrapper, {
|
|
80
|
+
title: '基本信息',
|
|
81
|
+
children: [/*#__PURE__*/_jsx(VmInfoCollection, {
|
|
82
|
+
data: dataSource
|
|
83
|
+
}), lng && lat ? /*#__PURE__*/_jsx("div", {
|
|
84
|
+
className: 'vm-cc-unit-map-wrap',
|
|
85
|
+
children: /*#__PURE__*/_jsx(VmMap, {
|
|
86
|
+
mapPoints: mapPoints,
|
|
87
|
+
mapType: 'wgs84',
|
|
88
|
+
mapCenter: [lng, lat],
|
|
89
|
+
address: info === null || info === void 0 ? void 0 : info.address
|
|
90
|
+
})
|
|
91
|
+
}) : null]
|
|
92
|
+
})
|
|
93
|
+
}), /*#__PURE__*/_jsx(Col, {
|
|
94
|
+
flex: '1',
|
|
95
|
+
style: {
|
|
96
|
+
minWidth: 0
|
|
97
|
+
},
|
|
98
|
+
children: /*#__PURE__*/_jsxs("div", {
|
|
99
|
+
className: 'vtx-cc-unit-info-right-wrap',
|
|
100
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
101
|
+
style: {
|
|
102
|
+
height: 138
|
|
103
|
+
},
|
|
104
|
+
children: /*#__PURE__*/_jsx(Statistics, {
|
|
105
|
+
id: id,
|
|
106
|
+
garbageType: info.garbageType
|
|
107
|
+
})
|
|
108
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
109
|
+
className: 'vtx-cc-unit-info-right-wrap-bottom',
|
|
110
|
+
children: /*#__PURE__*/_jsx(DetailList, {
|
|
111
|
+
id: id
|
|
112
|
+
})
|
|
113
|
+
})]
|
|
114
|
+
})
|
|
115
|
+
})]
|
|
116
|
+
});
|
|
117
|
+
};
|
|
118
|
+
export default BaseInfo;
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
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 _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
|
+
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."); }
|
|
9
|
+
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); }
|
|
10
|
+
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; }
|
|
11
|
+
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; } }
|
|
12
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
+
import { useSetState } from 'ahooks';
|
|
14
|
+
import { Col, Row, Space } from 'antd';
|
|
15
|
+
import { useContext } from 'react';
|
|
16
|
+
import { VmFilter, VmTable, VmWrapper } from "../../../_components";
|
|
17
|
+
import { BasicService } from "../../api";
|
|
18
|
+
import { CcUnitContext } from "../../index";
|
|
19
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
|
+
var CarList = function CarList(_ref) {
|
|
21
|
+
var id = _ref.id;
|
|
22
|
+
var _useContext = useContext(CcUnitContext),
|
|
23
|
+
openCar = _useContext.openCar;
|
|
24
|
+
var _useSetState = useSetState({
|
|
25
|
+
carCode: ''
|
|
26
|
+
}),
|
|
27
|
+
_useSetState2 = _slicedToArray(_useSetState, 2),
|
|
28
|
+
search = _useSetState2[0],
|
|
29
|
+
setSearch = _useSetState2[1];
|
|
30
|
+
var tableProps = BasicService.useCarList({
|
|
31
|
+
carCode: search.carCode,
|
|
32
|
+
id: id
|
|
33
|
+
});
|
|
34
|
+
var columns = [{
|
|
35
|
+
title: '车牌号',
|
|
36
|
+
dataIndex: 'carCode',
|
|
37
|
+
width: 140,
|
|
38
|
+
ellipsis: true,
|
|
39
|
+
fixed: 'left',
|
|
40
|
+
render: function render(text, record) {
|
|
41
|
+
return /*#__PURE__*/_jsx("a", {
|
|
42
|
+
onClick: function onClick() {
|
|
43
|
+
return openCar && openCar({
|
|
44
|
+
id: record.carId,
|
|
45
|
+
title: record.carCode
|
|
46
|
+
});
|
|
47
|
+
},
|
|
48
|
+
children: text
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
}, {
|
|
52
|
+
title: '所属收运单位',
|
|
53
|
+
dataIndex: 'manageUnitName',
|
|
54
|
+
width: 160,
|
|
55
|
+
ellipsis: true
|
|
56
|
+
}, {
|
|
57
|
+
title: '车辆类别',
|
|
58
|
+
dataIndex: 'carClassName',
|
|
59
|
+
width: 140,
|
|
60
|
+
ellipsis: true
|
|
61
|
+
}, {
|
|
62
|
+
title: '车辆种类',
|
|
63
|
+
dataIndex: 'carGradeName',
|
|
64
|
+
width: 140,
|
|
65
|
+
ellipsis: true
|
|
66
|
+
}, {
|
|
67
|
+
title: '车辆型号',
|
|
68
|
+
dataIndex: 'carType',
|
|
69
|
+
width: 140,
|
|
70
|
+
ellipsis: true,
|
|
71
|
+
render: function render(text) {
|
|
72
|
+
return text || '-';
|
|
73
|
+
}
|
|
74
|
+
}, {
|
|
75
|
+
title: '购买时间',
|
|
76
|
+
dataIndex: 'procurementTime',
|
|
77
|
+
width: 140,
|
|
78
|
+
ellipsis: true,
|
|
79
|
+
sorter: true
|
|
80
|
+
}, {
|
|
81
|
+
title: '司机姓名',
|
|
82
|
+
dataIndex: 'driverName',
|
|
83
|
+
width: 140,
|
|
84
|
+
ellipsis: true,
|
|
85
|
+
render: function render(text) {
|
|
86
|
+
return text || '-';
|
|
87
|
+
}
|
|
88
|
+
}];
|
|
89
|
+
return /*#__PURE__*/_jsxs(Row, {
|
|
90
|
+
gutter: [10, 10],
|
|
91
|
+
style: {
|
|
92
|
+
height: '100%'
|
|
93
|
+
},
|
|
94
|
+
children: [/*#__PURE__*/_jsx(Col, {
|
|
95
|
+
span: 24,
|
|
96
|
+
style: {
|
|
97
|
+
height: 68
|
|
98
|
+
},
|
|
99
|
+
children: /*#__PURE__*/_jsx(VmWrapper, {
|
|
100
|
+
showTitle: false,
|
|
101
|
+
children: /*#__PURE__*/_jsxs(Space, {
|
|
102
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
103
|
+
children: "\u8F66\u724C\u53F7"
|
|
104
|
+
}), /*#__PURE__*/_jsx(VmFilter.VMInput, {
|
|
105
|
+
style: {
|
|
106
|
+
width: 200
|
|
107
|
+
},
|
|
108
|
+
onValChange: function onValChange(value) {
|
|
109
|
+
setSearch({
|
|
110
|
+
carCode: value
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
})]
|
|
114
|
+
})
|
|
115
|
+
})
|
|
116
|
+
}), /*#__PURE__*/_jsx(Col, {
|
|
117
|
+
span: 24,
|
|
118
|
+
style: {
|
|
119
|
+
height: 'calc(100% - 78px)'
|
|
120
|
+
},
|
|
121
|
+
children: /*#__PURE__*/_jsx(VmWrapper, {
|
|
122
|
+
children: /*#__PURE__*/_jsx(VmTable, _objectSpread(_objectSpread({}, tableProps), {}, {
|
|
123
|
+
columns: columns
|
|
124
|
+
}))
|
|
125
|
+
})
|
|
126
|
+
})]
|
|
127
|
+
});
|
|
128
|
+
};
|
|
129
|
+
export default CarList;
|
|
@@ -0,0 +1,95 @@
|
|
|
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 _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
|
+
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."); }
|
|
9
|
+
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); }
|
|
10
|
+
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; }
|
|
11
|
+
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; } }
|
|
12
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
+
import { useSetState } from 'ahooks';
|
|
14
|
+
import { Col, Row } from 'antd';
|
|
15
|
+
import dayjs from 'dayjs';
|
|
16
|
+
import { VmFactor, VmWrapper } from "../../../_components";
|
|
17
|
+
import useSettings from "../../../_hooks/useSettings";
|
|
18
|
+
import { BasicService } from "../../api";
|
|
19
|
+
import CollectRecord from "../BaseInfo/CollectRecord";
|
|
20
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
|
+
var Collection = function Collection(_ref) {
|
|
22
|
+
var id = _ref.id,
|
|
23
|
+
info = _ref.info;
|
|
24
|
+
var _useSettings = useSettings(),
|
|
25
|
+
isDark = _useSettings.isDark;
|
|
26
|
+
var _useSetState = useSetState({
|
|
27
|
+
startDate: dayjs().subtract(30, 'day'),
|
|
28
|
+
endDate: dayjs()
|
|
29
|
+
}),
|
|
30
|
+
_useSetState2 = _slicedToArray(_useSetState, 2),
|
|
31
|
+
state = _useSetState2[0],
|
|
32
|
+
setState = _useSetState2[1];
|
|
33
|
+
var startTime = dayjs(state.startDate).format('YYYY-MM-DD 00:00:00');
|
|
34
|
+
var endTime = dayjs(state.endDate).format('YYYY-MM-DD 23:59:59');
|
|
35
|
+
var props = {
|
|
36
|
+
startTime: startTime,
|
|
37
|
+
endTime: endTime,
|
|
38
|
+
id: id,
|
|
39
|
+
garbageType: info.garbageType
|
|
40
|
+
};
|
|
41
|
+
var statisticsData = BasicService.useStatistics(props);
|
|
42
|
+
var filterChange = function filterChange(dateValue) {
|
|
43
|
+
setState({
|
|
44
|
+
startDate: dateValue[0],
|
|
45
|
+
endDate: dateValue[1]
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
var list = [{
|
|
49
|
+
name: '收运桶数',
|
|
50
|
+
unit: '桶',
|
|
51
|
+
value: (statisticsData === null || statisticsData === void 0 ? void 0 : statisticsData.trashNums) || 0,
|
|
52
|
+
img: require("../../imgs/syts".concat(isDark ? '_dark' : '', ".png")),
|
|
53
|
+
fontType: 'green'
|
|
54
|
+
}, {
|
|
55
|
+
name: '收运重量',
|
|
56
|
+
unit: (statisticsData === null || statisticsData === void 0 ? void 0 : statisticsData.collectWeightKg) > 10000 ? '吨' : 'kg',
|
|
57
|
+
value: (statisticsData === null || statisticsData === void 0 ? void 0 : statisticsData.collectWeightKg) > 10000 ? ((statisticsData.collectWeightKg || 0) / 1000).toFixed(2) : statisticsData === null || statisticsData === void 0 ? void 0 : statisticsData.collectWeightKg,
|
|
58
|
+
img: require("../../imgs/syzl".concat(isDark ? '_dark' : '', ".png")),
|
|
59
|
+
fontType: 'blue'
|
|
60
|
+
}, {
|
|
61
|
+
name: '进厂量',
|
|
62
|
+
unit: (statisticsData === null || statisticsData === void 0 ? void 0 : statisticsData.netWeightTotal) > 10000 ? '吨' : 'kg',
|
|
63
|
+
value: (statisticsData === null || statisticsData === void 0 ? void 0 : statisticsData.netWeightTotal) > 10000 ? ((statisticsData.netWeightTotal || 0) / 1000).toFixed(2) : statisticsData === null || statisticsData === void 0 ? void 0 : statisticsData.netWeightTotal,
|
|
64
|
+
img: require("../../imgs/jcl".concat(isDark ? '_dark' : '', ".png")),
|
|
65
|
+
fontType: 'yellow'
|
|
66
|
+
}];
|
|
67
|
+
return /*#__PURE__*/_jsxs(VmWrapper, {
|
|
68
|
+
title: '收运分析',
|
|
69
|
+
filterType: "rangePicker",
|
|
70
|
+
dateValue: [state.startDate, state.endDate],
|
|
71
|
+
filterChange: filterChange,
|
|
72
|
+
disabledDate: function disabledDate(current) {
|
|
73
|
+
return current && current > dayjs().endOf('day');
|
|
74
|
+
},
|
|
75
|
+
children: [/*#__PURE__*/_jsx(Row, {
|
|
76
|
+
align: 'middle',
|
|
77
|
+
justify: 'center',
|
|
78
|
+
style: {
|
|
79
|
+
padding: '0 200px 18px'
|
|
80
|
+
},
|
|
81
|
+
children: list.map(function (item) {
|
|
82
|
+
return /*#__PURE__*/_jsx(Col, {
|
|
83
|
+
span: 8,
|
|
84
|
+
children: /*#__PURE__*/_jsx(VmFactor, _objectSpread({}, item))
|
|
85
|
+
}, item.name);
|
|
86
|
+
})
|
|
87
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
88
|
+
style: {
|
|
89
|
+
height: 'calc(100% - 72px)'
|
|
90
|
+
},
|
|
91
|
+
children: /*#__PURE__*/_jsx(CollectRecord, _objectSpread({}, props))
|
|
92
|
+
})]
|
|
93
|
+
});
|
|
94
|
+
};
|
|
95
|
+
export default Collection;
|
|
@@ -0,0 +1,126 @@
|
|
|
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 { getVtxToken } from '@vtx/utils';
|
|
8
|
+
import { Image } from 'antd';
|
|
9
|
+
import { VmInfoCollection, VmMap, VmWrapper } from "../../../_components";
|
|
10
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
+
var DetailInfo = function DetailInfo(_ref) {
|
|
12
|
+
var _info$location;
|
|
13
|
+
var info = _ref.info;
|
|
14
|
+
var _ref2 = info !== null && info !== void 0 && (_info$location = info.location) !== null && _info$location !== void 0 && _info$location.lngLats ? info.location.lngLats.split(',') : [],
|
|
15
|
+
_ref3 = _slicedToArray(_ref2, 2),
|
|
16
|
+
lng = _ref3[0],
|
|
17
|
+
lat = _ref3[1];
|
|
18
|
+
var mapPoints = lng && lat ? [{
|
|
19
|
+
lng: lng,
|
|
20
|
+
lat: lat,
|
|
21
|
+
icon: 'DSFHSQY',
|
|
22
|
+
name: info.unitName,
|
|
23
|
+
type: 'point',
|
|
24
|
+
id: info.unitName
|
|
25
|
+
}] : [];
|
|
26
|
+
var dataSource = [{
|
|
27
|
+
label: '单位名称',
|
|
28
|
+
key: 'unitName',
|
|
29
|
+
value: info.unitName
|
|
30
|
+
}, {
|
|
31
|
+
label: '关联单位',
|
|
32
|
+
key: 'managementName',
|
|
33
|
+
value: info.managementName
|
|
34
|
+
}, {
|
|
35
|
+
label: '法定代表人',
|
|
36
|
+
key: 'legal',
|
|
37
|
+
value: info.legal
|
|
38
|
+
}, {
|
|
39
|
+
label: '法定代表人手机号',
|
|
40
|
+
key: 'legalPhone',
|
|
41
|
+
value: info.legalPhone
|
|
42
|
+
}, {
|
|
43
|
+
label: '法定代表人身份证号',
|
|
44
|
+
key: 'legalIdCard',
|
|
45
|
+
value: info.legalIdCard
|
|
46
|
+
}, {
|
|
47
|
+
label: '地址',
|
|
48
|
+
key: 'address',
|
|
49
|
+
value: info.address,
|
|
50
|
+
isAddress: true
|
|
51
|
+
}];
|
|
52
|
+
var dataSource1 = [{
|
|
53
|
+
label: '营业执照编号',
|
|
54
|
+
key: 'licenseNumber',
|
|
55
|
+
value: info.licenseNumber
|
|
56
|
+
}, {
|
|
57
|
+
label: '营业执照',
|
|
58
|
+
key: 'licenseFiles',
|
|
59
|
+
value: info.licenseFiles,
|
|
60
|
+
width: '100%',
|
|
61
|
+
render: function render() {
|
|
62
|
+
var photos = JSON.parse(info.licenseFiles || '[]');
|
|
63
|
+
return /*#__PURE__*/_jsx("div", {
|
|
64
|
+
style: {
|
|
65
|
+
whiteSpace: 'break-spaces'
|
|
66
|
+
},
|
|
67
|
+
children: photos.map(function (item) {
|
|
68
|
+
return /*#__PURE__*/_jsx(Image, {
|
|
69
|
+
width: 80,
|
|
70
|
+
height: 80,
|
|
71
|
+
src: "/vortex/rest/cloud/np/file/downloadFileThumbnail?outputQuality=0.5&scale=0.2&id=".concat(item.id, "&token=").concat(getVtxToken('token')),
|
|
72
|
+
preview: {
|
|
73
|
+
src: "/cloudFile/common/downloadFile?id=".concat(item.id, "&token=").concat(getVtxToken('token'))
|
|
74
|
+
}
|
|
75
|
+
}, item.id);
|
|
76
|
+
})
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
}, {
|
|
80
|
+
label: '收运单位停车场地址',
|
|
81
|
+
key: 'carParkAddress',
|
|
82
|
+
value: info.carParkAddress,
|
|
83
|
+
isAddress: true
|
|
84
|
+
}, {
|
|
85
|
+
label: '服务范围',
|
|
86
|
+
key: 'ccScopeServiceVOList',
|
|
87
|
+
value: info.ccScopeServiceVOList && info.ccScopeServiceVOList.length ? info.ccScopeServiceVOList.map(function (item) {
|
|
88
|
+
return item.divisionName;
|
|
89
|
+
}).join(',') : '-'
|
|
90
|
+
}, {
|
|
91
|
+
label: '成立时间',
|
|
92
|
+
key: 'establishedTime',
|
|
93
|
+
value: info.establishedTime
|
|
94
|
+
}, {
|
|
95
|
+
label: '是否启用',
|
|
96
|
+
key: 'whetherUsed',
|
|
97
|
+
value: info.whetherUsed ? '是' : '否'
|
|
98
|
+
}];
|
|
99
|
+
return /*#__PURE__*/_jsx(VmWrapper, {
|
|
100
|
+
showTitle: false,
|
|
101
|
+
children: /*#__PURE__*/_jsxs(_Fragment, {
|
|
102
|
+
children: [/*#__PURE__*/_jsx(VmInfoCollection, {
|
|
103
|
+
data: dataSource,
|
|
104
|
+
horizontal: true,
|
|
105
|
+
width: "50%",
|
|
106
|
+
ellipsis: true
|
|
107
|
+
}), lng && lat ? /*#__PURE__*/_jsx("div", {
|
|
108
|
+
style: {
|
|
109
|
+
height: 200
|
|
110
|
+
},
|
|
111
|
+
children: /*#__PURE__*/_jsx(VmMap, {
|
|
112
|
+
mapPoints: mapPoints,
|
|
113
|
+
mapType: 'wgs84',
|
|
114
|
+
mapCenter: [lng, lat],
|
|
115
|
+
address: info === null || info === void 0 ? void 0 : info.address
|
|
116
|
+
})
|
|
117
|
+
}) : null, /*#__PURE__*/_jsx(VmInfoCollection, {
|
|
118
|
+
data: dataSource1,
|
|
119
|
+
horizontal: true,
|
|
120
|
+
width: "50%",
|
|
121
|
+
ellipsis: true
|
|
122
|
+
})]
|
|
123
|
+
})
|
|
124
|
+
});
|
|
125
|
+
};
|
|
126
|
+
export default DetailInfo;
|