costManage.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. import request from '@/utils/request'
  2. // 查询费用列表
  3. export function listCost(query) {
  4. return request({
  5. url: '/sc-service/cost/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询发票列表
  11. export function selectInvoiceList(query) {
  12. return request({
  13. url: '/sc-service/cost/listInvoice',
  14. method: 'get',
  15. params: query
  16. })
  17. }
  18. // 查询开票地址信息
  19. export function listInvoice(scyId,zciId) {
  20. return request({
  21. url: '/sc-service/cost/invoiceList/'+ scyId +'/' + zciId,
  22. method: 'get'
  23. })
  24. }
  25. // 申请开票
  26. export function applyInvoice(data) {
  27. return request({
  28. url: '/sc-service/cost/applyInvoice',
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 开票或冲红或修改物流单号
  34. export function invoicing(data) {
  35. return request({
  36. url: '/sc-service/cost/invoicing',
  37. method: 'put',
  38. data: data
  39. })
  40. }
  41. // 开票作废
  42. export function daleteInvoice(zciId) {
  43. return request({
  44. url: '/sc-service/cost/' + zciId,
  45. method: 'delete'
  46. })
  47. }
  48. // 查询当前操作员
  49. export function getUser() {
  50. return request({
  51. url: '/sc-service/rel/getUser',
  52. method: 'get'
  53. })
  54. }
  55. // 去缴费
  56. export function changeZfiStatus(data) {
  57. return request({
  58. url: '/sc-service/cost/changeZfiStatus',
  59. method: 'put',
  60. data: data
  61. })
  62. }