yxh
2023-05-17 bd02920548b2c867704f64d6feff0d96e0227fcc
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
import request from '@/utils/request'
 
// 查询费用申请明细列表
export function listFunddetail(query) {
  return request({
    url: '/project/funddetail/list',
    method: 'get',
    params: query
  })
}
 
// /project/fund/getFundDetail/{id}   修改是新写的接口
export function getownFundDetail (id) {
  return request({
    url: '/project/fund/getFundDetail/' + id,
    method: 'get',
  })
}
 
// // /project/financesubject/getItemName/{ItemType}获取费用itemname
export function getItemNames(ItemType) {
  return request({
    url: '/project/financesubject/getItemName/' + ItemType,
    method: 'get',
  })
}
 
// /project/fund/getFundId/{infoid}  新增修改的接口
export function onelistFunds(getinfo) {
  return request({
    url: '/project/fund/getFundId/' + getinfo,
    method: 'get',
  })
}
 
// 查询费用申请明细详细
export function getFunddetail(id) {
  return request({
    url: '/project/funddetail/' + id,
    method: 'get'
  })
}
 
 
 
 
export function listcountItem(a,b) {
  return request({
    url: '/project/fund/countItem/'+ a +'/'+ b ,
    method: 'get',
  })
}
// /project/fund/countItem/{infoid}/{itemid}
 
 
// 新增费用申请明细
export function addFunddetail(data) {
  return request({
    url: '/project/funddetail',
    method: 'post',
    data: data
  })
}
 
// 修改费用申请明细
export function updateFunddetail(data) {
  return request({
    url: '/project/funddetail',
    method: 'put',
    data: data
  })
}
 
// 删除费用申请明细
export function delFunddetail(id) {
  return request({
    url: '/project/funddetail/deleteDetail/' + id,
    method: 'delete'
  })
}
 
// export function delFunddetail(id) {
//   return request({
//     url: '/project/funddetail/' + id,
//     method: 'delete'
//   })
// }
 
// 导出费用申请明细
export function exportFunddetail(query) {
  return request({
    url: '/project/funddetail/export',
    method: 'get',
    params: query
  })
}
 
// 根据费用大类获取费用类型
export function getFundType(feeType) {
  return request({
    url: '/project/financesubject/getbyexpensetype/' + feeType,
    method: 'get',
  })
}
 
// 根据费用大类获取费用类型及明细
export function getFundTypeAll(feeType) {
  return request({
    url: '/project/financesubject/getDetails/' + feeType,
    method: 'get',
  })
}