@vtx/modals2 2.14.4 → 2.14.7

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 (70) hide show
  1. package/lib/style/index.css +6 -0
  2. package/lib/style/themes/dark.css +6 -0
  3. package/lib/style/themes/dark.less +3 -0
  4. package/lib/style/themes/default.css +3 -0
  5. package/lib/style/themes/default.less +4 -0
  6. package/lib/style/themes/index.css +6 -0
  7. package/lib/vm-info-collection/index.js +1 -1
  8. package/lib/vm-info-collection/index.js.map +1 -1
  9. package/lib/vm-info-collection/style/index.css +5 -5
  10. package/lib/vm-info-collection/style/index.less +2 -2
  11. package/lib/vm-map/index.js +7 -6
  12. package/lib/vm-map/index.js.map +1 -1
  13. package/lib/vm-table/style/index.css +0 -10
  14. package/lib/vm-table/style/index.less +10 -10
  15. package/lib/vm-video/index.css +6 -0
  16. package/lib/vtx-base-modal/index.js +2 -2
  17. package/lib/vtx-base-modal/index.js.map +1 -1
  18. package/lib/vtx-car-modal/api.js +83 -63
  19. package/lib/vtx-car-modal/api.js.map +1 -1
  20. package/lib/vtx-car-modal/index.js +25 -8
  21. package/lib/vtx-car-modal/index.js.map +1 -1
  22. package/lib/vtx-car-modal/style/index.css +6 -0
  23. package/lib/vtx-cc-cp-modal/style/index.css +6 -0
  24. package/lib/vtx-cp-modal/components/BaseInfo/index.js +1 -1
  25. package/lib/vtx-cp-modal/components/BaseInfo/index.js.map +1 -1
  26. package/lib/vtx-cp-modal/style/index.css +6 -0
  27. package/lib/vtx-default-modal/index.js +5 -1
  28. package/lib/vtx-default-modal/index.js.map +1 -1
  29. package/lib/vtx-default-modal/style/index.css +6 -0
  30. package/lib/vtx-df-modal/components/BaseInfo/index.css +22 -6
  31. package/lib/vtx-df-modal/components/BaseInfo/index.js +5 -1
  32. package/lib/vtx-df-modal/components/BaseInfo/index.js.map +1 -1
  33. package/lib/vtx-df-modal/components/BaseInfo/index.less +14 -3
  34. package/lib/vtx-df-modal/components/Metering/index.css +3 -3
  35. package/lib/vtx-df-modal/components/Metering/index.less +3 -3
  36. package/lib/vtx-df-modal/style/index.css +6 -0
  37. package/lib/vtx-kh-modal/style/index.css +6 -0
  38. package/lib/vtx-pump-modal/api.js +5 -2
  39. package/lib/vtx-pump-modal/api.js.map +1 -1
  40. package/lib/vtx-pump-modal/components/AlarmRecord/index.css +10 -9
  41. package/lib/vtx-pump-modal/components/AlarmRecord/index.js +4 -4
  42. package/lib/vtx-pump-modal/components/AlarmRecord/index.js.map +1 -1
  43. package/lib/vtx-pump-modal/components/AlarmRecord/index.less +16 -11
  44. package/lib/vtx-pump-modal/components/Basic/JyqInfo.js +5 -5
  45. package/lib/vtx-pump-modal/components/Basic/JyqInfo.js.map +1 -1
  46. package/lib/vtx-pump-modal/components/Basic/PumpInfo.js +1 -1
  47. package/lib/vtx-pump-modal/components/Basic/PumpInfo.js.map +1 -1
  48. package/lib/vtx-pump-modal/components/Basic/index.css +1 -0
  49. package/lib/vtx-pump-modal/components/Basic/index.less +1 -1
  50. package/lib/vtx-pump-modal/components/Sbxl/index.css +10 -9
  51. package/lib/vtx-pump-modal/components/Sbxl/index.js +1 -1
  52. package/lib/vtx-pump-modal/components/Sbxl/index.js.map +1 -1
  53. package/lib/vtx-pump-modal/components/Sbxl/index.less +16 -17
  54. package/lib/vtx-pump-modal/components/Sxyx/index.js +7 -4
  55. package/lib/vtx-pump-modal/components/Sxyx/index.js.map +1 -1
  56. package/lib/vtx-pump-modal/index.js +4 -3
  57. package/lib/vtx-pump-modal/index.js.map +1 -1
  58. package/lib/vtx-road-modal/api.js +45 -24
  59. package/lib/vtx-road-modal/api.js.map +1 -1
  60. package/lib/vtx-road-modal/index.js +25 -5
  61. package/lib/vtx-road-modal/index.js.map +1 -1
  62. package/lib/vtx-road-modal/style/index.css +6 -0
  63. package/lib/vtx-staff-modal/api.js +4 -1
  64. package/lib/vtx-staff-modal/api.js.map +1 -1
  65. package/lib/vtx-staff-modal/index.js +3 -1
  66. package/lib/vtx-staff-modal/index.js.map +1 -1
  67. package/lib/vtx-staff-modal/style/index.css +6 -0
  68. package/lib/vtx-wr-modal/style/index.css +6 -0
  69. package/lib/vtx-zg-modal/style/index.css +6 -0
  70. package/package.json +1 -1
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.WorkServicve = exports.WaterService = exports.OilService = exports.MaintenanceService = exports.BaseService = exports.AlarmService = void 0;
6
+ exports.WorkServicve = exports.WaterService = exports.OilService = exports.MaintenanceService = exports.ConfigService = exports.BaseService = exports.AlarmService = void 0;
7
7
  var _utils = require("@vtx/utils");
