2022-03-10 14:24:13 +08:00
|
|
|
|
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) {
|
2022-06-20 14:35:50 +08:00
|
|
|
|
return request(`/api/biz-service-ebtp-bid/v1/annotemplate/anno/list`, {
|
|
|
|
|
method: 'GET',
|
|
|
|
|
params: params,
|
2022-03-10 14:24:13 +08:00
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
//第一个节点保存时新增一条记录
|
|
|
|
|
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`, {
|
2022-06-20 14:35:50 +08:00
|
|
|
|
method: 'POST',
|
2022-03-10 14:24:13 +08:00
|
|
|
|
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}`, {
|
2022-06-20 14:35:50 +08:00
|
|
|
|
method: 'POST',
|
2022-03-10 14:24:13 +08:00
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
//=======================================================================================================模板
|
|
|
|
|
|
|
|
|
|
//获取模板列表
|
|
|
|
|
export async function getTemList() {
|
|
|
|
|
return request(`/api/biz-service-ebtp-bid/v1/annotemplate/statictemplate/list`);
|
|
|
|
|
};
|
|
|
|
|
//修改模板列表
|
2022-06-20 14:35:50 +08:00
|
|
|
|
export async function upTem(data: any) {
|
|
|
|
|
return request(`/api/biz-service-ebtp-bid/v1/annotemplate/statictemplate/update`, {
|
|
|
|
|
method: 'POST',
|
|
|
|
|
data: data,
|
2022-03-10 14:24:13 +08:00
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
//修改模板列表
|
2022-06-20 14:35:50 +08:00
|
|
|
|
export async function add(data: any) {
|
|
|
|
|
return request(`/api/biz-service-ebtp-bid/v1/annotemplate/statictemplate`, {
|
|
|
|
|
method: 'POST',
|
|
|
|
|
data: data,
|
2022-03-10 14:24:13 +08:00
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
//删除模板列表
|
2022-06-20 14:35:50 +08:00
|
|
|
|
export async function del(id: any) {
|
|
|
|
|
return request(`/api/biz-service-ebtp-bid/v1/annotemplate/statictemplate/delete/${id}`, {
|
|
|
|
|
method: 'POST',
|
2022-03-10 14:24:13 +08:00
|
|
|
|
});
|
|
|
|
|
};
|