139 lines
3.9 KiB
Dart
139 lines
3.9 KiB
Dart
import 'package:dio/dio.dart';
|
|
import 'package:qhd_prevention/http/ApiService.dart';
|
|
import 'package:qhd_prevention/http/HttpManager.dart';
|
|
|
|
// 安全环保检查
|
|
class SafetyCheckApi {
|
|
/// 安全环保检查发起
|
|
static Future<Map<String, dynamic>> safeCheckAdd(Map data) {
|
|
return HttpManager().request(
|
|
'${ApiService.basePath}/inspection',
|
|
'/safetyEnvironmentalInspection/initiate',
|
|
method: Method.post,
|
|
data: {...data},
|
|
);
|
|
}
|
|
|
|
/// 安全环保检查列表
|
|
static Future<Map<String, dynamic>> safeCheckList(Map data) {
|
|
return HttpManager().request(
|
|
'${ApiService.basePath}/inspection',
|
|
'/safetyEnvironmentalInspection/page',
|
|
method: Method.post,
|
|
data: {...data},
|
|
);
|
|
}
|
|
|
|
/// 安全环保检查流程图
|
|
static Future<Map<String, dynamic>> safeCheckFlow(String id) {
|
|
return HttpManager().request(
|
|
'${ApiService.basePath}/inspection',
|
|
'/safetyEnvironmentalInspection/flowchart/$id',
|
|
method: Method.post,
|
|
data: {
|
|
'id':id
|
|
},
|
|
);
|
|
}
|
|
|
|
/// 安全环保检查人核实
|
|
static Future<Map<String, dynamic>> safeCheckVerify(Map data) {
|
|
return HttpManager().request(
|
|
'${ApiService.basePath}/inspection',
|
|
'/safetyEnvironmentalInspection/verify',
|
|
method: Method.post,
|
|
data: {...data},
|
|
);
|
|
}
|
|
|
|
/// 安全环保检查被检查人确认
|
|
static Future<Map<String, dynamic>> safeCheckConfirm(Map data) {
|
|
return HttpManager().request(
|
|
'${ApiService.basePath}/inspection',
|
|
'/safetyEnvironmentalInspection/confirm',
|
|
method: Method.post,
|
|
data: {...data},
|
|
);
|
|
}
|
|
|
|
/// 安全环保检查隐患指派
|
|
static Future<Map<String, dynamic>> safeCheckHiddenAssign(Map data) {
|
|
return HttpManager().request(
|
|
'${ApiService.basePath}/inspection',
|
|
'/safetyEnvironmentalInspection/assign',
|
|
method: Method.post,
|
|
data: {...data},
|
|
);
|
|
}
|
|
|
|
/// 安全环保检查验收
|
|
static Future<Map<String, dynamic>> safeCheckAcceptance(Map data) {
|
|
return HttpManager().request(
|
|
'${ApiService.basePath}/inspection',
|
|
'/safetyEnvironmentalInspection/accept',
|
|
method: Method.post,
|
|
data: {...data},
|
|
);
|
|
}
|
|
|
|
/// 查询安全环保检查详情
|
|
static Future<Map<String, dynamic>> safeCheckDetail(String inspectionId) {
|
|
return HttpManager().request(
|
|
'${ApiService.basePath}/inspection',
|
|
'/safetyEnvironmentalInspection/detail',
|
|
method: Method.post,
|
|
data: {"inspectionId": inspectionId},
|
|
);
|
|
}
|
|
|
|
/// 删除安全环保检查
|
|
static Future<Map<String, dynamic>> safeCheckDelete(String inspectionId) {
|
|
return HttpManager().request(
|
|
'${ApiService.basePath}/inspection',
|
|
'/safetyEnvironmentalInspection/remove/$inspectionId',
|
|
method: Method.post,
|
|
data: {},
|
|
);
|
|
}
|
|
|
|
/// 安全环保检查申辩列表
|
|
static Future<Map<String, dynamic>> safeCheckAppealList(String id) {
|
|
return HttpManager().request(
|
|
'${ApiService.basePath}/inspection',
|
|
'/safetyEnvironmentalInspection/defense/$id',
|
|
method: Method.post,
|
|
data: {},
|
|
);
|
|
}
|
|
|
|
/// 安全环保检查申辩审核
|
|
static Future<Map<String, dynamic>> safeCheckAppealAudit(Map data) {
|
|
return HttpManager().request(
|
|
'${ApiService.basePath}/inspection',
|
|
'/safetyEnvironmentalInspection/defenseReview',
|
|
method: Method.post,
|
|
data: {...data},
|
|
);
|
|
}
|
|
|
|
/// 安全环保检查编辑修改
|
|
static Future<Map<String, dynamic>> safeCheckEdit(Map data) {
|
|
return HttpManager().request(
|
|
'${ApiService.basePath}/inspection',
|
|
'/safetyEnvironmentalInspection/edit',
|
|
method: Method.post,
|
|
data: {...data},
|
|
);
|
|
}
|
|
|
|
/// 获取检查数量
|
|
static Future<Map<String, dynamic>> safeCheckCount() {
|
|
return HttpManager().request(
|
|
'${ApiService.basePath}/inspection',
|
|
'/safetyEnvironmentalInspection/getCount',
|
|
method: Method.post,
|
|
data: {},
|
|
);
|
|
}
|
|
}
|