4.1 同步发版内容到天梯
This commit is contained in:
@ -4,9 +4,7 @@ import ProCard from '@ant-design/pro-card';
|
||||
import Weboffice from "@/pages/webOffice/weboffice";
|
||||
|
||||
import ExtendUpload from "@/utils/ExtendUpload";
|
||||
import { getThisFileBidList } from "@/pages/Calibration/ProjectManager/ResultNotice/service";
|
||||
import WebOffice0609, { WebOfficeRefProps } from '@/pages/webOffice/weboffice0609';
|
||||
import { getFileListByBid } from '../service';
|
||||
|
||||
interface JgtzsModalProps {
|
||||
title: any;
|
||||
@ -135,6 +133,7 @@ const JgtzsModal: React.FC<JgtzsModalProps> = (props) => {
|
||||
PDFFileCode={PDFfileCode}
|
||||
savePDF={true}
|
||||
webOfficeRef={ref}
|
||||
fileName={`${values?.sectionName}-${values?.bidSectBizNum}-预审结果通知书-${values?.supplierCompanyName}`}
|
||||
/>
|
||||
) : null}
|
||||
</ProCard>
|
||||
|
@ -19,6 +19,7 @@ import {
|
||||
} from "./service"
|
||||
import { btnAuthority } from "@/utils/authority";
|
||||
import { getFwftzsSendList } from "@/pages/Calibration/ProjectManager/ResultNotice/service";
|
||||
import { getSectionDataById } from '@/services/common';
|
||||
|
||||
|
||||
const ResultNotice: React.FC<any> = (props) => {
|
||||
@ -174,8 +175,10 @@ const ResultNotice: React.FC<any> = (props) => {
|
||||
// }
|
||||
|
||||
const clickJgtzs = (params: { reviewId?: any; rnoticeId?: any; formDisabled: any; }) => {
|
||||
getJgtzsValues(params).then((res) => {
|
||||
getJgtzsValues(params).then(async (res) => {
|
||||
if (res.success === true) {
|
||||
const sectionData = await getSectionDataById(res.data.sectionId);
|
||||
res.data.bidSectBizNum = sectionData?.code == 200 ? sectionData.data.bidSectBizNum : null;
|
||||
setJgtzsValues(res.data);
|
||||
setjgtzsFormDisabled(params.formDisabled);
|
||||
setJgtzsFormVisible(true);
|
||||
|
@ -73,15 +73,4 @@ export async function sendFinisCalibration(params: any) {
|
||||
...params
|
||||
}
|
||||
})
|
||||
}
|
||||
/**
|
||||
* 根据bid获取文件列表
|
||||
* @param params
|
||||
*/
|
||||
export async function getFileListByBid(params: any) {
|
||||
|
||||
return request('/api/core-service-ebtp-updownload/v1/attachment/find', {
|
||||
method: 'POST',
|
||||
data: {...params}
|
||||
});
|
||||
}
|
@ -3,8 +3,7 @@ import { Modal, Button } from 'antd';
|
||||
import PDF from 'react-pdf-js';
|
||||
import ProCard from '@ant-design/pro-card';
|
||||
import FileDown from '@/utils/Download';
|
||||
|
||||
import { checkFileExist } from "../service"
|
||||
import { getDownloadFileUrl, getFileListByBid } from '@/utils/DownloadUtils';
|
||||
|
||||
interface PreviewJgtzsModalProps {
|
||||
fileId: string,
|
||||
@ -19,7 +18,7 @@ const PreviewJgtzsModal: React.FC<PreviewJgtzsModalProps> = (props) => {
|
||||
const [fileExist, setFileExist] = useState<string>("0");//0:未验证,1:验证后有,2:验证后没有
|
||||
|
||||
useEffect(() => {
|
||||
checkFileExist(fileId).then(res => {
|
||||
getFileListByBid(fileId).then(res => {
|
||||
if (res !== undefined && res.length > 0) {
|
||||
setFileExist("1");
|
||||
} else {
|
||||
@ -39,10 +38,6 @@ const PreviewJgtzsModal: React.FC<PreviewJgtzsModalProps> = (props) => {
|
||||
const handleNext = () => {
|
||||
setPage(page + 1);
|
||||
}
|
||||
const downLoadFile = (fileId: string) => {
|
||||
const returnUrl = "/api/core-service-ebtp-updownload/v1/attachment/download/bid/" + fileId;
|
||||
return returnUrl;
|
||||
}
|
||||
const modalHeight = window.innerHeight * 96 / 100;
|
||||
|
||||
return (
|
||||
@ -65,7 +60,7 @@ const PreviewJgtzsModal: React.FC<PreviewJgtzsModalProps> = (props) => {
|
||||
<FileDown
|
||||
key="downLoadFile"
|
||||
type="pdf"
|
||||
apiUrl={downLoadFile(fileId)}
|
||||
objectId={fileId}
|
||||
style={{ "float": "left" }}
|
||||
fileName={"资审结果通知书"}
|
||||
btnName="下载"
|
||||
@ -87,7 +82,7 @@ const PreviewJgtzsModal: React.FC<PreviewJgtzsModalProps> = (props) => {
|
||||
) : fileExist == "1" ? (
|
||||
<>
|
||||
<PDF
|
||||
file={downLoadFile(fileId)}
|
||||
file={getDownloadFileUrl(fileId)}
|
||||
scale={1.6}
|
||||
onDocumentComplete={onDocumentComplete}
|
||||
page={page}
|
||||
|
@ -11,13 +11,6 @@ export async function getSubViewNoticeList(params:any) {
|
||||
})
|
||||
}
|
||||
|
||||
//检验文档中心是否存在该文档
|
||||
export async function checkFileExist(fileId?:any) {
|
||||
return request('/api/core-service-ebtp-updownload/v1/attachment/find/bid/'+fileId,{
|
||||
method:'GET' ,
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取单条结果通知书数据
|
||||
* @param id
|
||||
|
Reference in New Issue
Block a user