index.js 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  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/acct',
  62. method: 'get',
  63. params:data
  64. })
  65. }
  66. //杂费查询
  67. export function incidental(data) {
  68. return request({
  69. url: '/api/blade-land/order-fee/list-no-page',
  70. method: 'get',
  71. params:data
  72. })
  73. }
  74. //杂费确认
  75. export function incidentalConfirm(data) {
  76. return request({
  77. url: '/api/blade-land/order-fee/confirm',
  78. method: 'post',
  79. params:data
  80. })
  81. }
  82. //杂费取消
  83. export function cancelConfirm(data) {
  84. return request({
  85. url: '/api/blade-land/order-fee/cancel-confirm',
  86. method: 'post',
  87. params:data
  88. })
  89. }
  90. //调度箱信息
  91. export function dispatchCollection(data) {
  92. return request({
  93. url: '/api/blade-land/order-item/dispatch',
  94. method: 'post',
  95. data:data
  96. })
  97. }
  98. //取消调度箱信息
  99. export function cancelDispatchCollection(data) {
  100. return request({
  101. url: '/api/blade-land/order-item/cancel-dispatch',
  102. method: 'get',
  103. params:data
  104. })
  105. }
  106. //派车箱信息
  107. export function sendACarCollection(data) {
  108. return request({
  109. url: '/api/blade-land/order-item/send',
  110. method: 'post',
  111. data:data
  112. })
  113. }
  114. //取消派车箱信息
  115. export function sendACarDispatchCollection(data) {
  116. return request({
  117. url: '/api/blade-land/order-item/cancel-send',
  118. method: 'get',
  119. params:data
  120. })
  121. }
  122. //受理箱信息
  123. export function acceptanceCollection(data) {
  124. return request({
  125. url: '/api/blade-land/order-item/accept',
  126. method: 'post',
  127. data:data
  128. })
  129. }
  130. //取消受理箱信息
  131. export function acceptanceDispatchCollection(data) {
  132. return request({
  133. url: '/api/blade-land/order-item/cancel-accept',
  134. method: 'get',
  135. params:data
  136. })
  137. }
  138. //确认完工箱信息
  139. export function confirmCompletion(data) {
  140. return request({
  141. url: '/api/blade-land/order-item/finished',
  142. method: 'get',
  143. params:data
  144. })
  145. }
  146. //确认到厂箱信息
  147. export function arrival(data) {
  148. return request({
  149. url: '/api/blade-land/order-item/arrival',
  150. method: 'get',
  151. params:data
  152. })
  153. }
  154. //确认提箱箱信息
  155. export function borrow(data) {
  156. return request({
  157. url: '/api/blade-land/order-item/borrow',
  158. method: 'get',
  159. params:data
  160. })
  161. }
  162. //获取车队司机信息
  163. export function fleetList() {
  164. return request({
  165. url: '/api/blade-client/land-vehicle/vehicle-list',
  166. method: 'get'
  167. })
  168. }
  169. //获取省市区
  170. export function addressList(name) {
  171. return request({
  172. url: '/api/blade-system/region/match?address='+name,
  173. method: 'get'
  174. })
  175. }
  176. //获取总数
  177. export function totalList(name) {
  178. return request({
  179. url: '/api/blade-land/order/count?kind='+name,
  180. method: 'get'
  181. })
  182. }
  183. //获取车队司机总数
  184. export function motorcadeDriver(name) {
  185. return request({
  186. url: '/api/blade-land/order-item/count?tag='+name,
  187. method: 'get'
  188. })
  189. }
  190. //保存车队司机
  191. export function fleetDriverSave(data) {
  192. return request({
  193. url: '/api/blade-land/order-item/submit',
  194. method: 'post',
  195. data:data
  196. })
  197. }
  198. //获取电话信息
  199. export function telephone(key) {
  200. return request({
  201. url: '/api/blade-client/land-driver/driver-list',
  202. method: 'get'
  203. })
  204. }
  205. //获取附件
  206. export function getAttachment(data) {
  207. return request({
  208. url: '/api/blade-land/order-item/file-list',
  209. method: 'get',
  210. params:data
  211. })
  212. }
  213. //保存附件
  214. export function saveAttached(data) {
  215. return request({
  216. url: '/api/blade-land/order-item/file',
  217. method: 'post',
  218. data:data
  219. })
  220. }
  221. //获取附件
  222. export function getFee(data) {
  223. return request({
  224. url: '/api/blade-land/order-fee/file-list',
  225. method: 'get',
  226. params:data
  227. })
  228. }
  229. //保存附件
  230. export function saveFile(data) {
  231. return request({
  232. url: '/api/blade-land/order-fee/file',
  233. method: 'post',
  234. data:data
  235. })
  236. }
  237. //保存附件
  238. export function getCorp() {
  239. return request({
  240. url: '/api/blade-client/corpsattn/get-corp',
  241. method: 'get'
  242. })
  243. }
  244. //查询业务员
  245. export function getSalesman(data) {
  246. return request({
  247. url: '/api/blade-user/userList',
  248. method: 'get',
  249. params:data
  250. })
  251. }
  252. //批量提交调度
  253. export function dispatchBatch(data) {
  254. return request({
  255. url: '/api/blade-land/order-item/dispatch-batch',
  256. method: 'post',
  257. data:data
  258. })
  259. }
  260. //打开变更记录
  261. export function recordingDetails(data) {
  262. return request({
  263. url: '/api/blade-land/order-change/all-list',
  264. method: 'get',
  265. params:data
  266. })
  267. }
  268. //调度变更提交
  269. export function changeFleet(data) {
  270. return request({
  271. url: '/api/blade-land/order-item/change-fleet',
  272. method: 'post',
  273. data:data
  274. })
  275. }
  276. //派车变更提交
  277. export function changeVehicle(data) {
  278. return request({
  279. url: '/api/blade-land/order-item/change-vehicle',
  280. method: 'post',
  281. data:data
  282. })
  283. }
  284. //查询车号
  285. export function queryVehicle(data) {
  286. return request({
  287. url: '/api/blade-land/order-item/plate-no',
  288. method: 'get',
  289. params:data
  290. })
  291. }
  292. //杂费保存
  293. export function incidentalSubmit(data) {
  294. return request({
  295. url: '/api/blade-land/order-fee/save',
  296. method: 'post',
  297. data:data
  298. })
  299. }