@vtx/modals2 5.0.31 → 5.0.33
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 +2 -1
- package/lib/_components/vm-info-collection/style/index.js +1 -0
- package/lib/_components/vm-pie-charts/index.js +4 -2
- package/lib/_components/vm-popover/index.js +19 -0
- package/lib/_components/vm-popover/index.less +7 -0
- package/lib/style/index.less +1 -1
- package/lib/vtx-base-modal/style/index.less +0 -1
- package/lib/vtx-car-modal/api.js +47 -4
- package/lib/vtx-car-modal/content/Jzlj/Alarm/Bottom.js +6 -6
- package/lib/vtx-car-modal/content/Jzlj/BaseInfo/index.js +27 -20
- package/lib/vtx-car-modal/content/Jzlj/Collection/index.js +21 -6
- package/lib/vtx-car-modal/content/Jzlj/Dispose/Pies.js +11 -6
- package/lib/vtx-car-modal/content/Jzlj/Dispose/index.js +19 -12
- package/lib/vtx-car-modal/content/Jzlj/RunCalendar/index.js +9 -7
- package/lib/vtx-car-modal/index.js +1 -1
- package/lib/vtx-device-modal/api.js +140 -110
- package/lib/vtx-device-modal/components/BaseInfo/KnowledgeBasesDetail.js +81 -0
- package/lib/vtx-device-modal/components/BaseInfo/PreviewAndDownload.js +92 -0
- package/lib/vtx-device-modal/components/BaseInfo/index.js +104 -46
- package/lib/vtx-jzlj-df-tpd-modal/api.js +31 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/Collection/Chart.js +5 -4
- package/lib/vtx-jzlj-df-tpd-modal/components/Collection/index.js +9 -6
- package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/index.js +8 -6
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTL.js +7 -6
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTYL.js +5 -4
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CZZ.js +5 -4
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/index.js +11 -3
- package/lib/vtx-jzlj-gcxm-modal/api.js +31 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Collection/Chart.js +5 -4
- package/lib/vtx-jzlj-gcxm-modal/components/Collection/index.js +9 -6
- package/lib/vtx-jzlj-gcxm-modal/components/Dispose/index.js +9 -7
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTL.js +6 -5
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTYL.js +5 -4
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/CZZ.js +9 -8
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/index.js +11 -2
- package/lib/vtx-jzlj-xnc-modal/api.js +31 -0
- package/lib/vtx-jzlj-xnc-modal/components/Collection/Chart.js +5 -4
- package/lib/vtx-jzlj-xnc-modal/components/Collection/index.js +9 -6
- package/lib/vtx-jzlj-xnc-modal/components/Dispose/index.js +9 -7
- package/lib/vtx-jzlj-xnc-modal/components/Overview/CTL.js +7 -6
- package/lib/vtx-jzlj-xnc-modal/components/Overview/CTYL.js +5 -4
- package/lib/vtx-jzlj-xnc-modal/components/Overview/CZZ.js +8 -7
- package/lib/vtx-jzlj-xnc-modal/components/Overview/index.js +11 -3
- package/lib/vtx-staff-modal/components/Equipment/index.js +1 -1
- package/package.json +1 -1
|
@@ -16,7 +16,7 @@ import React from 'react';
|
|
|
16
16
|
import { JzljGcxmContext } from "../..";
|
|
17
17
|
import { VmFactorList, VmFilter, VmTable, VmTag, VmWrapper } from "../../../_components";
|
|
18
18
|
import useSettings from "../../../_hooks/useSettings";
|
|
19
|
-
import { disposeApis, fetchJzljEnum, getByParamTypeCode, overviewApis } from "../../api";
|
|
19
|
+
import { disposeApis, fetchJzljEnum, getByParamTypeCode, overviewApis, useUnit } from "../../api";
|
|
20
20
|
import FlowMap from "./FlowMap";
|
|
21
21
|
import "./index.less";
|
|
22
22
|
import dispose_czz_dark from "../../imgs/dispose_czz_dark.png";
|
|
@@ -54,6 +54,8 @@ export default function Dispose() {
|
|
|
54
54
|
effectiveStatusCode = state.effectiveStatusCode,
|
|
55
55
|
garbageTypeCode = state.garbageTypeCode,
|
|
56
56
|
flowData = state.flowData;
|
|
57
|
+
var _useUnit = useUnit(),
|
|
58
|
+
unitStr = _useUnit.unitStr;
|
|
57
59
|
var effectiveStatusList = fetchJzljEnum('EffectiveStatusEnum');
|
|
58
60
|
var garbageTypeList = getByParamTypeCode('param_jzlj_disposal_garbage_type');
|
|
59
61
|
var columns = [['运输单位', 'transportUnitName', {
|
|
@@ -64,7 +66,7 @@ export default function Dispose() {
|
|
|
64
66
|
ellipsis: true
|
|
65
67
|
}], ['运输垃圾类型', 'garbageTypeName', {
|
|
66
68
|
width: 100
|
|
67
|
-
}], [
|
|
69
|
+
}], ["\u8FD0\u8F93\u91CF(".concat(unitStr, ")"), 'transportWeight', {
|
|
68
70
|
width: 80,
|
|
69
71
|
align: 'right'
|
|
70
72
|
}], ['申报有效期', 'effectiveDate', {
|
|
@@ -95,7 +97,7 @@ export default function Dispose() {
|
|
|
95
97
|
setIframeModalInfo({
|
|
96
98
|
visible: true,
|
|
97
99
|
title: '处置证信息',
|
|
98
|
-
src: "/jzlj/#/disposalApprovalFill?id=".concat(record.id)
|
|
100
|
+
src: "/jzlj/#/disposalApprovalFill?id=".concat(record.id, "&effectiveStatusCode=").concat(record.effectiveStatusCode)
|
|
99
101
|
});
|
|
100
102
|
},
|
|
101
103
|
children: "\u67E5\u770B"
|
|
@@ -172,7 +174,7 @@ export default function Dispose() {
|
|
|
172
174
|
totalWeight = _ctlData$totalWeight === void 0 ? 0 : _ctlData$totalWeight;
|
|
173
175
|
var totalList = [{
|
|
174
176
|
name: '处置证数量',
|
|
175
|
-
unit: '
|
|
177
|
+
unit: '张',
|
|
176
178
|
value: totalCzzCount,
|
|
177
179
|
unitStyle: {
|
|
178
180
|
fontSize: 14
|
|
@@ -186,7 +188,7 @@ export default function Dispose() {
|
|
|
186
188
|
fontType: 'blue'
|
|
187
189
|
}, {
|
|
188
190
|
name: '总申报量',
|
|
189
|
-
unit:
|
|
191
|
+
unit: unitStr,
|
|
190
192
|
value: totalWeight,
|
|
191
193
|
unitStyle: {
|
|
192
194
|
fontSize: 14
|
|
@@ -200,7 +202,7 @@ export default function Dispose() {
|
|
|
200
202
|
fontType: 'green'
|
|
201
203
|
}, {
|
|
202
204
|
name: '总已运量',
|
|
203
|
-
unit:
|
|
205
|
+
unit: unitStr,
|
|
204
206
|
value: yysWeight,
|
|
205
207
|
unitStyle: {
|
|
206
208
|
fontSize: 14
|
|
@@ -214,7 +216,7 @@ export default function Dispose() {
|
|
|
214
216
|
fontType: 'purple'
|
|
215
217
|
}, {
|
|
216
218
|
name: '剩余量',
|
|
217
|
-
unit:
|
|
219
|
+
unit: unitStr,
|
|
218
220
|
value: syWeight,
|
|
219
221
|
unitStyle: {
|
|
220
222
|
fontSize: 14
|
|
@@ -11,7 +11,8 @@ import useSettings from "../../../_hooks/useSettings";
|
|
|
11
11
|
import { overviewApis } from "../../api";
|
|
12
12
|
import "./index.less";
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
-
export default function CZZ() {
|
|
14
|
+
export default function CZZ(_ref) {
|
|
15
|
+
var unitStr = _ref.unitStr;
|
|
15
16
|
var _React$useContext = React.useContext(JzljGcxmContext),
|
|
16
17
|
id = _React$useContext.id,
|
|
17
18
|
theme = _React$useContext.theme;
|
|
@@ -38,12 +39,12 @@ export default function CZZ() {
|
|
|
38
39
|
children: (dataList === null || dataList === void 0 ? void 0 : dataList.length) > 0 ? /*#__PURE__*/_jsx(VmPieCharts, {
|
|
39
40
|
dataList: dataList,
|
|
40
41
|
name: "\u7533\u62A5\u603B\u91CF",
|
|
41
|
-
title: "\u7533\u62A5\u603B\u91CF(
|
|
42
|
+
title: "\u7533\u62A5\u603B\u91CF(".concat(unitStr, ")"),
|
|
42
43
|
total: totalWeight,
|
|
43
44
|
loading: loading,
|
|
44
|
-
unit:
|
|
45
|
-
innerRadius: ['
|
|
46
|
-
outerRadius: ['
|
|
45
|
+
unit: unitStr,
|
|
46
|
+
innerRadius: ['55%', '75%'],
|
|
47
|
+
outerRadius: ['75%', '85%'],
|
|
47
48
|
legendConfig: {
|
|
48
49
|
right: 0,
|
|
49
50
|
textStyle: {
|
|
@@ -9,7 +9,8 @@ import overview_ctyl_pjrcc_light from "../../imgs/overview_ctyl_pjrcc_light.png"
|
|
|
9
9
|
import overview_ctyl_pjryl_dark from "../../imgs/overview_ctyl_pjryl_dark.png";
|
|
10
10
|
import overview_ctyl_pjryl_light from "../../imgs/overview_ctyl_pjryl_light.png";
|
|
11
11
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
-
export default function CZZ() {
|
|
12
|
+
export default function CZZ(_ref) {
|
|
13
|
+
var unitStr = _ref.unitStr;
|
|
13
14
|
var _React$useContext = React.useContext(JzljGcxmContext),
|
|
14
15
|
id = _React$useContext.id,
|
|
15
16
|
theme = _React$useContext.theme;
|
|
@@ -26,7 +27,7 @@ export default function CZZ() {
|
|
|
26
27
|
histogramList = _data$histogramList === void 0 ? [] : _data$histogramList;
|
|
27
28
|
var dataList_top = [{
|
|
28
29
|
name: '平均日运量',
|
|
29
|
-
unit:
|
|
30
|
+
unit: unitStr,
|
|
30
31
|
value: avgDayWeight,
|
|
31
32
|
img: isDark ? overview_ctyl_pjryl_dark : overview_ctyl_pjryl_light,
|
|
32
33
|
fontType: 'blue',
|
|
@@ -80,8 +81,8 @@ export default function CZZ() {
|
|
|
80
81
|
name: '(次)'
|
|
81
82
|
}, {
|
|
82
83
|
key: "\u2000",
|
|
83
|
-
unit:
|
|
84
|
-
name:
|
|
84
|
+
unit: unitStr,
|
|
85
|
+
name: "(".concat(unitStr, ")")
|
|
85
86
|
}],
|
|
86
87
|
lineList: [{
|
|
87
88
|
name: '车次',
|
|
@@ -9,7 +9,8 @@ import overview_czz_zl_light from "../../imgs/overview_czz_zl_light.png";
|
|
|
9
9
|
import overview_czz_zs_dark from "../../imgs/overview_czz_zs_dark.png";
|
|
10
10
|
import overview_czz_zs_light from "../../imgs/overview_czz_zs_light.png";
|
|
11
11
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
-
export default function CZZ() {
|
|
12
|
+
export default function CZZ(_ref) {
|
|
13
|
+
var unitStr = _ref.unitStr;
|
|
13
14
|
var _React$useContext = React.useContext(JzljGcxmContext),
|
|
14
15
|
id = _React$useContext.id,
|
|
15
16
|
theme = _React$useContext.theme;
|
|
@@ -29,7 +30,7 @@ export default function CZZ() {
|
|
|
29
30
|
syWeight = _data$syWeight === void 0 ? 0 : _data$syWeight;
|
|
30
31
|
var dataList_top = [{
|
|
31
32
|
name: '总数',
|
|
32
|
-
unit: '
|
|
33
|
+
unit: '张',
|
|
33
34
|
value: totalCzzCount,
|
|
34
35
|
img: isDark ? overview_czz_zl_dark : overview_czz_zs_light,
|
|
35
36
|
fontType: 'blue',
|
|
@@ -41,7 +42,7 @@ export default function CZZ() {
|
|
|
41
42
|
}
|
|
42
43
|
}, {
|
|
43
44
|
name: '总量',
|
|
44
|
-
unit:
|
|
45
|
+
unit: unitStr,
|
|
45
46
|
value: yysWeight + syWeight,
|
|
46
47
|
img: isDark ? overview_czz_zs_dark : overview_czz_zl_light,
|
|
47
48
|
fontType: 'blue',
|
|
@@ -49,12 +50,12 @@ export default function CZZ() {
|
|
|
49
50
|
fontSize: 14
|
|
50
51
|
},
|
|
51
52
|
style: {
|
|
52
|
-
flex: 1
|
|
53
|
+
flex: 1.5
|
|
53
54
|
}
|
|
54
55
|
}];
|
|
55
56
|
var dataList_bahz = [{
|
|
56
57
|
name: '备案量',
|
|
57
|
-
unit:
|
|
58
|
+
unit: unitStr,
|
|
58
59
|
value: baWeight,
|
|
59
60
|
unitStyle: {
|
|
60
61
|
fontSize: 14
|
|
@@ -66,7 +67,7 @@ export default function CZZ() {
|
|
|
66
67
|
}
|
|
67
68
|
}, {
|
|
68
69
|
name: '核准量',
|
|
69
|
-
unit:
|
|
70
|
+
unit: unitStr,
|
|
70
71
|
value: 0,
|
|
71
72
|
unitStyle: {
|
|
72
73
|
fontSize: 14
|
|
@@ -79,7 +80,7 @@ export default function CZZ() {
|
|
|
79
80
|
}];
|
|
80
81
|
var dataList_yssy = [{
|
|
81
82
|
name: '已运输量',
|
|
82
|
-
unit:
|
|
83
|
+
unit: unitStr,
|
|
83
84
|
value: yysWeight,
|
|
84
85
|
unitStyle: {
|
|
85
86
|
fontSize: 14
|
|
@@ -91,7 +92,7 @@ export default function CZZ() {
|
|
|
91
92
|
}
|
|
92
93
|
}, {
|
|
93
94
|
name: '剩余量',
|
|
94
|
-
unit:
|
|
95
|
+
unit: unitStr,
|
|
95
96
|
value: syWeight,
|
|
96
97
|
unitStyle: {
|
|
97
98
|
fontSize: 14
|
|
@@ -7,6 +7,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { JzljGcxmContext } from "../..";
|
|
9
9
|
import { VmInfoCollection, VmMap, VmWrapper } from "../../../_components";
|
|
10
|
+
import { useUnit } from "../../api";
|
|
10
11
|
import CTL from "./CTL";
|
|
11
12
|
import CTYL from "./CTYL";
|
|
12
13
|
import CZZ from "./CZZ";
|
|
@@ -68,6 +69,8 @@ export default function Overview() {
|
|
|
68
69
|
rings: lngLats
|
|
69
70
|
}];
|
|
70
71
|
}
|
|
72
|
+
var _useUnit = useUnit(),
|
|
73
|
+
unitStr = _useUnit.unitStr;
|
|
71
74
|
return /*#__PURE__*/_jsxs("div", {
|
|
72
75
|
className: "overview",
|
|
73
76
|
children: [/*#__PURE__*/_jsx("div", {
|
|
@@ -86,10 +89,16 @@ export default function Overview() {
|
|
|
86
89
|
className: "overview-right",
|
|
87
90
|
children: [/*#__PURE__*/_jsxs("div", {
|
|
88
91
|
className: "overview-right-top",
|
|
89
|
-
children: [/*#__PURE__*/_jsx(CZZ, {
|
|
92
|
+
children: [/*#__PURE__*/_jsx(CZZ, {
|
|
93
|
+
unitStr: unitStr
|
|
94
|
+
}), /*#__PURE__*/_jsx(CTL, {
|
|
95
|
+
unitStr: unitStr
|
|
96
|
+
})]
|
|
90
97
|
}), /*#__PURE__*/_jsx("div", {
|
|
91
98
|
className: "overview-right-bottom",
|
|
92
|
-
children: /*#__PURE__*/_jsx(CTYL, {
|
|
99
|
+
children: /*#__PURE__*/_jsx(CTYL, {
|
|
100
|
+
unitStr: unitStr
|
|
101
|
+
})
|
|
93
102
|
})]
|
|
94
103
|
})]
|
|
95
104
|
});
|
|
@@ -209,4 +209,35 @@ export var getByParamTypeCode = function getByParamTypeCode(paramTypeCode) {
|
|
|
209
209
|
_useRequest7$data = _useRequest7.data,
|
|
210
210
|
data = _useRequest7$data === void 0 ? {} : _useRequest7$data;
|
|
211
211
|
return (data === null || data === void 0 ? void 0 : data.data) || [];
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
// 单位
|
|
215
|
+
export var useUnit = function useUnit() {
|
|
216
|
+
var _data$data, _unitStr;
|
|
217
|
+
var groupCode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'XTPZ';
|
|
218
|
+
var _useRequest8 = useRequest(function () {
|
|
219
|
+
return request.get("/cloud/jzlj/web/api/tenant/system/config/getConfig", {
|
|
220
|
+
data: {}
|
|
221
|
+
});
|
|
222
|
+
}, {
|
|
223
|
+
refreshDeps: [groupCode]
|
|
224
|
+
}),
|
|
225
|
+
data = _useRequest8.data;
|
|
226
|
+
var obj = {};
|
|
227
|
+
var originalData = data === null || data === void 0 || (_data$data = data.data) === null || _data$data === void 0 ? void 0 : _data$data[groupCode];
|
|
228
|
+
for (var group in originalData) {
|
|
229
|
+
if (originalData.hasOwnProperty(group)) {
|
|
230
|
+
for (var item in originalData[group]) {
|
|
231
|
+
var _originalData$group;
|
|
232
|
+
obj[item] = (_originalData$group = originalData[group]) === null || _originalData$group === void 0 ? void 0 : _originalData$group[item];
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
var jointOrderWeightUnitTypeName = obj === null || obj === void 0 ? void 0 : obj.jointOrderWeightUnitTypeName;
|
|
237
|
+
var nameSplitArr = jointOrderWeightUnitTypeName === null || jointOrderWeightUnitTypeName === void 0 ? void 0 : jointOrderWeightUnitTypeName.split('(');
|
|
238
|
+
var unitStr = (nameSplitArr === null || nameSplitArr === void 0 ? void 0 : nameSplitArr[1]) || '吨)';
|
|
239
|
+
unitStr = (_unitStr = unitStr) === null || _unitStr === void 0 ? void 0 : _unitStr.replace(')', '');
|
|
240
|
+
return {
|
|
241
|
+
unitStr: unitStr
|
|
242
|
+
};
|
|
212
243
|
};
|
|
@@ -8,7 +8,8 @@ import overview_ctyl_pjryl_light from "../../imgs/overview_ctyl_pjryl_light.png"
|
|
|
8
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
9
|
export default function Chart(_ref) {
|
|
10
10
|
var _ref$data = _ref.data,
|
|
11
|
-
data = _ref$data === void 0 ? {} : _ref$data
|
|
11
|
+
data = _ref$data === void 0 ? {} : _ref$data,
|
|
12
|
+
unitStr = _ref.unitStr;
|
|
12
13
|
var _useSettings = useSettings(),
|
|
13
14
|
isDark = _useSettings.isDark;
|
|
14
15
|
var _data$avgDayCount = data.avgDayCount,
|
|
@@ -19,7 +20,7 @@ export default function Chart(_ref) {
|
|
|
19
20
|
histogramList = _data$histogramList === void 0 ? [] : _data$histogramList;
|
|
20
21
|
var dataList_top = [{
|
|
21
22
|
name: '平均日运量',
|
|
22
|
-
unit:
|
|
23
|
+
unit: unitStr,
|
|
23
24
|
value: avgDayWeight,
|
|
24
25
|
img: isDark ? overview_ctyl_pjryl_dark : overview_ctyl_pjryl_light,
|
|
25
26
|
fontType: 'blue',
|
|
@@ -76,8 +77,8 @@ export default function Chart(_ref) {
|
|
|
76
77
|
name: '(次)'
|
|
77
78
|
}, {
|
|
78
79
|
key: "\u2000",
|
|
79
|
-
unit:
|
|
80
|
-
name:
|
|
80
|
+
unit: unitStr,
|
|
81
|
+
name: "(".concat(unitStr, ")")
|
|
81
82
|
}],
|
|
82
83
|
lineList: [{
|
|
83
84
|
name: '车次',
|
|
@@ -16,7 +16,7 @@ import React, { useEffect } from 'react';
|
|
|
16
16
|
import { JzljXncContext } from "../..";
|
|
17
17
|
import { VmFactorList, VmFilter, VmTable, VmTag, VmWrapper } from "../../../_components";
|
|
18
18
|
import useSettings from "../../../_hooks/useSettings";
|
|
19
|
-
import { collectionApis } from "../../api";
|
|
19
|
+
import { collectionApis, useUnit } from "../../api";
|
|
20
20
|
import "./index.less";
|
|
21
21
|
import dayjs from 'dayjs';
|
|
22
22
|
import cc_dark from "../../imgs/overview_ctyl_pjrcc_dark.png";
|
|
@@ -55,6 +55,8 @@ export default function Collection() {
|
|
|
55
55
|
endingPointName = state.endingPointName,
|
|
56
56
|
totalData = state.totalData,
|
|
57
57
|
chartData = state.chartData;
|
|
58
|
+
var _useUnit = useUnit(),
|
|
59
|
+
unitStr = _useUnit.unitStr;
|
|
58
60
|
var columns = [['联单编号', 'code', {
|
|
59
61
|
width: 120,
|
|
60
62
|
fixed: 'left',
|
|
@@ -94,7 +96,7 @@ export default function Collection() {
|
|
|
94
96
|
width: 180
|
|
95
97
|
}], ['建筑垃圾类别', 'garbageTypeName', {
|
|
96
98
|
width: 120
|
|
97
|
-
}], [
|
|
99
|
+
}], ["\u8FD0\u91CF(".concat(unitStr, ")"), 'receivedWeight', {
|
|
98
100
|
width: 120,
|
|
99
101
|
align: 'right'
|
|
100
102
|
}], ['操作', 'action', {
|
|
@@ -127,8 +129,8 @@ export default function Collection() {
|
|
|
127
129
|
disposalCertificateInfoCode: disposalCertificateInfoCode,
|
|
128
130
|
code: code,
|
|
129
131
|
startingPointName: endingPointName,
|
|
130
|
-
stepThreeOperateTimeLeft: stepThreeOperateTimeLeft.format('YYYY-MM-DD'),
|
|
131
|
-
stepThreeOperateTimeRight: stepThreeOperateTimeRight.format('YYYY-MM-DD')
|
|
132
|
+
stepThreeOperateTimeLeft: stepThreeOperateTimeLeft.format('YYYY-MM-DD 00:00:00'),
|
|
133
|
+
stepThreeOperateTimeRight: stepThreeOperateTimeRight.format('YYYY-MM-DD 23:59:59')
|
|
132
134
|
};
|
|
133
135
|
collectionApis.jcssOrderAnalyse({
|
|
134
136
|
startingPointId: id,
|
|
@@ -195,7 +197,7 @@ export default function Collection() {
|
|
|
195
197
|
fontType: 'green'
|
|
196
198
|
}, {
|
|
197
199
|
name: '总接收量',
|
|
198
|
-
unit:
|
|
200
|
+
unit: unitStr,
|
|
199
201
|
value: totalWeight,
|
|
200
202
|
unitStyle: {
|
|
201
203
|
fontSize: 14
|
|
@@ -278,7 +280,8 @@ export default function Collection() {
|
|
|
278
280
|
},
|
|
279
281
|
children: /*#__PURE__*/_jsx(_Fragment, {
|
|
280
282
|
children: activeKey === 'chart' ? /*#__PURE__*/_jsx(Chart, {
|
|
281
|
-
data: chartData
|
|
283
|
+
data: chartData,
|
|
284
|
+
unitStr: unitStr
|
|
282
285
|
}) : /*#__PURE__*/_jsxs("div", {
|
|
283
286
|
className: "collection-myTable",
|
|
284
287
|
children: [/*#__PURE__*/_jsxs("div", {
|
|
@@ -16,7 +16,7 @@ import React from 'react';
|
|
|
16
16
|
import { JzljXncContext } from "../..";
|
|
17
17
|
import { VmFactorList, VmFilter, VmTable, VmTag, VmWrapper } from "../../../_components";
|
|
18
18
|
import useSettings from "../../../_hooks/useSettings";
|
|
19
|
-
import { disposeApis, fetchJzljEnum, getByParamTypeCode, overviewApis } from "../../api";
|
|
19
|
+
import { disposeApis, fetchJzljEnum, getByParamTypeCode, overviewApis, useUnit } from "../../api";
|
|
20
20
|
import FlowMap from "./FlowMap";
|
|
21
21
|
import "./index.less";
|
|
22
22
|
import dispose_czz_dark from "../../imgs/dispose_czz_dark.png";
|
|
@@ -52,6 +52,8 @@ export default function Dispose() {
|
|
|
52
52
|
effectiveStatusCode = state.effectiveStatusCode,
|
|
53
53
|
garbageTypeCode = state.garbageTypeCode,
|
|
54
54
|
flowData = state.flowData;
|
|
55
|
+
var _useUnit = useUnit(),
|
|
56
|
+
unitStr = _useUnit.unitStr;
|
|
55
57
|
var effectiveStatusList = fetchJzljEnum('EffectiveStatusEnum');
|
|
56
58
|
var garbageTypeList = getByParamTypeCode('param_jzlj_disposal_garbage_type');
|
|
57
59
|
var columns = [['运输单位', 'transportUnitName', {
|
|
@@ -62,7 +64,7 @@ export default function Dispose() {
|
|
|
62
64
|
ellipsis: true
|
|
63
65
|
}], ['运输垃圾类型', 'garbageTypeName', {
|
|
64
66
|
width: 100
|
|
65
|
-
}], [
|
|
67
|
+
}], ["\u8FD0\u8F93\u91CF(".concat(unitStr, ")"), 'transportWeight', {
|
|
66
68
|
width: 80,
|
|
67
69
|
align: 'right'
|
|
68
70
|
}], ['申报有效期', 'effectiveDate', {
|
|
@@ -93,7 +95,7 @@ export default function Dispose() {
|
|
|
93
95
|
setIframeModalInfo({
|
|
94
96
|
visible: true,
|
|
95
97
|
title: '处置证信息',
|
|
96
|
-
src: "/jzlj/#/disposalApprovalFill?id=".concat(record.id)
|
|
98
|
+
src: "/jzlj/#/disposalApprovalFill?id=".concat(record.id, "&effectiveStatusCode=").concat(record.effectiveStatusCode)
|
|
97
99
|
});
|
|
98
100
|
},
|
|
99
101
|
children: "\u67E5\u770B"
|
|
@@ -170,7 +172,7 @@ export default function Dispose() {
|
|
|
170
172
|
totalWeight = _ctlData$totalWeight === void 0 ? 0 : _ctlData$totalWeight;
|
|
171
173
|
var totalList = [{
|
|
172
174
|
name: '处置证数量',
|
|
173
|
-
unit: '
|
|
175
|
+
unit: '张',
|
|
174
176
|
value: totalCzzCount,
|
|
175
177
|
unitStyle: {
|
|
176
178
|
fontSize: 14
|
|
@@ -183,8 +185,8 @@ export default function Dispose() {
|
|
|
183
185
|
img: isDark ? dispose_czz_dark : dispose_czz_light,
|
|
184
186
|
fontType: 'blue'
|
|
185
187
|
}, {
|
|
186
|
-
name: '
|
|
187
|
-
unit:
|
|
188
|
+
name: '总接收量',
|
|
189
|
+
unit: unitStr,
|
|
188
190
|
value: yysWeight,
|
|
189
191
|
unitStyle: {
|
|
190
192
|
fontSize: 14
|
|
@@ -198,7 +200,7 @@ export default function Dispose() {
|
|
|
198
200
|
fontType: 'purple'
|
|
199
201
|
}, {
|
|
200
202
|
name: '剩余量',
|
|
201
|
-
unit:
|
|
203
|
+
unit: unitStr,
|
|
202
204
|
value: syWeight,
|
|
203
205
|
unitStyle: {
|
|
204
206
|
fontSize: 14
|
|
@@ -11,7 +11,8 @@ import useSettings from "../../../_hooks/useSettings";
|
|
|
11
11
|
import { overviewApis } from "../../api";
|
|
12
12
|
import "./index.less";
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
-
export default function CZZ() {
|
|
14
|
+
export default function CZZ(_ref) {
|
|
15
|
+
var unitStr = _ref.unitStr;
|
|
15
16
|
var _React$useContext = React.useContext(JzljXncContext),
|
|
16
17
|
id = _React$useContext.id,
|
|
17
18
|
theme = _React$useContext.theme;
|
|
@@ -34,15 +35,15 @@ export default function CZZ() {
|
|
|
34
35
|
return /*#__PURE__*/_jsx("div", {
|
|
35
36
|
className: "overview-right-top-right ".concat(theme),
|
|
36
37
|
children: /*#__PURE__*/_jsx(VmWrapper, {
|
|
37
|
-
title: "\u63A5\
|
|
38
|
+
title: "\u63A5\u6536\u91CF\u4FE1\u606F",
|
|
38
39
|
children: (dataList === null || dataList === void 0 ? void 0 : dataList.length) > 0 ? /*#__PURE__*/_jsx(VmPieCharts, {
|
|
39
40
|
dataList: dataList,
|
|
40
|
-
name: "\u4ECA\u65E5\u63A5\
|
|
41
|
-
title: "\u4ECA\u65E5\u63A5\
|
|
42
|
-
subTitle: "(
|
|
41
|
+
name: "\u4ECA\u65E5\u63A5\u6536\u91CF",
|
|
42
|
+
title: "\u4ECA\u65E5\u63A5\u6536\u603B\u91CF",
|
|
43
|
+
subTitle: "( ".concat(unitStr, " )"),
|
|
43
44
|
total: totalWeight,
|
|
44
45
|
loading: loading,
|
|
45
|
-
unit:
|
|
46
|
+
unit: unitStr,
|
|
46
47
|
innerRadius: ['50%', '70%'],
|
|
47
48
|
outerRadius: ['70%', '80%'],
|
|
48
49
|
legendConfig: {
|
|
@@ -9,7 +9,8 @@ import overview_ctyl_pjrcc_light from "../../imgs/overview_ctyl_pjrcc_light.png"
|
|
|
9
9
|
import overview_ctyl_pjryl_dark from "../../imgs/overview_ctyl_pjryl_dark.png";
|
|
10
10
|
import overview_ctyl_pjryl_light from "../../imgs/overview_ctyl_pjryl_light.png";
|
|
11
11
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
-
export default function CZZ() {
|
|
12
|
+
export default function CZZ(_ref) {
|
|
13
|
+
var unitStr = _ref.unitStr;
|
|
13
14
|
var _React$useContext = React.useContext(JzljXncContext),
|
|
14
15
|
id = _React$useContext.id,
|
|
15
16
|
theme = _React$useContext.theme;
|
|
@@ -26,7 +27,7 @@ export default function CZZ() {
|
|
|
26
27
|
histogramList = _data$histogramList === void 0 ? [] : _data$histogramList;
|
|
27
28
|
var dataList_top = [{
|
|
28
29
|
name: '平均日运量',
|
|
29
|
-
unit:
|
|
30
|
+
unit: unitStr,
|
|
30
31
|
value: avgDayWeight,
|
|
31
32
|
img: isDark ? overview_ctyl_pjryl_dark : overview_ctyl_pjryl_light,
|
|
32
33
|
fontType: 'blue',
|
|
@@ -80,8 +81,8 @@ export default function CZZ() {
|
|
|
80
81
|
name: '(次)'
|
|
81
82
|
}, {
|
|
82
83
|
key: "\u2000",
|
|
83
|
-
unit:
|
|
84
|
-
name:
|
|
84
|
+
unit: unitStr,
|
|
85
|
+
name: "(".concat(unitStr, ")")
|
|
85
86
|
}],
|
|
86
87
|
lineList: [{
|
|
87
88
|
name: '车次',
|
|
@@ -7,7 +7,8 @@ import "./index.less";
|
|
|
7
7
|
import overview_czz_zl_dark from "../../imgs/overview_czz_zl_dark.png";
|
|
8
8
|
import overview_czz_zs_light from "../../imgs/overview_czz_zs_light.png";
|
|
9
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
-
export default function CZZ() {
|
|
10
|
+
export default function CZZ(_ref) {
|
|
11
|
+
var unitStr = _ref.unitStr;
|
|
11
12
|
var _React$useContext = React.useContext(JzljXncContext),
|
|
12
13
|
id = _React$useContext.id,
|
|
13
14
|
theme = _React$useContext.theme;
|
|
@@ -27,7 +28,7 @@ export default function CZZ() {
|
|
|
27
28
|
syWeight = _data$syWeight === void 0 ? 0 : _data$syWeight;
|
|
28
29
|
var dataList_top = [{
|
|
29
30
|
name: '总数',
|
|
30
|
-
unit: '
|
|
31
|
+
unit: '张',
|
|
31
32
|
value: totalCzzCount,
|
|
32
33
|
img: isDark ? overview_czz_zl_dark : overview_czz_zs_light,
|
|
33
34
|
fontType: 'blue',
|
|
@@ -37,7 +38,7 @@ export default function CZZ() {
|
|
|
37
38
|
}];
|
|
38
39
|
var dataList_bahz = [{
|
|
39
40
|
name: '备案量',
|
|
40
|
-
unit:
|
|
41
|
+
unit: unitStr,
|
|
41
42
|
value: baWeight,
|
|
42
43
|
unitStyle: {
|
|
43
44
|
fontSize: 14
|
|
@@ -49,7 +50,7 @@ export default function CZZ() {
|
|
|
49
50
|
}
|
|
50
51
|
}, {
|
|
51
52
|
name: '核准量',
|
|
52
|
-
unit:
|
|
53
|
+
unit: unitStr,
|
|
53
54
|
value: 0,
|
|
54
55
|
unitStyle: {
|
|
55
56
|
fontSize: 14
|
|
@@ -61,8 +62,8 @@ export default function CZZ() {
|
|
|
61
62
|
}
|
|
62
63
|
}];
|
|
63
64
|
var dataList_yssy = [{
|
|
64
|
-
name: '
|
|
65
|
-
unit:
|
|
65
|
+
name: '已接收量',
|
|
66
|
+
unit: unitStr,
|
|
66
67
|
value: yysWeight,
|
|
67
68
|
unitStyle: {
|
|
68
69
|
fontSize: 14
|
|
@@ -74,7 +75,7 @@ export default function CZZ() {
|
|
|
74
75
|
}
|
|
75
76
|
}, {
|
|
76
77
|
name: '剩余量',
|
|
77
|
-
unit:
|
|
78
|
+
unit: unitStr,
|
|
78
79
|
value: syWeight,
|
|
79
80
|
unitStyle: {
|
|
80
81
|
fontSize: 14
|
|
@@ -7,7 +7,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { JzljXncContext } from "../..";
|
|
9
9
|
import { VmInfoCollection, VmMap, VmWrapper } from "../../../_components";
|
|
10
|
-
import { overviewApis } from "../../api";
|
|
10
|
+
import { overviewApis, useUnit } from "../../api";
|
|
11
11
|
import CTL from "./CTL";
|
|
12
12
|
import CTYL from "./CTYL";
|
|
13
13
|
import CZZ from "./CZZ";
|
|
@@ -27,6 +27,8 @@ export default function Overview() {
|
|
|
27
27
|
geometryInfo = info.geometryInfo;
|
|
28
28
|
var _overviewApis$useJcss = overviewApis.useJcssBubble(id),
|
|
29
29
|
jcssBubbleData = _overviewApis$useJcss.jcssBubbleData;
|
|
30
|
+
var _useUnit = useUnit(),
|
|
31
|
+
unitStr = _useUnit.unitStr;
|
|
30
32
|
var infoData = [{
|
|
31
33
|
label: '名称',
|
|
32
34
|
value: name
|
|
@@ -93,10 +95,16 @@ export default function Overview() {
|
|
|
93
95
|
className: "overview-right",
|
|
94
96
|
children: [/*#__PURE__*/_jsxs("div", {
|
|
95
97
|
className: "overview-right-top",
|
|
96
|
-
children: [/*#__PURE__*/_jsx(CZZ, {
|
|
98
|
+
children: [/*#__PURE__*/_jsx(CZZ, {
|
|
99
|
+
unitStr: unitStr
|
|
100
|
+
}), /*#__PURE__*/_jsx(CTL, {
|
|
101
|
+
unitStr: unitStr
|
|
102
|
+
})]
|
|
97
103
|
}), /*#__PURE__*/_jsx("div", {
|
|
98
104
|
className: "overview-right-bottom",
|
|
99
|
-
children: /*#__PURE__*/_jsx(CTYL, {
|
|
105
|
+
children: /*#__PURE__*/_jsx(CTYL, {
|
|
106
|
+
unitStr: unitStr
|
|
107
|
+
})
|
|
100
108
|
})]
|
|
101
109
|
})]
|
|
102
110
|
});
|
|
@@ -137,7 +137,7 @@ var Equipment = function Equipment(props) {
|
|
|
137
137
|
className: "staff-equip-map",
|
|
138
138
|
children: /*#__PURE__*/_jsx(VmMap, _objectSpread({
|
|
139
139
|
mapCenter: pointLngLat !== null && pointLngLat !== void 0 && pointLngLat.length ? pointLngLat : mapInfo === null || mapInfo === void 0 ? void 0 : mapInfo.mapCenter,
|
|
140
|
-
|
|
140
|
+
mapPoints: mapPoints
|
|
141
141
|
}, customMapInfo))
|
|
142
142
|
})
|
|
143
143
|
})]
|