index.js 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. import request from '@/router/axios';
  2. // 列表查询
  3. export function selectInvoiceList(data) {
  4. return request({
  5. url: '/api/blade-land/order/list',
  6. method: 'get',
  7. params: data
  8. })
  9. }
  10. // 列表单条删除
  11. export function removeDelegationList(data) {
  12. return request({
  13. url: '/api/blade-land/order/remove',
  14. method: 'post',
  15. params: data
  16. })
  17. }
  18. // 单据新增修改
  19. export function saveDelegationList(data) {
  20. return request({
  21. url: '/api/blade-land/order/submit',
  22. method: 'post',
  23. data: data
  24. })
  25. }
  26. // 单据取消提交
  27. export function cancelSubmission(data) {
  28. return request({
  29. url: '/api/blade-land/order/revoke',
  30. method: 'get',
  31. params: data
  32. })
  33. }
  34. // 单据新增修改
  35. export function saveSaveList(data) {
  36. return request({
  37. url: '/api/blade-land/order/save',
  38. method: 'post',
  39. data: data
  40. })
  41. }
  42. // 单据新增
  43. export function detailDelegationList(data) {
  44. return request({
  45. url: '/api/blade-land/order/detail',
  46. method: 'get',
  47. params:data
  48. })
  49. }
  50. // 单据新增
  51. export function removeCollection(data) {
  52. return request({
  53. url: '/api/blade-land/orderfee/remove?ids='+data,
  54. method: 'post'
  55. })
  56. }
  57. //司机查询
  58. export function driverQueryCollection(data) {
  59. return request({
  60. url: '/api/blade-land/order-item/list',
  61. method: 'get',
  62. params:data
  63. })
  64. }
  65. //调度箱信息
  66. export function dispatchCollection(data) {
  67. return request({
  68. url: '/api/blade-land/order-item/dispatch',
  69. method: 'post',
  70. data:data
  71. })
  72. }
  73. //取消调度箱信息
  74. export function cancelDispatchCollection(data) {
  75. return request({
  76. url: '/api/blade-land/order-item/cancel-dispatch',
  77. method: 'get',
  78. params:data
  79. })
  80. }
  81. //派车箱信息
  82. export function sendACarCollection(data) {
  83. return request({
  84. url: '/api/blade-land/order-item/send',
  85. method: 'post',
  86. data:data
  87. })
  88. }
  89. //取消派车箱信息
  90. export function sendACarDispatchCollection(data) {
  91. return request({
  92. url: '/api/blade-land/order-item/cancel-send',
  93. method: 'get',
  94. params:data
  95. })
  96. }
  97. //受理箱信息
  98. export function acceptanceCollection(data) {
  99. return request({
  100. url: '/api/blade-land/order-item/accept',
  101. method: 'post',
  102. data:data
  103. })
  104. }
  105. //取消受理箱信息
  106. export function acceptanceDispatchCollection(data) {
  107. return request({
  108. url: '/api/blade-land/order-item/cancel-accept',
  109. method: 'get',
  110. params:data
  111. })
  112. }
  113. //确认完工箱信息
  114. export function confirmCompletion(data) {
  115. return request({
  116. url: '/api/blade-land/order-item/finished',
  117. method: 'get',
  118. params:data
  119. })
  120. }
  121. //获取车队司机信息
  122. export function fleetList() {
  123. return request({
  124. url: '/api/blade-client/land-vehicle/vehicle-list',
  125. method: 'get'
  126. })
  127. }
  128. //获取省市区
  129. export function addressList(name) {
  130. return request({
  131. url: '/api/blade-system/region/detail?districtName='+name,
  132. method: 'get'
  133. })
  134. }
  135. //获取总数
  136. export function totalList(name) {
  137. return request({
  138. url: '/api/blade-land/order/count?kind='+name,
  139. method: 'get'
  140. })
  141. }
  142. //获取车队司机总数
  143. export function motorcadeDriver(name) {
  144. return request({
  145. url: '/api/blade-land/order-item/count?tag='+name,
  146. method: 'get'
  147. })
  148. }
  149. //保存车队司机
  150. export function fleetDriverSave(data) {
  151. return request({
  152. url: '/api/blade-land/order-item/submit',
  153. method: 'post',
  154. data:data
  155. })
  156. }
  157. //获取电话信息
  158. export function telephone(key) {
  159. return request({
  160. url: '/api/blade-client/land-driver/driver-list',
  161. method: 'get'
  162. })
  163. }