8
8
  var _ahooks = require("ahooks");
9
9
  var _lodash = require("lodash");
@@ -13,10 +13,27 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
13
13
  function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
14
14
  function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
15
15
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
16
+ var ConfigService = exports.ConfigService = {
17
+ useConfig: function useConfig() {
18
+ var _useRequest = (0, _ahooks.useRequest)(function () {
19
+ return _utils.request.get('/cloud/zyqs-zqb/api/v101/systemConfig/load');
20
+ }, {
21
+ onError: function onError(error) {
22
+ if (error.status === 404) {
23
+ //
24
+ }
25
+ }
26
+ }),
27
+ data = _useRequest.data;
28
+ return {
29
+ data: data === null || data === void 0 ? void 0 : data.data
30
+ };
31
+ }
32
+ };
16
33
  var BaseService = exports.BaseService = {
17
34
  useBaseInfo: function useBaseInfo(id) {
18
- var _a, _b, _c, _d, _e;
19
- var _useRequest = (0, _ahooks.useRequest)(function () {
35
+ var _a, _b, _c, _d;
36
+ var _useRequest2 = (0, _ahooks.useRequest)(function () {
20
37
  return _utils.request.get('/cloud/gps-reborn/sdk/car/getCarInfoByProductType', {
21
38
  data: {
22
39
  carId: id
@@ -25,7 +42,7 @@ var BaseService = exports.BaseService = {
25
42
  }, {
26
43
  refreshDeps: [id]
27
44
  }),
28
- baseInfoRes = _useRequest.data;
45
+ baseInfoRes = _useRequest2.data;
29
46
  var info = baseInfoRes === null || baseInfoRes === void 0 ? void 0 : baseInfoRes.data;
30
47
  var baseInfo = [{
31
48
  label: '所属单位',
@@ -56,7 +73,7 @@ var BaseService = exports.BaseService = {
56
73
  key: 'contactWay',
57
74
  value: info === null || info === void 0 ? void 0 : info.contactWay
58
75
  }];
59
- var _useRequest2 = (0, _ahooks.useRequest)(function () {
76
+ var _useRequest3 = (0, _ahooks.useRequest)(function () {
60
77
  return _utils.request.get('/cloud/jcss-reborn/facility/type/config/getByCode', {
61
78
  data: {
62
79
  code: 'car'
@@ -65,24 +82,27 @@ var BaseService = exports.BaseService = {
65
82
  }, {
66
83
  refreshDeps: [id]
67
84
  }),
68
- tabConfig = _useRequest2.data;
85
+ tabConfig = _useRequest3.data;
69
86
  return {
70
87
  baseInfo: baseInfo,
71
88
  info: info,
72
89
  tabIsFilter: !!((_b = (_a = tabConfig === null || tabConfig === void 0 ? void 0 : tabConfig.data) === null || _a === void 0 ? void 0 : _a.popupConfigJson) === null || _b === void 0 ? void 0 : _b.length),
73
- tabConfig: ((_e = (_d = (_c = tabConfig === null || tabConfig === void 0 ? void 0 : tabConfig.data) === null || _c === void 0 ? void 0 : _c.popupConfigJson) === null || _d === void 0 ? void 0 : _d.filter(function (ele) {
90
+ tabConfig: ((_d = (_c = tabConfig === null || tabConfig === void 0 ? void 0 : tabConfig.data) === null || _c === void 0 ? void 0 : _c.popupConfigJson) === null || _d === void 0 ? void 0 : _d.filter(function (ele) {
74
91
  return ele.display;
75
- })) === null || _e === void 0 ? void 0 : _e.map(function (ele) {
76
- return ele.code;
92
+ }).map(function (ele) {
93
+ return {
94
+ key: ele.code,
95
+ title: ele.name
96
+ };
77
97
  })) || []
78
98
  };
79
99
  },
80
100
  useConfig: function useConfig() {
81
101
  var _a, _b;
82
- var _useRequest3 = (0, _ahooks.useRequest)(function () {
102
+ var _useRequest4 = (0, _ahooks.useRequest)(function () {
83
103
  return _utils.request.get('/cloud/ljsy-reborn/api/param/config/webList');
84
104
  }),
85
- config = _useRequest3.data;
105
+ config = _useRequest4.data;
86
106
  var paramConfigsList = {};
87
107
  if (config === null || config === void 0 ? void 0 : config.data) {
88
108
  (_b = (_a = config.data) === null || _a === void 0 ? void 0 : _a.paramConfigs) === null || _b === void 0 ? void 0 : _b.forEach(function (element) {
@@ -93,7 +113,7 @@ var BaseService = exports.BaseService = {
93
113
  },
94
114
  useDailySummaryJxh: function useDailySummaryJxh(carId, date, service) {
95
115
  // 左侧今日排版、今日作业
96
- var _useRequest4 = (0, _ahooks.useRequest)(function () {
116
+ var _useRequest5 = (0, _ahooks.useRequest)(function () {
97
117
  return _utils.request.get("/cloud/".concat(service ? service : 'zyqs-reborn', "/api/kanban/kanbanWorkInfoAndShiftStatistics"), {
98
118
  data: {
99
119
  carId: carId,
@@ -104,14 +124,14 @@ var BaseService = exports.BaseService = {
104
124
  ready: !!carId,
105
125
  refreshDeps: [carId, date]
106
126
  }),
107
- dailySummaryJxh = _useRequest4.data;
127
+ dailySummaryJxh = _useRequest5.data;
108
128
  return {
109
129
  dailySummaryJxh: (dailySummaryJxh === null || dailySummaryJxh === void 0 ? void 0 : dailySummaryJxh.data) || {}
110
130
  };
111
131
  },
112
132
  useDailyCarRun: function useDailyCarRun(id, beginTime, endTime) {
113
133
  //今日运行
114
- var _useRequest5 = (0, _ahooks.useRequest)(function () {
134
+ var _useRequest6 = (0, _ahooks.useRequest)(function () {
115
135
  return _utils.request.get('/cloud/gps-reborn/report/dailyCarRun/list', {
116
136
  data: {
117
137
  carIds: id,
@@ -122,14 +142,14 @@ var BaseService = exports.BaseService = {
122
142
  }, {
123
143
  refreshDeps: [id, beginTime, endTime]
124
144
  }),
125
- dailyCarRunRes = _useRequest5.data;
145
+ dailyCarRunRes = _useRequest6.data;
126
146
  return {
127
147
  dailyCarRunRes: (dailyCarRunRes === null || dailyCarRunRes === void 0 ? void 0 : dailyCarRunRes.data) || []
128
148
  };
129
149
  },
130
150
  useTodayRun: function useTodayRun(carId, beginTime, endTime, source) {
131
151
  //今日运行
132
- var _useRequest6 = (0, _ahooks.useRequest)(function () {
152
+ var _useRequest7 = (0, _ahooks.useRequest)(function () {
133
153
  return _utils.request.get('/cloud/gps-reborn/car/detail/alarmSumWithDetail', {
134
154
  data: {
135
155
  carId: carId,
@@ -141,14 +161,14 @@ var BaseService = exports.BaseService = {
141
161
  ready: source === 'GPS',
142
162
  refreshDeps: [carId, beginTime, endTime, source]
143
163
  }),
144
- todayRunRes = _useRequest6.data;
164
+ todayRunRes = _useRequest7.data;
145
165
  return {
146
166
  todayRunRes: (todayRunRes === null || todayRunRes === void 0 ? void 0 : todayRunRes.data) || {}
147
167
  };
148
168
  },
149
169
  useTodayWorkJxh: function useTodayWorkJxh(carId, date, service) {
150
170
  //今日作业-机械化
151
- var _useRequest7 = (0, _ahooks.useRequest)(function () {
171
+ var _useRequest8 = (0, _ahooks.useRequest)(function () {
152
172
  return _utils.request.get("/cloud/".concat(service ? service : 'zyqs-reborn', "/api/kanban/getRoadWorkInfoByCarId"), {
153
173
  data: {
154
174
  carId: carId,
@@ -158,14 +178,14 @@ var BaseService = exports.BaseService = {
158
178
  }, {
159
179
  refreshDeps: [carId, date]
160
180
  }),
161
- todayRunJxhRes = _useRequest7.data;
181
+ todayRunJxhRes = _useRequest8.data;
162
182
  return {
163
183
  todayRunJxhRes: (todayRunJxhRes === null || todayRunJxhRes === void 0 ? void 0 : todayRunJxhRes.data) || []
164
184
  };
165
185
  },
166
186
  useTodayWorkLjsy: function useTodayWorkLjsy(carId, dateValue) {
167
187
  //今日作业-垃圾收运
168
- var _useRequest8 = (0, _ahooks.useRequest)(function () {
188
+ var _useRequest9 = (0, _ahooks.useRequest)(function () {
169
189
  return _utils.request.get('/cloud/ljsy-reborn/api/kanban/getWorkInfoByCarIdWithDetail', {
170
190
  data: {
171
191
  carId: carId,
@@ -175,14 +195,14 @@ var BaseService = exports.BaseService = {
175
195
  }, {
176
196
  refreshDeps: [carId, dateValue]
177
197
  }),
178
- todayRunLjsyRes = _useRequest8.data;
198
+ todayRunLjsyRes = _useRequest9.data;
179
199
  return {
180
200
  todayRunLjsyRes: (todayRunLjsyRes === null || todayRunLjsyRes === void 0 ? void 0 : todayRunLjsyRes.data) || []
181
201
  };
182
202
  },
183
203
  useTodayWorkCC: function useTodayWorkCC(carId, queryStartTime, queryEndTime) {
184
204
  //今日作业-餐厨
185
- var _useRequest9 = (0, _ahooks.useRequest)(function () {
205
+ var _useRequest10 = (0, _ahooks.useRequest)(function () {
186
206
  return _utils.request.get('/cloud/cc-reborn/api/v101/rtCarDataDetail/list', {
187
207
  data: {
188
208
  carId: carId,
@@ -193,14 +213,14 @@ var BaseService = exports.BaseService = {
193
213
  }, {
194
214
  refreshDeps: [carId, queryStartTime, queryEndTime]
195
215
  }),
196
- todayRunCCRes = _useRequest9.data;
216
+ todayRunCCRes = _useRequest10.data;
197
217
  return {
198
218
  todayRunCCRes: (todayRunCCRes === null || todayRunCCRes === void 0 ? void 0 : todayRunCCRes.data) || []
199
219
  };
200
220
  },
201
221
  useWorkSummaryJxh: function useWorkSummaryJxh(carId, startDate, endDate, service) {
202
222
  //机械化作业统计
203
- var _useRequest10 = (0, _ahooks.useRequest)(function () {
223
+ var _useRequest11 = (0, _ahooks.useRequest)(function () {
204
224
  return _utils.request.get("/cloud/".concat(service ? service : 'zyqs-reborn', "/api/kanban/workInfoStatisticsByCarId"), {
205
225
  data: {
206
226
  carId: carId,
@@ -211,14 +231,14 @@ var BaseService = exports.BaseService = {
211
231
  }, {
212
232
  refreshDeps: [carId, startDate, endDate]
213
233
  }),
214
- workSummaryJxhRes = _useRequest10.data;
234
+ workSummaryJxhRes = _useRequest11.data;
215
235
  return {
216
236
  workSummaryJxhRes: (workSummaryJxhRes === null || workSummaryJxhRes === void 0 ? void 0 : workSummaryJxhRes.data) || {}
217
237
  };
218
238
  },
219
239
  useWorkAnaJxh: function useWorkAnaJxh(carId, startDate, endDate, service) {
220
240
  //机械化作业分析
221
- var _useRequest11 = (0, _ahooks.useRequest)(function () {
241
+ var _useRequest12 = (0, _ahooks.useRequest)(function () {
222
242
  return _utils.request.get("/cloud/".concat(service ? service : 'zyqs-reborn', "/api/kanban/workInfoAnalysisByCarId"), {
223
243
  data: {
224
244
  carId: carId,
@@ -229,14 +249,14 @@ var BaseService = exports.BaseService = {
229
249
  }, {
230
250
  refreshDeps: [carId, startDate, endDate]
231
251
  }),
232
- workAnaJxhRes = _useRequest11.data;
252
+ workAnaJxhRes = _useRequest12.data;
233
253
  return {
234
254
  workAnaJxhRes: (workAnaJxhRes === null || workAnaJxhRes === void 0 ? void 0 : workAnaJxhRes.data) || []
235
255
  };
236
256
  },
237
257
  useWorkAnaLjsy: function useWorkAnaLjsy(carId, startDate, endDate, isReleate) {
238
258
  //垃圾收运-作业分析
239
- var _useRequest12 = (0, _ahooks.useRequest)(function () {
259
+ var _useRequest13 = (0, _ahooks.useRequest)(function () {
240
260
  return _utils.request.get('/cloud/ljsy-reborn/api/kanban/getWorkInfoAnalysisByCarId', {
241
261
  data: {
242
262
  carId: carId,
@@ -248,14 +268,14 @@ var BaseService = exports.BaseService = {
248
268
  ready: isReleate,
249
269
  refreshDeps: [carId, startDate, endDate]
250
270
  }),
251
- workAnaLjsyRes = _useRequest12.data;
271
+ workAnaLjsyRes = _useRequest13.data;
252
272
  return {
253
273
  workAnaLjsyRes: (workAnaLjsyRes === null || workAnaLjsyRes === void 0 ? void 0 : workAnaLjsyRes.data) || {}
254
274
  };
255
275
  },
256
276
  useWorkAnaCC: function useWorkAnaCC(carId, startDate, endDate, isReleate) {
257
277
  //垃圾收运-作业分析
258
- var _useRequest13 = (0, _ahooks.useRequest)(function () {
278
+ var _useRequest14 = (0, _ahooks.useRequest)(function () {
259
279
  return _utils.request.get('/cloud/cc-reborn/api/v101/gisOnePage/carCollectSummaryLine', {
260
280
  data: {
261
281
  carId: carId,
@@ -267,7 +287,7 @@ var BaseService = exports.BaseService = {
267
287
  ready: isReleate,
268
288
  refreshDeps: [carId, startDate, endDate]
269
289
  }),
270
- workAnaLjsyRes = _useRequest13.data;
290
+ workAnaLjsyRes = _useRequest14.data;
271
291
  return {
272
292
  workAnaLjsyRes: (workAnaLjsyRes === null || workAnaLjsyRes === void 0 ? void 0 : workAnaLjsyRes.data) || {}
273
293
  };
@@ -275,7 +295,7 @@ var BaseService = exports.BaseService = {
275
295
  };
276
296
  var AlarmService = exports.AlarmService = {
277
297
  useAlarmType: function useAlarmType(carIds, startTime, endTime, source) {
278
- var _useRequest14 = (0, _ahooks.useRequest)(function () {
298
+ var _useRequest15 = (0, _ahooks.useRequest)(function () {
279
299
  return _utils.request.get('/cloud/gps-reborn/alarm/record/statisticsPage', {
280
300
  data: {
281
301
  carIds: carIds,
@@ -287,7 +307,7 @@ var AlarmService = exports.AlarmService = {
287
307
  ready: source === 'GPS',
288
308
  refreshDeps: [carIds, startTime, endTime, source]
289
309
  }),
290
- alarmTypesRes = _useRequest14.data;
310
+ alarmTypesRes = _useRequest15.data;
291
311
  return {
292
312
  alarmTypes: (alarmTypesRes === null || alarmTypesRes === void 0 ? void 0 : alarmTypesRes.data) || {
293
313
  totalCount: 0,
@@ -296,7 +316,7 @@ var AlarmService = exports.AlarmService = {
296
316
  };
297
317
  },
298
318
  useAlarmTypeWork: function useAlarmTypeWork(carIds, startTime, endTime, source) {
299
- var _useRequest15 = (0, _ahooks.useRequest)(function () {
319
+ var _useRequest16 = (0, _ahooks.useRequest)(function () {
300
320
  return _utils.request.get('/cloud/ljsy-reborn/api/task/alarm/alarmSum', {
301
321
  data: {
302
322
  carIds: carIds,
@@ -308,7 +328,7 @@ var AlarmService = exports.AlarmService = {
308
328
  ready: source === 'WORK',
309
329
  refreshDeps: [carIds, startTime, endTime, source]
310
330
  }),
311
- data = _useRequest15.data;
331
+ data = _useRequest16.data;
312
332
  return {
313
333
  alarmTypesWork: (data === null || data === void 0 ? void 0 : data.data) || {
314
334
  total: 0,
@@ -318,7 +338,7 @@ var AlarmService = exports.AlarmService = {
318
338
  };
319
339
  },
320
340
  useAlarmList: function useAlarmList(carCode, alarmStrategyName, startTime, endTime, page) {
321
- var _useRequest16 = (0, _ahooks.useRequest)(function () {
341
+ var _useRequest17 = (0, _ahooks.useRequest)(function () {
322
342
  return _utils.request.get('/cloud/gps-reborn/alarm/record/pageList', {
323
343
  data: {
324
344
  carCode: carCode,
@@ -333,13 +353,13 @@ var AlarmService = exports.AlarmService = {
333
353
  ready: !!carCode,
334
354
  refreshDeps: [carCode, alarmStrategyName, startTime, endTime, page]
335
355
  }),
336
- recordRes = _useRequest16.data;
356
+ recordRes = _useRequest17.data;
337
357
  return {
338
358
  alarmRecord: (recordRes === null || recordRes === void 0 ? void 0 : recordRes.data) || {}
339
359
  };
340
360
  },
341
361
  useAlarmListWork: function useAlarmListWork(carIds, alarmTypeCode, startDate, endDate, page) {
342
- var _useRequest17 = (0, _ahooks.useRequest)(function () {
362
+ var _useRequest18 = (0, _ahooks.useRequest)(function () {
343
363
  return _utils.request.get('/cloud/ljsy-reborn/api/task/alarm/alarmPage', {
344
364
  data: {
345
365
  carIds: carIds,
@@ -354,7 +374,7 @@ var AlarmService = exports.AlarmService = {
354
374
  }, {
355
375
  refreshDeps: [carIds, alarmTypeCode, startDate, endDate, page]
356
376
  }),
357
- recordRes = _useRequest17.data;
377
+ recordRes = _useRequest18.data;
358
378
  return {
359
379
  alarmRecordWork: (recordRes === null || recordRes === void 0 ? void 0 : recordRes.data) || {}
360
380
  };
@@ -362,7 +382,7 @@ var AlarmService = exports.AlarmService = {
362
382
  useAlarmTodayRun: function useAlarmTodayRun(carId, beginTime, endTime, source) {
363
383
  var _a;
364
384
  //今日运行
365
- var _useRequest18 = (0, _ahooks.useRequest)(function () {
385
+ var _useRequest19 = (0, _ahooks.useRequest)(function () {
366
386
  return _utils.request.get('/cloud/ljsy-reborn/api/task/alarm/alarmSumByTypeAndDay', {
367
387
  data: {
368
388
  carId: carId,
@@ -374,7 +394,7 @@ var AlarmService = exports.AlarmService = {
374
394
  ready: source === 'WORK',
375
395
  refreshDeps: [carId, beginTime, endTime, source]
376
396
  }),
377
- data = _useRequest18.data;
397
+ data = _useRequest19.data;
378
398
  var pieData = [];
379
399
  var lineData = {
380
400
  legends: [],
@@ -412,19 +432,19 @@ var AlarmService = exports.AlarmService = {
412
432
  var WorkServicve = exports.WorkServicve = {
413
433
  useWorkTypeJxh: function useWorkTypeJxh(service) {
414
434
  //机械化作业类型
415
- var _useRequest19 = (0, _ahooks.useRequest)(function () {
435
+ var _useRequest20 = (0, _ahooks.useRequest)(function () {
416
436
  return _utils.request.get("/cloud/".concat(service ? service : 'zyqs-reborn', "/api/v101/common/listWorkType"), {
417
437
  data: {}
418
438
  });
419
439
  }),
420
- workTypeRes = _useRequest19.data;
440
+ workTypeRes = _useRequest20.data;
421
441
  return {
422
442
  workTypeRes: (workTypeRes === null || workTypeRes === void 0 ? void 0 : workTypeRes.data) || []
423
443
  };
424
444
  },
425
445
  useRecordJxh: function useRecordJxh(carId, workTypeCodes, startDate, endDate, pageNo, order, service) {
426
446
  //机械化
427
- var _useRequest20 = (0, _ahooks.useRequest)(function () {
447
+ var _useRequest21 = (0, _ahooks.useRequest)(function () {
428
448
  return _utils.request.get("/cloud/".concat(service ? service : 'zyqs-reborn', "/api/v1.5/noshift/page"), {
429
449
  data: {
430
450
  carId: carId,
@@ -441,14 +461,14 @@ var WorkServicve = exports.WorkServicve = {
441
461
  }, {
442
462
  refreshDeps: [carId, workTypeCodes, startDate, endDate, pageNo, order]
443
463
  }),
444
- recordJxhRes = _useRequest20.data;
464
+ recordJxhRes = _useRequest21.data;
445
465
  return {
446
466
  recordJxhRes: (recordJxhRes === null || recordJxhRes === void 0 ? void 0 : recordJxhRes.data) || []
447
467
  };
448
468
  },
449
469
  useWorkSummaryLjsy: function useWorkSummaryLjsy(carId, startDate, endDate) {
450
470
  //垃圾收运头部统计
451
- var _useRequest21 = (0, _ahooks.useRequest)(function () {
471
+ var _useRequest22 = (0, _ahooks.useRequest)(function () {
452
472
  return _utils.request.get('/cloud/ljsy-reborn/api/kanban/getWorkInfoSummaryByCarId', {
453
473
  data: {
454
474
  carId: carId,
@@ -459,14 +479,14 @@ var WorkServicve = exports.WorkServicve = {
459
479
  }, {
460
480
  refreshDeps: [carId, startDate, endDate]
461
481
  }),
462
- summaryLjsy = _useRequest21.data;
482
+ summaryLjsy = _useRequest22.data;
463
483
  return {
464
484
  summaryLjsy: (summaryLjsy === null || summaryLjsy === void 0 ? void 0 : summaryLjsy.data) || []
465
485
  };
466
486
  },
467
487
  useRecordLjsy: function useRecordLjsy(carIds, startTime, endTime, page, sort) {
468
488
  //机械化
469
- var _useRequest22 = (0, _ahooks.useRequest)(function () {
489
+ var _useRequest23 = (0, _ahooks.useRequest)(function () {
470
490
  return _utils.request.get('/cloud/ljsy-reborn/api/collect/record/detail/page', {
471
491
  data: {
472
492
  carIds: carIds,
@@ -480,7 +500,7 @@ var WorkServicve = exports.WorkServicve = {
480
500
  }, {
481
501
  refreshDeps: [carIds, startTime, endTime, page, sort]
482
502
  }),
483
- recordLjsyRes = _useRequest22.data;
503
+ recordLjsyRes = _useRequest23.data;
484
504
  return {
485
505
  recordLjsyRes: (recordLjsyRes === null || recordLjsyRes === void 0 ? void 0 : recordLjsyRes.data) || []
486
506
  };
@@ -490,7 +510,7 @@ var WorkServicve = exports.WorkServicve = {
490
510
  var OilService = exports.OilService = {
491
511
  useHasOil: function useHasOil(carId) {
492
512
  var _a;
493
- var _useRequest23 = (0, _ahooks.useRequest)(function () {
513
+ var _useRequest24 = (0, _ahooks.useRequest)(function () {
494
514
  return _utils.request.get('/cloud/gps-reborn/car/config/getById', {
495
515
  data: {
496
516
  id: carId
@@ -499,13 +519,13 @@ var OilService = exports.OilService = {
499
519
  }, {
500
520
  refreshDeps: [carId]
501
521
  }),
502
- data = _useRequest23.data;
522
+ data = _useRequest24.data;
503
523
  return {
504
524
  beenOilStatus: (_a = data === null || data === void 0 ? void 0 : data.data) === null || _a === void 0 ? void 0 : _a.beenOilStatus
505
525
  };
506
526
  },
507
527
  useOilLine: function useOilLine(carId, startTime, endTime) {
508
- var _useRequest24 = (0, _ahooks.useRequest)(function () {
528
+ var _useRequest25 = (0, _ahooks.useRequest)(function () {
509
529
  return _utils.request.get('/cloud/oil-reborn/api/oilUse/oilLine.smvc', {
510
530
  data: {
511
531
  carId: carId,
@@ -516,13 +536,13 @@ var OilService = exports.OilService = {
516
536
  }, {
517
537
  refreshDeps: [carId, startTime, endTime]
518
538
  }),
519
- oilLineRes = _useRequest24.data;
539
+ oilLineRes = _useRequest25.data;
520
540
  return {
521
541
  oilLineRes: (oilLineRes === null || oilLineRes === void 0 ? void 0 : oilLineRes.data) || []
522
542
  };
523
543
  },
524
544
  useSummary: function useSummary(carId, startTime, endTime) {
525
- var _useRequest25 = (0, _ahooks.useRequest)(function () {
545
+ var _useRequest26 = (0, _ahooks.useRequest)(function () {
526
546
  return _utils.request.get('/cloud/oil-reborn/api/oilUse/summary.smvc', {
527
547
  data: {
528
548
  carId: carId,
@@ -533,13 +553,13 @@ var OilService = exports.OilService = {
533
553
  }, {
534
554
  refreshDeps: [carId, startTime, endTime]
535
555
  }),
536
- summaryRes = _useRequest25.data;
556
+ summaryRes = _useRequest26.data;
537
557
  return {
538
558
  summaryRes: (summaryRes === null || summaryRes === void 0 ? void 0 : summaryRes.data) || []
539
559
  };
540
560
  },
541
561
  useRecord: function useRecord(carId, startTime, endTime, page, sort) {
542
- var _useRequest26 = (0, _ahooks.useRequest)(function () {
562
+ var _useRequest27 = (0, _ahooks.useRequest)(function () {
543
563
  return _utils.request.get('/cloud/oil-reborn/api/oilUse/simplePage.smvc', {
544
564
  data: {
545
565
  carId: carId,
@@ -554,7 +574,7 @@ var OilService = exports.OilService = {
554
574
  }, {
555
575
  refreshDeps: [carId, startTime, endTime, page, sort]
556
576
  }),
557
- recordRes = _useRequest26.data;
577
+ recordRes = _useRequest27.data;
558
578
  return {
559
579
  recordRes: (recordRes === null || recordRes === void 0 ? void 0 : recordRes.data) || []
560
580
  };
@@ -563,7 +583,7 @@ var OilService = exports.OilService = {
563
583
  //水耗
564
584
  var WaterService = exports.WaterService = {
565
585
  useSummary: function useSummary(carId, startTime, endTime) {
566
- var _useRequest27 = (0, _ahooks.useRequest)(function () {
586
+ var _useRequest28 = (0, _ahooks.useRequest)(function () {
567
587
  return _utils.request.get('/cloud/water-reborn/api/v101/water/waterMeasure/summary', {
568
588
  data: {
569
589
  hasWaterStatus: true,
@@ -575,13 +595,13 @@ var WaterService = exports.WaterService = {
575
595
  }, {
576
596
  refreshDeps: [carId, startTime, endTime]
577
597
  }),
578
- summaryRes = _useRequest27.data;
598
+ summaryRes = _useRequest28.data;
579
599
  return {
580
600
  summaryRes: (summaryRes === null || summaryRes === void 0 ? void 0 : summaryRes.data) || []
581
601
  };
582
602
  },
583
603
  useRecord: function useRecord(carId, startDate, endDate, order) {
584
- var _useRequest28 = (0, _ahooks.useRequest)(function () {
604
+ var _useRequest29 = (0, _ahooks.useRequest)(function () {
585
605
  return _utils.request.get('/cloud/water-reborn/api/v101/water/waterMeasure/queryList', {
586
606
  data: {
587
607
  hasWaterStatus: true,
@@ -595,7 +615,7 @@ var WaterService = exports.WaterService = {
595
615
  }, {
596
616
  refreshDeps: [carId, startDate, endDate, order]
597
617
  }),
598
- recordRes = _useRequest28.data;
618
+ recordRes = _useRequest29.data;
599
619
  return {
600
620
  recordRes: (recordRes === null || recordRes === void 0 ? void 0 : recordRes.data) || []
601
621
  };
@@ -604,7 +624,7 @@ var WaterService = exports.WaterService = {
604
624
  // 维保
605
625
  var MaintenanceService = exports.MaintenanceService = {
606
626
  useMaintenance: function useMaintenance(carId) {
607
- var _useRequest29 = (0, _ahooks.useRequest)(function () {
627
+ var _useRequest30 = (0, _ahooks.useRequest)(function () {
608
628
  return _utils.request.get('/cloud/clwb/api/v101/carComprehensiveBoard/carWbAnalyse', {
609
629
  data: {
610
630
  carId: carId
@@ -613,7 +633,7 @@ var MaintenanceService = exports.MaintenanceService = {
613
633
  }, {
614
634
  refreshDeps: [carId]
615
635
  }),
616
- maintenanceRes = _useRequest29.data;
636
+ maintenanceRes = _useRequest30.data;
617
637
  return {
618
638
  maintenanceRes: (maintenanceRes === null || maintenanceRes === void 0 ? void 0 : maintenanceRes.data) || []
619
639
  };