index.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. import request from '@/utils/request'
  2. // 查询客户详情列表
  3. export function listCorps(query) {
  4. return request({
  5. // url: '/basicdata/corps/selectCustomerDriverList',
  6. url: '/basicdata/corps/list',
  7. method: 'get',
  8. params: query
  9. })
  10. }
  11. // 查询客户详情列表
  12. export function listCorps_s(query) {
  13. return request({
  14. url: '/finance/other/list',
  15. method: 'get',
  16. params: query
  17. })
  18. }
  19. // 查询单条数据
  20. export function single(fId) {
  21. return request({
  22. // url: '/basicdata/corps/selectCustomerDriverList',
  23. url: '/finance/other/' + fId,
  24. method: 'get',
  25. })
  26. }
  27. // 新增
  28. export function preservation(data) {
  29. return request({
  30. url: '/finance/other/save',
  31. method: 'post',
  32. data: data
  33. })
  34. }
  35. // 删除
  36. export function singleDeletion(fId) {
  37. return request({
  38. url: '/finance/other/remove/' + fId,
  39. method: 'get'
  40. })
  41. }
  42. // 撤销
  43. export function revokeContainerPort(fId) {
  44. return request({
  45. url: '/finance/other/revoke/' + fId,
  46. method: 'get'
  47. })
  48. }
  49. // 提交
  50. export function submit(data) {
  51. return request({
  52. url: '/finance/other/add',
  53. method: 'post',
  54. data: data
  55. })
  56. }
  57. // 基础资料
  58. export function allInformation() {
  59. return request({
  60. url: '/warehouseBusiness/containerPort/selectBasicInformation',
  61. method: 'get',
  62. })
  63. }