12-23-上传master
This commit is contained in:
53
src/pages/CommonInfo/Supplier/CommonContact/service.ts
Normal file
53
src/pages/CommonInfo/Supplier/CommonContact/service.ts
Normal file
@ -0,0 +1,53 @@
|
||||
import { request } from 'umi';
|
||||
|
||||
/**
|
||||
* 新增操作
|
||||
* @param params
|
||||
*/
|
||||
export async function addContact(params: any) {
|
||||
return request('/api/biz-service-ebtp-tender/v1/bizsuppliercontact/insert', {
|
||||
method: 'POST',
|
||||
data: params,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改操作
|
||||
* @param params
|
||||
*/
|
||||
export async function updateContact(params: any) {
|
||||
return request('/api/biz-service-ebtp-tender/v1/bizsuppliercontact/update', {
|
||||
method: 'PUT',
|
||||
data: params,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
* @param params
|
||||
*/
|
||||
export async function deleteContact(params: any) {
|
||||
return request(`/api/biz-service-ebtp-tender/v1/bizsuppliercontact/${params}`, {
|
||||
method: 'DELETE',
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取列表
|
||||
* @param params
|
||||
*/
|
||||
export async function getContactList(params: any) {
|
||||
return request(
|
||||
`/api/biz-service-ebtp-tender/v1/bizsuppliercontact/getSupplierContactByParam`,
|
||||
{
|
||||
method: 'POST',
|
||||
data:{
|
||||
companyId:params.companyId,
|
||||
basePageRequest:{
|
||||
pageNo:params.current,
|
||||
pageSize:params.pageSize
|
||||
}
|
||||
}
|
||||
},
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user