wujianwei
5 天以前 89fd2cf7202c321512c2ea699a3a220a7138ed44
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
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
    })
}