@vtx/modals2 5.0.59 → 6.0.0-beta.0
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/README.md +18 -2
- package/lib/_components/vm-calendar/index.js +12 -7
- package/lib/_components/vm-calendar/style/index.js +0 -1
- package/lib/_components/vm-calendar/style/index.less +1 -0
- package/lib/_components/vm-empty/index.js +13 -11
- package/lib/_components/vm-factor/index.js +1 -0
- package/lib/_components/vm-factor/style/index.less +4 -0
- package/lib/_components/vm-filter/index.js +9 -12
- package/lib/_components/vm-info-collection/style/index.js +0 -1
- package/lib/_components/vm-map/index.js +18 -0
- package/lib/_components/vm-popover/index.js +11 -3
- package/lib/_components/vm-popover/index.less +4 -1
- package/lib/_components/vm-repair-maintain/RmInfoSummary.js +7 -6
- package/lib/_components/vm-repair-maintain/RmMonthTrend.js +3 -2
- package/lib/_components/vm-repair-maintain/RmRecord.js +9 -8
- package/lib/_components/vm-repair-maintain/RmType.js +5 -4
- package/lib/_components/vm-repair-maintain/index.js +4 -3
- package/lib/_components/vm-table/index.js +31 -24
- package/lib/_components/vm-tabs/index.js +26 -10
- package/lib/_components/vm-video/index.js +21 -21
- package/lib/_components/vm-wrapper/index.js +8 -4
- package/lib/_components/vm-wrapper/resource/ICON_CONFIG.js +1 -1
- package/lib/_util/http.js +4 -2
- package/lib/_util/setupDayjs.js +16 -0
- package/lib/hooks/useTranslation.js +219 -0
- package/lib/index.js +3 -0
- package/lib/locales/en.json +1377 -0
- package/lib/locales/zh-CN.json +1377 -0
- package/lib/style/index.less +0 -2
- package/lib/vtx-area-modal/api.js +5 -4
- package/lib/vtx-area-modal/components/BaseInfo/Lcfx.js +2 -1
- package/lib/vtx-area-modal/components/BaseInfo/ListZymx.js +10 -9
- package/lib/vtx-area-modal/components/BaseInfo/index.js +14 -13
- package/lib/vtx-area-modal/index.js +1 -1
- package/lib/vtx-base-modal/Header/index.less +1 -0
- package/lib/vtx-base-modal/index.js +34 -3
- package/lib/vtx-base-modal/style/index.less +14 -1
- package/lib/vtx-car-modal/components/Info/index.js +37 -7
- package/lib/vtx-car-modal/content/Cc/AlarmInfo/List.js +7 -6
- package/lib/vtx-car-modal/content/Cc/AlarmInfo/StaticInfo.js +7 -6
- package/lib/vtx-car-modal/content/Cc/AlarmInfo/index.js +2 -1
- package/lib/vtx-car-modal/content/Cc/BaseInfo/index.js +22 -21
- package/lib/vtx-car-modal/content/Cc/OrderInfo/Detail.js +26 -25
- package/lib/vtx-car-modal/content/Cc/OrderInfo/index.js +15 -14
- package/lib/vtx-car-modal/content/Cc/StaticInfo/index.js +22 -21
- package/lib/vtx-car-modal/content/Cc/WorkRecord/Detail.js +13 -12
- package/lib/vtx-car-modal/content/Cc/WorkRecord/Summary.js +13 -12
- package/lib/vtx-car-modal/content/Cc/WorkRecord/index.js +2 -1
- package/lib/vtx-car-modal/content/Common/AlarmInfo/List.js +16 -11
- package/lib/vtx-car-modal/content/Common/AlarmInfo/StaticInfo.js +7 -6
- package/lib/vtx-car-modal/content/Common/AlarmInfo/index.js +2 -1
- package/lib/vtx-car-modal/content/Common/BaseInfo/index.js +10 -7
- package/lib/vtx-car-modal/content/Common/DetailInfo/index.js +13 -12
- package/lib/vtx-car-modal/content/Common/DeviceInfo/index.js +16 -15
- package/lib/vtx-car-modal/content/Common/Maintenance/index.js +23 -18
- package/lib/vtx-car-modal/content/Common/OilConsumption/List.js +5 -4
- package/lib/vtx-car-modal/content/Common/OilConsumption/index.js +7 -6
- package/lib/vtx-car-modal/content/Common/StaticInfo/index.js +17 -15
- package/lib/vtx-car-modal/content/Common/WaterConsumption/index.js +10 -9
- package/lib/vtx-car-modal/content/JXH/AlarmInfo/List.js +8 -7
- package/lib/vtx-car-modal/content/JXH/AlarmInfo/StaticInfo.js +9 -8
- package/lib/vtx-car-modal/content/JXH/AlarmInfo/index.js +2 -1
- package/lib/vtx-car-modal/content/JXH/BaseInfo/index.js +11 -10
- package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/List.js +8 -7
- package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/StaticInfo.js +7 -6
- package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/index.js +2 -1
- package/lib/vtx-car-modal/content/JXH/Hw2BaseInfo/index.js +13 -12
- package/lib/vtx-car-modal/content/JXH/Hw2StaticInfo/index.js +44 -41
- package/lib/vtx-car-modal/content/JXH/Hw2WorkRecord/index.js +26 -20
- package/lib/vtx-car-modal/content/JXH/StaticInfo/index.js +18 -17
- package/lib/vtx-car-modal/content/JXH/WorkRecord/index.js +23 -22
- package/lib/vtx-car-modal/content/Jzlj/Alarm/Bottom.js +41 -40
- package/lib/vtx-car-modal/content/Jzlj/Alarm/index.js +13 -12
- package/lib/vtx-car-modal/content/Jzlj/BaseInfo/index.js +21 -20
- package/lib/vtx-car-modal/content/Jzlj/Collection/Chart.js +8 -7
- package/lib/vtx-car-modal/content/Jzlj/Collection/index.js +26 -25
- package/lib/vtx-car-modal/content/Jzlj/Dispose/Pies.js +15 -9
- package/lib/vtx-car-modal/content/Jzlj/Dispose/index.js +20 -19
- package/lib/vtx-car-modal/content/Jzlj/RunCalendar/index.js +13 -12
- package/lib/vtx-car-modal/content/Ljsy/AlarmInfo/List.js +6 -5
- package/lib/vtx-car-modal/content/Ljsy/AlarmInfo/StaticInfo.js +7 -6
- package/lib/vtx-car-modal/content/Ljsy/AlarmInfo/index.js +2 -1
- package/lib/vtx-car-modal/content/Ljsy/BaseInfo/index.js +28 -27
- package/lib/vtx-car-modal/content/Ljsy/StaticInfo/index.js +23 -22
- package/lib/vtx-car-modal/content/Ljsy/WorkRecord/Detail.js +10 -9
- package/lib/vtx-car-modal/content/Ljsy/WorkRecord/Summary.js +13 -12
- package/lib/vtx-car-modal/content/Ljsy/WorkRecord/index.js +2 -1
- package/lib/vtx-car-modal/content/Ljzy/BaseInfo/index.js +18 -17
- package/lib/vtx-car-modal/content/Ljzy/StaticInfo/index.js +15 -14
- package/lib/vtx-car-modal/content/Ljzy/WorkRecord/Detail.js +8 -7
- package/lib/vtx-car-modal/content/Ljzy/WorkRecord/Summary.js +12 -11
- package/lib/vtx-car-modal/content/Ljzy/WorkRecord/index.js +2 -1
- package/lib/vtx-car-modal/content/Unmanned/Analysis/index.js +4 -3
- package/lib/vtx-car-modal/content/Unmanned/Calendar/index.js +18 -17
- package/lib/vtx-car-modal/content/Unmanned/Monitor/index.js +2 -1
- package/lib/vtx-car-modal/content/Unmanned/WorkInfo/index.js +8 -7
- package/lib/vtx-car-modal/index.js +25 -24
- package/lib/vtx-car-modal/style/index.js +1 -3
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmRecord.js +28 -16
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmTrend.js +7 -2
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmTypeAnalysis.js +4 -3
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/StaticInfo.js +3 -2
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/index.js +2 -1
- package/lib/vtx-cc-cp-modal/components/BaseInfo/AllWork.js +29 -34
- package/lib/vtx-cc-cp-modal/components/BaseInfo/Info.js +25 -19
- package/lib/vtx-cc-cp-modal/components/BaseInfo/Rules.js +4 -3
- package/lib/vtx-cc-cp-modal/components/BaseInfo/SyRecord.js +21 -17
- package/lib/vtx-cc-cp-modal/components/BaseInfo/index.js +8 -7
- package/lib/vtx-cc-cp-modal/components/BaseInfo/index.less +34 -0
- package/lib/vtx-cc-cp-modal/components/Calendar/index.js +4 -3
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionTrend.js +7 -2
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionTypeAnalysis.js +4 -3
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExeceptionRecord.js +33 -35
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/StaticInfo.js +3 -2
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/index.js +2 -1
- package/lib/vtx-cc-cp-modal/components/Restaurant/index.js +23 -13
- package/lib/vtx-cc-cp-modal/components/SyInfo/Ljcsl.js +2 -1
- package/lib/vtx-cc-cp-modal/components/SyInfo/SummaryInfo.js +25 -17
- package/lib/vtx-cc-cp-modal/components/SyInfo/index.js +3 -2
- package/lib/vtx-cc-cp-modal/index.js +2 -1
- package/lib/vtx-cc-unit-modal/components/BaseInfo/CollectRecord.js +11 -7
- package/lib/vtx-cc-unit-modal/components/BaseInfo/DetailList.js +3 -2
- package/lib/vtx-cc-unit-modal/components/BaseInfo/Factory.js +13 -9
- package/lib/vtx-cc-unit-modal/components/BaseInfo/Statistics.js +13 -9
- package/lib/vtx-cc-unit-modal/components/BaseInfo/index.js +7 -6
- package/lib/vtx-cc-unit-modal/components/CarList/index.js +13 -9
- package/lib/vtx-cc-unit-modal/components/Collection/index.js +11 -7
- package/lib/vtx-cc-unit-modal/components/DetailInfo/index.js +14 -13
- package/lib/vtx-cc-unit-modal/components/Factory/index.js +13 -9
- package/lib/vtx-cc-unit-modal/components/RestaurantList/index.js +15 -11
- package/lib/vtx-cc-unit-modal/index.js +17 -10
- package/lib/vtx-cp-modal/api.js +6 -5
- package/lib/vtx-cp-modal/components/AlarmInfo/AlarmRecord.js +11 -10
- package/lib/vtx-cp-modal/components/AlarmInfo/MonthTrend.js +4 -3
- package/lib/vtx-cp-modal/components/AlarmInfo/Summary.js +6 -5
- package/lib/vtx-cp-modal/components/BaseInfo/CarWork.js +9 -8
- package/lib/vtx-cp-modal/components/BaseInfo/Rules.js +3 -2
- package/lib/vtx-cp-modal/components/BaseInfo/TodayWork.js +10 -9
- package/lib/vtx-cp-modal/components/BaseInfo/index.js +5 -4
- package/lib/vtx-cp-modal/components/ExeceptionInfo/AlarmRecord.js +10 -9
- package/lib/vtx-cp-modal/components/ExeceptionInfo/MonthTrend.js +4 -3
- package/lib/vtx-cp-modal/components/ExeceptionInfo/Summary.js +6 -5
- package/lib/vtx-cp-modal/components/SyInfo/Ljcsl.js +5 -4
- package/lib/vtx-cp-modal/components/SyInfo/index.js +20 -19
- package/lib/vtx-cp-modal/index.js +5 -4
- package/lib/vtx-default-modal/components/BaseInfo/index.js +2 -1
- package/lib/vtx-default-modal/index.js +4 -3
- package/lib/vtx-default-modal/style/index.js +0 -1
- package/lib/vtx-device-modal/components/BaseInfo/PreviewAndDownload.js +4 -3
- package/lib/vtx-device-modal/components/BaseInfo/index.js +13 -12
- package/lib/vtx-device-modal/components/DataAnalysis/AlarmAnalysis.js +15 -14
- package/lib/vtx-device-modal/components/DataAnalysis/MonitorAnalysis.js +21 -20
- package/lib/vtx-device-modal/components/DataAnalysis/index.js +15 -0
- package/lib/vtx-device-modal/index.js +6 -3
- package/lib/vtx-device-modal/style/index.less +32 -0
- package/lib/vtx-df-modal/components/BaseInfo/Jcqsfx.js +5 -4
- package/lib/vtx-df-modal/components/BaseInfo/Jczbqs.js +6 -5
- package/lib/vtx-df-modal/components/BaseInfo/Qyjcl.js +4 -3
- package/lib/vtx-df-modal/components/BaseInfo/RealtimeMonitor.js +12 -7
- package/lib/vtx-df-modal/components/BaseInfo/Situation.js +5 -4
- package/lib/vtx-df-modal/components/BaseInfo/index.js +4 -3
- package/lib/vtx-df-modal/components/BaseInfoZdReborn/Jcqsfx.js +6 -5
- package/lib/vtx-df-modal/components/BaseInfoZdReborn/Jczbqs.js +6 -5
- package/lib/vtx-df-modal/components/BaseInfoZdReborn/Qyjcl.js +4 -3
- package/lib/vtx-df-modal/components/BaseInfoZdReborn/RealtimeMonitor.js +12 -7
- package/lib/vtx-df-modal/components/BaseInfoZdReborn/Situation.js +5 -4
- package/lib/vtx-df-modal/components/BaseInfoZdReborn/index.js +4 -3
- package/lib/vtx-df-modal/components/Calendar/index.js +7 -6
- package/lib/vtx-df-modal/components/Calendar/zd-reborn.js +7 -6
- package/lib/vtx-df-modal/components/Metering/ChartJccc.js +10 -8
- package/lib/vtx-df-modal/components/Metering/ChartJcqs.js +6 -5
- package/lib/vtx-df-modal/components/Metering/List.js +12 -10
- package/lib/vtx-df-modal/components/Metering/index.js +11 -10
- package/lib/vtx-df-modal/components/MeteringZdReborn/ChartJccc.js +10 -8
- package/lib/vtx-df-modal/components/MeteringZdReborn/ChartJcqs.js +6 -6
- package/lib/vtx-df-modal/components/MeteringZdReborn/List.js +12 -10
- package/lib/vtx-df-modal/components/MeteringZdReborn/index.js +11 -10
- package/lib/vtx-df-modal/components/WorkCondition/Monitor.js +2 -1
- package/lib/vtx-df-modal/components/WorkCondition/Table.js +4 -3
- package/lib/vtx-df-modal/components/WorkCondition/index.js +9 -4
- package/lib/vtx-df-modal/index.js +4 -3
- package/lib/vtx-housing-estate-modal/components/Alarm/CYLJTF.js +7 -6
- package/lib/vtx-housing-estate-modal/components/Alarm/Distribute.js +3 -2
- package/lib/vtx-housing-estate-modal/components/Alarm/FLZL_TREND.js +3 -2
- package/lib/vtx-housing-estate-modal/components/Alarm/FSCSFB.js +3 -2
- package/lib/vtx-housing-estate-modal/components/Alarm/FSSD.js +5 -4
- package/lib/vtx-housing-estate-modal/components/Alarm/FSYZQS.js +4 -3
- package/lib/vtx-housing-estate-modal/components/Alarm/GDCLXL.js +8 -7
- package/lib/vtx-housing-estate-modal/components/Alarm/HTLJPH.js +6 -5
- package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_FB.js +9 -8
- package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_GD.js +4 -3
- package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_PIE.js +5 -4
- package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_TREND.js +3 -2
- package/lib/vtx-housing-estate-modal/components/Alarm/index.js +5 -4
- package/lib/vtx-housing-estate-modal/components/OverView/Hot.js +13 -12
- package/lib/vtx-housing-estate-modal/components/OverView/Left.js +7 -5
- package/lib/vtx-housing-estate-modal/components/OverView/Manage.js +14 -13
- package/lib/vtx-housing-estate-modal/components/OverView/RightBottom.js +12 -11
- package/lib/vtx-housing-estate-modal/components/Sbzj/index.js +20 -17
- package/lib/vtx-housing-estate-modal/components/TFRD/index.js +55 -52
- package/lib/vtx-housing-estate-modal/components/WGGS/index.js +3 -2
- package/lib/vtx-housing-estate-modal/components/WGXW/Content.js +2 -1
- package/lib/vtx-housing-estate-modal/components/WGXW/index.js +6 -5
- package/lib/vtx-housing-estate-modal/config.js +10 -10
- package/lib/vtx-housing-estate-modal/index.js +6 -5
- package/lib/vtx-jzlj-df-tpd-modal/components/Collection/Chart.js +15 -9
- package/lib/vtx-jzlj-df-tpd-modal/components/Collection/index.js +31 -25
- package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/FlowMap.js +4 -3
- package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/index.js +32 -24
- package/lib/vtx-jzlj-df-tpd-modal/components/FactorList.js +38 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTL.js +4 -3
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTYL.js +16 -10
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CZZ.js +16 -8
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/index.js +5 -4
- package/lib/vtx-jzlj-df-tpd-modal/index.js +8 -5
- package/lib/vtx-jzlj-df-tpd-modal/style/index.less +22 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Alarm/Bottom.js +41 -40
- package/lib/vtx-jzlj-gcxm-modal/components/Alarm/index.js +16 -15
- package/lib/vtx-jzlj-gcxm-modal/components/Collection/Chart.js +10 -8
- package/lib/vtx-jzlj-gcxm-modal/components/Collection/index.js +26 -24
- package/lib/vtx-jzlj-gcxm-modal/components/Dispose/FlowMap.js +4 -3
- package/lib/vtx-jzlj-gcxm-modal/components/Dispose/index.js +26 -24
- package/lib/vtx-jzlj-gcxm-modal/components/FactorList.js +41 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTL.js +4 -3
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTYL.js +11 -9
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/CZZ.js +11 -9
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/index.js +11 -9
- package/lib/vtx-jzlj-gcxm-modal/index.js +10 -6
- package/lib/vtx-jzlj-gcxm-modal/style/index.less +45 -0
- package/lib/vtx-jzlj-xnc-modal/components/Collection/Chart.js +11 -9
- package/lib/vtx-jzlj-xnc-modal/components/Collection/index.js +27 -25
- package/lib/vtx-jzlj-xnc-modal/components/Dispose/FlowMap.js +4 -3
- package/lib/vtx-jzlj-xnc-modal/components/Dispose/index.js +26 -24
- package/lib/vtx-jzlj-xnc-modal/components/FactorList.js +41 -0
- package/lib/vtx-jzlj-xnc-modal/components/Overview/CTL.js +4 -3
- package/lib/vtx-jzlj-xnc-modal/components/Overview/CTYL.js +12 -10
- package/lib/vtx-jzlj-xnc-modal/components/Overview/CZZ.js +13 -11
- package/lib/vtx-jzlj-xnc-modal/components/Overview/index.js +24 -13
- package/lib/vtx-jzlj-xnc-modal/index.js +9 -5
- package/lib/vtx-jzlj-xnc-modal/style/index.less +46 -0
- package/lib/vtx-jzlj-ysqy-modal/components/Overview/index.js +29 -12
- package/lib/vtx-jzlj-ysqy-modal/components/Overview/index.less +21 -0
- package/lib/vtx-jzlj-ysqy-modal/index.js +6 -2
- package/lib/vtx-kh-modal/api2.js +10 -9
- package/lib/vtx-kh-modal/components/BaseInfo/index.js +21 -23
- package/lib/vtx-kh-modal/components/Record/index.js +18 -17
- package/lib/vtx-kh-modal/index.js +3 -2
- package/lib/vtx-kh-modal/style/index.js +0 -1
- package/lib/vtx-qyry-modal/api.js +8 -7
- package/lib/vtx-qyry-modal/index.js +17 -16
- package/lib/vtx-restaurant-modal/components/Alarm/AlarmRecord.js +18 -9
- package/lib/vtx-restaurant-modal/components/Alarm/AlarmTrend.js +7 -2
- package/lib/vtx-restaurant-modal/components/Alarm/AlarmTypeAnalysis.js +4 -3
- package/lib/vtx-restaurant-modal/components/Alarm/StaticInfo.js +3 -2
- package/lib/vtx-restaurant-modal/components/Alarm/index.js +2 -1
- package/lib/vtx-restaurant-modal/components/Basic/CollectRule.js +6 -5
- package/lib/vtx-restaurant-modal/components/Basic/DetailList.js +11 -7
- package/lib/vtx-restaurant-modal/components/Basic/Info.js +4 -1
- package/lib/vtx-restaurant-modal/components/Basic/Summary.js +6 -5
- package/lib/vtx-restaurant-modal/components/Basic/SummaryStatistics.js +3 -2
- package/lib/vtx-restaurant-modal/components/Basic/index.js +6 -5
- package/lib/vtx-restaurant-modal/components/Calendar/index.js +3 -2
- package/lib/vtx-restaurant-modal/components/Collection/index.js +5 -4
- package/lib/vtx-restaurant-modal/components/SignAndContract/ContactDetail.js +24 -23
- package/lib/vtx-restaurant-modal/components/SignAndContract/index.js +11 -10
- package/lib/vtx-restaurant-modal/config.js +42 -43
- package/lib/vtx-restaurant-modal/index.js +16 -7
- package/lib/vtx-road-modal/api.js +14 -13
- package/lib/vtx-road-modal/components/BaseInfo/Rules.js +6 -2
- package/lib/vtx-road-modal/components/BaseInfo/Work.js +26 -21
- package/lib/vtx-road-modal/components/BaseInfo/index.js +7 -5
- package/lib/vtx-road-modal/components/BaseInfo/index.less +37 -0
- package/lib/vtx-road-modal/components/Calendar/index.js +5 -4
- package/lib/vtx-road-modal/components/LaneBaseInfo/Rules.js +6 -3
- package/lib/vtx-road-modal/components/LaneBaseInfo/Work.js +25 -20
- package/lib/vtx-road-modal/components/LaneBaseInfo/index.js +5 -3
- package/lib/vtx-road-modal/components/LaneBaseInfo/index.less +42 -0
- package/lib/vtx-road-modal/components/LaneCalendar/index.js +7 -6
- package/lib/vtx-road-modal/components/LaneStatistical/index.js +37 -24
- package/lib/vtx-road-modal/components/LaneStatistical/index.less +8 -0
- package/lib/vtx-road-modal/components/Statistical/index.js +36 -23
- package/lib/vtx-road-modal/components/Statistical/index.less +8 -0
- package/lib/vtx-road-modal/index.js +30 -21
- package/lib/vtx-road-modal/style/index.js +1 -3
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/CYLJTF.js +7 -6
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/Distribute.js +3 -2
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/FLZL_TREND.js +3 -2
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSCSFB.js +3 -2
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSSD.js +5 -4
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSYZQS.js +4 -3
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/GDCLXL.js +8 -7
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/HTLJPH.js +6 -5
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_FB.js +9 -8
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_GD.js +4 -3
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_PIE.js +5 -4
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_TREND.js +3 -2
- package/lib/vtx-sdyd-tfd-modal/components/Alarm/index.js +5 -4
- package/lib/vtx-sdyd-tfd-modal/components/OverView/Hot.js +13 -12
- package/lib/vtx-sdyd-tfd-modal/components/OverView/Left.js +14 -12
- package/lib/vtx-sdyd-tfd-modal/components/OverView/Manage.js +14 -13
- package/lib/vtx-sdyd-tfd-modal/components/OverView/RightBottom.js +12 -11
- package/lib/vtx-sdyd-tfd-modal/components/Sbzj/index.js +11 -10
- package/lib/vtx-sdyd-tfd-modal/components/TFRD/index.js +13 -12
- package/lib/vtx-sdyd-tfd-modal/components/WGGS/index.js +2 -1
- package/lib/vtx-sdyd-tfd-modal/components/WGXW/Content.js +2 -1
- package/lib/vtx-sdyd-tfd-modal/config.js +6 -6
- package/lib/vtx-sdyd-tfd-modal/index.js +7 -6
- package/lib/vtx-shxq-modal/api.js +9 -8
- package/lib/vtx-shxq-modal/components/AlarmRecord/List.js +8 -7
- package/lib/vtx-shxq-modal/components/AlarmRecord/index.js +12 -11
- package/lib/vtx-shxq-modal/components/BaseInfo/index.js +11 -10
- package/lib/vtx-shxq-modal/components/Tfd/index.js +7 -6
- package/lib/vtx-shxq-modal/components/ThrowCalendar/Chart.js +2 -1
- package/lib/vtx-shxq-modal/components/ThrowCalendar/List.js +4 -3
- package/lib/vtx-shxq-modal/components/ThrowCalendar/index.js +6 -5
- package/lib/vtx-shxq-modal/components/ThrowRecord/List.js +15 -14
- package/lib/vtx-shxq-modal/components/ThrowRecord/index.js +10 -9
- package/lib/vtx-shxq-modal/index.js +6 -5
- package/lib/vtx-staff-modal/api.js +8 -7
- package/lib/vtx-staff-modal/components/AlarmInfo/Charts.js +6 -5
- package/lib/vtx-staff-modal/components/AlarmInfo/List.js +8 -7
- package/lib/vtx-staff-modal/components/AlarmInfo/index.js +3 -2
- package/lib/vtx-staff-modal/components/Attendance/Exeception.js +5 -4
- package/lib/vtx-staff-modal/components/Attendance/Record.js +22 -20
- package/lib/vtx-staff-modal/components/Attendance/WorkingHours.js +8 -7
- package/lib/vtx-staff-modal/components/BaseInfo/ListZymx.js +13 -11
- package/lib/vtx-staff-modal/components/BaseInfo/WorkStatic.js +9 -8
- package/lib/vtx-staff-modal/components/BaseInfo/index.js +7 -6
- package/lib/vtx-staff-modal/components/Calendar/index.js +8 -7
- package/lib/vtx-staff-modal/components/Equipment/index.js +23 -22
- package/lib/vtx-staff-modal/index.js +6 -5
- package/lib/vtx-tfd-modal/api.js +7 -6
- package/lib/vtx-tfd-modal/components/BaseInfo/Jczbqs.js +6 -5
- package/lib/vtx-tfd-modal/components/BaseInfo/Qyjcl.js +4 -3
- package/lib/vtx-tfd-modal/components/BaseInfo/index.js +17 -17
- package/lib/vtx-tfd-modal/index.js +4 -4
- package/lib/vtx-wr-modal/components/Appraise/index.js +18 -18
- package/lib/vtx-wr-modal/components/Base/Jbxx.js +15 -16
- package/lib/vtx-wr-modal/components/Base/Ptss.js +17 -16
- package/lib/vtx-wr-modal/components/Base/Sjjg.js +12 -9
- package/lib/vtx-wr-modal/components/Base/index.js +14 -14
- package/lib/vtx-wr-modal/components/Build/index.js +6 -5
- package/lib/vtx-wr-modal/components/File/index.js +12 -15
- package/lib/vtx-wr-modal/components/File/index.less +8 -3
- package/lib/vtx-wr-modal/components/Score/index.js +20 -27
- package/lib/vtx-wr-modal/components/Score/index.less +49 -26
- package/lib/vtx-wr-modal/index.js +5 -2
- package/lib/vtx-wr-modal/style/index.js +0 -1
- package/lib/vtx-zf-modal/components/Base/index.js +37 -36
- package/lib/vtx-zf-modal/components/CkEditorCustom/index.js +22 -21
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/CKModal.js +9 -7
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/config.js +27 -27
- package/lib/vtx-zf-modal/components/File/index.js +15 -14
- package/lib/vtx-zf-modal/components/Process/index.js +17 -17
- package/lib/vtx-zf-modal/components/Record/index.js +9 -8
- package/lib/vtx-zf-modal/components/Right/index.js +7 -7
- package/lib/vtx-zf-modal/style/index.js +0 -1
- package/lib/vtx-zg-modal/api.js +13 -12
- package/lib/vtx-zg-modal/components/BaseInfo/index.js +52 -35
- package/lib/vtx-zg-modal/components/BaseInfo/index.less +48 -1
- package/lib/vtx-zg-modal/index.js +2 -1
- package/lib/vtx-zzz-modal/index.js +2 -1
- package/package.json +30 -19
|
@@ -20,6 +20,7 @@ import Info from "../../../components/Info";
|
|
|
20
20
|
import { CarContext } from "../../../index";
|
|
21
21
|
import "./index.less";
|
|
22
22
|
import np from 'number-precision';
|
|
23
|
+
import { translateLocaleText } from "./../../../../hooks/useTranslation.js";
|
|
23
24
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
25
|
var BaseInfo = function BaseInfo() {
|
|
25
26
|
var _useContext = useContext(CarContext),
|
|
@@ -41,39 +42,39 @@ var BaseInfo = function BaseInfo() {
|
|
|
41
42
|
var todayInfo = _.last(taskDaySummary) || {};
|
|
42
43
|
var yesterdayTaskInfo = taskDaySummary[taskDaySummary.length - 2] || {};
|
|
43
44
|
var data = [{
|
|
44
|
-
name: '
|
|
45
|
-
unit: '
|
|
45
|
+
name: translateLocaleText("t('vtxcarmodal.point')"),
|
|
46
|
+
unit: translateLocaleText("t('vtxjzljgcxmmodal.itemUnit')"),
|
|
46
47
|
value: todayInfo === null || todayInfo === void 0 ? void 0 : todayInfo.syPointNum,
|
|
47
48
|
img: isDark ? require("../../../imgs/dark_point.png") : require("../../../imgs/point.png"),
|
|
48
49
|
fontType: 'blue'
|
|
49
50
|
}, {
|
|
50
|
-
name: '
|
|
51
|
-
unit: '
|
|
51
|
+
name: translateLocaleText("t('vtxcarmodal.items')"),
|
|
52
|
+
unit: translateLocaleText("t('vtxjzljgcxmmodal.itemUnit')"),
|
|
52
53
|
value: todayInfo === null || todayInfo === void 0 ? void 0 : todayInfo.ysSyPointNum,
|
|
53
54
|
img: isDark ? require("../../../imgs/dark_ys_point.png") : require("../../../imgs/ys_point.png"),
|
|
54
55
|
fontType: 'green'
|
|
55
56
|
}, {
|
|
56
|
-
name: '
|
|
57
|
-
unit: '
|
|
57
|
+
name: translateLocaleText("t('vtxcarmodal.items2')"),
|
|
58
|
+
unit: translateLocaleText("t('vtxjzljgcxmmodal.itemUnit')"),
|
|
58
59
|
value: np.minus((todayInfo === null || todayInfo === void 0 ? void 0 : todayInfo.syPointNum) || 0, (todayInfo === null || todayInfo === void 0 ? void 0 : todayInfo.ysSyPointNum) || 0),
|
|
59
60
|
img: isDark ? require("../../../imgs/dark_ws_point.png") : require("../../../imgs/ws_point.png"),
|
|
60
61
|
fontType: 'yellow'
|
|
61
62
|
}, {
|
|
62
|
-
name: '
|
|
63
|
-
unit: '
|
|
63
|
+
name: translateLocaleText("t('vtxcarmodal.items3')"),
|
|
64
|
+
unit: translateLocaleText("t('vtxjzljgcxmmodal.itemUnit')"),
|
|
64
65
|
value: todayInfo === null || todayInfo === void 0 ? void 0 : todayInfo.unplannedTaskNum,
|
|
65
66
|
img: isDark ? require("../../../imgs/dark_unplanned_point.png") : require("../../../imgs/unplanned_point.png"),
|
|
66
67
|
fontType: 'cyan'
|
|
67
68
|
}, {
|
|
68
|
-
name: '
|
|
69
|
-
unit: '
|
|
69
|
+
name: translateLocaleText("t('vtxcarmodal.collectionBucketCount')"),
|
|
70
|
+
unit: translateLocaleText("t('vtxccunitmodal.bucketUnit')"),
|
|
70
71
|
value: todayInfo === null || todayInfo === void 0 ? void 0 : todayInfo.ysTrashBinNum,
|
|
71
72
|
compare: true,
|
|
72
73
|
compareValue: np.minus(todayInfo.ysTrashBinNum || 0, yesterdayTaskInfo.ysTrashBinNum || 0),
|
|
73
74
|
img: isDark ? require("../../../imgs/dark_trash.png") : require("../../../imgs/trash.png"),
|
|
74
75
|
fontType: 'blue'
|
|
75
76
|
}, {
|
|
76
|
-
name: '
|
|
77
|
+
name: translateLocaleText("t('vtxcpmodal.weight')"),
|
|
77
78
|
unit: 'kg',
|
|
78
79
|
value: todayInfo === null || todayInfo === void 0 ? void 0 : todayInfo.weight,
|
|
79
80
|
compare: true,
|
|
@@ -98,7 +99,7 @@ var BaseInfo = function BaseInfo() {
|
|
|
98
99
|
height: 243
|
|
99
100
|
},
|
|
100
101
|
children: /*#__PURE__*/_jsx(VmWrapper, {
|
|
101
|
-
title: '
|
|
102
|
+
title: translateLocaleText("t('vtxcarmodal.operationInformation')"),
|
|
102
103
|
filterType: "datePicker",
|
|
103
104
|
dateValue: date,
|
|
104
105
|
filterChange: setDate,
|
|
@@ -116,7 +117,7 @@ var BaseInfo = function BaseInfo() {
|
|
|
116
117
|
flex: '112px',
|
|
117
118
|
children: /*#__PURE__*/_jsx(VmProgress.Circle, {
|
|
118
119
|
rate: todayInfo.completePercent || 0,
|
|
119
|
-
name: '
|
|
120
|
+
name: translateLocaleText("t('vtxcarmodal.complete')")
|
|
120
121
|
})
|
|
121
122
|
}), /*#__PURE__*/_jsx(Col, {
|
|
122
123
|
flex: '1',
|
|
@@ -137,34 +138,34 @@ var BaseInfo = function BaseInfo() {
|
|
|
137
138
|
}), /*#__PURE__*/_jsx("div", {
|
|
138
139
|
className: 'vtx-car-info-right-wrap-bottom',
|
|
139
140
|
children: /*#__PURE__*/_jsx(VmWrapper, {
|
|
140
|
-
title: '
|
|
141
|
+
title: translateLocaleText("t('vtxcarmodal.7Analyze')"),
|
|
141
142
|
children: /*#__PURE__*/_jsx(VmBarCharts, {
|
|
142
143
|
dataList: [{
|
|
143
|
-
name: '
|
|
144
|
+
name: translateLocaleText("t('vtxcarmodal.point')"),
|
|
144
145
|
data: _.map(taskDaySummary, 'syPointNum'),
|
|
145
146
|
color: 'geekblue'
|
|
146
147
|
}, {
|
|
147
|
-
name: '
|
|
148
|
+
name: translateLocaleText("t('vtxcarmodal.items')"),
|
|
148
149
|
data: _.map(taskDaySummary, 'ysSyPointNum'),
|
|
149
150
|
color: 'green'
|
|
150
151
|
}, {
|
|
151
|
-
name: '
|
|
152
|
+
name: translateLocaleText("t('vtxcarmodal.items3')"),
|
|
152
153
|
data: _.map(taskDaySummary, 'unplannedTaskNum'),
|
|
153
154
|
color: 'blue'
|
|
154
155
|
}],
|
|
155
156
|
xAxis: _.map(taskDaySummary, 'taskDay'),
|
|
156
157
|
yAxisList: [{
|
|
157
158
|
key: '',
|
|
158
|
-
unit: '
|
|
159
|
-
name: '
|
|
159
|
+
unit: translateLocaleText("t('vtxjzljgcxmmodal.itemUnit')"),
|
|
160
|
+
name: translateLocaleText("t('vtxjzljgcxmmodal.items')")
|
|
160
161
|
}, {
|
|
161
162
|
key: "\u2000",
|
|
162
163
|
unit: '%',
|
|
163
164
|
name: '(%)'
|
|
164
165
|
}],
|
|
165
|
-
unit: '
|
|
166
|
+
unit: translateLocaleText("t('vtxjzljgcxmmodal.itemUnit')"),
|
|
166
167
|
lineList: [{
|
|
167
|
-
name: '
|
|
168
|
+
name: translateLocaleText("t('vtxcarmodal.complete')"),
|
|
168
169
|
data: _.map(taskDaySummary, function (item) {
|
|
169
170
|
return "\u2000".concat(item.completePercent);
|
|
170
171
|
}),
|
|
@@ -8,61 +8,62 @@ import { VmInfoCollection, VmTable, VmTitle, VmWrapper } from "../../../../_comp
|
|
|
8
8
|
import useSettings from "../../../../_hooks/useSettings";
|
|
9
9
|
import { paramSerializer } from "../../../../_util";
|
|
10
10
|
import dayjs from "dayjs";
|
|
11
|
+
import { translateLocaleText } from "./../../../../hooks/useTranslation.js";
|
|
11
12
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
13
|
var Content = function Content(_ref) {
|
|
13
14
|
var data = _ref.data;
|
|
14
15
|
var _CcService$useWeightL = CcService.useWeightList(data.carId, data.collectStartTime, data.collectEndTime),
|
|
15
16
|
weightList = _CcService$useWeightL.weightList;
|
|
16
17
|
var infoData = [{
|
|
17
|
-
label: '
|
|
18
|
+
label: translateLocaleText("t('vtxcarmodal.orderNumber')"),
|
|
18
19
|
value: data.draftCode,
|
|
19
20
|
key: 'draftCode'
|
|
20
21
|
}, {
|
|
21
|
-
label: '
|
|
22
|
+
label: translateLocaleText("t('vtxcarmodal.unitName')"),
|
|
22
23
|
value: data.collectUnitName,
|
|
23
24
|
key: 'collectUnitName'
|
|
24
25
|
}, {
|
|
25
|
-
label: '
|
|
26
|
+
label: translateLocaleText("t('vtxccunitmodal.plateNumber')"),
|
|
26
27
|
value: data.carCode,
|
|
27
28
|
key: 'carCode'
|
|
28
29
|
}, {
|
|
29
|
-
label: '
|
|
30
|
+
label: translateLocaleText("t('vtxcarmodal.collectStaff')"),
|
|
30
31
|
value: data.collectStaffNames,
|
|
31
32
|
key: 'collectStaffNames'
|
|
32
33
|
}, {
|
|
33
|
-
label: '
|
|
34
|
+
label: translateLocaleText("t('vtxtfdmodal.type2')"),
|
|
34
35
|
value: data.garbageTypeStr,
|
|
35
36
|
key: 'garbageTypeStr'
|
|
36
37
|
}];
|
|
37
38
|
var columns = [{
|
|
38
|
-
title: '
|
|
39
|
+
title: translateLocaleText("t('vtxccunitmodal.unitName2')"),
|
|
39
40
|
dataIndex: 'restaurantName'
|
|
40
41
|
}, {
|
|
41
|
-
title: '
|
|
42
|
+
title: translateLocaleText("t('vtxcarmodal.bucketCountBucket')"),
|
|
42
43
|
dataIndex: 'trashNum',
|
|
43
44
|
align: 'right'
|
|
44
45
|
}, {
|
|
45
|
-
title: '
|
|
46
|
+
title: translateLocaleText("t('vtxcarmodal.weightKg')"),
|
|
46
47
|
dataIndex: 'netWeight',
|
|
47
48
|
align: 'right'
|
|
48
49
|
}, {
|
|
49
|
-
title: '
|
|
50
|
+
title: translateLocaleText("t('vtxcarmodal.hoursHours')"),
|
|
50
51
|
dataIndex: 'weighTime',
|
|
51
52
|
render: function render(text) {
|
|
52
53
|
return text ? dayjs(text).format('HH:mm') : '';
|
|
53
54
|
}
|
|
54
55
|
}, {
|
|
55
|
-
title: '
|
|
56
|
+
title: translateLocaleText("t('vtxcarmodal.unit')"),
|
|
56
57
|
dataIndex: 'restaurantSignature',
|
|
57
58
|
render: function render(text) {
|
|
58
59
|
return text ? /*#__PURE__*/_jsx(Image, {
|
|
59
60
|
src: "/vortex/rest/cloud/np/file/downloadFileThumbnail?outputQuality=0.5&scale=0.2&id=".concat(text, "&token=").concat(token),
|
|
60
61
|
preview: {
|
|
61
|
-
|
|
62
|
+
destroyOnHidden: true,
|
|
62
63
|
src: "/cloudFile/common/downloadFile?id=".concat(text, "&token=").concat(token),
|
|
63
64
|
maskClassName: 'maskClass'
|
|
64
65
|
},
|
|
65
|
-
alt: "
|
|
66
|
+
alt: translateLocaleText("t('vtxcarmodal.signature')"),
|
|
66
67
|
style: {
|
|
67
68
|
width: 100,
|
|
68
69
|
height: 100
|
|
@@ -71,27 +72,27 @@ var Content = function Content(_ref) {
|
|
|
71
72
|
}
|
|
72
73
|
}];
|
|
73
74
|
var columns2 = [{
|
|
74
|
-
title: '
|
|
75
|
+
title: translateLocaleText("t('vtxcarmodal.unitName2')"),
|
|
75
76
|
dataIndex: 'disposeUnitName'
|
|
76
77
|
}, {
|
|
77
|
-
title: '
|
|
78
|
+
title: translateLocaleText("t('vtxcarmodal.weightKg')"),
|
|
78
79
|
dataIndex: 'carWeight',
|
|
79
80
|
align: 'right'
|
|
80
81
|
}, {
|
|
81
|
-
title: '
|
|
82
|
+
title: translateLocaleText("t('vtxcarmodal.hours')"),
|
|
82
83
|
dataIndex: 'collectStartTime'
|
|
83
84
|
}, {
|
|
84
|
-
title: '
|
|
85
|
+
title: translateLocaleText("t('vtxcarmodal.unit2')"),
|
|
85
86
|
dataIndex: 'factorySignFileId',
|
|
86
87
|
render: function render(text) {
|
|
87
88
|
return text ? /*#__PURE__*/_jsx(Image, {
|
|
88
89
|
src: "/vortex/rest/cloud/np/file/downloadFileThumbnail?outputQuality=0.5&scale=0.2&id=".concat(text, "&token=").concat(token),
|
|
89
90
|
preview: {
|
|
90
|
-
|
|
91
|
+
destroyOnHidden: true,
|
|
91
92
|
src: "/cloudFile/common/downloadFile?id=".concat(text, "&token=").concat(token),
|
|
92
93
|
maskClassName: 'maskClass'
|
|
93
94
|
},
|
|
94
|
-
alt: "
|
|
95
|
+
alt: translateLocaleText("t('vtxcarmodal.signature')"),
|
|
95
96
|
style: {
|
|
96
97
|
width: 100,
|
|
97
98
|
height: 100
|
|
@@ -108,7 +109,7 @@ var Content = function Content(_ref) {
|
|
|
108
109
|
if (data.collectStartTime && data.collectEndTime) {
|
|
109
110
|
window.location.href = "/cloud/cc-reborn/api/v101/draftDisposeUnit/draftPdfDownload?".concat(paramSerializer(params));
|
|
110
111
|
} else {
|
|
111
|
-
message.
|
|
112
|
+
message.warning(translateLocaleText("t('vtxcarmodal.yesNone')"));
|
|
112
113
|
}
|
|
113
114
|
};
|
|
114
115
|
var disposeUnitName = data.disposeUnitName,
|
|
@@ -128,14 +129,14 @@ var Content = function Content(_ref) {
|
|
|
128
129
|
padding: 10
|
|
129
130
|
},
|
|
130
131
|
children: /*#__PURE__*/_jsx(VmWrapper, {
|
|
131
|
-
title: "
|
|
132
|
+
title: translateLocaleText("t('vtxcarmodal.jointOrderInformation')"),
|
|
132
133
|
extra: /*#__PURE__*/_jsx(Space, {
|
|
133
134
|
children: /*#__PURE__*/_jsx(Button, {
|
|
134
135
|
onClick: function onClick() {
|
|
135
136
|
return onDownload();
|
|
136
137
|
},
|
|
137
138
|
type: 'primary',
|
|
138
|
-
children: "
|
|
139
|
+
children: translateLocaleText("t('vtxcarmodal.export')")
|
|
139
140
|
})
|
|
140
141
|
}),
|
|
141
142
|
children: /*#__PURE__*/_jsxs(_Fragment, {
|
|
@@ -145,14 +146,14 @@ var Content = function Content(_ref) {
|
|
|
145
146
|
width: "50%",
|
|
146
147
|
ellipsis: true
|
|
147
148
|
}), /*#__PURE__*/_jsx(VmTitle, {
|
|
148
|
-
title: '
|
|
149
|
+
title: translateLocaleText("t('vtxcarmodal.collectionInfo')")
|
|
149
150
|
}), /*#__PURE__*/_jsx(VmTable, {
|
|
150
151
|
columns: columns,
|
|
151
152
|
dataSource: weightList || [],
|
|
152
153
|
height: 220,
|
|
153
154
|
pagination: false
|
|
154
155
|
}), /*#__PURE__*/_jsx(VmTitle, {
|
|
155
|
-
title: '
|
|
156
|
+
title: translateLocaleText("t('vtxcarmodal.disposeInfo')")
|
|
156
157
|
}), /*#__PURE__*/_jsx(VmTable, {
|
|
157
158
|
columns: columns2,
|
|
158
159
|
dataSource: weighbridge || [],
|
|
@@ -169,8 +170,8 @@ var Detail = function Detail(_ref2) {
|
|
|
169
170
|
var _useSettings = useSettings(),
|
|
170
171
|
theme = _useSettings.theme;
|
|
171
172
|
return /*#__PURE__*/_jsx(VtxBaseModal, {
|
|
172
|
-
title: '
|
|
173
|
-
subTitle: '
|
|
173
|
+
title: translateLocaleText("t('vtxcarmodal.orderManage')"),
|
|
174
|
+
subTitle: translateLocaleText("t('vtxcarmodal.view')"),
|
|
174
175
|
tabs: [{
|
|
175
176
|
key: 'info'
|
|
176
177
|
}],
|
|
@@ -19,6 +19,7 @@ import Detail from "./Detail";
|
|
|
19
19
|
import { VmTable, VmWrapper } from "../../../../_components";
|
|
20
20
|
import dayjs from "dayjs";
|
|
21
21
|
import { VtxExport } from '@vtx/components';
|
|
22
|
+
import { translateLocaleText } from "./../../../../hooks/useTranslation.js";
|
|
22
23
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
24
|
var OrderInfo = function OrderInfo() {
|
|
24
25
|
var _useContext = useContext(CarContext),
|
|
@@ -71,37 +72,37 @@ var OrderInfo = function OrderInfo() {
|
|
|
71
72
|
loading: loading
|
|
72
73
|
};
|
|
73
74
|
var columns = [{
|
|
74
|
-
title: '
|
|
75
|
+
title: translateLocaleText("t('vtxrestaurantmodal.hours')"),
|
|
75
76
|
dataIndex: 'reportDay',
|
|
76
77
|
key: 'reportDay',
|
|
77
78
|
width: 100
|
|
78
79
|
}, {
|
|
79
|
-
title: '
|
|
80
|
+
title: translateLocaleText("t('vtxccunitmodal.plateNumber')"),
|
|
80
81
|
dataIndex: 'carCode',
|
|
81
82
|
key: 'carCode',
|
|
82
83
|
width: 100
|
|
83
84
|
}, {
|
|
84
|
-
title: '
|
|
85
|
+
title: translateLocaleText("t('vtxtfdmodal.type2')"),
|
|
85
86
|
dataIndex: 'garbageTypeStr',
|
|
86
87
|
key: 'garbageTypeStr',
|
|
87
88
|
width: 100
|
|
88
89
|
}, {
|
|
89
|
-
title: '
|
|
90
|
+
title: translateLocaleText("t('vtxcpmodal.unit')"),
|
|
90
91
|
dataIndex: 'collectUnitName',
|
|
91
92
|
key: 'collectUnitName',
|
|
92
93
|
width: 200
|
|
93
94
|
}, {
|
|
94
|
-
title: '
|
|
95
|
+
title: translateLocaleText("t('vtxqyrymodal.administrativeDivision')"),
|
|
95
96
|
dataIndex: 'divisionName',
|
|
96
97
|
key: 'divisionName',
|
|
97
98
|
width: 100
|
|
98
99
|
}, {
|
|
99
|
-
title: '
|
|
100
|
+
title: translateLocaleText("t('vtxcarmodal.responsiblePerson')"),
|
|
100
101
|
dataIndex: 'collectStaffNames',
|
|
101
102
|
key: 'collectStaffNames',
|
|
102
103
|
width: 160
|
|
103
104
|
}, {
|
|
104
|
-
title: '
|
|
105
|
+
title: translateLocaleText("t('common.action')"),
|
|
105
106
|
dadaIndex: 'action',
|
|
106
107
|
key: 'action',
|
|
107
108
|
render: function render(_un, record) {
|
|
@@ -113,7 +114,7 @@ var OrderInfo = function OrderInfo() {
|
|
|
113
114
|
info: record
|
|
114
115
|
});
|
|
115
116
|
},
|
|
116
|
-
children: "
|
|
117
|
+
children: translateLocaleText("t('vtxcarmodal.view')")
|
|
117
118
|
})
|
|
118
119
|
});
|
|
119
120
|
}
|
|
@@ -135,12 +136,12 @@ var OrderInfo = function OrderInfo() {
|
|
|
135
136
|
field: item.key
|
|
136
137
|
};
|
|
137
138
|
}));
|
|
138
|
-
commonParams.fileName = '
|
|
139
|
+
commonParams.fileName = translateLocaleText("t('vtxcarmodal.jointOrderInformation')");
|
|
139
140
|
var dataSource = tableProps.dataSource;
|
|
140
141
|
switch (exportType) {
|
|
141
142
|
case 'page':
|
|
142
143
|
if (dataSource.length === 0) {
|
|
143
|
-
message.
|
|
144
|
+
message.warning(translateLocaleText("t('export.noCurrentPageData')"));
|
|
144
145
|
return null;
|
|
145
146
|
}
|
|
146
147
|
return _objectSpread(_objectSpread({}, commonParams), {}, {
|
|
@@ -151,11 +152,11 @@ var OrderInfo = function OrderInfo() {
|
|
|
151
152
|
});
|
|
152
153
|
case 'all':
|
|
153
154
|
if (tableProps.pagination.total === 0) {
|
|
154
|
-
message.
|
|
155
|
+
message.warning(translateLocaleText("t('export.noData')"));
|
|
155
156
|
return null;
|
|
156
157
|
}
|
|
157
158
|
if (tableProps.pagination.total > 10000) {
|
|
158
|
-
message.
|
|
159
|
+
message.warning(translateLocaleText("t('vtxcarmodal.exportUpperLimit1TimesExportUpperLimitExport')"));
|
|
159
160
|
}
|
|
160
161
|
return _objectSpread(_objectSpread({}, commonParams), {}, {
|
|
161
162
|
downloadAll: true
|
|
@@ -169,12 +170,12 @@ var OrderInfo = function OrderInfo() {
|
|
|
169
170
|
});
|
|
170
171
|
},
|
|
171
172
|
afterExport: function afterExport(status) {
|
|
172
|
-
status ? message.success('
|
|
173
|
+
status ? message.success(translateLocaleText("t('vtxcarmodal.exportSuccess')")) : message.error(translateLocaleText("t('vtxcarmodal.exportFailed')"));
|
|
173
174
|
}
|
|
174
175
|
};
|
|
175
176
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
176
177
|
children: [/*#__PURE__*/_jsx(VmWrapper, {
|
|
177
|
-
title: '
|
|
178
|
+
title: translateLocaleText("t('vtxcarmodal.jointOrderInformation')"),
|
|
178
179
|
filterType: 'rangePicker',
|
|
179
180
|
filterChange: function filterChange(date) {
|
|
180
181
|
setState({
|
|
@@ -26,6 +26,7 @@ import lightTrashIcon from "../../../imgs/trash.png";
|
|
|
26
26
|
import lightUnplannedIcon from "../../../imgs/unplanned_point.png";
|
|
27
27
|
import lightWeightIcon from "../../../imgs/weight.png";
|
|
28
28
|
import { CarContext } from "../../../index";
|
|
29
|
+
import { translateLocaleText } from "./../../../../hooks/useTranslation.js";
|
|
29
30
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
30
31
|
var StaticInfo = function StaticInfo() {
|
|
31
32
|
var _useSettings = useSettings(),
|
|
@@ -59,7 +60,7 @@ var StaticInfo = function StaticInfo() {
|
|
|
59
60
|
weightIcon = darkWeightIcon;
|
|
60
61
|
}
|
|
61
62
|
var columns = [{
|
|
62
|
-
title: '
|
|
63
|
+
title: translateLocaleText("t('vtxareamodal.date')"),
|
|
63
64
|
dataIndex: 'taskDay',
|
|
64
65
|
key: 'taskDay',
|
|
65
66
|
sorter: function sorter(a, b) {
|
|
@@ -67,7 +68,7 @@ var StaticInfo = function StaticInfo() {
|
|
|
67
68
|
},
|
|
68
69
|
width: 120
|
|
69
70
|
}, {
|
|
70
|
-
title: '
|
|
71
|
+
title: translateLocaleText("t('vtxcarmodal.pointItems')"),
|
|
71
72
|
dataIndex: 'syPointNum',
|
|
72
73
|
key: 'syPointNum',
|
|
73
74
|
align: 'right',
|
|
@@ -78,7 +79,7 @@ var StaticInfo = function StaticInfo() {
|
|
|
78
79
|
},
|
|
79
80
|
width: 160
|
|
80
81
|
}, {
|
|
81
|
-
title: '
|
|
82
|
+
title: translateLocaleText("t('vtxcarmodal.items')"),
|
|
82
83
|
dataIndex: 'ysSyPointNum',
|
|
83
84
|
key: 'ysSyPointNum',
|
|
84
85
|
align: 'right',
|
|
@@ -89,7 +90,7 @@ var StaticInfo = function StaticInfo() {
|
|
|
89
90
|
},
|
|
90
91
|
width: 140
|
|
91
92
|
}, {
|
|
92
|
-
title: '
|
|
93
|
+
title: translateLocaleText("t('vtxcarmodal.items2')"),
|
|
93
94
|
dataIndex: 'wsSyPointNum',
|
|
94
95
|
key: 'wsSyPointNum',
|
|
95
96
|
align: 'right',
|
|
@@ -98,7 +99,7 @@ var StaticInfo = function StaticInfo() {
|
|
|
98
99
|
},
|
|
99
100
|
width: 140
|
|
100
101
|
}, {
|
|
101
|
-
title: '
|
|
102
|
+
title: translateLocaleText("t('vtxcarmodal.items3')"),
|
|
102
103
|
dataIndex: 'unplannedTaskNum',
|
|
103
104
|
key: 'unplannedTaskNum',
|
|
104
105
|
align: 'right',
|
|
@@ -109,7 +110,7 @@ var StaticInfo = function StaticInfo() {
|
|
|
109
110
|
},
|
|
110
111
|
width: 140
|
|
111
112
|
}, {
|
|
112
|
-
title: '
|
|
113
|
+
title: translateLocaleText("t('vtxcarmodal.collectionBucketCountWithUnit')"),
|
|
113
114
|
dataIndex: 'ysTrashBinNum',
|
|
114
115
|
key: 'ysTrashBinNum',
|
|
115
116
|
align: 'right',
|
|
@@ -120,7 +121,7 @@ var StaticInfo = function StaticInfo() {
|
|
|
120
121
|
},
|
|
121
122
|
width: 140
|
|
122
123
|
}, {
|
|
123
|
-
title: '
|
|
124
|
+
title: translateLocaleText("t('vtxcarmodal.weightKg2')"),
|
|
124
125
|
dataIndex: 'weight',
|
|
125
126
|
key: 'weight',
|
|
126
127
|
render: function render(text) {
|
|
@@ -131,7 +132,7 @@ var StaticInfo = function StaticInfo() {
|
|
|
131
132
|
align: 'right',
|
|
132
133
|
width: 140
|
|
133
134
|
}, {
|
|
134
|
-
title: '
|
|
135
|
+
title: translateLocaleText("t('vtxcarmodal.complete')"),
|
|
135
136
|
dataIndex: 'completePercent',
|
|
136
137
|
key: 'completePercent',
|
|
137
138
|
align: 'right',
|
|
@@ -302,7 +303,7 @@ var StaticInfo = function StaticInfo() {
|
|
|
302
303
|
});
|
|
303
304
|
};
|
|
304
305
|
return /*#__PURE__*/_jsxs(VmWrapper, {
|
|
305
|
-
title: '
|
|
306
|
+
title: translateLocaleText("t('vtxshxqmodal.analyze2')"),
|
|
306
307
|
needChange: true,
|
|
307
308
|
showCalendar: true,
|
|
308
309
|
onChange: setType,
|
|
@@ -316,19 +317,19 @@ var StaticInfo = function StaticInfo() {
|
|
|
316
317
|
children: [/*#__PURE__*/_jsxs("div", {
|
|
317
318
|
className: 'vtx-car-calendar-head',
|
|
318
319
|
children: [[{
|
|
319
|
-
name: '
|
|
320
|
+
name: translateLocaleText("t('vtxcarmodal.items4')"),
|
|
320
321
|
img: pointIcon,
|
|
321
322
|
type: 'green'
|
|
322
323
|
}, {
|
|
323
|
-
name: '
|
|
324
|
+
name: translateLocaleText("t('vtxcarmodal.items5')"),
|
|
324
325
|
img: unplannedIcon,
|
|
325
326
|
type: 'green'
|
|
326
327
|
}, {
|
|
327
|
-
name: '
|
|
328
|
+
name: translateLocaleText("t('vtxcarmodal.bucketCount')"),
|
|
328
329
|
img: trashIcon,
|
|
329
330
|
type: 'blue'
|
|
330
331
|
}, {
|
|
331
|
-
name: '
|
|
332
|
+
name: translateLocaleText("t('vtxshxqmodal.weightKg')"),
|
|
332
333
|
img: weightIcon,
|
|
333
334
|
type: 'blue'
|
|
334
335
|
}].map(function (item, index) {
|
|
@@ -339,7 +340,7 @@ var StaticInfo = function StaticInfo() {
|
|
|
339
340
|
children: [/*#__PURE__*/_jsx("div", {
|
|
340
341
|
className: 'vtx-car-calendar-complete-legend'
|
|
341
342
|
}), /*#__PURE__*/_jsx("div", {
|
|
342
|
-
children: "
|
|
343
|
+
children: translateLocaleText("t('vtxcarmodal.complete')")
|
|
343
344
|
})]
|
|
344
345
|
})]
|
|
345
346
|
}), /*#__PURE__*/_jsx("div", {
|
|
@@ -357,31 +358,31 @@ var StaticInfo = function StaticInfo() {
|
|
|
357
358
|
rowKey: "id"
|
|
358
359
|
}, tableProps)), type === 'chart' && /*#__PURE__*/_jsx(VmBarCharts, {
|
|
359
360
|
dataList: [{
|
|
360
|
-
name: '
|
|
361
|
+
name: translateLocaleText("t('vtxcarmodal.point')"),
|
|
361
362
|
data: _.map(taskDaySummary, 'syPointNum'),
|
|
362
363
|
color: 'geekblue'
|
|
363
364
|
}, {
|
|
364
|
-
name: '
|
|
365
|
+
name: translateLocaleText("t('vtxcarmodal.items')"),
|
|
365
366
|
data: _.map(taskDaySummary, 'ysSyPointNum'),
|
|
366
367
|
color: 'green'
|
|
367
368
|
}, {
|
|
368
|
-
name: '
|
|
369
|
+
name: translateLocaleText("t('vtxcarmodal.items3')"),
|
|
369
370
|
data: _.map(taskDaySummary, 'unplannedTaskNum'),
|
|
370
371
|
color: 'blue'
|
|
371
372
|
}],
|
|
372
373
|
xAxis: _.map(taskDaySummary, 'taskDay'),
|
|
373
374
|
yAxisList: [{
|
|
374
375
|
key: '',
|
|
375
|
-
unit: '
|
|
376
|
-
name: '
|
|
376
|
+
unit: translateLocaleText("t('vtxjzljgcxmmodal.itemUnit')"),
|
|
377
|
+
name: translateLocaleText("t('vtxjzljgcxmmodal.items')")
|
|
377
378
|
}, {
|
|
378
379
|
key: "\u2000",
|
|
379
380
|
unit: '%',
|
|
380
381
|
name: '(%)'
|
|
381
382
|
}],
|
|
382
|
-
unit: '
|
|
383
|
+
unit: translateLocaleText("t('vtxjzljgcxmmodal.itemUnit')"),
|
|
383
384
|
lineList: [{
|
|
384
|
-
name: '
|
|
385
|
+
name: translateLocaleText("t('vtxcarmodal.complete')"),
|
|
385
386
|
data: _.map(taskDaySummary, function (item) {
|
|
386
387
|
return "\u2000".concat(item.completePercent);
|
|
387
388
|
}),
|
|
@@ -19,6 +19,7 @@ import { VmEmpty, VmTable, VmWrapper } from "../../../../_components";
|
|
|
19
19
|
import useSettings from "../../../../_hooks/useSettings";
|
|
20
20
|
import { CcService } from "../../../api";
|
|
21
21
|
import { CarContext } from "../../../index";
|
|
22
|
+
import { translateLocaleText } from "./../../../../hooks/useTranslation.js";
|
|
22
23
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
24
|
var Detail = function Detail(_ref) {
|
|
24
25
|
var startDate = _ref.startDate,
|
|
@@ -65,60 +66,60 @@ var Detail = function Detail(_ref) {
|
|
|
65
66
|
});
|
|
66
67
|
};
|
|
67
68
|
var columns = [{
|
|
68
|
-
title: '
|
|
69
|
+
title: translateLocaleText("t('vtxtfdmodal.type2')"),
|
|
69
70
|
dataIndex: 'garbageTypeStr',
|
|
70
71
|
key: 'garbageTypeStr',
|
|
71
72
|
fixed: 'left',
|
|
72
73
|
width: 85
|
|
73
74
|
}, {
|
|
74
|
-
title: '
|
|
75
|
+
title: translateLocaleText("t('vtxcarmodal.bucketCount')"),
|
|
75
76
|
dataIndex: 'trashNum',
|
|
76
77
|
key: 'trashNum',
|
|
77
78
|
width: 125,
|
|
78
79
|
align: 'right'
|
|
79
80
|
}, {
|
|
80
|
-
title: '
|
|
81
|
+
title: translateLocaleText("t('vtxccunitmodal.kg')"),
|
|
81
82
|
dataIndex: 'netWeight',
|
|
82
83
|
key: 'netWeight',
|
|
83
84
|
width: 125,
|
|
84
85
|
align: 'right'
|
|
85
86
|
}, {
|
|
86
|
-
title: '
|
|
87
|
+
title: translateLocaleText("t('vtxcarmodal.collectionVehicle')"),
|
|
87
88
|
dataIndex: 'carCode',
|
|
88
89
|
key: 'carCode',
|
|
89
90
|
width: 95
|
|
90
91
|
}, {
|
|
91
|
-
title: '
|
|
92
|
+
title: translateLocaleText("t('vtxccunitmodal.name')"),
|
|
92
93
|
dataIndex: 'driverName',
|
|
93
94
|
key: 'driverName',
|
|
94
95
|
width: 90
|
|
95
96
|
}, {
|
|
96
|
-
title: '
|
|
97
|
+
title: translateLocaleText("t('vtxccunitmodal.unitName2')"),
|
|
97
98
|
dataIndex: 'restaurantName',
|
|
98
99
|
key: 'restaurantName',
|
|
99
100
|
width: 160
|
|
100
101
|
}, {
|
|
101
|
-
title: '
|
|
102
|
+
title: translateLocaleText("t('vtxqyrymodal.administrativeDivision')"),
|
|
102
103
|
dataIndex: 'divisionName',
|
|
103
104
|
key: 'divisionName',
|
|
104
105
|
width: 100
|
|
105
106
|
}, {
|
|
106
|
-
title: '
|
|
107
|
+
title: translateLocaleText("t('vtxrestaurantmodal.hours')"),
|
|
107
108
|
dataIndex: 'weighTime',
|
|
108
109
|
key: 'weighTime',
|
|
109
110
|
width: 160
|
|
110
111
|
}, {
|
|
111
|
-
title: '
|
|
112
|
+
title: translateLocaleText("t('vtxcarmodal.dataUploadSource')"),
|
|
112
113
|
dataIndex: 'recordStatusStr',
|
|
113
114
|
key: 'recordStatusStr',
|
|
114
115
|
width: 110
|
|
115
116
|
}, {
|
|
116
|
-
title: '
|
|
117
|
+
title: translateLocaleText("t('vtxcarmodal.unit3')"),
|
|
117
118
|
dataIndex: 'matchTypeStr',
|
|
118
119
|
key: 'matchTypeStr',
|
|
119
120
|
width: 140
|
|
120
121
|
}, {
|
|
121
|
-
title: '
|
|
122
|
+
title: translateLocaleText("t('vtxcarmodal.status')"),
|
|
122
123
|
dataIndex: 'makeUpTypeStr',
|
|
123
124
|
key: 'makeUpTypeStr',
|
|
124
125
|
width: 85
|
|
@@ -210,7 +211,7 @@ var Detail = function Detail(_ref) {
|
|
|
210
211
|
}]
|
|
211
212
|
};
|
|
212
213
|
return /*#__PURE__*/_jsxs(VmWrapper, {
|
|
213
|
-
title: '
|
|
214
|
+
title: translateLocaleText("t('vtxcarmodal.collectionDetails')"),
|
|
214
215
|
needChange: true,
|
|
215
216
|
onChange: setShowType,
|
|
216
217
|
children: [showType === 'chart' && /*#__PURE__*/_jsx(_Fragment, {
|