2020-12-23 11:14:35 +08:00
|
|
|
|
import request from '@/utils/request';
|
|
|
|
|
// import {demo} from './data.d';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*公告列表请求*/
|
2022-03-10 14:24:13 +08:00
|
|
|
|
export async function GetNoticeList(params?: any) {
|
2020-12-23 11:14:35 +08:00
|
|
|
|
return request('/api/biz-service-ebtp-bid/v1/anno/pageList', {
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: {
|
|
|
|
|
...params
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
/*当前公告可用包请求*/
|
2022-03-10 14:24:13 +08:00
|
|
|
|
export async function GetNoticeUsablePackage(params?: any, annoId?: any) {
|
|
|
|
|
return request('/api/biz-service-ebtp-bid/v1/anno/tobs/' + params + "?annoId=" + annoId,)
|
2020-12-23 11:14:35 +08:00
|
|
|
|
}
|
|
|
|
|
/*公告信息查询*/
|
2022-03-10 14:24:13 +08:00
|
|
|
|
export async function GetNoticeMsg(params?: any) {
|
|
|
|
|
return request('/api/biz-service-ebtp-bid/v1/anno/' + params)
|
2020-12-23 11:14:35 +08:00
|
|
|
|
}
|
|
|
|
|
/*创建公告*/
|
2022-03-10 14:24:13 +08:00
|
|
|
|
export async function creatNotice(type: any, params?: any) {
|
|
|
|
|
let method = "post";
|
|
|
|
|
if (type == "edit" || type == "change")
|
|
|
|
|
method = "put";
|
2020-12-23 11:14:35 +08:00
|
|
|
|
return request('/api/biz-service-ebtp-bid/v1/anno', {
|
|
|
|
|
method: method,
|
|
|
|
|
data: {
|
|
|
|
|
...params
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
/*删除公告*/
|
2022-03-10 14:24:13 +08:00
|
|
|
|
export async function removeNotice(params?: any) {
|
|
|
|
|
let method = "delete";
|
|
|
|
|
return request('/api/biz-service-ebtp-bid/v1/anno/' + params, { method: method })
|
|
|
|
|
}
|
|
|
|
|
/*发布公告 type=0 正常发布*/
|
|
|
|
|
export async function releaseNotice(params?: any) {
|
|
|
|
|
let method = "post";
|
|
|
|
|
return request('/api/biz-service-ebtp-bid/v1/anno/publish/' + params + "/0", {
|
|
|
|
|
method: method,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
/*发布公告 type=1 线下发布*/
|
|
|
|
|
export async function releaseNoticeOffline(params?: any) {
|
|
|
|
|
let method = "post";
|
|
|
|
|
return request('/api/biz-service-ebtp-bid/v1/anno/publish/' + params + "/1", {
|
|
|
|
|
method: method,
|
2020-12-23 11:14:35 +08:00
|
|
|
|
data: {
|
|
|
|
|
...params
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
/*再次发布公告*/
|
2022-03-10 14:24:13 +08:00
|
|
|
|
export async function releaseNoticeAgain(params?: any) {
|
2020-12-23 11:14:35 +08:00
|
|
|
|
let method = "post";
|
|
|
|
|
return request('/api/biz-service-ebtp-bid/v1/anno/republish/' + params, {
|
|
|
|
|
method: method,
|
|
|
|
|
data: {
|
|
|
|
|
...params
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
/*公告发起审批*/
|
2022-03-10 14:24:13 +08:00
|
|
|
|
export async function ApprovalNotice(params?: any) {
|
2020-12-23 11:14:35 +08:00
|
|
|
|
let method = "post";
|
|
|
|
|
return request('/api/biz-service-ebtp-bid/v1/anno/approval/' + params, {
|
|
|
|
|
method: method,
|
|
|
|
|
data: {
|
|
|
|
|
...params
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function GetfileList(params?: any) {
|
|
|
|
|
return request('/api/biz-service-ebtp-bid/v1/document/pageList', {
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: {
|
|
|
|
|
...params
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
}
|
2022-03-10 14:24:13 +08:00
|
|
|
|
/*招标文件*/
|
|
|
|
|
export async function GetfileUsablePackage(params?: any, annoId?: any) {
|
|
|
|
|
return request('/api/biz-service-ebtp-bid/v1/document/tobs/getSectionList/' + params + "?documentId=" + annoId)
|
2020-12-23 11:14:35 +08:00
|
|
|
|
}
|
2022-03-10 14:24:13 +08:00
|
|
|
|
|
|
|
|
|
|
2020-12-23 11:14:35 +08:00
|
|
|
|
export async function GetfileMsg(params?: any) {
|
2022-03-10 14:24:13 +08:00
|
|
|
|
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";
|
2020-12-23 11:14:35 +08:00
|
|
|
|
return request('/api/biz-service-ebtp-bid/v1/document', {
|
|
|
|
|
method: method,
|
|
|
|
|
data: {
|
|
|
|
|
...params
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
}
|
2022-03-10 14:24:13 +08:00
|
|
|
|
export async function removefile(params?: any) {
|
|
|
|
|
let method = "delete";
|
|
|
|
|
return request('/api/biz-service-ebtp-bid/v1/document/' + params, { method: method })
|
2020-12-23 11:14:35 +08:00
|
|
|
|
}
|
|
|
|
|
/*开标大厅选择*/
|
2022-03-10 14:24:13 +08:00
|
|
|
|
export async function getChooseRoom(params?: any) {
|
|
|
|
|
let method = "get";
|
|
|
|
|
return request('/api/biz-service-ebtp-opening/v1/bizbidopenhall/list?openDate=' + params, { method: method })
|
2020-12-23 11:14:35 +08:00
|
|
|
|
}
|
|
|
|
|
|
2022-03-10 14:24:13 +08:00
|
|
|
|
|
|
|
|
|
/*邀请函 供应商 包信息获取 后端 付庆吉*/
|
|
|
|
|
export async function getPackageAndSupplierList(params: any) {
|
|
|
|
|
return request('/api/biz-service-ebtp-bid/v1/resp/pageList', {
|
|
|
|
|
method: "post",
|
|
|
|
|
data: {
|
|
|
|
|
...params
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
/*邀请函 选择供应商 后端付庆吉*/
|
|
|
|
|
export async function chooseSupplier(params: any) {
|
|
|
|
|
return request('/api/biz-service-ebtp-bid/v1/resp', {
|
|
|
|
|
method: "post",
|
|
|
|
|
data: {
|
|
|
|
|
...params
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
/*邀请函 删除供应商 后端付庆吉*/
|
|
|
|
|
export async function deleteSupplier(params?: any) {
|
|
|
|
|
return request('/api/biz-service-ebtp-bid/v1/resp/' + params, {
|
|
|
|
|
method: "delete",
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
/*邀请函 供应商 更新联系人*/
|
|
|
|
|
export async function updateSupplierUser(id?: any, userId?: any, params?: any) {
|
|
|
|
|
return request('/api/biz-service-ebtp-bid/v1/resp/' + id + "/" + userId, {
|
|
|
|
|
method: "put",
|
|
|
|
|
data: {
|
|
|
|
|
...params
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
/* 结构化于公告 冲突校验 后端 张琦*/
|
|
|
|
|
export async function checkConflict(projectId?: any) {
|
|
|
|
|
return request('/api/biz-service-ebtp-bid/v1/annotemplate/anno/checkDocExist?projectId=' + projectId, {
|
|
|
|
|
method: "get",
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 审批单链接查询(公告,变更公告,失败公告,邀请函,公示)
|
|
|
|
|
* @param id
|
|
|
|
|
* @returns
|
|
|
|
|
*/
|
|
|
|
|
export async function getApprovalFor(id?: any) {
|
|
|
|
|
return request(`/api/biz-service-ebtp-bid/v1/anno/approve/trace/${id}`, {
|
|
|
|
|
method: "POST",
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 查询当前可发媒体
|
|
|
|
|
* @param id
|
|
|
|
|
* @returns
|
|
|
|
|
*/
|
|
|
|
|
export async function getMediaService() {
|
|
|
|
|
return request(`/api/biz-service-ebtp-bid/v1/media/list`, {
|
|
|
|
|
method: "POST",
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 单一来源简化流程 提交采购文件
|
|
|
|
|
* @param id
|
|
|
|
|
* @returns
|
|
|
|
|
*/
|
|
|
|
|
export async function pushFile(id: any) {
|
|
|
|
|
return request(`/api/biz-service-ebtp-bid/v1/document/dyjh/publish/${id} `, {
|
|
|
|
|
method: "POST",
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 查询是否集团项目 (弹窗 是否走审批)
|
|
|
|
|
* @param id
|
|
|
|
|
* @returns
|
|
|
|
|
*/
|
|
|
|
|
export async function isGroup(id: any) {
|
|
|
|
|
return request(`/api/biz-service-ebtp-bid/v1/invitation/exclude/get/${id} `, {
|
|
|
|
|
method: "GET",
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 是否要走审批
|
|
|
|
|
* @param id
|
|
|
|
|
* @returns
|
|
|
|
|
*/
|
|
|
|
|
export async function TOrF(params: any, id: any) {//{skip:'true/false'}
|
|
|
|
|
return request(`/api/biz-service-ebtp-bid/v1/anno/approval/${id}`, {
|
|
|
|
|
method: "POST",
|
|
|
|
|
data: params
|
|
|
|
|
});
|
2022-04-22 19:54:34 +08:00
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 公共服务平台-获取数据
|
|
|
|
|
* @param params
|
|
|
|
|
* @returns
|
|
|
|
|
*/
|
|
|
|
|
export async function getPublicData(params: any) {
|
|
|
|
|
return request('/api/biz-service-ebtp-bid/v1/ctpsp/get/' + params);
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 公共服务平台-保存数据
|
|
|
|
|
* @param params
|
|
|
|
|
* @returns
|
|
|
|
|
*/
|
|
|
|
|
export async function savePublicData(params: any) {
|
|
|
|
|
return request('/api/biz-service-ebtp-bid/v1/ctpsp/save', {
|
|
|
|
|
method: "POST",
|
|
|
|
|
data: params
|
|
|
|
|
});
|
2022-03-10 14:24:13 +08:00
|
|
|
|
}
|