@vtx/modals2 2.15.75 → 2.15.78

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 (81) hide show
  1. package/lib/vm-image-text/style/index.css +0 -1
  2. package/lib/vm-image-text/style/index.less +0 -1
  3. package/lib/vm-info-collection/index.js +5 -2
  4. package/lib/vm-info-collection/index.js.map +1 -1
  5. package/lib/vm-map/index.js +126 -307
  6. package/lib/vm-map/index.js.map +1 -1
  7. package/lib/vm-map-/345/272/237/345/274/203/index.js +342 -0
  8. package/lib/vm-map-/345/272/237/345/274/203/index.js.map +1 -0
  9. package/lib/vm-map-/345/272/237/345/274/203/mapStyle.js.map +1 -0
  10. package/lib/vm-map-/345/272/237/345/274/203/style/css.js.map +1 -0
  11. package/lib/vm-map-/345/272/237/345/274/203/style/index.js.map +1 -0
  12. package/lib/vm-sub-title/style/index.css +11 -8
  13. package/lib/vm-sub-title/style/index.less +10 -7
  14. package/lib/vtx-base-modal/index.js +2 -2
  15. package/lib/vtx-base-modal/index.js.map +1 -1
  16. package/lib/vtx-car-modal/api.js +89 -73
  17. package/lib/vtx-car-modal/api.js.map +1 -1
  18. package/lib/vtx-car-modal/components/BaseInfoLJSY/WorkDetail.js +64 -0
  19. package/lib/vtx-car-modal/components/BaseInfoLJSY/WorkDetail.js.map +1 -0
  20. package/lib/vtx-car-modal/components/BaseInfoLJSY/index.css +176 -0
  21. package/lib/vtx-car-modal/components/BaseInfoLJSY/index.js +268 -0
  22. package/lib/vtx-car-modal/components/BaseInfoLJSY/index.js.map +1 -0
  23. package/lib/vtx-car-modal/components/BaseInfoLJSY/index.less +152 -0
  24. package/lib/vtx-car-modal/components/WorkInfo/WorkLjsy.js +1 -16
  25. package/lib/vtx-car-modal/components/WorkInfo/WorkLjsy.js.map +1 -1
  26. package/lib/vtx-car-modal/components/index.js +7 -0
  27. package/lib/vtx-car-modal/components/index.js.map +1 -1
  28. package/lib/vtx-car-modal/imgs/all.png +0 -0
  29. package/lib/vtx-car-modal/imgs/bucket.png +0 -0
  30. package/lib/vtx-car-modal/imgs/in_done.png +0 -0
  31. package/lib/vtx-car-modal/imgs/in_undone.png +0 -0
  32. package/lib/vtx-car-modal/imgs/out_done.png +0 -0
  33. package/lib/vtx-car-modal/imgs/weight.png +0 -0
  34. package/lib/vtx-car-modal/index.js +19 -6
  35. package/lib/vtx-car-modal/index.js.map +1 -1
  36. package/lib/vtx-cc-cp-modal/api.js +1 -1
  37. package/lib/vtx-cc-cp-modal/api.js.map +1 -1
  38. package/lib/vtx-cc-unit-modal/api.js +1 -1
  39. package/lib/vtx-cc-unit-modal/api.js.map +1 -1
  40. package/lib/vtx-cp-modal/api.js +4 -1
  41. package/lib/vtx-cp-modal/api.js.map +1 -1
  42. package/lib/vtx-cp-modal/components/AlarmInfo/AlarmRecord.js +25 -25
  43. package/lib/vtx-cp-modal/components/AlarmInfo/AlarmRecord.js.map +1 -1
  44. package/lib/vtx-cp-modal/components/AlarmInfo/MonthTrend.js +4 -4
  45. package/lib/vtx-cp-modal/components/AlarmInfo/MonthTrend.js.map +1 -1
  46. package/lib/vtx-cp-modal/components/AlarmInfo/Summary.js +3 -5
  47. package/lib/vtx-cp-modal/components/AlarmInfo/Summary.js.map +1 -1
  48. package/lib/vtx-cp-modal/components/AlarmInfo/index.css +1 -12
  49. package/lib/vtx-cp-modal/components/AlarmInfo/index.less +2 -8
  50. package/lib/vtx-cp-modal/components/BaseInfo/index.js +8 -8
  51. package/lib/vtx-cp-modal/components/BaseInfo/index.js.map +1 -1
  52. package/lib/vtx-cp-modal/components/SyInfo/Ljcsl.js +2 -2
  53. package/lib/vtx-cp-modal/components/SyInfo/Ljcsl.js.map +1 -1
  54. package/lib/vtx-cp-modal/components/SyInfo/index.css +4 -2
  55. package/lib/vtx-cp-modal/components/SyInfo/index.js +18 -7
  56. package/lib/vtx-cp-modal/components/SyInfo/index.js.map +1 -1
  57. package/lib/vtx-cp-modal/components/SyInfo/index.less +6 -3
  58. package/lib/vtx-device-modal/api.js +1 -1
  59. package/lib/vtx-device-modal/api.js.map +1 -1
  60. package/lib/vtx-facility-modal/api.js +1 -1
  61. package/lib/vtx-facility-modal/api.js.map +1 -1
  62. package/lib/vtx-housing-estate-modal/api.js +1 -1
  63. package/lib/vtx-housing-estate-modal/api.js.map +1 -1
  64. package/lib/vtx-pump-modal/api.js +1 -1
  65. package/lib/vtx-pump-modal/api.js.map +1 -1
  66. package/lib/vtx-restaurant-modal/api.js +1 -1
  67. package/lib/vtx-restaurant-modal/api.js.map +1 -1
  68. package/lib/vtx-restaurant-modal/components/QdContract/index.js +1 -1
  69. package/lib/vtx-restaurant-modal/components/QdContract/index.js.map +1 -1
  70. package/lib/vtx-throw-point-modal/api.js +1 -1
  71. package/lib/vtx-throw-point-modal/api.js.map +1 -1
  72. package/package.json +2 -1
  73. package/lib/vm-map/mapStyle.js.map +0 -1
  74. package/lib/vm-map/style/css.js.map +0 -1
  75. package/lib/vm-map/style/index.js.map +0 -1
  76. /package/lib/{vm-map/imgs/defaultMarker.png → vm-map-/345/272/237/345/274/203/imgs/defaultMarker.png"} +0 -0
  77. /package/lib/{vm-map/mapStyle.js → vm-map-/345/272/237/345/274/203/mapStyle.js"} +0 -0
  78. /package/lib/{vm-map/style/css.js → vm-map-/345/272/237/345/274/203/style/css.js"} +0 -0
  79. /package/lib/{vm-map/style/index.css → vm-map-/345/272/237/345/274/203/style/index.css"} +0 -0
  80. /package/lib/{vm-map/style/index.js → vm-map-/345/272/237/345/274/203/style/index.js"} +0 -0
  81. /package/lib/{vm-map/style/index.less → vm-map-/345/272/237/345/274/203/style/index.less"} +0 -0
@@ -15,7 +15,7 @@ function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Sym
15
15
  function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
16
16
  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; }
17
17
  function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
18
- function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { if (r) i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n;else { var o = function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); }; o("next", 0), o("throw", 1), o("return", 2); } }, _regeneratorDefine2(e, r, n, t); }
18
+ function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
19
19
  var prefix = process.env.PREFIX || '';
20
20
  var ConfigService = exports.ConfigService = {
21
21
  useConfig: function useConfig(hasJXH) {
@@ -121,9 +121,25 @@ var BaseService = exports.BaseService = {
121
121
  })) || []
122
122
  };
123
123
  },
