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
94
95
96
97
98
99
100
import request,{download,requestType} from "@/utils/request";
import {BaseEntityInterface} from "@/utils/globalInterface";
export interface ReceivableFeeManagementI extends BaseEntityInterface{
            id ?:  number   ,            systemNo ?:  string   ,            relatedBillNo ?:  string   ,            sourceSystem ?:  string   ,            businessSector ?:  string   ,            documentType ?:  string   ,            documentNo ?:  string   ,            isInternalSettlement ?:  string   ,            internalSettlementUnit ?:  string   ,            customerName ?:  string   ,            projectName ?:  string   ,            businessTime ?:  string   ,            receivableConfirmTime ?:  string   ,            receivableAmount ?:  string   ,            status ?:  string   ,            remark ?:  string   ,            createBy ?:  string   ,            createTime ?:  string   ,            updateBy ?:  string   ,            updateTime ?:  string   ,            deleted ?:  number       }
 
 
/**
 * 查询应收费用管理列表
 */
export const listReceivableFeeManagement:requestType = (query) => {
    return request({
        url: '/cwgl/receivableFeeManagement/list',
        method:'get',
        params:query
    })
}
/**
 * 查询应收费用管理详细
 */
export const getReceivableFeeManagement:requestType = (id) => {
    return request({
        url: '/cwgl/receivableFeeManagement/' + id,
        method:'get'
    })
}
/**
 * 查询应收费用生成账单 
 */
export const getStatistics:requestType = (id) => {
    return request({
        url: '/cwgl/receivableFeeManagement/statistics/' + id,
        method:'get'
    })
}
/* 确认生成账单 */
 
export const addCreateBill:requestType = (data) => {
    return request({
        url: '/cwgl/receivableFeeManagement/createBill',
        method: 'post',
        data
    })
}
 
/**
 * 新增应收费用管理
 */
export const addReceivableFeeManagement:requestType = (data) => {
    return request({
        url: '/cwgl/receivableFeeManagement',
        method: 'post',
        data
    })
}
 
/**
 * 修改应收费用管理
 */
export const updateReceivableFeeManagement:requestType = (data) => {
    return request({
        url: '/cwgl/receivableFeeManagement',
        method: 'put',
        data
    })
}
/* 作废 */
export const receivableFeeManagementVoid:requestType = (id) => {
    return request({
        url: '/cwgl/receivableFeeManagement/void/'+id,
        method: 'put',
    })
}
/**
 * 删除应收费用管理
 */
export const delReceivableFeeManagement:requestType = (id) => {
    return request({
        url: '/cwgl/receivableFeeManagement/' + id,
        method: 'delete'
    })
}
 
 
/**
 * 导出应收费用管理
 */
export const exportReceivableFeeManagement:requestType = (query) => {
    return new Promise<any>(()=>{
        download('/cwgl/receivableFeeManagement/export',query);
    })
}
 
/**
 * 下载导入模板
 */
export const importTemplateReceivableFeeManagement:requestType = (query) => {
    return new Promise<any>(()=>{
        download('/cwgl/receivableFeeManagement/importTemplate',query);
    })
}