移动端
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.
 
 

357 rivejä
6.9 KiB

  1. import request from '@/utils/request'
  2. // 查询银行转账列表
  3. export function listTransfer(query) {
  4. return request({
  5. url: '/yinnong/transfer/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询现金提现申请列表
  11. export function listCash(query) {
  12. return request({
  13. url: '/yinnong/cash/list',
  14. method: 'get',
  15. params: query
  16. })
  17. }
  18. // 查询银行转账详细
  19. export function getTransfer(id) {
  20. return request({
  21. url: '/yinnong/transfer/get/' + id,
  22. method: 'get'
  23. })
  24. }
  25. export function queryTransferDetail(transferId){
  26. return request({
  27. url: '/yinnong/transferDetail/getDetails/' + transferId,
  28. method: 'get'
  29. })
  30. }
  31. // 查询银行转账详细
  32. export function getCash(id) {
  33. return request({
  34. url: '/yinnong/cash/get/' + id,
  35. method: 'get'
  36. })
  37. }
  38. // 查询其他申请详情列表
  39. export function listCashdetailByCashId(id) {
  40. return request({
  41. url: '/yinnong/cashdetail/listCashdetailByCashId/'+id,
  42. method: 'get'
  43. })
  44. }
  45. export function listPayee(query) {
  46. return request({
  47. url: '/yinnong/payee/selectlist',
  48. method: 'get',
  49. params: query
  50. })
  51. }
  52. // 修改银行转账
  53. export function updateTransfer(data) {
  54. return request({
  55. url: '/yinnong/transfer/edit',
  56. method: 'post',
  57. data: data
  58. })
  59. }
  60. // 修改现金提现申请
  61. export function updateCash(data) {
  62. return request({
  63. url: '/yinnong/cash/edit',
  64. method: 'post',
  65. data: data
  66. })
  67. }
  68. // 查询工程项目关联关系详细
  69. export function getProjectto(query) {
  70. return request({
  71. url: '/yinnong/project/getProjectto/',
  72. method: 'get',
  73. params: query
  74. })
  75. }
  76. // 查询工程项目列表
  77. export function listProject(query) {
  78. return request({
  79. url: '/yinnong/project/list',
  80. method: 'get',
  81. params: query
  82. })
  83. }
  84. // 通过外部信息查询合同信息
  85. export function getInfoto(query) {
  86. return request({
  87. url: '/contraction/info/selectInfoByOutId/',
  88. method: 'get',
  89. params: query
  90. })
  91. }
  92. // 新增工程项目关联关系
  93. export function addProjectto(data) {
  94. return request({
  95. url: '/yinnong/project/addProjectto',
  96. method: 'post',
  97. data: data
  98. })
  99. }
  100. // 新增关联合同
  101. export function addInfoto(data) {
  102. return request({
  103. url: '/contraction/info/relationAdd',
  104. method: 'post',
  105. data: data
  106. })
  107. }
  108. // 提交审批
  109. export function customSubmit(id) {
  110. return request({
  111. url: '/yinnong/transfer/customSubmit/' + id,
  112. method: 'post'
  113. })
  114. }
  115. // 提交线下审批
  116. export function offlineCustomSubmit(id) {
  117. return request({
  118. url: '/yinnong/transfer/offlineCustomSubmit/' + id,
  119. method: 'post'
  120. })
  121. }
  122. // 现金提交审批
  123. export function cashSubmit(id) {
  124. return request({
  125. url: '/yinnong/cash/customSubmit/' + id,
  126. method: 'post'
  127. })
  128. }
  129. // 线下提交审批
  130. export function offlineCashSubmit(id) {
  131. return request({
  132. url: '/yinnong/cash/offlineCustomSubmit/' + id,
  133. method: 'post'
  134. })
  135. }
  136. // 删除现金提现申请
  137. export function delCash(id) {
  138. return request({
  139. url: '/yinnong/cash/remove/' + id,
  140. method: 'get'
  141. })
  142. }
  143. // 新增银行转账
  144. export function addTransfer(data) {
  145. return request({
  146. url: '/yinnong/transfer/add',
  147. method: 'post',
  148. data: data
  149. })
  150. }
  151. // 新增现金提现申请
  152. export function addCash(data) {
  153. return request({
  154. url: '/yinnong/cash/add',
  155. method: 'post',
  156. data: data
  157. })
  158. }
  159. // 新增其他申请详情
  160. export function addCashdetail(data) {
  161. return request({
  162. url: '/yinnong/cashdetail/add',
  163. method: 'post',
  164. data: data
  165. })
  166. }
  167. // 查询转账账户详情详细
  168. export function getTransferProcess(id) {
  169. return request({
  170. url: '/yinnong/transfer/getProcessSchedule/' + id,
  171. method: 'get'
  172. })
  173. }
  174. // 查询转账账户详情详细
  175. export function getCashProcess(id) {
  176. return request({
  177. url: '/yinnong/cash/getProcessSchedule/' + id,
  178. method: 'get'
  179. })
  180. }
  181. export function getAccount(query){
  182. return request({
  183. url: '/cashier/account/list',
  184. method: 'get',
  185. params: query
  186. })
  187. }
  188. // 查询当前账期余额
  189. export function getQmyeFlow(id) {
  190. return request({
  191. url: '/cashier/flow/getQmye/' + id,
  192. method: 'post'
  193. })
  194. }
  195. // 查询当前账期余额
  196. export function approval(data) {
  197. return request({
  198. url: '/activiti/process/complete',
  199. method: 'post',
  200. params:data
  201. })
  202. }
  203. // 上传附件
  204. export function attach(data) {
  205. return request({
  206. url: '/common/attach',
  207. method: 'post',
  208. data:data
  209. })
  210. }
  211. // 删除银行转账
  212. export function delTransfer(id) {
  213. return request({
  214. url: '/yinnong/transfer/remove/' + id,
  215. method: 'get'
  216. })
  217. }
  218. // 查询村级账户列表
  219. export function listVaccount(query) {
  220. return request({
  221. url: '/yinnong/vaccount/list',
  222. method: 'get',
  223. params: query
  224. })
  225. }
  226. // 查询村级账户列表
  227. export function listVaccount1(query) {
  228. return request({
  229. url: '/yinnong/vaccount/list1',
  230. method: 'get',
  231. params: query
  232. })
  233. }
  234. // 查询乡镇账户列表
  235. export function listTaccount(query) {
  236. return request({
  237. url: '/yinnong/taccount/list',
  238. method: 'get',
  239. params: query
  240. })
  241. }
  242. // 查询银行汇票列表
  243. export function listMoneyorder(query) {
  244. return request({
  245. url: '/yinnong/moneyorder/list',
  246. method: 'get',
  247. params: query
  248. })
  249. }
  250. //上传全局方法附件
  251. export function commonAttach(data) {
  252. return request({
  253. url: '/common/attach',
  254. method: 'post',
  255. header: { "Content-Type": 'application/x-www-form-urlencoded' },
  256. data: data
  257. })
  258. }
  259. //查询已上传附件
  260. export const attachmentList = (data) => {
  261. return request({
  262. url: '/system/attachment/query',
  263. method: 'get',
  264. params: data
  265. })
  266. }
  267. //删除已上传附件
  268. export function systemAttachment(ids) {
  269. if (ids != undefined) {
  270. return request({
  271. url: '/system/attachment/remove/' + ids,
  272. method: 'get'
  273. })
  274. }
  275. }
  276. // 查询转账账户详情详细
  277. export function getTransferProcess1(id) {
  278. return request({
  279. url: '/yinnong/cash/getProcessSchedule/' + id,
  280. method: 'get'
  281. })
  282. }
  283. // 查询出纳账户设置列表
  284. export function listAccount(query) {
  285. return request({
  286. url: '/cashier/account/list',
  287. method: 'get',
  288. params: query
  289. })
  290. }
  291. // 查询村虚拟出纳账户设置列表
  292. export function listAccount1(query) {
  293. return request({
  294. url: '/cashier/account/listFoBalance',
  295. method: 'get',
  296. params: query
  297. })
  298. }
  299. // 查询合同信息列表
  300. export function listInfo(query) {
  301. return request({
  302. url: '/contraction/info/list',
  303. method: 'get',
  304. params: query
  305. })
  306. }
  307. // 查询审批模板列表
  308. export function listTemplate(query) {
  309. return request({
  310. url: '/service/template/list',
  311. method: 'get',
  312. params: query
  313. })
  314. }
  315. // 根据模板主表id审批模板明细详细
  316. export function selectApprovalByTemplateId(templateId) {
  317. return request({
  318. url: '/service/templateDetail/selectApprovalByTemplateId/' + templateId,
  319. method: 'get'
  320. })
  321. }
  322. // 撤回
  323. export function updateTYinnongTransferFoStatus(data) {
  324. return request({
  325. url: '/yinnong/transfer/updateTYinnongTransferFoStatus',
  326. method: 'post',
  327. data: data
  328. })
  329. }