2026.4.28 重点作业
parent
fbec3d4b89
commit
54a1947eae
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue