@vtx/modals2 5.0.25 → 5.0.26

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.
Files changed (68) hide show
  1. package/lib/_components/vm-card-statistics/index.less +27 -27
  2. package/lib/_components/vm-factor-list/index.less +11 -11
  3. package/lib/_components/vm-table/index.js +4 -4
  4. package/lib/index.js +2 -1
  5. package/lib/vtx-base-modal/Header/index.less +98 -98
  6. package/lib/vtx-base-modal/Tabs/index.less +54 -54
  7. package/lib/vtx-car-modal/api.js +241 -1
  8. package/lib/vtx-car-modal/components/Info/index.js +34 -9
  9. package/lib/vtx-car-modal/components/Info/index.less +6 -6
  10. package/lib/vtx-car-modal/content/Common/OilConsumption/index.less +6 -6
  11. package/lib/vtx-car-modal/content/Common/WaterConsumption/index.less +6 -6
  12. package/lib/vtx-car-modal/content/Jzlj/Alarm/Bottom.js +276 -0
  13. package/lib/vtx-car-modal/content/Jzlj/Alarm/index.js +155 -0
  14. package/lib/vtx-car-modal/content/Jzlj/Alarm/index.less +34 -0
  15. package/lib/vtx-car-modal/content/Jzlj/BaseInfo/index.js +256 -0
  16. package/lib/vtx-car-modal/content/Jzlj/BaseInfo/index.less +20 -0
  17. package/lib/vtx-car-modal/content/Jzlj/Collection/Chart.js +99 -0
  18. package/lib/vtx-car-modal/content/Jzlj/Collection/index.js +357 -0
  19. package/lib/vtx-car-modal/content/Jzlj/Collection/index.less +57 -0
  20. package/lib/vtx-car-modal/content/Jzlj/Dispose/Pies.js +77 -0
  21. package/lib/vtx-car-modal/content/Jzlj/Dispose/index.js +282 -0
  22. package/lib/vtx-car-modal/content/Jzlj/Dispose/index.less +53 -0
  23. package/lib/vtx-car-modal/content/Jzlj/RunCalendar/index.js +175 -0
  24. package/lib/vtx-car-modal/content/Jzlj/RunCalendar/index.less +12 -0
  25. package/lib/vtx-car-modal/content/Jzlj/index.js +12 -0
  26. package/lib/vtx-car-modal/content/index.js +2 -1
  27. package/lib/vtx-car-modal/imgs/jzlj/pjrcc_dark.png +0 -0
  28. package/lib/vtx-car-modal/imgs/jzlj/pjrcc_light.png +0 -0
  29. package/lib/vtx-car-modal/imgs/jzlj/pjryl_dark.png +0 -0
  30. package/lib/vtx-car-modal/imgs/jzlj/pjryl_light.png +0 -0
  31. package/lib/vtx-car-modal/imgs/jzlj/rl_lds_dark.png +0 -0
  32. package/lib/vtx-car-modal/imgs/jzlj/rl_lds_light.png +0 -0
  33. package/lib/vtx-car-modal/imgs/jzlj/rl_yl_dark.png +0 -0
  34. package/lib/vtx-car-modal/imgs/jzlj/rl_yl_light.png +0 -0
  35. package/lib/vtx-car-modal/index.js +65 -9
  36. package/lib/vtx-cc-unit-modal/components/BaseInfo/index.less +6 -6
  37. package/lib/vtx-device-modal/components/DataAnalysis/index.less +66 -66
  38. package/lib/vtx-jzlj-df-tpd-modal/components/Collection/index.js +1 -1
  39. package/lib/vtx-jzlj-gcxm-modal/components/Collection/index.js +1 -1
  40. package/lib/vtx-jzlj-xnc-modal/components/Collection/index.js +1 -1
  41. package/lib/vtx-jzlj-ysqy-modal/api.js +37 -0
  42. package/lib/vtx-jzlj-ysqy-modal/components/Overview/index.js +79 -0
  43. package/lib/vtx-jzlj-ysqy-modal/components/Overview/index.less +17 -0
  44. package/lib/vtx-jzlj-ysqy-modal/components/index.js +2 -0
  45. package/lib/vtx-jzlj-ysqy-modal/imgs/dispose_czz_dark.png +0 -0
  46. package/lib/vtx-jzlj-ysqy-modal/imgs/dispose_czz_light.png +0 -0
  47. package/lib/vtx-jzlj-ysqy-modal/imgs/dispose_syl_dark.png +0 -0
  48. package/lib/vtx-jzlj-ysqy-modal/imgs/dispose_syl_light.png +0 -0
  49. package/lib/vtx-jzlj-ysqy-modal/imgs/dispose_zsbl_dark.png +0 -0
  50. package/lib/vtx-jzlj-ysqy-modal/imgs/dispose_zsbl_light.png +0 -0
  51. package/lib/vtx-jzlj-ysqy-modal/imgs/dispose_zyyl_dark.png +0 -0
  52. package/lib/vtx-jzlj-ysqy-modal/imgs/dispose_zyyl_light.png +0 -0
  53. package/lib/vtx-jzlj-ysqy-modal/imgs/overview_ctyl_pjrcc_dark.png +0 -0
  54. package/lib/vtx-jzlj-ysqy-modal/imgs/overview_ctyl_pjrcc_light.png +0 -0
  55. package/lib/vtx-jzlj-ysqy-modal/imgs/overview_ctyl_pjryl_dark.png +0 -0
  56. package/lib/vtx-jzlj-ysqy-modal/imgs/overview_ctyl_pjryl_light.png +0 -0
  57. package/lib/vtx-jzlj-ysqy-modal/imgs/overview_czz_zl_dark.png +0 -0
  58. package/lib/vtx-jzlj-ysqy-modal/imgs/overview_czz_zl_light.png +0 -0
  59. package/lib/vtx-jzlj-ysqy-modal/imgs/overview_czz_zs_dark.png +0 -0
  60. package/lib/vtx-jzlj-ysqy-modal/imgs/overview_czz_zs_light.png +0 -0
  61. package/lib/vtx-jzlj-ysqy-modal/index.js +72 -0
  62. package/lib/vtx-jzlj-ysqy-modal/style/index.js +1 -0
  63. package/lib/vtx-jzlj-ysqy-modal/style/index.less +1 -0
  64. package/lib/vtx-restaurant-modal/components/Basic/index.less +16 -16
  65. package/lib/vtx-restaurant-modal/config.js +52 -52
  66. package/lib/vtx-road-modal/components/Statistical/index.less +32 -32
  67. package/lib/vtx-shxq-modal/api.js +2 -1
  68. package/package.json +78 -78
