74 lines
1.8 KiB
TypeScript
74 lines
1.8 KiB
TypeScript
|
|
import request from '@/utils/http'
|
||
|
|
|
||
|
|
export class financeService {
|
||
|
|
// 收款记录-列表
|
||
|
|
static getReceiptList(params: Api.Common.PaginatingParams) {
|
||
|
|
return request.get<Api.Common.CommonListData>({
|
||
|
|
url: '/admin/receipt/list',
|
||
|
|
params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
// 收款记录-详情
|
||
|
|
static getReceiptDetail(params: any) {
|
||
|
|
return request.get<any>({
|
||
|
|
url: '/admin/receipt/show',
|
||
|
|
params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
// 收款记录-添加
|
||
|
|
static addReceipt(params: any) {
|
||
|
|
return request.post<Api.Common.AddResponse>({
|
||
|
|
url: '/admin/receipt/store',
|
||
|
|
params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
// 收款记录-更新
|
||
|
|
static updateReceipt(params: any) {
|
||
|
|
return request.post<Api.Common.AddResponse>({
|
||
|
|
url: '/admin/receipt/update',
|
||
|
|
params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
// 收款记录-删除
|
||
|
|
static deleteReceipt(params: any) {
|
||
|
|
return request.post<Api.Common.AddResponse>({
|
||
|
|
url: '/admin/receipt/destroy',
|
||
|
|
params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
//付款申请-列表
|
||
|
|
static getPaymentList(params: Api.Common.PaginatingParams) {
|
||
|
|
return request.get<Api.Common.CommonListData>({
|
||
|
|
url: '/admin/payment/list',
|
||
|
|
params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
//付款申请-详情
|
||
|
|
static getPaymentDetail(params: any) {
|
||
|
|
return request.get<any>({
|
||
|
|
url: '/admin/payment/show',
|
||
|
|
params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
//付款申请-添加
|
||
|
|
static addPayment(params: any) {
|
||
|
|
return request.post<Api.Common.AddResponse>({
|
||
|
|
url: '/admin/payment/store',
|
||
|
|
params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
//付款申请-更新
|
||
|
|
static updatePayment(params: any) {
|
||
|
|
return request.post<Api.Common.AddResponse>({
|
||
|
|
url: '/admin/payment/update',
|
||
|
|
params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
//付款申请-删除
|
||
|
|
static deletePayment(params: any) {
|
||
|
|
return request.post<Api.Common.AddResponse>({
|
||
|
|
url: '/admin/payment/destroy',
|
||
|
|
params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
}
|