2020-12-23 11:14:35 +08:00
|
|
|
import request from '@/utils/request';
|
|
|
|
// import {demo} from './data.d';
|
|
|
|
|
|
|
|
|
|
|
|
/*公告列表请求*/
|
|
|
|
export async function GetNoticeList(params?:any){
|
|
|
|
console.log("公告列表请求");
|
|
|
|
return request('/api/biz-service-ebtp-bid/v1/anno/pageList', {
|
|
|
|
method: 'post',
|
|
|
|
data: {
|
|
|
|
...params
|
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|
|
|
|
/*当前公告可用包请求*/
|
|
|
|
export async function GetNoticeUsablePackage(params?:any){
|
|
|
|
console.log("当前公告可用包请求");
|
|
|
|
return request('/api/biz-service-ebtp-bid/v1/anno/tobs/'+params)
|
|
|
|
}
|
|
|
|
/*公告信息查询*/
|
|
|
|
export async function GetNoticeMsg(params?:any){
|
|
|
|
console.log("当前公告信息查询");
|
|
|
|
return request('/api/biz-service-ebtp-bid/v1/anno/'+params)
|
|
|
|
}
|
|
|
|
/*创建公告*/
|
|
|
|
export async function creatNotice(type:any,params?:any){
|
|
|
|
let method="post";
|
|
|
|
if(type=="edit")
|
|
|
|
method="put";
|
|
|
|
return request('/api/biz-service-ebtp-bid/v1/anno', {
|
|
|
|
method: method,
|
|
|
|
data: {
|
|
|
|
...params
|
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|
|
|
|
/*删除公告*/
|
|
|
|
export async function removeNotice(params?:any){
|
|
|
|
let method="delete";
|
|
|
|
return request('/api/biz-service-ebtp-bid/v1/anno/'+params,{method:method})
|
|
|
|
}
|
|
|
|
/*发布公告*/
|
|
|
|
export async function releaseNotice(params?:any){
|
|
|
|
let method="post";
|
|
|
|
return request('/api/biz-service-ebtp-bid/v1/anno/publish/'+params,{
|
|
|
|
method:method,
|
|
|
|
data: {
|
|
|
|
...params
|
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|
|
|
|
/*再次发布公告*/
|
|
|
|
export async function releaseNoticeAgain(params?:any) {
|
|
|
|
let method = "post";
|
|
|
|
return request('/api/biz-service-ebtp-bid/v1/anno/republish/' + params, {
|
|
|
|
method: method,
|
|
|
|
data: {
|
|
|
|
...params
|
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|
|
|
|
/*公告发起审批*/
|
|
|
|
export async function ApprovalNotice(params?:any) {
|
|
|
|
let method = "post";
|
|
|
|
return request('/api/biz-service-ebtp-bid/v1/anno/approval/' + params, {
|
|
|
|
method: method,
|
|
|
|
data: {
|
|
|
|
...params
|
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export async function GetfileList(params?: any) {
|
|
|
|
console.log("招标文件列表请求");
|
|
|
|
return request('/api/biz-service-ebtp-bid/v1/document/pageList', {
|
|
|
|
method: 'post',
|
|
|
|
data: {
|
|
|
|
...params
|
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|
|
|
|
export async function GetfileUsablePackage(params?: any) {
|
|
|
|
console.log("当前招标文件可用包请求");
|
|
|
|
return request('/api/biz-service-ebtp-bid/v1/document/tobs/getSectionList/'+params)
|
|
|
|
}
|
|
|
|
export async function GetfileMsg(params?: any) {
|
|
|
|
console.log("当前招标文件信息查询");
|
|
|
|
console.log(params)
|
|
|
|
return request('/api/biz-service-ebtp-bid/v1/document/'+params)
|
|
|
|
}
|
|
|
|
export async function creatfile(type:any,params?:any){
|
|
|
|
let method="post";
|
|
|
|
if(type=="edit")
|
|
|
|
method="put";
|
|
|
|
return request('/api/biz-service-ebtp-bid/v1/document', {
|
|
|
|
method: method,
|
|
|
|
data: {
|
|
|
|
...params
|
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|
|
|
|
export async function removefile(params?:any){
|
|
|
|
let method="delete";
|
|
|
|
return request('/api/biz-service-ebtp-bid/v1/document/'+params,{method:method})
|
|
|
|
}
|
|
|
|
/*开标大厅选择*/
|
|
|
|
export async function getChooseRoom(params?:any){
|
|
|
|
let method="get";
|
2021-01-16 11:29:42 +08:00
|
|
|
return request('/api/biz-service-ebtp-opening/v1/bizbidopenhall/list?openDate='+params,{method:method})
|
2020-12-23 11:14:35 +08:00
|
|
|
}
|
|
|
|
|