@@ -1,27 +1,27 @@
1
- .vm-car-statistics {
2
- width: 208px;
3
- height: 84px;
4
- display: flex;
5
- flex-direction: column;
6
- justify-content: space-between;
7
- padding: 20px;
8
- background-size: 100% 100%;
9
- &-label {
10
- color: var(--img-text-color);
11
- }
12
- &-value, &-unit {
13
- color: #1f1f1f;
14
- }
15
- &.vm-car-statistics-dark {
16
- .vm-car-statistics-value,.vm-car-statistics-unit {
17
- background: linear-gradient(180deg, #ffffff 0%, #119FFB 100%);
18
- background-clip: text;
19
- -webkit-text-fill-color: transparent;
20
- }
21
- }
22
- &-value {
23
- font-size: 20px;
24
- font-weight: bold;
25
- margin-right: 4px;
26
- }
27
- }
1
+ .vm-car-statistics {
2
+ width: 208px;
3
+ height: 84px;
4
+ display: flex;
5
+ flex-direction: column;
6
+ justify-content: space-between;
7
+ padding: 20px;
8
+ background-size: 100% 100%;
9
+ &-label {
10
+ color: var(--img-text-color);
11
+ }
12
+ &-value, &-unit {
13
+ color: #1f1f1f;
14
+ }
15
+ &.vm-car-statistics-dark {
16
+ .vm-car-statistics-value,.vm-car-statistics-unit {
17
+ background: linear-gradient(180deg, #ffffff 0%, #119FFB 100%);
18
+ background-clip: text;
19
+ -webkit-text-fill-color: transparent;
20
+ }
21
+ }
22
+ &-value {
23
+ font-size: 20px;
24
+ font-weight: bold;
25
+ margin-right: 4px;
26
+ }
27
+ }
@@ -1,11 +1,11 @@
1
- .vm-factor-list-wrap {
2
- display: flex;
3
- padding: 12px 16px;
4
- height: 68px;
5
- background: #F3F8FF;
6
- border-radius: 8px;
7
- gap: 26px;
8
- &.dark {
9
- background: rgba(0,136,240,0.15);
10
- }
11
- }
1
+ .vm-factor-list-wrap {
2
+ display: flex;
3
+ padding: 12px 16px;
4
+ height: 68px;
5
+ background: #F3F8FF;
6
+ border-radius: 8px;
7
+ gap: 26px;
8
+ &.dark {
9
+ background: rgba(0,136,240,0.15);
10
+ }
11
+ }
@@ -173,10 +173,10 @@ var VMTable = function VMTable(props) {
173
173
  });
174
174
  };
