@vtx/modals2 5.0.3 → 5.0.4
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 +1 -1
- package/lib/_components/vm-calendar/style/index.less +4 -7
- package/lib/_components/vm-card-statistics/index.less +27 -27
- 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 +7 -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 +9 -0
- package/lib/_components/vm-title/index.js +3 -2
- package/lib/_components/vm-wrapper/index.js +32 -10
- package/lib/_components/vm-wrapper/style/index.less +28 -0
- 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.less +98 -98
- package/lib/vtx-base-modal/Tabs/index.less +31 -31
- package/lib/vtx-base-modal/index.js +5 -2
- package/lib/vtx-car-modal/api.js +4 -3
- package/lib/vtx-car-modal/components/Info/index.less +6 -6
- 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 +5 -1
- package/lib/vtx-car-modal/content/JXH/StaticInfo/index.js +7 -6
- package/lib/vtx-car-modal/content/JXH/WorkRecord/index.js +20 -12
- 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/index.js +16 -2
- 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/index.js +10 -7
- 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 +611 -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 -9
- 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/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/ThrowRecord/index.js +4 -1
- package/lib/vtx-staff-modal/components/BaseInfo/ListZymx.js +6 -2
- package/lib/vtx-tfd-modal/api.js +22 -27
- package/lib/vtx-tfd-modal/components/BaseInfo/index.js +107 -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 +287 -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/vtx-car-modal/imgs/calendar/fsdf/durationqq.png +0 -0
|
@@ -1,3 +1,9 @@
|
|
|
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); }
|
|
1
7
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
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."); }
|
|
3
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,18 +16,17 @@ import { useSetState } from 'ahooks';
|
|
|
10
16
|
import { Col, Row } from 'antd';
|
|
11
17
|
import dayjs from 'dayjs';
|
|
12
18
|
import { useRef } from 'react';
|
|
13
|
-
import { VmEmpty,
|
|
19
|
+
import { VmEmpty, VmFilter, VmInfoCollection, VmPieCharts, VmTitle, VmWrapper } from "../../../_components";
|
|
14
20
|
import useSettings from "../../../_hooks/useSettings";
|
|
21
|
+
import { DownIcon, UpIcon } from "../../../_util/iconSvgHtml";
|
|
15
22
|
import { BaseService } from "../../api";
|
|
16
23
|
import "./index.less";
|
|
17
24
|
|
|
18
25
|
// svg大小比png2倍还大,不如使用2次png
|
|
19
|
-
import
|
|
20
|
-
import hjtfl_light from "../../imgs/hjtfl_light.png";
|
|
21
|
-
import khsl from "../../imgs/khsl.png";
|
|
22
|
-
import khsl_light from "../../imgs/khsl_light.png";
|
|
26
|
+
import { sumBy } from 'lodash';
|
|
23
27
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
28
|
var BaseInfo = function BaseInfo(props) {
|
|
29
|
+
var _alarmAnalysis$garbag, _throwAnalysis$garbag, _alarmAnalysis$violat;
|
|
25
30
|
var _useSettings = useSettings(),
|
|
26
31
|
isDark = _useSettings.isDark;
|
|
27
32
|
var id = props.id,
|
|
@@ -37,8 +42,24 @@ var BaseInfo = function BaseInfo(props) {
|
|
|
37
42
|
var dateType = state.dateType,
|
|
38
43
|
date = state.date;
|
|
39
44
|
var imgRef = useRef(null);
|
|
45
|
+
var formatType = {
|
|
46
|
+
datePicker: 'day',
|
|
47
|
+
monthPicker: 'month',
|
|
48
|
+
yearPicker: 'year'
|
|
49
|
+
};
|
|
40
50
|
var _BaseService$useDevic = BaseService.useDeviceInfo(id),
|
|
41
51
|
devices = _BaseService$useDevic.devices;
|
|
52
|
+
var _BaseService$useThrow = BaseService.useThrowInfo(id, formatType[dateType], date.startOf(formatType[dateType]).format('YYYY-MM-DD'), date.endOf(formatType[dateType]).format('YYYY-MM-DD')),
|
|
53
|
+
throwAnalysis = _BaseService$useThrow.throwAnalysis;
|
|
54
|
+
var _BaseService$useAlarm = BaseService.useAlarmInfo(id, formatType[dateType], date.startOf(formatType[dateType]).format('YYYY-MM-DD'), date.endOf(formatType[dateType]).format('YYYY-MM-DD')),
|
|
55
|
+
alarmAnalysis = _BaseService$useAlarm.alarmAnalysis;
|
|
56
|
+
console.log(throwAnalysis, alarmAnalysis);
|
|
57
|
+
console.log(alarmAnalysis === null || alarmAnalysis === void 0 || (_alarmAnalysis$garbag = alarmAnalysis.garbageValues) === null || _alarmAnalysis$garbag === void 0 ? void 0 : _alarmAnalysis$garbag.map(function (ele) {
|
|
58
|
+
return _objectSpread(_objectSpread({}, ele), {}, {
|
|
59
|
+
name: ele.garbageTypeName,
|
|
60
|
+
value: ele.value || 10
|
|
61
|
+
});
|
|
62
|
+
}));
|
|
42
63
|
return /*#__PURE__*/_jsxs("div", {
|
|
43
64
|
className: "tfd-base",
|
|
44
65
|
children: [/*#__PURE__*/_jsx("div", {
|
|
@@ -80,9 +101,9 @@ var BaseInfo = function BaseInfo(props) {
|
|
|
80
101
|
padding: '0 12px 12px'
|
|
81
102
|
}), /*#__PURE__*/_jsx(VmTitle, {
|
|
82
103
|
title: "\u8BBE\u5907\u60C5\u51B5"
|
|
83
|
-
}), /*#__PURE__*/_jsx("div", {
|
|
104
|
+
}), (devices === null || devices === void 0 ? void 0 : devices.length) > 0 ? /*#__PURE__*/_jsx("div", {
|
|
84
105
|
className: "tfd-equipment",
|
|
85
|
-
children: devices
|
|
106
|
+
children: devices.map(function (ele, index) {
|
|
86
107
|
return /*#__PURE__*/_jsxs("div", {
|
|
87
108
|
className: "tfd-equipment-item",
|
|
88
109
|
children: [/*#__PURE__*/_jsx("img", {
|
|
@@ -92,6 +113,12 @@ var BaseInfo = function BaseInfo(props) {
|
|
|
92
113
|
})]
|
|
93
114
|
}, index);
|
|
94
115
|
})
|
|
116
|
+
}) : /*#__PURE__*/_jsx(VmEmpty, {
|
|
117
|
+
type: "NO_DATA",
|
|
118
|
+
text: "\u6682\u65E0\u8BBE\u5907",
|
|
119
|
+
style: {
|
|
120
|
+
height: 120
|
|
121
|
+
}
|
|
95
122
|
})]
|
|
96
123
|
})]
|
|
97
124
|
})
|
|
@@ -102,13 +129,21 @@ var BaseInfo = function BaseInfo(props) {
|
|
|
102
129
|
children: [/*#__PURE__*/_jsx(Col, {
|
|
103
130
|
span: 24,
|
|
104
131
|
children: /*#__PURE__*/_jsx(VmWrapper, {
|
|
105
|
-
title: "
|
|
132
|
+
title: "",
|
|
106
133
|
filterType: dateType,
|
|
107
134
|
filterChange: function filterChange(date) {
|
|
108
135
|
setState({
|
|
109
136
|
date: date
|
|
110
137
|
});
|
|
111
138
|
},
|
|
139
|
+
style: {
|
|
140
|
+
height: 52
|
|
141
|
+
},
|
|
142
|
+
headerStyle: {
|
|
143
|
+
height: 52,
|
|
144
|
+
borderBottom: 'unset'
|
|
145
|
+
},
|
|
146
|
+
showContent: false,
|
|
112
147
|
dateValue: date,
|
|
113
148
|
extra: /*#__PURE__*/_jsx("div", {
|
|
114
149
|
style: {
|
|
@@ -136,64 +171,77 @@ var BaseInfo = function BaseInfo(props) {
|
|
|
136
171
|
});
|
|
137
172
|
}
|
|
138
173
|
})
|
|
139
|
-
}),
|
|
140
|
-
children: /*#__PURE__*/_jsxs(Row, {
|
|
141
|
-
children: [/*#__PURE__*/_jsxs(Col, {
|
|
142
|
-
span: 6,
|
|
143
|
-
offset: 1,
|
|
144
|
-
children: [/*#__PURE__*/_jsx(VmFactor, {
|
|
145
|
-
name: "\u5F00\u6237\u6570\u91CF",
|
|
146
|
-
unit: "\u6237",
|
|
147
|
-
value: 987,
|
|
148
|
-
img: isDark ? khsl : khsl_light,
|
|
149
|
-
style: {
|
|
150
|
-
marginTop: 24
|
|
151
|
-
}
|
|
152
|
-
}), /*#__PURE__*/_jsx(VmFactor, {
|
|
153
|
-
name: "\u6237\u5747\u6295\u653E\u91CF",
|
|
154
|
-
unit: "kg/\u65E5",
|
|
155
|
-
value: 987,
|
|
156
|
-
img: isDark ? hjtfl : hjtfl_light,
|
|
157
|
-
style: {
|
|
158
|
-
marginTop: 24
|
|
159
|
-
}
|
|
160
|
-
})]
|
|
161
|
-
}), /*#__PURE__*/_jsx(Col, {
|
|
162
|
-
span: 17,
|
|
163
|
-
children: /*#__PURE__*/_jsx(VmPieCharts, {
|
|
164
|
-
height: 172,
|
|
165
|
-
dataList: [],
|
|
166
|
-
name: '投放总量',
|
|
167
|
-
title: "\u603B\u91CF(".concat(dateType === 'datePicker' ? 'kg' : '吨', ")"),
|
|
168
|
-
total: 1,
|
|
169
|
-
loading: false,
|
|
170
|
-
unit: dateType === 'datePicker' ? 'kg' : '吨',
|
|
171
|
-
innerRadius: ['65%', '85%'],
|
|
172
|
-
outerRadius: ['85%', '95%'],
|
|
173
|
-
legendConfig: {
|
|
174
|
-
right: '10%'
|
|
175
|
-
}
|
|
176
|
-
})
|
|
177
|
-
})]
|
|
178
174
|
})
|
|
179
175
|
})
|
|
180
176
|
}), /*#__PURE__*/_jsx(Col, {
|
|
181
177
|
span: 24,
|
|
182
|
-
children: /*#__PURE__*/
|
|
178
|
+
children: /*#__PURE__*/_jsxs(VmWrapper, {
|
|
179
|
+
title: "\u6295\u653E\u91CF\u5206\u6790",
|
|
180
|
+
style: {
|
|
181
|
+
height: 265
|
|
182
|
+
},
|
|
183
|
+
children: [/*#__PURE__*/_jsx(VmPieCharts, {
|
|
184
|
+
height: 160,
|
|
185
|
+
dataList: (throwAnalysis === null || throwAnalysis === void 0 || (_throwAnalysis$garbag = throwAnalysis.garbageValues) === null || _throwAnalysis$garbag === void 0 ? void 0 : _throwAnalysis$garbag.map(function (ele) {
|
|
186
|
+
return _objectSpread(_objectSpread({}, ele), {}, {
|
|
187
|
+
name: ele.garbageTypeName,
|
|
188
|
+
value: ele.value
|
|
189
|
+
});
|
|
190
|
+
})) || [],
|
|
191
|
+
name: '投放量',
|
|
192
|
+
title: "\u6295\u653E\u91CF(".concat(dateType === 'datePicker' ? 'kg' : '吨', ")"),
|
|
193
|
+
total: sumBy(throwAnalysis === null || throwAnalysis === void 0 ? void 0 : throwAnalysis.garbageValues, 'value'),
|
|
194
|
+
loading: false,
|
|
195
|
+
unit: dateType === 'datePicker' ? 'kg' : '吨',
|
|
196
|
+
innerRadius: ['65%', '85%'],
|
|
197
|
+
outerRadius: ['85%', '95%'],
|
|
198
|
+
legendConfig: {
|
|
199
|
+
right: '8%'
|
|
200
|
+
},
|
|
201
|
+
nameLength: 8
|
|
202
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
203
|
+
className: "tfd-base-right-compare",
|
|
204
|
+
children: ["\u4E0E\u8FD130\u5929\u65E5\u5747\u503C\u6BD4", (throwAnalysis === null || throwAnalysis === void 0 ? void 0 : throwAnalysis.rate) || 0, "%", (throwAnalysis === null || throwAnalysis === void 0 ? void 0 : throwAnalysis.rate) < 0 && /*#__PURE__*/_jsx(DownIcon, {
|
|
205
|
+
fill: '#f5222d'
|
|
206
|
+
}), (throwAnalysis === null || throwAnalysis === void 0 ? void 0 : throwAnalysis.rate) > 0 && /*#__PURE__*/_jsx(UpIcon, {
|
|
207
|
+
fill: '#0fb964'
|
|
208
|
+
})]
|
|
209
|
+
})]
|
|
210
|
+
})
|
|
211
|
+
}), /*#__PURE__*/_jsx(Col, {
|
|
212
|
+
span: 24,
|
|
213
|
+
children: /*#__PURE__*/_jsxs(VmWrapper, {
|
|
183
214
|
title: "\u8FDD\u89C4\u5206\u6790",
|
|
184
215
|
style: {
|
|
185
|
-
height:
|
|
216
|
+
height: 265
|
|
186
217
|
},
|
|
187
|
-
children: /*#__PURE__*/_jsx(
|
|
188
|
-
|
|
189
|
-
dataList:
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
218
|
+
children: [/*#__PURE__*/_jsx(VmPieCharts, {
|
|
219
|
+
height: 160,
|
|
220
|
+
dataList: (alarmAnalysis === null || alarmAnalysis === void 0 || (_alarmAnalysis$violat = alarmAnalysis.violationValues) === null || _alarmAnalysis$violat === void 0 ? void 0 : _alarmAnalysis$violat.map(function (ele) {
|
|
221
|
+
return _objectSpread(_objectSpread({}, ele), {}, {
|
|
222
|
+
name: ele.violationTypeName,
|
|
223
|
+
value: ele.count
|
|
224
|
+
});
|
|
225
|
+
})) || [],
|
|
226
|
+
name: '违规类型',
|
|
227
|
+
title: "\u5408\u8BA1(\u6B21)",
|
|
228
|
+
total: sumBy(alarmAnalysis === null || alarmAnalysis === void 0 ? void 0 : alarmAnalysis.garbageValues, 'value'),
|
|
229
|
+
loading: false,
|
|
230
|
+
unit: "\u6B21",
|
|
231
|
+
innerRadius: ['65%', '85%'],
|
|
232
|
+
outerRadius: ['85%', '95%'],
|
|
233
|
+
legendConfig: {
|
|
234
|
+
right: '12%'
|
|
235
|
+
},
|
|
236
|
+
nameLength: 8
|
|
237
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
238
|
+
className: "tfd-base-right-compare",
|
|
239
|
+
children: ["\u4E0E\u8FD130\u5929\u65E5\u5747\u503C\u6BD4", (alarmAnalysis === null || alarmAnalysis === void 0 ? void 0 : alarmAnalysis.rate) || 0, "%", (alarmAnalysis === null || alarmAnalysis === void 0 ? void 0 : alarmAnalysis.rate) < 0 && /*#__PURE__*/_jsx(DownIcon, {
|
|
240
|
+
fill: '#f5222d'
|
|
241
|
+
}), (alarmAnalysis === null || alarmAnalysis === void 0 ? void 0 : alarmAnalysis.rate) > 0 && /*#__PURE__*/_jsx(UpIcon, {
|
|
242
|
+
fill: '#0fb964'
|
|
243
|
+
})]
|
|
244
|
+
})]
|
|
197
245
|
})
|
|
198
246
|
})]
|
|
199
247
|
})
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { MapIcon } from '@vtx/map-icon';
|
|
2
|
+
import { request } from '@vtx/utils';
|
|
3
|
+
import { useRequest } from 'ahooks';
|
|
4
|
+
var BaseService = {
|
|
5
|
+
useBaseDetail: function useBaseDetail(id) {
|
|
6
|
+
var _info$geometryInfo, _info$geometryInfo2, _lngLats$split, _lngLats$split2, _info$geometryInfo3;
|
|
7
|
+
var _useRequest = useRequest(function () {
|
|
8
|
+
return request.get('/cloud/zykh-reborn/orderTask/get', {
|
|
9
|
+
data: {
|
|
10
|
+
id: id,
|
|
11
|
+
coordType: 'wgs84'
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
}, {
|
|
15
|
+
refreshDeps: [id]
|
|
16
|
+
}),
|
|
17
|
+
baseInfoRes = _useRequest.data,
|
|
18
|
+
loading = _useRequest.loading;
|
|
19
|
+
var info = baseInfoRes === null || baseInfoRes === void 0 ? void 0 : baseInfoRes.data;
|
|
20
|
+
var baseInfo = [{
|
|
21
|
+
label: '问题来源',
|
|
22
|
+
key: 'problemFromStr',
|
|
23
|
+
value: info === null || info === void 0 ? void 0 : info.problemFromStr
|
|
24
|
+
}, {
|
|
25
|
+
label: '大类',
|
|
26
|
+
key: 'parentCategoryName',
|
|
27
|
+
value: info === null || info === void 0 ? void 0 : info.parentCategoryName
|
|
28
|
+
}, {
|
|
29
|
+
label: '问题分类',
|
|
30
|
+
key: 'problemCategoryName',
|
|
31
|
+
value: info === null || info === void 0 ? void 0 : info.problemCategoryName
|
|
32
|
+
}, {
|
|
33
|
+
label: '考核对象',
|
|
34
|
+
key: 'checkResourceName',
|
|
35
|
+
value: info === null || info === void 0 ? void 0 : info.checkResourceName
|
|
36
|
+
}, {
|
|
37
|
+
label: '上报人员',
|
|
38
|
+
key: 'reportStaffName',
|
|
39
|
+
value: info === null || info === void 0 ? void 0 : info.reportStaffName
|
|
40
|
+
}, {
|
|
41
|
+
label: '上报时间',
|
|
42
|
+
key: 'reportDateTimeStr',
|
|
43
|
+
value: info === null || info === void 0 ? void 0 : info.reportDateTimeStr
|
|
44
|
+
}, {
|
|
45
|
+
label: '截止时间',
|
|
46
|
+
key: 'endDateTimeStr',
|
|
47
|
+
value: info === null || info === void 0 ? void 0 : info.endDateTimeStr
|
|
48
|
+
}, {
|
|
49
|
+
label: '标段',
|
|
50
|
+
key: 'tenderName',
|
|
51
|
+
value: info === null || info === void 0 ? void 0 : info.tenderName
|
|
52
|
+
}, {
|
|
53
|
+
label: '行政区划',
|
|
54
|
+
key: 'divisionName',
|
|
55
|
+
value: info === null || info === void 0 ? void 0 : info.divisionName,
|
|
56
|
+
width: '100%'
|
|
57
|
+
}, {
|
|
58
|
+
label: '问题描述',
|
|
59
|
+
key: 'memo',
|
|
60
|
+
value: info === null || info === void 0 ? void 0 : info.memo,
|
|
61
|
+
width: '100%'
|
|
62
|
+
}, {
|
|
63
|
+
label: '问题照片',
|
|
64
|
+
key: 'photos',
|
|
65
|
+
value: info === null || info === void 0 ? void 0 : info.photos,
|
|
66
|
+
componentType: 'IMAGE',
|
|
67
|
+
width: '100%'
|
|
68
|
+
}, {
|
|
69
|
+
label: '问题位置',
|
|
70
|
+
key: 'address',
|
|
71
|
+
value: info === null || info === void 0 ? void 0 : info.address,
|
|
72
|
+
width: '100%'
|
|
73
|
+
}];
|
|
74
|
+
var lngLats = info === null || info === void 0 || (_info$geometryInfo = info.geometryInfo) === null || _info$geometryInfo === void 0 ? void 0 : _info$geometryInfo.lngLats;
|
|
75
|
+
return {
|
|
76
|
+
info: info,
|
|
77
|
+
baseInfo: baseInfo,
|
|
78
|
+
lngLats: (info === null || info === void 0 || (_info$geometryInfo2 = info.geometryInfo) === null || _info$geometryInfo2 === void 0 ? void 0 : _info$geometryInfo2.lngLats) || '',
|
|
79
|
+
loading: loading,
|
|
80
|
+
mapPoints: [{
|
|
81
|
+
lng: lngLats === null || lngLats === void 0 || (_lngLats$split = lngLats.split(',')) === null || _lngLats$split === void 0 ? void 0 : _lngLats$split[0],
|
|
82
|
+
lat: lngLats === null || lngLats === void 0 || (_lngLats$split2 = lngLats.split(',')) === null || _lngLats$split2 === void 0 ? void 0 : _lngLats$split2[1],
|
|
83
|
+
icon: 'GD',
|
|
84
|
+
type: info === null || info === void 0 || (_info$geometryInfo3 = info.geometryInfo) === null || _info$geometryInfo3 === void 0 ? void 0 : _info$geometryInfo3.type,
|
|
85
|
+
url: new MapIcon.CommonIcon({
|
|
86
|
+
canvasIcon: 'GD',
|
|
87
|
+
color: '#119FFB'
|
|
88
|
+
}).getImgUrl()
|
|
89
|
+
}]
|
|
90
|
+
};
|
|
91
|
+
},
|
|
92
|
+
useGetRecord: function useGetRecord(orderTaskNo) {
|
|
93
|
+
var _useRequest2 = useRequest(function () {
|
|
94
|
+
return request.get('/cloud/zykh-reborn/orderProcessLog/list', {
|
|
95
|
+
data: {
|
|
96
|
+
orderTaskNo: orderTaskNo
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
}, {
|
|
100
|
+
ready: !!orderTaskNo,
|
|
101
|
+
refreshDeps: [orderTaskNo]
|
|
102
|
+
}),
|
|
103
|
+
data = _useRequest2.data;
|
|
104
|
+
return (data === null || data === void 0 ? void 0 : data.data) || [];
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
export { BaseService };
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
import { Spin } from 'antd';
|
|
2
|
+
import { VmInfoCollection, VmMap, VmWrapper } from "../../../_components";
|
|
3
|
+
import useSettings from "../../../_hooks/useSettings";
|
|
4
|
+
import { BaseService } from "../../api";
|
|
5
|
+
import "./index.less";
|
|
6
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
7
|
+
var BaseInfo = function BaseInfo(props) {
|
|
8
|
+
var _useSettings = useSettings(),
|
|
9
|
+
isDark = _useSettings.isDark;
|
|
10
|
+
var mapCenter = props.mapCenter,
|
|
11
|
+
id = props.id;
|
|
12
|
+
var _BaseService$useBaseD = BaseService.useBaseDetail(id, 'wgs84'),
|
|
13
|
+
info = _BaseService$useBaseD.info,
|
|
14
|
+
baseInfo = _BaseService$useBaseD.baseInfo,
|
|
15
|
+
lngLats = _BaseService$useBaseD.lngLats,
|
|
16
|
+
mapPoints = _BaseService$useBaseD.mapPoints,
|
|
17
|
+
loading = _BaseService$useBaseD.loading;
|
|
18
|
+
var records = BaseService.useGetRecord(info === null || info === void 0 ? void 0 : info.orderNo);
|
|
19
|
+
var getStep = function getStep() {
|
|
20
|
+
if ((records === null || records === void 0 ? void 0 : records.length) < 2) {
|
|
21
|
+
return -1;
|
|
22
|
+
}
|
|
23
|
+
if (records[records.length - 1].processDetail) {
|
|
24
|
+
var obj = JSON.parse(records[records.length - 1].processDetail);
|
|
25
|
+
if (obj.processResult === 'Pass') {
|
|
26
|
+
return 2;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
if (records.find(function (v) {
|
|
30
|
+
return v.processType === 'Pf';
|
|
31
|
+
}) && records[records.length - 1].processType !== 'Pf') {
|
|
32
|
+
return 1;
|
|
33
|
+
}
|
|
34
|
+
if (records.find(function (v) {
|
|
35
|
+
return v.processType === 'Pf';
|
|
36
|
+
})) {
|
|
37
|
+
return 0;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
41
|
+
className: "zg-base",
|
|
42
|
+
children: [/*#__PURE__*/_jsx(Spin, {
|
|
43
|
+
spinning: loading,
|
|
44
|
+
className: "zg-base-spin"
|
|
45
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
46
|
+
className: "zg-base-left",
|
|
47
|
+
children: /*#__PURE__*/_jsxs(VmWrapper, {
|
|
48
|
+
title: "\u4E8B\u4EF6\u63CF\u8FF0",
|
|
49
|
+
children: [/*#__PURE__*/_jsx(VmInfoCollection, {
|
|
50
|
+
data: baseInfo,
|
|
51
|
+
horizontal: true,
|
|
52
|
+
width: "50%",
|
|
53
|
+
gap: 12
|
|
54
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
55
|
+
className: "zg-base-map",
|
|
56
|
+
children: /*#__PURE__*/_jsx(VmMap, {
|
|
57
|
+
mapCenter: lngLats ? lngLats.split(',') : mapCenter,
|
|
58
|
+
newMapPoints: mapPoints,
|
|
59
|
+
address: info === null || info === void 0 ? void 0 : info.address
|
|
60
|
+
})
|
|
61
|
+
})]
|
|
62
|
+
})
|
|
63
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
64
|
+
className: "zg-base-right",
|
|
65
|
+
children: /*#__PURE__*/_jsxs(VmWrapper, {
|
|
66
|
+
title: "\u6574\u6539\u6D41\u7A0B",
|
|
67
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
68
|
+
className: "zg-base-process ".concat(isDark ? 'dark' : ''),
|
|
69
|
+
children: [{
|
|
70
|
+
title: '派发',
|
|
71
|
+
key: '1'
|
|
72
|
+
}, {
|
|
73
|
+
title: '处理',
|
|
74
|
+
key: '2'
|
|
75
|
+
}, {
|
|
76
|
+
title: '结束',
|
|
77
|
+
key: '3'
|
|
78
|
+
}].map(function (ele, index) {
|
|
79
|
+
console.log(getStep());
|
|
80
|
+
var isDone = getStep() >= index;
|
|
81
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
82
|
+
className: "zg-base-process-item",
|
|
83
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
84
|
+
className: "zg-base-process-item-order ".concat(isDone ? 'active' : ''),
|
|
85
|
+
children: index + 1
|
|
86
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
87
|
+
className: "zg-base-process-item-title ".concat(isDone ? 'active' : ''),
|
|
88
|
+
children: ele.title
|
|
89
|
+
}), index < records.length && /*#__PURE__*/_jsx("div", {
|
|
90
|
+
className: "zg-base-process-line ".concat(isDone ? 'active' : '')
|
|
91
|
+
})]
|
|
92
|
+
}, ele.key);
|
|
93
|
+
})
|
|
94
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
95
|
+
className: "zg-p-list ".concat(isDark ? 'dark' : ''),
|
|
96
|
+
children: records === null || records === void 0 ? void 0 : records.map(function (ele, index) {
|
|
97
|
+
var isDone = getStep() + 1 >= index;
|
|
98
|
+
var detailObj = ele.processDetail ? JSON.parse(ele.processDetail) : {};
|
|
99
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
100
|
+
className: "zg-p-list-item",
|
|
101
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
102
|
+
className: "zg-p-list-item-head",
|
|
103
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
104
|
+
className: "zg-p-list-item-head-title",
|
|
105
|
+
children: [/*#__PURE__*/_jsx("img", {
|
|
106
|
+
src: require("../../imgs/dot".concat(isDone ? '_done' : '', ".png"))
|
|
107
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
108
|
+
children: ele.processTypeStr
|
|
109
|
+
})]
|
|
110
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
111
|
+
children: ele.processTimeStr
|
|
112
|
+
})]
|
|
113
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
114
|
+
className: "zg-p-list-item-content",
|
|
115
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
116
|
+
className: "zg-p-list-item-line",
|
|
117
|
+
style: index === records.length - 1 ? {
|
|
118
|
+
background: 'unset'
|
|
119
|
+
} : {}
|
|
120
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
121
|
+
children: [ele.processContent, /*#__PURE__*/_jsx("div", {
|
|
122
|
+
className: "zg-p-list-item-content-bg",
|
|
123
|
+
children: getBaseShow(ele.processType, detailObj)
|
|
124
|
+
})]
|
|
125
|
+
})]
|
|
126
|
+
})]
|
|
127
|
+
}, ele.key);
|
|
128
|
+
})
|
|
129
|
+
})]
|
|
130
|
+
})
|
|
131
|
+
})]
|
|
132
|
+
});
|
|
133
|
+
};
|
|
134
|
+
export default BaseInfo;
|
|
135
|
+
function getBaseShow(type, detailObj) {
|
|
136
|
+
var tempArr = [];
|
|
137
|
+
switch (type) {
|
|
138
|
+
case 'Xj':
|
|
139
|
+
return /*#__PURE__*/_jsx(VmInfoCollection, {
|
|
140
|
+
data: [{
|
|
141
|
+
label: '问题照片',
|
|
142
|
+
key: 'photos',
|
|
143
|
+
value: detailObj === null || detailObj === void 0 ? void 0 : detailObj.photos,
|
|
144
|
+
componentType: 'IMAGE'
|
|
145
|
+
}],
|
|
146
|
+
horizontal: true,
|
|
147
|
+
width: "100%",
|
|
148
|
+
gap: 12
|
|
149
|
+
});
|
|
150
|
+
case 'Pf':
|
|
151
|
+
return /*#__PURE__*/_jsx(VmInfoCollection, {
|
|
152
|
+
data: [{
|
|
153
|
+
label: '责任单位',
|
|
154
|
+
key: 'responsibleUnitName',
|
|
155
|
+
value: detailObj === null || detailObj === void 0 ? void 0 : detailObj.responsibleUnitName
|
|
156
|
+
}, {
|
|
157
|
+
label: '责任人',
|
|
158
|
+
key: 'responsibleStaffNames',
|
|
159
|
+
value: detailObj === null || detailObj === void 0 ? void 0 : detailObj.responsibleStaffNames
|
|
160
|
+
}, {
|
|
161
|
+
label: '整改时限',
|
|
162
|
+
key: 'reformTimeDay',
|
|
163
|
+
value: "".concat(detailObj.reformTimeDay || 0, "\u5929").concat(detailObj.reformTimeHour || 0, "\u5C0F\u65F6").concat(detailObj.reformTimeMin || 0, "\u5206")
|
|
164
|
+
}, {
|
|
165
|
+
label: '截止时间',
|
|
166
|
+
key: 'endDateTime',
|
|
167
|
+
value: detailObj === null || detailObj === void 0 ? void 0 : detailObj.endDateTime
|
|
168
|
+
}],
|
|
169
|
+
horizontal: true,
|
|
170
|
+
width: "100%",
|
|
171
|
+
gap: 12
|
|
172
|
+
});
|
|
173
|
+
case 'Sqyq':
|
|
174
|
+
return /*#__PURE__*/_jsx(VmInfoCollection, {
|
|
175
|
+
data: [{
|
|
176
|
+
label: '原截止时间',
|
|
177
|
+
key: 'oldEndTime',
|
|
178
|
+
value: detailObj === null || detailObj === void 0 ? void 0 : detailObj.oldEndTime
|
|
179
|
+
}, {
|
|
180
|
+
label: '期望截止时间',
|
|
181
|
+
key: 'newEndTime',
|
|
182
|
+
value: detailObj === null || detailObj === void 0 ? void 0 : detailObj.newEndTime
|
|
183
|
+
}, {
|
|
184
|
+
label: '申请理由',
|
|
185
|
+
key: 'applyReason',
|
|
186
|
+
value: detailObj === null || detailObj === void 0 ? void 0 : detailObj.applyReason
|
|
187
|
+
}],
|
|
188
|
+
horizontal: true,
|
|
189
|
+
width: "100%",
|
|
190
|
+
gap: 12
|
|
191
|
+
});
|
|
192
|
+
case 'Cs':
|
|
193
|
+
return /*#__PURE__*/_jsx(VmInfoCollection, {
|
|
194
|
+
data: [{
|
|
195
|
+
label: '结果',
|
|
196
|
+
key: 'processResult',
|
|
197
|
+
value: "".concat(detailObj.processResult === 'Accept' ? '接受整改' : detailObj.processResult === 'Reject' ? '拒绝整改' : detailObj.processResult)
|
|
198
|
+
}, {
|
|
199
|
+
label: '原因',
|
|
200
|
+
key: 'rejectReason',
|
|
201
|
+
value: detailObj === null || detailObj === void 0 ? void 0 : detailObj.rejectReason
|
|
202
|
+
}],
|
|
203
|
+
horizontal: true,
|
|
204
|
+
width: "100%",
|
|
205
|
+
gap: 12
|
|
206
|
+
});
|
|
207
|
+
break;
|
|
208
|
+
case 'Dzgtjfk':
|
|
209
|
+
case 'Tjfk':
|
|
210
|
+
return /*#__PURE__*/_jsx(VmInfoCollection, {
|
|
211
|
+
data: [{
|
|
212
|
+
label: '反馈内容',
|
|
213
|
+
key: 'feedbackContent',
|
|
214
|
+
value: detailObj === null || detailObj === void 0 ? void 0 : detailObj.feedbackContent
|
|
215
|
+
}, {
|
|
216
|
+
label: '反馈附件',
|
|
217
|
+
key: 'photos',
|
|
218
|
+
value: detailObj === null || detailObj === void 0 ? void 0 : detailObj.photos,
|
|
219
|
+
componentType: 'IMAGE'
|
|
220
|
+
}],
|
|
221
|
+
horizontal: true,
|
|
222
|
+
width: "100%",
|
|
223
|
+
gap: 12
|
|
224
|
+
});
|
|
225
|
+
case 'Jjzgsh':
|
|
226
|
+
case 'Yqsh':
|
|
227
|
+
return /*#__PURE__*/_jsx(VmInfoCollection, {
|
|
228
|
+
data: [{
|
|
229
|
+
label: '结果',
|
|
230
|
+
key: 'processResult',
|
|
231
|
+
value: detailObj.processResult === 'Fail' ? '不通过' : '通过'
|
|
232
|
+
}, {
|
|
233
|
+
label: '审批意见',
|
|
234
|
+
key: 'auditOpinion',
|
|
235
|
+
value: detailObj === null || detailObj === void 0 ? void 0 : detailObj.auditOpinion
|
|
236
|
+
}],
|
|
237
|
+
horizontal: true,
|
|
238
|
+
width: "100%",
|
|
239
|
+
gap: 12
|
|
240
|
+
});
|
|
241
|
+
case 'Jgsh':
|
|
242
|
+
return /*#__PURE__*/_jsx(VmInfoCollection, {
|
|
243
|
+
data: [{
|
|
244
|
+
label: '结果',
|
|
245
|
+
key: 'processResult',
|
|
246
|
+
value: detailObj.processResult === 'Fail' ? '不通过' : '通过'
|
|
247
|
+
}, {
|
|
248
|
+
label: '审批意见',
|
|
249
|
+
key: 'auditOpinion',
|
|
250
|
+
value: detailObj === null || detailObj === void 0 ? void 0 : detailObj.auditOpinion
|
|
251
|
+
}, {
|
|
252
|
+
title: '附件',
|
|
253
|
+
key: 'photos',
|
|
254
|
+
value: detailObj === null || detailObj === void 0 ? void 0 : detailObj.photos,
|
|
255
|
+
componentType: 'IMAGE'
|
|
256
|
+
}],
|
|
257
|
+
horizontal: true,
|
|
258
|
+
width: "100%",
|
|
259
|
+
gap: 12
|
|
260
|
+
});
|
|
261
|
+
case 'Dzg':
|
|
262
|
+
return /*#__PURE__*/_jsx(VmInfoCollection, {
|
|
263
|
+
data: [{
|
|
264
|
+
label: '第三方单位',
|
|
265
|
+
key: 'thirdResponsibleUnitName',
|
|
266
|
+
value: detailObj === null || detailObj === void 0 ? void 0 : detailObj.thirdResponsibleUnitName
|
|
267
|
+
}, {
|
|
268
|
+
label: '责任人',
|
|
269
|
+
key: 'thirdResponsibleStaffNames',
|
|
270
|
+
value: detailObj === null || detailObj === void 0 ? void 0 : detailObj.thirdResponsibleStaffNames
|
|
271
|
+
}, {
|
|
272
|
+
label: '整改时限',
|
|
273
|
+
key: 'reformTimeDay',
|
|
274
|
+
value: "".concat(detailObj.reformTimeDay || 0, "\u5929").concat(detailObj.reformTimeHour || 0, "\u5C0F\u65F6").concat(detailObj.reformTimeMin || 0, "\u5206")
|
|
275
|
+
}, {
|
|
276
|
+
label: '截止时间',
|
|
277
|
+
key: 'endDateTime',
|
|
278
|
+
value: detailObj === null || detailObj === void 0 ? void 0 : detailObj.endDateTime
|
|
279
|
+
}],
|
|
280
|
+
horizontal: true,
|
|
281
|
+
width: "100%",
|
|
282
|
+
gap: 12
|
|
283
|
+
});
|
|
284
|
+
default:
|
|
285
|
+
return /*#__PURE__*/_jsx(_Fragment, {});
|
|
286
|
+
}
|
|
287
|
+
}
|