2026.4.28 重点作业

master
xufei 2026-04-28 17:17:40 +08:00
parent fbec3d4b89
commit 54a1947eae
1 changed files with 4 additions and 3 deletions

View File

@ -233,7 +233,7 @@ class _KeyTaskesCheckConfirmPageState extends State<KeyTaskesCheckConfirmPage> {
maxSizeInBytes: 20 * 1024 * 1024, maxSizeInBytes: 20 * 1024 * 1024,
allowedExtensions: ['pdf'], allowedExtensions: ['pdf'],
allowMultipleFiles: false, allowMultipleFiles: false,
// showPhotoSelect: false, showPhotoSelect: false,
); );
if (picked.isNotEmpty && picked.first.path != null) { if (picked.isNotEmpty && picked.first.path != null) {
@ -445,8 +445,9 @@ class _KeyTaskesCheckConfirmPageState extends State<KeyTaskesCheckConfirmPage> {
// checkData['status'] = 1; // checkData['status'] = 1;
checkData['signatureTime'] = signTimes.first; checkData['signatureTime'] = signTimes.first;
checkData['isDefend'] = chooseCheckType ? 0 : 1; checkData['isDefend'] = chooseCheckType ? 1 : 0;
checkData['inspectionId'] = widget.inspectionId; checkData['inspectionId'] = widget.inspectionId;
try { try {
final result = await KeyTasksApi.setKeyTasksCheckConfirm(checkData); final result = await KeyTasksApi.setKeyTasksCheckConfirm(checkData);
if (result['success']) { if (result['success']) {
@ -504,7 +505,7 @@ class _KeyTaskesCheckConfirmPageState extends State<KeyTaskesCheckConfirmPage> {
await FileApi.uploadFiles([choosefile.path ?? ''], fileType, checkData['inspectionId'] ?? '').then((result) { await FileApi.uploadFiles([choosefile.path ?? ''], fileType, checkData['inspectionId'] ?? '').then((result) {
if (result['success']) { if (result['success']) {
// //
checkData['fileUrl'] = result['data']['filePath'] ?? ''; checkData['fileUrl'] = result['data']['fileList'][0]['filePath'] ?? '';
isSuccess = true; isSuccess = true;
} else { } else {
LoadingDialogHelper.hide(); LoadingDialogHelper.hide();