index.js 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. import request from '@/router/axios';
  2. import da from "element-ui/src/locale/lang/da";
  3. // 列表查询
  4. export function selectInvoiceList(data) {
  5. return request({
  6. url: '/api/blade-land/order/list',
  7. method: 'get',
  8. params: data
  9. })
  10. }
  11. // 列表单条删除
  12. export function removeDelegationList(data) {
  13. return request({
  14. url: '/api/blade-land/order/remove',
  15. method: 'post',
  16. params: data
  17. })
  18. }
  19. // 单据新增修改
  20. export function saveDelegationList(data) {
  21. return request({
  22. url: '/api/blade-land/order/submit',
  23. method: 'post',
  24. data: data
  25. })
  26. }
  27. // 单据取消提交
  28. export function cancelSubmission(data) {
  29. return request({
  30. url: '/api/blade-land/order/revoke',
  31. method: 'get',
  32. params: data
  33. })
  34. }
  35. // 单据新增修改
  36. export function saveSaveList(data) {
  37. return request({
  38. url: '/api/blade-land/order/save',
  39. method: 'post',
  40. data: data
  41. })
  42. }
  43. // 单据新增
  44. export function detailDelegationList(data) {
  45. return request({
  46. url: '/api/blade-land/order/detail',
  47. method: 'get',
  48. params:data
  49. })
  50. }
  51. // 单据新增
  52. export function removeCollection(data) {
  53. return request({
  54. url: '/api/blade-land/orderfee/remove?ids='+data,
  55. method: 'post'
  56. })
  57. }
  58. //司机查询
  59. export function driverQueryCollection(data) {
  60. return request({
  61. url: '/api/blade-land/order-item/list',
  62. method: 'get',
  63. params:data
  64. })
  65. }
  66. //调度箱信息
  67. export function dispatchCollection(data) {
  68. return request({
  69. url: '/api/blade-land/order-item/dispatch',
  70. method: 'post',
  71. data:data
  72. })
  73. }
  74. //取消调度箱信息
  75. export function cancelDispatchCollection(data) {
  76. return request({
  77. url: '/api/blade-land/order-item/cancel-dispatch',
  78. method: 'get',
  79. params:data
  80. })
  81. }
  82. //派车箱信息
  83. export function sendACarCollection(data) {
  84. return request({
  85. url: '/api/blade-land/order-item/send',
  86. method: 'post',
  87. data:data
  88. })
  89. }
  90. //取消派车箱信息
  91. export function sendACarDispatchCollection(data) {
  92. return request({
  93. url: '/api/blade-land/order-item/cancel-send',
  94. method: 'get',
  95. params:data
  96. })
  97. }
  98. //受理箱信息
  99. export function acceptanceCollection(data) {
  100. return request({
  101. url: '/api/blade-land/order-item/accept',
  102. method: 'post',
  103. data:data
  104. })
  105. }
  106. //取消受理箱信息
  107. export function acceptanceDispatchCollection(data) {
  108. return request({
  109. url: '/api/blade-land/order-item/cancel-accept',
  110. method: 'get',
  111. params:data
  112. })
  113. }
  114. //确认完工箱信息
  115. export function confirmCompletion(data) {
  116. return request({
  117. url: '/api/blade-land/order-item/finished',
  118. method: 'get',
  119. params:data
  120. })
  121. }
  122. //确认到厂箱信息
  123. export function arrival(data) {
  124. return request({
  125. url: '/api/blade-land/order-item/arrival',
  126. method: 'get',
  127. params:data
  128. })
  129. }
  130. //确认提箱箱信息
  131. export function borrow(data) {
  132. return request({
  133. url: '/api/blade-land/order-item/borrow',
  134. method: 'get',
  135. params:data
  136. })
  137. }
  138. //获取车队司机信息
  139. export function fleetList() {
  140. return request({
  141. url: '/api/blade-client/land-vehicle/vehicle-list',
  142. method: 'get'
  143. })
  144. }
  145. //获取省市区
  146. export function addressList(name) {
  147. return request({
  148. url: '/api/blade-system/region/match?address='+name,
  149. method: 'get'
  150. })
  151. }
  152. //获取总数
  153. export function totalList(name) {
  154. return request({
  155. url: '/api/blade-land/order/count?kind='+name,
  156. method: 'get'
  157. })
  158. }
  159. //获取车队司机总数
  160. export function motorcadeDriver(name) {
  161. return request({
  162. url: '/api/blade-land/order-item/count?tag='+name,
  163. method: 'get'
  164. })
  165. }
  166. //保存车队司机
  167. export function fleetDriverSave(data) {
  168. return request({
  169. url: '/api/blade-land/order-item/submit',
  170. method: 'post',
  171. data:data
  172. })
  173. }
  174. //获取电话信息
  175. export function telephone(key) {
  176. return request({
  177. url: '/api/blade-client/land-driver/driver-list',
  178. method: 'get'
  179. })
  180. }
  181. //获取附件
  182. export function getAttachment(data) {
  183. return request({
  184. url: '/api/blade-land/order-item/file-list',
  185. method: 'get',
  186. params:data
  187. })
  188. }
  189. //保存附件
  190. export function saveAttached(data) {
  191. return request({
  192. url: '/api/blade-land/order-item/file',
  193. method: 'post',
  194. data:data
  195. })
  196. }
  197. //保存附件
  198. export function getCorp() {
  199. return request({
  200. url: '/api/blade-client/corpsattn/get-corp',
  201. method: 'get'
  202. })
  203. }
  204. //查询业务员
  205. export function getSalesman(data) {
  206. return request({
  207. url: '/api/blade-user/userList',
  208. method: 'get',
  209. params:data
  210. })
  211. }
  212. //批量提交调度
  213. export function dispatchBatch(data) {
  214. return request({
  215. url: '/api/blade-land/order-item/dispatch-batch',
  216. method: 'post',
  217. data:data
  218. })
  219. }
  220. //打开变更记录
  221. export function recordingDetails(data) {
  222. return request({
  223. url: '/api/blade-land/order-change/all-list',
  224. method: 'get',
  225. params:data
  226. })
  227. }
  228. //调度变更提交
  229. export function changeFleet(data) {
  230. return request({
  231. url: '/api/blade-land/order-item/change-fleet',
  232. method: 'post',
  233. data:data
  234. })
  235. }
  236. //派车变更提交
  237. export function changeVehicle(data) {
  238. return request({
  239. url: '/api/blade-land/order-item/change-vehicle',
  240. method: 'post',
  241. data:data
  242. })
  243. }