4.1 同步发版内容到天梯

This commit is contained in:
jl-zhoujl2
2022-04-01 20:06:34 +08:00
parent a3b939d154
commit 7b3efe00dd
128 changed files with 929 additions and 5029 deletions

View File

@ -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>

View File

@ -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);

View File

@ -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}
});
}

View File

@ -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}

View File

@ -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