You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

57 lines
1.4 KiB

import { defHttp } from '@/utils/http/axios';
import { ID, IDS, commonExport } from '@/api/base';
import { TenderTaskVO, TenderTaskForm, TenderTaskQuery } from './model';
/**
* 查询招标摘要任务列表
* @param params
* @returns
*/
export function TenderTaskList(params?: TenderTaskQuery) {
return defHttp.get<TenderTaskVO[]>({ url: '/productManagement/TenderTask/list', params });
}
/**
* 导出招标摘要任务列表
* @param params
* @returns
*/
export function TenderTaskExport(params?: TenderTaskQuery) {
return commonExport('/productManagement/TenderTask/export', params ?? {});
}
/**
* 查询招标摘要任务详细
* @param id id
* @returns
*/
export function TenderTaskInfo(id: ID) {
return defHttp.get<TenderTaskVO>({ url: '/productManagement/TenderTask/' + id });
}
/**
* 新增招标摘要任务
* @param data
* @returns
*/
export function TenderTaskAdd(data: TenderTaskForm) {
return defHttp.postWithMsg<void>({ url: '/productManagement/TenderTask', data });
}
/**
* 更新招标摘要任务
* @param data
* @returns
*/
export function TenderTaskUpdate(data: TenderTaskForm) {
return defHttp.putWithMsg<void>({ url: '/productManagement/TenderTask', data });
}
/**
* 删除招标摘要任务
* @param id id
* @returns
*/
export function TenderTaskRemove(id: ID | IDS) {
return defHttp.deleteWithMsg<void>({ url: '/productManagement/TenderTask/' + id },);
}