zhangback
2026-01-26 3e3cd7ad6d3787dac450deef5d5173de11abab94
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
import request, {download, requestType} from "@/utils/request";
import {BaseEntityInterface} from "@/utils/globalInterface";
 
export interface TmsPayableFeeI extends BaseEntityInterface {
    id?: number,
    systemNo?: string,
    billPayableId?: number,
    billPayableNo?: string,
    dispatchId?: number,
    dispatchNo?: string,
    serviceProviderId?: number,
    serviceProviderName?: string,
    serviceProviderType?: string,
    projectId?: number,
    projectName?: string,
    payableRmbAmount?: string,
    payableHkbAmount?: string,
    dispatchConfirmTime?: string,
    costGenerateTime?: string,
    status?: number,
    createTime?: string,
    createBy?: string,
    updateBy?: string,
    updateTime?: string,
    payableFeeItems?: any[]
}
 
 
/**
 * 查询应付费用列表
 */
export const listTmsPayableFee: requestType = (query) => {
    return request({
        url: '/tms/tmsPayableFee/list',
        method: 'get',
        params: query
    })
}
/**
 * 查询应付费用详细
 */
export const getTmsPayableFee: requestType = (id) => {
    return request({
        url: '/tms/tmsPayableFee/' + id,
        method: 'get'
    })
}
export const getTmsPayableFeeByDispatchNo: requestType = (no) => {
    return request({
        url: '/tms/tmsPayableFee/byDispatchNo/' + no,
        method: 'get'
    })
}
/**
 * 新增应付费用
 */
export const addTmsPayableFee: requestType = (data) => {
    return request({
        url: '/tms/tmsPayableFee',
        method: 'post',
        data
    })
}
 
/**
 * 修改应付费用
 */
export const updateTmsPayableFee: requestType = (data) => {
    return request({
        url: '/tms/tmsPayableFee',
        method: 'put',
        data
    })
}
 
/**
 * 删除应付费用
 */
export const delTmsPayableFee: requestType = (id) => {
    return request({
        url: '/tms/tmsPayableFee/' + id,
        method: 'delete'
    })
}
 
 
/**
 * 导出应付费用
 */
export const exportTmsPayableFee: requestType = (query) => {
    return new Promise<any>(() => {
        download('/tms/tmsPayableFee/export', query);
    })
}
export const closeTmsPayableFee: requestType = (id) => {
    return request({
        url: '/tms/tmsPayableFee/close/' + id,
        method: 'get'
    })
}
 
 
export const initApGenerate: requestType = (id) => {
    return request({
        url: '/tms/tmsPayableFee/initApGenerate/' + id,
        method: 'get'
    })
}
export const apGenerate: requestType = (id) => {
    return request({
        url: '/tms/tmsPayableFee/apGenerate/' + id,
        method: 'get'
    })
}