5.9 澄清获取公告时间的接口增加roomType

This commit is contained in:
jl-zhoujl2
2022-05-09 15:30:04 +08:00
parent 216d65fe55
commit 44bb739e3e
4 changed files with 11 additions and 7 deletions

View File

@ -477,9 +477,10 @@ const ClarifyTheList: React.FC<{}> = () => {
} }
function afterSave() { function afterSave() {
let packageIds = isNotEmpty(form.getFieldValue('packageId')) ? String(form.getFieldValue('packageId')).split(',') : []; let packageIds = isNotEmpty(form.getFieldValue('packageId')) ? String(form.getFieldValue('packageId')).split(',') : [];
let params = { roomType };
if (isNotEmpty(packageIds) && packageIds.length !== 0) { if (isNotEmpty(packageIds) && packageIds.length !== 0) {
//获取公告信息 判断文件的获取和截止时间与应答截止时间的关系 //获取公告信息 判断文件的获取和截止时间与应答截止时间的关系
getClarifyAnnoList(packageIds).then(res => { getClarifyAnnoList(packageIds, params).then(res => {
if (res.code === 200) { if (res.code === 200) {
//招标文件获取开始时间 //招标文件获取开始时间
let docStartTimes = res.data.map((item: any) => item.docStartTime); let docStartTimes = res.data.map((item: any) => item.docStartTime);

View File

@ -107,9 +107,10 @@ export function getSections(projectId: any, roomType:any) {
* 根据标段id查询公告 * 根据标段id查询公告
* @param data * @param data
*/ */
export function getClarifyAnnoList(data: any) { export function getClarifyAnnoList(data: any, params: any) {
return request('/api/biz-service-ebtp-bid/v1/anno/clarifyAnnoList', { return request('/api/biz-service-ebtp-bid/v1/anno/clarifyAnnoList', {
method: 'post', method: 'post',
data: data data: data,
params: params,
}); });
} }

View File

@ -477,9 +477,10 @@ const ClarifyTheList: React.FC<{}> = () => {
return; return;
} }
let packageIds = isNotEmpty(form.getFieldValue('packageId')) ? String(form.getFieldValue('packageId')).split(',') : []; let packageIds = isNotEmpty(form.getFieldValue('packageId')) ? String(form.getFieldValue('packageId')).split(',') : [];
let params = { roomType };
if (isNotEmpty(packageIds) && packageIds.length !== 0) { if (isNotEmpty(packageIds) && packageIds.length !== 0) {
//获取公告信息 判断文件的获取和截止时间与应答截止时间的关系 //获取公告信息 判断文件的获取和截止时间与应答截止时间的关系
getClarifyAnnoList(packageIds).then(res => { getClarifyAnnoList(packageIds, params).then(res => {
if (res.code == 200) { if (res.code == 200) {
getRoomList({ sectionIdList: packageIds }).then((res2) => { getRoomList({ sectionIdList: packageIds }).then((res2) => {
if (res2.code == 200) { if (res2.code == 200) {

View File

@ -107,10 +107,11 @@ export function getSections(projectId: any, roomType: any) {
* 根据标段id查询公告 * 根据标段id查询公告
* @param data * @param data
*/ */
export function getClarifyAnnoList(data: any) { export function getClarifyAnnoList(data: any, params: any) {
return request('/api/biz-service-ebtp-bid/v1/anno/clarifyAnnoList', { return request('/api/biz-service-ebtp-bid/v1/anno/clarifyAnnoList', {
method: 'post', method: 'post',
data: data data: data,
params: params,
}); });
} }
/** /**