@vtx/modals2 6.0.0-beta.0 → 6.0.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/_components/index.js +1 -0
- package/lib/_components/vm-appraisal-info/api.js +55 -0
- package/lib/_components/vm-appraisal-info/imgs/count.png +0 -0
- package/lib/_components/vm-appraisal-info/imgs/count_light.png +0 -0
- package/lib/_components/vm-appraisal-info/imgs/subtract.png +0 -0
- package/lib/_components/vm-appraisal-info/imgs/subtract_light.png +0 -0
- package/lib/_components/vm-appraisal-info/index.js +230 -0
- package/lib/_components/vm-appraisal-info/index.less +7 -0
- package/lib/_components/vm-calendar/index.js +3 -4
- package/lib/_components/vm-factor/index.js +2 -1
- package/lib/_components/vm-filter/index.js +8 -8
- package/lib/_components/vm-filter/style/index.less +7 -11
- package/lib/_components/vm-info-collection/index.js +3 -2
- package/lib/_components/vm-line-charts/index.js +4 -1
- package/lib/_components/vm-progress/index.js +2 -1
- package/lib/_components/vm-repair-maintain/index.js +34 -2
- package/lib/_components/vm-table/index.js +3 -3
- package/lib/_components/vm-tag/index.js +2 -1
- package/lib/_components/vm-title/index.js +2 -1
- package/lib/_components/vm-video/HistoryGrid.js +53 -3
- package/lib/_components/vm-video/RealtimeGrid.js +24 -3
- package/lib/_components/vm-video/index.js +99 -37
- package/lib/_components/vm-video/index.less +18 -14
- package/lib/_components/vm-wrapper/index.js +1 -1
- package/lib/_components/vm-wrapper/style/index.less +4 -2
- package/lib/_hooks/useGetChannels.js +20 -6
- package/lib/_service/index.js +7 -33
- package/lib/_util/http.js +32 -5
- package/lib/_util/index.js +6 -5
- package/lib/hooks/useTranslation.js +21 -23
- package/lib/locales/en.json +140 -1
- package/lib/locales/zh-CN.json +142 -3
- package/lib/vtx-base-modal/Tabs/index.js +2 -1
- package/lib/vtx-base-modal/index.js +2 -1
- package/lib/vtx-car-modal/api.js +415 -25
- package/lib/vtx-car-modal/components/Info/index.js +1 -1
- package/lib/vtx-car-modal/content/Common/EleUse/index.js +218 -0
- package/lib/vtx-car-modal/content/Common/EleUse/index.less +19 -0
- package/lib/vtx-car-modal/content/Common/OilUse/index.js +230 -0
- package/lib/vtx-car-modal/content/Common/OilUse/index.less +19 -0
- package/lib/vtx-car-modal/content/Common/OperationAnalysis/index.js +376 -0
- package/lib/vtx-car-modal/content/Common/OperationAnalysis/index.less +169 -0
- package/lib/vtx-car-modal/content/Common/WaterUse/index.js +201 -0
- package/lib/vtx-car-modal/content/Common/WaterUse/index.less +19 -0
- package/lib/vtx-car-modal/content/Common/index.js +9 -1
- package/lib/vtx-car-modal/content/Ljsy/WorkRecord/Detail.js +2 -1
- package/lib/vtx-car-modal/imgs/czb_bg.png +0 -0
- package/lib/vtx-car-modal/imgs/czb_bg_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/bglyh.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/bglyh_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/cdcs.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/cdcs_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/cdje.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/cdje_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/cdpc.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/cdpc_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/dccdje.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/dccdje_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jscs.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jscs_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jsje.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jsje_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jsl.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jsl_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jspc.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jspc_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jycs.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jycs_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jyje.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jyje_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jyl.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jyl_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/ljwbcs.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/ljwbcs_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/njzfy.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/njzfy_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/qzxze.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/qzxze_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/sgcs.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/sgcs_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/sgfy.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/sgfy_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/syxze.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/syxze_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/wbzfy.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/wbzfy_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/wzcs.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/wzcs_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/wzkf.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/wzkf_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/wzkfee.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/wzkfee_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/xslc.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/xslc_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/ydcb.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/ydcb_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/yhcb.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/yhcb_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/yscb.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/yscb_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/zjl.png +0 -0
- package/lib/vtx-car-modal/imgs/zjl_dark.png +0 -0
- package/lib/vtx-car-modal/index.js +31 -9
- package/lib/vtx-cc-cp-modal/components/Calendar/index.js +3 -3
- package/lib/vtx-cp-modal/components/BaseInfo/CarWork.js +2 -5
- package/lib/vtx-cp-modal/components/BaseInfo/TodayWork.js +7 -1
- package/lib/vtx-cp-modal/components/ExeceptionInfo/AlarmRecord.js +8 -4
- package/lib/vtx-cp-modal/components/SyInfo/Ljcsl.js +2 -2
- package/lib/vtx-cp-modal/index.js +12 -12
- package/lib/vtx-default-modal/index.js +7 -6
- package/lib/vtx-df-modal/components/BaseInfo/Jczbqs.js +2 -2
- package/lib/vtx-df-modal/components/BaseInfoZdReborn/Jczbqs.js +2 -2
- package/lib/vtx-df-modal/components/WorkCondition/Table.js +2 -2
- package/lib/vtx-df-modal/index.js +7 -15
- package/lib/vtx-kh-modal/components/Record/index.js +1 -205
- package/lib/vtx-restaurant-modal/components/Calendar/index.js +3 -3
- package/lib/vtx-restaurant-modal/components/SignAndContract/ContactDetail.js +50 -33
- package/lib/vtx-restaurant-modal/components/SignAndContract/index.js +3 -3
- package/lib/vtx-road-modal/components/BaseInfo/Work.js +9 -1
- package/lib/vtx-road-modal/components/LaneBaseInfo/Work.js +8 -1
- package/lib/vtx-road-modal/index.js +6 -3
- package/lib/vtx-road-modal/utils/url.js +12 -0
- package/lib/vtx-shxq-modal/api.js +2 -2
- package/lib/vtx-shxq-modal/components/ThrowCalendar/List.js +2 -2
- package/lib/vtx-shxq-modal/index.js +21 -4
- package/lib/vtx-staff-modal/components/AlarmInfo/Charts.js +4 -1
- package/lib/vtx-tfd-modal/components/BaseInfo/Jczbqs.js +2 -2
- package/lib/vtx-wr-modal/index.js +28 -7
- package/lib/vtx-zf-modal/components/CkEditorCustom/view.js +4 -1
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/editableDiv/FormView.js +5 -4
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/editableDiv/index.js +10 -5
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/input/FormView.js +7 -6
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/input/date.js +10 -5
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/input/index.js +10 -5
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/radio/FormView.js +6 -5
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/radio/checkbox.js +10 -5
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/radio/index.js +10 -5
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/sign/FormView.js +7 -6
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/sign/index.js +12 -7
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/textarea/FormView.js +6 -5
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/textarea/index.js +10 -5
- package/lib/vtx-zzz-modal/index.js +28 -22
- package/package.json +6 -6
package/lib/vtx-car-modal/api.js
CHANGED
|
@@ -1144,6 +1144,396 @@ export var MaintenanceService = {
|
|
|
1144
1144
|
return {
|
|
1145
1145
|
maintenanceRes: (maintenanceRes === null || maintenanceRes === void 0 ? void 0 : maintenanceRes.data) || []
|
|
1146
1146
|
};
|
|
1147
|
+
},
|
|
1148
|
+
useWaterSummary: function useWaterSummary(carId, startDate, endDate) {
|
|
1149
|
+
var _useRequest49 = useRequest(function () {
|
|
1150
|
+
return http.get("".concat(prefix, "/cloud/clwb/api/v101/carPopup/waterSummary"), {
|
|
1151
|
+
body: {
|
|
1152
|
+
carId: carId,
|
|
1153
|
+
startDate: startDate,
|
|
1154
|
+
endDate: endDate
|
|
1155
|
+
}
|
|
1156
|
+
});
|
|
1157
|
+
}, {
|
|
1158
|
+
refreshDeps: [carId, startDate, endDate]
|
|
1159
|
+
}),
|
|
1160
|
+
waterSummary = _useRequest49.data,
|
|
1161
|
+
loading = _useRequest49.loading;
|
|
1162
|
+
return {
|
|
1163
|
+
loading: loading,
|
|
1164
|
+
waterSummary: (waterSummary === null || waterSummary === void 0 ? void 0 : waterSummary.data) || []
|
|
1165
|
+
};
|
|
1166
|
+
},
|
|
1167
|
+
useWaterRecord: function useWaterRecord(carId, startTime, endTime, sorter) {
|
|
1168
|
+
var _useRequest50 = useRequest(function () {
|
|
1169
|
+
return http.get("".concat(prefix, "/cloud/clwb/api/v101/carWater/page"), {
|
|
1170
|
+
body: {
|
|
1171
|
+
carId: carId,
|
|
1172
|
+
startTime: startTime,
|
|
1173
|
+
endTime: endTime,
|
|
1174
|
+
sorter: sorter
|
|
1175
|
+
}
|
|
1176
|
+
});
|
|
1177
|
+
}, {
|
|
1178
|
+
refreshDeps: [carId, startTime, endTime, sorter]
|
|
1179
|
+
}),
|
|
1180
|
+
waterRecordSummary = _useRequest50.data,
|
|
1181
|
+
loading = _useRequest50.loading;
|
|
1182
|
+
return {
|
|
1183
|
+
loading: loading,
|
|
1184
|
+
recordRes: (waterRecordSummary === null || waterRecordSummary === void 0 ? void 0 : waterRecordSummary.data) || {}
|
|
1185
|
+
};
|
|
1186
|
+
},
|
|
1187
|
+
useWaterTypeSummary: function useWaterTypeSummary(carId, startDate, endDate) {
|
|
1188
|
+
var _waterTypeSummary$dat;
|
|
1189
|
+
var _useRequest51 = useRequest(function () {
|
|
1190
|
+
return http.get("".concat(prefix, "/cloud/clwb/api/v101/carPopup/waterTypeSummary"), {
|
|
1191
|
+
body: {
|
|
1192
|
+
carId: carId,
|
|
1193
|
+
startDate: startDate,
|
|
1194
|
+
endDate: endDate
|
|
1195
|
+
}
|
|
1196
|
+
});
|
|
1197
|
+
}, {
|
|
1198
|
+
refreshDeps: [carId, startDate, endDate]
|
|
1199
|
+
}),
|
|
1200
|
+
waterTypeSummary = _useRequest51.data,
|
|
1201
|
+
loading = _useRequest51.loading;
|
|
1202
|
+
return {
|
|
1203
|
+
loading: loading,
|
|
1204
|
+
waterTypeSummary: (waterTypeSummary === null || waterTypeSummary === void 0 || (_waterTypeSummary$dat = waterTypeSummary.data) === null || _waterTypeSummary$dat === void 0 ? void 0 : _waterTypeSummary$dat.map(function (ele) {
|
|
1205
|
+
return _objectSpread(_objectSpread({}, ele), {}, {
|
|
1206
|
+
name: ele.waterTypeName,
|
|
1207
|
+
value: ele.waterAmount
|
|
1208
|
+
});
|
|
1209
|
+
})) || []
|
|
1210
|
+
};
|
|
1211
|
+
},
|
|
1212
|
+
useEleSummary: function useEleSummary(carId, startDate, endDate) {
|
|
1213
|
+
var _useRequest52 = useRequest(function () {
|
|
1214
|
+
return http.get("".concat(prefix, "/cloud/clwb/api/v101/carPopup/chargeSummary"), {
|
|
1215
|
+
body: {
|
|
1216
|
+
carId: carId,
|
|
1217
|
+
startDate: startDate,
|
|
1218
|
+
endDate: endDate
|
|
1219
|
+
}
|
|
1220
|
+
});
|
|
1221
|
+
}, {
|
|
1222
|
+
refreshDeps: [carId, startDate, endDate]
|
|
1223
|
+
}),
|
|
1224
|
+
eleSummary = _useRequest52.data,
|
|
1225
|
+
loading = _useRequest52.loading;
|
|
1226
|
+
return {
|
|
1227
|
+
loading: loading,
|
|
1228
|
+
eleSummary: (eleSummary === null || eleSummary === void 0 ? void 0 : eleSummary.data) || []
|
|
1229
|
+
};
|
|
1230
|
+
},
|
|
1231
|
+
useEleRecord: function useEleRecord(carId, startTime, endTime, sorter) {
|
|
1232
|
+
var _useRequest53 = useRequest(function () {
|
|
1233
|
+
return http.get("".concat(prefix, "/cloud/clwb/api/v101/carCharge/page"), {
|
|
1234
|
+
body: {
|
|
1235
|
+
carId: carId,
|
|
1236
|
+
startTime: startTime,
|
|
1237
|
+
endTime: endTime,
|
|
1238
|
+
sorter: sorter
|
|
1239
|
+
}
|
|
1240
|
+
});
|
|
1241
|
+
}, {
|
|
1242
|
+
refreshDeps: [carId, startTime, endTime, sorter]
|
|
1243
|
+
}),
|
|
1244
|
+
eleRecordSummary = _useRequest53.data,
|
|
1245
|
+
loading = _useRequest53.loading;
|
|
1246
|
+
return {
|
|
1247
|
+
loading: loading,
|
|
1248
|
+
recordRes: (eleRecordSummary === null || eleRecordSummary === void 0 ? void 0 : eleRecordSummary.data) || {}
|
|
1249
|
+
};
|
|
1250
|
+
},
|
|
1251
|
+
useEleTypeSummary: function useEleTypeSummary(carId, startDate, endDate) {
|
|
1252
|
+
var _eleTypeSummary$data;
|
|
1253
|
+
var _useRequest54 = useRequest(function () {
|
|
1254
|
+
return http.get("".concat(prefix, "/cloud/clwb/api/v101/carPopup/chargePeriodSummary"), {
|
|
1255
|
+
body: {
|
|
1256
|
+
carId: carId,
|
|
1257
|
+
startDate: startDate,
|
|
1258
|
+
endDate: endDate
|
|
1259
|
+
}
|
|
1260
|
+
});
|
|
1261
|
+
}, {
|
|
1262
|
+
refreshDeps: [carId, startDate, endDate]
|
|
1263
|
+
}),
|
|
1264
|
+
eleTypeSummary = _useRequest54.data,
|
|
1265
|
+
loading = _useRequest54.loading;
|
|
1266
|
+
return {
|
|
1267
|
+
loading: loading,
|
|
1268
|
+
eleTypeSummary: (eleTypeSummary === null || eleTypeSummary === void 0 || (_eleTypeSummary$data = eleTypeSummary.data) === null || _eleTypeSummary$data === void 0 ? void 0 : _eleTypeSummary$data.map(function (ele) {
|
|
1269
|
+
return _objectSpread(_objectSpread({}, ele), {}, {
|
|
1270
|
+
name: ele.chargePeriodName,
|
|
1271
|
+
value: ele.chargeCount
|
|
1272
|
+
});
|
|
1273
|
+
})) || []
|
|
1274
|
+
};
|
|
1275
|
+
},
|
|
1276
|
+
useOilSummary: function useOilSummary(carId, startDate, endDate) {
|
|
1277
|
+
var _useRequest55 = useRequest(function () {
|
|
1278
|
+
return http.get("".concat(prefix, "/cloud/clwb/api/v101/carPopup/oilSummary"), {
|
|
1279
|
+
body: {
|
|
1280
|
+
carId: carId,
|
|
1281
|
+
startDate: startDate,
|
|
1282
|
+
endDate: endDate
|
|
1283
|
+
}
|
|
1284
|
+
});
|
|
1285
|
+
}, {
|
|
1286
|
+
refreshDeps: [carId, startDate, endDate]
|
|
1287
|
+
}),
|
|
1288
|
+
oilSummary = _useRequest55.data,
|
|
1289
|
+
loading = _useRequest55.loading;
|
|
1290
|
+
return {
|
|
1291
|
+
loading: loading,
|
|
1292
|
+
oilSummary: (oilSummary === null || oilSummary === void 0 ? void 0 : oilSummary.data) || []
|
|
1293
|
+
};
|
|
1294
|
+
},
|
|
1295
|
+
useOilRecord: function useOilRecord(carId, startTime, endTime, sorter) {
|
|
1296
|
+
var _useRequest56 = useRequest(function () {
|
|
1297
|
+
return http.get("".concat(prefix, "/cloud/clwb/api/v101/carOil/page"), {
|
|
1298
|
+
body: {
|
|
1299
|
+
carId: carId,
|
|
1300
|
+
startTime: startTime,
|
|
1301
|
+
endTime: endTime,
|
|
1302
|
+
sorter: sorter
|
|
1303
|
+
}
|
|
1304
|
+
});
|
|
1305
|
+
}, {
|
|
1306
|
+
refreshDeps: [carId, startTime, endTime, sorter]
|
|
1307
|
+
}),
|
|
1308
|
+
oilRecordSummary = _useRequest56.data,
|
|
1309
|
+
loading = _useRequest56.loading;
|
|
1310
|
+
return {
|
|
1311
|
+
loading: loading,
|
|
1312
|
+
recordRes: (oilRecordSummary === null || oilRecordSummary === void 0 ? void 0 : oilRecordSummary.data) || {}
|
|
1313
|
+
};
|
|
1314
|
+
},
|
|
1315
|
+
useOilTypeSummary: function useOilTypeSummary(carId, startDate, endDate) {
|
|
1316
|
+
var _oilTypeSummary$data;
|
|
1317
|
+
var _useRequest57 = useRequest(function () {
|
|
1318
|
+
return http.get("".concat(prefix, "/cloud/clwb/api/v101/carPopup/oilPeriodSummary"), {
|
|
1319
|
+
body: {
|
|
1320
|
+
carId: carId,
|
|
1321
|
+
startDate: startDate,
|
|
1322
|
+
endDate: endDate
|
|
1323
|
+
}
|
|
1324
|
+
});
|
|
1325
|
+
}, {
|
|
1326
|
+
refreshDeps: [carId, startDate, endDate]
|
|
1327
|
+
}),
|
|
1328
|
+
oilTypeSummary = _useRequest57.data,
|
|
1329
|
+
loading = _useRequest57.loading;
|
|
1330
|
+
return {
|
|
1331
|
+
loading: loading,
|
|
1332
|
+
oilUseTypeSummary: (oilTypeSummary === null || oilTypeSummary === void 0 || (_oilTypeSummary$data = oilTypeSummary.data) === null || _oilTypeSummary$data === void 0 ? void 0 : _oilTypeSummary$data.map(function (ele) {
|
|
1333
|
+
return _objectSpread(_objectSpread({}, ele), {}, {
|
|
1334
|
+
name: ele.oilPeriodName,
|
|
1335
|
+
value: ele.oilCount
|
|
1336
|
+
});
|
|
1337
|
+
})) || []
|
|
1338
|
+
};
|
|
1339
|
+
},
|
|
1340
|
+
// 保险
|
|
1341
|
+
useInsuranceSummary: function useInsuranceSummary(carId, startDate, endDate) {
|
|
1342
|
+
var _useRequest58 = useRequest(function () {
|
|
1343
|
+
return http.get("".concat(prefix, "/cloud/clwb/api/v101/carPopup/insuranceSummary"), {
|
|
1344
|
+
body: {
|
|
1345
|
+
carId: carId,
|
|
1346
|
+
startDate: startDate,
|
|
1347
|
+
endDate: endDate
|
|
1348
|
+
}
|
|
1349
|
+
});
|
|
1350
|
+
}, {
|
|
1351
|
+
refreshDeps: [carId, startDate, endDate]
|
|
1352
|
+
}),
|
|
1353
|
+
insuranceSummary = _useRequest58.data,
|
|
1354
|
+
loading = _useRequest58.loading;
|
|
1355
|
+
return {
|
|
1356
|
+
loading: loading,
|
|
1357
|
+
insuranceSummary: insuranceSummary === null || insuranceSummary === void 0 ? void 0 : insuranceSummary.data
|
|
1358
|
+
};
|
|
1359
|
+
},
|
|
1360
|
+
useCurrentInsurance: function useCurrentInsurance(carId, startDate, endDate) {
|
|
1361
|
+
var _useRequest59 = useRequest(function () {
|
|
1362
|
+
return http.get("".concat(prefix, "/cloud/clwb/api/v101/carPopup/currentInsurance"), {
|
|
1363
|
+
body: {
|
|
1364
|
+
carId: carId,
|
|
1365
|
+
startDate: startDate,
|
|
1366
|
+
endDate: endDate
|
|
1367
|
+
}
|
|
1368
|
+
});
|
|
1369
|
+
}, {
|
|
1370
|
+
refreshDeps: [carId, startDate, endDate]
|
|
1371
|
+
}),
|
|
1372
|
+
currentInsurance = _useRequest59.data,
|
|
1373
|
+
loading = _useRequest59.loading;
|
|
1374
|
+
return {
|
|
1375
|
+
loading: loading,
|
|
1376
|
+
currentInsurance: currentInsurance === null || currentInsurance === void 0 ? void 0 : currentInsurance.data
|
|
1377
|
+
};
|
|
1378
|
+
},
|
|
1379
|
+
// 年检
|
|
1380
|
+
useInspectSummary: function useInspectSummary(carId, startDate, endDate) {
|
|
1381
|
+
var _useRequest60 = useRequest(function () {
|
|
1382
|
+
return http.get("".concat(prefix, "/cloud/clwb/api/v101/carPopup/inspectSummary"), {
|
|
1383
|
+
body: {
|
|
1384
|
+
carId: carId,
|
|
1385
|
+
startDate: startDate,
|
|
1386
|
+
endDate: endDate
|
|
1387
|
+
}
|
|
1388
|
+
});
|
|
1389
|
+
}, {
|
|
1390
|
+
refreshDeps: [carId, startDate, endDate]
|
|
1391
|
+
}),
|
|
1392
|
+
inspectSummary = _useRequest60.data;
|
|
1393
|
+
return {
|
|
1394
|
+
inspectSummary: inspectSummary === null || inspectSummary === void 0 ? void 0 : inspectSummary.data
|
|
1395
|
+
};
|
|
1396
|
+
},
|
|
1397
|
+
useCurrentSummary: function useCurrentSummary(carId, startDate, endDate) {
|
|
1398
|
+
var _useRequest61 = useRequest(function () {
|
|
1399
|
+
return http.get("".concat(prefix, "/cloud/clwb/api/v101/carPopup/currentInspect"), {
|
|
1400
|
+
body: {
|
|
1401
|
+
carId: carId,
|
|
1402
|
+
startDate: startDate,
|
|
1403
|
+
endDate: endDate
|
|
1404
|
+
}
|
|
1405
|
+
});
|
|
1406
|
+
}, {
|
|
1407
|
+
refreshDeps: [carId, startDate, endDate]
|
|
1408
|
+
}),
|
|
1409
|
+
currentInspect = _useRequest61.data;
|
|
1410
|
+
return {
|
|
1411
|
+
currentInspect: currentInspect === null || currentInspect === void 0 ? void 0 : currentInspect.data
|
|
1412
|
+
};
|
|
1413
|
+
},
|
|
1414
|
+
// 维保类型
|
|
1415
|
+
useMaintainTypeSummary: function useMaintainTypeSummary(carId, startDate, endDate) {
|
|
1416
|
+
var _maintainTypeSummary$;
|
|
1417
|
+
var _useRequest62 = useRequest(function () {
|
|
1418
|
+
return http.get("".concat(prefix, "/cloud/clwb/api/v101/carPopup/maintainTypeSummary"), {
|
|
1419
|
+
body: {
|
|
1420
|
+
carId: carId,
|
|
1421
|
+
startDate: startDate,
|
|
1422
|
+
endDate: endDate
|
|
1423
|
+
}
|
|
1424
|
+
});
|
|
1425
|
+
}, {
|
|
1426
|
+
refreshDeps: [carId, startDate, endDate]
|
|
1427
|
+
}),
|
|
1428
|
+
maintainTypeSummary = _useRequest62.data;
|
|
1429
|
+
return {
|
|
1430
|
+
maintainTypeSummary: maintainTypeSummary === null || maintainTypeSummary === void 0 || (_maintainTypeSummary$ = maintainTypeSummary.data) === null || _maintainTypeSummary$ === void 0 ? void 0 : _maintainTypeSummary$.map(function (ele) {
|
|
1431
|
+
return _objectSpread(_objectSpread({}, ele), {}, {
|
|
1432
|
+
name: ele.maintainTypeName,
|
|
1433
|
+
value: ele.maintainMoney
|
|
1434
|
+
});
|
|
1435
|
+
})
|
|
1436
|
+
};
|
|
1437
|
+
},
|
|
1438
|
+
//折旧
|
|
1439
|
+
useDepreciationSummary: function useDepreciationSummary(carId, startDate, endDate) {
|
|
1440
|
+
var _useRequest63 = useRequest(function () {
|
|
1441
|
+
return http.get("".concat(prefix, "/cloud/clwb/api/v101/carPopup/depreciationInfo"), {
|
|
1442
|
+
body: {
|
|
1443
|
+
carId: carId,
|
|
1444
|
+
startDate: startDate,
|
|
1445
|
+
endDate: endDate
|
|
1446
|
+
}
|
|
1447
|
+
});
|
|
1448
|
+
}, {
|
|
1449
|
+
refreshDeps: [carId, startDate, endDate]
|
|
1450
|
+
}),
|
|
1451
|
+
depreciationSummary = _useRequest63.data;
|
|
1452
|
+
return {
|
|
1453
|
+
depreciationSummary: depreciationSummary === null || depreciationSummary === void 0 ? void 0 : depreciationSummary.data
|
|
1454
|
+
};
|
|
1455
|
+
},
|
|
1456
|
+
// 事故
|
|
1457
|
+
useAccidentSummary: function useAccidentSummary(carId, startDate, endDate) {
|
|
1458
|
+
var _useRequest64 = useRequest(function () {
|
|
1459
|
+
return http.get("".concat(prefix, "/cloud/clwb/api/v101/carPopup/accidentSummary"), {
|
|
1460
|
+
body: {
|
|
1461
|
+
carId: carId,
|
|
1462
|
+
startDate: startDate,
|
|
1463
|
+
endDate: endDate
|
|
1464
|
+
}
|
|
1465
|
+
});
|
|
1466
|
+
}, {
|
|
1467
|
+
refreshDeps: [carId, startDate, endDate]
|
|
1468
|
+
}),
|
|
1469
|
+
accidentSummary = _useRequest64.data;
|
|
1470
|
+
return {
|
|
1471
|
+
accidentSummary: accidentSummary === null || accidentSummary === void 0 ? void 0 : accidentSummary.data
|
|
1472
|
+
};
|
|
1473
|
+
},
|
|
1474
|
+
useAccidentTypeSummary: function useAccidentTypeSummary(carId, startDate, endDate) {
|
|
1475
|
+
var _accidentTypeSummary$;
|
|
1476
|
+
var _useRequest65 = useRequest(function () {
|
|
1477
|
+
return http.get("".concat(prefix, "/cloud/clwb/api/v101/carPopup/accidentTypeSummary"), {
|
|
1478
|
+
body: {
|
|
1479
|
+
carId: carId,
|
|
1480
|
+
startDate: startDate,
|
|
1481
|
+
endDate: endDate
|
|
1482
|
+
}
|
|
1483
|
+
});
|
|
1484
|
+
}, {
|
|
1485
|
+
refreshDeps: [carId, startDate, endDate]
|
|
1486
|
+
}),
|
|
1487
|
+
accidentTypeSummary = _useRequest65.data;
|
|
1488
|
+
return {
|
|
1489
|
+
accidentTypeSummary: accidentTypeSummary === null || accidentTypeSummary === void 0 || (_accidentTypeSummary$ = accidentTypeSummary.data) === null || _accidentTypeSummary$ === void 0 ? void 0 : _accidentTypeSummary$.map(function (ele) {
|
|
1490
|
+
return _objectSpread(_objectSpread({}, ele), {}, {
|
|
1491
|
+
name: ele.accidentTypeName,
|
|
1492
|
+
value: ele.accidentCount
|
|
1493
|
+
});
|
|
1494
|
+
})
|
|
1495
|
+
};
|
|
1496
|
+
},
|
|
1497
|
+
// 违章
|
|
1498
|
+
useViolationSummary: function useViolationSummary(carId, startDate, endDate) {
|
|
1499
|
+
var _useRequest66 = useRequest(function () {
|
|
1500
|
+
return http.get("".concat(prefix, "/cloud/clwb/api/v101/carPopup/violationSummary"), {
|
|
1501
|
+
body: {
|
|
1502
|
+
carId: carId,
|
|
1503
|
+
startDate: startDate,
|
|
1504
|
+
endDate: endDate
|
|
1505
|
+
}
|
|
1506
|
+
});
|
|
1507
|
+
}, {
|
|
1508
|
+
refreshDeps: [carId, startDate, endDate]
|
|
1509
|
+
}),
|
|
1510
|
+
violationSummary = _useRequest66.data;
|
|
1511
|
+
return {
|
|
1512
|
+
violationSummary: violationSummary === null || violationSummary === void 0 ? void 0 : violationSummary.data
|
|
1513
|
+
};
|
|
1514
|
+
},
|
|
1515
|
+
useViolationTypeSummary: function useViolationTypeSummary(carId, startDate, endDate) {
|
|
1516
|
+
var _violationTypeSummary;
|
|
1517
|
+
var _useRequest67 = useRequest(function () {
|
|
1518
|
+
return http.get("".concat(prefix, "/cloud/clwb/api/v101/carPopup/violationTypeSummary"), {
|
|
1519
|
+
body: {
|
|
1520
|
+
carId: carId,
|
|
1521
|
+
startDate: startDate,
|
|
1522
|
+
endDate: endDate
|
|
1523
|
+
}
|
|
1524
|
+
});
|
|
1525
|
+
}, {
|
|
1526
|
+
refreshDeps: [carId, startDate, endDate]
|
|
1527
|
+
}),
|
|
1528
|
+
violationTypeSummary = _useRequest67.data;
|
|
1529
|
+
return {
|
|
1530
|
+
violationTypeSummary: violationTypeSummary === null || violationTypeSummary === void 0 || (_violationTypeSummary = violationTypeSummary.data) === null || _violationTypeSummary === void 0 ? void 0 : _violationTypeSummary.map(function (ele) {
|
|
1531
|
+
return _objectSpread(_objectSpread({}, ele), {}, {
|
|
1532
|
+
name: ele.violationType,
|
|
1533
|
+
value: ele.violationCount
|
|
1534
|
+
});
|
|
1535
|
+
})
|
|
1536
|
+
};
|
|
1147
1537
|
}
|
|
1148
1538
|
};
|
|
1149
1539
|
|
|
@@ -1168,7 +1558,7 @@ export var JzljService = {
|
|
|
1168
1558
|
startDate = _ref23.startDate,
|
|
1169
1559
|
endDate = _ref23.endDate,
|
|
1170
1560
|
url = _ref23.url;
|
|
1171
|
-
var
|
|
1561
|
+
var _useRequest68 = useRequest(function () {
|
|
1172
1562
|
return http.get("".concat(prefix, "/cloud/jzlj/web/api/gis/real/time/carBaseInfo"), {
|
|
1173
1563
|
body: {
|
|
1174
1564
|
id: id,
|
|
@@ -1180,7 +1570,7 @@ export var JzljService = {
|
|
|
1180
1570
|
}, {
|
|
1181
1571
|
refreshDeps: [id, startDate, endDate, url]
|
|
1182
1572
|
}),
|
|
1183
|
-
zlOtherInfoRes =
|
|
1573
|
+
zlOtherInfoRes = _useRequest68.data;
|
|
1184
1574
|
return {
|
|
1185
1575
|
zlOtherInfoData: (zlOtherInfoRes === null || zlOtherInfoRes === void 0 ? void 0 : zlOtherInfoRes.data) || {}
|
|
1186
1576
|
};
|
|
@@ -1191,7 +1581,7 @@ export var JzljService = {
|
|
|
1191
1581
|
var id = _ref24.id,
|
|
1192
1582
|
startDate = _ref24.startDate,
|
|
1193
1583
|
endDate = _ref24.endDate;
|
|
1194
|
-
var
|
|
1584
|
+
var _useRequest69 = useRequest(function () {
|
|
1195
1585
|
return http.get("".concat(prefix, "/cloud/gps-reborn/report/dailyCarRun/list"), {
|
|
1196
1586
|
body: {
|
|
1197
1587
|
carIds: id,
|
|
@@ -1202,7 +1592,7 @@ export var JzljService = {
|
|
|
1202
1592
|
}, {
|
|
1203
1593
|
refreshDeps: [id, startDate, endDate]
|
|
1204
1594
|
}),
|
|
1205
|
-
dailyCarRunRes =
|
|
1595
|
+
dailyCarRunRes = _useRequest69.data;
|
|
1206
1596
|
return {
|
|
1207
1597
|
dailyCarRunData: dailyCarRunRes !== null && dailyCarRunRes !== void 0 && (_dailyCarRunRes$data = dailyCarRunRes.data) !== null && _dailyCarRunRes$data !== void 0 && _dailyCarRunRes$data.length ? (dailyCarRunRes === null || dailyCarRunRes === void 0 || (_dailyCarRunRes$data2 = dailyCarRunRes.data) === null || _dailyCarRunRes$data2 === void 0 ? void 0 : _dailyCarRunRes$data2[0]) || {} : {}
|
|
1208
1598
|
};
|
|
@@ -1212,7 +1602,7 @@ export var JzljService = {
|
|
|
1212
1602
|
var id = _ref25.id,
|
|
1213
1603
|
startDate = _ref25.startDate,
|
|
1214
1604
|
endDate = _ref25.endDate;
|
|
1215
|
-
var
|
|
1605
|
+
var _useRequest70 = useRequest(function () {
|
|
1216
1606
|
return http.get("".concat(prefix, "/cloud/jzlj/web/dz/kanban/carWorkAnalyse"), {
|
|
1217
1607
|
body: {
|
|
1218
1608
|
id: id,
|
|
@@ -1223,8 +1613,8 @@ export var JzljService = {
|
|
|
1223
1613
|
}, {
|
|
1224
1614
|
refreshDeps: [id, startDate, endDate]
|
|
1225
1615
|
}),
|
|
1226
|
-
yxfxRes =
|
|
1227
|
-
loading =
|
|
1616
|
+
yxfxRes = _useRequest70.data,
|
|
1617
|
+
loading = _useRequest70.loading;
|
|
1228
1618
|
return {
|
|
1229
1619
|
yxfxData: (yxfxRes === null || yxfxRes === void 0 ? void 0 : yxfxRes.data) || [],
|
|
1230
1620
|
loading: loading
|
|
@@ -1260,7 +1650,7 @@ export var JzljService = {
|
|
|
1260
1650
|
},
|
|
1261
1651
|
// 建筑垃圾枚举
|
|
1262
1652
|
fetchJzljEnum: function fetchJzljEnum(enumName) {
|
|
1263
|
-
var
|
|
1653
|
+
var _useRequest71 = useRequest(function () {
|
|
1264
1654
|
return http.get("/cloud/jzlj/common/loadEnumValue", {
|
|
1265
1655
|
body: {
|
|
1266
1656
|
enumName: enumName
|
|
@@ -1269,21 +1659,21 @@ export var JzljService = {
|
|
|
1269
1659
|
}, {
|
|
1270
1660
|
refreshDeps: [enumName]
|
|
1271
1661
|
}),
|
|
1272
|
-
|
|
1273
|
-
data =
|
|
1662
|
+
_useRequest71$data = _useRequest71.data,
|
|
1663
|
+
data = _useRequest71$data === void 0 ? {} : _useRequest71$data;
|
|
1274
1664
|
return (data === null || data === void 0 ? void 0 : data.data) || [];
|
|
1275
1665
|
},
|
|
1276
1666
|
// 字段配置
|
|
1277
1667
|
fieldConfig: function fieldConfig() {
|
|
1278
|
-
var
|
|
1668
|
+
var _useRequest72 = useRequest(function () {
|
|
1279
1669
|
return http.get("/cloud/jzlj/web/field/config/list?ledgerType=CZHZBA", {
|
|
1280
1670
|
body: {}
|
|
1281
1671
|
});
|
|
1282
1672
|
}, {
|
|
1283
1673
|
refreshDeps: []
|
|
1284
1674
|
}),
|
|
1285
|
-
|
|
1286
|
-
data =
|
|
1675
|
+
_useRequest72$data = _useRequest72.data,
|
|
1676
|
+
data = _useRequest72$data === void 0 ? {} : _useRequest72$data;
|
|
1287
1677
|
return (data === null || data === void 0 ? void 0 : data.data) || [];
|
|
1288
1678
|
},
|
|
1289
1679
|
// 联单-分页
|
|
@@ -1367,7 +1757,7 @@ export var JzljService = {
|
|
|
1367
1757
|
var carId = _ref33.carId,
|
|
1368
1758
|
startDate = _ref33.startDate,
|
|
1369
1759
|
endDate = _ref33.endDate;
|
|
1370
|
-
var
|
|
1760
|
+
var _useRequest73 = useRequest(function () {
|
|
1371
1761
|
return http.get("/cloud/jzlj/web/dz/kanban/carAlarmTypeCountSummaryInfo", {
|
|
1372
1762
|
body: {
|
|
1373
1763
|
carId: carId,
|
|
@@ -1379,7 +1769,7 @@ export var JzljService = {
|
|
|
1379
1769
|
}, {
|
|
1380
1770
|
refreshDeps: [carId, startDate, endDate]
|
|
1381
1771
|
}),
|
|
1382
|
-
alarmSummaryRes =
|
|
1772
|
+
alarmSummaryRes = _useRequest73.data;
|
|
1383
1773
|
return {
|
|
1384
1774
|
alarmSummaryData: (alarmSummaryRes === null || alarmSummaryRes === void 0 ? void 0 : alarmSummaryRes.data) || {}
|
|
1385
1775
|
};
|
|
@@ -1389,7 +1779,7 @@ export var JzljService = {
|
|
|
1389
1779
|
var id = _ref34.id,
|
|
1390
1780
|
startDate = _ref34.startDate,
|
|
1391
1781
|
endDate = _ref34.endDate;
|
|
1392
|
-
var
|
|
1782
|
+
var _useRequest74 = useRequest(function () {
|
|
1393
1783
|
return http.get("/cloud/jzlj/web/api/gis/real/time/carOrderAlarmAnalyse", {
|
|
1394
1784
|
body: {
|
|
1395
1785
|
id: id,
|
|
@@ -1400,7 +1790,7 @@ export var JzljService = {
|
|
|
1400
1790
|
}, {
|
|
1401
1791
|
refreshDeps: [id, startDate, endDate]
|
|
1402
1792
|
}),
|
|
1403
|
-
alarmTrendRes =
|
|
1793
|
+
alarmTrendRes = _useRequest74.data;
|
|
1404
1794
|
return {
|
|
1405
1795
|
alarmTrendData: (alarmTrendRes === null || alarmTrendRes === void 0 ? void 0 : alarmTrendRes.data) || []
|
|
1406
1796
|
};
|
|
@@ -1409,14 +1799,14 @@ export var JzljService = {
|
|
|
1409
1799
|
useUnit: function useUnit() {
|
|
1410
1800
|
var _data$data3, _unitStr;
|
|
1411
1801
|
var groupCode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'XTPZ';
|
|
1412
|
-
var
|
|
1802
|
+
var _useRequest75 = useRequest(function () {
|
|
1413
1803
|
return http.get("/cloud/jzlj/web/api/tenant/system/config/getConfig", {
|
|
1414
1804
|
body: {}
|
|
1415
1805
|
});
|
|
1416
1806
|
}, {
|
|
1417
1807
|
refreshDeps: [groupCode]
|
|
1418
1808
|
}),
|
|
1419
|
-
data =
|
|
1809
|
+
data = _useRequest75.data;
|
|
1420
1810
|
var obj = {};
|
|
1421
1811
|
var originalData = data === null || data === void 0 || (_data$data3 = data.data) === null || _data$data3 === void 0 ? void 0 : _data$data3[groupCode];
|
|
1422
1812
|
for (var group in originalData) {
|
|
@@ -1437,7 +1827,7 @@ export var JzljService = {
|
|
|
1437
1827
|
},
|
|
1438
1828
|
// 处置证字段配置
|
|
1439
1829
|
useCzzFields: function useCzzFields() {
|
|
1440
|
-
var
|
|
1830
|
+
var _useRequest76 = useRequest(function () {
|
|
1441
1831
|
return http.get("/cloud/jzlj/web/field/config/list", {
|
|
1442
1832
|
body: {
|
|
1443
1833
|
ledgerType: 'CZHZBA'
|
|
@@ -1446,7 +1836,7 @@ export var JzljService = {
|
|
|
1446
1836
|
}, {
|
|
1447
1837
|
refreshDeps: []
|
|
1448
1838
|
}),
|
|
1449
|
-
res =
|
|
1839
|
+
res = _useRequest76.data;
|
|
1450
1840
|
var dataList = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
1451
1841
|
var visibleList = dataList.filter(function (item) {
|
|
1452
1842
|
var _item$functionKeys;
|
|
@@ -1458,7 +1848,7 @@ export var JzljService = {
|
|
|
1458
1848
|
},
|
|
1459
1849
|
// 联单字段配置
|
|
1460
1850
|
useLdFields: function useLdFields() {
|
|
1461
|
-
var
|
|
1851
|
+
var _useRequest77 = useRequest(function () {
|
|
1462
1852
|
return http.get("/cloud/jzlj/web/field/config/list", {
|
|
1463
1853
|
body: {
|
|
1464
1854
|
ledgerType: 'CLYSLD'
|
|
@@ -1467,7 +1857,7 @@ export var JzljService = {
|
|
|
1467
1857
|
}, {
|
|
1468
1858
|
refreshDeps: []
|
|
1469
1859
|
}),
|
|
1470
|
-
res =
|
|
1860
|
+
res = _useRequest77.data;
|
|
1471
1861
|
var dataList = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
1472
1862
|
var visibleList = dataList.filter(function (item) {
|
|
1473
1863
|
var _item$functionKeys2;
|
|
@@ -1483,14 +1873,14 @@ export var JzljService = {
|
|
|
1483
1873
|
export var useUnit = function useUnit() {
|
|
1484
1874
|
var _data$data4, _unitStr2;
|
|
1485
1875
|
var groupCode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'XTPZ';
|
|
1486
|
-
var
|
|
1876
|
+
var _useRequest78 = useRequest(function () {
|
|
1487
1877
|
return request.get("/cloud/jzlj/web/api/tenant/system/config/getConfig", {
|
|
1488
1878
|
data: {}
|
|
1489
1879
|
});
|
|
1490
1880
|
}, {
|
|
1491
1881
|
refreshDeps: [groupCode]
|
|
1492
1882
|
}),
|
|
1493
|
-
data =
|
|
1883
|
+
data = _useRequest78.data;
|
|
1494
1884
|
var obj = {};
|
|
1495
1885
|
var originalData = data === null || data === void 0 || (_data$data4 = data.data) === null || _data$data4 === void 0 ? void 0 : _data$data4[groupCode];
|
|
1496
1886
|
for (var group in originalData) {
|
|
@@ -110,7 +110,7 @@ var Info = function Info(_ref) {
|
|
|
110
110
|
var list = [{
|
|
111
111
|
name: translateLocaleText("t('vtxcarmodal.today')"),
|
|
112
112
|
unit: 'km',
|
|
113
|
-
value: (info === null || info === void 0 ? void 0 : info.
|
|
113
|
+
value: (info === null || info === void 0 ? void 0 : info.accuMileage) || 0,
|
|
114
114
|
img: showListImg ? isDark ? darkRunIcon : runIcon : null,
|
|
115
115
|
fontType: 'blue'
|
|
116
116
|
}, {
|