175
175
 
176
- /**
177
- * 表格导出按钮
178
- * @param props
179
- * @returns
176
+ /**
177
+ * 表格导出按钮
178
+ * @param props
179
+ * @returns
180
180
  */
181
181
 
182
182
  export var ExportBtn = function ExportBtn(props) {
package/lib/index.js CHANGED
@@ -22,4 +22,5 @@ export { default as VtxZfModal } from "./vtx-zf-modal";
22
22
  // 建筑垃圾产品弹窗
23
23
  export { default as VtxJzljGcxmModal } from "./vtx-jzlj-gcxm-modal"; // 建筑垃圾-工程项目
24
24
  export { default as VtxJzljXncModal } from "./vtx-jzlj-xnc-modal"; // 建筑垃圾-消纳场
25
- export { default as VtxJzljDfTpdModal } from "./vtx-jzlj-df-tpd-modal"; // 建筑垃圾-处置场/调配点
25
+ export { default as VtxJzljDfTpdModal } from "./vtx-jzlj-df-tpd-modal"; // 建筑垃圾-处置场/调配点
26
+ export { default as VtxJzljYsqyModal } from "./vtx-jzlj-ysqy-modal"; // 建筑垃圾-运输企业
@@ -1,98 +1,98 @@
1
- .vm-modal-header-container {
2
- width: 100%;
3
- height: 116px;
4
- border-radius: 8px 8px 0 0;
5
- background: var(--modal-head-bg);
6
- padding: 0 16px;
7
- margin-top: 1px;
8
- }
9
-
10
- .vm-modal-header-wrap {
11
- width: 100%;
12
- height: 56px;
13
- display: flex;
14
- align-items: center;
15
- justify-content: space-between;
16
- position: relative;
17
- &::after {
18
- position: absolute;
19
- top: 54px;
20
- left: 0;
21
- content: '';
22
- width: 180px;
23
- height: 1px;
24
- background: var(--modal-head-line-bg);
25
- box-shadow: var(--modal-head-line-shadow);
26
- border-radius: 8px;
27
- animation: move 6s linear infinite;
28
-
29
- @keyframes move {
30
- 0% {
31
- left: 0;
32
- }
33
-
34
- 100% {
35
- left: calc(100% - 180px);
36
- }
37
- }
38
- }
39
-
40
- &-left {
41
- display: flex;
42
- align-items: center;
43
- gap: 8px;
44
-
45
- &-title {
46
- font-weight: bold;
47
- font-size: 20px;
48
- color: var(--modal-title-color);
49
- }
50
-
51
- &-tag {
52
- display: flex;
53
- align-items: center;
54
- justify-content: center;
55
- gap: 4px;
56
- height: 24px;
57
- border-radius: 16px;
58
- font-size: 12px;
59
- padding: 0 8px;
60
- border: 1px solid;
61
- }
62
- }
63
-
64
- &-right {
65
- display: flex;
66
- align-items: center;
67
- gap: 16px;
68
-
69
- &-close {
70
- display: flex;
71
- align-items: center;
72
- justify-content: center;
73
- color: var(--modal-close-color);
74
- width: 28px;
75
- height: 28px;
76
- cursor: pointer;
77
- font-size: 16px;
78
- }
79
-
80
- &-line {
81
- width: 1px;
82
- height: 14px;
83
- background-color: var(--modal-head-split-line-color);
84
- }
85
-
86
- &-collect {
87
- width: 28px;
88
- height: 28px;
89
- border-radius: 8px;
90
- text-align: center;
91
- cursor: pointer;
92
-
93
- &.active {
94
- background: var(--collect-bg);
95
- }
96
- }
97
- }
98
- }
1
+ .vm-modal-header-container {
2
+ width: 100%;
3
+ height: 116px;
4
+ border-radius: 8px 8px 0 0;
5
+ background: var(--modal-head-bg);
6
+ padding: 0 16px;
7
+ margin-top: 1px;
8
+ }
9
+
10
+ .vm-modal-header-wrap {
11
+ width: 100%;
12
+ height: 56px;
13
+ display: flex;
14
+ align-items: center;
15
+ justify-content: space-between;
16
+ position: relative;
17
+ &::after {
18
+ position: absolute;
19
+ top: 54px;
20
+ left: 0;
21
+ content: '';
22
+ width: 180px;
23
+ height: 1px;
24
+ background: var(--modal-head-line-bg);
25
+ box-shadow: var(--modal-head-line-shadow);
26
+ border-radius: 8px;
27
+ animation: move 6s linear infinite;
28
+
29
+ @keyframes move {
30
+ 0% {
31
+ left: 0;
32
+ }
33
+
34
+ 100% {
35
+ left: calc(100% - 180px);
36
+ }
37
+ }
38
+ }
39
+
40
+ &-left {
41
+ display: flex;
42
+ align-items: center;
43
+ gap: 8px;
44
+
45
+ &-title {
46
+ font-weight: bold;
47
+ font-size: 20px;
48
+ color: var(--modal-title-color);
49
+ }
50
+
51
+ &-tag {
52
+ display: flex;
53
+ align-items: center;
54
+ justify-content: center;
55
+ gap: 4px;
56
+ height: 24px;
57
+ border-radius: 16px;
58
+ font-size: 12px;
59
+ padding: 0 8px;
60
+ border: 1px solid;
61
+ }
62
+ }
63
+
64
+ &-right {
65
+ display: flex;
66
+ align-items: center;
67
+ gap: 16px;
68
+
69
+ &-close {
70
+ display: flex;
71
+ align-items: center;
72
+ justify-content: center;
73
+ color: var(--modal-close-color);
74
+ width: 28px;
75
+ height: 28px;
76
+ cursor: pointer;
77
+ font-size: 16px;
78
+ }
79
+
80
+ &-line {
81
+ width: 1px;
82
+ height: 14px;
83
+ background-color: var(--modal-head-split-line-color);
84
+ }
85
+
86
+ &-collect {
87
+ width: 28px;
88
+ height: 28px;
89
+ border-radius: 8px;
90
+ text-align: center;
91
+ cursor: pointer;
92
+
93
+ &.active {
94
+ background: var(--collect-bg);
95
+ }
96
+ }
97
+ }
98
+ }
@@ -1,54 +1,54 @@
1
- .vm-modal-tabs {
2
- width: 100%;
3
- height: 60px;
4
- background: var(--vm-tabs-bg);
5
- border-radius: 8px 8px 0 0;
6
- border: none;
7
- // border: 2px solid var(--vm-tab-border-color);
8
- display: flex;
9
- justify-content: center;
10
- gap: 16px;
11
- align-items: center;
12
-
13
- &-item {
14
- display: flex;
15
- height: 36px;
16
- padding: 0 14px;
17
- font-size: 16px;
18
- gap: 8px;
19
- color: var(--vm-tabs-font-color);
20
- cursor: pointer;
21
- align-items: center;
22
- justify-content: center;
23
-
24
- &-active {
25
- background: var(--vm-tab-item-active-bg-color);
26
- border-radius: 26px;
27
- color: var(--vm-tab-item-active-color);
28
- box-shadow: var(--vm-tab-item-active-box-shadow);
29
- &.vm-modal-tabs-item-dark {
30
- position: relative;
31
- &::before {
32
- content: '';
33
- position: absolute;
34
- top: 0;
35
- left: 0;
36
- right: 0;
37
- bottom: 0;
38
- background: linear-gradient(
39
- 180deg,
40
- rgba(255, 255, 255, 1),
41
- rgba(54, 161, 255, 1)
42
- );
43
- border-radius: 26px;
44
- padding: 1px;
45
- -webkit-mask: linear-gradient(#fff 0 0) content-box,
46
- linear-gradient(#fff 0 0);
47
- -webkit-mask-composite: xor;
48
- mask-composite: exclude;
49
- z-index: -1;
50
- }
51
- }
52
- }
53
- }
54
- }
1
+ .vm-modal-tabs {
2
+ width: 100%;
3
+ height: 60px;
4
+ background: var(--vm-tabs-bg);
5
+ border-radius: 8px 8px 0 0;
6
+ border: none;
7
+ // border: 2px solid var(--vm-tab-border-color);
8
+ display: flex;
9
+ justify-content: center;
10
+ gap: 16px;
11
+ align-items: center;
12
+
13
+ &-item {
14
+ display: flex;
15
+ height: 36px;
16
+ padding: 0 14px;
17
+ font-size: 16px;
18
+ gap: 8px;
19
+ color: var(--vm-tabs-font-color);
20
+ cursor: pointer;
21
+ align-items: center;
22
+ justify-content: center;
23
+
24
+ &-active {
25
+ background: var(--vm-tab-item-active-bg-color);
26
+ border-radius: 26px;
27
+ color: var(--vm-tab-item-active-color);
28
+ box-shadow: var(--vm-tab-item-active-box-shadow);
29
+ &.vm-modal-tabs-item-dark {
30
+ position: relative;
31
+ &::before {
32
+ content: '';
33
+ position: absolute;
34
+ top: 0;
35
+ left: 0;
36
+ right: 0;
37
+ bottom: 0;
38
+ background: linear-gradient(
39
+ 180deg,
40
+ rgba(255, 255, 255, 1),
41
+ rgba(54, 161, 255, 1)
42
+ );
43
+ border-radius: 26px;
44
+ padding: 1px;
45
+ -webkit-mask: linear-gradient(#fff 0 0) content-box,
46
+ linear-gradient(#fff 0 0);
47
+ -webkit-mask-composite: xor;
48
+ mask-composite: exclude;
49
+ z-index: -1;
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
@@ -1,4 +1,10 @@
1
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
+ var _excluded = ["carCode", "page", "size"],
3
+ _excluded2 = ["id", "page", "size"],
4
+ _excluded3 = ["carId", "stepThreeOperateTimeLeft", "stepThreeOperateTimeRight", "page", "size"],
5
+ _excluded4 = ["carId", "startDate", "endDate"];
6
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
7
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
2
8
  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
9
  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
10
  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; }
@@ -1024,4 +1030,238 @@ export var carIdentityMap = new Map([['innerCode', '自编号'], ['carCode', '
1024
1030
  ['photoTwoIds', '图片']]);
1025
1031
  export var carConfigMap = new Map([['carLabel', '车辆厂牌'], ['productionDate', '出厂日期'], ['productionPlace', '出厂地'], ['ownWeight', '自有重量(T)'], ['curbWeight', '整备质量(Kg)'], ['regulationWeight', '核定载质量(Kg)'], ['carUseWayName', '车辆用途'], ['carPropertyName', '车辆性质'], ['carAttrOneName', '车辆属性1'], ['carAttrTwoName', '车辆属性2'], ['regulationPerson', '核定载员(人)'], ['carWorkingWidth', '车辆作业宽度(米)'], ['driveLicensePhotoIds', '行驶证照片']]);
1026
1032
  export var carAuditMap = new Map([['annualReviewDate', '年审日期'], ['maturityDate', '到期日期'], ['annualAuditFee', '年审费用(元)']]);
1027
- export var carSYMap = new Map([['matchingMethodStr', '匹配方式'], ['productTypeName', '垃圾类型'], ['collectMethodStr', '收运方式'], ['collectModeName', '收运模式'], ['taskGenerationMethodStr', '任务生成方式']]);
1033
+ export var carSYMap = new Map([['matchingMethodStr', '匹配方式'], ['productTypeName', '垃圾类型'], ['collectMethodStr', '收运方式'], ['collectModeName', '收运模式'], ['taskGenerationMethodStr', '任务生成方式']]);
1034
+
1035
+ // 建筑垃圾车辆
1036
+ export var JzljService = {
1037
+ // 总览其他信息:二维码、生效中处置证、联单、报警
1038
+ useZlOtherInfo: function useZlOtherInfo(_ref22) {
1039
+ var id = _ref22.id,
1040
+ startDate = _ref22.startDate,
1041
+ endDate = _ref22.endDate,
1042
+ url = _ref22.url;
1043
+ var _useRequest43 = useRequest(function () {
1044
+ return http.get("".concat(prefix, "/cloud/jzlj/web/api/gis/real/time/carBaseInfo"), {
1045
+ body: {
1046
+ id: id,
1047
+ startDate: startDate,
1048
+ endDate: endDate,
1049
+ url: url
1050
+ }
1051
+ });
1052
+ }, {
1053
+ refreshDeps: [id, startDate, endDate, url]
1054
+ }),
1055
+ zlOtherInfoRes = _useRequest43.data;
1056
+ return {
1057
+ zlOtherInfoData: (zlOtherInfoRes === null || zlOtherInfoRes === void 0 ? void 0 : zlOtherInfoRes.data) || {}
1058
+ };
1059
+ },
1060
+ // 运行信息
1061
+ useDailyCarRun: function useDailyCarRun(_ref23) {
1062
+ var _dailyCarRunRes$data, _dailyCarRunRes$data2;
1063
+ var id = _ref23.id,
1064
+ startDate = _ref23.startDate,
1065
+ endDate = _ref23.endDate;
1066
+ var _useRequest44 = useRequest(function () {
1067
+ return http.get("".concat(prefix, "/cloud/gps-reborn/report/dailyCarRun/list"), {
1068
+ body: {
1069
+ carIds: id,
1070
+ reportDateStart: startDate,
1071
+ reportDateEnd: endDate
1072
+ }
1073
+ });
1074
+ }, {
1075
+ refreshDeps: [id, startDate, endDate]
1076
+ }),
1077
+ dailyCarRunRes = _useRequest44.data;
1078
+ return {
1079
+ dailyCarRunData: dailyCarRunRes !== null && dailyCarRunRes !== void 0 && (_dailyCarRunRes$data = dailyCarRunRes.data) !== null && _dailyCarRunRes$data !== void 0 && _dailyCarRunRes$data.length ? (dailyCarRunRes === null || dailyCarRunRes === void 0 || (_dailyCarRunRes$data2 = dailyCarRunRes.data) === null || _dailyCarRunRes$data2 === void 0 ? void 0 : _dailyCarRunRes$data2[0]) || {} : {}
1080
+ };
1081
+ },
1082
+ // 近7天运行分析
1083
+ useYxfx: function useYxfx(_ref24) {
1084
+ var id = _ref24.id,
1085
+ startDate = _ref24.startDate,
1086
+ endDate = _ref24.endDate;
1087
+ var _useRequest45 = useRequest(function () {
1088
+ return http.get("".concat(prefix, "/cloud/jzlj/web/dz/kanban/carWorkAnalyse"), {
1089
+ body: {
1090
+ id: id,
1091
+ startDate: startDate,
1092
+ endDate: endDate
1093
+ }
1094
+ });
1095
+ }, {
1096
+ refreshDeps: [id, startDate, endDate]
1097
+ }),
1098
+ yxfxRes = _useRequest45.data,
1099
+ loading = _useRequest45.loading;
1100
+ return {
1101
+ yxfxData: (yxfxRes === null || yxfxRes === void 0 ? void 0 : yxfxRes.data) || [],
1102
+ loading: loading
1103
+ };
1104
+ },
1105
+ // 处置证信息-分页
1106
+ czzPage: function czzPage(_ref25) {
1107
+ var carCode = _ref25.carCode,
1108
+ page = _ref25.page,
1109
+ size = _ref25.size,
1110
+ restParams = _objectWithoutProperties(_ref25, _excluded);
1111
+ return http.get("/cloud/jzlj/web/api/disposal/certificate/info/page", {
1112
+ body: _objectSpread({
1113
+ page: page,
1114
+ size: size,
1115
+ effectiveCarCode: carCode
1116
+ }, restParams)
1117
+ });
1118
+ },
1119
+ // 处置证信息-饼图
1120
+ czzPie: function czzPie(_ref26) {
1121
+ var id = _ref26.id,
1122
+ page = _ref26.page,
1123
+ size = _ref26.size,
1124
+ restParams = _objectWithoutProperties(_ref26, _excluded2);
1125
+ return http.get("/cloud/jzlj//web/api/gis/real/time/carCzzPieChart", {
1126
+ body: _objectSpread({
1127
+ page: page,
1128
+ size: size,
1129
+ id: id
1130
+ }, restParams)
1131
+ });
1132
+ },
1133
+ // 建筑垃圾枚举
1134
+ fetchJzljEnum: function fetchJzljEnum(enumName) {
1135
+ var _useRequest46 = useRequest(function () {
1136
+ return http.get("/cloud/jzlj/common/loadEnumValue", {
1137
+ body: {
1138
+ enumName: enumName
1139
+ }
1140
+ });
1141
+ }, {
1142
+ refreshDeps: [enumName]
1143
+ }),
1144
+ _useRequest46$data = _useRequest46.data,
1145
+ data = _useRequest46$data === void 0 ? {} : _useRequest46$data;
1146
+ return (data === null || data === void 0 ? void 0 : data.data) || [];
1147
+ },
1148
+ // 联单-分页
1149
+ ldPage: function ldPage(_ref27) {
1150
+ var carId = _ref27.carId,
1151
+ stepThreeOperateTimeLeft = _ref27.stepThreeOperateTimeLeft,
1152
+ stepThreeOperateTimeRight = _ref27.stepThreeOperateTimeRight,
1153
+ page = _ref27.page,
1154
+ size = _ref27.size,
1155
+ restParams = _objectWithoutProperties(_ref27, _excluded3);
1156
+ return http.get("/cloud/jzlj/web/api/car/transport/joint/order/record/page", {
1157
+ body: _objectSpread({
1158
+ page: page,
1159
+ size: size,
1160
+ carId: carId,
1161
+ stepThreeOperateTimeLeft: stepThreeOperateTimeLeft,
1162
+ stepThreeOperateTimeRight: stepThreeOperateTimeRight
1163
+ }, restParams)
1164
+ });
1165
+ },
1166
+ ldChart: function ldChart(_ref28) {
1167
+ var id = _ref28.id,
1168
+ startDate = _ref28.startDate,
1169
+ endDate = _ref28.endDate;
1170
+ return http.get("".concat(prefix, "/cloud/jzlj/web/dz/kanban/carWorkAnalyse"), {
1171
+ body: {
1172
+ id: id,
1173
+ startDate: startDate,
1174
+ endDate: endDate
1175
+ }
1176
+ });
1177
+ },
1178
+ // 联单-统计
1179
+ ldTotal: function ldTotal(_ref29) {
1180
+ var carId = _ref29.carId,
1181
+ startDate = _ref29.startDate,
1182
+ endDate = _ref29.endDate,
1183
+ restParams = _objectWithoutProperties(_ref29, _excluded4);
1184
+ return http.get("/cloud/jzlj/web/api/gis/real/time/jcssJzJointOrderSummaryStatistics", {
1185
+ body: _objectSpread({
1186
+ carId: carId,
1187
+ stepThreeOperateTimeLeft: startDate + ' 00:00:00',
1188
+ stepThreeOperateTimeRight: endDate + ' 23:59:59'
1189
+ }, restParams)
1190
+ });
1191
+ },
1192
+ page_tccs: function page_tccs(_ref30) {
1193
+ var id = _ref30.id,
1194
+ startTime = _ref30.startTime,
1195
+ endTime = _ref30.endTime,
1196
+ page = _ref30.page,
1197
+ size = _ref30.size;
1198
+ return http.get("/cloud/jzlj/web/api/car/parking/timeout/alarm/job/page", {
1199
+ body: {
1200
+ page: page,
1201
+ size: size,
1202
+ carId: id,
1203
+ alarmTimeLeft: startTime,
1204
+ alarmTimeRight: endTime
1205
+ }
1206
+ });
1207
+ },
1208
+ page_lxpl: function page_lxpl(_ref31) {
1209
+ var id = _ref31.id,
1210
+ startTime = _ref31.startTime,
1211
+ endTime = _ref31.endTime,
1212
+ page = _ref31.page,
1213
+ size = _ref31.size;
1214
+ return http.get("/cloud/jzlj/web/api/car/route/deviation/alarm/job/page", {
1215
+ body: {
1216
+ page: page,
1217
+ size: size,
1218
+ carId: id,
1219
+ alarmTimeLeft: startTime,
1220
+ alarmTimeRight: endTime
1221
+ }
1222
+ });
1223
+ },
1224
+ // 报警汇总-饼图
1225
+ useAlarmSummary: function useAlarmSummary(_ref32) {
1226
+ var carId = _ref32.carId,
1227
+ startDate = _ref32.startDate,
1228
+ endDate = _ref32.endDate;
1229
+ var _useRequest47 = useRequest(function () {
1230
+ return http.get("/cloud/jzlj/web/dz/kanban/carAlarmTypeCountSummaryInfo", {
1231
+ body: {
1232
+ carId: carId,
1233
+ startDate: startDate,
1234
+ endDate: endDate,
1235
+ alarmTypes: 'parkingTimeout,routeDeviation'
1236
+ }
1237
+ });
1238
+ }, {
1239
+ refreshDeps: [carId, startDate, endDate]
1240
+ }),
1241
+ alarmSummaryRes = _useRequest47.data;
1242
+ return {
1243
+ alarmSummaryData: (alarmSummaryRes === null || alarmSummaryRes === void 0 ? void 0 : alarmSummaryRes.data) || {}
1244
+ };
1245
+ },
1246
+ // 报警趋势-折线图
1247
+ useAlarmTrend: function useAlarmTrend(_ref33) {
1248
+ var id = _ref33.id,
1249
+ startDate = _ref33.startDate,
1250
+ endDate = _ref33.endDate;
1251
+ var _useRequest48 = useRequest(function () {
1252
+ return http.get("/cloud/jzlj/web/api/gis/real/time/carOrderAlarmAnalyse", {
1253
+ body: {
1254
+ id: id,
1255
+ startDate: startDate,
1256
+ endDate: endDate
1257
+ }
1258
+ });
1259
+ }, {
1260
+ refreshDeps: [id, startDate, endDate]
1261
+ }),
1262
+ alarmTrendRes = _useRequest48.data;
1263
+ return {
1264
+ alarmTrendData: (alarmTrendRes === null || alarmTrendRes === void 0 ? void 0 : alarmTrendRes.data) || []
1265
+ };
1266
+ }
1267
+ };