@vtx/modals2 2.15.11 → 2.15.15
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/index.js +7 -0
- package/lib/index.js.map +1 -1
- package/lib/style/index.css +6 -0
- package/lib/style/themes/dark.css +6 -0
- package/lib/style/themes/dark.less +5 -0
- package/lib/style/themes/default.css +1 -0
- package/lib/style/themes/default.less +1 -0
- package/lib/style/themes/index.css +6 -0
- package/lib/vm-card/index.js +24 -0
- package/lib/vm-card/index.js.map +1 -0
- package/lib/vm-card/style/css.js +4 -0
- package/lib/vm-card/style/css.js.map +1 -0
- package/lib/vm-card/style/index.css +37 -0
- package/lib/vm-card/style/index.js +4 -0
- package/lib/vm-card/style/index.js.map +1 -0
- package/lib/vm-card/style/index.less +25 -0
- package/lib/vm-filter/index.js +6 -5
- package/lib/vm-filter/index.js.map +1 -1
- package/lib/vm-filter/style/index.css +4 -4
- package/lib/vm-filter/style/index.less +4 -4
- package/lib/vm-image-text/index.js +7 -2
- package/lib/vm-image-text/index.js.map +1 -1
- package/lib/vm-info-collection/index.js +8 -7
- package/lib/vm-info-collection/index.js.map +1 -1
- package/lib/vm-info-collection/style/index.css +4 -4
- package/lib/vm-info-collection/style/index.less +1 -1
- package/lib/vm-table/style/index.css +1 -1
- package/lib/vm-table/style/index.less +1 -1
- package/lib/vm-video/index.css +6 -0
- package/lib/vtx-base-modal/index.js +18 -4
- package/lib/vtx-base-modal/index.js.map +1 -1
- package/lib/vtx-car-modal/api.js +126 -88
- package/lib/vtx-car-modal/api.js.map +1 -1
- package/lib/vtx-car-modal/components/AlarmInfo/List.js +5 -4
- package/lib/vtx-car-modal/components/AlarmInfo/List.js.map +1 -1
- package/lib/vtx-car-modal/components/BaseInfo/TodayWorkJXH.js +12 -4
- package/lib/vtx-car-modal/components/BaseInfo/TodayWorkJXH.js.map +1 -1
- package/lib/vtx-car-modal/components/Collection/index.js +6 -8
- package/lib/vtx-car-modal/components/Collection/index.js.map +1 -1
- package/lib/vtx-car-modal/components/QdBaseInfo/Chain.js +104 -0
- package/lib/vtx-car-modal/components/QdBaseInfo/Chain.js.map +1 -0
- package/lib/vtx-car-modal/components/QdBaseInfo/TodayWorkCC.js +78 -0
- package/lib/vtx-car-modal/components/QdBaseInfo/TodayWorkCC.js.map +1 -0
- package/lib/vtx-car-modal/components/QdBaseInfo/ZyfxCC.js +148 -0
- package/lib/vtx-car-modal/components/QdBaseInfo/ZyfxCC.js.map +1 -0
- package/lib/vtx-car-modal/components/QdBaseInfo/index.js +223 -0
- package/lib/vtx-car-modal/components/QdBaseInfo/index.js.map +1 -0
- package/lib/vtx-car-modal/components/WorkInfo/WorkJxh.js +5 -2
- package/lib/vtx-car-modal/components/WorkInfo/WorkJxh.js.map +1 -1
- package/lib/vtx-car-modal/index.js +17 -3
- package/lib/vtx-car-modal/index.js.map +1 -1
- package/lib/vtx-car-modal/style/index.css +6 -0
- package/lib/vtx-cc-cp-modal/api.js +73 -51
- package/lib/vtx-cc-cp-modal/api.js.map +1 -1
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmRecord.js +14 -17
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmRecord.js.map +1 -1
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/MonthTrend.js +3 -5
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/MonthTrend.js.map +1 -1
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/Summary.js +4 -5
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/Summary.js.map +1 -1
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/index.css +1 -18
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/index.less +1 -18
- package/lib/vtx-cc-cp-modal/components/BaseInfo/AllWork.js +24 -20
- package/lib/vtx-cc-cp-modal/components/BaseInfo/AllWork.js.map +1 -1
- package/lib/vtx-cc-cp-modal/components/BaseInfo/Info.js +3 -1
- package/lib/vtx-cc-cp-modal/components/BaseInfo/Info.js.map +1 -1
- package/lib/vtx-cc-cp-modal/components/BaseInfo/Rules.js +3 -1
- package/lib/vtx-cc-cp-modal/components/BaseInfo/Rules.js.map +1 -1
- package/lib/vtx-cc-cp-modal/components/BaseInfo/index.css +11 -41
- package/lib/vtx-cc-cp-modal/components/BaseInfo/index.js +26 -32
- package/lib/vtx-cc-cp-modal/components/BaseInfo/index.js.map +1 -1
- package/lib/vtx-cc-cp-modal/components/BaseInfo/index.less +42 -81
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionRecord.js +12 -15
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionRecord.js.map +1 -1
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/MonthTrend.js +5 -7
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/MonthTrend.js.map +1 -1
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/Summary.js +4 -5
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/Summary.js.map +1 -1
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/index.css +1 -1
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/index.less +1 -1
- package/lib/vtx-cc-cp-modal/components/Restaurant/index.css +1 -6
- package/lib/vtx-cc-cp-modal/components/Restaurant/index.js +2 -3
- package/lib/vtx-cc-cp-modal/components/Restaurant/index.js.map +1 -1
- package/lib/vtx-cc-cp-modal/components/Restaurant/index.less +1 -6
- package/lib/vtx-cc-cp-modal/components/SyInfo/index.js +20 -23
- package/lib/vtx-cc-cp-modal/components/SyInfo/index.js.map +1 -1
- package/lib/vtx-cc-cp-modal/index.js +36 -5
- package/lib/vtx-cc-cp-modal/index.js.map +1 -1
- package/lib/vtx-cc-cp-modal/style/index.css +6 -0
- package/lib/vtx-cc-unit-modal/api.js +358 -0
- package/lib/vtx-cc-unit-modal/api.js.map +1 -0
- package/lib/vtx-cc-unit-modal/components/CarList/index.js +105 -0
- package/lib/vtx-cc-unit-modal/components/CarList/index.js.map +1 -0
- package/lib/vtx-cc-unit-modal/components/QdBase/CollectRecord.js +89 -0
- package/lib/vtx-cc-unit-modal/components/QdBase/CollectRecord.js.map +1 -0
- package/lib/vtx-cc-unit-modal/components/QdBase/CollectStatistics.js +68 -0
- package/lib/vtx-cc-unit-modal/components/QdBase/CollectStatistics.js.map +1 -0
- package/lib/vtx-cc-unit-modal/components/QdBase/Factory.js +46 -0
- package/lib/vtx-cc-unit-modal/components/QdBase/Factory.js.map +1 -0
- package/lib/vtx-cc-unit-modal/components/QdBase/index.css +29 -0
- package/lib/vtx-cc-unit-modal/components/QdBase/index.js +104 -0
- package/lib/vtx-cc-unit-modal/components/QdBase/index.js.map +1 -0
- package/lib/vtx-cc-unit-modal/components/QdBase/index.less +20 -0
- package/lib/vtx-cc-unit-modal/components/QdCollection/index.js +60 -0
- package/lib/vtx-cc-unit-modal/components/QdCollection/index.js.map +1 -0
- package/lib/vtx-cc-unit-modal/components/QdDetailInfo/index.js +139 -0
- package/lib/vtx-cc-unit-modal/components/QdDetailInfo/index.js.map +1 -0
- package/lib/vtx-cc-unit-modal/components/QdFactory/index.js +57 -0
- package/lib/vtx-cc-unit-modal/components/QdFactory/index.js.map +1 -0
- package/lib/vtx-cc-unit-modal/components/RestaurantList/index.js +114 -0
- package/lib/vtx-cc-unit-modal/components/RestaurantList/index.js.map +1 -0
- package/lib/vtx-cc-unit-modal/index.js +105 -0
- package/lib/vtx-cc-unit-modal/index.js.map +1 -0
- package/lib/vtx-cc-unit-modal/style/css.js +4 -0
- package/lib/vtx-cc-unit-modal/style/css.js.map +1 -0
- package/lib/vtx-cc-unit-modal/style/index.css +145 -0
- package/lib/vtx-cc-unit-modal/style/index.js +4 -0
- package/lib/vtx-cc-unit-modal/style/index.js.map +1 -0
- package/lib/vtx-cc-unit-modal/style/index.less +1 -0
- package/lib/vtx-cp-modal/api.js +0 -2
- package/lib/vtx-cp-modal/api.js.map +1 -1
- package/lib/vtx-cp-modal/style/index.css +6 -0
- package/lib/vtx-default-modal/api.js +23 -0
- package/lib/vtx-default-modal/api.js.map +1 -1
- package/lib/vtx-default-modal/style/index.css +6 -0
- package/lib/vtx-df-modal/components/Metering/List.js +3 -1
- package/lib/vtx-df-modal/components/Metering/List.js.map +1 -1
- package/lib/vtx-df-modal/style/index.css +6 -0
- package/lib/vtx-housing-estate-modal/components/Alarm/MY.js.map +1 -1
- package/lib/vtx-housing-estate-modal/components/OverView/Hot.js.map +1 -1
- package/lib/vtx-housing-estate-modal/components/OverView/Trend.js.map +1 -1
- package/lib/vtx-kh-modal/style/index.css +6 -0
- package/lib/vtx-restaurant-modal/api.js +142 -43
- package/lib/vtx-restaurant-modal/api.js.map +1 -1
- package/lib/vtx-restaurant-modal/components/Alarm/AlarmTrend.js +12 -5
- package/lib/vtx-restaurant-modal/components/Alarm/AlarmTrend.js.map +1 -1
- package/lib/vtx-restaurant-modal/components/Alarm/AlarmTypeAnalysis.js +1 -1
- package/lib/vtx-restaurant-modal/components/Alarm/AlarmTypeAnalysis.js.map +1 -1
- package/lib/vtx-restaurant-modal/components/Alarm/index.js +24 -25
- package/lib/vtx-restaurant-modal/components/Alarm/index.js.map +1 -1
- package/lib/vtx-restaurant-modal/components/Basic/DetailList.js +4 -0
- package/lib/vtx-restaurant-modal/components/Basic/DetailList.js.map +1 -1
- package/lib/vtx-restaurant-modal/components/Basic/Info.js +6 -5
- package/lib/vtx-restaurant-modal/components/Basic/Info.js.map +1 -1
- package/lib/vtx-restaurant-modal/components/Basic/Summary.js +2 -2
- package/lib/vtx-restaurant-modal/components/Basic/Summary.js.map +1 -1
- package/lib/vtx-restaurant-modal/components/Basic/index.css +3 -54
- package/lib/vtx-restaurant-modal/components/Basic/index.js +32 -26
- package/lib/vtx-restaurant-modal/components/Basic/index.js.map +1 -1
- package/lib/vtx-restaurant-modal/components/Basic/index.less +8 -45
- package/lib/vtx-restaurant-modal/components/Collection/Charts.js +3 -1
- package/lib/vtx-restaurant-modal/components/Collection/Charts.js.map +1 -1
- package/lib/vtx-restaurant-modal/components/Collection/index.js +25 -8
- package/lib/vtx-restaurant-modal/components/Collection/index.js.map +1 -1
- package/lib/vtx-restaurant-modal/components/QdBasic/Info.js +87 -0
- package/lib/vtx-restaurant-modal/components/QdBasic/Info.js.map +1 -0
- package/lib/vtx-restaurant-modal/components/QdBasic/index.js +52 -0
- package/lib/vtx-restaurant-modal/components/QdBasic/index.js.map +1 -0
- package/lib/vtx-restaurant-modal/components/QdContract/ContactDetail.js +336 -0
- package/lib/vtx-restaurant-modal/components/QdContract/ContactDetail.js.map +1 -0
- package/lib/vtx-restaurant-modal/components/QdContract/index.css +9 -0
- package/lib/vtx-restaurant-modal/components/QdContract/index.js +122 -0
- package/lib/vtx-restaurant-modal/components/QdContract/index.js.map +1 -0
- package/lib/vtx-restaurant-modal/components/QdContract/index.less +9 -0
- package/lib/vtx-restaurant-modal/components/QdDetailInfo/index.js +55 -0
- package/lib/vtx-restaurant-modal/components/QdDetailInfo/index.js.map +1 -0
- package/lib/vtx-restaurant-modal/components/QdSign/index.js +106 -0
- package/lib/vtx-restaurant-modal/components/QdSign/index.js.map +1 -0
- package/lib/vtx-restaurant-modal/config.js +49 -12
- package/lib/vtx-restaurant-modal/config.js.map +1 -1
- package/lib/vtx-restaurant-modal/index.js +74 -16
- package/lib/vtx-restaurant-modal/index.js.map +1 -1
- package/lib/vtx-road-modal/style/index.css +6 -0
- package/lib/vtx-staff-modal/components/Equipment/index.js +1 -1
- package/lib/vtx-staff-modal/components/Equipment/index.js.map +1 -1
- package/lib/vtx-staff-modal/style/index.css +6 -0
- package/lib/vtx-throw-point-modal/api.js.map +1 -1
- package/lib/vtx-throw-point-modal/components/Alarm/FLZL.js.map +1 -1
- package/lib/vtx-throw-point-modal/components/Alarm/LDB.js.map +1 -1
- package/lib/vtx-wr-modal/api.js +0 -2
- package/lib/vtx-wr-modal/api.js.map +1 -1
- package/lib/vtx-wr-modal/index.js +13 -5
- package/lib/vtx-wr-modal/index.js.map +1 -1
- package/lib/vtx-wr-modal/style/index.css +6 -0
- package/lib/vtx-zg-modal/style/index.css +6 -0
- package/package.json +7 -6
package/lib/vtx-car-modal/api.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
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); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
@@ -9,13 +8,14 @@ var _tslib = require("tslib");
|
|
|
9
8
|
var _utils = require("@vtx/utils");
|
|
10
9
|
var _ahooks = require("ahooks");
|
|
11
10
|
var _lodash = require("lodash");
|
|
12
|
-
function
|
|
11
|
+
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); }
|
|
13
12
|
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
14
13
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
15
14
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
16
15
|
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
17
16
|
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
18
17
|
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; }
|
|
18
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
19
19
|
var ConfigService = exports.ConfigService = {
|
|
20
20
|
useConfig: function useConfig() {
|
|
21
21
|
var _useRequest = (0, _ahooks.useRequest)(function () {
|
|
@@ -133,8 +133,37 @@ var BaseService = exports.BaseService = {
|
|
|
133
133
|
}
|
|
134
134
|
return paramConfigsList;
|
|
135
135
|
},
|
|
136
|
-
|
|
136
|
+
useCCCarInfo: function useCCCarInfo(carId) {
|
|
137
137
|
var _useRequest6 = (0, _ahooks.useRequest)(function () {
|
|
138
|
+
return (0, _tslib.__awaiter)(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
139
|
+
var res;
|
|
140
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
141
|
+
while (1) switch (_context.prev = _context.next) {
|
|
142
|
+
case 0:
|
|
143
|
+
_context.next = 2;
|
|
144
|
+
return _utils.request.get("/cloud/cc-reborn/api/v101/carDeviceInfo/get", {
|
|
145
|
+
data: {
|
|
146
|
+
id: carId
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
case 2:
|
|
150
|
+
res = _context.sent;
|
|
151
|
+
return _context.abrupt("return", (res === null || res === void 0 ? void 0 : res.data) || {});
|
|
152
|
+
case 4:
|
|
153
|
+
case "end":
|
|
154
|
+
return _context.stop();
|
|
155
|
+
}
|
|
156
|
+
}, _callee);
|
|
157
|
+
}));
|
|
158
|
+
}, {
|
|
159
|
+
refreshDeps: [carId]
|
|
160
|
+
}),
|
|
161
|
+
_useRequest6$data = _useRequest6.data,
|
|
162
|
+
carInfo = _useRequest6$data === void 0 ? {} : _useRequest6$data;
|
|
163
|
+
return carInfo;
|
|
164
|
+
},
|
|
165
|
+
useDetailInfo: function useDetailInfo(carId) {
|
|
166
|
+
var _useRequest7 = (0, _ahooks.useRequest)(function () {
|
|
138
167
|
return _utils.request.get('/cloud/gps-reborn/car/np/getCarDetailById', {
|
|
139
168
|
data: {
|
|
140
169
|
id: carId,
|
|
@@ -142,30 +171,30 @@ var BaseService = exports.BaseService = {
|
|
|
142
171
|
}
|
|
143
172
|
});
|
|
144
173
|
}),
|
|
145
|
-
data =
|
|
174
|
+
data = _useRequest7.data;
|
|
146
175
|
return {
|
|
147
176
|
detail: data === null || data === void 0 ? void 0 : data.data
|
|
148
177
|
};
|
|
149
178
|
},
|
|
150
179
|
useServiceInfo: function useServiceInfo(carId) {
|
|
151
|
-
var
|
|
180
|
+
var _useRequest8 = (0, _ahooks.useRequest)(function () {
|
|
152
181
|
return _utils.request.get('/cloud/jcss-reborn/contract/carHistoryContract', {
|
|
153
182
|
data: {
|
|
154
183
|
id: carId
|
|
155
184
|
}
|
|
156
185
|
});
|
|
157
186
|
}),
|
|
158
|
-
data =
|
|
187
|
+
data = _useRequest8.data;
|
|
159
188
|
return {
|
|
160
189
|
serviceInfo: data === null || data === void 0 ? void 0 : data.data
|
|
161
190
|
};
|
|
162
191
|
},
|
|
163
192
|
useFieldConfig: function useFieldConfig() {
|
|
164
193
|
var _a;
|
|
165
|
-
var
|
|
194
|
+
var _useRequest9 = (0, _ahooks.useRequest)(function () {
|
|
166
195
|
return _utils.request.get('/cloud/gps-reborn/car/dataConfig/list');
|
|
167
196
|
}),
|
|
168
|
-
data =
|
|
197
|
+
data = _useRequest9.data;
|
|
169
198
|
return {
|
|
170
199
|
showFields: ((_a = data === null || data === void 0 ? void 0 : data.data) === null || _a === void 0 ? void 0 : _a.filter(function (ele) {
|
|
171
200
|
return ele.isVisible;
|
|
@@ -174,7 +203,7 @@ var BaseService = exports.BaseService = {
|
|
|
174
203
|
},
|
|
175
204
|
useDailySummaryJxh: function useDailySummaryJxh(carId, date, service) {
|
|
176
205
|
// 左侧今日排版、今日作业
|
|
177
|
-
var
|
|
206
|
+
var _useRequest10 = (0, _ahooks.useRequest)(function () {
|
|
178
207
|
return _utils.request.get("/cloud/".concat(service ? service : 'zyqs-reborn', "/api/kanban/kanbanWorkInfoAndShiftStatistics"), {
|
|
179
208
|
data: {
|
|
180
209
|
carId: carId,
|
|
@@ -185,14 +214,14 @@ var BaseService = exports.BaseService = {
|
|
|
185
214
|
ready: !!carId,
|
|
186
215
|
refreshDeps: [carId, date]
|
|
187
216
|
}),
|
|
188
|
-
dailySummaryJxh =
|
|
217
|
+
dailySummaryJxh = _useRequest10.data;
|
|
189
218
|
return {
|
|
190
219
|
dailySummaryJxh: (dailySummaryJxh === null || dailySummaryJxh === void 0 ? void 0 : dailySummaryJxh.data) || {}
|
|
191
220
|
};
|
|
192
221
|
},
|
|
193
222
|
useDailyCarRun: function useDailyCarRun(id, beginTime, endTime) {
|
|
194
223
|
//今日运行
|
|
195
|
-
var
|
|
224
|
+
var _useRequest11 = (0, _ahooks.useRequest)(function () {
|
|
196
225
|
return _utils.request.get('/cloud/gps-reborn/report/dailyCarRun/list', {
|
|
197
226
|
data: {
|
|
198
227
|
carIds: id,
|
|
@@ -203,14 +232,14 @@ var BaseService = exports.BaseService = {
|
|
|
203
232
|
}, {
|
|
204
233
|
refreshDeps: [id, beginTime, endTime]
|
|
205
234
|
}),
|
|
206
|
-
dailyCarRunRes =
|
|
235
|
+
dailyCarRunRes = _useRequest11.data;
|
|
207
236
|
return {
|
|
208
237
|
dailyCarRunRes: (dailyCarRunRes === null || dailyCarRunRes === void 0 ? void 0 : dailyCarRunRes.data) || []
|
|
209
238
|
};
|
|
210
239
|
},
|
|
211
240
|
useTodayRun: function useTodayRun(carId, beginTime, endTime, source) {
|
|
212
241
|
//今日运行
|
|
213
|
-
var
|
|
242
|
+
var _useRequest12 = (0, _ahooks.useRequest)(function () {
|
|
214
243
|
return _utils.request.get('/cloud/gps-reborn/car/detail/alarmSumWithDetail', {
|
|
215
244
|
data: {
|
|
216
245
|
carId: carId,
|
|
@@ -222,14 +251,14 @@ var BaseService = exports.BaseService = {
|
|
|
222
251
|
ready: source === 'GPS',
|
|
223
252
|
refreshDeps: [carId, beginTime, endTime, source]
|
|
224
253
|
}),
|
|
225
|
-
todayRunRes =
|
|
254
|
+
todayRunRes = _useRequest12.data;
|
|
226
255
|
return {
|
|
227
256
|
todayRunRes: (todayRunRes === null || todayRunRes === void 0 ? void 0 : todayRunRes.data) || {}
|
|
228
257
|
};
|
|
229
258
|
},
|
|
230
259
|
useTodayWorkJxh: function useTodayWorkJxh(carId, date, service) {
|
|
231
260
|
//今日作业-机械化
|
|
232
|
-
var
|
|
261
|
+
var _useRequest13 = (0, _ahooks.useRequest)(function () {
|
|
233
262
|
return _utils.request.get("/cloud/".concat(service ? service : 'zyqs-reborn', "/api/kanban/getRoadWorkInfoByCarId"), {
|
|
234
263
|
data: {
|
|
235
264
|
carId: carId,
|
|
@@ -239,14 +268,14 @@ var BaseService = exports.BaseService = {
|
|
|
239
268
|
}, {
|
|
240
269
|
refreshDeps: [carId, date]
|
|
241
270
|
}),
|
|
242
|
-
todayRunJxhRes =
|
|
271
|
+
todayRunJxhRes = _useRequest13.data;
|
|
243
272
|
return {
|
|
244
273
|
todayRunJxhRes: (todayRunJxhRes === null || todayRunJxhRes === void 0 ? void 0 : todayRunJxhRes.data) || []
|
|
245
274
|
};
|
|
246
275
|
},
|
|
247
276
|
useTodayWorkLjsy: function useTodayWorkLjsy(carId, dateValue) {
|
|
248
277
|
//今日作业-垃圾收运
|
|
249
|
-
var
|
|
278
|
+
var _useRequest14 = (0, _ahooks.useRequest)(function () {
|
|
250
279
|
return _utils.request.get('/cloud/ljsy-reborn/api/kanban/getWorkInfoByCarIdWithDetail', {
|
|
251
280
|
data: {
|
|
252
281
|
carId: carId,
|
|
@@ -256,32 +285,40 @@ var BaseService = exports.BaseService = {
|
|
|
256
285
|
}, {
|
|
257
286
|
refreshDeps: [carId, dateValue]
|
|
258
287
|
}),
|
|
259
|
-
todayRunLjsyRes =
|
|
288
|
+
todayRunLjsyRes = _useRequest14.data;
|
|
260
289
|
return {
|
|
261
290
|
todayRunLjsyRes: (todayRunLjsyRes === null || todayRunLjsyRes === void 0 ? void 0 : todayRunLjsyRes.data) || []
|
|
262
291
|
};
|
|
263
292
|
},
|
|
264
293
|
useCarCollectDay: function useCarCollectDay(_ref) {
|
|
265
294
|
var searchDay = _ref.searchDay,
|
|
266
|
-
carId = _ref.carId
|
|
267
|
-
|
|
295
|
+
carId = _ref.carId,
|
|
296
|
+
garbageType = _ref.garbageType;
|
|
297
|
+
var _useRequest15 = (0, _ahooks.useRequest)(function () {
|
|
268
298
|
return _utils.request.get('/cloud/cc-reborn/api/v101/gisOnePage/getCarCollectDay', {
|
|
269
299
|
data: {
|
|
270
300
|
carId: carId,
|
|
271
|
-
searchDay: searchDay
|
|
301
|
+
searchDay: searchDay,
|
|
302
|
+
garbageType: garbageType
|
|
272
303
|
}
|
|
273
304
|
});
|
|
274
305
|
}, {
|
|
275
306
|
refreshDeps: [carId, searchDay]
|
|
276
307
|
}),
|
|
277
|
-
|
|
278
|
-
data =
|
|
308
|
+
_useRequest15$data = _useRequest15.data,
|
|
309
|
+
data = _useRequest15$data === void 0 ? {} : _useRequest15$data;
|
|
279
310
|
return (data === null || data === void 0 ? void 0 : data.data) || {};
|
|
280
311
|
},
|
|
281
|
-
useTodayWorkCC: function useTodayWorkCC(carId, queryStartTime, queryEndTime) {
|
|
312
|
+
useTodayWorkCC: function useTodayWorkCC(carId, queryStartTime, queryEndTime, garbageType) {
|
|
282
313
|
//今日作业-餐厨
|
|
283
|
-
var
|
|
284
|
-
return _utils.request.get('/cloud/cc-reborn/api/v101/
|
|
314
|
+
var _useRequest16 = (0, _ahooks.useRequest)(function () {
|
|
315
|
+
return garbageType === 'fqyz' ? _utils.request.get('/cloud/cc-reborn/api/v101/oilWeight/list', {
|
|
316
|
+
data: {
|
|
317
|
+
carId: carId,
|
|
318
|
+
weightTimeStart: queryStartTime,
|
|
319
|
+
weightTimeEnd: queryEndTime
|
|
320
|
+
}
|
|
321
|
+
}) : _utils.request.get('/cloud/cc-reborn/api/v101/rtCarDataDetail/list', {
|
|
285
322
|
data: {
|
|
286
323
|
carId: carId,
|
|
287
324
|
queryStartTime: queryStartTime,
|
|
@@ -291,14 +328,14 @@ var BaseService = exports.BaseService = {
|
|
|
291
328
|
}, {
|
|
292
329
|
refreshDeps: [carId, queryStartTime, queryEndTime]
|
|
293
330
|
}),
|
|
294
|
-
todayRunCCRes =
|
|
331
|
+
todayRunCCRes = _useRequest16.data;
|
|
295
332
|
return {
|
|
296
333
|
todayRunCCRes: (todayRunCCRes === null || todayRunCCRes === void 0 ? void 0 : todayRunCCRes.data) || []
|
|
297
334
|
};
|
|
298
335
|
},
|
|
299
336
|
useWorkSummaryJxh: function useWorkSummaryJxh(carId, startDate, endDate, service) {
|
|
300
337
|
//机械化作业统计
|
|
301
|
-
var
|
|
338
|
+
var _useRequest17 = (0, _ahooks.useRequest)(function () {
|
|
302
339
|
return _utils.request.get("/cloud/".concat(service ? service : 'zyqs-reborn', "/api/kanban/workInfoStatisticsByCarId"), {
|
|
303
340
|
data: {
|
|
304
341
|
carId: carId,
|
|
@@ -310,14 +347,14 @@ var BaseService = exports.BaseService = {
|
|
|
310
347
|
}, {
|
|
311
348
|
refreshDeps: [carId, startDate, endDate]
|
|
312
349
|
}),
|
|
313
|
-
workSummaryJxhRes =
|
|
350
|
+
workSummaryJxhRes = _useRequest17.data;
|
|
314
351
|
return {
|
|
315
352
|
workSummaryJxhRes: (workSummaryJxhRes === null || workSummaryJxhRes === void 0 ? void 0 : workSummaryJxhRes.data) || {}
|
|
316
353
|
};
|
|
317
354
|
},
|
|
318
355
|
useWorkAnaJxh: function useWorkAnaJxh(carId, startDate, endDate, service) {
|
|
319
356
|
//机械化作业分析
|
|
320
|
-
var
|
|
357
|
+
var _useRequest18 = (0, _ahooks.useRequest)(function () {
|
|
321
358
|
return _utils.request.get("/cloud/".concat(service ? service : 'zyqs-reborn', "/api/kanban/workInfoAnalysisByCarId"), {
|
|
322
359
|
data: {
|
|
323
360
|
carId: carId,
|
|
@@ -328,14 +365,14 @@ var BaseService = exports.BaseService = {
|
|
|
328
365
|
}, {
|
|
329
366
|
refreshDeps: [carId, startDate, endDate]
|
|
330
367
|
}),
|
|
331
|
-
workAnaJxhRes =
|
|
368
|
+
workAnaJxhRes = _useRequest18.data;
|
|
332
369
|
return {
|
|
333
370
|
workAnaJxhRes: (workAnaJxhRes === null || workAnaJxhRes === void 0 ? void 0 : workAnaJxhRes.data) || []
|
|
334
371
|
};
|
|
335
372
|
},
|
|
336
373
|
useWorkAnaLjsy: function useWorkAnaLjsy(carId, startDate, endDate, isReleate) {
|
|
337
374
|
//垃圾收运-作业分析
|
|
338
|
-
var
|
|
375
|
+
var _useRequest19 = (0, _ahooks.useRequest)(function () {
|
|
339
376
|
return _utils.request.get('/cloud/ljsy-reborn/api/kanban/getWorkInfoAnalysisByCarId', {
|
|
340
377
|
data: {
|
|
341
378
|
carId: carId,
|
|
@@ -347,14 +384,14 @@ var BaseService = exports.BaseService = {
|
|
|
347
384
|
ready: isReleate,
|
|
348
385
|
refreshDeps: [carId, startDate, endDate]
|
|
349
386
|
}),
|
|
350
|
-
workAnaLjsyRes =
|
|
387
|
+
workAnaLjsyRes = _useRequest19.data;
|
|
351
388
|
return {
|
|
352
389
|
workAnaLjsyRes: (workAnaLjsyRes === null || workAnaLjsyRes === void 0 ? void 0 : workAnaLjsyRes.data) || {}
|
|
353
390
|
};
|
|
354
391
|
},
|
|
355
392
|
useWorkAnaCC: function useWorkAnaCC(carId, startDate, endDate, isReleate) {
|
|
356
393
|
//垃圾收运-作业分析
|
|
357
|
-
var
|
|
394
|
+
var _useRequest20 = (0, _ahooks.useRequest)(function () {
|
|
358
395
|
return _utils.request.get('/cloud/cc-reborn/api/v101/gisOnePage/carCollectSummaryLine', {
|
|
359
396
|
data: {
|
|
360
397
|
carId: carId,
|
|
@@ -366,7 +403,7 @@ var BaseService = exports.BaseService = {
|
|
|
366
403
|
ready: isReleate,
|
|
367
404
|
refreshDeps: [carId, startDate, endDate]
|
|
368
405
|
}),
|
|
369
|
-
workAnaLjsyRes =
|
|
406
|
+
workAnaLjsyRes = _useRequest20.data;
|
|
370
407
|
return {
|
|
371
408
|
workAnaLjsyRes: (workAnaLjsyRes === null || workAnaLjsyRes === void 0 ? void 0 : workAnaLjsyRes.data) || {}
|
|
372
409
|
};
|
|
@@ -374,7 +411,7 @@ var BaseService = exports.BaseService = {
|
|
|
374
411
|
};
|
|
375
412
|
var AlarmService = exports.AlarmService = {
|
|
376
413
|
useAlarmType: function useAlarmType(carIds, startTime, endTime, source) {
|
|
377
|
-
var
|
|
414
|
+
var _useRequest21 = (0, _ahooks.useRequest)(function () {
|
|
378
415
|
return _utils.request.get('/cloud/gps-reborn/alarm/record/statisticsPage', {
|
|
379
416
|
data: {
|
|
380
417
|
carIds: carIds,
|
|
@@ -386,7 +423,7 @@ var AlarmService = exports.AlarmService = {
|
|
|
386
423
|
ready: source === 'GPS',
|
|
387
424
|
refreshDeps: [carIds, startTime, endTime, source]
|
|
388
425
|
}),
|
|
389
|
-
alarmTypesRes =
|
|
426
|
+
alarmTypesRes = _useRequest21.data;
|
|
390
427
|
return {
|
|
391
428
|
alarmTypes: (alarmTypesRes === null || alarmTypesRes === void 0 ? void 0 : alarmTypesRes.data) || {
|
|
392
429
|
totalCount: 0,
|
|
@@ -395,7 +432,7 @@ var AlarmService = exports.AlarmService = {
|
|
|
395
432
|
};
|
|
396
433
|
},
|
|
397
434
|
useAlarmTypeWork: function useAlarmTypeWork(carIds, startTime, endTime, source) {
|
|
398
|
-
var
|
|
435
|
+
var _useRequest22 = (0, _ahooks.useRequest)(function () {
|
|
399
436
|
return _utils.request.get('/cloud/ljsy-reborn/api/task/alarm/alarmSum', {
|
|
400
437
|
data: {
|
|
401
438
|
carIds: carIds,
|
|
@@ -407,7 +444,7 @@ var AlarmService = exports.AlarmService = {
|
|
|
407
444
|
ready: source === 'WORK',
|
|
408
445
|
refreshDeps: [carIds, startTime, endTime, source]
|
|
409
446
|
}),
|
|
410
|
-
data =
|
|
447
|
+
data = _useRequest22.data;
|
|
411
448
|
return {
|
|
412
449
|
alarmTypesWork: (data === null || data === void 0 ? void 0 : data.data) || {
|
|
413
450
|
total: 0,
|
|
@@ -417,7 +454,7 @@ var AlarmService = exports.AlarmService = {
|
|
|
417
454
|
};
|
|
418
455
|
},
|
|
419
456
|
useAlarmList: function useAlarmList(carCode, alarmStrategyName, startTime, endTime, page) {
|
|
420
|
-
var
|
|
457
|
+
var _useRequest23 = (0, _ahooks.useRequest)(function () {
|
|
421
458
|
return _utils.request.get('/cloud/gps-reborn/alarm/record/pageList', {
|
|
422
459
|
data: {
|
|
423
460
|
carCode: carCode,
|
|
@@ -432,13 +469,13 @@ var AlarmService = exports.AlarmService = {
|
|
|
432
469
|
ready: !!carCode,
|
|
433
470
|
refreshDeps: [carCode, alarmStrategyName, startTime, endTime, page]
|
|
434
471
|
}),
|
|
435
|
-
recordRes =
|
|
472
|
+
recordRes = _useRequest23.data;
|
|
436
473
|
return {
|
|
437
474
|
alarmRecord: (recordRes === null || recordRes === void 0 ? void 0 : recordRes.data) || {}
|
|
438
475
|
};
|
|
439
476
|
},
|
|
440
477
|
useAlarmListWork: function useAlarmListWork(carIds, alarmTypeCode, startDate, endDate, page) {
|
|
441
|
-
var
|
|
478
|
+
var _useRequest24 = (0, _ahooks.useRequest)(function () {
|
|
442
479
|
return _utils.request.get('/cloud/ljsy-reborn/api/task/alarm/alarmPage', {
|
|
443
480
|
data: {
|
|
444
481
|
carIds: carIds,
|
|
@@ -453,7 +490,7 @@ var AlarmService = exports.AlarmService = {
|
|
|
453
490
|
}, {
|
|
454
491
|
refreshDeps: [carIds, alarmTypeCode, startDate, endDate, page]
|
|
455
492
|
}),
|
|
456
|
-
recordRes =
|
|
493
|
+
recordRes = _useRequest24.data;
|
|
457
494
|
return {
|
|
458
495
|
alarmRecordWork: (recordRes === null || recordRes === void 0 ? void 0 : recordRes.data) || {}
|
|
459
496
|
};
|
|
@@ -461,7 +498,7 @@ var AlarmService = exports.AlarmService = {
|
|
|
461
498
|
useAlarmTodayRun: function useAlarmTodayRun(carId, beginTime, endTime, source) {
|
|
462
499
|
var _a;
|
|
463
500
|
//今日运行
|
|
464
|
-
var
|
|
501
|
+
var _useRequest25 = (0, _ahooks.useRequest)(function () {
|
|
465
502
|
return _utils.request.get('/cloud/ljsy-reborn/api/task/alarm/alarmSumByTypeAndDay', {
|
|
466
503
|
data: {
|
|
467
504
|
carId: carId,
|
|
@@ -473,7 +510,7 @@ var AlarmService = exports.AlarmService = {
|
|
|
473
510
|
ready: source === 'WORK',
|
|
474
511
|
refreshDeps: [carId, beginTime, endTime, source]
|
|
475
512
|
}),
|
|
476
|
-
data =
|
|
513
|
+
data = _useRequest25.data;
|
|
477
514
|
var pieData = [];
|
|
478
515
|
var lineData = {
|
|
479
516
|
legends: [],
|
|
@@ -511,19 +548,19 @@ var AlarmService = exports.AlarmService = {
|
|
|
511
548
|
var WorkServicve = exports.WorkServicve = {
|
|
512
549
|
useWorkTypeJxh: function useWorkTypeJxh(service) {
|
|
513
550
|
//机械化作业类型
|
|
514
|
-
var
|
|
551
|
+
var _useRequest26 = (0, _ahooks.useRequest)(function () {
|
|
515
552
|
return _utils.request.get("/cloud/".concat(service ? service : 'zyqs-reborn', "/api/v101/common/listWorkType"), {
|
|
516
553
|
data: {}
|
|
517
554
|
});
|
|
518
555
|
}),
|
|
519
|
-
workTypeRes =
|
|
556
|
+
workTypeRes = _useRequest26.data;
|
|
520
557
|
return {
|
|
521
558
|
workTypeRes: (workTypeRes === null || workTypeRes === void 0 ? void 0 : workTypeRes.data) || []
|
|
522
559
|
};
|
|
523
560
|
},
|
|
524
561
|
useRecordJxh: function useRecordJxh(carId, workTypeCodes, startDate, endDate, pageNo, order, service) {
|
|
525
562
|
//机械化
|
|
526
|
-
var
|
|
563
|
+
var _useRequest27 = (0, _ahooks.useRequest)(function () {
|
|
527
564
|
return _utils.request.get("/cloud/".concat(service ? service : 'zyqs-reborn', "/api/v1.5/noshift/page"), {
|
|
528
565
|
data: {
|
|
529
566
|
carId: carId,
|
|
@@ -534,20 +571,21 @@ var WorkServicve = exports.WorkServicve = {
|
|
|
534
571
|
pageNo: pageNo,
|
|
535
572
|
pageSize: 10,
|
|
536
573
|
sort: 'workDate',
|
|
537
|
-
order: order
|
|
574
|
+
order: order,
|
|
575
|
+
processBindRule: true
|
|
538
576
|
}
|
|
539
577
|
});
|
|
540
578
|
}, {
|
|
541
579
|
refreshDeps: [carId, workTypeCodes, startDate, endDate, pageNo, order]
|
|
542
580
|
}),
|
|
543
|
-
recordJxhRes =
|
|
581
|
+
recordJxhRes = _useRequest27.data;
|
|
544
582
|
return {
|
|
545
583
|
recordJxhRes: (recordJxhRes === null || recordJxhRes === void 0 ? void 0 : recordJxhRes.data) || []
|
|
546
584
|
};
|
|
547
585
|
},
|
|
548
586
|
useWorkSummaryLjsy: function useWorkSummaryLjsy(carId, startDate, endDate) {
|
|
549
587
|
//垃圾收运头部统计
|
|
550
|
-
var
|
|
588
|
+
var _useRequest28 = (0, _ahooks.useRequest)(function () {
|
|
551
589
|
return _utils.request.get('/cloud/ljsy-reborn/api/kanban/getWorkInfoSummaryByCarId', {
|
|
552
590
|
data: {
|
|
553
591
|
carId: carId,
|
|
@@ -558,14 +596,14 @@ var WorkServicve = exports.WorkServicve = {
|
|
|
558
596
|
}, {
|
|
559
597
|
refreshDeps: [carId, startDate, endDate]
|
|
560
598
|
}),
|
|
561
|
-
summaryLjsy =
|
|
599
|
+
summaryLjsy = _useRequest28.data;
|
|
562
600
|
return {
|
|
563
601
|
summaryLjsy: (summaryLjsy === null || summaryLjsy === void 0 ? void 0 : summaryLjsy.data) || []
|
|
564
602
|
};
|
|
565
603
|
},
|
|
566
604
|
useRecordLjsy: function useRecordLjsy(carIds, startTime, endTime, page, sort) {
|
|
567
605
|
//机械化
|
|
568
|
-
var
|
|
606
|
+
var _useRequest29 = (0, _ahooks.useRequest)(function () {
|
|
569
607
|
return _utils.request.get('/cloud/ljsy-reborn/api/collect/record/detail/page', {
|
|
570
608
|
data: {
|
|
571
609
|
carIds: carIds,
|
|
@@ -579,7 +617,7 @@ var WorkServicve = exports.WorkServicve = {
|
|
|
579
617
|
}, {
|
|
580
618
|
refreshDeps: [carIds, startTime, endTime, page, sort]
|
|
581
619
|
}),
|
|
582
|
-
recordLjsyRes =
|
|
620
|
+
recordLjsyRes = _useRequest29.data;
|
|
583
621
|
return {
|
|
584
622
|
recordLjsyRes: (recordLjsyRes === null || recordLjsyRes === void 0 ? void 0 : recordLjsyRes.data) || []
|
|
585
623
|
};
|
|
@@ -589,7 +627,7 @@ var WorkServicve = exports.WorkServicve = {
|
|
|
589
627
|
var OilService = exports.OilService = {
|
|
590
628
|
useHasOil: function useHasOil(carId) {
|
|
591
629
|
var _a;
|
|
592
|
-
var
|
|
630
|
+
var _useRequest30 = (0, _ahooks.useRequest)(function () {
|
|
593
631
|
return _utils.request.get('/cloud/gps-reborn/car/config/getById', {
|
|
594
632
|
data: {
|
|
595
633
|
id: carId
|
|
@@ -598,13 +636,13 @@ var OilService = exports.OilService = {
|
|
|
598
636
|
}, {
|
|
599
637
|
refreshDeps: [carId]
|
|
600
638
|
}),
|
|
601
|
-
data =
|
|
639
|
+
data = _useRequest30.data;
|
|
602
640
|
return {
|
|
603
641
|
beenOilStatus: (_a = data === null || data === void 0 ? void 0 : data.data) === null || _a === void 0 ? void 0 : _a.beenOilStatus
|
|
604
642
|
};
|
|
605
643
|
},
|
|
606
644
|
useOilLine: function useOilLine(carId, startTime, endTime) {
|
|
607
|
-
var
|
|
645
|
+
var _useRequest31 = (0, _ahooks.useRequest)(function () {
|
|
608
646
|
return _utils.request.get('/cloud/oil-reborn/api/oilUse/oilLine.smvc', {
|
|
609
647
|
data: {
|
|
610
648
|
carId: carId,
|
|
@@ -615,13 +653,13 @@ var OilService = exports.OilService = {
|
|
|
615
653
|
}, {
|
|
616
654
|
refreshDeps: [carId, startTime, endTime]
|
|
617
655
|
}),
|
|
618
|
-
oilLineRes =
|
|
656
|
+
oilLineRes = _useRequest31.data;
|
|
619
657
|
return {
|
|
620
658
|
oilLineRes: (oilLineRes === null || oilLineRes === void 0 ? void 0 : oilLineRes.data) || []
|
|
621
659
|
};
|
|
622
660
|
},
|
|
623
661
|
useSummary: function useSummary(carId, startTime, endTime) {
|
|
624
|
-
var
|
|
662
|
+
var _useRequest32 = (0, _ahooks.useRequest)(function () {
|
|
625
663
|
return _utils.request.get('/cloud/oil-reborn/api/oilUse/summary.smvc', {
|
|
626
664
|
data: {
|
|
627
665
|
carId: carId,
|
|
@@ -632,13 +670,13 @@ var OilService = exports.OilService = {
|
|
|
632
670
|
}, {
|
|
633
671
|
refreshDeps: [carId, startTime, endTime]
|
|
634
672
|
}),
|
|
635
|
-
summaryRes =
|
|
673
|
+
summaryRes = _useRequest32.data;
|
|
636
674
|
return {
|
|
637
675
|
summaryRes: (summaryRes === null || summaryRes === void 0 ? void 0 : summaryRes.data) || []
|
|
638
676
|
};
|
|
639
677
|
},
|
|
640
678
|
useRecord: function useRecord(carId, startTime, endTime, page, sort) {
|
|
641
|
-
var
|
|
679
|
+
var _useRequest33 = (0, _ahooks.useRequest)(function () {
|
|
642
680
|
return _utils.request.get('/cloud/oil-reborn/api/oilUse/simplePage.smvc', {
|
|
643
681
|
data: {
|
|
644
682
|
carId: carId,
|
|
@@ -653,7 +691,7 @@ var OilService = exports.OilService = {
|
|
|
653
691
|
}, {
|
|
654
692
|
refreshDeps: [carId, startTime, endTime, page, sort]
|
|
655
693
|
}),
|
|
656
|
-
recordRes =
|
|
694
|
+
recordRes = _useRequest33.data;
|
|
657
695
|
return {
|
|
658
696
|
recordRes: (recordRes === null || recordRes === void 0 ? void 0 : recordRes.data) || []
|
|
659
697
|
};
|
|
@@ -662,7 +700,7 @@ var OilService = exports.OilService = {
|
|
|
662
700
|
//水耗
|
|
663
701
|
var WaterService = exports.WaterService = {
|
|
664
702
|
useSummary: function useSummary(carId, startTime, endTime) {
|
|
665
|
-
var
|
|
703
|
+
var _useRequest34 = (0, _ahooks.useRequest)(function () {
|
|
666
704
|
return _utils.request.get('/cloud/water-reborn/api/v101/water/waterMeasure/summary', {
|
|
667
705
|
data: {
|
|
668
706
|
hasWaterStatus: true,
|
|
@@ -674,13 +712,13 @@ var WaterService = exports.WaterService = {
|
|
|
674
712
|
}, {
|
|
675
713
|
refreshDeps: [carId, startTime, endTime]
|
|
676
714
|
}),
|
|
677
|
-
summaryRes =
|
|
715
|
+
summaryRes = _useRequest34.data;
|
|
678
716
|
return {
|
|
679
717
|
summaryRes: (summaryRes === null || summaryRes === void 0 ? void 0 : summaryRes.data) || []
|
|
680
718
|
};
|
|
681
719
|
},
|
|
682
720
|
useRecord: function useRecord(carId, startDate, endDate, order) {
|
|
683
|
-
var
|
|
721
|
+
var _useRequest35 = (0, _ahooks.useRequest)(function () {
|
|
684
722
|
return _utils.request.get('/cloud/water-reborn/api/v101/water/waterMeasure/queryList', {
|
|
685
723
|
data: {
|
|
686
724
|
hasWaterStatus: true,
|
|
@@ -694,7 +732,7 @@ var WaterService = exports.WaterService = {
|
|
|
694
732
|
}, {
|
|
695
733
|
refreshDeps: [carId, startDate, endDate, order]
|
|
696
734
|
}),
|
|
697
|
-
recordRes =
|
|
735
|
+
recordRes = _useRequest35.data;
|
|
698
736
|
return {
|
|
699
737
|
recordRes: (recordRes === null || recordRes === void 0 ? void 0 : recordRes.data) || []
|
|
700
738
|
};
|
|
@@ -703,7 +741,7 @@ var WaterService = exports.WaterService = {
|
|
|
703
741
|
// 维保
|
|
704
742
|
var MaintenanceService = exports.MaintenanceService = {
|
|
705
743
|
useMaintenance: function useMaintenance(carId) {
|
|
706
|
-
var
|
|
744
|
+
var _useRequest36 = (0, _ahooks.useRequest)(function () {
|
|
707
745
|
return _utils.request.get('/cloud/clwb/api/v101/carComprehensiveBoard/carWbAnalyse', {
|
|
708
746
|
data: {
|
|
709
747
|
carId: carId
|
|
@@ -712,7 +750,7 @@ var MaintenanceService = exports.MaintenanceService = {
|
|
|
712
750
|
}, {
|
|
713
751
|
refreshDeps: [carId]
|
|
714
752
|
}),
|
|
715
|
-
maintenanceRes =
|
|
753
|
+
maintenanceRes = _useRequest36.data;
|
|
716
754
|
return {
|
|
717
755
|
maintenanceRes: (maintenanceRes === null || maintenanceRes === void 0 ? void 0 : maintenanceRes.data) || []
|
|
718
756
|
};
|
|
@@ -724,13 +762,13 @@ var CollectionService = exports.CollectionService = {
|
|
|
724
762
|
var carId = _ref2.carId,
|
|
725
763
|
startDay = _ref2.startDay,
|
|
726
764
|
endDay = _ref2.endDay;
|
|
727
|
-
var
|
|
728
|
-
return (0, _tslib.__awaiter)(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
765
|
+
var _useRequest37 = (0, _ahooks.useRequest)(function () {
|
|
766
|
+
return (0, _tslib.__awaiter)(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
729
767
|
var res;
|
|
730
|
-
return _regeneratorRuntime().wrap(function
|
|
731
|
-
while (1) switch (
|
|
768
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
769
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
732
770
|
case 0:
|
|
733
|
-
|
|
771
|
+
_context2.next = 2;
|
|
734
772
|
return _utils.request.get('/cloud/cc-reborn/api/v101/collectPeriod/getPeriodListByCarId', {
|
|
735
773
|
data: {
|
|
736
774
|
carId: carId,
|
|
@@ -739,19 +777,19 @@ var CollectionService = exports.CollectionService = {
|
|
|
739
777
|
}
|
|
740
778
|
});
|
|
741
779
|
case 2:
|
|
742
|
-
res =
|
|
743
|
-
return
|
|
780
|
+
res = _context2.sent;
|
|
781
|
+
return _context2.abrupt("return", (res === null || res === void 0 ? void 0 : res.data) || []);
|
|
744
782
|
case 4:
|
|
745
783
|
case "end":
|
|
746
|
-
return
|
|
784
|
+
return _context2.stop();
|
|
747
785
|
}
|
|
748
|
-
},
|
|
786
|
+
}, _callee2);
|
|
749
787
|
}));
|
|
750
788
|
}, {
|
|
751
789
|
refreshDeps: [carId, startDay, endDay],
|
|
752
790
|
ready: !!carId
|
|
753
791
|
}),
|
|
754
|
-
data =
|
|
792
|
+
data = _useRequest37.data;
|
|
755
793
|
return data || [];
|
|
756
794
|
},
|
|
757
795
|
// 收运记录
|
|
@@ -759,13 +797,13 @@ var CollectionService = exports.CollectionService = {
|
|
|
759
797
|
var id = _ref3.id,
|
|
760
798
|
startTime = _ref3.startTime,
|
|
761
799
|
endTime = _ref3.endTime;
|
|
762
|
-
var
|
|
763
|
-
return (0, _tslib.__awaiter)(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
800
|
+
var _useRequest38 = (0, _ahooks.useRequest)(function () {
|
|
801
|
+
return (0, _tslib.__awaiter)(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
764
802
|
var res;
|
|
765
|
-
return _regeneratorRuntime().wrap(function
|
|
766
|
-
while (1) switch (
|
|
803
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
804
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
767
805
|
case 0:
|
|
768
|
-
|
|
806
|
+
_context3.next = 2;
|
|
769
807
|
return _utils.request.get('/cloud/cc-reborn/api/v101/rtCarDataDetail/list', {
|
|
770
808
|
data: {
|
|
771
809
|
carId: id,
|
|
@@ -774,19 +812,19 @@ var CollectionService = exports.CollectionService = {
|
|
|
774
812
|
}
|
|
775
813
|
});
|
|
776
814
|
case 2:
|
|
777
|
-
res =
|
|
778
|
-
return
|
|
815
|
+
res = _context3.sent;
|
|
816
|
+
return _context3.abrupt("return", (res === null || res === void 0 ? void 0 : res.data) || []);
|
|
779
817
|
case 4:
|
|
780
818
|
case "end":
|
|
781
|
-
return
|
|
819
|
+
return _context3.stop();
|
|
782
820
|
}
|
|
783
|
-
},
|
|
821
|
+
}, _callee3);
|
|
784
822
|
}));
|
|
785
823
|
}, {
|
|
786
824
|
refreshDeps: [id, startTime, endTime],
|
|
787
825
|
ready: !!id
|
|
788
826
|
}),
|
|
789
|
-
data =
|
|
827
|
+
data = _useRequest38.data;
|
|
790
828
|
return data;
|
|
791
829
|
}
|
|
792
830
|
};
|