71 lines
2.1 KiB
TypeScript
71 lines
2.1 KiB
TypeScript
![]() |
import request from '@/utils/request';
|
|||
|
|
|||
|
//获取项目数据
|
|||
|
export async function getProInfo(proId?: any) {
|
|||
|
return request(`/api/biz-service-ebtp-bid/v1/annotemplate/anno/initAnnoTemplate/${proId}`);
|
|||
|
};
|
|||
|
//获取项目数据
|
|||
|
export async function getInfo(params?: any) {
|
|||
|
return request(`/api/biz-service-ebtp-bid/v1/annotemplate/anno/list`,{
|
|||
|
method:'GET',
|
|||
|
params:params,
|
|||
|
});
|
|||
|
};
|
|||
|
//第一个节点保存时新增一条记录
|
|||
|
export async function addOneInfo(params?: any) {
|
|||
|
return request(`/api/biz-service-ebtp-bid/v1/annotemplate/anno/add`, {
|
|||
|
method: 'POST',
|
|||
|
data: params,
|
|||
|
});
|
|||
|
};
|
|||
|
//其余节点保存 修改
|
|||
|
export async function updateOneInfo(params?: any) {
|
|||
|
return request(`/api/biz-service-ebtp-bid/v1/annotemplate/anno/update`, {
|
|||
|
method: 'PUT',
|
|||
|
data: params,
|
|||
|
});
|
|||
|
};
|
|||
|
//生成word接口(最后一步完成表单时候触发)
|
|||
|
export async function makeNotice(annoId?: any) {
|
|||
|
return request(`/api/biz-service-ebtp-bid/v1/annotemplate/anno/finallSubmit/${annoId}`, {
|
|||
|
method: 'POST',
|
|||
|
});
|
|||
|
};
|
|||
|
//根据模板id 查内容
|
|||
|
export async function getTemInfo(id?: any) {
|
|||
|
return request(`/api/biz-service-ebtp-bid/v1/annotemplate/statictemplate/${id}`, {
|
|||
|
method: 'POST',
|
|||
|
});
|
|||
|
};
|
|||
|
//根据id删
|
|||
|
export async function delAll(id?: any) {
|
|||
|
return request(`/api/biz-service-ebtp-bid/v1/annotemplate/anno/delete/${id}`, {
|
|||
|
method: 'DELETE',
|
|||
|
});
|
|||
|
};
|
|||
|
//=======================================================================================================模板
|
|||
|
|
|||
|
//获取模板列表
|
|||
|
export async function getTemList() {
|
|||
|
return request(`/api/biz-service-ebtp-bid/v1/annotemplate/statictemplate/list`);
|
|||
|
};
|
|||
|
//修改模板列表
|
|||
|
export async function upTem(data:any) {
|
|||
|
return request(`/api/biz-service-ebtp-bid/v1/annotemplate/statictemplate`,{
|
|||
|
method:'PUT',
|
|||
|
data:data,
|
|||
|
});
|
|||
|
};
|
|||
|
//修改模板列表
|
|||
|
export async function add(data:any) {
|
|||
|
return request(`/api/biz-service-ebtp-bid/v1/annotemplate/statictemplate`,{
|
|||
|
method:'POST',
|
|||
|
data:data,
|
|||
|
});
|
|||
|
};
|
|||
|
//删除模板列表
|
|||
|
export async function del(id:any) {
|
|||
|
return request(`/api/biz-service-ebtp-bid/v1/annotemplate/statictemplate/${id}`,{
|
|||
|
method:'DELETE',
|
|||
|
});
|
|||
|
};
|