@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
|
@@ -0,0 +1,149 @@
|
|
|
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 { groupBy, sortBy } from 'lodash';
|
|
17
|
+
import np from 'number-precision';
|
|
18
|
+
import { useMemo, useState } from 'react';
|
|
19
|
+
import { VmBarCharts, VmFactor, VmWrapper } from "../../../_components";
|
|
20
|
+
import useSettings from "../../../_hooks/useSettings";
|
|
21
|
+
import { BasicService } from "../../api";
|
|
22
|
+
import FactoryRecord from "../BaseInfo/Factory";
|
|
23
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
+
var Factory = function Factory(_ref) {
|
|
25
|
+
var id = _ref.id,
|
|
26
|
+
info = _ref.info;
|
|
27
|
+
var _useSettings = useSettings(),
|
|
28
|
+
isDark = _useSettings.isDark;
|
|
29
|
+
var _useState = useState('list'),
|
|
30
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
31
|
+
type = _useState2[0],
|
|
32
|
+
setType = _useState2[1];
|
|
33
|
+
var _useSetState = useSetState({
|
|
34
|
+
startDate: dayjs().subtract(30, 'day'),
|
|
35
|
+
endDate: dayjs()
|
|
36
|
+
}),
|
|
37
|
+
_useSetState2 = _slicedToArray(_useSetState, 2),
|
|
38
|
+
state = _useSetState2[0],
|
|
39
|
+
setState = _useSetState2[1];
|
|
40
|
+
var startTime = dayjs(state.startDate).format('YYYY-MM-DD 00:00:00');
|
|
41
|
+
var endTime = dayjs(state.endDate).format('YYYY-MM-DD 23:59:59');
|
|
42
|
+
var props = {
|
|
43
|
+
startTime: startTime,
|
|
44
|
+
endTime: endTime,
|
|
45
|
+
id: id
|
|
46
|
+
};
|
|
47
|
+
var statisticsData = BasicService.useStatistics(props);
|
|
48
|
+
var list = BasicService.useFactoryList({
|
|
49
|
+
startTime: startTime,
|
|
50
|
+
endTime: endTime,
|
|
51
|
+
id: id
|
|
52
|
+
});
|
|
53
|
+
var filterChange = function filterChange(dateValue) {
|
|
54
|
+
setState({
|
|
55
|
+
startDate: dateValue[0],
|
|
56
|
+
endDate: dateValue[1]
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
var factorList = [{
|
|
60
|
+
name: '进厂量',
|
|
61
|
+
unit: (statisticsData === null || statisticsData === void 0 ? void 0 : statisticsData.netWeightTotal) > 10000 ? '吨' : 'kg',
|
|
62
|
+
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,
|
|
63
|
+
img: require("../../imgs/jcl".concat(isDark ? '_dark' : '', ".png")),
|
|
64
|
+
fontType: 'yellow'
|
|
65
|
+
}, {
|
|
66
|
+
name: '进厂车次',
|
|
67
|
+
unit: '次',
|
|
68
|
+
value: statisticsData === null || statisticsData === void 0 ? void 0 : statisticsData.count,
|
|
69
|
+
img: require("../../imgs/jccc".concat(isDark ? '_dark' : '', ".png")),
|
|
70
|
+
fontType: 'cyan'
|
|
71
|
+
}];
|
|
72
|
+
var _useMemo = useMemo(function () {
|
|
73
|
+
var xData = [];
|
|
74
|
+
var carCountData = [];
|
|
75
|
+
var netWeightData = [];
|
|
76
|
+
var groupByDate = groupBy(list, function (item) {
|
|
77
|
+
return dayjs(item.grossDateTime).format('YYYY-MM-DD');
|
|
78
|
+
});
|
|
79
|
+
sortBy(Object.keys(groupByDate)).forEach(function (date) {
|
|
80
|
+
var count = groupByDate[date].length;
|
|
81
|
+
var netWeightTotal = 0;
|
|
82
|
+
groupByDate[date].forEach(function (item) {
|
|
83
|
+
netWeightTotal = np.plus(netWeightTotal, item.netWeight);
|
|
84
|
+
});
|
|
85
|
+
xData.push(date);
|
|
86
|
+
carCountData.push("\u2000".concat(count));
|
|
87
|
+
netWeightData.push(netWeightTotal);
|
|
88
|
+
});
|
|
89
|
+
return {
|
|
90
|
+
xData: xData,
|
|
91
|
+
carCountData: carCountData,
|
|
92
|
+
netWeightData: netWeightData
|
|
93
|
+
};
|
|
94
|
+
}, [JSON.stringify(list)]),
|
|
95
|
+
xData = _useMemo.xData,
|
|
96
|
+
carCountData = _useMemo.carCountData,
|
|
97
|
+
netWeightData = _useMemo.netWeightData;
|
|
98
|
+
return /*#__PURE__*/_jsxs(VmWrapper, {
|
|
99
|
+
title: '进厂分析',
|
|
100
|
+
filterType: "rangePicker",
|
|
101
|
+
dateValue: [state.startDate, state.endDate],
|
|
102
|
+
filterChange: filterChange,
|
|
103
|
+
needChange: true,
|
|
104
|
+
onChange: setType,
|
|
105
|
+
disabledDate: function disabledDate(current) {
|
|
106
|
+
return current && current > dayjs().endOf('day');
|
|
107
|
+
},
|
|
108
|
+
children: [/*#__PURE__*/_jsx(Row, {
|
|
109
|
+
align: 'middle',
|
|
110
|
+
justify: 'center',
|
|
111
|
+
style: {
|
|
112
|
+
padding: '0 200px 18px'
|
|
113
|
+
},
|
|
114
|
+
children: factorList.map(function (item) {
|
|
115
|
+
return /*#__PURE__*/_jsx(Col, {
|
|
116
|
+
span: 8,
|
|
117
|
+
children: /*#__PURE__*/_jsx(VmFactor, _objectSpread({}, item))
|
|
118
|
+
}, item.name);
|
|
119
|
+
})
|
|
120
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
121
|
+
style: {
|
|
122
|
+
height: 'calc(100% - 72px)'
|
|
123
|
+
},
|
|
124
|
+
children: type === 'list' ? /*#__PURE__*/_jsx(FactoryRecord, _objectSpread({}, props)) : /*#__PURE__*/_jsx(VmBarCharts, {
|
|
125
|
+
dataList: [{
|
|
126
|
+
name: '进厂量',
|
|
127
|
+
data: netWeightData
|
|
128
|
+
}, {
|
|
129
|
+
name: '进厂车次',
|
|
130
|
+
data: carCountData,
|
|
131
|
+
color: 'green',
|
|
132
|
+
yAxisIndex: 1
|
|
133
|
+
}],
|
|
134
|
+
xAxis: xData,
|
|
135
|
+
unit: 'kg',
|
|
136
|
+
yAxisList: [{
|
|
137
|
+
key: '',
|
|
138
|
+
unit: 'kg',
|
|
139
|
+
name: '(kg)'
|
|
140
|
+
}, {
|
|
141
|
+
key: "\u2000",
|
|
142
|
+
unit: '次',
|
|
143
|
+
name: '(次)'
|
|
144
|
+
}]
|
|
145
|
+
})
|
|
146
|
+
})]
|
|
147
|
+
});
|
|
148
|
+
};
|
|
149
|
+
export default Factory;
|
|
@@ -0,0 +1,127 @@
|
|
|
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 RestaurantList = function RestaurantList(_ref) {
|
|
21
|
+
var id = _ref.id,
|
|
22
|
+
info = _ref.info;
|
|
23
|
+
var _useContext = useContext(CcUnitContext),
|
|
24
|
+
openRestaurant = _useContext.openRestaurant;
|
|
25
|
+
var _useSetState = useSetState({
|
|
26
|
+
name: '',
|
|
27
|
+
signStatus: ''
|
|
28
|
+
}),
|
|
29
|
+
_useSetState2 = _slicedToArray(_useSetState, 2),
|
|
30
|
+
search = _useSetState2[0],
|
|
31
|
+
setSearch = _useSetState2[1];
|
|
32
|
+
var tableProps = BasicService.useRestaurantList(_objectSpread({
|
|
33
|
+
name: search.name
|
|
34
|
+
}, info.garbageType === 'fqyz' ? {
|
|
35
|
+
fqyzSignStatus: search.signStatus,
|
|
36
|
+
fqyzSignUnitId: id
|
|
37
|
+
} : {
|
|
38
|
+
ccSignStatus: search.signStatus,
|
|
39
|
+
ccSignUnitId: id
|
|
40
|
+
}));
|
|
41
|
+
var signList = BasicService.useSignEnum();
|
|
42
|
+
var columns = [{
|
|
43
|
+
title: '产生单位名称',
|
|
44
|
+
dataIndex: 'name',
|
|
45
|
+
width: 140,
|
|
46
|
+
ellipsis: true,
|
|
47
|
+
render: function render(text, record) {
|
|
48
|
+
return text ? /*#__PURE__*/_jsx("a", {
|
|
49
|
+
onClick: function onClick() {
|
|
50
|
+
return openRestaurant && openRestaurant({
|
|
51
|
+
id: record.id,
|
|
52
|
+
title: record.name
|
|
53
|
+
});
|
|
54
|
+
},
|
|
55
|
+
children: text
|
|
56
|
+
}) : '-';
|
|
57
|
+
}
|
|
58
|
+
}, {
|
|
59
|
+
title: '地址',
|
|
60
|
+
dataIndex: 'address',
|
|
61
|
+
width: 180,
|
|
62
|
+
ellipsis: true
|
|
63
|
+
}, {
|
|
64
|
+
title: '单位类型',
|
|
65
|
+
dataIndex: 'classesName',
|
|
66
|
+
width: 140,
|
|
67
|
+
ellipsis: true
|
|
68
|
+
}, {
|
|
69
|
+
title: '签约状态',
|
|
70
|
+
dataIndex: 'isSignValue',
|
|
71
|
+
width: 150,
|
|
72
|
+
ellipsis: true
|
|
73
|
+
}];
|
|
74
|
+
return /*#__PURE__*/_jsxs(Row, {
|
|
75
|
+
gutter: [10, 10],
|
|
76
|
+
style: {
|
|
77
|
+
height: '100%'
|
|
78
|
+
},
|
|
79
|
+
children: [/*#__PURE__*/_jsx(Col, {
|
|
80
|
+
span: 24,
|
|
81
|
+
style: {
|
|
82
|
+
height: 68
|
|
83
|
+
},
|
|
84
|
+
children: /*#__PURE__*/_jsx(VmWrapper, {
|
|
85
|
+
showTitle: false,
|
|
86
|
+
children: /*#__PURE__*/_jsxs(Space, {
|
|
87
|
+
children: [/*#__PURE__*/_jsx(Space, {
|
|
88
|
+
children: "\u4EA7\u751F\u5355\u4F4D\u540D\u79F0"
|
|
89
|
+
}), /*#__PURE__*/_jsx(VmFilter.VMInput, {
|
|
90
|
+
style: {
|
|
91
|
+
width: 200
|
|
92
|
+
},
|
|
93
|
+
onValChange: function onValChange(value) {
|
|
94
|
+
setSearch({
|
|
95
|
+
name: value
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
99
|
+
children: info.garbageType === 'fqyz' ? '废弃油脂签约状态' : '餐厨垃圾签约状态'
|
|
100
|
+
}), /*#__PURE__*/_jsx(VmFilter.VMSelect, {
|
|
101
|
+
style: {
|
|
102
|
+
width: 200
|
|
103
|
+
},
|
|
104
|
+
options: signList,
|
|
105
|
+
value: search.signStatus,
|
|
106
|
+
onChange: function onChange(value) {
|
|
107
|
+
return setSearch({
|
|
108
|
+
signStatus: value
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
})]
|
|
112
|
+
})
|
|
113
|
+
})
|
|
114
|
+
}), /*#__PURE__*/_jsx(Col, {
|
|
115
|
+
span: 24,
|
|
116
|
+
style: {
|
|
117
|
+
height: 'calc(100% - 78px)'
|
|
118
|
+
},
|
|
119
|
+
children: /*#__PURE__*/_jsx(VmWrapper, {
|
|
120
|
+
children: /*#__PURE__*/_jsx(VmTable, _objectSpread(_objectSpread({}, tableProps), {}, {
|
|
121
|
+
columns: columns
|
|
122
|
+
}))
|
|
123
|
+
})
|
|
124
|
+
})]
|
|
125
|
+
});
|
|
126
|
+
};
|
|
127
|
+
export default RestaurantList;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import BaseInfo from "./BaseInfo";
|
|
2
|
+
import CarList from "./CarList";
|
|
3
|
+
import Collection from "./Collection";
|
|
4
|
+
import DetailInfo from "./DetailInfo";
|
|
5
|
+
import Factory from "./Factory";
|
|
6
|
+
import RestaurantList from "./RestaurantList";
|
|
7
|
+
export { BaseInfo, CarList, Collection, DetailInfo, Factory, RestaurantList };
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,137 @@
|
|
|
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 { useMemoizedFn } from 'ahooks';
|
|
14
|
+
import { createContext, useMemo, useState } from 'react';
|
|
15
|
+
import useGetConfig from "../_hooks/useGetConfig";
|
|
16
|
+
import VtxBaseModal from "../vtx-base-modal";
|
|
17
|
+
import VtxCarModal from "../vtx-car-modal";
|
|
18
|
+
import VtxRestaurantModal from "../vtx-restaurant-modal";
|
|
19
|
+
import { BasicService } from "./api";
|
|
20
|
+
import { BaseInfo, CarList, Collection, DetailInfo, Factory, RestaurantList } from "./components";
|
|
21
|
+
import "./style";
|
|
22
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
|
+
var TABS_BASE = 'cc-unit-base';
|
|
24
|
+
var TABS_RESTAURANT = 'cc-unit-restaurant';
|
|
25
|
+
var TABS_CAR = 'cc-unit-car';
|
|
26
|
+
var TABS_DETAIL = 'cc-unit-detail';
|
|
27
|
+
var TABS_COLLECTION = 'cc-unit-collection';
|
|
28
|
+
var TABS_FACTORY = 'cc-unit-factory';
|
|
29
|
+
export var CcUnitContext = /*#__PURE__*/createContext({});
|
|
30
|
+
var Provider = CcUnitContext.Provider;
|
|
31
|
+
var VtxCcUnitModal = function VtxCcUnitModal(props) {
|
|
32
|
+
var _props$visible = props.visible,
|
|
33
|
+
visible = _props$visible === void 0 ? false : _props$visible,
|
|
34
|
+
onCancel = props.onCancel,
|
|
35
|
+
_props$tabChose = props.tabChose,
|
|
36
|
+
tabChose = _props$tabChose === void 0 ? '' : _props$tabChose,
|
|
37
|
+
_props$theme = props.theme,
|
|
38
|
+
theme = _props$theme === void 0 ? 'blue' : _props$theme,
|
|
39
|
+
id = props.id,
|
|
40
|
+
_props$title = props.title,
|
|
41
|
+
title = _props$title === void 0 ? '' : _props$title;
|
|
42
|
+
var tabs = [{
|
|
43
|
+
key: TABS_BASE,
|
|
44
|
+
title: '总览信息'
|
|
45
|
+
}];
|
|
46
|
+
var _BasicService$useInfo = BasicService.useInfo({
|
|
47
|
+
id: id
|
|
48
|
+
}),
|
|
49
|
+
basicInfo = _BasicService$useInfo.basicInfo,
|
|
50
|
+
visited = _BasicService$useInfo.visited,
|
|
51
|
+
tabConfig = _BasicService$useInfo.tabConfig;
|
|
52
|
+
var _useGetConfig = useGetConfig('cc-unit', tabs),
|
|
53
|
+
tabsData = _useGetConfig.tabsData;
|
|
54
|
+
var _useState = useState({
|
|
55
|
+
visible: false,
|
|
56
|
+
id: '',
|
|
57
|
+
title: ''
|
|
58
|
+
}),
|
|
59
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
60
|
+
restaurantModal = _useState2[0],
|
|
61
|
+
setRestaurantModal = _useState2[1];
|
|
62
|
+
var _useState3 = useState({
|
|
63
|
+
visible: false,
|
|
64
|
+
id: '',
|
|
65
|
+
title: ''
|
|
66
|
+
}),
|
|
67
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
68
|
+
carModal = _useState4[0],
|
|
69
|
+
setCarModal = _useState4[1];
|
|
70
|
+
var openCar = useMemoizedFn(function (info) {
|
|
71
|
+
setCarModal(_objectSpread({
|
|
72
|
+
visible: true
|
|
73
|
+
}, info));
|
|
74
|
+
});
|
|
75
|
+
var closeCar = useMemoizedFn(function () {
|
|
76
|
+
setCarModal({
|
|
77
|
+
visible: false,
|
|
78
|
+
id: '',
|
|
79
|
+
title: ''
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
var openRestaurant = useMemoizedFn(function (info) {
|
|
83
|
+
setRestaurantModal(_objectSpread({
|
|
84
|
+
visible: true
|
|
85
|
+
}, info));
|
|
86
|
+
});
|
|
87
|
+
var closeRestaurantModal = useMemoizedFn(function () {
|
|
88
|
+
setRestaurantModal({
|
|
89
|
+
visible: false,
|
|
90
|
+
id: '',
|
|
91
|
+
title: ''
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
var value = useMemo(function () {
|
|
95
|
+
return {
|
|
96
|
+
openCar: openCar,
|
|
97
|
+
openRestaurant: openRestaurant
|
|
98
|
+
};
|
|
99
|
+
}, []);
|
|
100
|
+
return /*#__PURE__*/_jsxs(Provider, {
|
|
101
|
+
value: value,
|
|
102
|
+
children: [/*#__PURE__*/_jsx(VtxBaseModal, {
|
|
103
|
+
title: title,
|
|
104
|
+
theme: theme,
|
|
105
|
+
visible: visible,
|
|
106
|
+
onCancel: onCancel,
|
|
107
|
+
tabs: tabsData,
|
|
108
|
+
tabChose: tabChose,
|
|
109
|
+
id: id,
|
|
110
|
+
contents: _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, TABS_BASE, /*#__PURE__*/_jsx(BaseInfo, {
|
|
111
|
+
info: basicInfo,
|
|
112
|
+
id: id
|
|
113
|
+
})), TABS_DETAIL, /*#__PURE__*/_jsx(DetailInfo, {
|
|
114
|
+
info: basicInfo
|
|
115
|
+
})), TABS_COLLECTION, /*#__PURE__*/_jsx(Collection, {
|
|
116
|
+
info: basicInfo,
|
|
117
|
+
id: id
|
|
118
|
+
})), TABS_FACTORY, /*#__PURE__*/_jsx(Factory, {
|
|
119
|
+
info: basicInfo,
|
|
120
|
+
id: id
|
|
121
|
+
})), TABS_RESTAURANT, /*#__PURE__*/_jsx(RestaurantList, {
|
|
122
|
+
info: basicInfo,
|
|
123
|
+
id: id
|
|
124
|
+
})), TABS_CAR, /*#__PURE__*/_jsx(CarList, {
|
|
125
|
+
id: id
|
|
126
|
+
}))
|
|
127
|
+
}), carModal.visible && /*#__PURE__*/_jsx(VtxCarModal, _objectSpread(_objectSpread({}, carModal), {}, {
|
|
128
|
+
theme: theme,
|
|
129
|
+
onCancel: closeCar
|
|
130
|
+
})), restaurantModal.visible && /*#__PURE__*/_jsx(VtxRestaurantModal, _objectSpread(_objectSpread({}, restaurantModal), {}, {
|
|
131
|
+
theme: theme,
|
|
132
|
+
onCancel: closeRestaurantModal,
|
|
133
|
+
showCharts: true
|
|
134
|
+
}))]
|
|
135
|
+
});
|
|
136
|
+
};
|
|
137
|
+
export default VtxCcUnitModal;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./index.less";
|
package/lib/vtx-cp-modal/api.js
CHANGED
|
@@ -12,7 +12,7 @@ var BaseService = {
|
|
|
12
12
|
return request.get('/cloud/ljsy-reborn/api/collect/point/get', {
|
|
13
13
|
data: {
|
|
14
14
|
id: id,
|
|
15
|
-
coordinateType:
|
|
15
|
+
coordinateType: 'wgs84'
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
}, {
|
|
@@ -68,7 +68,7 @@ var BaseService = {
|
|
|
68
68
|
collectPointId: id,
|
|
69
69
|
startDate: startDate,
|
|
70
70
|
endDate: endDate,
|
|
71
|
-
coordinateType: '
|
|
71
|
+
coordinateType: 'wgs84'
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
74
|
}, {
|
|
@@ -82,7 +82,7 @@ var BaseService = {
|
|
|
82
82
|
collectPointId: id,
|
|
83
83
|
startDate: startDate,
|
|
84
84
|
endDate: endDate,
|
|
85
|
-
coordinateType: '
|
|
85
|
+
coordinateType: ' wgs84'
|
|
86
86
|
}
|
|
87
87
|
});
|
|
88
88
|
}, {
|
|
@@ -4,6 +4,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
4
4
|
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); }
|
|
5
5
|
import { useMemo } from 'react';
|
|
6
6
|
import VmCustom from "../_components/vm-custom";
|
|
7
|
+
import VmRepairMaintain from "../_components/vm-repair-maintain";
|
|
7
8
|
import useGetChannels from "../_hooks/useGetChannels";
|
|
8
9
|
import useGetConfig from "../_hooks/useGetConfig";
|
|
9
10
|
import VtxBaseModal from "../vtx-base-modal";
|
|
@@ -75,7 +76,7 @@ var VtxCpModal = function VtxCpModal(props) {
|
|
|
75
76
|
}
|
|
76
77
|
return tabsList;
|
|
77
78
|
}, [JSON.stringify(tabsData), JSON.stringify(channels), JSON.stringify(facConfig)]);
|
|
78
|
-
var contents = _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, TABS_BASE, /*#__PURE__*/_jsx(BaseInfo, {
|
|
79
|
+
var contents = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, TABS_BASE, /*#__PURE__*/_jsx(BaseInfo, {
|
|
79
80
|
id: id,
|
|
80
81
|
baseInfo: baseInfo,
|
|
81
82
|
info: info,
|
|
@@ -86,6 +87,8 @@ var VtxCpModal = function VtxCpModal(props) {
|
|
|
86
87
|
id: id
|
|
87
88
|
})), TABS_EXECEPTION, /*#__PURE__*/_jsx(ExeceptionInfo, {
|
|
88
89
|
id: id
|
|
90
|
+
})), TABS_RM, /*#__PURE__*/_jsx(VmRepairMaintain, {
|
|
91
|
+
id: id
|
|
89
92
|
}));
|
|
90
93
|
// 自定义页签可配置多个,包含custom即可
|
|
91
94
|
if (tabsData !== null && tabsData !== void 0 && tabsData.length) {
|
|
@@ -7,9 +7,8 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
7
7
|
/**
|
|
8
8
|
* 通用弹窗
|
|
9
9
|
*/
|
|
10
|
-
|
|
11
|
-
import
|
|
12
|
-
// import RepaireMaintain from '../vm-repair-maintain';
|
|
10
|
+
import { VmCustom, VmRepairMaintain, VmVideo } from "../_components";
|
|
11
|
+
import Appraisal from "../vtx-kh-modal/components/Record";
|
|
13
12
|
// import VmVideo from '../vm-video';
|
|
14
13
|
import { useMemo } from 'react';
|
|
15
14
|
import useGetChannels from "../_hooks/useGetChannels";
|
|
@@ -21,8 +20,8 @@ import { BaseInfo } from "./components";
|
|
|
21
20
|
import "./style";
|
|
22
21
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
23
22
|
var TABS_BASE = 'default-base';
|
|
24
|
-
var TABS_APPRAISAL = 'appraisal';
|
|
25
|
-
var TABS_RM = 'rm';
|
|
23
|
+
var TABS_APPRAISAL = 'default-appraisal';
|
|
24
|
+
var TABS_RM = 'default-rm';
|
|
26
25
|
var TABS_VIDEO = 'video';
|
|
27
26
|
var TABS_METERING = 'metering';
|
|
28
27
|
var VtxDefaultModal = function VtxDefaultModal(props) {
|
|
@@ -83,9 +82,13 @@ var VtxDefaultModal = function VtxDefaultModal(props) {
|
|
|
83
82
|
config: {}
|
|
84
83
|
} : undefined
|
|
85
84
|
};
|
|
86
|
-
var contents = _defineProperty(_defineProperty(_defineProperty({}, TABS_BASE, /*#__PURE__*/_jsx(BaseInfo, _objectSpread(_objectSpread({}, param), {}, {
|
|
85
|
+
var contents = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, TABS_BASE, /*#__PURE__*/_jsx(BaseInfo, _objectSpread(_objectSpread({}, param), {}, {
|
|
87
86
|
mapPoints: mapPoints
|
|
88
|
-
}))),
|
|
87
|
+
}))), TABS_APPRAISAL, /*#__PURE__*/_jsx(Appraisal, {
|
|
88
|
+
id: id
|
|
89
|
+
})), TABS_RM, /*#__PURE__*/_jsx(VmRepairMaintain, {
|
|
90
|
+
id: id
|
|
91
|
+
})), TABS_VIDEO, /*#__PURE__*/_jsx(VmVideo, {
|
|
89
92
|
channels: channels
|
|
90
93
|
})), TABS_METERING, /*#__PURE__*/_jsx(Metering, {
|
|
91
94
|
id: id
|