投标管理
This commit is contained in:
63
src/api/bidding/listOfWinningBids/index.ts
Normal file
63
src/api/bidding/listOfWinningBids/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { ListOfWinningBidsVO, ListOfWinningBidsForm, ListOfWinningBidsQuery } from '@/api/bidding/listOfWinningBids/types';
|
||||
|
||||
/**
|
||||
* 查询中标项目一览列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listListOfWinningBids = (query?: ListOfWinningBidsQuery): AxiosPromise<ListOfWinningBidsVO[]> => {
|
||||
return request({
|
||||
url: '/bidding/listOfWinningBids/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询中标项目一览详细
|
||||
* @param id
|
||||
*/
|
||||
export const getListOfWinningBids = (id: string | number): AxiosPromise<ListOfWinningBidsVO> => {
|
||||
return request({
|
||||
url: '/bidding/listOfWinningBids/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增中标项目一览
|
||||
* @param data
|
||||
*/
|
||||
export const addListOfWinningBids = (data: ListOfWinningBidsForm) => {
|
||||
return request({
|
||||
url: '/bidding/listOfWinningBids',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改中标项目一览
|
||||
* @param data
|
||||
*/
|
||||
export const updateListOfWinningBids = (data: ListOfWinningBidsForm) => {
|
||||
return request({
|
||||
url: '/bidding/listOfWinningBids',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除中标项目一览
|
||||
* @param id
|
||||
*/
|
||||
export const delListOfWinningBids = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/bidding/listOfWinningBids/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
Reference in New Issue
Block a user