import request from '@/utils/request'; // import {demo} from './data.d'; /*公告列表请求*/ export async function GetNoticeList(params?: any) { return request('/api/biz-service-ebtp-bid/v1/anno/pageList', { method: 'post', data: { ...params }, }) } /*当前公告可用包请求*/ export async function GetNoticeUsablePackage(params?: any) { return request('/api/biz-service-ebtp-bid/v1/anno/tobs/' + params) } /*公告信息查询*/ export async function GetNoticeMsg(params?: any) { return request('/api/biz-service-ebtp-bid/v1/anno/' + params) } /*创建公告*/ export async function creatNotice(type: any, params?: any) { let url = "/api/biz-service-ebtp-bid/v1/anno"; if (type == "edit") url = "/api/biz-service-ebtp-bid/v1/anno/updateById"; return request(url, { method: "POST", data: { ...params }, }) } /*删除公告*/ export async function removeNotice(params?: any) { let method = "POST"; return request('/api/biz-service-ebtp-bid/v1/anno/delete/' + 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, }) } /*再次发布公告*/ 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) { return request('/api/biz-service-ebtp-bid/v1/document/pageList', { method: 'post', data: { ...params }, }) } /*开标大厅选择*/ export async function getChooseRoom(params?: any) { let method = "get"; return request('/api/biz-service-ebtp-bid/v1/bizbidopenhall/list?opendate' + params, { method: method }) } /*当前公示可用包请求*/ export async function GetPublicityUsablePackage(params?: any, annoId?: any) { return request('/api/biz-service-ebtp-bid/v1/anno/tobs/pub/' + params + "?annoId=" + annoId); } /** * 审批单链接查询(公告,变更公告,失败公告,邀请函,公示) * @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 over(sectionId?: any) { return request(`/api/biz-service-ebtp-archive/v1/archiveRounds/initExceptionArchiveByRounds/${sectionId}`) }