6.20 前端put和delete请求类型修改为post
This commit is contained in:
@ -17,7 +17,7 @@ export async function addContact(params: any) {
|
||||
*/
|
||||
export async function updateContact(params: any) {
|
||||
return request('/api/biz-service-ebtp-tender/v1/bizsuppliercontact/update', {
|
||||
method: 'PUT',
|
||||
method: 'POST',
|
||||
data: params,
|
||||
});
|
||||
}
|
||||
@ -27,8 +27,8 @@ export async function updateContact(params: any) {
|
||||
* @param params
|
||||
*/
|
||||
export async function deleteContact(params: any) {
|
||||
return request(`/api/biz-service-ebtp-tender/v1/bizsuppliercontact/${params}`, {
|
||||
method: 'DELETE',
|
||||
return request(`/api/biz-service-ebtp-tender/v1/bizsuppliercontact/delete/${params}`, {
|
||||
method: 'POST',
|
||||
});
|
||||
}
|
||||
|
||||
@ -41,10 +41,10 @@ export async function getContactList(params: any) {
|
||||
`/api/biz-service-ebtp-tender/v1/bizsuppliercontact/getSupplierContactByParam`,
|
||||
{
|
||||
method: 'POST',
|
||||
data:{
|
||||
basePageRequest:{
|
||||
pageNo:params.current,
|
||||
pageSize:params.pageSize
|
||||
data: {
|
||||
basePageRequest: {
|
||||
pageNo: params.current,
|
||||
pageSize: params.pageSize
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -9,9 +9,9 @@ export async function getInvoiceList(params: any) {
|
||||
`/api/biz-service-ebtp-expenses/v1/bizbidinvoicecommon/list`,
|
||||
{
|
||||
method: 'GET',
|
||||
params:{
|
||||
pageNo:params.current,
|
||||
pageSize:params.pageSize
|
||||
params: {
|
||||
pageNo: params.current,
|
||||
pageSize: params.pageSize
|
||||
}
|
||||
},
|
||||
);
|
||||
@ -22,8 +22,8 @@ export async function getInvoiceList(params: any) {
|
||||
* @param params
|
||||
*/
|
||||
export async function addAndUpdateInvoice(params: any) {
|
||||
return request('/api/biz-service-ebtp-expenses/v1/bizbidinvoicecommon', {
|
||||
method: 'PUT',
|
||||
return request('/api/biz-service-ebtp-expenses/v1/bizbidinvoicecommon/update', {
|
||||
method: 'POST',
|
||||
data: params,
|
||||
});
|
||||
}
|
||||
|
@ -9,9 +9,9 @@ export async function getAddressList(params: any) {
|
||||
`/api/biz-service-ebtp-expenses/v1/bizbidinvoiceaddress/list`,
|
||||
{
|
||||
method: 'GET',
|
||||
params:{
|
||||
pageNo:params.current,
|
||||
pageSize:params.pageSize
|
||||
params: {
|
||||
pageNo: params.current,
|
||||
pageSize: params.pageSize
|
||||
}
|
||||
},
|
||||
);
|
||||
@ -22,8 +22,8 @@ export async function getAddressList(params: any) {
|
||||
* @param params
|
||||
*/
|
||||
export async function addAndUpdateAddress(params: any) {
|
||||
return request('/api/biz-service-ebtp-expenses/v1/bizbidinvoiceaddress', {
|
||||
method: 'PUT',
|
||||
return request('/api/biz-service-ebtp-expenses/v1/bizbidinvoiceaddress/update', {
|
||||
method: 'POST',
|
||||
data: params,
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user