customsdeclaration.js 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. import request from '@/router/axios';
  2. // 列表
  3. export const customsdeclarationList = (current, size, params) => {
  4. return request({
  5. url: '/api/blade-los/customsdeclaration/list',
  6. method: 'get',
  7. params: {
  8. ...params,
  9. current,
  10. size,
  11. }
  12. })
  13. }
  14. // 详情
  15. export const customsdeclarationDetail = (id) => {
  16. return request({
  17. url: '/api/blade-los/customsdeclaration/detail',
  18. method: 'get',
  19. params: {
  20. id
  21. }
  22. })
  23. }
  24. // 删除
  25. export const customsdeclarationRemove = (ids) => {
  26. return request({
  27. url: '/api/blade-los/customsdeclaration/remove',
  28. method: 'post',
  29. params: {
  30. ids,
  31. }
  32. })
  33. }
  34. // 保存
  35. export const customsdeclarationSubmit = (row) => {
  36. return request({
  37. url: '/api/blade-los/customsdeclaration/submit',
  38. method: 'post',
  39. data: row
  40. })
  41. }
  42. // 单据请核
  43. export const checkCustomsDeclaration = (row) => {
  44. return request({
  45. url: '/api/blade-los/customsdeclaration/checkCustomsDeclaration',
  46. method: 'post',
  47. data: row
  48. })
  49. }
  50. // 撤销单据请核
  51. export const revokeCheckCustomsDeclaration = (row) => {
  52. return request({
  53. url: '/api/blade-los/customsdeclaration/revokeCheckCustomsDeclaration',
  54. method: 'post',
  55. data: row
  56. })
  57. }
  58. // 复制单据
  59. export const copyCustomsDeclaration = (row) => {
  60. return request({
  61. url: '/api/blade-los/customsdeclaration/copyCustomsDeclaration',
  62. method: 'post',
  63. data: row
  64. })
  65. }
  66. // 详情明细一键保存
  67. export const customsdeclarationgoodssSubmit = (row) => {
  68. return request({
  69. url: '/api/blade-los/customsdeclarationgoods/submitList',
  70. method: 'post',
  71. data: row
  72. })
  73. }
  74. // 详情明细一键删除
  75. export const customsdeclarationgoodsRemove = (ids) => {
  76. return request({
  77. url: '/api/blade-los/customsdeclarationgoods/remove',
  78. method: 'post',
  79. params: {
  80. ids,
  81. }
  82. })
  83. }