finance.js 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. import request from '@/utils/request'
  2. /**
  3. * 收款列表
  4. */
  5. export function getReceiptList(query) {
  6. return request({
  7. url: '/order/organize/receipt/list',
  8. method: 'get',
  9. params: query
  10. })
  11. }
  12. /**
  13. * 收款账号列表
  14. */
  15. export function getReceiptTypeList(query) {
  16. return request({
  17. url: '/order/organize/receipt/type',
  18. method: 'get',
  19. params: query
  20. })
  21. }
  22. /**
  23. * 付款账号列表
  24. */
  25. export function getPayTypeList(query) {
  26. return request({
  27. url: '/order/organize/pay/type',
  28. method: 'get',
  29. params: query
  30. })
  31. }
  32. /**
  33. * 收款详情
  34. */
  35. export function getReceiptDetail(id) {
  36. return request({
  37. url: `/order/organize/receipt/detail/${id.orderId}/${id.shopOrderId}`,
  38. method: 'get'
  39. })
  40. }
  41. /**
  42. * 付款列表
  43. */
  44. export function getOrganizePayList(params) {
  45. return request({
  46. url: '/order/organize/pay/list',
  47. method: 'get',
  48. params: params
  49. })
  50. }
  51. /**
  52. * 申请付款列表
  53. */
  54. export function getPayOrderList(params) {
  55. return request({
  56. url: '/order/organize/payOrder/list',
  57. method: 'get',
  58. params: params
  59. })
  60. }
  61. /**
  62. * 付款详情
  63. */
  64. export function getPayDetails(id) {
  65. return request({
  66. url: '/order/organize/pay/form/' + id,
  67. method: 'get'
  68. })
  69. }
  70. /**
  71. * 付款单初始化详情
  72. */
  73. export function getApplyPays(data) {
  74. return request({
  75. url: '/order/organize/apply/pays',
  76. method: 'post',
  77. data: data
  78. })
  79. }
  80. /**
  81. * 提交付款申请
  82. */
  83. export function subPayApply(data) {
  84. return request({
  85. url: '/order/organize/pay/apply',
  86. method: 'post',
  87. data: data
  88. })
  89. }
  90. /**
  91. * 审核付款申请
  92. */
  93. export function subPayCheck(data) {
  94. return request({
  95. url: '/order/organize/pay/check',
  96. method: 'post',
  97. data: data
  98. })
  99. }
  100. /**
  101. * 取消付款
  102. */
  103. export function cancelPayApply(id) {
  104. return request({
  105. url: '/order/organize/pay/cancel/' + id,
  106. method: 'get'
  107. })
  108. }
  109. /**
  110. * 撤销付款
  111. */
  112. export function cancelPayBack(id) {
  113. return request({
  114. url: '/order/organize/pay/back/' + id,
  115. method: 'get'
  116. })
  117. }
  118. /**
  119. * 订单财富信息列表
  120. */
  121. export function organizePayInfos(params) {
  122. return request({
  123. url: '/order/organize/pay/infos',
  124. method: 'get',
  125. params: params
  126. })
  127. }
  128. /**
  129. * 订单收付款记录
  130. */
  131. export function organizeReceiptRecord(id) {
  132. return request({
  133. url: `/order/organize/receipt/record/${id}`,
  134. method: 'get'
  135. })
  136. }
  137. /**
  138. * 订单退款退货记录
  139. */
  140. export function organizeToRecturnRecordByOrderId(params) {
  141. return request({
  142. url: `/order/organize/toRecturnRecordByOrderId?orderId=${params.orderId}&shopOrderId=${params.shopOrderId}`,
  143. method: 'get'
  144. })
  145. }
  146. /**
  147. * 订单结算记录
  148. */
  149. export function organizeSettleRecord(id) {
  150. return request({
  151. url: '/order/organize/settle/record/' + id,
  152. method: 'get'
  153. })
  154. }
  155. /**
  156. * 子订单退付款记录
  157. */
  158. export function organizeReturnAndPay(id) {
  159. return request({
  160. url: '/order/cmReturnedPurchase/returnAndPay/' + id,
  161. method: 'get'
  162. })
  163. }
  164. /**
  165. * 申请分账
  166. */
  167. export function subPaySplit(data) {
  168. return request({
  169. url: '/order/organize/pay/split',
  170. method: 'post',
  171. data: data
  172. })
  173. }
  174. /**
  175. * 申请结算
  176. */
  177. export function subPaySettle(data) {
  178. return request({
  179. url: '/order/organize/pay/settle',
  180. method: 'post',
  181. data: data
  182. })
  183. }