diff --git a/lib/pages/home/doorAndCar/car/doorArea_car_add_page.dart b/lib/pages/home/doorAndCar/car/doorArea_car_add_page.dart index 73e497a..1909a72 100644 --- a/lib/pages/home/doorAndCar/car/doorArea_car_add_page.dart +++ b/lib/pages/home/doorAndCar/car/doorArea_car_add_page.dart @@ -577,7 +577,7 @@ class _DoorareaCarAddPageState extends State { for(int i=0;i { for(int i=0;i { for(int i=0;i { for(int i=0;i { maxSizeInBytes: 20 * 1024 * 1024, allowedExtensions: ['pdf'], allowMultipleFiles: false, - // showPhotoSelect: false, + showPhotoSelect: false, ); if (picked.isNotEmpty && picked.first.path != null) { @@ -445,8 +445,10 @@ class _KeyTaskesCheckConfirmPageState extends State { // checkData['status'] = 1; checkData['signatureTime'] = signTimes.first; - checkData['isDefend'] = chooseCheckType ? 0 : 1; + checkData['isDefend'] = chooseCheckType ? 1 : 0; checkData['inspectionId'] = widget.inspectionId; + checkData['id'] = SessionService.instance.accountId; + try { final result = await KeyTasksApi.setKeyTasksCheckConfirm(checkData); if (result['success']) { @@ -504,7 +506,7 @@ class _KeyTaskesCheckConfirmPageState extends State { await FileApi.uploadFiles([choosefile.path ?? ''], fileType, checkData['inspectionId'] ?? '').then((result) { if (result['success']) { // 检查人签字 - checkData['fileUrl'] = result['data']['filePath'] ?? ''; + checkData['fileUrl'] = result['data']['fileList'][0]['filePath'] ?? ''; isSuccess = true; } else { LoadingDialogHelper.hide();