diff --git a/lib/http/ApiService.dart b/lib/http/ApiService.dart index 0269636..e3dcbf1 100644 --- a/lib/http/ApiService.dart +++ b/lib/http/ApiService.dart @@ -190,7 +190,7 @@ U6Hzm1ninpWeE+awIDAQAB '/app/versionmanager/getVersion', method: Method.post, data: { - 'FILETYPE':Platform.isIOS ? 'iOS' : 'Android' + 'FILETYPE':Platform.pathSeparator }, ); } @@ -217,9 +217,9 @@ U6Hzm1ninpWeE+awIDAQAB // /// 安全承诺提交 static Future> submitCorppromiseSign( - String imagePath, - Map data, - ) async { + String imagePath, + Map data, + ) async { final file = File(imagePath); if (!await file.exists()) { throw ApiException('file_not_found', '图片不存在:$imagePath'); @@ -359,9 +359,9 @@ U6Hzm1ninpWeE+awIDAQAB /// 课程列表 static Future> getClassList( - String classId, - String POST_ID, - ) { + String classId, + String POST_ID, + ) { return HttpManager().request( basePath, '/app/edu/stagestudentrelation/getClassCurriculum', @@ -392,10 +392,10 @@ U6Hzm1ninpWeE+awIDAQAB /// 学习详情视频列表 static Future> getStudyDetailList( - String CLASS_ID, - String CLASSCURRICULUM_ID, - String STUDENT_ID, - ) { + String CLASS_ID, + String CLASSCURRICULUM_ID, + String STUDENT_ID, + ) { print( CLASS_ID + '---' + @@ -424,8 +424,8 @@ U6Hzm1ninpWeE+awIDAQAB /// 获取视频信息 static Future> fnGetVideoPlayInfo( - String VIDEOCOURSEWARE_ID, - ) { + String VIDEOCOURSEWARE_ID, + ) { return HttpManager().request( basePath, '/app/edu/audioOrVideo/getVideoPlayInfoApp', @@ -495,11 +495,11 @@ U6Hzm1ninpWeE+awIDAQAB } /// 获取视频进度 static Future> fnGetVideoPlayProgress( - String VIDEOCOURSEWARE_ID, - String CURRICULUM_ID, - String CLASS_ID, - String STUDENT_ID, - ) { + String VIDEOCOURSEWARE_ID, + String CURRICULUM_ID, + String CLASS_ID, + String STUDENT_ID, + ) { return HttpManager().request( basePath, '/app/edu/coursestudyvideorecord/getVideoProgress', @@ -535,9 +535,9 @@ U6Hzm1ninpWeE+awIDAQAB /// 教培人脸比对上传接口 static Future> getStudyUserFace( - String imagePath, - Map data - ) async { + String imagePath, + Map data + ) async { final file = File(imagePath); if (!await file.exists()) { throw ApiException('file_not_found', '图片不存在:$imagePath'); @@ -600,10 +600,10 @@ U6Hzm1ninpWeE+awIDAQAB /// 签名上传 static Future> signUpdate( - String signBase64, - String CLASS_ID, - String STAGESTUDENTRELATION_ID, - ) { + String signBase64, + String CLASS_ID, + String STAGESTUDENTRELATION_ID, + ) { return HttpManager().request( basePath, '/app/edu/stagestudentrelation/sign', @@ -621,8 +621,8 @@ U6Hzm1ninpWeE+awIDAQAB /// 视频练习 static Future> questionListByVideo( - String VIDEOCOURSEWARE_ID, - ) { + String VIDEOCOURSEWARE_ID, + ) { return HttpManager().request( basePath, '/app/edu/question/listAllByVideo', @@ -633,9 +633,9 @@ U6Hzm1ninpWeE+awIDAQAB /// 成绩查询 static Future> pageTaskScoreByUser( - int showCount, - int currentPage, - ) { + int showCount, + int currentPage, + ) { return HttpManager().request( basePath, '/app/edu/stagestudentrelation/pageTaskScoreByUser', @@ -651,9 +651,9 @@ U6Hzm1ninpWeE+awIDAQAB /// 考试详情 static Future> getExamRecordByStuId( - String STUDENT_ID, - String CLASS_ID, - ) { + String STUDENT_ID, + String CLASS_ID, + ) { return HttpManager().request( basePath, '/app/edu/stageexam/getExamRecordByStuId', @@ -709,10 +709,10 @@ U6Hzm1ninpWeE+awIDAQAB ///TODO -------------–-------------------- 首页特殊作业 -------------–-------------------- /// 作业区域校验 static Future> checkSpecialWorkIsInPls( - String ELECTRONIC_FENCE_AREA_ID, - String LONGITUDE, - String LATITUDE, - ) { + String ELECTRONIC_FENCE_AREA_ID, + String LONGITUDE, + String LATITUDE, + ) { return HttpManager().request( basePath, '/app/eightwork/isInPls', @@ -763,9 +763,9 @@ U6Hzm1ninpWeE+awIDAQAB /// 特殊作业筛选列表 static Future> specialCheckListWorkCount( - Map data, - String url, - ) { + Map data, + String url, + ) { return HttpManager().request( basePath, url, @@ -794,9 +794,9 @@ U6Hzm1ninpWeE+awIDAQAB /// 八项作业流程图 static Future> workGetFlowList( - String workType, - String hotworkId, - ) { + String workType, + String hotworkId, + ) { // 根据 workType 生成对应的字段名,比如 'hotwork' -> 'HOTWORK_ID' final idKey = '${workType.toUpperCase()}_ID'; return HttpManager().request( @@ -809,9 +809,9 @@ U6Hzm1ninpWeE+awIDAQAB /// 作业详情 static Future> getHomeworkFindById( - String workType, - String hotworkId, - ) { + String workType, + String hotworkId, + ) { // 根据 workType 生成对应的字段名,比如 'hotwork' -> 'HOTWORK_ID' final idKey = '${workType.toUpperCase()}_ID'; return HttpManager().request( @@ -838,9 +838,9 @@ U6Hzm1ninpWeE+awIDAQAB /// 气体分析详情列表 static Future> workGasList( - String workType, - String workId, - ) { + String workType, + String workId, + ) { // 根据 workType 生成对应的字段名,比如 'hotwork' -> 'HOTWORK_ID' final idKey = '${workType.toUpperCase()}_ID'; return HttpManager().request( @@ -858,9 +858,9 @@ U6Hzm1ninpWeE+awIDAQAB /// 气体分析详情列表删除 static Future> workGasDelete( - String workType, - String workGasId, - ) { + String workType, + String workGasId, + ) { // 根据 workType 生成对应的字段名,比如 'hotwork' -> 'HOTWORK_ID' final idKey = '${workType.toUpperCase()}GAS_ID'; return HttpManager().request( @@ -877,9 +877,9 @@ U6Hzm1ninpWeE+awIDAQAB /// 所有签名列表 static Future> listSignFinished( - String workType, - String hotworkId, - ) { + String workType, + String hotworkId, + ) { // 根据 workType 生成对应的字段名,比如 'hotwork' -> 'HOTWORK_ID' final idKey = '${workType.toUpperCase()}_ID'; return HttpManager().request( @@ -892,9 +892,9 @@ U6Hzm1ninpWeE+awIDAQAB /// 安全防护措施 static Future> listSignFinishMeasures( - String workType, - String workId, - ) { + String workType, + String workId, + ) { // 根据 workType 生成对应的字段名,比如 'hotwork' -> 'HOTWORK_ID' final idKey = '${workType.toUpperCase()}_ID'; return HttpManager().request( @@ -907,9 +907,9 @@ U6Hzm1ninpWeE+awIDAQAB /// 所有安全防护措施 static Future> listSignFinishAllMeasures( - String workType, + String workType, CUTROAD_ID, - ) { + ) { final String tm = DateTime.now().millisecondsSinceEpoch.toString(); return HttpManager().request( basePath, @@ -925,9 +925,9 @@ U6Hzm1ninpWeE+awIDAQAB /// 安全措施确认 static Future> listSignSureAllMeasures( - String workType, - String homeWorkId, - ) { + String workType, + String homeWorkId, + ) { final String tm = DateTime.now().millisecondsSinceEpoch.toString(); // 根据 workType 生成对应的字段名,比如 'hotwork' -> 'HOTWORK_ID' final idKey = '${workType.toUpperCase()}_ID'; @@ -1010,10 +1010,10 @@ U6Hzm1ninpWeE+awIDAQAB /// 保存或作废气体检测 static Future> saveGasTest( - String workType, - Map formData, - List filePaths, - ) async { + String workType, + Map formData, + List filePaths, + ) async { // 复制一份 formData final data = Map.from(formData); @@ -1034,10 +1034,10 @@ U6Hzm1ninpWeE+awIDAQAB /// 作业票签字下一步 static Future> saveSafeFunctionSure( - String workType, - Map formData, - List filePaths, - ) async { + String workType, + Map formData, + List filePaths, + ) async { // 复制一份 formData final data = Map.from(formData); @@ -1116,8 +1116,8 @@ U6Hzm1ninpWeE+awIDAQAB /// 受限空间台账信息 static Future> getLimitspaceMsssage( - String LIMITSPACE_ID, - ) { + String LIMITSPACE_ID, + ) { return HttpManager().request( basePath, '/app/limitspace/goEdit', @@ -1146,8 +1146,8 @@ U6Hzm1ninpWeE+awIDAQAB /// 受限空间气体分析详情 static Future> getConfinedspacegaswh( - String CONFINEDSPACE_ID, - ) { + String CONFINEDSPACE_ID, + ) { return HttpManager().request( basePath, '/app/confinedspacegaswh/goEdit', @@ -1203,8 +1203,8 @@ U6Hzm1ninpWeE+awIDAQAB /// 重点工程详情 static Future> getKeyProjectDeatail( - String OUTSOURCED_ID, - ) { + String OUTSOURCED_ID, + ) { return HttpManager().request( basePath, '/app/keyProjects/getOutsourced', @@ -1215,9 +1215,9 @@ U6Hzm1ninpWeE+awIDAQAB /// 工程开始结束 static Future> sureKeyProjectState( - String OUTSOURCED_ID, - String State, - ) { + String OUTSOURCED_ID, + String State, + ) { return HttpManager().request( basePath, '/app/keyProjects/updateState', @@ -1246,9 +1246,9 @@ U6Hzm1ninpWeE+awIDAQAB /// 安全检查记录 static Future> getSafeCheckReciordList( - Map data, - String url, - ) { + Map data, + String url, + ) { return HttpManager().request( basePath, url, @@ -1276,8 +1276,8 @@ U6Hzm1ninpWeE+awIDAQAB /// 安全检查 static Future> getSafeCheckGoEdit( - String KEYPROJECTCHECK_ID, - ) { + String KEYPROJECTCHECK_ID, + ) { return HttpManager().request( basePath, '/app/keyprojectcheck/goEdit', @@ -1288,9 +1288,9 @@ U6Hzm1ninpWeE+awIDAQAB /// 安全检查单位现场负责人列表 static Future> getSafeCheckPersonList( - String UNITS_ID, - String NOMAIN, - ) { + String UNITS_ID, + String NOMAIN, + ) { return HttpManager().request( basePath, '/app/keyProjects/listAllPersonnel', @@ -1331,8 +1331,8 @@ U6Hzm1ninpWeE+awIDAQAB /// 安全检查被检查单位 static Future> getSafeCheckToUnitList( - String OUTSOURCED_ID, - ) { + String OUTSOURCED_ID, + ) { return HttpManager().request( basePath, '/app/keyProjects/listAllUnits', @@ -1366,9 +1366,9 @@ U6Hzm1ninpWeE+awIDAQAB /// 重点工程隐患管理列表 static Future> getKeyprojectDangerList( - String url, - Map data, - ) { + String url, + Map data, + ) { return HttpManager().request( basePath, url, @@ -1379,9 +1379,9 @@ U6Hzm1ninpWeE+awIDAQAB /// 重点工程隐患详情 static Future> getKeyprojectDangerFindHidden( - String HIDDEN_ID, - String OUTSOURCED_ID, - ) { + String HIDDEN_ID, + String OUTSOURCED_ID, + ) { return HttpManager().request( basePath, '/app/keyprojectcheck/findHidden', @@ -1392,9 +1392,9 @@ U6Hzm1ninpWeE+awIDAQAB /// 重点工程隐患验收 static Future> checkKeyprojectDanger( - String HIDDEN_ID, - Map data, - ) { + String HIDDEN_ID, + Map data, + ) { return HttpManager().request( basePath, '/app/keyprojectcheck/check', @@ -1411,9 +1411,9 @@ U6Hzm1ninpWeE+awIDAQAB /// 上传图片 static Future> addNormalImgFiles( - String imagePath, - Map data, - ) async { + String imagePath, + Map data, + ) async { final file = File(imagePath); if (!await file.exists()) { throw ApiException('file_not_found', '图片不存在:$imagePath'); @@ -1448,9 +1448,9 @@ U6Hzm1ninpWeE+awIDAQAB /// 重点工程处罚修改隐患 static Future> keyprojectPunishEdit( - Map data, - String ISPUNISH, - ) { + Map data, + String ISPUNISH, + ) { return HttpManager().request( basePath, '/app/keyprojectcheck/editHiddenIspunish', @@ -1491,9 +1491,9 @@ U6Hzm1ninpWeE+awIDAQAB /// 所以安全检查列表 static Future> getSafeCheckSearchList( - Map data, - String url, - ) { + Map data, + String url, + ) { return HttpManager().request( basePath, url, @@ -1512,8 +1512,8 @@ U6Hzm1ninpWeE+awIDAQAB // 安全检查列表详情 static Future> getSafeCheckStartGoEdit( - String INSPECTION_ID, - ) { + String INSPECTION_ID, + ) { return HttpManager().request( basePath, '/app/safetyenvironmental/goEdit', @@ -1524,8 +1524,8 @@ U6Hzm1ninpWeE+awIDAQAB // 安全检查确认列表 static Future> getSafeCheckSureList( - String INSPECTION_ID, - ) { + String INSPECTION_ID, + ) { return HttpManager().request( basePath, '/app/safetyenvironmental/goShow', @@ -1536,10 +1536,10 @@ U6Hzm1ninpWeE+awIDAQAB // 安全检查操作 static Future> SafeCheckStartGoEditMsg( - String imagePath, - String msg, - Map data, - ) async { + String imagePath, + String msg, + Map data, + ) async { Map formData = {...data}; if (imagePath.isNotEmpty) { final file = File(imagePath); @@ -1567,9 +1567,9 @@ U6Hzm1ninpWeE+awIDAQAB // 安全检查核实 static Future> getSafePersonCheck( - Map formData, - String imagePath, - ) async { + Map formData, + String imagePath, + ) async { final file = File(imagePath); if (!await file.exists()) { throw ApiException('file_not_found', '图片不存在:$imagePath'); @@ -1588,9 +1588,9 @@ U6Hzm1ninpWeE+awIDAQAB // 安全检查确认 static Future> getSafePersonSignSure( - Map formData, - String imagePath, - ) async { + Map formData, + String imagePath, + ) async { final file = File(imagePath); if (!await file.exists()) { throw ApiException('file_not_found', '图片不存在:$imagePath'); @@ -1609,8 +1609,8 @@ U6Hzm1ninpWeE+awIDAQAB // 安全检查隐患指派列表 static Future> getSafeCheckDangerList( - String INSPECTION_ID, - ) { + String INSPECTION_ID, + ) { return HttpManager().request( basePath, '/app/hidden/listForSafetyEnvironmental', @@ -1626,9 +1626,9 @@ U6Hzm1ninpWeE+awIDAQAB // 安全检查申辩不成立理由提交 static Future> safeCheckDefendSubmit( - Map formData, - String imagePath, - ) async { + Map formData, + String imagePath, + ) async { final file = File(imagePath); if (!await file.exists()) { throw ApiException('file_not_found', '图片不存在:$imagePath'); @@ -1665,8 +1665,8 @@ U6Hzm1ninpWeE+awIDAQAB // 安全检查申辩记录 static Future> safeCheckDefendRecordList( - String INSPECTION_ID, - ) { + String INSPECTION_ID, + ) { return HttpManager().request( basePath, '/app/safetyenvironmental/getExplain', @@ -1684,11 +1684,11 @@ U6Hzm1ninpWeE+awIDAQAB /// 问题反馈 static Future> setFeedBack( - String backTitle, - String backContent, - String backType, - String imgPaths, - ) { + String backTitle, + String backContent, + String backType, + String imgPaths, + ) { return HttpManager().request( basePath, '/app/feedback/add', @@ -1746,10 +1746,10 @@ U6Hzm1ninpWeE+awIDAQAB /// 隐患整改图片上传 static Future> addImgFiles( - String imagePath, - String type, - String id, - ) async { + String imagePath, + String type, + String id, + ) async { final file = File(imagePath); if (!await file.exists()) { throw ApiException('file_not_found', '图片不存在:$imagePath'); @@ -1789,9 +1789,9 @@ U6Hzm1ninpWeE+awIDAQAB /// 修改密码 static Future> changePassWord( - String oldPwd, - String confirmPwd, - ) { + String oldPwd, + String confirmPwd, + ) { return HttpManager().request( basePath, '/app/user/editUserPwd', @@ -1808,9 +1808,9 @@ U6Hzm1ninpWeE+awIDAQAB /// 获取离岗管理列表 static Future> getDutyManagement( - int showCount, - int currentPage, - ) { + int showCount, + int currentPage, + ) { return HttpManager().request( basePath, '/app/offduty/list?showCount=$showCount¤tPage=$currentPage', @@ -1828,10 +1828,10 @@ U6Hzm1ninpWeE+awIDAQAB /// 通知列表 static Future> getNotifList( - String showCount, - String currentPage, - String keyWord, - ) { + String showCount, + String currentPage, + String keyWord, + ) { return HttpManager().request( basePath, '/app/notice/list', @@ -1849,11 +1849,11 @@ U6Hzm1ninpWeE+awIDAQAB /// 通知列表-企业 static Future> getNotifEnterprise( - String showCount, - String currentPage, - String keyWord, + String showCount, + String currentPage, + String keyWord, String type, - ) { + ) { return HttpManager().request( basePath, '/app/notice/listForCp', @@ -1906,9 +1906,9 @@ U6Hzm1ninpWeE+awIDAQAB /// 更新人脸信息 static Future> reloadMyFace( - String imagePath, - String studentId, - ) async { + String imagePath, + String studentId, + ) async { final file = File(imagePath); if (!await file.exists()) { throw ApiException('file_not_found', '图片不存在:$imagePath'); @@ -1938,10 +1938,10 @@ U6Hzm1ninpWeE+awIDAQAB /// 获取AI预警列表 static Future> getAiAlarmList( - String showCount, - String currentPage, - String keyWord, - ) { + String showCount, + String currentPage, + String keyWord, + ) { return HttpManager().request( basePath, '/app/aiwarning/list?showCount=$showCount¤tPage=$currentPage', @@ -1957,10 +1957,10 @@ U6Hzm1ninpWeE+awIDAQAB /// 离岗申请 static Future> submitApplicationLeaving( - String startTime, - String endTime, - String text, - ) { + String startTime, + String endTime, + String text, + ) { return HttpManager().request( basePath, '/app/offduty/add', @@ -1981,10 +1981,10 @@ U6Hzm1ninpWeE+awIDAQAB /// 离岗审批 static Future> dutyApproval( - String type, - String text, - String itemNum, - ) { + String type, + String text, + String itemNum, + ) { return HttpManager().request( basePath, '/app/offduty/review', @@ -2001,10 +2001,10 @@ U6Hzm1ninpWeE+awIDAQAB /// 离岗取消 static Future> dutyReturned( - String type, - String text, - String itemNum, - ) { + String type, + String text, + String itemNum, + ) { return HttpManager().request( basePath, '/app/offduty/cancel', @@ -2021,9 +2021,9 @@ U6Hzm1ninpWeE+awIDAQAB /// 获取离岗记录列表 static Future> getDepartureRecordList( - int showCount, - int currentPage, - ) { + int showCount, + int currentPage, + ) { return HttpManager().request( basePath, '/app/offduty/list?showCount=$showCount¤tPage=$currentPage', @@ -2041,18 +2041,18 @@ U6Hzm1ninpWeE+awIDAQAB /// 获取隐患治理列表 static Future> getHiddenTreatmentList( - int type, - int currentPage, - String startDate, - String endDate, - String level, - String riskStandard, - String state, - String departmentId, - String correctiveDepartment, - String isIndex, - String keyWord, - ) { + int type, + int currentPage, + String startDate, + String endDate, + String level, + String riskStandard, + String state, + String departmentId, + String correctiveDepartment, + String isIndex, + String keyWord, + ) { return HttpManager().request( basePath, '/app/hidden/listRiskStandard', @@ -2131,8 +2131,8 @@ U6Hzm1ninpWeE+awIDAQAB /// 获取部门负责人列表 static Future> getListTreePersonList( - String DEPARTMENT_ID, - ) { + String DEPARTMENT_ID, + ) { return HttpManager().request( basePath, '/app/sys/listUser', @@ -2220,12 +2220,12 @@ U6Hzm1ninpWeE+awIDAQAB /// 增加本日日程安排 static Future> addRiCheng( - String data, - String title, - String content, - String id, - String urlPath, - ) { + String data, + String title, + String content, + String id, + String urlPath, + ) { return HttpManager().request( basePath, '/app/schedule/$urlPath', @@ -2244,12 +2244,12 @@ U6Hzm1ninpWeE+awIDAQAB /// 获取风险分布列表 static Future> getRiskRecordList( - int currentPage, - String riskId, - String dept, - String level, - String keyWord, - ) { + int currentPage, + String riskId, + String dept, + String level, + String keyWord, + ) { return HttpManager().request( basePath, '/app/riskpoint/list?showCount=-1¤tPage=$currentPage', @@ -2282,10 +2282,10 @@ U6Hzm1ninpWeE+awIDAQAB /// 获取风险分布详情提交坐标 static Future> addCoordinate( - String id, - String longitude, - String latitude, - ) { + String id, + String longitude, + String latitude, + ) { return HttpManager().request( basePath, '/app/riskpoint/editLonAndLat', @@ -2345,10 +2345,10 @@ U6Hzm1ninpWeE+awIDAQAB /// 提交隐患整改 static Future> rectificationSubmission( - String id, - String buMenId, - String renYuanId, - ) { + String id, + String buMenId, + String renYuanId, + ) { return HttpManager().request( basePath, '/app/hidden/editRec', @@ -2365,10 +2365,10 @@ U6Hzm1ninpWeE+awIDAQAB /// 提交隐患整改 static Future> rectificationSubmissionTwo( - String id, - String buMenId, - String renYuanId, - ) { + String id, + String buMenId, + String renYuanId, + ) { return HttpManager().request( basePath, '/app/customHidden/editRec', @@ -2385,23 +2385,23 @@ U6Hzm1ninpWeE+awIDAQAB /// 提交隐患整改 static Future> normalRectificationSubmission( - String dataTime, - String miaoShu, - String acceptedPrepareType, - String acceptedPlanType, - String id, - String caertTime, - String listName, - String standard, - String method, - String fund, - String person, - String workTime, - String time, - String work, - String other, - String json, - ) { + String dataTime, + String miaoShu, + String acceptedPrepareType, + String acceptedPlanType, + String id, + String caertTime, + String listName, + String standard, + String method, + String fund, + String person, + String workTime, + String time, + String work, + String other, + String json, + ) { // print("============>"+ dataTime+ miaoShu+ acceptedPrepareType+ acceptedPlanType+ // id+ caertTime+ listName+ standard+ method+ fund+ person+ // workTime+ time+ work+ other+ json); @@ -2437,23 +2437,23 @@ U6Hzm1ninpWeE+awIDAQAB /// 提交隐患整改 static Future> normalRectificationSubmissionTwo( - String dataTime, - String miaoShu, - String acceptedPrepareType, - String acceptedPlanType, - String id, - String caertTime, - String listName, - String standard, - String method, - String fund, - String person, - String workTime, - String time, - String work, - String other, - String json, - ) { + String dataTime, + String miaoShu, + String acceptedPrepareType, + String acceptedPlanType, + String id, + String caertTime, + String listName, + String standard, + String method, + String fund, + String person, + String workTime, + String time, + String work, + String other, + String json, + ) { // print("============>"+ dataTime+ miaoShu+ acceptedPrepareType+ acceptedPlanType+ // id+ caertTime+ listName+ standard+ method+ fund+ person+ // workTime+ time+ work+ other+ json); @@ -2503,24 +2503,24 @@ U6Hzm1ninpWeE+awIDAQAB /// 上传隐患快报 static Future> addRiskListCheckApp( - String hazardDescription, - String partDescription, - String latitude, - String longitude, - String dangerDetail, - String dataTime, - String type, - String responsibleId, - String yinHuanTypeIds, - String hazardLeve, - String buMenId, - String buMenPDId, - String yinHuanTypeNames, - String hiddenType1, - String hiddenType2, - String hiddenType3, + String hazardDescription, + String partDescription, + String latitude, + String longitude, + String dangerDetail, + String dataTime, + String type, + String responsibleId, + String yinHuanTypeIds, + String hazardLeve, + String buMenId, + String buMenPDId, + String yinHuanTypeNames, + String hiddenType1, + String hiddenType2, + String hiddenType3, Map data, - ) { + ) { return HttpManager().request( @@ -2582,13 +2582,13 @@ U6Hzm1ninpWeE+awIDAQAB /// 提交隐患验收接口 static Future> addHazardAcceptance( - String type, - String miaoshu, - String dataTime, - String id, - ) { + String type, + String miaoshu, + String dataTime, + String id, + ) { return HttpManager().request( - basePath, + basePath, '/app/hidden/riskListCheckInspection', method: Method.post, data: { @@ -2631,16 +2631,16 @@ U6Hzm1ninpWeE+awIDAQAB /// 隐患检查列表 static Future> getHazardInspectionRecordList( - int currentPage, - String keyWord, - String id, - String dept, - String starDate, - String endDate, - String periodId, - String userName, - String typeId, - ) { + int currentPage, + String keyWord, + String id, + String dept, + String starDate, + String endDate, + String periodId, + String userName, + String typeId, + ) { return HttpManager().request( basePath, '/app/listmanager/recordList?showCount=-1¤tPage=$currentPage', @@ -2663,16 +2663,16 @@ U6Hzm1ninpWeE+awIDAQAB /// 标准排查列表 static Future> getStandardInvestigationRecordList( - int currentPage, - String keyWord, - String id, - String dept, - String starDate, - String endDate, - String periodId, - String userName, - String typeId, - ) { + int currentPage, + String keyWord, + String id, + String dept, + String starDate, + String endDate, + String periodId, + String userName, + String typeId, + ) { return HttpManager().request( basePath, '/app/hiddenDangerCheckStandardCustom/recordList?showCount=-1¤tPage=$currentPage', @@ -2723,9 +2723,9 @@ U6Hzm1ninpWeE+awIDAQAB /// 获取检查记录列表 static Future> getCheckRecordListOne( - String id, - String keyword, - ) { + String id, + String keyword, + ) { return HttpManager().request( basePath, '/app/checkrecord/list', @@ -2741,9 +2741,9 @@ U6Hzm1ninpWeE+awIDAQAB /// 获取检查记录列表 static Future> getCheckRecordList( - String id, - String keyword, - ) { + String id, + String keyword, + ) { return HttpManager().request( basePath, '/app/customCheckRecord/list', @@ -2780,7 +2780,7 @@ U6Hzm1ninpWeE+awIDAQAB data: { "CHECKRECORD_ID": id, "CORPINFO_ID": SessionService.instance.corpinfoId, - "USER_ID": SessionService.instance.loginUserId, + // "USER_ID": SessionService.instance.loginUserId, }, ); } @@ -2808,7 +2808,7 @@ U6Hzm1ninpWeE+awIDAQAB data: { "CHECKRECORD_ID": id, "CORPINFO_ID": SessionService.instance.corpinfoId, - "USER_ID": SessionService.instance.loginUserId, + // "USER_ID": SessionService.instance.loginUserId, }, ); } @@ -2830,9 +2830,9 @@ U6Hzm1ninpWeE+awIDAQAB /// 获取标准排查列表 static Future> getStandardInvestigationList( - String id, - String keyWord, - ) { + String id, + String keyWord, + ) { return HttpManager().request( basePath, '/app/hiddenDangerCheckStandardCustom/checkList', @@ -2851,9 +2851,9 @@ U6Hzm1ninpWeE+awIDAQAB /// 获取隐患排查列表 static Future> getHazardInvestigationList( - String id, - String keyWord, - ) { + String id, + String keyWord, + ) { return HttpManager().request( basePath, '/app/listmanager/checkListV2', @@ -2964,26 +2964,26 @@ U6Hzm1ninpWeE+awIDAQAB /// 暂存隐患记录 static Future> temporaryStorageOfHidden( - String msg, - item, - unqualifiedInspectionItemID, - String hazardDescription, - String partDescription, - String latitude, - String longitude, - String dangerDetail, - String dataTime, - String type, - String responsibleId, - String yinHuanTypeIds, - String hazardLeve, - String buMenId, - String buMenPDId, - String yinHuanTypeNames, - String hiddenType1, - String hiddenType2, - String hiddenType3, - ) { + String msg, + item, + unqualifiedInspectionItemID, + String hazardDescription, + String partDescription, + String latitude, + String longitude, + String dangerDetail, + String dataTime, + String type, + String responsibleId, + String yinHuanTypeIds, + String hazardLeve, + String buMenId, + String buMenPDId, + String yinHuanTypeNames, + String hiddenType1, + String hiddenType2, + String hiddenType3, + ) { print("======>$type"); return HttpManager().request( basePath, @@ -3050,13 +3050,13 @@ U6Hzm1ninpWeE+awIDAQAB /// 提交排查项 static Future> submitInvestigationItems( - item, - String longitude, - String latitude, - String itemsString, - String idsString, - String checkrecordId, - ) { + item, + String longitude, + String latitude, + String itemsString, + String idsString, + String checkrecordId, + ) { return HttpManager().request( basePath, '/app/customCheckRecord/add', @@ -3093,26 +3093,26 @@ U6Hzm1ninpWeE+awIDAQAB /// 暂存其他隐患记录 static Future> checkInformationOneItemData( - String msg, - String id, - unqualifiedInspectionItemID, - String hazardDescription, - String partDescription, - String latitude, - String longitude, - String dangerDetail, - String dataTime, - String type, - String responsibleId, - String yinHuanTypeIds, - String hazardLeve, - String buMenId, - String buMenPDId, - String yinHuanTypeNames, - String hiddenType1, - String hiddenType2, - String hiddenType3, - ) { + String msg, + String id, + unqualifiedInspectionItemID, + String hazardDescription, + String partDescription, + String latitude, + String longitude, + String dangerDetail, + String dataTime, + String type, + String responsibleId, + String yinHuanTypeIds, + String hazardLeve, + String buMenId, + String buMenPDId, + String yinHuanTypeNames, + String hiddenType1, + String hiddenType2, + String hiddenType3, + ) { print("======>$type"); return HttpManager().request( basePath, @@ -3153,12 +3153,12 @@ U6Hzm1ninpWeE+awIDAQAB /// 提交排查项 static Future> customCheckRecordFinish( - String time, - String text, - String CHECKRECORD_ID, - String id, - String json, - ) { + String time, + String text, + String CHECKRECORD_ID, + String id, + String json, + ) { return HttpManager().request( basePath, '/app/customCheckRecord/finish', @@ -3193,8 +3193,8 @@ U6Hzm1ninpWeE+awIDAQAB /// 获取隐患排查暂存隐患记录 static Future> getYinHuanTemporaryStorageOfHidden( - String id, - ) { + String id, + ) { return HttpManager().request( basePath, '/app/hidden/goRiskListCheckEdit', @@ -3209,27 +3209,27 @@ U6Hzm1ninpWeE+awIDAQAB /// 暂存隐患排查隐患记录 static Future> temporaryStorageOfHiddenYinHuan( - String msg, - item, - unqualifiedInspectionItemID, - String hazardDescription, - String partDescription, - String latitude, - String longitude, - String dangerDetail, - String dataTime, - String type, - String responsibleId, - String yinHuanTypeIds, - String hazardLeve, - String buMenId, - String buMenPDId, - String yinHuanTypeNames, - String hiddenType1, - String hiddenType2, - String hiddenType3, - result, - ) { + String msg, + item, + unqualifiedInspectionItemID, + String hazardDescription, + String partDescription, + String latitude, + String longitude, + String dangerDetail, + String dataTime, + String type, + String responsibleId, + String yinHuanTypeIds, + String hazardLeve, + String buMenId, + String buMenPDId, + String yinHuanTypeNames, + String hiddenType1, + String hiddenType2, + String hiddenType3, + result, + ) { print("======>$type"); return HttpManager().request( @@ -3262,7 +3262,8 @@ U6Hzm1ninpWeE+awIDAQAB "HIDDENTYPE": yinHuanTypeIds, "HIDDENLEVEL": hazardLeve, "RECTIFICATIONDEPT": buMenId, - "HIDDENFINDDEPT": buMenPDId.isNotEmpty ? buMenPDId : buMenId, + // "HIDDENFINDDEPT": buMenPDId.isNotEmpty ? buMenPDId : buMenId, + "HIDDENFINDDEPT":buMenId, "CREATOR": SessionService.instance.loginUserId, "CLEARIMG": '1', @@ -3278,13 +3279,13 @@ U6Hzm1ninpWeE+awIDAQAB /// 提交隐患排查排查项 static Future> submitInvestigationItemsYinHuan( - item, - String longitude, - String latitude, - String itemsString, - String idsString, - String checkrecordId, - ) { + item, + String longitude, + String latitude, + String itemsString, + String idsString, + String checkrecordId, + ) { return HttpManager().request( basePath, '/app/checkrecord/add', @@ -3308,8 +3309,8 @@ U6Hzm1ninpWeE+awIDAQAB /// 获取隐患排查项 static Future> getCheckInformationListYinHuan( - String id, - ) { + String id, + ) { return HttpManager().request( basePath, '/app/hidden/getOtherHidden', @@ -3324,12 +3325,12 @@ U6Hzm1ninpWeE+awIDAQAB /// 提交隐患排查项 static Future> customCheckRecordFinishYinHuan( - String time, - String text, - String CHECKRECORD_ID, - String id, - String json, - ) { + String time, + String text, + String CHECKRECORD_ID, + String id, + String json, + ) { return HttpManager().request( basePath, '/app/checkrecord/finish', @@ -3348,8 +3349,8 @@ U6Hzm1ninpWeE+awIDAQAB /// 获取暂存隐患记录 static Future> getTemporaryStorageOfHiddenYinHuan( - String id, - ) { + String id, + ) { return HttpManager().request( basePath, '/app/hidden/goEdit', @@ -3364,26 +3365,26 @@ U6Hzm1ninpWeE+awIDAQAB /// 暂存其他隐患记录 static Future> checkInformationOneItemDataYinHuan( - String msg, - String id, - unqualifiedInspectionItemID, - String hazardDescription, - String partDescription, - String latitude, - String longitude, - String dangerDetail, - String dataTime, - String type, - String responsibleId, - String yinHuanTypeIds, - String hazardLeve, - String buMenId, - String buMenPDId, - String yinHuanTypeNames, - String hiddenType1, - String hiddenType2, - String hiddenType3, - ) { + String msg, + String id, + unqualifiedInspectionItemID, + String hazardDescription, + String partDescription, + String latitude, + String longitude, + String dangerDetail, + String dataTime, + String type, + String responsibleId, + String yinHuanTypeIds, + String hazardLeve, + String buMenId, + String buMenPDId, + String yinHuanTypeNames, + String hiddenType1, + String hiddenType2, + String hiddenType3, + ) { print("======>$type"); return HttpManager().request( basePath, @@ -3423,9 +3424,9 @@ U6Hzm1ninpWeE+awIDAQAB /// 获取安全例会列表 static Future> getSafetyMeetingList( - int page, - int selectedTab, - ) { + int page, + int selectedTab, + ) { return HttpManager().request( basePath, '/app/safetyMeeting/list?selectType=$selectedTab&showCount=10¤tPage=$page', @@ -3452,9 +3453,9 @@ U6Hzm1ninpWeE+awIDAQAB /// 提交安全例会详情 static Future> setSafetyMeetDetailFeedback( - String id, - String text, - ) { + String id, + String text, + ) { return HttpManager().request( basePath, '/app/safetyMeeting/confirm', @@ -3469,9 +3470,9 @@ U6Hzm1ninpWeE+awIDAQAB /// 安全例会详情图片 static Future> addSafetyMeetDetailFeedBack( - String imagePath, - String id, - ) async { + String imagePath, + String id, + ) async { final file = File(imagePath); if (!await file.exists()) { throw ApiException('file_not_found', '图片不存在:$imagePath'); @@ -3492,9 +3493,9 @@ U6Hzm1ninpWeE+awIDAQAB /// 获取设备巡检列表 static Future> getEquipmentInspectionList( - int page, - int selectedTab, - ) { + int page, + int selectedTab, + ) { return HttpManager().request( basePath, '/app/specialequipmentaqxj/list?showCount=100¤tPage=$page', @@ -3510,9 +3511,9 @@ U6Hzm1ninpWeE+awIDAQAB /// 开始巡检 static Future> startInspection( - Map formData, - List filePaths, - ) async { + Map formData, + List filePaths, + ) async { // 复制一份 formData final data = Map.from(formData); @@ -3533,9 +3534,9 @@ U6Hzm1ninpWeE+awIDAQAB /// 设备巡检记录 static Future> getEquipmentDetailList( - String id, - int selectedTab, - ) { + String id, + int selectedTab, + ) { return HttpManager().request( basePath, '/app/specialequipmentaqxj/listByEquipment', @@ -3566,10 +3567,10 @@ U6Hzm1ninpWeE+awIDAQAB /// 获取公司安全承诺列表 static Future> getCompanySafetyCommitmentList( - int page, - String keyWord, - String id, - ) { + int page, + String keyWord, + String id, + ) { return HttpManager().request( basePath, '/app/commitmentcompany/list?showCount=-1¤tPage=$page', @@ -3586,10 +3587,10 @@ U6Hzm1ninpWeE+awIDAQAB /// 获取车间安全承诺列表 static Future> getWorkshopSafetyCommitmentList( - int page, - String keyWord, - String id, - ) { + int page, + String keyWord, + String id, + ) { return HttpManager().request( basePath, '/app/commitmentworkshop/list?showCount=-1¤tPage=$page', @@ -3606,9 +3607,9 @@ U6Hzm1ninpWeE+awIDAQAB /// 其他承诺 static Future> getWorkshopSafetyOtherCommitmen( - String PROMISE_ID, - String PROMISEPEOPLE_ID, - ) { + String PROMISE_ID, + String PROMISEPEOPLE_ID, + ) { return HttpManager().request( basePath, '/app/corppromise/goEdit_II', @@ -3618,8 +3619,8 @@ U6Hzm1ninpWeE+awIDAQAB } static Future> getWorkshopSafetyOthercorppromise( - String PROMISEPEOPLE_ID, - ) { + String PROMISEPEOPLE_ID, + ) { return HttpManager().request( basePath, '/app/corppromise/editIsRead_II', @@ -3630,10 +3631,10 @@ U6Hzm1ninpWeE+awIDAQAB /// 获取班组安全承诺列表 static Future> getTeamSafetyCommitmentList( - int page, - String keyWord, - String id, - ) { + int page, + String keyWord, + String id, + ) { return HttpManager().request( basePath, '/app/commitment/team/list?showCount=-1¤tPage=$page', @@ -3650,8 +3651,8 @@ U6Hzm1ninpWeE+awIDAQAB /// 获取公司安全承诺列表-验证申请 static Future> getCompanySafetyCommitmentPermission( - String id, - ) { + String id, + ) { return HttpManager().request( basePath, '/app/commitmentcompany/check', @@ -3666,8 +3667,8 @@ U6Hzm1ninpWeE+awIDAQAB /// 获取车间安全承诺列表-验证申请 static Future> getWorkshopSafetyCommitmentPermission( - String id, - ) { + String id, + ) { return HttpManager().request( basePath, '/app/commitmentworkshop/check', @@ -3682,8 +3683,8 @@ U6Hzm1ninpWeE+awIDAQAB /// 获取班组安全承诺列表-验证申请 static Future> getTeamSafetyCommitmentPermission( - String id, - ) { + String id, + ) { return HttpManager().request( basePath, '/app/commitment/team/check', @@ -3698,9 +3699,9 @@ U6Hzm1ninpWeE+awIDAQAB /// 公司安全承诺-提交 static Future> upCompanySafetyCommitmentApply( - Map formData, - List filePaths, - ) async { + Map formData, + List filePaths, + ) async { // 复制一份 formData final data = Map.from(formData); @@ -3721,9 +3722,9 @@ U6Hzm1ninpWeE+awIDAQAB /// 获取车间安全承诺列表-提交 static Future> upWorkshopSafetyCommitmentApply( - Map formData, - List filePaths, - ) async { + Map formData, + List filePaths, + ) async { // 复制一份 formData final data = Map.from(formData); @@ -3744,9 +3745,9 @@ U6Hzm1ninpWeE+awIDAQAB /// 获取班组安全承诺列表-提交 static Future> upTeamSafetyCommitmentApply( - Map formData, - List filePaths, - ) async { + Map formData, + List filePaths, + ) async { // 复制一份 formData final data = Map.from(formData); @@ -3767,8 +3768,8 @@ U6Hzm1ninpWeE+awIDAQAB /// 获取公司安全承诺列表-详情 static Future> getCompanySafetyCommitmentDetail( - String id, - ) { + String id, + ) { return HttpManager().request( basePath, '/app/commitmentcompany/goEdit', @@ -3783,8 +3784,8 @@ U6Hzm1ninpWeE+awIDAQAB /// 获取车间安全承诺列表-详情 static Future> getWorkshopSafetyCommitmentDetail( - String id, - ) { + String id, + ) { return HttpManager().request( basePath, '/app/commitmentworkshop/goEdit', @@ -3866,8 +3867,8 @@ U6Hzm1ninpWeE+awIDAQAB /// 管道设备列表 static Future> getNfcEquipmentPipelineListAll( - String PIPELINE_AREA_ID, - ) { + String PIPELINE_AREA_ID, + ) { return HttpManager().request( basePath, '/app/pipelineInspection/getEquipmentPipelineListAll', @@ -3896,9 +3897,9 @@ U6Hzm1ninpWeE+awIDAQAB ///NFC任务列表 static Future> nfcTaskList( - int showCount, - int currentPage, - ) { + int showCount, + int currentPage, + ) { return HttpManager().request( basePath, '/app/pipelineInspection/getPatrolTaskList?showCount=$showCount¤tPage=$currentPage', @@ -3914,10 +3915,10 @@ U6Hzm1ninpWeE+awIDAQAB ///NFC任务详情 static Future> nfcTaskDetailList( - int showCount, - int currentPage, - Map data, - ) { + int showCount, + int currentPage, + Map data, + ) { return HttpManager().request( basePath, '/app/pipelineInspection/getPatrolTaskDetailList?showCount=$showCount¤tPage=$currentPage', @@ -3959,8 +3960,8 @@ U6Hzm1ninpWeE+awIDAQAB } /// NFC问题反馈 static Future> nfcFeedBack( - Map data, - ) async { + Map data, + ) async { return HttpManager().request( basePath, '/app/pipelineInspection/nfcExceptionRecordAdd',