124
+ useSYCarInfo: function useSYCarInfo(id, date) {
125
+ var _useRequest5 = (0, _ahooks.useRequest)(function () {
126
+ return _utils.request.get("".concat(prefix, "/cloud/ljsy-reborn/api/gis/map/car/info"), {
127
+ data: {
128
+ carId: id,
129
+ day: date
130
+ }
131
+ });
132
+ }, {
133
+ refreshDeps: [id, date]
134
+ }),
135
+ syInfoRes = _useRequest5.data;
136
+ return {
137
+ syInfo: syInfoRes === null || syInfoRes === void 0 ? void 0 : syInfoRes.data
138
+ };
139
+ },
124
140
  useDeviceInfo: function useDeviceInfo(id) {
125
141
  var _a;
126
- var _useRequest5 = (0, _ahooks.useRequest)(function () {
142
+ var _useRequest6 = (0, _ahooks.useRequest)(function () {
127
143
  return _utils.request.get("".concat(prefix, "/cloud/gps-reborn/device/page"), {
128
144
  data: {
129
145
  carId: id,
@@ -136,15 +152,15 @@ var BaseService = exports.BaseService = {
136
152
  }, {
137
153
  refreshDeps: [id]
138
154
  }),
139
- data = _useRequest5.data;
155
+ data = _useRequest6.data;
140
156
  return ((_a = data === null || data === void 0 ? void 0 : data.data) === null || _a === void 0 ? void 0 : _a.total) > 0;
141
157
  },
142
158
  useConfig: function useConfig() {
143
159
  var _a, _b;
144
- var _useRequest6 = (0, _ahooks.useRequest)(function () {
160
+ var _useRequest7 = (0, _ahooks.useRequest)(function () {
145
161
  return _utils.request.get("".concat(prefix, "/cloud/ljsy-reborn/api/param/config/webList"));
146
162
  }),
147
- config = _useRequest6.data;
163
+ config = _useRequest7.data;
148
164
  var paramConfigsList = {};
149
165
  if (config === null || config === void 0 ? void 0 : config.data) {
150
166
  (_b = (_a = config.data) === null || _a === void 0 ? void 0 : _a.paramConfigs) === null || _b === void 0 ? void 0 : _b.forEach(function (element) {
@@ -154,7 +170,7 @@ var BaseService = exports.BaseService = {
154
170
  return paramConfigsList;
155
171
  },
156
172
  useCCCarInfo: function useCCCarInfo(carId) {
157
- var _useRequest7 = (0, _ahooks.useRequest)(function () {
173
+ var _useRequest8 = (0, _ahooks.useRequest)(function () {
158
174
  return (0, _tslib.__awaiter)(void 0, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
159
175
  var res;
160
176
  return _regenerator().w(function (_context) {
@@ -175,12 +191,12 @@ var BaseService = exports.BaseService = {
175
191
  }, {
176
192
  refreshDeps: [carId]
177
193
  }),
178
- _useRequest7$data = _useRequest7.data,
179
- carInfo = _useRequest7$data === void 0 ? {} : _useRequest7$data;
194
+ _useRequest8$data = _useRequest8.data,
195
+ carInfo = _useRequest8$data === void 0 ? {} : _useRequest8$data;
180
196
  return carInfo;
181
197
  },
182
198
  useDetailInfo: function useDetailInfo(carId) {
183
- var _useRequest8 = (0, _ahooks.useRequest)(function () {
199
+ var _useRequest9 = (0, _ahooks.useRequest)(function () {
184
200
  return _utils.request.get("".concat(prefix, "/cloud/gps-reborn/car/np/getCarDetailById"), {
185
201
  data: {
186
202
  id: carId,
@@ -188,30 +204,30 @@ var BaseService = exports.BaseService = {
188
204
  }
189
205
  });
190
206
  }),
191
- data = _useRequest8.data;
207
+ data = _useRequest9.data;
192
208
  return {
193
209
  detail: data === null || data === void 0 ? void 0 : data.data
194
210
  };
195
211
  },
196
212
  useServiceInfo: function useServiceInfo(carId) {
197
- var _useRequest9 = (0, _ahooks.useRequest)(function () {
213
+ var _useRequest0 = (0, _ahooks.useRequest)(function () {
198
214
  return _utils.request.get("".concat(prefix, "/cloud/jcss-reborn/contract/carHistoryContract"), {
199
215
  data: {
200
216
  id: carId
201
217
  }
202
218
  });
203
219
  }),
204
- data = _useRequest9.data;
220
+ data = _useRequest0.data;
205
221
  return {
206
222
  serviceInfo: data === null || data === void 0 ? void 0 : data.data
207
223
  };
208
224
  },
209
225
  useFieldConfig: function useFieldConfig() {
210
226
  var _a;
211
- var _useRequest0 = (0, _ahooks.useRequest)(function () {
227
+ var _useRequest1 = (0, _ahooks.useRequest)(function () {
212
228
  return _utils.request.get("".concat(prefix, "/cloud/gps-reborn/car/dataConfig/list"));
213
229
  }),
214
- data = _useRequest0.data;
230
+ data = _useRequest1.data;
215
231
  return {
216
232
  showFields: ((_a = data === null || data === void 0 ? void 0 : data.data) === null || _a === void 0 ? void 0 : _a.filter(function (ele) {
217
233
  return ele.isVisible;
@@ -220,7 +236,7 @@ var BaseService = exports.BaseService = {
220
236
  },
221
237
  useDailySummaryJxh: function useDailySummaryJxh(carId, date, service, hasJXH) {
222
238
  // 左侧今日排版、今日作业
223
- var _useRequest1 = (0, _ahooks.useRequest)(function () {
239
+ var _useRequest10 = (0, _ahooks.useRequest)(function () {
224
240
  return _utils.request.get("".concat(prefix, "/cloud/").concat(service ? service : 'zyqs-reborn', "/api/kanban/kanbanWorkInfoAndShiftStatistics"), {
225
241
  data: {
226
242
  carId: carId,
@@ -231,14 +247,14 @@ var BaseService = exports.BaseService = {
231
247
  ready: !!carId && hasJXH,
232
248
  refreshDeps: [carId, date, hasJXH]
233
249
  }),
234
- dailySummaryJxh = _useRequest1.data;
250
+ dailySummaryJxh = _useRequest10.data;
235
251
  return {
236
252
  dailySummaryJxh: (dailySummaryJxh === null || dailySummaryJxh === void 0 ? void 0 : dailySummaryJxh.data) || {}
237
253
  };
238
254
  },
239
255
  useDailyCarRun: function useDailyCarRun(id, beginTime, endTime) {
240
256
  //今日运行
241
- var _useRequest10 = (0, _ahooks.useRequest)(function () {
257
+ var _useRequest11 = (0, _ahooks.useRequest)(function () {
242
258
  return _utils.request.get("".concat(prefix, "/cloud/gps-reborn/report/dailyCarRun/list"), {
243
259
  data: {
244
260
  carIds: id,
@@ -249,14 +265,14 @@ var BaseService = exports.BaseService = {
249
265
  }, {
250
266
  refreshDeps: [id, beginTime, endTime]
251
267
  }),
252
- dailyCarRunRes = _useRequest10.data;
268
+ dailyCarRunRes = _useRequest11.data;
253
269
  return {
254
270
  dailyCarRunRes: (dailyCarRunRes === null || dailyCarRunRes === void 0 ? void 0 : dailyCarRunRes.data) || []
255
271
  };
256
272
  },
257
273
  useTodayRun: function useTodayRun(carId, beginTime, endTime, source) {
258
274
  //今日运行
259
- var _useRequest11 = (0, _ahooks.useRequest)(function () {
275
+ var _useRequest12 = (0, _ahooks.useRequest)(function () {
260
276
  return _utils.request.get("".concat(prefix, "/cloud/gps-reborn/car/detail/alarmSumWithDetail"), {
261
277
  data: {
262
278
  carId: carId,
@@ -268,14 +284,14 @@ var BaseService = exports.BaseService = {
268
284
  ready: source === 'GPS',
269
285
  refreshDeps: [carId, beginTime, endTime, source]
270
286
  }),
271
- todayRunRes = _useRequest11.data;
287
+ todayRunRes = _useRequest12.data;
272
288
  return {
273
289
  todayRunRes: (todayRunRes === null || todayRunRes === void 0 ? void 0 : todayRunRes.data) || {}
274
290
  };
275
291
  },
276
292
  useTodayWorkJxh: function useTodayWorkJxh(carId, date, service) {
277
293
  //今日作业-机械化
278
- var _useRequest12 = (0, _ahooks.useRequest)(function () {
294
+ var _useRequest13 = (0, _ahooks.useRequest)(function () {
279
295
  return _utils.request.get("".concat(prefix, "/cloud/").concat(service ? service : 'zyqs-reborn', "/api/kanban/getRoadWorkInfoByCarId"), {
280
296
  data: {
281
297
  carId: carId,
@@ -285,14 +301,14 @@ var BaseService = exports.BaseService = {
285
301
  }, {
286
302
  refreshDeps: [carId, date]
287
303
  }),
288
- todayRunJxhRes = _useRequest12.data;
304
+ todayRunJxhRes = _useRequest13.data;
289
305
  return {
290
306
  todayRunJxhRes: (todayRunJxhRes === null || todayRunJxhRes === void 0 ? void 0 : todayRunJxhRes.data) || []
291
307
  };
292
308
  },
293
309
  useTodayWorkLjsy: function useTodayWorkLjsy(carId, dateValue) {
294
310
  //今日作业-垃圾收运
295
- var _useRequest13 = (0, _ahooks.useRequest)(function () {
311
+ var _useRequest14 = (0, _ahooks.useRequest)(function () {
296
312
  return _utils.request.get('/cloud/ljsy-reborn/api/kanban/getWorkInfoByCarIdWithDetail', {
297
313
  data: {
298
314
  carId: carId,
@@ -302,7 +318,7 @@ var BaseService = exports.BaseService = {
302
318
  }, {
303
319
  refreshDeps: [carId, dateValue]
304
320
  }),
305
- todayRunLjsyRes = _useRequest13.data;
321
+ todayRunLjsyRes = _useRequest14.data;
306
322
  return {
307
323
  todayRunLjsyRes: (todayRunLjsyRes === null || todayRunLjsyRes === void 0 ? void 0 : todayRunLjsyRes.data) || []
308
324
  };
@@ -311,7 +327,7 @@ var BaseService = exports.BaseService = {
311
327
  var searchDay = _ref.searchDay,
312
328
  carId = _ref.carId,
313
329
  garbageType = _ref.garbageType;
314
- var _useRequest14 = (0, _ahooks.useRequest)(function () {
330
+ var _useRequest15 = (0, _ahooks.useRequest)(function () {
315
331
  return _utils.request.get("".concat(prefix, "/cloud/cc-reborn/api/v101/gisOnePage/getCarCollectDay"), {
316
332
  data: {
317
333
  carId: carId,
@@ -322,13 +338,13 @@ var BaseService = exports.BaseService = {
322
338
  }, {
323
339
  refreshDeps: [carId, searchDay]
324
340
  }),
325
- _useRequest14$data = _useRequest14.data,
326
- data = _useRequest14$data === void 0 ? {} : _useRequest14$data;
341
+ _useRequest15$data = _useRequest15.data,
342
+ data = _useRequest15$data === void 0 ? {} : _useRequest15$data;
327
343
  return (data === null || data === void 0 ? void 0 : data.data) || {};
328
344
  },
329
345
  useTodayWorkCC: function useTodayWorkCC(carId, queryStartTime, queryEndTime, garbageType) {
330
346
  //今日作业-餐厨
331
- var _useRequest15 = (0, _ahooks.useRequest)(function () {
347
+ var _useRequest16 = (0, _ahooks.useRequest)(function () {
332
348
  return garbageType === 'fqyz' ? _utils.request.get("".concat(prefix, "/cloud/cc-reborn/api/v101/oilWeight/list"), {
333
349
  data: {
334
350
  carId: carId,
@@ -345,14 +361,14 @@ var BaseService = exports.BaseService = {
345
361
  }, {
346
362
  refreshDeps: [carId, queryStartTime, queryEndTime]
347
363
  }),
348
- todayRunCCRes = _useRequest15.data;
364
+ todayRunCCRes = _useRequest16.data;
349
365
  return {
350
366
  todayRunCCRes: (todayRunCCRes === null || todayRunCCRes === void 0 ? void 0 : todayRunCCRes.data) || []
351
367
  };
352
368
  },
353
369
  useWorkSummaryJxh: function useWorkSummaryJxh(carId, startDate, endDate, service) {
354
370
  //机械化作业统计
355
- var _useRequest16 = (0, _ahooks.useRequest)(function () {
371
+ var _useRequest17 = (0, _ahooks.useRequest)(function () {
356
372
  return _utils.request.get("".concat(prefix, "/cloud/").concat(service ? service : 'zyqs-reborn', "/api/kanban/workInfoStatisticsByCarId"), {
357
373
  data: {
358
374
  carId: carId,
@@ -364,14 +380,14 @@ var BaseService = exports.BaseService = {
364
380
  }, {
365
381
  refreshDeps: [carId, startDate, endDate]
366
382
  }),
367
- workSummaryJxhRes = _useRequest16.data;
383
+ workSummaryJxhRes = _useRequest17.data;
368
384
  return {
369
385
  workSummaryJxhRes: (workSummaryJxhRes === null || workSummaryJxhRes === void 0 ? void 0 : workSummaryJxhRes.data) || {}
370
386
  };
371
387
  },
372
388
  useWorkAnaJxh: function useWorkAnaJxh(carId, startDate, endDate, service) {
373
389
  //机械化作业分析
374
- var _useRequest17 = (0, _ahooks.useRequest)(function () {
390
+ var _useRequest18 = (0, _ahooks.useRequest)(function () {
375
391
  return _utils.request.get("".concat(prefix, "/cloud/").concat(service ? service : 'zyqs-reborn', "/api/kanban/workInfoAnalysisByCarId"), {
376
392
  data: {
377
393
  carId: carId,
@@ -382,14 +398,14 @@ var BaseService = exports.BaseService = {
382
398
  }, {
383
399
  refreshDeps: [carId, startDate, endDate]
384
400
  }),
385
- workAnaJxhRes = _useRequest17.data;
401
+ workAnaJxhRes = _useRequest18.data;
386
402
  return {
387
403
  workAnaJxhRes: (workAnaJxhRes === null || workAnaJxhRes === void 0 ? void 0 : workAnaJxhRes.data) || []
388
404
  };
389
405
  },
390
406
  useWorkAnaLjsy: function useWorkAnaLjsy(carId, startDate, endDate, isReleate) {
391
407
  //垃圾收运-作业分析
392
- var _useRequest18 = (0, _ahooks.useRequest)(function () {
408
+ var _useRequest19 = (0, _ahooks.useRequest)(function () {
393
409
  return _utils.request.get("".concat(prefix, "/cloud/ljsy-reborn/api/kanban/getWorkInfoAnalysisByCarId"), {
394
410
  data: {
395
411
  carId: carId,
@@ -401,14 +417,14 @@ var BaseService = exports.BaseService = {
401
417
  ready: isReleate,
402
418
  refreshDeps: [carId, startDate, endDate]
403
419
  }),
404
- workAnaLjsyRes = _useRequest18.data;
420
+ workAnaLjsyRes = _useRequest19.data;
405
421
  return {
406
422
  workAnaLjsyRes: (workAnaLjsyRes === null || workAnaLjsyRes === void 0 ? void 0 : workAnaLjsyRes.data) || {}
407
423
  };
408
424
  },
409
425
  useWorkAnaCC: function useWorkAnaCC(carId, startDate, endDate, isReleate) {
410
426
  //垃圾收运-作业分析
411
- var _useRequest19 = (0, _ahooks.useRequest)(function () {
427
+ var _useRequest20 = (0, _ahooks.useRequest)(function () {
412
428
  return _utils.request.get("".concat(prefix, "/cloud/cc-reborn/api/v101/gisOnePage/carCollectSummaryLine"), {
413
429
  data: {
414
430
  carId: carId,
@@ -420,7 +436,7 @@ var BaseService = exports.BaseService = {
420
436
  ready: isReleate,
421
437
  refreshDeps: [carId, startDate, endDate]
422
438
  }),
423
- workAnaLjsyRes = _useRequest19.data;
439
+ workAnaLjsyRes = _useRequest20.data;
424
440
  return {
425
441
  workAnaLjsyRes: (workAnaLjsyRes === null || workAnaLjsyRes === void 0 ? void 0 : workAnaLjsyRes.data) || {}
426
442
  };
@@ -428,7 +444,7 @@ var BaseService = exports.BaseService = {
428
444
  };
429
445
  var AlarmService = exports.AlarmService = {
430
446
  useAlarmType: function useAlarmType(carIds, startTime, endTime, source) {
431
- var _useRequest20 = (0, _ahooks.useRequest)(function () {
447
+ var _useRequest21 = (0, _ahooks.useRequest)(function () {
432
448
  return _utils.request.get("".concat(prefix, "/cloud/gps-reborn/alarm/record/statisticsPage"), {
433
449
  data: {
434
450
  carIds: carIds,
@@ -440,7 +456,7 @@ var AlarmService = exports.AlarmService = {
440
456
  ready: source === 'GPS',
441
457
  refreshDeps: [carIds, startTime, endTime, source]
442
458
  }),
443
- alarmTypesRes = _useRequest20.data;
459
+ alarmTypesRes = _useRequest21.data;
444
460
  return {
445
461
  alarmTypes: (alarmTypesRes === null || alarmTypesRes === void 0 ? void 0 : alarmTypesRes.data) || {
446
462
  totalCount: 0,
@@ -449,7 +465,7 @@ var AlarmService = exports.AlarmService = {
449
465
  };
450
466
  },
451
467
  useAlarmTypeWork: function useAlarmTypeWork(carIds, startTime, endTime, source) {
452
- var _useRequest21 = (0, _ahooks.useRequest)(function () {
468
+ var _useRequest22 = (0, _ahooks.useRequest)(function () {
453
469
  return _utils.request.get("".concat(prefix, "/cloud/ljsy-reborn/api/task/alarm/alarmSum"), {
454
470
  data: {
455
471
  carIds: carIds,
@@ -461,7 +477,7 @@ var AlarmService = exports.AlarmService = {
461
477
  ready: source === 'WORK',
462
478
  refreshDeps: [carIds, startTime, endTime, source]
463
479
  }),
464
- data = _useRequest21.data;
480
+ data = _useRequest22.data;
465
481
  return {
466
482
  alarmTypesWork: (data === null || data === void 0 ? void 0 : data.data) || {
467
483
  total: 0,
@@ -471,7 +487,7 @@ var AlarmService = exports.AlarmService = {
471
487
  };
472
488
  },
473
489
  useAlarmList: function useAlarmList(carCode, alarmStrategyName, startTime, endTime, page) {
474
- var _useRequest22 = (0, _ahooks.useRequest)(function () {
490
+ var _useRequest23 = (0, _ahooks.useRequest)(function () {
475
491
  return _utils.request.get("".concat(prefix, "/cloud/gps-reborn/alarm/record/pageList"), {
476
492
  data: {
477
493
  carCode: carCode,
@@ -486,13 +502,13 @@ var AlarmService = exports.AlarmService = {
486
502
  ready: !!carCode,
487
503
  refreshDeps: [carCode, alarmStrategyName, startTime, endTime, page]
488
504
  }),
489
- recordRes = _useRequest22.data;
505
+ recordRes = _useRequest23.data;
490
506
  return {
491
507
  alarmRecord: (recordRes === null || recordRes === void 0 ? void 0 : recordRes.data) || {}
492
508
  };
493
509
  },
494
510
  useAlarmListWork: function useAlarmListWork(carIds, alarmTypeCode, startDate, endDate, page) {
495
- var _useRequest23 = (0, _ahooks.useRequest)(function () {
511
+ var _useRequest24 = (0, _ahooks.useRequest)(function () {
496
512
  return _utils.request.get("".concat(prefix, "/cloud/ljsy-reborn/api/task/alarm/alarmPage"), {
497
513
  data: {
498
514
  carIds: carIds,
@@ -507,7 +523,7 @@ var AlarmService = exports.AlarmService = {
507
523
  }, {
508
524
  refreshDeps: [carIds, alarmTypeCode, startDate, endDate, page]
509
525
  }),
510
- recordRes = _useRequest23.data;
526
+ recordRes = _useRequest24.data;
511
527
  return {
512
528
  alarmRecordWork: (recordRes === null || recordRes === void 0 ? void 0 : recordRes.data) || {}
513
529
  };
@@ -515,7 +531,7 @@ var AlarmService = exports.AlarmService = {
515
531
  useAlarmTodayRun: function useAlarmTodayRun(carId, beginTime, endTime, source) {
516
532
  var _a;
517
533
  //今日运行
518
- var _useRequest24 = (0, _ahooks.useRequest)(function () {
534
+ var _useRequest25 = (0, _ahooks.useRequest)(function () {
519
535
  return _utils.request.get("".concat(prefix, "/cloud/ljsy-reborn/api/task/alarm/alarmSumByTypeAndDay"), {
520
536
  data: {
521
537
  carId: carId,
@@ -527,7 +543,7 @@ var AlarmService = exports.AlarmService = {
527
543
  ready: source === 'WORK',
528
544
  refreshDeps: [carId, beginTime, endTime, source]
529
545
  }),
530
- data = _useRequest24.data;
546
+ data = _useRequest25.data;
531
547
  var pieData = [];
532
548
  var lineData = {
533
549
  legends: [],
@@ -565,19 +581,19 @@ var AlarmService = exports.AlarmService = {
565
581
  var WorkServicve = exports.WorkServicve = {
566
582
  useWorkTypeJxh: function useWorkTypeJxh(service) {
567
583
  //机械化作业类型
568
- var _useRequest25 = (0, _ahooks.useRequest)(function () {
584
+ var _useRequest26 = (0, _ahooks.useRequest)(function () {
569
585
  return _utils.request.get("".concat(prefix, "/cloud/").concat(service ? service : 'zyqs-reborn', "/api/v101/common/listWorkType"), {
570
586
  data: {}
571
587
  });
572
588
  }),
573
- workTypeRes = _useRequest25.data;
589
+ workTypeRes = _useRequest26.data;
574
590
  return {
575
591
  workTypeRes: (workTypeRes === null || workTypeRes === void 0 ? void 0 : workTypeRes.data) || []
576
592
  };
577
593
  },
578
594
  useRecordJxh: function useRecordJxh(carId, workTypeCodes, startDate, endDate, pageNo, order, service) {
579
595
  //机械化
580
- var _useRequest26 = (0, _ahooks.useRequest)(function () {
596
+ var _useRequest27 = (0, _ahooks.useRequest)(function () {
581
597
  return _utils.request.get("".concat(prefix, "/cloud/").concat(service ? service : 'zyqs-reborn', "/api/v1.5/noshift/page"), {
582
598
  data: {
583
599
  carId: carId,
@@ -595,14 +611,14 @@ var WorkServicve = exports.WorkServicve = {
595
611
  }, {
596
612
  refreshDeps: [carId, workTypeCodes, startDate, endDate, pageNo, order]
597
613
  }),
598
- recordJxhRes = _useRequest26.data;
614
+ recordJxhRes = _useRequest27.data;
599
615
  return {
600
616
  recordJxhRes: (recordJxhRes === null || recordJxhRes === void 0 ? void 0 : recordJxhRes.data) || []
601
617
  };
602
618
  },
603
619
  useWorkSummaryLjsy: function useWorkSummaryLjsy(carId, startDate, endDate) {
604
620
  //垃圾收运头部统计
605
- var _useRequest27 = (0, _ahooks.useRequest)(function () {
621
+ var _useRequest28 = (0, _ahooks.useRequest)(function () {
606
622
  return _utils.request.get("".concat(prefix, "/cloud/ljsy-reborn/api/kanban/getWorkInfoSummaryByCarId"), {
607
623
  data: {
608
624
  carId: carId,
@@ -613,14 +629,14 @@ var WorkServicve = exports.WorkServicve = {
613
629
  }, {
614
630
  refreshDeps: [carId, startDate, endDate]
615
631
  }),
616
- summaryLjsy = _useRequest27.data;
632
+ summaryLjsy = _useRequest28.data;
617
633
  return {
618
634
  summaryLjsy: (summaryLjsy === null || summaryLjsy === void 0 ? void 0 : summaryLjsy.data) || []
619
635
  };
620
636
  },
621
637
  useRecordLjsy: function useRecordLjsy(carIds, startTime, endTime, page, sort) {
622
638
  //机械化
623
- var _useRequest28 = (0, _ahooks.useRequest)(function () {
639
+ var _useRequest29 = (0, _ahooks.useRequest)(function () {
624
640
  return _utils.request.get("".concat(prefix, "/cloud/ljsy-reborn/api/collect/record/detail/page"), {
625
641
  data: {
626
642
  carIds: carIds,
@@ -634,7 +650,7 @@ var WorkServicve = exports.WorkServicve = {
634
650
  }, {
635
651
  refreshDeps: [carIds, startTime, endTime, page, sort]
636
652
  }),
637
- recordLjsyRes = _useRequest28.data;
653
+ recordLjsyRes = _useRequest29.data;
638
654
  return {
639
655
  recordLjsyRes: (recordLjsyRes === null || recordLjsyRes === void 0 ? void 0 : recordLjsyRes.data) || []
640
656
  };
@@ -644,7 +660,7 @@ var WorkServicve = exports.WorkServicve = {
644
660
  var OilService = exports.OilService = {
645
661
  useHasOil: function useHasOil(carId) {
646
662
  var _a;
647
- var _useRequest29 = (0, _ahooks.useRequest)(function () {
663
+ var _useRequest30 = (0, _ahooks.useRequest)(function () {
648
664
  return _utils.request.get("".concat(prefix, "/cloud/gps-reborn/car/config/getById"), {
649
665
  data: {
650
666
  id: carId
@@ -653,13 +669,13 @@ var OilService = exports.OilService = {
653
669
  }, {
654
670
  refreshDeps: [carId]
655
671
  }),
656
- data = _useRequest29.data;
672
+ data = _useRequest30.data;
657
673
  return {
658
674
  beenOilStatus: (_a = data === null || data === void 0 ? void 0 : data.data) === null || _a === void 0 ? void 0 : _a.beenOilStatus
659
675
  };
660
676
  },
661
677
  useOilLine: function useOilLine(carId, startTime, endTime) {
662
- var _useRequest30 = (0, _ahooks.useRequest)(function () {
678
+ var _useRequest31 = (0, _ahooks.useRequest)(function () {
663
679
  return _utils.request.get("".concat(prefix, "/cloud/oil-reborn/api/oilUse/oilLine.smvc"), {
664
680
  data: {
665
681
  carId: carId,
@@ -670,13 +686,13 @@ var OilService = exports.OilService = {
670
686
  }, {
671
687
  refreshDeps: [carId, startTime, endTime]
672
688
  }),
673
- oilLineRes = _useRequest30.data;
689
+ oilLineRes = _useRequest31.data;
674
690
  return {
675
691
  oilLineRes: (oilLineRes === null || oilLineRes === void 0 ? void 0 : oilLineRes.data) || []
676
692
  };
677
693
  },
678
694
  useSummary: function useSummary(carId, startTime, endTime) {
679
- var _useRequest31 = (0, _ahooks.useRequest)(function () {
695
+ var _useRequest32 = (0, _ahooks.useRequest)(function () {
680
696
  return _utils.request.get("".concat(prefix, "/cloud/oil-reborn/api/oilUse/summary.smvc"), {
681
697
  data: {
682
698
  carId: carId,
@@ -687,13 +703,13 @@ var OilService = exports.OilService = {
687
703
  }, {
688
704
  refreshDeps: [carId, startTime, endTime]
689
705
  }),
690
- summaryRes = _useRequest31.data;
706
+ summaryRes = _useRequest32.data;
691
707
  return {
692
708
  summaryRes: (summaryRes === null || summaryRes === void 0 ? void 0 : summaryRes.data) || []
693
709
  };
694
710
  },
695
711
  useRecord: function useRecord(carId, startTime, endTime, page, sort) {
696
- var _useRequest32 = (0, _ahooks.useRequest)(function () {
712
+ var _useRequest33 = (0, _ahooks.useRequest)(function () {
697
713
  return _utils.request.get("".concat(prefix, "/cloud/oil-reborn/api/oilUse/simplePage.smvc"), {
698
714
  data: {
699
715
  carId: carId,
@@ -708,7 +724,7 @@ var OilService = exports.OilService = {
708
724
  }, {
709
725
  refreshDeps: [carId, startTime, endTime, page, sort]
710
726
  }),
711
- recordRes = _useRequest32.data;
727
+ recordRes = _useRequest33.data;
712
728
  return {
713
729
  recordRes: (recordRes === null || recordRes === void 0 ? void 0 : recordRes.data) || []
714
730
  };
@@ -717,7 +733,7 @@ var OilService = exports.OilService = {
717
733
  //水耗
718
734
  var WaterService = exports.WaterService = {
719
735
  useSummary: function useSummary(carId, startTime, endTime) {
720
- var _useRequest33 = (0, _ahooks.useRequest)(function () {
736
+ var _useRequest34 = (0, _ahooks.useRequest)(function () {
721
737
  return _utils.request.get("".concat(prefix, "/cloud/water-reborn/api/v101/water/waterMeasure/summary"), {
722
738
  data: {
723
739
  hasWaterStatus: true,
@@ -729,13 +745,13 @@ var WaterService = exports.WaterService = {
729
745
  }, {
730
746
  refreshDeps: [carId, startTime, endTime]
731
747
  }),
732
- summaryRes = _useRequest33.data;
748
+ summaryRes = _useRequest34.data;
733
749
  return {
734
750
  summaryRes: (summaryRes === null || summaryRes === void 0 ? void 0 : summaryRes.data) || []
735
751
  };
736
752
  },
737
753
  useRecord: function useRecord(carId, startDate, endDate, order) {
738
- var _useRequest34 = (0, _ahooks.useRequest)(function () {
754
+ var _useRequest35 = (0, _ahooks.useRequest)(function () {
739
755
  return _utils.request.get("".concat(prefix, "/cloud/water-reborn/api/v101/water/waterMeasure/queryList"), {
740
756
  data: {
741
757
  hasWaterStatus: true,
@@ -749,7 +765,7 @@ var WaterService = exports.WaterService = {
749
765
  }, {
750
766
  refreshDeps: [carId, startDate, endDate, order]
751
767
  }),
752
- recordRes = _useRequest34.data;
768
+ recordRes = _useRequest35.data;
753
769
  return {
754
770
  recordRes: (recordRes === null || recordRes === void 0 ? void 0 : recordRes.data) || []
755
771
  };
@@ -758,7 +774,7 @@ var WaterService = exports.WaterService = {
758
774
  // 维保
759
775
  var MaintenanceService = exports.MaintenanceService = {
760
776
  useMaintenance: function useMaintenance(carId) {
761
- var _useRequest35 = (0, _ahooks.useRequest)(function () {
777
+ var _useRequest36 = (0, _ahooks.useRequest)(function () {
762
778
  return _utils.request.get("".concat(prefix, "/cloud/clwb/api/v101/carComprehensiveBoard/carWbAnalyse"), {
763
779
  data: {
764
780
  carId: carId
@@ -767,7 +783,7 @@ var MaintenanceService = exports.MaintenanceService = {
767
783
  }, {
768
784
  refreshDeps: [carId]
769
785
  }),
770
- maintenanceRes = _useRequest35.data;
786
+ maintenanceRes = _useRequest36.data;
771
787
  return {
772
788
  maintenanceRes: (maintenanceRes === null || maintenanceRes === void 0 ? void 0 : maintenanceRes.data) || []
773
789
  };
@@ -779,7 +795,7 @@ var CollectionService = exports.CollectionService = {
779
795
  var carId = _ref2.carId,
780
796
  startDay = _ref2.startDay,
781
797
  endDay = _ref2.endDay;
782
- var _useRequest36 = (0, _ahooks.useRequest)(function () {
798
+ var _useRequest37 = (0, _ahooks.useRequest)(function () {
783
799
  return (0, _tslib.__awaiter)(void 0, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee2() {
784
800
  var res;
785
801
  return _regenerator().w(function (_context2) {
@@ -803,7 +819,7 @@ var CollectionService = exports.CollectionService = {
803
819
  refreshDeps: [carId, startDay, endDay],
804
820
  ready: !!carId
805
821
  }),
806
- data = _useRequest36.data;
822
+ data = _useRequest37.data;
807
823
  return data || [];
808
824
  },
809
825
  // 收运记录
@@ -811,7 +827,7 @@ var CollectionService = exports.CollectionService = {
811
827
  var id = _ref3.id,
812
828
  startTime = _ref3.startTime,
813
829
  endTime = _ref3.endTime;
814
- var _useRequest37 = (0, _ahooks.useRequest)(function () {
830
+ var _useRequest38 = (0, _ahooks.useRequest)(function () {
815
831
  return (0, _tslib.__awaiter)(void 0, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee3() {
816
832
  var res;
817
833
  return _regenerator().w(function (_context3) {
@@ -835,7 +851,7 @@ var CollectionService = exports.CollectionService = {
835
851
  refreshDeps: [id, startTime, endTime],
836
852
  ready: !!id
837
853
  }),
838
- data = _useRequest37.data;
854
+ data = _useRequest38.data;
839
855
  return data;
840
856
  }
841
857
  };