| | |
| | | link.download = `受理回执书_${new Date().getTime()}.png`; |
| | | link.href = imgData; |
| | | link.click(); |
| | | |
| | | console.log('上传图片'); |
| | | // 同时上传图片到后台 |
| | | // await uploadReceiptImage(canvas); |
| | | |
| | | await uploadReceiptImage(canvas); |
| | | console.log('上传图片完成'); |
| | | setIsShowModal(false); |
| | | if (isModalSelfAccept) { |
| | | getRiskResult({ caseId: id, caseText: (isShowModalData.caseDes || '') + '/n' + (isShowModalData.caseClaim || '') }); |
| | |
| | | |
| | | // 获取上传URL |
| | | const appUrl = $$.appUrl; |
| | | const uploadUrl = `${appUrl.fileUrl}/${appUrl.sys}/api/web/fileInfo/upload?mainId=${id}&ownerId=${id}&ownerType=22_00018-600`; |
| | | const uploadUrl = `${appUrl.fileUrl}/${appUrl.sys}/api/web/fileInfo/upload?mainId=${id}&ownerId=${id}&ownerType=22_00018-101`; |
| | | |
| | | // 发送上传请求 |
| | | const response = await fetch(uploadUrl, { |