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

@ -89,16 +89,6 @@ export async function qxtopById(id: any) {
});
}
//检验文档中心是否存在该文档
export async function checkFileExist(fileId?:any) {
return request('/api/core-service-ebtp-updownload/v1/attachment/find/bid/'+fileId,{
method:'GET' ,
})
}
/**
* 获取省区
* @param pId

View File

@ -87,11 +87,4 @@ export async function qxtopById(id: any) {
return request('/api/biz-service-ebtp-extend/v1/bizbidnotice/qxtop/' + id,{
method: 'POST',
});
}
//检验文档中心是否存在该文档
export async function checkFileExist(fileId?:any) {
return request('/api/core-service-ebtp-updownload/v1/attachment/find/bid/'+fileId,{
method:'GET' ,
})
}

View File

@ -16,9 +16,9 @@ import AuctionImage from './AuctionImage';
import CountDownUtils from './CountDownUtils';
import '../auctionParts.less';
import { getProId, getSessionRoleData } from '@/utils/session';
import { getBidFile } from '@/pages/Tender/supplier/LookingForBusinessOpportunities/service';
import { downloadAttachmentPathOId, getDownloadToken } from '@/utils/DownloadUtils';
import { pictureDisplayPath } from '@/utils/DownloadUtils';
import { algebraicAddition, digitalConversionAmount } from '@/utils/NumberUtils';
import { getFilelist } from '@/services/download_';
const { TabPane } = Tabs;
//定时器间隔时间
@ -65,7 +65,6 @@ const AuctionViewAuctions: React.FC = () => {
const [auctionImage, setAuctionImage] = useState<string[]>([]);
//显示图片
const [auctionImageFlag, setAuctionImageFlag] = useState<boolean>(false);
let downloadToken = getDownloadToken();
const cjColumns = [
{
title: '序号',
@ -238,7 +237,7 @@ const AuctionViewAuctions: React.FC = () => {
// offerAPriceSet(Number(data.inner02_04));//出价
//公告数据
setNoticeData(
<div style={{paddingLeft: '25px'}}>
<div style={{ paddingLeft: '25px' }}>
<span dangerouslySetInnerHTML={{ __html: data.gg.htmlContent }}></span>
<br />
<br />
@ -272,11 +271,12 @@ const AuctionViewAuctions: React.FC = () => {
}
const findFile = (id: string) => {
getBidFile(id).then(res => {
let data = isEmpty(res) ? [] : res;
getFilelist([id]).then(res => {
let arr = []
for (const item of data) {
arr.push(downloadAttachmentPathOId + item.id);
if (res?.success && res?.data.length > 0) {
for (const item of res?.data) {
arr.push(pictureDisplayPath + '?filePath=' + item.filePath);
}
}
setAuctionImage(arr);
setAuctionImageFlag(true);
@ -303,7 +303,7 @@ const AuctionViewAuctions: React.FC = () => {
return;
}
// let differ = (Number(value) - Number(currentPrice)) % range
let differ = (value*1000- currentPrice*1000) % (range*1000)
let differ = (value * 1000 - currentPrice * 1000) % (range * 1000)
if (differ !== 0) {
message.info('请增加加价幅度整数倍的金额!');
return;
@ -368,8 +368,8 @@ const AuctionViewAuctions: React.FC = () => {
<span className="stateIco"></span>
<span className="staeTime">
&nbsp;
<CountDownUtils countDown={countDownTime} countDownOver={() => countDownOver()} />{delay}
</span>
<CountDownUtils countDown={countDownTime} countDownOver={() => countDownOver()} />{delay}
</span>
</>
)
@ -387,7 +387,7 @@ const AuctionViewAuctions: React.FC = () => {
(viewStatus === '1' && !overFlag) && (
<>
<span></span>
<Input type="text" maxLength={15} value={offerAPrice} autoComplete='off'
<Input type="text" maxLength={15} value={offerAPrice} autoComplete='off'
onChange={(e) => offerAPriceSet(e.target.value)}
/>
<button type="button" onClick={onSearch} style={{ marginLeft: 8 }}></button>

View File

@ -89,16 +89,6 @@ export async function qxtopById(id: any) {
});
}
//检验文档中心是否存在该文档
export async function checkFileExist(fileId?:any) {
return request('/api/core-service-ebtp-updownload/v1/attachment/find/bid/'+fileId,{
method:'GET' ,
})
}
/**
* 获取省区
* @param pId