移动端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

148 lines
2.9 KiB

  1. import request from '@/utils/request'
  2. // 查询固定资产列表
  3. export function permanentList(query) {
  4. return request({
  5. url: '/asset/permanent/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询合同信息列表
  11. export function contractionList(query) {
  12. return request({
  13. url: '/contraction/info/list',
  14. method: 'get',
  15. params: query
  16. })
  17. }
  18. // 新增固定资产
  19. export function addPermanent(data) {
  20. return request({
  21. url: '/asset/permanent/add',
  22. method: 'post',
  23. data: data
  24. })
  25. }
  26. // 查询固定资产详细
  27. export function getPermanent(id) {
  28. return request({
  29. url: '/asset/permanent/get/' + id,
  30. method: 'get'
  31. })
  32. }
  33. // 修改固定资产
  34. export function updatePermanent(data) {
  35. return request({
  36. url: '/asset/permanent/edit',
  37. method: 'post',
  38. data: data
  39. })
  40. }
  41. // 删除固定资产
  42. export function delPermanent(id) {
  43. return request({
  44. url: '/asset/permanent/remove/' + id,
  45. method: 'get'
  46. })
  47. }
  48. //上传全局方法附件
  49. export function commonAttach(data) {
  50. return request({
  51. url: '/common/attach',
  52. method: 'post',
  53. header: { "Content-Type": 'application/x-www-form-urlencoded' },
  54. data: data
  55. })
  56. }
  57. //查询已上传附件
  58. export const attachmentList = (data) => {
  59. return request({
  60. url: '/system/attachment/query',
  61. method: 'get',
  62. params: data
  63. })
  64. }
  65. //删除已上传附件
  66. export function systemAttachment(ids) {
  67. if (ids != undefined) {
  68. return request({
  69. url: '/system/attachment/remove/' + ids,
  70. method: 'get'
  71. })
  72. }
  73. }
  74. // 新增合同信息
  75. export function addInfo(data) {
  76. return request({
  77. url: '/contraction/info/add',
  78. method: 'post',
  79. data: data
  80. })
  81. }
  82. // 查询合同信息详细
  83. export function getInfo(id) {
  84. return request({
  85. url: '/contraction/info/get/' + id,
  86. method: 'get'
  87. })
  88. }
  89. // 删除合同信息
  90. export function delInfo(id) {
  91. return request({
  92. url: '/contraction/info/remove/' + id,
  93. method: 'get'
  94. })
  95. }
  96. // 修改合同信息
  97. export function updateInfo(data) {
  98. return request({
  99. url: '/contraction/info/edit',
  100. method: 'post',
  101. data: data
  102. })
  103. }
  104. // 财务公开列表
  105. export function financePublicList(query) {
  106. console.log(query)
  107. return request({
  108. url: '/villageAffairs/public/financePublicList',
  109. method: 'get',
  110. params: query
  111. })
  112. }
  113. //获取区、镇、村地区
  114. export function treeselectByUser(query) {
  115. return request({
  116. url: '/system/dept/treeselectByUser',
  117. method: 'get',
  118. params: query
  119. })
  120. }
  121. //获取账套列表
  122. export function listByDeptId(query) {
  123. return request({
  124. url: '/finance/book/listByDeptId',
  125. method: 'get',
  126. params: query
  127. })
  128. }
  129. // 切换部门
  130. export function changeDept(query) {
  131. return request({
  132. url: '/system/user/changeDept',
  133. method: 'get',
  134. params: query
  135. })
  136. }
  137. // 切换账套
  138. export function changeBook(query) {
  139. return request({
  140. url: '/system/user/changeBook',
  141. method: 'get',
  142. params: query
  143. })
  144. }