import request,{download,requestType} from "@/utils/request";
|
import {BaseEntityInterface} from "@/utils/globalInterface";
|
export interface PayableFeeManagementI extends BaseEntityInterface{
|
id ?: number , systemNo ?: string , relatedBillNo ?: string , sourceSystem ?: string , businessSector ?: string , documentType ?: string , documentNo ?: string , isInternalSettlement ?: string , internalSettlementUnit ?: string , supplierName ?: string , projectName ?: string , businessTime ?: string , payableConfirmTime ?: string , payableAmount ?: string , status ?: string , remark ?: string , createBy ?: string , createTime ?: string , updateBy ?: string , updateTime ?: string , deleted ?: number }
|
|
|
/**
|
* 查询应付费用管理列表
|
*/
|
export const listPayableFeeManagement:requestType = (query) => {
|
return request({
|
url: '/cwgl/payableFeeManagement/list',
|
method:'get',
|
params:query
|
})
|
}
|
/**
|
* 查询应付费用管理详细
|
*/
|
export const getPayableFeeManagement:requestType = (id) => {
|
return request({
|
url: '/cwgl/payableFeeManagement/' + id,
|
method:'get'
|
})
|
}
|
|
/**
|
* 新增应付费用管理
|
*/
|
export const addPayableFeeManagement:requestType = (data) => {
|
return request({
|
url: '/cwgl/payableFeeManagement',
|
method: 'post',
|
data
|
})
|
}
|
/**
|
* 修改应付费用管理
|
*/
|
export const updatePayableFeeManagement:requestType = (data) => {
|
return request({
|
url: '/cwgl/payableFeeManagement',
|
method: 'put',
|
data
|
})
|
}
|
|
|
/**
|
* 删除应付费用管理
|
*/
|
export const delPayableFeeManagement:requestType = (id) => {
|
return request({
|
url: '/cwgl/payableFeeManagement/' + id,
|
method: 'delete'
|
})
|
}
|
|
|
/**
|
* 导出应付费用管理
|
*/
|
export const exportPayableFeeManagement:requestType = (query) => {
|
return new Promise<any>(()=>{
|
download('/cwgl/payableFeeManagement/export',query);
|
})
|
}
|
|
/* 作废 */
|
export const payableFeeManagementVoid:requestType = (id) => {
|
return request({
|
url: '/cwgl/payableFeeManagement/void/'+id,
|
method: 'put',
|
})
|
}
|
|
/**
|
* 查询应收费用生成账单
|
*/
|
export const getPayableFeeManagementStatistics:requestType = (id) => {
|
return request({
|
url: '/cwgl/payableFeeManagement/getStatistics/' + id,
|
method:'get'
|
})
|
}
|
/* 确认生成 */
|
export const addpayableFeeManagementCreateBill:requestType = (data) => {
|
return request({
|
url: '/cwgl/payableFeeManagement/createBill',
|
method: 'post',
|
data
|
})
|
}
|