particulars.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. import upload from '@/utils/upload'
  2. import request from '@/utils/request'
  3. // 获取用户详细信息
  4. export function getOrderBillsPlansByid(entityId) {
  5. return request({
  6. 'url': '/order-bills-plans/' + entityId,
  7. 'method': 'get'
  8. })
  9. }
  10. // 查询报销费用
  11. export function getGasStations() {
  12. return request({
  13. 'url': '/order-bills-plans/gas-stations',
  14. 'method': 'get'
  15. })
  16. }
  17. // 查询其他费用
  18. export function getItems() {
  19. return request({
  20. 'url': '/order-bills-plans/items',
  21. 'method': 'get'
  22. })
  23. }
  24. // 保存订单
  25. export function putOrderBillsPlansByid(data) {
  26. return request({
  27. 'url': '/order-bills-plans/put',
  28. 'method': 'post',
  29. 'data': data
  30. })
  31. }
  32. // 提交审核
  33. export function submitAudit(data) {
  34. return request({
  35. 'url': '/order-bills-plans/submit-audit',
  36. 'method': 'post',
  37. 'data': data
  38. })
  39. }
  40. // 主库添加图片数据
  41. export function insertTmsAttachMngs(data) {
  42. return request({
  43. 'url': '/order-bills-plans/attach-mngs',
  44. 'method': 'post',
  45. 'data': data
  46. })
  47. }
  48. // 上传照片
  49. export function pictureUploading(data, formData) {
  50. return upload({
  51. url: '/attachmngs',
  52. name: data.name,
  53. filePath: data.filePath,
  54. formData: formData
  55. })
  56. }
  57. // 删除图片
  58. export function deleteTmsAttachMngs(attachId) {
  59. return request({
  60. 'url': '/order-bills-plans/attach-mngs/delete/' + attachId,
  61. 'method': 'get'
  62. })
  63. }
  64. // 队长审核
  65. export function audit(data) {
  66. return request({
  67. 'url': '/order-bills-plans/submit-audit/audit',
  68. 'method': 'post',
  69. 'data': data
  70. })
  71. }
  72. // 提交报账单
  73. export function upReceipts(orderNo) {
  74. return request({
  75. 'url': '/order-bills-plans/up-receipts/' + orderNo,
  76. 'method': 'get'
  77. })
  78. }